diff options
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/parser/guide.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index dec29ca0..8bf01fc4 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -3308,7 +3308,19 @@ local function mergeDocTypeFunctionReturns(status, source, index) return end for _, doc in ipairs(source.bindDocs) do - + if doc.type == 'doc.type' then + for _, typeUnit in ipairs(doc.types) do + if typeUnit.type == 'doc.type.function' then + local rtn = typeUnit.returns[index] + if rtn then + local results = m.getDocTypeNames(rtn) + for _, res in ipairs(results) do + status.results[#status.results+1] = res + end + end + end + end + end end end |