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

Method FlushToConstructor

code.go:1091–1098  ·  view source on GitHub ↗
(tableRegister, pending, arrayCount int, e exprDesc)

Source from the content-addressed store, hash-verified

1089}
1090
1091func (f *function) FlushToConstructor(tableRegister, pending, arrayCount int, e exprDesc) int {
1092 f.ExpressionToNextRegister(e)
1093 if pending == listItemsPerFlush {
1094 f.setList(tableRegister, arrayCount, listItemsPerFlush)
1095 pending = 0
1096 }
1097 return pending
1098}
1099
1100func (f *function) CloseConstructor(pc, tableRegister, pending, arrayCount, hashCount int, e exprDesc) {
1101 if pending != 0 {

Callers 1

constructorMethod · 0.80

Calls 2

setListMethod · 0.95

Tested by

no test coverage detected