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

Method leavesArk

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

Source from the content-addressed store, hash-verified

4990
4991 // e.g. `T.assert` in `T.assert(x)` or `type.errors`
4992 leavesArk(node: Node, module: SourceModule): boolean {
4993 for (;;) {
4994 const [operand, operator] = operatorOf(node)
4995 if (operator?.type !== "MemberExpression" || operator.object !== operand)
4996 return false
4997 if (!isArk(this.kindOf(operator, module))) return true
4998 node = operator
4999 }
5000 }
5001
5002 // e.g. `getPlaces().type` or `.params`, which a precompiled Scope or Generic lacks
5003 scopeReadOf(

Callers 2

visitIslandMethod · 0.80

Calls 3

kindOfMethod · 0.95
operatorOfFunction · 0.90
isArkFunction · 0.70

Tested by

no test coverage detected