| 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 interface Visitor<R> { | 5 abstract class Visitor<R> { |
| 6 R visitBlock(Block node); | 6 R visitBlock(Block node); |
| 7 R visitBreakStatement(BreakStatement node); | 7 R visitBreakStatement(BreakStatement node); |
| 8 R visitCascade(Cascade node); | 8 R visitCascade(Cascade node); |
| 9 R visitCascadeReceiver(CascadeReceiver node); | 9 R visitCascadeReceiver(CascadeReceiver node); |
| 10 R visitCaseMatch(CaseMatch node); | 10 R visitCaseMatch(CaseMatch node); |
| 11 R visitCatchBlock(CatchBlock node); | 11 R visitCatchBlock(CatchBlock node); |
| 12 R visitClassNode(ClassNode node); | 12 R visitClassNode(ClassNode node); |
| 13 R visitConditional(Conditional node); | 13 R visitConditional(Conditional node); |
| 14 R visitContinueStatement(ContinueStatement node); | 14 R visitContinueStatement(ContinueStatement node); |
| 15 R visitDoWhile(DoWhile node); | 15 R visitDoWhile(DoWhile node); |
| (...skipping 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 * argument). | 1769 * argument). |
| 1770 * | 1770 * |
| 1771 * TODO(ahe): This method is controversial, the team needs to discuss | 1771 * TODO(ahe): This method is controversial, the team needs to discuss |
| 1772 * if top-level methods are acceptable and what naming conventions to | 1772 * if top-level methods are acceptable and what naming conventions to |
| 1773 * use. | 1773 * use. |
| 1774 */ | 1774 */ |
| 1775 initializerDo(Node node, f(Node node)) { | 1775 initializerDo(Node node, f(Node node)) { |
| 1776 SendSet send = node.asSendSet(); | 1776 SendSet send = node.asSendSet(); |
| 1777 if (send !== null) return f(send.arguments.head); | 1777 if (send !== null) return f(send.arguments.head); |
| 1778 } | 1778 } |
| OLD | NEW |