summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/VariableExpression.cpp
diff options
context:
space:
mode:
authorJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-10 16:15:43 +0100
committerJustyna Ilczuk <justyna.ilczuk@gmail.com>2013-01-10 16:15:43 +0100
commit7d60b159cc5a63f3835d253a109ae5999bf29fc5 (patch)
treececd0fefc36e971fd73d09b9cbaa8200167c7840 /Sencha-lang/AST/VariableExpression.cpp
parent82a5924c4e6d6ac72e31367506233d94b74b63e4 (diff)
downloadsencha-lang-7d60b159cc5a63f3835d253a109ae5999bf29fc5.tar.gz
sencha-lang-7d60b159cc5a63f3835d253a109ae5999bf29fc5.tar.bz2
sencha-lang-7d60b159cc5a63f3835d253a109ae5999bf29fc5.tar.xz
sencha-lang-7d60b159cc5a63f3835d253a109ae5999bf29fc5.zip
Arrays!
Diffstat (limited to 'Sencha-lang/AST/VariableExpression.cpp')
-rw-r--r--Sencha-lang/AST/VariableExpression.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Sencha-lang/AST/VariableExpression.cpp b/Sencha-lang/AST/VariableExpression.cpp
index 22f4465..8adfaaf 100644
--- a/Sencha-lang/AST/VariableExpression.cpp
+++ b/Sencha-lang/AST/VariableExpression.cpp
@@ -24,6 +24,10 @@ SenchaObject VariableExpression::evaluate()
auto context = context_manager->get_top();
//std::cout << "I'm retrieving variable " + name + " from " + context->name << std::endl;
SenchaObject result = context->get(name);
+ if(result.type == SenchaObject::string_literal)
+ {
+ result = context->get_updated_string(name);
+ }
//std::cout << "And it's: " + result.repr() << std::endl;
result.name = name;
return result;