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

Function standIn

packages/effect/src/ui/Query.ts:2315–2322  ·  view source on GitHub ↗
(u: object)

Source from the content-addressed store, hash-verified

2313/** The stand-ins for values held by reference: equal only to themselves, with no `Equal` or `Hash` method. */
2314const standIns = new WeakMap<object, object>()
2315const standIn = (u: object): object => {
2316 let out = standIns.get(u)
2317 if (out === undefined) {
2318 out = Equal.byReferenceUnsafe(Object.create(null) as object)
2319 standIns.set(u, out)
2320 }
2321 return out
2322}
2323const typedArrayKey = Symbol("effect/ui/Query/typedArray")
2324/** Where an array has an accessor element: it is never read. */
2325const accessorSlot = Symbol("effect/ui/Query/accessor")

Callers 2

materializeFunction · 0.85
startMethod · 0.85

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected