summaryrefslogtreecommitdiff
path: root/script/core/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-19 20:34:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-19 20:34:14 +0800
commit8df10264e72db662d68b77855f99fa886217f74a (patch)
treeb5e60ee3e4e6f1854a97dd8a59f8c80d1369fabe /script/core/guide.lua
parent6bee6ff2a79e665cb5dfa0b7263d00c67814efe2 (diff)
downloadlua-language-server-8df10264e72db662d68b77855f99fa886217f74a.zip
cleanup
Diffstat (limited to 'script/core/guide.lua')
-rw-r--r--script/core/guide.lua19
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