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. Public Struct

SwitchCase

Public Struct
std.zig.Ast.full.SwitchCase
pub const SwitchCase = struct

Fields

inline_token: ?TokenIndex
payload_token: ?TokenIndex

Points to the first token after the |. Will either be an identifier or a * (with an identifier immediately after it).

ast: Components

Structs

File

zig/Ast.zig:2789
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
    pub const SwitchCase = struct {
        inline_token: ?TokenIndex,
        /// Points to the first token after the `|`. Will either be an identifier or
        /// a `*` (with an identifier immediately after it).
        payload_token: ?TokenIndex,
        ast: Components,

        pub const Components = struct {
            /// If empty, this is an else case
            values: []const Node.Index,
            arrow_token: TokenIndex,
            target_expr: Node.Index,
        };
    }