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

Method labelStatement

parser.go:499–508  ·  view source on GitHub ↗
(label string, line int)

Source from the content-addressed store, hash-verified

497}
498
499func (p *parser) labelStatement(label string, line int) {
500 p.function.CheckRepeatedLabel(label)
501 p.checkNext(tkDoubleColon)
502 l := p.function.MakeLabel(label, line)
503 p.skipEmptyStatements()
504 if p.blockFollow(false) {
505 p.activeLabels[l].activeVariableCount = p.function.block.activeVariableCount
506 }
507 p.function.FindGotos(l)
508}
509
510func (p *parser) parameterList() {
511 n, isVarArg := 0, false

Callers 1

statementMethod · 0.95

Calls 6

checkNextMethod · 0.95
skipEmptyStatementsMethod · 0.95
blockFollowMethod · 0.95
CheckRepeatedLabelMethod · 0.80
MakeLabelMethod · 0.80
FindGotosMethod · 0.80

Tested by

no test coverage detected