summaryrefslogtreecommitdiff
path: root/script-beta/vm/getClass.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/getClass.lua
parent9cd44e1b61fa8f002b211224e0141812a8fc97e6 (diff)
downloadlua-language-server-4f2e91dad259b6559cec651b10718e1a19352fc3.zip
use meta instead of library
Diffstat (limited to 'script-beta/vm/getClass.lua')
-rw-r--r--script-beta/vm/getClass.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/script-beta/vm/getClass.lua b/script-beta/vm/getClass.lua
index 1623090c..a8bd7e40 100644
--- a/script-beta/vm/getClass.lua
+++ b/script-beta/vm/getClass.lua
@@ -12,15 +12,6 @@ local function lookUpDocClass(source)
end
local function getClass(source, classes, depth, deep)
- local lib = vm.getLibrary(source, deep)
- if lib then
- if lib.value.type == 'table' then
- classes[#classes+1] = lib.value.name
- else
- classes[#classes+1] = lib.value.type
- end
- return
- end
local docClass = lookUpDocClass(source)
if docClass then
classes[#classes+1] = docClass