diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 14:54:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-23 14:54:04 +0800 |
commit | 1dda93bba596496c1a427707fe97d92391129b8d (patch) | |
tree | 8bb525452d5677133a17662d091a077db5af1cad /server-beta/libs/@lua/coroutine.lni | |
parent | 62a3e74b5467ca3bc0879e73e8fc8b129c0bec6a (diff) | |
download | lua-language-server-1dda93bba596496c1a427707fe97d92391129b8d.zip |
整理文件
Diffstat (limited to 'server-beta/libs/@lua/coroutine.lni')
-rw-r--r-- | server-beta/libs/@lua/coroutine.lni | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/server-beta/libs/@lua/coroutine.lni b/server-beta/libs/@lua/coroutine.lni new file mode 100644 index 00000000..05db9038 --- /dev/null +++ b/server-beta/libs/@lua/coroutine.lni @@ -0,0 +1,112 @@ +[coroutine] +type = 'table' +[[.source]] +type = 'global' +`````````` +type = 'library' +name = 'coroutine' + +<default> +type = 'function' +parent = { + 1 = { + type = 'global', + name = 'coroutine', + }, + 2 = { + type = 'library', + name = 'coroutine', + } +} + +[create] +[[.args]] +name = 'f' +type = 'function' +[[.returns]] +name = 'coroutine' +type = 'thread' + +[isyieldable] +[[.returns]] +type = 'boolean' + +['isyieldable Lua 5.4'] +name = isyieldable +version = 'Lua 5.4' +[[.args]] +name = co +type = thread +optional = after +[[.returns]] +type = boolean + +[close] +version = 'Lua 5.4' +[[.args]] +name = 'co' +type = 'thread' +[[.returns]] +name = 'noerror' +type = 'boolean' +````````` +name = 'errorobject' +type = 'any' + +[resume] +[[.args]] +name = 'co' +type = 'thread' +`````````` +name = 'val1' +optional = 'after' +`````````` +type = '...' +[[.returns]] +name = 'success' +type = 'boolean' +`````````` +name = 'result' +`````````` +type = '...' + +[running] +[[.returns]] +name = 'running_co' +type = 'thread' +`````````` +name = 'is_main' +type = 'boolean' + +[status] +[[.args]] +name = 'co' +type = 'thread' +[[.returns]] +name = 'status' +type = 'string' +[[.enums]] +name = 'status' +enum = '"running"' +`````````` +name = 'status' +enum = '"suspended"' +`````````` +name = 'status' +enum = '"normal"' +`````````` +name = 'status' +enum = '"dead"' + +[wrap] +[[.args]] +name = 'f' +type = 'function' +[[.returns]] +type = '...' + +[yield] +[[.args]] +type = '...' +[[.returns]] +type = '...' |