From 5b6c88b6b894bc013da024559798905b2158bba6 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 25 Nov 2015 11:42:31 -0500 Subject: [PATCH] Add a bridging function wrapping ts_node_named_child_count. --- app/bridge.c | 4 ++++ app/bridge.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app/bridge.c b/app/bridge.c index b8c1d8b82..e181994c6 100644 --- a/app/bridge.c +++ b/app/bridge.c @@ -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) { return ts_node_name(*node, document); } + +size_t ts_node_p_named_child_count(const TSNode *node) { + return ts_node_named_child_count(*node); +} diff --git a/app/bridge.h b/app/bridge.h index def406d8f..d5f71be99 100644 --- a/app/bridge.h +++ b/app/bridge.h @@ -3,3 +3,5 @@ void ts_document_root_node_p(TSDocument *document, TSNode *outNode); const char *ts_node_p_name(const TSNode *node, const TSDocument *document); + +size_t ts_node_p_named_child_count(const TSNode *node);