model: fix some warnings
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 16 Dec 2015 01:33:21 +0000 (20:33 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 16 Dec 2015 03:03:07 +0000 (22:03 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/model/model.nit

index b9d6aa2..cf8dfb1 100644 (file)
@@ -374,7 +374,7 @@ class MClass
 
        # The short name of the class
        # In Nit, the name of a class cannot evolve in refinements
-       redef var name: String
+       redef var name
 
        # The canonical name of the class
        #
@@ -583,7 +583,7 @@ class MClassDef
 
        # Internal name combining the module and the class
        # Example: "mymodule#MyClass"
-       redef var to_s: String is noinit
+       redef var to_s is noinit
 
        init
        do
@@ -1277,7 +1277,7 @@ class MGenericType
 
        # The short-name of the class, then the full-name of each type arguments within brackets.
        # Example: `"Map[String, List[Int]]"`
-       redef var to_s: String is noinit
+       redef var to_s is noinit
 
        # The full-name of the class, then the full-name of each type arguments within brackets.
        # Example: `"core::Map[core::String, core::List[core::Int]]"`
@@ -1299,7 +1299,7 @@ class MGenericType
                return res.to_s
        end
 
-       redef var need_anchor: Bool is noinit
+       redef var need_anchor is noinit
 
        redef fun resolve_for(mtype, anchor, mmodule, cleanup_virtual)
        do
@@ -1669,7 +1669,7 @@ class MNullableType
                self.to_s = "nullable {mtype}"
        end
 
-       redef var to_s: String is noinit
+       redef var to_s is noinit
 
        redef var full_name is lazy do return "nullable {mtype.full_name}"
 
@@ -1723,7 +1723,7 @@ end
 # The is only one null type per model, see `MModel::null_type`.
 class MNullType
        super MType
-       redef var model: Model
+       redef var model
        redef fun to_s do return "null"
        redef fun full_name do return "null"
        redef fun c_name do return "null"
@@ -1749,7 +1749,7 @@ end
 # Semantically it is the singleton `null.as_notnull`.
 class MBottomType
        super MType
-       redef var model: Model
+       redef var model
        redef fun to_s do return "bottom"
        redef fun full_name do return "bottom"
        redef fun c_name do return "bottom"
@@ -1885,7 +1885,7 @@ class MParameter
        super MEntity
 
        # The name of the parameter
-       redef var name: String
+       redef var name
 
        # The static type of the parameter
        var mtype: MType
@@ -1939,7 +1939,7 @@ abstract class MProperty
        var intro_mclassdef: MClassDef
 
        # The (short) name of the property
-       redef var name: String
+       redef var name
 
        # The canonical name of the property.
        #
@@ -2310,7 +2310,7 @@ abstract class MPropDef
 
        # Internal name combining the module, the class and the property
        # Example: "mymodule#MyClass#mymethod"
-       redef var to_s: String is noinit
+       redef var to_s is noinit
 
        # Is self the definition that introduce the property?
        fun is_intro: Bool do return isset mproperty._intro and mproperty.intro == self
@@ -2413,7 +2413,7 @@ end
 # Note this class is basically an enum.
 # FIXME: use a real enum once user-defined enums are available
 class MClassKind
-       redef var to_s: String
+       redef var to_s
 
        # Is a constructor required?
        var need_init: Bool