2022-04-03 12:27:35 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Node.h"
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
namespace sqlast {
|
|
|
|
|
|
|
|
|
|
class Statement;
|
|
|
|
|
|
|
|
|
|
class StatementList: public Node
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
StatementList();
|
|
|
|
|
|
|
|
|
|
void Add(std::unique_ptr<Statement> &&statement);
|
|
|
|
|
Statement &Get(int index);
|
|
|
|
|
int Count() const;
|
|
|
|
|
|
2022-04-07 19:35:29 +02:00
|
|
|
void Accept(NodeVisitor &visitor) override;
|
2022-04-03 12:27:35 +02:00
|
|
|
private:
|
|
|
|
|
using Statements = std::vector<std::unique_ptr<Statement>>;
|
|
|
|
|
|
|
|
|
|
Statements statements;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|