|
|
@ -150,8 +150,8 @@ pub fn Context(comptime ctx: anytype) type { |
|
|
|
if (@TypeOf(ChildType) != type) continue; |
|
|
|
if (@TypeOf(ChildType) != type) continue; |
|
|
|
|
|
|
|
|
|
|
|
comptime var child_name = decl.name; |
|
|
|
comptime var child_name = decl.name; |
|
|
|
if (@hasDecl(T, "_" ++ decl.name ++ "_Name")) |
|
|
|
if (@hasDecl(ChildType, "name")) |
|
|
|
child_name = @field(T, "_" ++ decl.name ++ "_Name"); |
|
|
|
child_name = @field(ChildType, "name"); |
|
|
|
|
|
|
|
|
|
|
|
const child = try lookupAndRegister(world, parent, child_name, ChildType, error_writer); |
|
|
|
const child = try lookupAndRegister(world, parent, child_name, ChildType, error_writer); |
|
|
|
try lookupAndRegisterDeclarations(world, child, ChildType, error_writer); |
|
|
|
try lookupAndRegisterDeclarations(world, child, ChildType, error_writer); |
|
|
|