summaryrefslogtreecommitdiff
path: root/server-beta/src/core/getlocal.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-10 11:41:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-10 11:41:58 +0800
commit51216d347b59e33fcad96400ddae262971ede712 (patch)
tree7274d335ca0ad09d9b5883db316b2a4b7ad20b64 /server-beta/src/core/getlocal.lua
parentd65825e90bc7137f50cafc36ba0972db5e6a55be (diff)
downloadlua-language-server-51216d347b59e33fcad96400ddae262971ede712.zip
更新
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