summaryrefslogtreecommitdiff
path: root/script-beta/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-26 20:56:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-26 20:56:42 +0800
commit6a237a482e05088fcd07247310aa0e895235c773 (patch)
tree56f465720888d4db1cce4a9d3c7253624b70a457 /script-beta/parser/guide.lua
parent0b708180509007bfb6c54d8112f85d5f85ec9210 (diff)
downloadlua-language-server-6a237a482e05088fcd07247310aa0e895235c773.zip
type.function
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r--script-beta/parser/guide.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 4c18a695..dec29ca0 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -3303,6 +3303,15 @@ local function mergeFunctionReturns(status, source, index, call)
end
end
+local function mergeDocTypeFunctionReturns(status, source, index)
+ if not source.bindDocs then
+ return
+ end
+ for _, doc in ipairs(source.bindDocs) do
+
+ end
+end
+
function m.inferByCallReturnAndIndex(status, call, index)
local node = call.node
local newStatus = m.status(nil, status.interface)
@@ -3317,6 +3326,7 @@ function m.inferByCallReturnAndIndex(status, call, index)
end
end
end
+ mergeDocTypeFunctionReturns(status, src, index)
end
end