Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update compiler.lua #2574

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions script/vm/compiler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
Loading