From f220b541434602a05c1c0e693376d52345e07059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 23 Nov 2020 21:12:39 +0800 Subject: optimization --- script/parser/guide.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'script/parser') 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) -- cgit v1.2.3