struct SwitchCase [src]

Fields

inline_token: ?TokenIndex
payload_token: ?TokenIndexPoints to the first token after the |. Will either be an identifier or a * (with an identifier immediately after it).
ast: Components

Members

Source

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