Use location of first node for BasicBlock

This commit is contained in:
Owen Mansel-Chan
2025-02-26 12:00:56 +00:00
parent 1b2d842b44
commit 759f0583cb

View File

@@ -124,8 +124,7 @@ class BasicBlock extends TControlFlowNode {
predicate hasLocationInfo(
string filepath, int startline, int startcolumn, int endline, int endcolumn
) {
this.getFirstNode().hasLocationInfo(filepath, startline, startcolumn, _, _) and
this.getLastNode().hasLocationInfo(_, _, _, endline, endcolumn)
this.getFirstNode().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
}
}