1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Bridge to the node start/end point functions.

This commit is contained in:
Rob Rix 2015-12-01 14:59:29 -05:00
parent 12848187b8
commit fe4e2cf260
2 changed files with 15 additions and 0 deletions

View File

@ -50,3 +50,15 @@ size_t ts_node_p_size_chars(const TSNode *node) {
assert(node->data != NULL);
return ts_node_size(*node).chars;
}
size_t ts_node_p_start_point(const TSNode *node) {
assert(node != NULL);
assert(node->data != NULL);
return ts_node_start_point(*node).row;
}
size_t ts_node_p_end_point(const TSNode *node) {
assert(node != NULL);
assert(node->data != NULL);
return ts_node_end_point(*node).row;
}

View File

@ -11,3 +11,6 @@ void ts_node_p_named_child(const TSNode *node, size_t index, TSNode *outNode);
size_t ts_node_p_pos_chars(const TSNode *node);
size_t ts_node_p_size_chars(const TSNode *node);
size_t ts_node_p_start_point(const TSNode *node);
size_t ts_node_p_end_point(const TSNode *node);