enum NameStrategy [src]

Fields

parentUse the same name as the parent declaration name. e.g. const Foo = struct {...};.
funcUse the name of the currently executing comptime function call, with the current parameters. e.g. ArrayList(i32).
anonCreate an anonymous name for this declaration. Like this: "ParentDeclName_struct_69"
dbg_varUse the name specified in the next dbg_var_{val,ptr} instruction.

Source

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, }