CodeQL library for JavaScript
Search

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()