()
| 908 | } |
| 909 | |
| 910 | func (p *CommandsParser) Help() (localctx IHelpContext) { |
| 911 | localctx = NewHelpContext(p, p.GetParserRuleContext(), p.GetState()) |
| 912 | p.EnterRule(localctx, 4, CommandsParserRULE_help) |
| 913 | var _la int |
| 914 | |
| 915 | p.EnterOuterAlt(localctx, 1) |
| 916 | { |
| 917 | p.SetState(88) |
| 918 | _la = p.GetTokenStream().LA(1) |
| 919 | |
| 920 | if !(_la == CommandsParserT__0 || _la == CommandsParserT__1) { |
| 921 | p.GetErrorHandler().RecoverInline(p) |
| 922 | } else { |
| 923 | p.GetErrorHandler().ReportMatch(p) |
| 924 | p.Consume() |
| 925 | } |
| 926 | } |
| 927 | |
| 928 | errorExit: |
| 929 | if p.HasError() { |
| 930 | v := p.GetError() |
| 931 | localctx.SetException(v) |
| 932 | p.GetErrorHandler().ReportError(p, v) |
| 933 | p.GetErrorHandler().Recover(p, v) |
| 934 | p.SetError(nil) |
| 935 | } |
| 936 | p.ExitRule() |
| 937 | return localctx |
| 938 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 939 | } |
| 940 | |
| 941 | // ILetContext is an interface to support dynamic dispatch. |
| 942 | type ILetContext interface { |
no test coverage detected