Class Variables::Variable

A variable declared in a scope.

Direct supertypes

Indirect supertypes

Known direct subtypes

Predicates

declaredIn

Holds if there is a declaration of this variable in tl.

getADeclaration

Gets a declaration declaring this variable, if any.

getADeclarationStatement

Gets a declaration statement declaring this variable, if any.

getADefinition

Gets a definition for this variable.

getAReference

Gets a reference to this variable.

getAnAccess

Gets an access to this variable.

getAnAssignedExpr

Gets an expression that is directly stored in this variable.

getDeclarationSpace

Gets the declaration space this name belongs to.

getName

Gets the name of this variable.

getScope

Gets the scope this variable is declared in.

isCaptured

Holds if this variable is captured in the closure of a nested function.

isGlobal

Holds if this is a global variable.

isLocal

Holds if this is a local variable.

isNamespaceExport

Holds if this is a variable exported from a TypeScript namespace.

isParameter

Holds if this variable is a parameter.

toString

Gets a textual representation of this element.