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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart

Issue 177963002: Use List instead of Link in the type system. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 6 years, 6 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 | « no previous file | sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
index 9db2de3f3fa30debaa545f731c1fe4dacb9e0332..8932ad0f17a54eec0cf683333b44f8f2bd91f6ac 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/dart_codegen.dart
@@ -409,7 +409,7 @@ class ASTEmitter extends tree.Visitor<dynamic, Expression> {
visitExpression(exp.values[i])));
List<TypeAnnotation> typeArguments = exp.type.treatAsRaw
? null
- : exp.type.typeArguments.mapToList(emitType);
+ : exp.type.typeArguments.map(emitType).toList(growable: false);
return new LiteralMap(entries, typeArguments: typeArguments);
}
@@ -542,7 +542,7 @@ class ASTEmitter extends tree.Visitor<dynamic, Expression> {
if (type is GenericType) {
return new TypeAnnotation(
type.element.name,
- type.typeArguments.mapToList(emitType, growable:false))
+ type.typeArguments.map(emitType).toList(growable:false))
..dartType = type;
} else if (type is VoidType) {
return new TypeAnnotation('void')
@@ -597,7 +597,7 @@ class ConstantEmitter extends ConstExpVisitor<Expression> {
visit(exp.values[i])));
List<TypeAnnotation> typeArguments = exp.type.treatAsRaw
? null
- : exp.type.typeArguments.mapToList(parent.emitType);
+ : exp.type.typeArguments.map(parent.emitType).toList();
return new LiteralMap(entries, isConst: true, typeArguments: typeArguments);
}
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/dart_backend/renamer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698