diff options
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/diagnostics/circle-doc-class.lua | 4 | ||||
-rw-r--r-- | script/core/diagnostics/duplicate-doc-alias.lua | 3 | ||||
-rw-r--r-- | script/core/diagnostics/undefined-field.lua | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/script/core/diagnostics/circle-doc-class.lua b/script/core/diagnostics/circle-doc-class.lua index 407b7e83..9a3fa2f5 100644 --- a/script/core/diagnostics/circle-doc-class.lua +++ b/script/core/diagnostics/circle-doc-class.lua @@ -41,8 +41,8 @@ return function (uri, callback) mark[newName] = true local docs = vm.getDocSets(uri, newName) for _, otherDoc in ipairs(docs) do - if otherDoc.type == 'doc.class.name' then - list[#list+1] = otherDoc.parent + if otherDoc.type == 'doc.class' then + list[#list+1] = otherDoc end end end diff --git a/script/core/diagnostics/duplicate-doc-alias.lua b/script/core/diagnostics/duplicate-doc-alias.lua index 76203efb..3df6f972 100644 --- a/script/core/diagnostics/duplicate-doc-alias.lua +++ b/script/core/diagnostics/duplicate-doc-alias.lua @@ -21,7 +21,8 @@ return function (uri, callback) local docs = vm.getDocSets(uri, name) cache[name] = {} for _, otherDoc in ipairs(docs) do - if otherDoc.type == 'doc.alias' then + if otherDoc.type == 'doc.alias' + or otherDoc.type == 'doc.class' then cache[name][#cache[name]+1] = { start = otherDoc.start, finish = otherDoc.finish, diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua index 03fedb7b..fac9607d 100644 --- a/script/core/diagnostics/undefined-field.lua +++ b/script/core/diagnostics/undefined-field.lua @@ -36,8 +36,8 @@ return function (uri, callback) local defs = vm.getDefs(node) local ok for _, def in ipairs(defs) do - if def.type == 'doc.class.name' - and not skipCheckClass[def[1]] then + if def.type == 'doc.class' + and not skipCheckClass[def.class[1]] then ok = true break end |