StatementList
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "AST/ParameterList.h"
|
||||
#include "AST/ASTVisitor.h"
|
||||
#include <iostream>
|
||||
|
||||
ParameterList::ParameterList() {
|
||||
//
|
||||
@@ -15,7 +14,6 @@ void ParameterList::accept(ASTVisitor* visitor) {
|
||||
}
|
||||
|
||||
void ParameterList::addParameter(Type* type, std::string name) {
|
||||
std::cout << "added parameter of type " << type->getName() << " and name " << name << std::endl;
|
||||
params_.push_back(Parameter(type, name));
|
||||
}
|
||||
|
||||
|
||||
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