Function: matchesChild()
matchesChild(
child,runtimeNodeId):boolean
Defined in: packages/core/src/core/address.ts:66
Does this runtime NodeContext.nodeId belong to this structural child?
The one rule that joins structure to liveness. It is driven entirely by the
edge tag — no primitive is named — which is what keeps a dev panel, a
persistence layer, or anything else joining the two from growing a switch
over primitives that a new one would silently fall through.
A repeat child is one node in the structure and many executions at
runtime, so its nodeId is a stem and the runtime appends the ordinal.
Every other edge addresses its child exactly once.
The bare stem matches too, and has to: it is the child's structural
address — what describe() reports and what a consumer holds before any
run has happened — so an override aimed at a loop body has somewhere to
land before the loop runs.
Parameters
child
runtimeNodeId
string
Returns
boolean