removeDuplicates<R> function

  1. @useResult
  2. @Deprecated('Use `optimize(parser, rules: const [RemoveDuplicate()])` instead')
Parser<R> removeDuplicates<R>(
  1. Parser<R> parser
)

Collapses all duplicate parsers in-place.

Implementation

@useResult
@Deprecated('Use `optimize(parser, rules: const [RemoveDuplicate()])` instead')
Parser<R> removeDuplicates<R>(Parser<R> parser) =>
    optimize(parser, rules: const [RemoveDuplicate()]);