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

Function isDead

ark/aot/usage.ts:932–934  ·  view source on GitHub ↗
(node: Span, runtime: RuntimeModule)

Source from the content-addressed store, hash-verified

930
931// inside a folded site, outside what its call keeps
932export const isDead = (node: Span, runtime: RuntimeModule): boolean =>
933 runtime.folded.some(span => isIn(node, span)) &&
934 !runtime.kept.some(span => isIn(node, span))
935
936const isIn = (node: Span, span: Span) =>
937 span.start <= node.start && node.end <= span.end

Callers 7

indexFieldsMethod · 0.90
readBindingMethod · 0.90
importedBakesOfMethod · 0.90
readArkImportMethod · 0.85
readResultMethod · 0.85
readBindingMethod · 0.85
readNamespaceMethod · 0.85

Calls 1

isInFunction · 0.85

Tested by

no test coverage detected