(loc file.Location, op Opcode, arg int)
| 112 | } |
| 113 | |
| 114 | func (c *compiler) emitLocation(loc file.Location, op Opcode, arg int) int { |
| 115 | c.bytecode = append(c.bytecode, op) |
| 116 | current := len(c.bytecode) |
| 117 | c.arguments = append(c.arguments, arg) |
| 118 | c.locations = append(c.locations, loc) |
| 119 | return current |
| 120 | } |
| 121 | |
| 122 | func (c *compiler) emit(op Opcode, args ...int) int { |
| 123 | arg := 0 |
no outgoing calls
no test coverage detected