change method

ParseResult<T> change(
  1. {Parser<T> parser,
  2. bool successful,
  3. Iterable<SyntaxError> errors,
  4. FileSpan span,
  5. T value}
)

Implementation

ParseResult<T> change(
    {Parser<T> parser,
    bool successful,
    Iterable<SyntaxError> errors,
    FileSpan span,
    T value}) {
  return new ParseResult<T>(
    trampoline,
    scanner,
    parser ?? this.parser,
    successful ?? this.successful,
    errors ?? this.errors,
    span: span ?? this.span,
    value: value ?? this.value,
  );
}