Uses of Class
org.htmlunit.corejs.javascript.ast.Scope
-
Packages that use Scope Package Description org.htmlunit.corejs.javascript org.htmlunit.corejs.javascript.ast -
-
Uses of Scope in org.htmlunit.corejs.javascript
Fields in org.htmlunit.corejs.javascript declared as Scope Modifier and Type Field Description (package private) Scope
Parser. currentScope
private Scope
Parser.PerFunctionVariables. savedCurrentScope
Methods in org.htmlunit.corejs.javascript that return Scope Modifier and Type Method Description private Scope
IRFactory. createLoopNode(Node loopLabel, int lineno)
Create loop node.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.Methods in org.htmlunit.corejs.javascript with parameters of type Scope Modifier and Type Method Description private static Node
IRFactory. createFor(Scope loop, Node init, Node test, Node incr, Node body)
(package private) void
Parser. pushScope(Scope scope)
void
Node. setScope(Scope s)
Can only be called when node has String context.private void
NodeTransformer. transformCompilationUnit_r(ScriptNode tree, Node parent, Scope scope, boolean createScopeObjects, boolean inStrictMode)
-
Uses of Scope in org.htmlunit.corejs.javascript.ast
Subclasses of Scope in org.htmlunit.corejs.javascript.ast Modifier and Type Class 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 or for-of statement.class
ForLoop
C-style for-loop statement.class
FunctionNode
A JavaScript function declaration or expression.class
GeneratorExpression
class
GeneratorExpressionLoop
class
LetNode
AST node for let statements and expressions.class
Loop
Abstract base type for loops.class
ScriptNode
Base type forAstRoot
andFunctionNode
nodes, which need to collect much of the same information.class
WhileLoop
While statement.Fields in org.htmlunit.corejs.javascript.ast declared as Scope Modifier and Type Field Description private Scope
CatchClause. body
private Scope
Symbol. containingTable
protected Scope
Scope. parentScope
private Scope
Name. scope
Fields in org.htmlunit.corejs.javascript.ast with type parameters of type Scope Modifier and Type Field Description private java.util.List<Scope>
Scope. childScopes
Methods in org.htmlunit.corejs.javascript.ast that return Scope Modifier and Type Method Description Scope
CatchClause. getBody()
Returns catch bodyScope
Symbol. getContainingTable()
Returns the Scope in which this symbol is enteredScope
Name. getDefiningScope()
Returns theScope
in which thisName
is defined.Scope
Scope. getDefiningScope(java.lang.String name)
Returns the scope in which this name is definedScope
AstNode. getEnclosingScope()
Returns the innermost enclosingScope
node, ornull
if we're not nested in a scope.Scope
Scope. getParentScope()
Scope
Name. getScope()
Return theScope
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.Methods in org.htmlunit.corejs.javascript.ast that return types with arguments of type Scope Modifier and Type Method Description java.util.List<Scope>
Scope. getChildScopes()
Return a list of the scopes whose parent is this scope.Methods in org.htmlunit.corejs.javascript.ast with parameters of type Scope Modifier and Type Method 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
CatchClause. setBody(Scope body)
Sets catch body, and sets its parent to this node.void
Symbol. setContainingTable(Scope containingTable)
Sets this symbol's Scopevoid
Scope. setParentScope(Scope parentScope)
Sets parent scopevoid
Name. setScope(Scope s)
Set theScope
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.
-