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:
parent
12848187b8
commit
fe4e2cf260
12
app/bridge.c
12
app/bridge.c
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user