summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/count-down-loop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/count-down-loop.lua')
-rw-r--r--script/core/diagnostics/count-down-loop.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/core/diagnostics/count-down-loop.lua b/script/core/diagnostics/count-down-loop.lua
index 65099af8..f682ec3c 100644
--- a/script/core/diagnostics/count-down-loop.lua
+++ b/script/core/diagnostics/count-down-loop.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'
return function (uri, callback)
local state = files.getAst(uri)
@@ -9,7 +9,7 @@ return function (uri, callback)
return
end
- guide.eachSourceType(state.ast, 'loop', function (source)
+ searcher.eachSourceType(state.ast, 'loop', function (source)
if not source.loc or not source.loc.value then
return
end