summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/ambiguity-1.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/ambiguity-1.lua
parent6846a670da889ae45228a91bdbca7e695ff97b69 (diff)
downloadlua-language-server-554ddae7b4174131fadf16bda5a32e5e967abda5.zip
guide -> searcher
Diffstat (limited to 'script/core/diagnostics/ambiguity-1.lua')
-rw-r--r--script/core/diagnostics/ambiguity-1.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/core/diagnostics/ambiguity-1.lua b/script/core/diagnostics/ambiguity-1.lua
index 19bb4f97..0b8385d8 100644
--- a/script/core/diagnostics/ambiguity-1.lua
+++ b/script/core/diagnostics/ambiguity-1.lua
@@ -1,6 +1,6 @@
-local files = require 'files'
-local guide = require 'core.guide'
-local lang = require 'language'
+local files = require 'files'
+local searcher = require 'core.searcher'
+local lang = require 'language'
local opMap = {
['+'] = true,
@@ -30,7 +30,7 @@ return function (uri, callback)
return
end
local text = files.getText(uri)
- guide.eachSourceType(ast.ast, 'binary', function (source)
+ searcher.eachSourceType(ast.ast, 'binary', function (source)
if source.op.type ~= 'or' then
return
end