generate method

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

Implementation

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

  var snippetValues = [];

  for (var i = 0; i < nodes.length; i++) {
    var input = nodes[i];

    var inputSnippet = input.build(builder, 'float');

    snippetValues.add(inputSnippet);
  }

  return "${builder.getType(type)}( ${snippetValues.join(', ')} )";
}