Skip to content

Commit 57f429e

Browse files
committed
change this = this to any()
1 parent 0cc3232 commit 57f429e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ql/ql/src/codeql_ql/ast/internal/AstMocks.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class MockModule extends MockAst, TMockModule {
6464
module MockModule {
6565
abstract class Range extends string {
6666
bindingset[this]
67-
Range() { this = this }
67+
Range() { any() }
6868

6969
/** Gets the name of this mocked module. */
7070
abstract string getName();
@@ -96,7 +96,7 @@ class MockClass extends MockAst, TMockClass {
9696
module MockClass {
9797
abstract class Range extends string {
9898
bindingset[this]
99-
Range() { this = this }
99+
Range() { any() }
100100

101101
/** Gets the name of this mocked class. */
102102
abstract string getName();
@@ -135,7 +135,7 @@ class MockTypeExpr extends MockSignatureExpr, TMockTypeExpr {
135135
module MockTypeExpr {
136136
abstract class Range extends string {
137137
bindingset[this]
138-
Range() { this = this }
138+
Range() { any() }
139139

140140
/** Gets the name of the type. */
141141
abstract string getClassName();
@@ -164,7 +164,7 @@ class MockClasslessPredicate extends MockAst {
164164
module MockClasslessPredicate {
165165
abstract class Range extends string {
166166
bindingset[this]
167-
Range() { this = this }
167+
Range() { any() }
168168

169169
/** Gets the name of the predicate. */
170170
abstract string getName();
@@ -196,7 +196,7 @@ class MockVarDecl extends MockAst, TMockVarDecl {
196196
module MockVarDecl {
197197
abstract class Range extends string {
198198
bindingset[this]
199-
Range() { this = this }
199+
Range() { any() }
200200

201201
/** Gets the name of the variable. */
202202
abstract string getName();

0 commit comments

Comments
 (0)