diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-22 16:23:46 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-22 16:23:46 +0800 |
commit | 2523bad318880bf7547f5d095fce4a681fe24a54 (patch) | |
tree | c455011faec35182915adb2ab7b2a02b7dfb8461 /server/src/emmy/class.lua | |
parent | efa8bfce8228bc615e2870cbc4394bef0ab3cb9d (diff) | |
download | lua-language-server-2523bad318880bf7547f5d095fce4a681fe24a54.zip |
更新emmy
Diffstat (limited to 'server/src/emmy/class.lua')
-rw-r--r-- | server/src/emmy/class.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/src/emmy/class.lua b/server/src/emmy/class.lua index 5e87181d..fe67cf40 100644 --- a/server/src/emmy/class.lua +++ b/server/src/emmy/class.lua @@ -24,6 +24,14 @@ function mt:getValue() return self.value end +function mt:eachChild(callback) + self._manager:eachClass(self.name, function (obj) + if obj.type == 'emmy.type' then + callback(obj) + end + end) +end + return function (manager, source) local self = setmetatable({ name = source[1][1], |