neo_doxygen: fix a few "type repetition" warnings
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 22 Aug 2017 17:50:18 +0000 (13:50 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 31 Aug 2017 14:16:36 +0000 (10:16 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/neo_doxygen/src/doxml/entitydef.nit
contrib/neo_doxygen/src/model/class_compound.nit
contrib/neo_doxygen/src/model/module_compound.nit

index 6e43b24..aa6968c 100644 (file)
@@ -40,7 +40,7 @@ abstract class EntityDefListener
        # The current entity.
        protected fun entity: Entity is abstract
 
-       redef fun start_dox_element(local_name: String, atts: Attributes) do
+       redef fun start_dox_element(local_name, atts) do
                if ["briefdescription", "detaileddescription", "inbodydescription"].has(local_name) then
                        doc.doc = entity.doc
                        doc.listen_until(dox_uri, local_name)
@@ -100,7 +100,7 @@ abstract class ParamListener[T: Parameter]
        # Create a new parameter.
        protected fun create_parameter: T is abstract
 
-       redef fun start_dox_element(local_name: String, atts: Attributes) do
+       redef fun start_dox_element(local_name, atts) do
                if "declname" == local_name then
                        text.listen_until(dox_uri, local_name)
                else if "type" == local_name then
@@ -110,7 +110,7 @@ abstract class ParamListener[T: Parameter]
                end
        end
 
-       redef fun end_dox_element(local_name: String) do
+       redef fun end_dox_element(local_name) do
                if "declname" == local_name then
                        parameter.name = text.to_s
                else if "type" == local_name then
index 0fc5936..b0f2096 100644 (file)
@@ -44,7 +44,7 @@ class ClassCompound
        # Return the number of type parameters.
        fun arity: Int do return class_type.arity
 
-       redef fun name=(name: String) do
+       redef fun name=(name) do
                super
                class_type.name = name
                class_def.name = name
@@ -60,11 +60,11 @@ class ClassCompound
                class_def["mdoc"] = doc
        end
 
-       redef fun declare_super(id: String, full_name: String, prot: String, virt: String) do
+       redef fun declare_super(id, full_name, prot, virt) do
                class_def.declare_super(id, full_name, prot, virt)
        end
 
-       redef fun declare_member(member: Member) do
+       redef fun declare_member(member) do
                class_def.declare_member(member)
        end
 
index 08b8205..aca8dfc 100644 (file)
@@ -51,7 +51,7 @@ class FileCompound
                for m in inner_namespaces do m.location = location
        end
 
-       redef fun name=(name: String) do
+       redef fun name=(name) do
                # Example: `MyClass.java`
                super
                var match = name.search_last(".")
@@ -65,7 +65,7 @@ class FileCompound
                for m in inner_namespaces do m.update_name
        end
 
-       redef fun declare_namespace(id: String, full_name: String) do
+       redef fun declare_namespace(id, full_name) do
                var m: Module
 
                assert not full_name.is_empty or id.is_empty else