summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/tablefield.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-23 16:43:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-23 16:43:19 +0800
commit68541432820dfff4554375c4c424a537943a938d (patch)
treedbd34527656fa6133f80baa6088f0d67b55b6e27 /server-beta/src/searcher/tablefield.lua
parent373cc0d6b746fef04ca353d05defc7f4d6324faa (diff)
downloadlua-language-server-68541432820dfff4554375c4c424a537943a938d.zip
整理代码
Diffstat (limited to 'server-beta/src/searcher/tablefield.lua')
-rw-r--r--server-beta/src/searcher/tablefield.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/searcher/tablefield.lua b/server-beta/src/searcher/tablefield.lua
index 219828d4..09456029 100644
--- a/server-beta/src/searcher/tablefield.lua
+++ b/server-beta/src/searcher/tablefield.lua
@@ -12,4 +12,8 @@ function m:eachValue(source, callback)
end
end
+function m:getValue(source)
+ return source.value and self:getValue(source.value) or source
+end
+
return m