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

Unified Diff: lib/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two long lines. 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/dart_backend/placeholder_collector.dart
diff --git a/lib/compiler/implementation/dart_backend/placeholder_collector.dart b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
index f3753032538b3561a5ae934db9533736fa0ae914..c10c87ef7d1bd2ebb20cdfa5134ccb5409e9ebfd 100644
--- a/lib/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/lib/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -135,6 +135,11 @@ class SendVisitor extends ResolvedVisitor {
internalError(String reason, [Node node]) {
collector.internalError(reason, node);
}
+
+ visitClassLiteralSend(Send node) {
+ ClassElement element = elements[node];
+ collector.makeElementPlaceholder(node.selector, element);
+ }
}
class PlaceholderCollector extends Visitor {

Powered by Google App Engine
This is Rietveld 408576698