mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
feat: add method to get current parsing index (#728)
This commit is contained in:
parent
6f48fc9acb
commit
7101e0021f
1 changed files with 5 additions and 0 deletions
|
@ -5930,6 +5930,11 @@ impl<'a> Parser<'a> {
|
||||||
}
|
}
|
||||||
Ok(sequence_options)
|
Ok(sequence_options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// The index of the first unprocessed token.
|
||||||
|
pub fn index(&self) -> usize {
|
||||||
|
self.index
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Word {
|
impl Word {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue