From 529856733fdfdf87f3aec704647798a5b611f49d 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, 29 Mar 2022 02:54:44 +0800 Subject: update --- test/references/all.lua | 87 ++----------------------------------------------- 1 file changed, 3 insertions(+), 84 deletions(-) diff --git a/test/references/all.lua b/test/references/all.lua index aec6e721..235e67fd 100644 --- a/test/references/all.lua +++ b/test/references/all.lua @@ -60,6 +60,8 @@ end --end --]] +-- TODO: How to search references of function? +--[=[ TEST [[ local function f() return <~ () @@ -77,26 +79,7 @@ end local _, = f() ]] - -config.set(nil, 'Lua.IntelliSense.traceReturn', true) -TEST [[ -local -local function f() - return -end -local = f() -]] - -TEST [[ -local -local function f() - return function () - return - end -end -local = f()() -]] -config.set(nil, 'Lua.IntelliSense.traceReturn', false) +]=] TEST [[ ---@class A @@ -106,22 +89,6 @@ local t local ]] --- TODO --- 泛型的反向搜索 -do return end -TEST [[ ----@class Dog -local = {} - ----@generic T ----@param type1 T ----@return T -function foobar(type1) -end - -local = foobar() -]] - TEST [[ ---@class Dog local Dog = {} @@ -159,51 +126,3 @@ end local v1 = Master:foobar("", Dog) v1.() ]] - -TEST [[ ----@class A -local - ----@generic T ----@param self T ----@return T -function m.f(self) end - -local = m.f() -]] - -TEST [[ ----@class A -local - ----@generic T ----@param self T ----@return T -function m:f() end - -local = m.f() -]] - -TEST [[ ----@class A -local - ----@generic T ----@param self T ----@return T -function .f(self) end - -local = :f() -]] - -TEST [[ ----@class A -local - ----@generic T ----@param self T ----@return T -function :f() end - -local = :f() -]] -- cgit v1.2.3