We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9071ace commit ebdea24Copy full SHA for ebdea24
go/ql/lib/semmle/go/Scopes.qll
@@ -95,7 +95,12 @@ class Entity extends @object {
95
/** Gets the package in which this entity is declared, if any. */
96
Package getPackage() { result.getScope() = this.getScope() }
97
98
- /** Holds if this entity is declared in a package with path `pkg` and has the given `name`. */
+ /**
99
+ * Holds if this entity is declared in a package with path `pkg` and has the given `name`.
100
+ *
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
predicate hasQualifiedName(string pkg, string name) {
105
pkg = this.getPackage().getPath() and
106
name = this.getName()
0 commit comments