2019-01-10 15:22:39 -08:00
|
|
|
#ifndef TREE_SITTER_GET_CHANGED_RANGES_H_
|
|
|
|
|
#define TREE_SITTER_GET_CHANGED_RANGES_H_
|
2017-08-04 11:03:14 -07:00
|
|
|
|
2018-11-07 12:56:44 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-01-04 17:33:34 -08:00
|
|
|
#include "./tree_cursor.h"
|
|
|
|
|
#include "./subtree.h"
|
2017-08-04 11:03:14 -07:00
|
|
|
|
2018-11-07 12:56:44 -08:00
|
|
|
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
|
|
|
|
|
);
|
|
|
|
|
|
2018-05-10 15:11:14 -07:00
|
|
|
unsigned ts_subtree_get_changed_ranges(
|
2018-05-11 15:06:13 -07:00
|
|
|
const Subtree *old_tree, const Subtree *new_tree,
|
2018-05-16 16:05:08 -07:00
|
|
|
TreeCursor *cursor1, TreeCursor *cursor2,
|
2018-11-07 12:56:44 -08:00
|
|
|
const TSLanguage *language,
|
|
|
|
|
const TSRangeArray *included_range_differences,
|
|
|
|
|
TSRange **ranges
|
2017-08-04 11:03:14 -07:00
|
|
|
);
|
|
|
|
|
|
2018-11-07 12:56:44 -08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2019-01-10 15:22:39 -08:00
|
|
|
#endif // TREE_SITTER_GET_CHANGED_RANGES_H_
|