MCPcopy Create free account
hub / github.com/cogentcore/core / DoGoPath

Function DoGoPath

parse/cmd/parse/parse.go:58–68  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

56}
57
58func DoGoPath(path string) {
59 fmt.Printf("Processing path: %v\n", path)
60 lp, _ := parse.LanguageSupport.Properties(fileinfo.Go)
61 pr := lp.Lang.Parser()
62 pr.ReportErrs = true
63 fs := parse.NewFileState()
64 pkgsym := lp.Lang.ParseDir(fs, path, parse.LanguageDirOptions{Rebuild: true})
65 if pkgsym != nil {
66 syms.SaveSymDoc(pkgsym, fileinfo.Go, path)
67 }
68}
69
70func DoGoRecursive(path string) {
71 DoGoPath(path)

Callers 2

mainFunction · 0.85
DoGoRecursiveFunction · 0.85

Calls 6

NewFileStateFunction · 0.92
SaveSymDocFunction · 0.92
PropertiesMethod · 0.80
ParserMethod · 0.65
ParseDirMethod · 0.65
PrintfMethod · 0.45

Tested by

no test coverage detected