-- append the full view's original parent to the interface list,
-- recursively call Derived_Type_Definition on the full type, and
-- return True. If a match is not found, return False.
- -- ??? This seems broken in the case of generic packages.
------------------------
-- Reorder_Interfaces --
function Reorder_Interfaces return Boolean is
Iface : Node_Id;
New_Iface : Node_Id;
+
begin
Iface := First (Interface_List (Def));
while Present (Iface) loop
New_Iface :=
Make_Identifier (Sloc (N), Chars (Parent_Type));
- Append (New_Iface, Interface_List (Def));
+ Rewrite (Iface, New_Iface);
-- Analyze the transformed code