AstToParsedExpr converts an Ast to an protobuf ParsedExpr value.
(a *Ast)
| 112 | |
| 113 | // AstToParsedExpr converts an Ast to an protobuf ParsedExpr value. |
| 114 | func AstToParsedExpr(a *Ast) (*exprpb.ParsedExpr, error) { |
| 115 | return &exprpb.ParsedExpr{ |
| 116 | Expr: a.Expr(), |
| 117 | SourceInfo: a.SourceInfo(), |
| 118 | }, nil |
| 119 | } |
| 120 | |
| 121 | // AstToString converts an Ast back to a string if possible. |
| 122 | // |