MCPcopy Index your code
hub / github.com/Shopify/go-lua / OpenConstructor

Method OpenConstructor

code.go:1078–1082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1076}
1077
1078func (f *function) OpenConstructor() (pc int, t exprDesc) {
1079 pc = f.EncodeABC(opNewTable, 0, 0, 0)
1080 t = f.ExpressionToNextRegister(makeExpression(kindRelocatable, pc))
1081 return
1082}
1083
1084func (f *function) FlushFieldToConstructor(tableRegister, freeRegisterCount int, k exprDesc, v func() exprDesc) {
1085 _, rk := f.expressionToRegisterOrConstant(k)

Callers 1

constructorMethod · 0.80

Calls 3

EncodeABCMethod · 0.95
makeExpressionFunction · 0.85

Tested by

no test coverage detected