-- incomplete type, and carries the corresponding attributes.
Mutate_Ekind (Ent, E_Incomplete_Type);
+ Set_Is_Not_Self_Hidden (Ent);
Set_Etype (Ent, Ent);
Set_Full_View (Ent, Empty);
Set_Is_First_Subtype (Ent);
Mutate_Ekind (Shadow, Ekind (Ent));
end if;
- Set_Is_Internal (Shadow);
+ Set_Is_Not_Self_Hidden (Shadow);
+ Set_Is_Internal (Shadow);
Set_From_Limited_With (Shadow);
-- Add the new shadow entity to the limited view of the package
procedure Decorate_State (Ent : Entity_Id; Scop : Entity_Id) is
begin
Mutate_Ekind (Ent, E_Abstract_State);
+ Set_Is_Not_Self_Hidden (Ent);
Set_Etype (Ent, Standard_Void_Type);
Set_Scope (Ent, Scop);
Set_Encapsulating_State (Ent, Empty);
raise Program_Error;
end case;
- -- The withed unit may not be analyzed, but the with calause itself
+ -- The withed unit may not be analyzed, but the with clause itself
-- must be minimally decorated. This ensures that the checks on unused
-- with clauses also process limieted withs.
Mutate_Ekind (Pack, E_Package);
+ Set_Is_Not_Self_Hidden (Pack);
Set_Etype (Pack, Standard_Void_Type);
if Is_Entity_Name (Nam) then
end if;
Mutate_Ekind (T, E_Protected_Type);
+ Set_Is_Not_Self_Hidden (T);
Set_Is_First_Subtype (T);
Reinit_Size_Align (T);
Set_Etype (T, T);
Enter_Name (Obj_Id);
Mutate_Ekind (Obj_Id, E_Variable);
+ Set_Is_Not_Self_Hidden (Obj_Id);
Set_Etype (Obj_Id, Typ);
Set_SPARK_Pragma (Obj_Id, SPARK_Mode_Pragma);
Set_SPARK_Pragma_Inherited (Obj_Id);
Enter_Name (Obj_Id);
Mutate_Ekind (Obj_Id, E_Variable);
+ Set_Is_Not_Self_Hidden (Obj_Id);
Set_Etype (Obj_Id, Typ);
Set_SPARK_Pragma (Obj_Id, SPARK_Mode_Pragma);
Set_SPARK_Pragma_Inherited (Obj_Id);
end if;
Mutate_Ekind (T, E_Task_Type);
+ Set_Is_Not_Self_Hidden (T);
Set_Is_First_Subtype (T, True);
Set_Has_Task (T, True);
Reinit_Size_Align (T);