Clean up tree array assertions in stack spec
This commit is contained in:
parent
b113dc8b0f
commit
f444a715fd
5 changed files with 29 additions and 46 deletions
|
|
@ -7,6 +7,7 @@ extern "C" {
|
|||
|
||||
#include "tree_sitter/parser.h"
|
||||
#include "runtime/array.h"
|
||||
#include "runtime/tree.h"
|
||||
|
||||
typedef struct Stack Stack;
|
||||
|
||||
|
|
@ -16,8 +17,6 @@ typedef struct {
|
|||
TSLength position;
|
||||
} StackEntry;
|
||||
|
||||
typedef Array(TSTree *) TreeArray;
|
||||
|
||||
typedef struct {
|
||||
TreeArray trees;
|
||||
int head_index;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue