super MConcern
# The model considered
- redef var model: Model
+ redef var model
# The group of module in the package if any
var mgroup: nullable MGroup
end
# The short name of the module
- redef var name: String
+ redef var name
- redef var location: Location is writable
+ redef var location is writable
# Alias for `name`
redef fun to_s do return self.name
# Return the name of the global C identifier associated to `self`.
# This name is used to prefix files and other C identifiers associated with `self`.
- redef var c_name: String is lazy do
+ redef var c_name is lazy do
var g = mgroup
var res
if g != null and g.mpackage.name != name then
# ENSURE: `bound_mtype.mclass == self.mclass`
var bound_mtype: MClassType
- redef var location: Location
+ redef var location
redef fun visibility do return mclass.visibility
super MConcern
# The name of the package
- redef var name: String
+ redef var name
redef fun full_name do return name
redef var c_name = name.to_cmangle is lazy
# The model of the package
- redef var model: Model
+ redef var model
redef var location
redef fun mdoc_or_fallback
do
+ var mdoc = self.mdoc
if mdoc != null then return mdoc
- return root.mdoc_or_fallback
+ var root = self.root
+ if root != null then return root.mdoc_or_fallback
+ return null
end
end
# The name of the group
# empty name for a default group in a single-module package
- redef var name: String
+ redef var name
redef var location