summaryrefslogtreecommitdiff
path: root/server-beta/src/core/diagnostics/redundant-parameter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/diagnostics/redundant-parameter.lua')
-rw-r--r--server-beta/src/core/diagnostics/redundant-parameter.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/server-beta/src/core/diagnostics/redundant-parameter.lua b/server-beta/src/core/diagnostics/redundant-parameter.lua
index a60c8cdb..ec14188e 100644
--- a/server-beta/src/core/diagnostics/redundant-parameter.lua
+++ b/server-beta/src/core/diagnostics/redundant-parameter.lua
@@ -1,12 +1,12 @@
-local files = require 'files'
-local guide = require 'parser.guide'
-local searcher = require 'searcher'
-local lang = require 'language'
-local define = require 'proto.define'
-local await = require 'await'
+local files = require 'files'
+local guide = require 'parser.guide'
+local vm = require 'vm'
+local lang = require 'language'
+local define = require 'proto.define'
+local await = require 'await'
local function countLibraryArgs(source)
- local func = searcher.getLibrary(source)
+ local func = vm.getLibrary(source)
if not func then
return nil
end
@@ -66,7 +66,7 @@ return function (uri, callback)
local func = source.node
local funcArgs
- searcher.eachDef(func, function (info)
+ vm.eachDef(func, function (info)
if info.mode == 'value' then
local src = info.source
if src.type == 'function' then