diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-03 17:41:56 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-03 17:41:56 +0800 |
commit | 23b01e07a92ed92a40b3ee8dbdcf03174dc82db5 (patch) | |
tree | b6b2cafa2dcf23c64c6bfa8f2a1eff0947398a9f /meta/template/io.lua | |
parent | 7b76328600dd9bc5206f38a549da9e4f99c9ff84 (diff) | |
download | lua-language-server-23b01e07a92ed92a40b3ee8dbdcf03174dc82db5.zip |
add mark `---@nodiscard`
Diffstat (limited to 'meta/template/io.lua')
-rw-r--r-- | meta/template/io.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/template/io.lua b/meta/template/io.lua index d31027af..1af572b6 100644 --- a/meta/template/io.lua +++ b/meta/template/io.lua @@ -50,6 +50,7 @@ function io.lines(filename, ...) end ---@param mode openmode ---@return file*? ---@return string? errmsg +---@nodiscard function io.open(filename, mode) end ---#DES 'io.output' @@ -72,10 +73,12 @@ function io.popen(prog, mode) end ---@vararg readmode ---@return string|number ---@return ... +---@nodiscard function io.read(...) end ---#DES 'io.tmpfile' ---@return file* +---@nodiscard function io.tmpfile() end ---@alias filetype @@ -86,6 +89,7 @@ function io.tmpfile() end ---#DES 'io.type' ---@param file file* ---@return filetype +---@nodiscard function io.type(file) end ---#DES 'io.write' @@ -131,6 +135,7 @@ function file:lines(...) end ---#DES 'file:read' ---@vararg readmode ---@return string|number +---@nodiscard function file:read(...) end ---@alias seekwhence |