Class InjectionCycleOrError

java.lang.Object
org.ek9lang.compiler.phase5.InjectionCycleOrError
All Implemented Interfaces:
Consumer<org.antlr.v4.runtime.tree.ParseTree>

final class InjectionCycleOrError extends Object implements Consumer<org.antlr.v4.runtime.tree.ParseTree>
Detects circular dependencies in component injection chains per application (E08190). Uses DFS with path tracking on the registration dependency graph. A cycle exists when Component A requires Component B and Component B (directly or transitively) requires Component A.
  • Constructor Details

  • Method Details

    • accept

      public void accept(org.antlr.v4.runtime.tree.ParseTree ctx)
      Specified by:
      accept in interface Consumer<org.antlr.v4.runtime.tree.ParseTree>