Class GolangParser
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
- org.antlr.v4.runtime.Parser
-
- net.sourceforge.pmd.lang.go.antlr4.GolangParser
-
public class GolangParser extends org.antlr.v4.runtime.Parser
-
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.antlr.v4.runtime.atn.ATN
_ATN
protected static org.antlr.v4.runtime.dfa.DFA[]
_decisionToDFA
static String
_serializedATN
protected static org.antlr.v4.runtime.atn.PredictionContextCache
_sharedContextCache
static int
BIG_U_VALUE
static int
BINARY_OP
static int
COMMENT
static int
FLOAT_LIT
static int
IDENTIFIER
static int
IMAGINARY_LIT
static int
INT_LIT
static int
KEYWORD
static int
LINE_COMMENT
static int
LITTLE_U_VALUE
static int
RULE_anonymousField
static int
RULE_arguments
static int
RULE_arrayLength
static int
RULE_arrayType
static int
RULE_assign_op
static int
RULE_assignment
static int
RULE_basicLit
static int
RULE_block
static int
RULE_breakStmt
static int
RULE_channelType
static int
RULE_commCase
static int
RULE_commClause
static int
RULE_compositeLit
static int
RULE_constDecl
static int
RULE_constSpec
static int
RULE_continueStmt
static int
RULE_conversion
static int
RULE_declaration
static int
RULE_deferStmt
static int
RULE_element
static int
RULE_elementList
static int
RULE_elementType
static int
RULE_emptyStmt
static int
RULE_eos
static int
RULE_exprCaseClause
static int
RULE_expression
static int
RULE_expressionList
static int
RULE_expressionStmt
static int
RULE_exprSwitchCase
static int
RULE_exprSwitchStmt
static int
RULE_fallthroughStmt
static int
RULE_fieldDecl
static int
RULE_forClause
static int
RULE_forStmt
static int
RULE_function
static int
RULE_functionDecl
static int
RULE_functionLit
static int
RULE_functionType
static int
RULE_goStmt
static int
RULE_gotoStmt
static int
RULE_identifierList
static int
RULE_ifStmt
static int
RULE_importDecl
static int
RULE_importPath
static int
RULE_importSpec
static int
RULE_incDecStmt
static int
RULE_index
static int
RULE_interfaceType
static int
RULE_key
static int
RULE_keyedElement
static int
RULE_labeledStmt
static int
RULE_literal
static int
RULE_literalType
static int
RULE_literalValue
static int
RULE_mapType
static int
RULE_methodDecl
static int
RULE_methodExpr
static int
RULE_methodSpec
static int
RULE_operand
static int
RULE_operandName
static int
RULE_packageClause
static int
RULE_parameterDecl
static int
RULE_parameterList
static int
RULE_parameters
static int
RULE_pointerType
static int
RULE_primaryExpr
static int
RULE_qualifiedIdent
static int
RULE_rangeClause
static int
RULE_receiver
static int
RULE_receiverType
static int
RULE_recvStmt
static int
RULE_result
static int
RULE_returnStmt
static int
RULE_selector
static int
RULE_selectStmt
static int
RULE_sendStmt
static int
RULE_shortVarDecl
static int
RULE_signature
static int
RULE_simpleStmt
static int
RULE_slice
static int
RULE_sliceType
static int
RULE_sourceFile
static int
RULE_statement
static int
RULE_statementList
static int
RULE_structType
static int
RULE_switchStmt
static int
RULE_topLevelDecl
static int
RULE_type
static int
RULE_typeAssertion
static int
RULE_typeCaseClause
static int
RULE_typeDecl
static int
RULE_typeList
static int
RULE_typeLit
static int
RULE_typeName
static int
RULE_typeSpec
static int
RULE_typeSwitchCase
static int
RULE_typeSwitchGuard
static int
RULE_typeSwitchStmt
static int
RULE_unaryExpr
static int
RULE_varDecl
static int
RULE_varSpec
static String[]
ruleNames
static int
RUNE_LIT
static int
STRING_LIT
static int
T__0
static int
T__1
static int
T__10
static int
T__11
static int
T__12
static int
T__13
static int
T__14
static int
T__15
static int
T__16
static int
T__17
static int
T__18
static int
T__19
static int
T__2
static int
T__20
static int
T__21
static int
T__22
static int
T__23
static int
T__24
static int
T__25
static int
T__26
static int
T__27
static int
T__28
static int
T__29
static int
T__3
static int
T__30
static int
T__31
static int
T__32
static int
T__33
static int
T__34
static int
T__35
static int
T__36
static int
T__37
static int
T__38
static int
T__39
static int
T__4
static int
T__40
static int
T__41
static int
T__42
static int
T__43
static int
T__44
static int
T__45
static int
T__46
static int
T__47
static int
T__48
static int
T__49
static int
T__5
static int
T__50
static int
T__51
static int
T__52
static int
T__53
static int
T__54
static int
T__55
static int
T__56
static int
T__57
static int
T__58
static int
T__59
static int
T__6
static int
T__60
static int
T__7
static int
T__8
static int
T__9
static int
TERMINATOR
static String[]
tokenNames
Deprecated.UseVOCABULARY
instead.static org.antlr.v4.runtime.Vocabulary
VOCABULARY
static int
WS
-
Constructor Summary
Constructors Constructor Description GolangParser(org.antlr.v4.runtime.TokenStream input)
-
Method Summary
-
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContexts
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
-
_sharedContextCache
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
-
T__0
public static final int T__0
- See Also:
- Constant Field Values
-
T__1
public static final int T__1
- See Also:
- Constant Field Values
-
T__2
public static final int T__2
- See Also:
- Constant Field Values
-
T__3
public static final int T__3
- See Also:
- Constant Field Values
-
T__4
public static final int T__4
- See Also:
- Constant Field Values
-
T__5
public static final int T__5
- See Also:
- Constant Field Values
-
T__6
public static final int T__6
- See Also:
- Constant Field Values
-
T__7
public static final int T__7
- See Also:
- Constant Field Values
-
T__8
public static final int T__8
- See Also:
- Constant Field Values
-
T__9
public static final int T__9
- See Also:
- Constant Field Values
-
T__10
public static final int T__10
- See Also:
- Constant Field Values
-
T__11
public static final int T__11
- See Also:
- Constant Field Values
-
T__12
public static final int T__12
- See Also:
- Constant Field Values
-
T__13
public static final int T__13
- See Also:
- Constant Field Values
-
T__14
public static final int T__14
- See Also:
- Constant Field Values
-
T__15
public static final int T__15
- See Also:
- Constant Field Values
-
T__16
public static final int T__16
- See Also:
- Constant Field Values
-
T__17
public static final int T__17
- See Also:
- Constant Field Values
-
T__18
public static final int T__18
- See Also:
- Constant Field Values
-
T__19
public static final int T__19
- See Also:
- Constant Field Values
-
T__20
public static final int T__20
- See Also:
- Constant Field Values
-
T__21
public static final int T__21
- See Also:
- Constant Field Values
-
T__22
public static final int T__22
- See Also:
- Constant Field Values
-
T__23
public static final int T__23
- See Also:
- Constant Field Values
-
T__24
public static final int T__24
- See Also:
- Constant Field Values
-
T__25
public static final int T__25
- See Also:
- Constant Field Values
-
T__26
public static final int T__26
- See Also:
- Constant Field Values
-
T__27
public static final int T__27
- See Also:
- Constant Field Values
-
T__28
public static final int T__28
- See Also:
- Constant Field Values
-
T__29
public static final int T__29
- See Also:
- Constant Field Values
-
T__30
public static final int T__30
- See Also:
- Constant Field Values
-
T__31
public static final int T__31
- See Also:
- Constant Field Values
-
T__32
public static final int T__32
- See Also:
- Constant Field Values
-
T__33
public static final int T__33
- See Also:
- Constant Field Values
-
T__34
public static final int T__34
- See Also:
- Constant Field Values
-
T__35
public static final int T__35
- See Also:
- Constant Field Values
-
T__36
public static final int T__36
- See Also:
- Constant Field Values
-
T__37
public static final int T__37
- See Also:
- Constant Field Values
-
T__38
public static final int T__38
- See Also:
- Constant Field Values
-
T__39
public static final int T__39
- See Also:
- Constant Field Values
-
T__40
public static final int T__40
- See Also:
- Constant Field Values
-
T__41
public static final int T__41
- See Also:
- Constant Field Values
-
T__42
public static final int T__42
- See Also:
- Constant Field Values
-
T__43
public static final int T__43
- See Also:
- Constant Field Values
-
T__44
public static final int T__44
- See Also:
- Constant Field Values
-
T__45
public static final int T__45
- See Also:
- Constant Field Values
-
T__46
public static final int T__46
- See Also:
- Constant Field Values
-
T__47
public static final int T__47
- See Also:
- Constant Field Values
-
T__48
public static final int T__48
- See Also:
- Constant Field Values
-
T__49
public static final int T__49
- See Also:
- Constant Field Values
-
T__50
public static final int T__50
- See Also:
- Constant Field Values
-
T__51
public static final int T__51
- See Also:
- Constant Field Values
-
T__52
public static final int T__52
- See Also:
- Constant Field Values
-
T__53
public static final int T__53
- See Also:
- Constant Field Values
-
T__54
public static final int T__54
- See Also:
- Constant Field Values
-
T__55
public static final int T__55
- See Also:
- Constant Field Values
-
T__56
public static final int T__56
- See Also:
- Constant Field Values
-
T__57
public static final int T__57
- See Also:
- Constant Field Values
-
T__58
public static final int T__58
- See Also:
- Constant Field Values
-
T__59
public static final int T__59
- See Also:
- Constant Field Values
-
T__60
public static final int T__60
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final int IDENTIFIER
- See Also:
- Constant Field Values
-
KEYWORD
public static final int KEYWORD
- See Also:
- Constant Field Values
-
BINARY_OP
public static final int BINARY_OP
- See Also:
- Constant Field Values
-
INT_LIT
public static final int INT_LIT
- See Also:
- Constant Field Values
-
FLOAT_LIT
public static final int FLOAT_LIT
- See Also:
- Constant Field Values
-
IMAGINARY_LIT
public static final int IMAGINARY_LIT
- See Also:
- Constant Field Values
-
RUNE_LIT
public static final int RUNE_LIT
- See Also:
- Constant Field Values
-
LITTLE_U_VALUE
public static final int LITTLE_U_VALUE
- See Also:
- Constant Field Values
-
BIG_U_VALUE
public static final int BIG_U_VALUE
- See Also:
- Constant Field Values
-
STRING_LIT
public static final int STRING_LIT
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
-
TERMINATOR
public static final int TERMINATOR
- See Also:
- Constant Field Values
-
LINE_COMMENT
public static final int LINE_COMMENT
- See Also:
- Constant Field Values
-
RULE_sourceFile
public static final int RULE_sourceFile
- See Also:
- Constant Field Values
-
RULE_packageClause
public static final int RULE_packageClause
- See Also:
- Constant Field Values
-
RULE_importDecl
public static final int RULE_importDecl
- See Also:
- Constant Field Values
-
RULE_importSpec
public static final int RULE_importSpec
- See Also:
- Constant Field Values
-
RULE_importPath
public static final int RULE_importPath
- See Also:
- Constant Field Values
-
RULE_topLevelDecl
public static final int RULE_topLevelDecl
- See Also:
- Constant Field Values
-
RULE_declaration
public static final int RULE_declaration
- See Also:
- Constant Field Values
-
RULE_constDecl
public static final int RULE_constDecl
- See Also:
- Constant Field Values
-
RULE_constSpec
public static final int RULE_constSpec
- See Also:
- Constant Field Values
-
RULE_identifierList
public static final int RULE_identifierList
- See Also:
- Constant Field Values
-
RULE_expressionList
public static final int RULE_expressionList
- See Also:
- Constant Field Values
-
RULE_typeDecl
public static final int RULE_typeDecl
- See Also:
- Constant Field Values
-
RULE_typeSpec
public static final int RULE_typeSpec
- See Also:
- Constant Field Values
-
RULE_functionDecl
public static final int RULE_functionDecl
- See Also:
- Constant Field Values
-
RULE_function
public static final int RULE_function
- See Also:
- Constant Field Values
-
RULE_methodDecl
public static final int RULE_methodDecl
- See Also:
- Constant Field Values
-
RULE_receiver
public static final int RULE_receiver
- See Also:
- Constant Field Values
-
RULE_varDecl
public static final int RULE_varDecl
- See Also:
- Constant Field Values
-
RULE_varSpec
public static final int RULE_varSpec
- See Also:
- Constant Field Values
-
RULE_block
public static final int RULE_block
- See Also:
- Constant Field Values
-
RULE_statementList
public static final int RULE_statementList
- See Also:
- Constant Field Values
-
RULE_statement
public static final int RULE_statement
- See Also:
- Constant Field Values
-
RULE_simpleStmt
public static final int RULE_simpleStmt
- See Also:
- Constant Field Values
-
RULE_expressionStmt
public static final int RULE_expressionStmt
- See Also:
- Constant Field Values
-
RULE_sendStmt
public static final int RULE_sendStmt
- See Also:
- Constant Field Values
-
RULE_incDecStmt
public static final int RULE_incDecStmt
- See Also:
- Constant Field Values
-
RULE_assignment
public static final int RULE_assignment
- See Also:
- Constant Field Values
-
RULE_assign_op
public static final int RULE_assign_op
- See Also:
- Constant Field Values
-
RULE_shortVarDecl
public static final int RULE_shortVarDecl
- See Also:
- Constant Field Values
-
RULE_emptyStmt
public static final int RULE_emptyStmt
- See Also:
- Constant Field Values
-
RULE_labeledStmt
public static final int RULE_labeledStmt
- See Also:
- Constant Field Values
-
RULE_returnStmt
public static final int RULE_returnStmt
- See Also:
- Constant Field Values
-
RULE_breakStmt
public static final int RULE_breakStmt
- See Also:
- Constant Field Values
-
RULE_continueStmt
public static final int RULE_continueStmt
- See Also:
- Constant Field Values
-
RULE_gotoStmt
public static final int RULE_gotoStmt
- See Also:
- Constant Field Values
-
RULE_fallthroughStmt
public static final int RULE_fallthroughStmt
- See Also:
- Constant Field Values
-
RULE_deferStmt
public static final int RULE_deferStmt
- See Also:
- Constant Field Values
-
RULE_ifStmt
public static final int RULE_ifStmt
- See Also:
- Constant Field Values
-
RULE_switchStmt
public static final int RULE_switchStmt
- See Also:
- Constant Field Values
-
RULE_exprSwitchStmt
public static final int RULE_exprSwitchStmt
- See Also:
- Constant Field Values
-
RULE_exprCaseClause
public static final int RULE_exprCaseClause
- See Also:
- Constant Field Values
-
RULE_exprSwitchCase
public static final int RULE_exprSwitchCase
- See Also:
- Constant Field Values
-
RULE_typeSwitchStmt
public static final int RULE_typeSwitchStmt
- See Also:
- Constant Field Values
-
RULE_typeSwitchGuard
public static final int RULE_typeSwitchGuard
- See Also:
- Constant Field Values
-
RULE_typeCaseClause
public static final int RULE_typeCaseClause
- See Also:
- Constant Field Values
-
RULE_typeSwitchCase
public static final int RULE_typeSwitchCase
- See Also:
- Constant Field Values
-
RULE_typeList
public static final int RULE_typeList
- See Also:
- Constant Field Values
-
RULE_selectStmt
public static final int RULE_selectStmt
- See Also:
- Constant Field Values
-
RULE_commClause
public static final int RULE_commClause
- See Also:
- Constant Field Values
-
RULE_commCase
public static final int RULE_commCase
- See Also:
- Constant Field Values
-
RULE_recvStmt
public static final int RULE_recvStmt
- See Also:
- Constant Field Values
-
RULE_forStmt
public static final int RULE_forStmt
- See Also:
- Constant Field Values
-
RULE_forClause
public static final int RULE_forClause
- See Also:
- Constant Field Values
-
RULE_rangeClause
public static final int RULE_rangeClause
- See Also:
- Constant Field Values
-
RULE_goStmt
public static final int RULE_goStmt
- See Also:
- Constant Field Values
-
RULE_type
public static final int RULE_type
- See Also:
- Constant Field Values
-
RULE_typeName
public static final int RULE_typeName
- See Also:
- Constant Field Values
-
RULE_typeLit
public static final int RULE_typeLit
- See Also:
- Constant Field Values
-
RULE_arrayType
public static final int RULE_arrayType
- See Also:
- Constant Field Values
-
RULE_arrayLength
public static final int RULE_arrayLength
- See Also:
- Constant Field Values
-
RULE_elementType
public static final int RULE_elementType
- See Also:
- Constant Field Values
-
RULE_pointerType
public static final int RULE_pointerType
- See Also:
- Constant Field Values
-
RULE_interfaceType
public static final int RULE_interfaceType
- See Also:
- Constant Field Values
-
RULE_sliceType
public static final int RULE_sliceType
- See Also:
- Constant Field Values
-
RULE_mapType
public static final int RULE_mapType
- See Also:
- Constant Field Values
-
RULE_channelType
public static final int RULE_channelType
- See Also:
- Constant Field Values
-
RULE_methodSpec
public static final int RULE_methodSpec
- See Also:
- Constant Field Values
-
RULE_functionType
public static final int RULE_functionType
- See Also:
- Constant Field Values
-
RULE_signature
public static final int RULE_signature
- See Also:
- Constant Field Values
-
RULE_result
public static final int RULE_result
- See Also:
- Constant Field Values
-
RULE_parameters
public static final int RULE_parameters
- See Also:
- Constant Field Values
-
RULE_parameterList
public static final int RULE_parameterList
- See Also:
- Constant Field Values
-
RULE_parameterDecl
public static final int RULE_parameterDecl
- See Also:
- Constant Field Values
-
RULE_operand
public static final int RULE_operand
- See Also:
- Constant Field Values
-
RULE_literal
public static final int RULE_literal
- See Also:
- Constant Field Values
-
RULE_basicLit
public static final int RULE_basicLit
- See Also:
- Constant Field Values
-
RULE_operandName
public static final int RULE_operandName
- See Also:
- Constant Field Values
-
RULE_qualifiedIdent
public static final int RULE_qualifiedIdent
- See Also:
- Constant Field Values
-
RULE_compositeLit
public static final int RULE_compositeLit
- See Also:
- Constant Field Values
-
RULE_literalType
public static final int RULE_literalType
- See Also:
- Constant Field Values
-
RULE_literalValue
public static final int RULE_literalValue
- See Also:
- Constant Field Values
-
RULE_elementList
public static final int RULE_elementList
- See Also:
- Constant Field Values
-
RULE_keyedElement
public static final int RULE_keyedElement
- See Also:
- Constant Field Values
-
RULE_key
public static final int RULE_key
- See Also:
- Constant Field Values
-
RULE_element
public static final int RULE_element
- See Also:
- Constant Field Values
-
RULE_structType
public static final int RULE_structType
- See Also:
- Constant Field Values
-
RULE_fieldDecl
public static final int RULE_fieldDecl
- See Also:
- Constant Field Values
-
RULE_anonymousField
public static final int RULE_anonymousField
- See Also:
- Constant Field Values
-
RULE_functionLit
public static final int RULE_functionLit
- See Also:
- Constant Field Values
-
RULE_primaryExpr
public static final int RULE_primaryExpr
- See Also:
- Constant Field Values
-
RULE_selector
public static final int RULE_selector
- See Also:
- Constant Field Values
-
RULE_index
public static final int RULE_index
- See Also:
- Constant Field Values
-
RULE_slice
public static final int RULE_slice
- See Also:
- Constant Field Values
-
RULE_typeAssertion
public static final int RULE_typeAssertion
- See Also:
- Constant Field Values
-
RULE_arguments
public static final int RULE_arguments
- See Also:
- Constant Field Values
-
RULE_methodExpr
public static final int RULE_methodExpr
- See Also:
- Constant Field Values
-
RULE_receiverType
public static final int RULE_receiverType
- See Also:
- Constant Field Values
-
RULE_expression
public static final int RULE_expression
- See Also:
- Constant Field Values
-
RULE_unaryExpr
public static final int RULE_unaryExpr
- See Also:
- Constant Field Values
-
RULE_conversion
public static final int RULE_conversion
- See Also:
- Constant Field Values
-
RULE_eos
public static final int RULE_eos
- See Also:
- Constant Field Values
-
ruleNames
public static final String[] ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final String[] tokenNames
Deprecated.UseVOCABULARY
instead.
-
_serializedATN
public static final String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
-
-
Method Detail
-
getTokenNames
@Deprecated public String[] getTokenNames()
Deprecated.- Specified by:
getTokenNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()
- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
public String getGrammarFileName()
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
public String[] getRuleNames()
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
public String getSerializedATN()
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()
- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
sourceFile
public final GolangParser.SourceFileContext sourceFile() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
packageClause
public final GolangParser.PackageClauseContext packageClause() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
importDecl
public final GolangParser.ImportDeclContext importDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
importSpec
public final GolangParser.ImportSpecContext importSpec() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
importPath
public final GolangParser.ImportPathContext importPath() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
topLevelDecl
public final GolangParser.TopLevelDeclContext topLevelDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
declaration
public final GolangParser.DeclarationContext declaration() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
constDecl
public final GolangParser.ConstDeclContext constDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
constSpec
public final GolangParser.ConstSpecContext constSpec() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
identifierList
public final GolangParser.IdentifierListContext identifierList() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expressionList
public final GolangParser.ExpressionListContext expressionList() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeDecl
public final GolangParser.TypeDeclContext typeDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeSpec
public final GolangParser.TypeSpecContext typeSpec() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
functionDecl
public final GolangParser.FunctionDeclContext functionDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
function
public final GolangParser.FunctionContext function() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
methodDecl
public final GolangParser.MethodDeclContext methodDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
receiver
public final GolangParser.ReceiverContext receiver() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
varDecl
public final GolangParser.VarDeclContext varDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
varSpec
public final GolangParser.VarSpecContext varSpec() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
block
public final GolangParser.BlockContext block() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
statementList
public final GolangParser.StatementListContext statementList() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
statement
public final GolangParser.StatementContext statement() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
simpleStmt
public final GolangParser.SimpleStmtContext simpleStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expressionStmt
public final GolangParser.ExpressionStmtContext expressionStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
sendStmt
public final GolangParser.SendStmtContext sendStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
incDecStmt
public final GolangParser.IncDecStmtContext incDecStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
assignment
public final GolangParser.AssignmentContext assignment() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
assign_op
public final GolangParser.Assign_opContext assign_op() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
shortVarDecl
public final GolangParser.ShortVarDeclContext shortVarDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
emptyStmt
public final GolangParser.EmptyStmtContext emptyStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
labeledStmt
public final GolangParser.LabeledStmtContext labeledStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
returnStmt
public final GolangParser.ReturnStmtContext returnStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
breakStmt
public final GolangParser.BreakStmtContext breakStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
continueStmt
public final GolangParser.ContinueStmtContext continueStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
gotoStmt
public final GolangParser.GotoStmtContext gotoStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
fallthroughStmt
public final GolangParser.FallthroughStmtContext fallthroughStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
deferStmt
public final GolangParser.DeferStmtContext deferStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
ifStmt
public final GolangParser.IfStmtContext ifStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
switchStmt
public final GolangParser.SwitchStmtContext switchStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
exprSwitchStmt
public final GolangParser.ExprSwitchStmtContext exprSwitchStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
exprCaseClause
public final GolangParser.ExprCaseClauseContext exprCaseClause() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
exprSwitchCase
public final GolangParser.ExprSwitchCaseContext exprSwitchCase() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeSwitchStmt
public final GolangParser.TypeSwitchStmtContext typeSwitchStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeSwitchGuard
public final GolangParser.TypeSwitchGuardContext typeSwitchGuard() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeCaseClause
public final GolangParser.TypeCaseClauseContext typeCaseClause() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeSwitchCase
public final GolangParser.TypeSwitchCaseContext typeSwitchCase() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeList
public final GolangParser.TypeListContext typeList() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
selectStmt
public final GolangParser.SelectStmtContext selectStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
commClause
public final GolangParser.CommClauseContext commClause() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
commCase
public final GolangParser.CommCaseContext commCase() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
recvStmt
public final GolangParser.RecvStmtContext recvStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
forStmt
public final GolangParser.ForStmtContext forStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
forClause
public final GolangParser.ForClauseContext forClause() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
rangeClause
public final GolangParser.RangeClauseContext rangeClause() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
goStmt
public final GolangParser.GoStmtContext goStmt() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
type
public final GolangParser.TypeContext type() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeName
public final GolangParser.TypeNameContext typeName() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeLit
public final GolangParser.TypeLitContext typeLit() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
arrayType
public final GolangParser.ArrayTypeContext arrayType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
arrayLength
public final GolangParser.ArrayLengthContext arrayLength() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
elementType
public final GolangParser.ElementTypeContext elementType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
pointerType
public final GolangParser.PointerTypeContext pointerType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
interfaceType
public final GolangParser.InterfaceTypeContext interfaceType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
sliceType
public final GolangParser.SliceTypeContext sliceType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
mapType
public final GolangParser.MapTypeContext mapType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
channelType
public final GolangParser.ChannelTypeContext channelType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
methodSpec
public final GolangParser.MethodSpecContext methodSpec() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
functionType
public final GolangParser.FunctionTypeContext functionType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
signature
public final GolangParser.SignatureContext signature() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
result
public final GolangParser.ResultContext result() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
parameters
public final GolangParser.ParametersContext parameters() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
parameterList
public final GolangParser.ParameterListContext parameterList() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
parameterDecl
public final GolangParser.ParameterDeclContext parameterDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operand
public final GolangParser.OperandContext operand() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
literal
public final GolangParser.LiteralContext literal() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
basicLit
public final GolangParser.BasicLitContext basicLit() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
operandName
public final GolangParser.OperandNameContext operandName() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
qualifiedIdent
public final GolangParser.QualifiedIdentContext qualifiedIdent() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
compositeLit
public final GolangParser.CompositeLitContext compositeLit() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
literalType
public final GolangParser.LiteralTypeContext literalType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
literalValue
public final GolangParser.LiteralValueContext literalValue() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
elementList
public final GolangParser.ElementListContext elementList() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
keyedElement
public final GolangParser.KeyedElementContext keyedElement() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
key
public final GolangParser.KeyContext key() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
element
public final GolangParser.ElementContext element() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
structType
public final GolangParser.StructTypeContext structType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
fieldDecl
public final GolangParser.FieldDeclContext fieldDecl() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
anonymousField
public final GolangParser.AnonymousFieldContext anonymousField() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
functionLit
public final GolangParser.FunctionLitContext functionLit() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
primaryExpr
public final GolangParser.PrimaryExprContext primaryExpr() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
selector
public final GolangParser.SelectorContext selector() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
index
public final GolangParser.IndexContext index() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
slice
public final GolangParser.SliceContext slice() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
typeAssertion
public final GolangParser.TypeAssertionContext typeAssertion() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
arguments
public final GolangParser.ArgumentsContext arguments() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
methodExpr
public final GolangParser.MethodExprContext methodExpr() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
receiverType
public final GolangParser.ReceiverTypeContext receiverType() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
expression
public final GolangParser.ExpressionContext expression() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
unaryExpr
public final GolangParser.UnaryExprContext unaryExpr() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
conversion
public final GolangParser.ConversionContext conversion() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
eos
public final GolangParser.EosContext eos() throws org.antlr.v4.runtime.RecognitionException
- Throws:
org.antlr.v4.runtime.RecognitionException
-
sempred
public boolean sempred(org.antlr.v4.runtime.RuleContext _localctx, int ruleIndex, int predIndex)
- Overrides:
sempred
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
-
-