1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2009, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 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. --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree
37 -- design, and is repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in seven places:
64 -- The documentation associated with the node
65 -- The spec of the access function in sinfo.ads
66 -- The body of the access function in sinfo.adb
67 -- The pragma Inline at the end of sinfo.ads for the access function
68 -- The spec of the set procedure in sinfo.ads
69 -- The body of the set procedure in sinfo.adb
70 -- The pragma Inline at the end of sinfo.ads for the set procedure
72 -- The field chosen must be consistent in all places, and, for a node that
73 -- is a subexpression, must not overlap any of the standard expression
76 -- In addition, if any of the standard expression fields is changed, then
77 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
78 -- must be updated appropriately, since it special cases expression fields.
80 -- If a new tree node is added, then the following changes are made
82 -- Add it to the documentation in the appropriate place
83 -- Add its fields to this documentation section
84 -- Define it in the appropriate classification in Node_Kind
85 -- In the body (sinfo), add entries to the access functions for all
86 -- its fields (except standard expression fields) to include the new
87 -- node in the checks.
88 -- Add an appropriate section to the case statement in sprint.adb
89 -- Add an appropriate section to the case statement in sem.adb
90 -- Add an appropriate section to the case statement in exp_util.adb
91 -- (Insert_Actions procedure)
92 -- For a subexpression, add an appropriate section to the case
93 -- statement in sem_eval.adb
94 -- For a subexpression, add an appropriate section to the case
95 -- statement in sem_res.adb
97 -- Finally, four utility programs must be run:
99 -- Run CSinfo to check that you have made the changes consistently. It
100 -- checks most of the rules given above, with clear error messages. This
101 -- utility reads sinfo.ads and sinfo.adb and generates a report to
104 -- Run XSinfo to create sinfo.h, the corresponding C header. This
105 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
106 -- not need to read sinfo.adb, since the contents of the body are
107 -- algorithmically determinable from the spec.
109 -- Run XTreeprs to create treeprs.ads, an updated version of the module
110 -- that is used to drive the tree print routine. This utility reads (but
111 -- does not modify) treeprs.adt, the template that provides the basic
112 -- structure of the file, and then fills in the data from the comments
115 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
116 -- spec of the Nmake package which contains functions for constructing
119 -- All of the above steps except CSinfo are done automatically by the
120 -- build scripts when you do a full bootstrap.
122 -- Note: sometime we could write a utility that actually generated the body
123 -- of sinfo from the spec instead of simply checking it, since, as noted
124 -- above, the contents of the body can be determined from the spec.
126 --------------------------------
127 -- Implicit Nodes in the Tree --
128 --------------------------------
130 -- Generally the structure of the tree very closely follows the grammar as
131 -- defined in the RM. However, certain nodes are omitted to save space and
132 -- simplify semantic processing. Two general classes of such omitted nodes
135 -- If the only possibilities for a non-terminal are one or more other
136 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
137 -- corresponding node is omitted from the tree, and the target construct
138 -- appears directly. For example, a real type definition is either
139 -- floating point definition or a fixed point definition. No explicit node
140 -- appears for real type definition. Instead either the floating point
141 -- definition or fixed point definition appears directly.
143 -- If a non-terminal corresponds to a list of some other non-terminal
144 -- (possibly with separating punctuation), then usually it is omitted from
145 -- the tree, and a list of components appears instead. For example,
146 -- sequence of statements does not appear explicitly in the tree. Instead
147 -- a list of statements appears directly.
149 -- Some additional cases of omitted nodes occur and are documented
150 -- individually. In particular, many nodes are omitted in the tree
151 -- generated for an expression.
153 -------------------------------------------
154 -- Handling of Defining Identifier Lists --
155 -------------------------------------------
157 -- In several declarative forms in the syntax, lists of defining
158 -- identifiers appear (object declarations, component declarations, number
159 -- declarations etc.)
161 -- The semantics of such statements are equivalent to a series of identical
162 -- declarations of single defining identifiers (except that conformance
163 -- checks require the same grouping of identifiers in the parameter case).
165 -- To simplify semantic processing, the parser breaks down such multiple
166 -- declaration cases into sequences of single declarations, duplicating
167 -- type and initialization information as required. The flags More_Ids and
168 -- Prev_Ids are used to record the original form of the source in the case
169 -- where the original source used a list of names, More_Ids being set on
170 -- all but the last name and Prev_Ids being set on all but the first name.
171 -- These flags are used to reconstruct the original source (e.g. in the
172 -- Sprint package), and also are included in the conformance checks, but
173 -- otherwise have no semantic significance.
175 -- Note: the reason that we use More_Ids and Prev_Ids rather than
176 -- First_Name and Last_Name flags is so that the flags are off in the
177 -- normal one identifier case, which minimizes tree print output.
179 -----------------------
180 -- Use of Node Lists --
181 -----------------------
183 -- With a few exceptions, if a construction of the form {non-terminal}
184 -- appears in the tree, lists are used in the corresponding tree node (see
185 -- package Nlists for handling of node lists). In this case a field of the
186 -- parent node points to a list of nodes for the non-terminal. The field
187 -- name for such fields has a plural name which always ends in "s". For
188 -- example, a case statement has a field Alternatives pointing to list of
189 -- case statement alternative nodes.
191 -- Only fields pointing to lists have names ending in "s", so generally the
192 -- structure is strongly typed, fields not ending in s point to single
193 -- nodes, and fields ending in s point to lists.
195 -- The following example shows how a traversal of a list is written. We
196 -- suppose here that Stmt points to a N_Case_Statement node which has a
197 -- list field called Alternatives:
199 -- Alt := First (Alternatives (Stmt));
200 -- while Present (Alt) loop
202 -- -- processing for case statement alternative Alt
204 -- Alt := Next (Alt);
207 -- The Present function tests for Empty, which in this case signals the end
208 -- of the list. First returns Empty immediately if the list is empty.
209 -- Present is defined in Atree, First and Next are defined in Nlists.
211 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212 -- contexts, which is handled as described in the previous section, and
213 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214 -- using the First_Name and Last_Name flags, as further detailed in the
215 -- description of the N_With_Clause node.
221 -- Pragmas can appear in many different context, but are not included in
222 -- the grammar. Still they must appear in the tree, so they can be properly
225 -- Two approaches are used. In some cases, an extra field is defined in an
226 -- appropriate node that contains a list of pragmas appearing in the
227 -- expected context. For example pragmas can appear before an
228 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
231 -- The other approach is to simply allow pragmas to appear in syntactic
232 -- lists where the grammar (of course) does not include the possibility.
233 -- For example, the Variants field of an N_Variant_Part node points to a
234 -- list that can contain both N_Pragma and N_Variant nodes.
236 -- To make processing easier in the latter case, the Nlists package
237 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239 -- ignoring all pragmas.
241 -- In the case of the variants list, we can either write:
243 -- Variant := First (Variants (N));
244 -- while Present (Variant) loop
246 -- Variant := Next (Variant);
251 -- Variant := First_Non_Pragma (Variants (N));
252 -- while Present (Variant) loop
254 -- Variant := Next_Non_Pragma (Variant);
257 -- In the first form of the loop, Variant can either be an N_Pragma or an
258 -- N_Variant node. In the second form, Variant can only be N_Variant since
259 -- all pragmas are skipped.
261 ---------------------
262 -- Optional Fields --
263 ---------------------
265 -- Fields which correspond to a section of the syntax enclosed in square
266 -- brackets are generally omitted (and the corresponding field set to Empty
267 -- for a node, or No_List for a list). The documentation of such fields
268 -- notes these cases. One exception to this rule occurs in the case of
269 -- possibly empty statement sequences (such as the sequence of statements
270 -- in an entry call alternative). Such cases appear in the syntax rules as
271 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272 -- statement sequences always contain an empty list (not No_List) if no
273 -- statements are present.
275 -- Note: the utility program that constructs the body and spec of the Nmake
276 -- package relies on the format of the comments to determine if a field
277 -- should have a default value in the corresponding make routine. The rule
278 -- is that if the first line of the description of the field contains the
279 -- string "(set to xxx if", then a default value of xxx is provided for
280 -- this field in the corresponding Make_yyy routine.
282 -----------------------------------
283 -- Note on Body/Spec Terminology --
284 -----------------------------------
286 -- In informal discussions about Ada, it is customary to refer to package
287 -- and subprogram specs and bodies. However, this is not technically
288 -- correct, what is normally referred to as a spec or specification is in
289 -- fact a package declaration or subprogram declaration. We are careful in
290 -- GNAT to use the correct terminology and in particular, the full word
291 -- specification is never used as an incorrect substitute for declaration.
292 -- The structure and terminology used in the tree also reflects the grammar
293 -- and thus uses declaration and specification in the technically correct
296 -- However, there are contexts in which the informal terminology is useful.
297 -- We have the word "body" to refer to the Interp_Etype declared by the
298 -- declaration of a unit body, and in some contexts we need similar term to
299 -- refer to the entity declared by the package or subprogram declaration,
300 -- and simply using declaration can be confusing since the body also has a
303 -- An example of such a context is the link between the package body and
304 -- its declaration. With_Declaration is confusing, since the package body
305 -- itself is a declaration.
307 -- To deal with this problem, we reserve the informal term Spec, i.e. the
308 -- popular abbreviation used in this context, to refer to the entity
309 -- declared by the package or subprogram declaration. So in the above
310 -- example case, the field in the body is called With_Spec.
312 -- Another important context for the use of the word Spec is in error
313 -- messages, where a hyper-correct use of declaration would be confusing to
314 -- a typical Ada programmer, and even for an expert programmer can cause
315 -- confusion since the body has a declaration as well.
319 -- Declaration always refers to the syntactic entity that is called
320 -- a declaration. In particular, subprogram declaration
321 -- and package declaration are used to describe the
322 -- syntactic entity that includes the semicolon.
324 -- Specification always refers to the syntactic entity that is called
325 -- a specification. In particular, the terms procedure
326 -- specification, function specification, package
327 -- specification, subprogram specification always refer
328 -- to the syntactic entity that has no semicolon.
330 -- Spec is an informal term, used to refer to the entity
331 -- that is declared by a task declaration, protected
332 -- declaration, generic declaration, subprogram
333 -- declaration or package declaration.
335 -- This convention is followed throughout the GNAT documentation
336 -- both internal and external, and in all error message text.
338 ------------------------
339 -- Internal Use Nodes --
340 ------------------------
342 -- These are Node_Kind settings used in the internal implementation which
343 -- are not logically part of the specification.
346 -- Completely unused entry at the start of the enumeration type. This
347 -- is inserted so that no legitimate value is zero, which helps to get
348 -- better debugging behavior, since zero is a likely uninitialized value).
351 -- Completely unused entry at the end of the enumeration type. This is
352 -- handy so that arrays with Node_Kind as the index type have an extra
353 -- entry at the end (see for example the use of the Pchar_Pos_Array in
354 -- Treepr, where the extra entry provides the limit value when dealing with
355 -- the last used entry in the array).
357 -----------------------------------------
358 -- Note on the settings of Sloc fields --
359 -----------------------------------------
361 -- The Sloc field of nodes that come from the source is set by the parser.
362 -- For internal nodes, and nodes generated during expansion the Sloc is
363 -- usually set in the call to the constructor for the node. In general the
364 -- Sloc value chosen for an internal node is the Sloc of the source node
365 -- whose processing is responsible for the expansion. For example, the Sloc
366 -- of an inherited primitive operation is the Sloc of the corresponding
367 -- derived type declaration.
369 -- For the nodes of a generic instantiation, the Sloc value is encoded to
370 -- represent both the original Sloc in the generic unit, and the Sloc of
371 -- the instantiation itself. See Sinput.ads for details.
373 -- Subprogram instances create two callable entities: one is the visible
374 -- subprogram instance, and the other is an anonymous subprogram nested
375 -- within a wrapper package that contains the renamings for the actuals.
376 -- Both of these entities have the Sloc of the defining entity in the
377 -- instantiation node. This simplifies some ASIS queries.
379 -----------------------
380 -- Field Definitions --
381 -----------------------
383 -- In the following node definitions, all fields, both syntactic and
384 -- semantic, are documented. The one exception is in the case of entities
385 -- (defining identifiers, character literals and operator symbols), where
386 -- the usage of the fields depends on the entity kind. Entity fields are
387 -- fully documented in the separate package Einfo.
389 -- In the node definitions, three common sets of fields are abbreviated to
390 -- save both space in the documentation, and also space in the string
391 -- (defined in Tree_Print_Strings) used to print trees. The following
392 -- abbreviations are used:
394 -- Note: the utility program that creates the Treeprs spec (in the file
395 -- xtreeprs.adb) knows about the special fields here, so it must be
396 -- modified if any change is made to these fields.
398 -- "plus fields for binary operator"
399 -- Chars (Name1) Name_Id for the operator
400 -- Left_Opnd (Node2) left operand expression
401 -- Right_Opnd (Node3) right operand expression
402 -- Entity (Node4-Sem) defining entity for operator
403 -- Associated_Node (Node4-Sem) for generic processing
404 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
405 -- Has_Private_View (Flag11-Sem) set in generic units.
407 -- "plus fields for unary operator"
408 -- Chars (Name1) Name_Id for the operator
409 -- Right_Opnd (Node3) right operand expression
410 -- Entity (Node4-Sem) defining entity for operator
411 -- Associated_Node (Node4-Sem) for generic processing
412 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
413 -- Has_Private_View (Flag11-Sem) set in generic units.
415 -- "plus fields for expression"
416 -- Paren_Count number of parentheses levels
417 -- Etype (Node5-Sem) type of the expression
418 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
419 -- Is_Static_Expression (Flag6-Sem) set for static expression
420 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
421 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
422 -- Do_Range_Check (Flag9-Sem) set if a range check needed
423 -- Assignment_OK (Flag15-Sem) set if modification is OK
424 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
426 -- Note: see under (EXPRESSION) for further details on the use of
427 -- the Paren_Count field to record the number of parentheses levels.
429 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
430 -- The actual definition of this type is given later (the reason for this
431 -- is that we want the descriptions ordered by logical chapter in the RM,
432 -- but the type definition is reordered to facilitate the definition of
433 -- some subtype ranges. The individual descriptions of the nodes show how
434 -- the various fields are used in each node kind, as well as providing
435 -- logical names for the fields. Functions and procedures are provided for
436 -- accessing and setting these fields using these logical names.
438 -----------------------
439 -- Gigi Restrictions --
440 -----------------------
442 -- The tree passed to Gigi is more restricted than the general tree form.
443 -- For example, as a result of expansion, most of the tasking nodes can
444 -- never appear. For each node to which either a complete or partial
445 -- restriction applies, a note entitled "Gigi restriction" appears which
446 -- documents the restriction.
448 -- Note that most of these restrictions apply only to trees generated when
449 -- code is being generated, since they involved expander actions that
452 ------------------------
453 -- Common Flag Fields --
454 ------------------------
456 -- The following flag fields appear in all nodes
459 -- This flag is used to indicate that a node (and all its children have
460 -- been analyzed. It is used to avoid reanalysis of a node that has
461 -- already been analyzed, both for efficiency and functional correctness
464 -- Comes_From_Source (Flag2)
465 -- This flag is on for any nodes built by the scanner or parser from the
466 -- source program, and off for any nodes built by the analyzer or
467 -- expander. It indicates that a node comes from the original source.
468 -- This flag is defined in Atree.
470 -- Error_Posted (Flag3)
471 -- This flag is used to avoid multiple error messages being posted on or
472 -- referring to the same node. This flag is set if an error message
473 -- refers to a node or is posted on its source location, and has the
474 -- effect of inhibiting further messages involving this same node.
476 -- Has_Dynamic_Length_Check (Flag10-Sem)
477 -- This flag is present on all nodes. It is set to indicate that one of
478 -- the routines in unit Checks has generated a length check action which
479 -- has been inserted at the flagged node. This is used to avoid the
480 -- generation of duplicate checks.
482 -- Has_Dynamic_Range_Check (Flag12-Sem)
483 -- This flag is present on all nodes. It is set to indicate that one of
484 -- the routines in unit Checks has generated a range check action which
485 -- has been inserted at the flagged node. This is used to avoid the
486 -- generation of duplicate checks.
488 -- Has_Local_Raise (Flag8-Sem)
489 -- Present in exception handler nodes. Set if the handler can be entered
490 -- via a local raise that gets transformed to a goto statement. This will
491 -- always be set if Local_Raise_Statements is non-empty, but can also be
492 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
493 -- nodes requiring generation of back end checks.
495 ------------------------------------
496 -- Description of Semantic Fields --
497 ------------------------------------
499 -- The meaning of the syntactic fields is generally clear from their names
500 -- without any further description, since the names are chosen to
501 -- correspond very closely to the syntax in the reference manual. This
502 -- section describes the usage of the semantic fields, which are used to
503 -- contain additional information determined during semantic analysis.
505 -- ABE_Is_Certain (Flag18-Sem)
506 -- This flag is set in an instantiation node or a call node is determined
507 -- to be sure to raise an ABE. This is used to trigger special handling
508 -- of such cases, particularly in the instantiation case where we avoid
509 -- instantiating the body if this flag is set. This flag is also present
510 -- in an N_Formal_Package_Declaration_Node since formal package
511 -- declarations are treated like instantiations, but it is always set to
512 -- False in this context.
514 -- Accept_Handler_Records (List5-Sem)
515 -- This field is present only in an N_Accept_Alternative node. It is used
516 -- to temporarily hold the exception handler records from an accept
517 -- statement in a selective accept. These exception handlers will
518 -- eventually be placed in the Handler_Records list of the procedure
519 -- built for this accept (see Expand_N_Selective_Accept procedure in
520 -- Exp_Ch9 for further details).
522 -- Access_Types_To_Process (Elist2-Sem)
523 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
524 -- Contains the list of access types which may require specific treatment
525 -- when the nature of the type completion is completely known. An example
526 -- of such treatment is the generation of the associated_final_chain.
528 -- Actions (List1-Sem)
529 -- This field contains a sequence of actions that are associated with the
530 -- node holding the field. See the individual node types for details of
531 -- how this field is used, as well as the description of the specific use
532 -- for a particular node type.
534 -- Activation_Chain_Entity (Node3-Sem)
535 -- This is used in tree nodes representing task activators (blocks,
536 -- subprogram bodies, package declarations, and task bodies). It is
537 -- initially Empty, and then gets set to point to the entity for the
538 -- declared Activation_Chain variable when the first task is declared.
539 -- When tasks are declared in the corresponding declarative region this
540 -- entity is located by name (its name is always _Chain) and the declared
541 -- tasks are added to the chain. Note that N_Extended_Return_Statement
542 -- does not have this attribute, although it does have an activation
543 -- chain. This chain is used to store the tasks temporarily, and is not
544 -- used for activating them. On successful completion of the return
545 -- statement, the tasks are moved to the caller's chain, and the caller
548 -- Acts_As_Spec (Flag4-Sem)
549 -- A flag set in the N_Subprogram_Body node for a subprogram body which
550 -- is acting as its own spec, except in the case of a library level
551 -- subprogram, in which case the flag is set on the parent compilation
552 -- unit node instead (see further description in spec of Lib package).
553 -- ??? Above note about Lib is dubious since lib.ads does not mention
554 -- Acts_As_Spec at all.
556 -- Actual_Designated_Subtype (Node4-Sem)
557 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
558 -- needs to known the dynamic constrained subtype of the designated
559 -- object, this attribute is set to that type. This is done for
560 -- N_Free_Statements for access-to-classwide types and access to
561 -- unconstrained packed array types, and for N_Explicit_Dereference when
562 -- the designated type is an unconstrained packed array and the
563 -- dereference is the prefix of a 'Size attribute reference.
565 -- Address_Warning_Posted (Flag18-Sem)
566 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
567 -- posted a warning for the address clause regarding size or alignment
568 -- issues. Used to inhibit multiple redundant messages.
570 -- Aggregate_Bounds (Node3-Sem)
571 -- Present in array N_Aggregate nodes. If the aggregate contains
572 -- component associations this field points to an N_Range node whose
573 -- bounds give the lowest and highest discrete choice values. If the
574 -- named aggregate contains a dynamic or null choice this field is empty.
575 -- If the aggregate contains positional elements this field points to an
576 -- N_Integer_Literal node giving the number of positional elements. Note
577 -- that if the aggregate contains positional elements and an other choice
578 -- the N_Integer_Literal only accounts for the number of positional
581 -- All_Others (Flag11-Sem)
582 -- Present in an N_Others_Choice node. This flag is set for an others
583 -- exception where all exceptions are to be caught, even those that are
584 -- not normally handled (in particular the tasking abort signal). This
585 -- is used for translation of the at end handler into a normal exception
588 -- Assignment_OK (Flag15-Sem)
589 -- This flag is set in a subexpression node for an object, indicating
590 -- that the associated object can be modified, even if this would not
591 -- normally be permissible (either by direct assignment, or by being
592 -- passed as an out or in-out parameter). This is used by the expander
593 -- for a number of purposes, including initialization of constants and
594 -- limited type objects (such as tasks), setting discriminant fields,
595 -- setting tag values, etc. N_Object_Declaration nodes also have this
596 -- flag defined. Here it is used to indicate that an initialization
597 -- expression is valid, even where it would normally not be allowed
598 -- (e.g. where the type involved is limited).
600 -- Associated_Node (Node4-Sem)
601 -- Present in nodes that can denote an entity: identifiers, character
602 -- literals, operator symbols, expanded names, operator nodes, and
603 -- attribute reference nodes (all these nodes have an Entity field).
604 -- This field is also present in N_Aggregate, N_Selected_Component, and
605 -- N_Extension_Aggregate nodes. This field is used in generic processing
606 -- to create links between the generic template and the generic copy.
607 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
608 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
609 -- the normal function of Entity is not required at the point where the
610 -- Associated_Node is set. Note also, that in generic templates, this
611 -- means that the Entity field does not necessarily point to an Entity.
612 -- Since the back end is expected to ignore generic templates, this is
615 -- At_End_Proc (Node1)
616 -- This field is present in an N_Handled_Sequence_Of_Statements node.
617 -- It contains an identifier reference for the cleanup procedure to be
618 -- called. See description of this node for further details.
620 -- Backwards_OK (Flag6-Sem)
621 -- A flag present in the N_Assignment_Statement node. It is used only
622 -- if the type being assigned is an array type, and is set if analysis
623 -- determines that it is definitely safe to do the copy backwards, i.e.
624 -- starting at the highest addressed element. This is the case if either
625 -- the operands do not overlap, or they may overlap, but if they do,
626 -- then the left operand is at a higher address than the right operand.
628 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
629 -- means that the front end could not determine that either direction is
630 -- definitely safe, and a runtime check may be required if the backend
631 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
632 -- set, it means that the front end can assure no overlap of operands.
634 -- Body_To_Inline (Node3-Sem)
635 -- present in subprogram declarations. Denotes analyzed but unexpanded
636 -- body of subprogram, to be used when inlining calls. Present when the
637 -- subprogram has an Inline pragma and inlining is enabled. If the
638 -- declaration is completed by a renaming_as_body, and the renamed en-
639 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
640 -- which is used directly in later calls to the original subprogram.
642 -- Body_Required (Flag13-Sem)
643 -- A flag that appears in the N_Compilation_Unit node indicating that
644 -- the corresponding unit requires a body. For the package case, this
645 -- indicates that a completion is required. In Ada 95, if the flag is not
646 -- set for the package case, then a body may not be present. In Ada 83,
647 -- if the flag is not set for the package case, then body is optional.
648 -- For a subprogram declaration, the flag is set except in the case where
649 -- a pragma Import or Interface applies, in which case no body is
650 -- permitted (in Ada 83 or Ada 95).
652 -- By_Ref (Flag5-Sem)
653 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
654 -- this flag is set when the returned expression is already allocated on
655 -- the secondary stack and thus the result is passed by reference rather
656 -- than copied another time.
658 -- Check_Address_Alignment (Flag11-Sem)
659 -- A flag present in N_Attribute_Definition clause for a 'Address
660 -- attribute definition. This flag is set if a dynamic check should be
661 -- generated at the freeze point for the entity to which this address
662 -- clause applies. The reason that we need this flag is that we want to
663 -- check for range checks being suppressed at the point where the
664 -- attribute definition clause is given, rather than testing this at the
667 -- Coextensions (Elist4-Sem)
668 -- Present in allocators nodes. Points to list of allocators for the
669 -- access discriminants of the allocated object.
671 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
672 -- Present in N_Simple_Return_Statement nodes. True if this node was
673 -- constructed as part of the N_Extended_Return_Statement expansion.
676 -- Compile_Time_Known_Aggregate (Flag18-Sem)
677 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
678 -- evaluated at compile time without raising constraint error. Such
679 -- aggregates can be passed as is to Gigi without any expansion. See
680 -- Sem_Aggr for the specific conditions under which an aggregate has this
681 -- flag set. See also the flag Static_Processing_OK.
683 -- Condition_Actions (List3-Sem)
684 -- This field appears in else-if nodes and in the iteration scheme node
685 -- for while loops. This field is only used during semantic processing to
686 -- temporarily hold actions inserted into the tree. In the tree passed
687 -- to gigi, the condition actions field is always set to No_List. For
688 -- details on how this field is used, see the routine Insert_Actions in
689 -- package Exp_Util, and also the expansion routines for the relevant
692 -- Controlling_Argument (Node1-Sem)
693 -- This field is set in procedure and function call nodes if the call
694 -- is a dispatching call (it is Empty for a non-dispatching call). It
695 -- indicates the source of the call's controlling tag. For procedure
696 -- calls, the Controlling_Argument is one of the actuals. For function
697 -- that has a dispatching result, it is an entity in the context of the
698 -- call that can provide a tag, or else it is the tag of the root type
699 -- of the class. It can also specify a tag directly rather than being a
700 -- tagged object. The latter is needed by the implementations of AI-239
703 -- Conversion_OK (Flag14-Sem)
704 -- A flag set on type conversion nodes to indicate that the conversion
705 -- is to be considered as being valid, even though it is the case that
706 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
707 -- Fixed_Value and Integer_Value, for internal conversions done for
708 -- fixed-point operations, and for certain conversions for calls to
709 -- initialization procedures. If Conversion_OK is set, then Etype must be
710 -- set (the analyzer assumes that Etype has been set). For the case of
711 -- fixed-point operands, it also indicates that the conversion is to be
712 -- direct conversion of the underlying integer result, with no regard to
713 -- the small operand.
715 -- Corresponding_Body (Node5-Sem)
716 -- This field is set in subprogram declarations, package declarations,
717 -- entry declarations of protected types, and in generic units. It
718 -- points to the defining entity for the corresponding body (NOT the
719 -- node for the body itself).
721 -- Corresponding_Formal_Spec (Node3-Sem)
722 -- This field is set in subprogram renaming declarations, where it points
723 -- to the defining entity for a formal subprogram in the case where the
724 -- renaming corresponds to a generic formal subprogram association in an
725 -- instantiation. The field is Empty if the renaming does not correspond
726 -- to such a formal association.
728 -- Corresponding_Generic_Association (Node5-Sem)
729 -- This field is defined for object declarations and object renaming
730 -- declarations. It is set for the declarations within an instance that
731 -- map generic formals to their actuals. If set, the field points to
732 -- a generic_association which is the original parent of the expression
733 -- or name appearing in the declaration. This simplifies ASIS queries.
735 -- Corresponding_Integer_Value (Uint4-Sem)
736 -- This field is set in real literals of fixed-point types (it is not
737 -- used for floating-point types). It contains the integer value used
738 -- to represent the fixed-point value. It is also set on the universal
739 -- real literals used to represent bounds of fixed-point base types
740 -- and their first named subtypes.
742 -- Corresponding_Spec (Node5-Sem)
743 -- This field is set in subprogram, package, task, and protected body
744 -- nodes, where it points to the defining entity in the corresponding
745 -- spec. The attribute is also set in N_With_Clause nodes where it points
746 -- to the defining entity for the with'ed spec, and in a subprogram
747 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
748 -- if there is no corresponding spec, as in the case of a subprogram body
749 -- that serves as its own spec.
751 -- Corresponding_Stub (Node3-Sem)
752 -- This field is present in an N_Subunit node. It holds the node in
753 -- the parent unit that is the stub declaration for the subunit. It is
754 -- set when analysis of the stub forces loading of the proper body. If
755 -- expansion of the proper body creates new declarative nodes, they are
756 -- inserted at the point of the corresponding_stub.
758 -- Dcheck_Function (Node5-Sem)
759 -- This field is present in an N_Variant node, It references the entity
760 -- for the discriminant checking function for the variant.
762 -- Debug_Statement (Node3)
763 -- This field is present in an N_Pragma node. It is used only for a Debug
764 -- pragma. The parameter is of the form of an expression, as required by
765 -- the pragma syntax, but is actually a procedure call. To simplify
766 -- semantic processing, the parser creates a copy of the argument
767 -- rearranged into a procedure call statement and places it in the
768 -- Debug_Statement field. Note that this field is considered syntactic
769 -- field, since it is created by the parser.
771 -- Default_Expression (Node5-Sem)
772 -- This field is Empty if there is no default expression. If there is a
773 -- simple default expression (one with no side effects), then this field
774 -- simply contains a copy of the Expression field (both point to the tree
775 -- for the default expression). Default_Expression is used for
776 -- conformance checking.
778 -- Discr_Check_Funcs_Built (Flag11-Sem)
779 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
780 -- discriminant checking functions are constructed. The purpose is to
781 -- avoid attempting to set these functions more than once.
783 -- Do_Accessibility_Check (Flag13-Sem)
784 -- This flag is set on N_Parameter_Specification nodes to indicate
785 -- that an accessibility check is required for the parameter. It is
786 -- not yet decided who takes care of this check (TBD ???).
788 -- Do_Discriminant_Check (Flag13-Sem)
789 -- This flag is set on N_Selected_Component nodes to indicate that a
790 -- discriminant check is required using the discriminant check routine
791 -- associated with the selector. The actual check is generated by the
792 -- expander when processing selected components.
794 -- Do_Division_Check (Flag13-Sem)
795 -- This flag is set on a division operator (/ mod rem) to indicate
796 -- that a zero divide check is required. The actual check is dealt
797 -- with by the backend (all the front end does is to set the flag).
799 -- Do_Length_Check (Flag4-Sem)
800 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
801 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
802 -- is required. It is not determined who deals with this flag (???).
804 -- Do_Overflow_Check (Flag17-Sem)
805 -- This flag is set on an operator where an overflow check is required on
806 -- the operation. The actual check is dealt with by the backend (all the
807 -- front end does is to set the flag). The other cases where this flag is
808 -- used is on a Type_Conversion node and for attribute reference nodes.
809 -- For a type conversion, it means that the conversion is from one base
810 -- type to another, and the value may not fit in the target base type.
811 -- See also the description of Do_Range_Check for this case. The only
812 -- attribute references which use this flag are Pred and Succ, where it
813 -- means that the result should be checked for going outside the base
814 -- range. Note that this flag is not set for modular types.
816 -- Do_Range_Check (Flag9-Sem)
817 -- This flag is set on an expression which appears in a context where a
818 -- range check is required. The target type is clear from the context.
819 -- The contexts in which this flag can appear are the following:
821 -- Right side of an assignment. In this case the target type is
822 -- taken from the left side of the assignment, which is referenced
823 -- by the Name of the N_Assignment_Statement node.
825 -- Subscript expressions in an indexed component. In this case the
826 -- target type is determined from the type of the array, which is
827 -- referenced by the Prefix of the N_Indexed_Component node.
829 -- Argument expression for a parameter, appearing either directly in
830 -- the Parameter_Associations list of a call or as the Expression of an
831 -- N_Parameter_Association node that appears in this list. In either
832 -- case, the check is against the type of the formal. Note that the
833 -- flag is relevant only in IN and IN OUT parameters, and will be
834 -- ignored for OUT parameters, where no check is required in the call,
835 -- and if a check is required on the return, it is generated explicitly
836 -- with a type conversion.
838 -- Initialization expression for the initial value in an object
839 -- declaration. In this case the Do_Range_Check flag is set on
840 -- the initialization expression, and the check is against the
841 -- range of the type of the object being declared.
843 -- The expression of a type conversion. In this case the range check is
844 -- against the target type of the conversion. See also the use of
845 -- Do_Overflow_Check on a type conversion. The distinction is that the
846 -- overflow check protects against a value that is outside the range of
847 -- the target base type, whereas a range check checks that the
848 -- resulting value (which is a value of the base type of the target
849 -- type), satisfies the range constraint of the target type.
851 -- Note: when a range check is required in contexts other than those
852 -- listed above (e.g. in a return statement), an additional type
853 -- conversion node is introduced to represent the required check.
855 -- Do_Storage_Check (Flag17-Sem)
856 -- This flag is set in an N_Allocator node to indicate that a storage
857 -- check is required for the allocation, or in an N_Subprogram_Body node
858 -- to indicate that a stack check is required in the subprogram prolog.
859 -- The N_Allocator case is handled by the routine that expands the call
860 -- to the runtime routine. The N_Subprogram_Body case is handled by the
861 -- backend, and all the semantics does is set the flag.
863 -- Do_Tag_Check (Flag13-Sem)
864 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
865 -- N_Procedure_Call_Statement, N_Type_Conversion,
866 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
867 -- node to indicate that the tag check can be suppressed. It is not
868 -- yet decided how this flag is used (TBD ???).
870 -- Elaborate_Present (Flag4-Sem)
871 -- This flag is set in the N_With_Clause node to indicate that pragma
872 -- Elaborate pragma appears for the with'ed units.
874 -- Elaborate_All_Desirable (Flag9-Sem)
875 -- This flag is set in the N_With_Clause mode to indicate that the static
876 -- elaboration processing has determined that an Elaborate_All pragma is
877 -- desirable for correct elaboration for this unit.
879 -- Elaborate_All_Present (Flag14-Sem)
880 -- This flag is set in the N_With_Clause node to indicate that a
881 -- pragma Elaborate_All pragma appears for the with'ed units.
883 -- Elaborate_Desirable (Flag11-Sem)
884 -- This flag is set in the N_With_Clause mode to indicate that the static
885 -- elaboration processing has determined that an Elaborate pragma is
886 -- desirable for correct elaboration for this unit.
888 -- Elaboration_Boolean (Node2-Sem)
889 -- This field is present in function and procedure specification nodes.
890 -- If set, it points to the entity for a Boolean flag that must be tested
891 -- for certain calls to check for access before elaboration. See body of
892 -- Sem_Elab for further details. This field is Empty if no elaboration
893 -- boolean is required.
895 -- Else_Actions (List3-Sem)
896 -- This field is present in conditional expression nodes. During code
897 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
898 -- actions at an appropriate place in the tree to get elaborated at the
899 -- right time. For conditional expressions, we have to be sure that the
900 -- actions for the Else branch are only elaborated if the condition is
901 -- False. The Else_Actions field is used as a temporary parking place for
902 -- these actions. The final tree is always rewritten to eliminate the
903 -- need for this field, so in the tree passed to Gigi, this field is
904 -- always set to No_List.
906 -- Enclosing_Variant (Node2-Sem)
907 -- This field is present in the N_Variant node and identifies the Node_Id
908 -- corresponding to the immediately enclosing variant when the variant is
909 -- nested, and N_Empty otherwise. Set during semantic processing of the
910 -- variant part of a record type.
912 -- Entity (Node4-Sem)
913 -- Appears in all direct names (identifiers, character literals, and
914 -- operator symbols), as well as expanded names, and attributes that
915 -- denote entities, such as 'Class. Points to entity for corresponding
916 -- defining occurrence. Set after name resolution. For identifiers in a
917 -- WITH list, the corresponding defining occurrence is in a separately
918 -- compiled file, and Entity must be set by the library Load procedure.
920 -- Note: During name resolution, the value in Entity may be temporarily
921 -- incorrect (e.g. during overload resolution, Entity is initially set to
922 -- the first possible correct interpretation, and then later modified if
923 -- necessary to contain the correct value after resolution).
925 -- Note: This field overlaps Associated_Node, which is used during
926 -- generic processing (see Sem_Ch12 for details). Note also that in
927 -- generic templates, this means that the Entity field does not always
928 -- point to an Entity. Since the back end is expected to ignore generic
929 -- templates, this is harmless.
931 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
932 -- It is used only for stream attributes definition clauses. In this
933 -- case, it denotes a (possibly dummy) subprogram entity that is declared
934 -- conceptually at the point of the clause. Thus the visibility of the
935 -- attribute definition clause (in the sense of 8.3(23) as amended by
936 -- AI-195) can be checked by testing the visibility of that subprogram.
938 -- Note: Normally the Entity field of an identifier points to the entity
939 -- for the corresponding defining identifier, and hence the Chars field
940 -- of an identifier will match the Chars field of the entity. However,
941 -- there is no requirement that these match, and there are obscure cases
942 -- of generated code where they do not match.
944 -- Entity_Or_Associated_Node (Node4-Sem)
945 -- A synonym for both Entity and Associated_Node. Used by convention in
946 -- the code when referencing this field in cases where it is not known
947 -- whether the field contains an Entity or an Associated_Node.
950 -- Appears in all expression nodes, all direct names, and all entities.
951 -- Points to the entity for the related type. Set after type resolution.
952 -- Normally this is the actual subtype of the expression. However, in
953 -- certain contexts such as the right side of an assignment, subscripts,
954 -- arguments to calls, returned value in a function, initial value etc.
955 -- it is the desired target type. In the event that this is different
956 -- from the actual type, the Do_Range_Check flag will be set if a range
957 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
958 -- points to an essentially arbitrary choice from the possible set of
961 -- Exception_Junk (Flag8-Sem)
962 -- This flag is set in a various nodes appearing in a statement sequence
963 -- to indicate that the corresponding node is an artifact of the
964 -- generated code for exception handling, and should be ignored when
965 -- analyzing the control flow of the relevant sequence of statements
966 -- (e.g. to check that it does not end with a bad return statement).
968 -- Exception_Label (Node5-Sem)
969 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
970 -- to be used for transforming the corresponding exception into a goto,
971 -- or contains Empty, if this exception is not to be transformed. Also
972 -- appears in N_Exception_Handler nodes, where, if set, it indicates
973 -- that there may be a local raise for the handler, so that expansion
974 -- to allow a goto is required (and this field contains the label for
975 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
977 -- Expansion_Delayed (Flag11-Sem)
978 -- Set on aggregates and extension aggregates that need a top-down rather
979 -- than bottom-up expansion. Typically aggregate expansion happens bottom
980 -- up. For nested aggregates the expansion is delayed until the enclosing
981 -- aggregate itself is expanded, e.g. in the context of a declaration. To
982 -- delay it we set this flag. This is done to avoid creating a temporary
983 -- for each level of a nested aggregates, and also to prevent the
984 -- premature generation of constraint checks. This is also a requirement
985 -- if we want to generate the proper attachment to the internal
986 -- finalization lists (for record with controlled components). Top down
987 -- expansion of aggregates is also used for in-place array aggregate
988 -- assignment or initialization. When the full context is known, the
989 -- target of the assignment or initialization is used to generate the
990 -- left-hand side of individual assignment to each sub-component.
992 -- First_Inlined_Subprogram (Node3-Sem)
993 -- Present in the N_Compilation_Unit node for the main program. Points
994 -- to a chain of entities for subprograms that are to be inlined. The
995 -- Next_Inlined_Subprogram field of these entities is used as a link
996 -- pointer with Empty marking the end of the list. This field is Empty
997 -- if there are no inlined subprograms or inlining is not active.
999 -- First_Named_Actual (Node4-Sem)
1000 -- Present in procedure call statement and function call nodes, and also
1001 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1002 -- named parameter where parameters are ordered by declaration order (as
1003 -- opposed to the actual order in the call which may be different due to
1004 -- named associations). Note: this field points to the explicit actual
1005 -- parameter itself, not the N_Parameter_Association node (its parent).
1007 -- First_Real_Statement (Node2-Sem)
1008 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1009 -- Empty. Used only when declarations are moved into the statement part
1010 -- of a construct as a result of wrapping an AT END handler that is
1011 -- required to cover the declarations. In this case, this field is used
1012 -- to remember the location in the statements list of the first real
1013 -- statement, i.e. the statement that used to be first in the statement
1014 -- list before the declarations were prepended.
1016 -- First_Subtype_Link (Node5-Sem)
1017 -- Present in N_Freeze_Entity node for an anonymous base type that is
1018 -- implicitly created by the declaration of a first subtype. It points
1019 -- to the entity for the first subtype.
1021 -- Float_Truncate (Flag11-Sem)
1022 -- A flag present in type conversion nodes. This is used for float to
1023 -- integer conversions where truncation is required rather than rounding.
1024 -- Note that Gigi does not handle type conversions from real to integer
1025 -- with rounding (see Expand_N_Type_Conversion).
1027 -- Forwards_OK (Flag5-Sem)
1028 -- A flag present in the N_Assignment_Statement node. It is used only
1029 -- if the type being assigned is an array type, and is set if analysis
1030 -- determines that it is definitely safe to do the copy forwards, i.e.
1031 -- starting at the lowest addressed element. This is the case if either
1032 -- the operands do not overlap, or they may overlap, but if they do,
1033 -- then the left operand is at a lower address than the right operand.
1035 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1036 -- means that the front end could not determine that either direction is
1037 -- definitely safe, and a runtime check may be required if the backend
1038 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1039 -- set, it means that the front end can assure no overlap of operands.
1041 -- From_At_End (Flag4-Sem)
1042 -- This flag is set on an N_Raise_Statement node if it corresponds to
1043 -- the reraise statement generated as the last statement of an AT END
1044 -- handler when SJLJ exception handling is active. It is used to stop
1045 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1046 -- because if the restriction is set, the reraise is not generated.
1048 -- From_At_Mod (Flag4-Sem)
1049 -- This flag is set on the attribute definition clause node that is
1050 -- generated by a transformation of an at mod phrase in a record
1051 -- representation clause. This is used to give slightly different (Ada 83
1052 -- compatible) semantics to such a clause, namely it is used to specify a
1053 -- minimum acceptable alignment for the base type and all subtypes. In
1054 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1055 -- must be a multiple of the given value, and the representation clause
1056 -- is considered to be type specific instead of subtype specific.
1058 -- From_Default (Flag6-Sem)
1059 -- This flag is set on the subprogram renaming declaration created in an
1060 -- instance for a formal subprogram, when the formal is declared with a
1061 -- box, and there is no explicit actual. If the flag is present, the
1062 -- declaration is treated as an implicit reference to the formal in the
1065 -- Generic_Parent (Node5-Sem)
1066 -- Generic_Parent is defined on declaration nodes that are instances. The
1067 -- value of Generic_Parent is the generic entity from which the instance
1068 -- is obtained. Generic_Parent is also defined for the renaming
1069 -- declarations and object declarations created for the actuals in an
1070 -- instantiation. The generic parent of such a declaration is the
1071 -- corresponding generic association in the Instantiation node.
1073 -- Generic_Parent_Type (Node4-Sem)
1074 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1075 -- actuals of formal private and derived types. Within the instance, the
1076 -- operations on the actual are those inherited from the parent. For a
1077 -- formal private type, the parent type is the generic type itself. The
1078 -- Generic_Parent_Type is also used in an instance to determine whether a
1079 -- private operation overrides an inherited one.
1081 -- Handler_List_Entry (Node2-Sem)
1082 -- This field is present in N_Object_Declaration nodes. It is set only
1083 -- for the Handler_Record entry generated for an exception in zero cost
1084 -- exception handling mode. It references the corresponding item in the
1085 -- handler list, and is used to delete this entry if the corresponding
1086 -- handler is deleted during optimization. For further details on why
1087 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1089 -- Has_No_Elaboration_Code (Flag17-Sem)
1090 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1091 -- or not elaboration code is present for this unit. It is initially set
1092 -- true for subprogram specs and bodies and for all generic units and
1093 -- false for non-generic package specs and bodies. Gigi may set the flag
1094 -- in the non-generic package case if it determines that no elaboration
1095 -- code is generated. Note that this flag is not related to the
1096 -- Is_Preelaborated status, there can be preelaborated packages that
1097 -- generate elaboration code, and non-preelaborated packages which do
1098 -- not generate elaboration code.
1100 -- Has_Priority_Pragma (Flag6-Sem)
1101 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1102 -- N_Protected_Definition nodes to flag the presence of either a Priority
1103 -- or Interrupt_Priority pragma in the declaration sequence (public or
1104 -- private in the task and protected cases)
1106 -- Has_Private_View (Flag11-Sem)
1107 -- A flag present in generic nodes that have an entity, to indicate that
1108 -- the node has a private type. Used to exchange private and full
1109 -- declarations if the visibility at instantiation is different from the
1110 -- visibility at generic definition.
1112 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1113 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1114 -- flag the presence of a pragma Relative_Deadline.
1116 -- Has_Self_Reference (Flag13-Sem)
1117 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1118 -- of the expressions contains an access attribute reference to the
1119 -- enclosing type. Such a self-reference can only appear in default-
1120 -- initialized aggregate for a record type.
1122 -- Has_Storage_Size_Pragma (Flag5-Sem)
1123 -- A flag present in an N_Task_Definition node to flag the presence of a
1124 -- Storage_Size pragma.
1126 -- Has_Task_Info_Pragma (Flag7-Sem)
1127 -- A flag present in an N_Task_Definition node to flag the presence of a
1128 -- Task_Info pragma. Used to detect duplicate pragmas.
1130 -- Has_Task_Name_Pragma (Flag8-Sem)
1131 -- A flag present in N_Task_Definition nodes to flag the presence of a
1132 -- Task_Name pragma in the declaration sequence for the task.
1134 -- Has_Wide_Character (Flag11-Sem)
1135 -- Present in string literals, set if any wide character (i.e. character
1136 -- code outside the Character range) appears in the string.
1138 -- Hidden_By_Use_Clause (Elist4-Sem)
1139 -- An entity list present in use clauses that appear within
1140 -- instantiations. For the resolution of local entities, entities
1141 -- introduced by these use clauses have priority over global ones, and
1142 -- outer entities must be explicitly hidden/restored on exit.
1144 -- Implicit_With (Flag16-Sem)
1145 -- This flag is set in the N_With_Clause node that is implicitly
1146 -- generated for runtime units that are loaded by the expander, and also
1147 -- for package System, if it is loaded implicitly by a use of the
1148 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1151 -- Includes_Infinities (Flag11-Sem)
1152 -- This flag is present in N_Range nodes. It is set for the range of
1153 -- unconstrained float types defined in Standard, which include not only
1154 -- the given range of values, but also legitimately can include infinite
1155 -- values. This flag is false for any float type for which an explicit
1156 -- range is given by the programmer, even if that range is identical to
1157 -- the range for Float.
1159 -- Instance_Spec (Node5-Sem)
1160 -- This field is present in generic instantiation nodes, and also in
1161 -- formal package declaration nodes (formal package declarations are
1162 -- treated in a manner very similar to package instantiations). It points
1163 -- to the node for the spec of the instance, inserted as part of the
1164 -- semantic processing for instantiations in Sem_Ch12.
1166 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1167 -- A flag set in a Block_Statement node to indicate that it is the
1168 -- expansion of an asynchronous entry call. Such a block needs cleanup
1169 -- handler to assure that the call is cancelled.
1171 -- Is_Component_Left_Opnd (Flag13-Sem)
1172 -- Is_Component_Right_Opnd (Flag14-Sem)
1173 -- Present in concatenation nodes, to indicate that the corresponding
1174 -- operand is of the component type of the result. Used in resolving
1175 -- concatenation nodes in instances.
1177 -- Is_Controlling_Actual (Flag16-Sem)
1178 -- This flag is set on in an expression that is a controlling argument in
1179 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1180 -- details of its use.
1182 -- Is_Dynamic_Coextension (Flag18-Sem)
1183 -- Present in allocator nodes, to indicate that this is an allocator
1184 -- for an access discriminant of a dynamically allocated object. The
1185 -- coextension must be deallocated and finalized at the same time as
1186 -- the enclosing object.
1188 -- Is_Entry_Barrier_Function (Flag8-Sem)
1189 -- This flag is set in an N_Subprogram_Body node which is the expansion
1190 -- of an entry barrier from a protected entry body. It is used for the
1191 -- circuitry checking for incorrect use of Current_Task.
1193 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1194 -- This flag is set in an N_Function_Call node to indicate that the extra
1195 -- actuals to support a build-in-place style of call have been added to
1198 -- Is_In_Discriminant_Check (Flag11-Sem)
1199 -- This flag is present in a selected component, and is used to indicate
1200 -- that the reference occurs within a discriminant check. The
1201 -- significance is that optimizations based on assuming that the
1202 -- discriminant check has a correct value cannot be performed in this
1203 -- case (or the discriminant check may be optimized away!)
1205 -- Is_Machine_Number (Flag11-Sem)
1206 -- This flag is set in an N_Real_Literal node to indicate that the value
1207 -- is a machine number. This avoids some unnecessary cases of converting
1208 -- real literals to machine numbers.
1210 -- Is_Null_Loop (Flag16-Sem)
1211 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1212 -- can be determined to be null at compile time. This is used to remove
1213 -- the loop entirely at expansion time.
1215 -- Is_Overloaded (Flag5-Sem)
1216 -- A flag present in all expression nodes. Used temporarily during
1217 -- overloading determination. The setting of this flag is not relevant
1218 -- once overloading analysis is complete.
1220 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1221 -- A flag present only in N_Op_Expon nodes. It is set when the
1222 -- exponentiation is of the form 2 ** N, where the type of N is an
1223 -- unsigned integral subtype whose size does not exceed the size of
1224 -- Standard_Integer (i.e. a type that can be safely converted to
1225 -- Natural), and the exponentiation appears as the right operand of an
1226 -- integer multiplication or an integer division where the dividend is
1227 -- unsigned. It is also required that overflow checking is off for both
1228 -- the exponentiation and the multiply/divide node. If this set of
1229 -- conditions holds, and the flag is set, then the division or
1230 -- multiplication can be (and is) converted to a shift.
1232 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1233 -- A flag set in a Subprogram_Body block to indicate that it is the
1234 -- implementation of a protected subprogram. Such a body needs cleanup
1235 -- handler to make sure that the associated protected object is unlocked
1236 -- when the subprogram completes.
1238 -- Is_Static_Coextension (Flag14-Sem)
1239 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1240 -- of an object allocated on the stack rather than the heap.
1242 -- Is_Static_Expression (Flag6-Sem)
1243 -- Indicates that an expression is a static expression (RM 4.9). See spec
1244 -- of package Sem_Eval for full details on the use of this flag.
1246 -- Is_Subprogram_Descriptor (Flag16-Sem)
1247 -- Present in N_Object_Declaration, and set only for the object
1248 -- declaration generated for a subprogram descriptor in fast exception
1249 -- mode. See Exp_Ch11 for details of use.
1251 -- Is_Task_Allocation_Block (Flag6-Sem)
1252 -- A flag set in a Block_Statement node to indicate that it is the
1253 -- expansion of a task allocator, or the allocator of an object
1254 -- containing tasks. Such a block requires a cleanup handler to call
1255 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1256 -- allocated but not activated when the allocator completes abnormally.
1258 -- Is_Task_Master (Flag5-Sem)
1259 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1260 -- indicate that the construct is a task master (i.e. has declared tasks
1261 -- or declares an access to a task type).
1263 -- Itype (Node1-Sem)
1264 -- Used in N_Itype_Reference node to reference an itype for which it is
1265 -- important to ensure that it is defined. See description of this node
1266 -- for further details.
1268 -- Kill_Range_Check (Flag11-Sem)
1269 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1270 -- result should not be subjected to range checks. This is used for the
1271 -- implementation of Normalize_Scalars.
1273 -- Label_Construct (Node2-Sem)
1274 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1275 -- N_Block_Statement or N_Loop_Statement node to which the label
1276 -- declaration applies. This is not currently used in the compiler
1277 -- itself, but it is useful in the implementation of ASIS queries.
1278 -- This field is left empty for the special labels generated as part
1279 -- of expanding raise statements with a local exception handler.
1281 -- Library_Unit (Node4-Sem)
1282 -- In a stub node, Library_Unit points to the compilation unit node of
1283 -- the corresponding subunit.
1285 -- In a with clause node, Library_Unit points to the spec of the with'ed
1288 -- In a compilation unit node, the usage depends on the unit type:
1290 -- For a subprogram body, Library_Unit points to the compilation unit
1291 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1292 -- case it points to itself.
1294 -- For a package body, Library_Unit points to the compilation unit of
1295 -- the corresponding package spec.
1297 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1298 -- points to the compilation unit node of the corresponding body, if
1299 -- inlining is active.
1301 -- For a generic declaration, Library_Unit points to the compilation
1302 -- unit node of the corresponding generic body.
1304 -- For a subunit, Library_Unit points to the compilation unit node of
1307 -- Note that this field is not used to hold the parent pointer for child
1308 -- unit (which might in any case need to use it for some other purpose as
1309 -- described above). Instead for a child unit, implicit with's are
1310 -- generated for all parents.
1312 -- Local_Raise_Statements (Elist1)
1313 -- This field is present in exception handler nodes. It is set to
1314 -- No_Elist in the normal case. If there is at least one raise statement
1315 -- which can potentially be handled as a local raise, then this field
1316 -- points to a list of raise nodes, which are calls to a routine to raise
1317 -- an exception. These are raise nodes which can be optimized into gotos
1318 -- if the handler turns out to meet the conditions which permit this
1319 -- transformation. Note that this does NOT include instances of the
1320 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1321 -- handled by the back end (using the N_Push/N_Pop mechanism).
1323 -- Loop_Actions (List2-Sem)
1324 -- A list present in Component_Association nodes in array aggregates.
1325 -- Used to collect actions that must be executed within the loop because
1326 -- they may need to be evaluated anew each time through.
1328 -- Limited_View_Installed (Flag18-Sem)
1329 -- Present in With_Clauses and in package specifications. If set on
1330 -- with_clause, it indicates that this clause has created the current
1331 -- limited view of the designated package. On a package specification, it
1332 -- indicates that the limited view has already been created because the
1333 -- package is mentioned in a limited_with_clause in the closure of the
1334 -- unit being compiled.
1336 -- Local_Raise_Not_OK (Flag7-Sem)
1337 -- Present in N_Exception_Handler nodes. Set if the handler contains
1338 -- a construct (reraise statement, or call to subprogram in package
1339 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1340 -- for a local raise (one that could otherwise be converted to a goto).
1342 -- Must_Be_Byte_Aligned (Flag14-Sem)
1343 -- This flag is present in N_Attribute_Reference nodes. It can be set
1344 -- only for the Address and Unrestricted_Access attributes. If set it
1345 -- means that the object for which the address/access is given must be on
1346 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1347 -- of the object is to be made before taking the address (this copy is in
1348 -- the current scope on the stack frame). This is used for certain cases
1349 -- of code generated by the expander that passes parameters by address.
1351 -- The reason the copy is not made by the front end is that the back end
1352 -- has more information about type layout and may be able to (but is not
1353 -- guaranteed to) prevent making unnecessary copies.
1355 -- Must_Not_Freeze (Flag8-Sem)
1356 -- A flag present in all expression nodes. Normally expressions cause
1357 -- freezing as described in the RM. If this flag is set, then this is
1358 -- inhibited. This is used by the analyzer and expander to label nodes
1359 -- that are created by semantic analysis or expansion and which must not
1360 -- cause freezing even though they normally would. This flag is also
1361 -- present in an N_Subtype_Indication node, since we also use these in
1362 -- calls to Freeze_Expression.
1364 -- Next_Entity (Node2-Sem)
1365 -- Present in defining identifiers, defining character literals and
1366 -- defining operator symbols (i.e. in all entities). The entities of a
1367 -- scope are chained, and this field is used as the forward pointer for
1368 -- this list. See Einfo for further details.
1370 -- Next_Named_Actual (Node4-Sem)
1371 -- Present in parameter association node. Set during semantic analysis to
1372 -- point to the next named parameter, where parameters are ordered by
1373 -- declaration order (as opposed to the actual order in the call, which
1374 -- may be different due to named associations). Not that this field
1375 -- points to the explicit actual parameter itself, not to the
1376 -- N_Parameter_Association node (its parent).
1378 -- Next_Pragma (Node1-Sem)
1379 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1380 -- nodes. Currently used for two purposes:
1382 -- Create a list of linked Check_Policy pragmas. The head of this list
1383 -- is stored in Opt.Check_Policy_List (which has further details).
1385 -- Used by processing for Pre/Postcondition pragmas to store a list of
1386 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1389 -- Next_Rep_Item (Node5-Sem)
1390 -- Present in pragma nodes and attribute definition nodes. Used to link
1391 -- representation items that apply to an entity. See description of
1392 -- First_Rep_Item field in Einfo for full details.
1394 -- Next_Use_Clause (Node3-Sem)
1395 -- While use clauses are active during semantic processing, they are
1396 -- chained from the scope stack entry, using Next_Use_Clause as a link
1397 -- pointer, with Empty marking the end of the list. The head pointer is
1398 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1399 -- processing (i.e. when Gigi sees the tree, the contents of this field
1400 -- is undefined and should not be read).
1402 -- No_Ctrl_Actions (Flag7-Sem)
1403 -- Present in N_Assignment_Statement to indicate that no finalize nor
1404 -- adjust should take place on this assignment even though the rhs is
1405 -- controlled. This is used in init procs and aggregate expansions where
1406 -- the generated assignments are more initialisations than real
1409 -- No_Elaboration_Check (Flag14-Sem)
1410 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1411 -- that no elaboration check is needed on the call, because it appears in
1412 -- the context of a local Suppress pragma. This is used on calls within
1413 -- task bodies, where the actual elaboration checks are applied after
1414 -- analysis, when the local scope stack is not present.
1416 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1417 -- Present in N_With_Clause nodes. Set if the with clause is on the
1418 -- package or subprogram spec where the main unit is the corresponding
1419 -- body, and no entities of the with'ed unit are referenced by the spec
1420 -- (an entity may still be referenced in the body, so this flag is used
1421 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1424 -- No_Initialization (Flag13-Sem)
1425 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1426 -- object must not be initialized (by Initialize or call to an init
1427 -- proc). This is needed for controlled aggregates. When the Object
1428 -- declaration has an expression, this flag means that this expression
1429 -- should not be taken into account (needed for in place initialization
1430 -- with aggregates).
1432 -- No_Truncation (Flag17-Sem)
1433 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1434 -- only if the RM_Size of the source is greater than the RM_Size of the
1435 -- target for scalar operands. Normally in such a case we truncate some
1436 -- higher order bits of the source, and then sign/zero extend the result
1437 -- to form the output value. But if this flag is set, then we do not do
1438 -- any truncation, so for example, if an 8 bit input is converted to 5
1439 -- bit result which is in fact stored in 8 bits, then the high order
1440 -- three bits of the target result will be copied from the source. This
1441 -- is used for properly setting out of range values for use by pragmas
1442 -- Initialize_Scalars and Normalize_Scalars.
1444 -- Original_Discriminant (Node2-Sem)
1445 -- Present in identifiers. Used in references to discriminants that
1446 -- appear in generic units. Because the names of the discriminants may be
1447 -- different in an instance, we use this field to recover the position of
1448 -- the discriminant in the original type, and replace it with the
1449 -- discriminant at the same position in the instantiated type.
1451 -- Original_Entity (Node2-Sem)
1452 -- Present in numeric literals. Used to denote the named number that has
1453 -- been constant-folded into the given literal. If literal is from
1454 -- source, or the result of some other constant-folding operation, then
1455 -- Original_Entity is empty. This field is needed to handle properly
1456 -- named numbers in generic units, where the Associated_Node field
1457 -- interferes with the Entity field, making it impossible to preserve the
1458 -- original entity at the point of instantiation (ASIS problem).
1460 -- Others_Discrete_Choices (List1-Sem)
1461 -- When a case statement or variant is analyzed, the semantic checks
1462 -- determine the actual list of choices that correspond to an others
1463 -- choice. This list is materialized for later use by the expander and
1464 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1465 -- this materialized list of choices, which is in standard format for a
1466 -- list of discrete choices, except that of course it cannot contain an
1467 -- N_Others_Choice entry.
1469 -- Parameter_List_Truncated (Flag17-Sem)
1470 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1471 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1472 -- a result of a First_Optional_Parameter specification in an
1473 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1474 -- The truncation is done by the expander by removing trailing parameters
1475 -- from the argument list, in accordance with the set of rules allowing
1476 -- such parameter removal. In particular, parameters can be removed
1477 -- working from the end of the parameter list backwards up to and
1478 -- including the entry designated by First_Optional_Parameter in the
1479 -- Import pragma. Parameters can be removed if they are implicit and the
1480 -- default value is a known-at-compile-time value, including the use of
1481 -- the Null_Parameter attribute, or if explicit parameter values are
1482 -- present that match the corresponding defaults.
1484 -- Parent_Spec (Node4-Sem)
1485 -- For a library unit that is a child unit spec (package or subprogram
1486 -- declaration, generic declaration or instantiation, or library level
1487 -- rename, this field points to the compilation unit node for the parent
1488 -- package specification. This field is Empty for library bodies (the
1489 -- parent spec in this case can be found from the corresponding spec).
1491 -- PPC_Enabled (Flag5-Sem)
1492 -- Present in N_Pragma nodes. This flag is relevant only for precondition
1493 -- and postcondition nodes. It is true if the check corresponding to the
1494 -- pragma type is enabled at the point where the pragma appears.
1496 -- Present_Expr (Uint3-Sem)
1497 -- Present in an N_Variant node. This has a meaningful value only after
1498 -- Gigi has back annotated the tree with representation information. At
1499 -- this point, it contains a reference to a gcc expression that depends
1500 -- on the values of one or more discriminants. Give a set of discriminant
1501 -- values, this expression evaluates to False (zero) if variant is not
1502 -- present, and True (non-zero) if it is present. See unit Repinfo for
1503 -- further details on gigi back annotation. This field is used during
1504 -- ASIS processing (data decomposition annex) to determine if a field is
1507 -- Print_In_Hex (Flag13-Sem)
1508 -- Set on an N_Integer_Literal node to indicate that the value should be
1509 -- printed in hexadecimal in the sprint listing. Has no effect on
1510 -- legality or semantics of program, only on the displayed output. This
1511 -- is used to clarify output from the packed array cases.
1513 -- Procedure_To_Call (Node2-Sem)
1514 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1515 -- and N_Extended_Return_Statement nodes. References the entity for the
1516 -- declaration of the procedure to be called to accomplish the required
1517 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1518 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1519 -- allocating the return value), and for the Deallocate procedure in the
1520 -- case of N_Free_Statement.
1522 -- Raises_Constraint_Error (Flag7-Sem)
1523 -- Set on an expression whose evaluation will definitely fail constraint
1524 -- error check. In the case of static expressions, this flag must be set
1525 -- accurately (and if it is set, the expression is typically illegal
1526 -- unless it appears as a non-elaborated branch of a short-circuit form).
1527 -- For a non-static expression, this flag may be set whenever an
1528 -- expression (e.g. an aggregate) is known to raise constraint error. If
1529 -- set, the expression definitely will raise CE if elaborated at runtime.
1530 -- If not set, the expression may or may not raise CE. In other words, on
1531 -- static expressions, the flag is set accurately, on non-static
1532 -- expressions it is set conservatively.
1534 -- Redundant_Use (Flag13-Sem)
1535 -- Present in nodes that can appear as an operand in a use clause or use
1536 -- type clause (identifiers, expanded names, attribute references). Set
1537 -- to indicate that a use is redundant (and therefore need not be undone
1540 -- Renaming_Exception (Node2-Sem)
1541 -- Present in N_Exception_Declaration node. Used to point back to the
1542 -- exception renaming for an exception declared within a subprogram.
1543 -- What happens is that an exception declared in a subprogram is moved
1544 -- to the library level with a unique name, and the original exception
1545 -- becomes a renaming. This link from the library level exception to the
1546 -- renaming declaration allows registering of the proper exception name.
1548 -- Return_Statement_Entity (Node5-Sem)
1549 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1550 -- Points to an E_Return_Statement representing the return statement.
1552 -- Return_Object_Declarations (List3)
1553 -- Present in N_Extended_Return_Statement.
1554 -- Points to a list initially containing a single
1555 -- N_Object_Declaration representing the return object.
1556 -- We use a list (instead of just a pointer to the object decl)
1557 -- because Analyze wants to insert extra actions on this list.
1559 -- Rounded_Result (Flag18-Sem)
1560 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1561 -- Used in the fixed-point cases to indicate that the result must be
1562 -- rounded as a result of the use of the 'Round attribute. Also used for
1563 -- integer N_Op_Divide nodes to indicate that the result should be
1564 -- rounded to the nearest integer (breaking ties away from zero), rather
1565 -- than truncated towards zero as usual. These rounded integer operations
1566 -- are the result of expansion of rounded fixed-point divide, conversion
1567 -- and multiplication operations.
1569 -- Scope (Node3-Sem)
1570 -- Present in defining identifiers, defining character literals and
1571 -- defining operator symbols (i.e. in all entities). The entities of a
1572 -- scope all use this field to reference the corresponding scope entity.
1573 -- See Einfo for further details.
1575 -- Shift_Count_OK (Flag4-Sem)
1576 -- A flag present in shift nodes to indicate that the shift count is
1577 -- known to be in range, i.e. is in the range from zero to word length
1578 -- minus one. If this flag is not set, then the shift count may be
1579 -- outside this range, i.e. larger than the word length, and the code
1580 -- must ensure that such shift counts give the appropriate result.
1582 -- Source_Type (Node1-Sem)
1583 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1584 -- source type entity for the unchecked conversion instantiation
1585 -- which gigi must do size validation for.
1587 -- Static_Processing_OK (Flag4-Sem)
1588 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1589 -- flag is set, the full value of the aggregate can be determined at
1590 -- compile time and the aggregate can be passed as is to the back-end.
1591 -- In this event it is irrelevant whether this flag is set or not.
1592 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1593 -- Static_Processing_OK is set, the aggregate can (but need not) be
1594 -- converted into a compile time known aggregate by the expander. See
1595 -- Sem_Aggr for the specific conditions under which an aggregate has its
1596 -- Static_Processing_OK flag set.
1598 -- Storage_Pool (Node1-Sem)
1599 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1600 -- and N_Extended_Return_Statement nodes. References the entity for the
1601 -- storage pool to be used for the allocate or free call or for the
1602 -- allocation of the returned value from function. Empty indicates that
1603 -- the global default pool is to be used. Note that in the case
1604 -- of a return statement, this field is set only if the function returns
1605 -- value of a type whose size is not known at compile time on the
1608 -- Suppress_Loop_Warnings (Flag17-Sem)
1609 -- Used in N_Loop_Statement node to indicate that warnings within the
1610 -- body of the loop should be suppressed. This is set when the range
1611 -- of a FOR loop is known to be null, or is probably null (loop would
1612 -- only execute if invalid values are present).
1614 -- Target_Type (Node2-Sem)
1615 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1616 -- type entity for the unchecked conversion instantiation which gigi must
1617 -- do size validation for.
1619 -- Then_Actions (List3-Sem)
1620 -- This field is present in conditional expression nodes. During code
1621 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1622 -- actions at an appropriate place in the tree to get elaborated at the
1623 -- right time. For conditional expressions, we have to be sure that the
1624 -- actions for the Then branch are only elaborated if the condition is
1625 -- True. The Then_Actions field is used as a temporary parking place for
1626 -- these actions. The final tree is always rewritten to eliminate the
1627 -- need for this field, so in the tree passed to Gigi, this field is
1628 -- always set to No_List.
1630 -- Treat_Fixed_As_Integer (Flag14-Sem)
1631 -- This flag appears in operator nodes for divide, multiply, mod and rem
1632 -- on fixed-point operands. It indicates that the operands are to be
1633 -- treated as integer values, ignoring small values. This flag is only
1634 -- set as a result of expansion of fixed-point operations. Typically a
1635 -- fixed-point multiplication in the source generates subsidiary
1636 -- multiplication and division operations that work with the underlying
1637 -- integer values and have this flag set. Note that this flag is not
1638 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1639 -- in these cases it is always the case that fixed is treated as integer.
1640 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1641 -- leave such nodes alone, and whoever makes them must set the correct
1644 -- TSS_Elist (Elist3-Sem)
1645 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1646 -- entries for each TSS (type support subprogram) associated with the
1647 -- frozen type. The elements of the list are the entities for the
1648 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1649 -- if there are no type support subprograms for the type or if the freeze
1650 -- node is not for a type.
1652 -- Unreferenced_In_Spec (Flag7-Sem)
1653 -- Present in N_With_Clause nodes. Set if the with clause is on the
1654 -- package or subprogram spec where the main unit is the corresponding
1655 -- body, and is not referenced by the spec (it may still be referenced by
1656 -- the body, so this flag is used to generate the proper message (see
1657 -- Sem_Util.Check_Unused_Withs for details)
1659 -- Was_Originally_Stub (Flag13-Sem)
1660 -- This flag is set in the node for a proper body that replaces stub.
1661 -- During the analysis procedure, stubs in some situations get rewritten
1662 -- by the corresponding bodies, and we set this flag to remember that
1663 -- this happened. Note that it is not good enough to rely on the use of
1664 -- Original_Node here because of the case of nested instantiations where
1665 -- the substituted node can be copied.
1667 -- Zero_Cost_Handling (Flag5-Sem)
1668 -- This flag is set in all handled sequence of statement and exception
1669 -- handler nodes if exceptions are to be handled using the zero-cost
1670 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1671 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1672 -- to do for such a handler is simply to put the code in the handler
1673 -- somewhere. The front end has generated all necessary labels.
1675 --------------------------------------------------
1676 -- Note on Use of End_Label and End_Span Fields --
1677 --------------------------------------------------
1679 -- Several constructs have end lines:
1681 -- Loop Statement end loop [loop_IDENTIFIER];
1682 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1683 -- Task Definition end [task_IDENTIFIER]
1684 -- Protected Definition end [protected_IDENTIFIER]
1685 -- Protected Body end [protected_IDENTIFIER]
1687 -- Block Statement end [block_IDENTIFIER];
1688 -- Subprogram Body end [DESIGNATOR];
1689 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1690 -- Task Body end [task_IDENTIFIER];
1691 -- Accept Statement end [entry_IDENTIFIER]];
1692 -- Entry Body end [entry_IDENTIFIER];
1694 -- If Statement end if;
1695 -- Case Statement end case;
1697 -- Record Definition end record;
1698 -- Enumeration Definition );
1700 -- The End_Label and End_Span fields are used to mark the locations of
1701 -- these lines, and also keep track of the label in the case where a label
1704 -- For the first group above, the End_Label field of the corresponding node
1705 -- is used to point to the label identifier. In the case where there is no
1706 -- label in the source, the parser supplies a dummy identifier (with
1707 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1708 -- marks the location of the token following the END token.
1710 -- For the second group, the use of End_Label is similar, but the End_Label
1711 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1712 -- simply because in some cases there is no room in the parent node.
1714 -- For the third group, there is never any label, and instead of using
1715 -- End_Label, we use the End_Span field which gives the location of the
1716 -- token following END, relative to the starting Sloc of the construct,
1717 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1718 -- following the End_Label.
1720 -- The record definition case is handled specially, we treat it as though
1721 -- it required an optional label which is never present, and so the parser
1722 -- always builds a dummy identifier with Comes From Source set False. The
1723 -- reason we do this, rather than using End_Span in this case, is that we
1724 -- want to generate a cross-ref entry for the end of a record, since it
1725 -- represents a scope for name declaration purposes.
1727 -- The enumeration definition case is handled in an exactly similar manner,
1728 -- building a dummy identifier to get a cross-reference.
1730 -- Note: the reason we store the difference as a Uint, instead of storing
1731 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1732 -- distinguished from other types of values, and we count on all general
1733 -- use fields being self describing. To make things easier for clients,
1734 -- note that we provide function End_Location, and procedure
1735 -- Set_End_Location to allow access to the logical value (which is the
1736 -- Source_Ptr value for the end token).
1738 ---------------------
1739 -- Syntactic Nodes --
1740 ---------------------
1742 ---------------------
1743 -- 2.3 Identifier --
1744 ---------------------
1746 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1747 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1749 -- An IDENTIFIER shall not be a reserved word
1751 -- In the Ada grammar identifiers are the bottom level tokens which have
1752 -- very few semantics. Actual program identifiers are direct names. If
1753 -- we were being 100% honest with the grammar, then we would have a node
1754 -- called N_Direct_Name which would point to an identifier. However,
1755 -- that's too many extra nodes, so we just use the N_Identifier node
1756 -- directly as a direct name, and it contains the expression fields and
1757 -- Entity field that correspond to its use as a direct name. In those
1758 -- few cases where identifiers appear in contexts where they are not
1759 -- direct names (pragmas, pragma argument associations, attribute
1760 -- references and attribute definition clauses), the Chars field of the
1761 -- node contains the Name_Id for the identifier name.
1763 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1764 -- cases. First, an incorrect use of a reserved word as an identifier is
1765 -- diagnosed and then treated as a normal identifier. Second, an
1766 -- attribute designator of the form of a reserved word (access, delta,
1767 -- digits, range) is treated as an identifier.
1769 -- Note: The set of letters that is permitted in an identifier depends
1770 -- on the character set in use. See package Csets for full details.
1773 -- Sloc points to identifier
1774 -- Chars (Name1) contains the Name_Id for the identifier
1775 -- Entity (Node4-Sem)
1776 -- Associated_Node (Node4-Sem)
1777 -- Original_Discriminant (Node2-Sem)
1778 -- Redundant_Use (Flag13-Sem)
1779 -- Has_Private_View (Flag11-Sem) (set in generic units)
1780 -- plus fields for expression
1782 --------------------------
1783 -- 2.4 Numeric Literal --
1784 --------------------------
1786 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1788 ----------------------------
1789 -- 2.4.1 Decimal Literal --
1790 ----------------------------
1792 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1794 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1796 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1798 -- Decimal literals appear in the tree as either integer literal nodes
1799 -- or real literal nodes, depending on whether a period is present.
1801 -- Note: literal nodes appear as a result of direct use of literals
1802 -- in the source program, and also as the result of evaluating
1803 -- expressions at compile time. In the latter case, it is possible
1804 -- to construct real literals that have no syntactic representation
1805 -- using the standard literal format. Such literals are listed by
1806 -- Sprint using the notation [numerator / denominator].
1808 -- Note: the value of an integer literal node created by the front end
1809 -- is never outside the range of values of the base type. However, it
1810 -- can be the case that the value is outside the range of the
1811 -- particular subtype. This happens in the case of integer overflows
1812 -- with checks suppressed.
1814 -- N_Integer_Literal
1815 -- Sloc points to literal
1816 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1817 -- has been constant-folded into its literal value.
1818 -- Intval (Uint3) contains integer value of literal
1819 -- plus fields for expression
1820 -- Print_In_Hex (Flag13-Sem)
1823 -- Sloc points to literal
1824 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1825 -- has been constant-folded into its literal value.
1826 -- Realval (Ureal3) contains real value of literal
1827 -- Corresponding_Integer_Value (Uint4-Sem)
1828 -- Is_Machine_Number (Flag11-Sem)
1829 -- plus fields for expression
1831 --------------------------
1832 -- 2.4.2 Based Literal --
1833 --------------------------
1835 -- BASED_LITERAL ::=
1836 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1840 -- BASED_NUMERAL ::=
1841 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1843 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1845 -- Based literals appear in the tree as either integer literal nodes
1846 -- or real literal nodes, depending on whether a period is present.
1848 ----------------------------
1849 -- 2.5 Character Literal --
1850 ----------------------------
1852 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1854 -- N_Character_Literal
1855 -- Sloc points to literal
1856 -- Chars (Name1) contains the Name_Id for the identifier
1857 -- Char_Literal_Value (Uint2) contains the literal value
1858 -- Entity (Node4-Sem)
1859 -- Associated_Node (Node4-Sem)
1860 -- Has_Private_View (Flag11-Sem) set in generic units.
1861 -- plus fields for expression
1863 -- Note: the Entity field will be missing (set to Empty) for character
1864 -- literals whose type is Standard.Wide_Character or Standard.Character
1865 -- or a type derived from one of these two. In this case the character
1866 -- literal stands for its own coding. The reason we take this irregular
1867 -- short cut is to avoid the need to build lots of junk defining
1868 -- character literal nodes.
1870 -------------------------
1871 -- 2.6 String Literal --
1872 -------------------------
1874 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1876 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1877 -- single GRAPHIC_CHARACTER other than a quotation mark.
1879 -- Is_Folded_In_Parser is True if the parser created this literal by
1880 -- folding a sequence of "&" operators. For example, if the source code
1881 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1882 -- is set. This flag is needed because the parser doesn't know about
1883 -- visibility, so the folded result might be wrong, and semantic
1884 -- analysis needs to check for that.
1887 -- Sloc points to literal
1888 -- Strval (Str3) contains Id of string value
1889 -- Has_Wide_Character (Flag11-Sem)
1890 -- Is_Folded_In_Parser (Flag4)
1891 -- plus fields for expression
1897 -- A COMMENT starts with two adjacent hyphens and extends up to the
1898 -- end of the line. A COMMENT may appear on any line of a program.
1900 -- Comments are skipped by the scanner and do not appear in the tree.
1901 -- It is possible to reconstruct the position of comments with respect
1902 -- to the elements of the tree by using the source position (Sloc)
1903 -- pointers that appear in every tree node.
1909 -- PRAGMA ::= pragma IDENTIFIER
1910 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1912 -- Note that a pragma may appear in the tree anywhere a declaration
1913 -- or a statement may appear, as well as in some other situations
1914 -- which are explicitly documented.
1917 -- Sloc points to pragma identifier
1918 -- Next_Pragma (Node1-Sem)
1919 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1920 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1921 -- Pragma_Identifier (Node4)
1922 -- Next_Rep_Item (Node5-Sem)
1923 -- PPC_Enabled (Flag5-Sem)
1925 -- Note: we should have a section on what pragmas are passed on to
1926 -- the back end to be processed. This section should note that pragma
1927 -- Psect_Object is always converted to Common_Object, but there are
1928 -- undoubtedly many other similar notes required ???
1930 -- Note: a utility function Pragma_Name may be applied to pragma nodes
1931 -- to conveniently obtain the Chars field of the Pragma_Identifier.
1933 --------------------------------------
1934 -- 2.8 Pragma Argument Association --
1935 --------------------------------------
1937 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1938 -- [pragma_argument_IDENTIFIER =>] NAME
1939 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1941 -- N_Pragma_Argument_Association
1942 -- Sloc points to first token in association
1943 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1944 -- Expression (Node3)
1946 ------------------------
1947 -- 2.9 Reserved Word --
1948 ------------------------
1950 -- Reserved words are parsed by the scanner, and returned as the
1951 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1953 ----------------------------
1954 -- 3.1 Basic Declaration --
1955 ----------------------------
1957 -- BASIC_DECLARATION ::=
1958 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1959 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1960 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1961 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1962 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1963 -- | GENERIC_INSTANTIATION
1965 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1966 -- see further description in section on semantic nodes.
1968 -- Also, in the tree that is constructed, a pragma may appear
1969 -- anywhere that a declaration may appear.
1971 ------------------------------
1972 -- 3.1 Defining Identifier --
1973 ------------------------------
1975 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1977 -- A defining identifier is an entity, which has additional fields
1978 -- depending on the setting of the Ekind field. These additional
1979 -- fields are defined (and access subprograms declared) in package
1982 -- Note: N_Defining_Identifier is an extended node whose fields are
1983 -- deliberate layed out to match the layout of fields in an ordinary
1984 -- N_Identifier node allowing for easy alteration of an identifier
1985 -- node into a defining identifier node. For details, see procedure
1986 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1988 -- N_Defining_Identifier
1989 -- Sloc points to identifier
1990 -- Chars (Name1) contains the Name_Id for the identifier
1991 -- Next_Entity (Node2-Sem)
1992 -- Scope (Node3-Sem)
1993 -- Etype (Node5-Sem)
1995 -----------------------------
1996 -- 3.2.1 Type Declaration --
1997 -----------------------------
1999 -- TYPE_DECLARATION ::=
2000 -- FULL_TYPE_DECLARATION
2001 -- | INCOMPLETE_TYPE_DECLARATION
2002 -- | PRIVATE_TYPE_DECLARATION
2003 -- | PRIVATE_EXTENSION_DECLARATION
2005 ----------------------------------
2006 -- 3.2.1 Full Type Declaration --
2007 ----------------------------------
2009 -- FULL_TYPE_DECLARATION ::=
2010 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2011 -- is TYPE_DEFINITION;
2012 -- | TASK_TYPE_DECLARATION
2013 -- | PROTECTED_TYPE_DECLARATION
2015 -- The full type declaration node is used only for the first case. The
2016 -- second case (concurrent type declaration), is represented directly
2017 -- by a task type declaration or a protected type declaration.
2019 -- N_Full_Type_Declaration
2020 -- Sloc points to TYPE
2021 -- Defining_Identifier (Node1)
2022 -- Discriminant_Specifications (List4) (set to No_List if none)
2023 -- Type_Definition (Node3)
2024 -- Discr_Check_Funcs_Built (Flag11-Sem)
2026 ----------------------------
2027 -- 3.2.1 Type Definition --
2028 ----------------------------
2030 -- TYPE_DEFINITION ::=
2031 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2032 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2033 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2034 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2036 --------------------------------
2037 -- 3.2.2 Subtype Declaration --
2038 --------------------------------
2040 -- SUBTYPE_DECLARATION ::=
2041 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2043 -- The subtype indication field is set to Empty for subtypes
2044 -- declared in package Standard (Positive, Natural).
2046 -- N_Subtype_Declaration
2047 -- Sloc points to SUBTYPE
2048 -- Defining_Identifier (Node1)
2049 -- Null_Exclusion_Present (Flag11)
2050 -- Subtype_Indication (Node5)
2051 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2052 -- Exception_Junk (Flag8-Sem)
2054 -------------------------------
2055 -- 3.2.2 Subtype Indication --
2056 -------------------------------
2058 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2060 -- Note: if no constraint is present, the subtype indication appears
2061 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2062 -- node is used only if a constraint is present.
2064 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2065 -- with the null-exclusion part (see AI-231), we had to introduce a new
2066 -- attribute in all the parents of subtype_indication nodes to indicate
2067 -- if the null-exclusion is present.
2069 -- Note: the reason that this node has expression fields is that a
2070 -- subtype indication can appear as an operand of a membership test.
2072 -- N_Subtype_Indication
2073 -- Sloc points to first token of subtype mark
2074 -- Subtype_Mark (Node4)
2075 -- Constraint (Node3)
2076 -- Etype (Node5-Sem)
2077 -- Must_Not_Freeze (Flag8-Sem)
2079 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2080 -- reason for this redundancy is so that in a list of array index types,
2081 -- the Etype can be uniformly accessed to determine the subscript type.
2082 -- This means that no Itype is constructed for the actual subtype that
2083 -- is created by the subtype indication. If such an Itype is required,
2084 -- it is constructed in the context in which the indication appears.
2086 -------------------------
2087 -- 3.2.2 Subtype Mark --
2088 -------------------------
2090 -- SUBTYPE_MARK ::= subtype_NAME
2092 -----------------------
2093 -- 3.2.2 Constraint --
2094 -----------------------
2096 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2098 ------------------------------
2099 -- 3.2.2 Scalar Constraint --
2100 ------------------------------
2102 -- SCALAR_CONSTRAINT ::=
2103 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2105 ---------------------------------
2106 -- 3.2.2 Composite Constraint --
2107 ---------------------------------
2109 -- COMPOSITE_CONSTRAINT ::=
2110 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2112 -------------------------------
2113 -- 3.3.1 Object Declaration --
2114 -------------------------------
2116 -- OBJECT_DECLARATION ::=
2117 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2118 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2119 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2120 -- ACCESS_DEFINITION [:= EXPRESSION];
2121 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2122 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2123 -- | SINGLE_TASK_DECLARATION
2124 -- | SINGLE_PROTECTED_DECLARATION
2126 -- Note: aliased is not permitted in Ada 83 mode
2128 -- The N_Object_Declaration node is only for the first two cases.
2129 -- Single task declaration is handled by P_Task (9.1)
2130 -- Single protected declaration is handled by P_protected (9.5)
2132 -- Although the syntax allows multiple identifiers in the list, the
2133 -- semantics is as though successive declarations were given with
2134 -- identical type definition and expression components. To simplify
2135 -- semantic processing, the parser represents a multiple declaration
2136 -- case as a sequence of single declarations, using the More_Ids and
2137 -- Prev_Ids flags to preserve the original source form as described
2138 -- in the section on "Handling of Defining Identifier Lists".
2140 -- The flag Has_Init_Expression is set if an initializing expression
2141 -- is present. Normally it is set if and only if Expression contains
2142 -- a non-empty value, but there is an exception to this. When the
2143 -- initializing expression is an aggregate which requires explicit
2144 -- assignments, the Expression field gets set to Empty, but this flag
2145 -- is still set, so we don't forget we had an initializing expression.
2147 -- Note: if a range check is required for the initialization
2148 -- expression then the Do_Range_Check flag is set in the Expression,
2149 -- with the check being done against the type given by the object
2150 -- definition, which is also the Etype of the defining identifier.
2152 -- Note: the contents of the Expression field must be ignored (i.e.
2153 -- treated as though it were Empty) if No_Initialization is set True.
2155 -- Note: the back end places some restrictions on the form of the
2156 -- Expression field. If the object being declared is Atomic, then
2157 -- the Expression may not have the form of an aggregate (since this
2158 -- might cause the back end to generate separate assignments). It
2159 -- also cannot be a reference to an object marked as a true constant
2160 -- (Is_True_Constant flag set), where the object is itself initialized
2161 -- with an aggregate. If necessary the front end must generate an
2162 -- extra temporary (with Is_True_Constant set False), and initialize
2163 -- this temporary as required (the temporary itself is not atomic).
2165 -- Note: there is not node kind for object definition. Instead, the
2166 -- corresponding field holds a subtype indication, an array type
2167 -- definition, or (Ada 2005, AI-406) an access definition.
2169 -- N_Object_Declaration
2170 -- Sloc points to first identifier
2171 -- Defining_Identifier (Node1)
2172 -- Aliased_Present (Flag4) set if ALIASED appears
2173 -- Constant_Present (Flag17) set if CONSTANT appears
2174 -- Null_Exclusion_Present (Flag11)
2175 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2176 -- Expression (Node3) (set to Empty if not present)
2177 -- Handler_List_Entry (Node2-Sem)
2178 -- Corresponding_Generic_Association (Node5-Sem)
2179 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2180 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2181 -- No_Initialization (Flag13-Sem)
2182 -- Assignment_OK (Flag15-Sem)
2183 -- Exception_Junk (Flag8-Sem)
2184 -- Is_Subprogram_Descriptor (Flag16-Sem)
2185 -- Has_Init_Expression (Flag14)
2187 -------------------------------------
2188 -- 3.3.1 Defining Identifier List --
2189 -------------------------------------
2191 -- DEFINING_IDENTIFIER_LIST ::=
2192 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2194 -------------------------------
2195 -- 3.3.2 Number Declaration --
2196 -------------------------------
2198 -- NUMBER_DECLARATION ::=
2199 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2201 -- Although the syntax allows multiple identifiers in the list, the
2202 -- semantics is as though successive declarations were given with
2203 -- identical expressions. To simplify semantic processing, the parser
2204 -- represents a multiple declaration case as a sequence of single
2205 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2206 -- the original source form as described in the section on "Handling
2207 -- of Defining Identifier Lists".
2209 -- N_Number_Declaration
2210 -- Sloc points to first identifier
2211 -- Defining_Identifier (Node1)
2212 -- Expression (Node3)
2213 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2214 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2216 ----------------------------------
2217 -- 3.4 Derived Type Definition --
2218 ----------------------------------
2220 -- DERIVED_TYPE_DEFINITION ::=
2221 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2222 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2224 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2227 -- Note: a record extension part is required if ABSTRACT is present
2229 -- N_Derived_Type_Definition
2230 -- Sloc points to NEW
2231 -- Abstract_Present (Flag4)
2232 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2233 -- Subtype_Indication (Node5)
2234 -- Record_Extension_Part (Node3) (set to Empty if not present)
2235 -- Limited_Present (Flag17)
2236 -- Task_Present (Flag5) set in task interfaces
2237 -- Protected_Present (Flag6) set in protected interfaces
2238 -- Synchronized_Present (Flag7) set in interfaces
2239 -- Interface_List (List2) (set to No_List if none)
2240 -- Interface_Present (Flag16) set in abstract interfaces
2242 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2243 -- Interface_List, and Interface_Present are used for abstract
2244 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2246 ---------------------------
2247 -- 3.5 Range Constraint --
2248 ---------------------------
2250 -- RANGE_CONSTRAINT ::= range RANGE
2252 -- N_Range_Constraint
2253 -- Sloc points to RANGE
2254 -- Range_Expression (Node4)
2261 -- RANGE_ATTRIBUTE_REFERENCE
2262 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2264 -- Note: the case of a range given as a range attribute reference
2265 -- appears directly in the tree as an attribute reference.
2267 -- Note: the field name for a reference to a range is Range_Expression
2268 -- rather than Range, because range is a reserved keyword in Ada!
2270 -- Note: the reason that this node has expression fields is that a
2271 -- range can appear as an operand of a membership test. The Etype
2272 -- field is the type of the range (we do NOT construct an implicit
2273 -- subtype to represent the range exactly).
2276 -- Sloc points to ..
2277 -- Low_Bound (Node1)
2278 -- High_Bound (Node2)
2279 -- Includes_Infinities (Flag11)
2280 -- plus fields for expression
2282 -- Note: if the range appears in a context, such as a subtype
2283 -- declaration, where range checks are required on one or both of
2284 -- the expression fields, then type conversion nodes are inserted
2285 -- to represent the required checks.
2287 ----------------------------------------
2288 -- 3.5.1 Enumeration Type Definition --
2289 ----------------------------------------
2291 -- ENUMERATION_TYPE_DEFINITION ::=
2292 -- (ENUMERATION_LITERAL_SPECIFICATION
2293 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2295 -- Note: the Literals field in the node described below is null for
2296 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2297 -- which special processing handles these types as special cases.
2299 -- N_Enumeration_Type_Definition
2300 -- Sloc points to left parenthesis
2301 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2302 -- End_Label (Node4) (set to Empty if internally generated record)
2304 ----------------------------------------------
2305 -- 3.5.1 Enumeration Literal Specification --
2306 ----------------------------------------------
2308 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2309 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2311 ---------------------------------------
2312 -- 3.5.1 Defining Character Literal --
2313 ---------------------------------------
2315 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2317 -- A defining character literal is an entity, which has additional
2318 -- fields depending on the setting of the Ekind field. These
2319 -- additional fields are defined (and access subprograms declared)
2320 -- in package Einfo.
2322 -- Note: N_Defining_Character_Literal is an extended node whose fields
2323 -- are deliberate layed out to match the layout of fields in an ordinary
2324 -- N_Character_Literal node allowing for easy alteration of a character
2325 -- literal node into a defining character literal node. For details, see
2326 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2328 -- N_Defining_Character_Literal
2329 -- Sloc points to literal
2330 -- Chars (Name1) contains the Name_Id for the identifier
2331 -- Next_Entity (Node2-Sem)
2332 -- Scope (Node3-Sem)
2333 -- Etype (Node5-Sem)
2335 ------------------------------------
2336 -- 3.5.4 Integer Type Definition --
2337 ------------------------------------
2339 -- Note: there is an error in this rule in the latest version of the
2340 -- grammar, so we have retained the old rule pending clarification.
2342 -- INTEGER_TYPE_DEFINITION ::=
2343 -- SIGNED_INTEGER_TYPE_DEFINITION
2344 -- | MODULAR_TYPE_DEFINITION
2346 -------------------------------------------
2347 -- 3.5.4 Signed Integer Type Definition --
2348 -------------------------------------------
2350 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2351 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2353 -- Note: the Low_Bound and High_Bound fields are set to Empty
2354 -- for integer types defined in package Standard.
2356 -- N_Signed_Integer_Type_Definition
2357 -- Sloc points to RANGE
2358 -- Low_Bound (Node1)
2359 -- High_Bound (Node2)
2361 ------------------------------------
2362 -- 3.5.4 Modular Type Definition --
2363 ------------------------------------
2365 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2367 -- N_Modular_Type_Definition
2368 -- Sloc points to MOD
2369 -- Expression (Node3)
2371 ---------------------------------
2372 -- 3.5.6 Real Type Definition --
2373 ---------------------------------
2375 -- REAL_TYPE_DEFINITION ::=
2376 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2378 --------------------------------------
2379 -- 3.5.7 Floating Point Definition --
2380 --------------------------------------
2382 -- FLOATING_POINT_DEFINITION ::=
2383 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2385 -- Note: The Digits_Expression and Real_Range_Specifications fields
2386 -- are set to Empty for floating-point types declared in Standard.
2388 -- N_Floating_Point_Definition
2389 -- Sloc points to DIGITS
2390 -- Digits_Expression (Node2)
2391 -- Real_Range_Specification (Node4) (set to Empty if not present)
2393 -------------------------------------
2394 -- 3.5.7 Real Range Specification --
2395 -------------------------------------
2397 -- REAL_RANGE_SPECIFICATION ::=
2398 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2400 -- N_Real_Range_Specification
2401 -- Sloc points to RANGE
2402 -- Low_Bound (Node1)
2403 -- High_Bound (Node2)
2405 -----------------------------------
2406 -- 3.5.9 Fixed Point Definition --
2407 -----------------------------------
2409 -- FIXED_POINT_DEFINITION ::=
2410 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2412 --------------------------------------------
2413 -- 3.5.9 Ordinary Fixed Point Definition --
2414 --------------------------------------------
2416 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2417 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2419 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2421 -- N_Ordinary_Fixed_Point_Definition
2422 -- Sloc points to DELTA
2423 -- Delta_Expression (Node3)
2424 -- Real_Range_Specification (Node4)
2426 -------------------------------------------
2427 -- 3.5.9 Decimal Fixed Point Definition --
2428 -------------------------------------------
2430 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2431 -- delta static_EXPRESSION
2432 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2434 -- Note: decimal types are not permitted in Ada 83 mode
2436 -- N_Decimal_Fixed_Point_Definition
2437 -- Sloc points to DELTA
2438 -- Delta_Expression (Node3)
2439 -- Digits_Expression (Node2)
2440 -- Real_Range_Specification (Node4) (set to Empty if not present)
2442 ------------------------------
2443 -- 3.5.9 Digits Constraint --
2444 ------------------------------
2446 -- DIGITS_CONSTRAINT ::=
2447 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2449 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2450 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2452 -- N_Digits_Constraint
2453 -- Sloc points to DIGITS
2454 -- Digits_Expression (Node2)
2455 -- Range_Constraint (Node4) (set to Empty if not present)
2457 --------------------------------
2458 -- 3.6 Array Type Definition --
2459 --------------------------------
2461 -- ARRAY_TYPE_DEFINITION ::=
2462 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2464 -----------------------------------------
2465 -- 3.6 Unconstrained Array Definition --
2466 -----------------------------------------
2468 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2469 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2470 -- COMPONENT_DEFINITION
2472 -- Note: dimensionality of array is indicated by number of entries in
2473 -- the Subtype_Marks list, which has one entry for each dimension.
2475 -- N_Unconstrained_Array_Definition
2476 -- Sloc points to ARRAY
2477 -- Subtype_Marks (List2)
2478 -- Component_Definition (Node4)
2480 -----------------------------------
2481 -- 3.6 Index Subtype Definition --
2482 -----------------------------------
2484 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2486 -- There is no explicit node in the tree for an index subtype
2487 -- definition since the N_Unconstrained_Array_Definition node
2488 -- incorporates the type marks which appear in this context.
2490 ---------------------------------------
2491 -- 3.6 Constrained Array Definition --
2492 ---------------------------------------
2494 -- CONSTRAINED_ARRAY_DEFINITION ::=
2495 -- array (DISCRETE_SUBTYPE_DEFINITION
2496 -- {, DISCRETE_SUBTYPE_DEFINITION})
2497 -- of COMPONENT_DEFINITION
2499 -- Note: dimensionality of array is indicated by number of entries
2500 -- in the Discrete_Subtype_Definitions list, which has one entry
2501 -- for each dimension.
2503 -- N_Constrained_Array_Definition
2504 -- Sloc points to ARRAY
2505 -- Discrete_Subtype_Definitions (List2)
2506 -- Component_Definition (Node4)
2508 --------------------------------------
2509 -- 3.6 Discrete Subtype Definition --
2510 --------------------------------------
2512 -- DISCRETE_SUBTYPE_DEFINITION ::=
2513 -- discrete_SUBTYPE_INDICATION | RANGE
2515 -------------------------------
2516 -- 3.6 Component Definition --
2517 -------------------------------
2519 -- COMPONENT_DEFINITION ::=
2520 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2522 -- Note: although the syntax does not permit a component definition to
2523 -- be an anonymous array (and the parser will diagnose such an attempt
2524 -- with an appropriate message), it is possible for anonymous arrays
2525 -- to appear as component definitions. The semantics and back end handle
2526 -- this case properly, and the expander in fact generates such cases.
2527 -- Access_Definition is an optional field that gives support to
2528 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2529 -- Subtype_Indication field or else the Access_Definition field.
2531 -- N_Component_Definition
2532 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2533 -- Aliased_Present (Flag4)
2534 -- Null_Exclusion_Present (Flag11)
2535 -- Subtype_Indication (Node5) (set to Empty if not present)
2536 -- Access_Definition (Node3) (set to Empty if not present)
2538 -----------------------------
2539 -- 3.6.1 Index Constraint --
2540 -----------------------------
2542 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2544 -- It is not in general possible to distinguish between discriminant
2545 -- constraints and index constraints at parse time, since a simple
2546 -- name could be either the subtype mark of a discrete range, or an
2547 -- expression in a discriminant association with no name. Either
2548 -- entry appears simply as the name, and the semantic parse must
2549 -- distinguish between the two cases. Thus we use a common tree
2550 -- node format for both of these constraint types.
2552 -- See Discriminant_Constraint for format of node
2554 ---------------------------
2555 -- 3.6.1 Discrete Range --
2556 ---------------------------
2558 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2560 ----------------------------
2561 -- 3.7 Discriminant Part --
2562 ----------------------------
2564 -- DISCRIMINANT_PART ::=
2565 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2567 ------------------------------------
2568 -- 3.7 Unknown Discriminant Part --
2569 ------------------------------------
2571 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2573 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2575 -- There is no explicit node in the tree for an unknown discriminant
2576 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2579 ----------------------------------
2580 -- 3.7 Known Discriminant Part --
2581 ----------------------------------
2583 -- KNOWN_DISCRIMINANT_PART ::=
2584 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2586 -------------------------------------
2587 -- 3.7 Discriminant Specification --
2588 -------------------------------------
2590 -- DISCRIMINANT_SPECIFICATION ::=
2591 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2592 -- [:= DEFAULT_EXPRESSION]
2593 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2594 -- [:= DEFAULT_EXPRESSION]
2596 -- Although the syntax allows multiple identifiers in the list, the
2597 -- semantics is as though successive specifications were given with
2598 -- identical type definition and expression components. To simplify
2599 -- semantic processing, the parser represents a multiple declaration
2600 -- case as a sequence of single specifications, using the More_Ids and
2601 -- Prev_Ids flags to preserve the original source form as described
2602 -- in the section on "Handling of Defining Identifier Lists".
2604 -- N_Discriminant_Specification
2605 -- Sloc points to first identifier
2606 -- Defining_Identifier (Node1)
2607 -- Null_Exclusion_Present (Flag11)
2608 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2609 -- Expression (Node3) (set to Empty if no default expression)
2610 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2611 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2613 -----------------------------
2614 -- 3.7 Default Expression --
2615 -----------------------------
2617 -- DEFAULT_EXPRESSION ::= EXPRESSION
2619 ------------------------------------
2620 -- 3.7.1 Discriminant Constraint --
2621 ------------------------------------
2623 -- DISCRIMINANT_CONSTRAINT ::=
2624 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2626 -- It is not in general possible to distinguish between discriminant
2627 -- constraints and index constraints at parse time, since a simple
2628 -- name could be either the subtype mark of a discrete range, or an
2629 -- expression in a discriminant association with no name. Either
2630 -- entry appears simply as the name, and the semantic parse must
2631 -- distinguish between the two cases. Thus we use a common tree
2632 -- node format for both of these constraint types.
2634 -- N_Index_Or_Discriminant_Constraint
2635 -- Sloc points to left paren
2636 -- Constraints (List1) points to list of discrete ranges or
2637 -- discriminant associations
2639 -------------------------------------
2640 -- 3.7.1 Discriminant Association --
2641 -------------------------------------
2643 -- DISCRIMINANT_ASSOCIATION ::=
2644 -- [discriminant_SELECTOR_NAME
2645 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2647 -- Note: a discriminant association that has no selector name list
2648 -- appears directly as an expression in the tree.
2650 -- N_Discriminant_Association
2651 -- Sloc points to first token of discriminant association
2652 -- Selector_Names (List1) (always non-empty, since if no selector
2653 -- names are present, this node is not used, see comment above)
2654 -- Expression (Node3)
2656 ---------------------------------
2657 -- 3.8 Record Type Definition --
2658 ---------------------------------
2660 -- RECORD_TYPE_DEFINITION ::=
2661 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2663 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2665 -- There is no explicit node in the tree for a record type definition.
2666 -- Instead the flags for Tagged_Present and Limited_Present appear in
2667 -- the N_Record_Definition node for a record definition appearing in
2668 -- the context of a record type definition.
2670 ----------------------------
2671 -- 3.8 Record Definition --
2672 ----------------------------
2674 -- RECORD_DEFINITION ::=
2680 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2681 -- flags appear only for a record definition appearing in a record
2684 -- Note: the NULL RECORD case is not permitted in Ada 83
2686 -- N_Record_Definition
2687 -- Sloc points to RECORD or NULL
2688 -- End_Label (Node4) (set to Empty if internally generated record)
2689 -- Abstract_Present (Flag4)
2690 -- Tagged_Present (Flag15)
2691 -- Limited_Present (Flag17)
2692 -- Component_List (Node1) empty in null record case
2693 -- Null_Present (Flag13) set in null record case
2694 -- Task_Present (Flag5) set in task interfaces
2695 -- Protected_Present (Flag6) set in protected interfaces
2696 -- Synchronized_Present (Flag7) set in interfaces
2697 -- Interface_Present (Flag16) set in abstract interfaces
2698 -- Interface_List (List2) (set to No_List if none)
2700 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2701 -- Interface_List and Interface_Present are used for abstract
2702 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2704 -------------------------
2705 -- 3.8 Component List --
2706 -------------------------
2708 -- COMPONENT_LIST ::=
2709 -- COMPONENT_ITEM {COMPONENT_ITEM}
2710 -- | {COMPONENT_ITEM} VARIANT_PART
2714 -- Sloc points to first token of component list
2715 -- Component_Items (List3)
2716 -- Variant_Part (Node4) (set to Empty if no variant part)
2717 -- Null_Present (Flag13)
2719 -------------------------
2720 -- 3.8 Component Item --
2721 -------------------------
2723 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2725 -- Note: A component item can also be a pragma, and in the tree
2726 -- that is obtained after semantic processing, a component item
2727 -- can be an N_Null node resulting from a non-recognized pragma.
2729 --------------------------------
2730 -- 3.8 Component Declaration --
2731 --------------------------------
2733 -- COMPONENT_DECLARATION ::=
2734 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2735 -- [:= DEFAULT_EXPRESSION]
2737 -- Note: although the syntax does not permit a component definition to
2738 -- be an anonymous array (and the parser will diagnose such an attempt
2739 -- with an appropriate message), it is possible for anonymous arrays
2740 -- to appear as component definitions. The semantics and back end handle
2741 -- this case properly, and the expander in fact generates such cases.
2743 -- Although the syntax allows multiple identifiers in the list, the
2744 -- semantics is as though successive declarations were given with the
2745 -- same component definition and expression components. To simplify
2746 -- semantic processing, the parser represents a multiple declaration
2747 -- case as a sequence of single declarations, using the More_Ids and
2748 -- Prev_Ids flags to preserve the original source form as described
2749 -- in the section on "Handling of Defining Identifier Lists".
2751 -- N_Component_Declaration
2752 -- Sloc points to first identifier
2753 -- Defining_Identifier (Node1)
2754 -- Component_Definition (Node4)
2755 -- Expression (Node3) (set to Empty if no default expression)
2756 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2757 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2759 -------------------------
2760 -- 3.8.1 Variant Part --
2761 -------------------------
2764 -- case discriminant_DIRECT_NAME is
2769 -- Note: the variants list can contain pragmas as well as variants.
2770 -- In a properly formed program there is at least one variant.
2773 -- Sloc points to CASE
2777 --------------------
2779 --------------------
2782 -- when DISCRETE_CHOICE_LIST =>
2786 -- Sloc points to WHEN
2787 -- Discrete_Choices (List4)
2788 -- Component_List (Node1)
2789 -- Enclosing_Variant (Node2-Sem)
2790 -- Present_Expr (Uint3-Sem)
2791 -- Dcheck_Function (Node5-Sem)
2793 ---------------------------------
2794 -- 3.8.1 Discrete Choice List --
2795 ---------------------------------
2797 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2799 ----------------------------
2800 -- 3.8.1 Discrete Choice --
2801 ----------------------------
2803 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2805 -- Note: in Ada 83 mode, the expression must be a simple expression
2807 -- The only choice that appears explicitly is the OTHERS choice, as
2808 -- defined here. Other cases of discrete choice (expression and
2809 -- discrete range) appear directly. This production is also used
2810 -- for the OTHERS possibility of an exception choice.
2812 -- Note: in accordance with the syntax, the parser does not check that
2813 -- OTHERS appears at the end on its own in a choice list context. This
2814 -- is a semantic check.
2817 -- Sloc points to OTHERS
2818 -- Others_Discrete_Choices (List1-Sem)
2819 -- All_Others (Flag11-Sem)
2821 ----------------------------------
2822 -- 3.9.1 Record Extension Part --
2823 ----------------------------------
2825 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2827 -- Note: record extension parts are not permitted in Ada 83 mode
2829 --------------------------------------
2830 -- 3.9.4 Interface Type Definition --
2831 --------------------------------------
2833 -- INTERFACE_TYPE_DEFINITION ::=
2834 -- [limited | task | protected | synchronized]
2835 -- interface [interface_list]
2837 -- Note: Interfaces are implemented with N_Record_Definition and
2838 -- N_Derived_Type_Definition nodes because most of the support
2839 -- for the analysis of abstract types has been reused to
2840 -- analyze abstract interfaces.
2842 ----------------------------------
2843 -- 3.10 Access Type Definition --
2844 ----------------------------------
2846 -- ACCESS_TYPE_DEFINITION ::=
2847 -- ACCESS_TO_OBJECT_DEFINITION
2848 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2850 --------------------------
2851 -- 3.10 Null Exclusion --
2852 --------------------------
2854 -- NULL_EXCLUSION ::= not null
2856 ---------------------------------------
2857 -- 3.10 Access To Object Definition --
2858 ---------------------------------------
2860 -- ACCESS_TO_OBJECT_DEFINITION ::=
2861 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2862 -- SUBTYPE_INDICATION
2864 -- N_Access_To_Object_Definition
2865 -- Sloc points to ACCESS
2866 -- All_Present (Flag15)
2867 -- Null_Exclusion_Present (Flag11)
2868 -- Subtype_Indication (Node5)
2869 -- Constant_Present (Flag17)
2871 -----------------------------------
2872 -- 3.10 General Access Modifier --
2873 -----------------------------------
2875 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2877 -- Note: general access modifiers are not permitted in Ada 83 mode
2879 -- There is no explicit node in the tree for general access modifier.
2880 -- Instead the All_Present or Constant_Present flags are set in the
2883 -------------------------------------------
2884 -- 3.10 Access To Subprogram Definition --
2885 -------------------------------------------
2887 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2888 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2889 -- | [NULL_EXCLUSION] access [protected] function
2890 -- PARAMETER_AND_RESULT_PROFILE
2892 -- Note: access to subprograms are not permitted in Ada 83 mode
2894 -- N_Access_Function_Definition
2895 -- Sloc points to ACCESS
2896 -- Null_Exclusion_Present (Flag11)
2897 -- Null_Exclusion_In_Return_Present (Flag14)
2898 -- Protected_Present (Flag6)
2899 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2900 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2902 -- N_Access_Procedure_Definition
2903 -- Sloc points to ACCESS
2904 -- Null_Exclusion_Present (Flag11)
2905 -- Protected_Present (Flag6)
2906 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2908 -----------------------------
2909 -- 3.10 Access Definition --
2910 -----------------------------
2912 -- ACCESS_DEFINITION ::=
2913 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2914 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2916 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2918 -- N_Access_Definition
2919 -- Sloc points to ACCESS
2920 -- Null_Exclusion_Present (Flag11)
2921 -- All_Present (Flag15)
2922 -- Constant_Present (Flag17)
2923 -- Subtype_Mark (Node4)
2924 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2926 -----------------------------------------
2927 -- 3.10.1 Incomplete Type Declaration --
2928 -----------------------------------------
2930 -- INCOMPLETE_TYPE_DECLARATION ::=
2931 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2933 -- N_Incomplete_Type_Declaration
2934 -- Sloc points to TYPE
2935 -- Defining_Identifier (Node1)
2936 -- Discriminant_Specifications (List4) (set to No_List if no
2937 -- discriminant part, or if the discriminant part is an
2938 -- unknown discriminant part)
2939 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2940 -- Tagged_Present (Flag15)
2942 ----------------------------
2943 -- 3.11 Declarative Part --
2944 ----------------------------
2946 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2948 -- Note: although the parser enforces the syntactic requirement that
2949 -- a declarative part can contain only declarations, the semantic
2950 -- processing may add statements to the list of actions in a
2951 -- declarative part, so the code generator should be prepared
2952 -- to accept a statement in this position.
2954 ----------------------------
2955 -- 3.11 Declarative Item --
2956 ----------------------------
2958 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2960 ----------------------------------
2961 -- 3.11 Basic Declarative Item --
2962 ----------------------------------
2964 -- BASIC_DECLARATIVE_ITEM ::=
2965 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2971 -- BODY ::= PROPER_BODY | BODY_STUB
2973 -----------------------
2974 -- 3.11 Proper Body --
2975 -----------------------
2978 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2985 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2986 -- | INDEXED_COMPONENT | SLICE
2987 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2988 -- | TYPE_CONVERSION | FUNCTION_CALL
2989 -- | CHARACTER_LITERAL
2991 ----------------------
2992 -- 4.1 Direct Name --
2993 ----------------------
2995 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3001 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3003 -------------------------------
3004 -- 4.1 Explicit Dereference --
3005 -------------------------------
3007 -- EXPLICIT_DEREFERENCE ::= NAME . all
3009 -- N_Explicit_Dereference
3010 -- Sloc points to ALL
3012 -- Actual_Designated_Subtype (Node4-Sem)
3013 -- plus fields for expression
3015 -------------------------------
3016 -- 4.1 Implicit Dereference --
3017 -------------------------------
3019 -- IMPLICIT_DEREFERENCE ::= NAME
3021 ------------------------------
3022 -- 4.1.1 Indexed Component --
3023 ------------------------------
3025 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3027 -- Note: the parser may generate this node in some situations where it
3028 -- should be a function call. The semantic pass must correct this
3029 -- misidentification (which is inevitable at the parser level).
3031 -- N_Indexed_Component
3032 -- Sloc contains a copy of the Sloc value of the Prefix
3034 -- Expressions (List1)
3035 -- plus fields for expression
3037 -- Note: if any of the subscripts requires a range check, then the
3038 -- Do_Range_Check flag is set on the corresponding expression, with
3039 -- the index type being determined from the type of the Prefix, which
3040 -- references the array being indexed.
3042 -- Note: in a fully analyzed and expanded indexed component node, and
3043 -- hence in any such node that gigi sees, if the prefix is an access
3044 -- type, then an explicit dereference operation has been inserted.
3050 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3052 -- Note: an implicit subtype is created to describe the resulting
3053 -- type, so that the bounds of this type are the bounds of the slice.
3056 -- Sloc points to first token of prefix
3058 -- Discrete_Range (Node4)
3059 -- plus fields for expression
3061 -------------------------------
3062 -- 4.1.3 Selected Component --
3063 -------------------------------
3065 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3067 -- Note: selected components that are semantically expanded names get
3068 -- changed during semantic processing into the separate N_Expanded_Name
3069 -- node. See description of this node in the section on semantic nodes.
3071 -- N_Selected_Component
3072 -- Sloc points to period
3074 -- Selector_Name (Node2)
3075 -- Associated_Node (Node4-Sem)
3076 -- Do_Discriminant_Check (Flag13-Sem)
3077 -- Is_In_Discriminant_Check (Flag11-Sem)
3078 -- plus fields for expression
3080 --------------------------
3081 -- 4.1.3 Selector Name --
3082 --------------------------
3084 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3086 --------------------------------
3087 -- 4.1.4 Attribute Reference --
3088 --------------------------------
3090 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3092 -- Note: the syntax is quite ambiguous at this point. Consider:
3094 -- A'Length (X) X is part of the attribute designator
3095 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3096 -- A'Class (X) X is the expression of a type conversion
3098 -- It would be possible for the parser to distinguish these cases
3099 -- by looking at the attribute identifier. However, that would mean
3100 -- more work in introducing new implementation defined attributes,
3101 -- and also it would mean that special processing for attributes
3102 -- would be scattered around, instead of being centralized in the
3103 -- semantic routine that handles an N_Attribute_Reference node.
3104 -- Consequently, the parser in all the above cases stores the
3105 -- expression (X in these examples) as a single element list in
3106 -- in the Expressions field of the N_Attribute_Reference node.
3108 -- Similarly, for attributes like Max which take two arguments,
3109 -- we store the two arguments as a two element list in the
3110 -- Expressions field. Of course it is clear at parse time that
3111 -- this case is really a function call with an attribute as the
3112 -- prefix, but it turns out to be convenient to handle the two
3113 -- argument case in a similar manner to the one argument case,
3114 -- and indeed in general the parser will accept any number of
3115 -- expressions in this position and store them as a list in the
3116 -- attribute reference node. This allows for future addition of
3117 -- attributes that take more than two arguments.
3119 -- Note: named associates are not permitted in function calls where
3120 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3121 -- to skip the normal subprogram argument processing.
3123 -- Note: for the attributes whose designators are technically keywords,
3124 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3125 -- the corresponding name, even though no identifier is involved.
3127 -- Note: the generated code may contain stream attributes applied to
3128 -- limited types for which no stream routines exist officially. In such
3129 -- case, the result is to use the stream attribute for the underlying
3130 -- full type, or in the case of a protected type, the components
3131 -- (including any discriminants) are merely streamed in order.
3133 -- See Exp_Attr for a complete description of which attributes are
3134 -- passed onto Gigi, and which are handled entirely by the front end.
3136 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3137 -- a non-standard enumeration type or a nonzero/zero semantics
3138 -- boolean type, so the value is simply the stored representation.
3140 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3141 -- references a subprogram that is a renaming, then the front end must
3142 -- rewrite the attribute to refer directly to the renamed entity.
3144 -- Note: In generated code, the Address and Unrestricted_Access
3145 -- attributes can be applied to any expression, and the meaning is
3146 -- to create an object containing the value (the object is in the
3147 -- current stack frame), and pass the address of this value. If the
3148 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3149 -- is taken must be on a byte (storage unit) boundary, and if it is
3150 -- not (or may not be), then the generated code must create a copy
3151 -- that is byte aligned, and pass the address of this copy.
3153 -- N_Attribute_Reference
3154 -- Sloc points to apostrophe
3156 -- Attribute_Name (Name2) identifier name from attribute designator
3157 -- Expressions (List1) (set to No_List if no associated expressions)
3158 -- Entity (Node4-Sem) used if the attribute yields a type
3159 -- Associated_Node (Node4-Sem)
3160 -- Do_Overflow_Check (Flag17-Sem)
3161 -- Redundant_Use (Flag13-Sem)
3162 -- Must_Be_Byte_Aligned (Flag14)
3163 -- plus fields for expression
3165 ---------------------------------
3166 -- 4.1.4 Attribute Designator --
3167 ---------------------------------
3169 -- ATTRIBUTE_DESIGNATOR ::=
3170 -- IDENTIFIER [(static_EXPRESSION)]
3171 -- | access | delta | digits
3173 -- There is no explicit node in the tree for an attribute designator.
3174 -- Instead the Attribute_Name and Expressions fields of the parent
3175 -- node (N_Attribute_Reference node) hold the information.
3177 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3178 -- designator, then they are treated as identifiers internally
3179 -- rather than the keywords of the same name.
3181 --------------------------------------
3182 -- 4.1.4 Range Attribute Reference --
3183 --------------------------------------
3185 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3187 -- A range attribute reference is represented in the tree using the
3188 -- normal N_Attribute_Reference node.
3190 ---------------------------------------
3191 -- 4.1.4 Range Attribute Designator --
3192 ---------------------------------------
3194 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3196 -- A range attribute designator is represented in the tree using the
3197 -- normal N_Attribute_Reference node.
3199 --------------------
3201 --------------------
3204 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3206 -----------------------------
3207 -- 4.3.1 Record Aggregate --
3208 -----------------------------
3210 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3213 -- Sloc points to left parenthesis
3214 -- Expressions (List1) (set to No_List if none or null record case)
3215 -- Component_Associations (List2) (set to No_List if none)
3216 -- Null_Record_Present (Flag17)
3217 -- Aggregate_Bounds (Node3-Sem)
3218 -- Associated_Node (Node4-Sem)
3219 -- Static_Processing_OK (Flag4-Sem)
3220 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3221 -- Expansion_Delayed (Flag11-Sem)
3222 -- Has_Self_Reference (Flag13-Sem)
3223 -- plus fields for expression
3225 -- Note: this structure is used for both record and array aggregates
3226 -- since the two cases are not separable by the parser. The parser
3227 -- makes no attempt to enforce consistency here, so it is up to the
3228 -- semantic phase to make sure that the aggregate is consistent (i.e.
3229 -- that it is not a "half-and-half" case that mixes record and array
3230 -- syntax. In particular, for a record aggregate, the expressions
3231 -- field will be set if there are positional associations.
3233 -- Note: N_Aggregate is not used for all aggregates; in particular,
3234 -- there is a separate node kind for extension aggregates.
3236 -- Note: gigi/gcc can handle array aggregates correctly providing that
3237 -- they are entirely positional, and the array subtype involved has a
3238 -- known at compile time length and is not bit packed, or a convention
3239 -- Fortran array with more than one dimension. If these conditions
3240 -- are not met, then the front end must translate the aggregate into
3241 -- an appropriate set of assignments into a temporary.
3243 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3244 -- of record aggregates, including those for packed, and rep-claused
3245 -- records, and also variant records, providing that there are no
3246 -- variable length fields whose size is not known at runtime, and
3247 -- providing that the aggregate is presented in fully named form.
3249 ----------------------------------------------
3250 -- 4.3.1 Record Component Association List --
3251 ----------------------------------------------
3253 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3254 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3257 -- There is no explicit node in the tree for a record component
3258 -- association list. Instead the Null_Record_Present flag is set in
3259 -- the parent node for the NULL RECORD case.
3261 ------------------------------------------------------
3262 -- 4.3.1 Record Component Association (also 4.3.3) --
3263 ------------------------------------------------------
3265 -- RECORD_COMPONENT_ASSOCIATION ::=
3266 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3268 -- N_Component_Association
3269 -- Sloc points to first selector name
3271 -- Loop_Actions (List2-Sem)
3272 -- Expression (Node3)
3273 -- Box_Present (Flag15)
3275 -- Note: this structure is used for both record component associations
3276 -- and array component associations, since the two cases aren't always
3277 -- separable by the parser. The choices list may represent either a
3278 -- list of selector names in the record aggregate case, or a list of
3279 -- discrete choices in the array aggregate case or an N_Others_Choice
3280 -- node (which appears as a singleton list). Box_Present gives support
3281 -- to Ada 2005 (AI-287).
3283 ----------------------------------
3284 -- 4.3.1 Component Choice List --
3285 ----------------------------------
3287 -- COMPONENT_CHOICE_LIST ::=
3288 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3291 -- The entries of a component choice list appear in the Choices list of
3292 -- the associated N_Component_Association, as either selector names, or
3293 -- as an N_Others_Choice node.
3295 --------------------------------
3296 -- 4.3.2 Extension Aggregate --
3297 --------------------------------
3299 -- EXTENSION_AGGREGATE ::=
3300 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3302 -- Note: extension aggregates are not permitted in Ada 83 mode
3304 -- N_Extension_Aggregate
3305 -- Sloc points to left parenthesis
3306 -- Ancestor_Part (Node3)
3307 -- Associated_Node (Node4-Sem)
3308 -- Expressions (List1) (set to No_List if none or null record case)
3309 -- Component_Associations (List2) (set to No_List if none)
3310 -- Null_Record_Present (Flag17)
3311 -- Expansion_Delayed (Flag11-Sem)
3312 -- Has_Self_Reference (Flag13-Sem)
3313 -- plus fields for expression
3315 --------------------------
3316 -- 4.3.2 Ancestor Part --
3317 --------------------------
3319 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3321 ----------------------------
3322 -- 4.3.3 Array Aggregate --
3323 ----------------------------
3325 -- ARRAY_AGGREGATE ::=
3326 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3328 ---------------------------------------
3329 -- 4.3.3 Positional Array Aggregate --
3330 ---------------------------------------
3332 -- POSITIONAL_ARRAY_AGGREGATE ::=
3333 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3334 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3336 -- See Record_Aggregate (4.3.1) for node structure
3338 ----------------------------------
3339 -- 4.3.3 Named Array Aggregate --
3340 ----------------------------------
3342 -- NAMED_ARRAY_AGGREGATE ::=
3343 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3345 -- See Record_Aggregate (4.3.1) for node structure
3347 ----------------------------------------
3348 -- 4.3.3 Array Component Association --
3349 ----------------------------------------
3351 -- ARRAY_COMPONENT_ASSOCIATION ::=
3352 -- DISCRETE_CHOICE_LIST => EXPRESSION
3354 -- See Record_Component_Association (4.3.1) for node structure
3356 --------------------------------------------------
3357 -- 4.4 Expression/Relation/Term/Factor/Primary --
3358 --------------------------------------------------
3361 -- RELATION {and RELATION} | RELATION {and then RELATION}
3362 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3363 -- | RELATION {xor RELATION}
3366 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3367 -- | SIMPLE_EXPRESSION [not] in RANGE
3368 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3370 -- SIMPLE_EXPRESSION ::=
3371 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3373 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3375 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3377 -- No nodes are generated for any of these constructs. Instead, the
3378 -- node for the operator appears directly. When we refer to an
3379 -- expression in this description, we mean any of the possible
3380 -- constituent components of an expression (e.g. identifier is
3381 -- an example of an expression).
3388 -- NUMERIC_LITERAL | null
3389 -- | STRING_LITERAL | AGGREGATE
3390 -- | NAME | QUALIFIED_EXPRESSION
3391 -- | ALLOCATOR | (EXPRESSION)
3393 -- Usually there is no explicit node in the tree for primary. Instead
3394 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3395 -- exceptions. First, there is an explicit node for a null primary.
3398 -- Sloc points to NULL
3399 -- plus fields for expression
3401 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3402 -- that the parser keep track of which subexpressions are enclosed
3403 -- in parentheses, and how many levels of parentheses are used. This
3404 -- information is required for optimization purposes, and also for
3405 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3406 -- conform with ((((1)))) in the body).
3408 -- The parentheses are recorded by keeping a Paren_Count field in every
3409 -- subexpression node (it is actually present in all nodes, but only
3410 -- used in subexpression nodes). This count records the number of
3411 -- levels of parentheses. If the number of levels in the source exceeds
3412 -- the maximum accommodated by this count, then the count is simply left
3413 -- at the maximum value. This means that there are some pathological
3414 -- cases of failure to detect conformance failures (e.g. an expression
3415 -- with 500 levels of parens will conform with one with 501 levels),
3416 -- but we do not need to lose sleep over this.
3418 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3419 -- type N_Parenthesized_Expression used to accurately record unlimited
3420 -- numbers of levels of parentheses. However, it turned out to be a
3421 -- real nuisance to have to take into account the possible presence of
3422 -- this node during semantic analysis, since basically parentheses have
3423 -- zero relevance to semantic analysis.
3425 -- Note: the level of parentheses always present in things like
3426 -- aggregates does not count, only the parentheses in the primary
3427 -- (EXPRESSION) affect the setting of the Paren_Count field.
3429 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3430 -- treated as though it were Empty) if No_Initialization is set True.
3432 --------------------------------------
3433 -- 4.5 Short Circuit Control Forms --
3434 --------------------------------------
3437 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3439 -- Gigi restriction: For both these control forms, the operand and
3440 -- result types are always Standard.Boolean. The expander inserts the
3441 -- required conversion operations where needed to ensure this is the
3445 -- Sloc points to AND of AND THEN
3446 -- Left_Opnd (Node2)
3447 -- Right_Opnd (Node3)
3448 -- Actions (List1-Sem)
3449 -- plus fields for expression
3452 -- Sloc points to OR of OR ELSE
3453 -- Left_Opnd (Node2)
3454 -- Right_Opnd (Node3)
3455 -- Actions (List1-Sem)
3456 -- plus fields for expression
3458 -- Note: The Actions field is used to hold actions associated with
3459 -- the right hand operand. These have to be treated specially since
3460 -- they are not unconditionally executed. See Insert_Actions for a
3461 -- more detailed description of how these actions are handled.
3463 ---------------------------
3464 -- 4.5 Membership Tests --
3465 ---------------------------
3468 -- SIMPLE_EXPRESSION [not] in RANGE
3469 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3471 -- Note: although the grammar above allows only a range or a
3472 -- subtype mark, the parser in fact will accept any simple
3473 -- expression in place of a subtype mark. This means that the
3474 -- semantic analyzer must be prepared to deal with, and diagnose
3475 -- a simple expression other than a name for the right operand.
3476 -- This simplifies error recovery in the parser.
3479 -- Sloc points to IN
3480 -- Left_Opnd (Node2)
3481 -- Right_Opnd (Node3)
3482 -- plus fields for expression
3485 -- Sloc points to NOT of NOT IN
3486 -- Left_Opnd (Node2)
3487 -- Right_Opnd (Node3)
3488 -- plus fields for expression
3490 --------------------
3492 --------------------
3494 -- LOGICAL_OPERATOR ::= and | or | xor
3496 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3498 -- BINARY_ADDING_OPERATOR ::= + | - | &
3500 -- UNARY_ADDING_OPERATOR ::= + | -
3502 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3504 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3506 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3513 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3514 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3515 -- All handling of smalls for multiplication and division is handled
3516 -- by the front end (mod and rem result only from expansion). Gigi
3517 -- thus never needs to worry about small values (for other operators
3518 -- operating on fixed-point, e.g. addition, the small value does not
3519 -- have any semantic effect anyway, these are always integer operations.
3521 -- Gigi restriction: For all operators taking Boolean operands, the
3522 -- type is always Standard.Boolean. The expander inserts the required
3523 -- conversion operations where needed to ensure this is the case.
3526 -- Sloc points to AND
3527 -- Do_Length_Check (Flag4-Sem)
3528 -- plus fields for binary operator
3529 -- plus fields for expression
3532 -- Sloc points to OR
3533 -- Do_Length_Check (Flag4-Sem)
3534 -- plus fields for binary operator
3535 -- plus fields for expression
3538 -- Sloc points to XOR
3539 -- Do_Length_Check (Flag4-Sem)
3540 -- plus fields for binary operator
3541 -- plus fields for expression
3545 -- plus fields for binary operator
3546 -- plus fields for expression
3549 -- Sloc points to /=
3550 -- plus fields for binary operator
3551 -- plus fields for expression
3555 -- plus fields for binary operator
3556 -- plus fields for expression
3559 -- Sloc points to <=
3560 -- plus fields for binary operator
3561 -- plus fields for expression
3565 -- plus fields for binary operator
3566 -- plus fields for expression
3569 -- Sloc points to >=
3570 -- plus fields for binary operator
3571 -- plus fields for expression
3574 -- Sloc points to + (binary)
3575 -- plus fields for binary operator
3576 -- plus fields for expression
3579 -- Sloc points to - (binary)
3580 -- plus fields for binary operator
3581 -- plus fields for expression
3585 -- Is_Component_Left_Opnd (Flag13-Sem)
3586 -- Is_Component_Right_Opnd (Flag14-Sem)
3587 -- plus fields for binary operator
3588 -- plus fields for expression
3592 -- Treat_Fixed_As_Integer (Flag14-Sem)
3593 -- Rounded_Result (Flag18-Sem)
3594 -- plus fields for binary operator
3595 -- plus fields for expression
3599 -- Treat_Fixed_As_Integer (Flag14-Sem)
3600 -- Do_Division_Check (Flag13-Sem)
3601 -- Rounded_Result (Flag18-Sem)
3602 -- plus fields for binary operator
3603 -- plus fields for expression
3606 -- Sloc points to MOD
3607 -- Treat_Fixed_As_Integer (Flag14-Sem)
3608 -- Do_Division_Check (Flag13-Sem)
3609 -- plus fields for binary operator
3610 -- plus fields for expression
3613 -- Sloc points to REM
3614 -- Treat_Fixed_As_Integer (Flag14-Sem)
3615 -- Do_Division_Check (Flag13-Sem)
3616 -- plus fields for binary operator
3617 -- plus fields for expression
3620 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3621 -- Sloc points to **
3622 -- plus fields for binary operator
3623 -- plus fields for expression
3626 -- Sloc points to + (unary)
3627 -- plus fields for unary operator
3628 -- plus fields for expression
3631 -- Sloc points to - (unary)
3632 -- plus fields for unary operator
3633 -- plus fields for expression
3636 -- Sloc points to ABS
3637 -- plus fields for unary operator
3638 -- plus fields for expression
3641 -- Sloc points to NOT
3642 -- plus fields for unary operator
3643 -- plus fields for expression
3645 -- See also shift operators in section B.2
3647 -- Note on fixed-point operations passed to Gigi: For adding operators,
3648 -- the semantics is to treat these simply as integer operations, with
3649 -- the small values being ignored (the bounds are already stored in
3650 -- units of small, so that constraint checking works as usual). For the
3651 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3652 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3653 -- thus treat these nodes in identical manner, ignoring small values.
3655 --------------------------
3656 -- 4.6 Type Conversion --
3657 --------------------------
3659 -- TYPE_CONVERSION ::=
3660 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3662 -- In the (NAME) case, the name is stored as the expression
3664 -- Note: the parser never generates a type conversion node, since it
3665 -- looks like an indexed component which is generated by preference.
3666 -- The semantic pass must correct this misidentification.
3668 -- Gigi handles conversions that involve no change in the root type,
3669 -- and also all conversions from integer to floating-point types.
3670 -- Conversions from floating-point to integer are only handled in
3671 -- the case where Float_Truncate flag set. Other conversions from
3672 -- floating-point to integer (involving rounding) and all conversions
3673 -- involving fixed-point types are handled by the expander.
3675 -- Sprint syntax if Float_Truncate set: X^(Y)
3676 -- Sprint syntax if Conversion_OK set X?(Y)
3677 -- Sprint syntax if both flags set X?^(Y)
3679 -- Note: If either the operand or result type is fixed-point, Gigi will
3680 -- only see a type conversion node with Conversion_OK set. The front end
3681 -- takes care of all handling of small's for fixed-point conversions.
3683 -- N_Type_Conversion
3684 -- Sloc points to first token of subtype mark
3685 -- Subtype_Mark (Node4)
3686 -- Expression (Node3)
3687 -- Do_Tag_Check (Flag13-Sem)
3688 -- Do_Length_Check (Flag4-Sem)
3689 -- Do_Overflow_Check (Flag17-Sem)
3690 -- Float_Truncate (Flag11-Sem)
3691 -- Rounded_Result (Flag18-Sem)
3692 -- Conversion_OK (Flag14-Sem)
3693 -- plus fields for expression
3695 -- Note: if a range check is required, then the Do_Range_Check flag
3696 -- is set in the Expression with the check being done against the
3697 -- target type range (after the base type conversion, if any).
3699 -------------------------------
3700 -- 4.7 Qualified Expression --
3701 -------------------------------
3703 -- QUALIFIED_EXPRESSION ::=
3704 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3706 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3707 -- the expression, so the Expression field of this node always points
3708 -- to a parenthesized expression in this case (i.e. Paren_Count will
3709 -- always be non-zero for the referenced expression if it is not an
3712 -- N_Qualified_Expression
3713 -- Sloc points to apostrophe
3714 -- Subtype_Mark (Node4)
3715 -- Expression (Node3) expression or aggregate
3716 -- plus fields for expression
3718 --------------------
3720 --------------------
3723 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3725 -- Sprint syntax (when storage pool present)
3726 -- new xxx (storage_pool = pool)
3729 -- Sloc points to NEW
3730 -- Expression (Node3) subtype indication or qualified expression
3731 -- Storage_Pool (Node1-Sem)
3732 -- Procedure_To_Call (Node2-Sem)
3733 -- Coextensions (Elist4-Sem)
3734 -- Null_Exclusion_Present (Flag11)
3735 -- No_Initialization (Flag13-Sem)
3736 -- Is_Static_Coextension (Flag14-Sem)
3737 -- Do_Storage_Check (Flag17-Sem)
3738 -- Is_Dynamic_Coextension (Flag18-Sem)
3739 -- plus fields for expression
3741 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3742 -- This flag has a special function in conjunction with the restriction
3743 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3744 -- is not set. This means that if a source allocator is replaced with
3745 -- a constructed allocator, the Comes_From_Source flag should be copied
3746 -- to the newly created allocator.
3748 ---------------------------------
3749 -- 5.1 Sequence Of Statements --
3750 ---------------------------------
3752 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3754 -- Note: Although the parser will not accept a declaration as a
3755 -- statement, the semantic analyzer may insert declarations (e.g.
3756 -- declarations of implicit types needed for execution of other
3757 -- statements) into a sequence of statements, so the code generator
3758 -- should be prepared to accept a declaration where a statement is
3759 -- expected. Note also that pragmas can appear as statements.
3761 --------------------
3763 --------------------
3766 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3768 -- There is no explicit node in the tree for a statement. Instead, the
3769 -- individual statement appears directly. Labels are treated as a
3770 -- kind of statement, i.e. they are linked into a statement list at
3771 -- the point they appear, so the labeled statement appears following
3772 -- the label or labels in the statement list.
3774 ---------------------------
3775 -- 5.1 Simple Statement --
3776 ---------------------------
3778 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3779 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3780 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3781 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3782 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3783 -- | ABORT_STATEMENT | RAISE_STATEMENT
3786 -----------------------------
3787 -- 5.1 Compound Statement --
3788 -----------------------------
3790 -- COMPOUND_STATEMENT ::=
3791 -- IF_STATEMENT | CASE_STATEMENT
3792 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3793 -- | EXTENDED_RETURN_STATEMENT
3794 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3796 -------------------------
3797 -- 5.1 Null Statement --
3798 -------------------------
3800 -- NULL_STATEMENT ::= null;
3803 -- Sloc points to NULL
3809 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3811 -- Note that the occurrence of a label is not a defining identifier,
3812 -- but rather a referencing occurrence. The defining occurrence is
3813 -- in the implicit label declaration which occurs in the innermost
3817 -- Sloc points to <<
3818 -- Identifier (Node1) direct name of statement identifier
3819 -- Exception_Junk (Flag8-Sem)
3821 -------------------------------
3822 -- 5.1 Statement Identifier --
3823 -------------------------------
3825 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
3827 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3828 -- (not an OPERATOR_SYMBOL)
3830 -------------------------------
3831 -- 5.2 Assignment Statement --
3832 -------------------------------
3834 -- ASSIGNMENT_STATEMENT ::=
3835 -- variable_NAME := EXPRESSION;
3837 -- N_Assignment_Statement
3838 -- Sloc points to :=
3840 -- Expression (Node3)
3841 -- Do_Tag_Check (Flag13-Sem)
3842 -- Do_Length_Check (Flag4-Sem)
3843 -- Forwards_OK (Flag5-Sem)
3844 -- Backwards_OK (Flag6-Sem)
3845 -- No_Ctrl_Actions (Flag7-Sem)
3847 -- Note: if a range check is required, then the Do_Range_Check flag
3848 -- is set in the Expression (right hand side), with the check being
3849 -- done against the type of the Name (left hand side).
3851 -- Note: the back end places some restrictions on the form of the
3852 -- Expression field. If the object being assigned to is Atomic, then
3853 -- the Expression may not have the form of an aggregate (since this
3854 -- might cause the back end to generate separate assignments). It
3855 -- also cannot be a reference to an object marked as a true constant
3856 -- (Is_True_Constant flag set), where the object is itself initialized
3857 -- with an aggregate. If necessary the front end must generate an
3858 -- extra temporary (with Is_True_Constant set False), and initialize
3859 -- this temporary as required (the temporary itself is not atomic).
3861 -----------------------
3862 -- 5.3 If Statement --
3863 -----------------------
3866 -- if CONDITION then
3867 -- SEQUENCE_OF_STATEMENTS
3868 -- {elsif CONDITION then
3869 -- SEQUENCE_OF_STATEMENTS}
3871 -- SEQUENCE_OF_STATEMENTS]
3874 -- Gigi restriction: This expander ensures that the type of the
3875 -- Condition fields is always Standard.Boolean, even if the type
3876 -- in the source is some non-standard boolean type.
3879 -- Sloc points to IF
3880 -- Condition (Node1)
3881 -- Then_Statements (List2)
3882 -- Elsif_Parts (List3) (set to No_List if none present)
3883 -- Else_Statements (List4) (set to No_List if no else part present)
3884 -- End_Span (Uint5) (set to No_Uint if expander generated)
3887 -- Sloc points to ELSIF
3888 -- Condition (Node1)
3889 -- Then_Statements (List2)
3890 -- Condition_Actions (List3-Sem)
3892 --------------------
3894 --------------------
3896 -- CONDITION ::= boolean_EXPRESSION
3898 -------------------------
3899 -- 5.4 Case Statement --
3900 -------------------------
3902 -- CASE_STATEMENT ::=
3903 -- case EXPRESSION is
3904 -- CASE_STATEMENT_ALTERNATIVE
3905 -- {CASE_STATEMENT_ALTERNATIVE}
3908 -- Note: the Alternatives can contain pragmas. These only occur at
3909 -- the start of the list, since any pragmas occurring after the first
3910 -- alternative are absorbed into the corresponding statement sequence.
3913 -- Sloc points to CASE
3914 -- Expression (Node3)
3915 -- Alternatives (List4)
3916 -- End_Span (Uint5) (set to No_Uint if expander generated)
3918 -------------------------------------
3919 -- 5.4 Case Statement Alternative --
3920 -------------------------------------
3922 -- CASE_STATEMENT_ALTERNATIVE ::=
3923 -- when DISCRETE_CHOICE_LIST =>
3924 -- SEQUENCE_OF_STATEMENTS
3926 -- N_Case_Statement_Alternative
3927 -- Sloc points to WHEN
3928 -- Discrete_Choices (List4)
3929 -- Statements (List3)
3931 -------------------------
3932 -- 5.5 Loop Statement --
3933 -------------------------
3935 -- LOOP_STATEMENT ::=
3936 -- [loop_STATEMENT_IDENTIFIER :]
3937 -- [ITERATION_SCHEME] loop
3938 -- SEQUENCE_OF_STATEMENTS
3939 -- end loop [loop_IDENTIFIER];
3941 -- Note: The occurrence of a loop label is not a defining identifier
3942 -- but rather a referencing occurrence. The defining occurrence is in
3943 -- the implicit label declaration which occurs in the innermost
3946 -- Note: there is always a loop statement identifier present in
3947 -- the tree, even if none was given in the source. In the case where
3948 -- no loop identifier is given in the source, the parser creates
3949 -- a name of the form _Loop_n, where n is a decimal integer (the
3950 -- two underlines ensure that the loop names created in this manner
3951 -- do not conflict with any user defined identifiers), and the flag
3952 -- Has_Created_Identifier is set to True. The only exception to the
3953 -- rule that all loop statement nodes have identifiers occurs for
3954 -- loops constructed by the expander, and the semantic analyzer will
3955 -- create and supply dummy loop identifiers in these cases.
3958 -- Sloc points to LOOP
3959 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3960 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3961 -- Statements (List3)
3962 -- End_Label (Node4)
3963 -- Has_Created_Identifier (Flag15)
3964 -- Is_Null_Loop (Flag16)
3965 -- Suppress_Loop_Warnings (Flag17)
3967 --------------------------
3968 -- 5.5 Iteration Scheme --
3969 --------------------------
3971 -- ITERATION_SCHEME ::=
3972 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3974 -- Gigi restriction: This expander ensures that the type of the
3975 -- Condition field is always Standard.Boolean, even if the type
3976 -- in the source is some non-standard boolean type.
3978 -- N_Iteration_Scheme
3979 -- Sloc points to WHILE or FOR
3980 -- Condition (Node1) (set to Empty if FOR case)
3981 -- Condition_Actions (List3-Sem)
3982 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3984 ---------------------------------------
3985 -- 5.5 Loop parameter specification --
3986 ---------------------------------------
3988 -- LOOP_PARAMETER_SPECIFICATION ::=
3989 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3991 -- N_Loop_Parameter_Specification
3992 -- Sloc points to first identifier
3993 -- Defining_Identifier (Node1)
3994 -- Reverse_Present (Flag15)
3995 -- Discrete_Subtype_Definition (Node4)
3997 --------------------------
3998 -- 5.6 Block Statement --
3999 --------------------------
4001 -- BLOCK_STATEMENT ::=
4002 -- [block_STATEMENT_IDENTIFIER:]
4004 -- DECLARATIVE_PART]
4006 -- HANDLED_SEQUENCE_OF_STATEMENTS
4007 -- end [block_IDENTIFIER];
4009 -- Note that the occurrence of a block identifier is not a defining
4010 -- identifier, but rather a referencing occurrence. The defining
4011 -- occurrence is an E_Block entity declared by the implicit label
4012 -- declaration which occurs in the innermost enclosing block statement
4013 -- or body; the block identifier denotes that E_Block.
4015 -- For block statements that come from source code, there is always a
4016 -- block statement identifier present in the tree, denoting an
4017 -- E_Block. In the case where no block identifier is given in the
4018 -- source, the parser creates a name of the form B_n, where n is a
4019 -- decimal integer, and the flag Has_Created_Identifier is set to
4020 -- True. Blocks constructed by the expander usually have no identifier,
4021 -- and no corresponding entity.
4023 -- Note: the block statement created for an extended return statement
4024 -- has an entity, and this entity is an E_Return_Statement, rather than
4025 -- the usual E_Block.
4027 -- Note: Exception_Junk is set for the wrapping blocks created during
4028 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4030 -- N_Block_Statement
4031 -- Sloc points to DECLARE or BEGIN
4032 -- Identifier (Node1) block direct name (set to Empty if not present)
4033 -- Declarations (List2) (set to No_List if no DECLARE part)
4034 -- Handled_Statement_Sequence (Node4)
4035 -- Is_Task_Master (Flag5-Sem)
4036 -- Activation_Chain_Entity (Node3-Sem)
4037 -- Has_Created_Identifier (Flag15)
4038 -- Is_Task_Allocation_Block (Flag6)
4039 -- Is_Asynchronous_Call_Block (Flag7)
4040 -- Exception_Junk (Flag8-Sem)
4042 -------------------------
4043 -- 5.7 Exit Statement --
4044 -------------------------
4046 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4048 -- Gigi restriction: This expander ensures that the type of the
4049 -- Condition field is always Standard.Boolean, even if the type
4050 -- in the source is some non-standard boolean type.
4053 -- Sloc points to EXIT
4054 -- Name (Node2) (set to Empty if no loop name present)
4055 -- Condition (Node1) (set to Empty if no when part present)
4057 -------------------------
4058 -- 5.9 Goto Statement --
4059 -------------------------
4061 -- GOTO_STATEMENT ::= goto label_NAME;
4064 -- Sloc points to GOTO
4066 -- Exception_Junk (Flag8-Sem)
4068 ---------------------------------
4069 -- 6.1 Subprogram Declaration --
4070 ---------------------------------
4072 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4074 -- N_Subprogram_Declaration
4075 -- Sloc points to FUNCTION or PROCEDURE
4076 -- Specification (Node1)
4077 -- Body_To_Inline (Node3-Sem)
4078 -- Corresponding_Body (Node5-Sem)
4079 -- Parent_Spec (Node4-Sem)
4081 ------------------------------------------
4082 -- 6.1 Abstract Subprogram Declaration --
4083 ------------------------------------------
4085 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4086 -- SUBPROGRAM_SPECIFICATION is abstract;
4088 -- N_Abstract_Subprogram_Declaration
4089 -- Sloc points to ABSTRACT
4090 -- Specification (Node1)
4092 -----------------------------------
4093 -- 6.1 Subprogram Specification --
4094 -----------------------------------
4096 -- SUBPROGRAM_SPECIFICATION ::=
4097 -- [[not] overriding]
4098 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4099 -- | [[not] overriding]
4100 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4102 -- Note: there are no separate nodes for the profiles, instead the
4103 -- information appears directly in the following nodes.
4105 -- N_Function_Specification
4106 -- Sloc points to FUNCTION
4107 -- Defining_Unit_Name (Node1) (the designator)
4108 -- Elaboration_Boolean (Node2-Sem)
4109 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4110 -- Null_Exclusion_Present (Flag11)
4111 -- Result_Definition (Node4) for result subtype
4112 -- Generic_Parent (Node5-Sem)
4113 -- Must_Override (Flag14) set if overriding indicator present
4114 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4116 -- N_Procedure_Specification
4117 -- Sloc points to PROCEDURE
4118 -- Defining_Unit_Name (Node1)
4119 -- Elaboration_Boolean (Node2-Sem)
4120 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4121 -- Generic_Parent (Node5-Sem)
4122 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4123 -- Must_Override (Flag14) set if overriding indicator present
4124 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4126 -- Note: overriding indicator is an Ada 2005 feature
4128 ---------------------
4129 -- 6.1 Designator --
4130 ---------------------
4133 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4135 -- Designators that are simply identifiers or operator symbols appear
4136 -- directly in the tree in this form. The following node is used only
4137 -- in the case where the designator has a parent unit name component.
4140 -- Sloc points to period
4141 -- Name (Node2) holds the parent unit name. Note that this is always
4142 -- non-Empty, since this node is only used for the case where a
4143 -- parent library unit package name is present.
4144 -- Identifier (Node1)
4146 -- Note that the identifier can also be an operator symbol here
4148 ------------------------------
4149 -- 6.1 Defining Designator --
4150 ------------------------------
4152 -- DEFINING_DESIGNATOR ::=
4153 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4155 -------------------------------------
4156 -- 6.1 Defining Program Unit Name --
4157 -------------------------------------
4159 -- DEFINING_PROGRAM_UNIT_NAME ::=
4160 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4162 -- The parent unit name is present only in the case of a child unit
4163 -- name (permissible only for Ada 95 for a library level unit, i.e.
4164 -- a unit at scope level one). If no such name is present, the defining
4165 -- program unit name is represented simply as the defining identifier.
4166 -- In the child unit case, the following node is used to represent the
4169 -- N_Defining_Program_Unit_Name
4170 -- Sloc points to period
4171 -- Name (Node2) holds the parent unit name. Note that this is always
4172 -- non-Empty, since this node is only used for the case where a
4173 -- parent unit name is present.
4174 -- Defining_Identifier (Node1)
4176 --------------------------
4177 -- 6.1 Operator Symbol --
4178 --------------------------
4180 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4182 -- Note: the fields of the N_Operator_Symbol node are laid out to
4183 -- match the corresponding fields of an N_Character_Literal node. This
4184 -- allows easy conversion of the operator symbol node into a character
4185 -- literal node in the case where a string constant of the form of an
4186 -- operator symbol is scanned out as such, but turns out semantically
4187 -- to be a string literal that is not an operator. For details see
4188 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4190 -- N_Operator_Symbol
4191 -- Sloc points to literal
4192 -- Chars (Name1) contains the Name_Id for the operator symbol
4193 -- Strval (Str3) Id of string value. This is used if the operator
4194 -- symbol turns out to be a normal string after all.
4195 -- Entity (Node4-Sem)
4196 -- Associated_Node (Node4-Sem)
4197 -- Has_Private_View (Flag11-Sem) set in generic units.
4198 -- Etype (Node5-Sem)
4200 -- Note: the Strval field may be set to No_String for generated
4201 -- operator symbols that are known not to be string literals
4204 -----------------------------------
4205 -- 6.1 Defining Operator Symbol --
4206 -----------------------------------
4208 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4210 -- A defining operator symbol is an entity, which has additional
4211 -- fields depending on the setting of the Ekind field. These
4212 -- additional fields are defined (and access subprograms declared)
4213 -- in package Einfo.
4215 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4216 -- are deliberately layed out to match the layout of fields in an
4217 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4218 -- an operator symbol node into a defining operator symbol node.
4219 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4220 -- for further details.
4222 -- N_Defining_Operator_Symbol
4223 -- Sloc points to literal
4224 -- Chars (Name1) contains the Name_Id for the operator symbol
4225 -- Next_Entity (Node2-Sem)
4226 -- Scope (Node3-Sem)
4227 -- Etype (Node5-Sem)
4229 ----------------------------
4230 -- 6.1 Parameter Profile --
4231 ----------------------------
4233 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4235 ---------------------------------------
4236 -- 6.1 Parameter and Result Profile --
4237 ---------------------------------------
4239 -- PARAMETER_AND_RESULT_PROFILE ::=
4240 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4241 -- | [FORMAL_PART] return ACCESS_DEFINITION
4243 -- There is no explicit node in the tree for a parameter and result
4244 -- profile. Instead the information appears directly in the parent.
4246 ----------------------
4247 -- 6.1 Formal part --
4248 ----------------------
4251 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4253 ----------------------------------
4254 -- 6.1 Parameter specification --
4255 ----------------------------------
4257 -- PARAMETER_SPECIFICATION ::=
4258 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4259 -- [:= DEFAULT_EXPRESSION]
4260 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4261 -- [:= DEFAULT_EXPRESSION]
4263 -- Although the syntax allows multiple identifiers in the list, the
4264 -- semantics is as though successive specifications were given with
4265 -- identical type definition and expression components. To simplify
4266 -- semantic processing, the parser represents a multiple declaration
4267 -- case as a sequence of single Specifications, using the More_Ids and
4268 -- Prev_Ids flags to preserve the original source form as described
4269 -- in the section on "Handling of Defining Identifier Lists".
4271 -- N_Parameter_Specification
4272 -- Sloc points to first identifier
4273 -- Defining_Identifier (Node1)
4274 -- In_Present (Flag15)
4275 -- Out_Present (Flag17)
4276 -- Null_Exclusion_Present (Flag11)
4277 -- Parameter_Type (Node2) subtype mark or access definition
4278 -- Expression (Node3) (set to Empty if no default expression present)
4279 -- Do_Accessibility_Check (Flag13-Sem)
4280 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4281 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4282 -- Default_Expression (Node5-Sem)
4288 -- MODE ::= [in] | in out | out
4290 -- There is no explicit node in the tree for the Mode. Instead the
4291 -- In_Present and Out_Present flags are set in the parent node to
4292 -- record the presence of keywords specifying the mode.
4294 --------------------------
4295 -- 6.3 Subprogram Body --
4296 --------------------------
4298 -- SUBPROGRAM_BODY ::=
4299 -- SUBPROGRAM_SPECIFICATION is
4302 -- HANDLED_SEQUENCE_OF_STATEMENTS
4303 -- end [DESIGNATOR];
4305 -- N_Subprogram_Body
4306 -- Sloc points to FUNCTION or PROCEDURE
4307 -- Specification (Node1)
4308 -- Declarations (List2)
4309 -- Handled_Statement_Sequence (Node4)
4310 -- Activation_Chain_Entity (Node3-Sem)
4311 -- Corresponding_Spec (Node5-Sem)
4312 -- Acts_As_Spec (Flag4-Sem)
4313 -- Bad_Is_Detected (Flag15) used only by parser
4314 -- Do_Storage_Check (Flag17-Sem)
4315 -- Has_Priority_Pragma (Flag6-Sem)
4316 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4317 -- Is_Entry_Barrier_Function (Flag8-Sem)
4318 -- Is_Task_Master (Flag5-Sem)
4319 -- Was_Originally_Stub (Flag13-Sem)
4320 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4322 -----------------------------------
4323 -- 6.4 Procedure Call Statement --
4324 -----------------------------------
4326 -- PROCEDURE_CALL_STATEMENT ::=
4327 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4329 -- Note: the reason that a procedure call has expression fields is
4330 -- that it semantically resembles an expression, e.g. overloading is
4331 -- allowed and a type is concocted for semantic processing purposes.
4332 -- Certain of these fields, such as Parens are not relevant, but it
4333 -- is easier to just supply all of them together!
4335 -- N_Procedure_Call_Statement
4336 -- Sloc points to first token of name or prefix
4337 -- Name (Node2) stores name or prefix
4338 -- Parameter_Associations (List3) (set to No_List if no
4339 -- actual parameter part)
4340 -- First_Named_Actual (Node4-Sem)
4341 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4342 -- Do_Tag_Check (Flag13-Sem)
4343 -- No_Elaboration_Check (Flag14-Sem)
4344 -- Parameter_List_Truncated (Flag17-Sem)
4345 -- ABE_Is_Certain (Flag18-Sem)
4346 -- plus fields for expression
4348 -- If any IN parameter requires a range check, then the corresponding
4349 -- argument expression has the Do_Range_Check flag set, and the range
4350 -- check is done against the formal type. Note that this argument
4351 -- expression may appear directly in the Parameter_Associations list,
4352 -- or may be a descendent of an N_Parameter_Association node that
4353 -- appears in this list.
4355 ------------------------
4356 -- 6.4 Function Call --
4357 ------------------------
4359 -- FUNCTION_CALL ::=
4360 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4362 -- Note: the parser may generate an indexed component node or simply
4363 -- a name node instead of a function call node. The semantic pass must
4364 -- correct this misidentification.
4367 -- Sloc points to first token of name or prefix
4368 -- Name (Node2) stores name or prefix
4369 -- Parameter_Associations (List3) (set to No_List if no
4370 -- actual parameter part)
4371 -- First_Named_Actual (Node4-Sem)
4372 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4373 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4374 -- Do_Tag_Check (Flag13-Sem)
4375 -- No_Elaboration_Check (Flag14-Sem)
4376 -- Parameter_List_Truncated (Flag17-Sem)
4377 -- ABE_Is_Certain (Flag18-Sem)
4378 -- plus fields for expression
4380 --------------------------------
4381 -- 6.4 Actual Parameter Part --
4382 --------------------------------
4384 -- ACTUAL_PARAMETER_PART ::=
4385 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4387 --------------------------------
4388 -- 6.4 Parameter Association --
4389 --------------------------------
4391 -- PARAMETER_ASSOCIATION ::=
4392 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4394 -- Note: the N_Parameter_Association node is built only if a formal
4395 -- parameter selector name is present, otherwise the parameter
4396 -- association appears in the tree simply as the node for the
4397 -- explicit actual parameter.
4399 -- N_Parameter_Association
4400 -- Sloc points to formal parameter
4401 -- Selector_Name (Node2) (always non-Empty)
4402 -- Explicit_Actual_Parameter (Node3)
4403 -- Next_Named_Actual (Node4-Sem)
4405 ---------------------------
4406 -- 6.4 Actual Parameter --
4407 ---------------------------
4409 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4411 ---------------------------
4412 -- 6.5 Return Statement --
4413 ---------------------------
4415 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4417 -- In Ada 2005, we have:
4419 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4421 -- EXTENDED_RETURN_STATEMENT ::=
4422 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4423 -- [:= EXPRESSION] [do
4424 -- HANDLED_SEQUENCE_OF_STATEMENTS
4427 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4429 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4430 -- "return statement" is defined in 6.5 to mean a
4431 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4433 -- N_Return_Statement
4434 -- Sloc points to RETURN
4435 -- Return_Statement_Entity (Node5-Sem)
4436 -- Expression (Node3) (set to Empty if no expression present)
4437 -- Storage_Pool (Node1-Sem)
4438 -- Procedure_To_Call (Node2-Sem)
4439 -- Do_Tag_Check (Flag13-Sem)
4440 -- By_Ref (Flag5-Sem)
4441 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4443 -- N_Return_Statement represents a simple_return_statement, and is
4444 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4445 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4446 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4447 -- as Make_Simple_Return_Statement in Sem_Util.
4449 -- Note: Return_Statement_Entity points to an E_Return_Statement
4451 -- If a range check is required, then Do_Range_Check is set on the
4452 -- Expression. The check is against the return subtype of the function.
4454 -- N_Extended_Return_Statement
4455 -- Sloc points to RETURN
4456 -- Return_Statement_Entity (Node5-Sem)
4457 -- Return_Object_Declarations (List3)
4458 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4459 -- Storage_Pool (Node1-Sem)
4460 -- Procedure_To_Call (Node2-Sem)
4461 -- Do_Tag_Check (Flag13-Sem)
4462 -- By_Ref (Flag5-Sem)
4464 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4465 -- Note that Return_Object_Declarations is a list containing the
4466 -- N_Object_Declaration -- see comment on this field above.
4467 -- The declared object will have Is_Return_Object = True.
4468 -- There is no such syntactic category as return_object_declaration
4469 -- in the RM. Return_Object_Declarations represents this portion of
4470 -- the syntax for EXTENDED_RETURN_STATEMENT:
4471 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4474 -- There are two entities associated with an extended_return_statement:
4475 -- the Return_Statement_Entity represents the statement itself, and the
4476 -- Defining_Identifier of the Object_Declaration in
4477 -- Return_Object_Declarations represents the object being
4478 -- returned. N_Simple_Return_Statement has only the former.
4480 ------------------------------
4481 -- 7.1 Package Declaration --
4482 ------------------------------
4484 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4486 -- Note: the activation chain entity for a package spec is used for
4487 -- all tasks declared in the package spec, or in the package body.
4489 -- N_Package_Declaration
4490 -- Sloc points to PACKAGE
4491 -- Specification (Node1)
4492 -- Corresponding_Body (Node5-Sem)
4493 -- Parent_Spec (Node4-Sem)
4494 -- Activation_Chain_Entity (Node3-Sem)
4496 --------------------------------
4497 -- 7.1 Package Specification --
4498 --------------------------------
4500 -- PACKAGE_SPECIFICATION ::=
4501 -- package DEFINING_PROGRAM_UNIT_NAME is
4502 -- {BASIC_DECLARATIVE_ITEM}
4504 -- {BASIC_DECLARATIVE_ITEM}]
4505 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4507 -- N_Package_Specification
4508 -- Sloc points to PACKAGE
4509 -- Defining_Unit_Name (Node1)
4510 -- Visible_Declarations (List2)
4511 -- Private_Declarations (List3) (set to No_List if no private
4513 -- End_Label (Node4)
4514 -- Generic_Parent (Node5-Sem)
4515 -- Limited_View_Installed (Flag18-Sem)
4517 -----------------------
4518 -- 7.1 Package Body --
4519 -----------------------
4522 -- package body DEFINING_PROGRAM_UNIT_NAME is
4525 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4526 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4529 -- Sloc points to PACKAGE
4530 -- Defining_Unit_Name (Node1)
4531 -- Declarations (List2)
4532 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4533 -- Corresponding_Spec (Node5-Sem)
4534 -- Was_Originally_Stub (Flag13-Sem)
4536 -- Note: if a source level package does not contain a handled sequence
4537 -- of statements, then the parser supplies a dummy one with a null
4538 -- sequence of statements. Comes_From_Source will be False in this
4539 -- constructed sequence. The reason we need this is for the End_Label
4540 -- field in the HSS.
4542 -----------------------------------
4543 -- 7.4 Private Type Declaration --
4544 -----------------------------------
4546 -- PRIVATE_TYPE_DECLARATION ::=
4547 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4548 -- is [[abstract] tagged] [limited] private;
4550 -- Note: TAGGED is not permitted in Ada 83 mode
4552 -- N_Private_Type_Declaration
4553 -- Sloc points to TYPE
4554 -- Defining_Identifier (Node1)
4555 -- Discriminant_Specifications (List4) (set to No_List if no
4556 -- discriminant part)
4557 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4558 -- Abstract_Present (Flag4)
4559 -- Tagged_Present (Flag15)
4560 -- Limited_Present (Flag17)
4562 ----------------------------------------
4563 -- 7.4 Private Extension Declaration --
4564 ----------------------------------------
4566 -- PRIVATE_EXTENSION_DECLARATION ::=
4567 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4568 -- [abstract] [limited | synchronized]
4569 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4572 -- Note: LIMITED, and private extension declarations are not allowed
4575 -- N_Private_Extension_Declaration
4576 -- Sloc points to TYPE
4577 -- Defining_Identifier (Node1)
4578 -- Discriminant_Specifications (List4) (set to No_List if no
4579 -- discriminant part)
4580 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4581 -- Abstract_Present (Flag4)
4582 -- Limited_Present (Flag17)
4583 -- Synchronized_Present (Flag7)
4584 -- Subtype_Indication (Node5)
4585 -- Interface_List (List2) (set to No_List if none)
4587 ---------------------
4588 -- 8.4 Use Clause --
4589 ---------------------
4591 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4593 -----------------------------
4594 -- 8.4 Use Package Clause --
4595 -----------------------------
4597 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4599 -- N_Use_Package_Clause
4600 -- Sloc points to USE
4602 -- Next_Use_Clause (Node3-Sem)
4603 -- Hidden_By_Use_Clause (Elist4-Sem)
4605 --------------------------
4606 -- 8.4 Use Type Clause --
4607 --------------------------
4609 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4611 -- Note: use type clause is not permitted in Ada 83 mode
4613 -- N_Use_Type_Clause
4614 -- Sloc points to USE
4615 -- Subtype_Marks (List2)
4616 -- Next_Use_Clause (Node3-Sem)
4617 -- Hidden_By_Use_Clause (Elist4-Sem)
4619 -------------------------------
4620 -- 8.5 Renaming Declaration --
4621 -------------------------------
4623 -- RENAMING_DECLARATION ::=
4624 -- OBJECT_RENAMING_DECLARATION
4625 -- | EXCEPTION_RENAMING_DECLARATION
4626 -- | PACKAGE_RENAMING_DECLARATION
4627 -- | SUBPROGRAM_RENAMING_DECLARATION
4628 -- | GENERIC_RENAMING_DECLARATION
4630 --------------------------------------
4631 -- 8.5 Object Renaming Declaration --
4632 --------------------------------------
4634 -- OBJECT_RENAMING_DECLARATION ::=
4635 -- DEFINING_IDENTIFIER :
4636 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4637 -- | DEFINING_IDENTIFIER :
4638 -- ACCESS_DEFINITION renames object_NAME;
4640 -- Note: Access_Definition is an optional field that gives support to
4641 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4642 -- Subtype_Indication field or else the Access_Definition field.
4644 -- N_Object_Renaming_Declaration
4645 -- Sloc points to first identifier
4646 -- Defining_Identifier (Node1)
4647 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4648 -- Subtype_Mark (Node4) (set to Empty if not present)
4649 -- Access_Definition (Node3) (set to Empty if not present)
4651 -- Corresponding_Generic_Association (Node5-Sem)
4653 -----------------------------------------
4654 -- 8.5 Exception Renaming Declaration --
4655 -----------------------------------------
4657 -- EXCEPTION_RENAMING_DECLARATION ::=
4658 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4660 -- N_Exception_Renaming_Declaration
4661 -- Sloc points to first identifier
4662 -- Defining_Identifier (Node1)
4665 ---------------------------------------
4666 -- 8.5 Package Renaming Declaration --
4667 ---------------------------------------
4669 -- PACKAGE_RENAMING_DECLARATION ::=
4670 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4672 -- N_Package_Renaming_Declaration
4673 -- Sloc points to PACKAGE
4674 -- Defining_Unit_Name (Node1)
4676 -- Parent_Spec (Node4-Sem)
4678 ------------------------------------------
4679 -- 8.5 Subprogram Renaming Declaration --
4680 ------------------------------------------
4682 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4683 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4685 -- N_Subprogram_Renaming_Declaration
4686 -- Sloc points to RENAMES
4687 -- Specification (Node1)
4689 -- Parent_Spec (Node4-Sem)
4690 -- Corresponding_Spec (Node5-Sem)
4691 -- Corresponding_Formal_Spec (Node3-Sem)
4692 -- From_Default (Flag6-Sem)
4694 -----------------------------------------
4695 -- 8.5.5 Generic Renaming Declaration --
4696 -----------------------------------------
4698 -- GENERIC_RENAMING_DECLARATION ::=
4699 -- generic package DEFINING_PROGRAM_UNIT_NAME
4700 -- renames generic_package_NAME
4701 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4702 -- renames generic_procedure_NAME
4703 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4704 -- renames generic_function_NAME
4706 -- N_Generic_Package_Renaming_Declaration
4707 -- Sloc points to GENERIC
4708 -- Defining_Unit_Name (Node1)
4710 -- Parent_Spec (Node4-Sem)
4712 -- N_Generic_Procedure_Renaming_Declaration
4713 -- Sloc points to GENERIC
4714 -- Defining_Unit_Name (Node1)
4716 -- Parent_Spec (Node4-Sem)
4718 -- N_Generic_Function_Renaming_Declaration
4719 -- Sloc points to GENERIC
4720 -- Defining_Unit_Name (Node1)
4722 -- Parent_Spec (Node4-Sem)
4724 --------------------------------
4725 -- 9.1 Task Type Declaration --
4726 --------------------------------
4728 -- TASK_TYPE_DECLARATION ::=
4729 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4730 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4732 -- N_Task_Type_Declaration
4733 -- Sloc points to TASK
4734 -- Defining_Identifier (Node1)
4735 -- Discriminant_Specifications (List4) (set to No_List if no
4736 -- discriminant part)
4737 -- Interface_List (List2) (set to No_List if none)
4738 -- Task_Definition (Node3) (set to Empty if not present)
4739 -- Corresponding_Body (Node5-Sem)
4741 ----------------------------------
4742 -- 9.1 Single Task Declaration --
4743 ----------------------------------
4745 -- SINGLE_TASK_DECLARATION ::=
4746 -- task DEFINING_IDENTIFIER
4747 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4749 -- N_Single_Task_Declaration
4750 -- Sloc points to TASK
4751 -- Defining_Identifier (Node1)
4752 -- Interface_List (List2) (set to No_List if none)
4753 -- Task_Definition (Node3) (set to Empty if not present)
4755 --------------------------
4756 -- 9.1 Task Definition --
4757 --------------------------
4759 -- TASK_DEFINITION ::=
4763 -- end [task_IDENTIFIER]
4765 -- Note: as a result of semantic analysis, the list of task items can
4766 -- include implicit type declarations resulting from entry families.
4768 -- N_Task_Definition
4769 -- Sloc points to first token of task definition
4770 -- Visible_Declarations (List2)
4771 -- Private_Declarations (List3) (set to No_List if no private part)
4772 -- End_Label (Node4)
4773 -- Has_Priority_Pragma (Flag6-Sem)
4774 -- Has_Storage_Size_Pragma (Flag5-Sem)
4775 -- Has_Task_Info_Pragma (Flag7-Sem)
4776 -- Has_Task_Name_Pragma (Flag8-Sem)
4777 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4779 --------------------
4781 --------------------
4783 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4785 --------------------
4787 --------------------
4790 -- task body task_DEFINING_IDENTIFIER is
4793 -- HANDLED_SEQUENCE_OF_STATEMENTS
4794 -- end [task_IDENTIFIER];
4796 -- Gigi restriction: This node never appears
4799 -- Sloc points to TASK
4800 -- Defining_Identifier (Node1)
4801 -- Declarations (List2)
4802 -- Handled_Statement_Sequence (Node4)
4803 -- Is_Task_Master (Flag5-Sem)
4804 -- Activation_Chain_Entity (Node3-Sem)
4805 -- Corresponding_Spec (Node5-Sem)
4806 -- Was_Originally_Stub (Flag13-Sem)
4808 -------------------------------------
4809 -- 9.4 Protected Type Declaration --
4810 -------------------------------------
4812 -- PROTECTED_TYPE_DECLARATION ::=
4813 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4814 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4816 -- Note: protected type declarations are not permitted in Ada 83 mode
4818 -- N_Protected_Type_Declaration
4819 -- Sloc points to PROTECTED
4820 -- Defining_Identifier (Node1)
4821 -- Discriminant_Specifications (List4) (set to No_List if no
4822 -- discriminant part)
4823 -- Interface_List (List2) (set to No_List if none)
4824 -- Protected_Definition (Node3)
4825 -- Corresponding_Body (Node5-Sem)
4827 ---------------------------------------
4828 -- 9.4 Single Protected Declaration --
4829 ---------------------------------------
4831 -- SINGLE_PROTECTED_DECLARATION ::=
4832 -- protected DEFINING_IDENTIFIER
4833 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4835 -- Note: single protected declarations are not allowed in Ada 83 mode
4837 -- N_Single_Protected_Declaration
4838 -- Sloc points to PROTECTED
4839 -- Defining_Identifier (Node1)
4840 -- Interface_List (List2) (set to No_List if none)
4841 -- Protected_Definition (Node3)
4843 -------------------------------
4844 -- 9.4 Protected Definition --
4845 -------------------------------
4847 -- PROTECTED_DEFINITION ::=
4848 -- {PROTECTED_OPERATION_DECLARATION}
4850 -- {PROTECTED_ELEMENT_DECLARATION}]
4851 -- end [protected_IDENTIFIER]
4853 -- N_Protected_Definition
4854 -- Sloc points to first token of protected definition
4855 -- Visible_Declarations (List2)
4856 -- Private_Declarations (List3) (set to No_List if no private part)
4857 -- End_Label (Node4)
4858 -- Has_Priority_Pragma (Flag6-Sem)
4860 ------------------------------------------
4861 -- 9.4 Protected Operation Declaration --
4862 ------------------------------------------
4864 -- PROTECTED_OPERATION_DECLARATION ::=
4865 -- SUBPROGRAM_DECLARATION
4866 -- | ENTRY_DECLARATION
4867 -- | REPRESENTATION_CLAUSE
4869 ----------------------------------------
4870 -- 9.4 Protected Element Declaration --
4871 ----------------------------------------
4873 -- PROTECTED_ELEMENT_DECLARATION ::=
4874 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4876 -------------------------
4877 -- 9.4 Protected Body --
4878 -------------------------
4880 -- PROTECTED_BODY ::=
4881 -- protected body DEFINING_IDENTIFIER is
4882 -- {PROTECTED_OPERATION_ITEM}
4883 -- end [protected_IDENTIFIER];
4885 -- Note: protected bodies are not allowed in Ada 83 mode
4887 -- Gigi restriction: This node never appears
4890 -- Sloc points to PROTECTED
4891 -- Defining_Identifier (Node1)
4892 -- Declarations (List2) protected operation items (and pragmas)
4893 -- End_Label (Node4)
4894 -- Corresponding_Spec (Node5-Sem)
4895 -- Was_Originally_Stub (Flag13-Sem)
4897 -----------------------------------
4898 -- 9.4 Protected Operation Item --
4899 -----------------------------------
4901 -- PROTECTED_OPERATION_ITEM ::=
4902 -- SUBPROGRAM_DECLARATION
4903 -- | SUBPROGRAM_BODY
4905 -- | REPRESENTATION_CLAUSE
4907 ------------------------------
4908 -- 9.5.2 Entry Declaration --
4909 ------------------------------
4911 -- ENTRY_DECLARATION ::=
4912 -- [[not] overriding]
4913 -- entry DEFINING_IDENTIFIER
4914 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4916 -- N_Entry_Declaration
4917 -- Sloc points to ENTRY
4918 -- Defining_Identifier (Node1)
4919 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4920 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4921 -- Corresponding_Body (Node5-Sem)
4922 -- Must_Override (Flag14) set if overriding indicator present
4923 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4925 -- Note: overriding indicator is an Ada 2005 feature
4927 -----------------------------
4928 -- 9.5.2 Accept statement --
4929 -----------------------------
4931 -- ACCEPT_STATEMENT ::=
4932 -- accept entry_DIRECT_NAME
4933 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4934 -- HANDLED_SEQUENCE_OF_STATEMENTS
4935 -- end [entry_IDENTIFIER]];
4937 -- Gigi restriction: This node never appears
4939 -- Note: there are no explicit declarations allowed in an accept
4940 -- statement. However, the implicit declarations for any statement
4941 -- identifiers (labels and block/loop identifiers) are declarations
4942 -- that belong logically to the accept statement, and that is why
4943 -- there is a Declarations field in this node.
4945 -- N_Accept_Statement
4946 -- Sloc points to ACCEPT
4947 -- Entry_Direct_Name (Node1)
4948 -- Entry_Index (Node5) (set to Empty if not present)
4949 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4950 -- Handled_Statement_Sequence (Node4)
4951 -- Declarations (List2) (set to No_List if no declarations)
4953 ------------------------
4954 -- 9.5.2 Entry Index --
4955 ------------------------
4957 -- ENTRY_INDEX ::= EXPRESSION
4959 -----------------------
4960 -- 9.5.2 Entry Body --
4961 -----------------------
4964 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4967 -- HANDLED_SEQUENCE_OF_STATEMENTS
4968 -- end [entry_IDENTIFIER];
4970 -- ENTRY_BARRIER ::= when CONDITION
4972 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4973 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4974 -- too full (it would otherwise have too many fields)
4976 -- Gigi restriction: This node never appears
4979 -- Sloc points to ENTRY
4980 -- Defining_Identifier (Node1)
4981 -- Entry_Body_Formal_Part (Node5)
4982 -- Declarations (List2)
4983 -- Handled_Statement_Sequence (Node4)
4984 -- Activation_Chain_Entity (Node3-Sem)
4986 -----------------------------------
4987 -- 9.5.2 Entry Body Formal Part --
4988 -----------------------------------
4990 -- ENTRY_BODY_FORMAL_PART ::=
4991 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4993 -- Note that an entry body formal part node is present even if it is
4994 -- empty. This reflects the grammar, in which it is the components of
4995 -- the entry body formal part that are optional, not the entry body
4996 -- formal part itself. Also this means that the barrier condition
4997 -- always has somewhere to be stored.
4999 -- Gigi restriction: This node never appears
5001 -- N_Entry_Body_Formal_Part
5002 -- Sloc points to first token
5003 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5004 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5005 -- Condition (Node1) from entry barrier of entry body
5007 --------------------------
5008 -- 9.5.2 Entry Barrier --
5009 --------------------------
5011 -- ENTRY_BARRIER ::= when CONDITION
5013 --------------------------------------
5014 -- 9.5.2 Entry Index Specification --
5015 --------------------------------------
5017 -- ENTRY_INDEX_SPECIFICATION ::=
5018 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5020 -- Gigi restriction: This node never appears
5022 -- N_Entry_Index_Specification
5023 -- Sloc points to FOR
5024 -- Defining_Identifier (Node1)
5025 -- Discrete_Subtype_Definition (Node4)
5027 ---------------------------------
5028 -- 9.5.3 Entry Call Statement --
5029 ---------------------------------
5031 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5033 -- The parser may generate a procedure call for this construct. The
5034 -- semantic pass must correct this misidentification where needed.
5036 -- Gigi restriction: This node never appears
5038 -- N_Entry_Call_Statement
5039 -- Sloc points to first token of name
5041 -- Parameter_Associations (List3) (set to No_List if no
5042 -- actual parameter part)
5043 -- First_Named_Actual (Node4-Sem)
5045 ------------------------------
5046 -- 9.5.4 Requeue Statement --
5047 ------------------------------
5049 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5051 -- Note: requeue statements are not permitted in Ada 83 mode
5053 -- Gigi restriction: This node never appears
5055 -- N_Requeue_Statement
5056 -- Sloc points to REQUEUE
5058 -- Abort_Present (Flag15)
5060 --------------------------
5061 -- 9.6 Delay Statement --
5062 --------------------------
5064 -- DELAY_STATEMENT ::=
5065 -- DELAY_UNTIL_STATEMENT
5066 -- | DELAY_RELATIVE_STATEMENT
5068 --------------------------------
5069 -- 9.6 Delay Until Statement --
5070 --------------------------------
5072 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5074 -- Note: delay until statements are not permitted in Ada 83 mode
5076 -- Gigi restriction: This node never appears
5078 -- N_Delay_Until_Statement
5079 -- Sloc points to DELAY
5080 -- Expression (Node3)
5082 -----------------------------------
5083 -- 9.6 Delay Relative Statement --
5084 -----------------------------------
5086 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5088 -- Gigi restriction: This node never appears
5090 -- N_Delay_Relative_Statement
5091 -- Sloc points to DELAY
5092 -- Expression (Node3)
5094 ---------------------------
5095 -- 9.7 Select Statement --
5096 ---------------------------
5098 -- SELECT_STATEMENT ::=
5100 -- | TIMED_ENTRY_CALL
5101 -- | CONDITIONAL_ENTRY_CALL
5102 -- | ASYNCHRONOUS_SELECT
5104 -----------------------------
5105 -- 9.7.1 Selective Accept --
5106 -----------------------------
5108 -- SELECTIVE_ACCEPT ::=
5111 -- SELECT_ALTERNATIVE
5114 -- SELECT_ALTERNATIVE}
5116 -- SEQUENCE_OF_STATEMENTS]
5119 -- Gigi restriction: This node never appears
5121 -- Note: the guard expression, if present, appears in the node for
5122 -- the select alternative.
5124 -- N_Selective_Accept
5125 -- Sloc points to SELECT
5126 -- Select_Alternatives (List1)
5127 -- Else_Statements (List4) (set to No_List if no else part)
5133 -- GUARD ::= when CONDITION =>
5135 -- As noted above, the CONDITION that is part of a GUARD is included
5136 -- in the node for the select alternative for convenience.
5138 -------------------------------
5139 -- 9.7.1 Select Alternative --
5140 -------------------------------
5142 -- SELECT_ALTERNATIVE ::=
5143 -- ACCEPT_ALTERNATIVE
5144 -- | DELAY_ALTERNATIVE
5145 -- | TERMINATE_ALTERNATIVE
5147 -------------------------------
5148 -- 9.7.1 Accept Alternative --
5149 -------------------------------
5151 -- ACCEPT_ALTERNATIVE ::=
5152 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5154 -- Gigi restriction: This node never appears
5156 -- N_Accept_Alternative
5157 -- Sloc points to ACCEPT
5158 -- Accept_Statement (Node2)
5159 -- Condition (Node1) from the guard (set to Empty if no guard present)
5160 -- Statements (List3) (set to Empty_List if no statements)
5161 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5162 -- Accept_Handler_Records (List5-Sem)
5164 ------------------------------
5165 -- 9.7.1 Delay Alternative --
5166 ------------------------------
5168 -- DELAY_ALTERNATIVE ::=
5169 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5171 -- Gigi restriction: This node never appears
5173 -- N_Delay_Alternative
5174 -- Sloc points to DELAY
5175 -- Delay_Statement (Node2)
5176 -- Condition (Node1) from the guard (set to Empty if no guard present)
5177 -- Statements (List3) (set to Empty_List if no statements)
5178 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5180 ----------------------------------
5181 -- 9.7.1 Terminate Alternative --
5182 ----------------------------------
5184 -- TERMINATE_ALTERNATIVE ::= terminate;
5186 -- Gigi restriction: This node never appears
5188 -- N_Terminate_Alternative
5189 -- Sloc points to TERMINATE
5190 -- Condition (Node1) from the guard (set to Empty if no guard present)
5191 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5192 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5194 -----------------------------
5195 -- 9.7.2 Timed Entry Call --
5196 -----------------------------
5198 -- TIMED_ENTRY_CALL ::=
5200 -- ENTRY_CALL_ALTERNATIVE
5202 -- DELAY_ALTERNATIVE
5205 -- Gigi restriction: This node never appears
5207 -- N_Timed_Entry_Call
5208 -- Sloc points to SELECT
5209 -- Entry_Call_Alternative (Node1)
5210 -- Delay_Alternative (Node4)
5212 -----------------------------------
5213 -- 9.7.2 Entry Call Alternative --
5214 -----------------------------------
5216 -- ENTRY_CALL_ALTERNATIVE ::=
5217 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5219 -- PROCEDURE_OR_ENTRY_CALL ::=
5220 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5222 -- Gigi restriction: This node never appears
5224 -- N_Entry_Call_Alternative
5225 -- Sloc points to first token of entry call statement
5226 -- Entry_Call_Statement (Node1)
5227 -- Statements (List3) (set to Empty_List if no statements)
5228 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5230 -----------------------------------
5231 -- 9.7.3 Conditional Entry Call --
5232 -----------------------------------
5234 -- CONDITIONAL_ENTRY_CALL ::=
5236 -- ENTRY_CALL_ALTERNATIVE
5238 -- SEQUENCE_OF_STATEMENTS
5241 -- Gigi restriction: This node never appears
5243 -- N_Conditional_Entry_Call
5244 -- Sloc points to SELECT
5245 -- Entry_Call_Alternative (Node1)
5246 -- Else_Statements (List4)
5248 --------------------------------
5249 -- 9.7.4 Asynchronous Select --
5250 --------------------------------
5252 -- ASYNCHRONOUS_SELECT ::=
5254 -- TRIGGERING_ALTERNATIVE
5259 -- Note: asynchronous select is not permitted in Ada 83 mode
5261 -- Gigi restriction: This node never appears
5263 -- N_Asynchronous_Select
5264 -- Sloc points to SELECT
5265 -- Triggering_Alternative (Node1)
5266 -- Abortable_Part (Node2)
5268 -----------------------------------
5269 -- 9.7.4 Triggering Alternative --
5270 -----------------------------------
5272 -- TRIGGERING_ALTERNATIVE ::=
5273 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5275 -- Gigi restriction: This node never appears
5277 -- N_Triggering_Alternative
5278 -- Sloc points to first token of triggering statement
5279 -- Triggering_Statement (Node1)
5280 -- Statements (List3) (set to Empty_List if no statements)
5281 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5283 ---------------------------------
5284 -- 9.7.4 Triggering Statement --
5285 ---------------------------------
5287 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5289 ---------------------------
5290 -- 9.7.4 Abortable Part --
5291 ---------------------------
5293 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5295 -- Gigi restriction: This node never appears
5298 -- Sloc points to ABORT
5299 -- Statements (List3)
5301 --------------------------
5302 -- 9.8 Abort Statement --
5303 --------------------------
5305 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5307 -- Gigi restriction: This node never appears
5309 -- N_Abort_Statement
5310 -- Sloc points to ABORT
5313 -------------------------
5314 -- 10.1.1 Compilation --
5315 -------------------------
5317 -- COMPILATION ::= {COMPILATION_UNIT}
5319 -- There is no explicit node in the tree for a compilation, since in
5320 -- general the compiler is processing only a single compilation unit
5321 -- at a time. It is possible to parse multiple units in syntax check
5322 -- only mode, but they the trees are discarded in any case.
5324 ------------------------------
5325 -- 10.1.1 Compilation Unit --
5326 ------------------------------
5328 -- COMPILATION_UNIT ::=
5329 -- CONTEXT_CLAUSE LIBRARY_ITEM
5330 -- | CONTEXT_CLAUSE SUBUNIT
5332 -- The N_Compilation_Unit node itself represents the above syntax.
5333 -- However, there are two additional items not reflected in the above
5334 -- syntax. First we have the global declarations that are added by the
5335 -- code generator. These are outer level declarations (so they cannot
5336 -- be represented as being inside the units). An example is the wrapper
5337 -- subprograms that are created to do ABE checking. As always a list of
5338 -- declarations can contain actions as well (i.e. statements), and such
5339 -- statements are executed as part of the elaboration of the unit. Note
5340 -- that all such declarations are elaborated before the library unit.
5342 -- Similarly, certain actions need to be elaborated at the completion
5343 -- of elaboration of the library unit (notably the statement that sets
5344 -- the Boolean flag indicating that elaboration is complete).
5346 -- The third item not reflected in the syntax is pragmas that appear
5347 -- after the compilation unit. As always pragmas are a problem since
5348 -- they are not part of the formal syntax, but can be stuck into the
5349 -- source following a set of ad hoc rules, and we have to find an ad
5350 -- hoc way of sticking them into the tree. For pragmas that appear
5351 -- before the library unit, we just consider them to be part of the
5352 -- context clause, and pragmas can appear in the Context_Items list
5353 -- of the compilation unit. However, pragmas can also appear after
5354 -- the library item.
5356 -- To deal with all these problems, we create an auxiliary node for
5357 -- a compilation unit, referenced from the N_Compilation_Unit node
5358 -- that contains these three items.
5360 -- N_Compilation_Unit
5361 -- Sloc points to first token of defining unit name
5362 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5363 -- Context_Items (List1) context items and pragmas preceding unit
5364 -- Private_Present (Flag15) set if library unit has private keyword
5365 -- Unit (Node2) library item or subunit
5366 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5367 -- Has_No_Elaboration_Code (Flag17-Sem)
5368 -- Body_Required (Flag13-Sem) set for spec if body is required
5369 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5370 -- First_Inlined_Subprogram (Node3-Sem)
5372 -- N_Compilation_Unit_Aux
5373 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5374 -- Declarations (List2) (set to No_List if no global declarations)
5375 -- Actions (List1) (set to No_List if no actions)
5376 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5377 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5379 --------------------------
5380 -- 10.1.1 Library Item --
5381 --------------------------
5384 -- [private] LIBRARY_UNIT_DECLARATION
5385 -- | LIBRARY_UNIT_BODY
5386 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5388 -- Note: PRIVATE is not allowed in Ada 83 mode
5390 -- There is no explicit node in the tree for library item, instead
5391 -- the declaration or body, and the flag for private if present,
5392 -- appear in the N_Compilation_Unit clause.
5394 --------------------------------------
5395 -- 10.1.1 Library Unit Declaration --
5396 --------------------------------------
5398 -- LIBRARY_UNIT_DECLARATION ::=
5399 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5400 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5402 -----------------------------------------------
5403 -- 10.1.1 Library Unit Renaming Declaration --
5404 -----------------------------------------------
5406 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5407 -- PACKAGE_RENAMING_DECLARATION
5408 -- | GENERIC_RENAMING_DECLARATION
5409 -- | SUBPROGRAM_RENAMING_DECLARATION
5411 -------------------------------
5412 -- 10.1.1 Library unit body --
5413 -------------------------------
5415 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5417 ------------------------------
5418 -- 10.1.1 Parent Unit Name --
5419 ------------------------------
5421 -- PARENT_UNIT_NAME ::= NAME
5423 ----------------------------
5424 -- 10.1.2 Context clause --
5425 ----------------------------
5427 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5429 -- The context clause can include pragmas, and any pragmas that appear
5430 -- before the context clause proper (i.e. all configuration pragmas,
5431 -- also appear at the front of this list).
5433 --------------------------
5434 -- 10.1.2 Context_Item --
5435 --------------------------
5437 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5439 -------------------------
5440 -- 10.1.2 With clause --
5441 -------------------------
5444 -- with library_unit_NAME {,library_unit_NAME};
5446 -- A separate With clause is built for each name, so that we have
5447 -- a Corresponding_Spec field for each with'ed spec. The flags
5448 -- First_Name and Last_Name are used to reconstruct the exact
5449 -- source form. When a list of names appears in one with clause,
5450 -- the first name in the list has First_Name set, and the last
5451 -- has Last_Name set. If the with clause has only one name, then
5452 -- both of the flags First_Name and Last_Name are set in this name.
5454 -- Note: in the case of implicit with's that are installed by the
5455 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5456 -- set to Standard_Location, but it is incorrect to test the Sloc
5457 -- to find out if a with clause is implicit, test the flag instead.
5460 -- Sloc points to first token of library unit name
5462 -- Library_Unit (Node4-Sem)
5463 -- Corresponding_Spec (Node5-Sem)
5464 -- First_Name (Flag5) (set to True if first name or only one name)
5465 -- Last_Name (Flag6) (set to True if last name or only one name)
5466 -- Context_Installed (Flag13-Sem)
5467 -- Elaborate_Present (Flag4-Sem)
5468 -- Elaborate_All_Present (Flag14-Sem)
5469 -- Elaborate_All_Desirable (Flag9-Sem)
5470 -- Elaborate_Desirable (Flag11-Sem)
5471 -- Private_Present (Flag15) set if with_clause has private keyword
5472 -- Implicit_With (Flag16-Sem)
5473 -- Limited_Present (Flag17) set if LIMITED is present
5474 -- Limited_View_Installed (Flag18-Sem)
5475 -- Unreferenced_In_Spec (Flag7-Sem)
5476 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5478 -- Note: Limited_Present and Limited_View_Installed give support to
5479 -- Ada 2005 (AI-50217).
5480 -- Similarly, Private_Present gives support to AI-50262.
5482 ----------------------
5483 -- With_Type clause --
5484 ----------------------
5486 -- This is a GNAT extension, used to implement mutually recursive
5487 -- types declared in different packages.
5488 -- Note: this is now obsolete. The functionality of this construct
5489 -- is now implemented by the Ada 2005 Limited_with_Clause.
5491 ---------------------
5492 -- 10.2 Body stub --
5493 ---------------------
5496 -- SUBPROGRAM_BODY_STUB
5497 -- | PACKAGE_BODY_STUB
5499 -- | PROTECTED_BODY_STUB
5501 ----------------------------------
5502 -- 10.1.3 Subprogram Body Stub --
5503 ----------------------------------
5505 -- SUBPROGRAM_BODY_STUB ::=
5506 -- SUBPROGRAM_SPECIFICATION is separate;
5508 -- N_Subprogram_Body_Stub
5509 -- Sloc points to FUNCTION or PROCEDURE
5510 -- Specification (Node1)
5511 -- Library_Unit (Node4-Sem) points to the subunit
5512 -- Corresponding_Body (Node5-Sem)
5514 -------------------------------
5515 -- 10.1.3 Package Body Stub --
5516 -------------------------------
5518 -- PACKAGE_BODY_STUB ::=
5519 -- package body DEFINING_IDENTIFIER is separate;
5521 -- N_Package_Body_Stub
5522 -- Sloc points to PACKAGE
5523 -- Defining_Identifier (Node1)
5524 -- Library_Unit (Node4-Sem) points to the subunit
5525 -- Corresponding_Body (Node5-Sem)
5527 ----------------------------
5528 -- 10.1.3 Task Body Stub --
5529 ----------------------------
5531 -- TASK_BODY_STUB ::=
5532 -- task body DEFINING_IDENTIFIER is separate;
5535 -- Sloc points to TASK
5536 -- Defining_Identifier (Node1)
5537 -- Library_Unit (Node4-Sem) points to the subunit
5538 -- Corresponding_Body (Node5-Sem)
5540 ---------------------------------
5541 -- 10.1.3 Protected Body Stub --
5542 ---------------------------------
5544 -- PROTECTED_BODY_STUB ::=
5545 -- protected body DEFINING_IDENTIFIER is separate;
5547 -- Note: protected body stubs are not allowed in Ada 83 mode
5549 -- N_Protected_Body_Stub
5550 -- Sloc points to PROTECTED
5551 -- Defining_Identifier (Node1)
5552 -- Library_Unit (Node4-Sem) points to the subunit
5553 -- Corresponding_Body (Node5-Sem)
5555 ---------------------
5556 -- 10.1.3 Subunit --
5557 ---------------------
5559 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5562 -- Sloc points to SEPARATE
5563 -- Name (Node2) is the name of the parent unit
5564 -- Proper_Body (Node1) is the subunit body
5565 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5567 ---------------------------------
5568 -- 11.1 Exception Declaration --
5569 ---------------------------------
5571 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5573 -- For consistency with object declarations etc., the parser converts
5574 -- the case of multiple identifiers being declared to a series of
5575 -- declarations in which the expression is copied, using the More_Ids
5576 -- and Prev_Ids flags to remember the source form as described in the
5577 -- section on "Handling of Defining Identifier Lists".
5579 -- N_Exception_Declaration
5580 -- Sloc points to EXCEPTION
5581 -- Defining_Identifier (Node1)
5582 -- Expression (Node3-Sem)
5583 -- Renaming_Exception (Node2-Sem)
5584 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5585 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5587 ------------------------------------------
5588 -- 11.2 Handled Sequence Of Statements --
5589 ------------------------------------------
5591 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5592 -- SEQUENCE_OF_STATEMENTS
5594 -- EXCEPTION_HANDLER
5595 -- {EXCEPTION_HANDLER}]
5597 -- cleanup_procedure_call (param, param, param, ...);]
5599 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5600 -- used only internally currently, but is considered to be syntactic.
5601 -- At the moment, the only cleanup action allowed is a single call to
5602 -- a parameterless procedure, and the Identifier field of the node is
5603 -- the procedure to be called. Also there is a current restriction
5604 -- that exception handles and a cleanup cannot be present in the same
5605 -- frame, so at least one of Exception_Handlers or the Identifier must
5608 -- Actually, more accurately, this restriction applies to the original
5609 -- source program. In the expanded tree, if the At_End_Proc field is
5610 -- present, then there will also be an exception handler of the form:
5612 -- when all others =>
5616 -- where cleanup is the procedure to be generated. The reason we do
5617 -- this is so that the front end can handle the necessary entries in
5618 -- the exception tables, and other exception handler actions required
5619 -- as part of the normal handling for exception handlers.
5621 -- The AT END cleanup handler protects only the sequence of statements
5622 -- (not the associated declarations of the parent), just like exception
5623 -- handlers. The big difference is that the cleanup procedure is called
5624 -- on either a normal or an abnormal exit from the statement sequence.
5626 -- Note: the list of Exception_Handlers can contain pragmas as well
5627 -- as actual handlers. In practice these pragmas can only occur at
5628 -- the start of the list, since any pragmas occurring later on will
5629 -- be included in the statement list of the corresponding handler.
5631 -- Note: although in the Ada syntax, the sequence of statements in
5632 -- a handled sequence of statements can only contain statements, we
5633 -- allow free mixing of declarations and statements in the resulting
5634 -- expanded tree. This is for example used to deal with the case of
5635 -- a cleanup procedure that must handle declarations as well as the
5636 -- statements of a block.
5638 -- N_Handled_Sequence_Of_Statements
5639 -- Sloc points to first token of first statement
5640 -- Statements (List3)
5641 -- End_Label (Node4) (set to Empty if expander generated)
5642 -- Exception_Handlers (List5) (set to No_List if none present)
5643 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5644 -- First_Real_Statement (Node2-Sem)
5645 -- Zero_Cost_Handling (Flag5-Sem)
5647 -- Note: the parent always contains a Declarations field which contains
5648 -- declarations associated with the handled sequence of statements. This
5649 -- is true even in the case of an accept statement (see description of
5650 -- the N_Accept_Statement node).
5652 -- End_Label refers to the containing construct
5654 -----------------------------
5655 -- 11.2 Exception Handler --
5656 -----------------------------
5658 -- EXCEPTION_HANDLER ::=
5659 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5660 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5661 -- SEQUENCE_OF_STATEMENTS
5663 -- Note: choice parameter specification is not allowed in Ada 83 mode
5665 -- N_Exception_Handler
5666 -- Sloc points to WHEN
5667 -- Choice_Parameter (Node2) (set to Empty if not present)
5668 -- Exception_Choices (List4)
5669 -- Statements (List3)
5670 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5671 -- Zero_Cost_Handling (Flag5-Sem)
5672 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5673 -- Local_Raise_Not_OK (Flag7-Sem)
5674 -- Has_Local_Raise (Flag8-Sem)
5676 ------------------------------------------
5677 -- 11.2 Choice parameter specification --
5678 ------------------------------------------
5680 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5682 ----------------------------
5683 -- 11.2 Exception Choice --
5684 ----------------------------
5686 -- EXCEPTION_CHOICE ::= exception_NAME | others
5688 -- Except in the case of OTHERS, no explicit node appears in the tree
5689 -- for exception choice. Instead the exception name appears directly.
5690 -- An OTHERS choice is represented by a N_Others_Choice node (see
5693 -- Note: for the exception choice created for an at end handler, the
5694 -- exception choice is an N_Others_Choice node with All_Others set.
5696 ---------------------------
5697 -- 11.3 Raise Statement --
5698 ---------------------------
5700 -- RAISE_STATEMENT ::= raise [exception_NAME];
5702 -- In Ada 2005, we have
5704 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5706 -- N_Raise_Statement
5707 -- Sloc points to RAISE
5708 -- Name (Node2) (set to Empty if no exception name present)
5709 -- Expression (Node3) (set to Empty if no expression present)
5710 -- From_At_End (Flag4-Sem)
5712 -------------------------------
5713 -- 12.1 Generic Declaration --
5714 -------------------------------
5716 -- GENERIC_DECLARATION ::=
5717 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5719 ------------------------------------------
5720 -- 12.1 Generic Subprogram Declaration --
5721 ------------------------------------------
5723 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5724 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5726 -- Note: Generic_Formal_Declarations can include pragmas
5728 -- N_Generic_Subprogram_Declaration
5729 -- Sloc points to GENERIC
5730 -- Specification (Node1) subprogram specification
5731 -- Corresponding_Body (Node5-Sem)
5732 -- Generic_Formal_Declarations (List2) from generic formal part
5733 -- Parent_Spec (Node4-Sem)
5735 ---------------------------------------
5736 -- 12.1 Generic Package Declaration --
5737 ---------------------------------------
5739 -- GENERIC_PACKAGE_DECLARATION ::=
5740 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5742 -- Note: when we do generics right, the Activation_Chain_Entity entry
5743 -- for this node can be removed (since the expander won't see generic
5744 -- units any more)???.
5746 -- Note: Generic_Formal_Declarations can include pragmas
5748 -- N_Generic_Package_Declaration
5749 -- Sloc points to GENERIC
5750 -- Specification (Node1) package specification
5751 -- Corresponding_Body (Node5-Sem)
5752 -- Generic_Formal_Declarations (List2) from generic formal part
5753 -- Parent_Spec (Node4-Sem)
5754 -- Activation_Chain_Entity (Node3-Sem)
5756 -------------------------------
5757 -- 12.1 Generic Formal Part --
5758 -------------------------------
5760 -- GENERIC_FORMAL_PART ::=
5761 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5763 ------------------------------------------------
5764 -- 12.1 Generic Formal Parameter Declaration --
5765 ------------------------------------------------
5767 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5768 -- FORMAL_OBJECT_DECLARATION
5769 -- | FORMAL_TYPE_DECLARATION
5770 -- | FORMAL_SUBPROGRAM_DECLARATION
5771 -- | FORMAL_PACKAGE_DECLARATION
5773 ---------------------------------
5774 -- 12.3 Generic Instantiation --
5775 ---------------------------------
5777 -- GENERIC_INSTANTIATION ::=
5778 -- package DEFINING_PROGRAM_UNIT_NAME is
5779 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5780 -- | [[not] overriding]
5781 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5782 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5783 -- | [[not] overriding]
5784 -- function DEFINING_DESIGNATOR is
5785 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5787 -- N_Package_Instantiation
5788 -- Sloc points to PACKAGE
5789 -- Defining_Unit_Name (Node1)
5791 -- Generic_Associations (List3) (set to No_List if no
5792 -- generic actual part)
5793 -- Parent_Spec (Node4-Sem)
5794 -- Instance_Spec (Node5-Sem)
5795 -- ABE_Is_Certain (Flag18-Sem)
5797 -- N_Procedure_Instantiation
5798 -- Sloc points to PROCEDURE
5799 -- Defining_Unit_Name (Node1)
5801 -- Parent_Spec (Node4-Sem)
5802 -- Generic_Associations (List3) (set to No_List if no
5803 -- generic actual part)
5804 -- Instance_Spec (Node5-Sem)
5805 -- Must_Override (Flag14) set if overriding indicator present
5806 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5807 -- ABE_Is_Certain (Flag18-Sem)
5809 -- N_Function_Instantiation
5810 -- Sloc points to FUNCTION
5811 -- Defining_Unit_Name (Node1)
5813 -- Generic_Associations (List3) (set to No_List if no
5814 -- generic actual part)
5815 -- Parent_Spec (Node4-Sem)
5816 -- Instance_Spec (Node5-Sem)
5817 -- Must_Override (Flag14) set if overriding indicator present
5818 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5819 -- ABE_Is_Certain (Flag18-Sem)
5821 -- Note: overriding indicator is an Ada 2005 feature
5823 -------------------------------
5824 -- 12.3 Generic Actual Part --
5825 -------------------------------
5827 -- GENERIC_ACTUAL_PART ::=
5828 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5830 -------------------------------
5831 -- 12.3 Generic Association --
5832 -------------------------------
5834 -- GENERIC_ASSOCIATION ::=
5835 -- [generic_formal_parameter_SELECTOR_NAME =>]
5837 -- Note: unlike the procedure call case, a generic association node
5838 -- is generated for every association, even if no formal parameter
5839 -- selector name is present. In this case the parser will leave the
5840 -- Selector_Name field set to Empty, to be filled in later by the
5843 -- In Ada 2005, a formal may be associated with a box, if the
5844 -- association is part of the list of actuals for a formal package.
5845 -- If the association is given by OTHERS => <>, the association is
5846 -- an N_Others_Choice.
5848 -- N_Generic_Association
5849 -- Sloc points to first token of generic association
5850 -- Selector_Name (Node2) (set to Empty if no formal
5851 -- parameter selector name)
5852 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5853 -- Box_Present (Flag15) (for formal_package associations with a box)
5855 ---------------------------------------------
5856 -- 12.3 Explicit Generic Actual Parameter --
5857 ---------------------------------------------
5859 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5860 -- EXPRESSION | variable_NAME | subprogram_NAME
5861 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5863 -------------------------------------
5864 -- 12.4 Formal Object Declaration --
5865 -------------------------------------
5867 -- FORMAL_OBJECT_DECLARATION ::=
5868 -- DEFINING_IDENTIFIER_LIST :
5869 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5870 -- | DEFINING_IDENTIFIER_LIST :
5871 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5873 -- Although the syntax allows multiple identifiers in the list, the
5874 -- semantics is as though successive declarations were given with
5875 -- identical type definition and expression components. To simplify
5876 -- semantic processing, the parser represents a multiple declaration
5877 -- case as a sequence of single declarations, using the More_Ids and
5878 -- Prev_Ids flags to preserve the original source form as described
5879 -- in the section on "Handling of Defining Identifier Lists".
5881 -- N_Formal_Object_Declaration
5882 -- Sloc points to first identifier
5883 -- Defining_Identifier (Node1)
5884 -- In_Present (Flag15)
5885 -- Out_Present (Flag17)
5886 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5887 -- Subtype_Mark (Node4) (set to Empty if not present)
5888 -- Access_Definition (Node3) (set to Empty if not present)
5889 -- Default_Expression (Node5) (set to Empty if no default expression)
5890 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5891 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5893 -----------------------------------
5894 -- 12.5 Formal Type Declaration --
5895 -----------------------------------
5897 -- FORMAL_TYPE_DECLARATION ::=
5898 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5899 -- is FORMAL_TYPE_DEFINITION;
5901 -- N_Formal_Type_Declaration
5902 -- Sloc points to TYPE
5903 -- Defining_Identifier (Node1)
5904 -- Formal_Type_Definition (Node3)
5905 -- Discriminant_Specifications (List4) (set to No_List if no
5906 -- discriminant part)
5907 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5909 ----------------------------------
5910 -- 12.5 Formal type definition --
5911 ----------------------------------
5913 -- FORMAL_TYPE_DEFINITION ::=
5914 -- FORMAL_PRIVATE_TYPE_DEFINITION
5915 -- | FORMAL_DERIVED_TYPE_DEFINITION
5916 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5917 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5918 -- | FORMAL_MODULAR_TYPE_DEFINITION
5919 -- | FORMAL_FLOATING_POINT_DEFINITION
5920 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5921 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5922 -- | FORMAL_ARRAY_TYPE_DEFINITION
5923 -- | FORMAL_ACCESS_TYPE_DEFINITION
5924 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5926 ---------------------------------------------
5927 -- 12.5.1 Formal Private Type Definition --
5928 ---------------------------------------------
5930 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5931 -- [[abstract] tagged] [limited] private
5933 -- Note: TAGGED is not allowed in Ada 83 mode
5935 -- N_Formal_Private_Type_Definition
5936 -- Sloc points to PRIVATE
5937 -- Abstract_Present (Flag4)
5938 -- Tagged_Present (Flag15)
5939 -- Limited_Present (Flag17)
5941 --------------------------------------------
5942 -- 12.5.1 Formal Derived Type Definition --
5943 --------------------------------------------
5945 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5946 -- [abstract] [limited | synchronized]
5947 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5948 -- Note: this construct is not allowed in Ada 83 mode
5950 -- N_Formal_Derived_Type_Definition
5951 -- Sloc points to NEW
5952 -- Subtype_Mark (Node4)
5953 -- Private_Present (Flag15)
5954 -- Abstract_Present (Flag4)
5955 -- Limited_Present (Flag17)
5956 -- Synchronized_Present (Flag7)
5957 -- Interface_List (List2) (set to No_List if none)
5959 ---------------------------------------------
5960 -- 12.5.2 Formal Discrete Type Definition --
5961 ---------------------------------------------
5963 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5965 -- N_Formal_Discrete_Type_Definition
5968 ---------------------------------------------------
5969 -- 12.5.2 Formal Signed Integer Type Definition --
5970 ---------------------------------------------------
5972 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5974 -- N_Formal_Signed_Integer_Type_Definition
5975 -- Sloc points to RANGE
5977 --------------------------------------------
5978 -- 12.5.2 Formal Modular Type Definition --
5979 --------------------------------------------
5981 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5983 -- N_Formal_Modular_Type_Definition
5984 -- Sloc points to MOD
5986 ----------------------------------------------
5987 -- 12.5.2 Formal Floating Point Definition --
5988 ----------------------------------------------
5990 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5992 -- N_Formal_Floating_Point_Definition
5993 -- Sloc points to DIGITS
5995 ----------------------------------------------------
5996 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5997 ----------------------------------------------------
5999 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6001 -- N_Formal_Ordinary_Fixed_Point_Definition
6002 -- Sloc points to DELTA
6004 ---------------------------------------------------
6005 -- 12.5.2 Formal Decimal Fixed Point Definition --
6006 ---------------------------------------------------
6008 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6010 -- Note: formal decimal fixed point definition not allowed in Ada 83
6012 -- N_Formal_Decimal_Fixed_Point_Definition
6013 -- Sloc points to DELTA
6015 ------------------------------------------
6016 -- 12.5.3 Formal Array Type Definition --
6017 ------------------------------------------
6019 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6021 -------------------------------------------
6022 -- 12.5.4 Formal Access Type Definition --
6023 -------------------------------------------
6025 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6027 ----------------------------------------------
6028 -- 12.5.5 Formal Interface Type Definition --
6029 ----------------------------------------------
6031 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6033 -----------------------------------------
6034 -- 12.6 Formal Subprogram Declaration --
6035 -----------------------------------------
6037 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6038 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6039 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6041 --------------------------------------------------
6042 -- 12.6 Formal Concrete Subprogram Declaration --
6043 --------------------------------------------------
6045 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6046 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6048 -- N_Formal_Concrete_Subprogram_Declaration
6049 -- Sloc points to WITH
6050 -- Specification (Node1)
6051 -- Default_Name (Node2) (set to Empty if no subprogram default)
6052 -- Box_Present (Flag15)
6054 -- Note: if no subprogram default is present, then Name is set
6055 -- to Empty, and Box_Present is False.
6057 --------------------------------------------------
6058 -- 12.6 Formal Abstract Subprogram Declaration --
6059 --------------------------------------------------
6061 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6062 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6064 -- N_Formal_Abstract_Subprogram_Declaration
6065 -- Sloc points to WITH
6066 -- Specification (Node1)
6067 -- Default_Name (Node2) (set to Empty if no subprogram default)
6068 -- Box_Present (Flag15)
6070 -- Note: if no subprogram default is present, then Name is set
6071 -- to Empty, and Box_Present is False.
6073 ------------------------------
6074 -- 12.6 Subprogram Default --
6075 ------------------------------
6077 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6079 -- There is no separate node in the tree for a subprogram default.
6080 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6081 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6082 -- default name or box indication, as needed.
6084 ------------------------
6085 -- 12.6 Default Name --
6086 ------------------------
6088 -- DEFAULT_NAME ::= NAME
6090 --------------------------------------
6091 -- 12.7 Formal Package Declaration --
6092 --------------------------------------
6094 -- FORMAL_PACKAGE_DECLARATION ::=
6095 -- with package DEFINING_IDENTIFIER
6096 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6098 -- Note: formal package declarations not allowed in Ada 83 mode
6100 -- N_Formal_Package_Declaration
6101 -- Sloc points to WITH
6102 -- Defining_Identifier (Node1)
6104 -- Generic_Associations (List3) (set to No_List if (<>) case or
6105 -- empty generic actual part)
6106 -- Box_Present (Flag15)
6107 -- Instance_Spec (Node5-Sem)
6108 -- ABE_Is_Certain (Flag18-Sem)
6110 --------------------------------------
6111 -- 12.7 Formal Package Actual Part --
6112 --------------------------------------
6114 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6116 -- | [GENERIC_ACTUAL_PART]
6117 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6119 -- FORMAL_PACKAGE_ASSOCIATION ::=
6120 -- GENERIC_ASSOCIATION
6121 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6123 -- There is no explicit node in the tree for a formal package actual
6124 -- part. Instead the information appears in the parent node (i.e. the
6125 -- formal package declaration node itself).
6127 -- There is no explicit node for a formal package association. All of
6128 -- them are represented either by a generic association, possibly with
6129 -- Box_Present, or by an N_Others_Choice.
6131 ---------------------------------
6132 -- 13.1 Representation clause --
6133 ---------------------------------
6135 -- REPRESENTATION_CLAUSE ::=
6136 -- ATTRIBUTE_DEFINITION_CLAUSE
6137 -- | ENUMERATION_REPRESENTATION_CLAUSE
6138 -- | RECORD_REPRESENTATION_CLAUSE
6141 ----------------------
6142 -- 13.1 Local Name --
6143 ----------------------
6147 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6148 -- | library_unit_NAME
6150 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6151 -- as an attribute reference, which has essentially the same form.
6153 ---------------------------------------
6154 -- 13.3 Attribute definition clause --
6155 ---------------------------------------
6157 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6158 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6159 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6161 -- In Ada 83, the expression must be a simple expression and the
6162 -- local name must be a direct name.
6164 -- Note: the only attribute definition clause that is processed by
6165 -- gigi is an address clause. For all other cases, the information
6166 -- is extracted by the front end and either results in setting entity
6167 -- information, e.g. Esize for the Size clause, or in appropriate
6168 -- expansion actions (e.g. in the case of Storage_Size).
6170 -- For an address clause, Gigi constructs the appropriate addressing
6171 -- code. It also ensures that no aliasing optimizations are made
6172 -- for the object for which the address clause appears.
6174 -- Note: for an address clause used to achieve an overlay:
6178 -- for B'Address use A'Address;
6180 -- the above rule means that Gigi will ensure that no optimizations
6181 -- will be made for B that would violate the implementation advice
6182 -- of RM 13.3(19). However, this advice applies only to B and not
6183 -- to A, which seems unfortunate. The GNAT front end will mark the
6184 -- object A as volatile to also prevent unwanted optimization
6185 -- assumptions based on no aliasing being made for B.
6187 -- N_Attribute_Definition_Clause
6188 -- Sloc points to FOR
6189 -- Name (Node2) the local name
6190 -- Chars (Name1) the identifier name from the attribute designator
6191 -- Expression (Node3) the expression or name
6192 -- Entity (Node4-Sem)
6193 -- Next_Rep_Item (Node5-Sem)
6194 -- From_At_Mod (Flag4-Sem)
6195 -- Check_Address_Alignment (Flag11-Sem)
6196 -- Address_Warning_Posted (Flag18-Sem)
6198 ---------------------------------------------
6199 -- 13.4 Enumeration representation clause --
6200 ---------------------------------------------
6202 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6203 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6205 -- In Ada 83, the name must be a direct name
6207 -- N_Enumeration_Representation_Clause
6208 -- Sloc points to FOR
6209 -- Identifier (Node1) direct name
6210 -- Array_Aggregate (Node3)
6211 -- Next_Rep_Item (Node5-Sem)
6213 ---------------------------------
6214 -- 13.4 Enumeration aggregate --
6215 ---------------------------------
6217 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6219 ------------------------------------------
6220 -- 13.5.1 Record representation clause --
6221 ------------------------------------------
6223 -- RECORD_REPRESENTATION_CLAUSE ::=
6224 -- for first_subtype_LOCAL_NAME use
6225 -- record [MOD_CLAUSE]
6226 -- {COMPONENT_CLAUSE}
6229 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6230 -- replaced by a corresponding Alignment attribute definition clause).
6232 -- Note: Component_Clauses can include pragmas
6234 -- N_Record_Representation_Clause
6235 -- Sloc points to FOR
6236 -- Identifier (Node1) direct name
6237 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6238 -- Component_Clauses (List3)
6239 -- Next_Rep_Item (Node5-Sem)
6241 ------------------------------
6242 -- 13.5.1 Component clause --
6243 ------------------------------
6245 -- COMPONENT_CLAUSE ::=
6246 -- component_LOCAL_NAME at POSITION
6247 -- range FIRST_BIT .. LAST_BIT;
6249 -- N_Component_Clause
6250 -- Sloc points to AT
6251 -- Component_Name (Node1) points to Name or Attribute_Reference
6253 -- First_Bit (Node3)
6256 ----------------------
6257 -- 13.5.1 Position --
6258 ----------------------
6260 -- POSITION ::= static_EXPRESSION
6262 -----------------------
6263 -- 13.5.1 First_Bit --
6264 -----------------------
6266 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6268 ----------------------
6269 -- 13.5.1 Last_Bit --
6270 ----------------------
6272 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6274 --------------------------
6275 -- 13.8 Code statement --
6276 --------------------------
6278 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6280 -- Note: in GNAT, the qualified expression has the form
6282 -- Asm_Insn'(Asm (...));
6284 -- See package System.Machine_Code in file s-maccod.ads for details on
6285 -- the allowed parameters to Asm. There are two ways this node can
6286 -- arise, as a code statement, in which case the expression is the
6287 -- qualified expression, or as a result of the expansion of an intrinsic
6288 -- call to the Asm or Asm_Input procedure.
6291 -- Sloc points to first token of the expression
6292 -- Expression (Node3)
6294 -- Note: package Exp_Code contains an abstract functional interface
6295 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6297 ------------------------
6298 -- 13.12 Restriction --
6299 ------------------------
6302 -- restriction_IDENTIFIER
6303 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6305 -- There is no explicit node for restrictions. Instead the restriction
6306 -- appears in normal pragma syntax as a pragma argument association,
6307 -- which has the same syntactic form.
6309 --------------------------
6310 -- B.2 Shift Operators --
6311 --------------------------
6313 -- Calls to the intrinsic shift functions are converted to one of
6314 -- the following shift nodes, which have the form of normal binary
6315 -- operator names. Note that for a given shift operation, one node
6316 -- covers all possible types, as for normal operators.
6318 -- Note: it is perfectly permissible for the expander to generate
6319 -- shift operation nodes directly, in which case they will be analyzed
6320 -- and parsed in the usual manner.
6322 -- Sprint syntax: shift-function-name!(expr, count)
6324 -- Note: the Left_Opnd field holds the first argument (the value to
6325 -- be shifted). The Right_Opnd field holds the second argument (the
6326 -- shift count). The Chars field is the name of the intrinsic function.
6329 -- Sloc points to the function name
6330 -- plus fields for binary operator
6331 -- plus fields for expression
6332 -- Shift_Count_OK (Flag4-Sem)
6334 -- N_Op_Rotate_Right
6335 -- Sloc points to the function name
6336 -- plus fields for binary operator
6337 -- plus fields for expression
6338 -- Shift_Count_OK (Flag4-Sem)
6341 -- Sloc points to the function name
6342 -- plus fields for binary operator
6343 -- plus fields for expression
6344 -- Shift_Count_OK (Flag4-Sem)
6346 -- N_Op_Shift_Right_Arithmetic
6347 -- Sloc points to the function name
6348 -- plus fields for binary operator
6349 -- plus fields for expression
6350 -- Shift_Count_OK (Flag4-Sem)
6353 -- Sloc points to the function name
6354 -- plus fields for binary operator
6355 -- plus fields for expression
6356 -- Shift_Count_OK (Flag4-Sem)
6358 --------------------------
6359 -- Obsolescent Features --
6360 --------------------------
6362 -- The syntax descriptions and tree nodes for obsolescent features are
6363 -- grouped together, corresponding to their location in appendix I in
6364 -- the RM. However, parsing and semantic analysis for these constructs
6365 -- is located in an appropriate chapter (see individual notes).
6367 ---------------------------
6368 -- J.3 Delta Constraint --
6369 ---------------------------
6371 -- Note: the parse routine for this construct is located in section
6372 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6373 -- where delta constraint logically belongs.
6375 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6377 -- N_Delta_Constraint
6378 -- Sloc points to DELTA
6379 -- Delta_Expression (Node3)
6380 -- Range_Constraint (Node4) (set to Empty if not present)
6382 --------------------
6384 --------------------
6386 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6388 -- Note: the parse routine for this construct is located in Par-Ch13,
6389 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6390 -- belongs if it were not obsolescent.
6392 -- Note: in Ada 83 the expression must be a simple expression
6394 -- Gigi restriction: This node never appears, it is rewritten as an
6395 -- address attribute definition clause.
6398 -- Sloc points to FOR
6399 -- Identifier (Node1)
6400 -- Expression (Node3)
6402 ---------------------
6403 -- J.8 Mod clause --
6404 ---------------------
6406 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6408 -- Note: the parse routine for this construct is located in Par-Ch13,
6409 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6410 -- belongs if it were not obsolescent.
6412 -- Note: in Ada 83, the expression must be a simple expression
6414 -- Gigi restriction: this node never appears. It is replaced
6415 -- by a corresponding Alignment attribute definition clause.
6417 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6418 -- its name has "clause" in it. This is rather strange, but is quite
6419 -- definitely specified. The pragmas before are collected in the
6420 -- Pragmas_Before field of the mod clause node itself, and pragmas
6421 -- after are simply swallowed up in the list of component clauses.
6424 -- Sloc points to AT
6425 -- Expression (Node3)
6426 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6428 --------------------
6429 -- Semantic Nodes --
6430 --------------------
6432 -- These semantic nodes are used to hold additional semantic information.
6433 -- They are inserted into the tree as a result of semantic processing.
6434 -- Although there are no legitimate source syntax constructions that
6435 -- correspond directly to these nodes, we need a source syntax for the
6436 -- reconstructed tree printed by Sprint, and the node descriptions here
6437 -- show this syntax.
6439 ----------------------------
6440 -- Conditional Expression --
6441 ----------------------------
6443 -- This node is used to represent an expression corresponding to the
6444 -- C construct (condition ? then-expression : else_expression), where
6445 -- Expressions is a three element list, whose first expression is the
6446 -- condition, and whose second and third expressions are the then and
6447 -- else expressions respectively.
6449 -- Note: the Then_Actions and Else_Actions fields are always set to
6450 -- No_List in the tree passed to Gigi. These fields are used only
6451 -- for temporary processing purposes in the expander.
6453 -- Sprint syntax: (if expr then expr else expr)
6455 -- N_Conditional_Expression
6456 -- Sloc points to related node
6457 -- Expressions (List1)
6458 -- Then_Actions (List2-Sem)
6459 -- Else_Actions (List3-Sem)
6460 -- plus fields for expression
6462 -- Note: in the case where a debug source file is generated, the Sloc
6463 -- for this node points to the IF keyword in the Sprint file output.
6469 -- The N_Expanded_Name node is used to represent a selected component
6470 -- name that has been resolved to an expanded name. The semantic phase
6471 -- replaces N_Selected_Component nodes that represent names by the use
6472 -- of this node, leaving the N_Selected_Component node used only when
6473 -- the prefix is a record or protected type.
6475 -- The fields of the N_Expanded_Name node are layed out identically
6476 -- to those of the N_Selected_Component node, allowing conversion of
6477 -- an expanded name node to a selected component node to be done
6478 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6480 -- There is no special sprint syntax for an expanded name
6483 -- Sloc points to the period
6484 -- Chars (Name1) copy of Chars field of selector name
6486 -- Selector_Name (Node2)
6487 -- Entity (Node4-Sem)
6488 -- Associated_Node (Node4-Sem)
6489 -- Redundant_Use (Flag13-Sem)
6490 -- Has_Private_View (Flag11-Sem) set in generic units.
6491 -- plus fields for expression
6493 --------------------
6494 -- Free Statement --
6495 --------------------
6497 -- The N_Free_Statement node is generated as a result of a call to an
6498 -- instantiation of Unchecked_Deallocation. The instantiation of this
6499 -- generic is handled specially and generates this node directly.
6501 -- Sprint syntax: free expression
6504 -- Sloc is copied from the unchecked deallocation call
6505 -- Expression (Node3) argument to unchecked deallocation call
6506 -- Storage_Pool (Node1-Sem)
6507 -- Procedure_To_Call (Node2-Sem)
6508 -- Actual_Designated_Subtype (Node4-Sem)
6510 -- Note: in the case where a debug source file is generated, the Sloc
6511 -- for this node points to the FREE keyword in the Sprint file output.
6517 -- This node marks the point in a declarative part at which an entity
6518 -- declared therein becomes frozen. The expander places initialization
6519 -- procedures for types at those points. Gigi uses the freezing point
6520 -- to elaborate entities that may depend on previous private types.
6522 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6523 -- a full description of the use of this node.
6525 -- The Entity field points back to the entity for the type (whose
6526 -- Freeze_Node field points back to this freeze node).
6528 -- The Actions field contains a list of declarations and statements
6529 -- generated by the expander which are associated with the freeze
6530 -- node, and are elaborated as though the freeze node were replaced
6531 -- by this sequence of actions.
6533 -- Note: the Sloc field in the freeze node references a construct
6534 -- associated with the freezing point. This is used for posting
6535 -- messages in some error/warning situations, e.g. the case where
6536 -- a primitive operation of a tagged type is declared too late.
6538 -- Sprint syntax: freeze entity-name [
6543 -- Sloc points near freeze point (see above special note)
6544 -- Entity (Node4-Sem)
6545 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6546 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6547 -- Actions (List1) (set to No_List if no freeze actions)
6548 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6550 -- The Actions field holds actions associated with the freeze. These
6551 -- actions are elaborated at the point where the type is frozen.
6553 -- Note: in the case where a debug source file is generated, the Sloc
6554 -- for this node points to the FREEZE keyword in the Sprint file output.
6556 --------------------------------
6557 -- Implicit Label Declaration --
6558 --------------------------------
6560 -- An implicit label declaration is created for every occurrence of a
6561 -- label on a statement or a label on a block or loop. It is chained
6562 -- in the declarations of the innermost enclosing block as specified
6563 -- in RM section 5.1 (3).
6565 -- The Defining_Identifier is the actual identifier for the statement
6566 -- identifier. Note that the occurrence of the label is a reference, NOT
6567 -- the defining occurrence. The defining occurrence occurs at the head
6568 -- of the innermost enclosing block, and is represented by this node.
6570 -- Note: from the grammar, this might better be called an implicit
6571 -- statement identifier declaration, but the term we choose seems
6572 -- friendlier, since at least informally statement identifiers are
6573 -- called labels in both cases (i.e. when used in labels, and when
6574 -- used as the identifiers of blocks and loops).
6576 -- Note: although this is logically a semantic node, since it does not
6577 -- correspond directly to a source syntax construction, these nodes are
6578 -- actually created by the parser in a post pass done just after parsing
6579 -- is complete, before semantic analysis is started (see Par.Labl).
6581 -- Sprint syntax: labelname : label;
6583 -- N_Implicit_Label_Declaration
6584 -- Sloc points to the << of the label
6585 -- Defining_Identifier (Node1)
6586 -- Label_Construct (Node2-Sem)
6588 -- Note: in the case where a debug source file is generated, the Sloc
6589 -- for this node points to the label name in the generated declaration.
6591 ---------------------
6592 -- Itype_Reference --
6593 ---------------------
6595 -- This node is used to create a reference to an Itype. The only purpose
6596 -- is to make sure the Itype is defined if this is the first reference.
6598 -- A typical use of this node is when an Itype is to be referenced in
6599 -- two branches of an IF statement. In this case it is important that
6600 -- the first use of the Itype not be inside the conditional, since then
6601 -- it might not be defined if the other branch of the IF is taken, in
6602 -- the case where the definition generates elaboration code.
6604 -- The Itype field points to the referenced Itype
6606 -- Sprint syntax: reference itype-name
6608 -- N_Itype_Reference
6609 -- Sloc points to the node generating the reference
6610 -- Itype (Node1-Sem)
6612 -- Note: in the case where a debug source file is generated, the Sloc
6613 -- for this node points to the REFERENCE keyword in the file output.
6615 ---------------------
6616 -- Raise_xxx_Error --
6617 ---------------------
6619 -- One of these nodes is created during semantic analysis to replace
6620 -- a node for an expression that is determined to definitely raise
6621 -- the corresponding exception.
6623 -- The N_Raise_xxx_Error node may also stand alone in place
6624 -- of a declaration or statement, in which case it simply causes
6625 -- the exception to be raised (i.e. it is equivalent to a raise
6626 -- statement that raises the corresponding exception). This use
6627 -- is distinguished by the fact that the Etype in this case is
6628 -- Standard_Void_Type, In the subexpression case, the Etype is the
6629 -- same as the type of the subexpression which it replaces.
6631 -- If Condition is empty, then the raise is unconditional. If the
6632 -- Condition field is non-empty, it is a boolean expression which
6633 -- is first evaluated, and the exception is raised only if the
6634 -- value of the expression is True. In the unconditional case, the
6635 -- creation of this node is usually accompanied by a warning message
6636 -- error. The creation of this node will usually be accompanied by a
6637 -- message (unless it appears within the right operand of a short
6638 -- circuit form whose left argument is static and decisively
6639 -- eliminates elaboration of the raise operation. The condition field
6640 -- can ONLY be present when the node is used as a statement form, it
6641 -- may NOT be present in the case where the node appears within an
6644 -- The exception is generated with a message that contains the
6645 -- file name and line number, and then appended text. The Reason
6646 -- code shows the text to be added. The Reason code is an element
6647 -- of the type Types.RT_Exception_Code, and indicates both the
6648 -- message to be added, and the exception to be raised (which must
6649 -- match the node type). The value is stored by storing a Uint which
6650 -- is the Pos value of the enumeration element in this type.
6652 -- Gigi restriction: This expander ensures that the type of the
6653 -- Condition field is always Standard.Boolean, even if the type
6654 -- in the source is some non-standard boolean type.
6656 -- Sprint syntax: [xxx_error "msg"]
6657 -- or: [xxx_error when condition "msg"]
6659 -- N_Raise_Constraint_Error
6660 -- Sloc references related construct
6661 -- Condition (Node1) (set to Empty if no condition)
6663 -- plus fields for expression
6665 -- N_Raise_Program_Error
6666 -- Sloc references related construct
6667 -- Condition (Node1) (set to Empty if no condition)
6669 -- plus fields for expression
6671 -- N_Raise_Storage_Error
6672 -- Sloc references related construct
6673 -- Condition (Node1) (set to Empty if no condition)
6675 -- plus fields for expression
6677 -- Note: Sloc is copied from the expression generating the exception.
6678 -- In the case where a debug source file is generated, the Sloc for
6679 -- this node points to the left bracket in the Sprint file output.
6681 -- Note: the back end may be required to translate these nodes into
6682 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6684 ---------------------------------------------
6685 -- Optimization of Exception Raise to Goto --
6686 ---------------------------------------------
6688 -- In some cases, the front end will determine that any exception raised
6689 -- by the back end for a certain exception should be transformed into a
6692 -- There are three kinds of exceptions raised by the back end (note that
6693 -- for this purpose we consider gigi to be part of the back end in the
6696 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6697 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6698 -- 3. Other cases not specifically marked by the front end
6700 -- Normally all such exceptions are translated into calls to the proper
6701 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6702 -- and the exception message.
6704 -- The front end may determine that for a particular sequence of code,
6705 -- exceptions in any of these three categories for a particular builtin
6706 -- exception should result in a goto, rather than a call to Rcheck_xx.
6707 -- The exact sequence to be generated is:
6709 -- Local_Raise (exception'Identity);
6712 -- The front end marks such a sequence of code by bracketing it with
6713 -- push and pop nodes:
6715 -- N_Push_xxx_Label (referencing the label)
6717 -- (code where transformation is expected for exception xxx)
6721 -- The use of push/pop reflects the fact that such regions can properly
6722 -- nest, and one special case is a subregion in which no transformation
6723 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6724 -- Exception_Label field is Empty.
6726 -- N_Push_Constraint_Error_Label
6727 -- Sloc references first statement in region covered
6728 -- Exception_Label (Node5-Sem)
6730 -- N_Push_Program_Error_Label
6731 -- Sloc references first statement in region covered
6732 -- Exception_Label (Node5-Sem)
6734 -- N_Push_Storage_Error_Label
6735 -- Sloc references first statement in region covered
6736 -- Exception_Label (Node5-Sem)
6738 -- N_Pop_Constraint_Error_Label
6739 -- Sloc references last statement in region covered
6741 -- N_Pop_Program_Error_Label
6742 -- Sloc references last statement in region covered
6744 -- N_Pop_Storage_Error_Label
6745 -- Sloc references last statement in region covered
6751 -- For a number of purposes, we need to construct references to objects.
6752 -- These references are subsequently treated as normal access values.
6753 -- An example is the construction of the parameter block passed to a
6754 -- task entry. The N_Reference node is provided for this purpose. It is
6755 -- similar in effect to the use of the Unrestricted_Access attribute,
6756 -- and like Unrestricted_Access can be applied to objects which would
6757 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6758 -- objects which are not aliased, and slices). In addition it can be
6759 -- applied to composite type values as well as objects, including string
6760 -- values and aggregates.
6762 -- Note: we use the Prefix field for this expression so that the
6763 -- resulting node can be treated using common code with the attribute
6764 -- nodes for the 'Access and related attributes. Logically it would make
6765 -- more sense to call it an Expression field, but then we would have to
6766 -- special case the treatment of the N_Reference node.
6768 -- Sprint syntax: prefix'reference
6771 -- Sloc is copied from the expression
6773 -- plus fields for expression
6775 -- Note: in the case where a debug source file is generated, the Sloc
6776 -- for this node points to the quote in the Sprint file output.
6778 ---------------------
6779 -- Subprogram_Info --
6780 ---------------------
6782 -- This node generates the appropriate Subprogram_Info value for a
6783 -- given procedure. See Ada.Exceptions for further details
6785 -- Sprint syntax: subprog'subprogram_info
6787 -- N_Subprogram_Info
6788 -- Sloc points to the entity for the procedure
6789 -- Identifier (Node1) identifier referencing the procedure
6790 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6792 -- Note: in the case where a debug source file is generated, the Sloc
6793 -- for this node points to the quote in the Sprint file output.
6795 --------------------------
6796 -- Unchecked Expression --
6797 --------------------------
6799 -- An unchecked expression is one that must be analyzed and resolved
6800 -- with all checks off, regardless of the current setting of scope
6803 -- Sprint syntax: `(expression)
6805 -- Note: this node is always removed from the tree (and replaced by
6806 -- its constituent expression) on completion of analysis, so it only
6807 -- appears in intermediate trees, and will never be seen by Gigi.
6809 -- N_Unchecked_Expression
6810 -- Sloc is a copy of the Sloc of the expression
6811 -- Expression (Node3)
6812 -- plus fields for expression
6814 -- Note: in the case where a debug source file is generated, the Sloc
6815 -- for this node points to the back quote in the Sprint file output.
6817 -------------------------------
6818 -- Unchecked Type Conversion --
6819 -------------------------------
6821 -- An unchecked type conversion node represents the semantic action
6822 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6823 -- It is generated as a result of actual use of Unchecked_Conversion
6824 -- and also the expander generates unchecked type conversion nodes
6825 -- directly for expansion of complex semantic actions.
6827 -- Note: an unchecked type conversion is a variable as far as the
6828 -- semantics are concerned, which is convenient for the expander.
6829 -- This does not change what Ada source programs are legal, since
6830 -- clearly a function call to an instantiation of Unchecked_Conversion
6831 -- is not a variable in any case.
6833 -- Sprint syntax: subtype-mark!(expression)
6835 -- N_Unchecked_Type_Conversion
6836 -- Sloc points to related node in source
6837 -- Subtype_Mark (Node4)
6838 -- Expression (Node3)
6839 -- Kill_Range_Check (Flag11-Sem)
6840 -- No_Truncation (Flag17-Sem)
6841 -- plus fields for expression
6843 -- Note: in the case where a debug source file is generated, the Sloc
6844 -- for this node points to the exclamation in the Sprint file output.
6846 -----------------------------------
6847 -- Validate_Unchecked_Conversion --
6848 -----------------------------------
6850 -- The front end does most of the validation of unchecked conversion,
6851 -- including checking sizes (this is done after the back end is called
6852 -- to take advantage of back-annotation of calculated sizes).
6854 -- The front end also deals with specific cases that are not allowed
6855 -- e.g. involving unconstrained array types.
6857 -- For the case of the standard gigi backend, this means that all
6858 -- checks are done in the front-end.
6860 -- However, in the case of specialized back-ends, notably the JVM
6861 -- backend for JGNAT, additional requirements and restrictions apply
6862 -- to unchecked conversion, and these are most conveniently performed
6863 -- in the specialized back-end.
6865 -- To accommodate this requirement, for such back ends, the following
6866 -- special node is generated recording an unchecked conversion that
6867 -- needs to be validated. The back end should post an appropriate
6868 -- error message if the unchecked conversion is invalid or warrants
6869 -- a special warning message.
6871 -- Source_Type and Target_Type point to the entities for the two
6872 -- types involved in the unchecked conversion instantiation that
6873 -- is to be validated.
6875 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6877 -- N_Validate_Unchecked_Conversion
6878 -- Sloc points to instantiation (location for warning message)
6879 -- Source_Type (Node1-Sem)
6880 -- Target_Type (Node2-Sem)
6882 -- Note: in the case where a debug source file is generated, the Sloc
6883 -- for this node points to the VALIDATE keyword in the file output.
6889 -- Used as the contents of the Nkind field of the dummy Empty node
6890 -- and in some other situations to indicate an uninitialized value.
6893 -- Chars (Name1) is set to No_Name
6899 -- Used as the contents of the Nkind field of the dummy Error node.
6900 -- Has an Etype field, which gets set to Any_Type later on, to help
6901 -- error recovery (Error_Posted is also set in the Error node).
6904 -- Chars (Name1) is set to Error_Name
6905 -- Etype (Node5-Sem)
6907 --------------------------
6908 -- Node Type Definition --
6909 --------------------------
6911 -- The following is the definition of the Node_Kind type. As previously
6912 -- discussed, this is separated off to allow rearrangement of the order
6913 -- to facilitate definition of subtype ranges. The comments show the
6914 -- subtype classes which apply to each set of node kinds. The first
6915 -- entry in the comment characterizes the following list of nodes.
6920 -- N_Representation_Clause
6924 N_Enumeration_Representation_Clause,
6926 N_Record_Representation_Clause,
6928 -- N_Representation_Clause, N_Has_Chars
6930 N_Attribute_Definition_Clause,
6935 N_Pragma_Argument_Association,
6941 -- N_Entity, N_Has_Etype, N_Has_Chars
6943 N_Defining_Character_Literal,
6944 N_Defining_Identifier,
6945 N_Defining_Operator_Symbol,
6947 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6951 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6952 -- N_Has_Chars, N_Has_Entity
6957 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6958 -- N_Has_Chars, N_Has_Entity
6960 N_Character_Literal,
6962 -- N_Binary_Op, N_Op, N_Subexpr,
6963 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6970 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6971 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6978 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6979 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6983 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6984 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6993 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6994 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6999 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7000 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7006 N_Op_Shift_Right_Arithmetic,
7008 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7009 -- N_Has_Chars, N_Has_Entity
7016 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7018 N_Attribute_Reference,
7020 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7025 -- N_Subexpr, N_Has_Etype
7028 N_Conditional_Expression,
7029 N_Explicit_Dereference,
7031 N_Indexed_Component,
7035 N_Procedure_Call_Statement,
7036 N_Qualified_Expression,
7038 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7040 N_Raise_Constraint_Error,
7041 N_Raise_Program_Error,
7042 N_Raise_Storage_Error,
7044 -- N_Subexpr, N_Has_Etype
7048 N_Extension_Aggregate,
7052 N_Selected_Component,
7057 N_Unchecked_Expression,
7058 N_Unchecked_Type_Conversion,
7062 N_Subtype_Indication,
7066 N_Component_Declaration,
7067 N_Entry_Declaration,
7068 N_Formal_Object_Declaration,
7069 N_Formal_Type_Declaration,
7070 N_Full_Type_Declaration,
7071 N_Incomplete_Type_Declaration,
7072 N_Loop_Parameter_Specification,
7073 N_Object_Declaration,
7074 N_Protected_Type_Declaration,
7075 N_Private_Extension_Declaration,
7076 N_Private_Type_Declaration,
7077 N_Subtype_Declaration,
7079 -- N_Subprogram_Specification, N_Declaration
7081 N_Function_Specification,
7082 N_Procedure_Specification,
7084 -- N_Access_To_Subprogram_Definition
7086 N_Access_Function_Definition,
7087 N_Access_Procedure_Definition,
7089 -- N_Later_Decl_Item
7091 N_Task_Type_Declaration,
7093 -- N_Body_Stub, N_Later_Decl_Item
7095 N_Package_Body_Stub,
7096 N_Protected_Body_Stub,
7097 N_Subprogram_Body_Stub,
7100 -- N_Generic_Instantiation, N_Later_Decl_Item
7101 -- N_Subprogram_Instantiation
7103 N_Function_Instantiation,
7104 N_Procedure_Instantiation,
7106 -- N_Generic_Instantiation, N_Later_Decl_Item
7108 N_Package_Instantiation,
7110 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7115 -- N_Later_Decl_Item, N_Proper_Body
7120 -- N_Later_Decl_Item
7122 N_Implicit_Label_Declaration,
7123 N_Package_Declaration,
7124 N_Single_Task_Declaration,
7125 N_Subprogram_Declaration,
7126 N_Use_Package_Clause,
7128 -- N_Generic_Declaration, N_Later_Decl_Item
7130 N_Generic_Package_Declaration,
7131 N_Generic_Subprogram_Declaration,
7133 -- N_Array_Type_Definition
7135 N_Constrained_Array_Definition,
7136 N_Unconstrained_Array_Definition,
7138 -- N_Renaming_Declaration
7140 N_Exception_Renaming_Declaration,
7141 N_Object_Renaming_Declaration,
7142 N_Package_Renaming_Declaration,
7143 N_Subprogram_Renaming_Declaration,
7145 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7147 N_Generic_Function_Renaming_Declaration,
7148 N_Generic_Package_Renaming_Declaration,
7149 N_Generic_Procedure_Renaming_Declaration,
7151 -- N_Statement_Other_Than_Procedure_Call
7155 N_Assignment_Statement,
7156 N_Asynchronous_Select,
7160 N_Conditional_Entry_Call,
7162 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7164 N_Delay_Relative_Statement,
7165 N_Delay_Until_Statement,
7167 -- N_Statement_Other_Than_Procedure_Call
7169 N_Entry_Call_Statement,
7175 N_Requeue_Statement,
7176 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7177 N_Extended_Return_Statement,
7181 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7188 N_Accept_Alternative,
7189 N_Delay_Alternative,
7191 N_Entry_Body_Formal_Part,
7193 N_Terminate_Alternative,
7195 -- N_Formal_Subprogram_Declaration
7197 N_Formal_Abstract_Subprogram_Declaration,
7198 N_Formal_Concrete_Subprogram_Declaration,
7200 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7202 N_Push_Constraint_Error_Label,
7203 N_Push_Program_Error_Label,
7204 N_Push_Storage_Error_Label,
7206 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7208 N_Pop_Constraint_Error_Label,
7209 N_Pop_Program_Error_Label,
7210 N_Pop_Storage_Error_Label,
7212 -- Other nodes (not part of any subtype class)
7215 N_Abstract_Subprogram_Declaration,
7216 N_Access_Definition,
7217 N_Access_To_Object_Definition,
7218 N_Case_Statement_Alternative,
7220 N_Compilation_Unit_Aux,
7221 N_Component_Association,
7222 N_Component_Definition,
7224 N_Derived_Type_Definition,
7225 N_Decimal_Fixed_Point_Definition,
7226 N_Defining_Program_Unit_Name,
7229 N_Digits_Constraint,
7230 N_Discriminant_Association,
7231 N_Discriminant_Specification,
7232 N_Enumeration_Type_Definition,
7234 N_Entry_Call_Alternative,
7235 N_Entry_Index_Specification,
7236 N_Exception_Declaration,
7237 N_Exception_Handler,
7238 N_Floating_Point_Definition,
7239 N_Formal_Decimal_Fixed_Point_Definition,
7240 N_Formal_Derived_Type_Definition,
7241 N_Formal_Discrete_Type_Definition,
7242 N_Formal_Floating_Point_Definition,
7243 N_Formal_Modular_Type_Definition,
7244 N_Formal_Ordinary_Fixed_Point_Definition,
7245 N_Formal_Package_Declaration,
7246 N_Formal_Private_Type_Definition,
7247 N_Formal_Signed_Integer_Type_Definition,
7249 N_Generic_Association,
7250 N_Handled_Sequence_Of_Statements,
7251 N_Index_Or_Discriminant_Constraint,
7254 N_Modular_Type_Definition,
7255 N_Number_Declaration,
7256 N_Ordinary_Fixed_Point_Definition,
7258 N_Package_Specification,
7259 N_Parameter_Association,
7260 N_Parameter_Specification,
7262 N_Protected_Definition,
7264 N_Real_Range_Specification,
7265 N_Record_Definition,
7266 N_Signed_Integer_Type_Definition,
7267 N_Single_Protected_Declaration,
7270 N_Triggering_Alternative,
7272 N_Validate_Unchecked_Conversion,
7278 for Node_Kind'Size use 8;
7279 -- The data structures in Atree assume this!
7281 ----------------------------
7282 -- Node Class Definitions --
7283 ----------------------------
7285 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7286 N_Access_Function_Definition ..
7287 N_Access_Procedure_Definition;
7289 subtype N_Array_Type_Definition is Node_Kind range
7290 N_Constrained_Array_Definition ..
7291 N_Unconstrained_Array_Definition;
7293 subtype N_Binary_Op is Node_Kind range
7295 N_Op_Shift_Right_Arithmetic;
7297 subtype N_Body_Stub is Node_Kind range
7298 N_Package_Body_Stub ..
7301 subtype N_Declaration is Node_Kind range
7302 N_Component_Declaration ..
7303 N_Procedure_Specification;
7304 -- Note: this includes all constructs normally thought of as declarations
7305 -- except those which are separately grouped as later declarations.
7307 subtype N_Delay_Statement is Node_Kind range
7308 N_Delay_Relative_Statement ..
7309 N_Delay_Until_Statement;
7311 subtype N_Direct_Name is Node_Kind range
7313 N_Character_Literal;
7315 subtype N_Entity is Node_Kind range
7316 N_Defining_Character_Literal ..
7317 N_Defining_Operator_Symbol;
7319 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7320 N_Formal_Abstract_Subprogram_Declaration ..
7321 N_Formal_Concrete_Subprogram_Declaration;
7323 subtype N_Generic_Declaration is Node_Kind range
7324 N_Generic_Package_Declaration ..
7325 N_Generic_Subprogram_Declaration;
7327 subtype N_Generic_Instantiation is Node_Kind range
7328 N_Function_Instantiation ..
7329 N_Package_Instantiation;
7331 subtype N_Generic_Renaming_Declaration is Node_Kind range
7332 N_Generic_Function_Renaming_Declaration ..
7333 N_Generic_Procedure_Renaming_Declaration;
7335 subtype N_Has_Chars is Node_Kind range
7336 N_Attribute_Definition_Clause ..
7339 subtype N_Has_Entity is Node_Kind range
7341 N_Attribute_Reference;
7342 -- Nodes that have Entity fields
7343 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7345 subtype N_Has_Etype is Node_Kind range
7347 N_Subtype_Indication;
7349 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7353 subtype N_Multiplying_Operator is Node_Kind range
7357 subtype N_Later_Decl_Item is Node_Kind range
7358 N_Task_Type_Declaration ..
7359 N_Generic_Subprogram_Declaration;
7360 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7361 -- includes only those items which can appear as later declarative
7362 -- items. This also includes N_Implicit_Label_Declaration which is
7363 -- not specifically in the grammar but may appear as a valid later
7364 -- declarative items. It does NOT include N_Pragma which can also
7365 -- appear among later declarative items. It does however include
7366 -- N_Protected_Body, which is a bit peculiar, but harmless since
7367 -- this cannot appear in Ada 83 mode anyway.
7369 subtype N_Membership_Test is Node_Kind range
7373 subtype N_Op is Node_Kind range
7377 subtype N_Op_Boolean is Node_Kind range
7380 -- Binary operators which take operands of a boolean type, and yield
7381 -- a result of a boolean type.
7383 subtype N_Op_Compare is Node_Kind range
7387 subtype N_Op_Shift is Node_Kind range
7389 N_Op_Shift_Right_Arithmetic;
7391 subtype N_Proper_Body is Node_Kind range
7395 subtype N_Push_xxx_Label is Node_Kind range
7396 N_Push_Constraint_Error_Label ..
7397 N_Push_Storage_Error_Label;
7399 subtype N_Pop_xxx_Label is Node_Kind range
7400 N_Pop_Constraint_Error_Label ..
7401 N_Pop_Storage_Error_Label;
7403 subtype N_Push_Pop_xxx_Label is Node_Kind range
7404 N_Push_Constraint_Error_Label ..
7405 N_Pop_Storage_Error_Label;
7407 subtype N_Raise_xxx_Error is Node_Kind range
7408 N_Raise_Constraint_Error ..
7409 N_Raise_Storage_Error;
7411 subtype N_Renaming_Declaration is Node_Kind range
7412 N_Exception_Renaming_Declaration ..
7413 N_Generic_Procedure_Renaming_Declaration;
7415 subtype N_Representation_Clause is Node_Kind range
7417 N_Attribute_Definition_Clause;
7419 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7420 N_Abort_Statement ..
7422 -- Note that this includes all statement types except for the cases of the
7423 -- N_Procedure_Call_Statement which is considered to be a subexpression
7424 -- (since overloading is possible, so it needs to go through the normal
7425 -- overloading resolution for expressions).
7427 subtype N_Subprogram_Instantiation is Node_Kind range
7428 N_Function_Instantiation ..
7429 N_Procedure_Instantiation;
7431 subtype N_Has_Condition is Node_Kind range
7433 N_Terminate_Alternative;
7434 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7436 subtype N_Subexpr is Node_Kind range
7438 N_Unchecked_Type_Conversion;
7439 -- Nodes with expression fields
7441 subtype N_Subprogram_Specification is Node_Kind range
7442 N_Function_Specification ..
7443 N_Procedure_Specification;
7445 subtype N_Unary_Op is Node_Kind range
7449 subtype N_Unit_Body is Node_Kind range
7453 ---------------------------
7454 -- Node Access Functions --
7455 ---------------------------
7457 -- The following functions return the contents of the indicated field of
7458 -- the node referenced by the argument, which is a Node_Id. They provide
7459 -- logical access to fields in the node which could be accessed using the
7460 -- Atree.Unchecked_Access package, but the idea is always to use these
7461 -- higher level routines which preserve strong typing. In debug mode,
7462 -- these routines check that they are being applied to an appropriate
7463 -- node, as well as checking that the node is in range.
7465 function ABE_Is_Certain
7466 (N : Node_Id) return Boolean; -- Flag18
7468 function Abort_Present
7469 (N : Node_Id) return Boolean; -- Flag15
7471 function Abortable_Part
7472 (N : Node_Id) return Node_Id; -- Node2
7474 function Abstract_Present
7475 (N : Node_Id) return Boolean; -- Flag4
7477 function Accept_Handler_Records
7478 (N : Node_Id) return List_Id; -- List5
7480 function Accept_Statement
7481 (N : Node_Id) return Node_Id; -- Node2
7483 function Access_Definition
7484 (N : Node_Id) return Node_Id; -- Node3
7486 function Access_To_Subprogram_Definition
7487 (N : Node_Id) return Node_Id; -- Node3
7489 function Access_Types_To_Process
7490 (N : Node_Id) return Elist_Id; -- Elist2
7493 (N : Node_Id) return List_Id; -- List1
7495 function Activation_Chain_Entity
7496 (N : Node_Id) return Node_Id; -- Node3
7498 function Acts_As_Spec
7499 (N : Node_Id) return Boolean; -- Flag4
7501 function Actual_Designated_Subtype
7502 (N : Node_Id) return Node_Id; -- Node4
7504 function Address_Warning_Posted
7505 (N : Node_Id) return Boolean; -- Flag18
7507 function Aggregate_Bounds
7508 (N : Node_Id) return Node_Id; -- Node3
7510 function Aliased_Present
7511 (N : Node_Id) return Boolean; -- Flag4
7514 (N : Node_Id) return Boolean; -- Flag11
7516 function All_Present
7517 (N : Node_Id) return Boolean; -- Flag15
7519 function Alternatives
7520 (N : Node_Id) return List_Id; -- List4
7522 function Ancestor_Part
7523 (N : Node_Id) return Node_Id; -- Node3
7525 function Array_Aggregate
7526 (N : Node_Id) return Node_Id; -- Node3
7528 function Assignment_OK
7529 (N : Node_Id) return Boolean; -- Flag15
7531 function Associated_Node
7532 (N : Node_Id) return Node_Id; -- Node4
7534 function At_End_Proc
7535 (N : Node_Id) return Node_Id; -- Node1
7537 function Attribute_Name
7538 (N : Node_Id) return Name_Id; -- Name2
7540 function Aux_Decls_Node
7541 (N : Node_Id) return Node_Id; -- Node5
7543 function Backwards_OK
7544 (N : Node_Id) return Boolean; -- Flag6
7546 function Bad_Is_Detected
7547 (N : Node_Id) return Boolean; -- Flag15
7550 (N : Node_Id) return Boolean; -- Flag5
7552 function Body_Required
7553 (N : Node_Id) return Boolean; -- Flag13
7555 function Body_To_Inline
7556 (N : Node_Id) return Node_Id; -- Node3
7558 function Box_Present
7559 (N : Node_Id) return Boolean; -- Flag15
7561 function Char_Literal_Value
7562 (N : Node_Id) return Uint; -- Uint2
7565 (N : Node_Id) return Name_Id; -- Name1
7567 function Check_Address_Alignment
7568 (N : Node_Id) return Boolean; -- Flag11
7570 function Choice_Parameter
7571 (N : Node_Id) return Node_Id; -- Node2
7574 (N : Node_Id) return List_Id; -- List1
7576 function Coextensions
7577 (N : Node_Id) return Elist_Id; -- Elist4
7579 function Comes_From_Extended_Return_Statement
7580 (N : Node_Id) return Boolean; -- Flag18
7582 function Compile_Time_Known_Aggregate
7583 (N : Node_Id) return Boolean; -- Flag18
7585 function Component_Associations
7586 (N : Node_Id) return List_Id; -- List2
7588 function Component_Clauses
7589 (N : Node_Id) return List_Id; -- List3
7591 function Component_Definition
7592 (N : Node_Id) return Node_Id; -- Node4
7594 function Component_Items
7595 (N : Node_Id) return List_Id; -- List3
7597 function Component_List
7598 (N : Node_Id) return Node_Id; -- Node1
7600 function Component_Name
7601 (N : Node_Id) return Node_Id; -- Node1
7604 (N : Node_Id) return Node_Id; -- Node1
7606 function Condition_Actions
7607 (N : Node_Id) return List_Id; -- List3
7609 function Config_Pragmas
7610 (N : Node_Id) return List_Id; -- List4
7612 function Constant_Present
7613 (N : Node_Id) return Boolean; -- Flag17
7616 (N : Node_Id) return Node_Id; -- Node3
7618 function Constraints
7619 (N : Node_Id) return List_Id; -- List1
7621 function Context_Installed
7622 (N : Node_Id) return Boolean; -- Flag13
7624 function Context_Items
7625 (N : Node_Id) return List_Id; -- List1
7627 function Controlling_Argument
7628 (N : Node_Id) return Node_Id; -- Node1
7630 function Conversion_OK
7631 (N : Node_Id) return Boolean; -- Flag14
7633 function Corresponding_Body
7634 (N : Node_Id) return Node_Id; -- Node5
7636 function Corresponding_Formal_Spec
7637 (N : Node_Id) return Node_Id; -- Node3
7639 function Corresponding_Generic_Association
7640 (N : Node_Id) return Node_Id; -- Node5
7642 function Corresponding_Integer_Value
7643 (N : Node_Id) return Uint; -- Uint4
7645 function Corresponding_Spec
7646 (N : Node_Id) return Node_Id; -- Node5
7648 function Corresponding_Stub
7649 (N : Node_Id) return Node_Id; -- Node3
7651 function Dcheck_Function
7652 (N : Node_Id) return Entity_Id; -- Node5
7654 function Debug_Statement
7655 (N : Node_Id) return Node_Id; -- Node3
7657 function Declarations
7658 (N : Node_Id) return List_Id; -- List2
7660 function Default_Expression
7661 (N : Node_Id) return Node_Id; -- Node5
7663 function Default_Name
7664 (N : Node_Id) return Node_Id; -- Node2
7666 function Defining_Identifier
7667 (N : Node_Id) return Entity_Id; -- Node1
7669 function Defining_Unit_Name
7670 (N : Node_Id) return Node_Id; -- Node1
7672 function Delay_Alternative
7673 (N : Node_Id) return Node_Id; -- Node4
7675 function Delay_Statement
7676 (N : Node_Id) return Node_Id; -- Node2
7678 function Delta_Expression
7679 (N : Node_Id) return Node_Id; -- Node3
7681 function Digits_Expression
7682 (N : Node_Id) return Node_Id; -- Node2
7684 function Discr_Check_Funcs_Built
7685 (N : Node_Id) return Boolean; -- Flag11
7687 function Discrete_Choices
7688 (N : Node_Id) return List_Id; -- List4
7690 function Discrete_Range
7691 (N : Node_Id) return Node_Id; -- Node4
7693 function Discrete_Subtype_Definition
7694 (N : Node_Id) return Node_Id; -- Node4
7696 function Discrete_Subtype_Definitions
7697 (N : Node_Id) return List_Id; -- List2
7699 function Discriminant_Specifications
7700 (N : Node_Id) return List_Id; -- List4
7702 function Discriminant_Type
7703 (N : Node_Id) return Node_Id; -- Node5
7705 function Do_Accessibility_Check
7706 (N : Node_Id) return Boolean; -- Flag13
7708 function Do_Discriminant_Check
7709 (N : Node_Id) return Boolean; -- Flag13
7711 function Do_Division_Check
7712 (N : Node_Id) return Boolean; -- Flag13
7714 function Do_Length_Check
7715 (N : Node_Id) return Boolean; -- Flag4
7717 function Do_Overflow_Check
7718 (N : Node_Id) return Boolean; -- Flag17
7720 function Do_Range_Check
7721 (N : Node_Id) return Boolean; -- Flag9
7723 function Do_Storage_Check
7724 (N : Node_Id) return Boolean; -- Flag17
7726 function Do_Tag_Check
7727 (N : Node_Id) return Boolean; -- Flag13
7729 function Elaborate_All_Desirable
7730 (N : Node_Id) return Boolean; -- Flag9
7732 function Elaborate_All_Present
7733 (N : Node_Id) return Boolean; -- Flag14
7735 function Elaborate_Desirable
7736 (N : Node_Id) return Boolean; -- Flag11
7738 function Elaborate_Present
7739 (N : Node_Id) return Boolean; -- Flag4
7741 function Elaboration_Boolean
7742 (N : Node_Id) return Node_Id; -- Node2
7744 function Else_Actions
7745 (N : Node_Id) return List_Id; -- List3
7747 function Else_Statements
7748 (N : Node_Id) return List_Id; -- List4
7750 function Elsif_Parts
7751 (N : Node_Id) return List_Id; -- List3
7753 function Enclosing_Variant
7754 (N : Node_Id) return Node_Id; -- Node2
7757 (N : Node_Id) return Node_Id; -- Node4
7760 (N : Node_Id) return Uint; -- Uint5
7763 (N : Node_Id) return Node_Id; -- Node4
7765 function Entity_Or_Associated_Node
7766 (N : Node_Id) return Node_Id; -- Node4
7768 function Entry_Body_Formal_Part
7769 (N : Node_Id) return Node_Id; -- Node5
7771 function Entry_Call_Alternative
7772 (N : Node_Id) return Node_Id; -- Node1
7774 function Entry_Call_Statement
7775 (N : Node_Id) return Node_Id; -- Node1
7777 function Entry_Direct_Name
7778 (N : Node_Id) return Node_Id; -- Node1
7780 function Entry_Index
7781 (N : Node_Id) return Node_Id; -- Node5
7783 function Entry_Index_Specification
7784 (N : Node_Id) return Node_Id; -- Node4
7787 (N : Node_Id) return Node_Id; -- Node5
7789 function Exception_Choices
7790 (N : Node_Id) return List_Id; -- List4
7792 function Exception_Handlers
7793 (N : Node_Id) return List_Id; -- List5
7795 function Exception_Junk
7796 (N : Node_Id) return Boolean; -- Flag8
7798 function Exception_Label
7799 (N : Node_Id) return Node_Id; -- Node5
7801 function Explicit_Actual_Parameter
7802 (N : Node_Id) return Node_Id; -- Node3
7804 function Expansion_Delayed
7805 (N : Node_Id) return Boolean; -- Flag11
7807 function Explicit_Generic_Actual_Parameter
7808 (N : Node_Id) return Node_Id; -- Node1
7811 (N : Node_Id) return Node_Id; -- Node3
7813 function Expressions
7814 (N : Node_Id) return List_Id; -- List1
7817 (N : Node_Id) return Node_Id; -- Node3
7819 function First_Inlined_Subprogram
7820 (N : Node_Id) return Entity_Id; -- Node3
7823 (N : Node_Id) return Boolean; -- Flag5
7825 function First_Named_Actual
7826 (N : Node_Id) return Node_Id; -- Node4
7828 function First_Real_Statement
7829 (N : Node_Id) return Node_Id; -- Node2
7831 function First_Subtype_Link
7832 (N : Node_Id) return Entity_Id; -- Node5
7834 function Float_Truncate
7835 (N : Node_Id) return Boolean; -- Flag11
7837 function Formal_Type_Definition
7838 (N : Node_Id) return Node_Id; -- Node3
7840 function Forwards_OK
7841 (N : Node_Id) return Boolean; -- Flag5
7843 function From_At_End
7844 (N : Node_Id) return Boolean; -- Flag4
7846 function From_At_Mod
7847 (N : Node_Id) return Boolean; -- Flag4
7849 function From_Default
7850 (N : Node_Id) return Boolean; -- Flag6
7852 function Generic_Associations
7853 (N : Node_Id) return List_Id; -- List3
7855 function Generic_Formal_Declarations
7856 (N : Node_Id) return List_Id; -- List2
7858 function Generic_Parent
7859 (N : Node_Id) return Node_Id; -- Node5
7861 function Generic_Parent_Type
7862 (N : Node_Id) return Node_Id; -- Node4
7864 function Handled_Statement_Sequence
7865 (N : Node_Id) return Node_Id; -- Node4
7867 function Handler_List_Entry
7868 (N : Node_Id) return Node_Id; -- Node2
7870 function Has_Created_Identifier
7871 (N : Node_Id) return Boolean; -- Flag15
7873 function Has_Dynamic_Length_Check
7874 (N : Node_Id) return Boolean; -- Flag10
7876 function Has_Dynamic_Range_Check
7877 (N : Node_Id) return Boolean; -- Flag12
7879 function Has_Init_Expression
7880 (N : Node_Id) return Boolean; -- Flag14
7882 function Has_Local_Raise
7883 (N : Node_Id) return Boolean; -- Flag8
7885 function Has_No_Elaboration_Code
7886 (N : Node_Id) return Boolean; -- Flag17
7888 function Has_Priority_Pragma
7889 (N : Node_Id) return Boolean; -- Flag6
7891 function Has_Private_View
7892 (N : Node_Id) return Boolean; -- Flag11
7894 function Has_Relative_Deadline_Pragma
7895 (N : Node_Id) return Boolean; -- Flag9
7897 function Has_Self_Reference
7898 (N : Node_Id) return Boolean; -- Flag13
7900 function Has_Storage_Size_Pragma
7901 (N : Node_Id) return Boolean; -- Flag5
7903 function Has_Task_Info_Pragma
7904 (N : Node_Id) return Boolean; -- Flag7
7906 function Has_Task_Name_Pragma
7907 (N : Node_Id) return Boolean; -- Flag8
7909 function Has_Wide_Character
7910 (N : Node_Id) return Boolean; -- Flag11
7912 function Hidden_By_Use_Clause
7913 (N : Node_Id) return Elist_Id; -- Elist4
7916 (N : Node_Id) return Node_Id; -- Node2
7919 (N : Node_Id) return Node_Id; -- Node1
7921 function Interface_List
7922 (N : Node_Id) return List_Id; -- List2
7924 function Interface_Present
7925 (N : Node_Id) return Boolean; -- Flag16
7927 function Implicit_With
7928 (N : Node_Id) return Boolean; -- Flag16
7931 (N : Node_Id) return Boolean; -- Flag15
7933 function Includes_Infinities
7934 (N : Node_Id) return Boolean; -- Flag11
7936 function Instance_Spec
7937 (N : Node_Id) return Node_Id; -- Node5
7940 (N : Node_Id) return Uint; -- Uint3
7942 function Is_Asynchronous_Call_Block
7943 (N : Node_Id) return Boolean; -- Flag7
7945 function Is_Component_Left_Opnd
7946 (N : Node_Id) return Boolean; -- Flag13
7948 function Is_Component_Right_Opnd
7949 (N : Node_Id) return Boolean; -- Flag14
7951 function Is_Controlling_Actual
7952 (N : Node_Id) return Boolean; -- Flag16
7954 function Is_Dynamic_Coextension
7955 (N : Node_Id) return Boolean; -- Flag18
7957 function Is_Entry_Barrier_Function
7958 (N : Node_Id) return Boolean; -- Flag8
7960 function Is_Expanded_Build_In_Place_Call
7961 (N : Node_Id) return Boolean; -- Flag11
7963 function Is_Folded_In_Parser
7964 (N : Node_Id) return Boolean; -- Flag4
7966 function Is_In_Discriminant_Check
7967 (N : Node_Id) return Boolean; -- Flag11
7969 function Is_Machine_Number
7970 (N : Node_Id) return Boolean; -- Flag11
7972 function Is_Null_Loop
7973 (N : Node_Id) return Boolean; -- Flag16
7975 function Is_Overloaded
7976 (N : Node_Id) return Boolean; -- Flag5
7978 function Is_Power_Of_2_For_Shift
7979 (N : Node_Id) return Boolean; -- Flag13
7981 function Is_Protected_Subprogram_Body
7982 (N : Node_Id) return Boolean; -- Flag7
7984 function Is_Static_Coextension
7985 (N : Node_Id) return Boolean; -- Flag14
7987 function Is_Static_Expression
7988 (N : Node_Id) return Boolean; -- Flag6
7990 function Is_Subprogram_Descriptor
7991 (N : Node_Id) return Boolean; -- Flag16
7993 function Is_Task_Allocation_Block
7994 (N : Node_Id) return Boolean; -- Flag6
7996 function Is_Task_Master
7997 (N : Node_Id) return Boolean; -- Flag5
7999 function Iteration_Scheme
8000 (N : Node_Id) return Node_Id; -- Node2
8003 (N : Node_Id) return Entity_Id; -- Node1
8005 function Kill_Range_Check
8006 (N : Node_Id) return Boolean; -- Flag11
8008 function Label_Construct
8009 (N : Node_Id) return Node_Id; -- Node2
8012 (N : Node_Id) return Node_Id; -- Node2
8015 (N : Node_Id) return Node_Id; -- Node4
8018 (N : Node_Id) return Boolean; -- Flag6
8020 function Library_Unit
8021 (N : Node_Id) return Node_Id; -- Node4
8023 function Limited_View_Installed
8024 (N : Node_Id) return Boolean; -- Flag18
8026 function Limited_Present
8027 (N : Node_Id) return Boolean; -- Flag17
8030 (N : Node_Id) return List_Id; -- List1
8032 function Local_Raise_Not_OK
8033 (N : Node_Id) return Boolean; -- Flag7
8035 function Local_Raise_Statements
8036 (N : Node_Id) return Elist_Id; -- Elist1
8038 function Loop_Actions
8039 (N : Node_Id) return List_Id; -- List2
8041 function Loop_Parameter_Specification
8042 (N : Node_Id) return Node_Id; -- Node4
8045 (N : Node_Id) return Node_Id; -- Node1
8048 (N : Node_Id) return Node_Id; -- Node2
8051 (N : Node_Id) return Boolean; -- Flag5
8053 function Must_Be_Byte_Aligned
8054 (N : Node_Id) return Boolean; -- Flag14
8056 function Must_Not_Freeze
8057 (N : Node_Id) return Boolean; -- Flag8
8059 function Must_Not_Override
8060 (N : Node_Id) return Boolean; -- Flag15
8062 function Must_Override
8063 (N : Node_Id) return Boolean; -- Flag14
8066 (N : Node_Id) return Node_Id; -- Node2
8069 (N : Node_Id) return List_Id; -- List2
8071 function Next_Entity
8072 (N : Node_Id) return Node_Id; -- Node2
8074 function Next_Named_Actual
8075 (N : Node_Id) return Node_Id; -- Node4
8077 function Next_Pragma
8078 (N : Node_Id) return Node_Id; -- Node1
8080 function Next_Rep_Item
8081 (N : Node_Id) return Node_Id; -- Node5
8083 function Next_Use_Clause
8084 (N : Node_Id) return Node_Id; -- Node3
8086 function No_Ctrl_Actions
8087 (N : Node_Id) return Boolean; -- Flag7
8089 function No_Elaboration_Check
8090 (N : Node_Id) return Boolean; -- Flag14
8092 function No_Entities_Ref_In_Spec
8093 (N : Node_Id) return Boolean; -- Flag8
8095 function No_Initialization
8096 (N : Node_Id) return Boolean; -- Flag13
8098 function No_Truncation
8099 (N : Node_Id) return Boolean; -- Flag17
8101 function Null_Present
8102 (N : Node_Id) return Boolean; -- Flag13
8104 function Null_Exclusion_Present
8105 (N : Node_Id) return Boolean; -- Flag11
8107 function Null_Exclusion_In_Return_Present
8108 (N : Node_Id) return Boolean; -- Flag14
8110 function Null_Record_Present
8111 (N : Node_Id) return Boolean; -- Flag17
8113 function Object_Definition
8114 (N : Node_Id) return Node_Id; -- Node4
8116 function Original_Discriminant
8117 (N : Node_Id) return Node_Id; -- Node2
8119 function Original_Entity
8120 (N : Node_Id) return Entity_Id; -- Node2
8122 function Others_Discrete_Choices
8123 (N : Node_Id) return List_Id; -- List1
8125 function Out_Present
8126 (N : Node_Id) return Boolean; -- Flag17
8128 function Parameter_Associations
8129 (N : Node_Id) return List_Id; -- List3
8131 function Parameter_List_Truncated
8132 (N : Node_Id) return Boolean; -- Flag17
8134 function Parameter_Specifications
8135 (N : Node_Id) return List_Id; -- List3
8137 function Parameter_Type
8138 (N : Node_Id) return Node_Id; -- Node2
8140 function Parent_Spec
8141 (N : Node_Id) return Node_Id; -- Node4
8143 function PPC_Enabled
8144 (N : Node_Id) return Boolean; -- Flag5
8147 (N : Node_Id) return Node_Id; -- Node2
8149 function Pragma_Argument_Associations
8150 (N : Node_Id) return List_Id; -- List2
8152 function Pragma_Identifier
8153 (N : Node_Id) return Node_Id; -- Node4
8155 function Pragmas_After
8156 (N : Node_Id) return List_Id; -- List5
8158 function Pragmas_Before
8159 (N : Node_Id) return List_Id; -- List4
8162 (N : Node_Id) return Node_Id; -- Node3
8164 function Present_Expr
8165 (N : Node_Id) return Uint; -- Uint3
8168 (N : Node_Id) return Boolean; -- Flag6
8170 function Print_In_Hex
8171 (N : Node_Id) return Boolean; -- Flag13
8173 function Private_Declarations
8174 (N : Node_Id) return List_Id; -- List3
8176 function Private_Present
8177 (N : Node_Id) return Boolean; -- Flag15
8179 function Procedure_To_Call
8180 (N : Node_Id) return Node_Id; -- Node2
8182 function Proper_Body
8183 (N : Node_Id) return Node_Id; -- Node1
8185 function Protected_Definition
8186 (N : Node_Id) return Node_Id; -- Node3
8188 function Protected_Present
8189 (N : Node_Id) return Boolean; -- Flag6
8191 function Raises_Constraint_Error
8192 (N : Node_Id) return Boolean; -- Flag7
8194 function Range_Constraint
8195 (N : Node_Id) return Node_Id; -- Node4
8197 function Range_Expression
8198 (N : Node_Id) return Node_Id; -- Node4
8200 function Real_Range_Specification
8201 (N : Node_Id) return Node_Id; -- Node4
8204 (N : Node_Id) return Ureal; -- Ureal3
8207 (N : Node_Id) return Uint; -- Uint3
8209 function Record_Extension_Part
8210 (N : Node_Id) return Node_Id; -- Node3
8212 function Redundant_Use
8213 (N : Node_Id) return Boolean; -- Flag13
8215 function Renaming_Exception
8216 (N : Node_Id) return Node_Id; -- Node2
8218 function Result_Definition
8219 (N : Node_Id) return Node_Id; -- Node4
8221 function Return_Object_Declarations
8222 (N : Node_Id) return List_Id; -- List3
8224 function Return_Statement_Entity
8225 (N : Node_Id) return Node_Id; -- Node5
8227 function Reverse_Present
8228 (N : Node_Id) return Boolean; -- Flag15
8231 (N : Node_Id) return Node_Id; -- Node3
8233 function Rounded_Result
8234 (N : Node_Id) return Boolean; -- Flag18
8237 (N : Node_Id) return Node_Id; -- Node3
8239 function Select_Alternatives
8240 (N : Node_Id) return List_Id; -- List1
8242 function Selector_Name
8243 (N : Node_Id) return Node_Id; -- Node2
8245 function Selector_Names
8246 (N : Node_Id) return List_Id; -- List1
8248 function Shift_Count_OK
8249 (N : Node_Id) return Boolean; -- Flag4
8251 function Source_Type
8252 (N : Node_Id) return Entity_Id; -- Node1
8254 function Specification
8255 (N : Node_Id) return Node_Id; -- Node1
8258 (N : Node_Id) return List_Id; -- List3
8260 function Static_Processing_OK
8261 (N : Node_Id) return Boolean; -- Flag4
8263 function Storage_Pool
8264 (N : Node_Id) return Node_Id; -- Node1
8267 (N : Node_Id) return String_Id; -- Str3
8269 function Subtype_Indication
8270 (N : Node_Id) return Node_Id; -- Node5
8272 function Subtype_Mark
8273 (N : Node_Id) return Node_Id; -- Node4
8275 function Subtype_Marks
8276 (N : Node_Id) return List_Id; -- List2
8278 function Suppress_Loop_Warnings
8279 (N : Node_Id) return Boolean; -- Flag17
8281 function Synchronized_Present
8282 (N : Node_Id) return Boolean; -- Flag7
8284 function Tagged_Present
8285 (N : Node_Id) return Boolean; -- Flag15
8287 function Target_Type
8288 (N : Node_Id) return Entity_Id; -- Node2
8290 function Task_Definition
8291 (N : Node_Id) return Node_Id; -- Node3
8293 function Task_Present
8294 (N : Node_Id) return Boolean; -- Flag5
8296 function Then_Actions
8297 (N : Node_Id) return List_Id; -- List2
8299 function Then_Statements
8300 (N : Node_Id) return List_Id; -- List2
8302 function Treat_Fixed_As_Integer
8303 (N : Node_Id) return Boolean; -- Flag14
8305 function Triggering_Alternative
8306 (N : Node_Id) return Node_Id; -- Node1
8308 function Triggering_Statement
8309 (N : Node_Id) return Node_Id; -- Node1
8312 (N : Node_Id) return Elist_Id; -- Elist3
8314 function Type_Definition
8315 (N : Node_Id) return Node_Id; -- Node3
8318 (N : Node_Id) return Node_Id; -- Node2
8320 function Unknown_Discriminants_Present
8321 (N : Node_Id) return Boolean; -- Flag13
8323 function Unreferenced_In_Spec
8324 (N : Node_Id) return Boolean; -- Flag7
8326 function Variant_Part
8327 (N : Node_Id) return Node_Id; -- Node4
8330 (N : Node_Id) return List_Id; -- List1
8332 function Visible_Declarations
8333 (N : Node_Id) return List_Id; -- List2
8335 function Was_Originally_Stub
8336 (N : Node_Id) return Boolean; -- Flag13
8338 function Zero_Cost_Handling
8339 (N : Node_Id) return Boolean; -- Flag5
8341 -- End functions (note used by xsinfo utility program to end processing)
8343 ----------------------------
8344 -- Node Update Procedures --
8345 ----------------------------
8347 -- These are the corresponding node update routines, which again provide
8348 -- a high level logical access with type checking. In addition to setting
8349 -- the indicated field of the node N to the given Val, in the case of
8350 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8351 -- point back to node N. This automates the setting of the parent pointer.
8353 procedure Set_ABE_Is_Certain
8354 (N : Node_Id; Val : Boolean := True); -- Flag18
8356 procedure Set_Abort_Present
8357 (N : Node_Id; Val : Boolean := True); -- Flag15
8359 procedure Set_Abortable_Part
8360 (N : Node_Id; Val : Node_Id); -- Node2
8362 procedure Set_Abstract_Present
8363 (N : Node_Id; Val : Boolean := True); -- Flag4
8365 procedure Set_Accept_Handler_Records
8366 (N : Node_Id; Val : List_Id); -- List5
8368 procedure Set_Accept_Statement
8369 (N : Node_Id; Val : Node_Id); -- Node2
8371 procedure Set_Access_Definition
8372 (N : Node_Id; Val : Node_Id); -- Node3
8374 procedure Set_Access_To_Subprogram_Definition
8375 (N : Node_Id; Val : Node_Id); -- Node3
8377 procedure Set_Access_Types_To_Process
8378 (N : Node_Id; Val : Elist_Id); -- Elist2
8380 procedure Set_Actions
8381 (N : Node_Id; Val : List_Id); -- List1
8383 procedure Set_Activation_Chain_Entity
8384 (N : Node_Id; Val : Node_Id); -- Node3
8386 procedure Set_Acts_As_Spec
8387 (N : Node_Id; Val : Boolean := True); -- Flag4
8389 procedure Set_Actual_Designated_Subtype
8390 (N : Node_Id; Val : Node_Id); -- Node4
8392 procedure Set_Address_Warning_Posted
8393 (N : Node_Id; Val : Boolean := True); -- Flag18
8395 procedure Set_Aggregate_Bounds
8396 (N : Node_Id; Val : Node_Id); -- Node3
8398 procedure Set_Aliased_Present
8399 (N : Node_Id; Val : Boolean := True); -- Flag4
8401 procedure Set_All_Others
8402 (N : Node_Id; Val : Boolean := True); -- Flag11
8404 procedure Set_All_Present
8405 (N : Node_Id; Val : Boolean := True); -- Flag15
8407 procedure Set_Alternatives
8408 (N : Node_Id; Val : List_Id); -- List4
8410 procedure Set_Ancestor_Part
8411 (N : Node_Id; Val : Node_Id); -- Node3
8413 procedure Set_Array_Aggregate
8414 (N : Node_Id; Val : Node_Id); -- Node3
8416 procedure Set_Assignment_OK
8417 (N : Node_Id; Val : Boolean := True); -- Flag15
8419 procedure Set_Associated_Node
8420 (N : Node_Id; Val : Node_Id); -- Node4
8422 procedure Set_Attribute_Name
8423 (N : Node_Id; Val : Name_Id); -- Name2
8425 procedure Set_At_End_Proc
8426 (N : Node_Id; Val : Node_Id); -- Node1
8428 procedure Set_Aux_Decls_Node
8429 (N : Node_Id; Val : Node_Id); -- Node5
8431 procedure Set_Backwards_OK
8432 (N : Node_Id; Val : Boolean := True); -- Flag6
8434 procedure Set_Bad_Is_Detected
8435 (N : Node_Id; Val : Boolean := True); -- Flag15
8437 procedure Set_Body_Required
8438 (N : Node_Id; Val : Boolean := True); -- Flag13
8440 procedure Set_Body_To_Inline
8441 (N : Node_Id; Val : Node_Id); -- Node3
8443 procedure Set_Box_Present
8444 (N : Node_Id; Val : Boolean := True); -- Flag15
8446 procedure Set_By_Ref
8447 (N : Node_Id; Val : Boolean := True); -- Flag5
8449 procedure Set_Char_Literal_Value
8450 (N : Node_Id; Val : Uint); -- Uint2
8453 (N : Node_Id; Val : Name_Id); -- Name1
8455 procedure Set_Check_Address_Alignment
8456 (N : Node_Id; Val : Boolean := True); -- Flag11
8458 procedure Set_Choice_Parameter
8459 (N : Node_Id; Val : Node_Id); -- Node2
8461 procedure Set_Coextensions
8462 (N : Node_Id; Val : Elist_Id); -- Elist4
8464 procedure Set_Choices
8465 (N : Node_Id; Val : List_Id); -- List1
8467 procedure Set_Comes_From_Extended_Return_Statement
8468 (N : Node_Id; Val : Boolean := True); -- Flag18
8470 procedure Set_Compile_Time_Known_Aggregate
8471 (N : Node_Id; Val : Boolean := True); -- Flag18
8473 procedure Set_Component_Associations
8474 (N : Node_Id; Val : List_Id); -- List2
8476 procedure Set_Component_Clauses
8477 (N : Node_Id; Val : List_Id); -- List3
8479 procedure Set_Component_Definition
8480 (N : Node_Id; Val : Node_Id); -- Node4
8482 procedure Set_Component_Items
8483 (N : Node_Id; Val : List_Id); -- List3
8485 procedure Set_Component_List
8486 (N : Node_Id; Val : Node_Id); -- Node1
8488 procedure Set_Component_Name
8489 (N : Node_Id; Val : Node_Id); -- Node1
8491 procedure Set_Condition
8492 (N : Node_Id; Val : Node_Id); -- Node1
8494 procedure Set_Condition_Actions
8495 (N : Node_Id; Val : List_Id); -- List3
8497 procedure Set_Config_Pragmas
8498 (N : Node_Id; Val : List_Id); -- List4
8500 procedure Set_Constant_Present
8501 (N : Node_Id; Val : Boolean := True); -- Flag17
8503 procedure Set_Constraint
8504 (N : Node_Id; Val : Node_Id); -- Node3
8506 procedure Set_Constraints
8507 (N : Node_Id; Val : List_Id); -- List1
8509 procedure Set_Context_Installed
8510 (N : Node_Id; Val : Boolean := True); -- Flag13
8512 procedure Set_Context_Items
8513 (N : Node_Id; Val : List_Id); -- List1
8515 procedure Set_Controlling_Argument
8516 (N : Node_Id; Val : Node_Id); -- Node1
8518 procedure Set_Conversion_OK
8519 (N : Node_Id; Val : Boolean := True); -- Flag14
8521 procedure Set_Corresponding_Body
8522 (N : Node_Id; Val : Node_Id); -- Node5
8524 procedure Set_Corresponding_Formal_Spec
8525 (N : Node_Id; Val : Node_Id); -- Node3
8527 procedure Set_Corresponding_Generic_Association
8528 (N : Node_Id; Val : Node_Id); -- Node5
8530 procedure Set_Corresponding_Integer_Value
8531 (N : Node_Id; Val : Uint); -- Uint4
8533 procedure Set_Corresponding_Spec
8534 (N : Node_Id; Val : Node_Id); -- Node5
8536 procedure Set_Corresponding_Stub
8537 (N : Node_Id; Val : Node_Id); -- Node3
8539 procedure Set_Dcheck_Function
8540 (N : Node_Id; Val : Entity_Id); -- Node5
8542 procedure Set_Debug_Statement
8543 (N : Node_Id; Val : Node_Id); -- Node3
8545 procedure Set_Declarations
8546 (N : Node_Id; Val : List_Id); -- List2
8548 procedure Set_Default_Expression
8549 (N : Node_Id; Val : Node_Id); -- Node5
8551 procedure Set_Default_Name
8552 (N : Node_Id; Val : Node_Id); -- Node2
8554 procedure Set_Defining_Identifier
8555 (N : Node_Id; Val : Entity_Id); -- Node1
8557 procedure Set_Defining_Unit_Name
8558 (N : Node_Id; Val : Node_Id); -- Node1
8560 procedure Set_Delay_Alternative
8561 (N : Node_Id; Val : Node_Id); -- Node4
8563 procedure Set_Delay_Statement
8564 (N : Node_Id; Val : Node_Id); -- Node2
8566 procedure Set_Delta_Expression
8567 (N : Node_Id; Val : Node_Id); -- Node3
8569 procedure Set_Digits_Expression
8570 (N : Node_Id; Val : Node_Id); -- Node2
8572 procedure Set_Discr_Check_Funcs_Built
8573 (N : Node_Id; Val : Boolean := True); -- Flag11
8575 procedure Set_Discrete_Choices
8576 (N : Node_Id; Val : List_Id); -- List4
8578 procedure Set_Discrete_Range
8579 (N : Node_Id; Val : Node_Id); -- Node4
8581 procedure Set_Discrete_Subtype_Definition
8582 (N : Node_Id; Val : Node_Id); -- Node4
8584 procedure Set_Discrete_Subtype_Definitions
8585 (N : Node_Id; Val : List_Id); -- List2
8587 procedure Set_Discriminant_Specifications
8588 (N : Node_Id; Val : List_Id); -- List4
8590 procedure Set_Discriminant_Type
8591 (N : Node_Id; Val : Node_Id); -- Node5
8593 procedure Set_Do_Accessibility_Check
8594 (N : Node_Id; Val : Boolean := True); -- Flag13
8596 procedure Set_Do_Discriminant_Check
8597 (N : Node_Id; Val : Boolean := True); -- Flag13
8599 procedure Set_Do_Division_Check
8600 (N : Node_Id; Val : Boolean := True); -- Flag13
8602 procedure Set_Do_Length_Check
8603 (N : Node_Id; Val : Boolean := True); -- Flag4
8605 procedure Set_Do_Overflow_Check
8606 (N : Node_Id; Val : Boolean := True); -- Flag17
8608 procedure Set_Do_Range_Check
8609 (N : Node_Id; Val : Boolean := True); -- Flag9
8611 procedure Set_Do_Storage_Check
8612 (N : Node_Id; Val : Boolean := True); -- Flag17
8614 procedure Set_Do_Tag_Check
8615 (N : Node_Id; Val : Boolean := True); -- Flag13
8617 procedure Set_Elaborate_All_Desirable
8618 (N : Node_Id; Val : Boolean := True); -- Flag9
8620 procedure Set_Elaborate_All_Present
8621 (N : Node_Id; Val : Boolean := True); -- Flag14
8623 procedure Set_Elaborate_Desirable
8624 (N : Node_Id; Val : Boolean := True); -- Flag11
8626 procedure Set_Elaborate_Present
8627 (N : Node_Id; Val : Boolean := True); -- Flag4
8629 procedure Set_Elaboration_Boolean
8630 (N : Node_Id; Val : Node_Id); -- Node2
8632 procedure Set_Else_Actions
8633 (N : Node_Id; Val : List_Id); -- List3
8635 procedure Set_Else_Statements
8636 (N : Node_Id; Val : List_Id); -- List4
8638 procedure Set_Elsif_Parts
8639 (N : Node_Id; Val : List_Id); -- List3
8641 procedure Set_Enclosing_Variant
8642 (N : Node_Id; Val : Node_Id); -- Node2
8644 procedure Set_End_Label
8645 (N : Node_Id; Val : Node_Id); -- Node4
8647 procedure Set_End_Span
8648 (N : Node_Id; Val : Uint); -- Uint5
8650 procedure Set_Entity
8651 (N : Node_Id; Val : Node_Id); -- Node4
8653 procedure Set_Entry_Body_Formal_Part
8654 (N : Node_Id; Val : Node_Id); -- Node5
8656 procedure Set_Entry_Call_Alternative
8657 (N : Node_Id; Val : Node_Id); -- Node1
8659 procedure Set_Entry_Call_Statement
8660 (N : Node_Id; Val : Node_Id); -- Node1
8662 procedure Set_Entry_Direct_Name
8663 (N : Node_Id; Val : Node_Id); -- Node1
8665 procedure Set_Entry_Index
8666 (N : Node_Id; Val : Node_Id); -- Node5
8668 procedure Set_Entry_Index_Specification
8669 (N : Node_Id; Val : Node_Id); -- Node4
8672 (N : Node_Id; Val : Node_Id); -- Node5
8674 procedure Set_Exception_Choices
8675 (N : Node_Id; Val : List_Id); -- List4
8677 procedure Set_Exception_Handlers
8678 (N : Node_Id; Val : List_Id); -- List5
8680 procedure Set_Exception_Junk
8681 (N : Node_Id; Val : Boolean := True); -- Flag8
8683 procedure Set_Exception_Label
8684 (N : Node_Id; Val : Node_Id); -- Node5
8686 procedure Set_Expansion_Delayed
8687 (N : Node_Id; Val : Boolean := True); -- Flag11
8689 procedure Set_Explicit_Actual_Parameter
8690 (N : Node_Id; Val : Node_Id); -- Node3
8692 procedure Set_Explicit_Generic_Actual_Parameter
8693 (N : Node_Id; Val : Node_Id); -- Node1
8695 procedure Set_Expression
8696 (N : Node_Id; Val : Node_Id); -- Node3
8698 procedure Set_Expressions
8699 (N : Node_Id; Val : List_Id); -- List1
8701 procedure Set_First_Bit
8702 (N : Node_Id; Val : Node_Id); -- Node3
8704 procedure Set_First_Inlined_Subprogram
8705 (N : Node_Id; Val : Entity_Id); -- Node3
8707 procedure Set_First_Name
8708 (N : Node_Id; Val : Boolean := True); -- Flag5
8710 procedure Set_First_Named_Actual
8711 (N : Node_Id; Val : Node_Id); -- Node4
8713 procedure Set_First_Real_Statement
8714 (N : Node_Id; Val : Node_Id); -- Node2
8716 procedure Set_First_Subtype_Link
8717 (N : Node_Id; Val : Entity_Id); -- Node5
8719 procedure Set_Float_Truncate
8720 (N : Node_Id; Val : Boolean := True); -- Flag11
8722 procedure Set_Formal_Type_Definition
8723 (N : Node_Id; Val : Node_Id); -- Node3
8725 procedure Set_Forwards_OK
8726 (N : Node_Id; Val : Boolean := True); -- Flag5
8728 procedure Set_From_At_Mod
8729 (N : Node_Id; Val : Boolean := True); -- Flag4
8731 procedure Set_From_At_End
8732 (N : Node_Id; Val : Boolean := True); -- Flag4
8734 procedure Set_From_Default
8735 (N : Node_Id; Val : Boolean := True); -- Flag6
8737 procedure Set_Generic_Associations
8738 (N : Node_Id; Val : List_Id); -- List3
8740 procedure Set_Generic_Formal_Declarations
8741 (N : Node_Id; Val : List_Id); -- List2
8743 procedure Set_Generic_Parent
8744 (N : Node_Id; Val : Node_Id); -- Node5
8746 procedure Set_Generic_Parent_Type
8747 (N : Node_Id; Val : Node_Id); -- Node4
8749 procedure Set_Handled_Statement_Sequence
8750 (N : Node_Id; Val : Node_Id); -- Node4
8752 procedure Set_Handler_List_Entry
8753 (N : Node_Id; Val : Node_Id); -- Node2
8755 procedure Set_Has_Created_Identifier
8756 (N : Node_Id; Val : Boolean := True); -- Flag15
8758 procedure Set_Has_Dynamic_Length_Check
8759 (N : Node_Id; Val : Boolean := True); -- Flag10
8761 procedure Set_Has_Dynamic_Range_Check
8762 (N : Node_Id; Val : Boolean := True); -- Flag12
8764 procedure Set_Has_Init_Expression
8765 (N : Node_Id; Val : Boolean := True); -- Flag14
8767 procedure Set_Has_Local_Raise
8768 (N : Node_Id; Val : Boolean := True); -- Flag8
8770 procedure Set_Has_No_Elaboration_Code
8771 (N : Node_Id; Val : Boolean := True); -- Flag17
8773 procedure Set_Has_Priority_Pragma
8774 (N : Node_Id; Val : Boolean := True); -- Flag6
8776 procedure Set_Has_Private_View
8777 (N : Node_Id; Val : Boolean := True); -- Flag11
8779 procedure Set_Has_Relative_Deadline_Pragma
8780 (N : Node_Id; Val : Boolean := True); -- Flag9
8782 procedure Set_Has_Self_Reference
8783 (N : Node_Id; Val : Boolean := True); -- Flag13
8785 procedure Set_Has_Storage_Size_Pragma
8786 (N : Node_Id; Val : Boolean := True); -- Flag5
8788 procedure Set_Has_Task_Info_Pragma
8789 (N : Node_Id; Val : Boolean := True); -- Flag7
8791 procedure Set_Has_Task_Name_Pragma
8792 (N : Node_Id; Val : Boolean := True); -- Flag8
8794 procedure Set_Has_Wide_Character
8795 (N : Node_Id; Val : Boolean := True); -- Flag11
8797 procedure Set_Hidden_By_Use_Clause
8798 (N : Node_Id; Val : Elist_Id); -- Elist4
8800 procedure Set_High_Bound
8801 (N : Node_Id; Val : Node_Id); -- Node2
8803 procedure Set_Identifier
8804 (N : Node_Id; Val : Node_Id); -- Node1
8806 procedure Set_Interface_List
8807 (N : Node_Id; Val : List_Id); -- List2
8809 procedure Set_Interface_Present
8810 (N : Node_Id; Val : Boolean := True); -- Flag16
8812 procedure Set_Implicit_With
8813 (N : Node_Id; Val : Boolean := True); -- Flag16
8815 procedure Set_In_Present
8816 (N : Node_Id; Val : Boolean := True); -- Flag15
8818 procedure Set_Includes_Infinities
8819 (N : Node_Id; Val : Boolean := True); -- Flag11
8821 procedure Set_Instance_Spec
8822 (N : Node_Id; Val : Node_Id); -- Node5
8824 procedure Set_Intval
8825 (N : Node_Id; Val : Uint); -- Uint3
8827 procedure Set_Is_Asynchronous_Call_Block
8828 (N : Node_Id; Val : Boolean := True); -- Flag7
8830 procedure Set_Is_Component_Left_Opnd
8831 (N : Node_Id; Val : Boolean := True); -- Flag13
8833 procedure Set_Is_Component_Right_Opnd
8834 (N : Node_Id; Val : Boolean := True); -- Flag14
8836 procedure Set_Is_Controlling_Actual
8837 (N : Node_Id; Val : Boolean := True); -- Flag16
8839 procedure Set_Is_Dynamic_Coextension
8840 (N : Node_Id; Val : Boolean := True); -- Flag18
8842 procedure Set_Is_Entry_Barrier_Function
8843 (N : Node_Id; Val : Boolean := True); -- Flag8
8845 procedure Set_Is_Expanded_Build_In_Place_Call
8846 (N : Node_Id; Val : Boolean := True); -- Flag11
8848 procedure Set_Is_Folded_In_Parser
8849 (N : Node_Id; Val : Boolean := True); -- Flag4
8851 procedure Set_Is_In_Discriminant_Check
8852 (N : Node_Id; Val : Boolean := True); -- Flag11
8854 procedure Set_Is_Machine_Number
8855 (N : Node_Id; Val : Boolean := True); -- Flag11
8857 procedure Set_Is_Null_Loop
8858 (N : Node_Id; Val : Boolean := True); -- Flag16
8860 procedure Set_Is_Overloaded
8861 (N : Node_Id; Val : Boolean := True); -- Flag5
8863 procedure Set_Is_Power_Of_2_For_Shift
8864 (N : Node_Id; Val : Boolean := True); -- Flag13
8866 procedure Set_Is_Protected_Subprogram_Body
8867 (N : Node_Id; Val : Boolean := True); -- Flag7
8869 procedure Set_Is_Static_Coextension
8870 (N : Node_Id; Val : Boolean := True); -- Flag14
8872 procedure Set_Is_Static_Expression
8873 (N : Node_Id; Val : Boolean := True); -- Flag6
8875 procedure Set_Is_Subprogram_Descriptor
8876 (N : Node_Id; Val : Boolean := True); -- Flag16
8878 procedure Set_Is_Task_Allocation_Block
8879 (N : Node_Id; Val : Boolean := True); -- Flag6
8881 procedure Set_Is_Task_Master
8882 (N : Node_Id; Val : Boolean := True); -- Flag5
8884 procedure Set_Iteration_Scheme
8885 (N : Node_Id; Val : Node_Id); -- Node2
8888 (N : Node_Id; Val : Entity_Id); -- Node1
8890 procedure Set_Kill_Range_Check
8891 (N : Node_Id; Val : Boolean := True); -- Flag11
8893 procedure Set_Last_Bit
8894 (N : Node_Id; Val : Node_Id); -- Node4
8896 procedure Set_Last_Name
8897 (N : Node_Id; Val : Boolean := True); -- Flag6
8899 procedure Set_Library_Unit
8900 (N : Node_Id; Val : Node_Id); -- Node4
8902 procedure Set_Label_Construct
8903 (N : Node_Id; Val : Node_Id); -- Node2
8905 procedure Set_Left_Opnd
8906 (N : Node_Id; Val : Node_Id); -- Node2
8908 procedure Set_Limited_View_Installed
8909 (N : Node_Id; Val : Boolean := True); -- Flag18
8911 procedure Set_Limited_Present
8912 (N : Node_Id; Val : Boolean := True); -- Flag17
8914 procedure Set_Literals
8915 (N : Node_Id; Val : List_Id); -- List1
8917 procedure Set_Local_Raise_Not_OK
8918 (N : Node_Id; Val : Boolean := True); -- Flag7
8920 procedure Set_Local_Raise_Statements
8921 (N : Node_Id; Val : Elist_Id); -- Elist1
8923 procedure Set_Loop_Actions
8924 (N : Node_Id; Val : List_Id); -- List2
8926 procedure Set_Loop_Parameter_Specification
8927 (N : Node_Id; Val : Node_Id); -- Node4
8929 procedure Set_Low_Bound
8930 (N : Node_Id; Val : Node_Id); -- Node1
8932 procedure Set_Mod_Clause
8933 (N : Node_Id; Val : Node_Id); -- Node2
8935 procedure Set_More_Ids
8936 (N : Node_Id; Val : Boolean := True); -- Flag5
8938 procedure Set_Must_Be_Byte_Aligned
8939 (N : Node_Id; Val : Boolean := True); -- Flag14
8941 procedure Set_Must_Not_Freeze
8942 (N : Node_Id; Val : Boolean := True); -- Flag8
8944 procedure Set_Must_Not_Override
8945 (N : Node_Id; Val : Boolean := True); -- Flag15
8947 procedure Set_Must_Override
8948 (N : Node_Id; Val : Boolean := True); -- Flag14
8951 (N : Node_Id; Val : Node_Id); -- Node2
8954 (N : Node_Id; Val : List_Id); -- List2
8956 procedure Set_Next_Entity
8957 (N : Node_Id; Val : Node_Id); -- Node2
8959 procedure Set_Next_Named_Actual
8960 (N : Node_Id; Val : Node_Id); -- Node4
8962 procedure Set_Next_Pragma
8963 (N : Node_Id; Val : Node_Id); -- Node1
8965 procedure Set_Next_Rep_Item
8966 (N : Node_Id; Val : Node_Id); -- Node5
8968 procedure Set_Next_Use_Clause
8969 (N : Node_Id; Val : Node_Id); -- Node3
8971 procedure Set_No_Ctrl_Actions
8972 (N : Node_Id; Val : Boolean := True); -- Flag7
8974 procedure Set_No_Elaboration_Check
8975 (N : Node_Id; Val : Boolean := True); -- Flag14
8977 procedure Set_No_Entities_Ref_In_Spec
8978 (N : Node_Id; Val : Boolean := True); -- Flag8
8980 procedure Set_No_Initialization
8981 (N : Node_Id; Val : Boolean := True); -- Flag13
8983 procedure Set_No_Truncation
8984 (N : Node_Id; Val : Boolean := True); -- Flag17
8986 procedure Set_Null_Present
8987 (N : Node_Id; Val : Boolean := True); -- Flag13
8989 procedure Set_Null_Exclusion_Present
8990 (N : Node_Id; Val : Boolean := True); -- Flag11
8992 procedure Set_Null_Exclusion_In_Return_Present
8993 (N : Node_Id; Val : Boolean := True); -- Flag14
8995 procedure Set_Null_Record_Present
8996 (N : Node_Id; Val : Boolean := True); -- Flag17
8998 procedure Set_Object_Definition
8999 (N : Node_Id; Val : Node_Id); -- Node4
9001 procedure Set_Original_Discriminant
9002 (N : Node_Id; Val : Node_Id); -- Node2
9004 procedure Set_Original_Entity
9005 (N : Node_Id; Val : Entity_Id); -- Node2
9007 procedure Set_Others_Discrete_Choices
9008 (N : Node_Id; Val : List_Id); -- List1
9010 procedure Set_Out_Present
9011 (N : Node_Id; Val : Boolean := True); -- Flag17
9013 procedure Set_Parameter_Associations
9014 (N : Node_Id; Val : List_Id); -- List3
9016 procedure Set_Parameter_List_Truncated
9017 (N : Node_Id; Val : Boolean := True); -- Flag17
9019 procedure Set_Parameter_Specifications
9020 (N : Node_Id; Val : List_Id); -- List3
9022 procedure Set_Parameter_Type
9023 (N : Node_Id; Val : Node_Id); -- Node2
9025 procedure Set_Parent_Spec
9026 (N : Node_Id; Val : Node_Id); -- Node4
9028 procedure Set_PPC_Enabled
9029 (N : Node_Id; Val : Boolean := True); -- Flag5
9031 procedure Set_Position
9032 (N : Node_Id; Val : Node_Id); -- Node2
9034 procedure Set_Pragma_Argument_Associations
9035 (N : Node_Id; Val : List_Id); -- List2
9037 procedure Set_Pragma_Identifier
9038 (N : Node_Id; Val : Node_Id); -- Node4
9040 procedure Set_Pragmas_After
9041 (N : Node_Id; Val : List_Id); -- List5
9043 procedure Set_Pragmas_Before
9044 (N : Node_Id; Val : List_Id); -- List4
9046 procedure Set_Prefix
9047 (N : Node_Id; Val : Node_Id); -- Node3
9049 procedure Set_Present_Expr
9050 (N : Node_Id; Val : Uint); -- Uint3
9052 procedure Set_Prev_Ids
9053 (N : Node_Id; Val : Boolean := True); -- Flag6
9055 procedure Set_Print_In_Hex
9056 (N : Node_Id; Val : Boolean := True); -- Flag13
9058 procedure Set_Private_Declarations
9059 (N : Node_Id; Val : List_Id); -- List3
9061 procedure Set_Private_Present
9062 (N : Node_Id; Val : Boolean := True); -- Flag15
9064 procedure Set_Procedure_To_Call
9065 (N : Node_Id; Val : Node_Id); -- Node2
9067 procedure Set_Proper_Body
9068 (N : Node_Id; Val : Node_Id); -- Node1
9070 procedure Set_Protected_Definition
9071 (N : Node_Id; Val : Node_Id); -- Node3
9073 procedure Set_Protected_Present
9074 (N : Node_Id; Val : Boolean := True); -- Flag6
9076 procedure Set_Raises_Constraint_Error
9077 (N : Node_Id; Val : Boolean := True); -- Flag7
9079 procedure Set_Range_Constraint
9080 (N : Node_Id; Val : Node_Id); -- Node4
9082 procedure Set_Range_Expression
9083 (N : Node_Id; Val : Node_Id); -- Node4
9085 procedure Set_Real_Range_Specification
9086 (N : Node_Id; Val : Node_Id); -- Node4
9088 procedure Set_Realval
9089 (N : Node_Id; Val : Ureal); -- Ureal3
9091 procedure Set_Reason
9092 (N : Node_Id; Val : Uint); -- Uint3
9094 procedure Set_Record_Extension_Part
9095 (N : Node_Id; Val : Node_Id); -- Node3
9097 procedure Set_Redundant_Use
9098 (N : Node_Id; Val : Boolean := True); -- Flag13
9100 procedure Set_Renaming_Exception
9101 (N : Node_Id; Val : Node_Id); -- Node2
9103 procedure Set_Result_Definition
9104 (N : Node_Id; Val : Node_Id); -- Node4
9106 procedure Set_Return_Object_Declarations
9107 (N : Node_Id; Val : List_Id); -- List3
9109 procedure Set_Return_Statement_Entity
9110 (N : Node_Id; Val : Node_Id); -- Node5
9112 procedure Set_Reverse_Present
9113 (N : Node_Id; Val : Boolean := True); -- Flag15
9115 procedure Set_Right_Opnd
9116 (N : Node_Id; Val : Node_Id); -- Node3
9118 procedure Set_Rounded_Result
9119 (N : Node_Id; Val : Boolean := True); -- Flag18
9122 (N : Node_Id; Val : Node_Id); -- Node3
9124 procedure Set_Select_Alternatives
9125 (N : Node_Id; Val : List_Id); -- List1
9127 procedure Set_Selector_Name
9128 (N : Node_Id; Val : Node_Id); -- Node2
9130 procedure Set_Selector_Names
9131 (N : Node_Id; Val : List_Id); -- List1
9133 procedure Set_Shift_Count_OK
9134 (N : Node_Id; Val : Boolean := True); -- Flag4
9136 procedure Set_Source_Type
9137 (N : Node_Id; Val : Entity_Id); -- Node1
9139 procedure Set_Specification
9140 (N : Node_Id; Val : Node_Id); -- Node1
9142 procedure Set_Statements
9143 (N : Node_Id; Val : List_Id); -- List3
9145 procedure Set_Static_Processing_OK
9146 (N : Node_Id; Val : Boolean); -- Flag4
9148 procedure Set_Storage_Pool
9149 (N : Node_Id; Val : Node_Id); -- Node1
9151 procedure Set_Strval
9152 (N : Node_Id; Val : String_Id); -- Str3
9154 procedure Set_Subtype_Indication
9155 (N : Node_Id; Val : Node_Id); -- Node5
9157 procedure Set_Subtype_Mark
9158 (N : Node_Id; Val : Node_Id); -- Node4
9160 procedure Set_Subtype_Marks
9161 (N : Node_Id; Val : List_Id); -- List2
9163 procedure Set_Suppress_Loop_Warnings
9164 (N : Node_Id; Val : Boolean := True); -- Flag17
9166 procedure Set_Synchronized_Present
9167 (N : Node_Id; Val : Boolean := True); -- Flag7
9169 procedure Set_Tagged_Present
9170 (N : Node_Id; Val : Boolean := True); -- Flag15
9172 procedure Set_Target_Type
9173 (N : Node_Id; Val : Entity_Id); -- Node2
9175 procedure Set_Task_Definition
9176 (N : Node_Id; Val : Node_Id); -- Node3
9178 procedure Set_Task_Present
9179 (N : Node_Id; Val : Boolean := True); -- Flag5
9181 procedure Set_Then_Actions
9182 (N : Node_Id; Val : List_Id); -- List2
9184 procedure Set_Then_Statements
9185 (N : Node_Id; Val : List_Id); -- List2
9187 procedure Set_Treat_Fixed_As_Integer
9188 (N : Node_Id; Val : Boolean := True); -- Flag14
9190 procedure Set_Triggering_Alternative
9191 (N : Node_Id; Val : Node_Id); -- Node1
9193 procedure Set_Triggering_Statement
9194 (N : Node_Id; Val : Node_Id); -- Node1
9196 procedure Set_TSS_Elist
9197 (N : Node_Id; Val : Elist_Id); -- Elist3
9199 procedure Set_Type_Definition
9200 (N : Node_Id; Val : Node_Id); -- Node3
9203 (N : Node_Id; Val : Node_Id); -- Node2
9205 procedure Set_Unknown_Discriminants_Present
9206 (N : Node_Id; Val : Boolean := True); -- Flag13
9208 procedure Set_Unreferenced_In_Spec
9209 (N : Node_Id; Val : Boolean := True); -- Flag7
9211 procedure Set_Variant_Part
9212 (N : Node_Id; Val : Node_Id); -- Node4
9214 procedure Set_Variants
9215 (N : Node_Id; Val : List_Id); -- List1
9217 procedure Set_Visible_Declarations
9218 (N : Node_Id; Val : List_Id); -- List2
9220 procedure Set_Was_Originally_Stub
9221 (N : Node_Id; Val : Boolean := True); -- Flag13
9223 procedure Set_Zero_Cost_Handling
9224 (N : Node_Id; Val : Boolean := True); -- Flag5
9226 -------------------------
9227 -- Iterator Procedures --
9228 -------------------------
9230 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9232 procedure Next_Entity (N : in out Node_Id);
9233 procedure Next_Named_Actual (N : in out Node_Id);
9234 procedure Next_Rep_Item (N : in out Node_Id);
9235 procedure Next_Use_Clause (N : in out Node_Id);
9237 --------------------------------------
9238 -- Logical Access to End_Span Field --
9239 --------------------------------------
9241 function End_Location (N : Node_Id) return Source_Ptr;
9242 -- N is an N_If_Statement or N_Case_Statement node, and this
9243 -- function returns the location of the IF token in the END IF
9244 -- sequence by translating the value of the End_Span field.
9246 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9247 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9248 -- sets the End_Span field to correspond to the given value S. In
9249 -- other words, End_Span is set to the difference between S and
9250 -- Sloc (N), the starting location.
9252 --------------------------------
9253 -- Node_Kind Membership Tests --
9254 --------------------------------
9256 -- The following functions allow a convenient notation for testing whether
9257 -- a Node_Kind value matches any one of a list of possible values. In each
9258 -- case True is returned if the given T argument is equal to any of the V
9259 -- arguments. Note that there is a similar set of functions defined in
9260 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9265 V2 : Node_Kind) return Boolean;
9271 V3 : Node_Kind) return Boolean;
9278 V4 : Node_Kind) return Boolean;
9286 V5 : Node_Kind) return Boolean;
9295 V6 : Node_Kind) return Boolean;
9305 V7 : Node_Kind) return Boolean;
9316 V8 : Node_Kind) return Boolean;
9318 pragma Inline (Nkind_In);
9319 -- Inline all above functions
9321 -----------------------
9322 -- Utility Functions --
9323 -----------------------
9325 function Pragma_Name (N : Node_Id) return Name_Id;
9326 pragma Inline (Pragma_Name);
9327 -- Convenient function to obtain Chars field of Pragma_Identifier
9329 -----------------------------
9330 -- Syntactic Parent Tables --
9331 -----------------------------
9333 -- These tables show for each node, and for each of the five fields,
9334 -- whether the corresponding field is syntactic (True) or semantic (False).
9335 -- Unused entries are also set to False.
9337 subtype Field_Num is Natural range 1 .. 5;
9339 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9341 -- Following entries can be built automatically from the sinfo sources
9342 -- using the makeisf utility (currently this program is in spitbol).
9345 (1 => True, -- Chars (Name1)
9346 2 => False, -- Original_Discriminant (Node2-Sem)
9347 3 => False, -- unused
9348 4 => False, -- Entity (Node4-Sem)
9349 5 => False), -- Etype (Node5-Sem)
9351 N_Integer_Literal =>
9352 (1 => False, -- unused
9353 2 => False, -- Original_Entity (Node2-Sem)
9354 3 => True, -- Intval (Uint3)
9355 4 => False, -- unused
9356 5 => False), -- Etype (Node5-Sem)
9359 (1 => False, -- unused
9360 2 => False, -- Original_Entity (Node2-Sem)
9361 3 => True, -- Realval (Ureal3)
9362 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9363 5 => False), -- Etype (Node5-Sem)
9365 N_Character_Literal =>
9366 (1 => True, -- Chars (Name1)
9367 2 => True, -- Char_Literal_Value (Uint2)
9368 3 => False, -- unused
9369 4 => False, -- Entity (Node4-Sem)
9370 5 => False), -- Etype (Node5-Sem)
9373 (1 => False, -- unused
9374 2 => False, -- unused
9375 3 => True, -- Strval (Str3)
9376 4 => False, -- unused
9377 5 => False), -- Etype (Node5-Sem)
9380 (1 => False, -- Next_Pragma (Node1-Sem)
9381 2 => True, -- Pragma_Argument_Associations (List2)
9382 3 => True, -- Debug_Statement (Node3)
9383 4 => True, -- Pragma_Identifier (Node4)
9384 5 => False), -- Next_Rep_Item (Node5-Sem)
9386 N_Pragma_Argument_Association =>
9387 (1 => True, -- Chars (Name1)
9388 2 => False, -- unused
9389 3 => True, -- Expression (Node3)
9390 4 => False, -- unused
9391 5 => False), -- unused
9393 N_Defining_Identifier =>
9394 (1 => True, -- Chars (Name1)
9395 2 => False, -- Next_Entity (Node2-Sem)
9396 3 => False, -- Scope (Node3-Sem)
9397 4 => False, -- unused
9398 5 => False), -- Etype (Node5-Sem)
9400 N_Full_Type_Declaration =>
9401 (1 => True, -- Defining_Identifier (Node1)
9402 2 => False, -- unused
9403 3 => True, -- Type_Definition (Node3)
9404 4 => True, -- Discriminant_Specifications (List4)
9405 5 => False), -- unused
9407 N_Subtype_Declaration =>
9408 (1 => True, -- Defining_Identifier (Node1)
9409 2 => False, -- unused
9410 3 => False, -- unused
9411 4 => False, -- Generic_Parent_Type (Node4-Sem)
9412 5 => True), -- Subtype_Indication (Node5)
9414 N_Subtype_Indication =>
9415 (1 => False, -- unused
9416 2 => False, -- unused
9417 3 => True, -- Constraint (Node3)
9418 4 => True, -- Subtype_Mark (Node4)
9419 5 => False), -- Etype (Node5-Sem)
9421 N_Object_Declaration =>
9422 (1 => True, -- Defining_Identifier (Node1)
9423 2 => False, -- Handler_List_Entry (Node2-Sem)
9424 3 => True, -- Expression (Node3)
9425 4 => True, -- Object_Definition (Node4)
9426 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9428 N_Number_Declaration =>
9429 (1 => True, -- Defining_Identifier (Node1)
9430 2 => False, -- unused
9431 3 => True, -- Expression (Node3)
9432 4 => False, -- unused
9433 5 => False), -- unused
9435 N_Derived_Type_Definition =>
9436 (1 => False, -- unused
9437 2 => True, -- Interface_List (List2)
9438 3 => True, -- Record_Extension_Part (Node3)
9439 4 => False, -- unused
9440 5 => True), -- Subtype_Indication (Node5)
9442 N_Range_Constraint =>
9443 (1 => False, -- unused
9444 2 => False, -- unused
9445 3 => False, -- unused
9446 4 => True, -- Range_Expression (Node4)
9447 5 => False), -- unused
9450 (1 => True, -- Low_Bound (Node1)
9451 2 => True, -- High_Bound (Node2)
9452 3 => False, -- unused
9453 4 => False, -- unused
9454 5 => False), -- Etype (Node5-Sem)
9456 N_Enumeration_Type_Definition =>
9457 (1 => True, -- Literals (List1)
9458 2 => False, -- unused
9459 3 => False, -- unused
9460 4 => True, -- End_Label (Node4)
9461 5 => False), -- unused
9463 N_Defining_Character_Literal =>
9464 (1 => True, -- Chars (Name1)
9465 2 => False, -- Next_Entity (Node2-Sem)
9466 3 => False, -- Scope (Node3-Sem)
9467 4 => False, -- unused
9468 5 => False), -- Etype (Node5-Sem)
9470 N_Signed_Integer_Type_Definition =>
9471 (1 => True, -- Low_Bound (Node1)
9472 2 => True, -- High_Bound (Node2)
9473 3 => False, -- unused
9474 4 => False, -- unused
9475 5 => False), -- unused
9477 N_Modular_Type_Definition =>
9478 (1 => False, -- unused
9479 2 => False, -- unused
9480 3 => True, -- Expression (Node3)
9481 4 => False, -- unused
9482 5 => False), -- unused
9484 N_Floating_Point_Definition =>
9485 (1 => False, -- unused
9486 2 => True, -- Digits_Expression (Node2)
9487 3 => False, -- unused
9488 4 => True, -- Real_Range_Specification (Node4)
9489 5 => False), -- unused
9491 N_Real_Range_Specification =>
9492 (1 => True, -- Low_Bound (Node1)
9493 2 => True, -- High_Bound (Node2)
9494 3 => False, -- unused
9495 4 => False, -- unused
9496 5 => False), -- unused
9498 N_Ordinary_Fixed_Point_Definition =>
9499 (1 => False, -- unused
9500 2 => False, -- unused
9501 3 => True, -- Delta_Expression (Node3)
9502 4 => True, -- Real_Range_Specification (Node4)
9503 5 => False), -- unused
9505 N_Decimal_Fixed_Point_Definition =>
9506 (1 => False, -- unused
9507 2 => True, -- Digits_Expression (Node2)
9508 3 => True, -- Delta_Expression (Node3)
9509 4 => True, -- Real_Range_Specification (Node4)
9510 5 => False), -- unused
9512 N_Digits_Constraint =>
9513 (1 => False, -- unused
9514 2 => True, -- Digits_Expression (Node2)
9515 3 => False, -- unused
9516 4 => True, -- Range_Constraint (Node4)
9517 5 => False), -- unused
9519 N_Unconstrained_Array_Definition =>
9520 (1 => False, -- unused
9521 2 => True, -- Subtype_Marks (List2)
9522 3 => False, -- unused
9523 4 => True, -- Component_Definition (Node4)
9524 5 => False), -- unused
9526 N_Constrained_Array_Definition =>
9527 (1 => False, -- unused
9528 2 => True, -- Discrete_Subtype_Definitions (List2)
9529 3 => False, -- unused
9530 4 => True, -- Component_Definition (Node4)
9531 5 => False), -- unused
9533 N_Component_Definition =>
9534 (1 => False, -- unused
9535 2 => False, -- unused
9536 3 => True, -- Access_Definition (Node3)
9537 4 => False, -- unused
9538 5 => True), -- Subtype_Indication (Node5)
9540 N_Discriminant_Specification =>
9541 (1 => True, -- Defining_Identifier (Node1)
9542 2 => False, -- unused
9543 3 => True, -- Expression (Node3)
9544 4 => False, -- unused
9545 5 => True), -- Discriminant_Type (Node5)
9547 N_Index_Or_Discriminant_Constraint =>
9548 (1 => True, -- Constraints (List1)
9549 2 => False, -- unused
9550 3 => False, -- unused
9551 4 => False, -- unused
9552 5 => False), -- unused
9554 N_Discriminant_Association =>
9555 (1 => True, -- Selector_Names (List1)
9556 2 => False, -- unused
9557 3 => True, -- Expression (Node3)
9558 4 => False, -- unused
9559 5 => False), -- unused
9561 N_Record_Definition =>
9562 (1 => True, -- Component_List (Node1)
9563 2 => True, -- Interface_List (List2)
9564 3 => False, -- unused
9565 4 => True, -- End_Label (Node4)
9566 5 => False), -- unused
9569 (1 => False, -- unused
9570 2 => False, -- unused
9571 3 => True, -- Component_Items (List3)
9572 4 => True, -- Variant_Part (Node4)
9573 5 => False), -- unused
9575 N_Component_Declaration =>
9576 (1 => True, -- Defining_Identifier (Node1)
9577 2 => False, -- unused
9578 3 => True, -- Expression (Node3)
9579 4 => True, -- Component_Definition (Node4)
9580 5 => False), -- unused
9583 (1 => True, -- Variants (List1)
9584 2 => True, -- Name (Node2)
9585 3 => False, -- unused
9586 4 => False, -- unused
9587 5 => False), -- unused
9590 (1 => True, -- Component_List (Node1)
9591 2 => False, -- Enclosing_Variant (Node2-Sem)
9592 3 => False, -- Present_Expr (Uint3-Sem)
9593 4 => True, -- Discrete_Choices (List4)
9594 5 => False), -- Dcheck_Function (Node5-Sem)
9597 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9598 2 => False, -- unused
9599 3 => False, -- unused
9600 4 => False, -- unused
9601 5 => False), -- unused
9603 N_Access_To_Object_Definition =>
9604 (1 => False, -- unused
9605 2 => False, -- unused
9606 3 => False, -- unused
9607 4 => False, -- unused
9608 5 => True), -- Subtype_Indication (Node5)
9610 N_Access_Function_Definition =>
9611 (1 => False, -- unused
9612 2 => False, -- unused
9613 3 => True, -- Parameter_Specifications (List3)
9614 4 => True, -- Result_Definition (Node4)
9615 5 => False), -- unused
9617 N_Access_Procedure_Definition =>
9618 (1 => False, -- unused
9619 2 => False, -- unused
9620 3 => True, -- Parameter_Specifications (List3)
9621 4 => False, -- unused
9622 5 => False), -- unused
9624 N_Access_Definition =>
9625 (1 => False, -- unused
9626 2 => False, -- unused
9627 3 => True, -- Access_To_Subprogram_Definition (Node3)
9628 4 => True, -- Subtype_Mark (Node4)
9629 5 => False), -- unused
9631 N_Incomplete_Type_Declaration =>
9632 (1 => True, -- Defining_Identifier (Node1)
9633 2 => False, -- unused
9634 3 => False, -- unused
9635 4 => True, -- Discriminant_Specifications (List4)
9636 5 => False), -- unused
9638 N_Explicit_Dereference =>
9639 (1 => False, -- unused
9640 2 => False, -- unused
9641 3 => True, -- Prefix (Node3)
9642 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9643 5 => False), -- Etype (Node5-Sem)
9645 N_Indexed_Component =>
9646 (1 => True, -- Expressions (List1)
9647 2 => False, -- unused
9648 3 => True, -- Prefix (Node3)
9649 4 => False, -- unused
9650 5 => False), -- Etype (Node5-Sem)
9653 (1 => False, -- unused
9654 2 => False, -- unused
9655 3 => True, -- Prefix (Node3)
9656 4 => True, -- Discrete_Range (Node4)
9657 5 => False), -- Etype (Node5-Sem)
9659 N_Selected_Component =>
9660 (1 => False, -- unused
9661 2 => True, -- Selector_Name (Node2)
9662 3 => True, -- Prefix (Node3)
9663 4 => False, -- unused
9664 5 => False), -- Etype (Node5-Sem)
9666 N_Attribute_Reference =>
9667 (1 => True, -- Expressions (List1)
9668 2 => True, -- Attribute_Name (Name2)
9669 3 => True, -- Prefix (Node3)
9670 4 => False, -- Entity (Node4-Sem)
9671 5 => False), -- Etype (Node5-Sem)
9674 (1 => True, -- Expressions (List1)
9675 2 => True, -- Component_Associations (List2)
9676 3 => False, -- Aggregate_Bounds (Node3-Sem)
9677 4 => False, -- unused
9678 5 => False), -- Etype (Node5-Sem)
9680 N_Component_Association =>
9681 (1 => True, -- Choices (List1)
9682 2 => False, -- Loop_Actions (List2-Sem)
9683 3 => True, -- Expression (Node3)
9684 4 => False, -- unused
9685 5 => False), -- unused
9687 N_Extension_Aggregate =>
9688 (1 => True, -- Expressions (List1)
9689 2 => True, -- Component_Associations (List2)
9690 3 => True, -- Ancestor_Part (Node3)
9691 4 => False, -- unused
9692 5 => False), -- Etype (Node5-Sem)
9695 (1 => False, -- unused
9696 2 => False, -- unused
9697 3 => False, -- unused
9698 4 => False, -- unused
9699 5 => False), -- Etype (Node5-Sem)
9702 (1 => False, -- Actions (List1-Sem)
9703 2 => True, -- Left_Opnd (Node2)
9704 3 => True, -- Right_Opnd (Node3)
9705 4 => False, -- unused
9706 5 => False), -- Etype (Node5-Sem)
9709 (1 => False, -- Actions (List1-Sem)
9710 2 => True, -- Left_Opnd (Node2)
9711 3 => True, -- Right_Opnd (Node3)
9712 4 => False, -- unused
9713 5 => False), -- Etype (Node5-Sem)
9716 (1 => False, -- unused
9717 2 => True, -- Left_Opnd (Node2)
9718 3 => True, -- Right_Opnd (Node3)
9719 4 => False, -- unused
9720 5 => False), -- Etype (Node5-Sem)
9723 (1 => False, -- unused
9724 2 => True, -- Left_Opnd (Node2)
9725 3 => True, -- Right_Opnd (Node3)
9726 4 => False, -- unused
9727 5 => False), -- Etype (Node5-Sem)
9730 (1 => True, -- Chars (Name1)
9731 2 => True, -- Left_Opnd (Node2)
9732 3 => True, -- Right_Opnd (Node3)
9733 4 => False, -- Entity (Node4-Sem)
9734 5 => False), -- Etype (Node5-Sem)
9737 (1 => True, -- Chars (Name1)
9738 2 => True, -- Left_Opnd (Node2)
9739 3 => True, -- Right_Opnd (Node3)
9740 4 => False, -- Entity (Node4-Sem)
9741 5 => False), -- Etype (Node5-Sem)
9744 (1 => True, -- Chars (Name1)
9745 2 => True, -- Left_Opnd (Node2)
9746 3 => True, -- Right_Opnd (Node3)
9747 4 => False, -- Entity (Node4-Sem)
9748 5 => False), -- Etype (Node5-Sem)
9751 (1 => True, -- Chars (Name1)
9752 2 => True, -- Left_Opnd (Node2)
9753 3 => True, -- Right_Opnd (Node3)
9754 4 => False, -- Entity (Node4-Sem)
9755 5 => False), -- Etype (Node5-Sem)
9758 (1 => True, -- Chars (Name1)
9759 2 => True, -- Left_Opnd (Node2)
9760 3 => True, -- Right_Opnd (Node3)
9761 4 => False, -- Entity (Node4-Sem)
9762 5 => False), -- Etype (Node5-Sem)
9765 (1 => True, -- Chars (Name1)
9766 2 => True, -- Left_Opnd (Node2)
9767 3 => True, -- Right_Opnd (Node3)
9768 4 => False, -- Entity (Node4-Sem)
9769 5 => False), -- Etype (Node5-Sem)
9772 (1 => True, -- Chars (Name1)
9773 2 => True, -- Left_Opnd (Node2)
9774 3 => True, -- Right_Opnd (Node3)
9775 4 => False, -- Entity (Node4-Sem)
9776 5 => False), -- Etype (Node5-Sem)
9779 (1 => True, -- Chars (Name1)
9780 2 => True, -- Left_Opnd (Node2)
9781 3 => True, -- Right_Opnd (Node3)
9782 4 => False, -- Entity (Node4-Sem)
9783 5 => False), -- Etype (Node5-Sem)
9786 (1 => True, -- Chars (Name1)
9787 2 => True, -- Left_Opnd (Node2)
9788 3 => True, -- Right_Opnd (Node3)
9789 4 => False, -- Entity (Node4-Sem)
9790 5 => False), -- Etype (Node5-Sem)
9793 (1 => True, -- Chars (Name1)
9794 2 => True, -- Left_Opnd (Node2)
9795 3 => True, -- Right_Opnd (Node3)
9796 4 => False, -- Entity (Node4-Sem)
9797 5 => False), -- Etype (Node5-Sem)
9800 (1 => True, -- Chars (Name1)
9801 2 => True, -- Left_Opnd (Node2)
9802 3 => True, -- Right_Opnd (Node3)
9803 4 => False, -- Entity (Node4-Sem)
9804 5 => False), -- Etype (Node5-Sem)
9807 (1 => True, -- Chars (Name1)
9808 2 => True, -- Left_Opnd (Node2)
9809 3 => True, -- Right_Opnd (Node3)
9810 4 => False, -- Entity (Node4-Sem)
9811 5 => False), -- Etype (Node5-Sem)
9814 (1 => True, -- Chars (Name1)
9815 2 => True, -- Left_Opnd (Node2)
9816 3 => True, -- Right_Opnd (Node3)
9817 4 => False, -- Entity (Node4-Sem)
9818 5 => False), -- Etype (Node5-Sem)
9821 (1 => True, -- Chars (Name1)
9822 2 => True, -- Left_Opnd (Node2)
9823 3 => True, -- Right_Opnd (Node3)
9824 4 => False, -- Entity (Node4-Sem)
9825 5 => False), -- Etype (Node5-Sem)
9828 (1 => True, -- Chars (Name1)
9829 2 => True, -- Left_Opnd (Node2)
9830 3 => True, -- Right_Opnd (Node3)
9831 4 => False, -- Entity (Node4-Sem)
9832 5 => False), -- Etype (Node5-Sem)
9835 (1 => True, -- Chars (Name1)
9836 2 => True, -- Left_Opnd (Node2)
9837 3 => True, -- Right_Opnd (Node3)
9838 4 => False, -- Entity (Node4-Sem)
9839 5 => False), -- Etype (Node5-Sem)
9842 (1 => True, -- Chars (Name1)
9843 2 => True, -- Left_Opnd (Node2)
9844 3 => True, -- Right_Opnd (Node3)
9845 4 => False, -- Entity (Node4-Sem)
9846 5 => False), -- Etype (Node5-Sem)
9849 (1 => True, -- Chars (Name1)
9850 2 => False, -- unused
9851 3 => True, -- Right_Opnd (Node3)
9852 4 => False, -- Entity (Node4-Sem)
9853 5 => False), -- Etype (Node5-Sem)
9856 (1 => True, -- Chars (Name1)
9857 2 => False, -- unused
9858 3 => True, -- Right_Opnd (Node3)
9859 4 => False, -- Entity (Node4-Sem)
9860 5 => False), -- Etype (Node5-Sem)
9863 (1 => True, -- Chars (Name1)
9864 2 => False, -- unused
9865 3 => True, -- Right_Opnd (Node3)
9866 4 => False, -- Entity (Node4-Sem)
9867 5 => False), -- Etype (Node5-Sem)
9870 (1 => True, -- Chars (Name1)
9871 2 => False, -- unused
9872 3 => True, -- Right_Opnd (Node3)
9873 4 => False, -- Entity (Node4-Sem)
9874 5 => False), -- Etype (Node5-Sem)
9876 N_Type_Conversion =>
9877 (1 => False, -- unused
9878 2 => False, -- unused
9879 3 => True, -- Expression (Node3)
9880 4 => True, -- Subtype_Mark (Node4)
9881 5 => False), -- Etype (Node5-Sem)
9883 N_Qualified_Expression =>
9884 (1 => False, -- unused
9885 2 => False, -- unused
9886 3 => True, -- Expression (Node3)
9887 4 => True, -- Subtype_Mark (Node4)
9888 5 => False), -- Etype (Node5-Sem)
9891 (1 => False, -- Storage_Pool (Node1-Sem)
9892 2 => False, -- Procedure_To_Call (Node2-Sem)
9893 3 => True, -- Expression (Node3)
9894 4 => False, -- Coextensions (Elist4-Sem)
9895 5 => False), -- Etype (Node5-Sem)
9898 (1 => False, -- unused
9899 2 => False, -- unused
9900 3 => False, -- unused
9901 4 => False, -- unused
9902 5 => False), -- unused
9905 (1 => True, -- Identifier (Node1)
9906 2 => False, -- unused
9907 3 => False, -- unused
9908 4 => False, -- unused
9909 5 => False), -- unused
9911 N_Assignment_Statement =>
9912 (1 => False, -- unused
9913 2 => True, -- Name (Node2)
9914 3 => True, -- Expression (Node3)
9915 4 => False, -- unused
9916 5 => False), -- unused
9919 (1 => True, -- Condition (Node1)
9920 2 => True, -- Then_Statements (List2)
9921 3 => True, -- Elsif_Parts (List3)
9922 4 => True, -- Else_Statements (List4)
9923 5 => True), -- End_Span (Uint5)
9926 (1 => True, -- Condition (Node1)
9927 2 => True, -- Then_Statements (List2)
9928 3 => False, -- Condition_Actions (List3-Sem)
9929 4 => False, -- unused
9930 5 => False), -- unused
9933 (1 => False, -- unused
9934 2 => False, -- unused
9935 3 => True, -- Expression (Node3)
9936 4 => True, -- Alternatives (List4)
9937 5 => True), -- End_Span (Uint5)
9939 N_Case_Statement_Alternative =>
9940 (1 => False, -- unused
9941 2 => False, -- unused
9942 3 => True, -- Statements (List3)
9943 4 => True, -- Discrete_Choices (List4)
9944 5 => False), -- unused
9947 (1 => True, -- Identifier (Node1)
9948 2 => True, -- Iteration_Scheme (Node2)
9949 3 => True, -- Statements (List3)
9950 4 => True, -- End_Label (Node4)
9951 5 => False), -- unused
9953 N_Iteration_Scheme =>
9954 (1 => True, -- Condition (Node1)
9955 2 => False, -- unused
9956 3 => False, -- Condition_Actions (List3-Sem)
9957 4 => True, -- Loop_Parameter_Specification (Node4)
9958 5 => False), -- unused
9960 N_Loop_Parameter_Specification =>
9961 (1 => True, -- Defining_Identifier (Node1)
9962 2 => False, -- unused
9963 3 => False, -- unused
9964 4 => True, -- Discrete_Subtype_Definition (Node4)
9965 5 => False), -- unused
9967 N_Block_Statement =>
9968 (1 => True, -- Identifier (Node1)
9969 2 => True, -- Declarations (List2)
9970 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9971 4 => True, -- Handled_Statement_Sequence (Node4)
9972 5 => False), -- unused
9975 (1 => True, -- Condition (Node1)
9976 2 => True, -- Name (Node2)
9977 3 => False, -- unused
9978 4 => False, -- unused
9979 5 => False), -- unused
9982 (1 => False, -- unused
9983 2 => True, -- Name (Node2)
9984 3 => False, -- unused
9985 4 => False, -- unused
9986 5 => False), -- unused
9988 N_Subprogram_Declaration =>
9989 (1 => True, -- Specification (Node1)
9990 2 => False, -- unused
9991 3 => False, -- Body_To_Inline (Node3-Sem)
9992 4 => False, -- Parent_Spec (Node4-Sem)
9993 5 => False), -- Corresponding_Body (Node5-Sem)
9995 N_Abstract_Subprogram_Declaration =>
9996 (1 => True, -- Specification (Node1)
9997 2 => False, -- unused
9998 3 => False, -- unused
9999 4 => False, -- unused
10000 5 => False), -- unused
10002 N_Function_Specification =>
10003 (1 => True, -- Defining_Unit_Name (Node1)
10004 2 => False, -- Elaboration_Boolean (Node2-Sem)
10005 3 => True, -- Parameter_Specifications (List3)
10006 4 => True, -- Result_Definition (Node4)
10007 5 => False), -- Generic_Parent (Node5-Sem)
10009 N_Procedure_Specification =>
10010 (1 => True, -- Defining_Unit_Name (Node1)
10011 2 => False, -- Elaboration_Boolean (Node2-Sem)
10012 3 => True, -- Parameter_Specifications (List3)
10013 4 => False, -- unused
10014 5 => False), -- Generic_Parent (Node5-Sem)
10017 (1 => True, -- Identifier (Node1)
10018 2 => True, -- Name (Node2)
10019 3 => False, -- unused
10020 4 => False, -- unused
10021 5 => False), -- unused
10023 N_Defining_Program_Unit_Name =>
10024 (1 => True, -- Defining_Identifier (Node1)
10025 2 => True, -- Name (Node2)
10026 3 => False, -- unused
10027 4 => False, -- unused
10028 5 => False), -- unused
10030 N_Operator_Symbol =>
10031 (1 => True, -- Chars (Name1)
10032 2 => False, -- unused
10033 3 => True, -- Strval (Str3)
10034 4 => False, -- Entity (Node4-Sem)
10035 5 => False), -- Etype (Node5-Sem)
10037 N_Defining_Operator_Symbol =>
10038 (1 => True, -- Chars (Name1)
10039 2 => False, -- Next_Entity (Node2-Sem)
10040 3 => False, -- Scope (Node3-Sem)
10041 4 => False, -- unused
10042 5 => False), -- Etype (Node5-Sem)
10044 N_Parameter_Specification =>
10045 (1 => True, -- Defining_Identifier (Node1)
10046 2 => True, -- Parameter_Type (Node2)
10047 3 => True, -- Expression (Node3)
10048 4 => False, -- unused
10049 5 => False), -- Default_Expression (Node5-Sem)
10051 N_Subprogram_Body =>
10052 (1 => True, -- Specification (Node1)
10053 2 => True, -- Declarations (List2)
10054 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10055 4 => True, -- Handled_Statement_Sequence (Node4)
10056 5 => False), -- Corresponding_Spec (Node5-Sem)
10058 N_Procedure_Call_Statement =>
10059 (1 => False, -- Controlling_Argument (Node1-Sem)
10060 2 => True, -- Name (Node2)
10061 3 => True, -- Parameter_Associations (List3)
10062 4 => False, -- First_Named_Actual (Node4-Sem)
10063 5 => False), -- Etype (Node5-Sem)
10066 (1 => False, -- Controlling_Argument (Node1-Sem)
10067 2 => True, -- Name (Node2)
10068 3 => True, -- Parameter_Associations (List3)
10069 4 => False, -- First_Named_Actual (Node4-Sem)
10070 5 => False), -- Etype (Node5-Sem)
10072 N_Parameter_Association =>
10073 (1 => False, -- unused
10074 2 => True, -- Selector_Name (Node2)
10075 3 => True, -- Explicit_Actual_Parameter (Node3)
10076 4 => False, -- Next_Named_Actual (Node4-Sem)
10077 5 => False), -- unused
10079 N_Return_Statement =>
10080 (1 => False, -- Storage_Pool (Node1-Sem)
10081 2 => False, -- Procedure_To_Call (Node2-Sem)
10082 3 => True, -- Expression (Node3)
10083 4 => False, -- unused
10084 5 => False), -- Return_Statement_Entity (Node5-Sem)
10086 N_Extended_Return_Statement =>
10087 (1 => False, -- Storage_Pool (Node1-Sem)
10088 2 => False, -- Procedure_To_Call (Node2-Sem)
10089 3 => True, -- Return_Object_Declarations (List3)
10090 4 => True, -- Handled_Statement_Sequence (Node4)
10091 5 => False), -- Return_Statement_Entity (Node5-Sem)
10093 N_Package_Declaration =>
10094 (1 => True, -- Specification (Node1)
10095 2 => False, -- unused
10096 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10097 4 => False, -- Parent_Spec (Node4-Sem)
10098 5 => False), -- Corresponding_Body (Node5-Sem)
10100 N_Package_Specification =>
10101 (1 => True, -- Defining_Unit_Name (Node1)
10102 2 => True, -- Visible_Declarations (List2)
10103 3 => True, -- Private_Declarations (List3)
10104 4 => True, -- End_Label (Node4)
10105 5 => False), -- Generic_Parent (Node5-Sem)
10108 (1 => True, -- Defining_Unit_Name (Node1)
10109 2 => True, -- Declarations (List2)
10110 3 => False, -- unused
10111 4 => True, -- Handled_Statement_Sequence (Node4)
10112 5 => False), -- Corresponding_Spec (Node5-Sem)
10114 N_Private_Type_Declaration =>
10115 (1 => True, -- Defining_Identifier (Node1)
10116 2 => False, -- unused
10117 3 => False, -- unused
10118 4 => True, -- Discriminant_Specifications (List4)
10119 5 => False), -- unused
10121 N_Private_Extension_Declaration =>
10122 (1 => True, -- Defining_Identifier (Node1)
10123 2 => True, -- Interface_List (List2)
10124 3 => False, -- unused
10125 4 => True, -- Discriminant_Specifications (List4)
10126 5 => True), -- Subtype_Indication (Node5)
10128 N_Use_Package_Clause =>
10129 (1 => False, -- unused
10130 2 => True, -- Names (List2)
10131 3 => False, -- Next_Use_Clause (Node3-Sem)
10132 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10133 5 => False), -- unused
10135 N_Use_Type_Clause =>
10136 (1 => False, -- unused
10137 2 => True, -- Subtype_Marks (List2)
10138 3 => False, -- Next_Use_Clause (Node3-Sem)
10139 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10140 5 => False), -- unused
10142 N_Object_Renaming_Declaration =>
10143 (1 => True, -- Defining_Identifier (Node1)
10144 2 => True, -- Name (Node2)
10145 3 => True, -- Access_Definition (Node3)
10146 4 => True, -- Subtype_Mark (Node4)
10147 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10149 N_Exception_Renaming_Declaration =>
10150 (1 => True, -- Defining_Identifier (Node1)
10151 2 => True, -- Name (Node2)
10152 3 => False, -- unused
10153 4 => False, -- unused
10154 5 => False), -- unused
10156 N_Package_Renaming_Declaration =>
10157 (1 => True, -- Defining_Unit_Name (Node1)
10158 2 => True, -- Name (Node2)
10159 3 => False, -- unused
10160 4 => False, -- Parent_Spec (Node4-Sem)
10161 5 => False), -- unused
10163 N_Subprogram_Renaming_Declaration =>
10164 (1 => True, -- Specification (Node1)
10165 2 => True, -- Name (Node2)
10166 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10167 4 => False, -- Parent_Spec (Node4-Sem)
10168 5 => False), -- Corresponding_Spec (Node5-Sem)
10170 N_Generic_Package_Renaming_Declaration =>
10171 (1 => True, -- Defining_Unit_Name (Node1)
10172 2 => True, -- Name (Node2)
10173 3 => False, -- unused
10174 4 => False, -- Parent_Spec (Node4-Sem)
10175 5 => False), -- unused
10177 N_Generic_Procedure_Renaming_Declaration =>
10178 (1 => True, -- Defining_Unit_Name (Node1)
10179 2 => True, -- Name (Node2)
10180 3 => False, -- unused
10181 4 => False, -- Parent_Spec (Node4-Sem)
10182 5 => False), -- unused
10184 N_Generic_Function_Renaming_Declaration =>
10185 (1 => True, -- Defining_Unit_Name (Node1)
10186 2 => True, -- Name (Node2)
10187 3 => False, -- unused
10188 4 => False, -- Parent_Spec (Node4-Sem)
10189 5 => False), -- unused
10191 N_Task_Type_Declaration =>
10192 (1 => True, -- Defining_Identifier (Node1)
10193 2 => True, -- Interface_List (List2)
10194 3 => True, -- Task_Definition (Node3)
10195 4 => True, -- Discriminant_Specifications (List4)
10196 5 => False), -- Corresponding_Body (Node5-Sem)
10198 N_Single_Task_Declaration =>
10199 (1 => True, -- Defining_Identifier (Node1)
10200 2 => True, -- Interface_List (List2)
10201 3 => True, -- Task_Definition (Node3)
10202 4 => False, -- unused
10203 5 => False), -- unused
10205 N_Task_Definition =>
10206 (1 => False, -- unused
10207 2 => True, -- Visible_Declarations (List2)
10208 3 => True, -- Private_Declarations (List3)
10209 4 => True, -- End_Label (Node4)
10210 5 => False), -- unused
10213 (1 => True, -- Defining_Identifier (Node1)
10214 2 => True, -- Declarations (List2)
10215 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10216 4 => True, -- Handled_Statement_Sequence (Node4)
10217 5 => False), -- Corresponding_Spec (Node5-Sem)
10219 N_Protected_Type_Declaration =>
10220 (1 => True, -- Defining_Identifier (Node1)
10221 2 => True, -- Interface_List (List2)
10222 3 => True, -- Protected_Definition (Node3)
10223 4 => True, -- Discriminant_Specifications (List4)
10224 5 => False), -- Corresponding_Body (Node5-Sem)
10226 N_Single_Protected_Declaration =>
10227 (1 => True, -- Defining_Identifier (Node1)
10228 2 => True, -- Interface_List (List2)
10229 3 => True, -- Protected_Definition (Node3)
10230 4 => False, -- unused
10231 5 => False), -- unused
10233 N_Protected_Definition =>
10234 (1 => False, -- unused
10235 2 => True, -- Visible_Declarations (List2)
10236 3 => True, -- Private_Declarations (List3)
10237 4 => True, -- End_Label (Node4)
10238 5 => False), -- unused
10240 N_Protected_Body =>
10241 (1 => True, -- Defining_Identifier (Node1)
10242 2 => True, -- Declarations (List2)
10243 3 => False, -- unused
10244 4 => True, -- End_Label (Node4)
10245 5 => False), -- Corresponding_Spec (Node5-Sem)
10247 N_Entry_Declaration =>
10248 (1 => True, -- Defining_Identifier (Node1)
10249 2 => False, -- unused
10250 3 => True, -- Parameter_Specifications (List3)
10251 4 => True, -- Discrete_Subtype_Definition (Node4)
10252 5 => False), -- Corresponding_Body (Node5-Sem)
10254 N_Accept_Statement =>
10255 (1 => True, -- Entry_Direct_Name (Node1)
10256 2 => True, -- Declarations (List2)
10257 3 => True, -- Parameter_Specifications (List3)
10258 4 => True, -- Handled_Statement_Sequence (Node4)
10259 5 => True), -- Entry_Index (Node5)
10262 (1 => True, -- Defining_Identifier (Node1)
10263 2 => True, -- Declarations (List2)
10264 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10265 4 => True, -- Handled_Statement_Sequence (Node4)
10266 5 => True), -- Entry_Body_Formal_Part (Node5)
10268 N_Entry_Body_Formal_Part =>
10269 (1 => True, -- Condition (Node1)
10270 2 => False, -- unused
10271 3 => True, -- Parameter_Specifications (List3)
10272 4 => True, -- Entry_Index_Specification (Node4)
10273 5 => False), -- unused
10275 N_Entry_Index_Specification =>
10276 (1 => True, -- Defining_Identifier (Node1)
10277 2 => False, -- unused
10278 3 => False, -- unused
10279 4 => True, -- Discrete_Subtype_Definition (Node4)
10280 5 => False), -- unused
10282 N_Entry_Call_Statement =>
10283 (1 => False, -- unused
10284 2 => True, -- Name (Node2)
10285 3 => True, -- Parameter_Associations (List3)
10286 4 => False, -- First_Named_Actual (Node4-Sem)
10287 5 => False), -- unused
10289 N_Requeue_Statement =>
10290 (1 => False, -- unused
10291 2 => True, -- Name (Node2)
10292 3 => False, -- unused
10293 4 => False, -- unused
10294 5 => False), -- unused
10296 N_Delay_Until_Statement =>
10297 (1 => False, -- unused
10298 2 => False, -- unused
10299 3 => True, -- Expression (Node3)
10300 4 => False, -- unused
10301 5 => False), -- unused
10303 N_Delay_Relative_Statement =>
10304 (1 => False, -- unused
10305 2 => False, -- unused
10306 3 => True, -- Expression (Node3)
10307 4 => False, -- unused
10308 5 => False), -- unused
10310 N_Selective_Accept =>
10311 (1 => True, -- Select_Alternatives (List1)
10312 2 => False, -- unused
10313 3 => False, -- unused
10314 4 => True, -- Else_Statements (List4)
10315 5 => False), -- unused
10317 N_Accept_Alternative =>
10318 (1 => True, -- Condition (Node1)
10319 2 => True, -- Accept_Statement (Node2)
10320 3 => True, -- Statements (List3)
10321 4 => True, -- Pragmas_Before (List4)
10322 5 => False), -- Accept_Handler_Records (List5-Sem)
10324 N_Delay_Alternative =>
10325 (1 => True, -- Condition (Node1)
10326 2 => True, -- Delay_Statement (Node2)
10327 3 => True, -- Statements (List3)
10328 4 => True, -- Pragmas_Before (List4)
10329 5 => False), -- unused
10331 N_Terminate_Alternative =>
10332 (1 => True, -- Condition (Node1)
10333 2 => False, -- unused
10334 3 => False, -- unused
10335 4 => True, -- Pragmas_Before (List4)
10336 5 => True), -- Pragmas_After (List5)
10338 N_Timed_Entry_Call =>
10339 (1 => True, -- Entry_Call_Alternative (Node1)
10340 2 => False, -- unused
10341 3 => False, -- unused
10342 4 => True, -- Delay_Alternative (Node4)
10343 5 => False), -- unused
10345 N_Entry_Call_Alternative =>
10346 (1 => True, -- Entry_Call_Statement (Node1)
10347 2 => False, -- unused
10348 3 => True, -- Statements (List3)
10349 4 => True, -- Pragmas_Before (List4)
10350 5 => False), -- unused
10352 N_Conditional_Entry_Call =>
10353 (1 => True, -- Entry_Call_Alternative (Node1)
10354 2 => False, -- unused
10355 3 => False, -- unused
10356 4 => True, -- Else_Statements (List4)
10357 5 => False), -- unused
10359 N_Asynchronous_Select =>
10360 (1 => True, -- Triggering_Alternative (Node1)
10361 2 => True, -- Abortable_Part (Node2)
10362 3 => False, -- unused
10363 4 => False, -- unused
10364 5 => False), -- unused
10366 N_Triggering_Alternative =>
10367 (1 => True, -- Triggering_Statement (Node1)
10368 2 => False, -- unused
10369 3 => True, -- Statements (List3)
10370 4 => True, -- Pragmas_Before (List4)
10371 5 => False), -- unused
10373 N_Abortable_Part =>
10374 (1 => False, -- unused
10375 2 => False, -- unused
10376 3 => True, -- Statements (List3)
10377 4 => False, -- unused
10378 5 => False), -- unused
10380 N_Abort_Statement =>
10381 (1 => False, -- unused
10382 2 => True, -- Names (List2)
10383 3 => False, -- unused
10384 4 => False, -- unused
10385 5 => False), -- unused
10387 N_Compilation_Unit =>
10388 (1 => True, -- Context_Items (List1)
10389 2 => True, -- Unit (Node2)
10390 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10391 4 => False, -- Library_Unit (Node4-Sem)
10392 5 => True), -- Aux_Decls_Node (Node5)
10394 N_Compilation_Unit_Aux =>
10395 (1 => True, -- Actions (List1)
10396 2 => True, -- Declarations (List2)
10397 3 => False, -- unused
10398 4 => True, -- Config_Pragmas (List4)
10399 5 => True), -- Pragmas_After (List5)
10402 (1 => False, -- unused
10403 2 => True, -- Name (Node2)
10404 3 => False, -- unused
10405 4 => False, -- Library_Unit (Node4-Sem)
10406 5 => False), -- Corresponding_Spec (Node5-Sem)
10408 N_Subprogram_Body_Stub =>
10409 (1 => True, -- Specification (Node1)
10410 2 => False, -- unused
10411 3 => False, -- unused
10412 4 => False, -- Library_Unit (Node4-Sem)
10413 5 => False), -- Corresponding_Body (Node5-Sem)
10415 N_Package_Body_Stub =>
10416 (1 => True, -- Defining_Identifier (Node1)
10417 2 => False, -- unused
10418 3 => False, -- unused
10419 4 => False, -- Library_Unit (Node4-Sem)
10420 5 => False), -- Corresponding_Body (Node5-Sem)
10422 N_Task_Body_Stub =>
10423 (1 => True, -- Defining_Identifier (Node1)
10424 2 => False, -- unused
10425 3 => False, -- unused
10426 4 => False, -- Library_Unit (Node4-Sem)
10427 5 => False), -- Corresponding_Body (Node5-Sem)
10429 N_Protected_Body_Stub =>
10430 (1 => True, -- Defining_Identifier (Node1)
10431 2 => False, -- unused
10432 3 => False, -- unused
10433 4 => False, -- Library_Unit (Node4-Sem)
10434 5 => False), -- Corresponding_Body (Node5-Sem)
10437 (1 => True, -- Proper_Body (Node1)
10438 2 => True, -- Name (Node2)
10439 3 => False, -- Corresponding_Stub (Node3-Sem)
10440 4 => False, -- unused
10441 5 => False), -- unused
10443 N_Exception_Declaration =>
10444 (1 => True, -- Defining_Identifier (Node1)
10445 2 => False, -- unused
10446 3 => False, -- Expression (Node3-Sem)
10447 4 => False, -- unused
10448 5 => False), -- unused
10450 N_Handled_Sequence_Of_Statements =>
10451 (1 => True, -- At_End_Proc (Node1)
10452 2 => False, -- First_Real_Statement (Node2-Sem)
10453 3 => True, -- Statements (List3)
10454 4 => True, -- End_Label (Node4)
10455 5 => True), -- Exception_Handlers (List5)
10457 N_Exception_Handler =>
10458 (1 => False, -- Local_Raise_Statements (Elist1)
10459 2 => True, -- Choice_Parameter (Node2)
10460 3 => True, -- Statements (List3)
10461 4 => True, -- Exception_Choices (List4)
10462 5 => False), -- Exception_Label (Node5)
10464 N_Raise_Statement =>
10465 (1 => False, -- unused
10466 2 => True, -- Name (Node2)
10467 3 => True, -- Expression (Node3)
10468 4 => False, -- unused
10469 5 => False), -- unused
10471 N_Generic_Subprogram_Declaration =>
10472 (1 => True, -- Specification (Node1)
10473 2 => True, -- Generic_Formal_Declarations (List2)
10474 3 => False, -- unused
10475 4 => False, -- Parent_Spec (Node4-Sem)
10476 5 => False), -- Corresponding_Body (Node5-Sem)
10478 N_Generic_Package_Declaration =>
10479 (1 => True, -- Specification (Node1)
10480 2 => True, -- Generic_Formal_Declarations (List2)
10481 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10482 4 => False, -- Parent_Spec (Node4-Sem)
10483 5 => False), -- Corresponding_Body (Node5-Sem)
10485 N_Package_Instantiation =>
10486 (1 => True, -- Defining_Unit_Name (Node1)
10487 2 => True, -- Name (Node2)
10488 3 => True, -- Generic_Associations (List3)
10489 4 => False, -- Parent_Spec (Node4-Sem)
10490 5 => False), -- Instance_Spec (Node5-Sem)
10492 N_Procedure_Instantiation =>
10493 (1 => True, -- Defining_Unit_Name (Node1)
10494 2 => True, -- Name (Node2)
10495 3 => True, -- Generic_Associations (List3)
10496 4 => False, -- Parent_Spec (Node4-Sem)
10497 5 => False), -- Instance_Spec (Node5-Sem)
10499 N_Function_Instantiation =>
10500 (1 => True, -- Defining_Unit_Name (Node1)
10501 2 => True, -- Name (Node2)
10502 3 => True, -- Generic_Associations (List3)
10503 4 => False, -- Parent_Spec (Node4-Sem)
10504 5 => False), -- Instance_Spec (Node5-Sem)
10506 N_Generic_Association =>
10507 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10508 2 => True, -- Selector_Name (Node2)
10509 3 => False, -- unused
10510 4 => False, -- unused
10511 5 => False), -- unused
10513 N_Formal_Object_Declaration =>
10514 (1 => True, -- Defining_Identifier (Node1)
10515 2 => False, -- unused
10516 3 => True, -- Access_Definition (Node3)
10517 4 => True, -- Subtype_Mark (Node4)
10518 5 => True), -- Default_Expression (Node5)
10520 N_Formal_Type_Declaration =>
10521 (1 => True, -- Defining_Identifier (Node1)
10522 2 => False, -- unused
10523 3 => True, -- Formal_Type_Definition (Node3)
10524 4 => True, -- Discriminant_Specifications (List4)
10525 5 => False), -- unused
10527 N_Formal_Private_Type_Definition =>
10528 (1 => False, -- unused
10529 2 => False, -- unused
10530 3 => False, -- unused
10531 4 => False, -- unused
10532 5 => False), -- unused
10534 N_Formal_Derived_Type_Definition =>
10535 (1 => False, -- unused
10536 2 => True, -- Interface_List (List2)
10537 3 => False, -- unused
10538 4 => True, -- Subtype_Mark (Node4)
10539 5 => False), -- unused
10541 N_Formal_Discrete_Type_Definition =>
10542 (1 => False, -- unused
10543 2 => False, -- unused
10544 3 => False, -- unused
10545 4 => False, -- unused
10546 5 => False), -- unused
10548 N_Formal_Signed_Integer_Type_Definition =>
10549 (1 => False, -- unused
10550 2 => False, -- unused
10551 3 => False, -- unused
10552 4 => False, -- unused
10553 5 => False), -- unused
10555 N_Formal_Modular_Type_Definition =>
10556 (1 => False, -- unused
10557 2 => False, -- unused
10558 3 => False, -- unused
10559 4 => False, -- unused
10560 5 => False), -- unused
10562 N_Formal_Floating_Point_Definition =>
10563 (1 => False, -- unused
10564 2 => False, -- unused
10565 3 => False, -- unused
10566 4 => False, -- unused
10567 5 => False), -- unused
10569 N_Formal_Ordinary_Fixed_Point_Definition =>
10570 (1 => False, -- unused
10571 2 => False, -- unused
10572 3 => False, -- unused
10573 4 => False, -- unused
10574 5 => False), -- unused
10576 N_Formal_Decimal_Fixed_Point_Definition =>
10577 (1 => False, -- unused
10578 2 => False, -- unused
10579 3 => False, -- unused
10580 4 => False, -- unused
10581 5 => False), -- unused
10583 N_Formal_Concrete_Subprogram_Declaration =>
10584 (1 => True, -- Specification (Node1)
10585 2 => True, -- Default_Name (Node2)
10586 3 => False, -- unused
10587 4 => False, -- unused
10588 5 => False), -- unused
10590 N_Formal_Abstract_Subprogram_Declaration =>
10591 (1 => True, -- Specification (Node1)
10592 2 => True, -- Default_Name (Node2)
10593 3 => False, -- unused
10594 4 => False, -- unused
10595 5 => False), -- unused
10597 N_Formal_Package_Declaration =>
10598 (1 => True, -- Defining_Identifier (Node1)
10599 2 => True, -- Name (Node2)
10600 3 => True, -- Generic_Associations (List3)
10601 4 => False, -- unused
10602 5 => False), -- Instance_Spec (Node5-Sem)
10604 N_Attribute_Definition_Clause =>
10605 (1 => True, -- Chars (Name1)
10606 2 => True, -- Name (Node2)
10607 3 => True, -- Expression (Node3)
10608 4 => False, -- unused
10609 5 => False), -- Next_Rep_Item (Node5-Sem)
10611 N_Enumeration_Representation_Clause =>
10612 (1 => True, -- Identifier (Node1)
10613 2 => False, -- unused
10614 3 => True, -- Array_Aggregate (Node3)
10615 4 => False, -- unused
10616 5 => False), -- Next_Rep_Item (Node5-Sem)
10618 N_Record_Representation_Clause =>
10619 (1 => True, -- Identifier (Node1)
10620 2 => True, -- Mod_Clause (Node2)
10621 3 => True, -- Component_Clauses (List3)
10622 4 => False, -- unused
10623 5 => False), -- Next_Rep_Item (Node5-Sem)
10625 N_Component_Clause =>
10626 (1 => True, -- Component_Name (Node1)
10627 2 => True, -- Position (Node2)
10628 3 => True, -- First_Bit (Node3)
10629 4 => True, -- Last_Bit (Node4)
10630 5 => False), -- unused
10632 N_Code_Statement =>
10633 (1 => False, -- unused
10634 2 => False, -- unused
10635 3 => True, -- Expression (Node3)
10636 4 => False, -- unused
10637 5 => False), -- unused
10639 N_Op_Rotate_Left =>
10640 (1 => True, -- Chars (Name1)
10641 2 => True, -- Left_Opnd (Node2)
10642 3 => True, -- Right_Opnd (Node3)
10643 4 => False, -- Entity (Node4-Sem)
10644 5 => False), -- Etype (Node5-Sem)
10646 N_Op_Rotate_Right =>
10647 (1 => True, -- Chars (Name1)
10648 2 => True, -- Left_Opnd (Node2)
10649 3 => True, -- Right_Opnd (Node3)
10650 4 => False, -- Entity (Node4-Sem)
10651 5 => False), -- Etype (Node5-Sem)
10654 (1 => True, -- Chars (Name1)
10655 2 => True, -- Left_Opnd (Node2)
10656 3 => True, -- Right_Opnd (Node3)
10657 4 => False, -- Entity (Node4-Sem)
10658 5 => False), -- Etype (Node5-Sem)
10660 N_Op_Shift_Right_Arithmetic =>
10661 (1 => True, -- Chars (Name1)
10662 2 => True, -- Left_Opnd (Node2)
10663 3 => True, -- Right_Opnd (Node3)
10664 4 => False, -- Entity (Node4-Sem)
10665 5 => False), -- Etype (Node5-Sem)
10667 N_Op_Shift_Right =>
10668 (1 => True, -- Chars (Name1)
10669 2 => True, -- Left_Opnd (Node2)
10670 3 => True, -- Right_Opnd (Node3)
10671 4 => False, -- Entity (Node4-Sem)
10672 5 => False), -- Etype (Node5-Sem)
10674 N_Delta_Constraint =>
10675 (1 => False, -- unused
10676 2 => False, -- unused
10677 3 => True, -- Delta_Expression (Node3)
10678 4 => True, -- Range_Constraint (Node4)
10679 5 => False), -- unused
10682 (1 => True, -- Identifier (Node1)
10683 2 => False, -- unused
10684 3 => True, -- Expression (Node3)
10685 4 => False, -- unused
10686 5 => False), -- unused
10689 (1 => False, -- unused
10690 2 => False, -- unused
10691 3 => True, -- Expression (Node3)
10692 4 => True, -- Pragmas_Before (List4)
10693 5 => False), -- unused
10695 N_Conditional_Expression =>
10696 (1 => True, -- Expressions (List1)
10697 2 => False, -- Then_Actions (List2-Sem)
10698 3 => False, -- Else_Actions (List3-Sem)
10699 4 => False, -- unused
10700 5 => False), -- Etype (Node5-Sem)
10703 (1 => True, -- Chars (Name1)
10704 2 => True, -- Selector_Name (Node2)
10705 3 => True, -- Prefix (Node3)
10706 4 => False, -- Entity (Node4-Sem)
10707 5 => False), -- Etype (Node5-Sem)
10709 N_Free_Statement =>
10710 (1 => False, -- Storage_Pool (Node1-Sem)
10711 2 => False, -- Procedure_To_Call (Node2-Sem)
10712 3 => True, -- Expression (Node3)
10713 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10714 5 => False), -- unused
10717 (1 => True, -- Actions (List1)
10718 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10719 3 => False, -- TSS_Elist (Elist3-Sem)
10720 4 => False, -- Entity (Node4-Sem)
10721 5 => False), -- First_Subtype_Link (Node5-Sem)
10723 N_Implicit_Label_Declaration =>
10724 (1 => True, -- Defining_Identifier (Node1)
10725 2 => False, -- Label_Construct (Node2-Sem)
10726 3 => False, -- unused
10727 4 => False, -- unused
10728 5 => False), -- unused
10730 N_Itype_Reference =>
10731 (1 => False, -- Itype (Node1-Sem)
10732 2 => False, -- unused
10733 3 => False, -- unused
10734 4 => False, -- unused
10735 5 => False), -- unused
10737 N_Raise_Constraint_Error =>
10738 (1 => True, -- Condition (Node1)
10739 2 => False, -- unused
10740 3 => True, -- Reason (Uint3)
10741 4 => False, -- unused
10742 5 => False), -- Etype (Node5-Sem)
10744 N_Raise_Program_Error =>
10745 (1 => True, -- Condition (Node1)
10746 2 => False, -- unused
10747 3 => True, -- Reason (Uint3)
10748 4 => False, -- unused
10749 5 => False), -- Etype (Node5-Sem)
10751 N_Raise_Storage_Error =>
10752 (1 => True, -- Condition (Node1)
10753 2 => False, -- unused
10754 3 => True, -- Reason (Uint3)
10755 4 => False, -- unused
10756 5 => False), -- Etype (Node5-Sem)
10758 N_Push_Constraint_Error_Label =>
10759 (1 => False, -- unused
10760 2 => False, -- unused
10761 3 => False, -- unused
10762 4 => False, -- unused
10763 5 => False), -- unused
10765 N_Push_Program_Error_Label =>
10766 (1 => False, -- Exception_Label
10767 2 => False, -- unused
10768 3 => False, -- unused
10769 4 => False, -- unused
10770 5 => False), -- Exception_Label
10772 N_Push_Storage_Error_Label =>
10773 (1 => False, -- Exception_Label
10774 2 => False, -- unused
10775 3 => False, -- unused
10776 4 => False, -- unused
10777 5 => False), -- Exception_Label
10779 N_Pop_Constraint_Error_Label =>
10780 (1 => False, -- unused
10781 2 => False, -- unused
10782 3 => False, -- unused
10783 4 => False, -- unused
10784 5 => False), -- unused
10786 N_Pop_Program_Error_Label =>
10787 (1 => False, -- unused
10788 2 => False, -- unused
10789 3 => False, -- unused
10790 4 => False, -- unused
10791 5 => False), -- unused
10793 N_Pop_Storage_Error_Label =>
10794 (1 => False, -- unused
10795 2 => False, -- unused
10796 3 => False, -- unused
10797 4 => False, -- unused
10798 5 => False), -- unused
10801 (1 => False, -- unused
10802 2 => False, -- unused
10803 3 => True, -- Prefix (Node3)
10804 4 => False, -- unused
10805 5 => False), -- Etype (Node5-Sem)
10807 N_Subprogram_Info =>
10808 (1 => True, -- Identifier (Node1)
10809 2 => False, -- unused
10810 3 => False, -- unused
10811 4 => False, -- unused
10812 5 => False), -- Etype (Node5-Sem)
10814 N_Unchecked_Expression =>
10815 (1 => False, -- unused
10816 2 => False, -- unused
10817 3 => True, -- Expression (Node3)
10818 4 => False, -- unused
10819 5 => False), -- Etype (Node5-Sem)
10821 N_Unchecked_Type_Conversion =>
10822 (1 => False, -- unused
10823 2 => False, -- unused
10824 3 => True, -- Expression (Node3)
10825 4 => True, -- Subtype_Mark (Node4)
10826 5 => False), -- Etype (Node5-Sem)
10828 N_Validate_Unchecked_Conversion =>
10829 (1 => False, -- Source_Type (Node1-Sem)
10830 2 => False, -- Target_Type (Node2-Sem)
10831 3 => False, -- unused
10832 4 => False, -- unused
10833 5 => False), -- unused
10835 -- End of inserted output from makeisf program
10837 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10838 -- field for debugging purposes, they are not really syntactic fields, so
10839 -- we mark all fields as unused.
10842 (1 => False, -- unused
10843 2 => False, -- unused
10844 3 => False, -- unused
10845 4 => False, -- unused
10846 5 => False), -- unused
10849 (1 => False, -- unused
10850 2 => False, -- unused
10851 3 => False, -- unused
10852 4 => False, -- unused
10853 5 => False), -- unused
10855 N_Unused_At_Start =>
10856 (1 => False, -- unused
10857 2 => False, -- unused
10858 3 => False, -- unused
10859 4 => False, -- unused
10860 5 => False), -- unused
10863 (1 => False, -- unused
10864 2 => False, -- unused
10865 3 => False, -- unused
10866 4 => False, -- unused
10867 5 => False)); -- unused
10869 --------------------
10870 -- Inline Pragmas --
10871 --------------------
10873 pragma Inline (ABE_Is_Certain);
10874 pragma Inline (Abort_Present);
10875 pragma Inline (Abortable_Part);
10876 pragma Inline (Abstract_Present);
10877 pragma Inline (Accept_Handler_Records);
10878 pragma Inline (Accept_Statement);
10879 pragma Inline (Access_Definition);
10880 pragma Inline (Access_To_Subprogram_Definition);
10881 pragma Inline (Access_Types_To_Process);
10882 pragma Inline (Actions);
10883 pragma Inline (Activation_Chain_Entity);
10884 pragma Inline (Acts_As_Spec);
10885 pragma Inline (Actual_Designated_Subtype);
10886 pragma Inline (Address_Warning_Posted);
10887 pragma Inline (Aggregate_Bounds);
10888 pragma Inline (Aliased_Present);
10889 pragma Inline (All_Others);
10890 pragma Inline (All_Present);
10891 pragma Inline (Alternatives);
10892 pragma Inline (Ancestor_Part);
10893 pragma Inline (Array_Aggregate);
10894 pragma Inline (Assignment_OK);
10895 pragma Inline (Associated_Node);
10896 pragma Inline (At_End_Proc);
10897 pragma Inline (Attribute_Name);
10898 pragma Inline (Aux_Decls_Node);
10899 pragma Inline (Backwards_OK);
10900 pragma Inline (Bad_Is_Detected);
10901 pragma Inline (Body_To_Inline);
10902 pragma Inline (Body_Required);
10903 pragma Inline (By_Ref);
10904 pragma Inline (Box_Present);
10905 pragma Inline (Char_Literal_Value);
10906 pragma Inline (Chars);
10907 pragma Inline (Check_Address_Alignment);
10908 pragma Inline (Choice_Parameter);
10909 pragma Inline (Choices);
10910 pragma Inline (Coextensions);
10911 pragma Inline (Comes_From_Extended_Return_Statement);
10912 pragma Inline (Compile_Time_Known_Aggregate);
10913 pragma Inline (Component_Associations);
10914 pragma Inline (Component_Clauses);
10915 pragma Inline (Component_Definition);
10916 pragma Inline (Component_Items);
10917 pragma Inline (Component_List);
10918 pragma Inline (Component_Name);
10919 pragma Inline (Condition);
10920 pragma Inline (Condition_Actions);
10921 pragma Inline (Config_Pragmas);
10922 pragma Inline (Constant_Present);
10923 pragma Inline (Constraint);
10924 pragma Inline (Constraints);
10925 pragma Inline (Context_Installed);
10926 pragma Inline (Context_Items);
10927 pragma Inline (Controlling_Argument);
10928 pragma Inline (Conversion_OK);
10929 pragma Inline (Corresponding_Body);
10930 pragma Inline (Corresponding_Formal_Spec);
10931 pragma Inline (Corresponding_Generic_Association);
10932 pragma Inline (Corresponding_Integer_Value);
10933 pragma Inline (Corresponding_Spec);
10934 pragma Inline (Corresponding_Stub);
10935 pragma Inline (Dcheck_Function);
10936 pragma Inline (Debug_Statement);
10937 pragma Inline (Declarations);
10938 pragma Inline (Default_Expression);
10939 pragma Inline (Default_Name);
10940 pragma Inline (Defining_Identifier);
10941 pragma Inline (Defining_Unit_Name);
10942 pragma Inline (Delay_Alternative);
10943 pragma Inline (Delay_Statement);
10944 pragma Inline (Delta_Expression);
10945 pragma Inline (Digits_Expression);
10946 pragma Inline (Discr_Check_Funcs_Built);
10947 pragma Inline (Discrete_Choices);
10948 pragma Inline (Discrete_Range);
10949 pragma Inline (Discrete_Subtype_Definition);
10950 pragma Inline (Discrete_Subtype_Definitions);
10951 pragma Inline (Discriminant_Specifications);
10952 pragma Inline (Discriminant_Type);
10953 pragma Inline (Do_Accessibility_Check);
10954 pragma Inline (Do_Discriminant_Check);
10955 pragma Inline (Do_Length_Check);
10956 pragma Inline (Do_Division_Check);
10957 pragma Inline (Do_Overflow_Check);
10958 pragma Inline (Do_Range_Check);
10959 pragma Inline (Do_Storage_Check);
10960 pragma Inline (Do_Tag_Check);
10961 pragma Inline (Elaborate_Present);
10962 pragma Inline (Elaborate_All_Desirable);
10963 pragma Inline (Elaborate_All_Present);
10964 pragma Inline (Elaborate_Desirable);
10965 pragma Inline (Elaboration_Boolean);
10966 pragma Inline (Else_Actions);
10967 pragma Inline (Else_Statements);
10968 pragma Inline (Elsif_Parts);
10969 pragma Inline (Enclosing_Variant);
10970 pragma Inline (End_Label);
10971 pragma Inline (End_Span);
10972 pragma Inline (Entity);
10973 pragma Inline (Entity_Or_Associated_Node);
10974 pragma Inline (Entry_Body_Formal_Part);
10975 pragma Inline (Entry_Call_Alternative);
10976 pragma Inline (Entry_Call_Statement);
10977 pragma Inline (Entry_Direct_Name);
10978 pragma Inline (Entry_Index);
10979 pragma Inline (Entry_Index_Specification);
10980 pragma Inline (Etype);
10981 pragma Inline (Exception_Choices);
10982 pragma Inline (Exception_Handlers);
10983 pragma Inline (Exception_Junk);
10984 pragma Inline (Exception_Label);
10985 pragma Inline (Expansion_Delayed);
10986 pragma Inline (Explicit_Actual_Parameter);
10987 pragma Inline (Explicit_Generic_Actual_Parameter);
10988 pragma Inline (Expression);
10989 pragma Inline (Expressions);
10990 pragma Inline (First_Bit);
10991 pragma Inline (First_Inlined_Subprogram);
10992 pragma Inline (First_Name);
10993 pragma Inline (First_Named_Actual);
10994 pragma Inline (First_Real_Statement);
10995 pragma Inline (First_Subtype_Link);
10996 pragma Inline (Float_Truncate);
10997 pragma Inline (Formal_Type_Definition);
10998 pragma Inline (Forwards_OK);
10999 pragma Inline (From_At_End);
11000 pragma Inline (From_At_Mod);
11001 pragma Inline (From_Default);
11002 pragma Inline (Generic_Associations);
11003 pragma Inline (Generic_Formal_Declarations);
11004 pragma Inline (Generic_Parent);
11005 pragma Inline (Generic_Parent_Type);
11006 pragma Inline (Handled_Statement_Sequence);
11007 pragma Inline (Handler_List_Entry);
11008 pragma Inline (Has_Created_Identifier);
11009 pragma Inline (Has_Dynamic_Length_Check);
11010 pragma Inline (Has_Dynamic_Range_Check);
11011 pragma Inline (Has_Init_Expression);
11012 pragma Inline (Has_Local_Raise);
11013 pragma Inline (Has_Self_Reference);
11014 pragma Inline (Has_No_Elaboration_Code);
11015 pragma Inline (Has_Priority_Pragma);
11016 pragma Inline (Has_Private_View);
11017 pragma Inline (Has_Relative_Deadline_Pragma);
11018 pragma Inline (Has_Storage_Size_Pragma);
11019 pragma Inline (Has_Task_Info_Pragma);
11020 pragma Inline (Has_Task_Name_Pragma);
11021 pragma Inline (Has_Wide_Character);
11022 pragma Inline (Hidden_By_Use_Clause);
11023 pragma Inline (High_Bound);
11024 pragma Inline (Identifier);
11025 pragma Inline (Implicit_With);
11026 pragma Inline (Interface_List);
11027 pragma Inline (Interface_Present);
11028 pragma Inline (Includes_Infinities);
11029 pragma Inline (In_Present);
11030 pragma Inline (Instance_Spec);
11031 pragma Inline (Intval);
11032 pragma Inline (Is_Asynchronous_Call_Block);
11033 pragma Inline (Is_Component_Left_Opnd);
11034 pragma Inline (Is_Component_Right_Opnd);
11035 pragma Inline (Is_Controlling_Actual);
11036 pragma Inline (Is_Dynamic_Coextension);
11037 pragma Inline (Is_Entry_Barrier_Function);
11038 pragma Inline (Is_Expanded_Build_In_Place_Call);
11039 pragma Inline (Is_Folded_In_Parser);
11040 pragma Inline (Is_In_Discriminant_Check);
11041 pragma Inline (Is_Machine_Number);
11042 pragma Inline (Is_Null_Loop);
11043 pragma Inline (Is_Overloaded);
11044 pragma Inline (Is_Power_Of_2_For_Shift);
11045 pragma Inline (Is_Protected_Subprogram_Body);
11046 pragma Inline (Is_Static_Coextension);
11047 pragma Inline (Is_Static_Expression);
11048 pragma Inline (Is_Subprogram_Descriptor);
11049 pragma Inline (Is_Task_Allocation_Block);
11050 pragma Inline (Is_Task_Master);
11051 pragma Inline (Iteration_Scheme);
11052 pragma Inline (Itype);
11053 pragma Inline (Kill_Range_Check);
11054 pragma Inline (Last_Bit);
11055 pragma Inline (Last_Name);
11056 pragma Inline (Library_Unit);
11057 pragma Inline (Label_Construct);
11058 pragma Inline (Left_Opnd);
11059 pragma Inline (Limited_View_Installed);
11060 pragma Inline (Limited_Present);
11061 pragma Inline (Literals);
11062 pragma Inline (Local_Raise_Not_OK);
11063 pragma Inline (Local_Raise_Statements);
11064 pragma Inline (Loop_Actions);
11065 pragma Inline (Loop_Parameter_Specification);
11066 pragma Inline (Low_Bound);
11067 pragma Inline (Mod_Clause);
11068 pragma Inline (More_Ids);
11069 pragma Inline (Must_Be_Byte_Aligned);
11070 pragma Inline (Must_Not_Freeze);
11071 pragma Inline (Must_Not_Override);
11072 pragma Inline (Must_Override);
11073 pragma Inline (Name);
11074 pragma Inline (Names);
11075 pragma Inline (Next_Entity);
11076 pragma Inline (Next_Named_Actual);
11077 pragma Inline (Next_Pragma);
11078 pragma Inline (Next_Rep_Item);
11079 pragma Inline (Next_Use_Clause);
11080 pragma Inline (No_Ctrl_Actions);
11081 pragma Inline (No_Elaboration_Check);
11082 pragma Inline (No_Entities_Ref_In_Spec);
11083 pragma Inline (No_Initialization);
11084 pragma Inline (No_Truncation);
11085 pragma Inline (Null_Present);
11086 pragma Inline (Null_Exclusion_Present);
11087 pragma Inline (Null_Exclusion_In_Return_Present);
11088 pragma Inline (Null_Record_Present);
11089 pragma Inline (Object_Definition);
11090 pragma Inline (Original_Discriminant);
11091 pragma Inline (Original_Entity);
11092 pragma Inline (Others_Discrete_Choices);
11093 pragma Inline (Out_Present);
11094 pragma Inline (Parameter_Associations);
11095 pragma Inline (Parameter_Specifications);
11096 pragma Inline (Parameter_List_Truncated);
11097 pragma Inline (Parameter_Type);
11098 pragma Inline (Parent_Spec);
11099 pragma Inline (PPC_Enabled);
11100 pragma Inline (Position);
11101 pragma Inline (Pragma_Argument_Associations);
11102 pragma Inline (Pragma_Identifier);
11103 pragma Inline (Pragmas_After);
11104 pragma Inline (Pragmas_Before);
11105 pragma Inline (Prefix);
11106 pragma Inline (Present_Expr);
11107 pragma Inline (Prev_Ids);
11108 pragma Inline (Print_In_Hex);
11109 pragma Inline (Private_Declarations);
11110 pragma Inline (Private_Present);
11111 pragma Inline (Procedure_To_Call);
11112 pragma Inline (Proper_Body);
11113 pragma Inline (Protected_Definition);
11114 pragma Inline (Protected_Present);
11115 pragma Inline (Raises_Constraint_Error);
11116 pragma Inline (Range_Constraint);
11117 pragma Inline (Range_Expression);
11118 pragma Inline (Real_Range_Specification);
11119 pragma Inline (Realval);
11120 pragma Inline (Reason);
11121 pragma Inline (Record_Extension_Part);
11122 pragma Inline (Redundant_Use);
11123 pragma Inline (Renaming_Exception);
11124 pragma Inline (Result_Definition);
11125 pragma Inline (Return_Object_Declarations);
11126 pragma Inline (Return_Statement_Entity);
11127 pragma Inline (Reverse_Present);
11128 pragma Inline (Right_Opnd);
11129 pragma Inline (Rounded_Result);
11130 pragma Inline (Scope);
11131 pragma Inline (Select_Alternatives);
11132 pragma Inline (Selector_Name);
11133 pragma Inline (Selector_Names);
11134 pragma Inline (Shift_Count_OK);
11135 pragma Inline (Source_Type);
11136 pragma Inline (Specification);
11137 pragma Inline (Statements);
11138 pragma Inline (Static_Processing_OK);
11139 pragma Inline (Storage_Pool);
11140 pragma Inline (Strval);
11141 pragma Inline (Subtype_Indication);
11142 pragma Inline (Subtype_Mark);
11143 pragma Inline (Subtype_Marks);
11144 pragma Inline (Suppress_Loop_Warnings);
11145 pragma Inline (Synchronized_Present);
11146 pragma Inline (Tagged_Present);
11147 pragma Inline (Target_Type);
11148 pragma Inline (Task_Definition);
11149 pragma Inline (Task_Present);
11150 pragma Inline (Then_Actions);
11151 pragma Inline (Then_Statements);
11152 pragma Inline (Triggering_Alternative);
11153 pragma Inline (Triggering_Statement);
11154 pragma Inline (Treat_Fixed_As_Integer);
11155 pragma Inline (TSS_Elist);
11156 pragma Inline (Type_Definition);
11157 pragma Inline (Unit);
11158 pragma Inline (Unknown_Discriminants_Present);
11159 pragma Inline (Unreferenced_In_Spec);
11160 pragma Inline (Variant_Part);
11161 pragma Inline (Variants);
11162 pragma Inline (Visible_Declarations);
11163 pragma Inline (Was_Originally_Stub);
11164 pragma Inline (Zero_Cost_Handling);
11166 pragma Inline (Set_ABE_Is_Certain);
11167 pragma Inline (Set_Abort_Present);
11168 pragma Inline (Set_Abortable_Part);
11169 pragma Inline (Set_Abstract_Present);
11170 pragma Inline (Set_Accept_Handler_Records);
11171 pragma Inline (Set_Accept_Statement);
11172 pragma Inline (Set_Access_Definition);
11173 pragma Inline (Set_Access_To_Subprogram_Definition);
11174 pragma Inline (Set_Access_Types_To_Process);
11175 pragma Inline (Set_Actions);
11176 pragma Inline (Set_Activation_Chain_Entity);
11177 pragma Inline (Set_Acts_As_Spec);
11178 pragma Inline (Set_Actual_Designated_Subtype);
11179 pragma Inline (Set_Address_Warning_Posted);
11180 pragma Inline (Set_Aggregate_Bounds);
11181 pragma Inline (Set_Aliased_Present);
11182 pragma Inline (Set_All_Others);
11183 pragma Inline (Set_All_Present);
11184 pragma Inline (Set_Alternatives);
11185 pragma Inline (Set_Ancestor_Part);
11186 pragma Inline (Set_Array_Aggregate);
11187 pragma Inline (Set_Assignment_OK);
11188 pragma Inline (Set_Associated_Node);
11189 pragma Inline (Set_At_End_Proc);
11190 pragma Inline (Set_Attribute_Name);
11191 pragma Inline (Set_Aux_Decls_Node);
11192 pragma Inline (Set_Backwards_OK);
11193 pragma Inline (Set_Bad_Is_Detected);
11194 pragma Inline (Set_Body_To_Inline);
11195 pragma Inline (Set_Body_Required);
11196 pragma Inline (Set_By_Ref);
11197 pragma Inline (Set_Box_Present);
11198 pragma Inline (Set_Char_Literal_Value);
11199 pragma Inline (Set_Chars);
11200 pragma Inline (Set_Check_Address_Alignment);
11201 pragma Inline (Set_Choice_Parameter);
11202 pragma Inline (Set_Choices);
11203 pragma Inline (Set_Coextensions);
11204 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11205 pragma Inline (Set_Compile_Time_Known_Aggregate);
11206 pragma Inline (Set_Component_Associations);
11207 pragma Inline (Set_Component_Clauses);
11208 pragma Inline (Set_Component_Definition);
11209 pragma Inline (Set_Component_Items);
11210 pragma Inline (Set_Component_List);
11211 pragma Inline (Set_Component_Name);
11212 pragma Inline (Set_Condition);
11213 pragma Inline (Set_Condition_Actions);
11214 pragma Inline (Set_Config_Pragmas);
11215 pragma Inline (Set_Constant_Present);
11216 pragma Inline (Set_Constraint);
11217 pragma Inline (Set_Constraints);
11218 pragma Inline (Set_Context_Installed);
11219 pragma Inline (Set_Context_Items);
11220 pragma Inline (Set_Controlling_Argument);
11221 pragma Inline (Set_Conversion_OK);
11222 pragma Inline (Set_Corresponding_Body);
11223 pragma Inline (Set_Corresponding_Formal_Spec);
11224 pragma Inline (Set_Corresponding_Generic_Association);
11225 pragma Inline (Set_Corresponding_Integer_Value);
11226 pragma Inline (Set_Corresponding_Spec);
11227 pragma Inline (Set_Corresponding_Stub);
11228 pragma Inline (Set_Dcheck_Function);
11229 pragma Inline (Set_Debug_Statement);
11230 pragma Inline (Set_Declarations);
11231 pragma Inline (Set_Default_Expression);
11232 pragma Inline (Set_Default_Name);
11233 pragma Inline (Set_Defining_Identifier);
11234 pragma Inline (Set_Defining_Unit_Name);
11235 pragma Inline (Set_Delay_Alternative);
11236 pragma Inline (Set_Delay_Statement);
11237 pragma Inline (Set_Delta_Expression);
11238 pragma Inline (Set_Digits_Expression);
11239 pragma Inline (Set_Discr_Check_Funcs_Built);
11240 pragma Inline (Set_Discrete_Choices);
11241 pragma Inline (Set_Discrete_Range);
11242 pragma Inline (Set_Discrete_Subtype_Definition);
11243 pragma Inline (Set_Discrete_Subtype_Definitions);
11244 pragma Inline (Set_Discriminant_Specifications);
11245 pragma Inline (Set_Discriminant_Type);
11246 pragma Inline (Set_Do_Accessibility_Check);
11247 pragma Inline (Set_Do_Discriminant_Check);
11248 pragma Inline (Set_Do_Length_Check);
11249 pragma Inline (Set_Do_Division_Check);
11250 pragma Inline (Set_Do_Overflow_Check);
11251 pragma Inline (Set_Do_Range_Check);
11252 pragma Inline (Set_Do_Storage_Check);
11253 pragma Inline (Set_Do_Tag_Check);
11254 pragma Inline (Set_Elaborate_Present);
11255 pragma Inline (Set_Elaborate_All_Desirable);
11256 pragma Inline (Set_Elaborate_All_Present);
11257 pragma Inline (Set_Elaborate_Desirable);
11258 pragma Inline (Set_Elaboration_Boolean);
11259 pragma Inline (Set_Else_Actions);
11260 pragma Inline (Set_Else_Statements);
11261 pragma Inline (Set_Elsif_Parts);
11262 pragma Inline (Set_Enclosing_Variant);
11263 pragma Inline (Set_End_Label);
11264 pragma Inline (Set_End_Span);
11265 pragma Inline (Set_Entity);
11266 pragma Inline (Set_Entry_Body_Formal_Part);
11267 pragma Inline (Set_Entry_Call_Alternative);
11268 pragma Inline (Set_Entry_Call_Statement);
11269 pragma Inline (Set_Entry_Direct_Name);
11270 pragma Inline (Set_Entry_Index);
11271 pragma Inline (Set_Entry_Index_Specification);
11272 pragma Inline (Set_Etype);
11273 pragma Inline (Set_Exception_Choices);
11274 pragma Inline (Set_Exception_Handlers);
11275 pragma Inline (Set_Exception_Junk);
11276 pragma Inline (Set_Exception_Label);
11277 pragma Inline (Set_Expansion_Delayed);
11278 pragma Inline (Set_Explicit_Actual_Parameter);
11279 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11280 pragma Inline (Set_Expression);
11281 pragma Inline (Set_Expressions);
11282 pragma Inline (Set_First_Bit);
11283 pragma Inline (Set_First_Inlined_Subprogram);
11284 pragma Inline (Set_First_Name);
11285 pragma Inline (Set_First_Named_Actual);
11286 pragma Inline (Set_First_Real_Statement);
11287 pragma Inline (Set_First_Subtype_Link);
11288 pragma Inline (Set_Float_Truncate);
11289 pragma Inline (Set_Formal_Type_Definition);
11290 pragma Inline (Set_Forwards_OK);
11291 pragma Inline (Set_From_At_End);
11292 pragma Inline (Set_From_At_Mod);
11293 pragma Inline (Set_From_Default);
11294 pragma Inline (Set_Generic_Associations);
11295 pragma Inline (Set_Generic_Formal_Declarations);
11296 pragma Inline (Set_Generic_Parent);
11297 pragma Inline (Set_Generic_Parent_Type);
11298 pragma Inline (Set_Handled_Statement_Sequence);
11299 pragma Inline (Set_Handler_List_Entry);
11300 pragma Inline (Set_Has_Created_Identifier);
11301 pragma Inline (Set_Has_Dynamic_Length_Check);
11302 pragma Inline (Set_Has_Init_Expression);
11303 pragma Inline (Set_Has_Local_Raise);
11304 pragma Inline (Set_Has_Dynamic_Range_Check);
11305 pragma Inline (Set_Has_No_Elaboration_Code);
11306 pragma Inline (Set_Has_Priority_Pragma);
11307 pragma Inline (Set_Has_Private_View);
11308 pragma Inline (Set_Has_Relative_Deadline_Pragma);
11309 pragma Inline (Set_Has_Storage_Size_Pragma);
11310 pragma Inline (Set_Has_Task_Info_Pragma);
11311 pragma Inline (Set_Has_Task_Name_Pragma);
11312 pragma Inline (Set_Has_Wide_Character);
11313 pragma Inline (Set_Hidden_By_Use_Clause);
11314 pragma Inline (Set_High_Bound);
11315 pragma Inline (Set_Identifier);
11316 pragma Inline (Set_Implicit_With);
11317 pragma Inline (Set_Includes_Infinities);
11318 pragma Inline (Set_Interface_List);
11319 pragma Inline (Set_Interface_Present);
11320 pragma Inline (Set_In_Present);
11321 pragma Inline (Set_Instance_Spec);
11322 pragma Inline (Set_Intval);
11323 pragma Inline (Set_Is_Asynchronous_Call_Block);
11324 pragma Inline (Set_Is_Component_Left_Opnd);
11325 pragma Inline (Set_Is_Component_Right_Opnd);
11326 pragma Inline (Set_Is_Controlling_Actual);
11327 pragma Inline (Set_Is_Dynamic_Coextension);
11328 pragma Inline (Set_Is_Entry_Barrier_Function);
11329 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11330 pragma Inline (Set_Is_Folded_In_Parser);
11331 pragma Inline (Set_Is_In_Discriminant_Check);
11332 pragma Inline (Set_Is_Machine_Number);
11333 pragma Inline (Set_Is_Null_Loop);
11334 pragma Inline (Set_Is_Overloaded);
11335 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11336 pragma Inline (Set_Is_Protected_Subprogram_Body);
11337 pragma Inline (Set_Has_Self_Reference);
11338 pragma Inline (Set_Is_Static_Coextension);
11339 pragma Inline (Set_Is_Static_Expression);
11340 pragma Inline (Set_Is_Subprogram_Descriptor);
11341 pragma Inline (Set_Is_Task_Allocation_Block);
11342 pragma Inline (Set_Is_Task_Master);
11343 pragma Inline (Set_Iteration_Scheme);
11344 pragma Inline (Set_Itype);
11345 pragma Inline (Set_Kill_Range_Check);
11346 pragma Inline (Set_Last_Bit);
11347 pragma Inline (Set_Last_Name);
11348 pragma Inline (Set_Library_Unit);
11349 pragma Inline (Set_Label_Construct);
11350 pragma Inline (Set_Left_Opnd);
11351 pragma Inline (Set_Limited_View_Installed);
11352 pragma Inline (Set_Limited_Present);
11353 pragma Inline (Set_Literals);
11354 pragma Inline (Set_Local_Raise_Not_OK);
11355 pragma Inline (Set_Local_Raise_Statements);
11356 pragma Inline (Set_Loop_Actions);
11357 pragma Inline (Set_Loop_Parameter_Specification);
11358 pragma Inline (Set_Low_Bound);
11359 pragma Inline (Set_Mod_Clause);
11360 pragma Inline (Set_More_Ids);
11361 pragma Inline (Set_Must_Be_Byte_Aligned);
11362 pragma Inline (Set_Must_Not_Freeze);
11363 pragma Inline (Set_Must_Not_Override);
11364 pragma Inline (Set_Must_Override);
11365 pragma Inline (Set_Name);
11366 pragma Inline (Set_Names);
11367 pragma Inline (Set_Next_Entity);
11368 pragma Inline (Set_Next_Named_Actual);
11369 pragma Inline (Set_Next_Pragma);
11370 pragma Inline (Set_Next_Rep_Item);
11371 pragma Inline (Set_Next_Use_Clause);
11372 pragma Inline (Set_No_Ctrl_Actions);
11373 pragma Inline (Set_No_Elaboration_Check);
11374 pragma Inline (Set_No_Entities_Ref_In_Spec);
11375 pragma Inline (Set_No_Initialization);
11376 pragma Inline (Set_No_Truncation);
11377 pragma Inline (Set_Null_Present);
11378 pragma Inline (Set_Null_Exclusion_Present);
11379 pragma Inline (Set_Null_Exclusion_In_Return_Present);
11380 pragma Inline (Set_Null_Record_Present);
11381 pragma Inline (Set_Object_Definition);
11382 pragma Inline (Set_Original_Discriminant);
11383 pragma Inline (Set_Original_Entity);
11384 pragma Inline (Set_Others_Discrete_Choices);
11385 pragma Inline (Set_Out_Present);
11386 pragma Inline (Set_Parameter_Associations);
11387 pragma Inline (Set_Parameter_Specifications);
11388 pragma Inline (Set_Parameter_List_Truncated);
11389 pragma Inline (Set_Parameter_Type);
11390 pragma Inline (Set_Parent_Spec);
11391 pragma Inline (Set_PPC_Enabled);
11392 pragma Inline (Set_Position);
11393 pragma Inline (Set_Pragma_Argument_Associations);
11394 pragma Inline (Set_Pragma_Identifier);
11395 pragma Inline (Set_Pragmas_After);
11396 pragma Inline (Set_Pragmas_Before);
11397 pragma Inline (Set_Prefix);
11398 pragma Inline (Set_Present_Expr);
11399 pragma Inline (Set_Prev_Ids);
11400 pragma Inline (Set_Print_In_Hex);
11401 pragma Inline (Set_Private_Declarations);
11402 pragma Inline (Set_Private_Present);
11403 pragma Inline (Set_Procedure_To_Call);
11404 pragma Inline (Set_Proper_Body);
11405 pragma Inline (Set_Protected_Definition);
11406 pragma Inline (Set_Protected_Present);
11407 pragma Inline (Set_Raises_Constraint_Error);
11408 pragma Inline (Set_Range_Constraint);
11409 pragma Inline (Set_Range_Expression);
11410 pragma Inline (Set_Real_Range_Specification);
11411 pragma Inline (Set_Realval);
11412 pragma Inline (Set_Reason);
11413 pragma Inline (Set_Record_Extension_Part);
11414 pragma Inline (Set_Redundant_Use);
11415 pragma Inline (Set_Renaming_Exception);
11416 pragma Inline (Set_Result_Definition);
11417 pragma Inline (Set_Return_Object_Declarations);
11418 pragma Inline (Set_Reverse_Present);
11419 pragma Inline (Set_Right_Opnd);
11420 pragma Inline (Set_Rounded_Result);
11421 pragma Inline (Set_Scope);
11422 pragma Inline (Set_Select_Alternatives);
11423 pragma Inline (Set_Selector_Name);
11424 pragma Inline (Set_Selector_Names);
11425 pragma Inline (Set_Shift_Count_OK);
11426 pragma Inline (Set_Source_Type);
11427 pragma Inline (Set_Specification);
11428 pragma Inline (Set_Statements);
11429 pragma Inline (Set_Static_Processing_OK);
11430 pragma Inline (Set_Storage_Pool);
11431 pragma Inline (Set_Strval);
11432 pragma Inline (Set_Subtype_Indication);
11433 pragma Inline (Set_Subtype_Mark);
11434 pragma Inline (Set_Subtype_Marks);
11435 pragma Inline (Set_Suppress_Loop_Warnings);
11436 pragma Inline (Set_Synchronized_Present);
11437 pragma Inline (Set_Tagged_Present);
11438 pragma Inline (Set_Target_Type);
11439 pragma Inline (Set_Task_Definition);
11440 pragma Inline (Set_Task_Present);
11441 pragma Inline (Set_Then_Actions);
11442 pragma Inline (Set_Then_Statements);
11443 pragma Inline (Set_Triggering_Alternative);
11444 pragma Inline (Set_Triggering_Statement);
11445 pragma Inline (Set_Treat_Fixed_As_Integer);
11446 pragma Inline (Set_TSS_Elist);
11447 pragma Inline (Set_Type_Definition);
11448 pragma Inline (Set_Unit);
11449 pragma Inline (Set_Unknown_Discriminants_Present);
11450 pragma Inline (Set_Unreferenced_In_Spec);
11451 pragma Inline (Set_Variant_Part);
11452 pragma Inline (Set_Variants);
11453 pragma Inline (Set_Visible_Declarations);
11454 pragma Inline (Set_Was_Originally_Stub);
11455 pragma Inline (Set_Zero_Cost_Handling);
11457 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11458 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11459 -- should refer to N_Simple_Return_Statement.