summaryrefslogtreecommitdiff
path: root/server-beta/src/core/getlocal.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/getlocal.lua')
-rw-r--r--server-beta/src/core/getlocal.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/server-beta/src/core/getlocal.lua b/server-beta/src/core/getlocal.lua
index 89a35c30..a719714d 100644
--- a/server-beta/src/core/getlocal.lua
+++ b/server-beta/src/core/getlocal.lua
@@ -1,15 +1,15 @@
local m = {}
function m:def(source, callback)
- self:search(source.loc, 'local', 'def', callback)
+ self:eachDef(source.loc, callback)
end
function m:ref(source, callback)
- self:search(source.loc, 'local', 'ref', callback)
+ self:eachRef(source.loc, callback)
end
-function m:field(source, callback)
- self:search(source.loc, 'local', 'field', callback)
+function m:field(source, key, callback)
+ self:eachField(source.loc, key, callback)
end
return m