summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 16:45:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-18 17:10:53 +0800
commit19d38a540f37eff20c7fad1f35143f685a1831eb (patch)
tree51dcbb51bd9171e3d3b2d1e17b177574bb46d999
parentb9e80534b6d363889da4c3e9fb9f4f1fd903ccbb (diff)
downloadlua-language-server-19d38a540f37eff20c7fad1f35143f685a1831eb.zip
remove backwards
-rw-r--r--script/core/noder.lua24
1 files changed, 0 insertions, 24 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index a5972ff8..f7cfc785 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -937,33 +937,11 @@ compileNodeMap = util.switch()
: call(function (noders, id, source)
pushForward(noders, id, 'dn:nil')
end)
- : case 'local'
- : call(function (noders, id, source)
- if source[1] ~= 'self' then
- return
- end
- local func = guide.getParentFunction(source)
- if func.isGeneric then
- return
- end
- if source.parent.type ~= 'funcargs' then
- return
- end
- local setmethod = func.parent
- -- guess `self`
- if setmethod and ( setmethod.type == 'setmethod'
- or setmethod.type == 'setfield'
- or setmethod.type == 'setindex') then
- pushForward(noders, id, getID(setmethod.node))
- pushBackward(noders, getID(setmethod.node), id, INFO_DEEP)
- end
- end)
: case 'doc.type'
: call(function (noders, id, source)
if source.bindSources then
for _, src in ipairs(source.bindSources) do
pushForward(noders, getID(src), id)
- pushBackward(noders, id, getID(src))
end
end
for _, enumUnit in ipairs(source.enums) do
@@ -1082,7 +1060,6 @@ compileNodeMap = util.switch()
pushForward(noders, keyID, getID(field.field))
pushForward(noders, getID(field.field), keyID)
pushForward(noders, keyID, getID(field.extends))
- pushBackward(noders, getID(field.extends), keyID)
end
end
end)
@@ -1468,7 +1445,6 @@ compileNodeMap = util.switch()
if upvalues[key] then
for _, paramID in ipairs(upvalues[key]) do
pushForward(noders, id, paramID)
- pushBackward(noders, paramID, id)
end
end
end