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

Method FormalParameter

parser/gscript_parser.go:2202–2248  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2200}
2201
2202func (p *GScriptParser) FormalParameter() (localctx IFormalParameterContext) {
2203 localctx = NewFormalParameterContext(p, p.GetParserRuleContext(), p.GetState())
2204 p.EnterRule(localctx, 22, GScriptParserRULE_formalParameter)
2205 var _la int
2206
2207 defer func() {
2208 p.ExitRule()
2209 }()
2210
2211 defer func() {
2212 if err := recover(); err != nil {
2213 if v, ok := err.(antlr.RecognitionException); ok {
2214 localctx.SetException(v)
2215 p.GetErrorHandler().ReportError(p, v)
2216 p.GetErrorHandler().Recover(p, v)
2217 } else {
2218 panic(err)
2219 }
2220 }
2221 }()
2222
2223 p.EnterOuterAlt(localctx, 1)
2224 p.SetState(178)
2225 p.GetErrorHandler().Sync(p)
2226 _la = p.GetTokenStream().LA(1)
2227
2228 for _la == GScriptParserFINAL {
2229 {
2230 p.SetState(175)
2231 p.VariableModifier()
2232 }
2233
2234 p.SetState(180)
2235 p.GetErrorHandler().Sync(p)
2236 _la = p.GetTokenStream().LA(1)
2237 }
2238 {
2239 p.SetState(181)
2240 p.TypeType()
2241 }
2242 {
2243 p.SetState(182)
2244 p.VariableDeclaratorId()
2245 }
2246
2247 return localctx
2248}
2249
2250// ILastFormalParameterContext is an interface to support dynamic dispatch.
2251type ILastFormalParameterContext interface {

Callers 1

FormalParameterListMethod · 0.95

Calls 6

VariableModifierMethod · 0.95
TypeTypeMethod · 0.95
VariableDeclaratorIdMethod · 0.95
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected