summaryrefslogtreecommitdiff
path: root/server-beta/src/core/index.lua
blob: 812fca783d008445e8932110ff653ba725946719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local m = {}

function m:value(source, callback)
    local parent = source.parent
    if parent.type == 'setindex'
    or parent.type == 'tableindex' then
        if parent.value then
            self:eachValue(parent.value, callback)
        end
    end
end

return m