summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--server/test/find_lib/init.lua2
5 files changed, 7 insertions, 7 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
diff --git a/server/test/find_lib/init.lua b/server/test/find_lib/init.lua
index 26dbc893..ed71a17a 100644
--- a/server/test/find_lib/init.lua
+++ b/server/test/find_lib/init.lua
@@ -18,7 +18,7 @@ function TEST(fullkey)
assert(result.type == 'var')
local var = result.var
assert(var)
- local _, name = matcher.findLib(var)
+ local _, name = matcher.findLibFull(var)
assert(name == fullkey)
end
end