diff options
Diffstat (limited to 'script-beta/core/diagnostics/undefined-doc-name.lua')
-rw-r--r-- | script-beta/core/diagnostics/undefined-doc-name.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/script-beta/core/diagnostics/undefined-doc-name.lua b/script-beta/core/diagnostics/undefined-doc-name.lua index bf885f6f..ba5e0a69 100644 --- a/script-beta/core/diagnostics/undefined-doc-name.lua +++ b/script-beta/core/diagnostics/undefined-doc-name.lua @@ -16,7 +16,11 @@ return function (uri, callback) local cache = {} guide.eachSource(state.ast.docs, function (source) - if source.type:sub(-5) ~= '.name' then + if source.type ~= 'doc.extends.name' + and source.type ~= 'doc.type.name' then + return + end + if source.parent.type == 'doc.class' then return end local name = source[1] |