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

Function NewCast

compiler/semantic/sem/expr.go:572–575  ·  view source on GitHub ↗
(loc ast.Node, e Expr, typ super.Type)

Source from the content-addressed store, hash-verified

570}
571
572func NewCast(loc ast.Node, e Expr, typ super.Type) Expr {
573 args := []Expr{e, NewLiteral(loc, super.NewTypeValue(typ))}
574 return NewCall(loc, "cast", args)
575}

Callers 4

exprMethod · 0.92
fstringExprMethod · 0.92
valueToExprFunction · 0.85
unionToExprFunction · 0.85

Calls 3

NewTypeValueFunction · 0.92
NewLiteralFunction · 0.70
NewCallFunction · 0.70

Tested by

no test coverage detected