diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-10 19:14:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-10 19:14:04 +0800 |
commit | f8ae93feb7be0faba81ce72795b74bc4ec4dfe03 (patch) | |
tree | 23bf0f8347f200b2274bbec3f77a1e76960a5500 /server-beta/src/core/table.lua | |
parent | f233384eba3ef7324333e12d0ba0b7e6bfc2eddb (diff) | |
download | lua-language-server-f8ae93feb7be0faba81ce72795b74bc4ec4dfe03.zip |
支持 __index
Diffstat (limited to 'server-beta/src/core/table.lua')
-rw-r--r-- | server-beta/src/core/table.lua | 4 |
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 |