toSource method

  1. @override
String toSource()
override

Return a textual description of this node in a form approximating valid source.

The returned string will not be valid source primarily in the case where the node itself is not well-formed.

Implementation

@override
String toSource() {
  StringBuffer buffer = StringBuffer();
  accept(ToSourceVisitor(buffer));
  return buffer.toString();
}