public class SyntacticScopeCreator
extends java.lang.Object
The syntactic scope creator scans the parse tree to create a Scope object containing all the variable declarations in that scope.
This implementation is not thread-safe.
Modifier and Type | Method and Description |
---|---|
<T extends Scope> |
createScope(Node n,
T parent)
Creates a
Scope object. |
boolean |
hasBlockScope() |
static SyntacticScopeCreator |
makeUntyped(AbstractCompiler compiler)
Deprecated.
Use Es6SyntacticScopeCreator instead.
|
@Deprecated public static SyntacticScopeCreator makeUntyped(AbstractCompiler compiler)
public <T extends Scope> T createScope(Node n, T parent)
Scope
object.n
- the root node (either a FUNCTION node, a SCRIPT node, or a
synthetic block node whose children are all SCRIPT nodes)parent
- the parent Scope object (may be null)public boolean hasBlockScope()
Copyright © 2009-2017 Google. All Rights Reserved.