-- Do not evaluate the expression when there are no actions because the
-- expression_with_actions node will be replaced by the expression.
- elsif No (Acts) or else Is_Empty_List (Acts) then
+ elsif Is_Empty_List (Acts) then
null;
-- Force the evaluation of the expression by capturing its value in a
-- entire if statement by the sequence of else statements.
if No (Elsif_Parts (N)) then
- if No (Else_Statements (N))
- or else Is_Empty_List (Else_Statements (N))
- then
+ if Is_Empty_List (Else_Statements (N)) then
Rewrite (N,
Make_Null_Statement (Sloc (N)));
else
-- Start of processing for Process_Declarations
begin
- if No (Decls) or else Is_Empty_List (Decls) then
+ if Is_Empty_List (Decls) then
return;
end if;
Wrapped_Node : Node_Id := Empty;
begin
- if No (Ins_Actions) or else Is_Empty_List (Ins_Actions) then
+ if Is_Empty_List (Ins_Actions) then
return;
end if;
-- Nothing to do when the pragma lacks arguments, in which case it
-- is illegal.
- elsif No (Args) or else Is_Empty_List (Args) then
+ elsif Is_Empty_List (Args) then
return False;
end if;
Typ : Entity_Id;
begin
- if No (L) or else Is_Empty_List (L) then
- return False;
- end if;
-
Decl := First (L);
while Present (Decl) loop
elsif Present (Vis_Decls)
and then List_Containing (FNode) = Vis_Decls
- and then (No (Prv_Decls) or else Is_Empty_List (Prv_Decls))
+ and then Is_Empty_List (Prv_Decls)
then
null;