| 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 new StringJuxtaposition(visit(node.first), visit(node.second)); | 186 new StringJuxtaposition(visit(node.first), visit(node.second)); |
| 187 | 187 |
| 188 visitSwitchCase(SwitchCase node) => new SwitchCase( | 188 visitSwitchCase(SwitchCase node) => new SwitchCase( |
| 189 visit(node.labelsAndCases), node.defaultKeyword, visit(node.statements), | 189 visit(node.labelsAndCases), node.defaultKeyword, visit(node.statements), |
| 190 node.startToken); | 190 node.startToken); |
| 191 | 191 |
| 192 visitSwitchStatement(SwitchStatement node) => new SwitchStatement( | 192 visitSwitchStatement(SwitchStatement node) => new SwitchStatement( |
| 193 visit(node.parenthesizedExpression), visit(node.cases), | 193 visit(node.parenthesizedExpression), visit(node.cases), |
| 194 node.switchKeyword); | 194 node.switchKeyword); |
| 195 | 195 |
| 196 visitLiteralSymbol(LiteralSymbol node) => new LiteralSymbol( |
| 197 node.hashToken, visit(node.identifiers)); |
| 198 |
| 196 visitThrow(Throw node) => new Throw( | 199 visitThrow(Throw node) => new Throw( |
| 197 visit(node.expression), node.throwToken, node.endToken); | 200 visit(node.expression), node.throwToken, node.endToken); |
| 198 | 201 |
| 199 visitTryStatement(TryStatement node) => new TryStatement( | 202 visitTryStatement(TryStatement node) => new TryStatement( |
| 200 visit(node.tryBlock), visit(node.catchBlocks), visit(node.finallyBlock), | 203 visit(node.tryBlock), visit(node.catchBlocks), visit(node.finallyBlock), |
| 201 node.tryKeyword, node.finallyKeyword); | 204 node.tryKeyword, node.finallyKeyword); |
| 202 | 205 |
| 203 visitTypeAnnotation(TypeAnnotation node) => new TypeAnnotation( | 206 visitTypeAnnotation(TypeAnnotation node) => new TypeAnnotation( |
| 204 visit(node.typeName), visit(node.typeArguments)); | 207 visit(node.typeName), visit(node.typeArguments)); |
| 205 | 208 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 284 } |
| 282 | 285 |
| 283 Node visitStringNode(StringNode node) { | 286 Node visitStringNode(StringNode node) { |
| 284 unimplemented('visitNode', node: node); | 287 unimplemented('visitNode', node: node); |
| 285 } | 288 } |
| 286 | 289 |
| 287 unimplemented(String message, {Node node}) { | 290 unimplemented(String message, {Node node}) { |
| 288 throw message; | 291 throw message; |
| 289 } | 292 } |
| 290 } | 293 } |
| OLD | NEW |