Address review comment

This commit is contained in:
Tom Hvitved
2024-05-03 14:09:41 +02:00
parent 8ec4f0b5bd
commit 3c91333d0b
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ private ControlFlowElement getBody(Callable c) {
}
pragma[nomagic]
private Location getASourceLocation(Element e) {
private SourceLocation getASourceLocation(Element e) {
result = e.getALocation().(SourceLocation) and
not exists(e.getALocation().(SourceLocation).getMappedLocation())
or

View File

@@ -63,7 +63,7 @@ class EmptyLocation extends Location {
*/
class SourceLocation extends Location, @location_default {
/** Gets the location that takes into account `#line` directives, if any. */
Location getMappedLocation() {
SourceLocation getMappedLocation() {
locations_mapped(this, result) and
not exists(LineDirective l | l.getALocation() = this)
}