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

Function flush

ark/schema/structure/structure.ts:263–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 const ordered: Prop.Node[] = []
262 let run: Prop.Node[] = []
263 const flush = () =>
264 ordered.push(...run.sort((l, r) => allowsRank(l) - allowsRank(r)))
265 for (const prop of props) {
266 if (reachesUserCode(prop.value)) {
267 flush()

Callers 1

orderedForAllowsFunction · 0.85

Calls 3

allowsRankFunction · 0.85
sortMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected