import type { SwitchStatement } from '../ast/index.js'; import type { Cursor } from './cursor.js'; /** * `switch`, in both forms of language.md 10.6. * * With a subject each case value is compared against it, and without one each * case value is a condition. The difference is the absent subject and needs no * flag beside it. * * The arms are the whole of a switch body. A `default` that is not last would * leave the arms after it unreachable, so the arm that follows one is OS1017, * and the arm is kept in the tree all the same: a reader who moves the default * should not then be told about the arms one at a time. */ export declare function parseSwitchStatement(cursor: Cursor): SwitchStatement; //# sourceMappingURL=switches.d.ts.map