| Index: lib/compiler/implementation/tree/nodes.dart
|
| diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
|
| index 52c99bb6e2befd109526249dba6f539859680584..1e356539a9434db3c0ed19a13c0affec3fb8bd34 100644
|
| --- a/lib/compiler/implementation/tree/nodes.dart
|
| +++ b/lib/compiler/implementation/tree/nodes.dart
|
| @@ -282,9 +282,13 @@ class Send extends Expression {
|
| bool get isFunctionObjectInvocation() => selector === null;
|
| bool get isPrefix() => argumentsNode is Prefix;
|
| bool get isPostfix() => argumentsNode is Postfix;
|
| + bool get isCall() => !isOperator && !isPropertyAccess;
|
| bool get isIndex() =>
|
| isOperator && selector.asOperator().source.stringValue === '[]';
|
| - bool get isCall() => !isOperator && !isPropertyAccess;
|
| + bool get isLogicalAnd() =>
|
| + isOperator && selector.asOperator().source.stringValue === '&&';
|
| + bool get isLogicalOr() =>
|
| + isOperator && selector.asOperator().source.stringValue === '||';
|
|
|
| Token getBeginToken() {
|
| if (isPrefix && !isIndex) return selector.getBeginToken();
|
|
|