Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 282 for fileset (0.15 sec)

  1. src/go/types/example_test.go

    `,
    	} {
    		files = append(files, mustParse(fset, src))
    	}
    
    	// Type-check a package consisting of these files.
    	// Type information for the imported "fmt" package
    	// comes from $GOROOT/pkg/$GOOS_$GOOARCH/fmt.a.
    	conf := types.Config{Importer: importer.Default()}
    	pkg, err := conf.Check("temperature", fset, files, nil)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    		}
    	}
    
    	exportFacts = func(cfg *Config, data []byte) error {
    		return os.WriteFile(cfg.VetxOutput, data, 0666)
    	}
    )
    
    func run(fset *token.FileSet, cfg *Config, analyzers []*analysis.Analyzer) ([]result, error) {
    	// Load, parse, typecheck.
    	var files []*ast.File
    	for _, name := range cfg.GoFiles {
    		f, err := parser.ParseFile(fset, name, nil, parser.ParseComments)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. src/go/doc/example_test.go

    	Greet("world")
    }
    `
    
    	// Create the AST by parsing src and test.
    	fset := token.NewFileSet()
    	files := []*ast.File{
    		mustParse(fset, "src.go", src),
    		mustParse(fset, "src_test.go", test),
    	}
    
    	// Compute package documentation with examples.
    	p, err := doc.NewFromFiles(fset, files, "example.com/p")
    	if err != nil {
    		panic(err)
    	}
    
    	fmt.Printf("package %s - %s", p.Name, p.Doc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  4. maven-core/src/test/resources-project-builder/foo/sub/pom.xml

                </goals>
              </execution>
    
              <execution>
                <id>archetype-test-fileset</id>
                <phase>process-test-resources</phase>
                <configuration>
                  <tasks>
                    <property name="test.projects.name" value="fileset" />
                    <property name="test.projects.version" value="1.0" />
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 08:59:31 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  5. src/go/internal/srcimporter/srcimporter.go

    			setUsesCgo(&conf)
    			file, err := p.cgo(bp)
    			if err != nil {
    				return nil, fmt.Errorf("error processing cgo for package %q: %w", bp.ImportPath, err)
    			}
    			files = append(files, file)
    		}
    	}
    
    	pkg, err = conf.Check(bp.ImportPath, p.fset, files, nil)
    	if err != nil {
    		// If there was a hard error it is possibly unsafe
    		// to use the package as it may not be fully populated.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  6. maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java

            assertEquals("target", pom.getValue("build/plugins[1]/configuration/domParam/copy/fileset/@dir"));
            assertNull(pom.getValue("build/plugins[1]/configuration/domParam/copy/fileset/@todir"));
            assertNull(pom.getValue("build/plugins[1]/configuration/domParam/copy/fileset/@overwrite"));
        }
    
        /** MNG-4053*/
        @Test
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 93.2K bytes
    - Viewed (0)
  7. src/go/format/format.go

    // nodes representing partial source files (for instance, if the node is
    // not an *[ast.File] or a *[printer.CommentedNode] not wrapping an *[ast.File]).
    //
    // The function may return early (before the entire result is written)
    // and return a formatting error, for instance due to an incorrect AST.
    func Node(dst io.Writer, fset *token.FileSet, node any) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. src/go/ast/commentmap.go

    	//       }
    	//       return cmp.Compare(a.End(), b.End())
    	// })
    
    	return list
    }
    
    // A commentListReader helps iterating through a list of comment groups.
    type commentListReader struct {
    	fset     *token.FileSet
    	list     []*CommentGroup
    	index    int
    	comment  *CommentGroup  // comment group at current index
    	pos, end token.Position // source interval of comment group at current index
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. src/cmd/gofmt/long_test.go

    			nfiles++
    		}
    		return nil
    	}
    
    	// test Go files provided via -files, if any
    	if *files != "" {
    		for _, filename := range strings.Split(*files, ",") {
    			fi, err := os.Stat(filename)
    			handleFile(filename, fs.FileInfoToDirEntry(fi), err)
    		}
    		return // ignore files under -root
    	}
    
    	// otherwise, test all Go files under *root
    	goroot := *root
    	if goroot == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 20:27:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    }
    
    // ---- output helpers common to all drivers ----
    
    // PrintPlain prints a diagnostic in plain text form,
    // with context specified by the -c flag.
    func PrintPlain(fset *token.FileSet, diag analysis.Diagnostic) {
    	posn := fset.Position(diag.Pos)
    	fmt.Fprintf(os.Stderr, "%s: %s\n", posn, diag.Message)
    
    	// -c=N: show offending line plus N lines of context.
    	if Context >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top