MCPcopy Create free account
hub / github.com/yuin/gopher-lua / pairsaux

Function pairsaux

baselib.go:238–250  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

236}
237
238func pairsaux(L *LState) int {
239 tb := L.CheckTable(1)
240 key, value := tb.Next(L.Get(2))
241 if key == LNil {
242 return 0
243 } else {
244 L.Pop(1)
245 L.Push(key)
246 L.Push(key)
247 L.Push(value)
248 return 2
249 }
250}
251
252func basePairs(L *LState) int {
253 tb := L.CheckTable(1)

Callers

nothing calls this directly

Calls 5

CheckTableMethod · 0.80
PopMethod · 0.65
PushMethod · 0.65
NextMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…