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

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

Issue 11878043: Start adding support for mixin application syntax. We now parse the typedef variant of mixin applic… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 visitLiteralNull(LiteralNull node) { 257 visitLiteralNull(LiteralNull node) {
258 printLiteral(node, "LiteralNull"); 258 printLiteral(node, "LiteralNull");
259 } 259 }
260 260
261 visitLiteralString(LiteralString node) { 261 visitLiteralString(LiteralString node) {
262 openAndCloseNode(node, "LiteralString", 262 openAndCloseNode(node, "LiteralString",
263 {"value" : node.token.slowToString()}); 263 {"value" : node.token.slowToString()});
264 } 264 }
265 265
266 visitMixinApplication(MixinApplication node) {
267 visitNodeWithChildren(node, "MixinApplication");
268 }
269
266 visitModifiers(Modifiers node) { 270 visitModifiers(Modifiers node) {
267 visitNodeWithChildren(node, "Modifiers"); 271 visitNodeWithChildren(node, "Modifiers");
268 } 272 }
269 273
270 visitNamedArgument(NamedArgument node) { 274 visitNamedArgument(NamedArgument node) {
271 visitNodeWithChildren(node, "NamedArgument"); 275 visitNodeWithChildren(node, "NamedArgument");
272 } 276 }
273 277
274 visitNewExpression(NewExpression node) { 278 visitNewExpression(NewExpression node) {
275 visitNodeWithChildren(node, "NewExpression"); 279 visitNodeWithChildren(node, "NewExpression");
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 } 467 }
464 468
465 visitStringNode(StringNode node) { 469 visitStringNode(StringNode node) {
466 unimplemented('visitNode', node: node); 470 unimplemented('visitNode', node: node);
467 } 471 }
468 472
469 unimplemented(String message, {Node node}) { 473 unimplemented(String message, {Node node}) {
470 throw message; 474 throw message;
471 } 475 }
472 } 476 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698