mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
36 lines
694 B
C++
36 lines
694 B
C++
#pragma once
|
|
|
|
#include <DB/Parsers/IAST.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using Poco::SharedPtr;
|
|
|
|
|
|
/** Список выражений типа "a, b + c, f(d)"
|
|
*/
|
|
class ASTExpressionList : public IAST
|
|
{
|
|
public:
|
|
ASTExpressionList() {}
|
|
ASTExpressionList(StringRange range_) : IAST(range_) {}
|
|
|
|
/** Получить текст, который идентифицирует этот элемент. */
|
|
String getID() { return "ExpressionList"; }
|
|
|
|
ASTPtr clone() const
|
|
{
|
|
ASTExpressionList * res = new ASTExpressionList(*this);
|
|
res->children.clear();
|
|
|
|
for (ASTs::const_iterator it = children.begin(); it != children.end(); ++it)
|
|
res->children.push_back((*it)->clone());
|
|
|
|
return res;
|
|
}
|
|
};
|
|
|
|
}
|