diff options
Diffstat (limited to 'server-beta/src/searcher/local.lua')
-rw-r--r-- | server-beta/src/searcher/local.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server-beta/src/searcher/local.lua b/server-beta/src/searcher/local.lua index 398a9387..0213ee58 100644 --- a/server-beta/src/searcher/local.lua +++ b/server-beta/src/searcher/local.lua @@ -27,6 +27,9 @@ function m:eachDef(source, callback) local node = method.node self:eachDef(node, callback) end + if source.value then + self:eachDef(source.value, callback) + end end function m:eachRef(source, callback) @@ -166,4 +169,11 @@ function m:eachValue(source, callback) end end +function m:getValue(source) + if source.type == 'local' + or source.type == 'setlocal' then + return source.value or source + end +end + return m |