From 57eefd5142fab69c1e575917945fd3aded42f5ca Mon Sep 17 00:00:00 2001 From: sumneko Date: Mon, 22 Apr 2019 17:47:01 +0800 Subject: =?UTF-8?q?=E6=9F=A5=E6=89=BE=E5=BC=95=E7=94=A8=E4=B9=9F=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E8=BD=AC=E5=88=B0=E5=AE=9A=E4=B9=89=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/definition/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'server/test/definition/init.lua') diff --git a/server/test/definition/init.lua b/server/test/definition/init.lua index d699744a..cad120f7 100644 --- a/server/test/definition/init.lua +++ b/server/test/definition/init.lua @@ -45,8 +45,7 @@ function TEST(script) local vm = buildVM(ast) assert(vm) - local source = core.findSource(vm, pos) - local positions = core.definition(vm, source, nil) + local positions = core.definition(vm, pos, 'definition', nil) if positions then assert(founded(target, positions)) else -- cgit v1.2.3