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

Method functionStatement

parser.go:557–562  ·  view source on GitHub ↗
(line int)

Source from the content-addressed store, hash-verified

555}
556
557func (p *parser) functionStatement(line int) {
558 p.next()
559 v, m := p.functionName()
560 p.function.StoreVariable(v, p.body(m, line))
561 p.function.FixLine(line)
562}
563
564func (p *parser) localFunction() {
565 p.function.MakeLocalVariable(p.checkName())

Callers 1

statementMethod · 0.95

Calls 5

functionNameMethod · 0.95
bodyMethod · 0.95
StoreVariableMethod · 0.80
FixLineMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected