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

Method castNext

runtime/sam/expr/function/cast.go:186–189  ·  view source on GitHub ↗
(it *scode.Iter, from, to super.Type)

Source from the content-addressed store, hash-verified

184}
185
186func (c *cast) castNext(it *scode.Iter, from, to super.Type) (super.Value, bool) {
187 val := super.NewValue(from, it.Next())
188 return c.Cast(val, to)
189}
190
191func (c *cast) maybeConvertToUnion(vals []super.Value, types map[super.Type]struct{}) (super.Type, bool) {
192 typesSlice := slices.Collect(maps.Keys(types))

Callers 2

toArrayOrSetMethod · 0.95
toMapMethod · 0.95

Calls 3

CastMethod · 0.95
NewValueFunction · 0.92
NextMethod · 0.45

Tested by

no test coverage detected