summaryrefslogtreecommitdiff
path: root/server/src/core/document_symbol.lua
diff options
context:
space:
mode:
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