build method

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

Implementation

@override
String build(Context context, ParserResult? result) {
  final key = Object();
  return HandleLastErrorPos(
    Alt2(
      Preceded(CapturePosition(key), parser),
      FailMessage(
        LastErrorPositionAction(),
        message,
        CapturedValueAction(key),
        LastErrorPositionAction(),
      ),
    ),
  ).build(context, result);
}