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

Method emit2

output/java8/1.4.12/CompilationState.java:131–138  ·  view source on GitHub ↗
(CommonTree opAST, short opcode, int arg, int arg2)

Source from the content-addressed store, hash-verified

129 }
130
131 public void emit2(CommonTree opAST, short opcode, int arg, int arg2) {
132 emit(opAST, opcode);
133 ensureCapacity(Bytecode.OPND_SIZE_IN_BYTES*2);
134 writeShort(impl.instrs, ip, (short)arg);
135 ip += Bytecode.OPND_SIZE_IN_BYTES;
136 writeShort(impl.instrs, ip, (short)arg2);
137 ip += Bytecode.OPND_SIZE_IN_BYTES;
138 }
139
140 public void emit2(CommonTree opAST, short opcode, String s, int arg2) {
141 int i = defineString(s);

Callers

nothing calls this directly

Calls 4

emitMethod · 0.95
ensureCapacityMethod · 0.95
writeShortMethod · 0.95
defineStringMethod · 0.95

Tested by

no test coverage detected