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

Method mayWritesOf

ark/aot/graph.ts:5321–5323  ·  view source on GitHub ↗
(binding: Binding, module: SourceModule, held: Held)

Source from the content-addressed store, hash-verified

5319 // a level it shares, like `[o][0].a = 1`, or where it reaches code the
5320 // build doesn't follow, like `new Map([["o", o]])`
5321 mayWritesOf(binding: Binding, module: SourceModule, held: Held): Node[] {
5322 return this.followOf(binding, module, held).writes
5323 }
5324
5325 private followOf(binding: Binding, module: SourceModule, held: Held): Follow {
5326 const key = `${held.depth}:${held.copied}`

Callers 6

findElsewhereMethod · 0.95
mayWriteThroughMethod · 0.95
mayWriteFromMethod · 0.95
writtenBeforeMethod · 0.80
writtenInMethod · 0.80
fixedDepthOfBindingMethod · 0.80

Calls 1

followOfMethod · 0.95

Tested by

no test coverage detected