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

Unified Diff: lib/compiler/implementation/tree/nodes.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/tree/nodes.dart
diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
index d279076354351064a57fbd44e8030b453e374360..533002913ff9fb9abc85d04d7cb3014accd3b983 100644
--- a/lib/compiler/implementation/tree/nodes.dart
+++ b/lib/compiler/implementation/tree/nodes.dart
@@ -300,11 +300,11 @@ class Send extends Expression {
receiver.asIdentifier().isSuper();
}
bool get isOperator => selector is Operator;
- bool get isPropertyAccess => argumentsNode === null;
+ bool get isPropertyAccessOrTypeReference => argumentsNode === null;
ahe 2012/10/08 09:13:42 I'm having a hard time seeing why this name is bet
ngeoffray 2012/10/10 07:32:24 I also prefer the original name.
karlklose 2012/10/23 10:33:52 I reverted that change.
bool get isFunctionObjectInvocation => selector === null;
bool get isPrefix => argumentsNode is Prefix;
bool get isPostfix => argumentsNode is Postfix;
- bool get isCall => !isOperator && !isPropertyAccess;
+ bool get isCall => !isOperator && !isPropertyAccessOrTypeReference;
bool get isIndex =>
isOperator && selector.asOperator().source.stringValue === '[]';
bool get isLogicalAnd =>

Powered by Google App Engine
This is Rietveld 408576698