Use Type in VariableDefinition

This commit is contained in:
Markus Hauschild
2013-06-01 00:43:30 +02:00
parent e2ab5af964
commit a6f0c9ec81
4 changed files with 11 additions and 12 deletions

View File

@@ -4,21 +4,20 @@
#include <string>
#include "AST/Statement.h"
#include "AST/Type.h"
class VariableDefinition : public Statement
{
public:
VariableDefinition(int type, std::string name);
VariableDefinition(Type *type, std::string name);
virtual ~VariableDefinition();
virtual void accept(ASTVisitor* visitor);
// Type* getType();
int getType();
Type* getType();
std::string getName();
private:
// Type* type_
int type_;
Type* type_;
std::string name_;
};