diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 20:54:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 20:54:24 +0800 |
commit | fbb038b568fffe8ddbf6946cd0f7d49a624b496a (patch) | |
tree | 89314f1f0261075c7902cbeefeb9f6de60867700 /script/vm | |
parent | 95437dacc0ecfdf7ee6c4b158fbba6dbc21aecd3 (diff) | |
download | lua-language-server-fbb038b568fffe8ddbf6946cd0f7d49a624b496a.zip |
async doc.type.function
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getDocs.lua | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 22e2e0cd..ed2299ec 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -164,23 +164,23 @@ local function isDeprecated(value) end local function isAsync(value) - if value.type ~= 'function' then - return false - end - if not value.bindDocs then - return false - end - if value._async ~= nil then - return value._async - end - for _, doc in ipairs(value.bindDocs) do - if doc.type == 'doc.async' then - value._async = true - return true + if value.type == 'function' then + if not value.bindDocs then + return false + end + if value._async ~= nil then + return value._async end + for _, doc in ipairs(value.bindDocs) do + if doc.type == 'doc.async' then + value._async = true + return true + end + end + value._async = false + return false end - value._async = false - return false + return value.async == true end function vm.isDeprecated(value, deep) |