# Generate code that initialize the attributes on a new instance
fun generate_init_attr(v: VISITOR, recv: RuntimeVariable, mtype: MClassType)
do
var cds = mtype.collect_mclassdefs(self.mainmodule).to_a
self.mainmodule.linearize_mclassdefs(cds)
for cd in cds do
for npropdef in modelbuilder.collect_attr_propdef(cd) do
npropdef.init_expr(v, recv)
end
end
end
src/compiler/abstract_compiler.nit:1195,2--1205,4