Skip to content

Commit

Permalink
Remove a reference to the old scope creator.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158923910
  • Loading branch information
concavelenz authored and Tyler Breisacher committed Jun 14, 2017
1 parent a1fa7c6 commit af4c16d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void testMemoization() throws Exception {
Node root2 = new Node(Token.ROOT);
Compiler compiler = new Compiler();
compiler.initOptions(new CompilerOptions());
ScopeCreator creator = new MemoizedScopeCreator(SyntacticScopeCreator.makeUntyped(compiler));
ScopeCreator creator = new MemoizedScopeCreator(new Es6SyntacticScopeCreator(compiler));
Scope scopeA = creator.createScope(root1, null);
assertSame(scopeA, creator.createScope(root1, null));
assertNotSame(scopeA, creator.createScope(root2, null));
Expand All @@ -41,7 +41,7 @@ public void testPreconditionCheck() throws Exception {
Compiler compiler = new Compiler();
compiler.initOptions(new CompilerOptions());
Node root = new Node(Token.ROOT);
ScopeCreator creator = new MemoizedScopeCreator(SyntacticScopeCreator.makeUntyped(compiler));
ScopeCreator creator = new MemoizedScopeCreator(new Es6SyntacticScopeCreator(compiler));
Scope scopeA = creator.createScope(root, null);

boolean handled = false;
Expand Down

0 comments on commit af4c16d

Please sign in to comment.