summaryrefslogtreecommitdiff
path: root/server-beta/src/core/engineer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-30 11:46:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-30 11:46:56 +0800
commitdd545508bb79e1db16b071a9eb7424590fd6f561 (patch)
tree9ad0e8a9f6ec2b2a0e97d1bc775855783965a3c9 /server-beta/src/core/engineer.lua
parentc4eb4df1a64c595ebcba9b1f2f01d626e447c8d6 (diff)
downloadlua-language-server-dd545508bb79e1db16b071a9eb7424590fd6f561.zip
暂存
Diffstat (limited to 'server-beta/src/core/engineer.lua')
-rw-r--r--server-beta/src/core/engineer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/core/engineer.lua b/server-beta/src/core/engineer.lua
index dc3fd721..a9251996 100644
--- a/server-beta/src/core/engineer.lua
+++ b/server-beta/src/core/engineer.lua
@@ -29,7 +29,7 @@ end
--- 查找所有域的引用
function mt:eachRefAsField(obj, callback)
local node = obj.node
- guide.eachRef(node, function (ref)
+ guide.eachChildRef(node, function (ref)
if ref.type == 'setglobal' or ref.type == 'setfield' then
callback(ref, 'set')
elseif ref.type == 'getglobal' or ref.type == 'getfield' then