diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-23 21:12:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-23 21:12:39 +0800 |
commit | f220b541434602a05c1c0e693376d52345e07059 (patch) | |
tree | f0ffcee1c994492bcf2945efadc10ed7d6a65c40 /script/parser | |
parent | 2ae204dec9a85ebe9869169cb5a2a3a10030899a (diff) | |
download | lua-language-server-f220b541434602a05c1c0e693376d52345e07059.zip |
optimization
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 6ef239f1..01ce6021 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -1734,9 +1734,12 @@ local function checkSameSimpleAndMergeDocTypeFunctionReturns(status, results, so end function m.checkSameSimpleInCallInSameFile(status, func, args, index) + local results = {} + if func.special then + return results + end local newStatus = m.status(status) m.searchRefs(newStatus, func, 'def') - local results = {} for _, def in ipairs(newStatus.results) do local hasDocReturn = checkSameSimpleAndMergeDocTypeFunctionReturns(status, results, def, index) or checkSameSimpleAndMergeFunctionReturnsByDoc(status, results, def, index) |