mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
18 lines
489 B
C
18 lines
489 B
C
#include "bridge.h"
|
|
|
|
void ts_document_root_node_p(TSDocument *document, TSNode *outNode) {
|
|
*outNode = ts_document_root_node(document);
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
void ts_node_p_named_child(const TSNode *node, size_t index, TSNode *outNode) {
|
|
*outNode = ts_node_named_child(*node, index);
|
|
}
|