super Compound
# The inner namespaces.
- #
- # Left empty for the root namespace.
var inner_namespaces: SimpleCollection[NamespaceRef] = new Array[NamespaceRef]
init do
redef fun put_edges do
super
graph.add_edge(self, "PROJECT", graph.project)
- if self["name"] == self["full_name"] and self["full_name"] != "" then
- # The root namespace does not know its children.
- var root = graph.by_id[""]
- graph.add_edge(self, "PARENT", root)
- graph.add_edge(root, "NESTS", self)
- end
for ns in inner_namespaces do
var node = ns.seek_in(graph)
graph.add_edge(node, "PARENT", self)
self["full_name"] = ""
self["name"] = graph.project_name
end
-
- redef fun declare_namespace(id: String, name: String) do end
end