pub const StructInitAnon = struct abs_node: Ast.Node.IndexThis is an anonymous initialization, meaning this instruction becomes the owner of a type. To resolve source locations, we need an absolute source node.
src_line: u32src_column: u32fields_len: u323830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844 pub const StructInitAnon = struct {
/// This is an anonymous initialization, meaning this instruction becomes the owner of a type.
/// To resolve source locations, we need an absolute source node.
abs_node: Ast.Node.Index,
src_line: u32,
src_column: u32,
fields_len: u32,
pub const Item = struct {
/// Null-terminated string table index.
field_name: NullTerminatedString,
/// The field init expression to be used as the field value.
init: Ref,
};
}
Trailing is an Item per field. TODO make this instead array of inits followed by array of names because it will be simpler Sema code and better for CPU cache.