add all remaining explicit this

This commit is contained in:
Erik Krogh Kristensen
2021-11-26 13:50:10 +01:00
parent 00ee34c0a0
commit 6ff8d4de5c
104 changed files with 479 additions and 451 deletions

View File

@@ -25,7 +25,7 @@ class RangeCallable extends Callable {
or
not exists(this.getBody()) and
(
lastParameter().hasLocationInfo(path, _, _, el, ec)
this.lastParameter().hasLocationInfo(path, _, _, el, ec)
or
not exists(this.getAParameter()) and el = elSuper and ec = ecSuper
)
@@ -33,8 +33,8 @@ class RangeCallable extends Callable {
}
private Parameter lastParameter() {
result = getAParameter() and
not getAParameter().getPosition() > result.getPosition()
result = this.getAParameter() and
not this.getAParameter().getPosition() > result.getPosition()
}
}
@@ -45,7 +45,7 @@ class RangeCallable extends Callable {
class RangeRefType extends RefType {
override predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
exists(int elSuper, int ecSuper | super.hasLocationInfo(path, sl, sc, elSuper, ecSuper) |
lastMember().hasLocationInfo(path, _, _, el, ec)
this.lastMember().hasLocationInfo(path, _, _, el, ec)
or
not exists(this.getAMember()) and el = elSuper and ec = ecSuper
)