| 1 |
------------------------------------------------------------------------------ |
| 2 |
-- -- |
| 3 |
-- GNAT COMPILER COMPONENTS -- |
| 4 |
-- -- |
| 5 |
-- E I N F O -- |
| 6 |
-- -- |
| 7 |
-- S p e c -- |
| 8 |
-- -- |
| 9 |
-- Copyright (C) 1992-2025, 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 3, 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 COPYING3. If not, go to -- |
| 19 |
-- http://www.gnu.org/licenses for a complete copy of the license. -- |
| 20 |
-- -- |
| 21 |
-- GNAT was originally developed by the GNAT team at New York University. -- |
| 22 |
-- Extensive contributions were provided by Ada Core Technologies Inc. -- |
| 23 |
-- -- |
| 24 |
------------------------------------------------------------------------------ |
| 25 |
|
| 26 |
pragma Warnings (Off); -- with/use clauses for children |
| 27 |
with Namet; use Namet; |
| 28 |
with Snames; use Snames; |
| 29 |
with Stand; use Stand; |
| 30 |
with Types; use Types; |
| 31 |
with Uintp; use Uintp; |
| 32 |
with Urealp; use Urealp; |
| 33 |
pragma Warnings (On); |
| 34 |
|
| 35 |
package Einfo is |
| 36 |
|
| 37 |
-- This package documents the annotations to the abstract syntax tree that are |
| 38 |
-- needed to support semantic processing of an Ada compilation. |
| 39 |
|
| 40 |
-- See the spec of Gen_IL.Gen for instructions on making changes to this file. |
| 41 |
-- Note that the official definition of what entities have what fields is in |
| 42 |
-- Gen_IL.Gen.Gen_Entities; if there is a discrepancy between that and the |
| 43 |
-- comments here, Gen_IL.Gen.Gen_Entities wins. |
| 44 |
|
| 45 |
-- These annotations are for the most part attributes of declared entities, |
| 46 |
-- and they correspond to conventional symbol table information. Other |
| 47 |
-- attributes include sets of meanings for overloaded names, possible |
| 48 |
-- types for overloaded expressions, flags to indicate deferred constants, |
| 49 |
-- incomplete types, etc. These attributes are stored in fields in |
| 50 |
-- tree nodes. |
| 51 |
|
| 52 |
-- There are two kinds of semantic information |
| 53 |
|
| 54 |
-- First, the tree nodes with the following Nkind values: |
| 55 |
|
| 56 |
-- N_Defining_Identifier |
| 57 |
-- N_Defining_Character_Literal |
| 58 |
-- N_Defining_Operator_Symbol |
| 59 |
|
| 60 |
-- are called Entities, and constitute the information that would often |
| 61 |
-- be stored separately in a symbol table. These nodes are all extended |
| 62 |
-- to provide extra space, and contain fields which depend on the entity |
| 63 |
-- kind, as defined by the contents of the Ekind field. The use of the |
| 64 |
-- Ekind field, and the associated fields in the entity, are defined |
| 65 |
-- in this package, as are the access functions to these fields. |
| 66 |
|
| 67 |
-- Second, in some cases semantic information is stored directly in other |
| 68 |
-- kinds of nodes, e.g. the Etype field, used to indicate the type of an |
| 69 |
-- expression. These fields are defined in the Sinfo package, but their |
| 70 |
-- full documentation is in the Einfo package specification. |
| 71 |
|
| 72 |
-- Declaration processing places information in the nodes of their defining |
| 73 |
-- identifiers. Name resolution places in all other occurrences of an |
| 74 |
-- identifier a pointer to the corresponding defining occurrence. |
| 75 |
|
| 76 |
---------------------------------- |
| 77 |
-- Handling of Type'Size Values -- |
| 78 |
---------------------------------- |
| 79 |
|
| 80 |
-- The Ada 95 RM contains some rather peculiar (to us) rules on the value |
| 81 |
-- of type'Size (see RM 13.3(55)). We have found that attempting to use |
| 82 |
-- these RM Size values generally, and in particular for determining the |
| 83 |
-- default size of objects, creates chaos, and major incompatibilities in |
| 84 |
-- existing code. |
| 85 |
|
| 86 |
-- The Ada 2022 RM acknowledges it and adopts GNAT's Object_Size attribute |
| 87 |
-- for determining the default size of objects, but stops short of applying |
| 88 |
-- it universally like GNAT. Indeed the notable exceptions are nonaliased |
| 89 |
-- stand-alone objects, which are not covered by Object_Size in Ada 2022. |
| 90 |
|
| 91 |
-- We proceed as follows, for discrete and fixed-point subtypes, we have |
| 92 |
-- two separate sizes for each subtype: |
| 93 |
|
| 94 |
-- The Object_Size, which is used for determining the default size of |
| 95 |
-- objects and components. This size value can be referred to using the |
| 96 |
-- Object_Size attribute. The phrase "is used" here means that it is |
| 97 |
-- the basis of the determination of the size. The back end is free to |
| 98 |
-- pad this up if necessary for efficiency, e.g. an 8-bit stand-alone |
| 99 |
-- character might be stored in 32 bits on a machine with no efficient |
| 100 |
-- byte access instructions such as the Alpha. |
| 101 |
|
| 102 |
-- The default rules for the value of Object_Size are as follows: |
| 103 |
|
| 104 |
-- The Object_Size for base subtypes reflect the natural hardware |
| 105 |
-- size in bits (see Ttypes and Cstand for integer types). For |
| 106 |
-- enumeration and fixed-point base subtypes have 8, 16, 32, or 64 |
| 107 |
-- bits for this size, depending on the range of values to be stored. |
| 108 |
|
| 109 |
-- The Object_Size of a subtype is the same as the Object_Size of |
| 110 |
-- the subtype from which it is obtained. |
| 111 |
|
| 112 |
-- The Object_Size of a derived base type is copied from the parent |
| 113 |
-- base type, and the Object_Size of a derived first subtype is copied |
| 114 |
-- from the parent first subtype. |
| 115 |
|
| 116 |
-- The Ada 2022 RM defined attribute Object_Size uses this implementation. |
| 117 |
|
| 118 |
-- The Value_Size, which is the number of bits required to store a value |
| 119 |
-- of the type. This size can be referred to using the Value_Size |
| 120 |
-- attribute. This value is used for determining how tightly to pack |
| 121 |
-- records or arrays with components of this type, and also affects |
| 122 |
-- the semantics of unchecked conversion (unchecked conversions where |
| 123 |
-- the Value_Size values differ generate a warning, and are potentially |
| 124 |
-- target dependent). |
| 125 |
|
| 126 |
-- The default rules for the value of Value_Size are as follows: |
| 127 |
|
| 128 |
-- The Value_Size for a base subtype is the minimum number of bits |
| 129 |
-- required to store all values of the type (including the sign bit |
| 130 |
-- only if negative values are possible). |
| 131 |
|
| 132 |
-- If a subtype statically matches the first subtype, then it has |
| 133 |
-- by default the same Value_Size as the first subtype. This is a |
| 134 |
-- consequence of RM 13.1(14) ("if two subtypes statically match, |
| 135 |
-- then their subtype-specific aspects are the same".) |
| 136 |
|
| 137 |
-- All other subtypes have a Value_Size corresponding to the minimum |
| 138 |
-- number of bits required to store all values of the subtype. For |
| 139 |
-- dynamic bounds, it is assumed that the value can range down or up |
| 140 |
-- to the corresponding bound of the ancestor. |
| 141 |
|
| 142 |
-- The Ada 95 RM defined attribute Size is identified with Value_Size. |
| 143 |
|
| 144 |
-- The Size attribute may be defined for a first-named subtype. This sets |
| 145 |
-- the Value_Size of the first-named subtype to the given value, and the |
| 146 |
-- Object_Size of this first-named subtype to the given value padded up |
| 147 |
-- to an appropriate boundary. It is a consequence of the default rules |
| 148 |
-- above that this Object_Size will apply to all further subtypes. On the |
| 149 |
-- other hand, Value_Size is affected only for the first subtype, any |
| 150 |
-- dynamic subtypes obtained from it directly, and any statically matching |
| 151 |
-- subtypes. The Value_Size of any other static subtypes is not affected. |
| 152 |
|
| 153 |
-- Value_Size and Object_Size may be explicitly set for any subtype using |
| 154 |
-- an attribute definition clause. Note that the use of such a clause can |
| 155 |
-- cause the RM 13.1(14) rule to be violated, in Ada 95 and 2022 for the |
| 156 |
-- Value_Size attribute, but only in Ada 95 for the Object_Size attribute. |
| 157 |
-- If access types reference aliased objects whose subtypes have differing |
| 158 |
-- Object_Size values as a result of explicit attribute definition clauses, |
| 159 |
-- then it is erroneous to convert from one access subtype to the other. |
| 160 |
|
| 161 |
-- At the implementation level, the Esize field stores the Object_Size |
| 162 |
-- and the RM_Size field stores the Value_Size (hence the value of the |
| 163 |
-- Size attribute, which, as noted above, is equivalent to Value_Size). |
| 164 |
|
| 165 |
-- To get a feel for the difference, consider the following examples (note |
| 166 |
-- that in each case the base is short_short_integer with a size of 8): |
| 167 |
|
| 168 |
-- Object_Size Value_Size |
| 169 |
|
| 170 |
-- type x1 is range 0..5; 8 3 |
| 171 |
|
| 172 |
-- type x2 is range 0..5; |
| 173 |
-- for x2'size use 12; 16 12 |
| 174 |
|
| 175 |
-- subtype x3 is x2 range 0 .. 3; 16 2 |
| 176 |
|
| 177 |
-- subtype x4 is x2'base range 0 .. 10; 8 4 |
| 178 |
|
| 179 |
-- dynamic : x2'Base range -64 .. +63; |
| 180 |
|
| 181 |
-- subtype x5 is x2 range 0 .. dynamic; 16 3* |
| 182 |
|
| 183 |
-- subtype x6 is x2'base range 0 .. dynamic; 8 7* |
| 184 |
|
| 185 |
-- Note: the entries marked * are not actually specified by the Ada 95 RM, |
| 186 |
-- but it seems in the spirit of the RM rules to allocate the minimum number |
| 187 |
-- of bits known to be large enough to hold the given range of values. |
| 188 |
|
| 189 |
-- So far, so good, but GNAT has to obey the RM rules, so the question is |
| 190 |
-- under what conditions must the RM Size be used. The following is a list |
| 191 |
-- of the occasions on which the RM Size must be used: |
| 192 |
|
| 193 |
-- Component size for packed arrays or records |
| 194 |
-- Value of the attribute Size for a type |
| 195 |
-- Warning about sizes not matching for unchecked conversion |
| 196 |
|
| 197 |
-- The RM_Size field keeps track of the RM Size as needed in these |
| 198 |
-- three situations. |
| 199 |
|
| 200 |
-- For elementary types other than discrete and fixed-point types, the |
| 201 |
-- Object_Size and Value_Size are the same (and equivalent to the RM |
| 202 |
-- attribute Size). Only Size may be specified for such types. |
| 203 |
|
| 204 |
-- For composite types, Object_Size and Value_Size are computed from their |
| 205 |
-- respective value for the type of each element as well as the layout. |
| 206 |
|
| 207 |
-- All size attributes are stored as Uint values. Negative values are used to |
| 208 |
-- reference GCC expressions for the case of non-static sizes, as explained |
| 209 |
-- in Repinfo. |
| 210 |
|
| 211 |
-------------------------------------- |
| 212 |
-- Delayed Freezing and Elaboration -- |
| 213 |
-------------------------------------- |
| 214 |
|
| 215 |
-- The flag Has_Delayed_Freeze indicates that an entity carries an explicit |
| 216 |
-- freeze node, which appears later in the expanded tree. |
| 217 |
|
| 218 |
-- a) The flag is used by the front end to trigger expansion activities which |
| 219 |
-- include the generation of that freeze node. Typically this happens at the |
| 220 |
-- end of the current compilation unit, or before the first subprogram body is |
| 221 |
-- encountered in the current unit. See units Freeze and Exp_Ch13 for details |
| 222 |
-- on the actions triggered by a freeze node, which include the construction |
| 223 |
-- of initialization procedures and dispatch tables. |
| 224 |
|
| 225 |
-- b) The flag is used by the back end to defer elaboration of the entity |
| 226 |
-- until its freeze node is seen. In the absence of an explicit freeze node, |
| 227 |
-- an entity is frozen (and elaborated) at the point of declaration. |
| 228 |
|
| 229 |
-- For object declarations, the flag is set when an address clause for the |
| 230 |
-- object is encountered. Legality checks on the address expression only take |
| 231 |
-- place at the freeze point of the object. In Ada 2012, the flag is also set |
| 232 |
-- when an address aspect for the object is encountered. |
| 233 |
|
| 234 |
-- Most types have an explicit freeze node, because they cannot be elaborated |
| 235 |
-- until all representation and operational items that apply to them have been |
| 236 |
-- analyzed. Private types and incomplete types have the flag set as well, as |
| 237 |
-- do task and protected types. |
| 238 |
|
| 239 |
-- Implicit base types created for type derivations, as well as class-wide |
| 240 |
-- types created for all tagged types, have the flag set. |
| 241 |
|
| 242 |
-- If a subprogram has an access parameter whose designated type is incomplete |
| 243 |
-- the subprogram has the flag set. |
| 244 |
|
| 245 |
----------------------- |
| 246 |
-- Entity Attributes -- |
| 247 |
----------------------- |
| 248 |
|
| 249 |
-- This section contains a complete list of the attributes that are defined |
| 250 |
-- on entities. Some attributes apply to all entities, others only to certain |
| 251 |
-- kinds of entities. In the latter case the attribute should only be set or |
| 252 |
-- accessed if the Ekind field indicates an appropriate entity. |
| 253 |
|
| 254 |
-- Attributes that apply to entities are either "stored" or "synthesized". |
| 255 |
-- Stored attributes are stored as fields in the entity node, and have |
| 256 |
-- automatically-generated access functions and Set_... procedures. |
| 257 |
-- Synthesized attributes are marked "(synthesized)" in the documentation |
| 258 |
-- below, and are computed as needed; these have only (hand-written) access |
| 259 |
-- functions. |
| 260 |
|
| 261 |
-- Note: in the case of Node, Uint, or Elist fields, there are cases where the |
| 262 |
-- same physical field is used for different purposes in different entities, |
| 263 |
-- so these access functions should only be referenced for the class of |
| 264 |
-- entities in which they are defined as being present. Flags are not |
| 265 |
-- overlapped in this way, but nevertheless as a matter of style and |
| 266 |
-- abstraction (which may or may not be checked by assertions in the |
| 267 |
-- body), this restriction should be observed for flag fields as well. |
| 268 |
|
| 269 |
-- Note: certain of the attributes on types apply only to base types, and |
| 270 |
-- are so noted by the notation [base type only]. These are cases where the |
| 271 |
-- attribute of any subtype is the same as the attribute of the base type. |
| 272 |
-- The attribute can be referenced on a subtype (and automatically retrieves |
| 273 |
-- the value from the base type). However, it is an error to try to set the |
| 274 |
-- attribute on other than the base type, and if assertions are enabled, |
| 275 |
-- an attempt to set the attribute on a subtype will raise an assert error. |
| 276 |
|
| 277 |
-- Other attributes are noted as applying to the [implementation base type |
| 278 |
-- only]. These are representation attributes which must always apply to a |
| 279 |
-- full non-private type, and where the attributes are always on the full |
| 280 |
-- type. The attribute can be referenced on a subtype (and automatically |
| 281 |
-- retrieves the value from the implementation base type). However, it is an |
| 282 |
-- error to try to set the attribute on other than the implementation base |
| 283 |
-- type. |
| 284 |
|
| 285 |
-- Other attributes are noted as applying to the [root type only]. The |
| 286 |
-- attribute can be referenced on a subtype (and automatically retrieves the |
| 287 |
-- value from the root type). However, it is an error to try to set the |
| 288 |
-- attribute on other than the root type. |
| 289 |
|
| 290 |
-- The definitive definition of what is [... type only] is in Gen_Entities. |
| 291 |
-- See calls to Sm passing Base_Type_Only, Impl_Base_Type_Only, or |
| 292 |
-- Root_Type_Only. |
| 293 |
|
| 294 |
-- Abstract_States |
| 295 |
-- Defined for E_Package entities. Contains a list of all the abstract |
| 296 |
-- states declared by the related package. |
| 297 |
|
| 298 |
-- Accept_Address |
| 299 |
-- Defined in entries. If an accept has a statement sequence, then an |
| 300 |
-- address variable is created, which is used to hold the address of the |
| 301 |
-- parameters, as passed by the runtime. Accept_Address holds an element |
| 302 |
-- list which represents a stack of entities for these address variables. |
| 303 |
-- The current entry is the top of the stack, which is the last element |
| 304 |
-- on the list. A stack is required to handle the case of nested select |
| 305 |
-- statements referencing the same entry. |
| 306 |
|
| 307 |
-- Access_Disp_Table [implementation base type only] |
| 308 |
-- Defined in E_Record_Type and E_Record_Subtype entities. Set in tagged |
| 309 |
-- types to point to their dispatch tables. The first two entities are |
| 310 |
-- associated with the primary dispatch table: 1) primary dispatch table |
| 311 |
-- with user-defined primitives 2) primary dispatch table with predefined |
| 312 |
-- primitives. For each interface type covered by the tagged type we also |
| 313 |
-- have: 3) secondary dispatch table with thunks of primitives covering |
| 314 |
-- user-defined interface primitives, 4) secondary dispatch table with |
| 315 |
-- thunks of predefined primitives, 5) secondary dispatch table with user |
| 316 |
-- defined primitives, and 6) secondary dispatch table with predefined |
| 317 |
-- primitives. The last entity of this list is an access type declaration |
| 318 |
-- used to expand dispatching calls through the primary dispatch table. |
| 319 |
-- For an untagged record, contains No_Elist. |
| 320 |
|
| 321 |
-- Access_Disp_Table_Elab_Flag [implementation base type only] |
| 322 |
-- Defined in E_Record_Type and E_Record_Subtype entities. Set in tagged |
| 323 |
-- types whose dispatch table elaboration must be completed at run time |
| 324 |
-- by the IP routine to point to its pending elaboration flag entity. |
| 325 |
-- This flag is needed when the elaboration of the dispatch table relies |
| 326 |
-- on attribute 'Position applied to an object of the type; it is used by |
| 327 |
-- the IP routine to avoid performing this elaboration twice. |
| 328 |
|
| 329 |
-- Access_Subprogram_Wrapper |
| 330 |
-- Entity created for access_to_subprogram types that have pre/post |
| 331 |
-- conditions. Wrapper subprogram is created when analyzing corresponding |
| 332 |
-- aspect, and inherits said aspects. Body of subprogram includes code |
| 333 |
-- to check contracts, and a direct call to the designated subprogram. |
| 334 |
-- The body is part of the freeze actions for the type. |
| 335 |
-- The Subprogram_Type created for the Access_To_Subprogram carries the |
| 336 |
-- Access_Subprogram_Wrapper for use in the expansion of indirect calls. |
| 337 |
|
| 338 |
-- Activation_Record_Component |
| 339 |
-- Defined for E_Variable, E_Constant, E_Loop_Parameter, and formal |
| 340 |
-- parameter entities. Used in Opt.Unnest_Subprogram_Mode, in which case |
| 341 |
-- a reference to an uplevel entity produces a corresponding component |
| 342 |
-- in the generated ARECnT activation record (Exp_Unst for details). |
| 343 |
|
| 344 |
-- Actual_Subtype |
| 345 |
-- Defined in variables, constants, and formal parameters. This is the |
| 346 |
-- subtype imposed by the value of the object, as opposed to its nominal |
| 347 |
-- subtype, which is imposed by the declaration. The actual subtype |
| 348 |
-- differs from the nominal one when the latter is indefinite (as in the |
| 349 |
-- case of an unconstrained formal parameter, or a variable declared |
| 350 |
-- with an unconstrained type and an initial value). The nominal subtype |
| 351 |
-- is the Etype entry for the entity. The Actual_Subtype field is set |
| 352 |
-- only if the actual subtype differs from the nominal subtype. If the |
| 353 |
-- actual and nominal subtypes are the same, then the Actual_Subtype |
| 354 |
-- field is Empty, and Etype indicates both types. |
| 355 |
-- |
| 356 |
-- For objects, the Actual_Subtype is set only if this is a discriminated |
| 357 |
-- type. For arrays, the bounds of the expression are obtained and the |
| 358 |
-- Etype of the object is directly the constrained subtype, except in the |
| 359 |
-- case of a return object that lives on the secondary stack where Etype |
| 360 |
-- is the nominal unconstrained subtype. This is rather irregular and the |
| 361 |
-- semantic checks that depend on the nominal subtype being unconstrained |
| 362 |
-- use flag Is_Constr_Subt_For_U_Nominal(qv). |
| 363 |
|
| 364 |
-- Address_Clause (synthesized) |
| 365 |
-- Applies to entries, objects and subprograms. Set if an address clause |
| 366 |
-- is present which references the object or subprogram and points to |
| 367 |
-- the N_Attribute_Definition_Clause node. Empty if no Address clause. |
| 368 |
-- The expression in the address clause is always a constant that is |
| 369 |
-- defined before the entity to which the address clause applies. |
| 370 |
-- Note: The backend references this field in E_Task_Type entities??? |
| 371 |
|
| 372 |
-- Address_Taken |
| 373 |
-- Defined in all entities. Set if the Address or Unrestricted_Access |
| 374 |
-- attribute is applied directly to the entity, i.e. the entity is the |
| 375 |
-- entity of the prefix of the attribute reference. Also set if the |
| 376 |
-- entity is the second argument of an Asm_Input or Asm_Output attribute, |
| 377 |
-- as the construct may entail taking its address. And also set if the |
| 378 |
-- entity is a subprogram and the Access or Unchecked_Access attribute is |
| 379 |
-- applied. Used by the backend to make sure that the address can be |
| 380 |
-- meaningfully taken, and also in the case of subprograms to control |
| 381 |
-- output of certain warnings. |
| 382 |
|
| 383 |
-- Aft_Value (synthesized) |
| 384 |
-- Applies to fixed-point types and subtypes. This yields the value of |
| 385 |
-- the Aft attribute for the type, i.e. the number of decimal digits |
| 386 |
-- needed after the decimal point to accommodate the delta of the type, |
| 387 |
-- unless the delta is greater than 0.1, in which case it is 1. |
| 388 |
|
| 389 |
-- Alias |
| 390 |
-- Defined in overloadable entities (literals, subprograms, entries) and |
| 391 |
-- subprograms that cover a primitive operation of an abstract interface |
| 392 |
-- (that is, subprograms with the Interface_Alias attribute). In case of |
| 393 |
-- overloaded entities it points to the parent subprogram of a derived |
| 394 |
-- subprogram. In case of abstract interface subprograms it points to the |
| 395 |
-- subprogram that covers the abstract interface primitive. Also used for |
| 396 |
-- a subprogram renaming, where it points to the renamed subprogram. For |
| 397 |
-- an inherited operation (of a type extension) that is overridden in a |
| 398 |
-- private part, the Alias is the overriding operation. In this fashion a |
| 399 |
-- call from outside the package ends up executing the new body even if |
| 400 |
-- non-dispatching, and a call from inside calls the overriding operation |
| 401 |
-- because it hides the implicit one. Alias is always empty for entries. |
| 402 |
|
| 403 |
-- Alignment |
| 404 |
-- Defined in entities for types and also in constants, variables |
| 405 |
-- (including exceptions where it refers to the static data allocated for |
| 406 |
-- an exception), loop parameters, and formal parameters. This indicates |
| 407 |
-- the desired alignment for a type, or the actual alignment for an |
| 408 |
-- object. A value of zero (Uint_0) indicates that the alignment has not |
| 409 |
-- been set yet. The alignment can be set by an explicit alignment |
| 410 |
-- clause, or set by the front-end in package Layout, or set by the |
| 411 |
-- back-end as part of the back-end back-annotation process. The |
| 412 |
-- alignment field is also defined in E_Exception entities, but there it |
| 413 |
-- is used only by the back-end for back annotation. |
| 414 |
|
| 415 |
-- Alignment_Clause (synthesized) |
| 416 |
-- Applies to all entities for types and objects. If an alignment |
| 417 |
-- attribute definition clause is present for the entity, then this |
| 418 |
-- function returns the N_Attribute_Definition clause that specifies the |
| 419 |
-- alignment. If no alignment clause applies to the type, then the call |
| 420 |
-- to this function returns Empty. Note that the call can return a |
| 421 |
-- non-Empty value even if Has_Alignment_Clause is not set (happens with |
| 422 |
-- subtype and derived type declarations). Note also that a record |
| 423 |
-- definition clause with an (obsolescent) mod clause is converted |
| 424 |
-- into an attribute definition clause for this purpose. |
| 425 |
|
| 426 |
-- Anonymous_Collections |
| 427 |
-- Defined in packages, subprograms, and subprogram bodies. Contains a |
| 428 |
-- list of anonymous finalization collections declared in this unit. |
| 429 |
-- The list acts as a mapping between collections and designated types. |
| 430 |
|
| 431 |
-- Anonymous_Designated_Type |
| 432 |
-- Defined in entities that represent anonymous finalization collections. |
| 433 |
-- Contains the designated type that is being serviced by the collection. |
| 434 |
|
| 435 |
-- Anonymous_Object |
| 436 |
-- Present in protected and task type entities. Contains the entity of |
| 437 |
-- the anonymous object created for a single protected or task type. |
| 438 |
|
| 439 |
-- Associated_Entity |
| 440 |
-- Defined in all entities. This field is similar to Associated_Node, but |
| 441 |
-- applied to entities. The attribute links an entity from the generic |
| 442 |
-- template with its corresponding entity in the analyzed generic copy. |
| 443 |
-- The global references mechanism relies on the Associated_Entity to |
| 444 |
-- infer the context. |
| 445 |
|
| 446 |
-- Associated_Formal_Package |
| 447 |
-- Defined in packages that are the actuals of formal_packages. Points |
| 448 |
-- to the entity in the declaration for the formal package. |
| 449 |
|
| 450 |
-- Associated_Node_For_Itype |
| 451 |
-- Defined in all type and subtype entities. Set non-Empty only for |
| 452 |
-- Itypes. Set to point to the associated node for the Itype, i.e. |
| 453 |
-- the node whose elaboration generated the Itype. This is used for |
| 454 |
-- copying trees, to determine whether or not to copy an Itype, and |
| 455 |
-- also for accessibility checks on anonymous access types. This |
| 456 |
-- node is typically an object declaration, component declaration, |
| 457 |
-- type or subtype declaration. |
| 458 |
|
| 459 |
-- For an access discriminant in a type declaration, the associated_ |
| 460 |
-- node_for_itype is the corresponding discriminant specification. |
| 461 |
|
| 462 |
-- For an access parameter it is the enclosing subprogram declaration. |
| 463 |
|
| 464 |
-- For an access_to_protected_subprogram parameter it is the declaration |
| 465 |
-- of the corresponding formal parameter. |
| 466 |
-- |
| 467 |
-- Itypes have no explicit declaration, and therefore are not attached to |
| 468 |
-- the tree: their Parent field is always empty. The Associated_Node_For_ |
| 469 |
-- Itype is the only way to determine the construct that leads to the |
| 470 |
-- creation of a given itype entity. |
| 471 |
|
| 472 |
-- Associated_Storage_Pool [root type only] |
| 473 |
-- Defined in simple and general access type entities. References the |
| 474 |
-- storage pool to be used for the corresponding collection. A value of |
| 475 |
-- Empty means that the default pool is to be used. This is defined |
| 476 |
-- only in the root type, since derived types must have the same pool |
| 477 |
-- as the parent type. |
| 478 |
|
| 479 |
-- Barrier_Function |
| 480 |
-- Defined in protected entries and entry families. This is the |
| 481 |
-- subprogram declaration for the body of the function that returns |
| 482 |
-- the value of the entry barrier. |
| 483 |
|
| 484 |
-- Base_Type (synthesized) |
| 485 |
-- Applies to all type and subtype entities. Returns the base type of a |
| 486 |
-- type or subtype. The base type of a type is the type itself. The base |
| 487 |
-- type of a subtype is the type that it constrains (which is always |
| 488 |
-- a type entity, not some other subtype). Note that in the case of a |
| 489 |
-- subtype of a private type, it is possible for the base type attribute |
| 490 |
-- to return a private type, even if the subtype to which it applies is |
| 491 |
-- non-private. See also Implementation_Base_Type. Note: it is allowed to |
| 492 |
-- apply Base_Type to other than a type, in which case it simply returns |
| 493 |
-- the entity unchanged. |
| 494 |
|
| 495 |
-- Block_Node |
| 496 |
-- Defined in block entities. Points to the identifier in the |
| 497 |
-- Block_Statement itself. Used when retrieving the block construct |
| 498 |
-- for finalization purposes, the block entity has an implicit label |
| 499 |
-- declaration in the enclosing declarative part, and has otherwise |
| 500 |
-- no direct connection in the tree with the block statement. The |
| 501 |
-- link is to the identifier (which is an occurrence of the entity) |
| 502 |
-- and not to the block_statement itself, because the statement may |
| 503 |
-- be rewritten, e.g. in the process of removing dead code. |
| 504 |
|
| 505 |
-- Body_Entity |
| 506 |
-- Defined in package and generic package entities, points to the |
| 507 |
-- corresponding package body entity if one is present. |
| 508 |
|
| 509 |
-- Body_Needed_For_SAL |
| 510 |
-- Defined in package and subprogram entities that are compilation |
| 511 |
-- units. Indicates that the source for the body must be included |
| 512 |
-- when the unit is part of a standalone library. |
| 513 |
|
| 514 |
-- Body_Needed_For_Inlining |
| 515 |
-- Defined in package entities that are compilation units. Used to |
| 516 |
-- determine whether the body unit needs to be compiled when the |
| 517 |
-- package declaration appears in the list of units to inline. A body |
| 518 |
-- is needed for inline processing if the unit declaration contains |
| 519 |
-- functions that carry pragma Inline or Inline_Always, or if it |
| 520 |
-- contains a generic unit that requires a body. |
| 521 |
-- |
| 522 |
-- Body_References |
| 523 |
-- Defined in abstract state entities. Contains an element list of |
| 524 |
-- references (identifiers) that appear in a package body whose spec |
| 525 |
-- defines the related state. If the body refines the said state, all |
| 526 |
-- references on this list are illegal due to the visible refinement. |
| 527 |
|
| 528 |
-- BIP_Initialization_Call |
| 529 |
-- Defined in constants and variables whose initial value is provided by |
| 530 |
-- a build-in-place function call. Contains the relocated build-in-place |
| 531 |
-- call after the expansion has decoupled the call from the object. This |
| 532 |
-- attribute is used by the finalization machinery to insert the call to |
| 533 |
-- the routine that attaches the object to the finalization master. |
| 534 |
|
| 535 |
-- C_Pass_By_Copy [implementation base type only] |
| 536 |
-- Defined in record types. Set if a pragma Convention for the record |
| 537 |
-- type specifies convention C_Pass_By_Copy. This convention name is |
| 538 |
-- treated as identical in all respects to convention C, except that |
| 539 |
-- if it is specified for a record type, then the C_Pass_By_Copy flag |
| 540 |
-- is set, and if a foreign convention subprogram has a formal of the |
| 541 |
-- corresponding type, then the parameter passing mechanism will be |
| 542 |
-- set to By_Copy (unless specifically overridden by an Import or |
| 543 |
-- Export pragma). |
| 544 |
|
| 545 |
-- Can_Never_Be_Null |
| 546 |
-- This flag is defined in all entities. It is set in an object which can |
| 547 |
-- never have a null value. Set for constant access values initialized to |
| 548 |
-- a non-null value. This is also set for all access parameters in Ada 83 |
| 549 |
-- and Ada 95 modes, and for access parameters that explicitly exclude |
| 550 |
-- null in Ada 2005 mode. |
| 551 |
-- |
| 552 |
-- This is used to avoid unnecessary resetting of the Is_Known_Non_Null |
| 553 |
-- flag for such entities. In Ada 2005 mode, this is also used when |
| 554 |
-- determining subtype conformance of subprogram profiles to ensure |
| 555 |
-- that two formals have the same null-exclusion status. |
| 556 |
-- |
| 557 |
-- This is also set on some access types, e.g. the Etype of the anonymous |
| 558 |
-- access type of a controlling formal. |
| 559 |
|
| 560 |
-- Can_Use_Internal_Rep [base type only] |
| 561 |
-- Defined in Access_Subprogram_Kind nodes. This flag is set by the |
| 562 |
-- front end and used by the backend. False means that the backend |
| 563 |
-- must represent the type in the same way as Convention-C types (and |
| 564 |
-- other foreign-convention types). On many targets, this means that |
| 565 |
-- the backend will use dynamically generated trampolines for nested |
| 566 |
-- subprograms. True means that the backend can represent the type in |
| 567 |
-- some internal way. On the aforementioned targets, this means that the |
| 568 |
-- backend will not use dynamically generated trampolines. This flag |
| 569 |
-- must be False if Has_Foreign_Convention is True; otherwise, the front |
| 570 |
-- end is free to set the policy. |
| 571 |
-- |
| 572 |
-- Setting this False in all cases corresponds to the traditional back |
| 573 |
-- end strategy, where all access-to-subprogram types are represented the |
| 574 |
-- same way, independent of the Convention. For further details, see also |
| 575 |
-- Always_Compatible_Rep in Targparm. |
| 576 |
-- |
| 577 |
-- Efficiency note: On targets that use dynamically generated |
| 578 |
-- trampolines, False generally favors efficiency of top-level |
| 579 |
-- subprograms, whereas True generally favors efficiency of nested |
| 580 |
-- ones. On other targets, this flag has little or no effect on |
| 581 |
-- efficiency. The front end should take this into account. In |
| 582 |
-- particular, pragma Favor_Top_Level gives a hint that the flag |
| 583 |
-- should be False. |
| 584 |
-- |
| 585 |
-- Note: We considered using Convention-C for this purpose, but we need |
| 586 |
-- this separate flag, because Convention-C implies that in the case of |
| 587 |
-- P'[Unrestricted_]Access, P also have convention C. Sometimes we want |
| 588 |
-- to have Can_Use_Internal_Rep False for an access type, but allow P to |
| 589 |
-- have convention Ada. |
| 590 |
|
| 591 |
-- Chars |
| 592 |
-- Defined in all entities. This field contains an entry into the names |
| 593 |
-- table that has the character string of the identifier, character |
| 594 |
-- literal or operator symbol. See Namet for further details. Note that |
| 595 |
-- throughout the processing of the front end, this name is the simple |
| 596 |
-- unqualified name. However, just before the backend is called, a call |
| 597 |
-- is made to Qualify_All_Entity_Names. This causes entity names to be |
| 598 |
-- qualified using the encoding described in exp_dbug.ads, and from that |
| 599 |
-- point (including post backend steps, e.g. cross-reference generation), |
| 600 |
-- the entities will contain the encoded qualified names. |
| 601 |
|
| 602 |
-- Checks_May_Be_Suppressed |
| 603 |
-- Defined in all entities. Set if a pragma Suppress or Unsuppress |
| 604 |
-- mentions the entity specifically in the second argument. If this flag |
| 605 |
-- is set the global and local suppress stacks must be consulted to |
| 606 |
-- determine if there actually is an active Suppress or Unsuppress pragma |
| 607 |
-- that applies to the entity. |
| 608 |
|
| 609 |
-- Class_Postconditions |
| 610 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 611 |
-- postconditions. Denotes the (and-then) expression built by merging |
| 612 |
-- inherited class-wide postconditions with its own class-wide |
| 613 |
-- postconditions. |
| 614 |
|
| 615 |
-- Class_Preconditions |
| 616 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 617 |
-- preconditions. Denotes the (or-else) expression built by merging |
| 618 |
-- inherited class-wide preconditions with its own class-wide |
| 619 |
-- preconditions. |
| 620 |
|
| 621 |
-- Class_Preconditions_Subprogram |
| 622 |
-- Defined on subprogram entities. Set on subprogram helpers and also on |
| 623 |
-- the indirect-call wrapper internally built for subprograms that have |
| 624 |
-- class-wide preconditions. References the subprogram that has the |
| 625 |
-- class-wide preconditions. |
| 626 |
|
| 627 |
-- Class_Wide_Type |
| 628 |
-- Defined in all type entities. For a tagged type or subtype, returns |
| 629 |
-- the corresponding implicitly declared class-wide type. For a |
| 630 |
-- class-wide type, returns itself. Set to Empty for untagged types. |
| 631 |
|
| 632 |
-- Class_Wide_Equivalent_Type |
| 633 |
-- Defined in all type entities. Used to store an internally generated |
| 634 |
-- class-wide equivalent type for an associated mutably tagged type. |
| 635 |
|
| 636 |
-- Cloned_Subtype |
| 637 |
-- Defined in E_Record_Subtype and E_Class_Wide_Subtype entities. |
| 638 |
-- Each such entity can either have a Discriminant_Constraint, in |
| 639 |
-- which case it represents a distinct type from the base type (and |
| 640 |
-- will have a list of components and discriminants in the list headed by |
| 641 |
-- First_Entity) or else no such constraint, in which case it will be a |
| 642 |
-- copy of the base type. |
| 643 |
-- |
| 644 |
-- o Each element of the list in First_Entity is copied from the base |
| 645 |
-- type; in that case, this field is Empty. |
| 646 |
-- |
| 647 |
-- o The list in First_Entity is shared with the base type; in that |
| 648 |
-- case, this field points to that entity. |
| 649 |
-- |
| 650 |
-- A record or classwide subtype may also be a copy of some other |
| 651 |
-- subtype and share the entities in the First_Entity with that subtype. |
| 652 |
-- In that case, this field points to that subtype. |
| 653 |
-- |
| 654 |
-- For E_Class_Wide_Subtype, the presence of Equivalent_Type overrides |
| 655 |
-- this field. Note that this field ONLY appears in subtype entities, not |
| 656 |
-- in type entities, it is not defined, and it is an error to reference |
| 657 |
-- Cloned_Subtype in an E_Record_Type or E_Class_Wide_Type entity. |
| 658 |
|
| 659 |
-- Comes_From_Source |
| 660 |
-- This flag appears on all nodes, including entities, and indicates |
| 661 |
-- that the node was created by the scanner or parser from the original |
| 662 |
-- source. Thus for entities, it indicates that the entity is defined |
| 663 |
-- in the original source program. |
| 664 |
|
| 665 |
-- Component_Alignment (special field) [base type only] |
| 666 |
-- Defined in array and record entities. Contains a value of type |
| 667 |
-- Component_Alignment_Kind indicating the alignment of components. |
| 668 |
-- Set to Calign_Default normally, but can be overridden by use of |
| 669 |
-- the Component_Alignment pragma. Note: this field is currently |
| 670 |
-- stored in a non-standard way, see body for details. |
| 671 |
|
| 672 |
-- Component_Bit_Offset |
| 673 |
-- Defined in record components (E_Component, E_Discriminant). First |
| 674 |
-- bit position of given component, computed from the first bit and |
| 675 |
-- position values given in the component clause. A value of No_Uint |
| 676 |
-- means that the value is not yet known. The value can be set by the |
| 677 |
-- appearance of an explicit component clause in a record representation |
| 678 |
-- clause, or it can be set by the front-end in package Layout, or it can |
| 679 |
-- be set by the backend. By the time backend processing is completed, |
| 680 |
-- this field is always set. A negative value is used to represent |
| 681 |
-- a value which is not known at compile time, and must be computed |
| 682 |
-- at run-time (this happens if fields of a record have variable |
| 683 |
-- lengths). See package Repinfo for details of these values. |
| 684 |
-- |
| 685 |
-- Note: Component_Bit_Offset is redundant with respect to the fields |
| 686 |
-- Normalized_First_Bit and Normalized_Position, and could in principle |
| 687 |
-- be eliminated, but it is convenient in several situations, including |
| 688 |
-- use in the backend, to have this redundant field. |
| 689 |
|
| 690 |
-- Component_Clause |
| 691 |
-- Defined in record components and discriminants. If a record |
| 692 |
-- representation clause is present for the corresponding record type a |
| 693 |
-- that specifies a position for the component, then the Component_Clause |
| 694 |
-- field of the E_Component entity points to the N_Component_Clause node. |
| 695 |
-- Set to Empty if no record representation clause was present, or if |
| 696 |
-- there was no specification for this component. |
| 697 |
|
| 698 |
-- Component_Size [implementation base type only] |
| 699 |
-- Defined in array types. It contains the component size value for |
| 700 |
-- the array. A value of No_Uint means that the value is not yet set. |
| 701 |
-- The value can be set by the use of a component size clause, or |
| 702 |
-- by the front end in package Layout, or by the backend. A negative |
| 703 |
-- value is used to represent a value which is not known at compile |
| 704 |
-- time, and must be computed at run-time (this happens if the type |
| 705 |
-- of the component has a variable length size). See package Repinfo |
| 706 |
-- for details of these values. Component_Size can also be negative in |
| 707 |
-- an illegal program that says e.g. "for T'Component_Size use -8;". |
| 708 |
|
| 709 |
-- Component_Type [implementation base type only] |
| 710 |
-- Defined in array types and string types. References component type. |
| 711 |
|
| 712 |
-- Contains_Ignored_Ghost_Code |
| 713 |
-- Defined in blocks, packages and their bodies, subprograms and their |
| 714 |
-- bodies. Set if the entity contains any ignored Ghost code in the form |
| 715 |
-- of declaration, procedure call, assignment statement or pragma. |
| 716 |
|
| 717 |
-- Contract |
| 718 |
-- Defined in constant, entry, entry family, operator, [generic] package, |
| 719 |
-- package body, protected unit, [generic] subprogram, subprogram body, |
| 720 |
-- variable, task unit, and type entities. Points to the contract of the |
| 721 |
-- entity, holding various assertion items and data classifiers. |
| 722 |
|
| 723 |
-- Contract_Wrapper |
| 724 |
-- Defined in entry and entry family entities. Set only when the entry |
| 725 |
-- [family] has contract cases, preconditions, and/or postconditions. |
| 726 |
-- Contains the entity of a wrapper procedure which encapsulates the |
| 727 |
-- original entry and implements precondition/postcondition semantics. |
| 728 |
|
| 729 |
-- Corresponding_Concurrent_Type |
| 730 |
-- Defined in record types that are constructed by the expander to |
| 731 |
-- represent task and protected types (Is_Concurrent_Record_Type flag |
| 732 |
-- set). Points to the entity for the corresponding task type or the |
| 733 |
-- protected type. |
| 734 |
|
| 735 |
-- Corresponding_Discriminant |
| 736 |
-- Defined in discriminants of a derived type, when the discriminant is |
| 737 |
-- used to constrain a discriminant of the parent type. Points to the |
| 738 |
-- corresponding discriminant in the parent type. Otherwise it is Empty. |
| 739 |
|
| 740 |
-- Corresponding_Equality |
| 741 |
-- Defined in function entities for implicit inequality operators. |
| 742 |
-- Denotes the explicit or derived equality operation that creates |
| 743 |
-- the implicit inequality. Note that this field is not present in |
| 744 |
-- other function entities, only in implicit inequality routines, |
| 745 |
-- where Comes_From_Source is always False. |
| 746 |
|
| 747 |
-- Corresponding_Record_Component |
| 748 |
-- Defined in components of a derived untagged record type, including |
| 749 |
-- discriminants. For a regular component or a stored discriminant, |
| 750 |
-- points to the corresponding component in the parent type. Set to |
| 751 |
-- Empty for a non-stored discriminant. It is used by the back end to |
| 752 |
-- ensure the layout of the derived type matches that of the parent |
| 753 |
-- type when there is no representation clause on the derived type. |
| 754 |
|
| 755 |
-- Corresponding_Record_Type |
| 756 |
-- Defined in protected and task types and subtypes. References the |
| 757 |
-- entity for the corresponding record type constructed by the expander |
| 758 |
-- (see Exp_Ch9). This type is used to represent values of the task type. |
| 759 |
|
| 760 |
-- Corresponding_Remote_Type |
| 761 |
-- Defined in record types that describe the fat pointer structure for |
| 762 |
-- Remote_Access_To_Subprogram types. References the original access |
| 763 |
-- to subprogram type. |
| 764 |
|
| 765 |
-- CR_Discriminant |
| 766 |
-- Defined in discriminants of concurrent types. Denotes the homologous |
| 767 |
-- discriminant of the corresponding record type. The CR_Discriminant is |
| 768 |
-- created at the same time as the discriminal, and used to replace |
| 769 |
-- occurrences of the discriminant within the type declaration. |
| 770 |
|
| 771 |
-- Current_Use_Clause |
| 772 |
-- Defined in packages and in types. For packages, denotes the use |
| 773 |
-- package clause currently in scope that makes the package use_visible. |
| 774 |
-- For types, it denotes the use_type clause that makes the operators of |
| 775 |
-- the type visible. Used for more precise warning messages on redundant |
| 776 |
-- use clauses. |
| 777 |
|
| 778 |
-- Current_Value |
| 779 |
-- Defined in all object entities. Set in E_Variable, E_Constant, formal |
| 780 |
-- parameters and E_Loop_Parameter entities if we have trackable current |
| 781 |
-- values. Set non-Empty if the (constant) current value of the variable |
| 782 |
-- is known. This value is valid only for references from the same |
| 783 |
-- sequential scope as the entity. The sequential scope of an entity |
| 784 |
-- includes the immediate scope and any contained scopes that are package |
| 785 |
-- specs, package bodies, blocks (at any nesting level) or statement |
| 786 |
-- sequences in IF or loop statements. |
| 787 |
-- |
| 788 |
-- Another related use of this field is to record information about the |
| 789 |
-- value obtained from an IF or WHILE statement condition. If the IF or |
| 790 |
-- ELSIF or WHILE condition has the form "NOT {,NOT] OBJ RELOP VAL ", |
| 791 |
-- or OBJ [AND [THEN]] expr, where OBJ refers to an entity with a |
| 792 |
-- Current_Value field, RELOP is one of the six relational operators, and |
| 793 |
-- VAL is a compile-time known value then the Current_Value field of OBJ |
| 794 |
-- points to the N_If_Statement, N_Elsif_Part, or N_Iteration_Scheme node |
| 795 |
-- of the relevant construct, and the Condition field of this can be |
| 796 |
-- consulted to give information about the value of OBJ. For more details |
| 797 |
-- on this usage, see the procedure Exp_Util.Get_Current_Value_Condition. |
| 798 |
|
| 799 |
-- Debug_Info_Off |
| 800 |
-- Defined in all entities. Set if a pragma Suppress_Debug_Info applies |
| 801 |
-- to the entity, or if internal processing in the compiler determines |
| 802 |
-- that suppression of debug information is desirable. Note that this |
| 803 |
-- flag is only for use by the front end as part of the processing for |
| 804 |
-- determining if Needs_Debug_Info should be set. The backend should |
| 805 |
-- always test Needs_Debug_Info, it should never test Debug_Info_Off. |
| 806 |
|
| 807 |
-- Debug_Renaming_Link |
| 808 |
-- Used to link the variable associated with a debug renaming declaration |
| 809 |
-- to the renamed entity. See Exp_Dbug.Debug_Renaming_Declaration for |
| 810 |
-- details of the use of this field. |
| 811 |
|
| 812 |
-- Declaration_Node (synthesized) |
| 813 |
-- Applies to all entities. Returns the tree node for the construct that |
| 814 |
-- declared the entity. Normally this is just the Parent of the entity. |
| 815 |
-- One exception arises with child units, where the parent of the entity |
| 816 |
-- is a selected component/defining program unit name. Another exception |
| 817 |
-- is that if the entity is an incomplete type that has been completed or |
| 818 |
-- a private type, then we obtain the declaration node denoted by the |
| 819 |
-- full type, i.e. the full type declaration node. Also note that for |
| 820 |
-- subprograms, this returns the {function,procedure}_specification, not |
| 821 |
-- the subprogram_declaration. If the parent of an Itype is a type or |
| 822 |
-- subtype declaration, we return the declaration node as for any other |
| 823 |
-- type. For other Itypes, we return Empty. |
| 824 |
|
| 825 |
-- Default_Aspect_Component_Value [base type only] |
| 826 |
-- Defined in array types. Holds the static value specified in a |
| 827 |
-- Default_Component_Value aspect specification for the array type, |
| 828 |
-- or inherited on derivation. |
| 829 |
|
| 830 |
-- Default_Aspect_Value [base type only] |
| 831 |
-- Defined in scalar types. Holds the static value specified in a |
| 832 |
-- Default_Value aspect specification for the type, or inherited |
| 833 |
-- on derivation. |
| 834 |
|
| 835 |
-- Default_Expr_Function |
| 836 |
-- Defined in parameters. It holds the entity of the parameterless |
| 837 |
-- function that is built to evaluate the default expression if it is |
| 838 |
-- more complex than a simple identifier or literal. For the latter |
| 839 |
-- simple cases or if there is no default value, this field is Empty. |
| 840 |
|
| 841 |
-- Default_Expressions_Processed |
| 842 |
-- A flag in subprograms (functions, operators, procedures) and in |
| 843 |
-- entries and entry families used to indicate that default expressions |
| 844 |
-- have been processed and to avoid multiple calls to process the |
| 845 |
-- default expressions (see Freeze.Process_Default_Expressions), which |
| 846 |
-- would not only waste time, but also generate false error messages. |
| 847 |
|
| 848 |
-- Default_Value |
| 849 |
-- Defined in formal parameters. Points to the node representing the |
| 850 |
-- expression for the default value for the parameter. Empty if the |
| 851 |
-- parameter has no default value (which is always the case for OUT |
| 852 |
-- and IN OUT parameters in the absence of errors). |
| 853 |
|
| 854 |
-- Delay_Cleanups |
| 855 |
-- Defined in entities that have finalization lists (subprograms, blocks |
| 856 |
-- and tasks) or finalizers (package specs and bodies). Set if there are |
| 857 |
-- pending package body instantiations for the corresponding entity. If |
| 858 |
-- it is set, then generation of cleanup actions for the corresponding |
| 859 |
-- entity must be delayed, since the insertion of the package bodies may |
| 860 |
-- affect cleanup generation (see Inline for further details). |
| 861 |
|
| 862 |
-- Delta_Value |
| 863 |
-- Defined in fixed and decimal types. Points to a universal real |
| 864 |
-- that holds value of delta for the type, as given in the declaration |
| 865 |
-- or as inherited by a subtype or derived type. |
| 866 |
|
| 867 |
-- Dependent_Instances |
| 868 |
-- Defined in packages that are instances. Holds list of instances |
| 869 |
-- of inner generics. Used to place freeze nodes for those instances |
| 870 |
-- after that of the current one, i.e. after the corresponding generic |
| 871 |
-- bodies. |
| 872 |
|
| 873 |
-- Depends_On_Private |
| 874 |
-- Defined in all type entities. Set if the type is private or if it |
| 875 |
-- depends on a private type. |
| 876 |
|
| 877 |
-- Derived_Type_Link |
| 878 |
-- Defined in all type and subtype entities. Set in a base type if |
| 879 |
-- a derived type declaration is encountered which derives from |
| 880 |
-- this base type or one of its subtypes, and there are already |
| 881 |
-- primitive operations declared. In this case, it references the |
| 882 |
-- entity for the type declared by the derived type declaration. |
| 883 |
-- For example: |
| 884 |
-- |
| 885 |
-- type R is ... |
| 886 |
-- subtype RS is R ... |
| 887 |
-- ... |
| 888 |
-- type G is new RS ... |
| 889 |
-- |
| 890 |
-- In this case, if primitive operations have been declared for R, at |
| 891 |
-- the point of declaration of G, then the Derived_Type_Link of R is set |
| 892 |
-- to point to the entity for G. This is used to generate warnings and |
| 893 |
-- errors for rep clauses that appear later on for R, which might result |
| 894 |
-- in an unexpected (or illegal) implicit conversion operation. |
| 895 |
-- |
| 896 |
-- Note: if there is more than one such derived type, the link will point |
| 897 |
-- to the last one. |
| 898 |
|
| 899 |
-- Designated_Type (synthesized) |
| 900 |
-- Applies to access types. Returns the designated type. Differs from |
| 901 |
-- Directly_Designated_Type in that if the access type refers to an |
| 902 |
-- incomplete type, and the full type is available, then this full type |
| 903 |
-- is returned instead of the incomplete type. |
| 904 |
|
| 905 |
-- DIC_Procedure (synthesized) |
| 906 |
-- Defined in all type entities. Set for a private type and its full view |
| 907 |
-- when the type is subject to pragma Default_Initial_Condition (DIC), or |
| 908 |
-- when the type inherits a DIC pragma from a parent type. Points to the |
| 909 |
-- entity of a procedure which takes a single argument of the given type |
| 910 |
-- and verifies the assertion expression of the DIC pragma at run time. |
| 911 |
|
| 912 |
-- Note: the reason this is marked as a synthesized attribute is that the |
| 913 |
-- way this is stored is as an element of the Subprograms_For_Type field. |
| 914 |
|
| 915 |
-- Digits_Value |
| 916 |
-- Defined in floating point types and subtypes and decimal types and |
| 917 |
-- subtypes. Contains the Digits value specified in the declaration. |
| 918 |
|
| 919 |
-- Direct_Primitive_Operations |
| 920 |
-- Defined in concurrent types, tagged record types and subtypes, tagged |
| 921 |
-- private types, and tagged incomplete types. Moreover, it is also |
| 922 |
-- defined in untagged types, both when GNAT extensions are allowed, to |
| 923 |
-- support prefixed calls for untagged types, and when GNAT extensions |
| 924 |
-- are not allowed, to give better error messages. Set to a list of |
| 925 |
-- entities for primitive operations of the type. For incomplete types |
| 926 |
-- the list is always empty. In order to follow the C++ ABI, entities of |
| 927 |
-- primitives that come from source must be stored in this list in the |
| 928 |
-- order of their occurrence in the sources. When expansion is disabled, |
| 929 |
-- the corresponding record type of concurrent types is not constructed; |
| 930 |
-- in this case, such types carry this attribute directly. |
| 931 |
|
| 932 |
-- Directly_Designated_Type |
| 933 |
-- Defined in access types. This field points to the type that is |
| 934 |
-- directly designated by the access type. In the case of an access |
| 935 |
-- type to an incomplete type, this field references the incomplete |
| 936 |
-- type. Directly_Designated_Type is typically used in implementing the |
| 937 |
-- static semantics of the language; in implementing dynamic semantics, |
| 938 |
-- we typically want the full view of the designated type. The function |
| 939 |
-- Designated_Type obtains this full type in the case of access to an |
| 940 |
-- incomplete type. |
| 941 |
|
| 942 |
-- Disable_Controlled [base type only] |
| 943 |
-- Present in all entities. Set for a controlled type subject to aspect |
| 944 |
-- Disable_Controlled which evaluates to True. This flag is taken into |
| 945 |
-- account in synthesized attribute Is_Controlled. |
| 946 |
|
| 947 |
-- Discard_Names |
| 948 |
-- Defined in types and exception entities. Set if pragma Discard_Names |
| 949 |
-- applies to the entity. It is also set for declarative regions and |
| 950 |
-- package specs for which a Discard_Names pragma with zero arguments |
| 951 |
-- has been encountered. The purpose of setting this flag is to be able |
| 952 |
-- to set the Discard_Names attribute on enumeration types declared |
| 953 |
-- after the pragma within the same declarative region. This flag is |
| 954 |
-- set to False if a Keep_Names pragma appears for an enumeration type. |
| 955 |
|
| 956 |
-- Discriminal |
| 957 |
-- Defined in discriminants (Discriminant formal: GNAT's first |
| 958 |
-- coinage). The entity used as a formal parameter that corresponds |
| 959 |
-- to a discriminant. See section "Handling of Discriminants" for |
| 960 |
-- full details of the use of discriminals. |
| 961 |
|
| 962 |
-- Discriminal_Link |
| 963 |
-- Defined in E_In_Parameter or E_Constant entities. For discriminals, |
| 964 |
-- points back to corresponding discriminant. For other entities, must |
| 965 |
-- remain Empty. |
| 966 |
|
| 967 |
-- Discriminant_Checking_Func |
| 968 |
-- Defined in components. Points to the defining identifier of the |
| 969 |
-- function built by the expander returns a Boolean indicating whether |
| 970 |
-- the given record component exists for the current discriminant |
| 971 |
-- values. |
| 972 |
|
| 973 |
-- Discriminant_Constraint |
| 974 |
-- Defined in entities whose Has_Discriminants flag is set (concurrent |
| 975 |
-- types, subtypes, record types and subtypes, private types and |
| 976 |
-- subtypes, limited private types and subtypes and incomplete types). |
| 977 |
-- It is an error to reference the Discriminant_Constraint field if |
| 978 |
-- Has_Discriminants is False. |
| 979 |
-- |
| 980 |
-- If the Is_Constrained flag is set, Discriminant_Constraint points |
| 981 |
-- to an element list containing the discriminant constraints in the |
| 982 |
-- same order in which the discriminants are declared. |
| 983 |
-- |
| 984 |
-- If the Is_Constrained flag is not set but the discriminants of the |
| 985 |
-- unconstrained type have default initial values then this field |
| 986 |
-- points to an element list giving these default initial values in |
| 987 |
-- the same order in which the discriminants are declared. Note that |
| 988 |
-- in this case the entity cannot be a tagged record type, because |
| 989 |
-- discriminants in this case cannot have defaults. |
| 990 |
-- |
| 991 |
-- If the entity is a tagged record implicit type, then this field is |
| 992 |
-- inherited from the first subtype (so that the itype is subtype |
| 993 |
-- conformant with its first subtype, which is needed when the first |
| 994 |
-- subtype overrides primitive operations inherited by the implicit |
| 995 |
-- base type). |
| 996 |
-- |
| 997 |
-- In all other cases Discriminant_Constraint contains the empty |
| 998 |
-- Elist (i.e. it is initialized with a call to New_Elmt_List). |
| 999 |
|
| 1000 |
-- Discriminant_Default_Value |
| 1001 |
-- Defined in discriminants. Points to the node representing the |
| 1002 |
-- expression for the default value of the discriminant. Set to |
| 1003 |
-- Empty if the discriminant has no default value. |
| 1004 |
|
| 1005 |
-- Discriminant_Number |
| 1006 |
-- Defined in discriminants. Gives the ranking of a discriminant in |
| 1007 |
-- the list of discriminants of the type, i.e. a sequential integer |
| 1008 |
-- index starting at 1 and ranging up to number of discriminants. |
| 1009 |
|
| 1010 |
-- Dispatch_Table_Wrappers [implementation base type only] |
| 1011 |
-- Defined in E_Record_Type and E_Record_Subtype entities. Set in library |
| 1012 |
-- level tagged type entities if we are generating statically allocated |
| 1013 |
-- dispatch tables. Points to the list of dispatch table wrappers |
| 1014 |
-- associated with the tagged type. For an untagged record, contains |
| 1015 |
-- No_Elist. |
| 1016 |
|
| 1017 |
-- Dynamic_Call_Helper |
| 1018 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 1019 |
-- preconditions. Denotes the helper that evaluates at run time the |
| 1020 |
-- class-wide preconditions performing dispatching calls. |
| 1021 |
|
| 1022 |
-- DTC_Entity |
| 1023 |
-- Defined in function and procedure entities. Set to Empty unless |
| 1024 |
-- the subprogram is dispatching in which case it references the |
| 1025 |
-- Dispatch Table pointer Component. For regular Ada tagged this, this |
| 1026 |
-- is the _Tag component. For CPP_Class types and their descendants, |
| 1027 |
-- this points to the component entity in the record that holds the |
| 1028 |
-- Vtable pointer for the Vtable containing the entry referencing the |
| 1029 |
-- subprogram. |
| 1030 |
|
| 1031 |
-- DT_Entry_Count |
| 1032 |
-- Defined in E_Component entities. Only used for component marked |
| 1033 |
-- Is_Tag. Store the number of entries in the Vtable (or Dispatch Table) |
| 1034 |
|
| 1035 |
-- DT_Offset_To_Top_Func |
| 1036 |
-- Defined in E_Component entities. Only used for component marked |
| 1037 |
-- Is_Tag. If present it stores the Offset_To_Top function used to |
| 1038 |
-- provide this value in tagged types whose ancestor has discriminants. |
| 1039 |
|
| 1040 |
-- DT_Position |
| 1041 |
-- Defined in function and procedure entities which are dispatching |
| 1042 |
-- (should not be referenced without first checking that flag |
| 1043 |
-- Is_Dispatching_Operation is True). Contains the offset into |
| 1044 |
-- the Vtable for the entry that references the subprogram. |
| 1045 |
|
| 1046 |
-- Ekind (Ekind) |
| 1047 |
-- Defined in all entities. Contains a value of the enumeration type |
| 1048 |
-- Entity_Kind declared in a subsequent section in this spec. |
| 1049 |
|
| 1050 |
-- Elaborate_Body_Desirable |
| 1051 |
-- Defined in package entities. Set if the elaboration circuitry detects |
| 1052 |
-- a case where there is a package body that modifies one or more visible |
| 1053 |
-- entities in the package spec and there is no explicit Elaborate_Body |
| 1054 |
-- pragma for the package. This information is passed on to the binder, |
| 1055 |
-- which attempts, but does not promise, to elaborate the body as close |
| 1056 |
-- to the spec as possible. |
| 1057 |
|
| 1058 |
-- Elaboration_Entity |
| 1059 |
-- Defined in entry, entry family, [generic] package, and subprogram |
| 1060 |
-- entities. This is a counter associated with the unit that is initially |
| 1061 |
-- set to zero, is incremented when an elaboration request for the unit |
| 1062 |
-- is made, and is decremented when a finalization request for the unit |
| 1063 |
-- is made. This is used for three purposes. First, it is used to |
| 1064 |
-- implement access before elaboration checks (the counter must be |
| 1065 |
-- non-zero to call a subprogram at elaboration time). Second, it is |
| 1066 |
-- used to guard against repeated execution of the elaboration code. |
| 1067 |
-- Third, it is used to ensure that the finalization code is executed |
| 1068 |
-- only after all clients have requested it. |
| 1069 |
-- |
| 1070 |
-- Note that we always allocate this counter, and set this field, but |
| 1071 |
-- we do not always actually use it. It is only used if it is needed |
| 1072 |
-- for access before elaboration use (see Elaboration_Entity_Required |
| 1073 |
-- flag) or if either the spec or the body has elaboration code. If |
| 1074 |
-- neither of these two conditions holds, then the entity is still |
| 1075 |
-- allocated (since we don't know early enough whether or not there |
| 1076 |
-- is elaboration code), but is simply not used for any purpose. |
| 1077 |
|
| 1078 |
-- Elaboration_Entity_Required |
| 1079 |
-- Defined in entry, entry family, [generic] package, and subprogram |
| 1080 |
-- entities. Set only if Elaboration_Entity is non-Empty to indicate that |
| 1081 |
-- the counter is required to be non-zero even if there is no other |
| 1082 |
-- elaboration code. This occurs when the Elaboration_Entity counter |
| 1083 |
-- is used for access before elaboration checks. If the counter is |
| 1084 |
-- only used to prevent multiple execution of the elaboration code, |
| 1085 |
-- then if there is no other elaboration code, obviously there is no |
| 1086 |
-- need to set the flag. |
| 1087 |
|
| 1088 |
-- Encapsulating_State |
| 1089 |
-- Defined in abstract state, constant and variable entities. Contains |
| 1090 |
-- the entity of an ancestor state or a single concurrent type whose |
| 1091 |
-- refinement utilizes this item as a constituent. |
| 1092 |
|
| 1093 |
-- Enclosing_Scope |
| 1094 |
-- Defined in labels. Denotes the innermost enclosing construct that |
| 1095 |
-- contains the label. Identical to the scope of the label, except for |
| 1096 |
-- labels declared in the body of an accept statement, in which case the |
| 1097 |
-- entry_name is the Enclosing_Scope. Used to validate goto's within |
| 1098 |
-- accept statements. |
| 1099 |
|
| 1100 |
-- Entry_Accepted |
| 1101 |
-- Defined in E_Entry and E_Entry_Family entities. Set if there is |
| 1102 |
-- at least one accept for this entry in the task body. Used to |
| 1103 |
-- generate warnings for missing accepts. |
| 1104 |
|
| 1105 |
-- Entry_Bodies_Array |
| 1106 |
-- Defined in protected types for which Has_Entries is true. |
| 1107 |
-- This is the defining identifier for the array of entry body |
| 1108 |
-- action procedures and barrier functions used by the runtime to |
| 1109 |
-- execute the user code associated with each entry. |
| 1110 |
|
| 1111 |
-- Entry_Cancel_Parameter |
| 1112 |
-- Defined in blocks. This only applies to a block statement for |
| 1113 |
-- which the Is_Asynchronous_Call_Block flag is set. It |
| 1114 |
-- contains the defining identifier of an object that must be |
| 1115 |
-- passed to the Cancel_Task_Entry_Call or Cancel_Protected_Entry_Call |
| 1116 |
-- call in the cleanup handler added to the block by |
| 1117 |
-- Exp_Ch7.Expand_Cleanup_Actions. This parameter is a Boolean |
| 1118 |
-- object for task entry calls and a Communications_Block object |
| 1119 |
-- in the case of protected entry calls. In both cases the objects |
| 1120 |
-- are declared in outer scopes to this block. |
| 1121 |
-- This is also defined in labels, because we temporarily set the |
| 1122 |
-- Ekind of an E_Block to E_Label in Analyze_Implicit_Label_Declaration. |
| 1123 |
|
| 1124 |
-- Entry_Component |
| 1125 |
-- Defined in formal parameters (in, in out and out parameters). Used |
| 1126 |
-- only for formals of entries. References the corresponding component |
| 1127 |
-- of the entry parameter record for the entry. |
| 1128 |
|
| 1129 |
-- Entry_Formal |
| 1130 |
-- Defined in components of the record built to correspond to entry |
| 1131 |
-- parameters. This field points from the component to the formal. It |
| 1132 |
-- is the back pointer corresponding to Entry_Component. |
| 1133 |
|
| 1134 |
-- Entry_Index_Constant |
| 1135 |
-- Defined in an entry index parameter. This is an identifier that |
| 1136 |
-- eventually becomes the name of a constant representing the index |
| 1137 |
-- of the entry family member whose entry body is being executed. Used |
| 1138 |
-- to expand references to the entry index specification identifier. |
| 1139 |
|
| 1140 |
-- Entry_Index_Type (synthesized) |
| 1141 |
-- Applies to an entry family. Denotes Etype of the subtype indication |
| 1142 |
-- in the entry declaration. Used to resolve the index expression in an |
| 1143 |
-- accept statement for a member of the family, and in the prefix of |
| 1144 |
-- 'COUNT when it applies to a family member. |
| 1145 |
|
| 1146 |
-- Entry_Max_Queue_Lengths_Array |
| 1147 |
-- Defined in protected types for which Has_Entries is true. Contains the |
| 1148 |
-- defining identifier for the array of naturals used by the runtime to |
| 1149 |
-- limit the queue size of each entry individually. |
| 1150 |
|
| 1151 |
-- Entry_Parameters_Type |
| 1152 |
-- Defined in entries. Points to the access-to-record type that is |
| 1153 |
-- constructed by the expander to hold a reference to the parameter |
| 1154 |
-- values. This reference is manipulated (as an address) by the |
| 1155 |
-- tasking runtime. The designated record represents a packaging |
| 1156 |
-- up of the entry parameters (see Exp_Ch9.Expand_N_Entry_Declaration |
| 1157 |
-- for further details). Entry_Parameters_Type is Empty if the entry |
| 1158 |
-- has no parameters. |
| 1159 |
|
| 1160 |
-- Enumeration_Pos |
| 1161 |
-- Defined in enumeration literals. Contains the position number |
| 1162 |
-- corresponding to the value of the enumeration literal. |
| 1163 |
|
| 1164 |
-- Enumeration_Rep |
| 1165 |
-- Defined in enumeration literals. Contains the representation that |
| 1166 |
-- corresponds to the value of the enumeration literal. Note that |
| 1167 |
-- this is normally the same as Enumeration_Pos except in the presence |
| 1168 |
-- of representation clauses, where Pos will still represent the |
| 1169 |
-- position of the literal within the type and Rep will have be the |
| 1170 |
-- value given in the representation clause. |
| 1171 |
|
| 1172 |
-- Enumeration_Rep_Expr |
| 1173 |
-- Defined in enumeration literals. Points to the expression in an |
| 1174 |
-- associated enumeration rep clause that provides the representation |
| 1175 |
-- value for this literal. Empty if no enumeration rep clause for this |
| 1176 |
-- literal (or if rep clause does not have an entry for this literal, |
| 1177 |
-- an error situation). This is also used to catch duplicate entries |
| 1178 |
-- for the same literal. |
| 1179 |
|
| 1180 |
-- Enum_Pos_To_Rep |
| 1181 |
-- Defined in enumeration types, but not enumeration subtypes. Set to |
| 1182 |
-- Empty unless the enumeration type has a non-standard representation, |
| 1183 |
-- i.e. at least one literal has a representation value different from |
| 1184 |
-- its position value. In this case, the alternative is the following: |
| 1185 |
-- if the representation is not contiguous, then Enum_Pos_To_Rep is the |
| 1186 |
-- entity for an array constant built when the type is frozen that maps |
| 1187 |
-- Pos values to corresponding Rep values, whose index type is Natural |
| 1188 |
-- and whose component type is the enumeration type itself; or else, if |
| 1189 |
-- the representation is contiguous, then Enum_Pos_To_Rep is the entity |
| 1190 |
-- of the index type defined above. |
| 1191 |
|
| 1192 |
-- Equivalent_Type |
| 1193 |
-- Defined in class wide types and subtypes, access to protected |
| 1194 |
-- subprogram types, and in exception types. For a classwide type, it |
| 1195 |
-- is always Empty. For a class wide subtype, it points to an entity |
| 1196 |
-- created by the expander which gives the backend an understandable |
| 1197 |
-- equivalent of the class subtype with a known size (given by an |
| 1198 |
-- initial value). See Exp_Util.Expand_Class_Wide_Subtype for further |
| 1199 |
-- details. For E_Exception_Type, this points to the record containing |
| 1200 |
-- the data necessary to represent exceptions (for further details, see |
| 1201 |
-- System.Standard_Library). For access to protected subprograms, it |
| 1202 |
-- denotes a record that holds pointers to the operation and to the |
| 1203 |
-- protected object. For remote Access_To_Subprogram types, it denotes |
| 1204 |
-- the record that is the fat pointer representation of an RAST. |
| 1205 |
|
| 1206 |
-- Esize |
| 1207 |
-- Defined in all types and subtypes, and also for components, constants, |
| 1208 |
-- and variables, including exceptions where it refers to the static data |
| 1209 |
-- allocated for an exception. Contains the Object_Size of the type or of |
| 1210 |
-- the object. A value of zero indicates that the value is not yet known. |
| 1211 |
-- |
| 1212 |
-- For the case of components where a component clause is present, the |
| 1213 |
-- value is the value from the component clause, which must be non- |
| 1214 |
-- negative (but may be zero, which is acceptable for the case of |
| 1215 |
-- a type with only one possible value). It is also possible for Esize |
| 1216 |
-- of a component to be set without a component clause defined, which |
| 1217 |
-- means that the component size is specified, but not the position. |
| 1218 |
-- See also RM_Size and the section on "Handling of Type'Size Values". |
| 1219 |
-- During backend processing, the value is back annotated for all zero |
| 1220 |
-- values, so that after the call to the backend, the value is set. |
| 1221 |
|
| 1222 |
-- Etype |
| 1223 |
-- Defined in all entities. Represents the type of the entity, which |
| 1224 |
-- is itself another entity. For a type entity, points to the parent |
| 1225 |
-- type for a derived type, or if the type is not derived, points to |
| 1226 |
-- itself. For a subtype entity, Etype points to the base type. For |
| 1227 |
-- a class wide type, points to the corresponding specific type. For a |
| 1228 |
-- subprogram or subprogram type, Etype has the return type of a function |
| 1229 |
-- or is set to Standard_Void_Type to represent a procedure. The Etype |
| 1230 |
-- field of a package is also set to Standard_Void_Type. |
| 1231 |
-- |
| 1232 |
-- Note one obscure case: for pragma Default_Storage_Pool (null), the |
| 1233 |
-- Etype of the N_Null node is Empty. |
| 1234 |
|
| 1235 |
-- Extra_Accessibility |
| 1236 |
-- Defined in formal parameters in the non-generic case. Normally Empty, |
| 1237 |
-- but if expansion is active, and a parameter is one for which a |
| 1238 |
-- dynamic accessibility check is required, then an extra formal of type |
| 1239 |
-- Natural is created (see description of field Extra_Formal), and the |
| 1240 |
-- Extra_Accessibility field of the formal parameter points to the entity |
| 1241 |
-- for this extra formal. Also defined in variables when compiling |
| 1242 |
-- receiving stubs. In this case, a non Empty value means that this |
| 1243 |
-- variable's accessibility depth has been transmitted by the caller and |
| 1244 |
-- must be retrieved through the entity designed by this field instead of |
| 1245 |
-- being computed. |
| 1246 |
|
| 1247 |
-- Extra_Accessibility_Of_Result |
| 1248 |
-- Defined in (non-generic) Function, Operator, and Subprogram_Type |
| 1249 |
-- entities. Normally Empty, but if expansion is active, and a function |
| 1250 |
-- is one for which "the accessibility level of the result ... determined |
| 1251 |
-- by the point of call" (AI05-0234) is needed, then an extra formal of |
| 1252 |
-- subtype Natural is created (see description of field Extra_Formal), |
| 1253 |
-- and the Extra_Accessibility_Of_Result field of the function points to |
| 1254 |
-- the entity for this extra formal. |
| 1255 |
|
| 1256 |
-- Extra_Constrained |
| 1257 |
-- Defined in formal parameters in the non-generic case. Normally Empty, |
| 1258 |
-- but if expansion is active and a parameter is one for which a dynamic |
| 1259 |
-- indication of its constrained status is required, then an extra formal |
| 1260 |
-- of type Boolean is created (see description of field Extra_Formal), |
| 1261 |
-- and the Extra_Constrained field of the formal parameter points to the |
| 1262 |
-- entity for this extra formal. Also defined in variables when compiling |
| 1263 |
-- receiving stubs. In this case, a non empty value means that this |
| 1264 |
-- variable's constrained status has been transmitted by the caller and |
| 1265 |
-- must be retrieved through the entity designed by this field instead of |
| 1266 |
-- being computed. |
| 1267 |
|
| 1268 |
-- Extra_Formal |
| 1269 |
-- Defined in formal parameters in the non-generic case. Certain |
| 1270 |
-- parameters require extra implicit information to be passed (e.g. the |
| 1271 |
-- flag indicating if an unconstrained variant record argument is |
| 1272 |
-- constrained, and the accessibility level for access parameters). See |
| 1273 |
-- description of Extra_Constrained, Extra_Accessibility fields for |
| 1274 |
-- further details. Extra formal parameters are constructed to represent |
| 1275 |
-- these values, and chained to the end of the list of formals using the |
| 1276 |
-- Extra_Formal field (i.e. the Extra_Formal field of the last "real" |
| 1277 |
-- formal points to the first extra formal, and the Extra_Formal field of |
| 1278 |
-- each extra formal points to the next one, with Empty indicating the |
| 1279 |
-- end of the list of extra formals). Another case of Extra_Formal arises |
| 1280 |
-- in connection with unnesting of subprograms, where the ARECnF formal |
| 1281 |
-- that represents an activation record pointer is an extra formal. |
| 1282 |
|
| 1283 |
-- Extra_Formals |
| 1284 |
-- Applies to subprograms, subprogram types, entries, and entry |
| 1285 |
-- families. Returns first extra formal of the subprogram or entry. |
| 1286 |
-- Returns Empty if there are no extra formals. |
| 1287 |
|
| 1288 |
-- Finalization_Collection [root type only] |
| 1289 |
-- Defined in access-to-controlled or access-to-class-wide types. The |
| 1290 |
-- field contains the entity of the finalization collection of a type, |
| 1291 |
-- which is the set of objects created by allocators of the type, or |
| 1292 |
-- of types derived from the type. Empty for access-to-object types |
| 1293 |
-- whose designated type does not need finalization actions as well |
| 1294 |
-- as for access-to-subprogram types. |
| 1295 |
|
| 1296 |
-- Finalization_Master_Node |
| 1297 |
-- Defined in variables and constants that require finalization actions. |
| 1298 |
-- The field contains the entity of an object (called a Master_Node) that |
| 1299 |
-- contains the address of the finalizable object, along with an access |
| 1300 |
-- value denoting the finalizable object's finalization procedure. The |
| 1301 |
-- Master_Node may be attached to a finalization list associated with |
| 1302 |
-- either the global scope or some dynamic scope (block or subprogram). |
| 1303 |
|
| 1304 |
-- Finalize_Storage_Only [base type only] |
| 1305 |
-- Defined in all types. Set on direct controlled types to which a |
| 1306 |
-- valid Finalize_Storage_Only pragma applies. This flag is also set on |
| 1307 |
-- composite types when they have at least one controlled component and |
| 1308 |
-- all their controlled components are Finalize_Storage_Only. It is also |
| 1309 |
-- inherited by type derivation except for direct controlled types where |
| 1310 |
-- the Finalize_Storage_Only pragma is required at each level of |
| 1311 |
-- derivation. |
| 1312 |
|
| 1313 |
-- Finalizer |
| 1314 |
-- Applies to package declarations and bodies. Contains the entity of the |
| 1315 |
-- library-level program which finalizes all package-level controlled |
| 1316 |
-- objects. |
| 1317 |
|
| 1318 |
-- First_Component (synthesized) |
| 1319 |
-- Applies to incomplete, private, protected, record and task types. |
| 1320 |
-- Returns the first component by following the chain of declared |
| 1321 |
-- entities for the type until a component is found (one with an Ekind of |
| 1322 |
-- E_Component). The discriminants are skipped. If the record is null, |
| 1323 |
-- then Empty is returned. |
| 1324 |
|
| 1325 |
-- First_Component_Or_Discriminant (synthesized) |
| 1326 |
-- Similar to First_Component, but discriminants are not skipped, so will |
| 1327 |
-- find the first discriminant if discriminants are present. |
| 1328 |
|
| 1329 |
-- First_Discriminant (synthesized) |
| 1330 |
-- Defined for types with discriminants or unknown discriminants. |
| 1331 |
-- Returns the first in the Next_Discriminant chain; see Sem_Aux. |
| 1332 |
|
| 1333 |
-- First_Entity |
| 1334 |
-- Defined in all entities that act as scopes to which a list of |
| 1335 |
-- associated entities is attached, and also in all [sub]types. Some |
| 1336 |
-- entities are both; for example E_Record_Type acts as a scope and |
| 1337 |
-- is a type. [Sub]types that do not act as scopes (e.g. scalars) are |
| 1338 |
-- included to make it more convenient to Mutate_Entity between type |
| 1339 |
-- kinds. Points to a list of associated entities linked through the |
| 1340 |
-- Next_Entity field with Empty marking end-of-list. |
| 1341 |
-- See also Last_Entity. |
| 1342 |
|
| 1343 |
-- First_Exit_Statement |
| 1344 |
-- Defined in E_Loop entity. The exit statements for a loop are chained |
| 1345 |
-- (in reverse order of appearance) using this field to point to the |
| 1346 |
-- first entry in the chain (last exit statement in the loop). The |
| 1347 |
-- entries are chained through the Next_Exit_Statement field of the |
| 1348 |
-- N_Exit_Statement node with Empty marking the end of the list. |
| 1349 |
|
| 1350 |
-- First_Formal (synthesized) |
| 1351 |
-- Applies to subprograms and subprogram types, and also to entries |
| 1352 |
-- and entry families. Returns first formal of the subprogram or entry. |
| 1353 |
-- The formals are the first entities declared in a subprogram or in |
| 1354 |
-- a subprogram type (the designated type of an Access_To_Subprogram |
| 1355 |
-- definition) or in an entry. |
| 1356 |
|
| 1357 |
-- First_Formal_With_Extras (synthesized) |
| 1358 |
-- Applies to subprograms and subprogram types, and also in entries |
| 1359 |
-- and entry families. Returns first formal of the subprogram or entry. |
| 1360 |
-- Returns Empty if there are no formals. The list returned includes |
| 1361 |
-- all the extra formals (see description of Extra_Formals field). |
| 1362 |
|
| 1363 |
-- First_Index |
| 1364 |
-- Defined in array types and subtypes. By introducing implicit subtypes |
| 1365 |
-- for the index constraints, we have the same structure for constrained |
| 1366 |
-- and unconstrained arrays, subtype marks and discrete ranges are both |
| 1367 |
-- represented by a subtype. This function returns the N_Is_Index tree |
| 1368 |
-- node corresponding to the first index (not an entity). Subsequent |
| 1369 |
-- indices are obtained using Next_Index. Note that this field is defined |
| 1370 |
-- for the case of string literal subtypes, but is always Empty. |
| 1371 |
|
| 1372 |
-- First_Literal |
| 1373 |
-- Defined in all enumeration types, including character and boolean |
| 1374 |
-- types. This field points to the first enumeration literal entity |
| 1375 |
-- for the type (i.e. it is set to First (Literals (N)) where N is |
| 1376 |
-- the enumeration type definition node. A special case occurs with |
| 1377 |
-- standard character and wide character types, where this field is |
| 1378 |
-- Empty, since there are no enumeration literal lists in these cases. |
| 1379 |
-- Note that this field is set in enumeration subtypes, but it still |
| 1380 |
-- points to the first literal of the base type in this case. |
| 1381 |
|
| 1382 |
-- First_Private_Entity |
| 1383 |
-- Defined in all entities containing private parts (packages, protected |
| 1384 |
-- types and subtypes, task types and subtypes). The entities on the |
| 1385 |
-- entity chain are in order of declaration, so the entries for private |
| 1386 |
-- entities are at the end of the chain. This field points to the first |
| 1387 |
-- entity for the private part. It is Empty if there are no entities |
| 1388 |
-- declared in the private part or if there is no private part. |
| 1389 |
|
| 1390 |
-- First_Rep_Item |
| 1391 |
-- Defined in all entities. If non-empty, points to a linked list of |
| 1392 |
-- representation pragmas nodes and representation clause nodes that |
| 1393 |
-- apply to the entity, linked using Next_Rep_Item, with Empty marking |
| 1394 |
-- the end of the list. In the case of derived types and subtypes, the |
| 1395 |
-- new entity inherits the chain at the point of declaration. This means |
| 1396 |
-- that it is possible to have multiple instances of the same kind of rep |
| 1397 |
-- item on the chain, in which case it is the first one that applies to |
| 1398 |
-- the entity. |
| 1399 |
-- |
| 1400 |
-- Note: pragmas that can apply to more than one overloadable entity, |
| 1401 |
-- (Convention, Interface, Inline, Inline_Always, Import, Export, |
| 1402 |
-- External) are never present on this chain when they apply to |
| 1403 |
-- overloadable entities, since it is impossible for a given pragma |
| 1404 |
-- to be on more than one chain at a time. |
| 1405 |
-- |
| 1406 |
-- For most representation items, the representation information is |
| 1407 |
-- reflected in other fields and flags in the entity. For example if a |
| 1408 |
-- record representation clause is present, the component entities |
| 1409 |
-- reflect the specified information. However, there are some items that |
| 1410 |
-- are only reflected in the chain. These include: |
| 1411 |
-- |
| 1412 |
-- Machine_Attribute pragma |
| 1413 |
-- Link_Alias pragma |
| 1414 |
-- Linker_Constructor pragma |
| 1415 |
-- Linker_Destructor pragma |
| 1416 |
-- Weak_External pragma |
| 1417 |
-- Thread_Local_Storage pragma |
| 1418 |
-- |
| 1419 |
-- If any of these items are present, then the flag Has_Gigi_Rep_Item is |
| 1420 |
-- set, indicating that the backend should search the chain. |
| 1421 |
-- |
| 1422 |
-- Other representation items are included in the chain so that error |
| 1423 |
-- messages can easily locate the relevant nodes for posting errors. |
| 1424 |
-- Note in particular that size clauses are defined only for this |
| 1425 |
-- purpose, and should only be accessed if Has_Size_Clause is set. |
| 1426 |
|
| 1427 |
-- Float_Rep [base type only] |
| 1428 |
-- Defined in floating-point entities. Contains a value of type |
| 1429 |
-- Float_Rep_Kind. Together with the Digits_Value uniquely defines |
| 1430 |
-- the floating-point representation to be used. |
| 1431 |
|
| 1432 |
-- Freeze_Node |
| 1433 |
-- Defined in all entities. If there is an associated freeze node for the |
| 1434 |
-- entity, this field references this freeze node. If no freeze node is |
| 1435 |
-- associated with the entity, then this field is Empty. See package |
| 1436 |
-- Freeze for further details. |
| 1437 |
|
| 1438 |
-- From_Limited_With |
| 1439 |
-- Defined in abtract states, package and type entities. Set to True when |
| 1440 |
-- the related entity is generated by the expansion of a limited with |
| 1441 |
-- clause. Such an entity is said to be a "shadow" - it acts as the |
| 1442 |
-- abstract view of a state or variable or as the incomplete view of a |
| 1443 |
-- type by inheriting relevant attributes from the said entity. |
| 1444 |
|
| 1445 |
-- Full_View |
| 1446 |
-- Defined in all type and subtype entities and in deferred constants. |
| 1447 |
-- References the entity for the corresponding full type or constant |
| 1448 |
-- declaration. For all types other than private and incomplete types, |
| 1449 |
-- this field always contains Empty. If an incomplete type E1 is |
| 1450 |
-- completed by a private type E2 whose full type declaration entity is |
| 1451 |
-- E3 then the full view of E1 is E2, and the full view of E2 is E3. See |
| 1452 |
-- also Underlying_Type. |
| 1453 |
|
| 1454 |
-- Generic_Homonym |
| 1455 |
-- Defined in generic packages. The generic homonym is the entity of |
| 1456 |
-- a renaming declaration inserted in every generic unit. It is used |
| 1457 |
-- to resolve the name of a local entity that is given by a qualified |
| 1458 |
-- name, when the generic entity itself is hidden by a local name. |
| 1459 |
|
| 1460 |
-- Generic_Renamings |
| 1461 |
-- Defined in package and subprogram instances. Holds mapping that |
| 1462 |
-- associates generic parameters with the corresponding instances, in |
| 1463 |
-- those cases where the instance is an entity. |
| 1464 |
|
| 1465 |
-- Handler_Records |
| 1466 |
-- Defined in subprogram and package entities. Points to a list of |
| 1467 |
-- identifiers referencing the handler record entities for the |
| 1468 |
-- corresponding unit. |
| 1469 |
|
| 1470 |
-- Has_Aliased_Components [implementation base type only] |
| 1471 |
-- Defined in array type entities. Indicates that the component type |
| 1472 |
-- of the array is aliased. Should this also be set for records to |
| 1473 |
-- indicate that at least one component is aliased (see processing in |
| 1474 |
-- Sem_Prag.Process_Atomic_Independent_Shared_Volatile???) |
| 1475 |
|
| 1476 |
-- Has_Alignment_Clause |
| 1477 |
-- Defined in all type entities and objects. Indicates if an alignment |
| 1478 |
-- clause has been given for the entity. If set, then Alignment_Clause |
| 1479 |
-- returns the N_Attribute_Definition node for the alignment attribute |
| 1480 |
-- definition clause. Note that it is possible for this flag to be False |
| 1481 |
-- even when Alignment_Clause returns non_Empty (this happens in the case |
| 1482 |
-- of derived type declarations). |
| 1483 |
|
| 1484 |
-- Has_All_Calls_Remote |
| 1485 |
-- Defined in all library unit entities. Set if the library unit has an |
| 1486 |
-- All_Calls_Remote pragma. Note that such entities must also be RCI |
| 1487 |
-- entities, so the flag Is_Remote_Call_Interface will always be set if |
| 1488 |
-- this flag is set. |
| 1489 |
|
| 1490 |
-- Has_Atomic_Components [implementation base type only] |
| 1491 |
-- Defined in all types and objects. Set only for an array type or |
| 1492 |
-- an array object if a valid pragma Atomic_Components applies to the |
| 1493 |
-- type or object. Note that in the case of an object, this flag is |
| 1494 |
-- only set on the object if there was an explicit pragma for the |
| 1495 |
-- object. In other words, the proper test for whether an object has |
| 1496 |
-- atomic components is to see if either the object or its base type |
| 1497 |
-- has this flag set. Note that in the case of a type, the pragma will |
| 1498 |
-- be chained to the rep item chain of the first subtype in the usual |
| 1499 |
-- manner. |
| 1500 |
|
| 1501 |
-- Has_Attach_Handler (synthesized) |
| 1502 |
-- Applies to record types that are constructed by the expander to |
| 1503 |
-- represent protected types. Returns True if there is at least one |
| 1504 |
-- Attach_Handler pragma in the corresponding specification. |
| 1505 |
|
| 1506 |
-- Has_Biased_Representation |
| 1507 |
-- Defined in discrete types (where it applies to the type'size value), |
| 1508 |
-- and to objects (both stand-alone and components), where it applies to |
| 1509 |
-- the size of the object from a size or record component clause. In |
| 1510 |
-- all cases it indicates that the size in question is smaller than |
| 1511 |
-- would normally be required, but that the size requirement can be |
| 1512 |
-- satisfied by using a biased representation, in which stored values |
| 1513 |
-- have the low bound (Expr_Value (Type_Low_Bound (T)) subtracted to |
| 1514 |
-- reduce the required size. For example, a type with a range of 1..2 |
| 1515 |
-- takes one bit, using 0 to represent 1 and 1 to represent 2. |
| 1516 |
-- |
| 1517 |
-- Note that in the object and component cases, the flag is only set if |
| 1518 |
-- the type is unbiased, but the object specifies a smaller size than the |
| 1519 |
-- size of the type, forcing biased representation for the object, but |
| 1520 |
-- the subtype is still an unbiased type. |
| 1521 |
|
| 1522 |
-- Has_Completion |
| 1523 |
-- Defined in all entities that require a completion (functions, |
| 1524 |
-- procedures, private types, limited private types, incomplete types, |
| 1525 |
-- constants and packages that require a body). The flag is set if the |
| 1526 |
-- completion has been encountered and analyzed. |
| 1527 |
|
| 1528 |
-- Has_Completion_In_Body |
| 1529 |
-- Defined in all entities for types and subtypes. Set only in "Taft |
| 1530 |
-- amendment types" (incomplete types whose full declaration appears in |
| 1531 |
-- the package body). |
| 1532 |
|
| 1533 |
-- Has_Complex_Representation [implementation base type only] |
| 1534 |
-- Defined in record types. Set only for a base type to which a valid |
| 1535 |
-- pragma Complex_Representation applies. |
| 1536 |
|
| 1537 |
-- Has_Component_Size_Clause [implementation base type only] |
| 1538 |
-- Defined in all type entities. Set if a component size clause is |
| 1539 |
-- Defined for the given type. Note that this flag can be False even |
| 1540 |
-- if Component_Size is non-zero (happens in the case of derived types). |
| 1541 |
|
| 1542 |
-- Has_Constrained_Partial_View [base type only] |
| 1543 |
-- Defined in private type and their completions, when the private |
| 1544 |
-- type has no discriminants and the full view has discriminants with |
| 1545 |
-- defaults. In Ada 2005 heap-allocated objects of such types are not |
| 1546 |
-- constrained, and can change their discriminants with full assignment. |
| 1547 |
-- |
| 1548 |
-- Ada 2012 has an additional rule (3.3. (23/10.3)) concerning objects |
| 1549 |
-- declared in a generic package body. Objects whose type is an untagged |
| 1550 |
-- generic formal private type are considered to have a constrained |
| 1551 |
-- partial view. The predicate Object_Type_Has_Constrained_Partial_View |
| 1552 |
-- in sem_aux is used to test for this case. |
| 1553 |
|
| 1554 |
-- Has_Contiguous_Rep |
| 1555 |
-- Defined in enumeration types. Set if the type has a representation |
| 1556 |
-- clause whose entries are successive integers. |
| 1557 |
|
| 1558 |
-- Has_Controlled_Component [base type only] |
| 1559 |
-- Defined in all type and subtype entities. Set only for composite type |
| 1560 |
-- entities which contain a component that either is a controlled type, |
| 1561 |
-- or itself contains controlled component (i.e. either Is_Controlled or |
| 1562 |
-- Has_Controlled_Component is set for at least one component). |
| 1563 |
|
| 1564 |
-- Has_Controlling_Result |
| 1565 |
-- Defined in E_Function entities. Set if the function is a primitive |
| 1566 |
-- function of a tagged type which can dispatch on result. Also set on |
| 1567 |
-- secondary stack thunks built for such a primitive function. |
| 1568 |
|
| 1569 |
-- Has_Convention_Pragma |
| 1570 |
-- Defined in all entities. Set for an entity for which a valid pragma |
| 1571 |
-- Convention, Import, or Export has been given. Used to prevent more |
| 1572 |
-- than one such pragma appearing for a given entity (RM B.1(45)). |
| 1573 |
|
| 1574 |
-- Has_Default_Aspect [base type only] |
| 1575 |
-- Defined in entities for types and subtypes, set for scalar types with |
| 1576 |
-- a Default_Value aspect and array types with a Default_Component_Value |
| 1577 |
-- aspect. If this flag is set, then a corresponding aspect specification |
| 1578 |
-- node will be present on the rep item chain for the entity. For a |
| 1579 |
-- derived type that inherits a default from its ancestor, the default |
| 1580 |
-- value is set, but it may be overridden by an aspect declaration on |
| 1581 |
-- type derivation. |
| 1582 |
|
| 1583 |
-- Has_Delayed_Aspects |
| 1584 |
-- Defined in all entities. Set if the Rep_Item chain for the entity has |
| 1585 |
-- one or more N_Aspect_Definition nodes chained which are not to be |
| 1586 |
-- evaluated till the freeze point. The aspect definition expression |
| 1587 |
-- clause has been preanalyzed to get visibility at the point of use, |
| 1588 |
-- but no other action has been taken. |
| 1589 |
|
| 1590 |
-- Has_Delayed_Freeze |
| 1591 |
-- Defined in all entities. Set to indicate that an explicit freeze |
| 1592 |
-- node must be generated for the entity at its freezing point. See |
| 1593 |
-- separate section ("Delayed Freezing and Elaboration") for details. |
| 1594 |
|
| 1595 |
-- Has_Delayed_Rep_Aspects |
| 1596 |
-- Defined in all types and subtypes. This flag is set if there is at |
| 1597 |
-- least one aspect for a representation characteristic that has to be |
| 1598 |
-- delayed and is one of the characteristics that may be inherited by |
| 1599 |
-- types derived from this type if not overridden. If this flag is set, |
| 1600 |
-- then types derived from this type have May_Inherit_Delayed_Rep_Aspects |
| 1601 |
-- set, signalling that Freeze.Inherit_Delayed_Rep_Aspects must be called |
| 1602 |
-- at the freeze point of the derived type. |
| 1603 |
|
| 1604 |
-- Has_DIC (synthesized) |
| 1605 |
-- Defined in all type entities. Set for a private type and its full view |
| 1606 |
-- when the type is subject to pragma Default_Initial_Condition (DIC), or |
| 1607 |
-- when the type inherits a DIC pragma from a parent type. |
| 1608 |
|
| 1609 |
-- Has_Discriminants |
| 1610 |
-- Defined in all types and subtypes. For types that are allowed to have |
| 1611 |
-- discriminants (record types and subtypes, task types and subtypes, |
| 1612 |
-- protected types and subtypes, private types, limited private types, |
| 1613 |
-- and incomplete types), indicates if the corresponding type or subtype |
| 1614 |
-- has a known discriminant part. Always false for all other types. |
| 1615 |
|
| 1616 |
-- Has_Dispatch_Table |
| 1617 |
-- Defined in E_Record_Types that are tagged. Set to indicate that the |
| 1618 |
-- corresponding dispatch table is already built. This flag is used to |
| 1619 |
-- avoid duplicate construction of library level dispatch tables (because |
| 1620 |
-- the declaration of library level objects cause premature construction |
| 1621 |
-- of the table); otherwise the code that builds the table is added at |
| 1622 |
-- the end of the list of declarations of the package. |
| 1623 |
|
| 1624 |
-- Has_Dynamic_Predicate_Aspect |
| 1625 |
-- Defined in all types and subtypes. Set if a Dynamic_Predicate aspect |
| 1626 |
-- was applied to the type or subtype. Generally we treat predicates as |
| 1627 |
-- static if possible, regardless of whether they are specified using |
| 1628 |
-- Predicate, Static_Predicate, or Dynamic_Predicate. And if a predicate |
| 1629 |
-- can be treated as static (i.e. its expression is predicate-static), |
| 1630 |
-- then the flag Has_Static_Predicate will be set True. But there are |
| 1631 |
-- cases where legality is affected by the presence of an explicit |
| 1632 |
-- Dynamic_Predicate aspect. For example, even if a predicate looks |
| 1633 |
-- static, you can't use it in a case statement if there is an explicit |
| 1634 |
-- Dynamic_Predicate aspect specified. So test Has_Static_Predicate if |
| 1635 |
-- you just want to know if the predicate can be evaluated statically, |
| 1636 |
-- but test Has_Dynamic_Predicate_Aspect to enforce legality rules about |
| 1637 |
-- the use of dynamic predicates. |
| 1638 |
|
| 1639 |
-- Has_Entries (synthesized) |
| 1640 |
-- Applies to concurrent types. True if any entries are declared |
| 1641 |
-- within the task or protected definition for the type. |
| 1642 |
|
| 1643 |
-- Has_Enumeration_Rep_Clause |
| 1644 |
-- Defined in enumeration types. Set if an enumeration representation |
| 1645 |
-- clause has been given for this enumeration type. Used to prevent more |
| 1646 |
-- than one enumeration representation clause for a given type. Note |
| 1647 |
-- that this does not imply a representation with holes, since the rep |
| 1648 |
-- clause may merely confirm the default 0..N representation. |
| 1649 |
|
| 1650 |
-- Has_First_Controlling_Parameter_Aspect |
| 1651 |
-- Defined in tagged types, concurrent types and concurrent record types. |
| 1652 |
-- Set to indicate that the type has a First_Controlling_Parameter of |
| 1653 |
-- True (whether by an aspect_specification, a pragma, or inheritance). |
| 1654 |
|
| 1655 |
-- Has_Exit |
| 1656 |
-- Defined in loop entities. Set if the loop contains an exit statement. |
| 1657 |
|
| 1658 |
-- Has_Expanded_Contract |
| 1659 |
-- Defined in functions, procedures, entries, and entry families. Set |
| 1660 |
-- when a subprogram has a N_Contract node that has been expanded. The |
| 1661 |
-- flag prevents double expansion of a contract when a construct is |
| 1662 |
-- rewritten into something else and subsequently reanalyzed/expanded. |
| 1663 |
|
| 1664 |
-- Has_Foreign_Convention (synthesized) |
| 1665 |
-- Applies to all entities. Determines if the Convention for the entity |
| 1666 |
-- is a foreign convention, i.e. non-native: other than Convention_Ada, |
| 1667 |
-- Convention_Intrinsic, Convention_Entry, Convention_Protected, |
| 1668 |
-- Convention_Stubbed and Convention_Ada_Pass_By_(Copy,Reference). |
| 1669 |
|
| 1670 |
-- Has_Forward_Instantiation |
| 1671 |
-- Defined in package entities. Set for packages that instantiate local |
| 1672 |
-- generic entities before the corresponding generic body has been seen. |
| 1673 |
-- If a package has a forward instantiation, we cannot inline subprograms |
| 1674 |
-- appearing in the same package because the placement requirements of |
| 1675 |
-- the instance will conflict with the linear elaboration of front-end |
| 1676 |
-- inlining. |
| 1677 |
|
| 1678 |
-- Has_Fully_Qualified_Name |
| 1679 |
-- Defined in all entities. Set if the name in the Chars field has been |
| 1680 |
-- replaced by the fully qualified name, as used for debug output. See |
| 1681 |
-- Exp_Dbug for a full description of the use of this flag and also the |
| 1682 |
-- related flag Has_Qualified_Name. |
| 1683 |
|
| 1684 |
-- Has_Ghost_Predicate_Aspect |
| 1685 |
-- Defined in all types and subtypes. Set if a Ghost_Predicate aspect |
| 1686 |
-- was explicitly applied to the type. |
| 1687 |
|
| 1688 |
-- Has_Gigi_Rep_Item |
| 1689 |
-- Defined in all entities. Set if the rep item chain (referenced by |
| 1690 |
-- First_Rep_Item and linked through the Next_Rep_Item chain) contains a |
| 1691 |
-- representation item that needs to be specially processed by the back |
| 1692 |
-- end, i.e. one of the following items: |
| 1693 |
-- |
| 1694 |
-- Machine_Attribute pragma |
| 1695 |
-- Linker_Alias pragma |
| 1696 |
-- Linker_Constructor pragma |
| 1697 |
-- Linker_Destructor pragma |
| 1698 |
-- Weak_External pragma |
| 1699 |
-- Thread_Local_Storage pragma |
| 1700 |
-- |
| 1701 |
-- If this flag is set, then the backend should scan the rep item chain |
| 1702 |
-- to process any of these items that appear. At least one such item will |
| 1703 |
-- be present. |
| 1704 |
-- |
| 1705 |
-- Has_Homonym |
| 1706 |
-- Defined in all entities. Set if an entity has a homonym in the same |
| 1707 |
-- scope. Used by the backend to generate unique names for all entities. |
| 1708 |
|
| 1709 |
-- Has_Implicit_Dereference |
| 1710 |
-- Defined in types and discriminants. Set if the type has an aspect |
| 1711 |
-- Implicit_Dereference. Set also on the discriminant named in the aspect |
| 1712 |
-- clause, to simplify type resolution. |
| 1713 |
|
| 1714 |
-- Has_Independent_Components [implementation base type only] |
| 1715 |
-- Defined in all types and objects. Set only for a record type or an |
| 1716 |
-- array type or array object if a valid pragma Independent_Components |
| 1717 |
-- applies to the type or object. Note that in the case of an object, |
| 1718 |
-- this flag is only set on the object if there was an explicit pragma |
| 1719 |
-- for the object. In other words, the proper test for whether an object |
| 1720 |
-- has independent components is to see if either the object or its base |
| 1721 |
-- type has this flag set. Note that in the case of a type, the pragma |
| 1722 |
-- will be chained to the rep item chain of the first subtype in the |
| 1723 |
-- usual manner. Also set if a pragma Has_Atomic_Components or pragma |
| 1724 |
-- Has_Aliased_Components applies to the type or object. |
| 1725 |
|
| 1726 |
-- Has_Inheritable_Invariants [base type only] |
| 1727 |
-- Defined in all type entities. Set on private types and interface types |
| 1728 |
-- which define at least one class-wide invariant. Such invariants must |
| 1729 |
-- be inherited by derived types. The flag is also set on the full view |
| 1730 |
-- of a private type for completeness. |
| 1731 |
|
| 1732 |
-- Has_Inherited_DIC [base type only] |
| 1733 |
-- Defined in all type entities. Set for a derived type which inherits |
| 1734 |
-- pragma Default_Initial_Condition from a parent type. |
| 1735 |
|
| 1736 |
-- Has_Inherited_Invariants [base type only] |
| 1737 |
-- Defined in all type entities. Set on private extensions and derived |
| 1738 |
-- types which inherit at least one class-wide invariant from a parent or |
| 1739 |
-- an interface type. The flag is also set on the full view of a private |
| 1740 |
-- extension for completeness. |
| 1741 |
|
| 1742 |
-- Has_Initial_Value |
| 1743 |
-- Defined in entities for variables and out parameters. Set if there |
| 1744 |
-- is an explicit initial value expression in the declaration of the |
| 1745 |
-- variable. Note that this is set only if this initial value is |
| 1746 |
-- explicit, it is not set for the case of implicit initialization |
| 1747 |
-- of access types or controlled types. Always set to False for out |
| 1748 |
-- parameters. Also defined in entities for in and in-out parameters, |
| 1749 |
-- but always false in these cases. |
| 1750 |
|
| 1751 |
-- Has_Interrupt_Handler (synthesized) |
| 1752 |
-- Applies to all protected type entities. Set if the protected type |
| 1753 |
-- definition contains at least one procedure to which a pragma |
| 1754 |
-- Interrupt_Handler applies. |
| 1755 |
|
| 1756 |
-- Has_Invariants (synthesized) |
| 1757 |
-- Defined in all type entities. True if the type defines at least one |
| 1758 |
-- invariant of its own or inherits at least one class-wide invariant |
| 1759 |
-- from a parent type or an interface. |
| 1760 |
|
| 1761 |
-- Has_Limited_View (synth) |
| 1762 |
-- Defined in all entities. True for non-generic package entities that |
| 1763 |
-- are non-instances and their Limited_View attribute is present. |
| 1764 |
|
| 1765 |
-- Has_Loop_Entry_Attributes |
| 1766 |
-- Defined in E_Loop entities. Set when the loop is subject to at least |
| 1767 |
-- one attribute 'Loop_Entry. The flag also implies that the loop has |
| 1768 |
-- already been transformed. See Expand_Loop_Entry_Attribute for details. |
| 1769 |
|
| 1770 |
-- Has_Machine_Radix_Clause |
| 1771 |
-- Defined in decimal types and subtypes, set if a Machine_Radix |
| 1772 |
-- representation clause is present. This flag is used to detect |
| 1773 |
-- the error of multiple machine radix clauses for a single type. |
| 1774 |
|
| 1775 |
-- Has_Master_Entity |
| 1776 |
-- Defined in entities that can appear in the scope stack (see spec |
| 1777 |
-- of Sem). It is set if a task master entity (_master) has been |
| 1778 |
-- declared and initialized in the corresponding scope. |
| 1779 |
|
| 1780 |
-- Has_Missing_Return |
| 1781 |
-- Defined in functions and generic functions. Set if there is one or |
| 1782 |
-- more missing return statements in the function. This is used to |
| 1783 |
-- control wrapping of the body in Exp_Ch6 to ensure that the program |
| 1784 |
-- error exception is correctly raised in this case at run time. |
| 1785 |
|
| 1786 |
-- Has_Nested_Block_With_Handler |
| 1787 |
-- Defined in scope entities. Set if there is a nested block within the |
| 1788 |
-- scope that has an exception handler and the two scopes are in the |
| 1789 |
-- same procedure. This is used by the backend for controlling certain |
| 1790 |
-- optimizations to ensure that they are consistent with exceptions. |
| 1791 |
-- See documentation in backend for further details. |
| 1792 |
|
| 1793 |
-- Has_Nested_Subprogram |
| 1794 |
-- Defined in subprogram entities. Set for a subprogram which contains at |
| 1795 |
-- least one nested subprogram. |
| 1796 |
|
| 1797 |
-- Has_Non_Limited_View (synth) |
| 1798 |
-- Defined in E_Incomplete_Type, E_Incomplete_Subtype, E_Class_Wide_Type, |
| 1799 |
-- E_Abstract_State entities. True if their Non_Limited_View attribute |
| 1800 |
-- is present. |
| 1801 |
|
| 1802 |
-- Has_Non_Null_Abstract_State (synth) |
| 1803 |
-- Defined in package entities. True if the package is subject to a non- |
| 1804 |
-- null Abstract_State aspect/pragma. |
| 1805 |
|
| 1806 |
-- Has_Non_Null_Visible_Refinement (synth) |
| 1807 |
-- Defined in E_Abstract_State entities. True if the state has a visible |
| 1808 |
-- refinement of at least one variable or state constituent as expressed |
| 1809 |
-- in aspect/pragma Refined_State. |
| 1810 |
|
| 1811 |
-- Has_Non_Standard_Rep [implementation base type only] |
| 1812 |
-- Defined in all type entities. Set when some representation clause |
| 1813 |
-- or pragma causes the representation of the item to be significantly |
| 1814 |
-- modified. In this category are changes of small or radix for a |
| 1815 |
-- fixed-point type, change of component size for an array, and record |
| 1816 |
-- or enumeration representation clauses, as well as packed pragmas. |
| 1817 |
-- All other representation clauses (e.g. Size and Alignment clauses) |
| 1818 |
-- are not considered to be significant since they do not affect |
| 1819 |
-- stored bit patterns. |
| 1820 |
|
| 1821 |
-- Has_Null_Abstract_State (synth) |
| 1822 |
-- Defined in package entities. True if the package is subject to a null |
| 1823 |
-- Abstract_State aspect/pragma. |
| 1824 |
|
| 1825 |
-- Has_Null_Visible_Refinement (synth) |
| 1826 |
-- Defined in E_Abstract_State entities. True if the state has a visible |
| 1827 |
-- null refinement as expressed in aspect/pragma Refined_State. |
| 1828 |
|
| 1829 |
-- Has_Object_Size_Clause |
| 1830 |
-- Defined in entities for types and subtypes. Set if an Object_Size |
| 1831 |
-- clause has been processed for the type. Used to prevent multiple |
| 1832 |
-- Object_Size clauses for a given entity. |
| 1833 |
|
| 1834 |
-- Has_Out_Or_In_Out_Parameter |
| 1835 |
-- Present in subprograms, generic subprograms, entries, and entry |
| 1836 |
-- families. Set if they have at least one OUT or IN OUT parameter |
| 1837 |
-- (allowed for functions only in Ada 2012). |
| 1838 |
|
| 1839 |
-- Has_Own_DIC [base type only] |
| 1840 |
-- Defined in all type entities. Set for a private type and its full view |
| 1841 |
-- (and its underlying full view, if the full view is itself private) |
| 1842 |
-- when the type is subject to pragma Default_Initial_Condition. |
| 1843 |
|
| 1844 |
-- Has_Own_Invariants [base type only] |
| 1845 |
-- Defined in all type entities. Set on any type that defines at least |
| 1846 |
-- one invariant of its own. |
| 1847 |
|
| 1848 |
-- Note: this flag is set on both partial and full view of types to which |
| 1849 |
-- an Invariant pragma or aspect applies, and on the underlying full view |
| 1850 |
-- if the full view is private. |
| 1851 |
|
| 1852 |
-- Has_Partial_Visible_Refinement |
| 1853 |
-- Defined in E_Abstract_State entities. Set when a state has at least |
| 1854 |
-- one refinement constituent subject to indicator Part_Of, and analysis |
| 1855 |
-- is in the region between the declaration of the first constituent for |
| 1856 |
-- this abstract state (in the private part of the package) and the end |
| 1857 |
-- of the package spec or body with visibility over this private part |
| 1858 |
-- (which includes the package itself and its child packages). |
| 1859 |
|
| 1860 |
-- Has_Per_Object_Constraint |
| 1861 |
-- Defined in E_Component entities. Set if the subtype of the component |
| 1862 |
-- has a per object constraint. Per object constraints result from the |
| 1863 |
-- following situations: |
| 1864 |
-- |
| 1865 |
-- 1. N_Attribute_Reference - when the prefix is the enclosing type and |
| 1866 |
-- the attribute is Access. |
| 1867 |
-- 2. N_Discriminant_Association - when the expression uses the |
| 1868 |
-- discriminant of the enclosing type. |
| 1869 |
-- 3. N_Index_Or_Discriminant_Constraint - when at least one of the |
| 1870 |
-- individual constraints is a per object constraint. |
| 1871 |
-- 4. N_Range - when the lower or upper bound uses the discriminant of |
| 1872 |
-- the enclosing type. |
| 1873 |
-- 5. N_Range_Constraint - when the range expression uses the |
| 1874 |
-- discriminant of the enclosing type. |
| 1875 |
|
| 1876 |
-- Has_Pragma_Controlled [implementation base type only] |
| 1877 |
-- Defined in access type entities. It is set if a pragma Controlled |
| 1878 |
-- applies to the access type. |
| 1879 |
|
| 1880 |
-- Has_Pragma_Elaborate_Body |
| 1881 |
-- Defined in all entities. Set in compilation unit entities if a |
| 1882 |
-- pragma Elaborate_Body applies to the compilation unit. |
| 1883 |
|
| 1884 |
-- Has_Pragma_Inline |
| 1885 |
-- Defined in all entities. Set for functions and procedures for which a |
| 1886 |
-- pragma Inline or Inline_Always applies to the subprogram. Note that |
| 1887 |
-- this flag can be set even if Is_Inlined is not set. This happens for |
| 1888 |
-- pragma Inline (if Inline_Active is False). In other words, the flag |
| 1889 |
-- Has_Pragma_Inline represents the formal semantic status, and is used |
| 1890 |
-- for checking semantic correctness. The flag Is_Inlined indicates |
| 1891 |
-- whether inlining is actually active for the entity. |
| 1892 |
|
| 1893 |
-- Has_Pragma_Inline_Always |
| 1894 |
-- Defined in all entities. Set for functions and procedures for which a |
| 1895 |
-- pragma Inline_Always applies. Note that if this flag is set, the flag |
| 1896 |
-- Has_Pragma_Inline is also set. |
| 1897 |
|
| 1898 |
-- Has_Pragma_No_Inline |
| 1899 |
-- Defined in all entities. Set for functions and procedures for which a |
| 1900 |
-- pragma No_Inline applies. Note that if this flag is set, the flag |
| 1901 |
-- Has_Pragma_Inline_Always cannot be set. |
| 1902 |
|
| 1903 |
-- Has_Pragma_Ordered [implementation base type only] |
| 1904 |
-- Defined in entities for enumeration types. If set indicates that a |
| 1905 |
-- valid pragma Ordered was given for the type. This flag is inherited |
| 1906 |
-- by derived enumeration types. We don't need to distinguish the derived |
| 1907 |
-- case since we allow multiple occurrences of this pragma anyway. |
| 1908 |
|
| 1909 |
-- Has_Pragma_Pack [implementation base type only] |
| 1910 |
-- Defined in array and record type entities. If set, indicates that a |
| 1911 |
-- valid pragma Pack was given for the type. Note that this flag is not |
| 1912 |
-- inherited by derived type. See also the Is_Packed flag. |
| 1913 |
|
| 1914 |
-- Has_Pragma_Preelab_Init |
| 1915 |
-- Defined in type and subtype entities. If set indicates that a valid |
| 1916 |
-- pragma Preelaborable_Initialization applies to the type. |
| 1917 |
|
| 1918 |
-- Has_Pragma_Pure |
| 1919 |
-- Defined in all entities. If set, indicates that a valid pragma Pure |
| 1920 |
-- was given for the entity. In some cases, we need to test whether |
| 1921 |
-- Is_Pure was explicitly set using this pragma. |
| 1922 |
|
| 1923 |
-- Has_Pragma_Pure_Function |
| 1924 |
-- Defined in all entities. If set, indicates that a valid pragma |
| 1925 |
-- Pure_Function was given for the entity. In some cases, we need to test |
| 1926 |
-- whether Is_Pure was explicitly set using this pragma. We also set |
| 1927 |
-- this flag for some internal entities that we know should be treated |
| 1928 |
-- as pure for optimization purposes. |
| 1929 |
|
| 1930 |
-- Has_Pragma_Thread_Local_Storage |
| 1931 |
-- Defined in all entities. If set, indicates that a valid pragma |
| 1932 |
-- Thread_Local_Storage was given for the entity. |
| 1933 |
|
| 1934 |
-- Has_Pragma_Unmodified |
| 1935 |
-- Defined in all entities. Can only be set for variables (E_Variable, |
| 1936 |
-- E_Out_Parameter, E_In_Out_Parameter). Set if a valid pragma Unmodified |
| 1937 |
-- applies to the variable, indicating that no warning should be given |
| 1938 |
-- if the entity is never modified. Note that clients should generally |
| 1939 |
-- not test this flag directly, but instead use function Has_Unmodified. |
| 1940 |
|
| 1941 |
-- Has_Pragma_Unreferenced |
| 1942 |
-- Defined in all entities. Set if a valid pragma Unreferenced applies |
| 1943 |
-- to the entity, indicating that no warning should be given if the |
| 1944 |
-- entity has no references, but a warning should be given if it is |
| 1945 |
-- in fact referenced. For private types, this flag is set in both the |
| 1946 |
-- private entity and full entity if the pragma applies to either. Note |
| 1947 |
-- that clients should generally not test this flag directly, but instead |
| 1948 |
-- use function Has_Unreferenced. |
| 1949 |
|
| 1950 |
-- Has_Pragma_Unreferenced_Objects |
| 1951 |
-- Defined in all entities. Set if a valid pragma Unused applies to an |
| 1952 |
-- entity, indicating that warnings should be given if the entity is |
| 1953 |
-- modified or referenced. This pragma is equivalent to a pair of |
| 1954 |
-- Unmodified and Unreferenced pragmas. |
| 1955 |
|
| 1956 |
-- Has_Pragma_Unused |
| 1957 |
-- Defined in all entities. Set if a valid pragma Unused applies to a |
| 1958 |
-- variable or entity, indicating that warnings should not be given if |
| 1959 |
-- it is never modified or referenced. Note: This pragma is exactly |
| 1960 |
-- equivalent Unmodified and Unreference combined. |
| 1961 |
|
| 1962 |
-- Has_Predicates |
| 1963 |
-- Defined in type and subtype entities. Set if a pragma Predicate or |
| 1964 |
-- Predicate aspect applies to the type or subtype, or if it inherits a |
| 1965 |
-- Predicate aspect from its parent or progenitor types. |
| 1966 |
-- |
| 1967 |
-- Note: this flag is set on both partial and full view of types to which |
| 1968 |
-- a Predicate pragma or aspect applies, and on the underlying full view |
| 1969 |
-- if the full view is private. |
| 1970 |
|
| 1971 |
-- Has_Primitive_Operations [base type only] |
| 1972 |
-- Defined in all type entities. Set if at least one primitive operation |
| 1973 |
-- is defined for the type. |
| 1974 |
|
| 1975 |
-- Has_Private_Ancestor |
| 1976 |
-- Applies to derived record types. True if an ancestor is derived from a |
| 1977 |
-- private type, making some components invisible and aggregates illegal. |
| 1978 |
-- This flag is set at the point of derivation. The legality of the |
| 1979 |
-- aggregate must be rechecked because it also depends on the visibility |
| 1980 |
-- at the point the aggregate is resolved. See sem_aggr.adb. This is part |
| 1981 |
-- of AI05-0115. |
| 1982 |
|
| 1983 |
-- Has_Private_Declaration |
| 1984 |
-- Defined in all entities. Set if it is the defining entity of a private |
| 1985 |
-- type declaration or its corresponding full declaration. This flag is |
| 1986 |
-- thus preserved when the full and the partial views are exchanged, to |
| 1987 |
-- indicate if a full type declaration is a completion. Used for semantic |
| 1988 |
-- checks in E.4(18) and elsewhere. |
| 1989 |
|
| 1990 |
-- Has_Private_Extension |
| 1991 |
-- Defined in tagged types. Set to indicate that the tagged type has some |
| 1992 |
-- private extension. Used to report a warning on public primitives added |
| 1993 |
-- after defining its private extensions. |
| 1994 |
|
| 1995 |
-- Has_Protected [base type only] |
| 1996 |
-- Defined in all type entities. Set on protected types themselves, and |
| 1997 |
-- also (recursively) on any composite type which has a component for |
| 1998 |
-- which Has_Protected is set, unless the protected type is declared in |
| 1999 |
-- the private part of an internal unit. The meaning is that restrictions |
| 2000 |
-- for protected types apply to this type. Note: the flag is not set on |
| 2001 |
-- access types, even if they designate an object that Has_Protected. |
| 2002 |
|
| 2003 |
-- Has_Qualified_Name |
| 2004 |
-- Defined in all entities. Set if the name in the Chars field has |
| 2005 |
-- been replaced by its qualified name, as used for debug output. See |
| 2006 |
-- Exp_Dbug for a full description of qualification requirements. For |
| 2007 |
-- some entities, the name is the fully qualified name, but there are |
| 2008 |
-- exceptions. In particular, for local variables in procedures, we |
| 2009 |
-- do not include the procedure itself or higher scopes. See also the |
| 2010 |
-- flag Has_Fully_Qualified_Name, which is set if the name does indeed |
| 2011 |
-- include the fully qualified name. |
| 2012 |
|
| 2013 |
-- Has_RACW |
| 2014 |
-- Defined in package spec entities. Set if the spec contains the |
| 2015 |
-- declaration of a remote access-to-classwide type. |
| 2016 |
|
| 2017 |
-- Has_Record_Rep_Clause [implementation base type only] |
| 2018 |
-- Defined in record types. Set if a record representation clause has |
| 2019 |
-- been given for this record type. Used to prevent more than one such |
| 2020 |
-- clause for a given record type. Note that this is initially cleared |
| 2021 |
-- for a derived type, even though the representation is inherited. See |
| 2022 |
-- also the flag Has_Specified_Layout. |
| 2023 |
|
| 2024 |
-- Has_Recursive_Call |
| 2025 |
-- Defined in procedures. Set if a direct parameterless recursive call |
| 2026 |
-- is detected while analyzing the body. Used to activate some error |
| 2027 |
-- checks for infinite recursion. |
| 2028 |
|
| 2029 |
-- Has_Relaxed_Finalization [base type only] |
| 2030 |
-- Defined in all type entities. Set only for controlled types and types |
| 2031 |
-- with controlled components. Indicates that the type is subject to the |
| 2032 |
-- relaxed semantics for the finalization operations. These semantics are |
| 2033 |
-- made up of two independent parts: |
| 2034 |
-- |
| 2035 |
-- 1. The compiler is permitted to perform no automatic finalization of |
| 2036 |
-- heap-allocated objects: Finalize is only called when the object is |
| 2037 |
-- explicitly deallocated, or when the object is assigned a new value. |
| 2038 |
-- As a consequence, no finalization collection is created for access |
| 2039 |
-- types designating the type, and no header is allocated in front of |
| 2040 |
-- heap-allocated objects of the type. |
| 2041 |
-- |
| 2042 |
-- 2. If an exception is raised out of the Adjust or Finalize procedures, |
| 2043 |
-- the compiler is permitted to enforce none of the guarantees given |
| 2044 |
-- by the RM 7.6.1(14/1) and following subclauses, and to instead just |
| 2045 |
-- let the exception be propagated upward. |
| 2046 |
|
| 2047 |
-- Has_Shift_Operator [base type only] |
| 2048 |
-- Defined in integer types. Set in the base type of an integer type for |
| 2049 |
-- which at least one of the shift operators is defined. |
| 2050 |
|
| 2051 |
-- Has_Size_Clause |
| 2052 |
-- Defined in entities for types and objects. Set if a size or value size |
| 2053 |
-- clause is defined for the entity. Used to prevent multiple clauses |
| 2054 |
-- for a given entity. Note that it is always initially cleared for a |
| 2055 |
-- derived type, even though the Size or Value_Size clause for such a |
| 2056 |
-- type might be inherited from an ancestor type. |
| 2057 |
|
| 2058 |
-- Has_Small_Clause |
| 2059 |
-- Defined in ordinary fixed point types (but not subtypes). Indicates |
| 2060 |
-- that a small clause has been given for the entity. Used to prevent |
| 2061 |
-- multiple Small clauses for a given entity. Note that it is always |
| 2062 |
-- initially cleared for a derived type, even though the Small for such |
| 2063 |
-- a type is inherited from a Small clause given for the parent type. |
| 2064 |
|
| 2065 |
-- Has_Specified_Layout [implementation base type only] |
| 2066 |
-- Defined in all type entities. Set for a record type or subtype if |
| 2067 |
-- the record layout has been specified by a record representation |
| 2068 |
-- clause. Note that this differs from the flag Has_Record_Rep_Clause |
| 2069 |
-- in that it is inherited by a derived type. Has_Record_Rep_Clause is |
| 2070 |
-- used to indicate that the type is mentioned explicitly in a record |
| 2071 |
-- representation clause, and thus is not inherited by a derived type. |
| 2072 |
-- This flag is always False for non-record types. |
| 2073 |
|
| 2074 |
-- Has_Specified_Stream_Input |
| 2075 |
-- Has_Specified_Stream_Output |
| 2076 |
-- Has_Specified_Stream_Read |
| 2077 |
-- Has_Specified_Stream_Write |
| 2078 |
-- Defined in all type and subtype entities. Set for a given view if the |
| 2079 |
-- corresponding stream-oriented attribute has been defined by an |
| 2080 |
-- attribute definition clause. When such a clause occurs, a TSS is set |
| 2081 |
-- on the underlying full view; the flags are used to track visibility of |
| 2082 |
-- the attribute definition clause for partial or incomplete views. |
| 2083 |
|
| 2084 |
-- Has_Static_Discriminants |
| 2085 |
-- Defined in record subtypes constrained by discriminant values. Set if |
| 2086 |
-- all the discriminant values have static values, meaning that in the |
| 2087 |
-- case of a variant record, the component list can be trimmed down to |
| 2088 |
-- include only the components corresponding to these discriminants. |
| 2089 |
|
| 2090 |
-- Has_Static_Predicate |
| 2091 |
-- Defined in all types and subtypes. Set if the type (which must be a |
| 2092 |
-- scalar type) has a predicate whose expression is predicate-static. |
| 2093 |
-- This can result from the use of any Predicate, Static_Predicate, or |
| 2094 |
-- Dynamic_Predicate aspect. We can distinguish these cases by testing |
| 2095 |
-- Has_Static_Predicate_Aspect and Has_Dynamic_Predicate_Aspect. See |
| 2096 |
-- description of the latter flag for further information on dynamic |
| 2097 |
-- predicates which are also static. |
| 2098 |
|
| 2099 |
-- Has_Static_Predicate_Aspect |
| 2100 |
-- Defined in all types and subtypes. Set if a Static_Predicate aspect |
| 2101 |
-- applies to the type. Note that we can tell if a static predicate is |
| 2102 |
-- present by looking at Has_Static_Predicate, but this could have come |
| 2103 |
-- from a Predicate aspect or pragma or even from a Dynamic_Predicate |
| 2104 |
-- aspect. When we need to know the difference (e.g. to know what set of |
| 2105 |
-- check policies apply, use this flag and Has_Dynamic_Predicate_Aspect |
| 2106 |
-- to determine which case we have). |
| 2107 |
|
| 2108 |
-- Has_Storage_Size_Clause [implementation base type only] |
| 2109 |
-- Defined in task types and access types. It is set if a Storage_Size |
| 2110 |
-- clause is present for the type. Used to prevent multiple clauses for |
| 2111 |
-- one type. Note that this flag is initially cleared for a derived type |
| 2112 |
-- even though the Storage_Size for such a type is inherited from a |
| 2113 |
-- Storage_Size clause given for the parent type. Note that in the case |
| 2114 |
-- of access types, this flag is defined only in the root type, since a |
| 2115 |
-- storage size clause cannot be given to a derived type. |
| 2116 |
|
| 2117 |
-- Has_Stream_Size_Clause |
| 2118 |
-- Defined in all entities. It is set for types which have a Stream_Size |
| 2119 |
-- clause attribute. Used to prevent multiple Stream_Size clauses for a |
| 2120 |
-- given entity, and also whether it is necessary to check for a stream |
| 2121 |
-- size clause. |
| 2122 |
|
| 2123 |
-- Has_Task [base type only] |
| 2124 |
-- Defined in all type entities. Set on task types themselves, and also |
| 2125 |
-- (recursively) on any composite type which has a component for which |
| 2126 |
-- Has_Task is set. The meaning is that an allocator or declaration of |
| 2127 |
-- such an object must create the required tasks. Note: the flag is not |
| 2128 |
-- set on access types, even if they designate an object that Has_Task. |
| 2129 |
|
| 2130 |
-- Has_Timing_Event [base type only] |
| 2131 |
-- Defined in all type entities. Set on language defined type |
| 2132 |
-- Ada.Real_Time.Timing_Events.Timing_Event, and also (recursively) on |
| 2133 |
-- any composite type which has a component for which Has_Timing_Event |
| 2134 |
-- is set. Used for the No_Local_Timing_Event restriction. |
| 2135 |
|
| 2136 |
-- Has_Thunks |
| 2137 |
-- Applies to E_Constant entities marked Is_Tag. True for secondary tag |
| 2138 |
-- referencing a dispatch table whose contents are pointers to thunks. |
| 2139 |
|
| 2140 |
-- Has_Unchecked_Union [base type only] |
| 2141 |
-- Defined in all type entities. Set on unchecked unions themselves |
| 2142 |
-- and (recursively) on any composite type which has a component for |
| 2143 |
-- which Has_Unchecked_Union is set. The meaning is that a comparison |
| 2144 |
-- operation or 'Valid_Scalars reference for the type is not permitted. |
| 2145 |
-- Note that the flag is not set on access types, even if they designate |
| 2146 |
-- an object that has the flag Has_Unchecked_Union set. |
| 2147 |
|
| 2148 |
-- Has_Unknown_Discriminants |
| 2149 |
-- Defined in all entities. Set for types with unknown discriminants. |
| 2150 |
-- Types can have unknown discriminants either from their declaration or |
| 2151 |
-- through type derivation. The use of this flag exactly meets the spec |
| 2152 |
-- in RM 3.7(26). Note that all class-wide types are considered to have |
| 2153 |
-- unknown discriminants. Note that both flags Has_Discriminants and |
| 2154 |
-- Has_Unknown_Discriminants may be true for a type. Class-wide types and |
| 2155 |
-- their subtypes have unknown discriminants and can have declared ones |
| 2156 |
-- as well. Private types declared with unknown discriminants may have a |
| 2157 |
-- full view that has explicit discriminants, and both flag will be set |
| 2158 |
-- on the partial view, to ensure that discriminants are properly |
| 2159 |
-- inherited in certain contexts. |
| 2160 |
|
| 2161 |
-- Has_Visible_Refinement |
| 2162 |
-- Defined in E_Abstract_State entities. Set when a state has at least |
| 2163 |
-- one refinement constituent and analysis is in the region between |
| 2164 |
-- pragma Refined_State and the end of the package body declarations. |
| 2165 |
|
| 2166 |
-- Has_Volatile_Components [implementation base type only] |
| 2167 |
-- Defined in all types and objects. Set only for an array type or array |
| 2168 |
-- object if a valid pragma Volatile_Components or a valid pragma |
| 2169 |
-- Atomic_Components applies to the type or object. Note that in the case |
| 2170 |
-- of an object, this flag is only set on the object if there was an |
| 2171 |
-- explicit pragma for the object. In other words, the proper test for |
| 2172 |
-- whether an object has volatile components is to see if either the |
| 2173 |
-- object or its base type has this flag set. Note that in the case of a |
| 2174 |
-- type the pragma will be chained to the rep item chain of the first |
| 2175 |
-- subtype in the usual manner. |
| 2176 |
|
| 2177 |
-- Has_Xref_Entry |
| 2178 |
-- Defined in all entities. Set if an entity has an entry in the Xref |
| 2179 |
-- information generated in ali files. This is true for all source |
| 2180 |
-- entities in the extended main source file. It is also true of entities |
| 2181 |
-- in other packages that are referenced directly or indirectly from the |
| 2182 |
-- main source file (indirect reference occurs when the main source file |
| 2183 |
-- references an entity with a type reference. See package Lib.Xref for |
| 2184 |
-- further details). |
| 2185 |
|
| 2186 |
-- Has_Yield_Aspect |
| 2187 |
-- Defined in subprograms, generic subprograms, entries, entry families. |
| 2188 |
-- Set if the entity has aspect Yield. |
| 2189 |
|
| 2190 |
-- Hiding_Loop_Variable |
| 2191 |
-- Defined in variables. Set only if a variable of a discrete type is |
| 2192 |
-- hidden by a loop variable in the same local scope, in which case |
| 2193 |
-- the Hiding_Loop_Variable field of the hidden variable points to |
| 2194 |
-- the E_Loop_Parameter entity doing the hiding. Used in processing |
| 2195 |
-- warning messages if the hidden variable turns out to be unused |
| 2196 |
-- or is referenced without being set. |
| 2197 |
|
| 2198 |
-- Hidden_In_Formal_Instance |
| 2199 |
-- Defined on actuals for formal packages. Entities on the list are |
| 2200 |
-- formals that are hidden outside of the formal package when this |
| 2201 |
-- package is not declared with a box, or the formal itself is not |
| 2202 |
-- defaulted (see RM 12.7 (10)). Their visibility is restored on exit |
| 2203 |
-- from the current generic, because the actual for the formal package |
| 2204 |
-- may be used subsequently in the current unit. |
| 2205 |
|
| 2206 |
-- Homonym |
| 2207 |
-- Defined in all entities. Link for list of entities that have the |
| 2208 |
-- same source name and that are declared in the same or enclosing |
| 2209 |
-- scopes. Homonyms in the same scope are overloaded. Used for name |
| 2210 |
-- resolution and for the generation of debugging information. |
| 2211 |
|
| 2212 |
-- Ignore_SPARK_Mode_Pragmas |
| 2213 |
-- Present in concurrent type, entry, operator, [generic] package, |
| 2214 |
-- package body, [generic] subprogram, and subprogram body entities. |
| 2215 |
-- Set when the entity appears in an instance subject to SPARK_Mode |
| 2216 |
-- "off" and indicates that all SPARK_Mode pragmas found within must |
| 2217 |
-- be ignored. |
| 2218 |
|
| 2219 |
-- Ignored_Class_Postconditions |
| 2220 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 2221 |
-- postconditions. Denotes the (and-then) expression built by merging |
| 2222 |
-- inherited ignored class-wide postconditions with its own ignored |
| 2223 |
-- class-wide postconditions. |
| 2224 |
|
| 2225 |
-- Ignored_Class_Preconditions |
| 2226 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 2227 |
-- preconditions. Denotes the (or-else) expression built by merging |
| 2228 |
-- inherited ignored class-wide preconditions with its own ignored |
| 2229 |
-- class-wide preconditions. |
| 2230 |
|
| 2231 |
-- Implementation_Base_Type (synthesized) |
| 2232 |
-- Applies to all entities. For types, similar to Base_Type, but never |
| 2233 |
-- returns a private type when applied to a non-private type. Instead in |
| 2234 |
-- this case, it always returns the Underlying_Type of the base type, so |
| 2235 |
-- that we still have a concrete type. For entities other than types, |
| 2236 |
-- returns the entity unchanged. |
| 2237 |
|
| 2238 |
-- Import_Pragma |
| 2239 |
-- Defined in subprogram entities. Set if a valid pragma Import or pragma |
| 2240 |
-- Import_Function or pragma Import_Procedure applies to the subprogram, |
| 2241 |
-- in which case this field points to the pragma (we can't use the normal |
| 2242 |
-- Rep_Item chain mechanism, because a single pragma Import can apply |
| 2243 |
-- to multiple subprogram entities). |
| 2244 |
|
| 2245 |
-- In_Package_Body |
| 2246 |
-- Defined in package entities. Set on the entity that denotes the |
| 2247 |
-- package (the defining occurrence of the package declaration) while |
| 2248 |
-- analyzing and expanding the package body. Reset on completion of |
| 2249 |
-- analysis/expansion. |
| 2250 |
|
| 2251 |
-- In_Private_Part |
| 2252 |
-- Defined in all entities. Can be set only in package entities and |
| 2253 |
-- objects. For package entities, this flag is set to indicate that the |
| 2254 |
-- private part of the package is being analyzed. The flag is reset at |
| 2255 |
-- the end of the package declaration. For objects it indicates that the |
| 2256 |
-- declaration of the object occurs in the private part of a package. |
| 2257 |
|
| 2258 |
-- Incomplete_Actuals |
| 2259 |
-- Defined on package entities that are instances. Indicates the actuals |
| 2260 |
-- types in the instantiation that are limited views. If this list is |
| 2261 |
-- not empty, the instantiation, which appears in a package declaration, |
| 2262 |
-- is relocated to the corresponding package body, which must have a |
| 2263 |
-- corresponding nonlimited with_clause. |
| 2264 |
|
| 2265 |
-- Indirect_Call_Wrapper |
| 2266 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 2267 |
-- preconditions. Denotes the internal wrapper that checks preconditions |
| 2268 |
-- and invokes the subprogram body. Subp'Access points to the indirect |
| 2269 |
-- call wrapper if available. |
| 2270 |
|
| 2271 |
-- Initialization_Statements |
| 2272 |
-- Defined in constants and variables. For a composite object coming from |
| 2273 |
-- source and initialized with an aggregate or a call expanded in place, |
| 2274 |
-- points to a compound statement containing the assignment(s). This is |
| 2275 |
-- used for a couple of purposes: 1) to defer the initialization to the |
| 2276 |
-- freeze point if an address clause or a delayed aspect is present for |
| 2277 |
-- the object, 2) to cancel initialization of imported objects generated |
| 2278 |
-- by Initialize_Scalars or Normalize_Scalars before the pragma Import is |
| 2279 |
-- encountered for the object. |
| 2280 |
|
| 2281 |
-- Inner_Instances |
| 2282 |
-- Defined in generic units. Contains element list of units that are |
| 2283 |
-- instantiated within the given generic. Used to diagnose circular |
| 2284 |
-- instantiations. |
| 2285 |
|
| 2286 |
-- Interface_Alias |
| 2287 |
-- Defined in subprograms that cover a primitive operation of an abstract |
| 2288 |
-- interface type. Can be set only if the Is_Hidden flag is also set, |
| 2289 |
-- since such entities are always hidden. Points to its associated |
| 2290 |
-- interface subprogram. It is used to register the subprogram in |
| 2291 |
-- secondary dispatch table of the interface (Ada 2005: AI-251). |
| 2292 |
|
| 2293 |
-- Interface_Name |
| 2294 |
-- Defined in constants, variables, exceptions, functions, procedures, |
| 2295 |
-- and packages. Set to Empty unless an export, import, or interface name |
| 2296 |
-- pragma has explicitly specified an external name, in which case it |
| 2297 |
-- references an N_String_Literal node for the specified external name. |
| 2298 |
-- Note that if this field is Empty, and Is_Imported or Is_Exported is |
| 2299 |
-- set, then the default interface name is the name of the entity, cased |
| 2300 |
-- in a manner that is appropriate to the system in use. Note that |
| 2301 |
-- Interface_Name is ignored if an address clause is present (since it |
| 2302 |
-- is meaningless in this case). |
| 2303 |
|
| 2304 |
-- Interfaces |
| 2305 |
-- Defined in record types and subtypes. List of abstract interfaces |
| 2306 |
-- implemented by a tagged type that are not already implemented by the |
| 2307 |
-- ancestors (Ada 2005: AI-251). |
| 2308 |
|
| 2309 |
-- Invariant_Procedure (synthesized) |
| 2310 |
-- Defined in types and subtypes. Set for private types and their full |
| 2311 |
-- views if one or more [class-wide] invariants apply to the type, or |
| 2312 |
-- when the type inherits class-wide invariants from a parent type or |
| 2313 |
-- an interface, or when the type is an array and its component type is |
| 2314 |
-- subject to an invariant, or when the type is record and contains a |
| 2315 |
-- component subject to an invariant (property is recursive). Points to |
| 2316 |
-- to the entity for a procedure which checks all these invariants. The |
| 2317 |
-- invariant procedure takes a single argument of the given type, and |
| 2318 |
-- returns if the invariant holds, or raises exception Assertion_Error |
| 2319 |
-- with an appropriate message if it does not hold. This attribute is |
| 2320 |
-- defined but always Empty for private subtypes. |
| 2321 |
|
| 2322 |
-- Note: the reason this is marked as a synthesized attribute is that the |
| 2323 |
-- way this is stored is as an element of the Subprograms_For_Type field. |
| 2324 |
|
| 2325 |
-- In_Use |
| 2326 |
-- Defined in packages and types. Set when analyzing a use clause for |
| 2327 |
-- the corresponding entity. Reset at end of corresponding declarative |
| 2328 |
-- part. The flag on a type is also used to determine the visibility of |
| 2329 |
-- the primitive operators of the type. |
| 2330 |
-- |
| 2331 |
-- Note that manipulation of scopes on the scope stack will also cause |
| 2332 |
-- the flag to be set/unset since the setting of scopes affects |
| 2333 |
-- visibility. |
| 2334 |
|
| 2335 |
-- Is_Abstract_Subprogram |
| 2336 |
-- Defined in all subprograms and entries. Set for abstract subprograms. |
| 2337 |
-- Always False for enumeration literals and entries. See also |
| 2338 |
-- Requires_Overriding. |
| 2339 |
|
| 2340 |
-- Is_Abstract_Type |
| 2341 |
-- Defined in all types. Set for abstract types. |
| 2342 |
|
| 2343 |
-- Is_Access_Constant |
| 2344 |
-- Defined in access types and subtypes. Indicates that the keyword |
| 2345 |
-- constant was present in the access type definition. |
| 2346 |
|
| 2347 |
-- Is_Access_Protected_Subprogram_Type (synthesized) |
| 2348 |
-- Applies to all types, true for named and anonymous access to |
| 2349 |
-- protected subprograms. |
| 2350 |
|
| 2351 |
-- Is_Access_Type (synthesized) |
| 2352 |
-- Applies to all entities, true for access types and subtypes |
| 2353 |
|
| 2354 |
-- Is_Access_Object_Type (synthesized) |
| 2355 |
-- Applies to all entities, true for access-to-object types and subtypes |
| 2356 |
|
| 2357 |
-- Is_Activation_Record |
| 2358 |
-- Applies to E_In_Parameters generated in Exp_Unst for nested |
| 2359 |
-- subprograms, to mark the added formal that carries the activation |
| 2360 |
-- record created in the enclosing subprogram. |
| 2361 |
|
| 2362 |
-- Is_Actual_Subtype |
| 2363 |
-- Defined on all types, true for the generated constrained subtypes |
| 2364 |
-- that are built for unconstrained composite actuals. |
| 2365 |
|
| 2366 |
-- Is_Ada_2005_Only |
| 2367 |
-- Defined in all entities, true if a valid pragma Ada_05 or Ada_2005 |
| 2368 |
-- applies to the entity which specifically names the entity, indicating |
| 2369 |
-- that the entity is Ada 2005 only. Note that this flag is not set if |
| 2370 |
-- the entity is part of a unit compiled with the normal no-argument form |
| 2371 |
-- of pragma Ada_05 or Ada_2005. |
| 2372 |
|
| 2373 |
-- Is_Ada_2012_Only |
| 2374 |
-- Defined in all entities, true if a valid pragma Ada_12 or Ada_2012 |
| 2375 |
-- applies to the entity which specifically names the entity, indicating |
| 2376 |
-- that the entity is Ada 2012 only. Note that this flag is not set if |
| 2377 |
-- the entity is part of a unit compiled with the normal no-argument form |
| 2378 |
-- of pragma Ada_12 or Ada_2012. |
| 2379 |
|
| 2380 |
-- Is_Ada_2022_Only |
| 2381 |
-- Defined in all entities, true if a valid pragma Ada_2022 applies to |
| 2382 |
-- the entity which specifically names the entity, indicating that the |
| 2383 |
-- entity is Ada 2022 only. Note that this flag is not set if the entity |
| 2384 |
-- is part of a unit compiled with the normal no-argument form of pragma |
| 2385 |
-- Ada_2022. |
| 2386 |
|
| 2387 |
-- Is_Aliased |
| 2388 |
-- Defined in all entities. Set for objects and types whose declarations |
| 2389 |
-- carry the keyword aliased, and on record components that have the |
| 2390 |
-- keyword. For Ada 2012, also applies to formal parameters. |
| 2391 |
|
| 2392 |
-- Is_Array_Type (synthesized) |
| 2393 |
-- Applies to all entities, true for array types and subtypes |
| 2394 |
|
| 2395 |
-- Is_Asynchronous |
| 2396 |
-- Defined in all type entities and in procedure entities. Set |
| 2397 |
-- if a pragma Asynchronous applies to the entity. |
| 2398 |
|
| 2399 |
-- Is_Atomic |
| 2400 |
-- Defined in all type entities, and also in constants, components, and |
| 2401 |
-- variables. Set if a pragma Atomic or Shared applies to the entity. |
| 2402 |
-- In the case of private and incomplete types, this flag is set in |
| 2403 |
-- both the partial view and the full view. |
| 2404 |
|
| 2405 |
-- Is_Full_Access (synth) |
| 2406 |
-- Defined in all type entities, and also in constants, components and |
| 2407 |
-- variables. Set if an aspect/pragma Atomic/Shared, or an aspect/pragma |
| 2408 |
-- Volatile_Full_Access or an Ada 2022 aspect Full_Access_Only applies |
| 2409 |
-- to the entity. In the case of private and incomplete types, the flag |
| 2410 |
-- applies to both the partial view and the full view. |
| 2411 |
|
| 2412 |
-- Is_Base_Type (synthesized) |
| 2413 |
-- Applies to type and subtype entities. True if entity is a base type. |
| 2414 |
|
| 2415 |
-- Is_Bit_Packed_Array [implementation base type only] |
| 2416 |
-- Defined in all entities. This flag is set for a packed array type that |
| 2417 |
-- is bit-packed (i.e. the component size is known by the front end and |
| 2418 |
-- is in the range 1-63 but not a multiple of 8). Is_Packed is always set |
| 2419 |
-- if Is_Bit_Packed_Array is set, but it is possible for Is_Packed to be |
| 2420 |
-- set without Is_Bit_Packed_Array if the component size is not known by |
| 2421 |
-- the front-end or for the case of an array having one or more index |
| 2422 |
-- types that are enumeration types with non-standard representation. |
| 2423 |
|
| 2424 |
-- Is_Boolean_Type (synthesized) |
| 2425 |
-- Applies to all entities, true for boolean types and subtypes, |
| 2426 |
-- i.e. Standard.Boolean and all types ultimately derived from it. |
| 2427 |
|
| 2428 |
-- Is_Called |
| 2429 |
-- Defined in subprograms and packages. Set if a subprogram is called |
| 2430 |
-- from the unit being compiled or a unit in the closure. Also set for |
| 2431 |
-- a package that contains called subprograms. Used only for inlining. |
| 2432 |
|
| 2433 |
-- Is_Character_Type |
| 2434 |
-- Defined in all entities. Set for character types and subtypes, |
| 2435 |
-- i.e. enumeration types that have at least one character literal. |
| 2436 |
|
| 2437 |
-- Is_Checked_Ghost_Entity |
| 2438 |
-- Applies to all entities. Set for abstract states, [generic] packages, |
| 2439 |
-- [generic] subprograms, components, discriminants, formal parameters, |
| 2440 |
-- objects, package bodies, subprogram bodies, and [sub]types subject to |
| 2441 |
-- pragma Ghost or inherit "ghostness" from an enclosing construct, and |
| 2442 |
-- subject to Assertion_Policy Ghost => Check. |
| 2443 |
|
| 2444 |
-- Is_Child_Unit |
| 2445 |
-- Defined in all entities. Set only for defining entities of program |
| 2446 |
-- units that are child units (but False for subunits). |
| 2447 |
|
| 2448 |
-- Is_Class_Wide_Equivalent_Type |
| 2449 |
-- Defined in record types and subtypes. Set to True, if the type acts |
| 2450 |
-- as a class-wide equivalent type, i.e. the Equivalent_Type field of |
| 2451 |
-- some class-wide subtype entity references this record type. |
| 2452 |
|
| 2453 |
-- Is_Class_Wide_Type (synthesized) |
| 2454 |
-- Applies to all entities, true for class wide types and subtypes |
| 2455 |
|
| 2456 |
-- Is_Class_Wide_Wrapper |
| 2457 |
-- Defined in subprogram entities. Indicates that it has been created as |
| 2458 |
-- a wrapper in a generic/instance scenario involving a formal type and |
| 2459 |
-- a generic primitive operation when the actual is a class-wide type. |
| 2460 |
|
| 2461 |
-- Is_Compilation_Unit |
| 2462 |
-- Defined in all entities. Set if the entity is a package or subprogram |
| 2463 |
-- entity for a compilation unit other than a subunit (since we treat |
| 2464 |
-- subunits as part of the same compilation operation as the ultimate |
| 2465 |
-- parent, we do not consider them to be separate units for this flag). |
| 2466 |
|
| 2467 |
-- Is_Completely_Hidden |
| 2468 |
-- Defined on discriminants. Only set on stored discriminants of |
| 2469 |
-- untagged types. When set, the entity is a stored discriminant of a |
| 2470 |
-- derived untagged type which is not directly visible in the derived |
| 2471 |
-- type because the derived type or one of its ancestors have renamed the |
| 2472 |
-- discriminants in the root type. Note: there are stored discriminants |
| 2473 |
-- which are not Completely_Hidden (e.g. discriminants of a root type). |
| 2474 |
|
| 2475 |
-- Is_Composite_Type (synthesized) |
| 2476 |
-- Applies to all entities, true for all composite types and subtypes. |
| 2477 |
-- Either Is_Composite_Type or Is_Elementary_Type (but not both) is true |
| 2478 |
-- of any type. |
| 2479 |
|
| 2480 |
-- Is_Concurrent_Record_Type |
| 2481 |
-- Defined in record types and subtypes. Set if the type was created |
| 2482 |
-- by the expander to represent a task or protected type. For every |
| 2483 |
-- concurrent type, such as record type is constructed, and task and |
| 2484 |
-- protected objects are instances of this record type at run time |
| 2485 |
-- (The backend will replace declarations of the concurrent type using |
| 2486 |
-- the declarations of the corresponding record type). See Exp_Ch9 for |
| 2487 |
-- further details. |
| 2488 |
|
| 2489 |
-- Is_Concurrent_Type (synthesized) |
| 2490 |
-- Applies to all entities, true for task types and subtypes and for |
| 2491 |
-- protected types and subtypes. |
| 2492 |
|
| 2493 |
-- Is_Constant_Object (synthesized) |
| 2494 |
-- Applies to all entities, true for E_Constant, E_Loop_Parameter, and |
| 2495 |
-- E_In_Parameter entities. |
| 2496 |
|
| 2497 |
-- Is_Constrained |
| 2498 |
-- Defined in types or subtypes which may have index, discriminant |
| 2499 |
-- or range constraint (i.e. array types and subtypes, record types |
| 2500 |
-- and subtypes, string types and subtypes, and all numeric types). |
| 2501 |
-- Set if the type or subtype is constrained. |
| 2502 |
|
| 2503 |
-- Is_Constr_Array_Subt_With_Bounds |
| 2504 |
-- Defined in all types and subtypes. Set only for an array subtype |
| 2505 |
-- which is constrained but nevertheless requires objects of this |
| 2506 |
-- subtype to be allocated with their bounds. This flag is used by |
| 2507 |
-- the back end to determine whether the bounds must be constructed. |
| 2508 |
|
| 2509 |
-- Is_Constr_Subt_For_U_Nominal |
| 2510 |
-- Defined in all types and subtypes. Set only for the constructed |
| 2511 |
-- subtype of an object whose nominal subtype is unconstrained. Note |
| 2512 |
-- that the constructed subtype itself will be constrained. |
| 2513 |
|
| 2514 |
-- Is_Constructor |
| 2515 |
-- Defined in function and procedure entities. Set if a pragma |
| 2516 |
-- CPP_Constructor applies to the subprogram. |
| 2517 |
|
| 2518 |
-- Is_Controlled_Active [base type only] |
| 2519 |
-- Defined in all type entities. Indicates that the type is controlled, |
| 2520 |
-- i.e. has been declared with the Finalizable aspect or has inherited |
| 2521 |
-- the Finalizable aspect from an ancestor. Can only be set for record |
| 2522 |
-- types, tagged or untagged. System.Finalization_Root.Root_Controlled |
| 2523 |
-- is an example of the former case while Ada.Finalization.Controlled |
| 2524 |
-- and Ada.Finalization.Limited_Controlled are examples of the latter. |
| 2525 |
|
| 2526 |
-- Is_Controlled (synth) [base type only] |
| 2527 |
-- Defined in all type entities. Set if Is_Controlled_Active is set for |
| 2528 |
-- the type, and Disable_Controlled is not set. |
| 2529 |
|
| 2530 |
-- Is_Controlling_Formal |
| 2531 |
-- Defined in all Formal_Kind entities. Marks the controlling parameters |
| 2532 |
-- of dispatching operations. |
| 2533 |
|
| 2534 |
-- Is_CPP_Class |
| 2535 |
-- Defined in all type entities, set only for tagged types to which a |
| 2536 |
-- valid pragma Import (CPP, ...) or pragma CPP_Class has been applied. |
| 2537 |
|
| 2538 |
-- Is_CUDA_Kernel |
| 2539 |
-- Defined in function and procedure entities. Set if the subprogram is a |
| 2540 |
-- CUDA kernel. |
| 2541 |
|
| 2542 |
-- Is_Decimal_Fixed_Point_Type (synthesized) |
| 2543 |
-- Applies to all type entities, true for decimal fixed point |
| 2544 |
-- types and subtypes. |
| 2545 |
|
| 2546 |
-- Is_Descendant_Of_Address |
| 2547 |
-- Defined in all entities. True if the entity is type System.Address, |
| 2548 |
-- or (recursively) a subtype or derived type of System.Address. |
| 2549 |
|
| 2550 |
-- Is_DIC_Procedure |
| 2551 |
-- Defined in functions and procedures. Set for a generated procedure |
| 2552 |
-- which verifies the assumption of pragma Default_Initial_Condition at |
| 2553 |
-- run time. |
| 2554 |
|
| 2555 |
-- Is_Discrete_Or_Fixed_Point_Type (synthesized) |
| 2556 |
-- Applies to all entities, true for all discrete types and subtypes |
| 2557 |
-- and all fixed-point types and subtypes. |
| 2558 |
|
| 2559 |
-- Is_Discrete_Type (synthesized) |
| 2560 |
-- Applies to all entities, true for all discrete types and subtypes |
| 2561 |
|
| 2562 |
-- Is_Discrim_SO_Function |
| 2563 |
-- Defined in all entities. Set only in E_Function entities that Layout |
| 2564 |
-- creates to compute discriminant-dependent dynamic size/offset values. |
| 2565 |
|
| 2566 |
-- Is_Discriminant_Check_Function |
| 2567 |
-- Defined in all entities. Set only in E_Function entities for functions |
| 2568 |
-- created to do discriminant checks. |
| 2569 |
|
| 2570 |
-- Is_Discriminal (synthesized) |
| 2571 |
-- Applies to all entities, true for renamings of discriminants. Such |
| 2572 |
-- entities appear as constants or IN parameters. |
| 2573 |
|
| 2574 |
-- Is_Dispatch_Table_Entity |
| 2575 |
-- Applies to all entities. Set to indicate to the backend that this |
| 2576 |
-- entity is associated with a dispatch table. |
| 2577 |
|
| 2578 |
-- Is_Dispatch_Table_Wrapper |
| 2579 |
-- Applies to all entities. Set on wrappers built when a subprogram has |
| 2580 |
-- class-wide preconditions or postconditions affected by overriding |
| 2581 |
-- (AI12-0195). Also set on wrappers built when an inherited subprogram |
| 2582 |
-- implements an interface primitive that has class-wide preconditions |
| 2583 |
-- or postconditions. In the former case, the entity also has its |
| 2584 |
-- LSP_Subprogram attribute set. |
| 2585 |
|
| 2586 |
-- Is_Dispatching_Operation |
| 2587 |
-- Defined in all entities. Set for procedures, functions, generic |
| 2588 |
-- procedures, and generic functions if the corresponding operation |
| 2589 |
-- is dispatching. |
| 2590 |
|
| 2591 |
-- Is_Dynamic_Scope (synthesized) |
| 2592 |
-- Applies to all Entities. Returns True if the entity is a dynamic |
| 2593 |
-- scope (i.e. a block, subprogram, task_type, entry or extended return |
| 2594 |
-- statement). |
| 2595 |
|
| 2596 |
-- Is_Elaboration_Checks_OK_Id |
| 2597 |
-- Defined in elaboration targets (see terminology in Sem_Elab). Set when |
| 2598 |
-- the target appears in a region which is subject to enabled elaboration |
| 2599 |
-- checks. Such targets are allowed to generate run-time conditional ABE |
| 2600 |
-- checks or guaranteed ABE failures. |
| 2601 |
|
| 2602 |
-- Is_Elaboration_Target (synthesized) |
| 2603 |
-- Applies to all entities, True only for elaboration targets (see the |
| 2604 |
-- terminology in Sem_Elab). |
| 2605 |
|
| 2606 |
-- Is_Elaboration_Warnings_OK_Id |
| 2607 |
-- Defined in elaboration targets (see terminology in Sem_Elab). Set when |
| 2608 |
-- the target appears in a region with elaboration warnings enabled. |
| 2609 |
|
| 2610 |
-- Is_Elementary_Type (synthesized) |
| 2611 |
-- Applies to all entities, True for all elementary types and subtypes. |
| 2612 |
-- Either Is_Composite_Type or Is_Elementary_Type (but not both) is true |
| 2613 |
-- of any type. |
| 2614 |
|
| 2615 |
-- Is_Eliminated |
| 2616 |
-- Defined in type entities, subprogram entities, and object entities. |
| 2617 |
-- Indicates that the corresponding entity has been eliminated by use |
| 2618 |
-- of pragma Eliminate. Also used to mark subprogram entities whose |
| 2619 |
-- declaration and body are within unreachable code that is removed. |
| 2620 |
|
| 2621 |
-- Is_Entry (synthesized) |
| 2622 |
-- Applies to all entities, True only for entry and entry family |
| 2623 |
-- entities and False for all other entity kinds. |
| 2624 |
|
| 2625 |
-- Is_Entry_Formal |
| 2626 |
-- Defined in all entities. Set only for entry formals (which can only |
| 2627 |
-- be in, in-out or out parameters). This flag is used to speed up the |
| 2628 |
-- test for the need to replace references in Exp_Ch2. |
| 2629 |
|
| 2630 |
-- Is_Entry_Wrapper |
| 2631 |
-- Defined on wrappers created for entries that have precondition or |
| 2632 |
-- postcondition aspects. |
| 2633 |
|
| 2634 |
-- Is_Enumeration_Type (synthesized) |
| 2635 |
-- Defined in all entities, true for enumeration types and subtypes |
| 2636 |
|
| 2637 |
-- Is_Exception_Handler |
| 2638 |
-- Defined in blocks. Set if the block serves only as a scope of an |
| 2639 |
-- exception handler with a choice parameter. Such a block does not |
| 2640 |
-- physically appear in the tree. |
| 2641 |
|
| 2642 |
-- Is_Exported |
| 2643 |
-- Defined in all entities. Set if the entity is exported. For now we |
| 2644 |
-- only allow the export of constants, exceptions, functions, procedures |
| 2645 |
-- and variables, but that may well change later on. Exceptions can only |
| 2646 |
-- be exported in the Java VM implementation of GNAT, which is retired. |
| 2647 |
|
| 2648 |
-- Is_External_State (synthesized) |
| 2649 |
-- Applies to all entities, true for abstract states that are subject to |
| 2650 |
-- option External or Synchronous. |
| 2651 |
|
| 2652 |
-- Is_Finalized_Transient |
| 2653 |
-- Defined in constants, loop parameters of generalized iterators, and |
| 2654 |
-- variables. Set when a transient object has been finalized by one of |
| 2655 |
-- the transient finalization mechanisms. The flag prevents the double |
| 2656 |
-- finalization of the object. |
| 2657 |
|
| 2658 |
-- Is_Finalizer |
| 2659 |
-- Applies to all entities, true for procedures containing finalization |
| 2660 |
-- code to process local or library level objects. |
| 2661 |
|
| 2662 |
-- Is_First_Subtype |
| 2663 |
-- Defined in all entities. True for first subtypes (RM 3.2.1(6)), |
| 2664 |
-- i.e. the entity in the type declaration that introduced the type. |
| 2665 |
-- This may be the base type itself (e.g. for record declarations and |
| 2666 |
-- enumeration type declarations), or it may be the first subtype of |
| 2667 |
-- an anonymous base type (e.g. for integer type declarations or |
| 2668 |
-- constrained array declarations). |
| 2669 |
|
| 2670 |
-- Is_Fixed_Lower_Bound_Array_Subtype |
| 2671 |
-- Defined in type entities. True for unconstrained array types and |
| 2672 |
-- subtypes where at least one index has a range specified with a fixed |
| 2673 |
-- lower bound (range syntax is "<expression> .. <>"). |
| 2674 |
|
| 2675 |
-- Is_Fixed_Lower_Bound_Index_Subtype |
| 2676 |
-- Defined in type entities. True for an index of an unconstrained array |
| 2677 |
-- type or subtype whose range is specified with a fixed lower bound |
| 2678 |
-- (range syntax is "<expression> .. <>"). |
| 2679 |
|
| 2680 |
-- Is_Fixed_Point_Type (synthesized) |
| 2681 |
-- Applies to all entities, true for decimal and ordinary fixed |
| 2682 |
-- point types and subtypes. |
| 2683 |
|
| 2684 |
-- Is_Floating_Point_Type (synthesized) |
| 2685 |
-- Applies to all entities, true for float types and subtypes |
| 2686 |
|
| 2687 |
-- Is_Formal (synthesized) |
| 2688 |
-- Applies to all entities, true for IN, IN OUT and OUT parameters |
| 2689 |
|
| 2690 |
-- Is_Formal_Object (synthesized) |
| 2691 |
-- Applies to all entities, true for generic IN and IN OUT parameters |
| 2692 |
|
| 2693 |
-- Is_Formal_Subprogram |
| 2694 |
-- Defined in all entities. Set for generic formal subprograms. |
| 2695 |
|
| 2696 |
-- Is_Frozen |
| 2697 |
-- Defined in all type and subtype entities. Set if type or subtype has |
| 2698 |
-- been frozen. |
| 2699 |
|
| 2700 |
-- Is_Generic_Actual_Subprogram |
| 2701 |
-- Defined on functions and procedures. Set on the entity of the renaming |
| 2702 |
-- declaration created within an instance for an actual subprogram. |
| 2703 |
-- Used to generate constraint checks on calls to these subprograms, even |
| 2704 |
-- within an instance of a predefined run-time unit, in which checks |
| 2705 |
-- are otherwise suppressed. |
| 2706 |
|
| 2707 |
-- Is_Generic_Actual_Type |
| 2708 |
-- Defined in all type and subtype entities. Set in the subtype |
| 2709 |
-- declaration that renames the generic formal as a subtype of the |
| 2710 |
-- actual. Guarantees that the subtype is not static within the instance. |
| 2711 |
-- Also used during analysis of an instance, to simplify resolution of |
| 2712 |
-- accidental overloading that occurs when different formal types get the |
| 2713 |
-- same actual. |
| 2714 |
|
| 2715 |
-- Is_Generic_Instance |
| 2716 |
-- Defined in all entities. Set to indicate that the entity is an |
| 2717 |
-- instance of a generic unit, or a formal package (which is an instance |
| 2718 |
-- of the template). |
| 2719 |
|
| 2720 |
-- Is_Generic_Subprogram (synthesized) |
| 2721 |
-- Applies to all entities. Yields True for a generic subprogram |
| 2722 |
-- (generic function, generic subprogram), False for all other entities. |
| 2723 |
|
| 2724 |
-- Is_Generic_Type |
| 2725 |
-- Defined in all entities. Set for types which are generic formal types. |
| 2726 |
-- Such types have an Ekind that corresponds to their classification, so |
| 2727 |
-- the Ekind cannot be used to identify generic formal types. |
| 2728 |
|
| 2729 |
-- Is_Generic_Unit (synthesized) |
| 2730 |
-- Applies to all entities. Yields True for a generic unit (generic |
| 2731 |
-- package, generic function, generic procedure), and False for all |
| 2732 |
-- other entities. |
| 2733 |
|
| 2734 |
-- Is_Ghost_Entity (synthesized) |
| 2735 |
-- Applies to all entities. Yields True for abstract states, [generic] |
| 2736 |
-- packages, [generic] subprograms, components, discriminants, formal |
| 2737 |
-- parameters, objects, package bodies, subprogram bodies, and [sub]types |
| 2738 |
-- subject to pragma Ghost or those that inherit the Ghost property from |
| 2739 |
-- an enclosing construct. |
| 2740 |
|
| 2741 |
-- Is_Hidden |
| 2742 |
-- Defined in all entities. Set for all entities declared in the |
| 2743 |
-- private part or body of a package. Also marks generic formals of a |
| 2744 |
-- formal package declared without a box. For library level entities, |
| 2745 |
-- this flag is set if the entity is not publicly visible. This flag |
| 2746 |
-- is reset when compiling the body of the package where the entity |
| 2747 |
-- is declared, when compiling the private part or body of a public |
| 2748 |
-- child unit, and when compiling a private child unit (see Install_ |
| 2749 |
-- Private_Declaration in sem_ch7). |
| 2750 |
|
| 2751 |
-- Is_Hidden_Non_Overridden_Subpgm |
| 2752 |
-- Defined in all entities. Set for implicitly declared subprograms |
| 2753 |
-- that require overriding or are null procedures, and are hidden by |
| 2754 |
-- a non-fully conformant homograph with the same characteristics |
| 2755 |
-- (RM 8.3(12.3/2)). |
| 2756 |
|
| 2757 |
-- Is_Hidden_Open_Scope |
| 2758 |
-- Defined in all entities. Set for a scope that contains the |
| 2759 |
-- instantiation of a child unit, and whose entities are not visible |
| 2760 |
-- during analysis of the instance. |
| 2761 |
|
| 2762 |
-- Is_Ignored_For_Finalization |
| 2763 |
-- Defined in constants and variables. Set when an object must be ignored |
| 2764 |
-- by the general finalization mechanism because its cleanup actions are |
| 2765 |
-- already accounted for. |
| 2766 |
|
| 2767 |
-- Is_Ignored_Ghost_Entity |
| 2768 |
-- Applies to all entities. Set for abstract states, [generic] packages, |
| 2769 |
-- [generic] subprograms, components, discriminants, formal parameters, |
| 2770 |
-- objects, package bodies, subprogram bodies, and [sub]types subject to |
| 2771 |
-- pragma Ghost or inherit "ghostness" from an enclosing construct, and |
| 2772 |
-- subject to Assertion_Policy Ghost => Ignore. |
| 2773 |
|
| 2774 |
-- Is_Immediately_Visible |
| 2775 |
-- Defined in all entities. Set if entity is immediately visible, i.e. |
| 2776 |
-- is defined in some currently open scope (RM 8.3(4)). |
| 2777 |
|
| 2778 |
-- Is_Implementation_Defined |
| 2779 |
-- Defined in all entities. Set if a pragma Implementation_Defined is |
| 2780 |
-- applied to the pragma. Used to mark all implementation defined |
| 2781 |
-- identifiers in standard library packages, and to implement the |
| 2782 |
-- restriction No_Implementation_Identifiers. |
| 2783 |
|
| 2784 |
-- Is_Implicit_Full_View |
| 2785 |
-- Defined in types. Set on types that the compiler generates to act as |
| 2786 |
-- full views of types that are derivations of private types. |
| 2787 |
|
| 2788 |
-- Is_Imported |
| 2789 |
-- Defined in all entities. Set if the entity is imported. For now we |
| 2790 |
-- only allow the import of exceptions, functions, procedures, packages, |
| 2791 |
-- constants, and variables. Exceptions, packages, and types can only be |
| 2792 |
-- imported in the Java VM implementation, which is retired. |
| 2793 |
|
| 2794 |
-- Is_Incomplete_Or_Private_Type (synthesized) |
| 2795 |
-- Applies to all entities, true for private and incomplete types |
| 2796 |
|
| 2797 |
-- Is_Incomplete_Type (synthesized) |
| 2798 |
-- Applies to all entities, true for incomplete types and subtypes |
| 2799 |
|
| 2800 |
-- Is_Independent |
| 2801 |
-- Defined in all types and objects. Set if a valid pragma or aspect |
| 2802 |
-- Independent applies to the entity, or for a component if a valid |
| 2803 |
-- pragma or aspect Independent_Components applies to the enclosing |
| 2804 |
-- record type. Also set if a pragma Shared or pragma Atomic applies to |
| 2805 |
-- the entity, or if the declaration of the entity carries the Aliased |
| 2806 |
-- keyword. For Ada 2012, also applies to formal parameters. In the |
| 2807 |
-- case of private and incomplete types, this flag is set in both the |
| 2808 |
-- partial view and the full view. |
| 2809 |
|
| 2810 |
-- This flag is also set on the Master_Node objects generated by the |
| 2811 |
-- compiler (see Finalization_Master_Node above) to indicate that the |
| 2812 |
-- associated finalizable object has relaxed finalization semantics. |
| 2813 |
|
| 2814 |
-- Is_Initial_Condition_Procedure |
| 2815 |
-- Defined in functions and procedures. Set for a generated procedure |
| 2816 |
-- which verifies the assumption of pragma Initial_Condition at run time. |
| 2817 |
|
| 2818 |
-- Is_Inlined |
| 2819 |
-- Defined in all entities. Set for functions and procedures which are |
| 2820 |
-- to be inlined. For subprograms created during expansion, this flag |
| 2821 |
-- may be set directly by the expander to request inlining. Also set |
| 2822 |
-- for packages that contain inlined subprograms, whose bodies must be |
| 2823 |
-- be compiled. Is_Inlined is also set on generic subprograms and is |
| 2824 |
-- inherited by their instances. It is also set on the body entities |
| 2825 |
-- of inlined subprograms. See also Has_Pragma_Inline. |
| 2826 |
|
| 2827 |
-- Is_Inlined_Always |
| 2828 |
-- Defined in subprograms. Set for functions and procedures which are |
| 2829 |
-- always inlined in GNATprove mode. GNATprove uses this flag to know |
| 2830 |
-- when a body does not need to be analyzed. The value of this flag is |
| 2831 |
-- only meaningful if Body_To_Inline is not Empty for the subprogram. |
| 2832 |
|
| 2833 |
-- Is_Instantiated |
| 2834 |
-- Defined in generic packages and generic subprograms. Set if the unit |
| 2835 |
-- is instantiated from somewhere in the extended main source unit. This |
| 2836 |
-- flag is used to control warnings about the unit being uninstantiated. |
| 2837 |
-- Also set in a package that is used as an actual for a generic package |
| 2838 |
-- formal in an instantiation. Also set on a parent instance, in the |
| 2839 |
-- instantiation of a child, which is implicitly declared in the parent. |
| 2840 |
|
| 2841 |
-- Is_Integer_Type (synthesized) |
| 2842 |
-- Applies to all entities, true for integer types and subtypes |
| 2843 |
|
| 2844 |
-- Is_Interface |
| 2845 |
-- Defined in record types and subtypes. Set to indicate that the current |
| 2846 |
-- entity corresponds to an abstract interface. Because abstract |
| 2847 |
-- interfaces are conceptually a special kind of abstract tagged type |
| 2848 |
-- we represent them by means of tagged record types and subtypes |
| 2849 |
-- marked with this attribute. This allows us to reuse most of the |
| 2850 |
-- compiler support for abstract tagged types to implement interfaces |
| 2851 |
-- (Ada 2005: AI-251). |
| 2852 |
|
| 2853 |
-- Is_Internal |
| 2854 |
-- Defined in all entities. Set to indicate an entity created during |
| 2855 |
-- semantic processing (e.g. an implicit type, or a temporary). The |
| 2856 |
-- current uses of this flag are: |
| 2857 |
-- |
| 2858 |
-- 1) Internal entities (such as temporaries generated for the result |
| 2859 |
-- of an inlined function call or dummy variables generated for the |
| 2860 |
-- debugger). Set to indicate that they need not be initialized, even |
| 2861 |
-- when scalars are initialized or normalized. |
| 2862 |
-- |
| 2863 |
-- 2) Predefined primitives of tagged types. Set to mark that they |
| 2864 |
-- have specific properties: first they are primitives even if they |
| 2865 |
-- are not defined in the type scope (the freezing point is not |
| 2866 |
-- necessarily in the same scope), and second the predefined equality |
| 2867 |
-- can be overridden by a user-defined equality, no body will be |
| 2868 |
-- generated in this case. |
| 2869 |
-- |
| 2870 |
-- 3) Object declarations generated by the expander that are implicitly |
| 2871 |
-- imported or exported so that they can be marked in Sprint output. |
| 2872 |
-- |
| 2873 |
-- 4) Internal entities in the list of primitives of tagged types that |
| 2874 |
-- are used to handle secondary dispatch tables. These entities have |
| 2875 |
-- also the attribute Interface_Alias. |
| 2876 |
|
| 2877 |
-- Is_Interrupt_Handler |
| 2878 |
-- Defined in procedures. Set if a pragma Interrupt_Handler applies |
| 2879 |
-- to the procedure. The procedure must be a parameterless protected |
| 2880 |
-- procedure. |
| 2881 |
|
| 2882 |
-- Is_Intrinsic_Subprogram |
| 2883 |
-- Defined in functions and procedures. It is set if a valid pragma |
| 2884 |
-- Interface or Import is present for this subprogram specifying |
| 2885 |
-- convention Intrinsic. Valid means that the name and profile of the |
| 2886 |
-- subprogram match the requirements of one of the recognized intrinsic |
| 2887 |
-- subprograms (see package Sem_Intr for details). Note: the value of |
| 2888 |
-- Convention for such an entity will be set to Convention_Intrinsic, |
| 2889 |
-- but it is the setting of Is_Intrinsic_Subprogram, NOT simply having |
| 2890 |
-- convention set to intrinsic, which causes intrinsic code to be |
| 2891 |
-- generated. |
| 2892 |
|
| 2893 |
-- Is_Invariant_Procedure |
| 2894 |
-- Defined in functions and procedures. Set for a generated invariant |
| 2895 |
-- procedure which verifies the invariants of both the partial and full |
| 2896 |
-- views of a private type or private extension as well as any inherited |
| 2897 |
-- class-wide invariants from parent types or interfaces. |
| 2898 |
|
| 2899 |
-- Is_Itype |
| 2900 |
-- Defined in all entities. Set to indicate that a type is an Itype, |
| 2901 |
-- which means that the declaration for the type does not appear |
| 2902 |
-- explicitly in the tree. Instead the backend will elaborate the type |
| 2903 |
-- when it is first used. Has_Delayed_Freeze can be set for Itypes, and |
| 2904 |
-- the meaning is that the first use (the one which causes the type to be |
| 2905 |
-- defined) will be the freeze node. Note that an important restriction |
| 2906 |
-- on Itypes is that the first use of such a type (the one that causes it |
| 2907 |
-- to be defined) must be in the same scope as the type. |
| 2908 |
|
| 2909 |
-- Is_Known_Non_Null |
| 2910 |
-- Defined in all entities. Relevant (and can be set) only for |
| 2911 |
-- objects of an access type. It is set if the object is currently |
| 2912 |
-- known to have a non-null value (meaning that no access checks |
| 2913 |
-- are needed). The indication can for example come from assignment |
| 2914 |
-- of an access parameter or an allocator whose value is known non-null. |
| 2915 |
-- |
| 2916 |
-- Note: this flag is set according to the sequential flow of the |
| 2917 |
-- program, watching the current value of the variable. However, this |
| 2918 |
-- processing can miss cases of changing the value of an aliased or |
| 2919 |
-- constant object, so even if this flag is set, it should not be |
| 2920 |
-- believed if the variable is aliased or volatile. It would be a |
| 2921 |
-- little neater to avoid the flag being set in the first place in |
| 2922 |
-- such cases, but that's trickier, and there is only one place that |
| 2923 |
-- tests the value anyway. |
| 2924 |
-- |
| 2925 |
-- The flag is dynamically set and reset as semantic analysis and |
| 2926 |
-- expansion proceeds. Its value is meaningless once the tree is |
| 2927 |
-- fully constructed, since it simply indicates the last state. |
| 2928 |
-- Thus this flag has no meaning to the backend. |
| 2929 |
|
| 2930 |
-- Is_Known_Null |
| 2931 |
-- Defined in all entities. Relevant (and can be set ) only for |
| 2932 |
-- objects of an access type. It is set if the object is currently known |
| 2933 |
-- to have a null value (meaning that a dereference will surely raise |
| 2934 |
-- constraint error exception). The indication can come from an |
| 2935 |
-- assignment or object declaration. |
| 2936 |
-- |
| 2937 |
-- The comments above about sequential flow and aliased and volatile for |
| 2938 |
-- the Is_Known_Non_Null flag apply equally to the Is_Known_Null flag. |
| 2939 |
|
| 2940 |
-- Is_Known_Valid |
| 2941 |
-- Defined in all entities. Relevant for types (and subtype) and |
| 2942 |
-- for objects (and enumeration literals) of a discrete type. |
| 2943 |
-- |
| 2944 |
-- The purpose of this flag is to implement the requirement stated |
| 2945 |
-- in (RM 13.9.1(9-11)) which require that the use of possibly invalid |
| 2946 |
-- values may not cause programs to become erroneous. See the function |
| 2947 |
-- Checks.Expr_Known_Valid for further details. Note that the setting |
| 2948 |
-- is conservative, in the sense that if the flag is set, it must be |
| 2949 |
-- right. If the flag is not set, nothing is known about the validity. |
| 2950 |
-- |
| 2951 |
-- For enumeration literals, the flag is always set, since clearly |
| 2952 |
-- an enumeration literal represents a valid value. Range checks |
| 2953 |
-- where necessary will ensure that this valid value is appropriate. |
| 2954 |
-- |
| 2955 |
-- For objects, the flag indicates the state of knowledge about the |
| 2956 |
-- current value of the object. This may be modified during expansion, |
| 2957 |
-- and thus the final value is not relevant to the backend. |
| 2958 |
-- |
| 2959 |
-- For types and subtypes, the flag is set if all possible bit patterns |
| 2960 |
-- of length Object_Size (i.e. Esize of the type) represent valid values |
| 2961 |
-- of the type. In general for such types, all values are valid, the |
| 2962 |
-- only exception being the case where an object of the type has an |
| 2963 |
-- explicit size that is greater than Object_Size. |
| 2964 |
-- |
| 2965 |
-- For non-discrete objects, the setting of the Is_Known_Valid flag is |
| 2966 |
-- not defined, and is not relevant, since the considerations of the |
| 2967 |
-- requirement in (RM 13.9.1(9-11)) do not apply. |
| 2968 |
-- |
| 2969 |
-- The flag is dynamically set and reset as semantic analysis and |
| 2970 |
-- expansion proceeds. Its value is meaningless once the tree is |
| 2971 |
-- fully constructed, since it simply indicates the last state. |
| 2972 |
-- Thus this flag has no meaning to the backend. |
| 2973 |
|
| 2974 |
-- Is_Limited_Composite |
| 2975 |
-- Defined in all entities. Set for composite types that have a limited |
| 2976 |
-- component. Used to enforce the rule that operations on the composite |
| 2977 |
-- type that depend on the full view of the component do not become |
| 2978 |
-- visible until the immediate scope of the composite type itself |
| 2979 |
-- (RM 7.3.1 (5)). |
| 2980 |
|
| 2981 |
-- Is_Limited_Interface |
| 2982 |
-- Defined in record types and subtypes. True for interface types, if |
| 2983 |
-- interface is declared limited, task, protected, or synchronized, or |
| 2984 |
-- is derived from a limited interface. |
| 2985 |
|
| 2986 |
-- Is_Limited_Record |
| 2987 |
-- Defined in all entities. Set to true for record (sub)types if the |
| 2988 |
-- record is declared to be limited. Note that this flag is not set |
| 2989 |
-- simply because some components of the record are limited. |
| 2990 |
|
| 2991 |
-- Is_Local_Anonymous_Access |
| 2992 |
-- Defined in access types. Set for an anonymous access type to indicate |
| 2993 |
-- that the type is created for a record component with an access |
| 2994 |
-- definition, an array component, or (pre-Ada 2012) a standalone object. |
| 2995 |
-- Such anonymous types have an accessibility level equal to that of the |
| 2996 |
-- declaration in which they appear, unlike the anonymous access types |
| 2997 |
-- that are created for access parameters, access discriminants, and |
| 2998 |
-- (as of Ada 2012) stand-alone objects. |
| 2999 |
|
| 3000 |
-- Is_Loop_Parameter |
| 3001 |
-- Applies to all entities. Certain loops, in particular "for ... of" |
| 3002 |
-- loops, get transformed so that the loop parameter is declared by a |
| 3003 |
-- variable declaration, so the entity is an E_Variable. This is True for |
| 3004 |
-- such E_Variables; False otherwise. |
| 3005 |
|
| 3006 |
-- Is_Machine_Code_Subprogram |
| 3007 |
-- Defined in subprogram entities. Set to indicate that the subprogram |
| 3008 |
-- is a machine code subprogram (i.e. its body includes at least one |
| 3009 |
-- code statement). Also indicates that all necessary semantic checks |
| 3010 |
-- as required by RM 13.8(3) have been performed. |
| 3011 |
|
| 3012 |
-- Is_Modular_Integer_Type (synthesized) |
| 3013 |
-- Applies to all entities. True if entity is a modular integer type |
| 3014 |
|
| 3015 |
-- Is_Mutably_Tagged_Type |
| 3016 |
-- Defined in all type entities. Used to signify that a given type is a |
| 3017 |
-- "mutably tagged" class-wide type where 'Size'Class has been specified. |
| 3018 |
|
| 3019 |
-- Is_Non_Static_Subtype |
| 3020 |
-- Defined in all type and subtype entities. It is set in some (but not |
| 3021 |
-- all) cases in which a subtype is known to be non-static. Before this |
| 3022 |
-- flag was added, the computation of whether a subtype was static was |
| 3023 |
-- entirely synthesized, by looking at the bounds, and the immediate |
| 3024 |
-- subtype parent. However, this method does not work for some Itypes |
| 3025 |
-- that have no parent set (and the only way to find the immediate |
| 3026 |
-- subtype parent is to go through the tree). For now, this flag is set |
| 3027 |
-- conservatively, i.e. if it is set then for sure the subtype is non- |
| 3028 |
-- static, but if it is not set, then the type may or may not be static. |
| 3029 |
-- Thus the test for a static subtype is that this flag is clear AND that |
| 3030 |
-- the bounds are static AND that the parent subtype (if available to be |
| 3031 |
-- tested) is static. Eventually we should make sure this flag is always |
| 3032 |
-- set right, at which point, these comments can be removed, and the |
| 3033 |
-- tests for static subtypes greatly simplified. |
| 3034 |
|
| 3035 |
-- Is_Null_Init_Proc |
| 3036 |
-- Defined in procedure entities. Set for generated init proc procedures |
| 3037 |
-- (used to initialize composite types), if the code for the procedure |
| 3038 |
-- is null (i.e. is a return and nothing else). Such null initialization |
| 3039 |
-- procedures are generated in case some client is compiled using the |
| 3040 |
-- Initialize_Scalars pragma, generating a call to this null procedure, |
| 3041 |
-- but there is no need to call such procedures within a compilation |
| 3042 |
-- unit, and this flag is used to suppress such calls. |
| 3043 |
|
| 3044 |
-- Is_Null_State (synthesized) |
| 3045 |
-- Applies to all entities, true for an abstract state declared with |
| 3046 |
-- keyword null. |
| 3047 |
|
| 3048 |
-- Is_Numeric_Type (synthesized) |
| 3049 |
-- Applies to all entities, true for all numeric types and subtypes |
| 3050 |
-- (integer, fixed, float). |
| 3051 |
|
| 3052 |
-- Is_Object (synthesized) |
| 3053 |
-- Applies to all entities, true for entities representing objects, |
| 3054 |
-- including generic formal parameters. |
| 3055 |
|
| 3056 |
-- Is_Obsolescent |
| 3057 |
-- Defined in all entities. Set for any entity to which a valid pragma |
| 3058 |
-- or aspect Obsolescent applies. |
| 3059 |
|
| 3060 |
-- Is_Only_Out_Parameter |
| 3061 |
-- Defined in formal parameter entities. Set if this parameter is the |
| 3062 |
-- only OUT parameter for this formal part. If there is more than one |
| 3063 |
-- out parameter, or if there is some other IN OUT parameter then this |
| 3064 |
-- flag is not set in any of them. Used in generation of warnings. |
| 3065 |
|
| 3066 |
-- Is_Ordinary_Fixed_Point_Type (synthesized) |
| 3067 |
-- Applies to all entities, true for ordinary fixed point types and |
| 3068 |
-- subtypes. |
| 3069 |
|
| 3070 |
-- Is_Package_Body_Entity |
| 3071 |
-- Defined in all entities. Set for entities defined at the top level |
| 3072 |
-- of a package body. Used to control externally generated names. |
| 3073 |
|
| 3074 |
-- Is_Package_Or_Generic_Package (synthesized) |
| 3075 |
-- Applies to all entities. True for packages and generic packages. |
| 3076 |
-- False for all other entities. |
| 3077 |
|
| 3078 |
-- Is_Packed [implementation base type only] |
| 3079 |
-- Defined in all type entities. This flag is set only for record and |
| 3080 |
-- array types which have a packed representation. There are four cases |
| 3081 |
-- which cause packing: |
| 3082 |
-- |
| 3083 |
-- 1. Explicit use of pragma Pack to pack a record. |
| 3084 |
-- 2. Explicit use of pragma Pack to pack an array. |
| 3085 |
-- 3. Setting Component_Size of an array to a packable value. |
| 3086 |
-- 4. Indexing an array with a non-standard enumeration type. |
| 3087 |
-- |
| 3088 |
-- For records, Is_Packed is always set if Has_Pragma_Pack is set, and |
| 3089 |
-- can also be set on its own in a derived type which inherited its |
| 3090 |
-- packed status. |
| 3091 |
-- |
| 3092 |
-- For arrays, Is_Packed is set if either Has_Pragma_Pack is set and the |
| 3093 |
-- component size is either not known at compile time or known but not |
| 3094 |
-- 8/16/32/64 bits, or a Component_Size clause exists and the specified |
| 3095 |
-- value is smaller than 64 bits but not 8/16/32, or if the array has one |
| 3096 |
-- or more index types that are enumeration types with a non-standard |
| 3097 |
-- representation (in GNAT, we store such arrays compactly, using the Pos |
| 3098 |
-- of the enumeration type value). As for the case of records, Is_Packed |
| 3099 |
-- can be set on its own for a derived type. |
| 3100 |
|
| 3101 |
-- Before an array type is frozen, Is_Packed will always be set if |
| 3102 |
-- Has_Pragma_Pack is set. Before the freeze point, it is not possible |
| 3103 |
-- to know the component size, since the component type is not frozen |
| 3104 |
-- until the array type is frozen. Thus Is_Packed for an array type |
| 3105 |
-- before it is frozen means that packed is required. Then if it turns |
| 3106 |
-- out that the component size doesn't require packing, the Is_Packed |
| 3107 |
-- flag gets turned off. |
| 3108 |
|
| 3109 |
-- In the bit-packed array case (i.e. the component size is known by the |
| 3110 |
-- front end and is in the range 1-63 but not a multiple of 8), then the |
| 3111 |
-- Is_Bit_Packed_Array flag will be set once the array type is frozen. |
| 3112 |
-- |
| 3113 |
-- Is_Packed_Array (synth) |
| 3114 |
-- Applies to all entities, true if entity is for a packed array. |
| 3115 |
|
| 3116 |
-- Is_Packed_Array_Impl_Type |
| 3117 |
-- Defined in all entities. This flag is set on the entity for the type |
| 3118 |
-- used to implement a packed array (either a modular type or a subtype |
| 3119 |
-- of Packed_Bytes{1,2,4} in the bit-packed array case, a regular array |
| 3120 |
-- in the non-standard enumeration index case). It is set if and only |
| 3121 |
-- if the type appears in the Packed_Array_Impl_Type field of some other |
| 3122 |
-- entity. It is used by the back end to activate the special processing |
| 3123 |
-- for such types (unchecked conversions that would not otherwise be |
| 3124 |
-- allowed are allowed for such types). If Is_Packed_Array_Impl_Type is |
| 3125 |
-- set in an entity, then the Original_Array_Type field of this entity |
| 3126 |
-- points to the array type for which this is the Packed_Array_Impl_Type. |
| 3127 |
|
| 3128 |
-- Is_Param_Block_Component_Type [base type only] |
| 3129 |
-- Defined in access types. Set to indicate that a type is the type of a |
| 3130 |
-- component of the parameter block record type generated by the compiler |
| 3131 |
-- for an entry or a select statement. Read by CodePeer. |
| 3132 |
|
| 3133 |
-- Is_Partial_Invariant_Procedure |
| 3134 |
-- Defined in functions and procedures. Set for a generated invariant |
| 3135 |
-- procedure which verifies the invariants of the partial view of a |
| 3136 |
-- private type or private extension. |
| 3137 |
|
| 3138 |
-- Is_Not_Self_Hidden |
| 3139 |
-- Defined in all entities. Roughly speaking, this is False if the |
| 3140 |
-- declaration of the entity is hidden from all visibility because |
| 3141 |
-- we are within its declaration, as defined by 8.3(16-18). When |
| 3142 |
-- we reach the end of the declaration or other place defined by |
| 3143 |
-- 8.3(16-18), this is set to True. However, this flag is not used |
| 3144 |
-- for most overloaded declarations (but is used for enumeration |
| 3145 |
-- literals), and is also used for other cases of premature usage |
| 3146 |
-- such as defined in 3.8(10) for record components and the like. |
| 3147 |
-- In addition, there are cases involving discriminants where we |
| 3148 |
-- set this True, then temporarily False again. |
| 3149 |
|
| 3150 |
-- Is_Potentially_Use_Visible |
| 3151 |
-- Defined in all entities. Set if entity is potentially use visible, |
| 3152 |
-- i.e. it is defined in a package that appears in a currently active |
| 3153 |
-- use clause (RM 8.4(8)). Note that potentially use visible entities |
| 3154 |
-- are not necessarily use visible (RM 8.4(9-11)). |
| 3155 |
|
| 3156 |
-- Is_Predicate_Function |
| 3157 |
-- Present in functions and procedures. Set for generated predicate |
| 3158 |
-- functions. |
| 3159 |
|
| 3160 |
-- Is_Preelaborated |
| 3161 |
-- Defined in all entities, set in E_Package and E_Generic_Package |
| 3162 |
-- entities to which a pragma Preelaborate is applied, and also in |
| 3163 |
-- all entities within such packages. Note that the fact that this |
| 3164 |
-- flag is set does not necessarily mean that no elaboration code is |
| 3165 |
-- generated for the package. |
| 3166 |
|
| 3167 |
-- Is_Primitive |
| 3168 |
-- Defined in overloadable entities and in generic subprograms. Set to |
| 3169 |
-- indicate that this is a primitive operation of some type, which may |
| 3170 |
-- be a tagged type or an untagged type. Used to verify overriding |
| 3171 |
-- indicators in bodies. |
| 3172 |
|
| 3173 |
-- Is_Primitive_Wrapper |
| 3174 |
-- Defined in functions and procedures created by the expander to serve |
| 3175 |
-- as an indirection mechanism to overriding primitives of concurrent |
| 3176 |
-- types, entries and protected procedures. |
| 3177 |
|
| 3178 |
-- Is_Prival (synthesized) |
| 3179 |
-- Applies to all entities, true for renamings of private protected |
| 3180 |
-- components. Such entities appear as constants or variables. |
| 3181 |
|
| 3182 |
-- Is_Private_Composite |
| 3183 |
-- Defined in composite types that have a private component. Used to |
| 3184 |
-- enforce the rule that operations on the composite type that depend |
| 3185 |
-- on the full view of the component, do not become visible until the |
| 3186 |
-- immediate scope of the composite type itself (7.3.1 (5)). Both this |
| 3187 |
-- flag and Is_Limited_Composite are needed. |
| 3188 |
|
| 3189 |
-- Is_Private_Descendant |
| 3190 |
-- Defined in entities that can represent library units (packages, |
| 3191 |
-- functions, procedures). Set if the library unit is itself a private |
| 3192 |
-- child unit, or if it is the descendant of a private child unit. |
| 3193 |
|
| 3194 |
-- Is_Private_Primitive |
| 3195 |
-- Defined in subprograms. Set if the operation is a primitive of a |
| 3196 |
-- tagged type (procedure or function dispatching on result) whose |
| 3197 |
-- full view has not been seen. Used in particular for primitive |
| 3198 |
-- subprograms of a synchronized type declared between the two views |
| 3199 |
-- of the type, so that the wrapper built for such a subprogram can |
| 3200 |
-- be given the proper signature. |
| 3201 |
|
| 3202 |
-- Is_Private_Type (synthesized) |
| 3203 |
-- Applies to all entities, true for private types and subtypes, |
| 3204 |
-- as well as for record with private types as subtypes. |
| 3205 |
|
| 3206 |
-- Is_Protected_Component (synthesized) |
| 3207 |
-- Applicable to all entities, true if the entity denotes a private |
| 3208 |
-- component of a protected type. |
| 3209 |
|
| 3210 |
-- Is_Protected_Interface (synthesized) |
| 3211 |
-- Defined in types that are interfaces. True if interface is declared |
| 3212 |
-- protected, or is derived from protected interfaces. |
| 3213 |
|
| 3214 |
-- Is_Protected_Record_Type (synthesized) |
| 3215 |
-- Applies to all entities, true if Is_Concurrent_Record_Type is true and |
| 3216 |
-- Corresponding_Concurrent_Type is a protected type. |
| 3217 |
|
| 3218 |
-- Is_Protected_Type (synthesized) |
| 3219 |
-- Applies to all entities, true for protected types and subtypes |
| 3220 |
|
| 3221 |
-- Is_Public |
| 3222 |
-- Defined in all entities. Set to indicate that an entity defined in |
| 3223 |
-- one compilation unit can be referenced from other compilation units. |
| 3224 |
-- If this reference causes a reference in the generated code, for |
| 3225 |
-- example in the case of a variable name, then the backend will generate |
| 3226 |
-- an appropriate external name for use by the linker. |
| 3227 |
|
| 3228 |
-- Is_Pure |
| 3229 |
-- Defined in all entities. Set in all entities of a unit to which a |
| 3230 |
-- pragma Pure is applied except for non-intrinsic imported subprograms, |
| 3231 |
-- and also set for the entity of the unit itself. In addition, this |
| 3232 |
-- flag may be set for any other functions or procedures that are known |
| 3233 |
-- to be side effect free, so in the case of subprograms, the Is_Pure |
| 3234 |
-- flag may be used by the optimizer to imply that it can assume freedom |
| 3235 |
-- from side effects (other than those resulting from assignment to Out |
| 3236 |
-- or In Out parameters, or to objects designated by access parameters). |
| 3237 |
|
| 3238 |
-- Is_Pure_Unit_Access_Type |
| 3239 |
-- Defined in access type and subtype entities. Set if the type or |
| 3240 |
-- subtype appears in a pure unit. Used to give an error message at |
| 3241 |
-- freeze time if the access type has a storage pool. |
| 3242 |
|
| 3243 |
-- Is_RACW_Stub_Type |
| 3244 |
-- Defined in all types, true for the stub types generated for remote |
| 3245 |
-- access-to-class-wide types. |
| 3246 |
|
| 3247 |
-- Is_Raised |
| 3248 |
-- Defined in exception entities. Set if the entity is referenced by a |
| 3249 |
-- a raise statement. |
| 3250 |
|
| 3251 |
-- Is_Real_Type (synthesized) |
| 3252 |
-- Applies to all entities, true for real types and subtypes |
| 3253 |
|
| 3254 |
-- Is_Record_Type (synthesized) |
| 3255 |
-- Applies to all entities, true for record types and subtypes, |
| 3256 |
-- includes class-wide types and subtypes (which are also records). |
| 3257 |
|
| 3258 |
-- Is_Remote_Call_Interface |
| 3259 |
-- Defined in all entities. Set in E_Package and E_Generic_Package |
| 3260 |
-- entities to which a pragma Remote_Call_Interface is applied, and |
| 3261 |
-- also on entities declared in the visible part of such a package. |
| 3262 |
|
| 3263 |
-- Is_Remote_Types |
| 3264 |
-- Defined in all entities. Set in E_Package and E_Generic_Package |
| 3265 |
-- entities to which a pragma Remote_Types is applied, and also on |
| 3266 |
-- entities declared in the visible part of the spec of such a package. |
| 3267 |
-- Also set for types which are generic formal types to which the |
| 3268 |
-- pragma Remote_Access_Type applies. |
| 3269 |
|
| 3270 |
-- Is_Renaming_Of_Object |
| 3271 |
-- Defined in all entities, set only for a variable or constant for |
| 3272 |
-- which the Renamed_Object field is non-empty and for which the |
| 3273 |
-- renaming is handled by the front end, by macro substitution of |
| 3274 |
-- a copy of the (evaluated) name tree wherever the variable is used. |
| 3275 |
|
| 3276 |
-- Is_Return_Object |
| 3277 |
-- Defined in all object entities. True if the object is the return |
| 3278 |
-- object of an extended_return_statement; False otherwise. |
| 3279 |
|
| 3280 |
-- Is_Safe_To_Reevaluate |
| 3281 |
-- Defined in all entities. Set in variables that are initialized by |
| 3282 |
-- means of an assignment statement. When initialized their contents |
| 3283 |
-- never change and hence they can be seen by the backend as constants. |
| 3284 |
-- See also Is_True_Constant. |
| 3285 |
|
| 3286 |
-- Is_Scalar_Type (synthesized) |
| 3287 |
-- Applies to all entities, true for scalar types and subtypes |
| 3288 |
|
| 3289 |
-- Is_Shared_Passive |
| 3290 |
-- Defined in all entities. Set in E_Package and E_Generic_Package |
| 3291 |
-- entities to which a pragma Shared_Passive is applied, and also in |
| 3292 |
-- all entities within such packages. |
| 3293 |
|
| 3294 |
-- Is_Standard_Character_Type (synthesized) |
| 3295 |
-- Applies to all entities, true for types and subtypes whose root type |
| 3296 |
-- is one of the standard character types (Character, Wide_Character, or |
| 3297 |
-- Wide_Wide_Character). |
| 3298 |
|
| 3299 |
-- Is_Standard_String_Type (synthesized) |
| 3300 |
-- Applies to all entities, true for types and subtypes whose root |
| 3301 |
-- type is one of the standard string types (String, Wide_String, or |
| 3302 |
-- Wide_Wide_String). |
| 3303 |
|
| 3304 |
-- Is_Static_Type |
| 3305 |
-- Defined in entities. Only set for (sub)types. If set, indicates that |
| 3306 |
-- the type is known to be a static type (defined as a discrete type with |
| 3307 |
-- static bounds, a record all of whose component types are static types, |
| 3308 |
-- or an array, all of whose bounds are of a static type, and also have |
| 3309 |
-- a component type that is a static type). See Set_Uplevel_Type for more |
| 3310 |
-- information on how this flag is used. |
| 3311 |
|
| 3312 |
-- Is_Statically_Allocated |
| 3313 |
-- Defined in all entities. This can only be set for exception, |
| 3314 |
-- variable, constant, and type/subtype entities. If the flag is set, |
| 3315 |
-- then the variable or constant must be allocated statically rather |
| 3316 |
-- than on the local stack frame. For exceptions, the meaning is that |
| 3317 |
-- the exception data should be allocated statically (and indeed this |
| 3318 |
-- flag is always set for exceptions, since exceptions do not have |
| 3319 |
-- local scope). For a type, the meaning is that the type must be |
| 3320 |
-- elaborated at the global level rather than locally. No type marked |
| 3321 |
-- with this flag may depend on a local variable, or on any other type |
| 3322 |
-- which does not also have this flag set to True. For a variable or |
| 3323 |
-- or constant, if the flag is set, then the type of the object must |
| 3324 |
-- either be declared at the library level, or it must also have the |
| 3325 |
-- flag set (since to allocate the object statically, its type must |
| 3326 |
-- also be elaborated globally). |
| 3327 |
|
| 3328 |
-- Is_String_Type (synthesized) |
| 3329 |
-- Applies to all type entities. Determines if the given type is a |
| 3330 |
-- string type, i.e. it is directly a string type or string subtype, |
| 3331 |
-- or a string slice type, or an array type with one dimension and a |
| 3332 |
-- component type that is a character type. |
| 3333 |
|
| 3334 |
-- Is_Subprogram (synthesized) |
| 3335 |
-- Applies to all entities, true for function, procedure and operator |
| 3336 |
-- entities. |
| 3337 |
|
| 3338 |
-- Is_Subprogram_Or_Generic_Subprogram |
| 3339 |
-- Applies to all entities, true for function procedure and operator |
| 3340 |
-- entities, and also for the corresponding generic entities. |
| 3341 |
|
| 3342 |
-- Is_Synchronized_Interface (synthesized) |
| 3343 |
-- Defined in types that are interfaces. True if interface is declared |
| 3344 |
-- synchronized, task, or protected, or is derived from a synchronized |
| 3345 |
-- interface. |
| 3346 |
|
| 3347 |
-- Is_Synchronized_State (synthesized) |
| 3348 |
-- Applies to all entities, true for abstract states that are subject to |
| 3349 |
-- option Synchronous. |
| 3350 |
|
| 3351 |
-- Is_Tag |
| 3352 |
-- Defined in E_Component and E_Constant entities. For regular tagged |
| 3353 |
-- type this flag is set on the tag component (whose name is Name_uTag). |
| 3354 |
-- For CPP_Class tagged types, this flag marks the pointer to the main |
| 3355 |
-- vtable (i.e. the one to be extended by derivation). |
| 3356 |
|
| 3357 |
-- Is_Tagged_Type |
| 3358 |
-- Defined in all entities, set for an entity that is a tagged type |
| 3359 |
|
| 3360 |
-- Is_Task_Interface (synthesized) |
| 3361 |
-- Defined in types that are interfaces. True if interface is declared as |
| 3362 |
-- a task interface, or if it is derived from task interfaces. |
| 3363 |
|
| 3364 |
-- Is_Task_Record_Type (synthesized) |
| 3365 |
-- Applies to all entities, true if Is_Concurrent_Record_Type is true and |
| 3366 |
-- Corresponding_Concurrent_Type is a task type. |
| 3367 |
|
| 3368 |
-- Is_Task_Type (synthesized) |
| 3369 |
-- Applies to all entities. True for task types and subtypes |
| 3370 |
|
| 3371 |
-- Is_Thunk |
| 3372 |
-- Defined in all entities. True for subprograms that are thunks, that is |
| 3373 |
-- small subprograms built by the expander for particular tagged types. |
| 3374 |
-- There are two different kinds of thunk: interface thunk and secondary |
| 3375 |
-- stack thunk. Interface thunks are built for tagged types that cover |
| 3376 |
-- interface types. As part of the runtime call to an interface, they |
| 3377 |
-- displace the pointer to the object (pointer named "this" in the C++ |
| 3378 |
-- terminology) from a secondary dispatch table to the primary dispatch |
| 3379 |
-- table associated with a given tagged type; if the thunk is a function |
| 3380 |
-- that returns an object which covers an interface type then the thunk |
| 3381 |
-- displaces the pointer to the object from the primary dispatch table to |
| 3382 |
-- the secondary dispatch table associated with the interface type. |
| 3383 |
|
| 3384 |
-- Secondary stack thunks are built for tagged types that do not need to |
| 3385 |
-- be returned on the secondary stack but have primitive functions which |
| 3386 |
-- can dispatch on result. In this case, dispatching calls made to these |
| 3387 |
-- primitive functions nevertheless need to return on the secondary stack |
| 3388 |
-- and a thunk is built to move the result from the primary stack onto |
| 3389 |
-- the secondary stack on return from the primitive function. The flag |
| 3390 |
-- Has_Controlling_Result is set on secondary stack thunks but not on |
| 3391 |
-- interface thunks. |
| 3392 |
|
| 3393 |
-- Thunks may be chained in a single way: an interface thunk may point to |
| 3394 |
-- a secondary stack thunk, which points to the final thunk target. |
| 3395 |
|
| 3396 |
-- Is_Trivial_Subprogram |
| 3397 |
-- Defined in all entities. Set in subprograms where either the body |
| 3398 |
-- consists of a single null statement, or the first or only statement |
| 3399 |
-- of the body raises an exception. This is used for suppressing certain |
| 3400 |
-- warnings, see Sem_Ch6.Analyze_Subprogram_Body discussion for details. |
| 3401 |
|
| 3402 |
-- Is_True_Constant |
| 3403 |
-- Defined in all entities for constants and variables. Set in constants |
| 3404 |
-- and variables which have an initial value specified but which are |
| 3405 |
-- never assigned, partially or in the whole. For variables, it means |
| 3406 |
-- that the variable was initialized but never modified, and hence can be |
| 3407 |
-- treated as a constant by the code generator. For a constant, it means |
| 3408 |
-- that the constant was not modified by generated code (e.g. to set a |
| 3409 |
-- discriminant in an init proc). Assignments by user or generated code |
| 3410 |
-- will reset this flag. See also Is_Safe_To_Reevaluate. |
| 3411 |
|
| 3412 |
-- Is_Type (synthesized) |
| 3413 |
-- Applies to all entities, true for a type entity |
| 3414 |
|
| 3415 |
-- Is_Unchecked_Union [implementation base type only] |
| 3416 |
-- Defined in all entities. Set only in record types to which the |
| 3417 |
-- pragma Unchecked_Union has been validly applied. |
| 3418 |
|
| 3419 |
-- Is_Underlying_Full_View |
| 3420 |
-- Defined in all entities. Set for types which represent the true full |
| 3421 |
-- view of a private type completed by another private type. For further |
| 3422 |
-- details, see attribute Underlying_Full_View. |
| 3423 |
|
| 3424 |
-- Is_Underlying_Record_View [base type only] |
| 3425 |
-- Defined in all entities. Set only in record types that represent the |
| 3426 |
-- underlying record view. This view is built for derivations of types |
| 3427 |
-- with unknown discriminants; it is a record with the same structure |
| 3428 |
-- as its corresponding record type, but whose parent is the full view |
| 3429 |
-- of the parent in the original type extension. |
| 3430 |
|
| 3431 |
-- Is_Unimplemented |
| 3432 |
-- Defined in all entities. Set for any entity to which a valid pragma |
| 3433 |
-- or aspect Unimplemented applies. |
| 3434 |
|
| 3435 |
-- Is_Unsigned_Type |
| 3436 |
-- Defined in all types, but can be set only for discrete and fixed-point |
| 3437 |
-- type and subtype entities. This flag is only valid if the entity is |
| 3438 |
-- frozen. If set it indicates that the representation is known to be |
| 3439 |
-- unsigned (i.e. that no negative values appear in the range). This is |
| 3440 |
-- normally just a reflection of the lower bound of the subtype or base |
| 3441 |
-- type, but there is one case in which the setting is not obvious, |
| 3442 |
-- namely the case of an unsigned subtype of a signed type from which |
| 3443 |
-- a further subtype is obtained using variable bounds. This further |
| 3444 |
-- subtype is still unsigned, but this cannot be determined by looking |
| 3445 |
-- at its bounds or the bounds of the corresponding base type. |
| 3446 |
-- For a subtype indication whose range is statically a null range, |
| 3447 |
-- the flag is set if the lower bound is non-negative, but the flag |
| 3448 |
-- cannot be used to determine the comparison operator to emit in the |
| 3449 |
-- generated code: use the base type. |
| 3450 |
|
| 3451 |
-- Is_Uplevel_Referenced_Entity |
| 3452 |
-- Defined in all entities. Used when unnesting subprograms to indicate |
| 3453 |
-- that an entity is locally defined within a subprogram P, and there is |
| 3454 |
-- a reference to the entity within a subprogram nested within P (at any |
| 3455 |
-- depth). Set for uplevel referenced objects (variables, constants, |
| 3456 |
-- discriminants and loop parameters), and also for upreferenced dynamic |
| 3457 |
-- types, including the cases where the reference is implicit (e.g. the |
| 3458 |
-- type of an array used for computing the location of an element in an |
| 3459 |
-- array. This is used internally in Exp_Unst, see this package for |
| 3460 |
-- further details. |
| 3461 |
|
| 3462 |
-- Is_Valued_Procedure |
| 3463 |
-- Defined in procedure entities. Set if an Import_Valued_Procedure |
| 3464 |
-- or Export_Valued_Procedure pragma applies to the procedure entity. |
| 3465 |
|
| 3466 |
-- Is_Visible_Formal |
| 3467 |
-- Defined in all entities. Set for instances of the formals of a |
| 3468 |
-- formal package. Indicates that the entity must be made visible in the |
| 3469 |
-- body of the instance, to reproduce the visibility of the generic. |
| 3470 |
-- This simplifies visibility settings in instance bodies. |
| 3471 |
|
| 3472 |
-- Is_Visible_Lib_Unit |
| 3473 |
-- Defined in all (root or child) library unit entities. Once compiled, |
| 3474 |
-- library units remain chained to the entities in the parent scope, and |
| 3475 |
-- a separate flag must be used to indicate whether the names are visible |
| 3476 |
-- by selected notation, or not. |
| 3477 |
|
| 3478 |
-- Is_Volatile |
| 3479 |
-- Defined in all type entities, and also in constants, components and |
| 3480 |
-- variables. Set if a pragma Volatile applies to the entity. Also set |
| 3481 |
-- if pragma Shared or pragma Atomic applies to entity. In the case of |
| 3482 |
-- private or incomplete types, this flag is set in both the private |
| 3483 |
-- and full view. The flag is not set reliably on private subtypes, |
| 3484 |
-- and is always retrieved from the base type (but this is not a base- |
| 3485 |
-- type-only attribute because it applies to other entities). Note that |
| 3486 |
-- the backend should use Treat_As_Volatile, rather than Is_Volatile |
| 3487 |
-- to indicate code generation requirements for volatile variables. |
| 3488 |
-- Similarly, any front end test which is concerned with suppressing |
| 3489 |
-- optimizations on volatile objects should test Treat_As_Volatile |
| 3490 |
-- rather than testing this flag. |
| 3491 |
-- This is a synthesized attribute in Einfo.Utils, based on |
| 3492 |
-- Is_Volatile_Type and Is_Volatile_Object. The latter two should be |
| 3493 |
-- used in preference to Is_Volatile when we know that we have a type |
| 3494 |
-- or an object. |
| 3495 |
|
| 3496 |
-- Is_Volatile_Full_Access |
| 3497 |
-- Defined in all type entities, and also in constants, components, and |
| 3498 |
-- variables. Set if an aspect/pragma Volatile_Full_Access or an Ada 2022 |
| 3499 |
-- aspect Full_Access_Only applies to the entity. In the case of private |
| 3500 |
-- and incomplete types, this flag is set in both the partial view and |
| 3501 |
-- the full view. |
| 3502 |
|
| 3503 |
-- Is_Wrapper_Package (synthesized) |
| 3504 |
-- Defined in package entities. Indicates that the package has been |
| 3505 |
-- created as a wrapper for a subprogram instantiation. |
| 3506 |
|
| 3507 |
-- Is_Wrapper |
| 3508 |
-- Defined in subprogram entities. Indicates that it has been created as |
| 3509 |
-- a wrapper to handle inherited class-wide pre/post conditions that call |
| 3510 |
-- overridden primitives or as a wrapper of a controlling function. |
| 3511 |
|
| 3512 |
-- Itype_Printed |
| 3513 |
-- Defined in all type and subtype entities. Set in Itypes if the Itype |
| 3514 |
-- has been printed by Sprint. This is used to avoid printing an Itype |
| 3515 |
-- more than once. |
| 3516 |
|
| 3517 |
-- Kill_Elaboration_Checks |
| 3518 |
-- Defined in all entities. Set by the expander to kill elaboration |
| 3519 |
-- checks which are known not to be needed. Equivalent in effect to |
| 3520 |
-- the use of pragma Suppress (Elaboration_Checks) for that entity |
| 3521 |
-- except that the effect is permanent and cannot be undone by a |
| 3522 |
-- subsequent pragma Unsuppress. |
| 3523 |
|
| 3524 |
-- Known_To_Have_Preelab_Init |
| 3525 |
-- Defined in all type and subtype entities. If set, then the type is |
| 3526 |
-- known to have preelaborable initialization. In the case of a partial |
| 3527 |
-- view of a private type, it is only possible for this to be set if a |
| 3528 |
-- pragma Preelaborable_Initialization is given for the type. For other |
| 3529 |
-- types, it is never set if the type does not have preelaborable |
| 3530 |
-- initialization, it may or may not be set if the type does have |
| 3531 |
-- preelaborable initialization. |
| 3532 |
|
| 3533 |
-- Last_Aggregate_Assignment |
| 3534 |
-- Applies to controlled constants and variables initialized by an |
| 3535 |
-- aggregate. Points to the last statement associated with the expansion |
| 3536 |
-- of the aggregate. The attribute is used by the finalization machinery |
| 3537 |
-- when marking an object as successfully initialized. |
| 3538 |
|
| 3539 |
-- Last_Assignment |
| 3540 |
-- Defined in entities for variables, and OUT or IN OUT formals. Set for |
| 3541 |
-- a local variable or formal to point to the left side of an assignment |
| 3542 |
-- statement assigning a value to the variable. Cleared if the value of |
| 3543 |
-- the entity is referenced. Used to warn about dubious assignment |
| 3544 |
-- statements whose value is not used. |
| 3545 |
|
| 3546 |
-- Last_Entity |
| 3547 |
-- Defined for the same entity kinds as First_Entity. Last_Entity |
| 3548 |
-- is the last entry in the list. Empty if no entities are chained. |
| 3549 |
|
| 3550 |
-- Last_Formal (synthesized) |
| 3551 |
-- Applies to subprograms and subprogram types, and also in entries |
| 3552 |
-- and entry families. Returns last formal of the subprogram or entry. |
| 3553 |
-- The formals are the first entities declared in a subprogram or in |
| 3554 |
-- a subprogram type (the designated type of an Access_To_Subprogram |
| 3555 |
-- definition) or in an entry. |
| 3556 |
|
| 3557 |
-- Limited_View |
| 3558 |
-- Defined in non-generic package entities that are not instances. Bona |
| 3559 |
-- fide package with the limited-view list through the first_entity and |
| 3560 |
-- first_private attributes. The elements of this list are the shadow |
| 3561 |
-- entities created for the types and local packages that are declared |
| 3562 |
-- in a package appearing in a limited_with clause (Ada 2005: AI-50217). |
| 3563 |
|
| 3564 |
-- Linker_Section_Pragma |
| 3565 |
-- Present in constant, variable, type and subprogram entities. Points |
| 3566 |
-- to a linker section pragma that applies to the entity, or is Empty if |
| 3567 |
-- no such pragma applies. Note that for constants and variables, this |
| 3568 |
-- field may be set as a result of a linker section pragma applied to the |
| 3569 |
-- type of the object. |
| 3570 |
|
| 3571 |
-- Lit_Hash [root type only] |
| 3572 |
-- Defined in enumeration types and subtypes. Contains the entity for |
| 3573 |
-- the generated hash function. See unit Exp_Imgv for full details of |
| 3574 |
-- the nature and use of this entity for implementing the Value |
| 3575 |
-- attribute for the enumeration type in question. |
| 3576 |
|
| 3577 |
-- Lit_Indexes [root type only] |
| 3578 |
-- Defined in enumeration types and subtypes. Contains the entity for |
| 3579 |
-- the generated indexes entity. See unit Exp_Imgv for full details of |
| 3580 |
-- the nature and use of this entity for implementing the Image and |
| 3581 |
-- Value attributes for the enumeration type in question. |
| 3582 |
|
| 3583 |
-- Lit_Strings [root type only] |
| 3584 |
-- Defined in enumeration types and subtypes. Contains the entity for |
| 3585 |
-- the literals string entity. See unit Exp_Imgv for full details of |
| 3586 |
-- the nature and use of this entity for implementing the Image and |
| 3587 |
-- Value attributes for the enumeration type in question. |
| 3588 |
|
| 3589 |
-- Low_Bound_Tested |
| 3590 |
-- Defined in all entities. Currently this can only be set for formal |
| 3591 |
-- parameter entries of a standard unconstrained one-dimensional array |
| 3592 |
-- or string type. Indicates that an explicit test of the low bound of |
| 3593 |
-- the formal appeared in the code, e.g. in a pragma Assert. If this |
| 3594 |
-- flag is set, warnings about assuming the index low bound to be one |
| 3595 |
-- are suppressed. |
| 3596 |
|
| 3597 |
-- Machine_Radix_10 |
| 3598 |
-- Defined in decimal types and subtypes, set if the Machine_Radix is 10, |
| 3599 |
-- as the result of the specification of a machine radix representation |
| 3600 |
-- clause. Note that it is possible for this flag to be set without |
| 3601 |
-- having Has_Machine_Radix_Clause True. This happens when a type is |
| 3602 |
-- derived from a type with a clause present. |
| 3603 |
|
| 3604 |
-- Master_Id |
| 3605 |
-- Defined in access types and subtypes. Empty unless Has_Task is set for |
| 3606 |
-- the designated type, in which case it points to the entity for the |
| 3607 |
-- Master_Id for the access type master. Also set for access-to-limited- |
| 3608 |
-- class-wide types whose root may be extended with task components, and |
| 3609 |
-- for access-to-limited-interfaces because they can be used to reference |
| 3610 |
-- tasks implementing such interface. |
| 3611 |
|
| 3612 |
-- Materialize_Entity |
| 3613 |
-- Defined in all entities. Set mostly for renamed objects that should be |
| 3614 |
-- materialized for debugging purposes. This means that a memory location |
| 3615 |
-- containing the renamed address should be allocated. This is needed so |
| 3616 |
-- that the debugger can find the entity. Also set on types built in the |
| 3617 |
-- case of unanalyzed packages referenced through a limited_with clause. |
| 3618 |
|
| 3619 |
-- May_Inherit_Delayed_Rep_Aspects |
| 3620 |
-- Defined in all entities for types and subtypes. Set if the type is |
| 3621 |
-- derived from a type which has delayed rep aspects (marked by the flag |
| 3622 |
-- Has_Delayed_Rep_Aspects being set). In this case, at the freeze point |
| 3623 |
-- for the derived type we know that the parent type is frozen, and if |
| 3624 |
-- a given attribute has not been set for the derived type, we copy the |
| 3625 |
-- value from the parent type. See Freeze.Inherit_Delayed_Rep_Aspects. |
| 3626 |
|
| 3627 |
-- Mechanism (returned as Mechanism_Type) |
| 3628 |
-- Defined in functions and non-generic formal parameters. Indicates |
| 3629 |
-- the mechanism to be used for the function return or for the formal |
| 3630 |
-- parameter. See full description in the spec of Sem_Mech. This field |
| 3631 |
-- is also set (to the default value of zero = Default_Mechanism) in a |
| 3632 |
-- subprogram body entity but not used in this context. |
| 3633 |
|
| 3634 |
-- Minimum_Accessibility |
| 3635 |
-- Defined in formal parameters in the non-generic case. Normally Empty, |
| 3636 |
-- but if expansion is active, and a parameter exists for which a |
| 3637 |
-- dynamic accessibility check is required, then an object is generated |
| 3638 |
-- within such a subprogram representing the accessibility level of the |
| 3639 |
-- subprogram or the formal's Extra_Accessibility - whichever one is |
| 3640 |
-- lesser. The Minimum_Accessibility field then points to this object. |
| 3641 |
|
| 3642 |
-- Modulus [base type only] |
| 3643 |
-- Defined in modular types. Contains the modulus. For the binary case, |
| 3644 |
-- this will be a power of 2, but if Non_Binary_Modulus is set, then it |
| 3645 |
-- will not be a power of 2. |
| 3646 |
|
| 3647 |
-- Must_Be_On_Byte_Boundary |
| 3648 |
-- Defined in entities for types and subtypes. Set if objects of the type |
| 3649 |
-- must always be allocated on a byte boundary (more accurately a storage |
| 3650 |
-- unit boundary). The front end checks that component clauses respect |
| 3651 |
-- this rule, and the backend ensures that record packing does not |
| 3652 |
-- violate this rule. Currently the flag is set only for packed arrays |
| 3653 |
-- longer than 64 bits where the component size is not a power of 2. |
| 3654 |
|
| 3655 |
-- Must_Have_Preelab_Init |
| 3656 |
-- Defined in entities for types and subtypes. Set in the full type of a |
| 3657 |
-- private type or subtype if a pragma Has_Preelaborable_Initialization |
| 3658 |
-- is present for the private type. Used to check that the full type has |
| 3659 |
-- preelaborable initialization at freeze time (this has to be deferred |
| 3660 |
-- to the freeze point because of the rule about overriding Initialize). |
| 3661 |
|
| 3662 |
-- Needs_Activation_Record |
| 3663 |
-- Defined on generated subprogram types. Indicates that a call through |
| 3664 |
-- a named or anonymous access to subprogram requires an activation |
| 3665 |
-- record when compiling with unnesting for C or LLVM. |
| 3666 |
|
| 3667 |
-- Needs_Debug_Info |
| 3668 |
-- Defined in all entities. Set if the entity requires normal debugging |
| 3669 |
-- information to be generated. This is true of all entities that have |
| 3670 |
-- Comes_From_Source set, and also transitively for entities associated |
| 3671 |
-- with such components (e.g. their types). It is true for all entities |
| 3672 |
-- in Debug_Generated_Code mode (-gnatD switch). This is the flag that |
| 3673 |
-- the backend should check to determine whether or not to generate |
| 3674 |
-- debugging information for an entity. Note that callers should always |
| 3675 |
-- use Sem_Util.Set_Debug_Info_Needed, rather than Set_Needs_Debug_Info, |
| 3676 |
-- so that the flag is set properly on subsidiary entities. |
| 3677 |
|
| 3678 |
-- Needs_No_Actuals |
| 3679 |
-- Defined in callable entities (subprograms, entries, access to |
| 3680 |
-- subprograms) which can be called without actuals because all of |
| 3681 |
-- their formals (if any) have default values. This flag simplifies the |
| 3682 |
-- resolution of the syntactic ambiguity involving a call to these |
| 3683 |
-- entities when the return type is an array type, and a call can be |
| 3684 |
-- interpreted as an indexing of the result of the call. It is also |
| 3685 |
-- used to resolve various cases of entry calls. |
| 3686 |
|
| 3687 |
-- Never_Set_In_Source |
| 3688 |
-- Defined in all entities, but can be set only for variables and |
| 3689 |
-- parameters. This flag is set if the object is never assigned a value |
| 3690 |
-- in user source code, either by assignment or by being used as an out |
| 3691 |
-- or in out parameter. Note that this flag is not reset from using an |
| 3692 |
-- initial value, so if you want to test for this case as well, test the |
| 3693 |
-- Has_Initial_Value flag also. |
| 3694 |
-- |
| 3695 |
-- This flag is only for the purposes of issuing warnings, it must not |
| 3696 |
-- be used by the code generator to indicate that the variable is in |
| 3697 |
-- fact a constant, since some assignments in generated code do not |
| 3698 |
-- count (for example, the call to an init proc to assign some but |
| 3699 |
-- not all of the fields in a partially initialized record). The code |
| 3700 |
-- generator should instead use the flag Is_True_Constant. |
| 3701 |
-- |
| 3702 |
-- For the purposes of this warning, the default assignment of access |
| 3703 |
-- variables to null is not considered the assignment of a value (so |
| 3704 |
-- the warning can be given for code that relies on this initial null |
| 3705 |
-- value when no other value is ever set). |
| 3706 |
-- |
| 3707 |
-- In variables and out parameters, if this flag is set after full |
| 3708 |
-- processing of the corresponding declarative unit, it indicates that |
| 3709 |
-- the variable or parameter was never set, and a warning message can |
| 3710 |
-- be issued. |
| 3711 |
-- |
| 3712 |
-- Note: this flag is initially set, and then cleared on encountering |
| 3713 |
-- any construct that might conceivably legitimately set the value. |
| 3714 |
-- Thus during the analysis of a declarative region and its associated |
| 3715 |
-- statement sequence, the meaning of the flag is "not set yet", and |
| 3716 |
-- once this analysis is complete the flag means "never assigned". |
| 3717 |
|
| 3718 |
-- Note: for variables appearing in package declarations, this flag is |
| 3719 |
-- never set. That is because there is no way to tell if some client |
| 3720 |
-- modifies the variable (or, in the case of variables in the private |
| 3721 |
-- part, if some child unit modifies the variables). |
| 3722 |
|
| 3723 |
-- Note: in the case of renamed objects, the flag must be set in the |
| 3724 |
-- ultimate renamed object. Clients noting a possible modification |
| 3725 |
-- should use the Note_Possible_Modification procedure in Sem_Util |
| 3726 |
-- rather than Set_Never_Set_In_Source precisely to deal properly with |
| 3727 |
-- the renaming possibility. |
| 3728 |
|
| 3729 |
-- Next_Component (synthesized) |
| 3730 |
-- Applies to record components. Returns the next component by following |
| 3731 |
-- the chain of declared entities until one is found which corresponds to |
| 3732 |
-- a component (Ekind is E_Component). Any internal types generated from |
| 3733 |
-- the subtype indications of the record components are skipped. Returns |
| 3734 |
-- Empty if no more components. |
| 3735 |
|
| 3736 |
-- Next_Component_Or_Discriminant (synthesized) |
| 3737 |
-- Similar to Next_Component, but includes components and discriminants |
| 3738 |
-- so the input can have either E_Component or E_Discriminant, and the |
| 3739 |
-- same is true for the result. Returns Empty if no more components or |
| 3740 |
-- discriminants in the record. |
| 3741 |
|
| 3742 |
-- Next_Discriminant (synthesized) |
| 3743 |
-- Applies to discriminants returned by First/Next_Discriminant. Returns |
| 3744 |
-- the next language-defined (i.e. perhaps non-stored) discriminant by |
| 3745 |
-- following the chain of declared entities as long as the kind of the |
| 3746 |
-- entity corresponds to a discriminant. Note that the discriminants |
| 3747 |
-- might be the only components of the record. Returns Empty if there |
| 3748 |
-- are no more discriminants. |
| 3749 |
|
| 3750 |
-- Next_Entity |
| 3751 |
-- Defined in all entities. The entities of a scope are chained, with |
| 3752 |
-- the head of the list being in the First_Entity field of the scope |
| 3753 |
-- entity. All entities use the Next_Entity field as a forward pointer |
| 3754 |
-- for this list, with Empty indicating the end of the list. Since this |
| 3755 |
-- field is in the base part of the entity, the access routines for this |
| 3756 |
-- field are in Sinfo. |
| 3757 |
|
| 3758 |
-- Next_Formal (synthesized) |
| 3759 |
-- Applies to the entity for a formal parameter. Returns the next formal |
| 3760 |
-- parameter of the subprogram or subprogram type. Returns Empty if there |
| 3761 |
-- are no more formals. |
| 3762 |
|
| 3763 |
-- Next_Formal_With_Extras (synthesized) |
| 3764 |
-- Applies to the entity for a formal parameter. Returns the next |
| 3765 |
-- formal parameter of the subprogram or subprogram type. Returns |
| 3766 |
-- Empty if there are no more formals. The list returned includes |
| 3767 |
-- all the extra formals (see description of Extra_Formal field) |
| 3768 |
|
| 3769 |
-- Next_Index (synthesized) |
| 3770 |
-- Applies to the N_Is_Index node returned by First_Index/Next_Index; |
| 3771 |
-- returns the next N_Is_Index node in the chain. Empty is returned to |
| 3772 |
-- indicate that there are no more indexes. Note that unlike most |
| 3773 |
-- attributes in this package, Next_Index applies to nodes for the |
| 3774 |
-- indexes, not to entities. |
| 3775 |
|
| 3776 |
-- Next_Inlined_Subprogram |
| 3777 |
-- Defined in subprograms. Used to chain inlined subprograms used in |
| 3778 |
-- the current compilation, in the order in which they must be compiled |
| 3779 |
-- by the backend to ensure that all inlinings are performed. |
| 3780 |
|
| 3781 |
-- Next_Literal (synthesized) |
| 3782 |
-- Applies to enumeration literals, returns the next literal, or |
| 3783 |
-- Empty if applied to the last literal. This is actually a synonym |
| 3784 |
-- for Next, but its use is preferred in this context. |
| 3785 |
|
| 3786 |
-- No_Dynamic_Predicate_On_Actual |
| 3787 |
-- Defined in discrete types. Set for generic formal types that are used |
| 3788 |
-- in loops and quantified expressions. The corresponding actual cannot |
| 3789 |
-- have dynamic predicates. |
| 3790 |
|
| 3791 |
-- No_Pool_Assigned [root type only] |
| 3792 |
-- Defined in access types. Set if a storage size clause applies to the |
| 3793 |
-- variable with a static expression value of zero. This flag is used to |
| 3794 |
-- generate errors if any attempt is made to allocate or free an instance |
| 3795 |
-- of such an access type. This is set only in the root type, since |
| 3796 |
-- derived types must have the same pool. |
| 3797 |
|
| 3798 |
-- No_Predicate_On_Actual |
| 3799 |
-- Defined in discrete types. Set for generic formal types that are used |
| 3800 |
-- in the spec of a generic package, in constructs that forbid discrete |
| 3801 |
-- types with predicates. |
| 3802 |
|
| 3803 |
-- No_Raise |
| 3804 |
-- Defined in subprograms and generic subprograms. Set if a valid aspect |
| 3805 |
-- or pragma No_Raise applies. |
| 3806 |
|
| 3807 |
-- No_Reordering [implementation base type only] |
| 3808 |
-- Defined in record types. Set only for a base type to which a valid |
| 3809 |
-- pragma No_Component_Reordering applies. |
| 3810 |
|
| 3811 |
-- No_Return |
| 3812 |
-- Defined in subprograms and generic subprograms. Set if a valid aspect |
| 3813 |
-- or pragma No_Return applies. |
| 3814 |
|
| 3815 |
-- No_Strict_Aliasing [base type only] |
| 3816 |
-- Defined in access types. Set to direct the backend to avoid any |
| 3817 |
-- optimizations based on an assumption about the aliasing status of |
| 3818 |
-- objects designated by the access type. For the case of the gcc |
| 3819 |
-- backend, the effect is as though all references to objects of |
| 3820 |
-- the type were compiled with -fno-strict-aliasing. This flag is |
| 3821 |
-- set if an unchecked conversion with the access type as a target |
| 3822 |
-- type occurs in the same source unit as the declaration of the |
| 3823 |
-- access type, or if an explicit pragma No_Strict_Aliasing applies. |
| 3824 |
|
| 3825 |
-- No_Tagged_Streams_Pragma |
| 3826 |
-- Present in all subtype and type entities. Set for tagged types and |
| 3827 |
-- subtypes (i.e. entities with Is_Tagged_Type set True) if a valid |
| 3828 |
-- pragma/aspect applies to the type. |
| 3829 |
|
| 3830 |
-- Non_Binary_Modulus [base type only] |
| 3831 |
-- Defined in all subtype and type entities. Set for modular integer |
| 3832 |
-- types if the modulus value is other than a power of 2. |
| 3833 |
|
| 3834 |
-- Non_Limited_View |
| 3835 |
-- Defined in abstract states and incomplete types that act as shadow |
| 3836 |
-- entities created when analysing a limited with clause (Ada 2005: |
| 3837 |
-- AI-50217). Points to the defining entity of the original declaration. |
| 3838 |
|
| 3839 |
-- Nonzero_Is_True [base type only] |
| 3840 |
-- Defined in enumeration types. Set if any non-zero value is to be |
| 3841 |
-- interpreted as true. Currently this is set for derived Boolean |
| 3842 |
-- types which have a convention of C, C++ or Fortran. |
| 3843 |
|
| 3844 |
-- Normalized_First_Bit |
| 3845 |
-- Defined in components and discriminants. Indicates the normalized |
| 3846 |
-- value of First_Bit for the component, i.e. the offset within the |
| 3847 |
-- lowest addressed storage unit containing part or all of the field. |
| 3848 |
-- Set to No_Uint if no first bit position is assigned yet. |
| 3849 |
|
| 3850 |
-- Normalized_Position |
| 3851 |
-- Defined in components and discriminants. Indicates the normalized |
| 3852 |
-- value of Position for the component, i.e. the offset in storage |
| 3853 |
-- units from the start of the record to the lowest addressed storage |
| 3854 |
-- unit containing part or all of the field. |
| 3855 |
|
| 3856 |
-- Number_Dimensions (synthesized) |
| 3857 |
-- Applies to array types and subtypes. Returns the number of dimensions |
| 3858 |
-- of the array type or subtype as a value of type Pos. |
| 3859 |
|
| 3860 |
-- Number_Entries (synthesized) |
| 3861 |
-- Applies to concurrent types. Returns the number of entries that are |
| 3862 |
-- declared within the task or protected definition for the type. |
| 3863 |
|
| 3864 |
-- Number_Formals (synthesized) |
| 3865 |
-- Applies to subprograms and subprogram types. Yields the number of |
| 3866 |
-- formals as a value of type Nat. |
| 3867 |
|
| 3868 |
-- Object_Size_Clause (synthesized) |
| 3869 |
-- Applies to entities for types and subtypes. If an object size clause |
| 3870 |
-- is present in the rep item chain for an entity then the attribute |
| 3871 |
-- definition clause node is returned. Otherwise Object_Size_Clause |
| 3872 |
-- returns Empty if no item is present. Usually this is only meaningful |
| 3873 |
-- if the flag Has_Object_Size_Clause is set. This is because when the |
| 3874 |
-- representation item chain is copied for a derived type, it can inherit |
| 3875 |
-- an object size clause that is not applicable to the entity. |
| 3876 |
|
| 3877 |
-- OK_To_Rename |
| 3878 |
-- Defined only in entities for variables. If this flag is set, it |
| 3879 |
-- means that if the entity is used as the initial value of an object |
| 3880 |
-- declaration, the object declaration can be safely converted into a |
| 3881 |
-- renaming to avoid an extra copy. This is set for variables which are |
| 3882 |
-- generated by the expander to hold the result of evaluating some |
| 3883 |
-- expression. Most notably, the local variables used to store the result |
| 3884 |
-- of concatenations are so marked (see Exp_Ch4.Expand_Concatenate). It |
| 3885 |
-- is only worth setting this flag for composites, since for primitive |
| 3886 |
-- types, it is cheaper to do the copy. |
| 3887 |
|
| 3888 |
-- Optimize_Alignment_Space |
| 3889 |
-- Defined in type, subtype, variable, and constant entities. This |
| 3890 |
-- flag records that the type or object is to be laid out in a manner |
| 3891 |
-- consistent with Optimize_Alignment (Space) mode. The compiler and |
| 3892 |
-- binder ensure a consistent view of any given type or object. If pragma |
| 3893 |
-- Optimize_Alignment (Off) mode applies to the type/object, then neither |
| 3894 |
-- of the flags Optimize_Alignment_Space/Optimize_Alignment_Time is set. |
| 3895 |
|
| 3896 |
-- Optimize_Alignment_Time |
| 3897 |
-- Defined in type, subtype, variable, and constant entities. This |
| 3898 |
-- flag records that the type or object is to be laid out in a manner |
| 3899 |
-- consistent with Optimize_Alignment (Time) mode. The compiler and |
| 3900 |
-- binder ensure a consistent view of any given type or object. If pragma |
| 3901 |
-- Optimize_Alignment (Off) mode applies to the type/object, then neither |
| 3902 |
-- of the flags Optimize_Alignment_Space/Optimize_Alignment_Time is set. |
| 3903 |
|
| 3904 |
-- Original_Access_Type |
| 3905 |
-- Defined in E_Access_Subprogram_Type entities. Set only if the access |
| 3906 |
-- type was generated by the expander as part of processing an access- |
| 3907 |
-- to-protected-subprogram type. Points to the access-to-protected- |
| 3908 |
-- subprogram type. |
| 3909 |
|
| 3910 |
-- Original_Array_Type |
| 3911 |
-- Defined in modular types and array types and subtypes. Set only if |
| 3912 |
-- the Is_Packed_Array_Impl_Type flag is set, indicating that the type |
| 3913 |
-- is the implementation type for a packed array, and in this case it |
| 3914 |
-- points to the original array type for which this is the packed |
| 3915 |
-- array implementation type. |
| 3916 |
|
| 3917 |
-- Original_Protected_Subprogram |
| 3918 |
-- Defined in functions and procedures. Set only on internally built |
| 3919 |
-- dispatching subprograms of protected types to reference their original |
| 3920 |
-- non-dispatching protected subprogram since their names differ. |
| 3921 |
|
| 3922 |
-- Original_Record_Component |
| 3923 |
-- Defined in components, including discriminants. The usage depends |
| 3924 |
-- on whether the record is a base type and whether it is tagged. |
| 3925 |
-- |
| 3926 |
-- In base tagged types: |
| 3927 |
-- When the component is inherited in a record extension, it points |
| 3928 |
-- to the original component (the entity of the ancestor component |
| 3929 |
-- which is not itself inherited) otherwise it points to itself. The |
| 3930 |
-- backend uses this attribute to implement the automatic dereference |
| 3931 |
-- in the extension and to apply the transformation: |
| 3932 |
-- |
| 3933 |
-- Rec_Ext.Comp -> Rec_Ext.Parent. ... .Parent.Comp |
| 3934 |
-- |
| 3935 |
-- In base untagged types: |
| 3936 |
-- Always points to itself except for non-stored discriminants, where |
| 3937 |
-- it points to the stored discriminant it renames. |
| 3938 |
-- |
| 3939 |
-- In subtypes (tagged and untagged): |
| 3940 |
-- Points to the component in the base type. |
| 3941 |
|
| 3942 |
-- Overlays_Constant |
| 3943 |
-- Defined in all entities. Set only for E_Constant or E_Variable for |
| 3944 |
-- which there is an address clause that causes the entity to overlay |
| 3945 |
-- a constant object. |
| 3946 |
|
| 3947 |
-- Overridden_Operation |
| 3948 |
-- Defined in subprograms. For overriding operations, points to the |
| 3949 |
-- user-defined parent subprogram that is being overridden. Note: this |
| 3950 |
-- attribute uses the same field as Static_Initialization. The latter |
| 3951 |
-- is only defined for internal initialization procedures, for which |
| 3952 |
-- Overridden_Operation is irrelevant. Thus this attribute must not be |
| 3953 |
-- set for init_procs. |
| 3954 |
|
| 3955 |
-- Package_Instantiation |
| 3956 |
-- Defined in packages and generic packages. When defined, this field |
| 3957 |
-- references an N_Generic_Instantiation node associated with an |
| 3958 |
-- instantiated package. In the case where the referenced node has |
| 3959 |
-- been rewritten to an N_Package_Specification, the instantiation |
| 3960 |
-- node is available from the Original_Node field of the package spec |
| 3961 |
-- node. This is currently not guaranteed to be set in all cases, but |
| 3962 |
-- when set, the field is used in Get_Unit_Instantiation_Node as |
| 3963 |
-- one of the means of obtaining the instantiation node. Eventually |
| 3964 |
-- it should be set in all cases, including package entities associated |
| 3965 |
-- with formal packages. ??? |
| 3966 |
|
| 3967 |
-- Packed_Array_Impl_Type |
| 3968 |
-- Defined in array types and subtypes, except for the string literal |
| 3969 |
-- subtype case, if the corresponding type is packed and implemented |
| 3970 |
-- specially (either bit-packed or packed to eliminate holes in the |
| 3971 |
-- non-contiguous enumeration index types). References the type used to |
| 3972 |
-- represent the packed array, which is either a modular type for short |
| 3973 |
-- static arrays or an array of System.Unsigned in the bit-packed case, |
| 3974 |
-- or a regular array in the non-standard enumeration index case. Note |
| 3975 |
-- that in some situations (internal types and references to fields of |
| 3976 |
-- variant records), it is not always possible to construct this type in |
| 3977 |
-- advance of its use. If this field is empty, then the necessary type |
| 3978 |
-- is declared on the fly for each reference to the array. |
| 3979 |
|
| 3980 |
-- Parameter_Mode (synthesized) |
| 3981 |
-- Applies to formal parameter entities. This is a synonym for Ekind, |
| 3982 |
-- used when obtaining the formal kind of a formal parameter (the result |
| 3983 |
-- is one of E_[In/Out/In_Out]_Parameter). |
| 3984 |
|
| 3985 |
-- Parent_Subtype [base type only] |
| 3986 |
-- Defined in E_Record_Type. Set only for derived tagged types, in which |
| 3987 |
-- case it points to the subtype of the parent type. This is the type |
| 3988 |
-- that is used as the Etype of the _parent field. |
| 3989 |
|
| 3990 |
-- Part_Of_Constituents |
| 3991 |
-- Present in abstract state and variable entities. Contains all |
| 3992 |
-- constituents that are subject to indicator Part_Of (both aspect and |
| 3993 |
-- option variants). |
| 3994 |
|
| 3995 |
-- Part_Of_References |
| 3996 |
-- Present in variable entities. Contains all references to the variable |
| 3997 |
-- when it is subject to pragma Part_Of. If the variable is a constituent |
| 3998 |
-- of a single protected/task type, the references are examined as they |
| 3999 |
-- must appear only within the type definition and the corresponding |
| 4000 |
-- body. |
| 4001 |
|
| 4002 |
-- Partial_DIC_Procedure (synthesized) |
| 4003 |
-- Defined in type entities. Set for a private type and its full view |
| 4004 |
-- when the type is subject to pragma Default_Initial_Condition (DIC), or |
| 4005 |
-- when the type inherits a DIC pragma from a parent type. Points to the |
| 4006 |
-- entity of a procedure that takes a single argument of the given type |
| 4007 |
-- and verifies the assertion expression of the DIC pragma at run time. |
| 4008 |
-- When present, the Partial_DIC_Procedure of a type only checks DICs |
| 4009 |
-- associated with the partial (private) view of the type, and is invoked |
| 4010 |
-- by the full DIC_Procedure (which may check additional DICs associated |
| 4011 |
-- with the full view). |
| 4012 |
|
| 4013 |
-- Note: the reason this is marked as a synthesized attribute is that the |
| 4014 |
-- way this is stored is as an element of the Subprograms_For_Type field. |
| 4015 |
|
| 4016 |
-- Partial_Invariant_Procedure (synthesized) |
| 4017 |
-- Defined in types and subtypes. Set for private types when one or more |
| 4018 |
-- [class-wide] type invariants apply to them. Points to the entity for a |
| 4019 |
-- procedure which checks the invariant. This invariant procedure takes a |
| 4020 |
-- single argument of the given type, and returns if the invariant holds, |
| 4021 |
-- or raises exception Assertion_Error with an appropriate message if it |
| 4022 |
-- does not hold. This attribute is defined but always Empty for private |
| 4023 |
-- subtypes. This attribute is also set for the corresponding full type. |
| 4024 |
-- |
| 4025 |
-- Note: the reason this is marked as a synthesized attribute is that the |
| 4026 |
-- way this is stored is as an element of the Subprograms_For_Type field. |
| 4027 |
|
| 4028 |
-- Partial_Refinement_Constituents (synthesized) |
| 4029 |
-- Defined in abstract state entities. Returns the constituents that |
| 4030 |
-- refine the state in the current scope, which are allowed in a global |
| 4031 |
-- refinement in this scope. These consist of those constituents that are |
| 4032 |
-- abstract states with no or only partial refinement visible, and those |
| 4033 |
-- that are not themselves abstract states. |
| 4034 |
|
| 4035 |
-- Partial_View_Has_Unknown_Discr |
| 4036 |
-- Present in all types. Set to Indicate that the partial view of a type |
| 4037 |
-- has unknown discriminants. A default initialization of an object of |
| 4038 |
-- the type does not require an invariant check (AI12-0133). |
| 4039 |
|
| 4040 |
-- Predicate_Function (synthesized) |
| 4041 |
-- Defined in all types. Set for types for which (Has_Predicates is True) |
| 4042 |
-- and for which a predicate procedure has been built that tests that the |
| 4043 |
-- specified predicates are True. Contains the entity for the function |
| 4044 |
-- which takes a single argument of the given type (and sometimes an |
| 4045 |
-- additional Boolean parameter), and returns True if the predicate |
| 4046 |
-- holds and False if it does not. |
| 4047 |
-- |
| 4048 |
-- Note: flag Has_Predicate does not imply that Predicate_Function is set |
| 4049 |
-- to a non-empty entity; this happens, for example, for itypes created |
| 4050 |
-- when instantiating generic units with private types with predicates. |
| 4051 |
-- However, if an explicit pragma Predicate or Predicate aspect is given |
| 4052 |
-- either for private or full type declaration then both Has_Predicates |
| 4053 |
-- and a non-empty Predicate_Function will be set on both the partial and |
| 4054 |
-- full views of the type. |
| 4055 |
-- |
| 4056 |
-- Note: the reason this is marked as a synthesized attribute is that the |
| 4057 |
-- way this is stored is as an element of the Subprograms_For_Type field. |
| 4058 |
|
| 4059 |
-- Predicate_Expression |
| 4060 |
-- Defined on functions. For the defining identifier of the subprogram |
| 4061 |
-- declaration (not of the subprogram body) of a predicate function, |
| 4062 |
-- yields the expression for the noninherited portion of the given |
| 4063 |
-- predicate (except in the case where the inherited portion is |
| 4064 |
-- non-empty and the non-inherited portion is empty, in which case the |
| 4065 |
-- expression for the inherited portion is returned). Otherwise yields |
| 4066 |
-- empty. |
| 4067 |
|
| 4068 |
-- Predicated_Parent |
| 4069 |
-- Defined on itypes created by subtype indications, when the parent |
| 4070 |
-- subtype has predicates. The itype shares the Predicate_Function |
| 4071 |
-- of the predicated parent, but this function may not have been built |
| 4072 |
-- at the point the Itype is constructed, so this attribute allows its |
| 4073 |
-- retrieval at the point a predicate check needs to be generated. |
| 4074 |
-- The utility Predicate_Function takes this link into account. |
| 4075 |
|
| 4076 |
-- Predicates_Ignored |
| 4077 |
-- Defined on all types. Indicates whether the subtype declaration is in |
| 4078 |
-- a context where Assertion_Policy is Ignore, in which case no checks |
| 4079 |
-- (static or dynamic) must be generated for objects of the type. |
| 4080 |
|
| 4081 |
-- Prev_Entity |
| 4082 |
-- Defined in all entities. The entities of a scope are chained, and this |
| 4083 |
-- field is used as a backward pointer for this entity list - effectively |
| 4084 |
-- making the entity chain doubly-linked. |
| 4085 |
|
| 4086 |
-- Primitive_Operations (synthesized) |
| 4087 |
-- Defined in concurrent types, tagged record types and subtypes, tagged |
| 4088 |
-- private types, and tagged incomplete types. Moreover, it is also |
| 4089 |
-- defined in untagged types, both when GNAT extensions are allowed, to |
| 4090 |
-- support prefixed calls for untagged types, and when GNAT extensions |
| 4091 |
-- are not allowed, to give better error messages. For concurrent types |
| 4092 |
-- whose Corresponding_Record_Type (CRT) is available, returns the list |
| 4093 |
-- of Direct_Primitive_Operations of this CRT. In all the other cases, |
| 4094 |
-- returns the list of Direct_Primitive_Operations. |
| 4095 |
|
| 4096 |
-- Prival |
| 4097 |
-- Defined in private components of protected types. Refers to the entity |
| 4098 |
-- of the component renaming declaration generated inside protected |
| 4099 |
-- subprograms, entries or barrier functions. |
| 4100 |
|
| 4101 |
-- Prival_Link |
| 4102 |
-- Defined in constants and variables which rename private components of |
| 4103 |
-- protected types. Set to the original private component. |
| 4104 |
|
| 4105 |
-- Private_Dependents |
| 4106 |
-- Defined in private (sub)types. Records the subtypes of the private |
| 4107 |
-- type, derivations from it, and records and arrays with components |
| 4108 |
-- dependent on the type. |
| 4109 |
-- |
| 4110 |
-- The subtypes are traversed when installing and deinstalling (the full |
| 4111 |
-- view of) a private type in order to ensure correct view of the |
| 4112 |
-- subtypes. |
| 4113 |
-- |
| 4114 |
-- Used in similar fashion for incomplete types: holds list of subtypes |
| 4115 |
-- of these incomplete types that have discriminant constraints. The |
| 4116 |
-- full views of these subtypes are constructed when the full view of |
| 4117 |
-- the incomplete type is processed. |
| 4118 |
|
| 4119 |
-- In addition, if the incomplete type is the designated type in an |
| 4120 |
-- access definition for an access parameter, the operation may be |
| 4121 |
-- a dispatching primitive operation, which is only known when the full |
| 4122 |
-- declaration of the type is seen. Subprograms that have such an |
| 4123 |
-- access parameter are also placed in the list of private_dependents. |
| 4124 |
|
| 4125 |
-- Protected_Body_Subprogram |
| 4126 |
-- Defined in protected operations. References the entity for the |
| 4127 |
-- subprogram which implements the body of the operation. |
| 4128 |
|
| 4129 |
-- Protected_Formal |
| 4130 |
-- Defined in formal parameters (in, in out and out parameters). Used |
| 4131 |
-- only for formals of protected operations. References corresponding |
| 4132 |
-- formal parameter in the unprotected version of the operation that |
| 4133 |
-- is created during expansion. |
| 4134 |
|
| 4135 |
-- Protected_Subprogram |
| 4136 |
-- Defined in functions and procedures. Set for the pair of subprograms |
| 4137 |
-- which emulate the runtime semantics of a protected subprogram. Denotes |
| 4138 |
-- the entity of the original protected subprogram. |
| 4139 |
|
| 4140 |
-- Protection_Object |
| 4141 |
-- Applies to protected entries, entry families and subprograms. Denotes |
| 4142 |
-- the entity which is used to rename the _object component of protected |
| 4143 |
-- types. |
| 4144 |
|
| 4145 |
-- Reachable |
| 4146 |
-- Defined in labels. The flag is set over the range of statements in |
| 4147 |
-- which a goto to that label is legal. |
| 4148 |
|
| 4149 |
-- Receiving_Entry |
| 4150 |
-- Defined in procedures. Set for an internally generated procedure which |
| 4151 |
-- wraps the original statements of an accept alternative. Designates the |
| 4152 |
-- entity of the task entry being accepted. |
| 4153 |
|
| 4154 |
-- Referenced |
| 4155 |
-- Defined in all entities. Set if the entity is referenced, except for |
| 4156 |
-- the case of an appearance of a simple variable that is not a renaming |
| 4157 |
-- as the left side of an assignment in which case Referenced_As_LHS is |
| 4158 |
-- set instead, or a similar appearance as an out parameter actual, in |
| 4159 |
-- which case Referenced_As_Out_Parameter is set. |
| 4160 |
|
| 4161 |
-- Referenced_As_LHS |
| 4162 |
-- Defined in all entities. This flag is set instead of Referenced if a |
| 4163 |
-- simple variable that is not a renaming appears as the left side of an |
| 4164 |
-- assignment. The reason we distinguish this kind of reference is that |
| 4165 |
-- we have a separate warning for variables that are only assigned and |
| 4166 |
-- never read. |
| 4167 |
|
| 4168 |
-- Referenced_As_Out_Parameter |
| 4169 |
-- Defined in all entities. This flag is set instead of Referenced if a |
| 4170 |
-- simple variable that is not a renaming appears as an actual for an out |
| 4171 |
-- formal. The reason we distinguish this kind of reference is that |
| 4172 |
-- we have a separate warning for variables that are only assigned and |
| 4173 |
-- never read, and out parameters are a special case. |
| 4174 |
|
| 4175 |
-- Refinement_Constituents |
| 4176 |
-- Present in abstract state entities. Contains all the constituents that |
| 4177 |
-- refine the state, in other words, all the hidden states that appear in |
| 4178 |
-- the constituent_list of aspect/pragma Refined_State. |
| 4179 |
|
| 4180 |
-- Register_Exception_Call |
| 4181 |
-- Defined in exception entities. When an exception is declared, |
| 4182 |
-- a call is expanded to Register_Exception. This field points to |
| 4183 |
-- the expanded N_Procedure_Call_Statement node for this call. It |
| 4184 |
-- is used for Import/Export_Exception processing to modify the |
| 4185 |
-- register call to make appropriate entries in the special tables |
| 4186 |
-- used for handling these pragmas at run time. |
| 4187 |
|
| 4188 |
-- Related_Array_Object |
| 4189 |
-- Defined in array types and subtypes. Used only for the base type |
| 4190 |
-- and subtype created for an anonymous array object. Set to point |
| 4191 |
-- to the entity of the corresponding array object. Currently used |
| 4192 |
-- only for type-related error messages. |
| 4193 |
|
| 4194 |
-- Related_Expression |
| 4195 |
-- Defined in variables, types and functions. When Set for internally |
| 4196 |
-- generated entities, it may be used to denote the source expression |
| 4197 |
-- whose elaboration created the variable declaration. If set, it is used |
| 4198 |
-- for generating clearer messages from CodePeer. It is used on source |
| 4199 |
-- entities that are variables in iterator specifications, to provide |
| 4200 |
-- a link to the container that is the domain of iteration. This allows |
| 4201 |
-- for better cross-reference information when the loop modifies elements |
| 4202 |
-- of the container, and suppresses spurious warnings. |
| 4203 |
-- Finally this node is used on functions specified via the Real_Literal |
| 4204 |
-- aspect, to denote the 2-parameter overloading, if found. |
| 4205 |
-- |
| 4206 |
-- Shouldn't it also be used for the same purpose in errout? It seems |
| 4207 |
-- odd to have two mechanisms here??? |
| 4208 |
|
| 4209 |
-- Related_Instance |
| 4210 |
-- Defined in the wrapper packages created for subprogram instances. |
| 4211 |
-- The internal subprogram that implements the instance is inside the |
| 4212 |
-- wrapper package, but for debugging purposes its external symbol |
| 4213 |
-- must correspond to the name and scope of the related instance. |
| 4214 |
|
| 4215 |
-- Related_Type |
| 4216 |
-- Defined in components, constants and variables. Set when there is an |
| 4217 |
-- associated dispatch table to point to entities containing primary or |
| 4218 |
-- secondary tags. Not set in the _tag component of record types. |
| 4219 |
|
| 4220 |
-- Relative_Deadline_Variable [implementation base type only] |
| 4221 |
-- Defined in task type entities. This flag is set if a valid and |
| 4222 |
-- effective pragma Relative_Deadline applies to the base type. Points |
| 4223 |
-- to the entity for a variable that is created to hold the value given |
| 4224 |
-- in a Relative_Deadline pragma for a task type. |
| 4225 |
|
| 4226 |
-- Renamed_Entity |
| 4227 |
-- Defined in exception, generic unit, package, and subprogram entities. |
| 4228 |
-- Set when the entity is defined by a renaming declaration. Denotes the |
| 4229 |
-- renamed entity, or transitively the ultimate renamed entity if there |
| 4230 |
-- is a chain of renaming declarations. Empty if no renaming. |
| 4231 |
|
| 4232 |
-- Renamed_In_Spec |
| 4233 |
-- Defined in package entities. If a package renaming occurs within |
| 4234 |
-- a package spec, then this flag is set on the renamed package. The |
| 4235 |
-- purpose is to prevent a warning about unused entities in the renamed |
| 4236 |
-- package. Such a warning would be inappropriate since clients of the |
| 4237 |
-- package can see the entities in the package via the renaming. |
| 4238 |
|
| 4239 |
-- Renamed_Object |
| 4240 |
-- Defined in components, constants, discriminants, formal parameters, |
| 4241 |
-- generic formals, loop parameters, and variables. Set to non-Empty if |
| 4242 |
-- the object was declared by a renaming declaration. For constants and |
| 4243 |
-- variables, the attribute references the tree node for the name of the |
| 4244 |
-- renamed object. For formal parameters, the field is used in inlining |
| 4245 |
-- and maps the entities of all formal parameters of a subprogram to the |
| 4246 |
-- entities of the corresponding actuals. For formals of a task entry, |
| 4247 |
-- the attribute denotes the local renaming that replaces the actual |
| 4248 |
-- within an accept statement. For all remaining cases (discriminants, |
| 4249 |
-- loop parameters) the field is Empty. |
| 4250 |
|
| 4251 |
-- Renames_Limited_View |
| 4252 |
-- Defined in package entities. True for a package renaming if either |
| 4253 |
-- a) the renamed package is not itself a renaming, and the renaming |
| 4254 |
-- denotes a limited view of the renamed package (as seen at the |
| 4255 |
-- point of the renaming declaration, as opposed to later on when |
| 4256 |
-- the renaming is referenced); or |
| 4257 |
-- b) the renamed package is itself a renaming and the |
| 4258 |
-- Renames_Limited_View flag is True for the renamed package. |
| 4259 |
|
| 4260 |
-- Requires_Overriding |
| 4261 |
-- Defined in all subprograms and entries. Set for subprograms that |
| 4262 |
-- require overriding as defined by RM-2005-3.9.3(6/2). Note that this |
| 4263 |
-- is True only for implicitly declared subprograms; it is not set on the |
| 4264 |
-- parent type's subprogram. See also Is_Abstract_Subprogram. |
| 4265 |
|
| 4266 |
-- Return_Applies_To |
| 4267 |
-- Defined in E_Return_Statement. Points to the entity representing |
| 4268 |
-- the construct to which the return statement applies, as defined in |
| 4269 |
-- RM-6.5(4/2). Note that a (simple) return statement within an |
| 4270 |
-- extended_return_statement applies to the extended_return_statement, |
| 4271 |
-- even though it causes the whole function to return. |
| 4272 |
-- Also defined in special E_Block entities built as E_Return_Statement |
| 4273 |
-- for extended return statements and attached to the block statement |
| 4274 |
-- by Expand_N_Extended_Return_Statement before being turned into an |
| 4275 |
-- E_Block by semantic analysis. |
| 4276 |
|
| 4277 |
-- Return_Present |
| 4278 |
-- Defined in function and generic function entities. Set if the |
| 4279 |
-- function contains a return statement (used for error checking). |
| 4280 |
-- This flag can also be set in procedure and generic procedure |
| 4281 |
-- entities (for convenience in setting it), but is only tested |
| 4282 |
-- for the function case. |
| 4283 |
|
| 4284 |
-- Return_Statement |
| 4285 |
-- Defined in E_Variable. Set when Is_Return_Object is set, in which |
| 4286 |
-- case it points to the N_Simple_Return_Statement made from the |
| 4287 |
-- extended return statement. |
| 4288 |
|
| 4289 |
-- Returns_By_Ref |
| 4290 |
-- Defined in subprogram type entities and functions. Set if a function |
| 4291 |
-- (or a function type) returns a result by reference, either because the |
| 4292 |
-- result is built in place or its type is limited in Ada 95. |
| 4293 |
|
| 4294 |
-- Reverse_Bit_Order [base type only] |
| 4295 |
-- Defined in all record type entities. Set if entity has a Bit_Order |
| 4296 |
-- aspect (set by an aspect clause or attribute definition clause) that |
| 4297 |
-- has reversed the order of bits from the default value. When this flag |
| 4298 |
-- is set, a component clause must specify a set of bits entirely within |
| 4299 |
-- a single storage unit (Ada 95) or within a single machine scalar (see |
| 4300 |
-- Ada 2005 AI-133), or must occupy an integral number of storage units. |
| 4301 |
|
| 4302 |
-- Reverse_Storage_Order [base type only] |
| 4303 |
-- Defined in all record and array type entities. Set if entity has a |
| 4304 |
-- Scalar_Storage_Order aspect (set by an aspect clause or attribute |
| 4305 |
-- definition clause) that has reversed the order of storage elements |
| 4306 |
-- from the default value. When this flag is set for a record type, |
| 4307 |
-- the Bit_Order aspect must be set to the same value (either explicitly |
| 4308 |
-- or as the target default value). |
| 4309 |
|
| 4310 |
-- RM_Size |
| 4311 |
-- Defined in all type and subtype entities. Contains the value of |
| 4312 |
-- type'Size as defined in the RM. See also the Esize field and |
| 4313 |
-- and the description on "Handling of Type'Size Values". A value |
| 4314 |
-- of zero in this field for a non-discrete type means that |
| 4315 |
-- the front end has not yet determined the size value. For the |
| 4316 |
-- case of a discrete type, this field is always set by the front |
| 4317 |
-- end and zero is a legitimate value for a type with one value. |
| 4318 |
|
| 4319 |
-- Root_Type (synthesized) |
| 4320 |
-- Applies to all type entities. For class-wide types, returns the root |
| 4321 |
-- type of the class covered by the CW type, otherwise returns the |
| 4322 |
-- ultimate derivation ancestor of the given type. This function |
| 4323 |
-- preserves the view, i.e. the Root_Type of a partial view is the |
| 4324 |
-- partial view of the ultimate ancestor, the Root_Type of a full view |
| 4325 |
-- is the full view of the ultimate ancestor. Note that this function |
| 4326 |
-- does not correspond exactly to the use of root type in the RM, since |
| 4327 |
-- in the RM root type applies to a class of types, not to a type. |
| 4328 |
|
| 4329 |
-- Scalar_Range |
| 4330 |
-- Defined in all scalar types (including modular types, where the |
| 4331 |
-- bounds are 0 .. modulus - 1). References a node in the tree that |
| 4332 |
-- contains the bounds for the range. Note that this information |
| 4333 |
-- could be obtained by rummaging around the tree, but it is more |
| 4334 |
-- convenient to have it immediately at hand in the entity. The |
| 4335 |
-- contents of Scalar_Range can either be an N_Subtype_Indication |
| 4336 |
-- node (with a constraint), a Range node, or an Integer_Type_Definition, |
| 4337 |
-- but not a simple subtype reference (a subtype is converted into a |
| 4338 |
-- explicit range). |
| 4339 |
|
| 4340 |
-- Scale_Value |
| 4341 |
-- Defined in decimal fixed-point types and subtypes. This holds the |
| 4342 |
-- value of the Scale attribute for the type, i.e. the scale of the type |
| 4343 |
-- defined as the integer N such that the delta is equal to 10.0**(-N). |
| 4344 |
-- Note that, if Scale_Value is positive, then it is equal to Aft_Value. |
| 4345 |
|
| 4346 |
-- Scope |
| 4347 |
-- Defined in all entities. Points to the entity for the scope (block, |
| 4348 |
-- loop, subprogram, package etc.) in which the entity is declared. |
| 4349 |
-- Since this field is in the base part of the entity node, the access |
| 4350 |
-- routines for this field are in Sinfo. Note that for a child unit, |
| 4351 |
-- the Scope will be the parent package, and for a root library unit, |
| 4352 |
-- the Scope will be Standard. |
| 4353 |
|
| 4354 |
-- Scope_Depth (synthesized) |
| 4355 |
-- Applies to program units, blocks, loops, return statements, |
| 4356 |
-- concurrent types, private types and entries, and also to record types, |
| 4357 |
-- i.e. to any entity that can appear on the scope stack. Yields the |
| 4358 |
-- scope depth value, which for those entities other than records is |
| 4359 |
-- simply the Scope_Depth_Value, and for record entities, is the |
| 4360 |
-- Scope_Depth of the record's scope. |
| 4361 |
|
| 4362 |
-- Scope_Depth_Value |
| 4363 |
-- Defined in program units, blocks, loops, return statements, |
| 4364 |
-- concurrent types, private types and entries. |
| 4365 |
-- Indicates the number of scopes that statically enclose the declaration |
| 4366 |
-- of the unit or type. Library units have a depth of one. Note that |
| 4367 |
-- record types can act as scopes but do NOT have this field set (see |
| 4368 |
-- Scope_Depth above). Queries should normally be via Scope_Depth, |
| 4369 |
-- and not call Scope_Depth_Value directly. |
| 4370 |
|
| 4371 |
-- Scope_Depth_Set (synthesized) |
| 4372 |
-- Applies to a special predicate function that returns a Boolean value |
| 4373 |
-- indicating whether or not the Scope_Depth field has been set. It is |
| 4374 |
-- needed, since returns an invalid value in this case. |
| 4375 |
|
| 4376 |
-- Sec_Stack_Needed_For_Return |
| 4377 |
-- Defined in scope entities (blocks, entries, entry families, functions, |
| 4378 |
-- and procedures). Set to True when secondary stack is used to hold the |
| 4379 |
-- returned value of a function and thus should not be released on scope |
| 4380 |
-- exit. |
| 4381 |
|
| 4382 |
-- Shared_Var_Procs_Instance |
| 4383 |
-- Defined in variables. Set non-Empty only if Is_Shared_Passive is |
| 4384 |
-- set, in which case this is the entity for the associated instance of |
| 4385 |
-- System.Shared_Storage.Shared_Var_Procs. See Exp_Smem for full details. |
| 4386 |
|
| 4387 |
-- Size_Check_Code |
| 4388 |
-- Defined in constants and variables. Normally Empty. Set if code is |
| 4389 |
-- generated to check the size of the object. This field is used to |
| 4390 |
-- suppress this code if a subsequent address clause is encountered. |
| 4391 |
|
| 4392 |
-- Size_Clause (synthesized) |
| 4393 |
-- Applies to all entities. If a size or value size clause is present in |
| 4394 |
-- the rep item chain for an entity then that attribute definition clause |
| 4395 |
-- is returned. Otherwise Size_Clause returns Empty. Usually this is only |
| 4396 |
-- meaningful if the flag Has_Size_Clause is set. This is because when |
| 4397 |
-- the representation item chain is copied for a derived type, it can |
| 4398 |
-- inherit a size clause that is not applicable to the entity. |
| 4399 |
|
| 4400 |
-- Size_Depends_On_Discriminant |
| 4401 |
-- Defined in all entities for types and subtypes. Indicates that the |
| 4402 |
-- size of the type depends on the value of one or more discriminants. |
| 4403 |
-- Currently, this flag is only set for arrays which have one or more |
| 4404 |
-- bounds depending on a discriminant value. |
| 4405 |
|
| 4406 |
-- Size_Known_At_Compile_Time |
| 4407 |
-- Defined in all entities for types and subtypes. Indicates that the |
| 4408 |
-- size of objects of the type is known at compile time. This flag is |
| 4409 |
-- used to optimize some generated code sequences, and also to enable |
| 4410 |
-- some error checks (e.g. disallowing component clauses on variable |
| 4411 |
-- length objects). It is set conservatively (i.e. if it is True, the |
| 4412 |
-- size is certainly known at compile time, if it is False, then the |
| 4413 |
-- size may or may not be known at compile time, but the code will |
| 4414 |
-- assume that it is not known). Note that the value may be known only |
| 4415 |
-- to the back end, so the fact that this flag is set does not mean that |
| 4416 |
-- the front end can access the value. |
| 4417 |
|
| 4418 |
-- Small_Value |
| 4419 |
-- Defined in fixed point types. Points to the universal real for the |
| 4420 |
-- Small of the type, either as given in a representation clause, or |
| 4421 |
-- as computed (as a power of two) by the compiler. |
| 4422 |
|
| 4423 |
-- SPARK_Aux_Pragma |
| 4424 |
-- Present in concurrent type, [generic] package spec and package body |
| 4425 |
-- entities. For concurrent types and package specs it refers to the |
| 4426 |
-- SPARK mode setting for the private part. This field points to the |
| 4427 |
-- N_Pragma node that either appears in the private part or is inherited |
| 4428 |
-- from the enclosing context. For package bodies, it refers to the SPARK |
| 4429 |
-- mode of the elaboration sequence after the BEGIN. The fields points to |
| 4430 |
-- the N_Pragma node that either appears in the statement sequence or is |
| 4431 |
-- inherited from the enclosing context. In all cases, if the pragma is |
| 4432 |
-- inherited, then the SPARK_Aux_Pragma_Inherited flag is set. |
| 4433 |
|
| 4434 |
-- SPARK_Aux_Pragma_Inherited |
| 4435 |
-- Present in concurrent type, [generic] package spec and package body |
| 4436 |
-- entities. Set if the SPARK_Aux_Pragma field points to a pragma that is |
| 4437 |
-- inherited, rather than a local one. |
| 4438 |
|
| 4439 |
-- SPARK_Pragma |
| 4440 |
-- Present in the following entities: |
| 4441 |
-- |
| 4442 |
-- abstract states |
| 4443 |
-- constants |
| 4444 |
-- entries |
| 4445 |
-- operators |
| 4446 |
-- [generic] packages |
| 4447 |
-- package bodies |
| 4448 |
-- [generic] subprograms |
| 4449 |
-- subprogram bodies |
| 4450 |
-- variables |
| 4451 |
-- types |
| 4452 |
-- |
| 4453 |
-- Points to the N_Pragma node that applies to the initial declaration or |
| 4454 |
-- body. This is either set by a local SPARK_Mode pragma or is inherited |
| 4455 |
-- from the context (from an outer scope for the spec case or from the |
| 4456 |
-- spec for the body case). In the case where the attribute is inherited, |
| 4457 |
-- flag SPARK_Pragma_Inherited is set. Empty if no SPARK_Mode pragma is |
| 4458 |
-- applicable. |
| 4459 |
|
| 4460 |
-- SPARK_Pragma_Inherited |
| 4461 |
-- Present in the following entities: |
| 4462 |
-- |
| 4463 |
-- abstract states |
| 4464 |
-- constants |
| 4465 |
-- entries |
| 4466 |
-- operators |
| 4467 |
-- [generic] packages |
| 4468 |
-- package bodies |
| 4469 |
-- [generic] subprograms |
| 4470 |
-- subprogram bodies |
| 4471 |
-- variables |
| 4472 |
-- types |
| 4473 |
-- |
| 4474 |
-- Set if the SPARK_Pragma attribute points to an inherited pragma rather |
| 4475 |
-- than a local one. |
| 4476 |
|
| 4477 |
-- Spec_Entity |
| 4478 |
-- Defined in package body entities. Points to corresponding package |
| 4479 |
-- spec entity. Also defined in subprogram body parameters in the |
| 4480 |
-- case where there is a separate spec, where this field references |
| 4481 |
-- the corresponding parameter entities in the spec. |
| 4482 |
|
| 4483 |
-- SSO_Set_High_By_Default [base type only] |
| 4484 |
-- Defined for record and array types. Set in the base type if a pragma |
| 4485 |
-- Default_Scalar_Storage_Order (High_Order_First) was active at the time |
| 4486 |
-- the record or array was declared and therefore applies to it. |
| 4487 |
|
| 4488 |
-- SSO_Set_Low_By_Default [base type only] |
| 4489 |
-- Defined for record and array types. Set in the base type if a pragma |
| 4490 |
-- Default_Scalar_Storage_Order (High_Order_First) was active at the time |
| 4491 |
-- the record or array was declared and therefore applies to it. |
| 4492 |
|
| 4493 |
-- Static_Call_Helper |
| 4494 |
-- Defined on subprogram entities. Set if the subprogram has class-wide |
| 4495 |
-- preconditions. Denotes the helper that evaluates at runtime the |
| 4496 |
-- class-wide preconditions performing static calls. |
| 4497 |
|
| 4498 |
-- Static_Discrete_Predicate |
| 4499 |
-- Defined in discrete types/subtypes with static predicates (with the |
| 4500 |
-- two flags Has_Predicates and Has_Static_Predicate set). Set if the |
| 4501 |
-- type/subtype has a static predicate. Points to a list of expression |
| 4502 |
-- and N_Range nodes that represent the predicate in canonical form. The |
| 4503 |
-- canonical form has entries sorted in ascending order, with duplicates |
| 4504 |
-- eliminated, and adjacent ranges coalesced, so that there is always a |
| 4505 |
-- gap in the values between successive entries. The entries in this list |
| 4506 |
-- are fully analyzed and typed with the base type of the subtype. Note |
| 4507 |
-- that all entries are static and have values within the subtype range. |
| 4508 |
|
| 4509 |
-- Static_Elaboration_Desired |
| 4510 |
-- Defined in library-level packages. Set by the pragma of the same |
| 4511 |
-- name, to indicate that static initialization must be attempted for |
| 4512 |
-- all types declared in the package, and that a warning must be emitted |
| 4513 |
-- for those types to which static initialization is not available. |
| 4514 |
|
| 4515 |
-- Static_Initialization |
| 4516 |
-- Defined in initialization procedures for types whose objects can be |
| 4517 |
-- initialized statically. The value of this attribute is a positional |
| 4518 |
-- aggregate whose components are compile-time static values. Used |
| 4519 |
-- when available in object declarations to eliminate the call to the |
| 4520 |
-- initialization procedure, and to minimize elaboration code. Note: |
| 4521 |
-- This attribute uses the same field as Overridden_Operation, which is |
| 4522 |
-- irrelevant in init_procs. |
| 4523 |
|
| 4524 |
-- Static_Real_Or_String_Predicate |
| 4525 |
-- Defined in real types/subtypes with static predicates (with the two |
| 4526 |
-- flags Has_Predicates and Has_Static_Predicate set). Set if the type |
| 4527 |
-- or subtype has a static predicate. Points to the return expression |
| 4528 |
-- of the predicate function. This is the original expression given as |
| 4529 |
-- the predicate except that occurrences of the type are replaced by |
| 4530 |
-- occurrences of the formal parameter of the predicate function (note |
| 4531 |
-- that the spec of this function including this formal parameter name |
| 4532 |
-- is available from the Subprograms_For_Type field; it can be accessed |
| 4533 |
-- as Predicate_Function (typ)). Also, in the case where a predicate is |
| 4534 |
-- inherited, the expression is of the form: |
| 4535 |
-- |
| 4536 |
-- xxxPredicate (typ2 (ent)) AND THEN expression |
| 4537 |
-- |
| 4538 |
-- where typ2 is the type from which the predicate is inherited, ent is |
| 4539 |
-- the entity for the current predicate function, and xxxPredicate is the |
| 4540 |
-- inherited predicate (from typ2). Finally for a predicate that inherits |
| 4541 |
-- from another predicate but does not add a predicate of its own, the |
| 4542 |
-- expression may consist of the above xxxPredicate call on its own. |
| 4543 |
|
| 4544 |
-- Storage_Size_Variable [implementation base type only] |
| 4545 |
-- Defined in access types and task type entities. This flag is set |
| 4546 |
-- if a valid and effective pragma Storage_Size applies to the base |
| 4547 |
-- type. Points to the entity for a variable that is created to |
| 4548 |
-- hold the value given in a Storage_Size pragma for an access |
| 4549 |
-- collection or a task type. Note that in the access type case, |
| 4550 |
-- this field is defined only in the root type (since derived types |
| 4551 |
-- share the same storage pool). |
| 4552 |
|
| 4553 |
-- Stored_Constraint |
| 4554 |
-- Defined in type entities. Points to an element list containing the |
| 4555 |
-- expressions for each of the stored discriminants, if any, for the |
| 4556 |
-- (sub)type. |
| 4557 |
|
| 4558 |
-- Stores_Attribute_Old_Prefix |
| 4559 |
-- Defined in constants, variables, and types which are created during |
| 4560 |
-- expansion in order to save the value of attribute 'Old's prefix. |
| 4561 |
|
| 4562 |
-- Strict_Alignment [implementation base type only] |
| 4563 |
-- Defined in all type entities. Indicates that the type is by-reference |
| 4564 |
-- or contains an aliased part. This forbids packing a component of this |
| 4565 |
-- type tighter than the alignment and size of the type, as specified by |
| 4566 |
-- RM 13.2(7) modified by AI12-001 as a Binding Interpretation. |
| 4567 |
|
| 4568 |
-- String_Literal_Length |
| 4569 |
-- Defined in string literal subtypes (which are created to correspond |
| 4570 |
-- to string literals in the program). Contains the length of the string |
| 4571 |
-- literal. |
| 4572 |
|
| 4573 |
-- String_Literal_Low_Bound |
| 4574 |
-- Defined in string literal subtypes (which are created to correspond |
| 4575 |
-- to string literals in the program). Contains an expression whose |
| 4576 |
-- value represents the low bound of the literal. This is a copy of |
| 4577 |
-- the low bound of the applicable index constraint if there is one, |
| 4578 |
-- or a copy of the low bound of the index base type if not. |
| 4579 |
|
| 4580 |
-- Subprograms_For_Type |
| 4581 |
-- Defined in all types. The list may contain the entities of the default |
| 4582 |
-- initial condition procedure, invariant procedure, and the two versions |
| 4583 |
-- of the predicate function. |
| 4584 |
-- |
| 4585 |
-- Historical note: This attribute used to be a direct linked list of |
| 4586 |
-- entities rather than an Elist. The Elist allows greater flexibility |
| 4587 |
-- in inheritance of subprograms between views of the same type. |
| 4588 |
|
| 4589 |
-- Subps_Index |
| 4590 |
-- Present in subprogram entities. Set if the subprogram contains nested |
| 4591 |
-- subprograms, or is a subprogram nested within such a subprogram. Holds |
| 4592 |
-- the index in the Exp_Unst.Subps table for the subprogram. Note that |
| 4593 |
-- for the outer level subprogram, this is the starting index in the Subp |
| 4594 |
-- table for the entries for this subprogram. |
| 4595 |
|
| 4596 |
-- Suppress_Elaboration_Warnings |
| 4597 |
-- NOTE: this flag is relevant only for the legacy ABE mechanism and |
| 4598 |
-- should not be used outside of that context. |
| 4599 |
-- |
| 4600 |
-- Defined in all entities, can be set only for subprogram entities and |
| 4601 |
-- for variables. If this flag is set then Sem_Elab will not generate |
| 4602 |
-- elaboration warnings for the subprogram or variable. Suppression of |
| 4603 |
-- such warnings is automatic for subprograms for which elaboration |
| 4604 |
-- checks are suppressed (without the need to set this flag), but the |
| 4605 |
-- flag is also set for various internal entities (such as init procs) |
| 4606 |
-- which are known not to generate any possible access before elaboration |
| 4607 |
-- and it is set on variables when a warning is given to avoid multiple |
| 4608 |
-- elaboration warnings for the same variable. |
| 4609 |
|
| 4610 |
-- Suppress_Initialization |
| 4611 |
-- Defined in all variable, type and subtype entities. If set for a base |
| 4612 |
-- type, then the generation of initialization procedures is suppressed |
| 4613 |
-- for the type. Any other implicit initialization (e.g. from the use of |
| 4614 |
-- pragma Initialize_Scalars) is also suppressed if this flag is set for |
| 4615 |
-- either the subtype in question, or for the base type. For variables, |
| 4616 |
-- this flag suppresses all implicit initialization for the object, even |
| 4617 |
-- if the type would normally require initialization. Set by use of |
| 4618 |
-- pragma Suppress_Initialization and also for internal entities where |
| 4619 |
-- we know that no initialization is required. For example, enumeration |
| 4620 |
-- image table entities set it. |
| 4621 |
|
| 4622 |
-- Suppress_Style_Checks |
| 4623 |
-- Defined in all entities. Suppresses any style checks specifically |
| 4624 |
-- associated with the given entity if set. |
| 4625 |
|
| 4626 |
-- Suppress_Value_Tracking_On_Call |
| 4627 |
-- Defined in all entities. Set in a scope entity if value tracking is to |
| 4628 |
-- be suppressed on any call within the scope. Used when an access to a |
| 4629 |
-- local subprogram is computed, to deal with the possibility that this |
| 4630 |
-- value may be passed around, and if used, may clobber a local variable. |
| 4631 |
|
| 4632 |
-- Task_Body_Procedure |
| 4633 |
-- Defined in task types and subtypes. Points to the entity for the task |
| 4634 |
-- task body procedure (as further described in Exp_Ch9, task bodies are |
| 4635 |
-- expanded into procedures). A convenient function to retrieve this |
| 4636 |
-- field is Sem_Util.Get_Task_Body_Procedure. |
| 4637 |
-- |
| 4638 |
-- The last sentence is odd??? Why not have Task_Body_Procedure go to the |
| 4639 |
-- Underlying_Type of the Root_Type??? |
| 4640 |
|
| 4641 |
-- Thunk_Entity |
| 4642 |
-- Defined in functions and procedures which have been classified as |
| 4643 |
-- Is_Thunk. Set to the target entity called by the thunk. |
| 4644 |
|
| 4645 |
-- Treat_As_Volatile |
| 4646 |
-- Defined in all type entities, and also in constants, components and |
| 4647 |
-- variables. Set if this entity is to be treated as volatile for code |
| 4648 |
-- generation purposes. Always set if Is_Volatile is set, but can also |
| 4649 |
-- be set as a result of situations (such as address overlays) where |
| 4650 |
-- the front end wishes to force volatile handling to inhibit aliasing |
| 4651 |
-- optimization which might be legally ok, but is undesirable. Note |
| 4652 |
-- that the backend always tests this flag rather than Is_Volatile. |
| 4653 |
-- The front end tests Is_Volatile if it is concerned with legality |
| 4654 |
-- checks associated with declared volatile variables, but if the test |
| 4655 |
-- is for the purposes of suppressing optimizations, then the front |
| 4656 |
-- end should test Treat_As_Volatile rather than Is_Volatile. |
| 4657 |
-- |
| 4658 |
-- Note: before testing Treat_As_Volatile, consider whether it would |
| 4659 |
-- be more appropriate to use Exp_Util.Is_Volatile_Reference instead, |
| 4660 |
-- which catches more cases of volatile references. |
| 4661 |
|
| 4662 |
-- Type_High_Bound (synthesized) |
| 4663 |
-- Applies to scalar types. Returns the tree node (Node_Id) that contains |
| 4664 |
-- the high bound of a scalar type. The returned value is literal for a |
| 4665 |
-- base type, but may be an expression in the case of scalar type with |
| 4666 |
-- dynamic bounds. |
| 4667 |
|
| 4668 |
-- Type_Low_Bound (synthesized) |
| 4669 |
-- Applies to scalar types. Returns the tree node (Node_Id) that contains |
| 4670 |
-- the low bound of a scalar type. The returned value is literal for a |
| 4671 |
-- base type, but may be an expression in the case of scalar type with |
| 4672 |
-- dynamic bounds. |
| 4673 |
|
| 4674 |
-- Underlying_Full_View |
| 4675 |
-- Defined in private subtypes that are the completion of other private |
| 4676 |
-- types, or in private types that are derived from private subtypes. If |
| 4677 |
-- the full view of a private type T is derived from another private type |
| 4678 |
-- with discriminants Td, the full view of T is also private, and there |
| 4679 |
-- is no way to attach to it a further full view that would convey the |
| 4680 |
-- structure of T to the backend. The Underlying_Full_View is an |
| 4681 |
-- attribute of the full view that is a subtype of Td with the same |
| 4682 |
-- constraint as the declaration for T. The declaration for this subtype |
| 4683 |
-- is built at the point of the declaration of T, either as completion, |
| 4684 |
-- or as a subtype declaration where the base type is private and has a |
| 4685 |
-- private completion. If Td is already constrained, then its full view |
| 4686 |
-- can serve directly as the full view of T. |
| 4687 |
|
| 4688 |
-- Underlying_Record_View |
| 4689 |
-- Defined in record types. Set for record types that are extensions of |
| 4690 |
-- types with unknown discriminants, and also set for internally built |
| 4691 |
-- underlying record views to reference its original record type. Record |
| 4692 |
-- types that are extensions of types with unknown discriminants do not |
| 4693 |
-- have a completion, but they cannot be used without having some |
| 4694 |
-- discriminated view at hand. This view is a record type with the same |
| 4695 |
-- structure, whose parent type is the full view of the parent in the |
| 4696 |
-- original type extension. |
| 4697 |
|
| 4698 |
-- Underlying_Type (synthesized) |
| 4699 |
-- Applies to all entities. This is the identity function except in the |
| 4700 |
-- case where it is applied to an incomplete or private type, in which |
| 4701 |
-- case it is the underlying type of the type declared by the completion, |
| 4702 |
-- or Empty if the completion has not yet been encountered and analyzed. |
| 4703 |
-- |
| 4704 |
-- Note: the reason this attribute applies to all entities, and not just |
| 4705 |
-- types, is to legitimize code where Underlying_Type is applied to an |
| 4706 |
-- entity which may or may not be a type, with the intent that if it is a |
| 4707 |
-- type, its underlying type is taken. |
| 4708 |
-- |
| 4709 |
-- Note also that the value of this attribute is interesting only after |
| 4710 |
-- the full view of the parent type has been processed. If the parent |
| 4711 |
-- type is declared in an enclosing package, the attribute will be non- |
| 4712 |
-- trivial only after the full view of the type has been analyzed. |
| 4713 |
|
| 4714 |
-- Universal_Aliasing [implementation base type only] |
| 4715 |
-- Defined in all type entities. Set to direct the back-end to avoid |
| 4716 |
-- any optimizations based on type-based alias analysis for this type. |
| 4717 |
-- Indicates that objects of this type can alias objects of any other |
| 4718 |
-- types, which guarantees that any objects can be referenced through |
| 4719 |
-- access types designating this type safely, whatever the actual type |
| 4720 |
-- of these objects. In other words, the effect is as though access |
| 4721 |
-- types designating this type were subject to No_Strict_Aliasing. |
| 4722 |
|
| 4723 |
-- Unset_Reference |
| 4724 |
-- Defined in variables and out parameters. This is normally Empty. It |
| 4725 |
-- is set to point to an identifier that represents a reference to the |
| 4726 |
-- entity before any value has been set. Only the first such reference |
| 4727 |
-- is identified. This field is used to generate a warning message if |
| 4728 |
-- necessary (see Sem_Warn.Check_Unset_Reference). |
| 4729 |
|
| 4730 |
-- Used_As_Generic_Actual |
| 4731 |
-- Defined in all entities, set if the entity is used as an argument to |
| 4732 |
-- a generic instantiation. Used to tune certain warning messages, and |
| 4733 |
-- in checking type conformance within an instantiation that involves |
| 4734 |
-- incomplete formal and actual types. |
| 4735 |
|
| 4736 |
-- Uses_Lock_Free |
| 4737 |
-- Defined in protected type entities. Set to True when the Lock Free |
| 4738 |
-- implementation is used for the protected type. This implementation is |
| 4739 |
-- based on atomic transactions and doesn't require anymore the use of |
| 4740 |
-- Protection object (see System.Tasking.Protected_Objects). |
| 4741 |
|
| 4742 |
-- Uses_Sec_Stack |
| 4743 |
-- Defined in scope entities (blocks, entries, entry families, functions, |
| 4744 |
-- loops, and procedures). Set to True when the secondary stack is used |
| 4745 |
-- in this scope and must be released on exit unless flag |
| 4746 |
-- Sec_Stack_Needed_For_Return is set. |
| 4747 |
|
| 4748 |
-- Validated_Object |
| 4749 |
-- Defined in variables. Contains the object whose value is captured by |
| 4750 |
-- the variable for validity check purposes. |
| 4751 |
|
| 4752 |
-- Warnings_Off |
| 4753 |
-- Defined in all entities. Set if a pragma Warnings (Off, entity-name) |
| 4754 |
-- is used to suppress warnings for a given entity. It is also used by |
| 4755 |
-- the compiler in some situations to kill spurious warnings. Note that |
| 4756 |
-- clients should generally not test this flag directly, but instead |
| 4757 |
-- use function Has_Warnings_Off. |
| 4758 |
|
| 4759 |
-- Warnings_Off_Used |
| 4760 |
-- Defined in all entities. Can only be set if Warnings_Off is set. If |
| 4761 |
-- set indicates that a warning was suppressed by the Warnings_Off flag, |
| 4762 |
-- and Unmodified/Unreferenced would not have suppressed the warning. |
| 4763 |
|
| 4764 |
-- Warnings_Off_Used_Unmodified |
| 4765 |
-- Defined in all entities. Can only be set if Warnings_Off is set and |
| 4766 |
-- Has_Pragma_Unmodified is not set. If set indicates that a warning was |
| 4767 |
-- suppressed by the Warnings_Off status but that pragma Unmodified |
| 4768 |
-- would also have suppressed the warning. |
| 4769 |
|
| 4770 |
-- Warnings_Off_Used_Unreferenced |
| 4771 |
-- Defined in all entities. Can only be set if Warnings_Off is set and |
| 4772 |
-- Has_Pragma_Unreferenced is not set. If set indicates that a warning |
| 4773 |
-- was suppressed by the Warnings_Off status but that pragma Unreferenced |
| 4774 |
-- would also have suppressed the warning. |
| 4775 |
|
| 4776 |
-- Was_Hidden |
| 4777 |
-- Defined in all entities. Used to save the value of the Is_Hidden |
| 4778 |
-- attribute when the limited-view is installed (Ada 2005: AI-217). |
| 4779 |
|
| 4780 |
-- Wrapped_Entity |
| 4781 |
-- Defined in functions and procedures which have been classified as |
| 4782 |
-- Is_Primitive_Wrapper. Set to the entity being wrapper. |
| 4783 |
|
| 4784 |
-- Wrapped_Statements |
| 4785 |
-- Defined in functions, procedures, entries, and entry families. Refers |
| 4786 |
-- to the entity of the _Wrapped_Statements procedure, which gets |
| 4787 |
-- generated as part of the expansion of contracts and postconditions |
| 4788 |
-- and contains its enclosing subprogram's original source declarations |
| 4789 |
-- and statements. |
| 4790 |
|
| 4791 |
-- LSP_Subprogram |
| 4792 |
-- Defined in subprogram entities. Set on wrappers created to handle |
| 4793 |
-- inherited class-wide pre/post conditions that call overridden |
| 4794 |
-- primitives. It references the parent primitive that has the |
| 4795 |
-- class-wide pre/post conditions. LSP stands for Liskov Substitution |
| 4796 |
-- Principle. |
| 4797 |
|
| 4798 |
--------------------------- |
| 4799 |
-- Renaming and Aliasing -- |
| 4800 |
--------------------------- |
| 4801 |
|
| 4802 |
-- Several entity attributes relate to renaming constructs, and to the use of |
| 4803 |
-- different names to refer to the same entity. The following is a summary of |
| 4804 |
-- these constructs and their preferred uses. |
| 4805 |
|
| 4806 |
-- There are three related attributes: |
| 4807 |
|
| 4808 |
-- Renamed_Entity |
| 4809 |
-- Renamed_Object |
| 4810 |
-- Alias |
| 4811 |
|
| 4812 |
-- These are implemented in Einfo.Utils as renamings of the Renamed_Or_Alias |
| 4813 |
-- field. They are semantically related, and have the following intended uses: |
| 4814 |
|
| 4815 |
-- a) Renamed_Entity applies to entities in renaming declarations that rename |
| 4816 |
-- an entity, so the value of the attribute IS an entity. This applies to |
| 4817 |
-- generic renamings, package renamings, exception renamings, and subprogram |
| 4818 |
-- renamings that rename a subprogram (rather than an attribute, an entry, a |
| 4819 |
-- protected operation, etc). |
| 4820 |
|
| 4821 |
-- b) Alias applies to overloadable entities, and the value is an overloadable |
| 4822 |
-- entity. So this is a subset of the previous one. We use the term Alias to |
| 4823 |
-- cover both renamings and inherited operations, because both cases are |
| 4824 |
-- handled in the same way when expanding a call. Namely the Alias of a given |
| 4825 |
-- subprogram is the subprogram that will actually be called. |
| 4826 |
|
| 4827 |
-- Both a) and b) are set transitively, so that in fact it is not necessary to |
| 4828 |
-- traverse chains of renamings when looking for the original entity: it's |
| 4829 |
-- there in one step (this is done when analyzing renaming declarations other |
| 4830 |
-- than object renamings in sem_ch8). |
| 4831 |
|
| 4832 |
-- c) Renamed_Object applies to constants and variables. Given that the name |
| 4833 |
-- in an object renaming declaration is not necessarily an entity name, the |
| 4834 |
-- value of the attribute is the tree for that name, eg AR (1).Comp. The case |
| 4835 |
-- when that name is in fact an entity is not handled specially. This is why |
| 4836 |
-- in a few cases we need to use a loop to trace a chain of object renamings |
| 4837 |
-- where all of them happen to be entities. So: |
| 4838 |
|
| 4839 |
-- X : Integer; |
| 4840 |
-- Y : Integer renames X; -- renamed object is the identifier X |
| 4841 |
-- Z : Integer renames Y; -- renamed object is the identifier Y |
| 4842 |
|
| 4843 |
-- The front-end does not store explicitly the fact that Z renames X. |
| 4844 |
|
| 4845 |
------------------ |
| 4846 |
-- Access Kinds -- |
| 4847 |
------------------ |
| 4848 |
|
| 4849 |
-- The following entity kinds are introduced by the corresponding type |
| 4850 |
-- definitions: |
| 4851 |
|
| 4852 |
-- E_Access_Type, |
| 4853 |
-- E_General_Access_Type, |
| 4854 |
-- E_Anonymous_Access_Type |
| 4855 |
|
| 4856 |
-- E_Access_Subprogram_Type, |
| 4857 |
-- E_Anonymous_Access_Subprogram_Type, |
| 4858 |
|
| 4859 |
-- E_Access_Protected_Subprogram_Type, |
| 4860 |
-- E_Anonymous_Access_Protected_Subprogram_Type |
| 4861 |
|
| 4862 |
-- E_Access_Subtype is for an access subtype created by a subtype declaration |
| 4863 |
|
| 4864 |
-- In addition, we define the kind E_Allocator_Type to label allocators. |
| 4865 |
-- This is because special resolution rules apply to this construct. |
| 4866 |
-- Eventually the constructs are labeled with the access type imposed by |
| 4867 |
-- the context. The backend should never see types with this Ekind. |
| 4868 |
|
| 4869 |
-- Similarly, we define the kind E_Access_Attribute_Type as the initial |
| 4870 |
-- kind associated with an access attribute whose prefix is an object. |
| 4871 |
-- After resolution, a specific access type will be established instead |
| 4872 |
-- as determined by the context. Note that, for the case of an access |
| 4873 |
-- attribute whose prefix is a subprogram, we build a corresponding type |
| 4874 |
-- with E_Access_Subprogram_Type or E_Access_Protected_Subprogram_Type kind |
| 4875 |
-- but whose designated type is the subprogram itself, instead of a regular |
| 4876 |
-- E_Subprogram_Type entity. |
| 4877 |
|
| 4878 |
-------------------------------------------------------- |
| 4879 |
-- Description of Defined Attributes for Entity_Kinds -- |
| 4880 |
-------------------------------------------------------- |
| 4881 |
|
| 4882 |
-- For each enumeration value defined in Entity_Kind we list all the |
| 4883 |
-- attributes defined in Einfo which can legally be applied to an entity |
| 4884 |
-- of that kind. The implementation of the attribute functions (and for |
| 4885 |
-- non-synthesized attributes, of the corresponding set procedures) are |
| 4886 |
-- in the Einfo body. |
| 4887 |
|
| 4888 |
-- The following attributes are defined in all entities |
| 4889 |
|
| 4890 |
-- Ekind (Ekind) |
| 4891 |
|
| 4892 |
-- Chars |
| 4893 |
-- Next_Entity |
| 4894 |
-- Scope |
| 4895 |
-- Homonym |
| 4896 |
-- Etype |
| 4897 |
-- First_Rep_Item |
| 4898 |
-- Freeze_Node |
| 4899 |
-- Prev_Entity |
| 4900 |
-- Associated_Entity |
| 4901 |
|
| 4902 |
-- Address_Taken |
| 4903 |
-- Can_Never_Be_Null |
| 4904 |
-- Checks_May_Be_Suppressed |
| 4905 |
-- Debug_Info_Off |
| 4906 |
-- Has_Convention_Pragma |
| 4907 |
-- Has_Delayed_Aspects |
| 4908 |
-- Has_Delayed_Freeze |
| 4909 |
-- Has_Fully_Qualified_Name |
| 4910 |
-- Has_Gigi_Rep_Item |
| 4911 |
-- Has_Homonym |
| 4912 |
-- Has_Pragma_Elaborate_Body |
| 4913 |
-- Has_Pragma_Inline |
| 4914 |
-- Has_Pragma_Inline_Always |
| 4915 |
-- Has_Pragma_No_Inline |
| 4916 |
-- Has_Pragma_Pure |
| 4917 |
-- Has_Pragma_Pure_Function |
| 4918 |
-- Has_Pragma_Thread_Local_Storage |
| 4919 |
-- Has_Pragma_Unmodified |
| 4920 |
-- Has_Pragma_Unreferenced |
| 4921 |
-- Has_Pragma_Unused |
| 4922 |
-- Has_Private_Declaration |
| 4923 |
-- Has_Qualified_Name |
| 4924 |
-- Has_Stream_Size_Clause |
| 4925 |
-- Has_Unknown_Discriminants |
| 4926 |
-- Has_Xref_Entry |
| 4927 |
-- In_Private_Part |
| 4928 |
-- Is_Ada_2005_Only |
| 4929 |
-- Is_Ada_2012_Only |
| 4930 |
-- Is_Ada_2022_Only |
| 4931 |
-- Is_Bit_Packed_Array (base type only) |
| 4932 |
-- Is_Aliased |
| 4933 |
-- Is_Character_Type |
| 4934 |
-- Is_Checked_Ghost_Entity |
| 4935 |
-- Is_Child_Unit |
| 4936 |
-- Is_Compilation_Unit |
| 4937 |
-- Is_Descendant_Of_Address |
| 4938 |
-- Is_Discrim_SO_Function |
| 4939 |
-- Is_Discriminant_Check_Function |
| 4940 |
-- Is_Dispatch_Table_Entity |
| 4941 |
-- Is_Dispatch_Table_Wrapper |
| 4942 |
-- Is_Dispatching_Operation |
| 4943 |
-- Is_Entry_Formal |
| 4944 |
-- Is_Exported |
| 4945 |
-- Is_First_Subtype |
| 4946 |
-- Is_Formal_Subprogram |
| 4947 |
-- Is_Generic_Instance |
| 4948 |
-- Is_Generic_Type |
| 4949 |
-- Is_Hidden |
| 4950 |
-- Is_Hidden_Open_Scope |
| 4951 |
-- Is_Ignored_Ghost_Entity |
| 4952 |
-- Is_Immediately_Visible |
| 4953 |
-- Is_Implementation_Defined |
| 4954 |
-- Is_Imported |
| 4955 |
-- Is_Inlined |
| 4956 |
-- Is_Internal |
| 4957 |
-- Is_Itype |
| 4958 |
-- Is_Known_Non_Null |
| 4959 |
-- Is_Known_Null |
| 4960 |
-- Is_Known_Valid |
| 4961 |
-- Is_Limited_Composite |
| 4962 |
-- Is_Limited_Record |
| 4963 |
-- Is_Loop_Parameter |
| 4964 |
-- Is_Obsolescent |
| 4965 |
-- Is_Package_Body_Entity |
| 4966 |
-- Is_Packed_Array_Impl_Type |
| 4967 |
-- Is_Not_Self_Hidden |
| 4968 |
-- Is_Potentially_Use_Visible |
| 4969 |
-- Is_Preelaborated |
| 4970 |
-- Is_Primitive_Wrapper |
| 4971 |
-- Is_Public |
| 4972 |
-- Is_Pure |
| 4973 |
-- Is_Remote_Call_Interface |
| 4974 |
-- Is_Remote_Types |
| 4975 |
-- Is_Renaming_Of_Object |
| 4976 |
-- Is_Shared_Passive |
| 4977 |
-- Is_Statically_Allocated |
| 4978 |
-- Is_Static_Type |
| 4979 |
-- Is_Tagged_Type |
| 4980 |
-- Is_Thunk |
| 4981 |
-- Is_Trivial_Subprogram |
| 4982 |
-- Is_Unchecked_Union |
| 4983 |
-- Is_Unimplemented |
| 4984 |
-- Is_Visible_Formal |
| 4985 |
-- Kill_Elaboration_Checks |
| 4986 |
-- Low_Bound_Tested |
| 4987 |
-- Materialize_Entity |
| 4988 |
-- Needs_Debug_Info |
| 4989 |
-- Never_Set_In_Source |
| 4990 |
-- Overlays_Constant |
| 4991 |
-- Referenced |
| 4992 |
-- Referenced_As_LHS |
| 4993 |
-- Referenced_As_Out_Parameter |
| 4994 |
-- Suppress_Elaboration_Warnings |
| 4995 |
-- Suppress_Style_Checks |
| 4996 |
-- Suppress_Value_Tracking_On_Call |
| 4997 |
-- Used_As_Generic_Actual |
| 4998 |
-- Warnings_Off |
| 4999 |
-- Warnings_Off_Used |
| 5000 |
-- Warnings_Off_Used_Unmodified |
| 5001 |
-- Warnings_Off_Used_Unreferenced |
| 5002 |
-- Was_Hidden |
| 5003 |
|
| 5004 |
-- Declaration_Node (synth) |
| 5005 |
-- Has_Foreign_Convention (synth) |
| 5006 |
-- Is_Dynamic_Scope (synth) |
| 5007 |
-- Is_Ghost_Entity (synth) |
| 5008 |
-- Is_Standard_Character_Type (synth) |
| 5009 |
-- Is_Standard_String_Type (synth) |
| 5010 |
-- Underlying_Type (synth) |
| 5011 |
-- all classification attributes (synth) |
| 5012 |
|
| 5013 |
-- The following list of access functions applies to all entities for |
| 5014 |
-- types and subtypes. References to this list appear subsequently as |
| 5015 |
-- "(plus type attributes)" for each appropriate Entity_Kind. |
| 5016 |
|
| 5017 |
-- Associated_Node_For_Itype |
| 5018 |
-- Class_Wide_Type |
| 5019 |
-- Full_View |
| 5020 |
-- Esize |
| 5021 |
-- RM_Size |
| 5022 |
-- Alignment |
| 5023 |
-- Related_Expression |
| 5024 |
-- Current_Use_Clause |
| 5025 |
-- Subprograms_For_Type |
| 5026 |
-- Derived_Type_Link |
| 5027 |
-- No_Tagged_Streams_Pragma |
| 5028 |
-- Linker_Section_Pragma |
| 5029 |
-- SPARK_Pragma |
| 5030 |
|
| 5031 |
-- Depends_On_Private |
| 5032 |
-- Disable_Controlled |
| 5033 |
-- Discard_Names |
| 5034 |
-- Finalize_Storage_Only (base type only) |
| 5035 |
-- From_Limited_With |
| 5036 |
-- Has_Aliased_Components (base type only) |
| 5037 |
-- Has_Alignment_Clause |
| 5038 |
-- Has_Atomic_Components (base type only) |
| 5039 |
-- Has_Completion_In_Body |
| 5040 |
-- Has_Complex_Representation (base type only) |
| 5041 |
-- Has_Constrained_Partial_View |
| 5042 |
-- Has_Controlled_Component (base type only) |
| 5043 |
-- Has_Default_Aspect (base type only) |
| 5044 |
-- Has_Delayed_Rep_Aspects |
| 5045 |
-- Has_Discriminants |
| 5046 |
-- Has_Dynamic_Predicate_Aspect |
| 5047 |
-- Has_Ghost_Predicate_Aspect |
| 5048 |
-- Has_Independent_Components (base type only) |
| 5049 |
-- Has_Inheritable_Invariants (base type only) |
| 5050 |
-- Has_Inherited_DIC (base type only) |
| 5051 |
-- Has_Inherited_Invariants (base type only) |
| 5052 |
-- Has_Non_Standard_Rep (base type only) |
| 5053 |
-- Has_Object_Size_Clause |
| 5054 |
-- Has_Own_DIC (base type only) |
| 5055 |
-- Has_Own_Invariants (base type only) |
| 5056 |
-- Has_Pragma_Preelab_Init |
| 5057 |
-- Has_Pragma_Unreferenced_Objects |
| 5058 |
-- Has_Predicates |
| 5059 |
-- Has_Primitive_Operations (base type only) |
| 5060 |
-- Has_Protected (base type only) |
| 5061 |
-- Has_Size_Clause |
| 5062 |
-- Has_Specified_Layout (base type only) |
| 5063 |
-- Has_Specified_Stream_Input |
| 5064 |
-- Has_Specified_Stream_Output |
| 5065 |
-- Has_Specified_Stream_Read |
| 5066 |
-- Has_Specified_Stream_Write |
| 5067 |
-- Has_Static_Predicate |
| 5068 |
-- Has_Static_Predicate_Aspect |
| 5069 |
-- Has_Task (base type only) |
| 5070 |
-- Has_Timing_Event (base type only) |
| 5071 |
-- Has_Unchecked_Union (base type only) |
| 5072 |
-- Has_Volatile_Components (base type only) |
| 5073 |
-- In_Use |
| 5074 |
-- Is_Abstract_Type |
| 5075 |
-- Is_Asynchronous |
| 5076 |
-- Is_Atomic |
| 5077 |
-- Is_Constr_Array_Subt_With_Bounds |
| 5078 |
-- Is_Constr_Subt_For_U_Nominal |
| 5079 |
-- Is_Controlled_Active (base type only) |
| 5080 |
-- Is_Eliminated |
| 5081 |
-- Is_Frozen |
| 5082 |
-- Is_Generic_Actual_Type |
| 5083 |
-- Is_Independent |
| 5084 |
-- Is_Non_Static_Subtype |
| 5085 |
-- Is_Packed (base type only) |
| 5086 |
-- Is_Private_Composite |
| 5087 |
-- Is_RACW_Stub_Type |
| 5088 |
-- Is_Unsigned_Type |
| 5089 |
-- Is_Volatile |
| 5090 |
-- Is_Volatile_Full_Access |
| 5091 |
-- Itype_Printed (itypes only) |
| 5092 |
-- Known_To_Have_Preelab_Init |
| 5093 |
-- May_Inherit_Delayed_Rep_Aspects |
| 5094 |
-- Must_Be_On_Byte_Boundary |
| 5095 |
-- Must_Have_Preelab_Init |
| 5096 |
-- Optimize_Alignment_Space |
| 5097 |
-- Optimize_Alignment_Time |
| 5098 |
-- Partial_View_Has_Unknown_Discr |
| 5099 |
-- Size_Depends_On_Discriminant |
| 5100 |
-- Size_Known_At_Compile_Time |
| 5101 |
-- SPARK_Pragma_Inherited |
| 5102 |
-- Strict_Alignment (base type only) |
| 5103 |
-- Suppress_Initialization |
| 5104 |
-- Treat_As_Volatile |
| 5105 |
-- Universal_Aliasing (impl base type only) |
| 5106 |
|
| 5107 |
-- Alignment_Clause (synth) |
| 5108 |
-- Base_Type (synth) |
| 5109 |
-- DIC_Procedure (synth) |
| 5110 |
-- Has_DIC (synth) |
| 5111 |
-- Has_Invariants (synth) |
| 5112 |
-- Implementation_Base_Type (synth) |
| 5113 |
-- Invariant_Procedure (synth) |
| 5114 |
-- Is_Access_Protected_Subprogram_Type (synth) |
| 5115 |
-- Is_Full_Access (synth) |
| 5116 |
-- Is_Controlled (synth) |
| 5117 |
-- Object_Size_Clause (synth) |
| 5118 |
-- Partial_DIC_Procedure (synth) |
| 5119 |
-- Partial_Invariant_Procedure (synth) |
| 5120 |
-- Predicate_Function (synth) |
| 5121 |
-- Root_Type (synth) |
| 5122 |
-- Size_Clause (synth) |
| 5123 |
|
| 5124 |
------------------------------------------ |
| 5125 |
-- Applicable attributes by entity kind -- |
| 5126 |
------------------------------------------ |
| 5127 |
|
| 5128 |
-- In the conversion to variable-sized nodes and entities, a number of |
| 5129 |
-- discrepancies were noticed. They are documented in comments, and marked |
| 5130 |
-- with "$$$". |
| 5131 |
|
| 5132 |
-- E_Abstract_State |
| 5133 |
-- Refinement_Constituents |
| 5134 |
-- Part_Of_Constituents |
| 5135 |
-- Body_References |
| 5136 |
-- Non_Limited_View |
| 5137 |
-- Encapsulating_State |
| 5138 |
-- SPARK_Pragma |
| 5139 |
-- From_Limited_With |
| 5140 |
-- Has_Partial_Visible_Refinement |
| 5141 |
-- Has_Visible_Refinement |
| 5142 |
-- SPARK_Pragma_Inherited |
| 5143 |
-- First_Entity $$$ |
| 5144 |
-- Has_Non_Limited_View (synth) |
| 5145 |
-- Has_Non_Null_Visible_Refinement (synth) |
| 5146 |
-- Has_Null_Visible_Refinement (synth) |
| 5147 |
-- Is_External_State (synth) |
| 5148 |
-- Is_Null_State (synth) |
| 5149 |
-- Is_Synchronized_State (synth) |
| 5150 |
-- Partial_Refinement_Constituents (synth) |
| 5151 |
|
| 5152 |
-- E_Access_Protected_Subprogram_Type |
| 5153 |
-- Equivalent_Type |
| 5154 |
-- Directly_Designated_Type |
| 5155 |
-- Needs_No_Actuals |
| 5156 |
-- Can_Use_Internal_Rep |
| 5157 |
-- (plus type attributes) |
| 5158 |
|
| 5159 |
-- E_Access_Subprogram_Type |
| 5160 |
-- Equivalent_Type (remote types only) |
| 5161 |
-- Directly_Designated_Type |
| 5162 |
-- Needs_No_Actuals |
| 5163 |
-- Original_Access_Type |
| 5164 |
-- Can_Use_Internal_Rep |
| 5165 |
-- Needs_Activation_Record |
| 5166 |
-- Associated_Storage_Pool $$$ |
| 5167 |
-- Interface_Name $$$ |
| 5168 |
-- (plus type attributes) |
| 5169 |
|
| 5170 |
-- E_Access_Type |
| 5171 |
-- E_Access_Subtype |
| 5172 |
-- Direct_Primitive_Operations $$$ type |
| 5173 |
-- Master_Id |
| 5174 |
-- Directly_Designated_Type |
| 5175 |
-- Associated_Storage_Pool (root type only) |
| 5176 |
-- Finalization_Collection (root type only) |
| 5177 |
-- Storage_Size_Variable (base type only) |
| 5178 |
-- Has_Pragma_Controlled (base type only) |
| 5179 |
-- Has_Storage_Size_Clause (base type only) |
| 5180 |
-- Is_Access_Constant |
| 5181 |
-- Is_Local_Anonymous_Access |
| 5182 |
-- Is_Pure_Unit_Access_Type |
| 5183 |
-- No_Pool_Assigned (base type only) |
| 5184 |
-- No_Strict_Aliasing (base type only) |
| 5185 |
-- Is_Param_Block_Component_Type (base type only) |
| 5186 |
-- (plus type attributes) |
| 5187 |
|
| 5188 |
-- E_Access_Attribute_Type |
| 5189 |
-- Renamed_Entity $$$ |
| 5190 |
-- Directly_Designated_Type |
| 5191 |
-- (plus type attributes) |
| 5192 |
|
| 5193 |
-- E_Allocator_Type |
| 5194 |
-- Directly_Designated_Type |
| 5195 |
-- Associated_Storage_Pool $$$ |
| 5196 |
-- (plus type attributes) |
| 5197 |
|
| 5198 |
-- E_Anonymous_Access_Subprogram_Type |
| 5199 |
-- E_Anonymous_Access_Protected_Subprogram_Type |
| 5200 |
-- Interface_Name $$$ E_Anonymous_Access_Subprogram_Type |
| 5201 |
-- Directly_Designated_Type |
| 5202 |
-- Storage_Size_Variable is this needed ??? |
| 5203 |
-- Can_Use_Internal_Rep |
| 5204 |
-- Needs_Activation_Record |
| 5205 |
-- (plus type attributes) |
| 5206 |
|
| 5207 |
-- E_Anonymous_Access_Type |
| 5208 |
-- Directly_Designated_Type |
| 5209 |
-- Finalization_Collection |
| 5210 |
-- Storage_Size_Variable is this needed ??? |
| 5211 |
-- Associated_Storage_Pool $$$ |
| 5212 |
-- (plus type attributes) |
| 5213 |
|
| 5214 |
-- E_Array_Type |
| 5215 |
-- E_Array_Subtype |
| 5216 |
-- First_Entity $$$ |
| 5217 |
-- Direct_Primitive_Operations $$$ subtype |
| 5218 |
-- Renamed_Object $$$ E_Array_Subtype |
| 5219 |
-- First_Index |
| 5220 |
-- Default_Aspect_Component_Value (base type only) |
| 5221 |
-- Component_Type (base type only) |
| 5222 |
-- Original_Array_Type |
| 5223 |
-- Component_Size (base type only) |
| 5224 |
-- Packed_Array_Impl_Type |
| 5225 |
-- Related_Array_Object |
| 5226 |
-- Predicated_Parent (subtype only) |
| 5227 |
-- Component_Alignment (special) (base type only) |
| 5228 |
-- Has_Component_Size_Clause (base type only) |
| 5229 |
-- Has_Pragma_Pack (impl base type only) |
| 5230 |
-- Is_Constrained |
| 5231 |
-- Reverse_Storage_Order (base type only) |
| 5232 |
-- SSO_Set_High_By_Default (base type only) |
| 5233 |
-- SSO_Set_Low_By_Default (base type only) |
| 5234 |
-- Next_Index (synth) |
| 5235 |
-- Number_Dimensions (synth) |
| 5236 |
-- (plus type attributes) |
| 5237 |
|
| 5238 |
-- E_Block |
| 5239 |
-- Renamed_Entity $$$ |
| 5240 |
-- Renamed_Object $$$ |
| 5241 |
-- Return_Applies_To |
| 5242 |
-- Block_Node |
| 5243 |
-- First_Entity |
| 5244 |
-- Last_Entity |
| 5245 |
-- Scope_Depth_Value |
| 5246 |
-- Entry_Cancel_Parameter |
| 5247 |
-- Contains_Ignored_Ghost_Code |
| 5248 |
-- Delay_Cleanups |
| 5249 |
-- Discard_Names |
| 5250 |
-- Has_Master_Entity |
| 5251 |
-- Has_Nested_Block_With_Handler |
| 5252 |
-- Is_Exception_Handler |
| 5253 |
-- Sec_Stack_Needed_For_Return |
| 5254 |
-- Uses_Sec_Stack |
| 5255 |
-- Scope_Depth (synth) |
| 5256 |
|
| 5257 |
-- E_Class_Wide_Type |
| 5258 |
-- E_Class_Wide_Subtype |
| 5259 |
-- Direct_Primitive_Operations |
| 5260 |
-- Cloned_Subtype (subtype case only) |
| 5261 |
-- First_Entity |
| 5262 |
-- Equivalent_Type (always Empty for type) |
| 5263 |
-- Non_Limited_View |
| 5264 |
-- Last_Entity |
| 5265 |
-- SSO_Set_High_By_Default (base type only) |
| 5266 |
-- SSO_Set_Low_By_Default (base type only) |
| 5267 |
-- Corresponding_Remote_Type $$$ type |
| 5268 |
-- Renamed_Entity $$$ type |
| 5269 |
-- First_Component (synth) |
| 5270 |
-- First_Component_Or_Discriminant (synth) |
| 5271 |
-- Has_Non_Limited_View (synth) |
| 5272 |
-- (plus type attributes) |
| 5273 |
|
| 5274 |
-- E_Component |
| 5275 |
-- Linker_Section_Pragma $$$ |
| 5276 |
-- Normalized_First_Bit |
| 5277 |
-- Current_Value (always Empty) |
| 5278 |
-- Component_Bit_Offset |
| 5279 |
-- Esize |
| 5280 |
-- Component_Clause |
| 5281 |
-- Normalized_Position |
| 5282 |
-- DT_Entry_Count |
| 5283 |
-- Entry_Formal |
| 5284 |
-- Prival |
| 5285 |
-- Renamed_Object (always Empty) |
| 5286 |
-- Discriminant_Checking_Func |
| 5287 |
-- Corresponding_Record_Component |
| 5288 |
-- Original_Record_Component |
| 5289 |
-- DT_Offset_To_Top_Func |
| 5290 |
-- Related_Type |
| 5291 |
-- Has_Biased_Representation |
| 5292 |
-- Has_Per_Object_Constraint |
| 5293 |
-- Is_Atomic |
| 5294 |
-- Is_Independent |
| 5295 |
-- Is_Return_Object |
| 5296 |
-- Is_Tag |
| 5297 |
-- Is_Volatile |
| 5298 |
-- Is_Volatile_Full_Access |
| 5299 |
-- Treat_As_Volatile |
| 5300 |
-- Is_Full_Access (synth) |
| 5301 |
-- Next_Component (synth) |
| 5302 |
-- Next_Component_Or_Discriminant (synth) |
| 5303 |
|
| 5304 |
-- E_Constant |
| 5305 |
-- E_Loop_Parameter |
| 5306 |
-- Current_Value (always Empty) |
| 5307 |
-- Discriminal_Link |
| 5308 |
-- Full_View |
| 5309 |
-- Esize |
| 5310 |
-- Extra_Accessibility (constants only) |
| 5311 |
-- Alignment |
| 5312 |
-- Actual_Subtype |
| 5313 |
-- Renamed_Object |
| 5314 |
-- Renamed_Entity $$$ |
| 5315 |
-- Size_Check_Code (constants only) |
| 5316 |
-- Prival_Link (privals only) |
| 5317 |
-- Interface_Name (constants only) |
| 5318 |
-- Related_Type (constants only) |
| 5319 |
-- Initialization_Statements |
| 5320 |
-- BIP_Initialization_Call |
| 5321 |
-- Finalization_Master_Node |
| 5322 |
-- Last_Aggregate_Assignment |
| 5323 |
-- Activation_Record_Component |
| 5324 |
-- Encapsulating_State (constants only) |
| 5325 |
-- Linker_Section_Pragma |
| 5326 |
-- Contract (constants only) |
| 5327 |
-- SPARK_Pragma (constants only) |
| 5328 |
-- Has_Alignment_Clause |
| 5329 |
-- Has_Atomic_Components |
| 5330 |
-- Has_Biased_Representation |
| 5331 |
-- Has_Completion (constants only) |
| 5332 |
-- Has_Independent_Components |
| 5333 |
-- Has_Size_Clause |
| 5334 |
-- Has_Thunks (constants only) |
| 5335 |
-- Has_Volatile_Components |
| 5336 |
-- Is_Atomic |
| 5337 |
-- Is_Elaboration_Checks_OK_Id (constants only) |
| 5338 |
-- Is_Elaboration_Warnings_OK_Id (constants only) |
| 5339 |
-- Is_Eliminated |
| 5340 |
-- Is_Finalized_Transient |
| 5341 |
-- Is_Ignored_For_Finalization |
| 5342 |
-- Is_Independent |
| 5343 |
-- Is_Return_Object |
| 5344 |
-- Is_True_Constant |
| 5345 |
-- Is_Uplevel_Referenced_Entity |
| 5346 |
-- Is_Volatile |
| 5347 |
-- Is_Volatile_Full_Access |
| 5348 |
-- Optimize_Alignment_Space (constants only) |
| 5349 |
-- Optimize_Alignment_Time (constants only) |
| 5350 |
-- SPARK_Pragma_Inherited (constants only) |
| 5351 |
-- Stores_Attribute_Old_Prefix (constants only) |
| 5352 |
-- Treat_As_Volatile |
| 5353 |
-- Address_Clause (synth) |
| 5354 |
-- Alignment_Clause (synth) |
| 5355 |
-- Is_Elaboration_Target (synth) |
| 5356 |
-- Is_Full_Access (synth) |
| 5357 |
-- Size_Clause (synth) |
| 5358 |
|
| 5359 |
-- E_Decimal_Fixed_Point_Type |
| 5360 |
-- E_Decimal_Fixed_Point_Subtype |
| 5361 |
-- Scale_Value |
| 5362 |
-- Digits_Value |
| 5363 |
-- Scalar_Range |
| 5364 |
-- Delta_Value |
| 5365 |
-- Small_Value |
| 5366 |
-- Static_Real_Or_String_Predicate |
| 5367 |
-- Has_Machine_Radix_Clause |
| 5368 |
-- Machine_Radix_10 |
| 5369 |
-- Aft_Value (synth) |
| 5370 |
-- Type_Low_Bound (synth) |
| 5371 |
-- Type_High_Bound (synth) |
| 5372 |
-- (plus type attributes) |
| 5373 |
|
| 5374 |
-- E_Discriminant |
| 5375 |
-- Normalized_First_Bit |
| 5376 |
-- Current_Value (always Empty) |
| 5377 |
-- Component_Bit_Offset |
| 5378 |
-- Esize |
| 5379 |
-- Component_Clause |
| 5380 |
-- Normalized_Position |
| 5381 |
-- Discriminant_Number |
| 5382 |
-- Discriminal |
| 5383 |
-- Renamed_Object (always Empty) |
| 5384 |
-- Corresponding_Discriminant |
| 5385 |
-- Discriminant_Default_Value |
| 5386 |
-- Corresponding_Record_Component |
| 5387 |
-- Original_Record_Component |
| 5388 |
-- CR_Discriminant |
| 5389 |
-- Is_Completely_Hidden |
| 5390 |
-- Is_Return_Object |
| 5391 |
-- Entry_Formal $$$ |
| 5392 |
-- Linker_Section_Pragma $$$ |
| 5393 |
-- Next_Component_Or_Discriminant (synth) |
| 5394 |
-- Next_Discriminant (synth) |
| 5395 |
-- Next_Stored_Discriminant (synth) |
| 5396 |
|
| 5397 |
-- E_Entry |
| 5398 |
-- E_Entry_Family |
| 5399 |
-- Protected_Body_Subprogram |
| 5400 |
-- Barrier_Function |
| 5401 |
-- Elaboration_Entity |
| 5402 |
-- Entry_Parameters_Type |
| 5403 |
-- First_Entity |
| 5404 |
-- Alias (for entry only. Empty) |
| 5405 |
-- Last_Entity |
| 5406 |
-- Accept_Address |
| 5407 |
-- Scope_Depth_Value |
| 5408 |
-- Protection_Object (protected kind) |
| 5409 |
-- Contract_Wrapper |
| 5410 |
-- Extra_Formals |
| 5411 |
-- Contract |
| 5412 |
-- SPARK_Pragma (protected kind) |
| 5413 |
-- Default_Expressions_Processed |
| 5414 |
-- Entry_Accepted |
| 5415 |
-- Has_Yield_Aspect |
| 5416 |
-- Has_Expanded_Contract |
| 5417 |
-- Ignore_SPARK_Mode_Pragmas |
| 5418 |
-- Is_Elaboration_Checks_OK_Id |
| 5419 |
-- Is_Elaboration_Warnings_OK_Id |
| 5420 |
-- Is_Entry_Wrapper |
| 5421 |
-- Needs_No_Actuals |
| 5422 |
-- Sec_Stack_Needed_For_Return |
| 5423 |
-- SPARK_Pragma_Inherited (protected kind) |
| 5424 |
-- Uses_Sec_Stack |
| 5425 |
-- Renamed_Entity $$$ |
| 5426 |
-- Address_Clause (synth) |
| 5427 |
-- Entry_Index_Type (synth) |
| 5428 |
-- First_Formal (synth) |
| 5429 |
-- First_Formal_With_Extras (synth) |
| 5430 |
-- Is_Elaboration_Target (synth) |
| 5431 |
-- Last_Formal (synth) |
| 5432 |
-- Number_Formals (synth) |
| 5433 |
-- Scope_Depth (synth) |
| 5434 |
|
| 5435 |
-- E_Entry_Index_Parameter |
| 5436 |
-- Entry_Index_Constant |
| 5437 |
|
| 5438 |
-- E_Enumeration_Literal |
| 5439 |
-- Enumeration_Pos |
| 5440 |
-- Enumeration_Rep |
| 5441 |
-- Alias |
| 5442 |
-- Enumeration_Rep_Expr |
| 5443 |
-- Interface_Name $$$ |
| 5444 |
-- Renamed_Object $$$ |
| 5445 |
-- Esize $$$ |
| 5446 |
-- Renamed_Entity $$$ |
| 5447 |
-- Next_Literal (synth) |
| 5448 |
|
| 5449 |
-- E_Enumeration_Type |
| 5450 |
-- E_Enumeration_Subtype |
| 5451 |
-- First_Entity $$$ type |
| 5452 |
-- Renamed_Object $$$ |
| 5453 |
-- First_Literal |
| 5454 |
-- Lit_Hash (root type only) |
| 5455 |
-- Lit_Indexes (root type only) |
| 5456 |
-- Lit_Strings (root type only) |
| 5457 |
-- Default_Aspect_Value (base type only) |
| 5458 |
-- Scalar_Range |
| 5459 |
-- Enum_Pos_To_Rep (type only) |
| 5460 |
-- Static_Discrete_Predicate |
| 5461 |
-- Has_Biased_Representation |
| 5462 |
-- Has_Contiguous_Rep |
| 5463 |
-- Has_Enumeration_Rep_Clause |
| 5464 |
-- Has_Pragma_Ordered (base type only) |
| 5465 |
-- Nonzero_Is_True (base type only) |
| 5466 |
-- No_Predicate_On_Actual |
| 5467 |
-- No_Dynamic_Predicate_On_Actual |
| 5468 |
-- Type_Low_Bound (synth) |
| 5469 |
-- Type_High_Bound (synth) |
| 5470 |
-- (plus type attributes) |
| 5471 |
|
| 5472 |
-- E_Exception |
| 5473 |
-- Esize |
| 5474 |
-- Alignment |
| 5475 |
-- Renamed_Entity |
| 5476 |
-- Register_Exception_Call |
| 5477 |
-- Interface_Name |
| 5478 |
-- Activation_Record_Component |
| 5479 |
-- Discard_Names |
| 5480 |
-- Is_Raised |
| 5481 |
-- Renamed_Object $$$ |
| 5482 |
|
| 5483 |
-- E_Exception_Type |
| 5484 |
-- Equivalent_Type |
| 5485 |
-- (plus type attributes) |
| 5486 |
|
| 5487 |
-- E_Floating_Point_Type |
| 5488 |
-- E_Floating_Point_Subtype |
| 5489 |
-- Digits_Value |
| 5490 |
-- Float_Rep (Float_Rep_Kind) |
| 5491 |
-- Default_Aspect_Value (base type only) |
| 5492 |
-- Scalar_Range |
| 5493 |
-- Static_Real_Or_String_Predicate |
| 5494 |
-- Machine_Emax_Value (synth) |
| 5495 |
-- Machine_Emin_Value (synth) |
| 5496 |
-- Machine_Mantissa_Value (synth) |
| 5497 |
-- Machine_Radix_Value (synth) |
| 5498 |
-- Model_Emin_Value (synth) |
| 5499 |
-- Model_Epsilon_Value (synth) |
| 5500 |
-- Model_Mantissa_Value (synth) |
| 5501 |
-- Model_Small_Value (synth) |
| 5502 |
-- Safe_Emax_Value (synth) |
| 5503 |
-- Safe_First_Value (synth) |
| 5504 |
-- Safe_Last_Value (synth) |
| 5505 |
-- Type_Low_Bound (synth) |
| 5506 |
-- Type_High_Bound (synth) |
| 5507 |
-- (plus type attributes) |
| 5508 |
|
| 5509 |
-- E_Function |
| 5510 |
-- E_Generic_Function |
| 5511 |
-- Mechanism (Mechanism_Type) |
| 5512 |
-- Handler_Records (non-generic case only) |
| 5513 |
-- Protected_Body_Subprogram |
| 5514 |
-- Next_Inlined_Subprogram |
| 5515 |
-- Elaboration_Entity (not implicit /=) |
| 5516 |
-- DT_Position |
| 5517 |
-- DTC_Entity |
| 5518 |
-- First_Entity |
| 5519 |
-- Alias (non-generic case only) |
| 5520 |
-- Renamed_Entity |
| 5521 |
-- Renamed_Object $$$ |
| 5522 |
-- Extra_Accessibility_Of_Result (non-generic case only) |
| 5523 |
-- Last_Entity |
| 5524 |
-- Interface_Name |
| 5525 |
-- Scope_Depth_Value |
| 5526 |
-- Generic_Renamings (for an instance) |
| 5527 |
-- Inner_Instances (generic case only) |
| 5528 |
-- Inner_Instances $$$ also E_Function |
| 5529 |
-- Protection_Object (for concurrent kind) |
| 5530 |
-- Subps_Index (non-generic case only) |
| 5531 |
-- Interface_Alias |
| 5532 |
-- LSP_Subprogram (non-generic case only) |
| 5533 |
-- Overridden_Operation |
| 5534 |
-- Wrapped_Entity (non-generic case only) |
| 5535 |
-- Extra_Formals |
| 5536 |
-- Anonymous_Collections (non-generic case only) |
| 5537 |
-- Corresponding_Equality (implicit /= only) |
| 5538 |
-- Thunk_Entity (thunk case only) |
| 5539 |
-- Linker_Section_Pragma |
| 5540 |
-- Contract |
| 5541 |
-- Import_Pragma (non-generic case only) |
| 5542 |
-- Class_Postconditions |
| 5543 |
-- Class_Preconditions |
| 5544 |
-- Class_Preconditions_Subprogram |
| 5545 |
-- Dynamic_Call_Helper |
| 5546 |
-- Ignored_Class_Preconditions |
| 5547 |
-- Ignored_Class_Postconditions |
| 5548 |
-- Indirect_Call_Wrapper |
| 5549 |
-- Static_Call_Helper |
| 5550 |
-- Protected_Subprogram (non-generic case only) |
| 5551 |
-- SPARK_Pragma |
| 5552 |
-- Original_Protected_Subprogram |
| 5553 |
-- Body_Needed_For_SAL |
| 5554 |
-- Contains_Ignored_Ghost_Code |
| 5555 |
-- Default_Expressions_Processed |
| 5556 |
-- Delay_Cleanups |
| 5557 |
-- Discard_Names |
| 5558 |
-- Elaboration_Entity_Required |
| 5559 |
-- Has_Completion |
| 5560 |
-- Has_Controlling_Result |
| 5561 |
-- Has_Expanded_Contract (non-generic case only) |
| 5562 |
-- Has_Master_Entity |
| 5563 |
-- Has_Missing_Return |
| 5564 |
-- Has_Nested_Block_With_Handler |
| 5565 |
-- Has_Nested_Subprogram |
| 5566 |
-- Has_Out_Or_In_Out_Parameter |
| 5567 |
-- Has_Recursive_Call |
| 5568 |
-- Has_Yield_Aspect |
| 5569 |
-- Ignore_SPARK_Mode_Pragmas |
| 5570 |
-- Is_Abstract_Subprogram (non-generic case only) |
| 5571 |
-- Is_Called (non-generic case only) |
| 5572 |
-- Is_Class_Wide_Wrapper |
| 5573 |
-- Is_Constructor |
| 5574 |
-- Is_CUDA_Kernel (non-generic case only) |
| 5575 |
-- Is_DIC_Procedure (non-generic case only) |
| 5576 |
-- Is_Discrim_SO_Function |
| 5577 |
-- Is_Discriminant_Check_Function |
| 5578 |
-- Is_Elaboration_Checks_OK_Id |
| 5579 |
-- Is_Elaboration_Warnings_OK_Id |
| 5580 |
-- Is_Eliminated |
| 5581 |
-- Is_Generic_Actual_Subprogram (non-generic case only) |
| 5582 |
-- Is_Hidden_Non_Overridden_Subpgm (non-generic case only) |
| 5583 |
-- Is_Initial_Condition_Procedure (non-generic case only) |
| 5584 |
-- Is_Inlined_Always (non-generic case only) |
| 5585 |
-- Is_Instantiated (generic case only) |
| 5586 |
-- Is_Intrinsic_Subprogram |
| 5587 |
-- Is_Invariant_Procedure (non-generic case only) |
| 5588 |
-- Is_Machine_Code_Subprogram (non-generic case only) |
| 5589 |
-- Is_Partial_Invariant_Procedure (non-generic case only) |
| 5590 |
-- Is_Predicate_Function (non-generic case only) |
| 5591 |
-- Is_Primitive |
| 5592 |
-- Is_Primitive_Wrapper (non-generic case only) |
| 5593 |
-- Is_Private_Descendant |
| 5594 |
-- Is_Private_Primitive (non-generic case only) |
| 5595 |
-- Is_Pure |
| 5596 |
-- Is_Visible_Lib_Unit |
| 5597 |
-- Is_Wrapper |
| 5598 |
-- Needs_No_Actuals |
| 5599 |
-- No_Raise |
| 5600 |
-- No_Return |
| 5601 |
-- Requires_Overriding (non-generic case only) |
| 5602 |
-- Return_Present |
| 5603 |
-- Returns_By_Ref |
| 5604 |
-- Sec_Stack_Needed_For_Return |
| 5605 |
-- SPARK_Pragma_Inherited |
| 5606 |
-- Uses_Sec_Stack |
| 5607 |
-- Address_Clause (synth) |
| 5608 |
-- First_Formal (synth) |
| 5609 |
-- First_Formal_With_Extras (synth) |
| 5610 |
-- Is_Elaboration_Target (synth) |
| 5611 |
-- Last_Formal (synth) |
| 5612 |
-- Number_Formals (synth) |
| 5613 |
-- Scope_Depth (synth) |
| 5614 |
|
| 5615 |
-- E_General_Access_Type |
| 5616 |
-- First_Entity $$$ |
| 5617 |
-- Renamed_Entity $$$ |
| 5618 |
-- Master_Id |
| 5619 |
-- Directly_Designated_Type |
| 5620 |
-- Associated_Storage_Pool (root type only) |
| 5621 |
-- Finalization_Collection (root type only) |
| 5622 |
-- Storage_Size_Variable (base type only) |
| 5623 |
-- (plus type attributes) |
| 5624 |
|
| 5625 |
-- E_Generic_In_Parameter |
| 5626 |
-- E_Generic_In_Out_Parameter |
| 5627 |
-- Current_Value (always Empty) |
| 5628 |
-- Entry_Component |
| 5629 |
-- Actual_Subtype |
| 5630 |
-- Renamed_Object (always Empty) |
| 5631 |
-- Default_Value |
| 5632 |
-- Protected_Formal |
| 5633 |
-- Is_Controlling_Formal |
| 5634 |
-- Is_Return_Object |
| 5635 |
-- Parameter_Mode (synth) |
| 5636 |
|
| 5637 |
-- E_Incomplete_Type |
| 5638 |
-- E_Incomplete_Subtype |
| 5639 |
-- Direct_Primitive_Operations |
| 5640 |
-- Non_Limited_View |
| 5641 |
-- Private_Dependents |
| 5642 |
-- Discriminant_Constraint |
| 5643 |
-- Stored_Constraint |
| 5644 |
-- First_Entity $$$ |
| 5645 |
-- Last_Entity $$$ |
| 5646 |
-- Has_Non_Limited_View (synth) |
| 5647 |
-- (plus type attributes) |
| 5648 |
|
| 5649 |
-- E_In_Parameter |
| 5650 |
-- E_In_Out_Parameter |
| 5651 |
-- E_Out_Parameter |
| 5652 |
-- Linker_Section_Pragma $$$ |
| 5653 |
-- Mechanism (Mechanism_Type) |
| 5654 |
-- Current_Value |
| 5655 |
-- Discriminal_Link (discriminals only) |
| 5656 |
-- Entry_Component |
| 5657 |
-- Esize |
| 5658 |
-- Extra_Accessibility |
| 5659 |
-- Alignment |
| 5660 |
-- Extra_Formal |
| 5661 |
-- Unset_Reference |
| 5662 |
-- Actual_Subtype |
| 5663 |
-- Renamed_Object |
| 5664 |
-- Spec_Entity |
| 5665 |
-- Default_Value |
| 5666 |
-- Default_Expr_Function |
| 5667 |
-- Protected_Formal |
| 5668 |
-- Extra_Constrained |
| 5669 |
-- Minimum_Accessibility |
| 5670 |
-- Last_Assignment (OUT, IN-OUT only) |
| 5671 |
-- Activation_Record_Component |
| 5672 |
-- Has_Initial_Value |
| 5673 |
-- Is_Controlling_Formal |
| 5674 |
-- Is_Only_Out_Parameter |
| 5675 |
-- Low_Bound_Tested |
| 5676 |
-- Is_Return_Object |
| 5677 |
-- Is_Activation_Record |
| 5678 |
-- Parameter_Mode (synth) |
| 5679 |
|
| 5680 |
-- E_Label |
| 5681 |
-- Renamed_Object $$$ |
| 5682 |
-- Renamed_Entity $$$ |
| 5683 |
-- Entry_Cancel_Parameter |
| 5684 |
-- Enclosing_Scope |
| 5685 |
-- Reachable |
| 5686 |
|
| 5687 |
-- E_Limited_Private_Type |
| 5688 |
-- E_Limited_Private_Subtype |
| 5689 |
-- Scalar_Range $$$ type |
| 5690 |
-- First_Entity |
| 5691 |
-- Private_Dependents |
| 5692 |
-- Underlying_Full_View |
| 5693 |
-- Last_Entity |
| 5694 |
-- Discriminant_Constraint |
| 5695 |
-- Stored_Constraint |
| 5696 |
-- Has_Completion |
| 5697 |
-- (plus type attributes) |
| 5698 |
|
| 5699 |
-- E_Loop |
| 5700 |
-- First_Exit_Statement |
| 5701 |
-- Has_Exit |
| 5702 |
-- Has_Loop_Entry_Attributes |
| 5703 |
-- Has_Master_Entity |
| 5704 |
-- Has_Nested_Block_With_Handler |
| 5705 |
-- Uses_Sec_Stack |
| 5706 |
-- First_Entity $$$ |
| 5707 |
-- Last_Entity $$$ |
| 5708 |
-- Renamed_Object $$$ |
| 5709 |
|
| 5710 |
-- E_Modular_Integer_Type |
| 5711 |
-- E_Modular_Integer_Subtype |
| 5712 |
-- Modulus (base type only) |
| 5713 |
-- Default_Aspect_Value (base type only) |
| 5714 |
-- Original_Array_Type |
| 5715 |
-- Scalar_Range |
| 5716 |
-- Static_Discrete_Predicate |
| 5717 |
-- Non_Binary_Modulus (base type only) |
| 5718 |
-- Has_Biased_Representation |
| 5719 |
-- Has_Shift_Operator (base type only) |
| 5720 |
-- No_Predicate_On_Actual |
| 5721 |
-- No_Dynamic_Predicate_On_Actual |
| 5722 |
-- Type_Low_Bound (synth) |
| 5723 |
-- Type_High_Bound (synth) |
| 5724 |
-- (plus type attributes) |
| 5725 |
|
| 5726 |
-- E_Named_Integer |
| 5727 |
-- Renamed_Object $$$ |
| 5728 |
|
| 5729 |
-- E_Named_Real |
| 5730 |
|
| 5731 |
-- E_Operator |
| 5732 |
-- First_Entity |
| 5733 |
-- Alias |
| 5734 |
-- Extra_Accessibility_Of_Result |
| 5735 |
-- Last_Entity |
| 5736 |
-- Subps_Index |
| 5737 |
-- Overridden_Operation |
| 5738 |
-- Linker_Section_Pragma |
| 5739 |
-- Contract |
| 5740 |
-- Import_Pragma |
| 5741 |
-- LSP_Subprogram |
| 5742 |
-- SPARK_Pragma |
| 5743 |
-- Default_Expressions_Processed |
| 5744 |
-- Has_Nested_Subprogram |
| 5745 |
-- Ignore_SPARK_Mode_Pragmas |
| 5746 |
-- Is_Class_Wide_Wrapper |
| 5747 |
-- Is_Elaboration_Checks_OK_Id |
| 5748 |
-- Is_Elaboration_Warnings_OK_Id |
| 5749 |
-- Is_Intrinsic_Subprogram |
| 5750 |
-- Is_Machine_Code_Subprogram |
| 5751 |
-- Is_Primitive |
| 5752 |
-- Is_Pure |
| 5753 |
-- Is_Wrapper |
| 5754 |
-- SPARK_Pragma_Inherited |
| 5755 |
-- Interface_Name $$$ |
| 5756 |
-- Renamed_Entity $$$ |
| 5757 |
-- Renamed_Object $$$ |
| 5758 |
-- Is_Elaboration_Target (synth) |
| 5759 |
-- Aren't there more flags and fields? seems like this list should be |
| 5760 |
-- more similar to the E_Function list, which is much longer ??? |
| 5761 |
|
| 5762 |
-- E_Ordinary_Fixed_Point_Type |
| 5763 |
-- E_Ordinary_Fixed_Point_Subtype |
| 5764 |
-- Delta_Value |
| 5765 |
-- Default_Aspect_Value (base type only) |
| 5766 |
-- Scalar_Range |
| 5767 |
-- Static_Real_Or_String_Predicate |
| 5768 |
-- Small_Value |
| 5769 |
-- Has_Small_Clause |
| 5770 |
-- Aft_Value (synth) |
| 5771 |
-- Type_Low_Bound (synth) |
| 5772 |
-- Type_High_Bound (synth) |
| 5773 |
-- (plus type attributes) |
| 5774 |
|
| 5775 |
-- E_Package |
| 5776 |
-- E_Generic_Package |
| 5777 |
-- Dependent_Instances (for an instance) |
| 5778 |
-- Handler_Records (non-generic case only) |
| 5779 |
-- Generic_Homonym (generic case only) |
| 5780 |
-- Associated_Formal_Package |
| 5781 |
-- Elaboration_Entity |
| 5782 |
-- Related_Instance (non-generic case only) |
| 5783 |
-- First_Private_Entity |
| 5784 |
-- First_Entity |
| 5785 |
-- Renamed_Entity |
| 5786 |
-- Renamed_Object $$$ |
| 5787 |
-- Body_Entity |
| 5788 |
-- Last_Entity |
| 5789 |
-- Interface_Name |
| 5790 |
-- Scope_Depth_Value |
| 5791 |
-- Generic_Renamings (for an instance) |
| 5792 |
-- Inner_Instances (generic case only) |
| 5793 |
-- Inner_Instances $$$ also E_Package |
| 5794 |
-- Limited_View (non-generic/instance) |
| 5795 |
-- Incomplete_Actuals (for an instance) |
| 5796 |
-- Abstract_States |
| 5797 |
-- Package_Instantiation |
| 5798 |
-- Current_Use_Clause |
| 5799 |
-- Finalizer (non-generic case only) |
| 5800 |
-- Anonymous_Collections (non-generic case only) |
| 5801 |
-- Contract |
| 5802 |
-- SPARK_Pragma |
| 5803 |
-- SPARK_Aux_Pragma |
| 5804 |
-- Body_Needed_For_Inlining |
| 5805 |
-- Body_Needed_For_SAL |
| 5806 |
-- Contains_Ignored_Ghost_Code |
| 5807 |
-- Discard_Names |
| 5808 |
-- Elaborate_Body_Desirable (non-generic case only) |
| 5809 |
-- Elaboration_Entity_Required |
| 5810 |
-- From_Limited_With |
| 5811 |
-- Has_All_Calls_Remote |
| 5812 |
-- Has_Completion |
| 5813 |
-- Has_Forward_Instantiation |
| 5814 |
-- Has_Master_Entity |
| 5815 |
-- Has_RACW (non-generic case only) |
| 5816 |
-- Ignore_SPARK_Mode_Pragmas |
| 5817 |
-- Is_Called (non-generic case only) |
| 5818 |
-- Is_Elaboration_Checks_OK_Id |
| 5819 |
-- Is_Elaboration_Warnings_OK_Id |
| 5820 |
-- Is_Instantiated |
| 5821 |
-- In_Package_Body |
| 5822 |
-- Is_Private_Descendant |
| 5823 |
-- In_Use |
| 5824 |
-- Is_Visible_Lib_Unit |
| 5825 |
-- Renamed_In_Spec (non-generic case only) |
| 5826 |
-- SPARK_Aux_Pragma_Inherited |
| 5827 |
-- SPARK_Pragma_Inherited |
| 5828 |
-- Static_Elaboration_Desired (non-generic case only) |
| 5829 |
-- Renamed_Object $$$ |
| 5830 |
-- Has_Non_Null_Abstract_State (synth) |
| 5831 |
-- Has_Null_Abstract_State (synth) |
| 5832 |
-- Is_Elaboration_Target (synth) |
| 5833 |
-- Is_Wrapper_Package (synth) (non-generic case only) |
| 5834 |
-- Has_Limited_View (synth) (non-generic case only) |
| 5835 |
-- Scope_Depth (synth) |
| 5836 |
|
| 5837 |
-- E_Package_Body |
| 5838 |
-- Handler_Records (non-generic case only) |
| 5839 |
-- Related_Instance (non-generic case only) |
| 5840 |
-- First_Entity |
| 5841 |
-- Spec_Entity |
| 5842 |
-- Last_Entity |
| 5843 |
-- Scope_Depth_Value |
| 5844 |
-- Finalizer (non-generic case only) |
| 5845 |
-- Contract |
| 5846 |
-- SPARK_Pragma |
| 5847 |
-- SPARK_Aux_Pragma |
| 5848 |
-- Contains_Ignored_Ghost_Code |
| 5849 |
-- Ignore_SPARK_Mode_Pragmas |
| 5850 |
-- SPARK_Aux_Pragma_Inherited |
| 5851 |
-- SPARK_Pragma_Inherited |
| 5852 |
-- Renamed_Entity $$$ |
| 5853 |
-- Scope_Depth (synth) |
| 5854 |
|
| 5855 |
-- E_Private_Type |
| 5856 |
-- E_Private_Subtype |
| 5857 |
-- Scalar_Range $$$ type |
| 5858 |
-- Direct_Primitive_Operations |
| 5859 |
-- First_Entity |
| 5860 |
-- Private_Dependents |
| 5861 |
-- Underlying_Full_View |
| 5862 |
-- Last_Entity |
| 5863 |
-- Discriminant_Constraint |
| 5864 |
-- Stored_Constraint |
| 5865 |
-- Has_Completion |
| 5866 |
-- Is_Controlled_Active (base type only) |
| 5867 |
-- $$$above in (plus type attributes) |
| 5868 |
-- (plus type attributes) |
| 5869 |
|
| 5870 |
-- E_Procedure |
| 5871 |
-- E_Generic_Procedure |
| 5872 |
-- Associated_Node_For_Itype $$$ E_Procedure |
| 5873 |
-- Handler_Records (non-generic case only) |
| 5874 |
-- Protected_Body_Subprogram |
| 5875 |
-- Next_Inlined_Subprogram |
| 5876 |
-- Elaboration_Entity |
| 5877 |
-- DT_Position |
| 5878 |
-- DTC_Entity |
| 5879 |
-- First_Entity |
| 5880 |
-- Alias (non-generic case only) |
| 5881 |
-- Renamed_Entity |
| 5882 |
-- Renamed_Object $$$ |
| 5883 |
-- Receiving_Entry (non-generic case only) |
| 5884 |
-- Last_Entity |
| 5885 |
-- Interface_Name |
| 5886 |
-- Scope_Depth_Value |
| 5887 |
-- Generic_Renamings (for an instance) |
| 5888 |
-- Inner_Instances (generic case only) |
| 5889 |
-- Inner_Instances $$$ also E_Procedure |
| 5890 |
-- Protection_Object (for concurrent kind) |
| 5891 |
-- Subps_Index (non-generic case only) |
| 5892 |
-- Interface_Alias |
| 5893 |
-- LSP_Subprogram (non-generic case only) |
| 5894 |
-- Overridden_Operation (never for init proc) |
| 5895 |
-- Wrapped_Entity (non-generic case only) |
| 5896 |
-- Extra_Formals |
| 5897 |
-- Anonymous_Collections (non-generic case only) |
| 5898 |
-- Static_Initialization (init_proc only) |
| 5899 |
-- Thunk_Entity (thunk case only) |
| 5900 |
-- Linker_Section_Pragma |
| 5901 |
-- Contract |
| 5902 |
-- Import_Pragma (non-generic case only) |
| 5903 |
-- Class_Postconditions |
| 5904 |
-- Class_Preconditions |
| 5905 |
-- Class_Preconditions_Subprogram |
| 5906 |
-- Dynamic_Call_Helper |
| 5907 |
-- Ignored_Class_Preconditions |
| 5908 |
-- Ignored_Class_Postconditions |
| 5909 |
-- Indirect_Call_Wrapper |
| 5910 |
-- Static_Call_Helper |
| 5911 |
-- Protected_Subprogram (non-generic case only) |
| 5912 |
-- SPARK_Pragma |
| 5913 |
-- Original_Protected_Subprogram |
| 5914 |
-- Body_Needed_For_SAL |
| 5915 |
-- Contains_Ignored_Ghost_Code |
| 5916 |
-- Delay_Cleanups $$$Dup below |
| 5917 |
-- Discard_Names $$$Dup below |
| 5918 |
-- Elaboration_Entity_Required |
| 5919 |
-- Default_Expressions_Processed |
| 5920 |
-- Delay_Cleanups |
| 5921 |
-- Discard_Names |
| 5922 |
-- Has_Completion |
| 5923 |
-- Has_Expanded_Contract (non-generic case only) |
| 5924 |
-- Has_Master_Entity |
| 5925 |
-- Has_Nested_Block_With_Handler |
| 5926 |
-- Has_Nested_Subprogram |
| 5927 |
-- Has_Yield_Aspect |
| 5928 |
-- Ignore_SPARK_Mode_Pragmas |
| 5929 |
-- Is_Abstract_Subprogram (non-generic case only) |
| 5930 |
-- Is_Asynchronous |
| 5931 |
-- Is_Called (non-generic case only) |
| 5932 |
-- Is_Class_Wide_Wrapper |
| 5933 |
-- Is_Constructor |
| 5934 |
-- Is_CUDA_Kernel |
| 5935 |
-- Is_DIC_Procedure (non-generic case only) |
| 5936 |
-- Is_Elaboration_Checks_OK_Id |
| 5937 |
-- Is_Elaboration_Warnings_OK_Id |
| 5938 |
-- Is_Eliminated |
| 5939 |
-- Is_Generic_Actual_Subprogram (non-generic case only) |
| 5940 |
-- Is_Hidden_Non_Overridden_Subpgm (non-generic case only) |
| 5941 |
-- Is_Initial_Condition_Procedure (non-generic case only) |
| 5942 |
-- Is_Inlined_Always (non-generic case only) |
| 5943 |
-- Is_Instantiated (generic case only) |
| 5944 |
-- Is_Interrupt_Handler |
| 5945 |
-- Is_Intrinsic_Subprogram |
| 5946 |
-- Is_Invariant_Procedure (non-generic case only) |
| 5947 |
-- Is_Machine_Code_Subprogram (non-generic case only) |
| 5948 |
-- Is_Null_Init_Proc |
| 5949 |
-- Is_Partial_DIC_Procedure (synth) (non-generic case only) |
| 5950 |
-- Is_Partial_Invariant_Procedure (non-generic case only) |
| 5951 |
-- Is_Predicate_Function (non-generic case only) |
| 5952 |
-- Is_Primitive |
| 5953 |
-- Is_Primitive_Wrapper (non-generic case only) |
| 5954 |
-- Is_Private_Descendant |
| 5955 |
-- Is_Private_Primitive (non-generic case only) |
| 5956 |
-- Is_Pure |
| 5957 |
-- Is_Wrapper |
| 5958 |
-- Is_Valued_Procedure |
| 5959 |
-- Is_Visible_Lib_Unit |
| 5960 |
-- Needs_No_Actuals |
| 5961 |
-- No_Raise |
| 5962 |
-- No_Return |
| 5963 |
-- Requires_Overriding (non-generic case only) |
| 5964 |
-- Sec_Stack_Needed_For_Return |
| 5965 |
-- SPARK_Pragma_Inherited |
| 5966 |
-- Entry_Parameters_Type $$$ |
| 5967 |
-- Address_Clause (synth) |
| 5968 |
-- First_Formal (synth) |
| 5969 |
-- First_Formal_With_Extras (synth) |
| 5970 |
-- Is_Elaboration_Target (synth) |
| 5971 |
-- Is_Finalizer (synth) |
| 5972 |
-- Last_Formal (synth) |
| 5973 |
-- Number_Formals (synth) |
| 5974 |
|
| 5975 |
-- E_Protected_Body |
| 5976 |
-- SPARK_Pragma |
| 5977 |
-- Ignore_SPARK_Mode_Pragmas |
| 5978 |
-- SPARK_Pragma_Inherited |
| 5979 |
-- (any others??? First/Last Entity, Scope_Depth???) |
| 5980 |
|
| 5981 |
-- E_Protected_Object$$$No such thing |
| 5982 |
|
| 5983 |
-- E_Protected_Type |
| 5984 |
-- E_Protected_Subtype |
| 5985 |
-- Direct_Primitive_Operations |
| 5986 |
-- First_Private_Entity |
| 5987 |
-- First_Entity |
| 5988 |
-- Corresponding_Record_Type |
| 5989 |
-- Entry_Bodies_Array |
| 5990 |
-- Has_First_Controlling_Parameter_Aspect |
| 5991 |
-- Last_Entity |
| 5992 |
-- Discriminant_Constraint |
| 5993 |
-- Scope_Depth_Value |
| 5994 |
-- Stored_Constraint |
| 5995 |
-- Anonymous_Object |
| 5996 |
-- Contract |
| 5997 |
-- Entry_Max_Queue_Lengths_Array |
| 5998 |
-- SPARK_Aux_Pragma |
| 5999 |
-- Ignore_SPARK_Mode_Pragmas |
| 6000 |
-- SPARK_Aux_Pragma_Inherited |
| 6001 |
-- Uses_Lock_Free |
| 6002 |
-- First_Component (synth) |
| 6003 |
-- First_Component_Or_Discriminant (synth) |
| 6004 |
-- Has_Entries (synth) |
| 6005 |
-- Has_Interrupt_Handler (synth) |
| 6006 |
-- Number_Entries (synth) |
| 6007 |
-- Scope_Depth (synth) |
| 6008 |
-- (plus type attributes) |
| 6009 |
|
| 6010 |
-- E_Record_Type |
| 6011 |
-- E_Record_Subtype |
| 6012 |
-- Renamed_Entity $$$ type |
| 6013 |
-- Interface_Name $$$ type |
| 6014 |
-- Direct_Primitive_Operations |
| 6015 |
-- Access_Disp_Table (base type only) |
| 6016 |
-- Cloned_Subtype (subtype case only) |
| 6017 |
-- First_Entity |
| 6018 |
-- Corresponding_Concurrent_Type |
| 6019 |
-- Parent_Subtype (base type only) |
| 6020 |
-- Last_Entity |
| 6021 |
-- Discriminant_Constraint |
| 6022 |
-- Corresponding_Remote_Type |
| 6023 |
-- Stored_Constraint |
| 6024 |
-- Interfaces |
| 6025 |
-- Dispatch_Table_Wrappers (base type only) |
| 6026 |
-- Underlying_Record_View (base type only) |
| 6027 |
-- Access_Disp_Table_Elab_Flag (base type only) |
| 6028 |
-- Predicated_Parent (subtype only) |
| 6029 |
-- Component_Alignment (special) (base type only) |
| 6030 |
-- C_Pass_By_Copy (base type only) |
| 6031 |
-- Has_Dispatch_Table (base tagged type only) |
| 6032 |
-- Has_First_Controlling_Parameter_Aspect |
| 6033 |
-- Has_Pragma_Pack (impl base type only) |
| 6034 |
-- Has_Private_Ancestor |
| 6035 |
-- Has_Private_Extension |
| 6036 |
-- Has_Record_Rep_Clause (base type only) |
| 6037 |
-- Has_Static_Discriminants (subtype only) |
| 6038 |
-- Is_Class_Wide_Equivalent_Type |
| 6039 |
-- Is_Concurrent_Record_Type |
| 6040 |
-- Is_Constrained |
| 6041 |
-- Is_Controlled_Active (base type only) |
| 6042 |
-- $$$above in (plus type attributes) |
| 6043 |
-- Is_Interface |
| 6044 |
-- Is_Limited_Interface |
| 6045 |
-- No_Reordering (base type only) |
| 6046 |
-- Reverse_Bit_Order (base type only) |
| 6047 |
-- Reverse_Storage_Order (base type only) |
| 6048 |
-- SSO_Set_High_By_Default (base type only) |
| 6049 |
-- SSO_Set_Low_By_Default (base type only) |
| 6050 |
-- First_Component (synth) |
| 6051 |
-- First_Component_Or_Discriminant (synth) |
| 6052 |
-- (plus type attributes) |
| 6053 |
|
| 6054 |
-- E_Record_Type_With_Private |
| 6055 |
-- E_Record_Subtype_With_Private |
| 6056 |
-- Corresponding_Remote_Type $$$ E_Record_Subtype_With_Private |
| 6057 |
-- Direct_Primitive_Operations |
| 6058 |
-- First_Entity |
| 6059 |
-- Private_Dependents |
| 6060 |
-- Underlying_Full_View |
| 6061 |
-- Last_Entity |
| 6062 |
-- Discriminant_Constraint |
| 6063 |
-- Stored_Constraint |
| 6064 |
-- Interfaces |
| 6065 |
-- Underlying_Record_View $$$ (base type only) |
| 6066 |
-- Predicated_Parent (subtype only) |
| 6067 |
-- Has_Completion |
| 6068 |
-- Has_First_Controlling_Parameter_Aspect |
| 6069 |
-- Has_Private_Ancestor |
| 6070 |
-- Has_Private_Extension |
| 6071 |
-- Has_Record_Rep_Clause (base type only) |
| 6072 |
-- Is_Concurrent_Record_Type |
| 6073 |
-- Is_Constrained |
| 6074 |
-- Is_Controlled_Active (base type only) |
| 6075 |
-- $$$above in (plus type attributes) |
| 6076 |
-- Is_Interface |
| 6077 |
-- Is_Limited_Interface |
| 6078 |
-- No_Reordering (base type only) |
| 6079 |
-- Reverse_Bit_Order (base type only) |
| 6080 |
-- Reverse_Storage_Order (base type only) |
| 6081 |
-- SSO_Set_High_By_Default (base type only) |
| 6082 |
-- SSO_Set_Low_By_Default (base type only) |
| 6083 |
-- Corresponding_Remote_Type $$$ type |
| 6084 |
-- First_Component (synth) |
| 6085 |
-- First_Component_Or_Discriminant (synth) |
| 6086 |
-- (plus type attributes) |
| 6087 |
|
| 6088 |
-- E_Return_Statement |
| 6089 |
-- Return_Applies_To |
| 6090 |
-- First_Entity $$$ |
| 6091 |
-- Last_Entity $$$ |
| 6092 |
|
| 6093 |
-- E_Signed_Integer_Type |
| 6094 |
-- E_Signed_Integer_Subtype |
| 6095 |
-- Renamed_Object $$$ subtype |
| 6096 |
-- Interface_Name $$$ subtype |
| 6097 |
-- Direct_Primitive_Operations $$$ type |
| 6098 |
-- First_Entity $$$ |
| 6099 |
-- Default_Aspect_Value (base type only) |
| 6100 |
-- Scalar_Range |
| 6101 |
-- Static_Discrete_Predicate |
| 6102 |
-- Has_Biased_Representation |
| 6103 |
-- Has_Shift_Operator (base type only) |
| 6104 |
-- No_Predicate_On_Actual |
| 6105 |
-- No_Dynamic_Predicate_On_Actual |
| 6106 |
-- Type_Low_Bound (synth) |
| 6107 |
-- Type_High_Bound (synth) |
| 6108 |
-- (plus type attributes) |
| 6109 |
|
| 6110 |
-- E_String_Literal_Subtype |
| 6111 |
-- String_Literal_Length |
| 6112 |
-- First_Index (always Empty) |
| 6113 |
-- String_Literal_Low_Bound |
| 6114 |
-- Packed_Array_Impl_Type |
| 6115 |
-- (plus type attributes) |
| 6116 |
|
| 6117 |
-- E_Subprogram_Body |
| 6118 |
-- Mechanism |
| 6119 |
-- First_Entity |
| 6120 |
-- Corresponding_Protected_Entry |
| 6121 |
-- Last_Entity |
| 6122 |
-- Scope_Depth_Value |
| 6123 |
-- Extra_Formals |
| 6124 |
-- Anonymous_Collections |
| 6125 |
-- Contract |
| 6126 |
-- SPARK_Pragma |
| 6127 |
-- Contains_Ignored_Ghost_Code |
| 6128 |
-- SPARK_Pragma_Inherited |
| 6129 |
-- Interface_Name $$$ |
| 6130 |
-- Renamed_Entity $$$ |
| 6131 |
-- Scope_Depth (synth) |
| 6132 |
|
| 6133 |
-- E_Subprogram_Type |
| 6134 |
-- Extra_Accessibility_Of_Result |
| 6135 |
-- Directly_Designated_Type |
| 6136 |
-- Extra_Formals |
| 6137 |
-- Access_Subprogram_Wrapper |
| 6138 |
-- First_Formal (synth) |
| 6139 |
-- First_Formal_With_Extras (synth) |
| 6140 |
-- Last_Formal (synth) |
| 6141 |
-- Number_Formals (synth) |
| 6142 |
-- Returns_By_Ref |
| 6143 |
-- First_Entity $$$ |
| 6144 |
-- Last_Entity $$$ |
| 6145 |
-- Interface_Name $$$ |
| 6146 |
-- (plus type attributes) |
| 6147 |
|
| 6148 |
-- E_Task_Body |
| 6149 |
-- Contract |
| 6150 |
-- SPARK_Pragma |
| 6151 |
-- Ignore_SPARK_Mode_Pragmas |
| 6152 |
-- SPARK_Pragma_Inherited |
| 6153 |
-- First_Entity $$$ |
| 6154 |
-- (any others??? First/Last Entity, Scope_Depth???) |
| 6155 |
|
| 6156 |
-- E_Task_Type |
| 6157 |
-- E_Task_Subtype |
| 6158 |
-- Direct_Primitive_Operations |
| 6159 |
-- First_Private_Entity |
| 6160 |
-- First_Entity |
| 6161 |
-- Corresponding_Record_Type |
| 6162 |
-- Last_Entity |
| 6163 |
-- Discriminant_Constraint |
| 6164 |
-- Has_First_Controlling_Parameter_Aspect |
| 6165 |
-- Scope_Depth_Value |
| 6166 |
-- Stored_Constraint |
| 6167 |
-- Task_Body_Procedure |
| 6168 |
-- Storage_Size_Variable (base type only) |
| 6169 |
-- Relative_Deadline_Variable (base type only) |
| 6170 |
-- Anonymous_Object |
| 6171 |
-- Contract |
| 6172 |
-- SPARK_Aux_Pragma |
| 6173 |
-- Delay_Cleanups |
| 6174 |
-- Has_Master_Entity |
| 6175 |
-- Has_Storage_Size_Clause (base type only) |
| 6176 |
-- Ignore_SPARK_Mode_Pragmas |
| 6177 |
-- Is_Elaboration_Checks_OK_Id |
| 6178 |
-- Is_Elaboration_Warnings_OK_Id |
| 6179 |
-- SPARK_Aux_Pragma_Inherited |
| 6180 |
-- First_Component (synth) |
| 6181 |
-- First_Component_Or_Discriminant (synth) |
| 6182 |
-- Has_Entries (synth) |
| 6183 |
-- Is_Elaboration_Target (synth) |
| 6184 |
-- Number_Entries (synth) |
| 6185 |
-- Scope_Depth (synth) |
| 6186 |
-- (plus type attributes) |
| 6187 |
|
| 6188 |
-- E_Variable |
| 6189 |
-- Hiding_Loop_Variable |
| 6190 |
-- Current_Value |
| 6191 |
-- Part_Of_Constituents |
| 6192 |
-- Part_Of_References |
| 6193 |
-- Esize |
| 6194 |
-- Extra_Accessibility |
| 6195 |
-- Alignment |
| 6196 |
-- Unset_Reference |
| 6197 |
-- Actual_Subtype |
| 6198 |
-- Renamed_Object |
| 6199 |
-- Renamed_Entity $$$ |
| 6200 |
-- Discriminal_Link $$$ |
| 6201 |
-- Size_Check_Code |
| 6202 |
-- Prival_Link |
| 6203 |
-- Interface_Name |
| 6204 |
-- Shared_Var_Procs_Instance |
| 6205 |
-- Extra_Constrained |
| 6206 |
-- Related_Expression |
| 6207 |
-- Debug_Renaming_Link |
| 6208 |
-- Last_Assignment |
| 6209 |
-- Related_Type |
| 6210 |
-- Initialization_Statements |
| 6211 |
-- BIP_Initialization_Call |
| 6212 |
-- Finalization_Master_Node |
| 6213 |
-- Last_Aggregate_Assignment |
| 6214 |
-- Activation_Record_Component |
| 6215 |
-- Encapsulating_State |
| 6216 |
-- Linker_Section_Pragma |
| 6217 |
-- Contract |
| 6218 |
-- Anonymous_Designated_Type |
| 6219 |
-- Validated_Object |
| 6220 |
-- SPARK_Pragma |
| 6221 |
-- Has_Alignment_Clause |
| 6222 |
-- Has_Atomic_Components |
| 6223 |
-- Has_Biased_Representation |
| 6224 |
-- Has_Independent_Components |
| 6225 |
-- Has_Initial_Value |
| 6226 |
-- Has_Size_Clause |
| 6227 |
-- Has_Volatile_Components |
| 6228 |
-- Is_Atomic |
| 6229 |
-- Is_Elaboration_Checks_OK_Id |
| 6230 |
-- Is_Elaboration_Warnings_OK_Id |
| 6231 |
-- Is_Eliminated |
| 6232 |
-- Is_Finalized_Transient |
| 6233 |
-- Is_Ignored_For_Finalization |
| 6234 |
-- Is_Independent |
| 6235 |
-- Is_Return_Object |
| 6236 |
-- Is_Safe_To_Reevaluate |
| 6237 |
-- Is_Shared_Passive |
| 6238 |
-- Is_True_Constant |
| 6239 |
-- Is_Uplevel_Referenced_Entity |
| 6240 |
-- Is_Volatile |
| 6241 |
-- Is_Volatile_Full_Access |
| 6242 |
-- OK_To_Rename |
| 6243 |
-- Optimize_Alignment_Space |
| 6244 |
-- Optimize_Alignment_Time |
| 6245 |
-- SPARK_Pragma_Inherited |
| 6246 |
-- Suppress_Initialization |
| 6247 |
-- Treat_As_Volatile |
| 6248 |
-- Address_Clause (synth) |
| 6249 |
-- Alignment_Clause (synth) |
| 6250 |
-- Is_Elaboration_Target (synth) |
| 6251 |
-- Is_Full_Access (synth) |
| 6252 |
-- Size_Clause (synth) |
| 6253 |
|
| 6254 |
-- E_Void |
| 6255 |
-- Since E_Void is the initial Ekind value of an entity when it is first |
| 6256 |
-- created, one might expect that no attributes would be defined on such |
| 6257 |
-- an entity until its Ekind field is set. However, in practice, there |
| 6258 |
-- are many instances in which fields of an E_Void entity are set in the |
| 6259 |
-- code prior to setting the Ekind field. This is not well documented or |
| 6260 |
-- well controlled, and needs cleaning up later. Meanwhile, the access |
| 6261 |
-- procedures in the body of Einfo permit many, but not all, attributes |
| 6262 |
-- to be applied to an E_Void entity, precisely so that this kind of |
| 6263 |
-- pre-setting of attributes works. This is really a hole in the dynamic |
| 6264 |
-- type checking, since there is no assurance that the eventual Ekind |
| 6265 |
-- value will be appropriate for the attributes set, and the consequence |
| 6266 |
-- is that the dynamic type checking in the Einfo body is unnecessarily |
| 6267 |
-- weak. |
| 6268 |
-- |
| 6269 |
-- The following are examples of getters and setters called with E_Void: |
| 6270 |
-- Entry_Formal $$$ |
| 6271 |
-- Esize $$$ |
| 6272 |
-- First_Entity $$$ |
| 6273 |
-- Handler_Records $$$ |
| 6274 |
-- Interface_Name $$$ |
| 6275 |
-- Last_Entity $$$ |
| 6276 |
-- Renamed_Entity $$$ |
| 6277 |
-- Renamed_Object $$$ |
| 6278 |
-- Scalar_Range $$$ |
| 6279 |
-- Set_Associated_Node_For_Itype $$$ |
| 6280 |
-- Set_Debug_Renaming_Link $$$ |
| 6281 |
-- Set_Entry_Cancel_Parameter $$$ |
| 6282 |
-- Set_First_Entity $$$ |
| 6283 |
-- Set_Inner_Instances $$$ |
| 6284 |
-- Set_Last_Entity $$$ |
| 6285 |
-- Set_Scalar_Range $$$ |
| 6286 |
-- Set_Entry_Cancel_Parameter $$$ |
| 6287 |
|
| 6288 |
--------------- |
| 6289 |
-- Iterators -- |
| 6290 |
--------------- |
| 6291 |
|
| 6292 |
-- In addition to attributes that are stored as plain data, other |
| 6293 |
-- attributes are procedural, and require some small amount of |
| 6294 |
-- computation. Of course, from the point of view of a user of this |
| 6295 |
-- package, the distinction is not visible (even the field information |
| 6296 |
-- provided below should be disregarded, as it is subject to change |
| 6297 |
-- without notice). A number of attributes appear as lists: lists of |
| 6298 |
-- formals, lists of actuals, of discriminants, etc. For these, pairs |
| 6299 |
-- of functions are defined, which take the form: |
| 6300 |
|
| 6301 |
-- function First_Thing (E : Enclosing_Construct) return Thing; |
| 6302 |
-- function Next_Thing (T : Thing) return Thing; |
| 6303 |
|
| 6304 |
-- The end of iteration is always signaled by a value of Empty, so that |
| 6305 |
-- loops over these chains invariably have the form: |
| 6306 |
|
| 6307 |
-- This : Thing; |
| 6308 |
-- ... |
| 6309 |
-- This := First_Thing (E); |
| 6310 |
|
| 6311 |
-- while Present (This) loop |
| 6312 |
-- Do_Something_With (This); |
| 6313 |
-- ... |
| 6314 |
-- This := Next_Thing (This); |
| 6315 |
-- end loop; |
| 6316 |
|
| 6317 |
----------------------------------- |
| 6318 |
-- Handling of Check Suppression -- |
| 6319 |
----------------------------------- |
| 6320 |
|
| 6321 |
-- There are three ways that checks can be suppressed: |
| 6322 |
|
| 6323 |
-- 1. At the command line level |
| 6324 |
-- 2. At the scope level. |
| 6325 |
-- 3. At the entity level. |
| 6326 |
|
| 6327 |
-- See spec of Sem in sem.ads for details of the data structures used |
| 6328 |
-- to keep track of these various methods for suppressing checks. |
| 6329 |
|
| 6330 |
------------------------------- |
| 6331 |
-- Handling of Discriminants -- |
| 6332 |
------------------------------- |
| 6333 |
|
| 6334 |
-- During semantic processing, discriminants are separate entities which |
| 6335 |
-- reflect the semantic properties and allowed usage of discriminants in |
| 6336 |
-- the language. |
| 6337 |
|
| 6338 |
-- In the case of discriminants used as bounds, the references are handled |
| 6339 |
-- directly, since special processing is needed in any case. However, there |
| 6340 |
-- are two circumstances in which discriminants are referenced in a quite |
| 6341 |
-- general manner, like any other variables: |
| 6342 |
|
| 6343 |
-- In initialization expressions for records. Note that the expressions |
| 6344 |
-- used in Priority, Storage_Size, Task_Info and Relative_Deadline |
| 6345 |
-- pragmas are effectively in this category, since these pragmas are |
| 6346 |
-- converted to initialized record fields in the Corresponding_Record_ |
| 6347 |
-- Type. |
| 6348 |
|
| 6349 |
-- In task and protected bodies, where the discriminant values may be |
| 6350 |
-- referenced freely within these bodies. Discriminants can also appear |
| 6351 |
-- in bounds of entry families and in defaults of operations. |
| 6352 |
|
| 6353 |
-- In both these cases, the discriminants must be treated essentially as |
| 6354 |
-- objects. The following approach is used to simplify and minimize the |
| 6355 |
-- special processing that is required. |
| 6356 |
|
| 6357 |
-- When a record type with discriminants is analyzed, semantic processing |
| 6358 |
-- creates the entities for the discriminants. It also creates additional |
| 6359 |
-- sets of entities called discriminals, one for each of the discriminants, |
| 6360 |
-- and the Discriminal field of the discriminant entity points to this |
| 6361 |
-- additional entity, which is initially created as an uninitialized |
| 6362 |
-- (E_Void) entity. |
| 6363 |
|
| 6364 |
-- During expansion of expressions, any discriminant reference is replaced |
| 6365 |
-- by a reference to the corresponding discriminal. When the initialization |
| 6366 |
-- procedure for the record is created (there will always be one, since |
| 6367 |
-- discriminants are present, see Exp_Ch3 for further details), the |
| 6368 |
-- discriminals are used as the entities for the formal parameters of |
| 6369 |
-- this initialization procedure. The references to these discriminants |
| 6370 |
-- have already been replaced by references to these discriminals, which |
| 6371 |
-- are now the formal parameters corresponding to the required objects. |
| 6372 |
|
| 6373 |
-- In the case of a task or protected body, the semantics similarly creates |
| 6374 |
-- a set of discriminals for the discriminants of the task or protected |
| 6375 |
-- type. When the procedure is created for the task body, the parameter |
| 6376 |
-- passed in is a reference to the task value type, which contains the |
| 6377 |
-- required discriminant values. The expander creates a set of declarations |
| 6378 |
-- of the form: |
| 6379 |
|
| 6380 |
-- discr_nameD : constant discr_type renames _task.discr_name; |
| 6381 |
|
| 6382 |
-- where discr_nameD is the discriminal entity referenced by the task |
| 6383 |
-- discriminant, and _task is the task value passed in as the parameter. |
| 6384 |
-- Again, any references to discriminants in the task body have been |
| 6385 |
-- replaced by the discriminal reference, which is now an object that |
| 6386 |
-- contains the required value. |
| 6387 |
|
| 6388 |
-- This approach for tasks means that two sets of discriminals are needed |
| 6389 |
-- for a task type, one for the initialization procedure, and one for the |
| 6390 |
-- task body. This works out nicely, since the semantics allocates one set |
| 6391 |
-- for the task itself, and one set for the corresponding record. |
| 6392 |
|
| 6393 |
-- The one bit of trickiness arises in making sure that the right set of |
| 6394 |
-- discriminals is used at the right time. First the task definition is |
| 6395 |
-- processed. Any references to discriminants here are replaced by the |
| 6396 |
-- corresponding *task* discriminals (the record type doesn't even exist |
| 6397 |
-- yet, since it is constructed as part of the expansion of the task |
| 6398 |
-- declaration, which happens after the semantic processing of the task |
| 6399 |
-- definition). The discriminants to be used for the corresponding record |
| 6400 |
-- are created at the same time as the other discriminals, and held in the |
| 6401 |
-- CR_Discriminant field of the discriminant. A use of the discriminant in |
| 6402 |
-- a bound for an entry family is replaced with the CR_Discriminant because |
| 6403 |
-- it controls the bound of the entry queue array which is a component of |
| 6404 |
-- the corresponding record. |
| 6405 |
|
| 6406 |
-- Just before the record initialization routine is constructed, the |
| 6407 |
-- expander exchanges the task and record discriminals. This has two |
| 6408 |
-- effects. First the generation of the record initialization routine |
| 6409 |
-- uses the discriminals that are now on the record, which is the set |
| 6410 |
-- that used to be on the task, which is what we want. |
| 6411 |
|
| 6412 |
-- Second, a new set of (so far unused) discriminals is now on the task |
| 6413 |
-- discriminants, and it is this set that will be used for expanding the |
| 6414 |
-- task body, and also for the discriminal declarations at the start of |
| 6415 |
-- the task body. |
| 6416 |
|
| 6417 |
--------------------------------------------------- |
| 6418 |
-- Handling of private data in protected objects -- |
| 6419 |
--------------------------------------------------- |
| 6420 |
|
| 6421 |
-- Private components in protected types pose problems similar to those |
| 6422 |
-- of discriminants. Private data is visible and can be directly referenced |
| 6423 |
-- from protected bodies. However, when protected entries and subprograms |
| 6424 |
-- are expanded into corresponding bodies and barrier functions, private |
| 6425 |
-- components lose their original context and visibility. |
| 6426 |
|
| 6427 |
-- To remedy this side effect of expansion, private components are expanded |
| 6428 |
-- into renamings called "privals", by analogy with "discriminals". |
| 6429 |
|
| 6430 |
-- private_comp : comp_type renames _object.private_comp; |
| 6431 |
|
| 6432 |
-- Prival declarations are inserted during the analysis of subprogram and |
| 6433 |
-- entry bodies to ensure proper visibility for any subsequent expansion. |
| 6434 |
-- _Object is the formal parameter of the generated corresponding body or |
| 6435 |
-- a local renaming which denotes the protected object obtained from entry |
| 6436 |
-- parameter _O. Privals receive minimal decoration upon creation and are |
| 6437 |
-- categorized as either E_Variable for the general case or E_Constant when |
| 6438 |
-- they appear in functions. |
| 6439 |
|
| 6440 |
-- Along with the local declarations, each private component carries a |
| 6441 |
-- placeholder which references the prival entity in the current body. This |
| 6442 |
-- form of indirection is used to resolve name clashes of privals and other |
| 6443 |
-- locally visible entities such as parameters, local objects, entry family |
| 6444 |
-- indexes or identifiers used in the barrier condition. |
| 6445 |
|
| 6446 |
-- When analyzing the statements of a protected subprogram or entry, any |
| 6447 |
-- reference to a private component must resolve to the locally declared |
| 6448 |
-- prival through normal visibility. In case of name conflicts (the cases |
| 6449 |
-- above), the prival is marked as hidden and acts as a weakly declared |
| 6450 |
-- entity. As a result, the reference points to the correct entity. When a |
| 6451 |
-- private component is denoted by an expanded name (prot_type.comp for |
| 6452 |
-- example), the expansion mechanism uses the placeholder of the component |
| 6453 |
-- to correct the Entity and Etype of the reference. |
| 6454 |
|
| 6455 |
end Einfo; |