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/method.lua | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 server-beta/src/seacher/method.lua (limited to 'server-beta/src/seacher/method.lua') diff --git a/server-beta/src/seacher/method.lua b/server-beta/src/seacher/method.lua deleted file mode 100644 index 52c00358..00000000 --- a/server-beta/src/seacher/method.lua +++ /dev/null @@ -1,33 +0,0 @@ -local guide = require 'parser.guide' - -local m = {} - -function m:eachDef(source, callback) - local node = source.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 node = source.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:eachField(source, key, callback) - self:eachField(source.parent, key, callback) -end - -function m:eachValue(source, callback) - self:eachValue(source.parent, callback) -end - -return m -- cgit v1.2.3