summaryrefslogtreecommitdiff
path: root/script/vm/eachDef.lua
blob: 65cae73e98b3f88c141e8759bd13b5e274624986 (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.getDefs(source, field)
    return searcher.requestDefinition(source, field)
end

function vm.getAllDefs(source, field)
    return searcher.requestAllDefinition(source, field)
end