summaryrefslogtreecommitdiff
path: root/script-beta/vm/getLinks.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-25 18:16:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-25 18:16:35 +0800
commita5e60e8d423cf1e0853bb8e22a8855a423774f86 (patch)
treeed39dd9271e78cfa7a0a3e0b12b1710655515f3f /script-beta/vm/getLinks.lua
parent3d5bd5fc77ce07aeaddf768cbbafd710b783f5de (diff)
downloadlua-language-server-a5e60e8d423cf1e0853bb8e22a8855a423774f86.zip
暂存
Diffstat (limited to 'script-beta/vm/getLinks.lua')
-rw-r--r--script-beta/vm/getLinks.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/script-beta/vm/getLinks.lua b/script-beta/vm/getLinks.lua
new file mode 100644
index 00000000..8032f55a
--- /dev/null
+++ b/script-beta/vm/getLinks.lua
@@ -0,0 +1,21 @@
+local guide = require 'parser.guide'
+local vm = require 'vm.vm'
+local files = require 'files'
+
+local function getFileLinks(uri)
+
+end
+
+local function getLinksTo(uri)
+
+end
+
+function vm.getLinksTo(uri)
+ local cache = vm.getCache('getLinksTo')[uri]
+ if cache ~= nil then
+ return cache
+ end
+ cache = getLinksTo(uri)
+ vm.getCache('getLinksTo')[uri] = cache
+ return cache
+end