Class SuitableGenusOrError

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

final class SuitableGenusOrError 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

    • SuitableGenusOrError

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

      public SuitableGenusOrError(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