diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-04-19 20:34:14 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-04-19 20:34:14 +0800 |
commit | 8df10264e72db662d68b77855f99fa886217f74a (patch) | |
tree | b5e60ee3e4e6f1854a97dd8a59f8c80d1369fabe /script/core/guide.lua | |
parent | 6bee6ff2a79e665cb5dfa0b7263d00c67814efe2 (diff) | |
download | lua-language-server-8df10264e72db662d68b77855f99fa886217f74a.zip |
cleanup
Diffstat (limited to 'script/core/guide.lua')
-rw-r--r-- | script/core/guide.lua | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/script/core/guide.lua b/script/core/guide.lua index ac8c5ef6..b42744ca 100644 --- a/script/core/guide.lua +++ b/script/core/guide.lua @@ -136,17 +136,6 @@ function m.searchRefs(status, source, mode) end end - ---@param id string - ---@param expect string - local function checkLastID(id, expect) - local lastID = linker.getLastID(root, id) - if not lastID then - return - end - expect = expect:sub(#lastID + 2) - pushQueue(lastID, expect) - end - local stackCount = 0 local mark = {} search = function (id, field, flag) @@ -167,12 +156,12 @@ function m.searchRefs(status, source, mode) if field == nil then m.pushResult(status, mode, eachLink.source) end - if flag & SEARCH_FLAG.backward == 0 then + --if flag & SEARCH_FLAG.backward == 0 then checkForward(eachLink, field, flag | SEARCH_FLAG.forward) - end - if flag & SEARCH_FLAG.forward == 0 then + --end + --if flag & SEARCH_FLAG.forward == 0 then checkBackward(eachLink, field, flag | SEARCH_FLAG.backward) - end + --end end local lastID = linker.getLastID(root, id) if lastID then |