diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-11 18:07:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-11 18:07:54 +0800 |
commit | 1ae7b425b75f630b3cdb3479137ace7215389580 (patch) | |
tree | 115e738e91a5538bfd06aa37b272877e2dd16c73 /script-beta/core | |
parent | f3c18b9573f31981f8e09c4cb63424f8de816929 (diff) | |
download | lua-language-server-1ae7b425b75f630b3cdb3479137ace7215389580.zip |
修正一些bug
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/definition.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua index e51d12aa..0259536f 100644 --- a/script-beta/core/definition.lua +++ b/script-beta/core/definition.lua @@ -73,6 +73,9 @@ local function checkRequire(source, offset) end local function convertIndex(source) + if not source then + return + end if source.type == 'string' or source.type == 'boolean' or source.type == 'number' then |