summaryrefslogtreecommitdiff
path: root/script-beta/vm/getClass.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-28 16:59:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-28 16:59:58 +0800
commit697aa9822b989d670c38bab8b4a0c25352a1b316 (patch)
tree26ee36e3575a4bd4eaf84e4a17fe8d4cdfd8f3b0 /script-beta/vm/getClass.lua
parenteec3341dcba8b4076a038827aad3869a1439058b (diff)
downloadlua-language-server-697aa9822b989d670c38bab8b4a0c25352a1b316.zip
允许在索引过程中访问库
Diffstat (limited to 'script-beta/vm/getClass.lua')
-rw-r--r--script-beta/vm/getClass.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/script-beta/vm/getClass.lua b/script-beta/vm/getClass.lua
index a3394e41..b573c6be 100644
--- a/script-beta/vm/getClass.lua
+++ b/script-beta/vm/getClass.lua
@@ -5,11 +5,6 @@ local function getClass(source, classes, deep)
if deep > 3 then
return
end
- local lib = vm.getLibrary(source)
- if lib and lib.type == 'table' then
- classes[#classes+1] = lib.name
- return
- end
local value = guide.getObjectValue(source) or source
vm.eachField(value, function (src)
local key = vm.getKeyName(src)