-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish the migration to the Es6SyntacticScopeCreator by renaming the …
…class SyntacticScopeCreator. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=257835869
- Loading branch information
1 parent
40647e9
commit 224ba4b
Showing
38 changed files
with
98 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,15 +24,15 @@ | |
import javax.annotation.Nullable; | ||
|
||
/** | ||
* <p>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.</p> | ||
* 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. | ||
* | ||
* <p>This implementation is not thread-safe.</p> | ||
* <p>This implementation is not thread-safe. | ||
* | ||
* @author [email protected] (Michael Zhou) | ||
*/ | ||
public class Es6SyntacticScopeCreator implements ScopeCreator { | ||
public class SyntacticScopeCreator implements ScopeCreator { | ||
private final AbstractCompiler compiler; | ||
private final RedeclarationHandler redeclarationHandler; | ||
private final ScopeFactory scopeFactory; | ||
|
@@ -44,22 +44,21 @@ public class Es6SyntacticScopeCreator implements ScopeCreator { | |
public static final RedeclarationHandler DEFAULT_REDECLARATION_HANDLER = | ||
new DefaultRedeclarationHandler(); | ||
|
||
|
||
public Es6SyntacticScopeCreator(AbstractCompiler compiler) { | ||
public SyntacticScopeCreator(AbstractCompiler compiler) { | ||
this(compiler, DEFAULT_REDECLARATION_HANDLER); | ||
} | ||
|
||
public Es6SyntacticScopeCreator(AbstractCompiler compiler, ScopeFactory scopeFactory) { | ||
public SyntacticScopeCreator(AbstractCompiler compiler, ScopeFactory scopeFactory) { | ||
this(compiler, DEFAULT_REDECLARATION_HANDLER, scopeFactory); | ||
} | ||
|
||
Es6SyntacticScopeCreator( | ||
AbstractCompiler compiler, RedeclarationHandler redeclarationHandler) { | ||
SyntacticScopeCreator(AbstractCompiler compiler, RedeclarationHandler redeclarationHandler) { | ||
this(compiler, redeclarationHandler, new DefaultScopeFactory()); | ||
} | ||
|
||
Es6SyntacticScopeCreator( | ||
AbstractCompiler compiler, RedeclarationHandler redeclarationHandler, | ||
SyntacticScopeCreator( | ||
AbstractCompiler compiler, | ||
RedeclarationHandler redeclarationHandler, | ||
ScopeFactory scopeFactory) { | ||
this.compiler = compiler; | ||
this.redeclarationHandler = redeclarationHandler; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.