From 2d4bb16df19575affddd7b9a1d5aaa8f2b9ade99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 22 Oct 2020 20:34:31 +0800 Subject: =?UTF-8?q?=E8=BF=87=E7=AC=AC=E4=B8=80=E4=B8=AA=E8=AF=8A=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/diagnostics/duplicate-doc-class.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script-beta/core/diagnostics/duplicate-doc-class.lua') diff --git a/script-beta/core/diagnostics/duplicate-doc-class.lua b/script-beta/core/diagnostics/duplicate-doc-class.lua index 8974d215..259c048b 100644 --- a/script-beta/core/diagnostics/duplicate-doc-class.lua +++ b/script-beta/core/diagnostics/duplicate-doc-class.lua @@ -10,7 +10,7 @@ return function (uri, callback) return end - if not state.ast.focs then + if not state.ast.docs then return end @@ -23,8 +23,8 @@ return function (uri, callback) local docs = vm.getDocTypes(name) cache[name] = {} for _, otherDoc in ipairs(docs) do - if otherDoc.type == 'doc.class' - or otherDoc.type == 'doc.alias' then + if otherDoc.type == 'doc.class.name' + or otherDoc.type == 'doc.alias.name' then cache[name][#cache[name]+1] = { start = otherDoc.start, finish = otherDoc.finish, -- cgit v1.2.3