MCPcopy Create free account
hub / github.com/Effect-TS/effect / copyBody

Function copyBody

packages/effect/src/SchemaAST.ts:4362–4366  ·  view source on GitHub ↗
(ast: A, changes: Pick<Partial<AST>, "context" | "encoding">)

Source from the content-addressed store, hash-verified

4360}
4361
4362function copyBody<A extends AST>(ast: A, changes: Pick<Partial<AST>, "context" | "encoding">): A {
4363 const out = copy(ast, changes)
4364 bodyOwners.set(out, getContextOwner(ast))
4365 return out
4366}
4367
4368/** @internal */
4369export function getContextOwner<A extends AST>(ast: A): A {

Callers 2

replaceEncodingFunction · 0.85
replaceContextFunction · 0.85

Calls 3

getContextOwnerFunction · 0.85
copyFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected