Remove unnecessary named TSTreeOptions struct
This commit is contained in:
parent
a2d817f0f0
commit
f5f24a708e
1 changed files with 6 additions and 8 deletions
|
|
@ -8,13 +8,6 @@ extern "C" {
|
|||
#include <stdbool.h>
|
||||
#include "tree_sitter/parser.h"
|
||||
|
||||
typedef struct {
|
||||
TSNodeType type : 4;
|
||||
bool extra : 1;
|
||||
bool fragile_left : 1;
|
||||
bool fragile_right : 1;
|
||||
} TSTreeOptions;
|
||||
|
||||
struct TSTree {
|
||||
struct {
|
||||
struct TSTree *parent;
|
||||
|
|
@ -31,7 +24,12 @@ struct TSTree {
|
|||
TSLength padding;
|
||||
TSLength size;
|
||||
TSSymbol symbol;
|
||||
TSTreeOptions options;
|
||||
struct {
|
||||
TSNodeType type : 2;
|
||||
bool extra : 1;
|
||||
bool fragile_left : 1;
|
||||
bool fragile_right : 1;
|
||||
} options;
|
||||
unsigned short int ref_count;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue