Class PreIntermediateRepresentationChecks

java.lang.Object
org.ek9lang.compiler.CompilerPhase
org.ek9lang.compiler.phase5.PreIntermediateRepresentationChecks
All Implemented Interfaces:
BiFunction<Workspace, CompilerFlags, CompilationPhaseResult>

public class PreIntermediateRepresentationChecks extends CompilerPhase
At this point all templates should be present and all symbols resolved. This check phase is to look more at the flow of the code and see if there are potential errors that could be avoided at compile time, rather than allowing some form of runtime failure.

This phase operates in two stages:

  1. Parallel processing: Each source file is processed by a PreIRListener, collecting construct-level metrics and module-level dependency data
  2. Sequential validation: After all files are processed, module-level quality metrics (coupling E11016, cohesion E11017) are validated