buildBody method
Builds a parser function body and returns the source code of the function body.
Implementation
@override
BuildBodyResult buildBody(BuildContext context, bool hasResult) {
final reader = getCharReader(is16BitPredicate(predicate), 'c');
return renderBody(
this,
context,
hasResult,
_template,
_templateNoResult,
{
'predicate': predicate.calculate(context, ['c']),
'read': reader.name,
'size': reader.size,
},
);
}