buildBody method
Builds a parser function body and returns the source code of the function body.
Implementation
@override
BuildBodyResult buildBody(BuildContext context, bool hasResult) {
RangeError.checkNotNegative(m, 'm');
if (n < m) {
throw ArgumentError.value(n, 'n', 'Must be greater than or equal to $m');
}
checkIsNotOptional(p);
return renderBody(
this,
context,
hasResult,
m == 0 ? _template0 : _template,
m == 0 ? _template0NoResult : _templateNoResult,
{
'O': '$O',
'm': getAsCode(m),
'n': getAsCode(n),
},
);
}