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

Method PatchToHere

code.go:507–513  ·  view source on GitHub ↗
(list int)

Source from the content-addressed store, hash-verified

505}
506
507func (f *function) PatchToHere(list int) {
508 f.assert(f.isJumpListWalkable(list))
509 f.assert(f.isJumpListWalkable(f.jumpPC))
510 f.Label()
511 f.jumpPC = f.Concatenate(f.jumpPC, list)
512 f.assert(f.isJumpListWalkable(f.jumpPC))
513}
514
515func (f *function) Concatenate(l1, l2 int) int {
516 f.assert(f.isJumpListWalkable(l1))

Callers 9

LeaveBlockMethod · 0.95
PatchListMethod · 0.95
expressionToRegisterMethod · 0.95
GoIfTrueMethod · 0.95
GoIfFalseMethod · 0.95
CloseForBodyMethod · 0.95
testThenBlockMethod · 0.80
ifStatementMethod · 0.80
whileStatementMethod · 0.80

Calls 4

assertMethod · 0.95
isJumpListWalkableMethod · 0.95
LabelMethod · 0.95
ConcatenateMethod · 0.95

Tested by

no test coverage detected