Sema: remove the data field from TypeInfo.Declaration

stage2 follow-up to aa326328d0b4a0d4ee8167be9b2ab25fd560b0c9
This commit is contained in:
Andrew Kelley 2022-02-01 11:40:05 -07:00
parent 217025e9f0
commit 5cf918143c

View File

@ -9952,14 +9952,12 @@ fn typeInfoDecls(
const is_pub = if (decl.is_pub) Value.@"true" else Value.@"false";
const fields = try decls_anon_decl.arena().create([3]Value);
const fields = try decls_anon_decl.arena().create([2]Value);
fields.* = .{
//name: []const u8,
name_val,
//is_pub: bool,
is_pub,
//data: Data,
Value.undef, // TODO
};
decls_val.* = try Value.Tag.@"struct".create(decls_anon_decl.arena(), fields);
}