summaryrefslogtreecommitdiff
path: root/server/src/core/document_symbol.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-29 16:44:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-29 16:44:44 +0800
commitb2ba3b729ef376b933381fdfdc53c1cb0b948e0e (patch)
tree3bde32371120d210ba27706c65dd1c5aa1a039bf /server/src/core/document_symbol.lua
parent054351ecf1471c0d0ec3a94bddb0831bf050db82 (diff)
downloadlua-language-server-b2ba3b729ef376b933381fdfdc53c1cb0b948e0e.zip
值声明的算法
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r--server/src/core/document_symbol.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua
index d8a4daaf..5c7e059b 100644
--- a/server/src/core/document_symbol.lua
+++ b/server/src/core/document_symbol.lua
@@ -38,7 +38,7 @@ local function buildFunction(vm, func)
local var
if declarat then
if declarat.type == 'function' then
- var = declarat.name.bind
+ var = declarat.name and declarat.name.bind
else
var = declarat.bind
end