2017-08-04 11:03:14 -07:00
|
|
|
#ifndef RUNTIME_GET_CHANGED_RANGES_H_
|
|
|
|
|
#define RUNTIME_GET_CHANGED_RANGES_H_
|
|
|
|
|
|
|
|
|
|
#include "runtime/tree.h"
|
|
|
|
|
|
2017-10-05 17:32:21 -07:00
|
|
|
typedef struct {
|
|
|
|
|
Tree *tree;
|
|
|
|
|
Length position;
|
|
|
|
|
uint32_t child_index;
|
|
|
|
|
uint32_t structural_child_index;
|
|
|
|
|
} TreePathEntry;
|
|
|
|
|
|
|
|
|
|
typedef Array(TreePathEntry) TreePath;
|
|
|
|
|
|
2017-08-04 11:03:14 -07:00
|
|
|
unsigned ts_tree_get_changed_ranges(
|
2017-08-04 14:03:41 -07:00
|
|
|
Tree *old_tree, Tree *new_tree, TreePath *path1, TreePath *path2,
|
2017-08-04 11:03:14 -07:00
|
|
|
const TSLanguage *language, TSRange **ranges
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
#endif // RUNTIME_GET_CHANGED_RANGES_H_
|