MCPcopy Index your code
hub / github.com/Shopify/go-lua / MakeLabel

Method MakeLabel

code.go:174–177  ·  view source on GitHub ↗
(name string, line int)

Source from the content-addressed store, hash-verified

172}
173
174func (f *function) MakeLabel(name string, line int) int {
175 f.p.activeLabels = append(f.p.activeLabels, label{name: name, line: line, pc: len(f.f.code), activeVariableCount: f.activeVariableCount})
176 return len(f.p.activeLabels) - 1
177}
178
179func (f *function) closeGoto(i int, l label) {
180 g := f.p.pendingGotos[i]

Callers 2

breakLabelMethod · 0.95
labelStatementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected