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

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

Issue 2567133002: Add support for the new function-type syntax. (Closed)
Patch Set: Fixes after rebase. Created 3 years, 10 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
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 3035fbf822bdb6d44c169b78fd0eb0482e7073d3..d1c90be431666d63de178c79d95ad69ec9acfe90 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -149,8 +149,9 @@ Future testTypeVariables() {
visitor.visit(definition.type);
ResolutionInterfaceType type =
visitor.registry.mapping.getType(definition.type);
+ NominalTypeAnnotation annotation = definition.type;
Expect.equals(
- definition.type.typeArguments.slowLength(), type.typeArguments.length);
+ annotation.typeArguments.slowLength(), type.typeArguments.length);
int index = 0;
for (ResolutionDartType argument in type.typeArguments) {
Expect.equals(true, index < expectedElements.length);
@@ -700,7 +701,8 @@ Future testTopLevelFields() {
Expect.equals(ElementKind.FIELD, element.kind);
VariableDefinitions node =
element.variables.parseNode(element, compiler.parsingContext);
- Identifier typeName = node.type.typeName;
+ NominalTypeAnnotation annotation = node.type;
+ Identifier typeName = annotation.typeName;
Expect.equals(typeName.source, 'int');
compiler.parseScript("var b, c;");

Powered by Google App Engine
This is Rietveld 408576698