summaryrefslogtreecommitdiff
path: root/server/test/find_lib/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-12 17:24:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-12 17:24:19 +0800
commit8d112ba2f517e9ca6cf4146c16d713f8d7eabd03 (patch)
tree0223cc006bb1debb51ba9a6714863f084a1e1639 /server/test/find_lib/init.lua
parent3b48f52ca21700f928e3e463736e280f46b2a2c7 (diff)
downloadlua-language-server-8d112ba2f517e9ca6cf4146c16d713f8d7eabd03.zip
优化性能
Diffstat (limited to 'server/test/find_lib/init.lua')
-rw-r--r--server/test/find_lib/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/find_lib/init.lua b/server/test/find_lib/init.lua
index 5bd5e8b4..63654b19 100644
--- a/server/test/find_lib/init.lua
+++ b/server/test/find_lib/init.lua
@@ -13,8 +13,8 @@ function TEST(fullkey)
assert(ast)
local vm = matcher.vm(ast)
assert(vm)
- local result = matcher.findResult(vm.results, pos)
- local _, name = matcher.findLib(result.object)
+ local result = matcher.findResult(vm, pos)
+ local _, name = matcher.findLib(result)
assert(name == fullkey)
end
end