From b6568168f9419f8c3c14f966b4520b73a03f5bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Mar 2019 13:45:42 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9F=A5=E6=89=BE=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/references.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/core/references.lua b/server/src/core/references.lua index 4bd26b07..10d8b2df 100644 --- a/server/src/core/references.lua +++ b/server/src/core/references.lua @@ -18,7 +18,7 @@ local function parseResult(vm, source, declarat, callback) end end) loc:getValue():eachInfo(function (info, src) - if (declarat and (info.type == 'set' or info.type == 'local')) or info.type == 'get' then + if (declarat and (info.type == 'set' or info.type == 'local' or info.type == 'return')) or info.type == 'get' then callback(src) end end) -- cgit v1.2.3