diff --git a/app/bridge.c b/app/bridge.c index ce55c6f5e..10b5e8ac5 100644 --- a/app/bridge.c +++ b/app/bridge.c @@ -22,3 +22,7 @@ void ts_node_p_named_child(const TSNode *node, size_t index, TSNode *outNode) { void ts_node_p_pos_p(const TSNode *node, TSLength *outLength) { *outLength = ts_node_pos(*node); } + +void ts_node_p_size_p(const TSNode *node, TSLength *outLength) { + *outLength = ts_node_size(*node); +} diff --git a/app/bridge.h b/app/bridge.h index 69113589a..42ebd49a6 100644 --- a/app/bridge.h +++ b/app/bridge.h @@ -8,3 +8,4 @@ size_t ts_node_p_named_child_count(const TSNode *node); void ts_node_p_named_child(const TSNode *node, size_t index, TSNode *outNode); void ts_node_p_pos_p(const TSNode *node, TSLength *outLength); +void ts_node_p_size_p(const TSNode *node, TSLength *outLength);