summaryrefslogtreecommitdiff
path: root/script/core/searcher.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-05 19:13:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-05 19:13:01 +0800
commit0c9ec9b4bd3a53657e8d6d2e63f5bd6927165c03 (patch)
treee33ffc6a6f5c771c1686301eb12a8714fc820dfc /script/core/searcher.lua
parent58d70844d53cd4732abae39da4b2098ae81d2415 (diff)
downloadlua-language-server-0c9ec9b4bd3a53657e8d6d2e63f5bd6927165c03.zip
cleanup
Diffstat (limited to 'script/core/searcher.lua')
-rw-r--r--script/core/searcher.lua30
1 files changed, 15 insertions, 15 deletions
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 6ded5d5b..6397e6b9 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -27,19 +27,19 @@ local getRoot = guide.getRoot
local ceach = collector.each
-local getNoders = noder.getNoders
-local getID = noder.getID
-local getLastID = noder.getLastID
-local removeID = noder.removeID
-local getNodersByUri = noder.getNodersByUri
-local getFirstID = noder.getFirstID
-local getHeadID = noder.getHeadID
-local eachForward = noder.eachForward
-local getUriAndID = noder.getUriAndID
-local eachBackward = noder.eachBackward
-local eachSource = noder.eachSource
-local compileNodes = noder.compileAllNodes
-local isGlobalID = noder.isGlobalID
+local getNoders = noder.getNoders
+local getID = noder.getID
+local getLastID = noder.getLastID
+local removeID = noder.removeID
+local getNodersByUri = noder.getNodersByUri
+local getFirstID = noder.getFirstID
+local getHeadID = noder.getHeadID
+local eachForward = noder.eachForward
+local getUriAndID = noder.getUriAndID
+local eachBackward = noder.eachBackward
+local eachSource = noder.eachSource
+local compileAllNodes = noder.compileAllNodes
+local isGlobalID = noder.isGlobalID
local SPLIT_CHAR = noder.SPLIT_CHAR
local RETURN_INDEX = noder.RETURN_INDEX
@@ -914,7 +914,7 @@ local function prepareSearch(source)
if not root then
return
end
- compileNodes(root)
+ --compileAllNodes(root)
local uri = getUri(source)
local id = getID(source)
return uri, id
@@ -971,7 +971,7 @@ local function searchAllGlobalByUri(status, mode, uri, fullID)
return
end
local root = ast.ast
- compileNodes(root)
+ --compileAllNodes(root)
local noders = getNoders(root)
if fullID then
for source in eachSource(noders, fullID) do