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.addClassMemoizedResult(context, true);
  final values = context.allocateLocals(['memo', 'pos']);
  final id = _allocateId(context);
  values.addAll({
    'id': '$id',
    'p1': parser.build(context, result),
    'type': parser.getResultType(),
  });
  return render2(fast, _templateFast, _template, values, [result]);
}