summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/newline-call.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/newline-call.lua')
-rw-r--r--script/core/diagnostics/newline-call.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/core/diagnostics/newline-call.lua b/script/core/diagnostics/newline-call.lua
index 807f76a2..31a8d09f 100644
--- a/script/core/diagnostics/newline-call.lua
+++ b/script/core/diagnostics/newline-call.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)
@@ -10,7 +10,7 @@ return function (uri, callback)
return
end
- guide.eachSourceType(ast.ast, 'call', function (source)
+ searcher.eachSourceType(ast.ast, 'call', function (source)
local node = source.node
local args = source.args
if not args then
@@ -26,8 +26,8 @@ return function (uri, callback)
return
end
- local nodeRow = guide.positionOf(lines, node.finish)
- local argRow = guide.positionOf(lines, args.start)
+ local nodeRow = searcher.positionOf(lines, node.finish)
+ local argRow = searcher.positionOf(lines, args.start)
if nodeRow == argRow then
return
end