Skip to content
Snippets Groups Projects
Unverified Commit 8c4aca0f authored by 最萌小汐's avatar 最萌小汐 Committed by GitHub
Browse files

Merge pull request #2424 from d-enk/fix-sign-resolve-nil-extends

fix: `doc.type.function` resolve only existing arg.extends
parents 50dfc81e 3511bfd1
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,7 @@ function mt:resolve(uri, args) ...@@ -142,6 +142,7 @@ function mt:resolve(uri, args)
end end
if object.type == 'doc.type.function' then if object.type == 'doc.type.function' then
for i, arg in ipairs(object.args) do for i, arg in ipairs(object.args) do
if arg.extends then
for n in node:eachObject() do for n in node:eachObject() do
if n.type == 'function' if n.type == 'function'
or n.type == 'doc.type.function' then or n.type == 'doc.type.function' then
...@@ -153,6 +154,7 @@ function mt:resolve(uri, args) ...@@ -153,6 +154,7 @@ function mt:resolve(uri, args)
end end
end end
end end
end
for i, ret in ipairs(object.returns) do for i, ret in ipairs(object.returns) do
for n in node:eachObject() do for n in node:eachObject() do
if n.type == 'function' 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