diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-05 16:21:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-05 16:21:08 +0800 |
commit | a9507cd6a329d2be66035ca2019ded070fc7ad33 (patch) | |
tree | 7e3738add820d09763ed57dba6551c69cb01b197 /server/test | |
parent | 908738e65b6af347f051d7b4439d4820efa60605 (diff) | |
download | lua-language-server-a9507cd6a329d2be66035ca2019ded070fc7ad33.zip |
hover支持class
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/example/vm.lua | 4 |
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 |