-- Access_Disp_Table_Elab_Flag Node30
-- Anonymous_Object Node30
-- Corresponding_Equality Node30
+ -- Hidden_In_Formal_Instance Elist30
-- Last_Aggregate_Assignment Node30
-- Static_Initialization Node30
- -- Hidden_In_Formal_Instance Elist30
+ -- Activation_Record_Component Node31
-- Derived_Type_Link Node31
-- Thunk_Entity Node31
- -- Activation_Record_Component Node31
-- Corresponding_Function Node32
-- Corresponding_Procedure Node32
Constant_Present => True,
Object_Definition =>
New_Occurrence_Of (RTE (RE_Address), Loc),
- Expression =>
+ Expression =>
Make_Attribute_Reference (Loc,
Prefix =>
Make_Selected_Component (Loc,
end if;
end if;
- -- Generate: Expanded_Name : constant String := "";
+ -- Generate:
+ -- Expanded_Name : constant String := "";
if Global_Discard_Names or else Discard_Names (Typ) then
Append_To (Result,
if Expanded_Name /= External_Tag_Name then
- -- Generate: External_Tag_Name : constant String := "";
+ -- Generate:
+ -- External_Tag_Name : constant String := "";
if Present (No_Tagged_Streams_Pragma (Typ)) then
Append_To (Result,
Make_Object_Declaration (Loc,
Defining_Identifier => External_Tag_Name,
Constant_Present => True,
- Object_Definition => New_Occurrence_Of
- (Standard_String, Loc),
- Expression =>
- Make_String_Literal (Loc, "")));
+ Object_Definition =>
+ New_Occurrence_Of (Standard_String, Loc),
+ Expression => Make_String_Literal (Loc, "")));
-- Generate:
- -- External_Tag_Name : constant String := full_qualified_name (typ);
+ -- External_Tag_Name : constant String :=
+ -- full_qualified_name (typ);
else
Append_To (Result,
Make_Object_Declaration (Loc,
Defining_Identifier => External_Tag_Name,
Constant_Present => True,
- Object_Definition => New_Occurrence_Of
- (Standard_String, Loc),
- Expression =>
+ Object_Definition =>
+ New_Occurrence_Of (Standard_String, Loc),
+ Expression =>
Make_String_Literal (Loc,
Fully_Qualified_Name_String (First_Subtype (Typ)))));
end if;
New_Node :=
Unchecked_Convert_To (RTE (RE_Cstring_Ptr),
Make_Attribute_Reference (Loc,
- Prefix => New_Occurrence_Of
- (External_Tag_Name, Loc),
+ Prefix => New_Occurrence_Of (External_Tag_Name, Loc),
Attribute_Name => Name_Address));
-- External_Tag of a local tagged type
New_Node :=
Unchecked_Convert_To (RTE (RE_Cstring_Ptr),
Make_Attribute_Reference (Loc,
- Prefix => New_Occurrence_Of
- (External_Tag_Name, Loc),
+ Prefix =>
+ New_Occurrence_Of (External_Tag_Name, Loc),
Attribute_Name => Name_Address));
else
Old_Val := Strval (Expr_Value_S (Expression (Def)));
then
Result :=
Search_Derivation_Levels (Ti, Stored_Constraint (Ti), True);
+
else
declare
Td : Entity_Id := Etype (Ti);
begin
-
-- If the parent type is private, the full view may include
- -- renamed discriminants, and it is those stored values
- -- that may be needed (the partial view never has more
- -- information than the full view).
+ -- renamed discriminants, and it is those stored values that
+ -- may be needed (the partial view never has more information
+ -- than the full view).
if Is_Private_Type (Td) and then Present (Full_View (Td)) then
Td := Full_View (Td);
elsif Is_Formal_Subprogram (Old_Id)
or else Is_Formal_Subprogram (New_Id)
or else (Is_Subprogram (New_Id)
- and then Present (Alias (New_Id))
- and then Is_Formal_Subprogram (Alias (New_Id)))
+ and then Present (Alias (New_Id))
+ and then Is_Formal_Subprogram (Alias (New_Id)))
then
Conformance_Error
- ("\formal subprograms are not subtype conformant "
- & "(RM 6.3.1 (17/3))");
+ ("\formal subprograms are not subtype conformant "
+ & "(RM 6.3.1 (17/3))");
end if;
end if;