tree-sitter/test/helpers/scope_sequence.h

17 lines
518 B
C
Raw Normal View History

#ifndef HELPERS_SCOPE_SEQUENCE_H_
#define HELPERS_SCOPE_SEQUENCE_H_
#include <string>
#include <vector>
#include "tree_sitter/runtime.h"
typedef std::string Scope;
typedef std::vector<Scope> ScopeStack;
typedef std::vector<ScopeStack> ScopeSequence;
2018-05-10 22:22:37 -07:00
ScopeSequence build_scope_sequence(TSTree *tree, const std::string &text);
void verify_changed_ranges(const ScopeSequence &old, const ScopeSequence &new_sequence, const std::string &text, TSRange *ranges, size_t range_count);
#endif // HELPERS_SCOPE_SEQUENCE_H_