(args ...vector.Any)
| 206 | } |
| 207 | |
| 208 | func (k *Kind) Call(args ...vector.Any) vector.Any { |
| 209 | vec := vector.Under(args[0]) |
| 210 | if typ := vec.Type(); typ.ID() != super.IDType { |
| 211 | s := typ.Kind().String() |
| 212 | return vector.NewConstString(s, vec.Len()) |
| 213 | } |
| 214 | out := vector.NewStringEmpty(vec.Len()) |
| 215 | for i, n := uint32(0), vec.Len(); i < n; i++ { |
| 216 | bytes := vector.TypeValueValue(vec, i) |
| 217 | typ, err := k.sctx.LookupByValue(bytes) |
| 218 | if err != nil { |
| 219 | panic(err) |
| 220 | } |
| 221 | out.Append(typ.Kind().String()) |
| 222 | } |
| 223 | return out |
| 224 | } |
| 225 | |
| 226 | func (*Kind) RipUnions() bool { |
| 227 | return false |
nothing calls this directly
no test coverage detected