MCPcopy
hub / github.com/google/mtail / errorf

Method errorf

internal/runtime/compiler/codegen/codegen.go:46–49  ·  view source on GitHub ↗
(pos *position.Position, format string, args ...interface{})

Source from the content-addressed store, hash-verified

44}
45
46func (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
51func (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)

Callers 3

VisitBeforeMethod · 0.95
VisitAfterMethod · 0.95
writeJumpsMethod · 0.95

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected