MCPcopy Index your code
hub / github.com/cockscomb/cel2sql / visitMaybeNested

Method visitMaybeNested

cel2sql.go:702–714  ·  view source on GitHub ↗
(expr *exprpb.Expr, nested bool)

Source from the content-addressed store, hash-verified

700}
701
702func (con *converter) visitMaybeNested(expr *exprpb.Expr, nested bool) error {
703 if nested {
704 con.str.WriteString("(")
705 }
706 err := con.visit(expr)
707 if err != nil {
708 return err
709 }
710 if nested {
711 con.str.WriteString(")")
712 }
713 return nil
714}
715
716func (con *converter) getType(node *exprpb.Expr) *exprpb.Type {
717 return con.typeMap[node.GetId()]

Callers 8

visitCallBinaryMethod · 0.95
callContainsMethod · 0.95
visitCallFuncMethod · 0.95
visitCallMapIndexMethod · 0.95
visitCallListIndexMethod · 0.95
visitCallUnaryMethod · 0.95
visitSelectMethod · 0.95

Calls 1

visitMethod · 0.95

Tested by

no test coverage detected