summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/diagnostics/redundant-parameter.lua2
-rw-r--r--script/core/diagnostics/undefined-field.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/redundant-parameter.lua b/script/core/diagnostics/redundant-parameter.lua
index be0cddc8..f7b0ae75 100644
--- a/script/core/diagnostics/redundant-parameter.lua
+++ b/script/core/diagnostics/redundant-parameter.lua
@@ -81,7 +81,7 @@ return function (uri, callback)
return
end
- local cache = {}
+ local cache = vm.getCache 'redundant-parameter'
guide.eachSourceType(ast.ast, 'call', function (source)
local callArgs = countCallArgs(source)
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua
index c50e5763..ffa70364 100644
--- a/script/core/diagnostics/undefined-field.lua
+++ b/script/core/diagnostics/undefined-field.lua
@@ -11,7 +11,7 @@ return function (uri, callback)
return
end
- local cache = {}
+ local cache = vm.getCache 'undefined-field'
local function getAllDocClassFromInfer(src)
local infers = cache[src]