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

Method MakeGoto

code.go:169–172  ·  view source on GitHub ↗
(name string, line, pc int)

Source from the content-addressed store, hash-verified

167}
168
169func (f *function) MakeGoto(name string, line, pc int) {
170 f.p.pendingGotos = append(f.p.pendingGotos, label{name: name, line: line, pc: pc, activeVariableCount: f.activeVariableCount})
171 f.findLabel(len(f.p.pendingGotos) - 1)
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})

Callers 1

gotoStatementMethod · 0.80

Calls 1

findLabelMethod · 0.95

Tested by

no test coverage detected