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

Function within

packages/effect/src/ui/MessageLog.ts:2040–2047  ·  view source on GitHub ↗
(path: Set<object>, value: object, f: () => A)

Source from the content-addressed store, hash-verified

2038 return walk.leaf(ast, value)
2039}
2040const within = <A>(path: Set<object>, value: object, f: () => A): A => {
2041 path.add(value)
2042 try {
2043 return f()
2044 } finally {
2045 path.delete(value)
2046 }
2047}
2048/**
2049 * The keys the parser outputs, each with every Schema that applies to it: its
2050 * property signature, if it has one, and every index signature it matches. The

Callers 2

encodeAtFunction · 0.70
encodeArgsFunction · 0.70

Calls 3

addMethod · 0.65
deleteMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected