mirror of
https://github.com/ziglang/zig.git
synced 2026-11-11 23:19:30 -05:00
Sema: implement function declarations
This commit is contained in:
1 parent
fb95fd8443
commit
db7acd83d2
3 files changed
+71
-51
No files matched your search
@@ -565,6 +565,11 @@ pub const EnumFull = struct {
|
||||
/// the `Decl` only, with a `Value` tag of `extern_fn`.
|
||||
pub const Fn = struct {
|
||||
owner_decl: *Decl,
|
||||
/// The ZIR instruction that is a function instruction. Use this to find
|
||||
/// the body. We store this rather than the body directly so that when ZIR
|
||||
/// is regenerated on update(), we can map this to the new corresponding
|
||||
/// ZIR instruction.
|
||||
zir_body_inst: Zir.Inst.Index,
|
||||
/// undefined unless analysis state is `success`.
|
||||
body: ir.Body,
|
||||
state: Analysis,
|
||||
|
||||
Reference in new issue
Block a user