model: use > in fullnames of groups. An add a trailing `>` to them distinct.
authorJean Privat <jean@pryen.org>
Sat, 23 Apr 2016 20:45:38 +0000 (16:45 -0400)
committerJean Privat <jean@pryen.org>
Wed, 27 Apr 2016 13:51:02 +0000 (09:51 -0400)
* `core` is a package
* `core>` its root groups
* `core>collection>` a subgroup
* `core::core` the default module

Signed-off-by: Jean Privat <jean@pryen.org>

src/model/mpackage.nit

index c1625ee..1771938 100644 (file)
@@ -74,12 +74,15 @@ class MGroup
        var parent: nullable MGroup
 
        # Fully qualified name.
-       # It includes each parent group separated by `/`
+       # It includes each parent group separated by `>`.
+       # The full_name is terminated by `>` to avoid collision with other entities.
+       #
+       # E.g. `core>` and `core>collection>`
        redef fun full_name
        do
                var p = parent
-               if p == null then return name
-               return "{p.full_name}/{name}"
+               if p == null then return "{name}>"
+               return "{p.full_name}{name}>"
        end
 
        # The group is the group tree on the package (`mpackage.mgroups`)