(pos *position.Position, format string, args ...interface{})
| 44 | } |
| 45 | |
| 46 | func (c *codegen) errorf(pos *position.Position, format string, args ...interface{}) { |
| 47 | e := "Internal compiler error, aborting compilation: " + fmt.Sprintf(format, args...) |
| 48 | c.errors.Add(pos, e) |
| 49 | } |
| 50 | |
| 51 | func (c *codegen) emit(n ast.Node, opcode code.Opcode, operand interface{}) { |
| 52 | glog.V(2).Infof("emitting `%s %v' from line %d node %#v\n", opcode, operand, n.Pos().Line, n) |
no test coverage detected