public class Es6SyntacticScopeCreator
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 class adds support for block-level scopes introduced in ECMAScript 6.
This implementation is not thread-safe.
Modifier and Type | Class and Description |
---|---|
static interface |
Es6SyntacticScopeCreator.ScopeFactory
A simple API for injecting the use of alternative Scope classes
|
Modifier and Type | Field and Description |
---|---|
static com.google.javascript.jscomp.Es6SyntacticScopeCreator.RedeclarationHandler |
DEFAULT_REDECLARATION_HANDLER |
Constructor and Description |
---|
Es6SyntacticScopeCreator(AbstractCompiler compiler) |
Es6SyntacticScopeCreator(AbstractCompiler compiler,
Es6SyntacticScopeCreator.ScopeFactory scopeFactory) |
Modifier and Type | Method and Description |
---|---|
Scope |
createScope(Node n,
Scope parent)
Creates a
Scope object. |
boolean |
hasBlockScope() |
public static final com.google.javascript.jscomp.Es6SyntacticScopeCreator.RedeclarationHandler DEFAULT_REDECLARATION_HANDLER
public Es6SyntacticScopeCreator(AbstractCompiler compiler)
public Es6SyntacticScopeCreator(AbstractCompiler compiler, Es6SyntacticScopeCreator.ScopeFactory scopeFactory)
Copyright © 2009-2017 Google. All Rights Reserved.