From 94a9de07f5042e18927ce996f151c846fca432f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 26 Feb 2019 15:29:10 +0800 Subject: =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/definition/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/test/definition') 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 -- cgit v1.2.3