diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-28 22:28:24 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-28 22:28:24 +0800 |
commit | e745667530f0d4fd340beebc1545f86c76c78af1 (patch) | |
tree | 90444f218bfc26a44ac2997f8e619f354afae058 /script/vm | |
parent | d79bad83b120ab4a04bed447fad62789f21f24b5 (diff) | |
download | lua-language-server-e745667530f0d4fd340beebc1545f86c76c78af1.zip |
update
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/ref.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/script/vm/ref.lua b/script/vm/ref.lua index 9705094c..4765dc8d 100644 --- a/script/vm/ref.lua +++ b/script/vm/ref.lua @@ -24,7 +24,6 @@ end simpleMap = util.switch() : case 'local' : call(function (source, pushResult) - pushResult(source) if source.ref then for _, ref in ipairs(source.ref) do if ref.type == 'setlocal' @@ -33,12 +32,6 @@ simpleMap = util.switch() end end end - - if source.dummy then - for _, res in ipairs(vm.getDefs(source.method.node)) do - pushResult(res) - end - end end) : case 'getlocal' : case 'setlocal' @@ -213,8 +206,6 @@ local function searchByNode(source, pushResult) for _, get in ipairs(n:getGets()) do pushResult(get) end - else - pushResult(n) end end end |