diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-08 16:55:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-08 16:55:44 +0800 |
commit | ae8ce1e4d975d6aefc947a008ed8a82eec1312d3 (patch) | |
tree | 607249c561690e82f2dd0db01121472e957aa452 /script/vm/getDocs.lua | |
parent | 96946f4022a45519fa4e512c652d322cf8232a73 (diff) | |
download | lua-language-server-ae8ce1e4d975d6aefc947a008ed8a82eec1312d3.zip |
cleanup
Diffstat (limited to 'script/vm/getDocs.lua')
-rw-r--r-- | script/vm/getDocs.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index 748d17c2..ff6e6ba3 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -257,6 +257,9 @@ function vm.isNoDiscard(value, deep) end local function isCalledInFunction(param) + if not param.ref then + return false + end local func = guide.getParentFunction(param) for _, ref in ipairs(param.ref) do if ref.type == 'getlocal' then |