diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-04-16 17:06:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 17:06:38 +0800 |
commit | 0e44a7db4cb535ee79630876ea02bccf5e2693a1 (patch) | |
tree | 0df2a0d47cdeeee83b79becbff731b4b9bf697c5 /script | |
parent | bfe661844b385f085b3de4162125ab55787b0056 (diff) | |
parent | a29d931a86296e4b542faa37ea3ff77c4c9191df (diff) | |
download | lua-language-server-0e44a7db4cb535ee79630876ea02bccf5e2693a1.zip |
Merge pull request #2574 from Luke100000/patch-1
Update compiler.lua
Diffstat (limited to 'script')
-rw-r--r-- | script/vm/compiler.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index fc8f7c52..11ba07ab 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1055,7 +1055,7 @@ local function compileFunctionParam(func, source) local derviationParam = config.get(guide.getUri(func), 'Lua.type.inferParamType') if derviationParam and func.parent.type == 'local' and func.parent.ref then local refs = func.parent.ref - local found + local found for _, ref in ipairs(refs) do if ref.parent.type ~= 'call' then goto continue @@ -1069,13 +1069,13 @@ local function compileFunctionParam(func, source) local callerArg = caller.args[index] if callerArg then vm.setNode(source, vm.compileNode(callerArg)) - finded = true + found = true end end end ::continue:: end - return finded + return found end end |