From 1629ab4c86c332b0ed5d940fb822709963dd43c6 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Sat, 6 Sep 2014 09:35:58 -0400 Subject: [PATCH] model: introduce MDeprecationInfo Signed-off-by: Jean Privat --- src/model/mdoc.nit | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- 1.7.9.5