We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
doc.type.function
1 parent 50dfc81 commit 3511bfdCopy full SHA for 3511bfd
script/vm/sign.lua
@@ -142,13 +142,15 @@ function mt:resolve(uri, args)
142
end
143
if object.type == 'doc.type.function' then
144
for i, arg in ipairs(object.args) do
145
- for n in node:eachObject() do
146
- if n.type == 'function'
147
- or n.type == 'doc.type.function' then
148
- ---@cast n parser.object
149
- local farg = n.args and n.args[i]
150
- if farg then
151
- resolve(arg.extends, vm.compileNode(farg))
+ if arg.extends then
+ for n in node:eachObject() do
+ if n.type == 'function'
+ or n.type == 'doc.type.function' then
+ ---@cast n parser.object
+ local farg = n.args and n.args[i]
+ if farg then
152
+ resolve(arg.extends, vm.compileNode(farg))
153
+ end
154
155
156
0 commit comments