From 081ad3c0c8cc7935d5e5aa52e2a4c2bcc47f3402 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 16:24:56 +0800 Subject: =?UTF-8?q?=E4=B8=80=E4=BA=9B=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/vm/eachDef.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'script-beta/vm/eachDef.lua') diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua index fd34bed3..dfd6ce1a 100644 --- a/script-beta/vm/eachDef.lua +++ b/script-beta/vm/eachDef.lua @@ -2,6 +2,7 @@ local vm = require 'vm.vm' local guide = require 'parser.guide' local ws = require 'workspace' local files = require 'files' +local util = require 'utility' local m = {} @@ -23,7 +24,10 @@ function m.eachDef(source, results) return results end - local myResults = guide.requestDefinition(source, vm.interface) + local myResults, count = guide.requestDefinition(source, vm.interface) + if DEVELOP and count > 10 then + log.warn('requestDefinition', count, util.dump(source, { deep = 0 })) + end vm.mergeResults(results, myResults) m.searchLibrary(source, results) m.searchLibrary(guide.getObjectValue(source), results) -- cgit v1.2.3