MCPcopy Create free account
hub / github.com/cockscomb/cel2sql / visitStruct

Method visitStruct

cel2sql.go:647–655  ·  view source on GitHub ↗
(expr *exprpb.Expr)

Source from the content-addressed store, hash-verified

645}
646
647func (con *converter) visitStruct(expr *exprpb.Expr) error {
648 s := expr.GetStructExpr()
649 // If the message name is non-empty, then this should be treated as message construction.
650 if s.GetMessageName() != "" {
651 return con.visitStructMsg(expr)
652 }
653 // Otherwise, build a map.
654 return con.visitStructMap(expr)
655}
656
657func (con *converter) visitStructMsg(expr *exprpb.Expr) error {
658 m := expr.GetStructExpr()

Callers 1

visitMethod · 0.95

Calls 2

visitStructMsgMethod · 0.95
visitStructMapMethod · 0.95

Tested by

no test coverage detected