Rename Query::step_is_definite -> is_pattern_guaranteed_at_step
This commit is contained in:
parent
f69c4861c3
commit
142f4b6438
5 changed files with 9 additions and 7 deletions
|
|
@ -1586,8 +1586,10 @@ impl Query {
|
|||
///
|
||||
/// A query step is 'definite' if its parent pattern will be guaranteed to match
|
||||
/// successfully once it reaches the step.
|
||||
pub fn step_is_definite(&self, byte_offset: usize) -> bool {
|
||||
unsafe { ffi::ts_query_step_is_definite(self.ptr.as_ptr(), byte_offset as u32) }
|
||||
pub fn is_pattern_guaranteed_at_step(&self, byte_offset: usize) -> bool {
|
||||
unsafe {
|
||||
ffi::ts_query_is_pattern_guaranteed_at_step(self.ptr.as_ptr(), byte_offset as u32)
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_property(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue