frontend/serialization: a bit more details to the doc
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 12 Aug 2016 12:40:18 +0000 (08:40 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 12 Aug 2016 16:08:17 +0000 (12:08 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/frontend/serialization_phase.nit

index 4ad749b..6633e13 100644 (file)
@@ -173,6 +173,10 @@ private class SerializationPhasePreModel
                end
        end
 
+       # Implement `core_serialize_to` on `nclassdef`
+       #
+       # Are attributes serialized on demand `per_attribute` with `serialize`?
+       # Otherwise they are serialized by default, and we check instead for `noserialize`.
        fun generate_serialization_method(nclassdef: AClassdef, per_attribute: Bool)
        do
                var npropdefs = nclassdef.n_propdefs
@@ -259,6 +263,7 @@ end
 private class SerializationPhasePostModel
        super Phase
 
+       # Fill the deserialization init `from_deserializer` and `Deserializer.deserialize_class_intern`
        redef fun process_nmodule(nmodule)
        do
                for npropdef in nmodule.inits_to_retype do