summaryrefslogtreecommitdiff
path: root/server-beta/src/core/reference.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/reference.lua')
-rw-r--r--server-beta/src/core/reference.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/server-beta/src/core/reference.lua b/server-beta/src/core/reference.lua
index 9ffd8fe0..7e265e97 100644
--- a/server-beta/src/core/reference.lua
+++ b/server-beta/src/core/reference.lua
@@ -1,6 +1,6 @@
-local guide = require 'parser.guide'
-local files = require 'files'
-local searcher = require 'searcher'
+local guide = require 'parser.guide'
+local files = require 'files'
+local vm = require 'vm'
local function isFunction(source, offset)
if source.type ~= 'function' then
@@ -27,7 +27,7 @@ local function findRef(source, offset, callback)
and not isFunction(source, offset) then
return
end
- searcher.eachRef(source, function (info)
+ vm.eachRef(source, function (info)
if info.mode == 'declare'
or info.mode == 'set'
or info.mode == 'get'