flags
This commit is contained in:
@@ -148,6 +148,8 @@ pub const BinaryOp = struct {
|
||||
gte,
|
||||
and_op,
|
||||
or_op,
|
||||
bit_and,
|
||||
bit_or,
|
||||
};
|
||||
};
|
||||
|
||||
@@ -227,6 +229,8 @@ pub const EnumDecl = struct {
|
||||
name: []const u8,
|
||||
variant_names: []const []const u8,
|
||||
variant_types: []const ?*Node = &.{}, // null entries = no payload; empty = payload-less enum
|
||||
is_flags: bool = false,
|
||||
variant_values: []const ?*Node = &.{}, // explicit value per variant (null = auto), empty = all auto
|
||||
};
|
||||
|
||||
pub const UnionDecl = struct {
|
||||
|
||||
Reference in New Issue
Block a user