neo_doxygen: Move the processing of Doxygen’s names in `doxml`.
[nit.git] / contrib / neo_doxygen / src / model / graph.nit
index d3a5b24..18f91c4 100644 (file)
@@ -196,6 +196,11 @@ abstract class Entity
                self["location"] = location
        end
 
+       # Get the location of the entity in the source code.
+       fun location: nullable Location do
+               return self["location"].as(nullable Location)
+       end
+
        # Put the entity in the graph.
        #
        # Called by the loader when it has finished to read the entity.
@@ -272,11 +277,9 @@ abstract class Compound
        # Parameters:
        #
        # * `id`: `model_id` of the inner class.
-       # * `full_name`: qualified name of the inner class. Ignored in practice.
+       # * `name`: short name of the inner class.
        # * `prot`: visibility (proctection).
-       #
-       # TODO: Handle cases where only the `full_name` is available.
-       fun declare_class(id: String, full_name: String, prot: String) do end
+       fun declare_class(id: String, name: String, prot: String) do end
 
        # Declare a base compound (usually, a base class).
        #