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) ScopeParser. currentScopeprivate ScopeParser.PerFunctionVariables. savedCurrentScopeMethods in org.htmlunit.corejs.javascript that return Scope Modifier and Type Method Description private ScopeIRFactory. createLoopNode(Node loopLabel, int lineno)Create loop node.protected ScopeParser. createScopeNode(int token, int lineno)Create a node that can be used to hold lexically scoped variable definitions (via let declarations).ScopeNode. 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 NodeIRFactory. createFor(Scope loop, Node init, Node test, Node incr, Node body)(package private) voidParser. pushScope(Scope scope)voidNode. setScope(Scope s)Can only be called when node has String context.private voidNodeTransformer. 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 classArrayComprehensionAST node for a JavaScript 1.7 Array comprehension.classArrayComprehensionLoopAST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.classAstRootNode for the root of a parse tree.classDoLoopDo statement.classForInLoopFor-in or for-each-in or for-of statement.classForLoopC-style for-loop statement.classFunctionNodeA JavaScript function declaration or expression.classGeneratorExpressionclassGeneratorExpressionLoopclassLetNodeAST node for let statements and expressions.classLoopAbstract base type for loops.classScriptNodeBase type forAstRootandFunctionNodenodes, which need to collect much of the same information.classWhileLoopWhile statement.Fields in org.htmlunit.corejs.javascript.ast declared as Scope Modifier and Type Field Description private ScopeCatchClause. bodyprivate ScopeSymbol. containingTableprotected ScopeScope. parentScopeprivate ScopeName. scopeFields in org.htmlunit.corejs.javascript.ast with type parameters of type Scope Modifier and Type Field Description private java.util.List<Scope>Scope. childScopesMethods in org.htmlunit.corejs.javascript.ast that return Scope Modifier and Type Method Description ScopeCatchClause. getBody()Returns catch bodyScopeSymbol. getContainingTable()Returns the Scope in which this symbol is enteredScopeName. getDefiningScope()Returns theScopein which thisNameis defined.ScopeScope. getDefiningScope(java.lang.String name)Returns the scope in which this name is definedScopeAstNode. getEnclosingScope()Returns the innermost enclosingScopenode, ornullif we're not nested in a scope.ScopeScope. getParentScope()ScopeName. getScope()Return theScopeassociated with this node.static ScopeScope. 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 voidScope. addChildScope(Scope child)Add a scope to our list of child scopes.static voidScope. joinScopes(Scope source, Scope dest)Copies all symbols from source scope to dest scope.voidScope. replaceWith(Scope newScope)Used by the parser; not intended for typical use.voidCatchClause. setBody(Scope body)Sets catch body, and sets its parent to this node.voidSymbol. setContainingTable(Scope containingTable)Sets this symbol's ScopevoidScope. setParentScope(Scope parentScope)Sets parent scopevoidName. setScope(Scope s)Set theScopeassociated with this node.static ScopeScope. 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.
-