feat: add method to get current parsing index (#728)

This commit is contained in:
Tao Wu 2022-12-01 02:14:47 +08:00 committed by GitHub
parent 6f48fc9acb
commit 7101e0021f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5930,6 +5930,11 @@ impl<'a> Parser<'a> {
}
Ok(sequence_options)
}
/// The index of the first unprocessed token.
pub fn index(&self) -> usize {
self.index
}
}
impl Word {