diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 22:14:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 22:14:50 +0800 |
commit | 73a4780aa866737851040239eee52a013b5401d0 (patch) | |
tree | 7770bff33ab194c37dd47ca0dac57f2dc322f422 /script/core | |
parent | b3b71716f689be9115cdde8d6caf0314e76ae523 (diff) | |
download | lua-language-server-73a4780aa866737851040239eee52a013b5401d0.zip |
cleanup
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/completion/completion.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index 3eaed85a..33d8fc16 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1403,6 +1403,9 @@ local function tryCallArg(state, position, results) return end local node = vm.compileCallArg({ type = 'dummyarg' }, call, argIndex) + if not node then + return + end local enums = {} for src in node:eachObject() do if src.type == 'doc.type.string' |