Take more parameters in ts_subtree_new_leaf
This commit is contained in:
parent
c828ca308f
commit
e00c3bbdb9
5 changed files with 104 additions and 68 deletions
|
|
@ -88,7 +88,11 @@ describe("Stack", [&]() {
|
|||
dummy_language.symbol_metadata = symbol_metadata;
|
||||
|
||||
for (size_t i = 0; i < subtree_count; i++) {
|
||||
subtrees[i] = ts_subtree_new_leaf(&pool, i + 1, length_zero(), tree_len, false, &dummy_language);
|
||||
subtrees[i] = ts_subtree_new_leaf(
|
||||
&pool, i + 1, length_zero(), tree_len, 0,
|
||||
TS_TREE_STATE_NONE, true, false, &dummy_language
|
||||
);
|
||||
ts_external_scanner_state_init(&((Subtree *)subtrees[i])->external_scanner_state, nullptr, 0);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue