toDebugString method

String toDebugString()

A multiline string showing the node and its children.

Implementation

String toDebugString() {
  var to = TreeOutput();
  var tp = _TreePrinter(to, true);
  visit(tp);
  return to.buf.toString();
}