diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-04-05 18:57:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-04-05 18:57:03 +0800 |
commit | 8cd1514556324eabcf1b96954afe53adfc2030b7 (patch) | |
tree | c9a8aa5f1f9913ea9bcde9f60de526732b679516 /server/libs | |
parent | 4f94d3500d6d7b6d082647359011d2ca103741db (diff) | |
download | lua-language-server-8cd1514556324eabcf1b96954afe53adfc2030b7.zip |
Lua 5.2 的API
Diffstat (limited to 'server/libs')
-rw-r--r-- | server/libs/lua/bit32.lni | 136 | ||||
-rw-r--r-- | server/libs/lua/math.lni | 23 |
2 files changed, 159 insertions, 0 deletions
diff --git a/server/libs/lua/bit32.lni b/server/libs/lua/bit32.lni new file mode 100644 index 00000000..6920323c --- /dev/null +++ b/server/libs/lua/bit32.lni @@ -0,0 +1,136 @@ +[bit32] +version = 'Lua 5.2' +type = 'table' +[[.source]] +type = 'global' +`````````` +type = 'library' +name = 'bit32' + +<default> +version = 'Lua 5.2' +type = 'function' +parent = { + 1 = { + type = 'global', + name = 'bit32', + }, + 2 = { + type = 'library', + name = 'bit32', + } +} + +[arshift] +[[.args]] +name = x +type = integer +`````````` +name = disp +type = integer +[[.returns]] +type = integer + +[band] +[[.args]] +type = '...' +[[.returns]] +type = integer + +[bnot] +[[.args]] +name = x +type = integer +[[.returns]] +type = integer + +[bor] +[[.args]] +type = '...' +[[.returns]] +type = integer + +[btest] +[[.args]] +type = '...' +[[.returns]] +type = boolean + +[bxor] +[[.args]] +type = '...' +[[.returns]] +type = integer + +[extract] +[[.args]] +name = n +type = integer +`````````` +name = field +type = integer +`````````` +name = width +type = integer +optional = after +default = 1 +[[.returns]] +type = integer + +[replace] +[[.args]] +name = n +type = integer +`````````` +name = v +type = integer +`````````` +name = field +type = integer +`````````` +name = width +type = integer +optional = false +default = 1 +[[.returns]] +type = integer + +[lrotate] +[[.args]] +name = x +type = integer +`````````` +name = disp +type = integer +[[.returns]] +type = integer + +[lshift] +[[.args]] +name = x +type = integer +`````````` +name = disp +type = integer +[[.returns]] +type = integer + +[rrotate] +[[.args]] +name = x +type = integer +`````````` +name = disp +type = integer +[[.returns]] +type = integer + +[rshift] +[[.args]] +name = x +type = integer +`````````` +name = disp +type = integer +[[.returns]] +type = integer diff --git a/server/libs/lua/math.lni b/server/libs/lua/math.lni index 4098d29e..4f807b0c 100644 --- a/server/libs/lua/math.lni +++ b/server/libs/lua/math.lni @@ -129,9 +129,32 @@ type = 'number' [[.returns]] type = 'number' +[frexp] +version = {'Lua 5.1', 'Lua 5.2'} +[[.args]] +name = 'x' +type = 'number' +[[.returns]] +name = 'm' +type = 'number' +`````````` +name = 'e' +type = 'number' + [huge] type = 'number' +[ldexp] +version = {'Lua 5.1', 'Lua 5.2'} +[[.args]] +name = 'm' +type = 'number' +`````````` +name = 'e' +type = 'integer' +[[.returns]] +type = 'number' + [log] [[.args]] name = 'x' |