()
| 1037 | } |
| 1038 | |
| 1039 | func (p *MangleParser) UseDecl() (localctx IUseDeclContext) { |
| 1040 | localctx = NewUseDeclContext(p, p.GetParserRuleContext(), p.GetState()) |
| 1041 | p.EnterRule(localctx, 6, MangleParserRULE_useDecl) |
| 1042 | var _la int |
| 1043 | |
| 1044 | p.EnterOuterAlt(localctx, 1) |
| 1045 | { |
| 1046 | p.SetState(66) |
| 1047 | p.Match(MangleParserUSE) |
| 1048 | if p.HasError() { |
| 1049 | // Recognition error - abort rule |
| 1050 | goto errorExit |
| 1051 | } |
| 1052 | } |
| 1053 | { |
| 1054 | p.SetState(67) |
| 1055 | p.Match(MangleParserNAME) |
| 1056 | if p.HasError() { |
| 1057 | // Recognition error - abort rule |
| 1058 | goto errorExit |
| 1059 | } |
| 1060 | } |
| 1061 | p.SetState(69) |
| 1062 | p.GetErrorHandler().Sync(p) |
| 1063 | if p.HasError() { |
| 1064 | goto errorExit |
| 1065 | } |
| 1066 | _la = p.GetTokenStream().LA(1) |
| 1067 | |
| 1068 | if _la == MangleParserLBRACKET { |
| 1069 | { |
| 1070 | p.SetState(68) |
| 1071 | p.Atoms() |
| 1072 | } |
| 1073 | |
| 1074 | } |
| 1075 | { |
| 1076 | p.SetState(71) |
| 1077 | p.Match(MangleParserBANG) |
| 1078 | if p.HasError() { |
| 1079 | // Recognition error - abort rule |
| 1080 | goto errorExit |
| 1081 | } |
| 1082 | } |
| 1083 | |
| 1084 | errorExit: |
| 1085 | if p.HasError() { |
| 1086 | v := p.GetError() |
| 1087 | localctx.SetException(v) |
| 1088 | p.GetErrorHandler().ReportError(p, v) |
| 1089 | p.GetErrorHandler().Recover(p, v) |
| 1090 | p.SetError(nil) |
| 1091 | } |
| 1092 | p.ExitRule() |
| 1093 | return localctx |
| 1094 | goto errorExit // Trick to prevent compiler error if the label is not used |
| 1095 | } |
| 1096 |
no test coverage detected