(name string)
| 167 | } |
| 168 | |
| 169 | func (c *compiler) addVariable(name string) int { |
| 170 | c.variables++ |
| 171 | c.debugInfo[fmt.Sprintf("var_%d", c.variables-1)] = name |
| 172 | return c.variables - 1 |
| 173 | } |
| 174 | |
| 175 | // emitFunction adds builtin.Function.Func to the program.functions and emits call opcode. |
| 176 | func (c *compiler) emitFunction(fn *builtin.Function, argsLen int) { |
no test coverage detected