diff options
Diffstat (limited to 'script/core/noder.lua')
-rw-r--r-- | script/core/noder.lua | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 102245d9..c2f2061a 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1606,14 +1606,13 @@ function m.compileGlobalNodes(root) m.compilePartNodes(noders, env) local docs = root.docs - for i = 1, #docs do - local doc = docs[i] - if doc.type == 'doc.class' then - m.compileNode(noders, doc.class) - elseif doc.type == 'doc.alias' then - m.compileNode(noders, doc.alias) - end - end + guide.eachSourceTypes(docs, { + 'doc.class.name', + 'doc.alias.name', + 'doc.type.name', + }, function (doc) + m.compileNode(noders, doc) + end) end files.watch(function (ev, uri) |