summaryrefslogtreecommitdiff
path: root/meta/template/bit.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-03 17:41:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-03 17:41:56 +0800
commit23b01e07a92ed92a40b3ee8dbdcf03174dc82db5 (patch)
treeb6b2cafa2dcf23c64c6bfa8f2a1eff0947398a9f /meta/template/bit.lua
parent7b76328600dd9bc5206f38a549da9e4f99c9ff84 (diff)
downloadlua-language-server-23b01e07a92ed92a40b3ee8dbdcf03174dc82db5.zip
add mark `---@nodiscard`
Diffstat (limited to 'meta/template/bit.lua')
-rw-r--r--meta/template/bit.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/template/bit.lua b/meta/template/bit.lua
index d7cfd302..57bf6d31 100644
--- a/meta/template/bit.lua
+++ b/meta/template/bit.lua
@@ -7,62 +7,74 @@ bit = {}
---@param x integer
---@return integer y
+---@nodiscard
function bit.tobit(x) end
---@param x integer
---@param n? integer
---@return integer y
+---@nodiscard
function bit.tohex(x, n) end
---@param x integer
---@return integer y
+---@nodiscard
function bit.bnot(x) end
---@param x integer
---@param x2 integer
---@vararg integer
---@return integer y
+---@nodiscard
function bit.bor(x, x2, ...) end
---@param x integer
---@param x2 integer
---@vararg integer
---@return integer y
+---@nodiscard
function bit.band(x, x2, ...) end
---@param x integer
---@param x2 integer
---@vararg integer
---@return integer y
+---@nodiscard
function bit.bxor(x, x2, ...) end
---@param x integer
---@param n integer
---@return integer y
+---@nodiscard
function bit.lshift(x, n) end
---@param x integer
---@param n integer
---@return integer y
+---@nodiscard
function bit.rshift(x, n) end
---@param x integer
---@param n integer
---@return integer y
+---@nodiscard
function bit.arshift(x, n) end
---@param x integer
---@param n integer
---@return integer y
+---@nodiscard
function bit.rol(x, n) end
---@param x integer
---@param n integer
---@return integer y
+---@nodiscard
function bit.ror(x, n) end
---@param x integer
---@return integer y
+---@nodiscard
function bit.bswap(x) end
return bit