visitor-accumulates-across-structures

Status: IN

Visitor's structure-independent operation capability extends to stateful cross-element computation: because visitors traverse any object structure without requiring common parent classes, they can accumulate state (e.g., total pricing, type constraints) across heterogeneous element types, enabling analysis that depends on the collective properties of a traversal rather than any single element.

Justifications

Structure independence plus state accumulation enables cross-element analysis over heterogeneous collections

Depends on (SL): visitor-structure-independent-operations, gof-visitor-accumulates-state

Depended on by

JSON