CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.3 (changelog, source)

Member predicate API::Node::hasLocationInfo

Holds if this node is located in file path between line startline, column startcol, and line endline, column endcol.

For nodes that do not have a meaningful location, path is the empty string and all other parameters are zero.

predicate hasLocationInfo(string path, int startline, int startcol, int endline, int endcol)