# Phase generating methods to serialize Nit objects to different formats
module serialization_phase
-import phase
-import parser_util
-import modelize_property
-intrude import modelize_class
+private import parser_util
+import modelize
+private import annotation
redef class ToolContext
var serialization_phase_pre_model: Phase = new SerializationPhasePreModel(self, null)
var auto_serializable_nclassdefs = new Array[AStdClassdef]
for nclassdef in nmodule.n_classdefs do
if nclassdef isa AStdClassdef and
- not nclassdef.collect_annotations_by_name("auto_serializable").is_empty then
+ not nclassdef.get_annotations("auto_serializable").is_empty then
auto_serializable_nclassdefs.add nclassdef
end
end