| 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 String unparse(Node node) { | 5 String unparse(Node node) { |
| 6 Unparser unparser = new Unparser(); | 6 Unparser unparser = new Unparser(); |
| 7 unparser.unparse(node); | 7 unparser.unparse(node); |
| 8 return unparser.result; | 8 return unparser.result; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 addToken(node.partKeyword); | 544 addToken(node.partKeyword); |
| 545 addToken(node.ofKeyword); | 545 addToken(node.ofKeyword); |
| 546 visit(node.name); | 546 visit(node.name); |
| 547 add(node.getEndToken().value); | 547 add(node.getEndToken().value); |
| 548 } | 548 } |
| 549 | 549 |
| 550 visitCombinator(Combinator node) { | 550 visitCombinator(Combinator node) { |
| 551 addToken(node.keywordToken); | 551 addToken(node.keywordToken); |
| 552 visit(node.identifiers); | 552 visit(node.identifiers); |
| 553 } | 553 } |
| 554 |
| 555 visitNode(Node node) { |
| 556 throw 'internal error'; // Should not be called. |
| 557 } |
| 558 |
| 559 visitExpression(Expression node) { |
| 560 throw 'internal error'; // Should not be called. |
| 561 } |
| 562 |
| 563 visitLibraryTag(LibraryTag node) { |
| 564 throw 'internal error'; // Should not be called. |
| 565 } |
| 566 |
| 567 visitLiteral(Literal node) { |
| 568 throw 'internal error'; // Should not be called. |
| 569 } |
| 570 |
| 571 visitLoop(Loop node) { |
| 572 throw 'internal error'; // Should not be called. |
| 573 } |
| 574 |
| 575 visitPostfix(Postfix node) { |
| 576 throw 'internal error'; // Should not be called. |
| 577 } |
| 578 |
| 579 visitPrefix(Prefix node) { |
| 580 throw 'internal error'; // Should not be called. |
| 581 } |
| 582 |
| 583 visitStatement(Statement node) { |
| 584 throw 'internal error'; // Should not be called. |
| 585 } |
| 586 |
| 587 visitStringNode(StringNode node) { |
| 588 throw 'internal error'; // Should not be called. |
| 589 } |
| 554 } | 590 } |
| OLD | NEW |