aboutsummaryrefslogtreecommitdiff
path: root/src/yuescript/yue_compiler.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2023-12-14 13:57:40 +0800
committerLi Jin <dragon-fly@qq.com>2023-12-14 13:57:40 +0800
commit8cff6076041f4204a53a177359783d75698ec19f (patch)
tree5bd396a4c4c0db65434629936d4867627fe711cd /src/yuescript/yue_compiler.cpp
parent5490a7cf22a75653a2b1fca20470f7f0c4ae9ca8 (diff)
downloadyuescript-8cff6076041f4204a53a177359783d75698ec19f.tar.gz
yuescript-8cff6076041f4204a53a177359783d75698ec19f.tar.bz2
yuescript-8cff6076041f4204a53a177359783d75698ec19f.zip
fix invalid formation.v0.21.3
Diffstat (limited to '')
-rw-r--r--src/yuescript/yue_compiler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp
index 59f6d4b..044ee91 100644
--- a/src/yuescript/yue_compiler.cpp
+++ b/src/yuescript/yue_compiler.cpp
@@ -75,7 +75,7 @@ static std::unordered_set<std::string> Metamethods = {
75 "close"s // Lua 5.4 75 "close"s // Lua 5.4
76}; 76};
77 77
78const std::string_view version = "0.21.2"sv; 78const std::string_view version = "0.21.3"sv;
79const std::string_view extension = "yue"sv; 79const std::string_view extension = "yue"sv;
80 80
81class CompileError : public std::logic_error { 81class CompileError : public std::logic_error {
@@ -7713,8 +7713,9 @@ private:
7713 clsDecl = value->get_by_path<SimpleValue_t, ClassDecl_t>(); 7713 clsDecl = value->get_by_path<SimpleValue_t, ClassDecl_t>();
7714 BLOCK_END 7714 BLOCK_END
7715 } else if (auto expList = expListFrom(statement)) { 7715 } else if (auto expList = expListFrom(statement)) {
7716 auto value = singleValueFrom(expList); 7716 if (auto value = singleValueFrom(expList)) {
7717 clsDecl = value->get_by_path<SimpleValue_t, ClassDecl_t>(); 7717 clsDecl = value->get_by_path<SimpleValue_t, ClassDecl_t>();
7718 }
7718 } 7719 }
7719 if (clsDecl) { 7720 if (clsDecl) {
7720 std::string clsName; 7721 std::string clsName;