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

Method metaCall

state.go:1026–1034  ·  view source on GitHub ↗
(lvalue LValue)

Source from the content-addressed store, hash-verified

1024}
1025
1026func (ls *LState) metaCall(lvalue LValue) (*LFunction, bool) {
1027 if fn, ok := lvalue.(*LFunction); ok {
1028 return fn, false
1029 }
1030 if fn, ok := ls.metaOp1(lvalue, "__call").(*LFunction); ok {
1031 return fn, true
1032 }
1033 return nil, false
1034}
1035
1036func (ls *LState) initCallFrame(cf *callFrame) { // +inline-start
1037 if cf.Fn.IsG {

Callers 3

callRMethod · 0.95
initFunction · 0.45
initFunction · 0.45

Calls 1

metaOp1Method · 0.95

Tested by

no test coverage detected