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

Method undefinedGotoError

code.go:135–141  ·  view source on GitHub ↗
(g label)

Source from the content-addressed store, hash-verified

133}
134
135func (f *function) undefinedGotoError(g label) {
136 if isReserved(g.name) {
137 f.semanticError(fmt.Sprintf("<%s> at line %d not inside a loop", g.name, g.line))
138 } else {
139 f.semanticError(fmt.Sprintf("no visible label '%s' for <goto> at line %d", g.name, g.line))
140 }
141}
142
143func (f *function) LocalVariable(i int) *localVariable {
144 index := f.p.activeVariables[f.firstLocal+i]

Callers 1

LeaveBlockMethod · 0.95

Calls 2

semanticErrorMethod · 0.95
isReservedFunction · 0.85

Tested by

no test coverage detected