summaryrefslogtreecommitdiff
path: root/script/vm/eachDef.lua
blob: ea14ed9f0633e66253940823181b3816f92dcdf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
---@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