diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 19:48:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 19:48:48 +0800 |
commit | af66f802f4da3defaece822256e509c2bf1a425f (patch) | |
tree | ee5016a5184bdd1181a5abb26926c851459f36d2 /server/src/matcher/vm.lua | |
parent | 4120a40427f4d859044a626cac2e78ea5671e6e2 (diff) | |
download | lua-language-server-af66f802f4da3defaece822256e509c2bf1a425f.zip |
加个return信息
Diffstat (limited to 'server/src/matcher/vm.lua')
-rw-r--r-- | server/src/matcher/vm.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua index b8b3a18b..00b21ffc 100644 --- a/server/src/matcher/vm.lua +++ b/server/src/matcher/vm.lua @@ -964,6 +964,7 @@ end function mt:doReturn(action) for i, exp in ipairs(action) do local value = self:getExp(exp) + self:addInfo(value, 'return', exp) if value.type == 'list' then for x, v in ipairs(value) do self:setFunctionReturn(self:getCurrentFunction(), i + x - 1, v) |