negate method

Parser<T> negate(
  1. {String errorMessage,
  2. SyntaxErrorSeverity severity}
)

Ensures this pattern is not matched.

You can provide an errorMessage.

Implementation

Parser<T> negate({String errorMessage, SyntaxErrorSeverity severity}) =>
    new _Negate<T>(this, errorMessage, severity ?? SyntaxErrorSeverity.error);