From 72ef798127edab5cd958134f584f4ecd53b73485 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Tue, 9 Dec 2014 15:36:28 -0500 Subject: [PATCH] neo_doxygen: Add a missing getter in `Entity`. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jean-Christophe Beaupré --- contrib/neo_doxygen/src/model/graph.nit | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 1.7.9.5