neo_doxygen: fix some typos and warnings
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 15 Sep 2016 14:35:54 +0000 (10:35 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 19 Sep 2016 14:50:36 +0000 (10:50 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/neo_doxygen/src/model/graph.nit
contrib/neo_doxygen/src/model/location.nit

index 74a81b5..26c8e66 100644 (file)
@@ -221,7 +221,7 @@ end
 abstract class Compound
        super Entity
 
-       # Set the declared visibility (the proctection) of the compound.
+       # Set the declared visibility (the protection) of the compound.
        fun visibility=(visibility: String) do
                self["visibility"] = visibility
        end
@@ -233,7 +233,7 @@ abstract class Compound
 
        # Declare an inner namespace.
        #
-       # Note: Althought Doxygen indicates that the name is optional,
+       # Note: Although Doxygen indicates that the name is optional,
        # declarations with an empty name are not supported yet, except for the root
        # namespace. For the root namespace, both arguments are empty.
        #
@@ -246,7 +246,7 @@ abstract class Compound
 
        # Declare an inner class.
        #
-       # Note: Althought Doxygen indicates that both arguments are optional,
+       # Note: Although Doxygen indicates that both arguments are optional,
        # declarations with an empty ID are not supported yet.
        #
        # Parameters:
@@ -292,7 +292,7 @@ class Namespace
                self.labels.add("MGroup")
        end
 
-       redef fun declare_namespace(id: String, full_name: String) do
+       redef fun declare_namespace(id, full_name) do
                inner_namespaces.add new NamespaceRef(id, full_name)
        end
 
index a0a183b..46551a8 100644 (file)
@@ -36,9 +36,10 @@ class Location
        # The one-based column index of the last character.
        var column_end: Int = 1 is writable
 
-       redef fun to_s: String do
+       redef fun to_s do
+               var path = path
                var file_part = "/dev/null:"
-               if path != null and path.length > 0 then file_part = "{path.as(not null)}:"
+               if path != null and path.length > 0 then file_part = "{path}:"
                return "{file_part}{line_start},{column_start}--{line_end},{column_end}"
        end