build method
Implementation
@override
String build(Context context, ParserResult? result) {
if (n < 1) {
throw RangeError.value(n, 'n', 'Must be greater than 0');
}
final fast = result == null;
final values = context.allocateLocals(['count', 'last', 'list', 'pos']);
final r1 = context.getResult(parser, !fast);
values.addAll({
'n': '$n',
'O': '$O',
'p1': parser.build(context, r1),
'p2': separator.build(context, null),
});
return render2(fast, _templateFast, _template, values, [result, r1]);
}