Skip to content

Commit 7101e00

Browse files
author
Tao Wu
authored
feat: add method to get current parsing index (#728)
1 parent 6f48fc9 commit 7101e00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/parser.rs

+5
Original file line numberDiff line numberDiff line change
@@ -5930,6 +5930,11 @@ impl<'a> Parser<'a> {
59305930
}
59315931
Ok(sequence_options)
59325932
}
5933+
5934+
/// The index of the first unprocessed token.
5935+
pub fn index(&self) -> usize {
5936+
self.index
5937+
}
59335938
}
59345939

59355940
impl Word {

0 commit comments

Comments
 (0)