Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: tests/compiler/dart2js/resolver_test.dart

Issue 2123073003: remove dependency on compiler from resolution (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: respond to comments Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 2e1868a804fa7a5e1487becd01f106384d70a68f..5ddf37cdaf0c1e94fef2f8412c6957cbbc2282c0 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -223,9 +223,11 @@ Future testSuperCalls() {
FunctionElement fooA = classA.lookupLocalMember("foo");
ResolverVisitor visitor = new ResolverVisitor(
- compiler,
+ compiler.resolution,
fooB,
- new ResolutionRegistry(compiler, new CollectingTreeElements(fooB)),
+ new ResolutionRegistry(
+ compiler.backend,
+ new CollectingTreeElements(fooB)),
scope: new MockTypeVariablesScope(classB.buildScope()));
FunctionExpression node =
(fooB as FunctionElementX).parseNode(compiler.parsingContext);
@@ -268,10 +270,10 @@ Future testThis() {
ClassElement fooElement = compiler.mainApp.find("Foo");
FunctionElement funElement = fooElement.lookupLocalMember("foo");
ResolverVisitor visitor = new ResolverVisitor(
- compiler,
+ compiler.resolution,
funElement,
new ResolutionRegistry(
- compiler, new CollectingTreeElements(funElement)),
+ compiler.backend, new CollectingTreeElements(funElement)),
scope: new MockTypeVariablesScope(fooElement.buildScope()));
FunctionExpression function =
(funElement as FunctionElementX).parseNode(compiler.parsingContext);
@@ -296,10 +298,10 @@ Future testThis() {
ClassElement fooElement = compiler.mainApp.find("Foo");
FunctionElement funElement = fooElement.lookupLocalMember("foo");
ResolverVisitor visitor = new ResolverVisitor(
- compiler,
+ compiler.resolution,
funElement,
new ResolutionRegistry(
- compiler, new CollectingTreeElements(funElement)),
+ compiler.backend, new CollectingTreeElements(funElement)),
scope: new MockTypeVariablesScope(fooElement.buildScope()));
FunctionExpression function =
(funElement as FunctionElementX).parseNode(compiler.parsingContext);
@@ -588,9 +590,11 @@ Future testOneInterface() {
compiler.parseScript("abstract class Bar {}");
ResolverVisitor visitor = new ResolverVisitor(
- compiler,
+ compiler.resolution,
null,
- new ResolutionRegistry(compiler, new CollectingTreeElements(null)));
+ new ResolutionRegistry(
+ compiler.backend,
+ new CollectingTreeElements(null)));
compiler.resolveStatement("Foo bar;");
ClassElement fooElement = compiler.mainApp.find('Foo');
@@ -707,9 +711,11 @@ Future resolveConstructor(
element = classElement.lookupConstructor(constructor);
FunctionExpression tree = (element as FunctionElement).node;
ResolverVisitor visitor = new ResolverVisitor(
- compiler,
+ compiler.resolution,
element,
- new ResolutionRegistry(compiler, new CollectingTreeElements(element)),
+ new ResolutionRegistry(
+ compiler.backend,
+ new CollectingTreeElements(element)),
scope: classElement.buildScope());
new InitializerResolver(visitor, element, tree).resolveInitializers();
visitor.visit(tree.body);
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698