pub const StructInit = struct abs_node: Ast.Node.IndexIf this is an anonymous initialization (the operand is poison), this instruction becomes the owner of a type. To resolve source locations, we need an absolute source node.
src_line: u32src_column: u32fields_len: u323810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825 pub const StructInit = struct {
/// If this is an anonymous initialization (the operand is poison), 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 {
/// The `struct_init_field_type` ZIR instruction for this field init.
field_type: Index,
/// The field init expression to be used as the field value. This value will be coerced
/// to the field type if not already.
init: Ref,
};
}
Trailing is an item per field.