success<R> method

  1. @useResult
  2. @preferInline
Success<R> success<R>(
  1. R result, [
  2. int? position
])

Creates a Success parse result with result at position.

If position is omitted, defaults to the current position.

Implementation

@useResult
@preferInline
Success<R> success<R>(R result, [int? position]) =>
    Success<R>(buffer, position ?? this.position, result);