(e ast.Expr)
| 564 | } |
| 565 | |
| 566 | func adaptToProto(e ast.Expr) (*exprpb.Expr, *Error) { |
| 567 | if e == nil { |
| 568 | return nil, nil |
| 569 | } |
| 570 | out, err := ast.ExprToProto(e) |
| 571 | if err != nil { |
| 572 | return nil, wrapErr(e.ID(), "expr conversion failure", err) |
| 573 | } |
| 574 | return out, nil |
| 575 | } |
| 576 | |
| 577 | func mustAdaptToProtoEntry(e ast.EntryExpr) *exprpb.Expr_CreateStruct_Entry { |
| 578 | out, _ := ast.EntryExprToProto(e) |
no test coverage detected