build method

  1. @override
String build(
  1. Context context,
  2. ParserResult? result
)
override

Implementation

@override
String build(Context context, ParserResult? result) {
  context.refersToStateSource = true;
  if (predicate is CharClass) {
    final charClass = predicate as CharClass;
    final charList = charClass.getCharList();
    if (charList.length == 2 && charList[0] == charList[1]) {
      return _buildOne(context, result);
    }
  }

  return _build(context, result);
}