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

Method triple

src/org/antlr/codebuff/Trainer.java:1033–1037  ·  view source on GitHub ↗
(int v)

Source from the content-addressed store, hash-verified

1031 }
1032
1033 public static int[] triple(int v) {
1034 int deltaFromLeftAncestor = (v>>8)&0xFF;
1035 int child = (v>>16)&0xFFFF;
1036 return new int[] { deltaFromLeftAncestor, child };
1037 }
1038
1039 public static int wscat(int n) {
1040 return CAT_INJECT_WS | (n<<8);

Callers 4

toStringMethod · 0.95
alignMethod · 0.95
getWSCategoryStrMethod · 0.95
getHPosCategoryStrMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected