summaryrefslogtreecommitdiff
path: root/script/vm/eachRef.lua
blob: 35425818502464283f889270378ad2233ed7252c (plain)
1
2
3
4
5
6
7
8
9
10
11
---@type vm
local vm       = require 'vm.vm'
local searcher = require 'core.searcher'

function vm.getRefs(source, field)
    return searcher.requestReference(source, field)
end

function vm.getAllRefs(source, field)
    return searcher.requestAllReference(source, field)
end