summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-27 14:57:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-27 14:57:15 +0800
commitc5bd11601ba7eac883d4c7e7b4adc35e3b3a4f1e (patch)
treee33412a9820991a0179391c7422c9a17cdcf3206 /script
parentfdf3ebd61e8591b8c4d8538e9874f4dbd7a813a3 (diff)
downloadlua-language-server-c5bd11601ba7eac883d4c7e7b4adc35e3b3a4f1e.zip
@param -> local in
Diffstat (limited to 'script')
-rw-r--r--script/core/noder.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 89379d56..58144a27 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -480,7 +480,12 @@ function m.compileNode(noders, source)
end
end
if source.type == 'doc.param' then
- pushForward(noders, getID(source), getID(source.extends))
+ pushForward(noders, id, getID(source.extends))
+ for _, src in ipairs(source.bindSources) do
+ if src.type == 'local' and src.parent.type == 'in' then
+ pushForward(noders, getID(src), id)
+ end
+ end
end
if source.type == 'doc.vararg' then
pushForward(noders, getID(source), getID(source.vararg))