(factory ExprFactory, id int64, s *exprpb.Expr_Select)
| 248 | } |
| 249 | |
| 250 | func exprSelect(factory ExprFactory, id int64, s *exprpb.Expr_Select) (Expr, error) { |
| 251 | op, err := exprInternal(factory, s.GetOperand()) |
| 252 | if err != nil { |
| 253 | return nil, err |
| 254 | } |
| 255 | if s.GetTestOnly() { |
| 256 | return factory.NewPresenceTest(id, op, s.GetField()), nil |
| 257 | } |
| 258 | return factory.NewSelect(id, op, s.GetField()), nil |
| 259 | } |
| 260 | |
| 261 | func exprStruct(factory ExprFactory, id int64, s *exprpb.Expr_CreateStruct) (Expr, error) { |
| 262 | fields := make([]EntryExpr, len(s.GetEntries())) |
no test coverage detected