Class ForRangeOrError

All Implemented Interfaces:
Consumer<EK9Parser.ForRangeContext>

final class ForRangeOrError extends TypedSymbolAccess implements Consumer<EK9Parser.ForRangeContext>
Pulls the type from the 'range' into the loop variable, so it is correctly typed or emits an error. Also checks that if the 'by' literal or identifier is used that the type is compatible with the range.