add ts_node_end_point

This commit is contained in:
joshvera 2015-11-18 16:45:10 -08:00
parent b0f6bac3ab
commit 6485e27d70
2 changed files with 5 additions and 0 deletions

View file

@ -52,6 +52,7 @@ typedef struct TSDocument TSDocument;
TSLength ts_node_pos(TSNode);
TSLength ts_node_size(TSNode);
TSPoint ts_node_end_point(TSNode);
TSSymbol ts_node_symbol(TSNode);
const char *ts_node_name(TSNode, const TSDocument *);
const char *ts_node_string(TSNode, const TSDocument *);

View file

@ -168,6 +168,10 @@ TSLength ts_node_size(TSNode self) {
return ts_node__tree(self)->size;
}
TSLength ts_node_point(TSNode self) {
return ts_node__tree(self)->size_point;
}
TSSymbol ts_node_symbol(TSNode self) {
return ts_node__tree(self)->symbol;
}