tree-sitter/src/runtime/node.h

20 lines
453 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"
#include "runtime/tree.h"
2014-07-17 23:29:11 -07:00
struct TSNode {
2014-07-20 20:27:33 -07:00
size_t ref_count;
size_t start_position;
size_t index;
const TSTree *content;
struct TSNode *parent;
const char **names;
2014-07-17 23:29:11 -07:00
};
TSNode * ts_node_make(const TSTree *tree, TSNode *parent, size_t index, size_t start_position, const char **names);
TSNode * ts_node_make_root(const TSTree *tree, const char **names);
2014-07-17 23:29:11 -07:00
#endif