tree-sitter/src/runtime/document.h

21 lines
348 B
C
Raw Normal View History

#ifndef RUNTIME_DOCUMENT_H_
#define RUNTIME_DOCUMENT_H_
#include "runtime/parser.h"
#include "runtime/tree.h"
#include "runtime/tree_cursor.h"
#include <stdbool.h>
struct TSDocument {
2016-08-29 12:08:58 -07:00
Parser parser;
TSInput input;
Tree *tree;
TSTreeCursor cursor1;
TSTreeCursor cursor2;
size_t parse_count;
bool valid;
2016-01-29 16:40:38 -08:00
bool owns_input;
};
#endif