diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-23 11:44:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-23 11:44:11 +0800 |
commit | 373cc0d6b746fef04ca353d05defc7f4d6324faa (patch) | |
tree | bafb5165d7a5e79a5c5bc9ea94e7a8c496722665 /server-beta/src/seacher/string.lua | |
parent | cf3fb4859d6255fd6c5d4e4f448766db8f407389 (diff) | |
download | lua-language-server-373cc0d6b746fef04ca353d05defc7f4d6324faa.zip |
整理代码
Diffstat (limited to 'server-beta/src/seacher/string.lua')
-rw-r--r-- | server-beta/src/seacher/string.lua | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/server-beta/src/seacher/string.lua b/server-beta/src/seacher/string.lua deleted file mode 100644 index 3f36ee59..00000000 --- a/server-beta/src/seacher/string.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 (src, mode) - if mode == 'set' then - callback(src, mode) - 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 (src, mode) - if mode == 'set' or mode == 'get' then - callback(src, mode) - end - end) -end - -function m:eachValue(source, callback) - callback(source) -end - -return m |