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

Method PatchList

code.go:489–496  ·  view source on GitHub ↗
(list, target int)

Source from the content-addressed store, hash-verified

487}
488
489func (f *function) PatchList(list, target int) {
490 if target == len(f.f.code) {
491 f.PatchToHere(list)
492 } else {
493 f.assert(target < len(f.f.code))
494 f.patchListHelper(list, target, noRegister, target)
495 }
496}
497
498func (f *function) PatchClose(list, level int) {
499 f.assert(f.isJumpListWalkable(list))

Callers 4

closeGotoMethod · 0.95
JumpToMethod · 0.95
CloseForBodyMethod · 0.95
repeatStatementMethod · 0.80

Calls 3

PatchToHereMethod · 0.95
assertMethod · 0.95
patchListHelperMethod · 0.95

Tested by

no test coverage detected