Null_Body :=
Make_Subprogram_Body (Loc,
- Specification => New_Copy_Tree (Spec),
- Declarations => New_List,
+ Specification => New_Copy_Tree (Spec),
+ Declarations => New_List,
Handled_Statement_Sequence =>
Make_Handled_Sequence_Of_Statements (Loc,
Statements => New_List (Null_Stmt)));
return;
else
- -- Resolve the types of the formals now, because the freeze point
- -- may appear in a different context, e.g. an instantiation.
+ -- Resolve the types of the formals now, because the freeze point may
+ -- appear in a different context, e.g. an instantiation.
Form := First (Parameter_Specifications (Specification (Null_Body)));
while Present (Form) loop
if Nkind (Parameter_Type (Form)) /= N_Access_Definition then
Find_Type (Parameter_Type (Form));
- elsif
- No (Access_To_Subprogram_Definition (Parameter_Type (Form)))
+ elsif No (Access_To_Subprogram_Definition
+ (Parameter_Type (Form)))
then
Find_Type (Subtype_Mark (Parameter_Type (Form)));
- else
- -- The case of a null procedure with a formal that is an
- -- access_to_subprogram type, and that is used as an actual
- -- in an instantiation is left to the enthusiastic reader.
+ -- The case of a null procedure with a formal that is an
+ -- access-to-subprogram type, and that is used as an actual
+ -- in an instantiation is left to the enthusiastic reader.
+ else
null;
end if;
end loop;
end if;
- -- If there are previous overloadable entities with the same name,
- -- check whether any of them is completed by the null procedure.
+ -- If there are previous overloadable entities with the same name, check
+ -- whether any of them is completed by the null procedure.
if Present (Prev) and then Is_Overloadable (Prev) then
Designator := Analyze_Subprogram_Specification (Spec);