diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-29 16:44:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-29 16:44:44 +0800 |
commit | b2ba3b729ef376b933381fdfdc53c1cb0b948e0e (patch) | |
tree | 3bde32371120d210ba27706c65dd1c5aa1a039bf /server/src/core/document_symbol.lua | |
parent | 054351ecf1471c0d0ec3a94bddb0831bf050db82 (diff) | |
download | lua-language-server-b2ba3b729ef376b933381fdfdc53c1cb0b948e0e.zip |
值声明的算法
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r-- | server/src/core/document_symbol.lua | 2 |
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 |