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

Method pc

internal/runtime/compiler/codegen/codegen.go:69–71  ·  view source on GitHub ↗

pc returns the program offset of the last instruction.

()

Source from the content-addressed store, hash-verified

67
68// pc returns the program offset of the last instruction.
69func (c *codegen) pc() int {
70 return len(c.obj.Program) - 1
71}
72
73func (c *codegen) VisitBefore(node ast.Node) (ast.Visitor, ast.Node) {
74 switch n := node.(type) {

Callers 2

setLabelMethod · 0.95
VisitBeforeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected