MCPcopy Index your code
hub / github.com/crossoverJie/gscript / FormalParameterList

Method FormalParameterList

parser/gscript_parser.go:2011–2089  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2009}
2010
2011func (p *GScriptParser) FormalParameterList() (localctx IFormalParameterListContext) {
2012 localctx = NewFormalParameterListContext(p, p.GetParserRuleContext(), p.GetState())
2013 p.EnterRule(localctx, 20, GScriptParserRULE_formalParameterList)
2014 var _la int
2015
2016 defer func() {
2017 p.ExitRule()
2018 }()
2019
2020 defer func() {
2021 if err := recover(); err != nil {
2022 if v, ok := err.(antlr.RecognitionException); ok {
2023 localctx.SetException(v)
2024 p.GetErrorHandler().ReportError(p, v)
2025 p.GetErrorHandler().Recover(p, v)
2026 } else {
2027 panic(err)
2028 }
2029 }
2030 }()
2031
2032 var _alt int
2033
2034 p.SetState(173)
2035 p.GetErrorHandler().Sync(p)
2036 switch p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 15, p.GetParserRuleContext()) {
2037 case 1:
2038 p.EnterOuterAlt(localctx, 1)
2039 {
2040 p.SetState(160)
2041 p.FormalParameter()
2042 }
2043 p.SetState(165)
2044 p.GetErrorHandler().Sync(p)
2045 _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 13, p.GetParserRuleContext())
2046
2047 for _alt != 2 && _alt != antlr.ATNInvalidAltNumber {
2048 if _alt == 1 {
2049 {
2050 p.SetState(161)
2051 p.Match(GScriptParserT__1)
2052 }
2053 {
2054 p.SetState(162)
2055 p.FormalParameter()
2056 }
2057
2058 }
2059 p.SetState(167)
2060 p.GetErrorHandler().Sync(p)
2061 _alt = p.GetInterpreter().AdaptivePredict(p.GetTokenStream(), 13, p.GetParserRuleContext())
2062 }
2063 p.SetState(170)
2064 p.GetErrorHandler().Sync(p)
2065 _la = p.GetTokenStream().LA(1)
2066
2067 if _la == GScriptParserT__1 {
2068 {

Callers 2

FormalParametersMethod · 0.95
executeFunctionCallMethod · 0.45

Calls 5

FormalParameterMethod · 0.95
LastFormalParameterMethod · 0.95
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected