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

Interface CombinatorCompiler

ark/type/standalone/combinators.ts:537–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537export interface CombinatorCompiler extends NodeCompiler {
538 readonly link: { byId: Record<NodeId, BaseNode> }
539 // whether it writes intersections a shape checks as that shape
540 readonly shapes: boolean
541 refToId(id: NodeId, opts?: { kind: "Allows" | "Apply" }): string
542}
543
544const writeArgs = (...args: (string | undefined)[]): string => {
545 while (args.length && args[args.length - 1] === undefined) args.pop()

Callers 8

declareTraversalsMethod · 0.95
refToIdMethod · 0.65
readCheckerFunction · 0.65
refToIdMethod · 0.65
refToIdMethod · 0.65
declareTraversalFunction · 0.65
invokeTransformFunction · 0.65
compileMethod · 0.65

Implementers 3

UnifiedCompilerark/type/standalone/compilers.ts
InPlaceCompilerark/schema/units.ts
TraversalCompilerark/schema/units.ts

Calls

no outgoing calls

Tested by

no test coverage detected