Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Functions | |
typedef | Array (TSRange) TSRangeArray |
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) |
bool | ts_range_array_intersects (const TSRangeArray *self, unsigned start_index, uint32_t start_byte, uint32_t end_byte) |
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) |
typedef Array | ( | TSRange | ) |
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 | ||
) |
Definition at line 46 of file get_changed_ranges.c.
References Length::bytes, TSRange::end_byte, TSRange::end_point, LENGTH_MAX, length_zero(), TSRange::start_byte, TSRange::start_point, and ts_range_array_add().
Referenced by ts_parser_parse(), and ts_tree_get_changed_ranges().
bool ts_range_array_intersects | ( | const TSRangeArray * | self, |
unsigned | start_index, | ||
uint32_t | start_byte, | ||
uint32_t | end_byte | ||
) |
Definition at line 30 of file get_changed_ranges.c.
References i, and capstone::range.
Referenced by ts_parser__has_included_range_difference(), and ts_subtree_get_changed_ranges().
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 | ||
) |
Definition at line 357 of file get_changed_ranges.c.
References array_new, bytes, Length::bytes, TSPoint::column, Iterator::cursor, Length::extent, iterator_advance(), iterator_ascend(), iterator_compare(), iterator_descend(), iterator_done(), iterator_end_position(), iterator_new(), iterator_start_position(), IteratorDiffers, IteratorMatches, IteratorMayDiffer, length_min(), printf(), capstone::range, TSPoint::row, ts_range_array_add(), ts_range_array_intersects(), ts_subtree_total_size(), and Iterator::visible_depth.
Referenced by ts_tree_get_changed_ranges().