interface SwitchStatement {
    cases: SwitchCase[];
    discriminant: Expression;
    end?: null | number;
    extra?: Record<string, unknown>;
    innerComments?: null | Comment[];
    leadingComments?: null | Comment[];
    loc?: null | SourceLocation;
    range?: [number, number];
    start?: null | number;
    trailingComments?: null | Comment[];
    type: "SwitchStatement";
}

Hierarchy (view full)

Properties

cases: SwitchCase[]
discriminant: Expression
end?: null | number
extra?: Record<string, unknown>
innerComments?: null | Comment[]
leadingComments?: null | Comment[]
loc?: null | SourceLocation
range?: [number, number]
start?: null | number
trailingComments?: null | Comment[]
type: "SwitchStatement"