sequence
Adds a SequenceElement that matches all specified elements in order.
The pattern lambda receives a RuleBuilder where PatternElements can be added. All elements must match consecutively for the sequence to succeed. If only one element is defined, it is added directly without wrapping in a sequence.
Do not call produces from within the pattern lambda; the built sequence does not produce a Node.
Return
this RuleBuilder for chaining
Parameters
pattern
A lambda defining the elements to match in sequence