Clean up ts_stack_push function

This commit is contained in:
Max Brunsfeld 2017-06-29 10:43:20 -07:00
parent 66be393b78
commit 445be0736a
2 changed files with 31 additions and 48 deletions

View file

@ -78,10 +78,9 @@ void ts_stack_set_last_external_token(Stack *, StackVersion, Tree *);
Length ts_stack_top_position(const Stack *, StackVersion);
/*
* Push a tree and state onto the given head of the stack. This could cause
* the version to merge with an existing version.
* Push a tree and state onto the given head of the stack.
*/
bool ts_stack_push(Stack *, StackVersion, Tree *, bool, TSStateId);
void ts_stack_push(Stack *, StackVersion, Tree *, bool, TSStateId);
/*
* Pop the given number of entries from the given version of the stack. This