toSequenceParser method

  1. @useResult
Parser<(R1, R2)> toSequenceParser()

Converts a Record of 2 positional parsers to a Parser that runs the parsers in sequence and returns a Record with 2 positional parse results.

For example, the parser (char('a'), char('b')).toSequenceParser() returns ('a', 'b') for the input 'ab'.

Implementation

@useResult
Parser<(R1, R2)> toSequenceParser() => SequenceParser2<R1, R2>($1, $2);