summaryrefslogtreecommitdiff
path: root/server-beta/src/core/diagnostics/unused-function.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-20 11:00:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-20 11:00:32 +0800
commit03a56a63e1c943e985b73082be34749a3bd5533b (patch)
tree543dcf81e70b0ff429dcd7415f811ae803f994ab /server-beta/src/core/diagnostics/unused-function.lua
parent2c90cf1b7b1fce9095f95bc54ed33680c848bfbe (diff)
downloadlua-language-server-03a56a63e1c943e985b73082be34749a3bd5533b.zip
searcher太难拼了,我们还是叫vm吧
Diffstat (limited to 'server-beta/src/core/diagnostics/unused-function.lua')
-rw-r--r--server-beta/src/core/diagnostics/unused-function.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/server-beta/src/core/diagnostics/unused-function.lua b/server-beta/src/core/diagnostics/unused-function.lua
index ca3a751d..6c53cdf7 100644
--- a/server-beta/src/core/diagnostics/unused-function.lua
+++ b/server-beta/src/core/diagnostics/unused-function.lua
@@ -1,9 +1,9 @@
-local files = require 'files'
-local guide = require 'parser.guide'
-local searcher = require 'searcher'
-local define = require 'proto.define'
-local lang = require 'language'
-local await = require 'await'
+local files = require 'files'
+local guide = require 'parser.guide'
+local vm = require 'vm'
+local define = require 'proto.define'
+local lang = require 'language'
+local await = require 'await'
return function (uri, callback)
local ast = files.getAst(uri)
@@ -22,7 +22,7 @@ return function (uri, callback)
return
end
local hasSet
- local hasGet = searcher.eachRef(source, function (info)
+ local hasGet = vm.eachRef(source, function (info)
if info.mode == 'get' then
return true
elseif info.mode == 'set'