emit method

  1. @override
String emit({
  1. int indent = 0,
})
override

Implementation

@override
String emit({int indent = 0}) {
  final String tabs = "\t" * indent;

  String output = "${tabs}while ${condition.emit()} do\n\n";

  for (var node in body) {
    output += node.emit(indent: indent + 1);
  }

  output += "${tabs}end\n\n";

  return output;
}