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

Method ensureCapacity

output/java8/1.4.19/CompilationState.java:182–191  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

180 }
181
182 protected void ensureCapacity(int n) {
183 if ( (ip+n)>=impl.instrs.length ) { // ensure room for full instruction
184 byte[] c = new byte[impl.instrs.length*2];
185 System.arraycopy(impl.instrs, 0, c, 0, impl.instrs.length);
186 impl.instrs = c;
187 Interval[] sm = new Interval[impl.sourceMap.length*2];
188 System.arraycopy(impl.sourceMap, 0, sm, 0, impl.sourceMap.length);
189 impl.sourceMap = sm;
190 }
191 }
192
193 public void indent(CommonTree indent) {
194 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