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

Function newLFunctionG

function.go:166–175  ·  view source on GitHub ↗
(gfunc LGFunction, env *LTable, nupvalue int)

Source from the content-addressed store, hash-verified

164}
165
166func newLFunctionG(gfunc LGFunction, env *LTable, nupvalue int) *LFunction {
167 return &LFunction{
168 IsG: true,
169 Env: env,
170
171 Proto: nil,
172 GFunction: gfunc,
173 Upvalues: make([]*Upvalue, nupvalue),
174 }
175}
176
177func (fn *LFunction) LocalName(regno, pc int) (string, bool) {
178 if fn.IsG {

Callers 6

NewFunctionMethod · 0.85
NewClosureMethod · 0.85
GPCallMethod · 0.85
NewFunctionMethod · 0.85
NewClosureMethod · 0.85
GPCallMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…