summaryrefslogtreecommitdiff
path: root/script/core/infer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-19 16:53:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-19 16:53:09 +0800
commit47c5d45db515c33ec73ea1cd385c26412ee9768d (patch)
tree57ef3b1bcace81f472bf491bd89cf04e56555149 /script/core/infer.lua
parent98f234842eca12334c5668d7a3511a068ed528d2 (diff)
downloadlua-language-server-47c5d45db515c33ec73ea1cd385c26412ee9768d.zip
rename link -> node
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r--script/core/infer.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index c46f26cf..a4156263 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -1,6 +1,6 @@
local searcher = require 'core.searcher'
local config = require 'config'
-local linker = require 'core.linker'
+local noder = require 'core.noder'
local STRING_OR_TABLE = {'STRING_OR_TABLE'}
local BE_RETURN = {'BE_RETURN'}
@@ -418,11 +418,11 @@ function m.searchInfers(source)
searchInfer(def, infers)
end
end
- local id = linker.getID(source)
+ local id = noder.getID(source)
if id then
- local link = linker.getLinkByID(source, id)
- if link and link.sources then
- for _, src in ipairs(link.sources) do
+ local node = noder.getNodeByID(source, id)
+ if node and node.sources then
+ for _, src in ipairs(node.sources) do
if not mark[src] then
mark[src] = true
searchInfer(src, infers)