Class WholeProgramFacts
java.lang.Object
org.ek9lang.compiler.phase9.WholeProgramFacts
- All Implemented Interfaces:
Consumer<Collection<IRConstruct>>
THE stamping of the whole-program FACTS the IR states (D1-a, Steve 2026-11-12;
EK9_ESCAPE_MUTATION_ANALYSIS_POSITION.md §3, EK9_NATIVE_CYCLE_COLLECTOR_DESIGN.md §14.2): on every construct
[acyclic] (AcyclicTypes), [confined] (IsConfinedType, decided in PRE_IR_CHECKS) and
[registered] (IsRegisteredType, likewise), and on every operation [callback]
(CallbackReachableOperations). Run ONCE per compile by IRAnalysis, single-threaded, over the
constructs of every module in module order, AFTER the ownership verifiers - so the facts are deterministic and
frozen before IR_OPTIMISATION reads them. IR_OPTIMISATION only PLACES what a fact licenses (SAFE_POINT,
CANCEL_POINT, PUBLISH), rewrites, verifies and lowers; it computes no fact. A test that drives a
placement pass by hand stamps the facts through this first, as the compiler does - never a second copy of the
four lines.-
Constructor Details
-
WholeProgramFacts
public WholeProgramFacts()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceConsumer<Collection<IRConstruct>>
-