(in reflect.Type, param ast.Node)
| 1323 | } |
| 1324 | |
| 1325 | func (c *compiler) derefParam(in reflect.Type, param ast.Node) { |
| 1326 | if param.Nature().Nil { |
| 1327 | return |
| 1328 | } |
| 1329 | if param.Type().AssignableTo(in) { |
| 1330 | return |
| 1331 | } |
| 1332 | if in.Kind() != reflect.Ptr && param.Type().Kind() == reflect.Ptr { |
| 1333 | c.emit(OpDeref) |
| 1334 | } |
| 1335 | } |
| 1336 | |
| 1337 | func (c *compiler) optimize() { |
| 1338 | for i, op := range c.bytecode { |
no test coverage detected