summaryrefslogtreecommitdiff
path: root/meta/template/debug.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-16 15:42:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-16 15:42:57 +0800
commitdd0d670b21868181ff07b7a97f3d51f21e4c4aec (patch)
treef231f31eb19e83e94d422bf2c2742a1fb58f6176 /meta/template/debug.lua
parent42a8bb0a11264fc4aa0d06615e8943e068a657a4 (diff)
downloadlua-language-server-dd0d670b21868181ff07b7a97f3d51f21e4c4aec.zip
additional 类型的 enum
Diffstat (limited to 'meta/template/debug.lua')
-rw-r--r--meta/template/debug.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/template/debug.lua b/meta/template/debug.lua
index 1c3ab867..94b9af49 100644
--- a/meta/template/debug.lua
+++ b/meta/template/debug.lua
@@ -34,14 +34,14 @@ function debug.getfenv(o) end
function debug.gethook(co) end
---@alias infowhat string
----| '"n"' # `name` 和 `namewhat`
----| '"S"' # `source`,`short_src`,`linedefined`,`lastlinedefined`,和 `what`
----| '"l"' # `currentline`
----| '"t"' # `istailcall`
----| '"u"' # `nups`,`nparams` 和 `isvararg`
----| '"f"' # `func`
----| '"r"' # `ftransfer` 和 `ntransfer`
----| '"L"' # `activelines`
+---|+'"n"' # `name` 和 `namewhat`
+---|+'"S"' # `source`,`short_src`,`linedefined`,`lalinedefined`,和 `what`
+---|+'"l"' # `currentline`
+---|+'"t"' # `istailcall`
+---|+'"u"' # `nups`,`nparams` 和 `isvararg`
+---|+'"f"' # `func`
+---|+'"r"' # `ftransfer` 和 `ntransfer`
+---|+'"L"' # `activelines`
---@overload fun(f: integer|function, what: infowhat?):debuginfo
---@param thread thread
@@ -88,10 +88,10 @@ function debug.setcstacklimit(limit) end
---@return T object
function debug.setfenv(object, env) end
----@alias hookmask
----| '"c"'
----| '"r"'
----| '"l"'
+---@alias hookmask string
+---|+'"c"'
+---|+'"r"'
+---|+'"l"'
---@overload fun(hook: function, mask: hookmask, count: integer?)
---@param thread thread