lib/json: serialization private import static
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 20 May 2015 12:39:18 +0000 (08:39 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 20 May 2015 19:32:14 +0000 (15:32 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/json/serialization.nit

index 98a8e87..905f578 100644 (file)
@@ -19,7 +19,7 @@ module serialization
 
 import ::serialization
 private import ::serialization::engine_tools
-import static
+private import static
 
 # Serializer of Nit objects to Json string.
 class JsonSerializer
@@ -138,10 +138,10 @@ class JsonDeserializer
        private var text: Text
 
        # Root json object parsed from input text.
-       var root: nullable Jsonable is noinit
+       private var root: nullable Jsonable is noinit
 
        # Depth-first path in the serialized object tree.
-       var path = new Array[JsonObject]
+       private var path = new Array[JsonObject]
 
        # Map of references to already deserialized objects.
        private var id_to_object = new StrictHashMap[Int, Object]