We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f92a46b commit e61b175Copy full SHA for e61b175
1 file changed
src/compress/golang/plugin/go_ast.go
@@ -161,6 +161,12 @@ func getGoFilesInDir(dir string) []string {
161
}
162
163
func (p *goParser) ParseDir(dir string) ([]Function, bool) {
164
+ // unify dir ./xxx/xxx -> xxx/xxx
165
+ relativePrefix := "./"
166
+ if strings.HasPrefix(dir, relativePrefix) {
167
+ dir = strings.TrimPrefix(dir, relativePrefix)
168
+ }
169
+
170
if p.processedPkg[dir] != nil {
171
return p.processedPkg[dir], false
172
@@ -191,7 +197,7 @@ func (p *goParser) ParseTilTheEnd(startDir string) {
191
197
for _, f := range functionList {
192
198
for _, fc := range f.FunctionCalls {
193
199
if p.processedPkg[fc.PkgDir] != nil {
194
- return
200
+ continue
195
201
196
202
p.ParseTilTheEnd(fc.PkgDir)
203
0 commit comments