New_Nodes := Make_DT (Base_Typ, N);
end if;
- if not Is_Empty_List (New_Nodes) then
- Insert_List_Before (N, New_Nodes);
- end if;
+ Insert_List_Before (N, New_Nodes);
end;
end if;
Set_Sloc (Parent (N), Loc);
end if;
- -- Make sure Then_Actions and Else_Actions are appropriately moved
- -- to the new if statement.
+ -- Move Then_Actions and Else_Actions, if any, to the new if statement
- if Present (Then_Actions (N)) then
- Insert_List_Before
- (First (Then_Statements (New_If)), Then_Actions (N));
- end if;
-
- if Present (Else_Actions (N)) then
- Insert_List_Before
- (First (Else_Statements (New_If)), Else_Actions (N));
- end if;
+ Insert_List_Before (First (Then_Statements (New_If)), Then_Actions (N));
+ Insert_List_Before (First (Else_Statements (New_If)), Else_Actions (N));
Insert_Action (N, Decl);
Insert_Action (N, New_If);
Set_Else_Statements (N, New_List (New_If));
- if Present (Condition_Actions (E)) then
- Insert_List_Before (New_If, Condition_Actions (E));
- end if;
+ Insert_List_Before (New_If, Condition_Actions (E));
Remove (E);
-- Condition_Actions of the iterator. Insert them now at the head of
-- the loop.
- if Present (Condition_Actions (Isc)) then
- Insert_List_Before (N, Condition_Actions (Isc));
- end if;
+ Insert_List_Before (N, Condition_Actions (Isc));
Rewrite (N, New_Loop);
Analyze (N);
-- procedure for this corresponding record type and we won't get it
-- in time if we don't freeze now.
- declare
- L : constant List_Id := Freeze_Entity (Rec_Ent, N);
- begin
- if Is_Non_Empty_List (L) then
- Insert_List_After (Body_Decl, L);
- end if;
- end;
+ Insert_List_After (Body_Decl, List => Freeze_Entity (Rec_Ent, N));
end if;
-- Complete the expansion of access types to the current task type, if
procedure Freeze_All_Ent (From : Entity_Id; After : in out Node_Id) is
E : Entity_Id;
Flist : List_Id;
- Lastn : Node_Id;
procedure Process_Flist;
-- If freeze nodes are present, insert and analyze, and reset cursor
-------------------
procedure Process_Flist is
+ Lastn : Node_Id;
begin
if Is_Non_Empty_List (Flist) then
Lastn := Next (After);