diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-17 19:30:38 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-17 19:30:38 +0800 |
commit | c8175c13c19cb6be4d2690d0a8fde6f04210ba51 (patch) | |
tree | c2e297b4d62e19a92625edf6bfadfb58dfcb2787 /server-beta/src/core/method.lua | |
parent | 9cfe34795e2cb31b7b1e7f30cf9988ae360857c7 (diff) | |
download | lua-language-server-c8175c13c19cb6be4d2690d0a8fde6f04210ba51.zip |
整理代码
Diffstat (limited to 'server-beta/src/core/method.lua')
-rw-r--r-- | server-beta/src/core/method.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server-beta/src/core/method.lua b/server-beta/src/core/method.lua index c8ea61e1..a5005587 100644 --- a/server-beta/src/core/method.lua +++ b/server-beta/src/core/method.lua @@ -27,12 +27,7 @@ function m:field(source, key, callback) end function m:value(source, callback) - local parent = source.parent - if parent.type == 'setmethod' then - if parent.value then - self:eachValue(parent.value, callback) - end - end + self:eachValue(source.parent, callback) end return m |