summaryrefslogtreecommitdiff
path: root/server/src/core/diagnostics.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-07 15:10:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-07 15:10:49 +0800
commitf082b09302feccb0f9bb8299ffd2690e085df487 (patch)
tree7fd940f8b1d4154c9939b0892cd0856cd48262ed /server/src/core/diagnostics.lua
parent285c7a640cd076455b7a04799fe0fbf9f242d129 (diff)
downloadlua-language-server-f082b09302feccb0f9bb8299ffd2690e085df487.zip
支持可选参数
Diffstat (limited to 'server/src/core/diagnostics.lua')
-rw-r--r--server/src/core/diagnostics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index eb4ca403..f052d7d2 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -220,7 +220,7 @@ function mt:searchRedundantParameters(callback)
local passed = #args
for i = max + 1, passed do
local extra = args[i]
- callback(extra.source.start, extra.source.finish, max, passed)
+ callback(extra.start, extra.finish, max, passed)
end
end)
end