| Index: pkg/compiler/lib/src/resolution/send_structure.dart
|
| diff --git a/pkg/compiler/lib/src/resolution/send_structure.dart b/pkg/compiler/lib/src/resolution/send_structure.dart
|
| index c233b357ef93db21825b22d9a74afd5d47279c6e..e0f6d3090687c8a704b5b4f516516c6f99d0837c 100644
|
| --- a/pkg/compiler/lib/src/resolution/send_structure.dart
|
| +++ b/pkg/compiler/lib/src/resolution/send_structure.dart
|
| @@ -31,6 +31,8 @@ class AssertStructure<R, A> implements SendStructure<R, A> {
|
| node.arguments.single,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'assert';
|
| }
|
|
|
| /// The structure for a [Send] of the form an `assert` with less or more than
|
| @@ -44,6 +46,8 @@ class InvalidAssertStructure<R, A> implements SendStructure<R, A> {
|
| node.argumentsNode,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'invalid assert';
|
| }
|
|
|
| /// The structure for a [Send] of the form `a && b`.
|
| @@ -57,6 +61,8 @@ class LogicalAndStructure<R, A> implements SendStructure<R, A> {
|
| node.arguments.single,
|
| arg);
|
| }
|
| +
|
| + String toString() => '&&';
|
| }
|
|
|
| /// The structure for a [Send] of the form `a || b`.
|
| @@ -70,6 +76,8 @@ class LogicalOrStructure<R, A> implements SendStructure<R, A> {
|
| node.arguments.single,
|
| arg);
|
| }
|
| +
|
| + String toString() => '||';
|
| }
|
|
|
| /// The structure for a [Send] of the form `a is T`.
|
| @@ -86,6 +94,8 @@ class IsStructure<R, A> implements SendStructure<R, A> {
|
| type,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'is $type';
|
| }
|
|
|
| /// The structure for a [Send] of the form `a is! T`.
|
| @@ -102,6 +112,8 @@ class IsNotStructure<R, A> implements SendStructure<R, A> {
|
| type,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'is! $type';
|
| }
|
|
|
| /// The structure for a [Send] of the form `a as T`.
|
| @@ -118,6 +130,8 @@ class AsStructure<R, A> implements SendStructure<R, A> {
|
| type,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'as $type';
|
| }
|
|
|
| /// The structure for a [Send] that is an invocation.
|
| @@ -317,6 +331,8 @@ class InvokeStructure<R, A> implements SendStructure<R, A> {
|
| }
|
| throw new SpannableAssertionFailure(node, "Invalid invoke: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'invoke($selector,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is a read access.
|
| @@ -459,6 +475,8 @@ class GetStructure<R, A> implements SendStructure<R, A> {
|
| }
|
| throw new SpannableAssertionFailure(node, "Invalid getter: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'get($selector,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is an assignment.
|
| @@ -621,6 +639,8 @@ class SetStructure<R, A> implements SendStructure<R, A> {
|
| }
|
| throw new SpannableAssertionFailure(node, "Invalid setter: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'set($selector,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is a negation, i.e. of the form `!e`.
|
| @@ -646,6 +666,8 @@ class NotStructure<R, A> implements SendStructure<R, A> {
|
| }
|
| throw new SpannableAssertionFailure(node, "Invalid setter: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'not($selector,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is an invocation of a user definable unary
|
| @@ -689,6 +711,8 @@ class UnaryStructure<R, A> implements SendStructure<R, A> {
|
| }
|
| throw new SpannableAssertionFailure(node, "Invalid setter: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'unary($operator,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is an invocation of a undefined unary
|
| @@ -704,6 +728,8 @@ class InvalidUnaryStructure<R, A> implements SendStructure<R, A> {
|
| node.receiver,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'invalid unary';
|
| }
|
|
|
| /// The structure for a [Send] that is an index expression, i.e. of the form
|
| @@ -778,6 +804,8 @@ class EqualsStructure<R, A> implements SendStructure<R, A> {
|
| }
|
| throw new SpannableAssertionFailure(node, "Invalid equals: ${semantics}");
|
| }
|
| +
|
| + String toString() => '==($semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is a not-equals test, i.e. of the form
|
| @@ -813,6 +841,8 @@ class NotEqualsStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(
|
| node, "Invalid not equals: ${semantics}");
|
| }
|
| +
|
| + String toString() => '!=($semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is an invocation of a user-definable binary
|
| @@ -860,6 +890,8 @@ class BinaryStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(
|
| node, "Invalid binary: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'binary($operator,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is an invocation of a undefined binary
|
| @@ -876,6 +908,8 @@ class InvalidBinaryStructure<R, A> implements SendStructure<R, A> {
|
| node.arguments.single,
|
| arg);
|
| }
|
| +
|
| + String toString() => 'invalid binary';
|
| }
|
|
|
| /// The structure for a [Send] that is of the form `a[b] = c`.
|
| @@ -919,6 +953,8 @@ class IndexSetStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(
|
| node, "Invalid index set: ${semantics}");
|
| }
|
| +
|
| + String toString() => '[]=($semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is an prefix operation on an index
|
| @@ -1275,6 +1311,8 @@ class CompoundStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(node,
|
| "Invalid compound assigment: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'compound($operator,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is a compound assignment on the index
|
| @@ -1338,6 +1376,8 @@ class CompoundIndexSetStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(
|
| node, "Invalid compound index set: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'compound []=($operator,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is a prefix operations. For instance
|
| @@ -1550,6 +1590,8 @@ class PrefixStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(node,
|
| "Invalid compound assigment: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'prefix($operator,$semantics)';
|
| }
|
|
|
| /// The structure for a [Send] that is a postfix operations. For instance
|
| @@ -1762,5 +1804,7 @@ class PostfixStructure<R, A> implements SendStructure<R, A> {
|
| throw new SpannableAssertionFailure(node,
|
| "Invalid compound assigment: ${semantics}");
|
| }
|
| +
|
| + String toString() => 'postfix($operator,$semantics)';
|
| }
|
|
|
|
|