From da4d88d02e6597f7d1358515ba6ad11b9771a757 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Christophe=20Beaupr=C3=A9?= Date: Mon, 1 Dec 2014 13:54:40 -0500 Subject: [PATCH] model_ext: Add a way to represent inner classes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add adapters to wrap classes as properties. Signed-off-by: Jean-Christophe Beaupré --- src/doc/model_ext.nit | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/doc/model_ext.nit b/src/doc/model_ext.nit index fe74325..2adc9fd 100644 --- a/src/doc/model_ext.nit +++ b/src/doc/model_ext.nit @@ -88,6 +88,28 @@ class MTypePart end end +# An inner class. +class MInnerClass + super MProperty + + redef type MPROPDEF: MInnerClassDef + + # The actual class. + var inner: MClass +end + +# An inner class definition. +class MInnerClassDef + super MPropDef + + redef type MPROPDEF: MInnerClassDef + redef type MPROPERTY: MInnerClass + + # The actual class definition. + var inner: MClassDef +end + + # The “package” visiblity. # # Any visibility roughly equivalent to the default visibility of Java, that is -- 1.7.9.5