summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/close-non-object.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-19 14:41:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-19 14:41:18 +0800
commitb2e8f04b3509caf5df2f41fa0858ef92df3700fc (patch)
tree219f5d3223cd18e8ce11aa45f7539f4eebe07075 /script/core/diagnostics/close-non-object.lua
parent81a3ad79e4f057d5670689e27823acf8391ce621 (diff)
downloadlua-language-server-b2e8f04b3509caf5df2f41fa0858ef92df3700fc.zip
update
Diffstat (limited to 'script/core/diagnostics/close-non-object.lua')
-rw-r--r--script/core/diagnostics/close-non-object.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/close-non-object.lua b/script/core/diagnostics/close-non-object.lua
index 11c2b820..7828efe9 100644
--- a/script/core/diagnostics/close-non-object.lua
+++ b/script/core/diagnostics/close-non-object.lua
@@ -1,5 +1,5 @@
local files = require 'files'
-local searcher = require 'core.searcher'
+local guide = require 'parser.guide'
local lang = require 'language'
return function (uri, callback)
@@ -8,7 +8,7 @@ return function (uri, callback)
return
end
- searcher.eachSourceType(state.ast, 'local', function (source)
+ guide.eachSourceType(state.ast, 'local', function (source)
if not source.attrs then
return
end