Class ReferencesPhase1Listener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, EK9Listener
-
Constructor Summary
ConstructorsConstructorDescriptionReferencesPhase1Listener(CompilableProgram compilableProgram, ParsedModule parsedModule) Next phase after symbol definition, now check for explicit references. -
Method Summary
Modifier and TypeMethodDescriptionvoidEnter a parse tree produced byEK9Parser.applicationDeclaration().voidEnter a parse tree produced byEK9Parser.classDeclaration().voidEnter a parse tree produced byEK9Parser.componentDeclaration().voidEnter a parse tree produced byEK9Parser.constantDeclaration().voidEnter a parse tree produced byEK9Parser.dynamicClassDeclaration().voidEnter a parse tree produced byEK9Parser.forLoop().voidEnter a parse tree produced byEK9Parser.forRange().voidEnter a parse tree produced byEK9Parser.functionDeclaration().voidEnter a parse tree produced byEK9Parser.methodDeclaration().voidEnter a parse tree produced byEK9Parser.parameterisedDetail().voidEnter a parse tree produced byEK9Parser.recordDeclaration().voidThis is where there are one or more references to types/functions or constants? in other modules that can now be resolved - at least as a name.voidEnter a parse tree produced byEK9Parser.serviceDeclaration().voidEnter a parse tree produced byEK9Parser.serviceOperationDeclaration().voidEnter a parse tree produced byEK9Parser.textBodyDeclaration().voidEnter a parse tree produced byEK9Parser.textDeclaration().voidEnter a parse tree produced byEK9Parser.traitDeclaration().voidEnter a parse tree produced byEK9Parser.typeDeclaration().voidEnter a parse tree produced byEK9Parser.variableDeclaration().voidEnter a parse tree produced byEK9Parser.variableOnlyDeclaration().Methods inherited from class EK9BaseListener
enterAccessModifier, enterAggregateParts, enterAggregateProperty, enterAllowingOnly, enterApplicationBlock, enterArgumentParam, enterAspectDeclaration, enterAssertStatement, enterAssignmentExpression, enterAssignmentStatement, enterBinaryLit, enterBinaryLiteral, enterBlock, enterBlockStatement, enterBooleanLit, enterBooleanLiteral, enterCall, enterCaseExpression, enterCaseStatement, enterCatchStatementExpression, enterCharacterLit, enterCharacterLiteral, enterClassBlock, enterColourLit, enterColourLiteral, enterCompilationUnit, enterComponentBlock, enterConstantBlock, enterConstantInitialiser, enterConstrainDeclaration, enterConstrainType, enterDateLit, enterDateLiteral, enterDateTimeLit, enterDateTimeLiteral, enterDeclareArgumentParam, enterDecorationDimensionLiteral, enterDecorationResolutionLiteral, enterDefaultOperator, enterDict, enterDimensionLit, enterDirective, enterDirectivePart, enterDottedName, enterDurationLit, enterDurationLiteral, enterDynamicFunctionBody, enterDynamicFunctionDeclaration, enterDynamicVariableCapture, enterElseOnlyBlock, enterEnumerationDeclaration, enterEveryRule, enterExpression, enterExpressionParam, enterExtendDeclaration, enterExtendPreamble, enterFinallyStatementExpression, enterFloatingPointLit, enterFloatingPointLiteral, enterForStatementExpression, enterFunctionBlock, enterGuardExpression, enterHttpAccess, enterHttpVerb, enterIdentifier, enterIdentifierReference, enterIfControlBlock, enterIfStatement, enterInitValuePair, enterInstructionBlock, enterIntegerLit, enterIntegerLiteral, enterList, enterMillisecondLit, enterMillisecondLiteral, enterModuleBlock, enterModuleDeclaration, enterModuleSegment, enterMoneyLit, enterMoneyLiteral, enterObjectAccess, enterObjectAccessExpression, enterObjectAccessStart, enterObjectAccessType, enterOperationCall, enterOperationDetails, enterOperator, enterOperatorDeclaration, enterPackageBlock, enterParameterisedArgs, enterParameterisedParams, enterParameterisedType, enterParamExpression, enterPathLit, enterPathLiteral, enterPipelinePart, enterPreFlowAndControl, enterPreFlowStatement, enterPrimary, enterPrimaryReference, enterProgramBlock, enterRange, enterRecordBlock, enterRegExLit, enterRegisterStatement, enterRegularExpressionLiteral, enterResolutionLit, enterReturningParam, enterServiceBlock, enterSheBang, enterSingleStatementBlock, enterStatement, enterStreamCat, enterStreamExpression, enterStreamExpressionTermination, enterStreamFor, enterStreamPart, enterStreamSource, enterStreamStatement, enterStreamStatementTermination, enterStringLit, enterStringLiteral, enterStringPart, enterSwitchStatementExpression, enterTernaryPart, enterTextBlock, enterThrowStatement, enterTimeLit, enterTimeLiteral, enterTraitBlock, enterTraitPreamble, enterTraitReference, enterTraitsList, enterTryStatementExpression, enterTypeBlock, enterTypeDef, enterVersionNumberLit, enterVersionNumberLiteral, enterWebVariableCorrelation, enterWhileStatementExpression, exitAccessModifier, exitAggregateParts, exitAggregateProperty, exitAllowingOnly, exitApplicationBlock, exitApplicationDeclaration, exitArgumentParam, exitAspectDeclaration, exitAssertStatement, exitAssignmentExpression, exitAssignmentStatement, exitBinaryLit, exitBinaryLiteral, exitBlock, exitBlockStatement, exitBooleanLit, exitBooleanLiteral, exitCall, exitCaseExpression, exitCaseStatement, exitCatchStatementExpression, exitCharacterLit, exitCharacterLiteral, exitClassBlock, exitClassDeclaration, exitColourLit, exitColourLiteral, exitCompilationUnit, exitComponentBlock, exitComponentDeclaration, exitConstantBlock, exitConstantDeclaration, exitConstantInitialiser, exitConstrainDeclaration, exitConstrainType, exitDateLit, exitDateLiteral, exitDateTimeLit, exitDateTimeLiteral, exitDeclareArgumentParam, exitDecorationDimensionLiteral, exitDecorationResolutionLiteral, exitDefaultOperator, exitDict, exitDimensionLit, exitDirective, exitDirectivePart, exitDottedName, exitDurationLit, exitDurationLiteral, exitDynamicClassDeclaration, exitDynamicFunctionBody, exitDynamicFunctionDeclaration, exitDynamicVariableCapture, exitElseOnlyBlock, exitEnumerationDeclaration, exitEveryRule, exitExpression, exitExpressionParam, exitExtendDeclaration, exitExtendPreamble, exitFinallyStatementExpression, exitFloatingPointLit, exitFloatingPointLiteral, exitForLoop, exitForRange, exitForStatementExpression, exitFunctionBlock, exitFunctionDeclaration, exitGuardExpression, exitHttpAccess, exitHttpVerb, exitIdentifier, exitIdentifierReference, exitIfControlBlock, exitIfStatement, exitInitValuePair, exitInstructionBlock, exitIntegerLit, exitIntegerLiteral, exitList, exitMethodDeclaration, exitMillisecondLit, exitMillisecondLiteral, exitModuleBlock, exitModuleDeclaration, exitModuleSegment, exitMoneyLit, exitMoneyLiteral, exitObjectAccess, exitObjectAccessExpression, exitObjectAccessStart, exitObjectAccessType, exitOperationCall, exitOperationDetails, exitOperator, exitOperatorDeclaration, exitPackageBlock, exitParameterisedArgs, exitParameterisedDetail, exitParameterisedParams, exitParameterisedType, exitParamExpression, exitPathLit, exitPathLiteral, exitPipelinePart, exitPreFlowAndControl, exitPreFlowStatement, exitPrimary, exitPrimaryReference, exitProgramBlock, exitRange, exitRecordBlock, exitRecordDeclaration, exitReferencesBlock, exitRegExLit, exitRegisterStatement, exitRegularExpressionLiteral, exitResolutionLit, exitReturningParam, exitServiceBlock, exitServiceDeclaration, exitServiceOperationDeclaration, exitSheBang, exitSingleStatementBlock, exitStatement, exitStreamCat, exitStreamExpression, exitStreamExpressionTermination, exitStreamFor, exitStreamPart, exitStreamSource, exitStreamStatement, exitStreamStatementTermination, exitStringLit, exitStringLiteral, exitStringPart, exitSwitchStatementExpression, exitTernaryPart, exitTextBlock, exitTextBodyDeclaration, exitTextDeclaration, exitThrowStatement, exitTimeLit, exitTimeLiteral, exitTraitBlock, exitTraitDeclaration, exitTraitPreamble, exitTraitReference, exitTraitsList, exitTryStatementExpression, exitTypeBlock, exitTypeDeclaration, exitTypeDef, exitVariableDeclaration, exitVariableOnlyDeclaration, exitVersionNumberLit, exitVersionNumberLiteral, exitWebVariableCorrelation, exitWhileStatementExpression, visitErrorNode, visitTerminal
-
Constructor Details
-
ReferencesPhase1Listener
ReferencesPhase1Listener(CompilableProgram compilableProgram, ParsedModule parsedModule) Next phase after symbol definition, now check for explicit references. Because the reference phase is singled threaded access to compilableProgram is given directly.
-
-
Method Details
-
enterReferencesBlock
This is where there are one or more references to types/functions or constants? in other modules that can now be resolved - at least as a name. The full details won't yet be known. But the definition phase will/should have at least defined them to some extent.- Specified by:
enterReferencesBlockin interfaceEK9Listener- Overrides:
enterReferencesBlockin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterConstantDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.constantDeclaration().The default implementation does nothing.
- Specified by:
enterConstantDeclarationin interfaceEK9Listener- Overrides:
enterConstantDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterFunctionDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.functionDeclaration().The default implementation does nothing.
- Specified by:
enterFunctionDeclarationin interfaceEK9Listener- Overrides:
enterFunctionDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterRecordDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.recordDeclaration().The default implementation does nothing.
- Specified by:
enterRecordDeclarationin interfaceEK9Listener- Overrides:
enterRecordDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterTraitDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.traitDeclaration().The default implementation does nothing.
- Specified by:
enterTraitDeclarationin interfaceEK9Listener- Overrides:
enterTraitDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterClassDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.classDeclaration().The default implementation does nothing.
- Specified by:
enterClassDeclarationin interfaceEK9Listener- Overrides:
enterClassDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterComponentDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.componentDeclaration().The default implementation does nothing.
- Specified by:
enterComponentDeclarationin interfaceEK9Listener- Overrides:
enterComponentDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterTextDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.textDeclaration().The default implementation does nothing.
- Specified by:
enterTextDeclarationin interfaceEK9Listener- Overrides:
enterTextDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterTextBodyDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.textBodyDeclaration().The default implementation does nothing.
- Specified by:
enterTextBodyDeclarationin interfaceEK9Listener- Overrides:
enterTextBodyDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterServiceDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.serviceDeclaration().The default implementation does nothing.
- Specified by:
enterServiceDeclarationin interfaceEK9Listener- Overrides:
enterServiceDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterServiceOperationDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.serviceOperationDeclaration().The default implementation does nothing.
- Specified by:
enterServiceOperationDeclarationin interfaceEK9Listener- Overrides:
enterServiceOperationDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterApplicationDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.applicationDeclaration().The default implementation does nothing.
- Specified by:
enterApplicationDeclarationin interfaceEK9Listener- Overrides:
enterApplicationDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterDynamicClassDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.dynamicClassDeclaration().The default implementation does nothing.
- Specified by:
enterDynamicClassDeclarationin interfaceEK9Listener- Overrides:
enterDynamicClassDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterParameterisedDetail
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.parameterisedDetail().The default implementation does nothing.
- Specified by:
enterParameterisedDetailin interfaceEK9Listener- Overrides:
enterParameterisedDetailin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterTypeDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.typeDeclaration().The default implementation does nothing.
- Specified by:
enterTypeDeclarationin interfaceEK9Listener- Overrides:
enterTypeDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterMethodDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.methodDeclaration().The default implementation does nothing.
- Specified by:
enterMethodDeclarationin interfaceEK9Listener- Overrides:
enterMethodDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterForLoop
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.forLoop().The default implementation does nothing.
- Specified by:
enterForLoopin interfaceEK9Listener- Overrides:
enterForLoopin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterForRange
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.forRange().The default implementation does nothing.
- Specified by:
enterForRangein interfaceEK9Listener- Overrides:
enterForRangein classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterVariableOnlyDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.variableOnlyDeclaration().The default implementation does nothing.
- Specified by:
enterVariableOnlyDeclarationin interfaceEK9Listener- Overrides:
enterVariableOnlyDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
enterVariableDeclaration
Description copied from class:EK9BaseListenerEnter a parse tree produced byEK9Parser.variableDeclaration().The default implementation does nothing.
- Specified by:
enterVariableDeclarationin interfaceEK9Listener- Overrides:
enterVariableDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-