diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-16 00:09:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-16 00:09:54 +0800 |
commit | 51592cb52f944d8b22ce0a7e1ac1a940a4aef735 (patch) | |
tree | 20d6a02fe7ecc5d2d0b239afd702e488d84920a9 /test-beta/crossfile/references.lua | |
parent | 643bdff2713f8d0ac0b9bfd781e35fa2246a1c6d (diff) | |
download | lua-language-server-51592cb52f944d8b22ce0a7e1ac1a940a4aef735.zip |
从业务层获取缓存
Diffstat (limited to 'test-beta/crossfile/references.lua')
-rw-r--r-- | test-beta/crossfile/references.lua | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/test-beta/crossfile/references.lua b/test-beta/crossfile/references.lua index 3c952def..a0e34cfd 100644 --- a/test-beta/crossfile/references.lua +++ b/test-beta/crossfile/references.lua @@ -331,3 +331,66 @@ TEST { ]] } } + +TEST { + { + path = 'a.lua', + content = [[ + local function <?f?>() + end + + return { + <!f!> = <!f!>, + } + ]] + }, + { + path = 'b1.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, + { + path = 'b2.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, + { + path = 'b3.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, + { + path = 'b4.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, + { + path = 'b5.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, + { + path = 'b6.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, + { + path = 'b7.lua', + content = [[ + local t = require 'a' + t.<!f!>() + ]] + }, +} |