summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-01 19:56:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-01 19:56:04 +0800
commit916820f8d3657ab256cf18144055a0ff31e55412 (patch)
tree267299173ce7f87db064b3a4e983ff2b52e18d70 /script/vm
parentd529a504b11eaea920df4a14a5da6972e3030eca (diff)
downloadlua-language-server-916820f8d3657ab256cf18144055a0ff31e55412.zip
fix #421 keep order
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/getClass.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/getClass.lua b/script/vm/getClass.lua
index b9ff8c60..c98a3102 100644
--- a/script/vm/getClass.lua
+++ b/script/vm/getClass.lua
@@ -7,9 +7,10 @@ local function lookUpDocClass(source)
for _, infer in ipairs(infers) do
if infer.source.type == 'doc.class'
or infer.source.type == 'doc.type' then
- return infer.type
+ return guide.viewInferType(infers)
end
end
+ return nil
end
local function getClass(source, classes, depth, deep)