diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-20 10:26:59 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-20 10:26:59 +0800 |
commit | 548a79bc67bb481945ea53e0e7197813b46c4f5d (patch) | |
tree | 5d22c61f6264df2bf8f82f9449041ab7e068b58e /server/test/definition/emmy.lua | |
parent | ffeb9df51d7f440c004d41522990c6ebbadcc569 (diff) | |
download | lua-language-server-548a79bc67bb481945ea53e0e7197813b46c4f5d.zip |
重新实现“转到定义”
Diffstat (limited to 'server/test/definition/emmy.lua')
-rw-r--r-- | server/test/definition/emmy.lua | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/server/test/definition/emmy.lua b/server/test/definition/emmy.lua index 8b6e8036..a98f334f 100644 --- a/server/test/definition/emmy.lua +++ b/server/test/definition/emmy.lua @@ -11,10 +11,21 @@ TEST [[ TEST [[ ---@class A local mt = {} -function mt:<?cast?>() +function mt:<!cast!>() end ---@type A local obj -obj:<!cast!>() +obj:<?cast?>() ]] + +--TEST [[ +-----@class A +--local <!mt!> = {} +--function mt:cast() +--end +-- +-----@type A +--local obj +--<?obj?>:cast() +--]] |