Class CheckSuitableGenus

java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.CheckSuitableGenus
All Implemented Interfaces:
Function<org.antlr.v4.runtime.ParserRuleContext,Optional<ISymbol>>

final class CheckSuitableGenus extends RuleSupport implements Function<org.antlr.v4.runtime.ParserRuleContext,Optional<ISymbol>>
Checks for a type is resolved and is suitable genus and category.
  • Constructor Details

    • CheckSuitableGenus

      CheckSuitableGenus(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, ISymbol.SymbolGenus genus, boolean allowTemplates, boolean issueErrorIfNotResolved)
      Checks that the typedef/identifierReference passed in (when resolved) is suitable genus.
    • CheckSuitableGenus

      public CheckSuitableGenus(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, List<ISymbol.SymbolGenus> genus, boolean allowTemplates, boolean issueErrorIfNotResolved)
      Checks that the typedef/identifierReference passed in (when resolved) is suitable genus. Accepts multiple allowed genus. i.e. FUNCTION and FUNCTION_TRAIT.
  • Method Details