toUnFormattedString method

  1. @override
String toUnFormattedString(
  1. Context context
)
override

Recursive call to get the unformatted code from all nodes

Implementation

@override
String toUnFormattedString(Context context) {
  StringBuffer buffer = StringBuffer();
  for (CodeNode codeNode in codeNodes(context)) {
    String unformattedCode = codeNode.toUnFormattedString(context);
    if (codeNode is! CodeModel) {
      context.lastCode = unformattedCode;
    }
    buffer.write(unformattedCode);
  }
  return buffer.toString();
}