Add doc comments for tree included ranges getter
This commit is contained in:
parent
da6e24de17
commit
618146260e
2 changed files with 6 additions and 0 deletions
|
|
@ -764,6 +764,7 @@ impl Tree {
|
|||
}
|
||||
}
|
||||
|
||||
/// Get the included ranges that were used to parse the syntax tree.
|
||||
pub fn included_ranges(&self) -> Vec<Range> {
|
||||
let mut count = 0u32;
|
||||
unsafe {
|
||||
|
|
|
|||
|
|
@ -381,6 +381,11 @@ TSNode ts_tree_root_node_with_offset(
|
|||
*/
|
||||
const TSLanguage *ts_tree_language(const TSTree *);
|
||||
|
||||
/**
|
||||
* Get the array of included ranges that was used to parse the syntax tree.
|
||||
*
|
||||
* The returned pointer must be freed by the caller.
|
||||
*/
|
||||
TSRange *ts_tree_included_ranges(const TSTree *, uint32_t *length);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue