Remove unnecessary accessor functions for tree

This commit is contained in:
Max Brunsfeld 2014-07-14 21:11:15 -07:00
parent 6e551d6d9f
commit 25f927e321
9 changed files with 41 additions and 55 deletions

View file

@ -1,4 +1,5 @@
#include "runtime/runtime_spec_helper.h"
#include "runtime/tree.h"
#include "tree_sitter/parser.h"
START_TEST
@ -71,7 +72,7 @@ describe("stacks", [&]() {
it("returns a node with the given symbol", [&]() {
TSTree *node = ts_stack_reduce(&stack, sym2, 3, hidden_symbols, 0);
AssertThat(ts_tree_symbol(node), Equals(sym2));
AssertThat(node->symbol, Equals(sym2));
});
it("makes all of the removed nodes immediate children of the new node", [&]() {