(expr *exprpb.Expr)
| 645 | } |
| 646 | |
| 647 | func (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 | |
| 657 | func (con *converter) visitStructMsg(expr *exprpb.Expr) error { |
| 658 | m := expr.GetStructExpr() |
no test coverage detected