Interface KotlinVisitor<P,​R>

  • Type Parameters:
    T - The return type of the visit operation. Use Void for operations with no return type.
    All Superinterfaces:
    AstVisitor<P,​R>
    All Known Implementing Classes:
    KotlinVisitorBase

    public interface KotlinVisitor<P,​R>
    extends AstVisitor<P,​R>
    This interface defines a complete generic visitor for a parse tree produced by Kotlin.
    • Method Detail

      • visitKotlinNode

        default R visitKotlinNode​(KotlinNode node,
                                  P data)
        The default visit method for Kotlin nodes. Unless overridden, the default implementations of the methods of this interface delegate to this method. The default calls AstVisitor.visitNode(Node, Object).
        Parameters:
        node - Node to visit
        data - Parameter of the visit
        Returns:
        Result of the visit
      • visitKotlinFile

        default R visitKotlinFile​(KotlinParser.KtKotlinFile node,
                                  P data)
        Visit a parse tree produced by Kotlin#kotlinFile.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitScript

        default R visitScript​(KotlinParser.KtScript node,
                              P data)
        Visit a parse tree produced by Kotlin#script.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitShebangLine

        default R visitShebangLine​(KotlinParser.KtShebangLine node,
                                   P data)
        Visit a parse tree produced by Kotlin#shebangLine.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFileAnnotation

        default R visitFileAnnotation​(KotlinParser.KtFileAnnotation node,
                                      P data)
        Visit a parse tree produced by Kotlin#fileAnnotation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPackageHeader

        default R visitPackageHeader​(KotlinParser.KtPackageHeader node,
                                     P data)
        Visit a parse tree produced by Kotlin#packageHeader.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitImportList

        default R visitImportList​(KotlinParser.KtImportList node,
                                  P data)
        Visit a parse tree produced by Kotlin#importList.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitImportHeader

        default R visitImportHeader​(KotlinParser.KtImportHeader node,
                                    P data)
        Visit a parse tree produced by Kotlin#importHeader.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitImportAlias

        default R visitImportAlias​(KotlinParser.KtImportAlias node,
                                   P data)
        Visit a parse tree produced by Kotlin#importAlias.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTopLevelObject

        default R visitTopLevelObject​(KotlinParser.KtTopLevelObject node,
                                      P data)
        Visit a parse tree produced by Kotlin#topLevelObject.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeAlias

        default R visitTypeAlias​(KotlinParser.KtTypeAlias node,
                                 P data)
        Visit a parse tree produced by Kotlin#typeAlias.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDeclaration

        default R visitDeclaration​(KotlinParser.KtDeclaration node,
                                   P data)
        Visit a parse tree produced by Kotlin#declaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassDeclaration

        default R visitClassDeclaration​(KotlinParser.KtClassDeclaration node,
                                        P data)
        Visit a parse tree produced by Kotlin#classDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrimaryConstructor

        default R visitPrimaryConstructor​(KotlinParser.KtPrimaryConstructor node,
                                          P data)
        Visit a parse tree produced by Kotlin#primaryConstructor.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassBody

        default R visitClassBody​(KotlinParser.KtClassBody node,
                                 P data)
        Visit a parse tree produced by Kotlin#classBody.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassParameters

        default R visitClassParameters​(KotlinParser.KtClassParameters node,
                                       P data)
        Visit a parse tree produced by Kotlin#classParameters.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassParameter

        default R visitClassParameter​(KotlinParser.KtClassParameter node,
                                      P data)
        Visit a parse tree produced by Kotlin#classParameter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDelegationSpecifiers

        default R visitDelegationSpecifiers​(KotlinParser.KtDelegationSpecifiers node,
                                            P data)
        Visit a parse tree produced by Kotlin#delegationSpecifiers.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDelegationSpecifier

        default R visitDelegationSpecifier​(KotlinParser.KtDelegationSpecifier node,
                                           P data)
        Visit a parse tree produced by Kotlin#delegationSpecifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitConstructorInvocation

        default R visitConstructorInvocation​(KotlinParser.KtConstructorInvocation node,
                                             P data)
        Visit a parse tree produced by Kotlin#constructorInvocation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotatedDelegationSpecifier

        default R visitAnnotatedDelegationSpecifier​(KotlinParser.KtAnnotatedDelegationSpecifier node,
                                                    P data)
        Visit a parse tree produced by Kotlin#annotatedDelegationSpecifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExplicitDelegation

        default R visitExplicitDelegation​(KotlinParser.KtExplicitDelegation node,
                                          P data)
        Visit a parse tree produced by Kotlin#explicitDelegation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeParameters

        default R visitTypeParameters​(KotlinParser.KtTypeParameters node,
                                      P data)
        Visit a parse tree produced by Kotlin#typeParameters.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeParameter

        default R visitTypeParameter​(KotlinParser.KtTypeParameter node,
                                     P data)
        Visit a parse tree produced by Kotlin#typeParameter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeConstraints

        default R visitTypeConstraints​(KotlinParser.KtTypeConstraints node,
                                       P data)
        Visit a parse tree produced by Kotlin#typeConstraints.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeConstraint

        default R visitTypeConstraint​(KotlinParser.KtTypeConstraint node,
                                      P data)
        Visit a parse tree produced by Kotlin#typeConstraint.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassMemberDeclarations

        default R visitClassMemberDeclarations​(KotlinParser.KtClassMemberDeclarations node,
                                               P data)
        Visit a parse tree produced by Kotlin#classMemberDeclarations.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassMemberDeclaration

        default R visitClassMemberDeclaration​(KotlinParser.KtClassMemberDeclaration node,
                                              P data)
        Visit a parse tree produced by Kotlin#classMemberDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnonymousInitializer

        default R visitAnonymousInitializer​(KotlinParser.KtAnonymousInitializer node,
                                            P data)
        Visit a parse tree produced by Kotlin#anonymousInitializer.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCompanionObject

        default R visitCompanionObject​(KotlinParser.KtCompanionObject node,
                                       P data)
        Visit a parse tree produced by Kotlin#companionObject.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionValueParameters

        default R visitFunctionValueParameters​(KotlinParser.KtFunctionValueParameters node,
                                               P data)
        Visit a parse tree produced by Kotlin#functionValueParameters.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionValueParameter

        default R visitFunctionValueParameter​(KotlinParser.KtFunctionValueParameter node,
                                              P data)
        Visit a parse tree produced by Kotlin#functionValueParameter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionDeclaration

        default R visitFunctionDeclaration​(KotlinParser.KtFunctionDeclaration node,
                                           P data)
        Visit a parse tree produced by Kotlin#functionDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionBody

        default R visitFunctionBody​(KotlinParser.KtFunctionBody node,
                                    P data)
        Visit a parse tree produced by Kotlin#functionBody.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVariableDeclaration

        default R visitVariableDeclaration​(KotlinParser.KtVariableDeclaration node,
                                           P data)
        Visit a parse tree produced by Kotlin#variableDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiVariableDeclaration

        default R visitMultiVariableDeclaration​(KotlinParser.KtMultiVariableDeclaration node,
                                                P data)
        Visit a parse tree produced by Kotlin#multiVariableDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPropertyDeclaration

        default R visitPropertyDeclaration​(KotlinParser.KtPropertyDeclaration node,
                                           P data)
        Visit a parse tree produced by Kotlin#propertyDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPropertyDelegate

        default R visitPropertyDelegate​(KotlinParser.KtPropertyDelegate node,
                                        P data)
        Visit a parse tree produced by Kotlin#propertyDelegate.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitGetter

        default R visitGetter​(KotlinParser.KtGetter node,
                              P data)
        Visit a parse tree produced by Kotlin#getter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSetter

        default R visitSetter​(KotlinParser.KtSetter node,
                              P data)
        Visit a parse tree produced by Kotlin#setter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParametersWithOptionalType

        default R visitParametersWithOptionalType​(KotlinParser.KtParametersWithOptionalType node,
                                                  P data)
        Visit a parse tree produced by Kotlin#parametersWithOptionalType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionValueParameterWithOptionalType

        default R visitFunctionValueParameterWithOptionalType​(KotlinParser.KtFunctionValueParameterWithOptionalType node,
                                                              P data)
        Visit a parse tree produced by Kotlin#functionValueParameterWithOptionalType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParameterWithOptionalType

        default R visitParameterWithOptionalType​(KotlinParser.KtParameterWithOptionalType node,
                                                 P data)
        Visit a parse tree produced by Kotlin#parameterWithOptionalType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParameter

        default R visitParameter​(KotlinParser.KtParameter node,
                                 P data)
        Visit a parse tree produced by Kotlin#parameter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitObjectDeclaration

        default R visitObjectDeclaration​(KotlinParser.KtObjectDeclaration node,
                                         P data)
        Visit a parse tree produced by Kotlin#objectDeclaration.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSecondaryConstructor

        default R visitSecondaryConstructor​(KotlinParser.KtSecondaryConstructor node,
                                            P data)
        Visit a parse tree produced by Kotlin#secondaryConstructor.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitConstructorDelegationCall

        default R visitConstructorDelegationCall​(KotlinParser.KtConstructorDelegationCall node,
                                                 P data)
        Visit a parse tree produced by Kotlin#constructorDelegationCall.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumClassBody

        default R visitEnumClassBody​(KotlinParser.KtEnumClassBody node,
                                     P data)
        Visit a parse tree produced by Kotlin#enumClassBody.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumEntries

        default R visitEnumEntries​(KotlinParser.KtEnumEntries node,
                                   P data)
        Visit a parse tree produced by Kotlin#enumEntries.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnumEntry

        default R visitEnumEntry​(KotlinParser.KtEnumEntry node,
                                 P data)
        Visit a parse tree produced by Kotlin#enumEntry.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitType

        default R visitType​(KotlinParser.KtType node,
                            P data)
        Visit a parse tree produced by Kotlin#type.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeReference

        default R visitTypeReference​(KotlinParser.KtTypeReference node,
                                     P data)
        Visit a parse tree produced by Kotlin#typeReference.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNullableType

        default R visitNullableType​(KotlinParser.KtNullableType node,
                                    P data)
        Visit a parse tree produced by Kotlin#nullableType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitQuest

        default R visitQuest​(KotlinParser.KtQuest node,
                             P data)
        Visit a parse tree produced by Kotlin#quest.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitUserType

        default R visitUserType​(KotlinParser.KtUserType node,
                                P data)
        Visit a parse tree produced by Kotlin#userType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSimpleUserType

        default R visitSimpleUserType​(KotlinParser.KtSimpleUserType node,
                                      P data)
        Visit a parse tree produced by Kotlin#simpleUserType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeProjection

        default R visitTypeProjection​(KotlinParser.KtTypeProjection node,
                                      P data)
        Visit a parse tree produced by Kotlin#typeProjection.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeProjectionModifiers

        default R visitTypeProjectionModifiers​(KotlinParser.KtTypeProjectionModifiers node,
                                               P data)
        Visit a parse tree produced by Kotlin#typeProjectionModifiers.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeProjectionModifier

        default R visitTypeProjectionModifier​(KotlinParser.KtTypeProjectionModifier node,
                                              P data)
        Visit a parse tree produced by Kotlin#typeProjectionModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionType

        default R visitFunctionType​(KotlinParser.KtFunctionType node,
                                    P data)
        Visit a parse tree produced by Kotlin#functionType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionTypeParameters

        default R visitFunctionTypeParameters​(KotlinParser.KtFunctionTypeParameters node,
                                              P data)
        Visit a parse tree produced by Kotlin#functionTypeParameters.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParenthesizedType

        default R visitParenthesizedType​(KotlinParser.KtParenthesizedType node,
                                         P data)
        Visit a parse tree produced by Kotlin#parenthesizedType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitReceiverType

        default R visitReceiverType​(KotlinParser.KtReceiverType node,
                                    P data)
        Visit a parse tree produced by Kotlin#receiverType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParenthesizedUserType

        default R visitParenthesizedUserType​(KotlinParser.KtParenthesizedUserType node,
                                             P data)
        Visit a parse tree produced by Kotlin#parenthesizedUserType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDefinitelyNonNullableType

        default R visitDefinitelyNonNullableType​(KotlinParser.KtDefinitelyNonNullableType node,
                                                 P data)
        Visit a parse tree produced by Kotlin#definitelyNonNullableType.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStatements

        default R visitStatements​(KotlinParser.KtStatements node,
                                  P data)
        Visit a parse tree produced by Kotlin#statements.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStatement

        default R visitStatement​(KotlinParser.KtStatement node,
                                 P data)
        Visit a parse tree produced by Kotlin#statement.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLabel

        default R visitLabel​(KotlinParser.KtLabel node,
                             P data)
        Visit a parse tree produced by Kotlin#label.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitControlStructureBody

        default R visitControlStructureBody​(KotlinParser.KtControlStructureBody node,
                                            P data)
        Visit a parse tree produced by Kotlin#controlStructureBody.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBlock

        default R visitBlock​(KotlinParser.KtBlock node,
                             P data)
        Visit a parse tree produced by Kotlin#block.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLoopStatement

        default R visitLoopStatement​(KotlinParser.KtLoopStatement node,
                                     P data)
        Visit a parse tree produced by Kotlin#loopStatement.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitForStatement

        default R visitForStatement​(KotlinParser.KtForStatement node,
                                    P data)
        Visit a parse tree produced by Kotlin#forStatement.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWhileStatement

        default R visitWhileStatement​(KotlinParser.KtWhileStatement node,
                                      P data)
        Visit a parse tree produced by Kotlin#whileStatement.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDoWhileStatement

        default R visitDoWhileStatement​(KotlinParser.KtDoWhileStatement node,
                                        P data)
        Visit a parse tree produced by Kotlin#doWhileStatement.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAssignment

        default R visitAssignment​(KotlinParser.KtAssignment node,
                                  P data)
        Visit a parse tree produced by Kotlin#assignment.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSemi

        default R visitSemi​(KotlinParser.KtSemi node,
                            P data)
        Visit a parse tree produced by Kotlin#semi.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSemis

        default R visitSemis​(KotlinParser.KtSemis node,
                             P data)
        Visit a parse tree produced by Kotlin#semis.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExpression

        default R visitExpression​(KotlinParser.KtExpression node,
                                  P data)
        Visit a parse tree produced by Kotlin#expression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDisjunction

        default R visitDisjunction​(KotlinParser.KtDisjunction node,
                                   P data)
        Visit a parse tree produced by Kotlin#disjunction.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitConjunction

        default R visitConjunction​(KotlinParser.KtConjunction node,
                                   P data)
        Visit a parse tree produced by Kotlin#conjunction.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEquality

        default R visitEquality​(KotlinParser.KtEquality node,
                                P data)
        Visit a parse tree produced by Kotlin#equality.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitComparison

        default R visitComparison​(KotlinParser.KtComparison node,
                                  P data)
        Visit a parse tree produced by Kotlin#comparison.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitGenericCallLikeComparison

        default R visitGenericCallLikeComparison​(KotlinParser.KtGenericCallLikeComparison node,
                                                 P data)
        Visit a parse tree produced by Kotlin#genericCallLikeComparison.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInfixOperation

        default R visitInfixOperation​(KotlinParser.KtInfixOperation node,
                                      P data)
        Visit a parse tree produced by Kotlin#infixOperation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElvisExpression

        default R visitElvisExpression​(KotlinParser.KtElvisExpression node,
                                       P data)
        Visit a parse tree produced by Kotlin#elvisExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElvis

        default R visitElvis​(KotlinParser.KtElvis node,
                             P data)
        Visit a parse tree produced by Kotlin#elvis.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInfixFunctionCall

        default R visitInfixFunctionCall​(KotlinParser.KtInfixFunctionCall node,
                                         P data)
        Visit a parse tree produced by Kotlin#infixFunctionCall.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRangeExpression

        default R visitRangeExpression​(KotlinParser.KtRangeExpression node,
                                       P data)
        Visit a parse tree produced by Kotlin#rangeExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAdditiveExpression

        default R visitAdditiveExpression​(KotlinParser.KtAdditiveExpression node,
                                          P data)
        Visit a parse tree produced by Kotlin#additiveExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiplicativeExpression

        default R visitMultiplicativeExpression​(KotlinParser.KtMultiplicativeExpression node,
                                                P data)
        Visit a parse tree produced by Kotlin#multiplicativeExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAsExpression

        default R visitAsExpression​(KotlinParser.KtAsExpression node,
                                    P data)
        Visit a parse tree produced by Kotlin#asExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrefixUnaryExpression

        default R visitPrefixUnaryExpression​(KotlinParser.KtPrefixUnaryExpression node,
                                             P data)
        Visit a parse tree produced by Kotlin#prefixUnaryExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitUnaryPrefix

        default R visitUnaryPrefix​(KotlinParser.KtUnaryPrefix node,
                                   P data)
        Visit a parse tree produced by Kotlin#unaryPrefix.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPostfixUnaryExpression

        default R visitPostfixUnaryExpression​(KotlinParser.KtPostfixUnaryExpression node,
                                              P data)
        Visit a parse tree produced by Kotlin#postfixUnaryExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPostfixUnarySuffix

        default R visitPostfixUnarySuffix​(KotlinParser.KtPostfixUnarySuffix node,
                                          P data)
        Visit a parse tree produced by Kotlin#postfixUnarySuffix.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDirectlyAssignableExpression

        default R visitDirectlyAssignableExpression​(KotlinParser.KtDirectlyAssignableExpression node,
                                                    P data)
        Visit a parse tree produced by Kotlin#directlyAssignableExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParenthesizedDirectlyAssignableExpression

        default R visitParenthesizedDirectlyAssignableExpression​(KotlinParser.KtParenthesizedDirectlyAssignableExpression node,
                                                                 P data)
        Visit a parse tree produced by Kotlin#parenthesizedDirectlyAssignableExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAssignableExpression

        default R visitAssignableExpression​(KotlinParser.KtAssignableExpression node,
                                            P data)
        Visit a parse tree produced by Kotlin#assignableExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParenthesizedAssignableExpression

        default R visitParenthesizedAssignableExpression​(KotlinParser.KtParenthesizedAssignableExpression node,
                                                         P data)
        Visit a parse tree produced by Kotlin#parenthesizedAssignableExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAssignableSuffix

        default R visitAssignableSuffix​(KotlinParser.KtAssignableSuffix node,
                                        P data)
        Visit a parse tree produced by Kotlin#assignableSuffix.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIndexingSuffix

        default R visitIndexingSuffix​(KotlinParser.KtIndexingSuffix node,
                                      P data)
        Visit a parse tree produced by Kotlin#indexingSuffix.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNavigationSuffix

        default R visitNavigationSuffix​(KotlinParser.KtNavigationSuffix node,
                                        P data)
        Visit a parse tree produced by Kotlin#navigationSuffix.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCallSuffix

        default R visitCallSuffix​(KotlinParser.KtCallSuffix node,
                                  P data)
        Visit a parse tree produced by Kotlin#callSuffix.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotatedLambda

        default R visitAnnotatedLambda​(KotlinParser.KtAnnotatedLambda node,
                                       P data)
        Visit a parse tree produced by Kotlin#annotatedLambda.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeArguments

        default R visitTypeArguments​(KotlinParser.KtTypeArguments node,
                                     P data)
        Visit a parse tree produced by Kotlin#typeArguments.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitValueArguments

        default R visitValueArguments​(KotlinParser.KtValueArguments node,
                                      P data)
        Visit a parse tree produced by Kotlin#valueArguments.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitValueArgument

        default R visitValueArgument​(KotlinParser.KtValueArgument node,
                                     P data)
        Visit a parse tree produced by Kotlin#valueArgument.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrimaryExpression

        default R visitPrimaryExpression​(KotlinParser.KtPrimaryExpression node,
                                         P data)
        Visit a parse tree produced by Kotlin#primaryExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParenthesizedExpression

        default R visitParenthesizedExpression​(KotlinParser.KtParenthesizedExpression node,
                                               P data)
        Visit a parse tree produced by Kotlin#parenthesizedExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCollectionLiteral

        default R visitCollectionLiteral​(KotlinParser.KtCollectionLiteral node,
                                         P data)
        Visit a parse tree produced by Kotlin#collectionLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLiteralConstant

        default R visitLiteralConstant​(KotlinParser.KtLiteralConstant node,
                                       P data)
        Visit a parse tree produced by Kotlin#literalConstant.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStringLiteral

        default R visitStringLiteral​(KotlinParser.KtStringLiteral node,
                                     P data)
        Visit a parse tree produced by Kotlin#stringLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLineStringLiteral

        default R visitLineStringLiteral​(KotlinParser.KtLineStringLiteral node,
                                         P data)
        Visit a parse tree produced by Kotlin#lineStringLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiLineStringLiteral

        default R visitMultiLineStringLiteral​(KotlinParser.KtMultiLineStringLiteral node,
                                              P data)
        Visit a parse tree produced by Kotlin#multiLineStringLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLineStringContent

        default R visitLineStringContent​(KotlinParser.KtLineStringContent node,
                                         P data)
        Visit a parse tree produced by Kotlin#lineStringContent.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLineStringExpression

        default R visitLineStringExpression​(KotlinParser.KtLineStringExpression node,
                                            P data)
        Visit a parse tree produced by Kotlin#lineStringExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiLineStringContent

        default R visitMultiLineStringContent​(KotlinParser.KtMultiLineStringContent node,
                                              P data)
        Visit a parse tree produced by Kotlin#multiLineStringContent.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiLineStringExpression

        default R visitMultiLineStringExpression​(KotlinParser.KtMultiLineStringExpression node,
                                                 P data)
        Visit a parse tree produced by Kotlin#multiLineStringExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLambdaLiteral

        default R visitLambdaLiteral​(KotlinParser.KtLambdaLiteral node,
                                     P data)
        Visit a parse tree produced by Kotlin#lambdaLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLambdaParameters

        default R visitLambdaParameters​(KotlinParser.KtLambdaParameters node,
                                        P data)
        Visit a parse tree produced by Kotlin#lambdaParameters.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLambdaParameter

        default R visitLambdaParameter​(KotlinParser.KtLambdaParameter node,
                                       P data)
        Visit a parse tree produced by Kotlin#lambdaParameter.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnonymousFunction

        default R visitAnonymousFunction​(KotlinParser.KtAnonymousFunction node,
                                         P data)
        Visit a parse tree produced by Kotlin#anonymousFunction.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionLiteral

        default R visitFunctionLiteral​(KotlinParser.KtFunctionLiteral node,
                                       P data)
        Visit a parse tree produced by Kotlin#functionLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitObjectLiteral

        default R visitObjectLiteral​(KotlinParser.KtObjectLiteral node,
                                     P data)
        Visit a parse tree produced by Kotlin#objectLiteral.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitThisExpression

        default R visitThisExpression​(KotlinParser.KtThisExpression node,
                                      P data)
        Visit a parse tree produced by Kotlin#thisExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSuperExpression

        default R visitSuperExpression​(KotlinParser.KtSuperExpression node,
                                       P data)
        Visit a parse tree produced by Kotlin#superExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIfExpression

        default R visitIfExpression​(KotlinParser.KtIfExpression node,
                                    P data)
        Visit a parse tree produced by Kotlin#ifExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWhenSubject

        default R visitWhenSubject​(KotlinParser.KtWhenSubject node,
                                   P data)
        Visit a parse tree produced by Kotlin#whenSubject.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWhenExpression

        default R visitWhenExpression​(KotlinParser.KtWhenExpression node,
                                      P data)
        Visit a parse tree produced by Kotlin#whenExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWhenEntry

        default R visitWhenEntry​(KotlinParser.KtWhenEntry node,
                                 P data)
        Visit a parse tree produced by Kotlin#whenEntry.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWhenCondition

        default R visitWhenCondition​(KotlinParser.KtWhenCondition node,
                                     P data)
        Visit a parse tree produced by Kotlin#whenCondition.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRangeTest

        default R visitRangeTest​(KotlinParser.KtRangeTest node,
                                 P data)
        Visit a parse tree produced by Kotlin#rangeTest.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeTest

        default R visitTypeTest​(KotlinParser.KtTypeTest node,
                                P data)
        Visit a parse tree produced by Kotlin#typeTest.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTryExpression

        default R visitTryExpression​(KotlinParser.KtTryExpression node,
                                     P data)
        Visit a parse tree produced by Kotlin#tryExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCatchBlock

        default R visitCatchBlock​(KotlinParser.KtCatchBlock node,
                                  P data)
        Visit a parse tree produced by Kotlin#catchBlock.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFinallyBlock

        default R visitFinallyBlock​(KotlinParser.KtFinallyBlock node,
                                    P data)
        Visit a parse tree produced by Kotlin#finallyBlock.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitJumpExpression

        default R visitJumpExpression​(KotlinParser.KtJumpExpression node,
                                      P data)
        Visit a parse tree produced by Kotlin#jumpExpression.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitCallableReference

        default R visitCallableReference​(KotlinParser.KtCallableReference node,
                                         P data)
        Visit a parse tree produced by Kotlin#callableReference.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAssignmentAndOperator

        default R visitAssignmentAndOperator​(KotlinParser.KtAssignmentAndOperator node,
                                             P data)
        Visit a parse tree produced by Kotlin#assignmentAndOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEqualityOperator

        default R visitEqualityOperator​(KotlinParser.KtEqualityOperator node,
                                        P data)
        Visit a parse tree produced by Kotlin#equalityOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitComparisonOperator

        default R visitComparisonOperator​(KotlinParser.KtComparisonOperator node,
                                          P data)
        Visit a parse tree produced by Kotlin#comparisonOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInOperator

        default R visitInOperator​(KotlinParser.KtInOperator node,
                                  P data)
        Visit a parse tree produced by Kotlin#inOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIsOperator

        default R visitIsOperator​(KotlinParser.KtIsOperator node,
                                  P data)
        Visit a parse tree produced by Kotlin#isOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAdditiveOperator

        default R visitAdditiveOperator​(KotlinParser.KtAdditiveOperator node,
                                        P data)
        Visit a parse tree produced by Kotlin#additiveOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiplicativeOperator

        default R visitMultiplicativeOperator​(KotlinParser.KtMultiplicativeOperator node,
                                              P data)
        Visit a parse tree produced by Kotlin#multiplicativeOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAsOperator

        default R visitAsOperator​(KotlinParser.KtAsOperator node,
                                  P data)
        Visit a parse tree produced by Kotlin#asOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPrefixUnaryOperator

        default R visitPrefixUnaryOperator​(KotlinParser.KtPrefixUnaryOperator node,
                                           P data)
        Visit a parse tree produced by Kotlin#prefixUnaryOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPostfixUnaryOperator

        default R visitPostfixUnaryOperator​(KotlinParser.KtPostfixUnaryOperator node,
                                            P data)
        Visit a parse tree produced by Kotlin#postfixUnaryOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitExcl

        default R visitExcl​(KotlinParser.KtExcl node,
                            P data)
        Visit a parse tree produced by Kotlin#excl.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMemberAccessOperator

        default R visitMemberAccessOperator​(KotlinParser.KtMemberAccessOperator node,
                                            P data)
        Visit a parse tree produced by Kotlin#memberAccessOperator.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSafeNav

        default R visitSafeNav​(KotlinParser.KtSafeNav node,
                               P data)
        Visit a parse tree produced by Kotlin#safeNav.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitModifiers

        default R visitModifiers​(KotlinParser.KtModifiers node,
                                 P data)
        Visit a parse tree produced by Kotlin#modifiers.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParameterModifiers

        default R visitParameterModifiers​(KotlinParser.KtParameterModifiers node,
                                          P data)
        Visit a parse tree produced by Kotlin#parameterModifiers.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitModifier

        default R visitModifier​(KotlinParser.KtModifier node,
                                P data)
        Visit a parse tree produced by Kotlin#modifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeModifiers

        default R visitTypeModifiers​(KotlinParser.KtTypeModifiers node,
                                     P data)
        Visit a parse tree produced by Kotlin#typeModifiers.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeModifier

        default R visitTypeModifier​(KotlinParser.KtTypeModifier node,
                                    P data)
        Visit a parse tree produced by Kotlin#typeModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitClassModifier

        default R visitClassModifier​(KotlinParser.KtClassModifier node,
                                     P data)
        Visit a parse tree produced by Kotlin#classModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMemberModifier

        default R visitMemberModifier​(KotlinParser.KtMemberModifier node,
                                      P data)
        Visit a parse tree produced by Kotlin#memberModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVisibilityModifier

        default R visitVisibilityModifier​(KotlinParser.KtVisibilityModifier node,
                                          P data)
        Visit a parse tree produced by Kotlin#visibilityModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitVarianceModifier

        default R visitVarianceModifier​(KotlinParser.KtVarianceModifier node,
                                        P data)
        Visit a parse tree produced by Kotlin#varianceModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeParameterModifiers

        default R visitTypeParameterModifiers​(KotlinParser.KtTypeParameterModifiers node,
                                              P data)
        Visit a parse tree produced by Kotlin#typeParameterModifiers.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTypeParameterModifier

        default R visitTypeParameterModifier​(KotlinParser.KtTypeParameterModifier node,
                                             P data)
        Visit a parse tree produced by Kotlin#typeParameterModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFunctionModifier

        default R visitFunctionModifier​(KotlinParser.KtFunctionModifier node,
                                        P data)
        Visit a parse tree produced by Kotlin#functionModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPropertyModifier

        default R visitPropertyModifier​(KotlinParser.KtPropertyModifier node,
                                        P data)
        Visit a parse tree produced by Kotlin#propertyModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitInheritanceModifier

        default R visitInheritanceModifier​(KotlinParser.KtInheritanceModifier node,
                                           P data)
        Visit a parse tree produced by Kotlin#inheritanceModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitParameterModifier

        default R visitParameterModifier​(KotlinParser.KtParameterModifier node,
                                         P data)
        Visit a parse tree produced by Kotlin#parameterModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitReificationModifier

        default R visitReificationModifier​(KotlinParser.KtReificationModifier node,
                                           P data)
        Visit a parse tree produced by Kotlin#reificationModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPlatformModifier

        default R visitPlatformModifier​(KotlinParser.KtPlatformModifier node,
                                        P data)
        Visit a parse tree produced by Kotlin#platformModifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotation

        default R visitAnnotation​(KotlinParser.KtAnnotation node,
                                  P data)
        Visit a parse tree produced by Kotlin#annotation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSingleAnnotation

        default R visitSingleAnnotation​(KotlinParser.KtSingleAnnotation node,
                                        P data)
        Visit a parse tree produced by Kotlin#singleAnnotation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMultiAnnotation

        default R visitMultiAnnotation​(KotlinParser.KtMultiAnnotation node,
                                       P data)
        Visit a parse tree produced by Kotlin#multiAnnotation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAnnotationUseSiteTarget

        default R visitAnnotationUseSiteTarget​(KotlinParser.KtAnnotationUseSiteTarget node,
                                               P data)
        Visit a parse tree produced by Kotlin#annotationUseSiteTarget.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitUnescapedAnnotation

        default R visitUnescapedAnnotation​(KotlinParser.KtUnescapedAnnotation node,
                                           P data)
        Visit a parse tree produced by Kotlin#unescapedAnnotation.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitSimpleIdentifier

        default R visitSimpleIdentifier​(KotlinParser.KtSimpleIdentifier node,
                                        P data)
        Visit a parse tree produced by Kotlin#simpleIdentifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIdentifier

        default R visitIdentifier​(KotlinParser.KtIdentifier node,
                                  P data)
        Visit a parse tree produced by Kotlin#identifier.
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result