summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-01-17 17:16:48 +0800
committerfesily <fesil@foxmail.com>2024-01-17 17:16:48 +0800
commita90d1d2c4990fed2db4ac5b2341ff12193389c1c (patch)
tree59d09938ef5a5f84c02a34d5f2b6aeb96f2e5f0f /script/vm/compiler.lua
parent259d21f66c34468e7d7860d87463e586ef805892 (diff)
downloadlua-language-server-a90d1d2c4990fed2db4ac5b2341ff12193389c1c.zip
use func.parent.ref
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 96db7051..2222fa9b 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1030,7 +1030,6 @@ local function compileForVars(source, target)
return false
end
----@async
---@param source parser.object
local function compileLocal(source)
local myNode = vm.setNode(source, source)
@@ -1093,9 +1092,7 @@ local function compileLocal(source)
end
if not hasDocArg
and func.parent.type == 'local' then
- local refs = vm.getRefs(func, function (_)
- return false
- end)
+ local refs = func.parent.ref
local findCall
if refs then
for i, ref in ipairs(refs) do