From aa51b43cd8c1f82d7eef13648ceb07ca2a305c69 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Sat, 23 Apr 2016 16:45:38 -0400 Subject: [PATCH] model: use > in fullnames of groups. An add a trailing `>` to them distinct. * `core` is a package * `core>` its root groups * `core>collection>` a subgroup * `core::core` the default module Signed-off-by: Jean Privat --- src/model/mpackage.nit | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/model/mpackage.nit b/src/model/mpackage.nit index c1625ee..1771938 100644 --- a/src/model/mpackage.nit +++ b/src/model/mpackage.nit @@ -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`) -- 1.7.9.5