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

Method mainFunction

parser.go:647–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

645}
646
647func (p *parser) mainFunction() {
648 p.function.OpenMainFunction()
649 p.next()
650 p.statementList()
651 p.check(tkEOS)
652 p.function = p.function.CloseMainFunction()
653}
654
655func (l *State) parse(r io.ByteReader, name string) *luaClosure {
656 p := &parser{scanner: scanner{r: r, lineNumber: 1, lastLine: 1, lookAheadToken: token{t: tkEOS}, l: l, source: name}}

Callers 1

parseMethod · 0.95

Calls 5

statementListMethod · 0.95
OpenMainFunctionMethod · 0.80
checkMethod · 0.80
CloseMainFunctionMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected