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

Method unrulealt

src/org/antlr/codebuff/Trainer.java:1014–1017  ·  view source on GitHub ↗

Return {rule index, rule alt number}

(int ra)

Source from the content-addressed store, hash-verified

1012
1013 /** Return {rule index, rule alt number} */
1014 public static int[] unrulealt(int ra) {
1015 if ( ra==-1 ) return new int[] {-1, ATN.INVALID_ALT_NUMBER};
1016 return new int[] {(ra>>16)&0xFFFF,ra&0xFFFF};
1017 }
1018
1019 public static int indentcat(int deltaFromLeftAncestor, int child) {
1020 return CAT_INDENT_FROM_ANCESTOR_CHILD| (deltaFromLeftAncestor<<8) | (child << 16);

Callers 3

_toStringMethod · 0.95
distancesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected