We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5b033 commit aff4f1dCopy full SHA for aff4f1d
1 file changed
parsing.go
@@ -179,9 +179,9 @@ func resolvePkgPaths(p types.Type) ([]string, error) {
179
if pkg := t.Obj().Pkg(); pkg != nil {
180
return []string{stripVendor(pkg.Path())}, nil
181
}
182
- case *types.Basic:
183
case *types.Alias:
184
- // TODO3 determine if the resolve deeper is necessary for the imported alias.
+ return resolvePkgPaths(t.Underlying())
+ case *types.Basic:
185
case *types.Interface:
186
case *types.Struct: // struct{}
187
// Break out of the switch and return below
0 commit comments