diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-28 11:13:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-28 11:13:52 +0800 |
commit | f6a6e9f9d36d34c542c721db41a4e9770bcebcf7 (patch) | |
tree | 5833c5c7dec4406800ad037c99d7ece1377329b4 /server/meta | |
parent | 20b562e48b11df93a5926c919d793c1fe00aa018 (diff) | |
download | lua-language-server-f6a6e9f9d36d34c542c721db41a4e9770bcebcf7.zip |
alias支持enum.option
Diffstat (limited to 'server/meta')
-rw-r--r-- | server/meta/Lua 5.4/basic.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/meta/Lua 5.4/basic.lua b/server/meta/Lua 5.4/basic.lua index 6b0bff8e..20a60e1d 100644 --- a/server/meta/Lua 5.4/basic.lua +++ b/server/meta/Lua 5.4/basic.lua @@ -9,9 +9,7 @@ arg = {} function assert(v, message) end ----@overload fun() ----@overload fun(opt:string):any ----@param opt string {optional = 'after'} +---@alias GCOption string ---| '"collect"' {comment = '做一次完整的垃圾收集循环。', default = true} ---| '"stop"' {comment = '停止垃圾收集器的运行。'} ---| '"restart"' {comment = '重启垃圾收集器的自动运行。'} @@ -22,6 +20,9 @@ end ---| '"incremental"' {comment = '改变收集器模式为增量模式。'} ---| '"generational"' {comment = '改变收集器模式为分代模式。'} ---| '"isrunning"' {comment = '返回表示收集器是否在工作的布尔值。'} +---@overload fun() +---@overload fun(opt:GCOption):any +---@param opt GCOption {optional = 'after'} ---@param arg integer {optional = 'self'} ---@return any function collectgarbage(opt, arg) |