MCPcopy Index your code
hub / github.com/antlr/codebuff / ensureCapacity

Method ensureCapacity

output/java8/1.4.12/CompilationState.java:178–187  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

176 }
177
178 protected void ensureCapacity(int n) {
179 if ( (ip+n)>=impl.instrs.length ) { // ensure room for full instruction
180 byte[] c = new byte[impl.instrs.length*2];
181 System.arraycopy(impl.instrs, 0, c, 0, impl.instrs.length);
182 impl.instrs = c;
183 Interval[] sm = new Interval[impl.sourceMap.length*2];
184 System.arraycopy(impl.sourceMap, 0, sm, 0, impl.sourceMap.length);
185 impl.sourceMap = sm;
186 }
187 }
188
189 public void indent(CommonTree indent) {
190 emit1(indent, Bytecode.INSTR_INDENT, indent.getText());

Callers 4

emitMethod · 0.95
emit1Method · 0.95
emit2Method · 0.95
insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected