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 size = controlChar > 0xffff ? 2 : 1;
return renderBody(
this,
context,
hasResult,
_template,
_templateNoResult,
{
'controlChar': '$controlChar',
'normalChar': normalChar.calculate(context, ['c']),
'size': '$size',
},
parsers: [(escape, true)],
);
}