| 345 | } |
| 346 | |
| 347 | ASTPtr IQueryTreeNode::toAST(const ConvertToASTOptions & options) const |
| 348 | { |
| 349 | auto converted_node = toASTImpl(options); |
| 350 | |
| 351 | if (auto * /*ast_with_alias*/ _ = dynamic_cast<ASTWithAlias *>(converted_node.get())) |
| 352 | converted_node->setAlias(alias); |
| 353 | |
| 354 | converted_node->setParenthesized(parenthesized); |
| 355 | |
| 356 | return converted_node; |
| 357 | } |
| 358 | |
| 359 | String IQueryTreeNode::formatOriginalASTForErrorMessage() const |
| 360 | { |
no test coverage detected