neo_doxygen: Add a missing getter in `Entity`.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 9 Dec 2014 20:36:28 +0000 (15:36 -0500)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 15 Dec 2014 19:11:20 +0000 (14:11 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

contrib/neo_doxygen/src/model/graph.nit

index d3a5b24..198b8fb 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.