Skip to content

WalkerDecision

WalkerDecision = { type: "ignore"; } | { kind?: LeafKind; type: "bone"; } | { type: "keep"; }

Defined in: packages/xray/src/measure.ts:91

What a capture walker decides for one element (ADR 0018; ADR 0022 §5). The applyWalker PASS reads the decision and applies it to the measured IR node — a walker NEVER hand-builds a PlateNode, so xray keeps ownership of the Plate format. ignore drops the element + its subtree; bone collapses it to one Bone leaf (inferring the kind when omitted); keep defers to the default classifier (markInk).