MCPcopy Index your code
hub / github.com/yuin/gopher-lua / ResolveForwardGoto

Method ResolveForwardGoto

compile.go:496–506  ·  view source on GitHub ↗
(target *gotoLabelDesc)

Source from the content-addressed store, hash-verified

494}
495
496func (fc *funcContext) ResolveForwardGoto(target *gotoLabelDesc) {
497 for i := fc.Block.firstGotoIndex; i <= fc.gotosCount; i++ {
498 gotoLabel, ok := fc.unresolvedGotos[i]
499 if !ok {
500 continue
501 }
502 if gotoLabel.Name == target.Name {
503 fc.ResolveGoto(gotoLabel, target, i)
504 }
505 }
506}
507
508func (fc *funcContext) NewLabel() int {
509 ret := fc.labelId

Callers 1

compileLabelStmtFunction · 0.80

Calls 1

ResolveGotoMethod · 0.95

Tested by

no test coverage detected