Metakit / @doeixd/metakit/build

readsOfNode

function · packages/metakit/src/ops/reads.ts:76

function readsOfNode(
  node: Node.Node,
): Option.Option<ReadonlyArray<ReadonlyArray<string>>>

Collect the static read footprint of node in the environment: Option.none() means unbounded (an opaque term with no declared reads). A read of an element whose fold is outside node is not a read of the environment and is not among them (readsOfTerm keeps it).