diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 02:47:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-13 02:47:34 +0800 |
commit | 7fdc3519e62f00f236956d272295b241d4bfa762 (patch) | |
tree | d3a1fc449350ea641ad23a229138a97cbe0fe825 /script/vm/global-manager.lua | |
parent | f760dc359b389c20a0d48bef463d14800e67894c (diff) | |
download | lua-language-server-7fdc3519e62f00f236956d272295b241d4bfa762.zip |
cleanup
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r-- | script/vm/global-manager.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/script/vm/global-manager.lua b/script/vm/global-manager.lua index bd5b8696..dffc5c73 100644 --- a/script/vm/global-manager.lua +++ b/script/vm/global-manager.lua @@ -5,11 +5,11 @@ local signMgr = require 'vm.sign' local genericMgr = require 'vm.generic' ---@class parser.object ----@field _globalNode vm.node.global +---@field _globalNode vm.global ---@class vm.global-manager local m = {} ----@type table<string, vm.node.global> +---@type table<string, vm.global> m.globals = {} ---@type table<uri, table<string, boolean>> m.globalSubs = util.multiTable(2) @@ -209,7 +209,7 @@ local compilerGlobalSwitch = util.switch() ---@param cate vm.global.cate ---@param name string ---@param uri uri ----@return vm.node.global +---@return vm.global function m.declareGlobal(cate, name, uri) local key = cate .. '|' .. name m.globalSubs[uri][key] = true @@ -222,7 +222,7 @@ end ---@param cate vm.global.cate ---@param name string ---@param field? string ----@return vm.node.global? +---@return vm.global? function m.getGlobal(cate, name, field) local key = cate .. '|' .. name if field then @@ -233,7 +233,7 @@ end ---@param cate vm.global.cate ---@param name string ----@return vm.node.global[] +---@return vm.global[] function m.getFields(cate, name) local globals = {} local key = cate .. '|' .. name @@ -252,7 +252,7 @@ function m.getFields(cate, name) end ---@param cate vm.global.cate ----@return vm.node.global[] +---@return vm.global[] function m.getGlobals(cate) local globals = {} @@ -327,7 +327,7 @@ function m.compileAst(source) end) end ----@return vm.node.global +---@return vm.global function m.getNode(source) if source.type == 'field' or source.type == 'method' then |