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

Function describeCall

ark/aot/shadow.ts:774–785  ·  view source on GitHub ↗
(
	call: Pick<Call, "callee" | "args"> & Partial<Pick<Call, "copies" | "ctx">>
)

Source from the content-addressed store, hash-verified

772}
773
774const describeCall = (
775 call: Pick<Call, "callee" | "args"> & Partial<Pick<Call, "copies" | "ctx">>
776) =>
777 `calls ${call.callee.name || "a function"}(${call.args
778 .map((arg, i) =>
779 arg instanceof InternalTraversal ?
780 `ctx ${printable(call.ctx)}`
781 : printable(
782 call.copies?.[i] === uncopyable ? arg : (call.copies?.[i] ?? arg)
783 )
784 )
785 .join(", ")})`
786
787// thrown through the validator, which a mismatch in its calls stops
788const mismatched = Symbol("mismatched")

Callers 2

replayFunction · 0.85
validateBothFunction · 0.85

Calls 2

printableFunction · 0.90
mapMethod · 0.65

Tested by

no test coverage detected