Index: tests/compiler/dart2js/mock_compiler.dart |
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart |
index 9c5b770cab1f0f5b31df76b4b6e9b973029c3384..cf612bfa423e9a8ec09a8d5540a9eeb63af9e21d 100644 |
--- a/tests/compiler/dart2js/mock_compiler.dart |
+++ b/tests/compiler/dart2js/mock_compiler.dart |
@@ -228,9 +228,9 @@ class MockCompiler extends Compiler { |
ExecutableElement element) { |
ResolverVisitor visitor = |
new ResolverVisitor( |
- this, |
+ this.resolution, |
element, |
- new ResolutionRegistry(this, |
+ new ResolutionRegistry(this.backend, |
new CollectingTreeElements(element)), |
scope: new MockTypeVariablesScope( |
element.enclosingElement.buildScope())); |
@@ -247,10 +247,10 @@ class MockCompiler extends Compiler { |
Element mockElement = new MockElement(mainApp.entryCompilationUnit); |
ResolverVisitor visitor = |
new ResolverVisitor( |
- this, |
+ this.resolution, |
mockElement, |
new ResolutionRegistry( |
- this, new CollectingTreeElements(mockElement)), |
+ this.backend, new CollectingTreeElements(mockElement)), |
scope: mockElement.enclosingElement.buildScope()); |
visitor.scope = new MethodScope(visitor.scope, mockElement); |
return visitor; |