diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-08 15:00:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-08 15:00:07 +0800 |
commit | bffb7b50e3c7cea0a0a2e08e3efee8acc83eb7bf (patch) | |
tree | 1e4d6313d5b04ee4d17f2496ed06246d14651ce9 /server/src/core/hover/name.lua | |
parent | c8b15870150034ca44fc28d373e52991855c5c98 (diff) | |
download | lua-language-server-bffb7b50e3c7cea0a0a2e08e3efee8acc83eb7bf.zip |
文件符号
Diffstat (limited to 'server/src/core/hover/name.lua')
-rw-r--r-- | server/src/core/hover/name.lua | 3 |
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 |