Function refAllDecls [src]

Given a type, references all the declarations inside, so that the semantic analyzer sees them.

Prototype

pub fn refAllDecls(comptime T: type) void

Parameters

T: type

Source

pub fn refAllDecls(comptime T: type) void { if (!builtin.is_test) return; inline for (comptime std.meta.declarations(T)) |decl| { _ = &@field(T, decl.name); } }