summaryrefslogtreecommitdiff
path: root/server/src/vm/local.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-18 20:07:07 +0800
committersumneko <sumneko@hotmail.com>2019-04-18 20:07:07 +0800
commit92e1b16ba3e6749602f2ea2dcb64a73f11653caa (patch)
tree5feed39fa9ed5536dcfb38766fc58427f68d6348 /server/src/vm/local.lua
parent0680944ab40753dede0f3b7150b283db4715f502 (diff)
downloadlua-language-server-92e1b16ba3e6749602f2ea2dcb64a73f11653caa.zip
field支持 Emmy.class
Diffstat (limited to 'server/src/vm/local.lua')
-rw-r--r--server/src/vm/local.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/src/vm/local.lua b/server/src/vm/local.lua
index e75ed149..d047b106 100644
--- a/server/src/vm/local.lua
+++ b/server/src/vm/local.lua
@@ -111,6 +111,13 @@ function mt:shadow(old)
end
group[#group+1] = self
self._shadow = group
+
+ if not self:getSource() then
+ log.debug('not self:getSource()', table.dump(self))
+ end
+ if not old.close then
+ log.debug('not old.close', table.dump(old))
+ end
old:close(self:getSource().start - 1)
end