Package org.ek9lang.compiler.phase5
Class TryStatementOrError
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase5.PossibleExpressionConstruct
org.ek9lang.compiler.phase5.TryStatementOrError
- All Implemented Interfaces:
Consumer<EK9Parser.TryStatementExpressionContext>
final class TryStatementOrError
extends PossibleExpressionConstruct
implements Consumer<EK9Parser.TryStatementExpressionContext>
Checks the try/catch/finally structure via the code analysers.
This is for each variable at this scope, once we know it is initialised in preflow all good.
So this below is a cascade of more checks but once we know it's assigned that's it.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorDescriptionTryStatementOrError
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.phase5.PossibleExpressionConstruct
getGuardExpressionVariable, getGuardExpressionVariable, isVariableInitialisedInScopes, processPossibleGuardInitialisation, pullUpAcceptableCriteriaToHigherScope, returningVariableValidOrError
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
TryStatementOrError
TryStatementOrError(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<EK9Parser.TryStatementExpressionContext>
-