summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/redefined-local.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/redefined-local.lua
parent6846a670da889ae45228a91bdbca7e695ff97b69 (diff)
downloadlua-language-server-554ddae7b4174131fadf16bda5a32e5e967abda5.zip
guide -> searcher
Diffstat (limited to 'script/core/diagnostics/redefined-local.lua')
-rw-r--r--script/core/diagnostics/redefined-local.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/diagnostics/redefined-local.lua b/script/core/diagnostics/redefined-local.lua
index 857d80d2..4922831b 100644
--- a/script/core/diagnostics/redefined-local.lua
+++ b/script/core/diagnostics/redefined-local.lua
@@ -1,5 +1,5 @@
local files = require 'files'
-local guide = require 'core.guide'
+local searcher = require 'core.searcher'
local lang = require 'language'
return function (uri, callback)
@@ -7,13 +7,13 @@ return function (uri, callback)
if not ast then
return
end
- guide.eachSourceType(ast.ast, 'local', function (source)
+ searcher.eachSourceType(ast.ast, 'local', function (source)
local name = source[1]
if name == '_'
or name == ast.ENVMode then
return
end
- local exist = guide.getLocal(source, name, source.start-1)
+ local exist = searcher.getLocal(source, name, source.start-1)
if exist then
callback {
start = source.start,