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 part of js; | 5 part of js; |
6 | 6 |
7 abstract class NodeVisitor<T> { | 7 abstract class NodeVisitor<T> { |
8 T visitProgram(Program node); | 8 T visitProgram(Program node); |
9 | 9 |
10 T visitBlock(Block node); | 10 T visitBlock(Block node); |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 class Comment extends Statement { | 1114 class Comment extends Statement { |
1115 final String comment; | 1115 final String comment; |
1116 | 1116 |
1117 Comment(this.comment); | 1117 Comment(this.comment); |
1118 | 1118 |
1119 accept(NodeVisitor visitor) => visitor.visitComment(this); | 1119 accept(NodeVisitor visitor) => visitor.visitComment(this); |
1120 Comment _clone() => new Comment(comment); | 1120 Comment _clone() => new Comment(comment); |
1121 | 1121 |
1122 void visitChildren(NodeVisitor visitor) {} | 1122 void visitChildren(NodeVisitor visitor) {} |
1123 } | 1123 } |
OLD | NEW |