summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/close-non-object.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-20 18:08:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-20 18:08:20 +0800
commit554ddae7b4174131fadf16bda5a32e5e967abda5 (patch)
treec72e26dfd25150eaff2e87683a3de8a74b3fb3db /script/core/diagnostics/close-non-object.lua
parent6846a670da889ae45228a91bdbca7e695ff97b69 (diff)
downloadlua-language-server-554ddae7b4174131fadf16bda5a32e5e967abda5.zip
guide -> searcher
Diffstat (limited to 'script/core/diagnostics/close-non-object.lua')
-rw-r--r--script/core/diagnostics/close-non-object.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/script/core/diagnostics/close-non-object.lua b/script/core/diagnostics/close-non-object.lua
index d1983c42..11c2b820 100644
--- a/script/core/diagnostics/close-non-object.lua
+++ b/script/core/diagnostics/close-non-object.lua
@@ -1,7 +1,6 @@
-local files = require 'files'
-local guide = require 'core.guide'
-local lang = require 'language'
-local define = require 'proto.define'
+local files = require 'files'
+local searcher = require 'core.searcher'
+local lang = require 'language'
return function (uri, callback)
local state = files.getAst(uri)
@@ -9,7 +8,7 @@ return function (uri, callback)
return
end
- guide.eachSourceType(state.ast, 'local', function (source)
+ searcher.eachSourceType(state.ast, 'local', function (source)
if not source.attrs then
return
end