summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-05 16:21:08 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-05 16:21:08 +0800
commita9507cd6a329d2be66035ca2019ded070fc7ad33 (patch)
tree7e3738add820d09763ed57dba6551c69cb01b197 /server/test
parent908738e65b6af347f051d7b4439d4820efa60605 (diff)
downloadlua-language-server-a9507cd6a329d2be66035ca2019ded070fc7ad33.zip
hover支持class
Diffstat (limited to 'server/test')
-rw-r--r--server/test/example/vm.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/example/vm.lua b/server/test/example/vm.lua
index d293fc38..eb882710 100644
--- a/server/test/example/vm.lua
+++ b/server/test/example/vm.lua
@@ -731,7 +731,7 @@ function mt:mergeFunctionReturn(func, index, value)
end
function mt:setFunctionReturn(func, index, value)
- func.hasReturn = true
+ func:set('hasReturn', true)
if not func.returns then
func.returns = {
type = 'list',
@@ -1226,7 +1226,7 @@ function mt:doDo(action)
end
function mt:doReturn(action)
- self:getCurrentFunction().hasReturn = true
+ self:getCurrentFunction():set('hasReturn', true)
for i, exp in ipairs(action) do
local value = self:getExp(exp)
if value.type == 'list' then