| 655 | } |
| 656 | |
| 657 | func (con *converter) visitStructMsg(expr *exprpb.Expr) error { |
| 658 | m := expr.GetStructExpr() |
| 659 | entries := m.GetEntries() |
| 660 | con.str.WriteString(m.GetMessageName()) |
| 661 | con.str.WriteString("{") |
| 662 | for i, entry := range entries { |
| 663 | f := entry.GetFieldKey() |
| 664 | con.str.WriteString(f) |
| 665 | con.str.WriteString(": ") |
| 666 | v := entry.GetValue() |
| 667 | err := con.visit(v) |
| 668 | if err != nil { |
| 669 | return err |
| 670 | } |
| 671 | if i < len(entries)-1 { |
| 672 | con.str.WriteString(", ") |
| 673 | } |
| 674 | } |
| 675 | con.str.WriteString("}") |
| 676 | return nil |
| 677 | } |
| 678 | |
| 679 | func (con *converter) visitStructMap(expr *exprpb.Expr) error { |
| 680 | m := expr.GetStructExpr() |