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

Method convertArrayAccess

internal/engine/clickhouse/convert.go:667–678  ·  view source on GitHub ↗
(n *chast.ArrayAccess)

Source from the content-addressed store, hash-verified

665}
666
667func (c *cc) convertArrayAccess(n *chast.ArrayAccess) *ast.A_Indirection {
668 return &ast.A_Indirection{
669 Arg: c.convertExpr(n.Array),
670 Indirection: &ast.List{
671 Items: []ast.Node{
672 &ast.A_Indices{
673 Uidx: c.convertExpr(n.Index),
674 },
675 },
676 },
677 }
678}
679
680func (c *cc) convertUnaryExpr(n *chast.UnaryExpr) ast.Node {
681 op := strings.ToUpper(n.Op)

Callers 1

convertExprMethod · 0.95

Calls 1

convertExprMethod · 0.95

Tested by

no test coverage detected