diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-19 16:53:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-19 16:53:09 +0800 |
commit | 47c5d45db515c33ec73ea1cd385c26412ee9768d (patch) | |
tree | 57ef3b1bcace81f472bf491bd89cf04e56555149 /script/core/infer.lua | |
parent | 98f234842eca12334c5668d7a3511a068ed528d2 (diff) | |
download | lua-language-server-47c5d45db515c33ec73ea1cd385c26412ee9768d.zip |
rename link -> node
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r-- | script/core/infer.lua | 10 |
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) |