summaryrefslogtreecommitdiff
path: root/script/vm/field.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-31 23:00:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-31 23:00:02 +0800
commitc1ca4d8af0cefd6222b76f83341774857cef44ec (patch)
tree135a6c44cee6e253a20dd33c78e5c85db3eb6495 /script/vm/field.lua
parent3e516dd717440cad6fce8731a2b627abc6335bbb (diff)
downloadlua-language-server-c1ca4d8af0cefd6222b76f83341774857cef44ec.zip
cleanup
Diffstat (limited to 'script/vm/field.lua')
-rw-r--r--script/vm/field.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/field.lua b/script/vm/field.lua
index 92448bb3..c30e112d 100644
--- a/script/vm/field.lua
+++ b/script/vm/field.lua
@@ -23,7 +23,10 @@ local function searchByNode(source, pushResult)
if not node then
return
end
- searchNodeSwitch(node.type, node, pushResult)
+
+ for n in nodeMgr.eachNode(node) do
+ searchNodeSwitch(n.type, n, pushResult)
+ end
end
---@param source parser.object