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

Method OpenForBody

code.go:1117–1127  ·  view source on GitHub ↗
(base, n int, isNumeric bool)

Source from the content-addressed store, hash-verified

1115}
1116
1117func (f *function) OpenForBody(base, n int, isNumeric bool) (prep int) {
1118 if isNumeric {
1119 prep = f.encodeAsBx(opForPrep, base, noJump)
1120 } else {
1121 prep = f.Jump()
1122 }
1123 f.EnterBlock(false)
1124 f.AdjustLocalVariables(n)
1125 f.ReserveRegisters(n)
1126 return
1127}
1128
1129func (f *function) CloseForBody(prep, base, line, n int, isNumeric bool) {
1130 f.LeaveBlock()

Callers 1

forBodyMethod · 0.80

Calls 5

encodeAsBxMethod · 0.95
JumpMethod · 0.95
EnterBlockMethod · 0.95
AdjustLocalVariablesMethod · 0.95
ReserveRegistersMethod · 0.95

Tested by

no test coverage detected