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

Function declaredNameOf

ark/aot/flat.ts:882–886  ·  view source on GitHub ↗
(declaration: Node)

Source from the content-addressed store, hash-verified

880
881// a unit module declares each value as one const, as isUnitModule checks
882const declaredNameOf = (declaration: Node): string =>
883 (
884 (declaration as Extract<Node, { type: "VariableDeclaration" }>)
885 .declarations[0].id as { name: string }
886 ).name
887
888const isPure = (statement: Node, source: string): boolean => {
889 switch (statement.type) {

Callers 11

callMethod · 0.90
placeAmongNamedMethod · 0.90
functionStandInMethod · 0.90
classStandInMethod · 0.90
closedPredicateTextOfMethod · 0.90
nameOfMethod · 0.90
functionsOfFunction · 0.90
holeNameAtFunction · 0.90
writePrecompiledFunction · 0.90
creationsInFunction · 0.70
unitTextsOfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected