generate method

dynamic generate([
  1. dynamic builder,
  2. dynamic output
])

Implementation

generate([builder, output]) {
  var type = this.getNodeType(builder);
  var snipped = this.snipped;

  if (type == 'void') {
    builder.addFlowCode(snipped);
  } else {
    return "( ${snipped} )";
  }
}