Class: KipperFileASTGenerator
compiler.KipperFileASTGenerator
The AST generator, which acts as a listener for a KipperProgramContext, which walks through a parse tree generated by the KipperParser and generates an abstract syntax tree based on the parse tree.
Since
0.10.0
Implements
KipperParserListenerParseTreeListener
Table of contents
Constructors
Properties
- _currentPrimaryNode
- _declarationFactory
- _expressionFactory
- _rootNode
- _statementFactory
- enterActualAdditiveExpression
- enterActualAssignmentExpression
- enterActualBitwiseAndExpression
- enterActualBitwiseOrExpression
- enterActualBitwiseShiftExpression
- enterActualBitwiseXorExpression
- enterActualConditionalExpression
- enterActualEqualityExpression
- enterActualInstanceOfExpression
- enterActualLogicalAndExpression
- enterActualLogicalOrExpression
- enterActualMatchesExpression
- enterActualMultiplicativeExpression
- enterActualRelationalExpression
- enterArrayPrimaryExpression
- enterBoolPrimaryExpression
- enterBracketNotationMemberAccessExpression
- enterCastExpression
- enterClassConstructorDeclaration
- enterClassDeclaration
- enterClassMethodDeclaration
- enterClassPropertyDeclaration
- enterCompoundStatement
- enterConvertExpression
- enterDoWhileLoopIterationStatement
- enterDotNotationMemberAccessExpression
- enterExplicitCallFunctionCallExpression
- enterExpressionStatement
- enterExternalItem
- enterFStringPrimaryExpression
- enterForLoopIterationStatement
- enterForceCastExpression
- enterFunctionCallExpression
- enterFunctionDeclaration
- enterGenericTypeSpecifierExpression
- enterIdentifierPrimaryExpression
- enterIdentifierTypeSpecifierExpression
- enterIfStatement
- enterIncrementOrDecrementPostfixExpression
- enterIncrementOrDecrementUnaryExpression
- enterInterfaceDeclaration
- enterInterfaceMethodDeclaration
- enterInterfacePropertyDeclaration
- enterJumpStatement
- enterLambdaPrimaryExpression
- enterNewInstantiationExpression
- enterNullableTypeSpecifierExpression
- enterNumberPrimaryExpression
- enterObjectPrimaryExpression
- enterObjectProperty
- enterOperatorModifiedUnaryExpression
- enterParameterDeclaration
- enterReturnStatement
- enterSliceNotationMemberAccessExpression
- enterStringPrimaryExpression
- enterSwitchStatement
- enterTangledPrimaryExpression
- enterTryCastExpression
- enterTypeofExpression
- enterTypeofTypeSpecifierExpression
- enterVariableDeclaration
- enterVoidOrNullOrUndefinedPrimaryExpression
- enterWhileLoopIterationStatement
- exitActualAdditiveExpression
- exitActualAssignmentExpression
- exitActualBitwiseAndExpression
- exitActualBitwiseOrExpression
- exitActualBitwiseShiftExpression
- exitActualBitwiseXorExpression
- exitActualConditionalExpression
- exitActualEqualityExpression
- exitActualInstanceOfExpression
- exitActualLogicalAndExpression
- exitActualLogicalOrExpression
- exitActualMatchesExpression
- exitActualMultiplicativeExpression
- exitActualRelationalExpression
- exitArrayPrimaryExpression
- exitBoolPrimaryExpression
- exitBracketNotationMemberAccessExpression
- exitCastExpression
- exitClassConstructorDeclaration
- exitClassDeclaration
- exitClassMethodDeclaration
- exitClassPropertyDeclaration
- exitCompoundStatement
- exitConvertExpression
- exitDoWhileLoopIterationStatement
- exitDotNotationMemberAccessExpression
- exitExplicitCallFunctionCallExpression
- exitExpressionStatement
- exitExternalItem
- exitFStringPrimaryExpression
- exitForLoopIterationStatement
- exitForceCastExpression
- exitFunctionCallExpression
- exitFunctionDeclaration
- exitGenericTypeSpecifierExpression
- exitIdentifierPrimaryExpression
- exitIdentifierTypeSpecifierExpression
- exitIfStatement
- exitIncrementOrDecrementPostfixExpression
- exitIncrementOrDecrementUnaryExpression
- exitInterfaceDeclaration
- exitInterfaceMethodDeclaration
- exitInterfacePropertyDeclaration
- exitJumpStatement
- exitLambdaPrimaryExpression
- exitNewInstantiationExpression
- exitNullableTypeSpecifierExpression
- exitNumberPrimaryExpression
- exitObjectPrimaryExpression
- exitObjectProperty
- exitOperatorModifiedUnaryExpression
- exitParameterDeclaration
- exitReturnStatement
- exitSliceNotationMemberAccessExpression
- exitStringPrimaryExpression
- exitSwitchStatement
- exitTangledPrimaryExpression
- exitTryCastExpression
- exitTypeofExpression
- exitTypeofTypeSpecifierExpression
- exitVariableDeclaration
- exitVoidOrNullOrUndefinedPrimaryExpression
- exitWhileLoopIterationStatement
Accessors
Methods
- enterCastOrConvertExpression
- enterDeclaration
- enterDeclarator
- enterDirectDeclarator
- enterEveryRule
- enterExpression
- enterInitDeclarator
- enterInitializer
- enterLogicalAndExpression
- enterParameterList
- enterPassOnLogicalAndExpression
- enterStorageTypeSpecifier
- enterSwitchLabeledStatement
- enterTypeSpecifierExpression
- exitCastOrConvertExpression
- exitDeclaration
- exitDeclarator
- exitDirectDeclarator
- exitEveryRule
- exitExpression
- exitInitDeclarator
- exitInitializer
- exitLogicalAndExpression
- exitParameterList
- exitPassOnLogicalAndExpression
- exitStorageTypeSpecifier
- exitSwitchLabeledStatement
- exitTypeSpecifierExpression
- handleEnteringTreeNode
- handleExitingTreeNode
- isDeclarationContext
- isExpressionContext
- isStatementContext
Constructors
constructor
• new KipperFileASTGenerator(programCtx, rootNode): KipperFileASTGenerator
Parameters
| Name | Type |
|---|---|
programCtx |
KipperProgramContext |
rootNode |
CompilationUnitContext |
Returns
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:121
Properties
_currentPrimaryNode
• Private _currentPrimaryNode: undefined | Statement<StatementSemantics, StatementTypeSemantics> | Declaration<DeclarationSemantics, DeclarationTypeSemantics> | Expression<ExpressionSemantics, ExpressionTypeSemantics, CompilableASTNode<SemanticData, TypeData>>
The current Kipper AST node that is being walked through right now. This is the instance where current metadata should be added to and read from, as this instance will represent and handle the context rules that were walked through during this operation.
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:119
_declarationFactory
• Private Readonly _declarationFactory: DeclarationASTNodeFactory
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:112
_expressionFactory
• Private Readonly _expressionFactory: ExpressionASTNodeFactory
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:110
_rootNode
• Private Readonly _rootNode: RootASTNode
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:109
_statementFactory
• Private Readonly _statementFactory: StatementASTNodeFactory
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:111
enterActualAdditiveExpression
• enterActualAdditiveExpression: (ctx: ActualAdditiveExpressionContext) => void
Enter a parse tree produced by the actualAdditiveExpression
labeled alternative in KipperParser.additiveExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualAdditiveExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualAdditiveExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:662
enterActualAssignmentExpression
• enterActualAssignmentExpression: (ctx: ActualAssignmentExpressionContext) => void
Enter a parse tree produced by the actualAssignmentExpression
Labeled alternative in KipperParser.assignmentExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualAssignmentExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualAssignmentExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:896
enterActualBitwiseAndExpression
• enterActualBitwiseAndExpression: (ctx: ActualBitwiseAndExpressionContext) => void
Enter a parse tree produced by the KipperParser.bitwiseAndExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseAndExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:810
enterActualBitwiseOrExpression
• enterActualBitwiseOrExpression: (ctx: ActualBitwiseOrExpressionContext) => void
Enter a parse tree produced by the KipperParser.bitwiseOrExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseOrExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseOrExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:800
enterActualBitwiseShiftExpression
• enterActualBitwiseShiftExpression: (ctx: ActualBitwiseShiftExpressionContext) => void
Enter a parse tree produced by the KipperParser.bitwiseShiftExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseShiftExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseShiftExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:832
enterActualBitwiseXorExpression
• enterActualBitwiseXorExpression: (ctx: ActualBitwiseXorExpressionContext) => void
Enter a parse tree produced by the KipperParser.bitwiseXorExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseXorExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseXorExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:821
enterActualConditionalExpression
• enterActualConditionalExpression: (ctx: ActualConditionalExpressionContext) => void
Enter a parse tree produced by the actualConditionalExpression
Labeled alternative in KipperParser.conditionalExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualConditionalExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualConditionalExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:873
enterActualEqualityExpression
• enterActualEqualityExpression: (ctx: ActualEqualityExpressionContext) => void
Enter a parse tree produced by the actualEqualityExpression
labeled alternative in KipperParser.equalityExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualEqualityExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualEqualityExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:715
enterActualInstanceOfExpression
• enterActualInstanceOfExpression: (ctx: InstanceOfExpressionContext) => void
Enter a parse tree produced by KipperParser.instanceOfExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
InstanceOfExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualInstanceOfExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:674
enterActualLogicalAndExpression
• enterActualLogicalAndExpression: (ctx: ActualLogicalAndExpressionContext) => void
Enter a parse tree produced by the actualLogicalAndExpression
Labeled alternative in KipperParser.logicalAndExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualLogicalAndExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualLogicalAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:762
enterActualLogicalOrExpression
• enterActualLogicalOrExpression: (ctx: ActualLogicalOrExpressionContext) => void
Enter a parse tree produced by the actualLogicalOrExpression
Labeled alternative in KipperParser.logicalOrExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualLogicalOrExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualLogicalOrExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:784
enterActualMatchesExpression
• enterActualMatchesExpression: (ctx: MatchesExpressionContext) => void
Enter a parse tree produced by the KipperParser.matchesExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
MatchesExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualMatchesExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:854
enterActualMultiplicativeExpression
• enterActualMultiplicativeExpression: (ctx: ActualMultiplicativeExpressionContext) => void
Enter a parse tree produced by the actualMultiplicativeExpression
Labeled alternative in KipperParser.multiplicativeExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualMultiplicativeExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualMultiplicativeExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:639
enterActualRelationalExpression
• enterActualRelationalExpression: (ctx: ActualRelationalExpressionContext) => void
Enter a parse tree produced by the actualRelationalExpression
labeled alternative in KipperParser.relationalExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualRelationalExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualRelationalExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:693
enterArrayPrimaryExpression
• enterArrayPrimaryExpression: (ctx: ArrayPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.arrayPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ArrayPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterArrayPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:340
enterBoolPrimaryExpression
• enterBoolPrimaryExpression: (ctx: BoolPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.boolPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
BoolPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterBoolPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:390
enterBracketNotationMemberAccessExpression
• enterBracketNotationMemberAccessExpression: (ctx: BracketNotationMemberAccessExpressionContext) => void
Enter a parse tree produced by the bracketNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
BracketNotationMemberAccessExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterBracketNotationMemberAccessExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:441
enterCastExpression
• enterCastExpression: (ctx: CastExpressionContext) => void
Enter a parse tree produced by the castExpression
labeled alternative in KipperParser.castExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
CastExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterCastExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:590
enterClassConstructorDeclaration
• enterClassConstructorDeclaration: (ctx: ClassConstructorDeclarationContext) => void
Enter a parse tree produced by KipperParser.classConstructor.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ClassConstructorDeclarationContext |
Returns
void
Implementation of
KipperParserListener.enterClassConstructorDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1219
enterClassDeclaration
• enterClassDeclaration: (ctx: ClassDeclarationContext) => void
Enter a parse tree produced by KipperParser.classDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ClassDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterClassDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1176
enterClassMethodDeclaration
• enterClassMethodDeclaration: (ctx: ClassMethodDeclarationContext) => void
Enter a parse tree produced by KipperParser.classMethod.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ClassMethodDeclarationContext |
Returns
void
Implementation of
KipperParserListener.enterClassMethodDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1208
enterClassPropertyDeclaration
• enterClassPropertyDeclaration: (ctx: ClassPropertyDeclarationContext) => void
Enter a parse tree produced by KipperParser.classProperty.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ClassPropertyDeclarationContext |
Returns
void
Implementation of
KipperParserListener.enterClassPropertyDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1198
enterCompoundStatement
• enterCompoundStatement: (ctx: CompoundStatementContext) => void
Enter a parse tree produced by KipperParser.compoundStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
CompoundStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterCompoundStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:948
enterConvertExpression
• enterConvertExpression: (ctx: ConvertExpressionContext) => void
Enter a parse tree produced by the convertExpression
labeled alternative in KipperParser.convertExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ConvertExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterConvertExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:576
enterDoWhileLoopIterationStatement
• enterDoWhileLoopIterationStatement: (ctx: DoWhileLoopIterationStatementContext) => void
Enter a parse tree produced by KipperParser.doWhileLoopIterationStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DoWhileLoopIterationStatementContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterDoWhileLoopIterationStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1045
enterDotNotationMemberAccessExpression
• enterDotNotationMemberAccessExpression: (ctx: DotNotationMemberAccessExpressionContext) => void
Enter a parse tree produced by the dotNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DotNotationMemberAccessExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterDotNotationMemberAccessExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:425
enterExplicitCallFunctionCallExpression
• enterExplicitCallFunctionCallExpression: (ctx: ExplicitCallFunctionCallExpressionContext) => void
Enter a parse tree produced by the explicitCallFunctionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExplicitCallFunctionCallExpressionContext |
The parse tree (instance of KipperParserRuleContext).. |
Returns
void
Implementation of
KipperParserListener.enterExplicitCallFunctionCallExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:487
enterExpressionStatement
• enterExpressionStatement: (ctx: ExpressionStatementContext) => void
Enter a parse tree produced by KipperParser.expressionStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExpressionStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterExpressionStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:936
enterExternalItem
• Optional enterExternalItem: (ctx: ExternalItemContext) => void = undefined
Enter a parse tree produced by the externalItem.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExternalItemContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterExternalItem
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:262
enterFStringPrimaryExpression
• enterFStringPrimaryExpression: (ctx: FStringPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.fStringPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
FStringPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterFStringPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:304
enterForLoopIterationStatement
• enterForLoopIterationStatement: (ctx: ForLoopIterationStatementContext) => void
Enter a parse tree produced by KipperParser.forLoopIterationStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ForLoopIterationStatementContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterForLoopIterationStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1019
enterForceCastExpression
• enterForceCastExpression: (ctx: ForceCastExpressionContext) => void
Enter a parse tree produced by the forceCastExpression
labeled alternative in KipperParser.forceCastExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ForceCastExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterForceCastExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:618
enterFunctionCallExpression
• enterFunctionCallExpression: (ctx: FunctionCallExpressionContext) => void
Enter a parse tree produced by the functionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
FunctionCallExpressionContext |
The parse tree (instance of KipperParserRuleContext).. |
Returns
void
Implementation of
KipperParserListener.enterFunctionCallExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:473
enterFunctionDeclaration
• enterFunctionDeclaration: (ctx: FunctionDeclarationContext) => void
Enter a parse tree produced by KipperParser.functionDefinition.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
FunctionDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterFunctionDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1113
enterGenericTypeSpecifierExpression
• enterGenericTypeSpecifierExpression: (ctx: GenericTypeSpecifierExpressionContext) => void
Enter a parse tree produced by KipperParser.genericTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
GenericTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterGenericTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1274
enterIdentifierPrimaryExpression
• enterIdentifierPrimaryExpression: (ctx: IdentifierPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.identifierPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IdentifierPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterIdentifierPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:278
enterIdentifierTypeSpecifierExpression
• enterIdentifierTypeSpecifierExpression: (ctx: IdentifierTypeSpecifierExpressionContext) => void
Enter a parse tree produced by KipperParser.identifierTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IdentifierTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterIdentifierTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1260
enterIfStatement
• enterIfStatement: (ctx: IfStatementContext) => void
Enter a parse tree produced by the ifStatement
labeled alternative in KipperParser.selectionStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IfStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterIfStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:968
enterIncrementOrDecrementPostfixExpression
• enterIncrementOrDecrementPostfixExpression: (ctx: IncrementOrDecrementPostfixExpressionContext) => void
Enter a parse tree produced by KipperParser.incrementOrDecrementPostfixExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IncrementOrDecrementPostfixExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterIncrementOrDecrementPostfixExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:509
enterIncrementOrDecrementUnaryExpression
• enterIncrementOrDecrementUnaryExpression: (ctx: IncrementOrDecrementUnaryExpressionContext) => void
Enter a parse tree produced by KipperParser.incrementOrDecrementUnaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IncrementOrDecrementUnaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterIncrementOrDecrementUnaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:531
enterInterfaceDeclaration
• enterInterfaceDeclaration: (ctx: InterfaceDeclarationContext) => void
Enter a parse tree produced by KipperParser.interfaceDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InterfaceDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterInterfaceDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1137
enterInterfaceMethodDeclaration
• enterInterfaceMethodDeclaration: (ctx: InterfaceMethodDeclarationContext) => void
Enter a parse tree produced by KipperParser.interfaceMethodDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InterfaceMethodDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterInterfaceMethodDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1163
enterInterfacePropertyDeclaration
• enterInterfacePropertyDeclaration: (ctx: InterfacePropertyDeclarationContext) => void
Enter a parse tree produced by KipperParser.interfacePropertyDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InterfacePropertyDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterInterfacePropertyDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1149
enterJumpStatement
• enterJumpStatement: (ctx: JumpStatementContext) => void
Enter a parse tree produced by KipperParser.jumpStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
JumpStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterJumpStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1073
enterLambdaPrimaryExpression
• enterLambdaPrimaryExpression: (ctx: LambdaPrimaryExpressionContext) => void
Enter a parse tree produced by the `actualBitwiseShiftExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
LambdaPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterLambdaPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:378
enterNewInstantiationExpression
• enterNewInstantiationExpression: (ctx: NewInstantiationExpressionContext) => void
Enter a parse tree produced by KipperParser.newInstantiationExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
NewInstantiationExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterNewInstantiationExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1187
enterNullableTypeSpecifierExpression
• enterNullableTypeSpecifierExpression: (ctx: NullableTypeSpecifierExpressionContext) => void
Enter a parse tree produced by KipperParser.nullableTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
NullableTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterNullableTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1302
enterNumberPrimaryExpression
• enterNumberPrimaryExpression: (ctx: NumberPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.numberPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
NumberPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterNumberPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:328
enterObjectPrimaryExpression
• enterObjectPrimaryExpression: (ctx: ObjectPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.objectPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ObjectPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterObjectPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:352
enterObjectProperty
• enterObjectProperty: (ctx: ObjectPropertyContext) => void
Enter a parse tree produced by KipperParser.objectProperty.
Since
0.11.0
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ObjectPropertyContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterObjectProperty
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:365
enterOperatorModifiedUnaryExpression
• enterOperatorModifiedUnaryExpression: (ctx: OperatorModifiedUnaryExpressionContext) => void
Enter a parse tree produced by KipperParser.operatorModifiedUnaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
OperatorModifiedUnaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterOperatorModifiedUnaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:545
enterParameterDeclaration
• enterParameterDeclaration: (ctx: ParameterDeclarationContext) => void
Enter a parse tree produced by KipperParser.parameterDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ParameterDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterParameterDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1125
enterReturnStatement
• enterReturnStatement: (ctx: ReturnStatementContext) => void
Enter a parse tree produced by KipperParser.returnStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ReturnStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterReturnStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1061
enterSliceNotationMemberAccessExpression
• enterSliceNotationMemberAccessExpression: (ctx: SliceNotationMemberAccessExpressionContext) => void
Enter a parse tree produced by the sliceNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
SliceNotationMemberAccessExpressionContext |
The parse tree (instance of KipperParserRuleContext).. |
Returns
void
Implementation of
KipperParserListener.enterSliceNotationMemberAccessExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:457
enterStringPrimaryExpression
• enterStringPrimaryExpression: (ctx: StringPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.stringPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
StringPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterStringPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:292
enterSwitchStatement
• enterSwitchStatement: (ctx: SwitchStatementContext) => void
Enter a parse tree produced by the switchStatement
labeled alternative in KipperParser.selectionStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
SwitchStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterSwitchStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:982
enterTangledPrimaryExpression
• enterTangledPrimaryExpression: (ctx: TangledPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.tangledPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TangledPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterTangledPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:316
enterTryCastExpression
• enterTryCastExpression: (ctx: TryCastExpressionContext) => void
Enter a parse tree produced by the tryCastExpression
labeled alternative in KipperParser.tryCastExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TryCastExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterTryCastExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:604
enterTypeofExpression
• enterTypeofExpression: (ctx: TypeofExpressionContext) => void
Enter a parse tree produced by the KipperParser.typeofExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
TypeofExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterTypeofExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:844
enterTypeofTypeSpecifierExpression
• enterTypeofTypeSpecifierExpression: (ctx: TypeofTypeSpecifierExpressionContext) => void
Enter a parse tree produced by KipperParser.typeofTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TypeofTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterTypeofTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1288
enterVariableDeclaration
• enterVariableDeclaration: (ctx: VariableDeclarationContext) => void
Enter a parse tree produced by KipperParser.variableDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
VariableDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterVariableDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1101
enterVoidOrNullOrUndefinedPrimaryExpression
• enterVoidOrNullOrUndefinedPrimaryExpression: (ctx: VoidOrNullOrUndefinedPrimaryExpressionContext) => void
Enter a parse tree produced by KipperParser.voidOrNullOrUndefinedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
VoidOrNullOrUndefinedPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterVoidOrNullOrUndefinedPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:402
enterWhileLoopIterationStatement
• enterWhileLoopIterationStatement: (ctx: WhileLoopIterationStatementContext) => void
Enter a parse tree produced by KipperParser.whileLoopIterationStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
WhileLoopIterationStatementContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.enterWhileLoopIterationStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1031
exitActualAdditiveExpression
• exitActualAdditiveExpression: (ctx: ActualAdditiveExpressionContext) => void
Exit a parse tree produced by the actualAdditiveExpression
labeled alternative in KipperParser.additiveExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualAdditiveExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualAdditiveExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:669
exitActualAssignmentExpression
• exitActualAssignmentExpression: (ctx: ActualAssignmentExpressionContext) => void
Exit a parse tree produced by the actualAssignmentExpression
Labeled alternative in KipperParser.assignmentExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualAssignmentExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualAssignmentExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:904
exitActualBitwiseAndExpression
• exitActualBitwiseAndExpression: (ctx: ActualBitwiseAndExpressionContext) => void
Exit a parse tree produced by the KipperParser.bitwiseAndExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseAndExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:816
exitActualBitwiseOrExpression
• exitActualBitwiseOrExpression: (ctx: ActualBitwiseOrExpressionContext) => void
Exit a parse tree produced by the KipperParser.bitwiseOrExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseOrExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseOrExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:805
exitActualBitwiseShiftExpression
• exitActualBitwiseShiftExpression: (ctx: ActualBitwiseShiftExpressionContext) => void
Exit a parse tree produced by the KipperParser.bitwiseShiftExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseShiftExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseShiftExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:838
exitActualBitwiseXorExpression
• exitActualBitwiseXorExpression: (ctx: ActualBitwiseXorExpressionContext) => void
Exit a parse tree produced by the KipperParser.bitwiseXorExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ActualBitwiseXorExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseXorExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:827
exitActualConditionalExpression
• exitActualConditionalExpression: (ctx: ActualConditionalExpressionContext) => void
Exit a parse tree produced by the actualConditionalExpression
Labeled alternative in KipperParser.conditionalExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualConditionalExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualConditionalExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:881
exitActualEqualityExpression
• exitActualEqualityExpression: (ctx: ActualEqualityExpressionContext) => void
Exit a parse tree produced by the actualEqualityExpression
labeled alternative in KipperParser.equalityExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualEqualityExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualEqualityExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:722
exitActualInstanceOfExpression
• exitActualInstanceOfExpression: (ctx: InstanceOfExpressionContext) => void
Exit a parse tree produced by KipperParser.instanceOfExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
InstanceOfExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualInstanceOfExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:679
exitActualLogicalAndExpression
• exitActualLogicalAndExpression: (ctx: ActualLogicalAndExpressionContext) => void
Exit a parse tree produced by the actualLogicalAndExpression
Labeled alternative in KipperParser.logicalAndExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualLogicalAndExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualLogicalAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:770
exitActualLogicalOrExpression
• exitActualLogicalOrExpression: (ctx: ActualLogicalOrExpressionContext) => void
Exit a parse tree produced by the actualLogicalOrExpression
Labeled alternative in KipperParser.logicalOrExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualLogicalOrExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualLogicalOrExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:791
exitActualMatchesExpression
• exitActualMatchesExpression: (ctx: MatchesExpressionContext) => void
Exit a parse tree produced by the KipperParser.matchesExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
MatchesExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualMatchesExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:859
exitActualMultiplicativeExpression
• exitActualMultiplicativeExpression: (ctx: ActualMultiplicativeExpressionContext) => void
Exit a parse tree produced by the actualMultiplicativeExpression
Labeled alternative in KipperParser.multiplicativeExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualMultiplicativeExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualMultiplicativeExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:647
exitActualRelationalExpression
• exitActualRelationalExpression: (ctx: ActualRelationalExpressionContext) => void
Exit a parse tree produced by the actualRelationalExpression
labeled alternative in KipperParser.relationalExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ActualRelationalExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualRelationalExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:701
exitArrayPrimaryExpression
• exitArrayPrimaryExpression: (ctx: ArrayPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.arrayPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ArrayPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitArrayPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:346
exitBoolPrimaryExpression
• exitBoolPrimaryExpression: (ctx: BoolPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.boolPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
BoolPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitBoolPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:396
exitBracketNotationMemberAccessExpression
• exitBracketNotationMemberAccessExpression: (ctx: BracketNotationMemberAccessExpressionContext) => void
Exit a parse tree produced by the bracketNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
BracketNotationMemberAccessExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitBracketNotationMemberAccessExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:449
exitCastExpression
• exitCastExpression: (ctx: CastExpressionContext) => void
Exit a parse tree produced by the castExpression
labeled alternative in KipperParser.castExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
CastExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitCastExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:597
exitClassConstructorDeclaration
• exitClassConstructorDeclaration: (ctx: ClassConstructorDeclarationContext) => void
Exit a parse tree produced by KipperParser.classConstructor.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ClassConstructorDeclarationContext |
Returns
void
Implementation of
KipperParserListener.exitClassConstructorDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1225
exitClassDeclaration
• exitClassDeclaration: (ctx: ClassDeclarationContext) => void
Exit a parse tree produced by KipperParser.classDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ClassDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitClassDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1182
exitClassMethodDeclaration
• exitClassMethodDeclaration: (ctx: ClassMethodDeclarationContext) => void
Exit a parse tree produced by KipperParser.classMethod.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ClassMethodDeclarationContext |
Returns
void
Implementation of
KipperParserListener.exitClassMethodDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1214
exitClassPropertyDeclaration
• exitClassPropertyDeclaration: (ctx: ClassPropertyDeclarationContext) => void
Exit a parse tree produced by KipperParser.classProperty.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
ClassPropertyDeclarationContext |
Returns
void
Implementation of
KipperParserListener.exitClassPropertyDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1203
exitCompoundStatement
• exitCompoundStatement: (ctx: CompoundStatementContext) => void
Exit a parse tree produced by KipperParser.compoundStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
CompoundStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitCompoundStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:954
exitConvertExpression
• exitConvertExpression: (ctx: ConvertExpressionContext) => void
Exit a parse tree produced by the convertExpression
labeled alternative in KipperParser.convertExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ConvertExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitConvertExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:583
exitDoWhileLoopIterationStatement
• exitDoWhileLoopIterationStatement: (ctx: DoWhileLoopIterationStatementContext) => void
Exit a parse tree produced by KipperParser.doWhileLoopIterationStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DoWhileLoopIterationStatementContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitDoWhileLoopIterationStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1052
exitDotNotationMemberAccessExpression
• exitDotNotationMemberAccessExpression: (ctx: DotNotationMemberAccessExpressionContext) => void
Exit a parse tree produced by the dotNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DotNotationMemberAccessExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitDotNotationMemberAccessExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:433
exitExplicitCallFunctionCallExpression
• exitExplicitCallFunctionCallExpression: (ctx: ExplicitCallFunctionCallExpressionContext) => void
Exit a parse tree produced by the explicitCallFunctionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExplicitCallFunctionCallExpressionContext |
The parse tree (instance of KipperParserRuleContext).. |
Returns
void
Implementation of
KipperParserListener.exitExplicitCallFunctionCallExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:495
exitExpressionStatement
• exitExpressionStatement: (ctx: ExpressionStatementContext) => void
Exit a parse tree produced by KipperParser.expressionStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExpressionStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitExpressionStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:942
exitExternalItem
• Optional exitExternalItem: (ctx: ExternalItemContext) => void = undefined
Exit a parse tree produced by the externalItem.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExternalItemContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitExternalItem
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:268
exitFStringPrimaryExpression
• exitFStringPrimaryExpression: (ctx: FStringPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.fStringPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
FStringPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitFStringPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:310
exitForLoopIterationStatement
• exitForLoopIterationStatement: (ctx: ForLoopIterationStatementContext) => void
Exit a parse tree produced by KipperParser.forLoopIterationStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ForLoopIterationStatementContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitForLoopIterationStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1025
exitForceCastExpression
• exitForceCastExpression: (ctx: ForceCastExpressionContext) => void
Exit a parse tree produced by the forceCastExpression
labeled alternative in KipperParser.forceCastExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ForceCastExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitForceCastExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:625
exitFunctionCallExpression
• exitFunctionCallExpression: (ctx: FunctionCallExpressionContext) => void
Exit a parse tree produced by the functionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
FunctionCallExpressionContext |
The parse tree (instance of KipperParserRuleContext).. |
Returns
void
Implementation of
KipperParserListener.exitFunctionCallExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:480
exitFunctionDeclaration
• exitFunctionDeclaration: (ctx: FunctionDeclarationContext) => void
Exit a parse tree produced by KipperParser.functionDefinition.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
FunctionDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitFunctionDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1119
exitGenericTypeSpecifierExpression
• exitGenericTypeSpecifierExpression: (ctx: GenericTypeSpecifierExpressionContext) => void
Exit a parse tree produced by KipperParser.genericTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
GenericTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitGenericTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1281
exitIdentifierPrimaryExpression
• exitIdentifierPrimaryExpression: (ctx: IdentifierPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.identifierPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IdentifierPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitIdentifierPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:285
exitIdentifierTypeSpecifierExpression
• exitIdentifierTypeSpecifierExpression: (ctx: IdentifierTypeSpecifierExpressionContext) => void
Exit a parse tree produced by KipperParser.identifierTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IdentifierTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitIdentifierTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1267
exitIfStatement
• exitIfStatement: (ctx: IfStatementContext) => void
Exit a parse tree produced by the ifStatement
labeled alternative in KipperParser.selectionStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IfStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitIfStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:975
exitIncrementOrDecrementPostfixExpression
• exitIncrementOrDecrementPostfixExpression: (ctx: IncrementOrDecrementPostfixExpressionContext) => void
Exit a parse tree produced by KipperParser.incrementOrDecrementPostfixExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IncrementOrDecrementPostfixExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitIncrementOrDecrementPostfixExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:516
exitIncrementOrDecrementUnaryExpression
• exitIncrementOrDecrementUnaryExpression: (ctx: IncrementOrDecrementUnaryExpressionContext) => void
Exit a parse tree produced by KipperParser.incrementOrDecrementUnaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
IncrementOrDecrementUnaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitIncrementOrDecrementUnaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:538
exitInterfaceDeclaration
• exitInterfaceDeclaration: (ctx: InterfaceDeclarationContext) => void
Exit a parse tree produced by KipperParser.interfaceDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InterfaceDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitInterfaceDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1143
exitInterfaceMethodDeclaration
• exitInterfaceMethodDeclaration: (ctx: InterfaceMethodDeclarationContext) => void
Exit a parse tree produced by KipperParser.interfaceMethodDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InterfaceMethodDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitInterfaceMethodDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1170
exitInterfacePropertyDeclaration
• exitInterfacePropertyDeclaration: (ctx: InterfacePropertyDeclarationContext) => void
Exit a parse tree produced by KipperParser.interfacePropertyDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InterfacePropertyDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitInterfacePropertyDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1156
exitJumpStatement
• exitJumpStatement: (ctx: JumpStatementContext) => void
Exit a parse tree produced by KipperParser.jumpStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
JumpStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitJumpStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1079
exitLambdaPrimaryExpression
• exitLambdaPrimaryExpression: (ctx: LambdaPrimaryExpressionContext) => void
Exit a parse tree produced by the `actualBitwiseShiftExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
LambdaPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitLambdaPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:384
exitNewInstantiationExpression
• exitNewInstantiationExpression: (ctx: NewInstantiationExpressionContext) => void
Exit a parse tree produced by KipperParser.newInstantiationExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
NewInstantiationExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitNewInstantiationExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1193
exitNullableTypeSpecifierExpression
• exitNullableTypeSpecifierExpression: (ctx: NullableTypeSpecifierExpressionContext) => void
Exit a parse tree produced by KipperParser.nullableTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
NullableTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitNullableTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1309
exitNumberPrimaryExpression
• exitNumberPrimaryExpression: (ctx: NumberPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.numberPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
NumberPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitNumberPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:334
exitObjectPrimaryExpression
• exitObjectPrimaryExpression: (ctx: ObjectPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.objectPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ObjectPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitObjectPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:358
exitObjectProperty
• exitObjectProperty: (ctx: ObjectPropertyContext) => void
Exit a parse tree produced by KipperParser.objectProperty.
Since
0.11.0
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ObjectPropertyContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitObjectProperty
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:372
exitOperatorModifiedUnaryExpression
• exitOperatorModifiedUnaryExpression: (ctx: OperatorModifiedUnaryExpressionContext) => void
Exit a parse tree produced by KipperParser.operatorModifiedUnaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
OperatorModifiedUnaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitOperatorModifiedUnaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:552
exitParameterDeclaration
• exitParameterDeclaration: (ctx: ParameterDeclarationContext) => void
Exit a parse tree produced by KipperParser.parameterDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ParameterDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitParameterDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1131
exitReturnStatement
• exitReturnStatement: (ctx: ReturnStatementContext) => void
Exit a parse tree produced by KipperParser.returnStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ReturnStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitReturnStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1067
exitSliceNotationMemberAccessExpression
• exitSliceNotationMemberAccessExpression: (ctx: SliceNotationMemberAccessExpressionContext) => void
Exit a parse tree produced by the sliceNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
SliceNotationMemberAccessExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitSliceNotationMemberAccessExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:465
exitStringPrimaryExpression
• exitStringPrimaryExpression: (ctx: StringPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.stringPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
StringPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitStringPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:298
exitSwitchStatement
• exitSwitchStatement: (ctx: SwitchStatementContext) => void
Exit a parse tree produced by the switchStatement
labeled alternative in KipperParser.selectionStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
SwitchStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitSwitchStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:989
exitTangledPrimaryExpression
• exitTangledPrimaryExpression: (ctx: TangledPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.tangledPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TangledPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitTangledPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:322
exitTryCastExpression
• exitTryCastExpression: (ctx: TryCastExpressionContext) => void
Exit a parse tree produced by the tryCastExpression
labeled alternative in KipperParser.tryCastExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TryCastExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitTryCastExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:611
exitTypeofExpression
• exitTypeofExpression: (ctx: TypeofExpressionContext) => void
Exit a parse tree produced by the KipperParser.typeofExpression
Type declaration
▸ (ctx): void
Parameters
| Name | Type |
|---|---|
ctx |
TypeofExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitTypeofExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:849
exitTypeofTypeSpecifierExpression
• exitTypeofTypeSpecifierExpression: (ctx: TypeofTypeSpecifierExpressionContext) => void
Exit a parse tree produced by KipperParser.typeofTypeSpecifier.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TypeofTypeSpecifierExpressionContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitTypeofTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1295
exitVariableDeclaration
• exitVariableDeclaration: (ctx: VariableDeclarationContext) => void
Exit a parse tree produced by KipperParser.variableDeclaration.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
VariableDeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitVariableDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1107
exitVoidOrNullOrUndefinedPrimaryExpression
• exitVoidOrNullOrUndefinedPrimaryExpression: (ctx: VoidOrNullOrUndefinedPrimaryExpressionContext) => void
Exit a parse tree produced by KipperParser.voidOrNullOrUndefinedPrimaryExpression.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
VoidOrNullOrUndefinedPrimaryExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitVoidOrNullOrUndefinedPrimaryExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:409
exitWhileLoopIterationStatement
• exitWhileLoopIterationStatement: (ctx: WhileLoopIterationStatementContext) => void
Exit a parse tree produced by KipperParser.whileLoopIterationStatement.
Type declaration
▸ (ctx): void
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
WhileLoopIterationStatementContext |
the parse tree |
Returns
void
Implementation of
KipperParserListener.exitWhileLoopIterationStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1038
Accessors
currentNode
• get currentNode(): RootASTNode | CompilableASTNode<SemanticData, TypeData>
Returns which token is being processed at the moment and where meta-data should be assigned to.
Returns
RootASTNode | CompilableASTNode<SemanticData, TypeData>
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:187
declarationFactory
• get declarationFactory(): DeclarationASTNodeFactory
Returns the declaration factory that is used to create new declaration nodes based on the current Antlr4 context that is being walked through.
Returns
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:167
expressionFactory
• get expressionFactory(): ExpressionASTNodeFactory
Returns the expression factory that is used to create new expression nodes based on the current Antlr4 context that is being walked through.
Since
0.10.0
Returns
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:150
programCtx
• get programCtx(): KipperProgramContext
Returns the program context that owns this listener and the root node.
Since
0.10.0
Returns
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:141
rootNode
• get rootNode(): RootASTNode
The root node of the generated abstract syntax tree.
Since
0.8.0
Returns
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:133
statementFactory
• get statementFactory(): StatementASTNodeFactory
Returns the statement factory that is used to create new statement nodes based on the current Antlr4 context that is being walked through.
Since
0.10.0
Returns
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:159
Methods
enterCastOrConvertExpression
▸ enterCastOrConvertExpression(ctx): void
Enter a parse tree produced by the castOrConvertExpression
labeled alternative in KipperParser.castOrConvertExpression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
CastOrConvertExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterCastOrConvertExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:562
enterDeclaration
▸ enterDeclaration(ctx): void
Enter a parse tree produced by KipperParser.declaration.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1089
enterDeclarator
▸ enterDeclarator(ctx): void
Enter a parse tree produced by KipperParser.declarator.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DeclaratorContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterDeclarator
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1328
enterDirectDeclarator
▸ enterDirectDeclarator(ctx): void
Enter a parse tree produced by KipperParser.directDeclarator.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DirectDeclaratorContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterDirectDeclarator
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1340
enterEveryRule
▸ enterEveryRule(ctx): void
Function that is called every time an item is entered.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
KipperParserRuleContext | ParserRuleContext |
The context of the rule. |
Returns
void
Implementation of
KipperParserListener.enterEveryRule
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:246
enterExpression
▸ enterExpression(ctx): void
Enter a parse tree produced by KipperParser.expression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:912
enterInitDeclarator
▸ enterInitDeclarator(ctx): void
Enter a parse tree produced by KipperParser.initDeclarator.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InitDeclaratorContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterInitDeclarator
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1248
enterInitializer
▸ enterInitializer(ctx): void
Enter a parse tree produced by KipperParser.initializer.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InitializerContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterInitializer
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1364
enterLogicalAndExpression
▸ enterLogicalAndExpression(ctx): void
Enter a parse tree produced by KipperParser.logicalAndExpression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
LogicalAndExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterLogicalAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:735
enterParameterList
▸ enterParameterList(ctx): void
Enter a parse tree produced by KipperParser.parameterList.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ParameterListContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterParameterList
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1352
enterPassOnLogicalAndExpression
▸ enterPassOnLogicalAndExpression(ctx): void
Enter a parse tree produced by the passOnLogicalAndExpression
Labeled alternative in KipperParser.logicalAndExpression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
PassOnLogicalAndExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterPassOnLogicalAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:748
enterStorageTypeSpecifier
▸ enterStorageTypeSpecifier(ctx): void
Enter a parse tree produced by KipperParser.storageTypeSpecifier.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
StorageTypeSpecifierContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterStorageTypeSpecifier
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1236
enterSwitchLabeledStatement
▸ enterSwitchLabeledStatement(ctx): void
Enter a parse tree produced by KipperParser.labeledStatement.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
SwitchLabeledStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterSwitchLabeledStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:995
enterTypeSpecifierExpression
▸ enterTypeSpecifierExpression(ctx): void
Enter a parse tree produced by KipperParser.typeSpecifier.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TypeSpecifierExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1316
exitCastOrConvertExpression
▸ exitCastOrConvertExpression(ctx): void
Exit a parse tree produced by the castOrConvertExpression
labeled alternative in KipperParser.castOrConvertExpression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
CastOrConvertExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitCastOrConvertExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:569
exitDeclaration
▸ exitDeclaration(ctx): void
Exit a parse tree produced by KipperParser.declaration.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DeclarationContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1095
exitDeclarator
▸ exitDeclarator(ctx): void
Exit a parse tree produced by KipperParser.declarator.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DeclaratorContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitDeclarator
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1334
exitDirectDeclarator
▸ exitDirectDeclarator(ctx): void
Exit a parse tree produced by KipperParser.directDeclarator.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
DirectDeclaratorContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitDirectDeclarator
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1346
exitEveryRule
▸ exitEveryRule(ctx): void
Function that is called every time an item is exited.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
KipperParserRuleContext | ParserRuleContext |
The context of the rule. |
Returns
void
Implementation of
KipperParserListener.exitEveryRule
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:252
exitExpression
▸ exitExpression(ctx): void
Exit a parse tree produced by KipperParser.expression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:918
exitInitDeclarator
▸ exitInitDeclarator(ctx): void
Exit a parse tree produced by KipperParser.initDeclarator.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InitDeclaratorContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitInitDeclarator
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1254
exitInitializer
▸ exitInitializer(ctx): void
Exit a parse tree produced by KipperParser.initializer.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
InitializerContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitInitializer
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1370
exitLogicalAndExpression
▸ exitLogicalAndExpression(ctx): void
Exit a parse tree produced by KipperParser.logicalAndExpression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
LogicalAndExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitLogicalAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:741
exitParameterList
▸ exitParameterList(ctx): void
Exit a parse tree produced by KipperParser.parameterList.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
ParameterListContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitParameterList
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1358
exitPassOnLogicalAndExpression
▸ exitPassOnLogicalAndExpression(ctx): void
Exit a parse tree produced by the passOnLogicalAndExpression
Labeled alternative in KipperParser.logicalAndExpression.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
PassOnLogicalAndExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitPassOnLogicalAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:755
exitStorageTypeSpecifier
▸ exitStorageTypeSpecifier(ctx): void
Exit a parse tree produced by KipperParser.storageTypeSpecifier.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
StorageTypeSpecifierContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitStorageTypeSpecifier
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1242
exitSwitchLabeledStatement
▸ exitSwitchLabeledStatement(ctx): void
Exit a parse tree produced by KipperParser.labeledStatement.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
SwitchLabeledStatementContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitSwitchLabeledStatement
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1003
exitTypeSpecifierExpression
▸ exitTypeSpecifierExpression(ctx): void
Exit a parse tree produced by KipperParser.typeSpecifier.
Parameters
| Name | Type | Description |
|---|---|---|
ctx |
TypeSpecifierExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitTypeSpecifierExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1322
handleEnteringTreeNode
▸ handleEnteringTreeNode(ctx): void
Handles an incoming statement context. The handling algorithm is as following:
- If _currentPrimaryNode is undefined, then it will be created and set as a child of _rootNode
- Otherwise, generate a new Statement instance, which will be added to the _currentPrimaryNode as a child. Afterwards _currentPrimaryNode will be set to this new instance, as all new context instances must be assigned to it. When the context is left, then the old _currentPrimaryNode will be restored as _currentPrimaryNode, and all further context instances will be assigned to it.
Parameters
| Name | Type |
|---|---|
ctx |
ASTNodeParserContext |
Returns
void
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:205
handleExitingTreeNode
▸ handleExitingTreeNode(): void
Handles an exiting node context. This is required to properly generate the AST node hierarchy.
Returns
void
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:233
isDeclarationContext
▸ isDeclarationContext(ctx): boolean
Parameters
| Name | Type |
|---|---|
ctx |
ASTNodeParserContext |
Returns
boolean
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:175
isExpressionContext
▸ isExpressionContext(ctx): boolean
Parameters
| Name | Type |
|---|---|
ctx |
ASTNodeParserContext |
Returns
boolean
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:179
isStatementContext
▸ isStatementContext(ctx): boolean
Parameters
| Name | Type |
|---|---|
ctx |
ASTNodeParserContext |
Returns
boolean
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:171