diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-20 21:44:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-20 21:44:57 +0800 |
commit | 4f2e91dad259b6559cec651b10718e1a19352fc3 (patch) | |
tree | 581b8bdc73440ded32db5cb0a1a191a02fa64372 /script-beta/vm/getDocs.lua | |
parent | 9cd44e1b61fa8f002b211224e0141812a8fc97e6 (diff) | |
download | lua-language-server-4f2e91dad259b6559cec651b10718e1a19352fc3.zip |
use meta instead of library
Diffstat (limited to 'script-beta/vm/getDocs.lua')
-rw-r--r-- | script-beta/vm/getDocs.lua | 34 |
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 |