summaryrefslogtreecommitdiff
path: root/server-beta/src/core/diagnostics/undefined-env-child.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/undefined-env-child.lua
parent2c90cf1b7b1fce9095f95bc54ed33680c848bfbe (diff)
downloadlua-language-server-03a56a63e1c943e985b73082be34749a3bd5533b.zip
searcher太难拼了,我们还是叫vm吧
Diffstat (limited to 'server-beta/src/core/diagnostics/undefined-env-child.lua')
-rw-r--r--server-beta/src/core/diagnostics/undefined-env-child.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/server-beta/src/core/diagnostics/undefined-env-child.lua b/server-beta/src/core/diagnostics/undefined-env-child.lua
index 4169a413..df096cb8 100644
--- a/server-beta/src/core/diagnostics/undefined-env-child.lua
+++ b/server-beta/src/core/diagnostics/undefined-env-child.lua
@@ -1,7 +1,7 @@
-local files = require 'files'
-local guide = require 'parser.guide'
-local searcher = require 'searcher'
-local lang = require 'language'
+local files = require 'files'
+local guide = require 'parser.guide'
+local vm = require 'vm'
+local lang = require 'language'
return function (uri, callback)
local ast = files.getAst(uri)
@@ -14,7 +14,7 @@ return function (uri, callback)
if source.node.tag == '_ENV' then
return
end
- local setInENV = searcher.eachRef(source, function (info)
+ local setInENV = vm.eachRef(source, function (info)
if info.mode == 'set' then
return true
end