summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/PostfixExpression.cpp
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-28 16:19:47 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2012-12-28 16:19:47 +0100
commit4d3eaee1b6f0ea0c0c9a28f11ce9ba249a0def96 (patch)
tree6b6d54a0f21a5bd06b2ea16d2c50c5ec783328ee /Sencha-lang/AST/PostfixExpression.cpp
parent0e6bdecf2a2fe49122cd7a271521746f6de0cfb6 (diff)
downloadsencha-lang-4d3eaee1b6f0ea0c0c9a28f11ce9ba249a0def96.tar.gz
sencha-lang-4d3eaee1b6f0ea0c0c9a28f11ce9ba249a0def96.tar.bz2
sencha-lang-4d3eaee1b6f0ea0c0c9a28f11ce9ba249a0def96.tar.xz
sencha-lang-4d3eaee1b6f0ea0c0c9a28f11ce9ba249a0def96.zip
Refactoring parser methods. Adding more suitable constructors
to make code better.
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() {