Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

refIsNoReturn

Private Function
std.zig.AstGen.GenZir.refIsNoReturn
fn refIsNoReturn(gz: GenZir, inst_ref: Zir.Inst.Ref) bool

TODO all uses of this should be replaced with uses of endsWithNoReturn.

Params

File

zig/AstGen.zig:11368
11368
11369
11370
11371
11372
11373
11374
    fn refIsNoReturn(gz: GenZir, inst_ref: Zir.Inst.Ref) bool {
        if (inst_ref == .unreachable_value) return true;
        if (inst_ref.toIndex()) |inst_index| {
            return gz.astgen.instructions.items(.tag)[@backingInt(inst_index)].isNoReturn();
        }
        return false;
    }