nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
neo_doxygen: Add a missing getter in `Entity`.
[nit.git]
/
contrib
/
neo_doxygen
/
src
/
model
/
graph.nit
diff --git
a/contrib/neo_doxygen/src/model/graph.nit
b/contrib/neo_doxygen/src/model/graph.nit
index
d3a5b24
..
198b8fb
100644
(file)
--- 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
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.
# Put the entity in the graph.
#
# Called by the loader when it has finished to read the entity.