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)
| 105 | // ExprToString converts an AST Expr node back to a string using macro call tracking metadata from |
| 106 | // source info if any macros are encountered within the expression. |
| 107 | func ExprToString(e ast.Expr, info *ast.SourceInfo) (string, error) { |
| 108 | return parser.Unparse(e, info) |
| 109 | } |
| 110 | |
| 111 | // RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value. |
| 112 | // The result Value is the serialized proto form. The ref.Val must not be error or unknown. |