summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-16 16:45:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-16 16:45:55 +0800
commit923ede4e6dc4280b2c33bec1374c4aada0afa11d (patch)
tree70c46fe6c4aa3dae0dad7a588a260a6c8ee0f7a5 /script
parentc4fce3cec334a14f028ac7b14bf36036ea901f79 (diff)
downloadlua-language-server-923ede4e6dc4280b2c33bec1374c4aada0afa11d.zip
remove backwards
Diffstat (limited to 'script')
-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 54d2f9ca..9342117d 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)
@@ -1428,7 +1405,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