From: Jean Privat Date: Sat, 6 Sep 2014 13:35:58 +0000 (-0400) Subject: model: introduce MDeprecationInfo X-Git-Tag: v0.6.9~49^2~3 X-Git-Url: http://nitlanguage.org model: introduce MDeprecationInfo Signed-off-by: Jean Privat --- diff --git a/src/model/mdoc.nit b/src/model/mdoc.nit index 44ddfea..dd31547 100644 --- a/src/model/mdoc.nit +++ b/src/model/mdoc.nit @@ -30,6 +30,18 @@ class MDoc end redef class MEntity - # The documentation assiciated to the entity + # The documentation associated to the entity var mdoc: nullable MDoc 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