From b3b71716f689be9115cdde8d6caf0314e76ae523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 13 Apr 2022 19:59:45 +0800 Subject: cleanup --- script/vm/ref.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'script/vm/ref.lua') 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) -- cgit v1.2.3