summaryrefslogtreecommitdiff
path: root/server/src/matcher
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher')
-rw-r--r--server/src/matcher/diagnostics.lua4
-rw-r--r--server/src/matcher/find_lib_full.lua (renamed from server/src/matcher/find_lib.lua)0
-rw-r--r--server/src/matcher/hover.lua6
-rw-r--r--server/src/matcher/init.lua2
4 files changed, 6 insertions, 6 deletions
diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua
index 0a4c149f..1a966065 100644
--- a/server/src/matcher/diagnostics.lua
+++ b/server/src/matcher/diagnostics.lua
@@ -1,4 +1,4 @@
-local findLib = require 'matcher.find_lib'
+local findLibFull = require 'matcher.find_lib_full'
local function searchUnusedLocals(results, callback)
for _, var in ipairs(results.vars) do
@@ -37,7 +37,7 @@ local function searchUndefinedGlobal(results, callback)
if not var.key:find '%l' then
goto NEXT_VAR
end
- local lib = findLib(var)
+ local lib = findLibFull(var)
if lib then
goto NEXT_VAR
end
diff --git a/server/src/matcher/find_lib.lua b/server/src/matcher/find_lib_full.lua
index f24dabd4..f24dabd4 100644
--- a/server/src/matcher/find_lib.lua
+++ b/server/src/matcher/find_lib_full.lua
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index 9faa426b..53d774d6 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -1,5 +1,5 @@
-local findResult = require 'matcher.find_result'
-local findLib = require 'matcher.find_lib'
+local findResult = require 'matcher.find_result'
+local findLibFull = require 'matcher.find_lib_full'
local Cache = {}
local OoCache = {}
@@ -170,7 +170,7 @@ return function (results, pos)
return nil
end
local var = result.var
- local lib, fullKey, oo = findLib(var)
+ local lib, fullKey, oo = findLibFull(var)
if not lib then
return nil
end
diff --git a/server/src/matcher/init.lua b/server/src/matcher/init.lua
index eda4ac7b..d7b41b78 100644
--- a/server/src/matcher/init.lua
+++ b/server/src/matcher/init.lua
@@ -8,7 +8,7 @@ local api = {
compile = require 'matcher.compile',
typeInference = require 'matcher.type_inference',
findResult = require 'matcher.find_result',
- findLib = require 'matcher.find_lib',
+ findLibFull = require 'matcher.find_lib_full',
}
return api