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

Member predicate API::Node::hasLocationInfo

DEPRECATED: Use getLocation().hasLocationInfo() instead.

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)