summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-08 20:02:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-08 20:02:49 +0800
commit6ef8cb96f7834c99e998b49a4b8632a784b67e89 (patch)
treed4fdddfe3f098599e1c6ea4766d7544d3a85fee9 /script/vm/infer.lua
parent256b37771a9203ab0c27d5690e35d9a1f9185465 (diff)
downloadlua-language-server-6ef8cb96f7834c99e998b49a4b8632a784b67e89.zip
update
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index 8b2cf5ee..5adbfcb5 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -14,6 +14,12 @@ local viewNodeMap = util.switch()
: call(function (source)
return source.type
end)
+ : case 'global'
+ : call(function (source)
+ if source.cate == 'type' then
+ return source.name
+ end
+ end)
: getMap()
---@param node vm.node