chore: update Rust bindings
This commit is contained in:
parent
9a74f5cbf5
commit
2f2e416031
2 changed files with 7 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* automatically generated by rust-bindgen 0.65.1 */
|
||||
/* automatically generated by rust-bindgen 0.66.1 */
|
||||
|
||||
pub type TSSymbol = u16;
|
||||
pub type TSFieldId = u16;
|
||||
|
|
@ -278,6 +278,10 @@ extern "C" {
|
|||
#[doc = " Get the node's type as a numerical id."]
|
||||
pub fn ts_node_symbol(arg1: TSNode) -> TSSymbol;
|
||||
}
|
||||
extern "C" {
|
||||
#[doc = " Get the node's language."]
|
||||
pub fn ts_node_language(arg1: TSNode) -> *const TSLanguage;
|
||||
}
|
||||
extern "C" {
|
||||
#[doc = " Get the node's start byte."]
|
||||
pub fn ts_node_start_byte(arg1: TSNode) -> u32;
|
||||
|
|
|
|||
|
|
@ -839,9 +839,9 @@ impl<'tree> Node<'tree> {
|
|||
}
|
||||
|
||||
/// Get the [Language] that was used to parse this node's syntax tree.
|
||||
#[doc(alias = "ts_tree_language")]
|
||||
#[doc(alias = "ts_node_language")]
|
||||
pub fn language(&self) -> Language {
|
||||
Language(unsafe { ffi::ts_tree_language(self.0.tree) })
|
||||
Language(unsafe { ffi::ts_node_language(self.0) })
|
||||
}
|
||||
|
||||
/// Check if this node is *named*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue