(e *exprpb.Expr)
| 543 | } |
| 544 | |
| 545 | func adaptToExpr(e *exprpb.Expr) (ast.Expr, *Error) { |
| 546 | if e == nil { |
| 547 | return nil, nil |
| 548 | } |
| 549 | out, err := ast.ProtoToExpr(e) |
| 550 | if err != nil { |
| 551 | return nil, wrapErr(e.GetId(), "proto conversion failure", err) |
| 552 | } |
| 553 | return out, nil |
| 554 | } |
| 555 | |
| 556 | func mustAdaptToEntryExpr(e *exprpb.Expr_CreateStruct_Entry) ast.EntryExpr { |
| 557 | out, _ := ast.ProtoToEntryExpr(e) |
no test coverage detected