generate method

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

Implementation

generate([builder, output]) {
  var nodeSnippet = this.node.build(builder);
  var indexSnippet = this.indexNode.build(builder, 'int');

  return "${nodeSnippet}[ ${indexSnippet} ]";
}