Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
64
func
(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
72
func
(uv *Upvalue) Close() {
73
value := uv.Value()
Callers
8
init
Function · 0.80
init
Function · 0.80
Replace
Method · 0.80
NewClosure
Method · 0.80
SetUpvalue
Method · 0.80
Replace
Method · 0.80
NewClosure
Method · 0.80
SetUpvalue
Method · 0.80
Calls
2
IsClosed
Method · 0.95
Set
Method · 0.45
Tested by
no test coverage detected