(path string)
| 56 | } |
| 57 | |
| 58 | func 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 | |
| 70 | func DoGoRecursive(path string) { |
| 71 | DoGoPath(path) |
no test coverage detected