summaryrefslogtreecommitdiff
path: root/server-beta/src/core/getfield.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-10-17 15:15:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-10-17 15:15:24 +0800
commitcd139ff2f2eaefab4de54ab5c39c04aa992f7b51 (patch)
tree09cad9a28dfb20bed3f13b28f21a0552496fe0fa /server-beta/src/core/getfield.lua
parent427ca6b4c555aa92e3d5bf82051c52d490dffd48 (diff)
downloadlua-language-server-cd139ff2f2eaefab4de54ab5c39c04aa992f7b51.zip
支持实例查找方法的引用
Diffstat (limited to 'server-beta/src/core/getfield.lua')
-rw-r--r--server-beta/src/core/getfield.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server-beta/src/core/getfield.lua b/server-beta/src/core/getfield.lua
index c76df24e..77a132ca 100644
--- a/server-beta/src/core/getfield.lua
+++ b/server-beta/src/core/getfield.lua
@@ -9,7 +9,9 @@ function m:field(source, key, callback)
used[source] = true
local node = source.node
- used[node] = true
+ self:eachDef(node, function (src)
+ used[src] = true
+ end)
local myKey = guide.getKeyName(source)
if key == myKey then