then<R7> method

  1. @useResult
SequenceParser7<R1, R2, R3, R4, R5, R6, R7> then<R7>(
  1. Parser<R7> other
)

Returns a parser that consumes the receiver followed by other in sequence and returns a SequenceParser7 with the 7 positional parse results.

Flattens into a strictly typed Record with 7 elements, preserving static type information.

For example, the parser char('a').then(char('b')).then(char('c')).then(char('d')).then(char('e')).then(char('f')).then(char('g')) returns ('a', 'b', 'c', 'd', 'e', 'f', 'g') for the input 'abcdefg'.

Implementation

@useResult
SequenceParser7<R1, R2, R3, R4, R5, R6, R7> then<R7>(Parser<R7> other) =>
    SequenceParser7<R1, R2, R3, R4, R5, R6, R7>(
      parser1,
      parser2,
      parser3,
      parser4,
      parser5,
      parser6,
      other,
    );