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

Method newLabel

internal/runtime/compiler/codegen/codegen.go:57–61  ·  view source on GitHub ↗

newLabel creates a new label to jump to.

()

Source from the content-addressed store, hash-verified

55
56// newLabel creates a new label to jump to.
57func (c *codegen) newLabel() (l int) {
58 l = len(c.l)
59 c.l = append(c.l, -1)
60 return
61}
62
63// setLabel points a label to the next instruction.
64func (c *codegen) setLabel(l int) {

Callers 2

VisitBeforeMethod · 0.95
VisitAfterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected