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

Unified Diff: lib/compiler/implementation/scanner/listener.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/scanner/listener.dart
diff --git a/lib/compiler/implementation/scanner/listener.dart b/lib/compiler/implementation/scanner/listener.dart
index b2514370e8904ffc6a3a2b5e5da39dfb8c156939..28ee0c12ac7323ae6d0eaba193f51e46aad8155d 100644
--- a/lib/compiler/implementation/scanner/listener.dart
+++ b/lib/compiler/implementation/scanner/listener.dart
@@ -1284,7 +1284,9 @@ class NodeListener extends ElementListener {
Node node = popNode();
Send send = node.asSend();
if (send === null) internalError(node: node);
- if (!(send.isPropertyAccess || send.isIndex)) internalError(node: send);
+ if (!(send.isPropertyAccessOrTypeReference || send.isIndex)) {
+ internalError(node: send);
+ }
if (send.asSendSet() !== null) internalError(node: send);
NodeList arguments;
if (send.isIndex) {
@@ -1416,7 +1418,9 @@ class NodeListener extends ElementListener {
Node node = popNode();
Send send = node.asSend();
if (send === null) internalError(node: node);
- if (!(send.isPropertyAccess || send.isIndex)) internalError(node: send);
+ if (!(send.isPropertyAccessOrTypeReference || send.isIndex)) {
+ internalError(node: send);
+ }
if (send.asSendSet() !== null) internalError(node: send);
Node argument = null;
if (send.isIndex) argument = send.arguments.head;

Powered by Google App Engine
This is Rietveld 408576698