struct EnumDecl [src]

Trailing: tag_type: Ref, // if has_tag_type captures_len: u32, // if has_captures_len body_len: u32, // if has_body_len fields_len: u32, // if has_fields_len decls_len: u32, // if has_decls_len capture: Capture // for every captures_len capture_name: NullTerminatedString // for every captures_len decl: Index, // for every decls_len; points to a declaration instruction inst: Index // for every body_len has_bits: u32 // for every 32 fields the bit is whether corresponding field has an value expression fields: { // for every fields_len field_name: u32, value: Ref, // if corresponding bit is set }

Fields

fields_hash_0: u32
fields_hash_1: u32
fields_hash_2: u32
fields_hash_3: u32
src_line: u32
src_node: Ast.Node.IndexThis node provides a new absolute baseline node for all instructions within this struct.

Members

Source

pub const EnumDecl = struct { // These fields should be concatenated and reinterpreted as a `std.zig.SrcHash`. // This hash contains the source of all fields, and the backing type if specified. fields_hash_0: u32, fields_hash_1: u32, fields_hash_2: u32, fields_hash_3: u32, src_line: u32, /// This node provides a new absolute baseline node for all instructions within this struct. src_node: Ast.Node.Index, pub const Small = packed struct { has_tag_type: bool, has_captures_len: bool, has_body_len: bool, has_fields_len: bool, has_decls_len: bool, name_strategy: NameStrategy, nonexhaustive: bool, _: u8 = undefined, }; }