diff --git a/src/parser.rs b/src/parser.rs index 8361e02ad..859e1ff76 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -5775,6 +5775,11 @@ impl<'a> Parser<'a> { } Ok(sequence_options) } + + /// The index of the first unprocessed token. + pub fn index(&self) -> usize { + self.index + } } impl Word {