Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart

Issue 21511003: Support symbol literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 /** 7 /**
8 * Pretty-prints Node tree in XML-like format. 8 * Pretty-prints Node tree in XML-like format.
9 * 9 *
10 * TODO(smok): Add main() to run from command-line to print out tree for given 10 * TODO(smok): Add main() to run from command-line to print out tree for given
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 } 360 }
361 361
362 visitSwitchCase(SwitchCase node) { 362 visitSwitchCase(SwitchCase node) {
363 visitNodeWithChildren(node, "SwitchCase"); 363 visitNodeWithChildren(node, "SwitchCase");
364 } 364 }
365 365
366 visitSwitchStatement(SwitchStatement node) { 366 visitSwitchStatement(SwitchStatement node) {
367 visitNodeWithChildren(node, "SwitchStatement"); 367 visitNodeWithChildren(node, "SwitchStatement");
368 } 368 }
369 369
370 visitLiteralSymbol(LiteralSymbol node) {
371 openNode(node, "LiteralSymbol");
372 visitChildNode(node.identifiers, "identifiers");
373 closeNode();
374 }
375
370 visitThrow(Throw node) { 376 visitThrow(Throw node) {
371 visitNodeWithChildren(node, "Throw"); 377 visitNodeWithChildren(node, "Throw");
372 } 378 }
373 379
374 visitTryStatement(TryStatement node) { 380 visitTryStatement(TryStatement node) {
375 visitNodeWithChildren(node, "TryStatement"); 381 visitNodeWithChildren(node, "TryStatement");
376 } 382 }
377 383
378 visitTypeAnnotation(TypeAnnotation node) { 384 visitTypeAnnotation(TypeAnnotation node) {
379 openNode(node, "TypeAnnotation"); 385 openNode(node, "TypeAnnotation");
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 } 476 }
471 477
472 visitStringNode(StringNode node) { 478 visitStringNode(StringNode node) {
473 unimplemented('visitNode', node: node); 479 unimplemented('visitNode', node: node);
474 } 480 }
475 481
476 unimplemented(String message, {Node node}) { 482 unimplemented(String message, {Node node}) {
477 throw message; 483 throw message;
478 } 484 }
479 } 485 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698