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
KipperParserListener
ParseTreeListener
Table of contents
Constructors
Properties
- _currentPrimaryNode
- _declarationFactory
- _expressionFactory
- _rootNode
- _statementFactory
- enterActualAdditiveExpression
- enterActualAssignmentExpression
- enterActualBitwiseAndExpression
- enterActualBitwiseOrExpression
- enterActualBitwiseShiftExpression
- enterActualBitwiseXorExpression
- enterActualCastOrConvertExpression
- enterActualConditionalExpression
- enterActualEqualityExpression
- enterActualInstanceOfExpression
- enterActualLogicalAndExpression
- enterActualLogicalOrExpression
- enterActualMatchesExpression
- enterActualMultiplicativeExpression
- enterActualRelationalExpression
- enterArrayPrimaryExpression
- enterBoolPrimaryExpression
- enterBracketNotationMemberAccessExpression
- enterClassConstructorDeclaration
- enterClassDeclaration
- enterClassMethodDeclaration
- enterClassPropertyDeclaration
- enterCompoundStatement
- enterDoWhileLoopIterationStatement
- enterDotNotationMemberAccessExpression
- enterExplicitCallFunctionCallExpression
- enterExpressionStatement
- enterExternalItem
- enterFStringPrimaryExpression
- enterForLoopIterationStatement
- enterFunctionCallExpression
- enterFunctionDeclaration
- enterGenericTypeSpecifierExpression
- enterIdentifierPrimaryExpression
- enterIdentifierTypeSpecifierExpression
- enterIfStatement
- enterIncrementOrDecrementPostfixExpression
- enterIncrementOrDecrementUnaryExpression
- enterInterfaceDeclaration
- enterInterfaceMethodDeclaration
- enterInterfacePropertyDeclaration
- enterJumpStatement
- enterLambdaPrimaryExpression
- enterNewInstantiationExpression
- enterNumberPrimaryExpression
- enterObjectPrimaryExpression
- enterObjectProperty
- enterOperatorModifiedUnaryExpression
- enterParameterDeclaration
- enterReturnStatement
- enterSliceNotationMemberAccessExpression
- enterStringPrimaryExpression
- enterSwitchStatement
- enterTangledPrimaryExpression
- enterTypeofExpression
- enterTypeofTypeSpecifierExpression
- enterVariableDeclaration
- enterVoidOrNullOrUndefinedPrimaryExpression
- enterWhileLoopIterationStatement
- exitActualAdditiveExpression
- exitActualAssignmentExpression
- exitActualBitwiseAndExpression
- exitActualBitwiseOrExpression
- exitActualBitwiseShiftExpression
- exitActualBitwiseXorExpression
- exitActualCastOrConvertExpression
- exitActualConditionalExpression
- exitActualEqualityExpression
- exitActualInstanceOfExpression
- exitActualLogicalAndExpression
- exitActualLogicalOrExpression
- exitActualMatchesExpression
- exitActualMultiplicativeExpression
- exitActualRelationalExpression
- exitArrayPrimaryExpression
- exitBoolPrimaryExpression
- exitBracketNotationMemberAccessExpression
- exitClassConstructorDeclaration
- exitClassDeclaration
- exitClassMethodDeclaration
- exitClassPropertyDeclaration
- exitCompoundStatement
- exitDoWhileLoopIterationStatement
- exitDotNotationMemberAccessExpression
- exitExplicitCallFunctionCallExpression
- exitExpressionStatement
- exitExternalItem
- exitFStringPrimaryExpression
- exitForLoopIterationStatement
- exitFunctionCallExpression
- exitFunctionDeclaration
- exitGenericTypeSpecifierExpression
- exitIdentifierPrimaryExpression
- exitIdentifierTypeSpecifierExpression
- exitIfStatement
- exitIncrementOrDecrementPostfixExpression
- exitIncrementOrDecrementUnaryExpression
- exitInterfaceDeclaration
- exitInterfaceMethodDeclaration
- exitInterfacePropertyDeclaration
- exitJumpStatement
- exitLambdaPrimaryExpression
- exitNewInstantiationExpression
- exitNumberPrimaryExpression
- exitObjectPrimaryExpression
- exitObjectProperty
- exitOperatorModifiedUnaryExpression
- exitParameterDeclaration
- exitReturnStatement
- exitSliceNotationMemberAccessExpression
- exitStringPrimaryExpression
- exitSwitchStatement
- exitTangledPrimaryExpression
- exitTypeofExpression
- exitTypeofTypeSpecifierExpression
- exitVariableDeclaration
- exitVoidOrNullOrUndefinedPrimaryExpression
- exitWhileLoopIterationStatement
Accessors
Methods
- enterDeclaration
- enterDeclarator
- enterDirectDeclarator
- enterEveryRule
- enterExpression
- enterInitDeclarator
- enterInitializer
- enterLogicalAndExpression
- enterParameterList
- enterPassOnLogicalAndExpression
- enterStorageTypeSpecifier
- enterSwitchLabeledStatement
- enterTypeSpecifierExpression
- exitDeclaration
- exitDeclarator
- exitDirectDeclarator
- exitEveryRule
- exitExpression
- exitInitDeclarator
- exitInitializer
- exitLogicalAndExpression
- exitParameterList
- exitPassOnLogicalAndExpression
- exitStorageTypeSpecifier
- exitSwitchLabeledStatement
- exitTypeSpecifierExpression
- handleEnteringTreeNode
- handleExitingTreeNode
- isDeclarationContext
- isExpressionContext
- isStatementContext
Constructors
constructor
• new KipperFileASTGenerator(programCtx
, rootNode
)
Parameters
Name | Type |
---|---|
programCtx |
KipperProgramContext |
rootNode |
CompilationUnitContext |
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:116
Properties
_currentPrimaryNode
• Private
_currentPrimaryNode: undefined
| Statement
<StatementSemantics
, StatementTypeSemantics
> | Expression
<ExpressionSemantics
, ExpressionTypeSemantics
, CompilableASTNode
<SemanticData
, TypeData
>> | Declaration
<DeclarationSemantics
, DeclarationTypeSemantics
>
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:114
_declarationFactory
• Private
Readonly
_declarationFactory: DeclarationASTNodeFactory
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:107
_expressionFactory
• Private
Readonly
_expressionFactory: ExpressionASTNodeFactory
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:105
_rootNode
• Private
Readonly
_rootNode: RootASTNode
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:104
_statementFactory
• Private
Readonly
_statementFactory: StatementASTNodeFactory
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:106
enterActualAdditiveExpression
• enterActualAdditiveExpression: (ctx
: ActualAdditiveExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualAdditiveExpression
labeled alternative in KipperParser.additiveExpression
.
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:608
enterActualAssignmentExpression
• enterActualAssignmentExpression: (ctx
: ActualAssignmentExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualAssignmentExpression
Labeled alternative in KipperParser.assignmentExpression
.
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:842
enterActualBitwiseAndExpression
• enterActualBitwiseAndExpression: (ctx
: ActualBitwiseAndExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the KipperParser.bitwiseAndExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseAndExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:756
enterActualBitwiseOrExpression
• enterActualBitwiseOrExpression: (ctx
: ActualBitwiseOrExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the KipperParser.bitwiseOrExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseOrExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseOrExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:746
enterActualBitwiseShiftExpression
• enterActualBitwiseShiftExpression: (ctx
: ActualBitwiseShiftExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the KipperParser.bitwiseShiftExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseShiftExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseShiftExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:778
enterActualBitwiseXorExpression
• enterActualBitwiseXorExpression: (ctx
: ActualBitwiseXorExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the KipperParser.bitwiseXorExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseXorExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualBitwiseXorExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:767
enterActualCastOrConvertExpression
• enterActualCastOrConvertExpression: (ctx
: ActualCastOrConvertExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualCastOrConvertExpression
labeled alternative in KipperParser.castOrConvertExpression
.
Parameters
Name | Type | Description |
---|---|---|
ctx |
ActualCastOrConvertExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.enterActualCastOrConvertExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:562
enterActualConditionalExpression
• enterActualConditionalExpression: (ctx
: ActualConditionalExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualConditionalExpression
Labeled alternative in KipperParser.conditionalExpression
.
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:819
enterActualEqualityExpression
• enterActualEqualityExpression: (ctx
: ActualEqualityExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualEqualityExpression
labeled alternative in KipperParser.equalityExpression
.
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:661
enterActualInstanceOfExpression
• enterActualInstanceOfExpression: (ctx
: InstanceOfExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.instanceOfExpression
.
Parameters
Name | Type |
---|---|
ctx |
InstanceOfExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualInstanceOfExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:620
enterActualLogicalAndExpression
• enterActualLogicalAndExpression: (ctx
: ActualLogicalAndExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualLogicalAndExpression
Labeled alternative in KipperParser.logicalAndExpression
.
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:708
enterActualLogicalOrExpression
• enterActualLogicalOrExpression: (ctx
: ActualLogicalOrExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualLogicalOrExpression
Labeled alternative in KipperParser.logicalOrExpression
.
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:730
enterActualMatchesExpression
• enterActualMatchesExpression: (ctx
: MatchesExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the KipperParser.matchesExpression
Parameters
Name | Type |
---|---|
ctx |
MatchesExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterActualMatchesExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:800
enterActualMultiplicativeExpression
• enterActualMultiplicativeExpression: (ctx
: ActualMultiplicativeExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualMultiplicativeExpression
Labeled alternative in KipperParser.multiplicativeExpression
.
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:585
enterActualRelationalExpression
• enterActualRelationalExpression: (ctx
: ActualRelationalExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the actualRelationalExpression
labeled alternative in KipperParser.relationalExpression
.
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:639
enterArrayPrimaryExpression
• enterArrayPrimaryExpression: (ctx
: ArrayPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.arrayPrimaryExpression
.
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:335
enterBoolPrimaryExpression
• enterBoolPrimaryExpression: (ctx
: BoolPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.boolPrimaryExpression
.
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:385
enterBracketNotationMemberAccessExpression
• enterBracketNotationMemberAccessExpression: (ctx
: BracketNotationMemberAccessExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the bracketNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:436
enterClassConstructorDeclaration
• enterClassConstructorDeclaration: (ctx
: ClassConstructorDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.classConstructor
.
Parameters
Name | Type |
---|---|
ctx |
ClassConstructorDeclarationContext |
Returns
void
Implementation of
KipperParserListener.enterClassConstructorDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1165
enterClassDeclaration
• enterClassDeclaration: (ctx
: ClassDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.classDeclaration
.
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:1122
enterClassMethodDeclaration
• enterClassMethodDeclaration: (ctx
: ClassMethodDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.classMethod
.
Parameters
Name | Type |
---|---|
ctx |
ClassMethodDeclarationContext |
Returns
void
Implementation of
KipperParserListener.enterClassMethodDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1154
enterClassPropertyDeclaration
• enterClassPropertyDeclaration: (ctx
: ClassPropertyDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.classProperty
.
Parameters
Name | Type |
---|---|
ctx |
ClassPropertyDeclarationContext |
Returns
void
Implementation of
KipperParserListener.enterClassPropertyDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1144
enterCompoundStatement
• enterCompoundStatement: (ctx
: CompoundStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.compoundStatement
.
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:894
enterDoWhileLoopIterationStatement
• enterDoWhileLoopIterationStatement: (ctx
: DoWhileLoopIterationStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.doWhileLoopIterationStatement
.
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:991
enterDotNotationMemberAccessExpression
• enterDotNotationMemberAccessExpression: (ctx
: DotNotationMemberAccessExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the dotNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:420
enterExplicitCallFunctionCallExpression
• enterExplicitCallFunctionCallExpression: (ctx
: ExplicitCallFunctionCallExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the explicitCallFunctionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:482
enterExpressionStatement
• enterExpressionStatement: (ctx
: ExpressionStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.expressionStatement
.
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:882
enterExternalItem
• Optional
enterExternalItem: (ctx
: ExternalItemContext
) => void
= undefined
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the externalItem
.
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:257
enterFStringPrimaryExpression
• enterFStringPrimaryExpression: (ctx
: FStringPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.fStringPrimaryExpression
.
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:299
enterForLoopIterationStatement
• enterForLoopIterationStatement: (ctx
: ForLoopIterationStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.forLoopIterationStatement
.
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:965
enterFunctionCallExpression
• enterFunctionCallExpression: (ctx
: FunctionCallExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the functionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:468
enterFunctionDeclaration
• enterFunctionDeclaration: (ctx
: FunctionDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.functionDefinition
.
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:1059
enterGenericTypeSpecifierExpression
• enterGenericTypeSpecifierExpression: (ctx
: GenericTypeSpecifierExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.genericTypeSpecifier
.
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:1220
enterIdentifierPrimaryExpression
• enterIdentifierPrimaryExpression: (ctx
: IdentifierPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.identifierPrimaryExpression
.
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:273
enterIdentifierTypeSpecifierExpression
• enterIdentifierTypeSpecifierExpression: (ctx
: IdentifierTypeSpecifierExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.identifierTypeSpecifier
.
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:1206
enterIfStatement
• enterIfStatement: (ctx
: IfStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the ifStatement
labeled alternative in KipperParser.selectionStatement
.
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:914
enterIncrementOrDecrementPostfixExpression
• enterIncrementOrDecrementPostfixExpression: (ctx
: IncrementOrDecrementPostfixExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.incrementOrDecrementPostfixExpression
.
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:504
enterIncrementOrDecrementUnaryExpression
• enterIncrementOrDecrementUnaryExpression: (ctx
: IncrementOrDecrementUnaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.incrementOrDecrementUnaryExpression
.
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:526
enterInterfaceDeclaration
• enterInterfaceDeclaration: (ctx
: InterfaceDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.interfaceDeclaration
.
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:1083
enterInterfaceMethodDeclaration
• enterInterfaceMethodDeclaration: (ctx
: InterfaceMethodDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.interfaceMethodDeclaration
.
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:1109
enterInterfacePropertyDeclaration
• enterInterfacePropertyDeclaration: (ctx
: InterfacePropertyDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.interfacePropertyDeclaration
.
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:1095
enterJumpStatement
• enterJumpStatement: (ctx
: JumpStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.jumpStatement
.
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:1019
enterLambdaPrimaryExpression
• enterLambdaPrimaryExpression: (ctx
: LambdaPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the `actualBitwiseShiftExpression
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:373
enterNewInstantiationExpression
• enterNewInstantiationExpression: (ctx
: NewInstantiationExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.newInstantiationExpression
.
Parameters
Name | Type |
---|---|
ctx |
NewInstantiationExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterNewInstantiationExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1133
enterNumberPrimaryExpression
• enterNumberPrimaryExpression: (ctx
: NumberPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.numberPrimaryExpression
.
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:323
enterObjectPrimaryExpression
• enterObjectPrimaryExpression: (ctx
: ObjectPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.objectPrimaryExpression
.
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:347
enterObjectProperty
• enterObjectProperty: (ctx
: ObjectPropertyContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.objectProperty
.
Since
0.11.0
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:360
enterOperatorModifiedUnaryExpression
• enterOperatorModifiedUnaryExpression: (ctx
: OperatorModifiedUnaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.operatorModifiedUnaryExpression
.
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:540
enterParameterDeclaration
• enterParameterDeclaration: (ctx
: ParameterDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.parameterDeclaration
.
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:1071
enterReturnStatement
• enterReturnStatement: (ctx
: ReturnStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.returnStatement
.
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:1007
enterSliceNotationMemberAccessExpression
• enterSliceNotationMemberAccessExpression: (ctx
: SliceNotationMemberAccessExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the sliceNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:452
enterStringPrimaryExpression
• enterStringPrimaryExpression: (ctx
: StringPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.stringPrimaryExpression
.
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:287
enterSwitchStatement
• enterSwitchStatement: (ctx
: SwitchStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the switchStatement
labeled alternative in KipperParser.selectionStatement
.
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:928
enterTangledPrimaryExpression
• enterTangledPrimaryExpression: (ctx
: TangledPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.tangledPrimaryExpression
.
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:311
enterTypeofExpression
• enterTypeofExpression: (ctx
: TypeofExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by the KipperParser.typeofExpression
Parameters
Name | Type |
---|---|
ctx |
TypeofExpressionContext |
Returns
void
Implementation of
KipperParserListener.enterTypeofExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:790
enterTypeofTypeSpecifierExpression
• enterTypeofTypeSpecifierExpression: (ctx
: TypeofTypeSpecifierExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.typeofTypeSpecifier
.
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:1234
enterVariableDeclaration
• enterVariableDeclaration: (ctx
: VariableDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.variableDeclaration
.
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:1047
enterVoidOrNullOrUndefinedPrimaryExpression
• enterVoidOrNullOrUndefinedPrimaryExpression: (ctx
: VoidOrNullOrUndefinedPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.voidOrNullOrUndefinedPrimaryExpression
.
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:397
enterWhileLoopIterationStatement
• enterWhileLoopIterationStatement: (ctx
: WhileLoopIterationStatementContext
) => void
Type declaration
▸ (ctx
): void
Enter a parse tree produced by KipperParser.whileLoopIterationStatement
.
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:977
exitActualAdditiveExpression
• exitActualAdditiveExpression: (ctx
: ActualAdditiveExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualAdditiveExpression
labeled alternative in KipperParser.additiveExpression
.
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:615
exitActualAssignmentExpression
• exitActualAssignmentExpression: (ctx
: ActualAssignmentExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualAssignmentExpression
Labeled alternative in KipperParser.assignmentExpression
.
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:850
exitActualBitwiseAndExpression
• exitActualBitwiseAndExpression: (ctx
: ActualBitwiseAndExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the KipperParser.bitwiseAndExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseAndExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseAndExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:762
exitActualBitwiseOrExpression
• exitActualBitwiseOrExpression: (ctx
: ActualBitwiseOrExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the KipperParser.bitwiseOrExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseOrExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseOrExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:751
exitActualBitwiseShiftExpression
• exitActualBitwiseShiftExpression: (ctx
: ActualBitwiseShiftExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the KipperParser.bitwiseShiftExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseShiftExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseShiftExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:784
exitActualBitwiseXorExpression
• exitActualBitwiseXorExpression: (ctx
: ActualBitwiseXorExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the KipperParser.bitwiseXorExpression
Parameters
Name | Type |
---|---|
ctx |
ActualBitwiseXorExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualBitwiseXorExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:773
exitActualCastOrConvertExpression
• exitActualCastOrConvertExpression: (ctx
: ActualCastOrConvertExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualCastOrConvertExpression
labeled alternative in KipperParser.castOrConvertExpression
.
Parameters
Name | Type | Description |
---|---|---|
ctx |
ActualCastOrConvertExpressionContext |
The parse tree (instance of KipperParserRuleContext). |
Returns
void
Implementation of
KipperParserListener.exitActualCastOrConvertExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:570
exitActualConditionalExpression
• exitActualConditionalExpression: (ctx
: ActualConditionalExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualConditionalExpression
Labeled alternative in KipperParser.conditionalExpression
.
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:827
exitActualEqualityExpression
• exitActualEqualityExpression: (ctx
: ActualEqualityExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualEqualityExpression
labeled alternative in KipperParser.equalityExpression
.
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:668
exitActualInstanceOfExpression
• exitActualInstanceOfExpression: (ctx
: InstanceOfExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.instanceOfExpression
.
Parameters
Name | Type |
---|---|
ctx |
InstanceOfExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualInstanceOfExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:625
exitActualLogicalAndExpression
• exitActualLogicalAndExpression: (ctx
: ActualLogicalAndExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualLogicalAndExpression
Labeled alternative in KipperParser.logicalAndExpression
.
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:716
exitActualLogicalOrExpression
• exitActualLogicalOrExpression: (ctx
: ActualLogicalOrExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualLogicalOrExpression
Labeled alternative in KipperParser.logicalOrExpression
.
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:737
exitActualMatchesExpression
• exitActualMatchesExpression: (ctx
: MatchesExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the KipperParser.matchesExpression
Parameters
Name | Type |
---|---|
ctx |
MatchesExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitActualMatchesExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:805
exitActualMultiplicativeExpression
• exitActualMultiplicativeExpression: (ctx
: ActualMultiplicativeExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualMultiplicativeExpression
Labeled alternative in KipperParser.multiplicativeExpression
.
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:593
exitActualRelationalExpression
• exitActualRelationalExpression: (ctx
: ActualRelationalExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the actualRelationalExpression
labeled alternative in KipperParser.relationalExpression
.
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:647
exitArrayPrimaryExpression
• exitArrayPrimaryExpression: (ctx
: ArrayPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.arrayPrimaryExpression
.
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:341
exitBoolPrimaryExpression
• exitBoolPrimaryExpression: (ctx
: BoolPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.boolPrimaryExpression
.
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:391
exitBracketNotationMemberAccessExpression
• exitBracketNotationMemberAccessExpression: (ctx
: BracketNotationMemberAccessExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the bracketNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:444
exitClassConstructorDeclaration
• exitClassConstructorDeclaration: (ctx
: ClassConstructorDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.classConstructor
.
Parameters
Name | Type |
---|---|
ctx |
ClassConstructorDeclarationContext |
Returns
void
Implementation of
KipperParserListener.exitClassConstructorDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1171
exitClassDeclaration
• exitClassDeclaration: (ctx
: ClassDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.classDeclaration
.
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:1128
exitClassMethodDeclaration
• exitClassMethodDeclaration: (ctx
: ClassMethodDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.classMethod
.
Parameters
Name | Type |
---|---|
ctx |
ClassMethodDeclarationContext |
Returns
void
Implementation of
KipperParserListener.exitClassMethodDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1160
exitClassPropertyDeclaration
• exitClassPropertyDeclaration: (ctx
: ClassPropertyDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.classProperty
.
Parameters
Name | Type |
---|---|
ctx |
ClassPropertyDeclarationContext |
Returns
void
Implementation of
KipperParserListener.exitClassPropertyDeclaration
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1149
exitCompoundStatement
• exitCompoundStatement: (ctx
: CompoundStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.compoundStatement
.
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:900
exitDoWhileLoopIterationStatement
• exitDoWhileLoopIterationStatement: (ctx
: DoWhileLoopIterationStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.doWhileLoopIterationStatement
.
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:998
exitDotNotationMemberAccessExpression
• exitDotNotationMemberAccessExpression: (ctx
: DotNotationMemberAccessExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the dotNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:428
exitExplicitCallFunctionCallExpression
• exitExplicitCallFunctionCallExpression: (ctx
: ExplicitCallFunctionCallExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the explicitCallFunctionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:490
exitExpressionStatement
• exitExpressionStatement: (ctx
: ExpressionStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.expressionStatement
.
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:888
exitExternalItem
• Optional
exitExternalItem: (ctx
: ExternalItemContext
) => void
= undefined
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the externalItem
.
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:263
exitFStringPrimaryExpression
• exitFStringPrimaryExpression: (ctx
: FStringPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.fStringPrimaryExpression
.
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:305
exitForLoopIterationStatement
• exitForLoopIterationStatement: (ctx
: ForLoopIterationStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.forLoopIterationStatement
.
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:971
exitFunctionCallExpression
• exitFunctionCallExpression: (ctx
: FunctionCallExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the functionCallExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:475
exitFunctionDeclaration
• exitFunctionDeclaration: (ctx
: FunctionDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.functionDefinition
.
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:1065
exitGenericTypeSpecifierExpression
• exitGenericTypeSpecifierExpression: (ctx
: GenericTypeSpecifierExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.genericTypeSpecifier
.
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:1227
exitIdentifierPrimaryExpression
• exitIdentifierPrimaryExpression: (ctx
: IdentifierPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.identifierPrimaryExpression
.
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:280
exitIdentifierTypeSpecifierExpression
• exitIdentifierTypeSpecifierExpression: (ctx
: IdentifierTypeSpecifierExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.identifierTypeSpecifier
.
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:1213
exitIfStatement
• exitIfStatement: (ctx
: IfStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the ifStatement
labeled alternative in KipperParser.selectionStatement
.
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:921
exitIncrementOrDecrementPostfixExpression
• exitIncrementOrDecrementPostfixExpression: (ctx
: IncrementOrDecrementPostfixExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.incrementOrDecrementPostfixExpression
.
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:511
exitIncrementOrDecrementUnaryExpression
• exitIncrementOrDecrementUnaryExpression: (ctx
: IncrementOrDecrementUnaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.incrementOrDecrementUnaryExpression
.
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:533
exitInterfaceDeclaration
• exitInterfaceDeclaration: (ctx
: InterfaceDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.interfaceDeclaration
.
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:1089
exitInterfaceMethodDeclaration
• exitInterfaceMethodDeclaration: (ctx
: InterfaceMethodDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.interfaceMethodDeclaration
.
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:1116
exitInterfacePropertyDeclaration
• exitInterfacePropertyDeclaration: (ctx
: InterfacePropertyDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.interfacePropertyDeclaration
.
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:1102
exitJumpStatement
• exitJumpStatement: (ctx
: JumpStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.jumpStatement
.
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:1025
exitLambdaPrimaryExpression
• exitLambdaPrimaryExpression: (ctx
: LambdaPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the `actualBitwiseShiftExpression
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:379
exitNewInstantiationExpression
• exitNewInstantiationExpression: (ctx
: NewInstantiationExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.newInstantiationExpression
.
Parameters
Name | Type |
---|---|
ctx |
NewInstantiationExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitNewInstantiationExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:1139
exitNumberPrimaryExpression
• exitNumberPrimaryExpression: (ctx
: NumberPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.numberPrimaryExpression
.
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:329
exitObjectPrimaryExpression
• exitObjectPrimaryExpression: (ctx
: ObjectPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.objectPrimaryExpression
.
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:353
exitObjectProperty
• exitObjectProperty: (ctx
: ObjectPropertyContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.objectProperty
.
Since
0.11.0
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:367
exitOperatorModifiedUnaryExpression
• exitOperatorModifiedUnaryExpression: (ctx
: OperatorModifiedUnaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.operatorModifiedUnaryExpression
.
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:547
exitParameterDeclaration
• exitParameterDeclaration: (ctx
: ParameterDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.parameterDeclaration
.
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:1077
exitReturnStatement
• exitReturnStatement: (ctx
: ReturnStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.returnStatement
.
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:1013
exitSliceNotationMemberAccessExpression
• exitSliceNotationMemberAccessExpression: (ctx
: SliceNotationMemberAccessExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the sliceNotationMemberAccessExpression
Labeled alternative in KipperParser.computedPrimaryExpression
.
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:460
exitStringPrimaryExpression
• exitStringPrimaryExpression: (ctx
: StringPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.stringPrimaryExpression
.
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:293
exitSwitchStatement
• exitSwitchStatement: (ctx
: SwitchStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the switchStatement
labeled alternative in KipperParser.selectionStatement
.
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:935
exitTangledPrimaryExpression
• exitTangledPrimaryExpression: (ctx
: TangledPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.tangledPrimaryExpression
.
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:317
exitTypeofExpression
• exitTypeofExpression: (ctx
: TypeofExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by the KipperParser.typeofExpression
Parameters
Name | Type |
---|---|
ctx |
TypeofExpressionContext |
Returns
void
Implementation of
KipperParserListener.exitTypeofExpression
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:795
exitTypeofTypeSpecifierExpression
• exitTypeofTypeSpecifierExpression: (ctx
: TypeofTypeSpecifierExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.typeofTypeSpecifier
.
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:1241
exitVariableDeclaration
• exitVariableDeclaration: (ctx
: VariableDeclarationContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.variableDeclaration
.
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:1053
exitVoidOrNullOrUndefinedPrimaryExpression
• exitVoidOrNullOrUndefinedPrimaryExpression: (ctx
: VoidOrNullOrUndefinedPrimaryExpressionContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.voidOrNullOrUndefinedPrimaryExpression
.
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:404
exitWhileLoopIterationStatement
• exitWhileLoopIterationStatement: (ctx
: WhileLoopIterationStatementContext
) => void
Type declaration
▸ (ctx
): void
Exit a parse tree produced by KipperParser.whileLoopIterationStatement
.
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:984
Accessors
currentNode
• Private
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:182
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:162
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:145
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:136
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:128
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:154
Methods
enterDeclaration
▸ Optional
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:1035
enterDeclarator
▸ Optional
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:1260
enterDirectDeclarator
▸ Optional
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:1272
enterEveryRule
▸ Optional
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:241
enterExpression
▸ Optional
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:858
enterInitDeclarator
▸ Optional
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:1194
enterInitializer
▸ Optional
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:1296
enterLogicalAndExpression
▸ Optional
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:681
enterParameterList
▸ Optional
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:1284
enterPassOnLogicalAndExpression
▸ Optional
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:694
enterStorageTypeSpecifier
▸ Optional
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:1182
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:941
enterTypeSpecifierExpression
▸ Optional
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:1248
exitDeclaration
▸ Optional
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:1041
exitDeclarator
▸ Optional
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:1266
exitDirectDeclarator
▸ Optional
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:1278
exitEveryRule
▸ Optional
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:247
exitExpression
▸ Optional
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:864
exitInitDeclarator
▸ Optional
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:1200
exitInitializer
▸ Optional
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:1302
exitLogicalAndExpression
▸ Optional
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:687
exitParameterList
▸ Optional
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:1290
exitPassOnLogicalAndExpression
▸ Optional
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:701
exitStorageTypeSpecifier
▸ Optional
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:1188
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:949
exitTypeSpecifierExpression
▸ Optional
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:1254
handleEnteringTreeNode
▸ Private
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:200
handleExitingTreeNode
▸ Private
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:228
isDeclarationContext
▸ Private
isDeclarationContext(ctx
): boolean
Parameters
Name | Type |
---|---|
ctx |
ASTNodeParserContext |
Returns
boolean
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:170
isExpressionContext
▸ Private
isExpressionContext(ctx
): boolean
Parameters
Name | Type |
---|---|
ctx |
ASTNodeParserContext |
Returns
boolean
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:174
isStatementContext
▸ Private
isStatementContext(ctx
): boolean
Parameters
Name | Type |
---|---|
ctx |
ASTNodeParserContext |
Returns
boolean
Defined in
kipper/core/src/compiler/ast/ast-generator.ts:166