CodeQL library for JavaScript

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.

Location getLocation()