summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
authorLuke100000 <jonas.peche@aon.at>2024-03-18 21:43:32 +0100
committerGitHub <noreply@github.com>2024-03-18 21:43:32 +0100
commita29d931a86296e4b542faa37ea3ff77c4c9191df (patch)
tree05e27aaedc85fd5fa909114bbe03f09912222f07 /script/vm/compiler.lua
parente930179bbd6b3eb26721a676303e0e27cdb29290 (diff)
downloadlua-language-server-a29d931a86296e4b542faa37ea3ff77c4c9191df.zip
Update compiler.lua
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua6
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