end
redef class MEntity
- # The documentation assiciated to the entity
+ # The documentation associated to the entity
- var mdoc: nullable MDoc writable
+ var mdoc: nullable MDoc is writable
+
+ # Is the entity deprecated?
+ #
+ # Used for warnings and in documentation.
+ # Has no other specific effect.
+ var deprecation: nullable MDeprecationInfo = null is writable
+ end
+
+ # Information about a deprecated entity
+ class MDeprecationInfo
+ # Explanation about the deprecation
+ var mdoc: nullable MDoc = null is writable
end
end
mwriteprop = new MMethod(mclassdef, writename, mvisibility)
if not self.check_redef_keyword(modelbuilder, mclassdef, nwkwredef, false, mwriteprop) then return
+ mwriteprop.deprecation = mprop.deprecation
else
if not self.check_redef_keyword(modelbuilder, mclassdef, nwkwredef or else n_kwredef, true, mwriteprop) then return
- if nwritable != null then
- check_redef_property_visibility(modelbuilder, nwritable.n_visibility, mwriteprop)
- else if atwritable != null then
+ if atwritable != null then
check_redef_property_visibility(modelbuilder, atwritable.n_visibility, mwriteprop)
end
end