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

Method Table

lua.go:1420–1422  ·  view source on GitHub ↗

Table pushes onto the stack the value table[top], where table is the value at index, and top is the value at the top of the stack. This function pops the key from the stack, putting the resulting value in its place. As in Lua, this function may trigger a metamethod for the __index event. http://ww

(index int)

Source from the content-addressed store, hash-verified

1418//
1419// http://www.lua.org/manual/5.2/manual.html#lua_gettable
1420func (l *State) Table(index int) {
1421 l.stack[l.top-1] = l.tableAt(l.indexToValue(index), l.stack[l.top-1])
1422}
1423
1424// PushValue pushes a copy of the element at index onto the stack.
1425//

Callers

nothing calls this directly

Calls 2

tableAtMethod · 0.95
indexToValueMethod · 0.95

Tested by

no test coverage detected