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

Method metaOp1

state.go:1001–1008  ·  view source on GitHub ↗
(lvalue LValue, event string)

Source from the content-addressed store, hash-verified

999}
1000
1001func (ls *LState) metaOp1(lvalue LValue, event string) LValue {
1002 if mt := ls.metatable(lvalue, true); mt != LNil {
1003 if tb, ok := mt.(*LTable); ok {
1004 return tb.RawGetString(event)
1005 }
1006 }
1007 return LNil
1008}
1009
1010func (ls *LState) metaOp2(value1, value2 LValue, event string) LValue {
1011 if mt := ls.metatable(value1, true); mt != LNil {

Callers 13

GetMetaFieldMethod · 0.95
CallMetaMethod · 0.95
ToStringMetaMethod · 0.95
metaCallMethod · 0.95
getFieldMethod · 0.95
getFieldStringMethod · 0.95
setFieldMethod · 0.95
setFieldStringMethod · 0.95
ObjLenMethod · 0.95
initFunction · 0.45
objectRationalFunction · 0.45
initFunction · 0.45

Calls 2

metatableMethod · 0.95
RawGetStringMethod · 0.80

Tested by

no test coverage detected