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

Function exportNameOf

ark/aot/scope.ts:966–969  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

964 : property.key.name
965
966export const exportNameOf = (node: Node): string =>
967 node.type === "Literal" ?
968 String(node.value)
969 : (node as IdentifierReference).name
970
971export const declaredIds = (declaration: Node): Node[] =>
972 declaration.type === "VariableDeclaration" ?

Callers 15

inlinedCallOfFunction · 0.90
pruneArktypeReexportsFunction · 0.90
flattenBundleFunction · 0.90
originOfFunction · 0.90
repointedInFunction · 0.90
keepBindingMethod · 0.90
isUnitModuleFunction · 0.90
linkImportersMethod · 0.90
constInitOfMethod · 0.90
bindingValueOfMethod · 0.90
nameErrorsClassMethod · 0.90
checkRuntimeImportsMethod · 0.90

Calls 1

StringInterface · 0.85

Tested by

no test coverage detected