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

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: Rebase and some algorithmic bugs fixed. Created 6 years, 9 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 b02a293ca13667ac770170d596209789721bf522..b765de0bf3e37384cde3debd25887088b18c3ba6 100644
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -331,8 +331,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.first];
keysType = new InterfaceType(compiler.listClass, arguments);
}
ListConstant keysList = new ListConstant(keysType, keys);
@@ -342,7 +341,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