Rename stack_right_position -> stack_total_tree_size
I want to re-use the stack data structure for storing the re-usable nodes from the previous parse tree during an edit. In this case, the stack won't conceptually start at position zero, so the name 'right_position' doesn't make sense.
This commit is contained in:
parent
26f9e22193
commit
80b8a0a9fb
3 changed files with 4 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ void ts_stack_shrink(TSStack *stack, size_t new_size);
|
|||
void ts_stack_push(TSStack *stack, TSStateId state, TSTree *node);
|
||||
TSStateId ts_stack_top_state(const TSStack *stack);
|
||||
TSTree *ts_stack_top_node(const TSStack *stack);
|
||||
TSLength ts_stack_right_position(const TSStack *stack);
|
||||
TSLength ts_stack_total_tree_size(const TSStack *stack);
|
||||
|
||||
#define TS_STACK_FROM_TOP(stack, entry) \
|
||||
for (TSStackEntry *entry = (stack).entries + (stack).size - 1; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue