+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_id)
+ end
+end
+redef class AVarAssignExpr
+ init init_avarassignexpr (
+ n_id: nullable TId,
+ n_assign: nullable TAssign,
+ n_value: nullable AExpr
+ )
+ do
+ _n_id = n_id.as(not null)
+ n_id.parent = self
+ _n_assign = n_assign.as(not null)
+ n_assign.parent = self
+ _n_value = n_value.as(not null)
+ n_value.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_id == old_child then
+ n_id = new_child.as(TId)
+ return
+ end
+ if _n_assign == old_child then
+ n_assign = new_child.as(TAssign)
+ return
+ end
+ if _n_value == old_child then
+ n_value = new_child.as(AExpr)
+ return
+ end
+ end
+
+ redef fun n_id=(node)
+ do
+ _n_id = node
+ node.parent = self
+ end
+ redef fun n_assign=(node)
+ do
+ _n_assign = node
+ node.parent = self
+ end
+ redef fun n_value=(node)
+ do
+ _n_value = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign)
+ v.enter_visit(_n_value)
+ end
+end
+redef class AVarReassignExpr
+ init init_avarreassignexpr (
+ n_id: nullable TId,
+ n_assign_op: nullable AAssignOp,
+ n_value: nullable AExpr
+ )
+ do
+ _n_id = n_id.as(not null)
+ n_id.parent = self
+ _n_assign_op = n_assign_op.as(not null)
+ n_assign_op.parent = self
+ _n_value = n_value.as(not null)
+ n_value.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_id == old_child then
+ n_id = new_child.as(TId)
+ return
+ end
+ if _n_assign_op == old_child then
+ n_assign_op = new_child.as(AAssignOp)
+ return
+ end
+ if _n_value == old_child then
+ n_value = new_child.as(AExpr)
+ return
+ end
+ end
+
+ redef fun n_id=(node)
+ do
+ _n_id = node
+ node.parent = self
+ end
+ redef fun n_assign_op=(node)
+ do
+ _n_assign_op = node
+ node.parent = self
+ end
+ redef fun n_value=(node)
+ do
+ _n_value = node
+ node.parent = self
+ end
+
+
+ redef fun visit_all(v: Visitor)
+ do
+ v.enter_visit(_n_id)
+ v.enter_visit(_n_assign_op)
+ v.enter_visit(_n_value)
+ end
+end
+redef class ARangeExpr
+ init init_arangeexpr (
+ n_expr: nullable AExpr,
+ n_expr2: nullable AExpr,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_expr = n_expr.as(not null)
+ n_expr.parent = self
+ _n_expr2 = n_expr2.as(not null)
+ n_expr2.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_expr == old_child then
+ n_expr = new_child.as(AExpr)
+ return
+ end
+ if _n_expr2 == old_child then
+ n_expr2 = new_child.as(AExpr)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_expr=(node)
+ do
+ _n_expr = node
+ node.parent = self
+ end
+ redef fun n_expr2=(node)
+ do
+ _n_expr2 = 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_expr)
+ v.enter_visit(_n_expr2)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ACrangeExpr
+ init init_acrangeexpr (
+ n_obra: nullable TObra,
+ n_expr: nullable AExpr,
+ n_dotdot: nullable TDotdot,
+ n_expr2: nullable AExpr,
+ n_cbra: nullable TCbra,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_obra = n_obra.as(not null)
+ n_obra.parent = self
+ _n_expr = n_expr.as(not null)
+ n_expr.parent = self
+ _n_dotdot = n_dotdot.as(not null)
+ n_dotdot.parent = self
+ _n_expr2 = n_expr2.as(not null)
+ n_expr2.parent = self
+ _n_cbra = n_cbra.as(not null)
+ n_cbra.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_obra == old_child then
+ n_obra = new_child.as(TObra)
+ return
+ end
+ if _n_expr == old_child then
+ n_expr = new_child.as(AExpr)
+ return
+ end
+ if _n_dotdot == old_child then
+ n_dotdot = new_child.as(TDotdot)
+ return
+ end
+ if _n_expr2 == old_child then
+ n_expr2 = new_child.as(AExpr)
+ return
+ end
+ if _n_cbra == old_child then
+ n_cbra = new_child.as(TCbra)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_obra=(node)
+ do
+ _n_obra = node
+ node.parent = self
+ end
+ redef fun n_expr=(node)
+ do
+ _n_expr = node
+ node.parent = self
+ end
+ redef fun n_dotdot=(node)
+ do
+ _n_dotdot = node
+ node.parent = self
+ end
+ redef fun n_expr2=(node)
+ do
+ _n_expr2 = node
+ node.parent = self
+ end
+ redef fun n_cbra=(node)
+ do
+ _n_cbra = 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_obra)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_dotdot)
+ v.enter_visit(_n_expr2)
+ v.enter_visit(_n_cbra)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AOrangeExpr
+ init init_aorangeexpr (
+ n_obra: nullable TObra,
+ n_expr: nullable AExpr,
+ n_dotdot: nullable TDotdot,
+ n_expr2: nullable AExpr,
+ n_cbra: nullable TObra,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_obra = n_obra.as(not null)
+ n_obra.parent = self
+ _n_expr = n_expr.as(not null)
+ n_expr.parent = self
+ _n_dotdot = n_dotdot.as(not null)
+ n_dotdot.parent = self
+ _n_expr2 = n_expr2.as(not null)
+ n_expr2.parent = self
+ _n_cbra = n_cbra.as(not null)
+ n_cbra.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_obra == old_child then
+ n_obra = new_child.as(TObra)
+ return
+ end
+ if _n_expr == old_child then
+ n_expr = new_child.as(AExpr)
+ return
+ end
+ if _n_dotdot == old_child then
+ n_dotdot = new_child.as(TDotdot)
+ return
+ end
+ if _n_expr2 == old_child then
+ n_expr2 = new_child.as(AExpr)
+ return
+ end
+ if _n_cbra == old_child then
+ n_cbra = new_child.as(TObra)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_obra=(node)
+ do
+ _n_obra = node
+ node.parent = self
+ end
+ redef fun n_expr=(node)
+ do
+ _n_expr = node
+ node.parent = self
+ end
+ redef fun n_dotdot=(node)
+ do
+ _n_dotdot = node
+ node.parent = self
+ end
+ redef fun n_expr2=(node)
+ do
+ _n_expr2 = node
+ node.parent = self
+ end
+ redef fun n_cbra=(node)
+ do
+ _n_cbra = 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_obra)
+ v.enter_visit(_n_expr)
+ v.enter_visit(_n_dotdot)
+ v.enter_visit(_n_expr2)
+ v.enter_visit(_n_cbra)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AArrayExpr
+ init init_aarrayexpr (
+ n_obra: nullable TObra,
+ n_exprs: Collection[Object], # Should be Collection[AExpr]
+ n_type: nullable AType,
+ n_cbra: nullable TCbra,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_obra = n_obra.as(not null)
+ n_obra.parent = self
+ self.n_exprs.unsafe_add_all(n_exprs)
+ _n_type = n_type
+ if n_type != null then n_type.parent = self
+ _n_cbra = n_cbra.as(not null)
+ n_cbra.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_obra == old_child then
+ n_obra = new_child.as(TObra)
+ return
+ end
+ if n_exprs.replace_child(old_child, new_child) then return
+ if _n_type == old_child then
+ n_type = new_child.as(nullable AType)
+ return
+ end
+ if _n_cbra == old_child then
+ n_cbra = new_child.as(TCbra)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_obra=(node)
+ do
+ _n_obra = node
+ node.parent = self
+ end
+ redef fun n_type=(node)
+ do
+ _n_type = node
+ if node != null then node.parent = self
+ end
+ redef fun n_cbra=(node)
+ do
+ _n_cbra = 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_obra)
+ n_exprs.visit_all(v)
+ v.enter_visit(_n_type)
+ v.enter_visit(_n_cbra)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ASelfExpr
+ init init_aselfexpr (
+ n_kwself: nullable TKwself,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_kwself = n_kwself.as(not null)
+ n_kwself.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwself == old_child then
+ n_kwself = new_child.as(TKwself)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_kwself=(node)
+ do
+ _n_kwself = 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_kwself)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AImplicitSelfExpr
+ init init_aimplicitselfexpr
+ do
+ 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 ATrueExpr
+ init init_atrueexpr (
+ n_kwtrue: nullable TKwtrue,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_kwtrue = n_kwtrue.as(not null)
+ n_kwtrue.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwtrue == old_child then
+ n_kwtrue = new_child.as(TKwtrue)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_kwtrue=(node)
+ do
+ _n_kwtrue = 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_kwtrue)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AFalseExpr
+ init init_afalseexpr (
+ n_kwfalse: nullable TKwfalse,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_kwfalse = n_kwfalse.as(not null)
+ n_kwfalse.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwfalse == old_child then
+ n_kwfalse = new_child.as(TKwfalse)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_kwfalse=(node)
+ do
+ _n_kwfalse = 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_kwfalse)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ANullExpr
+ init init_anullexpr (
+ n_kwnull: nullable TKwnull,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_kwnull = n_kwnull.as(not null)
+ n_kwnull.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_kwnull == old_child then
+ n_kwnull = new_child.as(TKwnull)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_kwnull=(node)
+ do
+ _n_kwnull = 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_kwnull)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ADecIntExpr
+ init init_adecintexpr (
+ n_number: nullable TNumber,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_number = n_number.as(not null)
+ n_number.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_number == old_child then
+ n_number = new_child.as(TNumber)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_number=(node)
+ do
+ _n_number = 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_number)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AHexIntExpr
+ init init_ahexintexpr (
+ n_hex_number: nullable THexNumber,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_hex_number = n_hex_number.as(not null)
+ n_hex_number.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_hex_number == old_child then
+ n_hex_number = new_child.as(THexNumber)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_hex_number=(node)
+ do
+ _n_hex_number = 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_hex_number)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ABinIntExpr
+ init init_abinintexpr (
+ n_bin_number: nullable TBinNumber,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_bin_number = n_bin_number.as(not null)
+ n_bin_number.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_bin_number == old_child then
+ n_bin_number = new_child.as(TBinNumber)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_bin_number=(node)
+ do
+ _n_bin_number = 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_bin_number)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AOctIntExpr
+ init init_aoctintexpr (
+ n_oct_number: nullable TOctNumber,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_oct_number = n_oct_number.as(not null)
+ n_oct_number.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_oct_number == old_child then
+ n_oct_number = new_child.as(TOctNumber)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_oct_number=(node)
+ do
+ _n_oct_number = 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_oct_number)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ADecByteExpr
+ init init_adecbyteexpr (
+ n_bytenum: nullable TBytenum,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_bytenum = n_bytenum.as(not null)
+ n_bytenum.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_bytenum == old_child then
+ n_bytenum = new_child.as(TBytenum)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_bytenum=(node)
+ do
+ _n_bytenum = 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_bytenum)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AHexByteExpr
+ init init_ahexbyteexpr (
+ n_hex_bytenum: nullable THexBytenum,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_hex_bytenum = n_hex_bytenum.as(not null)
+ n_hex_bytenum.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_hex_bytenum == old_child then
+ n_hex_bytenum = new_child.as(THexBytenum)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_hex_bytenum=(node)
+ do
+ _n_hex_bytenum = 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_hex_bytenum)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class ABinByteExpr
+ init init_abinbyteexpr (
+ n_bin_bytenum: nullable TBinBytenum,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_bin_bytenum = n_bin_bytenum.as(not null)
+ n_bin_bytenum.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_bin_bytenum == old_child then
+ n_bin_bytenum = new_child.as(TBinBytenum)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end
+
+ redef fun n_bin_bytenum=(node)
+ do
+ _n_bin_bytenum = 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_bin_bytenum)
+ v.enter_visit(_n_annotations)
+ end
+end
+redef class AOctByteExpr
+ init init_aoctbyteexpr (
+ n_oct_bytenum: nullable TOctBytenum,
+ n_annotations: nullable AAnnotations
+ )
+ do
+ _n_oct_bytenum = n_oct_bytenum.as(not null)
+ n_oct_bytenum.parent = self
+ _n_annotations = n_annotations
+ if n_annotations != null then n_annotations.parent = self
+ end
+
+ redef fun replace_child(old_child: ANode, new_child: nullable ANode)
+ do
+ if _n_oct_bytenum == old_child then
+ n_oct_bytenum = new_child.as(TOctBytenum)
+ return
+ end
+ if _n_annotations == old_child then
+ n_annotations = new_child.as(nullable AAnnotations)
+ return
+ end
+ end