summaryrefslogtreecommitdiff
path: root/server-beta/src/core/getlocal.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-10 19:14:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-10 19:14:04 +0800
commitf8ae93feb7be0faba81ce72795b74bc4ec4dfe03 (patch)
tree23bf0f8347f200b2274bbec3f77a1e76960a5500 /server-beta/src/core/getlocal.lua
parentf233384eba3ef7324333e12d0ba0b7e6bfc2eddb (diff)
downloadlua-language-server-f8ae93feb7be0faba81ce72795b74bc4ec4dfe03.zip
支持 __index
Diffstat (limited to 'server-beta/src/core/getlocal.lua')
-rw-r--r--server-beta/src/core/getlocal.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/core/getlocal.lua b/server-beta/src/core/getlocal.lua
index a719714d..b84f3b83 100644
--- a/server-beta/src/core/getlocal.lua
+++ b/server-beta/src/core/getlocal.lua
@@ -12,4 +12,8 @@ function m:field(source, key, callback)
self:eachField(source.loc, key, callback)
end
+function m:value(source, callback)
+ self:eachValue(source.loc, callback)
+end
+
return m