| 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 dart_backend; | 5 part of dart_backend; |
| 6 | 6 |
| 7 class CloningVisitor implements Visitor<Node> { | 7 class CloningVisitor implements Visitor<Node> { |
| 8 final TreeElements originalTreeElements; | 8 final TreeElements originalTreeElements; |
| 9 final TreeElementMapping cloneTreeElements; | 9 final TreeElementMapping cloneTreeElements; |
| 10 | 10 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 visitMixinApplication(MixinApplication node) => new MixinApplication( | 120 visitMixinApplication(MixinApplication node) => new MixinApplication( |
| 121 visit(node.superclass), visit(node.mixins)); | 121 visit(node.superclass), visit(node.mixins)); |
| 122 | 122 |
| 123 visitNamedMixinApplication(NamedMixinApplication node) => | 123 visitNamedMixinApplication(NamedMixinApplication node) => |
| 124 new NamedMixinApplication(visit(node.name), | 124 new NamedMixinApplication(visit(node.name), |
| 125 visit(node.typeParameters), | 125 visit(node.typeParameters), |
| 126 visit(node.modifiers), | 126 visit(node.modifiers), |
| 127 visit(node.mixinApplication), | 127 visit(node.mixinApplication), |
| 128 visit(node.interfaces), | 128 visit(node.interfaces), |
| 129 node.typedefKeyword, | 129 node.classKeyword, |
| 130 node.endToken); | 130 node.endToken); |
| 131 | 131 |
| 132 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes)); | 132 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes)); |
| 133 | 133 |
| 134 visitNamedArgument(NamedArgument node) => new NamedArgument( | 134 visitNamedArgument(NamedArgument node) => new NamedArgument( |
| 135 visit(node.name), node.colonToken, visit(node.expression)); | 135 visit(node.name), node.colonToken, visit(node.expression)); |
| 136 | 136 |
| 137 visitNewExpression(NewExpression node) => new NewExpression( | 137 visitNewExpression(NewExpression node) => new NewExpression( |
| 138 node.newToken, visit(node.send)); | 138 node.newToken, visit(node.send)); |
| 139 | 139 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 } | 284 } |
| 285 | 285 |
| 286 Node visitStringNode(StringNode node) { | 286 Node visitStringNode(StringNode node) { |
| 287 unimplemented('visitNode', node: node); | 287 unimplemented('visitNode', node: node); |
| 288 } | 288 } |
| 289 | 289 |
| 290 unimplemented(String message, {Node node}) { | 290 unimplemented(String message, {Node node}) { |
| 291 throw message; | 291 throw message; |
| 292 } | 292 } |
| 293 } | 293 } |
| OLD | NEW |