summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-03-31 11:44:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-03-31 11:44:12 +0800
commit9e43c90c1d5ebf09a73638822bea8d38958130df (patch)
tree2381befeabdde3d2e28ea9b686782f44f12ad7b4 /script
parent41ed018e80df12b59cdd0e60cce7484b0c972d81 (diff)
downloadlua-language-server-9e43c90c1d5ebf09a73638822bea8d38958130df.zip
cleanup
Diffstat (limited to 'script')
-rw-r--r--script/core/guide.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/script/core/guide.lua b/script/core/guide.lua
index 4ce1edf9..5e3b6693 100644
--- a/script/core/guide.lua
+++ b/script/core/guide.lua
@@ -570,10 +570,10 @@ end
--- 遍历所有指定类型的source
function m.eachSourceType(ast, type, callback)
- local cache = ast.typeCache
+ local cache = ast._typeCache
if not cache then
cache = {}
- ast.typeCache = cache
+ ast._typeCache = cache
m.eachSource(ast, function (source)
local tp = source.type
if not tp then
@@ -2239,7 +2239,6 @@ function m.checkSameSimpleInCallInSameFile(status, func, args, index)
end
end
end
- -- generic cannot cache
cache[index] = results
end
return results