mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
add explicit this to all member calls
This commit is contained in:
@@ -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*()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user