diff options
Diffstat (limited to 'server-beta/src/searcher/index.lua')
-rw-r--r-- | server-beta/src/searcher/index.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/server-beta/src/searcher/index.lua b/server-beta/src/searcher/index.lua new file mode 100644 index 00000000..f96c2dcf --- /dev/null +++ b/server-beta/src/searcher/index.lua @@ -0,0 +1,13 @@ +local m = {} + +function m:eachValue(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 |