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

Unified Diff: pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart

Issue 1121233002: Add ConstantExpression.evaluate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 7 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/js_backend/custom_elements_analysis.dart
diff --git a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
index 99c46ca8a3461756540770966cb1519263428a79..6afef1bb9577051bd3dc4c836bac31fa345c5c68 100644
--- a/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
+++ b/pkg/compiler/lib/src/js_backend/custom_elements_analysis.dart
@@ -178,8 +178,7 @@ class CustomElementsAnalysisJoin {
TypeConstantValue makeTypeConstant(ClassElement element) {
DartType elementType = element.rawType;
- DartType constantType = backend.typeImplementation.rawType;
- return new TypeConstantValue(elementType, constantType);
+ return backend.constantSystem.createType(compiler, elementType);
}
List<Element> computeEscapingConstructors(ClassElement classElement) {

Powered by Google App Engine
This is Rietveld 408576698