MCPcopy
hub / github.com/sqlc-dev/sqlc / convertA_Expr

Function convertA_Expr

internal/engine/postgresql/convert.go:125–136  ·  view source on GitHub ↗
(n *pg.A_Expr)

Source from the content-addressed store, hash-verified

123}
124
125func convertA_Expr(n *pg.A_Expr) *ast.A_Expr {
126 if n == nil {
127 return nil
128 }
129 return &ast.A_Expr{
130 Kind: ast.A_Expr_Kind(n.Kind),
131 Name: convertSlice(n.Name),
132 Lexpr: convertNode(n.Lexpr),
133 Rexpr: convertNode(n.Rexpr),
134 Location: int(n.Location),
135 }
136}
137
138func convertA_Indices(n *pg.A_Indices) *ast.A_Indices {
139 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

A_Expr_KindTypeAlias · 0.92
convertSliceFunction · 0.85
convertNodeFunction · 0.85

Tested by

no test coverage detected