summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher-old/select.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/searcher-old/select.lua')
-rw-r--r--server-beta/src/searcher-old/select.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/server-beta/src/searcher-old/select.lua b/server-beta/src/searcher-old/select.lua
deleted file mode 100644
index f7da7bfc..00000000
--- a/server-beta/src/searcher-old/select.lua
+++ /dev/null
@@ -1,34 +0,0 @@
-local guide = require 'parser.guide'
-
-local m = {}
-
-function m:eachDef(source, callback)
- local vararg = source.vararg
- if vararg.type == 'call' then
- local func = vararg.node
- self:eachValue(func, function (info)
- self:functionReturnOf(info.source, function ()
-
- end)
- end)
- end
-end
-
-function m:eachValue(source, callback)
- local vararg = source.vararg
- if vararg.type == 'call' then
- local func = vararg.node
- if self:getSpecialName(func) == 'setmetatable'
- and source.index == 1 then
- local t, mt = self:callArgOf(vararg)
- self:eachValue(t, callback)
- self:eachField(mt, 's|__index', function (info)
- if info.mode == 'set' then
- info.searcher:eachValue(info.source, callback)
- end
- end)
- end
- end
-end
-
-return m