summaryrefslogtreecommitdiff
path: root/script-beta/vm/getDocs.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-20 21:44:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-20 21:44:57 +0800
commit4f2e91dad259b6559cec651b10718e1a19352fc3 (patch)
tree581b8bdc73440ded32db5cb0a1a191a02fa64372 /script-beta/vm/getDocs.lua
parent9cd44e1b61fa8f002b211224e0141812a8fc97e6 (diff)
downloadlua-language-server-4f2e91dad259b6559cec651b10718e1a19352fc3.zip
use meta instead of library
Diffstat (limited to 'script-beta/vm/getDocs.lua')
-rw-r--r--script-beta/vm/getDocs.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/script-beta/vm/getDocs.lua b/script-beta/vm/getDocs.lua
index fcc67d32..c06efc11 100644
--- a/script-beta/vm/getDocs.lua
+++ b/script-beta/vm/getDocs.lua
@@ -4,30 +4,6 @@ local guide = require 'parser.guide'
local vm = require 'vm.vm'
local config = require 'config'
-local builtin = {}
-for _, name in ipairs {
- 'any' ,
- 'nil' ,
- 'void' ,
- 'boolean' ,
- 'number' ,
- 'integer' ,
- 'thread' ,
- 'table' ,
- 'file' ,
- 'string' ,
- 'userdata' ,
- 'lightuserdata',
- 'function' ,
-} do
- builtin[#builtin+1] = {
- type = 'doc.class.name',
- start = 0,
- finish = 0,
- [1] = name,
- }
-end
-
local function getTypesOfFile(uri)
local types = {}
local ast = files.getAst(uri)
@@ -70,13 +46,6 @@ local function getDocTypes(name)
end
end
end
- if not DEVELOP then
- for _, source in ipairs(builtin) do
- if name == '*' or name == source[1] then
- results[#results+1] = source
- end
- end
- end
return results
end
@@ -193,9 +162,6 @@ local function isDeprecated(value)
end
function vm.isDeprecated(value)
- if isDeprecated(value) then
- return true
- end
local defs = vm.getDefs(value, 'deep')
if #defs == 0 then
return false