Skip to content

Commit a90d1d2

Browse files
committed
use func.parent.ref
1 parent 259d21f commit a90d1d2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

script/vm/compiler.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ local function compileForVars(source, target)
10301030
return false
10311031
end
10321032

1033-
---@async
10341033
---@param source parser.object
10351034
local function compileLocal(source)
10361035
local myNode = vm.setNode(source, source)
@@ -1093,9 +1092,7 @@ local function compileLocal(source)
10931092
end
10941093
if not hasDocArg
10951094
and func.parent.type == 'local' then
1096-
local refs = vm.getRefs(func, function (_)
1097-
return false
1098-
end)
1095+
local refs = func.parent.ref
10991096
local findCall
11001097
if refs then
11011098
for i, ref in ipairs(refs) do

0 commit comments

Comments
 (0)