Make it clear which field of TSNode can be used as a unique id

This commit is contained in:
Max Brunsfeld 2018-05-16 16:20:33 -07:00
parent e3670be42f
commit 95be6e3bee
2 changed files with 14 additions and 11 deletions

View file

@ -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();