Make it clear which field of TSNode can be used as a unique id
This commit is contained in:
parent
e3670be42f
commit
95be6e3bee
2 changed files with 14 additions and 11 deletions
|
|
@ -66,12 +66,14 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
uint32_t context[4];
|
||||
const void *ref[2];
|
||||
const void *id;
|
||||
const void *tree;
|
||||
} TSNode;
|
||||
|
||||
typedef struct {
|
||||
uint32_t context[2];
|
||||
void *ref[2];
|
||||
const void *id;
|
||||
const void *tree;
|
||||
} TSTreeCursor;
|
||||
|
||||
TSParser *ts_parser_new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue