()
| 4570 | } |
| 4571 | |
| 4572 | func (p *MangleParser) Term() (localctx ITermContext) { |
| 4573 | localctx = NewTermContext(p, p.GetParserRuleContext(), p.GetState()) |
| 4574 | p.EnterRule(localctx, 32, MangleParserRULE_term) |
| 4575 | var _la int |
| 4576 | |
| 4577 | var _alt int |
| 4578 | |
| 4579 | p.SetState(311) |
| 4580 | p.GetErrorHandler().Sync(p) |
| 4581 | if p.HasError() { |
| 4582 | goto errorExit |
| 4583 | } |
| 4584 | |
| 4585 | switch p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 38, p.GetParserRuleContext()) { |
| 4586 | case 1: |
| 4587 | localctx = NewVarContext(p, localctx) |
| 4588 | p.EnterOuterAlt(localctx, 1) |
| 4589 | { |
| 4590 | p.SetState(225) |
| 4591 | p.Match(MangleParserVARIABLE) |
| 4592 | if p.HasError() { |
| 4593 | // Recognition error - abort rule |
| 4594 | goto errorExit |
| 4595 | } |
| 4596 | } |
| 4597 | |
| 4598 | case 2: |
| 4599 | localctx = NewConstContext(p, localctx) |
| 4600 | p.EnterOuterAlt(localctx, 2) |
| 4601 | { |
| 4602 | p.SetState(226) |
| 4603 | p.Match(MangleParserCONSTANT) |
| 4604 | if p.HasError() { |
| 4605 | // Recognition error - abort rule |
| 4606 | goto errorExit |
| 4607 | } |
| 4608 | } |
| 4609 | |
| 4610 | case 3: |
| 4611 | localctx = NewNumContext(p, localctx) |
| 4612 | p.EnterOuterAlt(localctx, 3) |
| 4613 | { |
| 4614 | p.SetState(227) |
| 4615 | p.Match(MangleParserNUMBER) |
| 4616 | if p.HasError() { |
| 4617 | // Recognition error - abort rule |
| 4618 | goto errorExit |
| 4619 | } |
| 4620 | } |
| 4621 | |
| 4622 | case 4: |
| 4623 | localctx = NewFloatContext(p, localctx) |
| 4624 | p.EnterOuterAlt(localctx, 4) |
| 4625 | { |
| 4626 | p.SetState(228) |
| 4627 | p.Match(MangleParserFLOAT) |
| 4628 | if p.HasError() { |
| 4629 | // Recognition error - abort rule |
no test coverage detected