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

Function statementOf

ark/aot/link.ts:1761–1764  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

1759 )?.[0]
1760
1761export const statementOf = (node: Node): Node => {
1762 while (node.parent && node.parent.type !== "Program") node = node.parent
1763 return node
1764}
1765
1766// within a function the module doesn't call where it's written, so run when
1767// that's called, not as the module loads

Callers 7

creationsInFunction · 0.90
keepExportMethod · 0.90
keepBindingMethod · 0.90
referencesOfMethod · 0.90
withTemplatesInlinedFunction · 0.90
linkMethod · 0.85
declareAsCreatedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected