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

Unified Diff: lib/compiler/implementation/enqueue.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a test for literals. Created 8 years, 2 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: lib/compiler/implementation/enqueue.dart
diff --git a/lib/compiler/implementation/enqueue.dart b/lib/compiler/implementation/enqueue.dart
index 6ac8d8f8fa1fce744fa567f3016d24a42f1a35e8..fd3d63199dae516c6426590795c87a2d1db19dec 100644
--- a/lib/compiler/implementation/enqueue.dart
+++ b/lib/compiler/implementation/enqueue.dart
@@ -102,7 +102,7 @@ class Enqueuer {
// that constructors know whether they need to generate code for
// runtime type.
if (element.isGetter() && element.name == Compiler.RUNTIME_TYPE) {
- compiler.enabledRuntimeType = true;
+ compiler.enableRuntimeTypeFunction();
} else if (element == compiler.functionApplyMethod) {
compiler.enabledFunctionApply = true;
}

Powered by Google App Engine
This is Rietveld 408576698