ProtoToExpr converts a protobuf Expr value to an ast.Expr value.
(e *exprpb.Expr)
| 106 | |
| 107 | // ProtoToExpr converts a protobuf Expr value to an ast.Expr value. |
| 108 | func ProtoToExpr(e *exprpb.Expr) (Expr, error) { |
| 109 | factory := NewExprFactory() |
| 110 | return exprInternal(factory, e) |
| 111 | } |
| 112 | |
| 113 | // ProtoToEntryExpr converts a protobuf struct/map entry to an ast.EntryExpr |
| 114 | func ProtoToEntryExpr(e *exprpb.Expr_CreateStruct_Entry) (EntryExpr, error) { |