summaryrefslogtreecommitdiff
path: root/server/libs
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-17 13:53:59 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-17 13:53:59 +0800
commit03d281fc3b7a09321143a69f5b1a33984c4c2a1c (patch)
tree6b8b18455e370b0f8fec352ecb59bbb97a58855d /server/libs
parent8155ec4edbd3084e49562e723bfa83e73224d7e0 (diff)
downloadlua-language-server-03d281fc3b7a09321143a69f5b1a33984c4c2a1c.zip
更新库
Diffstat (limited to 'server/libs')
-rw-r--r--server/libs/lua53/math.lni213
1 files changed, 211 insertions, 2 deletions
diff --git a/server/libs/lua53/math.lni b/server/libs/lua53/math.lni
index 1e37a0d0..ea57a0d3 100644
--- a/server/libs/lua53/math.lni
+++ b/server/libs/lua53/math.lni
@@ -1,5 +1,214 @@
+[math]
+type = 'table'
+[[.source]]
+type = 'global'
+[[.source]]
+type = 'library'
+name = 'math'
+
<default>
type = 'function'
+[[.parent]]
+type = 'global'
+name = 'math'
+[[.parent]]
+type = 'library'
+name = 'math'
-[math]
-type = 'table'
+[abs]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[acos]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[atan]
+[[.args]]
+name = 'y'
+type = 'number'
+[[.args]]
+name = 'x'
+type = 'number'
+optional = 'self'
+default = 1
+[[.returns]]
+type = 'number'
+
+[ceil]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'integer'
+
+[cos]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[deg]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[exp]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[floor]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'integer'
+
+[fmod]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[huge]
+type = 'number'
+
+[log]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.args]]
+name = 'base'
+type = 'number'
+optional = 'self'
+default = 'e'
+[[.returns]]
+type = 'number'
+
+[max]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.args]]
+type = '...'
+[[.returns]]
+type = 'number'
+
+[maxinteger]
+type = 'integer'
+
+[min]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.args]]
+type = '...'
+[[.returns]]
+type = 'number'
+
+[mininteger]
+type = 'integer'
+
+[modf]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'integer'
+[[.returns]]
+type = 'number'
+
+[pi]
+type = 'number'
+
+[rad]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[random]
+[[.args]]
+name = 'm'
+type = 'integer'
+optional = 'after'
+[[.args]]
+name = 'n'
+type = 'integer'
+optional = 'self'
+[[.returns]]
+type = 'number'
+
+[randomseed]
+[[.args]]
+name = 'x'
+type = 'integer'
+
+[sin]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[sqrt]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[tan]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'number'
+
+[tointeger]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+type = 'integer'
+
+[type]
+[[.args]]
+name = 'x'
+type = 'number'
+[[.returns]]
+name = 'type'
+type = 'string'
+[[.enums]]
+name = 'type'
+enum = 'integer'
+[[.enums]]
+name = 'type'
+enum = 'float'
+[[.enums]]
+name = 'type'
+code = 'nil'
+
+[ult]
+[[.args]]
+name = 'm'
+type = 'integer'
+[[.args]]
+name = 'n'
+type = 'integer'
+[[.returns]]
+type = 'boolean'