1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Add a bridging function wrapping ts_node_named_child_count.

This commit is contained in:
Rob Rix 2015-11-25 11:42:31 -05:00
parent 3744714c59
commit 5b6c88b6b8
2 changed files with 6 additions and 0 deletions

View File

@ -7,3 +7,7 @@ void ts_document_root_node_p(TSDocument *document, TSNode *outNode) {
const char *ts_node_p_name(const TSNode *node, const TSDocument *document) { const char *ts_node_p_name(const TSNode *node, const TSDocument *document) {
return ts_node_name(*node, document); return ts_node_name(*node, document);
} }
size_t ts_node_p_named_child_count(const TSNode *node) {
return ts_node_named_child_count(*node);
}

View File

@ -3,3 +3,5 @@
void ts_document_root_node_p(TSDocument *document, TSNode *outNode); void ts_document_root_node_p(TSDocument *document, TSNode *outNode);
const char *ts_node_p_name(const TSNode *node, const TSDocument *document); const char *ts_node_p_name(const TSNode *node, const TSDocument *document);
size_t ts_node_p_named_child_count(const TSNode *node);