Class GolangBaseListener
- java.lang.Object
-
- net.sourceforge.pmd.lang.go.antlr4.GolangBaseListener
-
- All Implemented Interfaces:
GolangListener
,org.antlr.v4.runtime.tree.ParseTreeListener
public class GolangBaseListener extends Object implements GolangListener
This class provides an empty implementation ofGolangListener
, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description GolangBaseListener()
-
Method Summary
-
-
-
Method Detail
-
enterSourceFile
public void enterSourceFile(GolangParser.SourceFileContext ctx)
Enter a parse tree produced byGolangParser.sourceFile()
.The default implementation does nothing.
- Specified by:
enterSourceFile
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSourceFile
public void exitSourceFile(GolangParser.SourceFileContext ctx)
Exit a parse tree produced byGolangParser.sourceFile()
.The default implementation does nothing.
- Specified by:
exitSourceFile
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterPackageClause
public void enterPackageClause(GolangParser.PackageClauseContext ctx)
Enter a parse tree produced byGolangParser.packageClause()
.The default implementation does nothing.
- Specified by:
enterPackageClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitPackageClause
public void exitPackageClause(GolangParser.PackageClauseContext ctx)
Exit a parse tree produced byGolangParser.packageClause()
.The default implementation does nothing.
- Specified by:
exitPackageClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterImportDecl
public void enterImportDecl(GolangParser.ImportDeclContext ctx)
Enter a parse tree produced byGolangParser.importDecl()
.The default implementation does nothing.
- Specified by:
enterImportDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitImportDecl
public void exitImportDecl(GolangParser.ImportDeclContext ctx)
Exit a parse tree produced byGolangParser.importDecl()
.The default implementation does nothing.
- Specified by:
exitImportDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterImportSpec
public void enterImportSpec(GolangParser.ImportSpecContext ctx)
Enter a parse tree produced byGolangParser.importSpec()
.The default implementation does nothing.
- Specified by:
enterImportSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitImportSpec
public void exitImportSpec(GolangParser.ImportSpecContext ctx)
Exit a parse tree produced byGolangParser.importSpec()
.The default implementation does nothing.
- Specified by:
exitImportSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterImportPath
public void enterImportPath(GolangParser.ImportPathContext ctx)
Enter a parse tree produced byGolangParser.importPath()
.The default implementation does nothing.
- Specified by:
enterImportPath
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitImportPath
public void exitImportPath(GolangParser.ImportPathContext ctx)
Exit a parse tree produced byGolangParser.importPath()
.The default implementation does nothing.
- Specified by:
exitImportPath
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTopLevelDecl
public void enterTopLevelDecl(GolangParser.TopLevelDeclContext ctx)
Enter a parse tree produced byGolangParser.topLevelDecl()
.The default implementation does nothing.
- Specified by:
enterTopLevelDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTopLevelDecl
public void exitTopLevelDecl(GolangParser.TopLevelDeclContext ctx)
Exit a parse tree produced byGolangParser.topLevelDecl()
.The default implementation does nothing.
- Specified by:
exitTopLevelDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterDeclaration
public void enterDeclaration(GolangParser.DeclarationContext ctx)
Enter a parse tree produced byGolangParser.declaration()
.The default implementation does nothing.
- Specified by:
enterDeclaration
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitDeclaration
public void exitDeclaration(GolangParser.DeclarationContext ctx)
Exit a parse tree produced byGolangParser.declaration()
.The default implementation does nothing.
- Specified by:
exitDeclaration
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterConstDecl
public void enterConstDecl(GolangParser.ConstDeclContext ctx)
Enter a parse tree produced byGolangParser.constDecl()
.The default implementation does nothing.
- Specified by:
enterConstDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitConstDecl
public void exitConstDecl(GolangParser.ConstDeclContext ctx)
Exit a parse tree produced byGolangParser.constDecl()
.The default implementation does nothing.
- Specified by:
exitConstDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterConstSpec
public void enterConstSpec(GolangParser.ConstSpecContext ctx)
Enter a parse tree produced byGolangParser.constSpec()
.The default implementation does nothing.
- Specified by:
enterConstSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitConstSpec
public void exitConstSpec(GolangParser.ConstSpecContext ctx)
Exit a parse tree produced byGolangParser.constSpec()
.The default implementation does nothing.
- Specified by:
exitConstSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterIdentifierList
public void enterIdentifierList(GolangParser.IdentifierListContext ctx)
Enter a parse tree produced byGolangParser.identifierList()
.The default implementation does nothing.
- Specified by:
enterIdentifierList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitIdentifierList
public void exitIdentifierList(GolangParser.IdentifierListContext ctx)
Exit a parse tree produced byGolangParser.identifierList()
.The default implementation does nothing.
- Specified by:
exitIdentifierList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterExpressionList
public void enterExpressionList(GolangParser.ExpressionListContext ctx)
Enter a parse tree produced byGolangParser.expressionList()
.The default implementation does nothing.
- Specified by:
enterExpressionList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitExpressionList
public void exitExpressionList(GolangParser.ExpressionListContext ctx)
Exit a parse tree produced byGolangParser.expressionList()
.The default implementation does nothing.
- Specified by:
exitExpressionList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeDecl
public void enterTypeDecl(GolangParser.TypeDeclContext ctx)
Enter a parse tree produced byGolangParser.typeDecl()
.The default implementation does nothing.
- Specified by:
enterTypeDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeDecl
public void exitTypeDecl(GolangParser.TypeDeclContext ctx)
Exit a parse tree produced byGolangParser.typeDecl()
.The default implementation does nothing.
- Specified by:
exitTypeDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeSpec
public void enterTypeSpec(GolangParser.TypeSpecContext ctx)
Enter a parse tree produced byGolangParser.typeSpec()
.The default implementation does nothing.
- Specified by:
enterTypeSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeSpec
public void exitTypeSpec(GolangParser.TypeSpecContext ctx)
Exit a parse tree produced byGolangParser.typeSpec()
.The default implementation does nothing.
- Specified by:
exitTypeSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterFunctionDecl
public void enterFunctionDecl(GolangParser.FunctionDeclContext ctx)
Enter a parse tree produced byGolangParser.functionDecl()
.The default implementation does nothing.
- Specified by:
enterFunctionDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitFunctionDecl
public void exitFunctionDecl(GolangParser.FunctionDeclContext ctx)
Exit a parse tree produced byGolangParser.functionDecl()
.The default implementation does nothing.
- Specified by:
exitFunctionDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterFunction
public void enterFunction(GolangParser.FunctionContext ctx)
Enter a parse tree produced byGolangParser.function()
.The default implementation does nothing.
- Specified by:
enterFunction
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitFunction
public void exitFunction(GolangParser.FunctionContext ctx)
Exit a parse tree produced byGolangParser.function()
.The default implementation does nothing.
- Specified by:
exitFunction
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterMethodDecl
public void enterMethodDecl(GolangParser.MethodDeclContext ctx)
Enter a parse tree produced byGolangParser.methodDecl()
.The default implementation does nothing.
- Specified by:
enterMethodDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitMethodDecl
public void exitMethodDecl(GolangParser.MethodDeclContext ctx)
Exit a parse tree produced byGolangParser.methodDecl()
.The default implementation does nothing.
- Specified by:
exitMethodDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterReceiver
public void enterReceiver(GolangParser.ReceiverContext ctx)
Enter a parse tree produced byGolangParser.receiver()
.The default implementation does nothing.
- Specified by:
enterReceiver
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitReceiver
public void exitReceiver(GolangParser.ReceiverContext ctx)
Exit a parse tree produced byGolangParser.receiver()
.The default implementation does nothing.
- Specified by:
exitReceiver
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterVarDecl
public void enterVarDecl(GolangParser.VarDeclContext ctx)
Enter a parse tree produced byGolangParser.varDecl()
.The default implementation does nothing.
- Specified by:
enterVarDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitVarDecl
public void exitVarDecl(GolangParser.VarDeclContext ctx)
Exit a parse tree produced byGolangParser.varDecl()
.The default implementation does nothing.
- Specified by:
exitVarDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterVarSpec
public void enterVarSpec(GolangParser.VarSpecContext ctx)
Enter a parse tree produced byGolangParser.varSpec()
.The default implementation does nothing.
- Specified by:
enterVarSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitVarSpec
public void exitVarSpec(GolangParser.VarSpecContext ctx)
Exit a parse tree produced byGolangParser.varSpec()
.The default implementation does nothing.
- Specified by:
exitVarSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterBlock
public void enterBlock(GolangParser.BlockContext ctx)
Enter a parse tree produced byGolangParser.block()
.The default implementation does nothing.
- Specified by:
enterBlock
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitBlock
public void exitBlock(GolangParser.BlockContext ctx)
Exit a parse tree produced byGolangParser.block()
.The default implementation does nothing.
- Specified by:
exitBlock
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterStatementList
public void enterStatementList(GolangParser.StatementListContext ctx)
Enter a parse tree produced byGolangParser.statementList()
.The default implementation does nothing.
- Specified by:
enterStatementList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitStatementList
public void exitStatementList(GolangParser.StatementListContext ctx)
Exit a parse tree produced byGolangParser.statementList()
.The default implementation does nothing.
- Specified by:
exitStatementList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterStatement
public void enterStatement(GolangParser.StatementContext ctx)
Enter a parse tree produced byGolangParser.statement()
.The default implementation does nothing.
- Specified by:
enterStatement
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitStatement
public void exitStatement(GolangParser.StatementContext ctx)
Exit a parse tree produced byGolangParser.statement()
.The default implementation does nothing.
- Specified by:
exitStatement
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSimpleStmt
public void enterSimpleStmt(GolangParser.SimpleStmtContext ctx)
Enter a parse tree produced byGolangParser.simpleStmt()
.The default implementation does nothing.
- Specified by:
enterSimpleStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSimpleStmt
public void exitSimpleStmt(GolangParser.SimpleStmtContext ctx)
Exit a parse tree produced byGolangParser.simpleStmt()
.The default implementation does nothing.
- Specified by:
exitSimpleStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterExpressionStmt
public void enterExpressionStmt(GolangParser.ExpressionStmtContext ctx)
Enter a parse tree produced byGolangParser.expressionStmt()
.The default implementation does nothing.
- Specified by:
enterExpressionStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitExpressionStmt
public void exitExpressionStmt(GolangParser.ExpressionStmtContext ctx)
Exit a parse tree produced byGolangParser.expressionStmt()
.The default implementation does nothing.
- Specified by:
exitExpressionStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSendStmt
public void enterSendStmt(GolangParser.SendStmtContext ctx)
Enter a parse tree produced byGolangParser.sendStmt()
.The default implementation does nothing.
- Specified by:
enterSendStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSendStmt
public void exitSendStmt(GolangParser.SendStmtContext ctx)
Exit a parse tree produced byGolangParser.sendStmt()
.The default implementation does nothing.
- Specified by:
exitSendStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterIncDecStmt
public void enterIncDecStmt(GolangParser.IncDecStmtContext ctx)
Enter a parse tree produced byGolangParser.incDecStmt()
.The default implementation does nothing.
- Specified by:
enterIncDecStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitIncDecStmt
public void exitIncDecStmt(GolangParser.IncDecStmtContext ctx)
Exit a parse tree produced byGolangParser.incDecStmt()
.The default implementation does nothing.
- Specified by:
exitIncDecStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterAssignment
public void enterAssignment(GolangParser.AssignmentContext ctx)
Enter a parse tree produced byGolangParser.assignment()
.The default implementation does nothing.
- Specified by:
enterAssignment
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitAssignment
public void exitAssignment(GolangParser.AssignmentContext ctx)
Exit a parse tree produced byGolangParser.assignment()
.The default implementation does nothing.
- Specified by:
exitAssignment
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterAssign_op
public void enterAssign_op(GolangParser.Assign_opContext ctx)
Enter a parse tree produced byGolangParser.assign_op()
.The default implementation does nothing.
- Specified by:
enterAssign_op
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitAssign_op
public void exitAssign_op(GolangParser.Assign_opContext ctx)
Exit a parse tree produced byGolangParser.assign_op()
.The default implementation does nothing.
- Specified by:
exitAssign_op
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterShortVarDecl
public void enterShortVarDecl(GolangParser.ShortVarDeclContext ctx)
Enter a parse tree produced byGolangParser.shortVarDecl()
.The default implementation does nothing.
- Specified by:
enterShortVarDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitShortVarDecl
public void exitShortVarDecl(GolangParser.ShortVarDeclContext ctx)
Exit a parse tree produced byGolangParser.shortVarDecl()
.The default implementation does nothing.
- Specified by:
exitShortVarDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterEmptyStmt
public void enterEmptyStmt(GolangParser.EmptyStmtContext ctx)
Enter a parse tree produced byGolangParser.emptyStmt()
.The default implementation does nothing.
- Specified by:
enterEmptyStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitEmptyStmt
public void exitEmptyStmt(GolangParser.EmptyStmtContext ctx)
Exit a parse tree produced byGolangParser.emptyStmt()
.The default implementation does nothing.
- Specified by:
exitEmptyStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterLabeledStmt
public void enterLabeledStmt(GolangParser.LabeledStmtContext ctx)
Enter a parse tree produced byGolangParser.labeledStmt()
.The default implementation does nothing.
- Specified by:
enterLabeledStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitLabeledStmt
public void exitLabeledStmt(GolangParser.LabeledStmtContext ctx)
Exit a parse tree produced byGolangParser.labeledStmt()
.The default implementation does nothing.
- Specified by:
exitLabeledStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterReturnStmt
public void enterReturnStmt(GolangParser.ReturnStmtContext ctx)
Enter a parse tree produced byGolangParser.returnStmt()
.The default implementation does nothing.
- Specified by:
enterReturnStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitReturnStmt
public void exitReturnStmt(GolangParser.ReturnStmtContext ctx)
Exit a parse tree produced byGolangParser.returnStmt()
.The default implementation does nothing.
- Specified by:
exitReturnStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterBreakStmt
public void enterBreakStmt(GolangParser.BreakStmtContext ctx)
Enter a parse tree produced byGolangParser.breakStmt()
.The default implementation does nothing.
- Specified by:
enterBreakStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitBreakStmt
public void exitBreakStmt(GolangParser.BreakStmtContext ctx)
Exit a parse tree produced byGolangParser.breakStmt()
.The default implementation does nothing.
- Specified by:
exitBreakStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterContinueStmt
public void enterContinueStmt(GolangParser.ContinueStmtContext ctx)
Enter a parse tree produced byGolangParser.continueStmt()
.The default implementation does nothing.
- Specified by:
enterContinueStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitContinueStmt
public void exitContinueStmt(GolangParser.ContinueStmtContext ctx)
Exit a parse tree produced byGolangParser.continueStmt()
.The default implementation does nothing.
- Specified by:
exitContinueStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterGotoStmt
public void enterGotoStmt(GolangParser.GotoStmtContext ctx)
Enter a parse tree produced byGolangParser.gotoStmt()
.The default implementation does nothing.
- Specified by:
enterGotoStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitGotoStmt
public void exitGotoStmt(GolangParser.GotoStmtContext ctx)
Exit a parse tree produced byGolangParser.gotoStmt()
.The default implementation does nothing.
- Specified by:
exitGotoStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterFallthroughStmt
public void enterFallthroughStmt(GolangParser.FallthroughStmtContext ctx)
Enter a parse tree produced byGolangParser.fallthroughStmt()
.The default implementation does nothing.
- Specified by:
enterFallthroughStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitFallthroughStmt
public void exitFallthroughStmt(GolangParser.FallthroughStmtContext ctx)
Exit a parse tree produced byGolangParser.fallthroughStmt()
.The default implementation does nothing.
- Specified by:
exitFallthroughStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterDeferStmt
public void enterDeferStmt(GolangParser.DeferStmtContext ctx)
Enter a parse tree produced byGolangParser.deferStmt()
.The default implementation does nothing.
- Specified by:
enterDeferStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitDeferStmt
public void exitDeferStmt(GolangParser.DeferStmtContext ctx)
Exit a parse tree produced byGolangParser.deferStmt()
.The default implementation does nothing.
- Specified by:
exitDeferStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterIfStmt
public void enterIfStmt(GolangParser.IfStmtContext ctx)
Enter a parse tree produced byGolangParser.ifStmt()
.The default implementation does nothing.
- Specified by:
enterIfStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitIfStmt
public void exitIfStmt(GolangParser.IfStmtContext ctx)
Exit a parse tree produced byGolangParser.ifStmt()
.The default implementation does nothing.
- Specified by:
exitIfStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSwitchStmt
public void enterSwitchStmt(GolangParser.SwitchStmtContext ctx)
Enter a parse tree produced byGolangParser.switchStmt()
.The default implementation does nothing.
- Specified by:
enterSwitchStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSwitchStmt
public void exitSwitchStmt(GolangParser.SwitchStmtContext ctx)
Exit a parse tree produced byGolangParser.switchStmt()
.The default implementation does nothing.
- Specified by:
exitSwitchStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterExprSwitchStmt
public void enterExprSwitchStmt(GolangParser.ExprSwitchStmtContext ctx)
Enter a parse tree produced byGolangParser.exprSwitchStmt()
.The default implementation does nothing.
- Specified by:
enterExprSwitchStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitExprSwitchStmt
public void exitExprSwitchStmt(GolangParser.ExprSwitchStmtContext ctx)
Exit a parse tree produced byGolangParser.exprSwitchStmt()
.The default implementation does nothing.
- Specified by:
exitExprSwitchStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterExprCaseClause
public void enterExprCaseClause(GolangParser.ExprCaseClauseContext ctx)
Enter a parse tree produced byGolangParser.exprCaseClause()
.The default implementation does nothing.
- Specified by:
enterExprCaseClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitExprCaseClause
public void exitExprCaseClause(GolangParser.ExprCaseClauseContext ctx)
Exit a parse tree produced byGolangParser.exprCaseClause()
.The default implementation does nothing.
- Specified by:
exitExprCaseClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterExprSwitchCase
public void enterExprSwitchCase(GolangParser.ExprSwitchCaseContext ctx)
Enter a parse tree produced byGolangParser.exprSwitchCase()
.The default implementation does nothing.
- Specified by:
enterExprSwitchCase
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitExprSwitchCase
public void exitExprSwitchCase(GolangParser.ExprSwitchCaseContext ctx)
Exit a parse tree produced byGolangParser.exprSwitchCase()
.The default implementation does nothing.
- Specified by:
exitExprSwitchCase
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeSwitchStmt
public void enterTypeSwitchStmt(GolangParser.TypeSwitchStmtContext ctx)
Enter a parse tree produced byGolangParser.typeSwitchStmt()
.The default implementation does nothing.
- Specified by:
enterTypeSwitchStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeSwitchStmt
public void exitTypeSwitchStmt(GolangParser.TypeSwitchStmtContext ctx)
Exit a parse tree produced byGolangParser.typeSwitchStmt()
.The default implementation does nothing.
- Specified by:
exitTypeSwitchStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeSwitchGuard
public void enterTypeSwitchGuard(GolangParser.TypeSwitchGuardContext ctx)
Enter a parse tree produced byGolangParser.typeSwitchGuard()
.The default implementation does nothing.
- Specified by:
enterTypeSwitchGuard
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeSwitchGuard
public void exitTypeSwitchGuard(GolangParser.TypeSwitchGuardContext ctx)
Exit a parse tree produced byGolangParser.typeSwitchGuard()
.The default implementation does nothing.
- Specified by:
exitTypeSwitchGuard
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeCaseClause
public void enterTypeCaseClause(GolangParser.TypeCaseClauseContext ctx)
Enter a parse tree produced byGolangParser.typeCaseClause()
.The default implementation does nothing.
- Specified by:
enterTypeCaseClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeCaseClause
public void exitTypeCaseClause(GolangParser.TypeCaseClauseContext ctx)
Exit a parse tree produced byGolangParser.typeCaseClause()
.The default implementation does nothing.
- Specified by:
exitTypeCaseClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeSwitchCase
public void enterTypeSwitchCase(GolangParser.TypeSwitchCaseContext ctx)
Enter a parse tree produced byGolangParser.typeSwitchCase()
.The default implementation does nothing.
- Specified by:
enterTypeSwitchCase
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeSwitchCase
public void exitTypeSwitchCase(GolangParser.TypeSwitchCaseContext ctx)
Exit a parse tree produced byGolangParser.typeSwitchCase()
.The default implementation does nothing.
- Specified by:
exitTypeSwitchCase
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeList
public void enterTypeList(GolangParser.TypeListContext ctx)
Enter a parse tree produced byGolangParser.typeList()
.The default implementation does nothing.
- Specified by:
enterTypeList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeList
public void exitTypeList(GolangParser.TypeListContext ctx)
Exit a parse tree produced byGolangParser.typeList()
.The default implementation does nothing.
- Specified by:
exitTypeList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSelectStmt
public void enterSelectStmt(GolangParser.SelectStmtContext ctx)
Enter a parse tree produced byGolangParser.selectStmt()
.The default implementation does nothing.
- Specified by:
enterSelectStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSelectStmt
public void exitSelectStmt(GolangParser.SelectStmtContext ctx)
Exit a parse tree produced byGolangParser.selectStmt()
.The default implementation does nothing.
- Specified by:
exitSelectStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterCommClause
public void enterCommClause(GolangParser.CommClauseContext ctx)
Enter a parse tree produced byGolangParser.commClause()
.The default implementation does nothing.
- Specified by:
enterCommClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitCommClause
public void exitCommClause(GolangParser.CommClauseContext ctx)
Exit a parse tree produced byGolangParser.commClause()
.The default implementation does nothing.
- Specified by:
exitCommClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterCommCase
public void enterCommCase(GolangParser.CommCaseContext ctx)
Enter a parse tree produced byGolangParser.commCase()
.The default implementation does nothing.
- Specified by:
enterCommCase
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitCommCase
public void exitCommCase(GolangParser.CommCaseContext ctx)
Exit a parse tree produced byGolangParser.commCase()
.The default implementation does nothing.
- Specified by:
exitCommCase
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterRecvStmt
public void enterRecvStmt(GolangParser.RecvStmtContext ctx)
Enter a parse tree produced byGolangParser.recvStmt()
.The default implementation does nothing.
- Specified by:
enterRecvStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitRecvStmt
public void exitRecvStmt(GolangParser.RecvStmtContext ctx)
Exit a parse tree produced byGolangParser.recvStmt()
.The default implementation does nothing.
- Specified by:
exitRecvStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterForStmt
public void enterForStmt(GolangParser.ForStmtContext ctx)
Enter a parse tree produced byGolangParser.forStmt()
.The default implementation does nothing.
- Specified by:
enterForStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitForStmt
public void exitForStmt(GolangParser.ForStmtContext ctx)
Exit a parse tree produced byGolangParser.forStmt()
.The default implementation does nothing.
- Specified by:
exitForStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterForClause
public void enterForClause(GolangParser.ForClauseContext ctx)
Enter a parse tree produced byGolangParser.forClause()
.The default implementation does nothing.
- Specified by:
enterForClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitForClause
public void exitForClause(GolangParser.ForClauseContext ctx)
Exit a parse tree produced byGolangParser.forClause()
.The default implementation does nothing.
- Specified by:
exitForClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterRangeClause
public void enterRangeClause(GolangParser.RangeClauseContext ctx)
Enter a parse tree produced byGolangParser.rangeClause()
.The default implementation does nothing.
- Specified by:
enterRangeClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitRangeClause
public void exitRangeClause(GolangParser.RangeClauseContext ctx)
Exit a parse tree produced byGolangParser.rangeClause()
.The default implementation does nothing.
- Specified by:
exitRangeClause
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterGoStmt
public void enterGoStmt(GolangParser.GoStmtContext ctx)
Enter a parse tree produced byGolangParser.goStmt()
.The default implementation does nothing.
- Specified by:
enterGoStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitGoStmt
public void exitGoStmt(GolangParser.GoStmtContext ctx)
Exit a parse tree produced byGolangParser.goStmt()
.The default implementation does nothing.
- Specified by:
exitGoStmt
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterType
public void enterType(GolangParser.TypeContext ctx)
Enter a parse tree produced byGolangParser.type()
.The default implementation does nothing.
- Specified by:
enterType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitType
public void exitType(GolangParser.TypeContext ctx)
Exit a parse tree produced byGolangParser.type()
.The default implementation does nothing.
- Specified by:
exitType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeName
public void enterTypeName(GolangParser.TypeNameContext ctx)
Enter a parse tree produced byGolangParser.typeName()
.The default implementation does nothing.
- Specified by:
enterTypeName
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeName
public void exitTypeName(GolangParser.TypeNameContext ctx)
Exit a parse tree produced byGolangParser.typeName()
.The default implementation does nothing.
- Specified by:
exitTypeName
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeLit
public void enterTypeLit(GolangParser.TypeLitContext ctx)
Enter a parse tree produced byGolangParser.typeLit()
.The default implementation does nothing.
- Specified by:
enterTypeLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeLit
public void exitTypeLit(GolangParser.TypeLitContext ctx)
Exit a parse tree produced byGolangParser.typeLit()
.The default implementation does nothing.
- Specified by:
exitTypeLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterArrayType
public void enterArrayType(GolangParser.ArrayTypeContext ctx)
Enter a parse tree produced byGolangParser.arrayType()
.The default implementation does nothing.
- Specified by:
enterArrayType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitArrayType
public void exitArrayType(GolangParser.ArrayTypeContext ctx)
Exit a parse tree produced byGolangParser.arrayType()
.The default implementation does nothing.
- Specified by:
exitArrayType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterArrayLength
public void enterArrayLength(GolangParser.ArrayLengthContext ctx)
Enter a parse tree produced byGolangParser.arrayLength()
.The default implementation does nothing.
- Specified by:
enterArrayLength
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitArrayLength
public void exitArrayLength(GolangParser.ArrayLengthContext ctx)
Exit a parse tree produced byGolangParser.arrayLength()
.The default implementation does nothing.
- Specified by:
exitArrayLength
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterElementType
public void enterElementType(GolangParser.ElementTypeContext ctx)
Enter a parse tree produced byGolangParser.elementType()
.The default implementation does nothing.
- Specified by:
enterElementType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitElementType
public void exitElementType(GolangParser.ElementTypeContext ctx)
Exit a parse tree produced byGolangParser.elementType()
.The default implementation does nothing.
- Specified by:
exitElementType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterPointerType
public void enterPointerType(GolangParser.PointerTypeContext ctx)
Enter a parse tree produced byGolangParser.pointerType()
.The default implementation does nothing.
- Specified by:
enterPointerType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitPointerType
public void exitPointerType(GolangParser.PointerTypeContext ctx)
Exit a parse tree produced byGolangParser.pointerType()
.The default implementation does nothing.
- Specified by:
exitPointerType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterInterfaceType
public void enterInterfaceType(GolangParser.InterfaceTypeContext ctx)
Enter a parse tree produced byGolangParser.interfaceType()
.The default implementation does nothing.
- Specified by:
enterInterfaceType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitInterfaceType
public void exitInterfaceType(GolangParser.InterfaceTypeContext ctx)
Exit a parse tree produced byGolangParser.interfaceType()
.The default implementation does nothing.
- Specified by:
exitInterfaceType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSliceType
public void enterSliceType(GolangParser.SliceTypeContext ctx)
Enter a parse tree produced byGolangParser.sliceType()
.The default implementation does nothing.
- Specified by:
enterSliceType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSliceType
public void exitSliceType(GolangParser.SliceTypeContext ctx)
Exit a parse tree produced byGolangParser.sliceType()
.The default implementation does nothing.
- Specified by:
exitSliceType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterMapType
public void enterMapType(GolangParser.MapTypeContext ctx)
Enter a parse tree produced byGolangParser.mapType()
.The default implementation does nothing.
- Specified by:
enterMapType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitMapType
public void exitMapType(GolangParser.MapTypeContext ctx)
Exit a parse tree produced byGolangParser.mapType()
.The default implementation does nothing.
- Specified by:
exitMapType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterChannelType
public void enterChannelType(GolangParser.ChannelTypeContext ctx)
Enter a parse tree produced byGolangParser.channelType()
.The default implementation does nothing.
- Specified by:
enterChannelType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitChannelType
public void exitChannelType(GolangParser.ChannelTypeContext ctx)
Exit a parse tree produced byGolangParser.channelType()
.The default implementation does nothing.
- Specified by:
exitChannelType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterMethodSpec
public void enterMethodSpec(GolangParser.MethodSpecContext ctx)
Enter a parse tree produced byGolangParser.methodSpec()
.The default implementation does nothing.
- Specified by:
enterMethodSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitMethodSpec
public void exitMethodSpec(GolangParser.MethodSpecContext ctx)
Exit a parse tree produced byGolangParser.methodSpec()
.The default implementation does nothing.
- Specified by:
exitMethodSpec
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterFunctionType
public void enterFunctionType(GolangParser.FunctionTypeContext ctx)
Enter a parse tree produced byGolangParser.functionType()
.The default implementation does nothing.
- Specified by:
enterFunctionType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitFunctionType
public void exitFunctionType(GolangParser.FunctionTypeContext ctx)
Exit a parse tree produced byGolangParser.functionType()
.The default implementation does nothing.
- Specified by:
exitFunctionType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSignature
public void enterSignature(GolangParser.SignatureContext ctx)
Enter a parse tree produced byGolangParser.signature()
.The default implementation does nothing.
- Specified by:
enterSignature
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSignature
public void exitSignature(GolangParser.SignatureContext ctx)
Exit a parse tree produced byGolangParser.signature()
.The default implementation does nothing.
- Specified by:
exitSignature
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterResult
public void enterResult(GolangParser.ResultContext ctx)
Enter a parse tree produced byGolangParser.result()
.The default implementation does nothing.
- Specified by:
enterResult
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitResult
public void exitResult(GolangParser.ResultContext ctx)
Exit a parse tree produced byGolangParser.result()
.The default implementation does nothing.
- Specified by:
exitResult
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterParameters
public void enterParameters(GolangParser.ParametersContext ctx)
Enter a parse tree produced byGolangParser.parameters()
.The default implementation does nothing.
- Specified by:
enterParameters
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitParameters
public void exitParameters(GolangParser.ParametersContext ctx)
Exit a parse tree produced byGolangParser.parameters()
.The default implementation does nothing.
- Specified by:
exitParameters
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterParameterList
public void enterParameterList(GolangParser.ParameterListContext ctx)
Enter a parse tree produced byGolangParser.parameterList()
.The default implementation does nothing.
- Specified by:
enterParameterList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitParameterList
public void exitParameterList(GolangParser.ParameterListContext ctx)
Exit a parse tree produced byGolangParser.parameterList()
.The default implementation does nothing.
- Specified by:
exitParameterList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterParameterDecl
public void enterParameterDecl(GolangParser.ParameterDeclContext ctx)
Enter a parse tree produced byGolangParser.parameterDecl()
.The default implementation does nothing.
- Specified by:
enterParameterDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitParameterDecl
public void exitParameterDecl(GolangParser.ParameterDeclContext ctx)
Exit a parse tree produced byGolangParser.parameterDecl()
.The default implementation does nothing.
- Specified by:
exitParameterDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterOperand
public void enterOperand(GolangParser.OperandContext ctx)
Enter a parse tree produced byGolangParser.operand()
.The default implementation does nothing.
- Specified by:
enterOperand
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitOperand
public void exitOperand(GolangParser.OperandContext ctx)
Exit a parse tree produced byGolangParser.operand()
.The default implementation does nothing.
- Specified by:
exitOperand
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterLiteral
public void enterLiteral(GolangParser.LiteralContext ctx)
Enter a parse tree produced byGolangParser.literal()
.The default implementation does nothing.
- Specified by:
enterLiteral
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitLiteral
public void exitLiteral(GolangParser.LiteralContext ctx)
Exit a parse tree produced byGolangParser.literal()
.The default implementation does nothing.
- Specified by:
exitLiteral
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterBasicLit
public void enterBasicLit(GolangParser.BasicLitContext ctx)
Enter a parse tree produced byGolangParser.basicLit()
.The default implementation does nothing.
- Specified by:
enterBasicLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitBasicLit
public void exitBasicLit(GolangParser.BasicLitContext ctx)
Exit a parse tree produced byGolangParser.basicLit()
.The default implementation does nothing.
- Specified by:
exitBasicLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterOperandName
public void enterOperandName(GolangParser.OperandNameContext ctx)
Enter a parse tree produced byGolangParser.operandName()
.The default implementation does nothing.
- Specified by:
enterOperandName
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitOperandName
public void exitOperandName(GolangParser.OperandNameContext ctx)
Exit a parse tree produced byGolangParser.operandName()
.The default implementation does nothing.
- Specified by:
exitOperandName
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterQualifiedIdent
public void enterQualifiedIdent(GolangParser.QualifiedIdentContext ctx)
Enter a parse tree produced byGolangParser.qualifiedIdent()
.The default implementation does nothing.
- Specified by:
enterQualifiedIdent
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitQualifiedIdent
public void exitQualifiedIdent(GolangParser.QualifiedIdentContext ctx)
Exit a parse tree produced byGolangParser.qualifiedIdent()
.The default implementation does nothing.
- Specified by:
exitQualifiedIdent
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterCompositeLit
public void enterCompositeLit(GolangParser.CompositeLitContext ctx)
Enter a parse tree produced byGolangParser.compositeLit()
.The default implementation does nothing.
- Specified by:
enterCompositeLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitCompositeLit
public void exitCompositeLit(GolangParser.CompositeLitContext ctx)
Exit a parse tree produced byGolangParser.compositeLit()
.The default implementation does nothing.
- Specified by:
exitCompositeLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterLiteralType
public void enterLiteralType(GolangParser.LiteralTypeContext ctx)
Enter a parse tree produced byGolangParser.literalType()
.The default implementation does nothing.
- Specified by:
enterLiteralType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitLiteralType
public void exitLiteralType(GolangParser.LiteralTypeContext ctx)
Exit a parse tree produced byGolangParser.literalType()
.The default implementation does nothing.
- Specified by:
exitLiteralType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterLiteralValue
public void enterLiteralValue(GolangParser.LiteralValueContext ctx)
Enter a parse tree produced byGolangParser.literalValue()
.The default implementation does nothing.
- Specified by:
enterLiteralValue
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitLiteralValue
public void exitLiteralValue(GolangParser.LiteralValueContext ctx)
Exit a parse tree produced byGolangParser.literalValue()
.The default implementation does nothing.
- Specified by:
exitLiteralValue
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterElementList
public void enterElementList(GolangParser.ElementListContext ctx)
Enter a parse tree produced byGolangParser.elementList()
.The default implementation does nothing.
- Specified by:
enterElementList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitElementList
public void exitElementList(GolangParser.ElementListContext ctx)
Exit a parse tree produced byGolangParser.elementList()
.The default implementation does nothing.
- Specified by:
exitElementList
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterKeyedElement
public void enterKeyedElement(GolangParser.KeyedElementContext ctx)
Enter a parse tree produced byGolangParser.keyedElement()
.The default implementation does nothing.
- Specified by:
enterKeyedElement
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitKeyedElement
public void exitKeyedElement(GolangParser.KeyedElementContext ctx)
Exit a parse tree produced byGolangParser.keyedElement()
.The default implementation does nothing.
- Specified by:
exitKeyedElement
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterKey
public void enterKey(GolangParser.KeyContext ctx)
Enter a parse tree produced byGolangParser.key()
.The default implementation does nothing.
- Specified by:
enterKey
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitKey
public void exitKey(GolangParser.KeyContext ctx)
Exit a parse tree produced byGolangParser.key()
.The default implementation does nothing.
- Specified by:
exitKey
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterElement
public void enterElement(GolangParser.ElementContext ctx)
Enter a parse tree produced byGolangParser.element()
.The default implementation does nothing.
- Specified by:
enterElement
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitElement
public void exitElement(GolangParser.ElementContext ctx)
Exit a parse tree produced byGolangParser.element()
.The default implementation does nothing.
- Specified by:
exitElement
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterStructType
public void enterStructType(GolangParser.StructTypeContext ctx)
Enter a parse tree produced byGolangParser.structType()
.The default implementation does nothing.
- Specified by:
enterStructType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitStructType
public void exitStructType(GolangParser.StructTypeContext ctx)
Exit a parse tree produced byGolangParser.structType()
.The default implementation does nothing.
- Specified by:
exitStructType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterFieldDecl
public void enterFieldDecl(GolangParser.FieldDeclContext ctx)
Enter a parse tree produced byGolangParser.fieldDecl()
.The default implementation does nothing.
- Specified by:
enterFieldDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitFieldDecl
public void exitFieldDecl(GolangParser.FieldDeclContext ctx)
Exit a parse tree produced byGolangParser.fieldDecl()
.The default implementation does nothing.
- Specified by:
exitFieldDecl
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterAnonymousField
public void enterAnonymousField(GolangParser.AnonymousFieldContext ctx)
Enter a parse tree produced byGolangParser.anonymousField()
.The default implementation does nothing.
- Specified by:
enterAnonymousField
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitAnonymousField
public void exitAnonymousField(GolangParser.AnonymousFieldContext ctx)
Exit a parse tree produced byGolangParser.anonymousField()
.The default implementation does nothing.
- Specified by:
exitAnonymousField
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterFunctionLit
public void enterFunctionLit(GolangParser.FunctionLitContext ctx)
Enter a parse tree produced byGolangParser.functionLit()
.The default implementation does nothing.
- Specified by:
enterFunctionLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitFunctionLit
public void exitFunctionLit(GolangParser.FunctionLitContext ctx)
Exit a parse tree produced byGolangParser.functionLit()
.The default implementation does nothing.
- Specified by:
exitFunctionLit
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterPrimaryExpr
public void enterPrimaryExpr(GolangParser.PrimaryExprContext ctx)
Enter a parse tree produced byGolangParser.primaryExpr()
.The default implementation does nothing.
- Specified by:
enterPrimaryExpr
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitPrimaryExpr
public void exitPrimaryExpr(GolangParser.PrimaryExprContext ctx)
Exit a parse tree produced byGolangParser.primaryExpr()
.The default implementation does nothing.
- Specified by:
exitPrimaryExpr
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSelector
public void enterSelector(GolangParser.SelectorContext ctx)
Enter a parse tree produced byGolangParser.selector()
.The default implementation does nothing.
- Specified by:
enterSelector
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSelector
public void exitSelector(GolangParser.SelectorContext ctx)
Exit a parse tree produced byGolangParser.selector()
.The default implementation does nothing.
- Specified by:
exitSelector
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterIndex
public void enterIndex(GolangParser.IndexContext ctx)
Enter a parse tree produced byGolangParser.index()
.The default implementation does nothing.
- Specified by:
enterIndex
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitIndex
public void exitIndex(GolangParser.IndexContext ctx)
Exit a parse tree produced byGolangParser.index()
.The default implementation does nothing.
- Specified by:
exitIndex
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterSlice
public void enterSlice(GolangParser.SliceContext ctx)
Enter a parse tree produced byGolangParser.slice()
.The default implementation does nothing.
- Specified by:
enterSlice
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitSlice
public void exitSlice(GolangParser.SliceContext ctx)
Exit a parse tree produced byGolangParser.slice()
.The default implementation does nothing.
- Specified by:
exitSlice
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterTypeAssertion
public void enterTypeAssertion(GolangParser.TypeAssertionContext ctx)
Enter a parse tree produced byGolangParser.typeAssertion()
.The default implementation does nothing.
- Specified by:
enterTypeAssertion
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitTypeAssertion
public void exitTypeAssertion(GolangParser.TypeAssertionContext ctx)
Exit a parse tree produced byGolangParser.typeAssertion()
.The default implementation does nothing.
- Specified by:
exitTypeAssertion
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterArguments
public void enterArguments(GolangParser.ArgumentsContext ctx)
Enter a parse tree produced byGolangParser.arguments()
.The default implementation does nothing.
- Specified by:
enterArguments
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitArguments
public void exitArguments(GolangParser.ArgumentsContext ctx)
Exit a parse tree produced byGolangParser.arguments()
.The default implementation does nothing.
- Specified by:
exitArguments
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterMethodExpr
public void enterMethodExpr(GolangParser.MethodExprContext ctx)
Enter a parse tree produced byGolangParser.methodExpr()
.The default implementation does nothing.
- Specified by:
enterMethodExpr
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitMethodExpr
public void exitMethodExpr(GolangParser.MethodExprContext ctx)
Exit a parse tree produced byGolangParser.methodExpr()
.The default implementation does nothing.
- Specified by:
exitMethodExpr
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterReceiverType
public void enterReceiverType(GolangParser.ReceiverTypeContext ctx)
Enter a parse tree produced byGolangParser.receiverType()
.The default implementation does nothing.
- Specified by:
enterReceiverType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitReceiverType
public void exitReceiverType(GolangParser.ReceiverTypeContext ctx)
Exit a parse tree produced byGolangParser.receiverType()
.The default implementation does nothing.
- Specified by:
exitReceiverType
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterExpression
public void enterExpression(GolangParser.ExpressionContext ctx)
Enter a parse tree produced byGolangParser.expression()
.The default implementation does nothing.
- Specified by:
enterExpression
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitExpression
public void exitExpression(GolangParser.ExpressionContext ctx)
Exit a parse tree produced byGolangParser.expression()
.The default implementation does nothing.
- Specified by:
exitExpression
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterUnaryExpr
public void enterUnaryExpr(GolangParser.UnaryExprContext ctx)
Enter a parse tree produced byGolangParser.unaryExpr()
.The default implementation does nothing.
- Specified by:
enterUnaryExpr
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitUnaryExpr
public void exitUnaryExpr(GolangParser.UnaryExprContext ctx)
Exit a parse tree produced byGolangParser.unaryExpr()
.The default implementation does nothing.
- Specified by:
exitUnaryExpr
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterConversion
public void enterConversion(GolangParser.ConversionContext ctx)
Enter a parse tree produced byGolangParser.conversion()
.The default implementation does nothing.
- Specified by:
enterConversion
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitConversion
public void exitConversion(GolangParser.ConversionContext ctx)
Exit a parse tree produced byGolangParser.conversion()
.The default implementation does nothing.
- Specified by:
exitConversion
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterEos
public void enterEos(GolangParser.EosContext ctx)
Enter a parse tree produced byGolangParser.eos()
.The default implementation does nothing.
- Specified by:
enterEos
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
exitEos
public void exitEos(GolangParser.EosContext ctx)
Exit a parse tree produced byGolangParser.eos()
.The default implementation does nothing.
- Specified by:
exitEos
in interfaceGolangListener
- Parameters:
ctx
- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
enterEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
exitEveryRule
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
The default implementation does nothing.
- Specified by:
visitTerminal
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
The default implementation does nothing.
- Specified by:
visitErrorNode
in interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
-