From 373cc0d6b746fef04ca353d05defc7f4d6324faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 23 Oct 2019 11:44:11 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/seacher/string.lua | 43 -------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 server-beta/src/seacher/string.lua (limited to 'server-beta/src/seacher/string.lua') 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 -- cgit v1.2.3