(id int64, s SelectExpr)
| 474 | } |
| 475 | |
| 476 | func protoSelect(id int64, s SelectExpr) (*exprpb.Expr, error) { |
| 477 | op, err := ExprToProto(s.Operand()) |
| 478 | if err != nil { |
| 479 | return nil, err |
| 480 | } |
| 481 | return &exprpb.Expr{ |
| 482 | Id: id, |
| 483 | ExprKind: &exprpb.Expr_SelectExpr{ |
| 484 | SelectExpr: &exprpb.Expr_Select{ |
| 485 | Operand: op, |
| 486 | Field: s.FieldName(), |
| 487 | TestOnly: s.IsTestOnly(), |
| 488 | }, |
| 489 | }, |
| 490 | }, nil |
| 491 | } |
| 492 | |
| 493 | func protoStruct(id int64, s StructExpr) (*exprpb.Expr, error) { |
| 494 | entries := make([]*exprpb.Expr_CreateStruct_Entry, len(s.Fields())) |
no test coverage detected