1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2007, 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 2, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 pragma Style_Checks
(All_Checks
);
35 -- Turn off subprogram ordering, not used for this unit
37 with Atree
; use Atree
;
38 with Nlists
; use Nlists
;
39 with Output
; use Output
;
40 with Sinfo
; use Sinfo
;
41 with Stand
; use Stand
;
45 use Atree
.Unchecked_Access
;
46 -- This is one of the packages that is allowed direct untyped access to
47 -- the fields in a node, since it provides the next level abstraction
48 -- which incorporates appropriate checks.
50 ----------------------------------------------
51 -- Usage of Fields in Defining Entity Nodes --
52 ----------------------------------------------
54 -- Four of these fields are defined in Sinfo, since they in are the
55 -- base part of the node. The access routines for these fields and
56 -- the corresponding set procedures are defined in Sinfo. These fields
57 -- are present in all entities. Note that Homonym is also in the base
58 -- part of the node, but has access routines that are more properly
59 -- part of Einfo, which is why they are defined here.
66 -- Remaining fields are present only in extended nodes (i.e. entities)
68 -- The following fields are present in all entities
71 -- First_Rep_Item Node6
73 -- Obsolescent_Warning Node24
75 -- The usage of other fields (and the entity kinds to which it applies)
76 -- depends on the particular field (see Einfo spec for details).
78 -- Associated_Node_For_Itype Node8
79 -- Dependent_Instances Elist8
80 -- Hiding_Loop_Variable Node8
81 -- Mechanism Uint8 (but returns Mechanism_Type)
82 -- Normalized_First_Bit Uint8
83 -- Return_Applies_To Node8
85 -- Class_Wide_Type Node9
86 -- Current_Value Node9
89 -- Discriminal_Link Node10
90 -- Handler_Records List10
91 -- Normalized_Position_Max Uint10
92 -- Referenced_Object Node10
94 -- Component_Bit_Offset Uint11
96 -- Entry_Component Node11
97 -- Enumeration_Pos Uint11
98 -- Generic_Homonym Node11
99 -- Protected_Body_Subprogram Node11
102 -- Barrier_Function Node12
103 -- Enumeration_Rep Uint12
105 -- Next_Inlined_Subprogram Node12
107 -- Corresponding_Equality Node13
108 -- Component_Clause Node13
109 -- Elaboration_Entity Node13
110 -- Extra_Accessibility Node13
114 -- First_Optional_Parameter Node14
115 -- Normalized_Position Uint14
116 -- Shadow_Entities List14
118 -- Discriminant_Number Uint15
119 -- DT_Position Uint15
120 -- DT_Entry_Count Uint15
121 -- Entry_Bodies_Array Node15
122 -- Entry_Parameters_Type Node15
123 -- Extra_Formal Node15
124 -- Lit_Indexes Node15
125 -- Primitive_Operations Elist15
126 -- Related_Instance Node15
127 -- Scale_Value Uint15
128 -- Storage_Size_Variable Node15
129 -- String_Literal_Low_Bound Node15
130 -- Shared_Var_Read_Proc Node15
132 -- Access_Disp_Table Elist16
133 -- Cloned_Subtype Node16
135 -- Entry_Formal Node16
136 -- First_Private_Entity Node16
137 -- Lit_Strings Node16
138 -- String_Literal_Length Uint16
139 -- Unset_Reference Node16
141 -- Actual_Subtype Node17
142 -- Digits_Value Uint17
143 -- Discriminal Node17
144 -- First_Entity Node17
145 -- First_Index Node17
146 -- First_Literal Node17
149 -- Non_Limited_View Node17
154 -- Corresponding_Concurrent_Type Node18
155 -- Corresponding_Record_Type Node18
156 -- Delta_Value Ureal18
157 -- Enclosing_Scope Node18
158 -- Equivalent_Type Node18
159 -- Private_Dependents Elist18
160 -- Renamed_Entity Node18
161 -- Renamed_Object Node18
163 -- Body_Entity Node19
164 -- Corresponding_Discriminant Node19
165 -- Finalization_Chain_Entity Node19
166 -- Parent_Subtype Node19
167 -- Related_Array_Object Node19
168 -- Size_Check_Code Node19
169 -- Spec_Entity Node19
170 -- Underlying_Full_View Node19
172 -- Component_Type Node20
173 -- Default_Value Node20
174 -- Directly_Designated_Type Node20
175 -- Discriminant_Checking_Func Node20
176 -- Discriminant_Default_Value Node20
177 -- Last_Entity Node20
178 -- Register_Exception_Call Node20
179 -- Scalar_Range Node20
181 -- Accept_Address Elist21
182 -- Default_Expr_Function Node21
183 -- Discriminant_Constraint Elist21
184 -- Interface_Name Node21
185 -- Original_Array_Type Node21
186 -- Small_Value Ureal21
188 -- Associated_Storage_Pool Node22
189 -- Component_Size Uint22
190 -- Corresponding_Remote_Type Node22
191 -- Enumeration_Rep_Expr Node22
192 -- Exception_Code Uint22
193 -- Original_Record_Component Node22
194 -- Private_View Node22
195 -- Protected_Formal Node22
196 -- Scope_Depth_Value Uint22
197 -- Shared_Var_Assign_Proc Node22
199 -- Associated_Final_Chain Node23
200 -- CR_Discriminant Node23
201 -- Stored_Constraint Elist23
202 -- Entry_Cancel_Parameter Node23
203 -- Extra_Constrained Node23
204 -- Generic_Renamings Elist23
205 -- Inner_Instances Elist23
206 -- Enum_Pos_To_Rep Node23
207 -- Packed_Array_Type Node23
208 -- Limited_View Node23
209 -- Privals_Chain Elist23
210 -- Protected_Operation Node23
212 -- Obsolescent_Warning Node24
214 -- Abstract_Interface_Alias Node25
215 -- Abstract_Interfaces Elist25
216 -- Current_Use_Clause Node25
217 -- Debug_Renaming_Link Node25
218 -- DT_Offset_To_Top_Func Node25
219 -- Task_Body_Procedure Node25
221 -- Dispatch_Table_Wrapper Node26
222 -- Last_Assignment Node26
223 -- Overridden_Operation Node26
224 -- Package_Instantiation Node26
225 -- Related_Type Node26
226 -- Static_Initialization Node26
228 -- Wrapped_Entity Node27
230 -- Extra_Formals 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 -- Function_Returns_With_DSP 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_Known 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
515 -----------------------
516 -- Local subprograms --
517 -----------------------
519 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
;
520 -- Returns the attribute definition clause for Id whose name is Rep_Name.
521 -- Returns Empty if no matching attribute definition clause found for Id.
527 function Rep_Clause
(Id
: E
; Rep_Name
: Name_Id
) return N
is
531 Ritem
:= First_Rep_Item
(Id
);
532 while Present
(Ritem
) loop
533 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
534 and then Chars
(Ritem
) = Rep_Name
538 Ritem
:= Next_Rep_Item
(Ritem
);
545 --------------------------------
546 -- Attribute Access Functions --
547 --------------------------------
549 function Abstract_Interfaces
(Id
: E
) return L
is
551 pragma Assert
(Is_Record_Type
(Id
));
553 end Abstract_Interfaces
;
555 function Abstract_Interface_Alias
(Id
: E
) return E
is
557 pragma Assert
(Is_Subprogram
(Id
));
559 end Abstract_Interface_Alias
;
561 function Accept_Address
(Id
: E
) return L
is
566 function Access_Disp_Table
(Id
: E
) return L
is
568 pragma Assert
(Is_Tagged_Type
(Id
));
569 return Elist16
(Implementation_Base_Type
(Id
));
570 end Access_Disp_Table
;
572 function Actual_Subtype
(Id
: E
) return E
is
575 (Ekind
(Id
) = E_Constant
576 or else Ekind
(Id
) = E_Variable
577 or else Ekind
(Id
) = E_Generic_In_Out_Parameter
578 or else Is_Formal
(Id
));
582 function Address_Taken
(Id
: E
) return B
is
587 function Alias
(Id
: E
) return E
is
590 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
594 function Alignment
(Id
: E
) return U
is
596 pragma Assert
(Is_Type
(Id
)
597 or else Is_Formal
(Id
)
598 or else Ekind
(Id
) = E_Loop_Parameter
599 or else Ekind
(Id
) = E_Constant
600 or else Ekind
(Id
) = E_Exception
601 or else Ekind
(Id
) = E_Variable
);
605 function Associated_Final_Chain
(Id
: E
) return E
is
607 pragma Assert
(Is_Access_Type
(Id
));
609 end Associated_Final_Chain
;
611 function Associated_Formal_Package
(Id
: E
) return E
is
613 pragma Assert
(Ekind
(Id
) = E_Package
);
615 end Associated_Formal_Package
;
617 function Associated_Node_For_Itype
(Id
: E
) return N
is
620 end Associated_Node_For_Itype
;
622 function Associated_Storage_Pool
(Id
: E
) return E
is
624 pragma Assert
(Is_Access_Type
(Id
));
625 return Node22
(Root_Type
(Id
));
626 end Associated_Storage_Pool
;
628 function Barrier_Function
(Id
: E
) return N
is
630 pragma Assert
(Is_Entry
(Id
));
632 end Barrier_Function
;
634 function Block_Node
(Id
: E
) return N
is
636 pragma Assert
(Ekind
(Id
) = E_Block
);
640 function Body_Entity
(Id
: E
) return E
is
643 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
647 function Body_Needed_For_SAL
(Id
: E
) return B
is
650 (Ekind
(Id
) = E_Package
651 or else Is_Subprogram
(Id
)
652 or else Is_Generic_Unit
(Id
));
654 end Body_Needed_For_SAL
;
656 function C_Pass_By_Copy
(Id
: E
) return B
is
658 pragma Assert
(Is_Record_Type
(Id
));
659 return Flag125
(Implementation_Base_Type
(Id
));
662 function Can_Never_Be_Null
(Id
: E
) return B
is
665 end Can_Never_Be_Null
;
667 function Checks_May_Be_Suppressed
(Id
: E
) return B
is
670 end Checks_May_Be_Suppressed
;
672 function Class_Wide_Type
(Id
: E
) return E
is
674 pragma Assert
(Is_Type
(Id
));
678 function Cloned_Subtype
(Id
: E
) return E
is
681 (Ekind
(Id
) = E_Record_Subtype
682 or else Ekind
(Id
) = E_Class_Wide_Subtype
);
686 function Component_Bit_Offset
(Id
: E
) return U
is
689 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
691 end Component_Bit_Offset
;
693 function Component_Clause
(Id
: E
) return N
is
696 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
698 end Component_Clause
;
700 function Component_Size
(Id
: E
) return U
is
702 pragma Assert
(Is_Array_Type
(Id
));
703 return Uint22
(Implementation_Base_Type
(Id
));
706 function Component_Type
(Id
: E
) return E
is
708 return Node20
(Implementation_Base_Type
(Id
));
711 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
713 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
715 end Corresponding_Concurrent_Type
;
717 function Corresponding_Discriminant
(Id
: E
) return E
is
719 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
721 end Corresponding_Discriminant
;
723 function Corresponding_Equality
(Id
: E
) return E
is
726 (Ekind
(Id
) = E_Function
727 and then not Comes_From_Source
(Id
)
728 and then Chars
(Id
) = Name_Op_Ne
);
730 end Corresponding_Equality
;
732 function Corresponding_Record_Type
(Id
: E
) return E
is
734 pragma Assert
(Is_Concurrent_Type
(Id
));
736 end Corresponding_Record_Type
;
738 function Corresponding_Remote_Type
(Id
: E
) return E
is
741 end Corresponding_Remote_Type
;
743 function Current_Use_Clause
(Id
: E
) return E
is
745 pragma Assert
(Ekind
(Id
) = E_Package
);
747 end Current_Use_Clause
;
749 function Current_Value
(Id
: E
) return N
is
751 pragma Assert
(Ekind
(Id
) in Object_Kind
);
755 function CR_Discriminant
(Id
: E
) return E
is
760 function Debug_Info_Off
(Id
: E
) return B
is
765 function Debug_Renaming_Link
(Id
: E
) return E
is
768 end Debug_Renaming_Link
;
770 function Default_Expr_Function
(Id
: E
) return E
is
772 pragma Assert
(Is_Formal
(Id
));
774 end Default_Expr_Function
;
776 function Default_Expressions_Processed
(Id
: E
) return B
is
779 end Default_Expressions_Processed
;
781 function Default_Value
(Id
: E
) return N
is
783 pragma Assert
(Is_Formal
(Id
));
787 function Delay_Cleanups
(Id
: E
) return B
is
792 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
795 end Delay_Subprogram_Descriptors
;
797 function Delta_Value
(Id
: E
) return R
is
799 pragma Assert
(Is_Fixed_Point_Type
(Id
));
803 function Dependent_Instances
(Id
: E
) return L
is
805 pragma Assert
(Is_Generic_Instance
(Id
));
807 end Dependent_Instances
;
809 function Depends_On_Private
(Id
: E
) return B
is
811 pragma Assert
(Nkind
(Id
) in N_Entity
);
813 end Depends_On_Private
;
815 function Digits_Value
(Id
: E
) return U
is
818 (Is_Floating_Point_Type
(Id
)
819 or else Is_Decimal_Fixed_Point_Type
(Id
));
823 function Directly_Designated_Type
(Id
: E
) return E
is
826 end Directly_Designated_Type
;
828 function Discard_Names
(Id
: E
) return B
is
833 function Discriminal
(Id
: E
) return E
is
835 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
839 function Discriminal_Link
(Id
: E
) return N
is
842 end Discriminal_Link
;
844 function Discriminant_Checking_Func
(Id
: E
) return E
is
846 pragma Assert
(Ekind
(Id
) = E_Component
);
848 end Discriminant_Checking_Func
;
850 function Discriminant_Constraint
(Id
: E
) return L
is
852 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
854 end Discriminant_Constraint
;
856 function Discriminant_Default_Value
(Id
: E
) return N
is
858 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
860 end Discriminant_Default_Value
;
862 function Discriminant_Number
(Id
: E
) return U
is
864 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
866 end Discriminant_Number
;
868 function Dispatch_Table_Wrapper
(Id
: E
) return E
is
870 pragma Assert
(Is_Tagged_Type
(Id
));
871 return Node26
(Implementation_Base_Type
(Id
));
872 end Dispatch_Table_Wrapper
;
874 function DT_Entry_Count
(Id
: E
) return U
is
876 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
880 function DT_Offset_To_Top_Func
(Id
: E
) return E
is
882 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
884 end DT_Offset_To_Top_Func
;
886 function DT_Position
(Id
: E
) return U
is
889 ((Ekind
(Id
) = E_Function
890 or else Ekind
(Id
) = E_Procedure
)
891 and then Present
(DTC_Entity
(Id
)));
895 function DTC_Entity
(Id
: E
) return E
is
898 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
902 function Elaborate_Body_Desirable
(Id
: E
) return B
is
904 pragma Assert
(Ekind
(Id
) = E_Package
);
906 end Elaborate_Body_Desirable
;
908 function Elaboration_Entity
(Id
: E
) return E
is
913 Ekind
(Id
) = E_Package
915 Is_Generic_Unit
(Id
));
917 end Elaboration_Entity
;
919 function Elaboration_Entity_Required
(Id
: E
) return B
is
924 Ekind
(Id
) = E_Package
926 Is_Generic_Unit
(Id
));
928 end Elaboration_Entity_Required
;
930 function Enclosing_Scope
(Id
: E
) return E
is
935 function Entry_Accepted
(Id
: E
) return B
is
937 pragma Assert
(Is_Entry
(Id
));
941 function Entry_Bodies_Array
(Id
: E
) return E
is
944 end Entry_Bodies_Array
;
946 function Entry_Cancel_Parameter
(Id
: E
) return E
is
949 end Entry_Cancel_Parameter
;
951 function Entry_Component
(Id
: E
) return E
is
956 function Entry_Formal
(Id
: E
) return E
is
961 function Entry_Index_Constant
(Id
: E
) return N
is
963 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
965 end Entry_Index_Constant
;
967 function Entry_Parameters_Type
(Id
: E
) return E
is
970 end Entry_Parameters_Type
;
972 function Enum_Pos_To_Rep
(Id
: E
) return E
is
974 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
978 function Enumeration_Pos
(Id
: E
) return Uint
is
980 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
984 function Enumeration_Rep
(Id
: E
) return U
is
986 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
990 function Enumeration_Rep_Expr
(Id
: E
) return N
is
992 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
994 end Enumeration_Rep_Expr
;
996 function Equivalent_Type
(Id
: E
) return E
is
999 (Ekind
(Id
) = E_Class_Wide_Subtype
or else
1000 Ekind
(Id
) = E_Access_Protected_Subprogram_Type
or else
1001 Ekind
(Id
) = E_Anonymous_Access_Protected_Subprogram_Type
or else
1002 Ekind
(Id
) = E_Access_Subprogram_Type
or else
1003 Ekind
(Id
) = E_Exception_Type
);
1005 end Equivalent_Type
;
1007 function Esize
(Id
: E
) return Uint
is
1012 function Exception_Code
(Id
: E
) return Uint
is
1014 pragma Assert
(Ekind
(Id
) = E_Exception
);
1018 function Extra_Accessibility
(Id
: E
) return E
is
1020 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1022 end Extra_Accessibility
;
1024 function Extra_Constrained
(Id
: E
) return E
is
1026 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
1028 end Extra_Constrained
;
1030 function Extra_Formal
(Id
: E
) return E
is
1035 function Extra_Formals
(Id
: E
) return E
is
1038 (Is_Overloadable
(Id
)
1039 or else Ekind
(Id
) = E_Entry_Family
1040 or else Ekind
(Id
) = E_Subprogram_Body
1041 or else Ekind
(Id
) = E_Subprogram_Type
);
1045 function Can_Use_Internal_Rep
(Id
: E
) return B
is
1047 pragma Assert
(Ekind
(Id
) in Access_Subprogram_Type_Kind
);
1048 return Flag229
(Id
);
1049 end Can_Use_Internal_Rep
;
1051 function Finalization_Chain_Entity
(Id
: E
) return E
is
1054 end Finalization_Chain_Entity
;
1056 function Finalize_Storage_Only
(Id
: E
) return B
is
1058 pragma Assert
(Is_Type
(Id
));
1059 return Flag158
(Base_Type
(Id
));
1060 end Finalize_Storage_Only
;
1062 function First_Entity
(Id
: E
) return E
is
1067 function First_Index
(Id
: E
) return N
is
1069 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
1073 function First_Literal
(Id
: E
) return E
is
1075 pragma Assert
(Is_Enumeration_Type
(Id
));
1079 function First_Optional_Parameter
(Id
: E
) return E
is
1082 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
1084 end First_Optional_Parameter
;
1086 function First_Private_Entity
(Id
: E
) return E
is
1088 pragma Assert
(Ekind
(Id
) = E_Package
1089 or else Ekind
(Id
) = E_Generic_Package
1090 or else Ekind
(Id
) in Concurrent_Kind
);
1092 end First_Private_Entity
;
1094 function First_Rep_Item
(Id
: E
) return E
is
1099 function Freeze_Node
(Id
: E
) return N
is
1104 function From_With_Type
(Id
: E
) return B
is
1106 return Flag159
(Id
);
1109 function Full_View
(Id
: E
) return E
is
1111 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
1115 function Function_Returns_With_DSP
(Id
: E
) return B
is
1118 (Is_Subprogram
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
1119 return Flag169
(Id
);
1120 end Function_Returns_With_DSP
;
1122 function Generic_Homonym
(Id
: E
) return E
is
1124 pragma Assert
(Ekind
(Id
) = E_Generic_Package
);
1126 end Generic_Homonym
;
1128 function Generic_Renamings
(Id
: E
) return L
is
1130 return Elist23
(Id
);
1131 end Generic_Renamings
;
1133 function Handler_Records
(Id
: E
) return S
is
1136 end Handler_Records
;
1138 function Has_Aliased_Components
(Id
: E
) return B
is
1140 return Flag135
(Implementation_Base_Type
(Id
));
1141 end Has_Aliased_Components
;
1143 function Has_Alignment_Clause
(Id
: E
) return B
is
1146 end Has_Alignment_Clause
;
1148 function Has_All_Calls_Remote
(Id
: E
) return B
is
1151 end Has_All_Calls_Remote
;
1153 function Has_Anon_Block_Suffix
(Id
: E
) return B
is
1155 return Flag201
(Id
);
1156 end Has_Anon_Block_Suffix
;
1158 function Has_Atomic_Components
(Id
: E
) return B
is
1160 return Flag86
(Implementation_Base_Type
(Id
));
1161 end Has_Atomic_Components
;
1163 function Has_Biased_Representation
(Id
: E
) return B
is
1165 return Flag139
(Id
);
1166 end Has_Biased_Representation
;
1168 function Has_Completion
(Id
: E
) return B
is
1173 function Has_Completion_In_Body
(Id
: E
) return B
is
1175 pragma Assert
(Is_Type
(Id
));
1177 end Has_Completion_In_Body
;
1179 function Has_Complex_Representation
(Id
: E
) return B
is
1181 pragma Assert
(Is_Type
(Id
));
1182 return Flag140
(Implementation_Base_Type
(Id
));
1183 end Has_Complex_Representation
;
1185 function Has_Component_Size_Clause
(Id
: E
) return B
is
1187 pragma Assert
(Is_Array_Type
(Id
));
1188 return Flag68
(Implementation_Base_Type
(Id
));
1189 end Has_Component_Size_Clause
;
1191 function Has_Constrained_Partial_View
(Id
: E
) return B
is
1193 pragma Assert
(Is_Type
(Id
));
1194 return Flag187
(Id
);
1195 end Has_Constrained_Partial_View
;
1197 function Has_Controlled_Component
(Id
: E
) return B
is
1199 return Flag43
(Base_Type
(Id
));
1200 end Has_Controlled_Component
;
1202 function Has_Contiguous_Rep
(Id
: E
) return B
is
1204 return Flag181
(Id
);
1205 end Has_Contiguous_Rep
;
1207 function Has_Controlling_Result
(Id
: E
) return B
is
1210 end Has_Controlling_Result
;
1212 function Has_Convention_Pragma
(Id
: E
) return B
is
1214 return Flag119
(Id
);
1215 end Has_Convention_Pragma
;
1217 function Has_Delayed_Freeze
(Id
: E
) return B
is
1219 pragma Assert
(Nkind
(Id
) in N_Entity
);
1221 end Has_Delayed_Freeze
;
1223 function Has_Discriminants
(Id
: E
) return B
is
1225 pragma Assert
(Nkind
(Id
) in N_Entity
);
1227 end Has_Discriminants
;
1229 function Has_Dispatch_Table
(Id
: E
) return B
is
1231 pragma Assert
(Is_Tagged_Type
(Id
));
1232 return Flag220
(Id
);
1233 end Has_Dispatch_Table
;
1235 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
1237 pragma Assert
(Is_Enumeration_Type
(Id
));
1239 end Has_Enumeration_Rep_Clause
;
1241 function Has_Exit
(Id
: E
) return B
is
1246 function Has_External_Tag_Rep_Clause
(Id
: E
) return B
is
1248 pragma Assert
(Is_Tagged_Type
(Id
));
1249 return Flag110
(Id
);
1250 end Has_External_Tag_Rep_Clause
;
1252 function Has_Forward_Instantiation
(Id
: E
) return B
is
1254 return Flag175
(Id
);
1255 end Has_Forward_Instantiation
;
1257 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1259 return Flag173
(Id
);
1260 end Has_Fully_Qualified_Name
;
1262 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1265 end Has_Gigi_Rep_Item
;
1267 function Has_Homonym
(Id
: E
) return B
is
1272 function Has_Initial_Value
(Id
: E
) return B
is
1275 (Ekind
(Id
) = E_Variable
or else Is_Formal
(Id
));
1276 return Flag219
(Id
);
1277 end Has_Initial_Value
;
1279 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1281 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1283 end Has_Machine_Radix_Clause
;
1285 function Has_Master_Entity
(Id
: E
) return B
is
1288 end Has_Master_Entity
;
1290 function Has_Missing_Return
(Id
: E
) return B
is
1293 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Generic_Function
);
1294 return Flag142
(Id
);
1295 end Has_Missing_Return
;
1297 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1299 return Flag101
(Id
);
1300 end Has_Nested_Block_With_Handler
;
1302 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1304 return Flag75
(Implementation_Base_Type
(Id
));
1305 end Has_Non_Standard_Rep
;
1307 function Has_Object_Size_Clause
(Id
: E
) return B
is
1309 pragma Assert
(Is_Type
(Id
));
1310 return Flag172
(Id
);
1311 end Has_Object_Size_Clause
;
1313 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1315 return Flag154
(Id
);
1316 end Has_Per_Object_Constraint
;
1318 function Has_Persistent_BSS
(Id
: E
) return B
is
1320 return Flag188
(Id
);
1321 end Has_Persistent_BSS
;
1323 function Has_Pragma_Controlled
(Id
: E
) return B
is
1325 pragma Assert
(Is_Access_Type
(Id
));
1326 return Flag27
(Implementation_Base_Type
(Id
));
1327 end Has_Pragma_Controlled
;
1329 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1331 return Flag150
(Id
);
1332 end Has_Pragma_Elaborate_Body
;
1334 function Has_Pragma_Inline
(Id
: E
) return B
is
1336 return Flag157
(Id
);
1337 end Has_Pragma_Inline
;
1339 function Has_Pragma_Inline_Always
(Id
: E
) return B
is
1341 return Flag230
(Id
);
1342 end Has_Pragma_Inline_Always
;
1344 function Has_Pragma_Pack
(Id
: E
) return B
is
1346 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1347 return Flag121
(Implementation_Base_Type
(Id
));
1348 end Has_Pragma_Pack
;
1350 function Has_Pragma_Preelab_Init
(Id
: E
) return B
is
1352 return Flag221
(Id
);
1353 end Has_Pragma_Preelab_Init
;
1355 function Has_Pragma_Pure
(Id
: E
) return B
is
1357 return Flag203
(Id
);
1358 end Has_Pragma_Pure
;
1360 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1362 return Flag179
(Id
);
1363 end Has_Pragma_Pure_Function
;
1365 function Has_Pragma_Unmodified
(Id
: E
) return B
is
1367 return Flag233
(Id
);
1368 end Has_Pragma_Unmodified
;
1370 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1372 return Flag180
(Id
);
1373 end Has_Pragma_Unreferenced
;
1375 function Has_Pragma_Unreferenced_Objects
(Id
: E
) return B
is
1377 pragma Assert
(Is_Type
(Id
));
1378 return Flag212
(Id
);
1379 end Has_Pragma_Unreferenced_Objects
;
1381 function Has_Primitive_Operations
(Id
: E
) return B
is
1383 pragma Assert
(Is_Type
(Id
));
1384 return Flag120
(Base_Type
(Id
));
1385 end Has_Primitive_Operations
;
1387 function Has_Private_Declaration
(Id
: E
) return B
is
1389 return Flag155
(Id
);
1390 end Has_Private_Declaration
;
1392 function Has_Qualified_Name
(Id
: E
) return B
is
1394 return Flag161
(Id
);
1395 end Has_Qualified_Name
;
1397 function Has_RACW
(Id
: E
) return B
is
1399 pragma Assert
(Ekind
(Id
) = E_Package
);
1400 return Flag214
(Id
);
1403 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1405 pragma Assert
(Is_Record_Type
(Id
));
1406 return Flag65
(Implementation_Base_Type
(Id
));
1407 end Has_Record_Rep_Clause
;
1409 function Has_Recursive_Call
(Id
: E
) return B
is
1411 pragma Assert
(Is_Subprogram
(Id
));
1412 return Flag143
(Id
);
1413 end Has_Recursive_Call
;
1415 function Has_Size_Clause
(Id
: E
) return B
is
1418 end Has_Size_Clause
;
1420 function Has_Small_Clause
(Id
: E
) return B
is
1423 end Has_Small_Clause
;
1425 function Has_Specified_Layout
(Id
: E
) return B
is
1427 pragma Assert
(Is_Type
(Id
));
1428 return Flag100
(Implementation_Base_Type
(Id
));
1429 end Has_Specified_Layout
;
1431 function Has_Specified_Stream_Input
(Id
: E
) return B
is
1433 pragma Assert
(Is_Type
(Id
));
1434 return Flag190
(Id
);
1435 end Has_Specified_Stream_Input
;
1437 function Has_Specified_Stream_Output
(Id
: E
) return B
is
1439 pragma Assert
(Is_Type
(Id
));
1440 return Flag191
(Id
);
1441 end Has_Specified_Stream_Output
;
1443 function Has_Specified_Stream_Read
(Id
: E
) return B
is
1445 pragma Assert
(Is_Type
(Id
));
1446 return Flag192
(Id
);
1447 end Has_Specified_Stream_Read
;
1449 function Has_Specified_Stream_Write
(Id
: E
) return B
is
1451 pragma Assert
(Is_Type
(Id
));
1452 return Flag193
(Id
);
1453 end Has_Specified_Stream_Write
;
1455 function Has_Static_Discriminants
(Id
: E
) return B
is
1457 pragma Assert
(Is_Type
(Id
));
1458 return Flag211
(Id
);
1459 end Has_Static_Discriminants
;
1461 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1463 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1464 return Flag23
(Implementation_Base_Type
(Id
));
1465 end Has_Storage_Size_Clause
;
1467 function Has_Stream_Size_Clause
(Id
: E
) return B
is
1469 return Flag184
(Id
);
1470 end Has_Stream_Size_Clause
;
1472 function Has_Subprogram_Descriptor
(Id
: E
) return B
is
1475 end Has_Subprogram_Descriptor
;
1477 function Has_Task
(Id
: E
) return B
is
1479 return Flag30
(Base_Type
(Id
));
1482 function Has_Thunks
(Id
: E
) return B
is
1484 pragma Assert
(Ekind
(Id
) = E_Constant
);
1485 return Flag228
(Id
);
1488 function Has_Unchecked_Union
(Id
: E
) return B
is
1490 return Flag123
(Base_Type
(Id
));
1491 end Has_Unchecked_Union
;
1493 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1495 pragma Assert
(Is_Type
(Id
));
1497 end Has_Unknown_Discriminants
;
1499 function Has_Up_Level_Access
(Id
: E
) return B
is
1502 (Ekind
(Id
) = E_Variable
1503 or else Ekind
(Id
) = E_Constant
1504 or else Ekind
(Id
) = E_Loop_Parameter
);
1505 return Flag215
(Id
);
1506 end Has_Up_Level_Access
;
1508 function Has_Volatile_Components
(Id
: E
) return B
is
1510 return Flag87
(Implementation_Base_Type
(Id
));
1511 end Has_Volatile_Components
;
1513 function Has_Xref_Entry
(Id
: E
) return B
is
1515 return Flag182
(Implementation_Base_Type
(Id
));
1518 function Hiding_Loop_Variable
(Id
: E
) return E
is
1520 pragma Assert
(Ekind
(Id
) = E_Variable
);
1522 end Hiding_Loop_Variable
;
1524 function Homonym
(Id
: E
) return E
is
1529 function Implemented_By_Entry
(Id
: E
) return B
is
1532 (Ekind
(Id
) = E_Function
1533 or else Ekind
(Id
) = E_Procedure
);
1534 return Flag232
(Id
);
1535 end Implemented_By_Entry
;
1537 function In_Package_Body
(Id
: E
) return B
is
1540 end In_Package_Body
;
1542 function In_Private_Part
(Id
: E
) return B
is
1545 end In_Private_Part
;
1547 function In_Use
(Id
: E
) return B
is
1549 pragma Assert
(Nkind
(Id
) in N_Entity
);
1553 function Inner_Instances
(Id
: E
) return L
is
1555 return Elist23
(Id
);
1556 end Inner_Instances
;
1558 function Interface_Name
(Id
: E
) return N
is
1563 function Is_Abstract_Subprogram
(Id
: E
) return B
is
1565 pragma Assert
(Is_Overloadable
(Id
));
1567 end Is_Abstract_Subprogram
;
1569 function Is_Abstract_Type
(Id
: E
) return B
is
1571 pragma Assert
(Is_Type
(Id
));
1572 return Flag146
(Id
);
1573 end Is_Abstract_Type
;
1575 function Is_Local_Anonymous_Access
(Id
: E
) return B
is
1577 pragma Assert
(Is_Access_Type
(Id
));
1578 return Flag194
(Id
);
1579 end Is_Local_Anonymous_Access
;
1581 function Is_Access_Constant
(Id
: E
) return B
is
1583 pragma Assert
(Is_Access_Type
(Id
));
1585 end Is_Access_Constant
;
1587 function Is_Ada_2005_Only
(Id
: E
) return B
is
1589 return Flag185
(Id
);
1590 end Is_Ada_2005_Only
;
1592 function Is_Aliased
(Id
: E
) return B
is
1594 pragma Assert
(Nkind
(Id
) in N_Entity
);
1598 function Is_AST_Entry
(Id
: E
) return B
is
1600 pragma Assert
(Is_Entry
(Id
));
1601 return Flag132
(Id
);
1604 function Is_Asynchronous
(Id
: E
) return B
is
1607 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1609 end Is_Asynchronous
;
1611 function Is_Atomic
(Id
: E
) return B
is
1616 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1618 return Flag122
(Implementation_Base_Type
(Id
));
1619 end Is_Bit_Packed_Array
;
1621 function Is_Called
(Id
: E
) return B
is
1624 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Function
);
1625 return Flag102
(Id
);
1628 function Is_Character_Type
(Id
: E
) return B
is
1631 end Is_Character_Type
;
1633 function Is_Child_Unit
(Id
: E
) return B
is
1638 function Is_Class_Wide_Equivalent_Type
(Id
: E
) return B
is
1641 end Is_Class_Wide_Equivalent_Type
;
1643 function Is_Compilation_Unit
(Id
: E
) return B
is
1645 return Flag149
(Id
);
1646 end Is_Compilation_Unit
;
1648 function Is_Completely_Hidden
(Id
: E
) return B
is
1650 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1651 return Flag103
(Id
);
1652 end Is_Completely_Hidden
;
1654 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1657 end Is_Constr_Subt_For_U_Nominal
;
1659 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1661 return Flag141
(Id
);
1662 end Is_Constr_Subt_For_UN_Aliased
;
1664 function Is_Constrained
(Id
: E
) return B
is
1666 pragma Assert
(Nkind
(Id
) in N_Entity
);
1670 function Is_Constructor
(Id
: E
) return B
is
1675 function Is_Controlled
(Id
: E
) return B
is
1677 return Flag42
(Base_Type
(Id
));
1680 function Is_Controlling_Formal
(Id
: E
) return B
is
1682 pragma Assert
(Is_Formal
(Id
));
1684 end Is_Controlling_Formal
;
1686 function Is_CPP_Class
(Id
: E
) return B
is
1691 function Is_Discrim_SO_Function
(Id
: E
) return B
is
1693 return Flag176
(Id
);
1694 end Is_Discrim_SO_Function
;
1696 function Is_Descendent_Of_Address
(Id
: E
) return B
is
1698 pragma Assert
(Is_Type
(Id
));
1699 return Flag223
(Id
);
1700 end Is_Descendent_Of_Address
;
1702 function Is_Dispatching_Operation
(Id
: E
) return B
is
1704 pragma Assert
(Nkind
(Id
) in N_Entity
);
1706 end Is_Dispatching_Operation
;
1708 function Is_Eliminated
(Id
: E
) return B
is
1710 return Flag124
(Id
);
1713 function Is_Entry_Formal
(Id
: E
) return B
is
1716 end Is_Entry_Formal
;
1718 function Is_Exported
(Id
: E
) return B
is
1723 function Is_First_Subtype
(Id
: E
) return B
is
1726 end Is_First_Subtype
;
1728 function Is_For_Access_Subtype
(Id
: E
) return B
is
1731 (Ekind
(Id
) = E_Record_Subtype
1733 Ekind
(Id
) = E_Private_Subtype
);
1734 return Flag118
(Id
);
1735 end Is_For_Access_Subtype
;
1737 function Is_Formal_Subprogram
(Id
: E
) return B
is
1739 return Flag111
(Id
);
1740 end Is_Formal_Subprogram
;
1742 function Is_Frozen
(Id
: E
) return B
is
1747 function Is_Generic_Actual_Type
(Id
: E
) return B
is
1749 pragma Assert
(Is_Type
(Id
));
1751 end Is_Generic_Actual_Type
;
1753 function Is_Generic_Instance
(Id
: E
) return B
is
1755 return Flag130
(Id
);
1756 end Is_Generic_Instance
;
1758 function Is_Generic_Type
(Id
: E
) return B
is
1760 pragma Assert
(Nkind
(Id
) in N_Entity
);
1762 end Is_Generic_Type
;
1764 function Is_Hidden
(Id
: E
) return B
is
1769 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
1771 return Flag171
(Id
);
1772 end Is_Hidden_Open_Scope
;
1774 function Is_Immediately_Visible
(Id
: E
) return B
is
1776 pragma Assert
(Nkind
(Id
) in N_Entity
);
1778 end Is_Immediately_Visible
;
1780 function Is_Imported
(Id
: E
) return B
is
1785 function Is_Inlined
(Id
: E
) return B
is
1790 function Is_Interface
(Id
: E
) return B
is
1792 return Flag186
(Id
);
1795 function Is_Instantiated
(Id
: E
) return B
is
1797 return Flag126
(Id
);
1798 end Is_Instantiated
;
1800 function Is_Internal
(Id
: E
) return B
is
1802 pragma Assert
(Nkind
(Id
) in N_Entity
);
1806 function Is_Interrupt_Handler
(Id
: E
) return B
is
1808 pragma Assert
(Nkind
(Id
) in N_Entity
);
1810 end Is_Interrupt_Handler
;
1812 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
1815 end Is_Intrinsic_Subprogram
;
1817 function Is_Itype
(Id
: E
) return B
is
1822 function Is_Known_Non_Null
(Id
: E
) return B
is
1825 end Is_Known_Non_Null
;
1827 function Is_Known_Null
(Id
: E
) return B
is
1829 return Flag204
(Id
);
1832 function Is_Known_Valid
(Id
: E
) return B
is
1834 return Flag170
(Id
);
1837 function Is_Limited_Composite
(Id
: E
) return B
is
1839 return Flag106
(Id
);
1840 end Is_Limited_Composite
;
1842 function Is_Limited_Interface
(Id
: E
) return B
is
1844 return Flag197
(Id
);
1845 end Is_Limited_Interface
;
1847 function Is_Limited_Record
(Id
: E
) return B
is
1850 end Is_Limited_Record
;
1852 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
1854 pragma Assert
(Is_Subprogram
(Id
));
1855 return Flag137
(Id
);
1856 end Is_Machine_Code_Subprogram
;
1858 function Is_Non_Static_Subtype
(Id
: E
) return B
is
1860 pragma Assert
(Is_Type
(Id
));
1861 return Flag109
(Id
);
1862 end Is_Non_Static_Subtype
;
1864 function Is_Null_Init_Proc
(Id
: E
) return B
is
1866 pragma Assert
(Ekind
(Id
) = E_Procedure
);
1867 return Flag178
(Id
);
1868 end Is_Null_Init_Proc
;
1870 function Is_Obsolescent
(Id
: E
) return B
is
1872 return Flag153
(Id
);
1875 function Is_Only_Out_Parameter
(Id
: E
) return B
is
1877 pragma Assert
(Is_Formal
(Id
));
1878 return Flag226
(Id
);
1879 end Is_Only_Out_Parameter
;
1881 function Is_Optional_Parameter
(Id
: E
) return B
is
1883 pragma Assert
(Is_Formal
(Id
));
1884 return Flag134
(Id
);
1885 end Is_Optional_Parameter
;
1887 function Is_Overriding_Operation
(Id
: E
) return B
is
1889 pragma Assert
(Is_Subprogram
(Id
));
1891 end Is_Overriding_Operation
;
1893 function Is_Package_Body_Entity
(Id
: E
) return B
is
1895 return Flag160
(Id
);
1896 end Is_Package_Body_Entity
;
1898 function Is_Packed
(Id
: E
) return B
is
1900 return Flag51
(Implementation_Base_Type
(Id
));
1903 function Is_Packed_Array_Type
(Id
: E
) return B
is
1905 return Flag138
(Id
);
1906 end Is_Packed_Array_Type
;
1908 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
1910 pragma Assert
(Nkind
(Id
) in N_Entity
);
1912 end Is_Potentially_Use_Visible
;
1914 function Is_Preelaborated
(Id
: E
) return B
is
1917 end Is_Preelaborated
;
1919 function Is_Primitive
(Id
: E
) return B
is
1922 (Is_Overloadable
(Id
)
1923 or else Ekind
(Id
) = E_Generic_Function
1924 or else Ekind
(Id
) = E_Generic_Procedure
);
1925 return Flag218
(Id
);
1928 function Is_Primitive_Wrapper
(Id
: E
) return B
is
1930 pragma Assert
(Ekind
(Id
) = E_Procedure
);
1931 return Flag195
(Id
);
1932 end Is_Primitive_Wrapper
;
1934 function Is_Private_Composite
(Id
: E
) return B
is
1936 pragma Assert
(Is_Type
(Id
));
1937 return Flag107
(Id
);
1938 end Is_Private_Composite
;
1940 function Is_Private_Descendant
(Id
: E
) return B
is
1943 end Is_Private_Descendant
;
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_Raised
(Id
: E
) return B
is
1970 pragma Assert
(Ekind
(Id
) = E_Exception
);
1971 return Flag224
(Id
);
1974 function Is_Remote_Call_Interface
(Id
: E
) return B
is
1977 end Is_Remote_Call_Interface
;
1979 function Is_Remote_Types
(Id
: E
) return B
is
1982 end Is_Remote_Types
;
1984 function Is_Renaming_Of_Object
(Id
: E
) return B
is
1986 return Flag112
(Id
);
1987 end Is_Renaming_Of_Object
;
1989 function Is_Return_Object
(Id
: E
) return B
is
1991 return Flag209
(Id
);
1992 end Is_Return_Object
;
1994 function Is_Shared_Passive
(Id
: E
) return B
is
1997 end Is_Shared_Passive
;
1999 function Is_Statically_Allocated
(Id
: E
) return B
is
2002 end Is_Statically_Allocated
;
2004 function Is_Synchronized_Interface
(Id
: E
) return B
is
2006 pragma Assert
(Is_Interface
(Id
));
2007 return Flag199
(Id
);
2008 end Is_Synchronized_Interface
;
2010 function Is_Tag
(Id
: E
) return B
is
2012 pragma Assert
(Nkind
(Id
) in N_Entity
);
2016 function Is_Tagged_Type
(Id
: E
) return B
is
2021 function Is_Task_Interface
(Id
: E
) return B
is
2023 pragma Assert
(Is_Interface
(Id
));
2024 return Flag200
(Id
);
2025 end Is_Task_Interface
;
2027 function Is_Thunk
(Id
: E
) return B
is
2029 pragma Assert
(Is_Subprogram
(Id
));
2030 return Flag225
(Id
);
2033 function Is_True_Constant
(Id
: E
) return B
is
2035 return Flag163
(Id
);
2036 end Is_True_Constant
;
2038 function Is_Unchecked_Union
(Id
: E
) return B
is
2040 return Flag117
(Implementation_Base_Type
(Id
));
2041 end Is_Unchecked_Union
;
2043 function Is_Unsigned_Type
(Id
: E
) return B
is
2045 pragma Assert
(Is_Type
(Id
));
2046 return Flag144
(Id
);
2047 end Is_Unsigned_Type
;
2049 function Is_Valued_Procedure
(Id
: E
) return B
is
2051 pragma Assert
(Ekind
(Id
) = E_Procedure
);
2052 return Flag127
(Id
);
2053 end Is_Valued_Procedure
;
2055 function Is_Visible_Child_Unit
(Id
: E
) return B
is
2057 pragma Assert
(Is_Child_Unit
(Id
));
2058 return Flag116
(Id
);
2059 end Is_Visible_Child_Unit
;
2061 function Is_Visible_Formal
(Id
: E
) return B
is
2063 return Flag206
(Id
);
2064 end Is_Visible_Formal
;
2066 function Is_VMS_Exception
(Id
: E
) return B
is
2068 return Flag133
(Id
);
2069 end Is_VMS_Exception
;
2071 function Is_Volatile
(Id
: E
) return B
is
2073 pragma Assert
(Nkind
(Id
) in N_Entity
);
2075 if Is_Type
(Id
) then
2076 return Flag16
(Base_Type
(Id
));
2082 function Itype_Printed
(Id
: E
) return B
is
2084 pragma Assert
(Is_Itype
(Id
));
2085 return Flag202
(Id
);
2088 function Kill_Elaboration_Checks
(Id
: E
) return B
is
2091 end Kill_Elaboration_Checks
;
2093 function Kill_Range_Checks
(Id
: E
) return B
is
2096 end Kill_Range_Checks
;
2098 function Kill_Tag_Checks
(Id
: E
) return B
is
2101 end Kill_Tag_Checks
;
2103 function Known_To_Have_Preelab_Init
(Id
: E
) return B
is
2105 pragma Assert
(Is_Type
(Id
));
2106 return Flag207
(Id
);
2107 end Known_To_Have_Preelab_Init
;
2109 function Last_Assignment
(Id
: E
) return N
is
2111 pragma Assert
(Is_Assignable
(Id
));
2113 end Last_Assignment
;
2115 function Last_Entity
(Id
: E
) return E
is
2120 function Limited_View
(Id
: E
) return E
is
2122 pragma Assert
(Ekind
(Id
) = E_Package
);
2126 function Lit_Indexes
(Id
: E
) return E
is
2128 pragma Assert
(Is_Enumeration_Type
(Id
));
2132 function Lit_Strings
(Id
: E
) return E
is
2134 pragma Assert
(Is_Enumeration_Type
(Id
));
2138 function Low_Bound_Known
(Id
: E
) return B
is
2140 return Flag205
(Id
);
2141 end Low_Bound_Known
;
2143 function Machine_Radix_10
(Id
: E
) return B
is
2145 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2147 end Machine_Radix_10
;
2149 function Master_Id
(Id
: E
) return E
is
2151 pragma Assert
(Is_Access_Type
(Id
));
2155 function Materialize_Entity
(Id
: E
) return B
is
2157 return Flag168
(Id
);
2158 end Materialize_Entity
;
2160 function Mechanism
(Id
: E
) return M
is
2162 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
2163 return UI_To_Int
(Uint8
(Id
));
2166 function Modulus
(Id
: E
) return Uint
is
2168 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2169 return Uint17
(Base_Type
(Id
));
2172 function Must_Be_On_Byte_Boundary
(Id
: E
) return B
is
2174 pragma Assert
(Is_Type
(Id
));
2175 return Flag183
(Id
);
2176 end Must_Be_On_Byte_Boundary
;
2178 function Must_Have_Preelab_Init
(Id
: E
) return B
is
2180 pragma Assert
(Is_Type
(Id
));
2181 return Flag208
(Id
);
2182 end Must_Have_Preelab_Init
;
2184 function Needs_Debug_Info
(Id
: E
) return B
is
2186 return Flag147
(Id
);
2187 end Needs_Debug_Info
;
2189 function Needs_No_Actuals
(Id
: E
) return B
is
2192 (Is_Overloadable
(Id
)
2193 or else Ekind
(Id
) = E_Subprogram_Type
2194 or else Ekind
(Id
) = E_Entry_Family
);
2196 end Needs_No_Actuals
;
2198 function Never_Set_In_Source
(Id
: E
) return B
is
2200 return Flag115
(Id
);
2201 end Never_Set_In_Source
;
2203 function Next_Inlined_Subprogram
(Id
: E
) return E
is
2206 end Next_Inlined_Subprogram
;
2208 function No_Pool_Assigned
(Id
: E
) return B
is
2210 pragma Assert
(Is_Access_Type
(Id
));
2211 return Flag131
(Root_Type
(Id
));
2212 end No_Pool_Assigned
;
2214 function No_Return
(Id
: E
) return B
is
2216 return Flag113
(Id
);
2219 function No_Strict_Aliasing
(Id
: E
) return B
is
2221 pragma Assert
(Is_Access_Type
(Id
));
2222 return Flag136
(Base_Type
(Id
));
2223 end No_Strict_Aliasing
;
2225 function Non_Binary_Modulus
(Id
: E
) return B
is
2227 pragma Assert
(Is_Modular_Integer_Type
(Id
));
2228 return Flag58
(Base_Type
(Id
));
2229 end Non_Binary_Modulus
;
2231 function Non_Limited_View
(Id
: E
) return E
is
2233 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
2235 end Non_Limited_View
;
2237 function Nonzero_Is_True
(Id
: E
) return B
is
2239 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
2240 return Flag162
(Base_Type
(Id
));
2241 end Nonzero_Is_True
;
2243 function Normalized_First_Bit
(Id
: E
) return U
is
2246 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
2248 end Normalized_First_Bit
;
2250 function Normalized_Position
(Id
: E
) return U
is
2253 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
2255 end Normalized_Position
;
2257 function Normalized_Position_Max
(Id
: E
) return U
is
2260 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
2262 end Normalized_Position_Max
;
2264 function Object_Ref
(Id
: E
) return E
is
2266 pragma Assert
(Ekind
(Id
) = E_Protected_Body
);
2270 function Obsolescent_Warning
(Id
: E
) return N
is
2273 end Obsolescent_Warning
;
2275 function Original_Array_Type
(Id
: E
) return E
is
2277 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
2279 end Original_Array_Type
;
2281 function Original_Record_Component
(Id
: E
) return E
is
2284 (Ekind
(Id
) = E_Void
2285 or else Ekind
(Id
) = E_Component
2286 or else Ekind
(Id
) = E_Discriminant
);
2288 end Original_Record_Component
;
2290 function Overridden_Operation
(Id
: E
) return E
is
2293 end Overridden_Operation
;
2295 function Package_Instantiation
(Id
: E
) return N
is
2299 or else Ekind
(Id
) = E_Generic_Package
2300 or else Ekind
(Id
) = E_Package
);
2302 end Package_Instantiation
;
2304 function Packed_Array_Type
(Id
: E
) return E
is
2306 pragma Assert
(Is_Array_Type
(Id
));
2308 end Packed_Array_Type
;
2310 function Parent_Subtype
(Id
: E
) return E
is
2312 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
2316 function Primitive_Operations
(Id
: E
) return L
is
2318 pragma Assert
(Is_Tagged_Type
(Id
));
2319 return Elist15
(Id
);
2320 end Primitive_Operations
;
2322 function Prival
(Id
: E
) return E
is
2324 pragma Assert
(Is_Protected_Private
(Id
));
2328 function Privals_Chain
(Id
: E
) return L
is
2330 pragma Assert
(Is_Overloadable
(Id
)
2331 or else Ekind
(Id
) = E_Entry_Family
);
2332 return Elist23
(Id
);
2335 function Private_Dependents
(Id
: E
) return L
is
2337 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
2338 return Elist18
(Id
);
2339 end Private_Dependents
;
2341 function Private_View
(Id
: E
) return N
is
2343 pragma Assert
(Is_Private_Type
(Id
));
2347 function Protected_Body_Subprogram
(Id
: E
) return E
is
2349 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
2351 end Protected_Body_Subprogram
;
2353 function Protected_Formal
(Id
: E
) return E
is
2355 pragma Assert
(Is_Formal
(Id
));
2357 end Protected_Formal
;
2359 function Protected_Operation
(Id
: E
) return N
is
2361 pragma Assert
(Is_Protected_Private
(Id
));
2363 end Protected_Operation
;
2365 function Reachable
(Id
: E
) return B
is
2370 function Referenced
(Id
: E
) return B
is
2372 return Flag156
(Id
);
2375 function Referenced_As_LHS
(Id
: E
) return B
is
2378 end Referenced_As_LHS
;
2380 function Referenced_As_Out_Parameter
(Id
: E
) return B
is
2382 return Flag227
(Id
);
2383 end Referenced_As_Out_Parameter
;
2385 function Referenced_Object
(Id
: E
) return N
is
2387 pragma Assert
(Is_Type
(Id
));
2389 end Referenced_Object
;
2391 function Register_Exception_Call
(Id
: E
) return N
is
2393 pragma Assert
(Ekind
(Id
) = E_Exception
);
2395 end Register_Exception_Call
;
2397 function Related_Array_Object
(Id
: E
) return E
is
2399 pragma Assert
(Is_Array_Type
(Id
));
2401 end Related_Array_Object
;
2403 function Related_Instance
(Id
: E
) return E
is
2406 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Package_Body
);
2408 end Related_Instance
;
2410 function Related_Type
(Id
: E
) return E
is
2413 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Constant
);
2417 function Renamed_Entity
(Id
: E
) return N
is
2422 function Renamed_In_Spec
(Id
: E
) return B
is
2424 pragma Assert
(Ekind
(Id
) = E_Package
);
2425 return Flag231
(Id
);
2426 end Renamed_In_Spec
;
2428 function Renamed_Object
(Id
: E
) return N
is
2433 function Renaming_Map
(Id
: E
) return U
is
2438 function Requires_Overriding
(Id
: E
) return B
is
2440 pragma Assert
(Is_Overloadable
(Id
));
2441 return Flag213
(Id
);
2442 end Requires_Overriding
;
2444 function Return_Present
(Id
: E
) return B
is
2449 function Return_Applies_To
(Id
: E
) return N
is
2452 end Return_Applies_To
;
2454 function Returns_By_Ref
(Id
: E
) return B
is
2459 function Reverse_Bit_Order
(Id
: E
) return B
is
2461 pragma Assert
(Is_Record_Type
(Id
));
2462 return Flag164
(Base_Type
(Id
));
2463 end Reverse_Bit_Order
;
2465 function RM_Size
(Id
: E
) return U
is
2467 pragma Assert
(Is_Type
(Id
));
2471 function Scalar_Range
(Id
: E
) return N
is
2476 function Scale_Value
(Id
: E
) return U
is
2481 function Scope_Depth_Value
(Id
: E
) return U
is
2484 end Scope_Depth_Value
;
2486 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
2488 return Flag167
(Id
);
2489 end Sec_Stack_Needed_For_Return
;
2491 function Shadow_Entities
(Id
: E
) return S
is
2494 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
2496 end Shadow_Entities
;
2498 function Shared_Var_Assign_Proc
(Id
: E
) return E
is
2500 pragma Assert
(Ekind
(Id
) = E_Variable
);
2502 end Shared_Var_Assign_Proc
;
2504 function Shared_Var_Read_Proc
(Id
: E
) return E
is
2506 pragma Assert
(Ekind
(Id
) = E_Variable
);
2508 end Shared_Var_Read_Proc
;
2510 function Size_Check_Code
(Id
: E
) return N
is
2512 pragma Assert
(Ekind
(Id
) = E_Constant
or else Ekind
(Id
) = E_Variable
);
2514 end Size_Check_Code
;
2516 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
2518 return Flag177
(Id
);
2519 end Size_Depends_On_Discriminant
;
2521 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
2524 end Size_Known_At_Compile_Time
;
2526 function Small_Value
(Id
: E
) return R
is
2528 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2529 return Ureal21
(Id
);
2532 function Spec_Entity
(Id
: E
) return E
is
2535 (Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
2539 function Storage_Size_Variable
(Id
: E
) return E
is
2541 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
2542 return Node15
(Implementation_Base_Type
(Id
));
2543 end Storage_Size_Variable
;
2545 function Static_Elaboration_Desired
(Id
: E
) return B
is
2547 pragma Assert
(Ekind
(Id
) = E_Package
);
2549 end Static_Elaboration_Desired
;
2551 function Static_Initialization
(Id
: E
) return N
is
2554 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
2556 end Static_Initialization
;
2558 function Stored_Constraint
(Id
: E
) return L
is
2561 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
2562 return Elist23
(Id
);
2563 end Stored_Constraint
;
2565 function Strict_Alignment
(Id
: E
) return B
is
2567 return Flag145
(Implementation_Base_Type
(Id
));
2568 end Strict_Alignment
;
2570 function String_Literal_Length
(Id
: E
) return U
is
2573 end String_Literal_Length
;
2575 function String_Literal_Low_Bound
(Id
: E
) return N
is
2578 end String_Literal_Low_Bound
;
2580 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
2582 return Flag148
(Id
);
2583 end Suppress_Elaboration_Warnings
;
2585 function Suppress_Init_Proc
(Id
: E
) return B
is
2587 return Flag105
(Base_Type
(Id
));
2588 end Suppress_Init_Proc
;
2590 function Suppress_Style_Checks
(Id
: E
) return B
is
2592 return Flag165
(Id
);
2593 end Suppress_Style_Checks
;
2595 function Suppress_Value_Tracking_On_Call
(Id
: E
) return B
is
2597 return Flag217
(Id
);
2598 end Suppress_Value_Tracking_On_Call
;
2600 function Task_Body_Procedure
(Id
: E
) return N
is
2602 pragma Assert
(Ekind
(Id
) in Task_Kind
);
2604 end Task_Body_Procedure
;
2606 function Treat_As_Volatile
(Id
: E
) return B
is
2609 end Treat_As_Volatile
;
2611 function Underlying_Full_View
(Id
: E
) return E
is
2613 pragma Assert
(Ekind
(Id
) in Private_Kind
);
2615 end Underlying_Full_View
;
2617 function Universal_Aliasing
(Id
: E
) return B
is
2619 pragma Assert
(Is_Type
(Id
));
2620 return Flag216
(Base_Type
(Id
));
2621 end Universal_Aliasing
;
2623 function Unset_Reference
(Id
: E
) return N
is
2626 end Unset_Reference
;
2628 function Used_As_Generic_Actual
(Id
: E
) return B
is
2630 return Flag222
(Id
);
2631 end Used_As_Generic_Actual
;
2633 function Uses_Sec_Stack
(Id
: E
) return B
is
2638 function Vax_Float
(Id
: E
) return B
is
2640 return Flag151
(Base_Type
(Id
));
2643 function Warnings_Off
(Id
: E
) return B
is
2648 function Wrapped_Entity
(Id
: E
) return E
is
2650 pragma Assert
(Ekind
(Id
) = E_Procedure
2651 and then Is_Primitive_Wrapper
(Id
));
2655 function Was_Hidden
(Id
: E
) return B
is
2657 return Flag196
(Id
);
2660 ------------------------------
2661 -- Classification Functions --
2662 ------------------------------
2664 function Is_Access_Type
(Id
: E
) return B
is
2666 return Ekind
(Id
) in Access_Kind
;
2669 function Is_Access_Protected_Subprogram_Type
(Id
: E
) return B
is
2671 return Ekind
(Id
) in Access_Protected_Kind
;
2672 end Is_Access_Protected_Subprogram_Type
;
2674 function Is_Array_Type
(Id
: E
) return B
is
2676 return Ekind
(Id
) in Array_Kind
;
2679 function Is_Assignable
(Id
: E
) return B
is
2681 return Ekind
(Id
) in Assignable_Kind
;
2684 function Is_Class_Wide_Type
(Id
: E
) return B
is
2686 return Ekind
(Id
) in Class_Wide_Kind
;
2687 end Is_Class_Wide_Type
;
2689 function Is_Composite_Type
(Id
: E
) return B
is
2691 return Ekind
(Id
) in Composite_Kind
;
2692 end Is_Composite_Type
;
2694 function Is_Concurrent_Body
(Id
: E
) return B
is
2696 return Ekind
(Id
) in
2697 Concurrent_Body_Kind
;
2698 end Is_Concurrent_Body
;
2700 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
2703 end Is_Concurrent_Record_Type
;
2705 function Is_Concurrent_Type
(Id
: E
) return B
is
2707 return Ekind
(Id
) in Concurrent_Kind
;
2708 end Is_Concurrent_Type
;
2710 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
2712 return Ekind
(Id
) in
2713 Decimal_Fixed_Point_Kind
;
2714 end Is_Decimal_Fixed_Point_Type
;
2716 function Is_Digits_Type
(Id
: E
) return B
is
2718 return Ekind
(Id
) in Digits_Kind
;
2721 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
2723 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
2724 end Is_Discrete_Or_Fixed_Point_Type
;
2726 function Is_Discrete_Type
(Id
: E
) return B
is
2728 return Ekind
(Id
) in Discrete_Kind
;
2729 end Is_Discrete_Type
;
2731 function Is_Elementary_Type
(Id
: E
) return B
is
2733 return Ekind
(Id
) in Elementary_Kind
;
2734 end Is_Elementary_Type
;
2736 function Is_Entry
(Id
: E
) return B
is
2738 return Ekind
(Id
) in Entry_Kind
;
2741 function Is_Enumeration_Type
(Id
: E
) return B
is
2743 return Ekind
(Id
) in
2745 end Is_Enumeration_Type
;
2747 function Is_Fixed_Point_Type
(Id
: E
) return B
is
2749 return Ekind
(Id
) in
2751 end Is_Fixed_Point_Type
;
2753 function Is_Floating_Point_Type
(Id
: E
) return B
is
2755 return Ekind
(Id
) in Float_Kind
;
2756 end Is_Floating_Point_Type
;
2758 function Is_Formal
(Id
: E
) return B
is
2760 return Ekind
(Id
) in Formal_Kind
;
2763 function Is_Formal_Object
(Id
: E
) return B
is
2765 return Ekind
(Id
) in Formal_Object_Kind
;
2766 end Is_Formal_Object
;
2768 function Is_Generic_Subprogram
(Id
: E
) return B
is
2770 return Ekind
(Id
) in Generic_Subprogram_Kind
;
2771 end Is_Generic_Subprogram
;
2773 function Is_Generic_Unit
(Id
: E
) return B
is
2775 return Ekind
(Id
) in Generic_Unit_Kind
;
2776 end Is_Generic_Unit
;
2778 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
2780 return Ekind
(Id
) in
2781 Incomplete_Or_Private_Kind
;
2782 end Is_Incomplete_Or_Private_Type
;
2784 function Is_Incomplete_Type
(Id
: E
) return B
is
2786 return Ekind
(Id
) in
2788 end Is_Incomplete_Type
;
2790 function Is_Integer_Type
(Id
: E
) return B
is
2792 return Ekind
(Id
) in Integer_Kind
;
2793 end Is_Integer_Type
;
2795 function Is_Modular_Integer_Type
(Id
: E
) return B
is
2797 return Ekind
(Id
) in
2798 Modular_Integer_Kind
;
2799 end Is_Modular_Integer_Type
;
2801 function Is_Named_Number
(Id
: E
) return B
is
2803 return Ekind
(Id
) in Named_Kind
;
2804 end Is_Named_Number
;
2806 function Is_Numeric_Type
(Id
: E
) return B
is
2808 return Ekind
(Id
) in Numeric_Kind
;
2809 end Is_Numeric_Type
;
2811 function Is_Object
(Id
: E
) return B
is
2813 return Ekind
(Id
) in Object_Kind
;
2816 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
2818 return Ekind
(Id
) in
2819 Ordinary_Fixed_Point_Kind
;
2820 end Is_Ordinary_Fixed_Point_Type
;
2822 function Is_Overloadable
(Id
: E
) return B
is
2824 return Ekind
(Id
) in Overloadable_Kind
;
2825 end Is_Overloadable
;
2827 function Is_Private_Type
(Id
: E
) return B
is
2829 return Ekind
(Id
) in Private_Kind
;
2830 end Is_Private_Type
;
2832 function Is_Protected_Type
(Id
: E
) return B
is
2834 return Ekind
(Id
) in Protected_Kind
;
2835 end Is_Protected_Type
;
2837 function Is_Real_Type
(Id
: E
) return B
is
2839 return Ekind
(Id
) in Real_Kind
;
2842 function Is_Record_Type
(Id
: E
) return B
is
2844 return Ekind
(Id
) in Record_Kind
;
2847 function Is_Scalar_Type
(Id
: E
) return B
is
2849 return Ekind
(Id
) in Scalar_Kind
;
2852 function Is_Signed_Integer_Type
(Id
: E
) return B
is
2854 return Ekind
(Id
) in
2855 Signed_Integer_Kind
;
2856 end Is_Signed_Integer_Type
;
2858 function Is_Subprogram
(Id
: E
) return B
is
2860 return Ekind
(Id
) in Subprogram_Kind
;
2863 function Is_Task_Type
(Id
: E
) return B
is
2865 return Ekind
(Id
) in Task_Kind
;
2868 function Is_Type
(Id
: E
) return B
is
2870 return Ekind
(Id
) in Type_Kind
;
2873 ------------------------------
2874 -- Attribute Set Procedures --
2875 ------------------------------
2877 procedure Set_Abstract_Interfaces
(Id
: E
; V
: L
) is
2879 pragma Assert
(Is_Record_Type
(Id
));
2880 Set_Elist25
(Id
, V
);
2881 end Set_Abstract_Interfaces
;
2883 procedure Set_Abstract_Interface_Alias
(Id
: E
; V
: E
) is
2888 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Function
));
2890 end Set_Abstract_Interface_Alias
;
2892 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
2894 Set_Elist21
(Id
, V
);
2895 end Set_Accept_Address
;
2897 procedure Set_Access_Disp_Table
(Id
: E
; V
: L
) is
2899 pragma Assert
(Is_Tagged_Type
(Id
) and then Id
= Base_Type
(Id
));
2900 Set_Elist16
(Id
, V
);
2901 end Set_Access_Disp_Table
;
2903 procedure Set_Associated_Final_Chain
(Id
: E
; V
: E
) is
2905 pragma Assert
(Is_Access_Type
(Id
));
2907 end Set_Associated_Final_Chain
;
2909 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
2912 end Set_Associated_Formal_Package
;
2914 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
2917 end Set_Associated_Node_For_Itype
;
2919 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
2921 pragma Assert
(Is_Access_Type
(Id
) and then Id
= Base_Type
(Id
));
2923 end Set_Associated_Storage_Pool
;
2925 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
2928 (Ekind
(Id
) = E_Constant
2929 or else Ekind
(Id
) = E_Variable
2930 or else Ekind
(Id
) = E_Generic_In_Out_Parameter
2931 or else Is_Formal
(Id
));
2933 end Set_Actual_Subtype
;
2935 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
2937 Set_Flag104
(Id
, V
);
2938 end Set_Address_Taken
;
2940 procedure Set_Alias
(Id
: E
; V
: E
) is
2943 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
2947 procedure Set_Alignment
(Id
: E
; V
: U
) is
2949 pragma Assert
(Is_Type
(Id
)
2950 or else Is_Formal
(Id
)
2951 or else Ekind
(Id
) = E_Loop_Parameter
2952 or else Ekind
(Id
) = E_Constant
2953 or else Ekind
(Id
) = E_Exception
2954 or else Ekind
(Id
) = E_Variable
);
2958 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
2960 pragma Assert
(Is_Entry
(Id
));
2962 end Set_Barrier_Function
;
2964 procedure Set_Block_Node
(Id
: E
; V
: N
) is
2966 pragma Assert
(Ekind
(Id
) = E_Block
);
2970 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
2973 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
2975 end Set_Body_Entity
;
2977 procedure Set_Body_Needed_For_SAL
(Id
: E
; V
: B
:= True) is
2980 (Ekind
(Id
) = E_Package
2981 or else Is_Subprogram
(Id
)
2982 or else Is_Generic_Unit
(Id
));
2984 end Set_Body_Needed_For_SAL
;
2986 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
2988 pragma Assert
(Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
2989 Set_Flag125
(Id
, V
);
2990 end Set_C_Pass_By_Copy
;
2992 procedure Set_Can_Never_Be_Null
(Id
: E
; V
: B
:= True) is
2995 end Set_Can_Never_Be_Null
;
2997 procedure Set_Checks_May_Be_Suppressed
(Id
: E
; V
: B
:= True) is
3000 end Set_Checks_May_Be_Suppressed
;
3002 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
3004 pragma Assert
(Is_Type
(Id
));
3006 end Set_Class_Wide_Type
;
3008 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
3011 (Ekind
(Id
) = E_Record_Subtype
3012 or else Ekind
(Id
) = E_Class_Wide_Subtype
);
3014 end Set_Cloned_Subtype
;
3016 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
3019 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
3021 end Set_Component_Bit_Offset
;
3023 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
3026 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
3028 end Set_Component_Clause
;
3030 procedure Set_Component_Size
(Id
: E
; V
: U
) is
3032 pragma Assert
(Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
));
3034 end Set_Component_Size
;
3036 procedure Set_Component_Type
(Id
: E
; V
: E
) is
3038 pragma Assert
(Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
));
3040 end Set_Component_Type
;
3042 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
3045 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
3047 end Set_Corresponding_Concurrent_Type
;
3049 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
3051 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3053 end Set_Corresponding_Discriminant
;
3055 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
3058 (Ekind
(Id
) = E_Function
3059 and then not Comes_From_Source
(Id
)
3060 and then Chars
(Id
) = Name_Op_Ne
);
3062 end Set_Corresponding_Equality
;
3064 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
3066 pragma Assert
(Is_Concurrent_Type
(Id
));
3068 end Set_Corresponding_Record_Type
;
3070 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
3073 end Set_Corresponding_Remote_Type
;
3075 procedure Set_Current_Use_Clause
(Id
: E
; V
: E
) is
3077 pragma Assert
(Ekind
(Id
) = E_Package
);
3079 end Set_Current_Use_Clause
;
3081 procedure Set_Current_Value
(Id
: E
; V
: N
) is
3083 pragma Assert
(Ekind
(Id
) in Object_Kind
or else Ekind
(Id
) = E_Void
);
3085 end Set_Current_Value
;
3087 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
3090 end Set_CR_Discriminant
;
3092 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
3094 Set_Flag166
(Id
, V
);
3095 end Set_Debug_Info_Off
;
3097 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
3100 end Set_Debug_Renaming_Link
;
3102 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
3104 pragma Assert
(Is_Formal
(Id
));
3106 end Set_Default_Expr_Function
;
3108 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
3110 Set_Flag108
(Id
, V
);
3111 end Set_Default_Expressions_Processed
;
3113 procedure Set_Default_Value
(Id
: E
; V
: N
) is
3115 pragma Assert
(Is_Formal
(Id
));
3117 end Set_Default_Value
;
3119 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
3123 or else Is_Task_Type
(Id
)
3124 or else Ekind
(Id
) = E_Block
);
3125 Set_Flag114
(Id
, V
);
3126 end Set_Delay_Cleanups
;
3128 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
3132 or else Ekind
(Id
) = E_Package
3133 or else Ekind
(Id
) = E_Package_Body
);
3135 end Set_Delay_Subprogram_Descriptors
;
3137 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
3139 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3140 Set_Ureal18
(Id
, V
);
3141 end Set_Delta_Value
;
3143 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
3145 pragma Assert
(Is_Generic_Instance
(Id
));
3147 end Set_Dependent_Instances
;
3149 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
3151 pragma Assert
(Nkind
(Id
) in N_Entity
);
3153 end Set_Depends_On_Private
;
3155 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
3158 (Is_Floating_Point_Type
(Id
)
3159 or else Is_Decimal_Fixed_Point_Type
(Id
));
3161 end Set_Digits_Value
;
3163 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
3166 end Set_Directly_Designated_Type
;
3168 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
3171 end Set_Discard_Names
;
3173 procedure Set_Discriminal
(Id
: E
; V
: E
) is
3175 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3177 end Set_Discriminal
;
3179 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
3182 end Set_Discriminal_Link
;
3184 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
3186 pragma Assert
(Ekind
(Id
) = E_Component
);
3188 end Set_Discriminant_Checking_Func
;
3190 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
3192 pragma Assert
(Nkind
(Id
) in N_Entity
);
3193 Set_Elist21
(Id
, V
);
3194 end Set_Discriminant_Constraint
;
3196 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
3199 end Set_Discriminant_Default_Value
;
3201 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
3204 end Set_Discriminant_Number
;
3206 procedure Set_Dispatch_Table_Wrapper
(Id
: E
; V
: E
) is
3208 pragma Assert
(Is_Tagged_Type
(Id
) and then Id
= Base_Type
(Id
));
3210 end Set_Dispatch_Table_Wrapper
;
3212 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
3214 pragma Assert
(Ekind
(Id
) = E_Component
);
3216 end Set_DT_Entry_Count
;
3218 procedure Set_DT_Offset_To_Top_Func
(Id
: E
; V
: E
) is
3220 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
3222 end Set_DT_Offset_To_Top_Func
;
3224 procedure Set_DT_Position
(Id
: E
; V
: U
) is
3226 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
3228 end Set_DT_Position
;
3230 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
3233 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
3237 procedure Set_Elaborate_Body_Desirable
(Id
: E
; V
: B
:= True) is
3239 pragma Assert
(Ekind
(Id
) = E_Package
);
3240 Set_Flag210
(Id
, V
);
3241 end Set_Elaborate_Body_Desirable
;
3243 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
3248 Ekind
(Id
) = E_Package
3250 Is_Generic_Unit
(Id
));
3252 end Set_Elaboration_Entity
;
3254 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
3259 Ekind
(Id
) = E_Package
3261 Is_Generic_Unit
(Id
));
3262 Set_Flag174
(Id
, V
);
3263 end Set_Elaboration_Entity_Required
;
3265 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
3268 end Set_Enclosing_Scope
;
3270 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
3272 pragma Assert
(Is_Entry
(Id
));
3273 Set_Flag152
(Id
, V
);
3274 end Set_Entry_Accepted
;
3276 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
3279 end Set_Entry_Bodies_Array
;
3281 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
3284 end Set_Entry_Cancel_Parameter
;
3286 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
3289 end Set_Entry_Component
;
3291 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
3294 end Set_Entry_Formal
;
3296 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
3298 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
3300 end Set_Entry_Index_Constant
;
3302 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
3305 end Set_Entry_Parameters_Type
;
3307 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
3309 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
3311 end Set_Enum_Pos_To_Rep
;
3313 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
3315 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3317 end Set_Enumeration_Pos
;
3319 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
3321 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3323 end Set_Enumeration_Rep
;
3325 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
3327 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
3329 end Set_Enumeration_Rep_Expr
;
3331 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
3334 (Ekind
(Id
) = E_Class_Wide_Type
or else
3335 Ekind
(Id
) = E_Class_Wide_Subtype
or else
3336 Ekind
(Id
) = E_Access_Protected_Subprogram_Type
or else
3337 Ekind
(Id
) = E_Anonymous_Access_Protected_Subprogram_Type
or else
3338 Ekind
(Id
) = E_Access_Subprogram_Type
or else
3339 Ekind
(Id
) = E_Exception_Type
);
3341 end Set_Equivalent_Type
;
3343 procedure Set_Esize
(Id
: E
; V
: U
) is
3348 procedure Set_Exception_Code
(Id
: E
; V
: U
) is
3350 pragma Assert
(Ekind
(Id
) = E_Exception
);
3352 end Set_Exception_Code
;
3354 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
3356 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3358 end Set_Extra_Accessibility
;
3360 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
3362 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
3364 end Set_Extra_Constrained
;
3366 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
3369 end Set_Extra_Formal
;
3371 procedure Set_Extra_Formals
(Id
: E
; V
: E
) is
3374 (Is_Overloadable
(Id
)
3375 or else Ekind
(Id
) = E_Entry_Family
3376 or else Ekind
(Id
) = E_Subprogram_Body
3377 or else Ekind
(Id
) = E_Subprogram_Type
);
3379 end Set_Extra_Formals
;
3381 procedure Set_Can_Use_Internal_Rep
(Id
: E
; V
: B
:= True) is
3383 pragma Assert
(Ekind
(Id
) in Access_Subprogram_Type_Kind
);
3384 Set_Flag229
(Id
, V
);
3385 end Set_Can_Use_Internal_Rep
;
3387 procedure Set_Finalization_Chain_Entity
(Id
: E
; V
: E
) is
3390 end Set_Finalization_Chain_Entity
;
3392 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
3394 pragma Assert
(Is_Type
(Id
) and then Id
= Base_Type
(Id
));
3395 Set_Flag158
(Id
, V
);
3396 end Set_Finalize_Storage_Only
;
3398 procedure Set_First_Entity
(Id
: E
; V
: E
) is
3401 end Set_First_Entity
;
3403 procedure Set_First_Index
(Id
: E
; V
: N
) is
3405 pragma Assert
(Is_Array_Type
(Id
) or else Is_String_Type
(Id
));
3407 end Set_First_Index
;
3409 procedure Set_First_Literal
(Id
: E
; V
: E
) is
3411 pragma Assert
(Is_Enumeration_Type
(Id
));
3413 end Set_First_Literal
;
3415 procedure Set_First_Optional_Parameter
(Id
: E
; V
: E
) is
3418 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
3420 end Set_First_Optional_Parameter
;
3422 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
3424 pragma Assert
(Ekind
(Id
) = E_Package
3425 or else Ekind
(Id
) = E_Generic_Package
3426 or else Ekind
(Id
) in Concurrent_Kind
);
3428 end Set_First_Private_Entity
;
3430 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
3433 end Set_First_Rep_Item
;
3435 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
3438 end Set_Freeze_Node
;
3440 procedure Set_From_With_Type
(Id
: E
; V
: B
:= True) is
3444 or else Ekind
(Id
) = E_Package
);
3445 Set_Flag159
(Id
, V
);
3446 end Set_From_With_Type
;
3448 procedure Set_Full_View
(Id
: E
; V
: E
) is
3450 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
3454 procedure Set_Function_Returns_With_DSP
(Id
: E
; V
: B
:= True) is
3457 (Is_Subprogram
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
3458 Set_Flag169
(Id
, V
);
3459 end Set_Function_Returns_With_DSP
;
3461 procedure Set_Generic_Homonym
(Id
: E
; V
: E
) is
3464 end Set_Generic_Homonym
;
3466 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
3468 Set_Elist23
(Id
, V
);
3469 end Set_Generic_Renamings
;
3471 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
3474 end Set_Handler_Records
;
3476 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
3478 pragma Assert
(Base_Type
(Id
) = Id
);
3479 Set_Flag135
(Id
, V
);
3480 end Set_Has_Aliased_Components
;
3482 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
3485 end Set_Has_Alignment_Clause
;
3487 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
3490 end Set_Has_All_Calls_Remote
;
3492 procedure Set_Has_Anon_Block_Suffix
(Id
: E
; V
: B
:= True) is
3494 Set_Flag201
(Id
, V
);
3495 end Set_Has_Anon_Block_Suffix
;
3497 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
3499 pragma Assert
(not Is_Type
(Id
) or else Base_Type
(Id
) = Id
);
3501 end Set_Has_Atomic_Components
;
3503 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
3506 ((V
= False) or else (Is_Discrete_Type
(Id
) or Is_Object
(Id
)));
3507 Set_Flag139
(Id
, V
);
3508 end Set_Has_Biased_Representation
;
3510 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
3513 end Set_Has_Completion
;
3515 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
3517 pragma Assert
(Is_Type
(Id
));
3519 end Set_Has_Completion_In_Body
;
3521 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
3523 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
3524 Set_Flag140
(Id
, V
);
3525 end Set_Has_Complex_Representation
;
3527 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
3529 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
3531 end Set_Has_Component_Size_Clause
;
3533 procedure Set_Has_Constrained_Partial_View
(Id
: E
; V
: B
:= True) is
3535 pragma Assert
(Is_Type
(Id
));
3536 Set_Flag187
(Id
, V
);
3537 end Set_Has_Constrained_Partial_View
;
3539 procedure Set_Has_Contiguous_Rep
(Id
: E
; V
: B
:= True) is
3541 Set_Flag181
(Id
, V
);
3542 end Set_Has_Contiguous_Rep
;
3544 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
3546 pragma Assert
(Base_Type
(Id
) = Id
);
3548 end Set_Has_Controlled_Component
;
3550 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
3553 end Set_Has_Controlling_Result
;
3555 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
3557 Set_Flag119
(Id
, V
);
3558 end Set_Has_Convention_Pragma
;
3560 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
3562 pragma Assert
(Nkind
(Id
) in N_Entity
);
3564 end Set_Has_Delayed_Freeze
;
3566 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
3568 pragma Assert
(Nkind
(Id
) in N_Entity
);
3570 end Set_Has_Discriminants
;
3572 procedure Set_Has_Dispatch_Table
(Id
: E
; V
: B
:= True) is
3574 pragma Assert
(Ekind
(Id
) = E_Record_Type
3575 and then Is_Tagged_Type
(Id
));
3576 Set_Flag220
(Id
, V
);
3577 end Set_Has_Dispatch_Table
;
3579 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
3581 pragma Assert
(Is_Enumeration_Type
(Id
));
3583 end Set_Has_Enumeration_Rep_Clause
;
3585 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
3590 procedure Set_Has_External_Tag_Rep_Clause
(Id
: E
; V
: B
:= True) is
3592 pragma Assert
(Is_Tagged_Type
(Id
));
3593 Set_Flag110
(Id
, V
);
3594 end Set_Has_External_Tag_Rep_Clause
;
3596 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
3598 Set_Flag175
(Id
, V
);
3599 end Set_Has_Forward_Instantiation
;
3601 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
3603 Set_Flag173
(Id
, V
);
3604 end Set_Has_Fully_Qualified_Name
;
3606 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
3609 end Set_Has_Gigi_Rep_Item
;
3611 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
3614 end Set_Has_Homonym
;
3616 procedure Set_Has_Initial_Value
(Id
: E
; V
: B
:= True) is
3619 (Ekind
(Id
) = E_Variable
or else Ekind
(Id
) = E_Out_Parameter
);
3620 Set_Flag219
(Id
, V
);
3621 end Set_Has_Initial_Value
;
3623 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
3625 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
3627 end Set_Has_Machine_Radix_Clause
;
3629 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
3632 end Set_Has_Master_Entity
;
3634 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
3637 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Generic_Function
);
3638 Set_Flag142
(Id
, V
);
3639 end Set_Has_Missing_Return
;
3641 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
3643 Set_Flag101
(Id
, V
);
3644 end Set_Has_Nested_Block_With_Handler
;
3646 procedure Set_Has_Up_Level_Access
(Id
: E
; V
: B
:= True) is
3649 (Ekind
(Id
) = E_Variable
3650 or else Ekind
(Id
) = E_Constant
3651 or else Ekind
(Id
) = E_Loop_Parameter
);
3652 Set_Flag215
(Id
, V
);
3653 end Set_Has_Up_Level_Access
;
3655 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
3657 pragma Assert
(Base_Type
(Id
) = Id
);
3659 end Set_Has_Non_Standard_Rep
;
3661 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
3663 pragma Assert
(Is_Type
(Id
));
3664 Set_Flag172
(Id
, V
);
3665 end Set_Has_Object_Size_Clause
;
3667 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
3669 Set_Flag154
(Id
, V
);
3670 end Set_Has_Per_Object_Constraint
;
3672 procedure Set_Has_Persistent_BSS
(Id
: E
; V
: B
:= True) is
3674 Set_Flag188
(Id
, V
);
3675 end Set_Has_Persistent_BSS
;
3677 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
3679 pragma Assert
(Is_Access_Type
(Id
));
3680 Set_Flag27
(Base_Type
(Id
), V
);
3681 end Set_Has_Pragma_Controlled
;
3683 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
3685 Set_Flag150
(Id
, V
);
3686 end Set_Has_Pragma_Elaborate_Body
;
3688 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
3690 Set_Flag157
(Id
, V
);
3691 end Set_Has_Pragma_Inline
;
3693 procedure Set_Has_Pragma_Inline_Always
(Id
: E
; V
: B
:= True) is
3695 Set_Flag230
(Id
, V
);
3696 end Set_Has_Pragma_Inline_Always
;
3698 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
3700 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
3701 pragma Assert
(Id
= Base_Type
(Id
));
3702 Set_Flag121
(Id
, V
);
3703 end Set_Has_Pragma_Pack
;
3705 procedure Set_Has_Pragma_Preelab_Init
(Id
: E
; V
: B
:= True) is
3707 Set_Flag221
(Id
, V
);
3708 end Set_Has_Pragma_Preelab_Init
;
3710 procedure Set_Has_Pragma_Pure
(Id
: E
; V
: B
:= True) is
3712 Set_Flag203
(Id
, V
);
3713 end Set_Has_Pragma_Pure
;
3715 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
3717 Set_Flag179
(Id
, V
);
3718 end Set_Has_Pragma_Pure_Function
;
3720 procedure Set_Has_Pragma_Unmodified
(Id
: E
; V
: B
:= True) is
3722 Set_Flag233
(Id
, V
);
3723 end Set_Has_Pragma_Unmodified
;
3725 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
3727 Set_Flag180
(Id
, V
);
3728 end Set_Has_Pragma_Unreferenced
;
3730 procedure Set_Has_Pragma_Unreferenced_Objects
(Id
: E
; V
: B
:= True) is
3732 pragma Assert
(Is_Type
(Id
));
3733 Set_Flag212
(Id
, V
);
3734 end Set_Has_Pragma_Unreferenced_Objects
;
3736 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
3738 pragma Assert
(Id
= Base_Type
(Id
));
3739 Set_Flag120
(Id
, V
);
3740 end Set_Has_Primitive_Operations
;
3742 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
3744 Set_Flag155
(Id
, V
);
3745 end Set_Has_Private_Declaration
;
3747 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
3749 Set_Flag161
(Id
, V
);
3750 end Set_Has_Qualified_Name
;
3752 procedure Set_Has_RACW
(Id
: E
; V
: B
:= True) is
3754 pragma Assert
(Ekind
(Id
) = E_Package
);
3755 Set_Flag214
(Id
, V
);
3758 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
3760 pragma Assert
(Id
= Base_Type
(Id
));
3762 end Set_Has_Record_Rep_Clause
;
3764 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
3766 pragma Assert
(Is_Subprogram
(Id
));
3767 Set_Flag143
(Id
, V
);
3768 end Set_Has_Recursive_Call
;
3770 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
3773 end Set_Has_Size_Clause
;
3775 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
3778 end Set_Has_Small_Clause
;
3780 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
3782 pragma Assert
(Id
= Base_Type
(Id
));
3783 Set_Flag100
(Id
, V
);
3784 end Set_Has_Specified_Layout
;
3786 procedure Set_Has_Specified_Stream_Input
(Id
: E
; V
: B
:= True) is
3788 pragma Assert
(Is_Type
(Id
));
3789 Set_Flag190
(Id
, V
);
3790 end Set_Has_Specified_Stream_Input
;
3792 procedure Set_Has_Specified_Stream_Output
(Id
: E
; V
: B
:= True) is
3794 pragma Assert
(Is_Type
(Id
));
3795 Set_Flag191
(Id
, V
);
3796 end Set_Has_Specified_Stream_Output
;
3798 procedure Set_Has_Specified_Stream_Read
(Id
: E
; V
: B
:= True) is
3800 pragma Assert
(Is_Type
(Id
));
3801 Set_Flag192
(Id
, V
);
3802 end Set_Has_Specified_Stream_Read
;
3804 procedure Set_Has_Specified_Stream_Write
(Id
: E
; V
: B
:= True) is
3806 pragma Assert
(Is_Type
(Id
));
3807 Set_Flag193
(Id
, V
);
3808 end Set_Has_Specified_Stream_Write
;
3810 procedure Set_Has_Static_Discriminants
(Id
: E
; V
: B
:= True) is
3812 Set_Flag211
(Id
, V
);
3813 end Set_Has_Static_Discriminants
;
3815 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
3817 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3818 pragma Assert
(Base_Type
(Id
) = Id
);
3820 end Set_Has_Storage_Size_Clause
;
3822 procedure Set_Has_Stream_Size_Clause
(Id
: E
; V
: B
:= True) is
3824 pragma Assert
(Is_Elementary_Type
(Id
));
3825 Set_Flag184
(Id
, V
);
3826 end Set_Has_Stream_Size_Clause
;
3828 procedure Set_Has_Subprogram_Descriptor
(Id
: E
; V
: B
:= True) is
3831 end Set_Has_Subprogram_Descriptor
;
3833 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
3835 pragma Assert
(Base_Type
(Id
) = Id
);
3839 procedure Set_Has_Thunks
(Id
: E
; V
: B
:= True) is
3841 pragma Assert
(Is_Tag
(Id
)
3842 and then Ekind
(Id
) = E_Constant
);
3843 Set_Flag228
(Id
, V
);
3846 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
3848 pragma Assert
(Base_Type
(Id
) = Id
);
3849 Set_Flag123
(Id
, V
);
3850 end Set_Has_Unchecked_Union
;
3852 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
3854 pragma Assert
(Is_Type
(Id
));
3856 end Set_Has_Unknown_Discriminants
;
3858 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
3860 pragma Assert
(not Is_Type
(Id
) or else Base_Type
(Id
) = Id
);
3862 end Set_Has_Volatile_Components
;
3864 procedure Set_Has_Xref_Entry
(Id
: E
; V
: B
:= True) is
3866 Set_Flag182
(Id
, V
);
3867 end Set_Has_Xref_Entry
;
3869 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
3871 pragma Assert
(Ekind
(Id
) = E_Variable
);
3873 end Set_Hiding_Loop_Variable
;
3875 procedure Set_Homonym
(Id
: E
; V
: E
) is
3877 pragma Assert
(Id
/= V
);
3881 procedure Set_Implemented_By_Entry
(Id
: E
; V
: B
:= True) is
3884 (Ekind
(Id
) = E_Function
3885 or else Ekind
(Id
) = E_Procedure
);
3886 Set_Flag232
(Id
, V
);
3887 end Set_Implemented_By_Entry
;
3889 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
3892 end Set_In_Package_Body
;
3894 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
3897 end Set_In_Private_Part
;
3899 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
3901 pragma Assert
(Nkind
(Id
) in N_Entity
);
3905 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
3907 Set_Elist23
(Id
, V
);
3908 end Set_Inner_Instances
;
3910 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
3913 end Set_Interface_Name
;
3915 procedure Set_Is_Abstract_Subprogram
(Id
: E
; V
: B
:= True) is
3917 pragma Assert
(Is_Overloadable
(Id
));
3919 end Set_Is_Abstract_Subprogram
;
3921 procedure Set_Is_Abstract_Type
(Id
: E
; V
: B
:= True) is
3923 pragma Assert
(Is_Type
(Id
));
3924 Set_Flag146
(Id
, V
);
3925 end Set_Is_Abstract_Type
;
3927 procedure Set_Is_Local_Anonymous_Access
(Id
: E
; V
: B
:= True) is
3929 pragma Assert
(Is_Access_Type
(Id
));
3930 Set_Flag194
(Id
, V
);
3931 end Set_Is_Local_Anonymous_Access
;
3933 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
3935 pragma Assert
(Is_Access_Type
(Id
));
3937 end Set_Is_Access_Constant
;
3939 procedure Set_Is_Ada_2005_Only
(Id
: E
; V
: B
:= True) is
3941 Set_Flag185
(Id
, V
);
3942 end Set_Is_Ada_2005_Only
;
3944 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
3946 pragma Assert
(Nkind
(Id
) in N_Entity
);
3950 procedure Set_Is_AST_Entry
(Id
: E
; V
: B
:= True) is
3952 pragma Assert
(Is_Entry
(Id
));
3953 Set_Flag132
(Id
, V
);
3954 end Set_Is_AST_Entry
;
3956 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
3959 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
3961 end Set_Is_Asynchronous
;
3963 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
3968 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
3970 pragma Assert
((not V
)
3971 or else (Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
)));
3973 Set_Flag122
(Id
, V
);
3974 end Set_Is_Bit_Packed_Array
;
3976 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
3979 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Function
);
3980 Set_Flag102
(Id
, V
);
3983 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
3986 end Set_Is_Character_Type
;
3988 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
3991 end Set_Is_Child_Unit
;
3993 procedure Set_Is_Class_Wide_Equivalent_Type
(Id
: E
; V
: B
:= True) is
3996 end Set_Is_Class_Wide_Equivalent_Type
;
3998 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
4000 Set_Flag149
(Id
, V
);
4001 end Set_Is_Compilation_Unit
;
4003 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
4005 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4006 Set_Flag103
(Id
, V
);
4007 end Set_Is_Completely_Hidden
;
4009 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
4012 end Set_Is_Concurrent_Record_Type
;
4014 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
4017 end Set_Is_Constr_Subt_For_U_Nominal
;
4019 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
4021 Set_Flag141
(Id
, V
);
4022 end Set_Is_Constr_Subt_For_UN_Aliased
;
4024 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
4026 pragma Assert
(Nkind
(Id
) in N_Entity
);
4028 end Set_Is_Constrained
;
4030 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
4033 end Set_Is_Constructor
;
4035 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
4037 pragma Assert
(Id
= Base_Type
(Id
));
4039 end Set_Is_Controlled
;
4041 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
4043 pragma Assert
(Is_Formal
(Id
));
4045 end Set_Is_Controlling_Formal
;
4047 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
4050 end Set_Is_CPP_Class
;
4052 procedure Set_Is_Descendent_Of_Address
(Id
: E
; V
: B
:= True) is
4054 pragma Assert
(Is_Type
(Id
));
4055 Set_Flag223
(Id
, V
);
4056 end Set_Is_Descendent_Of_Address
;
4058 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
4060 Set_Flag176
(Id
, V
);
4061 end Set_Is_Discrim_SO_Function
;
4063 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
4068 Is_Overloadable
(Id
)
4070 Ekind
(Id
) = E_Subprogram_Type
);
4073 end Set_Is_Dispatching_Operation
;
4075 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
4077 Set_Flag124
(Id
, V
);
4078 end Set_Is_Eliminated
;
4080 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
4083 end Set_Is_Entry_Formal
;
4085 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
4088 end Set_Is_Exported
;
4090 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
4093 end Set_Is_First_Subtype
;
4095 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
4098 (Ekind
(Id
) = E_Record_Subtype
4100 Ekind
(Id
) = E_Private_Subtype
);
4101 Set_Flag118
(Id
, V
);
4102 end Set_Is_For_Access_Subtype
;
4104 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
4106 Set_Flag111
(Id
, V
);
4107 end Set_Is_Formal_Subprogram
;
4109 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
4111 pragma Assert
(Nkind
(Id
) in N_Entity
);
4115 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
4117 pragma Assert
(Is_Type
(Id
));
4119 end Set_Is_Generic_Actual_Type
;
4121 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
4123 Set_Flag130
(Id
, V
);
4124 end Set_Is_Generic_Instance
;
4126 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
4128 pragma Assert
(Nkind
(Id
) in N_Entity
);
4130 end Set_Is_Generic_Type
;
4132 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
4137 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
4139 Set_Flag171
(Id
, V
);
4140 end Set_Is_Hidden_Open_Scope
;
4142 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
4144 pragma Assert
(Nkind
(Id
) in N_Entity
);
4146 end Set_Is_Immediately_Visible
;
4148 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
4151 end Set_Is_Imported
;
4153 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
4158 procedure Set_Is_Interface
(Id
: E
; V
: B
:= True) is
4161 (Ekind
(Id
) = E_Record_Type
4162 or else Ekind
(Id
) = E_Record_Subtype
4163 or else Ekind
(Id
) = E_Record_Type_With_Private
4164 or else Ekind
(Id
) = E_Record_Subtype_With_Private
4165 or else Ekind
(Id
) = E_Class_Wide_Type
4166 or else Ekind
(Id
) = E_Class_Wide_Subtype
);
4167 Set_Flag186
(Id
, V
);
4168 end Set_Is_Interface
;
4170 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
4172 Set_Flag126
(Id
, V
);
4173 end Set_Is_Instantiated
;
4175 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
4177 pragma Assert
(Nkind
(Id
) in N_Entity
);
4179 end Set_Is_Internal
;
4181 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
4183 pragma Assert
(Nkind
(Id
) in N_Entity
);
4185 end Set_Is_Interrupt_Handler
;
4187 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
4190 end Set_Is_Intrinsic_Subprogram
;
4192 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
4197 procedure Set_Is_Known_Non_Null
(Id
: E
; V
: B
:= True) is
4200 end Set_Is_Known_Non_Null
;
4202 procedure Set_Is_Known_Null
(Id
: E
; V
: B
:= True) is
4204 Set_Flag204
(Id
, V
);
4205 end Set_Is_Known_Null
;
4207 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
4209 Set_Flag170
(Id
, V
);
4210 end Set_Is_Known_Valid
;
4212 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
4214 pragma Assert
(Is_Type
(Id
));
4215 Set_Flag106
(Id
, V
);
4216 end Set_Is_Limited_Composite
;
4218 procedure Set_Is_Limited_Interface
(Id
: E
; V
: B
:= True) is
4220 pragma Assert
(Is_Interface
(Id
));
4221 Set_Flag197
(Id
, V
);
4222 end Set_Is_Limited_Interface
;
4224 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
4227 end Set_Is_Limited_Record
;
4229 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
4231 pragma Assert
(Is_Subprogram
(Id
));
4232 Set_Flag137
(Id
, V
);
4233 end Set_Is_Machine_Code_Subprogram
;
4235 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
4237 pragma Assert
(Is_Type
(Id
));
4238 Set_Flag109
(Id
, V
);
4239 end Set_Is_Non_Static_Subtype
;
4241 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
4243 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4244 Set_Flag178
(Id
, V
);
4245 end Set_Is_Null_Init_Proc
;
4247 procedure Set_Is_Obsolescent
(Id
: E
; V
: B
:= True) is
4249 Set_Flag153
(Id
, V
);
4250 end Set_Is_Obsolescent
;
4252 procedure Set_Is_Only_Out_Parameter
(Id
: E
; V
: B
:= True) is
4254 pragma Assert
(Ekind
(Id
) = E_Out_Parameter
);
4255 Set_Flag226
(Id
, V
);
4256 end Set_Is_Only_Out_Parameter
;
4258 procedure Set_Is_Optional_Parameter
(Id
: E
; V
: B
:= True) is
4260 pragma Assert
(Is_Formal
(Id
));
4261 Set_Flag134
(Id
, V
);
4262 end Set_Is_Optional_Parameter
;
4264 procedure Set_Is_Overriding_Operation
(Id
: E
; V
: B
:= True) is
4266 pragma Assert
(Is_Subprogram
(Id
));
4268 end Set_Is_Overriding_Operation
;
4270 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
4272 Set_Flag160
(Id
, V
);
4273 end Set_Is_Package_Body_Entity
;
4275 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
4277 pragma Assert
(Base_Type
(Id
) = Id
);
4281 procedure Set_Is_Packed_Array_Type
(Id
: E
; V
: B
:= True) is
4283 Set_Flag138
(Id
, V
);
4284 end Set_Is_Packed_Array_Type
;
4286 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
4288 pragma Assert
(Nkind
(Id
) in N_Entity
);
4290 end Set_Is_Potentially_Use_Visible
;
4292 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
4295 end Set_Is_Preelaborated
;
4297 procedure Set_Is_Primitive
(Id
: E
; V
: B
:= True) is
4300 (Is_Overloadable
(Id
)
4301 or else Ekind
(Id
) = E_Generic_Function
4302 or else Ekind
(Id
) = E_Generic_Procedure
);
4303 Set_Flag218
(Id
, V
);
4304 end Set_Is_Primitive
;
4306 procedure Set_Is_Primitive_Wrapper
(Id
: E
; V
: B
:= True) is
4308 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4309 Set_Flag195
(Id
, V
);
4310 end Set_Is_Primitive_Wrapper
;
4312 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
4314 pragma Assert
(Is_Type
(Id
));
4315 Set_Flag107
(Id
, V
);
4316 end Set_Is_Private_Composite
;
4318 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
4321 end Set_Is_Private_Descendant
;
4323 procedure Set_Is_Protected_Interface
(Id
: E
; V
: B
:= True) is
4325 pragma Assert
(Is_Interface
(Id
));
4326 Set_Flag198
(Id
, V
);
4327 end Set_Is_Protected_Interface
;
4329 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
4331 pragma Assert
(Nkind
(Id
) in N_Entity
);
4335 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
4340 procedure Set_Is_Pure_Unit_Access_Type
(Id
: E
; V
: B
:= True) is
4342 pragma Assert
(Is_Access_Type
(Id
));
4343 Set_Flag189
(Id
, V
);
4344 end Set_Is_Pure_Unit_Access_Type
;
4346 procedure Set_Is_Raised
(Id
: E
; V
: B
:= True) is
4348 pragma Assert
(Ekind
(Id
) = E_Exception
);
4349 Set_Flag224
(Id
, V
);
4352 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
4355 end Set_Is_Remote_Call_Interface
;
4357 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
4360 end Set_Is_Remote_Types
;
4362 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
4364 Set_Flag112
(Id
, V
);
4365 end Set_Is_Renaming_Of_Object
;
4367 procedure Set_Is_Return_Object
(Id
: E
; V
: B
:= True) is
4369 Set_Flag209
(Id
, V
);
4370 end Set_Is_Return_Object
;
4372 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
4375 end Set_Is_Shared_Passive
;
4377 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
4380 (Ekind
(Id
) = E_Exception
4381 or else Ekind
(Id
) = E_Variable
4382 or else Ekind
(Id
) = E_Constant
4383 or else Is_Type
(Id
)
4384 or else Ekind
(Id
) = E_Void
);
4386 end Set_Is_Statically_Allocated
;
4388 procedure Set_Is_Synchronized_Interface
(Id
: E
; V
: B
:= True) is
4390 pragma Assert
(Is_Interface
(Id
));
4391 Set_Flag199
(Id
, V
);
4392 end Set_Is_Synchronized_Interface
;
4394 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
4397 (Ekind
(Id
) = E_Component
4398 or else Ekind
(Id
) = E_Constant
);
4402 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
4405 end Set_Is_Tagged_Type
;
4407 procedure Set_Is_Task_Interface
(Id
: E
; V
: B
:= True) is
4409 pragma Assert
(Is_Interface
(Id
));
4410 Set_Flag200
(Id
, V
);
4411 end Set_Is_Task_Interface
;
4413 procedure Set_Is_Thunk
(Id
: E
; V
: B
:= True) is
4415 Set_Flag225
(Id
, V
);
4418 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
4420 Set_Flag163
(Id
, V
);
4421 end Set_Is_True_Constant
;
4423 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
4425 pragma Assert
(Base_Type
(Id
) = Id
);
4426 Set_Flag117
(Id
, V
);
4427 end Set_Is_Unchecked_Union
;
4429 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
4431 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
4432 Set_Flag144
(Id
, V
);
4433 end Set_Is_Unsigned_Type
;
4435 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
4437 pragma Assert
(Ekind
(Id
) = E_Procedure
);
4438 Set_Flag127
(Id
, V
);
4439 end Set_Is_Valued_Procedure
;
4441 procedure Set_Is_Visible_Child_Unit
(Id
: E
; V
: B
:= True) is
4443 pragma Assert
(Is_Child_Unit
(Id
));
4444 Set_Flag116
(Id
, V
);
4445 end Set_Is_Visible_Child_Unit
;
4447 procedure Set_Is_Visible_Formal
(Id
: E
; V
: B
:= True) is
4449 Set_Flag206
(Id
, V
);
4450 end Set_Is_Visible_Formal
;
4452 procedure Set_Is_VMS_Exception
(Id
: E
; V
: B
:= True) is
4454 pragma Assert
(Ekind
(Id
) = E_Exception
);
4455 Set_Flag133
(Id
, V
);
4456 end Set_Is_VMS_Exception
;
4458 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
4460 pragma Assert
(Nkind
(Id
) in N_Entity
);
4462 end Set_Is_Volatile
;
4464 procedure Set_Itype_Printed
(Id
: E
; V
: B
:= True) is
4466 pragma Assert
(Is_Itype
(Id
));
4467 Set_Flag202
(Id
, V
);
4468 end Set_Itype_Printed
;
4470 procedure Set_Kill_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
4473 end Set_Kill_Elaboration_Checks
;
4475 procedure Set_Kill_Range_Checks
(Id
: E
; V
: B
:= True) is
4478 end Set_Kill_Range_Checks
;
4480 procedure Set_Kill_Tag_Checks
(Id
: E
; V
: B
:= True) is
4483 end Set_Kill_Tag_Checks
;
4485 procedure Set_Known_To_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4487 pragma Assert
(Is_Type
(Id
));
4488 Set_Flag207
(Id
, V
);
4489 end Set_Known_To_Have_Preelab_Init
;
4491 procedure Set_Last_Assignment
(Id
: E
; V
: N
) is
4493 pragma Assert
(Is_Assignable
(Id
));
4495 end Set_Last_Assignment
;
4497 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
4500 end Set_Last_Entity
;
4502 procedure Set_Limited_View
(Id
: E
; V
: E
) is
4504 pragma Assert
(Ekind
(Id
) = E_Package
);
4506 end Set_Limited_View
;
4508 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
4510 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
4512 end Set_Lit_Indexes
;
4514 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
4516 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
4518 end Set_Lit_Strings
;
4520 procedure Set_Low_Bound_Known
(Id
: E
; V
: B
:= True) is
4522 pragma Assert
(Is_Formal
(Id
));
4523 Set_Flag205
(Id
, V
);
4524 end Set_Low_Bound_Known
;
4526 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
4528 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
4530 end Set_Machine_Radix_10
;
4532 procedure Set_Master_Id
(Id
: E
; V
: E
) is
4534 pragma Assert
(Is_Access_Type
(Id
));
4538 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
4540 Set_Flag168
(Id
, V
);
4541 end Set_Materialize_Entity
;
4543 procedure Set_Mechanism
(Id
: E
; V
: M
) is
4545 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
4546 Set_Uint8
(Id
, UI_From_Int
(V
));
4549 procedure Set_Modulus
(Id
: E
; V
: U
) is
4551 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
4555 procedure Set_Must_Be_On_Byte_Boundary
(Id
: E
; V
: B
:= True) is
4557 pragma Assert
(Is_Type
(Id
));
4558 Set_Flag183
(Id
, V
);
4559 end Set_Must_Be_On_Byte_Boundary
;
4561 procedure Set_Must_Have_Preelab_Init
(Id
: E
; V
: B
:= True) is
4563 pragma Assert
(Is_Type
(Id
));
4564 Set_Flag208
(Id
, V
);
4565 end Set_Must_Have_Preelab_Init
;
4567 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
4569 Set_Flag147
(Id
, V
);
4570 end Set_Needs_Debug_Info
;
4572 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
4575 (Is_Overloadable
(Id
)
4576 or else Ekind
(Id
) = E_Subprogram_Type
4577 or else Ekind
(Id
) = E_Entry_Family
);
4579 end Set_Needs_No_Actuals
;
4581 procedure Set_Never_Set_In_Source
(Id
: E
; V
: B
:= True) is
4583 Set_Flag115
(Id
, V
);
4584 end Set_Never_Set_In_Source
;
4586 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
4589 end Set_Next_Inlined_Subprogram
;
4591 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
4593 pragma Assert
(Is_Access_Type
(Id
) and then Base_Type
(Id
) = Id
);
4594 Set_Flag131
(Id
, V
);
4595 end Set_No_Pool_Assigned
;
4597 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
4601 or else Ekind
(Id
) = E_Procedure
4602 or else Ekind
(Id
) = E_Generic_Procedure
);
4603 Set_Flag113
(Id
, V
);
4606 procedure Set_No_Strict_Aliasing
(Id
: E
; V
: B
:= True) is
4608 pragma Assert
(Is_Access_Type
(Id
) and then Base_Type
(Id
) = Id
);
4609 Set_Flag136
(Id
, V
);
4610 end Set_No_Strict_Aliasing
;
4612 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
4614 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
4616 end Set_Non_Binary_Modulus
;
4618 procedure Set_Non_Limited_View
(Id
: E
; V
: E
) is
4620 pragma Assert
(Ekind
(Id
) in Incomplete_Kind
);
4622 end Set_Non_Limited_View
;
4624 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
4627 (Root_Type
(Id
) = Standard_Boolean
4628 and then Ekind
(Id
) = E_Enumeration_Type
);
4629 Set_Flag162
(Id
, V
);
4630 end Set_Nonzero_Is_True
;
4632 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
4635 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
4637 end Set_Normalized_First_Bit
;
4639 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
4642 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
4644 end Set_Normalized_Position
;
4646 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
4649 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
4651 end Set_Normalized_Position_Max
;
4653 procedure Set_Object_Ref
(Id
: E
; V
: E
) is
4655 pragma Assert
(Ekind
(Id
) = E_Protected_Body
);
4659 procedure Set_Obsolescent_Warning
(Id
: E
; V
: N
) is
4662 end Set_Obsolescent_Warning
;
4664 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
4666 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
4668 end Set_Original_Array_Type
;
4670 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
4673 (Ekind
(Id
) = E_Void
4674 or else Ekind
(Id
) = E_Component
4675 or else Ekind
(Id
) = E_Discriminant
);
4677 end Set_Original_Record_Component
;
4679 procedure Set_Overridden_Operation
(Id
: E
; V
: E
) is
4682 end Set_Overridden_Operation
;
4684 procedure Set_Package_Instantiation
(Id
: E
; V
: N
) is
4687 (Ekind
(Id
) = E_Void
4688 or else Ekind
(Id
) = E_Generic_Package
4689 or else Ekind
(Id
) = E_Package
);
4691 end Set_Package_Instantiation
;
4693 procedure Set_Packed_Array_Type
(Id
: E
; V
: E
) is
4695 pragma Assert
(Is_Array_Type
(Id
));
4697 end Set_Packed_Array_Type
;
4699 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
4701 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
4703 end Set_Parent_Subtype
;
4705 procedure Set_Primitive_Operations
(Id
: E
; V
: L
) is
4707 pragma Assert
(Is_Tagged_Type
(Id
));
4708 Set_Elist15
(Id
, V
);
4709 end Set_Primitive_Operations
;
4711 procedure Set_Prival
(Id
: E
; V
: E
) is
4713 pragma Assert
(Is_Protected_Private
(Id
));
4717 procedure Set_Privals_Chain
(Id
: E
; V
: L
) is
4719 pragma Assert
(Is_Overloadable
(Id
)
4720 or else Ekind
(Id
) = E_Entry_Family
);
4721 Set_Elist23
(Id
, V
);
4722 end Set_Privals_Chain
;
4724 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
4726 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
4727 Set_Elist18
(Id
, V
);
4728 end Set_Private_Dependents
;
4730 procedure Set_Private_View
(Id
: E
; V
: N
) is
4732 pragma Assert
(Is_Private_Type
(Id
));
4734 end Set_Private_View
;
4736 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
4738 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
4740 end Set_Protected_Body_Subprogram
;
4742 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
4744 pragma Assert
(Is_Formal
(Id
));
4746 end Set_Protected_Formal
;
4748 procedure Set_Protected_Operation
(Id
: E
; V
: N
) is
4750 pragma Assert
(Is_Protected_Private
(Id
));
4752 end Set_Protected_Operation
;
4754 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
4759 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
4761 Set_Flag156
(Id
, V
);
4764 procedure Set_Referenced_As_LHS
(Id
: E
; V
: B
:= True) is
4767 end Set_Referenced_As_LHS
;
4769 procedure Set_Referenced_As_Out_Parameter
(Id
: E
; V
: B
:= True) is
4771 Set_Flag227
(Id
, V
);
4772 end Set_Referenced_As_Out_Parameter
;
4774 procedure Set_Referenced_Object
(Id
: E
; V
: N
) is
4776 pragma Assert
(Is_Type
(Id
));
4778 end Set_Referenced_Object
;
4780 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
4782 pragma Assert
(Ekind
(Id
) = E_Exception
);
4784 end Set_Register_Exception_Call
;
4786 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
4788 pragma Assert
(Is_Array_Type
(Id
));
4790 end Set_Related_Array_Object
;
4792 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
4795 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Package_Body
);
4797 end Set_Related_Instance
;
4799 procedure Set_Related_Type
(Id
: E
; V
: E
) is
4802 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Constant
);
4804 end Set_Related_Type
;
4806 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
4809 end Set_Renamed_Entity
;
4811 procedure Set_Renamed_In_Spec
(Id
: E
; V
: B
:= True) is
4813 pragma Assert
(Ekind
(Id
) = E_Package
);
4814 Set_Flag231
(Id
, V
);
4815 end Set_Renamed_In_Spec
;
4817 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
4820 end Set_Renamed_Object
;
4822 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
4825 end Set_Renaming_Map
;
4827 procedure Set_Requires_Overriding
(Id
: E
; V
: B
:= True) is
4829 pragma Assert
(Is_Overloadable
(Id
));
4830 Set_Flag213
(Id
, V
);
4831 end Set_Requires_Overriding
;
4833 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
4836 end Set_Return_Present
;
4838 procedure Set_Return_Applies_To
(Id
: E
; V
: N
) is
4841 end Set_Return_Applies_To
;
4843 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
4846 end Set_Returns_By_Ref
;
4848 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
4851 (Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
4852 Set_Flag164
(Id
, V
);
4853 end Set_Reverse_Bit_Order
;
4855 procedure Set_RM_Size
(Id
: E
; V
: U
) is
4857 pragma Assert
(Is_Type
(Id
));
4861 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
4864 end Set_Scalar_Range
;
4866 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
4869 end Set_Scale_Value
;
4871 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
4873 pragma Assert
(not Is_Record_Type
(Id
));
4875 end Set_Scope_Depth_Value
;
4877 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
4879 Set_Flag167
(Id
, V
);
4880 end Set_Sec_Stack_Needed_For_Return
;
4882 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
4885 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
4887 end Set_Shadow_Entities
;
4889 procedure Set_Shared_Var_Assign_Proc
(Id
: E
; V
: E
) is
4891 pragma Assert
(Ekind
(Id
) = E_Variable
);
4893 end Set_Shared_Var_Assign_Proc
;
4895 procedure Set_Shared_Var_Read_Proc
(Id
: E
; V
: E
) is
4897 pragma Assert
(Ekind
(Id
) = E_Variable
);
4899 end Set_Shared_Var_Read_Proc
;
4901 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
4903 pragma Assert
(Ekind
(Id
) = E_Constant
or else Ekind
(Id
) = E_Variable
);
4905 end Set_Size_Check_Code
;
4907 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
4909 Set_Flag177
(Id
, V
);
4910 end Set_Size_Depends_On_Discriminant
;
4912 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
4915 end Set_Size_Known_At_Compile_Time
;
4917 procedure Set_Small_Value
(Id
: E
; V
: R
) is
4919 pragma Assert
(Is_Fixed_Point_Type
(Id
));
4920 Set_Ureal21
(Id
, V
);
4921 end Set_Small_Value
;
4923 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
4925 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
4927 end Set_Spec_Entity
;
4929 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
4931 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
4932 pragma Assert
(Base_Type
(Id
) = Id
);
4934 end Set_Storage_Size_Variable
;
4936 procedure Set_Static_Elaboration_Desired
(Id
: E
; V
: B
) is
4938 pragma Assert
(Ekind
(Id
) = E_Package
);
4940 end Set_Static_Elaboration_Desired
;
4942 procedure Set_Static_Initialization
(Id
: E
; V
: N
) is
4945 (Ekind
(Id
) = E_Procedure
and then not Is_Dispatching_Operation
(Id
));
4947 end Set_Static_Initialization
;
4949 procedure Set_Stored_Constraint
(Id
: E
; V
: L
) is
4951 pragma Assert
(Nkind
(Id
) in N_Entity
);
4952 Set_Elist23
(Id
, V
);
4953 end Set_Stored_Constraint
;
4955 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
4957 pragma Assert
(Base_Type
(Id
) = Id
);
4958 Set_Flag145
(Id
, V
);
4959 end Set_Strict_Alignment
;
4961 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
4963 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
4965 end Set_String_Literal_Length
;
4967 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
4969 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
4971 end Set_String_Literal_Low_Bound
;
4973 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
4975 Set_Flag148
(Id
, V
);
4976 end Set_Suppress_Elaboration_Warnings
;
4978 procedure Set_Suppress_Init_Proc
(Id
: E
; V
: B
:= True) is
4980 pragma Assert
(Id
= Base_Type
(Id
));
4981 Set_Flag105
(Id
, V
);
4982 end Set_Suppress_Init_Proc
;
4984 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
4986 Set_Flag165
(Id
, V
);
4987 end Set_Suppress_Style_Checks
;
4989 procedure Set_Suppress_Value_Tracking_On_Call
(Id
: E
; V
: B
:= True) is
4991 Set_Flag217
(Id
, V
);
4992 end Set_Suppress_Value_Tracking_On_Call
;
4994 procedure Set_Task_Body_Procedure
(Id
: E
; V
: N
) is
4996 pragma Assert
(Ekind
(Id
) in Task_Kind
);
4998 end Set_Task_Body_Procedure
;
5000 procedure Set_Treat_As_Volatile
(Id
: E
; V
: B
:= True) is
5003 end Set_Treat_As_Volatile
;
5005 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
5007 pragma Assert
(Ekind
(Id
) in Private_Kind
);
5009 end Set_Underlying_Full_View
;
5011 procedure Set_Universal_Aliasing
(Id
: E
; V
: B
:= True) is
5013 pragma Assert
(Is_Type
(Id
) and then Base_Type
(Id
) = Id
);
5014 Set_Flag216
(Id
, V
);
5015 end Set_Universal_Aliasing
;
5017 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
5020 end Set_Unset_Reference
;
5022 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
5025 end Set_Uses_Sec_Stack
;
5027 procedure Set_Used_As_Generic_Actual
(Id
: E
; V
: B
:= True) is
5029 Set_Flag222
(Id
, V
);
5030 end Set_Used_As_Generic_Actual
;
5032 procedure Set_Vax_Float
(Id
: E
; V
: B
:= True) is
5034 pragma Assert
(Id
= Base_Type
(Id
));
5035 Set_Flag151
(Id
, V
);
5038 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
5041 end Set_Warnings_Off
;
5043 procedure Set_Was_Hidden
(Id
: E
; V
: B
:= True) is
5045 Set_Flag196
(Id
, V
);
5048 procedure Set_Wrapped_Entity
(Id
: E
; V
: E
) is
5050 pragma Assert
(Ekind
(Id
) = E_Procedure
5051 and then Is_Primitive_Wrapper
(Id
));
5053 end Set_Wrapped_Entity
;
5055 -----------------------------------
5056 -- Field Initialization Routines --
5057 -----------------------------------
5059 procedure Init_Alignment
(Id
: E
) is
5061 Set_Uint14
(Id
, Uint_0
);
5064 procedure Init_Alignment
(Id
: E
; V
: Int
) is
5066 Set_Uint14
(Id
, UI_From_Int
(V
));
5069 procedure Init_Component_Bit_Offset
(Id
: E
) is
5071 Set_Uint11
(Id
, No_Uint
);
5072 end Init_Component_Bit_Offset
;
5074 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
5076 Set_Uint11
(Id
, UI_From_Int
(V
));
5077 end Init_Component_Bit_Offset
;
5079 procedure Init_Component_Size
(Id
: E
) is
5081 Set_Uint22
(Id
, Uint_0
);
5082 end Init_Component_Size
;
5084 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
5086 Set_Uint22
(Id
, UI_From_Int
(V
));
5087 end Init_Component_Size
;
5089 procedure Init_Digits_Value
(Id
: E
) is
5091 Set_Uint17
(Id
, Uint_0
);
5092 end Init_Digits_Value
;
5094 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
5096 Set_Uint17
(Id
, UI_From_Int
(V
));
5097 end Init_Digits_Value
;
5099 procedure Init_Esize
(Id
: E
) is
5101 Set_Uint12
(Id
, Uint_0
);
5104 procedure Init_Esize
(Id
: E
; V
: Int
) is
5106 Set_Uint12
(Id
, UI_From_Int
(V
));
5109 procedure Init_Normalized_First_Bit
(Id
: E
) is
5111 Set_Uint8
(Id
, No_Uint
);
5112 end Init_Normalized_First_Bit
;
5114 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
5116 Set_Uint8
(Id
, UI_From_Int
(V
));
5117 end Init_Normalized_First_Bit
;
5119 procedure Init_Normalized_Position
(Id
: E
) is
5121 Set_Uint14
(Id
, No_Uint
);
5122 end Init_Normalized_Position
;
5124 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
5126 Set_Uint14
(Id
, UI_From_Int
(V
));
5127 end Init_Normalized_Position
;
5129 procedure Init_Normalized_Position_Max
(Id
: E
) is
5131 Set_Uint10
(Id
, No_Uint
);
5132 end Init_Normalized_Position_Max
;
5134 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
5136 Set_Uint10
(Id
, UI_From_Int
(V
));
5137 end Init_Normalized_Position_Max
;
5139 procedure Init_RM_Size
(Id
: E
) is
5141 Set_Uint13
(Id
, Uint_0
);
5144 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
5146 Set_Uint13
(Id
, UI_From_Int
(V
));
5149 -----------------------------
5150 -- Init_Component_Location --
5151 -----------------------------
5153 procedure Init_Component_Location
(Id
: E
) is
5155 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
5156 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
5157 Set_Uint11
(Id
, No_Uint
); -- Component_Bit_Offset
5158 Set_Uint12
(Id
, Uint_0
); -- Esize
5159 Set_Uint14
(Id
, No_Uint
); -- Normalized_Position
5160 end Init_Component_Location
;
5166 procedure Init_Size
(Id
: E
; V
: Int
) is
5168 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
5169 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
5172 ---------------------
5173 -- Init_Size_Align --
5174 ---------------------
5176 procedure Init_Size_Align
(Id
: E
) is
5178 Set_Uint12
(Id
, Uint_0
); -- Esize
5179 Set_Uint13
(Id
, Uint_0
); -- RM_Size
5180 Set_Uint14
(Id
, Uint_0
); -- Alignment
5181 end Init_Size_Align
;
5183 ----------------------------------------------
5184 -- Type Representation Attribute Predicates --
5185 ----------------------------------------------
5187 function Known_Alignment
(E
: Entity_Id
) return B
is
5189 return Uint14
(E
) /= Uint_0
5190 and then Uint14
(E
) /= No_Uint
;
5191 end Known_Alignment
;
5193 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5195 return Uint11
(E
) /= No_Uint
;
5196 end Known_Component_Bit_Offset
;
5198 function Known_Component_Size
(E
: Entity_Id
) return B
is
5200 return Uint22
(Base_Type
(E
)) /= Uint_0
5201 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
5202 end Known_Component_Size
;
5204 function Known_Esize
(E
: Entity_Id
) return B
is
5206 return Uint12
(E
) /= Uint_0
5207 and then Uint12
(E
) /= No_Uint
;
5210 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5212 return Uint8
(E
) /= No_Uint
;
5213 end Known_Normalized_First_Bit
;
5215 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
5217 return Uint14
(E
) /= No_Uint
;
5218 end Known_Normalized_Position
;
5220 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5222 return Uint10
(E
) /= No_Uint
;
5223 end Known_Normalized_Position_Max
;
5225 function Known_RM_Size
(E
: Entity_Id
) return B
is
5227 return Uint13
(E
) /= No_Uint
5228 and then (Uint13
(E
) /= Uint_0
5229 or else Is_Discrete_Type
(E
)
5230 or else Is_Fixed_Point_Type
(E
));
5233 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5235 return Uint11
(E
) /= No_Uint
5236 and then Uint11
(E
) >= Uint_0
;
5237 end Known_Static_Component_Bit_Offset
;
5239 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
5241 return Uint22
(Base_Type
(E
)) > Uint_0
;
5242 end Known_Static_Component_Size
;
5244 function Known_Static_Esize
(E
: Entity_Id
) return B
is
5246 return Uint12
(E
) > Uint_0
;
5247 end Known_Static_Esize
;
5249 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5251 return Uint8
(E
) /= No_Uint
5252 and then Uint8
(E
) >= Uint_0
;
5253 end Known_Static_Normalized_First_Bit
;
5255 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
5257 return Uint14
(E
) /= No_Uint
5258 and then Uint14
(E
) >= Uint_0
;
5259 end Known_Static_Normalized_Position
;
5261 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5263 return Uint10
(E
) /= No_Uint
5264 and then Uint10
(E
) >= Uint_0
;
5265 end Known_Static_Normalized_Position_Max
;
5267 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
5269 return Uint13
(E
) > Uint_0
5270 or else Is_Discrete_Type
(E
)
5271 or else Is_Fixed_Point_Type
(E
);
5272 end Known_Static_RM_Size
;
5274 function Unknown_Alignment
(E
: Entity_Id
) return B
is
5276 return Uint14
(E
) = Uint_0
5277 or else Uint14
(E
) = No_Uint
;
5278 end Unknown_Alignment
;
5280 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
5282 return Uint11
(E
) = No_Uint
;
5283 end Unknown_Component_Bit_Offset
;
5285 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
5287 return Uint22
(Base_Type
(E
)) = Uint_0
5289 Uint22
(Base_Type
(E
)) = No_Uint
;
5290 end Unknown_Component_Size
;
5292 function Unknown_Esize
(E
: Entity_Id
) return B
is
5294 return Uint12
(E
) = No_Uint
5296 Uint12
(E
) = Uint_0
;
5299 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
5301 return Uint8
(E
) = No_Uint
;
5302 end Unknown_Normalized_First_Bit
;
5304 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
5306 return Uint14
(E
) = No_Uint
;
5307 end Unknown_Normalized_Position
;
5309 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
5311 return Uint10
(E
) = No_Uint
;
5312 end Unknown_Normalized_Position_Max
;
5314 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
5316 return (Uint13
(E
) = Uint_0
5317 and then not Is_Discrete_Type
(E
)
5318 and then not Is_Fixed_Point_Type
(E
))
5319 or else Uint13
(E
) = No_Uint
;
5320 end Unknown_RM_Size
;
5322 --------------------
5323 -- Address_Clause --
5324 --------------------
5326 function Address_Clause
(Id
: E
) return N
is
5328 return Rep_Clause
(Id
, Name_Address
);
5331 ----------------------
5332 -- Alignment_Clause --
5333 ----------------------
5335 function Alignment_Clause
(Id
: E
) return N
is
5337 return Rep_Clause
(Id
, Name_Alignment
);
5338 end Alignment_Clause
;
5340 ----------------------
5341 -- Ancestor_Subtype --
5342 ----------------------
5344 function Ancestor_Subtype
(Id
: E
) return E
is
5346 -- If this is first subtype, or is a base type, then there is no
5347 -- ancestor subtype, so we return Empty to indicate this fact.
5349 if Is_First_Subtype
(Id
) or else Id
= Base_Type
(Id
) then
5354 D
: constant Node_Id
:= Declaration_Node
(Id
);
5357 -- If we have a subtype declaration, get the ancestor subtype
5359 if Nkind
(D
) = N_Subtype_Declaration
then
5360 if Nkind
(Subtype_Indication
(D
)) = N_Subtype_Indication
then
5361 return Entity
(Subtype_Mark
(Subtype_Indication
(D
)));
5363 return Entity
(Subtype_Indication
(D
));
5366 -- If not, then no subtype indication is available
5372 end Ancestor_Subtype
;
5378 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
5380 if Last_Entity
(V
) = Empty
then
5381 Set_First_Entity
(V
, Id
);
5383 Set_Next_Entity
(Last_Entity
(V
), Id
);
5386 Set_Next_Entity
(Id
, Empty
);
5388 Set_Last_Entity
(V
, Id
);
5391 --------------------
5392 -- Available_View --
5393 --------------------
5395 function Available_View
(Id
: E
) return E
is
5397 if Is_Incomplete_Type
(Id
)
5398 and then Present
(Non_Limited_View
(Id
))
5400 -- The non-limited view may itself be an incomplete type, in
5401 -- which case get its full view.
5403 return Get_Full_View
(Non_Limited_View
(Id
));
5405 elsif Is_Class_Wide_Type
(Id
)
5406 and then Is_Incomplete_Type
(Etype
(Id
))
5407 and then Present
(Non_Limited_View
(Etype
(Id
)))
5409 return Class_Wide_Type
(Non_Limited_View
(Etype
(Id
)));
5420 function Base_Type
(Id
: E
) return E
is
5423 when E_Enumeration_Subtype |
5425 E_Signed_Integer_Subtype |
5426 E_Modular_Integer_Subtype |
5427 E_Floating_Point_Subtype |
5428 E_Ordinary_Fixed_Point_Subtype |
5429 E_Decimal_Fixed_Point_Subtype |
5434 E_Record_Subtype_With_Private |
5435 E_Limited_Private_Subtype |
5437 E_Protected_Subtype |
5439 E_String_Literal_Subtype |
5440 E_Class_Wide_Subtype
=>
5448 -------------------------
5449 -- Component_Alignment --
5450 -------------------------
5452 -- Component Alignment is encoded using two flags, Flag128/129 as
5453 -- follows. Note that both flags False = Align_Default, so that the
5454 -- default initialization of flags to False initializes component
5455 -- alignment to the default value as required.
5457 -- Flag128 Flag129 Value
5458 -- ------- ------- -----
5459 -- False False Calign_Default
5460 -- False True Calign_Component_Size
5461 -- True False Calign_Component_Size_4
5462 -- True True Calign_Storage_Unit
5464 function Component_Alignment
(Id
: E
) return C
is
5465 BT
: constant Node_Id
:= Base_Type
(Id
);
5468 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
5470 if Flag128
(BT
) then
5471 if Flag129
(BT
) then
5472 return Calign_Storage_Unit
;
5474 return Calign_Component_Size_4
;
5478 if Flag129
(BT
) then
5479 return Calign_Component_Size
;
5481 return Calign_Default
;
5484 end Component_Alignment
;
5486 --------------------
5487 -- Constant_Value --
5488 --------------------
5490 function Constant_Value
(Id
: E
) return N
is
5491 D
: constant Node_Id
:= Declaration_Node
(Id
);
5495 -- If we have no declaration node, then return no constant value.
5496 -- Not clear how this can happen, but it does sometimes ???
5497 -- To investigate, remove this check and compile discrim_po.adb.
5502 -- Normal case where a declaration node is present
5504 elsif Nkind
(D
) = N_Object_Renaming_Declaration
then
5505 return Renamed_Object
(Id
);
5507 -- If this is a component declaration whose entity is constant, it
5508 -- is a prival within a protected function. It does not have
5509 -- a constant value.
5511 elsif Nkind
(D
) = N_Component_Declaration
then
5514 -- If there is an expression, return it
5516 elsif Present
(Expression
(D
)) then
5517 return (Expression
(D
));
5519 -- For a constant, see if we have a full view
5521 elsif Ekind
(Id
) = E_Constant
5522 and then Present
(Full_View
(Id
))
5524 Full_D
:= Parent
(Full_View
(Id
));
5526 -- The full view may have been rewritten as an object renaming
5528 if Nkind
(Full_D
) = N_Object_Renaming_Declaration
then
5529 return Name
(Full_D
);
5531 return Expression
(Full_D
);
5534 -- Otherwise we have no expression to return
5541 ----------------------
5542 -- Declaration_Node --
5543 ----------------------
5545 function Declaration_Node
(Id
: E
) return N
is
5549 if Ekind
(Id
) = E_Incomplete_Type
5550 and then Present
(Full_View
(Id
))
5552 P
:= Parent
(Full_View
(Id
));
5558 if Nkind
(P
) /= N_Selected_Component
5559 and then Nkind
(P
) /= N_Expanded_Name
5561 not (Nkind
(P
) = N_Defining_Program_Unit_Name
5562 and then Is_Child_Unit
(Id
))
5569 end Declaration_Node
;
5571 ---------------------
5572 -- Designated_Type --
5573 ---------------------
5575 function Designated_Type
(Id
: E
) return E
is
5579 Desig_Type
:= Directly_Designated_Type
(Id
);
5581 if Ekind
(Desig_Type
) = E_Incomplete_Type
5582 and then Present
(Full_View
(Desig_Type
))
5584 return Full_View
(Desig_Type
);
5586 elsif Is_Class_Wide_Type
(Desig_Type
)
5587 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
5588 and then Present
(Full_View
(Etype
(Desig_Type
)))
5589 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
5591 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
5596 end Designated_Type
;
5598 -----------------------------
5599 -- Enclosing_Dynamic_Scope --
5600 -----------------------------
5602 function Enclosing_Dynamic_Scope
(Id
: E
) return E
is
5606 -- The following test is an error defense against some syntax
5607 -- errors that can leave scopes very messed up.
5609 if Id
= Standard_Standard
then
5613 -- Normal case, search enclosing scopes
5615 -- Note: the test for Present (S) should not be required, it is a
5616 -- defence against an ill-formed tree.
5620 -- If we somehow got an empty value for Scope, the tree must be
5621 -- malformed. Rather than blow up we return Standard in this case.
5624 return Standard_Standard
;
5626 -- Quit if we get to standard or a dynamic scope
5628 elsif S
= Standard_Standard
5629 or else Is_Dynamic_Scope
(S
)
5633 -- Otherwise keep climbing
5641 end Enclosing_Dynamic_Scope
;
5643 ----------------------
5644 -- Entry_Index_Type --
5645 ----------------------
5647 function Entry_Index_Type
(Id
: E
) return N
is
5649 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
5650 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
5651 end Entry_Index_Type
;
5653 ---------------------
5654 -- First_Component --
5655 ---------------------
5657 function First_Component
(Id
: E
) return E
is
5662 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
5664 Comp_Id
:= First_Entity
(Id
);
5665 while Present
(Comp_Id
) loop
5666 exit when Ekind
(Comp_Id
) = E_Component
;
5667 Comp_Id
:= Next_Entity
(Comp_Id
);
5671 end First_Component
;
5673 -------------------------------------
5674 -- First_Component_Or_Discriminant --
5675 -------------------------------------
5677 function First_Component_Or_Discriminant
(Id
: E
) return E
is
5682 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
5684 Comp_Id
:= First_Entity
(Id
);
5685 while Present
(Comp_Id
) loop
5686 exit when Ekind
(Comp_Id
) = E_Component
5688 Ekind
(Comp_Id
) = E_Discriminant
;
5689 Comp_Id
:= Next_Entity
(Comp_Id
);
5693 end First_Component_Or_Discriminant
;
5695 ------------------------
5696 -- First_Discriminant --
5697 ------------------------
5699 function First_Discriminant
(Id
: E
) return E
is
5704 (Has_Discriminants
(Id
)
5705 or else Has_Unknown_Discriminants
(Id
));
5707 Ent
:= First_Entity
(Id
);
5709 -- The discriminants are not necessarily contiguous, because access
5710 -- discriminants will generate itypes. They are not the first entities
5711 -- either, because tag and controller record must be ahead of them.
5713 if Chars
(Ent
) = Name_uTag
then
5714 Ent
:= Next_Entity
(Ent
);
5717 if Chars
(Ent
) = Name_uController
then
5718 Ent
:= Next_Entity
(Ent
);
5721 -- Skip all hidden stored discriminants if any
5723 while Present
(Ent
) loop
5724 exit when Ekind
(Ent
) = E_Discriminant
5725 and then not Is_Completely_Hidden
(Ent
);
5727 Ent
:= Next_Entity
(Ent
);
5730 pragma Assert
(Ekind
(Ent
) = E_Discriminant
);
5733 end First_Discriminant
;
5739 function First_Formal
(Id
: E
) return E
is
5744 (Is_Overloadable
(Id
)
5745 or else Ekind
(Id
) = E_Entry_Family
5746 or else Ekind
(Id
) = E_Subprogram_Body
5747 or else Ekind
(Id
) = E_Subprogram_Type
);
5749 if Ekind
(Id
) = E_Enumeration_Literal
then
5753 Formal
:= First_Entity
(Id
);
5755 if Present
(Formal
) and then Is_Formal
(Formal
) then
5763 ------------------------------
5764 -- First_Formal_With_Extras --
5765 ------------------------------
5767 function First_Formal_With_Extras
(Id
: E
) return E
is
5772 (Is_Overloadable
(Id
)
5773 or else Ekind
(Id
) = E_Entry_Family
5774 or else Ekind
(Id
) = E_Subprogram_Body
5775 or else Ekind
(Id
) = E_Subprogram_Type
);
5777 if Ekind
(Id
) = E_Enumeration_Literal
then
5781 Formal
:= First_Entity
(Id
);
5783 if Present
(Formal
) and then Is_Formal
(Formal
) then
5786 return Extra_Formals
(Id
); -- Empty if no extra formals
5789 end First_Formal_With_Extras
;
5791 -------------------------------
5792 -- First_Stored_Discriminant --
5793 -------------------------------
5795 function First_Stored_Discriminant
(Id
: E
) return E
is
5798 function Has_Completely_Hidden_Discriminant
(Id
: E
) return Boolean;
5799 -- Scans the Discriminants to see whether any are Completely_Hidden
5800 -- (the mechanism for describing non-specified stored discriminants)
5802 ----------------------------------------
5803 -- Has_Completely_Hidden_Discriminant --
5804 ----------------------------------------
5806 function Has_Completely_Hidden_Discriminant
(Id
: E
) return Boolean is
5807 Ent
: Entity_Id
:= Id
;
5810 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
5812 while Present
(Ent
) and then Ekind
(Ent
) = E_Discriminant
loop
5813 if Is_Completely_Hidden
(Ent
) then
5817 Ent
:= Next_Entity
(Ent
);
5821 end Has_Completely_Hidden_Discriminant
;
5823 -- Start of processing for First_Stored_Discriminant
5827 (Has_Discriminants
(Id
)
5828 or else Has_Unknown_Discriminants
(Id
));
5830 Ent
:= First_Entity
(Id
);
5832 if Chars
(Ent
) = Name_uTag
then
5833 Ent
:= Next_Entity
(Ent
);
5836 if Chars
(Ent
) = Name_uController
then
5837 Ent
:= Next_Entity
(Ent
);
5840 if Has_Completely_Hidden_Discriminant
(Ent
) then
5842 while Present
(Ent
) loop
5843 exit when Is_Completely_Hidden
(Ent
);
5844 Ent
:= Next_Entity
(Ent
);
5849 pragma Assert
(Ekind
(Ent
) = E_Discriminant
);
5852 end First_Stored_Discriminant
;
5858 function First_Subtype
(Id
: E
) return E
is
5859 B
: constant Entity_Id
:= Base_Type
(Id
);
5860 F
: constant Node_Id
:= Freeze_Node
(B
);
5864 -- If the base type has no freeze node, it is a type in standard,
5865 -- and always acts as its own first subtype unless it is one of
5866 -- the predefined integer types. If the type is formal, it is also
5867 -- a first subtype, and its base type has no freeze node. On the other
5868 -- hand, a subtype of a generic formal is not its own first_subtype.
5869 -- Its base type, if anonymous, is attached to the formal type decl.
5870 -- from which the first subtype is obtained.
5874 if B
= Base_Type
(Standard_Integer
) then
5875 return Standard_Integer
;
5877 elsif B
= Base_Type
(Standard_Long_Integer
) then
5878 return Standard_Long_Integer
;
5880 elsif B
= Base_Type
(Standard_Short_Short_Integer
) then
5881 return Standard_Short_Short_Integer
;
5883 elsif B
= Base_Type
(Standard_Short_Integer
) then
5884 return Standard_Short_Integer
;
5886 elsif B
= Base_Type
(Standard_Long_Long_Integer
) then
5887 return Standard_Long_Long_Integer
;
5889 elsif Is_Generic_Type
(Id
) then
5890 if Present
(Parent
(B
)) then
5891 return Defining_Identifier
(Parent
(B
));
5893 return Defining_Identifier
(Associated_Node_For_Itype
(B
));
5900 -- Otherwise we check the freeze node, if it has a First_Subtype_Link
5901 -- then we use that link, otherwise (happens with some Itypes), we use
5902 -- the base type itself.
5905 Ent
:= First_Subtype_Link
(F
);
5907 if Present
(Ent
) then
5915 -------------------------------------
5916 -- Get_Attribute_Definition_Clause --
5917 -------------------------------------
5919 function Get_Attribute_Definition_Clause
5921 Id
: Attribute_Id
) return Node_Id
5926 N
:= First_Rep_Item
(E
);
5927 while Present
(N
) loop
5928 if Nkind
(N
) = N_Attribute_Definition_Clause
5929 and then Get_Attribute_Id
(Chars
(N
)) = Id
5938 end Get_Attribute_Definition_Clause
;
5944 function Get_Full_View
(T
: Entity_Id
) return Entity_Id
is
5946 if Ekind
(T
) = E_Incomplete_Type
5947 and then Present
(Full_View
(T
))
5949 return Full_View
(T
);
5951 elsif Is_Class_Wide_Type
(T
)
5952 and then Ekind
(Root_Type
(T
)) = E_Incomplete_Type
5953 and then Present
(Full_View
(Root_Type
(T
)))
5955 return Class_Wide_Type
(Full_View
(Root_Type
(T
)));
5962 --------------------
5963 -- Get_Rep_Pragma --
5964 --------------------
5966 function Get_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Node_Id
is
5970 N
:= First_Rep_Item
(E
);
5971 while Present
(N
) loop
5972 if Nkind
(N
) = N_Pragma
and then Chars
(N
) = Nam
then
5982 ------------------------
5983 -- Has_Attach_Handler --
5984 ------------------------
5986 function Has_Attach_Handler
(Id
: E
) return B
is
5990 pragma Assert
(Is_Protected_Type
(Id
));
5992 Ritem
:= First_Rep_Item
(Id
);
5993 while Present
(Ritem
) loop
5994 if Nkind
(Ritem
) = N_Pragma
5995 and then Chars
(Ritem
) = Name_Attach_Handler
5999 Ritem
:= Next_Rep_Item
(Ritem
);
6004 end Has_Attach_Handler
;
6006 -------------------------------------
6007 -- Has_Attribute_Definition_Clause --
6008 -------------------------------------
6010 function Has_Attribute_Definition_Clause
6012 Id
: Attribute_Id
) return Boolean
6015 return Present
(Get_Attribute_Definition_Clause
(E
, Id
));
6016 end Has_Attribute_Definition_Clause
;
6022 function Has_Entries
(Id
: E
) return B
is
6023 Result
: Boolean := False;
6027 pragma Assert
(Is_Concurrent_Type
(Id
));
6029 Ent
:= First_Entity
(Id
);
6030 while Present
(Ent
) loop
6031 if Is_Entry
(Ent
) then
6036 Ent
:= Next_Entity
(Ent
);
6042 ----------------------------
6043 -- Has_Foreign_Convention --
6044 ----------------------------
6046 function Has_Foreign_Convention
(Id
: E
) return B
is
6048 return Convention
(Id
) in Foreign_Convention
;
6049 end Has_Foreign_Convention
;
6051 ---------------------------
6052 -- Has_Interrupt_Handler --
6053 ---------------------------
6055 function Has_Interrupt_Handler
(Id
: E
) return B
is
6059 pragma Assert
(Is_Protected_Type
(Id
));
6061 Ritem
:= First_Rep_Item
(Id
);
6062 while Present
(Ritem
) loop
6063 if Nkind
(Ritem
) = N_Pragma
6064 and then Chars
(Ritem
) = Name_Interrupt_Handler
6068 Ritem
:= Next_Rep_Item
(Ritem
);
6073 end Has_Interrupt_Handler
;
6075 --------------------------
6076 -- Has_Private_Ancestor --
6077 --------------------------
6079 function Has_Private_Ancestor
(Id
: E
) return B
is
6080 R
: constant Entity_Id
:= Root_Type
(Id
);
6081 T1
: Entity_Id
:= Id
;
6085 if Is_Private_Type
(T1
) then
6095 end Has_Private_Ancestor
;
6097 --------------------
6098 -- Has_Rep_Pragma --
6099 --------------------
6101 function Has_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Boolean is
6103 return Present
(Get_Rep_Pragma
(E
, Nam
));
6106 ------------------------------
6107 -- Implementation_Base_Type --
6108 ------------------------------
6110 function Implementation_Base_Type
(Id
: E
) return E
is
6115 Bastyp
:= Base_Type
(Id
);
6117 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
6118 Imptyp
:= Underlying_Type
(Bastyp
);
6120 -- If we have an implementation type, then just return it,
6121 -- otherwise we return the Base_Type anyway. This can only
6122 -- happen in error situations and should avoid some error bombs.
6124 if Present
(Imptyp
) then
6125 return Base_Type
(Imptyp
);
6133 end Implementation_Base_Type
;
6135 ---------------------
6136 -- Is_Boolean_Type --
6137 ---------------------
6139 function Is_Boolean_Type
(Id
: E
) return B
is
6141 return Root_Type
(Id
) = Standard_Boolean
;
6142 end Is_Boolean_Type
;
6144 ---------------------
6145 -- Is_By_Copy_Type --
6146 ---------------------
6148 function Is_By_Copy_Type
(Id
: E
) return B
is
6150 -- If Id is a private type whose full declaration has not been seen,
6151 -- we assume for now that it is not a By_Copy type. Clearly this
6152 -- attribute should not be used before the type is frozen, but it is
6153 -- needed to build the associated record of a protected type. Another
6154 -- place where some lookahead for a full view is needed ???
6157 Is_Elementary_Type
(Id
)
6158 or else (Is_Private_Type
(Id
)
6159 and then Present
(Underlying_Type
(Id
))
6160 and then Is_Elementary_Type
(Underlying_Type
(Id
)));
6161 end Is_By_Copy_Type
;
6163 --------------------------
6164 -- Is_By_Reference_Type --
6165 --------------------------
6167 -- This function knows too much semantics, it should be in sem_util ???
6169 function Is_By_Reference_Type
(Id
: E
) return B
is
6170 Btype
: constant Entity_Id
:= Base_Type
(Id
);
6173 if Error_Posted
(Id
)
6174 or else Error_Posted
(Btype
)
6178 elsif Is_Private_Type
(Btype
) then
6180 Utyp
: constant Entity_Id
:= Underlying_Type
(Btype
);
6185 return Is_By_Reference_Type
(Utyp
);
6189 elsif Is_Incomplete_Type
(Btype
) then
6191 Ftyp
: constant Entity_Id
:= Full_View
(Btype
);
6196 return Is_By_Reference_Type
(Ftyp
);
6200 elsif Is_Concurrent_Type
(Btype
) then
6203 elsif Is_Record_Type
(Btype
) then
6204 if Is_Limited_Record
(Btype
)
6205 or else Is_Tagged_Type
(Btype
)
6206 or else Is_Volatile
(Btype
)
6215 C
:= First_Component
(Btype
);
6216 while Present
(C
) loop
6217 if Is_By_Reference_Type
(Etype
(C
))
6218 or else Is_Volatile
(Etype
(C
))
6223 C
:= Next_Component
(C
);
6230 elsif Is_Array_Type
(Btype
) then
6233 or else Is_By_Reference_Type
(Component_Type
(Btype
))
6234 or else Is_Volatile
(Component_Type
(Btype
))
6235 or else Has_Volatile_Components
(Btype
);
6240 end Is_By_Reference_Type
;
6242 ---------------------
6243 -- Is_Derived_Type --
6244 ---------------------
6246 function Is_Derived_Type
(Id
: E
) return B
is
6251 and then Base_Type
(Id
) /= Root_Type
(Id
)
6252 and then not Is_Class_Wide_Type
(Id
)
6254 if not Is_Numeric_Type
(Root_Type
(Id
)) then
6258 Par
:= Parent
(First_Subtype
(Id
));
6260 return Present
(Par
)
6261 and then Nkind
(Par
) = N_Full_Type_Declaration
6262 and then Nkind
(Type_Definition
(Par
))
6263 = N_Derived_Type_Definition
;
6269 end Is_Derived_Type
;
6271 ----------------------
6272 -- Is_Dynamic_Scope --
6273 ----------------------
6275 function Is_Dynamic_Scope
(Id
: E
) return B
is
6278 Ekind
(Id
) = E_Block
6280 Ekind
(Id
) = E_Function
6282 Ekind
(Id
) = E_Procedure
6284 Ekind
(Id
) = E_Subprogram_Body
6286 Ekind
(Id
) = E_Task_Type
6288 Ekind
(Id
) = E_Entry
6290 Ekind
(Id
) = E_Entry_Family
6292 Ekind
(Id
) = E_Return_Statement
;
6293 end Is_Dynamic_Scope
;
6295 --------------------
6296 -- Is_Entity_Name --
6297 --------------------
6299 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
6300 Kind
: constant Node_Kind
:= Nkind
(N
);
6303 -- Identifiers, operator symbols, expanded names are entity names
6305 return Kind
= N_Identifier
6306 or else Kind
= N_Operator_Symbol
6307 or else Kind
= N_Expanded_Name
6309 -- Attribute references are entity names if they refer to an entity.
6310 -- Note that we don't do this by testing for the presence of the
6311 -- Entity field in the N_Attribute_Reference node, since it may not
6312 -- have been set yet.
6314 or else (Kind
= N_Attribute_Reference
6315 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
6318 ---------------------------
6319 -- Is_Indefinite_Subtype --
6320 ---------------------------
6322 function Is_Indefinite_Subtype
(Id
: Entity_Id
) return B
is
6323 K
: constant Entity_Kind
:= Ekind
(Id
);
6326 if Is_Constrained
(Id
) then
6329 elsif K
in Array_Kind
6330 or else K
in Class_Wide_Kind
6331 or else Has_Unknown_Discriminants
(Id
)
6335 -- Known discriminants: indefinite if there are no default values
6337 elsif K
in Record_Kind
6338 or else Is_Incomplete_Or_Private_Type
(Id
)
6339 or else Is_Concurrent_Type
(Id
)
6341 return (Has_Discriminants
(Id
)
6342 and then No
(Discriminant_Default_Value
(First_Discriminant
(Id
))));
6347 end Is_Indefinite_Subtype
;
6349 ---------------------
6350 -- Is_Limited_Type --
6351 ---------------------
6353 function Is_Limited_Type
(Id
: E
) return B
is
6354 Btype
: constant E
:= Base_Type
(Id
);
6355 Rtype
: constant E
:= Root_Type
(Btype
);
6358 if not Is_Type
(Id
) then
6361 elsif Ekind
(Btype
) = E_Limited_Private_Type
6362 or else Is_Limited_Composite
(Btype
)
6366 elsif Is_Concurrent_Type
(Btype
) then
6369 -- The Is_Limited_Record flag normally indicates that the type is
6370 -- limited. The exception is that a type does not inherit limitedness
6371 -- from its interface ancestor. So the type may be derived from a
6372 -- limited interface, but is not limited.
6374 elsif Is_Limited_Record
(Id
)
6375 and then not Is_Interface
(Id
)
6379 -- Otherwise we will look around to see if there is some other reason
6380 -- for it to be limited, except that if an error was posted on the
6381 -- entity, then just assume it is non-limited, because it can cause
6382 -- trouble to recurse into a murky erroneous entity!
6384 elsif Error_Posted
(Id
) then
6387 elsif Is_Record_Type
(Btype
) then
6389 if Is_Limited_Interface
(Id
) then
6392 -- AI-419: limitedness is not inherited from a limited interface
6394 elsif Is_Limited_Record
(Rtype
) then
6395 return not Is_Interface
(Rtype
)
6396 or else Is_Protected_Interface
(Rtype
)
6397 or else Is_Synchronized_Interface
(Rtype
)
6398 or else Is_Task_Interface
(Rtype
);
6400 elsif Is_Class_Wide_Type
(Btype
) then
6401 return Is_Limited_Type
(Rtype
);
6408 C
:= First_Component
(Btype
);
6409 while Present
(C
) loop
6410 if Is_Limited_Type
(Etype
(C
)) then
6414 C
:= Next_Component
(C
);
6421 elsif Is_Array_Type
(Btype
) then
6422 return Is_Limited_Type
(Component_Type
(Btype
));
6427 end Is_Limited_Type
;
6429 -----------------------------------
6430 -- Is_Package_Or_Generic_Package --
6431 -----------------------------------
6433 function Is_Package_Or_Generic_Package
(Id
: E
) return B
is
6436 Ekind
(Id
) = E_Package
6438 Ekind
(Id
) = E_Generic_Package
;
6439 end Is_Package_Or_Generic_Package
;
6441 --------------------------
6442 -- Is_Protected_Private --
6443 --------------------------
6445 function Is_Protected_Private
(Id
: E
) return B
is
6447 pragma Assert
(Ekind
(Id
) = E_Component
);
6448 return Is_Protected_Type
(Scope
(Id
));
6449 end Is_Protected_Private
;
6451 ------------------------------
6452 -- Is_Protected_Record_Type --
6453 ------------------------------
6455 function Is_Protected_Record_Type
(Id
: E
) return B
is
6458 Is_Concurrent_Record_Type
(Id
)
6459 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
6460 end Is_Protected_Record_Type
;
6462 --------------------------------
6463 -- Is_Inherently_Limited_Type --
6464 --------------------------------
6466 function Is_Inherently_Limited_Type
(Id
: E
) return B
is
6467 Btype
: constant Entity_Id
:= Base_Type
(Id
);
6470 if Is_Private_Type
(Btype
) then
6472 Utyp
: constant Entity_Id
:= Underlying_Type
(Btype
);
6477 return Is_Inherently_Limited_Type
(Utyp
);
6481 elsif Is_Concurrent_Type
(Btype
) then
6484 elsif Is_Record_Type
(Btype
) then
6485 if Is_Limited_Record
(Btype
) then
6486 return not Is_Interface
(Btype
)
6487 or else Is_Protected_Interface
(Btype
)
6488 or else Is_Synchronized_Interface
(Btype
)
6489 or else Is_Task_Interface
(Btype
);
6491 elsif Is_Class_Wide_Type
(Btype
) then
6492 return Is_Inherently_Limited_Type
(Root_Type
(Btype
));
6499 C
:= First_Component
(Btype
);
6500 while Present
(C
) loop
6501 if Is_Inherently_Limited_Type
(Etype
(C
)) then
6505 C
:= Next_Component
(C
);
6512 elsif Is_Array_Type
(Btype
) then
6513 return Is_Inherently_Limited_Type
(Component_Type
(Btype
));
6518 end Is_Inherently_Limited_Type
;
6520 --------------------
6521 -- Is_String_Type --
6522 --------------------
6524 function Is_String_Type
(Id
: E
) return B
is
6526 return Ekind
(Id
) in String_Kind
6527 or else (Is_Array_Type
(Id
)
6528 and then Number_Dimensions
(Id
) = 1
6529 and then Is_Character_Type
(Component_Type
(Id
)));
6532 -------------------------
6533 -- Is_Task_Record_Type --
6534 -------------------------
6536 function Is_Task_Record_Type
(Id
: E
) return B
is
6539 Is_Concurrent_Record_Type
(Id
)
6540 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
6541 end Is_Task_Record_Type
;
6543 ------------------------
6544 -- Is_Wrapper_Package --
6545 ------------------------
6547 function Is_Wrapper_Package
(Id
: E
) return B
is
6549 return (Ekind
(Id
) = E_Package
6550 and then Present
(Related_Instance
(Id
)));
6551 end Is_Wrapper_Package
;
6553 --------------------
6554 -- Next_Component --
6555 --------------------
6557 function Next_Component
(Id
: E
) return E
is
6561 Comp_Id
:= Next_Entity
(Id
);
6562 while Present
(Comp_Id
) loop
6563 exit when Ekind
(Comp_Id
) = E_Component
;
6564 Comp_Id
:= Next_Entity
(Comp_Id
);
6570 ------------------------------------
6571 -- Next_Component_Or_Discriminant --
6572 ------------------------------------
6574 function Next_Component_Or_Discriminant
(Id
: E
) return E
is
6578 Comp_Id
:= Next_Entity
(Id
);
6579 while Present
(Comp_Id
) loop
6580 exit when Ekind
(Comp_Id
) = E_Component
6582 Ekind
(Comp_Id
) = E_Discriminant
;
6583 Comp_Id
:= Next_Entity
(Comp_Id
);
6587 end Next_Component_Or_Discriminant
;
6589 -----------------------
6590 -- Next_Discriminant --
6591 -----------------------
6593 -- This function actually implements both Next_Discriminant and
6594 -- Next_Stored_Discriminant by making sure that the Discriminant
6595 -- returned is of the same variety as Id.
6597 function Next_Discriminant
(Id
: E
) return E
is
6599 -- Derived Tagged types with private extensions look like this...
6601 -- E_Discriminant d1
6602 -- E_Discriminant d2
6604 -- E_Discriminant d1
6605 -- E_Discriminant d2
6608 -- so it is critical not to go past the leading discriminants
6613 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
6616 D
:= Next_Entity
(D
);
6618 or else (Ekind
(D
) /= E_Discriminant
6619 and then not Is_Itype
(D
))
6624 exit when Ekind
(D
) = E_Discriminant
6625 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
6629 end Next_Discriminant
;
6635 function Next_Formal
(Id
: E
) return E
is
6639 -- Follow the chain of declared entities as long as the kind of the
6640 -- entity corresponds to a formal parameter. Skip internal entities
6641 -- that may have been created for implicit subtypes, in the process
6642 -- of analyzing default expressions.
6647 P
:= Next_Entity
(P
);
6649 if No
(P
) or else Is_Formal
(P
) then
6651 elsif not Is_Internal
(P
) then
6657 -----------------------------
6658 -- Next_Formal_With_Extras --
6659 -----------------------------
6661 function Next_Formal_With_Extras
(Id
: E
) return E
is
6663 if Present
(Extra_Formal
(Id
)) then
6664 return Extra_Formal
(Id
);
6666 return Next_Formal
(Id
);
6668 end Next_Formal_With_Extras
;
6674 function Next_Index
(Id
: Node_Id
) return Node_Id
is
6683 function Next_Literal
(Id
: E
) return E
is
6685 pragma Assert
(Nkind
(Id
) in N_Entity
);
6689 ------------------------------
6690 -- Next_Stored_Discriminant --
6691 ------------------------------
6693 function Next_Stored_Discriminant
(Id
: E
) return E
is
6695 -- See comment in Next_Discriminant
6697 return Next_Discriminant
(Id
);
6698 end Next_Stored_Discriminant
;
6700 -----------------------
6701 -- Number_Dimensions --
6702 -----------------------
6704 function Number_Dimensions
(Id
: E
) return Pos
is
6709 if Ekind
(Id
) in String_Kind
then
6714 T
:= First_Index
(Id
);
6715 while Present
(T
) loop
6722 end Number_Dimensions
;
6724 --------------------------
6725 -- Number_Discriminants --
6726 --------------------------
6728 function Number_Discriminants
(Id
: E
) return Pos
is
6734 Discr
:= First_Discriminant
(Id
);
6735 while Present
(Discr
) loop
6737 Discr
:= Next_Discriminant
(Discr
);
6741 end Number_Discriminants
;
6743 --------------------
6744 -- Number_Entries --
6745 --------------------
6747 function Number_Entries
(Id
: E
) return Nat
is
6752 pragma Assert
(Is_Concurrent_Type
(Id
));
6755 Ent
:= First_Entity
(Id
);
6756 while Present
(Ent
) loop
6757 if Is_Entry
(Ent
) then
6761 Ent
:= Next_Entity
(Ent
);
6767 --------------------
6768 -- Number_Formals --
6769 --------------------
6771 function Number_Formals
(Id
: E
) return Pos
is
6777 Formal
:= First_Formal
(Id
);
6778 while Present
(Formal
) loop
6780 Formal
:= Next_Formal
(Formal
);
6786 --------------------
6787 -- Parameter_Mode --
6788 --------------------
6790 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
6795 ---------------------
6796 -- Record_Rep_Item --
6797 ---------------------
6799 procedure Record_Rep_Item
(E
: Entity_Id
; N
: Node_Id
) is
6801 Set_Next_Rep_Item
(N
, First_Rep_Item
(E
));
6802 Set_First_Rep_Item
(E
, N
);
6803 end Record_Rep_Item
;
6809 function Root_Type
(Id
: E
) return E
is
6813 pragma Assert
(Nkind
(Id
) in N_Entity
);
6815 T
:= Base_Type
(Id
);
6817 if Ekind
(T
) = E_Class_Wide_Type
then
6820 elsif Ekind
(T
) = E_Class_Wide_Subtype
then
6821 return Etype
(Base_Type
(T
));
6823 -- ??? T comes from Base_Type, how can it be a subtype?
6824 -- Also Base_Type is supposed to be idempotent, so either way
6825 -- this is equivalent to "return Etype (T)" and should be merged
6826 -- with the E_Class_Wide_Type case.
6837 -- Following test catches some error cases resulting from
6840 elsif No
(Etyp
) then
6843 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
6846 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
6852 -- Return if there is a circularity in the inheritance chain.
6853 -- This happens in some error situations and we do not want
6854 -- to get stuck in this loop.
6856 if T
= Base_Type
(Id
) then
6862 raise Program_Error
;
6869 function Scope_Depth
(Id
: E
) return Uint
is
6874 while Is_Record_Type
(Scop
) loop
6875 Scop
:= Scope
(Scop
);
6878 return Scope_Depth_Value
(Scop
);
6881 ---------------------
6882 -- Scope_Depth_Set --
6883 ---------------------
6885 function Scope_Depth_Set
(Id
: E
) return B
is
6887 return not Is_Record_Type
(Id
)
6888 and then Field22
(Id
) /= Union_Id
(Empty
);
6889 end Scope_Depth_Set
;
6891 -----------------------------
6892 -- Set_Component_Alignment --
6893 -----------------------------
6895 -- Component Alignment is encoded using two flags, Flag128/129 as
6896 -- follows. Note that both flags False = Align_Default, so that the
6897 -- default initialization of flags to False initializes component
6898 -- alignment to the default value as required.
6900 -- Flag128 Flag129 Value
6901 -- ------- ------- -----
6902 -- False False Calign_Default
6903 -- False True Calign_Component_Size
6904 -- True False Calign_Component_Size_4
6905 -- True True Calign_Storage_Unit
6907 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
6909 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
6910 and then Id
= Base_Type
(Id
));
6913 when Calign_Default
=>
6914 Set_Flag128
(Id
, False);
6915 Set_Flag129
(Id
, False);
6917 when Calign_Component_Size
=>
6918 Set_Flag128
(Id
, False);
6919 Set_Flag129
(Id
, True);
6921 when Calign_Component_Size_4
=>
6922 Set_Flag128
(Id
, True);
6923 Set_Flag129
(Id
, False);
6925 when Calign_Storage_Unit
=>
6926 Set_Flag128
(Id
, True);
6927 Set_Flag129
(Id
, True);
6929 end Set_Component_Alignment
;
6935 function Size_Clause
(Id
: E
) return N
is
6937 return Rep_Clause
(Id
, Name_Size
);
6940 ------------------------
6941 -- Stream_Size_Clause --
6942 ------------------------
6944 function Stream_Size_Clause
(Id
: E
) return N
is
6946 return Rep_Clause
(Id
, Name_Stream_Size
);
6947 end Stream_Size_Clause
;
6953 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
6959 Kind
:= E_Access_Subtype
;
6963 Kind
:= E_Array_Subtype
;
6965 when E_Class_Wide_Type |
6966 E_Class_Wide_Subtype
=>
6967 Kind
:= E_Class_Wide_Subtype
;
6969 when E_Decimal_Fixed_Point_Type |
6970 E_Decimal_Fixed_Point_Subtype
=>
6971 Kind
:= E_Decimal_Fixed_Point_Subtype
;
6973 when E_Ordinary_Fixed_Point_Type |
6974 E_Ordinary_Fixed_Point_Subtype
=>
6975 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
6977 when E_Private_Type |
6978 E_Private_Subtype
=>
6979 Kind
:= E_Private_Subtype
;
6981 when E_Limited_Private_Type |
6982 E_Limited_Private_Subtype
=>
6983 Kind
:= E_Limited_Private_Subtype
;
6985 when E_Record_Type_With_Private |
6986 E_Record_Subtype_With_Private
=>
6987 Kind
:= E_Record_Subtype_With_Private
;
6989 when E_Record_Type |
6991 Kind
:= E_Record_Subtype
;
6993 when E_String_Type |
6995 Kind
:= E_String_Subtype
;
6997 when Enumeration_Kind
=>
6998 Kind
:= E_Enumeration_Subtype
;
7001 Kind
:= E_Floating_Point_Subtype
;
7003 when Signed_Integer_Kind
=>
7004 Kind
:= E_Signed_Integer_Subtype
;
7006 when Modular_Integer_Kind
=>
7007 Kind
:= E_Modular_Integer_Subtype
;
7009 when Protected_Kind
=>
7010 Kind
:= E_Protected_Subtype
;
7013 Kind
:= E_Task_Subtype
;
7017 raise Program_Error
;
7023 -------------------------
7024 -- First_Tag_Component --
7025 -------------------------
7027 function First_Tag_Component
(Id
: E
) return E
is
7029 Typ
: Entity_Id
:= Id
;
7032 pragma Assert
(Is_Tagged_Type
(Typ
));
7034 if Is_Class_Wide_Type
(Typ
) then
7035 Typ
:= Root_Type
(Typ
);
7038 if Is_Private_Type
(Typ
) then
7039 Typ
:= Underlying_Type
(Typ
);
7041 -- If the underlying type is missing then the source program has
7042 -- errors and there is nothing else to do (the full-type declaration
7043 -- associated with the private type declaration is missing).
7050 Comp
:= First_Entity
(Typ
);
7051 while Present
(Comp
) loop
7052 if Is_Tag
(Comp
) then
7056 Comp
:= Next_Entity
(Comp
);
7059 -- No tag component found
7062 end First_Tag_Component
;
7064 ------------------------
7065 -- Next_Tag_Component --
7066 ------------------------
7068 function Next_Tag_Component
(Id
: E
) return E
is
7070 Typ
: constant Entity_Id
:= Scope
(Id
);
7073 pragma Assert
(Ekind
(Id
) = E_Component
7074 and then Is_Tagged_Type
(Typ
));
7076 Comp
:= Next_Entity
(Id
);
7077 while Present
(Comp
) loop
7078 if Is_Tag
(Comp
) then
7079 pragma Assert
(Chars
(Comp
) /= Name_uTag
);
7083 Comp
:= Next_Entity
(Comp
);
7086 -- No tag component found
7089 end Next_Tag_Component
;
7091 ---------------------
7092 -- Type_High_Bound --
7093 ---------------------
7095 function Type_High_Bound
(Id
: E
) return Node_Id
is
7096 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
7098 if Nkind
(Rng
) = N_Subtype_Indication
then
7099 return High_Bound
(Range_Expression
(Constraint
(Rng
)));
7101 return High_Bound
(Rng
);
7103 end Type_High_Bound
;
7105 --------------------
7106 -- Type_Low_Bound --
7107 --------------------
7109 function Type_Low_Bound
(Id
: E
) return Node_Id
is
7110 Rng
: constant Node_Id
:= Scalar_Range
(Id
);
7112 if Nkind
(Rng
) = N_Subtype_Indication
then
7113 return Low_Bound
(Range_Expression
(Constraint
(Rng
)));
7115 return Low_Bound
(Rng
);
7119 ---------------------
7120 -- Underlying_Type --
7121 ---------------------
7123 function Underlying_Type
(Id
: E
) return E
is
7125 -- For record_with_private the underlying type is always the direct
7126 -- full view. Never try to take the full view of the parent it
7127 -- doesn't make sense.
7129 if Ekind
(Id
) = E_Record_Type_With_Private
then
7130 return Full_View
(Id
);
7132 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
7134 -- If we have an incomplete or private type with a full view,
7135 -- then we return the Underlying_Type of this full view
7137 if Present
(Full_View
(Id
)) then
7138 if Id
= Full_View
(Id
) then
7140 -- Previous error in declaration
7145 return Underlying_Type
(Full_View
(Id
));
7148 -- If we have an incomplete entity that comes from the limited
7149 -- view then we return the Underlying_Type of its non-limited
7152 elsif From_With_Type
(Id
)
7153 and then Present
(Non_Limited_View
(Id
))
7155 return Underlying_Type
(Non_Limited_View
(Id
));
7157 -- Otherwise check for the case where we have a derived type or
7158 -- subtype, and if so get the Underlying_Type of the parent type.
7160 elsif Etype
(Id
) /= Id
then
7161 return Underlying_Type
(Etype
(Id
));
7163 -- Otherwise we have an incomplete or private type that has
7164 -- no full view, which means that we have not encountered the
7165 -- completion, so return Empty to indicate the underlying type
7166 -- is not yet known.
7172 -- For non-incomplete, non-private types, return the type itself
7173 -- Also for entities that are not types at all return the entity
7179 end Underlying_Type
;
7181 ------------------------
7182 -- Write_Entity_Flags --
7183 ------------------------
7185 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
7187 procedure W
(Flag_Name
: String; Flag
: Boolean);
7188 -- Write out given flag if it is set
7194 procedure W
(Flag_Name
: String; Flag
: Boolean) is
7198 Write_Str
(Flag_Name
);
7199 Write_Str
(" = True");
7204 -- Start of processing for Write_Entity_Flags
7207 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
7208 and then Base_Type
(Id
) = Id
7211 Write_Str
("Component_Alignment = ");
7213 case Component_Alignment
(Id
) is
7214 when Calign_Default
=>
7215 Write_Str
("Calign_Default");
7217 when Calign_Component_Size
=>
7218 Write_Str
("Calign_Component_Size");
7220 when Calign_Component_Size_4
=>
7221 Write_Str
("Calign_Component_Size_4");
7223 when Calign_Storage_Unit
=>
7224 Write_Str
("Calign_Storage_Unit");
7230 W
("Address_Taken", Flag104
(Id
));
7231 W
("Body_Needed_For_SAL", Flag40
(Id
));
7232 W
("C_Pass_By_Copy", Flag125
(Id
));
7233 W
("Can_Never_Be_Null", Flag38
(Id
));
7234 W
("Checks_May_Be_Suppressed", Flag31
(Id
));
7235 W
("Debug_Info_Off", Flag166
(Id
));
7236 W
("Default_Expressions_Processed", Flag108
(Id
));
7237 W
("Delay_Cleanups", Flag114
(Id
));
7238 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
7239 W
("Depends_On_Private", Flag14
(Id
));
7240 W
("Discard_Names", Flag88
(Id
));
7241 W
("Elaboration_Entity_Required", Flag174
(Id
));
7242 W
("Elaborate_Body_Desirable", Flag210
(Id
));
7243 W
("Entry_Accepted", Flag152
(Id
));
7244 W
("Can_Use_Internal_Rep", Flag229
(Id
));
7245 W
("Finalize_Storage_Only", Flag158
(Id
));
7246 W
("From_With_Type", Flag159
(Id
));
7247 W
("Function_Returns_With_DSP", Flag169
(Id
));
7248 W
("Has_Aliased_Components", Flag135
(Id
));
7249 W
("Has_Alignment_Clause", Flag46
(Id
));
7250 W
("Has_All_Calls_Remote", Flag79
(Id
));
7251 W
("Has_Anon_Block_Suffix", Flag201
(Id
));
7252 W
("Has_Atomic_Components", Flag86
(Id
));
7253 W
("Has_Biased_Representation", Flag139
(Id
));
7254 W
("Has_Completion", Flag26
(Id
));
7255 W
("Has_Completion_In_Body", Flag71
(Id
));
7256 W
("Has_Complex_Representation", Flag140
(Id
));
7257 W
("Has_Component_Size_Clause", Flag68
(Id
));
7258 W
("Has_Contiguous_Rep", Flag181
(Id
));
7259 W
("Has_Controlled_Component", Flag43
(Id
));
7260 W
("Has_Controlling_Result", Flag98
(Id
));
7261 W
("Has_Convention_Pragma", Flag119
(Id
));
7262 W
("Has_Delayed_Freeze", Flag18
(Id
));
7263 W
("Has_Discriminants", Flag5
(Id
));
7264 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
7265 W
("Has_Exit", Flag47
(Id
));
7266 W
("Has_External_Tag_Rep_Clause", Flag110
(Id
));
7267 W
("Has_Forward_Instantiation", Flag175
(Id
));
7268 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
7269 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
7270 W
("Has_Homonym", Flag56
(Id
));
7271 W
("Has_Initial_Value", Flag219
(Id
));
7272 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
7273 W
("Has_Master_Entity", Flag21
(Id
));
7274 W
("Has_Missing_Return", Flag142
(Id
));
7275 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
7276 W
("Has_Non_Standard_Rep", Flag75
(Id
));
7277 W
("Has_Object_Size_Clause", Flag172
(Id
));
7278 W
("Has_Per_Object_Constraint", Flag154
(Id
));
7279 W
("Has_Persistent_BSS", Flag188
(Id
));
7280 W
("Has_Pragma_Controlled", Flag27
(Id
));
7281 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
7282 W
("Has_Pragma_Inline", Flag157
(Id
));
7283 W
("Has_Pragma_Inline_Always", Flag230
(Id
));
7284 W
("Has_Pragma_Pack", Flag121
(Id
));
7285 W
("Has_Pragma_Preelab_Init", Flag221
(Id
));
7286 W
("Has_Pragma_Pure", Flag203
(Id
));
7287 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
7288 W
("Has_Pragma_Unmodified", Flag233
(Id
));
7289 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
7290 W
("Has_Pragma_Unreferenced_Objects", Flag212
(Id
));
7291 W
("Has_Primitive_Operations", Flag120
(Id
));
7292 W
("Has_Private_Declaration", Flag155
(Id
));
7293 W
("Has_Qualified_Name", Flag161
(Id
));
7294 W
("Has_RACW", Flag214
(Id
));
7295 W
("Has_Record_Rep_Clause", Flag65
(Id
));
7296 W
("Has_Recursive_Call", Flag143
(Id
));
7297 W
("Has_Size_Clause", Flag29
(Id
));
7298 W
("Has_Small_Clause", Flag67
(Id
));
7299 W
("Has_Specified_Layout", Flag100
(Id
));
7300 W
("Has_Specified_Stream_Input", Flag190
(Id
));
7301 W
("Has_Specified_Stream_Output", Flag191
(Id
));
7302 W
("Has_Specified_Stream_Read", Flag192
(Id
));
7303 W
("Has_Specified_Stream_Write", Flag193
(Id
));
7304 W
("Has_Static_Discriminants", Flag211
(Id
));
7305 W
("Has_Storage_Size_Clause", Flag23
(Id
));
7306 W
("Has_Stream_Size_Clause", Flag184
(Id
));
7307 W
("Has_Subprogram_Descriptor", Flag93
(Id
));
7308 W
("Has_Task", Flag30
(Id
));
7309 W
("Has_Thunks", Flag228
(Id
));
7310 W
("Has_Unchecked_Union", Flag123
(Id
));
7311 W
("Has_Unknown_Discriminants", Flag72
(Id
));
7312 W
("Has_Up_Level_Access", Flag215
(Id
));
7313 W
("Has_Volatile_Components", Flag87
(Id
));
7314 W
("Has_Xref_Entry", Flag182
(Id
));
7315 W
("Implemented_By_Entry", Flag232
(Id
));
7316 W
("In_Package_Body", Flag48
(Id
));
7317 W
("In_Private_Part", Flag45
(Id
));
7318 W
("In_Use", Flag8
(Id
));
7319 W
("Is_AST_Entry", Flag132
(Id
));
7320 W
("Is_Abstract_Subprogram", Flag19
(Id
));
7321 W
("Is_Abstract_Type", Flag146
(Id
));
7322 W
("Is_Local_Anonymous_Access", Flag194
(Id
));
7323 W
("Is_Access_Constant", Flag69
(Id
));
7324 W
("Is_Ada_2005_Only", Flag185
(Id
));
7325 W
("Is_Aliased", Flag15
(Id
));
7326 W
("Is_Asynchronous", Flag81
(Id
));
7327 W
("Is_Atomic", Flag85
(Id
));
7328 W
("Is_Bit_Packed_Array", Flag122
(Id
));
7329 W
("Is_CPP_Class", Flag74
(Id
));
7330 W
("Is_Called", Flag102
(Id
));
7331 W
("Is_Character_Type", Flag63
(Id
));
7332 W
("Is_Child_Unit", Flag73
(Id
));
7333 W
("Is_Class_Wide_Equivalent_Type", Flag35
(Id
));
7334 W
("Is_Compilation_Unit", Flag149
(Id
));
7335 W
("Is_Completely_Hidden", Flag103
(Id
));
7336 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
7337 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
7338 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
7339 W
("Is_Constrained", Flag12
(Id
));
7340 W
("Is_Constructor", Flag76
(Id
));
7341 W
("Is_Controlled", Flag42
(Id
));
7342 W
("Is_Controlling_Formal", Flag97
(Id
));
7343 W
("Is_Descendent_Of_Address", Flag223
(Id
));
7344 W
("Is_Discrim_SO_Function", Flag176
(Id
));
7345 W
("Is_Dispatching_Operation", Flag6
(Id
));
7346 W
("Is_Eliminated", Flag124
(Id
));
7347 W
("Is_Entry_Formal", Flag52
(Id
));
7348 W
("Is_Exported", Flag99
(Id
));
7349 W
("Is_First_Subtype", Flag70
(Id
));
7350 W
("Is_For_Access_Subtype", Flag118
(Id
));
7351 W
("Is_Formal_Subprogram", Flag111
(Id
));
7352 W
("Is_Frozen", Flag4
(Id
));
7353 W
("Is_Generic_Actual_Type", Flag94
(Id
));
7354 W
("Is_Generic_Instance", Flag130
(Id
));
7355 W
("Is_Generic_Type", Flag13
(Id
));
7356 W
("Is_Hidden", Flag57
(Id
));
7357 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
7358 W
("Is_Immediately_Visible", Flag7
(Id
));
7359 W
("Is_Imported", Flag24
(Id
));
7360 W
("Is_Inlined", Flag11
(Id
));
7361 W
("Is_Instantiated", Flag126
(Id
));
7362 W
("Is_Interface", Flag186
(Id
));
7363 W
("Is_Internal", Flag17
(Id
));
7364 W
("Is_Interrupt_Handler", Flag89
(Id
));
7365 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
7366 W
("Is_Itype", Flag91
(Id
));
7367 W
("Is_Known_Non_Null", Flag37
(Id
));
7368 W
("Is_Known_Null", Flag204
(Id
));
7369 W
("Is_Known_Valid", Flag170
(Id
));
7370 W
("Is_Limited_Composite", Flag106
(Id
));
7371 W
("Is_Limited_Interface", Flag197
(Id
));
7372 W
("Is_Limited_Record", Flag25
(Id
));
7373 W
("Is_Machine_Code_Subprogram", Flag137
(Id
));
7374 W
("Is_Non_Static_Subtype", Flag109
(Id
));
7375 W
("Is_Null_Init_Proc", Flag178
(Id
));
7376 W
("Is_Obsolescent", Flag153
(Id
));
7377 W
("Is_Only_Out_Parameter", Flag226
(Id
));
7378 W
("Is_Optional_Parameter", Flag134
(Id
));
7379 W
("Is_Overriding_Operation", Flag39
(Id
));
7380 W
("Is_Package_Body_Entity", Flag160
(Id
));
7381 W
("Is_Packed", Flag51
(Id
));
7382 W
("Is_Packed_Array_Type", Flag138
(Id
));
7383 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
7384 W
("Is_Preelaborated", Flag59
(Id
));
7385 W
("Is_Primitive_Wrapper", Flag195
(Id
));
7386 W
("Is_Private_Composite", Flag107
(Id
));
7387 W
("Is_Private_Descendant", Flag53
(Id
));
7388 W
("Is_Protected_Interface", Flag198
(Id
));
7389 W
("Is_Public", Flag10
(Id
));
7390 W
("Is_Pure", Flag44
(Id
));
7391 W
("Is_Pure_Unit_Access_Type", Flag189
(Id
));
7392 W
("Is_Raised", Flag224
(Id
));
7393 W
("Is_Remote_Call_Interface", Flag62
(Id
));
7394 W
("Is_Remote_Types", Flag61
(Id
));
7395 W
("Is_Renaming_Of_Object", Flag112
(Id
));
7396 W
("Is_Return_Object", Flag209
(Id
));
7397 W
("Is_Shared_Passive", Flag60
(Id
));
7398 W
("Is_Synchronized_Interface", Flag199
(Id
));
7399 W
("Is_Statically_Allocated", Flag28
(Id
));
7400 W
("Is_Tag", Flag78
(Id
));
7401 W
("Is_Tagged_Type", Flag55
(Id
));
7402 W
("Is_Task_Interface", Flag200
(Id
));
7403 W
("Is_Thunk", Flag225
(Id
));
7404 W
("Is_True_Constant", Flag163
(Id
));
7405 W
("Is_Unchecked_Union", Flag117
(Id
));
7406 W
("Is_Unsigned_Type", Flag144
(Id
));
7407 W
("Is_VMS_Exception", Flag133
(Id
));
7408 W
("Is_Valued_Procedure", Flag127
(Id
));
7409 W
("Is_Visible_Child_Unit", Flag116
(Id
));
7410 W
("Is_Visible_Formal", Flag206
(Id
));
7411 W
("Is_Volatile", Flag16
(Id
));
7412 W
("Itype_Printed", Flag202
(Id
));
7413 W
("Kill_Elaboration_Checks", Flag32
(Id
));
7414 W
("Kill_Range_Checks", Flag33
(Id
));
7415 W
("Kill_Tag_Checks", Flag34
(Id
));
7416 W
("Known_To_Have_Preelab_Init", Flag207
(Id
));
7417 W
("Low_Bound_Known", Flag205
(Id
));
7418 W
("Machine_Radix_10", Flag84
(Id
));
7419 W
("Materialize_Entity", Flag168
(Id
));
7420 W
("Must_Be_On_Byte_Boundary", Flag183
(Id
));
7421 W
("Must_Have_Preelab_Init", Flag208
(Id
));
7422 W
("Needs_Debug_Info", Flag147
(Id
));
7423 W
("Needs_No_Actuals", Flag22
(Id
));
7424 W
("Never_Set_In_Source", Flag115
(Id
));
7425 W
("No_Pool_Assigned", Flag131
(Id
));
7426 W
("No_Return", Flag113
(Id
));
7427 W
("No_Strict_Aliasing", Flag136
(Id
));
7428 W
("Non_Binary_Modulus", Flag58
(Id
));
7429 W
("Nonzero_Is_True", Flag162
(Id
));
7430 W
("Reachable", Flag49
(Id
));
7431 W
("Referenced", Flag156
(Id
));
7432 W
("Referenced_As_LHS", Flag36
(Id
));
7433 W
("Referenced_As_Out_Parameter", Flag227
(Id
));
7434 W
("Renamed_In_Spec", Flag231
(Id
));
7435 W
("Requires_Overriding", Flag213
(Id
));
7436 W
("Return_Present", Flag54
(Id
));
7437 W
("Returns_By_Ref", Flag90
(Id
));
7438 W
("Reverse_Bit_Order", Flag164
(Id
));
7439 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
7440 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
7441 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
7442 W
("Static_Elaboration_Desired", Flag77
(Id
));
7443 W
("Strict_Alignment", Flag145
(Id
));
7444 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
7445 W
("Suppress_Init_Proc", Flag105
(Id
));
7446 W
("Suppress_Style_Checks", Flag165
(Id
));
7447 W
("Suppress_Value_Tracking_On_Call", Flag217
(Id
));
7448 W
("Is_Primitive", Flag218
(Id
));
7449 W
("Treat_As_Volatile", Flag41
(Id
));
7450 W
("Universal_Aliasing", Flag216
(Id
));
7451 W
("Used_As_Generic_Actual", Flag222
(Id
));
7452 W
("Uses_Sec_Stack", Flag95
(Id
));
7453 W
("Vax_Float", Flag151
(Id
));
7454 W
("Warnings_Off", Flag96
(Id
));
7455 W
("Was_Hidden", Flag196
(Id
));
7456 end Write_Entity_Flags
;
7458 -----------------------
7459 -- Write_Entity_Info --
7460 -----------------------
7462 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
7464 procedure Write_Attribute
(Which
: String; Nam
: E
);
7465 -- Write attribute value with given string name
7467 procedure Write_Kind
(Id
: Entity_Id
);
7468 -- Write Ekind field of entity
7470 ---------------------
7471 -- Write_Attribute --
7472 ---------------------
7474 procedure Write_Attribute
(Which
: String; Nam
: E
) is
7478 Write_Int
(Int
(Nam
));
7480 Write_Name
(Chars
(Nam
));
7482 end Write_Attribute
;
7488 procedure Write_Kind
(Id
: Entity_Id
) is
7489 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
7493 Write_Str
(" Kind ");
7495 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
7496 Write_Str
("TAGGED ");
7499 Write_Str
(K
(3 .. K
'Length));
7502 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
7503 Write_Str
("Depends_On_Private ");
7507 -- Start of processing for Write_Entity_Info
7511 Write_Attribute
("Name ", Id
);
7512 Write_Int
(Int
(Id
));
7516 Write_Attribute
(" Type ", Etype
(Id
));
7518 Write_Attribute
(" Scope ", Scope
(Id
));
7523 when Discrete_Kind
=>
7524 Write_Str
("Bounds: Id = ");
7526 if Present
(Scalar_Range
(Id
)) then
7527 Write_Int
(Int
(Type_Low_Bound
(Id
)));
7528 Write_Str
(" .. Id = ");
7529 Write_Int
(Int
(Type_High_Bound
(Id
)));
7531 Write_Str
("Empty");
7542 (" Component Type ", Component_Type
(Id
));
7545 Write_Str
(" Indices ");
7547 Index
:= First_Index
(Id
);
7548 while Present
(Index
) loop
7549 Write_Attribute
(" ", Etype
(Index
));
7550 Index
:= Next_Index
(Index
);
7558 (" Directly Designated Type ",
7559 Directly_Designated_Type
(Id
));
7562 when Overloadable_Kind
=>
7563 if Present
(Homonym
(Id
)) then
7564 Write_Str
(" Homonym ");
7565 Write_Name
(Chars
(Homonym
(Id
)));
7567 Write_Int
(Int
(Homonym
(Id
)));
7574 if Ekind
(Scope
(Id
)) in Record_Kind
then
7576 " Original_Record_Component ",
7577 Original_Record_Component
(Id
));
7578 Write_Int
(Int
(Original_Record_Component
(Id
)));
7582 when others => null;
7584 end Write_Entity_Info
;
7586 -----------------------
7587 -- Write_Field6_Name --
7588 -----------------------
7590 procedure Write_Field6_Name
(Id
: Entity_Id
) is
7591 pragma Warnings
(Off
, Id
);
7593 Write_Str
("First_Rep_Item");
7594 end Write_Field6_Name
;
7596 -----------------------
7597 -- Write_Field7_Name --
7598 -----------------------
7600 procedure Write_Field7_Name
(Id
: Entity_Id
) is
7601 pragma Warnings
(Off
, Id
);
7603 Write_Str
("Freeze_Node");
7604 end Write_Field7_Name
;
7606 -----------------------
7607 -- Write_Field8_Name --
7608 -----------------------
7610 procedure Write_Field8_Name
(Id
: Entity_Id
) is
7615 Write_Str
("Normalized_First_Bit");
7619 E_Subprogram_Body
=>
7620 Write_Str
("Mechanism");
7623 Write_Str
("Associated_Node_For_Itype");
7626 Write_Str
("Dependent_Instances");
7628 when E_Return_Statement
=>
7629 Write_Str
("Return_Applies_To");
7632 Write_Str
("Hiding_Loop_Variable");
7635 Write_Str
("Field8??");
7637 end Write_Field8_Name
;
7639 -----------------------
7640 -- Write_Field9_Name --
7641 -----------------------
7643 procedure Write_Field9_Name
(Id
: Entity_Id
) is
7647 Write_Str
("Class_Wide_Type");
7650 E_Generic_Function |
7652 E_Generic_Procedure |
7655 Write_Str
("Renaming_Map");
7658 Write_Str
("Current_Value");
7661 Write_Str
("Field9??");
7663 end Write_Field9_Name
;
7665 ------------------------
7666 -- Write_Field10_Name --
7667 ------------------------
7669 procedure Write_Field10_Name
(Id
: Entity_Id
) is
7673 Write_Str
("Referenced_Object");
7675 when E_In_Parameter |
7677 Write_Str
("Discriminal_Link");
7683 Write_Str
("Handler_Records");
7687 Write_Str
("Normalized_Position_Max");
7690 Write_Str
("Field10??");
7692 end Write_Field10_Name
;
7694 ------------------------
7695 -- Write_Field11_Name --
7696 ------------------------
7698 procedure Write_Field11_Name
(Id
: Entity_Id
) is
7702 Write_Str
("Entry_Component");
7706 Write_Str
("Component_Bit_Offset");
7709 Write_Str
("Full_View");
7711 when E_Enumeration_Literal
=>
7712 Write_Str
("Enumeration_Pos");
7715 Write_Str
("Block_Node");
7721 Write_Str
("Protected_Body_Subprogram");
7723 when E_Generic_Package
=>
7724 Write_Str
("Generic_Homonym");
7727 Write_Str
("Full_View");
7730 Write_Str
("Field11??");
7732 end Write_Field11_Name
;
7734 ------------------------
7735 -- Write_Field12_Name --
7736 ------------------------
7738 procedure Write_Field12_Name
(Id
: Entity_Id
) is
7742 Write_Str
("Barrier_Function");
7744 when E_Enumeration_Literal
=>
7745 Write_Str
("Enumeration_Rep");
7753 E_In_Out_Parameter |
7757 Write_Str
("Esize");
7761 Write_Str
("Next_Inlined_Subprogram");
7764 Write_Str
("Associated_Formal_Package");
7767 Write_Str
("Field12??");
7769 end Write_Field12_Name
;
7771 ------------------------
7772 -- Write_Field13_Name --
7773 ------------------------
7775 procedure Write_Field13_Name
(Id
: Entity_Id
) is
7779 Write_Str
("RM_Size");
7783 Write_Str
("Component_Clause");
7786 if not Comes_From_Source
(Id
)
7788 Chars
(Id
) = Name_Op_Ne
7790 Write_Str
("Corresponding_Equality");
7792 elsif Comes_From_Source
(Id
) then
7793 Write_Str
("Elaboration_Entity");
7796 Write_Str
("Field13??");
7801 Write_Str
("Extra_Accessibility");
7805 Generic_Unit_Kind
=>
7806 Write_Str
("Elaboration_Entity");
7809 Write_Str
("Field13??");
7811 end Write_Field13_Name
;
7813 -----------------------
7814 -- Write_Field14_Name --
7815 -----------------------
7817 procedure Write_Field14_Name
(Id
: Entity_Id
) is
7826 Write_Str
("Alignment");
7830 Write_Str
("Normalized_Position");
7834 Write_Str
("First_Optional_Parameter");
7837 E_Generic_Package
=>
7838 Write_Str
("Shadow_Entities");
7841 Write_Str
("Field14??");
7843 end Write_Field14_Name
;
7845 ------------------------
7846 -- Write_Field15_Name --
7847 ------------------------
7849 procedure Write_Field15_Name
(Id
: Entity_Id
) is
7854 Write_Str
("Storage_Size_Variable");
7856 when Class_Wide_Kind |
7860 Write_Str
("Primitive_Operations");
7863 Write_Str
("DT_Entry_Count");
7865 when Decimal_Fixed_Point_Kind
=>
7866 Write_Str
("Scale_Value");
7868 when E_Discriminant
=>
7869 Write_Str
("Discriminant_Number");
7872 Write_Str
("Extra_Formal");
7876 Write_Str
("DT_Position");
7879 Write_Str
("Entry_Parameters_Type");
7881 when Enumeration_Kind
=>
7882 Write_Str
("Lit_Indexes");
7886 Write_Str
("Related_Instance");
7888 when E_Protected_Type
=>
7889 Write_Str
("Entry_Bodies_Array");
7891 when E_String_Literal_Subtype
=>
7892 Write_Str
("String_Literal_Low_Bound");
7895 Write_Str
("Shared_Var_Read_Proc");
7898 Write_Str
("Field15??");
7900 end Write_Field15_Name
;
7902 ------------------------
7903 -- Write_Field16_Name --
7904 ------------------------
7906 procedure Write_Field16_Name
(Id
: Entity_Id
) is
7910 Write_Str
("Entry_Formal");
7914 Write_Str
("DTC_Entity");
7919 Write_Str
("First_Private_Entity");
7921 when E_Record_Type |
7922 E_Record_Type_With_Private
=>
7923 Write_Str
("Access_Disp_Table");
7925 when E_String_Literal_Subtype
=>
7926 Write_Str
("String_Literal_Length");
7928 when Enumeration_Kind
=>
7929 Write_Str
("Lit_Strings");
7933 Write_Str
("Unset_Reference");
7935 when E_Record_Subtype |
7936 E_Class_Wide_Subtype
=>
7937 Write_Str
("Cloned_Subtype");
7940 Write_Str
("Field16??");
7942 end Write_Field16_Name
;
7944 ------------------------
7945 -- Write_Field17_Name --
7946 ------------------------
7948 procedure Write_Field17_Name
(Id
: Entity_Id
) is
7952 Write_Str
("Digits_Value");
7955 Write_Str
("Prival");
7957 when E_Discriminant
=>
7958 Write_Str
("Discriminal");
7967 E_Generic_Function |
7969 E_Generic_Procedure |
7977 E_Return_Statement |
7979 E_Subprogram_Type
=>
7980 Write_Str
("First_Entity");
7983 Write_Str
("First_Index");
7985 when E_Protected_Body
=>
7986 Write_Str
("Object_Ref");
7988 when Enumeration_Kind
=>
7989 Write_Str
("First_Literal");
7992 Write_Str
("Master_Id");
7994 when Modular_Integer_Kind
=>
7995 Write_Str
("Modulus");
7999 E_Generic_In_Out_Parameter |
8001 Write_Str
("Actual_Subtype");
8003 when E_Incomplete_Type
=>
8004 Write_Str
("Non_Limited_View");
8006 when E_Incomplete_Subtype
=>
8007 if From_With_Type
(Id
) then
8008 Write_Str
("Non_Limited_View");
8012 Write_Str
("Field17??");
8014 end Write_Field17_Name
;
8016 ------------------------
8017 -- Write_Field18_Name --
8018 ------------------------
8020 procedure Write_Field18_Name
(Id
: Entity_Id
) is
8023 when E_Enumeration_Literal |
8027 Write_Str
("Alias");
8029 when E_Record_Type
=>
8030 Write_Str
("Corresponding_Concurrent_Type");
8032 when E_Entry_Index_Parameter
=>
8033 Write_Str
("Entry_Index_Constant");
8035 when E_Class_Wide_Subtype |
8036 E_Access_Protected_Subprogram_Type |
8037 E_Anonymous_Access_Protected_Subprogram_Type |
8038 E_Access_Subprogram_Type |
8040 Write_Str
("Equivalent_Type");
8042 when Fixed_Point_Kind
=>
8043 Write_Str
("Delta_Value");
8046 Write_Str
("Renamed_Object");
8050 E_Generic_Function |
8051 E_Generic_Procedure |
8052 E_Generic_Package
=>
8053 Write_Str
("Renamed_Entity");
8055 when Incomplete_Or_Private_Kind
=>
8056 Write_Str
("Private_Dependents");
8058 when Concurrent_Kind
=>
8059 Write_Str
("Corresponding_Record_Type");
8064 Write_Str
("Enclosing_Scope");
8067 Write_Str
("Field18??");
8069 end Write_Field18_Name
;
8071 -----------------------
8072 -- Write_Field19_Name --
8073 -----------------------
8075 procedure Write_Field19_Name
(Id
: Entity_Id
) is
8080 Write_Str
("Related_Array_Object");
8086 E_Return_Statement |
8088 Write_Str
("Finalization_Chain_Entity");
8090 when E_Constant | E_Variable
=>
8091 Write_Str
("Size_Check_Code");
8093 when E_Discriminant
=>
8094 Write_Str
("Corresponding_Discriminant");
8097 E_Generic_Package
=>
8098 Write_Str
("Body_Entity");
8100 when E_Package_Body |
8102 Write_Str
("Spec_Entity");
8104 when Private_Kind
=>
8105 Write_Str
("Underlying_Full_View");
8107 when E_Record_Type
=>
8108 Write_Str
("Parent_Subtype");
8111 Write_Str
("Field19??");
8113 end Write_Field19_Name
;
8115 -----------------------
8116 -- Write_Field20_Name --
8117 -----------------------
8119 procedure Write_Field20_Name
(Id
: Entity_Id
) is
8123 Write_Str
("Component_Type");
8125 when E_In_Parameter |
8126 E_Generic_In_Parameter
=>
8127 Write_Str
("Default_Value");
8130 Write_Str
("Directly_Designated_Type");
8133 Write_Str
("Discriminant_Checking_Func");
8135 when E_Discriminant
=>
8136 Write_Str
("Discriminant_Default_Value");
8145 E_Generic_Function |
8147 E_Generic_Procedure |
8155 E_Return_Statement |
8157 E_Subprogram_Type
=>
8159 Write_Str
("Last_Entity");
8162 Write_Str
("Scalar_Range");
8165 Write_Str
("Register_Exception_Call");
8168 Write_Str
("Field20??");
8170 end Write_Field20_Name
;
8172 -----------------------
8173 -- Write_Field21_Name --
8174 -----------------------
8176 procedure Write_Field21_Name
(Id
: Entity_Id
) is
8182 E_Generic_Function |
8184 E_Generic_Procedure |
8186 Write_Str
("Interface_Name");
8188 when Concurrent_Kind |
8189 Incomplete_Or_Private_Kind |
8193 Write_Str
("Discriminant_Constraint");
8196 Write_Str
("Accept_Address");
8198 when Fixed_Point_Kind
=>
8199 Write_Str
("Small_Value");
8201 when E_In_Parameter
=>
8202 Write_Str
("Default_Expr_Function");
8205 Modular_Integer_Kind
=>
8206 Write_Str
("Original_Array_Type");
8209 Write_Str
("Field21??");
8211 end Write_Field21_Name
;
8213 -----------------------
8214 -- Write_Field22_Name --
8215 -----------------------
8217 procedure Write_Field22_Name
(Id
: Entity_Id
) is
8221 Write_Str
("Associated_Storage_Pool");
8224 Write_Str
("Component_Size");
8228 Write_Str
("Original_Record_Component");
8230 when E_Enumeration_Literal
=>
8231 Write_Str
("Enumeration_Rep_Expr");
8234 Write_Str
("Exception_Code");
8237 Write_Str
("Protected_Formal");
8239 when E_Record_Type
=>
8240 Write_Str
("Corresponding_Remote_Type");
8250 E_Generic_Function |
8251 E_Generic_Procedure |
8254 E_Return_Statement |
8257 Write_Str
("Scope_Depth_Value");
8259 when E_Record_Type_With_Private |
8260 E_Record_Subtype_With_Private |
8263 E_Limited_Private_Type |
8264 E_Limited_Private_Subtype
=>
8265 Write_Str
("Private_View");
8268 Write_Str
("Shared_Var_Assign_Proc");
8271 Write_Str
("Field22??");
8273 end Write_Field22_Name
;
8275 ------------------------
8276 -- Write_Field23_Name --
8277 ------------------------
8279 procedure Write_Field23_Name
(Id
: Entity_Id
) is
8283 Write_Str
("Associated_Final_Chain");
8286 Write_Str
("Packed_Array_Type");
8289 Write_Str
("Entry_Cancel_Parameter");
8292 Write_Str
("Protected_Operation");
8294 when E_Discriminant
=>
8295 Write_Str
("CR_Discriminant");
8297 when E_Enumeration_Type
=>
8298 Write_Str
("Enum_Pos_To_Rep");
8302 Write_Str
("Extra_Constrained");
8304 when E_Generic_Function |
8306 E_Generic_Procedure
=>
8307 Write_Str
("Inner_Instances");
8309 when Concurrent_Kind |
8310 Incomplete_Or_Private_Kind |
8314 Write_Str
("Stored_Constraint");
8318 Write_Str
("Generic_Renamings");
8321 if Is_Generic_Instance
(Id
) then
8322 Write_Str
("Generic_Renamings");
8324 Write_Str
("Limited_View");
8327 -- What about Privals_Chain for protected operations ???
8330 Write_Str
("Privals_Chain");
8333 Write_Str
("Field23??");
8335 end Write_Field23_Name
;
8337 ------------------------
8338 -- Write_Field24_Name --
8339 ------------------------
8341 procedure Write_Field24_Name
(Id
: Entity_Id
) is
8342 pragma Warnings
(Off
, Id
);
8344 Write_Str
("Obsolescent_Warning");
8345 end Write_Field24_Name
;
8347 ------------------------
8348 -- Write_Field25_Name --
8349 ------------------------
8351 procedure Write_Field25_Name
(Id
: Entity_Id
) is
8355 Write_Str
("DT_Offset_To_Top_Func");
8359 Write_Str
("Abstract_Interface_Alias");
8362 Write_Str
("Current_Use_Clause");
8364 when E_Record_Type |
8366 E_Record_Type_With_Private |
8367 E_Record_Subtype_With_Private
=>
8368 Write_Str
("Abstract_Interfaces");
8371 Write_Str
("Task_Body_Procedure");
8374 Write_Str
("Debug_Renaming_Link");
8377 Write_Str
("Field25??");
8379 end Write_Field25_Name
;
8381 ------------------------
8382 -- Write_Field26_Name --
8383 ------------------------
8385 procedure Write_Field26_Name
(Id
: Entity_Id
) is
8390 Write_Str
("Related_Type");
8392 when E_Generic_Package |
8394 Write_Str
("Package_Instantiation");
8399 if Is_Dispatching_Operation
(Id
) then
8400 Write_Str
("Overridden_Operation");
8402 Write_Str
("Static_Initialization");
8405 when E_Record_Type |
8406 E_Record_Type_With_Private
=>
8407 Write_Str
("Dispatch_Table_Wrapper");
8409 when E_In_Out_Parameter |
8412 Write_Str
("Last_Assignment");
8415 Write_Str
("Field26??");
8417 end Write_Field26_Name
;
8419 ------------------------
8420 -- Write_Field27_Name --
8421 ------------------------
8423 procedure Write_Field27_Name
(Id
: Entity_Id
) is
8427 Write_Str
("Wrapped_Entity");
8430 Write_Str
("Field27??");
8432 end Write_Field27_Name
;
8434 ------------------------
8435 -- Write_Field28_Name --
8436 ------------------------
8438 procedure Write_Field28_Name
(Id
: Entity_Id
) is
8441 when E_Procedure | E_Function | E_Entry
=>
8442 Write_Str
("Extra_Formals");
8445 Write_Str
("Field28??");
8447 end Write_Field28_Name
;
8449 -------------------------
8450 -- Iterator Procedures --
8451 -------------------------
8453 procedure Proc_Next_Component
(N
: in out Node_Id
) is
8455 N
:= Next_Component
(N
);
8456 end Proc_Next_Component
;
8458 procedure Proc_Next_Component_Or_Discriminant
(N
: in out Node_Id
) is
8460 N
:= Next_Entity
(N
);
8461 while Present
(N
) loop
8462 exit when Ekind
(N
) = E_Component
8464 Ekind
(N
) = E_Discriminant
;
8465 N
:= Next_Entity
(N
);
8467 end Proc_Next_Component_Or_Discriminant
;
8469 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
8471 N
:= Next_Discriminant
(N
);
8472 end Proc_Next_Discriminant
;
8474 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
8476 N
:= Next_Formal
(N
);
8477 end Proc_Next_Formal
;
8479 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
8481 N
:= Next_Formal_With_Extras
(N
);
8482 end Proc_Next_Formal_With_Extras
;
8484 procedure Proc_Next_Index
(N
: in out Node_Id
) is
8486 N
:= Next_Index
(N
);
8487 end Proc_Next_Index
;
8489 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
8491 N
:= Next_Inlined_Subprogram
(N
);
8492 end Proc_Next_Inlined_Subprogram
;
8494 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
8496 N
:= Next_Literal
(N
);
8497 end Proc_Next_Literal
;
8499 procedure Proc_Next_Stored_Discriminant
(N
: in out Node_Id
) is
8501 N
:= Next_Stored_Discriminant
(N
);
8502 end Proc_Next_Stored_Discriminant
;