summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta')
-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