nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ci: do not error when nothing with nitunit_some
[nit.git]
/
contrib
/
neo_doxygen
/
src
/
doxml
/
doxyname.nit
diff --git
a/contrib/neo_doxygen/src/doxml/doxyname.nit
b/contrib/neo_doxygen/src/doxml/doxyname.nit
index
4676344
..
65637df
100644
(file)
--- a/
contrib/neo_doxygen/src/doxml/doxyname.nit
+++ b/
contrib/neo_doxygen/src/doxml/doxyname.nit
@@
-46,9
+46,16
@@
end
redef class Namespace
# Set the `name` and the `full_name` using the specified name generated by Doxygen.
redef class Namespace
# Set the `name` and the `full_name` using the specified name generated by Doxygen.
+ #
+ # Warning: This method assumes that `model_id` is already set.
redef fun doxyname=(doxyname: String) do
full_name = doxyname
super
redef fun doxyname=(doxyname: String) do
full_name = doxyname
super
+ if doxyname == name and model_id != "" then
+ # Doxygen does not represent the root namespace.
+ # So, we have to link the root namespace with its children manually.
+ graph.by_id[""].as(Namespace).declare_namespace(model_id, doxyname)
+ end
end
end
end
end