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

Method func

output/java8/1.4.19/CompilationState.java:101–110  ·  view source on GitHub ↗
(Token templateToken, CommonTree id)

Source from the content-addressed store, hash-verified

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