MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertCastExpr

Method convertCastExpr

internal/engine/clickhouse/convert.go:575–588  ·  view source on GitHub ↗
(n *chast.CastExpr)

Source from the content-addressed store, hash-verified

573}
574
575func (c *cc) convertCastExpr(n *chast.CastExpr) *ast.TypeCast {
576 tc := &ast.TypeCast{
577 Arg: c.convertExpr(n.Expr),
578 Location: n.Pos().Offset,
579 }
580
581 if n.Type != nil {
582 tc.TypeName = &ast.TypeName{
583 Name: n.Type.Name,
584 }
585 }
586
587 return tc
588}
589
590func (c *cc) convertBetweenExpr(n *chast.BetweenExpr) *ast.BetweenExpr {
591 return &ast.BetweenExpr{

Callers 1

convertExprMethod · 0.95

Calls 2

convertExprMethod · 0.95
PosMethod · 0.65

Tested by

no test coverage detected