struct StructInitAnon [src]
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.
Fields
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.
abs_line: u32Likewise, we need an absolute line number.
fields_len: u32
Members
- Item (struct)
Source
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,
/// Likewise, we need an absolute line number.
abs_line: 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,
};
}