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

Method error

runtime/sam/expr/function/cast.go:84–86  ·  view source on GitHub ↗
(from super.Value, to super.Type)

Source from the content-addressed store, hash-verified

82}
83
84func (c *cast) error(from super.Value, to super.Type) (super.Value, bool) {
85 return c.sctx.WrapError("cannot cast to "+sup.FormatType(to), from), false
86}
87
88func (c *cast) toRecord(from super.Value, to *super.TypeRecord) (super.Value, bool) {
89 fromRecType := super.TypeRecordOf(from.Type())

Callers 5

CastMethod · 0.95
toRecordMethod · 0.95
toArrayOrSetMethod · 0.95
toMapMethod · 0.95
toUnionMethod · 0.95

Calls 2

FormatTypeFunction · 0.92
WrapErrorMethod · 0.80

Tested by

no test coverage detected