Package | Description |
---|---|
net.sourceforge.htmlunit.corejs.javascript | |
net.sourceforge.htmlunit.corejs.javascript.ast |
Modifier and Type | Method and Description |
---|---|
protected Scope |
Parser.createScopeNode(int token,
int lineno)
Create a node that can be used to hold lexically scoped variable
definitions (via let declarations).
|
Scope |
Node.getScope()
Can only be called when node has String context.
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setScope(Scope s)
Can only be called when node has String context.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayComprehension
AST node for a JavaScript 1.7 Array comprehension.
|
class |
ArrayComprehensionLoop
AST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7
Array comprehension.
|
class |
AstRoot
Node for the root of a parse tree.
|
class |
DoLoop
Do statement.
|
class |
ForInLoop
For-in or for-each-in statement.
|
class |
ForLoop
C-style for-loop statement.
|
class |
FunctionNode
A JavaScript function declaration or expression.
|
class |
LetNode
AST node for let statements and expressions.
|
class |
Loop
Abstract base type for loops.
|
class |
ScriptNode
Base type for
AstRoot and FunctionNode nodes, which need to
collect much of the same information. |
class |
WhileLoop
While statement.
|
Modifier and Type | Field and Description |
---|---|
protected Scope |
Scope.parentScope |
Modifier and Type | Method and Description |
---|---|
Scope |
Symbol.getContainingTable()
Returns the Scope in which this symbol is entered
|
Scope |
Name.getDefiningScope()
Returns the
Scope in which this Name is defined. |
Scope |
Scope.getDefiningScope(java.lang.String name)
Returns the scope in which this name is defined
|
Scope |
AstNode.getEnclosingScope()
Returns the innermost enclosing
Scope node, or null
if we're not nested in a scope. |
Scope |
Scope.getParentScope() |
Scope |
Name.getScope()
Return the
Scope associated with this node. |
static Scope |
Scope.splitScope(Scope scope)
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Scope> |
Scope.getChildScopes()
Return a list of the scopes whose parent is this scope.
|
Modifier and Type | Method and Description |
---|---|
void |
Scope.addChildScope(Scope child)
Add a scope to our list of child scopes.
|
static void |
Scope.joinScopes(Scope source,
Scope dest)
Copies all symbols from source scope to dest scope.
|
void |
Scope.replaceWith(Scope newScope)
Used by the parser; not intended for typical use.
|
void |
Symbol.setContainingTable(Scope containingTable)
Sets this symbol's Scope
|
void |
Scope.setParentScope(Scope parentScope)
Sets parent scope
|
void |
Name.setScope(Scope s)
Set the
Scope associated with this node. |
static Scope |
Scope.splitScope(Scope scope)
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.
|