summaryrefslogtreecommitdiff
path: root/server-beta/src/core/getlocal.lua
blob: b84f3b83773c964f146a4575bb5adc175b1d9870 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local m = {}

function m:def(source, callback)
    self:eachDef(source.loc, callback)
end

function m:ref(source, callback)
    self:eachRef(source.loc, callback)
end

function m:field(source, key, callback)
    self:eachField(source.loc, key, callback)
end

function m:value(source, callback)
    self:eachValue(source.loc, callback)
end

return m