Uses of Class
org.mozilla.javascript.ast.Scope
Packages that use Scope
-
Uses of Scope in org.mozilla.javascript
Methods in org.mozilla.javascript that return ScopeModifier and TypeMethodDescriptionprotected ScopeParser.createScopeNode(int token, int lineno, int column) Create a node that can be used to hold lexically scoped variable definitions (via let declarations).Node.getScope()Can only be called when node has String context.Methods in org.mozilla.javascript with parameters of type Scope -
Uses of Scope in org.mozilla.javascript.ast
Subclasses of Scope in org.mozilla.javascript.astModifier and TypeClassDescriptionclassAST node for a JavaScript 1.7 Array comprehension.classAST node for a single 'for (foo in bar)' loop construct in a JavaScript 1.7 Array comprehension.classNode for the root of a parse tree.classDo statement.classFor-in or for-each-in or for-of statement.classC-style for-loop statement.classA JavaScript function declaration or expression.classclassclassAST node for let statements and expressions.classAbstract base type for loops.classBase type forAstRootandFunctionNodenodes, which need to collect much of the same information.classWhile statement.Fields in org.mozilla.javascript.ast declared as ScopeMethods in org.mozilla.javascript.ast that return ScopeModifier and TypeMethodDescriptionCatchClause.getBody()Returns catch bodySymbol.getContainingTable()Returns the Scope in which this symbol is enteredName.getDefiningScope()Returns theScopein which thisNameis defined.Scope.getDefiningScope(String name) Returns the scope in which this name is definedAstNode.getEnclosingScope()Returns the innermost enclosingScopenode, ornullif we're not nested in a scope.Scope.getParentScope()Name.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.mozilla.javascript.ast that return types with arguments of type ScopeModifier and TypeMethodDescriptionScope.getChildScopes()Return a list of the scopes whose parent is this scope.Methods in org.mozilla.javascript.ast with parameters of type ScopeModifier and TypeMethodDescriptionvoidScope.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.voidSets catch body, and sets its parent to this node.voidSymbol.setContainingTable(Scope containingTable) Sets this symbol's ScopevoidScope.setParentScope(Scope parentScope) Sets parent scopevoidSet 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.