Files
codeql/java/ql/lib/upgrades/e7706df98aaefcf055f35f50582f2686f41c23bb/hasLocation.ql
Dave Bartolomeo 83ceb822aa Move upgrades into standard library packs
Move upgrade to new location

Remove incorrectly merged files

Fix upgrades section
2022-01-04 11:30:25 -08:00

18 lines
415 B
Plaintext

class Locatable extends @locatable {
string toString() { result = "locatable" }
}
class Location extends @location {
string toString() { result = "location" }
}
class ParExpr extends Locatable, @parexpr {
override string toString() { result = "(...)" }
}
from Locatable locatable, Location location
where
hasLocation(locatable, location) and
not locatable instanceof ParExpr
select locatable, location