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

Method gotoStatement

parser.go:484–491  ·  view source on GitHub ↗
(pc int)

Source from the content-addressed store, hash-verified

482}
483
484func (p *parser) gotoStatement(pc int) {
485 if line := p.lineNumber; p.testNext(tkGoto) {
486 p.function.MakeGoto(p.checkName(), line, pc)
487 } else {
488 p.next()
489 p.function.MakeGoto("break", line, pc)
490 }
491}
492
493func (p *parser) skipEmptyStatements() {
494 for p.t == ';' || p.t == tkDoubleColon {

Callers 2

testThenBlockMethod · 0.95
statementMethod · 0.95

Calls 4

checkNameMethod · 0.95
testNextMethod · 0.80
MakeGotoMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected