summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-18 14:49:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-18 14:49:26 +0800
commitfd5fe4235939967f4b22b397c4fdff3b9b1f666a (patch)
treea94b88e1d49bedd40b3ab99958a5d314cd683812 /script/core
parentbd966b33388e13133d904833fecbf1542441eaa2 (diff)
downloadlua-language-server-fd5fe4235939967f4b22b397c4fdff3b9b1f666a.zip
fix
Diffstat (limited to 'script/core')
-rw-r--r--script/core/diagnostics/redundant-parameter.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/diagnostics/redundant-parameter.lua b/script/core/diagnostics/redundant-parameter.lua
index b25ec77a..8176f0af 100644
--- a/script/core/diagnostics/redundant-parameter.lua
+++ b/script/core/diagnostics/redundant-parameter.lua
@@ -74,6 +74,10 @@ return function (uri, callback)
local cache = vm.getCache 'redundant-parameter'
guide.eachSourceType(ast.ast, 'call', function (source)
+ -- parameters be expanded by iterator
+ if source.node.iterator then
+ return
+ end
local callArgs = countCallArgs(source)
if callArgs == 0 then
return