1#pragma once
2
3#include <Parsers/IAST.h>
4
5namespace DB
6{
7
8/// It converts if-chain to multiIf.
9class OptimizeIfChainsVisitor
10{
11public:
12 OptimizeIfChainsVisitor() = default;
13 void visit(ASTPtr & ast);
14
15private:
16 ASTs ifChain(const ASTPtr & child);
17};
18
19}
20