Defining_Identifier => Acc_Type,
Type_Definition =>
Make_Access_To_Object_Definition (Loc,
- All_Present => True,
- Null_Exclusion_Present => False,
- Subtype_Indication =>
+ All_Present => True,
+ Subtype_Indication =>
New_Occurrence_Of (Rec_Type, Loc)))));
Set_Handled_Statement_Sequence (Body_Node,
Defining_Identifier => Def_Id,
Type_Definition =>
Make_Access_To_Object_Definition (Loc,
- All_Present => True,
- Null_Exclusion_Present => False,
- Constant_Present =>
+ All_Present => True,
+ Constant_Present =>
Is_Access_Constant (PtrT),
- Subtype_Indication =>
+ Subtype_Indication =>
New_Occurrence_Of (Etype (Exp), Loc))));
-- Inherit the allocation-related attributes from the original
Defining_Identifier => Make_Temporary (Loc, 'T'),
Type_Definition =>
Make_Access_To_Object_Definition (Loc,
- All_Present => True,
- Null_Exclusion_Present => False,
- Subtype_Indication =>
+ All_Present => True,
+ Subtype_Indication =>
New_Occurrence_Of (Desig_Typ, Loc)));
Stats := New_List (
Append_To (Formals,
Make_Parameter_Specification (Loc,
- Defining_Identifier =>
+ Defining_Identifier =>
Make_Defining_Identifier (Loc, Chars (Obj_Id)),
- In_Present => False,
- Out_Present => not Constant_Present (Obj_Decl),
- Null_Exclusion_Present => False,
- Parameter_Type => Typ_Def));
+ In_Present => False,
+ Out_Present => not Constant_Present (Obj_Decl),
+ Parameter_Type => Typ_Def));
end Build_Return_Object_Formal;
--------------------------------------