summaryrefslogtreecommitdiff
path: root/script-beta/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-27 10:05:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-27 10:05:33 +0800
commit95a6fd7121fab859249ac015f7bfa1e0fbb09e8e (patch)
tree18a54c661b706b9df183aead905660902d3524eb /script-beta/parser
parent6a237a482e05088fcd07247310aa0e895235c773 (diff)
downloadlua-language-server-95a6fd7121fab859249ac015f7bfa1e0fbb09e8e.zip
来自 return
Diffstat (limited to 'script-beta/parser')
-rw-r--r--script-beta/parser/guide.lua14
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