Skip to content

Commit 2de9af2

Browse files
committed
JS: Update to getLocation() in DeduplicatePathGraph
1 parent c408ab9 commit 2de9af2

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

shared/dataflow/codeql/dataflow/DataFlow.qll

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,19 +1004,8 @@ module DataFlowMake<LocationSig Location, InputSig<Location> Lang> {
10041004
result = this.asPreservedNode().toString() or this = TCollapsedPathNode(_, result)
10051005
}
10061006

1007-
/**
1008-
* Holds if this element is at the specified location.
1009-
* The location spans column `startcolumn` of line `startline` to
1010-
* column `endcolumn` of line `endline` in file `filepath`.
1011-
* For more information, see
1012-
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
1013-
*/
1014-
predicate hasLocationInfo(
1015-
string filepath, int startline, int startcolumn, int endline, int endcolumn
1016-
) {
1017-
this.getAnOriginalPathNode()
1018-
.hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn)
1019-
}
1007+
/** Gets the location of this node. */
1008+
Location getLocation() { result = this.getAnOriginalPathNode().getLocation() }
10201009

10211010
/** Gets the corresponding data-flow node. */
10221011
Node getNode() {

0 commit comments

Comments
 (0)