add explicit this to all member calls

This commit is contained in:
Erik Krogh Kristensen
2021-11-01 09:51:15 +01:00
parent 1c78c792ff
commit db40ccae81
85 changed files with 2063 additions and 1937 deletions

View File

@@ -22,7 +22,7 @@ class CandidateStringLiteral extends StringLiteral {
CandidateStringLiteral() {
tl = this.getTopLevel() and
v = getStringValue()
v = this.getStringValue()
}
/**
@@ -46,7 +46,7 @@ class CandidateStringLiteral extends StringLiteral {
ASTNode getIntermediate() {
result = this
or
exists(ASTNode mid | mid = getIntermediate() |
exists(ASTNode mid | mid = this.getIntermediate() |
not mid instanceof ScopeElement and
result = mid.getParent()
)
@@ -57,7 +57,7 @@ class CandidateStringLiteral extends StringLiteral {
*/
predicate isInScope(Scope scope) {
scope instanceof GlobalScope or
getIntermediate().(ScopeElement).getScope() = scope.getAnInnerScope*()
this.getIntermediate().(ScopeElement).getScope() = scope.getAnInnerScope*()
}
}