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 r1 = context.getResult(operator, !fast);
  final r2 = context.getResult(expression, !fast);
  final values = {
    'calculate': calculate.build(context, 'calculate', ['v1', 'v2']),
    'p1': Opt(operator).build(context, r1),
    'p2': expression.build(context, r2),
  };
  return render2(fast, _templateFast, _template, values, [result, r1, r2]);
}