Most model entities are defined in a specific place in the source base.
Because most model entities have one,
it is simpler for the client to have a non-nullable return value.
For entities that lack a location, mock-up special locations are used instead.
By default it is model.no_location
.
# The origin of the definition.
#
# Most model entities are defined in a specific place in the source base.
#
# Because most model entities have one,
# it is simpler for the client to have a non-nullable return value.
# For entities that lack a location, mock-up special locations are used instead.
# By default it is `model.no_location`.
fun location: Location do return model.no_location
src/model/model_base.nit:74,2--82,51
redef var location = new Location.opaque_file("ModelStandalone")
src/model/model.nit:2786,2--65