import model_base
private import more_collections
import poset
+import mdoc
# A Nit project, that encompass a product
class MProject
# MProject are always roots of the concerns hierarchy
redef fun parent_concern do return null
+
+ redef fun mdoc_or_fallback
+ do
+ if mdoc != null then return mdoc
+ return root.mdoc_or_fallback
+ end
end
# A group of modules in a project
# see `in_nesting` for more
var parent: nullable MGroup
- # fully qualified name
- fun full_name: String
+ # Fully qualified name.
+ # It includes each parent group separated by `/`
+ redef fun full_name
do
var p = parent
if p == null then return name