| Index: lib/compiler/implementation/tree/nodes.dart
|
| diff --git a/lib/compiler/implementation/tree/nodes.dart b/lib/compiler/implementation/tree/nodes.dart
|
| index 039b69833d67f55b5fcf9ddb0a79a0c48405dd1e..c52b607b36d5c7ba8f3704a09a9c6e0517a42362 100644
|
| --- a/lib/compiler/implementation/tree/nodes.dart
|
| +++ b/lib/compiler/implementation/tree/nodes.dart
|
| @@ -90,14 +90,22 @@ class Node implements Hashable {
|
|
|
| abstract visitChildren(Visitor visitor);
|
|
|
| - toString() => unparse(false);
|
| + /**
|
| + * Returns this node unparsed to Dart source string.
|
| + */
|
| + toString() => unparse();
|
|
|
| - toDebugString() => unparse(true);
|
| + /**
|
| + * Returns Xml-like tree representation of this node.
|
| + */
|
| + toDebugString() {
|
| + return PrettyPrinter.prettyPrint(this);
|
| + }
|
|
|
| String getObjectDescription() => super.toString();
|
|
|
| - String unparse(bool printDebugInfo) {
|
| - Unparser unparser = new Unparser(printDebugInfo);
|
| + String unparse() {
|
| + Unparser unparser = new Unparser();
|
| try {
|
| return unparser.unparse(this);
|
| } catch (var e, var trace) {
|
|
|