summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/core/diagnostics/duplicate-doc-class.lua6
1 files changed, 3 insertions, 3 deletions
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,