if Comes_From_Source (E)
and then Is_Object (E)
and then not Is_Entry_Formal (E)
+ and then not Is_Formal_Object (E)
and then Ekind (E) /= E_Component
and then Ekind (E) /= E_Discriminant
- and then Ekind (E) /= E_Generic_In_Parameter
- and then Ekind (E) /= E_Generic_In_Out_Parameter
then
Append_To (A,
Make_Pragma_Argument_Association (Loc,
elsif Ekind (Item_Id) = E_Constant then
Add_Str_To_Name_Buffer ("constant");
- elsif Ekind (Item_Id) in
- E_Generic_In_Out_Parameter | E_Generic_In_Parameter
- then
+ elsif Is_Formal_Object (Item_Id) then
Add_Str_To_Name_Buffer ("generic parameter");
elsif Is_Formal (Item_Id) then
-- it is allowed for an initialization item to depend
-- on an input item.
- if Ekind (Input_Id) in E_Generic_In_Out_Parameter
- | E_Generic_In_Parameter
- then
+ if Is_Formal_Object (Input_Id) then
null;
elsif Ekind (Input_Id) in E_Constant | E_Variable