summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-29 17:55:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-29 17:55:48 +0800
commit9f9eb3b6d98acad2fd0ea229612ff07903d8b0e9 (patch)
treed3e588c9da2dc6fc1bbd88b0a9d339243482467c /script/parser/guide.lua
parent3a2f475b5a3c61241538602f2531b82f3f1fa395 (diff)
downloadlua-language-server-9f9eb3b6d98acad2fd0ea229612ff07903d8b0e9.zip
clean up code
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua14
1 files changed, 6 insertions, 8 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 54050c84..27e5a420 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -27,6 +27,8 @@ local function logWarn(...)
log.warn(...)
end
+---@class guide
+---@field debugMode boolean
local m = {}
m.ANY = {"<ANY>"}
@@ -2367,10 +2369,6 @@ function m.checkSameSimpleName(ref, sm)
return true
end
- if sm == m.ANY_DEF and m.isSet(ref) then
- return true
- end
-
if m.getSimpleName(ref) == sm then
return true
end
@@ -2515,10 +2513,10 @@ function m.searchSameFields(status, simple, mode)
status.interface.pulse()
end
end
- if status.share.count >= 100000 then
- logWarn('Count too large!')
- break
- end
+ --if status.share.count >= 100000 then
+ -- logWarn('Count too large!')
+ -- break
+ --end
m.checkSameSimple(status, simple, obj, start, force, mode, pushQueue)
if max >= 10000 then
logWarn('Queue too large!')