enumstd.zig.Zir.Inst.NameStrategy[src]

Fields

parent

Use the same name as the parent declaration name. e.g. const Foo = struct {...};.

func

Use the name of the currently executing comptime function call, with the current parameters. e.g. ArrayList(i32).

anon

Create an anonymous name for this declaration. Like this: "ParentDeclName_struct_69"

dbg_var

Use the name specified in the next dbg_var_{val,ptr} instruction.

Source Code

Source code
pub const NameStrategy = enum(u2) {
    /// Use the same name as the parent declaration name.
    /// e.g. `const Foo = struct {...};`.
    parent,
    /// Use the name of the currently executing comptime function call,
    /// with the current parameters. e.g. `ArrayList(i32)`.
    func,
    /// Create an anonymous name for this declaration.
    /// Like this: "ParentDeclName_struct_69"
    anon,
    /// Use the name specified in the next `dbg_var_{val,ptr}` instruction.
    dbg_var,
}