summaryrefslogtreecommitdiff
path: root/server/src/vm/emmy.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-25 17:12:06 +0800
committersumneko <sumneko@hotmail.com>2019-04-25 17:12:06 +0800
commitf06ff4184d48f1f72a853d0d6652ae9c2cc6594d (patch)
tree395cca074ee6b5f80f607c5e8f8640dbf66ebf7c /server/src/vm/emmy.lua
parent669e20ef2cdfa8d7763f7e7bcd405986e665e526 (diff)
downloadlua-language-server-f06ff4184d48f1f72a853d0d6652ae9c2cc6594d.zip
param的自动完成
Diffstat (limited to 'server/src/vm/emmy.lua')
-rw-r--r--server/src/vm/emmy.lua10
1 files changed, 5 insertions, 5 deletions
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