This commit is contained in:
Paolo Tranquilli 2021-11-23 12:27:57 +00:00 коммит произвёл GitHub
Родитель 8b44d5c39e
Коммит e99a040884
5 изменённых файлов: 20 добавлений и 15 удалений

Просмотреть файл

@ -416,9 +416,10 @@ class ThisArgumentOperand extends ArgumentOperand {
// in most cases the def location makes more sense, but in some corner cases it
// does not have a location: in those cases we fall back to the use location
override Language::Location getLocation() {
if exists(Language::Location loc | loc = this.getAnyDef().getLocation())
then result = this.getAnyDef().getLocation()
else result = this.getUse().getLocation()
result = this.getAnyDef().getLocation()
or
not exists(this.getAnyDef().getLocation()) and
result = this.getUse().getLocation()
}
}

Просмотреть файл

@ -416,9 +416,10 @@ class ThisArgumentOperand extends ArgumentOperand {
// in most cases the def location makes more sense, but in some corner cases it
// does not have a location: in those cases we fall back to the use location
override Language::Location getLocation() {
if exists(Language::Location loc | loc = this.getAnyDef().getLocation())
then result = this.getAnyDef().getLocation()
else result = this.getUse().getLocation()
result = this.getAnyDef().getLocation()
or
not exists(this.getAnyDef().getLocation()) and
result = this.getUse().getLocation()
}
}

Просмотреть файл

@ -416,9 +416,10 @@ class ThisArgumentOperand extends ArgumentOperand {
// in most cases the def location makes more sense, but in some corner cases it
// does not have a location: in those cases we fall back to the use location
override Language::Location getLocation() {
if exists(Language::Location loc | loc = this.getAnyDef().getLocation())
then result = this.getAnyDef().getLocation()
else result = this.getUse().getLocation()
result = this.getAnyDef().getLocation()
or
not exists(this.getAnyDef().getLocation()) and
result = this.getUse().getLocation()
}
}

Просмотреть файл

@ -416,9 +416,10 @@ class ThisArgumentOperand extends ArgumentOperand {
// in most cases the def location makes more sense, but in some corner cases it
// does not have a location: in those cases we fall back to the use location
override Language::Location getLocation() {
if exists(Language::Location loc | loc = this.getAnyDef().getLocation())
then result = this.getAnyDef().getLocation()
else result = this.getUse().getLocation()
result = this.getAnyDef().getLocation()
or
not exists(this.getAnyDef().getLocation()) and
result = this.getUse().getLocation()
}
}

Просмотреть файл

@ -416,9 +416,10 @@ class ThisArgumentOperand extends ArgumentOperand {
// in most cases the def location makes more sense, but in some corner cases it
// does not have a location: in those cases we fall back to the use location
override Language::Location getLocation() {
if exists(Language::Location loc | loc = this.getAnyDef().getLocation())
then result = this.getAnyDef().getLocation()
else result = this.getUse().getLocation()
result = this.getAnyDef().getLocation()
or
not exists(this.getAnyDef().getLocation()) and
result = this.getUse().getLocation()
}
}