+end
+redef class AAttrPropdef
+ init init_aattrpropdef (
+ n_doc: nullable ADoc,
+ n_readable: nullable AAble,
+ n_writable: nullable AAble,
+ n_kwredef: nullable TKwredef,
+ n_visibility: nullable AVisibility,
+ n_kwvar: nullable TKwvar,
+ n_id: nullable TAttrid,
+ n_id2: nullable TId,
+ n_type: nullable AType,
+ n_annotations: nullable AAnnotations,
+ n_expr: nullable AExpr
+ )
+ do
+ _n_doc = n_doc
+ if n_doc != null then n_doc.parent = self
+ _n_readable = n_readable
+ if n_readable != null then n_readable.parent = self
+ _n_writable = n_writable
+ if n_writable != null then n_writable.parent = self
+ _n_kwredef = n_kwredef
+ if n_kwredef != null then n_kwredef.parent = self
+ _n_visibility = n_visibility.as(not null)
+ n_visibility.parent = self
+ _n_kwvar = n_kwvar.as(not null)
+ n_kwvar.parent = self
+ _n_id = n_id
+ if n_id != null then n_id.parent = self
+ _n_id2 = n_id2
+ if n_id2 != null then n_id2.parent = self
+ _n_type = n_type
+ if n_type != null then n_type.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ _n_expr = n_expr
+ if n_expr != null then n_expr.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_doc == old_child then
+ n_doc = new_child.as(nullable ADoc)
+ return
+ end
+ if _n_readable == old_child then
+ n_readable = new_child.as(nullable AAble)
+ return
+ end
+ if _n_writable == old_child then
+ n_writable = new_child.as(nullable AAble)
+ return
+ end
+ if _n_kwredef == old_child then
+ n_kwredef = new_child.as(nullable TKwredef)
+ return
+ end
+ if _n_visibility == old_child then
+ n_visibility = new_child.as(AVisibility)
+ return
+ end
+ if _n_kwvar == old_child then
+ n_kwvar = new_child.as(TKwvar)
+ return
+ end
+ if _n_id == old_child then
+ n_id = new_child.as(nullable TAttrid)
+ return
+ end
+ if _n_id2 == old_child then
+ n_id2 = new_child.as(nullable TId)
+ return
+ end
+ if _n_type == old_child then
+ n_type = new_child.as(nullable AType)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ if _n_expr == old_child then
+ n_expr = new_child.as(nullable AExpr)
+ return
+ end