Skip to content

Commit b780666

Browse files
committed
fix warnings
1 parent 89edbfa commit b780666

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

script/parser/guide.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local type = type
1010
---@field type string
1111
---@field special string
1212
---@field tag string
13-
---@field args { [integer]: parser.object, start: integer, finish: integer }
13+
---@field args { [integer]: parser.object, start: integer, finish: integer, type: string }
1414
---@field locals parser.object[]
1515
---@field returns? parser.object[]
1616
---@field breaks? parser.object[]

script/parser/luadoc.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2106,11 +2106,13 @@ local function luadoc(state)
21062106
end
21072107
end
21082108
end
2109-
2109+
21102110
if ast.state.pluginDocs then
21112111
for i, doc in ipairs(ast.state.pluginDocs) do
21122112
insertDoc(doc, doc.originalComment)
21132113
end
2114+
---@param a unknown
2115+
---@param b unknown
21142116
table.sort(ast.docs, function (a, b)
21152117
return a.start < b.start
21162118
end)

script/plugins/astHelper.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ end
5757
function _M.addClassDocAtParam(ast, classname, source, index)
5858
local arg = _M.removeArg(source, index)
5959
if arg then
60-
return _M.addClassDoc(ast, arg, classname), arg
60+
return not not _M.addClassDoc(ast, arg, classname), arg
6161
end
6262
return false
6363
end

script/workspace/scope.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ function mt:set(k, v)
125125
return v
126126
end
127127

128-
---@generic T
129-
---@param k `T`
130-
---@return T
131128
function mt:get(k)
132129
return self._data[k]
133130
end

0 commit comments

Comments
 (0)