function Is_Null_Record_Definition (Record_Def : Node_Id) return Boolean is
Item : Node_Id;
begin
- -- Testing Null_Present is just an optimization, not required.
+ -- Testing Null_Present is just an optimization, not required
if Null_Present (Record_Def) then
return True;
elsif Present (Variant_Part (Component_List (Record_Def))) then
return False;
- elsif No (Component_List (Record_Def)) then
- return True;
end if;
Item := First_Non_Pragma (Component_Items (Component_List (Record_Def)));
while Present (Item) loop
- if Nkind (Item) = N_Component_Declaration
- and then Is_Internal_Name (Chars (Defining_Identifier (Item)))
- then
+ pragma Assert (Nkind (Item) = N_Component_Declaration);
+ if Is_Internal_Name (Chars (Defining_Identifier (Item))) then
null;
else
return False;