MCPcopy Index your code
hub / github.com/Effect-TS/effect / getTransformationFrom

Function getTransformationFrom

packages/effect/src/SchemaAST.ts:2762–2771  ·  view source on GitHub ↗
(ast: AST)

Source from the content-addressed store, hash-verified

2760 * @internal
2761 */
2762export 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
2773const encodedAST_ = (ast: AST, isBound: boolean): AST => {
2774 switch (ast._tag) {

Callers 1

encodedAST_Function · 0.85

Calls 1

fMethod · 0.65

Tested by

no test coverage detected