diff options
author | Li Jin <dragon-fly@qq.com> | 2024-09-29 16:46:25 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2024-09-29 16:46:51 +0800 |
commit | 91ca3bfacc2b3f5516a519c939814d7462f73141 (patch) | |
tree | c7783eaab5d37d79596e3c2b5e8aafb2264a0d06 /src | |
parent | 6af288657f5a7c43570ffbe91e1b727a4af5362d (diff) | |
download | yuescript-91ca3bfacc2b3f5516a519c939814d7462f73141.tar.gz yuescript-91ca3bfacc2b3f5516a519c939814d7462f73141.tar.bz2 yuescript-91ca3bfacc2b3f5516a519c939814d7462f73141.zip |
Cleaned up.v0.25.4
Diffstat (limited to 'src')
-rw-r--r-- | src/yuescript/yue_compiler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index ef8e59e..b7e09d3 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
@@ -4390,11 +4390,7 @@ private: | |||
4390 | } | 4390 | } |
4391 | 4391 | ||
4392 | void transformFunLit(FunLit_t* funLit, str_list& out) { | 4392 | void transformFunLit(FunLit_t* funLit, str_list& out) { |
4393 | if (funLit->isAnon) { | 4393 | pushFunctionScope(funLit->isAnon); |
4394 | pushAnonFunctionScope(); | ||
4395 | } else { | ||
4396 | pushUserFunctionScope(); | ||
4397 | } | ||
4398 | _varArgs.push({false, false}); | 4394 | _varArgs.push({false, false}); |
4399 | bool isFatArrow = _parser.toString(funLit->arrow) == "=>"sv; | 4395 | bool isFatArrow = _parser.toString(funLit->arrow) == "=>"sv; |
4400 | pushScope(); | 4396 | pushScope(); |