summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/PostfixExpression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/AST/PostfixExpression.cpp')
-rw-r--r--Sencha-lang/AST/PostfixExpression.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/Sencha-lang/AST/PostfixExpression.cpp b/Sencha-lang/AST/PostfixExpression.cpp
index d277560..737b287 100644
--- a/Sencha-lang/AST/PostfixExpression.cpp
+++ b/Sencha-lang/AST/PostfixExpression.cpp
@@ -7,11 +7,10 @@
#include "PostfixExpression.h"
-PostfixExpression::PostfixExpression(Context * context) {
- this->context = context;
- name = "";
- native = false;
- this->type = "PostfixExpression";
+PostfixExpression::PostfixExpression(std::string name, Context * context):
+ context(context), name(name), native(false), type("PostfixExpression")
+{
+
}
PostfixExpression::~PostfixExpression() {