diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 13:26:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 13:26:27 +0800 |
commit | 2ce73841e83f44212c20bfd997bc1874cda9e3c0 (patch) | |
tree | 49c32b171b54ef126f867b802e3693831089779e /server-beta/src/searcher-old/field.lua | |
parent | fe9dfabffeb6460f41c9f74fbeb4093db67bed4a (diff) | |
download | lua-language-server-2ce73841e83f44212c20bfd997bc1874cda9e3c0.zip |
整理代码
Diffstat (limited to 'server-beta/src/searcher-old/field.lua')
-rw-r--r-- | server-beta/src/searcher-old/field.lua | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/server-beta/src/searcher-old/field.lua b/server-beta/src/searcher-old/field.lua deleted file mode 100644 index c5667b04..00000000 --- a/server-beta/src/searcher-old/field.lua +++ /dev/null @@ -1,38 +0,0 @@ -local guide = require 'parser.guide' -local checkSMT = require 'searcher.setmetatable' - -local m = {} - -function m:eachDef(source, callback) - local parent = source.parent - local key = guide.getKeyName(source) - self:eachField(parent, key, function (info) - if info.mode == 'set' then - callback(info) - end - end) -end - -function m:eachRef(source, callback) - local parent = source.parent - local key = guide.getKeyName(source) - self:eachField(parent, key, function (info) - if info.mode == 'set' or info.mode == 'set' then - callback(info) - end - end) -end - -function m:eachField(source, key, callback) - self:eachField(source.parent, key, callback) -end - -function m:eachValue(source, callback) - self:eachValue(source.parent, callback) -end - -function m:getValue(source) - return self:getValue(source.parent) -end - -return m |