- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for initParserMode (0.41 sec)
-
src/cmd/gofmt/gofmt.go
var ( rewrite func(*token.FileSet, *ast.File) *ast.File parserMode parser.Mode ) func usage() { fmt.Fprintf(os.Stderr, "usage: gofmt [flags] [path ...]\n") flag.PrintDefaults() } func initParserMode() { parserMode = parser.ParseComments if *allErrors { parserMode |= parser.AllErrors } // It's only -r that makes use of go/ast's object resolution, // so avoid the unnecessary work if the flag isn't used.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0)