structstd.zig.Ast.full.SwitchCase[src]

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

Source Code

Source code
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,
    };
}