Interface CallGraphCollector.OwnershipDecision

Enclosing class:
CallGraphCollector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CallGraphCollector.OwnershipDecision
How a collector gets the closeable ownership decision for its source. Phase 5 passes THE decision (StatementOwnedCloseableCalls::new), which marks each statement-owned call (and reports E81071); every other user of the collector (an on-demand graph for a tool, a test) passes READ_ONLY and only reads the marks phase 5 already made - it must never write marks or report errors of its own.
  • Field Details

  • Method Details

    • forSource

      Consumer<org.antlr.v4.runtime.tree.ParseTree> forSource(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
      The decision for one source.
      Parameters:
      symbolsAndScopes - the collector's own symbols and scopes
      errorListener - the source's error listener