summaryrefslogtreecommitdiff
path: root/server/src/vm/emmy.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-05-06 14:48:44 +0800
committersumneko <sumneko@hotmail.com>2019-05-06 14:48:44 +0800
commitdf62d7a467cc2ffa1d4945c4912a4568baf75847 (patch)
treebc9329d5eb349cea72ab1f660d9ed7c7d2af620a /server/src/vm/emmy.lua
parentcbd5169adaed554fe5ae3b2c9f4141039c2082cd (diff)
downloadlua-language-server-df62d7a467cc2ffa1d4945c4912a4568baf75847.zip
emmySee
Diffstat (limited to 'server/src/vm/emmy.lua')
-rw-r--r--server/src/vm/emmy.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua
index 7a82cfcd..4ecef4d3 100644
--- a/server/src/vm/emmy.lua
+++ b/server/src/vm/emmy.lua
@@ -35,6 +35,7 @@ function mt:doEmmy(action)
elseif tp == 'emmyFunctionType' then
self:doEmmyFunctionType(action)
elseif tp == 'emmySee' then
+ self:doEmmySee(action)
elseif tp == 'emmyIncomplete' then
self:doEmmyIncomplete(action)
end
@@ -312,3 +313,9 @@ end
function mt:doEmmyIncomplete(action)
self:instantSource(action)
end
+
+function mt:doEmmySee(action)
+ self:instantSource(action)
+ self:instantSource(action[2])
+ action[2]:set('emmy see', action)
+end