(expression: expr.ASTWithSource)
| 10 | |
| 11 | /** Serializes the given AST into a normalized string format. */ |
| 12 | export function serialize(expression: expr.ASTWithSource): string { |
| 13 | return expression.visit(new SerializeExpressionVisitor()); |
| 14 | } |
| 15 | |
| 16 | class SerializeExpressionVisitor implements expr.AstVisitor { |
| 17 | visitUnary(ast: expr.Unary, context: any): string { |