NewObjectFieldInit creates a new Object field initializer from the field name and value.
(field string, init *exprpb.Expr, optional bool)
| 447 | |
| 448 | // NewObjectFieldInit creates a new Object field initializer from the field name and value. |
| 449 | func (ah *adaptingHelper) NewObjectFieldInit(field string, init *exprpb.Expr, optional bool) *exprpb.Expr_CreateStruct_Entry { |
| 450 | return mustAdaptToProtoEntry( |
| 451 | ah.modernHelper.NewStructField(field, mustAdaptToExpr(init), optional)) |
| 452 | } |
| 453 | |
| 454 | // Fold creates a fold comprehension instruction. |
| 455 | // |
nothing calls this directly
no test coverage detected