1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00
semantic/app/bridge.h

18 lines
595 B
C
Raw Normal View History

2015-11-25 00:39:20 +03:00
#include "tree_sitter/runtime.h"
2015-11-26 02:38:38 +03:00
extern TSLanguage *ts_language_c();
2015-12-03 23:44:08 +03:00
extern TSLanguage *ts_language_javascript();
2015-11-26 02:38:38 +03:00
2015-11-25 00:39:20 +03:00
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);
void ts_node_p_named_child(const TSNode *node, size_t index, TSNode *outNode);
2015-11-25 20:21:47 +03:00
size_t ts_node_p_pos_chars(const TSNode *node);
size_t ts_node_p_size_chars(const TSNode *node);
size_t ts_node_p_start_point(const TSNode *node);
size_t ts_node_p_end_point(const TSNode *node);