summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/undefined-env-child.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/undefined-env-child.lua')
-rw-r--r--script/core/diagnostics/undefined-env-child.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/diagnostics/undefined-env-child.lua b/script/core/diagnostics/undefined-env-child.lua
index 89efb8c7..a32ad306 100644
--- a/script/core/diagnostics/undefined-env-child.lua
+++ b/script/core/diagnostics/undefined-env-child.lua
@@ -1,5 +1,5 @@
local files = require 'files'
-local guide = require 'core.guide'
+local searcher = require 'core.searcher'
local vm = require 'vm'
local lang = require 'language'
@@ -8,12 +8,12 @@ return function (uri, callback)
if not ast then
return
end
- guide.eachSourceType(ast.ast, 'getglobal', function (source)
+ searcher.eachSourceType(ast.ast, 'getglobal', function (source)
-- 单独验证自己是否在重载过的 _ENV 中有定义
if source.node.tag == '_ENV' then
return
end
- local defs = guide.requestDefinition(source)
+ local defs = searcher.requestDefinition(source)
if #defs > 0 then
return
end