-
Create a node that can be used to hold lexically scoped variable definitions (via let
declarations).
Can only be called when node has String context.
void
Can only be called when node has String context.
-
class
AST node for a JavaScript 1.7 Array comprehension.
class
AST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.
class
Node for the root of a parse tree.
class
class
For-in or for-each-in or for-of statement.
class
C-style for-loop statement.
class
A JavaScript function declaration or expression.
class
class
class
AST node for let statements and expressions.
class
Abstract base type for loops.
class
Base type for
AstRoot
and
FunctionNode
nodes, which need to collect much of the
same information.
class
Returns the Scope in which this symbol is entered
Returns the
Scope
in which this
Name
is defined.
Returns the scope in which this name is defined
Returns the innermost enclosing
Scope
node, or
null
if we're not nested in a
scope.
Return the
Scope
associated with this node.
Creates a new scope node, moving symbol table information from "scope" to the new node, and
making "scope" a nested scope contained by the new node.
Return a list of the scopes whose parent is this scope.
void
Add a scope to our list of child scopes.
static void
Copies all symbols from source scope to dest scope.
void
Used by the parser; not intended for typical use.
void
Sets catch body, and sets its parent to this node.
void
void
void
Set the
Scope
associated with this node.
Creates a new scope node, moving symbol table information from "scope" to the new node, and
making "scope" a nested scope contained by the new node.