diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-11 20:22:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-11 20:22:05 +0800 |
commit | e8858e236690b579097ac095049bce4634182d25 (patch) | |
tree | 4273345af97506832050cc45207d385885f8ba5e /server/src/matcher | |
parent | 33bf4c53397253fa3ce643e88fcdd05faf005617 (diff) | |
download | lua-language-server-e8858e236690b579097ac095049bce4634182d25.zip |
删除无用代码
Diffstat (limited to 'server/src/matcher')
-rw-r--r-- | server/src/matcher/diagnostics.lua | 3 |
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] = { |