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 value = context.allocateSematicValue<O>(key);
  final r1 = fast ? context.getResult(parser, true) : result;
  final values = {
    'p0': Slow(parser).build(context, r1),
    'value': value.name,
  };
  return render2(fast, _templateFast, _template, values, [r1]);
}