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

Method finalize

ark/type/parser/reduce/dynamic.ts:92–98  ·  view source on GitHub ↗
(finalizer: FinalizingLookahead)

Source from the content-addressed store, hash-verified

90 }
91
92 finalize(finalizer: FinalizingLookahead): void {
93 if (this.groups.length) return this.error(writeUnclosedGroupMessage(")"))
94
95 this.trailingRightBounded = this.rightBounded?.root === this.root
96 this.finalizeBranches()
97 this.finalizer = finalizer
98 }
99
100 reduceLeftBound(limit: LimitLiteral, comparator: Comparator): void {
101 const invertedComparator = invertedComparators[comparator]

Callers 1

parseOperatorFunction · 0.45

Calls 3

errorMethod · 0.95
finalizeBranchesMethod · 0.95

Tested by

no test coverage detected