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

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

Issue 10890007: Remove more warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * Pretty-prints Node tree in XML-like format. 6 * Pretty-prints Node tree in XML-like format.
7 * 7 *
8 * TODO(smok): Add main() to run from command-line to print out tree for given 8 * TODO(smok): Add main() to run from command-line to print out tree for given
9 * .dart file. 9 * .dart file.
10 */ 10 */
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 visitLiteral(node, "LiteralInt"); 241 visitLiteral(node, "LiteralInt");
242 } 242 }
243 243
244 /** Returns token string value or [null] if token is [null]. */ 244 /** Returns token string value or [null] if token is [null]. */
245 tokenToStringOrNull(Token token) => token === null ? null : token.stringValue; 245 tokenToStringOrNull(Token token) => token === null ? null : token.stringValue;
246 246
247 visitLiteralList(LiteralList node) { 247 visitLiteralList(LiteralList node) {
248 openNode(node, "LiteralList", { 248 openNode(node, "LiteralList", {
249 "constKeyword" : tokenToStringOrNull(node.constKeyword) 249 "constKeyword" : tokenToStringOrNull(node.constKeyword)
250 }); 250 });
251 visitWithPrefix(node.type, "type:"); 251 visitWithPrefix(node.typeArguments, "typeArguments:");
252 visitWithPrefix(node.elements, "elements:"); 252 visitWithPrefix(node.elements, "elements:");
253 closeNode(); 253 closeNode();
254 } 254 }
255 255
256 visitLiteralMap(LiteralMap node) { 256 visitLiteralMap(LiteralMap node) {
257 visitNodeWithChildren(node, "LiteralMap"); 257 visitNodeWithChildren(node, "LiteralMap");
258 } 258 }
259 259
260 visitLiteralMapEntry(LiteralMapEntry node) { 260 visitLiteralMapEntry(LiteralMapEntry node) {
261 visitNodeWithChildren(node, "LiteralMapEntry"); 261 visitNodeWithChildren(node, "LiteralMapEntry");
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 visitWithPrefix(node.type, "type:"); 394 visitWithPrefix(node.type, "type:");
395 visitWithPrefix(node.modifiers, "modifiers:"); 395 visitWithPrefix(node.modifiers, "modifiers:");
396 visitWithPrefix(node.definitions, "definitions:"); 396 visitWithPrefix(node.definitions, "definitions:");
397 closeNode(); 397 closeNode();
398 } 398 }
399 399
400 visitWhile(While node) { 400 visitWhile(While node) {
401 visitNodeWithChildren(node, "While"); 401 visitNodeWithChildren(node, "While");
402 } 402 }
403 } 403 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/tree/nodes.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698