summaryrefslogtreecommitdiff
path: root/server/src/matcher
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher')
-rw-r--r--server/src/matcher/diagnostics.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua
index 124f86fe..814beaa2 100644
--- a/server/src/matcher/diagnostics.lua
+++ b/server/src/matcher/diagnostics.lua
@@ -136,8 +136,9 @@ local function searchNewLineCall(results, lines, callback)
end
end
-return function (ast, results, lines, uri)
+return function (vm, lines, uri)
local datas = {}
+ local results = vm.results
-- 未使用的局部变量
searchUnusedLocals(results, function (start, finish, key)
datas[#datas+1] = {