Skip to content

Commit aff4f1d

Browse files
committed
have aliases be resolved
1 parent 8a5b033 commit aff4f1d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

parsing.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ func resolvePkgPaths(p types.Type) ([]string, error) {
179179
if pkg := t.Obj().Pkg(); pkg != nil {
180180
return []string{stripVendor(pkg.Path())}, nil
181181
}
182-
case *types.Basic:
183182
case *types.Alias:
184-
// TODO3 determine if the resolve deeper is necessary for the imported alias.
183+
return resolvePkgPaths(t.Underlying())
184+
case *types.Basic:
185185
case *types.Interface:
186186
case *types.Struct: // struct{}
187187
// Break out of the switch and return below

0 commit comments

Comments
 (0)