Skip to content
1 min read · 115 words

Function: entryNodes()

ts
function entryNodes(view: RawPlanView | PlanGraphView): PlanNode[];

Defined in: src/batteries/orchestration/plan.ts:151

Every node of kind 'entry'.

Parameters

ParameterTypeDescription
view| RawPlanView | PlanGraphViewThe graph to search.

Returns

PlanNode[]

Every node whose kind is 'entry', in view order.

Remarks

Whether exactly one exists is WP 04's rule, not this function's. The executor calls this to find what to materialise; the freeze validator calls it to enforce the exactly-one invariant. Returning an array (rather than a single node) keeps this a pure question about the graph and lets the caller decide what a count of zero or more than one means.