summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty
diff options
context:
space:
mode:
authorMichael Martin <flrgh@protonmail.com>2021-12-21 17:42:10 -0800
committerMichael Martin <flrgh@protonmail.com>2021-12-21 17:42:10 -0800
commit72f6b2f920f16be027cc05bb4e189870c641817e (patch)
tree691e594f2029b1a7b47229e3446c2f80c63d8fc2 /meta/3rd/OpenResty
parentec4f497aa2624d9dce29e1de0cfd28ecd85e7df3 (diff)
downloadlua-language-server-72f6b2f920f16be027cc05bb4e189870c641817e.zip
chore: update/cleanup resty.core.* annotations
Diffstat (limited to 'meta/3rd/OpenResty')
-rw-r--r--meta/3rd/OpenResty/library/resty.core.base.lua61
-rw-r--r--meta/3rd/OpenResty/library/resty.core.base64.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.ctx.lua9
-rw-r--r--meta/3rd/OpenResty/library/resty.core.exit.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.hash.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.misc.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.ndk.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.phase.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.regex.lua14
-rw-r--r--meta/3rd/OpenResty/library/resty.core.request.lua5
-rw-r--r--meta/3rd/OpenResty/library/resty.core.response.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.shdict.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.time.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.uri.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.utils.lua9
-rw-r--r--meta/3rd/OpenResty/library/resty.core.var.lua4
-rw-r--r--meta/3rd/OpenResty/library/resty.core.worker.lua4
18 files changed, 95 insertions, 55 deletions
diff --git a/meta/3rd/OpenResty/library/resty.core.base.lua b/meta/3rd/OpenResty/library/resty.core.base.lua
index 5855b290..61cd29e5 100644
--- a/meta/3rd/OpenResty/library/resty.core.base.lua
+++ b/meta/3rd/OpenResty/library/resty.core.base.lua
@@ -1,22 +1,51 @@
---@meta
-resty_core_base={}
-function resty_core_base.new_tab() end
-resty_core_base.FFI_ERROR=-1
-function resty_core_base.set_string_buf_size(size) end
-resty_core_base.FFI_AGAIN=-2
-resty_core_base.FFI_NO_REQ_CTX=-100
-resty_core_base.FFI_OK=0
-function resty_core_base.ref_in_table(tb, key) end
-resty_core_base.FFI_BAD_CONTEXT=-101
+local resty_core_base = {}
+
+---@param ... string
function resty_core_base.allows_subsystem(...) end
+
+---@param t table
+function resty_core_base.clear_tab(t) end
+
+---@return userdata
function resty_core_base.get_errmsg_ptr() end
-function resty_core_base.get_string_buf_size() end
-resty_core_base.version="0.1.17"
-function resty_core_base.clear_tab() end
+
+---@return userdata
+function resty_core_base.get_request() end
+
+---@return userdata
function resty_core_base.get_size_ptr() end
-resty_core_base.FFI_DECLINED=-5
-resty_core_base.FFI_DONE=-4
-resty_core_base.FFI_BUSY=-3
+
+---@param size number
+---@param must_alloc boolean
+---@return userdata
function resty_core_base.get_string_buf(size, must_alloc) end
-function resty_core_base.get_request() end
+
+---@return number
+function resty_core_base.get_string_buf_size() end
+
+---@param narr number
+---@param nrec number
+---@return table
+function resty_core_base.new_tab(narr, nrec) end
+
+---@param tb table
+---@param key any
+---@return any
+function resty_core_base.ref_in_table(tb, key) end
+
+---@param size number
+function resty_core_base.set_string_buf_size(size) end
+
+resty_core_base.FFI_OK = 0
+resty_core_base.FFI_NO_REQ_CTX = -100
+resty_core_base.FFI_BAD_CONTEXT = -101
+resty_core_base.FFI_ERROR = -1
+resty_core_base.FFI_AGAIN = -2
+resty_core_base.FFI_BUSY = -3
+resty_core_base.FFI_DONE = -4
+resty_core_base.FFI_DECLINED = -5
+
+resty_core_base.version = "0.1.23"
+
return resty_core_base \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.base64.lua b/meta/3rd/OpenResty/library/resty.core.base64.lua
index 8f2fc9cc..21534411 100644
--- a/meta/3rd/OpenResty/library/resty.core.base64.lua
+++ b/meta/3rd/OpenResty/library/resty.core.base64.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_base64={}
-resty_core_base64.version="0.1.17"
+local resty_core_base64={}
+resty_core_base64.version = require("resty.core.base").version
return resty_core_base64 \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.ctx.lua b/meta/3rd/OpenResty/library/resty.core.ctx.lua
index 8fab2ca6..7f94db15 100644
--- a/meta/3rd/OpenResty/library/resty.core.ctx.lua
+++ b/meta/3rd/OpenResty/library/resty.core.ctx.lua
@@ -1,4 +1,9 @@
---@meta
-resty_core_ctx={}
-resty_core_ctx._VERSION="0.1.17"
+local resty_core_ctx={}
+resty_core_ctx._VERSION = require("resty.core.base").version
+
+---@param ctx? table
+---@return table
+function resty_core_ctx.get_ctx_table(ctx) end
+
return resty_core_ctx \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.exit.lua b/meta/3rd/OpenResty/library/resty.core.exit.lua
index da3677c7..57f08c71 100644
--- a/meta/3rd/OpenResty/library/resty.core.exit.lua
+++ b/meta/3rd/OpenResty/library/resty.core.exit.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_exit={}
-resty_core_exit.version="0.1.17"
+local resty_core_exit={}
+resty_core_exit.version = require("resty.core.base").version
return resty_core_exit \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.hash.lua b/meta/3rd/OpenResty/library/resty.core.hash.lua
index a902af8d..54ef2c8a 100644
--- a/meta/3rd/OpenResty/library/resty.core.hash.lua
+++ b/meta/3rd/OpenResty/library/resty.core.hash.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_hash={}
-resty_core_hash.version="0.1.17"
+local resty_core_hash={}
+resty_core_hash.version = require("resty.core.base").version
return resty_core_hash \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.lua b/meta/3rd/OpenResty/library/resty.core.lua
index 8fa94525..e143818e 100644
--- a/meta/3rd/OpenResty/library/resty.core.lua
+++ b/meta/3rd/OpenResty/library/resty.core.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core={}
-resty_core.version="0.1.17"
+local resty_core={}
+resty_core.version = require("resty.core.base").version
return resty_core \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.misc.lua b/meta/3rd/OpenResty/library/resty.core.misc.lua
index 1bf59e56..bd355c02 100644
--- a/meta/3rd/OpenResty/library/resty.core.misc.lua
+++ b/meta/3rd/OpenResty/library/resty.core.misc.lua
@@ -1,6 +1,6 @@
---@meta
-resty_core_misc={}
+local resty_core_misc={}
function resty_core_misc.register_ngx_magic_key_getter() end
function resty_core_misc.register_ngx_magic_key_setter() end
-resty_core_misc._VERSION="0.1.17"
+resty_core_misc._VERSION = require("resty.core.base").version
return resty_core_misc \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.ndk.lua b/meta/3rd/OpenResty/library/resty.core.ndk.lua
index 9e778758..6a243329 100644
--- a/meta/3rd/OpenResty/library/resty.core.ndk.lua
+++ b/meta/3rd/OpenResty/library/resty.core.ndk.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_ndk={}
-resty_core_ndk.version="0.1.17"
+local resty_core_ndk={}
+resty_core_ndk.version = require("resty.core.base").version
return resty_core_ndk \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.phase.lua b/meta/3rd/OpenResty/library/resty.core.phase.lua
index e6d4e592..1ac451c0 100644
--- a/meta/3rd/OpenResty/library/resty.core.phase.lua
+++ b/meta/3rd/OpenResty/library/resty.core.phase.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_phase={}
-resty_core_phase.version="0.1.17"
+local resty_core_phase={}
+resty_core_phase.version = require("resty.core.base").version
return resty_core_phase \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.regex.lua b/meta/3rd/OpenResty/library/resty.core.regex.lua
index f91bf1da..31cb7915 100644
--- a/meta/3rd/OpenResty/library/resty.core.regex.lua
+++ b/meta/3rd/OpenResty/library/resty.core.regex.lua
@@ -1,11 +1,11 @@
---@meta
-resty_core_regex={}
-function resty_core_regex.collect_captures() end
+local resty_core_regex={}
+function resty_core_regex.collect_captures(compiled, rc, subj, flags, res) end
function resty_core_regex.set_buf_grow_ratio(ratio) end
-function resty_core_regex.re_sub_compile() end
+function resty_core_regex.re_sub_compile(regex, opts, replace, fun) end
function resty_core_regex.is_regex_cache_empty() end
-function resty_core_regex.check_buf_size() end
-function resty_core_regex.re_match_compile() end
-function resty_core_regex.destroy_compiled_regex() end
-resty_core_regex.version="0.1.17"
+function resty_core_regex.check_buf_size(buf, buf_size, pos, len, new_len, must_alloc) end
+function resty_core_regex.re_match_compile(regex, opts) end
+function resty_core_regex.destroy_compiled_regex(compiled) end
+resty_core_regex.version = require("resty.core.base").version
return resty_core_regex \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.request.lua b/meta/3rd/OpenResty/library/resty.core.request.lua
index 4ffd1899..3b4d81bd 100644
--- a/meta/3rd/OpenResty/library/resty.core.request.lua
+++ b/meta/3rd/OpenResty/library/resty.core.request.lua
@@ -1,4 +1,5 @@
---@meta
-resty_core_request={}
-resty_core_request.version="0.1.17"
+local resty_core_request={}
+resty_core_request.version = require("resty.core.base").version
+function resty_core_request.set_req_header(name, value, override) end
return resty_core_request \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.response.lua b/meta/3rd/OpenResty/library/resty.core.response.lua
index df2f03bc..a3a4d4d7 100644
--- a/meta/3rd/OpenResty/library/resty.core.response.lua
+++ b/meta/3rd/OpenResty/library/resty.core.response.lua
@@ -1,5 +1,5 @@
---@meta
-resty_core_response={}
+local resty_core_response={}
function resty_core_response.set_resp_header() end
-resty_core_response.version="0.1.17"
+resty_core_response.version = require("resty.core.base").version
return resty_core_response \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.shdict.lua b/meta/3rd/OpenResty/library/resty.core.shdict.lua
index 9b662265..054a9dc5 100644
--- a/meta/3rd/OpenResty/library/resty.core.shdict.lua
+++ b/meta/3rd/OpenResty/library/resty.core.shdict.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_shdict={}
-resty_core_shdict.version="0.1.17"
+local resty_core_shdict={}
+resty_core_shdict.version = require("resty.core.base").version
return resty_core_shdict \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.time.lua b/meta/3rd/OpenResty/library/resty.core.time.lua
index 5adea8dd..30f89b1e 100644
--- a/meta/3rd/OpenResty/library/resty.core.time.lua
+++ b/meta/3rd/OpenResty/library/resty.core.time.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_time={}
-resty_core_time.version="0.1.17"
+local resty_core_time={}
+resty_core_time.version = require("resty.core.base").version
return resty_core_time \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.uri.lua b/meta/3rd/OpenResty/library/resty.core.uri.lua
index 4eb5269c..3e2c3e51 100644
--- a/meta/3rd/OpenResty/library/resty.core.uri.lua
+++ b/meta/3rd/OpenResty/library/resty.core.uri.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_uri={}
-resty_core_uri.version="0.1.17"
+local resty_core_uri={}
+resty_core_uri.version = require("resty.core.base").version
return resty_core_uri \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.utils.lua b/meta/3rd/OpenResty/library/resty.core.utils.lua
index 3c5ba1ae..8070a33b 100644
--- a/meta/3rd/OpenResty/library/resty.core.utils.lua
+++ b/meta/3rd/OpenResty/library/resty.core.utils.lua
@@ -1,5 +1,10 @@
---@meta
-resty_core_utils={}
+local resty_core_utils={}
+
+---@param str string
+---@param find string
+---@param replace string
+---@return string
function resty_core_utils.str_replace_char(str, find, replace) end
-resty_core_utils.version="0.1.17"
+resty_core_utils.version = require("resty.core.base").version
return resty_core_utils \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.var.lua b/meta/3rd/OpenResty/library/resty.core.var.lua
index 856bc544..df884ff9 100644
--- a/meta/3rd/OpenResty/library/resty.core.var.lua
+++ b/meta/3rd/OpenResty/library/resty.core.var.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_var={}
-resty_core_var.version="0.1.17"
+local resty_core_var={}
+resty_core_var.version = require("resty.core.base").version
return resty_core_var \ No newline at end of file
diff --git a/meta/3rd/OpenResty/library/resty.core.worker.lua b/meta/3rd/OpenResty/library/resty.core.worker.lua
index 2e3120f1..92a8351c 100644
--- a/meta/3rd/OpenResty/library/resty.core.worker.lua
+++ b/meta/3rd/OpenResty/library/resty.core.worker.lua
@@ -1,4 +1,4 @@
---@meta
-resty_core_worker={}
-resty_core_worker._VERSION="0.1.17"
+local resty_core_worker={}
+resty_core_worker._VERSION = require("resty.core.base").version
return resty_core_worker \ No newline at end of file