Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
572
func
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
expr
Method · 0.92
fstringExpr
Method · 0.92
valueToExpr
Function · 0.85
unionToExpr
Function · 0.85
Calls
3
NewTypeValue
Function · 0.92
NewLiteral
Function · 0.70
NewCall
Function · 0.70
Tested by
no test coverage detected