Rizin
unix-like reverse engineering framework and cli tools
|
#include "./get_changed_ranges.h"
#include "./subtree.h"
#include "./language.h"
#include "./error_costs.h"
#include "./tree_cursor.h"
#include <assert.h>
Go to the source code of this file.
Classes | |
struct | Iterator |
Enumerations | |
enum | IteratorComparison { IteratorDiffers , IteratorMayDiffer , IteratorMatches } |
enum IteratorComparison |
Enumerator | |
---|---|
IteratorDiffers | |
IteratorMayDiffer | |
IteratorMatches |
Definition at line 298 of file get_changed_ranges.c.
|
static |
Definition at line 253 of file get_changed_ranges.c.
References array_back, array_pop, array_push, Length::bytes, iterator_descend(), iterator_done(), iterator_tree_is_visible(), length_add(), ts_subtree_child_count(), ts_subtree_children, ts_subtree_extra(), ts_subtree_padding(), and ts_subtree_total_size().
Referenced by ts_subtree_get_changed_ranges().
|
static |
Definition at line 203 of file get_changed_ranges.c.
References array_back, iterator_done(), and iterator_tree_is_visible().
Referenced by ts_subtree_get_changed_ranges().
|
static |
Definition at line 304 of file get_changed_ranges.c.
References bytes, ERROR_STATE, iterator_get_visible_state(), IteratorDiffers, IteratorMatches, IteratorMayDiffer, NULL_SUBTREE, Subtree::ptr, ts_builtin_sym_error, ts_subtree_has_changes(), ts_subtree_parse_state(), ts_subtree_size(), ts_subtree_symbol(), and TS_TREE_STATE_NONE.
Referenced by ts_subtree_get_changed_ranges().
Definition at line 210 of file get_changed_ranges.c.
References array_back, array_push, Length::bytes, i, iterator_tree_is_visible(), length_add(), n, ts_subtree_child_count(), ts_subtree_children, ts_subtree_extra(), ts_subtree_padding(), and ts_subtree_size().
Referenced by iterator_advance(), and ts_subtree_get_changed_ranges().
Definition at line 133 of file get_changed_ranges.c.
Referenced by iterator_advance(), iterator_ascend(), and ts_subtree_get_changed_ranges().
Definition at line 146 of file get_changed_ranges.c.
References array_back, length_add(), ts_subtree_padding(), and ts_subtree_size().
Referenced by ts_subtree_get_changed_ranges().
|
static |
Definition at line 170 of file get_changed_ranges.c.
References i, SubtreeHeapData::production_id, Subtree::ptr, ts_language_alias_at(), and ts_subtree_visible().
Referenced by iterator_compare().
|
static |
Definition at line 113 of file get_changed_ranges.c.
References array_clear, and array_push.
Referenced by ts_subtree_get_changed_ranges().
Definition at line 137 of file get_changed_ranges.c.
References array_back, length_add(), and ts_subtree_padding().
Referenced by ts_subtree_get_changed_ranges().
Definition at line 156 of file get_changed_ranges.c.
References array_back, SubtreeHeapData::production_id, Subtree::ptr, ts_language_alias_at(), and ts_subtree_visible().
Referenced by iterator_advance(), iterator_ascend(), and iterator_descend().
Definition at line 10 of file get_changed_ranges.c.
References array_back, array_push, test_evm::end, TSRange::end_byte, TSRange::end_point, capstone::range, and start.
Referenced by ts_range_array_get_changed_ranges(), and ts_subtree_get_changed_ranges().
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().