summaryrefslogtreecommitdiff
path: root/server/src/emmy/class.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-22 20:18:27 +0800
committersumneko <sumneko@hotmail.com>2019-04-22 20:18:27 +0800
commit659cc0e395719b2816615f1f8efc750292105144 (patch)
tree27546a483adf6353ee9d8ceff51b9c2e8646440f /server/src/emmy/class.lua
parent57eefd5142fab69c1e575917945fd3aded42f5ca (diff)
downloadlua-language-server-659cc0e395719b2816615f1f8efc750292105144.zip
更新 EmmyTypeUnit
Diffstat (limited to 'server/src/emmy/class.lua')
-rw-r--r--server/src/emmy/class.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/emmy/class.lua b/server/src/emmy/class.lua
index fe67cf40..84854fc5 100644
--- a/server/src/emmy/class.lua
+++ b/server/src/emmy/class.lua
@@ -1,5 +1,6 @@
local listMgr = require 'vm.list'
+---@class EmmyClass
local mt = {}
mt.__index = mt
mt.type = 'emmy.class'
@@ -26,7 +27,7 @@ end
function mt:eachChild(callback)
self._manager:eachClass(self.name, function (obj)
- if obj.type == 'emmy.type' then
+ if obj.type == 'emmy.typeUnit' then
callback(obj)
end
end)