| Index: lib/compiler/implementation/tree/unparser.dart
|
| diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
|
| index fa19630a860ee9e590921410978c94d96d0c65a7..88cd27dee157f55aa266620a346e7e5114268b97 100644
|
| --- a/lib/compiler/implementation/tree/unparser.dart
|
| +++ b/lib/compiler/implementation/tree/unparser.dart
|
| @@ -187,16 +187,26 @@ class Unparser implements Visitor {
|
| }
|
|
|
| unparseSendPart(Send node) {
|
| + Operator op = node.selector.asOperator();
|
| + bool isCheck = op !== null && op.source.stringValue == 'is';
|
| +
|
| if (node.isPrefix) {
|
| visit(node.selector);
|
| }
|
| if (node.receiver !== null) {
|
| visit(node.receiver);
|
| - if (node.selector is !Operator) sb.add('.');
|
| + if (op === null) {
|
| + sb.add('.');
|
| + } else if (isCheck) {
|
| + sb.add(' ');
|
| + }
|
| }
|
| if (!node.isPrefix && !node.isIndex) {
|
| visit(node.selector);
|
| }
|
| + if (isCheck) {
|
| + sb.add(' ');
|
| + }
|
| }
|
|
|
| visitSend(Send node) {
|
|
|