dot-shorthand and more
This commit is contained in:
@@ -144,7 +144,6 @@ pub const Identifier = struct {
|
||||
|
||||
pub const EnumLiteral = struct {
|
||||
name: []const u8, // without the leading dot
|
||||
payload: ?*Node = null, // non-null for enum variants with payloads (tagged unions)
|
||||
};
|
||||
|
||||
pub const BinaryOp = struct {
|
||||
@@ -295,6 +294,7 @@ pub const StructDecl = struct {
|
||||
type_params: []const StructTypeParam = &.{},
|
||||
using_entries: []const UsingEntry = &.{},
|
||||
methods: []const *Node = &.{}, // fn_decl nodes for struct methods
|
||||
constants: []const *Node = &.{}, // const_decl nodes for struct-level constants
|
||||
};
|
||||
|
||||
pub const StructFieldInit = struct {
|
||||
|
||||
Reference in New Issue
Block a user