diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-29 15:33:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-29 15:33:47 +0800 |
commit | c2762dc29612aa37aa19a0cf3f362449e44dc9f8 (patch) | |
tree | c828924cc6e54dd352ab67e2c0a4fff7d38d5173 /server/src/core/document_symbol.lua | |
parent | 482b3f97443329ebb25b19c2a1152b7b6329a689 (diff) | |
download | lua-language-server-c2762dc29612aa37aa19a0cf3f362449e44dc9f8.zip |
更新写法
Diffstat (limited to 'server/src/core/document_symbol.lua')
-rw-r--r-- | server/src/core/document_symbol.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/document_symbol.lua b/server/src/core/document_symbol.lua index fcd5344b..d8a4daaf 100644 --- a/server/src/core/document_symbol.lua +++ b/server/src/core/document_symbol.lua @@ -38,9 +38,9 @@ local function buildFunction(vm, func) local var if declarat then if declarat.type == 'function' then - var = vm.results.sources[declarat.name] + var = declarat.name.bind else - var = vm.results.sources[declarat] + var = declarat.bind end end if var then |