summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-31 18:58:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-31 18:58:01 +0800
commit309e3c343a605b99cac0c91a05ba704c277aafc8 (patch)
tree48350d96a72d5a8e13f67f70dd478a1feb004135
parent2a86ea3fc9114ca5e269dab1270d86b1fec98119 (diff)
downloadlua-language-server-309e3c343a605b99cac0c91a05ba704c277aafc8.zip
暂存
-rw-r--r--script-beta/vm/guideInterface.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/script-beta/vm/guideInterface.lua b/script-beta/vm/guideInterface.lua
index b21aee79..d223f2e6 100644
--- a/script-beta/vm/guideInterface.lua
+++ b/script-beta/vm/guideInterface.lua
@@ -36,6 +36,10 @@ function m.require(args, index)
end
end
end
+
+ local lib = library.library[reqName]
+ results[#results+1] = lib
+
return results
end
@@ -87,12 +91,17 @@ function vm.interface.link(uri)
end
function vm.interface.index(obj)
+ if obj.library then
+ return obj.fields
+ end
+
local tp = obj.type
local lib = library.object[tp]
- if not lib then
- return nil
+ if lib then
+ return lib.fields
end
- return lib.fields
+
+ return nil
end
function vm.interface.cache(source, mode)