Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 20562cb

Browse files
owen-mcsmowton
authored andcommitted
Add missing this. to member predicate calls
1 parent 5257c4a commit 20562cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ql/lib/semmle/go/AST.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class TypeParamDeclParent extends @typeparamdeclparent, AstNode {
231231
/**
232232
* Gets a child field of this node in the AST.
233233
*/
234-
TypeParamDecl getATypeParameterDecl() { result = getTypeParameterDecl(_) }
234+
TypeParamDecl getATypeParameterDecl() { result = this.getTypeParameterDecl(_) }
235235
}
236236

237237
/**

ql/lib/semmle/go/Types.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Type extends @type {
7272
predicate implements(InterfaceType i) {
7373
if i = any(ComparableType comparable).getUnderlyingType()
7474
then this.implementsComparable()
75-
else implementsNotComparable(i)
75+
else this.implementsNotComparable(i)
7676
}
7777

7878
/**
@@ -691,7 +691,7 @@ class TypeSetLiteralType extends @typesetliteraltype, CompositeType {
691691
TypeSetTerm getTerm(int i) { result = MkTypeSetTerm(this, i) }
692692

693693
/** Gets a term in this type set literal. */
694-
TypeSetTerm getATerm() { result = getTerm(_) }
694+
TypeSetTerm getATerm() { result = this.getTerm(_) }
695695

696696
/** Holds if `t` is in the type set of this type set literal. */
697697
predicate includesType(Type t) { this.getATerm().includesType(t) }
@@ -747,7 +747,7 @@ class InterfaceType extends @interfacetype, CompositeType {
747747
* as part of the method set of this interface.
748748
*/
749749
Type getADirectlyEmbeddedInterface() {
750-
hasDirectlyEmbeddedType(_, result) and result.getUnderlyingType() instanceof InterfaceType
750+
this.hasDirectlyEmbeddedType(_, result) and result.getUnderlyingType() instanceof InterfaceType
751751
}
752752

753753
/**

0 commit comments

Comments
 (0)