aboutsummaryrefslogtreecommitdiff
path: root/src/MoonP/moon_compiler.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-01-25 17:48:03 +0800
committerLi Jin <dragon-fly@qq.com>2020-01-25 17:48:03 +0800
commited317e62eb1cf98fde4461fc90c6cb1045ebc7e8 (patch)
tree427e365939da39f31dbfa755675fb60bb141583d /src/MoonP/moon_compiler.cpp
parent4827d200604a086e2ad94edb4257c3abc7a3c4fc (diff)
downloadyuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.gz
yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.tar.bz2
yuescript-ed317e62eb1cf98fde4461fc90c6cb1045ebc7e8.zip
fix Moonscript issue 375.
Diffstat (limited to 'src/MoonP/moon_compiler.cpp')
-rw-r--r--src/MoonP/moon_compiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/MoonP/moon_compiler.cpp b/src/MoonP/moon_compiler.cpp
index b1770fb..4723af4 100644
--- a/src/MoonP/moon_compiler.cpp
+++ b/src/MoonP/moon_compiler.cpp
@@ -601,6 +601,7 @@ private:
601 601
602 auto ifCond = x->new_ptr<IfCond_t>(); 602 auto ifCond = x->new_ptr<IfCond_t>();
603 ifCond->condition.set(if_else_line->condition); 603 ifCond->condition.set(if_else_line->condition);
604 ifCond->assign.set(if_else_line->assign);
604 ifNode->nodes.push_back(ifCond); 605 ifNode->nodes.push_back(ifCond);
605 606
606 auto stmt = x->new_ptr<Statement_t>(); 607 auto stmt = x->new_ptr<Statement_t>();