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

Method Call

runtime/sam/expr/function/types.go:143–156  ·  view source on GitHub ↗
(args []super.Value)

Source from the content-addressed store, hash-verified

141}
142
143func (k *Kind) Call(args []super.Value) super.Value {
144 val := args[0]
145 var typ super.Type
146 if _, ok := super.TypeUnder(val.Type()).(*super.TypeOfType); ok {
147 var err error
148 typ, err = k.sctx.LookupByValue(val.Bytes())
149 if err != nil {
150 panic(err)
151 }
152 } else {
153 typ = val.Type()
154 }
155 return super.NewString(typ.Kind().String())
156}

Callers

nothing calls this directly

Calls 7

KindMethod · 0.95
TypeUnderFunction · 0.92
NewStringFunction · 0.92
LookupByValueMethod · 0.80
TypeMethod · 0.65
StringMethod · 0.65
BytesMethod · 0.45

Tested by

no test coverage detected