summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachDef.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-24 15:33:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-24 15:33:58 +0800
commit41d5da00933be228f5a18c2f67490b0b2a822931 (patch)
treef8c25e3f1d3418fdaf31e3110ff514f41d71b77f /script-beta/vm/eachDef.lua
parentf60fffa9afd4c799c449065cbc5beba68e2bdcb1 (diff)
downloadlua-language-server-41d5da00933be228f5a18c2f67490b0b2a822931.zip
更新 eachRef
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r--script-beta/vm/eachDef.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua
index 6bad25ad..45da2fc6 100644
--- a/script-beta/vm/eachDef.lua
+++ b/script-beta/vm/eachDef.lua
@@ -135,8 +135,7 @@ local function findIndex(parent, source)
end
local function findCallRecvs(func, index, callback)
- vm.eachRef(func, function (info)
- local source = info.source
+ vm.eachRef(func, function (source)
local parent = source.parent
if parent.type ~= 'call' then
return