You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*ast.SelectorExpr, // skip analysis of selector expressions (anId.otherId): because if anId shadows an import name, it was already detected, and otherId does not shadows the import name
81
83
*ast.StructType: // skip analysis of struct type because struct fields can not shadow an import name
82
84
returnnil
85
+
case*ast.FuncDecl:
86
+
ifn.Recv!=nil {
87
+
w.skipIdents[n.Name] =struct{}{}
88
+
}
83
89
case*ast.Ident:
84
90
ifn==w.packageNameIdent {
85
91
returnnil// skip the ident corresponding to the package name of this file
0 commit comments