diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-02 17:29:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-02 17:29:18 +0800 |
commit | 625f5be9a6ae1c30dd5821f1dd2485073d054209 (patch) | |
tree | 2581abc44fa0b6a42b590fc842501b8a9edf9a1f /script/vm | |
parent | 3bf48c900605681216ce7c14cfe0cb43e583de4f (diff) | |
download | lua-language-server-625f5be9a6ae1c30dd5821f1dd2485073d054209.zip |
`---@see` use workspace-symbol
#1344
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/compiler.lua | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 03a34dbd..dcd32e77 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1666,13 +1666,6 @@ local compilerSwitch = util.switch() : call(function (source) vm.setNode(source, vm.compileNode(source.overload)) end) - : case 'doc.see.name' - : call(function (source) - local type = vm.getGlobal('type', source[1]) - if type then - vm.setNode(source, type) - end - end) : case 'doc.type.arg' : call(function (source) if source.extends then @@ -1842,17 +1835,6 @@ local nodeSwitch;nodeSwitch = util.switch() searchFieldSwitch(pn.type, uri, pn, key, false, pushResult) end end) - : case 'doc.see.field' - : call(function (source, lastKey, pushResult) - if lastKey then - return - end - local parentNode = vm.compileNode(source.parent.name) - local uri = guide.getUri(source) - for pn in parentNode:eachObject() do - searchFieldSwitch(pn.type, uri, pn, source[1], false, pushResult) - end - end) function vm.compileByNodeChain(source, pushResult) local lastKey |