(factory ExprFactory, id int64, f *exprpb.Expr_CreateStruct_Entry)
| 271 | } |
| 272 | |
| 273 | func exprStructField(factory ExprFactory, id int64, f *exprpb.Expr_CreateStruct_Entry) (EntryExpr, error) { |
| 274 | v, err := exprInternal(factory, f.GetValue()) |
| 275 | if err != nil { |
| 276 | return nil, err |
| 277 | } |
| 278 | return factory.NewStructField(id, f.GetFieldKey(), v, f.GetOptionalEntry()), nil |
| 279 | } |
| 280 | |
| 281 | // ExprToProto serializes an ast.Expr value to a protobuf Expr representation. |
| 282 | func ExprToProto(e Expr) (*exprpb.Expr, error) { |
no test coverage detected