model & neo: fix ambiguity in the use of Location
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 22 Aug 2017 22:52:02 +0000 (18:52 -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>

src/model/model_json.nit
src/model/test_model_json.nit
src/neo.nit

index e6c6896..7c43e51 100644 (file)
@@ -96,7 +96,7 @@ redef class MDoc
        end
 end
 
-redef class Location
+redef class nitc::Location
        serialize
 
        redef fun core_serialize_to(v) do
index 105c493..897dfd5 100644 (file)
@@ -94,7 +94,7 @@ class TestModelSerialization
        end
 end
 
-redef class Location
+redef class nitc::Location
        serialize
 
        # Avoid diff on location absolute path
index 1e3fb5d..3af570a 100644 (file)
@@ -872,8 +872,8 @@ class NeoModel
        end
 
        # Get a `Location` from its string representation.
-       private fun to_location(loc: String): Location do
-               return new Location.from_string(loc)
+       private fun to_location(loc: String): nitc::Location do
+               return new nitc::Location.from_string(loc)
        end
 
        # Get a `MVisibility` from its string representation.