MCPcopy Index your code
hub / github.com/yuin/gopher-lua / Concat

Method Concat

_state.go:1766–1774  ·  view source on GitHub ↗

* }}} */ * binary operations {{{ */

(values ...LValue)

Source from the content-addressed store, hash-verified

1764/* binary operations {{{ */
1765
1766func (ls *LState) Concat(values ...LValue) string {
1767 top := ls.reg.Top()
1768 for _, value := range values {
1769 ls.reg.Push(value)
1770 }
1771 ret := stringConcat(ls, len(values), ls.reg.Top()-1)
1772 ls.reg.SetTop(top)
1773 return LVAsString(ret)
1774}
1775
1776func (ls *LState) LessThan(lhs, rhs LValue) bool {
1777 return lessThan(ls, lhs, rhs)

Callers

nothing calls this directly

Calls 5

LVAsStringFunction · 0.85
stringConcatFunction · 0.70
PushMethod · 0.65
TopMethod · 0.45
SetTopMethod · 0.45

Tested by

no test coverage detected