1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2002 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, 59 Temple Place - Suite 330, Boston, --
20 -- MA 02111-1307, 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 Namet
; use Namet
;
39 with Nlists
; use Nlists
;
40 with Sinfo
; use Sinfo
;
41 with Stand
; use Stand
;
42 with Output
; use Output
;
46 use Atree
.Unchecked_Access
;
47 -- This is one of the packages that is allowed direct untyped access to
48 -- the fields in a node, since it provides the next level abstraction
49 -- which incorporates appropriate checks.
51 ----------------------------------------------
52 -- Usage of Fields in Defining Entity Nodes --
53 ----------------------------------------------
55 -- Four of these fields are defined in Sinfo, since they in are the
56 -- base part of the node. The access routines for these fields and
57 -- the corresponding set procedures are defined in Sinfo. These fields
58 -- are present in all entities. Note that Homonym is also in the base
59 -- part of the node, but has access routines that are more properly
60 -- part of Einfo, which is why they are defined here.
67 -- Remaining fields are present only in extended nodes (i.e. entities)
69 -- The following fields are present in all entities
72 -- First_Rep_Item Node6
75 -- The usage of each field (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
84 -- Class_Wide_Type Node9
85 -- Normalized_Position Uint9
86 -- Size_Check_Code 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 -- Protected_Body_Subprogram Node11
101 -- Barrier_Function Node12
102 -- Enumeration_Rep Uint12
104 -- Next_Inlined_Subprogram Node12
106 -- Corresponding_Equality Node13
107 -- Component_Clause Node13
108 -- Debug_Renaming_Link Node13
109 -- Elaboration_Entity Node13
110 -- Extra_Accessibility Node13
114 -- First_Optional_Parameter Node14
115 -- Shadow_Entities List14
117 -- Discriminant_Number Uint15
118 -- DT_Position Uint15
119 -- DT_Entry_Count Uint15
120 -- Entry_Bodies_Array Node15
121 -- Entry_Parameters_Type Node15
122 -- Extra_Formal Node15
123 -- Lit_Indexes Node15
124 -- Primitive_Operations Elist15
125 -- Related_Instance Node15
126 -- Scale_Value Uint15
127 -- Storage_Size_Variable Node15
128 -- String_Literal_Low_Bound Node15
129 -- Shared_Var_Read_Proc Node15
131 -- Access_Disp_Table Node16
132 -- Cloned_Subtype Node16
134 -- Entry_Formal Node16
135 -- First_Private_Entity Node16
136 -- Lit_Strings Node16
137 -- String_Literal_Length Uint16
138 -- Unset_Reference Node16
140 -- Actual_Subtype Node17
141 -- Digits_Value Uint17
142 -- Discriminal Node17
143 -- First_Entity Node17
144 -- First_Index Node17
145 -- First_Literal Node17
152 -- Corresponding_Concurrent_Type Node18
153 -- Corresponding_Record_Type Node18
154 -- Delta_Value Ureal18
155 -- Enclosing_Scope Node18
156 -- Equivalent_Type Node18
157 -- Private_Dependents Elist18
158 -- Renamed_Entity Node18
159 -- Renamed_Object Node18
161 -- Body_Entity Node19
162 -- Corresponding_Discriminant Node19
163 -- Finalization_Chain_Entity Node19
164 -- Parent_Subtype Node19
165 -- Related_Array_Object Node19
166 -- Spec_Entity Node19
167 -- Underlying_Full_View Node19
169 -- Component_Type Node20
170 -- Default_Value Node20
171 -- Directly_Designated_Type Node20
172 -- Discriminant_Checking_Func Node20
173 -- Discriminant_Default_Value Node20
174 -- Last_Entity Node20
175 -- Register_Exception_Call Node20
176 -- Scalar_Range Node20
178 -- Accept_Address Elist21
179 -- Default_Expr_Function Node21
180 -- Discriminant_Constraint Elist21
181 -- Interface_Name Node21
182 -- Original_Array_Type Node21
183 -- Small_Value Ureal21
185 -- Associated_Storage_Pool Node22
186 -- Component_Size Uint22
187 -- Corresponding_Remote_Type Node22
188 -- Enumeration_Rep_Expr Node22
189 -- Exception_Code Uint22
190 -- Original_Record_Component Node22
191 -- Private_View Node22
192 -- Protected_Formal Node22
193 -- Scope_Depth_Value Uint22
194 -- Shared_Var_Assign_Proc Node22
196 -- Associated_Final_Chain Node23
197 -- CR_Discriminant Node23
198 -- Girder_Constraint Elist23
199 -- Entry_Cancel_Parameter Node23
200 -- Extra_Constrained Node23
201 -- Generic_Renamings Elist23
202 -- Inner_Instances Elist23
203 -- Enum_Pos_To_Rep Node23
204 -- Packed_Array_Type Node23
205 -- Privals_Chain Elist23
206 -- Protected_Operation Node23
208 ---------------------------------------------
209 -- Usage of Flags in Defining Entity Nodes --
210 ---------------------------------------------
212 -- All flags are unique, there is no overlaying, so each flag is physically
213 -- present in every entity. However, for many of the flags, it only makes
214 -- sense for them to be set true for certain subsets of entity kinds. See
215 -- the spec of Einfo for further details.
217 -- Note: Flag1-Flag3 are absent from this list, since these flag positions
218 -- are used for the flags Analyzed, Comes_From_Source, and Error_Posted,
219 -- which are common to all nodes, including entity nodes.
222 -- Has_Discriminants Flag5
223 -- Is_Dispatching_Operation Flag6
224 -- Is_Immediately_Visible Flag7
226 -- Is_Potentially_Use_Visible Flag9
229 -- Is_Constrained Flag12
230 -- Is_Generic_Type Flag13
231 -- Depends_On_Private Flag14
233 -- Is_Volatile Flag16
234 -- Is_Internal Flag17
235 -- Has_Delayed_Freeze Flag18
236 -- Is_Abstract Flag19
237 -- Is_Concurrent_Record_Type Flag20
238 -- Has_Master_Entity Flag21
239 -- Needs_No_Actuals Flag22
240 -- Has_Storage_Size_Clause Flag23
241 -- Is_Imported Flag24
242 -- Is_Limited_Record Flag25
243 -- Has_Completion Flag26
244 -- Has_Pragma_Controlled Flag27
245 -- Is_Statically_Allocated Flag28
246 -- Has_Size_Clause Flag29
248 -- Suppress_Access_Checks Flag31
249 -- Suppress_Accessibility_Checks Flag32
250 -- Suppress_Discriminant_Checks Flag33
251 -- Suppress_Division_Checks Flag34
252 -- Suppress_Elaboration_Checks Flag35
253 -- Suppress_Index_Checks Flag36
254 -- Suppress_Length_Checks Flag37
255 -- Suppress_Overflow_Checks Flag38
256 -- Suppress_Range_Checks Flag39
257 -- Suppress_Storage_Checks Flag40
258 -- Suppress_Tag_Checks Flag41
259 -- Is_Controlled Flag42
260 -- Has_Controlled_Component Flag43
262 -- In_Private_Part Flag45
263 -- Has_Alignment_Clause Flag46
265 -- In_Package_Body Flag48
267 -- Delay_Subprogram_Descriptors Flag50
269 -- Is_Entry_Formal Flag52
270 -- Is_Private_Descendant Flag53
271 -- Return_Present Flag54
272 -- Is_Tagged_Type Flag55
273 -- Has_Homonym Flag56
275 -- Non_Binary_Modulus Flag58
276 -- Is_Preelaborated Flag59
277 -- Is_Shared_Passive Flag60
278 -- Is_Remote_Types Flag61
279 -- Is_Remote_Call_Interface Flag62
280 -- Is_Character_Type Flag63
281 -- Is_Intrinsic_Subprogram Flag64
282 -- Has_Record_Rep_Clause Flag65
283 -- Has_Enumeration_Rep_Clause Flag66
284 -- Has_Small_Clause Flag67
285 -- Has_Component_Size_Clause Flag68
286 -- Is_Access_Constant Flag69
287 -- Is_First_Subtype Flag70
288 -- Has_Completion_In_Body Flag71
289 -- Has_Unknown_Discriminants Flag72
290 -- Is_Child_Unit Flag73
291 -- Is_CPP_Class Flag74
292 -- Has_Non_Standard_Rep Flag75
293 -- Is_Constructor Flag76
294 -- Is_Destructor Flag77
296 -- Has_All_Calls_Remote Flag79
297 -- Is_Constr_Subt_For_U_Nominal Flag80
298 -- Is_Asynchronous Flag81
299 -- Has_Gigi_Rep_Item Flag82
300 -- Has_Machine_Radix_Clause Flag83
301 -- Machine_Radix_10 Flag84
303 -- Has_Atomic_Components Flag86
304 -- Has_Volatile_Components Flag87
305 -- Discard_Names Flag88
306 -- Is_Interrupt_Handler Flag89
307 -- Returns_By_Ref Flag90
309 -- Size_Known_At_Compile_Time Flag92
310 -- Has_Subprogram_Descriptor Flag93
311 -- Is_Generic_Actual_Type Flag94
312 -- Uses_Sec_Stack Flag95
313 -- Warnings_Off Flag96
314 -- Is_Controlling_Formal Flag97
315 -- Has_Controlling_Result Flag98
316 -- Is_Exported Flag99
317 -- Has_Specified_Layout Flag100
318 -- Has_Nested_Block_With_Handler Flag101
320 -- Is_Completely_Hidden Flag103
321 -- Address_Taken Flag104
322 -- Suppress_Init_Proc Flag105
323 -- Is_Limited_Composite Flag106
324 -- Is_Private_Composite Flag107
325 -- Default_Expressions_Processed Flag108
326 -- Is_Non_Static_Subtype Flag109
327 -- Has_External_Tag_Rep_Clause Flag110
328 -- Is_Formal_Subprogram Flag111
329 -- Is_Renaming_Of_Object Flag112
331 -- Delay_Cleanups Flag114
332 -- Not_Source_Assigned Flag115
333 -- Is_Visible_Child_Unit Flag116
334 -- Is_Unchecked_Union Flag117
335 -- Is_For_Access_Subtype Flag118
336 -- Has_Convention_Pragma Flag119
337 -- Has_Primitive_Operations Flag120
338 -- Has_Pragma_Pack Flag121
339 -- Is_Bit_Packed_Array Flag122
340 -- Has_Unchecked_Union Flag123
341 -- Is_Eliminated Flag124
342 -- C_Pass_By_Copy Flag125
343 -- Is_Instantiated Flag126
344 -- Is_Valued_Procedure Flag127
345 -- (used for Component_Alignment) Flag128
346 -- (used for Component_Alignment) Flag129
347 -- Is_Generic_Instance Flag130
348 -- No_Pool_Assigned Flag131
349 -- Is_AST_Entry Flag132
350 -- Is_VMS_Exception Flag133
351 -- Is_Optional_Parameter Flag134
352 -- Has_Aliased_Components Flag135
353 -- Is_Machine_Code_Subprogram Flag137
354 -- Is_Packed_Array_Type Flag138
355 -- Has_Biased_Representation Flag139
356 -- Has_Complex_Representation Flag140
357 -- Is_Constr_Subt_For_UN_Aliased Flag141
358 -- Has_Missing_Return Flag142
359 -- Has_Recursive_Call Flag143
360 -- Is_Unsigned_Type Flag144
361 -- Strict_Alignment Flag145
362 -- Elaborate_All_Desirable Flag146
363 -- Needs_Debug_Info Flag147
364 -- Suppress_Elaboration_Warnings Flag148
365 -- Is_Compilation_Unit Flag149
366 -- Has_Pragma_Elaborate_Body Flag150
368 -- Entry_Accepted Flag152
369 -- Is_Psected Flag153
370 -- Has_Per_Object_Constraint Flag154
371 -- Has_Private_Declaration Flag155
372 -- Referenced Flag156
373 -- Has_Pragma_Inline Flag157
374 -- Finalize_Storage_Only Flag158
375 -- From_With_Type Flag159
376 -- Is_Package_Body_Entity Flag160
377 -- Has_Qualified_Name Flag161
378 -- Nonzero_Is_True Flag162
379 -- Is_True_Constant Flag163
380 -- Reverse_Bit_Order Flag164
381 -- Suppress_Style_Checks Flag165
382 -- Debug_Info_Off Flag166
383 -- Sec_Stack_Needed_For_Return Flag167
384 -- Materialize_Entity Flag168
385 -- Function_Returns_With_DSP Flag169
386 -- Is_Known_Valid Flag170
387 -- Is_Hidden_Open_Scope Flag171
388 -- Has_Object_Size_Clause Flag172
389 -- Has_Fully_Qualified_Name Flag173
390 -- Elaboration_Entity_Required Flag174
391 -- Has_Forward_Instantiation Flag175
392 -- Is_Discrim_SO_Function Flag176
393 -- Size_Depends_On_Discriminant Flag177
394 -- Is_Null_Init_Proc Flag178
395 -- Has_Pragma_Pure_Function Flag179
396 -- Has_Pragma_Unreferenced Flag180
402 --------------------------------
403 -- Attribute Access Functions --
404 --------------------------------
406 function Accept_Address
(Id
: E
) return L
is
411 function Access_Disp_Table
(Id
: E
) return E
is
413 pragma Assert
(Is_Tagged_Type
(Id
));
414 return Node16
(Implementation_Base_Type
(Id
));
415 end Access_Disp_Table
;
417 function Actual_Subtype
(Id
: E
) return E
is
420 (Ekind
(Id
) = E_Constant
421 or else Ekind
(Id
) = E_Variable
422 or else Ekind
(Id
) = E_Generic_In_Out_Parameter
423 or else Ekind
(Id
) in E_In_Parameter
.. E_In_Out_Parameter
);
427 function Address_Taken
(Id
: E
) return B
is
432 function Alias
(Id
: E
) return E
is
435 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
439 function Alignment
(Id
: E
) return U
is
444 function Associated_Final_Chain
(Id
: E
) return E
is
446 pragma Assert
(Is_Access_Type
(Id
));
448 end Associated_Final_Chain
;
450 function Associated_Formal_Package
(Id
: E
) return E
is
452 pragma Assert
(Ekind
(Id
) = E_Package
);
454 end Associated_Formal_Package
;
456 function Associated_Node_For_Itype
(Id
: E
) return N
is
459 end Associated_Node_For_Itype
;
461 function Associated_Storage_Pool
(Id
: E
) return E
is
463 pragma Assert
(Is_Access_Type
(Id
));
464 return Node22
(Root_Type
(Id
));
465 end Associated_Storage_Pool
;
467 function Barrier_Function
(Id
: E
) return N
is
469 pragma Assert
(Is_Entry
(Id
));
471 end Barrier_Function
;
473 function Block_Node
(Id
: E
) return N
is
475 pragma Assert
(Ekind
(Id
) = E_Block
);
479 function Body_Entity
(Id
: E
) return E
is
482 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
486 function C_Pass_By_Copy
(Id
: E
) return B
is
488 pragma Assert
(Is_Record_Type
(Id
));
489 return Flag125
(Implementation_Base_Type
(Id
));
492 function Class_Wide_Type
(Id
: E
) return E
is
494 pragma Assert
(Is_Type
(Id
));
498 function Cloned_Subtype
(Id
: E
) return E
is
501 (Ekind
(Id
) = E_Record_Subtype
502 or else Ekind
(Id
) = E_Class_Wide_Subtype
);
506 function Component_Bit_Offset
(Id
: E
) return U
is
509 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
511 end Component_Bit_Offset
;
513 function Component_Clause
(Id
: E
) return N
is
516 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
518 end Component_Clause
;
520 function Component_Size
(Id
: E
) return U
is
522 pragma Assert
(Is_Array_Type
(Id
));
523 return Uint22
(Implementation_Base_Type
(Id
));
526 function Component_Type
(Id
: E
) return E
is
528 return Node20
(Implementation_Base_Type
(Id
));
531 function Corresponding_Concurrent_Type
(Id
: E
) return E
is
533 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
535 end Corresponding_Concurrent_Type
;
537 function Corresponding_Discriminant
(Id
: E
) return E
is
539 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
541 end Corresponding_Discriminant
;
543 function Corresponding_Equality
(Id
: E
) return E
is
546 (Ekind
(Id
) = E_Function
547 and then not Comes_From_Source
(Id
)
548 and then Chars
(Id
) = Name_Op_Ne
);
550 end Corresponding_Equality
;
552 function Corresponding_Record_Type
(Id
: E
) return E
is
554 pragma Assert
(Is_Concurrent_Type
(Id
));
556 end Corresponding_Record_Type
;
558 function Corresponding_Remote_Type
(Id
: E
) return E
is
561 end Corresponding_Remote_Type
;
563 function CR_Discriminant
(Id
: E
) return E
is
568 function Debug_Info_Off
(Id
: E
) return B
is
573 function Debug_Renaming_Link
(Id
: E
) return E
is
576 end Debug_Renaming_Link
;
578 function Default_Expr_Function
(Id
: E
) return E
is
580 pragma Assert
(Is_Formal
(Id
));
582 end Default_Expr_Function
;
584 function Default_Expressions_Processed
(Id
: E
) return B
is
587 end Default_Expressions_Processed
;
589 function Default_Value
(Id
: E
) return N
is
591 pragma Assert
(Is_Formal
(Id
));
595 function Delay_Cleanups
(Id
: E
) return B
is
600 function Delay_Subprogram_Descriptors
(Id
: E
) return B
is
603 end Delay_Subprogram_Descriptors
;
605 function Delta_Value
(Id
: E
) return R
is
607 pragma Assert
(Is_Fixed_Point_Type
(Id
));
611 function Dependent_Instances
(Id
: E
) return L
is
613 pragma Assert
(Is_Generic_Instance
(Id
));
615 end Dependent_Instances
;
617 function Depends_On_Private
(Id
: E
) return B
is
619 pragma Assert
(Nkind
(Id
) in N_Entity
);
621 end Depends_On_Private
;
623 function Digits_Value
(Id
: E
) return U
is
626 (Is_Floating_Point_Type
(Id
)
627 or else Is_Decimal_Fixed_Point_Type
(Id
));
631 function Directly_Designated_Type
(Id
: E
) return E
is
634 end Directly_Designated_Type
;
636 function Discard_Names
(Id
: E
) return B
is
641 function Discriminal
(Id
: E
) return E
is
643 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
647 function Discriminal_Link
(Id
: E
) return N
is
650 end Discriminal_Link
;
652 function Discriminant_Checking_Func
(Id
: E
) return E
is
654 pragma Assert
(Ekind
(Id
) = E_Component
);
656 end Discriminant_Checking_Func
;
658 function Discriminant_Constraint
(Id
: E
) return L
is
660 pragma Assert
(Is_Composite_Type
(Id
) and then Has_Discriminants
(Id
));
662 end Discriminant_Constraint
;
664 function Discriminant_Default_Value
(Id
: E
) return N
is
666 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
668 end Discriminant_Default_Value
;
670 function Discriminant_Number
(Id
: E
) return U
is
672 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
674 end Discriminant_Number
;
676 function DT_Entry_Count
(Id
: E
) return U
is
678 pragma Assert
(Ekind
(Id
) = E_Component
and then Is_Tag
(Id
));
682 function DT_Position
(Id
: E
) return U
is
685 ((Ekind
(Id
) = E_Function
686 or else Ekind
(Id
) = E_Procedure
)
687 and then Present
(DTC_Entity
(Id
)));
691 function DTC_Entity
(Id
: E
) return E
is
694 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
698 function Elaborate_All_Desirable
(Id
: E
) return B
is
701 end Elaborate_All_Desirable
;
703 function Elaboration_Entity
(Id
: E
) return E
is
708 Ekind
(Id
) = E_Package
710 Is_Generic_Unit
(Id
));
712 end Elaboration_Entity
;
714 function Elaboration_Entity_Required
(Id
: E
) return B
is
719 Ekind
(Id
) = E_Package
721 Is_Generic_Unit
(Id
));
723 end Elaboration_Entity_Required
;
725 function Enclosing_Scope
(Id
: E
) return E
is
730 function Entry_Accepted
(Id
: E
) return B
is
732 pragma Assert
(Is_Entry
(Id
));
736 function Entry_Bodies_Array
(Id
: E
) return E
is
739 end Entry_Bodies_Array
;
741 function Entry_Cancel_Parameter
(Id
: E
) return E
is
744 end Entry_Cancel_Parameter
;
746 function Entry_Component
(Id
: E
) return E
is
751 function Entry_Formal
(Id
: E
) return E
is
756 function Entry_Index_Constant
(Id
: E
) return N
is
758 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
760 end Entry_Index_Constant
;
762 function Entry_Parameters_Type
(Id
: E
) return E
is
765 end Entry_Parameters_Type
;
767 function Enum_Pos_To_Rep
(Id
: E
) return E
is
769 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
773 function Enumeration_Pos
(Id
: E
) return Uint
is
775 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
779 function Enumeration_Rep
(Id
: E
) return U
is
781 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
785 function Enumeration_Rep_Expr
(Id
: E
) return N
is
787 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
789 end Enumeration_Rep_Expr
;
791 function Equivalent_Type
(Id
: E
) return E
is
794 (Ekind
(Id
) = E_Class_Wide_Subtype
or else
795 Ekind
(Id
) = E_Access_Protected_Subprogram_Type
or else
796 Ekind
(Id
) = E_Access_Subprogram_Type
or else
797 Ekind
(Id
) = E_Exception_Type
);
801 function Esize
(Id
: E
) return Uint
is
806 function Exception_Code
(Id
: E
) return Uint
is
808 pragma Assert
(Ekind
(Id
) = E_Exception
);
812 function Extra_Accessibility
(Id
: E
) return E
is
814 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
816 end Extra_Accessibility
;
818 function Extra_Constrained
(Id
: E
) return E
is
820 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
822 end Extra_Constrained
;
824 function Extra_Formal
(Id
: E
) return E
is
829 function Finalization_Chain_Entity
(Id
: E
) return E
is
832 end Finalization_Chain_Entity
;
834 function Finalize_Storage_Only
(Id
: E
) return B
is
836 pragma Assert
(Is_Type
(Id
));
837 return Flag158
(Base_Type
(Id
));
838 end Finalize_Storage_Only
;
840 function First_Entity
(Id
: E
) return E
is
845 function First_Index
(Id
: E
) return N
is
850 function First_Literal
(Id
: E
) return E
is
855 function First_Optional_Parameter
(Id
: E
) return E
is
858 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
860 end First_Optional_Parameter
;
862 function First_Private_Entity
(Id
: E
) return E
is
865 end First_Private_Entity
;
867 function First_Rep_Item
(Id
: E
) return E
is
872 function Freeze_Node
(Id
: E
) return N
is
877 function From_With_Type
(Id
: E
) return B
is
882 function Full_View
(Id
: E
) return E
is
884 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
888 function Function_Returns_With_DSP
(Id
: E
) return B
is
891 (Is_Subprogram
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
893 end Function_Returns_With_DSP
;
895 function Generic_Renamings
(Id
: E
) return L
is
898 end Generic_Renamings
;
900 function Girder_Constraint
(Id
: E
) return L
is
903 (Is_Composite_Type
(Id
) and then not Is_Array_Type
(Id
));
905 end Girder_Constraint
;
907 function Handler_Records
(Id
: E
) return S
is
912 function Has_Aliased_Components
(Id
: E
) return B
is
914 return Flag135
(Implementation_Base_Type
(Id
));
915 end Has_Aliased_Components
;
917 function Has_Alignment_Clause
(Id
: E
) return B
is
920 end Has_Alignment_Clause
;
922 function Has_All_Calls_Remote
(Id
: E
) return B
is
925 end Has_All_Calls_Remote
;
927 function Has_Atomic_Components
(Id
: E
) return B
is
929 return Flag86
(Implementation_Base_Type
(Id
));
930 end Has_Atomic_Components
;
932 function Has_Biased_Representation
(Id
: E
) return B
is
935 end Has_Biased_Representation
;
937 function Has_Completion
(Id
: E
) return B
is
942 function Has_Completion_In_Body
(Id
: E
) return B
is
944 pragma Assert
(Is_Type
(Id
));
946 end Has_Completion_In_Body
;
948 function Has_Complex_Representation
(Id
: E
) return B
is
950 pragma Assert
(Is_Type
(Id
));
951 return Flag140
(Implementation_Base_Type
(Id
));
952 end Has_Complex_Representation
;
954 function Has_Component_Size_Clause
(Id
: E
) return B
is
956 pragma Assert
(Is_Array_Type
(Id
));
957 return Flag68
(Implementation_Base_Type
(Id
));
958 end Has_Component_Size_Clause
;
960 function Has_Controlled_Component
(Id
: E
) return B
is
962 return Flag43
(Base_Type
(Id
));
963 end Has_Controlled_Component
;
965 function Has_Controlling_Result
(Id
: E
) return B
is
968 end Has_Controlling_Result
;
970 function Has_Convention_Pragma
(Id
: E
) return B
is
973 end Has_Convention_Pragma
;
975 function Has_Delayed_Freeze
(Id
: E
) return B
is
977 pragma Assert
(Nkind
(Id
) in N_Entity
);
979 end Has_Delayed_Freeze
;
981 function Has_Discriminants
(Id
: E
) return B
is
983 pragma Assert
(Nkind
(Id
) in N_Entity
);
985 end Has_Discriminants
;
987 function Has_Enumeration_Rep_Clause
(Id
: E
) return B
is
989 pragma Assert
(Is_Enumeration_Type
(Id
));
991 end Has_Enumeration_Rep_Clause
;
993 function Has_Exit
(Id
: E
) return B
is
998 function Has_External_Tag_Rep_Clause
(Id
: E
) return B
is
1000 pragma Assert
(Is_Tagged_Type
(Id
));
1001 return Flag110
(Id
);
1002 end Has_External_Tag_Rep_Clause
;
1004 function Has_Forward_Instantiation
(Id
: E
) return B
is
1006 return Flag175
(Id
);
1007 end Has_Forward_Instantiation
;
1009 function Has_Fully_Qualified_Name
(Id
: E
) return B
is
1011 return Flag173
(Id
);
1012 end Has_Fully_Qualified_Name
;
1014 function Has_Gigi_Rep_Item
(Id
: E
) return B
is
1017 end Has_Gigi_Rep_Item
;
1019 function Has_Homonym
(Id
: E
) return B
is
1024 function Has_Machine_Radix_Clause
(Id
: E
) return B
is
1026 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1028 end Has_Machine_Radix_Clause
;
1030 function Has_Master_Entity
(Id
: E
) return B
is
1033 end Has_Master_Entity
;
1035 function Has_Missing_Return
(Id
: E
) return B
is
1038 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Generic_Function
);
1039 return Flag142
(Id
);
1040 end Has_Missing_Return
;
1042 function Has_Nested_Block_With_Handler
(Id
: E
) return B
is
1044 return Flag101
(Id
);
1045 end Has_Nested_Block_With_Handler
;
1047 function Has_Non_Standard_Rep
(Id
: E
) return B
is
1049 return Flag75
(Implementation_Base_Type
(Id
));
1050 end Has_Non_Standard_Rep
;
1052 function Has_Object_Size_Clause
(Id
: E
) return B
is
1054 pragma Assert
(Is_Type
(Id
));
1055 return Flag172
(Id
);
1056 end Has_Object_Size_Clause
;
1058 function Has_Per_Object_Constraint
(Id
: E
) return B
is
1060 return Flag154
(Id
);
1061 end Has_Per_Object_Constraint
;
1063 function Has_Pragma_Controlled
(Id
: E
) return B
is
1065 pragma Assert
(Is_Access_Type
(Id
));
1066 return Flag27
(Implementation_Base_Type
(Id
));
1067 end Has_Pragma_Controlled
;
1069 function Has_Pragma_Elaborate_Body
(Id
: E
) return B
is
1071 return Flag150
(Id
);
1072 end Has_Pragma_Elaborate_Body
;
1074 function Has_Pragma_Inline
(Id
: E
) return B
is
1076 return Flag157
(Id
);
1077 end Has_Pragma_Inline
;
1079 function Has_Pragma_Pack
(Id
: E
) return B
is
1081 pragma Assert
(Is_Record_Type
(Id
) or else Is_Array_Type
(Id
));
1082 return Flag121
(Implementation_Base_Type
(Id
));
1083 end Has_Pragma_Pack
;
1085 function Has_Pragma_Pure_Function
(Id
: E
) return B
is
1087 pragma Assert
(Is_Subprogram
(Id
));
1088 return Flag179
(Id
);
1089 end Has_Pragma_Pure_Function
;
1091 function Has_Pragma_Unreferenced
(Id
: E
) return B
is
1093 return Flag180
(Id
);
1094 end Has_Pragma_Unreferenced
;
1096 function Has_Primitive_Operations
(Id
: E
) return B
is
1098 pragma Assert
(Is_Type
(Id
));
1099 return Flag120
(Base_Type
(Id
));
1100 end Has_Primitive_Operations
;
1102 function Has_Private_Declaration
(Id
: E
) return B
is
1104 return Flag155
(Id
);
1105 end Has_Private_Declaration
;
1107 function Has_Qualified_Name
(Id
: E
) return B
is
1109 return Flag161
(Id
);
1110 end Has_Qualified_Name
;
1112 function Has_Record_Rep_Clause
(Id
: E
) return B
is
1114 pragma Assert
(Is_Record_Type
(Id
));
1115 return Flag65
(Implementation_Base_Type
(Id
));
1116 end Has_Record_Rep_Clause
;
1118 function Has_Recursive_Call
(Id
: E
) return B
is
1120 pragma Assert
(Is_Subprogram
(Id
));
1121 return Flag143
(Id
);
1122 end Has_Recursive_Call
;
1124 function Has_Size_Clause
(Id
: E
) return B
is
1127 end Has_Size_Clause
;
1129 function Has_Small_Clause
(Id
: E
) return B
is
1132 end Has_Small_Clause
;
1134 function Has_Specified_Layout
(Id
: E
) return B
is
1136 pragma Assert
(Is_Type
(Id
));
1137 return Flag100
(Implementation_Base_Type
(Id
));
1138 end Has_Specified_Layout
;
1140 function Has_Storage_Size_Clause
(Id
: E
) return B
is
1142 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1143 return Flag23
(Implementation_Base_Type
(Id
));
1144 end Has_Storage_Size_Clause
;
1146 function Has_Subprogram_Descriptor
(Id
: E
) return B
is
1149 end Has_Subprogram_Descriptor
;
1151 function Has_Task
(Id
: E
) return B
is
1153 return Flag30
(Base_Type
(Id
));
1156 function Has_Unchecked_Union
(Id
: E
) return B
is
1158 return Flag123
(Base_Type
(Id
));
1159 end Has_Unchecked_Union
;
1161 function Has_Unknown_Discriminants
(Id
: E
) return B
is
1163 pragma Assert
(Is_Type
(Id
));
1165 end Has_Unknown_Discriminants
;
1167 function Has_Volatile_Components
(Id
: E
) return B
is
1169 return Flag87
(Implementation_Base_Type
(Id
));
1170 end Has_Volatile_Components
;
1172 function Hiding_Loop_Variable
(Id
: E
) return E
is
1174 pragma Assert
(Ekind
(Id
) = E_Variable
);
1176 end Hiding_Loop_Variable
;
1178 function Homonym
(Id
: E
) return E
is
1183 function In_Package_Body
(Id
: E
) return B
is
1186 end In_Package_Body
;
1188 function In_Private_Part
(Id
: E
) return B
is
1191 end In_Private_Part
;
1193 function In_Use
(Id
: E
) return B
is
1195 pragma Assert
(Nkind
(Id
) in N_Entity
);
1199 function Inner_Instances
(Id
: E
) return L
is
1201 return Elist23
(Id
);
1202 end Inner_Instances
;
1204 function Interface_Name
(Id
: E
) return N
is
1209 function Is_Abstract
(Id
: E
) return B
is
1214 function Is_Access_Constant
(Id
: E
) return B
is
1216 pragma Assert
(Is_Access_Type
(Id
));
1218 end Is_Access_Constant
;
1220 function Is_Aliased
(Id
: E
) return B
is
1222 pragma Assert
(Nkind
(Id
) in N_Entity
);
1226 function Is_AST_Entry
(Id
: E
) return B
is
1228 pragma Assert
(Is_Entry
(Id
));
1229 return Flag132
(Id
);
1232 function Is_Asynchronous
(Id
: E
) return B
is
1235 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
1237 end Is_Asynchronous
;
1239 function Is_Atomic
(Id
: E
) return B
is
1244 function Is_Bit_Packed_Array
(Id
: E
) return B
is
1246 return Flag122
(Implementation_Base_Type
(Id
));
1247 end Is_Bit_Packed_Array
;
1249 function Is_Called
(Id
: E
) return B
is
1252 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Function
);
1253 return Flag102
(Id
);
1256 function Is_Character_Type
(Id
: E
) return B
is
1259 end Is_Character_Type
;
1261 function Is_Child_Unit
(Id
: E
) return B
is
1266 function Is_Compilation_Unit
(Id
: E
) return B
is
1268 return Flag149
(Id
);
1269 end Is_Compilation_Unit
;
1271 function Is_Completely_Hidden
(Id
: E
) return B
is
1273 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
1274 return Flag103
(Id
);
1275 end Is_Completely_Hidden
;
1277 function Is_Constr_Subt_For_U_Nominal
(Id
: E
) return B
is
1280 end Is_Constr_Subt_For_U_Nominal
;
1282 function Is_Constr_Subt_For_UN_Aliased
(Id
: E
) return B
is
1284 return Flag141
(Id
);
1285 end Is_Constr_Subt_For_UN_Aliased
;
1287 function Is_Constrained
(Id
: E
) return B
is
1289 pragma Assert
(Nkind
(Id
) in N_Entity
);
1293 function Is_Constructor
(Id
: E
) return B
is
1298 function Is_Controlled
(Id
: E
) return B
is
1300 return Flag42
(Base_Type
(Id
));
1303 function Is_Controlling_Formal
(Id
: E
) return B
is
1305 pragma Assert
(Is_Formal
(Id
));
1307 end Is_Controlling_Formal
;
1309 function Is_CPP_Class
(Id
: E
) return B
is
1314 function Is_Destructor
(Id
: E
) return B
is
1319 function Is_Discrim_SO_Function
(Id
: E
) return B
is
1321 return Flag176
(Id
);
1322 end Is_Discrim_SO_Function
;
1324 function Is_Dispatching_Operation
(Id
: E
) return B
is
1326 pragma Assert
(Nkind
(Id
) in N_Entity
);
1328 end Is_Dispatching_Operation
;
1330 function Is_Eliminated
(Id
: E
) return B
is
1332 return Flag124
(Id
);
1335 function Is_Entry_Formal
(Id
: E
) return B
is
1338 end Is_Entry_Formal
;
1340 function Is_Exported
(Id
: E
) return B
is
1345 function Is_First_Subtype
(Id
: E
) return B
is
1348 end Is_First_Subtype
;
1350 function Is_For_Access_Subtype
(Id
: E
) return B
is
1353 (Ekind
(Id
) = E_Record_Subtype
1355 Ekind
(Id
) = E_Private_Subtype
);
1356 return Flag118
(Id
);
1357 end Is_For_Access_Subtype
;
1359 function Is_Formal_Subprogram
(Id
: E
) return B
is
1361 return Flag111
(Id
);
1362 end Is_Formal_Subprogram
;
1364 function Is_Frozen
(Id
: E
) return B
is
1369 function Is_Generic_Actual_Type
(Id
: E
) return B
is
1371 pragma Assert
(Is_Type
(Id
));
1373 end Is_Generic_Actual_Type
;
1375 function Is_Generic_Instance
(Id
: E
) return B
is
1377 return Flag130
(Id
);
1378 end Is_Generic_Instance
;
1380 function Is_Generic_Type
(Id
: E
) return B
is
1382 pragma Assert
(Nkind
(Id
) in N_Entity
);
1384 end Is_Generic_Type
;
1386 function Is_Hidden
(Id
: E
) return B
is
1391 function Is_Hidden_Open_Scope
(Id
: E
) return B
is
1393 return Flag171
(Id
);
1394 end Is_Hidden_Open_Scope
;
1396 function Is_Immediately_Visible
(Id
: E
) return B
is
1398 pragma Assert
(Nkind
(Id
) in N_Entity
);
1400 end Is_Immediately_Visible
;
1402 function Is_Imported
(Id
: E
) return B
is
1407 function Is_Inlined
(Id
: E
) return B
is
1412 function Is_Instantiated
(Id
: E
) return B
is
1414 return Flag126
(Id
);
1415 end Is_Instantiated
;
1417 function Is_Internal
(Id
: E
) return B
is
1419 pragma Assert
(Nkind
(Id
) in N_Entity
);
1423 function Is_Interrupt_Handler
(Id
: E
) return B
is
1425 pragma Assert
(Nkind
(Id
) in N_Entity
);
1427 end Is_Interrupt_Handler
;
1429 function Is_Intrinsic_Subprogram
(Id
: E
) return B
is
1432 end Is_Intrinsic_Subprogram
;
1434 function Is_Itype
(Id
: E
) return B
is
1439 function Is_Known_Valid
(Id
: E
) return B
is
1441 return Flag170
(Id
);
1444 function Is_Limited_Composite
(Id
: E
) return B
is
1446 return Flag106
(Id
);
1447 end Is_Limited_Composite
;
1449 function Is_Limited_Record
(Id
: E
) return B
is
1452 end Is_Limited_Record
;
1454 function Is_Machine_Code_Subprogram
(Id
: E
) return B
is
1456 pragma Assert
(Is_Subprogram
(Id
));
1457 return Flag137
(Id
);
1458 end Is_Machine_Code_Subprogram
;
1460 function Is_Non_Static_Subtype
(Id
: E
) return B
is
1462 pragma Assert
(Is_Type
(Id
));
1463 return Flag109
(Id
);
1464 end Is_Non_Static_Subtype
;
1466 function Is_Null_Init_Proc
(Id
: E
) return B
is
1468 pragma Assert
(Ekind
(Id
) = E_Procedure
);
1469 return Flag178
(Id
);
1470 end Is_Null_Init_Proc
;
1472 function Is_Optional_Parameter
(Id
: E
) return B
is
1474 pragma Assert
(Is_Formal
(Id
));
1475 return Flag134
(Id
);
1476 end Is_Optional_Parameter
;
1478 function Is_Package_Body_Entity
(Id
: E
) return B
is
1480 return Flag160
(Id
);
1481 end Is_Package_Body_Entity
;
1483 function Is_Packed
(Id
: E
) return B
is
1485 return Flag51
(Implementation_Base_Type
(Id
));
1488 function Is_Packed_Array_Type
(Id
: E
) return B
is
1490 return Flag138
(Id
);
1491 end Is_Packed_Array_Type
;
1493 function Is_Potentially_Use_Visible
(Id
: E
) return B
is
1495 pragma Assert
(Nkind
(Id
) in N_Entity
);
1497 end Is_Potentially_Use_Visible
;
1499 function Is_Preelaborated
(Id
: E
) return B
is
1502 end Is_Preelaborated
;
1504 function Is_Private_Composite
(Id
: E
) return B
is
1506 pragma Assert
(Is_Type
(Id
));
1507 return Flag107
(Id
);
1508 end Is_Private_Composite
;
1510 function Is_Private_Descendant
(Id
: E
) return B
is
1513 end Is_Private_Descendant
;
1515 function Is_Psected
(Id
: E
) return B
is
1517 return Flag153
(Id
);
1520 function Is_Public
(Id
: E
) return B
is
1522 pragma Assert
(Nkind
(Id
) in N_Entity
);
1526 function Is_Pure
(Id
: E
) return B
is
1531 function Is_Remote_Call_Interface
(Id
: E
) return B
is
1534 end Is_Remote_Call_Interface
;
1536 function Is_Remote_Types
(Id
: E
) return B
is
1539 end Is_Remote_Types
;
1541 function Is_Renaming_Of_Object
(Id
: E
) return B
is
1543 return Flag112
(Id
);
1544 end Is_Renaming_Of_Object
;
1546 function Is_Shared_Passive
(Id
: E
) return B
is
1549 end Is_Shared_Passive
;
1551 function Is_Statically_Allocated
(Id
: E
) return B
is
1554 end Is_Statically_Allocated
;
1556 function Is_Tag
(Id
: E
) return B
is
1558 pragma Assert
(Nkind
(Id
) in N_Entity
);
1562 function Is_Tagged_Type
(Id
: E
) return B
is
1567 function Is_True_Constant
(Id
: E
) return B
is
1569 return Flag163
(Id
);
1570 end Is_True_Constant
;
1572 function Is_Unchecked_Union
(Id
: E
) return B
is
1574 return Flag117
(Id
);
1575 end Is_Unchecked_Union
;
1577 function Is_Unsigned_Type
(Id
: E
) return B
is
1579 pragma Assert
(Is_Type
(Id
));
1580 return Flag144
(Id
);
1581 end Is_Unsigned_Type
;
1583 function Is_Valued_Procedure
(Id
: E
) return B
is
1585 pragma Assert
(Ekind
(Id
) = E_Procedure
);
1586 return Flag127
(Id
);
1587 end Is_Valued_Procedure
;
1589 function Is_Visible_Child_Unit
(Id
: E
) return B
is
1591 pragma Assert
(Is_Child_Unit
(Id
));
1592 return Flag116
(Id
);
1593 end Is_Visible_Child_Unit
;
1595 function Is_VMS_Exception
(Id
: E
) return B
is
1597 return Flag133
(Id
);
1598 end Is_VMS_Exception
;
1600 function Is_Volatile
(Id
: E
) return B
is
1602 pragma Assert
(Nkind
(Id
) in N_Entity
);
1606 function Last_Entity
(Id
: E
) return E
is
1611 function Lit_Indexes
(Id
: E
) return E
is
1613 pragma Assert
(Is_Enumeration_Type
(Id
));
1617 function Lit_Strings
(Id
: E
) return E
is
1619 pragma Assert
(Is_Enumeration_Type
(Id
));
1623 function Machine_Radix_10
(Id
: E
) return B
is
1625 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
1627 end Machine_Radix_10
;
1629 function Master_Id
(Id
: E
) return E
is
1634 function Materialize_Entity
(Id
: E
) return B
is
1636 return Flag168
(Id
);
1637 end Materialize_Entity
;
1639 function Mechanism
(Id
: E
) return M
is
1641 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
1642 return UI_To_Int
(Uint8
(Id
));
1645 function Modulus
(Id
: E
) return Uint
is
1647 pragma Assert
(Is_Modular_Integer_Type
(Id
));
1648 return Uint17
(Base_Type
(Id
));
1651 function Needs_Debug_Info
(Id
: E
) return B
is
1653 return Flag147
(Id
);
1654 end Needs_Debug_Info
;
1656 function Needs_No_Actuals
(Id
: E
) return B
is
1659 (Is_Overloadable
(Id
)
1660 or else Ekind
(Id
) = E_Subprogram_Type
1661 or else Ekind
(Id
) = E_Entry_Family
);
1663 end Needs_No_Actuals
;
1665 function Next_Inlined_Subprogram
(Id
: E
) return E
is
1668 end Next_Inlined_Subprogram
;
1670 function No_Pool_Assigned
(Id
: E
) return B
is
1672 pragma Assert
(Is_Access_Type
(Id
));
1673 return Flag131
(Root_Type
(Id
));
1674 end No_Pool_Assigned
;
1676 function No_Return
(Id
: E
) return B
is
1679 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Generic_Procedure
);
1680 return Flag113
(Id
);
1683 function Non_Binary_Modulus
(Id
: E
) return B
is
1685 pragma Assert
(Is_Modular_Integer_Type
(Id
));
1686 return Flag58
(Base_Type
(Id
));
1687 end Non_Binary_Modulus
;
1689 function Nonzero_Is_True
(Id
: E
) return B
is
1691 pragma Assert
(Root_Type
(Id
) = Standard_Boolean
);
1692 return Flag162
(Base_Type
(Id
));
1693 end Nonzero_Is_True
;
1695 function Normalized_First_Bit
(Id
: E
) return U
is
1698 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
1700 end Normalized_First_Bit
;
1702 function Normalized_Position
(Id
: E
) return U
is
1705 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
1707 end Normalized_Position
;
1709 function Normalized_Position_Max
(Id
: E
) return U
is
1712 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
1714 end Normalized_Position_Max
;
1716 function Not_Source_Assigned
(Id
: E
) return B
is
1718 return Flag115
(Id
);
1719 end Not_Source_Assigned
;
1721 function Object_Ref
(Id
: E
) return E
is
1723 pragma Assert
(Ekind
(Id
) = E_Protected_Body
);
1727 function Original_Array_Type
(Id
: E
) return E
is
1729 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
1731 end Original_Array_Type
;
1733 function Original_Record_Component
(Id
: E
) return E
is
1736 end Original_Record_Component
;
1738 function Packed_Array_Type
(Id
: E
) return E
is
1740 pragma Assert
(Is_Array_Type
(Id
));
1742 end Packed_Array_Type
;
1744 function Parent_Subtype
(Id
: E
) return E
is
1746 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
1750 function Primitive_Operations
(Id
: E
) return L
is
1752 pragma Assert
(Is_Tagged_Type
(Id
));
1753 return Elist15
(Id
);
1754 end Primitive_Operations
;
1756 function Prival
(Id
: E
) return E
is
1758 pragma Assert
(Is_Protected_Private
(Id
));
1762 function Privals_Chain
(Id
: E
) return L
is
1764 pragma Assert
(Is_Overloadable
(Id
)
1765 or else Ekind
(Id
) = E_Entry_Family
);
1766 return Elist23
(Id
);
1769 function Private_Dependents
(Id
: E
) return L
is
1771 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
1772 return Elist18
(Id
);
1773 end Private_Dependents
;
1775 function Private_View
(Id
: E
) return N
is
1777 pragma Assert
(Is_Private_Type
(Id
));
1781 function Protected_Body_Subprogram
(Id
: E
) return E
is
1783 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
1785 end Protected_Body_Subprogram
;
1787 function Protected_Formal
(Id
: E
) return E
is
1789 pragma Assert
(Is_Formal
(Id
));
1791 end Protected_Formal
;
1793 function Protected_Operation
(Id
: E
) return N
is
1795 pragma Assert
(Is_Protected_Private
(Id
));
1797 end Protected_Operation
;
1799 function Reachable
(Id
: E
) return B
is
1804 function Referenced
(Id
: E
) return B
is
1806 return Flag156
(Id
);
1809 function Referenced_Object
(Id
: E
) return N
is
1811 pragma Assert
(Is_Type
(Id
));
1813 end Referenced_Object
;
1815 function Register_Exception_Call
(Id
: E
) return N
is
1817 pragma Assert
(Ekind
(Id
) = E_Exception
);
1819 end Register_Exception_Call
;
1821 function Related_Array_Object
(Id
: E
) return E
is
1823 pragma Assert
(Is_Array_Type
(Id
));
1825 end Related_Array_Object
;
1827 function Related_Instance
(Id
: E
) return E
is
1829 pragma Assert
(Ekind
(Id
) = E_Package
);
1831 end Related_Instance
;
1833 function Renamed_Entity
(Id
: E
) return N
is
1838 function Renamed_Object
(Id
: E
) return N
is
1843 function Renaming_Map
(Id
: E
) return U
is
1848 function Return_Present
(Id
: E
) return B
is
1853 function Returns_By_Ref
(Id
: E
) return B
is
1858 function Reverse_Bit_Order
(Id
: E
) return B
is
1860 pragma Assert
(Is_Record_Type
(Id
));
1861 return Flag164
(Base_Type
(Id
));
1862 end Reverse_Bit_Order
;
1864 function RM_Size
(Id
: E
) return U
is
1866 pragma Assert
(Is_Type
(Id
));
1870 function Scalar_Range
(Id
: E
) return N
is
1875 function Scale_Value
(Id
: E
) return U
is
1880 function Scope_Depth_Value
(Id
: E
) return U
is
1883 end Scope_Depth_Value
;
1885 function Sec_Stack_Needed_For_Return
(Id
: E
) return B
is
1887 return Flag167
(Id
);
1888 end Sec_Stack_Needed_For_Return
;
1890 function Shadow_Entities
(Id
: E
) return S
is
1893 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
1895 end Shadow_Entities
;
1897 function Shared_Var_Assign_Proc
(Id
: E
) return E
is
1899 pragma Assert
(Ekind
(Id
) = E_Variable
);
1901 end Shared_Var_Assign_Proc
;
1903 function Shared_Var_Read_Proc
(Id
: E
) return E
is
1905 pragma Assert
(Ekind
(Id
) = E_Variable
);
1907 end Shared_Var_Read_Proc
;
1909 function Size_Check_Code
(Id
: E
) return N
is
1911 pragma Assert
(Ekind
(Id
) = E_Constant
or else Ekind
(Id
) = E_Variable
);
1913 end Size_Check_Code
;
1915 function Size_Depends_On_Discriminant
(Id
: E
) return B
is
1917 return Flag177
(Id
);
1918 end Size_Depends_On_Discriminant
;
1920 function Size_Known_At_Compile_Time
(Id
: E
) return B
is
1923 end Size_Known_At_Compile_Time
;
1925 function Small_Value
(Id
: E
) return R
is
1927 pragma Assert
(Is_Fixed_Point_Type
(Id
));
1928 return Ureal21
(Id
);
1931 function Spec_Entity
(Id
: E
) return E
is
1934 (Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
1938 function Storage_Size_Variable
(Id
: E
) return E
is
1940 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
1941 return Node15
(Implementation_Base_Type
(Id
));
1942 end Storage_Size_Variable
;
1944 function Strict_Alignment
(Id
: E
) return B
is
1946 return Flag145
(Implementation_Base_Type
(Id
));
1947 end Strict_Alignment
;
1949 function String_Literal_Length
(Id
: E
) return U
is
1952 end String_Literal_Length
;
1954 function String_Literal_Low_Bound
(Id
: E
) return N
is
1957 end String_Literal_Low_Bound
;
1959 function Suppress_Access_Checks
(Id
: E
) return B
is
1962 end Suppress_Access_Checks
;
1964 function Suppress_Accessibility_Checks
(Id
: E
) return B
is
1967 end Suppress_Accessibility_Checks
;
1969 function Suppress_Discriminant_Checks
(Id
: E
) return B
is
1972 end Suppress_Discriminant_Checks
;
1974 function Suppress_Division_Checks
(Id
: E
) return B
is
1977 end Suppress_Division_Checks
;
1979 function Suppress_Elaboration_Checks
(Id
: E
) return B
is
1982 end Suppress_Elaboration_Checks
;
1984 function Suppress_Elaboration_Warnings
(Id
: E
) return B
is
1986 return Flag148
(Id
);
1987 end Suppress_Elaboration_Warnings
;
1989 function Suppress_Index_Checks
(Id
: E
) return B
is
1992 end Suppress_Index_Checks
;
1994 function Suppress_Init_Proc
(Id
: E
) return B
is
1996 return Flag105
(Base_Type
(Id
));
1997 end Suppress_Init_Proc
;
1999 function Suppress_Length_Checks
(Id
: E
) return B
is
2002 end Suppress_Length_Checks
;
2004 function Suppress_Overflow_Checks
(Id
: E
) return B
is
2007 end Suppress_Overflow_Checks
;
2009 function Suppress_Range_Checks
(Id
: E
) return B
is
2012 end Suppress_Range_Checks
;
2014 function Suppress_Storage_Checks
(Id
: E
) return B
is
2017 end Suppress_Storage_Checks
;
2019 function Suppress_Style_Checks
(Id
: E
) return B
is
2021 return Flag165
(Id
);
2022 end Suppress_Style_Checks
;
2024 function Suppress_Tag_Checks
(Id
: E
) return B
is
2027 end Suppress_Tag_Checks
;
2029 function Underlying_Full_View
(Id
: E
) return E
is
2031 pragma Assert
(Ekind
(Id
) in Private_Kind
);
2033 end Underlying_Full_View
;
2035 function Unset_Reference
(Id
: E
) return N
is
2038 end Unset_Reference
;
2040 function Uses_Sec_Stack
(Id
: E
) return B
is
2045 function Vax_Float
(Id
: E
) return B
is
2047 return Flag151
(Base_Type
(Id
));
2050 function Warnings_Off
(Id
: E
) return B
is
2055 ------------------------------
2056 -- Classification Functions --
2057 ------------------------------
2059 function Is_Access_Type
(Id
: E
) return B
is
2061 return Ekind
(Id
) in Access_Kind
;
2064 function Is_Array_Type
(Id
: E
) return B
is
2066 return Ekind
(Id
) in Array_Kind
;
2069 function Is_Class_Wide_Type
(Id
: E
) return B
is
2071 return Ekind
(Id
) in Class_Wide_Kind
;
2072 end Is_Class_Wide_Type
;
2074 function Is_Composite_Type
(Id
: E
) return B
is
2076 return Ekind
(Id
) in Composite_Kind
;
2077 end Is_Composite_Type
;
2079 function Is_Concurrent_Body
(Id
: E
) return B
is
2081 return Ekind
(Id
) in
2082 Concurrent_Body_Kind
;
2083 end Is_Concurrent_Body
;
2085 function Is_Concurrent_Record_Type
(Id
: E
) return B
is
2088 end Is_Concurrent_Record_Type
;
2090 function Is_Concurrent_Type
(Id
: E
) return B
is
2092 return Ekind
(Id
) in Concurrent_Kind
;
2093 end Is_Concurrent_Type
;
2095 function Is_Decimal_Fixed_Point_Type
(Id
: E
) return B
is
2097 return Ekind
(Id
) in
2098 Decimal_Fixed_Point_Kind
;
2099 end Is_Decimal_Fixed_Point_Type
;
2101 function Is_Digits_Type
(Id
: E
) return B
is
2103 return Ekind
(Id
) in Digits_Kind
;
2106 function Is_Discrete_Or_Fixed_Point_Type
(Id
: E
) return B
is
2108 return Ekind
(Id
) in Discrete_Or_Fixed_Point_Kind
;
2109 end Is_Discrete_Or_Fixed_Point_Type
;
2111 function Is_Discrete_Type
(Id
: E
) return B
is
2113 return Ekind
(Id
) in Discrete_Kind
;
2114 end Is_Discrete_Type
;
2116 function Is_Elementary_Type
(Id
: E
) return B
is
2118 return Ekind
(Id
) in Elementary_Kind
;
2119 end Is_Elementary_Type
;
2121 function Is_Entry
(Id
: E
) return B
is
2123 return Ekind
(Id
) in Entry_Kind
;
2126 function Is_Enumeration_Type
(Id
: E
) return B
is
2128 return Ekind
(Id
) in
2130 end Is_Enumeration_Type
;
2132 function Is_Fixed_Point_Type
(Id
: E
) return B
is
2134 return Ekind
(Id
) in
2136 end Is_Fixed_Point_Type
;
2138 function Is_Floating_Point_Type
(Id
: E
) return B
is
2140 return Ekind
(Id
) in Float_Kind
;
2141 end Is_Floating_Point_Type
;
2143 function Is_Formal
(Id
: E
) return B
is
2145 return Ekind
(Id
) in Formal_Kind
;
2148 function Is_Generic_Unit
(Id
: E
) return B
is
2150 return Ekind
(Id
) in Generic_Unit_Kind
;
2151 end Is_Generic_Unit
;
2153 function Is_Incomplete_Or_Private_Type
(Id
: E
) return B
is
2155 return Ekind
(Id
) in
2156 Incomplete_Or_Private_Kind
;
2157 end Is_Incomplete_Or_Private_Type
;
2159 function Is_Integer_Type
(Id
: E
) return B
is
2161 return Ekind
(Id
) in Integer_Kind
;
2162 end Is_Integer_Type
;
2164 function Is_Modular_Integer_Type
(Id
: E
) return B
is
2166 return Ekind
(Id
) in
2167 Modular_Integer_Kind
;
2168 end Is_Modular_Integer_Type
;
2170 function Is_Named_Number
(Id
: E
) return B
is
2172 return Ekind
(Id
) in Named_Kind
;
2173 end Is_Named_Number
;
2175 function Is_Numeric_Type
(Id
: E
) return B
is
2177 return Ekind
(Id
) in Numeric_Kind
;
2178 end Is_Numeric_Type
;
2180 function Is_Object
(Id
: E
) return B
is
2182 return Ekind
(Id
) in Object_Kind
;
2185 function Is_Ordinary_Fixed_Point_Type
(Id
: E
) return B
is
2187 return Ekind
(Id
) in
2188 Ordinary_Fixed_Point_Kind
;
2189 end Is_Ordinary_Fixed_Point_Type
;
2191 function Is_Overloadable
(Id
: E
) return B
is
2193 return Ekind
(Id
) in Overloadable_Kind
;
2194 end Is_Overloadable
;
2196 function Is_Private_Type
(Id
: E
) return B
is
2198 return Ekind
(Id
) in Private_Kind
;
2199 end Is_Private_Type
;
2201 function Is_Protected_Type
(Id
: E
) return B
is
2203 return Ekind
(Id
) in Protected_Kind
;
2204 end Is_Protected_Type
;
2206 function Is_Real_Type
(Id
: E
) return B
is
2208 return Ekind
(Id
) in Real_Kind
;
2211 function Is_Record_Type
(Id
: E
) return B
is
2213 return Ekind
(Id
) in Record_Kind
;
2216 function Is_Scalar_Type
(Id
: E
) return B
is
2218 return Ekind
(Id
) in Scalar_Kind
;
2221 function Is_Signed_Integer_Type
(Id
: E
) return B
is
2223 return Ekind
(Id
) in
2224 Signed_Integer_Kind
;
2225 end Is_Signed_Integer_Type
;
2227 function Is_Subprogram
(Id
: E
) return B
is
2229 return Ekind
(Id
) in Subprogram_Kind
;
2232 function Is_Task_Type
(Id
: E
) return B
is
2234 return Ekind
(Id
) in Task_Kind
;
2237 function Is_Type
(Id
: E
) return B
is
2239 return Ekind
(Id
) in Type_Kind
;
2242 ------------------------------
2243 -- Attribute Set Procedures --
2244 ------------------------------
2246 procedure Set_Accept_Address
(Id
: E
; V
: L
) is
2248 Set_Elist21
(Id
, V
);
2249 end Set_Accept_Address
;
2251 procedure Set_Access_Disp_Table
(Id
: E
; V
: E
) is
2253 pragma Assert
(Is_Tagged_Type
(Id
) and then Id
= Base_Type
(Id
));
2255 end Set_Access_Disp_Table
;
2257 procedure Set_Associated_Final_Chain
(Id
: E
; V
: E
) is
2259 pragma Assert
(Is_Access_Type
(Id
));
2261 end Set_Associated_Final_Chain
;
2263 procedure Set_Associated_Formal_Package
(Id
: E
; V
: E
) is
2266 end Set_Associated_Formal_Package
;
2268 procedure Set_Associated_Node_For_Itype
(Id
: E
; V
: E
) is
2271 end Set_Associated_Node_For_Itype
;
2273 procedure Set_Associated_Storage_Pool
(Id
: E
; V
: E
) is
2275 pragma Assert
(Is_Access_Type
(Id
) and then Id
= Base_Type
(Id
));
2277 end Set_Associated_Storage_Pool
;
2279 procedure Set_Actual_Subtype
(Id
: E
; V
: E
) is
2282 (Ekind
(Id
) = E_Constant
2283 or else Ekind
(Id
) = E_Variable
2284 or else Ekind
(Id
) = E_Generic_In_Out_Parameter
2285 or else Ekind
(Id
) in E_In_Parameter
.. E_In_Out_Parameter
);
2287 end Set_Actual_Subtype
;
2289 procedure Set_Address_Taken
(Id
: E
; V
: B
:= True) is
2291 Set_Flag104
(Id
, V
);
2292 end Set_Address_Taken
;
2294 procedure Set_Alias
(Id
: E
; V
: E
) is
2297 (Is_Overloadable
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
2301 procedure Set_Alignment
(Id
: E
; V
: U
) is
2306 procedure Set_Barrier_Function
(Id
: E
; V
: N
) is
2308 pragma Assert
(Is_Entry
(Id
));
2310 end Set_Barrier_Function
;
2312 procedure Set_Block_Node
(Id
: E
; V
: N
) is
2314 pragma Assert
(Ekind
(Id
) = E_Block
);
2318 procedure Set_Body_Entity
(Id
: E
; V
: E
) is
2321 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
2323 end Set_Body_Entity
;
2325 procedure Set_C_Pass_By_Copy
(Id
: E
; V
: B
:= True) is
2327 pragma Assert
(Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
2328 Set_Flag125
(Id
, V
);
2329 end Set_C_Pass_By_Copy
;
2331 procedure Set_Class_Wide_Type
(Id
: E
; V
: E
) is
2333 pragma Assert
(Is_Type
(Id
));
2335 end Set_Class_Wide_Type
;
2337 procedure Set_Cloned_Subtype
(Id
: E
; V
: E
) is
2340 (Ekind
(Id
) = E_Record_Subtype
2341 or else Ekind
(Id
) = E_Class_Wide_Subtype
);
2343 end Set_Cloned_Subtype
;
2345 procedure Set_Component_Bit_Offset
(Id
: E
; V
: U
) is
2348 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
2350 end Set_Component_Bit_Offset
;
2352 procedure Set_Component_Clause
(Id
: E
; V
: N
) is
2355 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
2357 end Set_Component_Clause
;
2359 procedure Set_Component_Size
(Id
: E
; V
: U
) is
2361 pragma Assert
(Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
));
2363 end Set_Component_Size
;
2365 procedure Set_Component_Type
(Id
: E
; V
: E
) is
2367 pragma Assert
(Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
));
2369 end Set_Component_Type
;
2371 procedure Set_Corresponding_Concurrent_Type
(Id
: E
; V
: E
) is
2374 (Ekind
(Id
) = E_Record_Type
and then Is_Concurrent_Type
(V
));
2376 end Set_Corresponding_Concurrent_Type
;
2378 procedure Set_Corresponding_Discriminant
(Id
: E
; V
: E
) is
2380 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
2382 end Set_Corresponding_Discriminant
;
2384 procedure Set_Corresponding_Equality
(Id
: E
; V
: E
) is
2387 (Ekind
(Id
) = E_Function
2388 and then not Comes_From_Source
(Id
)
2389 and then Chars
(Id
) = Name_Op_Ne
);
2391 end Set_Corresponding_Equality
;
2393 procedure Set_Corresponding_Record_Type
(Id
: E
; V
: E
) is
2395 pragma Assert
(Is_Concurrent_Type
(Id
));
2397 end Set_Corresponding_Record_Type
;
2399 procedure Set_Corresponding_Remote_Type
(Id
: E
; V
: E
) is
2402 end Set_Corresponding_Remote_Type
;
2404 procedure Set_CR_Discriminant
(Id
: E
; V
: E
) is
2407 end Set_CR_Discriminant
;
2409 procedure Set_Debug_Info_Off
(Id
: E
; V
: B
:= True) is
2411 Set_Flag166
(Id
, V
);
2412 end Set_Debug_Info_Off
;
2414 procedure Set_Debug_Renaming_Link
(Id
: E
; V
: E
) is
2417 end Set_Debug_Renaming_Link
;
2419 procedure Set_Default_Expr_Function
(Id
: E
; V
: E
) is
2421 pragma Assert
(Is_Formal
(Id
));
2423 end Set_Default_Expr_Function
;
2425 procedure Set_Default_Expressions_Processed
(Id
: E
; V
: B
:= True) is
2427 Set_Flag108
(Id
, V
);
2428 end Set_Default_Expressions_Processed
;
2430 procedure Set_Default_Value
(Id
: E
; V
: N
) is
2432 pragma Assert
(Is_Formal
(Id
));
2434 end Set_Default_Value
;
2436 procedure Set_Delay_Cleanups
(Id
: E
; V
: B
:= True) is
2440 or else Is_Task_Type
(Id
)
2441 or else Ekind
(Id
) = E_Block
);
2442 Set_Flag114
(Id
, V
);
2443 end Set_Delay_Cleanups
;
2445 procedure Set_Delay_Subprogram_Descriptors
(Id
: E
; V
: B
:= True) is
2449 or else Ekind
(Id
) = E_Package
2450 or else Ekind
(Id
) = E_Package_Body
);
2452 end Set_Delay_Subprogram_Descriptors
;
2454 procedure Set_Delta_Value
(Id
: E
; V
: R
) is
2456 pragma Assert
(Is_Fixed_Point_Type
(Id
));
2457 Set_Ureal18
(Id
, V
);
2458 end Set_Delta_Value
;
2460 procedure Set_Dependent_Instances
(Id
: E
; V
: L
) is
2462 pragma Assert
(Is_Generic_Instance
(Id
));
2464 end Set_Dependent_Instances
;
2466 procedure Set_Depends_On_Private
(Id
: E
; V
: B
:= True) is
2468 pragma Assert
(Nkind
(Id
) in N_Entity
);
2470 end Set_Depends_On_Private
;
2472 procedure Set_Digits_Value
(Id
: E
; V
: U
) is
2475 (Is_Floating_Point_Type
(Id
)
2476 or else Is_Decimal_Fixed_Point_Type
(Id
));
2478 end Set_Digits_Value
;
2480 procedure Set_Directly_Designated_Type
(Id
: E
; V
: E
) is
2483 end Set_Directly_Designated_Type
;
2485 procedure Set_Discard_Names
(Id
: E
; V
: B
:= True) is
2488 end Set_Discard_Names
;
2490 procedure Set_Discriminal
(Id
: E
; V
: E
) is
2492 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
2494 end Set_Discriminal
;
2496 procedure Set_Discriminal_Link
(Id
: E
; V
: E
) is
2499 end Set_Discriminal_Link
;
2501 procedure Set_Discriminant_Checking_Func
(Id
: E
; V
: E
) is
2504 (Ekind
(Id
) = E_Component
and Ekind
(Scope
(Id
)) in Record_Kind
);
2506 end Set_Discriminant_Checking_Func
;
2508 procedure Set_Discriminant_Constraint
(Id
: E
; V
: L
) is
2510 pragma Assert
(Nkind
(Id
) in N_Entity
);
2511 Set_Elist21
(Id
, V
);
2512 end Set_Discriminant_Constraint
;
2514 procedure Set_Discriminant_Default_Value
(Id
: E
; V
: N
) is
2517 end Set_Discriminant_Default_Value
;
2519 procedure Set_Discriminant_Number
(Id
: E
; V
: U
) is
2522 end Set_Discriminant_Number
;
2524 procedure Set_DT_Entry_Count
(Id
: E
; V
: U
) is
2526 pragma Assert
(Ekind
(Id
) = E_Component
);
2528 end Set_DT_Entry_Count
;
2530 procedure Set_DT_Position
(Id
: E
; V
: U
) is
2532 pragma Assert
(Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2534 end Set_DT_Position
;
2536 procedure Set_DTC_Entity
(Id
: E
; V
: E
) is
2539 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2543 procedure Set_Elaborate_All_Desirable
(Id
: E
; V
: B
:= True) is
2545 Set_Flag146
(Id
, V
);
2546 end Set_Elaborate_All_Desirable
;
2548 procedure Set_Elaboration_Entity
(Id
: E
; V
: E
) is
2553 Ekind
(Id
) = E_Package
2555 Is_Generic_Unit
(Id
));
2557 end Set_Elaboration_Entity
;
2559 procedure Set_Elaboration_Entity_Required
(Id
: E
; V
: B
:= True) is
2564 Ekind
(Id
) = E_Package
2566 Is_Generic_Unit
(Id
));
2567 Set_Flag174
(Id
, V
);
2568 end Set_Elaboration_Entity_Required
;
2570 procedure Set_Enclosing_Scope
(Id
: E
; V
: E
) is
2573 end Set_Enclosing_Scope
;
2575 procedure Set_Entry_Accepted
(Id
: E
; V
: B
:= True) is
2577 pragma Assert
(Is_Entry
(Id
));
2578 Set_Flag152
(Id
, V
);
2579 end Set_Entry_Accepted
;
2581 procedure Set_Entry_Bodies_Array
(Id
: E
; V
: E
) is
2584 end Set_Entry_Bodies_Array
;
2586 procedure Set_Entry_Cancel_Parameter
(Id
: E
; V
: E
) is
2589 end Set_Entry_Cancel_Parameter
;
2591 procedure Set_Entry_Component
(Id
: E
; V
: E
) is
2594 end Set_Entry_Component
;
2596 procedure Set_Entry_Formal
(Id
: E
; V
: E
) is
2599 end Set_Entry_Formal
;
2601 procedure Set_Entry_Index_Constant
(Id
: E
; V
: E
) is
2603 pragma Assert
(Ekind
(Id
) = E_Entry_Index_Parameter
);
2605 end Set_Entry_Index_Constant
;
2607 procedure Set_Entry_Parameters_Type
(Id
: E
; V
: E
) is
2610 end Set_Entry_Parameters_Type
;
2612 procedure Set_Enum_Pos_To_Rep
(Id
: E
; V
: E
) is
2614 pragma Assert
(Ekind
(Id
) = E_Enumeration_Type
);
2616 end Set_Enum_Pos_To_Rep
;
2618 procedure Set_Enumeration_Pos
(Id
: E
; V
: U
) is
2620 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
2622 end Set_Enumeration_Pos
;
2624 procedure Set_Enumeration_Rep
(Id
: E
; V
: U
) is
2626 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
2628 end Set_Enumeration_Rep
;
2630 procedure Set_Enumeration_Rep_Expr
(Id
: E
; V
: N
) is
2632 pragma Assert
(Ekind
(Id
) = E_Enumeration_Literal
);
2634 end Set_Enumeration_Rep_Expr
;
2636 procedure Set_Equivalent_Type
(Id
: E
; V
: E
) is
2639 (Ekind
(Id
) = E_Class_Wide_Type
or else
2640 Ekind
(Id
) = E_Class_Wide_Subtype
or else
2641 Ekind
(Id
) = E_Access_Protected_Subprogram_Type
or else
2642 Ekind
(Id
) = E_Access_Subprogram_Type
or else
2643 Ekind
(Id
) = E_Exception_Type
);
2645 end Set_Equivalent_Type
;
2647 procedure Set_Esize
(Id
: E
; V
: U
) is
2652 procedure Set_Exception_Code
(Id
: E
; V
: U
) is
2654 pragma Assert
(Ekind
(Id
) = E_Exception
);
2656 end Set_Exception_Code
;
2658 procedure Set_Extra_Accessibility
(Id
: E
; V
: E
) is
2660 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
2662 end Set_Extra_Accessibility
;
2664 procedure Set_Extra_Constrained
(Id
: E
; V
: E
) is
2666 pragma Assert
(Is_Formal
(Id
) or else Ekind
(Id
) = E_Variable
);
2668 end Set_Extra_Constrained
;
2670 procedure Set_Extra_Formal
(Id
: E
; V
: E
) is
2673 end Set_Extra_Formal
;
2675 procedure Set_Finalization_Chain_Entity
(Id
: E
; V
: E
) is
2678 end Set_Finalization_Chain_Entity
;
2680 procedure Set_Finalize_Storage_Only
(Id
: E
; V
: B
:= True) is
2682 pragma Assert
(Is_Type
(Id
) and then Id
= Base_Type
(Id
));
2683 Set_Flag158
(Id
, V
);
2684 end Set_Finalize_Storage_Only
;
2686 procedure Set_First_Entity
(Id
: E
; V
: E
) is
2689 end Set_First_Entity
;
2691 procedure Set_First_Index
(Id
: E
; V
: N
) is
2694 end Set_First_Index
;
2696 procedure Set_First_Literal
(Id
: E
; V
: E
) is
2699 end Set_First_Literal
;
2701 procedure Set_First_Optional_Parameter
(Id
: E
; V
: E
) is
2704 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Procedure
);
2706 end Set_First_Optional_Parameter
;
2708 procedure Set_First_Private_Entity
(Id
: E
; V
: E
) is
2710 pragma Assert
(Nkind
(Id
) in N_Entity
);
2712 end Set_First_Private_Entity
;
2714 procedure Set_First_Rep_Item
(Id
: E
; V
: N
) is
2717 end Set_First_Rep_Item
;
2719 procedure Set_Freeze_Node
(Id
: E
; V
: N
) is
2722 end Set_Freeze_Node
;
2724 procedure Set_From_With_Type
(Id
: E
; V
: B
:= True) is
2728 or else Ekind
(Id
) = E_Package
);
2729 Set_Flag159
(Id
, V
);
2730 end Set_From_With_Type
;
2732 procedure Set_Full_View
(Id
: E
; V
: E
) is
2734 pragma Assert
(Is_Type
(Id
) or else Ekind
(Id
) = E_Constant
);
2738 procedure Set_Function_Returns_With_DSP
(Id
: E
; V
: B
:= True) is
2741 (Is_Subprogram
(Id
) or else Ekind
(Id
) = E_Subprogram_Type
);
2742 Set_Flag169
(Id
, V
);
2743 end Set_Function_Returns_With_DSP
;
2745 procedure Set_Generic_Renamings
(Id
: E
; V
: L
) is
2747 Set_Elist23
(Id
, V
);
2748 end Set_Generic_Renamings
;
2750 procedure Set_Girder_Constraint
(Id
: E
; V
: L
) is
2752 pragma Assert
(Nkind
(Id
) in N_Entity
);
2753 Set_Elist23
(Id
, V
);
2754 end Set_Girder_Constraint
;
2756 procedure Set_Handler_Records
(Id
: E
; V
: S
) is
2759 end Set_Handler_Records
;
2761 procedure Set_Has_Aliased_Components
(Id
: E
; V
: B
:= True) is
2763 pragma Assert
(Base_Type
(Id
) = Id
);
2764 Set_Flag135
(Id
, V
);
2765 end Set_Has_Aliased_Components
;
2767 procedure Set_Has_Alignment_Clause
(Id
: E
; V
: B
:= True) is
2770 end Set_Has_Alignment_Clause
;
2772 procedure Set_Has_All_Calls_Remote
(Id
: E
; V
: B
:= True) is
2775 end Set_Has_All_Calls_Remote
;
2777 procedure Set_Has_Atomic_Components
(Id
: E
; V
: B
:= True) is
2779 pragma Assert
(not Is_Type
(Id
) or else Base_Type
(Id
) = Id
);
2781 end Set_Has_Atomic_Components
;
2783 procedure Set_Has_Biased_Representation
(Id
: E
; V
: B
:= True) is
2786 ((V
= False) or else (Is_Discrete_Type
(Id
) or Is_Object
(Id
)));
2787 Set_Flag139
(Id
, V
);
2788 end Set_Has_Biased_Representation
;
2790 procedure Set_Has_Completion
(Id
: E
; V
: B
:= True) is
2793 end Set_Has_Completion
;
2795 procedure Set_Has_Completion_In_Body
(Id
: E
; V
: B
:= True) is
2797 pragma Assert
(Ekind
(Id
) = E_Incomplete_Type
);
2799 end Set_Has_Completion_In_Body
;
2801 procedure Set_Has_Complex_Representation
(Id
: E
; V
: B
:= True) is
2803 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
2804 Set_Flag140
(Id
, V
);
2805 end Set_Has_Complex_Representation
;
2807 procedure Set_Has_Component_Size_Clause
(Id
: E
; V
: B
:= True) is
2809 pragma Assert
(Ekind
(Id
) = E_Array_Type
);
2811 end Set_Has_Component_Size_Clause
;
2813 procedure Set_Has_Controlled_Component
(Id
: E
; V
: B
:= True) is
2815 pragma Assert
(Base_Type
(Id
) = Id
);
2817 end Set_Has_Controlled_Component
;
2819 procedure Set_Has_Controlling_Result
(Id
: E
; V
: B
:= True) is
2822 end Set_Has_Controlling_Result
;
2824 procedure Set_Has_Convention_Pragma
(Id
: E
; V
: B
:= True) is
2826 Set_Flag119
(Id
, V
);
2827 end Set_Has_Convention_Pragma
;
2829 procedure Set_Has_Delayed_Freeze
(Id
: E
; V
: B
:= True) is
2831 pragma Assert
(Nkind
(Id
) in N_Entity
);
2833 end Set_Has_Delayed_Freeze
;
2835 procedure Set_Has_Discriminants
(Id
: E
; V
: B
:= True) is
2837 pragma Assert
(Nkind
(Id
) in N_Entity
);
2839 end Set_Has_Discriminants
;
2841 procedure Set_Has_Enumeration_Rep_Clause
(Id
: E
; V
: B
:= True) is
2843 pragma Assert
(Is_Enumeration_Type
(Id
));
2845 end Set_Has_Enumeration_Rep_Clause
;
2847 procedure Set_Has_Exit
(Id
: E
; V
: B
:= True) is
2852 procedure Set_Has_External_Tag_Rep_Clause
(Id
: E
; V
: B
:= True) is
2854 pragma Assert
(Is_Tagged_Type
(Id
));
2855 Set_Flag110
(Id
, V
);
2856 end Set_Has_External_Tag_Rep_Clause
;
2858 procedure Set_Has_Forward_Instantiation
(Id
: E
; V
: B
:= True) is
2860 Set_Flag175
(Id
, V
);
2861 end Set_Has_Forward_Instantiation
;
2863 procedure Set_Has_Fully_Qualified_Name
(Id
: E
; V
: B
:= True) is
2865 Set_Flag173
(Id
, V
);
2866 end Set_Has_Fully_Qualified_Name
;
2868 procedure Set_Has_Gigi_Rep_Item
(Id
: E
; V
: B
:= True) is
2871 end Set_Has_Gigi_Rep_Item
;
2873 procedure Set_Has_Homonym
(Id
: E
; V
: B
:= True) is
2876 end Set_Has_Homonym
;
2878 procedure Set_Has_Machine_Radix_Clause
(Id
: E
; V
: B
:= True) is
2880 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
2882 end Set_Has_Machine_Radix_Clause
;
2884 procedure Set_Has_Master_Entity
(Id
: E
; V
: B
:= True) is
2887 end Set_Has_Master_Entity
;
2889 procedure Set_Has_Missing_Return
(Id
: E
; V
: B
:= True) is
2892 (Ekind
(Id
) = E_Function
or else Ekind
(Id
) = E_Generic_Function
);
2893 Set_Flag142
(Id
, V
);
2894 end Set_Has_Missing_Return
;
2896 procedure Set_Has_Nested_Block_With_Handler
(Id
: E
; V
: B
:= True) is
2898 Set_Flag101
(Id
, V
);
2899 end Set_Has_Nested_Block_With_Handler
;
2901 procedure Set_Has_Non_Standard_Rep
(Id
: E
; V
: B
:= True) is
2903 pragma Assert
(Base_Type
(Id
) = Id
);
2905 end Set_Has_Non_Standard_Rep
;
2907 procedure Set_Has_Object_Size_Clause
(Id
: E
; V
: B
:= True) is
2909 pragma Assert
(Is_Type
(Id
));
2910 Set_Flag172
(Id
, V
);
2911 end Set_Has_Object_Size_Clause
;
2913 procedure Set_Has_Per_Object_Constraint
(Id
: E
; V
: B
:= True) is
2915 Set_Flag154
(Id
, V
);
2916 end Set_Has_Per_Object_Constraint
;
2918 procedure Set_Has_Pragma_Controlled
(Id
: E
; V
: B
:= True) is
2920 pragma Assert
(Is_Access_Type
(Id
));
2921 Set_Flag27
(Base_Type
(Id
), V
);
2922 end Set_Has_Pragma_Controlled
;
2924 procedure Set_Has_Pragma_Elaborate_Body
(Id
: E
; V
: B
:= True) is
2926 Set_Flag150
(Id
, V
);
2927 end Set_Has_Pragma_Elaborate_Body
;
2929 procedure Set_Has_Pragma_Inline
(Id
: E
; V
: B
:= True) is
2931 Set_Flag157
(Id
, V
);
2932 end Set_Has_Pragma_Inline
;
2934 procedure Set_Has_Pragma_Pack
(Id
: E
; V
: B
:= True) is
2936 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
2937 pragma Assert
(Id
= Base_Type
(Id
));
2938 Set_Flag121
(Id
, V
);
2939 end Set_Has_Pragma_Pack
;
2941 procedure Set_Has_Pragma_Pure_Function
(Id
: E
; V
: B
:= True) is
2943 pragma Assert
(Is_Subprogram
(Id
));
2944 Set_Flag179
(Id
, V
);
2945 end Set_Has_Pragma_Pure_Function
;
2947 procedure Set_Has_Pragma_Unreferenced
(Id
: E
; V
: B
:= True) is
2949 Set_Flag180
(Id
, V
);
2950 end Set_Has_Pragma_Unreferenced
;
2952 procedure Set_Has_Primitive_Operations
(Id
: E
; V
: B
:= True) is
2954 pragma Assert
(Id
= Base_Type
(Id
));
2955 Set_Flag120
(Id
, V
);
2956 end Set_Has_Primitive_Operations
;
2958 procedure Set_Has_Private_Declaration
(Id
: E
; V
: B
:= True) is
2960 Set_Flag155
(Id
, V
);
2961 end Set_Has_Private_Declaration
;
2963 procedure Set_Has_Qualified_Name
(Id
: E
; V
: B
:= True) is
2965 Set_Flag161
(Id
, V
);
2966 end Set_Has_Qualified_Name
;
2968 procedure Set_Has_Record_Rep_Clause
(Id
: E
; V
: B
:= True) is
2970 pragma Assert
(Id
= Base_Type
(Id
));
2972 end Set_Has_Record_Rep_Clause
;
2974 procedure Set_Has_Recursive_Call
(Id
: E
; V
: B
:= True) is
2976 pragma Assert
(Is_Subprogram
(Id
));
2977 Set_Flag143
(Id
, V
);
2978 end Set_Has_Recursive_Call
;
2980 procedure Set_Has_Size_Clause
(Id
: E
; V
: B
:= True) is
2983 end Set_Has_Size_Clause
;
2985 procedure Set_Has_Small_Clause
(Id
: E
; V
: B
:= True) is
2988 end Set_Has_Small_Clause
;
2990 procedure Set_Has_Specified_Layout
(Id
: E
; V
: B
:= True) is
2992 pragma Assert
(Id
= Base_Type
(Id
));
2993 Set_Flag100
(Id
, V
);
2994 end Set_Has_Specified_Layout
;
2996 procedure Set_Has_Storage_Size_Clause
(Id
: E
; V
: B
:= True) is
2998 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
2999 pragma Assert
(Base_Type
(Id
) = Id
);
3001 end Set_Has_Storage_Size_Clause
;
3003 procedure Set_Has_Subprogram_Descriptor
(Id
: E
; V
: B
:= True) is
3006 end Set_Has_Subprogram_Descriptor
;
3008 procedure Set_Has_Task
(Id
: E
; V
: B
:= True) is
3010 pragma Assert
(Base_Type
(Id
) = Id
);
3014 procedure Set_Has_Unchecked_Union
(Id
: E
; V
: B
:= True) is
3016 pragma Assert
(Base_Type
(Id
) = Id
);
3017 Set_Flag123
(Id
, V
);
3018 end Set_Has_Unchecked_Union
;
3020 procedure Set_Has_Unknown_Discriminants
(Id
: E
; V
: B
:= True) is
3022 pragma Assert
(Is_Type
(Id
));
3024 end Set_Has_Unknown_Discriminants
;
3026 procedure Set_Has_Volatile_Components
(Id
: E
; V
: B
:= True) is
3028 pragma Assert
(not Is_Type
(Id
) or else Base_Type
(Id
) = Id
);
3030 end Set_Has_Volatile_Components
;
3032 procedure Set_Hiding_Loop_Variable
(Id
: E
; V
: E
) is
3034 pragma Assert
(Ekind
(Id
) = E_Variable
);
3036 end Set_Hiding_Loop_Variable
;
3038 procedure Set_Homonym
(Id
: E
; V
: E
) is
3040 pragma Assert
(Id
/= V
);
3043 procedure Set_In_Package_Body
(Id
: E
; V
: B
:= True) is
3046 end Set_In_Package_Body
;
3048 procedure Set_In_Private_Part
(Id
: E
; V
: B
:= True) is
3051 end Set_In_Private_Part
;
3053 procedure Set_In_Use
(Id
: E
; V
: B
:= True) is
3055 pragma Assert
(Nkind
(Id
) in N_Entity
);
3059 procedure Set_Inner_Instances
(Id
: E
; V
: L
) is
3061 Set_Elist23
(Id
, V
);
3062 end Set_Inner_Instances
;
3064 procedure Set_Interface_Name
(Id
: E
; V
: N
) is
3067 end Set_Interface_Name
;
3069 procedure Set_Is_Abstract
(Id
: E
; V
: B
:= True) is
3072 end Set_Is_Abstract
;
3074 procedure Set_Is_Access_Constant
(Id
: E
; V
: B
:= True) is
3076 pragma Assert
(Is_Access_Type
(Id
));
3078 end Set_Is_Access_Constant
;
3080 procedure Set_Is_Aliased
(Id
: E
; V
: B
:= True) is
3082 pragma Assert
(Nkind
(Id
) in N_Entity
);
3086 procedure Set_Is_AST_Entry
(Id
: E
; V
: B
:= True) is
3088 pragma Assert
(Is_Entry
(Id
));
3089 Set_Flag132
(Id
, V
);
3090 end Set_Is_AST_Entry
;
3092 procedure Set_Is_Asynchronous
(Id
: E
; V
: B
:= True) is
3095 (Ekind
(Id
) = E_Procedure
or else Is_Type
(Id
));
3097 end Set_Is_Asynchronous
;
3099 procedure Set_Is_Atomic
(Id
: E
; V
: B
:= True) is
3104 procedure Set_Is_Bit_Packed_Array
(Id
: E
; V
: B
:= True) is
3106 pragma Assert
((not V
)
3107 or else (Is_Array_Type
(Id
) and then Id
= Base_Type
(Id
)));
3109 Set_Flag122
(Id
, V
);
3110 end Set_Is_Bit_Packed_Array
;
3112 procedure Set_Is_Called
(Id
: E
; V
: B
:= True) is
3115 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Function
);
3116 Set_Flag102
(Id
, V
);
3119 procedure Set_Is_Character_Type
(Id
: E
; V
: B
:= True) is
3122 end Set_Is_Character_Type
;
3124 procedure Set_Is_Child_Unit
(Id
: E
; V
: B
:= True) is
3127 end Set_Is_Child_Unit
;
3129 procedure Set_Is_Compilation_Unit
(Id
: E
; V
: B
:= True) is
3131 Set_Flag149
(Id
, V
);
3132 end Set_Is_Compilation_Unit
;
3134 procedure Set_Is_Completely_Hidden
(Id
: E
; V
: B
:= True) is
3136 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
3137 Set_Flag103
(Id
, V
);
3138 end Set_Is_Completely_Hidden
;
3140 procedure Set_Is_Concurrent_Record_Type
(Id
: E
; V
: B
:= True) is
3143 end Set_Is_Concurrent_Record_Type
;
3145 procedure Set_Is_Constr_Subt_For_U_Nominal
(Id
: E
; V
: B
:= True) is
3148 end Set_Is_Constr_Subt_For_U_Nominal
;
3150 procedure Set_Is_Constr_Subt_For_UN_Aliased
(Id
: E
; V
: B
:= True) is
3152 Set_Flag141
(Id
, V
);
3153 end Set_Is_Constr_Subt_For_UN_Aliased
;
3155 procedure Set_Is_Constrained
(Id
: E
; V
: B
:= True) is
3157 pragma Assert
(Nkind
(Id
) in N_Entity
);
3159 end Set_Is_Constrained
;
3161 procedure Set_Is_Constructor
(Id
: E
; V
: B
:= True) is
3164 end Set_Is_Constructor
;
3166 procedure Set_Is_Controlled
(Id
: E
; V
: B
:= True) is
3168 pragma Assert
(Id
= Base_Type
(Id
));
3170 end Set_Is_Controlled
;
3172 procedure Set_Is_Controlling_Formal
(Id
: E
; V
: B
:= True) is
3174 pragma Assert
(Is_Formal
(Id
));
3176 end Set_Is_Controlling_Formal
;
3178 procedure Set_Is_CPP_Class
(Id
: E
; V
: B
:= True) is
3181 end Set_Is_CPP_Class
;
3183 procedure Set_Is_Destructor
(Id
: E
; V
: B
:= True) is
3186 end Set_Is_Destructor
;
3188 procedure Set_Is_Discrim_SO_Function
(Id
: E
; V
: B
:= True) is
3190 Set_Flag176
(Id
, V
);
3191 end Set_Is_Discrim_SO_Function
;
3193 procedure Set_Is_Dispatching_Operation
(Id
: E
; V
: B
:= True) is
3198 Is_Overloadable
(Id
)
3200 Ekind
(Id
) = E_Subprogram_Type
);
3203 end Set_Is_Dispatching_Operation
;
3205 procedure Set_Is_Eliminated
(Id
: E
; V
: B
:= True) is
3207 Set_Flag124
(Id
, V
);
3208 end Set_Is_Eliminated
;
3210 procedure Set_Is_Entry_Formal
(Id
: E
; V
: B
:= True) is
3213 end Set_Is_Entry_Formal
;
3215 procedure Set_Is_Exported
(Id
: E
; V
: B
:= True) is
3218 end Set_Is_Exported
;
3220 procedure Set_Is_First_Subtype
(Id
: E
; V
: B
:= True) is
3223 end Set_Is_First_Subtype
;
3225 procedure Set_Is_For_Access_Subtype
(Id
: E
; V
: B
:= True) is
3228 (Ekind
(Id
) = E_Record_Subtype
3230 Ekind
(Id
) = E_Private_Subtype
);
3231 Set_Flag118
(Id
, V
);
3232 end Set_Is_For_Access_Subtype
;
3234 procedure Set_Is_Formal_Subprogram
(Id
: E
; V
: B
:= True) is
3236 Set_Flag111
(Id
, V
);
3237 end Set_Is_Formal_Subprogram
;
3239 procedure Set_Is_Frozen
(Id
: E
; V
: B
:= True) is
3241 pragma Assert
(Nkind
(Id
) in N_Entity
);
3245 procedure Set_Is_Generic_Actual_Type
(Id
: E
; V
: B
:= True) is
3247 pragma Assert
(Is_Type
(Id
));
3249 end Set_Is_Generic_Actual_Type
;
3251 procedure Set_Is_Generic_Instance
(Id
: E
; V
: B
:= True) is
3253 Set_Flag130
(Id
, V
);
3254 end Set_Is_Generic_Instance
;
3256 procedure Set_Is_Generic_Type
(Id
: E
; V
: B
:= True) is
3258 pragma Assert
(Nkind
(Id
) in N_Entity
);
3260 end Set_Is_Generic_Type
;
3262 procedure Set_Is_Hidden
(Id
: E
; V
: B
:= True) is
3267 procedure Set_Is_Hidden_Open_Scope
(Id
: E
; V
: B
:= True) is
3269 Set_Flag171
(Id
, V
);
3270 end Set_Is_Hidden_Open_Scope
;
3272 procedure Set_Is_Immediately_Visible
(Id
: E
; V
: B
:= True) is
3274 pragma Assert
(Nkind
(Id
) in N_Entity
);
3276 end Set_Is_Immediately_Visible
;
3278 procedure Set_Is_Imported
(Id
: E
; V
: B
:= True) is
3281 end Set_Is_Imported
;
3283 procedure Set_Is_Inlined
(Id
: E
; V
: B
:= True) is
3288 procedure Set_Is_Instantiated
(Id
: E
; V
: B
:= True) is
3290 Set_Flag126
(Id
, V
);
3291 end Set_Is_Instantiated
;
3293 procedure Set_Is_Internal
(Id
: E
; V
: B
:= True) is
3295 pragma Assert
(Nkind
(Id
) in N_Entity
);
3297 end Set_Is_Internal
;
3299 procedure Set_Is_Interrupt_Handler
(Id
: E
; V
: B
:= True) is
3301 pragma Assert
(Nkind
(Id
) in N_Entity
);
3303 end Set_Is_Interrupt_Handler
;
3305 procedure Set_Is_Intrinsic_Subprogram
(Id
: E
; V
: B
:= True) is
3308 end Set_Is_Intrinsic_Subprogram
;
3310 procedure Set_Is_Itype
(Id
: E
; V
: B
:= True) is
3315 procedure Set_Is_Known_Valid
(Id
: E
; V
: B
:= True) is
3317 Set_Flag170
(Id
, V
);
3318 end Set_Is_Known_Valid
;
3320 procedure Set_Is_Limited_Composite
(Id
: E
; V
: B
:= True) is
3322 pragma Assert
(Is_Type
(Id
));
3323 Set_Flag106
(Id
, V
);
3324 end Set_Is_Limited_Composite
;
3326 procedure Set_Is_Limited_Record
(Id
: E
; V
: B
:= True) is
3329 end Set_Is_Limited_Record
;
3331 procedure Set_Is_Machine_Code_Subprogram
(Id
: E
; V
: B
:= True) is
3333 pragma Assert
(Is_Subprogram
(Id
));
3334 Set_Flag137
(Id
, V
);
3335 end Set_Is_Machine_Code_Subprogram
;
3337 procedure Set_Is_Non_Static_Subtype
(Id
: E
; V
: B
:= True) is
3339 pragma Assert
(Is_Type
(Id
));
3340 Set_Flag109
(Id
, V
);
3341 end Set_Is_Non_Static_Subtype
;
3343 procedure Set_Is_Null_Init_Proc
(Id
: E
; V
: B
:= True) is
3345 pragma Assert
(Ekind
(Id
) = E_Procedure
);
3346 Set_Flag178
(Id
, V
);
3347 end Set_Is_Null_Init_Proc
;
3349 procedure Set_Is_Optional_Parameter
(Id
: E
; V
: B
:= True) is
3351 pragma Assert
(Is_Formal
(Id
));
3352 Set_Flag134
(Id
, V
);
3353 end Set_Is_Optional_Parameter
;
3355 procedure Set_Is_Package_Body_Entity
(Id
: E
; V
: B
:= True) is
3357 Set_Flag160
(Id
, V
);
3358 end Set_Is_Package_Body_Entity
;
3360 procedure Set_Is_Packed
(Id
: E
; V
: B
:= True) is
3362 pragma Assert
(Base_Type
(Id
) = Id
);
3366 procedure Set_Is_Packed_Array_Type
(Id
: E
; V
: B
:= True) is
3368 Set_Flag138
(Id
, V
);
3369 end Set_Is_Packed_Array_Type
;
3371 procedure Set_Is_Potentially_Use_Visible
(Id
: E
; V
: B
:= True) is
3373 pragma Assert
(Nkind
(Id
) in N_Entity
);
3375 end Set_Is_Potentially_Use_Visible
;
3377 procedure Set_Is_Preelaborated
(Id
: E
; V
: B
:= True) is
3380 end Set_Is_Preelaborated
;
3382 procedure Set_Is_Private_Composite
(Id
: E
; V
: B
:= True) is
3384 pragma Assert
(Is_Type
(Id
));
3385 Set_Flag107
(Id
, V
);
3386 end Set_Is_Private_Composite
;
3388 procedure Set_Is_Private_Descendant
(Id
: E
; V
: B
:= True) is
3391 end Set_Is_Private_Descendant
;
3393 procedure Set_Is_Psected
(Id
: E
; V
: B
:= True) is
3395 Set_Flag153
(Id
, V
);
3398 procedure Set_Is_Public
(Id
: E
; V
: B
:= True) is
3400 pragma Assert
(Nkind
(Id
) in N_Entity
);
3404 procedure Set_Is_Pure
(Id
: E
; V
: B
:= True) is
3409 procedure Set_Is_Remote_Call_Interface
(Id
: E
; V
: B
:= True) is
3412 end Set_Is_Remote_Call_Interface
;
3414 procedure Set_Is_Remote_Types
(Id
: E
; V
: B
:= True) is
3417 end Set_Is_Remote_Types
;
3419 procedure Set_Is_Renaming_Of_Object
(Id
: E
; V
: B
:= True) is
3421 Set_Flag112
(Id
, V
);
3422 end Set_Is_Renaming_Of_Object
;
3424 procedure Set_Is_Shared_Passive
(Id
: E
; V
: B
:= True) is
3427 end Set_Is_Shared_Passive
;
3429 procedure Set_Is_Statically_Allocated
(Id
: E
; V
: B
:= True) is
3432 (Ekind
(Id
) = E_Exception
3433 or else Ekind
(Id
) = E_Variable
3434 or else Ekind
(Id
) = E_Constant
3435 or else Is_Type
(Id
)
3436 or else Ekind
(Id
) = E_Void
);
3438 end Set_Is_Statically_Allocated
;
3440 procedure Set_Is_Tag
(Id
: E
; V
: B
:= True) is
3442 pragma Assert
(Nkind
(Id
) in N_Entity
);
3446 procedure Set_Is_Tagged_Type
(Id
: E
; V
: B
:= True) is
3449 end Set_Is_Tagged_Type
;
3451 procedure Set_Is_True_Constant
(Id
: E
; V
: B
:= True) is
3453 Set_Flag163
(Id
, V
);
3454 end Set_Is_True_Constant
;
3456 procedure Set_Is_Unchecked_Union
(Id
: E
; V
: B
:= True) is
3458 pragma Assert
(Base_Type
(Id
) = Id
);
3459 Set_Flag117
(Id
, V
);
3460 end Set_Is_Unchecked_Union
;
3462 procedure Set_Is_Unsigned_Type
(Id
: E
; V
: B
:= True) is
3464 pragma Assert
(Is_Discrete_Or_Fixed_Point_Type
(Id
));
3465 Set_Flag144
(Id
, V
);
3466 end Set_Is_Unsigned_Type
;
3468 procedure Set_Is_Valued_Procedure
(Id
: E
; V
: B
:= True) is
3470 pragma Assert
(Ekind
(Id
) = E_Procedure
);
3471 Set_Flag127
(Id
, V
);
3472 end Set_Is_Valued_Procedure
;
3474 procedure Set_Is_Visible_Child_Unit
(Id
: E
; V
: B
:= True) is
3476 pragma Assert
(Is_Child_Unit
(Id
));
3477 Set_Flag116
(Id
, V
);
3478 end Set_Is_Visible_Child_Unit
;
3480 procedure Set_Is_VMS_Exception
(Id
: E
; V
: B
:= True) is
3482 pragma Assert
(Ekind
(Id
) = E_Exception
);
3483 Set_Flag133
(Id
, V
);
3484 end Set_Is_VMS_Exception
;
3486 procedure Set_Is_Volatile
(Id
: E
; V
: B
:= True) is
3488 pragma Assert
(Nkind
(Id
) in N_Entity
);
3490 end Set_Is_Volatile
;
3492 procedure Set_Last_Entity
(Id
: E
; V
: E
) is
3495 end Set_Last_Entity
;
3497 procedure Set_Lit_Indexes
(Id
: E
; V
: E
) is
3499 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
3501 end Set_Lit_Indexes
;
3503 procedure Set_Lit_Strings
(Id
: E
; V
: E
) is
3505 pragma Assert
(Is_Enumeration_Type
(Id
) and then Root_Type
(Id
) = Id
);
3507 end Set_Lit_Strings
;
3509 procedure Set_Machine_Radix_10
(Id
: E
; V
: B
:= True) is
3511 pragma Assert
(Is_Decimal_Fixed_Point_Type
(Id
));
3513 end Set_Machine_Radix_10
;
3515 procedure Set_Master_Id
(Id
: E
; V
: E
) is
3520 procedure Set_Materialize_Entity
(Id
: E
; V
: B
:= True) is
3522 Set_Flag168
(Id
, V
);
3523 end Set_Materialize_Entity
;
3525 procedure Set_Mechanism
(Id
: E
; V
: M
) is
3527 pragma Assert
(Ekind
(Id
) = E_Function
or else Is_Formal
(Id
));
3528 Set_Uint8
(Id
, UI_From_Int
(V
));
3531 procedure Set_Modulus
(Id
: E
; V
: U
) is
3533 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
3537 procedure Set_Needs_Debug_Info
(Id
: E
; V
: B
:= True) is
3539 Set_Flag147
(Id
, V
);
3540 end Set_Needs_Debug_Info
;
3542 procedure Set_Needs_No_Actuals
(Id
: E
; V
: B
:= True) is
3545 (Is_Overloadable
(Id
)
3546 or else Ekind
(Id
) = E_Subprogram_Type
3547 or else Ekind
(Id
) = E_Entry_Family
);
3549 end Set_Needs_No_Actuals
;
3551 procedure Set_Next_Inlined_Subprogram
(Id
: E
; V
: E
) is
3554 end Set_Next_Inlined_Subprogram
;
3556 procedure Set_No_Pool_Assigned
(Id
: E
; V
: B
:= True) is
3558 pragma Assert
(Is_Access_Type
(Id
) and then Base_Type
(Id
) = Id
);
3559 Set_Flag131
(Id
, V
);
3560 end Set_No_Pool_Assigned
;
3562 procedure Set_No_Return
(Id
: E
; V
: B
:= True) is
3565 (Ekind
(Id
) = E_Procedure
or else Ekind
(Id
) = E_Generic_Procedure
);
3566 Set_Flag113
(Id
, V
);
3569 procedure Set_Non_Binary_Modulus
(Id
: E
; V
: B
:= True) is
3571 pragma Assert
(Ekind
(Id
) = E_Modular_Integer_Type
);
3573 end Set_Non_Binary_Modulus
;
3575 procedure Set_Nonzero_Is_True
(Id
: E
; V
: B
:= True) is
3578 (Root_Type
(Id
) = Standard_Boolean
3579 and then Ekind
(Id
) = E_Enumeration_Type
);
3580 Set_Flag162
(Id
, V
);
3581 end Set_Nonzero_Is_True
;
3583 procedure Set_Normalized_First_Bit
(Id
: E
; V
: U
) is
3586 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
3588 end Set_Normalized_First_Bit
;
3590 procedure Set_Normalized_Position
(Id
: E
; V
: U
) is
3593 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
3595 end Set_Normalized_Position
;
3597 procedure Set_Normalized_Position_Max
(Id
: E
; V
: U
) is
3600 (Ekind
(Id
) = E_Component
or else Ekind
(Id
) = E_Discriminant
);
3602 end Set_Normalized_Position_Max
;
3604 procedure Set_Not_Source_Assigned
(Id
: E
; V
: B
:= True) is
3606 Set_Flag115
(Id
, V
);
3607 end Set_Not_Source_Assigned
;
3609 procedure Set_Object_Ref
(Id
: E
; V
: E
) is
3611 pragma Assert
(Ekind
(Id
) = E_Protected_Body
);
3615 procedure Set_Original_Array_Type
(Id
: E
; V
: E
) is
3617 pragma Assert
(Is_Array_Type
(Id
) or else Is_Modular_Integer_Type
(Id
));
3619 end Set_Original_Array_Type
;
3621 procedure Set_Original_Record_Component
(Id
: E
; V
: E
) is
3624 end Set_Original_Record_Component
;
3626 procedure Set_Packed_Array_Type
(Id
: E
; V
: E
) is
3628 pragma Assert
(Is_Array_Type
(Id
));
3630 end Set_Packed_Array_Type
;
3632 procedure Set_Parent_Subtype
(Id
: E
; V
: E
) is
3634 pragma Assert
(Ekind
(Id
) = E_Record_Type
);
3636 end Set_Parent_Subtype
;
3638 procedure Set_Primitive_Operations
(Id
: E
; V
: L
) is
3640 pragma Assert
(Is_Tagged_Type
(Id
));
3641 Set_Elist15
(Id
, V
);
3642 end Set_Primitive_Operations
;
3644 procedure Set_Prival
(Id
: E
; V
: E
) is
3646 pragma Assert
(Is_Protected_Private
(Id
));
3650 procedure Set_Privals_Chain
(Id
: E
; V
: L
) is
3652 pragma Assert
(Is_Overloadable
(Id
)
3653 or else Ekind
(Id
) = E_Entry_Family
);
3654 Set_Elist23
(Id
, V
);
3655 end Set_Privals_Chain
;
3657 procedure Set_Private_Dependents
(Id
: E
; V
: L
) is
3659 pragma Assert
(Is_Incomplete_Or_Private_Type
(Id
));
3660 Set_Elist18
(Id
, V
);
3661 end Set_Private_Dependents
;
3663 procedure Set_Private_View
(Id
: E
; V
: N
) is
3665 pragma Assert
(Is_Private_Type
(Id
));
3667 end Set_Private_View
;
3669 procedure Set_Protected_Body_Subprogram
(Id
: E
; V
: E
) is
3671 pragma Assert
(Is_Subprogram
(Id
) or else Is_Entry
(Id
));
3673 end Set_Protected_Body_Subprogram
;
3675 procedure Set_Protected_Formal
(Id
: E
; V
: E
) is
3677 pragma Assert
(Is_Formal
(Id
));
3679 end Set_Protected_Formal
;
3681 procedure Set_Protected_Operation
(Id
: E
; V
: N
) is
3683 pragma Assert
(Is_Protected_Private
(Id
));
3685 end Set_Protected_Operation
;
3687 procedure Set_Reachable
(Id
: E
; V
: B
:= True) is
3692 procedure Set_Referenced
(Id
: E
; V
: B
:= True) is
3694 Set_Flag156
(Id
, V
);
3697 procedure Set_Referenced_Object
(Id
: E
; V
: N
) is
3699 pragma Assert
(Is_Type
(Id
));
3701 end Set_Referenced_Object
;
3703 procedure Set_Register_Exception_Call
(Id
: E
; V
: N
) is
3705 pragma Assert
(Ekind
(Id
) = E_Exception
);
3707 end Set_Register_Exception_Call
;
3709 procedure Set_Related_Array_Object
(Id
: E
; V
: E
) is
3711 pragma Assert
(Is_Array_Type
(Id
));
3713 end Set_Related_Array_Object
;
3715 procedure Set_Related_Instance
(Id
: E
; V
: E
) is
3717 pragma Assert
(Ekind
(Id
) = E_Package
);
3719 end Set_Related_Instance
;
3721 procedure Set_Renamed_Entity
(Id
: E
; V
: N
) is
3724 end Set_Renamed_Entity
;
3726 procedure Set_Renamed_Object
(Id
: E
; V
: N
) is
3729 end Set_Renamed_Object
;
3731 procedure Set_Renaming_Map
(Id
: E
; V
: U
) is
3734 end Set_Renaming_Map
;
3736 procedure Set_Return_Present
(Id
: E
; V
: B
:= True) is
3739 end Set_Return_Present
;
3741 procedure Set_Returns_By_Ref
(Id
: E
; V
: B
:= True) is
3744 end Set_Returns_By_Ref
;
3746 procedure Set_Reverse_Bit_Order
(Id
: E
; V
: B
:= True) is
3749 (Is_Record_Type
(Id
) and then Id
= Base_Type
(Id
));
3750 Set_Flag164
(Id
, V
);
3751 end Set_Reverse_Bit_Order
;
3753 procedure Set_RM_Size
(Id
: E
; V
: U
) is
3755 pragma Assert
(Is_Type
(Id
));
3759 procedure Set_Scalar_Range
(Id
: E
; V
: N
) is
3762 end Set_Scalar_Range
;
3764 procedure Set_Scale_Value
(Id
: E
; V
: U
) is
3767 end Set_Scale_Value
;
3769 procedure Set_Scope_Depth_Value
(Id
: E
; V
: U
) is
3771 pragma Assert
(not Is_Record_Type
(Id
));
3773 end Set_Scope_Depth_Value
;
3775 procedure Set_Sec_Stack_Needed_For_Return
(Id
: E
; V
: B
:= True) is
3777 Set_Flag167
(Id
, V
);
3778 end Set_Sec_Stack_Needed_For_Return
;
3780 procedure Set_Shadow_Entities
(Id
: E
; V
: S
) is
3783 (Ekind
(Id
) = E_Package
or else Ekind
(Id
) = E_Generic_Package
);
3785 end Set_Shadow_Entities
;
3787 procedure Set_Shared_Var_Assign_Proc
(Id
: E
; V
: E
) is
3789 pragma Assert
(Ekind
(Id
) = E_Variable
);
3791 end Set_Shared_Var_Assign_Proc
;
3793 procedure Set_Shared_Var_Read_Proc
(Id
: E
; V
: E
) is
3795 pragma Assert
(Ekind
(Id
) = E_Variable
);
3797 end Set_Shared_Var_Read_Proc
;
3799 procedure Set_Size_Check_Code
(Id
: E
; V
: N
) is
3801 pragma Assert
(Ekind
(Id
) = E_Constant
or else Ekind
(Id
) = E_Variable
);
3803 end Set_Size_Check_Code
;
3805 procedure Set_Size_Depends_On_Discriminant
(Id
: E
; V
: B
:= True) is
3807 Set_Flag177
(Id
, V
);
3808 end Set_Size_Depends_On_Discriminant
;
3810 procedure Set_Size_Known_At_Compile_Time
(Id
: E
; V
: B
:= True) is
3813 end Set_Size_Known_At_Compile_Time
;
3815 procedure Set_Small_Value
(Id
: E
; V
: R
) is
3817 pragma Assert
(Is_Fixed_Point_Type
(Id
));
3818 Set_Ureal21
(Id
, V
);
3819 end Set_Small_Value
;
3821 procedure Set_Spec_Entity
(Id
: E
; V
: E
) is
3823 pragma Assert
(Ekind
(Id
) = E_Package_Body
or else Is_Formal
(Id
));
3825 end Set_Spec_Entity
;
3827 procedure Set_Storage_Size_Variable
(Id
: E
; V
: E
) is
3829 pragma Assert
(Is_Access_Type
(Id
) or else Is_Task_Type
(Id
));
3830 pragma Assert
(Base_Type
(Id
) = Id
);
3832 end Set_Storage_Size_Variable
;
3834 procedure Set_Strict_Alignment
(Id
: E
; V
: B
:= True) is
3836 pragma Assert
(Base_Type
(Id
) = Id
);
3837 Set_Flag145
(Id
, V
);
3838 end Set_Strict_Alignment
;
3840 procedure Set_String_Literal_Length
(Id
: E
; V
: U
) is
3842 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
3844 end Set_String_Literal_Length
;
3846 procedure Set_String_Literal_Low_Bound
(Id
: E
; V
: N
) is
3848 pragma Assert
(Ekind
(Id
) = E_String_Literal_Subtype
);
3850 end Set_String_Literal_Low_Bound
;
3852 procedure Set_Suppress_Access_Checks
(Id
: E
; V
: B
:= True) is
3855 end Set_Suppress_Access_Checks
;
3857 procedure Set_Suppress_Accessibility_Checks
(Id
: E
; V
: B
:= True) is
3860 end Set_Suppress_Accessibility_Checks
;
3862 procedure Set_Suppress_Discriminant_Checks
(Id
: E
; V
: B
:= True) is
3865 end Set_Suppress_Discriminant_Checks
;
3867 procedure Set_Suppress_Division_Checks
(Id
: E
; V
: B
:= True) is
3870 end Set_Suppress_Division_Checks
;
3872 procedure Set_Suppress_Elaboration_Checks
(Id
: E
; V
: B
:= True) is
3875 end Set_Suppress_Elaboration_Checks
;
3877 procedure Set_Suppress_Elaboration_Warnings
(Id
: E
; V
: B
:= True) is
3879 Set_Flag148
(Id
, V
);
3880 end Set_Suppress_Elaboration_Warnings
;
3882 procedure Set_Suppress_Index_Checks
(Id
: E
; V
: B
:= True) is
3885 end Set_Suppress_Index_Checks
;
3887 procedure Set_Suppress_Init_Proc
(Id
: E
; V
: B
:= True) is
3889 pragma Assert
(Id
= Base_Type
(Id
));
3890 Set_Flag105
(Id
, V
);
3891 end Set_Suppress_Init_Proc
;
3893 procedure Set_Suppress_Length_Checks
(Id
: E
; V
: B
:= True) is
3896 end Set_Suppress_Length_Checks
;
3898 procedure Set_Suppress_Overflow_Checks
(Id
: E
; V
: B
:= True) is
3901 end Set_Suppress_Overflow_Checks
;
3903 procedure Set_Suppress_Range_Checks
(Id
: E
; V
: B
:= True) is
3906 end Set_Suppress_Range_Checks
;
3908 procedure Set_Suppress_Storage_Checks
(Id
: E
; V
: B
:= True) is
3911 end Set_Suppress_Storage_Checks
;
3913 procedure Set_Suppress_Style_Checks
(Id
: E
; V
: B
:= True) is
3915 Set_Flag165
(Id
, V
);
3916 end Set_Suppress_Style_Checks
;
3918 procedure Set_Suppress_Tag_Checks
(Id
: E
; V
: B
:= True) is
3921 end Set_Suppress_Tag_Checks
;
3923 procedure Set_Underlying_Full_View
(Id
: E
; V
: E
) is
3925 pragma Assert
(Ekind
(Id
) in Private_Kind
);
3927 end Set_Underlying_Full_View
;
3929 procedure Set_Unset_Reference
(Id
: E
; V
: N
) is
3932 end Set_Unset_Reference
;
3934 procedure Set_Uses_Sec_Stack
(Id
: E
; V
: B
:= True) is
3937 end Set_Uses_Sec_Stack
;
3939 procedure Set_Vax_Float
(Id
: E
; V
: B
:= True) is
3941 pragma Assert
(Id
= Base_Type
(Id
));
3942 Set_Flag151
(Id
, V
);
3945 procedure Set_Warnings_Off
(Id
: E
; V
: B
:= True) is
3948 end Set_Warnings_Off
;
3950 -----------------------------------
3951 -- Field Initialization Routines --
3952 -----------------------------------
3954 procedure Init_Alignment
(Id
: E
) is
3956 Set_Uint14
(Id
, Uint_0
);
3959 procedure Init_Alignment
(Id
: E
; V
: Int
) is
3961 Set_Uint14
(Id
, UI_From_Int
(V
));
3964 procedure Init_Component_Bit_Offset
(Id
: E
) is
3966 Set_Uint11
(Id
, No_Uint
);
3967 end Init_Component_Bit_Offset
;
3969 procedure Init_Component_Bit_Offset
(Id
: E
; V
: Int
) is
3971 Set_Uint11
(Id
, UI_From_Int
(V
));
3972 end Init_Component_Bit_Offset
;
3974 procedure Init_Component_Size
(Id
: E
) is
3976 Set_Uint22
(Id
, Uint_0
);
3977 end Init_Component_Size
;
3979 procedure Init_Component_Size
(Id
: E
; V
: Int
) is
3981 Set_Uint22
(Id
, UI_From_Int
(V
));
3982 end Init_Component_Size
;
3984 procedure Init_Digits_Value
(Id
: E
) is
3986 Set_Uint17
(Id
, Uint_0
);
3987 end Init_Digits_Value
;
3989 procedure Init_Digits_Value
(Id
: E
; V
: Int
) is
3991 Set_Uint17
(Id
, UI_From_Int
(V
));
3992 end Init_Digits_Value
;
3994 procedure Init_Esize
(Id
: E
) is
3996 Set_Uint12
(Id
, Uint_0
);
3999 procedure Init_Esize
(Id
: E
; V
: Int
) is
4001 Set_Uint12
(Id
, UI_From_Int
(V
));
4004 procedure Init_Normalized_First_Bit
(Id
: E
) is
4006 Set_Uint8
(Id
, No_Uint
);
4007 end Init_Normalized_First_Bit
;
4009 procedure Init_Normalized_First_Bit
(Id
: E
; V
: Int
) is
4011 Set_Uint8
(Id
, UI_From_Int
(V
));
4012 end Init_Normalized_First_Bit
;
4014 procedure Init_Normalized_Position
(Id
: E
) is
4016 Set_Uint9
(Id
, No_Uint
);
4017 end Init_Normalized_Position
;
4019 procedure Init_Normalized_Position
(Id
: E
; V
: Int
) is
4021 Set_Uint9
(Id
, UI_From_Int
(V
));
4022 end Init_Normalized_Position
;
4024 procedure Init_Normalized_Position_Max
(Id
: E
) is
4026 Set_Uint10
(Id
, No_Uint
);
4027 end Init_Normalized_Position_Max
;
4029 procedure Init_Normalized_Position_Max
(Id
: E
; V
: Int
) is
4031 Set_Uint10
(Id
, UI_From_Int
(V
));
4032 end Init_Normalized_Position_Max
;
4034 procedure Init_RM_Size
(Id
: E
) is
4036 Set_Uint13
(Id
, Uint_0
);
4039 procedure Init_RM_Size
(Id
: E
; V
: Int
) is
4041 Set_Uint13
(Id
, UI_From_Int
(V
));
4044 -----------------------------
4045 -- Init_Component_Location --
4046 -----------------------------
4048 procedure Init_Component_Location
(Id
: E
) is
4050 Set_Uint8
(Id
, No_Uint
); -- Normalized_First_Bit
4051 Set_Uint9
(Id
, No_Uint
); -- Normalized_Position
4052 Set_Uint11
(Id
, No_Uint
); -- Component_First_Bit
4053 Set_Uint12
(Id
, Uint_0
); -- Esize
4054 Set_Uint10
(Id
, No_Uint
); -- Normalized_Position_Max
4055 end Init_Component_Location
;
4061 procedure Init_Size
(Id
: E
; V
: Int
) is
4063 Set_Uint12
(Id
, UI_From_Int
(V
)); -- Esize
4064 Set_Uint13
(Id
, UI_From_Int
(V
)); -- RM_Size
4067 ---------------------
4068 -- Init_Size_Align --
4069 ---------------------
4071 procedure Init_Size_Align
(Id
: E
) is
4073 Set_Uint12
(Id
, Uint_0
); -- Esize
4074 Set_Uint13
(Id
, Uint_0
); -- RM_Size
4075 Set_Uint14
(Id
, Uint_0
); -- Alignment
4076 end Init_Size_Align
;
4078 ----------------------------------------------
4079 -- Type Representation Attribute Predicates --
4080 ----------------------------------------------
4082 function Known_Alignment
(E
: Entity_Id
) return B
is
4084 return Uint14
(E
) /= Uint_0
4085 and then Uint14
(E
) /= No_Uint
;
4086 end Known_Alignment
;
4088 function Known_Component_Bit_Offset
(E
: Entity_Id
) return B
is
4090 return Uint11
(E
) /= No_Uint
;
4091 end Known_Component_Bit_Offset
;
4093 function Known_Component_Size
(E
: Entity_Id
) return B
is
4095 return Uint22
(Base_Type
(E
)) /= Uint_0
4096 and then Uint22
(Base_Type
(E
)) /= No_Uint
;
4097 end Known_Component_Size
;
4099 function Known_Esize
(E
: Entity_Id
) return B
is
4101 return Uint12
(E
) /= Uint_0
4102 and then Uint12
(E
) /= No_Uint
;
4105 function Known_Normalized_First_Bit
(E
: Entity_Id
) return B
is
4107 return Uint8
(E
) /= No_Uint
;
4108 end Known_Normalized_First_Bit
;
4110 function Known_Normalized_Position
(E
: Entity_Id
) return B
is
4112 return Uint9
(E
) /= No_Uint
;
4113 end Known_Normalized_Position
;
4115 function Known_Normalized_Position_Max
(E
: Entity_Id
) return B
is
4117 return Uint10
(E
) /= No_Uint
;
4118 end Known_Normalized_Position_Max
;
4120 function Known_RM_Size
(E
: Entity_Id
) return B
is
4122 return Uint13
(E
) /= No_Uint
4123 and then (Uint13
(E
) /= Uint_0
4124 or else Is_Discrete_Type
(E
));
4127 function Known_Static_Component_Bit_Offset
(E
: Entity_Id
) return B
is
4129 return Uint11
(E
) /= No_Uint
4130 and then Uint11
(E
) >= Uint_0
;
4131 end Known_Static_Component_Bit_Offset
;
4133 function Known_Static_Component_Size
(E
: Entity_Id
) return B
is
4135 return Uint22
(Base_Type
(E
)) > Uint_0
;
4136 end Known_Static_Component_Size
;
4138 function Known_Static_Esize
(E
: Entity_Id
) return B
is
4140 return Uint12
(E
) > Uint_0
;
4141 end Known_Static_Esize
;
4143 function Known_Static_Normalized_First_Bit
(E
: Entity_Id
) return B
is
4145 return Uint8
(E
) /= No_Uint
4146 and then Uint8
(E
) >= Uint_0
;
4147 end Known_Static_Normalized_First_Bit
;
4149 function Known_Static_Normalized_Position
(E
: Entity_Id
) return B
is
4151 return Uint9
(E
) /= No_Uint
4152 and then Uint9
(E
) >= Uint_0
;
4153 end Known_Static_Normalized_Position
;
4155 function Known_Static_Normalized_Position_Max
(E
: Entity_Id
) return B
is
4157 return Uint10
(E
) /= No_Uint
4158 and then Uint10
(E
) >= Uint_0
;
4159 end Known_Static_Normalized_Position_Max
;
4161 function Known_Static_RM_Size
(E
: Entity_Id
) return B
is
4163 return Uint13
(E
) > Uint_0
4164 or else Is_Discrete_Type
(E
);
4165 end Known_Static_RM_Size
;
4167 function Unknown_Alignment
(E
: Entity_Id
) return B
is
4169 return Uint14
(E
) = Uint_0
4170 or else Uint14
(E
) = No_Uint
;
4171 end Unknown_Alignment
;
4173 function Unknown_Component_Bit_Offset
(E
: Entity_Id
) return B
is
4175 return Uint11
(E
) = No_Uint
;
4176 end Unknown_Component_Bit_Offset
;
4178 function Unknown_Component_Size
(E
: Entity_Id
) return B
is
4180 return Uint22
(Base_Type
(E
)) = Uint_0
4182 Uint22
(Base_Type
(E
)) = No_Uint
;
4183 end Unknown_Component_Size
;
4185 function Unknown_Esize
(E
: Entity_Id
) return B
is
4187 return Uint12
(E
) = No_Uint
4189 Uint12
(E
) = Uint_0
;
4192 function Unknown_Normalized_First_Bit
(E
: Entity_Id
) return B
is
4194 return Uint8
(E
) = No_Uint
;
4195 end Unknown_Normalized_First_Bit
;
4197 function Unknown_Normalized_Position
(E
: Entity_Id
) return B
is
4199 return Uint9
(E
) = No_Uint
;
4200 end Unknown_Normalized_Position
;
4202 function Unknown_Normalized_Position_Max
(E
: Entity_Id
) return B
is
4204 return Uint10
(E
) = No_Uint
;
4205 end Unknown_Normalized_Position_Max
;
4207 function Unknown_RM_Size
(E
: Entity_Id
) return B
is
4209 return (Uint13
(E
) = Uint_0
4210 and then not Is_Discrete_Type
(E
))
4211 or else Uint13
(E
) = No_Uint
;
4212 end Unknown_RM_Size
;
4214 --------------------
4215 -- Address_Clause --
4216 --------------------
4218 function Address_Clause
(Id
: E
) return N
is
4222 Ritem
:= First_Rep_Item
(Id
);
4223 while Present
(Ritem
) loop
4224 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
4225 and then Chars
(Ritem
) = Name_Address
4229 Ritem
:= Next_Rep_Item
(Ritem
);
4236 ----------------------
4237 -- Alignment_Clause --
4238 ----------------------
4240 function Alignment_Clause
(Id
: E
) return N
is
4244 Ritem
:= First_Rep_Item
(Id
);
4245 while Present
(Ritem
) loop
4246 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
4247 and then Chars
(Ritem
) = Name_Alignment
4251 Ritem
:= Next_Rep_Item
(Ritem
);
4256 end Alignment_Clause
;
4258 ----------------------
4259 -- Ancestor_Subtype --
4260 ----------------------
4262 function Ancestor_Subtype
(Id
: E
) return E
is
4264 -- If this is first subtype, or is a base type, then there is no
4265 -- ancestor subtype, so we return Empty to indicate this fact.
4267 if Is_First_Subtype
(Id
)
4268 or else Id
= Base_Type
(Id
)
4274 D
: constant Node_Id
:= Declaration_Node
(Id
);
4277 -- If we have a subtype declaration, get the ancestor subtype
4279 if Nkind
(D
) = N_Subtype_Declaration
then
4280 if Nkind
(Subtype_Indication
(D
)) = N_Subtype_Indication
then
4281 return Entity
(Subtype_Mark
(Subtype_Indication
(D
)));
4283 return Entity
(Subtype_Indication
(D
));
4286 -- If not, then no subtype indication is available
4292 end Ancestor_Subtype
;
4298 procedure Append_Entity
(Id
: Entity_Id
; V
: Entity_Id
) is
4300 if Last_Entity
(V
) = Empty
then
4301 Set_First_Entity
(V
, Id
);
4303 Set_Next_Entity
(Last_Entity
(V
), Id
);
4306 Set_Next_Entity
(Id
, Empty
);
4308 Set_Last_Entity
(V
, Id
);
4315 function Base_Type
(Id
: E
) return E
is
4318 when E_Enumeration_Subtype |
4319 E_Signed_Integer_Subtype |
4320 E_Modular_Integer_Subtype |
4321 E_Floating_Point_Subtype |
4322 E_Ordinary_Fixed_Point_Subtype |
4323 E_Decimal_Fixed_Point_Subtype |
4328 E_Record_Subtype_With_Private |
4329 E_Limited_Private_Subtype |
4331 E_Protected_Subtype |
4333 E_String_Literal_Subtype |
4334 E_Class_Wide_Subtype
=>
4337 when E_Incomplete_Type
=>
4338 if Present
(Etype
(Id
)) then
4349 -------------------------
4350 -- Component_Alignment --
4351 -------------------------
4353 -- Component Alignment is encoded using two flags, Flag128/129 as
4354 -- follows. Note that both flags False = Align_Default, so that the
4355 -- default initialization of flags to False initializes component
4356 -- alignment to the default value as required.
4358 -- Flag128 Flag129 Value
4359 -- ------- ------- -----
4360 -- False False Calign_Default
4361 -- False True Calign_Component_Size
4362 -- True False Calign_Component_Size_4
4363 -- True True Calign_Storage_Unit
4365 function Component_Alignment
(Id
: E
) return C
is
4366 BT
: Node_Id
:= Base_Type
(Id
);
4369 pragma Assert
(Is_Array_Type
(Id
) or else Is_Record_Type
(Id
));
4371 if Flag128
(BT
) then
4372 if Flag129
(BT
) then
4373 return Calign_Storage_Unit
;
4375 return Calign_Component_Size_4
;
4379 if Flag129
(BT
) then
4380 return Calign_Component_Size
;
4382 return Calign_Default
;
4385 end Component_Alignment
;
4387 --------------------
4388 -- Constant_Value --
4389 --------------------
4391 function Constant_Value
(Id
: E
) return N
is
4392 D
: constant Node_Id
:= Declaration_Node
(Id
);
4396 -- If we have no declaration node, then return no constant value.
4397 -- Not clear how this can happen, but it does sometimes ???
4398 -- To investigate, remove this check and compile discrim_po.adb.
4403 -- Normal case where a declaration node is present
4405 elsif Nkind
(D
) = N_Object_Renaming_Declaration
then
4406 return Renamed_Object
(Id
);
4408 -- If this is a component declaration whose entity is constant, it
4409 -- is a prival within a protected function. It does not have
4410 -- a constant value.
4412 elsif Nkind
(D
) = N_Component_Declaration
then
4416 if Present
(Expression
(D
)) then
4417 return (Expression
(D
));
4419 elsif Present
(Full_View
(Id
)) then
4420 Full_D
:= Parent
(Full_View
(Id
));
4422 -- The full view may have been rewritten as an object renaming.
4424 if Nkind
(Full_D
) = N_Object_Renaming_Declaration
then
4425 return Name
(Full_D
);
4427 return Expression
(Full_D
);
4435 ----------------------
4436 -- Declaration_Node --
4437 ----------------------
4439 function Declaration_Node
(Id
: E
) return N
is
4443 if Ekind
(Id
) = E_Incomplete_Type
4444 and then Present
(Full_View
(Id
))
4446 P
:= Parent
(Full_View
(Id
));
4452 if Nkind
(P
) /= N_Selected_Component
4453 and then Nkind
(P
) /= N_Expanded_Name
4455 not (Nkind
(P
) = N_Defining_Program_Unit_Name
4456 and then Is_Child_Unit
(Id
))
4464 end Declaration_Node
;
4466 ---------------------
4467 -- Designated_Type --
4468 ---------------------
4470 function Designated_Type
(Id
: E
) return E
is
4474 Desig_Type
:= Directly_Designated_Type
(Id
);
4476 if (Ekind
(Desig_Type
) = E_Incomplete_Type
4477 and then Present
(Full_View
(Desig_Type
)))
4479 return Full_View
(Desig_Type
);
4481 elsif Is_Class_Wide_Type
(Desig_Type
)
4482 and then Ekind
(Etype
(Desig_Type
)) = E_Incomplete_Type
4483 and then Present
(Full_View
(Etype
(Desig_Type
)))
4484 and then Present
(Class_Wide_Type
(Full_View
(Etype
(Desig_Type
))))
4486 return Class_Wide_Type
(Full_View
(Etype
(Desig_Type
)));
4491 end Designated_Type
;
4493 -----------------------------
4494 -- Enclosing_Dynamic_Scope --
4495 -----------------------------
4497 function Enclosing_Dynamic_Scope
(Id
: E
) return E
is
4502 while S
/= Standard_Standard
4503 and then not Is_Dynamic_Scope
(S
)
4509 end Enclosing_Dynamic_Scope
;
4511 ----------------------
4512 -- Entry_Index_Type --
4513 ----------------------
4515 function Entry_Index_Type
(Id
: E
) return N
is
4517 pragma Assert
(Ekind
(Id
) = E_Entry_Family
);
4518 return Etype
(Discrete_Subtype_Definition
(Parent
(Id
)));
4519 end Entry_Index_Type
;
4521 ---------------------
4522 -- First_Component --
4523 ---------------------
4525 function First_Component
(Id
: E
) return E
is
4530 (Is_Record_Type
(Id
) or else Is_Incomplete_Or_Private_Type
(Id
));
4532 Comp_Id
:= First_Entity
(Id
);
4534 while Present
(Comp_Id
) loop
4535 exit when Ekind
(Comp_Id
) = E_Component
;
4536 Comp_Id
:= Next_Entity
(Comp_Id
);
4540 end First_Component
;
4542 ------------------------
4543 -- First_Discriminant --
4544 ------------------------
4546 function First_Discriminant
(Id
: E
) return E
is
4551 (Has_Discriminants
(Id
)
4552 or else Has_Unknown_Discriminants
(Id
));
4554 Ent
:= First_Entity
(Id
);
4556 -- The discriminants are not necessarily contiguous, because access
4557 -- discriminants will generate itypes. They are not the first entities
4558 -- either, because tag and controller record must be ahead of them.
4560 if Chars
(Ent
) = Name_uTag
then
4561 Ent
:= Next_Entity
(Ent
);
4564 if Chars
(Ent
) = Name_uController
then
4565 Ent
:= Next_Entity
(Ent
);
4568 -- Skip all hidden girder discriminants if any.
4570 while Present
(Ent
) loop
4571 exit when Ekind
(Ent
) = E_Discriminant
4572 and then not Is_Completely_Hidden
(Ent
);
4574 Ent
:= Next_Entity
(Ent
);
4577 pragma Assert
(Ekind
(Ent
) = E_Discriminant
);
4580 end First_Discriminant
;
4586 function First_Formal
(Id
: E
) return E
is
4591 (Is_Overloadable
(Id
)
4592 or else Ekind
(Id
) = E_Entry_Family
4593 or else Ekind
(Id
) = E_Subprogram_Body
4594 or else Ekind
(Id
) = E_Subprogram_Type
);
4596 if Ekind
(Id
) = E_Enumeration_Literal
then
4600 Formal
:= First_Entity
(Id
);
4602 if Present
(Formal
) and then Is_Formal
(Formal
) then
4610 -------------------------------
4611 -- First_Girder_Discriminant --
4612 -------------------------------
4614 function First_Girder_Discriminant
(Id
: E
) return E
is
4617 function Has_Completely_Hidden_Discriminant
(Id
: E
) return Boolean;
4618 -- Scans the Discriminants to see whether any are Completely_Hidden
4619 -- (the mechanism for describing non-specified girder discriminants)
4621 function Has_Completely_Hidden_Discriminant
(Id
: E
) return Boolean is
4622 Ent
: Entity_Id
:= Id
;
4625 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
4627 while Present
(Ent
) and then Ekind
(Ent
) = E_Discriminant
loop
4629 if Is_Completely_Hidden
(Ent
) then
4633 Ent
:= Next_Entity
(Ent
);
4637 end Has_Completely_Hidden_Discriminant
;
4639 -- Start of processing for First_Girder_Discriminant
4643 (Has_Discriminants
(Id
)
4644 or else Has_Unknown_Discriminants
(Id
));
4646 Ent
:= First_Entity
(Id
);
4648 if Chars
(Ent
) = Name_uTag
then
4649 Ent
:= Next_Entity
(Ent
);
4652 if Chars
(Ent
) = Name_uController
then
4653 Ent
:= Next_Entity
(Ent
);
4656 if Has_Completely_Hidden_Discriminant
(Ent
) then
4658 while Present
(Ent
) loop
4659 exit when Is_Completely_Hidden
(Ent
);
4660 Ent
:= Next_Entity
(Ent
);
4665 pragma Assert
(Ekind
(Ent
) = E_Discriminant
);
4668 end First_Girder_Discriminant
;
4674 function First_Subtype
(Id
: E
) return E
is
4675 B
: constant Entity_Id
:= Base_Type
(Id
);
4676 F
: constant Node_Id
:= Freeze_Node
(B
);
4680 -- If the base type has no freeze node, it is a type in standard,
4681 -- and always acts as its own first subtype unless it is one of
4682 -- the predefined integer types. If the type is formal, it is also
4683 -- a first subtype, and its base type has no freeze node. On the other
4684 -- hand, a subtype of a generic formal is not its own first_subtype.
4685 -- Its base type, if anonymous, is attached to the formal type decl.
4686 -- from which the first subtype is obtained.
4690 if B
= Base_Type
(Standard_Integer
) then
4691 return Standard_Integer
;
4693 elsif B
= Base_Type
(Standard_Long_Integer
) then
4694 return Standard_Long_Integer
;
4696 elsif B
= Base_Type
(Standard_Short_Short_Integer
) then
4697 return Standard_Short_Short_Integer
;
4699 elsif B
= Base_Type
(Standard_Short_Integer
) then
4700 return Standard_Short_Integer
;
4702 elsif B
= Base_Type
(Standard_Long_Long_Integer
) then
4703 return Standard_Long_Long_Integer
;
4705 elsif Is_Generic_Type
(Id
) then
4706 if Present
(Parent
(B
)) then
4707 return Defining_Identifier
(Parent
(B
));
4709 return Defining_Identifier
(Associated_Node_For_Itype
(B
));
4716 -- Otherwise we check the freeze node, if it has a First_Subtype_Link
4717 -- then we use that link, otherwise (happens with some Itypes), we use
4718 -- the base type itself.
4721 Ent
:= First_Subtype_Link
(F
);
4723 if Present
(Ent
) then
4731 -------------------------------------
4732 -- Get_Attribute_Definition_Clause --
4733 -------------------------------------
4735 function Get_Attribute_Definition_Clause
4743 N
:= First_Rep_Item
(E
);
4744 while Present
(N
) loop
4745 if Nkind
(N
) = N_Attribute_Definition_Clause
4746 and then Get_Attribute_Id
(Chars
(N
)) = Id
4755 end Get_Attribute_Definition_Clause
;
4757 --------------------
4758 -- Get_Rep_Pragma --
4759 --------------------
4761 function Get_Rep_Pragma
(E
: Entity_Id
; Nam
: Name_Id
) return Node_Id
is
4766 N
:= First_Rep_Item
(E
);
4768 while Present
(N
) loop
4769 if Nkind
(N
) = N_Pragma
and then Chars
(N
) = Nam
then
4771 if Nam
= Name_Stream_Convert
then
4773 -- For tagged types this pragma is not inherited, so we
4774 -- must verify that it is defined for the given type and
4777 Typ
:= Entity
(Expression
4778 (First
(Pragma_Argument_Associations
(N
))));
4780 if not Is_Tagged_Type
(E
)
4782 or else (Is_Private_Type
(Typ
)
4783 and then E
= Full_View
(Typ
))
4801 ------------------------
4802 -- Has_Attach_Handler --
4803 ------------------------
4805 function Has_Attach_Handler
(Id
: E
) return B
is
4809 pragma Assert
(Is_Protected_Type
(Id
));
4811 Ritem
:= First_Rep_Item
(Id
);
4812 while Present
(Ritem
) loop
4813 if Nkind
(Ritem
) = N_Pragma
4814 and then Chars
(Ritem
) = Name_Attach_Handler
4818 Ritem
:= Next_Rep_Item
(Ritem
);
4823 end Has_Attach_Handler
;
4829 function Has_Entries
(Id
: E
) return B
is
4830 Result
: Boolean := False;
4834 pragma Assert
(Is_Concurrent_Type
(Id
));
4835 Ent
:= First_Entity
(Id
);
4837 while Present
(Ent
) loop
4838 if Is_Entry
(Ent
) then
4843 Ent
:= Next_Entity
(Ent
);
4849 ----------------------------
4850 -- Has_Foreign_Convention --
4851 ----------------------------
4853 function Has_Foreign_Convention
(Id
: E
) return B
is
4855 return Convention
(Id
) >= Foreign_Convention
'First;
4856 end Has_Foreign_Convention
;
4858 ---------------------------
4859 -- Has_Interrupt_Handler --
4860 ---------------------------
4862 function Has_Interrupt_Handler
(Id
: E
) return B
is
4866 pragma Assert
(Is_Protected_Type
(Id
));
4868 Ritem
:= First_Rep_Item
(Id
);
4869 while Present
(Ritem
) loop
4870 if Nkind
(Ritem
) = N_Pragma
4871 and then Chars
(Ritem
) = Name_Interrupt_Handler
4875 Ritem
:= Next_Rep_Item
(Ritem
);
4880 end Has_Interrupt_Handler
;
4882 --------------------------
4883 -- Has_Private_Ancestor --
4884 --------------------------
4886 function Has_Private_Ancestor
(Id
: E
) return B
is
4887 R
: constant Entity_Id
:= Root_Type
(Id
);
4888 T1
: Entity_Id
:= Id
;
4892 if Is_Private_Type
(T1
) then
4902 end Has_Private_Ancestor
;
4904 ------------------------------
4905 -- Implementation_Base_Type --
4906 ------------------------------
4908 function Implementation_Base_Type
(Id
: E
) return E
is
4913 Bastyp
:= Base_Type
(Id
);
4915 if Is_Incomplete_Or_Private_Type
(Bastyp
) then
4916 Imptyp
:= Underlying_Type
(Bastyp
);
4918 -- If we have an implementation type, then just return it,
4919 -- otherwise we return the Base_Type anyway. This can only
4920 -- happen in error situations and should avoid some error bombs.
4922 if Present
(Imptyp
) then
4923 return Base_Type
(Imptyp
);
4931 end Implementation_Base_Type
;
4933 -----------------------
4934 -- Is_Always_Inlined --
4935 -----------------------
4937 function Is_Always_Inlined
(Id
: E
) return B
is
4941 Item
:= First_Rep_Item
(Id
);
4943 while Present
(Item
) loop
4944 if Nkind
(Item
) = N_Pragma
4945 and then Get_Pragma_Id
(Chars
(Item
)) = Pragma_Inline_Always
4950 Next_Rep_Item
(Item
);
4954 end Is_Always_Inlined
;
4956 ---------------------
4957 -- Is_Boolean_Type --
4958 ---------------------
4960 function Is_Boolean_Type
(Id
: E
) return B
is
4962 return Root_Type
(Id
) = Standard_Boolean
;
4963 end Is_Boolean_Type
;
4965 ---------------------
4966 -- Is_By_Copy_Type --
4967 ---------------------
4969 function Is_By_Copy_Type
(Id
: E
) return B
is
4971 -- If Id is a private type whose full declaration has not been seen,
4972 -- we assume for now that it is not a By_Copy type. Clearly this
4973 -- attribute should not be used before the type is frozen, but it is
4974 -- needed to build the associated record of a protected type. Another
4975 -- place where some lookahead for a full view is needed ???
4978 Is_Elementary_Type
(Id
)
4979 or else (Is_Private_Type
(Id
)
4980 and then Present
(Underlying_Type
(Id
))
4981 and then Is_Elementary_Type
(Underlying_Type
(Id
)));
4982 end Is_By_Copy_Type
;
4984 --------------------------
4985 -- Is_By_Reference_Type --
4986 --------------------------
4988 function Is_By_Reference_Type
(Id
: E
) return B
is
4989 Btype
: constant Entity_Id
:= Base_Type
(Id
);
4992 if Error_Posted
(Id
)
4993 or else Error_Posted
(Btype
)
4997 elsif Is_Private_Type
(Btype
) then
4999 Utyp
: constant Entity_Id
:= Underlying_Type
(Btype
);
5005 return Is_By_Reference_Type
(Utyp
);
5009 elsif Is_Concurrent_Type
(Btype
) then
5012 elsif Is_Record_Type
(Btype
) then
5014 if Is_Limited_Record
(Btype
)
5015 or else Is_Tagged_Type
(Btype
)
5016 or else Is_Volatile
(Btype
)
5022 C
: Entity_Id
:= First_Component
(Btype
);
5025 while Present
(C
) loop
5026 if Is_By_Reference_Type
(Etype
(C
))
5027 or else Is_Volatile
(Etype
(C
))
5032 C
:= Next_Component
(C
);
5039 elsif Is_Array_Type
(Btype
) then
5042 or else Is_By_Reference_Type
(Component_Type
(Btype
))
5043 or else Is_Volatile
(Component_Type
(Btype
))
5044 or else Has_Volatile_Components
(Btype
);
5049 end Is_By_Reference_Type
;
5051 ---------------------
5052 -- Is_Derived_Type --
5053 ---------------------
5055 function Is_Derived_Type
(Id
: E
) return B
is
5059 if Base_Type
(Id
) /= Root_Type
(Id
)
5060 and then not Is_Generic_Type
(Id
)
5061 and then not Is_Class_Wide_Type
(Id
)
5063 if not Is_Numeric_Type
(Root_Type
(Id
)) then
5067 Par
:= Parent
(First_Subtype
(Id
));
5069 return Present
(Par
)
5070 and then Nkind
(Par
) = N_Full_Type_Declaration
5071 and then Nkind
(Type_Definition
(Par
))
5072 = N_Derived_Type_Definition
;
5078 end Is_Derived_Type
;
5080 ----------------------
5081 -- Is_Dynamic_Scope --
5082 ----------------------
5084 function Is_Dynamic_Scope
(Id
: E
) return B
is
5087 Ekind
(Id
) = E_Block
5089 Ekind
(Id
) = E_Function
5091 Ekind
(Id
) = E_Procedure
5093 Ekind
(Id
) = E_Subprogram_Body
5095 Ekind
(Id
) = E_Task_Type
5097 Ekind
(Id
) = E_Entry
5099 Ekind
(Id
) = E_Entry_Family
;
5100 end Is_Dynamic_Scope
;
5102 --------------------
5103 -- Is_Entity_Name --
5104 --------------------
5106 function Is_Entity_Name
(N
: Node_Id
) return Boolean is
5107 Kind
: constant Node_Kind
:= Nkind
(N
);
5110 -- Identifiers, operator symbols, expanded names are entity names
5112 return Kind
= N_Identifier
5113 or else Kind
= N_Operator_Symbol
5114 or else Kind
= N_Expanded_Name
5116 -- Attribute references are entity names if they refer to an entity.
5117 -- Note that we don't do this by testing for the presence of the
5118 -- Entity field in the N_Attribute_Reference node, since it may not
5119 -- have been set yet.
5121 or else (Kind
= N_Attribute_Reference
5122 and then Is_Entity_Attribute_Name
(Attribute_Name
(N
)));
5125 ---------------------------
5126 -- Is_Indefinite_Subtype --
5127 ---------------------------
5129 function Is_Indefinite_Subtype
(Id
: Entity_Id
) return B
is
5130 K
: constant Entity_Kind
:= Ekind
(Id
);
5133 if Is_Constrained
(Id
) then
5136 elsif K
in Array_Kind
5137 or else K
in Class_Wide_Kind
5138 or else Has_Unknown_Discriminants
(Id
)
5142 -- Known discriminants: indefinite if there are no default values
5144 elsif K
in Record_Kind
5145 or else Is_Incomplete_Or_Private_Type
(Id
)
5146 or else Is_Concurrent_Type
(Id
)
5148 return (Has_Discriminants
(Id
)
5149 and then No
(Discriminant_Default_Value
(First_Discriminant
(Id
))));
5154 end Is_Indefinite_Subtype
;
5156 ---------------------
5157 -- Is_Limited_Type --
5158 ---------------------
5160 function Is_Limited_Type
(Id
: E
) return B
is
5161 Btype
: constant E
:= Base_Type
(Id
);
5164 if not Is_Type
(Id
) then
5167 elsif Ekind
(Btype
) = E_Limited_Private_Type
5168 or else Is_Limited_Composite
(Btype
)
5172 elsif Is_Concurrent_Type
(Btype
) then
5175 -- Otherwise we will look around to see if there is some other reason
5176 -- for it to be limited, except that if an error was posted on the
5177 -- entity, then just assume it is non-limited, because it can cause
5178 -- trouble to recurse into a murky erroneous entity!
5180 elsif Error_Posted
(Id
) then
5183 elsif Is_Record_Type
(Btype
) then
5184 if Is_Limited_Record
(Root_Type
(Btype
)) then
5187 elsif Is_Class_Wide_Type
(Btype
) then
5188 return Is_Limited_Type
(Root_Type
(Btype
));
5192 C
: E
:= First_Component
(Btype
);
5195 while Present
(C
) loop
5196 if Is_Limited_Type
(Etype
(C
)) then
5200 C
:= Next_Component
(C
);
5207 elsif Is_Array_Type
(Btype
) then
5208 return Is_Limited_Type
(Component_Type
(Btype
));
5213 end Is_Limited_Type
;
5219 function Is_Package
(Id
: E
) return B
is
5222 Ekind
(Id
) = E_Package
5224 Ekind
(Id
) = E_Generic_Package
;
5227 --------------------------
5228 -- Is_Protected_Private --
5229 --------------------------
5231 function Is_Protected_Private
(Id
: E
) return B
is
5234 pragma Assert
(Ekind
(Id
) = E_Component
);
5235 return Is_Protected_Type
(Scope
(Id
));
5236 end Is_Protected_Private
;
5238 ------------------------------
5239 -- Is_Protected_Record_Type --
5240 ------------------------------
5242 function Is_Protected_Record_Type
(Id
: E
) return B
is
5245 Is_Concurrent_Record_Type
(Id
)
5246 and then Is_Protected_Type
(Corresponding_Concurrent_Type
(Id
));
5247 end Is_Protected_Record_Type
;
5249 ---------------------------------
5250 -- Is_Return_By_Reference_Type --
5251 ---------------------------------
5253 function Is_Return_By_Reference_Type
(Id
: E
) return B
is
5254 Btype
: constant Entity_Id
:= Base_Type
(Id
);
5257 if Is_Private_Type
(Btype
) then
5259 Utyp
: constant Entity_Id
:= Underlying_Type
(Btype
);
5265 return Is_Return_By_Reference_Type
(Utyp
);
5269 elsif Is_Concurrent_Type
(Btype
) then
5272 elsif Is_Record_Type
(Btype
) then
5273 if Is_Limited_Record
(Btype
) then
5276 elsif Is_Class_Wide_Type
(Btype
) then
5277 return Is_Return_By_Reference_Type
(Root_Type
(Btype
));
5281 C
: Entity_Id
:= First_Component
(Btype
);
5284 while Present
(C
) loop
5285 if Is_Return_By_Reference_Type
(Etype
(C
)) then
5289 C
:= Next_Component
(C
);
5296 elsif Is_Array_Type
(Btype
) then
5297 return Is_Return_By_Reference_Type
(Component_Type
(Btype
));
5302 end Is_Return_By_Reference_Type
;
5304 --------------------
5305 -- Is_String_Type --
5306 --------------------
5308 function Is_String_Type
(Id
: E
) return B
is
5310 return Ekind
(Id
) in String_Kind
5311 or else (Is_Array_Type
(Id
)
5312 and then Number_Dimensions
(Id
) = 1
5313 and then Is_Character_Type
(Component_Type
(Id
)));
5316 -------------------------
5317 -- Is_Task_Record_Type --
5318 -------------------------
5320 function Is_Task_Record_Type
(Id
: E
) return B
is
5323 Is_Concurrent_Record_Type
(Id
)
5324 and then Is_Task_Type
(Corresponding_Concurrent_Type
(Id
));
5325 end Is_Task_Record_Type
;
5327 ------------------------
5328 -- Is_Wrapper_Package --
5329 ------------------------
5331 function Is_Wrapper_Package
(Id
: E
) return B
is
5333 return (Ekind
(Id
) = E_Package
5334 and then Present
(Related_Instance
(Id
)));
5335 end Is_Wrapper_Package
;
5337 --------------------
5338 -- Next_Component --
5339 --------------------
5341 function Next_Component
(Id
: E
) return E
is
5345 Comp_Id
:= Next_Entity
(Id
);
5347 while Present
(Comp_Id
) loop
5348 exit when Ekind
(Comp_Id
) = E_Component
;
5349 Comp_Id
:= Next_Entity
(Comp_Id
);
5355 -----------------------
5356 -- Next_Discriminant --
5357 -----------------------
5359 -- This function actually implements both Next_Discriminant and
5360 -- Next_Girder_Discriminant by making sure that the Discriminant
5361 -- returned is of the same variety as Id.
5363 function Next_Discriminant
(Id
: E
) return E
is
5365 -- Derived Tagged types with private extensions look like this...
5367 -- E_Discriminant d1
5368 -- E_Discriminant d2
5370 -- E_Discriminant d1
5371 -- E_Discriminant d2
5373 -- so it is critical not to go past the leading discriminants.
5378 pragma Assert
(Ekind
(Id
) = E_Discriminant
);
5381 D
:= Next_Entity
(D
);
5383 or else (Ekind
(D
) /= E_Discriminant
5384 and then not Is_Itype
(D
))
5389 exit when Ekind
(D
) = E_Discriminant
5390 and then (Is_Completely_Hidden
(D
) = Is_Completely_Hidden
(Id
));
5394 end Next_Discriminant
;
5400 function Next_Formal
(Id
: E
) return E
is
5404 -- Follow the chain of declared entities as long as the kind of
5405 -- the entity corresponds to a formal parameter. Skip internal
5406 -- entities that may have been created for implicit subtypes,
5407 -- in the process of analyzing default expressions.
5412 P
:= Next_Entity
(P
);
5414 if No
(P
) or else Is_Formal
(P
) then
5416 elsif not Is_Internal
(P
) then
5422 -----------------------------
5423 -- Next_Formal_With_Extras --
5424 -----------------------------
5426 function Next_Formal_With_Extras
(Id
: E
) return E
is
5428 if Present
(Extra_Formal
(Id
)) then
5429 return Extra_Formal
(Id
);
5432 return Next_Formal
(Id
);
5434 end Next_Formal_With_Extras
;
5436 ------------------------------
5437 -- Next_Girder_Discriminant --
5438 ------------------------------
5440 function Next_Girder_Discriminant
(Id
: E
) return E
is
5442 -- See comment in Next_Discriminant
5444 return Next_Discriminant
(Id
);
5445 end Next_Girder_Discriminant
;
5451 function Next_Index
(Id
: Node_Id
) return Node_Id
is
5460 function Next_Literal
(Id
: E
) return E
is
5462 pragma Assert
(Nkind
(Id
) in N_Entity
);
5466 -----------------------
5467 -- Number_Dimensions --
5468 -----------------------
5470 function Number_Dimensions
(Id
: E
) return Pos
is
5475 if Ekind
(Id
) in String_Kind
then
5480 T
:= First_Index
(Id
);
5482 while Present
(T
) loop
5489 end Number_Dimensions
;
5491 --------------------------
5492 -- Number_Discriminants --
5493 --------------------------
5495 function Number_Discriminants
(Id
: E
) return Pos
is
5501 Discr
:= First_Discriminant
(Id
);
5503 while Present
(Discr
) loop
5505 Discr
:= Next_Discriminant
(Discr
);
5509 end Number_Discriminants
;
5511 --------------------
5512 -- Number_Entries --
5513 --------------------
5515 function Number_Entries
(Id
: E
) return Nat
is
5520 pragma Assert
(Is_Concurrent_Type
(Id
));
5522 Ent
:= First_Entity
(Id
);
5524 while Present
(Ent
) loop
5525 if Is_Entry
(Ent
) then
5529 Ent
:= Next_Entity
(Ent
);
5535 --------------------
5536 -- Number_Formals --
5537 --------------------
5539 function Number_Formals
(Id
: E
) return Pos
is
5545 Formal
:= First_Formal
(Id
);
5547 while Present
(Formal
) loop
5549 Formal
:= Next_Formal
(Formal
);
5555 --------------------
5556 -- Parameter_Mode --
5557 --------------------
5559 function Parameter_Mode
(Id
: E
) return Formal_Kind
is
5568 function Root_Type
(Id
: E
) return E
is
5572 pragma Assert
(Nkind
(Id
) in N_Entity
);
5574 T
:= Base_Type
(Id
);
5576 if Ekind
(T
) = E_Class_Wide_Type
then
5588 elsif Is_Private_Type
(T
) and then Etyp
= Full_View
(T
) then
5591 elsif Is_Private_Type
(Etyp
) and then Full_View
(Etyp
) = T
then
5599 raise Program_Error
;
5606 function Scope_Depth
(Id
: E
) return Uint
is
5607 Scop
: Entity_Id
:= Id
;
5610 while Is_Record_Type
(Scop
) loop
5611 Scop
:= Scope
(Scop
);
5614 return Scope_Depth_Value
(Scop
);
5617 ---------------------
5618 -- Scope_Depth_Set --
5619 ---------------------
5621 function Scope_Depth_Set
(Id
: E
) return B
is
5623 return not Is_Record_Type
(Id
)
5624 and then Field22
(Id
) /= Union_Id
(Empty
);
5625 end Scope_Depth_Set
;
5627 -----------------------------
5628 -- Set_Component_Alignment --
5629 -----------------------------
5631 -- Component Alignment is encoded using two flags, Flag128/129 as
5632 -- follows. Note that both flags False = Align_Default, so that the
5633 -- default initialization of flags to False initializes component
5634 -- alignment to the default value as required.
5636 -- Flag128 Flag129 Value
5637 -- ------- ------- -----
5638 -- False False Calign_Default
5639 -- False True Calign_Component_Size
5640 -- True False Calign_Component_Size_4
5641 -- True True Calign_Storage_Unit
5643 procedure Set_Component_Alignment
(Id
: E
; V
: C
) is
5645 pragma Assert
((Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
5646 and then Id
= Base_Type
(Id
));
5649 when Calign_Default
=>
5650 Set_Flag128
(Id
, False);
5651 Set_Flag129
(Id
, False);
5653 when Calign_Component_Size
=>
5654 Set_Flag128
(Id
, False);
5655 Set_Flag129
(Id
, True);
5657 when Calign_Component_Size_4
=>
5658 Set_Flag128
(Id
, True);
5659 Set_Flag129
(Id
, False);
5661 when Calign_Storage_Unit
=>
5662 Set_Flag128
(Id
, True);
5663 Set_Flag129
(Id
, True);
5665 end Set_Component_Alignment
;
5671 function Size_Clause
(Id
: E
) return N
is
5675 Ritem
:= First_Rep_Item
(Id
);
5676 while Present
(Ritem
) loop
5677 if Nkind
(Ritem
) = N_Attribute_Definition_Clause
5678 and then Chars
(Ritem
) = Name_Size
5682 Ritem
:= Next_Rep_Item
(Ritem
);
5693 function Subtype_Kind
(K
: Entity_Kind
) return Entity_Kind
is
5699 Kind
:= E_Access_Subtype
;
5703 Kind
:= E_Array_Subtype
;
5705 when E_Class_Wide_Type |
5706 E_Class_Wide_Subtype
=>
5707 Kind
:= E_Class_Wide_Subtype
;
5709 when E_Decimal_Fixed_Point_Type |
5710 E_Decimal_Fixed_Point_Subtype
=>
5711 Kind
:= E_Decimal_Fixed_Point_Subtype
;
5713 when E_Ordinary_Fixed_Point_Type |
5714 E_Ordinary_Fixed_Point_Subtype
=>
5715 Kind
:= E_Ordinary_Fixed_Point_Subtype
;
5717 when E_Private_Type |
5718 E_Private_Subtype
=>
5719 Kind
:= E_Private_Subtype
;
5721 when E_Limited_Private_Type |
5722 E_Limited_Private_Subtype
=>
5723 Kind
:= E_Limited_Private_Subtype
;
5725 when E_Record_Type_With_Private |
5726 E_Record_Subtype_With_Private
=>
5727 Kind
:= E_Record_Subtype_With_Private
;
5729 when E_Record_Type |
5731 Kind
:= E_Record_Subtype
;
5733 when E_String_Type |
5735 Kind
:= E_String_Subtype
;
5737 when Enumeration_Kind
=>
5738 Kind
:= E_Enumeration_Subtype
;
5741 Kind
:= E_Floating_Point_Subtype
;
5743 when Signed_Integer_Kind
=>
5744 Kind
:= E_Signed_Integer_Subtype
;
5746 when Modular_Integer_Kind
=>
5747 Kind
:= E_Modular_Integer_Subtype
;
5749 when Protected_Kind
=>
5750 Kind
:= E_Protected_Subtype
;
5753 Kind
:= E_Task_Subtype
;
5757 raise Program_Error
;
5767 function Tag_Component
(Id
: E
) return E
is
5769 Typ
: Entity_Id
:= Id
;
5772 pragma Assert
(Is_Tagged_Type
(Typ
));
5774 if Is_Class_Wide_Type
(Typ
) then
5775 Typ
:= Root_Type
(Typ
);
5778 if Is_Private_Type
(Typ
) then
5779 Typ
:= Underlying_Type
(Typ
);
5782 Comp
:= First_Entity
(Typ
);
5783 while Present
(Comp
) loop
5784 if Is_Tag
(Comp
) then
5788 Comp
:= Next_Entity
(Comp
);
5791 -- No tag component found
5796 ---------------------
5797 -- Type_High_Bound --
5798 ---------------------
5800 function Type_High_Bound
(Id
: E
) return Node_Id
is
5802 if Nkind
(Scalar_Range
(Id
)) = N_Subtype_Indication
then
5803 return High_Bound
(Range_Expression
(Constraint
(Scalar_Range
(Id
))));
5805 return High_Bound
(Scalar_Range
(Id
));
5807 end Type_High_Bound
;
5809 --------------------
5810 -- Type_Low_Bound --
5811 --------------------
5813 function Type_Low_Bound
(Id
: E
) return Node_Id
is
5815 if Nkind
(Scalar_Range
(Id
)) = N_Subtype_Indication
then
5816 return Low_Bound
(Range_Expression
(Constraint
(Scalar_Range
(Id
))));
5818 return Low_Bound
(Scalar_Range
(Id
));
5822 ---------------------
5823 -- Underlying_Type --
5824 ---------------------
5826 function Underlying_Type
(Id
: E
) return E
is
5829 -- For record_with_private the underlying type is always the direct
5830 -- full view. Never try to take the full view of the parent it
5831 -- doesn't make sense.
5833 if Ekind
(Id
) = E_Record_Type_With_Private
then
5834 return Full_View
(Id
);
5836 elsif Ekind
(Id
) in Incomplete_Or_Private_Kind
then
5838 -- If we have an incomplete or private type with a full view,
5839 -- then we return the Underlying_Type of this full view
5841 if Present
(Full_View
(Id
)) then
5842 return Underlying_Type
(Full_View
(Id
));
5844 -- Otherwise check for the case where we have a derived type or
5845 -- subtype, and if so get the Underlying_Type of the parent type.
5847 elsif Etype
(Id
) /= Id
then
5848 return Underlying_Type
(Etype
(Id
));
5850 -- Otherwise we have an incomplete or private type that has
5851 -- no full view, which means that we have not encountered the
5852 -- completion, so return Empty to indicate the underlying type
5853 -- is not yet known.
5859 -- For non-incomplete, non-private types, return the type itself
5860 -- Also for entities that are not types at all return the entity
5866 end Underlying_Type
;
5868 ------------------------
5869 -- Write_Entity_Flags --
5870 ------------------------
5872 procedure Write_Entity_Flags
(Id
: Entity_Id
; Prefix
: String) is
5874 procedure W
(Flag_Name
: String; Flag
: Boolean);
5875 -- Write out given flag if it is set
5877 procedure W
(Flag_Name
: String; Flag
: Boolean) is
5881 Write_Str
(Flag_Name
);
5882 Write_Str
(" = True");
5887 -- Start of processing for Write_Entity_Flags
5890 if (Is_Array_Type
(Id
) or else Is_Record_Type
(Id
))
5891 and then Base_Type
(Id
) = Id
5894 Write_Str
("Component_Alignment = ");
5896 case Component_Alignment
(Id
) is
5897 when Calign_Default
=>
5898 Write_Str
("Calign_Default");
5900 when Calign_Component_Size
=>
5901 Write_Str
("Calign_Component_Size");
5903 when Calign_Component_Size_4
=>
5904 Write_Str
("Calign_Component_Size_4");
5906 when Calign_Storage_Unit
=>
5907 Write_Str
("Calign_Storage_Unit");
5913 W
("Address_Taken", Flag104
(Id
));
5914 W
("C_Pass_By_Copy", Flag125
(Id
));
5915 W
("Debug_Info_Off", Flag166
(Id
));
5916 W
("Default_Expressions_Processed", Flag108
(Id
));
5917 W
("Delay_Cleanups", Flag114
(Id
));
5918 W
("Delay_Subprogram_Descriptors", Flag50
(Id
));
5919 W
("Depends_On_Private", Flag14
(Id
));
5920 W
("Discard_Names", Flag88
(Id
));
5921 W
("Elaborate_All_Desirable", Flag146
(Id
));
5922 W
("Elaboration_Entity_Required", Flag174
(Id
));
5923 W
("Entry_Accepted", Flag152
(Id
));
5924 W
("Finalize_Storage_Only", Flag158
(Id
));
5925 W
("From_With_Type", Flag159
(Id
));
5926 W
("Function_Returns_With_DSP", Flag169
(Id
));
5927 W
("Has_Aliased_Components", Flag135
(Id
));
5928 W
("Has_Alignment_Clause", Flag46
(Id
));
5929 W
("Has_All_Calls_Remote", Flag79
(Id
));
5930 W
("Has_Atomic_Components", Flag86
(Id
));
5931 W
("Has_Biased_Representation", Flag139
(Id
));
5932 W
("Has_Completion", Flag26
(Id
));
5933 W
("Has_Completion_In_Body", Flag71
(Id
));
5934 W
("Has_Complex_Representation", Flag140
(Id
));
5935 W
("Has_Component_Size_Clause", Flag68
(Id
));
5936 W
("Has_Controlled_Component", Flag43
(Id
));
5937 W
("Has_Controlling_Result", Flag98
(Id
));
5938 W
("Has_Convention_Pragma", Flag119
(Id
));
5939 W
("Has_Delayed_Freeze", Flag18
(Id
));
5940 W
("Has_Discriminants", Flag5
(Id
));
5941 W
("Has_Enumeration_Rep_Clause", Flag66
(Id
));
5942 W
("Has_Exit", Flag47
(Id
));
5943 W
("Has_External_Tag_Rep_Clause", Flag110
(Id
));
5944 W
("Has_Forward_Instantiation", Flag175
(Id
));
5945 W
("Has_Fully_Qualified_Name", Flag173
(Id
));
5946 W
("Has_Gigi_Rep_Item", Flag82
(Id
));
5947 W
("Has_Homonym", Flag56
(Id
));
5948 W
("Has_Machine_Radix_Clause", Flag83
(Id
));
5949 W
("Has_Master_Entity", Flag21
(Id
));
5950 W
("Has_Missing_Return", Flag142
(Id
));
5951 W
("Has_Nested_Block_With_Handler", Flag101
(Id
));
5952 W
("Has_Non_Standard_Rep", Flag75
(Id
));
5953 W
("Has_Object_Size_Clause", Flag172
(Id
));
5954 W
("Has_Per_Object_Constraint", Flag154
(Id
));
5955 W
("Has_Pragma_Controlled", Flag27
(Id
));
5956 W
("Has_Pragma_Elaborate_Body", Flag150
(Id
));
5957 W
("Has_Pragma_Inline", Flag157
(Id
));
5958 W
("Has_Pragma_Pack", Flag121
(Id
));
5959 W
("Has_Pragma_Pure_Function", Flag179
(Id
));
5960 W
("Has_Pragma_Unreferenced", Flag180
(Id
));
5961 W
("Has_Primitive_Operations", Flag120
(Id
));
5962 W
("Has_Private_Declaration", Flag155
(Id
));
5963 W
("Has_Qualified_Name", Flag161
(Id
));
5964 W
("Has_Record_Rep_Clause", Flag65
(Id
));
5965 W
("Has_Recursive_Call", Flag143
(Id
));
5966 W
("Has_Size_Clause", Flag29
(Id
));
5967 W
("Has_Small_Clause", Flag67
(Id
));
5968 W
("Has_Specified_Layout", Flag100
(Id
));
5969 W
("Has_Storage_Size_Clause", Flag23
(Id
));
5970 W
("Has_Subprogram_Descriptor", Flag93
(Id
));
5971 W
("Has_Task", Flag30
(Id
));
5972 W
("Has_Unchecked_Union", Flag123
(Id
));
5973 W
("Has_Unknown_Discriminants", Flag72
(Id
));
5974 W
("Has_Volatile_Components", Flag87
(Id
));
5975 W
("In_Package_Body", Flag48
(Id
));
5976 W
("In_Private_Part", Flag45
(Id
));
5977 W
("In_Use", Flag8
(Id
));
5978 W
("Is_AST_Entry", Flag132
(Id
));
5979 W
("Is_Abstract", Flag19
(Id
));
5980 W
("Is_Access_Constant", Flag69
(Id
));
5981 W
("Is_Aliased", Flag15
(Id
));
5982 W
("Is_Asynchronous", Flag81
(Id
));
5983 W
("Is_Atomic", Flag85
(Id
));
5984 W
("Is_Bit_Packed_Array", Flag122
(Id
));
5985 W
("Is_CPP_Class", Flag74
(Id
));
5986 W
("Is_Called", Flag102
(Id
));
5987 W
("Is_Character_Type", Flag63
(Id
));
5988 W
("Is_Child_Unit", Flag73
(Id
));
5989 W
("Is_Compilation_Unit", Flag149
(Id
));
5990 W
("Is_Completely_Hidden", Flag103
(Id
));
5991 W
("Is_Concurrent_Record_Type", Flag20
(Id
));
5992 W
("Is_Constr_Subt_For_UN_Aliased", Flag141
(Id
));
5993 W
("Is_Constr_Subt_For_U_Nominal", Flag80
(Id
));
5994 W
("Is_Constrained", Flag12
(Id
));
5995 W
("Is_Constructor", Flag76
(Id
));
5996 W
("Is_Controlled", Flag42
(Id
));
5997 W
("Is_Controlling_Formal", Flag97
(Id
));
5998 W
("Is_Destructor", Flag77
(Id
));
5999 W
("Is_Discrim_SO_Function", Flag176
(Id
));
6000 W
("Is_Dispatching_Operation", Flag6
(Id
));
6001 W
("Is_Eliminated", Flag124
(Id
));
6002 W
("Is_Entry_Formal", Flag52
(Id
));
6003 W
("Is_Exported", Flag99
(Id
));
6004 W
("Is_First_Subtype", Flag70
(Id
));
6005 W
("Is_For_Access_Subtype", Flag118
(Id
));
6006 W
("Is_Formal_Subprogram", Flag111
(Id
));
6007 W
("Is_Frozen", Flag4
(Id
));
6008 W
("Is_Generic_Actual_Type", Flag94
(Id
));
6009 W
("Is_Generic_Instance", Flag130
(Id
));
6010 W
("Is_Generic_Type", Flag13
(Id
));
6011 W
("Is_Hidden", Flag57
(Id
));
6012 W
("Is_Hidden_Open_Scope", Flag171
(Id
));
6013 W
("Is_Immediately_Visible", Flag7
(Id
));
6014 W
("Is_Imported", Flag24
(Id
));
6015 W
("Is_Inlined", Flag11
(Id
));
6016 W
("Is_Instantiated", Flag126
(Id
));
6017 W
("Is_Internal", Flag17
(Id
));
6018 W
("Is_Interrupt_Handler", Flag89
(Id
));
6019 W
("Is_Intrinsic_Subprogram", Flag64
(Id
));
6020 W
("Is_Itype", Flag91
(Id
));
6021 W
("Is_Known_Valid", Flag170
(Id
));
6022 W
("Is_Limited_Composite", Flag106
(Id
));
6023 W
("Is_Limited_Record", Flag25
(Id
));
6024 W
("Is_Non_Static_Subtype", Flag109
(Id
));
6025 W
("Is_Null_Init_Proc", Flag178
(Id
));
6026 W
("Is_Optional_Parameter", Flag134
(Id
));
6027 W
("Is_Package_Body_Entity", Flag160
(Id
));
6028 W
("Is_Packed", Flag51
(Id
));
6029 W
("Is_Packed_Array_Type", Flag138
(Id
));
6030 W
("Is_Potentially_Use_Visible", Flag9
(Id
));
6031 W
("Is_Preelaborated", Flag59
(Id
));
6032 W
("Is_Private_Composite", Flag107
(Id
));
6033 W
("Is_Private_Descendant", Flag53
(Id
));
6034 W
("Is_Psected", Flag153
(Id
));
6035 W
("Is_Public", Flag10
(Id
));
6036 W
("Is_Pure", Flag44
(Id
));
6037 W
("Is_Remote_Call_Interface", Flag62
(Id
));
6038 W
("Is_Remote_Types", Flag61
(Id
));
6039 W
("Is_Renaming_Of_Object", Flag112
(Id
));
6040 W
("Is_Shared_Passive", Flag60
(Id
));
6041 W
("Is_Statically_Allocated", Flag28
(Id
));
6042 W
("Is_Tag", Flag78
(Id
));
6043 W
("Is_Tagged_Type", Flag55
(Id
));
6044 W
("Is_True_Constant", Flag163
(Id
));
6045 W
("Is_Unchecked_Union", Flag117
(Id
));
6046 W
("Is_Unsigned_Type", Flag144
(Id
));
6047 W
("Is_VMS_Exception", Flag133
(Id
));
6048 W
("Is_Valued_Procedure", Flag127
(Id
));
6049 W
("Is_Visible_Child_Unit", Flag116
(Id
));
6050 W
("Is_Volatile", Flag16
(Id
));
6051 W
("Machine_Radix_10", Flag84
(Id
));
6052 W
("Materialize_Entity", Flag168
(Id
));
6053 W
("Needs_Debug_Info", Flag147
(Id
));
6054 W
("Needs_No_Actuals", Flag22
(Id
));
6055 W
("No_Pool_Assigned", Flag131
(Id
));
6056 W
("No_Return", Flag113
(Id
));
6057 W
("Non_Binary_Modulus", Flag58
(Id
));
6058 W
("Nonzero_Is_True", Flag162
(Id
));
6059 W
("Not_Source_Assigned", Flag115
(Id
));
6060 W
("Reachable", Flag49
(Id
));
6061 W
("Referenced", Flag156
(Id
));
6062 W
("Return_Present", Flag54
(Id
));
6063 W
("Returns_By_Ref", Flag90
(Id
));
6064 W
("Reverse_Bit_Order", Flag164
(Id
));
6065 W
("Sec_Stack_Needed_For_Return", Flag167
(Id
));
6066 W
("Size_Depends_On_Discriminant", Flag177
(Id
));
6067 W
("Size_Known_At_Compile_Time", Flag92
(Id
));
6068 W
("Strict_Alignment", Flag145
(Id
));
6069 W
("Suppress_Access_Checks", Flag31
(Id
));
6070 W
("Suppress_Accessibility_Checks", Flag32
(Id
));
6071 W
("Suppress_Discriminant_Checks", Flag33
(Id
));
6072 W
("Suppress_Division_Checks", Flag34
(Id
));
6073 W
("Suppress_Elaboration_Checks", Flag35
(Id
));
6074 W
("Suppress_Elaboration_Warnings", Flag148
(Id
));
6075 W
("Suppress_Index_Checks", Flag36
(Id
));
6076 W
("Suppress_Init_Proc", Flag105
(Id
));
6077 W
("Suppress_Length_Checks", Flag37
(Id
));
6078 W
("Suppress_Overflow_Checks", Flag38
(Id
));
6079 W
("Suppress_Range_Checks", Flag39
(Id
));
6080 W
("Suppress_Storage_Checks", Flag40
(Id
));
6081 W
("Suppress_Style_Checks", Flag165
(Id
));
6082 W
("Suppress_Tag_Checks", Flag41
(Id
));
6083 W
("Uses_Sec_Stack", Flag95
(Id
));
6084 W
("Vax_Float", Flag151
(Id
));
6085 W
("Warnings_Off", Flag96
(Id
));
6087 end Write_Entity_Flags
;
6089 -----------------------
6090 -- Write_Entity_Info --
6091 -----------------------
6093 procedure Write_Entity_Info
(Id
: Entity_Id
; Prefix
: String) is
6095 procedure Write_Attribute
(Which
: String; Nam
: E
);
6096 -- Write attribute value with given string name
6098 procedure Write_Kind
(Id
: Entity_Id
);
6099 -- Write Ekind field of entity
6101 procedure Write_Attribute
(Which
: String; Nam
: E
) is
6105 Write_Int
(Int
(Nam
));
6107 Write_Name
(Chars
(Nam
));
6109 end Write_Attribute
;
6111 procedure Write_Kind
(Id
: Entity_Id
) is
6112 K
: constant String := Entity_Kind
'Image (Ekind
(Id
));
6116 Write_Str
(" Kind ");
6118 if Is_Type
(Id
) and then Is_Tagged_Type
(Id
) then
6119 Write_Str
("TAGGED ");
6122 Write_Str
(K
(3 .. K
'Length));
6125 if Is_Type
(Id
) and then Depends_On_Private
(Id
) then
6126 Write_Str
("Depends_On_Private ");
6130 -- Start of processing for Write_Entity_Info
6134 Write_Attribute
("Name ", Id
);
6135 Write_Int
(Int
(Id
));
6139 Write_Attribute
(" Type ", Etype
(Id
));
6141 Write_Attribute
(" Scope ", Scope
(Id
));
6146 when Discrete_Kind
=>
6147 Write_Str
("Bounds: Id = ");
6149 if Present
(Scalar_Range
(Id
)) then
6150 Write_Int
(Int
(Type_Low_Bound
(Id
)));
6151 Write_Str
(" .. Id = ");
6152 Write_Int
(Int
(Type_High_Bound
(Id
)));
6154 Write_Str
("Empty");
6164 Write_Attribute
(" Component Type ",
6165 Component_Type
(Id
));
6168 Write_Str
(" Indices ");
6170 Index
:= First_Index
(Id
);
6172 while Present
(Index
) loop
6173 Write_Attribute
(" ", Etype
(Index
));
6174 Index
:= Next_Index
(Index
);
6182 (" Directly Designated Type ",
6183 Directly_Designated_Type
(Id
));
6186 when Overloadable_Kind
=>
6187 if Present
(Homonym
(Id
)) then
6188 Write_Str
(" Homonym ");
6189 Write_Name
(Chars
(Homonym
(Id
)));
6191 Write_Int
(Int
(Homonym
(Id
)));
6198 if Ekind
(Scope
(Id
)) in Record_Kind
then
6200 " Original_Record_Component ",
6201 Original_Record_Component
(Id
));
6202 Write_Int
(Int
(Original_Record_Component
(Id
)));
6206 when others => null;
6208 end Write_Entity_Info
;
6210 -----------------------
6211 -- Write_Field6_Name --
6212 -----------------------
6214 procedure Write_Field6_Name
(Id
: Entity_Id
) is
6215 pragma Warnings
(Off
, Id
);
6218 Write_Str
("First_Rep_Item");
6219 end Write_Field6_Name
;
6221 -----------------------
6222 -- Write_Field7_Name --
6223 -----------------------
6225 procedure Write_Field7_Name
(Id
: Entity_Id
) is
6226 pragma Warnings
(Off
, Id
);
6229 Write_Str
("Freeze_Node");
6230 end Write_Field7_Name
;
6232 -----------------------
6233 -- Write_Field8_Name --
6234 -----------------------
6236 procedure Write_Field8_Name
(Id
: Entity_Id
) is
6241 Write_Str
("Normalized_First_Bit");
6245 E_Subprogram_Body
=>
6246 Write_Str
("Mechanism");
6249 Write_Str
("Associated_Node_For_Itype");
6252 Write_Str
("Dependent_Instances");
6255 Write_Str
("Hiding_Loop_Variable");
6258 Write_Str
("Field8??");
6260 end Write_Field8_Name
;
6262 -----------------------
6263 -- Write_Field9_Name --
6264 -----------------------
6266 procedure Write_Field9_Name
(Id
: Entity_Id
) is
6270 Write_Str
("Class_Wide_Type");
6272 when E_Constant | E_Variable
=>
6273 Write_Str
("Size_Check_Code");
6276 E_Generic_Function |
6278 E_Generic_Procedure |
6281 Write_Str
("Renaming_Map");
6285 Write_Str
("Normalized_Position");
6288 Write_Str
("Field9??");
6290 end Write_Field9_Name
;
6292 ------------------------
6293 -- Write_Field10_Name --
6294 ------------------------
6296 procedure Write_Field10_Name
(Id
: Entity_Id
) is
6300 Write_Str
("Referenced_Object");
6302 when E_In_Parameter |
6304 Write_Str
("Discriminal_Link");
6310 Write_Str
("Handler_Records");
6314 Write_Str
("Normalized_Position_Max");
6317 Write_Str
("Field10??");
6319 end Write_Field10_Name
;
6321 ------------------------
6322 -- Write_Field11_Name --
6323 ------------------------
6325 procedure Write_Field11_Name
(Id
: Entity_Id
) is
6329 Write_Str
("Entry_Component");
6333 Write_Str
("Component_Bit_Offset");
6336 Write_Str
("Full_View");
6338 when E_Enumeration_Literal
=>
6339 Write_Str
("Enumeration_Pos");
6342 Write_Str
("Block_Node");
6348 Write_Str
("Protected_Body_Subprogram");
6351 Write_Str
("Full_View");
6354 Write_Str
("Field11??");
6356 end Write_Field11_Name
;
6358 ------------------------
6359 -- Write_Field12_Name --
6360 ------------------------
6362 procedure Write_Field12_Name
(Id
: Entity_Id
) is
6366 Write_Str
("Barrier_Function");
6368 when E_Enumeration_Literal
=>
6369 Write_Str
("Enumeration_Rep");
6376 E_In_Out_Parameter |
6380 Write_Str
("Esize");
6384 Write_Str
("Next_Inlined_Subprogram");
6387 Write_Str
("Associated_Formal_Package");
6390 Write_Str
("Field12??");
6392 end Write_Field12_Name
;
6394 ------------------------
6395 -- Write_Field13_Name --
6396 ------------------------
6398 procedure Write_Field13_Name
(Id
: Entity_Id
) is
6402 Write_Str
("RM_Size");
6406 Write_Str
("Component_Clause");
6408 when E_Enumeration_Literal
=>
6409 Write_Str
("Debug_Renaming_Link");
6412 if not Comes_From_Source
(Id
)
6414 Chars
(Id
) = Name_Op_Ne
6416 Write_Str
("Corresponding_Equality");
6418 elsif Comes_From_Source
(Id
) then
6419 Write_Str
("Elaboration_Entity");
6422 Write_Str
("Field13??");
6427 Write_Str
("Extra_Accessibility");
6431 Generic_Unit_Kind
=>
6432 Write_Str
("Elaboration_Entity");
6435 Write_Str
("Field13??");
6437 end Write_Field13_Name
;
6439 -----------------------
6440 -- Write_Field14_Name --
6441 -----------------------
6443 procedure Write_Field14_Name
(Id
: Entity_Id
) is
6448 Write_Str
("Alignment");
6452 Write_Str
("First_Optional_Parameter");
6455 E_Generic_Package
=>
6456 Write_Str
("Shadow_Entities");
6459 Write_Str
("Field14??");
6461 end Write_Field14_Name
;
6463 ------------------------
6464 -- Write_Field15_Name --
6465 ------------------------
6467 procedure Write_Field15_Name
(Id
: Entity_Id
) is
6472 Write_Str
("Storage_Size_Variable");
6474 when Class_Wide_Kind |
6478 Write_Str
("Primitive_Operations");
6481 Write_Str
("DT_Entry_Count");
6483 when Decimal_Fixed_Point_Kind
=>
6484 Write_Str
("Scale_Value");
6486 when E_Discriminant
=>
6487 Write_Str
("Discriminant_Number");
6490 Write_Str
("Extra_Formal");
6494 Write_Str
("DT_Position");
6497 Write_Str
("Entry_Parameters_Type");
6499 when Enumeration_Kind
=>
6500 Write_Str
("Lit_Indexes");
6503 Write_Str
("Related_Instance");
6505 when E_Protected_Type
=>
6506 Write_Str
("Entry_Bodies_Array");
6508 when E_String_Literal_Subtype
=>
6509 Write_Str
("String_Literal_Low_Bound");
6512 Write_Str
("Shared_Var_Read_Proc");
6515 Write_Str
("Field15??");
6517 end Write_Field15_Name
;
6519 ------------------------
6520 -- Write_Field16_Name --
6521 ------------------------
6523 procedure Write_Field16_Name
(Id
: Entity_Id
) is
6527 Write_Str
("Entry_Formal");
6531 Write_Str
("DTC_Entity");
6536 Write_Str
("First_Private_Entity");
6538 when E_Record_Type |
6539 E_Record_Type_With_Private
=>
6540 Write_Str
("Access_Disp_Table");
6542 when E_String_Literal_Subtype
=>
6543 Write_Str
("String_Literal_Length");
6545 when Enumeration_Kind
=>
6546 Write_Str
("Lit_Strings");
6550 Write_Str
("Unset_Reference");
6552 when E_Record_Subtype |
6553 E_Class_Wide_Subtype
=>
6554 Write_Str
("Cloned_Subtype");
6557 Write_Str
("Field16??");
6559 end Write_Field16_Name
;
6561 ------------------------
6562 -- Write_Field17_Name --
6563 ------------------------
6565 procedure Write_Field17_Name
(Id
: Entity_Id
) is
6569 Write_Str
("Digits_Value");
6572 Write_Str
("Prival");
6574 when E_Discriminant
=>
6575 Write_Str
("Discriminal");
6584 E_Generic_Function |
6586 E_Generic_Procedure |
6595 E_Subprogram_Type
=>
6596 Write_Str
("First_Entity");
6599 Write_Str
("First_Index");
6601 when E_Protected_Body
=>
6602 Write_Str
("Object_Ref");
6604 when Enumeration_Kind
=>
6605 Write_Str
("First_Literal");
6608 Write_Str
("Master_Id");
6610 when Modular_Integer_Kind
=>
6611 Write_Str
("Modulus");
6615 E_Generic_In_Out_Parameter |
6617 Write_Str
("Actual_Subtype");
6620 Write_Str
("Field17??");
6622 end Write_Field17_Name
;
6624 -----------------------
6625 -- Write_Field18_Name --
6626 -----------------------
6628 procedure Write_Field18_Name
(Id
: Entity_Id
) is
6631 when E_Enumeration_Literal |
6635 Write_Str
("Alias");
6637 when E_Record_Type
=>
6638 Write_Str
("Corresponding_Concurrent_Type");
6640 when E_Entry_Index_Parameter
=>
6641 Write_Str
("Entry_Index_Constant");
6643 when E_Class_Wide_Subtype |
6644 E_Access_Protected_Subprogram_Type |
6645 E_Access_Subprogram_Type |
6647 Write_Str
("Equivalent_Type");
6649 when Fixed_Point_Kind
=>
6650 Write_Str
("Delta_Value");
6654 Write_Str
("Renamed_Object");
6658 E_Generic_Function |
6659 E_Generic_Procedure |
6660 E_Generic_Package
=>
6661 Write_Str
("Renamed_Entity");
6663 when Incomplete_Or_Private_Kind
=>
6664 Write_Str
("Private_Dependents");
6666 when Concurrent_Kind
=>
6667 Write_Str
("Corresponding_Record_Type");
6672 Write_Str
("Enclosing_Scope");
6675 Write_Str
("Field18??");
6677 end Write_Field18_Name
;
6679 -----------------------
6680 -- Write_Field19_Name --
6681 -----------------------
6683 procedure Write_Field19_Name
(Id
: Entity_Id
) is
6688 Write_Str
("Related_Array_Object");
6695 Write_Str
("Finalization_Chain_Entity");
6697 when E_Discriminant
=>
6698 Write_Str
("Corresponding_Discriminant");
6701 E_Generic_Package
=>
6702 Write_Str
("Body_Entity");
6704 when E_Package_Body |
6706 Write_Str
("Spec_Entity");
6708 when Private_Kind
=>
6709 Write_Str
("Underlying_Full_View");
6711 when E_Record_Type
=>
6712 Write_Str
("Parent_Subtype");
6715 Write_Str
("Field19??");
6717 end Write_Field19_Name
;
6719 -----------------------
6720 -- Write_Field20_Name --
6721 -----------------------
6723 procedure Write_Field20_Name
(Id
: Entity_Id
) is
6727 Write_Str
("Component_Type");
6729 when E_In_Parameter |
6730 E_Generic_In_Parameter
=>
6731 Write_Str
("Default_Value");
6734 Write_Str
("Directly_Designated_Type");
6737 Write_Str
("Discriminant_Checking_Func");
6739 when E_Discriminant
=>
6740 Write_Str
("Discriminant_Default_Value");
6749 E_Generic_Function |
6751 E_Generic_Procedure |
6760 E_Subprogram_Type
=>
6762 Write_Str
("Last_Entity");
6765 Write_Str
("Scalar_Range");
6768 Write_Str
("Register_Exception_Call");
6771 Write_Str
("Field20??");
6773 end Write_Field20_Name
;
6775 -----------------------
6776 -- Write_Field21_Name --
6777 -----------------------
6779 procedure Write_Field21_Name
(Id
: Entity_Id
) is
6785 E_Generic_Function |
6787 E_Generic_Procedure |
6789 Write_Str
("Interface_Name");
6791 when Concurrent_Kind |
6792 Incomplete_Or_Private_Kind |
6796 Write_Str
("Discriminant_Constraint");
6799 Write_Str
("Accept_Address");
6801 when Fixed_Point_Kind
=>
6802 Write_Str
("Small_Value");
6804 when E_In_Parameter
=>
6805 Write_Str
("Default_Expr_Function");
6808 Modular_Integer_Kind
=>
6809 Write_Str
("Original_Array_Type");
6812 Write_Str
("Field21??");
6814 end Write_Field21_Name
;
6816 -----------------------
6817 -- Write_Field22_Name --
6818 -----------------------
6820 procedure Write_Field22_Name
(Id
: Entity_Id
) is
6824 Write_Str
("Associated_Storage_Pool");
6827 Write_Str
("Component_Size");
6831 Write_Str
("Original_Record_Component");
6833 when E_Enumeration_Literal
=>
6834 Write_Str
("Enumeration_Rep_Expr");
6837 Write_Str
("Exception_Code");
6840 Write_Str
("Protected_Formal");
6842 when E_Record_Type
=>
6843 Write_Str
("Corresponding_Remote_Type");
6853 E_Generic_Function |
6854 E_Generic_Procedure |
6859 Write_Str
("Scope_Depth_Value");
6861 when E_Record_Type_With_Private |
6862 E_Record_Subtype_With_Private |
6865 E_Limited_Private_Type |
6866 E_Limited_Private_Subtype
=>
6867 Write_Str
("Private_View");
6870 Write_Str
("Shared_Var_Assign_Proc");
6873 Write_Str
("Field22??");
6875 end Write_Field22_Name
;
6877 ------------------------
6878 -- Write_Field23_Name --
6879 ------------------------
6881 procedure Write_Field23_Name
(Id
: Entity_Id
) is
6885 Write_Str
("Associated_Final_Chain");
6888 Write_Str
("Packed_Array_Type");
6891 Write_Str
("Entry_Cancel_Parameter");
6894 Write_Str
("Protected_Operation");
6896 when E_Discriminant
=>
6897 Write_Str
("CR_Discriminant");
6899 when E_Enumeration_Type
=>
6900 Write_Str
("Enum_Pos_To_Rep");
6904 Write_Str
("Extra_Constrained");
6906 when E_Generic_Function |
6908 E_Generic_Procedure
=>
6909 Write_Str
("Inner_Instances");
6911 when Concurrent_Kind |
6912 Incomplete_Or_Private_Kind |
6916 Write_Str
("Girder_Constraint");
6921 Write_Str
("Generic_Renamings");
6923 -- What about Privals_Chain for protected operations ???
6926 Write_Str
("Privals_Chain");
6929 Write_Str
("Field23??");
6931 end Write_Field23_Name
;
6933 -------------------------
6934 -- Iterator Procedures --
6935 -------------------------
6937 procedure Proc_Next_Component
(N
: in out Node_Id
) is
6939 N
:= Next_Component
(N
);
6940 end Proc_Next_Component
;
6942 procedure Proc_Next_Discriminant
(N
: in out Node_Id
) is
6944 N
:= Next_Discriminant
(N
);
6945 end Proc_Next_Discriminant
;
6947 procedure Proc_Next_Formal
(N
: in out Node_Id
) is
6949 N
:= Next_Formal
(N
);
6950 end Proc_Next_Formal
;
6952 procedure Proc_Next_Formal_With_Extras
(N
: in out Node_Id
) is
6954 N
:= Next_Formal_With_Extras
(N
);
6955 end Proc_Next_Formal_With_Extras
;
6957 procedure Proc_Next_Girder_Discriminant
(N
: in out Node_Id
) is
6959 N
:= Next_Girder_Discriminant
(N
);
6960 end Proc_Next_Girder_Discriminant
;
6962 procedure Proc_Next_Index
(N
: in out Node_Id
) is
6964 N
:= Next_Index
(N
);
6965 end Proc_Next_Index
;
6967 procedure Proc_Next_Inlined_Subprogram
(N
: in out Node_Id
) is
6969 N
:= Next_Inlined_Subprogram
(N
);
6970 end Proc_Next_Inlined_Subprogram
;
6972 procedure Proc_Next_Literal
(N
: in out Node_Id
) is
6974 N
:= Next_Literal
(N
);
6975 end Proc_Next_Literal
;