Add source info to TSTree

This commit is contained in:
joshvera 2015-11-12 15:32:53 -05:00
parent bf666351e9
commit 8058500c5b
7 changed files with 49 additions and 16 deletions

View file

@ -43,7 +43,7 @@ describe("Stack", [&]() {
TSLength len = ts_length_make(2, 2);
for (size_t i = 0; i < tree_count; i++)
trees[i] = ts_tree_make_leaf(ts_builtin_sym_start + i, len, len, TSNodeTypeNamed);
trees[i] = ts_tree_make_leaf(ts_builtin_sym_start + i, len, len, {1, 1}, {1, 2}, TSNodeTypeNamed);
});
after_each([&]() {