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

Unified Diff: pkg/compiler/lib/src/js_backend/constant_handler_javascript.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/constant_handler_javascript.dart
diff --git a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart
index 4771a5bc6e44f27c3d9370cb97b5a89a27d675bb..5f2cab828f9ce68fc8c185a501f05702cbb1df9c 100644
--- a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart
+++ b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart
@@ -203,14 +203,6 @@ class JavaScriptConstantCompiler extends ConstantCompilerBase
return constant;
}
- ConstantExpression createTypeConstant(TypeDeclarationElement element) {
- DartType elementType = element.rawType;
- DartType constantType =
- compiler.backend.typeImplementation.computeType(compiler);
- return new TypeConstantExpression(
- new TypeConstantValue(elementType, constantType), elementType);
- }
-
void forgetElement(Element element) {
super.forgetElement(element);
const ForgetConstantElementVisitor().visit(element, this);
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698