summaryrefslogtreecommitdiff
path: root/script/vm/eachRef.lua
blob: 6e008e2a0a27564ebcf9cfdb6a69d215d50c64c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---@diagnostic disable-next-line
---@class 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