summaryrefslogtreecommitdiff
path: root/script-beta/core/diagnostics/undefined-doc-class.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/core/diagnostics/undefined-doc-class.lua')
-rw-r--r--script-beta/core/diagnostics/undefined-doc-class.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/script-beta/core/diagnostics/undefined-doc-class.lua b/script-beta/core/diagnostics/undefined-doc-class.lua
index e008c7fd..bbfdceec 100644
--- a/script-beta/core/diagnostics/undefined-doc-class.lua
+++ b/script-beta/core/diagnostics/undefined-doc-class.lua
@@ -4,23 +4,6 @@ local lang = require 'language'
local define = require 'proto.define'
local vm = require 'vm'
--- TODO
-local builtin = {
- ['any'] = true,
- ['nil'] = true,
- ['void'] = true,
- ['boolean'] = true,
- ['number'] = true,
- ['integer'] = true,
- ['thread'] = true,
- ['table'] = true,
- ['file'] = true,
- ['string'] = true,
- ['userdata'] = true,
- ['lightuserdata'] = true,
- ['function'] = true,
-}
-
return function (uri, callback)
local state = files.getAst(uri)
if not state then
@@ -39,9 +22,6 @@ return function (uri, callback)
goto CONTINUE
end
local name = ext[1]
- if builtin[name] then
- goto CONTINUE
- end
local docs = vm.getDocTypes(name)
if cache[name] == nil then
cache[name] = false