Merge from mainline
[official-gcc.git] / gcc / ada / einfo.ads
blobb8a4c461ed28f3d461b5699d2252638ddc49d420
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- E I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2006, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
21 -- --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
28 -- --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
31 -- --
32 ------------------------------------------------------------------------------
34 with Snames; use Snames;
35 with Types; use Types;
36 with Uintp; use Uintp;
37 with Urealp; use Urealp;
39 package Einfo is
41 -- This package defines the annotations to the abstract syntax tree that
42 -- are needed to support semantic processing of an Ada compilation.
44 -- Note that after editing this spec and the corresponding body it is
45 -- required to run ceinfo to check the consistentcy of spec and body.
46 -- See ceinfo.adb for more information about the checks made.
48 -- These annotations are for the most part attributes of declared entities,
49 -- and they correspond to conventional symbol table information. Other
50 -- attributes include sets of meanings for overloaded names, possible
51 -- types for overloaded expressions, flags to indicate deferred constants,
52 -- incomplete types, etc. These attributes are stored in available fields
53 -- in tree nodes (i.e. fields not used by the parser, as defined by the
54 -- Sinfo package specification), and accessed by means of a set of
55 -- subprograms which define an abstract interface.
57 -- There are two kinds of semantic information
59 -- First, the tree nodes with the following Nkind values:
61 -- N_Defining_Identifier
62 -- N_Defining_Character_Literal
63 -- N_Defining_Operator_Symbol
65 -- are called Entities, and constitute the information that would often
66 -- be stored separately in a symbol table. These nodes are all extended
67 -- to provide extra space, and contain fields which depend on the entity
68 -- kind, as defined by the contents of the Ekind field. The use of the
69 -- Ekind field, and the associated fields in the entity, are defined
70 -- in this package, as are the access functions to these fields.
72 -- Second, in some cases semantic information is stored directly in other
73 -- kinds of nodes, e.g. the Etype field, used to indicate the type of an
74 -- expression. The access functions to these fields are defined in the
75 -- Sinfo package, but their full documentation is to be found in
76 -- the Einfo package specification.
78 -- Declaration processing places information in the nodes of their defining
79 -- identifiers. Name resolution places in all other occurrences of an
80 -- identifier a pointer to the corresponding defining occurrence.
82 --------------------------------
83 -- The XEINFO Utility Program --
84 --------------------------------
86 -- XEINFO is a utility program which automatically produces a C header file,
87 -- a-xeinfo.h from the spec and body of package Einfo. It reads the input
88 -- files einfo.ads and einfo.adb and produces the output file a-xeinfo.h.
90 -- In order for this utility program to operate correctly, the form of the
91 -- einfo.ads and einfo.adb files must meet certain requirements and be laid
92 -- out in a specific manner.
94 -- The general form of einfo.ads is as follows:
96 -- type declaration for type Entity_Kind
97 -- subtype declarations declaring subranges of Entity_Kind
98 -- subtype declarations declaring synonyms for some standard types
99 -- function specs for attributes
100 -- procedure specs
101 -- pragma Inline declarations
103 -- This order must be observed. There are no restrictions on the procedures,
104 -- since the C header file only includes functions (Gigi is not allowed to
105 -- modify the generated tree). However, functions are required to have headers
106 -- that fit on a single line.
108 -- XEINFO reads and processes the function specs and the pragma Inlines. For
109 -- functions that are declared as inlined, XEINFO reads the corresponding body
110 -- from xeinfo.adb, and processes it into C code. This results in some strict
111 -- restrictions on which functions can be inlined:
113 -- The function spec must be on a single line
115 -- There can only be a single statement, contained on a single line,
116 -- not counting any pragma Assert statements.
118 -- This single statement must either be a function call with simple,
119 -- single token arguments, or it must be a membership test of the form
120 -- a in b, where a and b are single tokens.
122 -- For functions that are not inlined, there is no restriction on the body,
123 -- and XEINFO generates a direct reference in the C header file which allows
124 -- the C code in Gigi to directly call the corresponding Ada body.
126 ----------------------------------
127 -- Handling of Type'Size Values --
128 ----------------------------------
130 -- The Ada 95 RM contains some rather peculiar (to us!) rules on the value
131 -- of type'Size (see RM 13.3(55)). We have found that attempting to use
132 -- these RM Size values generally, and in particular for determining the
133 -- default size of objects, creates chaos, and major incompatibilies in
134 -- existing code.
136 -- We proceed as follows, for discrete and fixed-point subtypes, we have
137 -- two separate sizes for each subtype:
139 -- The Object_Size, which is used for determining the default size of
140 -- objects and components. This size value can be referred to using the
141 -- Object_Size attribute. The phrase "is used" here means that it is
142 -- the basis of the determination of the size. The backend is free to
143 -- pad this up if necessary for efficiency, e.g. an 8-bit stand-alone
144 -- character might be stored in 32 bits on a machine with no efficient
145 -- byte access instructions such as the Alpha.
147 -- The default rules for the value of Object_Size for fixed-point and
148 -- discrete types are as follows:
150 -- The Object_Size for base subtypes reflect the natural hardware
151 -- size in bits (see Ttypes and Cstand for integer types). For
152 -- enumeration and fixed-point base subtypes have 8. 16. 32 or 64
153 -- bits for this size, depending on the range of values to be stored.
155 -- The Object_Size of a subtype is the same as the Object_Size of
156 -- the subtype from which it is obtained.
158 -- The Object_Size of a derived base type is copied from the parent
159 -- base type, and the Object_Size of a derived first subtype is copied
160 -- from the parent first subtype.
162 -- The Value_Size which is the number of bits required to store a value
163 -- of the type. This size can be referred to using the Value_Size
164 -- attribute. This value is used to determine how tightly to pack
165 -- records or arrays with components of this type, and also affects
166 -- the semantics of unchecked conversion (unchecked conversions where
167 -- the Value_Size values differ generate a warning, and are potentially
168 -- target dependent).
170 -- The default rule for the value of Value_Size are as follows:
172 -- The Value_Size for a base subtype is the minimum number of bits
173 -- required to store all values of the type (including the sign bit
174 -- only if negative values are possible).
176 -- If a subtype statically matches the first subtype, then it has
177 -- by default the same Value_Size as the first subtype. This is a
178 -- consequence of RM 13.1(14) ("if two subtypes statically match,
179 -- then their subtype-specific aspects are the same".)
181 -- All other subtypes have a Value_Size corresponding to the minimum
182 -- number of bits required to store all values of the subtype. For
183 -- dynamic bounds, it is assumed that the value can range down or up
184 -- to the corresponding bound of the ancestor
186 -- The RM defined attribute Size corresponds to the Value_Size attribute
188 -- The Size attribute may be defined for a first-named subtype. This sets
189 -- the Value_Size of the first-named subtype to the given value, and the
190 -- Object_Size of this first-named subtype to the given value padded up
191 -- to an appropriate boundary. It is a consequence of the default rules
192 -- above that this Object_Size will apply to all further subtypes. On the
193 -- otyher hand, Value_Size is affected only for the first subtype, any
194 -- dynamic subtypes obtained from it directly, and any statically matching
195 -- subtypes. The Value_Size of any other static subtypes is not affected.
197 -- Value_Size and Object_Size may be explicitly set for any subtype using
198 -- an attribute definition clause. Note that the use of these attributes
199 -- can cause the RM 13.1(14) rule to be violated. If two access types
200 -- reference aliased objects whose subtypes have differing Object_Size
201 -- values as a result of explicit attribute definition clauses, then it
202 -- is erroneous to convert from one access subtype to the other.
204 -- At the implementation level, Esize stores the Object_Size and the
205 -- RM_Size field stores the Value_Size (and hence the value of the
206 -- Size attribute, which, as noted above, is equivalent to Value_Size).
208 -- To get a feel for the difference, consider the following examples (note
209 -- that in each case the base is short_short_integer with a size of 8):
211 -- Object_Size Value_Size
213 -- type x1 is range 0..5; 8 3
215 -- type x2 is range 0..5;
216 -- for x2'size use 12; 12 12
218 -- subtype x3 is x2 range 0 .. 3; 12 2
220 -- subtype x4 is x2'base range 0 .. 10; 8 4
222 -- subtype x5 is x2 range 0 .. dynamic; 12 (7)
224 -- subtype x6 is x2'base range 0 .. dynamic; 8 (7)
226 -- Note: the entries marked (7) are not actually specified by the Ada 95 RM,
227 -- but it seems in the spirit of the RM rules to allocate the minimum number
228 -- of bits known to be large enough to hold the given range of values.
230 -- So far, so good, but GNAT has to obey the RM rules, so the question is
231 -- under what conditions must the RM Size be used. The following is a list
232 -- of the occasions on which the RM Size must be used:
234 -- Component size for packed arrays or records
235 -- Value of the attribute Size for a type
236 -- Warning about sizes not matching for unchecked conversion
238 -- The RM_Size field keeps track of the RM Size as needed in these
239 -- three situations.
241 -- For types other than discrete and fixed-point types, the Object_Size
242 -- and Value_Size are the same (and equivalent to the RM attribute Size).
243 -- Only Size may be specified for such types.
245 -----------------------
246 -- Entity Attributes --
247 -----------------------
249 -- This section contains a complete list of the attributes that are defined
250 -- on entities. Some attributes apply to all entities, others only to certain
251 -- kinds of entities. In the latter case the attribute should only be set or
252 -- accessed if the Ekind field indicates an appropriate entity.
254 -- There are two kinds of attributes that apply to entities, stored and
255 -- synthesized. Stored attributes correspond to a field or flag in the entity
256 -- itself. Such attributes are identified in the table below by giving the
257 -- field or flag in the attribute that is used to hold the attribute value.
258 -- Synthesized attributes are not stored directly, but are rather computed as
259 -- needed from other attributes, or from information in the tree. These are
260 -- marked "synthesized" in the table below. The stored attributes have both
261 -- access functions and set procedures to set the corresponding values, while
262 -- synthesized attributes have only access functions.
264 -- Note: in the case of Node, Uint, or Elist fields, there are cases where
265 -- the same physical field is used for different purposes in different
266 -- entities, so these access functions should only be referenced for the
267 -- class of entities in which they are defined as being present. Flags are
268 -- not overlapped in this way, but nevertheless as a matter of style and
269 -- abstraction (which may or may not be checked by assertions in the body),
270 -- this restriction should be observed for flag fields as well.
272 -- Note: certain of the attributes on types apply only to base types, and
273 -- are so noted by the notation [base type only]. These are cases where the
274 -- attribute of any subtype is the same as the attribute of the base type.
275 -- The attribute can be referenced on a subtype (and automatically retrieves
276 -- the value from the base type). However, it is an error to try to set the
277 -- attribute on other than the base type, and if assertions are enabled,
278 -- an attempt to set the attribute on a subtype will raise an assert error.
280 -- Other attributes are noted as applying the implementation base type only.
281 -- These are representation attributes which must always apply to a full
282 -- non-private type, and where the attributes are always on the full type.
283 -- The attribute can be referenced on a subtype (and automatically retries
284 -- the value from the implementation base type). However, it is an error
285 -- to try to set the attribute on other than the implementation base type,
286 -- and if assertions are enabled, an attempt to set the attribute on a
287 -- subtype will raise an assert error.
289 -- Abstract_Interfaces (Elist24)
290 -- Present in record types and subtypes. List of abstract interfaces
291 -- implemented by a tagged type that are not already implemented by the
292 -- ancestors (Ada 2005: AI-251).
294 -- Abstract_Interface_Alias (Node25)
295 -- Present in subprograms that cover a primitive operation of an abstract
296 -- interface type. Points to its associated interface subprogram. It is
297 -- used to register the subprogram in secondary dispatch table of the
298 -- interface (Ada 2005: AI-251).
300 -- Accept_Address (Elist21)
301 -- Present in entries. If an accept has a statement sequence, then an
302 -- address variable is created, which is used to hold the address of the
303 -- parameters, as passed by the runtime. Accept_Address holds an element
304 -- list which represents a stack of entities for these address variables.
305 -- The current entry is the top of the stack, which is the last element
306 -- on the list. A stack is required to handle the case of nested select
307 -- statements referencing the same entry.
309 -- Actual_Subtype (Node17)
310 -- Present in variables, constants, and formal parameters. This is the
311 -- subtype imposed by the value of the object, as opposed to its nominal
312 -- subtype, which is imposed by the declaration. The actual subtype
313 -- differs from the nominal one when the latter is indefinite (as in the
314 -- case of an unconstrained formal parameter, or a variable declared
315 -- with an unconstrained type and an initial value). The nominal subtype
316 -- is the Etype entry for the entity. The Actual_Subtype field is set
317 -- only if the actual subtype differs from the nominal subtype. If the
318 -- actual and nominal subtypes are the same, then the Actual_Subtype
319 -- field is Empty, and Etype indicates both types.
321 -- For objects, the Actual_Subtype is set only if this is a discriminated
322 -- type. For arrays, the bounds of the expression are obtained and the
323 -- Etype of the object is directly the constrained subtype. This is
324 -- rather irregular, and the semantic checks that depend on the nominal
325 -- subtype being unconstrained use flag Is_Constr_Subt_For_U_Nominal(qv).
327 -- Access_Disp_Table (Elist16) [implementation base type only]
328 -- Present in record type entities. For a tagged type, points to the
329 -- dispatch tables associated with the tagged type. For a non-tagged
330 -- record, contains Empty.
332 -- Address_Clause (synthesized)
333 -- Applies to entries, objects and subprograms. Set if an address clause
334 -- is present which references the object or subprogram and points to
335 -- the N_Attribute_Definition_Clause node. Empty if no Address clause.
336 -- The expression in the address clause is always a constant that is
337 -- defined before the entity to which the address clause applies.
338 -- Note: Gigi references this field in E_Task_Type entities???
340 -- Address_Taken (Flag104)
341 -- Present in all entities. Set if the Address or Unrestricted_Access
342 -- attribute is applied directly to the entity, i.e. the entity is the
343 -- entity of the prefix of the attribute reference. Used by Gigi to
344 -- make sure that the address can be meaningfully taken.
346 -- Alias (Node18)
347 -- Present in overloaded entities (literals, subprograms, entries).
348 -- Points to parent subprogram of a derived subprogram. Also used for
349 -- a subprogram renaming, where it points to the renamed subprogram.
350 -- Always empty for entries.
352 -- Alignment (Uint14)
353 -- Present in entities for types and also in constants, variables,
354 -- loop parameters, and formal parameters. This indicates the desired
355 -- alignment for a type, or the actual alignment for an object. A value
356 -- of zero (Uint_0) indicates that the alignment has not been set yet.
357 -- The alignment can be set by an explicit alignment clause, or set by
358 -- the front-end in package Layout, or set by the back-end as part of
359 -- the back end back-annotation process. The alignment field is also
360 -- present in E_Exception entities, but there it is used only by the
361 -- back-end for back annotation.
363 -- Alignment_Clause (synthesized)
364 -- Applies to all entities for types and objects. If an alignment
365 -- attribute definition clause is present for the entity, then this
366 -- function returns the N_Attribute_Definition clause that specifies the
367 -- alignment. If no alignment clause applies to the type, then the call
368 -- to this function returns Empty. Note that the call can return a
369 -- non-Empty value even if Has_Alignment_Clause is not set (happens with
370 -- subtype and derived type declarations). Note also that a record
371 -- definition clause with an (obsolescent) mod clause is converted
372 -- into an attribute definition clause for this purpose.
374 -- Ancestor_Subtype (synthesized)
375 -- Applies to all type and subtype entities. If the argument is a
376 -- subtype then it returns the subtype or type from which the subtype
377 -- was obtained, otherwise it returns Empty.
379 -- Associated_Formal_Package (Node12)
380 -- Present in packages that are the actuals of formal_packages. Points
381 -- to the entity in the declaration for the formal package.
383 -- Associated_Node_For_Itype (Node8)
384 -- Present in all type and subtype entities. Set non-Empty only for
385 -- Itypes. Set to point to the associated node for the Itype, i.e.
386 -- the node whose elaboration generated the Itype. This is used for
387 -- copying trees, to determine whether or not to copy an Itype, and
388 -- also for accessibility checks on anonymous access types. This
389 -- node is typically an object declaration, component declaration,
390 -- type or subtype declaration. For an access discriminant in a type
391 -- declaration, the associated_node_for_itype is the discriminant
392 -- specification. For an access parameter it is the enclosing subprogram
393 -- declaration.
395 -- Associated_Storage_Pool (Node22) [root type only]
396 -- Present in simple and general access type entities. References the
397 -- storage pool to be used for the corresponding collection. A value of
398 -- Empty means that the default pool is to be used. This is present
399 -- only in the root type, since derived types must have the same pool
400 -- as the parent type.
402 -- Associated_Final_Chain (Node23)
403 -- Present in simple and general access type entities. References the
404 -- List_Controller object that holds the finalization chain on which
405 -- are attached dynamically allocated objects referenced by the access
406 -- type. Empty when the access type cannot reference a controlled object.
408 -- Barrier_Function (Node12)
409 -- Present in protected entries and entry families. This is the
410 -- subprogram declaration for the body of the function that returns
411 -- the value of the entry barrier.
413 -- Base_Type (synthesized)
414 -- Applies to all type entities. Returns the base type of a type or
415 -- subtype. The base type of a type is the type itself. The base type
416 -- of a subtype is the type that it constrains (which is always a type
417 -- entity, not some other subtype). Note that in the case of a subtype
418 -- of a private type, it is possible for the base type attribute to
419 -- return a private type, even if the subtype to which it applies is
420 -- non-private. See also Implementation_Base_Type. Note: it is allowed
421 -- to apply Base_Type to other than a type, in which case it simply
422 -- returns the entity unchanged.
424 -- Block_Node (Node11)
425 -- Present in block entities. Points to the identifier in the
426 -- Block_Statement itself. Used when retrieving the block construct
427 -- for finalization purposes, The block entity has an implicit label
428 -- declaration in the enclosing declarative part, and has otherwise
429 -- no direct connection in the tree with the block statement. The
430 -- link is to the identifier (which is an occurence of the entity)
431 -- and not to the block_statement itself, because the statement may
432 -- be rewritten, e.g. in the process of removing dead code.
434 -- Body_Entity (Node19)
435 -- Present in package and generic package entities, points to the
436 -- corresponding package body entity if one is present.
438 -- Body_Needed_For_SAL (Flag40)
439 -- Present in package and subprogram entities that are compilation
440 -- units. Indicates that the source for the body must be included
441 -- when the unit is part of a standalone library.
443 -- C_Pass_By_Copy (Flag125) [implementation base type only]
444 -- Present in record types. Set if a pragma Convention for the record
445 -- type specifies convention C_Pass_By_Copy. This convention name is
446 -- treated as identical in all respects to convention C, except that
447 -- if it is specified for a record type, then the C_Pass_By_Copy flag
448 -- is set, and if a foreign convention subprogram has a formal of the
449 -- corresponding type, then the parameter passing mechanism will be
450 -- set to By_Copy (unless specifically overridden by an Import or
451 -- Export pragma).
453 -- Can_Never_Be_Null (Flag38)
454 -- This flag is present in all entities, but can only be set in an
455 -- object which can never have a null value. This is used to avoid
456 -- unncessary resetting of the Is_Known_Non_Null flag for such
457 -- entities. The cases where this is set True are constant access
458 -- values initialized to a non-null value, and access parameters.
460 -- Chars (Name1)
461 -- Present in all entities. This field contains an entry into the names
462 -- table that has the character string of the identifier, character
463 -- literal or operator symbol. See Namet for further details. Note that
464 -- throughout the processing of the front end, this name is the simple
465 -- unqualified name. However, just before gigi is called, a call is made
466 -- to Qualify_All_Entity_Names. This causes entity names to be qualified
467 -- using the encoding described in exp_dbug.ads, and from that point on
468 -- (including post gigi steps such as cross-reference generation), the
469 -- entities will contain the encoded qualified names.
471 -- Checks_May_Be_Suppressed (Flag31)
472 -- Present in all entities. Set if a pragma Suppress or Unsuppress
473 -- mentions the entity specifically in the second argument. If this
474 -- flag is set the the Global_Entity_Suppress and Local_Entity_Suppress
475 -- tables must be consulted to determine if the is actually an active
476 -- Suppress or Unsuppress pragma that applies to the entity.
478 -- Class_Wide_Type (Node9)
479 -- Present in all type entities. For a tagged type or subtype, returns
480 -- the corresponding implicitly declared class-wide type. Set to Empty
481 -- for non-tagged types.
483 -- Cloned_Subtype (Node16)
484 -- Present in E_Record_Subtype and E_Class_Wide_Subtype entities.
485 -- Each such entity can either have a Discriminant_Constraint, in
486 -- which case it represents a distinct type from the base type (and
487 -- will have a list of components and discrimants in the list headed by
488 -- First_Entity) or else no such constraint, in which case it will be a
489 -- copy of the base type.
491 -- o Each element of the list in First_Entity is copied from the base
492 -- type; in that case, this field is Empty.
494 -- o The list in First_Entity is shared with the base type; in that
495 -- case, this field points to that entity.
497 -- A record or classwide subtype may also be a copy of some other
498 -- subtype and share the entities in the First_Entity with that subtype.
499 -- In that case, this field points to that subtype.
501 -- For E_Class_Wide_Subtype, the presence of Equivalent_Type overrides
502 -- this field. Note that this field ONLY appears in subtype entries, not
503 -- in type entries, it is not present, and it is an error to reference
504 -- Cloned_Subtype in an E_Record_Type or E_Class_Wide_Type entity.
506 -- Comes_From_Source
507 -- This flag appears on all nodes, including entities, and indicates
508 -- that the node was created by the scanner or parser from the original
509 -- source. Thus for entities, it indicates that the entity is defined
510 -- in the original source program.
512 -- Component_Alignment (special field) [base type only]
513 -- Present in array and record entities. Contains a value of type
514 -- Component_Alignment_Kind indicating the alignment of components.
515 -- Set to Calign_Default normally, but can be overridden by use of
516 -- the Component_Alignment pragma. Note: this field is currently
517 -- stored in a non-standard way, see body for details.
519 -- Component_Bit_Offset (Uint11)
520 -- Present in record components (E_Component, E_Discriminant) if a
521 -- component clause applies to the component. First bit position of
522 -- given component, computed from the first bit and position values
523 -- given in the component clause. A value of No_Uint means that the
524 -- value is not yet known. The value can be set by the appearence of
525 -- an explicit component clause in a record representation clause,
526 -- or it can be set by the front-end in package Layout, or it can be
527 -- set by the backend. By the time backend processing is completed,
528 -- this field is always set. A negative value is used to represent
529 -- a value which is not known at compile time, and must be computed
530 -- at run-time (this happens if fields of a record have variable
531 -- lengths). See package Layout for details of these values.
533 -- Note: this field is obsolescent, to be eventually replaced entirely
534 -- by Normalized_First_Bit and Normalized_Position, but for the moment,
535 -- gigi is still using (and back annotating) this field, and gigi does
536 -- not know about the new fields. For the front end layout case, the
537 -- Component_Bit_Offset field is only set if it is static, and otherwise
538 -- the new Normalized_First_Bit and Normalized_Position fields are used.
540 -- Component_Clause (Node13)
541 -- Present in record components and discriminants. If a record
542 -- representation clause is present for the corresponding record
543 -- type a that specifies a position for the component, then the
544 -- Component_Clause field of the E_Component entity points to the
545 -- N_Component_Clause node. Set to Empty if no record representation
546 -- clause was present, or if there was no specification for this
547 -- component.
549 -- Component_Size (Uint22) [implementation base type only]
550 -- Present in array types. It contains the component size value for
551 -- the array. A value of No_Uint means that the value is not yet set.
552 -- The value can be set by the use of a component size clause, or
553 -- by the front end in package Layout, or by the backend. A negative
554 -- value is used to represent a value which is not known at compile
555 -- time, and must be computed at run-time (this happens if the type
556 -- of the component has a variable length size). See package Layout
557 -- for details of these values.
559 -- Component_Type (Node20) [implementation base type only]
560 -- Present in array types and string types. References component type.
562 -- Constant_Value (synthesized)
563 -- Applies to variables, constants, named integers, and named reals.
564 -- Obtains the initialization expression for the entity. Will return
565 -- Empty for for a deferred constant whose full view is not available
566 -- or in some other cases of internal entities, which cannot be treated
567 -- as constants from the point of view of constant folding. Empty is
568 -- also returned for variables with no initialization expression.
570 -- Corresponding_Concurrent_Type (Node18)
571 -- Present in record types that are constructed by the expander to
572 -- represent task and protected types (Is_Concurrent_Record_Type flag
573 -- set True). Points to the entity for the corresponding task type or
574 -- protected type.
576 -- Corresponding_Discriminant (Node19)
577 -- Present in discriminants of a derived type, when the discriminant is
578 -- used to constrain a discriminant of the parent type. Points to the
579 -- corresponding discriminant in the parent type. Otherwise it is Empty.
581 -- Corresponding_Equality (Node13)
582 -- Present in function entities for implicit inequality operators.
583 -- Denotes the explicit or derived equality operation that creates
584 -- the implicit inequality. Note that this field is not present in
585 -- other function entities, only in implicit inequality routines,
586 -- where Comes_From_Source is always False.
588 -- Corresponding_Record_Type (Node18)
589 -- Present in protected and task types and subtypes. References the
590 -- entity for the corresponding record type constructed by the expander
591 -- (see Exp_Ch9). This type is used to represent values of the task type.
593 -- Corresponding_Remote_Type (Node22)
594 -- Present in record types that describe the fat pointer structure for
595 -- Remote_Access_To_Subrogram types. References the original access type.
597 -- CR_Discriminant (Node23)
598 -- Present in discriminants of concurrent types. Denotes the homologous
599 -- discriminant of the corresponding record type. The CR_Discriminant is
600 -- created at the same time as the discriminal, and used to replace
601 -- occurrences of the discriminant within the type declaration.
603 -- Current_Use_Clause (Node25)
604 -- Present in packages. Indicates the use clause currently in scope
605 -- that makes the package use_visible. Used to detect redundant use
606 -- clauses for the same package.
608 -- Current_Value (Node9)
609 -- Present in E_Variable, E_Out_Parameter and E_In_Out_Parameter
610 -- entities. Set non-Empty if the (constant) current value of the
611 -- variable is known. This value is valid only for references from
612 -- the same sequential scope as the entity. The sequential scope
613 -- of an entity includes the immediate scope and any contained
614 -- scopes that are package specs, package bodies, or blocks (at
615 -- any nesting level). For convenience in coding, this field is
616 -- also present in other object entities (E_Loop_Parameter and
617 -- E_In_Parameter and E_Constant), but is not used to hold a
618 -- constant value, since value tracking is not needed in this case.
620 -- Another related use of this field is to record information
621 -- about the value obtained from an IF statement condition.
622 -- If the IF/ELSIF condition has the form "[NOT] OBJ RELOP VAL",
623 -- where OBJ is a reference to an entity with a Current_Value field,
624 -- RELOP is one of the six relational operators, and VAL is a compile-
625 -- time known value, then the Current_Value field if OBJ is set to
626 -- point to the N_If_Statement or N_Elsif_Part node of the relevant
627 -- construct. For more details on this usage, see the procedure
628 -- Exp_Util.Get_Current_Value_Condition.
630 -- Debug_Info_Off (Flag166)
631 -- Present in all entities. Set if a pragma Suppress_Debug_Info applies
632 -- to the entity, or if internal processing in the compiler determines
633 -- that suppression of debug information is desirable. Note that this
634 -- flag is only for use by the front end as part of the processing for
635 -- determining if Needs_Debug_Info should be set. The back end should
636 -- always test Needs_Debug_Info, it should never test Debug_Info_Off.
638 -- Debug_Renaming_Link (Node13)
639 -- Used to link the enumeration literal of a debug renaming declaration
640 -- to the renamed entity. See Exp_Dbug.Debug_Renaming_Declaration for
641 -- details of the use of this field.
643 -- Declaration_Node (synthesized)
644 -- Applies to all entities. Returns the tree node for the declaration
645 -- that declared the entity. Normally this is just the Parent of the
646 -- entity. One exception arises with child units, where the parent of
647 -- the entity is a selected component or a defining program unit name.
648 -- Another exception is that if the entity is an incomplete type that
649 -- has been completed, then we obtain the declaration node denoted by
650 -- the full type, i.e. the full type declaration node.
652 -- Default_Expr_Function (Node21)
653 -- Present in parameters. It holds the entity of the parameterless
654 -- function that is built to evaluate the default expression if it is
655 -- more complex than a simple identifier or literal. For the latter
656 -- simple cases or if there is no default value, this field is Empty.
658 -- Default_Expressions_Processed (Flag108)
659 -- A flag in subprograms (functions, operators, procedures) and in
660 -- entries and entry families used to indicate that default expressions
661 -- have been processed and to avoid multiple calls to process the
662 -- default expressions (see Freeze.Process_Default_Expressions), which
663 -- would not only waste time, but also generate false error messages.
665 -- Default_Value (Node20)
666 -- Present in formal parameters. Points to the node representing the
667 -- expression for the default value for the parameter. Empty if the
668 -- parameter has no default value (which is always the case for OUT
669 -- and IN OUT parameters in the absence of errors).
671 -- Delay_Cleanups (Flag114)
672 -- Present in entities that have finalization lists (subprograms
673 -- blocks, and tasks). Set if there are pending generic body
674 -- instantiations for the corresponding entity. If this flag is
675 -- set, then generation of cleanup actions for the corresponding
676 -- entity must be delayed, since the insertion of the generic body
677 -- may affect cleanup generation (see Inline for further details).
679 -- Delay_Subprogram_Descriptors (Flag50)
680 -- Present in entities for which exception subprogram descriptors
681 -- are generated (subprograms, package declarations and package
682 -- bodies). Present if there are pending generic body instantiations
683 -- for the corresponding entity. If this flag is set, then generation
684 -- of the subprogram descriptor for the corresponding enities must
685 -- be delayed, since the insertion of the generic body may add entries
686 -- to the list of handlers.
688 -- Note: for subprograms, Delay_Subprogram_Descriptors is set if and
689 -- only if Delay_Cleanups is set. But Delay_Cleanups can be set for a
690 -- a block (in which case Delay_Subprogram_Descriptors is set for the
691 -- containing subprogram). In addition Delay_Subprogram_Descriptors is
692 -- set for a library level package declaration or body which contains
693 -- delayed instantiations (in this case the descriptor refers to the
694 -- enclosing elaboration procedure).
696 -- Delta_Value (Ureal18)
697 -- Present in fixed and decimal types. Points to a universal real
698 -- that holds value of delta for the type, as given in the declaration
699 -- or as inherited by a subtype or derived type.
701 -- Dependent_Instances (Elist8)
702 -- Present in packages that are instances. Holds list of instances
703 -- of inner generics. Used to place freeze nodes for those instances
704 -- after that of the current one, i.e. after the corresponding generic
705 -- bodies.
707 -- Depends_On_Private (Flag14)
708 -- Present in all type entities. Set if the type is private or if it
709 -- depends on a private type.
711 -- Designated_Type (synthesized)
712 -- Applies to access types. Returns the designated type. Differs
713 -- from Directly_Designated_Type in that if the access type refers
714 -- to an incomplete type, and the full type is available, then this
715 -- full type is returned instead of the incomplete type.
717 -- Digits_Value (Uint17)
718 -- Present in floating point types and subtypes and decimal types and
719 -- subtypes. Contains the Digits value specified in the declaration.
721 -- Directly_Designated_Type (Node20)
722 -- Present in access types. This field points to the type that is
723 -- directly designated by the access type. In the case of an access
724 -- type to an incomplete type, this field references the incomplete
725 -- type. Note that in the semantic processing, what is useful in
726 -- nearly all cases is the full type designated by the access type.
727 -- The function Designated_Type obtains this full type in the case of
728 -- access to an incomplete type.
730 -- Discard_Names (Flag88)
731 -- Present in types and exception entities. Set if pragma Discard_Names
732 -- applies to the entity. It is also set for declarative regions and
733 -- package specs for which a Discard_Names pragma with zero arguments
734 -- has been encountered. The purpose of setting this flag is to be able
735 -- to set the Discard_Names attribute on enumeration types declared
736 -- after the pragma within the same declarative region. This flag is
737 -- set to False if a Keep_Names pragma appears for an enumeration type.
739 -- Discriminal (Node17)
740 -- Present in discriminants (Discriminant formal: GNAT's first
741 -- coinage). The entity used as a formal parameter that corresponds
742 -- to a discriminant. See section "Handling of Discriminants" for
743 -- full details of the use of discriminals.
745 -- Discriminal_Link (Node10)
746 -- Present in discriminals (which have an Ekind of E_In_Parameter,
747 -- or E_Constant), points back to corresponding discriminant.
749 -- Discriminant_Checking_Func (Node20)
750 -- Present in components. Points to the defining identifier of the
751 -- function built by the expander returns a Boolean indicating whether
752 -- the given record component exists for the current discriminant
753 -- values.
755 -- Discriminant_Constraint (Elist21)
756 -- Present in entities whose Has_Discriminants flag is set (concurrent
757 -- types, subtypes, record types and subtypes, private types and
758 -- subtypes, limited private types and subtypes and incomplete types).
759 -- It is an error to reference the Discriminant_Constraint field if
760 -- Has_Discriminants is False.
762 -- If the Is_Constrained flag is set, Discriminant_Constraint points
763 -- to an element list containing the discriminant constraints in the
764 -- same order in which the discriminants are declared.
766 -- If the Is_Constrained flag is not set but the discriminants of the
767 -- unconstrained type have default initial values then this field
768 -- points to an element list giving these default initial values in
769 -- the same order in which the discriminants are declared. Note that
770 -- in this case the entity cannot be a tagged record type, because
771 -- discriminants in this case cannot have defaults.
773 -- If the entity is a tagged record implicit type, then this field is
774 -- inherited from the first subtype (so that the itype is subtype
775 -- conformant with its first subtype, which is needed when the first
776 -- subtype overrides primitive operations inherited by the implicit
777 -- base type).
779 -- In all other cases Discriminant_Constraint contains the empty
780 -- Elist (ie it is initialized with a call to New_Elmt_List).
782 -- Discriminant_Default_Value (Node20)
783 -- Present in discriminants. Points to the node representing the
784 -- expression for the default value of the discriminant. Set to
785 -- Empty if the discriminant has no default value.
787 -- Discriminant_Number (Uint15)
788 -- Present in discriminants. Gives the ranking of a discriminant in
789 -- the list of discriminants of the type, i.e. a sequential integer
790 -- index starting at 1 and ranging up to Number_Discriminants.
792 -- DTC_Entity (Node16)
793 -- Present in function and procedure entities. Set to Empty unless
794 -- the subprogram is dispatching in which case it references the
795 -- Dispatch Table pointer Component. That is to say the component _tag
796 -- for regular Ada tagged types, for CPP_Class types and their
797 -- descendants this field points to the component entity in the record
798 -- that is the Vtable pointer for the Vtable containing the entry that
799 -- references the subprogram.
801 -- DT_Entry_Count (Uint15)
802 -- Present in E_Component entities. Only used for component marked
803 -- Is_Tag. Store the number of entries in the Vtable (or Dispatch Table)
805 -- DT_Offset_To_Top_Func (Node24)
806 -- Present in E_Component entities. Only used for component marked
807 -- Is_Tag. If present it stores the Offset_To_Top function used to
808 -- provide this value in tagged types whose ancestor has discriminants.
810 -- DT_Position (Uint15)
811 -- Present in function and procedure entities which are dispatching
812 -- (should not be referenced without first checking that flag
813 -- Is_Dispatching_Operation is True). Contains the offset into
814 -- the Vtable for the entry that references the subprogram.
816 -- Ekind (Ekind)
817 -- Present in all entities. Contains a value of the enumeration type
818 -- Entity_Kind declared in a subsequent section in this spec.
820 -- Elaboration_Entity (Node13)
821 -- Present in generic and non-generic package and subprogram
822 -- entities. This is a boolean entity associated with the unit that
823 -- is initiallly set to False, and is set True when the unit is
824 -- elaborated. This is used for two purposes. First, it is used to
825 -- implement required access before elaboration checks (the flag
826 -- must be true to call a subprogram at elaboration time). Second,
827 -- it is used to guard against repeated execution of the generated
828 -- elaboration code.
830 -- Note that we always allocate this flag, and set this field, but
831 -- we do not always actually use it. It is only used if it is needed
832 -- for access-before-elaboration use (see Elaboration_Entity_Required
833 -- flag) or if either the spec or the body has elaboration code. If
834 -- neither of these two conditions holds, then the entity is still
835 -- allocated (since we don't know early enough whether or not there
836 -- is elaboration code), but is simply not used for any purpose.
838 -- Elaboration_Entity_Required (Flag174)
839 -- Present in generics and non-generic package and subprogram
840 -- entities. Set only if Elaboration_Entity is non-Empty to indicate
841 -- that the boolean is required to be set even if there is no other
842 -- elaboration code. This occurs when the Elaboration_Entity flag
843 -- is used for required access-before-elaboration checking. If the
844 -- flag is only for preventing multiple execution of the elaboration
845 -- code, then if there is no other elaboration code, obviously there
846 -- is no need to set the flag.
848 -- Enclosing_Dynamic_Scope (synthesized)
849 -- Appliesa to all entities. Returns the closest dynamic scope in which
850 -- the entity is declared or Standard_Standard for library-level entities
852 -- Enclosing_Scope (Node18)
853 -- Present in labels. Denotes the innermost enclosing construct that
854 -- contains the label. Identical to the scope of the label, except for
855 -- labels declared in the body of an accept statement, in which case the
856 -- entry_name is the Enclosing_Scope. Used to validate goto's within
857 -- accept statements.
859 -- Entry_Accepted (Flag152)
860 -- Present in E_Entry and E_Entry_Family entities. Set if there is
861 -- at least one accept for this entry in the task body. Used to
862 -- generate warnings for missing accepts.
864 -- Entry_Bodies_Array (Node15)
865 -- Present in protected types for which Has_Entries is true.
866 -- This is the defining identifier for the array of entry body
867 -- action procedures and barrier functions used by the runtime to
868 -- execute the user code associated with each entry.
870 -- Entry_Cancel_Parameter (Node23)
871 -- Present in blocks. This only applies to a block statement for
872 -- which the Is_Asynchronous_Call_Block flag is set. It
873 -- contains the defining identifier of an object that must be
874 -- passed to the Cancel_Task_Entry_Call or Cancel_Protected_Entry_Call
875 -- call in the cleanup handler added to the block by
876 -- Exp_Ch7.Expand_Cleanup_Actions. This parameter is a Boolean
877 -- object for task entry calls and a Communications_Block object
878 -- in the case of protected entry calls. In both cases the objects
879 -- are declared in outer scopes to this block.
881 -- Entry_Component (Node11)
882 -- Present in formal parameters (in, in out and out parameters). Used
883 -- only for formals of entries. References the corresponding component
884 -- of the entry parameter record for the entry.
886 -- Entry_Formal (Node16)
887 -- Present in components of the record built to correspond to entry
888 -- parameters. This field points from the component to the formal. It
889 -- is the back pointer corresponding to Entry_Component.
891 -- Entry_Index_Constant (Node18)
892 -- Present in an entry index parameter. This is an identifier that
893 -- eventually becomes the name of a constant representing the index
894 -- of the entry family member whose entry body is being executed. Used
895 -- to expand references to the entry index specification identifier.
897 -- Entry_Index_Type (synthesized)
898 -- Applies to an entry family. Denotes Etype of the subtype indication
899 -- in the entry declaration. Used to resolve the index expression in an
900 -- accept statement for a member of the family, and in the prefix of
901 -- 'COUNT when it applies to a family member.
903 -- Entry_Parameters_Type (Node15)
904 -- Present in entries. Points to the access-to-record type that is
905 -- constructed by the expander to hold a reference to the parameter
906 -- values. This reference is manipulated (as an address) by the
907 -- tasking runtime. The designated record represents a packaging
908 -- up of the entry parameters (see Exp_Ch9.Expand_N_Entry_Declaration
909 -- for further details). Entry_Parameters_Type is Empty if the entry
910 -- has no parameters.
912 -- Enumeration_Pos (Uint11)
913 -- Present in enumeration literals. Contains the position number
914 -- corresponding to the value of the enumeration literal.
916 -- Enumeration_Rep (Uint12)
917 -- Present in enumeration literals. Contains the representation that
918 -- corresponds to the value of the enumeration literal. Note that
919 -- this is normally the same as Enumeration_Pos except in the presence
920 -- of representation clauses, where Pos will still represent the
921 -- position of the literal within the type and Rep will have be the
922 -- value given in the representation clause.
924 -- Enumeration_Rep_Expr (Node22)
925 -- Present in enumeration literals. Points to the expression in an
926 -- associated enumeration rep clause that provides the representation
927 -- value for this literal. Empty if no enumeration rep clause for this
928 -- literal (or if rep clause does not have an entry for this literal,
929 -- an error situation). This is also used to catch duplicate entries
930 -- for the same literal.
932 -- Enum_Pos_To_Rep (Node23)
933 -- Present in enumeration types (but not enumeration subtypes). Set to
934 -- Empty unless the enumeration type has a non-standard representation
935 -- (i.e. at least one literal has a representation value different from
936 -- its pos value). In this case, Enum_Pos_To_Rep is the entity for an
937 -- array constructed when the type is frozen that maps Pos values to
938 -- corresponding Rep values. The index type of this array is Natural,
939 -- and the component type is a suitable integer type that holds the
940 -- full range of representation values.
942 -- Equivalent_Type (Node18)
943 -- Present in class wide types and subtypes, access to protected
944 -- subprogram types, and in exception_types. For a classwide type, it
945 -- is always Empty. For a class wide subtype, it points to an entity
946 -- created by the expander which gives Gigi an easily understandable
947 -- equivalent of the class subtype with a known size (given by an
948 -- initial value). See Exp_Util.Expand_Class_Wide_Subtype for further
949 -- details. For E_exception_type, this points to the record containing
950 -- the data necessary to represent exceptions (for further details, see
951 -- System.Standard_Library. For access_to_protected subprograms, it
952 -- denotes a record that holds pointers to the operation and to the
953 -- protected object. For remote Access_To_Subprogram types, it denotes
954 -- the record that is the fat pointer representation of an RAST.
956 -- Esize (Uint12)
957 -- Present in all types and subtypes, and also for components, constants,
958 -- and variables. Contains the Object_Size of the type or of the object.
959 -- A value of zero indicates that the value is not yet known.
961 -- For the case of components where a component clause is present, the
962 -- value is the value from the component clause, which must be non-
963 -- negative (but may be zero, which is acceptable for the case of
964 -- a type with only one possible value). It is also possible for Esize
965 -- of a component to be set without a component clause present, which
966 -- means that the component size is specified, but not the position.
967 -- See also RM_Size and the section on "Handling of Type'Size Values".
968 -- During gigi processing, the value is back annotated for all zero
969 -- values, so that after the call to gigi, the value is properly set.
971 -- Etype (Node5)
972 -- Present in all entities. Represents the type of the entity, which
973 -- is itself another entity. For a type entity, points to the parent
974 -- type for a derived type, or if the type is not derived, points to
975 -- itself. For a subtype entity, Etype points to the base type. For
976 -- a class wide type, points to the parent type. For a subprogram or
977 -- subprogram type, Etype has the return type of a function or is set
978 -- to Standard_Void_Type to represent a procedure.
980 -- Exception_Code (Uint22)
981 -- Present in exception entitites. Set to zero unless either an
982 -- Import_Exception or Export_Exception pragma applies to the
983 -- pragma and specifies a Code value. See description of these
984 -- pragmas for details. Note that this field is relevant only if
985 -- Is_VMS_Exception is set.
987 -- Extra_Formal (Node15)
988 -- Present in formal parameters in the non-generic case. Certain
989 -- parameters require extra implicit information to be passed
990 -- (e.g. the flag indicating if an unconstrained variant record
991 -- argument is constrained, and the accessibility level for
992 -- access parameters. See description of Extra_Constrained,
993 -- Extra_Accessibility fields for further details. Extra formal
994 -- parameters are constructed to represent these values, and
995 -- chained to the end of the list of formals using the
996 -- Extra_Formal field (i.e. the Extra_Formal field of the last
997 -- "real" formal points to the first extra formal, and the
998 -- Extra_Formal field of each extra formal points to the next
999 -- one, with Empty indicating the end of the list of extra
1000 -- formals.
1002 -- Extra_Accessibility (Node13)
1003 -- Present in formal parameters in the non-generic case if
1004 -- expansion is active. Normally Empty, but if a parameter is
1005 -- one for which a dynamic accessibility check is required, then
1006 -- an extra formal of type Natural is created (see description
1007 -- of field Extra_Formal), and the Extra_Accessibility field of
1008 -- the formal parameter points to the entity for this extra
1009 -- formal. Also present in variables when compiling receiving
1010 -- stubs. In this case, a non Empty value means that this
1011 -- variable's accessibility depth has been transmitted by the
1012 -- caller and must be retrieved through the entity designed by
1013 -- this field instead of being computed.
1015 -- Extra_Constrained (Node23)
1016 -- Present in formal parameters in the non-generic case if
1017 -- expansion is active. Normally Empty, but if a parameter is
1018 -- one for which a dynamic indication of its constrained status
1019 -- is required, then an extra formal of type Boolean is created
1020 -- (see description of field Extra_Formal), and the
1021 -- Extra_Constrained field of the formal parameter points to the
1022 -- entity for this extra formal. Also present in variables when
1023 -- compiling receiving stubs. In this case, a non empty value
1024 -- means that this variable's constrained status has been
1025 -- transmitted by the caller and must be retrieved through the
1026 -- entity designed by this field instead of being computed.
1028 -- Finalization_Chain_Entity (Node19)
1029 -- Present in scopes which can have finalizable entities (blocks,
1030 -- functions, procedures, tasks, entries). When this field is empty it
1031 -- means that there are no finalization actions to perform on exit of the
1032 -- scope. When this field contains 'Error', it means that no
1033 -- finalization actions should happen at this level and the
1034 -- finalization chain of a parent scope shall be used (??? this is
1035 -- an improper use of 'Error' and should be changed). otherwise it
1036 -- contains an entity of type Finalizable_Ptr that is the head of the
1037 -- list of objects to finalize on exit. See "Finalization Management"
1038 -- section in exp_ch7.adb for more details.
1040 -- Finalize_Storage_Only (Flag158) [base type only]
1041 -- Present in all types. Set on direct controlled types to which a
1042 -- valid Finalize_Storage_Only pragma applies. This flag is also set on
1043 -- composite types when they have at least one controlled component and
1044 -- all their controlled components are Finalize_Storage_Only. It is also
1045 -- inherited by type derivation except for direct controlled types where
1046 -- the Finalize_Storage_Only pragma is required at each level of
1047 -- derivation.
1049 -- First_Component (synthesized)
1050 -- Applies to record types. Returns the first component by following
1051 -- the chain of declared entities for the record until a component
1052 -- is found (one with an Ekind of E_Component). The discriminants are
1053 -- skipped. If the record is null, then Empty is returned.
1055 -- First_Discriminant (synthesized)
1056 -- Applies to types with discriminants. The discriminants are the
1057 -- first entities declared in the type, so normally this is equivalent
1058 -- to First_Entity. The exception arises for tagged types, where the
1059 -- tag itself is prepended to the front of the entity chain, so the
1060 -- First_Discriminant function steps past the tag if it is present.
1062 -- First_Entity (Node17)
1063 -- Present in all entities which act as scopes to which a list of
1064 -- associated entities is attached (blocks, class subtypes and types,
1065 -- entries, functions, loops, packages, procedures, protected objects,
1066 -- record types and subtypes, private types, task types and subtypes).
1067 -- Points to a list of associated entities using the Next_Entity field
1068 -- as a chain pointer with Empty marking the end of the list.
1070 -- First_Formal (synthesized)
1071 -- Applies to subprograms and subprogram types, and also in entries
1072 -- and entry families. Returns first formal of the subprogram or entry.
1073 -- The formals are the first entities declared in a subprogram or in
1074 -- a subprogram type (the designated type of an Access_To_Subprogram
1075 -- definition) or in an entry.
1077 -- First_Index (Node17)
1078 -- Present in array types and subtypes and in string types and subtypes.
1079 -- By introducing implicit subtypes for the index constraints, we have
1080 -- the same structure for constrained and unconstrained arrays, subtype
1081 -- marks and discrete ranges are both represented by a subtype. This
1082 -- function returns the tree node corresponding to an occurrence of the
1083 -- first index (NOT the entity for the type). Subsequent indexes are
1084 -- obtained using Next_Index. Note that this field is present for the
1085 -- case of string literal subtypes, but is always Empty.
1087 -- First_Literal (Node17)
1088 -- Present in all enumeration types, including character and boolean
1089 -- types. This field points to the first enumeration literal entity
1090 -- for the type (i.e. it is set to First (Literals (N)) where N is
1091 -- the enumeration type definition node. A special case occurs with
1092 -- standard character and wide character types, where this field is
1093 -- Empty, since there are no enumeration literal lists in these cases.
1094 -- Note that this field is set in enumeration subtypes, but it still
1095 -- points to the first literal of the base type in this case.
1097 -- First_Optional_Parameter (Node14)
1098 -- Present in (non-generic) function and procedure entities. Set to a
1099 -- non-null value only if a pragma Import_Function, Import_Procedure
1100 -- or Import_Valued_Procedure specifies a First_Optional_Parameter
1101 -- argument, in which case this field points to the parameter entity
1102 -- corresponding to the specified parameter.
1104 -- First_Private_Entity (Node16)
1105 -- Present in all entities containing private parts (packages,
1106 -- protected types and subtypes, task types and subtypes). The
1107 -- entities on the entity chain are in order of declaration, so the
1108 -- entries for private entities are at the end of the chain. This
1109 -- field points to the first entity for the private part. It is
1110 -- Empty if there are no entities declared in the private part or
1111 -- if there is no private part.
1113 -- First_Rep_Item (Node6)
1114 -- Present in all entities. If non-empty, points to a linked list of
1115 -- representation pragmas nodes and representation clause nodes that
1116 -- apply to the entity, linked using Next_Rep_Item, with Empty marking
1117 -- the end of the list. In the case of derived types and subtypes, the
1118 -- new entity inherits the chain at the point of declaration. This
1119 -- means that it is possible to have multiple instances of the same
1120 -- kind of rep item on the chain, in which case it is the first one
1121 -- that applies to the entity.
1123 -- For most representation items, the representation information is
1124 -- reflected in other fields and flags in the entity. For example if
1125 -- a record representation clause is present, the component entities
1126 -- reflect the specified information. However, there are some items
1127 -- that are only reflected in the chain. These include:
1129 -- Alignment attribute definition clause
1130 -- Machine_Attribute pragma
1131 -- Link_Alias pragma
1132 -- Link-Section pragma
1133 -- Weak_External pragma
1135 -- If any of these items are present, then the flag Has_Gigi_Rep_Item
1136 -- is set, indicating that Gigi should search the chain.
1138 -- Other representation items are included in the chain so that error
1139 -- messages can easily locate the relevant nodes for posting errors.
1140 -- Note in particular that size clauses are present only for this
1141 -- purpose, and should only be accessed if Has_Size_Clause is set.
1143 -- First_Stored_Discriminant (synthesized)
1144 -- Applies to types with discriminants. Gives the first discriminant
1145 -- stored in the object. In many cases, these are the same as the
1146 -- normal visible discriminants for the type, but in the case of
1147 -- renamed discriminants, this is not always the case.
1149 -- For tagged types, and untagged types which are root types or
1150 -- derived types but which do not rename discriminants in their
1151 -- root type, the stored discriminants are the same as the actual
1152 -- discriminants of the type, and hence this function is the same
1153 -- as First_Discriminant.
1155 -- For derived non-tagged types that rename discriminants in the root
1156 -- type this is the first of the discriminants that occur in the
1157 -- root type. To be precise, in this case stored discriminants are
1158 -- entities attached to the entity chain of the derived type which
1159 -- are a copy of the discriminants of the root type. Furthermore their
1160 -- Is_Completely_Hidden flag is set since although they are actually
1161 -- stored in the object, they are not in the set of discriminants that
1162 -- is visble in the type.
1164 -- For derived untagged types, stored discriminants are the real
1165 -- discriminants from Gigi's standpoint, i.e. those that will be
1166 -- stored in actual objects of the type.
1168 -- First_Subtype (synthesized)
1169 -- Applies to all types and subtypes. For types, yields the first
1170 -- subtype of the type. For subtypes, yields the first subtype of
1171 -- the base type of the subtype.
1173 -- First_Tag_Component (synthesized)
1174 -- Applies to tagged record types, returns the entity for the first
1175 -- _Tag field in this record.
1177 -- Freeze_Node (Node7)
1178 -- Present in all entities. If there is an associated freeze node for
1179 -- the entity, this field references this freeze node. If no freeze
1180 -- node is associated with the entity, then this field is Empty. See
1181 -- package Freeze for further details.
1183 -- From_With_Type (Flag159)
1184 -- Present in package and type entities. Indicates that the entity
1185 -- appears in a With_Type clause in the context of some other unit,
1186 -- either as the prefix (which must be a package), or as a type name.
1187 -- The package can only be used to retrieve such a type, and the type
1188 -- can be used only in component declarations and access definitions.
1189 -- The With_Type clause is used to construct mutually recursive
1190 -- types, i.e. record types (Java classes) that hold pointers to each
1191 -- other. If such a type is an access type, it has no explicit freeze
1192 -- node, so that the back-end does not attempt to elaborate it.
1193 -- Currently this flag is also used to implement Ada 2005 (AI-50217).
1194 -- It will be renamed to From_Limited_With after removal of the current
1195 -- GNAT with_type clause???
1197 -- Full_View (Node11)
1198 -- Present in all type and subtype entities and in deferred constants.
1199 -- References the entity for the corresponding full type declaration.
1200 -- For all types other than private and incomplete types, this field
1201 -- always contains Empty. See also Underlying_Type.
1203 -- Function_Returns_With_DSP (Flag169)
1204 -- Present in all subprogram entities, and type entities for access
1205 -- to subprogram values. Set True if the function (or referenced
1206 -- function in the case of an access value) returns with using the
1207 -- DSP (depressed stack pointer) approach. This can only be set
1208 -- True if Targparm.Functions_Return_By_DSP_On_Target is True and
1209 -- the function returns a value of a type whose size is not known
1210 -- at compile time.
1212 -- Generic_Homonym (Node11)
1213 -- Present in generic packages. The generic homonym is the entity of
1214 -- a renaming declaration inserted in every generic unit. It is used
1215 -- to resolve the name of a local entity that is given by a qualified
1216 -- name, when the generic entity itself is hidden by a local name.
1218 -- Generic_Renamings (Elist23)
1219 -- Present in package and subprogram instances. Holds mapping that
1220 -- associates generic parameters with the corresponding instances, in
1221 -- those cases where the instance is an entity.
1223 -- Handler_Records (List10)
1224 -- Present in subprogram and package entities. Points to a list of
1225 -- identifiers referencing the handler record entities for the
1226 -- corresponding unit.
1228 -- Has_Aliased_Components (Flag135) [implementation base type only]
1229 -- Present in array type entities. Indicates that the component type
1230 -- of the array is aliased.
1232 -- Has_Alignment_Clause (Flag46)
1233 -- Present in all type entities and objects. Indicates if an alignment
1234 -- clause has been given for the entity. If set, then Alignment_Clause
1235 -- returns the N_Attribute_Definition node for the alignment attribute
1236 -- definition clause. Note that it is possible for this flag to be False
1237 -- even when Alignment_Clause returns non_Empty (this happens in the case
1238 -- of derived type declarations).
1240 -- Has_All_Calls_Remote (Flag79)
1241 -- Present in all library unit entities. Set true if the library unit
1242 -- has an All_Calls_Remote pragma. Note that such entities must also
1243 -- be RCI entities, so the flag Is_Remote_Call_Interface will always
1244 -- be set if this flag is set.
1246 -- Has_Anon_Block_Suffix (Flag201)
1247 -- Present in all entities. Set if the entity is nested within one or
1248 -- more anonymous blocks and the Chars field contains a name with an
1249 -- anonymous block suffix (see Exp_Dbug for furthert details).
1251 -- Has_Atomic_Components (Flag86) [implementation base type only]
1252 -- Present in all types and objects. Set only for an array type or
1253 -- an array object if a valid pragma Atomic_Components applies to the
1254 -- type or object. Note that in the case of an object, this flag is
1255 -- only set on the object if there was an explicit pragma for the
1256 -- object. In other words, the proper test for whether an object has
1257 -- atomic components is to see if either the object or its base type
1258 -- has this flag set. Note that in the case of a type, the pragma will
1259 -- be chained to the rep item chain of the first subtype in the usual
1260 -- manner.
1262 -- Has_Attach_Handler (synthesized)
1263 -- Applies to record types that are constructed by the expander to
1264 -- represent protected types. Returns True if there is at least one
1265 -- Attach_Handler pragma in the corresponding specification.
1267 -- Has_Biased_Representation (Flag139)
1268 -- Present in discrete types (where it applies to the type'size value),
1269 -- and to objects (both stand-alone and components), where it applies to
1270 -- the size of the object from a size or record component clause. In
1271 -- all cases it indicates that the size in question is smaller than
1272 -- would normally be required, but that the size requirement can be
1273 -- satisfied by using a biased representation, in which stored values
1274 -- have the low bound (Expr_Value (Type_Low_Bound (T)) subtracted to
1275 -- reduce the required size. For example, a type with a range of 1..2
1276 -- takes one bit, using 0 to represent 1 and 1 to represent 2.
1278 -- Note that in the object and component cases, the flag is only set
1279 -- if the type is unbiased, but the object specifies a smaller size
1280 -- than the size of the type, forcing biased representation for the
1281 -- object, but the subtype is still an unbiased type.
1283 -- Has_Completion (Flag26)
1284 -- Present in all entities that require a completion (functions,
1285 -- procedures, private types, limited private types, incomplete types,
1286 -- constants and packages that require a body). The flag is set if the
1287 -- completion has been encountered and analyzed.
1289 -- Has_Completion_In_Body (Flag71)
1290 -- Present in "Taft amendment types" that is to say incomplete types
1291 -- whose full declaration appears in the package body.
1293 -- Has_Complex_Representation (Flag140) [implementation base type only]
1294 -- Present in all type entities. Set only for a record base type to
1295 -- which a valid pragma Complex_Representation applies.
1297 -- Has_Component_Size_Clause (Flag68) [implementation base type only]
1298 -- Present in all type entities. Set if a component size clause is
1299 -- present for the given type. Note that this flag can be False even
1300 -- if Component_Size is non-zero (happens in the case of derived types).
1302 -- Has_Constrained_Partial_View (Flag187)
1303 -- Present in private type and their completions, when the private
1304 -- type has no discriminants and the full view has discriminants with
1305 -- defaults. In Ada 2005 heap-allocated objects of such types are not
1306 -- constrained, and can change their discriminants with full assignment.
1308 -- Has_Contiguous_Rep (Flag181)
1309 -- Present in enumeration types. True if the type as a representation
1310 -- clause whose entries are successive integers.
1312 -- Has_Controlling_Result (Flag98)
1313 -- Present in E_Function entities. True if The function is a primitive
1314 -- function of a tagged type which can dispatch on result
1316 -- Has_Controlled_Component (Flag43) [base type only]
1317 -- Present in all entities. Set only for composite type entities which
1318 -- contain a component that either is a controlled type, or itself
1319 -- contains controlled component (i.e. either Has_Controlled_Component
1320 -- or Is_Controlled is set for at least one component).
1322 -- Has_Convention_Pragma (Flag119)
1323 -- Present in an entity for which a Convention, Import, or Export
1324 -- pragma has been given. Used to prevent more than one such pragma
1325 -- appearing for a given entity (RM B.1(45)).
1327 -- Has_Delayed_Freeze (Flag18)
1328 -- Present in all entities. Set to indicate that an explicit freeze
1329 -- node must be generated for the entity at its freezing point. See
1330 -- separate section ("Delayed Freezing and Elaboration") for details.
1332 -- Has_Discriminants (Flag5)
1333 -- Present in all types and subtypes. For types that are allowed to have
1334 -- discriminants (record types and subtypes, task types and subtypes,
1335 -- protected types and subtypes, private types, limited private types,
1336 -- and incomplete types), indicates if the corresponding type or subtype
1337 -- has a known discriminant part. Always false for all other types.
1339 -- Has_Entries (synthesized)
1340 -- Applies to concurrent types. True if any entries are declared
1341 -- within the task or protected definition for the type.
1343 -- Has_Enumeration_Rep_Clause (Flag66)
1344 -- Present in enumeration types. Set if an enumeration representation
1345 -- clause has been given for this enumeration type. Used to prevent more
1346 -- than one enumeration representation clause for a given type. Note
1347 -- that this does not imply a representation with holes, since the rep
1348 -- clause may merely confirm the default 0..N representation.
1350 -- Has_External_Tag_Rep_Clause (Flag110)
1351 -- Present in tagged types. Set if an external_tag rep. clause has been
1352 -- given for this type. Use to avoid the generation of the default
1353 -- external_tag.
1355 -- Has_Exit (Flag47)
1356 -- Present in loop entities. Set if the loop contains an exit statement.
1358 -- Has_Foreign_Convention (synthesized)
1359 -- Applies to all entities. Determines if the Convention for the
1360 -- entity is a foreign convention (i.e. is other than Convention_Ada,
1361 -- Convention_Intrinsic, Convention_Entry or Convention_Protected).
1363 -- Has_Forward_Instantiation (Flag175)
1364 -- Present in package entities. Set true for packages that contain
1365 -- instantiations of local generic entities, before the corresponding
1366 -- generic body has been seen. If a package has a forward instantiation,
1367 -- we cannot inline subprograms appearing in the same package because
1368 -- the placement requirements of the instance will conflict with the
1369 -- linear elaboration of front-end inlining.
1371 -- Has_Fully_Qualified_Name (Flag173)
1372 -- Present in all entities. Set True if the name in the Chars field
1373 -- has been replaced by the fully qualified name, as used for debug
1374 -- output. See Exp_Dbug for a full description of the use of this
1375 -- flag and also the related flag Has_Qualified_Name.
1377 -- Has_Gigi_Rep_Item (Flag82)
1378 -- This flag is set if the rep item chain (referenced by First_Rep_Item
1379 -- and linked through the Next_Rep_Item chain) contains a representation
1380 -- item that needs to be specially processed by Gigi, i.e. one of the
1381 -- following items:
1383 -- Machine_Attribute pragma
1384 -- Linker_Alias pragma
1385 -- Linker_Section pragma
1386 -- Linker_Constructor pragma
1387 -- Linker_Destructor pragma
1388 -- Weak_External pragma
1390 -- If this flag is set, then Gigi should scan the rep item chain to
1391 -- process any of these items that appear. At least one such item will
1392 -- be present.
1394 -- Has_Homonym (Flag56)
1395 -- Present in all entities. Set if an entity has a homonym in the same
1396 -- scope. Used by Gigi to generate unique names for such entities.
1398 -- Has_Interrupt_Handler (synthesized)
1399 -- Applies to all protected type entities. Set if the protected type
1400 -- definition contains at least one procedure to which a pragma
1401 -- Interrupt_Handler applies.
1403 -- Has_Machine_Radix_Clause (Flag83)
1404 -- Present in decimal types and subtypes, set if a Machine_Radix
1405 -- representation clause is present. This flag is used to detect
1406 -- the error of multiple machine radix clauses for a single type.
1408 -- Has_Master_Entity (Flag21)
1409 -- Present in entities that can appear in the scope stack (see spec
1410 -- of Sem). It is set if a task master entity (_master) has been
1411 -- declared and initialized in the corresponding scope.
1413 -- Has_Missing_Return (Flag142)
1414 -- Present in functions and generic functions. Set if there is one or
1415 -- more missing return statements in the function. This is used to
1416 -- control wrapping of the body in Exp_Ch6 to ensure that the program
1417 -- error exeption is correctly raised in this case at runtime.
1419 -- Has_Nested_Block_With_Handler (Flag101)
1420 -- Present in scope entities. Set if there is a nested block within the
1421 -- scope that has an exception handler and the two scopes are in the
1422 -- same procedure. This is used by the backend for controlling certain
1423 -- optimizations to ensure that they are consistent with exceptions.
1424 -- See documentation in Gigi for further details.
1426 -- Has_Non_Standard_Rep (Flag75) [implementation base type only]
1427 -- Present in all type entities. Set when some representation clause
1428 -- or pragma causes the representation of the item to be significantly
1429 -- modified. In this category are changes of small or radix for a
1430 -- fixed-point type, change of component size for an array, and record
1431 -- or enumeration representation clauses, as well as packed pragmas.
1432 -- All other representation clauses (e.g. Size and Alignment clauses)
1433 -- are not considered to be significant since they do not affect
1434 -- stored bit patterns.
1436 -- Has_Object_Size_Clause (Flag172)
1437 -- Present in entities for types and subtypes. Set if an Object_Size
1438 -- clause has been processed for the type Used to prevent multiple
1439 -- Object_Size clauses for a given entity.
1441 -- Has_Per_Object_Constraint (Flag154)
1442 -- Present in E_Component entities, true if the subtype of the
1443 -- component has a per object constraint. Per object constraints result
1444 -- from the following situations:
1446 -- 1. N_Attribute_Reference - when the prefix is the enclosing type and
1447 -- the attribute is Access.
1448 -- 2. N_Discriminant_Association - when the expression uses the
1449 -- discriminant of the enclosing type.
1450 -- 3. N_Index_Or_Discriminant_Constraint - when at least one of the
1451 -- individual constraints is a per object constraint.
1452 -- 4. N_Range - when the lower or upper bound uses the discriminant of
1453 -- the enclosing type.
1454 -- 5. N_Range_Constraint - when the range expression uses the
1455 -- discriminant of the enclosing type.
1457 -- Has_Persistent_BSS (Flag188)
1458 -- Present in all entities. Set True for entities to which a valid
1459 -- pragma Persistent_BSS applies. Note that although the pragma is
1460 -- only meaningful for objects, we set it for all entities in a unit
1461 -- to which the pragma applies, as well as the unit entity itself, for
1462 -- convenience in propagating the flag to contained entities.
1464 -- Has_Pragma_Controlled (Flag27) [implementation base type only]
1465 -- Present in access type entities. It is set if a pragma Controlled
1466 -- applies to the access type.
1468 -- Has_Pragma_Elaborate_Body (Flag150)
1469 -- Present in all entities. Set in compilation unit entities if a
1470 -- pragma Elaborate_Body applies to the compilation unit.
1472 -- Has_Pragma_Inline (Flag157)
1473 -- Present in all entities. Set for functions and procedures for which
1474 -- a pragma Inline or Inline_Always applies to the subprogram. Note
1475 -- that this flag can be set even if Is_Inlined is not set. This
1476 -- happens for pragma Inline (if Inline_Active is False). In other
1477 -- words, the flag Has_Pragma_Inline represents the formal semantic
1478 -- status, and is used for checking semantic correctness.
1479 -- The flag Is_Inlined indicates whether inlining is actually active
1480 -- for the entity.
1482 -- Has_Pragma_Pack (Flag121) [implementation base type only]
1483 -- Present in all entities. If set, indicates that a valid pragma Pack
1484 -- was was given for the type. Note that this flag is not inherited by
1485 -- derived type. See also the Is_Packed flag.
1487 -- Has_Pragma_Pure (Flag203)
1488 -- Present in all entities. If set, indicates that a valid pragma Pure
1489 -- was given for the entity. In some cases, we need to test whether
1490 -- Is_Pure was explicitly set using this pragma.
1492 -- Has_Pragma_Pure_Function (Flag179)
1493 -- Present in all entities. If set, indicates that a valid pragma
1494 -- Pure_Function was given for the entity. In some cases, we need to
1495 -- know that Is_Pure was explicitly set using this pragma.
1497 -- Has_Pragma_Unreferenced (Flag180)
1498 -- Present in all entities. Set if a valid pragma Unreferenced applies
1499 -- to the pragma, indicating that no warning should be given if the
1500 -- entity has no references, but a warning should be given if it is
1501 -- in fact referenced.
1503 -- Has_Primitive_Operations (Flag120) [base type only]
1504 -- Present in all type entities. Set if at least one primitive operation
1505 -- is defined for the type.
1507 -- Has_Private_Ancestor (synthesized)
1508 -- Applies to all type and subtype entities. Returns True if at least
1509 -- one ancestor is private, and otherwise False if there are no private
1510 -- ancestors.
1512 -- Has_Private_Declaration (Flag155)
1513 -- Present in all entities. Returns True if it is the defining entity
1514 -- of a private type declaration or its corresponding full declaration.
1515 -- This flag is thus preserved when the full and the partial views are
1516 -- exchanged, to indicate if a full type declaration is a completion.
1517 -- Used for semantic checks in E.4 (18), and elsewhere.
1519 -- Has_Qualified_Name (Flag161)
1520 -- Present in all entities. Set True if the name in the Chars field
1521 -- has been replaced by its qualified name, as used for debug output.
1522 -- See Exp_Dbug for a full description of qualification requirements.
1523 -- For some entities, the name is the fully qualified name, but there
1524 -- are exceptions. In particular, for local variables in procedures,
1525 -- we do not include the procedure itself or higher scopes. See also
1526 -- the flag Has_Fully_Qualified_Name, which is set if the name does
1527 -- indeed include the fully qualified name.
1529 -- Has_Record_Rep_Clause (Flag65) [implementation base type only]
1530 -- Present in record types. Set if a record representation clause has
1531 -- been given for this record type. Used to prevent more than one such
1532 -- clause for a given record type. Note that this is initially cleared
1533 -- for a derived type, even though the representation is inherited. See
1534 -- also the flag Has_Specified_Layout.
1536 -- Has_Recursive_Call (Flag143)
1537 -- Present in procedures. Set if a direct parameterless recursive call
1538 -- is detected while analyzing the body. Used to activate some error
1539 -- checks for infinite recursion.
1541 -- Has_Size_Clause (Flag29)
1542 -- Present in entities for types and objects. Set if a size clause is
1543 -- present for the entity. Used to prevent multiple Size clauses for a
1544 -- given entity. Note that it is always initially cleared for a derived
1545 -- type, even though the Size for such a type is inherited from a Size
1546 -- clause given for the parent type.
1548 -- Has_Small_Clause (Flag67)
1549 -- Present in ordinary fixed point types (but not subtypes). Indicates
1550 -- that a small clause has been given for the entity. Used to prevent
1551 -- multiple Small clauses for a given entity. Note that it is always
1552 -- initially cleared for a derived type, even though the Small for such
1553 -- a type is inherited from a Small clause given for the parent type.
1555 -- Has_Specified_Layout (Flag100) [implementation base type only]
1556 -- Present in all type entities. Set for a record type or subtype if
1557 -- the record layout has been specified by a record representation
1558 -- clause. Note that this differs from the flag Has_Record_Rep_Clause
1559 -- in that it is inherited by a derived type. Has_Record_Rep_Clause is
1560 -- used to indicate that the type is mentioned explicitly in a record
1561 -- representation clause, and thus is not inherited by a derived type.
1562 -- This flag is always False for non-record types.
1564 -- Has_Specified_Stream_Input (Flag190)
1565 -- Has_Specified_Stream_Output (Flag191)
1566 -- Has_Specified_Stream_Read (Flag192)
1567 -- Has_Specified_Stream_Write (Flag193)
1568 -- Present in all type and subtype entities. Set for a given view if the
1569 -- corresponding stream-oriented attribute has been defined by an
1570 -- attribute definition clause. When such a clause occurs, a TSS is set
1571 -- on the underlying full view; the flags are used to track visibility of
1572 -- the attribute definition clause for partial or incomplete views.
1574 -- Has_Storage_Size_Clause (Flag23) [implementation base type only]
1575 -- Present in task types and access types. It is set if a Storage_Size
1576 -- clause is present for the type. Used to prevent multiple clauses for
1577 -- one type. Note that this flag is initially cleared for a derived type
1578 -- even though the Storage_Size for such a type is inherited from a
1579 -- Storage_Size clause given for the parent type. Note that in the case
1580 -- of access types, this flag is present only in the root type, since a
1581 -- storage size clause cannot be given to a derived type.
1583 -- Has_Stream_Size_Clause (Flag184)
1584 -- This flag is set on types which have a Stream_Size clause attribute.
1585 -- Used to prevent multiple Stream_Size clauses for a given entity.
1587 -- Has_Subprogram_Descriptor (Flag93)
1588 -- This flag is set on entities for which zero-cost exception subprogram
1589 -- descriptors can be generated (subprograms and library level package
1590 -- declarations and bodies). It indicates that a subprogram descriptor
1591 -- has been generated, and is used to suppress generation of multiple
1592 -- descriptors (e.g. when instantiating generic bodies).
1594 -- Has_Task (Flag30) [base type only]
1595 -- Present in all type entities. Set on task types themselves, and also
1596 -- (recursively) on any composite type which has a component for which
1597 -- Has_Task is set. The meaning is that an allocator of such an object
1598 -- must create the required tasks. Note that the flag is not set on
1599 -- access types, even if they designate an object that Has_Task.
1601 -- Has_Unchecked_Union (Flag123) [base type only]
1602 -- Present in all type entities. Set on unchecked unions themselves
1603 -- and (recursively) on any composite type which has a component for
1604 -- which Has_Unchecked_Union is set. The meaning is that a comparison
1605 -- operation for the type is not permitted. Note that the flag is not
1606 -- set on access types, even if they designate an object that has
1607 -- the flag Has_Unchecked_Union set.
1609 -- Has_Unknown_Discriminants (Flag72)
1610 -- Present in all type entities. Types can have unknown discriminants
1611 -- either from their declaration or through type derivation. The use
1612 -- of this flag exactly meets the spec in RM 3.7(26). Note that all
1613 -- class-wide types are considered to have unknown discriminants.
1614 -- Note that both Has_Discriminants and Has_Unknown_Discriminants may
1615 -- be true for a type. Class-wide types and their subtypes have
1616 -- unknown discriminants and can have declared ones as well. Private
1617 -- types declared with unknown discriminants may have a full view that
1618 -- has explicit discriminants, and both flag will be set on the partial
1619 -- view, to insure that discriminants are properly inherited in certain
1620 -- contexts.
1622 -- Has_Volatile_Components (Flag87) [implementation base type only]
1623 -- Present in all types and objects. Set only for an array type or
1624 -- array object if a valid pragma Volatile_Components or a valid
1625 -- pragma Atomic_Components applies to the type or object. Note that
1626 -- in the case of an object, this flag is only set on the object if
1627 -- there was an explicit pragma for the object. In other words, the
1628 -- proper test for whether an object has volatile components is to
1629 -- see if either the object or its base type has this flag set. Note
1630 -- that in the case of a type the pragma will be chained to the rep
1631 -- item chain of the first subtype in the usual manner.
1633 -- Has_Xref_Entry (Flag182)
1634 -- This flag is set if an entity has an entry in the Xref information
1635 -- generated in ali files. This is true for all source entities in the
1636 -- extended main source file. It is also true of entities in other
1637 -- packages that are referenced directly or indirectly from the main
1638 -- source file (indirect reference occurs when the main source file
1639 -- references an entity with a type reference. See package Lib.Xref
1640 -- for further details).
1642 -- Hiding_Loop_Variable (Node8)
1643 -- Present in variables. Set only if a variable of a discrete type is
1644 -- hidden by a loop variable in the same local scope, in which case
1645 -- the Hiding_Loop_Variable field of the hidden variable points to
1646 -- the E_Loop_Parameter entity doing the hiding. Used in processing
1647 -- warning messages if the hidden variable turns out to be unused
1648 -- or is referenced without being set.
1650 -- Homonym (Node4)
1651 -- Present in all entities. Link for list of entities that have the
1652 -- same source name and that are declared in the same or enclosing
1653 -- scopes. Homonyms in the same scope are overloaded. Used for name
1654 -- resolution and for the generation of debugging information.
1656 -- Implementation_Base_Type (synthesized)
1657 -- Applies to all types. Similar to Base_Type, but never returns a
1658 -- private type when applied to a non-private type. Instead in this
1659 -- case, it always returns the Underlying_Type of the base type, so that
1660 -- we still have a concrete type. Note: it is allowed to apply
1661 -- Implementation_Base_Type to other than a type, in which case it
1662 -- simply returns the entity unchanged.
1664 -- In_Package_Body (Flag48)
1665 -- Set on the entity that denotes the package (the defining occurrence
1666 -- of the package declaration) while analyzing and expanding the package
1667 -- body. Reset on completion of analysis/expansion.
1669 -- In_Private_Part (Flag45)
1670 -- Present in package entities. Flag is set to indicate that the
1671 -- private part is being analyzed. The flag is reset at the end of the
1672 -- package declaration.
1674 -- Inner_Instances (Elist23)
1675 -- Present in generic units. Contains element list of units that are
1676 -- instantiated within the given generic. Used to diagnose circular
1677 -- instantiations.
1679 -- Interface_Name (Node21)
1680 -- Present in exceptions, functions, procedures, variables, constants,
1681 -- and packages. Set to Empty unless an export, import, or interface
1682 -- name pragma has explicitly specified an external name, in which
1683 -- case it references an N_String_Literal node for the specified
1684 -- external name. In the case of exceptions, the field is set by
1685 -- Import_Exception/Export_Exception (which can be used in OpenVMS
1686 -- versions only). Note that if this field is Empty, and Is_Imported
1687 -- or Is_Exported is set, then the default interface name is the name
1688 -- of the entity, cased in a manner that is appropriate to the system
1689 -- in use. Note that Interface_Name is ignored if an address clause
1690 -- is present (since it is meaningless in this case).
1692 -- An additional special case usage of this field is in JGNAT for
1693 -- E_Component and E_Discriminant. JGNAT allows these entities to
1694 -- be imported by specifying pragma Import within a component's
1695 -- containing record definition. This supports interfacing to
1696 -- object fields defined within Java classes, and such pragmas
1697 -- are generated by the jvm2ada binding generator tool whenever
1698 -- it processes classes with public object fields. A pragma Import
1699 -- for a component can define the External_Name of the imported
1700 -- Java field (which is generally needed, because Java names are
1701 -- case sensitive).
1703 -- In_Use (Flag8)
1704 -- Present in packages and types. Set when analyzing a use clause for
1705 -- the corresponding entity. Reset at end of corresponding declarative
1706 -- part. The flag on a type is also used to determine the visibility of
1707 -- the primitive operators of the type.
1709 -- Is_Abstract (Flag19)
1710 -- Present in all types, and also for functions and procedures. Set
1711 -- for abstract types and abstract subprograms.
1713 -- Is_Local_Anonymous_Access (Flag194)
1714 -- Present in access types. Set for an anonymous access type to indicate
1715 -- that the type is created for a record component with an access
1716 -- definition, an array component, or a stand-alone object. Such
1717 -- anonymous types have an accessibility level equal to that of the
1718 -- declaration in which they appear, unlike the anonymous access types
1719 -- that are created for access parameters and access discriminants.
1721 -- Is_Access_Constant (Flag69)
1722 -- Present in access types and subtypes. Indicates that the keyword
1723 -- constant was present in the access type definition.
1725 -- Is_Access_Type (synthesized)
1726 -- Applies to all entities, true for access types and subtypes
1728 -- Is_Ada_2005 (Flag185)
1729 -- Applies to all entities, true if a valid pragma Ada_05 applies to the
1730 -- entity, indicating that the entity is Ada 2005 only.
1732 -- Is_Aliased (Flag15)
1733 -- Present in objects whose declarations carry the keyword aliased,
1734 -- and on record components that have the keyword.
1736 -- Is_Always_Inlined (synthesized)
1737 -- Present in subprograms. True if there is a pragma Inline_Always for
1738 -- the subprogram.
1740 -- Is_AST_Entry (Flag132)
1741 -- Present in entry entities. Set if a valid pragma AST_Entry applies
1742 -- to the entry. This flag can only be set in OpenVMS versions of GNAT.
1743 -- Note: we also allow the flag to appear in entry families, but given
1744 -- the current implementation of the pragma AST_Entry, this flag will
1745 -- always be False in entry families.
1747 -- Is_Atomic (Flag85)
1748 -- Present in all type entities, and also in constants, components and
1749 -- variables. Set if a pragma Atomic or Shared applies to the entity.
1750 -- In the case of private and incomplete types, this flag is set in
1751 -- both the partial view and the full view.
1753 -- Is_Array_Type (synthesized)
1754 -- Applies to all entities, true for array types and subtypes
1756 -- Is_Asynchronous (Flag81)
1757 -- Present in all type entities and in procedure entities. Set
1758 -- if a pragma Asynchronous applies to the entity.
1760 -- Is_Bit_Packed_Array (Flag122) [implementation base type only]
1761 -- Present in all entities. This flag is set for a packed array
1762 -- type that is bit packed (i.e. the component size is known by the
1763 -- front end and is in the range 1-7, 9-15, 17-31, or 33-63). Is_Packed
1764 -- is always set if Is_Bit_Packed_Array is set, but it is possible for
1765 -- Is_Packed to be set without Is_Bit_Packed_Array for the case of an
1766 -- array having one or more index types that are enumeration types
1767 -- with non-standard enumeration representations.
1769 -- Is_Boolean_Type (synthesized)
1770 -- Applies to all entities, true for boolean types and subtypes,
1771 -- i.e. Standard.Boolean and all types ultimately derived from it.
1773 -- Is_By_Copy_Type (synthesized)
1774 -- Applies to all type entities. Returns true if the entity is
1775 -- a by copy type (RM 6.2(3)).
1777 -- Is_By_Reference_Type (synthesized)
1778 -- Applies to all type entities. True if the type is required to
1779 -- be passed by reference, as defined in (RM 6.2(4-9)).
1781 -- Is_Called (Flag102)
1782 -- Present in subprograms. Returns true if the subprogram is called
1783 -- in the unit being compiled or in a unit in the context. Used for
1784 -- inlining.
1786 -- Is_Character_Type (Flag63)
1787 -- Present in all entities, true for character types and subtypes,
1788 -- i.e. enumeration types that have at least one character literal.
1790 -- Is_Child_Unit (Flag73)
1791 -- Present in all entities. Set only for defining entities of program
1792 -- units that are child units (but False for subunits).
1794 -- Is_Class_Wide_Type (synthesized)
1795 -- Applies to all entities, true for class wide types and subtypes
1797 -- Is_Class_Wide_Equivalent_Type (Flag35)
1798 -- Present in record types and subtypes. Set to True, if the type acts
1799 -- as a class-wide equivalent type, i.e. the Equivalent_Type field of
1800 -- some class-wide subtype entity references this record type.
1802 -- Is_Compilation_Unit (Flag149)
1803 -- Present in all entities. Set if the entity is a package or subprogram
1804 -- entity for a compilation unit other than a subunit (since we treat
1805 -- subunits as part of the same compilation operation as the ultimate
1806 -- parent, we do not consider them to be separate units for this flag).
1808 -- Is_Completely_Hidden (Flag103)
1809 -- A flag set on an E_Discriminant entity. This flag can be set only
1810 -- for girder discriminants of untagged types. When set, the entity
1811 -- is a girder discriminant of a derived untagged type which is not
1812 -- directly visible in the derived type because the derived type or
1813 -- one of its ancestors have renamed the discriminants in the root
1814 -- type. Note that there are girder discriminants which are not
1815 -- Completely_Hidden (e.g. the discriminants of a root type).
1817 -- Is_Composite_Type (synthesized)
1818 -- Applies to all entities, true for all composite types and
1819 -- subtypes. Either Is_Composite_Type or Is_Elementary_Type (but
1820 -- not both) is true of any type.
1822 -- Is_Concurrent_Record_Type (Flag20)
1823 -- Present in record types and subtypes. Set if the type was created
1824 -- by the expander to represent a task or protected type. For every
1825 -- concurrent type, such as record type is constructed, and task and
1826 -- protected objects are instances of this record type at runtime
1827 -- (Gigi will replace declarations of the concurrent type using the
1828 -- declarations of the corresponding record type). See package Exp_Ch9
1829 -- for further details.
1831 -- Is_Concurrent_Type (synthesized)
1832 -- Applies to all entities, true for task types and subtypes and
1833 -- for protected types and subtypes.
1835 -- Is_Constrained (Flag12)
1836 -- Present in types or subtypes which may have index, discriminant
1837 -- or range constraint (i.e. array types and subtypes, record types
1838 -- and subtypes, string types and subtypes, and all numeric types).
1839 -- Set if the type or subtype is constrained.
1841 -- Is_Constr_Subt_For_U_Nominal (Flag80)
1842 -- Present in all types and subtypes. Set true only for the constructed
1843 -- subtype of an object whose nominal subtype is unconstrained. Note
1844 -- that the constructed subtype itself will be constrained.
1846 -- Is_Constr_Subt_For_UN_Aliased (Flag141)
1847 -- This flag can only be set if Is_Constr_Subt_For_U_Nominal is set. It
1848 -- indicates that in addition the object concerned is aliased. This flag
1849 -- is used by Gigi to determine whether a template must be constructed.
1851 -- Is_Constructor (Flag76)
1852 -- Present in function and procedure entities. Set if a pragma
1853 -- CPP_Constructor applies to the subprogram.
1855 -- Is_Controlled (Flag42) [base type only]
1856 -- Present in all type entities. Indicates that the type is controlled,
1857 -- i.e. is either a descendant of Ada.Finalization.Controlled or of
1858 -- Ada.Finalization.Limited_Controlled.
1860 -- Is_Controlling_Formal (Flag97)
1861 -- Present in all Formal_Kind entity. Marks the controlling parameters
1862 -- of dispatching operations.
1864 -- Is_CPP_Class (Flag74)
1865 -- Present in all type entities, set only for tagged and untagged
1866 -- record types to which the pragma CPP_Class has been applied.
1868 -- Is_Decimal_Fixed_Point_Type (synthesized)
1869 -- Applies to all type entities, true for decimal fixed point
1870 -- types and subtypes.
1872 -- Is_Derived_Type (synthesized)
1873 -- Applies to all type entities. Determine if given entity is a
1874 -- derived type
1876 -- Is_Discrete_Type (synthesized)
1877 -- Applies to all entities, true for all discrete types and subtypes
1879 -- Is_Discrete__Or_Fixed_Point_Type (synthesized)
1880 -- Applies to all entities, true for all discrete types and subtypes
1881 -- and all fixed-point types and subtypes.
1883 -- Is_Discrim_SO_Function (Flag176)
1884 -- Present in all entities, set only in E_Function entities that Layout
1885 -- creates to compute discriminant-dependent dynamic size/offset values.
1887 -- Is_Dispatching_Operation (Flag6)
1888 -- Present in all entities. Set true for procedures, functions,
1889 -- generic procedures and generic functions if the corresponding
1890 -- operation is dispatching.
1892 -- Is_Dynamic_Scope (synthesized)
1893 -- Applies to all Entities. Returns True if the entity is a dynamic
1894 -- scope (i.e. a block, a subprogram a task_type or an entry).
1896 -- Is_Elementary_Type (synthesized)
1897 -- Applies to all entities, true for all elementary types and
1898 -- subtypes. Either Is_Composite_Type or Is_Elementary_Type (but
1899 -- not both) is true of any type.
1901 -- Is_Eliminated (Flag124)
1902 -- Present in type entities, subprogram entities, and object entities.
1903 -- Indicates that the corresponding entity has been eliminated by use
1904 -- of pragma Eliminate. Also used to mark subprogram entities whose
1905 -- declaration and body are within unreachable code that is removed.
1907 -- Is_Enumeration_Type (synthesized)
1908 -- Present in all entities, true for enumeration types and subtypes
1910 -- Is_Entry (synthesized)
1911 -- Applies to all entities, True only for entry and entry family
1912 -- entities and False for all other entity kinds.
1914 -- Is_Entry_Formal (Flag52)
1915 -- Present in all entities. Set only for entry formals (which can
1916 -- only be in, in-out or out parameters). This flag is used to speed
1917 -- up the test for the need to replace references in Exp_Ch2.
1919 -- Is_Exported (Flag99)
1920 -- Present in all entities. Set if the entity is exported. For now we
1921 -- only allow the export of constants, exceptions, functions, procedures
1922 -- and variables, but that may well change later on. Exceptions can only
1923 -- be exported in the OpenVMS and Java VM implementations of GNAT.
1925 -- Is_First_Subtype (Flag70)
1926 -- Present in all entities. True for first subtypes (RM 3.2.1(6)),
1927 -- i.e. the entity in the type declaration that introduced the type.
1928 -- This may be the base type itself (e.g. for record declarations and
1929 -- enumeration type declarations), or it may be the first subtype of
1930 -- an anonymous base type (e.g. for integer type declarations or
1931 -- constrained array declarations).
1933 -- Is_Fixed_Point_Type (synthesized)
1934 -- Applies to all entities, true for decimal and ordinary fixed
1935 -- point types and subtypes
1937 -- Is_Floating_Point_Type (synthesized)
1938 -- Applies to all entities, true for float types and subtypes
1940 -- Is_Formal (synthesized)
1941 -- Applies to all entities, true for IN, IN OUT and OUT parameters
1943 -- Is_Formal_Subprogram (Flag111)
1944 -- Defined on all entities, true for generic formal subprograms.
1946 -- Is_For_Access_Subtype (Flag118)
1947 -- Present in E_Private_Subtype and E_Record_Subtype entities.
1948 -- Means the sole purpose of the type is to be designated by an
1949 -- Access_Subtype and hence should not be expanded into components
1950 -- because the type may not have been found or frozen yet.
1952 -- Is_Frozen (Flag4)
1953 -- Present in all type entities. Set if the type has been frozen.
1955 -- Is_Generic_Actual_Type (Flag94)
1956 -- Present in the subtype declaration that renames the generic formal
1957 -- as a subtype of the actual. Guarantees that the subtype is not static
1958 -- within the instance.
1960 -- Is_Generic_Instance (Flag130)
1961 -- Present in all entities. Set to indicate that the entity is an
1962 -- instance of a generic unit.
1964 -- Is_Generic_Subprogram (synthesized)
1965 -- Applies to all entities. Yields True for a generic subprogram
1966 -- (generic function, generic subprogram), False for all other entities.
1968 -- Is_Generic_Type (Flag13)
1969 -- Present in all types and subtypes. Set for types which are generic
1970 -- formal types. Such types have an Ekind that corresponds to their
1971 -- classification, so the Ekind cannot be used to identify generic types.
1973 -- Is_Generic_Unit (synthesized)
1974 -- Applies to all entities. Yields True for a generic unit (generic
1975 -- package, generic function, generic procedure), and False for all
1976 -- other entities.
1978 -- Is_Hidden (Flag57)
1979 -- Present in all entities. Set true for all entities declared in the
1980 -- private part or body of a package. Also marks generic formals of a
1981 -- formal package declared without a box. For library level entities,
1982 -- this flag is set if the entity is not publicly visible.
1984 -- Is_Hidden_Open_Scope (Flag171)
1985 -- Present in all entities. Set true for a scope that contains the
1986 -- instantiation of a child unit, and whose entities are not visible
1987 -- during analysis of the instance.
1989 -- Is_Immediately_Visible (Flag7)
1990 -- Present in all entities. Set if entity is immediately visible, i.e.
1991 -- is defined in some currently open scope (RM 8.3(4)).
1993 -- Is_Imported (Flag24)
1994 -- Present in all entities. Set if the entity is imported. For now we
1995 -- only allow the import of exceptions, functions, procedures, packages.
1996 -- and variables. Exceptions can only be imported in the OpenVMS and
1997 -- Java VM implementations of GNAT. Packages and types can only be
1998 -- imported in the Java VM implementation.
2000 -- Is_Incomplete_Or_Private_Type (synthesized)
2001 -- Applies to all entities, true for private and incomplete types
2003 -- Is_Indefinite_Subtype (synthesized)
2004 -- Applies to all entities for types and subtypes. Determines if given
2005 -- entity is an unconstrained array type or subtype, a discriminated
2006 -- record type or subtype with no initial discriminant values or a
2007 -- class wide type or subtype.
2009 -- Is_Inlined (Flag11)
2010 -- Present in all entities. Set for functions and procedures which are
2011 -- to be inlined. For subprograms created during expansion, this flag
2012 -- may be set directly by the expander to request inlining. Also set
2013 -- for packages that contain inlined subprograms, whose bodies must be
2014 -- be compiled. Is_Inlined is also set on generic subprograms and is
2015 -- inherited by their instances. It is also set on the body entities
2016 -- of inlined subprograms. See also Has_Pragma_Inline.
2018 -- Is_Instantiated (Flag126)
2019 -- Present in generic packages and generic subprograms. Set if the unit
2020 -- is instantiated from somewhere in the extended main source unit. This
2021 -- flag is used to control warnings about the unit being uninstantiated.
2022 -- Also set in a package that is used as an actual for a generic package
2023 -- formal in an instantiation. Also set on a parent instance, in the
2024 -- instantiation of a child, which is implicitly declared in the parent.
2026 -- Is_Integer_Type (synthesized)
2027 -- Applies to all entities, true for integer types and subtypes
2029 -- Is_Interface (Flag186)
2030 -- Present in record types and subtypes to indicate that the current
2031 -- entity corresponds with an abstract interface. Because abstract
2032 -- interfaces are conceptually a special kind of abstract tagged types
2033 -- we represent them by means of tagged record types and subtypes
2034 -- marked with this attribute. This allows us to reuse most of the
2035 -- compiler support for abstract tagged types to implement interfaces
2036 -- (Ada 2005: AI-251).
2038 -- Is_Internal (Flag17)
2039 -- Present in all entities. Set to indicate an entity created during
2040 -- semantic processing (e.g. an implicit type, or a temporary). The
2041 -- only current use of this flag is to indicate that temporaries
2042 -- generated for the result of an inlined function call need not be
2043 -- initialized, even when scalars are initialized or normalized.
2045 -- Is_Interrupt_Handler (Flag89)
2046 -- Present in procedures. Set if a pragma Interrupt_Handler applies
2047 -- to the procedure. The procedure must be parameterless, and on all
2048 -- targets except AAMP it must be a protected procedure.
2050 -- Is_Intrinsic_Subprogram (Flag64)
2051 -- Present in functions and procedures. It is set if a valid pragma
2052 -- Interface or Import is present for this subprogram specifying pragma
2053 -- Intrinsic. Valid means that the name and profile of the subprogram
2054 -- match the requirements of one of the recognized intrinsic subprograms
2055 -- (see package Sem_Intr for details). Note: the value of Convention for
2056 -- such an entity will be set to Convention_Intrinsic, but it is the
2057 -- setting of Is_Intrinsic_Subprogram, NOT simply having convention set
2058 -- to intrinsic, which causes intrinsic code to be generated.
2060 -- Is_Itype (Flag91)
2061 -- Present in all entities, set for Itypes. If it is set, then the
2062 -- declaration for the type does not appear explicitly in the tree.
2063 -- Instead gigi will elaborate the type when it is first used.
2064 -- Has_Delayed_Freeze can be set for Itypes, and the meaning is that
2065 -- the first use (the one which causes the type to be defined) will
2066 -- be the freeze node. Note that an important restriction on Itypes
2067 -- is that the first use of such a type (the one that causes it to be
2068 -- defined) must be in the same scope as the type.
2070 -- Is_Known_Non_Null (Flag37)
2071 -- Present in all entities. Relevant (and can be set True) only for
2072 -- objects of an access type. It is set if the object is currently
2073 -- known to have a non-null value (meaning that no access checks
2074 -- are needed). The indication can for example come from assignment
2075 -- of an access parameter or an allocator whose value is known non-null.
2077 -- Note: this flag is set according to the sequential flow of the
2078 -- program, watching the current value of the variable. However,
2079 -- this processing can miss cases of changing the value of an aliased
2080 -- or constant object, so even if this flag is set, it should not
2081 -- be believed if the variable is aliased or volatile. It would
2082 -- be a little neater to avoid the flag being set in the first
2083 -- place in such cases, but that's trickier, and there is only
2084 -- one place that tests the value anyway.
2086 -- The flag is dynamically set and reset as semantic analysis and
2087 -- expansion proceeds. Its value is meaningless once the tree is
2088 -- fully constructed, since it simply indicates the last state.
2089 -- Thus this flag has no meaning to the back end.
2091 -- Is_Known_Null (Flag204)
2092 -- Present in all entities. Relevant (and can be set True) only for
2093 -- objects of an access type. It is set if the object is currently known
2094 -- to have a null value (meaning that a dereference will surely raise
2095 -- constraint error exception). The indication can come from an
2096 -- assignment or object declaration.
2098 -- The comments above about sequential flow and aliased and volatile for
2099 -- the Is_Known_Non_Null flag apply equally to the Is_Known_Null flag.
2101 -- Is_Known_Valid (Flag170)
2102 -- Present in all entities. Relevant for types (and subtype) and
2103 -- for objects (and enumeration literals) of a discrete type.
2105 -- The purpose of this flag is to implement the requirement stated
2106 -- in (RM 13.9.1(9-11)) which require that the use of possibly invalid
2107 -- values may not cause programs to become erroneous. See the function
2108 -- Exp_Util.Expr_Known_Valid for further details. Note that the setting
2109 -- is conservative, in the sense that if the flag is set, it must be
2110 -- right. If the flag is not set, nothing is known about the validity.
2112 -- For enumeration literals, the flag is always set, since clearly
2113 -- an enumeration literal represents a valid value. Range checks
2114 -- where necessary will ensure that this valid value is appropriate.
2116 -- For objects, the flag indicates the state of knowledge about the
2117 -- current value of the object. This may be modified during expansion,
2118 -- and thus the final value is not relevant to gigi.
2120 -- For types and subtypes, the flag is set if all possible bit patterns
2121 -- of length Object_Size (i.e. Esize of the type) represent valid values
2122 -- of the type. In general for such tytpes, all values are valid, the
2123 -- only exception being the case where an object of the type has an
2124 -- explicit size that is greater than Object_Size.
2126 -- For non-discrete objects, the setting of the Is_Known_Valid flag is
2127 -- not defined, and is not relevant, since the considerations of the
2128 -- requirement in (RM 13.9.1(9-11)) do not apply.
2130 -- The flag is dynamically set and reset as semantic analysis and
2131 -- expansion proceeds. Its value is meaningless once the tree is
2132 -- fully constructed, since it simply indicates the last state.
2133 -- Thus this flag has no meaning to the back end.
2135 -- Is_Limited_Composite (Flag106)
2136 -- Present in all entities. True for composite types that have a
2137 -- limited component. Used to enforce the rule that operations on
2138 -- the composite type that depend on the full view of the component
2139 -- do not become visible until the immediate scope of the composite
2140 -- type itself (RM 7.3.1 (5)).
2142 -- Is_Limited_Interface (Flag197)
2143 -- Present in types that are interfaces. True if interface is declared
2144 -- limited, or is derived from limited interfaces.
2146 -- Is_Limited_Record (Flag25)
2147 -- Present in all entities. Set to true for record (sub)types if the
2148 -- record is declared to be limited. Note that this flag is not set
2149 -- simply because some components of the record are limited.
2151 -- Is_Limited_Type (synthesized)
2152 -- Applies to all entities. True if entity is a limited type (limited
2153 -- private type, task type, protected type, composite containing a
2154 -- limited component, or a subtype of any of these types).
2156 -- Is_Machine_Code_Subprogram (Flag137)
2157 -- Present in subprogram entities. Set to indicate that the subprogram
2158 -- is a machine code subprogram (i.e. its body includes at least one
2159 -- code statement). Also indicates that all necessary semantic checks
2160 -- as required by RM 13.8(3) have been performed.
2162 -- Is_Modular_Integer_Type (synthesized)
2163 -- Applies to all entities. True if entity is a modular integer type
2165 -- Is_Non_Static_Subtype (Flag109)
2166 -- This flag is present in all type and subtype entities. It is set in
2167 -- some (but not all) cases in which a subtype is known to be non-static.
2168 -- Before this flag was added, the computation of whether a subtype was
2169 -- static was entirely synthesized, by looking at the bounds, and the
2170 -- immediate subtype parent. However, this method does not work for some
2171 -- Itypes that have no parent set (and the only way to find the immediate
2172 -- subtype parent is to go through the tree). For now, this flay is set
2173 -- conservatively, i.e. if it is set then for sure the subtype is non-
2174 -- static, but if it is not set, then the type may or may not be static.
2175 -- Thus the test for a static subtype is that this flag is clear AND
2176 -- that the bounds are static AND that the parent subtype (if available
2177 -- to be tested) is static. Eventually we should make sure this flag
2178 -- is always set right, at which point, these comments can be removed,
2179 -- and the tests for static subtypes greatly simplified.
2181 -- Is_Null_Init_Proc (Flag178)
2182 -- Present in procedure entities. Set for generated init proc procedures
2183 -- (used to initialize composite types), if the code for the procedure
2184 -- is null (i.e. is a return and nothing else). Such null initialization
2185 -- procedures are generated in case some client is compiled using the
2186 -- Initialize_Scalars pragma, generating a call to this null procedure,
2187 -- but there is no need to call such procedures within a compilation
2188 -- unit, and this flag is used to suppress such calls.
2190 -- Is_Numeric_Type (synthesized)
2191 -- Applies to all entities, true for all numeric types and subtypes
2192 -- (integer, fixed, float).
2194 -- Is_Object (synthesized)
2195 -- Applies to all entities, true for entities representing objects,
2196 -- including generic formal parameters.
2198 -- Is_Obsolescent (Flag153)
2199 -- Present in all entities. Set only for packages and subprograms to
2200 -- which a valid pragma Obsolescent applies.
2202 -- Is_Optional_Parameter (Flag134)
2203 -- Present in parameter entities. Set if the parameter is specified as
2204 -- optional by use of a First_Optional_Parameter argument to one of the
2205 -- extended Import pragmas. Can only be set for OpenVMS versions of GNAT.
2207 -- Is_Ordinary_Fixed_Point_Type (synthesized)
2208 -- Applies to all entities, true for ordinary fixed point types
2209 -- and subtypes
2211 -- Is_Overriding_Operation (Flag39)
2212 -- Present in subprograms. Set if the subprogram is a primitive
2213 -- operation of a derived type, that overrides an inherited operation.
2215 -- Is_Package_Or_Generic_Package (synthesized)
2216 -- Applies to all entities. True for packages and generic packages.
2217 -- False for all other entities.
2219 -- Is_Package_Body_Entity (Flag160)
2220 -- Present in all entities. Set for entities defined at the top level
2221 -- of a package body. Used to control externally generated names.
2223 -- Is_Packed (Flag51) [implementation base type only]
2224 -- Present in all type entities. This flag is set only for record and
2225 -- array types which have a packed representation. There are three
2226 -- cases which cause packing:
2228 -- 1. Explicit use of pragma Pack for an array of package components
2229 -- 2. Explicit use of pragma Pack to pack a record
2230 -- 4. Setting Component_Size of an array to a bit-packable value
2231 -- 3. Indexing an array with a non-standard enumeration type.
2233 -- For records, Is_Packed is always set if Has_Pack_Pragma is set,
2234 -- and can also be set on its own in a derived type which inherited
2235 -- its packed status.
2237 -- For arrays, Is_Packed is set if an array is bit packed (i.e. the
2238 -- component size is known at compile time and is 1-7, 9-15 or 17-31),
2239 -- or if the array has one or more index types that are enumeration
2240 -- types with non-standard representations (in GNAT, we store such
2241 -- arrays compactly, using the Pos of the enumeration type value).
2243 -- As for the case of records, Is_Packed can be set on its own for a
2244 -- derived type, with the same dual before/after freeze meaning.
2245 -- Is_Packed can also be set as the result of an explicit component
2246 -- size clause that specifies an appropriate component size.
2248 -- In the bit packed array case, Is_Bit_Packed_Array will be set in
2249 -- the bit packed case once the array type is frozen.
2251 -- Before an array type is frozen, Is_Packed will always be set if
2252 -- Has_Pack_Pragma is set. Before the freeze point, it is not possible
2253 -- to know the component size, since the component type is not frozen
2254 -- until the array type is frozen. Thus Is_Packed for an array type
2255 -- before it is frozen means that packed is required. Then if it turns
2256 -- out that the component size is not suitable for bit packing, the
2257 -- Is_Packed flag gets turned off.
2259 -- Is_Packed_Array_Type (Flag138)
2260 -- Present in all entities. This flag is set on the entity for the type
2261 -- used to implement a packed array (either a modular type, or a subtype
2262 -- of Packed_Bytes{1,2,4} as appropriate). The flag is set if and only
2263 -- if the type appears in the Packed_Array_Type field of some other type
2264 -- entity. It is used by Gigi to activate the special processing for such
2265 -- types (unchecked conversions that would not otherwise be allowed are
2266 -- allowed for such types). If the Is_Packed_Array_Type flag is set in
2267 -- an entity, then the Original_Array_Type field of this entity points
2268 -- to the original array type for which this is the packed array type.
2270 -- Is_Potentially_Use_Visible (Flag9)
2271 -- Present in all entities. Set if entity is potentially use visible,
2272 -- i.e. it is defined in a package that appears in a currently active
2273 -- use clause (RM 8.4(8)). Note that potentially use visible entities
2274 -- are not necessarily use visible (RM 8.4(9-11)).
2276 -- Is_Preelaborated (Flag59)
2277 -- Present in all entities, set in E_Package and E_Generic_Package
2278 -- entities to which a pragma Preelaborate is applied, and also in
2279 -- all entities within such packages. Note that the fact that this
2280 -- flag is set does not necesarily mean that no elaboration code is
2281 -- generated for the package.
2283 -- Is_Primitive_Wrapper (Flag195)
2284 -- Present in E_Procedures. Primitive wrappers are Expander-generated
2285 -- procedures that wrap entries of protected or task types implementing
2286 -- a limited interface.
2288 -- Is_Private_Composite (Flag107)
2289 -- Present in composite types that have a private component. Used to
2290 -- enforce the rule that operations on the composite type that depend
2291 -- on the full view of the component, do not become visible until the
2292 -- immediate scope of the composite type itself (7.3.1 (5)). Both this
2293 -- flag and Is_Limited_Composite are needed.
2295 -- Is_Private_Descendant (Flag53)
2296 -- Present in entities that can represent library units (packages,
2297 -- functions, procedures). Set if the library unit is itself a private
2298 -- child unit, or if it is the descendent of a private child unit.
2300 -- Is_Private_Type (synthesized)
2301 -- Applies to all entities, true for private types and subtypes,
2302 -- as well as for record with private types as subtypes
2304 -- Is_Protected_Interface (Flag198)
2305 -- Present in types that are interfaces. True if interface is declared
2306 -- protected, or is derived from protected interfaces.
2308 -- Is_Protected_Type (synthesized)
2309 -- Applies to all entities, true for protected types and subtypes
2311 -- Is_Public (Flag10)
2312 -- Present in all entities. Set to indicate that an entity defined in
2313 -- one compilation unit can be referenced from other compilation units.
2314 -- If this reference causes a reference in the generated variable, for
2315 -- example in the case of a variable name, then Gigi will generate an
2316 -- appropriate external name for use by the linker.
2318 -- Is_Protected_Private (synthesized)
2319 -- Applies to a record component. Returns true if this component
2320 -- is used to represent a private declaration of a protected type.
2322 -- Is_Protected_Record_Type (synthesized)
2323 -- Applies to all entities, true if Is_Concurrent_Record_Type
2324 -- Corresponding_Concurrent_Type is a protected type.
2326 -- Is_Pure (Flag44)
2327 -- Present in all entities. Set in all entities of a unit to which a
2328 -- pragma Pure is applied, and also set for the entity of the unit
2329 -- itself. In addition, this flag may be set for any other functions
2330 -- or procedures that are known to be side effect free, so in the case
2331 -- of subprograms, the Is_Pure flag may be used by the optimizer to
2332 -- imply that it can assume freedom from side effects (other than those
2333 -- resulting from assignment to out parameters, or to objects designated
2334 -- by access parameters).
2336 -- Is_Pure_Unit_Access_Type (Flag189)
2337 -- Present in access type and subtype entities. Set if the type or
2338 -- subtype appears in a pure unit. Used to give an error message at
2339 -- freeze time if the access type has a storage pool.
2341 -- Is_Real_Type (synthesized)
2342 -- Applies to all entities, true for real types and subtypes
2344 -- Is_Record_Type (synthesized)
2345 -- Applies to all entities, true for record types and subtypes,
2346 -- includes class-wide types and subtypes (which are also records)
2348 -- Is_Remote_Call_Interface (Flag62)
2349 -- Present in all entities, set in E_Package and E_Generic_Package
2350 -- entities to which a pragma Remote_Call_Interace is applied, and
2351 -- also in all entities within such packages.
2353 -- Is_Remote_Types (Flag61)
2354 -- Present in all entities, set in E_Package and E_Generic_Package
2355 -- entities to which a pragma Remote_Types is applied, and also in
2356 -- all entities within such packages.
2358 -- Is_Renaming_Of_Object (Flag112)
2359 -- Present in all entities, set only for a variable or constant for
2360 -- which the Renamed_Object field is non-empty and for which the
2361 -- renaming is handled by the front end, by macro substitution of
2362 -- a copy of the (evaluated) name tree whereever the variable is used.
2364 -- Is_Return_By_Reference_Type (synthesized)
2365 -- Applies to all type entities. True if the type is required to
2366 -- be returned by reference, as defined in 6.5(11-16).
2368 -- Is_Scalar_Type (synthesized)
2369 -- Applies to all entities, true for scalar types and subtypes
2371 -- Is_Shared_Passive (Flag60)
2372 -- Present in all entities, set in E_Package and E_Generic_Package
2373 -- entities to which a pragma Shared_Passive is applied, and also in
2374 -- all entities within such packages.
2376 -- Is_Statically_Allocated (Flag28)
2377 -- Present in all entities. This can only be set True for exception,
2378 -- variable, constant, and type/subtype entities. If the flag is set,
2379 -- then the variable or constant must be allocated statically rather
2380 -- than on the local stack frame. For exceptions, the meaning is that
2381 -- the exception data should be allocated statically (and indeed this
2382 -- flag is always set for exceptions, since exceptions do not have
2383 -- local scope). For a type, the meaning is that the type must be
2384 -- elaborated at the global level rather than locally. No type marked
2385 -- with this flag may depend on a local variable, or on any other type
2386 -- which does not also have this flag set to True. For a variable or
2387 -- or constant, if the flag is set, then the type of the object must
2388 -- either be declared at the library level, or it must also have the
2389 -- flag set (since to allocate the oject statically, its type must
2390 -- also be elaborated globally).
2392 -- Is_Subprogram (synthesized)
2393 -- Applies to all entities, true for bodies of functions, procedures
2394 -- and operators.
2396 -- Is_String_Type (synthesized)
2397 -- Applies to all type entities. Determines if the given type is a
2398 -- string type, i.e. it is directly a string type or string subtype,
2399 -- or a string slice type, or an array type with one dimension and a
2400 -- component type that is a character type.
2402 -- Is_Synchronized_Interface (Flag199)
2403 -- Present_types that are interfaces. True is interface is declared
2404 -- synchronized, or is derived from synchronized interfaces.
2406 -- Is_Tag (Flag78)
2407 -- Present in E_Component. For regular tagged type this flag is set on
2408 -- the tag component (whose name is Name_uTag) and for CPP_Class tagged
2409 -- types, this flag marks the pointer to the main vtable (i.e. the one
2410 -- to be extended by derivation)
2412 -- Is_Tagged_Type (Flag55)
2413 -- Present in all entities, true for an entity for a tagged type.
2415 -- Is_Task_Interface (Flag200)
2416 -- Present in types that are interfaces. True is interface is declared
2417 -- as such, or if it is derived from task interfaces.
2419 -- Is_Task_Record_Type (synthesized)
2420 -- Applies to all entities, true if Is_Concurrent_Record_Type
2421 -- Corresponding_Concurrent_Type is a task type.
2423 -- Is_Task_Type (synthesized)
2424 -- Applies to all entities, true for task types and subtypes
2426 -- Is_Thread_Body (Flag77)
2427 -- Applies to subprogram entities. Set if a valid Thread_Body pragma
2428 -- applies to this subprogram, which is thus a thread body.
2430 -- Is_True_Constant (Flag163)
2431 -- This flag is set in constants and variables which have an initial
2432 -- value specified but which are never assigned, partially or in the
2433 -- whole. For variables, it means that the variable was initialized
2434 -- but never modified, and hence can be treated as a constant by the
2435 -- code generator. For a constant, it means that the constant was not
2436 -- modified by generated code (e.g. to set a discriminant in an init
2437 -- proc). Assignments by user or generated code will reset this flag.
2439 -- Note: there is one situation in which the back end does not permit
2440 -- this flag to be set, even if no assignments are generated. This is
2441 -- the case of an object of a record or array type which is initialized
2442 -- with an aggregate, and is itself used as the expression initializing
2443 -- an atomic object, or the right hand side of an assignment to an atomic
2444 -- object. In this case the object must not have Is_True_Constant set,
2445 -- even though no assignments are generated (the reason for this is that
2446 -- the back end must not optimize the object away, because that would
2447 -- violate the restriction on aggregates in these positions).
2449 -- Is_Type (synthesized)
2450 -- Applies to all entities, true for a type entity
2452 -- Is_Unchecked_Union (Flag117) [implementation base type only]
2453 -- Present in all entities. Set only in record types to which the
2454 -- pragma Unchecked_Union has been validly applied.
2456 -- Is_Unsigned_Type (Flag144)
2457 -- Present in all types, but can be set only for discrete and fixed-point
2458 -- type and subtype entities. This flag is only valid if the entity is
2459 -- frozen. If set it indicates that the representation is known to be
2460 -- unsigned (i.e. that no negative values appear in the range). This is
2461 -- normally just a reflection of the lower bound of the subtype or base
2462 -- type, but there is one case in which the setting is non-obvious,
2463 -- namely the case of an unsigned subtype of a signed type from which
2464 -- a further subtype is obtained using variable bounds. This further
2465 -- subtype is still unsigned, but this cannot be determined by looking
2466 -- at its bounds or the bounds of the corresponding base type.
2468 -- Is_Valued_Procedure (Flag127)
2469 -- Present in procedure entities. Set if an Import_Valued_Procedure
2470 -- or Export_Valued_Procedure pragma applies to the procedure entity.
2472 -- Is_Visible_Child_Unit (Flag116)
2473 -- Present in compilation units that are child units. Once compiled,
2474 -- child units remain chained to the entities in the parent unit, and
2475 -- a separate flag must be used to indicate whether the names are
2476 -- visible by selected notation, or not.
2478 -- Is_VMS_Exception (Flag133)
2479 -- Present in all entities. Set only for exception entities where the
2480 -- exception was specified in an Import_Exception or Export_Exception
2481 -- pragma with the VMS option for Form. See description of these pragmas
2482 -- for details. This flag can only be set in OpenVMS versions of GNAT.
2484 -- Is_Volatile (Flag16)
2485 -- Present in all type entities, and also in constants, components and
2486 -- variables. Set if a pragma Volatile applies to the entity. Also set
2487 -- if pragma Shared or pragma Atomic applies to entity. In the case of
2488 -- private or incomplete types, this flag is set in both the private
2489 -- and full view. The flag is not set reliably on private subtypes,
2490 -- and is always retrieved from the base type (but this is not a base-
2491 -- type-only attribute because it applies to other entities). Note that
2492 -- the back end should use Treat_As_Volatile, rather than Is_Volatile
2493 -- to indicate code generation requirements for volatile variables.
2494 -- Similarly, any front end test which is concerned with suppressing
2495 -- optimizations on volatile objects should test Treat_As_Volatile
2496 -- rather than testing this flag.
2498 -- Is_Wrapper_Package (synthesized)
2499 -- Present in package entities. Indicates that the package has been
2500 -- created as a wrapper for a subprogram instantiation.
2502 -- Itype_Printed (Flag202)
2503 -- Set in Itypes if the Itype has been printed by Sprint. This is used to
2504 -- avoid printing an Itype more than once.
2506 -- Kill_Elaboration_Checks (Flag32)
2507 -- Present in all entities. Set by the expander to kill elaboration
2508 -- checks which are known not to be needed. Equivalent in effect to
2509 -- the use of pragma Supress (Elaboration_Checks) for that entity
2510 -- except that the effect is permanent and cannot be undone by a
2511 -- subsequent pragma Unsuppress.
2513 -- Kill_Range_Checks (Flag33)
2514 -- Present in all entities. Set by the expander to kill elaboration
2515 -- checks which are known not to be needed. Equivalent in effect to
2516 -- the use of pragma Supress (Range_Checks) for that entity except
2517 -- that the result is permanent and cannot be undone by a subsequent
2518 -- pragma Unsuppress.
2520 -- Kill_Tag_Checks (Flag34)
2521 -- Present in all entities. Set by the expander to kill elaboration
2522 -- checks which are known not to be needed. Equivalent in effect to
2523 -- the use of pragma Supress (Tag_Checks) for that entity except
2524 -- that the result is permanent and cannot be undone by a subsequent
2525 -- pragma Unsuppress.
2527 -- Last_Entity (Node20)
2528 -- Present in all entities which act as scopes to which a list of
2529 -- associated entities is attached (blocks, class subtypes and types,
2530 -- entries, functions, loops, packages, procedures, protected objects,
2531 -- record types and subtypes, private types, task types and subtypes).
2532 -- Points to a the last entry in the list of associated entities chained
2533 -- through the Next_Entity field. Empty if no entities are chained.
2535 -- Limited_View (Node23)
2536 -- Present in non-generic package entities that are not instances. Bona
2537 -- fide package with the limited-view list through the first_entity and
2538 -- first_private attributes. The elements of this list are the shadow
2539 -- entities created for the types and local packages that are declared
2540 -- in a package appearing in a limited_with clause (Ada 2005: AI-50217)
2542 -- Lit_Indexes (Node15)
2543 -- Present in enumeration types and subtypes. Non-empty only for the
2544 -- case of an enumeration root type, where it contains the entity for
2545 -- the generated indexes entity. See unit Exp_Imgv for full details of
2546 -- the nature and use of this entity for implkementing the Image and
2547 -- Value attributes for the enumeration type in question.
2549 -- Lit_Strings (Node16)
2550 -- Present in enumeration types and subtypes. Non-empty only for the
2551 -- case of an enumeration root type, where it contains the entity for
2552 -- the literals string entity. See unit Exp_Imgv for full details of
2553 -- the nature and use of this entity for implementing the Image and
2554 -- Value attributes for the enumeration type in question.
2556 -- Machine_Radix_10 (Flag84)
2557 -- Present in decimal types and subtypes, set if the Machine_Radix
2558 -- is 10, as the result of the specification of a machine radix
2559 -- representation clause. Note that it is possible for this flag
2560 -- to be set without having Has_Machine_Radix_Clause True. This
2561 -- happens when a type is derived from a type with a clause present.
2563 -- Master_Id (Node17)
2564 -- Present in access types and subtypes. Empty unless Has_Task is
2565 -- set for the designated type, in which case it points to the entity
2566 -- for the Master_Id for the access type master.
2568 -- Materialize_Entity (Flag168)
2569 -- Present in all entities. Set only for constant or renamed entities
2570 -- which should be materialized for debugging purposes. In the case of
2571 -- a constant, a memory location should be allocated containing the
2572 -- value. In the case of a renaming, a memory location containing the
2573 -- renamed address should be allocated.
2575 -- Mechanism (Uint8) (returned as Mechanism_Type)
2576 -- Present in functions and non-generic formal parameters. Indicates
2577 -- the mechanism to be used for the function return or for the formal
2578 -- parameter. See separate section on passing mechanisms. This field
2579 -- is also set (to the default value of zero) in a subprogram body
2580 -- entity but not used in this context.
2582 -- Modulus (Uint17) [base type only]
2583 -- Present in modular types. Contains the modulus. For the binary
2584 -- case, this will be a power of 2, but if Non_Binary_Modulus is
2585 -- set, then it will not be a power of 2.
2587 -- Must_Be_On_Byte_Boundary (Flag183)
2588 -- Present in entities for types and subtypes. Set if objects of
2589 -- the type must always be allocated on a byte boundary (more
2590 -- accurately a storage unit boundary). The front end checks that
2591 -- component clauses respect this rule, and the back end ensures
2592 -- that record packing does not violate this rule. Currently the
2593 -- flag is set only for packed arrays longer than 64 bits where
2594 -- the component size is not a power of 2.
2596 -- Needs_Debug_Info (Flag147)
2597 -- Present in all entities. Set if the entity requires debugging
2598 -- information to be generated. This is true of all entities that
2599 -- have Comes_From_Source set, and also transitively for entities
2600 -- associated with such components (e.g. their types). It is true
2601 -- for all entities in Debug_Generated_Code mode (-gnatD switch).
2602 -- This is the flag that the back end should check to determine
2603 -- whether or not to generate debugging information for an entity.
2605 -- Needs_No_Actuals (Flag22)
2606 -- Present in callable entities (subprograms, entries, access to
2607 -- subprograms) which can be called without actuals because all of
2608 -- their formals (if any) have default values. This flag simplifies the
2609 -- resolution of the syntactic ambiguity involving a call to these
2610 -- entities when the return type is an array type, and a call can be
2611 -- interpreted as an indexing of the result of the call. It is also
2612 -- used to resolve various cases of entry calls.
2614 -- Never_Set_In_Source (Flag115)
2615 -- Present in all entities, but relevant only for variables and
2616 -- parameters. This flag is set if the object is never assigned
2617 -- a value in user source code, either by assignment or by the
2618 -- use of an initial value, or by some other means.
2620 -- This flag is only for the purposes of issuing warnings, it must not
2621 -- be used by the code generator to indicate that the variable is in
2622 -- fact a constant, since some assignments in generated code do not
2623 -- count (for example, the call to an init proc to assign some but
2624 -- not all of the fields in a partially initialized record). The code
2625 -- generator should instead use the flag Is_True_Constant.
2627 -- For the purposes of this warning, the default assignment of
2628 -- access variables to null is not considered the assignment of
2629 -- of a value (so the warning can be given for code that relies
2630 -- on this initial null value, when no other value is ever set).
2632 -- In variables and out parameters, if this flag is set after full
2633 -- processing of the corresponding declarative unit, it indicates that
2634 -- the variable or parameter was never set, and a warning message can
2635 -- be issued.
2637 -- Note: this flag is initially set, and then cleared on encountering
2638 -- any construct that might conceivably legitimately set the value.
2639 -- Thus during the analysis of a declarative region and its associated
2640 -- statement sequence, the meaning of the flag is "not set yet", and
2641 -- once this analysis is complete the flag means "never assigned".
2643 -- Note: for variables appearing in package declarations, this flag
2644 -- is never set. That is because there is no way to tell if some
2645 -- client modifies the variable (or in the case of variables in the
2646 -- private part, if some child unit modifies the variables).
2648 -- Note: in the case of renamed objects, the flag must be set in the
2649 -- ultimate renamed object. Clients noting a possible modification
2650 -- should use the Note_Possible_Modification procedure in Sem_Util
2651 -- rather than Set_Never_Set_In_Source precisely to deal properly with
2652 -- the renaming possibility.
2654 -- Next_Component (synthesized)
2655 -- Applies to record components. Returns the next component by
2656 -- following the chain of declared entities until one is found which
2657 -- corresponds to a component (Ekind is E_Component). Any internal types
2658 -- generated from the subtype indications of the record components are
2659 -- skipped. Returns Empty if no more components.
2661 -- Next_Discriminant (synthesized)
2662 -- Applies to discriminants returned by First/Next_Discriminant.
2663 -- Returns the next language-defined (ie: perhaps non-girder)
2664 -- discriminant by following the chain of declared entities as long as
2665 -- the kind of the entity corresponds to a discriminant. Note that the
2666 -- discriminants might be the only components of the record.
2667 -- Returns Empty if there are no more.
2669 -- Next_Entity (Node2)
2670 -- Present in all entities. The entities of a scope are chained, with
2671 -- the head of the list being in the First_Entity field of the scope
2672 -- entity. All entities use the Next_Entity field as a forward pointer
2673 -- for this list, with Empty indicating the end of the list. Since this
2674 -- field is in the base part of the entity, the access routines for this
2675 -- field are in Sinfo.
2677 -- Next_Formal (synthesized)
2678 -- Applies to the entity for a formal parameter. Returns the next
2679 -- formal parameter of the subprogram or subprogram type. Returns
2680 -- Empty if there are no more formals.
2682 -- Next_Formal_With_Extras (synthesized)
2683 -- Applies to the entity for a formal parameter. Returns the next
2684 -- formal parameter of the subprogram or subprogram type. Returns
2685 -- Empty if there are no more formals. The list returned includes
2686 -- all the extra formals (see description of Extra_Formal field)
2688 -- Next_Girder_Discriminant (synthesized)
2689 -- Applies to discriminants. Set only for a discriminant returned by
2690 -- a call to First/Next_Girder_Discriminant. Returns next girder
2691 -- discriminant, if there are more (see complete description in
2692 -- First_Girder_Discriminant), or Empty if there are no more.
2694 -- Next_Index (synthesized)
2695 -- Applies to array types and subtypes and to string types and
2696 -- subtypes. Yields the next index. The first index is obtained by
2697 -- using the First_Index attribute, and then subsequent indexes are
2698 -- obtained by applying Next_Index to the previous index. Empty is
2699 -- returned to indicate that there are no more indexes. Note that
2700 -- unlike most attributes in this package, Next_Index applies to
2701 -- nodes for the indexes, not to entities.
2703 -- Next_Inlined_Subprogram (Node12)
2704 -- Present in subprograms. Used to chain inlined subprograms used in
2705 -- the current compilation, in the order in which they must be compiled
2706 -- by Gigi to insure that all inlinings are performed.
2708 -- Next_Literal (synthesized)
2709 -- Applies to enumeration literals, returns the next literal, or
2710 -- Empty if applied to the last literal. This is actually a synonym
2711 -- for Next, but its use is preferred in this context.
2713 -- Next_Tag_Component (synthesized)
2714 -- Applies to components of tagged record types. Given a _Tag field
2715 -- of a record, returns the next _Tag field in this record.
2717 -- Non_Binary_Modulus (Flag58) [base type only]
2718 -- Present in modular integer types. Set if the modulus for the type
2719 -- is other than a power of 2.
2721 -- Non_Limited_View (Node17)
2722 -- Present in incomplete types that are the shadow entities created
2723 -- when analyzing a limited_with_clause (Ada 2005: AI-50217). Points to
2724 -- the defining entity in the original declaration.
2726 -- Nonzero_Is_True (Flag162) [base type only]
2727 -- Present in enumeration types. True if any non-zero value is to be
2728 -- interpreted as true. Currently this is set true for derived Boolean
2729 -- types which have a convention of C, C++ or Fortran.
2731 -- No_Pool_Assigned (Flag131) [root type only]
2732 -- Present in access types. Set if a storage size clause applies to
2733 -- the variable with a compile time known value of zero. This flag is
2734 -- used to generate warnings if any attempt is made to allocate or free
2735 -- an instance of such an access type. This is set only in the root
2736 -- type, since derived types must have the same pool.
2738 -- No_Return (Flag113)
2739 -- Present in all entities. Always false except in the case of procedures
2740 -- and generic procedures for which a pragma No_Return is given.
2742 -- Normalized_First_Bit (Uint8)
2743 -- Present in components and discriminants. Indicates the normalized
2744 -- value of First_Bit for the component, i.e. the offset within the
2745 -- lowest addressed storage unit containing part or all of the field.
2746 -- Set to No_Uint if no first bit position is assigned yet.
2748 -- Normalized_Position (Uint14)
2749 -- Present in components and discriminants. Indicates the normalized
2750 -- value of Position for the component, i.e. the offset in storage
2751 -- units from the start of the record to the lowest addressed storage
2752 -- unit containing part or all of the field.
2754 -- Normalized_Position_Max (Uint10)
2755 -- Present in components and discriminants. For almost all cases, this
2756 -- is the same as Normalized_Position. The one exception is for the case
2757 -- of a discriminated record containing one or more arrays whose length
2758 -- depends on discriminants. In this case, the Normalized_Position_Max
2759 -- field represents the maximum possible value of Normalized_Position
2760 -- assuming min/max values for discriminant subscripts in all fields.
2761 -- This is used by Layout in front end layout mode to properly computed
2762 -- the maximum size such records (needed for allocation purposes when
2763 -- there are default discriminants, and also for the 'Size value).
2765 -- No_Strict_Aliasing (Flag136) [base type only]
2766 -- Present in access types. Set to direct the back end to avoid any
2767 -- optimizations based on an assumption about the aliasing status of
2768 -- objects designated by the access type. For the case of the gcc
2769 -- back end, the effect is as though all references to objects of
2770 -- the type were compiled with -fno-strict-aliasing. This flag is
2771 -- set if an unchecked conversion with the access type as a target
2772 -- type occurs in the same source unit as the declaration of the
2773 -- access type, or if an explicit pragma No_Strict_Aliasing applies.
2775 -- Number_Dimensions (synthesized)
2776 -- Applies to array types and subtypes. Returns the number of dimensions
2777 -- of the array type or subtype as a value of type Pos.
2779 -- Number_Discriminants (synthesized)
2780 -- Applies to all types with discriminants. Yields the number of
2781 -- discriminants as a value of type Pos.
2783 -- Number_Entries (synthesized)
2784 -- Applies to concurrent types. Returns the number of entries that are
2785 -- declared within the task or protected definition for the type.
2787 -- Number_Formals (synthesized)
2788 -- Applies to subprograms and subprogram types. Yields the number of
2789 -- formals as a value of type Pos.
2791 -- Obsolescent_Warning (Node24)
2792 -- Present in package and subprogram entities. Set non-empty only if the
2793 -- pragma Obsolescent had a string argument, in which case it records the
2794 -- contents of the corresponding string literal node.
2796 -- Original_Access_Type (Node21)
2797 -- Present in access to subprogram types. Anonymous access to protected
2798 -- subprogram types are replaced by an occurrence of an internal access
2799 -- to subprogram type. This field links the replacement entity with the
2800 -- original entity.
2802 -- Original_Array_Type (Node21)
2803 -- Present in modular types and array types and subtypes. Set only
2804 -- if the Is_Packed_Array_Type flag is set, indicating that the type
2805 -- is the implementation type for a packed array, and in this case it
2806 -- points to the original array type for which this is the packed
2807 -- array implementation type.
2809 -- Object_Ref (Node17)
2810 -- Present in protected bodies. This is an implicit prival for the
2811 -- Protection object associated with a protected object. See Prival
2812 -- for further details on the use of privals.
2814 -- Original_Record_Component (Node22)
2815 -- Present in components, including discriminants. The usage depends
2816 -- on whether the record is a base type and whether it is tagged.
2818 -- In base tagged types:
2819 -- When the component is inherited in a record extension, it points
2820 -- to the original component (the entity of the ancestor component
2821 -- which is not itself inherited) otherwise it points to itself.
2822 -- Gigi uses this attribute to implement the automatic dereference in
2823 -- the extension and to apply the transformation:
2825 -- Rec_Ext.Comp -> Rec_Ext.Parent. ... .Parent.Comp
2827 -- In base non-tagged types:
2828 -- Always points to itself except for non-girder discriminants, where
2829 -- it points to the girder discriminant it renames.
2831 -- In subtypes (tagged and untagged):
2832 -- Points to the component in the base type.
2834 -- Overridden_Operation (Node26)
2835 -- Present in subprograms. For overriding operations, points to the
2836 -- user-defined parent subprogram that is being overridden.
2838 -- Package_Instantiation (Node26)
2839 -- Present in packages and generic packages. When present, this field
2840 -- references an N_Package_Instantiation node associated with an
2841 -- instantiated package. In the case where the referenced node has
2842 -- been rewritten to an N_Package_Specification, the instantiation
2843 -- node is available from the Original_Node field of the package spec
2844 -- node. This is currently not guaranteed to be set in all cases, but
2845 -- when set, the field is used in Get_Package_Instantiation_Node as
2846 -- one of the means of obtaining the instantiation node. Eventually
2847 -- it should be set in all cases, including package entities associated
2848 -- with formal packages. ???
2850 -- Packed_Array_Type (Node23)
2851 -- Present in array types and subtypes, including the string literal
2852 -- subtype case, if the corresponding type is packed (either bit packed
2853 -- or packed to eliminate holes in non-contiguous enumeration type
2854 -- index types). References the type used to represent the packed array,
2855 -- which is either a modular type for short static arrays, or an
2856 -- array of System.Unsigned. Note that in some situations (internal
2857 -- types, and references to fields of variant records), it is not
2858 -- always possible to construct this type in advance of its use. If
2859 -- Packed_Array_Type is empty, then the necessary type is declared
2860 -- on the fly for each reference to the array.
2862 -- Parameter_Mode (synthesized)
2863 -- Applies to formal parameter entities. This is a synonym for Ekind,
2864 -- used when obtaining the formal kind of a formal parameter (the result
2865 -- is one of E_[In/Out/In_Out]_Paramter)
2867 -- Parent_Subtype (Node19)
2868 -- Present in E_Record_Type. Points to the subtype to use for a
2869 -- field that references the parent record.
2871 -- Primitive_Operations (Elist15)
2872 -- Present in tagged record types and subtypes and in tagged private
2873 -- types. Points to an element list of entities for primitive operations
2874 -- for the tagged type. Not present (and not set) in untagged types (it
2875 -- is an error to reference the primitive operations field of a type
2876 -- that is not tagged).
2878 -- Private_Dependents (Elist18)
2879 -- Present in private (sub)types. Records the subtypes of the
2880 -- private type, derivations from it, and records and arrays
2881 -- with components dependent on the type.
2883 -- The subtypes are traversed when installing and deinstalling
2884 -- (the full view of) a private type in order to ensure correct
2885 -- view of the subtypes.
2887 -- Used in similar fashion for incomplete types: holds list of subtypes
2888 -- of these incomplete types that have discriminant constraints. The
2889 -- full views of these subtypes are constructed when the full view of
2890 -- the incomplete type is processed.
2892 -- In addition, if the incomplete type is the designated type in an
2893 -- access definition for an access parameter, the operation may be
2894 -- a dispatching primitive operation, which is only known when the full
2895 -- declaration of the type is seen. Subprograms that have such an
2896 -- access parameter are also placed in the list of private_dependents.
2898 -- Prival (Node17)
2899 -- Present in components. Used for representing private declarations
2900 -- of protected objects (private formal: by analogy to Discriminal_Link).
2901 -- Empty unless the synthesized Is_Protected_Private attribute is
2902 -- true. The entity used as a formal parameter that corresponds to
2903 -- the to the private declaration in protected operations. See
2904 -- "Private data in protected objects" for details.
2906 -- Privals_Chain (Elist23)
2907 -- Present in protected operations (subprograms and entries). Links
2908 -- all occurrences of the Privals in the body of the operation, in
2909 -- order to patch their types at the end of their expansion. See
2910 -- "Private data in protected objects" for details.
2912 -- Private_View (Node22)
2913 -- For each private type, three entities are allocated, the private view,
2914 -- the full view, and the shadow entity. The shadow entity contains a
2915 -- copy of the private view and is used for restoring the proper private
2916 -- view after a region in which the full view is visible (and is copied
2917 -- into the entity normally used for the private view during this period
2918 -- of visibility). The Private_View field is self-referential when the
2919 -- private view lives in its normal entity, but in the copy that is made
2920 -- in the shadow entity, it points to the proper location in which to
2921 -- restore the private view saved in the shadow.
2923 -- Protected_Formal (Node22)
2924 -- Present in formal parameters (in, in out and out parameters). Used
2925 -- only for formals of protected operations. References corresponding
2926 -- formal parameter in the unprotected version of the operation that
2927 -- is created during expansion.
2929 -- Protected_Body_Subprogram (Node11)
2930 -- Present in protected operations. References the entity for the
2931 -- subprogram which implements the body of the operation.
2933 -- Protected_Operation (Node23)
2934 -- Present in components. Used for representing private declarations
2935 -- of protected objects. Empty unless the synthesized attribute
2936 -- Is_Protected_Private is True. This is the entity corresponding
2937 -- to the body of the protected operation currently being analyzed,
2938 -- and which will eventually use the current Prival associated with
2939 -- this component to refer to the renaming of a private object
2940 -- component. As soon as the expander generates this renaming, this
2941 -- attribute is changed to refer to the next protected subprogram.
2942 -- See "Private data in protected objects" for details.
2944 -- Reachable (Flag49)
2945 -- Present in labels. The flag is set over the range of statements in
2946 -- which a goto to that label is legal.
2948 -- Referenced (Flag156)
2949 -- Present in all entities, set if the entity is referenced, except
2950 -- for the case of an appearence of a simple variable that is not a
2951 -- renaming, as the left side of an assignment in which case the flag
2952 -- Referenced_As_LHS is set instead.
2954 -- Referenced_As_LHS (Flag36): This flag is set instead of
2955 -- Referenced if a simple variable that is not a renaming appears as
2956 -- the left side of an assignment. The reason we distinguish this kind
2957 -- of reference is that we have a separate warning for variables that
2958 -- are only assigned and never read.
2960 -- Referenced_Object (Node10)
2961 -- Present in all type entities. Set non-Empty only for type entities
2962 -- constructed for unconstrained objects, or objects that depend on
2963 -- discriminants. Points to the expression from which the actual
2964 -- subtype of the object can be evaluated.
2966 -- Register_Exception_Call (Node20)
2967 -- Present in exception entities. When an exception is declared,
2968 -- a call is expanded to Register_Exception. This field points to
2969 -- the expanded N_Procedure_Call_Statement node for this call. It
2970 -- is used for Import/Export_Exception processing to modify the
2971 -- register call to make appropriate entries in the special tables
2972 -- used for handling these pragmas at runtime.
2974 -- Related_Array_Object (Node19)
2975 -- Present in array types and subtypes. Used only for the base type
2976 -- and subtype created for an anonymous array object. Set to point
2977 -- to the entity of the corresponding array object. Currently used
2978 -- only for type-related error messages.
2980 -- Related_Instance (Node15)
2981 -- Present in the wrapper packages created for subprogram instances.
2982 -- The internal subprogram that implements the instance is inside the
2983 -- wrapper package, but for debugging purposes its external symbol
2984 -- must correspond to the name and scope of the related instance.
2986 -- Renamed_Entity (Node18)
2987 -- Present in exceptions, packages and generic units that are defined
2988 -- by a renaming declaration. Denotes the renamed entity, or transit-
2989 -- itively the ultimate renamed entity if there is a chain of renaming
2990 -- declarations.
2992 -- Renamed_Object (Node18)
2993 -- Present in all objects (constants, variables, components, formal
2994 -- parameters, generic formal parameters, and loop parameters). Set
2995 -- non-Empty if the object was declared by a renaming declaration, in
2996 -- which case it references the tree node for the name of the renamed
2997 -- object. This is only possible for the variable and constant cases.
2998 -- For formal parameters, this field is used in the course of inline
2999 -- expansion, to map the formals of a subprogram into the corresponding
3000 -- actuals. For formals of a task entry, it denotes the local renaming
3001 -- that replaces the actual within the accept statement.
3002 -- The field is Empty otherwise.
3004 -- Renaming_Map (Uint9)
3005 -- Present in generic subprograms, generic packages, and their
3006 -- instances. Also present in the instances of the corresponding
3007 -- bodies. Denotes the renaming map (generic entities => instance
3008 -- entities) used to construct the instance by givin an index into
3009 -- the tables used to represent these maps. See Sem_Ch12 for further
3010 -- details. The maps for package instances are also used when the
3011 -- instance is the actual corresponding to a formal package.
3013 -- Return_Present (Flag54)
3014 -- Present in function and generic function entities. Set if the
3015 -- function contains a return statement (used for error checking).
3016 -- This flag can also be set in procedure and generic procedure
3017 -- entities (for convenience in setting it), but is only tested
3018 -- for the function case.
3020 -- Returns_By_Ref (Flag90)
3021 -- Present in function entities, to indicate that the function
3022 -- returns the result by reference, either because its return type is a
3023 -- by-reference-type or because it uses explicitly the secondary stack.
3025 -- Reverse_Bit_Order (Flag164) [base type only]
3026 -- Present in all record type entities. Set if a valid pragma an
3027 -- attribute represention clause for Bit_Order has reversed the order
3028 -- of bits from the default value. When this flag is set, a component
3029 -- clause must specify a set of bits entirely contained in a single
3030 -- storage unit.
3032 -- RM_Size (Uint13)
3033 -- Present in all type and subtype entities. Contains the value of
3034 -- type'Size as defined in the RM. See also the Esize field and
3035 -- and the description on "Handling of Type'Size Values". A value
3036 -- of zero in this field for a non-discrete type means that
3037 -- the front end has not yet determined the size value. For the
3038 -- case of a discrete type, this field is always set by the front
3039 -- end and zero is a legitimate value for a type with one value.
3041 -- Root_Type (synthesized)
3042 -- Applies to all type entities. For class-wide types, return the root
3043 -- type of the class covered by the CW type, otherwise returns the
3044 -- ultimate derivation ancestor of the given type. This function
3045 -- preserves the view, i.e. the Root_Type of a partial view is the
3046 -- partial view of the ulimate ancestor, the Root_Type of a full view
3047 -- is the full view of the ultimate ancestor. Note that this function
3048 -- does not correspond exactly to the use of root type in the RM, since
3049 -- in the RM root type applies to a class of types, not to a type.
3051 -- Scalar_Range (Node20)
3052 -- Present in all scalar types (including modular types, where the
3053 -- bounds are 0 .. modulus - 1). References a node in the tree that
3054 -- contains the bounds for the range. Note that this information
3055 -- could be obtained by rummaging around the tree, but it is more
3056 -- convenient to have it immediately at hand in the entity. The
3057 -- contents of Scalar_Range can either be an N_Subtype_Indication
3058 -- node (with a constraint), or a Range node, but not a simple
3059 -- subtype reference (a subtype is converted into a range).
3061 -- Scale_Value (Uint15)
3062 -- Present in decimal fixed-point types and subtypes. Contains the scale
3063 -- for the type (i.e. the value of type'Scale = the number of decimal
3064 -- digits after the decimal point).
3066 -- Scope (Node3)
3067 -- Present in all entities. Points to the entity for the scope (block,
3068 -- loop, subprogram, package etc.) in which the entity is declared.
3069 -- Since this field is in the base part of the entity node, the access
3070 -- routines for this field are in Sinfo. Note that for a child package,
3071 -- the Scope will be the parent package, and for a non-child package,
3072 -- the Scope will be Standard.
3074 -- Scope_Depth (synth)
3075 -- Applies to program units, blocks, concurrent types and entries,
3076 -- and also to record types, i.e. to any entity that can appear on
3077 -- the scope stack. Yields the scope depth value, which for those
3078 -- entities other than records is simply the scope depth value,
3079 -- for record entities, it is the Scope_Depth of the record scope.
3081 -- Scope_Depth_Value (Uint22)
3082 -- Present in program units, blocks, concurrent types and entries.
3083 -- Indicates the number of scopes that statically enclose the
3084 -- declaration of the unit or type. Library units have a depth of zero.
3085 -- Note that record types can act as scopes but do NOT have this field
3086 -- set (see Scope_Depth above)
3088 -- Scope_Depth_Set (synthesized)
3089 -- Applies to a special predicate function that returns a Boolean value
3090 -- indicating whether or not the Scope_Depth field has been set. It
3091 -- is needed, since returns an invalid value in this case!
3093 -- Sec_Stack_Needed_For_Return (Flag167)
3094 -- Present in scope entities (blocks, functions, procedures, tasks,
3095 -- entries). Set to True when secondary stack is used to hold
3096 -- the returned value of a function and thus should not be
3097 -- released on scope exit.
3099 -- Shadow_Entities (List14)
3100 -- Present in package and generic package entities. Points to a list
3101 -- of entities that correspond to private types. For each private type
3102 -- a shadow entity is created that holds a copy of the private view.
3103 -- In regions of the program where the full views of these private
3104 -- entities are visible, the full view is copied into the entity that
3105 -- is normally used to hold the private view, but the shadow entity
3106 -- copy is unchanged. The shadow entities are then used to restore the
3107 -- original private views at the end of the region. This list is a
3108 -- standard format list (i.e. First (Shadow_Entities) is the first
3109 -- entry and subsequent entries are obtained using Next.
3111 -- Shared_Var_Assign_Proc (Node22)
3112 -- Present in variables. Set non-Empty only if Is_Shared_Passive is
3113 -- set, in which case this is the entity for the shared memory assign
3114 -- routine. See Exp_Smem for full details.
3116 -- Shared_Var_Read_Proc (Node15)
3117 -- Present in variables. Set non-Empty only if Is_Shared_Passive is
3118 -- set, in which case this is the entity for the shared memory read
3119 -- routine. See Exp_Smem for full details.
3121 -- Size_Check_Code (Node19)
3122 -- Present in constants and variables. Normally Empty. Set if code is
3123 -- generated to check the size of the object. This field is used to
3124 -- suppress this code if a subsequent address clause is encountered.
3126 -- Size_Clause (synthesized)
3127 -- Applies to all entities. If a size clause is present in the rep
3128 -- item chain for an entity then the attribute definition clause node
3129 -- for the size clause is returned. Otherwise Size_Clause returns Empty
3130 -- if no item is present. Usually this is only meaningful if the flag
3131 -- Has_Size_Clause is set. This is because when the representation item
3132 -- chain is copied for a derived type, it can inherit a size clause that
3133 -- is not applicable to the entity.
3135 -- Size_Depends_On_Discriminant (Flag177)
3136 -- Present in all entities for types and subtypes. Indicates that the
3137 -- size of the type depends on the value of one or more discriminants.
3138 -- Currently, this flag is only set in front end layout mode for arrays
3139 -- which have one or more bounds depending on a discriminant value.
3141 -- Size_Known_At_Compile_Time (Flag92)
3142 -- Present in all entities for types and subtypes. Indicates that the
3143 -- size of objects of the type is known at compile time. This flag is
3144 -- used to optimize some generated code sequences, and also to enable
3145 -- some error checks (e.g. disallowing component clauses on variable
3146 -- length objects. It is set conservatively (i.e. if it is True, the
3147 -- size is certainly known at compile time, if it is False, then the
3148 -- size may or may not be known at compile time, but the code will
3149 -- assume that it is not known).
3151 -- Small_Value (Ureal21)
3152 -- Present in fixed point types. Points to the universal real for the
3153 -- Small of the type, either as given in a representation clause, or
3154 -- as computed (as a power of two) by the compiler.
3156 -- Spec_Entity (Node19)
3157 -- Present in package body entities. Points to corresponding package
3158 -- spec entity. Also present in subprogram body parameters in the
3159 -- case where there is a separate spec, where this field references
3160 -- the corresponding parameter entities in the spec.
3162 -- Storage_Size_Variable (Node15) [implementation base type only]
3163 -- Present in access types and task type entities. This flag is set
3164 -- if a valid and effective pragma Storage_Size applies to the base
3165 -- type. Points to the entity for a variable that is created to
3166 -- hold the value given in a Storage_Size pragma for an access
3167 -- collection or a task type. Note that in the access type case,
3168 -- this field is present only in the root type (since derived types
3169 -- share the same storage pool).
3171 -- Stored_Constraint (Elist23)
3172 -- Present in entities that can have discriminants (concurrent types
3173 -- subtypes, record types and subtypes, private types and subtypes,
3174 -- limited private types and subtypes and incomplete types). Points
3175 -- to an element list containing the expressions for each of the
3176 -- stored discriminants for the record (sub)type.
3178 -- Strict_Alignment (Flag145) [implementation base type only]
3179 -- Present in all type entities. Indicates that some containing part
3180 -- is either aliased or tagged. This prohibits packing the object
3181 -- tighter than its natural size and alignment.
3183 -- String_Literal_Length (Uint16)
3184 -- Present in string literal subtypes (which are created to correspond
3185 -- to string literals in the program). Contains the length of the string
3186 -- literal.
3188 -- String_Literal_Low_Bound (Node15)
3189 -- Present in string literal subtypes (which are created to correspond
3190 -- to string literals in the program). Contains an expression whose
3191 -- value represents the low bound of the literal. This is a copy of
3192 -- the low bound of the applicable index constraint if there is one,
3193 -- or a copy of the low bound of the index base type if not.
3195 -- Suppress_Elaboration_Warnings (Flag148)
3196 -- Present in all entities, relevant only for subprogram entities. If
3197 -- this flag is set then Sem_Elab will not generate elaboration warnings
3198 -- for the subprogram. Suppression of such warnings is automatic for
3199 -- subprograms for which elaboration checks are suppressed (without the
3200 -- need to set this flag), but the flag is also set for various internal
3201 -- entities (such as init procs) which are known not to generate any
3202 -- possible access before elaboration. (we need a clear description of
3203 -- how this flag differs in effect from Elaboration_Checks_Suppressed???)
3205 -- Suppress_Init_Proc (Flag105) [base type only]
3206 -- Present in all type entities. Set to suppress the generation of
3207 -- initialization procedures where they are known to be not needed.
3208 -- For example, the enumeration image table entity uses this flag.
3210 -- Suppress_Style_Checks (Flag165)
3211 -- Present in all entities. Suppresses any style checks specifically
3212 -- associated with the given entity if set.
3214 -- Task_Body_Procedure (Node24)
3215 -- Present in task types and subtypes. Points to the entity for
3216 -- the task body procedure (as further described in Exp_Ch9, task
3217 -- bodies are expanded into procedures). A convenient function to
3218 -- retrieve this field is Sem_Util.Get_Task_Body_Procedure.
3220 -- Treat_As_Volatile (Flag41)
3221 -- Present in all type entities, and also in constants, components and
3222 -- variables. Set if this entity is to be treated as volatile for code
3223 -- generation purposes. Always set if Is_Volatile is set, but can also
3224 -- be set as a result of situations (such as address overlays) where
3225 -- the front end wishes to force volatile handling to inhibit aliasing
3226 -- optimization which might be legally ok, but is undesirable. Note
3227 -- that the back end always tests this flag rather than Is_Volatile.
3228 -- The front end tests Is_Volatile if it is concerned with legality
3229 -- checks associated with declared volatile variables, but if the test
3230 -- is for the purposes of suppressing optimizations, then the front
3231 -- end should test Treat_As_Volatile rather than Is_Volatile.
3233 -- Type_High_Bound (synthesized)
3234 -- Applies to scalar types. Returns the tree node (Node_Id) that
3235 -- contains the high bound of a scalar type. The returned value is a
3236 -- literal for a base type, but may be an expression in the case of a
3237 -- scalar type with dynamic bounds. Note that in the case of a fixed
3238 -- point type, the high bound is in units of small, and is an integer.
3240 -- Type_Low_Bound (synthesized)
3241 -- Applies to scalar types. Returns the tree node (Node_Id) that
3242 -- contains the low bound of a scalar type. The returned value is a
3243 -- literal for a base type, but may be an expression in the case of a
3244 -- scalar type with dynamic bounds. Note that in the case of a fixed
3245 -- point type, the low bound is in units of small, and is an integer.
3247 -- Underlying_Full_View (Node19)
3248 -- Present in private subtypes that are the completion of other private
3249 -- types, or in private types that are derived from private subtypes.
3250 -- If the full view of a private type T is derived from another
3251 -- private type with discriminants Td, the full view of T is also
3252 -- private, and there is no way to attach to it a further full view that
3253 -- would convey the structure of T to the back end. The Underlying_Full_
3254 -- View is an attribute of the full view that is a subtype of Td with
3255 -- the same constraint as the declaration for T. The declaration for this
3256 -- subtype is built at the point of the declaration of T, either as a
3257 -- completion, or as a subtype declaration where the base type is private
3258 -- and has a private completion. If Td is already constrained, then its
3259 -- full view can serve directly as the full view of T.
3261 -- Underlying_Type (synthesized)
3262 -- Applies to all entities. This is the identity function except in
3263 -- the case where it is applied to an incomplete or private type,
3264 -- in which case it is the underlying type of the type declared by
3265 -- the completion, or Empty if the completion has not yet been
3266 -- encountered and analyzed.
3268 -- Note: the reason this attribute applies to all entities, and not
3269 -- just types, is to legitimize code where Underlying_Type is applied
3270 -- to an entity which may or may not be a type, with the intent that
3271 -- if it is a type, its underlying type is taken.
3273 -- Unset_Reference (Node16)
3274 -- Present in variables and out parameters. This is normally Empty.
3275 -- It is set to point to an identifier that represents a reference
3276 -- to the entity before any value has been set. Only the first such
3277 -- reference is identified. This field is used to generate a warning
3278 -- message if necessary (see Sem_Warn.Check_Unset_Reference).
3280 -- Uses_Sec_Stack (Flag95)
3281 -- Present in scope entities (blocks,functions, procedures, tasks,
3282 -- entries). Set to True when secondary stack is used in this scope and
3283 -- must be released on exit unless Sec_Stack_Needed_For_Return is set.
3285 -- Vax_Float (Flag151) [base type only]
3286 -- Present in all type entities. Set only on the base type of float
3287 -- types with Vax format. The particular format is determined by the
3288 -- Digits_Value value which is 6,9,15 for F_Float, D_Float, G_Float.
3290 -- Warnings_Off (Flag96)
3291 -- Present in all entities. Set if a pragma Warnings (Off, entity-name)
3292 -- is used to suppress warnings for a given entity. It is also used by
3293 -- the compiler in some situations to kill spurious warnings.
3295 -- Was_Hidden (Flag196)
3296 -- Present in all entities. Used to save the value of the Is_Hidden
3297 -- attribute when the limited-view is installed (Ada 2005: AI-217).
3299 -- Wrapped_Entity (Node27)
3300 -- Present in an E_Procedure classified as a Is_Primitive_Wrapper. Set
3301 -- to the entity that is being wrapped.
3303 ------------------
3304 -- Access Kinds --
3305 ------------------
3307 -- The following three entity kinds are introduced by the corresponding
3308 -- type definitions:
3310 -- E_Access_Type,
3311 -- E_General_Access_Type,
3312 -- E_Anonymous_Access_Subprogram_Type,
3313 -- E_Anonymous_Access_Protected_Subprogram_Type
3314 -- E_Anonymous_Access_Type.
3316 -- In addition, we define the kind E_Allocator_Type to label
3317 -- allocators. This is because special resolution rules apply to this
3318 -- construct. Eventually the constructs are labeled with the access
3319 -- type imposed by the context. Gigi should never see the type
3320 -- E_Allocator.
3322 -- Similarly, the type E_Access_Attribute_Type is used as the initial
3323 -- kind associated with an access attribute. After resolution a specific
3324 -- access type will be established as determined by the context.
3326 -- Finally, the type Any_Access is used to label -null- during type
3327 -- resolution. Any_Access is also replaced by the context type after
3328 -- resolution.
3330 --------------------------------
3331 -- Classification of Entities --
3332 --------------------------------
3334 -- The classification of program entities which follows is a refinement of
3335 -- the list given in RM 3.1(1). E.g., separate entities denote subtypes of
3336 -- different type classes. Ada 95 entities include class wide types,
3337 -- protected types, subprogram types, generalized access types, generic
3338 -- formal derived types and generic formal packages.
3340 -- The order chosen for these kinds allows us to classify related entities
3341 -- so that they are contiguous. As a result, they do not appear in the
3342 -- exact same order as their order of first appearance in the LRM (For
3343 -- example, private types are listed before packages). The contiguity
3344 -- allows us to define useful subtypes (see below) such as type entities,
3345 -- overloaded entities, etc.
3347 -- Each entity (explicitly or implicitly declared) has a kind, which is
3348 -- a value of the following type:
3350 type Entity_Kind is (
3352 E_Void,
3353 -- The initial Ekind value for a newly created entity. Also used as
3354 -- the Ekind for Standard_Void_Type, a type entity in Standard used
3355 -- as a dummy type for the return type of a procedure (the reason we
3356 -- create this type is to share the circuits for performing overload
3357 -- resolution on calls).
3359 -------------
3360 -- Objects --
3361 -------------
3363 E_Variable,
3364 -- Variables created by an object declaration with no constant keyword
3366 E_Component,
3367 -- Components of a record declaration, private declarations of
3368 -- protected objects.
3370 E_Constant,
3371 -- Constants created by an object declaration with a constant keyword
3373 E_Discriminant,
3374 -- A discriminant, created by the use of a discriminant in a type
3375 -- declaration.
3377 E_Loop_Parameter,
3378 -- A loop parameter created by a for loop
3380 ------------------------
3381 -- Parameter Entities --
3382 ------------------------
3384 -- Parameters are also objects
3386 E_In_Parameter,
3387 -- An in parameter of a subprogram or entry
3389 E_Out_Parameter,
3390 -- An out parameter of a subprogram or entry
3392 E_In_Out_Parameter,
3393 -- An in-out parameter of a subprogram or entry
3395 --------------------------------
3396 -- Generic Parameter Entities --
3397 --------------------------------
3399 -- Generic parameters are also objects
3401 E_Generic_In_Out_Parameter,
3402 -- A generic in out parameter, created by the use of a generic in out
3403 -- parameter in a generic declaration.
3405 E_Generic_In_Parameter,
3406 -- A generic in parameter, created by the use of a generic in
3407 -- parameter in a generic declaration.
3409 -------------------
3410 -- Named Numbers --
3411 -------------------
3413 E_Named_Integer,
3414 -- Named numbers created by a number declaration with an integer value
3416 E_Named_Real,
3417 -- Named numbers created by a number declaration with a real value
3419 -----------------------
3420 -- Enumeration Types --
3421 -----------------------
3423 E_Enumeration_Type,
3424 -- Enumeration types, created by an enumeration type declaration
3426 E_Enumeration_Subtype,
3427 -- Enumeration subtypes, created by an explicit or implicit subtype
3428 -- declaration applied to an enumeration type or subtype.
3430 -------------------
3431 -- Numeric Types --
3432 -------------------
3434 E_Signed_Integer_Type,
3435 -- Signed integer type, used for the anonymous base type of the
3436 -- integer subtype created by an integer type declaration.
3438 E_Signed_Integer_Subtype,
3439 -- Signed integer subtype, created by either an integer subtype or
3440 -- integer type declaration (in the latter case an integer type is
3441 -- created for the base type, and this is the first named subtype).
3443 E_Modular_Integer_Type,
3444 -- Modular integer type, used for the anonymous base type of the
3445 -- integer subtype created by a modular integer type declaration.
3447 E_Modular_Integer_Subtype,
3448 -- Modular integer subtype, created by either an modular subtype
3449 -- or modular type declaration (in the latter case a modular type
3450 -- is created for the base type, and this is the first named subtype).
3452 E_Ordinary_Fixed_Point_Type,
3453 -- Ordinary fixed type, used for the anonymous base type of the
3454 -- fixed subtype created by an ordinary fixed point type declaration.
3456 E_Ordinary_Fixed_Point_Subtype,
3457 -- Ordinary fixed point subtype, created by either an ordinary fixed
3458 -- point subtype or ordinary fixed point type declaration (in the
3459 -- latter case a fixed point type is created for the base type, and
3460 -- this is the first named subtype).
3462 E_Decimal_Fixed_Point_Type,
3463 -- Decimal fixed type, used for the anonymous base type of the decimal
3464 -- fixed subtype created by an ordinary fixed point type declaration.
3466 E_Decimal_Fixed_Point_Subtype,
3467 -- Decimal fixed point subtype, created by either a decimal fixed point
3468 -- subtype or decimal fixed point type declaration (in the latter case
3469 -- a fixed point type is created for the base type, and this is the
3470 -- first named subtype).
3472 E_Floating_Point_Type,
3473 -- Floating point type, used for the anonymous base type of the
3474 -- floating point subtype created by a floating point type declaration.
3476 E_Floating_Point_Subtype,
3477 -- Floating point subtype, created by either a floating point subtype
3478 -- or floating point type declaration (in the latter case a floating
3479 -- point type is created for the base type, and this is the first
3480 -- named subtype).
3482 ------------------
3483 -- Access Types --
3484 ------------------
3486 E_Access_Type,
3487 -- An access type created by an access type declaration with no all
3488 -- keyword present. Note that the predefined type Any_Access, which
3489 -- has E_Access_Type Ekind, is used to label NULL in the upwards pass
3490 -- of type analysis, to be replaced by the true access type in the
3491 -- downwards resolution pass.
3493 E_Access_Subtype,
3494 -- An access subtype created by a subtype declaration for any access
3495 -- type (whether or not it is a general access type).
3497 E_Access_Attribute_Type,
3498 -- An access type created for an access attribute (such as 'Access,
3499 -- 'Unrestricted_Access and Unchecked_Access)
3501 E_Allocator_Type,
3502 -- A special internal type used to label allocators and attribute
3503 -- references using 'Access. This is needed because special resolution
3504 -- rules apply to these constructs. On the resolution pass, this type
3505 -- is always replaced by the actual access type, so Gigi should never
3506 -- see types with this Ekind.
3508 E_General_Access_Type,
3509 -- An access type created by an access type declaration with the all
3510 -- keyword present.
3512 E_Access_Subprogram_Type,
3513 -- An access to subprogram type, created by an access to subprogram
3514 -- declaration.
3516 E_Access_Protected_Subprogram_Type,
3517 -- An access to a protected subprogram, created by the corresponding
3518 -- declaration. Values of such a type denote both a protected object
3519 -- and a protected operation within, and have different compile-time
3520 -- and run-time properties than other access to subprograms.
3522 E_Anonymous_Access_Subprogram_Type,
3523 -- An anonymous access to subprogram type, created by an access to
3524 -- subprogram declaration.
3526 E_Anonymous_Access_Protected_Subprogram_Type,
3527 -- An anonymous access to protected subprogram type, created by an
3528 -- access to subprogram declaration.
3530 E_Anonymous_Access_Type,
3531 -- An anonymous access type created by an access parameter or access
3532 -- discriminant.
3534 ---------------------
3535 -- Composite Types --
3536 ---------------------
3538 E_Array_Type,
3539 -- An array type created by an array type declaration. Includes all
3540 -- cases of arrays, except for string types.
3542 E_Array_Subtype,
3543 -- An array subtype, created by an explicit array subtype declaration,
3544 -- or the use of an anonymous array subtype.
3546 E_String_Type,
3547 -- A string type, i.e. an array type whose component type is a character
3548 -- type, and for which string literals can thus be written.
3550 E_String_Subtype,
3551 -- A string subtype, created by an explicit subtype declaration for a
3552 -- string type, or the use of an anonymous subtype of a string type,
3554 E_String_Literal_Subtype,
3555 -- A special string subtype, used only to describe the type of a string
3556 -- literal (will always be one dimensional, with literal bounds).
3558 E_Class_Wide_Type,
3559 -- A class wide type, created by any tagged type declaration (i.e. if
3560 -- a tagged type is declared, the corresponding class type is always
3561 -- created, using this Ekind value).
3563 E_Class_Wide_Subtype,
3564 -- A subtype of a class wide type, created by a subtype declaration
3565 -- used to declare a subtype of a class type.
3567 E_Record_Type,
3568 -- A record type, created by a record type declaration
3570 E_Record_Subtype,
3571 -- A record subtype, created by a record subtype declaration
3573 E_Record_Type_With_Private,
3574 -- Used for types defined by a private extension declaration, and
3575 -- for tagged private types. Includes the fields for both private
3576 -- types and for record types (with the sole exception of
3577 -- Corresponding_Concurrent_Type which is obviously not needed).
3578 -- This entity is considered to be both a record type and
3579 -- a private type.
3581 E_Record_Subtype_With_Private,
3582 -- A subtype of a type defined by a private extension declaration
3584 E_Private_Type,
3585 -- A private type, created by a private type declaration
3586 -- that has neither the keyword limited nor the keyword tagged.
3588 E_Private_Subtype,
3589 -- A subtype of a private type, created by a subtype declaration used
3590 -- to declare a subtype of a private type.
3592 E_Limited_Private_Type,
3593 -- A limited private type, created by a private type declaration that
3594 -- has the keyword limited, but not the keyword tagged.
3596 E_Limited_Private_Subtype,
3597 -- A subtype of a limited private type, created by a subtype declaration
3598 -- used to declare a subtype of a limited private type.
3600 E_Incomplete_Type,
3601 -- An incomplete type, created by an incomplete type declaration
3603 E_Task_Type,
3604 -- A task type, created by a task type declaration. An entity with this
3605 -- Ekind is also created to describe the anonymous type of a task that
3606 -- is created by a single task declaration.
3608 E_Task_Subtype,
3609 -- A subtype of a task type, created by a subtype declaration used to
3610 -- declare a subtype of a task type.
3612 E_Protected_Type,
3613 -- A protected type, created by a protected type declaration. An entity
3614 -- with this Ekind is also created to describe the anonymous type of
3615 -- a protected object created by a single protected declaration.
3617 E_Protected_Subtype,
3618 -- A subtype of a protected type, created by a subtype declaration used
3619 -- to declare a subtype of a protected type.
3621 -----------------
3622 -- Other Types --
3623 -----------------
3625 E_Exception_Type,
3626 -- The type of an exception created by an exception declaration
3628 E_Subprogram_Type,
3629 -- This is the designated type of an Access_To_Subprogram. Has type
3630 -- and signature like a subprogram entity, so can appear in calls,
3631 -- which are resolved like regular calls, except that such an entity
3632 -- is not overloadable.
3634 ---------------------------
3635 -- Overloadable Entities --
3636 ---------------------------
3638 E_Enumeration_Literal,
3639 -- An enumeration literal, created by the use of the literal in an
3640 -- enumeration type definition.
3642 E_Function,
3643 -- A function, created by a function declaration or a function body
3644 -- that acts as its own declaration.
3646 E_Operator,
3647 -- A predefined operator, appearing in Standard, or an implicitly
3648 -- defined concatenation operator created whenever an array is
3649 -- declared. We do not make normal derived operators explicit in
3650 -- the tree, but the concatenation operators are made explicit.
3652 E_Procedure,
3653 -- A procedure, created by a procedure declaration or a procedure
3654 -- body that acts as its own declaration.
3656 E_Entry,
3657 -- An entry, created by an entry declaration in a task or protected
3658 -- object.
3660 --------------------
3661 -- Other Entities --
3662 --------------------
3664 E_Entry_Family,
3665 -- An entry family, created by an entry family declaration in a
3666 -- task or protected type definition.
3668 E_Block,
3669 -- A block identifier, created by an explicit or implicit label on
3670 -- a block or declare statement.
3672 E_Entry_Index_Parameter,
3673 -- An entry index parameter created by an entry index specification
3674 -- for the body of a protected entry family.
3676 E_Exception,
3677 -- An exception created by an exception declaration. The exception
3678 -- itself uses E_Exception for the Ekind, the implicit type that is
3679 -- created to represent its type uses the Ekind E_Exception_Type.
3681 E_Generic_Function,
3682 -- A generic function. This is the entity for a generic function
3683 -- created by a generic subprogram declaration.
3685 E_Generic_Procedure,
3686 -- A generic function. This is the entity for a generic procedure
3687 -- created by a generic subprogram declaration.
3689 E_Generic_Package,
3690 -- A generic package, this is the entity for a generic package created
3691 -- by a generic package declaration.
3693 E_Label,
3694 -- The defining entity for a label. Note that this is created by the
3695 -- implicit label declaration, not the occurrence of the label itself,
3696 -- which is simply a direct name referring to the label.
3698 E_Loop,
3699 -- A loop identifier, created by an explicit or implicit label on a
3700 -- loop statement.
3702 E_Package,
3703 -- A package, created by a package declaration
3705 E_Package_Body,
3706 -- A package body. This entity serves only limited functions, since
3707 -- most semantic analysis uses the package entity (E_Package). However
3708 -- there are some attributes that are significant for the body entity.
3709 -- For example, collection of exception handlers.
3711 E_Protected_Object,
3712 -- A protected object, created by an object declaration that declares
3713 -- an object of a protected type.
3715 E_Protected_Body,
3716 -- A protected body. This entity serves almost no function, since all
3717 -- semantic analysis uses the protected entity (E_Protected_Type)
3719 E_Task_Body,
3720 -- A task body. This entity serves almost no function, since all
3721 -- semantic analysis uses the protected entity (E_Task_Type).
3723 E_Subprogram_Body
3724 -- A subprogram body. Used when a subprogram has a separate declaration
3725 -- to represent the entity for the body. This entity serves almost no
3726 -- function, since all semantic analysis uses the subprogram entity
3727 -- for the declaration (E_Function or E_Procedure).
3730 for Entity_Kind'Size use 8;
3731 -- The data structures in Atree assume this!
3733 --------------------------
3734 -- Subtype Declarations --
3735 --------------------------
3737 -- The above entities are arranged so that they can be conveniently
3738 -- grouped into subtype ranges. Note that for each of the xxx_Kind
3739 -- ranges defined below, there is a corresponding Is_xxx.. predicate
3740 -- which is to be used in preference to direct range tests using the
3741 -- subtype name. However, the subtype names are available for direct
3742 -- use, e.g. as choices in case statements.
3744 subtype Access_Kind is Entity_Kind range
3745 E_Access_Type ..
3746 -- E_Access_Subtype
3747 -- E_Access_Attribute_Type
3748 -- E_Allocator_Type
3749 -- E_General_Access_Type
3750 -- E_Access_Subprogram_Type
3751 -- E_Access_Protected_Subprogram_Type
3752 -- E_Anonymous_Access_Subprogram_Type
3753 -- E_Anonymous_Access_Protected_Subprogram_Type
3754 E_Anonymous_Access_Type;
3756 subtype Array_Kind is Entity_Kind range
3757 E_Array_Type ..
3758 -- E_Array_Subtype
3759 -- E_String_Type
3760 -- E_String_Subtype
3761 E_String_Literal_Subtype;
3763 subtype Class_Wide_Kind is Entity_Kind range
3764 E_Class_Wide_Type ..
3765 E_Class_Wide_Subtype;
3767 subtype Composite_Kind is Entity_Kind range
3768 E_Array_Type ..
3769 -- E_Array_Subtype
3770 -- E_String_Type
3771 -- E_String_Subtype
3772 -- E_String_Literal_Subtype
3773 -- E_Class_Wide_Type
3774 -- E_Class_Wide_Subtype
3775 -- E_Record_Type
3776 -- E_Record_Subtype
3777 -- E_Record_Type_With_Private
3778 -- E_Record_Subtype_With_Private
3779 -- E_Private_Type
3780 -- E_Private_Subtype
3781 -- E_Limited_Private_Type
3782 -- E_Limited_Private_Subtype
3783 -- E_Incomplete_Type
3784 -- E_Task_Type
3785 -- E_Task_Subtype,
3786 -- E_Protected_Type,
3787 E_Protected_Subtype;
3789 subtype Concurrent_Kind is Entity_Kind range
3790 E_Task_Type ..
3791 -- E_Task_Subtype,
3792 -- E_Protected_Type,
3793 E_Protected_Subtype;
3795 subtype Concurrent_Body_Kind is Entity_Kind range
3796 E_Protected_Body ..
3797 E_Task_Body;
3799 subtype Decimal_Fixed_Point_Kind is Entity_Kind range
3800 E_Decimal_Fixed_Point_Type ..
3801 E_Decimal_Fixed_Point_Subtype;
3803 subtype Digits_Kind is Entity_Kind range
3804 E_Decimal_Fixed_Point_Type ..
3805 -- E_Decimal_Fixed_Point_Subtype
3806 -- E_Floating_Point_Type
3807 E_Floating_Point_Subtype;
3809 subtype Discrete_Kind is Entity_Kind range
3810 E_Enumeration_Type ..
3811 -- E_Enumeration_Subtype
3812 -- E_Signed_Integer_Type
3813 -- E_Signed_Integer_Subtype
3814 -- E_Modular_Integer_Type
3815 E_Modular_Integer_Subtype;
3817 subtype Discrete_Or_Fixed_Point_Kind is Entity_Kind range
3818 E_Enumeration_Type ..
3819 -- E_Enumeration_Subtype
3820 -- E_Signed_Integer_Type
3821 -- E_Signed_Integer_Subtype
3822 -- E_Modular_Integer_Type
3823 -- E_Modular_Integer_Subtype
3824 -- E_Ordinary_Fixed_Point_Type
3825 -- E_Ordinary_Fixed_Point_Subtype
3826 -- E_Decimal_Fixed_Point_Type
3827 E_Decimal_Fixed_Point_Subtype;
3829 subtype Elementary_Kind is Entity_Kind range
3830 E_Enumeration_Type ..
3831 -- E_Enumeration_Subtype
3832 -- E_Signed_Integer_Type
3833 -- E_Signed_Integer_Subtype
3834 -- E_Modular_Integer_Type
3835 -- E_Modular_Integer_Subtype
3836 -- E_Ordinary_Fixed_Point_Type
3837 -- E_Ordinary_Fixed_Point_Subtype
3838 -- E_Decimal_Fixed_Point_Type
3839 -- E_Decimal_Fixed_Point_Subtype
3840 -- E_Floating_Point_Type
3841 -- E_Floating_Point_Subtype
3842 -- E_Access_Type
3843 -- E_Access_Subtype
3844 -- E_Access_Attribute_Type
3845 -- E_Allocator_Type
3846 -- E_General_Access_Type
3847 -- E_Access_Subprogram_Type
3848 -- E_Access_Protected_Subprogram_Type
3849 -- E_Anonymous_Access_Subprogram_Type
3850 -- E_Anonymous_Access_Protected_Subprogram_Type
3851 E_Anonymous_Access_Type;
3853 subtype Enumeration_Kind is Entity_Kind range
3854 E_Enumeration_Type ..
3855 E_Enumeration_Subtype;
3857 subtype Entry_Kind is Entity_Kind range
3858 E_Entry ..
3859 E_Entry_Family;
3861 subtype Fixed_Point_Kind is Entity_Kind range
3862 E_Ordinary_Fixed_Point_Type ..
3863 -- E_Ordinary_Fixed_Point_Subtype
3864 -- E_Decimal_Fixed_Point_Type
3865 E_Decimal_Fixed_Point_Subtype;
3867 subtype Float_Kind is Entity_Kind range
3868 E_Floating_Point_Type ..
3869 E_Floating_Point_Subtype;
3871 subtype Formal_Kind is Entity_Kind range
3872 E_In_Parameter ..
3873 -- E_Out_Parameter
3874 E_In_Out_Parameter;
3876 subtype Generic_Subprogram_Kind is Entity_Kind range
3877 E_Generic_Function ..
3878 E_Generic_Procedure;
3880 subtype Generic_Unit_Kind is Entity_Kind range
3881 E_Generic_Function ..
3882 -- E_Generic_Procedure
3883 E_Generic_Package;
3885 subtype Incomplete_Or_Private_Kind is Entity_Kind range
3886 E_Record_Type_With_Private ..
3887 -- E_Record_Subtype_With_Private
3888 -- E_Private_Type
3889 -- E_Private_Subtype
3890 -- E_Limited_Private_Type
3891 -- E_Limited_Private_Subtype
3892 E_Incomplete_Type;
3894 subtype Integer_Kind is Entity_Kind range
3895 E_Signed_Integer_Type ..
3896 -- E_Signed_Integer_Subtype
3897 -- E_Modular_Integer_Type
3898 E_Modular_Integer_Subtype;
3900 subtype Modular_Integer_Kind is Entity_Kind range
3901 E_Modular_Integer_Type ..
3902 E_Modular_Integer_Subtype;
3904 subtype Named_Kind is Entity_Kind range
3905 E_Named_Integer ..
3906 E_Named_Real;
3908 subtype Numeric_Kind is Entity_Kind range
3909 E_Signed_Integer_Type ..
3910 -- E_Signed_Integer_Subtype
3911 -- E_Modular_Integer_Type
3912 -- E_Modular_Integer_Subtype
3913 -- E_Ordinary_Fixed_Point_Type
3914 -- E_Ordinary_Fixed_Point_Subtype
3915 -- E_Decimal_Fixed_Point_Type
3916 -- E_Decimal_Fixed_Point_Subtype
3917 -- E_Floating_Point_Type
3918 E_Floating_Point_Subtype;
3920 subtype Object_Kind is Entity_Kind range
3921 E_Variable ..
3922 -- E_Component
3923 -- E_Constant
3924 -- E_Discriminant
3925 -- E_Loop_Parameter
3926 -- E_In_Parameter
3927 -- E_Out_Parameter
3928 -- E_In_Out_Parameter
3929 -- E_Generic_In_Out_Parameter
3930 E_Generic_In_Parameter;
3932 subtype Ordinary_Fixed_Point_Kind is Entity_Kind range
3933 E_Ordinary_Fixed_Point_Type ..
3934 E_Ordinary_Fixed_Point_Subtype;
3936 subtype Overloadable_Kind is Entity_Kind range
3937 E_Enumeration_Literal ..
3938 -- E_Function
3939 -- E_Operator
3940 -- E_Procedure
3941 E_Entry;
3943 subtype Private_Kind is Entity_Kind range
3944 E_Record_Type_With_Private ..
3945 -- E_Record_Subtype_With_Private
3946 -- E_Private_Type
3947 -- E_Private_Subtype
3948 -- E_Limited_Private_Type
3949 E_Limited_Private_Subtype;
3951 subtype Protected_Kind is Entity_Kind range
3952 E_Protected_Type ..
3953 E_Protected_Subtype;
3955 subtype Real_Kind is Entity_Kind range
3956 E_Ordinary_Fixed_Point_Type ..
3957 -- E_Ordinary_Fixed_Point_Subtype
3958 -- E_Decimal_Fixed_Point_Type
3959 -- E_Decimal_Fixed_Point_Subtype
3960 -- E_Floating_Point_Type
3961 E_Floating_Point_Subtype;
3963 subtype Record_Kind is Entity_Kind range
3964 E_Class_Wide_Type ..
3965 -- E_Class_Wide_Subtype
3966 -- E_Record_Type
3967 -- E_Record_Subtype
3968 -- E_Record_Type_With_Private
3969 E_Record_Subtype_With_Private;
3971 subtype Scalar_Kind is Entity_Kind range
3972 E_Enumeration_Type ..
3973 -- E_Enumeration_Subtype
3974 -- E_Signed_Integer_Type
3975 -- E_Signed_Integer_Subtype
3976 -- E_Modular_Integer_Type
3977 -- E_Modular_Integer_Subtype
3978 -- E_Ordinary_Fixed_Point_Type
3979 -- E_Ordinary_Fixed_Point_Subtype
3980 -- E_Decimal_Fixed_Point_Type
3981 -- E_Decimal_Fixed_Point_Subtype
3982 -- E_Floating_Point_Type
3983 E_Floating_Point_Subtype;
3985 subtype String_Kind is Entity_Kind range
3986 E_String_Type ..
3987 -- E_String_Subtype
3988 E_String_Literal_Subtype;
3990 subtype Subprogram_Kind is Entity_Kind range
3991 E_Function ..
3992 -- E_Operator
3993 E_Procedure;
3995 subtype Signed_Integer_Kind is Entity_Kind range
3996 E_Signed_Integer_Type ..
3997 E_Signed_Integer_Subtype;
3999 subtype Task_Kind is Entity_Kind range
4000 E_Task_Type ..
4001 E_Task_Subtype;
4003 subtype Type_Kind is Entity_Kind range
4004 E_Enumeration_Type ..
4005 -- E_Enumeration_Subtype
4006 -- E_Signed_Integer_Type
4007 -- E_Signed_Integer_Subtype
4008 -- E_Modular_Integer_Type
4009 -- E_Modular_Integer_Subtype
4010 -- E_Ordinary_Fixed_Point_Type
4011 -- E_Ordinary_Fixed_Point_Subtype
4012 -- E_Decimal_Fixed_Point_Type
4013 -- E_Decimal_Fixed_Point_Subtype
4014 -- E_Floating_Point_Type
4015 -- E_Floating_Point_Subtype
4016 -- E_Access_Type
4017 -- E_Access_Subtype
4018 -- E_Access_Attribute_Type
4019 -- E_Allocator_Type,
4020 -- E_General_Access_Type
4021 -- E_Access_Subprogram_Type,
4022 -- E_Access_Protected_Subprogram_Type
4023 -- E_Anonymous_Access_Subprogram_Type
4024 -- E_Anonymous_Access_Protected_Subprogram_Type
4025 -- E_Anonymous_Access_Type
4026 -- E_Array_Type
4027 -- E_Array_Subtype
4028 -- E_String_Type
4029 -- E_String_Subtype
4030 -- E_String_Literal_Subtype
4031 -- E_Class_Wide_Subtype
4032 -- E_Class_Wide_Type
4033 -- E_Record_Type
4034 -- E_Record_Subtype
4035 -- E_Record_Type_With_Private
4036 -- E_Record_Subtype_With_Private
4037 -- E_Private_Type
4038 -- E_Private_Subtype
4039 -- E_Limited_Private_Type
4040 -- E_Limited_Private_Subtype
4041 -- E_Incomplete_Type
4042 -- E_Task_Type
4043 -- E_Task_Subtype
4044 -- E_Protected_Type
4045 -- E_Protected_Subtype
4046 -- E_Exception_Type
4047 E_Subprogram_Type;
4049 --------------------------------------------------------
4050 -- Description of Defined Attributes for Entity_Kinds --
4051 --------------------------------------------------------
4053 -- For each enumeration value defined in Entity_Kind we list all the
4054 -- attributes defined in Einfo which can legally be applied to an entity
4055 -- of that kind. The implementation of the attribute functions (and for
4056 -- non-synthetized attributes, of the corresponding set procedures) are
4057 -- in the Einfo body.
4059 -- The following attributes apply to all entities
4061 -- Ekind (Ekind)
4063 -- Chars (Name1)
4064 -- Next_Entity (Node2)
4065 -- Scope (Node3)
4066 -- Homonym (Node4)
4067 -- Etype (Node5)
4068 -- First_Rep_Item (Node6)
4069 -- Freeze_Node (Node7)
4071 -- Address_Taken (Flag104)
4072 -- Can_Never_Be_Null (Flag38)
4073 -- Checks_May_Be_Suppressed (Flag31)
4074 -- Debug_Info_Off (Flag166)
4075 -- Has_Anon_Block_Suffix (Flag201)
4076 -- Has_Controlled_Component (Flag43) (base type only)
4077 -- Has_Convention_Pragma (Flag119)
4078 -- Has_Delayed_Freeze (Flag18)
4079 -- Has_Fully_Qualified_Name (Flag173)
4080 -- Has_Gigi_Rep_Item (Flag82)
4081 -- Has_Homonym (Flag56)
4082 -- Has_Persistent_BSS (Flag188)
4083 -- Has_Pragma_Elaborate_Body (Flag150)
4084 -- Has_Pragma_Inline (Flag157)
4085 -- Has_Pragma_Pure (Flag203)
4086 -- Has_Pragma_Pure_Function (Flag179)
4087 -- Has_Pragma_Unreferenced (Flag180)
4088 -- Has_Private_Declaration (Flag155)
4089 -- Has_Qualified_Name (Flag161)
4090 -- Has_Unknown_Discriminants (Flag72)
4091 -- Has_Xref_Entry (Flag182)
4092 -- Is_Ada_2005 (Flag185)
4093 -- Is_Bit_Packed_Array (Flag122) (base type only)
4094 -- Is_Child_Unit (Flag73)
4095 -- Is_Compilation_Unit (Flag149)
4096 -- Is_Completely_Hidden (Flag103)
4097 -- Is_Discrim_SO_Function (Flag176)
4098 -- Is_Dispatching_Operation (Flag6)
4099 -- Is_Exported (Flag99)
4100 -- Is_First_Subtype (Flag70)
4101 -- Is_Formal_Subprogram (Flag111)
4102 -- Is_Generic_Instance (Flag130)
4103 -- Is_Hidden (Flag57)
4104 -- Is_Hidden_Open_Scope (Flag171)
4105 -- Is_Immediately_Visible (Flag7)
4106 -- Is_Imported (Flag24)
4107 -- Is_Inlined (Flag11)
4108 -- Is_Internal (Flag17)
4109 -- Is_Itype (Flag91)
4110 -- Is_Known_Non_Null (Flag37)
4111 -- Is_Known_Null (Flag204)
4112 -- Is_Known_Valid (Flag170)
4113 -- Is_Limited_Composite (Flag106)
4114 -- Is_Limited_Record (Flag25)
4115 -- Is_Obsolescent (Flag153)
4116 -- Is_Package_Body_Entity (Flag160)
4117 -- Is_Packed_Array_Type (Flag138)
4118 -- Is_Potentially_Use_Visible (Flag9)
4119 -- Is_Preelaborated (Flag59)
4120 -- Is_Primitive_Wrapper (Flag195)
4121 -- Is_Public (Flag10)
4122 -- Is_Pure (Flag44)
4123 -- Is_Remote_Call_Interface (Flag62)
4124 -- Is_Remote_Types (Flag61)
4125 -- Is_Shared_Passive (Flag60)
4126 -- Is_Statically_Allocated (Flag28)
4127 -- Is_Unchecked_Union (Flag117)
4128 -- Is_VMS_Exception (Flag133)
4129 -- Kill_Elaboration_Checks (Flag32)
4130 -- Kill_Range_Checks (Flag33)
4131 -- Kill_Tag_Checks (Flag34)
4132 -- Materialize_Entity (Flag168)
4133 -- Needs_Debug_Info (Flag147)
4134 -- No_Return (Flag113)
4135 -- Referenced (Flag156)
4136 -- Referenced_As_LHS (Flag36)
4137 -- Suppress_Elaboration_Warnings (Flag148)
4138 -- Suppress_Style_Checks (Flag165)
4139 -- Was_Hidden (Flag196)
4141 -- Declaration_Node (synth)
4142 -- Enclosing_Dynamic_Scope (synth)
4143 -- Has_Foreign_Convention (synth)
4144 -- Is_Dynamic_Scope (synth)
4145 -- Is_Limited_Type (synth)
4146 -- Underlying_Type (synth)
4147 -- all classification attributes (synth)
4149 -- The following list of access functions applies to all entities for
4150 -- types and subtypes. References to this list appear subsequently as
4151 -- as "(plus type attributes)" for each appropriate Entity_Kind.
4153 -- Associated_Node_For_Itype (Node8)
4154 -- Class_Wide_Type (Node9)
4155 -- Referenced_Object (Node10)
4156 -- Full_View (Node11)
4157 -- Esize (Uint12)
4158 -- RM_Size (Uint13)
4159 -- Alignment (Uint14)
4161 -- Depends_On_Private (Flag14)
4162 -- Discard_Names (Flag88)
4163 -- Finalize_Storage_Only (Flag158) (base type only)
4164 -- From_With_Type (Flag159)
4165 -- Has_Aliased_Components (Flag135) (base type only)
4166 -- Has_Alignment_Clause (Flag46)
4167 -- Has_Atomic_Components (Flag86) (base type only)
4168 -- Has_Complex_Representation (Flag140) (base type only)
4169 -- Has_Constrained_Partial_View (Flag187)
4170 -- Has_Discriminants (Flag5)
4171 -- Has_Non_Standard_Rep (Flag75) (base type only)
4172 -- Has_Object_Size_Clause (Flag172)
4173 -- Has_Primitive_Operations (Flag120) (base type only)
4174 -- Has_Size_Clause (Flag29)
4175 -- Has_Specified_Layout (Flag100) (base type only)
4176 -- Has_Specified_Stream_Input (Flag190)
4177 -- Has_Specified_Stream_Output (Flag191)
4178 -- Has_Specified_Stream_Read (Flag192)
4179 -- Has_Specified_Stream_Write (Flag193)
4180 -- Has_Task (Flag30) (base type only)
4181 -- Has_Unchecked_Union (Flag123) (base type only)
4182 -- Has_Volatile_Components (Flag87) (base type only)
4183 -- In_Use (Flag8)
4184 -- Is_Abstract (Flag19)
4185 -- Is_Asynchronous (Flag81)
4186 -- Is_Atomic (Flag85)
4187 -- Is_Constr_Subt_For_U_Nominal (Flag80)
4188 -- Is_Constr_Subt_For_UN_Aliased (Flag141)
4189 -- Is_Controlled (Flag42) (base type only)
4190 -- Is_Eliminated (Flag124)
4191 -- Is_Frozen (Flag4)
4192 -- Is_Generic_Actual_Type (Flag94)
4193 -- Is_Generic_Type (Flag13)
4194 -- Is_Limited_Interface (Flag197)
4195 -- Is_Protected_Interface (Flag198)
4196 -- Is_Synchronized_Interface (Flag199)
4197 -- Is_Task_Interface (Flag200)
4198 -- Is_Non_Static_Subtype (Flag109)
4199 -- Is_Packed (Flag51) (base type only)
4200 -- Is_Private_Composite (Flag107)
4201 -- Is_Renaming_Of_Object (Flag112)
4202 -- Is_Tagged_Type (Flag55)
4203 -- Is_Unsigned_Type (Flag144)
4204 -- Is_Volatile (Flag16)
4205 -- Itype_Printed (Flag202) (itypes only)
4206 -- Must_Be_On_Byte_Boundary (Flag183)
4207 -- Size_Depends_On_Discriminant (Flag177)
4208 -- Size_Known_At_Compile_Time (Flag92)
4209 -- Strict_Alignment (Flag145) (base type only)
4210 -- Suppress_Init_Proc (Flag105) (base type only)
4211 -- Treat_As_Volatile (Flag41)
4213 -- Alignment_Clause (synth)
4214 -- Ancestor_Subtype (synth)
4215 -- Base_Type (synth)
4216 -- First_Subtype (synth)
4217 -- Has_Private_Ancestor (synth)
4218 -- Implementation_Base_Type (synth)
4219 -- Is_By_Copy_Type (synth)
4220 -- Is_By_Reference_Type (synth)
4221 -- Is_Return_By_Reference_Type (synth)
4222 -- Root_Type (synth)
4223 -- Size_Clause (synth)
4225 ------------------------------------------
4226 -- Applicable attributes by entity kind --
4227 ------------------------------------------
4229 -- E_Access_Protected_Subprogram_Type
4230 -- Equivalent_Type (Node18)
4231 -- Directly_Designated_Type (Node20)
4232 -- Original_Access_Type (Node21)
4233 -- Needs_No_Actuals (Flag22)
4234 -- (plus type attributes)
4236 -- E_Access_Subprogram_Type
4237 -- Equivalent_Type (Node18) (remote types only)
4238 -- Directly_Designated_Type (Node20)
4239 -- Original_Access_Type (Node21)
4240 -- Needs_No_Actuals (Flag22)
4241 -- (plus type attributes)
4243 -- E_Access_Type
4244 -- E_Access_Subtype
4245 -- Storage_Size_Variable (Node15) (base type only)
4246 -- Master_Id (Node17)
4247 -- Directly_Designated_Type (Node20)
4248 -- Associated_Storage_Pool (Node22) (base type only)
4249 -- Associated_Final_Chain (Node23)
4250 -- Has_Pragma_Controlled (Flag27) (base type only)
4251 -- Has_Storage_Size_Clause (Flag23) (base type only)
4252 -- Is_Local_Anonymous_Access (Flag194)
4253 -- Is_Access_Constant (Flag69)
4254 -- Is_Pure_Unit_Access_Type (Flag189)
4255 -- No_Pool_Assigned (Flag131) (base type only)
4256 -- No_Strict_Aliasing (Flag136) (base type only)
4257 -- (plus type attributes)
4259 -- E_Access_Attribute_Type
4260 -- Directly_Designated_Type (Node20)
4261 -- (plus type attributes)
4263 -- E_Allocator_Type
4264 -- Directly_Designated_Type (Node20)
4265 -- (plus type attributes)
4267 -- E_Anonymous_Access_Subprogram_Type
4268 -- E_Anonymous_Access_Protected_Subprogram_Type
4269 -- E_Anonymous_Access_Type
4270 -- Storage_Size_Variable (Node15) ??? is this needed ???
4271 -- Directly_Designated_Type (Node20)
4272 -- (plus type attributes)
4274 -- E_Array_Type
4275 -- E_Array_Subtype
4276 -- First_Index (Node17)
4277 -- Related_Array_Object (Node19)
4278 -- Component_Type (Node20) (base type only)
4279 -- Original_Array_Type (Node21)
4280 -- Component_Size (Uint22) (base type only)
4281 -- Packed_Array_Type (Node23)
4282 -- Component_Alignment (special) (base type only)
4283 -- Has_Component_Size_Clause (Flag68) (base type only)
4284 -- Has_Pragma_Pack (Flag121) (base type only)
4285 -- Is_Aliased (Flag15)
4286 -- Is_Constrained (Flag12)
4287 -- Next_Index (synth)
4288 -- Number_Dimensions (synth)
4289 -- (plus type attributes)
4291 -- E_Block
4292 -- Block_Node (Node11)
4293 -- First_Entity (Node17)
4294 -- Last_Entity (Node20)
4295 -- Delay_Cleanups (Flag114)
4296 -- Discard_Names (Flag88)
4297 -- Finalization_Chain_Entity (Node19)
4298 -- Scope_Depth_Value (Uint22)
4299 -- Entry_Cancel_Parameter (Node23)
4300 -- Has_Master_Entity (Flag21)
4301 -- Has_Nested_Block_With_Handler (Flag101)
4302 -- Sec_Stack_Needed_For_Return (Flag167)
4303 -- Uses_Sec_Stack (Flag95)
4304 -- Scope_Depth (synth)
4306 -- E_Class_Wide_Type
4307 -- E_Class_Wide_Subtype
4308 -- Cloned_Subtype (Node16) (subtype case only)
4309 -- First_Entity (Node17)
4310 -- Equivalent_Type (Node18) (always Empty in type case)
4311 -- Last_Entity (Node20)
4312 -- First_Component (synth)
4313 -- (plus type attributes)
4315 -- E_Component
4316 -- Normalized_First_Bit (Uint8)
4317 -- Current_Value (Node9) (always Empty)
4318 -- Normalized_Position_Max (Uint10)
4319 -- Component_Bit_Offset (Uint11)
4320 -- Esize (Uint12)
4321 -- Component_Clause (Node13)
4322 -- Normalized_Position (Uint14)
4323 -- DT_Entry_Count (Uint15)
4324 -- Entry_Formal (Node16)
4325 -- Prival (Node17)
4326 -- Renamed_Object (Node18) (always Empty)
4327 -- Discriminant_Checking_Func (Node20)
4328 -- Interface_Name (Node21) (JGNAT usage only)
4329 -- Original_Record_Component (Node22)
4330 -- Protected_Operation (Node23)
4331 -- DT_Offset_To_Top_Func (Node24)
4332 -- Has_Biased_Representation (Flag139)
4333 -- Has_Per_Object_Constraint (Flag154)
4334 -- Is_Atomic (Flag85)
4335 -- Is_Tag (Flag78)
4336 -- Is_Volatile (Flag16)
4337 -- Treat_As_Volatile (Flag41)
4338 -- Is_Protected_Private (synth)
4339 -- Next_Component (synth)
4340 -- Next_Tag_Component (synth)
4342 -- E_Constant
4343 -- E_Loop_Parameter
4344 -- Current_Value (Node9) (always Empty)
4345 -- Discriminal_Link (Node10) (discriminals only)
4346 -- Full_View (Node11)
4347 -- Esize (Uint12)
4348 -- Alignment (Uint14)
4349 -- Actual_Subtype (Node17)
4350 -- Renamed_Object (Node18)
4351 -- Size_Check_Code (Node19) (constants only)
4352 -- Interface_Name (Node21)
4353 -- Has_Alignment_Clause (Flag46)
4354 -- Has_Atomic_Components (Flag86)
4355 -- Has_Biased_Representation (Flag139)
4356 -- Has_Completion (Flag26) (constants only)
4357 -- Has_Size_Clause (Flag29)
4358 -- Has_Volatile_Components (Flag87)
4359 -- Is_Atomic (Flag85)
4360 -- Is_Eliminated (Flag124)
4361 -- Is_True_Constant (Flag163)
4362 -- Is_Volatile (Flag16)
4363 -- Never_Set_In_Source (Flag115)
4364 -- Treat_As_Volatile (Flag41)
4365 -- Address_Clause (synth)
4366 -- Alignment_Clause (synth)
4367 -- Constant_Value (synth)
4368 -- Size_Clause (synth)
4370 -- E_Decimal_Fixed_Point_Type
4371 -- E_Decimal_Fixed_Subtype
4372 -- Scale_Value (Uint15)
4373 -- Digits_Value (Uint17)
4374 -- Scalar_Range (Node20)
4375 -- Delta_Value (Ureal18)
4376 -- Small_Value (Ureal21)
4377 -- Has_Machine_Radix_Clause (Flag83)
4378 -- Machine_Radix_10 (Flag84)
4379 -- Type_Low_Bound (synth)
4380 -- Type_High_Bound (synth)
4381 -- (plus type attributes)
4383 -- E_Discriminant
4384 -- Normalized_First_Bit (Uint8)
4385 -- Current_Value (Node9) (always Empty)
4386 -- Normalized_Position_Max (Uint10)
4387 -- Component_Bit_Offset (Uint11)
4388 -- Esize (Uint12)
4389 -- Component_Clause (Node13)
4390 -- Normalized_Position (Uint14)
4391 -- Discriminant_Number (Uint15)
4392 -- Discriminal (Node17)
4393 -- Renamed_Object (Node18) (always Empty)
4394 -- Corresponding_Discriminant (Node19)
4395 -- Discriminant_Default_Value (Node20)
4396 -- Interface_Name (Node21) (JGNAT usage only)
4397 -- Original_Record_Component (Node22)
4398 -- CR_Discriminant (Node23)
4399 -- Next_Discriminant (synth)
4400 -- Next_Stored_Discriminant (synth)
4402 -- E_Entry
4403 -- E_Entry_Family
4404 -- Protected_Body_Subprogram (Node11)
4405 -- Barrier_Function (Node12)
4406 -- Entry_Parameters_Type (Node15)
4407 -- First_Entity (Node17)
4408 -- Alias (Node18) (Entry only. Always empty)
4409 -- Finalization_Chain_Entity (Node19)
4410 -- Last_Entity (Node20)
4411 -- Accept_Address (Elist21)
4412 -- Scope_Depth_Value (Uint22)
4413 -- Privals_Chain (Elist23) (for a protected entry)
4414 -- Default_Expressions_Processed (Flag108)
4415 -- Entry_Accepted (Flag152)
4416 -- Is_AST_Entry (Flag132) (for entry only)
4417 -- Needs_No_Actuals (Flag22)
4418 -- Sec_Stack_Needed_For_Return (Flag167)
4419 -- Uses_Sec_Stack (Flag95)
4420 -- Address_Clause (synth)
4421 -- First_Formal (synth)
4422 -- Entry_Index_Type (synth)
4423 -- Number_Formals (synth)
4424 -- Scope_Depth (synth)
4426 -- E_Entry_Index_Parameter
4427 -- Entry_Index_Constant (Node18)
4429 -- E_Enumeration_Literal
4430 -- Enumeration_Pos (Uint11)
4431 -- Enumeration_Rep (Uint12)
4432 -- Debug_Renaming_Link (Node13)
4433 -- Alias (Node18)
4434 -- Enumeration_Rep_Expr (Node22)
4435 -- Next_Literal (synth)
4437 -- E_Enumeration_Type
4438 -- E_Enumeration_Subtype
4439 -- Lit_Indexes (Node15) (root type only)
4440 -- Lit_Strings (Node16) (root type only)
4441 -- First_Literal (Node17)
4442 -- Scalar_Range (Node20)
4443 -- Enum_Pos_To_Rep (Node23) (type only, not subtype)
4444 -- Has_Biased_Representation (Flag139)
4445 -- Has_Contiguous_Rep (Flag181)
4446 -- Has_Enumeration_Rep_Clause (Flag66)
4447 -- Nonzero_Is_True (Flag162) (base type only)
4448 -- Type_Low_Bound (synth)
4449 -- Type_High_Bound (synth)
4450 -- (plus type attributes)
4452 -- E_Exception
4453 -- Alignment (Uint14)
4454 -- Renamed_Entity (Node18)
4455 -- Register_Exception_Call (Node20)
4456 -- Interface_Name (Node21)
4457 -- Exception_Code (Uint22)
4458 -- Discard_Names (Flag88)
4459 -- Is_VMS_Exception (Flag133)
4461 -- E_Exception_Type
4462 -- Equivalent_Type (Node18)
4463 -- (plus type attributes)
4465 -- E_Floating_Point_Type
4466 -- E_Floating_Point_Subtype
4467 -- Digits_Value (Uint17)
4468 -- Scalar_Range (Node20)
4469 -- Type_Low_Bound (synth)
4470 -- Type_High_Bound (synth)
4471 -- (plus type attributes)
4473 -- E_Function
4474 -- E_Generic_Function
4475 -- Mechanism (Uint8) (returns Mechanism_Type)
4476 -- Renaming_Map (Uint9)
4477 -- Handler_Records (List10) (non-generic case only)
4478 -- Protected_Body_Subprogram (Node11)
4479 -- Next_Inlined_Subprogram (Node12)
4480 -- Corresponding_Equality (Node13) (implicit /= only)
4481 -- Elaboration_Entity (Node13) (all other cases)
4482 -- First_Optional_Parameter (Node14) (non-generic case only)
4483 -- DT_Position (Uint15)
4484 -- DTC_Entity (Node16)
4485 -- First_Entity (Node17)
4486 -- Alias (Node18) (non-generic case only)
4487 -- Renamed_Entity (Node18) (generic case only)
4488 -- Finalization_Chain_Entity (Node19)
4489 -- Last_Entity (Node20)
4490 -- Interface_Name (Node21)
4491 -- Scope_Depth_Value (Uint22)
4492 -- Generic_Renamings (Elist23) (for an instance)
4493 -- Inner_Instances (Elist23) (for a generic function)
4494 -- Privals_Chain (Elist23) (for a protected function)
4495 -- Obsolescent_Warning (Node24)
4496 -- Abstract_Interface_Alias (Node25)
4497 -- Overridden_Operation (Node26)
4498 -- Body_Needed_For_SAL (Flag40)
4499 -- Elaboration_Entity_Required (Flag174)
4500 -- Function_Returns_With_DSP (Flag169)
4501 -- Default_Expressions_Processed (Flag108)
4502 -- Delay_Cleanups (Flag114)
4503 -- Delay_Subprogram_Descriptors (Flag50)
4504 -- Discard_Names (Flag88)
4505 -- Has_Completion (Flag26)
4506 -- Has_Controlling_Result (Flag98)
4507 -- Has_Master_Entity (Flag21)
4508 -- Has_Missing_Return (Flag142)
4509 -- Has_Nested_Block_With_Handler (Flag101)
4510 -- Has_Recursive_Call (Flag143)
4511 -- Has_Subprogram_Descriptor (Flag93)
4512 -- Is_Abstract (Flag19)
4513 -- Is_Called (Flag102) (non-generic case only)
4514 -- Is_Constructor (Flag76)
4515 -- Is_Discrim_SO_Function (Flag176)
4516 -- Is_Eliminated (Flag124)
4517 -- Is_Instantiated (Flag126) (generic case only)
4518 -- Is_Intrinsic_Subprogram (Flag64)
4519 -- Is_Machine_Code_Subprogram (Flag137) (non-generic case only)
4520 -- Is_Overriding_Operation (Flag39) (non-generic case only)
4521 -- Is_Private_Descendant (Flag53)
4522 -- Is_Pure (Flag44)
4523 -- Is_Thread_Body (Flag77) (non-generic case only)
4524 -- Is_Visible_Child_Unit (Flag116)
4525 -- Needs_No_Actuals (Flag22)
4526 -- Return_Present (Flag54)
4527 -- Returns_By_Ref (Flag90)
4528 -- Sec_Stack_Needed_For_Return (Flag167)
4529 -- Uses_Sec_Stack (Flag95)
4530 -- Address_Clause (synth)
4531 -- First_Formal (synth)
4532 -- Number_Formals (synth)
4533 -- Scope_Depth (synth)
4535 -- E_General_Access_Type
4536 -- Storage_Size_Variable (Node15) (base type only)
4537 -- Master_Id (Node17)
4538 -- Directly_Designated_Type (Node20)
4539 -- Associated_Storage_Pool (Node22) (base type only)
4540 -- Associated_Final_Chain (Node23)
4541 -- (plus type attributes)
4543 -- E_Generic_In_Parameter
4544 -- E_Generic_In_Out_Parameter
4545 -- Current_Value (Node9) (always Empty)
4546 -- Entry_Component (Node11)
4547 -- Actual_Subtype (Node17)
4548 -- Renamed_Object (Node18) (always Empty)
4549 -- Default_Value (Node20)
4550 -- Protected_Formal (Node22)
4551 -- Is_Controlling_Formal (Flag97)
4552 -- Is_Entry_Formal (Flag52)
4553 -- Parameter_Mode (synth)
4555 -- E_Incomplete_Type
4556 -- Non_Limited_View (Node17)
4557 -- Private_Dependents (Elist18)
4558 -- Discriminant_Constraint (Elist21)
4559 -- Stored_Constraint (Elist23)
4560 -- First_Discriminant (synth)
4561 -- First_Stored_Discriminant (synth)
4562 -- (plus type attributes)
4564 -- E_In_Parameter
4565 -- E_In_Out_Parameter
4566 -- E_Out_Parameter
4567 -- Mechanism (Uint8) (returns Mechanism_Type)
4568 -- Current_Value (Node9) (always Empty for IN case)
4569 -- Discriminal_Link (Node10) (discriminals only)
4570 -- Entry_Component (Node11)
4571 -- Esize (Uint12)
4572 -- Extra_Accessibility (Node13)
4573 -- Alignment (Uint14)
4574 -- Extra_Formal (Node15)
4575 -- Unset_Reference (Node16)
4576 -- Actual_Subtype (Node17)
4577 -- Renamed_Object (Node18)
4578 -- Spec_Entity (Node19)
4579 -- Default_Value (Node20)
4580 -- Default_Expr_Function (Node21)
4581 -- Protected_Formal (Node22)
4582 -- Extra_Constrained (Node23)
4583 -- Is_Controlling_Formal (Flag97)
4584 -- Is_Entry_Formal (Flag52)
4585 -- Is_Optional_Parameter (Flag134)
4586 -- Never_Set_In_Source (Flag115)
4587 -- Parameter_Mode (synth)
4589 -- E_Label
4590 -- Enclosing_Scope (Node18)
4591 -- Reachable (Flag49)
4593 -- E_Limited_Private_Type
4594 -- E_Limited_Private_Subtype
4595 -- First_Entity (Node17)
4596 -- Private_Dependents (Elist18)
4597 -- Underlying_Full_View (Node19)
4598 -- Last_Entity (Node20)
4599 -- Discriminant_Constraint (Elist21)
4600 -- Private_View (Node22)
4601 -- Stored_Constraint (Elist23)
4602 -- Has_Completion (Flag26)
4603 -- Has_Completion_In_Body (Flag71)
4604 -- First_Discriminant (synth)
4605 -- First_Stored_Discriminant (synth)
4606 -- (plus type attributes)
4608 -- E_Loop
4609 -- Has_Exit (Flag47)
4610 -- Has_Master_Entity (Flag21)
4611 -- Has_Nested_Block_With_Handler (Flag101)
4613 -- E_Modular_Integer_Type
4614 -- E_Modular_Integer_Subtype
4615 -- Modulus (Uint17) (base type only)
4616 -- Original_Array_Type (Node21)
4617 -- Scalar_Range (Node20)
4618 -- Non_Binary_Modulus (Flag58) (base type only)
4619 -- Has_Biased_Representation (Flag139)
4620 -- Type_Low_Bound (synth)
4621 -- Type_High_Bound (synth)
4622 -- (plus type attributes)
4624 -- E_Named_Integer
4625 -- Constant_Value (synth)
4627 -- E_Named_Real
4628 -- Constant_Value (synth)
4630 -- E_Operator
4631 -- First_Entity (Node17)
4632 -- Alias (Node18)
4633 -- Last_Entity (Node20)
4634 -- Is_Machine_Code_Subprogram (Flag137)
4635 -- Is_Pure (Flag44)
4636 -- Is_Intrinsic_Subprogram (Flag64)
4637 -- Is_Overriding_Operation (Flag39)
4638 -- Default_Expressions_Processed (Flag108)
4640 -- E_Ordinary_Fixed_Point_Type
4641 -- E_Ordinary_Fixed_Point_Subtype
4642 -- Delta_Value (Ureal18)
4643 -- Scalar_Range (Node20)
4644 -- Small_Value (Ureal21)
4645 -- Has_Small_Clause (Flag67)
4646 -- Type_Low_Bound (synth)
4647 -- Type_High_Bound (synth)
4648 -- (plus type attributes)
4650 -- E_Package
4651 -- E_Generic_Package
4652 -- Dependent_Instances (Elist8) (for an instance)
4653 -- Renaming_Map (Uint9)
4654 -- Handler_Records (List10) (non-generic case only)
4655 -- Generic_Homonym (Node11) (generic case only)
4656 -- Associated_Formal_Package (Node12)
4657 -- Elaboration_Entity (Node13)
4658 -- Shadow_Entities (List14)
4659 -- Related_Instance (Node15) (non-generic case only)
4660 -- First_Private_Entity (Node16)
4661 -- First_Entity (Node17)
4662 -- Renamed_Entity (Node18)
4663 -- Body_Entity (Node19)
4664 -- Last_Entity (Node20)
4665 -- Interface_Name (Node21)
4666 -- Scope_Depth_Value (Uint22)
4667 -- Generic_Renamings (Elist23) (for an instance)
4668 -- Inner_Instances (Elist23) (generic case only)
4669 -- Limited_View (Node23) (non-generic, not instance)
4670 -- Obsolescent_Warning (Node24)
4671 -- Current_Use_Clause (Node25)
4672 -- Package_Instantiation (Node26)
4673 -- Delay_Subprogram_Descriptors (Flag50)
4674 -- Body_Needed_For_SAL (Flag40)
4675 -- Discard_Names (Flag88)
4676 -- Elaboration_Entity_Required (Flag174)
4677 -- From_With_Type (Flag159)
4678 -- Has_All_Calls_Remote (Flag79)
4679 -- Has_Completion (Flag26)
4680 -- Has_Forward_Instantiation (Flag175)
4681 -- Has_Master_Entity (Flag21)
4682 -- Has_Subprogram_Descriptor (Flag93)
4683 -- In_Package_Body (Flag48)
4684 -- In_Private_Part (Flag45)
4685 -- In_Use (Flag8)
4686 -- Is_Instantiated (Flag126)
4687 -- Is_Private_Descendant (Flag53)
4688 -- Is_Visible_Child_Unit (Flag116)
4689 -- Is_Wrapper_Package (synth) (non-generic case only)
4690 -- Scope_Depth (synth)
4692 -- E_Package_Body
4693 -- Handler_Records (List10) (non-generic case only)
4694 -- Related_Instance (Node15) (non-generic case only)
4695 -- First_Entity (Node17)
4696 -- Spec_Entity (Node19)
4697 -- Last_Entity (Node20)
4698 -- Scope_Depth_Value (Uint22)
4699 -- Scope_Depth (synth)
4700 -- Delay_Subprogram_Descriptors (Flag50)
4701 -- Has_Subprogram_Descriptor (Flag93)
4703 -- E_Private_Type
4704 -- E_Private_Subtype
4705 -- Primitive_Operations (Elist15)
4706 -- First_Entity (Node17)
4707 -- Private_Dependents (Elist18)
4708 -- Underlying_Full_View (Node19)
4709 -- Last_Entity (Node20)
4710 -- Discriminant_Constraint (Elist21)
4711 -- Private_View (Node22)
4712 -- Stored_Constraint (Elist23)
4713 -- Has_Completion (Flag26)
4714 -- Has_Completion_In_Body (Flag71)
4715 -- Is_Controlled (Flag42) (base type only)
4716 -- Is_For_Access_Subtype (Flag118) (subtype only)
4717 -- First_Discriminant (synth)
4718 -- First_Stored_Discriminant (synth)
4719 -- (plus type attributes)
4721 -- E_Procedure
4722 -- E_Generic_Procedure
4723 -- Renaming_Map (Uint9)
4724 -- Handler_Records (List10) (non-generic case only)
4725 -- Protected_Body_Subprogram (Node11)
4726 -- Next_Inlined_Subprogram (Node12)
4727 -- Elaboration_Entity (Node13)
4728 -- First_Optional_Parameter (Node14) (non-generic case only)
4729 -- DT_Position (Uint15)
4730 -- DTC_Entity (Node16)
4731 -- First_Entity (Node17)
4732 -- Alias (Node18) (non-generic case only)
4733 -- Renamed_Entity (Node18) (generic case only)
4734 -- Finalization_Chain_Entity (Node19)
4735 -- Last_Entity (Node20)
4736 -- Interface_Name (Node21)
4737 -- Scope_Depth_Value (Uint22)
4738 -- Scope_Depth (synth)
4739 -- Generic_Renamings (Elist23) (for an instance)
4740 -- Inner_Instances (Elist23) (for a generic procedure)
4741 -- Privals_Chain (Elist23) (for a protected procedure)
4742 -- Obsolescent_Warning (Node24)
4743 -- Abstract_Interface_Alias (Node25)
4744 -- Overridden_Operation (Node26)
4745 -- Wrapped_Entity (Node27) (non-generic case only)
4746 -- Body_Needed_For_SAL (Flag40)
4747 -- Elaboration_Entity_Required (Flag174)
4748 -- Function_Returns_With_DSP (Flag169) (always False for procedure)
4749 -- Default_Expressions_Processed (Flag108)
4750 -- Delay_Cleanups (Flag114)
4751 -- Delay_Subprogram_Descriptors (Flag50)
4752 -- Discard_Names (Flag88)
4753 -- Has_Completion (Flag26)
4754 -- Has_Master_Entity (Flag21)
4755 -- Has_Nested_Block_With_Handler (Flag101)
4756 -- Has_Subprogram_Descriptor (Flag93)
4757 -- Is_Visible_Child_Unit (Flag116)
4758 -- Is_Abstract (Flag19)
4759 -- Is_Asynchronous (Flag81)
4760 -- Is_Called (Flag102) (non-generic subprogram)
4761 -- Is_Constructor (Flag76)
4762 -- Is_Eliminated (Flag124)
4763 -- Is_Instantiated (Flag126) (generic case only)
4764 -- Is_Interrupt_Handler (Flag89)
4765 -- Is_Intrinsic_Subprogram (Flag64)
4766 -- Is_Machine_Code_Subprogram (Flag137) (non-generic case only)
4767 -- Is_Null_Init_Proc (Flag178)
4768 -- Is_Overriding_Operation (Flag39) (non-generic case only)
4769 -- Is_Primitive_Wrapper (Flag195) (non-generic case only)
4770 -- Is_Private_Descendant (Flag53)
4771 -- Is_Pure (Flag44)
4772 -- Is_Thread_Body (Flag77) (non-generic case only)
4773 -- Is_Valued_Procedure (Flag127)
4774 -- Is_Visible_Child_Unit (Flag116)
4775 -- Needs_No_Actuals (Flag22)
4776 -- No_Return (Flag113)
4777 -- Sec_Stack_Needed_For_Return (Flag167)
4778 -- Address_Clause (synth)
4779 -- First_Formal (synth)
4780 -- Number_Formals (synth)
4782 -- E_Protected_Body
4783 -- Object_Ref (Node17)
4784 -- (any others??? First/Last Entity, Scope_Depth???)
4786 -- E_Protected_Object
4788 -- E_Protected_Type
4789 -- E_Protected_Subtype
4790 -- Entry_Bodies_Array (Node15)
4791 -- First_Private_Entity (Node16)
4792 -- First_Entity (Node17)
4793 -- Corresponding_Record_Type (Node18)
4794 -- Finalization_Chain_Entity (Node19)
4795 -- Last_Entity (Node20)
4796 -- Discriminant_Constraint (Elist21)
4797 -- Scope_Depth_Value (Uint22)
4798 -- Scope_Depth (synth)
4799 -- Stored_Constraint (Elist23)
4800 -- Has_Interrupt_Handler (synth)
4801 -- Sec_Stack_Needed_For_Return (Flag167) ???
4802 -- Uses_Sec_Stack (Flag95) ???
4803 -- Has_Entries (synth)
4804 -- Number_Entries (synth)
4806 -- E_Record_Type
4807 -- E_Record_Subtype
4808 -- Primitive_Operations (Elist15)
4809 -- Access_Disp_Table (Elist16) (base type only)
4810 -- Cloned_Subtype (Node16) (subtype case only)
4811 -- First_Entity (Node17)
4812 -- Corresponding_Concurrent_Type (Node18)
4813 -- Parent_Subtype (Node19)
4814 -- Last_Entity (Node20)
4815 -- Discriminant_Constraint (Elist21)
4816 -- Corresponding_Remote_Type (Node22)
4817 -- Stored_Constraint (Elist23)
4818 -- Abstract_Interfaces (Elist24)
4819 -- Component_Alignment (special) (base type only)
4820 -- C_Pass_By_Copy (Flag125) (base type only)
4821 -- Has_External_Tag_Rep_Clause (Flag110)
4822 -- Has_Record_Rep_Clause (Flag65) (base type only)
4823 -- Is_Class_Wide_Equivalent_Type (Flag35)
4824 -- Is_Concurrent_Record_Type (Flag20)
4825 -- Is_Constrained (Flag12)
4826 -- Is_Controlled (Flag42) (base type only)
4827 -- Is_Interface (Flag186)
4828 -- Reverse_Bit_Order (Flag164) (base type only)
4829 -- First_Component (synth)
4830 -- First_Discriminant (synth)
4831 -- First_Stored_Discriminant (synth)
4832 -- First_Tag_Component (synth)
4833 -- (plus type attributes)
4835 -- E_Record_Type_With_Private
4836 -- E_Record_Subtype_With_Private
4837 -- Primitive_Operations (Elist15)
4838 -- Access_Disp_Table (Elist16) (base type only)
4839 -- First_Entity (Node17)
4840 -- Private_Dependents (Elist18)
4841 -- Underlying_Full_View (Node19)
4842 -- Last_Entity (Node20)
4843 -- Discriminant_Constraint (Elist21)
4844 -- Private_View (Node22)
4845 -- Stored_Constraint (Elist23)
4846 -- Abstract_Interfaces (Elist24)
4847 -- Has_Completion (Flag26)
4848 -- Has_Completion_In_Body (Flag71)
4849 -- Has_Record_Rep_Clause (Flag65) (base type only)
4850 -- Has_External_Tag_Rep_Clause (Flag110)
4851 -- Is_Concurrent_Record_Type (Flag20)
4852 -- Is_Constrained (Flag12)
4853 -- Is_Controlled (Flag42) (base type only)
4854 -- Is_Interface (Flag186)
4855 -- Reverse_Bit_Order (Flag164) (base type only)
4856 -- First_Component (synth)
4857 -- First_Discriminant (synth)
4858 -- First_Stored_Discriminant (synth)
4859 -- First_Tag_Component (synth)
4860 -- (plus type attributes)
4862 -- E_Signed_Integer_Type
4863 -- E_Signed_Integer_Subtype
4864 -- Scalar_Range (Node20)
4865 -- Has_Biased_Representation (Flag139)
4866 -- Type_Low_Bound (synth)
4867 -- Type_High_Bound (synth)
4868 -- (plus type attributes)
4870 -- E_String_Type
4871 -- E_String_Subtype
4872 -- First_Index (Node17)
4873 -- Component_Type (Node20) (base type only)
4874 -- Is_Constrained (Flag12)
4875 -- Next_Index (synth)
4876 -- Number_Dimensions (synth)
4877 -- (plus type attributes)
4879 -- E_String_Literal_Subtype
4880 -- String_Literal_Low_Bound (Node15)
4881 -- String_Literal_Length (Uint16)
4882 -- First_Index (Node17) (always Empty)
4883 -- Packed_Array_Type (Node23)
4884 -- (plus type attributes)
4886 -- E_Subprogram_Body
4887 -- Mechanism (Uint8)
4888 -- First_Entity (Node17)
4889 -- Last_Entity (Node20)
4890 -- Scope_Depth_Value (Uint22)
4891 -- Scope_Depth (synth)
4893 -- E_Subprogram_Type
4894 -- Directly_Designated_Type (Node20)
4895 -- First_Formal (synth)
4896 -- Number_Formals (synth)
4897 -- Function_Returns_With_DSP (Flag169)
4898 -- (plus type attributes)
4900 -- E_Task_Body
4901 -- (any others??? First/Last Entity, Scope_Depth???)
4903 -- E_Task_Type
4904 -- E_Task_Subtype
4905 -- Storage_Size_Variable (Node15) (base type only)
4906 -- First_Private_Entity (Node16)
4907 -- First_Entity (Node17)
4908 -- Corresponding_Record_Type (Node18)
4909 -- Finalization_Chain_Entity (Node19)
4910 -- Last_Entity (Node20)
4911 -- Discriminant_Constraint (Elist21)
4912 -- Scope_Depth_Value (Uint22)
4913 -- Scope_Depth (synth)
4914 -- Stored_Constraint (Elist23)
4915 -- Task_Body_Procedure (Node24)
4916 -- Delay_Cleanups (Flag114)
4917 -- Has_Master_Entity (Flag21)
4918 -- Has_Storage_Size_Clause (Flag23) (base type only)
4919 -- Uses_Sec_Stack (Flag95) ???
4920 -- Sec_Stack_Needed_For_Return (Flag167) ???
4921 -- Has_Entries (synth)
4922 -- Number_Entries (synth)
4923 -- (plus type attributes)
4925 -- E_Variable
4926 -- Hiding_Loop_Variable (Node8)
4927 -- Current_Value (Node9)
4928 -- Esize (Uint12)
4929 -- Extra_Accessibility (Node13)
4930 -- Alignment (Uint14)
4931 -- Shared_Var_Read_Proc (Node15)
4932 -- Unset_Reference (Node16)
4933 -- Actual_Subtype (Node17)
4934 -- Renamed_Object (Node18)
4935 -- Size_Check_Code (Node19)
4936 -- Interface_Name (Node21)
4937 -- Shared_Var_Assign_Proc (Node22)
4938 -- Extra_Constrained (Node23)
4939 -- Has_Alignment_Clause (Flag46)
4940 -- Has_Atomic_Components (Flag86)
4941 -- Has_Biased_Representation (Flag139)
4942 -- Has_Size_Clause (Flag29)
4943 -- Has_Volatile_Components (Flag87)
4944 -- Is_Atomic (Flag85)
4945 -- Is_Eliminated (Flag124)
4946 -- Is_Shared_Passive (Flag60)
4947 -- Is_True_Constant (Flag163)
4948 -- Is_Volatile (Flag16)
4949 -- Never_Set_In_Source (Flag115)
4950 -- Treat_As_Volatile (Flag41)
4951 -- Address_Clause (synth)
4952 -- Alignment_Clause (synth)
4953 -- Constant_Value (synth)
4954 -- Size_Clause (synth)
4956 -- E_Void
4957 -- Since E_Void is the initial Ekind value of an entity when it is first
4958 -- created, one might expect that no attributes would be defined on such
4959 -- an entity until its Ekind field is set. However, in practice, there
4960 -- are many instances in which fields of an E_Void entity are set in the
4961 -- code prior to setting the Ekind field. This is not well documented or
4962 -- well controlled, and needs cleaning up later. Meanwhile, the access
4963 -- procedures in the body of Einfo permit many, but not all, attributes
4964 -- to be applied to an E_Void entity, precisely so that this kind of
4965 -- pre-setting of attributes works. This is really a hole in the dynamic
4966 -- type checking, since there is no assurance that the eventual Ekind
4967 -- value will be appropriate for the attributes set, and the consequence
4968 -- is that the dynamic type checking in the Einfo body is unnecessarily
4969 -- weak. To be looked at systematically some time ???
4971 ---------------------------------
4972 -- Component_Alignment Control --
4973 ---------------------------------
4975 -- There are four types of alignment possible for array and record
4976 -- types, and a field in the type entities contains a value of the
4977 -- following type indicating which alignment choice applies. For full
4978 -- details of the meaning of these aligment types, see description
4979 -- of the Component_Alignment pragma
4981 type Component_Alignment_Kind is (
4982 Calign_Default, -- default alignment
4983 Calign_Component_Size, -- natural alignment for component size
4984 Calign_Component_Size_4, -- natural for size <= 4, 4 for size >= 4
4985 Calign_Storage_Unit); -- all components byte aligned
4987 ---------------
4988 -- Iterators --
4989 ---------------
4991 -- In addition to attributes that are stored as plain data, other
4992 -- attributes are procedural, and require some small amount of
4993 -- computation. Of course, from the point of view of a user of this
4994 -- package, the distinction is not visible (even the field information
4995 -- provided below should be disregarded, as it is subject to change
4996 -- without notice!). A number of attributes appear as lists: lists of
4997 -- formals, lists of actuals, of discriminants, etc. For these, pairs
4998 -- of functions are defined, which take the form:
5000 -- function First_Thing (E : Enclosing_Construct) return Thing;
5001 -- function Next_Thing (T : Thing) return Thing;
5003 -- The end of iteration is always signaled by a value of Empty, so that
5004 -- loops over these chains invariably have the form:
5006 -- This : Thing;
5007 -- ...
5008 -- This := First_Thing (E);
5010 -- while Present (This) loop
5011 -- Do_Something_With (This);
5012 -- ...
5013 -- This := Next_Thing (This);
5014 -- end loop;
5016 -----------------------------------
5017 -- Handling of Check Suppression --
5018 -----------------------------------
5020 -- There are three ways that checks can be suppressed:
5022 -- 1. At the command line level
5023 -- 2. At the scope level.
5024 -- 3. At the entity level.
5026 -- See spec of Sem in sem.ads for details of the data structures used
5027 -- to keep track of these various methods for suppressing checks.
5029 -------------------------------
5030 -- Handling of Discriminants --
5031 -------------------------------
5033 -- During semantic processing, discriminants are separate entities which
5034 -- reflect the semantic properties and allowed usage of discriminants in
5035 -- the language.
5037 -- In the case of discriminants used as bounds, the references are handled
5038 -- directly, since special processing is needed in any case. However, there
5039 -- are two circumstances in which discriminants are referenced in a quite
5040 -- general manner, like any other variables:
5042 -- In initialization expressions for records. Note that the expressions
5043 -- used in Priority, Storage_Size, and Task_Info pragmas are effectively
5044 -- in this category, since these pragmas are converted to initialized
5045 -- record fields in the Corresponding_Record_Type.
5047 -- In task and protected bodies, where the discriminant values may be
5048 -- referenced freely within these bodies. Discriminants can also appear
5049 -- in bounds of entry families and in defaults of operations.
5051 -- In both these cases, the discriminants must be treated essentially as
5052 -- objects. The following approach is used to simplify and minimize the
5053 -- special processing that is required.
5055 -- When a record type with discriminants is processed, the semantic
5056 -- processing creates the entities for the discriminants. It also creates
5057 -- an additional set of entities, called discriminals, one for each of
5058 -- the discriminants, and the Discriminal field of the discriminant entity
5059 -- points to this additional entity, which is initially created as an
5060 -- uninitialized (E_Void) entity.
5062 -- During expansion of expressions, any discriminant reference is replaced
5063 -- by a reference to the corresponding discriminal. When the initialization
5064 -- procedure for the record is created (there will always be one, since
5065 -- discriminants are present, see Exp_Ch3 for further details), the
5066 -- discriminals are used as the entities for the formal parameters of
5067 -- this initialization procedure. The references to these discriminants
5068 -- have already been replaced by references to these discriminals, which
5069 -- are now the formal parameters corresponding to the required objects.
5071 -- In the case of a task or protected body, the semantics similarly
5072 -- creates a set of discriminals for the discriminants of the task or
5073 -- protected type. When the procedure is created for the task body,
5074 -- the parameter passed in is a reference to the task value type, which
5075 -- contains the required discriminant values. The expander creates a
5076 -- set of declarations of the form:
5078 -- discriminal : constant dtype renames _Task.discriminant;
5080 -- where discriminal is the discriminal entity referenced by the task
5081 -- discriminant, and _Task is the task value passed in as the parameter.
5082 -- Again, any references to discriminants in the task body have been
5083 -- replaced by the discriminal reference, which is now an object that
5084 -- contains the required value.
5086 -- This approach for tasks means that two sets of discriminals are needed
5087 -- for a task type, one for the initialization procedure, and one for the
5088 -- task body. This works out nicely, since the semantics allocates one set
5089 -- for the task itself, and one set for the corresponding record.
5091 -- The one bit of trickiness arises in making sure that the right set of
5092 -- discriminals is used at the right time. First the task definition is
5093 -- processed. Any references to discriminants here are replaced by the
5094 -- the corresponding *task* discriminals (the record type doesn't even
5095 -- exist yet, since it is constructed as part of the expansion of the
5096 -- task declaration, which happens after the semantic processing of the
5097 -- task definition). The discriminants to be used for the corresponding
5098 -- record are created at the same time as the other discriminals, and
5099 -- held in the CR_Discriminant field of the discriminant. A use of the
5100 -- discriminant in a bound for an entry family is replaced with the CR_
5101 -- discriminant because it controls the bound of the entry queue array
5102 -- which is a component of the corresponding record.
5104 -- Just before the record initialization routine is constructed, the
5105 -- expander exchanges the task and record discriminals. This has two
5106 -- effects. First the generation of the record initialization routine
5107 -- uses the discriminals that are now on the record, which is the set
5108 -- that used to be on the task, which is what we want.
5110 -- Second, a new set of (so far unused) discriminals is now on the task
5111 -- discriminants, and it is this set that will be used for expanding the
5112 -- task body, and also for the discriminal declarations at the start of
5113 -- the task body.
5115 ---------------------------------------
5116 -- Private data in protected objects --
5117 ---------------------------------------
5119 -- Private object declarations in protected types pose problems
5120 -- similar to those of discriminants. They are expanded to components
5121 -- of a record which is passed as the parameter "_object" to expanded
5122 -- forms of all protected operations. As with discriminants, timing
5123 -- of this expansion is a problem. The sequence of statements for a
5124 -- protected operation is expanded before the operation itself, so the
5125 -- formal parameter for the record object containing the private data
5126 -- does not exist when the references to that data are expanded.
5128 -- For this reason, private data is handled in the same way as
5129 -- discriminants, expanding references to private data in protected
5130 -- operations (which appear as components) to placeholders which will
5131 -- eventually become renamings of the private selected components
5132 -- of the "_object" formal parameter. These placeholders are called
5133 -- "privals", by analogy to the "discriminals" used to implement
5134 -- discriminants. They are attached to the component declaration nodes
5135 -- representing the private object declarations of the protected type.
5137 -- As with discriminals, each protected subprogram needs a unique set
5138 -- of privals, since they must refer to renamings of components of a
5139 -- formal parameter of that operation. Entry bodies need another set,
5140 -- which they all share and which is associated with renamings in the
5141 -- Service_Entries procedure for the protected type (this is not yet
5142 -- implemented???). This means that we must associate a new set of
5143 -- privals (and discriminals) with the private declarations after
5144 -- the body of a protected subprogram is processed.
5146 -- The last complication is the presence of discriminants and discriminated
5147 -- components. In the corresponding record, the components are constrained
5148 -- by the discriminants of the record, but within each protected operation
5149 -- they are constrained by the discriminants of the actual. The actual
5150 -- subtypes of those components are constructed as for other unconstrained
5151 -- formals, but the privals are created before the formal object is added
5152 -- to the parameter list of the protected operation, so they carry the
5153 -- nominal subtype of the original component. After the protected operation
5154 -- is actually created (in the expansion of the protected body) we must
5155 -- patch the types of each prival occurrence with the proper actual subtype
5156 -- which is by now set. The Privals_Chain is used for this patching.
5158 -------------------
5159 -- Type Synonyms --
5160 -------------------
5162 -- The following type synonyms are used to tidy up the function and
5163 -- procedure declarations that follow, and also to make it possible
5164 -- to meet the requirement for the XEINFO utility that all function
5165 -- specs must fit on a single source line.
5167 subtype B is Boolean;
5168 subtype C is Component_Alignment_Kind;
5169 subtype E is Entity_Id;
5170 subtype M is Mechanism_Type;
5171 subtype N is Node_Id;
5172 subtype U is Uint;
5173 subtype R is Ureal;
5174 subtype L is Elist_Id;
5175 subtype S is List_Id;
5177 --------------------------------
5178 -- Attribute Access Functions --
5179 --------------------------------
5181 -- All attributes are manipulated through a procedural interface. This
5182 -- section contains the functions used to obtain attribute values which
5183 -- correspond to values in fields or flags in the entity itself.
5185 function Abstract_Interfaces (Id : E) return L;
5186 function Accept_Address (Id : E) return L;
5187 function Access_Disp_Table (Id : E) return L;
5188 function Actual_Subtype (Id : E) return E;
5189 function Address_Taken (Id : E) return B;
5190 function Alias (Id : E) return E;
5191 function Abstract_Interface_Alias (Id : E) return E;
5192 function Alignment (Id : E) return U;
5193 function Associated_Final_Chain (Id : E) return E;
5194 function Associated_Formal_Package (Id : E) return E;
5195 function Associated_Node_For_Itype (Id : E) return N;
5196 function Associated_Storage_Pool (Id : E) return E;
5197 function Barrier_Function (Id : E) return N;
5198 function Block_Node (Id : E) return N;
5199 function Body_Entity (Id : E) return E;
5200 function Body_Needed_For_SAL (Id : E) return B;
5201 function CR_Discriminant (Id : E) return E;
5202 function C_Pass_By_Copy (Id : E) return B;
5203 function Can_Never_Be_Null (Id : E) return B;
5204 function Checks_May_Be_Suppressed (Id : E) return B;
5205 function Class_Wide_Type (Id : E) return E;
5206 function Cloned_Subtype (Id : E) return E;
5207 function Component_Alignment (Id : E) return C;
5208 function Component_Clause (Id : E) return N;
5209 function Component_Bit_Offset (Id : E) return U;
5210 function Component_Size (Id : E) return U;
5211 function Component_Type (Id : E) return E;
5212 function Corresponding_Concurrent_Type (Id : E) return E;
5213 function Corresponding_Discriminant (Id : E) return E;
5214 function Corresponding_Equality (Id : E) return E;
5215 function Corresponding_Record_Type (Id : E) return E;
5216 function Corresponding_Remote_Type (Id : E) return E;
5217 function Current_Use_Clause (Id : E) return E;
5218 function Current_Value (Id : E) return N;
5219 function Debug_Info_Off (Id : E) return B;
5220 function Debug_Renaming_Link (Id : E) return E;
5221 function DTC_Entity (Id : E) return E;
5222 function DT_Entry_Count (Id : E) return U;
5223 function DT_Offset_To_Top_Func (Id : E) return E;
5224 function DT_Position (Id : E) return U;
5225 function Default_Expr_Function (Id : E) return E;
5226 function Default_Expressions_Processed (Id : E) return B;
5227 function Default_Value (Id : E) return N;
5228 function Delay_Cleanups (Id : E) return B;
5229 function Delay_Subprogram_Descriptors (Id : E) return B;
5230 function Delta_Value (Id : E) return R;
5231 function Dependent_Instances (Id : E) return L;
5232 function Depends_On_Private (Id : E) return B;
5233 function Digits_Value (Id : E) return U;
5234 function Directly_Designated_Type (Id : E) return E;
5235 function Discard_Names (Id : E) return B;
5236 function Discriminal (Id : E) return E;
5237 function Discriminal_Link (Id : E) return E;
5238 function Discriminant_Checking_Func (Id : E) return E;
5239 function Discriminant_Constraint (Id : E) return L;
5240 function Discriminant_Default_Value (Id : E) return N;
5241 function Discriminant_Number (Id : E) return U;
5242 function Elaboration_Entity (Id : E) return E;
5243 function Elaboration_Entity_Required (Id : E) return B;
5244 function Enclosing_Scope (Id : E) return E;
5245 function Entry_Accepted (Id : E) return B;
5246 function Entry_Bodies_Array (Id : E) return E;
5247 function Entry_Cancel_Parameter (Id : E) return E;
5248 function Entry_Component (Id : E) return E;
5249 function Entry_Formal (Id : E) return E;
5250 function Entry_Index_Constant (Id : E) return E;
5251 function Entry_Index_Type (Id : E) return E;
5252 function Entry_Parameters_Type (Id : E) return E;
5253 function Enum_Pos_To_Rep (Id : E) return E;
5254 function Enumeration_Pos (Id : E) return U;
5255 function Enumeration_Rep (Id : E) return U;
5256 function Enumeration_Rep_Expr (Id : E) return N;
5257 function Equivalent_Type (Id : E) return E;
5258 function Esize (Id : E) return U;
5259 function Exception_Code (Id : E) return U;
5260 function Extra_Accessibility (Id : E) return E;
5261 function Extra_Constrained (Id : E) return E;
5262 function Extra_Formal (Id : E) return E;
5263 function Finalization_Chain_Entity (Id : E) return E;
5264 function Finalize_Storage_Only (Id : E) return B;
5265 function First_Entity (Id : E) return E;
5266 function First_Index (Id : E) return N;
5267 function First_Literal (Id : E) return E;
5268 function First_Optional_Parameter (Id : E) return E;
5269 function First_Private_Entity (Id : E) return E;
5270 function First_Rep_Item (Id : E) return N;
5271 function Freeze_Node (Id : E) return N;
5272 function From_With_Type (Id : E) return B;
5273 function Full_View (Id : E) return E;
5274 function Function_Returns_With_DSP (Id : E) return B;
5275 function Generic_Homonym (Id : E) return E;
5276 function Generic_Renamings (Id : E) return L;
5277 function Handler_Records (Id : E) return S;
5278 function Has_Aliased_Components (Id : E) return B;
5279 function Has_Alignment_Clause (Id : E) return B;
5280 function Has_All_Calls_Remote (Id : E) return B;
5281 function Has_Anon_Block_Suffix (Id : E) return B;
5282 function Has_Atomic_Components (Id : E) return B;
5283 function Has_Biased_Representation (Id : E) return B;
5284 function Has_Completion (Id : E) return B;
5285 function Has_Completion_In_Body (Id : E) return B;
5286 function Has_Complex_Representation (Id : E) return B;
5287 function Has_Component_Size_Clause (Id : E) return B;
5288 function Has_Constrained_Partial_View (Id : E) return B;
5289 function Has_Contiguous_Rep (Id : E) return B;
5290 function Has_Controlled_Component (Id : E) return B;
5291 function Has_Controlling_Result (Id : E) return B;
5292 function Has_Convention_Pragma (Id : E) return B;
5293 function Has_Delayed_Freeze (Id : E) return B;
5294 function Has_Discriminants (Id : E) return B;
5295 function Has_Enumeration_Rep_Clause (Id : E) return B;
5296 function Has_Exit (Id : E) return B;
5297 function Has_External_Tag_Rep_Clause (Id : E) return B;
5298 function Has_Fully_Qualified_Name (Id : E) return B;
5299 function Has_Gigi_Rep_Item (Id : E) return B;
5300 function Has_Homonym (Id : E) return B;
5301 function Has_Interrupt_Handler (Id : E) return B;
5302 function Has_Machine_Radix_Clause (Id : E) return B;
5303 function Has_Master_Entity (Id : E) return B;
5304 function Has_Missing_Return (Id : E) return B;
5305 function Has_Nested_Block_With_Handler (Id : E) return B;
5306 function Has_Forward_Instantiation (Id : E) return B;
5307 function Has_Non_Standard_Rep (Id : E) return B;
5308 function Has_Object_Size_Clause (Id : E) return B;
5309 function Has_Per_Object_Constraint (Id : E) return B;
5310 function Has_Persistent_BSS (Id : E) return B;
5311 function Has_Pragma_Controlled (Id : E) return B;
5312 function Has_Pragma_Elaborate_Body (Id : E) return B;
5313 function Has_Pragma_Inline (Id : E) return B;
5314 function Has_Pragma_Pack (Id : E) return B;
5315 function Has_Pragma_Pure (Id : E) return B;
5316 function Has_Pragma_Pure_Function (Id : E) return B;
5317 function Has_Pragma_Unreferenced (Id : E) return B;
5318 function Has_Primitive_Operations (Id : E) return B;
5319 function Has_Qualified_Name (Id : E) return B;
5320 function Has_Record_Rep_Clause (Id : E) return B;
5321 function Has_Recursive_Call (Id : E) return B;
5322 function Has_Size_Clause (Id : E) return B;
5323 function Has_Small_Clause (Id : E) return B;
5324 function Has_Specified_Layout (Id : E) return B;
5325 function Has_Specified_Stream_Input (Id : E) return B;
5326 function Has_Specified_Stream_Output (Id : E) return B;
5327 function Has_Specified_Stream_Read (Id : E) return B;
5328 function Has_Specified_Stream_Write (Id : E) return B;
5329 function Has_Storage_Size_Clause (Id : E) return B;
5330 function Has_Stream_Size_Clause (Id : E) return B;
5331 function Has_Subprogram_Descriptor (Id : E) return B;
5332 function Has_Task (Id : E) return B;
5333 function Has_Unchecked_Union (Id : E) return B;
5334 function Has_Unknown_Discriminants (Id : E) return B;
5335 function Has_Volatile_Components (Id : E) return B;
5336 function Has_Xref_Entry (Id : E) return B;
5337 function Hiding_Loop_Variable (Id : E) return E;
5338 function Homonym (Id : E) return E;
5339 function In_Package_Body (Id : E) return B;
5340 function In_Private_Part (Id : E) return B;
5341 function In_Use (Id : E) return B;
5342 function Inner_Instances (Id : E) return L;
5343 function Interface_Name (Id : E) return N;
5344 function Is_AST_Entry (Id : E) return B;
5345 function Is_Abstract (Id : E) return B;
5346 function Is_Local_Anonymous_Access (Id : E) return B;
5347 function Is_Access_Constant (Id : E) return B;
5348 function Is_Ada_2005 (Id : E) return B;
5349 function Is_Aliased (Id : E) return B;
5350 function Is_Asynchronous (Id : E) return B;
5351 function Is_Atomic (Id : E) return B;
5352 function Is_Bit_Packed_Array (Id : E) return B;
5353 function Is_CPP_Class (Id : E) return B;
5354 function Is_Called (Id : E) return B;
5355 function Is_Character_Type (Id : E) return B;
5356 function Is_Child_Unit (Id : E) return B;
5357 function Is_Class_Wide_Equivalent_Type (Id : E) return B;
5358 function Is_Compilation_Unit (Id : E) return B;
5359 function Is_Completely_Hidden (Id : E) return B;
5360 function Is_Constr_Subt_For_UN_Aliased (Id : E) return B;
5361 function Is_Constr_Subt_For_U_Nominal (Id : E) return B;
5362 function Is_Constrained (Id : E) return B;
5363 function Is_Constructor (Id : E) return B;
5364 function Is_Controlled (Id : E) return B;
5365 function Is_Controlling_Formal (Id : E) return B;
5366 function Is_Discrim_SO_Function (Id : E) return B;
5367 function Is_Dispatching_Operation (Id : E) return B;
5368 function Is_Eliminated (Id : E) return B;
5369 function Is_Entry_Formal (Id : E) return B;
5370 function Is_Exported (Id : E) return B;
5371 function Is_First_Subtype (Id : E) return B;
5372 function Is_For_Access_Subtype (Id : E) return B;
5373 function Is_Frozen (Id : E) return B;
5374 function Is_Generic_Instance (Id : E) return B;
5375 function Is_Hidden (Id : E) return B;
5376 function Is_Hidden_Open_Scope (Id : E) return B;
5377 function Is_Immediately_Visible (Id : E) return B;
5378 function Is_Imported (Id : E) return B;
5379 function Is_Inlined (Id : E) return B;
5380 function Is_Interface (Id : E) return B;
5381 function Is_Instantiated (Id : E) return B;
5382 function Is_Internal (Id : E) return B;
5383 function Is_Interrupt_Handler (Id : E) return B;
5384 function Is_Intrinsic_Subprogram (Id : E) return B;
5385 function Is_Itype (Id : E) return B;
5386 function Is_Known_Non_Null (Id : E) return B;
5387 function Is_Known_Null (Id : E) return B;
5388 function Is_Known_Valid (Id : E) return B;
5389 function Is_Limited_Composite (Id : E) return B;
5390 function Is_Limited_Interface (Id : E) return B;
5391 function Is_Machine_Code_Subprogram (Id : E) return B;
5392 function Is_Non_Static_Subtype (Id : E) return B;
5393 function Is_Null_Init_Proc (Id : E) return B;
5394 function Is_Obsolescent (Id : E) return B;
5395 function Is_Optional_Parameter (Id : E) return B;
5396 function Is_Package_Body_Entity (Id : E) return B;
5397 function Is_Packed (Id : E) return B;
5398 function Is_Packed_Array_Type (Id : E) return B;
5399 function Is_Potentially_Use_Visible (Id : E) return B;
5400 function Is_Preelaborated (Id : E) return B;
5401 function Is_Primitive_Wrapper (Id : E) return B;
5402 function Is_Private_Composite (Id : E) return B;
5403 function Is_Private_Descendant (Id : E) return B;
5404 function Is_Protected_Interface (Id : E) return B;
5405 function Is_Public (Id : E) return B;
5406 function Is_Pure (Id : E) return B;
5407 function Is_Pure_Unit_Access_Type (Id : E) return B;
5408 function Is_Remote_Call_Interface (Id : E) return B;
5409 function Is_Remote_Types (Id : E) return B;
5410 function Is_Renaming_Of_Object (Id : E) return B;
5411 function Is_Shared_Passive (Id : E) return B;
5412 function Is_Statically_Allocated (Id : E) return B;
5413 function Is_Synchronized_Interface (Id : E) return B;
5414 function Is_Tag (Id : E) return B;
5415 function Is_Tagged_Type (Id : E) return B;
5416 function Is_Task_Interface (Id : E) return B;
5417 function Is_Thread_Body (Id : E) return B;
5418 function Is_True_Constant (Id : E) return B;
5419 function Is_Unchecked_Union (Id : E) return B;
5420 function Is_Unsigned_Type (Id : E) return B;
5421 function Is_VMS_Exception (Id : E) return B;
5422 function Is_Valued_Procedure (Id : E) return B;
5423 function Is_Visible_Child_Unit (Id : E) return B;
5424 function Is_Volatile (Id : E) return B;
5425 function Itype_Printed (Id : E) return B;
5426 function Kill_Elaboration_Checks (Id : E) return B;
5427 function Kill_Range_Checks (Id : E) return B;
5428 function Kill_Tag_Checks (Id : E) return B;
5429 function Last_Entity (Id : E) return E;
5430 function Limited_View (Id : E) return E;
5431 function Lit_Indexes (Id : E) return E;
5432 function Lit_Strings (Id : E) return E;
5433 function Machine_Radix_10 (Id : E) return B;
5434 function Master_Id (Id : E) return E;
5435 function Materialize_Entity (Id : E) return B;
5436 function Mechanism (Id : E) return M;
5437 function Modulus (Id : E) return U;
5438 function Must_Be_On_Byte_Boundary (Id : E) return B;
5439 function Needs_Debug_Info (Id : E) return B;
5440 function Needs_No_Actuals (Id : E) return B;
5441 function Never_Set_In_Source (Id : E) return B;
5442 function Next_Inlined_Subprogram (Id : E) return E;
5443 function No_Pool_Assigned (Id : E) return B;
5444 function No_Return (Id : E) return B;
5445 function No_Strict_Aliasing (Id : E) return B;
5446 function Non_Binary_Modulus (Id : E) return B;
5447 function Non_Limited_View (Id : E) return E;
5448 function Nonzero_Is_True (Id : E) return B;
5449 function Normalized_First_Bit (Id : E) return U;
5450 function Normalized_Position (Id : E) return U;
5451 function Normalized_Position_Max (Id : E) return U;
5452 function Object_Ref (Id : E) return E;
5453 function Obsolescent_Warning (Id : E) return N;
5454 function Original_Access_Type (Id : E) return E;
5455 function Original_Array_Type (Id : E) return E;
5456 function Original_Record_Component (Id : E) return E;
5457 function Overridden_Operation (Id : E) return E;
5458 function Package_Instantiation (Id : E) return N;
5459 function Packed_Array_Type (Id : E) return E;
5460 function Parent_Subtype (Id : E) return E;
5461 function Primitive_Operations (Id : E) return L;
5462 function Prival (Id : E) return E;
5463 function Privals_Chain (Id : E) return L;
5464 function Private_Dependents (Id : E) return L;
5465 function Private_View (Id : E) return N;
5466 function Protected_Body_Subprogram (Id : E) return E;
5467 function Protected_Formal (Id : E) return E;
5468 function Protected_Operation (Id : E) return E;
5469 function RM_Size (Id : E) return U;
5470 function Reachable (Id : E) return B;
5471 function Referenced (Id : E) return B;
5472 function Referenced_As_LHS (Id : E) return B;
5473 function Referenced_Object (Id : E) return N;
5474 function Register_Exception_Call (Id : E) return N;
5475 function Related_Array_Object (Id : E) return E;
5476 function Related_Instance (Id : E) return E;
5477 function Renamed_Entity (Id : E) return N;
5478 function Renamed_Object (Id : E) return N;
5479 function Renaming_Map (Id : E) return U;
5480 function Return_Present (Id : E) return B;
5481 function Returns_By_Ref (Id : E) return B;
5482 function Reverse_Bit_Order (Id : E) return B;
5483 function Scalar_Range (Id : E) return N;
5484 function Scale_Value (Id : E) return U;
5485 function Scope_Depth_Value (Id : E) return U;
5486 function Sec_Stack_Needed_For_Return (Id : E) return B;
5487 function Shadow_Entities (Id : E) return S;
5488 function Shared_Var_Assign_Proc (Id : E) return E;
5489 function Shared_Var_Read_Proc (Id : E) return E;
5490 function Size_Check_Code (Id : E) return N;
5491 function Size_Known_At_Compile_Time (Id : E) return B;
5492 function Size_Depends_On_Discriminant (Id : E) return B;
5493 function Small_Value (Id : E) return R;
5494 function Spec_Entity (Id : E) return E;
5495 function Storage_Size_Variable (Id : E) return E;
5496 function Stored_Constraint (Id : E) return L;
5497 function Strict_Alignment (Id : E) return B;
5498 function String_Literal_Length (Id : E) return U;
5499 function String_Literal_Low_Bound (Id : E) return N;
5500 function Suppress_Elaboration_Warnings (Id : E) return B;
5501 function Suppress_Init_Proc (Id : E) return B;
5502 function Suppress_Style_Checks (Id : E) return B;
5503 function Task_Body_Procedure (Id : E) return N;
5504 function Treat_As_Volatile (Id : E) return B;
5505 function Underlying_Full_View (Id : E) return E;
5506 function Unset_Reference (Id : E) return N;
5507 function Uses_Sec_Stack (Id : E) return B;
5508 function Vax_Float (Id : E) return B;
5509 function Warnings_Off (Id : E) return B;
5510 function Was_Hidden (Id : E) return B;
5511 function Wrapped_Entity (Id : E) return E;
5513 -------------------------------
5514 -- Classification Attributes --
5515 -------------------------------
5517 -- These functions provide a convenient functional notation for testing
5518 -- whether an Ekind value belongs to a specified kind, for example the
5519 -- function Is_Elementary_Type tests if its argument is in Elementary_Kind.
5520 -- In some cases, the test is of an entity attribute (e.g. in the case of
5521 -- Is_Generic_Type where the Ekind does not provide the needed information)
5523 function Is_Access_Type (Id : E) return B;
5524 function Is_Array_Type (Id : E) return B;
5525 function Is_Class_Wide_Type (Id : E) return B;
5526 function Is_Composite_Type (Id : E) return B;
5527 function Is_Concurrent_Body (Id : E) return B;
5528 function Is_Concurrent_Record_Type (Id : E) return B;
5529 function Is_Concurrent_Type (Id : E) return B;
5530 function Is_Decimal_Fixed_Point_Type (Id : E) return B;
5531 function Is_Digits_Type (Id : E) return B;
5532 function Is_Discrete_Or_Fixed_Point_Type (Id : E) return B;
5533 function Is_Discrete_Type (Id : E) return B;
5534 function Is_Elementary_Type (Id : E) return B;
5535 function Is_Entry (Id : E) return B;
5536 function Is_Enumeration_Type (Id : E) return B;
5537 function Is_Fixed_Point_Type (Id : E) return B;
5538 function Is_Floating_Point_Type (Id : E) return B;
5539 function Is_Formal (Id : E) return B;
5540 function Is_Formal_Subprogram (Id : E) return B;
5541 function Is_Generic_Actual_Type (Id : E) return B;
5542 function Is_Generic_Unit (Id : E) return B;
5543 function Is_Generic_Type (Id : E) return B;
5544 function Is_Generic_Subprogram (Id : E) return B;
5545 function Is_Incomplete_Or_Private_Type (Id : E) return B;
5546 function Is_Integer_Type (Id : E) return B;
5547 function Is_Limited_Record (Id : E) return B;
5548 function Is_Modular_Integer_Type (Id : E) return B;
5549 function Is_Named_Number (Id : E) return B;
5550 function Is_Numeric_Type (Id : E) return B;
5551 function Is_Object (Id : E) return B;
5552 function Is_Ordinary_Fixed_Point_Type (Id : E) return B;
5553 function Is_Overloadable (Id : E) return B;
5554 function Is_Overriding_Operation (Id : E) return B;
5555 function Is_Private_Type (Id : E) return B;
5556 function Is_Protected_Type (Id : E) return B;
5557 function Is_Real_Type (Id : E) return B;
5558 function Is_Record_Type (Id : E) return B;
5559 function Is_Scalar_Type (Id : E) return B;
5560 function Is_Signed_Integer_Type (Id : E) return B;
5561 function Is_Subprogram (Id : E) return B;
5562 function Is_Task_Type (Id : E) return B;
5563 function Is_Type (Id : E) return B;
5565 -------------------------------------
5566 -- Synthesized Attribute Functions --
5567 -------------------------------------
5569 -- The functions in this section synthesize attributes from the tree,
5570 -- so they do not correspond to defined fields in the entity itself.
5572 function Address_Clause (Id : E) return N;
5573 function Alignment_Clause (Id : E) return N;
5574 function Ancestor_Subtype (Id : E) return E;
5575 function Base_Type (Id : E) return E;
5576 function Constant_Value (Id : E) return N;
5577 function Declaration_Node (Id : E) return N;
5578 function Designated_Type (Id : E) return E;
5579 function Enclosing_Dynamic_Scope (Id : E) return E;
5580 function First_Component (Id : E) return E;
5581 function First_Discriminant (Id : E) return E;
5582 function First_Formal (Id : E) return E;
5583 function First_Stored_Discriminant (Id : E) return E;
5584 function First_Subtype (Id : E) return E;
5585 function Has_Attach_Handler (Id : E) return B;
5586 function Has_Entries (Id : E) return B;
5587 function Has_Foreign_Convention (Id : E) return B;
5588 function Has_Private_Ancestor (Id : E) return B;
5589 function Has_Private_Declaration (Id : E) return B;
5590 function Implementation_Base_Type (Id : E) return E;
5591 function Is_Always_Inlined (Id : E) return B;
5592 function Is_Boolean_Type (Id : E) return B;
5593 function Is_By_Copy_Type (Id : E) return B;
5594 function Is_By_Reference_Type (Id : E) return B;
5595 function Is_Derived_Type (Id : E) return B;
5596 function Is_Dynamic_Scope (Id : E) return B;
5597 function Is_Indefinite_Subtype (Id : E) return B;
5598 function Is_Limited_Type (Id : E) return B;
5599 function Is_Package_Or_Generic_Package (Id : E) return B;
5600 function Is_Protected_Private (Id : E) return B;
5601 function Is_Protected_Record_Type (Id : E) return B;
5602 function Is_Return_By_Reference_Type (Id : E) return B;
5603 function Is_String_Type (Id : E) return B;
5604 function Is_Task_Record_Type (Id : E) return B;
5605 function Is_Wrapper_Package (Id : E) return B;
5606 function Next_Component (Id : E) return E;
5607 function Next_Discriminant (Id : E) return E;
5608 function Next_Formal (Id : E) return E;
5609 function Next_Formal_With_Extras (Id : E) return E;
5610 function Next_Literal (Id : E) return E;
5611 function Next_Stored_Discriminant (Id : E) return E;
5612 function Number_Dimensions (Id : E) return Pos;
5613 function Number_Discriminants (Id : E) return Pos;
5614 function Number_Entries (Id : E) return Nat;
5615 function Number_Formals (Id : E) return Pos;
5616 function Parameter_Mode (Id : E) return Formal_Kind;
5617 function Root_Type (Id : E) return E;
5618 function Scope_Depth_Set (Id : E) return B;
5619 function Size_Clause (Id : E) return N;
5620 function Stream_Size_Clause (Id : E) return N;
5621 function First_Tag_Component (Id : E) return E;
5622 function Next_Tag_Component (Id : E) return E;
5623 function Type_High_Bound (Id : E) return N;
5624 function Type_Low_Bound (Id : E) return N;
5625 function Underlying_Type (Id : E) return E;
5627 ----------------------------------------------
5628 -- Type Representation Attribute Predicates --
5629 ----------------------------------------------
5631 -- These predicates test the setting of the indicated attribute. If
5632 -- the value has been set, then Known is True, and Unknown is False.
5633 -- If no value is set, then Known is False and Unknown is True. The
5634 -- Known_Static predicate is true only if the value is set (Known)
5635 -- and is set to a compile time known value. Note that in the case
5636 -- of Alignment and Normalized_First_Bit, dynamic values are not
5637 -- possible, so we do not need a separate Known_Static calls in
5638 -- these cases. The not set (unknown values are as follows:
5640 -- Alignment Uint_0 or No_Uint
5641 -- Component_Size Uint_0 or No_Uint
5642 -- Component_Bit_Offset No_Uint
5643 -- Digits_Value Uint_0 or No_Uint
5644 -- Esize Uint_0 or No_Uint
5645 -- Normalized_First_Bit No_Uint
5646 -- Normalized_Position No_Uint
5647 -- Normalized_Position_Max No_Uint
5648 -- RM_Size Uint_0 or No_Uint
5650 -- It would be cleaner to use No_Uint in all these cases, but historically
5651 -- we chose to use Uint_0 at first, and the change over will take time ???
5652 -- This is particularly true for the RM_Size field, where a value of zero
5653 -- is legitimate. We deal with this by a nasty kludge that knows that the
5654 -- value is always known static for discrete types (and no other types can
5655 -- have an RM_Size value of zero).
5657 function Known_Alignment (E : Entity_Id) return B;
5658 function Known_Component_Bit_Offset (E : Entity_Id) return B;
5659 function Known_Component_Size (E : Entity_Id) return B;
5660 function Known_Esize (E : Entity_Id) return B;
5661 function Known_Normalized_First_Bit (E : Entity_Id) return B;
5662 function Known_Normalized_Position (E : Entity_Id) return B;
5663 function Known_Normalized_Position_Max (E : Entity_Id) return B;
5664 function Known_RM_Size (E : Entity_Id) return B;
5666 function Known_Static_Component_Bit_Offset (E : Entity_Id) return B;
5667 function Known_Static_Component_Size (E : Entity_Id) return B;
5668 function Known_Static_Esize (E : Entity_Id) return B;
5669 function Known_Static_Normalized_First_Bit (E : Entity_Id) return B;
5670 function Known_Static_Normalized_Position (E : Entity_Id) return B;
5671 function Known_Static_Normalized_Position_Max (E : Entity_Id) return B;
5672 function Known_Static_RM_Size (E : Entity_Id) return B;
5674 function Unknown_Alignment (E : Entity_Id) return B;
5675 function Unknown_Component_Bit_Offset (E : Entity_Id) return B;
5676 function Unknown_Component_Size (E : Entity_Id) return B;
5677 function Unknown_Esize (E : Entity_Id) return B;
5678 function Unknown_Normalized_First_Bit (E : Entity_Id) return B;
5679 function Unknown_Normalized_Position (E : Entity_Id) return B;
5680 function Unknown_Normalized_Position_Max (E : Entity_Id) return B;
5681 function Unknown_RM_Size (E : Entity_Id) return B;
5683 ------------------------------
5684 -- Attribute Set Procedures --
5685 ------------------------------
5687 procedure Set_Abstract_Interfaces (Id : E; V : L);
5688 procedure Set_Accept_Address (Id : E; V : L);
5689 procedure Set_Access_Disp_Table (Id : E; V : L);
5690 procedure Set_Actual_Subtype (Id : E; V : E);
5691 procedure Set_Address_Taken (Id : E; V : B := True);
5692 procedure Set_Alias (Id : E; V : E);
5693 procedure Set_Abstract_Interface_Alias (Id : E; V : E);
5694 procedure Set_Alignment (Id : E; V : U);
5695 procedure Set_Associated_Final_Chain (Id : E; V : E);
5696 procedure Set_Associated_Formal_Package (Id : E; V : E);
5697 procedure Set_Associated_Node_For_Itype (Id : E; V : N);
5698 procedure Set_Associated_Storage_Pool (Id : E; V : E);
5699 procedure Set_Barrier_Function (Id : E; V : N);
5700 procedure Set_Block_Node (Id : E; V : N);
5701 procedure Set_Body_Entity (Id : E; V : E);
5702 procedure Set_Body_Needed_For_SAL (Id : E; V : B := True);
5703 procedure Set_CR_Discriminant (Id : E; V : E);
5704 procedure Set_C_Pass_By_Copy (Id : E; V : B := True);
5705 procedure Set_Can_Never_Be_Null (Id : E; V : B := True);
5706 procedure Set_Checks_May_Be_Suppressed (Id : E; V : B := True);
5707 procedure Set_Class_Wide_Type (Id : E; V : E);
5708 procedure Set_Cloned_Subtype (Id : E; V : E);
5709 procedure Set_Component_Alignment (Id : E; V : C);
5710 procedure Set_Component_Bit_Offset (Id : E; V : U);
5711 procedure Set_Component_Clause (Id : E; V : N);
5712 procedure Set_Component_Size (Id : E; V : U);
5713 procedure Set_Component_Type (Id : E; V : E);
5714 procedure Set_Corresponding_Concurrent_Type (Id : E; V : E);
5715 procedure Set_Corresponding_Discriminant (Id : E; V : E);
5716 procedure Set_Corresponding_Equality (Id : E; V : E);
5717 procedure Set_Corresponding_Record_Type (Id : E; V : E);
5718 procedure Set_Corresponding_Remote_Type (Id : E; V : E);
5719 procedure Set_Current_Use_Clause (Id : E; V : E);
5720 procedure Set_Current_Value (Id : E; V : N);
5721 procedure Set_Debug_Info_Off (Id : E; V : B := True);
5722 procedure Set_Debug_Renaming_Link (Id : E; V : E);
5723 procedure Set_DTC_Entity (Id : E; V : E);
5724 procedure Set_DT_Entry_Count (Id : E; V : U);
5725 procedure Set_DT_Offset_To_Top_Func (Id : E; V : E);
5726 procedure Set_DT_Position (Id : E; V : U);
5727 procedure Set_Default_Expr_Function (Id : E; V : E);
5728 procedure Set_Default_Expressions_Processed (Id : E; V : B := True);
5729 procedure Set_Default_Value (Id : E; V : N);
5730 procedure Set_Delay_Cleanups (Id : E; V : B := True);
5731 procedure Set_Delay_Subprogram_Descriptors (Id : E; V : B := True);
5732 procedure Set_Delta_Value (Id : E; V : R);
5733 procedure Set_Dependent_Instances (Id : E; V : L);
5734 procedure Set_Depends_On_Private (Id : E; V : B := True);
5735 procedure Set_Digits_Value (Id : E; V : U);
5736 procedure Set_Directly_Designated_Type (Id : E; V : E);
5737 procedure Set_Discard_Names (Id : E; V : B := True);
5738 procedure Set_Discriminal (Id : E; V : E);
5739 procedure Set_Discriminal_Link (Id : E; V : E);
5740 procedure Set_Discriminant_Checking_Func (Id : E; V : E);
5741 procedure Set_Discriminant_Constraint (Id : E; V : L);
5742 procedure Set_Discriminant_Default_Value (Id : E; V : N);
5743 procedure Set_Discriminant_Number (Id : E; V : U);
5744 procedure Set_Elaboration_Entity (Id : E; V : E);
5745 procedure Set_Elaboration_Entity_Required (Id : E; V : B := True);
5746 procedure Set_Enclosing_Scope (Id : E; V : E);
5747 procedure Set_Entry_Accepted (Id : E; V : B := True);
5748 procedure Set_Entry_Bodies_Array (Id : E; V : E);
5749 procedure Set_Entry_Cancel_Parameter (Id : E; V : E);
5750 procedure Set_Entry_Component (Id : E; V : E);
5751 procedure Set_Entry_Formal (Id : E; V : E);
5752 procedure Set_Entry_Index_Constant (Id : E; V : E);
5753 procedure Set_Entry_Parameters_Type (Id : E; V : E);
5754 procedure Set_Enum_Pos_To_Rep (Id : E; V : E);
5755 procedure Set_Enumeration_Pos (Id : E; V : U);
5756 procedure Set_Enumeration_Rep (Id : E; V : U);
5757 procedure Set_Enumeration_Rep_Expr (Id : E; V : N);
5758 procedure Set_Equivalent_Type (Id : E; V : E);
5759 procedure Set_Esize (Id : E; V : U);
5760 procedure Set_Exception_Code (Id : E; V : U);
5761 procedure Set_Extra_Accessibility (Id : E; V : E);
5762 procedure Set_Extra_Constrained (Id : E; V : E);
5763 procedure Set_Extra_Formal (Id : E; V : E);
5764 procedure Set_Finalization_Chain_Entity (Id : E; V : E);
5765 procedure Set_Finalize_Storage_Only (Id : E; V : B := True);
5766 procedure Set_First_Entity (Id : E; V : E);
5767 procedure Set_First_Index (Id : E; V : N);
5768 procedure Set_First_Literal (Id : E; V : E);
5769 procedure Set_First_Optional_Parameter (Id : E; V : E);
5770 procedure Set_First_Private_Entity (Id : E; V : E);
5771 procedure Set_First_Rep_Item (Id : E; V : N);
5772 procedure Set_Freeze_Node (Id : E; V : N);
5773 procedure Set_From_With_Type (Id : E; V : B := True);
5774 procedure Set_Full_View (Id : E; V : E);
5775 procedure Set_Function_Returns_With_DSP (Id : E; V : B := True);
5776 procedure Set_Generic_Homonym (Id : E; V : E);
5777 procedure Set_Generic_Renamings (Id : E; V : L);
5778 procedure Set_Handler_Records (Id : E; V : S);
5779 procedure Set_Has_Aliased_Components (Id : E; V : B := True);
5780 procedure Set_Has_Alignment_Clause (Id : E; V : B := True);
5781 procedure Set_Has_All_Calls_Remote (Id : E; V : B := True);
5782 procedure Set_Has_Anon_Block_Suffix (Id : E; V : B := True);
5783 procedure Set_Has_Atomic_Components (Id : E; V : B := True);
5784 procedure Set_Has_Biased_Representation (Id : E; V : B := True);
5785 procedure Set_Has_Completion (Id : E; V : B := True);
5786 procedure Set_Has_Completion_In_Body (Id : E; V : B := True);
5787 procedure Set_Has_Complex_Representation (Id : E; V : B := True);
5788 procedure Set_Has_Component_Size_Clause (Id : E; V : B := True);
5789 procedure Set_Has_Constrained_Partial_View (Id : E; V : B := True);
5790 procedure Set_Has_Contiguous_Rep (Id : E; V : B := True);
5791 procedure Set_Has_Controlled_Component (Id : E; V : B := True);
5792 procedure Set_Has_Controlling_Result (Id : E; V : B := True);
5793 procedure Set_Has_Convention_Pragma (Id : E; V : B := True);
5794 procedure Set_Has_Delayed_Freeze (Id : E; V : B := True);
5795 procedure Set_Has_Discriminants (Id : E; V : B := True);
5796 procedure Set_Has_Enumeration_Rep_Clause (Id : E; V : B := True);
5797 procedure Set_Has_Exit (Id : E; V : B := True);
5798 procedure Set_Has_External_Tag_Rep_Clause (Id : E; V : B := True);
5799 procedure Set_Has_Fully_Qualified_Name (Id : E; V : B := True);
5800 procedure Set_Has_Gigi_Rep_Item (Id : E; V : B := True);
5801 procedure Set_Has_Homonym (Id : E; V : B := True);
5802 procedure Set_Has_Machine_Radix_Clause (Id : E; V : B := True);
5803 procedure Set_Has_Master_Entity (Id : E; V : B := True);
5804 procedure Set_Has_Missing_Return (Id : E; V : B := True);
5805 procedure Set_Has_Nested_Block_With_Handler (Id : E; V : B := True);
5806 procedure Set_Has_Forward_Instantiation (Id : E; V : B := True);
5807 procedure Set_Has_Non_Standard_Rep (Id : E; V : B := True);
5808 procedure Set_Has_Object_Size_Clause (Id : E; V : B := True);
5809 procedure Set_Has_Per_Object_Constraint (Id : E; V : B := True);
5810 procedure Set_Has_Persistent_BSS (Id : E; V : B := True);
5811 procedure Set_Has_Pragma_Controlled (Id : E; V : B := True);
5812 procedure Set_Has_Pragma_Elaborate_Body (Id : E; V : B := True);
5813 procedure Set_Has_Pragma_Inline (Id : E; V : B := True);
5814 procedure Set_Has_Pragma_Pack (Id : E; V : B := True);
5815 procedure Set_Has_Pragma_Pure (Id : E; V : B := True);
5816 procedure Set_Has_Pragma_Pure_Function (Id : E; V : B := True);
5817 procedure Set_Has_Pragma_Unreferenced (Id : E; V : B := True);
5818 procedure Set_Has_Primitive_Operations (Id : E; V : B := True);
5819 procedure Set_Has_Private_Declaration (Id : E; V : B := True);
5820 procedure Set_Has_Qualified_Name (Id : E; V : B := True);
5821 procedure Set_Has_Record_Rep_Clause (Id : E; V : B := True);
5822 procedure Set_Has_Recursive_Call (Id : E; V : B := True);
5823 procedure Set_Has_Size_Clause (Id : E; V : B := True);
5824 procedure Set_Has_Small_Clause (Id : E; V : B := True);
5825 procedure Set_Has_Specified_Layout (Id : E; V : B := True);
5826 procedure Set_Has_Specified_Stream_Input (Id : E; V : B := True);
5827 procedure Set_Has_Specified_Stream_Output (Id : E; V : B := True);
5828 procedure Set_Has_Specified_Stream_Read (Id : E; V : B := True);
5829 procedure Set_Has_Specified_Stream_Write (Id : E; V : B := True);
5830 procedure Set_Has_Storage_Size_Clause (Id : E; V : B := True);
5831 procedure Set_Has_Stream_Size_Clause (Id : E; V : B := True);
5832 procedure Set_Has_Subprogram_Descriptor (Id : E; V : B := True);
5833 procedure Set_Has_Task (Id : E; V : B := True);
5834 procedure Set_Has_Unchecked_Union (Id : E; V : B := True);
5835 procedure Set_Has_Unknown_Discriminants (Id : E; V : B := True);
5836 procedure Set_Has_Volatile_Components (Id : E; V : B := True);
5837 procedure Set_Has_Xref_Entry (Id : E; V : B := True);
5838 procedure Set_Hiding_Loop_Variable (Id : E; V : E);
5839 procedure Set_Homonym (Id : E; V : E);
5840 procedure Set_In_Package_Body (Id : E; V : B := True);
5841 procedure Set_In_Private_Part (Id : E; V : B := True);
5842 procedure Set_In_Use (Id : E; V : B := True);
5843 procedure Set_Inner_Instances (Id : E; V : L);
5844 procedure Set_Interface_Name (Id : E; V : N);
5845 procedure Set_Is_AST_Entry (Id : E; V : B := True);
5846 procedure Set_Is_Abstract (Id : E; V : B := True);
5847 procedure Set_Is_Local_Anonymous_Access (Id : E; V : B := True);
5848 procedure Set_Is_Access_Constant (Id : E; V : B := True);
5849 procedure Set_Is_Ada_2005 (Id : E; V : B := True);
5850 procedure Set_Is_Aliased (Id : E; V : B := True);
5851 procedure Set_Is_Asynchronous (Id : E; V : B := True);
5852 procedure Set_Is_Atomic (Id : E; V : B := True);
5853 procedure Set_Is_Bit_Packed_Array (Id : E; V : B := True);
5854 procedure Set_Is_CPP_Class (Id : E; V : B := True);
5855 procedure Set_Is_Called (Id : E; V : B := True);
5856 procedure Set_Is_Character_Type (Id : E; V : B := True);
5857 procedure Set_Is_Child_Unit (Id : E; V : B := True);
5858 procedure Set_Is_Class_Wide_Equivalent_Type (Id : E; V : B := True);
5859 procedure Set_Is_Compilation_Unit (Id : E; V : B := True);
5860 procedure Set_Is_Completely_Hidden (Id : E; V : B := True);
5861 procedure Set_Is_Concurrent_Record_Type (Id : E; V : B := True);
5862 procedure Set_Is_Constr_Subt_For_UN_Aliased (Id : E; V : B := True);
5863 procedure Set_Is_Constr_Subt_For_U_Nominal (Id : E; V : B := True);
5864 procedure Set_Is_Constrained (Id : E; V : B := True);
5865 procedure Set_Is_Constructor (Id : E; V : B := True);
5866 procedure Set_Is_Controlled (Id : E; V : B := True);
5867 procedure Set_Is_Controlling_Formal (Id : E; V : B := True);
5868 procedure Set_Is_Discrim_SO_Function (Id : E; V : B := True);
5869 procedure Set_Is_Dispatching_Operation (Id : E; V : B := True);
5870 procedure Set_Is_Eliminated (Id : E; V : B := True);
5871 procedure Set_Is_Entry_Formal (Id : E; V : B := True);
5872 procedure Set_Is_Exported (Id : E; V : B := True);
5873 procedure Set_Is_First_Subtype (Id : E; V : B := True);
5874 procedure Set_Is_For_Access_Subtype (Id : E; V : B := True);
5875 procedure Set_Is_Formal_Subprogram (Id : E; V : B := True);
5876 procedure Set_Is_Frozen (Id : E; V : B := True);
5877 procedure Set_Is_Generic_Actual_Type (Id : E; V : B := True);
5878 procedure Set_Is_Generic_Instance (Id : E; V : B := True);
5879 procedure Set_Is_Generic_Type (Id : E; V : B := True);
5880 procedure Set_Is_Hidden (Id : E; V : B := True);
5881 procedure Set_Is_Hidden_Open_Scope (Id : E; V : B := True);
5882 procedure Set_Is_Immediately_Visible (Id : E; V : B := True);
5883 procedure Set_Is_Imported (Id : E; V : B := True);
5884 procedure Set_Is_Inlined (Id : E; V : B := True);
5885 procedure Set_Is_Interface (Id : E; V : B := True);
5886 procedure Set_Is_Instantiated (Id : E; V : B := True);
5887 procedure Set_Is_Internal (Id : E; V : B := True);
5888 procedure Set_Is_Interrupt_Handler (Id : E; V : B := True);
5889 procedure Set_Is_Intrinsic_Subprogram (Id : E; V : B := True);
5890 procedure Set_Is_Itype (Id : E; V : B := True);
5891 procedure Set_Is_Known_Non_Null (Id : E; V : B := True);
5892 procedure Set_Is_Known_Null (Id : E; V : B := True);
5893 procedure Set_Is_Known_Valid (Id : E; V : B := True);
5894 procedure Set_Is_Limited_Composite (Id : E; V : B := True);
5895 procedure Set_Is_Limited_Interface (Id : E; V : B := True);
5896 procedure Set_Is_Limited_Record (Id : E; V : B := True);
5897 procedure Set_Is_Machine_Code_Subprogram (Id : E; V : B := True);
5898 procedure Set_Is_Non_Static_Subtype (Id : E; V : B := True);
5899 procedure Set_Is_Null_Init_Proc (Id : E; V : B := True);
5900 procedure Set_Is_Obsolescent (Id : E; V : B := True);
5901 procedure Set_Is_Optional_Parameter (Id : E; V : B := True);
5902 procedure Set_Is_Overriding_Operation (Id : E; V : B := True);
5903 procedure Set_Is_Package_Body_Entity (Id : E; V : B := True);
5904 procedure Set_Is_Packed (Id : E; V : B := True);
5905 procedure Set_Is_Packed_Array_Type (Id : E; V : B := True);
5906 procedure Set_Is_Potentially_Use_Visible (Id : E; V : B := True);
5907 procedure Set_Is_Preelaborated (Id : E; V : B := True);
5908 procedure Set_Is_Primitive_Wrapper (Id : E; V : B := True);
5909 procedure Set_Is_Private_Composite (Id : E; V : B := True);
5910 procedure Set_Is_Private_Descendant (Id : E; V : B := True);
5911 procedure Set_Is_Protected_Interface (Id : E; V : B := True);
5912 procedure Set_Is_Public (Id : E; V : B := True);
5913 procedure Set_Is_Pure (Id : E; V : B := True);
5914 procedure Set_Is_Pure_Unit_Access_Type (Id : E; V : B := True);
5915 procedure Set_Is_Remote_Call_Interface (Id : E; V : B := True);
5916 procedure Set_Is_Remote_Types (Id : E; V : B := True);
5917 procedure Set_Is_Renaming_Of_Object (Id : E; V : B := True);
5918 procedure Set_Is_Shared_Passive (Id : E; V : B := True);
5919 procedure Set_Is_Statically_Allocated (Id : E; V : B := True);
5920 procedure Set_Is_Synchronized_Interface (Id : E; V : B := True);
5921 procedure Set_Is_Tag (Id : E; V : B := True);
5922 procedure Set_Is_Tagged_Type (Id : E; V : B := True);
5923 procedure Set_Is_Task_Interface (Id : E; V : B := True);
5924 procedure Set_Is_Thread_Body (Id : E; V : B := True);
5925 procedure Set_Is_True_Constant (Id : E; V : B := True);
5926 procedure Set_Is_Unchecked_Union (Id : E; V : B := True);
5927 procedure Set_Is_Unsigned_Type (Id : E; V : B := True);
5928 procedure Set_Is_VMS_Exception (Id : E; V : B := True);
5929 procedure Set_Is_Valued_Procedure (Id : E; V : B := True);
5930 procedure Set_Is_Visible_Child_Unit (Id : E; V : B := True);
5931 procedure Set_Is_Volatile (Id : E; V : B := True);
5932 procedure Set_Itype_Printed (Id : E; V : B := True);
5933 procedure Set_Kill_Elaboration_Checks (Id : E; V : B := True);
5934 procedure Set_Kill_Range_Checks (Id : E; V : B := True);
5935 procedure Set_Kill_Tag_Checks (Id : E; V : B := True);
5936 procedure Set_Last_Entity (Id : E; V : E);
5937 procedure Set_Limited_View (Id : E; V : E);
5938 procedure Set_Lit_Indexes (Id : E; V : E);
5939 procedure Set_Lit_Strings (Id : E; V : E);
5940 procedure Set_Machine_Radix_10 (Id : E; V : B := True);
5941 procedure Set_Master_Id (Id : E; V : E);
5942 procedure Set_Materialize_Entity (Id : E; V : B := True);
5943 procedure Set_Mechanism (Id : E; V : M);
5944 procedure Set_Modulus (Id : E; V : U);
5945 procedure Set_Must_Be_On_Byte_Boundary (Id : E; V : B := True);
5946 procedure Set_Needs_Debug_Info (Id : E; V : B := True);
5947 procedure Set_Needs_No_Actuals (Id : E; V : B := True);
5948 procedure Set_Never_Set_In_Source (Id : E; V : B := True);
5949 procedure Set_Next_Inlined_Subprogram (Id : E; V : E);
5950 procedure Set_No_Pool_Assigned (Id : E; V : B := True);
5951 procedure Set_No_Return (Id : E; V : B := True);
5952 procedure Set_No_Strict_Aliasing (Id : E; V : B := True);
5953 procedure Set_Non_Binary_Modulus (Id : E; V : B := True);
5954 procedure Set_Non_Limited_View (Id : E; V : E);
5955 procedure Set_Nonzero_Is_True (Id : E; V : B := True);
5956 procedure Set_Normalized_First_Bit (Id : E; V : U);
5957 procedure Set_Normalized_Position (Id : E; V : U);
5958 procedure Set_Normalized_Position_Max (Id : E; V : U);
5959 procedure Set_Object_Ref (Id : E; V : E);
5960 procedure Set_Obsolescent_Warning (Id : E; V : N);
5961 procedure Set_Original_Access_Type (Id : E; V : E);
5962 procedure Set_Original_Array_Type (Id : E; V : E);
5963 procedure Set_Original_Record_Component (Id : E; V : E);
5964 procedure Set_Overridden_Operation (Id : E; V : E);
5965 procedure Set_Package_Instantiation (Id : E; V : N);
5966 procedure Set_Packed_Array_Type (Id : E; V : E);
5967 procedure Set_Parent_Subtype (Id : E; V : E);
5968 procedure Set_Primitive_Operations (Id : E; V : L);
5969 procedure Set_Prival (Id : E; V : E);
5970 procedure Set_Privals_Chain (Id : E; V : L);
5971 procedure Set_Private_Dependents (Id : E; V : L);
5972 procedure Set_Private_View (Id : E; V : N);
5973 procedure Set_Protected_Body_Subprogram (Id : E; V : E);
5974 procedure Set_Protected_Formal (Id : E; V : E);
5975 procedure Set_Protected_Operation (Id : E; V : N);
5976 procedure Set_RM_Size (Id : E; V : U);
5977 procedure Set_Reachable (Id : E; V : B := True);
5978 procedure Set_Referenced (Id : E; V : B := True);
5979 procedure Set_Referenced_As_LHS (Id : E; V : B := True);
5980 procedure Set_Referenced_Object (Id : E; V : N);
5981 procedure Set_Register_Exception_Call (Id : E; V : N);
5982 procedure Set_Related_Array_Object (Id : E; V : E);
5983 procedure Set_Related_Instance (Id : E; V : E);
5984 procedure Set_Renamed_Entity (Id : E; V : N);
5985 procedure Set_Renamed_Object (Id : E; V : N);
5986 procedure Set_Renaming_Map (Id : E; V : U);
5987 procedure Set_Return_Present (Id : E; V : B := True);
5988 procedure Set_Returns_By_Ref (Id : E; V : B := True);
5989 procedure Set_Reverse_Bit_Order (Id : E; V : B := True);
5990 procedure Set_Scalar_Range (Id : E; V : N);
5991 procedure Set_Scale_Value (Id : E; V : U);
5992 procedure Set_Scope_Depth_Value (Id : E; V : U);
5993 procedure Set_Sec_Stack_Needed_For_Return (Id : E; V : B := True);
5994 procedure Set_Shadow_Entities (Id : E; V : S);
5995 procedure Set_Shared_Var_Assign_Proc (Id : E; V : E);
5996 procedure Set_Shared_Var_Read_Proc (Id : E; V : E);
5997 procedure Set_Size_Check_Code (Id : E; V : N);
5998 procedure Set_Size_Depends_On_Discriminant (Id : E; V : B := True);
5999 procedure Set_Size_Known_At_Compile_Time (Id : E; V : B := True);
6000 procedure Set_Small_Value (Id : E; V : R);
6001 procedure Set_Spec_Entity (Id : E; V : E);
6002 procedure Set_Storage_Size_Variable (Id : E; V : E);
6003 procedure Set_Stored_Constraint (Id : E; V : L);
6004 procedure Set_Strict_Alignment (Id : E; V : B := True);
6005 procedure Set_String_Literal_Length (Id : E; V : U);
6006 procedure Set_String_Literal_Low_Bound (Id : E; V : N);
6007 procedure Set_Suppress_Elaboration_Warnings (Id : E; V : B := True);
6008 procedure Set_Suppress_Init_Proc (Id : E; V : B := True);
6009 procedure Set_Suppress_Style_Checks (Id : E; V : B := True);
6010 procedure Set_Task_Body_Procedure (Id : E; V : N);
6011 procedure Set_Treat_As_Volatile (Id : E; V : B := True);
6012 procedure Set_Underlying_Full_View (Id : E; V : E);
6013 procedure Set_Unset_Reference (Id : E; V : N);
6014 procedure Set_Uses_Sec_Stack (Id : E; V : B := True);
6015 procedure Set_Vax_Float (Id : E; V : B := True);
6016 procedure Set_Warnings_Off (Id : E; V : B := True);
6017 procedure Set_Was_Hidden (Id : E; V : B := True);
6018 procedure Set_Wrapped_Entity (Id : E; V : E);
6020 -----------------------------------
6021 -- Field Initialization Routines --
6022 -----------------------------------
6024 -- These routines are overloadings of some of the above Set procedures
6025 -- where the argument is normally a Uint. The overloadings take an Int
6026 -- parameter instead, and appropriately convert it. There are also
6027 -- versions that implicitly initialize to the appropriate "not set"
6028 -- value. The not set (unknown) values are as follows:
6030 -- Alignment Uint_0
6031 -- Component_Size Uint_0
6032 -- Component_Bit_Offset No_Uint
6033 -- Digits_Value Uint_0
6034 -- Esize Uint_0
6035 -- Normalized_First_Bit No_Uint
6036 -- Normalized_Position No_Uint
6037 -- Normalized_Position_Max No_Uint
6038 -- RM_Size Uint_0
6040 -- It would be cleaner to use No_Uint in all these cases, but historically
6041 -- we chose to use Uint_0 at first, and the change over will take time ???
6042 -- This is particularly true for the RM_Size field, where a value of zero
6043 -- is legitimate and causes some kludges around the code.
6045 procedure Init_Alignment (Id : E; V : Int);
6046 procedure Init_Component_Size (Id : E; V : Int);
6047 procedure Init_Component_Bit_Offset (Id : E; V : Int);
6048 procedure Init_Digits_Value (Id : E; V : Int);
6049 procedure Init_Esize (Id : E; V : Int);
6050 procedure Init_Normalized_First_Bit (Id : E; V : Int);
6051 procedure Init_Normalized_Position (Id : E; V : Int);
6052 procedure Init_Normalized_Position_Max (Id : E; V : Int);
6053 procedure Init_RM_Size (Id : E; V : Int);
6055 procedure Init_Alignment (Id : E);
6056 procedure Init_Component_Size (Id : E);
6057 procedure Init_Component_Bit_Offset (Id : E);
6058 procedure Init_Digits_Value (Id : E);
6059 procedure Init_Esize (Id : E);
6060 procedure Init_Normalized_First_Bit (Id : E);
6061 procedure Init_Normalized_Position (Id : E);
6062 procedure Init_Normalized_Position_Max (Id : E);
6063 procedure Init_RM_Size (Id : E);
6065 procedure Init_Size_Align (Id : E);
6066 -- This procedure initializes both size fields and the alignment
6067 -- field to all be Unknown.
6069 procedure Init_Size (Id : E; V : Int);
6070 -- Initialize both the Esize and RM_Size fields of E to V
6072 procedure Init_Component_Location (Id : E);
6073 -- Initializes all fields describing the location of a component
6074 -- (Normalized_Position, Component_Bit_Offset, Normalized_First_Bit,
6075 -- Normalized_Position_Max, Esize) to all be Unknown.
6077 ---------------
6078 -- Iterators --
6079 ---------------
6081 -- The call to Next_xxx (obj) is equivalent to obj := Next_xxx (obj)
6082 -- We define the set of Proc_Next_xxx routines simply for the purposes
6083 -- of inlining them without necessarily inlining the function.
6085 procedure Proc_Next_Component (N : in out Node_Id);
6086 procedure Proc_Next_Discriminant (N : in out Node_Id);
6087 procedure Proc_Next_Formal (N : in out Node_Id);
6088 procedure Proc_Next_Formal_With_Extras (N : in out Node_Id);
6089 procedure Proc_Next_Index (N : in out Node_Id);
6090 procedure Proc_Next_Inlined_Subprogram (N : in out Node_Id);
6091 procedure Proc_Next_Literal (N : in out Node_Id);
6092 procedure Proc_Next_Stored_Discriminant (N : in out Node_Id);
6094 pragma Inline (Proc_Next_Component);
6095 pragma Inline (Proc_Next_Discriminant);
6096 pragma Inline (Proc_Next_Formal);
6097 pragma Inline (Proc_Next_Formal_With_Extras);
6098 pragma Inline (Proc_Next_Index);
6099 pragma Inline (Proc_Next_Inlined_Subprogram);
6100 pragma Inline (Proc_Next_Literal);
6101 pragma Inline (Proc_Next_Stored_Discriminant);
6103 procedure Next_Component (N : in out Node_Id)
6104 renames Proc_Next_Component;
6106 procedure Next_Discriminant (N : in out Node_Id)
6107 renames Proc_Next_Discriminant;
6109 procedure Next_Formal (N : in out Node_Id)
6110 renames Proc_Next_Formal;
6112 procedure Next_Formal_With_Extras (N : in out Node_Id)
6113 renames Proc_Next_Formal_With_Extras;
6115 procedure Next_Index (N : in out Node_Id)
6116 renames Proc_Next_Index;
6118 procedure Next_Inlined_Subprogram (N : in out Node_Id)
6119 renames Proc_Next_Inlined_Subprogram;
6121 procedure Next_Literal (N : in out Node_Id)
6122 renames Proc_Next_Literal;
6124 procedure Next_Stored_Discriminant (N : in out Node_Id)
6125 renames Proc_Next_Stored_Discriminant;
6127 ----------------------------------------------
6128 -- Subprograms for Accessing Rep Item Chain --
6129 ----------------------------------------------
6131 -- The First_Rep_Item field of every entity points to a linked list
6132 -- (linked through Next_Rep_Item) of representation pragmas and
6133 -- attribute definition clauses that apply to the item. Note that
6134 -- in the case of types, it is assumed that any such rep items for
6135 -- a base type also apply to all subtypes. This is implemented by
6136 -- having the chain for subtypes link onto the chain for the base
6137 -- type, so that any new entries for the subtype are added at the
6138 -- start of the chain.
6140 function Get_Attribute_Definition_Clause
6141 (E : Entity_Id;
6142 Id : Attribute_Id) return Node_Id;
6143 -- Searches the Rep_Item chain for a given entity E, for an instance
6144 -- of an attribute definition clause with the given attribute Id. If
6145 -- found, the value returned is the N_Attribute_Definition_Clause node,
6146 -- otherwise Empty is returned.
6148 function Get_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Node_Id;
6149 -- Searches the Rep_Item chain for the given entity E, for an instance
6150 -- of a representation pragma with the given name Nam. If found then
6151 -- the value returned is the N_Pragma node, otherwise Empty is returned.
6153 function Has_Rep_Pragma (E : Entity_Id; Nam : Name_Id) return Boolean;
6154 -- Searches the Rep_Item chain for the given entity E, for an instance
6155 -- of representation pragma with the given name Nam. If found then True
6156 -- is returned, otherwise False indicates that no matching entry was found.
6158 function Has_Attribute_Definition_Clause
6159 (E : Entity_Id;
6160 Id : Attribute_Id) return Boolean;
6161 -- Searches the Rep_Item chain for a given entity E, for an instance
6162 -- of an attribute definition clause with the given attribute Id. If
6163 -- found, True is returned, otherwise False indicates that no matching
6164 -- entry was found.
6166 procedure Record_Rep_Item (E : Entity_Id; N : Node_Id);
6167 -- N is the node for either a representation pragma or an attribute
6168 -- definition clause that applies to entity E. This procedure links
6169 -- the node N onto the Rep_Item chain for entity E.
6171 -------------------------------
6172 -- Miscellaneous Subprograms --
6173 -------------------------------
6175 procedure Append_Entity (Id : Entity_Id; V : Entity_Id);
6176 -- Add an entity to the list of entities declared in the scope V
6178 function Is_Entity_Name (N : Node_Id) return Boolean;
6179 -- Test if the node N is the name of an entity (i.e. is an identifier,
6180 -- expanded name, or an attribute reference that returns an entity).
6182 function Next_Index (Id : Node_Id) return Node_Id;
6183 -- Given an index from a previous call to First_Index or Next_Index,
6184 -- returns a node representing the occurrence of the next index subtype,
6185 -- or Empty if there are no more index subtypes.
6187 function Scope_Depth (Id : Entity_Id) return Uint;
6188 -- Returns the scope depth value of the Id, unless the Id is a record
6189 -- type, in which case it returns the scope depth of the record scope.
6191 function Subtype_Kind (K : Entity_Kind) return Entity_Kind;
6192 -- Given an entity_kind K this function returns the entity_kind
6193 -- corresponding to subtype kind of the type represented by K. For
6194 -- example if K is E_Signed_Integer_Type then E_Signed_Integer_Subtype
6195 -- is returned. If K is already a subtype kind it itself is returned. An
6196 -- internal error is generated if no such correspondence exists for K.
6198 ----------------------------------
6199 -- Debugging Output Subprograms --
6200 ----------------------------------
6202 procedure Write_Entity_Flags (Id : Entity_Id; Prefix : String);
6203 -- Writes a series of entries giving a line for each flag that is
6204 -- set to True. Each line is prefixed by the given string
6206 procedure Write_Entity_Info (Id : Entity_Id; Prefix : String);
6207 -- A debugging procedure to write out information about an entity
6209 procedure Write_Field6_Name (Id : Entity_Id);
6210 procedure Write_Field7_Name (Id : Entity_Id);
6211 procedure Write_Field8_Name (Id : Entity_Id);
6212 procedure Write_Field9_Name (Id : Entity_Id);
6213 procedure Write_Field10_Name (Id : Entity_Id);
6214 procedure Write_Field11_Name (Id : Entity_Id);
6215 procedure Write_Field12_Name (Id : Entity_Id);
6216 procedure Write_Field13_Name (Id : Entity_Id);
6217 procedure Write_Field14_Name (Id : Entity_Id);
6218 procedure Write_Field15_Name (Id : Entity_Id);
6219 procedure Write_Field16_Name (Id : Entity_Id);
6220 procedure Write_Field17_Name (Id : Entity_Id);
6221 procedure Write_Field18_Name (Id : Entity_Id);
6222 procedure Write_Field19_Name (Id : Entity_Id);
6223 procedure Write_Field20_Name (Id : Entity_Id);
6224 procedure Write_Field21_Name (Id : Entity_Id);
6225 procedure Write_Field22_Name (Id : Entity_Id);
6226 procedure Write_Field23_Name (Id : Entity_Id);
6227 procedure Write_Field24_Name (Id : Entity_Id);
6228 procedure Write_Field25_Name (Id : Entity_Id);
6229 procedure Write_Field26_Name (Id : Entity_Id);
6230 procedure Write_Field27_Name (Id : Entity_Id);
6231 -- These routines are used to output a nice symbolic name for the given
6232 -- field, depending on the Ekind. No blanks or end of lines are output,
6233 -- just the characters of the field name.
6235 --------------------
6236 -- Inline Pragmas --
6237 --------------------
6239 -- Note that these inline pragmas are referenced by the XEINFO utility
6240 -- program in preparing the corresponding C header, and only those
6241 -- subprograms meeting the requirements documented in the section on
6242 -- XEINFO may be referenced in this section.
6244 pragma Inline (Abstract_Interfaces);
6245 pragma Inline (Accept_Address);
6246 pragma Inline (Access_Disp_Table);
6247 pragma Inline (Actual_Subtype);
6248 pragma Inline (Address_Taken);
6249 pragma Inline (Abstract_Interface_Alias);
6250 pragma Inline (Alias);
6251 pragma Inline (Alignment);
6252 pragma Inline (Associated_Final_Chain);
6253 pragma Inline (Associated_Formal_Package);
6254 pragma Inline (Associated_Node_For_Itype);
6255 pragma Inline (Associated_Storage_Pool);
6256 pragma Inline (Barrier_Function);
6257 pragma Inline (Block_Node);
6258 pragma Inline (Body_Entity);
6259 pragma Inline (Body_Needed_For_SAL);
6260 pragma Inline (CR_Discriminant);
6261 pragma Inline (C_Pass_By_Copy);
6262 pragma Inline (Can_Never_Be_Null);
6263 pragma Inline (Checks_May_Be_Suppressed);
6264 pragma Inline (Class_Wide_Type);
6265 pragma Inline (Cloned_Subtype);
6266 pragma Inline (Component_Bit_Offset);
6267 pragma Inline (Component_Clause);
6268 pragma Inline (Component_Size);
6269 pragma Inline (Component_Type);
6270 pragma Inline (Corresponding_Concurrent_Type);
6271 pragma Inline (Corresponding_Discriminant);
6272 pragma Inline (Corresponding_Equality);
6273 pragma Inline (Corresponding_Record_Type);
6274 pragma Inline (Corresponding_Remote_Type);
6275 pragma Inline (Current_Use_Clause);
6276 pragma Inline (Current_Value);
6277 pragma Inline (Debug_Info_Off);
6278 pragma Inline (Debug_Renaming_Link);
6279 pragma Inline (DTC_Entity);
6280 pragma Inline (DT_Entry_Count);
6281 pragma Inline (DT_Offset_To_Top_Func);
6282 pragma Inline (DT_Position);
6283 pragma Inline (Default_Expr_Function);
6284 pragma Inline (Default_Expressions_Processed);
6285 pragma Inline (Default_Value);
6286 pragma Inline (Delay_Cleanups);
6287 pragma Inline (Delay_Subprogram_Descriptors);
6288 pragma Inline (Delta_Value);
6289 pragma Inline (Dependent_Instances);
6290 pragma Inline (Depends_On_Private);
6291 pragma Inline (Digits_Value);
6292 pragma Inline (Directly_Designated_Type);
6293 pragma Inline (Discard_Names);
6294 pragma Inline (Discriminal);
6295 pragma Inline (Discriminal_Link);
6296 pragma Inline (Discriminant_Checking_Func);
6297 pragma Inline (Discriminant_Constraint);
6298 pragma Inline (Discriminant_Default_Value);
6299 pragma Inline (Discriminant_Number);
6300 pragma Inline (Elaboration_Entity);
6301 pragma Inline (Elaboration_Entity_Required);
6302 pragma Inline (Enclosing_Scope);
6303 pragma Inline (Entry_Accepted);
6304 pragma Inline (Entry_Bodies_Array);
6305 pragma Inline (Entry_Cancel_Parameter);
6306 pragma Inline (Entry_Component);
6307 pragma Inline (Entry_Formal);
6308 pragma Inline (Entry_Index_Constant);
6309 pragma Inline (Entry_Index_Type);
6310 pragma Inline (Entry_Parameters_Type);
6311 pragma Inline (Enum_Pos_To_Rep);
6312 pragma Inline (Enumeration_Pos);
6313 pragma Inline (Enumeration_Rep);
6314 pragma Inline (Enumeration_Rep_Expr);
6315 pragma Inline (Equivalent_Type);
6316 pragma Inline (Esize);
6317 pragma Inline (Exception_Code);
6318 pragma Inline (Extra_Accessibility);
6319 pragma Inline (Extra_Constrained);
6320 pragma Inline (Extra_Formal);
6321 pragma Inline (Finalization_Chain_Entity);
6322 pragma Inline (First_Entity);
6323 pragma Inline (First_Index);
6324 pragma Inline (First_Literal);
6325 pragma Inline (First_Optional_Parameter);
6326 pragma Inline (First_Private_Entity);
6327 pragma Inline (First_Rep_Item);
6328 pragma Inline (Freeze_Node);
6329 pragma Inline (From_With_Type);
6330 pragma Inline (Full_View);
6331 pragma Inline (Function_Returns_With_DSP);
6332 pragma Inline (Generic_Homonym);
6333 pragma Inline (Generic_Renamings);
6334 pragma Inline (Handler_Records);
6335 pragma Inline (Has_Aliased_Components);
6336 pragma Inline (Has_Alignment_Clause);
6337 pragma Inline (Has_All_Calls_Remote);
6338 pragma Inline (Has_Anon_Block_Suffix);
6339 pragma Inline (Has_Atomic_Components);
6340 pragma Inline (Has_Biased_Representation);
6341 pragma Inline (Has_Completion);
6342 pragma Inline (Has_Completion_In_Body);
6343 pragma Inline (Has_Complex_Representation);
6344 pragma Inline (Has_Component_Size_Clause);
6345 pragma Inline (Has_Constrained_Partial_View);
6346 pragma Inline (Has_Contiguous_Rep);
6347 pragma Inline (Has_Controlled_Component);
6348 pragma Inline (Has_Controlling_Result);
6349 pragma Inline (Has_Convention_Pragma);
6350 pragma Inline (Has_Delayed_Freeze);
6351 pragma Inline (Has_Discriminants);
6352 pragma Inline (Has_Enumeration_Rep_Clause);
6353 pragma Inline (Has_Exit);
6354 pragma Inline (Has_External_Tag_Rep_Clause);
6355 pragma Inline (Has_Fully_Qualified_Name);
6356 pragma Inline (Has_Gigi_Rep_Item);
6357 pragma Inline (Has_Homonym);
6358 pragma Inline (Has_Machine_Radix_Clause);
6359 pragma Inline (Has_Master_Entity);
6360 pragma Inline (Has_Missing_Return);
6361 pragma Inline (Has_Nested_Block_With_Handler);
6362 pragma Inline (Has_Forward_Instantiation);
6363 pragma Inline (Has_Non_Standard_Rep);
6364 pragma Inline (Has_Object_Size_Clause);
6365 pragma Inline (Has_Per_Object_Constraint);
6366 pragma Inline (Has_Persistent_BSS);
6367 pragma Inline (Has_Pragma_Controlled);
6368 pragma Inline (Has_Pragma_Elaborate_Body);
6369 pragma Inline (Has_Pragma_Inline);
6370 pragma Inline (Has_Pragma_Pack);
6371 pragma Inline (Has_Pragma_Pure);
6372 pragma Inline (Has_Pragma_Pure_Function);
6373 pragma Inline (Has_Pragma_Unreferenced);
6374 pragma Inline (Has_Primitive_Operations);
6375 pragma Inline (Has_Private_Declaration);
6376 pragma Inline (Has_Qualified_Name);
6377 pragma Inline (Has_Record_Rep_Clause);
6378 pragma Inline (Has_Recursive_Call);
6379 pragma Inline (Has_Size_Clause);
6380 pragma Inline (Has_Small_Clause);
6381 pragma Inline (Has_Specified_Layout);
6382 pragma Inline (Has_Specified_Stream_Input);
6383 pragma Inline (Has_Specified_Stream_Output);
6384 pragma Inline (Has_Specified_Stream_Read);
6385 pragma Inline (Has_Specified_Stream_Write);
6386 pragma Inline (Has_Storage_Size_Clause);
6387 pragma Inline (Has_Stream_Size_Clause);
6388 pragma Inline (Has_Subprogram_Descriptor);
6389 pragma Inline (Has_Task);
6390 pragma Inline (Has_Unchecked_Union);
6391 pragma Inline (Has_Unknown_Discriminants);
6392 pragma Inline (Has_Volatile_Components);
6393 pragma Inline (Has_Xref_Entry);
6394 pragma Inline (Hiding_Loop_Variable);
6395 pragma Inline (Homonym);
6396 pragma Inline (In_Package_Body);
6397 pragma Inline (In_Private_Part);
6398 pragma Inline (In_Use);
6399 pragma Inline (Inner_Instances);
6400 pragma Inline (Interface_Name);
6401 pragma Inline (Is_AST_Entry);
6402 pragma Inline (Is_Abstract);
6403 pragma Inline (Is_Local_Anonymous_Access);
6404 pragma Inline (Is_Access_Constant);
6405 pragma Inline (Is_Ada_2005);
6406 pragma Inline (Is_Access_Type);
6407 pragma Inline (Is_Aliased);
6408 pragma Inline (Is_Array_Type);
6409 pragma Inline (Is_Asynchronous);
6410 pragma Inline (Is_Atomic);
6411 pragma Inline (Is_Bit_Packed_Array);
6412 pragma Inline (Is_CPP_Class);
6413 pragma Inline (Is_Called);
6414 pragma Inline (Is_Character_Type);
6415 pragma Inline (Is_Child_Unit);
6416 pragma Inline (Is_Class_Wide_Equivalent_Type);
6417 pragma Inline (Is_Class_Wide_Type);
6418 pragma Inline (Is_Compilation_Unit);
6419 pragma Inline (Is_Completely_Hidden);
6420 pragma Inline (Is_Composite_Type);
6421 pragma Inline (Is_Concurrent_Body);
6422 pragma Inline (Is_Concurrent_Record_Type);
6423 pragma Inline (Is_Concurrent_Type);
6424 pragma Inline (Is_Constr_Subt_For_UN_Aliased);
6425 pragma Inline (Is_Constr_Subt_For_U_Nominal);
6426 pragma Inline (Is_Constrained);
6427 pragma Inline (Is_Constructor);
6428 pragma Inline (Is_Controlled);
6429 pragma Inline (Is_Controlling_Formal);
6430 pragma Inline (Is_Decimal_Fixed_Point_Type);
6431 pragma Inline (Is_Discrim_SO_Function);
6432 pragma Inline (Is_Digits_Type);
6433 pragma Inline (Is_Discrete_Or_Fixed_Point_Type);
6434 pragma Inline (Is_Discrete_Type);
6435 pragma Inline (Is_Dispatching_Operation);
6436 pragma Inline (Is_Elementary_Type);
6437 pragma Inline (Is_Eliminated);
6438 pragma Inline (Is_Entry);
6439 pragma Inline (Is_Entry_Formal);
6440 pragma Inline (Is_Enumeration_Type);
6441 pragma Inline (Is_Exported);
6442 pragma Inline (Is_First_Subtype);
6443 pragma Inline (Is_Fixed_Point_Type);
6444 pragma Inline (Is_Floating_Point_Type);
6445 pragma Inline (Is_For_Access_Subtype);
6446 pragma Inline (Is_Formal);
6447 pragma Inline (Is_Formal_Subprogram);
6448 pragma Inline (Is_Frozen);
6449 pragma Inline (Is_Generic_Actual_Type);
6450 pragma Inline (Is_Generic_Instance);
6451 pragma Inline (Is_Generic_Subprogram);
6452 pragma Inline (Is_Generic_Type);
6453 pragma Inline (Is_Generic_Unit);
6454 pragma Inline (Is_Hidden);
6455 pragma Inline (Is_Hidden_Open_Scope);
6456 pragma Inline (Is_Immediately_Visible);
6457 pragma Inline (Is_Imported);
6458 pragma Inline (Is_Incomplete_Or_Private_Type);
6459 pragma Inline (Is_Inlined);
6460 pragma Inline (Is_Interface);
6461 pragma Inline (Is_Instantiated);
6462 pragma Inline (Is_Integer_Type);
6463 pragma Inline (Is_Internal);
6464 pragma Inline (Is_Interrupt_Handler);
6465 pragma Inline (Is_Intrinsic_Subprogram);
6466 pragma Inline (Is_Itype);
6467 pragma Inline (Is_Known_Non_Null);
6468 pragma Inline (Is_Known_Null);
6469 pragma Inline (Is_Known_Valid);
6470 pragma Inline (Is_Limited_Composite);
6471 pragma Inline (Is_Limited_Interface);
6472 pragma Inline (Is_Limited_Record);
6473 pragma Inline (Is_Machine_Code_Subprogram);
6474 pragma Inline (Is_Modular_Integer_Type);
6475 pragma Inline (Is_Named_Number);
6476 pragma Inline (Is_Non_Static_Subtype);
6477 pragma Inline (Is_Null_Init_Proc);
6478 pragma Inline (Is_Obsolescent);
6479 pragma Inline (Is_Numeric_Type);
6480 pragma Inline (Is_Object);
6481 pragma Inline (Is_Optional_Parameter);
6482 pragma Inline (Is_Package_Body_Entity);
6483 pragma Inline (Is_Ordinary_Fixed_Point_Type);
6484 pragma Inline (Is_Overloadable);
6485 pragma Inline (Is_Overriding_Operation);
6486 pragma Inline (Is_Packed);
6487 pragma Inline (Is_Packed_Array_Type);
6488 pragma Inline (Is_Potentially_Use_Visible);
6489 pragma Inline (Is_Preelaborated);
6490 pragma Inline (Is_Primitive_Wrapper);
6491 pragma Inline (Is_Private_Composite);
6492 pragma Inline (Is_Private_Descendant);
6493 pragma Inline (Is_Private_Type);
6494 pragma Inline (Is_Protected_Interface);
6495 pragma Inline (Is_Protected_Type);
6496 pragma Inline (Is_Public);
6497 pragma Inline (Is_Pure);
6498 pragma Inline (Is_Pure_Unit_Access_Type);
6499 pragma Inline (Is_Real_Type);
6500 pragma Inline (Is_Record_Type);
6501 pragma Inline (Is_Remote_Call_Interface);
6502 pragma Inline (Is_Remote_Types);
6503 pragma Inline (Is_Renaming_Of_Object);
6504 pragma Inline (Is_Scalar_Type);
6505 pragma Inline (Is_Shared_Passive);
6506 pragma Inline (Is_Signed_Integer_Type);
6507 pragma Inline (Is_Statically_Allocated);
6508 pragma Inline (Is_Subprogram);
6509 pragma Inline (Is_Synchronized_Interface);
6510 pragma Inline (Is_Tag);
6511 pragma Inline (Is_Tagged_Type);
6512 pragma Inline (Is_Task_Interface);
6513 pragma Inline (Is_Thread_Body);
6514 pragma Inline (Is_True_Constant);
6515 pragma Inline (Is_Task_Type);
6516 pragma Inline (Is_Type);
6517 pragma Inline (Is_Unchecked_Union);
6518 pragma Inline (Is_Unsigned_Type);
6519 pragma Inline (Is_VMS_Exception);
6520 pragma Inline (Is_Valued_Procedure);
6521 pragma Inline (Is_Visible_Child_Unit);
6522 pragma Inline (Itype_Printed);
6523 pragma Inline (Kill_Elaboration_Checks);
6524 pragma Inline (Kill_Range_Checks);
6525 pragma Inline (Kill_Tag_Checks);
6526 pragma Inline (Last_Entity);
6527 pragma Inline (Limited_View);
6528 pragma Inline (Lit_Indexes);
6529 pragma Inline (Lit_Strings);
6530 pragma Inline (Machine_Radix_10);
6531 pragma Inline (Master_Id);
6532 pragma Inline (Materialize_Entity);
6533 pragma Inline (Mechanism);
6534 pragma Inline (Modulus);
6535 pragma Inline (Must_Be_On_Byte_Boundary);
6536 pragma Inline (Needs_Debug_Info);
6537 pragma Inline (Needs_No_Actuals);
6538 pragma Inline (Never_Set_In_Source);
6539 pragma Inline (Next_Index);
6540 pragma Inline (Next_Inlined_Subprogram);
6541 pragma Inline (Next_Literal);
6542 pragma Inline (No_Pool_Assigned);
6543 pragma Inline (No_Return);
6544 pragma Inline (No_Strict_Aliasing);
6545 pragma Inline (Non_Binary_Modulus);
6546 pragma Inline (Non_Limited_View);
6547 pragma Inline (Nonzero_Is_True);
6548 pragma Inline (Normalized_First_Bit);
6549 pragma Inline (Normalized_Position);
6550 pragma Inline (Normalized_Position_Max);
6551 pragma Inline (Object_Ref);
6552 pragma Inline (Obsolescent_Warning);
6553 pragma Inline (Original_Access_Type);
6554 pragma Inline (Original_Array_Type);
6555 pragma Inline (Original_Record_Component);
6556 pragma Inline (Overridden_Operation);
6557 pragma Inline (Package_Instantiation);
6558 pragma Inline (Packed_Array_Type);
6559 pragma Inline (Parameter_Mode);
6560 pragma Inline (Parent_Subtype);
6561 pragma Inline (Primitive_Operations);
6562 pragma Inline (Prival);
6563 pragma Inline (Privals_Chain);
6564 pragma Inline (Private_Dependents);
6565 pragma Inline (Private_View);
6566 pragma Inline (Protected_Body_Subprogram);
6567 pragma Inline (Protected_Formal);
6568 pragma Inline (Protected_Operation);
6569 pragma Inline (RM_Size);
6570 pragma Inline (Reachable);
6571 pragma Inline (Referenced);
6572 pragma Inline (Referenced_As_LHS);
6573 pragma Inline (Referenced_Object);
6574 pragma Inline (Register_Exception_Call);
6575 pragma Inline (Related_Array_Object);
6576 pragma Inline (Related_Instance);
6577 pragma Inline (Renamed_Entity);
6578 pragma Inline (Renamed_Object);
6579 pragma Inline (Renaming_Map);
6580 pragma Inline (Return_Present);
6581 pragma Inline (Returns_By_Ref);
6582 pragma Inline (Reverse_Bit_Order);
6583 pragma Inline (Scalar_Range);
6584 pragma Inline (Scale_Value);
6585 pragma Inline (Scope_Depth_Value);
6586 pragma Inline (Sec_Stack_Needed_For_Return);
6587 pragma Inline (Shadow_Entities);
6588 pragma Inline (Shared_Var_Assign_Proc);
6589 pragma Inline (Shared_Var_Read_Proc);
6590 pragma Inline (Size_Check_Code);
6591 pragma Inline (Size_Depends_On_Discriminant);
6592 pragma Inline (Size_Known_At_Compile_Time);
6593 pragma Inline (Small_Value);
6594 pragma Inline (Spec_Entity);
6595 pragma Inline (Storage_Size_Variable);
6596 pragma Inline (Stored_Constraint);
6597 pragma Inline (Strict_Alignment);
6598 pragma Inline (String_Literal_Length);
6599 pragma Inline (String_Literal_Low_Bound);
6600 pragma Inline (Suppress_Elaboration_Warnings);
6601 pragma Inline (Suppress_Init_Proc);
6602 pragma Inline (Suppress_Style_Checks);
6603 pragma Inline (Task_Body_Procedure);
6604 pragma Inline (Treat_As_Volatile);
6605 pragma Inline (Underlying_Full_View);
6606 pragma Inline (Unset_Reference);
6607 pragma Inline (Uses_Sec_Stack);
6608 pragma Inline (Vax_Float);
6609 pragma Inline (Warnings_Off);
6610 pragma Inline (Was_Hidden);
6611 pragma Inline (Wrapped_Entity);
6613 pragma Inline (Init_Alignment);
6614 pragma Inline (Init_Component_Bit_Offset);
6615 pragma Inline (Init_Component_Size);
6616 pragma Inline (Init_Digits_Value);
6617 pragma Inline (Init_Esize);
6618 pragma Inline (Init_RM_Size);
6620 pragma Inline (Set_Abstract_Interfaces);
6621 pragma Inline (Set_Accept_Address);
6622 pragma Inline (Set_Access_Disp_Table);
6623 pragma Inline (Set_Actual_Subtype);
6624 pragma Inline (Set_Address_Taken);
6625 pragma Inline (Set_Abstract_Interface_Alias);
6626 pragma Inline (Set_Alias);
6627 pragma Inline (Set_Alignment);
6628 pragma Inline (Set_Associated_Final_Chain);
6629 pragma Inline (Set_Associated_Formal_Package);
6630 pragma Inline (Set_Associated_Node_For_Itype);
6631 pragma Inline (Set_Associated_Storage_Pool);
6632 pragma Inline (Set_Barrier_Function);
6633 pragma Inline (Set_Block_Node);
6634 pragma Inline (Set_Body_Entity);
6635 pragma Inline (Set_Body_Needed_For_SAL);
6636 pragma Inline (Set_CR_Discriminant);
6637 pragma Inline (Set_C_Pass_By_Copy);
6638 pragma Inline (Set_Can_Never_Be_Null);
6639 pragma Inline (Set_Checks_May_Be_Suppressed);
6640 pragma Inline (Set_Class_Wide_Type);
6641 pragma Inline (Set_Cloned_Subtype);
6642 pragma Inline (Set_Component_Bit_Offset);
6643 pragma Inline (Set_Component_Clause);
6644 pragma Inline (Set_Component_Size);
6645 pragma Inline (Set_Component_Type);
6646 pragma Inline (Set_Corresponding_Concurrent_Type);
6647 pragma Inline (Set_Corresponding_Discriminant);
6648 pragma Inline (Set_Corresponding_Equality);
6649 pragma Inline (Set_Corresponding_Record_Type);
6650 pragma Inline (Set_Corresponding_Remote_Type);
6651 pragma Inline (Set_Current_Use_Clause);
6652 pragma Inline (Set_Current_Value);
6653 pragma Inline (Set_Debug_Info_Off);
6654 pragma Inline (Set_Debug_Renaming_Link);
6655 pragma Inline (Set_DTC_Entity);
6656 pragma Inline (Set_DT_Entry_Count);
6657 pragma Inline (Set_DT_Offset_To_Top_Func);
6658 pragma Inline (Set_DT_Position);
6659 pragma Inline (Set_Default_Expr_Function);
6660 pragma Inline (Set_Default_Expressions_Processed);
6661 pragma Inline (Set_Default_Value);
6662 pragma Inline (Set_Delay_Cleanups);
6663 pragma Inline (Set_Delay_Subprogram_Descriptors);
6664 pragma Inline (Set_Delta_Value);
6665 pragma Inline (Set_Dependent_Instances);
6666 pragma Inline (Set_Depends_On_Private);
6667 pragma Inline (Set_Digits_Value);
6668 pragma Inline (Set_Directly_Designated_Type);
6669 pragma Inline (Set_Discard_Names);
6670 pragma Inline (Set_Discriminal);
6671 pragma Inline (Set_Discriminal_Link);
6672 pragma Inline (Set_Discriminant_Checking_Func);
6673 pragma Inline (Set_Discriminant_Constraint);
6674 pragma Inline (Set_Discriminant_Default_Value);
6675 pragma Inline (Set_Discriminant_Number);
6676 pragma Inline (Set_Elaboration_Entity);
6677 pragma Inline (Set_Elaboration_Entity_Required);
6678 pragma Inline (Set_Enclosing_Scope);
6679 pragma Inline (Set_Entry_Accepted);
6680 pragma Inline (Set_Entry_Bodies_Array);
6681 pragma Inline (Set_Entry_Cancel_Parameter);
6682 pragma Inline (Set_Entry_Component);
6683 pragma Inline (Set_Entry_Formal);
6684 pragma Inline (Set_Entry_Parameters_Type);
6685 pragma Inline (Set_Enum_Pos_To_Rep);
6686 pragma Inline (Set_Enumeration_Pos);
6687 pragma Inline (Set_Enumeration_Rep);
6688 pragma Inline (Set_Enumeration_Rep_Expr);
6689 pragma Inline (Set_Equivalent_Type);
6690 pragma Inline (Set_Esize);
6691 pragma Inline (Set_Exception_Code);
6692 pragma Inline (Set_Extra_Accessibility);
6693 pragma Inline (Set_Extra_Constrained);
6694 pragma Inline (Set_Extra_Formal);
6695 pragma Inline (Set_Finalization_Chain_Entity);
6696 pragma Inline (Set_First_Entity);
6697 pragma Inline (Set_First_Index);
6698 pragma Inline (Set_First_Literal);
6699 pragma Inline (Set_First_Optional_Parameter);
6700 pragma Inline (Set_First_Private_Entity);
6701 pragma Inline (Set_First_Rep_Item);
6702 pragma Inline (Set_Freeze_Node);
6703 pragma Inline (Set_From_With_Type);
6704 pragma Inline (Set_Full_View);
6705 pragma Inline (Set_Function_Returns_With_DSP);
6706 pragma Inline (Set_Generic_Homonym);
6707 pragma Inline (Set_Generic_Renamings);
6708 pragma Inline (Set_Handler_Records);
6709 pragma Inline (Set_Has_Aliased_Components);
6710 pragma Inline (Set_Has_Alignment_Clause);
6711 pragma Inline (Set_Has_All_Calls_Remote);
6712 pragma Inline (Set_Has_Anon_Block_Suffix);
6713 pragma Inline (Set_Has_Atomic_Components);
6714 pragma Inline (Set_Has_Biased_Representation);
6715 pragma Inline (Set_Has_Completion);
6716 pragma Inline (Set_Has_Completion_In_Body);
6717 pragma Inline (Set_Has_Complex_Representation);
6718 pragma Inline (Set_Has_Component_Size_Clause);
6719 pragma Inline (Set_Has_Constrained_Partial_View);
6720 pragma Inline (Set_Has_Contiguous_Rep);
6721 pragma Inline (Set_Has_Controlled_Component);
6722 pragma Inline (Set_Has_Controlling_Result);
6723 pragma Inline (Set_Has_Convention_Pragma);
6724 pragma Inline (Set_Has_Delayed_Freeze);
6725 pragma Inline (Set_Has_Discriminants);
6726 pragma Inline (Set_Has_Enumeration_Rep_Clause);
6727 pragma Inline (Set_Has_Exit);
6728 pragma Inline (Set_Has_External_Tag_Rep_Clause);
6729 pragma Inline (Set_Has_Fully_Qualified_Name);
6730 pragma Inline (Set_Has_Gigi_Rep_Item);
6731 pragma Inline (Set_Has_Homonym);
6732 pragma Inline (Set_Has_Machine_Radix_Clause);
6733 pragma Inline (Set_Has_Master_Entity);
6734 pragma Inline (Set_Has_Missing_Return);
6735 pragma Inline (Set_Has_Nested_Block_With_Handler);
6736 pragma Inline (Set_Has_Forward_Instantiation);
6737 pragma Inline (Set_Has_Non_Standard_Rep);
6738 pragma Inline (Set_Has_Object_Size_Clause);
6739 pragma Inline (Set_Has_Per_Object_Constraint);
6740 pragma Inline (Set_Has_Persistent_BSS);
6741 pragma Inline (Set_Has_Pragma_Controlled);
6742 pragma Inline (Set_Has_Pragma_Elaborate_Body);
6743 pragma Inline (Set_Has_Pragma_Inline);
6744 pragma Inline (Set_Has_Pragma_Pack);
6745 pragma Inline (Set_Has_Pragma_Pure);
6746 pragma Inline (Set_Has_Pragma_Pure_Function);
6747 pragma Inline (Set_Has_Pragma_Unreferenced);
6748 pragma Inline (Set_Has_Primitive_Operations);
6749 pragma Inline (Set_Has_Private_Declaration);
6750 pragma Inline (Set_Has_Qualified_Name);
6751 pragma Inline (Set_Has_Record_Rep_Clause);
6752 pragma Inline (Set_Has_Recursive_Call);
6753 pragma Inline (Set_Has_Size_Clause);
6754 pragma Inline (Set_Has_Small_Clause);
6755 pragma Inline (Set_Has_Specified_Layout);
6756 pragma Inline (Set_Has_Specified_Stream_Input);
6757 pragma Inline (Set_Has_Specified_Stream_Output);
6758 pragma Inline (Set_Has_Specified_Stream_Read);
6759 pragma Inline (Set_Has_Specified_Stream_Write);
6760 pragma Inline (Set_Has_Storage_Size_Clause);
6761 pragma Inline (Set_Has_Subprogram_Descriptor);
6762 pragma Inline (Set_Has_Task);
6763 pragma Inline (Set_Has_Unchecked_Union);
6764 pragma Inline (Set_Has_Unknown_Discriminants);
6765 pragma Inline (Set_Has_Volatile_Components);
6766 pragma Inline (Set_Has_Xref_Entry);
6767 pragma Inline (Set_Hiding_Loop_Variable);
6768 pragma Inline (Set_Homonym);
6769 pragma Inline (Set_In_Package_Body);
6770 pragma Inline (Set_In_Private_Part);
6771 pragma Inline (Set_In_Use);
6772 pragma Inline (Set_Inner_Instances);
6773 pragma Inline (Set_Interface_Name);
6774 pragma Inline (Set_Is_AST_Entry);
6775 pragma Inline (Set_Is_Abstract);
6776 pragma Inline (Set_Is_Local_Anonymous_Access);
6777 pragma Inline (Set_Is_Access_Constant);
6778 pragma Inline (Set_Is_Ada_2005);
6779 pragma Inline (Set_Is_Aliased);
6780 pragma Inline (Set_Is_Asynchronous);
6781 pragma Inline (Set_Is_Atomic);
6782 pragma Inline (Set_Is_Bit_Packed_Array);
6783 pragma Inline (Set_Is_CPP_Class);
6784 pragma Inline (Set_Is_Called);
6785 pragma Inline (Set_Is_Character_Type);
6786 pragma Inline (Set_Is_Child_Unit);
6787 pragma Inline (Set_Is_Class_Wide_Equivalent_Type);
6788 pragma Inline (Set_Is_Compilation_Unit);
6789 pragma Inline (Set_Is_Completely_Hidden);
6790 pragma Inline (Set_Is_Concurrent_Record_Type);
6791 pragma Inline (Set_Is_Constr_Subt_For_U_Nominal);
6792 pragma Inline (Set_Is_Constr_Subt_For_UN_Aliased);
6793 pragma Inline (Set_Is_Constrained);
6794 pragma Inline (Set_Is_Constructor);
6795 pragma Inline (Set_Is_Controlled);
6796 pragma Inline (Set_Is_Controlling_Formal);
6797 pragma Inline (Set_Is_Discrim_SO_Function);
6798 pragma Inline (Set_Is_Dispatching_Operation);
6799 pragma Inline (Set_Is_Eliminated);
6800 pragma Inline (Set_Is_Entry_Formal);
6801 pragma Inline (Set_Is_Exported);
6802 pragma Inline (Set_Is_First_Subtype);
6803 pragma Inline (Set_Is_For_Access_Subtype);
6804 pragma Inline (Set_Is_Formal_Subprogram);
6805 pragma Inline (Set_Is_Frozen);
6806 pragma Inline (Set_Is_Generic_Actual_Type);
6807 pragma Inline (Set_Is_Generic_Instance);
6808 pragma Inline (Set_Is_Generic_Type);
6809 pragma Inline (Set_Is_Hidden);
6810 pragma Inline (Set_Is_Hidden_Open_Scope);
6811 pragma Inline (Set_Is_Immediately_Visible);
6812 pragma Inline (Set_Is_Imported);
6813 pragma Inline (Set_Is_Inlined);
6814 pragma Inline (Set_Is_Interface);
6815 pragma Inline (Set_Is_Instantiated);
6816 pragma Inline (Set_Is_Internal);
6817 pragma Inline (Set_Is_Interrupt_Handler);
6818 pragma Inline (Set_Is_Intrinsic_Subprogram);
6819 pragma Inline (Set_Is_Itype);
6820 pragma Inline (Set_Is_Known_Non_Null);
6821 pragma Inline (Set_Is_Known_Null);
6822 pragma Inline (Set_Is_Known_Valid);
6823 pragma Inline (Set_Is_Limited_Composite);
6824 pragma Inline (Set_Is_Limited_Interface);
6825 pragma Inline (Set_Is_Limited_Record);
6826 pragma Inline (Set_Is_Machine_Code_Subprogram);
6827 pragma Inline (Set_Is_Non_Static_Subtype);
6828 pragma Inline (Set_Is_Null_Init_Proc);
6829 pragma Inline (Set_Is_Obsolescent);
6830 pragma Inline (Set_Is_Optional_Parameter);
6831 pragma Inline (Set_Is_Overriding_Operation);
6832 pragma Inline (Set_Is_Package_Body_Entity);
6833 pragma Inline (Set_Is_Packed);
6834 pragma Inline (Set_Is_Packed_Array_Type);
6835 pragma Inline (Set_Is_Potentially_Use_Visible);
6836 pragma Inline (Set_Is_Preelaborated);
6837 pragma Inline (Set_Is_Primitive_Wrapper);
6838 pragma Inline (Set_Is_Private_Composite);
6839 pragma Inline (Set_Is_Private_Descendant);
6840 pragma Inline (Set_Is_Protected_Interface);
6841 pragma Inline (Set_Is_Public);
6842 pragma Inline (Set_Is_Pure);
6843 pragma Inline (Set_Is_Pure_Unit_Access_Type);
6844 pragma Inline (Set_Is_Remote_Call_Interface);
6845 pragma Inline (Set_Is_Remote_Types);
6846 pragma Inline (Set_Is_Renaming_Of_Object);
6847 pragma Inline (Set_Is_Shared_Passive);
6848 pragma Inline (Set_Is_Statically_Allocated);
6849 pragma Inline (Set_Is_Synchronized_Interface);
6850 pragma Inline (Set_Is_Tag);
6851 pragma Inline (Set_Is_Tagged_Type);
6852 pragma Inline (Set_Is_Task_Interface);
6853 pragma Inline (Set_Is_Thread_Body);
6854 pragma Inline (Set_Is_True_Constant);
6855 pragma Inline (Set_Is_Unchecked_Union);
6856 pragma Inline (Set_Is_Unsigned_Type);
6857 pragma Inline (Set_Is_VMS_Exception);
6858 pragma Inline (Set_Is_Valued_Procedure);
6859 pragma Inline (Set_Is_Visible_Child_Unit);
6860 pragma Inline (Set_Is_Volatile);
6861 pragma Inline (Set_Itype_Printed);
6862 pragma Inline (Set_Kill_Elaboration_Checks);
6863 pragma Inline (Set_Kill_Range_Checks);
6864 pragma Inline (Set_Kill_Tag_Checks);
6865 pragma Inline (Set_Last_Entity);
6866 pragma Inline (Set_Limited_View);
6867 pragma Inline (Set_Lit_Indexes);
6868 pragma Inline (Set_Lit_Strings);
6869 pragma Inline (Set_Machine_Radix_10);
6870 pragma Inline (Set_Master_Id);
6871 pragma Inline (Set_Materialize_Entity);
6872 pragma Inline (Set_Mechanism);
6873 pragma Inline (Set_Modulus);
6874 pragma Inline (Set_Must_Be_On_Byte_Boundary);
6875 pragma Inline (Set_Needs_Debug_Info);
6876 pragma Inline (Set_Needs_No_Actuals);
6877 pragma Inline (Set_Never_Set_In_Source);
6878 pragma Inline (Set_Next_Inlined_Subprogram);
6879 pragma Inline (Set_No_Pool_Assigned);
6880 pragma Inline (Set_No_Return);
6881 pragma Inline (Set_No_Strict_Aliasing);
6882 pragma Inline (Set_Non_Binary_Modulus);
6883 pragma Inline (Set_Non_Limited_View);
6884 pragma Inline (Set_Nonzero_Is_True);
6885 pragma Inline (Set_Normalized_First_Bit);
6886 pragma Inline (Set_Normalized_Position);
6887 pragma Inline (Set_Normalized_Position_Max);
6888 pragma Inline (Set_Object_Ref);
6889 pragma Inline (Set_Obsolescent_Warning);
6890 pragma Inline (Set_Original_Access_Type);
6891 pragma Inline (Set_Original_Array_Type);
6892 pragma Inline (Set_Original_Record_Component);
6893 pragma Inline (Set_Overridden_Operation);
6894 pragma Inline (Set_Package_Instantiation);
6895 pragma Inline (Set_Packed_Array_Type);
6896 pragma Inline (Set_Parent_Subtype);
6897 pragma Inline (Set_Primitive_Operations);
6898 pragma Inline (Set_Prival);
6899 pragma Inline (Set_Privals_Chain);
6900 pragma Inline (Set_Private_Dependents);
6901 pragma Inline (Set_Private_View);
6902 pragma Inline (Set_Protected_Body_Subprogram);
6903 pragma Inline (Set_Protected_Formal);
6904 pragma Inline (Set_Protected_Operation);
6905 pragma Inline (Set_RM_Size);
6906 pragma Inline (Set_Reachable);
6907 pragma Inline (Set_Referenced);
6908 pragma Inline (Set_Referenced_As_LHS);
6909 pragma Inline (Set_Referenced_Object);
6910 pragma Inline (Set_Register_Exception_Call);
6911 pragma Inline (Set_Related_Array_Object);
6912 pragma Inline (Set_Related_Instance);
6913 pragma Inline (Set_Renamed_Entity);
6914 pragma Inline (Set_Renamed_Object);
6915 pragma Inline (Set_Renaming_Map);
6916 pragma Inline (Set_Return_Present);
6917 pragma Inline (Set_Returns_By_Ref);
6918 pragma Inline (Set_Reverse_Bit_Order);
6919 pragma Inline (Set_Scalar_Range);
6920 pragma Inline (Set_Scale_Value);
6921 pragma Inline (Set_Scope_Depth_Value);
6922 pragma Inline (Set_Sec_Stack_Needed_For_Return);
6923 pragma Inline (Set_Shadow_Entities);
6924 pragma Inline (Set_Shared_Var_Assign_Proc);
6925 pragma Inline (Set_Shared_Var_Read_Proc);
6926 pragma Inline (Set_Size_Check_Code);
6927 pragma Inline (Set_Size_Depends_On_Discriminant);
6928 pragma Inline (Set_Size_Known_At_Compile_Time);
6929 pragma Inline (Set_Small_Value);
6930 pragma Inline (Set_Spec_Entity);
6931 pragma Inline (Set_Storage_Size_Variable);
6932 pragma Inline (Set_Stored_Constraint);
6933 pragma Inline (Set_Strict_Alignment);
6934 pragma Inline (Set_String_Literal_Length);
6935 pragma Inline (Set_String_Literal_Low_Bound);
6936 pragma Inline (Set_Suppress_Elaboration_Warnings);
6937 pragma Inline (Set_Suppress_Init_Proc);
6938 pragma Inline (Set_Suppress_Style_Checks);
6939 pragma Inline (Set_Task_Body_Procedure);
6940 pragma Inline (Set_Treat_As_Volatile);
6941 pragma Inline (Set_Underlying_Full_View);
6942 pragma Inline (Set_Unset_Reference);
6943 pragma Inline (Set_Uses_Sec_Stack);
6944 pragma Inline (Set_Vax_Float);
6945 pragma Inline (Set_Warnings_Off);
6946 pragma Inline (Set_Was_Hidden);
6947 pragma Inline (Set_Wrapped_Entity);
6949 -- END XEINFO INLINES
6951 -- The following Inline pragmas are *not* read by xeinfo when building
6952 -- the C version of this interface automatically (so the C version will
6953 -- end up making out of line calls). The pragma scan in xeinfo will be
6954 -- terminated on encountering the END XEINFO INLINES line. We inline
6955 -- things here which are small, but not of the canonical attribute
6956 -- access/set format that can be handled by xeinfo.
6958 pragma Inline (Is_Package_Or_Generic_Package);
6959 pragma Inline (Is_Volatile);
6960 pragma Inline (Is_Wrapper_Package);
6961 pragma Inline (Known_RM_Size);
6962 pragma Inline (Known_Static_Component_Bit_Offset);
6963 pragma Inline (Known_Static_RM_Size);
6964 pragma Inline (Scope_Depth);
6965 pragma Inline (Scope_Depth_Set);
6966 pragma Inline (Unknown_RM_Size);
6968 end Einfo;