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

Method Concatenate

code.go:515–528  ·  view source on GitHub ↗
(l1, l2 int)

Source from the content-addressed store, hash-verified

513}
514
515func (f *function) Concatenate(l1, l2 int) int {
516 f.assert(f.isJumpListWalkable(l1))
517 switch {
518 case l2 == noJump:
519 case l1 == noJump:
520 return l2
521 default:
522 list := l1
523 for next := f.jump(list); next != noJump; list, next = next, f.jump(next) {
524 }
525 f.fixJump(list, l2)
526 }
527 return l1
528}
529
530func (f *function) addConstant(k, v value) int {
531 if index, ok := f.constantLookup[k]; ok && f.f.constants[index] == v {

Callers 7

JumpMethod · 0.95
PatchToHereMethod · 0.95
expressionToRegisterMethod · 0.95
GoIfTrueMethod · 0.95
GoIfFalseMethod · 0.95
PostfixMethod · 0.95
testThenBlockMethod · 0.80

Calls 4

assertMethod · 0.95
isJumpListWalkableMethod · 0.95
jumpMethod · 0.95
fixJumpMethod · 0.95

Tested by

no test coverage detected