MCPcopy
hub / github.com/antlr/antlr4 / body

Method body

runtime/Python3/tests/expr/ExprParser.py:255–284  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

253
254
255 def body(self):
256
257 localctx = ExprParser.BodyContext(self, self._ctx, self.state)
258 self.enterRule(localctx, 4, self.RULE_body)
259 self._la = 0 # Token type
260 try:
261 self.enterOuterAlt(localctx, 1)
262 self.state = 33
263 self.match(ExprParser.T__4)
264 self.state = 35
265 self._errHandler.sync(self)
266 _la = self._input.LA(1)
267 while True:
268 self.state = 34
269 self.stat()
270 self.state = 37
271 self._errHandler.sync(self)
272 _la = self._input.LA(1)
273 if not ((((_la) & ~0x3f) == 0 and ((1 << _la) & 57476) != 0)):
274 break
275
276 self.state = 39
277 self.match(ExprParser.T__5)
278 except RecognitionException as re:
279 localctx.exception = re
280 self._errHandler.reportError(self, re)
281 self._errHandler.recover(self, re)
282 finally:
283 self.exitRule()
284 return localctx
285
286
287 class ArgContext(ParserRuleContext):

Callers 1

funcMethod · 0.95

Calls 9

statMethod · 0.95
syncMethod · 0.65
LAMethod · 0.65
reportErrorMethod · 0.65
recoverMethod · 0.65
enterRuleMethod · 0.45
enterOuterAltMethod · 0.45
matchMethod · 0.45
exitRuleMethod · 0.45

Tested by

no test coverage detected