Class IsVirtualForSynthesisedCallee

java.lang.Object
org.ek9lang.compiler.phase7.calls.IsVirtualForSynthesisedCallee
All Implemented Interfaces:
Predicate<ISymbol>

public final class IsVirtualForSynthesisedCallee extends Object implements Predicate<ISymbol>
THE dispatch flag for a call the compiler SYNTHESISED, where the callee type may not have been threaded through (CallTargetResolution). Openness is a property of the target type, so it is read from the symbol whenever one is in hand. Hold an instance.

When no symbol reached the site there is no honest source, and a boolean still has to be emitted. false is the answer that preserves the pre-existing rendering at those sites, so migrating a site to pass its symbol is visible as churn rather than being masked by a changed default. It is NOT a claim that the type is closed - prefer threading the symbol, exactly as the metadata pass did.

  • Constructor Details

    • IsVirtualForSynthesisedCallee

      public IsVirtualForSynthesisedCallee()
  • Method Details