1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 pragma Style_Checks (All_Checks);
33 -- Turn off subprogram ordering, not used for this unit
35 with Atree; use Atree;
36 with Nlists; use Nlists;
37 with Output; use Output;
38 with Sinfo; use Sinfo;
39 with Stand; use Stand;
43 use Atree.Unchecked_Access;
44 -- This is one of the packages that is allowed direct untyped access to
45 -- the fields in a node, since it provides the next level abstraction
46 -- which incorporates appropriate checks.
48 ----------------------------------------------
49 -- Usage of Fields in Defining Entity Nodes --
50 ----------------------------------------------
52 -- Four of these fields are defined in Sinfo, since they in are the base
53 -- part of the node. The access routines for these four fields and the
54 -- corresponding set procedures are defined in Sinfo. These fields are
55 -- present in all entities. Note that Homonym is also in the base part of
56 -- the node, but has access routines that are more properly part of Einfo,
57 -- which is why they are defined here.
64 -- Remaining fields are present only in extended nodes (i.e. entities)
66 -- The following fields are present in all entities
69 -- First_Rep_Item Node6
72 -- The usage of other fields (and the entity kinds to which it applies)
73 -- depends on the particular field (see Einfo spec for details).
75 -- Associated_Node_For_Itype Node8
76 -- Dependent_Instances Elist8
77 -- Hiding_Loop_Variable Node8
78 -- Mechanism Uint8 (but returns Mechanism_Type)
79 -- Normalized_First_Bit Uint8
80 -- Postcondition_Proc Node8
81 -- Return_Applies_To Node8
82 -- First_Exit_Statement Node8
84 -- Class_Wide_Type Node9
85 -- Current_Value Node9
88 -- Discriminal_Link Node10
89 -- Handler_Records List10
90 -- Normalized_Position_Max Uint10
91 -- Referenced_Object Node10
93 -- Component_Bit_Offset Uint11
95 -- Entry_Component Node11
96 -- Enumeration_Pos Uint11
97 -- Generic_Homonym Node11
98 -- Protected_Body_Subprogram Node11
101 -- Barrier_Function Node12
102 -- Enumeration_Rep Uint12
104 -- Next_Inlined_Subprogram Node12
106 -- Corresponding_Equality Node13
107 -- Component_Clause Node13
108 -- Elaboration_Entity Node13
109 -- Extra_Accessibility Node13
113 -- First_Optional_Parameter Node14
114 -- Normalized_Position Uint14
115 -- Shadow_Entities List14
117 -- Discriminant_Number Uint15
118 -- DT_Position Uint15
119 -- DT_Entry_Count Uint15
120 -- Entry_Bodies_Array Node15
121 -- Entry_Parameters_Type Node15
122 -- Extra_Formal Node15
123 -- Lit_Indexes Node15
124 -- Primitive_Operations Elist15
125 -- Related_Instance Node15
126 -- Scale_Value Uint15
127 -- Storage_Size_Variable Node15
128 -- String_Literal_Low_Bound Node15
130 -- Access_Disp_Table Elist16
131 -- Cloned_Subtype Node16
133 -- Entry_Formal Node16
134 -- First_Private_Entity Node16
135 -- Lit_Strings Node16
136 -- String_Literal_Length Uint16
137 -- Unset_Reference Node16
139 -- Actual_Subtype Node17
140 -- Digits_Value Uint17
141 -- Discriminal Node17
142 -- First_Entity Node17
143 -- First_Index Node17
144 -- First_Literal Node17
147 -- Non_Limited_View Node17
151 -- Corresponding_Concurrent_Type Node18
152 -- Corresponding_Record_Type Node18
153 -- Delta_Value Ureal18
154 -- Enclosing_Scope Node18
155 -- Equivalent_Type Node18
156 -- Private_Dependents Elist18
157 -- Renamed_Entity Node18
158 -- Renamed_Object Node18
160 -- Body_Entity Node19
161 -- Corresponding_Discriminant Node19
162 -- Finalization_Chain_Entity Node19
163 -- Parent_Subtype Node19
164 -- Related_Array_Object Node19
165 -- Size_Check_Code Node19
166 -- Spec_Entity Node19
167 -- Underlying_Full_View Node19
169 -- Component_Type Node20
170 -- Default_Value Node20
171 -- Directly_Designated_Type Node20
172 -- Discriminant_Checking_Func Node20
173 -- Discriminant_Default_Value Node20
174 -- Last_Entity Node20
175 -- Prival_Link Node20
176 -- Register_Exception_Call Node20
177 -- Scalar_Range Node20
179 -- Accept_Address Elist21
180 -- Default_Expr_Function Node21
181 -- Discriminant_Constraint Elist21
182 -- Interface_Name Node21
183 -- Original_Array_Type Node21
184 -- Small_Value Ureal21
186 -- Associated_Storage_Pool Node22
187 -- Component_Size Uint22
188 -- Corresponding_Remote_Type Node22
189 -- Enumeration_Rep_Expr Node22
190 -- Exception_Code Uint22
191 -- Original_Record_Component Node22
192 -- Private_View Node22
193 -- Protected_Formal Node22
194 -- Scope_Depth_Value Uint22
195 -- Shared_Var_Procs_Instance Node22
197 -- Associated_Final_Chain Node23
198 -- CR_Discriminant Node23
199 -- Entry_Cancel_Parameter Node23
200 -- Enum_Pos_To_Rep Node23
201 -- Extra_Constrained Node23
202 -- Generic_Renamings Elist23
203 -- Inner_Instances Elist23
204 -- Limited_View Node23
205 -- Packed_Array_Type Node23
206 -- Protection_Object Node23
207 -- Stored_Constraint Elist23
209 -- Related_Expression Node24
210 -- Spec_PPC_List Node24
212 -- Interface_Alias Node25
213 -- Interfaces Elist25
214 -- Debug_Renaming_Link Node25
215 -- DT_Offset_To_Top_Func Node25
216 -- Task_Body_Procedure Node25
218 -- Dispatch_Table_Wrappers Elist26
219 -- Last_Assignment Node26
220 -- Overridden_Operation Node26
221 -- Package_Instantiation Node26
222 -- Related_Type Node26
223 -- Relative_Deadline_Variable Node26
224 -- Static_Initialization Node26
226 -- Current_Use_Clause Node27
227 -- Wrapped_Entity Node27
229 -- Extra_Formals Node28
230 -- Underlying_Record_View Node28
232 ---------------------------------------------
233 -- Usage of Flags in Defining Entity Nodes --
234 ---------------------------------------------
236 -- All flags are unique, there is no overlaying, so each flag is physically
237 -- present in every entity. However, for many of the flags, it only makes
238 -- sense for them to be set true for certain subsets of entity kinds. See
239 -- the spec of Einfo for further details.
241 -- Note: Flag1-Flag3 are absent from this list, since these flag positions
242 -- are used for the flags Analyzed, Comes_From_Source, and Error_Posted,
243 -- which are common to all nodes, including entity nodes.
246 -- Has_Discriminants Flag5
247 -- Is_Dispatching_Operation Flag6
248 -- Is_Immediately_Visible Flag7
250 -- Is_Potentially_Use_Visible Flag9
254 -- Is_Constrained Flag12
255 -- Is_Generic_Type Flag13
256 -- Depends_On_Private Flag14
258 -- Is_Volatile Flag16
259 -- Is_Internal Flag17
260 -- Has_Delayed_Freeze Flag18
261 -- Is_Abstract_Subprogram Flag19
262 -- Is_Concurrent_Record_Type Flag20
264 -- Has_Master_Entity Flag21
265 -- Needs_No_Actuals Flag22
266 -- Has_Storage_Size_Clause Flag23
267 -- Is_Imported Flag24
268 -- Is_Limited_Record Flag25
269 -- Has_Completion Flag26
270 -- Has_Pragma_Controlled Flag27
271 -- Is_Statically_Allocated Flag28
272 -- Has_Size_Clause Flag29
275 -- Checks_May_Be_Suppressed Flag31
276 -- Kill_Elaboration_Checks Flag32
277 -- Kill_Range_Checks Flag33
278 -- Kill_Tag_Checks Flag34
279 -- Is_Class_Wide_Equivalent_Type Flag35
280 -- Referenced_As_LHS Flag36
281 -- Is_Known_Non_Null Flag37
282 -- Can_Never_Be_Null Flag38
283 -- Is_Overriding_Operation Flag39
284 -- Body_Needed_For_SAL Flag40
286 -- Treat_As_Volatile Flag41
287 -- Is_Controlled Flag42
288 -- Has_Controlled_Component Flag43
290 -- In_Private_Part Flag45
291 -- Has_Alignment_Clause Flag46
293 -- In_Package_Body Flag48
295 -- Delay_Subprogram_Descriptors Flag50
298 -- Is_Entry_Formal Flag52
299 -- Is_Private_Descendant Flag53
300 -- Return_Present Flag54
301 -- Is_Tagged_Type Flag55
302 -- Has_Homonym Flag56
304 -- Non_Binary_Modulus Flag58
305 -- Is_Preelaborated Flag59
306 -- Is_Shared_Passive Flag60
308 -- Is_Remote_Types Flag61
309 -- Is_Remote_Call_Interface Flag62
310 -- Is_Character_Type Flag63
311 -- Is_Intrinsic_Subprogram Flag64
312 -- Has_Record_Rep_Clause Flag65
313 -- Has_Enumeration_Rep_Clause Flag66
314 -- Has_Small_Clause Flag67
315 -- Has_Component_Size_Clause Flag68
316 -- Is_Access_Constant Flag69
317 -- Is_First_Subtype Flag70
319 -- Has_Completion_In_Body Flag71
320 -- Has_Unknown_Discriminants Flag72
321 -- Is_Child_Unit Flag73
322 -- Is_CPP_Class Flag74
323 -- Has_Non_Standard_Rep Flag75
324 -- Is_Constructor Flag76
325 -- Static_Elaboration_Desired Flag77
327 -- Has_All_Calls_Remote Flag79
328 -- Is_Constr_Subt_For_U_Nominal Flag80
330 -- Is_Asynchronous Flag81
331 -- Has_Gigi_Rep_Item Flag82
332 -- Has_Machine_Radix_Clause Flag83
333 -- Machine_Radix_10 Flag84
335 -- Has_Atomic_Components Flag86
336 -- Has_Volatile_Components Flag87
337 -- Discard_Names Flag88
338 -- Is_Interrupt_Handler Flag89
339 -- Returns_By_Ref Flag90
342 -- Size_Known_At_Compile_Time Flag92
343 -- Has_Subprogram_Descriptor Flag93
344 -- Is_Generic_Actual_Type Flag94
345 -- Uses_Sec_Stack Flag95
346 -- Warnings_Off Flag96
347 -- Is_Controlling_Formal Flag97
348 -- Has_Controlling_Result Flag98
349 -- Is_Exported Flag99
350 -- Has_Specified_Layout Flag100
352 -- Has_Nested_Block_With_Handler Flag101
354 -- Is_Completely_Hidden Flag103
355 -- Address_Taken Flag104
356 -- Suppress_Init_Proc Flag105
357 -- Is_Limited_Composite Flag106
358 -- Is_Private_Composite Flag107
359 -- Default_Expressions_Processed Flag108
360 -- Is_Non_Static_Subtype Flag109
361 -- Has_External_Tag_Rep_Clause Flag110
363 -- Is_Formal_Subprogram Flag111
364 -- Is_Renaming_Of_Object Flag112
366 -- Delay_Cleanups Flag114
367 -- Never_Set_In_Source Flag115
368 -- Is_Visible_Child_Unit Flag116
369 -- Is_Unchecked_Union Flag117
370 -- Is_For_Access_Subtype Flag118
371 -- Has_Convention_Pragma Flag119
372 -- Has_Primitive_Operations Flag120
374 -- Has_Pragma_Pack Flag121
375 -- Is_Bit_Packed_Array Flag122
376 -- Has_Unchecked_Union Flag123
377 -- Is_Eliminated Flag124
378 -- C_Pass_By_Copy Flag125
379 -- Is_Instantiated Flag126
380 -- Is_Valued_Procedure Flag127
381 -- (used for Component_Alignment) Flag128
382 -- (used for Component_Alignment) Flag129
383 -- Is_Generic_Instance Flag130
385 -- No_Pool_Assigned Flag131
386 -- Is_AST_Entry Flag132
387 -- Is_VMS_Exception Flag133
388 -- Is_Optional_Parameter Flag134
389 -- Has_Aliased_Components Flag135
390 -- No_Strict_Aliasing Flag136
391 -- Is_Machine_Code_Subprogram Flag137
392 -- Is_Packed_Array_Type Flag138
393 -- Has_Biased_Representation Flag139
394 -- Has_Complex_Representation Flag140
396 -- Is_Constr_Subt_For_UN_Aliased Flag141
397 -- Has_Missing_Return Flag142
398 -- Has_Recursive_Call Flag143
399 -- Is_Unsigned_Type Flag144
400 -- Strict_Alignment Flag145
401 -- Is_Abstract_Type Flag146
402 -- Needs_Debug_Info Flag147
403 -- Suppress_Elaboration_Warnings Flag148
404 -- Is_Compilation_Unit Flag149
405 -- Has_Pragma_Elaborate_Body Flag150
408 -- Entry_Accepted Flag152
409 -- Is_Obsolescent Flag153
410 -- Has_Per_Object_Constraint Flag154
411 -- Has_Private_Declaration Flag155
412 -- Referenced Flag156
413 -- Has_Pragma_Inline Flag157
414 -- Finalize_Storage_Only Flag158
415 -- From_With_Type Flag159
416 -- Is_Package_Body_Entity Flag160
418 -- Has_Qualified_Name Flag161
419 -- Nonzero_Is_True Flag162
420 -- Is_True_Constant Flag163
421 -- Reverse_Bit_Order Flag164
422 -- Suppress_Style_Checks Flag165
423 -- Debug_Info_Off Flag166
424 -- Sec_Stack_Needed_For_Return Flag167
425 -- Materialize_Entity Flag168
426 -- Has_Pragma_Thread_Local_Storage Flag169
427 -- Is_Known_Valid Flag170
429 -- Is_Hidden_Open_Scope Flag171
430 -- Has_Object_Size_Clause Flag172
431 -- Has_Fully_Qualified_Name Flag173
432 -- Elaboration_Entity_Required Flag174
433 -- Has_Forward_Instantiation Flag175
434 -- Is_Discrim_SO_Function Flag176
435 -- Size_Depends_On_Discriminant Flag177
436 -- Is_Null_Init_Proc Flag178
437 -- Has_Pragma_Pure_Function Flag179
438 -- Has_Pragma_Unreferenced Flag180
440 -- Has_Contiguous_Rep Flag181
441 -- Has_Xref_Entry Flag182
442 -- Must_Be_On_Byte_Boundary Flag183
443 -- Has_Stream_Size_Clause Flag184
444 -- Is_Ada_2005_Only Flag185
445 -- Is_Interface Flag186
446 -- Has_Constrained_Partial_View Flag187
447 -- Has_Persistent_BSS Flag188
448 -- Is_Pure_Unit_Access_Type Flag189
449 -- Has_Specified_Stream_Input Flag190
451 -- Has_Specified_Stream_Output Flag191
452 -- Has_Specified_Stream_Read Flag192
453 -- Has_Specified_Stream_Write Flag193
454 -- Is_Local_Anonymous_Access Flag194
455 -- Is_Primitive_Wrapper Flag195
456 -- Was_Hidden Flag196
457 -- Is_Limited_Interface Flag197
458 -- Is_Protected_Interface Flag198
459 -- Is_Synchronized_Interface Flag199
460 -- Is_Task_Interface Flag200
462 -- Has_Anon_Block_Suffix Flag201
463 -- Itype_Printed Flag202
464 -- Has_Pragma_Pure Flag203
465 -- Is_Known_Null Flag204
466 -- Low_Bound_Tested Flag205
467 -- Is_Visible_Formal Flag206
468 -- Known_To_Have_Preelab_Init Flag207
469 -- Must_Have_Preelab_Init Flag208
470 -- Is_Return_Object Flag209
471 -- Elaborate_Body_Desirable Flag210
473 -- Has_Static_Discriminants Flag211
474 -- Has_Pragma_Unreferenced_Objects Flag212
475 -- Requires_Overriding Flag213
477 -- Has_Up_Level_Access Flag215
478 -- Universal_Aliasing Flag216
479 -- Suppress_Value_Tracking_On_Call Flag217
480 -- Is_Primitive Flag218
481 -- Has_Initial_Value Flag219
482 -- Has_Dispatch_Table Flag220
484 -- Has_Pragma_Preelab_Init Flag221
485 -- Used_As_Generic_Actual Flag222
486 -- Is_Descendent_Of_Address Flag223
489 -- Is_Only_Out_Parameter Flag226
490 -- Referenced_As_Out_Parameter Flag227
491 -- Has_Thunks Flag228
492 -- Can_Use_Internal_Rep Flag229
493 -- Has_Pragma_Inline_Always Flag230
495 -- Renamed_In_Spec Flag231
496 -- Implemented_By_Entry Flag232
497 -- Has_Pragma_Unmodified Flag233
498 -- Is_Dispatch_Table_Entity Flag234
499 -- Is_Trivial_Subprogram Flag235
500 -- Warnings_Off_Used Flag236
501 -- Warnings_Off_Used_Unmodified Flag237
502 -- Warnings_Off_Used_Unreferenced Flag238
503 -- OK_To_Reorder_Components Flag239
504 -- Has_Postconditions Flag240
506 -- Optimize_Alignment_Space Flag241
507 -- Optimize_Alignment_Time Flag242
508 -- Overlays_Constant Flag243
509 -- Is_RACW_Stub_Type Flag244
510 -- Is_Private_Primitive Flag245
511 -- Is_Underlying_Record_View Flag246
512 -- OK_To_Rename Flag247
514 -----------------------
515 -- Local subprograms --
516 -----------------------
518 function Rep_Clause (Id : E; Rep_Name : Name_Id) return N;
519 -- Returns the attribute definition clause for Id whose name is Rep_Name.
520 -- Returns Empty if no matching attribute definition clause found for Id.
526 function Rep_Clause (Id : E; Rep_Name : Name_Id) return N is
530 Ritem := First_Rep_Item (Id);
531 while Present (Ritem) loop
532 if Nkind (Ritem) = N_Attribute_Definition_Clause
533 and then Chars (Ritem) = Rep_Name
537 Ritem := Next_Rep_Item (Ritem);
544 --------------------------------
545 -- Attribute Access Functions --
546 --------------------------------
548 function Accept_Address (Id : E) return L is
553 function Access_Disp_Table (Id : E) return L is
555 pragma Assert (Is_Tagged_Type (Id));
556 return Elist16 (Implementation_Base_Type (Id));
557 end Access_Disp_Table;
559 function Actual_Subtype (Id : E) return E is
562 (Ekind_In (Id, E_Constant, E_Variable, E_Generic_In_Out_Parameter)
563 or else Is_Formal (Id));
567 function Address_Taken (Id : E) return B is
572 function Alias (Id : E) return E is
575 (Is_Overloadable (Id) or else Ekind (Id) = E_Subprogram_Type);
579 function Alignment (Id : E) return U is
581 pragma Assert (Is_Type (Id)
582 or else Is_Formal (Id)
583 or else Ekind_In (Id, E_Loop_Parameter,
590 function Associated_Final_Chain (Id : E) return E is
592 pragma Assert (Is_Access_Type (Id));
594 end Associated_Final_Chain;
596 function Associated_Formal_Package (Id : E) return E is
598 pragma Assert (Ekind (Id) = E_Package);
600 end Associated_Formal_Package;
602 function Associated_Node_For_Itype (Id : E) return N is
605 end Associated_Node_For_Itype;
607 function Associated_Storage_Pool (Id : E) return E is
609 pragma Assert (Is_Access_Type (Id));
610 return Node22 (Root_Type (Id));
611 end Associated_Storage_Pool;
613 function Barrier_Function (Id : E) return N is
615 pragma Assert (Is_Entry (Id));
617 end Barrier_Function;
619 function Block_Node (Id : E) return N is
621 pragma Assert (Ekind (Id) = E_Block);
625 function Body_Entity (Id : E) return E is
627 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
631 function Body_Needed_For_SAL (Id : E) return B is
634 (Ekind (Id) = E_Package
635 or else Is_Subprogram (Id)
636 or else Is_Generic_Unit (Id));
638 end Body_Needed_For_SAL;
640 function C_Pass_By_Copy (Id : E) return B is
642 pragma Assert (Is_Record_Type (Id));
643 return Flag125 (Implementation_Base_Type (Id));
646 function Can_Never_Be_Null (Id : E) return B is
649 end Can_Never_Be_Null;
651 function Checks_May_Be_Suppressed (Id : E) return B is
654 end Checks_May_Be_Suppressed;
656 function Class_Wide_Type (Id : E) return E is
658 pragma Assert (Is_Type (Id));
662 function Cloned_Subtype (Id : E) return E is
664 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Class_Wide_Subtype));
668 function Component_Bit_Offset (Id : E) return U is
670 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
672 end Component_Bit_Offset;
674 function Component_Clause (Id : E) return N is
676 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
678 end Component_Clause;
680 function Component_Size (Id : E) return U is
682 pragma Assert (Is_Array_Type (Id));
683 return Uint22 (Implementation_Base_Type (Id));
686 function Component_Type (Id : E) return E is
688 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
689 return Node20 (Implementation_Base_Type (Id));
692 function Corresponding_Concurrent_Type (Id : E) return E is
694 pragma Assert (Ekind (Id) = E_Record_Type);
696 end Corresponding_Concurrent_Type;
698 function Corresponding_Discriminant (Id : E) return E is
700 pragma Assert (Ekind (Id) = E_Discriminant);
702 end Corresponding_Discriminant;
704 function Corresponding_Equality (Id : E) return E is
707 (Ekind (Id) = E_Function
708 and then not Comes_From_Source (Id)
709 and then Chars (Id) = Name_Op_Ne);
711 end Corresponding_Equality;
713 function Corresponding_Record_Type (Id : E) return E is
715 pragma Assert (Is_Concurrent_Type (Id));
717 end Corresponding_Record_Type;
719 function Corresponding_Remote_Type (Id : E) return E is
722 end Corresponding_Remote_Type;
724 function Current_Use_Clause (Id : E) return E is
726 pragma Assert (Ekind (Id) = E_Package or else Is_Type (Id));
728 end Current_Use_Clause;
730 function Current_Value (Id : E) return N is
732 pragma Assert (Ekind (Id) in Object_Kind);
736 function CR_Discriminant (Id : E) return E is
741 function Debug_Info_Off (Id : E) return B is
746 function Debug_Renaming_Link (Id : E) return E is
749 end Debug_Renaming_Link;
751 function Default_Expr_Function (Id : E) return E is
753 pragma Assert (Is_Formal (Id));
755 end Default_Expr_Function;
757 function Default_Expressions_Processed (Id : E) return B is
760 end Default_Expressions_Processed;
762 function Default_Value (Id : E) return N is
764 pragma Assert (Is_Formal (Id));
768 function Delay_Cleanups (Id : E) return B is
773 function Delay_Subprogram_Descriptors (Id : E) return B is
776 end Delay_Subprogram_Descriptors;
778 function Delta_Value (Id : E) return R is
780 pragma Assert (Is_Fixed_Point_Type (Id));
784 function Dependent_Instances (Id : E) return L is
786 pragma Assert (Is_Generic_Instance (Id));
788 end Dependent_Instances;
790 function Depends_On_Private (Id : E) return B is
792 pragma Assert (Nkind (Id) in N_Entity);
794 end Depends_On_Private;
796 function Digits_Value (Id : E) return U is
799 (Is_Floating_Point_Type (Id)
800 or else Is_Decimal_Fixed_Point_Type (Id));
804 function Directly_Designated_Type (Id : E) return E is
806 pragma Assert (Is_Access_Type (Id));
808 end Directly_Designated_Type;
810 function Discard_Names (Id : E) return B is
815 function Discriminal (Id : E) return E is
817 pragma Assert (Ekind (Id) = E_Discriminant);
821 function Discriminal_Link (Id : E) return N is
824 end Discriminal_Link;
826 function Discriminant_Checking_Func (Id : E) return E is
828 pragma Assert (Ekind (Id) = E_Component);
830 end Discriminant_Checking_Func;
832 function Discriminant_Constraint (Id : E) return L is
834 pragma Assert (Is_Composite_Type (Id) and then Has_Discriminants (Id));
836 end Discriminant_Constraint;
838 function Discriminant_Default_Value (Id : E) return N is
840 pragma Assert (Ekind (Id) = E_Discriminant);
842 end Discriminant_Default_Value;
844 function Discriminant_Number (Id : E) return U is
846 pragma Assert (Ekind (Id) = E_Discriminant);
848 end Discriminant_Number;
850 function Dispatch_Table_Wrappers (Id : E) return L is
852 pragma Assert (Is_Tagged_Type (Id));
853 return Elist26 (Implementation_Base_Type (Id));
854 end Dispatch_Table_Wrappers;
856 function DT_Entry_Count (Id : E) return U is
858 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
862 function DT_Offset_To_Top_Func (Id : E) return E is
864 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
866 end DT_Offset_To_Top_Func;
868 function DT_Position (Id : E) return U is
870 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
871 and then Present (DTC_Entity (Id)));
875 function DTC_Entity (Id : E) return E is
877 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
881 function Elaborate_Body_Desirable (Id : E) return B is
883 pragma Assert (Ekind (Id) = E_Package);
885 end Elaborate_Body_Desirable;
887 function Elaboration_Entity (Id : E) return E is
892 Ekind (Id) = E_Package
894 Is_Generic_Unit (Id));
896 end Elaboration_Entity;
898 function Elaboration_Entity_Required (Id : E) return B is
903 Ekind (Id) = E_Package
905 Is_Generic_Unit (Id));
907 end Elaboration_Entity_Required;
909 function Enclosing_Scope (Id : E) return E is
914 function Entry_Accepted (Id : E) return B is
916 pragma Assert (Is_Entry (Id));
920 function Entry_Bodies_Array (Id : E) return E is
923 end Entry_Bodies_Array;
925 function Entry_Cancel_Parameter (Id : E) return E is
928 end Entry_Cancel_Parameter;
930 function Entry_Component (Id : E) return E is
935 function Entry_Formal (Id : E) return E is
940 function Entry_Index_Constant (Id : E) return N is
942 pragma Assert (Ekind (Id) = E_Entry_Index_Parameter);
944 end Entry_Index_Constant;
946 function Entry_Parameters_Type (Id : E) return E is
949 end Entry_Parameters_Type;
951 function Enum_Pos_To_Rep (Id : E) return E is
953 pragma Assert (Ekind (Id) = E_Enumeration_Type);
957 function Enumeration_Pos (Id : E) return Uint is
959 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
963 function Enumeration_Rep (Id : E) return U is
965 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
969 function Enumeration_Rep_Expr (Id : E) return N is
971 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
973 end Enumeration_Rep_Expr;
975 function Equivalent_Type (Id : E) return E is
978 (Ekind_In (Id, E_Class_Wide_Type,
979 E_Class_Wide_Subtype,
980 E_Access_Protected_Subprogram_Type,
981 E_Anonymous_Access_Protected_Subprogram_Type,
982 E_Access_Subprogram_Type,
987 function Esize (Id : E) return Uint is
992 function Exception_Code (Id : E) return Uint is
994 pragma Assert (Ekind (Id) = E_Exception);
998 function Extra_Accessibility (Id : E) return E is
1000 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
1002 end Extra_Accessibility;
1004 function Extra_Constrained (Id : E) return E is
1006 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
1008 end Extra_Constrained;
1010 function Extra_Formal (Id : E) return E is
1015 function Extra_Formals (Id : E) return E is
1018 (Is_Overloadable (Id)
1019 or else Ekind_In (Id, E_Entry_Family,
1021 E_Subprogram_Type));
1025 function Can_Use_Internal_Rep (Id : E) return B is
1027 pragma Assert (Is_Access_Subprogram_Type (Base_Type (Id)));
1028 return Flag229 (Base_Type (Id));
1029 end Can_Use_Internal_Rep;
1031 function Finalization_Chain_Entity (Id : E) return E is
1034 end Finalization_Chain_Entity;
1036 function Finalize_Storage_Only (Id : E) return B is
1038 pragma Assert (Is_Type (Id));
1039 return Flag158 (Base_Type (Id));
1040 end Finalize_Storage_Only;
1042 function First_Entity (Id : E) return E is
1047 function First_Exit_Statement (Id : E) return N is
1049 pragma Assert (Ekind (Id) = E_Loop);
1051 end First_Exit_Statement;
1053 function First_Index (Id : E) return N is
1055 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
1059 function First_Literal (Id : E) return E is
1061 pragma Assert (Is_Enumeration_Type (Id));
1065 function First_Optional_Parameter (Id : E) return E is
1067 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1069 end First_Optional_Parameter;
1071 function First_Private_Entity (Id : E) return E is
1073 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package)
1074 or else Ekind (Id) in Concurrent_Kind);
1076 end First_Private_Entity;
1078 function First_Rep_Item (Id : E) return E is
1083 function Freeze_Node (Id : E) return N is
1088 function From_With_Type (Id : E) return B is
1090 return Flag159 (Id);
1093 function Full_View (Id : E) return E is
1095 pragma Assert (Is_Type (Id) or else Ekind (Id) = E_Constant);
1099 function Generic_Homonym (Id : E) return E is
1101 pragma Assert (Ekind (Id) = E_Generic_Package);
1103 end Generic_Homonym;
1105 function Generic_Renamings (Id : E) return L is
1107 return Elist23 (Id);
1108 end Generic_Renamings;
1110 function Handler_Records (Id : E) return S is
1113 end Handler_Records;
1115 function Has_Aliased_Components (Id : E) return B is
1117 return Flag135 (Implementation_Base_Type (Id));
1118 end Has_Aliased_Components;
1120 function Has_Alignment_Clause (Id : E) return B is
1123 end Has_Alignment_Clause;
1125 function Has_All_Calls_Remote (Id : E) return B is
1128 end Has_All_Calls_Remote;
1130 function Has_Anon_Block_Suffix (Id : E) return B is
1132 return Flag201 (Id);
1133 end Has_Anon_Block_Suffix;
1135 function Has_Atomic_Components (Id : E) return B is
1137 return Flag86 (Implementation_Base_Type (Id));
1138 end Has_Atomic_Components;
1140 function Has_Biased_Representation (Id : E) return B is
1142 return Flag139 (Id);
1143 end Has_Biased_Representation;
1145 function Has_Completion (Id : E) return B is
1150 function Has_Completion_In_Body (Id : E) return B is
1152 pragma Assert (Is_Type (Id));
1154 end Has_Completion_In_Body;
1156 function Has_Complex_Representation (Id : E) return B is
1158 pragma Assert (Is_Type (Id));
1159 return Flag140 (Implementation_Base_Type (Id));
1160 end Has_Complex_Representation;
1162 function Has_Component_Size_Clause (Id : E) return B is
1164 pragma Assert (Is_Array_Type (Id));
1165 return Flag68 (Implementation_Base_Type (Id));
1166 end Has_Component_Size_Clause;
1168 function Has_Constrained_Partial_View (Id : E) return B is
1170 pragma Assert (Is_Type (Id));
1171 return Flag187 (Id);
1172 end Has_Constrained_Partial_View;
1174 function Has_Controlled_Component (Id : E) return B is
1176 return Flag43 (Base_Type (Id));
1177 end Has_Controlled_Component;
1179 function Has_Contiguous_Rep (Id : E) return B is
1181 return Flag181 (Id);
1182 end Has_Contiguous_Rep;
1184 function Has_Controlling_Result (Id : E) return B is
1187 end Has_Controlling_Result;
1189 function Has_Convention_Pragma (Id : E) return B is
1191 return Flag119 (Id);
1192 end Has_Convention_Pragma;
1194 function Has_Delayed_Freeze (Id : E) return B is
1196 pragma Assert (Nkind (Id) in N_Entity);
1198 end Has_Delayed_Freeze;
1200 function Has_Discriminants (Id : E) return B is
1202 pragma Assert (Nkind (Id) in N_Entity);
1204 end Has_Discriminants;
1206 function Has_Dispatch_Table (Id : E) return B is
1208 pragma Assert (Is_Tagged_Type (Id));
1209 return Flag220 (Id);
1210 end Has_Dispatch_Table;
1212 function Has_Enumeration_Rep_Clause (Id : E) return B is
1214 pragma Assert (Is_Enumeration_Type (Id));
1216 end Has_Enumeration_Rep_Clause;
1218 function Has_Exit (Id : E) return B is
1223 function Has_External_Tag_Rep_Clause (Id : E) return B is
1225 pragma Assert (Is_Tagged_Type (Id));
1226 return Flag110 (Id);
1227 end Has_External_Tag_Rep_Clause;
1229 function Has_Forward_Instantiation (Id : E) return B is
1231 return Flag175 (Id);
1232 end Has_Forward_Instantiation;
1234 function Has_Fully_Qualified_Name (Id : E) return B is
1236 return Flag173 (Id);
1237 end Has_Fully_Qualified_Name;
1239 function Has_Gigi_Rep_Item (Id : E) return B is
1242 end Has_Gigi_Rep_Item;
1244 function Has_Homonym (Id : E) return B is
1249 function Has_Initial_Value (Id : E) return B is
1252 (Ekind (Id) = E_Variable or else Is_Formal (Id));
1253 return Flag219 (Id);
1254 end Has_Initial_Value;
1256 function Has_Machine_Radix_Clause (Id : E) return B is
1258 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
1260 end Has_Machine_Radix_Clause;
1262 function Has_Master_Entity (Id : E) return B is
1265 end Has_Master_Entity;
1267 function Has_Missing_Return (Id : E) return B is
1269 pragma Assert (Ekind_In (Id, E_Function, E_Generic_Function));
1270 return Flag142 (Id);
1271 end Has_Missing_Return;
1273 function Has_Nested_Block_With_Handler (Id : E) return B is
1275 return Flag101 (Id);
1276 end Has_Nested_Block_With_Handler;
1278 function Has_Non_Standard_Rep (Id : E) return B is
1280 return Flag75 (Implementation_Base_Type (Id));
1281 end Has_Non_Standard_Rep;
1283 function Has_Object_Size_Clause (Id : E) return B is
1285 pragma Assert (Is_Type (Id));
1286 return Flag172 (Id);
1287 end Has_Object_Size_Clause;
1289 function Has_Per_Object_Constraint (Id : E) return B is
1291 return Flag154 (Id);
1292 end Has_Per_Object_Constraint;
1294 function Has_Persistent_BSS (Id : E) return B is
1296 return Flag188 (Id);
1297 end Has_Persistent_BSS;
1299 function Has_Postconditions (Id : E) return B is
1301 pragma Assert (Is_Subprogram (Id));
1302 return Flag240 (Id);
1303 end Has_Postconditions;
1305 function Has_Pragma_Controlled (Id : E) return B is
1307 pragma Assert (Is_Access_Type (Id));
1308 return Flag27 (Implementation_Base_Type (Id));
1309 end Has_Pragma_Controlled;
1311 function Has_Pragma_Elaborate_Body (Id : E) return B is
1313 return Flag150 (Id);
1314 end Has_Pragma_Elaborate_Body;
1316 function Has_Pragma_Inline (Id : E) return B is
1318 return Flag157 (Id);
1319 end Has_Pragma_Inline;
1321 function Has_Pragma_Inline_Always (Id : E) return B is
1323 return Flag230 (Id);
1324 end Has_Pragma_Inline_Always;
1326 function Has_Pragma_Pack (Id : E) return B is
1328 pragma Assert (Is_Record_Type (Id) or else Is_Array_Type (Id));
1329 return Flag121 (Implementation_Base_Type (Id));
1330 end Has_Pragma_Pack;
1332 function Has_Pragma_Preelab_Init (Id : E) return B is
1334 return Flag221 (Id);
1335 end Has_Pragma_Preelab_Init;
1337 function Has_Pragma_Pure (Id : E) return B is
1339 return Flag203 (Id);
1340 end Has_Pragma_Pure;
1342 function Has_Pragma_Pure_Function (Id : E) return B is
1344 return Flag179 (Id);
1345 end Has_Pragma_Pure_Function;
1347 function Has_Pragma_Thread_Local_Storage (Id : E) return B is
1349 return Flag169 (Id);
1350 end Has_Pragma_Thread_Local_Storage;
1352 function Has_Pragma_Unmodified (Id : E) return B is
1354 return Flag233 (Id);
1355 end Has_Pragma_Unmodified;
1357 function Has_Pragma_Unreferenced (Id : E) return B is
1359 return Flag180 (Id);
1360 end Has_Pragma_Unreferenced;
1362 function Has_Pragma_Unreferenced_Objects (Id : E) return B is
1364 pragma Assert (Is_Type (Id));
1365 return Flag212 (Id);
1366 end Has_Pragma_Unreferenced_Objects;
1368 function Has_Primitive_Operations (Id : E) return B is
1370 pragma Assert (Is_Type (Id));
1371 return Flag120 (Base_Type (Id));
1372 end Has_Primitive_Operations;
1374 function Has_Private_Declaration (Id : E) return B is
1376 return Flag155 (Id);
1377 end Has_Private_Declaration;
1379 function Has_Qualified_Name (Id : E) return B is
1381 return Flag161 (Id);
1382 end Has_Qualified_Name;
1384 function Has_RACW (Id : E) return B is
1386 pragma Assert (Ekind (Id) = E_Package);
1387 return Flag214 (Id);
1390 function Has_Record_Rep_Clause (Id : E) return B is
1392 pragma Assert (Is_Record_Type (Id));
1393 return Flag65 (Implementation_Base_Type (Id));
1394 end Has_Record_Rep_Clause;
1396 function Has_Recursive_Call (Id : E) return B is
1398 pragma Assert (Is_Subprogram (Id));
1399 return Flag143 (Id);
1400 end Has_Recursive_Call;
1402 function Has_Size_Clause (Id : E) return B is
1405 end Has_Size_Clause;
1407 function Has_Small_Clause (Id : E) return B is
1410 end Has_Small_Clause;
1412 function Has_Specified_Layout (Id : E) return B is
1414 pragma Assert (Is_Type (Id));
1415 return Flag100 (Implementation_Base_Type (Id));
1416 end Has_Specified_Layout;
1418 function Has_Specified_Stream_Input (Id : E) return B is
1420 pragma Assert (Is_Type (Id));
1421 return Flag190 (Id);
1422 end Has_Specified_Stream_Input;
1424 function Has_Specified_Stream_Output (Id : E) return B is
1426 pragma Assert (Is_Type (Id));
1427 return Flag191 (Id);
1428 end Has_Specified_Stream_Output;
1430 function Has_Specified_Stream_Read (Id : E) return B is
1432 pragma Assert (Is_Type (Id));
1433 return Flag192 (Id);
1434 end Has_Specified_Stream_Read;
1436 function Has_Specified_Stream_Write (Id : E) return B is
1438 pragma Assert (Is_Type (Id));
1439 return Flag193 (Id);
1440 end Has_Specified_Stream_Write;
1442 function Has_Static_Discriminants (Id : E) return B is
1444 pragma Assert (Is_Type (Id));
1445 return Flag211 (Id);
1446 end Has_Static_Discriminants;
1448 function Has_Storage_Size_Clause (Id : E) return B is
1450 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
1451 return Flag23 (Implementation_Base_Type (Id));
1452 end Has_Storage_Size_Clause;
1454 function Has_Stream_Size_Clause (Id : E) return B is
1456 return Flag184 (Id);
1457 end Has_Stream_Size_Clause;
1459 function Has_Subprogram_Descriptor (Id : E) return B is
1462 end Has_Subprogram_Descriptor;
1464 function Has_Task (Id : E) return B is
1466 return Flag30 (Base_Type (Id));
1469 function Has_Thunks (Id : E) return B is
1471 pragma Assert (Ekind (Id) = E_Constant);
1472 return Flag228 (Id);
1475 function Has_Unchecked_Union (Id : E) return B is
1477 return Flag123 (Base_Type (Id));
1478 end Has_Unchecked_Union;
1480 function Has_Unknown_Discriminants (Id : E) return B is
1482 pragma Assert (Is_Type (Id));
1484 end Has_Unknown_Discriminants;
1486 function Has_Up_Level_Access (Id : E) return B is
1489 (Ekind_In (Id, E_Variable, E_Constant, E_Loop_Parameter));
1490 return Flag215 (Id);
1491 end Has_Up_Level_Access;
1493 function Has_Volatile_Components (Id : E) return B is
1495 return Flag87 (Implementation_Base_Type (Id));
1496 end Has_Volatile_Components;
1498 function Has_Xref_Entry (Id : E) return B is
1500 return Flag182 (Implementation_Base_Type (Id));
1503 function Hiding_Loop_Variable (Id : E) return E is
1505 pragma Assert (Ekind (Id) = E_Variable);
1507 end Hiding_Loop_Variable;
1509 function Homonym (Id : E) return E is
1514 function Implemented_By_Entry (Id : E) return B is
1516 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1517 return Flag232 (Id);
1518 end Implemented_By_Entry;
1520 function Interfaces (Id : E) return L is
1522 pragma Assert (Is_Record_Type (Id));
1523 return Elist25 (Id);
1526 function Interface_Alias (Id : E) return E is
1528 pragma Assert (Is_Subprogram (Id));
1530 end Interface_Alias;
1532 function In_Package_Body (Id : E) return B is
1535 end In_Package_Body;
1537 function In_Private_Part (Id : E) return B is
1540 end In_Private_Part;
1542 function In_Use (Id : E) return B is
1544 pragma Assert (Nkind (Id) in N_Entity);
1548 function Inner_Instances (Id : E) return L is
1550 return Elist23 (Id);
1551 end Inner_Instances;
1553 function Interface_Name (Id : E) return N is
1558 function Is_Abstract_Subprogram (Id : E) return B is
1560 pragma Assert (Is_Overloadable (Id));
1562 end Is_Abstract_Subprogram;
1564 function Is_Abstract_Type (Id : E) return B is
1566 pragma Assert (Is_Type (Id));
1567 return Flag146 (Id);
1568 end Is_Abstract_Type;
1570 function Is_Local_Anonymous_Access (Id : E) return B is
1572 pragma Assert (Is_Access_Type (Id));
1573 return Flag194 (Id);
1574 end Is_Local_Anonymous_Access;
1576 function Is_Access_Constant (Id : E) return B is
1578 pragma Assert (Is_Access_Type (Id));
1580 end Is_Access_Constant;
1582 function Is_Ada_2005_Only (Id : E) return B is
1584 return Flag185 (Id);
1585 end Is_Ada_2005_Only;
1587 function Is_Aliased (Id : E) return B is
1589 pragma Assert (Nkind (Id) in N_Entity);
1593 function Is_AST_Entry (Id : E) return B is
1595 pragma Assert (Is_Entry (Id));
1596 return Flag132 (Id);
1599 function Is_Asynchronous (Id : E) return B is
1601 pragma Assert (Ekind (Id) = E_Procedure or else Is_Type (Id));
1603 end Is_Asynchronous;
1605 function Is_Atomic (Id : E) return B is
1610 function Is_Bit_Packed_Array (Id : E) return B is
1612 return Flag122 (Implementation_Base_Type (Id));
1613 end Is_Bit_Packed_Array;
1615 function Is_Called (Id : E) return B is
1617 pragma Assert (Ekind_In (Id, E_Procedure, E_Function));
1618 return Flag102 (Id);
1621 function Is_Character_Type (Id : E) return B is
1624 end Is_Character_Type;
1626 function Is_Child_Unit (Id : E) return B is
1631 function Is_Class_Wide_Equivalent_Type (Id : E) return B is
1634 end Is_Class_Wide_Equivalent_Type;
1636 function Is_Compilation_Unit (Id : E) return B is
1638 return Flag149 (Id);
1639 end Is_Compilation_Unit;
1641 function Is_Completely_Hidden (Id : E) return B is
1643 pragma Assert (Ekind (Id) = E_Discriminant);
1644 return Flag103 (Id);
1645 end Is_Completely_Hidden;
1647 function Is_Constr_Subt_For_U_Nominal (Id : E) return B is
1650 end Is_Constr_Subt_For_U_Nominal;
1652 function Is_Constr_Subt_For_UN_Aliased (Id : E) return B is
1654 return Flag141 (Id);
1655 end Is_Constr_Subt_For_UN_Aliased;
1657 function Is_Constrained (Id : E) return B is
1659 pragma Assert (Nkind (Id) in N_Entity);
1663 function Is_Constructor (Id : E) return B is
1668 function Is_Controlled (Id : E) return B is
1670 return Flag42 (Base_Type (Id));
1673 function Is_Controlling_Formal (Id : E) return B is
1675 pragma Assert (Is_Formal (Id));
1677 end Is_Controlling_Formal;
1679 function Is_CPP_Class (Id : E) return B is
1684 function Is_Descendent_Of_Address (Id : E) return B is
1686 pragma Assert (Is_Type (Id));
1687 return Flag223 (Id);
1688 end Is_Descendent_Of_Address;
1690 function Is_Discrim_SO_Function (Id : E) return B is
1692 return Flag176 (Id);
1693 end Is_Discrim_SO_Function;
1695 function Is_Dispatch_Table_Entity (Id : E) return B is
1697 return Flag234 (Id);
1698 end Is_Dispatch_Table_Entity;
1700 function Is_Dispatching_Operation (Id : E) return B is
1702 pragma Assert (Nkind (Id) in N_Entity);
1704 end Is_Dispatching_Operation;
1706 function Is_Eliminated (Id : E) return B is
1708 return Flag124 (Id);
1711 function Is_Entry_Formal (Id : E) return B is
1714 end Is_Entry_Formal;
1716 function Is_Exported (Id : E) return B is
1721 function Is_First_Subtype (Id : E) return B is
1724 end Is_First_Subtype;
1726 function Is_For_Access_Subtype (Id : E) return B is
1728 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Private_Subtype));
1729 return Flag118 (Id);
1730 end Is_For_Access_Subtype;
1732 function Is_Formal_Subprogram (Id : E) return B is
1734 return Flag111 (Id);
1735 end Is_Formal_Subprogram;
1737 function Is_Frozen (Id : E) return B is
1742 function Is_Generic_Actual_Type (Id : E) return B is
1744 pragma Assert (Is_Type (Id));
1746 end Is_Generic_Actual_Type;
1748 function Is_Generic_Instance (Id : E) return B is
1750 return Flag130 (Id);
1751 end Is_Generic_Instance;
1753 function Is_Generic_Type (Id : E) return B is
1755 pragma Assert (Nkind (Id) in N_Entity);
1757 end Is_Generic_Type;
1759 function Is_Hidden (Id : E) return B is
1764 function Is_Hidden_Open_Scope (Id : E) return B is
1766 return Flag171 (Id);
1767 end Is_Hidden_Open_Scope;
1769 function Is_Immediately_Visible (Id : E) return B is
1771 pragma Assert (Nkind (Id) in N_Entity);
1773 end Is_Immediately_Visible;
1775 function Is_Imported (Id : E) return B is
1780 function Is_Inlined (Id : E) return B is
1785 function Is_Interface (Id : E) return B is
1787 return Flag186 (Id);
1790 function Is_Instantiated (Id : E) return B is
1792 return Flag126 (Id);
1793 end Is_Instantiated;
1795 function Is_Internal (Id : E) return B is
1797 pragma Assert (Nkind (Id) in N_Entity);
1801 function Is_Interrupt_Handler (Id : E) return B is
1803 pragma Assert (Nkind (Id) in N_Entity);
1805 end Is_Interrupt_Handler;
1807 function Is_Intrinsic_Subprogram (Id : E) return B is
1810 end Is_Intrinsic_Subprogram;
1812 function Is_Itype (Id : E) return B is
1817 function Is_Known_Non_Null (Id : E) return B is
1820 end Is_Known_Non_Null;
1822 function Is_Known_Null (Id : E) return B is
1824 return Flag204 (Id);
1827 function Is_Known_Valid (Id : E) return B is
1829 return Flag170 (Id);
1832 function Is_Limited_Composite (Id : E) return B is
1834 return Flag106 (Id);
1835 end Is_Limited_Composite;
1837 function Is_Limited_Interface (Id : E) return B is
1839 return Flag197 (Id);
1840 end Is_Limited_Interface;
1842 function Is_Limited_Record (Id : E) return B is
1845 end Is_Limited_Record;
1847 function Is_Machine_Code_Subprogram (Id : E) return B is
1849 pragma Assert (Is_Subprogram (Id));
1850 return Flag137 (Id);
1851 end Is_Machine_Code_Subprogram;
1853 function Is_Non_Static_Subtype (Id : E) return B is
1855 pragma Assert (Is_Type (Id));
1856 return Flag109 (Id);
1857 end Is_Non_Static_Subtype;
1859 function Is_Null_Init_Proc (Id : E) return B is
1861 pragma Assert (Ekind (Id) = E_Procedure);
1862 return Flag178 (Id);
1863 end Is_Null_Init_Proc;
1865 function Is_Obsolescent (Id : E) return B is
1867 return Flag153 (Id);
1870 function Is_Only_Out_Parameter (Id : E) return B is
1872 pragma Assert (Is_Formal (Id));
1873 return Flag226 (Id);
1874 end Is_Only_Out_Parameter;
1876 function Is_Optional_Parameter (Id : E) return B is
1878 pragma Assert (Is_Formal (Id));
1879 return Flag134 (Id);
1880 end Is_Optional_Parameter;
1882 function Is_Overriding_Operation (Id : E) return B is
1884 pragma Assert (Is_Subprogram (Id));
1886 end Is_Overriding_Operation;
1888 function Is_Package_Body_Entity (Id : E) return B is
1890 return Flag160 (Id);
1891 end Is_Package_Body_Entity;
1893 function Is_Packed (Id : E) return B is
1895 return Flag51 (Implementation_Base_Type (Id));
1898 function Is_Packed_Array_Type (Id : E) return B is
1900 return Flag138 (Id);
1901 end Is_Packed_Array_Type;
1903 function Is_Potentially_Use_Visible (Id : E) return B is
1905 pragma Assert (Nkind (Id) in N_Entity);
1907 end Is_Potentially_Use_Visible;
1909 function Is_Preelaborated (Id : E) return B is
1912 end Is_Preelaborated;
1914 function Is_Primitive (Id : E) return B is
1917 (Is_Overloadable (Id)
1918 or else Ekind_In (Id, E_Generic_Function, E_Generic_Procedure));
1919 return Flag218 (Id);
1922 function Is_Primitive_Wrapper (Id : E) return B is
1924 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1925 return Flag195 (Id);
1926 end Is_Primitive_Wrapper;
1928 function Is_Private_Composite (Id : E) return B is
1930 pragma Assert (Is_Type (Id));
1931 return Flag107 (Id);
1932 end Is_Private_Composite;
1934 function Is_Private_Descendant (Id : E) return B is
1937 end Is_Private_Descendant;
1939 function Is_Private_Primitive (Id : E) return B is
1941 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
1942 return Flag245 (Id);
1943 end Is_Private_Primitive;
1945 function Is_Protected_Interface (Id : E) return B is
1947 pragma Assert (Is_Interface (Id));
1948 return Flag198 (Id);
1949 end Is_Protected_Interface;
1951 function Is_Public (Id : E) return B is
1953 pragma Assert (Nkind (Id) in N_Entity);
1957 function Is_Pure (Id : E) return B is
1962 function Is_Pure_Unit_Access_Type (Id : E) return B is
1964 pragma Assert (Is_Access_Type (Id));
1965 return Flag189 (Id);
1966 end Is_Pure_Unit_Access_Type;
1968 function Is_RACW_Stub_Type (Id : E) return B is
1970 pragma Assert (Is_Type (Id));
1971 return Flag244 (Id);
1972 end Is_RACW_Stub_Type;
1974 function Is_Raised (Id : E) return B is
1976 pragma Assert (Ekind (Id) = E_Exception);
1977 return Flag224 (Id);
1980 function Is_Remote_Call_Interface (Id : E) return B is
1983 end Is_Remote_Call_Interface;
1985 function Is_Remote_Types (Id : E) return B is
1988 end Is_Remote_Types;
1990 function Is_Renaming_Of_Object (Id : E) return B is
1992 return Flag112 (Id);
1993 end Is_Renaming_Of_Object;
1995 function Is_Return_Object (Id : E) return B is
1997 return Flag209 (Id);
1998 end Is_Return_Object;
2000 function Is_Shared_Passive (Id : E) return B is
2003 end Is_Shared_Passive;
2005 function Is_Statically_Allocated (Id : E) return B is
2008 end Is_Statically_Allocated;
2010 function Is_Synchronized_Interface (Id : E) return B is
2012 pragma Assert (Is_Interface (Id));
2013 return Flag199 (Id);
2014 end Is_Synchronized_Interface;
2016 function Is_Tag (Id : E) return B is
2018 pragma Assert (Nkind (Id) in N_Entity);
2022 function Is_Tagged_Type (Id : E) return B is
2027 function Is_Task_Interface (Id : E) return B is
2029 pragma Assert (Is_Interface (Id));
2030 return Flag200 (Id);
2031 end Is_Task_Interface;
2033 function Is_Thunk (Id : E) return B is
2035 pragma Assert (Is_Subprogram (Id));
2036 return Flag225 (Id);
2039 function Is_Trivial_Subprogram (Id : E) return B is
2041 return Flag235 (Id);
2042 end Is_Trivial_Subprogram;
2044 function Is_True_Constant (Id : E) return B is
2046 return Flag163 (Id);
2047 end Is_True_Constant;
2049 function Is_Unchecked_Union (Id : E) return B is
2051 return Flag117 (Implementation_Base_Type (Id));
2052 end Is_Unchecked_Union;
2054 function Is_Underlying_Record_View (Id : E) return B is
2056 return Flag246 (Id);
2057 end Is_Underlying_Record_View;
2059 function Is_Unsigned_Type (Id : E) return B is
2061 pragma Assert (Is_Type (Id));
2062 return Flag144 (Id);
2063 end Is_Unsigned_Type;
2065 function Is_Valued_Procedure (Id : E) return B is
2067 pragma Assert (Ekind (Id) = E_Procedure);
2068 return Flag127 (Id);
2069 end Is_Valued_Procedure;
2071 function Is_Visible_Child_Unit (Id : E) return B is
2073 pragma Assert (Is_Child_Unit (Id));
2074 return Flag116 (Id);
2075 end Is_Visible_Child_Unit;
2077 function Is_Visible_Formal (Id : E) return B is
2079 return Flag206 (Id);
2080 end Is_Visible_Formal;
2082 function Is_VMS_Exception (Id : E) return B is
2084 return Flag133 (Id);
2085 end Is_VMS_Exception;
2087 function Is_Volatile (Id : E) return B is
2089 pragma Assert (Nkind (Id) in N_Entity);
2091 if Is_Type (Id) then
2092 return Flag16 (Base_Type (Id));
2098 function Itype_Printed (Id : E) return B is
2100 pragma Assert (Is_Itype (Id));
2101 return Flag202 (Id);
2104 function Kill_Elaboration_Checks (Id : E) return B is
2107 end Kill_Elaboration_Checks;
2109 function Kill_Range_Checks (Id : E) return B is
2112 end Kill_Range_Checks;
2114 function Kill_Tag_Checks (Id : E) return B is
2117 end Kill_Tag_Checks;
2119 function Known_To_Have_Preelab_Init (Id : E) return B is
2121 pragma Assert (Is_Type (Id));
2122 return Flag207 (Id);
2123 end Known_To_Have_Preelab_Init;
2125 function Last_Assignment (Id : E) return N is
2127 pragma Assert (Is_Assignable (Id));
2129 end Last_Assignment;
2131 function Last_Entity (Id : E) return E is
2136 function Limited_View (Id : E) return E is
2138 pragma Assert (Ekind (Id) = E_Package);
2142 function Lit_Indexes (Id : E) return E is
2144 pragma Assert (Is_Enumeration_Type (Id));
2148 function Lit_Strings (Id : E) return E is
2150 pragma Assert (Is_Enumeration_Type (Id));
2154 function Low_Bound_Tested (Id : E) return B is
2156 return Flag205 (Id);
2157 end Low_Bound_Tested;
2159 function Machine_Radix_10 (Id : E) return B is
2161 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
2163 end Machine_Radix_10;
2165 function Master_Id (Id : E) return E is
2167 pragma Assert (Is_Access_Type (Id));
2171 function Materialize_Entity (Id : E) return B is
2173 return Flag168 (Id);
2174 end Materialize_Entity;
2176 function Mechanism (Id : E) return M is
2178 pragma Assert (Ekind (Id) = E_Function or else Is_Formal (Id));
2179 return UI_To_Int (Uint8 (Id));
2182 function Modulus (Id : E) return Uint is
2184 pragma Assert (Is_Modular_Integer_Type (Id));
2185 return Uint17 (Base_Type (Id));
2188 function Must_Be_On_Byte_Boundary (Id : E) return B is
2190 pragma Assert (Is_Type (Id));
2191 return Flag183 (Id);
2192 end Must_Be_On_Byte_Boundary;
2194 function Must_Have_Preelab_Init (Id : E) return B is
2196 pragma Assert (Is_Type (Id));
2197 return Flag208 (Id);
2198 end Must_Have_Preelab_Init;
2200 function Needs_Debug_Info (Id : E) return B is
2202 return Flag147 (Id);
2203 end Needs_Debug_Info;
2205 function Needs_No_Actuals (Id : E) return B is
2208 (Is_Overloadable (Id)
2209 or else Ekind_In (Id, E_Subprogram_Type, E_Entry_Family));
2211 end Needs_No_Actuals;
2213 function Never_Set_In_Source (Id : E) return B is
2215 return Flag115 (Id);
2216 end Never_Set_In_Source;
2218 function Next_Inlined_Subprogram (Id : E) return E is
2221 end Next_Inlined_Subprogram;
2223 function No_Pool_Assigned (Id : E) return B is
2225 pragma Assert (Is_Access_Type (Id));
2226 return Flag131 (Root_Type (Id));
2227 end No_Pool_Assigned;
2229 function No_Return (Id : E) return B is
2231 return Flag113 (Id);
2234 function No_Strict_Aliasing (Id : E) return B is
2236 pragma Assert (Is_Access_Type (Id));
2237 return Flag136 (Base_Type (Id));
2238 end No_Strict_Aliasing;
2240 function Non_Binary_Modulus (Id : E) return B is
2242 pragma Assert (Is_Type (Id));
2243 return Flag58 (Base_Type (Id));
2244 end Non_Binary_Modulus;
2246 function Non_Limited_View (Id : E) return E is
2248 pragma Assert (Ekind (Id) in Incomplete_Kind);
2250 end Non_Limited_View;
2252 function Nonzero_Is_True (Id : E) return B is
2254 pragma Assert (Root_Type (Id) = Standard_Boolean);
2255 return Flag162 (Base_Type (Id));
2256 end Nonzero_Is_True;
2258 function Normalized_First_Bit (Id : E) return U is
2260 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2262 end Normalized_First_Bit;
2264 function Normalized_Position (Id : E) return U is
2266 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2268 end Normalized_Position;
2270 function Normalized_Position_Max (Id : E) return U is
2272 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
2274 end Normalized_Position_Max;
2276 function OK_To_Rename (Id : E) return B is
2278 pragma Assert (Ekind (Id) = E_Variable);
2279 return Flag247 (Id);
2282 function OK_To_Reorder_Components (Id : E) return B is
2284 pragma Assert (Is_Record_Type (Id));
2285 return Flag239 (Base_Type (Id));
2286 end OK_To_Reorder_Components;
2288 function Optimize_Alignment_Space (Id : E) return B is
2291 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
2292 return Flag241 (Id);
2293 end Optimize_Alignment_Space;
2295 function Optimize_Alignment_Time (Id : E) return B is
2298 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
2299 return Flag242 (Id);
2300 end Optimize_Alignment_Time;
2302 function Original_Array_Type (Id : E) return E is
2304 pragma Assert (Is_Array_Type (Id) or else Is_Modular_Integer_Type (Id));
2306 end Original_Array_Type;
2308 function Original_Record_Component (Id : E) return E is
2310 pragma Assert (Ekind_In (Id, E_Void, E_Component, E_Discriminant));
2312 end Original_Record_Component;
2314 function Overlays_Constant (Id : E) return B is
2316 return Flag243 (Id);
2317 end Overlays_Constant;
2319 function Overridden_Operation (Id : E) return E is
2322 end Overridden_Operation;
2324 function Package_Instantiation (Id : E) return N is
2326 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
2328 end Package_Instantiation;
2330 function Packed_Array_Type (Id : E) return E is
2332 pragma Assert (Is_Array_Type (Id));
2334 end Packed_Array_Type;
2336 function Parent_Subtype (Id : E) return E is
2338 pragma Assert (Is_Record_Type (Id));
2339 return Node19 (Base_Type (Id));
2342 function Postcondition_Proc (Id : E) return E is
2344 pragma Assert (Ekind (Id) = E_Procedure);
2346 end Postcondition_Proc;
2348 function Primitive_Operations (Id : E) return L is
2350 pragma Assert (Is_Tagged_Type (Id));
2351 return Elist15 (Id);
2352 end Primitive_Operations;
2354 function Prival (Id : E) return E is
2356 pragma Assert (Is_Protected_Component (Id));
2360 function Prival_Link (Id : E) return E is
2362 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2366 function Private_Dependents (Id : E) return L is
2368 pragma Assert (Is_Incomplete_Or_Private_Type (Id));
2369 return Elist18 (Id);
2370 end Private_Dependents;
2372 function Private_View (Id : E) return N is
2374 pragma Assert (Is_Private_Type (Id));
2378 function Protected_Body_Subprogram (Id : E) return E is
2380 pragma Assert (Is_Subprogram (Id) or else Is_Entry (Id));
2382 end Protected_Body_Subprogram;
2384 function Protected_Formal (Id : E) return E is
2386 pragma Assert (Is_Formal (Id));
2388 end Protected_Formal;
2390 function Protection_Object (Id : E) return E is
2393 (Ekind_In (Id, E_Entry, E_Entry_Family, E_Function, E_Procedure));
2395 end Protection_Object;
2397 function Reachable (Id : E) return B is
2402 function Referenced (Id : E) return B is
2404 return Flag156 (Id);
2407 function Referenced_As_LHS (Id : E) return B is
2410 end Referenced_As_LHS;
2412 function Referenced_As_Out_Parameter (Id : E) return B is
2414 return Flag227 (Id);
2415 end Referenced_As_Out_Parameter;
2417 function Referenced_Object (Id : E) return N is
2419 pragma Assert (Is_Type (Id));
2421 end Referenced_Object;
2423 function Register_Exception_Call (Id : E) return N is
2425 pragma Assert (Ekind (Id) = E_Exception);
2427 end Register_Exception_Call;
2429 function Related_Array_Object (Id : E) return E is
2431 pragma Assert (Is_Array_Type (Id));
2433 end Related_Array_Object;
2435 function Related_Expression (Id : E) return N is
2437 pragma Assert (Ekind (Id) in Type_Kind
2438 or else Ekind_In (Id, E_Constant, E_Variable));
2440 end Related_Expression;
2442 function Related_Instance (Id : E) return E is
2444 pragma Assert (Ekind_In (Id, E_Package, E_Package_Body));
2446 end Related_Instance;
2448 function Related_Type (Id : E) return E is
2450 pragma Assert (Ekind_In (Id, E_Component, E_Constant));
2454 function Relative_Deadline_Variable (Id : E) return E is
2456 pragma Assert (Is_Task_Type (Id));
2457 return Node26 (Implementation_Base_Type (Id));
2458 end Relative_Deadline_Variable;
2460 function Renamed_Entity (Id : E) return N is
2465 function Renamed_In_Spec (Id : E) return B is
2467 pragma Assert (Ekind (Id) = E_Package);
2468 return Flag231 (Id);
2469 end Renamed_In_Spec;
2471 function Renamed_Object (Id : E) return N is
2476 function Renaming_Map (Id : E) return U is
2481 function Requires_Overriding (Id : E) return B is
2483 pragma Assert (Is_Overloadable (Id));
2484 return Flag213 (Id);
2485 end Requires_Overriding;
2487 function Return_Present (Id : E) return B is
2492 function Return_Applies_To (Id : E) return N is
2495 end Return_Applies_To;
2497 function Returns_By_Ref (Id : E) return B is
2502 function Reverse_Bit_Order (Id : E) return B is
2504 pragma Assert (Is_Record_Type (Id));
2505 return Flag164 (Base_Type (Id));
2506 end Reverse_Bit_Order;
2508 function RM_Size (Id : E) return U is
2510 pragma Assert (Is_Type (Id));
2514 function Scalar_Range (Id : E) return N is
2519 function Scale_Value (Id : E) return U is
2524 function Scope_Depth_Value (Id : E) return U is
2527 end Scope_Depth_Value;
2529 function Sec_Stack_Needed_For_Return (Id : E) return B is
2531 return Flag167 (Id);
2532 end Sec_Stack_Needed_For_Return;
2534 function Shadow_Entities (Id : E) return S is
2536 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
2538 end Shadow_Entities;
2540 function Shared_Var_Procs_Instance (Id : E) return E is
2542 pragma Assert (Ekind (Id) = E_Variable);
2544 end Shared_Var_Procs_Instance;
2546 function Size_Check_Code (Id : E) return N is
2548 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
2550 end Size_Check_Code;
2552 function Size_Depends_On_Discriminant (Id : E) return B is
2554 return Flag177 (Id);
2555 end Size_Depends_On_Discriminant;
2557 function Size_Known_At_Compile_Time (Id : E) return B is
2560 end Size_Known_At_Compile_Time;
2562 function Small_Value (Id : E) return R is
2564 pragma Assert (Is_Fixed_Point_Type (Id));
2565 return Ureal21 (Id);
2568 function Spec_Entity (Id : E) return E is
2570 pragma Assert (Ekind (Id) = E_Package_Body or else Is_Formal (Id));
2574 function Spec_PPC_List (Id : E) return N is
2576 pragma Assert (Is_Subprogram (Id) or else Is_Generic_Subprogram (Id));
2580 function Storage_Size_Variable (Id : E) return E is
2582 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
2583 return Node15 (Implementation_Base_Type (Id));
2584 end Storage_Size_Variable;
2586 function Static_Elaboration_Desired (Id : E) return B is
2588 pragma Assert (Ekind (Id) = E_Package);
2590 end Static_Elaboration_Desired;
2592 function Static_Initialization (Id : E) return N is
2595 (Ekind (Id) = E_Procedure and then not Is_Dispatching_Operation (Id));
2597 end Static_Initialization;
2599 function Stored_Constraint (Id : E) return L is
2602 (Is_Composite_Type (Id) and then not Is_Array_Type (Id));
2603 return Elist23 (Id);
2604 end Stored_Constraint;
2606 function Strict_Alignment (Id : E) return B is
2608 return Flag145 (Implementation_Base_Type (Id));
2609 end Strict_Alignment;
2611 function String_Literal_Length (Id : E) return U is
2614 end String_Literal_Length;
2616 function String_Literal_Low_Bound (Id : E) return N is
2619 end String_Literal_Low_Bound;
2621 function Suppress_Elaboration_Warnings (Id : E) return B is
2623 return Flag148 (Id);
2624 end Suppress_Elaboration_Warnings;
2626 function Suppress_Init_Proc (Id : E) return B is
2628 return Flag105 (Base_Type (Id));
2629 end Suppress_Init_Proc;
2631 function Suppress_Style_Checks (Id : E) return B is
2633 return Flag165 (Id);
2634 end Suppress_Style_Checks;
2636 function Suppress_Value_Tracking_On_Call (Id : E) return B is
2638 return Flag217 (Id);
2639 end Suppress_Value_Tracking_On_Call;
2641 function Task_Body_Procedure (Id : E) return N is
2643 pragma Assert (Ekind (Id) in Task_Kind);
2645 end Task_Body_Procedure;
2647 function Treat_As_Volatile (Id : E) return B is
2650 end Treat_As_Volatile;
2652 function Underlying_Full_View (Id : E) return E is
2654 pragma Assert (Ekind (Id) in Private_Kind);
2656 end Underlying_Full_View;
2658 function Underlying_Record_View (Id : E) return E is
2661 end Underlying_Record_View;
2663 function Universal_Aliasing (Id : E) return B is
2665 pragma Assert (Is_Type (Id));
2666 return Flag216 (Base_Type (Id));
2667 end Universal_Aliasing;
2669 function Unset_Reference (Id : E) return N is
2672 end Unset_Reference;
2674 function Used_As_Generic_Actual (Id : E) return B is
2676 return Flag222 (Id);
2677 end Used_As_Generic_Actual;
2679 function Uses_Sec_Stack (Id : E) return B is
2684 function Vax_Float (Id : E) return B is
2686 return Flag151 (Base_Type (Id));
2689 function Warnings_Off (Id : E) return B is
2694 function Warnings_Off_Used (Id : E) return B is
2696 return Flag236 (Id);
2697 end Warnings_Off_Used;
2699 function Warnings_Off_Used_Unmodified (Id : E) return B is
2701 return Flag237 (Id);
2702 end Warnings_Off_Used_Unmodified;
2704 function Warnings_Off_Used_Unreferenced (Id : E) return B is
2706 return Flag238 (Id);
2707 end Warnings_Off_Used_Unreferenced;
2709 function Wrapped_Entity (Id : E) return E is
2711 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
2712 and then Is_Primitive_Wrapper (Id));
2716 function Was_Hidden (Id : E) return B is
2718 return Flag196 (Id);
2721 ------------------------------
2722 -- Classification Functions --
2723 ------------------------------
2725 function Is_Access_Type (Id : E) return B is
2727 return Ekind (Id) in Access_Kind;
2730 function Is_Access_Protected_Subprogram_Type (Id : E) return B is
2732 return Ekind (Id) in Access_Protected_Kind;
2733 end Is_Access_Protected_Subprogram_Type;
2735 function Is_Access_Subprogram_Type (Id : E) return B is
2737 return Ekind (Id) in Access_Subprogram_Kind;
2738 end Is_Access_Subprogram_Type;
2740 function Is_Array_Type (Id : E) return B is
2742 return Ekind (Id) in Array_Kind;
2745 function Is_Assignable (Id : E) return B is
2747 return Ekind (Id) in Assignable_Kind;
2750 function Is_Class_Wide_Type (Id : E) return B is
2752 return Ekind (Id) in Class_Wide_Kind;
2753 end Is_Class_Wide_Type;
2755 function Is_Composite_Type (Id : E) return B is
2757 return Ekind (Id) in Composite_Kind;
2758 end Is_Composite_Type;
2760 function Is_Concurrent_Body (Id : E) return B is
2762 return Ekind (Id) in
2763 Concurrent_Body_Kind;
2764 end Is_Concurrent_Body;
2766 function Is_Concurrent_Record_Type (Id : E) return B is
2769 end Is_Concurrent_Record_Type;
2771 function Is_Concurrent_Type (Id : E) return B is
2773 return Ekind (Id) in Concurrent_Kind;
2774 end Is_Concurrent_Type;
2776 function Is_Decimal_Fixed_Point_Type (Id : E) return B is
2778 return Ekind (Id) in
2779 Decimal_Fixed_Point_Kind;
2780 end Is_Decimal_Fixed_Point_Type;
2782 function Is_Digits_Type (Id : E) return B is
2784 return Ekind (Id) in Digits_Kind;
2787 function Is_Discrete_Or_Fixed_Point_Type (Id : E) return B is
2789 return Ekind (Id) in Discrete_Or_Fixed_Point_Kind;
2790 end Is_Discrete_Or_Fixed_Point_Type;
2792 function Is_Discrete_Type (Id : E) return B is
2794 return Ekind (Id) in Discrete_Kind;
2795 end Is_Discrete_Type;
2797 function Is_Elementary_Type (Id : E) return B is
2799 return Ekind (Id) in Elementary_Kind;
2800 end Is_Elementary_Type;
2802 function Is_Entry (Id : E) return B is
2804 return Ekind (Id) in Entry_Kind;
2807 function Is_Enumeration_Type (Id : E) return B is
2809 return Ekind (Id) in
2811 end Is_Enumeration_Type;
2813 function Is_Fixed_Point_Type (Id : E) return B is
2815 return Ekind (Id) in
2817 end Is_Fixed_Point_Type;
2819 function Is_Floating_Point_Type (Id : E) return B is
2821 return Ekind (Id) in Float_Kind;
2822 end Is_Floating_Point_Type;
2824 function Is_Formal (Id : E) return B is
2826 return Ekind (Id) in Formal_Kind;
2829 function Is_Formal_Object (Id : E) return B is
2831 return Ekind (Id) in Formal_Object_Kind;
2832 end Is_Formal_Object;
2834 function Is_Generic_Subprogram (Id : E) return B is
2836 return Ekind (Id) in Generic_Subprogram_Kind;
2837 end Is_Generic_Subprogram;
2839 function Is_Generic_Unit (Id : E) return B is
2841 return Ekind (Id) in Generic_Unit_Kind;
2842 end Is_Generic_Unit;
2844 function Is_Incomplete_Or_Private_Type (Id : E) return B is
2846 return Ekind (Id) in
2847 Incomplete_Or_Private_Kind;
2848 end Is_Incomplete_Or_Private_Type;
2850 function Is_Incomplete_Type (Id : E) return B is
2852 return Ekind (Id) in
2854 end Is_Incomplete_Type;
2856 function Is_Integer_Type (Id : E) return B is
2858 return Ekind (Id) in Integer_Kind;
2859 end Is_Integer_Type;
2861 function Is_Modular_Integer_Type (Id : E) return B is
2863 return Ekind (Id) in
2864 Modular_Integer_Kind;
2865 end Is_Modular_Integer_Type;
2867 function Is_Named_Number (Id : E) return B is
2869 return Ekind (Id) in Named_Kind;
2870 end Is_Named_Number;
2872 function Is_Numeric_Type (Id : E) return B is
2874 return Ekind (Id) in Numeric_Kind;
2875 end Is_Numeric_Type;
2877 function Is_Object (Id : E) return B is
2879 return Ekind (Id) in Object_Kind;
2882 function Is_Ordinary_Fixed_Point_Type (Id : E) return B is
2884 return Ekind (Id) in
2885 Ordinary_Fixed_Point_Kind;
2886 end Is_Ordinary_Fixed_Point_Type;
2888 function Is_Overloadable (Id : E) return B is
2890 return Ekind (Id) in Overloadable_Kind;
2891 end Is_Overloadable;
2893 function Is_Private_Type (Id : E) return B is
2895 return Ekind (Id) in Private_Kind;
2896 end Is_Private_Type;
2898 function Is_Protected_Type (Id : E) return B is
2900 return Ekind (Id) in Protected_Kind;
2901 end Is_Protected_Type;
2903 function Is_Real_Type (Id : E) return B is
2905 return Ekind (Id) in Real_Kind;
2908 function Is_Record_Type (Id : E) return B is
2910 return Ekind (Id) in Record_Kind;
2913 function Is_Scalar_Type (Id : E) return B is
2915 return Ekind (Id) in Scalar_Kind;
2918 function Is_Signed_Integer_Type (Id : E) return B is
2920 return Ekind (Id) in Signed_Integer_Kind;
2921 end Is_Signed_Integer_Type;
2923 function Is_Subprogram (Id : E) return B is
2925 return Ekind (Id) in Subprogram_Kind;
2928 function Is_Task_Type (Id : E) return B is
2930 return Ekind (Id) in Task_Kind;
2933 function Is_Type (Id : E) return B is
2935 return Ekind (Id) in Type_Kind;
2938 ------------------------------
2939 -- Attribute Set Procedures --
2940 ------------------------------
2942 -- Note: in many of these set procedures an "obvious" assertion is missing.
2943 -- The reason for this is that in many cases, a field is set before the
2944 -- Ekind field is set, so that the field is set when Ekind = E_Void. It
2945 -- it is possible to add assertions that specifically include the E_Void
2946 -- possibility, but in some cases, we just omit the assertions.
2948 procedure Set_Accept_Address (Id : E; V : L) is
2950 Set_Elist21 (Id, V);
2951 end Set_Accept_Address;
2953 procedure Set_Access_Disp_Table (Id : E; V : L) is
2955 pragma Assert (Is_Tagged_Type (Id) and then Id = Base_Type (Id));
2956 Set_Elist16 (Id, V);
2957 end Set_Access_Disp_Table;
2959 procedure Set_Associated_Final_Chain (Id : E; V : E) is
2961 pragma Assert (Is_Access_Type (Id));
2963 end Set_Associated_Final_Chain;
2965 procedure Set_Associated_Formal_Package (Id : E; V : E) is
2968 end Set_Associated_Formal_Package;
2970 procedure Set_Associated_Node_For_Itype (Id : E; V : E) is
2973 end Set_Associated_Node_For_Itype;
2975 procedure Set_Associated_Storage_Pool (Id : E; V : E) is
2977 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
2979 end Set_Associated_Storage_Pool;
2981 procedure Set_Actual_Subtype (Id : E; V : E) is
2984 (Ekind_In (Id, E_Constant, E_Variable, E_Generic_In_Out_Parameter)
2985 or else Is_Formal (Id));
2987 end Set_Actual_Subtype;
2989 procedure Set_Address_Taken (Id : E; V : B := True) is
2991 Set_Flag104 (Id, V);
2992 end Set_Address_Taken;
2994 procedure Set_Alias (Id : E; V : E) is
2997 (Is_Overloadable (Id) or else Ekind (Id) = E_Subprogram_Type);
3001 procedure Set_Alignment (Id : E; V : U) is
3003 pragma Assert (Is_Type (Id)
3004 or else Is_Formal (Id)
3005 or else Ekind_In (Id, E_Loop_Parameter,
3012 procedure Set_Barrier_Function (Id : E; V : N) is
3014 pragma Assert (Is_Entry (Id));
3016 end Set_Barrier_Function;
3018 procedure Set_Block_Node (Id : E; V : N) is
3020 pragma Assert (Ekind (Id) = E_Block);
3024 procedure Set_Body_Entity (Id : E; V : E) is
3026 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
3028 end Set_Body_Entity;
3030 procedure Set_Body_Needed_For_SAL (Id : E; V : B := True) is
3033 (Ekind (Id) = E_Package
3034 or else Is_Subprogram (Id)
3035 or else Is_Generic_Unit (Id));
3037 end Set_Body_Needed_For_SAL;
3039 procedure Set_C_Pass_By_Copy (Id : E; V : B := True) is
3041 pragma Assert (Is_Record_Type (Id) and then Id = Base_Type (Id));
3042 Set_Flag125 (Id, V);
3043 end Set_C_Pass_By_Copy;
3045 procedure Set_Can_Never_Be_Null (Id : E; V : B := True) is
3048 end Set_Can_Never_Be_Null;
3050 procedure Set_Checks_May_Be_Suppressed (Id : E; V : B := True) is
3053 end Set_Checks_May_Be_Suppressed;
3055 procedure Set_Class_Wide_Type (Id : E; V : E) is
3057 pragma Assert (Is_Type (Id));
3059 end Set_Class_Wide_Type;
3061 procedure Set_Cloned_Subtype (Id : E; V : E) is
3063 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Class_Wide_Subtype));
3065 end Set_Cloned_Subtype;
3067 procedure Set_Component_Bit_Offset (Id : E; V : U) is
3069 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
3071 end Set_Component_Bit_Offset;
3073 procedure Set_Component_Clause (Id : E; V : N) is
3075 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
3077 end Set_Component_Clause;
3079 procedure Set_Component_Size (Id : E; V : U) is
3081 pragma Assert (Is_Array_Type (Id) and then Id = Base_Type (Id));
3083 end Set_Component_Size;
3085 procedure Set_Component_Type (Id : E; V : E) is
3087 pragma Assert (Is_Array_Type (Id) and then Id = Base_Type (Id));
3089 end Set_Component_Type;
3091 procedure Set_Corresponding_Concurrent_Type (Id : E; V : E) is
3094 (Ekind (Id) = E_Record_Type and then Is_Concurrent_Type (V));
3096 end Set_Corresponding_Concurrent_Type;
3098 procedure Set_Corresponding_Discriminant (Id : E; V : E) is
3100 pragma Assert (Ekind (Id) = E_Discriminant);
3102 end Set_Corresponding_Discriminant;
3104 procedure Set_Corresponding_Equality (Id : E; V : E) is
3107 (Ekind (Id) = E_Function
3108 and then not Comes_From_Source (Id)
3109 and then Chars (Id) = Name_Op_Ne);
3111 end Set_Corresponding_Equality;
3113 procedure Set_Corresponding_Record_Type (Id : E; V : E) is
3115 pragma Assert (Is_Concurrent_Type (Id));
3117 end Set_Corresponding_Record_Type;
3119 procedure Set_Corresponding_Remote_Type (Id : E; V : E) is
3122 end Set_Corresponding_Remote_Type;
3124 procedure Set_Current_Use_Clause (Id : E; V : E) is
3126 pragma Assert (Ekind (Id) = E_Package or else Is_Type (Id));
3128 end Set_Current_Use_Clause;
3130 procedure Set_Current_Value (Id : E; V : N) is
3132 pragma Assert (Ekind (Id) in Object_Kind or else Ekind (Id) = E_Void);
3134 end Set_Current_Value;
3136 procedure Set_CR_Discriminant (Id : E; V : E) is
3139 end Set_CR_Discriminant;
3141 procedure Set_Debug_Info_Off (Id : E; V : B := True) is
3143 Set_Flag166 (Id, V);
3144 end Set_Debug_Info_Off;
3146 procedure Set_Debug_Renaming_Link (Id : E; V : E) is
3149 end Set_Debug_Renaming_Link;
3151 procedure Set_Default_Expr_Function (Id : E; V : E) is
3153 pragma Assert (Is_Formal (Id));
3155 end Set_Default_Expr_Function;
3157 procedure Set_Default_Expressions_Processed (Id : E; V : B := True) is
3159 Set_Flag108 (Id, V);
3160 end Set_Default_Expressions_Processed;
3162 procedure Set_Default_Value (Id : E; V : N) is
3164 pragma Assert (Is_Formal (Id));
3166 end Set_Default_Value;
3168 procedure Set_Delay_Cleanups (Id : E; V : B := True) is
3172 or else Is_Task_Type (Id)
3173 or else Ekind (Id) = E_Block);
3174 Set_Flag114 (Id, V);
3175 end Set_Delay_Cleanups;
3177 procedure Set_Delay_Subprogram_Descriptors (Id : E; V : B := True) is
3180 (Is_Subprogram (Id) or else Ekind_In (Id, E_Package, E_Package_Body));
3182 end Set_Delay_Subprogram_Descriptors;
3184 procedure Set_Delta_Value (Id : E; V : R) is
3186 pragma Assert (Is_Fixed_Point_Type (Id));
3187 Set_Ureal18 (Id, V);
3188 end Set_Delta_Value;
3190 procedure Set_Dependent_Instances (Id : E; V : L) is
3192 pragma Assert (Is_Generic_Instance (Id));
3194 end Set_Dependent_Instances;
3196 procedure Set_Depends_On_Private (Id : E; V : B := True) is
3198 pragma Assert (Nkind (Id) in N_Entity);
3200 end Set_Depends_On_Private;
3202 procedure Set_Digits_Value (Id : E; V : U) is
3205 (Is_Floating_Point_Type (Id)
3206 or else Is_Decimal_Fixed_Point_Type (Id));
3208 end Set_Digits_Value;
3210 procedure Set_Directly_Designated_Type (Id : E; V : E) is
3213 end Set_Directly_Designated_Type;
3215 procedure Set_Discard_Names (Id : E; V : B := True) is
3218 end Set_Discard_Names;
3220 procedure Set_Discriminal (Id : E; V : E) is
3222 pragma Assert (Ekind (Id) = E_Discriminant);
3224 end Set_Discriminal;
3226 procedure Set_Discriminal_Link (Id : E; V : E) is
3229 end Set_Discriminal_Link;
3231 procedure Set_Discriminant_Checking_Func (Id : E; V : E) is
3233 pragma Assert (Ekind (Id) = E_Component);
3235 end Set_Discriminant_Checking_Func;
3237 procedure Set_Discriminant_Constraint (Id : E; V : L) is
3239 pragma Assert (Nkind (Id) in N_Entity);
3240 Set_Elist21 (Id, V);
3241 end Set_Discriminant_Constraint;
3243 procedure Set_Discriminant_Default_Value (Id : E; V : N) is
3246 end Set_Discriminant_Default_Value;
3248 procedure Set_Discriminant_Number (Id : E; V : U) is
3251 end Set_Discriminant_Number;
3253 procedure Set_Dispatch_Table_Wrappers (Id : E; V : L) is
3255 pragma Assert (Is_Tagged_Type (Id) and then Id = Base_Type (Id));
3256 Set_Elist26 (Id, V);
3257 end Set_Dispatch_Table_Wrappers;
3259 procedure Set_DT_Entry_Count (Id : E; V : U) is
3261 pragma Assert (Ekind (Id) = E_Component);
3263 end Set_DT_Entry_Count;
3265 procedure Set_DT_Offset_To_Top_Func (Id : E; V : E) is
3267 pragma Assert (Ekind (Id) = E_Component and then Is_Tag (Id));
3269 end Set_DT_Offset_To_Top_Func;
3271 procedure Set_DT_Position (Id : E; V : U) is
3273 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3275 end Set_DT_Position;
3277 procedure Set_DTC_Entity (Id : E; V : E) is
3279 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3283 procedure Set_Elaborate_Body_Desirable (Id : E; V : B := True) is
3285 pragma Assert (Ekind (Id) = E_Package);
3286 Set_Flag210 (Id, V);
3287 end Set_Elaborate_Body_Desirable;
3289 procedure Set_Elaboration_Entity (Id : E; V : E) is
3294 Ekind (Id) = E_Package
3296 Is_Generic_Unit (Id));
3298 end Set_Elaboration_Entity;
3300 procedure Set_Elaboration_Entity_Required (Id : E; V : B := True) is
3305 Ekind (Id) = E_Package
3307 Is_Generic_Unit (Id));
3308 Set_Flag174 (Id, V);
3309 end Set_Elaboration_Entity_Required;
3311 procedure Set_Enclosing_Scope (Id : E; V : E) is
3314 end Set_Enclosing_Scope;
3316 procedure Set_Entry_Accepted (Id : E; V : B := True) is
3318 pragma Assert (Is_Entry (Id));
3319 Set_Flag152 (Id, V);
3320 end Set_Entry_Accepted;
3322 procedure Set_Entry_Bodies_Array (Id : E; V : E) is
3325 end Set_Entry_Bodies_Array;
3327 procedure Set_Entry_Cancel_Parameter (Id : E; V : E) is
3330 end Set_Entry_Cancel_Parameter;
3332 procedure Set_Entry_Component (Id : E; V : E) is
3335 end Set_Entry_Component;
3337 procedure Set_Entry_Formal (Id : E; V : E) is
3340 end Set_Entry_Formal;
3342 procedure Set_Entry_Index_Constant (Id : E; V : E) is
3344 pragma Assert (Ekind (Id) = E_Entry_Index_Parameter);
3346 end Set_Entry_Index_Constant;
3348 procedure Set_Entry_Parameters_Type (Id : E; V : E) is
3351 end Set_Entry_Parameters_Type;
3353 procedure Set_Enum_Pos_To_Rep (Id : E; V : E) is
3355 pragma Assert (Ekind (Id) = E_Enumeration_Type);
3357 end Set_Enum_Pos_To_Rep;
3359 procedure Set_Enumeration_Pos (Id : E; V : U) is
3361 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3363 end Set_Enumeration_Pos;
3365 procedure Set_Enumeration_Rep (Id : E; V : U) is
3367 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3369 end Set_Enumeration_Rep;
3371 procedure Set_Enumeration_Rep_Expr (Id : E; V : N) is
3373 pragma Assert (Ekind (Id) = E_Enumeration_Literal);
3375 end Set_Enumeration_Rep_Expr;
3377 procedure Set_Equivalent_Type (Id : E; V : E) is
3380 (Ekind_In (Id, E_Class_Wide_Type,
3381 E_Class_Wide_Subtype,
3382 E_Access_Protected_Subprogram_Type,
3383 E_Anonymous_Access_Protected_Subprogram_Type,
3384 E_Access_Subprogram_Type,
3387 end Set_Equivalent_Type;
3389 procedure Set_Esize (Id : E; V : U) is
3394 procedure Set_Exception_Code (Id : E; V : U) is
3396 pragma Assert (Ekind (Id) = E_Exception);
3398 end Set_Exception_Code;
3400 procedure Set_Extra_Accessibility (Id : E; V : E) is
3402 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
3404 end Set_Extra_Accessibility;
3406 procedure Set_Extra_Constrained (Id : E; V : E) is
3408 pragma Assert (Is_Formal (Id) or else Ekind (Id) = E_Variable);
3410 end Set_Extra_Constrained;
3412 procedure Set_Extra_Formal (Id : E; V : E) is
3415 end Set_Extra_Formal;
3417 procedure Set_Extra_Formals (Id : E; V : E) is
3420 (Is_Overloadable (Id)
3421 or else Ekind_In (Id, E_Entry_Family,
3423 E_Subprogram_Type));
3425 end Set_Extra_Formals;
3427 procedure Set_Can_Use_Internal_Rep (Id : E; V : B := True) is
3430 (Is_Access_Subprogram_Type (Id)
3431 and then Id = Base_Type (Id));
3432 Set_Flag229 (Id, V);
3433 end Set_Can_Use_Internal_Rep;
3435 procedure Set_Finalization_Chain_Entity (Id : E; V : E) is
3438 end Set_Finalization_Chain_Entity;
3440 procedure Set_Finalize_Storage_Only (Id : E; V : B := True) is
3442 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
3443 Set_Flag158 (Id, V);
3444 end Set_Finalize_Storage_Only;
3446 procedure Set_First_Entity (Id : E; V : E) is
3449 end Set_First_Entity;
3451 procedure Set_First_Exit_Statement (Id : E; V : N) is
3453 pragma Assert (Ekind (Id) = E_Loop);
3455 end Set_First_Exit_Statement;
3457 procedure Set_First_Index (Id : E; V : N) is
3459 pragma Assert (Is_Array_Type (Id) or else Is_String_Type (Id));
3461 end Set_First_Index;
3463 procedure Set_First_Literal (Id : E; V : E) is
3465 pragma Assert (Is_Enumeration_Type (Id));
3467 end Set_First_Literal;
3469 procedure Set_First_Optional_Parameter (Id : E; V : E) is
3471 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3473 end Set_First_Optional_Parameter;
3475 procedure Set_First_Private_Entity (Id : E; V : E) is
3477 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package)
3478 or else Ekind (Id) in Concurrent_Kind);
3480 end Set_First_Private_Entity;
3482 procedure Set_First_Rep_Item (Id : E; V : N) is
3485 end Set_First_Rep_Item;
3487 procedure Set_Freeze_Node (Id : E; V : N) is
3490 end Set_Freeze_Node;
3492 procedure Set_From_With_Type (Id : E; V : B := True) is
3496 or else Ekind (Id) = E_Package);
3497 Set_Flag159 (Id, V);
3498 end Set_From_With_Type;
3500 procedure Set_Full_View (Id : E; V : E) is
3502 pragma Assert (Is_Type (Id) or else Ekind (Id) = E_Constant);
3506 procedure Set_Generic_Homonym (Id : E; V : E) is
3509 end Set_Generic_Homonym;
3511 procedure Set_Generic_Renamings (Id : E; V : L) is
3513 Set_Elist23 (Id, V);
3514 end Set_Generic_Renamings;
3516 procedure Set_Handler_Records (Id : E; V : S) is
3519 end Set_Handler_Records;
3521 procedure Set_Has_Aliased_Components (Id : E; V : B := True) is
3523 pragma Assert (Id = Base_Type (Id));
3524 Set_Flag135 (Id, V);
3525 end Set_Has_Aliased_Components;
3527 procedure Set_Has_Alignment_Clause (Id : E; V : B := True) is
3530 end Set_Has_Alignment_Clause;
3532 procedure Set_Has_All_Calls_Remote (Id : E; V : B := True) is
3535 end Set_Has_All_Calls_Remote;
3537 procedure Set_Has_Anon_Block_Suffix (Id : E; V : B := True) is
3539 Set_Flag201 (Id, V);
3540 end Set_Has_Anon_Block_Suffix;
3542 procedure Set_Has_Atomic_Components (Id : E; V : B := True) is
3544 pragma Assert (not Is_Type (Id) or else Id = Base_Type (Id));
3546 end Set_Has_Atomic_Components;
3548 procedure Set_Has_Biased_Representation (Id : E; V : B := True) is
3551 ((V = False) or else (Is_Discrete_Type (Id) or else Is_Object (Id)));
3552 Set_Flag139 (Id, V);
3553 end Set_Has_Biased_Representation;
3555 procedure Set_Has_Completion (Id : E; V : B := True) is
3558 end Set_Has_Completion;
3560 procedure Set_Has_Completion_In_Body (Id : E; V : B := True) is
3562 pragma Assert (Is_Type (Id));
3564 end Set_Has_Completion_In_Body;
3566 procedure Set_Has_Complex_Representation (Id : E; V : B := True) is
3568 pragma Assert (Ekind (Id) = E_Record_Type);
3569 Set_Flag140 (Id, V);
3570 end Set_Has_Complex_Representation;
3572 procedure Set_Has_Component_Size_Clause (Id : E; V : B := True) is
3574 pragma Assert (Ekind (Id) = E_Array_Type);
3576 end Set_Has_Component_Size_Clause;
3578 procedure Set_Has_Constrained_Partial_View (Id : E; V : B := True) is
3580 pragma Assert (Is_Type (Id));
3581 Set_Flag187 (Id, V);
3582 end Set_Has_Constrained_Partial_View;
3584 procedure Set_Has_Contiguous_Rep (Id : E; V : B := True) is
3586 Set_Flag181 (Id, V);
3587 end Set_Has_Contiguous_Rep;
3589 procedure Set_Has_Controlled_Component (Id : E; V : B := True) is
3591 pragma Assert (Id = Base_Type (Id));
3593 end Set_Has_Controlled_Component;
3595 procedure Set_Has_Controlling_Result (Id : E; V : B := True) is
3598 end Set_Has_Controlling_Result;
3600 procedure Set_Has_Convention_Pragma (Id : E; V : B := True) is
3602 Set_Flag119 (Id, V);
3603 end Set_Has_Convention_Pragma;
3605 procedure Set_Has_Delayed_Freeze (Id : E; V : B := True) is
3607 pragma Assert (Nkind (Id) in N_Entity);
3609 end Set_Has_Delayed_Freeze;
3611 procedure Set_Has_Discriminants (Id : E; V : B := True) is
3613 pragma Assert (Nkind (Id) in N_Entity);
3615 end Set_Has_Discriminants;
3617 procedure Set_Has_Dispatch_Table (Id : E; V : B := True) is
3619 pragma Assert (Ekind (Id) = E_Record_Type
3620 and then Is_Tagged_Type (Id));
3621 Set_Flag220 (Id, V);
3622 end Set_Has_Dispatch_Table;
3624 procedure Set_Has_Enumeration_Rep_Clause (Id : E; V : B := True) is
3626 pragma Assert (Is_Enumeration_Type (Id));
3628 end Set_Has_Enumeration_Rep_Clause;
3630 procedure Set_Has_Exit (Id : E; V : B := True) is
3635 procedure Set_Has_External_Tag_Rep_Clause (Id : E; V : B := True) is
3637 pragma Assert (Is_Tagged_Type (Id));
3638 Set_Flag110 (Id, V);
3639 end Set_Has_External_Tag_Rep_Clause;
3641 procedure Set_Has_Forward_Instantiation (Id : E; V : B := True) is
3643 Set_Flag175 (Id, V);
3644 end Set_Has_Forward_Instantiation;
3646 procedure Set_Has_Fully_Qualified_Name (Id : E; V : B := True) is
3648 Set_Flag173 (Id, V);
3649 end Set_Has_Fully_Qualified_Name;
3651 procedure Set_Has_Gigi_Rep_Item (Id : E; V : B := True) is
3654 end Set_Has_Gigi_Rep_Item;
3656 procedure Set_Has_Homonym (Id : E; V : B := True) is
3659 end Set_Has_Homonym;
3661 procedure Set_Has_Initial_Value (Id : E; V : B := True) is
3663 pragma Assert (Ekind_In (Id, E_Variable, E_Out_Parameter));
3664 Set_Flag219 (Id, V);
3665 end Set_Has_Initial_Value;
3667 procedure Set_Has_Machine_Radix_Clause (Id : E; V : B := True) is
3669 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
3671 end Set_Has_Machine_Radix_Clause;
3673 procedure Set_Has_Master_Entity (Id : E; V : B := True) is
3676 end Set_Has_Master_Entity;
3678 procedure Set_Has_Missing_Return (Id : E; V : B := True) is
3680 pragma Assert (Ekind_In (Id, E_Function, E_Generic_Function));
3681 Set_Flag142 (Id, V);
3682 end Set_Has_Missing_Return;
3684 procedure Set_Has_Nested_Block_With_Handler (Id : E; V : B := True) is
3686 Set_Flag101 (Id, V);
3687 end Set_Has_Nested_Block_With_Handler;
3689 procedure Set_Has_Up_Level_Access (Id : E; V : B := True) is
3691 pragma Assert (Ekind_In (Id, E_Variable, E_Constant, E_Loop_Parameter));
3692 Set_Flag215 (Id, V);
3693 end Set_Has_Up_Level_Access;
3695 procedure Set_Has_Non_Standard_Rep (Id : E; V : B := True) is
3697 pragma Assert (Id = Base_Type (Id));
3699 end Set_Has_Non_Standard_Rep;
3701 procedure Set_Has_Object_Size_Clause (Id : E; V : B := True) is
3703 pragma Assert (Is_Type (Id));
3704 Set_Flag172 (Id, V);
3705 end Set_Has_Object_Size_Clause;
3707 procedure Set_Has_Per_Object_Constraint (Id : E; V : B := True) is
3709 Set_Flag154 (Id, V);
3710 end Set_Has_Per_Object_Constraint;
3712 procedure Set_Has_Persistent_BSS (Id : E; V : B := True) is
3714 Set_Flag188 (Id, V);
3715 end Set_Has_Persistent_BSS;
3717 procedure Set_Has_Postconditions (Id : E; V : B := True) is
3719 pragma Assert (Is_Subprogram (Id));
3720 Set_Flag240 (Id, V);
3721 end Set_Has_Postconditions;
3723 procedure Set_Has_Pragma_Controlled (Id : E; V : B := True) is
3725 pragma Assert (Is_Access_Type (Id));
3726 Set_Flag27 (Base_Type (Id), V);
3727 end Set_Has_Pragma_Controlled;
3729 procedure Set_Has_Pragma_Elaborate_Body (Id : E; V : B := True) is
3731 Set_Flag150 (Id, V);
3732 end Set_Has_Pragma_Elaborate_Body;
3734 procedure Set_Has_Pragma_Inline (Id : E; V : B := True) is
3736 Set_Flag157 (Id, V);
3737 end Set_Has_Pragma_Inline;
3739 procedure Set_Has_Pragma_Inline_Always (Id : E; V : B := True) is
3741 Set_Flag230 (Id, V);
3742 end Set_Has_Pragma_Inline_Always;
3744 procedure Set_Has_Pragma_Pack (Id : E; V : B := True) is
3746 pragma Assert (Is_Array_Type (Id) or else Is_Record_Type (Id));
3747 pragma Assert (Id = Base_Type (Id));
3748 Set_Flag121 (Id, V);
3749 end Set_Has_Pragma_Pack;
3751 procedure Set_Has_Pragma_Preelab_Init (Id : E; V : B := True) is
3753 Set_Flag221 (Id, V);
3754 end Set_Has_Pragma_Preelab_Init;
3756 procedure Set_Has_Pragma_Pure (Id : E; V : B := True) is
3758 Set_Flag203 (Id, V);
3759 end Set_Has_Pragma_Pure;
3761 procedure Set_Has_Pragma_Pure_Function (Id : E; V : B := True) is
3763 Set_Flag179 (Id, V);
3764 end Set_Has_Pragma_Pure_Function;
3766 procedure Set_Has_Pragma_Thread_Local_Storage (Id : E; V : B := True) is
3768 Set_Flag169 (Id, V);
3769 end Set_Has_Pragma_Thread_Local_Storage;
3771 procedure Set_Has_Pragma_Unmodified (Id : E; V : B := True) is
3773 Set_Flag233 (Id, V);
3774 end Set_Has_Pragma_Unmodified;
3776 procedure Set_Has_Pragma_Unreferenced (Id : E; V : B := True) is
3778 Set_Flag180 (Id, V);
3779 end Set_Has_Pragma_Unreferenced;
3781 procedure Set_Has_Pragma_Unreferenced_Objects (Id : E; V : B := True) is
3783 pragma Assert (Is_Type (Id));
3784 Set_Flag212 (Id, V);
3785 end Set_Has_Pragma_Unreferenced_Objects;
3787 procedure Set_Has_Primitive_Operations (Id : E; V : B := True) is
3789 pragma Assert (Id = Base_Type (Id));
3790 Set_Flag120 (Id, V);
3791 end Set_Has_Primitive_Operations;
3793 procedure Set_Has_Private_Declaration (Id : E; V : B := True) is
3795 Set_Flag155 (Id, V);
3796 end Set_Has_Private_Declaration;
3798 procedure Set_Has_Qualified_Name (Id : E; V : B := True) is
3800 Set_Flag161 (Id, V);
3801 end Set_Has_Qualified_Name;
3803 procedure Set_Has_RACW (Id : E; V : B := True) is
3805 pragma Assert (Ekind (Id) = E_Package);
3806 Set_Flag214 (Id, V);
3809 procedure Set_Has_Record_Rep_Clause (Id : E; V : B := True) is
3811 pragma Assert (Id = Base_Type (Id));
3813 end Set_Has_Record_Rep_Clause;
3815 procedure Set_Has_Recursive_Call (Id : E; V : B := True) is
3817 pragma Assert (Is_Subprogram (Id));
3818 Set_Flag143 (Id, V);
3819 end Set_Has_Recursive_Call;
3821 procedure Set_Has_Size_Clause (Id : E; V : B := True) is
3824 end Set_Has_Size_Clause;
3826 procedure Set_Has_Small_Clause (Id : E; V : B := True) is
3829 end Set_Has_Small_Clause;
3831 procedure Set_Has_Specified_Layout (Id : E; V : B := True) is
3833 pragma Assert (Id = Base_Type (Id));
3834 Set_Flag100 (Id, V);
3835 end Set_Has_Specified_Layout;
3837 procedure Set_Has_Specified_Stream_Input (Id : E; V : B := True) is
3839 pragma Assert (Is_Type (Id));
3840 Set_Flag190 (Id, V);
3841 end Set_Has_Specified_Stream_Input;
3843 procedure Set_Has_Specified_Stream_Output (Id : E; V : B := True) is
3845 pragma Assert (Is_Type (Id));
3846 Set_Flag191 (Id, V);
3847 end Set_Has_Specified_Stream_Output;
3849 procedure Set_Has_Specified_Stream_Read (Id : E; V : B := True) is
3851 pragma Assert (Is_Type (Id));
3852 Set_Flag192 (Id, V);
3853 end Set_Has_Specified_Stream_Read;
3855 procedure Set_Has_Specified_Stream_Write (Id : E; V : B := True) is
3857 pragma Assert (Is_Type (Id));
3858 Set_Flag193 (Id, V);
3859 end Set_Has_Specified_Stream_Write;
3861 procedure Set_Has_Static_Discriminants (Id : E; V : B := True) is
3863 Set_Flag211 (Id, V);
3864 end Set_Has_Static_Discriminants;
3866 procedure Set_Has_Storage_Size_Clause (Id : E; V : B := True) is
3868 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
3869 pragma Assert (Id = Base_Type (Id));
3871 end Set_Has_Storage_Size_Clause;
3873 procedure Set_Has_Stream_Size_Clause (Id : E; V : B := True) is
3875 pragma Assert (Is_Elementary_Type (Id));
3876 Set_Flag184 (Id, V);
3877 end Set_Has_Stream_Size_Clause;
3879 procedure Set_Has_Subprogram_Descriptor (Id : E; V : B := True) is
3882 end Set_Has_Subprogram_Descriptor;
3884 procedure Set_Has_Task (Id : E; V : B := True) is
3886 pragma Assert (Id = Base_Type (Id));
3890 procedure Set_Has_Thunks (Id : E; V : B := True) is
3892 pragma Assert (Is_Tag (Id)
3893 and then Ekind (Id) = E_Constant);
3894 Set_Flag228 (Id, V);
3897 procedure Set_Has_Unchecked_Union (Id : E; V : B := True) is
3899 pragma Assert (Id = Base_Type (Id));
3900 Set_Flag123 (Id, V);
3901 end Set_Has_Unchecked_Union;
3903 procedure Set_Has_Unknown_Discriminants (Id : E; V : B := True) is
3905 pragma Assert (Is_Type (Id));
3907 end Set_Has_Unknown_Discriminants;
3909 procedure Set_Has_Volatile_Components (Id : E; V : B := True) is
3911 pragma Assert (not Is_Type (Id) or else Id = Base_Type (Id));
3913 end Set_Has_Volatile_Components;
3915 procedure Set_Has_Xref_Entry (Id : E; V : B := True) is
3917 Set_Flag182 (Id, V);
3918 end Set_Has_Xref_Entry;
3920 procedure Set_Hiding_Loop_Variable (Id : E; V : E) is
3922 pragma Assert (Ekind (Id) = E_Variable);
3924 end Set_Hiding_Loop_Variable;
3926 procedure Set_Homonym (Id : E; V : E) is
3928 pragma Assert (Id /= V);
3932 procedure Set_Implemented_By_Entry (Id : E; V : B := True) is
3934 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
3935 Set_Flag232 (Id, V);
3936 end Set_Implemented_By_Entry;
3938 procedure Set_Interfaces (Id : E; V : L) is
3940 pragma Assert (Is_Record_Type (Id));
3941 Set_Elist25 (Id, V);
3944 procedure Set_Interface_Alias (Id : E; V : E) is
3948 and then Is_Hidden (Id)
3949 and then (Ekind_In (Id, E_Procedure, E_Function)));
3951 end Set_Interface_Alias;
3953 procedure Set_In_Package_Body (Id : E; V : B := True) is
3956 end Set_In_Package_Body;
3958 procedure Set_In_Private_Part (Id : E; V : B := True) is
3961 end Set_In_Private_Part;
3963 procedure Set_In_Use (Id : E; V : B := True) is
3965 pragma Assert (Nkind (Id) in N_Entity);
3969 procedure Set_Inner_Instances (Id : E; V : L) is
3971 Set_Elist23 (Id, V);
3972 end Set_Inner_Instances;
3974 procedure Set_Interface_Name (Id : E; V : N) is
3977 end Set_Interface_Name;
3979 procedure Set_Is_Abstract_Subprogram (Id : E; V : B := True) is
3981 pragma Assert (Is_Overloadable (Id));
3983 end Set_Is_Abstract_Subprogram;
3985 procedure Set_Is_Abstract_Type (Id : E; V : B := True) is
3987 pragma Assert (Is_Type (Id));
3988 Set_Flag146 (Id, V);
3989 end Set_Is_Abstract_Type;
3991 procedure Set_Is_Local_Anonymous_Access (Id : E; V : B := True) is
3993 pragma Assert (Is_Access_Type (Id));
3994 Set_Flag194 (Id, V);
3995 end Set_Is_Local_Anonymous_Access;
3997 procedure Set_Is_Access_Constant (Id : E; V : B := True) is
3999 pragma Assert (Is_Access_Type (Id));
4001 end Set_Is_Access_Constant;
4003 procedure Set_Is_Ada_2005_Only (Id : E; V : B := True) is
4005 Set_Flag185 (Id, V);
4006 end Set_Is_Ada_2005_Only;
4008 procedure Set_Is_Aliased (Id : E; V : B := True) is
4010 pragma Assert (Nkind (Id) in N_Entity);
4014 procedure Set_Is_AST_Entry (Id : E; V : B := True) is
4016 pragma Assert (Is_Entry (Id));
4017 Set_Flag132 (Id, V);
4018 end Set_Is_AST_Entry;
4020 procedure Set_Is_Asynchronous (Id : E; V : B := True) is
4023 (Ekind (Id) = E_Procedure or else Is_Type (Id));
4025 end Set_Is_Asynchronous;
4027 procedure Set_Is_Atomic (Id : E; V : B := True) is
4032 procedure Set_Is_Bit_Packed_Array (Id : E; V : B := True) is
4034 pragma Assert ((not V)
4035 or else (Is_Array_Type (Id) and then Id = Base_Type (Id)));
4037 Set_Flag122 (Id, V);
4038 end Set_Is_Bit_Packed_Array;
4040 procedure Set_Is_Called (Id : E; V : B := True) is
4042 pragma Assert (Ekind_In (Id, E_Procedure, E_Function));
4043 Set_Flag102 (Id, V);
4046 procedure Set_Is_Character_Type (Id : E; V : B := True) is
4049 end Set_Is_Character_Type;
4051 procedure Set_Is_Child_Unit (Id : E; V : B := True) is
4054 end Set_Is_Child_Unit;
4056 procedure Set_Is_Class_Wide_Equivalent_Type (Id : E; V : B := True) is
4059 end Set_Is_Class_Wide_Equivalent_Type;
4061 procedure Set_Is_Compilation_Unit (Id : E; V : B := True) is
4063 Set_Flag149 (Id, V);
4064 end Set_Is_Compilation_Unit;
4066 procedure Set_Is_Completely_Hidden (Id : E; V : B := True) is
4068 pragma Assert (Ekind (Id) = E_Discriminant);
4069 Set_Flag103 (Id, V);
4070 end Set_Is_Completely_Hidden;
4072 procedure Set_Is_Concurrent_Record_Type (Id : E; V : B := True) is
4075 end Set_Is_Concurrent_Record_Type;
4077 procedure Set_Is_Constr_Subt_For_U_Nominal (Id : E; V : B := True) is
4080 end Set_Is_Constr_Subt_For_U_Nominal;
4082 procedure Set_Is_Constr_Subt_For_UN_Aliased (Id : E; V : B := True) is
4084 Set_Flag141 (Id, V);
4085 end Set_Is_Constr_Subt_For_UN_Aliased;
4087 procedure Set_Is_Constrained (Id : E; V : B := True) is
4089 pragma Assert (Nkind (Id) in N_Entity);
4091 end Set_Is_Constrained;
4093 procedure Set_Is_Constructor (Id : E; V : B := True) is
4096 end Set_Is_Constructor;
4098 procedure Set_Is_Controlled (Id : E; V : B := True) is
4100 pragma Assert (Id = Base_Type (Id));
4102 end Set_Is_Controlled;
4104 procedure Set_Is_Controlling_Formal (Id : E; V : B := True) is
4106 pragma Assert (Is_Formal (Id));
4108 end Set_Is_Controlling_Formal;
4110 procedure Set_Is_CPP_Class (Id : E; V : B := True) is
4113 end Set_Is_CPP_Class;
4115 procedure Set_Is_Descendent_Of_Address (Id : E; V : B := True) is
4117 pragma Assert (Is_Type (Id));
4118 Set_Flag223 (Id, V);
4119 end Set_Is_Descendent_Of_Address;
4121 procedure Set_Is_Discrim_SO_Function (Id : E; V : B := True) is
4123 Set_Flag176 (Id, V);
4124 end Set_Is_Discrim_SO_Function;
4126 procedure Set_Is_Dispatch_Table_Entity (Id : E; V : B := True) is
4128 Set_Flag234 (Id, V);
4129 end Set_Is_Dispatch_Table_Entity;
4131 procedure Set_Is_Dispatching_Operation (Id : E; V : B := True) is
4136 Is_Overloadable (Id)
4138 Ekind (Id) = E_Subprogram_Type);
4141 end Set_Is_Dispatching_Operation;
4143 procedure Set_Is_Eliminated (Id : E; V : B := True) is
4145 Set_Flag124 (Id, V);
4146 end Set_Is_Eliminated;
4148 procedure Set_Is_Entry_Formal (Id : E; V : B := True) is
4151 end Set_Is_Entry_Formal;
4153 procedure Set_Is_Exported (Id : E; V : B := True) is
4156 end Set_Is_Exported;
4158 procedure Set_Is_First_Subtype (Id : E; V : B := True) is
4161 end Set_Is_First_Subtype;
4163 procedure Set_Is_For_Access_Subtype (Id : E; V : B := True) is
4165 pragma Assert (Ekind_In (Id, E_Record_Subtype, E_Private_Subtype));
4166 Set_Flag118 (Id, V);
4167 end Set_Is_For_Access_Subtype;
4169 procedure Set_Is_Formal_Subprogram (Id : E; V : B := True) is
4171 Set_Flag111 (Id, V);
4172 end Set_Is_Formal_Subprogram;
4174 procedure Set_Is_Frozen (Id : E; V : B := True) is
4176 pragma Assert (Nkind (Id) in N_Entity);
4180 procedure Set_Is_Generic_Actual_Type (Id : E; V : B := True) is
4182 pragma Assert (Is_Type (Id));
4184 end Set_Is_Generic_Actual_Type;
4186 procedure Set_Is_Generic_Instance (Id : E; V : B := True) is
4188 Set_Flag130 (Id, V);
4189 end Set_Is_Generic_Instance;
4191 procedure Set_Is_Generic_Type (Id : E; V : B := True) is
4193 pragma Assert (Nkind (Id) in N_Entity);
4195 end Set_Is_Generic_Type;
4197 procedure Set_Is_Hidden (Id : E; V : B := True) is
4202 procedure Set_Is_Hidden_Open_Scope (Id : E; V : B := True) is
4204 Set_Flag171 (Id, V);
4205 end Set_Is_Hidden_Open_Scope;
4207 procedure Set_Is_Immediately_Visible (Id : E; V : B := True) is
4209 pragma Assert (Nkind (Id) in N_Entity);
4211 end Set_Is_Immediately_Visible;
4213 procedure Set_Is_Imported (Id : E; V : B := True) is
4216 end Set_Is_Imported;
4218 procedure Set_Is_Inlined (Id : E; V : B := True) is
4223 procedure Set_Is_Interface (Id : E; V : B := True) is
4226 (Ekind_In (Id, E_Record_Type,
4228 E_Record_Type_With_Private,
4229 E_Record_Subtype_With_Private,
4231 E_Class_Wide_Subtype));
4232 Set_Flag186 (Id, V);
4233 end Set_Is_Interface;
4235 procedure Set_Is_Instantiated (Id : E; V : B := True) is
4237 Set_Flag126 (Id, V);
4238 end Set_Is_Instantiated;
4240 procedure Set_Is_Internal (Id : E; V : B := True) is
4242 pragma Assert (Nkind (Id) in N_Entity);
4244 end Set_Is_Internal;
4246 procedure Set_Is_Interrupt_Handler (Id : E; V : B := True) is
4248 pragma Assert (Nkind (Id) in N_Entity);
4250 end Set_Is_Interrupt_Handler;
4252 procedure Set_Is_Intrinsic_Subprogram (Id : E; V : B := True) is
4255 end Set_Is_Intrinsic_Subprogram;
4257 procedure Set_Is_Itype (Id : E; V : B := True) is
4262 procedure Set_Is_Known_Non_Null (Id : E; V : B := True) is
4265 end Set_Is_Known_Non_Null;
4267 procedure Set_Is_Known_Null (Id : E; V : B := True) is
4269 Set_Flag204 (Id, V);
4270 end Set_Is_Known_Null;
4272 procedure Set_Is_Known_Valid (Id : E; V : B := True) is
4274 Set_Flag170 (Id, V);
4275 end Set_Is_Known_Valid;
4277 procedure Set_Is_Limited_Composite (Id : E; V : B := True) is
4279 pragma Assert (Is_Type (Id));
4280 Set_Flag106 (Id, V);
4281 end Set_Is_Limited_Composite;
4283 procedure Set_Is_Limited_Interface (Id : E; V : B := True) is
4285 pragma Assert (Is_Interface (Id));
4286 Set_Flag197 (Id, V);
4287 end Set_Is_Limited_Interface;
4289 procedure Set_Is_Limited_Record (Id : E; V : B := True) is
4292 end Set_Is_Limited_Record;
4294 procedure Set_Is_Machine_Code_Subprogram (Id : E; V : B := True) is
4296 pragma Assert (Is_Subprogram (Id));
4297 Set_Flag137 (Id, V);
4298 end Set_Is_Machine_Code_Subprogram;
4300 procedure Set_Is_Non_Static_Subtype (Id : E; V : B := True) is
4302 pragma Assert (Is_Type (Id));
4303 Set_Flag109 (Id, V);
4304 end Set_Is_Non_Static_Subtype;
4306 procedure Set_Is_Null_Init_Proc (Id : E; V : B := True) is
4308 pragma Assert (Ekind (Id) = E_Procedure);
4309 Set_Flag178 (Id, V);
4310 end Set_Is_Null_Init_Proc;
4312 procedure Set_Is_Obsolescent (Id : E; V : B := True) is
4314 Set_Flag153 (Id, V);
4315 end Set_Is_Obsolescent;
4317 procedure Set_Is_Only_Out_Parameter (Id : E; V : B := True) is
4319 pragma Assert (Ekind (Id) = E_Out_Parameter);
4320 Set_Flag226 (Id, V);
4321 end Set_Is_Only_Out_Parameter;
4323 procedure Set_Is_Optional_Parameter (Id : E; V : B := True) is
4325 pragma Assert (Is_Formal (Id));
4326 Set_Flag134 (Id, V);
4327 end Set_Is_Optional_Parameter;
4329 procedure Set_Is_Overriding_Operation (Id : E; V : B := True) is
4331 pragma Assert (Is_Subprogram (Id));
4333 end Set_Is_Overriding_Operation;
4335 procedure Set_Is_Package_Body_Entity (Id : E; V : B := True) is
4337 Set_Flag160 (Id, V);
4338 end Set_Is_Package_Body_Entity;
4340 procedure Set_Is_Packed (Id : E; V : B := True) is
4342 pragma Assert (Id = Base_Type (Id));
4346 procedure Set_Is_Packed_Array_Type (Id : E; V : B := True) is
4348 Set_Flag138 (Id, V);
4349 end Set_Is_Packed_Array_Type;
4351 procedure Set_Is_Potentially_Use_Visible (Id : E; V : B := True) is
4353 pragma Assert (Nkind (Id) in N_Entity);
4355 end Set_Is_Potentially_Use_Visible;
4357 procedure Set_Is_Preelaborated (Id : E; V : B := True) is
4360 end Set_Is_Preelaborated;
4362 procedure Set_Is_Primitive (Id : E; V : B := True) is
4365 (Is_Overloadable (Id)
4366 or else Ekind_In (Id, E_Generic_Function, E_Generic_Procedure));
4367 Set_Flag218 (Id, V);
4368 end Set_Is_Primitive;
4370 procedure Set_Is_Primitive_Wrapper (Id : E; V : B := True) is
4372 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
4373 Set_Flag195 (Id, V);
4374 end Set_Is_Primitive_Wrapper;
4376 procedure Set_Is_Private_Composite (Id : E; V : B := True) is
4378 pragma Assert (Is_Type (Id));
4379 Set_Flag107 (Id, V);
4380 end Set_Is_Private_Composite;
4382 procedure Set_Is_Private_Descendant (Id : E; V : B := True) is
4385 end Set_Is_Private_Descendant;
4387 procedure Set_Is_Private_Primitive (Id : E; V : B := True) is
4389 pragma Assert (Ekind_In (Id, E_Function, E_Procedure));
4390 Set_Flag245 (Id, V);
4391 end Set_Is_Private_Primitive;
4393 procedure Set_Is_Protected_Interface (Id : E; V : B := True) is
4395 pragma Assert (Is_Interface (Id));
4396 Set_Flag198 (Id, V);
4397 end Set_Is_Protected_Interface;
4399 procedure Set_Is_Public (Id : E; V : B := True) is
4401 pragma Assert (Nkind (Id) in N_Entity);
4405 procedure Set_Is_Pure (Id : E; V : B := True) is
4410 procedure Set_Is_Pure_Unit_Access_Type (Id : E; V : B := True) is
4412 pragma Assert (Is_Access_Type (Id));
4413 Set_Flag189 (Id, V);
4414 end Set_Is_Pure_Unit_Access_Type;
4416 procedure Set_Is_RACW_Stub_Type (Id : E; V : B := True) is
4418 pragma Assert (Is_Type (Id));
4419 Set_Flag244 (Id, V);
4420 end Set_Is_RACW_Stub_Type;
4422 procedure Set_Is_Raised (Id : E; V : B := True) is
4424 pragma Assert (Ekind (Id) = E_Exception);
4425 Set_Flag224 (Id, V);
4428 procedure Set_Is_Remote_Call_Interface (Id : E; V : B := True) is
4431 end Set_Is_Remote_Call_Interface;
4433 procedure Set_Is_Remote_Types (Id : E; V : B := True) is
4436 end Set_Is_Remote_Types;
4438 procedure Set_Is_Renaming_Of_Object (Id : E; V : B := True) is
4440 Set_Flag112 (Id, V);
4441 end Set_Is_Renaming_Of_Object;
4443 procedure Set_Is_Return_Object (Id : E; V : B := True) is
4445 Set_Flag209 (Id, V);
4446 end Set_Is_Return_Object;
4448 procedure Set_Is_Shared_Passive (Id : E; V : B := True) is
4451 end Set_Is_Shared_Passive;
4453 procedure Set_Is_Statically_Allocated (Id : E; V : B := True) is
4457 or else Ekind_In (Id, E_Exception,
4462 end Set_Is_Statically_Allocated;
4464 procedure Set_Is_Synchronized_Interface (Id : E; V : B := True) is
4466 pragma Assert (Is_Interface (Id));
4467 Set_Flag199 (Id, V);
4468 end Set_Is_Synchronized_Interface;
4470 procedure Set_Is_Tag (Id : E; V : B := True) is
4472 pragma Assert (Ekind_In (Id, E_Component, E_Constant));
4476 procedure Set_Is_Tagged_Type (Id : E; V : B := True) is
4479 end Set_Is_Tagged_Type;
4481 procedure Set_Is_Task_Interface (Id : E; V : B := True) is
4483 pragma Assert (Is_Interface (Id));
4484 Set_Flag200 (Id, V);
4485 end Set_Is_Task_Interface;
4487 procedure Set_Is_Thunk (Id : E; V : B := True) is
4489 Set_Flag225 (Id, V);
4492 procedure Set_Is_Trivial_Subprogram (Id : E; V : B := True) is
4494 Set_Flag235 (Id, V);
4495 end Set_Is_Trivial_Subprogram;
4497 procedure Set_Is_True_Constant (Id : E; V : B := True) is
4499 Set_Flag163 (Id, V);
4500 end Set_Is_True_Constant;
4502 procedure Set_Is_Unchecked_Union (Id : E; V : B := True) is
4504 pragma Assert (Id = Base_Type (Id));
4505 Set_Flag117 (Id, V);
4506 end Set_Is_Unchecked_Union;
4508 procedure Set_Is_Underlying_Record_View (Id : E; V : B := True) is
4510 pragma Assert (Ekind (Id) = E_Record_Type);
4511 Set_Flag246 (Id, V);
4512 end Set_Is_Underlying_Record_View;
4514 procedure Set_Is_Unsigned_Type (Id : E; V : B := True) is
4516 pragma Assert (Is_Discrete_Or_Fixed_Point_Type (Id));
4517 Set_Flag144 (Id, V);
4518 end Set_Is_Unsigned_Type;
4520 procedure Set_Is_Valued_Procedure (Id : E; V : B := True) is
4522 pragma Assert (Ekind (Id) = E_Procedure);
4523 Set_Flag127 (Id, V);
4524 end Set_Is_Valued_Procedure;
4526 procedure Set_Is_Visible_Child_Unit (Id : E; V : B := True) is
4528 pragma Assert (Is_Child_Unit (Id));
4529 Set_Flag116 (Id, V);
4530 end Set_Is_Visible_Child_Unit;
4532 procedure Set_Is_Visible_Formal (Id : E; V : B := True) is
4534 Set_Flag206 (Id, V);
4535 end Set_Is_Visible_Formal;
4537 procedure Set_Is_VMS_Exception (Id : E; V : B := True) is
4539 pragma Assert (Ekind (Id) = E_Exception);
4540 Set_Flag133 (Id, V);
4541 end Set_Is_VMS_Exception;
4543 procedure Set_Is_Volatile (Id : E; V : B := True) is
4545 pragma Assert (Nkind (Id) in N_Entity);
4547 end Set_Is_Volatile;
4549 procedure Set_Itype_Printed (Id : E; V : B := True) is
4551 pragma Assert (Is_Itype (Id));
4552 Set_Flag202 (Id, V);
4553 end Set_Itype_Printed;
4555 procedure Set_Kill_Elaboration_Checks (Id : E; V : B := True) is
4558 end Set_Kill_Elaboration_Checks;
4560 procedure Set_Kill_Range_Checks (Id : E; V : B := True) is
4563 end Set_Kill_Range_Checks;
4565 procedure Set_Kill_Tag_Checks (Id : E; V : B := True) is
4568 end Set_Kill_Tag_Checks;
4570 procedure Set_Known_To_Have_Preelab_Init (Id : E; V : B := True) is
4572 pragma Assert (Is_Type (Id));
4573 Set_Flag207 (Id, V);
4574 end Set_Known_To_Have_Preelab_Init;
4576 procedure Set_Last_Assignment (Id : E; V : N) is
4578 pragma Assert (Is_Assignable (Id));
4580 end Set_Last_Assignment;
4582 procedure Set_Last_Entity (Id : E; V : E) is
4585 end Set_Last_Entity;
4587 procedure Set_Limited_View (Id : E; V : E) is
4589 pragma Assert (Ekind (Id) = E_Package);
4591 end Set_Limited_View;
4593 procedure Set_Lit_Indexes (Id : E; V : E) is
4595 pragma Assert (Is_Enumeration_Type (Id) and then Root_Type (Id) = Id);
4597 end Set_Lit_Indexes;
4599 procedure Set_Lit_Strings (Id : E; V : E) is
4601 pragma Assert (Is_Enumeration_Type (Id) and then Root_Type (Id) = Id);
4603 end Set_Lit_Strings;
4605 procedure Set_Low_Bound_Tested (Id : E; V : B := True) is
4607 pragma Assert (Is_Formal (Id));
4608 Set_Flag205 (Id, V);
4609 end Set_Low_Bound_Tested;
4611 procedure Set_Machine_Radix_10 (Id : E; V : B := True) is
4613 pragma Assert (Is_Decimal_Fixed_Point_Type (Id));
4615 end Set_Machine_Radix_10;
4617 procedure Set_Master_Id (Id : E; V : E) is
4619 pragma Assert (Is_Access_Type (Id));
4623 procedure Set_Materialize_Entity (Id : E; V : B := True) is
4625 Set_Flag168 (Id, V);
4626 end Set_Materialize_Entity;
4628 procedure Set_Mechanism (Id : E; V : M) is
4630 pragma Assert (Ekind (Id) = E_Function or else Is_Formal (Id));
4631 Set_Uint8 (Id, UI_From_Int (V));
4634 procedure Set_Modulus (Id : E; V : U) is
4636 pragma Assert (Ekind (Id) = E_Modular_Integer_Type);
4640 procedure Set_Must_Be_On_Byte_Boundary (Id : E; V : B := True) is
4642 pragma Assert (Is_Type (Id));
4643 Set_Flag183 (Id, V);
4644 end Set_Must_Be_On_Byte_Boundary;
4646 procedure Set_Must_Have_Preelab_Init (Id : E; V : B := True) is
4648 pragma Assert (Is_Type (Id));
4649 Set_Flag208 (Id, V);
4650 end Set_Must_Have_Preelab_Init;
4652 procedure Set_Needs_Debug_Info (Id : E; V : B := True) is
4654 Set_Flag147 (Id, V);
4655 end Set_Needs_Debug_Info;
4657 procedure Set_Needs_No_Actuals (Id : E; V : B := True) is
4660 (Is_Overloadable (Id)
4661 or else Ekind_In (Id, E_Subprogram_Type, E_Entry_Family));
4663 end Set_Needs_No_Actuals;
4665 procedure Set_Never_Set_In_Source (Id : E; V : B := True) is
4667 Set_Flag115 (Id, V);
4668 end Set_Never_Set_In_Source;
4670 procedure Set_Next_Inlined_Subprogram (Id : E; V : E) is
4673 end Set_Next_Inlined_Subprogram;
4675 procedure Set_No_Pool_Assigned (Id : E; V : B := True) is
4677 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
4678 Set_Flag131 (Id, V);
4679 end Set_No_Pool_Assigned;
4681 procedure Set_No_Return (Id : E; V : B := True) is
4684 (V = False or else Ekind_In (Id, E_Procedure, E_Generic_Procedure));
4685 Set_Flag113 (Id, V);
4688 procedure Set_No_Strict_Aliasing (Id : E; V : B := True) is
4690 pragma Assert (Is_Access_Type (Id) and then Id = Base_Type (Id));
4691 Set_Flag136 (Id, V);
4692 end Set_No_Strict_Aliasing;
4694 procedure Set_Non_Binary_Modulus (Id : E; V : B := True) is
4696 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
4698 end Set_Non_Binary_Modulus;
4700 procedure Set_Non_Limited_View (Id : E; V : E) is
4702 pragma Assert (Ekind (Id) in Incomplete_Kind);
4704 end Set_Non_Limited_View;
4706 procedure Set_Nonzero_Is_True (Id : E; V : B := True) is
4709 (Root_Type (Id) = Standard_Boolean
4710 and then Ekind (Id) = E_Enumeration_Type);
4711 Set_Flag162 (Id, V);
4712 end Set_Nonzero_Is_True;
4714 procedure Set_Normalized_First_Bit (Id : E; V : U) is
4716 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
4718 end Set_Normalized_First_Bit;
4720 procedure Set_Normalized_Position (Id : E; V : U) is
4722 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
4724 end Set_Normalized_Position;
4726 procedure Set_Normalized_Position_Max (Id : E; V : U) is
4728 pragma Assert (Ekind_In (Id, E_Component, E_Discriminant));
4730 end Set_Normalized_Position_Max;
4732 procedure Set_OK_To_Rename (Id : E; V : B := True) is
4734 pragma Assert (Ekind (Id) = E_Variable);
4735 Set_Flag247 (Id, V);
4736 end Set_OK_To_Rename;
4738 procedure Set_OK_To_Reorder_Components (Id : E; V : B := True) is
4741 (Is_Record_Type (Id) and then Id = Base_Type (Id));
4742 Set_Flag239 (Id, V);
4743 end Set_OK_To_Reorder_Components;
4745 procedure Set_Optimize_Alignment_Space (Id : E; V : B := True) is
4748 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
4749 Set_Flag241 (Id, V);
4750 end Set_Optimize_Alignment_Space;
4752 procedure Set_Optimize_Alignment_Time (Id : E; V : B := True) is
4755 (Is_Type (Id) or else Ekind_In (Id, E_Constant, E_Variable));
4756 Set_Flag242 (Id, V);
4757 end Set_Optimize_Alignment_Time;
4759 procedure Set_Original_Array_Type (Id : E; V : E) is
4761 pragma Assert (Is_Array_Type (Id) or else Is_Modular_Integer_Type (Id));
4763 end Set_Original_Array_Type;
4765 procedure Set_Original_Record_Component (Id : E; V : E) is
4767 pragma Assert (Ekind_In (Id, E_Void, E_Component, E_Discriminant));
4769 end Set_Original_Record_Component;
4771 procedure Set_Overlays_Constant (Id : E; V : B := True) is
4773 Set_Flag243 (Id, V);
4774 end Set_Overlays_Constant;
4776 procedure Set_Overridden_Operation (Id : E; V : E) is
4779 end Set_Overridden_Operation;
4781 procedure Set_Package_Instantiation (Id : E; V : N) is
4783 pragma Assert (Ekind_In (Id, E_Void, E_Generic_Package, E_Package));
4785 end Set_Package_Instantiation;
4787 procedure Set_Packed_Array_Type (Id : E; V : E) is
4789 pragma Assert (Is_Array_Type (Id));
4791 end Set_Packed_Array_Type;
4793 procedure Set_Parent_Subtype (Id : E; V : E) is
4795 pragma Assert (Ekind (Id) = E_Record_Type);
4797 end Set_Parent_Subtype;
4799 procedure Set_Postcondition_Proc (Id : E; V : E) is
4801 pragma Assert (Ekind (Id) = E_Procedure);
4803 end Set_Postcondition_Proc;
4805 procedure Set_Primitive_Operations (Id : E; V : L) is
4807 pragma Assert (Is_Tagged_Type (Id));
4808 Set_Elist15 (Id, V);
4809 end Set_Primitive_Operations;
4811 procedure Set_Prival (Id : E; V : E) is
4813 pragma Assert (Is_Protected_Component (Id));
4817 procedure Set_Prival_Link (Id : E; V : E) is
4819 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
4821 end Set_Prival_Link;
4823 procedure Set_Private_Dependents (Id : E; V : L) is
4825 pragma Assert (Is_Incomplete_Or_Private_Type (Id));
4826 Set_Elist18 (Id, V);
4827 end Set_Private_Dependents;
4829 procedure Set_Private_View (Id : E; V : N) is
4831 pragma Assert (Is_Private_Type (Id));
4833 end Set_Private_View;
4835 procedure Set_Protected_Body_Subprogram (Id : E; V : E) is
4837 pragma Assert (Is_Subprogram (Id) or else Is_Entry (Id));
4839 end Set_Protected_Body_Subprogram;
4841 procedure Set_Protected_Formal (Id : E; V : E) is
4843 pragma Assert (Is_Formal (Id));
4845 end Set_Protected_Formal;
4847 procedure Set_Protection_Object (Id : E; V : E) is
4849 pragma Assert (Ekind_In (Id, E_Entry,
4854 end Set_Protection_Object;
4856 procedure Set_Reachable (Id : E; V : B := True) is
4861 procedure Set_Referenced (Id : E; V : B := True) is
4863 Set_Flag156 (Id, V);
4866 procedure Set_Referenced_As_LHS (Id : E; V : B := True) is
4869 end Set_Referenced_As_LHS;
4871 procedure Set_Referenced_As_Out_Parameter (Id : E; V : B := True) is
4873 Set_Flag227 (Id, V);
4874 end Set_Referenced_As_Out_Parameter;
4876 procedure Set_Referenced_Object (Id : E; V : N) is
4878 pragma Assert (Is_Type (Id));
4880 end Set_Referenced_Object;
4882 procedure Set_Register_Exception_Call (Id : E; V : N) is
4884 pragma Assert (Ekind (Id) = E_Exception);
4886 end Set_Register_Exception_Call;
4888 procedure Set_Related_Array_Object (Id : E; V : E) is
4890 pragma Assert (Is_Array_Type (Id));
4892 end Set_Related_Array_Object;
4894 procedure Set_Related_Expression (Id : E; V : N) is
4896 pragma Assert (Ekind (Id) in Type_Kind
4897 or else Ekind_In (Id, E_Constant, E_Variable, E_Void));
4899 end Set_Related_Expression;
4901 procedure Set_Related_Instance (Id : E; V : E) is
4903 pragma Assert (Ekind_In (Id, E_Package, E_Package_Body));
4905 end Set_Related_Instance;
4907 procedure Set_Related_Type (Id : E; V : E) is
4909 pragma Assert (Ekind_In (Id, E_Component, E_Constant));
4911 end Set_Related_Type;
4913 procedure Set_Relative_Deadline_Variable (Id : E; V : E) is
4915 pragma Assert (Is_Task_Type (Id) and then Id = Base_Type (Id));
4917 end Set_Relative_Deadline_Variable;
4919 procedure Set_Renamed_Entity (Id : E; V : N) is
4922 end Set_Renamed_Entity;
4924 procedure Set_Renamed_In_Spec (Id : E; V : B := True) is
4926 pragma Assert (Ekind (Id) = E_Package);
4927 Set_Flag231 (Id, V);
4928 end Set_Renamed_In_Spec;
4930 procedure Set_Renamed_Object (Id : E; V : N) is
4933 end Set_Renamed_Object;
4935 procedure Set_Renaming_Map (Id : E; V : U) is
4938 end Set_Renaming_Map;
4940 procedure Set_Requires_Overriding (Id : E; V : B := True) is
4942 pragma Assert (Is_Overloadable (Id));
4943 Set_Flag213 (Id, V);
4944 end Set_Requires_Overriding;
4946 procedure Set_Return_Present (Id : E; V : B := True) is
4949 end Set_Return_Present;
4951 procedure Set_Return_Applies_To (Id : E; V : N) is
4954 end Set_Return_Applies_To;
4956 procedure Set_Returns_By_Ref (Id : E; V : B := True) is
4959 end Set_Returns_By_Ref;
4961 procedure Set_Reverse_Bit_Order (Id : E; V : B := True) is
4964 (Is_Record_Type (Id) and then Id = Base_Type (Id));
4965 Set_Flag164 (Id, V);
4966 end Set_Reverse_Bit_Order;
4968 procedure Set_RM_Size (Id : E; V : U) is
4970 pragma Assert (Is_Type (Id));
4974 procedure Set_Scalar_Range (Id : E; V : N) is
4977 end Set_Scalar_Range;
4979 procedure Set_Scale_Value (Id : E; V : U) is
4982 end Set_Scale_Value;
4984 procedure Set_Scope_Depth_Value (Id : E; V : U) is
4986 pragma Assert (not Is_Record_Type (Id));
4988 end Set_Scope_Depth_Value;
4990 procedure Set_Sec_Stack_Needed_For_Return (Id : E; V : B := True) is
4992 Set_Flag167 (Id, V);
4993 end Set_Sec_Stack_Needed_For_Return;
4995 procedure Set_Shadow_Entities (Id : E; V : S) is
4997 pragma Assert (Ekind_In (Id, E_Package, E_Generic_Package));
4999 end Set_Shadow_Entities;
5001 procedure Set_Shared_Var_Procs_Instance (Id : E; V : E) is
5003 pragma Assert (Ekind (Id) = E_Variable);
5005 end Set_Shared_Var_Procs_Instance;
5007 procedure Set_Size_Check_Code (Id : E; V : N) is
5009 pragma Assert (Ekind_In (Id, E_Constant, E_Variable));
5011 end Set_Size_Check_Code;
5013 procedure Set_Size_Depends_On_Discriminant (Id : E; V : B := True) is
5015 Set_Flag177 (Id, V);
5016 end Set_Size_Depends_On_Discriminant;
5018 procedure Set_Size_Known_At_Compile_Time (Id : E; V : B := True) is
5021 end Set_Size_Known_At_Compile_Time;
5023 procedure Set_Small_Value (Id : E; V : R) is
5025 pragma Assert (Is_Fixed_Point_Type (Id));
5026 Set_Ureal21 (Id, V);
5027 end Set_Small_Value;
5029 procedure Set_Spec_Entity (Id : E; V : E) is
5031 pragma Assert (Ekind (Id) = E_Package_Body or else Is_Formal (Id));
5033 end Set_Spec_Entity;
5035 procedure Set_Spec_PPC_List (Id : E; V : N) is
5037 pragma Assert (Is_Subprogram (Id) or else Is_Generic_Subprogram (Id));
5039 end Set_Spec_PPC_List;
5041 procedure Set_Storage_Size_Variable (Id : E; V : E) is
5043 pragma Assert (Is_Access_Type (Id) or else Is_Task_Type (Id));
5044 pragma Assert (Id = Base_Type (Id));
5046 end Set_Storage_Size_Variable;
5048 procedure Set_Static_Elaboration_Desired (Id : E; V : B) is
5050 pragma Assert (Ekind (Id) = E_Package);
5052 end Set_Static_Elaboration_Desired;
5054 procedure Set_Static_Initialization (Id : E; V : N) is
5057 (Ekind (Id) = E_Procedure and then not Is_Dispatching_Operation (Id));
5059 end Set_Static_Initialization;
5061 procedure Set_Stored_Constraint (Id : E; V : L) is
5063 pragma Assert (Nkind (Id) in N_Entity);
5064 Set_Elist23 (Id, V);
5065 end Set_Stored_Constraint;
5067 procedure Set_Strict_Alignment (Id : E; V : B := True) is
5069 pragma Assert (Id = Base_Type (Id));
5070 Set_Flag145 (Id, V);
5071 end Set_Strict_Alignment;
5073 procedure Set_String_Literal_Length (Id : E; V : U) is
5075 pragma Assert (Ekind (Id) = E_String_Literal_Subtype);
5077 end Set_String_Literal_Length;
5079 procedure Set_String_Literal_Low_Bound (Id : E; V : N) is
5081 pragma Assert (Ekind (Id) = E_String_Literal_Subtype);
5083 end Set_String_Literal_Low_Bound;
5085 procedure Set_Suppress_Elaboration_Warnings (Id : E; V : B := True) is
5087 Set_Flag148 (Id, V);
5088 end Set_Suppress_Elaboration_Warnings;
5090 procedure Set_Suppress_Init_Proc (Id : E; V : B := True) is
5092 pragma Assert (Id = Base_Type (Id));
5093 Set_Flag105 (Id, V);
5094 end Set_Suppress_Init_Proc;
5096 procedure Set_Suppress_Style_Checks (Id : E; V : B := True) is
5098 Set_Flag165 (Id, V);
5099 end Set_Suppress_Style_Checks;
5101 procedure Set_Suppress_Value_Tracking_On_Call (Id : E; V : B := True) is
5103 Set_Flag217 (Id, V);
5104 end Set_Suppress_Value_Tracking_On_Call;
5106 procedure Set_Task_Body_Procedure (Id : E; V : N) is
5108 pragma Assert (Ekind (Id) in Task_Kind);
5110 end Set_Task_Body_Procedure;
5112 procedure Set_Treat_As_Volatile (Id : E; V : B := True) is
5115 end Set_Treat_As_Volatile;
5117 procedure Set_Underlying_Full_View (Id : E; V : E) is
5119 pragma Assert (Ekind (Id) in Private_Kind);
5121 end Set_Underlying_Full_View;
5123 procedure Set_Underlying_Record_View (Id : E; V : E) is
5125 pragma Assert (Ekind (Id) = E_Record_Type);
5127 end Set_Underlying_Record_View;
5129 procedure Set_Universal_Aliasing (Id : E; V : B := True) is
5131 pragma Assert (Is_Type (Id) and then Id = Base_Type (Id));
5132 Set_Flag216 (Id, V);
5133 end Set_Universal_Aliasing;
5135 procedure Set_Unset_Reference (Id : E; V : N) is
5138 end Set_Unset_Reference;
5140 procedure Set_Uses_Sec_Stack (Id : E; V : B := True) is
5143 end Set_Uses_Sec_Stack;
5145 procedure Set_Used_As_Generic_Actual (Id : E; V : B := True) is
5147 Set_Flag222 (Id, V);
5148 end Set_Used_As_Generic_Actual;
5150 procedure Set_Vax_Float (Id : E; V : B := True) is
5152 pragma Assert (Id = Base_Type (Id));
5153 Set_Flag151 (Id, V);
5156 procedure Set_Warnings_Off (Id : E; V : B := True) is
5159 end Set_Warnings_Off;
5161 procedure Set_Warnings_Off_Used (Id : E; V : B := True) is
5163 Set_Flag236 (Id, V);
5164 end Set_Warnings_Off_Used;
5166 procedure Set_Warnings_Off_Used_Unmodified (Id : E; V : B := True) is
5168 Set_Flag237 (Id, V);
5169 end Set_Warnings_Off_Used_Unmodified;
5171 procedure Set_Warnings_Off_Used_Unreferenced (Id : E; V : B := True) is
5173 Set_Flag238 (Id, V);
5174 end Set_Warnings_Off_Used_Unreferenced;
5176 procedure Set_Was_Hidden (Id : E; V : B := True) is
5178 Set_Flag196 (Id, V);
5181 procedure Set_Wrapped_Entity (Id : E; V : E) is
5183 pragma Assert (Ekind_In (Id, E_Function, E_Procedure)
5184 and then Is_Primitive_Wrapper (Id));
5186 end Set_Wrapped_Entity;
5188 -----------------------------------
5189 -- Field Initialization Routines --
5190 -----------------------------------
5192 procedure Init_Alignment (Id : E) is
5194 Set_Uint14 (Id, Uint_0);
5197 procedure Init_Alignment (Id : E; V : Int) is
5199 Set_Uint14 (Id, UI_From_Int (V));
5202 procedure Init_Component_Bit_Offset (Id : E) is
5204 Set_Uint11 (Id, No_Uint);
5205 end Init_Component_Bit_Offset;
5207 procedure Init_Component_Bit_Offset (Id : E; V : Int) is
5209 Set_Uint11 (Id, UI_From_Int (V));
5210 end Init_Component_Bit_Offset;
5212 procedure Init_Component_Size (Id : E) is
5214 Set_Uint22 (Id, Uint_0);
5215 end Init_Component_Size;
5217 procedure Init_Component_Size (Id : E; V : Int) is
5219 Set_Uint22 (Id, UI_From_Int (V));
5220 end Init_Component_Size;
5222 procedure Init_Digits_Value (Id : E) is
5224 Set_Uint17 (Id, Uint_0);
5225 end Init_Digits_Value;
5227 procedure Init_Digits_Value (Id : E; V : Int) is
5229 Set_Uint17 (Id, UI_From_Int (V));
5230 end Init_Digits_Value;
5232 procedure Init_Esize (Id : E) is
5234 Set_Uint12 (Id, Uint_0);
5237 procedure Init_Esize (Id : E; V : Int) is
5239 Set_Uint12 (Id, UI_From_Int (V));
5242 procedure Init_Normalized_First_Bit (Id : E) is
5244 Set_Uint8 (Id, No_Uint);
5245 end Init_Normalized_First_Bit;
5247 procedure Init_Normalized_First_Bit (Id : E; V : Int) is
5249 Set_Uint8 (Id, UI_From_Int (V));
5250 end Init_Normalized_First_Bit;
5252 procedure Init_Normalized_Position (Id : E) is
5254 Set_Uint14 (Id, No_Uint);
5255 end Init_Normalized_Position;
5257 procedure Init_Normalized_Position (Id : E; V : Int) is
5259 Set_Uint14 (Id, UI_From_Int (V));
5260 end Init_Normalized_Position;
5262 procedure Init_Normalized_Position_Max (Id : E) is
5264 Set_Uint10 (Id, No_Uint);
5265 end Init_Normalized_Position_Max;
5267 procedure Init_Normalized_Position_Max (Id : E; V : Int) is
5269 Set_Uint10 (Id, UI_From_Int (V));
5270 end Init_Normalized_Position_Max;
5272 procedure Init_RM_Size (Id : E) is
5274 Set_Uint13 (Id, Uint_0);
5277 procedure Init_RM_Size (Id : E; V : Int) is
5279 Set_Uint13 (Id, UI_From_Int (V));
5282 -----------------------------
5283 -- Init_Component_Location --
5284 -----------------------------
5286 procedure Init_Component_Location (Id : E) is
5288 Set_Uint8 (Id, No_Uint); -- Normalized_First_Bit
5289 Set_Uint10 (Id, No_Uint); -- Normalized_Position_Max
5290 Set_Uint11 (Id, No_Uint); -- Component_Bit_Offset
5291 Set_Uint12 (Id, Uint_0); -- Esize
5292 Set_Uint14 (Id, No_Uint); -- Normalized_Position
5293 end Init_Component_Location;
5299 procedure Init_Size (Id : E; V : Int) is
5301 Set_Uint12 (Id, UI_From_Int (V)); -- Esize
5302 Set_Uint13 (Id, UI_From_Int (V)); -- RM_Size
5305 ---------------------
5306 -- Init_Size_Align --
5307 ---------------------
5309 procedure Init_Size_Align (Id : E) is
5311 Set_Uint12 (Id, Uint_0); -- Esize
5312 Set_Uint13 (Id, Uint_0); -- RM_Size
5313 Set_Uint14 (Id, Uint_0); -- Alignment
5314 end Init_Size_Align;
5316 ----------------------------------------------
5317 -- Type Representation Attribute Predicates --
5318 ----------------------------------------------
5320 function Known_Alignment (E : Entity_Id) return B is
5322 return Uint14 (E) /= Uint_0
5323 and then Uint14 (E) /= No_Uint;
5324 end Known_Alignment;
5326 function Known_Component_Bit_Offset (E : Entity_Id) return B is
5328 return Uint11 (E) /= No_Uint;
5329 end Known_Component_Bit_Offset;
5331 function Known_Component_Size (E : Entity_Id) return B is
5333 return Uint22 (Base_Type (E)) /= Uint_0
5334 and then Uint22 (Base_Type (E)) /= No_Uint;
5335 end Known_Component_Size;
5337 function Known_Esize (E : Entity_Id) return B is
5339 return Uint12 (E) /= Uint_0
5340 and then Uint12 (E) /= No_Uint;
5343 function Known_Normalized_First_Bit (E : Entity_Id) return B is
5345 return Uint8 (E) /= No_Uint;
5346 end Known_Normalized_First_Bit;
5348 function Known_Normalized_Position (E : Entity_Id) return B is
5350 return Uint14 (E) /= No_Uint;
5351 end Known_Normalized_Position;
5353 function Known_Normalized_Position_Max (E : Entity_Id) return B is
5355 return Uint10 (E) /= No_Uint;
5356 end Known_Normalized_Position_Max;
5358 function Known_RM_Size (E : Entity_Id) return B is
5360 return Uint13 (E) /= No_Uint
5361 and then (Uint13 (E) /= Uint_0
5362 or else Is_Discrete_Type (E)
5363 or else Is_Fixed_Point_Type (E));
5366 function Known_Static_Component_Bit_Offset (E : Entity_Id) return B is
5368 return Uint11 (E) /= No_Uint
5369 and then Uint11 (E) >= Uint_0;
5370 end Known_Static_Component_Bit_Offset;
5372 function Known_Static_Component_Size (E : Entity_Id) return B is
5374 return Uint22 (Base_Type (E)) > Uint_0;
5375 end Known_Static_Component_Size;
5377 function Known_Static_Esize (E : Entity_Id) return B is
5379 return Uint12 (E) > Uint_0
5380 and then not Is_Generic_Type (E);
5381 end Known_Static_Esize;
5383 function Known_Static_Normalized_First_Bit (E : Entity_Id) return B is
5385 return Uint8 (E) /= No_Uint
5386 and then Uint8 (E) >= Uint_0;
5387 end Known_Static_Normalized_First_Bit;
5389 function Known_Static_Normalized_Position (E : Entity_Id) return B is
5391 return Uint14 (E) /= No_Uint
5392 and then Uint14 (E) >= Uint_0;
5393 end Known_Static_Normalized_Position;
5395 function Known_Static_Normalized_Position_Max (E : Entity_Id) return B is
5397 return Uint10 (E) /= No_Uint
5398 and then Uint10 (E) >= Uint_0;
5399 end Known_Static_Normalized_Position_Max;
5401 function Known_Static_RM_Size (E : Entity_Id) return B is
5403 return (Uint13 (E) > Uint_0
5404 or else Is_Discrete_Type (E)
5405 or else Is_Fixed_Point_Type (E))
5406 and then not Is_Generic_Type (E);
5407 end Known_Static_RM_Size;
5409 function Unknown_Alignment (E : Entity_Id) return B is
5411 return Uint14 (E) = Uint_0
5412 or else Uint14 (E) = No_Uint;
5413 end Unknown_Alignment;
5415 function Unknown_Component_Bit_Offset (E : Entity_Id) return B is
5417 return Uint11 (E) = No_Uint;
5418 end Unknown_Component_Bit_Offset;
5420 function Unknown_Component_Size (E : Entity_Id) return B is
5422 return Uint22 (Base_Type (E)) = Uint_0
5424 Uint22 (Base_Type (E)) = No_Uint;
5425 end Unknown_Component_Size;
5427 function Unknown_Esize (E : Entity_Id) return B is
5429 return Uint12 (E) = No_Uint
5431 Uint12 (E) = Uint_0;
5434 function Unknown_Normalized_First_Bit (E : Entity_Id) return B is
5436 return Uint8 (E) = No_Uint;
5437 end Unknown_Normalized_First_Bit;
5439 function Unknown_Normalized_Position (E : Entity_Id) return B is
5441 return Uint14 (E) = No_Uint;
5442 end Unknown_Normalized_Position;
5444 function Unknown_Normalized_Position_Max (E : Entity_Id) return B is
5446 return Uint10 (E) = No_Uint;
5447 end Unknown_Normalized_Position_Max;
5449 function Unknown_RM_Size (E : Entity_Id) return B is
5451 return (Uint13 (E) = Uint_0
5452 and then not Is_Discrete_Type (E)
5453 and then not Is_Fixed_Point_Type (E))
5454 or else Uint13 (E) = No_Uint;
5455 end Unknown_RM_Size;
5457 --------------------
5458 -- Address_Clause --
5459 --------------------
5461 function Address_Clause (Id : E) return N is
5463 return Rep_Clause (Id, Name_Address);
5466 ----------------------
5467 -- Alignment_Clause --
5468 ----------------------
5470 function Alignment_Clause (Id : E) return N is
5472 return Rep_Clause (Id, Name_Alignment);
5473 end Alignment_Clause;
5479 procedure Append_Entity (Id : Entity_Id; V : Entity_Id) is
5481 if Last_Entity (V) = Empty then
5482 Set_First_Entity (Id => V, V => Id);
5484 Set_Next_Entity (Last_Entity (V), Id);
5487 Set_Next_Entity (Id, Empty);
5489 Set_Last_Entity (Id => V, V => Id);
5496 function Base_Type (Id : E) return E is
5499 when E_Enumeration_Subtype |
5501 E_Signed_Integer_Subtype |
5502 E_Modular_Integer_Subtype |
5503 E_Floating_Point_Subtype |
5504 E_Ordinary_Fixed_Point_Subtype |
5505 E_Decimal_Fixed_Point_Subtype |
5510 E_Record_Subtype_With_Private |
5511 E_Limited_Private_Subtype |
5513 E_Protected_Subtype |
5515 E_String_Literal_Subtype |
5516 E_Class_Wide_Subtype =>
5524 -------------------------
5525 -- Component_Alignment --
5526 -------------------------
5528 -- Component Alignment is encoded using two flags, Flag128/129 as
5529 -- follows. Note that both flags False = Align_Default, so that the
5530 -- default initialization of flags to False initializes component
5531 -- alignment to the default value as required.
5533 -- Flag128 Flag129 Value
5534 -- ------- ------- -----
5535 -- False False Calign_Default
5536 -- False True Calign_Component_Size
5537 -- True False Calign_Component_Size_4
5538 -- True True Calign_Storage_Unit
5540 function Component_Alignment (Id : E) return C is
5541 BT : constant Node_Id := Base_Type (Id);
5544 pragma Assert (Is_Array_Type (Id) or else Is_Record_Type (Id));
5546 if Flag128 (BT) then
5547 if Flag129 (BT) then
5548 return Calign_Storage_Unit;
5550 return Calign_Component_Size_4;
5554 if Flag129 (BT) then
5555 return Calign_Component_Size;
5557 return Calign_Default;
5560 end Component_Alignment;
5562 ----------------------
5563 -- Declaration_Node --
5564 ----------------------
5566 function Declaration_Node (Id : E) return N is
5570 if Ekind (Id) = E_Incomplete_Type
5571 and then Present (Full_View (Id))
5573 P := Parent (Full_View (Id));
5579 if Nkind (P) /= N_Selected_Component
5580 and then Nkind (P) /= N_Expanded_Name
5582 not (Nkind (P) = N_Defining_Program_Unit_Name
5583 and then Is_Child_Unit (Id))
5590 end Declaration_Node;
5592 ---------------------
5593 -- Designated_Type --
5594 ---------------------
5596 function Designated_Type (Id : E) return E is
5600 Desig_Type := Directly_Designated_Type (Id);
5602 if Ekind (Desig_Type) = E_Incomplete_Type
5603 and then Present (Full_View (Desig_Type))
5605 return Full_View (Desig_Type);
5607 elsif Is_Class_Wide_Type (Desig_Type)
5608 and then Ekind (Etype (Desig_Type)) = E_Incomplete_Type
5609 and then Present (Full_View (Etype (Desig_Type)))
5610 and then Present (Class_Wide_Type (Full_View (Etype (Desig_Type))))
5612 return Class_Wide_Type (Full_View (Etype (Desig_Type)));
5617 end Designated_Type;
5619 ----------------------
5620 -- Entry_Index_Type --
5621 ----------------------
5623 function Entry_Index_Type (Id : E) return N is
5625 pragma Assert (Ekind (Id) = E_Entry_Family);
5626 return Etype (Discrete_Subtype_Definition (Parent (Id)));
5627 end Entry_Index_Type;
5629 ---------------------
5630 -- First_Component --
5631 ---------------------
5633 function First_Component (Id : E) return E is
5638 (Is_Record_Type (Id) or else Is_Incomplete_Or_Private_Type (Id));
5640 Comp_Id := First_Entity (Id);
5641 while Present (Comp_Id) loop
5642 exit when Ekind (Comp_Id) = E_Component;
5643 Comp_Id := Next_Entity (Comp_Id);
5647 end First_Component;
5649 -------------------------------------
5650 -- First_Component_Or_Discriminant --
5651 -------------------------------------
5653 function First_Component_Or_Discriminant (Id : E) return E is
5658 (Is_Record_Type (Id) or else Is_Incomplete_Or_Private_Type (Id));
5660 Comp_Id := First_Entity (Id);
5661 while Present (Comp_Id) loop
5662 exit when Ekind (Comp_Id) = E_Component
5664 Ekind (Comp_Id) = E_Discriminant;
5665 Comp_Id := Next_Entity (Comp_Id);
5669 end First_Component_Or_Discriminant;
5675 function First_Formal (Id : E) return E is
5680 (Is_Overloadable (Id)
5681 or else Ekind_In (Id, E_Entry_Family,
5683 E_Subprogram_Type));
5685 if Ekind (Id) = E_Enumeration_Literal then
5689 Formal := First_Entity (Id);
5691 if Present (Formal) and then Is_Formal (Formal) then
5699 ------------------------------
5700 -- First_Formal_With_Extras --
5701 ------------------------------
5703 function First_Formal_With_Extras (Id : E) return E is
5708 (Is_Overloadable (Id)
5709 or else Ekind_In (Id, E_Entry_Family,
5711 E_Subprogram_Type));
5713 if Ekind (Id) = E_Enumeration_Literal then
5717 Formal := First_Entity (Id);
5719 if Present (Formal) and then Is_Formal (Formal) then
5722 return Extra_Formals (Id); -- Empty if no extra formals
5725 end First_Formal_With_Extras;
5727 -------------------------------------
5728 -- Get_Attribute_Definition_Clause --
5729 -------------------------------------
5731 function Get_Attribute_Definition_Clause
5733 Id : Attribute_Id) return Node_Id
5738 N := First_Rep_Item (E);
5739 while Present (N) loop
5740 if Nkind (N) = N_Attribute_Definition_Clause
5741 and then Get_Attribute_Id (Chars (N)) = Id
5750 end Get_Attribute_Definition_Clause;
5756 function Get_Full_View (T : Entity_Id) return Entity_Id is
5758 if Ekind (T) = E_Incomplete_Type and then Present (Full_View (T)) then
5759 return Full_View (T);
5761 elsif Is_Class_Wide_Type (T)
5762 and then Ekind (Root_Type (T)) = E_Incomplete_Type
5763 and then Present (Full_View (Root_Type (T)))
5765 return Class_Wide_Type (Full_View (Root_Type (T)));
5772 --------------------------------------
5773 -- Get_Record_Representation_Clause --
5774 --------------------------------------
5776 function Get_Record_Representation_Clause (E : Entity_Id) return Node_Id is
5780 N := First_Rep_Item (E);
5781 while Present (N) loop
5782 if Nkind (N) = N_Record_Representation_Clause then
5790 end Get_Record_Representation_Clause;
5792 --------------------
5793 -- Get_Rep_Pragma --
5794 --------------------
5796 function Get_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Node_Id is
5800 N := First_Rep_Item (E);
5801 while Present (N) loop
5802 if Nkind (N) = N_Pragma and then Pragma_Name (N) = Nam then
5812 ------------------------
5813 -- Has_Attach_Handler --
5814 ------------------------
5816 function Has_Attach_Handler (Id : E) return B is
5820 pragma Assert (Is_Protected_Type (Id));
5822 Ritem := First_Rep_Item (Id);
5823 while Present (Ritem) loop
5824 if Nkind (Ritem) = N_Pragma
5825 and then Pragma_Name (Ritem) = Name_Attach_Handler
5829 Ritem := Next_Rep_Item (Ritem);
5834 end Has_Attach_Handler;
5836 -------------------------------------
5837 -- Has_Attribute_Definition_Clause --
5838 -------------------------------------
5840 function Has_Attribute_Definition_Clause
5842 Id : Attribute_Id) return Boolean
5845 return Present (Get_Attribute_Definition_Clause (E, Id));
5846 end Has_Attribute_Definition_Clause;
5852 function Has_Entries (Id : E) return B is
5856 pragma Assert (Is_Concurrent_Type (Id));
5858 Ent := First_Entity (Id);
5859 while Present (Ent) loop
5860 if Is_Entry (Ent) then
5864 Ent := Next_Entity (Ent);
5870 ----------------------------
5871 -- Has_Foreign_Convention --
5872 ----------------------------
5874 function Has_Foreign_Convention (Id : E) return B is
5876 return Convention (Id) in Foreign_Convention;
5877 end Has_Foreign_Convention;
5879 ---------------------------
5880 -- Has_Interrupt_Handler --
5881 ---------------------------
5883 function Has_Interrupt_Handler (Id : E) return B is
5887 pragma Assert (Is_Protected_Type (Id));
5889 Ritem := First_Rep_Item (Id);
5890 while Present (Ritem) loop
5891 if Nkind (Ritem) = N_Pragma
5892 and then Pragma_Name (Ritem) = Name_Interrupt_Handler
5896 Ritem := Next_Rep_Item (Ritem);
5901 end Has_Interrupt_Handler;
5903 --------------------------
5904 -- Has_Private_Ancestor --
5905 --------------------------
5907 function Has_Private_Ancestor (Id : E) return B is
5908 R : constant Entity_Id := Root_Type (Id);
5909 T1 : Entity_Id := Id;
5912 if Is_Private_Type (T1) then
5920 end Has_Private_Ancestor;
5922 --------------------
5923 -- Has_Rep_Pragma --
5924 --------------------
5926 function Has_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Boolean is
5928 return Present (Get_Rep_Pragma (E, Nam));
5931 --------------------
5932 -- Has_Unmodified --
5933 --------------------
5935 function Has_Unmodified (E : Entity_Id) return Boolean is
5937 if Has_Pragma_Unmodified (E) then
5939 elsif Warnings_Off (E) then
5940 Set_Warnings_Off_Used_Unmodified (E);
5947 ---------------------
5948 -- Has_Unreferenced --
5949 ---------------------
5951 function Has_Unreferenced (E : Entity_Id) return Boolean is
5953 if Has_Pragma_Unreferenced (E) then
5955 elsif Warnings_Off (E) then
5956 Set_Warnings_Off_Used_Unreferenced (E);
5961 end Has_Unreferenced;
5963 ----------------------
5964 -- Has_Warnings_Off --
5965 ----------------------
5967 function Has_Warnings_Off (E : Entity_Id) return Boolean is
5969 if Warnings_Off (E) then
5970 Set_Warnings_Off_Used (E);
5975 end Has_Warnings_Off;
5977 ------------------------------
5978 -- Implementation_Base_Type --
5979 ------------------------------
5981 function Implementation_Base_Type (Id : E) return E is
5986 Bastyp := Base_Type (Id);
5988 if Is_Incomplete_Or_Private_Type (Bastyp) then
5989 Imptyp := Underlying_Type (Bastyp);
5991 -- If we have an implementation type, then just return it,
5992 -- otherwise we return the Base_Type anyway. This can only
5993 -- happen in error situations and should avoid some error bombs.
5995 if Present (Imptyp) then
5996 return Base_Type (Imptyp);
6004 end Implementation_Base_Type;
6006 ---------------------
6007 -- Is_Boolean_Type --
6008 ---------------------
6010 function Is_Boolean_Type (Id : E) return B is
6012 return Root_Type (Id) = Standard_Boolean;
6013 end Is_Boolean_Type;
6015 ------------------------
6016 -- Is_Constant_Object --
6017 ------------------------
6019 function Is_Constant_Object (Id : E) return B is
6020 K : constant Entity_Kind := Ekind (Id);
6023 K = E_Constant or else K = E_In_Parameter or else K = E_Loop_Parameter;
6024 end Is_Constant_Object;
6026 --------------------
6027 -- Is_Discriminal --
6028 --------------------
6030 function Is_Discriminal (Id : E) return B is
6032 return (Ekind_In (Id, E_Constant, E_In_Parameter)
6033 and then Present (Discriminal_Link (Id)));
6036 ----------------------
6037 -- Is_Dynamic_Scope --
6038 ----------------------
6040 function Is_Dynamic_Scope (Id : E) return B is
6043 Ekind (Id) = E_Block
6045 Ekind (Id) = E_Function
6047 Ekind (Id) = E_Procedure
6049 Ekind (Id) = E_Subprogram_Body
6051 Ekind (Id) = E_Task_Type
6053 Ekind (Id) = E_Entry
6055 Ekind (Id) = E_Entry_Family
6057 Ekind (Id) = E_Return_Statement;
6058 end Is_Dynamic_Scope;
6060 --------------------
6061 -- Is_Entity_Name --
6062 --------------------
6064 function Is_Entity_Name (N : Node_Id) return Boolean is
6065 Kind : constant Node_Kind := Nkind (N);
6068 -- Identifiers, operator symbols, expanded names are entity names
6070 return Kind = N_Identifier
6071 or else Kind = N_Operator_Symbol
6072 or else Kind = N_Expanded_Name
6074 -- Attribute references are entity names if they refer to an entity.
6075 -- Note that we don't do this by testing for the presence of the
6076 -- Entity field in the N_Attribute_Reference node, since it may not
6077 -- have been set yet.
6079 or else (Kind = N_Attribute_Reference
6080 and then Is_Entity_Attribute_Name (Attribute_Name (N)));
6083 -----------------------------------
6084 -- Is_Package_Or_Generic_Package --
6085 -----------------------------------
6087 function Is_Package_Or_Generic_Package (Id : E) return B is
6090 Ekind (Id) = E_Package
6092 Ekind (Id) = E_Generic_Package;
6093 end Is_Package_Or_Generic_Package;
6099 function Is_Prival (Id : E) return B is
6101 return (Ekind_In (Id, E_Constant, E_Variable)
6102 and then Present (Prival_Link (Id)));
6105 ----------------------------
6106 -- Is_Protected_Component --
6107 ----------------------------
6109 function Is_Protected_Component (Id : E) return B is
6111 return Ekind (Id) = E_Component
6112 and then Is_Protected_Type (Scope (Id));
6113 end Is_Protected_Component;
6115 ------------------------------
6116 -- Is_Protected_Record_Type --
6117 ------------------------------
6119 function Is_Protected_Record_Type (Id : E) return B is
6122 Is_Concurrent_Record_Type (Id)
6123 and then Is_Protected_Type (Corresponding_Concurrent_Type (Id));
6124 end Is_Protected_Record_Type;
6126 --------------------------------
6127 -- Is_Standard_Character_Type --
6128 --------------------------------
6130 function Is_Standard_Character_Type (Id : E) return B is
6132 if Is_Type (Id) then
6134 R : constant Entity_Id := Root_Type (Id);
6137 R = Standard_Character
6139 R = Standard_Wide_Character
6141 R = Standard_Wide_Wide_Character;
6147 end Is_Standard_Character_Type;
6149 --------------------
6150 -- Is_String_Type --
6151 --------------------
6153 function Is_String_Type (Id : E) return B is
6155 return Ekind (Id) in String_Kind
6156 or else (Is_Array_Type (Id)
6157 and then Number_Dimensions (Id) = 1
6158 and then Is_Character_Type (Component_Type (Id)));
6161 -------------------------
6162 -- Is_Task_Record_Type --
6163 -------------------------
6165 function Is_Task_Record_Type (Id : E) return B is
6168 Is_Concurrent_Record_Type (Id)
6169 and then Is_Task_Type (Corresponding_Concurrent_Type (Id));
6170 end Is_Task_Record_Type;
6172 ------------------------
6173 -- Is_Wrapper_Package --
6174 ------------------------
6176 function Is_Wrapper_Package (Id : E) return B is
6178 return (Ekind (Id) = E_Package
6179 and then Present (Related_Instance (Id)));
6180 end Is_Wrapper_Package;
6182 --------------------
6183 -- Next_Component --
6184 --------------------
6186 function Next_Component (Id : E) return E is
6190 Comp_Id := Next_Entity (Id);
6191 while Present (Comp_Id) loop
6192 exit when Ekind (Comp_Id) = E_Component;
6193 Comp_Id := Next_Entity (Comp_Id);
6199 ------------------------------------
6200 -- Next_Component_Or_Discriminant --
6201 ------------------------------------
6203 function Next_Component_Or_Discriminant (Id : E) return E is
6207 Comp_Id := Next_Entity (Id);
6208 while Present (Comp_Id) loop
6209 exit when Ekind_In (Comp_Id, E_Component, E_Discriminant);
6210 Comp_Id := Next_Entity (Comp_Id);
6214 end Next_Component_Or_Discriminant;
6216 -----------------------
6217 -- Next_Discriminant --
6218 -----------------------
6220 -- This function actually implements both Next_Discriminant and
6221 -- Next_Stored_Discriminant by making sure that the Discriminant
6222 -- returned is of the same variety as Id.
6224 function Next_Discriminant (Id : E) return E is
6226 -- Derived Tagged types with private extensions look like this...
6228 -- E_Discriminant d1
6229 -- E_Discriminant d2
6231 -- E_Discriminant d1
6232 -- E_Discriminant d2
6235 -- so it is critical not to go past the leading discriminants
6240 pragma Assert (Ekind (Id) = E_Discriminant);
6243 D := Next_Entity (D);
6245 or else (Ekind (D) /= E_Discriminant
6246 and then not Is_Itype (D))
6251 exit when Ekind (D) = E_Discriminant
6252 and then (Is_Completely_Hidden (D) = Is_Completely_Hidden (Id));
6256 end Next_Discriminant;
6262 function Next_Formal (Id : E) return E is
6266 -- Follow the chain of declared entities as long as the kind of the
6267 -- entity corresponds to a formal parameter. Skip internal entities
6268 -- that may have been created for implicit subtypes, in the process
6269 -- of analyzing default expressions.
6274 P := Next_Entity (P);
6276 if No (P) or else Is_Formal (P) then
6278 elsif not Is_Internal (P) then
6284 -----------------------------
6285 -- Next_Formal_With_Extras --
6286 -----------------------------
6288 function Next_Formal_With_Extras (Id : E) return E is
6290 if Present (Extra_Formal (Id)) then
6291 return Extra_Formal (Id);
6293 return Next_Formal (Id);
6295 end Next_Formal_With_Extras;
6301 function Next_Index (Id : Node_Id) return Node_Id is
6310 function Next_Literal (Id : E) return E is
6312 pragma Assert (Nkind (Id) in N_Entity);
6316 ------------------------------
6317 -- Next_Stored_Discriminant --
6318 ------------------------------
6320 function Next_Stored_Discriminant (Id : E) return E is
6322 -- See comment in Next_Discriminant
6324 return Next_Discriminant (Id);
6325 end Next_Stored_Discriminant;
6327 -----------------------
6328 -- Number_Dimensions --
6329 -----------------------
6331 function Number_Dimensions (Id : E) return Pos is
6336 if Ekind (Id) in String_Kind then
6341 T := First_Index (Id);
6342 while Present (T) loop
6349 end Number_Dimensions;
6351 --------------------
6352 -- Number_Entries --
6353 --------------------
6355 function Number_Entries (Id : E) return Nat is
6360 pragma Assert (Is_Concurrent_Type (Id));
6363 Ent := First_Entity (Id);
6364 while Present (Ent) loop
6365 if Is_Entry (Ent) then
6369 Ent := Next_Entity (Ent);
6375 --------------------
6376 -- Number_Formals --
6377 --------------------
6379 function Number_Formals (Id : E) return Pos is
6385 Formal := First_Formal (Id);
6386 while Present (Formal) loop
6388 Formal := Next_Formal (Formal);
6394 --------------------
6395 -- Parameter_Mode --
6396 --------------------
6398 function Parameter_Mode (Id : E) return Formal_Kind is
6403 ---------------------
6404 -- Record_Rep_Item --
6405 ---------------------
6407 procedure Record_Rep_Item (E : Entity_Id; N : Node_Id) is
6409 Set_Next_Rep_Item (N, First_Rep_Item (E));
6410 Set_First_Rep_Item (E, N);
6411 end Record_Rep_Item;
6417 function Root_Type (Id : E) return E is
6421 pragma Assert (Nkind (Id) in N_Entity);
6423 T := Base_Type (Id);
6425 if Ekind (T) = E_Class_Wide_Type then
6428 elsif Ekind (T) = E_Class_Wide_Subtype then
6429 return Etype (Base_Type (T));
6431 -- ??? T comes from Base_Type, how can it be a subtype?
6432 -- Also Base_Type is supposed to be idempotent, so either way
6433 -- this is equivalent to "return Etype (T)" and should be merged
6434 -- with the E_Class_Wide_Type case.
6445 -- Following test catches some error cases resulting from
6448 elsif No (Etyp) then
6451 elsif Is_Private_Type (T) and then Etyp = Full_View (T) then
6454 elsif Is_Private_Type (Etyp) and then Full_View (Etyp) = T then
6460 -- Return if there is a circularity in the inheritance chain. This
6461 -- happens in some error situations and we do not want to get
6462 -- stuck in this loop.
6464 if T = Base_Type (Id) then
6475 function Scope_Depth (Id : E) return Uint is
6480 while Is_Record_Type (Scop) loop
6481 Scop := Scope (Scop);
6484 return Scope_Depth_Value (Scop);
6487 ---------------------
6488 -- Scope_Depth_Set --
6489 ---------------------
6491 function Scope_Depth_Set (Id : E) return B is
6493 return not Is_Record_Type (Id)
6494 and then Field22 (Id) /= Union_Id (Empty);
6495 end Scope_Depth_Set;
6497 -----------------------------
6498 -- Set_Component_Alignment --
6499 -----------------------------
6501 -- Component Alignment is encoded using two flags, Flag128/129 as
6502 -- follows. Note that both flags False = Align_Default, so that the
6503 -- default initialization of flags to False initializes component
6504 -- alignment to the default value as required.
6506 -- Flag128 Flag129 Value
6507 -- ------- ------- -----
6508 -- False False Calign_Default
6509 -- False True Calign_Component_Size
6510 -- True False Calign_Component_Size_4
6511 -- True True Calign_Storage_Unit
6513 procedure Set_Component_Alignment (Id : E; V : C) is
6515 pragma Assert ((Is_Array_Type (Id) or else Is_Record_Type (Id))
6516 and then Id = Base_Type (Id));
6519 when Calign_Default =>
6520 Set_Flag128 (Id, False);
6521 Set_Flag129 (Id, False);
6523 when Calign_Component_Size =>
6524 Set_Flag128 (Id, False);
6525 Set_Flag129 (Id, True);
6527 when Calign_Component_Size_4 =>
6528 Set_Flag128 (Id, True);
6529 Set_Flag129 (Id, False);
6531 when Calign_Storage_Unit =>
6532 Set_Flag128 (Id, True);
6533 Set_Flag129 (Id, True);
6535 end Set_Component_Alignment;
6541 function Size_Clause (Id : E) return N is
6543 return Rep_Clause (Id, Name_Size);
6546 ------------------------
6547 -- Stream_Size_Clause --
6548 ------------------------
6550 function Stream_Size_Clause (Id : E) return N is
6552 return Rep_Clause (Id, Name_Stream_Size);
6553 end Stream_Size_Clause;
6559 function Subtype_Kind (K : Entity_Kind) return Entity_Kind is
6565 Kind := E_Access_Subtype;
6569 Kind := E_Array_Subtype;
6571 when E_Class_Wide_Type |
6572 E_Class_Wide_Subtype =>
6573 Kind := E_Class_Wide_Subtype;
6575 when E_Decimal_Fixed_Point_Type |
6576 E_Decimal_Fixed_Point_Subtype =>
6577 Kind := E_Decimal_Fixed_Point_Subtype;
6579 when E_Ordinary_Fixed_Point_Type |
6580 E_Ordinary_Fixed_Point_Subtype =>
6581 Kind := E_Ordinary_Fixed_Point_Subtype;
6583 when E_Private_Type |
6584 E_Private_Subtype =>
6585 Kind := E_Private_Subtype;
6587 when E_Limited_Private_Type |
6588 E_Limited_Private_Subtype =>
6589 Kind := E_Limited_Private_Subtype;
6591 when E_Record_Type_With_Private |
6592 E_Record_Subtype_With_Private =>
6593 Kind := E_Record_Subtype_With_Private;
6595 when E_Record_Type |
6597 Kind := E_Record_Subtype;
6599 when E_String_Type |
6601 Kind := E_String_Subtype;
6603 when Enumeration_Kind =>
6604 Kind := E_Enumeration_Subtype;
6607 Kind := E_Floating_Point_Subtype;
6609 when Signed_Integer_Kind =>
6610 Kind := E_Signed_Integer_Subtype;
6612 when Modular_Integer_Kind =>
6613 Kind := E_Modular_Integer_Subtype;
6615 when Protected_Kind =>
6616 Kind := E_Protected_Subtype;
6619 Kind := E_Task_Subtype;
6623 raise Program_Error;
6629 ---------------------
6630 -- Type_High_Bound --
6631 ---------------------
6633 function Type_High_Bound (Id : E) return Node_Id is
6634 Rng : constant Node_Id := Scalar_Range (Id);
6636 if Nkind (Rng) = N_Subtype_Indication then
6637 return High_Bound (Range_Expression (Constraint (Rng)));
6639 return High_Bound (Rng);
6641 end Type_High_Bound;
6643 --------------------
6644 -- Type_Low_Bound --
6645 --------------------
6647 function Type_Low_Bound (Id : E) return Node_Id is
6648 Rng : constant Node_Id := Scalar_Range (Id);
6650 if Nkind (Rng) = N_Subtype_Indication then
6651 return Low_Bound (Range_Expression (Constraint (Rng)));
6653 return Low_Bound (Rng);
6657 ---------------------
6658 -- Underlying_Type --
6659 ---------------------
6661 function Underlying_Type (Id : E) return E is
6663 -- For record_with_private the underlying type is always the direct
6664 -- full view. Never try to take the full view of the parent it
6665 -- doesn't make sense.
6667 if Ekind (Id) = E_Record_Type_With_Private then
6668 return Full_View (Id);
6670 elsif Ekind (Id) in Incomplete_Or_Private_Kind then
6672 -- If we have an incomplete or private type with a full view,
6673 -- then we return the Underlying_Type of this full view
6675 if Present (Full_View (Id)) then
6676 if Id = Full_View (Id) then
6678 -- Previous error in declaration
6683 return Underlying_Type (Full_View (Id));
6686 -- If we have an incomplete entity that comes from the limited
6687 -- view then we return the Underlying_Type of its non-limited
6690 elsif From_With_Type (Id)
6691 and then Present (Non_Limited_View (Id))
6693 return Underlying_Type (Non_Limited_View (Id));
6695 -- Otherwise check for the case where we have a derived type or
6696 -- subtype, and if so get the Underlying_Type of the parent type.
6698 elsif Etype (Id) /= Id then
6699 return Underlying_Type (Etype (Id));
6701 -- Otherwise we have an incomplete or private type that has
6702 -- no full view, which means that we have not encountered the
6703 -- completion, so return Empty to indicate the underlying type
6704 -- is not yet known.
6710 -- For non-incomplete, non-private types, return the type itself
6711 -- Also for entities that are not types at all return the entity
6717 end Underlying_Type;
6719 ------------------------
6720 -- Write_Entity_Flags --
6721 ------------------------
6723 procedure Write_Entity_Flags (Id : Entity_Id; Prefix : String) is
6725 procedure W (Flag_Name : String; Flag : Boolean);
6726 -- Write out given flag if it is set
6732 procedure W (Flag_Name : String; Flag : Boolean) is
6736 Write_Str (Flag_Name);
6737 Write_Str (" = True");
6742 -- Start of processing for Write_Entity_Flags
6745 if (Is_Array_Type (Id) or else Is_Record_Type (Id))
6746 and then Id = Base_Type (Id)
6749 Write_Str ("Component_Alignment = ");
6751 case Component_Alignment (Id) is
6752 when Calign_Default =>
6753 Write_Str ("Calign_Default");
6755 when Calign_Component_Size =>
6756 Write_Str ("Calign_Component_Size");
6758 when Calign_Component_Size_4 =>
6759 Write_Str ("Calign_Component_Size_4");
6761 when Calign_Storage_Unit =>
6762 Write_Str ("Calign_Storage_Unit");
6768 W ("Address_Taken", Flag104 (Id));
6769 W ("Body_Needed_For_SAL", Flag40 (Id));
6770 W ("C_Pass_By_Copy", Flag125 (Id));
6771 W ("Can_Never_Be_Null", Flag38 (Id));
6772 W ("Checks_May_Be_Suppressed", Flag31 (Id));
6773 W ("Debug_Info_Off", Flag166 (Id));
6774 W ("Default_Expressions_Processed", Flag108 (Id));
6775 W ("Delay_Cleanups", Flag114 (Id));
6776 W ("Delay_Subprogram_Descriptors", Flag50 (Id));
6777 W ("Depends_On_Private", Flag14 (Id));
6778 W ("Discard_Names", Flag88 (Id));
6779 W ("Elaboration_Entity_Required", Flag174 (Id));
6780 W ("Elaborate_Body_Desirable", Flag210 (Id));
6781 W ("Entry_Accepted", Flag152 (Id));
6782 W ("Can_Use_Internal_Rep", Flag229 (Id));
6783 W ("Finalize_Storage_Only", Flag158 (Id));
6784 W ("From_With_Type", Flag159 (Id));
6785 W ("Has_Aliased_Components", Flag135 (Id));
6786 W ("Has_Alignment_Clause", Flag46 (Id));
6787 W ("Has_All_Calls_Remote", Flag79 (Id));
6788 W ("Has_Anon_Block_Suffix", Flag201 (Id));
6789 W ("Has_Atomic_Components", Flag86 (Id));
6790 W ("Has_Biased_Representation", Flag139 (Id));
6791 W ("Has_Completion", Flag26 (Id));
6792 W ("Has_Completion_In_Body", Flag71 (Id));
6793 W ("Has_Complex_Representation", Flag140 (Id));
6794 W ("Has_Component_Size_Clause", Flag68 (Id));
6795 W ("Has_Contiguous_Rep", Flag181 (Id));
6796 W ("Has_Controlled_Component", Flag43 (Id));
6797 W ("Has_Controlling_Result", Flag98 (Id));
6798 W ("Has_Convention_Pragma", Flag119 (Id));
6799 W ("Has_Delayed_Freeze", Flag18 (Id));
6800 W ("Has_Discriminants", Flag5 (Id));
6801 W ("Has_Enumeration_Rep_Clause", Flag66 (Id));
6802 W ("Has_Exit", Flag47 (Id));
6803 W ("Has_External_Tag_Rep_Clause", Flag110 (Id));
6804 W ("Has_Forward_Instantiation", Flag175 (Id));
6805 W ("Has_Fully_Qualified_Name", Flag173 (Id));
6806 W ("Has_Gigi_Rep_Item", Flag82 (Id));
6807 W ("Has_Homonym", Flag56 (Id));
6808 W ("Has_Initial_Value", Flag219 (Id));
6809 W ("Has_Machine_Radix_Clause", Flag83 (Id));
6810 W ("Has_Master_Entity", Flag21 (Id));
6811 W ("Has_Missing_Return", Flag142 (Id));
6812 W ("Has_Nested_Block_With_Handler", Flag101 (Id));
6813 W ("Has_Non_Standard_Rep", Flag75 (Id));
6814 W ("Has_Object_Size_Clause", Flag172 (Id));
6815 W ("Has_Per_Object_Constraint", Flag154 (Id));
6816 W ("Has_Persistent_BSS", Flag188 (Id));
6817 W ("Has_Postconditions", Flag240 (Id));
6818 W ("Has_Pragma_Controlled", Flag27 (Id));
6819 W ("Has_Pragma_Elaborate_Body", Flag150 (Id));
6820 W ("Has_Pragma_Inline", Flag157 (Id));
6821 W ("Has_Pragma_Inline_Always", Flag230 (Id));
6822 W ("Has_Pragma_Pack", Flag121 (Id));
6823 W ("Has_Pragma_Preelab_Init", Flag221 (Id));
6824 W ("Has_Pragma_Pure", Flag203 (Id));
6825 W ("Has_Pragma_Pure_Function", Flag179 (Id));
6826 W ("Has_Pragma_Thread_Local_Storage", Flag169 (Id));
6827 W ("Has_Pragma_Unmodified", Flag233 (Id));
6828 W ("Has_Pragma_Unreferenced", Flag180 (Id));
6829 W ("Has_Pragma_Unreferenced_Objects", Flag212 (Id));
6830 W ("Has_Primitive_Operations", Flag120 (Id));
6831 W ("Has_Private_Declaration", Flag155 (Id));
6832 W ("Has_Qualified_Name", Flag161 (Id));
6833 W ("Has_RACW", Flag214 (Id));
6834 W ("Has_Record_Rep_Clause", Flag65 (Id));
6835 W ("Has_Recursive_Call", Flag143 (Id));
6836 W ("Has_Size_Clause", Flag29 (Id));
6837 W ("Has_Small_Clause", Flag67 (Id));
6838 W ("Has_Specified_Layout", Flag100 (Id));
6839 W ("Has_Specified_Stream_Input", Flag190 (Id));
6840 W ("Has_Specified_Stream_Output", Flag191 (Id));
6841 W ("Has_Specified_Stream_Read", Flag192 (Id));
6842 W ("Has_Specified_Stream_Write", Flag193 (Id));
6843 W ("Has_Static_Discriminants", Flag211 (Id));
6844 W ("Has_Storage_Size_Clause", Flag23 (Id));
6845 W ("Has_Stream_Size_Clause", Flag184 (Id));
6846 W ("Has_Subprogram_Descriptor", Flag93 (Id));
6847 W ("Has_Task", Flag30 (Id));
6848 W ("Has_Thunks", Flag228 (Id));
6849 W ("Has_Unchecked_Union", Flag123 (Id));
6850 W ("Has_Unknown_Discriminants", Flag72 (Id));
6851 W ("Has_Up_Level_Access", Flag215 (Id));
6852 W ("Has_Volatile_Components", Flag87 (Id));
6853 W ("Has_Xref_Entry", Flag182 (Id));
6854 W ("Implemented_By_Entry", Flag232 (Id));
6855 W ("In_Package_Body", Flag48 (Id));
6856 W ("In_Private_Part", Flag45 (Id));
6857 W ("In_Use", Flag8 (Id));
6858 W ("Is_AST_Entry", Flag132 (Id));
6859 W ("Is_Abstract_Subprogram", Flag19 (Id));
6860 W ("Is_Abstract_Type", Flag146 (Id));
6861 W ("Is_Local_Anonymous_Access", Flag194 (Id));
6862 W ("Is_Access_Constant", Flag69 (Id));
6863 W ("Is_Ada_2005_Only", Flag185 (Id));
6864 W ("Is_Aliased", Flag15 (Id));
6865 W ("Is_Asynchronous", Flag81 (Id));
6866 W ("Is_Atomic", Flag85 (Id));
6867 W ("Is_Bit_Packed_Array", Flag122 (Id));
6868 W ("Is_CPP_Class", Flag74 (Id));
6869 W ("Is_Called", Flag102 (Id));
6870 W ("Is_Character_Type", Flag63 (Id));
6871 W ("Is_Child_Unit", Flag73 (Id));
6872 W ("Is_Class_Wide_Equivalent_Type", Flag35 (Id));
6873 W ("Is_Compilation_Unit", Flag149 (Id));
6874 W ("Is_Completely_Hidden", Flag103 (Id));
6875 W ("Is_Concurrent_Record_Type", Flag20 (Id));
6876 W ("Is_Constr_Subt_For_UN_Aliased", Flag141 (Id));
6877 W ("Is_Constr_Subt_For_U_Nominal", Flag80 (Id));
6878 W ("Is_Constrained", Flag12 (Id));
6879 W ("Is_Constructor", Flag76 (Id));
6880 W ("Is_Controlled", Flag42 (Id));
6881 W ("Is_Controlling_Formal", Flag97 (Id));
6882 W ("Is_Descendent_Of_Address", Flag223 (Id));
6883 W ("Is_Discrim_SO_Function", Flag176 (Id));
6884 W ("Is_Dispatch_Table_Entity", Flag234 (Id));
6885 W ("Is_Dispatching_Operation", Flag6 (Id));
6886 W ("Is_Eliminated", Flag124 (Id));
6887 W ("Is_Entry_Formal", Flag52 (Id));
6888 W ("Is_Exported", Flag99 (Id));
6889 W ("Is_First_Subtype", Flag70 (Id));
6890 W ("Is_For_Access_Subtype", Flag118 (Id));
6891 W ("Is_Formal_Subprogram", Flag111 (Id));
6892 W ("Is_Frozen", Flag4 (Id));
6893 W ("Is_Generic_Actual_Type", Flag94 (Id));
6894 W ("Is_Generic_Instance", Flag130 (Id));
6895 W ("Is_Generic_Type", Flag13 (Id));
6896 W ("Is_Hidden", Flag57 (Id));
6897 W ("Is_Hidden_Open_Scope", Flag171 (Id));
6898 W ("Is_Immediately_Visible", Flag7 (Id));
6899 W ("Is_Imported", Flag24 (Id));
6900 W ("Is_Inlined", Flag11 (Id));
6901 W ("Is_Instantiated", Flag126 (Id));
6902 W ("Is_Interface", Flag186 (Id));
6903 W ("Is_Internal", Flag17 (Id));
6904 W ("Is_Interrupt_Handler", Flag89 (Id));
6905 W ("Is_Intrinsic_Subprogram", Flag64 (Id));
6906 W ("Is_Itype", Flag91 (Id));
6907 W ("Is_Known_Non_Null", Flag37 (Id));
6908 W ("Is_Known_Null", Flag204 (Id));
6909 W ("Is_Known_Valid", Flag170 (Id));
6910 W ("Is_Limited_Composite", Flag106 (Id));
6911 W ("Is_Limited_Interface", Flag197 (Id));
6912 W ("Is_Limited_Record", Flag25 (Id));
6913 W ("Is_Machine_Code_Subprogram", Flag137 (Id));
6914 W ("Is_Non_Static_Subtype", Flag109 (Id));
6915 W ("Is_Null_Init_Proc", Flag178 (Id));
6916 W ("Is_Obsolescent", Flag153 (Id));
6917 W ("Is_Only_Out_Parameter", Flag226 (Id));
6918 W ("Is_Optional_Parameter", Flag134 (Id));
6919 W ("Is_Overriding_Operation", Flag39 (Id));
6920 W ("Is_Package_Body_Entity", Flag160 (Id));
6921 W ("Is_Packed", Flag51 (Id));
6922 W ("Is_Packed_Array_Type", Flag138 (Id));
6923 W ("Is_Potentially_Use_Visible", Flag9 (Id));
6924 W ("Is_Preelaborated", Flag59 (Id));
6925 W ("Is_Primitive", Flag218 (Id));
6926 W ("Is_Primitive_Wrapper", Flag195 (Id));
6927 W ("Is_Private_Composite", Flag107 (Id));
6928 W ("Is_Private_Descendant", Flag53 (Id));
6929 W ("Is_Private_Primitive", Flag245 (Id));
6930 W ("Is_Protected_Interface", Flag198 (Id));
6931 W ("Is_Public", Flag10 (Id));
6932 W ("Is_Pure", Flag44 (Id));
6933 W ("Is_Pure_Unit_Access_Type", Flag189 (Id));
6934 W ("Is_RACW_Stub_Type", Flag244 (Id));
6935 W ("Is_Raised", Flag224 (Id));
6936 W ("Is_Remote_Call_Interface", Flag62 (Id));
6937 W ("Is_Remote_Types", Flag61 (Id));
6938 W ("Is_Renaming_Of_Object", Flag112 (Id));
6939 W ("Is_Return_Object", Flag209 (Id));
6940 W ("Is_Shared_Passive", Flag60 (Id));
6941 W ("Is_Synchronized_Interface", Flag199 (Id));
6942 W ("Is_Statically_Allocated", Flag28 (Id));
6943 W ("Is_Tag", Flag78 (Id));
6944 W ("Is_Tagged_Type", Flag55 (Id));
6945 W ("Is_Task_Interface", Flag200 (Id));
6946 W ("Is_Thunk", Flag225 (Id));
6947 W ("Is_Trivial_Subprogram", Flag235 (Id));
6948 W ("Is_True_Constant", Flag163 (Id));
6949 W ("Is_Unchecked_Union", Flag117 (Id));
6950 W ("Is_Underlying_Record_View", Flag246 (Id));
6951 W ("Is_Unsigned_Type", Flag144 (Id));
6952 W ("Is_VMS_Exception", Flag133 (Id));
6953 W ("Is_Valued_Procedure", Flag127 (Id));
6954 W ("Is_Visible_Child_Unit", Flag116 (Id));
6955 W ("Is_Visible_Formal", Flag206 (Id));
6956 W ("Is_Volatile", Flag16 (Id));
6957 W ("Itype_Printed", Flag202 (Id));
6958 W ("Kill_Elaboration_Checks", Flag32 (Id));
6959 W ("Kill_Range_Checks", Flag33 (Id));
6960 W ("Kill_Tag_Checks", Flag34 (Id));
6961 W ("Known_To_Have_Preelab_Init", Flag207 (Id));
6962 W ("Low_Bound_Tested", Flag205 (Id));
6963 W ("Machine_Radix_10", Flag84 (Id));
6964 W ("Materialize_Entity", Flag168 (Id));
6965 W ("Must_Be_On_Byte_Boundary", Flag183 (Id));
6966 W ("Must_Have_Preelab_Init", Flag208 (Id));
6967 W ("Needs_Debug_Info", Flag147 (Id));
6968 W ("Needs_No_Actuals", Flag22 (Id));
6969 W ("Never_Set_In_Source", Flag115 (Id));
6970 W ("No_Pool_Assigned", Flag131 (Id));
6971 W ("No_Return", Flag113 (Id));
6972 W ("No_Strict_Aliasing", Flag136 (Id));
6973 W ("Non_Binary_Modulus", Flag58 (Id));
6974 W ("Nonzero_Is_True", Flag162 (Id));
6975 W ("OK_To_Rename", Flag247 (Id));
6976 W ("OK_To_Reorder_Components", Flag239 (Id));
6977 W ("Optimize_Alignment_Space", Flag241 (Id));
6978 W ("Optimize_Alignment_Time", Flag242 (Id));
6979 W ("Overlays_Constant", Flag243 (Id));
6980 W ("Reachable", Flag49 (Id));
6981 W ("Referenced", Flag156 (Id));
6982 W ("Referenced_As_LHS", Flag36 (Id));
6983 W ("Referenced_As_Out_Parameter", Flag227 (Id));
6984 W ("Renamed_In_Spec", Flag231 (Id));
6985 W ("Requires_Overriding", Flag213 (Id));
6986 W ("Return_Present", Flag54 (Id));
6987 W ("Returns_By_Ref", Flag90 (Id));
6988 W ("Reverse_Bit_Order", Flag164 (Id));
6989 W ("Sec_Stack_Needed_For_Return", Flag167 (Id));
6990 W ("Size_Depends_On_Discriminant", Flag177 (Id));
6991 W ("Size_Known_At_Compile_Time", Flag92 (Id));
6992 W ("Static_Elaboration_Desired", Flag77 (Id));
6993 W ("Strict_Alignment", Flag145 (Id));
6994 W ("Suppress_Elaboration_Warnings", Flag148 (Id));
6995 W ("Suppress_Init_Proc", Flag105 (Id));
6996 W ("Suppress_Style_Checks", Flag165 (Id));
6997 W ("Suppress_Value_Tracking_On_Call", Flag217 (Id));
6998 W ("Treat_As_Volatile", Flag41 (Id));
6999 W ("Universal_Aliasing", Flag216 (Id));
7000 W ("Used_As_Generic_Actual", Flag222 (Id));
7001 W ("Uses_Sec_Stack", Flag95 (Id));
7002 W ("Vax_Float", Flag151 (Id));
7003 W ("Warnings_Off", Flag96 (Id));
7004 W ("Warnings_Off_Used", Flag236 (Id));
7005 W ("Warnings_Off_Used_Unmodified", Flag237 (Id));
7006 W ("Warnings_Off_Used_Unreferenced", Flag238 (Id));
7007 W ("Was_Hidden", Flag196 (Id));
7008 end Write_Entity_Flags;
7010 -----------------------
7011 -- Write_Entity_Info --
7012 -----------------------
7014 procedure Write_Entity_Info (Id : Entity_Id; Prefix : String) is
7016 procedure Write_Attribute (Which : String; Nam : E);
7017 -- Write attribute value with given string name
7019 procedure Write_Kind (Id : Entity_Id);
7020 -- Write Ekind field of entity
7022 ---------------------
7023 -- Write_Attribute --
7024 ---------------------
7026 procedure Write_Attribute (Which : String; Nam : E) is
7030 Write_Int (Int (Nam));
7032 Write_Name (Chars (Nam));
7034 end Write_Attribute;
7040 procedure Write_Kind (Id : Entity_Id) is
7041 K : constant String := Entity_Kind'Image (Ekind (Id));
7045 Write_Str (" Kind ");
7047 if Is_Type (Id) and then Is_Tagged_Type (Id) then
7048 Write_Str ("TAGGED ");
7051 Write_Str (K (3 .. K'Length));
7054 if Is_Type (Id) and then Depends_On_Private (Id) then
7055 Write_Str ("Depends_On_Private ");
7059 -- Start of processing for Write_Entity_Info
7063 Write_Attribute ("Name ", Id);
7064 Write_Int (Int (Id));
7068 Write_Attribute (" Type ", Etype (Id));
7070 Write_Attribute (" Scope ", Scope (Id));
7075 when Discrete_Kind =>
7076 Write_Str ("Bounds: Id = ");
7078 if Present (Scalar_Range (Id)) then
7079 Write_Int (Int (Type_Low_Bound (Id)));
7080 Write_Str (" .. Id = ");
7081 Write_Int (Int (Type_High_Bound (Id)));
7083 Write_Str ("Empty");
7094 (" Component Type ", Component_Type (Id));
7097 Write_Str (" Indices ");
7099 Index := First_Index (Id);
7100 while Present (Index) loop
7101 Write_Attribute (" ", Etype (Index));
7102 Index := Next_Index (Index);
7110 (" Directly Designated Type ",
7111 Directly_Designated_Type (Id));
7114 when Overloadable_Kind =>
7115 if Present (Homonym (Id)) then
7116 Write_Str (" Homonym ");
7117 Write_Name (Chars (Homonym (Id)));
7119 Write_Int (Int (Homonym (Id)));
7126 if Ekind (Scope (Id)) in Record_Kind then
7128 " Original_Record_Component ",
7129 Original_Record_Component (Id));
7130 Write_Int (Int (Original_Record_Component (Id)));
7134 when others => null;
7136 end Write_Entity_Info;
7138 -----------------------
7139 -- Write_Field6_Name --
7140 -----------------------
7142 procedure Write_Field6_Name (Id : Entity_Id) is
7143 pragma Warnings (Off, Id);
7145 Write_Str ("First_Rep_Item");
7146 end Write_Field6_Name;
7148 -----------------------
7149 -- Write_Field7_Name --
7150 -----------------------
7152 procedure Write_Field7_Name (Id : Entity_Id) is
7153 pragma Warnings (Off, Id);
7155 Write_Str ("Freeze_Node");
7156 end Write_Field7_Name;
7158 -----------------------
7159 -- Write_Field8_Name --
7160 -----------------------
7162 procedure Write_Field8_Name (Id : Entity_Id) is
7167 Write_Str ("Normalized_First_Bit");
7171 E_Subprogram_Body =>
7172 Write_Str ("Mechanism");
7175 Write_Str ("Associated_Node_For_Itype");
7178 Write_Str ("First_Exit_Statement");
7181 Write_Str ("Dependent_Instances");
7184 Write_Str ("Postcondition_Proc");
7186 when E_Return_Statement =>
7187 Write_Str ("Return_Applies_To");
7190 Write_Str ("Hiding_Loop_Variable");
7193 Write_Str ("Field8??");
7195 end Write_Field8_Name;
7197 -----------------------
7198 -- Write_Field9_Name --
7199 -----------------------
7201 procedure Write_Field9_Name (Id : Entity_Id) is
7205 Write_Str ("Class_Wide_Type");
7208 E_Generic_Function |
7210 E_Generic_Procedure |
7213 Write_Str ("Renaming_Map");
7216 Write_Str ("Current_Value");
7219 Write_Str ("Field9??");
7221 end Write_Field9_Name;
7223 ------------------------
7224 -- Write_Field10_Name --
7225 ------------------------
7227 procedure Write_Field10_Name (Id : Entity_Id) is
7231 Write_Str ("Referenced_Object");
7233 when E_In_Parameter |
7235 Write_Str ("Discriminal_Link");
7241 Write_Str ("Handler_Records");
7245 Write_Str ("Normalized_Position_Max");
7248 Write_Str ("Field10??");
7250 end Write_Field10_Name;
7252 ------------------------
7253 -- Write_Field11_Name --
7254 ------------------------
7256 procedure Write_Field11_Name (Id : Entity_Id) is
7260 Write_Str ("Entry_Component");
7264 Write_Str ("Component_Bit_Offset");
7267 Write_Str ("Full_View");
7269 when E_Enumeration_Literal =>
7270 Write_Str ("Enumeration_Pos");
7273 Write_Str ("Block_Node");
7279 Write_Str ("Protected_Body_Subprogram");
7281 when E_Generic_Package =>
7282 Write_Str ("Generic_Homonym");
7285 Write_Str ("Full_View");
7288 Write_Str ("Field11??");
7290 end Write_Field11_Name;
7292 ------------------------
7293 -- Write_Field12_Name --
7294 ------------------------
7296 procedure Write_Field12_Name (Id : Entity_Id) is
7300 Write_Str ("Barrier_Function");
7302 when E_Enumeration_Literal =>
7303 Write_Str ("Enumeration_Rep");
7311 E_In_Out_Parameter |
7315 Write_Str ("Esize");
7319 Write_Str ("Next_Inlined_Subprogram");
7322 Write_Str ("Associated_Formal_Package");
7325 Write_Str ("Field12??");
7327 end Write_Field12_Name;
7329 ------------------------
7330 -- Write_Field13_Name --
7331 ------------------------
7333 procedure Write_Field13_Name (Id : Entity_Id) is
7337 Write_Str ("RM_Size");
7341 Write_Str ("Component_Clause");
7344 if not Comes_From_Source (Id)
7346 Chars (Id) = Name_Op_Ne
7348 Write_Str ("Corresponding_Equality");
7350 elsif Comes_From_Source (Id) then
7351 Write_Str ("Elaboration_Entity");
7354 Write_Str ("Field13??");
7359 Write_Str ("Extra_Accessibility");
7363 Generic_Unit_Kind =>
7364 Write_Str ("Elaboration_Entity");
7367 Write_Str ("Field13??");
7369 end Write_Field13_Name;
7371 -----------------------
7372 -- Write_Field14_Name --
7373 -----------------------
7375 procedure Write_Field14_Name (Id : Entity_Id) is
7384 Write_Str ("Alignment");
7388 Write_Str ("Normalized_Position");
7392 Write_Str ("First_Optional_Parameter");
7395 E_Generic_Package =>
7396 Write_Str ("Shadow_Entities");
7399 Write_Str ("Field14??");
7401 end Write_Field14_Name;
7403 ------------------------
7404 -- Write_Field15_Name --
7405 ------------------------
7407 procedure Write_Field15_Name (Id : Entity_Id) is
7412 Write_Str ("Storage_Size_Variable");
7414 when Class_Wide_Kind |
7418 Write_Str ("Primitive_Operations");
7421 Write_Str ("DT_Entry_Count");
7423 when Decimal_Fixed_Point_Kind =>
7424 Write_Str ("Scale_Value");
7426 when E_Discriminant =>
7427 Write_Str ("Discriminant_Number");
7430 Write_Str ("Extra_Formal");
7434 Write_Str ("DT_Position");
7437 Write_Str ("Entry_Parameters_Type");
7439 when Enumeration_Kind =>
7440 Write_Str ("Lit_Indexes");
7444 Write_Str ("Related_Instance");
7446 when E_Protected_Type =>
7447 Write_Str ("Entry_Bodies_Array");
7449 when E_String_Literal_Subtype =>
7450 Write_Str ("String_Literal_Low_Bound");
7453 Write_Str ("Field15??");
7455 end Write_Field15_Name;
7457 ------------------------
7458 -- Write_Field16_Name --
7459 ------------------------
7461 procedure Write_Field16_Name (Id : Entity_Id) is
7465 Write_Str ("Entry_Formal");
7469 Write_Str ("DTC_Entity");
7474 Write_Str ("First_Private_Entity");
7476 when E_Record_Type |
7477 E_Record_Type_With_Private =>
7478 Write_Str ("Access_Disp_Table");
7480 when E_String_Literal_Subtype =>
7481 Write_Str ("String_Literal_Length");
7483 when Enumeration_Kind =>
7484 Write_Str ("Lit_Strings");
7488 Write_Str ("Unset_Reference");
7490 when E_Record_Subtype |
7491 E_Class_Wide_Subtype =>
7492 Write_Str ("Cloned_Subtype");
7495 Write_Str ("Field16??");
7497 end Write_Field16_Name;
7499 ------------------------
7500 -- Write_Field17_Name --
7501 ------------------------
7503 procedure Write_Field17_Name (Id : Entity_Id) is
7507 Write_Str ("Digits_Value");
7510 Write_Str ("Prival");
7512 when E_Discriminant =>
7513 Write_Str ("Discriminal");
7522 E_Generic_Function |
7524 E_Generic_Procedure |
7532 E_Return_Statement |
7534 E_Subprogram_Type =>
7535 Write_Str ("First_Entity");
7538 Write_Str ("First_Index");
7540 when Enumeration_Kind =>
7541 Write_Str ("First_Literal");
7544 Write_Str ("Master_Id");
7546 when Modular_Integer_Kind =>
7547 Write_Str ("Modulus");
7551 E_Generic_In_Out_Parameter |
7553 Write_Str ("Actual_Subtype");
7555 when E_Incomplete_Type =>
7556 Write_Str ("Non_Limited_View");
7558 when E_Incomplete_Subtype =>
7559 if From_With_Type (Id) then
7560 Write_Str ("Non_Limited_View");
7564 Write_Str ("Field17??");
7566 end Write_Field17_Name;
7568 ------------------------
7569 -- Write_Field18_Name --
7570 ------------------------
7572 procedure Write_Field18_Name (Id : Entity_Id) is
7575 when E_Enumeration_Literal |
7579 Write_Str ("Alias");
7581 when E_Record_Type =>
7582 Write_Str ("Corresponding_Concurrent_Type");
7584 when E_Entry_Index_Parameter =>
7585 Write_Str ("Entry_Index_Constant");
7587 when E_Class_Wide_Subtype |
7588 E_Access_Protected_Subprogram_Type |
7589 E_Anonymous_Access_Protected_Subprogram_Type |
7590 E_Access_Subprogram_Type |
7592 Write_Str ("Equivalent_Type");
7594 when Fixed_Point_Kind =>
7595 Write_Str ("Delta_Value");
7598 Write_Str ("Renamed_Object");
7602 E_Generic_Function |
7603 E_Generic_Procedure |
7604 E_Generic_Package =>
7605 Write_Str ("Renamed_Entity");
7607 when Incomplete_Or_Private_Kind =>
7608 Write_Str ("Private_Dependents");
7610 when Concurrent_Kind =>
7611 Write_Str ("Corresponding_Record_Type");
7616 Write_Str ("Enclosing_Scope");
7619 Write_Str ("Field18??");
7621 end Write_Field18_Name;
7623 -----------------------
7624 -- Write_Field19_Name --
7625 -----------------------
7627 procedure Write_Field19_Name (Id : Entity_Id) is
7632 Write_Str ("Related_Array_Object");
7638 E_Return_Statement |
7640 Write_Str ("Finalization_Chain_Entity");
7642 when E_Constant | E_Variable =>
7643 Write_Str ("Size_Check_Code");
7645 when E_Discriminant =>
7646 Write_Str ("Corresponding_Discriminant");
7649 E_Generic_Package =>
7650 Write_Str ("Body_Entity");
7652 when E_Package_Body |
7654 Write_Str ("Spec_Entity");
7656 when Private_Kind =>
7657 Write_Str ("Underlying_Full_View");
7659 when E_Record_Type =>
7660 Write_Str ("Parent_Subtype");
7663 Write_Str ("Field19??");
7665 end Write_Field19_Name;
7667 -----------------------
7668 -- Write_Field20_Name --
7669 -----------------------
7671 procedure Write_Field20_Name (Id : Entity_Id) is
7675 Write_Str ("Component_Type");
7677 when E_In_Parameter |
7678 E_Generic_In_Parameter =>
7679 Write_Str ("Default_Value");
7682 Write_Str ("Directly_Designated_Type");
7685 Write_Str ("Discriminant_Checking_Func");
7689 Write_Str ("Prival_Link");
7691 when E_Discriminant =>
7692 Write_Str ("Discriminant_Default_Value");
7701 E_Generic_Function |
7703 E_Generic_Procedure |
7711 E_Return_Statement |
7713 E_Subprogram_Type =>
7715 Write_Str ("Last_Entity");
7718 Write_Str ("Scalar_Range");
7721 Write_Str ("Register_Exception_Call");
7724 Write_Str ("Field20??");
7726 end Write_Field20_Name;
7728 -----------------------
7729 -- Write_Field21_Name --
7730 -----------------------
7732 procedure Write_Field21_Name (Id : Entity_Id) is
7738 E_Generic_Function |
7740 E_Generic_Procedure |
7742 Write_Str ("Interface_Name");
7744 when Concurrent_Kind |
7745 Incomplete_Or_Private_Kind |
7749 Write_Str ("Discriminant_Constraint");
7752 Write_Str ("Accept_Address");
7754 when Fixed_Point_Kind =>
7755 Write_Str ("Small_Value");
7757 when E_In_Parameter =>
7758 Write_Str ("Default_Expr_Function");
7761 Modular_Integer_Kind =>
7762 Write_Str ("Original_Array_Type");
7765 Write_Str ("Field21??");
7767 end Write_Field21_Name;
7769 -----------------------
7770 -- Write_Field22_Name --
7771 -----------------------
7773 procedure Write_Field22_Name (Id : Entity_Id) is
7777 Write_Str ("Associated_Storage_Pool");
7780 Write_Str ("Component_Size");
7784 Write_Str ("Original_Record_Component");
7786 when E_Enumeration_Literal =>
7787 Write_Str ("Enumeration_Rep_Expr");
7790 Write_Str ("Exception_Code");
7793 Write_Str ("Protected_Formal");
7795 when E_Record_Type =>
7796 Write_Str ("Corresponding_Remote_Type");
7806 E_Generic_Function |
7807 E_Generic_Procedure |
7810 E_Return_Statement |
7813 Write_Str ("Scope_Depth_Value");
7815 when E_Record_Type_With_Private |
7816 E_Record_Subtype_With_Private |
7819 E_Limited_Private_Type |
7820 E_Limited_Private_Subtype =>
7821 Write_Str ("Private_View");
7824 Write_Str ("Shared_Var_Procs_Instance");
7827 Write_Str ("Field22??");
7829 end Write_Field22_Name;
7831 ------------------------
7832 -- Write_Field23_Name --
7833 ------------------------
7835 procedure Write_Field23_Name (Id : Entity_Id) is
7839 Write_Str ("Associated_Final_Chain");
7842 Write_Str ("Packed_Array_Type");
7845 Write_Str ("Entry_Cancel_Parameter");
7847 when E_Discriminant =>
7848 Write_Str ("CR_Discriminant");
7850 when E_Enumeration_Type =>
7851 Write_Str ("Enum_Pos_To_Rep");
7855 Write_Str ("Extra_Constrained");
7857 when E_Generic_Function |
7859 E_Generic_Procedure =>
7860 Write_Str ("Inner_Instances");
7862 when Concurrent_Kind |
7863 Incomplete_Or_Private_Kind |
7867 Write_Str ("Stored_Constraint");
7871 if Present (Scope (Id))
7872 and then Is_Protected_Type (Scope (Id))
7874 Write_Str ("Protection_Object");
7876 Write_Str ("Generic_Renamings");
7880 if Is_Generic_Instance (Id) then
7881 Write_Str ("Generic_Renamings");
7883 Write_Str ("Limited_View");
7887 Write_Str ("Protection_Object");
7890 Write_Str ("Field23??");
7892 end Write_Field23_Name;
7894 ------------------------
7895 -- Write_Field24_Name --
7896 ------------------------
7898 procedure Write_Field24_Name (Id : Entity_Id) is
7901 when Subprogram_Kind =>
7902 Write_Str ("Spec_PPC_List");
7904 when E_Variable | E_Constant | Type_Kind =>
7905 Write_Str ("Related_Expression");
7908 Write_Str ("Field24???");
7910 end Write_Field24_Name;
7912 ------------------------
7913 -- Write_Field25_Name --
7914 ------------------------
7916 procedure Write_Field25_Name (Id : Entity_Id) is
7920 Write_Str ("DT_Offset_To_Top_Func");
7924 Write_Str ("Interface_Alias");
7926 when E_Record_Type |
7928 E_Record_Type_With_Private |
7929 E_Record_Subtype_With_Private =>
7930 Write_Str ("Interfaces");
7933 Write_Str ("Task_Body_Procedure");
7936 Write_Str ("Debug_Renaming_Link");
7939 Write_Str ("Field25??");
7941 end Write_Field25_Name;
7943 ------------------------
7944 -- Write_Field26_Name --
7945 ------------------------
7947 procedure Write_Field26_Name (Id : Entity_Id) is
7952 Write_Str ("Related_Type");
7954 when E_Generic_Package |
7956 Write_Str ("Package_Instantiation");
7961 if Is_Dispatching_Operation (Id) then
7962 Write_Str ("Overridden_Operation");
7964 Write_Str ("Static_Initialization");
7967 when E_Record_Type |
7968 E_Record_Type_With_Private =>
7969 Write_Str ("Dispatch_Table_Wrappers");
7971 when E_In_Out_Parameter |
7974 Write_Str ("Last_Assignment");
7977 Write_Str ("Relative_Deadline_Variable");
7980 Write_Str ("Field26??");
7982 end Write_Field26_Name;
7984 ------------------------
7985 -- Write_Field27_Name --
7986 ------------------------
7988 procedure Write_Field27_Name (Id : Entity_Id) is
7992 Write_Str ("Wrapped_Entity");
7994 when E_Package | Type_Kind =>
7995 Write_Str ("Current_Use_Clause");
7998 Write_Str ("Field27??");
8000 end Write_Field27_Name;
8002 ------------------------
8003 -- Write_Field28_Name --
8004 ------------------------
8006 procedure Write_Field28_Name (Id : Entity_Id) is
8009 when E_Procedure | E_Function | E_Entry =>
8010 Write_Str ("Extra_Formals");
8012 when E_Record_Type =>
8013 Write_Str ("Underlying_Record_View");
8016 Write_Str ("Field28??");
8018 end Write_Field28_Name;
8020 -------------------------
8021 -- Iterator Procedures --
8022 -------------------------
8024 procedure Proc_Next_Component (N : in out Node_Id) is
8026 N := Next_Component (N);
8027 end Proc_Next_Component;
8029 procedure Proc_Next_Component_Or_Discriminant (N : in out Node_Id) is
8031 N := Next_Entity (N);
8032 while Present (N) loop
8033 exit when Ekind_In (N, E_Component, E_Discriminant);
8034 N := Next_Entity (N);
8036 end Proc_Next_Component_Or_Discriminant;
8038 procedure Proc_Next_Discriminant (N : in out Node_Id) is
8040 N := Next_Discriminant (N);
8041 end Proc_Next_Discriminant;
8043 procedure Proc_Next_Formal (N : in out Node_Id) is
8045 N := Next_Formal (N);
8046 end Proc_Next_Formal;
8048 procedure Proc_Next_Formal_With_Extras (N : in out Node_Id) is
8050 N := Next_Formal_With_Extras (N);
8051 end Proc_Next_Formal_With_Extras;
8053 procedure Proc_Next_Index (N : in out Node_Id) is
8055 N := Next_Index (N);
8056 end Proc_Next_Index;
8058 procedure Proc_Next_Inlined_Subprogram (N : in out Node_Id) is
8060 N := Next_Inlined_Subprogram (N);
8061 end Proc_Next_Inlined_Subprogram;
8063 procedure Proc_Next_Literal (N : in out Node_Id) is
8065 N := Next_Literal (N);
8066 end Proc_Next_Literal;
8068 procedure Proc_Next_Stored_Discriminant (N : in out Node_Id) is
8070 N := Next_Stored_Discriminant (N);
8071 end Proc_Next_Stored_Discriminant;