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

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

Issue 155703004: Support parameter metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 visitChildNode(node.type, "type"); 403 visitChildNode(node.type, "type");
404 visitChildNode(node.modifiers, "modifiers"); 404 visitChildNode(node.modifiers, "modifiers");
405 visitChildNode(node.definitions, "definitions"); 405 visitChildNode(node.definitions, "definitions");
406 closeNode(); 406 closeNode();
407 } 407 }
408 408
409 visitWhile(While node) { 409 visitWhile(While node) {
410 visitNodeWithChildren(node, "While"); 410 visitNodeWithChildren(node, "While");
411 } 411 }
412 412
413 visitMetadata(Metadata node) {
414 openNode(node, "Metadata", {
415 "token": node.token
416 });
417 visitChildNode(node.expression, "expression");
418 closeNode();
419 }
420
413 visitNode(Node node) { 421 visitNode(Node node) {
414 unimplemented('visitNode', node: node); 422 unimplemented('visitNode', node: node);
415 } 423 }
416 424
417 visitCombinator(Combinator node) { 425 visitCombinator(Combinator node) {
418 unimplemented('visitNode', node: node); 426 unimplemented('visitNode', node: node);
419 } 427 }
420 428
421 visitExport(Export node) { 429 visitExport(Export node) {
422 unimplemented('visitNode', node: node); 430 unimplemented('visitNode', node: node);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 483 }
476 484
477 visitStringNode(StringNode node) { 485 visitStringNode(StringNode node) {
478 unimplemented('visitNode', node: node); 486 unimplemented('visitNode', node: node);
479 } 487 }
480 488
481 unimplemented(String message, {Node node}) { 489 unimplemented(String message, {Node node}) {
482 throw message; 490 throw message;
483 } 491 }
484 } 492 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698