10 const TSRange *included_ranges,
unsigned included_range_count
23 return ts_tree_new(self->root, self->language, self->included_ranges, self->included_range_count);
41 return self->language;
45 for (
unsigned i = 0;
i <
self->included_range_count;
i++) {
84 TSRangeArray included_range_differences =
array_new();
86 self->included_ranges, self->included_range_count,
88 &included_range_differences
93 &self->root, &other->
root, &cursor1, &cursor2,
94 self->language, &included_range_differences, &result
#define array_delete(self)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
void ts_range_array_get_changed_ranges(const TSRange *old_ranges, unsigned old_range_count, const TSRange *new_ranges, unsigned new_range_count, TSRangeArray *differences)
unsigned ts_subtree_get_changed_ranges(const Subtree *old_tree, const Subtree *new_tree, TreeCursor *cursor1, TreeCursor *cursor2, const TSLanguage *language, const TSRangeArray *included_range_differences, TSRange **ranges)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
TSNode ts_node_new(const TSTree *tree, const Subtree *subtree, Length position, TSSymbol alias)
static TSPoint point_sub(TSPoint a, TSPoint b)
static TSPoint point_add(TSPoint a, TSPoint b)
TSRange * included_ranges
unsigned included_range_count
const TSLanguage * language
TSTree * ts_tree_new(Subtree root, const TSLanguage *language, const TSRange *included_ranges, unsigned included_range_count)
void ts_tree_edit(TSTree *self, const TSInputEdit *edit)
void ts_tree_print_dot_graph(const TSTree *self, FILE *file)
TSTree * ts_tree_copy(const TSTree *self)
void ts_tree_delete(TSTree *self)
TSRange * ts_tree_get_changed_ranges(const TSTree *self, const TSTree *other, uint32_t *count)
TSNode ts_tree_root_node(const TSTree *self)
const TSLanguage * ts_tree_language(const TSTree *self)
Subtree ts_subtree_edit(Subtree self, const TSInputEdit *edit, SubtreePool *pool)
void ts_subtree_release(SubtreePool *pool, Subtree self)
void ts_subtree_print_dot_graph(Subtree self, const TSLanguage *language, FILE *f)
void ts_subtree_retain(Subtree self)
SubtreePool ts_subtree_pool_new(uint32_t capacity)
void ts_subtree_pool_delete(SubtreePool *self)
static Length ts_subtree_padding(Subtree self)
void ts_tree_cursor_init(TreeCursor *self, TSNode node)