summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher-old/getlocal.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-23 17:31:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-23 17:31:02 +0800
commit4248038716c6c2281a10af9c0a3f04c6468b1946 (patch)
tree79361f8df2cf46ab99843e84bba175ea60147da2 /server-beta/src/searcher-old/getlocal.lua
parent68541432820dfff4554375c4c424a537943a938d (diff)
downloadlua-language-server-4248038716c6c2281a10af9c0a3f04c6468b1946.zip
准备换一个写法试试
Diffstat (limited to 'server-beta/src/searcher-old/getlocal.lua')
-rw-r--r--server-beta/src/searcher-old/getlocal.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/server-beta/src/searcher-old/getlocal.lua b/server-beta/src/searcher-old/getlocal.lua
new file mode 100644
index 00000000..4ffc871f
--- /dev/null
+++ b/server-beta/src/searcher-old/getlocal.lua
@@ -0,0 +1,23 @@
+local m = {}
+
+function m:eachDef(source, callback)
+ self:eachDef(source.loc, callback)
+end
+
+function m:eachRef(source, callback)
+ self:eachRef(source.loc, callback)
+end
+
+function m:eachField(source, key, callback)
+ self:eachField(source.loc, key, callback)
+end
+
+function m:eachValue(source, callback)
+ self:eachValue(source.loc, callback)
+end
+
+function m:getValue(source)
+ return self:getValue(source.loc)
+end
+
+return m