(id int64, e MapEntry)
| 455 | } |
| 456 | |
| 457 | func protoMapEntry(id int64, e MapEntry) (*exprpb.Expr_CreateStruct_Entry, error) { |
| 458 | k, err := ExprToProto(e.Key()) |
| 459 | if err != nil { |
| 460 | return nil, err |
| 461 | } |
| 462 | v, err := ExprToProto(e.Value()) |
| 463 | if err != nil { |
| 464 | return nil, err |
| 465 | } |
| 466 | return &exprpb.Expr_CreateStruct_Entry{ |
| 467 | Id: id, |
| 468 | KeyKind: &exprpb.Expr_CreateStruct_Entry_MapKey{ |
| 469 | MapKey: k, |
| 470 | }, |
| 471 | Value: v, |
| 472 | OptionalEntry: e.IsOptional(), |
| 473 | }, nil |
| 474 | } |
| 475 | |
| 476 | func protoSelect(id int64, s SelectExpr) (*exprpb.Expr, error) { |
| 477 | op, err := ExprToProto(s.Operand()) |
no test coverage detected