summaryrefslogtreecommitdiff
path: root/server/src/core/hover/name.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-08 15:00:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-08 15:00:07 +0800
commitbffb7b50e3c7cea0a0a2e08e3efee8acc83eb7bf (patch)
tree1e4d6313d5b04ee4d17f2496ed06246d14651ce9 /server/src/core/hover/name.lua
parentc8b15870150034ca44fc28d373e52991855c5c98 (diff)
downloadlua-language-server-bffb7b50e3c7cea0a0a2e08e3efee8acc83eb7bf.zip
文件符号
Diffstat (limited to 'server/src/core/hover/name.lua')
-rw-r--r--server/src/core/hover/name.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/hover/name.lua b/server/src/core/hover/name.lua
index 4faab3f1..78c30b4d 100644
--- a/server/src/core/hover/name.lua
+++ b/server/src/core/hover/name.lua
@@ -1,5 +1,8 @@
return function (source)
local value = source:bindValue()
+ if not value then
+ return ''
+ end
local func = value:getFunction()
local declarat
if func then