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

Class Scope

A scope in which variables can be declared.

Import path

import javascript

Direct supertypes

Known direct subtypes

Predicates

getAVariable

Gets a variable declared in this scope.

getAnInnerScope

Gets a scope nested in this one, if any.

getLocation

Gets the location of the program element this scope is associated with, if any.

getOuterScope

Gets the scope in which this scope is nested, if any.

getScopeElement

Gets the program element this scope is associated with, if any.

getVariable

Gets the variable with the given name declared in this scope.

toString

Gets a textual representation of this element.