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

Function convertTypeCast

internal/engine/postgresql/convert.go:2763–2772  ·  view source on GitHub ↗
(n *pg.TypeCast)

Source from the content-addressed store, hash-verified

2761}
2762
2763func convertTypeCast(n *pg.TypeCast) *ast.TypeCast {
2764 if n == nil {
2765 return nil
2766 }
2767 return &ast.TypeCast{
2768 Arg: convertNode(n.Arg),
2769 TypeName: convertTypeName(n.TypeName),
2770 Location: int(n.Location),
2771 }
2772}
2773
2774func convertTypeName(n *pg.TypeName) *ast.TypeName {
2775 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

convertNodeFunction · 0.85
convertTypeNameFunction · 0.70

Tested by

no test coverage detected