diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 16:19:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-19 16:19:53 +0800 |
commit | 6cf88ae11ac842453cca5936fe6c105076745e55 (patch) | |
tree | ef9e4eece036890d07c57ffd8602a1370ac8e4e4 /script | |
parent | 5e3f203d76473e2ade05cfd344f2dc6608d65e1a (diff) | |
download | lua-language-server-6cf88ae11ac842453cca5936fe6c105076745e55.zip |
fix #806
Diffstat (limited to 'script')
-rw-r--r-- | script/core/noder.lua | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 3a8b9fe2..371e0200 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -940,7 +940,10 @@ compileNodeMap = util.switch() : call(function (noders, id, source) if source.bindSources then for _, src in ipairs(source.bindSources) do - pushForward(noders, getID(src), id) + if src.parent.type ~= 'funcargs' + and not src.dummy then + pushForward(noders, getID(src), id) + end end end for _, enumUnit in ipairs(source.enums) do @@ -954,7 +957,10 @@ compileNodeMap = util.switch() pushForward(noders, id, unitID) if source.bindSources then for _, src in ipairs(source.bindSources) do - pushBackward(noders, unitID, getID(src)) + if src.parent.type ~= 'funcargs' + and not src.dummy then + pushBackward(noders, unitID, getID(src)) + end end end end @@ -1031,8 +1037,11 @@ compileNodeMap = util.switch() or src.type == 'tablefield' or src.type == 'tableindex' or src.type == 'setglobal' then - pushForward(noders, getID(src), id) - pushForward(noders, id, getID(src)) + if src.parent.type ~= 'funcargs' + and not src.dummy then + pushForward(noders, getID(src), id) + pushForward(noders, id, getID(src)) + end end end end |