diff options
Diffstat (limited to 'script/vm/getDocs.lua')
-rw-r--r-- | script/vm/getDocs.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua index a17a89d2..a354e214 100644 --- a/script/vm/getDocs.lua +++ b/script/vm/getDocs.lua @@ -18,14 +18,12 @@ function vm.getDocDefines(name) local results = {} local id = 'def:dn:' .. name for node in collector.each(id) do - if node.sources then - for _, source in ipairs(node.sources) do - if source.type == 'doc.class.name' - or source.type == 'doc.alias.name' then - results[#results+1] = source - end + noder.eachSource(node, function (source) + if source.type == 'doc.class.name' + or source.type == 'doc.alias.name' then + results[#results+1] = source end - end + end) end cache[name] = results return results |