tree-sitter/src/runtime/node.h

19 lines
451 B
C
Raw Normal View History

2014-07-17 23:29:11 -07:00
#ifndef RUNTIME_NODE_H_
#define RUNTIME_NODE_H_
#include "tree_sitter/parser.h"
struct TSNode {
size_t ref_count;
2014-07-18 13:08:14 -07:00
size_t start_position;
2014-07-17 23:29:11 -07:00
size_t index;
const TSTree *content;
struct TSNode *parent;
TSParserConfig *config;
};
TSNode * ts_node_make(const TSTree *tree, TSNode *parent, size_t index, size_t start_position, TSParserConfig *config);
2014-07-18 13:08:14 -07:00
TSNode * ts_node_make_root(const TSTree *tree, TSParserConfig *config);
2014-07-17 23:29:11 -07:00
#endif