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

Method genericSelection

runtime/Python3/tests/parser/cparser.py:1128–1152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1126
1127
1128 def genericSelection(self):
1129
1130 localctx = CParser.GenericSelectionContext(self, self._ctx, self.state)
1131 self.enterRule(localctx, 2, self.RULE_genericSelection)
1132 try:
1133 self.enterOuterAlt(localctx, 1)
1134 self.state = 203
1135 self.match(CParser.Generic)
1136 self.state = 204
1137 self.match(CParser.LeftParen)
1138 self.state = 205
1139 self.assignmentExpression()
1140 self.state = 206
1141 self.match(CParser.Comma)
1142 self.state = 207
1143 self.genericAssocList(0)
1144 self.state = 208
1145 self.match(CParser.RightParen)
1146 except RecognitionException as re:
1147 localctx.exception = re
1148 self._errHandler.reportError(self, re)
1149 self._errHandler.recover(self, re)
1150 finally:
1151 self.exitRule()
1152 return localctx
1153
1154 class GenericAssocListContext(ParserRuleContext):
1155

Callers 1

primaryExpressionMethod · 0.95

Calls 8

assignmentExpressionMethod · 0.95
genericAssocListMethod · 0.95
reportErrorMethod · 0.65
recoverMethod · 0.65
enterRuleMethod · 0.45
enterOuterAltMethod · 0.45
matchMethod · 0.45
exitRuleMethod · 0.45

Tested by

no test coverage detected