neo_doxygen: Use `ProjectGraph.project_name` in `RootNamespace`.
[nit.git] / contrib / neo_doxygen / src / model / graph.nit
index aad1644..d3a5b24 100644 (file)
@@ -165,7 +165,7 @@ abstract class Entity
        #
        # Also set `name` using `name_separator`.
        fun full_name=(full_name: String) do
-               var m: nullable Match = full_name.search_last(name_separator)
+               var m = full_name.search_last(name_separator)
 
                self["full_name"] = full_name
                if m == null then
@@ -273,9 +273,10 @@ abstract class Compound
        #
        # * `id`: `model_id` of the inner class.
        # * `full_name`: qualified name of the inner class. Ignored in practice.
+       # * `prot`: visibility (proctection).
        #
        # TODO: Handle cases where only the `full_name` is available.
-       fun declare_class(id: String, full_name: String) do end
+       fun declare_class(id: String, full_name: String, prot: String) do end
 
        # Declare a base compound (usually, a base class).
        #
@@ -319,7 +320,7 @@ class Namespace
                inner_namespaces.add new NamespaceRef(id, full_name)
        end
 
-       redef fun declare_class(id: String, full_name: String) do
+       redef fun declare_class(id: String, full_name: String, prot: String) do
                graph.class_to_ns[id] = self
        end
 
@@ -385,7 +386,7 @@ class RootNamespace
        init do
                super
                self["full_name"] = ""
-               self["name"] = graph.project["name"]
+               self["name"] = graph.project_name
        end
 
        redef fun declare_namespace(id: String, name: String) do end