mirror of
https://github.com/github/semantic.git
synced 2024-11-24 17:04:47 +03:00
29 lines
696 B
C
29 lines
696 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);
|
|
}
|
|
|
|
|
|
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);
|
|
}
|