We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0129167 commit 985e07dCopy full SHA for 985e07d
1 file changed
go/ql/lib/semmle/go/Scopes.qll
@@ -101,6 +101,7 @@ class Entity extends @object {
101
* Note that for methods `pkg` is the package path followed by `.` followed
102
* by the name of the receiver type, for example `io.Writer`.
103
*/
104
+ pragma[nomagic]
105
predicate hasQualifiedName(string pkg, string name) {
106
pkg = this.getPackage().getPath() and
107
name = this.getName()
@@ -517,6 +518,7 @@ class Method extends Function {
517
518
* `exists(Type t | t.hasQualifiedName(pkg, tp) and meth = t.getMethod(m))`: the latter
519
* distinguishes between the method sets of `T` and `*T`, while the former does not.
520
521
522
predicate hasQualifiedName(string pkg, string tp, string m) {
523
exists(NamedType t |
524
this.isIn(t, m) and
0 commit comments