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

Function isUnboundIdentifier

ark/aot/usage.ts:1682–1687  ·  view source on GitHub ↗
(node: Node, module: SourceModule)

Source from the content-addressed store, hash-verified

1680}
1681
1682const isUnboundIdentifier = (node: Node, module: SourceModule): boolean => {
1683 const target = unwrapExpression(node)
1684 return (
1685 target.type === "Identifier" && !module.scopes.byId.get(target)?.binding
1686 )
1687}
1688
1689export const thisReadsOf = (
1690 modules: Iterable<SourceModule>,

Callers 1

buildThisReadsContextFunction · 0.85

Calls 2

unwrapExpressionFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected