Package org.ek9lang.compiler.phase3
Class StreamForOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.StreamForOrError
- All Implemented Interfaces:
Consumer<EK9Parser.StreamForContext>
final class StreamForOrError
extends TypedSymbolAccess
implements Consumer<EK9Parser.StreamForContext>
Deals with working out what the type being "for'd" is.
Unlike 'cat' this is basically the same type as the 'loop' iterator.
So most of this work has been done in the 'for range' part when produces a type.
But obviously if the 'for range' is broken then the type will not be known.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionStreamForOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
StreamForOrError
StreamForOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.StreamForContext>
-