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

Class NamespaceScope

The lexical scope induced by a TypeScript namespace declaration.

This scope is specific to a single syntactic declaration of a namespace, and currently does not include variables exported from other declarations of the same namespace.

Import path

import javascript

Direct supertypes

Indirect supertypes

Predicates

toString

Gets a textual representation of this element.

Inherited predicates

getAVariable

Gets a variable declared in this scope.

from Scope
getAnInnerScope

Gets a scope nested in this one, if any.

from Scope
getLocation

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

from Scope
getOuterScope

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

from Scope
getScopeElement

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

from Scope
getVariable

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

from Scope