summaryrefslogtreecommitdiff
path: root/script/core/code-lens.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-09 16:17:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-09 16:17:59 +0800
commit78875f59fe2fa846d62bf955805b647d17cf87d2 (patch)
tree39076ec29b109980435278450c4c2c02b662b8a4 /script/core/code-lens.lua
parentfcafaa21f8df0423568ac67fe1c6159f6aa69173 (diff)
downloadlua-language-server-78875f59fe2fa846d62bf955805b647d17cf87d2.zip
trace-global
Diffstat (limited to 'script/core/code-lens.lua')
-rw-r--r--script/core/code-lens.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/code-lens.lua b/script/core/code-lens.lua
index e83857b2..ed95ea6a 100644
--- a/script/core/code-lens.lua
+++ b/script/core/code-lens.lua
@@ -69,7 +69,7 @@ function mt:collectReferences()
---@async
guide.eachSourceType(self.state.ast, 'function', function (src)
local parent = src.parent
- if guide.isSet(parent) then
+ if guide.isAssign(parent) then
src = parent
elseif parent.type == 'return' then
else