From f06ff4184d48f1f72a853d0d6652ae9c2cc6594d Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 25 Apr 2019 17:12:06 +0800 Subject: =?UTF-8?q?param=E7=9A=84=E8=87=AA=E5=8A=A8=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/vm/emmy.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/src/vm/emmy.lua') diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua index 5406aab1..f183de73 100644 --- a/server/src/vm/emmy.lua +++ b/server/src/vm/emmy.lua @@ -54,12 +54,12 @@ function mt:doEmmyClass(action) self:instantSource(action) self:instantSource(action[1]) local class = emmyMgr:addClass(action) - action:set('target class', class:getName()) - action[1]:set('target class', class:getName()) + action:set('emmy class', class:getName()) + action[1]:set('emmy class', class:getName()) local extends = action[2] if extends then self:instantSource(extends) - extends:set('target class', extends[1]) + extends:set('emmy class', extends[1]) end self._emmy = class action:set('emmy.class', class) @@ -74,7 +74,7 @@ function mt:doEmmyType(action) self:instantSource(action) for _, obj in ipairs(action) do self:instantSource(obj) - obj:set('target class', obj[1]) + obj:set('emmy class', obj[1]) end local type = emmyMgr:addType(action) self._emmy = type @@ -92,7 +92,7 @@ function mt:doEmmyAlias(action) local type = self:doEmmyType(action[2]) local alias = emmyMgr:addAlias(action, type) action:set('emmy.alias', alias) - action[1]:set('target class', alias:getName()) + action[1]:set('emmy class', alias:getName()) if self.lsp then self.lsp.global:markSet(self:getUri()) end -- cgit v1.2.3