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

Method SetLocal

state.go:1828–1835  ·  view source on GitHub ↗
(dbg *Debug, no int, lv LValue)

Source from the content-addressed store, hash-verified

1826}
1827
1828func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string {
1829 frame := dbg.frame
1830 if name := ls.findLocal(frame, no); len(name) > 0 {
1831 ls.reg.Set(frame.LocalBase+no-1, lv)
1832 return name
1833 }
1834 return ""
1835}
1836
1837func (ls *LState) GetUpvalue(fn *LFunction, no int) (string, LValue) {
1838 if fn.IsG {

Callers 1

debugSetLocalFunction · 0.45

Calls 2

findLocalMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected