Start work on repairing errors by inserting missing tokens

This commit is contained in:
Max Brunsfeld 2017-12-28 15:48:35 -08:00
parent f2dc620610
commit d3c85f288d
7 changed files with 128 additions and 33 deletions

View file

@ -278,6 +278,11 @@ bool ts_node_is_named(TSNode self) {
return tree->context.alias_symbol ? tree->context.alias_is_named : tree->named;
}
bool ts_node_is_missing(TSNode self) {
const Tree *tree = ts_node__tree(self);
return tree->is_missing;
}
bool ts_node_has_changes(TSNode self) {
return ts_node__tree(self)->has_changes;
}