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

Unified Diff: lib/compiler/implementation/elements/elements.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/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index d3376b4614c96518fee60a06f8dc3de817b3d99d..55a90d068d046c4e652c5cae03a115ac1d1c7d2e 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -1650,7 +1650,7 @@ class Elements {
}
static bool isClosureSend(Send send, Element element) {
- if (send.isPropertyAccess) return false;
+ if (send.isPropertyAccessOrTypeReference) return false;
if (send.receiver !== null) return false;
// (o)() or foo()().
if (element === null && send.selector.asIdentifier() === null) return true;

Powered by Google App Engine
This is Rietveld 408576698