- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ParseFile (0.25 sec)
-
src/cmd/api/main_test.go
} slices.Sort(fs) return } var parsedFileCache = make(map[string]*ast.File) func (w *Walker) parseFile(dir, file string) (*ast.File, error) { filename := filepath.Join(dir, file) if f := parsedFileCache[filename]; f != nil { return f, nil } f, err := parser.ParseFile(fset, filename, nil, parser.ParseComments) if err != nil { return nil, err } parsedFileCache[filename] = f
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Thu Feb 20 03:25:33 UTC 2025 - 31.4K bytes - Viewed (0) -
src/cmd/cgo/ast.go
import ( "fmt" "go/ast" "go/format" "go/parser" "go/scanner" "go/token" "os" "strings" ) func parse(name string, src []byte, flags parser.Mode) *ast.File { ast1, err := parser.ParseFile(fset, name, src, flags) if err != nil { if list, ok := err.(scanner.ErrorList); ok { // If err is a scanner.ErrorList, its String will print just // the first error and then (+n more errors).
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Oct 14 15:47:06 UTC 2024 - 14.3K bytes - Viewed (0) -
lib/fips140/v1.0.0.zip
"ringDecodeAndDecompr": "ringDecodeAndDecompr", "ringDecodeAndDecompr": "ringDecodeAndDecompr", } func main() { inputFile := flag.String("input", "", "") outputFile := flag.String("output", "", "") flag.Parse() fset := token.NewFileSet() f, err := parser.ParseFile(fset, *inputFile, nil, parser.SkipObjectResolution|parser.ParseComments) if err != nil { log.Fatal(err) } cmap := ast.NewCommentMap(fset, f, f.Comments) // Drop header comments. cmap[ast.Node(f)] = nil // Remove top-level consts used across the main...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)