Class ScopeStackConsistencyListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,EK9Listener
- Direct Known Subclasses:
ExpressionsListener
,PreIRListener
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.AbstractEK9PhaseListener
symbolsAndScopes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced byEK9Parser.applicationDeclaration()
.void
Enter a parse tree produced byEK9Parser.block()
.void
Enter a parse tree produced byEK9Parser.catchStatementExpression()
.void
Enter a parse tree produced byEK9Parser.classDeclaration()
.void
Enter a parse tree produced byEK9Parser.componentDeclaration()
.void
Enter a parse tree produced byEK9Parser.dynamicClassDeclaration()
.void
Enter a parse tree produced byEK9Parser.dynamicFunctionDeclaration()
.void
Enter a parse tree produced byEK9Parser.dynamicVariableCapture()
.void
Enter a parse tree produced byEK9Parser.finallyStatementExpression()
.void
Enter a parse tree produced byEK9Parser.forStatementExpression()
.void
Enter a parse tree produced byEK9Parser.functionDeclaration()
.void
Enter a parse tree produced byEK9Parser.ifStatement()
.void
Enter a parse tree produced byEK9Parser.instructionBlock()
.void
Enter a parse tree produced byEK9Parser.methodDeclaration()
.void
Enter a parse tree produced byEK9Parser.operatorDeclaration()
.void
Enter a parse tree produced byEK9Parser.packageBlock()
.void
Enter a parse tree produced byEK9Parser.recordDeclaration()
.void
Enter a parse tree produced byEK9Parser.returningParam()
.void
Enter a parse tree produced byEK9Parser.serviceDeclaration()
.void
Enter a parse tree produced byEK9Parser.serviceOperationDeclaration()
.void
Enter a parse tree produced byEK9Parser.singleStatementBlock()
.void
Enter a parse tree produced byEK9Parser.switchStatementExpression()
.void
Enter a parse tree produced byEK9Parser.textBodyDeclaration()
.void
Enter a parse tree produced byEK9Parser.textDeclaration()
.void
Enter a parse tree produced byEK9Parser.traitDeclaration()
.void
Enter a parse tree produced byEK9Parser.tryStatementExpression()
.void
Enter a parse tree produced byEK9Parser.typeDeclaration()
.void
Enter a parse tree produced byEK9Parser.whileStatementExpression()
.Methods inherited from class org.ek9lang.compiler.common.AbstractEK9PhaseListener
exitApplicationDeclaration, exitBlock, exitCatchStatementExpression, exitClassDeclaration, exitComponentDeclaration, exitDynamicClassDeclaration, exitDynamicFunctionDeclaration, exitDynamicVariableCapture, exitFinallyStatementExpression, exitForStatementExpression, exitFunctionDeclaration, exitIfStatement, exitInstructionBlock, exitMethodDeclaration, exitModuleDeclaration, exitOperatorDeclaration, exitPackageBlock, exitRecordDeclaration, exitReturningParam, exitServiceDeclaration, exitServiceOperationDeclaration, exitSingleStatementBlock, exitSwitchStatementExpression, exitTextBodyDeclaration, exitTextDeclaration, exitTraitDeclaration, exitTryStatementExpression, exitTypeDeclaration, exitWhileStatementExpression, getErrorListener, getParsedModule, isScopeStackEmpty, pullBlockTerminationUp, pullIfElseTerminationUp, pullSwitchCaseDefaultUp, pullTryCatchFinallyUp
Methods inherited from class org.ek9lang.antlr.EK9BaseListener
enterAccessModifier, enterAggregateParts, enterAggregateProperty, enterAllowingOnly, enterApplicationBlock, enterArgumentParam, enterAspectDeclaration, enterAssertStatement, enterAssignmentExpression, enterAssignmentStatement, enterBinaryLit, enterBinaryLiteral, enterBlockStatement, enterBooleanLit, enterBooleanLiteral, enterCall, enterCaseExpression, enterCaseStatement, enterCharacterLit, enterCharacterLiteral, enterClassBlock, enterColourLit, enterColourLiteral, enterCompilationUnit, enterComponentBlock, enterConstantBlock, enterConstantDeclaration, enterConstantInitialiser, enterConstrainDeclaration, enterConstrainType, enterDateLit, enterDateLiteral, enterDateTimeLit, enterDateTimeLiteral, enterDeclareArgumentParam, enterDecorationDimensionLiteral, enterDecorationResolutionLiteral, enterDefaultOperator, enterDict, enterDimensionLit, enterDirective, enterDirectivePart, enterDottedName, enterDurationLit, enterDurationLiteral, enterDynamicFunctionBody, enterElseOnlyBlock, enterEnumerationDeclaration, enterEveryRule, enterExpression, enterExpressionParam, enterExtendDeclaration, enterExtendPreamble, enterFloatingPointLit, enterFloatingPointLiteral, enterForLoop, enterForRange, enterFunctionBlock, enterGuardExpression, enterHttpAccess, enterHttpVerb, enterIdentifier, enterIdentifierReference, enterIfControlBlock, enterInitValuePair, enterIntegerLit, enterIntegerLiteral, enterList, enterMillisecondLit, enterMillisecondLiteral, enterModuleBlock, enterModuleDeclaration, enterMoneyLit, enterMoneyLiteral, enterObjectAccess, enterObjectAccessExpression, enterObjectAccessStart, enterObjectAccessType, enterOperationCall, enterOperationDetails, enterOperator, enterParameterisedArgs, enterParameterisedDetail, enterParameterisedParams, enterParameterisedType, enterParamExpression, enterPathLit, enterPathLiteral, enterPipelinePart, enterPreFlowAndControl, enterPreFlowStatement, enterPrimary, enterPrimaryReference, enterProgramBlock, enterRange, enterRecordBlock, enterReferencesBlock, enterRegExLit, enterRegisterStatement, enterRegularExpressionLiteral, enterResolutionLit, enterServiceBlock, enterSheBang, enterStatement, enterStreamCat, enterStreamExpression, enterStreamExpressionTermination, enterStreamFor, enterStreamPart, enterStreamSource, enterStreamStatement, enterStreamStatementTermination, enterStringLit, enterStringLiteral, enterStringPart, enterTextBlock, enterThrowStatement, enterTimeLit, enterTimeLiteral, enterTraitBlock, enterTraitPreamble, enterTraitReference, enterTraitsList, enterTypeBlock, enterTypeDef, enterVariableDeclaration, enterVariableOnlyDeclaration, enterVersionNumberLit, enterVersionNumberLiteral, enterWebVariableCorrelation, exitAccessModifier, exitAggregateParts, exitAggregateProperty, exitAllowingOnly, exitApplicationBlock, exitArgumentParam, exitAspectDeclaration, exitAssertStatement, exitAssignmentExpression, exitAssignmentStatement, exitBinaryLit, exitBinaryLiteral, exitBlockStatement, exitBooleanLit, exitBooleanLiteral, exitCall, exitCaseExpression, exitCaseStatement, exitCharacterLit, exitCharacterLiteral, exitClassBlock, exitColourLit, exitColourLiteral, exitCompilationUnit, exitComponentBlock, exitConstantBlock, exitConstantDeclaration, exitConstantInitialiser, exitConstrainDeclaration, exitConstrainType, exitDateLit, exitDateLiteral, exitDateTimeLit, exitDateTimeLiteral, exitDeclareArgumentParam, exitDecorationDimensionLiteral, exitDecorationResolutionLiteral, exitDefaultOperator, exitDict, exitDimensionLit, exitDirective, exitDirectivePart, exitDottedName, exitDurationLit, exitDurationLiteral, exitDynamicFunctionBody, exitElseOnlyBlock, exitEnumerationDeclaration, exitEveryRule, exitExpression, exitExpressionParam, exitExtendDeclaration, exitExtendPreamble, exitFloatingPointLit, exitFloatingPointLiteral, exitForLoop, exitForRange, exitFunctionBlock, exitGuardExpression, exitHttpAccess, exitHttpVerb, exitIdentifier, exitIdentifierReference, exitIfControlBlock, exitInitValuePair, exitIntegerLit, exitIntegerLiteral, exitList, exitMillisecondLit, exitMillisecondLiteral, exitModuleBlock, exitMoneyLit, exitMoneyLiteral, exitObjectAccess, exitObjectAccessExpression, exitObjectAccessStart, exitObjectAccessType, exitOperationCall, exitOperationDetails, exitOperator, exitParameterisedArgs, exitParameterisedDetail, exitParameterisedParams, exitParameterisedType, exitParamExpression, exitPathLit, exitPathLiteral, exitPipelinePart, exitPreFlowAndControl, exitPreFlowStatement, exitPrimary, exitPrimaryReference, exitProgramBlock, exitRange, exitRecordBlock, exitReferencesBlock, exitRegExLit, exitRegisterStatement, exitRegularExpressionLiteral, exitResolutionLit, exitServiceBlock, exitSheBang, exitStatement, exitStreamCat, exitStreamExpression, exitStreamExpressionTermination, exitStreamFor, exitStreamPart, exitStreamSource, exitStreamStatement, exitStreamStatementTermination, exitStringLit, exitStringLiteral, exitStringPart, exitTextBlock, exitThrowStatement, exitTimeLit, exitTimeLiteral, exitTraitBlock, exitTraitPreamble, exitTraitReference, exitTraitsList, exitTypeBlock, exitTypeDef, exitVariableDeclaration, exitVariableOnlyDeclaration, exitVersionNumberLit, exitVersionNumberLiteral, exitWebVariableCorrelation, visitErrorNode, visitTerminal
-
Constructor Details
-
ScopeStackConsistencyListener
-
-
Method Details
-
enterPackageBlock
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.packageBlock()
.The default implementation does nothing.
- Specified by:
enterPackageBlock
in interfaceEK9Listener
- Overrides:
enterPackageBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterFunctionDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.functionDeclaration()
.The default implementation does nothing.
- Specified by:
enterFunctionDeclaration
in interfaceEK9Listener
- Overrides:
enterFunctionDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterRecordDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.recordDeclaration()
.The default implementation does nothing.
- Specified by:
enterRecordDeclaration
in interfaceEK9Listener
- Overrides:
enterRecordDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterTraitDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.traitDeclaration()
.The default implementation does nothing.
- Specified by:
enterTraitDeclaration
in interfaceEK9Listener
- Overrides:
enterTraitDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterClassDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.classDeclaration()
.The default implementation does nothing.
- Specified by:
enterClassDeclaration
in interfaceEK9Listener
- Overrides:
enterClassDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterComponentDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.componentDeclaration()
.The default implementation does nothing.
- Specified by:
enterComponentDeclaration
in interfaceEK9Listener
- Overrides:
enterComponentDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterTextDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.textDeclaration()
.The default implementation does nothing.
- Specified by:
enterTextDeclaration
in interfaceEK9Listener
- Overrides:
enterTextDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterTextBodyDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.textBodyDeclaration()
.The default implementation does nothing.
- Specified by:
enterTextBodyDeclaration
in interfaceEK9Listener
- Overrides:
enterTextBodyDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterServiceDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.serviceDeclaration()
.The default implementation does nothing.
- Specified by:
enterServiceDeclaration
in interfaceEK9Listener
- Overrides:
enterServiceDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterServiceOperationDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.serviceOperationDeclaration()
.The default implementation does nothing.
- Specified by:
enterServiceOperationDeclaration
in interfaceEK9Listener
- Overrides:
enterServiceOperationDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterApplicationDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.applicationDeclaration()
.The default implementation does nothing.
- Specified by:
enterApplicationDeclaration
in interfaceEK9Listener
- Overrides:
enterApplicationDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterDynamicClassDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.dynamicClassDeclaration()
.The default implementation does nothing.
- Specified by:
enterDynamicClassDeclaration
in interfaceEK9Listener
- Overrides:
enterDynamicClassDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterDynamicFunctionDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.dynamicFunctionDeclaration()
.The default implementation does nothing.
- Specified by:
enterDynamicFunctionDeclaration
in interfaceEK9Listener
- Overrides:
enterDynamicFunctionDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterDynamicVariableCapture
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.dynamicVariableCapture()
.The default implementation does nothing.
- Specified by:
enterDynamicVariableCapture
in interfaceEK9Listener
- Overrides:
enterDynamicVariableCapture
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterMethodDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.methodDeclaration()
.The default implementation does nothing.
- Specified by:
enterMethodDeclaration
in interfaceEK9Listener
- Overrides:
enterMethodDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterOperatorDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.operatorDeclaration()
.The default implementation does nothing.
- Specified by:
enterOperatorDeclaration
in interfaceEK9Listener
- Overrides:
enterOperatorDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterTypeDeclaration
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.typeDeclaration()
.The default implementation does nothing.
- Specified by:
enterTypeDeclaration
in interfaceEK9Listener
- Overrides:
enterTypeDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterIfStatement
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.ifStatement()
.The default implementation does nothing.
- Specified by:
enterIfStatement
in interfaceEK9Listener
- Overrides:
enterIfStatement
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterSwitchStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.switchStatementExpression()
.The default implementation does nothing.
- Specified by:
enterSwitchStatementExpression
in interfaceEK9Listener
- Overrides:
enterSwitchStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterForStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.forStatementExpression()
.The default implementation does nothing.
- Specified by:
enterForStatementExpression
in interfaceEK9Listener
- Overrides:
enterForStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterWhileStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.whileStatementExpression()
.The default implementation does nothing.
- Specified by:
enterWhileStatementExpression
in interfaceEK9Listener
- Overrides:
enterWhileStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterReturningParam
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.returningParam()
.The default implementation does nothing.
- Specified by:
enterReturningParam
in interfaceEK9Listener
- Overrides:
enterReturningParam
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterTryStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.tryStatementExpression()
.The default implementation does nothing.
- Specified by:
enterTryStatementExpression
in interfaceEK9Listener
- Overrides:
enterTryStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterCatchStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.catchStatementExpression()
.The default implementation does nothing.
- Specified by:
enterCatchStatementExpression
in interfaceEK9Listener
- Overrides:
enterCatchStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterFinallyStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.finallyStatementExpression()
.The default implementation does nothing.
- Specified by:
enterFinallyStatementExpression
in interfaceEK9Listener
- Overrides:
enterFinallyStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterBlock
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.block()
.The default implementation does nothing.
- Specified by:
enterBlock
in interfaceEK9Listener
- Overrides:
enterBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterSingleStatementBlock
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.singleStatementBlock()
.The default implementation does nothing.
- Specified by:
enterSingleStatementBlock
in interfaceEK9Listener
- Overrides:
enterSingleStatementBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
enterInstructionBlock
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.instructionBlock()
.The default implementation does nothing.
- Specified by:
enterInstructionBlock
in interfaceEK9Listener
- Overrides:
enterInstructionBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-