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
No related branches found
No related tags found
No related merge requests found
......@@ -142,6 +142,7 @@ function mt:resolve(uri, args)
end
if object.type == 'doc.type.function' then
for i, arg in ipairs(object.args) do
if arg.extends then
for n in node:eachObject() do
if n.type == 'function'
or n.type == 'doc.type.function' then
......@@ -153,6 +154,7 @@ function mt:resolve(uri, args)
end
end
end
end
for i, ret in ipairs(object.returns) do
for n in node:eachObject() do
if n.type == 'function'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment