mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
c57dd1ef8f
Copying into TSLengths ended up being worst of both worlds.
29 lines
666 B
C
29 lines
666 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);
|
|
}
|
|
|
|
|
|
size_t ts_node_p_pos_chars(const TSNode *node) {
|
|
return ts_node_pos(*node).chars;
|
|
}
|
|
|
|
size_t ts_node_p_size_chars(const TSNode *node) {
|
|
return ts_node_size(*node).chars;
|
|
}
|