ExprToString converts an AST Expr node back to a string using macro call tracking metadata from source info if any macros are encountered within the expression.
(e ast.Expr, info *ast.SourceInfo)
| 129 | // ExprToString converts an AST Expr node back to a string using macro call tracking metadata from |
| 130 | // source info if any macros are encountered within the expression. |
| 131 | func ExprToString(e ast.Expr, info *ast.SourceInfo) (string, error) { |
| 132 | return parser.Unparse(e, info) |
| 133 | } |
| 134 | |
| 135 | // RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value. |
| 136 | // The result Value is the serialized proto form. The ref.Val must not be error or unknown. |