Package org.ek9lang.compiler.phase2
Class SuitableGenusOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.phase2.SuitableGenusOrError
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.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionSuitableGenusOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, List<ISymbol.SymbolGenus> genus, boolean allowTemplates, boolean issueErrorIfNotResolved) Checks that the typedef/identifierReference passed in (when resolved) is suitable genus.SuitableGenusOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener, ISymbol.SymbolGenus genus, boolean allowTemplates, boolean issueErrorIfNotResolved) Checks that the typedef/identifierReference passed in (when resolved) is suitable genus. -
Method Summary
-
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