Package org.ek9lang.compiler.phase3
Class RangeOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.RangeOrError
- All Implemented Interfaces:
Consumer<EK9Parser.RangeContext>
Checks the Range and ensures that there a Symbol recorded against that context.
Then if types are present on the two parts of the range it will check those types
and/or issue errors if they are incompatible.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionRangeOrError
(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener) Check range expressions and record an expression for the type. -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
RangeOrError
RangeOrError(SymbolsAndScopes symbolsAndScopes, SymbolFactory symbolFactory, ErrorListener errorListener) Check range expressions and record an expression for the type.
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.RangeContext>
-