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

Unified Diff: lib/compiler/implementation/tree/unparser.dart

Issue 10456080: Remove printDebugInfo from Unparser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: lib/compiler/implementation/tree/unparser.dart
diff --git a/lib/compiler/implementation/tree/unparser.dart b/lib/compiler/implementation/tree/unparser.dart
index fa19630a860ee9e590921410978c94d96d0c65a7..9f9b5b591b3971ca7bc7e95c73b8df61cd65635a 100644
--- a/lib/compiler/implementation/tree/unparser.dart
+++ b/lib/compiler/implementation/tree/unparser.dart
@@ -4,9 +4,8 @@
class Unparser implements Visitor {
StringBuffer sb;
- final bool printDebugInfo;
- Unparser([this.printDebugInfo = false]);
+ Unparser();
String unparse(Node node) {
sb = new StringBuffer();
@@ -20,11 +19,7 @@ class Unparser implements Visitor {
visit(Node node) {
if (node !== null) {
Anton Muhin 2012/06/05 09:35:19 probably it's time to go single line now: if (node
Roman 2012/06/05 11:09:07 Done. By the way, Dart style guide is ambiguous:
Anton Muhin 2012/06/05 11:39:21 You may want to file a bug. Historically, at leas
- if (printDebugInfo) sb.add('[${node.getObjectDescription()}: ');
node.accept(this);
- if (printDebugInfo) sb.add(']');
- } else if (printDebugInfo) {
- sb.add('[null]');
}
}

Powered by Google App Engine
This is Rietveld 408576698