MCPcopy Index your code
hub / github.com/yuin/gopher-lua / SetValue

Method SetValue

function.go:64–70  ·  view source on GitHub ↗
(value LValue)

Source from the content-addressed store, hash-verified

62}
63
64func (uv *Upvalue) SetValue(value LValue) {
65 if uv.IsClosed() {
66 uv.value = value
67 } else {
68 uv.reg.Set(uv.index, value)
69 }
70}
71
72func (uv *Upvalue) Close() {
73 value := uv.Value()

Callers 8

initFunction · 0.80
initFunction · 0.80
ReplaceMethod · 0.80
NewClosureMethod · 0.80
SetUpvalueMethod · 0.80
ReplaceMethod · 0.80
NewClosureMethod · 0.80
SetUpvalueMethod · 0.80

Calls 2

IsClosedMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected