Skip to content

Commit c94c694

Browse files
committed
Document Content::hasLocationInfo
1 parent cf7c966 commit c94c694

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java/ql/src/semmle/code/java/dataflow/internal/DataFlowUtil.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ class Content extends TContent {
173173
/** Gets a textual representation of this element. */
174174
abstract string toString();
175175

176+
/**
177+
* Holds if this element is at the specified location.
178+
* The location spans column `startcolumn` of line `startline` to
179+
* column `endcolumn` of line `endline` in file `filepath`.
180+
* For more information, see
181+
* [Locations](https://help.semmle.com/QL/learn-ql/ql/locations.html).
182+
*/
176183
predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {
177184
path = "" and sl = 0 and sc = 0 and el = 0 and ec = 0
178185
}

0 commit comments

Comments
 (0)