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

Function next

base.go:11–19  ·  view source on GitHub ↗
(l *State)

Source from the content-addressed store, hash-verified

9)
10
11func next(l *State) int {
12 CheckType(l, 1, TypeTable)
13 l.SetTop(2)
14 if l.Next(1) {
15 return 2
16 }
17 l.PushNil()
18 return 1
19}
20
21func pairs(method string, isZero bool, iter Function) Function {
22 return func(l *State) int {

Callers

nothing calls this directly

Calls 4

CheckTypeFunction · 0.85
SetTopMethod · 0.80
NextMethod · 0.80
PushNilMethod · 0.80

Tested by

no test coverage detected