From 674892abc53ad6752326135c8aaf60073f80b632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 15 Aug 2020 18:57:58 +0800 Subject: =?UTF-8?q?=E5=85=88=E4=BF=9D=E8=AF=81=E8=87=AA=E5=8A=A8=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E7=9A=84=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/vm/eachRef.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script-beta/vm') diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua index 65ce4d05..d372b03b 100644 --- a/script-beta/vm/eachRef.lua +++ b/script-beta/vm/eachRef.lua @@ -2,7 +2,7 @@ local vm = require 'vm.vm' local guide = require 'parser.guide' local util = require 'utility' -local function eachRef(source, results) +local function getRefs(source, results) results = results or {} local lock = vm.lock('eachDef', source) if not lock then @@ -22,8 +22,8 @@ local function eachRef(source, results) end function vm.getRefs(source) - local cache = vm.getCache('eachRef')[source] or eachRef(source) - vm.getCache('eachDef')[source] = cache + local cache = vm.getCache('eachRef')[source] or getRefs(source) + vm.getCache('eachRef')[source] = cache return cache end -- cgit v1.2.3