diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 19:59:45 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 19:59:45 +0800 |
commit | b3b71716f689be9115cdde8d6caf0314e76ae523 (patch) | |
tree | d1859d7a80d635b6157a431c1ef6f51c8a4484f0 /script/vm/ref.lua | |
parent | 43ef5d13ab20b77da3e4f7626116f0580aa1377e (diff) | |
download | lua-language-server-b3b71716f689be9115cdde8d6caf0314e76ae523.zip |
cleanup
Diffstat (limited to 'script/vm/ref.lua')
-rw-r--r-- | script/vm/ref.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/vm/ref.lua b/script/vm/ref.lua index e8192c72..360d979e 100644 --- a/script/vm/ref.lua +++ b/script/vm/ref.lua @@ -4,7 +4,6 @@ local util = require 'utility' local guide = require 'parser.guide' local localID = require 'vm.local-id' local globalMgr = require 'vm.global-manager' -local nodeMgr = require 'vm.node' local files = require 'files' local await = require 'await' local progress = require 'progress' @@ -271,7 +270,7 @@ local function searchByNode(source, pushResult) return end local uri = guide.getUri(source) - for n in nodeMgr.eachObject(node) do + for n in node:eachObject() do if n.type == 'global' then for _, get in ipairs(n:getGets(uri)) do pushResult(get) |