tree-sitter/test/helpers/tree_helpers.h

19 lines
598 B
C
Raw Normal View History

2014-06-08 16:31:45 -07:00
#ifndef HELPERS_TREE_HELPERS_H_
#define HELPERS_TREE_HELPERS_H_
2018-05-10 15:11:14 -07:00
#include "runtime/subtree.h"
#include <vector>
2015-05-25 20:44:23 -07:00
#include <string>
extern const char *symbol_names[24];
SubtreeArray *tree_array(std::vector<const Subtree *> trees);
2014-06-08 16:31:45 -07:00
2018-05-10 15:11:14 -07:00
std::ostream &operator<<(std::ostream &stream, const Subtree *tree);
std::ostream &operator<<(std::ostream &stream, const TSNode &node);
bool operator==(const TSNode &left, const TSNode &right);
bool operator==(const std::vector<const Subtree *> &right, const SubtreeArray &array);
2015-05-25 20:44:23 -07:00
void assert_consistent_tree_sizes(TSNode node);
2014-07-17 23:29:11 -07:00
#endif // HELPERS_TREE_HELPERS_H_