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

Unified Diff: sdk/lib/_internal/compiler/implementation/compile_time_constants.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: Created 6 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: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
index 1a57ccb93d2975cc7688b5ed89bb012874ad8439..aedcc4c1ef0b71e735b1927b6e2459666a379875 100644
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -332,8 +332,7 @@ class CompileTimeConstantEvaluator extends Visitor {
if (sourceType.treatAsRaw) {
keysType = compiler.listClass.rawType;
} else {
- Link<DartType> arguments =
- new Link<DartType>.fromList([sourceType.typeArguments.head]);
+ List<DartType> arguments = <DartType>[sourceType.typeArguments[0]];
Johnni Winther 2014/02/26 14:01:54 Why not use 'typeArguments.first' here?
karlklose 2014/02/27 09:31:41 Done.
keysType = new InterfaceType(compiler.listClass, arguments);
}
ListConstant keysList = new ListConstant(keysType, keys);
@@ -343,7 +342,7 @@ class CompileTimeConstantEvaluator extends Visitor {
: MapConstant.DART_GENERAL_CLASS;
ClassElement classElement = compiler.jsHelperLibrary.find(className);
classElement.ensureResolved(compiler);
- Link<DartType> typeArgument = sourceType.typeArguments;
+ List<DartType> typeArgument = sourceType.typeArguments;
InterfaceType type;
if (sourceType.treatAsRaw) {
type = classElement.rawType;

Powered by Google App Engine
This is Rietveld 408576698