summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher-old/number.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-08 13:26:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-08 13:26:27 +0800
commit2ce73841e83f44212c20bfd997bc1874cda9e3c0 (patch)
tree49c32b171b54ef126f867b802e3693831089779e /server-beta/src/searcher-old/number.lua
parentfe9dfabffeb6460f41c9f74fbeb4093db67bed4a (diff)
downloadlua-language-server-2ce73841e83f44212c20bfd997bc1874cda9e3c0.zip
整理代码
Diffstat (limited to 'server-beta/src/searcher-old/number.lua')
-rw-r--r--server-beta/src/searcher-old/number.lua43
1 files changed, 0 insertions, 43 deletions
diff --git a/server-beta/src/searcher-old/number.lua b/server-beta/src/searcher-old/number.lua
deleted file mode 100644
index f92670e1..00000000
--- a/server-beta/src/searcher-old/number.lua
+++ /dev/null
@@ -1,43 +0,0 @@
-local guide = require 'parser.guide'
-
-local m = {}
-
-function m:eachDef(source, callback)
- local parent = source.parent
- if not parent then
- return
- end
- if parent.type ~= 'setindex' and parent.type ~= 'getindex' then
- return
- end
- local node = parent.node
- local key = guide.getKeyName(source)
- self:eachField(node, key, function (info)
- if info.mode == 'set' then
- callback(info)
- end
- end)
-end
-
-function m:eachRef(source, callback)
- local parent = source.parent
- if not parent then
- return
- end
- if parent.type ~= 'setindex' and parent.type ~= 'getindex' then
- return
- end
- local node = parent.node
- local key = guide.getKeyName(source)
- self:eachField(node, key, function (info)
- if info.mode == 'set' or info.mode == 'get' then
- callback(info)
- end
- end)
-end
-
-function m:getValue(source)
- return source
-end
-
-return m