diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-27 14:15:09 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-27 14:15:09 +0800 |
commit | 3ebc625883cf956179eae4c77305f75b3d24ebd5 (patch) | |
tree | 2199ed286fb80788c798037cd78beeac314793c6 /server/test/hover/init.lua | |
parent | 5cf122870c659821929449d64bfc24d5913dbd77 (diff) | |
download | lua-language-server-3ebc625883cf956179eae4c77305f75b3d24ebd5.zip |
非函数的hover改成新的格式
Diffstat (limited to 'server/test/hover/init.lua')
-rw-r--r-- | server/test/hover/init.lua | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index 18a5e299..ceaca791 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -89,24 +89,24 @@ obj.<?xxx?>() TEST [[ local <?x?> = 1 ]] -"number x = 1" +"local x: number = 1" TEST [[ <?x?> = 1 ]] -"number x = 1" +"global x: number = 1" TEST [[ local t = {} t.<?x?> = 1 ]] -"number t.x = 1" +"field t.x: number = 1" TEST [[ t = {} t.<?x?> = 1 ]] -"number t.x = 1" +"field t.x: number = 1" TEST [[ local mt = {} @@ -114,7 +114,7 @@ mt.__name = 'class' local <?obj?> = setmetatable({}, mt) ]] -"*class obj" +"local obj: *class" TEST [[ local mt = {} @@ -123,7 +123,7 @@ mt.__index = mt local <?obj?> = setmetatable({}, mt) ]] -"*class obj" +"local obj: *class" TEST [[ local mt = {} @@ -132,7 +132,7 @@ mt.__index = mt local <?obj?> = setmetatable({}, mt) ]] -"*class obj" +"local obj: *class" TEST [[ local mt = {} @@ -141,13 +141,13 @@ mt.__index = mt local <?obj?> = setmetatable({}, mt) ]] -"*class obj" +"local obj: *class" TEST[[ local fs = require 'bee.filesystem' local <?root?> = fs.current_path() ]] -"*bee::filesystem root" +"local root: *bee::filesystem" TEST[[ ('xx'):<?yy?>() @@ -157,13 +157,13 @@ TEST[[ TEST [[ local <?v?> = collectgarbage() ]] -"any v" +"local v: any" TEST [[ local type w2l:get_default()[<?type?>] ]] -"any type" +"local type: any" TEST [[ <?load?>() @@ -224,13 +224,13 @@ function mt:add(a: any, b: any) TEST [[ local <?t?> = - 1000 ]] -[[number t = -1000]] +[[local t: number = -1000]] TEST [[ for <?c?> in io.lines() do end ]] -[[string c]] +[[local c: string]] TEST [[ local function f() @@ -238,19 +238,19 @@ local function f() end local <?n?> = f() ]] -[[any n]] +[[local n: any]] TEST [[ local <?n?> = table.unpack(t) ]] -[[any n]] +[[local n: any]] TEST [[ local <?n?> table.pack(n) ]] [[ -any n +local n: any ]] TEST [[ |