| 82 | using HideDiskConfigurationVisitor = InDepthNodeVisitor<DiskConfigurationMasker, false>; |
| 83 | |
| 84 | String FieldFromASTImpl::toString(bool show_secrets) const |
| 85 | { |
| 86 | if (!show_secrets && isDiskFunction(ast)) |
| 87 | { |
| 88 | auto hidden = ast->clone(); |
| 89 | HideDiskConfigurationVisitor::Data data{}; |
| 90 | HideDiskConfigurationVisitor{data}.visit(hidden); |
| 91 | return hidden->formatWithSecretsOneLine(); |
| 92 | } |
| 93 | |
| 94 | return ast->formatWithSecretsOneLine(); |
| 95 | } |
| 96 | |
| 97 | } |
no test coverage detected