Skip to content

collectRefs

collectRefs(tree): string[]

Defined in: packages/xray/src/chunk.ts:101

Distinct plate names referenced by the tree’s stitches, in first-seen order. Walks a RenderNode tree (the stored, post-classify shape), so it drives the gen-side stitch import graph straight off a StoredPlate.tree (renderPlateModule, index.ts). The one node-side primitive needed at build time; multi-View gating happens in the in-browser serializePlateIR (serialize.ts, ADR 0022).

RenderNode | null

string[]