+ _n_pluseq = n_pluseq.as(not null)
+ n_pluseq.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_pluseq == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TPluseq
+ _n_pluseq = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_pluseq=(node)
+ do
+ _n_pluseq = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_pluseq)
+ end
+end
+redef class AMinusAssignOp
+ private init empty_init do end
+
+ init init_aminusassignop (
+ n_minuseq: nullable TMinuseq
+ )
+ do
+ empty_init
+ _n_minuseq = n_minuseq.as(not null)
+ n_minuseq.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_minuseq == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TMinuseq
+ _n_minuseq = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_minuseq=(node)
+ do
+ _n_minuseq = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_minuseq)
+ end
+end
+redef class AModuleName
+ private init empty_init do end
+
+ init init_amodulename (
+ n_quad: nullable TQuad,
+ n_path: Collection[Object], # Should be Collection[TId]
+ n_id: nullable TId
+ )
+ do
+ empty_init
+ _n_quad = n_quad
+ if n_quad != null then
+ n_quad.parent = self
+ end
+ for n in n_path do
+ assert n isa TId
+ _n_path.add(n)
+ n.parent = self
+ end
+ _n_id = n_id.as(not null)
+ n_id.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_quad == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TQuad
+ _n_quad = new_child
+ else
+ _n_quad = null
+ end
+ return
+ end
+ for i in [0.._n_path.length[ do
+ if _n_path[i] == old_child then
+ if new_child != null then
+ assert new_child isa TId
+ _n_path[i] = new_child
+ new_child.parent = self
+ else
+ _n_path.remove_at(i)
+ end
+ return
+ end
+ end
+ if _n_id == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TId
+ _n_id = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_quad=(node)
+ do
+ _n_quad = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_id=(node)
+ do
+ _n_id = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ if _n_quad != null then
+ v.enter_visit(_n_quad.as(not null))
+ end
+ for n in _n_path do
+ v.enter_visit(n)
+ end
+ v.enter_visit(_n_id)
+ end
+end
+redef class AExternCalls
+ private init empty_init do end
+
+ init init_aexterncalls (
+ n_kwimport: nullable TKwimport,
+ n_extern_calls: Collection[Object] # Should be Collection[AExternCall]
+ )
+ do
+ empty_init
+ _n_kwimport = n_kwimport.as(not null)
+ n_kwimport.parent = self
+ for n in n_extern_calls do
+ assert n isa AExternCall
+ _n_extern_calls.add(n)
+ n.parent = self
+ end
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwimport == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwimport
+ _n_kwimport = new_child
+ else
+ abort
+ end
+ return
+ end
+ for i in [0.._n_extern_calls.length[ do
+ if _n_extern_calls[i] == old_child then
+ if new_child != null then
+ assert new_child isa AExternCall
+ _n_extern_calls[i] = new_child
+ new_child.parent = self
+ else
+ _n_extern_calls.remove_at(i)
+ end
+ return
+ end
+ end
+ end
+
+ redef fun n_kwimport=(node)
+ do
+ _n_kwimport = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_kwimport)
+ for n in _n_extern_calls do
+ v.enter_visit(n)
+ end
+ end
+end
+redef class AExternCall
+ private init empty_init do end
+
+ init init_aexterncall
+ do
+ empty_init
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ end
+
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ end
+end
+redef class ASuperExternCall
+ private init empty_init do end
+
+ init init_asuperexterncall (
+ n_kwsuper: nullable TKwsuper
+ )
+ do
+ empty_init
+ _n_kwsuper = n_kwsuper.as(not null)
+ n_kwsuper.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwsuper == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwsuper
+ _n_kwsuper = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_kwsuper=(node)
+ do
+ _n_kwsuper = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_kwsuper)
+ end
+end
+redef class ALocalPropExternCall
+ private init empty_init do end
+
+ init init_alocalpropexterncall (
+ n_methid: nullable AMethid
+ )
+ do
+ empty_init
+ _n_methid = n_methid.as(not null)
+ n_methid.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_methid == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AMethid
+ _n_methid = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_methid=(node)
+ do
+ _n_methid = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_methid)
+ end
+end
+redef class AFullPropExternCall
+ private init empty_init do end
+
+ init init_afullpropexterncall (
+ n_type: nullable AType,
+ n_dot: nullable TDot,
+ n_methid: nullable AMethid
+ )
+ do
+ empty_init
+ _n_type = n_type.as(not null)
+ n_type.parent = self
+ _n_dot = n_dot
+ if n_dot != null then
+ n_dot.parent = self
+ end
+ _n_methid = n_methid.as(not null)
+ n_methid.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_dot == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TDot
+ _n_dot = new_child
+ else
+ _n_dot = null
+ end
+ return
+ end
+ if _n_methid == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AMethid
+ _n_methid = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_type=(node)
+ do
+ _n_type = node
+ node.parent = self
+ end
+ redef fun n_dot=(node)
+ do
+ _n_dot = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_methid=(node)
+ do
+ _n_methid = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_type)
+ if _n_dot != null then
+ v.enter_visit(_n_dot.as(not null))
+ end
+ v.enter_visit(_n_methid)
+ end
+end
+redef class AInitPropExternCall
+ private init empty_init do end
+
+ init init_ainitpropexterncall (
+ n_type: nullable AType
+ )
+ do
+ empty_init
+ _n_type = n_type.as(not null)
+ n_type.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_type=(node)
+ do
+ _n_type = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_type)
+ end
+end
+redef class ACastAsExternCall
+ private init empty_init do end
+
+ init init_acastasexterncall (
+ n_from_type: nullable AType,
+ n_dot: nullable TDot,
+ n_kwas: nullable TKwas,
+ n_to_type: nullable AType
+ )
+ do
+ empty_init
+ _n_from_type = n_from_type.as(not null)
+ n_from_type.parent = self
+ _n_dot = n_dot
+ if n_dot != null then
+ n_dot.parent = self
+ end
+ _n_kwas = n_kwas.as(not null)
+ n_kwas.parent = self
+ _n_to_type = n_to_type.as(not null)
+ n_to_type.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_from_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_from_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_dot == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TDot
+ _n_dot = new_child
+ else
+ _n_dot = null
+ end
+ return
+ end
+ if _n_kwas == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwas
+ _n_kwas = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_to_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_to_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_from_type=(node)
+ do
+ _n_from_type = node
+ node.parent = self
+ end
+ redef fun n_dot=(node)
+ do
+ _n_dot = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_kwas=(node)
+ do
+ _n_kwas = node
+ node.parent = self
+ end
+ redef fun n_to_type=(node)
+ do
+ _n_to_type = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_from_type)
+ if _n_dot != null then
+ v.enter_visit(_n_dot.as(not null))
+ end
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_to_type)
+ end
+end
+redef class AAsNullableExternCall
+ private init empty_init do end
+
+ init init_aasnullableexterncall (
+ n_type: nullable AType,
+ n_kwas: nullable TKwas,
+ n_kwnullable: nullable TKwnullable
+ )
+ do
+ empty_init
+ _n_type = n_type.as(not null)
+ n_type.parent = self
+ _n_kwas = n_kwas.as(not null)
+ n_kwas.parent = self
+ _n_kwnullable = n_kwnullable.as(not null)
+ n_kwnullable.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_kwas == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwas
+ _n_kwas = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_kwnullable == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwnullable
+ _n_kwnullable = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_type=(node)
+ do
+ _n_type = node
+ node.parent = self
+ end
+ redef fun n_kwas=(node)
+ do
+ _n_kwas = node
+ node.parent = self
+ end
+ redef fun n_kwnullable=(node)
+ do
+ _n_kwnullable = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_type)
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_kwnullable)
+ end
+end
+redef class AAsNotNullableExternCall
+ private init empty_init do end
+
+ init init_aasnotnullableexterncall (
+ n_type: nullable AType,
+ n_kwas: nullable TKwas,
+ n_kwnot: nullable TKwnot,
+ n_kwnullable: nullable TKwnullable
+ )
+ do
+ empty_init
+ _n_type = n_type.as(not null)
+ n_type.parent = self
+ _n_kwas = n_kwas.as(not null)
+ n_kwas.parent = self
+ _n_kwnot = n_kwnot.as(not null)
+ n_kwnot.parent = self
+ _n_kwnullable = n_kwnullable.as(not null)
+ n_kwnullable.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_kwas == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwas
+ _n_kwas = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_kwnot == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwnot
+ _n_kwnot = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_kwnullable == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwnullable
+ _n_kwnullable = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_type=(node)
+ do
+ _n_type = node
+ node.parent = self
+ end
+ redef fun n_kwas=(node)
+ do
+ _n_kwas = node
+ node.parent = self
+ end
+ redef fun n_kwnot=(node)
+ do
+ _n_kwnot = node
+ node.parent = self
+ end
+ redef fun n_kwnullable=(node)
+ do
+ _n_kwnullable = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_type)
+ v.enter_visit(_n_kwas)
+ v.enter_visit(_n_kwnot)
+ v.enter_visit(_n_kwnullable)
+ end
+end
+redef class AInLanguage
+ private init empty_init do end
+
+ init init_ainlanguage (
+ n_kwin: nullable TKwin,
+ n_string: nullable TString
+ )
+ do
+ empty_init
+ _n_kwin = n_kwin.as(not null)
+ n_kwin.parent = self
+ _n_string = n_string.as(not null)
+ n_string.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwin == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TKwin
+ _n_kwin = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_string == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TString
+ _n_string = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_kwin=(node)
+ do
+ _n_kwin = node
+ node.parent = self
+ end
+ redef fun n_string=(node)
+ do
+ _n_string = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_kwin)
+ v.enter_visit(_n_string)
+ end
+end
+redef class AExternCodeBlock
+ private init empty_init do end
+
+ init init_aexterncodeblock (
+ n_in_language: nullable AInLanguage,
+ n_extern_code_segment: nullable TExternCodeSegment
+ )
+ do
+ empty_init
+ _n_in_language = n_in_language
+ if n_in_language != null then
+ n_in_language.parent = self
+ end
+ _n_extern_code_segment = n_extern_code_segment.as(not null)
+ n_extern_code_segment.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_in_language == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AInLanguage
+ _n_in_language = new_child
+ else
+ _n_in_language = null
+ end
+ return
+ end
+ if _n_extern_code_segment == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TExternCodeSegment
+ _n_extern_code_segment = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_in_language=(node)
+ do
+ _n_in_language = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_extern_code_segment=(node)
+ do
+ _n_extern_code_segment = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ if _n_in_language != null then
+ v.enter_visit(_n_in_language.as(not null))
+ end
+ v.enter_visit(_n_extern_code_segment)
+ end
+end
+redef class AQualified
+ private init empty_init do end
+
+ init init_aqualified (
+ n_id: Collection[Object], # Should be Collection[TId]
+ n_classid: nullable TClassid
+ )
+ do
+ empty_init
+ for n in n_id do
+ assert n isa TId
+ _n_id.add(n)
+ n.parent = self
+ end
+ _n_classid = n_classid
+ if n_classid != null then
+ n_classid.parent = self
+ end
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ for i in [0.._n_id.length[ do
+ if _n_id[i] == old_child then
+ if new_child != null then
+ assert new_child isa TId
+ _n_id[i] = new_child
+ new_child.parent = self
+ else
+ _n_id.remove_at(i)
+ end
+ return
+ end
+ end
+ if _n_classid == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TClassid
+ _n_classid = new_child
+ else
+ _n_classid = null
+ end
+ return
+ end
+ end
+
+ redef fun n_classid=(node)
+ do
+ _n_classid = node
+ if node != null then
+ node.parent = self
+ end
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ for n in _n_id do
+ v.enter_visit(n)
+ end
+ if _n_classid != null then
+ v.enter_visit(_n_classid.as(not null))
+ end
+ end
+end
+redef class ADoc
+ private init empty_init do end
+
+ init init_adoc (
+ n_comment: Collection[Object] # Should be Collection[TComment]
+ )
+ do
+ empty_init
+ for n in n_comment do
+ assert n isa TComment
+ _n_comment.add(n)
+ n.parent = self
+ end
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ for i in [0.._n_comment.length[ do
+ if _n_comment[i] == old_child then
+ if new_child != null then
+ assert new_child isa TComment
+ _n_comment[i] = new_child
+ new_child.parent = self
+ else
+ _n_comment.remove_at(i)
+ end
+ return
+ end
+ end
+ end
+
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ for n in _n_comment do
+ v.enter_visit(n)
+ end
+ end
+end
+redef class AAnnotations
+ private init empty_init do end
+
+ init init_aannotations (
+ n_at: nullable TAt,
+ n_opar: nullable TOpar,
+ n_items: Collection[Object], # Should be Collection[AAnnotation]
+ n_cpar: nullable TCpar
+ )
+ do
+ empty_init
+ _n_at = n_at
+ if n_at != null then
+ n_at.parent = self
+ end
+ _n_opar = n_opar
+ if n_opar != null then
+ n_opar.parent = self
+ end
+ for n in n_items do
+ assert n isa AAnnotation
+ _n_items.add(n)
+ n.parent = self
+ end
+ _n_cpar = n_cpar
+ if n_cpar != null then
+ n_cpar.parent = self
+ end
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_at == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TAt
+ _n_at = new_child
+ else
+ _n_at = null
+ end
+ return
+ end
+ if _n_opar == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TOpar
+ _n_opar = new_child
+ else
+ _n_opar = null
+ end
+ return
+ end
+ for i in [0.._n_items.length[ do
+ if _n_items[i] == old_child then
+ if new_child != null then
+ assert new_child isa AAnnotation
+ _n_items[i] = new_child
+ new_child.parent = self
+ else
+ _n_items.remove_at(i)
+ end
+ return
+ end
+ end
+ if _n_cpar == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TCpar
+ _n_cpar = new_child
+ else
+ _n_cpar = null
+ end
+ return
+ end
+ end
+
+ redef fun n_at=(node)
+ do
+ _n_at = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_opar=(node)
+ do
+ _n_opar = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_cpar=(node)
+ do
+ _n_cpar = node
+ if node != null then
+ node.parent = self
+ end
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ if _n_at != null then
+ v.enter_visit(_n_at.as(not null))
+ end
+ if _n_opar != null then
+ v.enter_visit(_n_opar.as(not null))
+ end
+ for n in _n_items do
+ v.enter_visit(n)
+ end
+ if _n_cpar != null then
+ v.enter_visit(_n_cpar.as(not null))
+ end
+ end
+end
+redef class AAnnotation
+ private init empty_init do end
+
+ init init_aannotation (
+ n_atid: nullable AAtid,
+ n_opar: nullable TOpar,
+ n_args: Collection[Object], # Should be Collection[AAtArg]
+ n_cpar: nullable TCpar,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ empty_init
+ _n_atid = n_atid.as(not null)
+ n_atid.parent = self
+ _n_opar = n_opar
+ if n_opar != null then
+ n_opar.parent = self
+ end
+ for n in n_args do
+ assert n isa AAtArg
+ _n_args.add(n)
+ n.parent = self
+ end
+ _n_cpar = n_cpar
+ if n_cpar != null then
+ n_cpar.parent = self
+ end
+ _n_annotations = n_annotations
+ if n_annotations != null then
+ n_annotations.parent = self
+ end
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_atid == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AAtid
+ _n_atid = new_child
+ else
+ abort
+ end
+ return
+ end
+ if _n_opar == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TOpar
+ _n_opar = new_child
+ else
+ _n_opar = null
+ end
+ return
+ end
+ for i in [0.._n_args.length[ do
+ if _n_args[i] == old_child then
+ if new_child != null then
+ assert new_child isa AAtArg
+ _n_args[i] = new_child
+ new_child.parent = self
+ else
+ _n_args.remove_at(i)
+ end
+ return
+ end
+ end
+ if _n_cpar == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TCpar
+ _n_cpar = new_child
+ else
+ _n_cpar = null
+ end
+ return
+ end
+ if _n_annotations == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AAnnotations
+ _n_annotations = new_child
+ else
+ _n_annotations = null
+ end
+ return
+ end
+ end
+
+ redef fun n_atid=(node)
+ do
+ _n_atid = node
+ node.parent = self
+ end
+ redef fun n_opar=(node)
+ do
+ _n_opar = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_cpar=(node)
+ do
+ _n_cpar = node
+ if node != null then
+ node.parent = self
+ end
+ end
+ redef fun n_annotations=(node)
+ do
+ _n_annotations = node
+ if node != null then
+ node.parent = self
+ end
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_atid)
+ if _n_opar != null then
+ v.enter_visit(_n_opar.as(not null))
+ end
+ for n in _n_args do
+ v.enter_visit(n)
+ end
+ if _n_cpar != null then
+ v.enter_visit(_n_cpar.as(not null))
+ end
+ if _n_annotations != null then
+ v.enter_visit(_n_annotations.as(not null))
+ end
+ end
+end
+redef class ATypeAtArg
+ private init empty_init do end
+
+ init init_atypeatarg (
+ n_type: nullable AType
+ )
+ do
+ empty_init
+ _n_type = n_type.as(not null)
+ n_type.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_type == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AType
+ _n_type = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_type=(node)
+ do
+ _n_type = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_type)
+ end
+end
+redef class AExprAtArg
+ private init empty_init do end
+
+ init init_aexpratarg (
+ n_expr: nullable AExpr
+ )
+ do
+ empty_init
+ _n_expr = n_expr.as(not null)
+ n_expr.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_expr == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AExpr
+ _n_expr = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_expr=(node)
+ do
+ _n_expr = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_expr)
+ end
+end
+redef class AAtAtArg
+ private init empty_init do end
+
+ init init_aatatarg (
+ n_annotations: nullable AAnnotations
+ )
+ do
+ empty_init
+ _n_annotations = n_annotations.as(not null)
+ n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_annotations == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa AAnnotations
+ _n_annotations = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_annotations=(node)
+ do
+ _n_annotations = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AIdAtid
+ private init empty_init do end
+
+ init init_aidatid (
+ n_id: nullable TId
+ )
+ do
+ empty_init
+ _n_id = n_id.as(not null)
+ n_id.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_id == old_child then
+ if new_child != null then
+ new_child.parent = self
+ assert new_child isa TId
+ _n_id = new_child
+ else
+ abort
+ end
+ return
+ end
+ end
+
+ redef fun n_id=(node)
+ do
+ _n_id = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_id)
+ end
+end
+redef class AKwexternAtid
+ private init empty_init do end
+
+ init init_akwexternatid (
+ n_id: nullable TKwextern
+ )
+ do
+ empty_init
+ _n_id = n_id.as(not null)
+ n_id.parent = self