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

Method findUpValue

stack.go:215–222  ·  view source on GitHub ↗
(level int)

Source from the content-addressed store, hash-verified

213}
214
215func (l *State) findUpValue(level int) *upValue {
216 for e := l.upValues; e != nil; e = e.next {
217 if e.upValue.isInStackAt(level) {
218 return e.upValue
219 }
220 }
221 return l.newUpValueAt(level)
222}
223
224func (l *State) newClosure(p *prototype, upValues []*upValue, base int) value {
225 c := l.newLuaClosure(p)

Callers 1

newClosureMethod · 0.95

Calls 2

newUpValueAtMethod · 0.95
isInStackAtMethod · 0.80

Tested by

no test coverage detected