* rtl.h (struct rtx_def): Update comments.
[official-gcc.git] / gcc / ada / einfo.ads
blobd11a92522182eb78aabe44f5518bb7dee6242481
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- E I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992-2002 Free Software Foundation, Inc. --
11 -- --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
22 -- --
23 -- As a special exception, if other files instantiate generics from this --
24 -- unit, or you link this unit with other files to produce an executable, --
25 -- this unit does not by itself cause the resulting executable to be --
26 -- covered by the GNU General Public License. This exception does not --
27 -- however invalidate any other reasons why the executable file might be --
28 -- covered by the GNU Public License. --
29 -- --
30 -- GNAT was originally developed by the GNAT team at New York University. --
31 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
32 -- --
33 ------------------------------------------------------------------------------
35 with Snames; use Snames;
36 with Types; use Types;
37 with Uintp; use Uintp;
38 with Urealp; use Urealp;
40 package Einfo is
42 -- This package defines the annotations to the abstract syntax tree that
43 -- are needed to support semantic processing of an Ada compilation.
45 -- These annotations are for the most part attributes of declared entities,
46 -- and they correspond to conventional symbol table information. Other
47 -- attributes include sets of meanings for overloaded names, possible
48 -- types for overloaded expressions, flags to indicate deferred constants,
49 -- incomplete types, etc. These attributes are stored in available fields
50 -- in tree nodes (i.e. fields not used by the parser, as defined by the
51 -- Sinfo package specification), and accessed by means of a set of
52 -- subprograms which define an abstract interface.
54 -- There are two kinds of semantic information
56 -- First, the tree nodes with the following Nkind values:
58 -- N_Defining_Identifier
59 -- N_Defining_Character_Literal
60 -- N_Defining_Operator_Symbol
62 -- are called Entities, and constitute the information that would often
63 -- be stored separately in a symbol table. These nodes are all extended
64 -- to provide extra space, and contain fields which depend on the entity
65 -- kind, as defined by the contents of the Ekind field. The use of the
66 -- Ekind field, and the associated fields in the entity, are defined
67 -- in this package, as are the access functions to these fields.
69 -- Second, in some cases semantic information is stored directly in other
70 -- kinds of nodes, e.g. the Etype field, used to indicate the type of an
71 -- expression. The access functions to these fields are defined in the
72 -- Sinfo package, but their full documentation is to be found in
73 -- the Einfo package specification.
75 -- Declaration processing places information in the nodes of their defining
76 -- identifiers. Name resolution places in all other occurrences of an
77 -- identifier a pointer to the corresponding defining occurrence.
79 --------------------------------
80 -- The XEINFO Utility Program --
81 --------------------------------
83 -- XEINFO is a utility program which automatically produces a C header file,
84 -- a-xeinfo.h from the spec and body of package Einfo. It reads the input
85 -- files einfo.ads and einfo.adb and produces the output file a-xeinfo.h.
87 -- In order for this utility program to operate correctly, the form of the
88 -- einfo.ads and einfo.adb files must meet certain requirements and be laid
89 -- out in a specific manner.
91 -- The general form of einfo.ads is as follows:
93 -- type declaration for type Entity_Kind
94 -- subtype declarations declaring subranges of Entity_Kind
95 -- subtype declarations declaring synonyms for some standard types
96 -- function specs for attributes
97 -- procedure specs
98 -- pragma Inline declarations
100 -- This order must be observed. There are no restrictions on the procedures,
101 -- since the C header file only includes functions (Gigi is not allowed to
102 -- modify the generated tree). However, functions are required to have headers
103 -- that fit on a single line.
105 -- XEINFO reads and processes the function specs and the pragma Inlines. For
106 -- functions that are declared as inlined, XEINFO reads the corresponding body
107 -- from xeinfo.adb, and processes it into C code. This results in some strict
108 -- restrictions on which functions can be inlined:
110 -- The function spec must be on a single line
112 -- There can only be a single statement, contained on a single line,
113 -- not counting any pragma Assert statements.
115 -- This single statement must either by a function call with simple,
116 -- single token arguments, or it must be a membership test of the form
117 -- a in b, where a and b are single tokens.
119 -- For functions that are not inlined, there is no restriction on the body,
120 -- and XEINFO generates a direct reference in the C header file which allows
121 -- the C code in Gigi to directly call the corresponding Ada body.
123 ----------------------------------
124 -- Handling of Type'Size Values --
125 ----------------------------------
127 -- The Ada 95 RM contains some rather peculiar (to us!) rules on the value
128 -- of type'Size (see RM 13.3(55)). We have found that attempting to use
129 -- these RM Size values generally, and in particular for determining the
130 -- default size of objects, creates chaos, and major incompatibilies in
131 -- existing code.
133 -- We proceed as follows, for discrete and fixed-point subtypes, we have
134 -- two separate sizes for each subtype:
136 -- The Object_Size, which is used for determining the default size of
137 -- objects and components. This size value can be referred to using the
138 -- Object_Size attribute. The phrase "is used" here means that it is
139 -- the basis of the determination of the size. The backend is free to
140 -- pad this up if necessary for efficiency, e.g. an 8-bit stand-alone
141 -- character might be stored in 32 bits on a machine with no efficient
142 -- byte access instructions such as the Alpha.
144 -- The default rules for the value of Object_Size for fixed-point and
145 -- discrete types are as follows:
147 -- The Object_Size for base subtypes reflect the natural hardware
148 -- size in bits (see Ttypes and Cstand for integer types). For
149 -- enumeration and fixed-point base subtypes have 8. 16. 32 or 64
150 -- bits for this size, depending on the range of values to be stored.
152 -- The Object_Size of a subtype is the same as the Object_Size of
153 -- the subtype from which it is obtained.
155 -- The Object_Size of a derived base type is copied from the parent
156 -- base type, and the Object_Size of a derived first subtype is copied
157 -- from the parent first subtype.
159 -- The Value_Size which is the number of bits required to store a value
160 -- of the type. This size can be referred to using the Value_Size
161 -- attribute. This value is used to determine how tightly to pack
162 -- records or arrays with components of this type, and also affects
163 -- the semantics of unchecked conversion (unchecked conversions where
164 -- the Value_Size values differ generate a warning, and are potentially
165 -- target dependent).
167 -- The default rule for the value of Value_Size are as follows:
169 -- The Value_Size for a base subtype is the minimum number of bits
170 -- required to store all values of the type (including the sign bit
171 -- only if negative values are possible).
173 -- If a subtype statically matches the first subtype, then it has
174 -- by default the same Value_Size as the first subtype. This is a
175 -- consequence of RM 13.1(14) ("if two subtypes statically match,
176 -- then their subtype-specific aspects are the same".)
178 -- All other subtypes have a Value_Size corresponding to the minimum
179 -- number of bits required to store all values of the subtype. For
180 -- dynamic bounds, it is assumed that the value can range down or up
181 -- to the corresponding bound of the ancestor
183 -- The RM defined attribute Size corresponds to the Value_Size attribute.
185 -- The Size attribute may be defined for a first-named subtype. This sets
186 -- the Value_Size of the first-named subtype to the given value, and the
187 -- Object_Size of this first-named subtype to the given value padded up
188 -- to an appropriate boundary. It is a consequence of the default rules
189 -- above that this Object_Size will apply to all further subtypes. On the
190 -- otyher hand, Value_Size is affected only for the first subtype, any
191 -- dynamic subtypes obtained from it directly, and any statically matching
192 -- subtypes. The Value_Size of any other static subtypes is not affected.
194 -- Value_Size and Object_Size may be explicitly set for any subtype using
195 -- an attribute definition clause. Note that the use of these attributes
196 -- can cause the RM 13.1(14) rule to be violated. If two access types
197 -- reference aliased objects whose subtypes have differing Object_Size
198 -- values as a result of explicit attribute definition clauses, then it
199 -- is erroneous to convert from one access subtype to the other.
201 -- At the implementation level, Esize stores the Object_Size and the
202 -- RM_Size field stores the Value_Size (and hence the value of the
203 -- Size attribute, which, as noted above, is equivalent to Value_Size).
205 -- To get a feel for the difference, consider the following examples (note
206 -- that in each case the base is short_short_integer with a size of 8):
208 -- Object_Size Value_Size
210 -- type x1 is range 0..5; 8 3
212 -- type x2 is range 0..5;
213 -- for x2'size use 12; 12 12
215 -- subtype x3 is x2 range 0 .. 3; 12 2
217 -- subtype x4 is x2'base range 0 .. 10; 8 4
219 -- subtype x5 is x2 range 0 .. dynamic; 12 (7)
221 -- subtype x6 is x2'base range 0 .. dynamic; 8 (7)
223 -- Note: the entries marked (7) are not actually specified by the Ada 95 RM,
224 -- but it seems in the spirit of the RM rules to allocate the minimum number
225 -- of bits known to be large enough to hold the given range of values.
227 -- So far, so good, but GNAT has to obey the RM rules, so the question is
228 -- under what conditions must the RM Size be used. The following is a list
229 -- of the occasions on which the RM Size must be used:
231 -- Component size for packed arrays or records
232 -- Value of the attribute Size for a type
233 -- Warning about sizes not matching for unchecked conversion
235 -- The RM_Size field keeps track of the RM Size as needed in these
236 -- three situations.
238 -- For types other than discrete and fixed-point types, the Object_Size
239 -- and Value_Size are the same (and equivalent to the RM attribute Size).
240 -- Only Size may be specified for such types.
242 -----------------------
243 -- Entity Attributes --
244 -----------------------
246 -- This section contains a complete list of the attributes that are defined
247 -- on entities. Some attributes apply to all entities, others only to certain
248 -- kinds of entities. In the latter case the attribute should only be set or
249 -- accessed if the Ekind field indicates an appropriate entity.
251 -- There are two kinds of attributes that apply to entities, stored and
252 -- synthesized. Stored attributes correspond to a field or flag in the entity
253 -- itself. Such attributes are identified in the table below by giving the
254 -- field or flag in the attribute that is used to hold the attribute value.
255 -- Synthesized attributes are not stored directly, but are rather computed as
256 -- needed from other attributes, or from information in the tree. These are
257 -- marked "synthesized" in the table below. The stored attributes have both
258 -- access functions and set procedures to set the corresponding values, while
259 -- synthesized attributes have only access functions.
261 -- Note: in the case of Node, Uint, or Elist fields, there are cases where
262 -- the same physical field is used for different purposes in different
263 -- entities, so these access functions should only be referenced for the
264 -- class of entities in which they are defined as being present. Flags are
265 -- not overlapped in this way, but nevertheless as a matter of style and
266 -- abstraction (which may or may not be checked by assertions in the body),
267 -- this restriction should be observed for flag fields as well.
269 -- Note: certain of the attributes on types apply only to base types, and
270 -- are so noted by the notation [base type only]. These are cases where the
271 -- attribute of any subtype is the same as the attribute of the base type.
272 -- The attribute can be referenced on a subtype (and automatically retrieves
273 -- the value from the base type). However, it is an error to try to set the
274 -- attribute on other than the base type, and if assertions are enabled,
275 -- an attempt to set the attribute on a subtype will raise an assert error.
277 -- Other attributes are noted as applying the implementation base type only.
278 -- These are representation attributes which must always apply to a full
279 -- non-private type, and where the attributes are always on the full type.
280 -- The attribute can be referenced on a subtype (and automatically retries
281 -- the value from the implementation base type). However, it is an error
282 -- to try to set the attribute on other than the implementation base type,
283 -- and if assertions are enabled, an attempt to set the attribute on a
284 -- subtype will raise an assert error.
286 -- Accept_Address (Elist21)
287 -- Present in entries. If an accept has a statement sequence, then an
288 -- address variable is created, which is used to hold the address of the
289 -- parameters, as passed by the runtime. Accept_Address holds an element
290 -- list which represents a stack of entities for these address variables.
291 -- The current entry is the top of the stack, which is the last element
292 -- on the list. A stack is required to handle the case of nested select
293 -- statements referencing the same entry.
295 -- Actual_Subtype (Node17)
296 -- Present in variables, constants, and formal parameters. This is the
297 -- subtype imposed by the value of the object, as opposed to its nominal
298 -- subtype, which is imposed by the declaration. The actual subtype
299 -- differs from the nominal one when the latter is indefinite (as in the
300 -- case of an unconstrained formal parameter, or a variable declared
301 -- with an unconstrained type and an initial value). The nominal subtype
302 -- is the Etype entry for the entity. The Actual_Subtype field is set
303 -- only if the actual subtype differs from the nominal subtype. If the
304 -- actual and nominal subtypes are the same, then the Actual_Subtype
305 -- field is Empty, and Etype indicates both types.
307 -- For objects, the Actual_Subtype is set only if this is a discriminated
308 -- type. For arrays, the bounds of the expression are obtained and the
309 -- Etype of the object is directly the constrained subtype. This is
310 -- rather irregular, and the semantic checks that depend on the nominal
311 -- subtype being unconstrained use flag Is_Constr_Subt_For_U_Nominal(qv).
313 -- Access_Disp_Table (Node16) [implementation base type only]
314 -- Present in record type entities. For a tagged type, points to the
315 -- dispatch table associated with the tagged type. For a non-tagged
316 -- record, contains Empty.
318 -- Address_Clause (synthesized)
319 -- Applies to entries, objects and subprograms. Set if an address clause
320 -- is present which references the object or subprogram and points to
321 -- the N_Attribute_Definition_Clause node. Empty if no Address clause.
322 -- The expression in the address clause is always a constant that is
323 -- defined before the entity to which the address clause applies.
324 -- Note: Gigi references this field in E_Task_Type entities???
326 -- Address_Taken (Flag104)
327 -- Present in all entities. Set if the Address or Unrestricted_Access
328 -- attribute is applied directly to the entity, i.e. the entity is the
329 -- entity of the prefix of the attribute reference. Used by Gigi to
330 -- make sure that the address can be meaningfully taken.
332 -- Alias (Node18)
333 -- Present in overloaded entities (literals, subprograms, entries).
334 -- Points to parent subprogram of a derived subprogram. Also used for
335 -- a subprogram renaming, where it points to the renamed subprogram.
336 -- Always empty for entries.
338 -- Alignment (Uint14)
339 -- Present in all entities for types and objects. This indicates the
340 -- desired alignment for a type, or the actual alignment for an object.
341 -- A value of zero (Uint_0) indicates that the alignment is not yet set.
342 -- The alignment can be set by an explicit alignment clause, or set by
343 -- the front-end in package Layout, or set by the back-end.
345 -- Alignment_Clause (synthesized)
346 -- Appllies to all entities for types and objects. If an alignment
347 -- attribute definition clause is present for the entity, then this
348 -- function returns the N_Attribute_Definition clause that specifies the
349 -- alignment. If no alignment clause applies to the type, then the call
350 -- to this function returns Empty. Note that the call can return a
351 -- non-Empty value even if Has_Alignment_Clause is not set (happens with
352 -- subtype and derived type declarations). Note also that a record
353 -- definition clause with an (obsolescent) mod clause is converted
354 -- into an attribute definition clause for this purpose.
356 -- Ancestor_Subtype (synthesized)
357 -- Applies to all type and subtype entities. If the argument is a
358 -- subtype then it returns the subtype or type from which the subtype
359 -- was obtained, otherwise it returns Empty.
361 -- Associated_Formal_Package (Node12)
362 -- Present in packages that are the actuals of formal_packages. Points
363 -- to the entity in the declaration for the formal package.
365 -- Associated_Node_For_Itype (Node8)
366 -- Present in all type and subtype entities. Set non-Empty only for
367 -- Itypes. Set to point to the associated node for the Itype, i.e.
368 -- the node whose elaboration generated the Itype. This is used for
369 -- copying trees, to determine whether or not to copy an Itype.
371 -- Associated_Storage_Pool (Node22) [root type only]
372 -- Present in simple and general access type entities. References the
373 -- storage pool to be used for the corresponding collection. A value of
374 -- Empty means that the default pool is to be used. This is present
375 -- only in the root type, since derived types must have the same pool
376 -- as the parent type.
378 -- Associated_Final_Chain (Node23)
379 -- Present in simple and general access type entities. References the
380 -- List_Controller object that holds the finalization chain on which
381 -- are attached dynamically allocated objects referenced by the access
382 -- type. Empty when the access type cannot reference a controlled object.
384 -- Barrier_Function (Node12)
385 -- Present in protected entries and entry families. This is the
386 -- subprogram declaration for the body of the function that returns
387 -- the value of the entry barrier.
389 -- Base_Type (synthesized)
390 -- Applies to all type entities. Returns the base type of a type or
391 -- subtype. The base type of a type is the type itself. The base type
392 -- of a subtype is the type that it constrains (which is always a type
393 -- entity, not some other subtype). Note that in the case of a subtype
394 -- of a private type, it is possible for the base type attribute to
395 -- return a private type, even if the subtype to which it applies is
396 -- non-private. See also Implementation_Base_Type. Note: it is allowed
397 -- to apply Base_Type to other than a type, in which case it simply
398 -- returns the entity unchanged.
400 -- Block_Node (Node11)
401 -- Present in block entities. Points to the identifier in the
402 -- Block_Statement itself. Used when retrieving the block construct
403 -- for finalization purposes, The block entity has an implicit label
404 -- declaration in the enclosing declarative part, and has otherwise
405 -- no direct connection in the tree with the block statement. The
406 -- link is to the identifier (which is an occurence of the entity)
407 -- and not to the block_statement itself, because the statement may
408 -- be rewritten, e.g. in the process of removing dead code.
410 -- Body_Entity (Node19)
411 -- Present in package and generic package entities, points to the
412 -- corresponding package body entity if one is present.
414 -- C_Pass_By_Copy (Flag125) [implementation base type only]
415 -- Present in record types. Set if a pragma Convention for the record
416 -- type specifies convention C_Pass_By_Copy. This convention name is
417 -- treated as identical in all respects to convention C, except that
418 -- if it is specified for a record type, then the C_Pass_By_Copy flag
419 -- is set, and if a foreign convention subprogram has a formal of the
420 -- corresponding type, then the parameter passing mechanism will be
421 -- set to By_Copy (unless specifically overridden by an Import or
422 -- Export pragma).
424 -- Chars (Name1)
425 -- Present in all entities. This field contains an entry into the names
426 -- table that has the character string of the identifier, character
427 -- literal or operator symbol. See Namet for further details. Note that
428 -- throughout the processing of the front end, this name is the simple
429 -- unqualified name. However, just before gigi is called, a call is made
430 -- to Qualify_All_Entity_Names. This causes entity names to be qualified
431 -- using the encoding described in exp_dbug.ads, and from that point on
432 -- (including post gigi steps such as cross-reference generation), the
433 -- entities will contain the encoded qualified names.
435 -- Class_Wide_Type (Node9)
436 -- Present in all type entities. For a tagged type or subtype, returns
437 -- the corresponding implicitly declared class-wide type. Set to Empty
438 -- for non-tagged types.
440 -- Cloned_Subtype (Node16)
441 -- Present in E_Record_Subtype and E_Class_Wide_Subtype entities.
442 -- Each such entity can either have a Discriminant_Constraint, in
443 -- which case it represents a distinct type from the base type (and
444 -- will have a list of components and discrimants in the list headed by
445 -- First_Entity) or else no such constraint, in which case it will be a
446 -- copy of the base type.
448 -- o Each element of the list in First_Entity is copied from the base
449 -- type; in that case, this field is Empty.
451 -- o The list in First_Entity is shared with the base type; in that
452 -- case, this field points to that entity.
454 -- A record or classwide subtype may also be a copy of some other
455 -- subtype and share the entities in the First_Entity with that subtype.
456 -- In that case, this field points to that subtype.
458 -- For E_Class_Wide_Subtype, the presence of Equivalent_Type overrides
459 -- this field. Note that this field ONLY appears in subtype entries, not
460 -- in type entries, it is not present, and it is an error to reference
461 -- Cloned_Subtype in an E_Record_Type or E_Class_Wide_Type entity.
463 -- Comes_From_Source
464 -- This flag appears on all nodes, including entities, and indicates
465 -- that the node was created by the scanner or parser from the original
466 -- source. Thus for entities, it indicates that the entity is defined
467 -- in the original source program.
469 -- Component_Alignment (special field) [base type only]
470 -- Present in array and record entities. Contains a value of type
471 -- Component_Alignment_Kind indicating the alignment of components.
472 -- Set to Calign_Default normally, but can be overridden by use of
473 -- the Component_Alignment pragma. Note: this field is currently
474 -- stored in a non-standard way, see body for details.
476 -- Component_Bit_Offset (Uint11)
477 -- Present in record components (E_Component, E_Discriminant) if a
478 -- component clause applies to the component. First bit position of
479 -- given component, computed from the first bit and position values
480 -- given in the component clause. A value of No_Uint means that the
481 -- value is not yet known. The value can be set by the appearence of
482 -- an explicit component clause in a record representation clause,
483 -- or it can be set by the front-end in package Layout, or it can be
484 -- set by the backend. By the time backend processing is completed,
485 -- this field is always set. A negative value is used to represent
486 -- a value which is not known at compile time, and must be computed
487 -- at run-time (this happens if fields of a record have variable
488 -- lengths). See package Layout for details of these values.
490 -- Note: this field is obsolescent, to be eventually replaced entirely
491 -- by Normalized_First_Bit and Normalized_Position, but for the moment,
492 -- gigi is still using (and back annotating) this field, and gigi does
493 -- not know about the new fields. For the front end layout case, the
494 -- Component_Bit_Offset field is only set if it is static, and otherwise
495 -- the new Normalized_First_Bit and Normalized_Position fields are used.
497 -- Component_Clause (Node13)
498 -- Present in record components and discriminants. If a record
499 -- representation clause is present for the corresponding record
500 -- type a that specifies a position for the component, then the
501 -- Component_Clause field of the E_Component entity points to the
502 -- N_Component_Claue node. Set to Empty if no record representation
503 -- clause was present, or if there was no specification for this
504 -- component.
506 -- Component_Size (Uint22) [implementation base type only]
507 -- Present in array types. It contains the component size value for
508 -- the array. A value of zero means that the value is not yet set.
509 -- The value can be set by the use of a component size clause, or
510 -- by the front end in package Layout, or by the backend. A negative
511 -- value is used to represent a value which is not known at compile
512 -- time, and must be computed at run-time (this happens if the type
513 -- of the component has a variable length size). See package Layout
514 -- for details of these values.
516 -- Component_Type (Node20) [implementation base type only]
517 -- Present in array types and string types. References component type.
519 -- Constant_Value (synthesized)
520 -- Applies to constants, named integers, and named reals. Obtains
521 -- the initialization expression for the entity. Will return Empty for
522 -- for a deferred constant whose full view is not available or in some
523 -- other cases of internal entities, which cannot be treated as
524 -- constants from the point of view of constant folding.
526 -- Corresponding_Concurrent_Type (Node18)
527 -- Present in record types that are constructed by the expander to
528 -- represent task and protected types (Is_Concurrent_Record_Type flag
529 -- set True). Points to the entity for the corresponding task type or
530 -- protected type.
532 -- Corresponding_Discriminant (Node19)
533 -- Present in discriminants of a derived type, when the discriminant is
534 -- used to constrain a discriminant of the parent type. Points to the
535 -- corresponding discriminant in the parent type. Otherwise it is Empty.
537 -- Corresponding_Equality (Node13)
538 -- Present in function entities for implicit inequality operators.
539 -- Denotes the explicit or derived equality operation that creates
540 -- the implicit inequality. Note that this field is not present in
541 -- other function entities, only in implicit inequality routines,
542 -- where Comes_From_Source is always False.
544 -- Corresponding_Record_Type (Node18)
545 -- Present in protected and task types and subtypes. References the
546 -- entity for the corresponding record type constructed by the expander
547 -- (see Exp_Ch9). This type is used to represent values of the task type.
549 -- Corresponding_Remote_Type (Node22)
550 -- Present in record types that describe the fat pointer structure for
551 -- Remote_Access_To_Subrogram types. References the original access type.
553 -- CR_Discriminant (Node23)
554 -- Present in discriminants of concurrent types. Denotes the homologous
555 -- discriminant of the corresponding record type. The CR_Discriminant is
556 -- created at the same time as the discriminal, and used to replace
557 -- occurrences of the discriminant within the type declaration.
559 -- Debug_Info_Off (Flag166)
560 -- Present in all entities. Set if a pragma Suppress_Debug_Info applies
561 -- to the entity, or if internal processing in the compiler determines
562 -- that suppression of debug information is desirable.
564 -- Debug_Renaming_Link (Node13)
565 -- Used to link the enumeration literal of a debug renaming declaration
566 -- to the renamed entity. See Exp_Dbug.Debug_Renaming_Declaration for
567 -- details of the use of this field.
569 -- Declaration_Node (synthesized)
570 -- Applies to all entities. Returns the tree node for the declaration
571 -- that declared the entity. Normally this is just the Parent of the
572 -- entity. One exception arises with child units, where the parent of
573 -- the entity is a selected component or a defining program unit name.
574 -- Another exception is that if the entity is an incomplete type that
575 -- has been completed, then we obtain the declaration node denoted by
576 -- the full type, i.e. the full type declaration node.
578 -- Default_Expr_Function (Node21)
579 -- Present in parameters. It holds the entity of the parameterless
580 -- function that is built to evaluate the default expression if it is
581 -- more complex than a simple identifier or literal. For the latter
582 -- simple cases or if there is no default value, this field is Empty.
584 -- Default_Expressions_Processed (Flag108)
585 -- A flag in subprograms (functions, operators, procedures) and in
586 -- entries and entry families used to indicate that default expressions
587 -- have been processed and to avoid multiple calls to process the
588 -- default expressions (see Freeze.Process_Default_Expressions), which
589 -- would not only waste time, but also generate false error messages.
591 -- Default_Value (Node20)
592 -- Present in formal parameters. Points to the node representing the
593 -- expression for the default value for the parameter. Empty if the
594 -- parameter has no default value (which is always the case for OUT
595 -- and IN OUT parameters in the absence of errors).
597 -- Delay_Cleanups (Flag114)
598 -- Present in entities that have finalization lists (subprograms
599 -- blocks, and tasks). Set if there are pending generic body
600 -- instantiations for the corresponding entity. If this flag is
601 -- set, then generation of cleanup actions for the corresponding
602 -- entity must be delayed, since the insertion of the generic body
603 -- may affect cleanup generation (see Inline for further details).
605 -- Delay_Subprogram_Descriptors (Flag50)
606 -- Present in entities for which exception subprogram descriptors
607 -- are generated (subprograms, package declarations and package
608 -- bodies). Present if there are pending generic body instantiations
609 -- for the corresponding entity. If this flag is set, then generation
610 -- of the subprogram descriptor for the corresponding enities must
611 -- be delayed, since the insertion of the generic body may add entries
612 -- to the list of handlers.
614 -- Note: for subprograms, Delay_Subprogram_Descriptors is set if and
615 -- only if Delay_Cleanups is set. But Delay_Cleanups can be set for a
616 -- a block (in which case Delay_Subprogram_Descriptors is set for the
617 -- containing subprogram). In addition Delay_Subprogram_Descriptors is
618 -- set for a library level package declaration or body which contains
619 -- delayed instantiations (in this case the descriptor refers to the
620 -- enclosing elaboration procedure).
622 -- Delta_Value (Ureal18)
623 -- Present in fixed and decimal types. Points to a universal real
624 -- that holds value of delta for the type, as given in the declaration
625 -- or as inherited by a subtype or derived type.
627 -- Dependent_Instances (Elist8)
628 -- Present in packages that are instances. Holds list of instances
629 -- of inner generics. Used to place freeze nodes for those instances
630 -- after that of the current one, i.e. after the corresponding generic
631 -- bodies.
633 -- Depends_On_Private (Flag14)
634 -- Present in all type entities. Set if the type is private or if it
635 -- depends on a private type.
637 -- Designated_Type (synthesized)
638 -- Applies to access types. Returns the designated type. Differs
639 -- from Directly_Designated_Type in that if the access type refers
640 -- to an incomplete type, and the full type is available, then this
641 -- full type is returned instead of the incomplete type.
643 -- Digits_Value (Uint17)
644 -- Present in floating point types and subtypes and decimal types and
645 -- subtypes. Contains the Digits value specified in the declaration.
647 -- Directly_Designated_Type (Node20)
648 -- Present in access types. This field points to the type that is
649 -- directly designated by the access type. In the case of an access
650 -- type to an incomplete type, this field references the incomplete
651 -- type. Note that in the semantic processing, what is useful in
652 -- nearly all cases is the full type designated by the access type.
653 -- The function Designated_Type obtains this full type in the case of
654 -- access to an incomplete type.
656 -- Discard_Names (Flag88)
657 -- Present in types and exception entities. Set if pragma Discard_Names
658 -- applies to the entity. It is also set for declarative regions and
659 -- package specs for which a Discard_Names pragma with zero arguments
660 -- has been encountered. The purpose of setting this flag is to be able
661 -- to set the Discard_Names attribute on enumeration types declared
662 -- after the pragma within the same declarative region.
664 -- Discriminal (Node17)
665 -- Present in discriminants (Discriminant formal: GNAT's first
666 -- coinage). The entity used as a formal parameter that corresponds
667 -- to a discriminant. See section "Use of Discriminants" for details.
669 -- Discriminal_Link (Node10)
670 -- Present in discriminals (which have an Ekind of E_In_Parameter,
671 -- or E_Constant), points back to corresponding discriminant.
673 -- Discriminant_Checking_Func (Node20)
674 -- Present in components. Points to the defining identifier of the
675 -- function built by the expander returns a Boolean indicating whether
676 -- the given record component exists for the current discriminant
677 -- values.
679 -- Discriminant_Constraint (Elist21)
680 -- Present in entities whose Has_Discriminants flag is set (concurrent
681 -- types, subtypes, record types and subtypes, private types and
682 -- subtypes, limited private types and subtypes and incomplete types).
683 -- It is an error to reference the Discriminant_Constraint field if
684 -- Has_Disciminants is False.
686 -- If the Is_Constrained flag is set, Discriminant_Constraint points
687 -- to an element list containing the discriminant constraints in the
688 -- same order in which the discriminants are declared.
690 -- If the Is_Constrained flag is not set but the discriminants of the
691 -- unconstrained type have default initial values then this field
692 -- points to an element list giving these default initial values in
693 -- the same order in which the discriminants are declared. Note that
694 -- in this case the entity cannot be a tagged record type, because
695 -- discriminants in this case cannot have defaults.
697 -- If the entity is a tagged record implicit type, then this field is
698 -- inherited from the first subtype (so that the itype is subtype
699 -- conformant with its first subtype, which is needed when the first
700 -- subtype overrides primitive operations inherited by the implicit
701 -- base type).
703 -- In all other cases Discriminant_Constraint contains the empty
704 -- Elist (ie it is initialized with a call to New_Elmt_List).
706 -- Discriminant_Default_Value (Node20)
707 -- Present in discriminants. Points to the node representing the
708 -- expression for the default value of the discriminant. Set to
709 -- Empty if the discriminant has no default value.
711 -- Discriminant_Number (Uint15)
712 -- Present in discriminants. Gives the ranking of a discriminant in
713 -- the list of discriminants of the type, i.e. a sequential integer
714 -- index starting at 1 and ranging up to Number_Discriminants.
716 -- DTC_Entity (Node16)
717 -- Present in function and procedure entities. Set to Empty unless
718 -- the subprogram is dispatching in which case it references the
719 -- Dispatch Table pointer Component. That is to say the component _tag
720 -- for regular Ada tagged types, for CPP_Class types and their
721 -- descendants this field points to the component entity in the record
722 -- that is the Vtable pointer for the Vtable containing the entry that
723 -- references the subprogram.
725 -- DT_Entry_Count (Uint15)
726 -- Present in E_Component entities. Only used for component marked
727 -- Is_Tag. Store the number of entries in the Vtable (or Dispatch Table)
729 -- DT_Position (Uint15)
730 -- Present in function and procedure entities which are dispatching
731 -- (should not be referenced without first checking that flag
732 -- Is_Dispatching_Operation is True). Contains the offset into
733 -- the Vtable for the entry that references the subprogram.
735 -- Ekind (Ekind)
736 -- Present in all entities. Contains a value of the enumeration type
737 -- Entity_Kind declared in a subsequent section in this spec.
739 -- Elaborate_All_Desirable (Flag146)
740 -- Present in package and subprogram entities, and in generic package
741 -- and subprogram entities. Set if internal analysis of a client that
742 -- with's this unit determines that Elaborate_All is desirable, i.e.
743 -- that there is a possibility that Program_Error may be raised if
744 -- Elaborate_All conditions cannot be met.
746 -- Elaboration_Entity (Node13)
747 -- Present in generic and non-generic package and subprogram
748 -- entities. This is a boolean entity associated with the unit that
749 -- is initiallly set to False, and is set True when the unit is
750 -- elaborated. This is used for two purposes. First, it is used to
751 -- implement required access before elaboration checks (the flag
752 -- must be true to call a subprogram at elaboration time). Second,
753 -- it is used to guard against repeated execution of the generated
754 -- elaboration code.
756 -- Note that we always allocate this flag, and set this field, but
757 -- we do not always actually use it. It is only used if it is needed
758 -- for access-before-elaboration use (see Elaboration_Entity_Required
759 -- flag) or if either the spec or the body has elaboration code. If
760 -- neither of these two conditions holds, then the entity is still
761 -- allocated (since we don't know early enough whether or not there
762 -- is elaboration code), but is simply not used for any purpose.
764 -- Elaboration_Entity_Required (Flag174)
765 -- Present in generics and non-generic package and subprogram
766 -- entities. Set only if Elaboration_Entity is non-Empty to indicate
767 -- that the boolean is required to be set even if there is no other
768 -- elaboration code. This occurs when the Elaboration_Entity flag
769 -- is used for required access-before-elaboration checking. If the
770 -- flag is only for preventing multiple execution of the elaboration
771 -- code, then if there is no other elaboration code, obviously there
772 -- is no need to set the flag.
774 -- Enclosing_Dynamic_Scope (synthesized)
775 -- Appliesa to all entities. Returns the closest dynamic scope in which
776 -- the entity is declared or Standard_Standard for library-level entities
778 -- Enclosing_Scope (Node18)
779 -- Present in labels. Denotes the innermost enclosing construct that
780 -- contains the label. Identical to the scope of the label, except for
781 -- labels declared in the body of an accept statement, in which case the
782 -- entry_name is the Enclosing_Scope. Used to validate goto's within
783 -- accept statements.
785 -- Entry_Accepted (Flag152)
786 -- Present in E_Entry and E_Entry_Family entities. Set if there is
787 -- at least one accept for this entry in the task body. Used to
788 -- generate warnings for missing accepts.
790 -- Entry_Bodies_Array (Node15)
791 -- Present in protected types for which Has_Entries is true.
792 -- This is the defining identifier for the array of entry body
793 -- action procedures and barrier functions used by the runtime to
794 -- execute the user code associated with each entry.
796 -- Entry_Cancel_Parameter (Node23)
797 -- Present in blocks. This only applies to a block statement for
798 -- which the Is_Asynchronous_Call_Block flag is set. It
799 -- contains the defining identifier of an object that must be
800 -- passed to the Cancel_Task_Entry_Call or Cancel_Protected_Entry_Call
801 -- call in the cleanup handler added to the block by
802 -- Exp_Ch7.Expand_Cleanup_Actions. This parameter is a Boolean
803 -- object for task entry calls and a Communications_Block object
804 -- in the case of protected entry calls. In both cases the objects
805 -- are declared in outer scopes to this block.
807 -- Entry_Component (Node11)
808 -- Present in formal parameters (in, in out and out parameters). Used
809 -- only for formals of entries. References the corresponding component
810 -- of the entry parameter record for the entry.
812 -- Entry_Formal (Node16)
813 -- Present in components of the record built to correspond to entry
814 -- parameters. This field points from the component to the formal. It
815 -- is the back pointer corresponding to Entry_Component.
817 -- Entry_Index_Constant (Node18)
818 -- Present in an entry index parameter. This is an identifier that
819 -- eventually becomes the name of a constant representing the index
820 -- of the entry family member whose entry body is being executed. Used
821 -- to expand references to the entry index specification identifier.
823 -- Entry_Index_Type (synthesized)
824 -- Applies to an entry family. Denotes Etype of the subtype indication
825 -- in the entry declaration. Used to resolve the index expression in an
826 -- accept statement for a member of the family, and in the prefix of
827 -- 'COUNT when it applies to a family member.
829 -- Entry_Parameters_Type (Node15)
830 -- Present in entries. Points to the access-to-record type that is
831 -- constructed by the expander to hold a reference to the parameter
832 -- values. This reference is manipulated (as an address) by the
833 -- tasking runtime. The designated record represents a packaging
834 -- up of the entry parameters (see Exp_Ch9.Expand_N_Entry_Declaration
835 -- for further details). Entry_Parameters_Type is Empty if the entry
836 -- has no parameters.
838 -- Enumeration_Pos (Uint11)
839 -- Present in enumeration literals. Contains the position number
840 -- corresponding to the value of the enumeration literal.
842 -- Enumeration_Rep (Uint12)
843 -- Present in enumeration literals. Contains the representation that
844 -- corresponds to the value of the enumeration literal. Note that
845 -- this is normally the same as Enumeration_Pos except in the presence
846 -- of representation clauses, where Pos will still represent the
847 -- position of the literal within the type and Rep will have be the
848 -- value given in the representation clause.
850 -- Enumeration_Rep_Expr (Node22)
851 -- Present in enumeration literals. Points to the expression in an
852 -- associated enumeration rep clause that provides the representation
853 -- value for this literal. Empty if no enumeration rep clause for this
854 -- literal (or if rep clause does not have an entry for this literal,
855 -- an error situation). This is also used to catch duplicate entries
856 -- for the same literal.
858 -- Enum_Pos_To_Rep (Node23)
859 -- Present in enumeration types (but not enumeration subtypes). Set to
860 -- Empty unless the enumeration type has a non-standard representation
861 -- (i.e. at least one literal has a representation value different from
862 -- its pos value). In this case, Enum_Pos_To_Rep is the entity for an
863 -- array constructed when the type is frozen that maps Pos values to
864 -- corresponding Rep values. The index type of this array is Natural,
865 -- and the component type is a suitable integer type that holds the
866 -- full range of representation values.
868 -- Equivalent_Type (Node18)
869 -- Present in class wide types and subtypes, access to protected
870 -- subprogram types, and in exception_types. For a classwide type, it
871 -- is always Empty. For a class wide subtype, it points to an entity
872 -- created by the expander which gives Gigi an easily understandable
873 -- equivalent of the class subtype with a known size (given by an
874 -- initial value). See Exp_Util.Expand_Class_Wide_Subtype for further
875 -- details. For E_exception_type, this points to the record containing
876 -- the data necessary to represent exceptions (for further details, see
877 -- System.Standard_Library. For access_to_protected subprograms, it
878 -- denotes a record that holds pointers to the operation and to the
879 -- protected object. For remote Access_To_Subprogram types, it denotes
880 -- the record that is the fat pointer representation of an RAST.
882 -- Esize (Uint12)
883 -- Present in all types and subtypes, an also for components, constants,
884 -- and variables. Contains the Object_Size of the type or of the object.
885 -- A value of zero indicates that the value is not yet known.
887 -- For the case of components where a component clause is present, the
888 -- value is the value from the component clause, which must be non-
889 -- negative (but may be zero, which is acceptable for the case of
890 -- a type with only one possible value). It is also possible for Esize
891 -- of a component to be set without a component clause present, which
892 -- means that the component size is specified, but not the position.
893 -- See also RM_Size and the section on "Handling of Type'Size Values".
894 -- During gigi processing, the value is back annotated for all zero
895 -- values, so that after the call to gigi, the value is properly set.
897 -- Etype (Node5)
898 -- Present in all entities. Represents the type of the entity, which
899 -- is itself another entity. For a type entity, points to the parent
900 -- type for a derived type, or if the type is not derived, points to
901 -- itself. For a subtype entity, Etype points to the base type.
903 -- Exception_Code (Uint22)
904 -- Present in exception entitites. Set to zero unless either an
905 -- Import_Exception or Export_Exception pragma applies to the
906 -- pragma and specifies a Code value. See description of these
907 -- pragmas for details. Note that this field is relevant only if
908 -- Is_VMS_Exception is set.
910 -- Extra_Formal (Node15)
911 -- Present in formal parameters in the non-generic case. Certain
912 -- parameters require extra implicit information to be passed
913 -- (e.g. the flag indicating if an unconstrained variant record
914 -- argument is constrained, and the accessibility level for
915 -- access parameters. See description of Extra_Constrained,
916 -- Extra_Accessibility fields for further details. Extra formal
917 -- parameters are constructed to represent these values, and
918 -- chained to the end of the list of formals using the
919 -- Extra_Formal field (i.e. the Extra_Formal field of the last
920 -- "real" formal points to the first extra formal, and the
921 -- Extra_Formal field of each extra formal points to the next
922 -- one, with Empty indicating the end of the list of extra
923 -- formals.
925 -- Extra_Accessibility (Node13)
926 -- Present in formal parameters in the non-generic case if
927 -- expansion is active. Normally Empty, but if a parameter is
928 -- one for which a dynamic accessibility check is required, then
929 -- an extra formal of type Natural is created (see description
930 -- of field Extra_Formal), and the Extra_Accessibility field of
931 -- the formal parameter points to the entity for this extra
932 -- formal. Also present in variables when compiling receiving
933 -- stubs. In this case, a non Empty value means that this
934 -- variable's accessibility depth has been transmitted by the
935 -- caller and must be retrieved through the entity designed by
936 -- this field instead of being computed.
938 -- Extra_Constrained (Node23)
939 -- Present in formal parameters in the non-generic case if
940 -- expansion is active. Normally Empty, but if a parameter is
941 -- one for which a dynamic indication of its constrained status
942 -- is required, then an extra formal of type Boolean is created
943 -- (see description of field Extra_Formal), and the
944 -- Extra_Constrained field of the formal parameter points to the
945 -- entity for this extra formal. Also present in variables when
946 -- compiling receiving stubs. In this case, a non empty value
947 -- means that this variable's constrained status has been
948 -- transmitted by the caller and must be retrieved through the
949 -- entity designed by this field instead of being computed.
951 -- Finalization_Chain_Entity (Node19)
952 -- Present in scopes which can have finalizable entities (blocks,
953 -- functions, procedures, tasks, entries). When this field is empty it
954 -- means that there are no finalization actions to perform on exit of the
955 -- scope. When this field contains 'Error', it means that no
956 -- finalization actions should happen at this level and the
957 -- finalization chain of a parent scope shall be used (??? this is
958 -- an improper use of 'Error' and should be changed). otherwise it
959 -- contains an entity of type Finalizable_Ptr that is the head of the
960 -- list of objects to finalize on exit. See "Finalization Management"
961 -- section in exp_ch7.adb for more details.
963 -- Finalize_Storage_Only (Flag158) [base type only]
964 -- Present in all types. Set on direct controlled types to which a
965 -- valid Finalize_Storage_Only pragma applies. This flag is also set on
966 -- composite types when they have at least one controlled component and
967 -- all their controlled components are Finalize_Storage_Only. It is also
968 -- inherited by type derivation except for direct controlled types where
969 -- the Finalize_Storage_Only pragma is required at each level of
970 -- derivation.
972 -- First_Component (synthesized)
973 -- Applies to record types. Returns the first component by following
974 -- the chain of declared entities for the record until a component
975 -- is found (one with an Ekind of E_Component). The discriminants are
976 -- skipped. If the record is null, then Empty is returned.
978 -- First_Discriminant (synthesized)
979 -- Applies to types with discriminants. The discriminants are the
980 -- first entities declared in the type, so normally this is equivalent
981 -- to First_Entity. The exception arises for tagged types, where the
982 -- tag itself is prepended to the front of the entity chain, so the
983 -- First_Discriminant function steps past the tag if it is present.
985 -- First_Girder_Discriminant (synthesized)
986 -- Applies to types with discriminants. For tagged types, and untagged
987 -- types which are root types or derived types but which do not rename
988 -- discriminants in their root type, this is the same as
989 -- First_Discriminant.
991 -- For derived non-tagged types that rename discriminants in the root
992 -- type this is the first of the discriminants that occurr in the
993 -- root type. To be precise, in this case girder discriminants are
994 -- entities attached to the entity chain of the derived type which
995 -- are a copy of the discriminants of the root type. Furthermore their
996 -- Is_Completely_Hidden flag is set.
998 -- For derived untagged types, girder discriminants are the real
999 -- discriminants from Gigi's standpoint, ie those that will be stored in
1000 -- actual objects of the type.
1002 -- First_Entity (Node17)
1003 -- Present in all entities which act as scopes to which a list of
1004 -- associated entities is attached (blocks, class subtypes and types,
1005 -- entries, functions, loops, packages, procedures, protected objects,
1006 -- record types and subtypes, private types, task types and subtypes).
1007 -- Points to a list of associated entities using the Next_Entity field
1008 -- as a chain pointer with Empty marking the end of the list.
1010 -- First_Formal (synthesized)
1011 -- Applies to subprograms and subprogram types, and also in entries
1012 -- and entry families. Returns first formal of the subprogram or entry.
1013 -- The formals are the first entities declared in a subprogram or in
1014 -- a subprogram type (the designated type of an Access_To_Subprogram
1015 -- definition) or in an entry.
1017 -- First_Index (Node17)
1018 -- Present in array types and subtypes and in string types and subtypes.
1019 -- By introducing implicit subtypes for the index constraints, we have
1020 -- the same structure for constrained and unconstrained arrays, subtype
1021 -- marks and discrete ranges are both represented by a subtype. This
1022 -- function returns the tree node corresponding to an occurrence of the
1023 -- first index (NOT the entity for the type). Subsequent indexes are
1024 -- obtained using Next_Index. Note that this field is present for the
1025 -- case of string literal subtypes, but is always Empty.
1027 -- First_Literal (Node17)
1028 -- Present in all enumeration types, including character and boolean
1029 -- types. This field points to the first enumeration literal entity
1030 -- for the type (i.e. it is set to First (Literals (N)) where N is
1031 -- the enumeration type definition node. A special case occurs with
1032 -- standard character and wide character types, where this field is
1033 -- Empty, since there are no enumeration literal lists in these cases.
1035 -- First_Optional_Parameter (Node14)
1036 -- Present in (non-generic) function and procedure entities. Set to a
1037 -- non-null value only if a pragma Import_Function, Import_Procedure
1038 -- or Import_Valued_Procedure specifies a First_Optional_Parameter
1039 -- argument, in which case this field points to the parameter entity
1040 -- corresponding to the specified parameter.
1042 -- First_Private_Entity (Node16)
1043 -- Present in all entities containing private parts (packages,
1044 -- protected types and subtypes, task types and subtypes). The
1045 -- entities on the entity chain are in order of declaration, so the
1046 -- entries for private entities are at the end of the chain. This
1047 -- field points to the first entity for the private part. It is
1048 -- Empty if there are no entities declared in the private part or
1049 -- if there is no private part.
1051 -- First_Rep_Item (Node6)
1052 -- Present in all entities. If non-empty, points to a linked list of
1053 -- representation pragmas nodes and representation clause nodes that
1054 -- apply to the entity, linked using Next_Rep_Item, with Empty marking
1055 -- the end of the list. In the case of derived types and subtypes, the
1056 -- new entity inherits the chain at the point of declaration. This
1057 -- means that it is possible to have multiple instances of the same
1058 -- kind of rep item on the chain, in which case it is the first one
1059 -- that applies to the entity.
1061 -- For most representation items, the representation information is
1062 -- reflected in other fields and flags in the entity. For example if
1063 -- a record representation clause is present, the component entities
1064 -- reflect the specified information. However, there are some items
1065 -- that are only reflected in the chain. These include:
1067 -- Alignment attribute definition clause
1068 -- Machine_Attribute pragma
1069 -- Link_Alias pragma
1070 -- Link-Section pragma
1071 -- Weak_External pragma
1073 -- If any of these items are present, then the flag Has_Gigi_Rep_Item
1074 -- is set, indicating that Gigi should search the chain.
1076 -- Other representation items are included in the chain so that error
1077 -- messages can easily locate the relevant nodes for posting errors.
1078 -- Note in particular that size clauses are present only for this
1079 -- purpose, and should only be accessed if Has_Size_Clause is set.
1081 -- First_Subtype (synthesized)
1082 -- Applies to all types and subtypes. For types, yields the first
1083 -- subtype of the type. For subtypes, yields the first subtype of
1084 -- the base type of the subtype.
1086 -- Freeze_Node (Node7)
1087 -- Present in all entities. If there is an associated freeze node for
1088 -- the entity, this field references this freeze node. If no freeze
1089 -- node is associated with the entity, then this field is Empty. See
1090 -- package Freeze for further details.
1092 -- From_With_Type (Flag159)
1093 -- Present in package and type entities. Indicates that the entity
1094 -- appears in a With_Type clause in the context of some other unit,
1095 -- either as the prefix (which must be a package), or as a type name.
1096 -- The package can only be used to retrieve such a type, and the type
1097 -- can be used only in component declarations and access definitions.
1098 -- The With_Type clause is used to construct mutually recursive
1099 -- types, i.e. record types (Java classes) that hold pointers to each
1100 -- other. If such a type is an access type, it has no explicit freeze
1101 -- node, so that the back-end does not attempt to elaborate it.
1103 -- Full_View (Node11)
1104 -- Present in all type and subtype entities and in deferred constants.
1105 -- References the entity for the corresponding full type declaration.
1106 -- For all types other than private and incomplete types, this field
1107 -- always contains Empty. See also Underlying_Type.
1109 -- Function_Returns_With_DSP (Flag169)
1110 -- Present in all subprogram entities, and type entities for access
1111 -- to subprogram values. Set True if the function (or referenced
1112 -- function in the case of an access value) returns with using the
1113 -- DSP (depressed stack pointer) approach. This can only be set
1114 -- True if Targparm.Functions_Return_By_DSP_On_Target is True and
1115 -- the function returns a value of a type whose size is not known
1116 -- at compile time.
1118 -- Generic_Renamings (Elist23)
1119 -- Present in package and subprogram instances. Holds mapping that
1120 -- associates generic parameters with the corresponding instances, in
1121 -- those cases where the instance is an entity.
1123 -- Girder_Constraint (Elist23)
1124 -- Present in entities that can have discriminants (concurrent types
1125 -- subtypes, record types and subtypes, private types and subtypes,
1126 -- limited private types and subtypes and incomplete types). Points
1127 -- to an element list containing the expressions for each of the
1128 -- girder discriminants for the record (sub)type.
1130 -- Handler_Records (List10)
1131 -- Present in subprogram and package entities. Points to a list of
1132 -- identifiers referencing the handler record entities for the
1133 -- corresponding unit.
1135 -- Has_Aliased_Components (Flag135) [implementation base type only]
1136 -- Present in array type entities. Indicates that the component type
1137 -- of the array is aliased.
1139 -- Has_Alignment_Clause (Flag46)
1140 -- Present in all type entities and objects. Indicates if an alignment
1141 -- clause has been given for the entity. If set, then Alignment_Clause
1142 -- returns the N_Attribute_Definition node for the alignment attribute
1143 -- definition clause. Note that it is possible for this flag to be False
1144 -- even when Alignment_Clause returns non_Empty (this happens in the case
1145 -- of derived type declarations).
1147 -- Has_All_Calls_Remote (Flag79)
1148 -- Present in all library unit entities. Set true if the library unit
1149 -- has an All_Calls_Remote pragma. Note that such entities must also
1150 -- be RCI entities, so the flag Is_Remote_Call_Interface will always
1151 -- be set if this flag is set.
1153 -- Has_Atomic_Components (Flag86) [implementation base type only]
1154 -- Present in all types and objects. Set only for an array type or
1155 -- an array object if a valid pragma Atomic_Components applies to the
1156 -- type or object. Note that in the case of an object, this flag is
1157 -- only set on the object if there was an explicit pragma for the
1158 -- object. In other words, the proper test for whether an object has
1159 -- atomic components is to see if either the object or its base type
1160 -- has this flag set. Note that in the case of a type, the pragma will
1161 -- be chained to the rep item chain of the first subtype in the usual
1162 -- manner.
1164 -- Has_Attach_Handler (synthesized)
1165 -- Applies to record types that are constructed by the expander to
1166 -- represent protected types. Returns True if there is at least one
1167 -- Attach_Handler pragma in the corresponding specification.
1169 -- Has_Biased_Representation (Flag139)
1170 -- Present in discrete types (where it applies to the type'size value),
1171 -- and to objects (both stand-alone and components), where it applies to
1172 -- the size of the object from a size or record component clause. In
1173 -- all cases it indicates that the size in question is smaller than
1174 -- would normally be required, but that the size requirement can be
1175 -- satisfied by using a biased representation, in which stored values
1176 -- have the low bound (Expr_Value (Type_Low_Bound (T)) subtracted to
1177 -- reduce the required size. For example, a type with a range of 1..2
1178 -- takes one bit, using 0 to represent 1 and 1 to represent 2.
1180 -- Note that in the object and component cases, the flag is only set
1181 -- if the type is unbiased, but the object specifies a smaller size
1182 -- than the size of the type, forcing biased representation for the
1183 -- object, but the subtype is still an unbiased type.
1185 -- Has_Completion (Flag26)
1186 -- Present in all entities that require a completion (functions,
1187 -- procedures, private types, limited private types, incomplete types,
1188 -- and packages that require a body). Set if the completion has been
1189 -- encountered and analyzed.
1191 -- Has_Completion_In_Body (Flag71)
1192 -- Present in "Taft amendment types" that is to say incomplete types
1193 -- whose full declaration appears in the package body.
1195 -- Has_Complex_Representation (Flag140) [implementation base type only]
1196 -- Present in all type entities. Set only for a record base type to
1197 -- which a valid pragma Complex_Representation applies.
1199 -- Has_Component_Size_Clause (Flag68) [implementation base type only]
1200 -- Present in all type entities. Set if a component size clause is
1201 -- present for the given type. Note that this flag can be False even
1202 -- if Component_Size is non-zero (happens in the case of derived types).
1204 -- Has_Controlling_Result (Flag98)
1205 -- Present in E_Function entities. True if The function is a primitive
1206 -- function of a tagged type which can dispatch on result
1208 -- Has_Controlled_Component (Flag43) [base type only]
1209 -- Present in composite type entities. Indicates that the type has a
1210 -- component that either is a controlled type, or itself contains a
1211 -- controlled component (i.e. either Has_Controlled_Component or
1212 -- Is_Controlled is set for at least one component).
1214 -- Has_Convention_Pragma (Flag119)
1215 -- Present in an entity for which a Convention, Import, or Export
1216 -- pragma has been given. Used to prevent more than one such pragma
1217 -- appearing for a given entity (RM B.1(45)).
1219 -- Has_Delayed_Freeze (Flag18)
1220 -- Present in all entities. Set to indicate that an explicit freeze
1221 -- node must be generated for the entity at its freezing point. See
1222 -- separate section ("Delayed Freezing and Elaboration") for details.
1224 -- Has_Discriminants (Flag5)
1225 -- Present in all types and subtypes. For types that are allowed to have
1226 -- discriminants (record types and subtypes, task types and subtypes,
1227 -- protected types and subtypes, private types, limited private types,
1228 -- and incomplete types), indicates if the corresponding type or subtype
1229 -- has a known discriminant part. Always false for all other types.
1231 -- Has_Entries (synthesized)
1232 -- Applies to concurrent types. True if any entries are declared
1233 -- within the task or protected definition for the type.
1235 -- Has_Enumeration_Rep_Clause (Flag66)
1236 -- Present in enumeration types. Set if an enumeration representation
1237 -- clause has been given for this enumeration type. Used to prevent more
1238 -- than one enumeration representation clause for a given type. Note
1239 -- that this does not imply a representation with holes, since the rep
1240 -- clause may merely confirm the default 0..N representation.
1242 -- Has_External_Tag_Rep_Clause (Flag110)
1243 -- Present in tagged types. Set if an external_tag rep. clause has been
1244 -- given for this type. Use to avoid the generation of the default
1245 -- external_tag.
1247 -- Has_Exit (Flag47)
1248 -- Present in loop entities. Set if the loop contains an exit statement.
1250 -- Has_Foreign_Convention (synthesized)
1251 -- Applies to all entities. Determines if the Convention for the
1252 -- entity is a foreign convention (i.e. is other than Convention_Ada,
1253 -- Convention_Intrinsic, Convention_Entry or Convention_Protected).
1255 -- Has_Forward_Instantiation (Flag175)
1256 -- Present in package entities. Set true for packages that contain
1257 -- instantiations of local generic entities, before the corresponding
1258 -- generic body has been seen. If a package has a forward instantiation,
1259 -- we cannot inline subprograms appearing in the same package because
1260 -- the placement requirements of the instance will conflict with the
1261 -- linear elaboration of front-end inlining.
1263 -- Has_Fully_Qualified_Name (Flag173)
1264 -- Present in all entities. Set True if the name in the Chars field
1265 -- has been replaced by the fully qualified name, as used for debug
1266 -- output. See Exp_Dbug for a full description of the use of this
1267 -- flag and also the related flag Has_Qualified_Name.
1269 -- Has_Gigi_Rep_Item (Flag82)
1270 -- This flag is set if the rep item chain (referenced by First_Rep_Item
1271 -- and linked through the Next_Rep_Item chain contains a representation
1272 -- item that needs to be specially processed by Gigi, i.e. one of the
1273 -- following items:
1275 -- Machine_Attribute pragma
1276 -- Linker_Alias pragma
1277 -- Linker_Section pragma
1278 -- Weak_External pragma
1280 -- If this flag is set, then Gigi should scan the rep item chain to
1281 -- process any of these items that appear. At least one such item will
1282 -- be present.
1284 -- Has_Homonym (Flag56)
1285 -- Present in all entities. Set if an entity has a homonym in the same
1286 -- scope. Used by Gigi to generate unique names for such entities.
1288 -- Has_Interrupt_Handler (synthesized)
1289 -- Applies to all protected types entities. Set if the protected type
1290 -- definition contains at least one procedure to which a pragma
1291 -- Interrupt_Handler applies.
1293 -- Has_Machine_Radix_Clause (Flag83)
1294 -- Present in decimal types and subtypes, set if a Machine_Radix
1295 -- representation clause is present. This flag is used to detect
1296 -- the error of multiple machine radix clauses for a single type.
1298 -- Has_Master_Entity (Flag21)
1299 -- Present in entities that can appear in the scope stack (see spec
1300 -- of Sem). It is set if a task master entity (_master) has been
1301 -- declared and initialized in the corresponding scope.
1303 -- Has_Missing_Return (Flag142)
1304 -- Present in functions and generic functions. Set if there is one or
1305 -- more missing return statements in the function. This is used to
1306 -- control wrapping of the body in Exp_Ch6 to ensure that the program
1307 -- error exeption is correctly raised in this case at runtime.
1309 -- Has_Nested_Block_With_Handler (Flag101)
1310 -- Present in scope entities. Set if there is a nested block within the
1311 -- scope that has an exception handler and the two scopes are in the
1312 -- same procedure. This is used by the backend for controlling certain
1313 -- optimizations to ensure that they are consistent with exceptions.
1314 -- See documentation in Gigi for further details.
1316 -- Has_Non_Standard_Rep (Flag75) [implementation base type only]
1317 -- Present in all type entities. Set when some representation clause
1318 -- or pragma causes the representation of the item to be significantly
1319 -- modified. In this category are changes of small or radix for a
1320 -- fixed-point type, change of component size for an array, and record
1321 -- or enumeration representation clauses, as well as packed pragmas.
1322 -- All other representation clauses (e.g. Size and Alignment clauses)
1323 -- are not considered to be significant since they do not affect
1324 -- stored bit patterns.
1326 -- Has_Object_Size_Clause (Flag172)
1327 -- Present in entities for types and subtypes. Set if an Object_Size
1328 -- clause has been processed for the type Used to prevent multiple
1329 -- Object_Size clauses for a given entity.
1331 -- Has_Per_Object_Constraint (Flag154)
1332 -- Present in E_Component entities, true if the subtype of the
1333 -- component has a per object constraint, i.e. an actual discriminant
1334 -- value of the form T'Access, where T is the enclosing type.
1336 -- Has_Pragma_Controlled (Flag27) [implementation base type only]
1337 -- Present in access type entities. It is set if a pragma Controlled
1338 -- applies to the access type.
1340 -- Has_Pragma_Elaborate_Body (Flag150)
1341 -- Present in all entities. Set in compilation unit entities if a
1342 -- pragma Elaborate_Body applies to the compilation unit.
1344 -- Has_Pragma_Inline (Flag157)
1345 -- Present in all entities. Set for functions and procedures for which
1346 -- a pragma Inline or Inline_Always applies to the subprogram. Note
1347 -- subprogram. Note that this flag can be set even if Is_Inlined is
1348 -- not set. This happens for pragma Inline (if Inline_Active is False)
1349 -- In other words, the flag Has_Pragma_Inline represents the formal
1350 -- semantic status, and is used for checking semantic correctness.
1351 -- The flag Is_Inlined indicates whether inlining is actually active
1352 -- for the entity.
1354 -- Has_Pragma_Pack (Flag121) [implementation base type only]
1355 -- Present in all entities. It indicates that a valid pragma Pack was
1356 -- was given for the type. Note that this flag is not inherited by a
1357 -- derived type. See also the Is_Packed flag.
1359 -- Has_Pragma_Pure_Function (Flag179)
1360 -- Present in subprogram entities. It indicates that a valid pragma
1361 -- Pure_Function was given for the entity. In some cases, we need to
1362 -- know that Is_Pure was explicitly set using this pragma.
1364 -- Has_Pragma_Unreferenced (Flag180)
1365 -- Present in all entities. Set if a valid pragma Unreferenced applies
1366 -- to the pragma, indicating that no warning should be given if the
1367 -- entity has no references, but a warning should be given if it is
1368 -- in fact referenced.
1370 -- Has_Primitive_Operations (Flag120) [base type only]
1371 -- Present in all type entities. Set if at least one primitive operation
1372 -- is defined for the type.
1374 -- Has_Private_Ancestor (synthesized)
1375 -- Applies to all type and subtype entities. Returns True if at least
1376 -- one ancestor is private, and otherwise False if there are no private
1377 -- ancestors.
1379 -- Has_Private_Declaration (Flag155)
1380 -- Present in all entities. Returns True if it is the defining entity
1381 -- of a private type declaration or its corresponding full declaration.
1382 -- This flag is thus preserved when the full and the partial views are
1383 -- exchanged, to indicate if a full type declaration is a completion.
1384 -- Used for semantic checks in E.4 (18), and elsewhere.
1386 -- Has_Qualified_Name (Flag161)
1387 -- Present in all entities. Set True if the name in the Chars field
1388 -- has been replaced by its qualified name, as used for debug output.
1389 -- See Exp_Dbug for a full description of qualification requirements.
1390 -- For some entities, the name is the fully qualified name, but there
1391 -- are exceptions. In particular, for local variables in procedures,
1392 -- we do not include the procedure itself or higher scopes. See also
1393 -- the flag Has_Fully_Qualified_Name, which is set if the name does
1394 -- indeed include the fully qualified name.
1396 -- Has_Record_Rep_Clause (Flag65) [implementation base type only]
1397 -- Present in record types. Set if a record representation clause has
1398 -- been given for this record type. Used to prevent more than one such
1399 -- clause for a given record type. Note that this is initially cleared
1400 -- for a derived type, even though the representation is inherited. See
1401 -- also the flag Has_Specified_Layout.
1403 -- Has_Recursive_Call (Flag143)
1404 -- Present in procedures. Set if a direct parameterless recursive call
1405 -- is detected while analyzing the body. Used to activate some error
1406 -- checks for infinite recursion.
1408 -- Has_Size_Clause (Flag29)
1409 -- Present in entities for types and objects. Set if a size clause is
1410 -- present for the entity. Used to prevent multiple Size clauses for a
1411 -- given entity. Note that it is always initially cleared for a derived
1412 -- type, even though the Size for such a type is inherited from a Size
1413 -- clause given for the parent type.
1415 -- Has_Small_Clause (Flag67)
1416 -- Present in ordinary fixed point types (but not subtypes). Indicates
1417 -- that a small clause has been given for the entity. Used to prevent
1418 -- multiple Small clauses for a given entity. Note that it is always
1419 -- initially cleared for a derived type, even though the Small for such
1420 -- a type is inherited from a Small clause given for the parent type.
1422 -- Has_Specified_Layout (Flag100) [implementation base type only]
1423 -- Present in all type entities. Set for a record type or subtype if
1424 -- the record layout has been specified by a record representation
1425 -- clause. Note that this differs from the flag Has_Record_Rep_Clause
1426 -- in that it is inherited by a derived type. Has_Record_Rep_Clause is
1427 -- used to indicate that the type is mentioned explicitly in a record
1428 -- representation clause, and thus is not inherited by a derived type.
1429 -- This flag is always False for non-record types.
1431 -- Has_Storage_Size_Clause (Flag23) [implementation base type only]
1432 -- Present in task types and access types. It is set if a Storage_Size
1433 -- clause is present for the type. Used to prevent multiple clauses for
1434 -- one type. Note that this flag is initially cleared for a derived type
1435 -- even though the Storage_Size for such a type is inherited from a
1436 -- Storage_Size clause given for the parent type. Note that in the case
1437 -- of access types, this flag is present only in the root type, since a
1438 -- storage size clause cannot be given to a derived type.
1440 -- Has_Subprogram_Descriptor (Flag93)
1441 -- This flag is set on entities for which zero-cost exception subprogram
1442 -- descriptors can be generated (subprograms and library level package
1443 -- declarations and bodies). It indicates that a subprogram descriptor
1444 -- has been generated, and is used to suppress generation of multiple
1445 -- descriptors (e.g. when instantiating generic bodies).
1447 -- Has_Task (Flag30) [base type only]
1448 -- Present in all type entities. Set on task types themselves, and also
1449 -- (recursively) on any composite type which has a component for which
1450 -- Has_Task is set. The meaning is that an allocator of such an object
1451 -- must create the required tasks. Note that the flag is not set on
1452 -- access types, even if they designate an object that Has_Task.
1454 -- Has_Unchecked_Union (Flag123) [base type only]
1455 -- Present in all type entities. Set on unchecked unions themselves
1456 -- and (recursively) on any composite type which has a component for
1457 -- which Has_Unchecked_Union is set. The meaning is that a comparison
1458 -- operation for the type is not permitted. Note that the flag is not
1459 -- set on access types, even if they designate an object that has
1460 -- the flag Has_Unchecked_Union set.
1462 -- Has_Unknown_Discriminants (Flag72)
1463 -- Present in all type entities. Types can have unknown discriminants
1464 -- either from their declaration or through type derivation. The use
1465 -- of this flag exactly meets the spec in RM 3.7(26). Note that all
1466 -- class-wide types are considered to have unknown discriminants.
1468 -- Has_Volatile_Components (Flag87) [implementation base type only]
1469 -- Present in all types and objects. Set only for an array type or
1470 -- array object if a valid pragma Volatile_Components or a valid
1471 -- pragma Atomic_Components applies to the type or object. Note that
1472 -- in the case of an object, this flag is only set on the object if
1473 -- there was an explicit pragma for the object. In other words, the
1474 -- proper test for whether an object has volatile components is to
1475 -- see if either the object or its base type has this flag set. Note
1476 -- that in the case of a type the pragma will be chained to the rep
1477 -- item chain of the first subtype in the usual manner.
1479 -- Hiding_Loop_Variable (Node8)
1480 -- Present in variables. Set only if a variable of a discrete type is
1481 -- hidden by a loop variable in the same local scope, in which case
1482 -- the Hiding_Loop_Variable field of the hidden variable points to
1483 -- the E_Loop_Variable entity doing the hiding. Used in processing
1484 -- warning messages if the hidden variable turns out to be unused
1485 -- or is referenced without being set.
1487 -- Homonym (Node4)
1488 -- Present in all entities. Link for list of entities that have the
1489 -- same source name and that are declared in the same or enclosing
1490 -- scopes. Homonyms in the same scope are overloaded. Used for name
1491 -- resolution and for the generation of debugging information.
1493 -- Implementation_Base_Type (synthesized)
1494 -- Applies to all types. Similar to Base_Type, but never returns a
1495 -- private type when applied to a non-private type. Instead in this
1496 -- case, it always returns the Representation_Type of the base type
1497 -- in this case, so that we still have a concrete type. Note: it is
1498 -- allowed to apply Implementation_Base_Type to other than a type,
1499 -- in which case it simply returns the entity unchanged.
1501 -- In_Package_Body (Flag48)
1502 -- Set on the entity that denotes the package (the defining occurrence
1503 -- of the package declaration) while analyzing and expanding the package
1504 -- body. Reset on completion of analysis/expansion.
1506 -- In_Private_Part (Flag45)
1507 -- Present in package entities. Flag is set to indicate that the
1508 -- private part is being analyzed. The flag is reset at the end of the
1509 -- package declaration.
1511 -- Inner_Instances (Elist23)
1512 -- Present in generic units. Contains element list of units that are
1513 -- instantiated within the given generic. Used to diagnose circular
1514 -- instantiations.
1516 -- Interface_Name (Node21)
1517 -- Present in exceptions, functions, procedures, variables, constants,
1518 -- and packages. Set to Empty unless an export, import, or interface
1519 -- name pragma has explicitly specified an external name, in which
1520 -- case it references an N_String_Literal node for the specified
1521 -- exteral name. In the case of exceptions, the field is set by
1522 -- Import_Exception/Export_Exception (which can be used in OpenVMS
1523 -- versions only). Note that if this field is Empty, and Is_Imported
1524 -- or Is_Exported is set, then the default interface name is the name
1525 -- of the entity, cased in a manner that is appropriate to the system
1526 -- in use. Note that Interface_Name is ignored if an address clause
1527 -- is present (since it is meaningless in this case).
1529 -- An additional special case usage of this field is in JGNAT for
1530 -- E_Component and E_Discriminant. JGNAT allows these entities to
1531 -- be imported by specifying pragma Import within a component's
1532 -- containing record definition. This supports interfacing to
1533 -- object fields defined within Java classes, and such pragmas
1534 -- are generated by the jvm2ada binding generator tool whenever
1535 -- it processes classes with public object fields. A pragma Import
1536 -- for a component can define the External_Name of the imported
1537 -- Java field (which is generally needed, because Java names are
1538 -- case sensitive).
1540 -- In_Use (Flag8)
1541 -- Present in packages and types. Set when analyzing a use clause for
1542 -- the corresponding entity. Reset at end of corresponding declarative
1543 -- part. The flag on a type is also used to determine the visibility of
1544 -- the primitive operators of the type.
1546 -- Is_Abstract (Flag19)
1547 -- Present in all types, and also for functions and procedures. Set
1548 -- for abstract types and abstract subprograms.
1550 -- Is_Access_Constant (Flag69)
1551 -- Present in access types and subtypes. Indicates that the keyword
1552 -- constant was present in the access type definition.
1554 -- Is_Access_Type (synthesized)
1555 -- Applies to all entities, true for access types and subtypes
1557 -- Is_Aliased (Flag15)
1558 -- Present in objects whose declarations carry the keyword aliased,
1559 -- and on record components that have the keyword.
1561 -- Is_Always_Inlined (synthesized)
1562 -- Present in subprograms. True if there is a pragma Inline_Always for
1563 -- the subprogram.
1565 -- Is_AST_Entry (Flag132)
1566 -- Present in entry entities. Set if a valid pragma AST_Entry applies
1567 -- to the entry. This flag can only be set in OpenVMS versions of GNAT.
1568 -- Note: we also allow the flag to appear in entry families, but given
1569 -- the current implementation of the pragma AST_Entry, this flag will
1570 -- always be False in entry families.
1572 -- Is_Atomic (Flag85)
1573 -- Present in all type entities, and also in constants, components and
1574 -- variables. Set if a pragma Atomic or Shared applies to the entity.
1575 -- In the case of private and incomplete types, this flag is set in
1576 -- both the partial view and the full view.
1578 -- Is_Array_Type (synthesized)
1579 -- Applies to all entities, true for array types and subtypes
1581 -- Is_Asynchronous (Flag81)
1582 -- Present in all type entities and in procedure entities. Set
1583 -- if a pragma Asynchronous applies to the entity.
1585 -- Is_Bit_Packed_Array (Flag122) [implementation base type only]
1586 -- Present in all entities. This flag is set for a packed array
1587 -- type that is bit packed (i.e. the component size is known by the
1588 -- front end and is in the range 1-7, 9-15, or 17-31). Is_Packed is
1589 -- always set if Is_Bit_Packed_Array is set, but it is possible for
1590 -- Is_Packed to be set without Is_Bit_Packed_Array or the case of an
1591 -- array having one or more index types that are enumeration types
1592 -- with non-standard enumeration representations.
1594 -- Is_Boolean_Type (synthesized)
1595 -- Applies to all entities, true for boolean types and subtypes,
1596 -- i.e. Standard.Boolean and all types ultimately derived from it.
1598 -- Is_By_Copy_Type (synthesized)
1599 -- Applies to all type entities. Returns true if the entity is
1600 -- a by copy type (RM 6.2(3)).
1602 -- Is_By_Reference_Type (synthesized)
1603 -- Applies to all type entities. True if the type is required to
1604 -- be passed by reference, as defined in (RM 6.2(4-9)).
1606 -- Is_Called (Flag102)
1607 -- Present in subprograms. Returns true if the subprogram is called
1608 -- in the unit being compiled or in a unit in the context. Used for
1609 -- inlining.
1611 -- Is_Character_Type (Flag63)
1612 -- Present in all entities, true for character types and subtypes,
1613 -- i.e. enumeration types that have at least one character literal.
1615 -- Is_Child_Unit (Flag73)
1616 -- Present in all entities. Set only for defining entities of program
1617 -- units that are child units (but False for subunits).
1619 -- Is_Class_Wide_Type (synthesized)
1620 -- Applies to all entities, true for class wide types and subtypes
1622 -- Is_Compilation_Unit (Flag149)
1623 -- Present in all entities. Set if the entity is a package or subprogram
1624 -- entity for a compilation unit other than a subunit (since we treat
1625 -- subunits as part of the same compilation operation as the ultimate
1626 -- parent, we do not consider them to be separate units for this flag).
1628 -- Is_Completely_Hidden (Flag103)
1629 -- A flag set on an E_Discriminant entity. This flag can be set only
1630 -- for girder discriminants of untagged types. When set, the entity
1631 -- is a girder discriminant of a derived untagged type which is not
1632 -- directly visible in the derived type because the derived type or
1633 -- one of its ancestors have renamed the discriminants in the root
1634 -- type. Note that there are girder discriminants which are not
1635 -- Completely_Hidden (eg the discriminants of a root type).
1637 -- Is_Composite_Type (synthesized)
1638 -- Applies to all entities, true for all composite types and
1639 -- subtypes. Either Is_Composite_Type or Is_Elementary_Type (but
1640 -- not both) is true of any type.
1642 -- Is_Concurrent_Record_Type (Flag20)
1643 -- Present in record types and subtypes. Set if the type was created
1644 -- by the expander to represent a task or protected type. For every
1645 -- concurrent type, such as record type is constructed, and task and
1646 -- protected objects are instances of this record type at runtime
1647 -- (Gigi will replace declarations of the concurrent type using the
1648 -- declarations of the corresponding record type). See package Exp_Ch9
1649 -- for further details.
1651 -- Is_Concurrent_Type (synthesized)
1652 -- Applies to all entities, true for task types and subtypes and
1653 -- for protected types and subtypes.
1655 -- Is_Constrained (Flag12)
1656 -- Present in types or subtypes which may have index, discriminant
1657 -- or range constraint (i.e. array types and subtypes, record types
1658 -- and subtypes, string types and subtypes, and all numeric types).
1659 -- Set if the type or subtype is constrained.
1661 -- Is_Constr_Subt_For_U_Nominal (Flag80)
1662 -- Present in all types and subtypes. Set true only for the constructed
1663 -- subtype of an object whose nominal subtype is unconstrained. Note
1664 -- that the constructed subtype itself will be constrained.
1666 -- Is_Constr_Subt_For_UN_Aliased (Flag141)
1667 -- This flag can only be set if Is_Constr_Subt_For_U_Nominal is set. It
1668 -- indicates that in addition the object concerned is aliased. This flag
1669 -- is used by Gigi to determine whether a template must be constructed.
1671 -- Is_Constructor (Flag76)
1672 -- Present in function and procedure entities. Set if a pragma
1673 -- CPP_Constructor applies to the subprogram.
1675 -- Is_Controlled (Flag42) [base type only]
1676 -- Present in all type entities. Indicates that the type is controlled,
1677 -- i.e. is either a descendant of Ada.Finalization.Controlled or of
1678 -- Ada.Finalization.Limited_Controlled.
1680 -- Is_Controlling_Formal (Flag97)
1681 -- Present in all Formal_Kind entity. Marks the controlling parameters
1682 -- of dispatching operations.
1684 -- Is_CPP_Class (Flag74)
1685 -- Present in all type entities, set only for tagged and untagged
1686 -- record types to which the pragma CPP_Class has been applied.
1688 -- Is_Decimal_Fixed_Point_Type (synthesized)
1689 -- Applies to all type entities, true for decimal fixed point
1690 -- types and subtypes.
1692 -- Is_Derived_Type (synthesized)
1693 -- Applies to all type entities. Determine if given entity is a
1694 -- derived type
1696 -- Is_Destructor (Flag77)
1697 -- Present in function and procedure entities. Set if a pragma
1698 -- CPP_Destructor applies to the subprogram.
1700 -- Is_Discrete_Type (synthesized)
1701 -- Applies to all entities, true for all discrete types and subtypes
1703 -- Is_Discrete__Or_Fixed_Point_Type (synthesized)
1704 -- Applies to all entities, true for all discrete types and subtypes
1705 -- and all fixed-point types and subtypes.
1707 -- Is_Discrim_SO_Function (Flag176)
1708 -- Present in all entities, set only in E_Function entities that Layout
1709 -- creates to compute discriminant-dependent dynamic size/offset values.
1711 -- Is_Dispatching_Operation (Flag6)
1712 -- Present in all entities. Set true for procedures, functions,
1713 -- generic procedures and generic functions if the corresponding
1714 -- operation is dispatching.
1716 -- Is_Dynamic_Scope (synthesized)
1717 -- Applies to all Entities. Returns True if the entity is a dynamic
1718 -- scope (i.e. a block, a subprogram a task_type or an entry).
1720 -- Is_Elementary_Type (synthesized)
1721 -- Applies to all entities, true for all elementary types and
1722 -- subtypes. Either Is_Composite_Type or Is_Elementary_Type (but
1723 -- not both) is true of any type.
1725 -- Is_Eliminated (Flag124)
1726 -- Present in type entities, subprogram entities, and object entities.
1727 -- Indicates that the corresponding entity has been eliminated by use
1728 -- of pragma Eliminate. Also used to mark subprogram entities whose
1729 -- declaration and body are within unreachable code that is removed.
1731 -- Is_Enumeration_Type (synthesized)
1732 -- Present in all entities, true for enumeration types and subtypes
1734 -- Is_Entry (synthesized)
1735 -- Applies to all entities, True only for entry and entry family
1736 -- entities and False for all other entity kinds.
1738 -- Is_Entry_Formal (Flag52)
1739 -- Present in all entities. Set only for entry formals (which can
1740 -- only be in, in-out or out parameters). This flag is used to speed
1741 -- up the test for the need to replace references in Exp_Ch2.
1743 -- Is_Exported (Flag99)
1744 -- Present in all entities. Set if the entity is exported. For now we
1745 -- only allow the export of constants, exceptions, functions, procedures
1746 -- and variables, but that may well change later on. Exceptions can only
1747 -- be exported in the OpenVMS and Java VM implementations of GNAT.
1749 -- Is_First_Subtype (Flag70)
1750 -- Present in all entities. True for first subtypes (RM 3.2.1(6)),
1751 -- i.e. the entity in the type declaration that introduced the type.
1752 -- This may be the base type itself (e.g. for record declarations and
1753 -- enumeration type declarations), or it may be the first subtype of
1754 -- an anonymous base type (e.g. for integer type declarations or
1755 -- constrained array declarations).
1757 -- Is_Fixed_Point_Type (synthesized)
1758 -- Applies to all entities, true for decimal and ordinary fixed
1759 -- point types and subtypes
1761 -- Is_Floating_Point_Type (synthesized)
1762 -- Applies to all entities, true for float types and subtypes
1764 -- Is_Formal (synthesized)
1765 -- Applies to all entities, true for IN, IN OUT and OUT parameters
1767 -- Is_Formal_Subprogram (Flag111)
1768 -- Defined on all entities, true for generic formal subprograms.
1770 -- Is_For_Access_Subtype (Flag118)
1771 -- Present in E_Private_Subtype and E_Record_Subtype entities.
1772 -- Means the sole purpose of the type is to be designated by an
1773 -- Access_Subtype and hence should not be expanded into components
1774 -- because the type may not have been found or frozen yet.
1776 -- Is_Frozen (Flag4)
1777 -- Present in all type entities. Set if the type has been frozen.
1779 -- Is_Generic_Actual_Type (Flag94)
1780 -- Present in the subtype declaration that renames the generic formal
1781 -- as a subtype of the actual. Guarantees that the subtype is not static
1782 -- within the instance.
1784 -- Is_Generic_Instance (Flag130)
1785 -- Present in all entities. Set to indicate that the entity is an
1786 -- instance of a generic unit.
1788 -- Is_Generic_Type (Flag13)
1789 -- Present in types which are generic formal types. Such types have an
1790 -- Ekind that corresponds to their classification, so the Ekind cannot
1791 -- be used to identify generic types.
1793 -- Is_Generic_Unit (synthesized)
1794 -- Applies to all entities. Yields True for a generic unit (generic
1795 -- package, generic function, generic procedure), and False for all
1796 -- other entities.
1798 -- Is_Hidden (Flag57)
1799 -- Present in all entities. Set true for all entities declared in the
1800 -- private part or body of a package. Also marks generic formals of a
1801 -- formal package declared without a box. For library level entities,
1802 -- this flag is set if the entity is not publicly visible.
1804 -- Is_Hidden_Open_Scope (Flag171)
1805 -- Present in all entities. Set true for a scope that contains the
1806 -- instantiation of a child unit, and whose entities are not visible
1807 -- during analysis of the instance.
1809 -- Is_Immediately_Visible (Flag7)
1810 -- Present in all entities. Set if entity is immediately visible, i.e.
1811 -- is defined in some currently open scope (RM 8.3(4)).
1813 -- Is_Imported (Flag24)
1814 -- Present in all entities. Set if the entity is imported. For now we
1815 -- only allow the import of exceptions, functions, procedures, packages.
1816 -- and variables. Exceptions can only be imported in the OpenVMS and
1817 -- Java VM implementations of GNAT. Packages and types can only be
1818 -- imported in the Java VM implementation.
1820 -- Is_Incomplete_Or_Private_Type (synthesized)
1821 -- Applies to all entities, true for private and incomplete types
1823 -- Is_Indefinite_Subtype (synthesized)
1824 -- Applies to all entities for types and subtypes. Determines if given
1825 -- entity is an unconstrained array type or subtype, a discriminated
1826 -- record type or subtype with no initial discriminant values or a
1827 -- class wide type or subtype.
1829 -- Is_Inlined (Flag11)
1830 -- Present in all entities. Set for functions and procedures which are
1831 -- to be inlined. For subprograms created during expansion, this flag
1832 -- may be set directly by the expander to request inlining. Also set
1833 -- for packages that contain inlined subprograms, whose bodies must be
1834 -- be compiled. Is_Inlined is also set on generic subprograms and is
1835 -- inherited by their instances. It is also set on the body entities
1836 -- of inlined subprograms. See also Has_Pragma_Inline.
1838 -- Is_Instantiated (Flag126)
1839 -- Present in generic packages and generic subprograms. Set if the unit
1840 -- is instantiated from somewhere in the extended main source unit. This
1841 -- flag is used to control warnings about the unit being uninstantiated.
1842 -- Also set in a package that is used as an actual for a generic package
1843 -- formal in an instantiation. Also set on a parent instance, in the
1844 -- instantiation of a child, which is implicitly declared in the parent.
1846 -- Is_Integer_Type (synthesized)
1847 -- Applies to all entities, true for integer types and subtypes
1849 -- Is_Internal (Flag17)
1850 -- Present in all entities. Set to indicate an entity created during
1851 -- semantic processing (e.g. an implicit type). Need more documentation
1852 -- on this one! ???
1854 -- Is_Interrupt_Handler (Flag89)
1855 -- Present in protected procedures. Set if a pragma Interrupt_Handler
1856 -- applies to the procedure (which must be parameterless).
1858 -- Is_Intrinsic_Subprogram (Flag64)
1859 -- Present in functions and procedures. It is set if a valid pragma
1860 -- Interface or Import is present for this subprogram specifying pragma
1861 -- Intrinsic. Valid means that the name and profile of the subprogram
1862 -- match the requirements of one of the recognized intrinsic subprograms
1863 -- (see package Sem_Intr for details). Note: the value of Convention for
1864 -- such an entity will be set to Convention_Intrinsic, but it is the
1865 -- setting of Is_Intrinsic_Subprogram, NOT simply having convention set
1866 -- to intrinsic, which causes intrinsic code to be generated.
1868 -- Is_Itype (Flag91)
1869 -- Present in all entities, set for Itypes. If it is set, then the
1870 -- declaration for the type does not appear explicitly in the tree.
1871 -- Instead gigi will elaborate the type when it is first used.
1872 -- Has_Delayed_Freeze can be set for Itypes, and the meaning is that
1873 -- the first use (the one which causes the type to be defined) will
1874 -- be the freeze node. Note that an important restriction on Itypes
1875 -- is that the first use of such a type (the one that causes it to be
1876 -- defined) must be in the same scope as the type.
1878 -- Is_Known_Valid (Flag170)
1879 -- Present in all entities. Relevant for types (and subtype) and
1880 -- for objects (and enumeration literals) of a discrete type.
1882 -- The purpose of this flag is to implement the requirement stated
1883 -- in (RM 13.9.1(9-11)) which require that the use of possibly invalid
1884 -- values may not cause programs to become erroneous. See the function
1885 -- Exp_Util.Expr_Known_Valid for further details. Note that the setting
1886 -- is conservative, in the sense that if the flag is set, it must be
1887 -- right. If the flag is not set, nothing is known about the validity.
1889 -- For enumeration literals, the flag is always set, since clearly
1890 -- an enumeration literal represents a valid value. Range checks
1891 -- where necessary will ensure that this valid value is appropriate.
1893 -- For objects, the flag indicates the state of knowledge about the
1894 -- current value of the object. This may be modified during expansion,
1895 -- and thus the final value is not relevant to gigi.
1897 -- For types and subtypes, the flag is set if all possible bit patterns
1898 -- of length Object_Size (i.e. Esize of the type) represent valid values
1899 -- of the type. In general for such tytpes, all values are valid, the
1900 -- only exception being the case where an object of the type has an
1901 -- explicit size that is greater than Object_Size.
1903 -- For non-discrete objects, the setting of the Is_Known_Valid flag is
1904 -- not defined, and is not relevant, since the considerations of the
1905 -- requirement in (RM 13.9.1(9-11)) do not apply.
1907 -- Is_Limited_Composite (Flag106)
1908 -- Present in all entities. True for composite types that have a
1909 -- limited component. Used to enforce the rule that operations on
1910 -- the composite type that depend on the full view of the component
1911 -- do not become visible until the immediate scope of the composite
1912 -- type itself (RM 7.3.1 (5)).
1914 -- Is_Limited_Record (Flag25)
1915 -- Present in all entities. Set to true for record (sub)types if the
1916 -- record is declared to be limited. Note that this flag is not set
1917 -- simply because some components of the record are limited.
1919 -- Is_Limited_Type (synthesized)
1920 -- Applies to all entities. True if entity is a limited type (limited
1921 -- private type, task type, protected type, composite containing a
1922 -- limited component, or a subtype of any of these types).
1924 -- Is_Machine_Code_Subprogram (Flag137)
1925 -- Present in subprogram entities. Set to indicate that the subprogram
1926 -- is a machine code subprogram (i.e. its body includes at least one
1927 -- code statement). Also indicates that all necessary semantic checks
1928 -- as required by RM 13.8 have been performed.
1930 -- Is_Non_Static_Subtype (Flag109)
1931 -- This flag is present in all type and subtype entities. It is set in
1932 -- some (but not all) cases in which a subtype is known to be non-static.
1933 -- Before this flag was added, the computation of whether a subtype was
1934 -- static was entirely synthesized, by looking at the bounds, and the
1935 -- immediate subtype parent. However, this method does not work for some
1936 -- Itypes that have no parent set (and the only way to find the immediate
1937 -- subtype parent is to go through the tree). For now, this flay is set
1938 -- conservatively, i.e. if it is set then for sure the subtype is non-
1939 -- static, but if it is not set, then the type may or may not be static.
1940 -- Thus the test for a static subtype is that this flag is clear AND
1941 -- that the bounds are static AND that the parent subtype (if available
1942 -- to be tested) is static. Eventually we should make sure this flag
1943 -- is always set right, at which point, these comments can be removed,
1944 -- and the tests for static subtypes greatly simplified.
1946 -- Is_Null_Init_Proc (Flag178)
1947 -- Present in procedure entities. Set for generated init_proc procedures
1948 -- (used to initialize composite types), if the code for the procedure
1949 -- is null (i.e. is a return and nothing else). Such null initialization
1950 -- procedures are generated in case some client is compiled using the
1951 -- Initialize_Scalars pragma, generating a call to this null procedure,
1952 -- but there is no need to call such procedures within a compilation
1953 -- unit, and this flag is used to suppress such calls.
1955 -- Is_Numeric_Type (synthesized)
1956 -- Applies to all entities, true for all numeric types and subtypes
1957 -- (integer, fixed, float).
1959 -- Is_Object (synthesized)
1960 -- Applies to all entities, true for entities representing objects,
1961 -- including generic formal parameters.
1963 -- Is_Optional_Parameter (Flag134)
1964 -- Present in parameter entities. Set if the parameter is specified as
1965 -- optional by use of a First_Optional_Parameter argument to one of the
1966 -- extended Import pragmas. Can only be set for OpenVMS versions of GNAT.
1968 -- Is_Ordinary_Fixed_Point_Type (synthesized)
1969 -- Applies to all entities, true for ordinary fixed point types
1970 -- and subtypes
1972 -- Is_Package (synthesized)
1973 -- Applies to all entities. True for packages and generic packages.
1974 -- False for all other entities.
1976 -- Is_Package_Body_Entity (Flag160)
1977 -- Present in all entities. Set for entities defined at the top level
1978 -- of a package body. Used to control externally generated names.
1980 -- Is_Packed (Flag51) [implementation base type only]
1981 -- Present in all type entities. This flag is set only for record and
1982 -- array types which have a packed representation. There are three
1983 -- cases which cause packing:
1985 -- 1. Explicit use of pragma Pack for an array of package components
1986 -- 2. Explicit use of pragma Pack to pack a record
1987 -- 4. Setting Component_Size of an array to a bit-packable value
1988 -- 3. Indexing an array with a non-standard enumeration type.
1990 -- For records, Is_Packed is always set if Has_Pack_Pragma is set,
1991 -- and can also be set on its own in a derived type which inherited
1992 -- its packed status.
1994 -- For arrays, Is_Packed is set if an array is bit packed (i.e. the
1995 -- component size is known at compile time and is 1-7, 9-15 or 17-31),
1996 -- or if the array has one or more index types that are enumeration
1997 -- types with non-standard representations (in GNAT, we store such
1998 -- arrays compactly, using the Pos of the enumeration type value).
2000 -- As for the case of records, Is_Packed can be set on its own for a
2001 -- derived type, with the same dual before/after freeze meaning.
2002 -- Is_Packed can also be set as the result of an explicit component
2003 -- size clause that specifies an appropriate component size.
2005 -- In the bit packed array case, Is_Bit_Packed_Array will be set in
2006 -- the bit packed case once the array type is frozen.
2008 -- Before an array type is frozen, Is_Packed will always be set if
2009 -- Has_Pack_Pragma is set. Before the freeze point, it is not possible
2010 -- to know the component size, since the component type is not frozen
2011 -- until the array type is frozen. Thus Is_Packed for an array type
2012 -- before it is frozen means that packed is required. Then if it turns
2013 -- out that the component size is not suitable for bit packing, the
2014 -- Is_Packed flag gets turned off.
2016 -- Is_Packed_Array_Type (Flag138)
2017 -- Present in all entities. This flag is set on the entity for the type
2018 -- used to implement a packed array (either a modular type, or a subtype
2019 -- of Packed_Bytes{1,2,4} as appropriate). The flag is set if and only
2020 -- if the type appears in the Packed_Array_Type field of some other type
2021 -- entity. It is used by Gigi to activate the special processing for such
2022 -- types (unchecked conversions that would not otherwise be allowed are
2023 -- allowed for such types). If the Is_Packed_Array_Type flag is set in
2024 -- an entity, then the Original_Array_Type field of this entity points
2025 -- to the original array type for which this is the packed array type.
2027 -- Is_Potentially_Use_Visible (Flag9)
2028 -- Present in all entities. Set if entity is potentially use visible,
2029 -- i.e. it is defined in a package that appears in a currently active
2030 -- use clause (RM 8.4(8)). Note that potentially use visible entities
2031 -- are not necessarily use visible (RM 8.4(9-11)).
2033 -- Is_Preelaborated (Flag59)
2034 -- Present in all entities, set in E_Package and E_Generic_Package
2035 -- entities to which a pragma Preelaborate is applied, and also in
2036 -- all entities within such packages. Note that the fact that this
2037 -- flag is set does not necesarily mean that no elaboration code is
2038 -- generated for the package.
2040 -- Is_Private_Composite (Flag107)
2041 -- Present in composite types that have a private component. Used to
2042 -- enforce the rule that operations on the composite type that depend
2043 -- on the fulll view of the component, do not become visible until the
2044 -- immediate scope of the composite type itself (7.3.1 (5)). Both this
2045 -- flag and Is_Limited_Composite are needed.
2047 -- Is_Private_Descendant (Flag53)
2048 -- Present in entities that can represent library units (packages,
2049 -- functions, procedures). Set if the library unit is itself a private
2050 -- child unit, or if it is the descendent of a private child unit.
2052 -- Is_Private_Type (synthesized)
2053 -- Applies to all entities, true for private types and subtypes,
2054 -- as well as for record with private types as subtypes
2056 -- Is_Protected_Type (synthesized)
2057 -- Applies to all entities, true for protected types and subtypes
2059 -- Is_Psected (Flag153)
2060 -- Present in entities for objects, true if a valid Psect_Object
2061 -- pragma applies to the object. Used to detect duplicate pragmas.
2063 -- Is_Public (Flag10)
2064 -- Present in all entities. Set to indicate that an entity defined in
2065 -- one compilation unit can be referenced from other compilation units.
2066 -- If this reference causes a reference in the generated variable, for
2067 -- example in the case of a variable name, then Gigi will generate an
2068 -- appropriate external name for use by the linker.
2070 -- Is_Protected_Private (synthesized)
2071 -- Applies to a record component. Returns true if this component
2072 -- is used to represent a private declaration of a protected type.
2074 -- Is_Protected_Record_Type (synthesized)
2075 -- Applies to all entities, true if Is_Concurrent_Record_Type
2076 -- Corresponding_Concurrent_Type is a protected type.
2078 -- Is_Pure (Flag44)
2079 -- Present in all entities. Set in all entities of a unit to which a
2080 -- pragma Pure is applied, and also set for the entity of the unit
2081 -- itself. In addition, this flag may be set for any other functions
2082 -- or procedures that are known to be side effect free, so in the case
2083 -- of subprograms, the Is_Pure flag may be used by the optimizer to
2084 -- imply that it can assume freedom from side effects (other than those
2085 -- resulting from assignment to out parameters, or to objects designated
2086 -- by access parameters).
2088 -- Is_Real_Type (synthesized)
2089 -- Applies to all entities, true for real types and subtypes
2091 -- Is_Record_Type (synthesized)
2092 -- Applies to all entities, true for record types and subtypes,
2093 -- includes class-wide types and subtypes (which are also records)
2095 -- Is_Remote_Call_Interface (Flag62)
2096 -- Present in all entities, set in E_Package and E_Generic_Package
2097 -- entities to which a pragma Remote_Call_Interace is applied, and
2098 -- also in all entities within such packages.
2100 -- Is_Remote_Types (Flag61)
2101 -- Present in all entities, set in E_Package and E_Generic_Package
2102 -- entities to which a pragma Remote_Types is applied, and also in
2103 -- all entities within such packages.
2105 -- Is_Renaming_Of_Object (Flag112)
2106 -- Present in all entities, set only for a variable or constant for
2107 -- which the Renamed_Object field is non-empty and for which the
2108 -- renaming is handled by the front end, by macro substitution of
2109 -- a copy of the (evaluated) name tree whereever the variable is used.
2111 -- Is_Return_By_Reference_Type (synthesized)
2112 -- Applies to all type entities. True if the type is required to
2113 -- be returned by reference, as defined in 6.5(11-16).
2115 -- Is_Scalar_Type (synthesized)
2116 -- Applies to all entities, true for scalar types and subtypes
2118 -- Is_Shared_Passive (Flag60)
2119 -- Present in all entities, set in E_Package and E_Generic_Package
2120 -- entities to which a pragma Shared_Passive is applied, and also in
2121 -- all entities within such packages.
2123 -- Is_Statically_Allocated (Flag28)
2124 -- Present in all entities. This can only be set True for exception,
2125 -- variable, constant, and type/subtype entities. If the flag is set,
2126 -- then the variable or constant must be allocated statically rather
2127 -- than on the local stack frame. For exceptions, the meaning is that
2128 -- the exception data should be allocated statically (and indeed this
2129 -- flag is always set for exceptions, since exceptions do not have
2130 -- local scope). For a type, the meaning is that the type must be
2131 -- elaborated at the global level rather than locally. No type marked
2132 -- with this flag may depend on a local variable, or on any other type
2133 -- which does not also have this flag set to True. For a variable or
2134 -- or constant, if the flag is set, then the type of the object must
2135 -- either be declared at the library level, or it must also have the
2136 -- flag set (since to allocate the oject statically, its type must
2137 -- also be elaborated globally).
2139 -- Is_Subprogram (synthesized)
2140 -- Applies to all entities, true for bodies of functions, procedures
2141 -- and operators.
2143 -- Is_String_Type (synthesized)
2144 -- Applies to all type entities. Determines if the given type is a
2145 -- string type, i.e. it is directly a string type or string subtype,
2146 -- or a string slice type, or an array type with one dimension and a
2147 -- component type that is a character type.
2149 -- Is_Tag (Flag78)
2150 -- Present in E_Component. For regular tagged type this flag is set on
2151 -- the tag component (whose name is Name_uTag) and for CPP_Class tagged
2152 -- types, this flag marks the pointer to the main vtable (i.e. the one
2153 -- to be extended by derivation)
2155 -- Is_Tagged_Type (Flag55)
2156 -- Present in all entities, true for an entity for a tagged type.
2158 -- Is_Task_Record_Type (synthesized)
2159 -- Applies to all entities, true if Is_Concurrent_Record_Type
2160 -- Corresponding_Concurrent_Type is a task type.
2162 -- Is_Task_Type (synthesized)
2163 -- Applies to all entities, true for task types and subtypes
2165 -- Is_True_Constant (Flag163)
2166 -- This flag is set in constants and variables which have an initial
2167 -- value specified but which are never assigned, partially or in the
2168 -- whole. For variables, it means that the variable was initialized
2169 -- but never modified, and hence can be treated as a constant by the
2170 -- code generator. For a constant, it means that the constant was not
2171 -- modified by generated code (e.g. to set a discriminant in an init
2172 -- proc). Assignments by user or generated code will reset this flag.
2174 -- Is_Type (synthesized)
2175 -- Applies to all entities, true for a type entity
2177 -- Is_Unchecked_Union (Flag117)
2178 -- Present in all entities. Set only in record types to which the
2179 -- pragma Unchecked_Union has been validly applied.
2181 -- Is_Unsigned_Type (Flag144)
2182 -- Present in all types, but can be set only for discrete and fixed-point
2183 -- type and subtype entities. This flag is only valid if the entity is
2184 -- frozen. If set it indicates that the representation is known to be
2185 -- unsigned (i.e. that no negative values appear in the range). This is
2186 -- normally just a reflection of the lower bound of the subtype or base
2187 -- type, but there is one case in which the setting is non-obvious,
2188 -- namely the case of an unsigned subtype of a signed type from which
2189 -- a further subtype is obtained using variable bounds. This further
2190 -- subtype is still unsigned, but this cannot be determined by looking
2191 -- at its bounds or the bounds of the corresponding base type.
2193 -- Is_Valued_Procedure (Flag127)
2194 -- Present in procedure entities. Set if an Import_Valued_Procedure
2195 -- or Export_Valued_Procedure pragma applies to the procedure entity.
2197 -- Is_Visible_Child_Unit (Flag116)
2198 -- Present in compilation units that are child units. Once compiled,
2199 -- child units remain chained to the entities in the parent unit, and
2200 -- a separate flag must be used to indicate whether the names are
2201 -- visible by selected notation, or not.
2203 -- Is_VMS_Exception (Flag133)
2204 -- Present in all entities. Set only for exception entities where the
2205 -- exception was specified in an Import_Exception or Export_Exception
2206 -- pragma with the VMS option for Form. See description of these pragmas
2207 -- for details. This flag can only be set in OpenVMS versions of GNAT.
2209 -- Is_Volatile (Flag16)
2210 -- Present in all type entities, and also in constants, components and
2211 -- variables. Set if a pragma Volatile applies to the entity. Also set
2212 -- if pragma Shared or pragma Atomic applies to entity. In the case of
2213 -- private or incomplete types, this flag is set in both the private
2214 -- and full view.
2216 -- Is_Wrapper_Package (synthesized)
2217 -- Present in package entities. Indicates that the package has been
2218 -- created as a wrapper for a subprogram instantiation.
2220 -- Last_Entity (Node20)
2221 -- Present in all entities which act as scopes to which a list of
2222 -- associated entities is attached (blocks, class subtypes and types,
2223 -- entries, functions, loops, packages, procedures, protected objects,
2224 -- record types and subtypes, private types, task types and subtypes).
2225 -- Points to a the last entry in the list of associated entities chained
2226 -- through the Next_Entity field. Empty if no entities are chained.
2228 -- Lit_Indexes (Node15)
2229 -- Present in enumeration types and subtypes. Non-empty only for the
2230 -- case of an enumeration root type, where it contains the entity for
2231 -- the generated indexes entity. See unit Exp_Imgv for full details of
2232 -- the nature and use of this entity for implkementing the Image and
2233 -- Value attributes for the enumeration type in question.
2235 -- Lit_Strings (Node16)
2236 -- Present in enumeration types and subtypes. Non-empty only for the
2237 -- case of an enumeration root type, where it contains the entity for
2238 -- the literals string entity. See unit Exp_Imgv for full details of
2239 -- the nature and use of this entity for implementing the Image and
2240 -- Value attributes for the enumeration type in question.
2242 -- Machine_Radix_10 (Flag84)
2243 -- Present in decimal types and subtypes, set if the Machine_Radix
2244 -- is 10, as the result of the specification of a machine radix
2245 -- representation clause. Note that it is possible for this flag
2246 -- to be set without having Has_Machine_Radix_Clause True. This
2247 -- happens when a type is derived from a type with a clause present.
2249 -- Master_Id (Node17)
2250 -- Present in access types and subtypes. Empty unless Has_Task is
2251 -- set for the designated type, in which case it points to the entity
2252 -- for the Master_Id for the access type master.
2254 -- Materialize_Entity (Flag168)
2255 -- Present in all entities. Set only for constant or renamed entities
2256 -- which should be materialized for debugging purposes. In the case of
2257 -- a constant, a memory location should be allocated containing the
2258 -- value. In the case of a renaming, a memory location containing the
2259 -- renamed address should be allocated.
2261 -- Mechanism (Uint8) (returned as Mechanism_Type)
2262 -- Present in functions and non-generic formal parameters. Indicates
2263 -- the mechanism to be used for the function return or for the formal
2264 -- parameter. See separate section on passing mechanisms. This field
2265 -- is also set (to the default value of zero) in a subprogram body
2266 -- entity but not used in this context.
2268 -- Modulus (Uint17) [base type only]
2269 -- Present in modular types. Contains the modulus. For the binary
2270 -- case, this will be a power of 2, but if Non_Binary_Modulus is
2271 -- set, then it will not be a power of 2.
2273 -- Needs_Debug_Info (Flag147)
2274 -- Present in all entities. Set if the entity requires debugging
2275 -- information to be generated. This is true of all entities that
2276 -- have Comes_From_Source set, and also transitively for entities
2277 -- associated with such components (e.g. their types). It is true
2278 -- for all entities in Debug_Generated_Code mode (-gnatD switch).
2280 -- Needs_No_Actuals (Flag22)
2281 -- Present in callable entities (subprograms, entries, access to
2282 -- subprograms) which can be called without actuals because all of
2283 -- their formals (if any) have default values. This flag simplifies the
2284 -- resolution of the syntactic ambiguity involving a call to these
2285 -- entities when the return type is an array type, and a call can be
2286 -- interpreted as an indexing of the result of the call. It is also
2287 -- used to resolve various cases of entry calls.
2289 -- Not_Source_Assigned (Flag115)
2290 -- Present in all entities, but relevant only for variables and
2291 -- parameters. This flag is set if the object is never assigned a
2292 -- value in user code and was not fully initialized at declaration
2293 -- time. Note however, that an access variable is not considered
2294 -- fully initialized in this sense.
2296 -- This flag is only for the purposes of issuing warnings, it must not
2297 -- be used by the code generator to indicate that the variable is in
2298 -- fact a constant, since some assignments in generated code do not
2299 -- count (for example, the call to an init_proc to assign some but
2300 -- not all of the fields in a patially initialized record). The code
2301 -- generator should instead use the flag Is_True_Constant.
2303 -- In variables and out parameters, if this flag is set after full
2304 -- processing of the corresponding declarative unit, it indicates that
2305 -- the variable or parameter was never set, and a warning message can
2306 -- be issued.
2308 -- Note: this flag is initially set, and then cleared on encountering
2309 -- any construct that might conceivably legitimately set the value.
2310 -- Thus during the analysis of a declarative region and its associated
2311 -- statement sequence, the meaning of the flag is "not assigned yet",
2312 -- and once this analysis is complete the flag means "never assigned".
2314 -- Note: for variables appearing in package declarations, this flag
2315 -- is never set. That is because there is no way to tell if some
2316 -- client modifies the variable (or in the case of variables in the
2317 -- private part, if some child unit modifies the variables).
2319 -- Note: in the case of renamed objects, the flag must be set in the
2320 -- ultimate renamed object. Clients noting a possible modification
2321 -- should use the Note_Possible_Modification procedure in Sem_Util
2322 -- rather than Set_Not_Source_Assigned precisely to deal properly with
2323 -- the renaming possibility.
2325 -- Next_Component (synthesized)
2326 -- Applies to record components. Returns the next component by
2327 -- following the chain of declared entities until one is found which
2328 -- corresponds to a component (Ekind is E_Component). Any internal types
2329 -- generated from the subtype indications of the record components are
2330 -- skipped. Returns Empty if no more components.
2332 -- Next_Discriminant (synthesized)
2333 -- Applies to discriminants returned by First/Next_Discriminant.
2334 -- Returns the next language-defined (ie: perhaps non-girder)
2335 -- discriminant by following the chain of declared entities as long as
2336 -- the kind of the entity corresponds to a discriminant. Note that the
2337 -- discriminants might be the only components of the record.
2338 -- Returns Empty if there are no more.
2340 -- Next_Entity (Node2)
2341 -- Present in all entities. The entities of a scope are chained, with
2342 -- the head of the list being in the First_Entity field of the scope
2343 -- entity. All entities use the Next_Entity field as a forward pointer
2344 -- for this list, with Empty indicating the end of the list. Since this
2345 -- field is in the base part of the entity, the access routines for this
2346 -- field are in Sinfo.
2348 -- Next_Formal (synthesized)
2349 -- Applies to the entity for a formal parameter. Returns the next
2350 -- formal parameter of the subprogram or subprogram type. Returns
2351 -- Empty if there are no more formals.
2353 -- Next_Formal_With_Extras (synthesized)
2354 -- Applies to the entity for a formal parameter. Returns the next
2355 -- formal parameter of the subprogram or subprogram type. Returns
2356 -- Empty if there are no more formals. The list returned includes
2357 -- all the extra formals (see description of Extra_Formal field)
2359 -- Next_Girder_Discriminant (synthesized)
2360 -- Applies to discriminants. Set only for a discriminant returned by
2361 -- a call to First/Next_Girder_Discriminant. Returns next girder
2362 -- discriminant, if there are more (see complete description in
2363 -- First_Girder_Discriminant), or Empty if there are no more.
2365 -- Next_Index (synthesized)
2366 -- Applies to array types and subtypes and to string types and
2367 -- subtypes. Yields the next index. The first index is obtained by
2368 -- using the First_Index attribute, and then subsequent indexes are
2369 -- obtained by applying Next_Index to the previous index. Empty is
2370 -- returned to indicate that there are no more indexes. Note that
2371 -- unlike most attributes in this package, Next_Index applies to
2372 -- nodes for the indexes, not to entities.
2374 -- Next_Inlined_Subprogram (Node12)
2375 -- Present in subprograms. Used to chain inlined subprograms used in
2376 -- the current compilation, in the order in which they must be compiled
2377 -- by Gigi to insure that all inlinings are performed.
2379 -- Next_Literal (synthesized)
2380 -- Applies to enumeration literals, returns the next literal, or
2381 -- Empty if applied to the last literal. This is actually a synonym
2382 -- for Next, but its use is preferred in this context.
2384 -- Non_Binary_Modulus (Flag58) [base type only]
2385 -- Present in modular integer types. Set if the modulus for the type
2386 -- is other than a power of 2.
2388 -- Nonzero_Is_True (Flag162) [base type only]
2389 -- Present in enumeration types. True if any non-zero value is to be
2390 -- interpreted as true. Currently this is set true for derived Boolean
2391 -- types which have a convention of C, C++ or Fortran.
2393 -- No_Pool_Assigned (Flag131) [root type only]
2394 -- Present in access types. Set if a storage size clause applies to
2395 -- the variable with a compile time known value of zero. This flag is
2396 -- used to generate warnings if any attempt is made to allocate an
2397 -- instance of such an access type. This is set only in the root
2398 -- type, since derived types must have the same pool.
2400 -- No_Return (Flag113)
2401 -- Present in procedure and generic procedure entries. Indicates that
2402 -- a pragma No_Return applies to the procedure.
2404 -- Normalized_First_Bit (Uint8)
2405 -- Present in components and discriminants. Indicates the normalized
2406 -- value of First_Bit for the component, i.e. the offset within the
2407 -- lowest addressed storage unit containing part or all of the field.
2409 -- Normalized_Position (Uint9)
2410 -- Present in components and discriminants. Indicates the normalized
2411 -- value of Position for the component, i.e. the offset in storage
2412 -- units from the start of the record to the lowest addressed storage
2413 -- unit containing part or all of the field.
2415 -- Normalized_Position_Max (Uint10)
2416 -- Present in components and discriminants. For almost all cases, this
2417 -- is the same as Normalized_Position. The one exception is for the case
2418 -- of a discriminated record containing one or more arrays whose length
2419 -- depends on discriminants. In this case, the Normalized_Position_Max
2420 -- field represents the maximum possible value of Normalized_Position
2421 -- assuming min/max values for discriminant subscripts in all fields.
2422 -- This is used by Layout in front end layout mode to properly computed
2423 -- the maximum size such records (needed for allocation purposes when
2424 -- there are default discriminants, and also for the 'Size value).
2426 -- Number_Dimensions (synthesized)
2427 -- Applies to array types and subtypes. Returns the number of dimensions
2428 -- of the array type or subtype as a value of type Pos.
2430 -- Number_Discriminants (synthesized)
2431 -- Applies to all types with discriminants. Yields the number of
2432 -- discriminants as a value of type Pos.
2434 -- Number_Entries (synthesized)
2435 -- Applies to concurrent types. Returns the number of entries that are
2436 -- declared within the task or protected definition for the type.
2438 -- Number_Formals (synthesized)
2439 -- Applies to subprograms and subprogram types. Yields the number of
2440 -- formals as a value of type Pos.
2442 -- Original_Array_Type (Node21)
2443 -- Present in modular types and array types and subtypes. Set only
2444 -- if the Is_Packed_Array_Type flag is set, indicating that the type
2445 -- is the implementation type for a packed array, and in this case it
2446 -- points to the original array type for which this is the packed
2447 -- array implementation type.
2449 -- Object_Ref (Node17)
2450 -- Present in protected bodies. This is an implicit prival for the
2451 -- Protection object associated with a protected object. See Prival
2452 -- for further details on the use of privals.
2454 -- Original_Record_Component (Node22)
2455 -- Present in components, including discriminants. The usage depends
2456 -- on whether the record is a base type and whether it is tagged.
2458 -- In base tagged types:
2459 -- When the component is inherited in a record extension, it points
2460 -- to the original component (the entity of the ancestor component
2461 -- which is not itself inherited) otherwise it points to itself.
2462 -- Gigi uses this attribute to implement the automatic dereference in
2463 -- the extension and to apply the transformation:
2465 -- Rec_Ext.Comp -> Rec_Ext.Parent. ... .Parent.Comp
2467 -- In base non-tagged types:
2468 -- Always points to itself except for non-girder discriminants, where
2469 -- it points to the girder discriminant it renames.
2471 -- In subtypes (tagged and untagged):
2472 -- Points to the component in the base type.
2474 -- Packed_Array_Type (Node23)
2475 -- Present in array types and subtypes, including the string literal
2476 -- subtype case, if the corresponding type is packed (either bit packed
2477 -- or packed to eliminate holes in non-contiguous enumeration type
2478 -- index types). References the type used to represent the packed array,
2479 -- which is either a modular type for short static arrays, or an
2480 -- array of System.Unsigned. Note that in some situations (internal
2481 -- types, and references to fields of variant records), it is not
2482 -- always possible to construct this type in advance of its use. If
2483 -- Packed_Array_Type is empty, then the necessary type is declared
2484 -- on the fly for each reference to the array.
2486 -- Parameter_Mode (synthesized)
2487 -- Applies to formal parameter entities. This is a synonym for Ekind,
2488 -- used when obtaining the formal kind of a formal parameter (the result
2489 -- is one of E_[In/Out/In_Out]_Paramter)
2491 -- Parent_Subtype (Node19)
2492 -- Present in E_Record_Type. Points to the subtype to use for a
2493 -- field that references the parent record. This is used by Gigi to
2494 -- construct such a field.
2496 -- Primitive_Operations (Elist15)
2497 -- Present in tagged record types and subtypes and in tagged private
2498 -- types. Points to an element list of entities for primitive operations
2499 -- for the tagged type. Not present (and not set) in untagged types (it
2500 -- is an error to reference the primitive operations field of a type
2501 -- that is not tagged).
2503 -- Private_Dependents (Elist18)
2504 -- Present in private (sub)types. Records the subtypes of the
2505 -- private type, derivations from it, and records and arrays
2506 -- with components dependent on the type.
2508 -- The subtypes are traversed when installing and deinstalling
2509 -- (the full view of) a private type in order to ensure correct
2510 -- view of the subtypes.
2512 -- Used in similar fashion for incomplete types: holds list of subtypes
2513 -- of these incomplete types that have discriminant constraints. The
2514 -- full views of these subtypes are constructed when the full view of
2515 -- the incomplete type is processed.
2517 -- In addition, if the incomplete type is the designated type in an
2518 -- access definition for an access parameter, the operation may be
2519 -- a dispatching primitive operation, which is only known when the full
2520 -- declaration of the type is seen. Subprograms that have such an
2521 -- access parameter are also placed in the list of private_dependents.
2523 -- Prival (Node17)
2524 -- Present in components. Used for representing private declarations
2525 -- of protected objects (private formal: by analogy to Discriminal_Link).
2526 -- Empty unless the synthesized Is_Protected_Private attribute is
2527 -- true. The entity used as a formal parameter that corresponds to
2528 -- the to the private declaration in protected operations. See
2529 -- "Private data in protected objects" for details.
2531 -- Privals_Chain (Elist23)
2532 -- Present in protected operations (subprograms and entries). Links
2533 -- all occurrences of the Privals in the body of the operation, in
2534 -- order to patch their types at the end of their expansion. See
2535 -- "Private data in protected objects" for details.
2537 -- Private_View (Node22)
2538 -- For each private type, three entities are allocated, the private view,
2539 -- the full view, and the shadow entity. The shadow entity contains a
2540 -- copy of the private view and is used for restoring the proper private
2541 -- view after a region in which the full view is visible (and is copied
2542 -- into the entity normally used for the private view during this period
2543 -- of visibility). The Private_View field is self-referential when the
2544 -- private view lives in its normal entity, but in the copy that is made
2545 -- in the shadow entity, it points to the proper location in which to
2546 -- restore the private view saved in the shadow.
2548 -- Protected_Formal (Node22)
2549 -- Present in formal parameters (in, in out and out parameters). Used
2550 -- only for formals of protected operations. References corresponding
2551 -- formal parameter in the unprotected version of the operation that
2552 -- is created during expansion.
2554 -- Protected_Body_Subprogram (Node11)
2555 -- Present in protected operations. References the entity for the
2556 -- subprogram which implements the body of the operation.
2558 -- Protected_Operation (Node23)
2559 -- Present in components. Used for representing private declarations
2560 -- of protected objects. Empty unless the synthesized attribute
2561 -- Is_Protected_Private is True. This is the entity corresponding
2562 -- to the body of the protected operation currently being analyzed,
2563 -- and which will eventually use the current Prival associated with
2564 -- this component to refer to the renaming of a private object
2565 -- component. As soon as the expander generates this renaming, this
2566 -- attribute is changed to refer to the next protected subprogram.
2567 -- See "Private data in protected objects" for details.
2569 -- Reachable (Flag49)
2570 -- Present in labels. The flag is set over the range of statements in
2571 -- which a goto to that label is legal.
2573 -- Referenced (Flag156)
2574 -- Present in all entities, set if the entity is referenced.
2576 -- Referenced_Object (Node10)
2577 -- Present in all type entities. Set non-Empty only for type entities
2578 -- constructed for unconstrained objects, or objects that depend on
2579 -- discriminants. Points to the expression from which the actual
2580 -- subtype of the object can be evaluated.
2582 -- Register_Exception_Call (Node20)
2583 -- Present in exception entities. When an exception is declared,
2584 -- a call is expanded to Register_Exception. This field points to
2585 -- the expanded N_Procedure_Call_Statement node for this call. It
2586 -- is used for Import/Export_Exception processing to modify the
2587 -- register call to make appropriate entries in the special tables
2588 -- used for handling these pragmas at runtime.
2590 -- Related_Array_Object (Node19)
2591 -- Present in array types and subtypes. Used only for the base type
2592 -- and subtype created for an anonymous array object. Set to point
2593 -- to the entity of the corresponding array object. Currently used
2594 -- only for type-related error messages.
2596 -- Related_Instance (Node15)
2597 -- Present in the wrapper packages created for subprogram instances.
2598 -- The internal subprogram that implements the instance is inside the
2599 -- wrapper package, but for debugging purposes its external symbol
2600 -- must correspond to the name and scope of the related instance.
2602 -- Renamed_Entity (Node18)
2603 -- Present in exceptions, packages and generic units that are defined
2604 -- by a renaming declaration. Denotes the renamed entity, or transit-
2605 -- itively the ultimate renamed entity if there is a chain of renaming
2606 -- declarations.
2608 -- Renamed_Object (Node18)
2609 -- Present in all objects (constants, variables, components, formal
2610 -- parameters, generic formal parameters, and loop parameters. Set
2611 -- non-Empty if the object was declared by a renaming declaration, in
2612 -- which case it references the tree node for the name of the renamed
2613 -- object. This is only possible for the variable and constant cases.
2614 -- For formal parameters, this field is used in the course of inline
2615 -- expansion, to map the formals of a subprogram into the corresponding
2616 -- actuals. The field is Empty otherwise.
2618 -- Renaming_Map (Uint9)
2619 -- Present in generic subprograms, generic packages, and their
2620 -- instances. Also present in the instances of the corresponding
2621 -- bodies. Denotes the renaming map (generic entities => instance
2622 -- entities) used to construct the instance by givin an index into
2623 -- the tables used to represent these maps. See Sem_Ch12 for further
2624 -- details. The maps for package instances are also used when the
2625 -- instance is the actual corresponding to a formal package.
2627 -- Return_Present (Flag54)
2628 -- Present in function and generic function entities. Set if the
2629 -- function contains a return statement (used for error checking).
2630 -- This flag can also be set in procedure and generic procedure
2631 -- entities (for convenience in setting it), but is only tested
2632 -- for the function case.
2634 -- Returns_By_Ref (Flag90)
2635 -- Present in function entities, to indicate that the function
2636 -- returns the result by reference, either because its return typ is a
2637 -- by-reference-type or because it uses explicitly the secondary stack.
2639 -- Reverse_Bit_Order (Flag164) [base type only]
2640 -- Present in all record type entities. Set if a valid pragma an
2641 -- attribute represention clause for Bit_Order has reversed the order
2642 -- of bits from the default value. When this flag is set, a component
2643 -- clause must specify a set of bits entirely contained in a single
2644 -- storage unit.
2646 -- RM_Size (Uint13)
2647 -- Present in all type and subtype entities. Contains the value of
2648 -- type'Size as defined in the RM. See also the Esize field and
2649 -- and the description on "Handling of Type'Size Values". A value
2650 -- of zero for in this field for a non-discrete type means that
2651 -- the front end has not yet determined the size value. For the
2652 -- case of a discrete type, this field is always set by the front
2653 -- end and zero is a legitimate value for a type with one value.
2655 -- Root_Type (synthesized)
2656 -- Applies to all type entities. For class-wide types, return the root
2657 -- type of the class covered by the CW type, otherwise returns the
2658 -- ultimate derivation ancestor of the given type. This function
2659 -- preserves the view, i.e. the Root_Type of a partial view is the
2660 -- partial view of the ulimate ancestor, the Root_Type of a full view
2661 -- is the full view of the ultimate ancestor. Note that this function
2662 -- does not correspond exactly to the use of root type in the RM, since
2663 -- in the RM root type applies to a class of types, not to a type.
2665 -- Scalar_Range (Node20)
2666 -- Present in all scalar types (including modular types, where the
2667 -- bounds are 0 .. modulus - 1). References a node in the tree that
2668 -- contains the bounds for the range. Note that this information
2669 -- could be obtained by rummaging around the tree, but it is more
2670 -- convenient to have it immediately at hand in the entity. The
2671 -- contents of Scalar_Range can either be an N_Subtype_Indication
2672 -- node (with a constraint), or a Range node, but not a simple
2673 -- subtype reference (a subtype is converted into a range).
2675 -- Scale_Value (Uint15)
2676 -- Present in decimal fixed-point types and subtypes. Contains the scale
2677 -- for the type (i.e. the value of type'Scale = the number of decimal
2678 -- digits after the decimal point).
2680 -- Scope (Node3)
2681 -- Present in all entities. Points to the entity for the scope (block,
2682 -- loop, subprogram, package etc.) in which the entity is declared.
2683 -- Since this field is in the base part of the entity node, the access
2684 -- routines for this field are in Sinfo.
2686 -- Scope_Depth (synth)
2687 -- Applies to program units, blocks, concurrent types and entries,
2688 -- and also to record types, i.e. to any entity that can appear on
2689 -- the scope stack. Yields the scope depth value, which for those
2690 -- entities other than records is simply the scope depth value,
2691 -- for record entities, it is the Scope_Depth of the record scope.
2693 -- Scope_Depth_Value (Uint22)
2694 -- Present in program units, blocks, concurrent types and entries.
2695 -- Indicates the number of scopes that statically enclose the
2696 -- declaration of the unit or type. Library units have a depth of zero.
2697 -- Note that record types can act as scopes but do NOT have this field
2698 -- set (see Scope_Depth above)
2700 -- Scope_Depth_Set (synthesized)
2701 -- Applies to a special predicate function that returns a Boolean value
2702 -- indicating whether or not the Scope_Depth field has been set. It
2703 -- is needed, since returns an invalid value in this case!
2705 -- Sec_Stack_Needed_For_Return (Flag167)
2706 -- Present in scope entities (blocks,functions, procedures, tasks,
2707 -- entries). Set to True when secondary stack is used to hold
2708 -- the returned value of a function and thus should not be
2709 -- released on scope exit.
2711 -- Shadow_Entities (List14)
2712 -- Present in package and generic package entities. Points to a list
2713 -- of entities that correspond to private types. For each private type
2714 -- a shadow entity is created that holds a copy of the private view.
2715 -- In regions of the program where the full views of these private
2716 -- entities are visible, the full view is copied into the entity that
2717 -- is normally used to hold the private view, but the shadow entity
2718 -- copy is unchanged. The shadow entities are then used to restore the
2719 -- original private views at the end of the region. This list is a
2720 -- standard format list (i.e. First (Shadow_Entities) is the first
2721 -- entry and subsequent entries are obtained using Next.
2723 -- Shared_Var_Assign_Proc (Node22)
2724 -- Present in variables. Set non-Empty only if Is_Shared_Passive is
2725 -- set, in which case this is the entity for the shared memory assign
2726 -- routine. See Exp_Smem for full details.
2728 -- Shared_Var_Read_Proc (Node15)
2729 -- Present in variables. Set non-Empty only if Is_Shared_Passive is
2730 -- set, in which case this is the entity for the shared memory read
2731 -- routine. See Exp_Smem for full details.
2733 -- Size_Check_Code (Node9)
2734 -- Present in constants and variables. Normally Empty. Set if code is
2735 -- generated to check the size of the variable. This field is used to
2736 -- suppress this code if a subsequent address clause is encountered.
2738 -- Size_Clause (synthesized)
2739 -- Applies to all entities. If a size clause is present in the rep
2740 -- item chain for an entity then the attribute definition clause node
2741 -- for the size clause is returned. Otherwise Size_Clause returns Empty
2742 -- if no item is present. Usually this is only meaningful if the flag
2743 -- Has_Size_Clause is set. This is because when the representation item
2744 -- chain is copied for a derived type, it can inherit a size clause that
2745 -- is not applicable to the entity.
2747 -- Size_Depends_On_Discriminant (Flag177)
2748 -- Present in all entities for types and subtypes. Indicates that the
2749 -- size of the type depends on the value of one or more discriminants.
2750 -- Currently, this flag is only set in front end layout mode for arrays
2751 -- which have one or more bounds depending on a discriminant value.
2753 -- Size_Known_At_Compile_Time (Flag92)
2754 -- Present in all entities for types and subtypes. Indicates that the
2755 -- size of objects of the type is known at compile time. This flag is
2756 -- used to optimize some generated code sequences, and also to enable
2757 -- some error checks (e.g. disallowing component clauses on variable
2758 -- length objects. It is set conservatively (i.e. if it is True, the
2759 -- size is certainly known at compile time, if it is False, then the
2760 -- size may or may not be known at compile time, but the code will
2761 -- assume that it is not known).
2763 -- Small_Value (Ureal21)
2764 -- Present in fixed point types. Points to the universal real for the
2765 -- Small of the type, either as given in a representation clause, or
2766 -- as computed (as a power of two) by the compiler.
2768 -- Spec_Entity (Node19)
2769 -- Present in package body entities. Points to corresponding package
2770 -- spec entity. Also present in subprogram body parameters in the
2771 -- case where there is a separate spec, where this field references
2772 -- the corresponding parameter entities in the spec.
2774 -- Storage_Size_Variable (Node15) [implementation base type only]
2775 -- Present in access types and task type entities. This flag is set
2776 -- if a valid and effective pragma Storage_Size applies to the base
2777 -- type. Points to the entity for a variable that is created to
2778 -- hold the value given in a Storage_Size pragma for an access
2779 -- collection or a task type. Note that in the access type case,
2780 -- this field is present only in the root type (since derived types
2781 -- share the same storage pool).
2783 -- Strict_Alignment (Flag145) [implementation base type only]
2784 -- Present in all type entities. Indicates that some containing part
2785 -- is either aliased or tagged. This prohibits packing the object
2786 -- tighter than its natural size and alignment.
2788 -- String_Literal_Length (Uint16)
2789 -- Present in string literal subtypes (which are created to correspond
2790 -- to string literals in the program). Contains the length of the string
2791 -- literal.
2793 -- String_Literal_Low_Bound (Node15)
2794 -- Present in string literal subtypes (which are created to correspond
2795 -- to string literals in the program). Contains an expression whose
2796 -- value represents the low bound of the literal. This is a copy of
2797 -- the low bound of the applicable index constraint if there is one,
2798 -- or a copy of the low bound of the index base type if not.
2800 -- Suppress_Access_Checks (Flag31)
2801 -- Present in all entities. Set if access checks associated with this
2802 -- entity are to be suppressed (see separate section on "Handling of
2803 -- Check Suppression")
2805 -- Suppress_Accessibility_Checks (Flag32)
2806 -- Present in all entities. Set if accessibility checks associated with
2807 -- this entity are to be suppressed (see separate section on "Handling
2808 -- of Check Suppression")
2810 -- Suppress_Discriminant_Checks (Flag33)
2811 -- Present in all entities. Set if discriminant checks associated with
2812 -- this entity are to be suppressed (see separate section on "Handling
2813 -- of Check Suppression")
2815 -- Suppress_Division_Checks (Flag34)
2816 -- Present in all entities. Set if division checks associated with
2817 -- this entity are to be suppressed (see separate section on "Handling
2818 -- of Check Suppression")
2820 -- Suppress_Elaboration_Checks (Flag35)
2821 -- Present in all entities. Set if elaboration checks associated with
2822 -- this entity are to be suppressed (see separate section on "Handling
2823 -- of Check Suppression")
2825 -- Suppress_Elaboration_Warnings (Flag148)
2826 -- Present in all entities. Set if a pragma Suppress Elaboration_Checks
2827 -- is applied specifically to the entity. If set on a subprogram, all
2828 -- elaboration warnings for calls to the subprogram are suppressed. If
2829 -- set on a package, then all elaboration warnings for calls to any
2830 -- subprograms in the package are suppressed.
2832 -- Suppress_Index_Checks (Flag36)
2833 -- Present in all entities. Set if index checks associated with this
2834 -- entity are to be suppressed (see separate section on "Handling of
2835 -- Check Suppression")
2837 -- Suppress_Init_Proc (Flag105) [base type only]
2838 -- Present in all type entities. Set to suppress the generation of
2839 -- initialization procedures where they are known to be not needed.
2840 -- For example, the enumeration image table entity uses this flag.
2842 -- Suppress_Length_Checks (Flag37)
2843 -- Present in all entities. Set if length checks associated with this
2844 -- entity are to be suppressed (see separate section on "Handling of
2845 -- Check Suppression")
2847 -- Suppress_Overflow_Checks (Flag38)
2848 -- Present in all entities. Set if overflow checks associated with
2849 -- this entity are to be suppressed (see separate section on "Handling
2850 -- of Check Suppression")
2852 -- Suppress_Range_Checks (Flag39)
2853 -- Present in all entities. Set if range checks associated with this
2854 -- entity are to be suppressed (see separate section on "Handling of
2855 -- Check Suppression")
2857 -- Suppress_Storage_Checks (Flag40)
2858 -- Present in all entities. Set if storage checks associated with
2859 -- this entity are to be suppressed (see separate section on "Handling
2860 -- of Check Suppression")
2862 -- Suppress_Style_Checks (Flag165)
2863 -- Present in all entities. Suppresses any style checks specifically
2864 -- associated with the given entity if set.
2866 -- Suppress_Tag_Checks (Flag41)
2867 -- Present in all entities. Set if tag checks associated with this
2868 -- entity are to be suppressed (see separate section on "Handling of
2869 -- Check Suppression")
2871 -- Tag_Component (synthesized)
2872 -- Applies to tagged record types, returns the entity for the _Tag
2873 -- field in this record, which must be present.
2875 -- Type_High_Bound (synthesized)
2876 -- Applies to scalar types. Returns the tree node (Node_Id) that
2877 -- contains the high bound of a scalar type. The returned value is a
2878 -- literal for a base type, but may be an expression in the case of a
2879 -- scalar type with dynamic bounds. Note that in the case of a fixed
2880 -- point type, the high bound is in units of small, and is an integer.
2882 -- Type_Low_Bound (synthesized)
2883 -- Applies to scalar types. Returns the tree node (Node_Id) that
2884 -- contains the low bound of a scalar type. The returned value is a
2885 -- literal for a base type, but may be an expression in the case of a
2886 -- scalar type with dynamic bounds. Note that in the case of a fixed
2887 -- point type, the low bound is in units of small, and is an integer.
2889 -- Underlying_Full_View (Node19)
2890 -- Present in private subtypes that are the completion of other private
2891 -- types, or in private types that are derived from private subtypes.
2892 -- If the full view of a private type T is derived from another
2893 -- private type with discriminants Td, the full view of T is also
2894 -- private, and there is no way to attach to it a further full view that
2895 -- would convey the structure of T to the back end. The Underlying_Full_
2896 -- View is an attribute of the full view that is a subtype of Td with
2897 -- the same constraint as the declaration for T. The declaration for this
2898 -- subtype is built at the point of the declaration of T, either as a
2899 -- completion, or as a subtype declaration where the base type is private
2900 -- and has a private completion. If Td is already constrained, then its
2901 -- full view can serve directly as the full view of T.
2903 -- Underlying_Type (synthesized)
2904 -- Applies to all entities. This is the identity function except in
2905 -- the case where it is applied to an incomplete or private type,
2906 -- in which case it is the underlying type of the type declared by
2907 -- the completion, or Empty if the completion has not yet been
2908 -- encountered and analyzed.
2910 -- Note: the reason this attribute applies to all entities, and not
2911 -- just types, is to legitimize code where Underlying_Type is applied
2912 -- to an entity which may or may not be a type, with the intent that
2913 -- if it is a type, its underlying type is taken.
2915 -- Unset_Reference (Node16)
2916 -- Present in variables and out parameters. This is normally Empty.
2917 -- It is set to point to an identifier that represents a reference
2918 -- to the entity before any value has been set. Only the first such
2919 -- reference is identified. This field is used to generate a warning
2920 -- message if necessary (see Sem_Warn.Check_Unset_Reference).
2922 -- Uses_Sec_Stack (Flag95)
2923 -- Present in scope entities (blocks,functions, procedures, tasks,
2924 -- entries). Set to True when secondary stack is used in this scope and
2925 -- must be released on exit unless Sec_Stack_Needed_For_Return is set.
2927 -- Vax_Float (Flag151) [base type only]
2928 -- Present in all type entities. Set only on the base type of float
2929 -- types with Vax format. The particular format is determined by the
2930 -- Digits_Value value which is 6,9,15 for F_Float, D_Float, G_Float.
2932 -- Warnings_Off (Flag96)
2933 -- Present in all entities. Set if a pragma Warnings (Off, entity-name)
2934 -- is used to suppress warnings for a given entity. It is also used by
2935 -- the compiler in some situations to kill spurious warnings.
2937 ------------------
2938 -- Access Kinds --
2939 ------------------
2941 -- The following three entity kinds are introduced by the corresponding
2942 -- type definitions:
2944 -- E_Access_Type, E_General_Access_Type, E_Anonymous_Access_Type.
2946 -- In addition, we define the kind E_Allocator_Type to label
2947 -- allocators. This is because special resolution rules apply to this
2948 -- construct. Eventually the constructs are labeled with the access
2949 -- type imposed by the context. Gigi should never see the type
2950 -- E_Allocator.
2952 -- Similarly, the type E_Access_Attribute_Type is used as the initial
2953 -- kind associated with an access attribute. After resolution a specific
2954 -- access type will be established as determined by the context.
2956 -- Finally, the type Any_Access is used to label -null- during type
2957 -- resolution. Any_Access is also replaced by the context type after
2958 -- resolution.
2960 --------------------------------
2961 -- Classification of Entities --
2962 --------------------------------
2964 -- The classification of program entities which follows is a refinement of
2965 -- the list given in RM 3.1(1). E.g., separate entities denote subtypes of
2966 -- different type classes. Ada 95 entities include class wide types,
2967 -- protected types, subprogram types, generalized access types, generic
2968 -- formal derived types and generic formal packages.
2970 -- The order chosen for these kinds allows us to classify related entities
2971 -- so that they are contiguous. As a result, they do not appear in the
2972 -- exact same order as their order of first appearance in the LRM (For
2973 -- example, private types are listed before packages). The contiguity
2974 -- allows us to define useful subtypes (see below) such as type entities,
2975 -- overloaded entities, etc.
2977 -- Each entity (explicitly or implicitly declared) has a kind, which is
2978 -- a value of the following type:
2980 type Entity_Kind is (
2982 E_Void,
2983 -- The initial Ekind value for a newly created entity. Also used as
2984 -- the Ekind for Standard_Void_Type, a type entity in Standard used
2985 -- as a dummy type for the return type of a procedure (the reason we
2986 -- create this type is to share the circuits for performing overload
2987 -- resolution on calls).
2989 -------------
2990 -- Objects --
2991 -------------
2993 E_Variable,
2994 -- Variables created by an object declaration with no constant keyword
2996 E_Component,
2997 -- Components of a record declaration, private declarations of
2998 -- protected objects.
3000 E_Constant,
3001 -- Constants created by an object declaration with a constant keyword
3003 E_Discriminant,
3004 -- A discriminant, created by the use of a discriminant in a type
3005 -- declaration.
3007 E_Loop_Parameter,
3008 -- A loop parameter created by a for loop
3010 ------------------------
3011 -- Parameter Entities --
3012 ------------------------
3014 -- Parameters are also objects
3016 E_In_Parameter,
3017 -- An in parameter of a subprogram or entry
3019 E_Out_Parameter,
3020 -- An out parameter of a subprogram or entry
3022 E_In_Out_Parameter,
3023 -- An in-out parameter of a subprogram or entry
3025 --------------------------------
3026 -- Generic Parameter Entities --
3027 --------------------------------
3029 -- Generic parameters are also objects
3031 E_Generic_In_Out_Parameter,
3032 -- A generic in out parameter, created by the use of a generic in out
3033 -- parameter in a generic declaration.
3035 E_Generic_In_Parameter,
3036 -- A generic in parameter, created by the use of a generic in
3037 -- parameter in a generic declaration.
3039 -------------------
3040 -- Named Numbers --
3041 -------------------
3043 E_Named_Integer,
3044 -- Named numbers created by a number declaration with an integer value
3046 E_Named_Real,
3047 -- Named numbers created by a number declaration with a real value
3049 -----------------------
3050 -- Enumeration Types --
3051 -----------------------
3053 E_Enumeration_Type,
3054 -- Enumeration types, created by an enumeration type declaration
3056 E_Enumeration_Subtype,
3057 -- Enumeration subtypes, created by an explicit or implicit subtype
3058 -- declaration applied to an enumeration type or subtype.
3060 -------------------
3061 -- Numeric Types --
3062 -------------------
3064 E_Signed_Integer_Type,
3065 -- Signed integer type, used for the anonymous base type of the
3066 -- integer subtype created by an integer type declaration.
3068 E_Signed_Integer_Subtype,
3069 -- Signed integer subtype, created by either an integer subtype or
3070 -- integer type declaration (in the latter case an integer type is
3071 -- created for the base type, and this is the first named subtype).
3073 E_Modular_Integer_Type,
3074 -- Modular integer type, used for the anonymous base type of the
3075 -- integer subtype created by a modular integer type declaration.
3077 E_Modular_Integer_Subtype,
3078 -- Modular integer subtype, created by either an modular subtype
3079 -- or modular type declaration (in the latter case a modular type
3080 -- is created for the base type, and this is the first named subtype).
3082 E_Ordinary_Fixed_Point_Type,
3083 -- Ordinary fixed type, used for the anonymous base type of the
3084 -- fixed subtype created by an ordinary fixed point type declaration.
3086 E_Ordinary_Fixed_Point_Subtype,
3087 -- Ordinary fixed point subtype, created by either an ordinary fixed
3088 -- point subtype or ordinary fixed point type declaration (in the
3089 -- latter case a fixed point type is created for the base type, and
3090 -- this is the first named subtype).
3092 E_Decimal_Fixed_Point_Type,
3093 -- Decimal fixed type, used for the anonymous base type of the decimal
3094 -- fixed subtype created by an ordinary fixed point type declaration.
3096 E_Decimal_Fixed_Point_Subtype,
3097 -- Decimal fixed point subtype, created by either a decimal fixed point
3098 -- subtype or decimal fixed point type declaration (in the latter case
3099 -- a fixed point type is created for the base type, and this is the
3100 -- first named subtype).
3102 E_Floating_Point_Type,
3103 -- Floating point type, used for the anonymous base type of the
3104 -- floating point subtype created by a floating point type declaration.
3106 E_Floating_Point_Subtype,
3107 -- Floating point subtype, created by either a floating point subtype
3108 -- or floating point type declaration (in the latter case a floating
3109 -- point type is created for the base type, and this is the first
3110 -- named subtype).
3112 ------------------
3113 -- Access Types --
3114 ------------------
3116 E_Access_Type,
3117 -- An access type created by an access type declaration with no all
3118 -- keyword present. Note that the predefined type Any_Access, which
3119 -- has E_Access_Type Ekind, is used to label NULL in the upwards pass
3120 -- of type analysis, to be replaced by the true access type in the
3121 -- downwards resolution pass.
3123 E_Access_Subtype,
3124 -- An access subtype created by a subtype declaration for any access
3125 -- type (whether or not it is a general access type).
3127 E_Access_Attribute_Type,
3128 -- An access type created for an access attribute (such as 'Access,
3129 -- 'Unrestricted_Access and Unchecked_Access)
3131 E_Allocator_Type,
3132 -- A special internal type used to label allocators and attribute
3133 -- references using 'Access. This is needed because special resolution
3134 -- rules apply to these constructs. On the resolution pass, this type
3135 -- is always replaced by the actual access type, so Gigi should never
3136 -- see types with this Ekind.
3138 E_General_Access_Type,
3139 -- An access type created by an access type declaration with the all
3140 -- keyword present.
3142 E_Access_Subprogram_Type,
3143 -- An access to subprogram type, created by an access to subprogram
3144 -- declaration.
3146 E_Access_Protected_Subprogram_Type,
3147 -- An access to a protected subprogram, created by the corresponding
3148 -- declaration. Values of such a type denote both a protected object
3149 -- and a protected operation within, and have different compile-time
3150 -- and run-time properties than other access to subprograms.
3152 E_Anonymous_Access_Type,
3153 -- An anonymous access type created by an access parameter or access
3154 -- discriminant.
3156 ---------------------
3157 -- Composite Types --
3158 ---------------------
3160 E_Array_Type,
3161 -- An array type created by an array type declaration. Includes all
3162 -- cases of arrays, except for string types.
3164 E_Array_Subtype,
3165 -- An array subtype, created by an explicit array subtype declaration,
3166 -- or the use of an anonymous array subtype.
3168 E_String_Type,
3169 -- A string type, i.e. an array type whose component type is a character
3170 -- type, and for which string literals can thus be written.
3172 E_String_Subtype,
3173 -- A string subtype, created by an explicit subtype declaration for a
3174 -- string type, or the use of an anonymous subtype of a string type,
3176 E_String_Literal_Subtype,
3177 -- A special string subtype, used only to describe the type of a string
3178 -- literal (will always be one dimensional, with literal bounds).
3180 E_Class_Wide_Type,
3181 -- A class wide type, created by any tagged type declaration (i.e. if
3182 -- a tagged type is declared, the corresponding class type is always
3183 -- created, using this Ekind value).
3185 E_Class_Wide_Subtype,
3186 -- A subtype of a class wide type, created by a subtype declaration
3187 -- used to declare a subtype of a class type.
3189 E_Record_Type,
3190 -- A record type, created by a record type declaration
3192 E_Record_Subtype,
3193 -- A record subtype, created by a record subtype declaration.
3195 E_Record_Type_With_Private,
3196 -- Used for types defined by a private extension declaration. Includes
3197 -- the fields for both private types and for record types (with the
3198 -- sole exception of Corresponding_Concurrent_Type which is obviously
3199 -- not needed). This entity is considered to be both a record type and
3200 -- a private type.
3202 E_Record_Subtype_With_Private,
3203 -- A subtype of a type defined by a private extension declaration.
3205 E_Private_Type,
3206 -- A private type, created by a private type declaration that does
3207 -- not have the keyword limited.
3209 E_Private_Subtype,
3210 -- A subtype of a private type, created by a subtype declaration used
3211 -- to declare a subtype of a private type.
3213 E_Limited_Private_Type,
3214 -- A limited private type, created by a private type declaration that
3215 -- has the keyword limited.
3217 E_Limited_Private_Subtype,
3218 -- A subtype of a limited private type, created by a subtype declaration
3219 -- used to declare a subtype of a limited private type.
3221 E_Incomplete_Type,
3222 -- An incomplete type, created by an incomplete type declaration
3224 E_Task_Type,
3225 -- A task type, created by a task type declaration. An entity with this
3226 -- Ekind is also created to describe the anonymous type of a task that
3227 -- is created by a single task declaration.
3229 E_Task_Subtype,
3230 -- A subtype of a task type, created by a subtype declaration used to
3231 -- declare a subtype of a task type.
3233 E_Protected_Type,
3234 -- A protected type, created by a protected type declaration. An entity
3235 -- with this Ekind is also created to describe the anonymous type of
3236 -- a protected object created by a single protected declaration.
3238 E_Protected_Subtype,
3239 -- A subtype of a protected type, created by a subtype declaration used
3240 -- to declare a subtype of a protected type.
3242 -----------------
3243 -- Other Types --
3244 -----------------
3246 E_Exception_Type,
3247 -- The type of an exception created by an exception declaration
3249 E_Subprogram_Type,
3250 -- This is the designated type of an Access_To_Subprogram. Has type
3251 -- and signature like a subprogram entity, so can appear in calls,
3252 -- which are resolved like regular calls, except that such an entity
3253 -- is not overloadable.
3255 ---------------------------
3256 -- Overloadable Entities --
3257 ---------------------------
3259 E_Enumeration_Literal,
3260 -- An enumeration literal, created by the use of the literal in an
3261 -- enumeration type definition.
3263 E_Function,
3264 -- A function, created by a function declaration or a function body
3265 -- that acts as its own declaration.
3267 E_Operator,
3268 -- A predefined operator, appearing in Standard, or an implicitly
3269 -- defined concatenation operator created whenever an array is
3270 -- declared. We do not make normal derived operators explicit in
3271 -- the tree, but the concatenation operators are made explicit.
3273 E_Procedure,
3274 -- A procedure, created by a procedure declaration or a procedure
3275 -- body that acts as its own declaration.
3277 E_Entry,
3278 -- An entry, created by an entry declaration in a task or protected
3279 -- object.
3281 --------------------
3282 -- Other Entities --
3283 --------------------
3285 E_Entry_Family,
3286 -- An entry family, created by an entry family declaration in a
3287 -- task or protected type definition.
3289 E_Block,
3290 -- A block identifier, created by an explicit or implicit label on
3291 -- a block or declare statement.
3293 E_Entry_Index_Parameter,
3294 -- An entry index parameter created by an entry index specification
3295 -- for the body of a protected entry family.
3297 E_Exception,
3298 -- An exception created by an exception declaration. The exception
3299 -- itself uses E_Exception for the Ekind, the implicit type that is
3300 -- created to represent its type uses the Ekind E_Exception_Type.
3302 E_Generic_Function,
3303 -- A generic function. This is the entity for a generic function
3304 -- created by a generic subprogram declaration.
3306 E_Generic_Package,
3307 -- A generic package, this is the entity for a generic package created
3308 -- by a generic package declaration.
3310 E_Generic_Procedure,
3311 -- A generic function. This is the entity for a generic procedure
3312 -- created by a generic subprogram declaration.
3314 E_Label,
3315 -- The defining entity for a label. Note that this is created by the
3316 -- implicit label declaration, not the occurrence of the label itself,
3317 -- which is simply a direct name referring to the label.
3319 E_Loop,
3320 -- A loop identifier, created by an explicit or implicit label on a
3321 -- loop statement.
3323 E_Package,
3324 -- A package, created by a package declaration
3326 E_Package_Body,
3327 -- A package body. This entity serves only limited functions, since
3328 -- most semantic analysis uses the package entity (E_Package). However
3329 -- there are some attributes that are significant for the body entity.
3330 -- For example, collection of exception handlers.
3332 E_Protected_Object,
3333 -- A protected object, created by an object declaration that declares
3334 -- an object of a protected type.
3336 E_Protected_Body,
3337 -- A protected body. This entity serves almost no function, since all
3338 -- semantic analysis uses the protected entity (E_Protected_Type)
3340 E_Task_Body,
3341 -- A task body. This entity serves almost no function, since all
3342 -- semantic analysis uses the protected entity (E_Task_Type).
3344 E_Subprogram_Body
3345 -- A subprogram body. Used when a subprogram has a separate declaration
3346 -- to represent the entity for the body. This entity serves almost no
3347 -- function, since all semantic analysis uses the subprogram entity
3348 -- for the declaration (E_Function or E_Procedure).
3351 for Entity_Kind'Size use 8;
3352 -- The data structures in Atree assume this!
3354 --------------------------
3355 -- Subtype Declarations --
3356 --------------------------
3358 -- The above entities are arranged so that they can be conveniently
3359 -- grouped into subtype ranges. Note that for each of the xxx_KInd
3360 -- ranges defined below, there is a corresponding Is_xxx.. predicate
3361 -- which is to be used in preference to direct range tests using the
3362 -- subtype name. However, the subtype names are available for direct
3363 -- use, e.g. as choices in case statements.
3365 subtype Access_Kind is Entity_Kind range
3366 E_Access_Type ..
3367 -- E_Access_Subtype
3368 -- E_Access_Attribute_Type
3369 -- E_Allocator_Type
3370 -- E_General_Access_Type
3371 -- E_Access_Subprogram_Type
3372 -- E_Access_Protected_Subprogram_Type
3373 E_Anonymous_Access_Type;
3375 subtype Array_Kind is Entity_Kind range
3376 E_Array_Type ..
3377 -- E_Array_Subtype
3378 -- E_String_Type
3379 -- E_String_Subtype
3380 E_String_Literal_Subtype;
3382 subtype Class_Wide_Kind is Entity_Kind range
3383 E_Class_Wide_Type ..
3384 E_Class_Wide_Subtype;
3386 subtype Composite_Kind is Entity_Kind range
3387 E_Array_Type ..
3388 -- E_Array_Subtype
3389 -- E_String_Type
3390 -- E_String_Subtype
3391 -- E_String_Literal_Subtype
3392 -- E_Class_Wide_Type
3393 -- E_Class_Wide_Subtype
3394 -- E_Record_Type
3395 -- E_Record_Subtype
3396 -- E_Record_Type_With_Private
3397 -- E_Record_Subtype_With_Private
3398 -- E_Private_Type
3399 -- E_Private_Subtype
3400 -- E_Limited_Private_Type
3401 -- E_Limited_Private_Subtype
3402 -- E_Incomplete_Type
3403 -- E_Task_Type
3404 -- E_Task_Subtype,
3405 -- E_Protected_Type,
3406 E_Protected_Subtype;
3408 subtype Concurrent_Kind is Entity_Kind range
3409 E_Task_Type ..
3410 -- E_Task_Subtype,
3411 -- E_Protected_Type,
3412 E_Protected_Subtype;
3414 subtype Concurrent_Body_Kind is Entity_Kind range
3415 E_Protected_Body ..
3416 E_Task_Body;
3418 subtype Decimal_Fixed_Point_Kind is Entity_Kind range
3419 E_Decimal_Fixed_Point_Type ..
3420 E_Decimal_Fixed_Point_Subtype;
3422 subtype Digits_Kind is Entity_Kind range
3423 E_Decimal_Fixed_Point_Type ..
3424 -- E_Decimal_Fixed_Point_Subtype
3425 -- E_Floating_Point_Type
3426 E_Floating_Point_Subtype;
3428 subtype Discrete_Kind is Entity_Kind range
3429 E_Enumeration_Type ..
3430 -- E_Enumeration_Subtype
3431 -- E_Signed_Integer_Type
3432 -- E_Signed_Integer_Subtype
3433 -- E_Modular_Integer_Type
3434 E_Modular_Integer_Subtype;
3436 subtype Discrete_Or_Fixed_Point_Kind is Entity_Kind range
3437 E_Enumeration_Type ..
3438 -- E_Enumeration_Subtype
3439 -- E_Signed_Integer_Type
3440 -- E_Signed_Integer_Subtype
3441 -- E_Modular_Integer_Type
3442 -- E_Modular_Integer_Subtype
3443 -- E_Ordinary_Fixed_Point_Type
3444 -- E_Ordinary_Fixed_Point_Subtype
3445 -- E_Decimal_Fixed_Point_Type
3446 E_Decimal_Fixed_Point_Subtype;
3448 subtype Elementary_Kind is Entity_Kind range
3449 E_Enumeration_Type ..
3450 -- E_Enumeration_Subtype
3451 -- E_Signed_Integer_Type
3452 -- E_Signed_Integer_Subtype
3453 -- E_Modular_Integer_Type
3454 -- E_Modular_Integer_Subtype
3455 -- E_Ordinary_Fixed_Point_Type
3456 -- E_Ordinary_Fixed_Point_Subtype
3457 -- E_Decimal_Fixed_Point_Type
3458 -- E_Decimal_Fixed_Point_Subtype
3459 -- E_Floating_Point_Type
3460 -- E_Floating_Point_Subtype
3461 -- E_Access_Type
3462 -- E_Access_Subtype
3463 -- E_Access_Attribute_Type
3464 -- E_Allocator_Type
3465 -- E_General_Access_Type
3466 -- E_Access_Subprogram_Type
3467 -- E_Access_Protected_Subprogram_Type
3468 E_Anonymous_Access_Type;
3470 subtype Enumeration_Kind is Entity_Kind range
3471 E_Enumeration_Type ..
3472 E_Enumeration_Subtype;
3474 subtype Entry_Kind is Entity_Kind range
3475 E_Entry ..
3476 E_Entry_Family;
3478 subtype Fixed_Point_Kind is Entity_Kind range
3479 E_Ordinary_Fixed_Point_Type ..
3480 -- E_Ordinary_Fixed_Point_Subtype
3481 -- E_Decimal_Fixed_Point_Type
3482 E_Decimal_Fixed_Point_Subtype;
3484 subtype Float_Kind is Entity_Kind range
3485 E_Floating_Point_Type ..
3486 E_Floating_Point_Subtype;
3488 subtype Formal_Kind is Entity_Kind range
3489 E_In_Parameter ..
3490 -- E_Out_Parameter
3491 E_In_Out_Parameter;
3493 subtype Generic_Unit_Kind is Entity_Kind range
3494 E_Generic_Function ..
3495 -- E_Generic_Package,
3496 E_Generic_Procedure;
3498 subtype Incomplete_Or_Private_Kind is Entity_Kind range
3499 E_Record_Type_With_Private ..
3500 -- E_Record_Subtype_With_Private
3501 -- E_Private_Type
3502 -- E_Private_Subtype
3503 -- E_Limited_Private_Type
3504 -- E_Limited_Private_Subtype
3505 E_Incomplete_Type;
3507 subtype Integer_Kind is Entity_Kind range
3508 E_Signed_Integer_Type ..
3509 -- E_Signed_Integer_Subtype
3510 -- E_Modular_Integer_Type
3511 E_Modular_Integer_Subtype;
3513 subtype Modular_Integer_Kind is Entity_Kind range
3514 E_Modular_Integer_Type ..
3515 E_Modular_Integer_Subtype;
3517 subtype Named_Kind is Entity_Kind range
3518 E_Named_Integer ..
3519 E_Named_Real;
3521 subtype Numeric_Kind is Entity_Kind range
3522 E_Signed_Integer_Type ..
3523 -- E_Signed_Integer_Subtype
3524 -- E_Modular_Integer_Type
3525 -- E_Modular_Integer_Subtype
3526 -- E_Ordinary_Fixed_Point_Type
3527 -- E_Ordinary_Fixed_Point_Subtype
3528 -- E_Decimal_Fixed_Point_Type
3529 -- E_Decimal_Fixed_Point_Subtype
3530 -- E_Floating_Point_Type
3531 E_Floating_Point_Subtype;
3533 subtype Object_Kind is Entity_Kind range
3534 E_Variable ..
3535 -- E_Component
3536 -- E_Constant
3537 -- E_Discriminant
3538 -- E_Loop_Parameter
3539 -- E_In_Parameter
3540 -- E_Out_Parameter
3541 -- E_In_Out_Parameter
3542 -- E_Generic_In_Out_Parameter
3543 E_Generic_In_Parameter;
3545 subtype Ordinary_Fixed_Point_Kind is Entity_Kind range
3546 E_Ordinary_Fixed_Point_Type ..
3547 E_Ordinary_Fixed_Point_Subtype;
3549 subtype Overloadable_Kind is Entity_Kind range
3550 E_Enumeration_Literal ..
3551 -- E_Function
3552 -- E_Operator
3553 -- E_Procedure
3554 E_Entry;
3556 subtype Private_Kind is Entity_Kind range
3557 E_Record_Type_With_Private ..
3558 -- E_Record_Subtype_With_Private
3559 -- E_Private_Type
3560 -- E_Private_Subtype
3561 -- E_Limited_Private_Type
3562 E_Limited_Private_Subtype;
3564 subtype Protected_Kind is Entity_Kind range
3565 E_Protected_Type ..
3566 E_Protected_Subtype;
3568 subtype Real_Kind is Entity_Kind range
3569 E_Ordinary_Fixed_Point_Type ..
3570 -- E_Ordinary_Fixed_Point_Subtype
3571 -- E_Decimal_Fixed_Point_Type
3572 -- E_Decimal_Fixed_Point_Subtype
3573 -- E_Floating_Point_Type
3574 E_Floating_Point_Subtype;
3576 subtype Record_Kind is Entity_Kind range
3577 E_Class_Wide_Type ..
3578 -- E_Class_Wide_Subtype
3579 -- E_Record_Type
3580 -- E_Record_Subtype
3581 -- E_Record_Type_With_Private
3582 E_Record_Subtype_With_Private;
3584 subtype Scalar_Kind is Entity_Kind range
3585 E_Enumeration_Type ..
3586 -- E_Enumeration_Subtype
3587 -- E_Signed_Integer_Type
3588 -- E_Signed_Integer_Subtype
3589 -- E_Modular_Integer_Type
3590 -- E_Modular_Integer_Subtype
3591 -- E_Ordinary_Fixed_Point_Type
3592 -- E_Ordinary_Fixed_Point_Subtype
3593 -- E_Decimal_Fixed_Point_Type
3594 -- E_Decimal_Fixed_Point_Subtype
3595 -- E_Floating_Point_Type
3596 E_Floating_Point_Subtype;
3598 subtype String_Kind is Entity_Kind range
3599 E_String_Type ..
3600 -- E_String_Subtype
3601 E_String_Literal_Subtype;
3603 subtype Subprogram_Kind is Entity_Kind range
3604 E_Function ..
3605 -- E_Operator
3606 E_Procedure;
3608 subtype Signed_Integer_Kind is Entity_Kind range
3609 E_Signed_Integer_Type ..
3610 E_Signed_Integer_Subtype;
3612 subtype Task_Kind is Entity_Kind range
3613 E_Task_Type ..
3614 E_Task_Subtype;
3616 subtype Type_Kind is Entity_Kind range
3617 E_Enumeration_Type ..
3618 -- E_Enumeration_Subtype
3619 -- E_Signed_Integer_Type
3620 -- E_Signed_Integer_Subtype
3621 -- E_Modular_Integer_Type
3622 -- E_Modular_Integer_Subtype
3623 -- E_Ordinary_Fixed_Point_Type
3624 -- E_Ordinary_Fixed_Point_Subtype
3625 -- E_Decimal_Fixed_Point_Type
3626 -- E_Decimal_Fixed_Point_Subtype
3627 -- E_Floating_Point_Type
3628 -- E_Floating_Point_Subtype
3629 -- E_Access_Type
3630 -- E_Access_Subtype
3631 -- E_Access_Attribute_Type
3632 -- E_Allocator_Type,
3633 -- E_General_Access_Type
3634 -- E_Access_Subprogram_Type,
3635 -- E_Access_Protected_Subprogram_Type
3636 -- E_Anonymous_Access_Type
3637 -- E_Array_Type
3638 -- E_Array_Subtype
3639 -- E_String_Type
3640 -- E_String_Subtype
3641 -- E_String_Literal_Subtype
3642 -- E_Class_Wide_Subtype
3643 -- E_Class_Wide_Type
3644 -- E_Record_Type
3645 -- E_Record_Subtype
3646 -- E_Record_Type_With_Private
3647 -- E_Record_Subtype_With_Private
3648 -- E_Private_Type
3649 -- E_Private_Subtype
3650 -- E_Limited_Private_Type
3651 -- E_Limited_Private_Subtype
3652 -- E_Incomplete_Type
3653 -- E_Task_Type
3654 -- E_Task_Subtype
3655 -- E_Protected_Type
3656 -- E_Protected_Subtype
3657 -- E_Exception_Type
3658 E_Subprogram_Type;
3660 --------------------------------------------------------
3661 -- Description of Defined Attributes for Entity_Kinds --
3662 --------------------------------------------------------
3664 -- For each enumeration value defined in Entity_Kind we list all the
3665 -- attributes defined in Einfo which can legally be applied to an entity
3666 -- of that kind. The implementation of the attribute functions (and for
3667 -- non-synthesized attributes, or the corresponding set procedures) are
3668 -- in the Einfo body.
3670 -- The following attributes apply to all entities
3672 -- Ekind (Ekind)
3674 -- Chars (Name1)
3675 -- Next_Entity (Node2)
3676 -- Scope (Node3)
3677 -- Homonym (Node4)
3678 -- Etype (Node5)
3679 -- First_Rep_Item (Node6)
3680 -- Freeze_Node (Node7)
3682 -- Address_Taken (Flag104)
3683 -- Debug_Info_Off (Flag166)
3684 -- Has_Convention_Pragma (Flag119)
3685 -- Has_Delayed_Freeze (Flag18)
3686 -- Has_Fully_Qualified_Name (Flag173)
3687 -- Has_Gigi_Rep_Item (Flag82)
3688 -- Has_Homonym (Flag56)
3689 -- Has_Pragma_Elaborate_Body (Flag150)
3690 -- Has_Pragma_Inline (Flag157)
3691 -- Has_Pragma_Unreferenced (Flag180)
3692 -- Has_Private_Declaration (Flag155)
3693 -- Has_Qualified_Name (Flag161)
3694 -- Has_Unknown_Discriminants (Flag72)
3695 -- Is_Bit_Packed_Array (Flag122) (base type only)
3696 -- Is_Child_Unit (Flag73)
3697 -- Is_Compilation_Unit (Flag149)
3698 -- Is_Completely_Hidden (Flag103)
3699 -- Is_Discrim_SO_Function (Flag176)
3700 -- Is_Dispatching_Operation (Flag6)
3701 -- Is_Exported (Flag99)
3702 -- Is_First_Subtype (Flag70)
3703 -- Is_Formal_Subprogram (Flag111)
3704 -- Is_Generic_Instance (Flag130)
3705 -- Is_Hidden (Flag57)
3706 -- Is_Hidden_Open_Scope (Flag171)
3707 -- Is_Immediately_Visible (Flag7)
3708 -- Is_Imported (Flag24)
3709 -- Is_Inlined (Flag11)
3710 -- Is_Internal (Flag17)
3711 -- Is_Itype (Flag91)
3712 -- Is_Known_Valid (Flag170)
3713 -- Is_Limited_Composite (Flag106)
3714 -- Is_Limited_Record (Flag25)
3715 -- Is_Package_Body_Entity (Flag160)
3716 -- Is_Packed_Array_Type (Flag138)
3717 -- Is_Potentially_Use_Visible (Flag9)
3718 -- Is_Preelaborated (Flag59)
3719 -- Is_Public (Flag10)
3720 -- Is_Pure (Flag44)
3721 -- Is_Remote_Call_Interface (Flag62)
3722 -- Is_Remote_Types (Flag61)
3723 -- Is_Shared_Passive (Flag60)
3724 -- Is_Statically_Allocated (Flag28)
3725 -- Is_Unchecked_Union (Flag117)
3726 -- Is_VMS_Exception (Flag133)
3727 -- Materialize_Entity (Flag168)
3728 -- Needs_Debug_Info (Flag147)
3729 -- Referenced (Flag156)
3730 -- Suppress_Access_Checks (Flag31)
3731 -- Suppress_Accessibility_Checks (Flag32)
3732 -- Suppress_Discriminant_Checks (Flag33)
3733 -- Suppress_Division_Checks (Flag34)
3734 -- Suppress_Elaboration_Checks (Flag35)
3735 -- Suppress_Elaboration_Warnings (Flag148)
3736 -- Suppress_Index_Checks (Flag36)
3737 -- Suppress_Length_Checks (Flag37)
3738 -- Suppress_Overflow_Checks (Flag38)
3739 -- Suppress_Range_Checks (Flag39)
3740 -- Suppress_Storage_Checks (Flag40)
3741 -- Suppress_Style_Checks (Flag165)
3742 -- Suppress_Tag_Checks (Flag41)
3744 -- Declaration_Node (synth)
3745 -- Enclosing_Dynamic_Scope (synth)
3746 -- Has_Foreign_Convention (synth)
3747 -- Is_Dynamic_Scope (synth)
3748 -- Is_Generic_Unit (synth)
3749 -- Is_Limited_Type (synth)
3750 -- Underlying_Type (synth)
3751 -- all classification attributes (synth)
3753 -- The following list of access functions applies to all entities for
3754 -- types and subtypes. References to this list appear subsequently as
3755 -- as "(plus type attributes)" for each appropriate Entity_Kind.
3757 -- Associated_Node_For_Itype (Node8)
3758 -- Class_Wide_Type (Node9)
3759 -- Referenced_Object (Node10)
3760 -- Full_View (Node11)
3761 -- Esize (Uint12)
3762 -- RM_Size (Uint13)
3763 -- Alignment (Uint14)
3765 -- Depends_On_Private (Flag14)
3766 -- Discard_Names (Flag88)
3767 -- Finalize_Storage_Only (Flag158) (base type only)
3768 -- From_With_Type (Flag159)
3769 -- Has_Aliased_Components (Flag135) (base type only)
3770 -- Has_Alignment_Clause (Flag46)
3771 -- Has_Atomic_Components (Flag86) (base type only)
3772 -- Has_Complex_Representation (Flag140) (base type only)
3773 -- Has_Discriminants (Flag5)
3774 -- Has_Non_Standard_Rep (Flag75) (base type only)
3775 -- Has_Object_Size_Clause (Flag172)
3776 -- Has_Primitive_Operations (Flag120) (base type only)
3777 -- Has_Size_Clause (Flag29)
3778 -- Has_Specified_Layout (Flag100) (base type only)
3779 -- Has_Task (Flag30) (base type only)
3780 -- Has_Unchecked_Union (Flag123) (base type only)
3781 -- Has_Volatile_Components (Flag87) (base type only)
3782 -- In_Use (Flag8)
3783 -- Is_Abstract (Flag19)
3784 -- Is_Asynchronous (Flag81)
3785 -- Is_Atomic (Flag85)
3786 -- Is_Constr_Subt_For_U_Nominal (Flag80)
3787 -- Is_Constr_Subt_For_UN_Aliased (Flag141)
3788 -- Is_Controlled (Flag42) (base type only)
3789 -- Is_Eliminated (Flag124)
3790 -- Is_Frozen (Flag4)
3791 -- Is_Generic_Actual_Type (Flag94)
3792 -- Is_Generic_Type (Flag13)
3793 -- Is_Non_Static_Subtype (Flag109)
3794 -- Is_Packed (Flag51) (base type only)
3795 -- Is_Private_Composite (Flag107)
3796 -- Is_Renaming_Of_Object (Flag112)
3797 -- Is_Tagged_Type (Flag55)
3798 -- Is_Unsigned_Type (Flag144)
3799 -- Is_Volatile (Flag16)
3800 -- Size_Depends_On_Discriminant (Flag177)
3801 -- Size_Known_At_Compile_Time (Flag92)
3802 -- Strict_Alignment (Flag145) (base type only)
3803 -- Suppress_Init_Proc (Flag105) (base type only)
3805 -- Alignment_Clause (synth)
3806 -- Ancestor_Subtype (synth)
3807 -- Base_Type (synth)
3808 -- First_Subtype (synth)
3809 -- Has_Private_Ancestor (synth)
3810 -- Implementation_Base_Type (synth)
3811 -- Is_By_Copy_Type (synth)
3812 -- Is_By_Reference_Type (synth)
3813 -- Is_Return_By_Reference_Type (synth)
3814 -- Root_Type (synth)
3815 -- Size_Clause (synth)
3817 ------------------------------------------
3818 -- Applicable attributes by entity kind --
3819 ------------------------------------------
3821 -- E_Access_Protected_Subprogram_Type
3822 -- Equivalent_Type (Node18)
3823 -- Directly_Designated_Type (Node20)
3824 -- Needs_No_Actuals (Flag22)
3825 -- (plus type attributes)
3827 -- E_Access_Subprogram_Type
3828 -- Equivalent_Type (Node18) (remote types only)
3829 -- Directly_Designated_Type (Node20)
3830 -- Needs_No_Actuals (Flag22)
3831 -- (plus type attributes)
3833 -- E_Access_Type
3834 -- E_Access_Subtype
3835 -- Storage_Size_Variable (Node15) (base type only)
3836 -- Master_Id (Node17)
3837 -- Directly_Designated_Type (Node20)
3838 -- Associated_Storage_Pool (Node22) (base type only)
3839 -- Associated_Final_Chain (Node23)
3840 -- Has_Pragma_Controlled (Flag27) (base type only)
3841 -- Has_Storage_Size_Clause (Flag23) (base type only)
3842 -- Is_Access_Constant (Flag69)
3843 -- No_Pool_Assigned (Flag131) (base type only)
3844 -- (plus type attributes)
3846 -- E_Access_Attribute_Type
3847 -- Directly_Designated_Type (Node20)
3848 -- (plus type attributes)
3850 -- E_Allocator_Type
3851 -- Directly_Designated_Type (Node20)
3852 -- (plus type attributes)
3854 -- E_Anonymous_Access_Type
3855 -- Storage_Size_Variable (Node15) ??? is this needed ???
3856 -- Directly_Designated_Type (Node20)
3857 -- (plus type attributes)
3859 -- E_Array_Type
3860 -- E_Array_Subtype
3861 -- First_Index (Node17)
3862 -- Related_Array_Object (Node19)
3863 -- Component_Type (Node20) (base type only)
3864 -- Original_Array_Type (Node21)
3865 -- Component_Size (Uint22) (base type only)
3866 -- Packed_Array_Type (Node23)
3867 -- Component_Alignment (special) (base type only)
3868 -- Has_Component_Size_Clause (Flag68) (base type only)
3869 -- Has_Controlled_Component (Flag43) (base type only)
3870 -- Has_Pragma_Pack (Flag121) (base type only)
3871 -- Is_Aliased (Flag15)
3872 -- Is_Constrained (Flag12)
3873 -- Next_Index (synth)
3874 -- Number_Dimensions (synth)
3875 -- (plus type attributes)
3877 -- E_Block
3878 -- Block_Node (Node11)
3879 -- First_Entity (Node17)
3880 -- Last_Entity (Node20)
3881 -- Delay_Cleanups (Flag114)
3882 -- Discard_Names (Flag88)
3883 -- Finalization_Chain_Entity (Node19)
3884 -- Scope_Depth_Value (Uint22)
3885 -- Scope_Depth (synth)
3886 -- Entry_Cancel_Parameter (Node23)
3887 -- Has_Master_Entity (Flag21)
3888 -- Has_Nested_Block_With_Handler (Flag101)
3889 -- Sec_Stack_Needed_For_Return (Flag167)
3890 -- Uses_Sec_Stack (Flag95)
3892 -- E_Class_Wide_Type
3893 -- E_Class_Wide_Subtype
3894 -- Cloned_Subtype (Node16) (subtype case only)
3895 -- First_Entity (Node17)
3896 -- Equivalent_Type (Node18) (always Empty in type case)
3897 -- Last_Entity (Node20)
3898 -- Has_Controlled_Component (Flag43) (base type only)
3899 -- First_Component (synth)
3900 -- (plus type attributes)
3902 -- E_Component
3903 -- Normalized_First_Bit (Uint8)
3904 -- Normalized_Position (Uint9)
3905 -- Normalized_Position_Max (Uint10)
3906 -- Component_Bit_Offset (Uint11)
3907 -- Esize (Uint12)
3908 -- Component_Clause (Node13)
3909 -- DT_Entry_Count (Uint15)
3910 -- Entry_Formal (Node16)
3911 -- Prival (Node17)
3912 -- Renamed_Object (Node18) (always Empty)
3913 -- Discriminant_Checking_Func (Node20)
3914 -- Interface_Name (Node21) (JGNAT usage only)
3915 -- Original_Record_Component (Node22)
3916 -- Protected_Operation (Node23)
3917 -- Has_Biased_Representation (Flag139)
3918 -- Has_Per_Object_Constraint (Flag154)
3919 -- Is_Atomic (Flag85)
3920 -- Is_Tag (Flag78)
3921 -- Is_Volatile (Flag16)
3922 -- Next_Component (synth)
3923 -- Is_Protected_Private (synth)
3925 -- E_Constant
3926 -- E_Loop_Parameter
3927 -- Size_Check_Code (Node9)
3928 -- Discriminal_Link (Node10) (discriminals only)
3929 -- Full_View (Node11)
3930 -- Esize (Uint12)
3931 -- Alignment (Uint14)
3932 -- Actual_Subtype (Node17)
3933 -- Renamed_Object (Node18)
3934 -- Interface_Name (Node21)
3935 -- Has_Alignment_Clause (Flag46)
3936 -- Has_Atomic_Components (Flag86)
3937 -- Has_Biased_Representation (Flag139)
3938 -- Has_Size_Clause (Flag29)
3939 -- Has_Volatile_Components (Flag87)
3940 -- Is_Atomic (Flag85)
3941 -- Is_Eliminated (Flag124)
3942 -- Is_Psected (Flag153)
3943 -- Is_True_Constant (Flag163)
3944 -- Is_Volatile (Flag16)
3945 -- Not_Source_Assigned (Flag115)
3946 -- Address_Clause (synth)
3947 -- Alignment_Clause (synth)
3948 -- Constant_Value (synth)
3949 -- Size_Clause (synth)
3951 -- E_Decimal_Fixed_Point_Type
3952 -- E_Decimal_Fixed_Subtype
3953 -- Scale_Value (Uint15)
3954 -- Digits_Value (Uint17)
3955 -- Scalar_Range (Node20)
3956 -- Delta_Value (Ureal18)
3957 -- Small_Value (Ureal21)
3958 -- Has_Machine_Radix_Clause (Flag83)
3959 -- Machine_Radix_10 (Flag84)
3960 -- Type_Low_Bound (synth)
3961 -- Type_High_Bound (synth)
3962 -- (plus type attributes)
3964 -- E_Discriminant
3965 -- Normalized_First_Bit (Uint8)
3966 -- Normalized_Position (Uint9)
3967 -- Normalized_Position_Max (Uint10)
3968 -- Component_Bit_Offset (Uint11)
3969 -- Esize (Uint12)
3970 -- Component_Clause (Node13)
3971 -- Discriminant_Number (Uint15)
3972 -- Discriminal (Node17)
3973 -- Renamed_Object (Node18) (always Empty)
3974 -- Corresponding_Discriminant (Node19)
3975 -- Discriminant_Default_Value (Node20)
3976 -- Interface_Name (Node21) (JGNAT usage only)
3977 -- Original_Record_Component (Node22)
3978 -- CR_Discriminant (Node23)
3979 -- Next_Discriminant (synth)
3980 -- Next_Girder_Discriminant (synth)
3982 -- E_Entry
3983 -- E_Entry_Family
3984 -- Protected_Body_Subprogram (Node11)
3985 -- Barrier_Function (Node12)
3986 -- Entry_Parameters_Type (Node15)
3987 -- First_Entity (Node17)
3988 -- Alias (Node18) (Entry only. Always empty)
3989 -- Finalization_Chain_Entity (Node19)
3990 -- Last_Entity (Node20)
3991 -- Accept_Address (Elist21)
3992 -- Scope_Depth_Value (Uint22)
3993 -- Scope_Depth (synth)
3994 -- Privals_Chain (Elist23) (for a protected entry)
3995 -- Default_Expressions_Processed (Flag108)
3996 -- Entry_Accepted (Flag152)
3997 -- Is_AST_Entry (Flag132) (for entry only)
3998 -- Needs_No_Actuals (Flag22)
3999 -- Sec_Stack_Needed_For_Return (Flag167)
4000 -- Uses_Sec_Stack (Flag95)
4001 -- Address_Clause (synth)
4002 -- First_Formal (synth)
4003 -- Entry_Index_Type (synth)
4004 -- Number_Formals (synth)
4006 -- E_Entry_Index_Parameter
4007 -- Entry_Index_Constant (Node18)
4009 -- E_Enumeration_Literal
4010 -- Enumeration_Pos (Uint11)
4011 -- Enumeration_Rep (Uint12)
4012 -- Debug_Renaming_Link (Node13)
4013 -- Alias (Node18)
4014 -- Enumeration_Rep_Expr (Node22)
4015 -- Next_Literal (synth)
4017 -- E_Enumeration_Type
4018 -- E_Enumeration_Subtype
4019 -- Lit_Indexes (Node15) (root type only)
4020 -- Lit_Strings (Node16) (root type only)
4021 -- First_Literal (Node17)
4022 -- Scalar_Range (Node20)
4023 -- Enum_Pos_To_Rep (Node23) (type only, not subtype)
4024 -- Has_Biased_Representation (Flag139)
4025 -- Has_Enumeration_Rep_Clause (Flag66)
4026 -- Nonzero_Is_True (Flag162) (base type only)
4027 -- Type_Low_Bound (synth)
4028 -- Type_High_Bound (synth)
4029 -- (plus type attributes)
4031 -- E_Exception
4032 -- Renamed_Entity (Node18)
4033 -- Register_Exception_Call (Node20)
4034 -- Interface_Name (Node21)
4035 -- Exception_Code (Uint22)
4036 -- Discard_Names (Flag88)
4037 -- Is_VMS_Exception (Flag133)
4039 -- E_Exception_Type
4040 -- Equivalent_Type (Node18)
4041 -- (plus type attributes)
4043 -- E_Floating_Point_Type
4044 -- E_Floating_Point_Subtype
4045 -- Digits_Value (Uint17)
4046 -- Type_Low_Bound (synth)
4047 -- Scalar_Range (Node20)
4048 -- Type_High_Bound (synth)
4049 -- (plus type attributes)
4051 -- E_Function
4052 -- E_Generic_Function
4053 -- Mechanism (Uint8) (returns Mechanism_Type)
4054 -- Renaming_Map (Uint9)
4055 -- Handler_Records (List10) (non-generic case only)
4056 -- Protected_Body_Subprogram (Node11)
4057 -- Next_Inlined_Subprogram (Node12)
4058 -- Corresponding_Equality (Node13) (implicit /= only)
4059 -- Elaboration_Entity (Node13) (all other cases)
4060 -- First_Optional_Parameter (Node14) (non-generic case only)
4061 -- DT_Position (Uint15)
4062 -- DTC_Entity (Node16)
4063 -- First_Entity (Node17)
4064 -- Alias (Node18) (non-generic case only)
4065 -- Renamed_Entity (Node18) (generic case only)
4066 -- Finalization_Chain_Entity (Node19)
4067 -- Last_Entity (Node20)
4068 -- Interface_Name (Node21)
4069 -- Scope_Depth_Value (Uint22)
4070 -- Scope_Depth (synth)
4071 -- Generic_Renamings (Elist23) (for an instance)
4072 -- Inner_Instances (Elist23) (for a generic function)
4073 -- Privals_Chain (Elist23) (for a protected function)
4074 -- Elaboration_Entity_Required (Flag174)
4075 -- Function_Returns_With_DSP (Flag169)
4076 -- Default_Expressions_Processed (Flag108)
4077 -- Delay_Cleanups (Flag114)
4078 -- Delay_Subprogram_Descriptors (Flag50)
4079 -- Discard_Names (Flag88)
4080 -- Elaborate_All_Desirable (Flag146)
4081 -- Has_Completion (Flag26)
4082 -- Has_Controlling_Result (Flag98)
4083 -- Has_Master_Entity (Flag21)
4084 -- Has_Missing_Return (Flag142)
4085 -- Has_Nested_Block_With_Handler (Flag101)
4086 -- Has_Pragma_Pure_Function (Flag179) (non-generic case only)
4087 -- Has_Recursive_Call (Flag143)
4088 -- Has_Subprogram_Descriptor (Flag93)
4089 -- Is_Abstract (Flag19)
4090 -- Is_Called (Flag102) (non-generic case only)
4091 -- Is_Constructor (Flag76)
4092 -- Is_Destructor (Flag77)
4093 -- Is_Discrim_SO_Function (Flag176)
4094 -- Is_Eliminated (Flag124)
4095 -- Is_Instantiated (Flag126) (generic case only)
4096 -- Is_Intrinsic_Subprogram (Flag64)
4097 -- Is_Machine_Code_Subprogram (Flag137) (non-generic case only)
4098 -- Is_Private_Descendant (Flag53)
4099 -- Is_Pure (Flag44)
4100 -- Is_Visible_Child_Unit (Flag116)
4101 -- Needs_No_Actuals (Flag22)
4102 -- Return_Present (Flag54)
4103 -- Returns_By_Ref (Flag90)
4104 -- Sec_Stack_Needed_For_Return (Flag167)
4105 -- Uses_Sec_Stack (Flag95)
4106 -- Address_Clause (synth)
4107 -- First_Formal (synth)
4108 -- Number_Formals (synth)
4110 -- E_General_Access_Type
4111 -- Storage_Size_Variable (Node15) (base type only)
4112 -- Master_Id (Node17)
4113 -- Directly_Designated_Type (Node20)
4114 -- Associated_Storage_Pool (Node22) (base type only)
4115 -- Associated_Final_Chain (Node23)
4116 -- (plus type attributes)
4118 -- E_Generic_In_Parameter
4119 -- E_Generic_In_Out_Parameter
4120 -- Entry_Component (Node11)
4121 -- Actual_Subtype (Node17)
4122 -- Renamed_Object (Node18) (always Empty)
4123 -- Default_Value (Node20)
4124 -- Protected_Formal (Node22)
4125 -- Is_Controlling_Formal (Flag97)
4126 -- Is_Entry_Formal (Flag52)
4127 -- Parameter_Mode (synth)
4129 -- E_Incomplete_Type
4130 -- Private_Dependents (Elist18)
4131 -- Discriminant_Constraint (Elist21)
4132 -- Girder_Constraint (Elist23)
4133 -- First_Discriminant (synth)
4134 -- First_Girder_Discriminant (synth)
4135 -- (plus type attributes)
4137 -- E_In_Parameter
4138 -- E_In_Out_Parameter
4139 -- E_Out_Parameter
4140 -- Mechanism (Uint8) (returns Mechanism_Type)
4141 -- Discriminal_Link (Node10) (discriminals only)
4142 -- Entry_Component (Node11)
4143 -- Esize (Uint12)
4144 -- Extra_Accessibility (Node13)
4145 -- Alignment (Uint14)
4146 -- Extra_Formal (Node15)
4147 -- Unset_Reference (Node16)
4148 -- Actual_Subtype (Node17)
4149 -- Renamed_Object (Node18)
4150 -- Spec_Entity (Node19)
4151 -- Default_Value (Node20)
4152 -- Default_Expr_Function (Node21)
4153 -- Protected_Formal (Node22)
4154 -- Extra_Constrained (Node23)
4155 -- Is_Controlling_Formal (Flag97)
4156 -- Is_Entry_Formal (Flag52)
4157 -- Is_Optional_Parameter (Flag134)
4158 -- Not_Source_Assigned (Flag115)
4159 -- Parameter_Mode (synth)
4161 -- E_Label
4162 -- Enclosing_Scope (Node18)
4163 -- Reachable (Flag49)
4165 -- E_Limited_Private_Type
4166 -- E_Limited_Private_Subtype
4167 -- First_Entity (Node17)
4168 -- Private_Dependents (Elist18)
4169 -- Underlying_Full_View (Node19)
4170 -- Last_Entity (Node20)
4171 -- Discriminant_Constraint (Elist21)
4172 -- Private_View (Node22)
4173 -- Girder_Constraint (Elist23)
4174 -- Has_Completion (Flag26)
4175 -- Has_Completion_In_Body (Flag71)
4176 -- First_Discriminant (synth)
4177 -- First_Girder_Discriminant (synth)
4178 -- (plus type attributes)
4180 -- E_Loop
4181 -- Has_Exit (Flag47)
4182 -- Has_Master_Entity (Flag21)
4183 -- Has_Nested_Block_With_Handler (Flag101)
4185 -- E_Modular_Integer_Type
4186 -- E_Modular_Integer_Subtype
4187 -- Modulus (Uint17) (base type only)
4188 -- Original_Array_Type (Node21)
4189 -- Scalar_Range (Node20)
4190 -- Non_Binary_Modulus (Flag58) (base type only)
4191 -- Has_Biased_Representation (Flag139)
4192 -- Type_Low_Bound (synth)
4193 -- Type_High_Bound (synth)
4194 -- (plus type attributes)
4196 -- E_Named_Integer
4197 -- Constant_Value (synth)
4199 -- E_Named_Real
4200 -- Constant_Value (synth)
4202 -- E_Operator
4203 -- First_Entity (Node17)
4204 -- Alias (Node18)
4205 -- Last_Entity (Node20)
4206 -- Is_Machine_Code_Subprogram (Flag137)
4207 -- Is_Pure (Flag44)
4208 -- Is_Intrinsic_Subprogram (Flag64)
4209 -- Default_Expressions_Processed (Flag108)
4210 -- Has_Pragma_Pure_Function (Flag179)
4212 -- E_Ordinary_Fixed_Point_Type
4213 -- E_Ordinary_Fixed_Point_Subtype
4214 -- Delta_Value (Ureal18)
4215 -- Scalar_Range (Node20)
4216 -- Small_Value (Ureal21)
4217 -- Has_Small_Clause (Flag67)
4218 -- Type_Low_Bound (synth)
4219 -- Type_High_Bound (synth)
4220 -- (plus type attributes)
4222 -- E_Package
4223 -- E_Generic_Package
4224 -- Dependent_Instances (Elist8) (for an instance)
4225 -- Renaming_Map (Uint9)
4226 -- Handler_Records (List10) (non-generic case only)
4227 -- Associated_Formal_Package (Node12)
4228 -- Elaboration_Entity (Node13)
4229 -- Shadow_Entities (List14)
4230 -- Related_Instance (Node15) (non-generic case only)
4231 -- First_Private_Entity (Node16)
4232 -- First_Entity (Node17)
4233 -- Renamed_Entity (Node18)
4234 -- Body_Entity (Node19)
4235 -- Last_Entity (Node20)
4236 -- Interface_Name (Node21)
4237 -- Scope_Depth_Value (Uint22)
4238 -- Scope_Depth (synth)
4239 -- Generic_Renamings (Elist23) (for an instance)
4240 -- Inner_Instances (Elist23) (generic case only)
4241 -- Delay_Subprogram_Descriptors (Flag50)
4242 -- Discard_Names (Flag88)
4243 -- Elaborate_All_Desirable (Flag146)
4244 -- Elaboration_Entity_Required (Flag174)
4245 -- From_With_Type (Flag159)
4246 -- Has_All_Calls_Remote (Flag79)
4247 -- Has_Completion (Flag26)
4248 -- Has_Forward_Instantiation (Flag175)
4249 -- Has_Master_Entity (Flag21)
4250 -- Has_Subprogram_Descriptor (Flag93)
4251 -- In_Package_Body (Flag48)
4252 -- In_Private_Part (Flag45)
4253 -- In_Use (Flag8)
4254 -- Is_Instantiated (Flag126)
4255 -- Is_Private_Descendant (Flag53)
4256 -- Is_Visible_Child_Unit (Flag116)
4257 -- Is_Wrapper_Package (synth) (non-generic case only)
4259 -- E_Package_Body
4260 -- Handler_Records (List10) (non-generic case only)
4261 -- First_Entity (Node17)
4262 -- Spec_Entity (Node19)
4263 -- Last_Entity (Node20)
4264 -- Scope_Depth_Value (Uint22)
4265 -- Scope_Depth (synth)
4266 -- Delay_Subprogram_Descriptors (Flag50)
4267 -- Has_Subprogram_Descriptor (Flag93)
4269 -- E_Private_Type
4270 -- E_Private_Subtype
4271 -- Primitive_Operations (Elist15)
4272 -- First_Entity (Node17)
4273 -- Private_Dependents (Elist18)
4274 -- Underlying_Full_View (Node19)
4275 -- Last_Entity (Node20)
4276 -- Discriminant_Constraint (Elist21)
4277 -- Private_View (Node22)
4278 -- Girder_Constraint (Elist23)
4279 -- Has_Completion (Flag26)
4280 -- Has_Completion_In_Body (Flag71)
4281 -- Is_Controlled (Flag42) (base type only)
4282 -- Is_For_Access_Subtype (Flag118) (subtype only)
4283 -- First_Discriminant (synth)
4284 -- First_Girder_Discriminant (synth)
4285 -- (plus type attributes)
4287 -- E_Procedure
4288 -- E_Generic_Procedure
4289 -- Renaming_Map (Uint9)
4290 -- Handler_Records (List10) (non-generic case only)
4291 -- Protected_Body_Subprogram (Node11)
4292 -- Next_Inlined_Subprogram (Node12)
4293 -- Elaboration_Entity (Node13)
4294 -- First_Optional_Parameter (Node14) (non-generic case only)
4295 -- DT_Position (Uint15)
4296 -- DTC_Entity (Node16)
4297 -- First_Entity (Node17)
4298 -- Alias (Node18) (non-generic case only)
4299 -- Renamed_Entity (Node18) (generic case only)
4300 -- Finalization_Chain_Entity (Node19)
4301 -- Last_Entity (Node20)
4302 -- Interface_Name (Node21)
4303 -- Scope_Depth_Value (Uint22)
4304 -- Scope_Depth (synth)
4305 -- Generic_Renamings (Elist23) (for an instance)
4306 -- Inner_Instances (Elist23) (for a generic procedure)
4307 -- Privals_Chain (Elist23) (for a protected procedure)
4308 -- Elaboration_Entity_Required (Flag174)
4309 -- Function_Returns_With_DSP (Flag169) (always False for procedure)
4310 -- Default_Expressions_Processed (Flag108)
4311 -- Delay_Cleanups (Flag114)
4312 -- Delay_Subprogram_Descriptors (Flag50)
4313 -- Discard_Names (Flag88)
4314 -- Elaborate_All_Desirable (Flag146)
4315 -- Has_Completion (Flag26)
4316 -- Has_Master_Entity (Flag21)
4317 -- Has_Nested_Block_With_Handler (Flag101)
4318 -- Has_Pragma_Pure_Function (Flag179) (non-generic case only)
4319 -- Has_Subprogram_Descriptor (Flag93)
4320 -- Is_Visible_Child_Unit (Flag116)
4321 -- Is_Abstract (Flag19)
4322 -- Is_Asynchronous (Flag81)
4323 -- Is_Called (Flag102) (non-generic subprogram)
4324 -- Is_Constructor (Flag76)
4325 -- Is_Destructor (Flag77)
4326 -- Is_Eliminated (Flag124)
4327 -- Is_Instantiated (Flag126) (generic case only)
4328 -- Is_Interrupt_Handler (Flag89)
4329 -- Is_Intrinsic_Subprogram (Flag64)
4330 -- Is_Machine_Code_Subprogram (Flag137) (non-generic case only)
4331 -- Is_Null_Init_Proc (Flag178)
4332 -- Is_Private_Descendant (Flag53)
4333 -- Is_Pure (Flag44)
4334 -- Is_Valued_Procedure (Flag127)
4335 -- Is_Visible_Child_Unit (Flag116)
4336 -- Needs_No_Actuals (Flag22)
4337 -- No_Return (Flag113)
4338 -- Sec_Stack_Needed_For_Return (Flag167)
4339 -- Address_Clause (synth)
4340 -- First_Formal (synth)
4341 -- Number_Formals (synth)
4343 -- E_Protected_Body
4344 -- Object_Ref (Node17)
4345 -- (any others??? First/Last Entity, Scope_Depth???)
4347 -- E_Protected_Object
4349 -- E_Protected_Type
4350 -- E_Protected_Subtype
4351 -- Entry_Bodies_Array (Node15)
4352 -- First_Private_Entity (Node16)
4353 -- First_Entity (Node17)
4354 -- Corresponding_Record_Type (Node18)
4355 -- Finalization_Chain_Entity (Node19)
4356 -- Last_Entity (Node20)
4357 -- Discriminant_Constraint (Elist21)
4358 -- Scope_Depth_Value (Uint22)
4359 -- Scope_Depth (synth)
4360 -- Girder_Constraint (Elist23)
4361 -- Has_Controlled_Component (Flag43) (base type only)
4362 -- Has_Interrupt_Handler (synth)
4363 -- Sec_Stack_Needed_For_Return (Flag167) ???
4364 -- Uses_Sec_Stack (Flag95) ???
4365 -- Has_Entries (synth)
4366 -- Number_Entries (synth)
4368 -- E_Record_Type
4369 -- E_Record_Subtype
4370 -- Primitive_Operations (Elist15)
4371 -- Access_Disp_Table (Node16) (base type only)
4372 -- Cloned_Subtype (Node16) (subtype case only)
4373 -- First_Entity (Node17)
4374 -- Corresponding_Concurrent_Type (Node18)
4375 -- Parent_Subtype (Node19)
4376 -- Last_Entity (Node20)
4377 -- Discriminant_Constraint (Elist21)
4378 -- Corresponding_Remote_Type (Node22)
4379 -- Girder_Constraint (Elist23)
4380 -- Component_Alignment (special) (base type only)
4381 -- C_Pass_By_Copy (Flag125) (base type only)
4382 -- Has_Controlled_Component (Flag43) (base type only)
4383 -- Has_External_Tag_Rep_Clause (Flag110)
4384 -- Has_Record_Rep_Clause (Flag65) (base type only)
4385 -- Is_Concurrent_Record_Type (Flag20)
4386 -- Is_Constrained (Flag12)
4387 -- Is_Controlled (Flag42) (base type only)
4388 -- Reverse_Bit_Order (Flag164) (base type only)
4389 -- First_Component (synth)
4390 -- First_Discriminant (synth)
4391 -- First_Girder_Discriminant (synth)
4392 -- Tag_Component (synth)
4393 -- (plus type attributes)
4395 -- E_Record_Type_With_Private
4396 -- E_Record_Subtype_With_Private
4397 -- Primitive_Operations (Elist15)
4398 -- Access_Disp_Table (Node16) (base type only)
4399 -- First_Entity (Node17)
4400 -- Private_Dependents (Elist18)
4401 -- Underlying_Full_View (Node19)
4402 -- Last_Entity (Node20)
4403 -- Discriminant_Constraint (Elist21)
4404 -- Private_View (Node22)
4405 -- Girder_Constraint (Elist23)
4406 -- Has_Completion (Flag26)
4407 -- Has_Completion_In_Body (Flag71)
4408 -- Has_Controlled_Component (Flag43) (base type only)
4409 -- Has_Record_Rep_Clause (Flag65) (base type only)
4410 -- Has_External_Tag_Rep_Clause (Flag110)
4411 -- Is_Concurrent_Record_Type (Flag20)
4412 -- Is_Constrained (Flag12)
4413 -- Is_Controlled (Flag42) (base type only)
4414 -- Reverse_Bit_Order (Flag164) (base type only)
4415 -- First_Component (synth)
4416 -- First_Discriminant (synth)
4417 -- First_Girder_Discriminant (synth)
4418 -- Tag_Component (synth)
4419 -- (plus type attributes)
4421 -- E_Signed_Integer_Type
4422 -- E_Signed_Integer_Subtype
4423 -- Scalar_Range (Node20)
4424 -- Has_Biased_Representation (Flag139)
4425 -- Type_Low_Bound (synth)
4426 -- Type_High_Bound (synth)
4427 -- (plus type attributes)
4429 -- E_String_Type
4430 -- E_String_Subtype
4431 -- First_Index (Node17)
4432 -- Component_Type (Node20) (base type only)
4433 -- Is_Constrained (Flag12)
4434 -- Next_Index (synth)
4435 -- Number_Dimensions (synth)
4436 -- (plus type attributes)
4438 -- E_String_Literal_Subtype
4439 -- String_Literal_Low_Bound (Node15)
4440 -- String_Literal_Length (Uint16)
4441 -- First_Index (Node17) (always Empty)
4442 -- Packed_Array_Type (Node23)
4443 -- (plus type attributes)
4445 -- E_Subprogram_Body
4446 -- Mechanism (Uint8)
4447 -- First_Entity (Node17)
4448 -- Last_Entity (Node20)
4449 -- Scope_Depth_Value (Uint22)
4450 -- Scope_Depth (synth)
4452 -- E_Subprogram_Type
4453 -- Directly_Designated_Type (Node20)
4454 -- First_Formal (synth)
4455 -- Number_Formals (synth)
4456 -- Function_Returns_With_DSP (Flag169)
4457 -- (plus type attributes)
4459 -- E_Task_Body
4460 -- (any others??? First/Last Entity, Scope_Depth???)
4462 -- E_Task_Type
4463 -- E_Task_Subtype
4464 -- Storage_Size_Variable (Node15) (base type only)
4465 -- First_Private_Entity (Node16)
4466 -- First_Entity (Node17)
4467 -- Corresponding_Record_Type (Node18)
4468 -- Finalization_Chain_Entity (Node19)
4469 -- Last_Entity (Node20)
4470 -- Discriminant_Constraint (Elist21)
4471 -- Scope_Depth_Value (Uint22)
4472 -- Scope_Depth (synth)
4473 -- Girder_Constraint (Elist23)
4474 -- Delay_Cleanups (Flag114)
4475 -- Has_Master_Entity (Flag21)
4476 -- Has_Storage_Size_Clause (Flag23) (base type only)
4477 -- Uses_Sec_Stack (Flag95) ???
4478 -- Sec_Stack_Needed_For_Return (Flag167) ???
4479 -- Has_Entries (synth)
4480 -- Number_Entries (synth)
4481 -- (plus type attributes)
4483 -- E_Variable
4484 -- Hiding_Loop_Variable (Node8)
4485 -- Size_Check_Code (Node9)
4486 -- Esize (Uint12)
4487 -- Extra_Accessibility (Node13)
4488 -- Alignment (Uint14)
4489 -- Shared_Var_Read_Proc (Node15)
4490 -- Unset_Reference (Node16)
4491 -- Actual_Subtype (Node17)
4492 -- Renamed_Object (Node18)
4493 -- Interface_Name (Node21)
4494 -- Shared_Var_Assign_Proc (Node22)
4495 -- Extra_Constrained (Node23)
4496 -- Has_Alignment_Clause (Flag46)
4497 -- Has_Atomic_Components (Flag86)
4498 -- Has_Biased_Representation (Flag139)
4499 -- Has_Size_Clause (Flag29)
4500 -- Has_Volatile_Components (Flag87)
4501 -- Is_Atomic (Flag85)
4502 -- Is_Eliminated (Flag124)
4503 -- Is_Psected (Flag153)
4504 -- Is_Shared_Passive (Flag60)
4505 -- Is_True_Constant (Flag163)
4506 -- Is_Volatile (Flag16)
4507 -- Not_Source_Assigned (Flag115)
4508 -- Address_Clause (synth)
4509 -- Alignment_Clause (synth)
4510 -- Size_Clause (synth)
4512 -- E_Void
4513 -- Since E_Void is the initial Ekind value of an entity when it is first
4514 -- created, one might expect that no attributes would be defined on such
4515 -- an entity until its Ekind field is set. However, in practice, there
4516 -- are many instances in which fields of an E_Void entity are set in the
4517 -- code prior to setting the Ekind field. This is not well documented or
4518 -- well controlled, and needs cleaning up later. Meanwhile, the access
4519 -- procedures in the body of Einfo permit many, but not all, attributes
4520 -- to be applied to an E_Void entity, precisely so that this kind of
4521 -- pre-setting of attributes works. This is really a hole in the dynamic
4522 -- type checking, since there is no assurance that the eventual Ekind
4523 -- value will be appropriate for the attributes set, and the consequence
4524 -- is that the dynamic type checking in the Einfo body is unnecessarily
4525 -- weak. To be looked at systematically some time ???
4527 ---------------------------------
4528 -- Component_Alignment Control --
4529 ---------------------------------
4531 -- There are four types of alignment possible for array and record
4532 -- types, and a field in the type entities contains a value of the
4533 -- following type indicating which alignment choice applies. For full
4534 -- details of the meaning of these aligment types, see description
4535 -- of the Component_Alignment pragma
4537 type Component_Alignment_Kind is (
4538 Calign_Default, -- default alignment
4539 Calign_Component_Size, -- natural alignment for component size
4540 Calign_Component_Size_4, -- natural for size <= 4, 4 for size >= 4
4541 Calign_Storage_Unit); -- all components byte aligned
4543 ---------------
4544 -- Iterators --
4545 ---------------
4547 -- In addition to attributes that are stored as plain data, other
4548 -- attributes are procedural, and require some small amount of
4549 -- computation. Of course, from the point of view of a user of this
4550 -- package, the distinction is not visible (even the field information
4551 -- provided below should be disregarded, as it is subject to change
4552 -- without notice!). A number of attributes appear as lists: lists of
4553 -- formals, lists of actuals, of discriminants, etc. For these, pairs
4554 -- of functions are defined, which take the form:
4556 -- function First_Thing (E : Enclosing_Construct) return Thing;
4557 -- function Next_Thing (T : Thing) return Thing;
4559 -- The end of iteration is always signaled by a value of Empty, so that
4560 -- loops over these chains invariably have the form:
4562 -- This : Thing;
4563 -- ...
4564 -- This := First_Thing (E);
4566 -- while Present (This) loop
4567 -- Do_Something_With (This);
4568 -- ...
4569 -- This := Next_Thing (This);
4570 -- end loop;
4572 -----------------------------------
4573 -- Handling of Check Suppression --
4574 -----------------------------------
4576 -- There are three ways that checks can be suppressed:
4578 -- 1. At the command line level. Package Opt contains global Boolean
4579 -- flags with names Suppress_Options.xxx_Checks, where xxx is the
4580 -- name of one of the checks that can be suppressed (excluding
4581 -- All_Checks, which is simply reflected by setting all the
4582 -- individual flags)
4584 -- 2. At the scope level. The body of Sem contains flags with names
4585 -- Suppress.xxx_Checks which are set to indicate that the given
4586 -- check is suppressed for the current scope. These flags are
4587 -- saved in the scope stack on entry to a scope and restored on
4588 -- exit from the scope.
4590 -- 3. At the entity level. Each entity contains a set of flags named
4591 -- Suppress_xxx_Checks which suppress the given check for that
4592 -- particularly entity (of course not all flags are meaningful for
4593 -- all entities).
4595 -------------------------------
4596 -- Handling of Discriminants --
4597 -------------------------------
4599 -- During semantic processing, discriminants are separate entities which
4600 -- reflect the semantic properties and allowed usage of discriminants in
4601 -- the language.
4603 -- In the case of discriminants used as bounds, the references are handled
4604 -- directly, since special processing is needed in any case. However, there
4605 -- are two circumstances in which discriminants are referenced in a quite
4606 -- general manner, like any other variables:
4608 -- In initialization expressions for records. Note that the expressions
4609 -- used in Priority, Storage_Size, and Task_Info pragmas are effectively
4610 -- in this category, since these pragmas are converted to initialized
4611 -- record fields in the Corresponding_Record_Type.
4613 -- In task and protected bodies, where the discriminant values may be
4614 -- referenced freely within these bodies. Discriminants can also appear
4615 -- in bounds of entry families and in defaults of operations.
4617 -- In both these cases, the discriminants must be treated essentially as
4618 -- objects. The following approach is used to simplify and minimize the
4619 -- special processing that is required.
4621 -- When a record type with discriminants is processed, the semantic
4622 -- processing creates the entities for the discriminants. It also creates
4623 -- an additional set of entities, called discriminals, one for each of
4624 -- the discriminants, and the Discriminal field of the discriminant entity
4625 -- points to this additional entity, which is initially created as an
4626 -- uninitialized (E_Void) entity.
4628 -- During expansion of expressions, any discriminant reference is replaced
4629 -- by a reference to the corresponding discriminal. When the initialization
4630 -- procedure for the record is created (there will always be one, since
4631 -- discriminants are present, see Exp_Ch3 for further details), the
4632 -- discriminals are used as the entities for the formal parameters of
4633 -- this initialization procedure. The references to these discriminants
4634 -- have already been replaced by references to these discriminals, which
4635 -- are now the formal parameters corresponding to the required objects.
4637 -- In the case of a task or protected body, the semantics similarly
4638 -- creates a set of discriminals for the discriminants of the task or
4639 -- protected type. When the procedure is created for the task body,
4640 -- the parameter passed in is a reference to the task value type, which
4641 -- contains the required discriminant values. The expander creates a
4642 -- set of declarations of the form:
4644 -- discriminal : constant dtype renames _Task.discriminant;
4646 -- where discriminal is the discriminal entity referenced by the task
4647 -- discriminant, and _Task is the task value passed in as the parameter.
4648 -- Again, any references to discriminants in the task body have been
4649 -- replaced by the discriminal reference, which is now an object that
4650 -- contains the required value.
4652 -- This approach for tasks means that two sets of discriminals are needed
4653 -- for a task type, one for the initialization procedure, and one for the
4654 -- task body. This works out nicely, since the semantics allocates one set
4655 -- for the task itself, and one set for the corresponding record.
4657 -- The one bit of trickiness arises in making sure that the right set of
4658 -- discriminals is used at the right time. First the task definition is
4659 -- processed. Any references to discriminants here are replaced by the
4660 -- the corresponding *task* discriminals (the record type doesn't even
4661 -- exist yet, since it is constructed as part of the expansion of the
4662 -- task declaration, which happens after the semantic processing of the
4663 -- task definition). The discriminants to be used for the corresponding
4664 -- record are created at the same time as the other discriminals, and
4665 -- held in the CR_Discriminant field of the discriminant. A use of the
4666 -- discriminant in a bound for an entry family is replaced with the CR_
4667 -- discriminant because it controls the bound of the entry queue array
4668 -- which is a component of the corresponding record.
4670 -- Just before the record initialization routine is constructed, the
4671 -- expander exchanges the task and record discriminals. This has two
4672 -- effects. First the generation of the record initialization routine
4673 -- uses the discriminals that are now on the record, which is the set
4674 -- that used to be on the task, which is what we want.
4676 -- Second, a new set of (so far unused) discriminals is now on the task
4677 -- discriminants, and it is this set that will be used for expanding the
4678 -- task body, and also for the discriminal declarations at the start of
4679 -- the task body.
4681 ---------------------------------------
4682 -- Private data in protected objects --
4683 ---------------------------------------
4685 -- Private object declarations in protected types pose problems
4686 -- similar to those of discriminants. They are expanded to components
4687 -- of a record which is passed as the parameter "_object" to expanded
4688 -- forms of all protected operations. As with discriminants, timing
4689 -- of this expansion is a problem. The sequence of statements for a
4690 -- protected operation is expanded before the operation itself, so the
4691 -- formal parameter for the record object containing the private data
4692 -- does not exist when the references to that data are expanded.
4694 -- For this reason, private data is handled in the same way as
4695 -- discriminants, expanding references to private data in protected
4696 -- operations (which appear as components) to placeholders which will
4697 -- eventually become renamings of the private selected components
4698 -- of the "_object" formal parameter. These placeholders are called
4699 -- "privals", by analogy to the "discriminals" used to implement
4700 -- discriminants. They are attached to the component declaration nodes
4701 -- representing the private object declarations of the protected type.
4703 -- As with discriminals, each protected subprogram needs a unique set
4704 -- of privals, since they must refer to renamings of components of a
4705 -- formal parameter of that operation. Entry bodies need another set,
4706 -- which they all share and which is associated with renamings in the
4707 -- Service_Entries procedure for the protected type (this is not yet
4708 -- implemented???). This means that we must associate a new set of
4709 -- privals (and discriminals) with the private declarations after
4710 -- the body of a protected subprogram is processed.
4712 -- The last complication is the presence of discriminants and discriminated
4713 -- components. In the corresponding record, the components are constrained
4714 -- by the discriminants of the record, but within each protected operation
4715 -- they are constrained by the discriminants of the actual. The actual
4716 -- subtypes of those components are constructed as for other unconstrained
4717 -- formals, but the privals are created before the formal object is added
4718 -- to the parameter list of the protected operation, so they carry the
4719 -- nominal subtype of the original component. After the protected operation
4720 -- is actually created (in the expansion of the protected body) we must
4721 -- patch the types of each prival occurrence with the proper actual subtype
4722 -- which is by now set. The Privals_Chain is used for this patching.
4724 -------------------
4725 -- Type Synonyms --
4726 -------------------
4728 -- The following type synonyms are used to tidy up the function and
4729 -- procedure declarations that follow, and also to make it possible
4730 -- to meet the requirement for the XEINFO utility that all function
4731 -- specs must fit on a single source line.
4733 subtype B is Boolean;
4734 subtype C is Component_Alignment_Kind;
4735 subtype E is Entity_Id;
4736 subtype M is Mechanism_Type;
4737 subtype N is Node_Id;
4738 subtype U is Uint;
4739 subtype R is Ureal;
4740 subtype L is Elist_Id;
4741 subtype S is List_Id;
4743 ---------------------------------
4744 -- Attribute Access Functions --
4745 ---------------------------------
4747 -- All attributes are manipulated through a procedural interface. This
4748 -- section contains the functions used to obtain attribute values which
4749 -- correspond to values in fields or flags in the entity itself.
4751 function Accept_Address (Id : E) return L;
4752 function Access_Disp_Table (Id : E) return E;
4753 function Actual_Subtype (Id : E) return E;
4754 function Address_Taken (Id : E) return B;
4755 function Alias (Id : E) return E;
4756 function Alignment (Id : E) return U;
4757 function Associated_Final_Chain (Id : E) return E;
4758 function Associated_Formal_Package (Id : E) return E;
4759 function Associated_Node_For_Itype (Id : E) return N;
4760 function Associated_Storage_Pool (Id : E) return E;
4761 function Barrier_Function (Id : E) return N;
4762 function Block_Node (Id : E) return N;
4763 function Body_Entity (Id : E) return E;
4764 function CR_Discriminant (Id : E) return E;
4765 function C_Pass_By_Copy (Id : E) return B;
4766 function Class_Wide_Type (Id : E) return E;
4767 function Cloned_Subtype (Id : E) return E;
4768 function Component_Alignment (Id : E) return C;
4769 function Component_Clause (Id : E) return N;
4770 function Component_Bit_Offset (Id : E) return U;
4771 function Component_Size (Id : E) return U;
4772 function Component_Type (Id : E) return E;
4773 function Corresponding_Concurrent_Type (Id : E) return E;
4774 function Corresponding_Discriminant (Id : E) return E;
4775 function Corresponding_Equality (Id : E) return E;
4776 function Corresponding_Record_Type (Id : E) return E;
4777 function Corresponding_Remote_Type (Id : E) return E;
4778 function Debug_Info_Off (Id : E) return B;
4779 function Debug_Renaming_Link (Id : E) return E;
4780 function DTC_Entity (Id : E) return E;
4781 function DT_Entry_Count (Id : E) return U;
4782 function DT_Position (Id : E) return U;
4783 function Default_Expr_Function (Id : E) return E;
4784 function Default_Expressions_Processed (Id : E) return B;
4785 function Default_Value (Id : E) return N;
4786 function Delay_Cleanups (Id : E) return B;
4787 function Delay_Subprogram_Descriptors (Id : E) return B;
4788 function Delta_Value (Id : E) return R;
4789 function Dependent_Instances (Id : E) return L;
4790 function Depends_On_Private (Id : E) return B;
4791 function Digits_Value (Id : E) return U;
4792 function Directly_Designated_Type (Id : E) return E;
4793 function Discard_Names (Id : E) return B;
4794 function Discriminal (Id : E) return E;
4795 function Discriminal_Link (Id : E) return E;
4796 function Discriminant_Checking_Func (Id : E) return E;
4797 function Discriminant_Constraint (Id : E) return L;
4798 function Discriminant_Default_Value (Id : E) return N;
4799 function Discriminant_Number (Id : E) return U;
4800 function Elaborate_All_Desirable (Id : E) return B;
4801 function Elaboration_Entity (Id : E) return E;
4802 function Elaboration_Entity_Required (Id : E) return B;
4803 function Enclosing_Scope (Id : E) return E;
4804 function Entry_Accepted (Id : E) return B;
4805 function Entry_Bodies_Array (Id : E) return E;
4806 function Entry_Cancel_Parameter (Id : E) return E;
4807 function Entry_Component (Id : E) return E;
4808 function Entry_Formal (Id : E) return E;
4809 function Entry_Index_Constant (Id : E) return E;
4810 function Entry_Index_Type (Id : E) return E;
4811 function Entry_Parameters_Type (Id : E) return E;
4812 function Enum_Pos_To_Rep (Id : E) return E;
4813 function Enumeration_Pos (Id : E) return U;
4814 function Enumeration_Rep (Id : E) return U;
4815 function Enumeration_Rep_Expr (Id : E) return N;
4816 function Equivalent_Type (Id : E) return E;
4817 function Esize (Id : E) return U;
4818 function Exception_Code (Id : E) return U;
4819 function Extra_Accessibility (Id : E) return E;
4820 function Extra_Constrained (Id : E) return E;
4821 function Extra_Formal (Id : E) return E;
4822 function Finalization_Chain_Entity (Id : E) return E;
4823 function Finalize_Storage_Only (Id : E) return B;
4824 function First_Entity (Id : E) return E;
4825 function First_Index (Id : E) return N;
4826 function First_Literal (Id : E) return E;
4827 function First_Optional_Parameter (Id : E) return E;
4828 function First_Private_Entity (Id : E) return E;
4829 function First_Rep_Item (Id : E) return N;
4830 function Freeze_Node (Id : E) return N;
4831 function From_With_Type (Id : E) return B;
4832 function Full_View (Id : E) return E;
4833 function Function_Returns_With_DSP (Id : E) return B;
4834 function Generic_Renamings (Id : E) return L;
4835 function Girder_Constraint (Id : E) return L;
4836 function Handler_Records (Id : E) return S;
4837 function Has_Aliased_Components (Id : E) return B;
4838 function Has_Alignment_Clause (Id : E) return B;
4839 function Has_All_Calls_Remote (Id : E) return B;
4840 function Has_Atomic_Components (Id : E) return B;
4841 function Has_Biased_Representation (Id : E) return B;
4842 function Has_Completion (Id : E) return B;
4843 function Has_Completion_In_Body (Id : E) return B;
4844 function Has_Complex_Representation (Id : E) return B;
4845 function Has_Component_Size_Clause (Id : E) return B;
4846 function Has_Controlled_Component (Id : E) return B;
4847 function Has_Controlling_Result (Id : E) return B;
4848 function Has_Convention_Pragma (Id : E) return B;
4849 function Has_Delayed_Freeze (Id : E) return B;
4850 function Has_Discriminants (Id : E) return B;
4851 function Has_Enumeration_Rep_Clause (Id : E) return B;
4852 function Has_Exit (Id : E) return B;
4853 function Has_External_Tag_Rep_Clause (Id : E) return B;
4854 function Has_Fully_Qualified_Name (Id : E) return B;
4855 function Has_Gigi_Rep_Item (Id : E) return B;
4856 function Has_Homonym (Id : E) return B;
4857 function Has_Interrupt_Handler (Id : E) return B;
4858 function Has_Machine_Radix_Clause (Id : E) return B;
4859 function Has_Master_Entity (Id : E) return B;
4860 function Has_Missing_Return (Id : E) return B;
4861 function Has_Nested_Block_With_Handler (Id : E) return B;
4862 function Has_Forward_Instantiation (Id : E) return B;
4863 function Has_Non_Standard_Rep (Id : E) return B;
4864 function Has_Object_Size_Clause (Id : E) return B;
4865 function Has_Per_Object_Constraint (Id : E) return B;
4866 function Has_Pragma_Controlled (Id : E) return B;
4867 function Has_Pragma_Elaborate_Body (Id : E) return B;
4868 function Has_Pragma_Inline (Id : E) return B;
4869 function Has_Pragma_Pack (Id : E) return B;
4870 function Has_Pragma_Pure_Function (Id : E) return B;
4871 function Has_Pragma_Unreferenced (Id : E) return B;
4872 function Has_Primitive_Operations (Id : E) return B;
4873 function Has_Qualified_Name (Id : E) return B;
4874 function Has_Record_Rep_Clause (Id : E) return B;
4875 function Has_Recursive_Call (Id : E) return B;
4876 function Has_Size_Clause (Id : E) return B;
4877 function Has_Small_Clause (Id : E) return B;
4878 function Has_Specified_Layout (Id : E) return B;
4879 function Has_Storage_Size_Clause (Id : E) return B;
4880 function Has_Subprogram_Descriptor (Id : E) return B;
4881 function Has_Task (Id : E) return B;
4882 function Has_Unchecked_Union (Id : E) return B;
4883 function Has_Unknown_Discriminants (Id : E) return B;
4884 function Has_Volatile_Components (Id : E) return B;
4885 function Homonym (Id : E) return E;
4886 function Hiding_Loop_Variable (Id : E) return E;
4887 function In_Package_Body (Id : E) return B;
4888 function In_Private_Part (Id : E) return B;
4889 function In_Use (Id : E) return B;
4890 function Inner_Instances (Id : E) return L;
4891 function Interface_Name (Id : E) return N;
4892 function Is_AST_Entry (Id : E) return B;
4893 function Is_Abstract (Id : E) return B;
4894 function Is_Access_Constant (Id : E) return B;
4895 function Is_Aliased (Id : E) return B;
4896 function Is_Asynchronous (Id : E) return B;
4897 function Is_Atomic (Id : E) return B;
4898 function Is_Bit_Packed_Array (Id : E) return B;
4899 function Is_CPP_Class (Id : E) return B;
4900 function Is_Called (Id : E) return B;
4901 function Is_Character_Type (Id : E) return B;
4902 function Is_Child_Unit (Id : E) return B;
4903 function Is_Compilation_Unit (Id : E) return B;
4904 function Is_Completely_Hidden (Id : E) return B;
4905 function Is_Constr_Subt_For_UN_Aliased (Id : E) return B;
4906 function Is_Constr_Subt_For_U_Nominal (Id : E) return B;
4907 function Is_Constrained (Id : E) return B;
4908 function Is_Constructor (Id : E) return B;
4909 function Is_Controlled (Id : E) return B;
4910 function Is_Controlling_Formal (Id : E) return B;
4911 function Is_Destructor (Id : E) return B;
4912 function Is_Discrim_SO_Function (Id : E) return B;
4913 function Is_Dispatching_Operation (Id : E) return B;
4914 function Is_Eliminated (Id : E) return B;
4915 function Is_Entry_Formal (Id : E) return B;
4916 function Is_Exported (Id : E) return B;
4917 function Is_First_Subtype (Id : E) return B;
4918 function Is_For_Access_Subtype (Id : E) return B;
4919 function Is_Frozen (Id : E) return B;
4920 function Is_Generic_Instance (Id : E) return B;
4921 function Is_Hidden (Id : E) return B;
4922 function Is_Hidden_Open_Scope (Id : E) return B;
4923 function Is_Immediately_Visible (Id : E) return B;
4924 function Is_Imported (Id : E) return B;
4925 function Is_Inlined (Id : E) return B;
4926 function Is_Instantiated (Id : E) return B;
4927 function Is_Internal (Id : E) return B;
4928 function Is_Interrupt_Handler (Id : E) return B;
4929 function Is_Intrinsic_Subprogram (Id : E) return B;
4930 function Is_Itype (Id : E) return B;
4931 function Is_Known_Valid (Id : E) return B;
4932 function Is_Limited_Composite (Id : E) return B;
4933 function Is_Machine_Code_Subprogram (Id : E) return B;
4934 function Is_Non_Static_Subtype (Id : E) return B;
4935 function Is_Null_Init_Proc (Id : E) return B;
4936 function Is_Optional_Parameter (Id : E) return B;
4937 function Is_Package_Body_Entity (Id : E) return B;
4938 function Is_Packed (Id : E) return B;
4939 function Is_Packed_Array_Type (Id : E) return B;
4940 function Is_Potentially_Use_Visible (Id : E) return B;
4941 function Is_Preelaborated (Id : E) return B;
4942 function Is_Private_Composite (Id : E) return B;
4943 function Is_Private_Descendant (Id : E) return B;
4944 function Is_Psected (Id : E) return B;
4945 function Is_Public (Id : E) return B;
4946 function Is_Pure (Id : E) return B;
4947 function Is_Remote_Call_Interface (Id : E) return B;
4948 function Is_Remote_Types (Id : E) return B;
4949 function Is_Renaming_Of_Object (Id : E) return B;
4950 function Is_Shared_Passive (Id : E) return B;
4951 function Is_Statically_Allocated (Id : E) return B;
4952 function Is_Tag (Id : E) return B;
4953 function Is_Tagged_Type (Id : E) return B;
4954 function Is_True_Constant (Id : E) return B;
4955 function Is_Unchecked_Union (Id : E) return B;
4956 function Is_Unsigned_Type (Id : E) return B;
4957 function Is_VMS_Exception (Id : E) return B;
4958 function Is_Valued_Procedure (Id : E) return B;
4959 function Is_Visible_Child_Unit (Id : E) return B;
4960 function Is_Volatile (Id : E) return B;
4961 function Is_Wrapper_Package (Id : E) return B;
4962 function Last_Entity (Id : E) return E;
4963 function Lit_Indexes (Id : E) return E;
4964 function Lit_Strings (Id : E) return E;
4965 function Machine_Radix_10 (Id : E) return B;
4966 function Master_Id (Id : E) return E;
4967 function Materialize_Entity (Id : E) return B;
4968 function Mechanism (Id : E) return M;
4969 function Modulus (Id : E) return U;
4970 function Needs_Debug_Info (Id : E) return B;
4971 function Needs_No_Actuals (Id : E) return B;
4972 function Next_Inlined_Subprogram (Id : E) return E;
4973 function No_Pool_Assigned (Id : E) return B;
4974 function No_Return (Id : E) return B;
4975 function Non_Binary_Modulus (Id : E) return B;
4976 function Nonzero_Is_True (Id : E) return B;
4977 function Normalized_First_Bit (Id : E) return U;
4978 function Normalized_Position (Id : E) return U;
4979 function Normalized_Position_Max (Id : E) return U;
4980 function Not_Source_Assigned (Id : E) return B;
4981 function Object_Ref (Id : E) return E;
4982 function Original_Array_Type (Id : E) return E;
4983 function Original_Record_Component (Id : E) return E;
4984 function Packed_Array_Type (Id : E) return E;
4985 function Parent_Subtype (Id : E) return E;
4986 function Primitive_Operations (Id : E) return L;
4987 function Prival (Id : E) return E;
4988 function Privals_Chain (Id : E) return L;
4989 function Private_Dependents (Id : E) return L;
4990 function Private_View (Id : E) return N;
4991 function Protected_Body_Subprogram (Id : E) return E;
4992 function Protected_Formal (Id : E) return E;
4993 function Protected_Operation (Id : E) return E;
4994 function RM_Size (Id : E) return U;
4995 function Reachable (Id : E) return B;
4996 function Referenced (Id : E) return B;
4997 function Referenced_Object (Id : E) return N;
4998 function Register_Exception_Call (Id : E) return N;
4999 function Related_Array_Object (Id : E) return E;
5000 function Related_Instance (Id : E) return E;
5001 function Renamed_Entity (Id : E) return N;
5002 function Renamed_Object (Id : E) return N;
5003 function Renaming_Map (Id : E) return U;
5004 function Return_Present (Id : E) return B;
5005 function Returns_By_Ref (Id : E) return B;
5006 function Reverse_Bit_Order (Id : E) return B;
5007 function Scalar_Range (Id : E) return N;
5008 function Scale_Value (Id : E) return U;
5009 function Scope_Depth_Value (Id : E) return U;
5010 function Sec_Stack_Needed_For_Return (Id : E) return B;
5011 function Shadow_Entities (Id : E) return S;
5012 function Shared_Var_Assign_Proc (Id : E) return E;
5013 function Shared_Var_Read_Proc (Id : E) return E;
5014 function Size_Check_Code (Id : E) return N;
5015 function Size_Known_At_Compile_Time (Id : E) return B;
5016 function Size_Depends_On_Discriminant (Id : E) return B;
5017 function Small_Value (Id : E) return R;
5018 function Spec_Entity (Id : E) return E;
5019 function Storage_Size_Variable (Id : E) return E;
5020 function Strict_Alignment (Id : E) return B;
5021 function String_Literal_Length (Id : E) return U;
5022 function String_Literal_Low_Bound (Id : E) return N;
5023 function Suppress_Access_Checks (Id : E) return B;
5024 function Suppress_Accessibility_Checks (Id : E) return B;
5025 function Suppress_Discriminant_Checks (Id : E) return B;
5026 function Suppress_Division_Checks (Id : E) return B;
5027 function Suppress_Elaboration_Checks (Id : E) return B;
5028 function Suppress_Elaboration_Warnings (Id : E) return B;
5029 function Suppress_Index_Checks (Id : E) return B;
5030 function Suppress_Init_Proc (Id : E) return B;
5031 function Suppress_Length_Checks (Id : E) return B;
5032 function Suppress_Overflow_Checks (Id : E) return B;
5033 function Suppress_Range_Checks (Id : E) return B;
5034 function Suppress_Storage_Checks (Id : E) return B;
5035 function Suppress_Style_Checks (Id : E) return B;
5036 function Suppress_Tag_Checks (Id : E) return B;
5037 function Underlying_Full_View (Id : E) return E;
5038 function Unset_Reference (Id : E) return N;
5039 function Uses_Sec_Stack (Id : E) return B;
5040 function Vax_Float (Id : E) return B;
5041 function Warnings_Off (Id : E) return B;
5043 -------------------------------
5044 -- Classification Attributes --
5045 -------------------------------
5047 -- These functions provide a convenient functional notation for testing
5048 -- whether an Ekind value belongs to a specified kind, for example the
5049 -- function Is_Elementary_Type tests if its argument is in Elementary_Kind.
5050 -- In some cases, the test is of an entity attribute (e.g. in the case of
5051 -- Is_Generic_Type where the Ekind does not provide the needed information)
5053 function Is_Access_Type (Id : E) return B;
5054 function Is_Array_Type (Id : E) return B;
5055 function Is_Class_Wide_Type (Id : E) return B;
5056 function Is_Composite_Type (Id : E) return B;
5057 function Is_Concurrent_Body (Id : E) return B;
5058 function Is_Concurrent_Record_Type (Id : E) return B;
5059 function Is_Concurrent_Type (Id : E) return B;
5060 function Is_Decimal_Fixed_Point_Type (Id : E) return B;
5061 function Is_Digits_Type (Id : E) return B;
5062 function Is_Discrete_Or_Fixed_Point_Type (Id : E) return B;
5063 function Is_Discrete_Type (Id : E) return B;
5064 function Is_Elementary_Type (Id : E) return B;
5065 function Is_Entry (Id : E) return B;
5066 function Is_Enumeration_Type (Id : E) return B;
5067 function Is_Fixed_Point_Type (Id : E) return B;
5068 function Is_Floating_Point_Type (Id : E) return B;
5069 function Is_Formal (Id : E) return B;
5070 function Is_Formal_Subprogram (Id : E) return B;
5071 function Is_Generic_Actual_Type (Id : E) return B;
5072 function Is_Generic_Type (Id : E) return B;
5073 function Is_Generic_Unit (Id : E) return B;
5074 function Is_Incomplete_Or_Private_Type (Id : E) return B;
5075 function Is_Integer_Type (Id : E) return B;
5076 function Is_Limited_Record (Id : E) return B;
5077 function Is_Modular_Integer_Type (Id : E) return B;
5078 function Is_Named_Number (Id : E) return B;
5079 function Is_Numeric_Type (Id : E) return B;
5080 function Is_Object (Id : E) return B;
5081 function Is_Ordinary_Fixed_Point_Type (Id : E) return B;
5082 function Is_Overloadable (Id : E) return B;
5083 function Is_Private_Type (Id : E) return B;
5084 function Is_Protected_Type (Id : E) return B;
5085 function Is_Real_Type (Id : E) return B;
5086 function Is_Record_Type (Id : E) return B;
5087 function Is_Scalar_Type (Id : E) return B;
5088 function Is_Signed_Integer_Type (Id : E) return B;
5089 function Is_Subprogram (Id : E) return B;
5090 function Is_Task_Type (Id : E) return B;
5091 function Is_Type (Id : E) return B;
5093 -------------------------------------
5094 -- Synthesized Attribute Functions --
5095 -------------------------------------
5097 -- The functions in this section synthesize attributes from the tree,
5098 -- so they do not correspond to defined fields in the entity itself.
5100 function Address_Clause (Id : E) return N;
5101 function Alignment_Clause (Id : E) return N;
5102 function Ancestor_Subtype (Id : E) return E;
5103 function Base_Type (Id : E) return E;
5104 function Constant_Value (Id : E) return N;
5105 function Declaration_Node (Id : E) return N;
5106 function Designated_Type (Id : E) return E;
5107 function Enclosing_Dynamic_Scope (Id : E) return E;
5108 function First_Component (Id : E) return E;
5109 function First_Discriminant (Id : E) return E;
5110 function First_Formal (Id : E) return E;
5111 function First_Girder_Discriminant (Id : E) return E;
5112 function First_Subtype (Id : E) return E;
5113 function Has_Attach_Handler (Id : E) return B;
5114 function Has_Entries (Id : E) return B;
5115 function Has_Foreign_Convention (Id : E) return B;
5116 function Has_Private_Ancestor (Id : E) return B;
5117 function Has_Private_Declaration (Id : E) return B;
5118 function Implementation_Base_Type (Id : E) return E;
5119 function Is_Always_Inlined (Id : E) return B;
5120 function Is_Boolean_Type (Id : E) return B;
5121 function Is_By_Copy_Type (Id : E) return B;
5122 function Is_By_Reference_Type (Id : E) return B;
5123 function Is_Derived_Type (Id : E) return B;
5124 function Is_Dynamic_Scope (Id : E) return B;
5125 function Is_Indefinite_Subtype (Id : E) return B;
5126 function Is_Limited_Type (Id : E) return B;
5127 function Is_Package (Id : E) return B;
5128 function Is_Protected_Private (Id : E) return B;
5129 function Is_Protected_Record_Type (Id : E) return B;
5130 function Is_Return_By_Reference_Type (Id : E) return B;
5131 function Is_String_Type (Id : E) return B;
5132 function Is_Task_Record_Type (Id : E) return B;
5133 function Next_Component (Id : E) return E;
5134 function Next_Discriminant (Id : E) return E;
5135 function Next_Formal (Id : E) return E;
5136 function Next_Formal_With_Extras (Id : E) return E;
5137 function Next_Girder_Discriminant (Id : E) return E;
5138 function Next_Literal (Id : E) return E;
5139 function Number_Dimensions (Id : E) return Pos;
5140 function Number_Discriminants (Id : E) return Pos;
5141 function Number_Entries (Id : E) return Nat;
5142 function Number_Formals (Id : E) return Pos;
5143 function Parameter_Mode (Id : E) return Formal_Kind;
5144 function Root_Type (Id : E) return E;
5145 function Scope_Depth_Set (Id : E) return B;
5146 function Size_Clause (Id : E) return N;
5147 function Tag_Component (Id : E) return E;
5148 function Type_High_Bound (Id : E) return N;
5149 function Type_Low_Bound (Id : E) return N;
5150 function Underlying_Type (Id : E) return E;
5152 ----------------------------------------------
5153 -- Type Representation Attribute Predicates --
5154 ----------------------------------------------
5156 -- These predicates test the setting of the indicated attribute. If
5157 -- the value has been set, then Known is True, and Unknown is False.
5158 -- If no value is set, then Known is False and Unknown is True. The
5159 -- Known_Static predicate is true only if the value is set (Known)
5160 -- and is set to a compile time known value. Note that in the case
5161 -- of Alignment and Normalized_First_Bit, dynamic values are not
5162 -- possible, so we do not need a separate Known_Static calls in
5163 -- these cases. The not set (unknown values are as follows:
5165 -- Alignment Uint_0 or No_Uint
5166 -- Component_Size Uint_0 or No_Uint
5167 -- Component_Bit_Offset No_Uint
5168 -- Digits_Value Uint_0 or No_Uint
5169 -- Esize Uint_0 or No_Uint
5170 -- Normalized_First_Bit No_Uint
5171 -- Normalized_Position No_Uint
5172 -- Normalized_Position_Max No_Uint
5173 -- RM_Size Uint_0 or No_Uint
5175 -- It would be cleaner to use No_Uint in all these cases, but historically
5176 -- we chose to use Uint_0 at first, and the change over will take time ???
5177 -- This is particularly true for the RM_Size field, where a value of zero
5178 -- is legitimate. We deal with this by a nasty kludge that knows that the
5179 -- value is always known static for discrete types (and no other types can
5180 -- have an RM_Size value of zero).
5182 function Known_Alignment (E : Entity_Id) return B;
5183 function Known_Component_Bit_Offset (E : Entity_Id) return B;
5184 function Known_Component_Size (E : Entity_Id) return B;
5185 function Known_Esize (E : Entity_Id) return B;
5186 function Known_Normalized_First_Bit (E : Entity_Id) return B;
5187 function Known_Normalized_Position (E : Entity_Id) return B;
5188 function Known_Normalized_Position_Max (E : Entity_Id) return B;
5189 function Known_RM_Size (E : Entity_Id) return B;
5191 function Known_Static_Component_Bit_Offset (E : Entity_Id) return B;
5192 function Known_Static_Component_Size (E : Entity_Id) return B;
5193 function Known_Static_Esize (E : Entity_Id) return B;
5194 function Known_Static_Normalized_First_Bit (E : Entity_Id) return B;
5195 function Known_Static_Normalized_Position (E : Entity_Id) return B;
5196 function Known_Static_Normalized_Position_Max (E : Entity_Id) return B;
5197 function Known_Static_RM_Size (E : Entity_Id) return B;
5199 function Unknown_Alignment (E : Entity_Id) return B;
5200 function Unknown_Component_Bit_Offset (E : Entity_Id) return B;
5201 function Unknown_Component_Size (E : Entity_Id) return B;
5202 function Unknown_Esize (E : Entity_Id) return B;
5203 function Unknown_Normalized_First_Bit (E : Entity_Id) return B;
5204 function Unknown_Normalized_Position (E : Entity_Id) return B;
5205 function Unknown_Normalized_Position_Max (E : Entity_Id) return B;
5206 function Unknown_RM_Size (E : Entity_Id) return B;
5208 ------------------------------
5209 -- Attribute Set Procedures --
5210 ------------------------------
5212 procedure Set_Accept_Address (Id : E; V : L);
5213 procedure Set_Access_Disp_Table (Id : E; V : E);
5214 procedure Set_Actual_Subtype (Id : E; V : E);
5215 procedure Set_Address_Taken (Id : E; V : B := True);
5216 procedure Set_Alias (Id : E; V : E);
5217 procedure Set_Alignment (Id : E; V : U);
5218 procedure Set_Associated_Final_Chain (Id : E; V : E);
5219 procedure Set_Associated_Formal_Package (Id : E; V : E);
5220 procedure Set_Associated_Node_For_Itype (Id : E; V : N);
5221 procedure Set_Associated_Storage_Pool (Id : E; V : E);
5222 procedure Set_Barrier_Function (Id : E; V : N);
5223 procedure Set_Block_Node (Id : E; V : N);
5224 procedure Set_Body_Entity (Id : E; V : E);
5225 procedure Set_CR_Discriminant (Id : E; V : E);
5226 procedure Set_C_Pass_By_Copy (Id : E; V : B := True);
5227 procedure Set_Class_Wide_Type (Id : E; V : E);
5228 procedure Set_Cloned_Subtype (Id : E; V : E);
5229 procedure Set_Component_Alignment (Id : E; V : C);
5230 procedure Set_Component_Bit_Offset (Id : E; V : U);
5231 procedure Set_Component_Clause (Id : E; V : N);
5232 procedure Set_Component_Size (Id : E; V : U);
5233 procedure Set_Component_Type (Id : E; V : E);
5234 procedure Set_Corresponding_Concurrent_Type (Id : E; V : E);
5235 procedure Set_Corresponding_Discriminant (Id : E; V : E);
5236 procedure Set_Corresponding_Equality (Id : E; V : E);
5237 procedure Set_Corresponding_Record_Type (Id : E; V : E);
5238 procedure Set_Corresponding_Remote_Type (Id : E; V : E);
5239 procedure Set_Debug_Info_Off (Id : E; V : B := True);
5240 procedure Set_Debug_Renaming_Link (Id : E; V : E);
5241 procedure Set_DTC_Entity (Id : E; V : E);
5242 procedure Set_DT_Entry_Count (Id : E; V : U);
5243 procedure Set_DT_Position (Id : E; V : U);
5244 procedure Set_Default_Expr_Function (Id : E; V : E);
5245 procedure Set_Default_Expressions_Processed (Id : E; V : B := True);
5246 procedure Set_Default_Value (Id : E; V : N);
5247 procedure Set_Delay_Cleanups (Id : E; V : B := True);
5248 procedure Set_Delay_Subprogram_Descriptors (Id : E; V : B := True);
5249 procedure Set_Delta_Value (Id : E; V : R);
5250 procedure Set_Dependent_Instances (Id : E; V : L);
5251 procedure Set_Depends_On_Private (Id : E; V : B := True);
5252 procedure Set_Digits_Value (Id : E; V : U);
5253 procedure Set_Directly_Designated_Type (Id : E; V : E);
5254 procedure Set_Discard_Names (Id : E; V : B := True);
5255 procedure Set_Discriminal (Id : E; V : E);
5256 procedure Set_Discriminal_Link (Id : E; V : E);
5257 procedure Set_Discriminant_Checking_Func (Id : E; V : E);
5258 procedure Set_Discriminant_Constraint (Id : E; V : L);
5259 procedure Set_Discriminant_Default_Value (Id : E; V : N);
5260 procedure Set_Discriminant_Number (Id : E; V : U);
5261 procedure Set_Elaborate_All_Desirable (Id : E; V : B := True);
5262 procedure Set_Elaboration_Entity (Id : E; V : E);
5263 procedure Set_Elaboration_Entity_Required (Id : E; V : B := True);
5264 procedure Set_Enclosing_Scope (Id : E; V : E);
5265 procedure Set_Entry_Accepted (Id : E; V : B := True);
5266 procedure Set_Entry_Bodies_Array (Id : E; V : E);
5267 procedure Set_Entry_Cancel_Parameter (Id : E; V : E);
5268 procedure Set_Entry_Component (Id : E; V : E);
5269 procedure Set_Entry_Formal (Id : E; V : E);
5270 procedure Set_Entry_Index_Constant (Id : E; V : E);
5271 procedure Set_Entry_Parameters_Type (Id : E; V : E);
5272 procedure Set_Enum_Pos_To_Rep (Id : E; V : E);
5273 procedure Set_Enumeration_Pos (Id : E; V : U);
5274 procedure Set_Enumeration_Rep (Id : E; V : U);
5275 procedure Set_Enumeration_Rep_Expr (Id : E; V : N);
5276 procedure Set_Equivalent_Type (Id : E; V : E);
5277 procedure Set_Esize (Id : E; V : U);
5278 procedure Set_Exception_Code (Id : E; V : U);
5279 procedure Set_Extra_Accessibility (Id : E; V : E);
5280 procedure Set_Extra_Constrained (Id : E; V : E);
5281 procedure Set_Extra_Formal (Id : E; V : E);
5282 procedure Set_Finalization_Chain_Entity (Id : E; V : E);
5283 procedure Set_Finalize_Storage_Only (Id : E; V : B := True);
5284 procedure Set_First_Entity (Id : E; V : E);
5285 procedure Set_First_Index (Id : E; V : N);
5286 procedure Set_First_Literal (Id : E; V : E);
5287 procedure Set_First_Optional_Parameter (Id : E; V : E);
5288 procedure Set_First_Private_Entity (Id : E; V : E);
5289 procedure Set_First_Rep_Item (Id : E; V : N);
5290 procedure Set_Freeze_Node (Id : E; V : N);
5291 procedure Set_From_With_Type (Id : E; V : B := True);
5292 procedure Set_Full_View (Id : E; V : E);
5293 procedure Set_Function_Returns_With_DSP (Id : E; V : B := True);
5294 procedure Set_Generic_Renamings (Id : E; V : L);
5295 procedure Set_Girder_Constraint (Id : E; V : L);
5296 procedure Set_Handler_Records (Id : E; V : S);
5297 procedure Set_Has_Aliased_Components (Id : E; V : B := True);
5298 procedure Set_Has_Alignment_Clause (Id : E; V : B := True);
5299 procedure Set_Has_All_Calls_Remote (Id : E; V : B := True);
5300 procedure Set_Has_Atomic_Components (Id : E; V : B := True);
5301 procedure Set_Has_Biased_Representation (Id : E; V : B := True);
5302 procedure Set_Has_Completion (Id : E; V : B := True);
5303 procedure Set_Has_Completion_In_Body (Id : E; V : B := True);
5304 procedure Set_Has_Complex_Representation (Id : E; V : B := True);
5305 procedure Set_Has_Component_Size_Clause (Id : E; V : B := True);
5306 procedure Set_Has_Controlled_Component (Id : E; V : B := True);
5307 procedure Set_Has_Controlling_Result (Id : E; V : B := True);
5308 procedure Set_Has_Convention_Pragma (Id : E; V : B := True);
5309 procedure Set_Has_Delayed_Freeze (Id : E; V : B := True);
5310 procedure Set_Has_Discriminants (Id : E; V : B := True);
5311 procedure Set_Has_Enumeration_Rep_Clause (Id : E; V : B := True);
5312 procedure Set_Has_Exit (Id : E; V : B := True);
5313 procedure Set_Has_External_Tag_Rep_Clause (Id : E; V : B := True);
5314 procedure Set_Has_Fully_Qualified_Name (Id : E; V : B := True);
5315 procedure Set_Has_Gigi_Rep_Item (Id : E; V : B := True);
5316 procedure Set_Has_Homonym (Id : E; V : B := True);
5317 procedure Set_Has_Machine_Radix_Clause (Id : E; V : B := True);
5318 procedure Set_Has_Master_Entity (Id : E; V : B := True);
5319 procedure Set_Has_Missing_Return (Id : E; V : B := True);
5320 procedure Set_Has_Nested_Block_With_Handler (Id : E; V : B := True);
5321 procedure Set_Has_Forward_Instantiation (Id : E; V : B := True);
5322 procedure Set_Has_Non_Standard_Rep (Id : E; V : B := True);
5323 procedure Set_Has_Object_Size_Clause (Id : E; V : B := True);
5324 procedure Set_Has_Per_Object_Constraint (Id : E; V : B := True);
5325 procedure Set_Has_Pragma_Controlled (Id : E; V : B := True);
5326 procedure Set_Has_Pragma_Elaborate_Body (Id : E; V : B := True);
5327 procedure Set_Has_Pragma_Inline (Id : E; V : B := True);
5328 procedure Set_Has_Pragma_Pack (Id : E; V : B := True);
5329 procedure Set_Has_Pragma_Pure_Function (Id : E; V : B := True);
5330 procedure Set_Has_Pragma_Unreferenced (Id : E; V : B := True);
5331 procedure Set_Has_Primitive_Operations (Id : E; V : B := True);
5332 procedure Set_Has_Private_Declaration (Id : E; V : B := True);
5333 procedure Set_Has_Qualified_Name (Id : E; V : B := True);
5334 procedure Set_Has_Record_Rep_Clause (Id : E; V : B := True);
5335 procedure Set_Has_Recursive_Call (Id : E; V : B := True);
5336 procedure Set_Has_Size_Clause (Id : E; V : B := True);
5337 procedure Set_Has_Small_Clause (Id : E; V : B := True);
5338 procedure Set_Has_Specified_Layout (Id : E; V : B := True);
5339 procedure Set_Has_Storage_Size_Clause (Id : E; V : B := True);
5340 procedure Set_Has_Subprogram_Descriptor (Id : E; V : B := True);
5341 procedure Set_Has_Task (Id : E; V : B := True);
5342 procedure Set_Has_Unchecked_Union (Id : E; V : B := True);
5343 procedure Set_Has_Unknown_Discriminants (Id : E; V : B := True);
5344 procedure Set_Has_Volatile_Components (Id : E; V : B := True);
5345 procedure Set_Hiding_Loop_Variable (Id : E; V : E);
5346 procedure Set_Homonym (Id : E; V : E);
5347 procedure Set_In_Package_Body (Id : E; V : B := True);
5348 procedure Set_In_Private_Part (Id : E; V : B := True);
5349 procedure Set_In_Use (Id : E; V : B := True);
5350 procedure Set_Inner_Instances (Id : E; V : L);
5351 procedure Set_Interface_Name (Id : E; V : N);
5352 procedure Set_Is_AST_Entry (Id : E; V : B := True);
5353 procedure Set_Is_Abstract (Id : E; V : B := True);
5354 procedure Set_Is_Access_Constant (Id : E; V : B := True);
5355 procedure Set_Is_Aliased (Id : E; V : B := True);
5356 procedure Set_Is_Asynchronous (Id : E; V : B := True);
5357 procedure Set_Is_Atomic (Id : E; V : B := True);
5358 procedure Set_Is_Bit_Packed_Array (Id : E; V : B := True);
5359 procedure Set_Is_CPP_Class (Id : E; V : B := True);
5360 procedure Set_Is_Called (Id : E; V : B := True);
5361 procedure Set_Is_Character_Type (Id : E; V : B := True);
5362 procedure Set_Is_Child_Unit (Id : E; V : B := True);
5363 procedure Set_Is_Compilation_Unit (Id : E; V : B := True);
5364 procedure Set_Is_Completely_Hidden (Id : E; V : B := True);
5365 procedure Set_Is_Concurrent_Record_Type (Id : E; V : B := True);
5366 procedure Set_Is_Constr_Subt_For_UN_Aliased (Id : E; V : B := True);
5367 procedure Set_Is_Constr_Subt_For_U_Nominal (Id : E; V : B := True);
5368 procedure Set_Is_Constrained (Id : E; V : B := True);
5369 procedure Set_Is_Constructor (Id : E; V : B := True);
5370 procedure Set_Is_Controlled (Id : E; V : B := True);
5371 procedure Set_Is_Controlling_Formal (Id : E; V : B := True);
5372 procedure Set_Is_Destructor (Id : E; V : B := True);
5373 procedure Set_Is_Discrim_SO_Function (Id : E; V : B := True);
5374 procedure Set_Is_Dispatching_Operation (Id : E; V : B := True);
5375 procedure Set_Is_Eliminated (Id : E; V : B := True);
5376 procedure Set_Is_Entry_Formal (Id : E; V : B := True);
5377 procedure Set_Is_Exported (Id : E; V : B := True);
5378 procedure Set_Is_First_Subtype (Id : E; V : B := True);
5379 procedure Set_Is_For_Access_Subtype (Id : E; V : B := True);
5380 procedure Set_Is_Formal_Subprogram (Id : E; V : B := True);
5381 procedure Set_Is_Frozen (Id : E; V : B := True);
5382 procedure Set_Is_Generic_Actual_Type (Id : E; V : B := True);
5383 procedure Set_Is_Generic_Instance (Id : E; V : B := True);
5384 procedure Set_Is_Generic_Type (Id : E; V : B := True);
5385 procedure Set_Is_Hidden (Id : E; V : B := True);
5386 procedure Set_Is_Hidden_Open_Scope (Id : E; V : B := True);
5387 procedure Set_Is_Immediately_Visible (Id : E; V : B := True);
5388 procedure Set_Is_Imported (Id : E; V : B := True);
5389 procedure Set_Is_Inlined (Id : E; V : B := True);
5390 procedure Set_Is_Instantiated (Id : E; V : B := True);
5391 procedure Set_Is_Internal (Id : E; V : B := True);
5392 procedure Set_Is_Interrupt_Handler (Id : E; V : B := True);
5393 procedure Set_Is_Intrinsic_Subprogram (Id : E; V : B := True);
5394 procedure Set_Is_Itype (Id : E; V : B := True);
5395 procedure Set_Is_Known_Valid (Id : E; V : B := True);
5396 procedure Set_Is_Limited_Composite (Id : E; V : B := True);
5397 procedure Set_Is_Limited_Record (Id : E; V : B := True);
5398 procedure Set_Is_Machine_Code_Subprogram (Id : E; V : B := True);
5399 procedure Set_Is_Non_Static_Subtype (Id : E; V : B := True);
5400 procedure Set_Is_Null_Init_Proc (Id : E; V : B := True);
5401 procedure Set_Is_Optional_Parameter (Id : E; V : B := True);
5402 procedure Set_Is_Package_Body_Entity (Id : E; V : B := True);
5403 procedure Set_Is_Packed (Id : E; V : B := True);
5404 procedure Set_Is_Packed_Array_Type (Id : E; V : B := True);
5405 procedure Set_Is_Potentially_Use_Visible (Id : E; V : B := True);
5406 procedure Set_Is_Preelaborated (Id : E; V : B := True);
5407 procedure Set_Is_Private_Composite (Id : E; V : B := True);
5408 procedure Set_Is_Private_Descendant (Id : E; V : B := True);
5409 procedure Set_Is_Psected (Id : E; V : B := True);
5410 procedure Set_Is_Public (Id : E; V : B := True);
5411 procedure Set_Is_Pure (Id : E; V : B := True);
5412 procedure Set_Is_Remote_Call_Interface (Id : E; V : B := True);
5413 procedure Set_Is_Remote_Types (Id : E; V : B := True);
5414 procedure Set_Is_Renaming_Of_Object (Id : E; V : B := True);
5415 procedure Set_Is_Shared_Passive (Id : E; V : B := True);
5416 procedure Set_Is_Statically_Allocated (Id : E; V : B := True);
5417 procedure Set_Is_Tag (Id : E; V : B := True);
5418 procedure Set_Is_Tagged_Type (Id : E; V : B := True);
5419 procedure Set_Is_True_Constant (Id : E; V : B := True);
5420 procedure Set_Is_Unchecked_Union (Id : E; V : B := True);
5421 procedure Set_Is_Unsigned_Type (Id : E; V : B := True);
5422 procedure Set_Is_VMS_Exception (Id : E; V : B := True);
5423 procedure Set_Is_Valued_Procedure (Id : E; V : B := True);
5424 procedure Set_Is_Visible_Child_Unit (Id : E; V : B := True);
5425 procedure Set_Is_Volatile (Id : E; V : B := True);
5426 procedure Set_Last_Entity (Id : E; V : E);
5427 procedure Set_Lit_Indexes (Id : E; V : E);
5428 procedure Set_Lit_Strings (Id : E; V : E);
5429 procedure Set_Machine_Radix_10 (Id : E; V : B := True);
5430 procedure Set_Master_Id (Id : E; V : E);
5431 procedure Set_Materialize_Entity (Id : E; V : B := True);
5432 procedure Set_Mechanism (Id : E; V : M);
5433 procedure Set_Modulus (Id : E; V : U);
5434 procedure Set_Needs_Debug_Info (Id : E; V : B := True);
5435 procedure Set_Needs_No_Actuals (Id : E; V : B := True);
5436 procedure Set_Next_Inlined_Subprogram (Id : E; V : E);
5437 procedure Set_No_Pool_Assigned (Id : E; V : B := True);
5438 procedure Set_No_Return (Id : E; V : B := True);
5439 procedure Set_Non_Binary_Modulus (Id : E; V : B := True);
5440 procedure Set_Nonzero_Is_True (Id : E; V : B := True);
5441 procedure Set_Normalized_First_Bit (Id : E; V : U);
5442 procedure Set_Normalized_Position (Id : E; V : U);
5443 procedure Set_Normalized_Position_Max (Id : E; V : U);
5444 procedure Set_Not_Source_Assigned (Id : E; V : B := True);
5445 procedure Set_Object_Ref (Id : E; V : E);
5446 procedure Set_Original_Array_Type (Id : E; V : E);
5447 procedure Set_Original_Record_Component (Id : E; V : E);
5448 procedure Set_Packed_Array_Type (Id : E; V : E);
5449 procedure Set_Parent_Subtype (Id : E; V : E);
5450 procedure Set_Primitive_Operations (Id : E; V : L);
5451 procedure Set_Prival (Id : E; V : E);
5452 procedure Set_Privals_Chain (Id : E; V : L);
5453 procedure Set_Private_Dependents (Id : E; V : L);
5454 procedure Set_Private_View (Id : E; V : N);
5455 procedure Set_Protected_Body_Subprogram (Id : E; V : E);
5456 procedure Set_Protected_Formal (Id : E; V : E);
5457 procedure Set_Protected_Operation (Id : E; V : N);
5458 procedure Set_RM_Size (Id : E; V : U);
5459 procedure Set_Reachable (Id : E; V : B := True);
5460 procedure Set_Referenced (Id : E; V : B := True);
5461 procedure Set_Referenced_Object (Id : E; V : N);
5462 procedure Set_Register_Exception_Call (Id : E; V : N);
5463 procedure Set_Related_Array_Object (Id : E; V : E);
5464 procedure Set_Related_Instance (Id : E; V : E);
5465 procedure Set_Renamed_Entity (Id : E; V : N);
5466 procedure Set_Renamed_Object (Id : E; V : N);
5467 procedure Set_Renaming_Map (Id : E; V : U);
5468 procedure Set_Return_Present (Id : E; V : B := True);
5469 procedure Set_Returns_By_Ref (Id : E; V : B := True);
5470 procedure Set_Reverse_Bit_Order (Id : E; V : B := True);
5471 procedure Set_Scalar_Range (Id : E; V : N);
5472 procedure Set_Scale_Value (Id : E; V : U);
5473 procedure Set_Scope_Depth_Value (Id : E; V : U);
5474 procedure Set_Sec_Stack_Needed_For_Return (Id : E; V : B := True);
5475 procedure Set_Shadow_Entities (Id : E; V : S);
5476 procedure Set_Shared_Var_Assign_Proc (Id : E; V : E);
5477 procedure Set_Shared_Var_Read_Proc (Id : E; V : E);
5478 procedure Set_Size_Check_Code (Id : E; V : N);
5479 procedure Set_Size_Depends_On_Discriminant (Id : E; V : B := True);
5480 procedure Set_Size_Known_At_Compile_Time (Id : E; V : B := True);
5481 procedure Set_Small_Value (Id : E; V : R);
5482 procedure Set_Spec_Entity (Id : E; V : E);
5483 procedure Set_Storage_Size_Variable (Id : E; V : E);
5484 procedure Set_Strict_Alignment (Id : E; V : B := True);
5485 procedure Set_String_Literal_Length (Id : E; V : U);
5486 procedure Set_String_Literal_Low_Bound (Id : E; V : N);
5487 procedure Set_Suppress_Access_Checks (Id : E; V : B := True);
5488 procedure Set_Suppress_Accessibility_Checks (Id : E; V : B := True);
5489 procedure Set_Suppress_Discriminant_Checks (Id : E; V : B := True);
5490 procedure Set_Suppress_Division_Checks (Id : E; V : B := True);
5491 procedure Set_Suppress_Elaboration_Checks (Id : E; V : B := True);
5492 procedure Set_Suppress_Elaboration_Warnings (Id : E; V : B := True);
5493 procedure Set_Suppress_Index_Checks (Id : E; V : B := True);
5494 procedure Set_Suppress_Init_Proc (Id : E; V : B := True);
5495 procedure Set_Suppress_Length_Checks (Id : E; V : B := True);
5496 procedure Set_Suppress_Overflow_Checks (Id : E; V : B := True);
5497 procedure Set_Suppress_Range_Checks (Id : E; V : B := True);
5498 procedure Set_Suppress_Storage_Checks (Id : E; V : B := True);
5499 procedure Set_Suppress_Style_Checks (Id : E; V : B := True);
5500 procedure Set_Suppress_Tag_Checks (Id : E; V : B := True);
5501 procedure Set_Underlying_Full_View (Id : E; V : E);
5502 procedure Set_Unset_Reference (Id : E; V : N);
5503 procedure Set_Uses_Sec_Stack (Id : E; V : B := True);
5504 procedure Set_Vax_Float (Id : E; V : B := True);
5505 procedure Set_Warnings_Off (Id : E; V : B := True);
5507 -----------------------------------
5508 -- Field Initialization Routines --
5509 -----------------------------------
5511 -- These routines are overloadings of some of the above Set procedures
5512 -- where the argument is normally a Uint. The overloadings take an Int
5513 -- parameter instead, and appropriately convert it. There are also
5514 -- versions that implicitly initialize to the appropriate "not set"
5515 -- value. The not set (unknown) values are as follows:
5517 -- Alignment Uint_0
5518 -- Component_Size Uint_0
5519 -- Component_Bit_Offset No_Uint
5520 -- Digits_Value Uint_0
5521 -- Esize Uint_0
5522 -- Normalized_First_Bit No_Uint
5523 -- Normalized_Position No_Uint
5524 -- Normalized_Position_Max No_Uint
5525 -- RM_Size Uint_0
5527 -- It would be cleaner to use No_Uint in all these cases, but historically
5528 -- we chose to use Uint_0 at first, and the change over will take time ???
5529 -- This is particularly true for the RM_Size field, where a value of zero
5530 -- is legitimate and causes some kludges around the code.
5532 procedure Init_Alignment (Id : E; V : Int);
5533 procedure Init_Component_Size (Id : E; V : Int);
5534 procedure Init_Component_Bit_Offset (Id : E; V : Int);
5535 procedure Init_Digits_Value (Id : E; V : Int);
5536 procedure Init_Esize (Id : E; V : Int);
5537 procedure Init_Normalized_First_Bit (Id : E; V : Int);
5538 procedure Init_Normalized_Position (Id : E; V : Int);
5539 procedure Init_Normalized_Position_Max (Id : E; V : Int);
5540 procedure Init_RM_Size (Id : E; V : Int);
5542 procedure Init_Alignment (Id : E);
5543 procedure Init_Component_Size (Id : E);
5544 procedure Init_Component_Bit_Offset (Id : E);
5545 procedure Init_Digits_Value (Id : E);
5546 procedure Init_Esize (Id : E);
5547 procedure Init_Normalized_First_Bit (Id : E);
5548 procedure Init_Normalized_Position (Id : E);
5549 procedure Init_Normalized_Position_Max (Id : E);
5550 procedure Init_RM_Size (Id : E);
5552 procedure Init_Size_Align (Id : E);
5553 -- This procedure initializes both size fields and the alignment
5554 -- field to all be Unknown.
5556 procedure Init_Size (Id : E; V : Int);
5557 -- Initialize both the Esize and RM_Size fields of E to V
5559 procedure Init_Component_Location (Id : E);
5560 -- Initializes all fields describing the location of a component
5561 -- (Normalized_Position, Component_Bit_Offset, Normalized_First_Bit,
5562 -- Normalized_Position_Max, Esize) to all be Unknown.
5564 ---------------
5565 -- Iterators --
5566 ---------------
5568 -- The call to Next_xxx (obj) is equivalent to obj := Next_xxx (obj)
5569 -- We define the set of Proc_Next_xxx routines simply for the purposes
5570 -- of inlining them without necessarily inlining the function.
5572 procedure Proc_Next_Component (N : in out Node_Id);
5573 procedure Proc_Next_Discriminant (N : in out Node_Id);
5574 procedure Proc_Next_Formal (N : in out Node_Id);
5575 procedure Proc_Next_Formal_With_Extras (N : in out Node_Id);
5576 procedure Proc_Next_Girder_Discriminant (N : in out Node_Id);
5577 procedure Proc_Next_Index (N : in out Node_Id);
5578 procedure Proc_Next_Inlined_Subprogram (N : in out Node_Id);
5579 procedure Proc_Next_Literal (N : in out Node_Id);
5581 pragma Inline (Proc_Next_Component);
5582 pragma Inline (Proc_Next_Discriminant);
5583 pragma Inline (Proc_Next_Formal);
5584 pragma Inline (Proc_Next_Formal_With_Extras);
5585 pragma Inline (Proc_Next_Girder_Discriminant);
5586 pragma Inline (Proc_Next_Index);
5587 pragma Inline (Proc_Next_Inlined_Subprogram);
5588 pragma Inline (Proc_Next_Literal);
5590 procedure Next_Component (N : in out Node_Id)
5591 renames Proc_Next_Component;
5593 procedure Next_Discriminant (N : in out Node_Id)
5594 renames Proc_Next_Discriminant;
5596 procedure Next_Formal (N : in out Node_Id)
5597 renames Proc_Next_Formal;
5599 procedure Next_Formal_With_Extras (N : in out Node_Id)
5600 renames Proc_Next_Formal_With_Extras;
5602 procedure Next_Girder_Discriminant (N : in out Node_Id)
5603 renames Proc_Next_Girder_Discriminant;
5605 procedure Next_Index (N : in out Node_Id)
5606 renames Proc_Next_Index;
5608 procedure Next_Inlined_Subprogram (N : in out Node_Id)
5609 renames Proc_Next_Inlined_Subprogram;
5611 procedure Next_Literal (N : in out Node_Id)
5612 renames Proc_Next_Literal;
5614 -------------------------------
5615 -- Miscellaneous Subprograms --
5616 -------------------------------
5618 procedure Append_Entity (Id : Entity_Id; V : Entity_Id);
5619 -- Add an entity to the list of entities declared in the scope V
5621 function Get_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Node_Id;
5622 -- Searches the Rep_Item chain for the given entity E, for an instance
5623 -- of a representation pragma with the given name Nam. If found then
5624 -- the value returned is the N_Pragma node, otherwise Empty is returned.
5626 function Get_Attribute_Definition_Clause
5627 (E : Entity_Id;
5628 Id : Attribute_Id)
5629 return Node_Id;
5630 -- Searches the Rep_Item chain for a given entity E, for an instance
5631 -- of an attribute definition clause with the given attibute Id Id. If
5632 -- found, the value returned is the N_Attribute_Definition_Clause node,
5633 -- otherwise Empty is returned.
5635 function Is_Entity_Name (N : Node_Id) return Boolean;
5636 -- Test if the node N is the name of an entity (i.e. is an identifier,
5637 -- expanded name, or an attribute reference that returns an entity).
5639 function Next_Index (Id : Node_Id) return Node_Id;
5640 -- Given an index from a previous call to First_Index or Next_Index,
5641 -- returns a node representing the occurrence of the next index subtype,
5642 -- or Empty if there are no more index subtypes.
5644 function Scope_Depth (Id : Entity_Id) return Uint;
5645 -- Returns the scope depth value of the Id, unless the Id is a record
5646 -- type, in which case it returns the scope depth of the record scope.
5648 function Subtype_Kind (K : Entity_Kind) return Entity_Kind;
5649 -- Given an entity_kind K this function returns the entity_kind
5650 -- corresponding to subtype kind of the type represented by K. For
5651 -- example if K is E_Signed_Integer_Type then E_Signed_Integer_Subtype
5652 -- is returned. If K is already a subtype kind it itself is returned. An
5653 -- internal error is generated if no such correspondence exists for K.
5655 ----------------------------------
5656 -- Debugging Output Subprograms --
5657 ----------------------------------
5659 procedure Write_Entity_Flags (Id : Entity_Id; Prefix : String);
5660 -- Writes a series of entries giving a line for each flag that is
5661 -- set to True. Each line is prefixed by the given string
5663 procedure Write_Entity_Info (Id : Entity_Id; Prefix : String);
5664 -- A debugging procedure to write out information about an entity
5666 procedure Write_Field6_Name (Id : Entity_Id);
5667 procedure Write_Field7_Name (Id : Entity_Id);
5668 procedure Write_Field8_Name (Id : Entity_Id);
5669 procedure Write_Field9_Name (Id : Entity_Id);
5670 procedure Write_Field10_Name (Id : Entity_Id);
5671 procedure Write_Field11_Name (Id : Entity_Id);
5672 procedure Write_Field12_Name (Id : Entity_Id);
5673 procedure Write_Field13_Name (Id : Entity_Id);
5674 procedure Write_Field14_Name (Id : Entity_Id);
5675 procedure Write_Field15_Name (Id : Entity_Id);
5676 procedure Write_Field16_Name (Id : Entity_Id);
5677 procedure Write_Field17_Name (Id : Entity_Id);
5678 procedure Write_Field18_Name (Id : Entity_Id);
5679 procedure Write_Field19_Name (Id : Entity_Id);
5680 procedure Write_Field20_Name (Id : Entity_Id);
5681 procedure Write_Field21_Name (Id : Entity_Id);
5682 procedure Write_Field22_Name (Id : Entity_Id);
5683 procedure Write_Field23_Name (Id : Entity_Id);
5684 -- These routines are used to output a nice symbolic name for the given
5685 -- field, depending on the Ekind. No blanks or end of lines are output,
5686 -- just the characters of the field name.
5688 --------------------
5689 -- Inline Pragmas --
5690 --------------------
5692 -- Note that these inline pragmas are referenced by the XEINFO utility
5693 -- program in preparing the corresponding C header, and only those
5694 -- subprograms meeting the requirements documented in the section on
5695 -- XEINFO may be referenced in this section.
5697 pragma Inline (Accept_Address);
5698 pragma Inline (Access_Disp_Table);
5699 pragma Inline (Actual_Subtype);
5700 pragma Inline (Address_Taken);
5701 pragma Inline (Alias);
5702 pragma Inline (Alignment);
5703 pragma Inline (Associated_Final_Chain);
5704 pragma Inline (Associated_Formal_Package);
5705 pragma Inline (Associated_Node_For_Itype);
5706 pragma Inline (Associated_Storage_Pool);
5707 pragma Inline (Barrier_Function);
5708 pragma Inline (Block_Node);
5709 pragma Inline (Body_Entity);
5710 pragma Inline (CR_Discriminant);
5711 pragma Inline (C_Pass_By_Copy);
5712 pragma Inline (Class_Wide_Type);
5713 pragma Inline (Cloned_Subtype);
5714 pragma Inline (Component_Bit_Offset);
5715 pragma Inline (Component_Clause);
5716 pragma Inline (Component_Size);
5717 pragma Inline (Component_Type);
5718 pragma Inline (Corresponding_Concurrent_Type);
5719 pragma Inline (Corresponding_Discriminant);
5720 pragma Inline (Corresponding_Equality);
5721 pragma Inline (Corresponding_Record_Type);
5722 pragma Inline (Corresponding_Remote_Type);
5723 pragma Inline (Debug_Info_Off);
5724 pragma Inline (Debug_Renaming_Link);
5725 pragma Inline (DTC_Entity);
5726 pragma Inline (DT_Entry_Count);
5727 pragma Inline (DT_Position);
5728 pragma Inline (Default_Expr_Function);
5729 pragma Inline (Default_Expressions_Processed);
5730 pragma Inline (Default_Value);
5731 pragma Inline (Delay_Cleanups);
5732 pragma Inline (Delay_Subprogram_Descriptors);
5733 pragma Inline (Delta_Value);
5734 pragma Inline (Dependent_Instances);
5735 pragma Inline (Depends_On_Private);
5736 pragma Inline (Digits_Value);
5737 pragma Inline (Directly_Designated_Type);
5738 pragma Inline (Discard_Names);
5739 pragma Inline (Discriminal);
5740 pragma Inline (Discriminal_Link);
5741 pragma Inline (Discriminant_Checking_Func);
5742 pragma Inline (Discriminant_Constraint);
5743 pragma Inline (Discriminant_Default_Value);
5744 pragma Inline (Discriminant_Number);
5745 pragma Inline (Elaborate_All_Desirable);
5746 pragma Inline (Elaboration_Entity);
5747 pragma Inline (Elaboration_Entity_Required);
5748 pragma Inline (Enclosing_Scope);
5749 pragma Inline (Entry_Accepted);
5750 pragma Inline (Entry_Bodies_Array);
5751 pragma Inline (Entry_Cancel_Parameter);
5752 pragma Inline (Entry_Component);
5753 pragma Inline (Entry_Formal);
5754 pragma Inline (Entry_Index_Constant);
5755 pragma Inline (Entry_Index_Type);
5756 pragma Inline (Entry_Parameters_Type);
5757 pragma Inline (Enum_Pos_To_Rep);
5758 pragma Inline (Enumeration_Pos);
5759 pragma Inline (Enumeration_Rep);
5760 pragma Inline (Enumeration_Rep_Expr);
5761 pragma Inline (Equivalent_Type);
5762 pragma Inline (Esize);
5763 pragma Inline (Exception_Code);
5764 pragma Inline (Extra_Accessibility);
5765 pragma Inline (Extra_Constrained);
5766 pragma Inline (Extra_Formal);
5767 pragma Inline (Finalization_Chain_Entity);
5768 pragma Inline (First_Entity);
5769 pragma Inline (First_Index);
5770 pragma Inline (First_Literal);
5771 pragma Inline (First_Optional_Parameter);
5772 pragma Inline (First_Private_Entity);
5773 pragma Inline (First_Rep_Item);
5774 pragma Inline (Freeze_Node);
5775 pragma Inline (From_With_Type);
5776 pragma Inline (Full_View);
5777 pragma Inline (Function_Returns_With_DSP);
5778 pragma Inline (Generic_Renamings);
5779 pragma Inline (Girder_Constraint);
5780 pragma Inline (Handler_Records);
5781 pragma Inline (Has_Aliased_Components);
5782 pragma Inline (Has_Alignment_Clause);
5783 pragma Inline (Has_All_Calls_Remote);
5784 pragma Inline (Has_Atomic_Components);
5785 pragma Inline (Has_Biased_Representation);
5786 pragma Inline (Has_Completion);
5787 pragma Inline (Has_Completion_In_Body);
5788 pragma Inline (Has_Complex_Representation);
5789 pragma Inline (Has_Component_Size_Clause);
5790 pragma Inline (Has_Controlled_Component);
5791 pragma Inline (Has_Controlling_Result);
5792 pragma Inline (Has_Convention_Pragma);
5793 pragma Inline (Has_Delayed_Freeze);
5794 pragma Inline (Has_Discriminants);
5795 pragma Inline (Has_Enumeration_Rep_Clause);
5796 pragma Inline (Has_Exit);
5797 pragma Inline (Has_External_Tag_Rep_Clause);
5798 pragma Inline (Has_Fully_Qualified_Name);
5799 pragma Inline (Has_Gigi_Rep_Item);
5800 pragma Inline (Has_Homonym);
5801 pragma Inline (Has_Machine_Radix_Clause);
5802 pragma Inline (Has_Master_Entity);
5803 pragma Inline (Has_Missing_Return);
5804 pragma Inline (Has_Nested_Block_With_Handler);
5805 pragma Inline (Has_Forward_Instantiation);
5806 pragma Inline (Has_Non_Standard_Rep);
5807 pragma Inline (Has_Object_Size_Clause);
5808 pragma Inline (Has_Per_Object_Constraint);
5809 pragma Inline (Has_Pragma_Controlled);
5810 pragma Inline (Has_Pragma_Elaborate_Body);
5811 pragma Inline (Has_Pragma_Inline);
5812 pragma Inline (Has_Pragma_Pack);
5813 pragma Inline (Has_Pragma_Pure_Function);
5814 pragma Inline (Has_Pragma_Unreferenced);
5815 pragma Inline (Has_Primitive_Operations);
5816 pragma Inline (Has_Private_Declaration);
5817 pragma Inline (Has_Qualified_Name);
5818 pragma Inline (Has_Record_Rep_Clause);
5819 pragma Inline (Has_Recursive_Call);
5820 pragma Inline (Has_Size_Clause);
5821 pragma Inline (Has_Small_Clause);
5822 pragma Inline (Has_Specified_Layout);
5823 pragma Inline (Has_Storage_Size_Clause);
5824 pragma Inline (Has_Subprogram_Descriptor);
5825 pragma Inline (Has_Task);
5826 pragma Inline (Has_Unchecked_Union);
5827 pragma Inline (Has_Unknown_Discriminants);
5828 pragma Inline (Has_Volatile_Components);
5829 pragma Inline (Hiding_Loop_Variable);
5830 pragma Inline (Homonym);
5831 pragma Inline (In_Package_Body);
5832 pragma Inline (In_Private_Part);
5833 pragma Inline (In_Use);
5834 pragma Inline (Inner_Instances);
5835 pragma Inline (Interface_Name);
5836 pragma Inline (Is_AST_Entry);
5837 pragma Inline (Is_Abstract);
5838 pragma Inline (Is_Access_Constant);
5839 pragma Inline (Is_Access_Type);
5840 pragma Inline (Is_Aliased);
5841 pragma Inline (Is_Array_Type);
5842 pragma Inline (Is_Asynchronous);
5843 pragma Inline (Is_Atomic);
5844 pragma Inline (Is_Bit_Packed_Array);
5845 pragma Inline (Is_CPP_Class);
5846 pragma Inline (Is_Called);
5847 pragma Inline (Is_Character_Type);
5848 pragma Inline (Is_Child_Unit);
5849 pragma Inline (Is_Class_Wide_Type);
5850 pragma Inline (Is_Compilation_Unit);
5851 pragma Inline (Is_Completely_Hidden);
5852 pragma Inline (Is_Composite_Type);
5853 pragma Inline (Is_Concurrent_Body);
5854 pragma Inline (Is_Concurrent_Record_Type);
5855 pragma Inline (Is_Concurrent_Type);
5856 pragma Inline (Is_Constr_Subt_For_UN_Aliased);
5857 pragma Inline (Is_Constr_Subt_For_U_Nominal);
5858 pragma Inline (Is_Constrained);
5859 pragma Inline (Is_Constructor);
5860 pragma Inline (Is_Controlled);
5861 pragma Inline (Is_Controlling_Formal);
5862 pragma Inline (Is_Decimal_Fixed_Point_Type);
5863 pragma Inline (Is_Destructor);
5864 pragma Inline (Is_Discrim_SO_Function);
5865 pragma Inline (Is_Digits_Type);
5866 pragma Inline (Is_Discrete_Or_Fixed_Point_Type);
5867 pragma Inline (Is_Discrete_Type);
5868 pragma Inline (Is_Dispatching_Operation);
5869 pragma Inline (Is_Elementary_Type);
5870 pragma Inline (Is_Eliminated);
5871 pragma Inline (Is_Entry);
5872 pragma Inline (Is_Entry_Formal);
5873 pragma Inline (Is_Enumeration_Type);
5874 pragma Inline (Is_Exported);
5875 pragma Inline (Is_First_Subtype);
5876 pragma Inline (Is_Fixed_Point_Type);
5877 pragma Inline (Is_Floating_Point_Type);
5878 pragma Inline (Is_For_Access_Subtype);
5879 pragma Inline (Is_Formal);
5880 pragma Inline (Is_Formal_Subprogram);
5881 pragma Inline (Is_Frozen);
5882 pragma Inline (Is_Generic_Actual_Type);
5883 pragma Inline (Is_Generic_Instance);
5884 pragma Inline (Is_Generic_Type);
5885 pragma Inline (Is_Generic_Unit);
5886 pragma Inline (Is_Hidden);
5887 pragma Inline (Is_Hidden_Open_Scope);
5888 pragma Inline (Is_Immediately_Visible);
5889 pragma Inline (Is_Imported);
5890 pragma Inline (Is_Incomplete_Or_Private_Type);
5891 pragma Inline (Is_Inlined);
5892 pragma Inline (Is_Instantiated);
5893 pragma Inline (Is_Integer_Type);
5894 pragma Inline (Is_Internal);
5895 pragma Inline (Is_Interrupt_Handler);
5896 pragma Inline (Is_Intrinsic_Subprogram);
5897 pragma Inline (Is_Itype);
5898 pragma Inline (Is_Known_Valid);
5899 pragma Inline (Is_Limited_Composite);
5900 pragma Inline (Is_Limited_Record);
5901 pragma Inline (Is_Machine_Code_Subprogram);
5902 pragma Inline (Is_Modular_Integer_Type);
5903 pragma Inline (Is_Named_Number);
5904 pragma Inline (Is_Non_Static_Subtype);
5905 pragma Inline (Is_Null_Init_Proc);
5906 pragma Inline (Is_Numeric_Type);
5907 pragma Inline (Is_Object);
5908 pragma Inline (Is_Optional_Parameter);
5909 pragma Inline (Is_Package_Body_Entity);
5910 pragma Inline (Is_Ordinary_Fixed_Point_Type);
5911 pragma Inline (Is_Overloadable);
5912 pragma Inline (Is_Packed);
5913 pragma Inline (Is_Packed_Array_Type);
5914 pragma Inline (Is_Potentially_Use_Visible);
5915 pragma Inline (Is_Preelaborated);
5916 pragma Inline (Is_Private_Composite);
5917 pragma Inline (Is_Private_Descendant);
5918 pragma Inline (Is_Private_Type);
5919 pragma Inline (Is_Protected_Type);
5920 pragma Inline (Is_Psected);
5921 pragma Inline (Is_Public);
5922 pragma Inline (Is_Pure);
5923 pragma Inline (Is_Real_Type);
5924 pragma Inline (Is_Record_Type);
5925 pragma Inline (Is_Remote_Call_Interface);
5926 pragma Inline (Is_Remote_Types);
5927 pragma Inline (Is_Renaming_Of_Object);
5928 pragma Inline (Is_Scalar_Type);
5929 pragma Inline (Is_Shared_Passive);
5930 pragma Inline (Is_Signed_Integer_Type);
5931 pragma Inline (Is_Statically_Allocated);
5932 pragma Inline (Is_Subprogram);
5933 pragma Inline (Is_Tag);
5934 pragma Inline (Is_Tagged_Type);
5935 pragma Inline (Is_True_Constant);
5936 pragma Inline (Is_Task_Type);
5937 pragma Inline (Is_Type);
5938 pragma Inline (Is_Unchecked_Union);
5939 pragma Inline (Is_Unsigned_Type);
5940 pragma Inline (Is_VMS_Exception);
5941 pragma Inline (Is_Valued_Procedure);
5942 pragma Inline (Is_Visible_Child_Unit);
5943 pragma Inline (Is_Volatile);
5944 pragma Inline (Last_Entity);
5945 pragma Inline (Lit_Indexes);
5946 pragma Inline (Lit_Strings);
5947 pragma Inline (Machine_Radix_10);
5948 pragma Inline (Master_Id);
5949 pragma Inline (Materialize_Entity);
5950 pragma Inline (Mechanism);
5951 pragma Inline (Modulus);
5952 pragma Inline (Needs_Debug_Info);
5953 pragma Inline (Needs_No_Actuals);
5954 pragma Inline (Next_Index);
5955 pragma Inline (Next_Inlined_Subprogram);
5956 pragma Inline (Next_Literal);
5957 pragma Inline (No_Pool_Assigned);
5958 pragma Inline (No_Return);
5959 pragma Inline (Non_Binary_Modulus);
5960 pragma Inline (Nonzero_Is_True);
5961 pragma Inline (Normalized_First_Bit);
5962 pragma Inline (Normalized_Position);
5963 pragma Inline (Normalized_Position_Max);
5964 pragma Inline (Not_Source_Assigned);
5965 pragma Inline (Object_Ref);
5966 pragma Inline (Original_Array_Type);
5967 pragma Inline (Original_Record_Component);
5968 pragma Inline (Packed_Array_Type);
5969 pragma Inline (Parameter_Mode);
5970 pragma Inline (Parent_Subtype);
5971 pragma Inline (Primitive_Operations);
5972 pragma Inline (Prival);
5973 pragma Inline (Privals_Chain);
5974 pragma Inline (Private_Dependents);
5975 pragma Inline (Private_View);
5976 pragma Inline (Protected_Body_Subprogram);
5977 pragma Inline (Protected_Formal);
5978 pragma Inline (Protected_Operation);
5979 pragma Inline (RM_Size);
5980 pragma Inline (Reachable);
5981 pragma Inline (Referenced);
5982 pragma Inline (Referenced_Object);
5983 pragma Inline (Register_Exception_Call);
5984 pragma Inline (Related_Array_Object);
5985 pragma Inline (Related_Instance);
5986 pragma Inline (Renamed_Entity);
5987 pragma Inline (Renamed_Object);
5988 pragma Inline (Renaming_Map);
5989 pragma Inline (Return_Present);
5990 pragma Inline (Returns_By_Ref);
5991 pragma Inline (Reverse_Bit_Order);
5992 pragma Inline (Scalar_Range);
5993 pragma Inline (Scale_Value);
5994 pragma Inline (Scope_Depth_Value);
5995 pragma Inline (Sec_Stack_Needed_For_Return);
5996 pragma Inline (Shadow_Entities);
5997 pragma Inline (Shared_Var_Assign_Proc);
5998 pragma Inline (Shared_Var_Read_Proc);
5999 pragma Inline (Size_Check_Code);
6000 pragma Inline (Size_Depends_On_Discriminant);
6001 pragma Inline (Size_Known_At_Compile_Time);
6002 pragma Inline (Small_Value);
6003 pragma Inline (Spec_Entity);
6004 pragma Inline (Storage_Size_Variable);
6005 pragma Inline (Strict_Alignment);
6006 pragma Inline (String_Literal_Length);
6007 pragma Inline (String_Literal_Low_Bound);
6008 pragma Inline (Suppress_Access_Checks);
6009 pragma Inline (Suppress_Accessibility_Checks);
6010 pragma Inline (Suppress_Discriminant_Checks);
6011 pragma Inline (Suppress_Division_Checks);
6012 pragma Inline (Suppress_Elaboration_Checks);
6013 pragma Inline (Suppress_Elaboration_Warnings);
6014 pragma Inline (Suppress_Index_Checks);
6015 pragma Inline (Suppress_Init_Proc);
6016 pragma Inline (Suppress_Length_Checks);
6017 pragma Inline (Suppress_Overflow_Checks);
6018 pragma Inline (Suppress_Range_Checks);
6019 pragma Inline (Suppress_Storage_Checks);
6020 pragma Inline (Suppress_Style_Checks);
6021 pragma Inline (Suppress_Tag_Checks);
6022 pragma Inline (Underlying_Full_View);
6023 pragma Inline (Unset_Reference);
6024 pragma Inline (Uses_Sec_Stack);
6025 pragma Inline (Vax_Float);
6026 pragma Inline (Warnings_Off);
6028 pragma Inline (Init_Alignment);
6029 pragma Inline (Init_Component_Bit_Offset);
6030 pragma Inline (Init_Component_Size);
6031 pragma Inline (Init_Digits_Value);
6032 pragma Inline (Init_Esize);
6033 pragma Inline (Init_RM_Size);
6035 pragma Inline (Set_Accept_Address);
6036 pragma Inline (Set_Access_Disp_Table);
6037 pragma Inline (Set_Actual_Subtype);
6038 pragma Inline (Set_Address_Taken);
6039 pragma Inline (Set_Alias);
6040 pragma Inline (Set_Alignment);
6041 pragma Inline (Set_Associated_Final_Chain);
6042 pragma Inline (Set_Associated_Formal_Package);
6043 pragma Inline (Set_Associated_Node_For_Itype);
6044 pragma Inline (Set_Associated_Storage_Pool);
6045 pragma Inline (Set_Barrier_Function);
6046 pragma Inline (Set_Block_Node);
6047 pragma Inline (Set_Body_Entity);
6048 pragma Inline (Set_CR_Discriminant);
6049 pragma Inline (Set_C_Pass_By_Copy);
6050 pragma Inline (Set_Class_Wide_Type);
6051 pragma Inline (Set_Cloned_Subtype);
6052 pragma Inline (Set_Component_Bit_Offset);
6053 pragma Inline (Set_Component_Clause);
6054 pragma Inline (Set_Component_Size);
6055 pragma Inline (Set_Component_Type);
6056 pragma Inline (Set_Corresponding_Concurrent_Type);
6057 pragma Inline (Set_Corresponding_Discriminant);
6058 pragma Inline (Set_Corresponding_Equality);
6059 pragma Inline (Set_Corresponding_Record_Type);
6060 pragma Inline (Set_Corresponding_Remote_Type);
6061 pragma Inline (Set_Debug_Info_Off);
6062 pragma Inline (Set_Debug_Renaming_Link);
6063 pragma Inline (Set_DTC_Entity);
6064 pragma Inline (Set_DT_Position);
6065 pragma Inline (Set_Default_Expr_Function);
6066 pragma Inline (Set_Default_Expressions_Processed);
6067 pragma Inline (Set_Default_Value);
6068 pragma Inline (Set_Delay_Cleanups);
6069 pragma Inline (Set_Delay_Subprogram_Descriptors);
6070 pragma Inline (Set_Delta_Value);
6071 pragma Inline (Set_Dependent_Instances);
6072 pragma Inline (Set_Depends_On_Private);
6073 pragma Inline (Set_Digits_Value);
6074 pragma Inline (Set_Directly_Designated_Type);
6075 pragma Inline (Set_Discard_Names);
6076 pragma Inline (Set_Discriminal);
6077 pragma Inline (Set_Discriminal_Link);
6078 pragma Inline (Set_Discriminant_Checking_Func);
6079 pragma Inline (Set_Discriminant_Constraint);
6080 pragma Inline (Set_Discriminant_Default_Value);
6081 pragma Inline (Set_Discriminant_Number);
6082 pragma Inline (Set_Elaborate_All_Desirable);
6083 pragma Inline (Set_Elaboration_Entity);
6084 pragma Inline (Set_Elaboration_Entity_Required);
6085 pragma Inline (Set_Enclosing_Scope);
6086 pragma Inline (Set_Entry_Accepted);
6087 pragma Inline (Set_Entry_Bodies_Array);
6088 pragma Inline (Set_Entry_Cancel_Parameter);
6089 pragma Inline (Set_Entry_Component);
6090 pragma Inline (Set_Entry_Formal);
6091 pragma Inline (Set_Entry_Parameters_Type);
6092 pragma Inline (Set_Enum_Pos_To_Rep);
6093 pragma Inline (Set_Enumeration_Pos);
6094 pragma Inline (Set_Enumeration_Rep);
6095 pragma Inline (Set_Enumeration_Rep_Expr);
6096 pragma Inline (Set_Equivalent_Type);
6097 pragma Inline (Set_Esize);
6098 pragma Inline (Set_Exception_Code);
6099 pragma Inline (Set_Extra_Accessibility);
6100 pragma Inline (Set_Extra_Constrained);
6101 pragma Inline (Set_Extra_Formal);
6102 pragma Inline (Set_Finalization_Chain_Entity);
6103 pragma Inline (Set_First_Entity);
6104 pragma Inline (Set_First_Index);
6105 pragma Inline (Set_First_Literal);
6106 pragma Inline (Set_First_Optional_Parameter);
6107 pragma Inline (Set_First_Private_Entity);
6108 pragma Inline (Set_First_Rep_Item);
6109 pragma Inline (Set_Freeze_Node);
6110 pragma Inline (Set_From_With_Type);
6111 pragma Inline (Set_Full_View);
6112 pragma Inline (Set_Function_Returns_With_DSP);
6113 pragma Inline (Set_Generic_Renamings);
6114 pragma Inline (Set_Girder_Constraint);
6115 pragma Inline (Set_Handler_Records);
6116 pragma Inline (Set_Has_Aliased_Components);
6117 pragma Inline (Set_Has_Alignment_Clause);
6118 pragma Inline (Set_Has_All_Calls_Remote);
6119 pragma Inline (Set_Has_Atomic_Components);
6120 pragma Inline (Set_Has_Biased_Representation);
6121 pragma Inline (Set_Has_Completion);
6122 pragma Inline (Set_Has_Completion_In_Body);
6123 pragma Inline (Set_Has_Complex_Representation);
6124 pragma Inline (Set_Has_Component_Size_Clause);
6125 pragma Inline (Set_Has_Controlled_Component);
6126 pragma Inline (Set_Has_Controlling_Result);
6127 pragma Inline (Set_Has_Convention_Pragma);
6128 pragma Inline (Set_Has_Delayed_Freeze);
6129 pragma Inline (Set_Has_Discriminants);
6130 pragma Inline (Set_Has_Enumeration_Rep_Clause);
6131 pragma Inline (Set_Has_Exit);
6132 pragma Inline (Set_Has_External_Tag_Rep_Clause);
6133 pragma Inline (Set_Has_Fully_Qualified_Name);
6134 pragma Inline (Set_Has_Gigi_Rep_Item);
6135 pragma Inline (Set_Has_Homonym);
6136 pragma Inline (Set_Has_Machine_Radix_Clause);
6137 pragma Inline (Set_Has_Master_Entity);
6138 pragma Inline (Set_Has_Missing_Return);
6139 pragma Inline (Set_Has_Nested_Block_With_Handler);
6140 pragma Inline (Set_Has_Forward_Instantiation);
6141 pragma Inline (Set_Has_Non_Standard_Rep);
6142 pragma Inline (Set_Has_Object_Size_Clause);
6143 pragma Inline (Set_Has_Per_Object_Constraint);
6144 pragma Inline (Set_Has_Pragma_Controlled);
6145 pragma Inline (Set_Has_Pragma_Elaborate_Body);
6146 pragma Inline (Set_Has_Pragma_Inline);
6147 pragma Inline (Set_Has_Pragma_Pack);
6148 pragma Inline (Set_Has_Pragma_Pure_Function);
6149 pragma Inline (Set_Has_Pragma_Unreferenced);
6150 pragma Inline (Set_Has_Primitive_Operations);
6151 pragma Inline (Set_Has_Private_Declaration);
6152 pragma Inline (Set_Has_Qualified_Name);
6153 pragma Inline (Set_Has_Record_Rep_Clause);
6154 pragma Inline (Set_Has_Recursive_Call);
6155 pragma Inline (Set_Has_Size_Clause);
6156 pragma Inline (Set_Has_Small_Clause);
6157 pragma Inline (Set_Has_Specified_Layout);
6158 pragma Inline (Set_Has_Storage_Size_Clause);
6159 pragma Inline (Set_Has_Subprogram_Descriptor);
6160 pragma Inline (Set_Has_Task);
6161 pragma Inline (Set_Has_Unchecked_Union);
6162 pragma Inline (Set_Has_Unknown_Discriminants);
6163 pragma Inline (Set_Has_Volatile_Components);
6164 pragma Inline (Set_Hiding_Loop_Variable);
6165 pragma Inline (Set_Homonym);
6166 pragma Inline (Set_In_Package_Body);
6167 pragma Inline (Set_In_Private_Part);
6168 pragma Inline (Set_In_Use);
6169 pragma Inline (Set_Inner_Instances);
6170 pragma Inline (Set_Interface_Name);
6171 pragma Inline (Set_Is_AST_Entry);
6172 pragma Inline (Set_Is_Abstract);
6173 pragma Inline (Set_Is_Access_Constant);
6174 pragma Inline (Set_Is_Aliased);
6175 pragma Inline (Set_Is_Asynchronous);
6176 pragma Inline (Set_Is_Atomic);
6177 pragma Inline (Set_Is_Bit_Packed_Array);
6178 pragma Inline (Set_Is_CPP_Class);
6179 pragma Inline (Set_Is_Called);
6180 pragma Inline (Set_Is_Character_Type);
6181 pragma Inline (Set_Is_Child_Unit);
6182 pragma Inline (Set_Is_Compilation_Unit);
6183 pragma Inline (Set_Is_Completely_Hidden);
6184 pragma Inline (Set_Is_Concurrent_Record_Type);
6185 pragma Inline (Set_Is_Constr_Subt_For_U_Nominal);
6186 pragma Inline (Set_Is_Constr_Subt_For_UN_Aliased);
6187 pragma Inline (Set_Is_Constrained);
6188 pragma Inline (Set_Is_Constructor);
6189 pragma Inline (Set_Is_Controlled);
6190 pragma Inline (Set_Is_Controlling_Formal);
6191 pragma Inline (Set_Is_Destructor);
6192 pragma Inline (Set_Is_Discrim_SO_Function);
6193 pragma Inline (Set_Is_Dispatching_Operation);
6194 pragma Inline (Set_Is_Eliminated);
6195 pragma Inline (Set_Is_Entry_Formal);
6196 pragma Inline (Set_Is_Exported);
6197 pragma Inline (Set_Is_First_Subtype);
6198 pragma Inline (Set_Is_For_Access_Subtype);
6199 pragma Inline (Set_Is_Formal_Subprogram);
6200 pragma Inline (Set_Is_Frozen);
6201 pragma Inline (Set_Is_Generic_Actual_Type);
6202 pragma Inline (Set_Is_Generic_Instance);
6203 pragma Inline (Set_Is_Generic_Type);
6204 pragma Inline (Set_Is_Hidden);
6205 pragma Inline (Set_Is_Hidden_Open_Scope);
6206 pragma Inline (Set_Is_Immediately_Visible);
6207 pragma Inline (Set_Is_Imported);
6208 pragma Inline (Set_Is_Inlined);
6209 pragma Inline (Set_Is_Instantiated);
6210 pragma Inline (Set_Is_Internal);
6211 pragma Inline (Set_Is_Interrupt_Handler);
6212 pragma Inline (Set_Is_Intrinsic_Subprogram);
6213 pragma Inline (Set_Is_Itype);
6214 pragma Inline (Set_Is_Known_Valid);
6215 pragma Inline (Set_Is_Limited_Composite);
6216 pragma Inline (Set_Is_Limited_Record);
6217 pragma Inline (Set_Is_Machine_Code_Subprogram);
6218 pragma Inline (Set_Is_Non_Static_Subtype);
6219 pragma Inline (Set_Is_Null_Init_Proc);
6220 pragma Inline (Set_Is_Optional_Parameter);
6221 pragma Inline (Set_Is_Package_Body_Entity);
6222 pragma Inline (Set_Is_Packed);
6223 pragma Inline (Set_Is_Packed_Array_Type);
6224 pragma Inline (Set_Is_Potentially_Use_Visible);
6225 pragma Inline (Set_Is_Preelaborated);
6226 pragma Inline (Set_Is_Private_Composite);
6227 pragma Inline (Set_Is_Private_Descendant);
6228 pragma Inline (Set_Is_Psected);
6229 pragma Inline (Set_Is_Public);
6230 pragma Inline (Set_Is_Pure);
6231 pragma Inline (Set_Is_Remote_Call_Interface);
6232 pragma Inline (Set_Is_Remote_Types);
6233 pragma Inline (Set_Is_Renaming_Of_Object);
6234 pragma Inline (Set_Is_Shared_Passive);
6235 pragma Inline (Set_Is_Statically_Allocated);
6236 pragma Inline (Set_Is_Tag);
6237 pragma Inline (Set_Is_Tagged_Type);
6238 pragma Inline (Set_Is_True_Constant);
6239 pragma Inline (Set_Is_Unchecked_Union);
6240 pragma Inline (Set_Is_Unsigned_Type);
6241 pragma Inline (Set_Is_VMS_Exception);
6242 pragma Inline (Set_Is_Valued_Procedure);
6243 pragma Inline (Set_Is_Visible_Child_Unit);
6244 pragma Inline (Set_Is_Volatile);
6245 pragma Inline (Set_Last_Entity);
6246 pragma Inline (Set_Lit_Indexes);
6247 pragma Inline (Set_Lit_Strings);
6248 pragma Inline (Set_Machine_Radix_10);
6249 pragma Inline (Set_Master_Id);
6250 pragma Inline (Set_Materialize_Entity);
6251 pragma Inline (Set_Mechanism);
6252 pragma Inline (Set_Modulus);
6253 pragma Inline (Set_Needs_Debug_Info);
6254 pragma Inline (Set_Needs_No_Actuals);
6255 pragma Inline (Set_Next_Inlined_Subprogram);
6256 pragma Inline (Set_No_Pool_Assigned);
6257 pragma Inline (Set_No_Return);
6258 pragma Inline (Set_Non_Binary_Modulus);
6259 pragma Inline (Set_Nonzero_Is_True);
6260 pragma Inline (Set_Normalized_First_Bit);
6261 pragma Inline (Set_Normalized_Position);
6262 pragma Inline (Set_Normalized_Position_Max);
6263 pragma Inline (Set_Not_Source_Assigned);
6264 pragma Inline (Set_Object_Ref);
6265 pragma Inline (Set_Original_Array_Type);
6266 pragma Inline (Set_Original_Record_Component);
6267 pragma Inline (Set_Packed_Array_Type);
6268 pragma Inline (Set_Parent_Subtype);
6269 pragma Inline (Set_Primitive_Operations);
6270 pragma Inline (Set_Prival);
6271 pragma Inline (Set_Privals_Chain);
6272 pragma Inline (Set_Private_Dependents);
6273 pragma Inline (Set_Private_View);
6274 pragma Inline (Set_Protected_Body_Subprogram);
6275 pragma Inline (Set_Protected_Formal);
6276 pragma Inline (Set_Protected_Operation);
6277 pragma Inline (Set_RM_Size);
6278 pragma Inline (Set_Reachable);
6279 pragma Inline (Set_Referenced);
6280 pragma Inline (Set_Referenced_Object);
6281 pragma Inline (Set_Register_Exception_Call);
6282 pragma Inline (Set_Related_Array_Object);
6283 pragma Inline (Set_Related_Instance);
6284 pragma Inline (Set_Renamed_Entity);
6285 pragma Inline (Set_Renamed_Object);
6286 pragma Inline (Set_Renaming_Map);
6287 pragma Inline (Set_Return_Present);
6288 pragma Inline (Set_Returns_By_Ref);
6289 pragma Inline (Set_Reverse_Bit_Order);
6290 pragma Inline (Set_Scalar_Range);
6291 pragma Inline (Set_Scale_Value);
6292 pragma Inline (Set_Scope_Depth_Value);
6293 pragma Inline (Set_Sec_Stack_Needed_For_Return);
6294 pragma Inline (Set_Shadow_Entities);
6295 pragma Inline (Set_Shared_Var_Assign_Proc);
6296 pragma Inline (Set_Shared_Var_Read_Proc);
6297 pragma Inline (Set_Size_Check_Code);
6298 pragma Inline (Set_Size_Depends_On_Discriminant);
6299 pragma Inline (Set_Size_Known_At_Compile_Time);
6300 pragma Inline (Set_Small_Value);
6301 pragma Inline (Set_Spec_Entity);
6302 pragma Inline (Set_Storage_Size_Variable);
6303 pragma Inline (Set_Strict_Alignment);
6304 pragma Inline (Set_String_Literal_Length);
6305 pragma Inline (Set_String_Literal_Low_Bound);
6306 pragma Inline (Set_Suppress_Access_Checks);
6307 pragma Inline (Set_Suppress_Accessibility_Checks);
6308 pragma Inline (Set_Suppress_Discriminant_Checks);
6309 pragma Inline (Set_Suppress_Division_Checks);
6310 pragma Inline (Set_Suppress_Elaboration_Checks);
6311 pragma Inline (Set_Suppress_Elaboration_Warnings);
6312 pragma Inline (Set_Suppress_Index_Checks);
6313 pragma Inline (Set_Suppress_Init_Proc);
6314 pragma Inline (Set_Suppress_Length_Checks);
6315 pragma Inline (Set_Suppress_Overflow_Checks);
6316 pragma Inline (Set_Suppress_Range_Checks);
6317 pragma Inline (Set_Suppress_Storage_Checks);
6318 pragma Inline (Set_Suppress_Style_Checks);
6319 pragma Inline (Set_Suppress_Tag_Checks);
6320 pragma Inline (Set_Underlying_Full_View);
6321 pragma Inline (Set_Unset_Reference);
6322 pragma Inline (Set_Uses_Sec_Stack);
6323 pragma Inline (Set_Vax_Float);
6324 pragma Inline (Set_Warnings_Off);
6326 -- END XEINFO INLINES
6328 -- The following Inline pragmas are *not* read by xeinfo when building
6329 -- the C version of this interface automatically (so the C version will
6330 -- end up making out of line calls). The pragma scan in xeinfo will be
6331 -- terminated on encountering the END XEINFO INLINES line. We inline
6332 -- things here which are small, but not of the canonical attribute
6333 -- access/set format that can be handled by xeinfo.
6335 pragma Inline (Is_Package);
6336 pragma Inline (Is_Wrapper_Package);
6337 pragma Inline (Known_RM_Size);
6338 pragma Inline (Known_Static_Component_Bit_Offset);
6339 pragma Inline (Known_Static_RM_Size);
6340 pragma Inline (Scope_Depth);
6341 pragma Inline (Scope_Depth_Set);
6342 pragma Inline (Unknown_RM_Size);
6344 end Einfo;