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