summaryrefslogtreecommitdiff
path: root/server-beta/src/core/table.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/table.lua
parentf233384eba3ef7324333e12d0ba0b7e6bfc2eddb (diff)
downloadlua-language-server-f8ae93feb7be0faba81ce72795b74bc4ec4dfe03.zip
支持 __index
Diffstat (limited to 'server-beta/src/core/table.lua')
-rw-r--r--server-beta/src/core/table.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/core/table.lua b/server-beta/src/core/table.lua
index 36f4f887..3c3ae0f3 100644
--- a/server-beta/src/core/table.lua
+++ b/server-beta/src/core/table.lua
@@ -15,4 +15,8 @@ function m:field(source, key, callback)
end
end
+function m:value(source, callback)
+ callback(source)
+end
+
return m