# Generate code that check if an attribute is correctly initialized
fun generate_check_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.check_expr(v, recv)
end
end
end
src/compiler/abstract_compiler.nit:1206,2--1216,4