From: Jean-Christophe Beaupré Date: Tue, 9 Dec 2014 20:36:28 +0000 (-0500) Subject: neo_doxygen: Add a missing getter in `Entity`. X-Git-Tag: v0.7~33^2~2 X-Git-Url: http://nitlanguage.org neo_doxygen: Add a missing getter in `Entity`. Signed-off-by: Jean-Christophe Beaupré --- diff --git a/contrib/neo_doxygen/src/model/graph.nit b/contrib/neo_doxygen/src/model/graph.nit index d3a5b24..198b8fb 100644 --- a/contrib/neo_doxygen/src/model/graph.nit +++ b/contrib/neo_doxygen/src/model/graph.nit @@ -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.