We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0338ffd commit fb74a2aCopy full SHA for fb74a2a
1 file changed
go/ql/lib/semmle/go/Scopes.qll
@@ -103,7 +103,11 @@ class Entity extends @object {
103
*/
104
pragma[nomagic]
105
predicate hasQualifiedName(string pkg, string name) {
106
- pkg = this.getPackage().getPath() and
+ (
107
+ pkg = this.getPackage().getPath()
108
+ or
109
+ not exists(this.getPackage()) and pkg = ""
110
+ ) and
111
name = this.getName()
112
}
113
0 commit comments