-- Save the SPARK_Mode-related data to restore on exit
Skip_Assert_Exprs : constant Boolean :=
- Ekind_In (Subp_Id, E_Entry, E_Entry_Family)
- and then not GNATprove_Mode;
+ Is_Entry (Subp_Id) and then not GNATprove_Mode;
Depends : Node_Id := Empty;
Global : Node_Id := Empty;
function Contract_Wrapper (Id : E) return E is
begin
- pragma Assert (Ekind_In (Id, E_Entry, E_Entry_Family));
+ pragma Assert (Is_Entry (Id));
return Node25 (Id);
end Contract_Wrapper;
function Has_Out_Or_In_Out_Parameter (Id : E) return B is
begin
pragma Assert
- (Ekind_In (Id, E_Entry, E_Entry_Family)
- or else Is_Subprogram_Or_Generic_Subprogram (Id));
+ (Is_Entry (Id) or else Is_Subprogram_Or_Generic_Subprogram (Id));
return Flag110 (Id);
end Has_Out_Or_In_Out_Parameter;
procedure Set_Contract_Wrapper (Id : E; V : E) is
begin
- pragma Assert (Ekind_In (Id, E_Entry, E_Entry_Family));
+ pragma Assert (Is_Entry (Id));
Set_Node25 (Id, V);
end Set_Contract_Wrapper;
then
if Is_Task_Type (Prefix_Type)
and then Present (Entity (Sel))
- and then Ekind_In (Entity (Sel), E_Entry, E_Entry_Family)
+ and then Is_Entry (Entity (Sel))
then
null;
-- point of the call.
if Out_Present (Spec) then
- if Ekind_In (Id, E_Entry, E_Entry_Family)
+ if Is_Entry (Id)
or else Is_Subprogram_Or_Generic_Subprogram (Id)
then
Set_Has_Out_Or_In_Out_Parameter (Id, True);
-- can be an arbitrary expression with special resolution rules.
elsif Nkind_In (Subp, N_Selected_Component, N_Indexed_Component)
- or else (Is_Entity_Name (Subp)
- and then Ekind_In (Entity (Subp), E_Entry, E_Entry_Family))
+ or else (Is_Entity_Name (Subp) and then Is_Entry (Entity (Subp)))
then
Resolve_Entry_Call (N, Typ);
end;
end if;
- if Ekind_In (Nam, E_Entry, E_Entry_Family)
+ if Is_Entry (Nam)
and then Present (Contract_Wrapper (Nam))
and then Current_Scope /= Contract_Wrapper (Nam)
then
Generate_Reference (Nam, Entry_Name, 's');
- if Ekind_In (Nam, E_Entry, E_Entry_Family) then
+ if Is_Entry (Nam) then
Check_Potentially_Blocking_Operation (N);
end if;
if Msg_Index <= Msg_Last - 10
and then Msg (Msg_Index .. Msg_Index + 9) = "subprogram"
then
- if Ekind_In (Id, E_Entry, E_Entry_Family) then
+ if Is_Entry (Id) then
Res (Res_Index .. Res_Index + 4) := "entry";
Res_Index := Res_Index + 5;
function Is_Entry_Body (Id : Entity_Id) return Boolean is
begin
return
- Ekind_In (Id, E_Entry, E_Entry_Family)
+ Is_Entry (Id)
and then Nkind (Unit_Declaration_Node (Id)) = N_Entry_Body;
end Is_Entry_Body;
function Is_Entry_Declaration (Id : Entity_Id) return Boolean is
begin
return
- Ekind_In (Id, E_Entry, E_Entry_Family)
+ Is_Entry (Id)
and then Nkind (Unit_Declaration_Node (Id)) = N_Entry_Declaration;
end Is_Entry_Declaration;