Skip to content

Commit 571995c

Browse files
committed
QL: run the implicit this patch
1 parent 31c8e4e commit 571995c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ql/ql/src/codeql_ql/ast/Ast.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ class AstNode extends TAstNode {
5858
*/
5959
cached
6060
AstNode getAChild(string pred) {
61-
pred = directMember("getAnAnnotation") and result = getAnAnnotation()
61+
pred = directMember("getAnAnnotation") and result = this.getAnAnnotation()
6262
or
63-
pred = directMember("getQLDoc") and result = getQLDoc()
63+
pred = directMember("getQLDoc") and result = this.getQLDoc()
6464
}
6565

6666
/**
@@ -606,7 +606,7 @@ class FieldDecl extends TFieldDecl, AstNode {
606606
/** Holds if this field is annotated as overriding another field. */
607607
predicate isOverride() { this.hasAnnotation("override") }
608608

609-
string getName() { result = getVarDecl().getName() }
609+
string getName() { result = this.getVarDecl().getName() }
610610

611611
override QLDoc getQLDoc() { result = any(Class c).getQLDocFor(this) }
612612
}
@@ -771,7 +771,7 @@ class Class extends TClass, TypeDeclaration, ModuleDeclaration {
771771
/**
772772
* Gets a field in this class.
773773
*/
774-
FieldDecl getAField() { result = getMember(_) }
774+
FieldDecl getAField() { result = this.getMember(_) }
775775

776776
/**
777777
* Gets a super-type referenced in the `extends` part of the class declaration.
@@ -814,7 +814,7 @@ class Class extends TClass, TypeDeclaration, ModuleDeclaration {
814814
}
815815

816816
/** Holds if this class is abstract. */
817-
predicate isAbstract() { hasAnnotation("abstract") }
817+
predicate isAbstract() { this.hasAnnotation("abstract") }
818818
}
819819

820820
/**

0 commit comments

Comments
 (0)