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

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

Issue 10832245: Remove unused method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | 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 // Returns null if no need to rename a node. 5 // Returns null if no need to rename a node.
6 typedef String Renamer(Node node); 6 typedef String Renamer(Node node);
7 7
8 class Unparser implements Visitor { 8 class Unparser implements Visitor {
9 Renamer rename; 9 Renamer rename;
10 StringBuffer sb; 10 StringBuffer sb;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 257 }
258 } 258 }
259 if (!node.isPrefix && !node.isIndex) { 259 if (!node.isPrefix && !node.isIndex) {
260 visit(node.selector); 260 visit(node.selector);
261 } 261 }
262 if (spacesNeeded) { 262 if (spacesNeeded) {
263 sb.add(' '); 263 sb.add(' ');
264 } 264 }
265 } 265 }
266 266
267 unparseSend(Send node) {
268 unparseSendPart(node);
269 visit(node.argumentsNode);
270 }
271
272 visitSend(Send node) { 267 visitSend(Send node) {
273 unparseSendPart(node); 268 unparseSendPart(node);
274 visit(node.argumentsNode); 269 visit(node.argumentsNode);
275 } 270 }
276 271
277 /** 272 /**
278 * Special case for assignments like "list[0] = 1". 273 * Special case for assignments like "list[0] = 1".
279 */ 274 */
280 unparseIndexedSet(SendSet node) { 275 unparseIndexedSet(SendSet node) {
281 if (node.isPrefix) { 276 if (node.isPrefix) {
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 sb.add(' '); 501 sb.add(' ');
507 } 502 }
508 visit(node.name); 503 visit(node.name);
509 if (node.typeParameters !== null) { 504 if (node.typeParameters !== null) {
510 visit(node.typeParameters); 505 visit(node.typeParameters);
511 } 506 }
512 visit(node.formals); 507 visit(node.formals);
513 add(node.endToken.value); 508 add(node.endToken.value);
514 } 509 }
515 } 510 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698