captureResultGeneric<T> method

  1. @internal
  2. @nonVirtual
  3. @inlineVm
  4. @inlineJs
T captureResultGeneric<T>(
  1. T callback<R>(
    1. Parser<R> self
    )
)

Internal helper to capture the generic type R of the parse result. This makes it possible to wrap the parser without loosing type information.

Implementation

@internal
@nonVirtual
@inlineVm
@inlineJs
T captureResultGeneric<T>(T Function<R>(Parser<R> self) callback) =>
    callback<R>(this);