mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
Sema: remove the data field from TypeInfo.Declaration
stage2 follow-up to aa326328d0b4a0d4ee8167be9b2ab25fd560b0c9
This commit is contained in:
parent
217025e9f0
commit
5cf918143c
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user