Skip to content

Commit ebdea24

Browse files
committed
Make qldoc clearer about behaviour of override
1 parent 9071ace commit ebdea24

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

go/ql/lib/semmle/go/Scopes.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ class Entity extends @object {
9595
/** Gets the package in which this entity is declared, if any. */
9696
Package getPackage() { result.getScope() = this.getScope() }
9797

98-
/** Holds if this entity is declared in a package with path `pkg` and has the given `name`. */
98+
/**
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+
*/
99104
predicate hasQualifiedName(string pkg, string name) {
100105
pkg = this.getPackage().getPath() and
101106
name = this.getName()

0 commit comments

Comments
 (0)