| 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 tree; | 5 part of tree; |
| 6 | 6 |
| 7 String unparse(Node node) { | 7 String unparse(Node node) { |
| 8 Unparser unparser = new Unparser(); | 8 Unparser unparser = new Unparser(); |
| 9 unparser.unparse(node); | 9 unparser.unparse(node); |
| 10 return unparser.result; | 10 return unparser.result; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 visitStringJuxtaposition(StringJuxtaposition node) { | 215 visitStringJuxtaposition(StringJuxtaposition node) { |
| 216 visit(node.first); | 216 visit(node.first); |
| 217 sb.write(" "); | 217 sb.write(" "); |
| 218 visit(node.second); | 218 visit(node.second); |
| 219 } | 219 } |
| 220 | 220 |
| 221 visitLiteralNull(LiteralNull node) { | 221 visitLiteralNull(LiteralNull node) { |
| 222 add(node.token.value); | 222 add(node.token.value); |
| 223 } | 223 } |
| 224 |
| 225 visitSymbolLiteral(SymbolLiteral node) { |
| 226 add(node.hashToken.value); |
| 227 visit(node.operator); |
| 228 visit(node.identifiers); |
| 229 } |
| 224 | 230 |
| 225 visitNewExpression(NewExpression node) { | 231 visitNewExpression(NewExpression node) { |
| 226 addToken(node.newToken); | 232 addToken(node.newToken); |
| 227 visit(node.send); | 233 visit(node.send); |
| 228 } | 234 } |
| 229 | 235 |
| 230 visitLiteralList(LiteralList node) { | 236 visitLiteralList(LiteralList node) { |
| 231 if (node.constKeyword != null) add(node.constKeyword.value); | 237 if (node.constKeyword != null) add(node.constKeyword.value); |
| 232 visit(node.typeArguments); | 238 visit(node.typeArguments); |
| 233 visit(node.elements); | 239 visit(node.elements); |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 } | 607 } |
| 602 | 608 |
| 603 visitStatement(Statement node) { | 609 visitStatement(Statement node) { |
| 604 throw 'internal error'; // Should not be called. | 610 throw 'internal error'; // Should not be called. |
| 605 } | 611 } |
| 606 | 612 |
| 607 visitStringNode(StringNode node) { | 613 visitStringNode(StringNode node) { |
| 608 throw 'internal error'; // Should not be called. | 614 throw 'internal error'; // Should not be called. |
| 609 } | 615 } |
| 610 } | 616 } |
| OLD | NEW |