fastParse method

  1. @override
bool fastParse(
  1. State<I> state
)
override

Parses the input and returns true if successful, false otherwise.

Implementation

@override
bool fastParse(State<I> state) {
  final pos = state.pos;
  final r = p.fastParse(state);
  if (!r) {
    return true;
  }

  state.pos = pos;
  state.fail<Object?>(ErrorUnexpectedInput(pos - state.pos));
  return false;
}