(RTE (RE_Release_Buffer), Loc),
Parameter_Associations =>
New_List (New_Occurrence_Of (Strm, Loc))),
+
Make_Simple_Return_Statement (Loc,
Expression => New_Occurrence_Of (Res, Loc))))));
- else
+ else
-- declare
-- Res : T;
-- begin
Prefix =>
New_Occurrence_Of (Strm, Loc),
Attribute_Name => Name_Access),
- New_Occurrence_Of (Res, Loc))),
+ New_Occurrence_Of (Res, Loc))),
+
Make_Procedure_Call_Statement (Loc,
Name =>
New_Occurrence_Of
(RTE (RE_Release_Buffer), Loc),
Parameter_Associations =>
New_List (New_Occurrence_Of (Strm, Loc))),
+
Make_Simple_Return_Statement (Loc,
Expression => New_Occurrence_Of (Res, Loc))))));
-
end if;
end;
end if;
Set_Etype (Nam, It.Typ);
else
-
- -- Nnamed access type in the context of a renaming
+ -- Named access type in the context of a renaming
-- declaration with an access definition. Remove
-- inapplicable candidate.