Skip to content

Commit 3c91333

Browse files
committed
Address review comment
1 parent 8ec4f0b commit 3c91333

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

csharp/ql/lib/semmle/code/csharp/ExprOrStmtParent.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private ControlFlowElement getBody(Callable c) {
6666
}
6767

6868
pragma[nomagic]
69-
private Location getASourceLocation(Element e) {
69+
private SourceLocation getASourceLocation(Element e) {
7070
result = e.getALocation().(SourceLocation) and
7171
not exists(e.getALocation().(SourceLocation).getMappedLocation())
7272
or

csharp/ql/lib/semmle/code/csharp/Location.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class EmptyLocation extends Location {
6363
*/
6464
class SourceLocation extends Location, @location_default {
6565
/** Gets the location that takes into account `#line` directives, if any. */
66-
Location getMappedLocation() {
66+
SourceLocation getMappedLocation() {
6767
locations_mapped(this, result) and
6868
not exists(LineDirective l | l.getALocation() = this)
6969
}

0 commit comments

Comments
 (0)