summaryrefslogtreecommitdiff
path: root/server/src/emmy/class.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-22 16:23:46 +0800
committersumneko <sumneko@hotmail.com>2019-04-22 16:23:46 +0800
commit2523bad318880bf7547f5d095fce4a681fe24a54 (patch)
treec455011faec35182915adb2ab7b2a02b7dfb8461 /server/src/emmy/class.lua
parentefa8bfce8228bc615e2870cbc4394bef0ab3cb9d (diff)
downloadlua-language-server-2523bad318880bf7547f5d095fce4a681fe24a54.zip
更新emmy
Diffstat (limited to 'server/src/emmy/class.lua')
-rw-r--r--server/src/emmy/class.lua8
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],