MCPcopy Create free account
hub / github.com/brimdata/super / Call

Method Call

runtime/sam/expr/function/string.go:15–31  ·  view source on GitHub ↗
(args []super.Value)

Source from the content-addressed store, hash-verified

13}
14
15func (c *Concat) Call(args []super.Value) super.Value {
16 args = underAll(args)
17 var b strings.Builder
18 for _, arg := range args {
19 if arg.IsError() {
20 return arg
21 }
22 if arg.IsNull() {
23 continue
24 }
25 if !arg.IsString() {
26 return c.sctx.WrapError("concat: string arg required", arg)
27 }
28 b.WriteString(super.DecodeString(arg.Bytes()))
29 }
30 return super.NewString(b.String())
31}
32
33type Position struct {
34 sctx *super.Context

Callers

nothing calls this directly

Calls 9

DecodeStringFunction · 0.92
NewStringFunction · 0.92
IsErrorMethod · 0.80
IsNullMethod · 0.80
IsStringMethod · 0.80
WrapErrorMethod · 0.80
underAllFunction · 0.70
StringMethod · 0.65
BytesMethod · 0.45

Tested by

no test coverage detected