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

Method func

output/java8/1.4.13/CompilationState.java:97–106  ·  view source on GitHub ↗
(Token templateToken, CommonTree id)

Source from the content-addressed store, hash-verified

95 }
96
97 public void func(Token templateToken, CommonTree id) {
98 Short funcBytecode = Compiler.funcs.get(id.getText());
99 if ( funcBytecode==null ) {
100 errMgr.compileTimeError(ErrorType.NO_SUCH_FUNCTION, templateToken, id.token);
101 emit(id, Bytecode.INSTR_POP);
102 }
103 else {
104 emit(id, funcBytecode);
105 }
106 }
107
108 public void emit(short opcode) {
109 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