neo_doxygen: Avoid clearing the namespace’s id of a module.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 24 Oct 2014 15:47:07 +0000 (11:47 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 4 Nov 2014 17:14:12 +0000 (12:14 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

contrib/neo_doxygen/src/model/module_compound.nit

index eb1f297..6629cc7 100644 (file)
@@ -70,7 +70,7 @@ class FileCompound
 
                if inner_namespaces.keys.has(name) then
                        m = inner_namespaces[name]
-                       m.parent = id
+                       if id != "" then m.parent = id
                else
                        m = new Module(graph)
                        m.full_name = "{name}{ns_separator}{basename}"