MCPcopy Create free account
hub / github.com/google/re2j / patch

Method patch

java/com/google/re2j/Prog.java:125–136  ·  view source on GitHub ↗
(int l, int val)

Source from the content-addressed store, hash-verified

123 }
124
125 void patch(int l, int val) {
126 while (l != 0) {
127 Inst i = inst[l >> 1];
128 if ((l & 1) == 0) {
129 l = i.out;
130 i.out = val;
131 } else {
132 l = i.arg;
133 i.arg = val;
134 }
135 }
136 }
137
138 int append(int l1, int l2) {
139 if (l1 == 0) {

Callers 3

compileRegexpMethod · 0.80
catMethod · 0.80
loopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected