23 lines
407 B
C++
23 lines
407 B
C++
#include "AST/StatementList.h"
|
|
#include "AST/ASTVisitor.h"
|
|
|
|
StatementList::StatementList() {
|
|
//
|
|
}
|
|
|
|
StatementList::~StatementList() {
|
|
//
|
|
}
|
|
|
|
void StatementList::accept(ASTVisitor* visitor) {
|
|
visitor->visit(this);
|
|
}
|
|
|
|
void StatementList::addStatement(Statement* statement) {
|
|
statements_.push_back(statement);
|
|
}
|
|
|
|
std::vector<Statement*> StatementList::getStatements() {
|
|
return statements_;
|
|
}
|