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

Member predicate LocalVariable::getLocation

Gets the location of a declaration of this variable.

If the variable has one or more declarations, the location of the first declaration is used. If the variable has no declaration, the entry point of its declaring container is used.

DbLocation getLocation()