build method

  1. @override
String build(
  1. Context context,
  2. ParserResult? result
)
override

Implementation

@override
String build(Context context, ParserResult? result) {
  final fast = result == null;
  final values = context.allocateLocals(['acc', 'log', 'v']);
  final r1 = context.getResult(parser, !fast);
  values.addAll({
    'combine':
        combine.build(context, 'combine', [values['acc']!, values['v']!]),
    'initialize': initialize.build(context, 'initialize', []),
    'p1': parser.build(context, r1),
  });
  return render2(fast, _templateFast, _template, values, [result, r1]);
}