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

Unified Diff: pkg/compiler/lib/src/constant_system_dart.dart

Issue 2620023002: Use elements/types in constants/values (Closed)
Patch Set: Created 3 years, 11 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: pkg/compiler/lib/src/constant_system_dart.dart
diff --git a/pkg/compiler/lib/src/constant_system_dart.dart b/pkg/compiler/lib/src/constant_system_dart.dart
index cc126361c90fc3c5847f0a3526a3bca0e00a99de..7c3ebc103d3ca7fffddf04f862ad9a8a1b0af6e8 100644
--- a/pkg/compiler/lib/src/constant_system_dart.dart
+++ b/pkg/compiler/lib/src/constant_system_dart.dart
@@ -458,10 +458,10 @@ class DartConstantSystem extends ConstantSystem {
// TODO(johnniwinther): Change the `Type` type to
// `compiler.commonElements.typeType` and check the backend specific value
// in [checkConstMapKeysDontOverrideEquals] in 'members.dart'.
- return new TypeConstantValue(
- type,
- compiler.backend.backendClasses.typeImplementation
- .computeType(compiler.resolution));
+ ResolutionInterfaceType implementationType = compiler
+ .backend.backendClasses.typeImplementation
+ .computeType(compiler.resolution);
+ return new TypeConstantValue(type, implementationType);
}
@override

Powered by Google App Engine
This is Rietveld 408576698