Skip to content
Snippets Groups Projects
Commit 3511bfd1 authored by d-enk's avatar d-enk
Browse files

fix: `doc.type.function` resolve only existing arg.extends

parent 50dfc81e
Branches
No related tags found
No related merge requests found
......@@ -142,13 +142,15 @@ function mt:resolve(uri, args)
end
if object.type == 'doc.type.function' then
for i, arg in ipairs(object.args) do
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
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
resolve(arg.extends, vm.compileNode(farg))
end
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment