feature. See also
. The project being documented here (as the example) is the Zig library itself.
Walk.fn_decl
fn fn_decl(
w: *Walk,
scope: *Scope,
parent_decl: Decl.Index,
body: Ast.Node.OptionalIndex,
full: Ast.full.FnProto,
) Oom!void
File
Code
fn fn_decl(
w: *Walk,
scope: *Scope,
parent_decl: Decl.Index,
body: Ast.Node.OptionalIndex,
full: Ast.full.FnProto,
) Oom!void {
for (full.ast.params) |param| {
try expr(w, scope, parent_decl, param);
}
try expr(w, scope, parent_decl, full.ast.return_type.unwrap().?);
try maybe_expr(w, scope, parent_decl, full.ast.align_expr);
try maybe_expr(w, scope, parent_decl, full.ast.addrspace_expr);
try maybe_expr(w, scope, parent_decl, full.ast.section_expr);
try maybe_expr(w, scope, parent_decl, full.ast.callconv_expr);
try maybe_expr(w, scope, parent_decl, body);
}