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

Method func

output/java8/1.4.14/CompilationState.java:99–108  ·  view source on GitHub ↗
(Token templateToken, CommonTree id)

Source from the content-addressed store, hash-verified

97 }
98
99 public void func(Token templateToken, CommonTree id) {
100 Short funcBytecode = Compiler.funcs.get(id.getText());
101 if ( funcBytecode==null ) {
102 errMgr.compileTimeError(ErrorType.NO_SUCH_FUNCTION, templateToken, id.token);
103 emit(id, Bytecode.INSTR_POP);
104 }
105 else {
106 emit(id, funcBytecode);
107 }
108 }
109
110 public void emit(short opcode) {
111 emit(null, opcode);

Callers

nothing calls this directly

Calls 4

emitMethod · 0.95
getMethod · 0.65
getTextMethod · 0.65
compileTimeErrorMethod · 0.65

Tested by

no test coverage detected