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

Method forBody

parser.go:341–347  ·  view source on GitHub ↗
(base, line, n int, isNumeric bool)

Source from the content-addressed store, hash-verified

339}
340
341func (p *parser) forBody(base, line, n int, isNumeric bool) {
342 p.function.AdjustLocalVariables(3)
343 p.checkNext(tkDo)
344 prep := p.function.OpenForBody(base, n, isNumeric)
345 p.block()
346 p.function.CloseForBody(prep, base, line, n, isNumeric)
347}
348
349func (p *parser) forNumeric(name string, line int) {
350 expr := func() { p.assert(p.function.ExpressionToNextRegister(p.expression()).kind == kindNonRelocatable) }

Callers 2

forNumericMethod · 0.95
forListMethod · 0.95

Calls 5

checkNextMethod · 0.95
blockMethod · 0.95
AdjustLocalVariablesMethod · 0.80
OpenForBodyMethod · 0.80
CloseForBodyMethod · 0.80

Tested by

no test coverage detected