()
| 7348 | } |
| 7349 | |
| 7350 | func (p *CommandsParser) Primary() (localctx IPrimaryContext) { |
| 7351 | localctx = NewPrimaryContext(p, p.GetParserRuleContext(), p.GetState()) |
| 7352 | p.EnterRule(localctx, 56, CommandsParserRULE_primary) |
| 7353 | var _la int |
| 7354 | |
| 7355 | p.SetState(364) |
| 7356 | p.GetErrorHandler().Sync(p) |
| 7357 | if p.HasError() { |
| 7358 | goto errorExit |
| 7359 | } |
| 7360 | |
| 7361 | switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 45, p.GetParserRuleContext()) { |
| 7362 | case 1: |
| 7363 | localctx = NewIdentContext(p, localctx) |
| 7364 | p.EnterOuterAlt(localctx, 1) |
| 7365 | p.SetState(312) |
| 7366 | p.GetErrorHandler().Sync(p) |
| 7367 | if p.HasError() { |
| 7368 | goto errorExit |
| 7369 | } |
| 7370 | _la = p.GetTokenStream().LA(1) |
| 7371 | |
| 7372 | if _la == CommandsParserDOT { |
| 7373 | { |
| 7374 | p.SetState(311) |
| 7375 | |
| 7376 | var _m = p.Match(CommandsParserDOT) |
| 7377 | |
| 7378 | localctx.(*IdentContext).leadingDot = _m |
| 7379 | if p.HasError() { |
| 7380 | // Recognition error - abort rule |
| 7381 | goto errorExit |
| 7382 | } |
| 7383 | } |
| 7384 | |
| 7385 | } |
| 7386 | { |
| 7387 | p.SetState(314) |
| 7388 | |
| 7389 | var _m = p.Match(CommandsParserIDENTIFIER) |
| 7390 | |
| 7391 | localctx.(*IdentContext).id = _m |
| 7392 | if p.HasError() { |
| 7393 | // Recognition error - abort rule |
| 7394 | goto errorExit |
| 7395 | } |
| 7396 | } |
| 7397 | |
| 7398 | case 2: |
| 7399 | localctx = NewGlobalCallContext(p, localctx) |
| 7400 | p.EnterOuterAlt(localctx, 2) |
| 7401 | p.SetState(316) |
| 7402 | p.GetErrorHandler().Sync(p) |
| 7403 | if p.HasError() { |
| 7404 | goto errorExit |
| 7405 | } |
| 7406 | _la = p.GetTokenStream().LA(1) |
| 7407 |
no test coverage detected