fn as( gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index, lhs: Ast.Node.Index, rhs: Ast.Node.Index, ) InnerError!Zir.Inst.Ref
gz: *GenZir
scope: *Scope
ri: ResultInfo
node: Ast.Node.Index
lhs: Ast.Node.Index
rhs: Ast.Node.Index
OutOfMemory
AnalysisFail
8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717
fn as( gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index, lhs: Ast.Node.Index, rhs: Ast.Node.Index, ) InnerError!Zir.Inst.Ref { const dest_type = try typeExpr(gz, scope, lhs); const result = try reachableExpr(gz, scope, .{ .rl = .{ .ty = dest_type } }, rhs, node); return rvalue(gz, ri, result, node); }