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

Method arkExportNameOf

ark/aot/graph.ts:1617–1625  ·  view source on GitHub ↗
(node: Node, module: SourceModule)

Source from the content-addressed store, hash-verified

1615 }
1616
1617 arkExportNameOf(node: Node, module: SourceModule): ArkExportName | undefined {
1618 node = unwrapChain(node)
1619 const id =
1620 node.type === "MemberExpression" ? unwrapChain(node.object) : node
1621 const reference = module.scopes.byId.get(id)
1622 const [name, read] =
1623 (reference && this.arkExportOf(reference, module)) ?? []
1624 return read === node ? name : undefined
1625 }
1626
1627 kindOf(node: Node, module: SourceModule): KindBits {
1628 let result = this.kindsByNode.get(node)

Callers 8

calledKindOfMethod · 0.95
memberKindInMethod · 0.95
moduleDefinitionOfMethod · 0.95
definesGenericMethod · 0.95
isParserMethod · 0.95
isDeclarationMethod · 0.95
scopeCallOfMethod · 0.95
isArktypeImportMethod · 0.95

Calls 3

arkExportOfMethod · 0.95
unwrapChainFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected