buildBody method
Builds a parser function body and returns the source code of the function body.
Implementation
@override
BuildBodyResult buildBody(BuildContext context, bool hasResult) {
if (tag.isEmpty) {
throw ArgumentError.value(tag, 'tag', 'Must not be empty');
}
return renderBody(
this,
context,
hasResult,
_template,
_templateNoResult,
{
'pattern': getAsCode(tag),
},
);
}