Add ts_query_disable_capture API
This commit is contained in:
parent
4c17af3ecd
commit
f490befcde
4 changed files with 46 additions and 2 deletions
|
|
@ -1202,6 +1202,16 @@ impl Query {
|
|||
&self.property_settings[index]
|
||||
}
|
||||
|
||||
pub fn disable_capture(&mut self, name: &str) {
|
||||
unsafe {
|
||||
ffi::ts_query_disable_capture(
|
||||
self.ptr.as_ptr(),
|
||||
name.as_bytes().as_ptr() as *const c_char,
|
||||
name.len() as u32,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_property(
|
||||
function_name: &str,
|
||||
capture_names: &[String],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue