(def, ctx)
| 481 | export type ArgTwoOperator = Exclude<IndexOneOperator, "?" | "="> |
| 482 | |
| 483 | export const parseMorphTuple: IndexOneParser<"=>"> = (def, ctx) => { |
| 484 | assertTupleArity(def, "=>", 3) |
| 485 | if (typeof def[2] !== "function") { |
| 486 | return throwParseError( |
| 487 | writeMalformedFunctionalExpressionMessage("=>", def[2]) |
| 488 | ) |
| 489 | } |
| 490 | return ctx.$.parseOwn(def[0], ctx).pipe(def[2] as Morph) |
| 491 | } |
| 492 | |
| 493 | export const writeMalformedFunctionalExpressionMessage = ( |
| 494 | operator: ":" | "=>", |
nothing calls this directly
no test coverage detected