Add doc comments for tree included ranges getter

This commit is contained in:
Max Brunsfeld 2022-11-08 17:47:57 -08:00
parent da6e24de17
commit 618146260e
2 changed files with 6 additions and 0 deletions

View file

@ -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 {

View file

@ -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);
/**