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/guideInterface.lua | |
parent | 9cd44e1b61fa8f002b211224e0141812a8fc97e6 (diff) | |
download | lua-language-server-4f2e91dad259b6559cec651b10718e1a19352fc3.zip |
use meta instead of library
Diffstat (limited to 'script-beta/vm/guideInterface.lua')
-rw-r--r-- | script-beta/vm/guideInterface.lua | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/script-beta/vm/guideInterface.lua b/script-beta/vm/guideInterface.lua index 6ecae5a8..e646def8 100644 --- a/script-beta/vm/guideInterface.lua +++ b/script-beta/vm/guideInterface.lua @@ -3,7 +3,6 @@ local files = require 'files' local ws = require 'workspace' local guide = require 'parser.guide' local await = require 'await' -local library = require 'library' local config = require 'config' local m = {} @@ -38,9 +37,6 @@ function m.require(args, index) end end - local lib = library.library[reqName] - results[#results+1] = lib - return results end @@ -97,23 +93,6 @@ function vm.interface.link(uri) end function vm.interface.index(obj) - if obj.type == 'library' then - return obj.fields - end - - local tp = obj.type - if tp == 'getglobal' and obj.node.special == '_G' then - local lib = library.global[obj[1]] - if not lib then - return nil - end - tp = lib.value.type - end - local lib = library.object[tp] - if lib then - return lib.fields - end - return nil end |