( def: array, ctx: BaseParseContext )
| 67 | import type { BaseCompletions } from "./string.ts" |
| 68 | |
| 69 | export const maybeParseTupleExpression = ( |
| 70 | def: array, |
| 71 | ctx: BaseParseContext |
| 72 | ): BaseRoot | null => |
| 73 | isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def as never, ctx) |
| 74 | : isIndexOneExpression(def) ? indexOneParsers[def[1]](def as never, ctx) |
| 75 | : null |
| 76 | |
| 77 | export type maybeValidateTupleExpression<def extends array, $, args> = |
| 78 | def extends IndexZeroExpression ? validatePrefixExpression<def, $, args> |
no test coverage detected