| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import '../tokens/token.dart' show BeginGroupToken, Token; | 5 import '../tokens/token.dart' show BeginGroupToken, Token; |
| 6 import '../tokens/token_constants.dart' as Tokens show IDENTIFIER_TOKEN, KEYWORD
_TOKEN, PLUS_TOKEN; | 6 import '../tokens/token_constants.dart' as Tokens show IDENTIFIER_TOKEN, KEYWORD
_TOKEN, PLUS_TOKEN; |
| 7 import '../util/util.dart'; | 7 import '../util/util.dart'; |
| 8 import 'nodes.dart'; | 8 import 'nodes.dart'; |
| 9 | 9 |
| 10 String unparse(Node node, {minify: true}) { | 10 String unparse(Node node, {minify: true}) { |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 } | 629 } |
| 630 | 630 |
| 631 visitBreakStatement(BreakStatement node) { | 631 visitBreakStatement(BreakStatement node) { |
| 632 visitGotoStatement(node); | 632 visitGotoStatement(node); |
| 633 } | 633 } |
| 634 | 634 |
| 635 visitContinueStatement(ContinueStatement node) { | 635 visitContinueStatement(ContinueStatement node) { |
| 636 visitGotoStatement(node); | 636 visitGotoStatement(node); |
| 637 } | 637 } |
| 638 | 638 |
| 639 visitAsyncForIn(AsyncForIn node) { | 639 visitForIn(ForIn node) { |
| 640 write(node.awaitToken.value); | |
| 641 write(' '); | |
| 642 write(node.forToken.value); | 640 write(node.forToken.value); |
| 643 space(); | 641 space(); |
| 644 write('('); | 642 write('('); |
| 645 visit(node.declaredIdentifier); | 643 visit(node.declaredIdentifier); |
| 646 write(' '); | 644 write(' '); |
| 647 addToken(node.inToken); | 645 addToken(node.inToken); |
| 648 visit(node.expression); | 646 visit(node.expression); |
| 649 write(')'); | 647 write(')'); |
| 650 space(); | 648 space(); |
| 651 visit(node.body); | 649 visit(node.body); |
| 652 } | 650 } |
| 653 | 651 |
| 652 visitAsyncForIn(AsyncForIn node) { |
| 653 write(node.awaitToken.value); |
| 654 write(' '); |
| 655 visitForIn(node); |
| 656 } |
| 654 | 657 |
| 655 visitSyncForIn(SyncForIn node) { | 658 visitSyncForIn(SyncForIn node) { |
| 656 write(node.forToken.value); | 659 visitForIn(node); |
| 657 space(); | |
| 658 write('('); | |
| 659 visit(node.declaredIdentifier); | |
| 660 write(' '); | |
| 661 addToken(node.inToken); | |
| 662 visit(node.expression); | |
| 663 write(')'); | |
| 664 space(); | |
| 665 visit(node.body); | |
| 666 } | 660 } |
| 667 | 661 |
| 668 visitLabel(Label node) { | 662 visitLabel(Label node) { |
| 669 visit(node.identifier); | 663 visit(node.identifier); |
| 670 write(node.colonToken.value); | 664 write(node.colonToken.value); |
| 671 } | 665 } |
| 672 | 666 |
| 673 visitLabeledStatement(LabeledStatement node) { | 667 visitLabeledStatement(LabeledStatement node) { |
| 674 visit(node.labels); | 668 visit(node.labels); |
| 675 visit(node.statement); | 669 visit(node.statement); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 } | 892 } |
| 899 | 893 |
| 900 visitStatement(Statement node) { | 894 visitStatement(Statement node) { |
| 901 throw 'internal error'; // Should not be called. | 895 throw 'internal error'; // Should not be called. |
| 902 } | 896 } |
| 903 | 897 |
| 904 visitStringNode(StringNode node) { | 898 visitStringNode(StringNode node) { |
| 905 throw 'internal error'; // Should not be called. | 899 throw 'internal error'; // Should not be called. |
| 906 } | 900 } |
| 907 } | 901 } |
| OLD | NEW |