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

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

Issue 1892183002: Refactor Parsing to remove compiler dependency (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/patch_test.dart ('k') | tests/compiler/dart2js/serialization_helper.dart » ('j') | 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 a69ce726f4c7350d62122c3c38337d512413aa64..f8fb47940a747c0cd2d23621ca0f56075e6e33aa 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -227,7 +227,7 @@ Future testSuperCalls() {
new ResolutionRegistry(compiler,
new CollectingTreeElements(fooB)));
FunctionExpression node =
- (fooB as FunctionElementX).parseNode(compiler.parsing);
+ (fooB as FunctionElementX).parseNode(compiler.parsingContext);
visitor.visit(node.body);
Map mapping = map(visitor);
@@ -271,7 +271,7 @@ Future testThis() {
new ResolutionRegistry(compiler,
new CollectingTreeElements(funElement)));
FunctionExpression function =
- (funElement as FunctionElementX).parseNode(compiler.parsing);
+ (funElement as FunctionElementX).parseNode(compiler.parsingContext);
visitor.visit(function.body);
Map mapping = map(visitor);
List<Element> values = mapping.values.toList();
@@ -296,7 +296,7 @@ Future testThis() {
new ResolutionRegistry(compiler,
new CollectingTreeElements(funElement)));
FunctionExpression function =
- (funElement as FunctionElementX).parseNode(compiler.parsing);
+ (funElement as FunctionElementX).parseNode(compiler.parsingContext);
visitor.visit(function.body);
DiagnosticCollector collector = compiler.diagnosticCollector;
Expect.equals(0, collector.warnings.length);
@@ -665,7 +665,7 @@ Future testTopLevelFields() {
VariableElementX element = compiler.mainApp.find("a");
Expect.equals(ElementKind.FIELD, element.kind);
VariableDefinitions node =
- element.variables.parseNode(element, compiler.parsing);
+ element.variables.parseNode(element, compiler.parsingContext);
Identifier typeName = node.type.typeName;
Expect.equals(typeName.source, 'int');
@@ -677,9 +677,9 @@ Future testTopLevelFields() {
Expect.isTrue(bElement != cElement);
VariableDefinitions bNode =
- bElement.variables.parseNode(bElement, compiler.parsing);
+ bElement.variables.parseNode(bElement, compiler.parsingContext);
VariableDefinitions cNode =
- cElement.variables.parseNode(cElement, compiler.parsing);
+ cElement.variables.parseNode(cElement, compiler.parsingContext);
Expect.equals(bNode, cNode);
Expect.isNull(bNode.type);
Expect.isTrue(bNode.modifiers.isVar);
« no previous file with comments | « tests/compiler/dart2js/patch_test.dart ('k') | tests/compiler/dart2js/serialization_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698