(Token templateToken, CommonTree id)
| 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); |
nothing calls this directly
no test coverage detected