build method
Implementation
@override
String build(Context context, ParserResult? result) {
context.refersToStateSource = true;
final fast = result == null;
final values = context.allocateLocals(['pos']);
values.addAll({
'test': predicate.build(context, 'test', ['c']),
});
final isUnicode = predicate.isUnicode;
final String template;
if (isUnicode) {
if (fast) {
template = _template32Fast;
} else {
template = _template32;
}
} else {
if (fast) {
template = _template16Fast;
} else {
template = _template16;
}
}
return render(template, values, [result]);
}