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