MCPcopy Create free account
hub / github.com/arktypeio/arktype / next

Method next

ark/type/runtime.ts:1528–1534  ·  view source on GitHub ↗
(hole: unknown)

Source from the content-addressed store, hash-verified

1526 private readonly tablesByValue = new Map<unknown, InternTable>()
1527
1528 next(hole: unknown): InternTable {
1529 const tables =
1530 hasDomain(hole, "object") ? this.tablesByObject : this.tablesByValue
1531 let next = tables.get(hole as never)
1532 if (!next) tables.set(hole as never, (next = new InternTable()))
1533 return next
1534 }
1535}
1536
1537export const internTable = (): InternTable => new InternTable()

Callers 5

createMatchersFunction · 0.45
nextFunction · 0.45
checkedDefaultOfFunction · 0.45
internFunction · 0.45
internInFunction · 0.45

Calls 3

hasDomainFunction · 0.90
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected