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

Function isHeldCall

ark/aot/flat.ts:518–529  ·  view source on GitHub ↗
(call: Call, module: SourceModule)

Source from the content-addressed store, hash-verified

516}
517
518const isHeldCall = (call: Call, module: SourceModule): boolean => {
519 const binding =
520 call.callee.type === "Identifier" ?
521 module.scopes.root.bindings[call.callee.name]
522 : undefined
523 const statement = binding?.kind === "import" && binding.declaration.parent
524 return (
525 !!statement &&
526 statement.type === "ImportDeclaration" &&
527 statement.source.value === heldSpecifier
528 )
529}
530
531const keptCallsIn = (module: SourceModule, kept: KeptCode) => {
532 const result: {

Callers 1

keptCallsInFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected