| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 visit(node.typeArguments), visit(node.entries), node.constKeyword); | 110 visit(node.typeArguments), visit(node.entries), node.constKeyword); |
| 111 | 111 |
| 112 visitLiteralMapEntry(LiteralMapEntry node) => new LiteralMapEntry( | 112 visitLiteralMapEntry(LiteralMapEntry node) => new LiteralMapEntry( |
| 113 visit(node.key), node.colonToken, visit(node.value)); | 113 visit(node.key), node.colonToken, visit(node.value)); |
| 114 | 114 |
| 115 visitLiteralNull(LiteralNull node) => new LiteralNull(node.token); | 115 visitLiteralNull(LiteralNull node) => new LiteralNull(node.token); |
| 116 | 116 |
| 117 visitLiteralString(LiteralString node) => new LiteralString( | 117 visitLiteralString(LiteralString node) => new LiteralString( |
| 118 node.token, node.dartString); | 118 node.token, node.dartString); |
| 119 | 119 |
| 120 visitMixinApplication(MixinApplication node) => new MixinApplication( |
| 121 visit(node.modifiers), visit(node.superclass), visit(node.mixins)); |
| 122 |
| 123 visitNamedMixinApplication(NamedMixinApplication node) => |
| 124 new NamedMixinApplication(node.name, |
| 125 node.typeParameters, |
| 126 node.mixinApplication, |
| 127 node.typedefKeyword, |
| 128 node.endToken); |
| 129 |
| 120 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes)); | 130 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes)); |
| 121 | 131 |
| 122 visitNamedArgument(NamedArgument node) => new NamedArgument( | 132 visitNamedArgument(NamedArgument node) => new NamedArgument( |
| 123 visit(node.name), node.colonToken, visit(node.expression)); | 133 visit(node.name), node.colonToken, visit(node.expression)); |
| 124 | 134 |
| 125 visitNewExpression(NewExpression node) => new NewExpression( | 135 visitNewExpression(NewExpression node) => new NewExpression( |
| 126 node.newToken, visit(node.send)); | 136 node.newToken, visit(node.send)); |
| 127 | 137 |
| 128 rewriteNodeList(NodeList node, Link link) => | 138 rewriteNodeList(NodeList node, Link link) => |
| 129 new NodeList(node.beginToken, link, node.endToken, node.delimiter); | 139 new NodeList(node.beginToken, link, node.endToken, node.delimiter); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 } | 282 } |
| 273 | 283 |
| 274 Node visitStringNode(StringNode node) { | 284 Node visitStringNode(StringNode node) { |
| 275 unimplemented('visitNode', node: node); | 285 unimplemented('visitNode', node: node); |
| 276 } | 286 } |
| 277 | 287 |
| 278 unimplemented(String message, {Node node}) { | 288 unimplemented(String message, {Node node}) { |
| 279 throw message; | 289 throw message; |
| 280 } | 290 } |
| 281 } | 291 } |
| OLD | NEW |