summaryrefslogtreecommitdiff
path: root/server/src/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-05 14:28:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-05 14:28:09 +0800
commite5131f6964d22e26cfcc6075e547666452df699c (patch)
treea5f14c0fa5384a3495d73657a322991a44508d37 /server/src/vm
parent750dc445ea6f0d9010b73f9a8b884e6ca55dfb26 (diff)
downloadlua-language-server-e5131f6964d22e26cfcc6075e547666452df699c.zip
局部函数的hover
Diffstat (limited to 'server/src/vm')
-rw-r--r--server/src/vm/function.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/vm/function.lua b/server/src/vm/function.lua
index f3d4720c..8eebb59c 100644
--- a/server/src/vm/function.lua
+++ b/server/src/vm/function.lua
@@ -212,6 +212,20 @@ function mt:createArgs()
end
end
+function mt:setFlag(name, v)
+ if not self._flag then
+ self._flag = {}
+ end
+ self._flag[name] = v
+end
+
+function mt:getFlag(name)
+ if not self._flag then
+ return nil
+ end
+ return self._flag[name]
+end
+
return function (source)
local self = setmetatable({
source = source,