StatementList
This commit is contained in:
22
src/AST/StatementList.cpp
Normal file
22
src/AST/StatementList.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#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_;
|
||||
}
|
||||
Reference in New Issue
Block a user