summaryrefslogtreecommitdiff
path: root/server/test/definition
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-02-26 15:29:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-02-26 15:29:10 +0800
commit94a9de07f5042e18927ce996f151c846fca432f9 (patch)
tree2152f984a509242dd0ad2dd122d57bf518ab26f3 /server/test/definition
parentae9734ee608897b48c2f1ef730d30cc168377e31 (diff)
downloadlua-language-server-94a9de07f5042e18927ce996f151c846fca432f9.zip
暂存
Diffstat (limited to 'server/test/definition')
-rw-r--r--server/test/definition/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua
index 19e353cc..f2b2833c 100644
--- a/server/test/definition/init.lua
+++ b/server/test/definition/init.lua
@@ -45,8 +45,8 @@ function TEST(script)
local vm = buildVM(ast)
assert(vm)
- local result = core.findResult(vm, pos)
- local positions = core.definition(vm, result, nil)
+ local source = core.findSource(vm, pos)
+ local positions = core.definition(vm, source, nil)
if positions then
assert(founded(target, positions))
else