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;
  ParseRuntime.addClassResult(context, 2, !fast);
  final values = context.allocateLocals(['list', 'pos']);
  final r1 = context.getResult(end, !fast);
  final r2 = context.getResult(parser, !fast);
  values.addAll({
    'O1': '$O1',
    'p1': end.build(context, r1),
    'p2': parser.build(context, r2),
  });
  return render2(fast, _templateFast, _template, values, [result, r1, r2]);
}