- if _n_methid == old_child then
- n_methid = new_child.as(AMethid)
- return
- end
- if _n_signature == old_child then
- n_signature = new_child.as(ASignature)
- return
- end
- if _n_annotations == old_child then
- n_annotations = new_child.as(nullable AAnnotations)
- return
- end
- end
-
- redef fun n_doc=(node)
- do
- _n_doc = node
- if node != null then node.parent = self
- end
- redef fun n_kwredef=(node)
- do
- _n_kwredef = node
- if node != null then node.parent = self
- end
- redef fun n_visibility=(node)
- do
- _n_visibility = node
- node.parent = self
- end
- redef fun n_kwmeth=(node)
- do
- _n_kwmeth = node
- node.parent = self
- end
- redef fun n_methid=(node)
- do
- _n_methid = node
- node.parent = self
- end
- redef fun n_signature=(node)
- do
- _n_signature = node
- node.parent = self
- end
- redef fun n_annotations=(node)
- do
- _n_annotations = node
- if node != null then node.parent = self
- end
-
-
- redef fun visit_all(v: Visitor)
- do
- v.enter_visit(_n_doc)
- v.enter_visit(_n_kwredef)
- v.enter_visit(_n_visibility)
- v.enter_visit(_n_kwmeth)
- v.enter_visit(_n_methid)
- v.enter_visit(_n_signature)
- v.enter_visit(_n_annotations)
- end
-end
-redef class AInternMethPropdef
- private init empty_init do end
-
- init init_ainternmethpropdef (
- n_doc: nullable ADoc,
- n_kwredef: nullable TKwredef,
- n_visibility: nullable AVisibility,
- n_kwmeth: nullable TKwmeth,
- n_methid: nullable AMethid,
- n_signature: nullable ASignature
- )
- do
- empty_init
- _n_doc = n_doc
- if n_doc != null then n_doc.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_kwmeth = n_kwmeth.as(not null)
- n_kwmeth.parent = self
- _n_methid = n_methid.as(not null)
- n_methid.parent = self
- _n_signature = n_signature.as(not null)
- n_signature.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_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_kwmeth == old_child then
- n_kwmeth = new_child.as(TKwmeth)
- return
- end
- if _n_methid == old_child then
- n_methid = new_child.as(AMethid)
- return
- end
- if _n_signature == old_child then
- n_signature = new_child.as(ASignature)
- return
- end
- end
-
- redef fun n_doc=(node)
- do
- _n_doc = node
- if node != null then node.parent = self
- end
- redef fun n_kwredef=(node)
- do
- _n_kwredef = node
- if node != null then node.parent = self
- end
- redef fun n_visibility=(node)
- do
- _n_visibility = node
- node.parent = self
- end
- redef fun n_kwmeth=(node)
- do
- _n_kwmeth = node
- node.parent = self
- end
- redef fun n_methid=(node)
- do
- _n_methid = node
- node.parent = self
- end
- redef fun n_signature=(node)
- do
- _n_signature = node
- node.parent = self
- end
-
-
- redef fun visit_all(v: Visitor)
- do
- v.enter_visit(_n_doc)
- v.enter_visit(_n_kwredef)
- v.enter_visit(_n_visibility)
- v.enter_visit(_n_kwmeth)
- v.enter_visit(_n_methid)
- v.enter_visit(_n_signature)
- end
-end
-redef class AExternMethPropdef
- private init empty_init do end
-
- init init_aexternmethpropdef (
- n_doc: nullable ADoc,
- n_kwredef: nullable TKwredef,
- n_visibility: nullable AVisibility,
- n_kwmeth: nullable TKwmeth,
- n_methid: nullable AMethid,
- n_signature: nullable ASignature,
- n_extern: nullable TString,
- n_extern_calls: nullable AExternCalls,
- n_extern_code_block: nullable AExternCodeBlock
- )
- do
- empty_init
- _n_doc = n_doc
- if n_doc != null then n_doc.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_kwmeth = n_kwmeth.as(not null)
- n_kwmeth.parent = self
- _n_methid = n_methid.as(not null)
- n_methid.parent = self
- _n_signature = n_signature.as(not null)
- n_signature.parent = self
- _n_extern = n_extern
- if n_extern != null then n_extern.parent = self
- _n_extern_calls = n_extern_calls
- if n_extern_calls != null then n_extern_calls.parent = self
- _n_extern_code_block = n_extern_code_block
- if n_extern_code_block != null then n_extern_code_block.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_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_kwmeth == old_child then
- n_kwmeth = new_child.as(TKwmeth)
- return
- end
- if _n_methid == old_child then
- n_methid = new_child.as(AMethid)
- return
- end
- if _n_signature == old_child then
- n_signature = new_child.as(ASignature)
- return
- end
- if _n_extern == old_child then
- n_extern = new_child.as(nullable TString)
- return
- end
- if _n_extern_calls == old_child then
- n_extern_calls = new_child.as(nullable AExternCalls)
- return
- end
- if _n_extern_code_block == old_child then
- n_extern_code_block = new_child.as(nullable AExternCodeBlock)
- return
- end
- end
-
- redef fun n_doc=(node)
- do
- _n_doc = node
- if node != null then node.parent = self
- end
- redef fun n_kwredef=(node)
- do
- _n_kwredef = node
- if node != null then node.parent = self
- end
- redef fun n_visibility=(node)
- do
- _n_visibility = node
- node.parent = self
- end
- redef fun n_kwmeth=(node)
- do
- _n_kwmeth = node
- node.parent = self
- end
- redef fun n_methid=(node)
- do
- _n_methid = node
- node.parent = self
- end
- redef fun n_signature=(node)
- do
- _n_signature = node
- node.parent = self
- end
- redef fun n_extern=(node)
- do
- _n_extern = node
- if node != null then node.parent = self
- end
- redef fun n_extern_calls=(node)
- do
- _n_extern_calls = node
- if node != null then node.parent = self
- end
- redef fun n_extern_code_block=(node)
- do
- _n_extern_code_block = node
- if node != null then node.parent = self
- end
-
-
- redef fun visit_all(v: Visitor)
- do
- v.enter_visit(_n_doc)
- v.enter_visit(_n_kwredef)
- v.enter_visit(_n_visibility)
- v.enter_visit(_n_kwmeth)
- v.enter_visit(_n_methid)
- v.enter_visit(_n_signature)
- v.enter_visit(_n_extern)
- v.enter_visit(_n_extern_calls)
- v.enter_visit(_n_extern_code_block)
- end
-end
-redef class AConcreteMethPropdef
- private init empty_init do end
-
- init init_aconcretemethpropdef (
- n_doc: nullable ADoc,
- n_kwredef: nullable TKwredef,
- n_visibility: nullable AVisibility,
- n_kwmeth: nullable TKwmeth,
- n_methid: nullable AMethid,
- n_signature: nullable ASignature,
- n_annotations: nullable AAnnotations,
- n_block: nullable AExpr
- )
- do
- empty_init
- _n_doc = n_doc
- if n_doc != null then n_doc.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_kwmeth = n_kwmeth.as(not null)
- n_kwmeth.parent = self
- _n_methid = n_methid.as(not null)
- n_methid.parent = self
- _n_signature = n_signature.as(not null)
- n_signature.parent = self
- _n_annotations = n_annotations
- if n_annotations != null then n_annotations.parent = self
- _n_block = n_block
- if n_block != null then n_block.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_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_kwmeth == old_child then
- n_kwmeth = new_child.as(TKwmeth)
- return
- end
- if _n_methid == old_child then
- n_methid = new_child.as(AMethid)
- return
- end
- if _n_signature == old_child then
- n_signature = new_child.as(ASignature)
- return
- end
- if _n_annotations == old_child then
- n_annotations = new_child.as(nullable AAnnotations)
- return
- end
- if _n_block == old_child then
- n_block = new_child.as(nullable AExpr)
- return
- end
- end
-
- redef fun n_doc=(node)
- do
- _n_doc = node
- if node != null then node.parent = self
- end
- redef fun n_kwredef=(node)
- do
- _n_kwredef = node
- if node != null then node.parent = self
- end
- redef fun n_visibility=(node)
- do
- _n_visibility = node
- node.parent = self
- end
- redef fun n_kwmeth=(node)
- do
- _n_kwmeth = node
- node.parent = self
- end
- redef fun n_methid=(node)
- do
- _n_methid = node
- node.parent = self
- end
- redef fun n_signature=(node)
- do
- _n_signature = node
- node.parent = self
- end
- redef fun n_annotations=(node)
- do
- _n_annotations = node
- if node != null then node.parent = self
- end
- redef fun n_block=(node)
- do
- _n_block = node
- if node != null then node.parent = self
- end
-
-
- redef fun visit_all(v: Visitor)
- do
- v.enter_visit(_n_doc)
- v.enter_visit(_n_kwredef)
- v.enter_visit(_n_visibility)
- v.enter_visit(_n_kwmeth)
- v.enter_visit(_n_methid)
- v.enter_visit(_n_signature)
- v.enter_visit(_n_annotations)
- v.enter_visit(_n_block)
- end
-end
-redef class AConcreteInitPropdef
- private init empty_init do end
-
- init init_aconcreteinitpropdef (
- n_doc: nullable ADoc,
- n_kwredef: nullable TKwredef,
- n_visibility: nullable AVisibility,
- n_kwinit: nullable TKwinit,
- n_methid: nullable AMethid,
- n_signature: nullable ASignature,
- n_annotations: nullable AAnnotations,
- n_block: nullable AExpr
- )
- do
- empty_init
- _n_doc = n_doc
- if n_doc != null then n_doc.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_kwinit = n_kwinit.as(not null)
- n_kwinit.parent = self
- _n_methid = n_methid
- if n_methid != null then n_methid.parent = self
- _n_signature = n_signature.as(not null)
- n_signature.parent = self
- _n_annotations = n_annotations
- if n_annotations != null then n_annotations.parent = self
- _n_block = n_block
- if n_block != null then n_block.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_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_kwinit == old_child then
- n_kwinit = new_child.as(TKwinit)
- return
- end
- if _n_methid == old_child then
- n_methid = new_child.as(nullable AMethid)