- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 126 for fileset (0.15 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/go/internal/gcimporter/support.go
// -64 is the smallest int that fits in a single byte as a varint. const deltaNewFile = -64 // Synthesize a token.Pos type fakeFileSet struct { fset *token.FileSet files map[string]*fileInfo } type fileInfo struct { file *token.File lastline int } const maxlines = 64 * 1024 func (s *fakeFileSet) pos(file string, line, column int) token.Pos {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultAntBuilderTest.groovy
File fileWithDollars = project.file(dirAndFile) fileWithDollars << "Some Text" FileCollection files = project.getLayout().files(dirAndFile) when: ant.property(name: "my.property", value: "doesNotExist") ant.delete { files.addToAntBuilder(delegate, null, antType) } then: !fileWithDollars.exists() where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 11 16:17:40 UTC 2022 - 7.7K bytes - Viewed (0) -
src/cmd/cover/func.go
startLine int startCol int endLine int endCol int } // FuncVisitor implements the visitor that builds the function position list for a file. type FuncVisitor struct { fset *token.FileSet name string // Name of file. astFile *ast.File funcs []*FuncExtent } // Visit implements the ast.Visitor interface. func (v *FuncVisitor) Visit(node ast.Node) ast.Visitor {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 6.3K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
if id.Name == old { id.Name = new } } return true }) } func (a *analyzer) filterFiles(fs map[string]*ast.File) []*ast.File { var files []*ast.File for _, f := range fs { files = append(files, f) } return files } type collector struct { dirs []string regex *regexp.Regexp } // handlePath walks the filesystem recursively, collecting directories,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0)