Package org.ek9lang.compiler.phase5
Class WhileLoopSafeGenericAccessMarker
java.lang.Object
org.ek9lang.compiler.phase5.WhileLoopSafeGenericAccessMarker
- All Implemented Interfaces:
Consumer<EK9Parser.WhileStatementExpressionContext>
final class WhileLoopSafeGenericAccessMarker
extends Object
implements Consumer<EK9Parser.WhileStatementExpressionContext>
Does checks on the control part of a while loop to see if Optional/Result/Iterator are now safe via method access.
-
Constructor Summary
ConstructorDescriptionWhileLoopSafeGenericAccessMarker
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Assess the control expression to see if it makes the necessary calls to make appropriate generic object methods safe.
-
Constructor Details
-
WhileLoopSafeGenericAccessMarker
WhileLoopSafeGenericAccessMarker(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) Constructor to provided typed access.
-
-
Method Details
-
accept
Assess the control expression to see if it makes the necessary calls to make appropriate generic object methods safe.- Specified by:
accept
in interfaceConsumer<EK9Parser.WhileStatementExpressionContext>
-