MCPcopy Create free account
hub / github.com/antlr/codebuff / rulealt

Method rulealt

src/org/antlr/codebuff/Trainer.java:1003–1005  ·  view source on GitHub ↗
(ParserRuleContext r)

Source from the content-addressed store, hash-verified

1001 }
1002
1003 public static int rulealt(ParserRuleContext r) {
1004 return rulealt(r.getRuleIndex(), r.getAltNumber());
1005 }
1006
1007 /** Pack a rule index and an alternative number into the same 32-bit integer. */
1008 public static int rulealt(int rule, int alt) {

Callers 1

getContextFeaturesMethod · 0.95

Calls 1

getAltNumberMethod · 0.80

Tested by

no test coverage detected