(ast: AST)
| 2760 | * @internal |
| 2761 | */ |
| 2762 | export const getTransformationFrom = (ast: AST): AST | undefined => { |
| 2763 | switch (ast._tag) { |
| 2764 | case "Transformation": |
| 2765 | return ast.from |
| 2766 | case "Refinement": |
| 2767 | return getTransformationFrom(ast.from) |
| 2768 | case "Suspend": |
| 2769 | return getTransformationFrom(ast.f()) |
| 2770 | } |
| 2771 | } |
| 2772 | |
| 2773 | const encodedAST_ = (ast: AST, isBound: boolean): AST => { |
| 2774 | switch (ast._tag) { |
no test coverage detected
searching dependent graphs…