1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2013, 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 design, and is
37 -- 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 these places:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- In the body (sinfo), add entries to the access functions for all
90 -- its fields (except standard expression fields) to include the new
91 -- node in the checks.
92 -- Add an appropriate section to the case statement in sprint.adb
93 -- Add an appropriate section to the case statement in sem.adb
94 -- Add an appropriate section to the case statement in exp_util.adb
95 -- (Insert_Actions procedure)
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_eval.adb
98 -- For a subexpression, add an appropriate section to the case
99 -- statement in sem_res.adb
101 -- Finally, four utility programs must be run:
103 -- (Optional.) Run CSinfo to check that you have made the changes
104 -- consistently. It checks most of the rules given above. This utility
105 -- reads sinfo.ads and sinfo.adb and generates a report to standard
106 -- output. This step is optional because XSinfo runs CSinfo.
108 -- Run XSinfo to create sinfo.h, the corresponding C header. This
109 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
110 -- not need to read sinfo.adb, since the contents of the body are
111 -- algorithmically determinable from the spec.
113 -- Run XTreeprs to create treeprs.ads, an updated version of the module
114 -- that is used to drive the tree print routine. This utility reads (but
115 -- does not modify) treeprs.adt, the template that provides the basic
116 -- structure of the file, and then fills in the data from the comments
119 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
120 -- spec of the Nmake package which contains functions for constructing
123 -- The above steps are done automatically by the build scripts when you do
126 -- Note: sometime we could write a utility that actually generated the body
127 -- of sinfo from the spec instead of simply checking it, since, as noted
128 -- above, the contents of the body can be determined from the spec.
130 --------------------------------
131 -- Implicit Nodes in the Tree --
132 --------------------------------
134 -- Generally the structure of the tree very closely follows the grammar as
135 -- defined in the RM. However, certain nodes are omitted to save space and
136 -- simplify semantic processing. Two general classes of such omitted nodes
139 -- If the only possibilities for a non-terminal are one or more other
140 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
141 -- corresponding node is omitted from the tree, and the target construct
142 -- appears directly. For example, a real type definition is either
143 -- floating point definition or a fixed point definition. No explicit node
144 -- appears for real type definition. Instead either the floating point
145 -- definition or fixed point definition appears directly.
147 -- If a non-terminal corresponds to a list of some other non-terminal
148 -- (possibly with separating punctuation), then usually it is omitted from
149 -- the tree, and a list of components appears instead. For example,
150 -- sequence of statements does not appear explicitly in the tree. Instead
151 -- a list of statements appears directly.
153 -- Some additional cases of omitted nodes occur and are documented
154 -- individually. In particular, many nodes are omitted in the tree
155 -- generated for an expression.
157 -------------------------------------------
158 -- Handling of Defining Identifier Lists --
159 -------------------------------------------
161 -- In several declarative forms in the syntax, lists of defining
162 -- identifiers appear (object declarations, component declarations, number
163 -- declarations etc.)
165 -- The semantics of such statements are equivalent to a series of identical
166 -- declarations of single defining identifiers (except that conformance
167 -- checks require the same grouping of identifiers in the parameter case).
169 -- To simplify semantic processing, the parser breaks down such multiple
170 -- declaration cases into sequences of single declarations, duplicating
171 -- type and initialization information as required. The flags More_Ids and
172 -- Prev_Ids are used to record the original form of the source in the case
173 -- where the original source used a list of names, More_Ids being set on
174 -- all but the last name and Prev_Ids being set on all but the first name.
175 -- These flags are used to reconstruct the original source (e.g. in the
176 -- Sprint package), and also are included in the conformance checks, but
177 -- otherwise have no semantic significance.
179 -- Note: the reason that we use More_Ids and Prev_Ids rather than
180 -- First_Name and Last_Name flags is so that the flags are off in the
181 -- normal one identifier case, which minimizes tree print output.
183 -----------------------
184 -- Use of Node Lists --
185 -----------------------
187 -- With a few exceptions, if a construction of the form {non-terminal}
188 -- appears in the tree, lists are used in the corresponding tree node (see
189 -- package Nlists for handling of node lists). In this case a field of the
190 -- parent node points to a list of nodes for the non-terminal. The field
191 -- name for such fields has a plural name which always ends in "s". For
192 -- example, a case statement has a field Alternatives pointing to list of
193 -- case statement alternative nodes.
195 -- Only fields pointing to lists have names ending in "s", so generally the
196 -- structure is strongly typed, fields not ending in s point to single
197 -- nodes, and fields ending in s point to lists.
199 -- The following example shows how a traversal of a list is written. We
200 -- suppose here that Stmt points to a N_Case_Statement node which has a
201 -- list field called Alternatives:
203 -- Alt := First (Alternatives (Stmt));
204 -- while Present (Alt) loop
206 -- -- processing for case statement alternative Alt
208 -- Alt := Next (Alt);
211 -- The Present function tests for Empty, which in this case signals the end
212 -- of the list. First returns Empty immediately if the list is empty.
213 -- Present is defined in Atree, First and Next are defined in Nlists.
215 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216 -- contexts, which is handled as described in the previous section, and
217 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218 -- using the First_Name and Last_Name flags, as further detailed in the
219 -- description of the N_With_Clause node.
225 -- Pragmas can appear in many different context, but are not included in
226 -- the grammar. Still they must appear in the tree, so they can be properly
229 -- Two approaches are used. In some cases, an extra field is defined in an
230 -- appropriate node that contains a list of pragmas appearing in the
231 -- expected context. For example pragmas can appear before an
232 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
235 -- The other approach is to simply allow pragmas to appear in syntactic
236 -- lists where the grammar (of course) does not include the possibility.
237 -- For example, the Variants field of an N_Variant_Part node points to a
238 -- list that can contain both N_Pragma and N_Variant nodes.
240 -- To make processing easier in the latter case, the Nlists package
241 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243 -- ignoring all pragmas.
245 -- In the case of the variants list, we can either write:
247 -- Variant := First (Variants (N));
248 -- while Present (Variant) loop
250 -- Variant := Next (Variant);
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
258 -- Variant := Next_Non_Pragma (Variant);
261 -- In the first form of the loop, Variant can either be an N_Pragma or an
262 -- N_Variant node. In the second form, Variant can only be N_Variant since
263 -- all pragmas are skipped.
265 ---------------------
266 -- Optional Fields --
267 ---------------------
269 -- Fields which correspond to a section of the syntax enclosed in square
270 -- brackets are generally omitted (and the corresponding field set to Empty
271 -- for a node, or No_List for a list). The documentation of such fields
272 -- notes these cases. One exception to this rule occurs in the case of
273 -- possibly empty statement sequences (such as the sequence of statements
274 -- in an entry call alternative). Such cases appear in the syntax rules as
275 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276 -- statement sequences always contain an empty list (not No_List) if no
277 -- statements are present.
279 -- Note: the utility program that constructs the body and spec of the Nmake
280 -- package relies on the format of the comments to determine if a field
281 -- should have a default value in the corresponding make routine. The rule
282 -- is that if the first line of the description of the field contains the
283 -- string "(set to xxx if", then a default value of xxx is provided for
284 -- this field in the corresponding Make_yyy routine.
286 -----------------------------------
287 -- Note on Body/Spec Terminology --
288 -----------------------------------
290 -- In informal discussions about Ada, it is customary to refer to package
291 -- and subprogram specs and bodies. However, this is not technically
292 -- correct, what is normally referred to as a spec or specification is in
293 -- fact a package declaration or subprogram declaration. We are careful in
294 -- GNAT to use the correct terminology and in particular, the full word
295 -- specification is never used as an incorrect substitute for declaration.
296 -- The structure and terminology used in the tree also reflects the grammar
297 -- and thus uses declaration and specification in the technically correct
300 -- However, there are contexts in which the informal terminology is useful.
301 -- We have the word "body" to refer to the Interp_Etype declared by the
302 -- declaration of a unit body, and in some contexts we need similar term to
303 -- refer to the entity declared by the package or subprogram declaration,
304 -- and simply using declaration can be confusing since the body also has a
307 -- An example of such a context is the link between the package body and
308 -- its declaration. With_Declaration is confusing, since the package body
309 -- itself is a declaration.
311 -- To deal with this problem, we reserve the informal term Spec, i.e. the
312 -- popular abbreviation used in this context, to refer to the entity
313 -- declared by the package or subprogram declaration. So in the above
314 -- example case, the field in the body is called With_Spec.
316 -- Another important context for the use of the word Spec is in error
317 -- messages, where a hyper-correct use of declaration would be confusing to
318 -- a typical Ada programmer, and even for an expert programmer can cause
319 -- confusion since the body has a declaration as well.
323 -- Declaration always refers to the syntactic entity that is called
324 -- a declaration. In particular, subprogram declaration
325 -- and package declaration are used to describe the
326 -- syntactic entity that includes the semicolon.
328 -- Specification always refers to the syntactic entity that is called
329 -- a specification. In particular, the terms procedure
330 -- specification, function specification, package
331 -- specification, subprogram specification always refer
332 -- to the syntactic entity that has no semicolon.
334 -- Spec is an informal term, used to refer to the entity
335 -- that is declared by a task declaration, protected
336 -- declaration, generic declaration, subprogram
337 -- declaration or package declaration.
339 -- This convention is followed throughout the GNAT documentation
340 -- both internal and external, and in all error message text.
342 ------------------------
343 -- Internal Use Nodes --
344 ------------------------
346 -- These are Node_Kind settings used in the internal implementation which
347 -- are not logically part of the specification.
350 -- Completely unused entry at the start of the enumeration type. This
351 -- is inserted so that no legitimate value is zero, which helps to get
352 -- better debugging behavior, since zero is a likely uninitialized value).
355 -- Completely unused entry at the end of the enumeration type. This is
356 -- handy so that arrays with Node_Kind as the index type have an extra
357 -- entry at the end (see for example the use of the Pchar_Pos_Array in
358 -- Treepr, where the extra entry provides the limit value when dealing with
359 -- the last used entry in the array).
361 -----------------------------------------
362 -- Note on the settings of Sloc fields --
363 -----------------------------------------
365 -- The Sloc field of nodes that come from the source is set by the parser.
366 -- For internal nodes, and nodes generated during expansion the Sloc is
367 -- usually set in the call to the constructor for the node. In general the
368 -- Sloc value chosen for an internal node is the Sloc of the source node
369 -- whose processing is responsible for the expansion. For example, the Sloc
370 -- of an inherited primitive operation is the Sloc of the corresponding
371 -- derived type declaration.
373 -- For the nodes of a generic instantiation, the Sloc value is encoded to
374 -- represent both the original Sloc in the generic unit, and the Sloc of
375 -- the instantiation itself. See Sinput.ads for details.
377 -- Subprogram instances create two callable entities: one is the visible
378 -- subprogram instance, and the other is an anonymous subprogram nested
379 -- within a wrapper package that contains the renamings for the actuals.
380 -- Both of these entities have the Sloc of the defining entity in the
381 -- instantiation node. This simplifies some ASIS queries.
383 -----------------------
384 -- Field Definitions --
385 -----------------------
387 -- In the following node definitions, all fields, both syntactic and
388 -- semantic, are documented. The one exception is in the case of entities
389 -- (defining identifiers, character literals and operator symbols), where
390 -- the usage of the fields depends on the entity kind. Entity fields are
391 -- fully documented in the separate package Einfo.
393 -- In the node definitions, three common sets of fields are abbreviated to
394 -- save both space in the documentation, and also space in the string
395 -- (defined in Tree_Print_Strings) used to print trees. The following
396 -- abbreviations are used:
398 -- Note: the utility program that creates the Treeprs spec (in the file
399 -- xtreeprs.adb) knows about the special fields here, so it must be
400 -- modified if any change is made to these fields.
402 -- "plus fields for binary operator"
403 -- Chars (Name1) Name_Id for the operator
404 -- Left_Opnd (Node2) left operand expression
405 -- Right_Opnd (Node3) right operand expression
406 -- Entity (Node4-Sem) defining entity for operator
407 -- Associated_Node (Node4-Sem) for generic processing
408 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
409 -- Has_Private_View (Flag11-Sem) set in generic units.
411 -- "plus fields for unary operator"
412 -- Chars (Name1) Name_Id for the operator
413 -- Right_Opnd (Node3) right operand expression
414 -- Entity (Node4-Sem) defining entity for operator
415 -- Associated_Node (Node4-Sem) for generic processing
416 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
417 -- Has_Private_View (Flag11-Sem) set in generic units.
419 -- "plus fields for expression"
420 -- Paren_Count number of parentheses levels
421 -- Etype (Node5-Sem) type of the expression
422 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
423 -- Is_Static_Expression (Flag6-Sem) set for static expression
424 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
425 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
426 -- Do_Range_Check (Flag9-Sem) set if a range check needed
427 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
428 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
429 -- Assignment_OK (Flag15-Sem) set if modification is OK
430 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
432 -- Note: see under (EXPRESSION) for further details on the use of
433 -- the Paren_Count field to record the number of parentheses levels.
435 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
436 -- The actual definition of this type is given later (the reason for this
437 -- is that we want the descriptions ordered by logical chapter in the RM,
438 -- but the type definition is reordered to facilitate the definition of
439 -- some subtype ranges. The individual descriptions of the nodes show how
440 -- the various fields are used in each node kind, as well as providing
441 -- logical names for the fields. Functions and procedures are provided for
442 -- accessing and setting these fields using these logical names.
444 -----------------------
445 -- Gigi Restrictions --
446 -----------------------
448 -- The tree passed to Gigi is more restricted than the general tree form.
449 -- For example, as a result of expansion, most of the tasking nodes can
450 -- never appear. For each node to which either a complete or partial
451 -- restriction applies, a note entitled "Gigi restriction" appears which
452 -- documents the restriction.
454 -- Note that most of these restrictions apply only to trees generated when
455 -- code is being generated, since they involved expander actions that
462 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
463 -- and the analysis must generate a tree in a form that meets all ASIS
466 -- ASIS must be able to recover the original tree that corresponds to the
467 -- source. It relies heavily on Original_Node for this purpose, which as
468 -- described in Atree, records the history when a node is rewritten. ASIS
469 -- uses Original_Node to recover the original node before the Rewrite.
471 -- At least in ASIS mode (not really important in non-ASIS mode), when
472 -- N1 is rewritten as N2:
474 -- The subtree rooted by the original node N1 should be fully decorated,
475 -- i.e. all semantic fields noted in sinfo.ads should be set properly
476 -- and any referenced entities should be complete (with exceptions for
477 -- representation information, noted below).
479 -- For all the direct descendants of N1 (original node) their Parent
480 -- links should point not to N1, but to N2 (rewriting node).
482 -- The Parent links of rewritten nodes (N1 in this example) are set in
483 -- some cases (to point to the rewritten parent), but in other cases
484 -- they are set to Empty. This needs sorting out ??? It would be much
485 -- cleaner if they could always be set in the original node ???
487 -- Representation Information
489 -- For the purposes of the data description annex, the representation
490 -- information for source declared entities must be complete in the
493 -- This requires that the front end call the back end (gigi/gcc) in
494 -- a special "back annotate only" mode to obtain information on layout
495 -- from the back end.
497 -- For the purposes of this special "back annotate only" mode, the
498 -- requirements that would normally need to be met to generate code
499 -- are relaxed as follows:
501 -- Anonymous types need not have full representation information (e.g.
502 -- sizes need not be set for types where the front end would normally
503 -- set the sizes), since anonymous types can be ignored in this mode.
505 -- In this mode, gigi will see at least fragments of a fully annotated
506 -- unexpanded tree. This means that it will encounter nodes it does
507 -- not normally handle (such as stubs, task bodies etc). It should
508 -- simply ignore these nodes, since they are not relevant to the task
509 -- of back annotating representation information.
515 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
516 -- expansion is performed and the analysis must generate a tree in a
517 -- form that meets additional requirements.
519 -- This light expansion does two transformations of the tree that cannot
520 -- be postponed after semantic analysis:
522 -- 1. Replace object renamings by renamed object. This requires the
523 -- introduction of temporaries at the point of the renaming, which
524 -- must be properly analyzed.
526 -- 2. Fully qualify entity names. This is needed to generate suitable
527 -- local effects and call-graphs in ALI files, with the completely
528 -- qualified names (in particular the suffix to distinguish homonyms).
530 -- The tree after this light expansion should be fully analyzed
531 -- semantically, which sometimes requires the insertion of semantic
532 -- pre-analysis, for example for subprogram contracts and pragma
533 -- check/assert. In particular, all expression must have their proper type,
534 -- and semantic links should be set between tree nodes (partial to full
535 -- view, etc.) Some kinds of nodes should be either absent, or can be
536 -- ignored by the formal verification backend:
538 -- N_Object_Renaming_Declaration: can be ignored safely
539 -- N_Expression_Function: absent (rewritten)
540 -- N_Expression_With_Actions: absent (not generated)
542 -- SPARK cross-references are generated from the regular cross-references
543 -- (used for browsing and code understanding) and additional references
544 -- collected during semantic analysis, in particular on all dereferences.
545 -- These SPARK cross-references are output in a separate section of ALI
546 -- files, as described in spark_xrefs.adb. They are the basis for the
547 -- computation of data dependences in GNATprove. This implies that all
548 -- cross-references should be generated in this mode, even those that would
549 -- not make sense from a user point-of-view, and that cross-references that
550 -- do not lead to data dependences for subprograms can be safely ignored.
552 -----------------------
553 -- Check Flag Fields --
554 -----------------------
556 -- The following flag fields appear in expression nodes:
562 -- These three flags are always set by the front end during semantic
563 -- analysis, on expression nodes that may trigger the corresponding
564 -- check. The front end then inserts or not the check during expansion.
565 -- In particular, these flags should also be correctly set in ASIS mode
566 -- and GNATprove mode.
568 -- Note that this accounts for all nodes that trigger the corresponding
569 -- checks, except for range checks on subtype_indications, which may be
570 -- required to check that a range_constraint is compatible with the given
571 -- subtype (RM 3.2.2(11)).
573 -- The following flag fields appear in various nodes:
575 -- Do_Accessibility_Check
576 -- Do_Discriminant_Check
581 -- These flags are used in some specific cases by the front end, either
582 -- during semantic analysis or during expansion, and cannot be expected
583 -- to be set on all nodes that trigger the corresponding check.
585 ------------------------
586 -- Common Flag Fields --
587 ------------------------
589 -- The following flag fields appear in all nodes:
592 -- This flag is used to indicate that a node (and all its children have
593 -- been analyzed. It is used to avoid reanalysis of a node that has
594 -- already been analyzed, both for efficiency and functional correctness
598 -- This flag is set if the node comes directly from an explicit construct
599 -- in the source. It is normally on for any nodes built by the scanner or
600 -- parser from the source program, with the exception that in a few cases
601 -- the parser adds nodes to normalize the representation (in particular
602 -- a null statement is added to a package body if there is no begin/end
603 -- initialization section.
605 -- Most nodes inserted by the analyzer or expander are not considered
606 -- as coming from source, so the flag is off for such nodes. In a few
607 -- cases, the expander constructs nodes closely equivalent to nodes
608 -- from the source program (e.g. the allocator built for build-in-place
609 -- case), and the Comes_From_Source flag is deliberately set.
612 -- This flag is used to avoid multiple error messages being posted on or
613 -- referring to the same node. This flag is set if an error message
614 -- refers to a node or is posted on its source location, and has the
615 -- effect of inhibiting further messages involving this same node.
617 ------------------------------------
618 -- Description of Semantic Fields --
619 ------------------------------------
621 -- The meaning of the syntactic fields is generally clear from their names
622 -- without any further description, since the names are chosen to
623 -- correspond very closely to the syntax in the reference manual. This
624 -- section describes the usage of the semantic fields, which are used to
625 -- contain additional information determined during semantic analysis.
627 -- ABE_Is_Certain (Flag18-Sem)
628 -- This flag is set in an instantiation node or a call node is determined
629 -- to be sure to raise an ABE. This is used to trigger special handling
630 -- of such cases, particularly in the instantiation case where we avoid
631 -- instantiating the body if this flag is set. This flag is also present
632 -- in an N_Formal_Package_Declaration_Node since formal package
633 -- declarations are treated like instantiations, but it is always set to
634 -- False in this context.
636 -- Accept_Handler_Records (List5-Sem)
637 -- This field is present only in an N_Accept_Alternative node. It is used
638 -- to temporarily hold the exception handler records from an accept
639 -- statement in a selective accept. These exception handlers will
640 -- eventually be placed in the Handler_Records list of the procedure
641 -- built for this accept (see Expand_N_Selective_Accept procedure in
642 -- Exp_Ch9 for further details).
644 -- Access_Types_To_Process (Elist2-Sem)
645 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
646 -- Contains the list of access types which may require specific treatment
647 -- when the nature of the type completion is completely known. An example
648 -- of such treatment is the generation of the associated_final_chain.
650 -- Actions (List1-Sem)
651 -- This field contains a sequence of actions that are associated with the
652 -- node holding the field. See the individual node types for details of
653 -- how this field is used, as well as the description of the specific use
654 -- for a particular node type.
656 -- Activation_Chain_Entity (Node3-Sem)
657 -- This is used in tree nodes representing task activators (blocks,
658 -- subprogram bodies, package declarations, and task bodies). It is
659 -- initially Empty, and then gets set to point to the entity for the
660 -- declared Activation_Chain variable when the first task is declared.
661 -- When tasks are declared in the corresponding declarative region this
662 -- entity is located by name (its name is always _Chain) and the declared
663 -- tasks are added to the chain. Note that N_Extended_Return_Statement
664 -- does not have this attribute, although it does have an activation
665 -- chain. This chain is used to store the tasks temporarily, and is not
666 -- used for activating them. On successful completion of the return
667 -- statement, the tasks are moved to the caller's chain, and the caller
670 -- Acts_As_Spec (Flag4-Sem)
671 -- A flag set in the N_Subprogram_Body node for a subprogram body which
672 -- is acting as its own spec, except in the case of a library level
673 -- subprogram, in which case the flag is set on the parent compilation
674 -- unit node instead.
676 -- Actual_Designated_Subtype (Node4-Sem)
677 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
678 -- needs to known the dynamic constrained subtype of the designated
679 -- object, this attribute is set to that type. This is done for
680 -- N_Free_Statements for access-to-classwide types and access to
681 -- unconstrained packed array types, and for N_Explicit_Dereference when
682 -- the designated type is an unconstrained packed array and the
683 -- dereference is the prefix of a 'Size attribute reference.
685 -- Address_Warning_Posted (Flag18-Sem)
686 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
687 -- posted a warning for the address clause regarding size or alignment
688 -- issues. Used to inhibit multiple redundant messages.
690 -- Aggregate_Bounds (Node3-Sem)
691 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
692 -- known at compile time, this field points to an N_Range node with those
693 -- bounds. Otherwise Empty.
695 -- All_Others (Flag11-Sem)
696 -- Present in an N_Others_Choice node. This flag is set for an others
697 -- exception where all exceptions are to be caught, even those that are
698 -- not normally handled (in particular the tasking abort signal). This
699 -- is used for translation of the at end handler into a normal exception
702 -- Aspect_Rep_Item (Node2-Sem)
703 -- Present in N_Aspect_Specification nodes. Points to the corresponding
704 -- pragma/attribute definition node used to process the aspect.
706 -- Assignment_OK (Flag15-Sem)
707 -- This flag is set in a subexpression node for an object, indicating
708 -- that the associated object can be modified, even if this would not
709 -- normally be permissible (either by direct assignment, or by being
710 -- passed as an out or in-out parameter). This is used by the expander
711 -- for a number of purposes, including initialization of constants and
712 -- limited type objects (such as tasks), setting discriminant fields,
713 -- setting tag values, etc. N_Object_Declaration nodes also have this
714 -- flag defined. Here it is used to indicate that an initialization
715 -- expression is valid, even where it would normally not be allowed
716 -- (e.g. where the type involved is limited).
718 -- Associated_Node (Node4-Sem)
719 -- Present in nodes that can denote an entity: identifiers, character
720 -- literals, operator symbols, expanded names, operator nodes, and
721 -- attribute reference nodes (all these nodes have an Entity field).
722 -- This field is also present in N_Aggregate, N_Selected_Component, and
723 -- N_Extension_Aggregate nodes. This field is used in generic processing
724 -- to create links between the generic template and the generic copy.
725 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
726 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
727 -- the normal function of Entity is not required at the point where the
728 -- Associated_Node is set. Note also, that in generic templates, this
729 -- means that the Entity field does not necessarily point to an Entity.
730 -- Since the back end is expected to ignore generic templates, this is
733 -- Atomic_Sync_Required (Flag14-Sem)
734 -- This flag is set on a node for which atomic synchronization is
735 -- required for the corresponding reference or modification.
737 -- At_End_Proc (Node1)
738 -- This field is present in an N_Handled_Sequence_Of_Statements node.
739 -- It contains an identifier reference for the cleanup procedure to be
740 -- called. See description of this node for further details.
742 -- Backwards_OK (Flag6-Sem)
743 -- A flag present in the N_Assignment_Statement node. It is used only
744 -- if the type being assigned is an array type, and is set if analysis
745 -- determines that it is definitely safe to do the copy backwards, i.e.
746 -- starting at the highest addressed element. This is the case if either
747 -- the operands do not overlap, or they may overlap, but if they do,
748 -- then the left operand is at a higher address than the right operand.
750 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
751 -- means that the front end could not determine that either direction is
752 -- definitely safe, and a runtime check may be required if the backend
753 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
754 -- set, it means that the front end can assure no overlap of operands.
756 -- Body_To_Inline (Node3-Sem)
757 -- present in subprogram declarations. Denotes analyzed but unexpanded
758 -- body of subprogram, to be used when inlining calls. Present when the
759 -- subprogram has an Inline pragma and inlining is enabled. If the
760 -- declaration is completed by a renaming_as_body, and the renamed en-
761 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
762 -- which is used directly in later calls to the original subprogram.
764 -- Body_Required (Flag13-Sem)
765 -- A flag that appears in the N_Compilation_Unit node indicating that
766 -- the corresponding unit requires a body. For the package case, this
767 -- indicates that a completion is required. In Ada 95, if the flag is not
768 -- set for the package case, then a body may not be present. In Ada 83,
769 -- if the flag is not set for the package case, then body is optional.
770 -- For a subprogram declaration, the flag is set except in the case where
771 -- a pragma Import or Interface applies, in which case no body is
772 -- permitted (in Ada 83 or Ada 95).
774 -- By_Ref (Flag5-Sem)
775 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
776 -- this flag is set when the returned expression is already allocated on
777 -- the secondary stack and thus the result is passed by reference rather
778 -- than copied another time.
780 -- Check_Address_Alignment (Flag11-Sem)
781 -- A flag present in N_Attribute_Definition clause for a 'Address
782 -- attribute definition. This flag is set if a dynamic check should be
783 -- generated at the freeze point for the entity to which this address
784 -- clause applies. The reason that we need this flag is that we want to
785 -- check for range checks being suppressed at the point where the
786 -- attribute definition clause is given, rather than testing this at the
789 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
790 -- Present in N_Simple_Return_Statement nodes. True if this node was
791 -- constructed as part of the N_Extended_Return_Statement expansion.
793 -- Compile_Time_Known_Aggregate (Flag18-Sem)
794 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
795 -- evaluated at compile time without raising constraint error. Such
796 -- aggregates can be passed as is the back end without any expansion.
797 -- See Exp_Aggr for specific conditions under which this flag gets set.
799 -- Componentwise_Assignment (Flag14-Sem)
800 -- Present in N_Assignment_Statement nodes. Set for a record assignment
801 -- where all that needs doing is to expand it into component-by-component
802 -- assignments. This is used internally for the case of tagged types with
803 -- rep clauses, where we need to avoid recursion (we don't want to try to
804 -- generate a call to the primitive operation, because this is the case
805 -- where we are compiling the primitive operation). Note that when we are
806 -- expanding component assignments in this case, we never assign the _tag
807 -- field, but we recursively assign components of the parent type.
809 -- Condition_Actions (List3-Sem)
810 -- This field appears in else-if nodes and in the iteration scheme node
811 -- for while loops. This field is only used during semantic processing to
812 -- temporarily hold actions inserted into the tree. In the tree passed
813 -- to gigi, the condition actions field is always set to No_List. For
814 -- details on how this field is used, see the routine Insert_Actions in
815 -- package Exp_Util, and also the expansion routines for the relevant
818 -- Context_Pending (Flag16-Sem)
819 -- This field appears in Compilation_Unit nodes, to indicate that the
820 -- context of the unit is being compiled. Used to detect circularities
821 -- that are not otherwise detected by the loading mechanism. Such
822 -- circularities can occur in the presence of limited and non-limited
823 -- with_clauses that mention the same units.
825 -- Controlling_Argument (Node1-Sem)
826 -- This field is set in procedure and function call nodes if the call
827 -- is a dispatching call (it is Empty for a non-dispatching call). It
828 -- indicates the source of the call's controlling tag. For procedure
829 -- calls, the Controlling_Argument is one of the actuals. For function
830 -- that has a dispatching result, it is an entity in the context of the
831 -- call that can provide a tag, or else it is the tag of the root type
832 -- of the class. It can also specify a tag directly rather than being a
833 -- tagged object. The latter is needed by the implementations of AI-239
836 -- Conversion_OK (Flag14-Sem)
837 -- A flag set on type conversion nodes to indicate that the conversion
838 -- is to be considered as being valid, even though it is the case that
839 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
840 -- Fixed_Value and Integer_Value, for internal conversions done for
841 -- fixed-point operations, and for certain conversions for calls to
842 -- initialization procedures. If Conversion_OK is set, then Etype must be
843 -- set (the analyzer assumes that Etype has been set). For the case of
844 -- fixed-point operands, it also indicates that the conversion is to be
845 -- direct conversion of the underlying integer result, with no regard to
846 -- the small operand.
848 -- Convert_To_Return_False (Flag13-Sem)
849 -- Present in N_Raise_Expression nodes that appear in the body of the
850 -- special predicateM function used to test a predicate in the context
851 -- of a membership test, where raise expression results in returning a
852 -- value of False rather than raising an exception.
854 -- Corresponding_Aspect (Node3-Sem)
855 -- Present in N_Pragma node. Used to point back to the source aspect from
856 -- the corresponding pragma. This field is Empty for source pragmas.
858 -- Corresponding_Body (Node5-Sem)
859 -- This field is set in subprogram declarations, package declarations,
860 -- entry declarations of protected types, and in generic units. It points
861 -- to the defining entity for the corresponding body (NOT the node for
864 -- Corresponding_Formal_Spec (Node3-Sem)
865 -- This field is set in subprogram renaming declarations, where it points
866 -- to the defining entity for a formal subprogram in the case where the
867 -- renaming corresponds to a generic formal subprogram association in an
868 -- instantiation. The field is Empty if the renaming does not correspond
869 -- to such a formal association.
871 -- Corresponding_Generic_Association (Node5-Sem)
872 -- This field is defined for object declarations and object renaming
873 -- declarations. It is set for the declarations within an instance that
874 -- map generic formals to their actuals. If set, the field points to
875 -- a generic_association which is the original parent of the expression
876 -- or name appearing in the declaration. This simplifies ASIS queries.
878 -- Corresponding_Integer_Value (Uint4-Sem)
879 -- This field is set in real literals of fixed-point types (it is not
880 -- used for floating-point types). It contains the integer value used
881 -- to represent the fixed-point value. It is also set on the universal
882 -- real literals used to represent bounds of fixed-point base types
883 -- and their first named subtypes.
885 -- Corresponding_Spec (Node5-Sem)
886 -- This field is set in subprogram, package, task, and protected body
887 -- nodes, where it points to the defining entity in the corresponding
888 -- spec. The attribute is also set in N_With_Clause nodes where it points
889 -- to the defining entity for the with'ed spec, and in a subprogram
890 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
891 -- if there is no corresponding spec, as in the case of a subprogram body
892 -- that serves as its own spec.
894 -- In Ada 2012, Corresponding_Spec is set on expression functions that
895 -- complete a subprogram declaration.
897 -- Corresponding_Spec_Of_Stub (Node2-Sem)
898 -- This field is present in subprogram, package, task and protected body
899 -- stubs where it points to the corresponding spec of the stub. Due to
900 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
902 -- Corresponding_Stub (Node3-Sem)
903 -- This field is present in an N_Subunit node. It holds the node in
904 -- the parent unit that is the stub declaration for the subunit. It is
905 -- set when analysis of the stub forces loading of the proper body. If
906 -- expansion of the proper body creates new declarative nodes, they are
907 -- inserted at the point of the corresponding_stub.
909 -- Dcheck_Function (Node5-Sem)
910 -- This field is present in an N_Variant node, It references the entity
911 -- for the discriminant checking function for the variant.
913 -- Default_Expression (Node5-Sem)
914 -- This field is Empty if there is no default expression. If there is a
915 -- simple default expression (one with no side effects), then this field
916 -- simply contains a copy of the Expression field (both point to the tree
917 -- for the default expression). Default_Expression is used for
918 -- conformance checking.
920 -- Default_Storage_Pool (Node3-Sem)
921 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
922 -- copy of Opt.Default_Pool at the end of the compilation unit. See
923 -- package Opt for details. This is used for inheriting the
924 -- Default_Storage_Pool in child units.
926 -- Discr_Check_Funcs_Built (Flag11-Sem)
927 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
928 -- discriminant checking functions are constructed. The purpose is to
929 -- avoid attempting to set these functions more than once.
931 -- Do_Accessibility_Check (Flag13-Sem)
932 -- This flag is set on N_Parameter_Specification nodes to indicate
933 -- that an accessibility check is required for the parameter. It is
934 -- not yet decided who takes care of this check (TBD ???).
936 -- Do_Discriminant_Check (Flag1-Sem)
937 -- This flag is set on N_Selected_Component nodes to indicate that a
938 -- discriminant check is required using the discriminant check routine
939 -- associated with the selector. The actual check is generated by the
940 -- expander when processing selected components. In the case of
941 -- Unchecked_Union, the flag is also set, but no discriminant check
942 -- routine is associated with the selector, and the expander does not
943 -- generate a check. This flag is also present in assignment statements
944 -- (and set if the assignment requires a discriminant check), and in type
945 -- conversion nodes (and set if the conversion requires a check).
947 -- Do_Division_Check (Flag13-Sem)
948 -- This flag is set on a division operator (/ mod rem) to indicate
949 -- that a zero divide check is required. The actual check is dealt
950 -- with by the backend (all the front end does is to set the flag).
952 -- Do_Length_Check (Flag4-Sem)
953 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
954 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
955 -- is required. It is not determined who deals with this flag (???).
957 -- Do_Overflow_Check (Flag17-Sem)
958 -- This flag is set on an operator where an overflow check is required on
959 -- the operation. The actual check is dealt with by the backend (all the
960 -- front end does is to set the flag). The other cases where this flag is
961 -- used is on a Type_Conversion node and for attribute reference nodes.
962 -- For a type conversion, it means that the conversion is from one base
963 -- type to another, and the value may not fit in the target base type.
964 -- See also the description of Do_Range_Check for this case. The only
965 -- attribute references which use this flag are Pred and Succ, where it
966 -- means that the result should be checked for going outside the base
967 -- range. Note that this flag is not set for modular types. This flag is
968 -- also set on if and case expression nodes if we are operating in either
969 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
970 -- properly process overflow checking for dependent expressions).
972 -- Do_Range_Check (Flag9-Sem)
973 -- This flag is set on an expression which appears in a context where a
974 -- range check is required. The target type is clear from the context.
975 -- The contexts in which this flag can appear are the following:
977 -- Right side of an assignment. In this case the target type is
978 -- taken from the left side of the assignment, which is referenced
979 -- by the Name of the N_Assignment_Statement node.
981 -- Subscript expressions in an indexed component. In this case the
982 -- target type is determined from the type of the array, which is
983 -- referenced by the Prefix of the N_Indexed_Component node.
985 -- Argument expression for a parameter, appearing either directly in
986 -- the Parameter_Associations list of a call or as the Expression of an
987 -- N_Parameter_Association node that appears in this list. In either
988 -- case, the check is against the type of the formal. Note that the
989 -- flag is relevant only in IN and IN OUT parameters, and will be
990 -- ignored for OUT parameters, where no check is required in the call,
991 -- and if a check is required on the return, it is generated explicitly
992 -- with a type conversion.
994 -- Initialization expression for the initial value in an object
995 -- declaration. In this case the Do_Range_Check flag is set on
996 -- the initialization expression, and the check is against the
997 -- range of the type of the object being declared.
999 -- The expression of a type conversion. In this case the range check is
1000 -- against the target type of the conversion. See also the use of
1001 -- Do_Overflow_Check on a type conversion. The distinction is that the
1002 -- overflow check protects against a value that is outside the range of
1003 -- the target base type, whereas a range check checks that the
1004 -- resulting value (which is a value of the base type of the target
1005 -- type), satisfies the range constraint of the target type.
1007 -- Note: when a range check is required in contexts other than those
1008 -- listed above (e.g. in a return statement), an additional type
1009 -- conversion node is introduced to represent the required check.
1011 -- A special case arises for the arguments of the Pred/Succ attributes.
1012 -- Here the range check needed is against First + 1 .. Last (Pred) or
1013 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1014 -- these checks are what would be performed within the implicit body of
1015 -- the functions that correspond to these attributes. In these cases,
1016 -- the Do_Range check flag is set on the argument to the attribute
1017 -- function, and the back end must special case the appropriate range
1018 -- to check against.
1020 -- Do_Storage_Check (Flag17-Sem)
1021 -- This flag is set in an N_Allocator node to indicate that a storage
1022 -- check is required for the allocation, or in an N_Subprogram_Body node
1023 -- to indicate that a stack check is required in the subprogram prolog.
1024 -- The N_Allocator case is handled by the routine that expands the call
1025 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1026 -- backend, and all the semantics does is set the flag.
1028 -- Do_Tag_Check (Flag13-Sem)
1029 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1030 -- N_Procedure_Call_Statement, N_Type_Conversion,
1031 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1032 -- node to indicate that the tag check can be suppressed. It is not
1033 -- yet decided how this flag is used (TBD ???).
1035 -- Elaborate_Present (Flag4-Sem)
1036 -- This flag is set in the N_With_Clause node to indicate that pragma
1037 -- Elaborate pragma appears for the with'ed units.
1039 -- Elaborate_All_Desirable (Flag9-Sem)
1040 -- This flag is set in the N_With_Clause mode to indicate that the static
1041 -- elaboration processing has determined that an Elaborate_All pragma is
1042 -- desirable for correct elaboration for this unit.
1044 -- Elaborate_All_Present (Flag14-Sem)
1045 -- This flag is set in the N_With_Clause node to indicate that a
1046 -- pragma Elaborate_All pragma appears for the with'ed units.
1048 -- Elaborate_Desirable (Flag11-Sem)
1049 -- This flag is set in the N_With_Clause mode to indicate that the static
1050 -- elaboration processing has determined that an Elaborate pragma is
1051 -- desirable for correct elaboration for this unit.
1053 -- Elaboration_Boolean (Node2-Sem)
1054 -- This field is present in function and procedure specification nodes.
1055 -- If set, it points to the entity for a Boolean flag that must be tested
1056 -- for certain calls to check for access before elaboration. See body of
1057 -- Sem_Elab for further details. This field is Empty if no elaboration
1058 -- boolean is required.
1060 -- Else_Actions (List3-Sem)
1061 -- This field is present in if expression nodes. During code
1062 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1063 -- actions at an appropriate place in the tree to get elaborated at the
1064 -- right time. For if expressions, we have to be sure that the actions
1065 -- for the Else branch are only elaborated if the condition is False.
1066 -- The Else_Actions field is used as a temporary parking place for
1067 -- these actions. The final tree is always rewritten to eliminate the
1068 -- need for this field, so in the tree passed to Gigi, this field is
1069 -- always set to No_List.
1071 -- Enclosing_Variant (Node2-Sem)
1072 -- This field is present in the N_Variant node and identifies the Node_Id
1073 -- corresponding to the immediately enclosing variant when the variant is
1074 -- nested, and N_Empty otherwise. Set during semantic processing of the
1075 -- variant part of a record type.
1077 -- Entity (Node4-Sem)
1078 -- Appears in all direct names (identifiers, character literals, and
1079 -- operator symbols), as well as expanded names, and attributes that
1080 -- denote entities, such as 'Class. Points to entity for corresponding
1081 -- defining occurrence. Set after name resolution. For identifiers in a
1082 -- WITH list, the corresponding defining occurrence is in a separately
1083 -- compiled file, and Entity must be set by the library Load procedure.
1085 -- Note: During name resolution, the value in Entity may be temporarily
1086 -- incorrect (e.g. during overload resolution, Entity is initially set to
1087 -- the first possible correct interpretation, and then later modified if
1088 -- necessary to contain the correct value after resolution).
1090 -- Note: This field overlaps Associated_Node, which is used during
1091 -- generic processing (see Sem_Ch12 for details). Note also that in
1092 -- generic templates, this means that the Entity field does not always
1093 -- point to an Entity. Since the back end is expected to ignore generic
1094 -- templates, this is harmless.
1096 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1097 -- It is used only for stream attributes definition clauses. In this
1098 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1099 -- conceptually at the point of the clause. Thus the visibility of the
1100 -- attribute definition clause (in the sense of 8.3(23) as amended by
1101 -- AI-195) can be checked by testing the visibility of that subprogram.
1103 -- Note: Normally the Entity field of an identifier points to the entity
1104 -- for the corresponding defining identifier, and hence the Chars field
1105 -- of an identifier will match the Chars field of the entity. However,
1106 -- there is no requirement that these match, and there are obscure cases
1107 -- of generated code where they do not match.
1109 -- Note: Ada 2012 aspect specifications require additional links between
1110 -- identifiers and various attributes. These attributes can be of
1111 -- arbitrary types, and the entity field of identifiers that denote
1112 -- aspects must be used to store arbitrary expressions for later semantic
1113 -- checks. See section on aspect specifications for details.
1115 -- Entity_Or_Associated_Node (Node4-Sem)
1116 -- A synonym for both Entity and Associated_Node. Used by convention in
1117 -- the code when referencing this field in cases where it is not known
1118 -- whether the field contains an Entity or an Associated_Node.
1120 -- Etype (Node5-Sem)
1121 -- Appears in all expression nodes, all direct names, and all entities.
1122 -- Points to the entity for the related type. Set after type resolution.
1123 -- Normally this is the actual subtype of the expression. However, in
1124 -- certain contexts such as the right side of an assignment, subscripts,
1125 -- arguments to calls, returned value in a function, initial value etc.
1126 -- it is the desired target type. In the event that this is different
1127 -- from the actual type, the Do_Range_Check flag will be set if a range
1128 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1129 -- points to an essentially arbitrary choice from the possible set of
1132 -- Exception_Junk (Flag8-Sem)
1133 -- This flag is set in a various nodes appearing in a statement sequence
1134 -- to indicate that the corresponding node is an artifact of the
1135 -- generated code for exception handling, and should be ignored when
1136 -- analyzing the control flow of the relevant sequence of statements
1137 -- (e.g. to check that it does not end with a bad return statement).
1139 -- Exception_Label (Node5-Sem)
1140 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1141 -- to be used for transforming the corresponding exception into a goto,
1142 -- or contains Empty, if this exception is not to be transformed. Also
1143 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1144 -- that there may be a local raise for the handler, so that expansion
1145 -- to allow a goto is required (and this field contains the label for
1146 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1148 -- Expansion_Delayed (Flag11-Sem)
1149 -- Set on aggregates and extension aggregates that need a top-down rather
1150 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1151 -- up. For nested aggregates the expansion is delayed until the enclosing
1152 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1153 -- delay it we set this flag. This is done to avoid creating a temporary
1154 -- for each level of a nested aggregates, and also to prevent the
1155 -- premature generation of constraint checks. This is also a requirement
1156 -- if we want to generate the proper attachment to the internal
1157 -- finalization lists (for record with controlled components). Top down
1158 -- expansion of aggregates is also used for in-place array aggregate
1159 -- assignment or initialization. When the full context is known, the
1160 -- target of the assignment or initialization is used to generate the
1161 -- left-hand side of individual assignment to each sub-component.
1163 -- First_Inlined_Subprogram (Node3-Sem)
1164 -- Present in the N_Compilation_Unit node for the main program. Points
1165 -- to a chain of entities for subprograms that are to be inlined. The
1166 -- Next_Inlined_Subprogram field of these entities is used as a link
1167 -- pointer with Empty marking the end of the list. This field is Empty
1168 -- if there are no inlined subprograms or inlining is not active.
1170 -- First_Named_Actual (Node4-Sem)
1171 -- Present in procedure call statement and function call nodes, and also
1172 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1173 -- named parameter where parameters are ordered by declaration order (as
1174 -- opposed to the actual order in the call which may be different due to
1175 -- named associations). Note: this field points to the explicit actual
1176 -- parameter itself, not the N_Parameter_Association node (its parent).
1178 -- First_Real_Statement (Node2-Sem)
1179 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1180 -- Empty. Used only when declarations are moved into the statement part
1181 -- of a construct as a result of wrapping an AT END handler that is
1182 -- required to cover the declarations. In this case, this field is used
1183 -- to remember the location in the statements list of the first real
1184 -- statement, i.e. the statement that used to be first in the statement
1185 -- list before the declarations were prepended.
1187 -- First_Subtype_Link (Node5-Sem)
1188 -- Present in N_Freeze_Entity node for an anonymous base type that is
1189 -- implicitly created by the declaration of a first subtype. It points
1190 -- to the entity for the first subtype.
1192 -- Float_Truncate (Flag11-Sem)
1193 -- A flag present in type conversion nodes. This is used for float to
1194 -- integer conversions where truncation is required rather than rounding.
1195 -- Note that Gigi does not handle type conversions from real to integer
1196 -- with rounding (see Expand_N_Type_Conversion).
1198 -- Forwards_OK (Flag5-Sem)
1199 -- A flag present in the N_Assignment_Statement node. It is used only
1200 -- if the type being assigned is an array type, and is set if analysis
1201 -- determines that it is definitely safe to do the copy forwards, i.e.
1202 -- starting at the lowest addressed element. This is the case if either
1203 -- the operands do not overlap, or they may overlap, but if they do,
1204 -- then the left operand is at a lower address than the right operand.
1206 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1207 -- means that the front end could not determine that either direction is
1208 -- definitely safe, and a runtime check may be required if the backend
1209 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1210 -- set, it means that the front end can assure no overlap of operands.
1212 -- From_Aspect_Specification (Flag13-Sem)
1213 -- Processing of aspect specifications typically results in insertion in
1214 -- the tree of corresponding pragma or attribute definition clause nodes.
1215 -- These generated nodes have the From_Aspect_Specification flag set to
1216 -- indicate that they came from aspect specifications originally.
1218 -- From_At_End (Flag4-Sem)
1219 -- This flag is set on an N_Raise_Statement node if it corresponds to
1220 -- the reraise statement generated as the last statement of an AT END
1221 -- handler when SJLJ exception handling is active. It is used to stop
1222 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1223 -- because if the restriction is set, the reraise is not generated.
1225 -- From_At_Mod (Flag4-Sem)
1226 -- This flag is set on the attribute definition clause node that is
1227 -- generated by a transformation of an at mod phrase in a record
1228 -- representation clause. This is used to give slightly different (Ada 83
1229 -- compatible) semantics to such a clause, namely it is used to specify a
1230 -- minimum acceptable alignment for the base type and all subtypes. In
1231 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1232 -- must be a multiple of the given value, and the representation clause
1233 -- is considered to be type specific instead of subtype specific.
1235 -- From_Default (Flag6-Sem)
1236 -- This flag is set on the subprogram renaming declaration created in an
1237 -- instance for a formal subprogram, when the formal is declared with a
1238 -- box, and there is no explicit actual. If the flag is present, the
1239 -- declaration is treated as an implicit reference to the formal in the
1242 -- Generic_Parent (Node5-Sem)
1243 -- Generic_Parent is defined on declaration nodes that are instances. The
1244 -- value of Generic_Parent is the generic entity from which the instance
1245 -- is obtained. Generic_Parent is also defined for the renaming
1246 -- declarations and object declarations created for the actuals in an
1247 -- instantiation. The generic parent of such a declaration is the
1248 -- corresponding generic association in the Instantiation node.
1250 -- Generic_Parent_Type (Node4-Sem)
1251 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1252 -- actuals of formal private and derived types. Within the instance, the
1253 -- operations on the actual are those inherited from the parent. For a
1254 -- formal private type, the parent type is the generic type itself. The
1255 -- Generic_Parent_Type is also used in an instance to determine whether a
1256 -- private operation overrides an inherited one.
1258 -- Handler_List_Entry (Node2-Sem)
1259 -- This field is present in N_Object_Declaration nodes. It is set only
1260 -- for the Handler_Record entry generated for an exception in zero cost
1261 -- exception handling mode. It references the corresponding item in the
1262 -- handler list, and is used to delete this entry if the corresponding
1263 -- handler is deleted during optimization. For further details on why
1264 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1266 -- Has_Dereference_Action (Flag13-Sem)
1267 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1268 -- indicate that the expansion has aready produced a call to primitive
1269 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1270 -- Such dereference actions are produced for debugging purposes.
1272 -- Has_Dynamic_Length_Check (Flag10-Sem)
1273 -- This flag is present in all expression nodes. It is set to indicate
1274 -- that one of the routines in unit Checks has generated a length check
1275 -- action which has been inserted at the flagged node. This is used to
1276 -- avoid the generation of duplicate checks.
1278 -- Has_Dynamic_Range_Check (Flag12-Sem)
1279 -- This flag is present in N_Subtype_Declaration nodes and on all
1280 -- expression nodes. It is set to indicate that one of the routines in
1281 -- unit Checks has generated a range check action which has been inserted
1282 -- at the flagged node. This is used to avoid the generation of duplicate
1283 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1284 -- it mean in that context???
1286 -- Has_Local_Raise (Flag8-Sem)
1287 -- Present in exception handler nodes. Set if the handler can be entered
1288 -- via a local raise that gets transformed to a goto statement. This will
1289 -- always be set if Local_Raise_Statements is non-empty, but can also be
1290 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1291 -- nodes requiring generation of back end checks.
1293 -- Has_No_Elaboration_Code (Flag17-Sem)
1294 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1295 -- or not elaboration code is present for this unit. It is initially set
1296 -- true for subprogram specs and bodies and for all generic units and
1297 -- false for non-generic package specs and bodies. Gigi may set the flag
1298 -- in the non-generic package case if it determines that no elaboration
1299 -- code is generated. Note that this flag is not related to the
1300 -- Is_Preelaborated status, there can be preelaborated packages that
1301 -- generate elaboration code, and non-preelaborated packages which do
1302 -- not generate elaboration code.
1304 -- Has_Pragma_Suppress_All (Flag14-Sem)
1305 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1306 -- pragma appears anywhere in the unit. This accommodates the rather
1307 -- strange placement rules of other compilers (DEC permits it at the
1308 -- end of a unit, and Rational allows it as a program unit pragma). We
1309 -- allow it anywhere at all, and consider it equivalent to a pragma
1310 -- Suppress (All_Checks) appearing at the start of the configuration
1311 -- pragmas for the unit.
1313 -- Has_Private_View (Flag11-Sem)
1314 -- A flag present in generic nodes that have an entity, to indicate that
1315 -- the node has a private type. Used to exchange private and full
1316 -- declarations if the visibility at instantiation is different from the
1317 -- visibility at generic definition.
1319 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1320 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1321 -- flag the presence of a pragma Relative_Deadline.
1323 -- Has_Self_Reference (Flag13-Sem)
1324 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1325 -- of the expressions contains an access attribute reference to the
1326 -- enclosing type. Such a self-reference can only appear in default-
1327 -- initialized aggregate for a record type.
1329 -- Has_SP_Choice (Flag15-Sem)
1330 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1331 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1332 -- True if the Discrete_Choices list has at least one occurrence of a
1333 -- statically predicated subtype.
1335 -- Has_Storage_Size_Pragma (Flag5-Sem)
1336 -- A flag present in an N_Task_Definition node to flag the presence of a
1337 -- Storage_Size pragma.
1339 -- Has_Wide_Character (Flag11-Sem)
1340 -- Present in string literals, set if any wide character (i.e. character
1341 -- code outside the Character range but within Wide_Character range)
1342 -- appears in the string. Used to implement pragma preference rules.
1344 -- Has_Wide_Wide_Character (Flag13-Sem)
1345 -- Present in string literals, set if any wide character (i.e. character
1346 -- code outside the Wide_Character range) appears in the string. Used to
1347 -- implement pragma preference rules.
1349 -- Header_Size_Added (Flag11-Sem)
1350 -- Present in N_Attribute_Reference nodes, set only for attribute
1351 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1352 -- hidden list header used by the runtime finalization support has been
1353 -- added to the size of the prefix. The flag also prevents the infinite
1354 -- expansion of the same attribute in the said context.
1356 -- Hidden_By_Use_Clause (Elist4-Sem)
1357 -- An entity list present in use clauses that appear within
1358 -- instantiations. For the resolution of local entities, entities
1359 -- introduced by these use clauses have priority over global ones, and
1360 -- outer entities must be explicitly hidden/restored on exit.
1362 -- Implicit_With (Flag16-Sem)
1363 -- This flag is set in the N_With_Clause node that is implicitly
1364 -- generated for runtime units that are loaded by the expander, and also
1365 -- for package System, if it is loaded implicitly by a use of the
1366 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1369 -- Implicit_With_From_Instantiation (Flag12-Sem)
1370 -- Set in N_With_Clause nodes from generic instantiations.
1372 -- Import_Interface_Present (Flag16-Sem)
1373 -- This flag is set in an Interface or Import pragma if a matching
1374 -- pragma of the other kind is also present. This is used to avoid
1375 -- generating some unwanted error messages.
1377 -- In_Assertion_Expression (Flag4-Sem)
1378 -- This flag is present in N_Function_Call nodes. It is set if the
1379 -- function is called from within an assertion expression. This is
1380 -- used to avoid some bogus warnings about early elaboration.
1382 -- Includes_Infinities (Flag11-Sem)
1383 -- This flag is present in N_Range nodes. It is set for the range of
1384 -- unconstrained float types defined in Standard, which include not only
1385 -- the given range of values, but also legitimately can include infinite
1386 -- values. This flag is false for any float type for which an explicit
1387 -- range is given by the programmer, even if that range is identical to
1388 -- the range for Float.
1390 -- Inherited_Discriminant (Flag13-Sem)
1391 -- This flag is present in N_Component_Association nodes. It indicates
1392 -- that a given component association in an extension aggregate is the
1393 -- value obtained from a constraint on an ancestor. Used to prevent
1394 -- double expansion when the aggregate has expansion delayed.
1396 -- Instance_Spec (Node5-Sem)
1397 -- This field is present in generic instantiation nodes, and also in
1398 -- formal package declaration nodes (formal package declarations are
1399 -- treated in a manner very similar to package instantiations). It points
1400 -- to the node for the spec of the instance, inserted as part of the
1401 -- semantic processing for instantiations in Sem_Ch12.
1403 -- Is_Accessibility_Actual (Flag13-Sem)
1404 -- Present in N_Parameter_Association nodes. True if the parameter is
1405 -- an extra actual that carries the accessibility level of the actual
1406 -- for an access parameter, in a function that dispatches on result and
1407 -- is called in a dispatching context. Used to prevent a formal/actual
1408 -- mismatch when the call is rewritten as a dispatching call.
1410 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1411 -- A flag set in a Block_Statement node to indicate that it is the
1412 -- expansion of an asynchronous entry call. Such a block needs cleanup
1413 -- handler to assure that the call is cancelled.
1415 -- Is_Boolean_Aspect (Flag16-Sem)
1416 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1417 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1419 -- Is_Checked (Flag11-Sem)
1420 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1421 -- assertion aspect or pragma, or check pragma for an assertion, that
1422 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1423 -- is set (they cannot both be set), then this means that the status of
1424 -- the pragma has been checked at the appropriate point and should not
1425 -- be further modified (in some cases these flags are copied when a
1426 -- pragma is rewritten).
1428 -- Is_Component_Left_Opnd (Flag13-Sem)
1429 -- Is_Component_Right_Opnd (Flag14-Sem)
1430 -- Present in concatenation nodes, to indicate that the corresponding
1431 -- operand is of the component type of the result. Used in resolving
1432 -- concatenation nodes in instances.
1434 -- Is_Delayed_Aspect (Flag14-Sem)
1435 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1436 -- come from aspect specifications, where the evaluation of the aspect
1437 -- must be delayed to the freeze point. This flag is also set True in
1438 -- the corresponding N_Aspect_Specification node.
1440 -- Is_Controlling_Actual (Flag16-Sem)
1441 -- This flag is set on in an expression that is a controlling argument in
1442 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1443 -- details of its use.
1445 -- Is_Disabled (Flag15-Sem)
1446 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1447 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1448 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1449 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1450 -- If this flag is set, the aspect or policy is not analyzed for semantic
1451 -- correctness, so any expressions etc will not be marked as analyzed.
1453 -- Is_Dynamic_Coextension (Flag18-Sem)
1454 -- Present in allocator nodes, to indicate that this is an allocator
1455 -- for an access discriminant of a dynamically allocated object. The
1456 -- coextension must be deallocated and finalized at the same time as
1457 -- the enclosing object.
1459 -- Is_Entry_Barrier_Function (Flag8-Sem)
1460 -- This flag is set in an N_Subprogram_Body node which is the expansion
1461 -- of an entry barrier from a protected entry body. It is used for the
1462 -- circuitry checking for incorrect use of Current_Task.
1464 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1465 -- This flag is set in an N_Function_Call node to indicate that the extra
1466 -- actuals to support a build-in-place style of call have been added to
1469 -- Is_Finalization_Wrapper (Flag9-Sem);
1470 -- This flag is present in N_Block_Statement nodes. It is set when the
1471 -- block acts as a wrapper of a handled construct which has controlled
1472 -- objects. The wrapper prevents interference between exception handlers
1473 -- and At_End handlers.
1475 -- Is_Ignored (Flag9-Sem)
1476 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1477 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1478 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1479 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1480 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1481 -- gives a policy for the aspect or pragma, then there are two cases. For
1482 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1483 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1484 -- ignored because of the absence of a -gnata switch. For any other
1485 -- aspects or pragmas, the flag is off. If this flag is set, the
1486 -- aspect/pragma is fully analyzed and checked for other syntactic
1487 -- and semantic errors, but it does not have any semantic effect.
1489 -- Is_In_Discriminant_Check (Flag11-Sem)
1490 -- This flag is present in a selected component, and is used to indicate
1491 -- that the reference occurs within a discriminant check. The
1492 -- significance is that optimizations based on assuming that the
1493 -- discriminant check has a correct value cannot be performed in this
1494 -- case (or the discriminant check may be optimized away!)
1496 -- Is_Machine_Number (Flag11-Sem)
1497 -- This flag is set in an N_Real_Literal node to indicate that the value
1498 -- is a machine number. This avoids some unnecessary cases of converting
1499 -- real literals to machine numbers.
1501 -- Is_Null_Loop (Flag16-Sem)
1502 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1503 -- can be determined to be null at compile time. This is used to remove
1504 -- the loop entirely at expansion time.
1506 -- Is_Overloaded (Flag5-Sem)
1507 -- A flag present in all expression nodes. Used temporarily during
1508 -- overloading determination. The setting of this flag is not relevant
1509 -- once overloading analysis is complete.
1511 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1512 -- A flag present only in N_Op_Expon nodes. It is set when the
1513 -- exponentiation is of the form 2 ** N, where the type of N is an
1514 -- unsigned integral subtype whose size does not exceed the size of
1515 -- Standard_Integer (i.e. a type that can be safely converted to
1516 -- Natural), and the exponentiation appears as the right operand of an
1517 -- integer multiplication or an integer division where the dividend is
1518 -- unsigned. It is also required that overflow checking is off for both
1519 -- the exponentiation and the multiply/divide node. If this set of
1520 -- conditions holds, and the flag is set, then the division or
1521 -- multiplication can be (and is) converted to a shift.
1523 -- Is_Prefixed_Call (Flag17-Sem)
1524 -- This flag is set in a selected component within a generic unit, if
1525 -- it resolves to a prefixed call to a primitive operation. The flag
1526 -- is used to prevent accidental overloadings in an instance, when a
1527 -- primitive operation and a private record component may be homographs.
1529 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1530 -- A flag set in a Subprogram_Body block to indicate that it is the
1531 -- implementation of a protected subprogram. Such a body needs cleanup
1532 -- handler to make sure that the associated protected object is unlocked
1533 -- when the subprogram completes.
1535 -- Is_Static_Coextension (Flag14-Sem)
1536 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1537 -- of an object allocated on the stack rather than the heap.
1539 -- Is_Static_Expression (Flag6-Sem)
1540 -- Indicates that an expression is a static expression (RM 4.9). See spec
1541 -- of package Sem_Eval for full details on the use of this flag.
1543 -- Is_Subprogram_Descriptor (Flag16-Sem)
1544 -- Present in N_Object_Declaration, and set only for the object
1545 -- declaration generated for a subprogram descriptor in fast exception
1546 -- mode. See Exp_Ch11 for details of use.
1548 -- Is_Task_Allocation_Block (Flag6-Sem)
1549 -- A flag set in a Block_Statement node to indicate that it is the
1550 -- expansion of a task allocator, or the allocator of an object
1551 -- containing tasks. Such a block requires a cleanup handler to call
1552 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1553 -- allocated but not activated when the allocator completes abnormally.
1555 -- Is_Task_Master (Flag5-Sem)
1556 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1557 -- indicate that the construct is a task master (i.e. has declared tasks
1558 -- or declares an access to a task type).
1560 -- Itype (Node1-Sem)
1561 -- Used in N_Itype_Reference node to reference an itype for which it is
1562 -- important to ensure that it is defined. See description of this node
1563 -- for further details.
1565 -- Kill_Range_Check (Flag11-Sem)
1566 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1567 -- result should not be subjected to range checks. This is used for the
1568 -- implementation of Normalize_Scalars.
1570 -- Label_Construct (Node2-Sem)
1571 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1572 -- N_Block_Statement or N_Loop_Statement node to which the label
1573 -- declaration applies. This attribute is used both in the compiler and
1574 -- in the implementation of ASIS queries. The field is left empty for the
1575 -- special labels generated as part of expanding raise statements with a
1576 -- local exception handler.
1578 -- Library_Unit (Node4-Sem)
1579 -- In a stub node, Library_Unit points to the compilation unit node of
1580 -- the corresponding subunit.
1582 -- In a with clause node, Library_Unit points to the spec of the with'ed
1585 -- In a compilation unit node, the usage depends on the unit type:
1587 -- For a library unit body, Library_Unit points to the compilation unit
1588 -- node of the corresponding spec, unless it's a subprogram body with
1589 -- Acts_As_Spec set, in which case it points to itself.
1591 -- For a spec, Library_Unit points to the compilation unit node of the
1592 -- corresponding body, if present. The body will be present if the spec
1593 -- is or contains generics that we needed to instantiate. Similarly, the
1594 -- body will be present if we needed it for inlining purposes. Thus, if
1595 -- we have a spec/body pair, both of which are present, they point to
1596 -- each other via Library_Unit.
1598 -- For a subunit, Library_Unit points to the compilation unit node of
1601 -- Note that this field is not used to hold the parent pointer for child
1602 -- unit (which might in any case need to use it for some other purpose as
1603 -- described above). Instead for a child unit, implicit with's are
1604 -- generated for all parents.
1606 -- Local_Raise_Statements (Elist1)
1607 -- This field is present in exception handler nodes. It is set to
1608 -- No_Elist in the normal case. If there is at least one raise statement
1609 -- which can potentially be handled as a local raise, then this field
1610 -- points to a list of raise nodes, which are calls to a routine to raise
1611 -- an exception. These are raise nodes which can be optimized into gotos
1612 -- if the handler turns out to meet the conditions which permit this
1613 -- transformation. Note that this does NOT include instances of the
1614 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1615 -- handled by the back end (using the N_Push/N_Pop mechanism).
1617 -- Loop_Actions (List2-Sem)
1618 -- A list present in Component_Association nodes in array aggregates.
1619 -- Used to collect actions that must be executed within the loop because
1620 -- they may need to be evaluated anew each time through.
1622 -- Limited_View_Installed (Flag18-Sem)
1623 -- Present in With_Clauses and in package specifications. If set on
1624 -- with_clause, it indicates that this clause has created the current
1625 -- limited view of the designated package. On a package specification, it
1626 -- indicates that the limited view has already been created because the
1627 -- package is mentioned in a limited_with_clause in the closure of the
1628 -- unit being compiled.
1630 -- Local_Raise_Not_OK (Flag7-Sem)
1631 -- Present in N_Exception_Handler nodes. Set if the handler contains
1632 -- a construct (reraise statement, or call to subprogram in package
1633 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1634 -- for a local raise (one that could otherwise be converted to a goto).
1636 -- Must_Be_Byte_Aligned (Flag14-Sem)
1637 -- This flag is present in N_Attribute_Reference nodes. It can be set
1638 -- only for the Address and Unrestricted_Access attributes. If set it
1639 -- means that the object for which the address/access is given must be on
1640 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1641 -- of the object is to be made before taking the address (this copy is in
1642 -- the current scope on the stack frame). This is used for certain cases
1643 -- of code generated by the expander that passes parameters by address.
1645 -- The reason the copy is not made by the front end is that the back end
1646 -- has more information about type layout and may be able to (but is not
1647 -- guaranteed to) prevent making unnecessary copies.
1649 -- Must_Not_Freeze (Flag8-Sem)
1650 -- A flag present in all expression nodes. Normally expressions cause
1651 -- freezing as described in the RM. If this flag is set, then this is
1652 -- inhibited. This is used by the analyzer and expander to label nodes
1653 -- that are created by semantic analysis or expansion and which must not
1654 -- cause freezing even though they normally would. This flag is also
1655 -- present in an N_Subtype_Indication node, since we also use these in
1656 -- calls to Freeze_Expression.
1658 -- Next_Entity (Node2-Sem)
1659 -- Present in defining identifiers, defining character literals and
1660 -- defining operator symbols (i.e. in all entities). The entities of a
1661 -- scope are chained, and this field is used as the forward pointer for
1662 -- this list. See Einfo for further details.
1664 -- Next_Exit_Statement (Node3-Sem)
1665 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1666 -- chained (in reverse order of appearance) from the First_Exit_Statement
1667 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1668 -- the next entry on this chain (Empty = end of list).
1670 -- Next_Implicit_With (Node3-Sem)
1671 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1672 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1673 -- to prevent multiple with_clauses for the same unit in a given context.
1674 -- A postorder traversal of the tree whose nodes are units and whose
1675 -- links are with_clauses defines the order in which CodePeer must
1676 -- examine a compiled unit and its full context. This ordering ensures
1677 -- that any subprogram call is examined after the subprogram declaration
1680 -- Next_Named_Actual (Node4-Sem)
1681 -- Present in parameter association nodes. Set during semantic analysis
1682 -- to point to the next named parameter, where parameters are ordered by
1683 -- declaration order (as opposed to the actual order in the call, which
1684 -- may be different due to named associations). Not that this field
1685 -- points to the explicit actual parameter itself, not to the
1686 -- N_Parameter_Association node (its parent).
1688 -- Next_Pragma (Node1-Sem)
1689 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1690 -- nodes. Currently used for two purposes:
1692 -- Create a list of linked Check_Policy pragmas. The head of this list
1693 -- is stored in Opt.Check_Policy_List (which has further details).
1695 -- Used by processing for Pre/Postcondition pragmas to store a list of
1696 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1699 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1700 -- the apply to the same construct. These are visible/private mode for
1701 -- a package spec and declarative/statement mode for package body.
1703 -- Next_Rep_Item (Node5-Sem)
1704 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1705 -- clauses, record rep clauses, aspect specification nodes. Used to link
1706 -- representation items that apply to an entity. See full description of
1707 -- First_Rep_Item field in Einfo for further details.
1709 -- Next_Use_Clause (Node3-Sem)
1710 -- While use clauses are active during semantic processing, they are
1711 -- chained from the scope stack entry, using Next_Use_Clause as a link
1712 -- pointer, with Empty marking the end of the list. The head pointer is
1713 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1714 -- processing (i.e. when Gigi sees the tree, the contents of this field
1715 -- is undefined and should not be read).
1717 -- No_Ctrl_Actions (Flag7-Sem)
1718 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1719 -- Adjust should take place on this assignment even though the RHS is
1720 -- controlled. Also indicates that the primitive _assign should not be
1721 -- used for a tagged assignment. This is used in init procs and aggregate
1722 -- expansions where the generated assignments are initializations, not
1723 -- real assignments.
1725 -- No_Elaboration_Check (Flag14-Sem)
1726 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1727 -- that no elaboration check is needed on the call, because it appears in
1728 -- the context of a local Suppress pragma. This is used on calls within
1729 -- task bodies, where the actual elaboration checks are applied after
1730 -- analysis, when the local scope stack is not present.
1732 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1733 -- Present in N_With_Clause nodes. Set if the with clause is on the
1734 -- package or subprogram spec where the main unit is the corresponding
1735 -- body, and no entities of the with'ed unit are referenced by the spec
1736 -- (an entity may still be referenced in the body, so this flag is used
1737 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1740 -- No_Initialization (Flag13-Sem)
1741 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1742 -- object must not be initialized (by Initialize or call to an init
1743 -- proc). This is needed for controlled aggregates. When the Object
1744 -- declaration has an expression, this flag means that this expression
1745 -- should not be taken into account (needed for in place initialization
1746 -- with aggregates, and for object with an address clause, which are
1747 -- initialized with an assignment at freeze time).
1749 -- No_Minimize_Eliminate (Flag17-Sem)
1750 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1751 -- It is used to indicate that processing for extended overflow checking
1752 -- modes is not required (this is used to prevent infinite recursion).
1754 -- No_Truncation (Flag17-Sem)
1755 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1756 -- only if the RM_Size of the source is greater than the RM_Size of the
1757 -- target for scalar operands. Normally in such a case we truncate some
1758 -- higher order bits of the source, and then sign/zero extend the result
1759 -- to form the output value. But if this flag is set, then we do not do
1760 -- any truncation, so for example, if an 8 bit input is converted to 5
1761 -- bit result which is in fact stored in 8 bits, then the high order
1762 -- three bits of the target result will be copied from the source. This
1763 -- is used for properly setting out of range values for use by pragmas
1764 -- Initialize_Scalars and Normalize_Scalars.
1766 -- Original_Discriminant (Node2-Sem)
1767 -- Present in identifiers. Used in references to discriminants that
1768 -- appear in generic units. Because the names of the discriminants may be
1769 -- different in an instance, we use this field to recover the position of
1770 -- the discriminant in the original type, and replace it with the
1771 -- discriminant at the same position in the instantiated type.
1773 -- Original_Entity (Node2-Sem)
1774 -- Present in numeric literals. Used to denote the named number that has
1775 -- been constant-folded into the given literal. If literal is from
1776 -- source, or the result of some other constant-folding operation, then
1777 -- Original_Entity is empty. This field is needed to handle properly
1778 -- named numbers in generic units, where the Associated_Node field
1779 -- interferes with the Entity field, making it impossible to preserve the
1780 -- original entity at the point of instantiation (ASIS problem).
1782 -- Others_Discrete_Choices (List1-Sem)
1783 -- When a case statement or variant is analyzed, the semantic checks
1784 -- determine the actual list of choices that correspond to an others
1785 -- choice. This list is materialized for later use by the expander and
1786 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1787 -- this materialized list of choices, which is in standard format for a
1788 -- list of discrete choices, except that of course it cannot contain an
1789 -- N_Others_Choice entry.
1791 -- Parameter_List_Truncated (Flag17-Sem)
1792 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1793 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1794 -- a result of a First_Optional_Parameter specification in an
1795 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1796 -- The truncation is done by the expander by removing trailing parameters
1797 -- from the argument list, in accordance with the set of rules allowing
1798 -- such parameter removal. In particular, parameters can be removed
1799 -- working from the end of the parameter list backwards up to and
1800 -- including the entry designated by First_Optional_Parameter in the
1801 -- Import pragma. Parameters can be removed if they are implicit and the
1802 -- default value is a known-at-compile-time value, including the use of
1803 -- the Null_Parameter attribute, or if explicit parameter values are
1804 -- present that match the corresponding defaults.
1806 -- Parent_Spec (Node4-Sem)
1807 -- For a library unit that is a child unit spec (package or subprogram
1808 -- declaration, generic declaration or instantiation, or library level
1809 -- rename, this field points to the compilation unit node for the parent
1810 -- package specification. This field is Empty for library bodies (the
1811 -- parent spec in this case can be found from the corresponding spec).
1813 -- Premature_Use (Node5-Sem)
1814 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1815 -- error diagnostics: if there is a premature usage of an incomplete
1816 -- type, a subsequently generated error message indicates the position
1817 -- of its full declaration.
1819 -- Present_Expr (Uint3-Sem)
1820 -- Present in an N_Variant node. This has a meaningful value only after
1821 -- Gigi has back annotated the tree with representation information. At
1822 -- this point, it contains a reference to a gcc expression that depends
1823 -- on the values of one or more discriminants. Give a set of discriminant
1824 -- values, this expression evaluates to False (zero) if variant is not
1825 -- present, and True (non-zero) if it is present. See unit Repinfo for
1826 -- further details on gigi back annotation. This field is used during
1827 -- ASIS processing (data decomposition annex) to determine if a field is
1830 -- Print_In_Hex (Flag13-Sem)
1831 -- Set on an N_Integer_Literal node to indicate that the value should be
1832 -- printed in hexadecimal in the sprint listing. Has no effect on
1833 -- legality or semantics of program, only on the displayed output. This
1834 -- is used to clarify output from the packed array cases.
1836 -- Procedure_To_Call (Node2-Sem)
1837 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1838 -- and N_Extended_Return_Statement nodes. References the entity for the
1839 -- declaration of the procedure to be called to accomplish the required
1840 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1841 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1842 -- allocating the return value), and for the Deallocate procedure in the
1843 -- case of N_Free_Statement.
1845 -- Raises_Constraint_Error (Flag7-Sem)
1846 -- Set on an expression whose evaluation will definitely fail constraint
1847 -- error check. In the case of static expressions, this flag must be set
1848 -- accurately (and if it is set, the expression is typically illegal
1849 -- unless it appears as a non-elaborated branch of a short-circuit form).
1850 -- For a non-static expression, this flag may be set whenever an
1851 -- expression (e.g. an aggregate) is known to raise constraint error. If
1852 -- set, the expression definitely will raise CE if elaborated at runtime.
1853 -- If not set, the expression may or may not raise CE. In other words, on
1854 -- static expressions, the flag is set accurately, on non-static
1855 -- expressions it is set conservatively.
1857 -- Redundant_Use (Flag13-Sem)
1858 -- Present in nodes that can appear as an operand in a use clause or use
1859 -- type clause (identifiers, expanded names, attribute references). Set
1860 -- to indicate that a use is redundant (and therefore need not be undone
1863 -- Renaming_Exception (Node2-Sem)
1864 -- Present in N_Exception_Declaration node. Used to point back to the
1865 -- exception renaming for an exception declared within a subprogram.
1866 -- What happens is that an exception declared in a subprogram is moved
1867 -- to the library level with a unique name, and the original exception
1868 -- becomes a renaming. This link from the library level exception to the
1869 -- renaming declaration allows registering of the proper exception name.
1871 -- Return_Statement_Entity (Node5-Sem)
1872 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1873 -- Points to an E_Return_Statement representing the return statement.
1875 -- Return_Object_Declarations (List3)
1876 -- Present in N_Extended_Return_Statement. Points to a list initially
1877 -- containing a single N_Object_Declaration representing the return
1878 -- object. We use a list (instead of just a pointer to the object decl)
1879 -- because Analyze wants to insert extra actions on this list.
1881 -- Rounded_Result (Flag18-Sem)
1882 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1883 -- Used in the fixed-point cases to indicate that the result must be
1884 -- rounded as a result of the use of the 'Round attribute. Also used for
1885 -- integer N_Op_Divide nodes to indicate that the result should be
1886 -- rounded to the nearest integer (breaking ties away from zero), rather
1887 -- than truncated towards zero as usual. These rounded integer operations
1888 -- are the result of expansion of rounded fixed-point divide, conversion
1889 -- and multiplication operations.
1891 -- SCIL_Entity (Node4-Sem)
1892 -- Present in SCIL nodes. Used to reference the tagged type associated
1893 -- with the SCIL node.
1895 -- SCIL_Controlling_Tag (Node5-Sem)
1896 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1897 -- controlling tag of a dispatching call.
1899 -- SCIL_Tag_Value (Node5-Sem)
1900 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1901 -- value that is being tested.
1903 -- SCIL_Target_Prim (Node2-Sem)
1904 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1905 -- type primitive associated with the SCIL node.
1907 -- Scope (Node3-Sem)
1908 -- Present in defining identifiers, defining character literals and
1909 -- defining operator symbols (i.e. in all entities). The entities of a
1910 -- scope all use this field to reference the corresponding scope entity.
1911 -- See Einfo for further details.
1913 -- Shift_Count_OK (Flag4-Sem)
1914 -- A flag present in shift nodes to indicate that the shift count is
1915 -- known to be in range, i.e. is in the range from zero to word length
1916 -- minus one. If this flag is not set, then the shift count may be
1917 -- outside this range, i.e. larger than the word length, and the code
1918 -- must ensure that such shift counts give the appropriate result.
1920 -- Source_Type (Node1-Sem)
1921 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1922 -- source type entity for the unchecked conversion instantiation
1923 -- which gigi must do size validation for.
1925 -- Split_PPC (Flag17)
1926 -- When a Pre or Post aspect specification is processed, it is broken
1927 -- into AND THEN sections. The left most section has Split_PPC set to
1928 -- False, indicating that it is the original specification (e.g. for
1929 -- posting errors). For other sections, Split_PPC is set to True.
1930 -- This flag is set in both the N_Aspect_Specification node itself,
1931 -- and in the pragma which is generated from this node.
1933 -- Storage_Pool (Node1-Sem)
1934 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1935 -- and N_Extended_Return_Statement nodes. References the entity for the
1936 -- storage pool to be used for the allocate or free call or for the
1937 -- allocation of the returned value from function. Empty indicates that
1938 -- the global default pool is to be used. Note that in the case
1939 -- of a return statement, this field is set only if the function returns
1940 -- value of a type whose size is not known at compile time on the
1943 -- Suppress_Assignment_Checks (Flag18-Sem)
1944 -- Used in generated N_Assignment_Statement nodes to suppress predicate
1945 -- and range checks in cases where the generated code knows that the
1946 -- value being assigned is in range and satisfies any predicate. Also
1947 -- can be set in N_Object_Declaration nodes, to similarly suppress any
1948 -- checks on the initializing value.
1950 -- Suppress_Loop_Warnings (Flag17-Sem)
1951 -- Used in N_Loop_Statement node to indicate that warnings within the
1952 -- body of the loop should be suppressed. This is set when the range
1953 -- of a FOR loop is known to be null, or is probably null (loop would
1954 -- only execute if invalid values are present).
1956 -- Target_Type (Node2-Sem)
1957 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1958 -- type entity for the unchecked conversion instantiation which gigi must
1959 -- do size validation for.
1961 -- Then_Actions (List3-Sem)
1962 -- This field is present in if expression nodes. During code expansion
1963 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
1964 -- at an appropriate place in the tree to get elaborated at the right
1965 -- time. For if expressions, we have to be sure that the actions for
1966 -- for the Then branch are only elaborated if the condition is True.
1967 -- The Then_Actions field is used as a temporary parking place for
1968 -- these actions. The final tree is always rewritten to eliminate the
1969 -- need for this field, so in the tree passed to Gigi, this field is
1970 -- always set to No_List.
1972 -- Treat_Fixed_As_Integer (Flag14-Sem)
1973 -- This flag appears in operator nodes for divide, multiply, mod and rem
1974 -- on fixed-point operands. It indicates that the operands are to be
1975 -- treated as integer values, ignoring small values. This flag is only
1976 -- set as a result of expansion of fixed-point operations. Typically a
1977 -- fixed-point multiplication in the source generates subsidiary
1978 -- multiplication and division operations that work with the underlying
1979 -- integer values and have this flag set. Note that this flag is not
1980 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1981 -- in these cases it is always the case that fixed is treated as integer.
1982 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1983 -- leave such nodes alone, and whoever makes them must set the correct
1986 -- TSS_Elist (Elist3-Sem)
1987 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1988 -- entries for each TSS (type support subprogram) associated with the
1989 -- frozen type. The elements of the list are the entities for the
1990 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1991 -- if there are no type support subprograms for the type or if the freeze
1992 -- node is not for a type.
1994 -- Unreferenced_In_Spec (Flag7-Sem)
1995 -- Present in N_With_Clause nodes. Set if the with clause is on the
1996 -- package or subprogram spec where the main unit is the corresponding
1997 -- body, and is not referenced by the spec (it may still be referenced by
1998 -- the body, so this flag is used to generate the proper message (see
1999 -- Sem_Util.Check_Unused_Withs for details)
2001 -- Used_Operations (Elist5-Sem)
2002 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2003 -- are made potentially use-visible by the clause. Simplifies processing
2004 -- on exit from the scope of the use_type_clause, in particular in the
2005 -- case of Use_All_Type, when those operations several scopes.
2007 -- Was_Originally_Stub (Flag13-Sem)
2008 -- This flag is set in the node for a proper body that replaces stub.
2009 -- During the analysis procedure, stubs in some situations get rewritten
2010 -- by the corresponding bodies, and we set this flag to remember that
2011 -- this happened. Note that it is not good enough to rely on the use of
2012 -- Original_Node here because of the case of nested instantiations where
2013 -- the substituted node can be copied.
2015 -- Withed_Body (Node1-Sem)
2016 -- Present in N_With_Clause nodes. Set if the unit in whose context
2017 -- the with_clause appears instantiates a generic contained in the
2018 -- library unit of the with_clause and as a result loads its body.
2019 -- Used for a more precise unit traversal for CodePeer.
2021 --------------------------------------------------
2022 -- Note on Use of End_Label and End_Span Fields --
2023 --------------------------------------------------
2025 -- Several constructs have end lines:
2027 -- Loop Statement end loop [loop_IDENTIFIER];
2028 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2029 -- Task Definition end [task_IDENTIFIER]
2030 -- Protected Definition end [protected_IDENTIFIER]
2031 -- Protected Body end [protected_IDENTIFIER]
2033 -- Block Statement end [block_IDENTIFIER];
2034 -- Subprogram Body end [DESIGNATOR];
2035 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2036 -- Task Body end [task_IDENTIFIER];
2037 -- Accept Statement end [entry_IDENTIFIER]];
2038 -- Entry Body end [entry_IDENTIFIER];
2040 -- If Statement end if;
2041 -- Case Statement end case;
2043 -- Record Definition end record;
2044 -- Enumeration Definition );
2046 -- The End_Label and End_Span fields are used to mark the locations of
2047 -- these lines, and also keep track of the label in the case where a label
2050 -- For the first group above, the End_Label field of the corresponding node
2051 -- is used to point to the label identifier. In the case where there is no
2052 -- label in the source, the parser supplies a dummy identifier (with
2053 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2054 -- marks the location of the token following the END token.
2056 -- For the second group, the use of End_Label is similar, but the End_Label
2057 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2058 -- simply because in some cases there is no room in the parent node.
2060 -- For the third group, there is never any label, and instead of using
2061 -- End_Label, we use the End_Span field which gives the location of the
2062 -- token following END, relative to the starting Sloc of the construct,
2063 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2064 -- following the End_Label.
2066 -- The record definition case is handled specially, we treat it as though
2067 -- it required an optional label which is never present, and so the parser
2068 -- always builds a dummy identifier with Comes From Source set False. The
2069 -- reason we do this, rather than using End_Span in this case, is that we
2070 -- want to generate a cross-ref entry for the end of a record, since it
2071 -- represents a scope for name declaration purposes.
2073 -- The enumeration definition case is handled in an exactly similar manner,
2074 -- building a dummy identifier to get a cross-reference.
2076 -- Note: the reason we store the difference as a Uint, instead of storing
2077 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2078 -- distinguished from other types of values, and we count on all general
2079 -- use fields being self describing. To make things easier for clients,
2080 -- note that we provide function End_Location, and procedure
2081 -- Set_End_Location to allow access to the logical value (which is the
2082 -- Source_Ptr value for the end token).
2084 ---------------------
2085 -- Syntactic Nodes --
2086 ---------------------
2088 ---------------------
2089 -- 2.3 Identifier --
2090 ---------------------
2092 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2093 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2095 -- An IDENTIFIER shall not be a reserved word
2097 -- In the Ada grammar identifiers are the bottom level tokens which have
2098 -- very few semantics. Actual program identifiers are direct names. If
2099 -- we were being 100% honest with the grammar, then we would have a node
2100 -- called N_Direct_Name which would point to an identifier. However,
2101 -- that's too many extra nodes, so we just use the N_Identifier node
2102 -- directly as a direct name, and it contains the expression fields and
2103 -- Entity field that correspond to its use as a direct name. In those
2104 -- few cases where identifiers appear in contexts where they are not
2105 -- direct names (pragmas, pragma argument associations, attribute
2106 -- references and attribute definition clauses), the Chars field of the
2107 -- node contains the Name_Id for the identifier name.
2109 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2110 -- cases. First, an incorrect use of a reserved word as an identifier is
2111 -- diagnosed and then treated as a normal identifier. Second, an
2112 -- attribute designator of the form of a reserved word (access, delta,
2113 -- digits, range) is treated as an identifier.
2115 -- Note: The set of letters that is permitted in an identifier depends
2116 -- on the character set in use. See package Csets for full details.
2119 -- Sloc points to identifier
2120 -- Chars (Name1) contains the Name_Id for the identifier
2121 -- Entity (Node4-Sem)
2122 -- Associated_Node (Node4-Sem)
2123 -- Original_Discriminant (Node2-Sem)
2124 -- Redundant_Use (Flag13-Sem)
2125 -- Atomic_Sync_Required (Flag14-Sem)
2126 -- Has_Private_View (Flag11-Sem) (set in generic units)
2127 -- plus fields for expression
2129 --------------------------
2130 -- 2.4 Numeric Literal --
2131 --------------------------
2133 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2135 ----------------------------
2136 -- 2.4.1 Decimal Literal --
2137 ----------------------------
2139 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2141 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2143 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2145 -- Decimal literals appear in the tree as either integer literal nodes
2146 -- or real literal nodes, depending on whether a period is present.
2148 -- Note: literal nodes appear as a result of direct use of literals
2149 -- in the source program, and also as the result of evaluating
2150 -- expressions at compile time. In the latter case, it is possible
2151 -- to construct real literals that have no syntactic representation
2152 -- using the standard literal format. Such literals are listed by
2153 -- Sprint using the notation [numerator / denominator].
2155 -- Note: the value of an integer literal node created by the front end
2156 -- is never outside the range of values of the base type. However, it
2157 -- can be the case that the created value is outside the range of the
2158 -- particular subtype. This happens in the case of integer overflows
2159 -- with checks suppressed.
2161 -- N_Integer_Literal
2162 -- Sloc points to literal
2163 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2164 -- has been constant-folded into its literal value.
2165 -- Intval (Uint3) contains integer value of literal
2166 -- plus fields for expression
2167 -- Print_In_Hex (Flag13-Sem)
2170 -- Sloc points to literal
2171 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2172 -- has been constant-folded into its literal value.
2173 -- Realval (Ureal3) contains real value of literal
2174 -- Corresponding_Integer_Value (Uint4-Sem)
2175 -- Is_Machine_Number (Flag11-Sem)
2176 -- plus fields for expression
2178 --------------------------
2179 -- 2.4.2 Based Literal --
2180 --------------------------
2182 -- BASED_LITERAL ::=
2183 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2187 -- BASED_NUMERAL ::=
2188 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2190 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2192 -- Based literals appear in the tree as either integer literal nodes
2193 -- or real literal nodes, depending on whether a period is present.
2195 ----------------------------
2196 -- 2.5 Character Literal --
2197 ----------------------------
2199 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2201 -- N_Character_Literal
2202 -- Sloc points to literal
2203 -- Chars (Name1) contains the Name_Id for the identifier
2204 -- Char_Literal_Value (Uint2) contains the literal value
2205 -- Entity (Node4-Sem)
2206 -- Associated_Node (Node4-Sem)
2207 -- Has_Private_View (Flag11-Sem) set in generic units.
2208 -- plus fields for expression
2210 -- Note: the Entity field will be missing (set to Empty) for character
2211 -- literals whose type is Standard.Wide_Character or Standard.Character
2212 -- or a type derived from one of these two. In this case the character
2213 -- literal stands for its own coding. The reason we take this irregular
2214 -- short cut is to avoid the need to build lots of junk defining
2215 -- character literal nodes.
2217 -------------------------
2218 -- 2.6 String Literal --
2219 -------------------------
2221 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2223 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2224 -- single GRAPHIC_CHARACTER other than a quotation mark.
2226 -- Is_Folded_In_Parser is True if the parser created this literal by
2227 -- folding a sequence of "&" operators. For example, if the source code
2228 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2229 -- is set. This flag is needed because the parser doesn't know about
2230 -- visibility, so the folded result might be wrong, and semantic
2231 -- analysis needs to check for that.
2234 -- Sloc points to literal
2235 -- Strval (Str3) contains Id of string value
2236 -- Has_Wide_Character (Flag11-Sem)
2237 -- Has_Wide_Wide_Character (Flag13-Sem)
2238 -- Is_Folded_In_Parser (Flag4)
2239 -- plus fields for expression
2245 -- A COMMENT starts with two adjacent hyphens and extends up to the
2246 -- end of the line. A COMMENT may appear on any line of a program.
2248 -- Comments are skipped by the scanner and do not appear in the tree.
2249 -- It is possible to reconstruct the position of comments with respect
2250 -- to the elements of the tree by using the source position (Sloc)
2251 -- pointers that appear in every tree node.
2257 -- PRAGMA ::= pragma IDENTIFIER
2258 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2260 -- Note that a pragma may appear in the tree anywhere a declaration
2261 -- or a statement may appear, as well as in some other situations
2262 -- which are explicitly documented.
2265 -- Sloc points to PRAGMA
2266 -- Next_Pragma (Node1-Sem)
2267 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2268 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2269 -- Pragma_Identifier (Node4)
2270 -- Next_Rep_Item (Node5-Sem)
2271 -- Class_Present (Flag6) set if from Aspect with 'Class
2272 -- From_Aspect_Specification (Flag13-Sem)
2273 -- Is_Delayed_Aspect (Flag14-Sem)
2274 -- Is_Disabled (Flag15-Sem)
2275 -- Is_Ignored (Flag9-Sem)
2276 -- Is_Checked (Flag11-Sem)
2277 -- Import_Interface_Present (Flag16-Sem)
2278 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2280 -- Note: we should have a section on what pragmas are passed on to
2281 -- the back end to be processed. This section should note that pragma
2282 -- Psect_Object is always converted to Common_Object, but there are
2283 -- undoubtedly many other similar notes required ???
2285 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2286 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2288 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2289 -- aspect name, as does the Pragma_Identifier. In this case if the
2290 -- pragma has a local name argument (such as pragma Inline), it is
2291 -- resolved to point to the specific entity affected by the pragma.
2293 --------------------------------------
2294 -- 2.8 Pragma Argument Association --
2295 --------------------------------------
2297 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2298 -- [pragma_argument_IDENTIFIER =>] NAME
2299 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2301 -- In Ada 2012, there are two more possibilities:
2303 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2304 -- [pragma_argument_ASPECT_MARK =>] NAME
2305 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2307 -- where the interesting allowed cases (which do not fit the syntax of
2308 -- the first alternative above) are
2310 -- ASPECT_MARK => Pre'Class |
2312 -- Type_Invariant'Class |
2315 -- We allow this special usage in all Ada modes, but it would be a
2316 -- pain to allow these aspects to pervade the pragma syntax, and the
2317 -- representation of pragma nodes internally. So what we do is to
2318 -- replace these ASPECT_MARK forms with identifiers whose name is one
2319 -- of the special internal names _Pre, _Post or _Type_Invariant.
2321 -- We do a similar replacement of these Aspect_Mark forms in the
2322 -- Expression of a pragma argument association for the cases of
2323 -- the first arguments of any Check pragmas and Check_Policy pragmas
2325 -- N_Pragma_Argument_Association
2326 -- Sloc points to first token in association
2327 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2328 -- Expression (Node3)
2330 ------------------------
2331 -- 2.9 Reserved Word --
2332 ------------------------
2334 -- Reserved words are parsed by the scanner, and returned as the
2335 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2337 ----------------------------
2338 -- 3.1 Basic Declaration --
2339 ----------------------------
2341 -- BASIC_DECLARATION ::=
2342 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2343 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2344 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2345 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2346 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2347 -- | GENERIC_INSTANTIATION
2349 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2350 -- see further description in section on semantic nodes.
2352 -- Also, in the tree that is constructed, a pragma may appear
2353 -- anywhere that a declaration may appear.
2355 ------------------------------
2356 -- 3.1 Defining Identifier --
2357 ------------------------------
2359 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2361 -- A defining identifier is an entity, which has additional fields
2362 -- depending on the setting of the Ekind field. These additional
2363 -- fields are defined (and access subprograms declared) in package
2366 -- Note: N_Defining_Identifier is an extended node whose fields are
2367 -- deliberate layed out to match the layout of fields in an ordinary
2368 -- N_Identifier node allowing for easy alteration of an identifier
2369 -- node into a defining identifier node. For details, see procedure
2370 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2372 -- N_Defining_Identifier
2373 -- Sloc points to identifier
2374 -- Chars (Name1) contains the Name_Id for the identifier
2375 -- Next_Entity (Node2-Sem)
2376 -- Scope (Node3-Sem)
2377 -- Etype (Node5-Sem)
2379 -----------------------------
2380 -- 3.2.1 Type Declaration --
2381 -----------------------------
2383 -- TYPE_DECLARATION ::=
2384 -- FULL_TYPE_DECLARATION
2385 -- | INCOMPLETE_TYPE_DECLARATION
2386 -- | PRIVATE_TYPE_DECLARATION
2387 -- | PRIVATE_EXTENSION_DECLARATION
2389 ----------------------------------
2390 -- 3.2.1 Full Type Declaration --
2391 ----------------------------------
2393 -- FULL_TYPE_DECLARATION ::=
2394 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2395 -- is TYPE_DEFINITION
2396 -- [ASPECT_SPECIFICATIONS];
2397 -- | TASK_TYPE_DECLARATION
2398 -- | PROTECTED_TYPE_DECLARATION
2400 -- The full type declaration node is used only for the first case. The
2401 -- second case (concurrent type declaration), is represented directly
2402 -- by a task type declaration or a protected type declaration.
2404 -- N_Full_Type_Declaration
2405 -- Sloc points to TYPE
2406 -- Defining_Identifier (Node1)
2407 -- Discriminant_Specifications (List4) (set to No_List if none)
2408 -- Type_Definition (Node3)
2409 -- Discr_Check_Funcs_Built (Flag11-Sem)
2411 ----------------------------
2412 -- 3.2.1 Type Definition --
2413 ----------------------------
2415 -- TYPE_DEFINITION ::=
2416 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2417 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2418 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2419 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2421 --------------------------------
2422 -- 3.2.2 Subtype Declaration --
2423 --------------------------------
2425 -- SUBTYPE_DECLARATION ::=
2426 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2427 -- [ASPECT_SPECIFICATIONS];
2429 -- The subtype indication field is set to Empty for subtypes
2430 -- declared in package Standard (Positive, Natural).
2432 -- N_Subtype_Declaration
2433 -- Sloc points to SUBTYPE
2434 -- Defining_Identifier (Node1)
2435 -- Null_Exclusion_Present (Flag11)
2436 -- Subtype_Indication (Node5)
2437 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2438 -- Exception_Junk (Flag8-Sem)
2439 -- Has_Dynamic_Range_Check (Flag12-Sem)
2441 -------------------------------
2442 -- 3.2.2 Subtype Indication --
2443 -------------------------------
2445 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2447 -- Note: if no constraint is present, the subtype indication appears
2448 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2449 -- node is used only if a constraint is present.
2451 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2452 -- with the null-exclusion part (see AI-231), we had to introduce a new
2453 -- attribute in all the parents of subtype_indication nodes to indicate
2454 -- if the null-exclusion is present.
2456 -- Note: the reason that this node has expression fields is that a
2457 -- subtype indication can appear as an operand of a membership test.
2459 -- N_Subtype_Indication
2460 -- Sloc points to first token of subtype mark
2461 -- Subtype_Mark (Node4)
2462 -- Constraint (Node3)
2463 -- Etype (Node5-Sem)
2464 -- Must_Not_Freeze (Flag8-Sem)
2466 -- Note: Depending on context, the Etype is either the entity of the
2467 -- Subtype_Mark field, or it is an itype constructed to reify the
2468 -- subtype indication. In particular, such itypes are created for a
2469 -- subtype indication that appears in an array type declaration. This
2470 -- simplifies constraint checking in indexed components.
2472 -- For subtype indications that appear in scalar type and subtype
2473 -- declarations, the Etype is the entity of the subtype mark.
2475 -------------------------
2476 -- 3.2.2 Subtype Mark --
2477 -------------------------
2479 -- SUBTYPE_MARK ::= subtype_NAME
2481 -----------------------
2482 -- 3.2.2 Constraint --
2483 -----------------------
2485 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2487 ------------------------------
2488 -- 3.2.2 Scalar Constraint --
2489 ------------------------------
2491 -- SCALAR_CONSTRAINT ::=
2492 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2494 ---------------------------------
2495 -- 3.2.2 Composite Constraint --
2496 ---------------------------------
2498 -- COMPOSITE_CONSTRAINT ::=
2499 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2501 -------------------------------
2502 -- 3.3.1 Object Declaration --
2503 -------------------------------
2505 -- OBJECT_DECLARATION ::=
2506 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2507 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2508 -- [ASPECT_SPECIFICATIONS];
2509 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2510 -- ACCESS_DEFINITION [:= EXPRESSION]
2511 -- [ASPECT_SPECIFICATIONS];
2512 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2513 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2514 -- [ASPECT_SPECIFICATIONS];
2515 -- | SINGLE_TASK_DECLARATION
2516 -- | SINGLE_PROTECTED_DECLARATION
2518 -- Note: aliased is not permitted in Ada 83 mode
2520 -- The N_Object_Declaration node is only for the first two cases.
2521 -- Single task declaration is handled by P_Task (9.1)
2522 -- Single protected declaration is handled by P_protected (9.5)
2524 -- Although the syntax allows multiple identifiers in the list, the
2525 -- semantics is as though successive declarations were given with
2526 -- identical type definition and expression components. To simplify
2527 -- semantic processing, the parser represents a multiple declaration
2528 -- case as a sequence of single declarations, using the More_Ids and
2529 -- Prev_Ids flags to preserve the original source form as described
2530 -- in the section on "Handling of Defining Identifier Lists".
2532 -- The flag Has_Init_Expression is set if an initializing expression
2533 -- is present. Normally it is set if and only if Expression contains
2534 -- a non-empty value, but there is an exception to this. When the
2535 -- initializing expression is an aggregate which requires explicit
2536 -- assignments, the Expression field gets set to Empty, but this flag
2537 -- is still set, so we don't forget we had an initializing expression.
2539 -- Note: if a range check is required for the initialization
2540 -- expression then the Do_Range_Check flag is set in the Expression,
2541 -- with the check being done against the type given by the object
2542 -- definition, which is also the Etype of the defining identifier.
2544 -- Note: the contents of the Expression field must be ignored (i.e.
2545 -- treated as though it were Empty) if No_Initialization is set True.
2547 -- Note: the back end places some restrictions on the form of the
2548 -- Expression field. If the object being declared is Atomic, then
2549 -- the Expression may not have the form of an aggregate (since this
2550 -- might cause the back end to generate separate assignments). In this
2551 -- case the front end must generate an extra temporary and initialize
2552 -- this temporary as required (the temporary itself is not atomic).
2554 -- Note: there is not node kind for object definition. Instead, the
2555 -- corresponding field holds a subtype indication, an array type
2556 -- definition, or (Ada 2005, AI-406) an access definition.
2558 -- N_Object_Declaration
2559 -- Sloc points to first identifier
2560 -- Defining_Identifier (Node1)
2561 -- Aliased_Present (Flag4)
2562 -- Constant_Present (Flag17) set if CONSTANT appears
2563 -- Null_Exclusion_Present (Flag11)
2564 -- Object_Definition (Node4) subtype indic./array type def./access def.
2565 -- Expression (Node3) (set to Empty if not present)
2566 -- Handler_List_Entry (Node2-Sem)
2567 -- Corresponding_Generic_Association (Node5-Sem)
2568 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2569 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2570 -- No_Initialization (Flag13-Sem)
2571 -- Assignment_OK (Flag15-Sem)
2572 -- Exception_Junk (Flag8-Sem)
2573 -- Is_Subprogram_Descriptor (Flag16-Sem)
2574 -- Has_Init_Expression (Flag14)
2575 -- Suppress_Assignment_Checks (Flag18-Sem)
2577 -------------------------------------
2578 -- 3.3.1 Defining Identifier List --
2579 -------------------------------------
2581 -- DEFINING_IDENTIFIER_LIST ::=
2582 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2584 -------------------------------
2585 -- 3.3.2 Number Declaration --
2586 -------------------------------
2588 -- NUMBER_DECLARATION ::=
2589 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2591 -- Although the syntax allows multiple identifiers in the list, the
2592 -- semantics is as though successive declarations were given with
2593 -- identical expressions. To simplify semantic processing, the parser
2594 -- represents a multiple declaration case as a sequence of single
2595 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2596 -- the original source form as described in the section on "Handling
2597 -- of Defining Identifier Lists".
2599 -- N_Number_Declaration
2600 -- Sloc points to first identifier
2601 -- Defining_Identifier (Node1)
2602 -- Expression (Node3)
2603 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2604 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2606 ----------------------------------
2607 -- 3.4 Derived Type Definition --
2608 ----------------------------------
2610 -- DERIVED_TYPE_DEFINITION ::=
2611 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2612 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2614 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2617 -- Note: a record extension part is required if ABSTRACT is present
2619 -- N_Derived_Type_Definition
2620 -- Sloc points to NEW
2621 -- Abstract_Present (Flag4)
2622 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2623 -- Subtype_Indication (Node5)
2624 -- Record_Extension_Part (Node3) (set to Empty if not present)
2625 -- Limited_Present (Flag17)
2626 -- Task_Present (Flag5) set in task interfaces
2627 -- Protected_Present (Flag6) set in protected interfaces
2628 -- Synchronized_Present (Flag7) set in interfaces
2629 -- Interface_List (List2) (set to No_List if none)
2630 -- Interface_Present (Flag16) set in abstract interfaces
2632 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2633 -- Interface_List, and Interface_Present are used for abstract
2634 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2636 ---------------------------
2637 -- 3.5 Range Constraint --
2638 ---------------------------
2640 -- RANGE_CONSTRAINT ::= range RANGE
2642 -- N_Range_Constraint
2643 -- Sloc points to RANGE
2644 -- Range_Expression (Node4)
2651 -- RANGE_ATTRIBUTE_REFERENCE
2652 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2654 -- Note: the case of a range given as a range attribute reference
2655 -- appears directly in the tree as an attribute reference.
2657 -- Note: the field name for a reference to a range is Range_Expression
2658 -- rather than Range, because range is a reserved keyword in Ada!
2660 -- Note: the reason that this node has expression fields is that a
2661 -- range can appear as an operand of a membership test. The Etype
2662 -- field is the type of the range (we do NOT construct an implicit
2663 -- subtype to represent the range exactly).
2666 -- Sloc points to ..
2667 -- Low_Bound (Node1)
2668 -- High_Bound (Node2)
2669 -- Includes_Infinities (Flag11)
2670 -- plus fields for expression
2672 -- Note: if the range appears in a context, such as a subtype
2673 -- declaration, where range checks are required on one or both of
2674 -- the expression fields, then type conversion nodes are inserted
2675 -- to represent the required checks.
2677 ----------------------------------------
2678 -- 3.5.1 Enumeration Type Definition --
2679 ----------------------------------------
2681 -- ENUMERATION_TYPE_DEFINITION ::=
2682 -- (ENUMERATION_LITERAL_SPECIFICATION
2683 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2685 -- Note: the Literals field in the node described below is null for
2686 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2687 -- which special processing handles these types as special cases.
2689 -- N_Enumeration_Type_Definition
2690 -- Sloc points to left parenthesis
2691 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2692 -- End_Label (Node4) (set to Empty if internally generated record)
2694 ----------------------------------------------
2695 -- 3.5.1 Enumeration Literal Specification --
2696 ----------------------------------------------
2698 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2699 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2701 ---------------------------------------
2702 -- 3.5.1 Defining Character Literal --
2703 ---------------------------------------
2705 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2707 -- A defining character literal is an entity, which has additional
2708 -- fields depending on the setting of the Ekind field. These
2709 -- additional fields are defined (and access subprograms declared)
2710 -- in package Einfo.
2712 -- Note: N_Defining_Character_Literal is an extended node whose fields
2713 -- are deliberate layed out to match the layout of fields in an ordinary
2714 -- N_Character_Literal node allowing for easy alteration of a character
2715 -- literal node into a defining character literal node. For details, see
2716 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2718 -- N_Defining_Character_Literal
2719 -- Sloc points to literal
2720 -- Chars (Name1) contains the Name_Id for the identifier
2721 -- Next_Entity (Node2-Sem)
2722 -- Scope (Node3-Sem)
2723 -- Etype (Node5-Sem)
2725 ------------------------------------
2726 -- 3.5.4 Integer Type Definition --
2727 ------------------------------------
2729 -- Note: there is an error in this rule in the latest version of the
2730 -- grammar, so we have retained the old rule pending clarification.
2732 -- INTEGER_TYPE_DEFINITION ::=
2733 -- SIGNED_INTEGER_TYPE_DEFINITION
2734 -- | MODULAR_TYPE_DEFINITION
2736 -------------------------------------------
2737 -- 3.5.4 Signed Integer Type Definition --
2738 -------------------------------------------
2740 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2741 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2743 -- Note: the Low_Bound and High_Bound fields are set to Empty
2744 -- for integer types defined in package Standard.
2746 -- N_Signed_Integer_Type_Definition
2747 -- Sloc points to RANGE
2748 -- Low_Bound (Node1)
2749 -- High_Bound (Node2)
2751 ------------------------------------
2752 -- 3.5.4 Modular Type Definition --
2753 ------------------------------------
2755 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2757 -- N_Modular_Type_Definition
2758 -- Sloc points to MOD
2759 -- Expression (Node3)
2761 ---------------------------------
2762 -- 3.5.6 Real Type Definition --
2763 ---------------------------------
2765 -- REAL_TYPE_DEFINITION ::=
2766 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2768 --------------------------------------
2769 -- 3.5.7 Floating Point Definition --
2770 --------------------------------------
2772 -- FLOATING_POINT_DEFINITION ::=
2773 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2775 -- Note: The Digits_Expression and Real_Range_Specifications fields
2776 -- are set to Empty for floating-point types declared in Standard.
2778 -- N_Floating_Point_Definition
2779 -- Sloc points to DIGITS
2780 -- Digits_Expression (Node2)
2781 -- Real_Range_Specification (Node4) (set to Empty if not present)
2783 -------------------------------------
2784 -- 3.5.7 Real Range Specification --
2785 -------------------------------------
2787 -- REAL_RANGE_SPECIFICATION ::=
2788 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2790 -- N_Real_Range_Specification
2791 -- Sloc points to RANGE
2792 -- Low_Bound (Node1)
2793 -- High_Bound (Node2)
2795 -----------------------------------
2796 -- 3.5.9 Fixed Point Definition --
2797 -----------------------------------
2799 -- FIXED_POINT_DEFINITION ::=
2800 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2802 --------------------------------------------
2803 -- 3.5.9 Ordinary Fixed Point Definition --
2804 --------------------------------------------
2806 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2807 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2809 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2811 -- N_Ordinary_Fixed_Point_Definition
2812 -- Sloc points to DELTA
2813 -- Delta_Expression (Node3)
2814 -- Real_Range_Specification (Node4)
2816 -------------------------------------------
2817 -- 3.5.9 Decimal Fixed Point Definition --
2818 -------------------------------------------
2820 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2821 -- delta static_EXPRESSION
2822 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2824 -- Note: decimal types are not permitted in Ada 83 mode
2826 -- N_Decimal_Fixed_Point_Definition
2827 -- Sloc points to DELTA
2828 -- Delta_Expression (Node3)
2829 -- Digits_Expression (Node2)
2830 -- Real_Range_Specification (Node4) (set to Empty if not present)
2832 ------------------------------
2833 -- 3.5.9 Digits Constraint --
2834 ------------------------------
2836 -- DIGITS_CONSTRAINT ::=
2837 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2839 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2840 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2842 -- N_Digits_Constraint
2843 -- Sloc points to DIGITS
2844 -- Digits_Expression (Node2)
2845 -- Range_Constraint (Node4) (set to Empty if not present)
2847 --------------------------------
2848 -- 3.6 Array Type Definition --
2849 --------------------------------
2851 -- ARRAY_TYPE_DEFINITION ::=
2852 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2854 -----------------------------------------
2855 -- 3.6 Unconstrained Array Definition --
2856 -----------------------------------------
2858 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2859 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2860 -- COMPONENT_DEFINITION
2862 -- Note: dimensionality of array is indicated by number of entries in
2863 -- the Subtype_Marks list, which has one entry for each dimension.
2865 -- N_Unconstrained_Array_Definition
2866 -- Sloc points to ARRAY
2867 -- Subtype_Marks (List2)
2868 -- Component_Definition (Node4)
2870 -----------------------------------
2871 -- 3.6 Index Subtype Definition --
2872 -----------------------------------
2874 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2876 -- There is no explicit node in the tree for an index subtype
2877 -- definition since the N_Unconstrained_Array_Definition node
2878 -- incorporates the type marks which appear in this context.
2880 ---------------------------------------
2881 -- 3.6 Constrained Array Definition --
2882 ---------------------------------------
2884 -- CONSTRAINED_ARRAY_DEFINITION ::=
2885 -- array (DISCRETE_SUBTYPE_DEFINITION
2886 -- {, DISCRETE_SUBTYPE_DEFINITION})
2887 -- of COMPONENT_DEFINITION
2889 -- Note: dimensionality of array is indicated by number of entries
2890 -- in the Discrete_Subtype_Definitions list, which has one entry
2891 -- for each dimension.
2893 -- N_Constrained_Array_Definition
2894 -- Sloc points to ARRAY
2895 -- Discrete_Subtype_Definitions (List2)
2896 -- Component_Definition (Node4)
2898 --------------------------------------
2899 -- 3.6 Discrete Subtype Definition --
2900 --------------------------------------
2902 -- DISCRETE_SUBTYPE_DEFINITION ::=
2903 -- discrete_SUBTYPE_INDICATION | RANGE
2905 -------------------------------
2906 -- 3.6 Component Definition --
2907 -------------------------------
2909 -- COMPONENT_DEFINITION ::=
2910 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2912 -- Note: although the syntax does not permit a component definition to
2913 -- be an anonymous array (and the parser will diagnose such an attempt
2914 -- with an appropriate message), it is possible for anonymous arrays
2915 -- to appear as component definitions. The semantics and back end handle
2916 -- this case properly, and the expander in fact generates such cases.
2917 -- Access_Definition is an optional field that gives support to
2918 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2919 -- Subtype_Indication field or else the Access_Definition field.
2921 -- N_Component_Definition
2922 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2923 -- Aliased_Present (Flag4)
2924 -- Null_Exclusion_Present (Flag11)
2925 -- Subtype_Indication (Node5) (set to Empty if not present)
2926 -- Access_Definition (Node3) (set to Empty if not present)
2928 -----------------------------
2929 -- 3.6.1 Index Constraint --
2930 -----------------------------
2932 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2934 -- It is not in general possible to distinguish between discriminant
2935 -- constraints and index constraints at parse time, since a simple
2936 -- name could be either the subtype mark of a discrete range, or an
2937 -- expression in a discriminant association with no name. Either
2938 -- entry appears simply as the name, and the semantic parse must
2939 -- distinguish between the two cases. Thus we use a common tree
2940 -- node format for both of these constraint types.
2942 -- See Discriminant_Constraint for format of node
2944 ---------------------------
2945 -- 3.6.1 Discrete Range --
2946 ---------------------------
2948 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2950 ----------------------------
2951 -- 3.7 Discriminant Part --
2952 ----------------------------
2954 -- DISCRIMINANT_PART ::=
2955 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2957 ------------------------------------
2958 -- 3.7 Unknown Discriminant Part --
2959 ------------------------------------
2961 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2963 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2965 -- There is no explicit node in the tree for an unknown discriminant
2966 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2969 ----------------------------------
2970 -- 3.7 Known Discriminant Part --
2971 ----------------------------------
2973 -- KNOWN_DISCRIMINANT_PART ::=
2974 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2976 -------------------------------------
2977 -- 3.7 Discriminant Specification --
2978 -------------------------------------
2980 -- DISCRIMINANT_SPECIFICATION ::=
2981 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2982 -- [:= DEFAULT_EXPRESSION]
2983 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2984 -- [:= DEFAULT_EXPRESSION]
2986 -- Although the syntax allows multiple identifiers in the list, the
2987 -- semantics is as though successive specifications were given with
2988 -- identical type definition and expression components. To simplify
2989 -- semantic processing, the parser represents a multiple declaration
2990 -- case as a sequence of single specifications, using the More_Ids and
2991 -- Prev_Ids flags to preserve the original source form as described
2992 -- in the section on "Handling of Defining Identifier Lists".
2994 -- N_Discriminant_Specification
2995 -- Sloc points to first identifier
2996 -- Defining_Identifier (Node1)
2997 -- Null_Exclusion_Present (Flag11)
2998 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2999 -- Expression (Node3) (set to Empty if no default expression)
3000 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3001 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3003 -----------------------------
3004 -- 3.7 Default Expression --
3005 -----------------------------
3007 -- DEFAULT_EXPRESSION ::= EXPRESSION
3009 ------------------------------------
3010 -- 3.7.1 Discriminant Constraint --
3011 ------------------------------------
3013 -- DISCRIMINANT_CONSTRAINT ::=
3014 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3016 -- It is not in general possible to distinguish between discriminant
3017 -- constraints and index constraints at parse time, since a simple
3018 -- name could be either the subtype mark of a discrete range, or an
3019 -- expression in a discriminant association with no name. Either
3020 -- entry appears simply as the name, and the semantic parse must
3021 -- distinguish between the two cases. Thus we use a common tree
3022 -- node format for both of these constraint types.
3024 -- N_Index_Or_Discriminant_Constraint
3025 -- Sloc points to left paren
3026 -- Constraints (List1) points to list of discrete ranges or
3027 -- discriminant associations
3029 -------------------------------------
3030 -- 3.7.1 Discriminant Association --
3031 -------------------------------------
3033 -- DISCRIMINANT_ASSOCIATION ::=
3034 -- [discriminant_SELECTOR_NAME
3035 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3037 -- Note: a discriminant association that has no selector name list
3038 -- appears directly as an expression in the tree.
3040 -- N_Discriminant_Association
3041 -- Sloc points to first token of discriminant association
3042 -- Selector_Names (List1) (always non-empty, since if no selector
3043 -- names are present, this node is not used, see comment above)
3044 -- Expression (Node3)
3046 ---------------------------------
3047 -- 3.8 Record Type Definition --
3048 ---------------------------------
3050 -- RECORD_TYPE_DEFINITION ::=
3051 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3053 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3055 -- There is no explicit node in the tree for a record type definition.
3056 -- Instead the flags for Tagged_Present and Limited_Present appear in
3057 -- the N_Record_Definition node for a record definition appearing in
3058 -- the context of a record type definition.
3060 ----------------------------
3061 -- 3.8 Record Definition --
3062 ----------------------------
3064 -- RECORD_DEFINITION ::=
3070 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3071 -- flags appear only for a record definition appearing in a record
3074 -- Note: the NULL RECORD case is not permitted in Ada 83
3076 -- N_Record_Definition
3077 -- Sloc points to RECORD or NULL
3078 -- End_Label (Node4) (set to Empty if internally generated record)
3079 -- Abstract_Present (Flag4)
3080 -- Tagged_Present (Flag15)
3081 -- Limited_Present (Flag17)
3082 -- Component_List (Node1) empty in null record case
3083 -- Null_Present (Flag13) set in null record case
3084 -- Task_Present (Flag5) set in task interfaces
3085 -- Protected_Present (Flag6) set in protected interfaces
3086 -- Synchronized_Present (Flag7) set in interfaces
3087 -- Interface_Present (Flag16) set in abstract interfaces
3088 -- Interface_List (List2) (set to No_List if none)
3090 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3091 -- Interface_List and Interface_Present are used for abstract
3092 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3094 -------------------------
3095 -- 3.8 Component List --
3096 -------------------------
3098 -- COMPONENT_LIST ::=
3099 -- COMPONENT_ITEM {COMPONENT_ITEM}
3100 -- | {COMPONENT_ITEM} VARIANT_PART
3104 -- Sloc points to first token of component list
3105 -- Component_Items (List3)
3106 -- Variant_Part (Node4) (set to Empty if no variant part)
3107 -- Null_Present (Flag13)
3109 -------------------------
3110 -- 3.8 Component Item --
3111 -------------------------
3113 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3115 -- Note: A component item can also be a pragma, and in the tree
3116 -- that is obtained after semantic processing, a component item
3117 -- can be an N_Null node resulting from a non-recognized pragma.
3119 --------------------------------
3120 -- 3.8 Component Declaration --
3121 --------------------------------
3123 -- COMPONENT_DECLARATION ::=
3124 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3125 -- [:= DEFAULT_EXPRESSION]
3126 -- [ASPECT_SPECIFICATIONS];
3128 -- Note: although the syntax does not permit a component definition to
3129 -- be an anonymous array (and the parser will diagnose such an attempt
3130 -- with an appropriate message), it is possible for anonymous arrays
3131 -- to appear as component definitions. The semantics and back end handle
3132 -- this case properly, and the expander in fact generates such cases.
3134 -- Although the syntax allows multiple identifiers in the list, the
3135 -- semantics is as though successive declarations were given with the
3136 -- same component definition and expression components. To simplify
3137 -- semantic processing, the parser represents a multiple declaration
3138 -- case as a sequence of single declarations, using the More_Ids and
3139 -- Prev_Ids flags to preserve the original source form as described
3140 -- in the section on "Handling of Defining Identifier Lists".
3142 -- N_Component_Declaration
3143 -- Sloc points to first identifier
3144 -- Defining_Identifier (Node1)
3145 -- Component_Definition (Node4)
3146 -- Expression (Node3) (set to Empty if no default expression)
3147 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3148 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3150 -------------------------
3151 -- 3.8.1 Variant Part --
3152 -------------------------
3155 -- case discriminant_DIRECT_NAME is
3156 -- VARIANT {VARIANT}
3159 -- Note: the variants list can contain pragmas as well as variants.
3160 -- In a properly formed program there is at least one variant.
3163 -- Sloc points to CASE
3167 --------------------
3169 --------------------
3172 -- when DISCRETE_CHOICE_LIST =>
3176 -- Sloc points to WHEN
3177 -- Discrete_Choices (List4)
3178 -- Component_List (Node1)
3179 -- Enclosing_Variant (Node2-Sem)
3180 -- Present_Expr (Uint3-Sem)
3181 -- Dcheck_Function (Node5-Sem)
3182 -- Has_SP_Choice (Flag15-Sem)
3184 -- Note: in the list of Discrete_Choices, the tree passed to the back
3185 -- end does not have choice entries corresponding to names of statically
3186 -- predicated subtypes. Such entries are always expanded out to the list
3187 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3188 -- mode also has this expansion, but done with a proper Rewrite call on
3189 -- the N_Variant node so that ASIS can properly retrieve the original.
3191 ---------------------------------
3192 -- 3.8.1 Discrete Choice List --
3193 ---------------------------------
3195 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3197 ----------------------------
3198 -- 3.8.1 Discrete Choice --
3199 ----------------------------
3201 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3203 -- Note: in Ada 83 mode, the expression must be a simple expression
3205 -- The only choice that appears explicitly is the OTHERS choice, as
3206 -- defined here. Other cases of discrete choice (expression and
3207 -- discrete range) appear directly. This production is also used
3208 -- for the OTHERS possibility of an exception choice.
3210 -- Note: in accordance with the syntax, the parser does not check that
3211 -- OTHERS appears at the end on its own in a choice list context. This
3212 -- is a semantic check.
3215 -- Sloc points to OTHERS
3216 -- Others_Discrete_Choices (List1-Sem)
3217 -- All_Others (Flag11-Sem)
3219 ----------------------------------
3220 -- 3.9.1 Record Extension Part --
3221 ----------------------------------
3223 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3225 -- Note: record extension parts are not permitted in Ada 83 mode
3227 --------------------------------------
3228 -- 3.9.4 Interface Type Definition --
3229 --------------------------------------
3231 -- INTERFACE_TYPE_DEFINITION ::=
3232 -- [limited | task | protected | synchronized]
3233 -- interface [interface_list]
3235 -- Note: Interfaces are implemented with N_Record_Definition and
3236 -- N_Derived_Type_Definition nodes because most of the support
3237 -- for the analysis of abstract types has been reused to
3238 -- analyze abstract interfaces.
3240 ----------------------------------
3241 -- 3.10 Access Type Definition --
3242 ----------------------------------
3244 -- ACCESS_TYPE_DEFINITION ::=
3245 -- ACCESS_TO_OBJECT_DEFINITION
3246 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3248 --------------------------
3249 -- 3.10 Null Exclusion --
3250 --------------------------
3252 -- NULL_EXCLUSION ::= not null
3254 ---------------------------------------
3255 -- 3.10 Access To Object Definition --
3256 ---------------------------------------
3258 -- ACCESS_TO_OBJECT_DEFINITION ::=
3259 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3260 -- SUBTYPE_INDICATION
3262 -- N_Access_To_Object_Definition
3263 -- Sloc points to ACCESS
3264 -- All_Present (Flag15)
3265 -- Null_Exclusion_Present (Flag11)
3266 -- Subtype_Indication (Node5)
3267 -- Constant_Present (Flag17)
3269 -----------------------------------
3270 -- 3.10 General Access Modifier --
3271 -----------------------------------
3273 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3275 -- Note: general access modifiers are not permitted in Ada 83 mode
3277 -- There is no explicit node in the tree for general access modifier.
3278 -- Instead the All_Present or Constant_Present flags are set in the
3281 -------------------------------------------
3282 -- 3.10 Access To Subprogram Definition --
3283 -------------------------------------------
3285 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3286 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3287 -- | [NULL_EXCLUSION] access [protected] function
3288 -- PARAMETER_AND_RESULT_PROFILE
3290 -- Note: access to subprograms are not permitted in Ada 83 mode
3292 -- N_Access_Function_Definition
3293 -- Sloc points to ACCESS
3294 -- Null_Exclusion_Present (Flag11)
3295 -- Null_Exclusion_In_Return_Present (Flag14)
3296 -- Protected_Present (Flag6)
3297 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3298 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3300 -- N_Access_Procedure_Definition
3301 -- Sloc points to ACCESS
3302 -- Null_Exclusion_Present (Flag11)
3303 -- Protected_Present (Flag6)
3304 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3306 -----------------------------
3307 -- 3.10 Access Definition --
3308 -----------------------------
3310 -- ACCESS_DEFINITION ::=
3311 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3312 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3314 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3316 -- N_Access_Definition
3317 -- Sloc points to ACCESS
3318 -- Null_Exclusion_Present (Flag11)
3319 -- All_Present (Flag15)
3320 -- Constant_Present (Flag17)
3321 -- Subtype_Mark (Node4)
3322 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3324 -----------------------------------------
3325 -- 3.10.1 Incomplete Type Declaration --
3326 -----------------------------------------
3328 -- INCOMPLETE_TYPE_DECLARATION ::=
3329 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3331 -- N_Incomplete_Type_Declaration
3332 -- Sloc points to TYPE
3333 -- Defining_Identifier (Node1)
3334 -- Discriminant_Specifications (List4) (set to No_List if no
3335 -- discriminant part, or if the discriminant part is an
3336 -- unknown discriminant part)
3337 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3338 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3339 -- Tagged_Present (Flag15)
3341 ----------------------------
3342 -- 3.11 Declarative Part --
3343 ----------------------------
3345 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3347 -- Note: although the parser enforces the syntactic requirement that
3348 -- a declarative part can contain only declarations, the semantic
3349 -- processing may add statements to the list of actions in a
3350 -- declarative part, so the code generator should be prepared
3351 -- to accept a statement in this position.
3353 ----------------------------
3354 -- 3.11 Declarative Item --
3355 ----------------------------
3357 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3359 ----------------------------------
3360 -- 3.11 Basic Declarative Item --
3361 ----------------------------------
3363 -- BASIC_DECLARATIVE_ITEM ::=
3364 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3370 -- BODY ::= PROPER_BODY | BODY_STUB
3372 -----------------------
3373 -- 3.11 Proper Body --
3374 -----------------------
3377 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3384 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3385 -- | INDEXED_COMPONENT | SLICE
3386 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3387 -- | TYPE_CONVERSION | FUNCTION_CALL
3388 -- | CHARACTER_LITERAL
3390 ----------------------
3391 -- 4.1 Direct Name --
3392 ----------------------
3394 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3400 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3402 -------------------------------
3403 -- 4.1 Explicit Dereference --
3404 -------------------------------
3406 -- EXPLICIT_DEREFERENCE ::= NAME . all
3408 -- N_Explicit_Dereference
3409 -- Sloc points to ALL
3411 -- Actual_Designated_Subtype (Node4-Sem)
3412 -- Atomic_Sync_Required (Flag14-Sem)
3413 -- Has_Dereference_Action (Flag13-Sem)
3414 -- plus fields for expression
3416 -------------------------------
3417 -- 4.1 Implicit Dereference --
3418 -------------------------------
3420 -- IMPLICIT_DEREFERENCE ::= NAME
3422 ------------------------------
3423 -- 4.1.1 Indexed Component --
3424 ------------------------------
3426 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3428 -- Note: the parser may generate this node in some situations where it
3429 -- should be a function call. The semantic pass must correct this
3430 -- misidentification (which is inevitable at the parser level).
3432 -- N_Indexed_Component
3433 -- Sloc contains a copy of the Sloc value of the Prefix
3435 -- Expressions (List1)
3436 -- Atomic_Sync_Required (Flag14-Sem)
3437 -- plus fields for expression
3439 -- Note: if any of the subscripts requires a range check, then the
3440 -- Do_Range_Check flag is set on the corresponding expression, with
3441 -- the index type being determined from the type of the Prefix, which
3442 -- references the array being indexed.
3444 -- Note: in a fully analyzed and expanded indexed component node, and
3445 -- hence in any such node that gigi sees, if the prefix is an access
3446 -- type, then an explicit dereference operation has been inserted.
3452 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3454 -- Note: an implicit subtype is created to describe the resulting
3455 -- type, so that the bounds of this type are the bounds of the slice.
3458 -- Sloc points to first token of prefix
3460 -- Discrete_Range (Node4)
3461 -- plus fields for expression
3463 -------------------------------
3464 -- 4.1.3 Selected Component --
3465 -------------------------------
3467 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3469 -- Note: selected components that are semantically expanded names get
3470 -- changed during semantic processing into the separate N_Expanded_Name
3471 -- node. See description of this node in the section on semantic nodes.
3473 -- N_Selected_Component
3474 -- Sloc points to period
3476 -- Selector_Name (Node2)
3477 -- Associated_Node (Node4-Sem)
3478 -- Do_Discriminant_Check (Flag1-Sem)
3479 -- Is_In_Discriminant_Check (Flag11-Sem)
3480 -- Is_Prefixed_Call (Flag17-Sem)
3481 -- Atomic_Sync_Required (Flag14-Sem)
3482 -- plus fields for expression
3484 --------------------------
3485 -- 4.1.3 Selector Name --
3486 --------------------------
3488 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3490 --------------------------------
3491 -- 4.1.4 Attribute Reference --
3492 --------------------------------
3494 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3496 -- Note: the syntax is quite ambiguous at this point. Consider:
3498 -- A'Length (X) X is part of the attribute designator
3499 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3500 -- A'Class (X) X is the expression of a type conversion
3502 -- It would be possible for the parser to distinguish these cases
3503 -- by looking at the attribute identifier. However, that would mean
3504 -- more work in introducing new implementation defined attributes,
3505 -- and also it would mean that special processing for attributes
3506 -- would be scattered around, instead of being centralized in the
3507 -- semantic routine that handles an N_Attribute_Reference node.
3508 -- Consequently, the parser in all the above cases stores the
3509 -- expression (X in these examples) as a single element list in
3510 -- in the Expressions field of the N_Attribute_Reference node.
3512 -- Similarly, for attributes like Max which take two arguments,
3513 -- we store the two arguments as a two element list in the
3514 -- Expressions field. Of course it is clear at parse time that
3515 -- this case is really a function call with an attribute as the
3516 -- prefix, but it turns out to be convenient to handle the two
3517 -- argument case in a similar manner to the one argument case,
3518 -- and indeed in general the parser will accept any number of
3519 -- expressions in this position and store them as a list in the
3520 -- attribute reference node. This allows for future addition of
3521 -- attributes that take more than two arguments.
3523 -- Note: named associates are not permitted in function calls where
3524 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3525 -- to skip the normal subprogram argument processing.
3527 -- Note: for the attributes whose designators are technically keywords,
3528 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3529 -- the corresponding name, even though no identifier is involved.
3531 -- Note: the generated code may contain stream attributes applied to
3532 -- limited types for which no stream routines exist officially. In such
3533 -- case, the result is to use the stream attribute for the underlying
3534 -- full type, or in the case of a protected type, the components
3535 -- (including any discriminants) are merely streamed in order.
3537 -- See Exp_Attr for a complete description of which attributes are
3538 -- passed onto Gigi, and which are handled entirely by the front end.
3540 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3541 -- a non-standard enumeration type or a nonzero/zero semantics
3542 -- boolean type, so the value is simply the stored representation.
3544 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3545 -- references a subprogram that is a renaming, then the front end must
3546 -- rewrite the attribute to refer directly to the renamed entity.
3548 -- Note: In generated code, the Address and Unrestricted_Access
3549 -- attributes can be applied to any expression, and the meaning is
3550 -- to create an object containing the value (the object is in the
3551 -- current stack frame), and pass the address of this value. If the
3552 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3553 -- is taken must be on a byte (storage unit) boundary, and if it is
3554 -- not (or may not be), then the generated code must create a copy
3555 -- that is byte aligned, and pass the address of this copy.
3557 -- N_Attribute_Reference
3558 -- Sloc points to apostrophe
3560 -- Attribute_Name (Name2) identifier name from attribute designator
3561 -- Expressions (List1) (set to No_List if no associated expressions)
3562 -- Entity (Node4-Sem) used if the attribute yields a type
3563 -- Associated_Node (Node4-Sem)
3564 -- Do_Overflow_Check (Flag17-Sem)
3565 -- Header_Size_Added (Flag11-Sem)
3566 -- Redundant_Use (Flag13-Sem)
3567 -- Must_Be_Byte_Aligned (Flag14)
3568 -- plus fields for expression
3570 ---------------------------------
3571 -- 4.1.4 Attribute Designator --
3572 ---------------------------------
3574 -- ATTRIBUTE_DESIGNATOR ::=
3575 -- IDENTIFIER [(static_EXPRESSION)]
3576 -- | access | delta | digits
3578 -- There is no explicit node in the tree for an attribute designator.
3579 -- Instead the Attribute_Name and Expressions fields of the parent
3580 -- node (N_Attribute_Reference node) hold the information.
3582 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3583 -- designator, then they are treated as identifiers internally
3584 -- rather than the keywords of the same name.
3586 --------------------------------------
3587 -- 4.1.4 Range Attribute Reference --
3588 --------------------------------------
3590 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3592 -- A range attribute reference is represented in the tree using the
3593 -- normal N_Attribute_Reference node.
3595 ---------------------------------------
3596 -- 4.1.4 Range Attribute Designator --
3597 ---------------------------------------
3599 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3601 -- A range attribute designator is represented in the tree using the
3602 -- normal N_Attribute_Reference node.
3604 --------------------
3606 --------------------
3609 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3611 -----------------------------
3612 -- 4.3.1 Record Aggregate --
3613 -----------------------------
3615 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3618 -- Sloc points to left parenthesis
3619 -- Expressions (List1) (set to No_List if none or null record case)
3620 -- Component_Associations (List2) (set to No_List if none)
3621 -- Null_Record_Present (Flag17)
3622 -- Aggregate_Bounds (Node3-Sem)
3623 -- Associated_Node (Node4-Sem)
3624 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3625 -- Expansion_Delayed (Flag11-Sem)
3626 -- Has_Self_Reference (Flag13-Sem)
3627 -- plus fields for expression
3629 -- Note: this structure is used for both record and array aggregates
3630 -- since the two cases are not separable by the parser. The parser
3631 -- makes no attempt to enforce consistency here, so it is up to the
3632 -- semantic phase to make sure that the aggregate is consistent (i.e.
3633 -- that it is not a "half-and-half" case that mixes record and array
3634 -- syntax. In particular, for a record aggregate, the expressions
3635 -- field will be set if there are positional associations.
3637 -- Note: N_Aggregate is not used for all aggregates; in particular,
3638 -- there is a separate node kind for extension aggregates.
3640 -- Note: gigi/gcc can handle array aggregates correctly providing that
3641 -- they are entirely positional, and the array subtype involved has a
3642 -- known at compile time length and is not bit packed, or a convention
3643 -- Fortran array with more than one dimension. If these conditions
3644 -- are not met, then the front end must translate the aggregate into
3645 -- an appropriate set of assignments into a temporary.
3647 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3648 -- record aggregates, including those for packed, and rep-claused
3649 -- records, and also variant records, providing that there are no
3650 -- variable length fields whose size is not known at compile time, and
3651 -- providing that the aggregate is presented in fully named form.
3653 ----------------------------------------------
3654 -- 4.3.1 Record Component Association List --
3655 ----------------------------------------------
3657 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3658 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3661 -- There is no explicit node in the tree for a record component
3662 -- association list. Instead the Null_Record_Present flag is set in
3663 -- the parent node for the NULL RECORD case.
3665 ------------------------------------------------------
3666 -- 4.3.1 Record Component Association (also 4.3.3) --
3667 ------------------------------------------------------
3669 -- RECORD_COMPONENT_ASSOCIATION ::=
3670 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3672 -- N_Component_Association
3673 -- Sloc points to first selector name
3675 -- Loop_Actions (List2-Sem)
3676 -- Expression (Node3) (empty if Box_Present)
3677 -- Box_Present (Flag15)
3678 -- Inherited_Discriminant (Flag13)
3680 -- Note: this structure is used for both record component associations
3681 -- and array component associations, since the two cases aren't always
3682 -- separable by the parser. The choices list may represent either a
3683 -- list of selector names in the record aggregate case, or a list of
3684 -- discrete choices in the array aggregate case or an N_Others_Choice
3685 -- node (which appears as a singleton list). Box_Present gives support
3686 -- to Ada 2005 (AI-287).
3688 ----------------------------------
3689 -- 4.3.1 Component Choice List --
3690 ----------------------------------
3692 -- COMPONENT_CHOICE_LIST ::=
3693 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3696 -- The entries of a component choice list appear in the Choices list of
3697 -- the associated N_Component_Association, as either selector names, or
3698 -- as an N_Others_Choice node.
3700 --------------------------------
3701 -- 4.3.2 Extension Aggregate --
3702 --------------------------------
3704 -- EXTENSION_AGGREGATE ::=
3705 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3707 -- Note: extension aggregates are not permitted in Ada 83 mode
3709 -- N_Extension_Aggregate
3710 -- Sloc points to left parenthesis
3711 -- Ancestor_Part (Node3)
3712 -- Associated_Node (Node4-Sem)
3713 -- Expressions (List1) (set to No_List if none or null record case)
3714 -- Component_Associations (List2) (set to No_List if none)
3715 -- Null_Record_Present (Flag17)
3716 -- Expansion_Delayed (Flag11-Sem)
3717 -- Has_Self_Reference (Flag13-Sem)
3718 -- plus fields for expression
3720 --------------------------
3721 -- 4.3.2 Ancestor Part --
3722 --------------------------
3724 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3726 ----------------------------
3727 -- 4.3.3 Array Aggregate --
3728 ----------------------------
3730 -- ARRAY_AGGREGATE ::=
3731 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3733 ---------------------------------------
3734 -- 4.3.3 Positional Array Aggregate --
3735 ---------------------------------------
3737 -- POSITIONAL_ARRAY_AGGREGATE ::=
3738 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3739 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3741 -- See Record_Aggregate (4.3.1) for node structure
3743 ----------------------------------
3744 -- 4.3.3 Named Array Aggregate --
3745 ----------------------------------
3747 -- NAMED_ARRAY_AGGREGATE ::=
3748 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3750 -- See Record_Aggregate (4.3.1) for node structure
3752 ----------------------------------------
3753 -- 4.3.3 Array Component Association --
3754 ----------------------------------------
3756 -- ARRAY_COMPONENT_ASSOCIATION ::=
3757 -- DISCRETE_CHOICE_LIST => EXPRESSION
3759 -- See Record_Component_Association (4.3.1) for node structure
3761 --------------------------------------------------
3762 -- 4.4 Expression/Relation/Term/Factor/Primary --
3763 --------------------------------------------------
3766 -- RELATION {LOGICAL_OPERATOR RELATION}
3768 -- CHOICE_EXPRESSION ::=
3769 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3771 -- CHOICE_RELATION ::=
3772 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3775 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3776 -- | RAISE_EXPRESSION
3778 -- MEMBERSHIP_CHOICE_LIST ::=
3779 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3781 -- MEMBERSHIP_CHOICE ::=
3782 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3784 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3786 -- SIMPLE_EXPRESSION ::=
3787 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3789 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3791 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3793 -- No nodes are generated for any of these constructs. Instead, the
3794 -- node for the operator appears directly. When we refer to an
3795 -- expression in this description, we mean any of the possible
3796 -- constituent components of an expression (e.g. identifier is
3797 -- an example of an expression).
3799 -- Note: the above syntax is that Ada 2012 syntax which restricts
3800 -- choice relations to simple expressions to avoid ambiguities in
3801 -- some contexts with set membership notation. It has been decided
3802 -- that in retrospect, the Ada 95 change allowing general expressions
3803 -- in this context was a mistake, so we have reverted to the above
3804 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3805 -- expressions was there in Ada 83 from the start).
3812 -- NUMERIC_LITERAL | null
3813 -- | STRING_LITERAL | AGGREGATE
3814 -- | NAME | QUALIFIED_EXPRESSION
3815 -- | ALLOCATOR | (EXPRESSION)
3817 -- Usually there is no explicit node in the tree for primary. Instead
3818 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3819 -- exceptions. First, there is an explicit node for a null primary.
3822 -- Sloc points to NULL
3823 -- plus fields for expression
3825 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3826 -- that the parser keep track of which subexpressions are enclosed
3827 -- in parentheses, and how many levels of parentheses are used. This
3828 -- information is required for optimization purposes, and also for
3829 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3830 -- conform with ((((1)))) in the body).
3832 -- The parentheses are recorded by keeping a Paren_Count field in every
3833 -- subexpression node (it is actually present in all nodes, but only
3834 -- used in subexpression nodes). This count records the number of
3835 -- levels of parentheses. If the number of levels in the source exceeds
3836 -- the maximum accommodated by this count, then the count is simply left
3837 -- at the maximum value. This means that there are some pathological
3838 -- cases of failure to detect conformance failures (e.g. an expression
3839 -- with 500 levels of parens will conform with one with 501 levels),
3840 -- but we do not need to lose sleep over this.
3842 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3843 -- type N_Parenthesized_Expression used to accurately record unlimited
3844 -- numbers of levels of parentheses. However, it turned out to be a
3845 -- real nuisance to have to take into account the possible presence of
3846 -- this node during semantic analysis, since basically parentheses have
3847 -- zero relevance to semantic analysis.
3849 -- Note: the level of parentheses always present in things like
3850 -- aggregates does not count, only the parentheses in the primary
3851 -- (EXPRESSION) affect the setting of the Paren_Count field.
3853 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3854 -- treated as though it were Empty) if No_Initialization is set True.
3856 --------------------------------------
3857 -- 4.5 Short Circuit Control Forms --
3858 --------------------------------------
3861 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3863 -- Gigi restriction: For both these control forms, the operand and
3864 -- result types are always Standard.Boolean. The expander inserts the
3865 -- required conversion operations where needed to ensure this is the
3869 -- Sloc points to AND of AND THEN
3870 -- Left_Opnd (Node2)
3871 -- Right_Opnd (Node3)
3872 -- Actions (List1-Sem)
3873 -- plus fields for expression
3876 -- Sloc points to OR of OR ELSE
3877 -- Left_Opnd (Node2)
3878 -- Right_Opnd (Node3)
3879 -- Actions (List1-Sem)
3880 -- plus fields for expression
3882 -- Note: The Actions field is used to hold actions associated with
3883 -- the right hand operand. These have to be treated specially since
3884 -- they are not unconditionally executed. See Insert_Actions for a
3885 -- more detailed description of how these actions are handled.
3887 ---------------------------
3888 -- 4.5 Membership Tests --
3889 ---------------------------
3892 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3894 -- MEMBERSHIP_CHOICE_LIST ::=
3895 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3897 -- MEMBERSHIP_CHOICE ::=
3898 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3900 -- Note: although the grammar above allows only a range or a subtype
3901 -- mark, the parser in fact will accept any simple expression in place
3902 -- of a subtype mark. This means that the semantic analyzer must be able
3903 -- to deal with, and diagnose a simple expression other than a name for
3904 -- the right operand. This simplifies error recovery in the parser.
3906 -- The Alternatives field below is present only if there is more
3907 -- than one Membership_Choice present (which is legitimate only in
3908 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3909 -- contains the list of choices. In the tree passed to the back end,
3910 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3911 -- expansion circuitry expands out the complex set membership case
3912 -- using simple membership operations).
3914 -- Should we rename Alternatives here to Membership_Choices ???
3917 -- Sloc points to IN
3918 -- Left_Opnd (Node2)
3919 -- Right_Opnd (Node3)
3920 -- Alternatives (List4) (set to No_List if only one set alternative)
3921 -- No_Minimize_Eliminate (Flag17)
3922 -- plus fields for expression
3925 -- Sloc points to NOT of NOT IN
3926 -- Left_Opnd (Node2)
3927 -- Right_Opnd (Node3)
3928 -- Alternatives (List4) (set to No_List if only one set alternative)
3929 -- No_Minimize_Eliminate (Flag17)
3930 -- plus fields for expression
3932 --------------------
3934 --------------------
3936 -- LOGICAL_OPERATOR ::= and | or | xor
3938 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3940 -- BINARY_ADDING_OPERATOR ::= + | - | &
3942 -- UNARY_ADDING_OPERATOR ::= + | -
3944 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3946 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3948 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3955 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3956 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3957 -- All handling of smalls for multiplication and division is handled
3958 -- by the front end (mod and rem result only from expansion). Gigi
3959 -- thus never needs to worry about small values (for other operators
3960 -- operating on fixed-point, e.g. addition, the small value does not
3961 -- have any semantic effect anyway, these are always integer operations.
3963 -- Gigi restriction: For all operators taking Boolean operands, the
3964 -- type is always Standard.Boolean. The expander inserts the required
3965 -- conversion operations where needed to ensure this is the case.
3968 -- Sloc points to AND
3969 -- Do_Length_Check (Flag4-Sem)
3970 -- plus fields for binary operator
3971 -- plus fields for expression
3974 -- Sloc points to OR
3975 -- Do_Length_Check (Flag4-Sem)
3976 -- plus fields for binary operator
3977 -- plus fields for expression
3980 -- Sloc points to XOR
3981 -- Do_Length_Check (Flag4-Sem)
3982 -- plus fields for binary operator
3983 -- plus fields for expression
3987 -- plus fields for binary operator
3988 -- plus fields for expression
3991 -- Sloc points to /=
3992 -- plus fields for binary operator
3993 -- plus fields for expression
3997 -- plus fields for binary operator
3998 -- plus fields for expression
4001 -- Sloc points to <=
4002 -- plus fields for binary operator
4003 -- plus fields for expression
4007 -- plus fields for binary operator
4008 -- plus fields for expression
4011 -- Sloc points to >=
4012 -- plus fields for binary operator
4013 -- plus fields for expression
4016 -- Sloc points to + (binary)
4017 -- plus fields for binary operator
4018 -- plus fields for expression
4021 -- Sloc points to - (binary)
4022 -- plus fields for binary operator
4023 -- plus fields for expression
4027 -- Is_Component_Left_Opnd (Flag13-Sem)
4028 -- Is_Component_Right_Opnd (Flag14-Sem)
4029 -- plus fields for binary operator
4030 -- plus fields for expression
4034 -- Treat_Fixed_As_Integer (Flag14-Sem)
4035 -- Rounded_Result (Flag18-Sem)
4036 -- plus fields for binary operator
4037 -- plus fields for expression
4041 -- Treat_Fixed_As_Integer (Flag14-Sem)
4042 -- Do_Division_Check (Flag13-Sem)
4043 -- Rounded_Result (Flag18-Sem)
4044 -- plus fields for binary operator
4045 -- plus fields for expression
4048 -- Sloc points to MOD
4049 -- Treat_Fixed_As_Integer (Flag14-Sem)
4050 -- Do_Division_Check (Flag13-Sem)
4051 -- plus fields for binary operator
4052 -- plus fields for expression
4055 -- Sloc points to REM
4056 -- Treat_Fixed_As_Integer (Flag14-Sem)
4057 -- Do_Division_Check (Flag13-Sem)
4058 -- plus fields for binary operator
4059 -- plus fields for expression
4062 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4063 -- Sloc points to **
4064 -- plus fields for binary operator
4065 -- plus fields for expression
4068 -- Sloc points to + (unary)
4069 -- plus fields for unary operator
4070 -- plus fields for expression
4073 -- Sloc points to - (unary)
4074 -- plus fields for unary operator
4075 -- plus fields for expression
4078 -- Sloc points to ABS
4079 -- plus fields for unary operator
4080 -- plus fields for expression
4083 -- Sloc points to NOT
4084 -- plus fields for unary operator
4085 -- plus fields for expression
4087 -- See also shift operators in section B.2
4089 -- Note on fixed-point operations passed to Gigi: For adding operators,
4090 -- the semantics is to treat these simply as integer operations, with
4091 -- the small values being ignored (the bounds are already stored in
4092 -- units of small, so that constraint checking works as usual). For the
4093 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4094 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4095 -- thus treat these nodes in identical manner, ignoring small values.
4097 -- Note on overflow handling: When the overflow checking mode is set to
4098 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4099 -- be modified to use a larger type for the operands and result. In
4100 -- the case where the computed range exceeds that of Long_Long_Integer,
4101 -- and we are running in ELIMINATED mode, the operator node will be
4102 -- changed to be a call to the appropriate routine in System.Bignums.
4104 ------------------------------------
4105 -- 4.5.7 Conditional Expressions --
4106 ------------------------------------
4108 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4110 --------------------------
4111 -- 4.5.7 If Expression --
4112 ----------------------------
4114 -- IF_EXPRESSION ::=
4115 -- if CONDITION then DEPENDENT_EXPRESSION
4116 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4117 -- [else DEPENDENT_EXPRESSION]
4119 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4121 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4122 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4123 -- the Is_Elsif flag is set on the inner if expression.
4126 -- Sloc points to IF or ELSIF keyword
4127 -- Expressions (List1)
4128 -- Then_Actions (List2-Sem)
4129 -- Else_Actions (List3-Sem)
4130 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4131 -- Do_Overflow_Check (Flag17-Sem)
4132 -- plus fields for expression
4134 -- Expressions here is a three-element list, whose first element is the
4135 -- condition, the second element is the dependent expression after THEN
4136 -- and the third element is the dependent expression after the ELSE
4137 -- (explicitly set to True if missing).
4139 -- Note: the Then_Actions and Else_Actions fields are always set to
4140 -- No_List in the tree passed to Gigi. These fields are used only
4141 -- for temporary processing purposes in the expander.
4143 ----------------------------
4144 -- 4.5.7 Case Expression --
4145 ----------------------------
4147 -- CASE_EXPRESSION ::=
4148 -- case SELECTING_EXPRESSION is
4149 -- CASE_EXPRESSION_ALTERNATIVE
4150 -- {CASE_EXPRESSION_ALTERNATIVE}
4152 -- Note that the Alternatives cannot include pragmas (this contrasts
4153 -- with the situation of case statements where pragmas are allowed).
4155 -- N_Case_Expression
4156 -- Sloc points to CASE
4157 -- Expression (Node3) (the selecting expression)
4158 -- Alternatives (List4) (the case expression alternatives)
4159 -- Do_Overflow_Check (Flag17-Sem)
4161 ----------------------------------------
4162 -- 4.5.7 Case Expression Alternative --
4163 ----------------------------------------
4165 -- CASE_EXPRESSION_ALTERNATIVE ::=
4166 -- when DISCRETE_CHOICE_LIST =>
4167 -- DEPENDENT_EXPRESSION
4169 -- N_Case_Expression_Alternative
4170 -- Sloc points to WHEN
4172 -- Discrete_Choices (List4)
4173 -- Expression (Node3)
4174 -- Has_SP_Choice (Flag15-Sem)
4176 -- Note: The Actions field temporarily holds any actions associated with
4177 -- evaluation of the Expression. During expansion of the case expression
4178 -- these actions are wrapped into an N_Expressions_With_Actions node
4179 -- replacing the original expression.
4181 -- Note: this node never appears in the tree passed to the back end,
4182 -- since the expander converts case expressions into case statements.
4184 ---------------------------------
4185 -- 4.5.9 Quantified Expression --
4186 ---------------------------------
4188 -- QUANTIFIED_EXPRESSION ::=
4189 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4190 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4192 -- QUANTIFIER ::= all | some
4194 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4195 -- is present at a time, in which case the other one is empty.
4197 -- N_Quantified_Expression
4198 -- Sloc points to FOR
4199 -- Iterator_Specification (Node2)
4200 -- Loop_Parameter_Specification (Node4)
4201 -- Condition (Node1)
4202 -- All_Present (Flag15)
4204 --------------------------
4205 -- 4.6 Type Conversion --
4206 --------------------------
4208 -- TYPE_CONVERSION ::=
4209 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4211 -- In the (NAME) case, the name is stored as the expression
4213 -- Note: the parser never generates a type conversion node, since it
4214 -- looks like an indexed component which is generated by preference.
4215 -- The semantic pass must correct this misidentification.
4217 -- Gigi handles conversions that involve no change in the root type,
4218 -- and also all conversions from integer to floating-point types.
4219 -- Conversions from floating-point to integer are only handled in
4220 -- the case where Float_Truncate flag set. Other conversions from
4221 -- floating-point to integer (involving rounding) and all conversions
4222 -- involving fixed-point types are handled by the expander.
4224 -- Sprint syntax if Float_Truncate set: X^(Y)
4225 -- Sprint syntax if Conversion_OK set X?(Y)
4226 -- Sprint syntax if both flags set X?^(Y)
4228 -- Note: If either the operand or result type is fixed-point, Gigi will
4229 -- only see a type conversion node with Conversion_OK set. The front end
4230 -- takes care of all handling of small's for fixed-point conversions.
4232 -- N_Type_Conversion
4233 -- Sloc points to first token of subtype mark
4234 -- Subtype_Mark (Node4)
4235 -- Expression (Node3)
4236 -- Do_Discriminant_Check (Flag1-Sem)
4237 -- Do_Length_Check (Flag4-Sem)
4238 -- Float_Truncate (Flag11-Sem)
4239 -- Do_Tag_Check (Flag13-Sem)
4240 -- Conversion_OK (Flag14-Sem)
4241 -- Do_Overflow_Check (Flag17-Sem)
4242 -- Rounded_Result (Flag18-Sem)
4243 -- plus fields for expression
4245 -- Note: if a range check is required, then the Do_Range_Check flag
4246 -- is set in the Expression with the check being done against the
4247 -- target type range (after the base type conversion, if any).
4249 -------------------------------
4250 -- 4.7 Qualified Expression --
4251 -------------------------------
4253 -- QUALIFIED_EXPRESSION ::=
4254 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4256 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4257 -- the expression, so the Expression field of this node always points
4258 -- to a parenthesized expression in this case (i.e. Paren_Count will
4259 -- always be non-zero for the referenced expression if it is not an
4262 -- N_Qualified_Expression
4263 -- Sloc points to apostrophe
4264 -- Subtype_Mark (Node4)
4265 -- Expression (Node3) expression or aggregate
4266 -- plus fields for expression
4268 --------------------
4270 --------------------
4273 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4274 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4276 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4278 -- Sprint syntax (when storage pool present)
4279 -- new xxx (storage_pool = pool)
4281 -- new (subpool) xxx (storage_pool = pool)
4284 -- Sloc points to NEW
4285 -- Expression (Node3) subtype indication or qualified expression
4286 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4287 -- Storage_Pool (Node1-Sem)
4288 -- Procedure_To_Call (Node2-Sem)
4289 -- Null_Exclusion_Present (Flag11)
4290 -- No_Initialization (Flag13-Sem)
4291 -- Is_Static_Coextension (Flag14-Sem)
4292 -- Do_Storage_Check (Flag17-Sem)
4293 -- Is_Dynamic_Coextension (Flag18-Sem)
4294 -- plus fields for expression
4296 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4297 -- This flag has a special function in conjunction with the restriction
4298 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4299 -- is not set. This means that if a source allocator is replaced with
4300 -- a constructed allocator, the Comes_From_Source flag should be copied
4301 -- to the newly created allocator.
4303 ---------------------------------
4304 -- 5.1 Sequence Of Statements --
4305 ---------------------------------
4307 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4309 -- Note: Although the parser will not accept a declaration as a
4310 -- statement, the semantic analyzer may insert declarations (e.g.
4311 -- declarations of implicit types needed for execution of other
4312 -- statements) into a sequence of statements, so the code generator
4313 -- should be prepared to accept a declaration where a statement is
4314 -- expected. Note also that pragmas can appear as statements.
4316 --------------------
4318 --------------------
4321 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4323 -- There is no explicit node in the tree for a statement. Instead, the
4324 -- individual statement appears directly. Labels are treated as a
4325 -- kind of statement, i.e. they are linked into a statement list at
4326 -- the point they appear, so the labeled statement appears following
4327 -- the label or labels in the statement list.
4329 ---------------------------
4330 -- 5.1 Simple Statement --
4331 ---------------------------
4333 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4334 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4335 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4336 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4337 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4338 -- | ABORT_STATEMENT | RAISE_STATEMENT
4341 -----------------------------
4342 -- 5.1 Compound Statement --
4343 -----------------------------
4345 -- COMPOUND_STATEMENT ::=
4346 -- IF_STATEMENT | CASE_STATEMENT
4347 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4348 -- | EXTENDED_RETURN_STATEMENT
4349 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4351 -------------------------
4352 -- 5.1 Null Statement --
4353 -------------------------
4355 -- NULL_STATEMENT ::= null;
4358 -- Sloc points to NULL
4364 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4366 -- Note that the occurrence of a label is not a defining identifier,
4367 -- but rather a referencing occurrence. The defining occurrence is
4368 -- in the implicit label declaration which occurs in the innermost
4372 -- Sloc points to <<
4373 -- Identifier (Node1) direct name of statement identifier
4374 -- Exception_Junk (Flag8-Sem)
4376 -- Note: Before Ada 2012, a label is always followed by a statement,
4377 -- and this is true in the tree even in Ada 2012 mode (the parser
4378 -- inserts a null statement marked with Comes_From_Source False).
4380 -------------------------------
4381 -- 5.1 Statement Identifier --
4382 -------------------------------
4384 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4386 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4387 -- (not an OPERATOR_SYMBOL)
4389 -------------------------------
4390 -- 5.2 Assignment Statement --
4391 -------------------------------
4393 -- ASSIGNMENT_STATEMENT ::=
4394 -- variable_NAME := EXPRESSION;
4396 -- N_Assignment_Statement
4397 -- Sloc points to :=
4399 -- Expression (Node3)
4400 -- Do_Discriminant_Check (Flag1-Sem)
4401 -- Do_Tag_Check (Flag13-Sem)
4402 -- Do_Length_Check (Flag4-Sem)
4403 -- Forwards_OK (Flag5-Sem)
4404 -- Backwards_OK (Flag6-Sem)
4405 -- No_Ctrl_Actions (Flag7-Sem)
4406 -- Componentwise_Assignment (Flag14-Sem)
4407 -- Suppress_Assignment_Checks (Flag18-Sem)
4409 -- Note: if a range check is required, then the Do_Range_Check flag
4410 -- is set in the Expression (right hand side), with the check being
4411 -- done against the type of the Name (left hand side).
4413 -- Note: the back end places some restrictions on the form of the
4414 -- Expression field. If the object being assigned to is Atomic, then
4415 -- the Expression may not have the form of an aggregate (since this
4416 -- might cause the back end to generate separate assignments). In this
4417 -- case the front end must generate an extra temporary and initialize
4418 -- this temporary as required (the temporary itself is not atomic).
4420 -----------------------
4421 -- 5.3 If Statement --
4422 -----------------------
4425 -- if CONDITION then
4426 -- SEQUENCE_OF_STATEMENTS
4427 -- {elsif CONDITION then
4428 -- SEQUENCE_OF_STATEMENTS}
4430 -- SEQUENCE_OF_STATEMENTS]
4433 -- Gigi restriction: This expander ensures that the type of the
4434 -- Condition fields is always Standard.Boolean, even if the type
4435 -- in the source is some non-standard boolean type.
4438 -- Sloc points to IF
4439 -- Condition (Node1)
4440 -- Then_Statements (List2)
4441 -- Elsif_Parts (List3) (set to No_List if none present)
4442 -- Else_Statements (List4) (set to No_List if no else part present)
4443 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4446 -- Sloc points to ELSIF
4447 -- Condition (Node1)
4448 -- Then_Statements (List2)
4449 -- Condition_Actions (List3-Sem)
4451 --------------------
4453 --------------------
4455 -- CONDITION ::= boolean_EXPRESSION
4457 -------------------------
4458 -- 5.4 Case Statement --
4459 -------------------------
4461 -- CASE_STATEMENT ::=
4462 -- case EXPRESSION is
4463 -- CASE_STATEMENT_ALTERNATIVE
4464 -- {CASE_STATEMENT_ALTERNATIVE}
4467 -- Note: the Alternatives can contain pragmas. These only occur at
4468 -- the start of the list, since any pragmas occurring after the first
4469 -- alternative are absorbed into the corresponding statement sequence.
4472 -- Sloc points to CASE
4473 -- Expression (Node3)
4474 -- Alternatives (List4)
4475 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4477 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4478 -- followed by a statement, and this is true in the tree even in Ada
4479 -- 2012 mode (the parser inserts a null statement marked with the flag
4480 -- Comes_From_Source False).
4482 -------------------------------------
4483 -- 5.4 Case Statement Alternative --
4484 -------------------------------------
4486 -- CASE_STATEMENT_ALTERNATIVE ::=
4487 -- when DISCRETE_CHOICE_LIST =>
4488 -- SEQUENCE_OF_STATEMENTS
4490 -- N_Case_Statement_Alternative
4491 -- Sloc points to WHEN
4492 -- Discrete_Choices (List4)
4493 -- Statements (List3)
4494 -- Has_SP_Choice (Flag15-Sem)
4496 -- Note: in the list of Discrete_Choices, the tree passed to the back
4497 -- end does not have choice entries corresponding to names of statically
4498 -- predicated subtypes. Such entries are always expanded out to the list
4499 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4500 -- mode does not have this expansion, and has the original choices.
4502 -------------------------
4503 -- 5.5 Loop Statement --
4504 -------------------------
4506 -- LOOP_STATEMENT ::=
4507 -- [loop_STATEMENT_IDENTIFIER :]
4508 -- [ITERATION_SCHEME] loop
4509 -- SEQUENCE_OF_STATEMENTS
4510 -- end loop [loop_IDENTIFIER];
4512 -- Note: The occurrence of a loop label is not a defining identifier
4513 -- but rather a referencing occurrence. The defining occurrence is in
4514 -- the implicit label declaration which occurs in the innermost
4517 -- Note: there is always a loop statement identifier present in
4518 -- the tree, even if none was given in the source. In the case where
4519 -- no loop identifier is given in the source, the parser creates
4520 -- a name of the form _Loop_n, where n is a decimal integer (the
4521 -- two underlines ensure that the loop names created in this manner
4522 -- do not conflict with any user defined identifiers), and the flag
4523 -- Has_Created_Identifier is set to True. The only exception to the
4524 -- rule that all loop statement nodes have identifiers occurs for
4525 -- loops constructed by the expander, and the semantic analyzer will
4526 -- create and supply dummy loop identifiers in these cases.
4529 -- Sloc points to LOOP
4530 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4531 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4532 -- Statements (List3)
4533 -- End_Label (Node4)
4534 -- Has_Created_Identifier (Flag15)
4535 -- Is_Null_Loop (Flag16)
4536 -- Suppress_Loop_Warnings (Flag17)
4538 -- Note: the parser fills in the Identifier field if there is an
4539 -- explicit loop identifier. Otherwise the parser leaves this field
4540 -- set to Empty, and then the semantic processing for a loop statement
4541 -- creates an identifier, setting the Has_Created_Identifier flag to
4542 -- True. So after semantic analysis, the Identifier is always set,
4543 -- referencing an identifier whose entity has an Ekind of E_Loop.
4545 ---------------------------
4546 -- 5.5 Iteration Scheme --
4547 ---------------------------
4549 -- ITERATION_SCHEME ::=
4551 -- | for LOOP_PARAMETER_SPECIFICATION
4552 -- | for ITERATOR_SPECIFICATION
4554 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4555 -- is present at a time, in which case the other one is empty. Both are
4556 -- empty in the case of a WHILE loop.
4558 -- Gigi restriction: This expander ensures that the type of the
4559 -- Condition field is always Standard.Boolean, even if the type
4560 -- in the source is some non-standard boolean type.
4562 -- N_Iteration_Scheme
4563 -- Sloc points to WHILE or FOR
4564 -- Condition (Node1) (set to Empty if FOR case)
4565 -- Condition_Actions (List3-Sem)
4566 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4567 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4569 ---------------------------------------
4570 -- 5.5 Loop Parameter Specification --
4571 ---------------------------------------
4573 -- LOOP_PARAMETER_SPECIFICATION ::=
4574 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4576 -- N_Loop_Parameter_Specification
4577 -- Sloc points to first identifier
4578 -- Defining_Identifier (Node1)
4579 -- Reverse_Present (Flag15)
4580 -- Discrete_Subtype_Definition (Node4)
4582 -----------------------------------
4583 -- 5.5.1 Iterator Specification --
4584 -----------------------------------
4586 -- ITERATOR_SPECIFICATION ::=
4587 -- DEFINING_IDENTIFIER in [reverse] NAME
4588 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4590 -- N_Iterator_Specification
4591 -- Sloc points to defining identifier
4592 -- Defining_Identifier (Node1)
4594 -- Reverse_Present (Flag15)
4595 -- Of_Present (Flag16)
4596 -- Subtype_Indication (Node5)
4598 -- Note: The Of_Present flag distinguishes the two forms
4600 --------------------------
4601 -- 5.6 Block Statement --
4602 --------------------------
4604 -- BLOCK_STATEMENT ::=
4605 -- [block_STATEMENT_IDENTIFIER:]
4607 -- DECLARATIVE_PART]
4609 -- HANDLED_SEQUENCE_OF_STATEMENTS
4610 -- end [block_IDENTIFIER];
4612 -- Note that the occurrence of a block identifier is not a defining
4613 -- identifier, but rather a referencing occurrence. The defining
4614 -- occurrence is an E_Block entity declared by the implicit label
4615 -- declaration which occurs in the innermost enclosing block statement
4616 -- or body; the block identifier denotes that E_Block.
4618 -- For block statements that come from source code, there is always a
4619 -- block statement identifier present in the tree, denoting an
4620 -- E_Block. In the case where no block identifier is given in the
4621 -- source, the parser creates a name of the form B_n, where n is a
4622 -- decimal integer, and the flag Has_Created_Identifier is set to
4623 -- True. Blocks constructed by the expander usually have no identifier,
4624 -- and no corresponding entity.
4626 -- Note: the block statement created for an extended return statement
4627 -- has an entity, and this entity is an E_Return_Statement, rather than
4628 -- the usual E_Block.
4630 -- Note: Exception_Junk is set for the wrapping blocks created during
4631 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4633 -- Note: from a control flow viewpoint, a block statement defines an
4634 -- extended basic block, i.e. the entry of the block dominates every
4635 -- statement in the sequence. When generating new statements with
4636 -- exception handlers in the expander at the end of a sequence that
4637 -- comes from source code, it can be necessary to wrap them all in a
4638 -- block statement in order to expose the implicit control flow to
4639 -- gigi and thus prevent it from issuing bogus control flow warnings.
4641 -- N_Block_Statement
4642 -- Sloc points to DECLARE or BEGIN
4643 -- Identifier (Node1) block direct name (set to Empty if not present)
4644 -- Declarations (List2) (set to No_List if no DECLARE part)
4645 -- Handled_Statement_Sequence (Node4)
4646 -- Is_Task_Master (Flag5-Sem)
4647 -- Activation_Chain_Entity (Node3-Sem)
4648 -- Has_Created_Identifier (Flag15)
4649 -- Is_Task_Allocation_Block (Flag6)
4650 -- Is_Asynchronous_Call_Block (Flag7)
4651 -- Exception_Junk (Flag8-Sem)
4652 -- Is_Finalization_Wrapper (Flag9-Sem)
4654 -------------------------
4655 -- 5.7 Exit Statement --
4656 -------------------------
4658 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4660 -- Gigi restriction: This expander ensures that the type of the
4661 -- Condition field is always Standard.Boolean, even if the type
4662 -- in the source is some non-standard boolean type.
4665 -- Sloc points to EXIT
4666 -- Name (Node2) (set to Empty if no loop name present)
4667 -- Condition (Node1) (set to Empty if no WHEN part present)
4668 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4670 -------------------------
4671 -- 5.9 Goto Statement --
4672 -------------------------
4674 -- GOTO_STATEMENT ::= goto label_NAME;
4677 -- Sloc points to GOTO
4679 -- Exception_Junk (Flag8-Sem)
4681 ---------------------------------
4682 -- 6.1 Subprogram Declaration --
4683 ---------------------------------
4685 -- SUBPROGRAM_DECLARATION ::=
4686 -- SUBPROGRAM_SPECIFICATION
4687 -- [ASPECT_SPECIFICATIONS];
4689 -- N_Subprogram_Declaration
4690 -- Sloc points to FUNCTION or PROCEDURE
4691 -- Specification (Node1)
4692 -- Body_To_Inline (Node3-Sem)
4693 -- Corresponding_Body (Node5-Sem)
4694 -- Parent_Spec (Node4-Sem)
4696 ------------------------------------------
4697 -- 6.1 Abstract Subprogram Declaration --
4698 ------------------------------------------
4700 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4701 -- SUBPROGRAM_SPECIFICATION is abstract
4702 -- [ASPECT_SPECIFICATIONS];
4704 -- N_Abstract_Subprogram_Declaration
4705 -- Sloc points to ABSTRACT
4706 -- Specification (Node1)
4708 -----------------------------------
4709 -- 6.1 Subprogram Specification --
4710 -----------------------------------
4712 -- SUBPROGRAM_SPECIFICATION ::=
4713 -- [[not] overriding]
4714 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4715 -- | [[not] overriding]
4716 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4718 -- Note: there are no separate nodes for the profiles, instead the
4719 -- information appears directly in the following nodes.
4721 -- N_Function_Specification
4722 -- Sloc points to FUNCTION
4723 -- Defining_Unit_Name (Node1) (the designator)
4724 -- Elaboration_Boolean (Node2-Sem)
4725 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4726 -- Null_Exclusion_Present (Flag11)
4727 -- Result_Definition (Node4) for result subtype
4728 -- Generic_Parent (Node5-Sem)
4729 -- Must_Override (Flag14) set if overriding indicator present
4730 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4732 -- N_Procedure_Specification
4733 -- Sloc points to PROCEDURE
4734 -- Defining_Unit_Name (Node1)
4735 -- Elaboration_Boolean (Node2-Sem)
4736 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4737 -- Generic_Parent (Node5-Sem)
4738 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4739 -- Must_Override (Flag14) set if overriding indicator present
4740 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4742 -- Note: overriding indicator is an Ada 2005 feature
4744 ---------------------
4745 -- 6.1 Designator --
4746 ---------------------
4749 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4751 -- Designators that are simply identifiers or operator symbols appear
4752 -- directly in the tree in this form. The following node is used only
4753 -- in the case where the designator has a parent unit name component.
4756 -- Sloc points to period
4757 -- Name (Node2) holds the parent unit name. Note that this is always
4758 -- non-Empty, since this node is only used for the case where a
4759 -- parent library unit package name is present.
4760 -- Identifier (Node1)
4762 -- Note that the identifier can also be an operator symbol here
4764 ------------------------------
4765 -- 6.1 Defining Designator --
4766 ------------------------------
4768 -- DEFINING_DESIGNATOR ::=
4769 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4771 -------------------------------------
4772 -- 6.1 Defining Program Unit Name --
4773 -------------------------------------
4775 -- DEFINING_PROGRAM_UNIT_NAME ::=
4776 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4778 -- The parent unit name is present only in the case of a child unit
4779 -- name (permissible only for Ada 95 for a library level unit, i.e.
4780 -- a unit at scope level one). If no such name is present, the defining
4781 -- program unit name is represented simply as the defining identifier.
4782 -- In the child unit case, the following node is used to represent the
4785 -- N_Defining_Program_Unit_Name
4786 -- Sloc points to period
4787 -- Name (Node2) holds the parent unit name. Note that this is always
4788 -- non-Empty, since this node is only used for the case where a
4789 -- parent unit name is present.
4790 -- Defining_Identifier (Node1)
4792 --------------------------
4793 -- 6.1 Operator Symbol --
4794 --------------------------
4796 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4798 -- Note: the fields of the N_Operator_Symbol node are laid out to
4799 -- match the corresponding fields of an N_Character_Literal node. This
4800 -- allows easy conversion of the operator symbol node into a character
4801 -- literal node in the case where a string constant of the form of an
4802 -- operator symbol is scanned out as such, but turns out semantically
4803 -- to be a string literal that is not an operator. For details see
4804 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4806 -- N_Operator_Symbol
4807 -- Sloc points to literal
4808 -- Chars (Name1) contains the Name_Id for the operator symbol
4809 -- Strval (Str3) Id of string value. This is used if the operator
4810 -- symbol turns out to be a normal string after all.
4811 -- Entity (Node4-Sem)
4812 -- Associated_Node (Node4-Sem)
4813 -- Has_Private_View (Flag11-Sem) set in generic units.
4814 -- Etype (Node5-Sem)
4816 -- Note: the Strval field may be set to No_String for generated
4817 -- operator symbols that are known not to be string literals
4820 -----------------------------------
4821 -- 6.1 Defining Operator Symbol --
4822 -----------------------------------
4824 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4826 -- A defining operator symbol is an entity, which has additional
4827 -- fields depending on the setting of the Ekind field. These
4828 -- additional fields are defined (and access subprograms declared)
4829 -- in package Einfo.
4831 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4832 -- are deliberately layed out to match the layout of fields in an
4833 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4834 -- an operator symbol node into a defining operator symbol node.
4835 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4836 -- for further details.
4838 -- N_Defining_Operator_Symbol
4839 -- Sloc points to literal
4840 -- Chars (Name1) contains the Name_Id for the operator symbol
4841 -- Next_Entity (Node2-Sem)
4842 -- Scope (Node3-Sem)
4843 -- Etype (Node5-Sem)
4845 ----------------------------
4846 -- 6.1 Parameter Profile --
4847 ----------------------------
4849 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4851 ---------------------------------------
4852 -- 6.1 Parameter and Result Profile --
4853 ---------------------------------------
4855 -- PARAMETER_AND_RESULT_PROFILE ::=
4856 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4857 -- | [FORMAL_PART] return ACCESS_DEFINITION
4859 -- There is no explicit node in the tree for a parameter and result
4860 -- profile. Instead the information appears directly in the parent.
4862 ----------------------
4863 -- 6.1 Formal Part --
4864 ----------------------
4867 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4869 ----------------------------------
4870 -- 6.1 Parameter Specification --
4871 ----------------------------------
4873 -- PARAMETER_SPECIFICATION ::=
4874 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4875 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4876 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4877 -- [:= DEFAULT_EXPRESSION]
4879 -- Although the syntax allows multiple identifiers in the list, the
4880 -- semantics is as though successive specifications were given with
4881 -- identical type definition and expression components. To simplify
4882 -- semantic processing, the parser represents a multiple declaration
4883 -- case as a sequence of single Specifications, using the More_Ids and
4884 -- Prev_Ids flags to preserve the original source form as described
4885 -- in the section on "Handling of Defining Identifier Lists".
4887 -- ALIASED can only be present in Ada 2012 mode
4889 -- N_Parameter_Specification
4890 -- Sloc points to first identifier
4891 -- Defining_Identifier (Node1)
4892 -- Aliased_Present (Flag4)
4893 -- In_Present (Flag15)
4894 -- Out_Present (Flag17)
4895 -- Null_Exclusion_Present (Flag11)
4896 -- Parameter_Type (Node2) subtype mark or access definition
4897 -- Expression (Node3) (set to Empty if no default expression present)
4898 -- Do_Accessibility_Check (Flag13-Sem)
4899 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4900 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4901 -- Default_Expression (Node5-Sem)
4907 -- MODE ::= [in] | in out | out
4909 -- There is no explicit node in the tree for the Mode. Instead the
4910 -- In_Present and Out_Present flags are set in the parent node to
4911 -- record the presence of keywords specifying the mode.
4913 --------------------------
4914 -- 6.3 Subprogram Body --
4915 --------------------------
4917 -- SUBPROGRAM_BODY ::=
4918 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
4921 -- HANDLED_SEQUENCE_OF_STATEMENTS
4922 -- end [DESIGNATOR];
4924 -- N_Subprogram_Body
4925 -- Sloc points to FUNCTION or PROCEDURE
4926 -- Specification (Node1)
4927 -- Declarations (List2)
4928 -- Handled_Statement_Sequence (Node4)
4929 -- Activation_Chain_Entity (Node3-Sem)
4930 -- Corresponding_Spec (Node5-Sem)
4931 -- Acts_As_Spec (Flag4-Sem)
4932 -- Bad_Is_Detected (Flag15) used only by parser
4933 -- Do_Storage_Check (Flag17-Sem)
4934 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4935 -- Is_Entry_Barrier_Function (Flag8-Sem)
4936 -- Is_Task_Master (Flag5-Sem)
4937 -- Was_Originally_Stub (Flag13-Sem)
4938 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4940 -------------------------
4941 -- Expression Function --
4942 -------------------------
4944 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4945 -- and put in its proper section when we know exactly where that is!
4947 -- EXPRESSION_FUNCTION ::=
4948 -- FUNCTION SPECIFICATION IS (EXPRESSION)
4949 -- [ASPECT_SPECIFICATIONS];
4951 -- N_Expression_Function
4952 -- Sloc points to FUNCTION
4953 -- Specification (Node1)
4954 -- Expression (Node3)
4955 -- Corresponding_Spec (Node5-Sem)
4957 -----------------------------------
4958 -- 6.4 Procedure Call Statement --
4959 -----------------------------------
4961 -- PROCEDURE_CALL_STATEMENT ::=
4962 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4964 -- Note: the reason that a procedure call has expression fields is
4965 -- that it semantically resembles an expression, e.g. overloading is
4966 -- allowed and a type is concocted for semantic processing purposes.
4967 -- Certain of these fields, such as Parens are not relevant, but it
4968 -- is easier to just supply all of them together!
4970 -- N_Procedure_Call_Statement
4971 -- Sloc points to first token of name or prefix
4972 -- Name (Node2) stores name or prefix
4973 -- Parameter_Associations (List3) (set to No_List if no
4974 -- actual parameter part)
4975 -- First_Named_Actual (Node4-Sem)
4976 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4977 -- Do_Tag_Check (Flag13-Sem)
4978 -- No_Elaboration_Check (Flag14-Sem)
4979 -- Parameter_List_Truncated (Flag17-Sem)
4980 -- ABE_Is_Certain (Flag18-Sem)
4981 -- plus fields for expression
4983 -- If any IN parameter requires a range check, then the corresponding
4984 -- argument expression has the Do_Range_Check flag set, and the range
4985 -- check is done against the formal type. Note that this argument
4986 -- expression may appear directly in the Parameter_Associations list,
4987 -- or may be a descendent of an N_Parameter_Association node that
4988 -- appears in this list.
4990 ------------------------
4991 -- 6.4 Function Call --
4992 ------------------------
4994 -- FUNCTION_CALL ::=
4995 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4997 -- Note: the parser may generate an indexed component node or simply
4998 -- a name node instead of a function call node. The semantic pass must
4999 -- correct this misidentification.
5002 -- Sloc points to first token of name or prefix
5003 -- Name (Node2) stores name or prefix
5004 -- Parameter_Associations (List3) (set to No_List if no
5005 -- actual parameter part)
5006 -- First_Named_Actual (Node4-Sem)
5007 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5008 -- In_Assertion_Expression (Flag4-Sem)
5009 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5010 -- Do_Tag_Check (Flag13-Sem)
5011 -- No_Elaboration_Check (Flag14-Sem)
5012 -- Parameter_List_Truncated (Flag17-Sem)
5013 -- ABE_Is_Certain (Flag18-Sem)
5014 -- plus fields for expression
5016 --------------------------------
5017 -- 6.4 Actual Parameter Part --
5018 --------------------------------
5020 -- ACTUAL_PARAMETER_PART ::=
5021 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5023 --------------------------------
5024 -- 6.4 Parameter Association --
5025 --------------------------------
5027 -- PARAMETER_ASSOCIATION ::=
5028 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5030 -- Note: the N_Parameter_Association node is built only if a formal
5031 -- parameter selector name is present, otherwise the parameter
5032 -- association appears in the tree simply as the node for the
5033 -- explicit actual parameter.
5035 -- N_Parameter_Association
5036 -- Sloc points to formal parameter
5037 -- Selector_Name (Node2) (always non-Empty)
5038 -- Explicit_Actual_Parameter (Node3)
5039 -- Next_Named_Actual (Node4-Sem)
5040 -- Is_Accessibility_Actual (Flag13-Sem)
5042 ---------------------------
5043 -- 6.4 Actual Parameter --
5044 ---------------------------
5046 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5048 ---------------------------
5049 -- 6.5 Return Statement --
5050 ---------------------------
5052 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5054 -- EXTENDED_RETURN_STATEMENT ::=
5055 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5056 -- [:= EXPRESSION] [do
5057 -- HANDLED_SEQUENCE_OF_STATEMENTS
5060 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5062 -- The term "return statement" is defined in 6.5 to mean either a
5063 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5064 -- the use of this term, since it used to mean someting else in earlier
5067 -- N_Simple_Return_Statement
5068 -- Sloc points to RETURN
5069 -- Return_Statement_Entity (Node5-Sem)
5070 -- Expression (Node3) (set to Empty if no expression present)
5071 -- Storage_Pool (Node1-Sem)
5072 -- Procedure_To_Call (Node2-Sem)
5073 -- Do_Tag_Check (Flag13-Sem)
5074 -- By_Ref (Flag5-Sem)
5075 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5077 -- Note: Return_Statement_Entity points to an E_Return_Statement
5079 -- If a range check is required, then Do_Range_Check is set on the
5080 -- Expression. The check is against the return subtype of the function.
5082 -- N_Extended_Return_Statement
5083 -- Sloc points to RETURN
5084 -- Return_Statement_Entity (Node5-Sem)
5085 -- Return_Object_Declarations (List3)
5086 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5087 -- Storage_Pool (Node1-Sem)
5088 -- Procedure_To_Call (Node2-Sem)
5089 -- Do_Tag_Check (Flag13-Sem)
5090 -- By_Ref (Flag5-Sem)
5092 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5094 -- Note that Return_Object_Declarations is a list containing the
5095 -- N_Object_Declaration -- see comment on this field above.
5097 -- The declared object will have Is_Return_Object = True.
5099 -- There is no such syntactic category as return_object_declaration
5100 -- in the RM. Return_Object_Declarations represents this portion of
5101 -- the syntax for EXTENDED_RETURN_STATEMENT:
5102 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5105 -- There are two entities associated with an extended_return_statement:
5106 -- the Return_Statement_Entity represents the statement itself, and the
5107 -- Defining_Identifier of the Object_Declaration in
5108 -- Return_Object_Declarations represents the object being
5109 -- returned. N_Simple_Return_Statement has only the former.
5111 ------------------------------
5112 -- 7.1 Package Declaration --
5113 ------------------------------
5115 -- PACKAGE_DECLARATION ::=
5116 -- PACKAGE_SPECIFICATION;
5118 -- Note: the activation chain entity for a package spec is used for
5119 -- all tasks declared in the package spec, or in the package body.
5121 -- N_Package_Declaration
5122 -- Sloc points to PACKAGE
5123 -- Specification (Node1)
5124 -- Corresponding_Body (Node5-Sem)
5125 -- Parent_Spec (Node4-Sem)
5126 -- Activation_Chain_Entity (Node3-Sem)
5128 --------------------------------
5129 -- 7.1 Package Specification --
5130 --------------------------------
5132 -- PACKAGE_SPECIFICATION ::=
5133 -- package DEFINING_PROGRAM_UNIT_NAME
5134 -- [ASPECT_SPECIFICATIONS]
5136 -- {BASIC_DECLARATIVE_ITEM}
5138 -- {BASIC_DECLARATIVE_ITEM}]
5139 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5141 -- N_Package_Specification
5142 -- Sloc points to PACKAGE
5143 -- Defining_Unit_Name (Node1)
5144 -- Visible_Declarations (List2)
5145 -- Private_Declarations (List3) (set to No_List if no private
5147 -- End_Label (Node4)
5148 -- Generic_Parent (Node5-Sem)
5149 -- Limited_View_Installed (Flag18-Sem)
5151 -----------------------
5152 -- 7.1 Package Body --
5153 -----------------------
5156 -- package body DEFINING_PROGRAM_UNIT_NAME
5157 -- [ASPECT_SPECIFICATIONS]
5161 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5162 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5165 -- Sloc points to PACKAGE
5166 -- Defining_Unit_Name (Node1)
5167 -- Declarations (List2)
5168 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5169 -- Corresponding_Spec (Node5-Sem)
5170 -- Was_Originally_Stub (Flag13-Sem)
5172 -- Note: if a source level package does not contain a handled sequence
5173 -- of statements, then the parser supplies a dummy one with a null
5174 -- sequence of statements. Comes_From_Source will be False in this
5175 -- constructed sequence. The reason we need this is for the End_Label
5176 -- field in the HSS.
5178 -----------------------------------
5179 -- 7.4 Private Type Declaration --
5180 -----------------------------------
5182 -- PRIVATE_TYPE_DECLARATION ::=
5183 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5184 -- is [[abstract] tagged] [limited] private
5185 -- [ASPECT_SPECIFICATIONS];
5187 -- Note: TAGGED is not permitted in Ada 83 mode
5189 -- N_Private_Type_Declaration
5190 -- Sloc points to TYPE
5191 -- Defining_Identifier (Node1)
5192 -- Discriminant_Specifications (List4) (set to No_List if no
5193 -- discriminant part)
5194 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5195 -- Abstract_Present (Flag4)
5196 -- Tagged_Present (Flag15)
5197 -- Limited_Present (Flag17)
5199 ----------------------------------------
5200 -- 7.4 Private Extension Declaration --
5201 ----------------------------------------
5203 -- PRIVATE_EXTENSION_DECLARATION ::=
5204 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5205 -- [abstract] [limited | synchronized]
5206 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5207 -- with private [ASPECT_SPECIFICATIONS];
5209 -- Note: LIMITED, and private extension declarations are not allowed
5212 -- N_Private_Extension_Declaration
5213 -- Sloc points to TYPE
5214 -- Defining_Identifier (Node1)
5215 -- Discriminant_Specifications (List4) (set to No_List if no
5216 -- discriminant part)
5217 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5218 -- Abstract_Present (Flag4)
5219 -- Limited_Present (Flag17)
5220 -- Synchronized_Present (Flag7)
5221 -- Subtype_Indication (Node5)
5222 -- Interface_List (List2) (set to No_List if none)
5224 ---------------------
5225 -- 8.4 Use Clause --
5226 ---------------------
5228 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5230 -----------------------------
5231 -- 8.4 Use Package Clause --
5232 -----------------------------
5234 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5236 -- N_Use_Package_Clause
5237 -- Sloc points to USE
5239 -- Next_Use_Clause (Node3-Sem)
5240 -- Hidden_By_Use_Clause (Elist4-Sem)
5242 --------------------------
5243 -- 8.4 Use Type Clause --
5244 --------------------------
5246 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5248 -- Note: use type clause is not permitted in Ada 83 mode
5250 -- Note: the ALL keyword can appear only in Ada 2012 mode
5252 -- N_Use_Type_Clause
5253 -- Sloc points to USE
5254 -- Subtype_Marks (List2)
5255 -- Next_Use_Clause (Node3-Sem)
5256 -- Hidden_By_Use_Clause (Elist4-Sem)
5257 -- Used_Operations (Elist5-Sem)
5258 -- All_Present (Flag15)
5260 -------------------------------
5261 -- 8.5 Renaming Declaration --
5262 -------------------------------
5264 -- RENAMING_DECLARATION ::=
5265 -- OBJECT_RENAMING_DECLARATION
5266 -- | EXCEPTION_RENAMING_DECLARATION
5267 -- | PACKAGE_RENAMING_DECLARATION
5268 -- | SUBPROGRAM_RENAMING_DECLARATION
5269 -- | GENERIC_RENAMING_DECLARATION
5271 --------------------------------------
5272 -- 8.5 Object Renaming Declaration --
5273 --------------------------------------
5275 -- OBJECT_RENAMING_DECLARATION ::=
5276 -- DEFINING_IDENTIFIER :
5277 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5278 -- [ASPECT_SPECIFICATIONS];
5279 -- | DEFINING_IDENTIFIER :
5280 -- ACCESS_DEFINITION renames object_NAME
5281 -- [ASPECT_SPECIFICATIONS];
5283 -- Note: Access_Definition is an optional field that gives support to
5284 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5285 -- Subtype_Indication field or else the Access_Definition field.
5287 -- N_Object_Renaming_Declaration
5288 -- Sloc points to first identifier
5289 -- Defining_Identifier (Node1)
5290 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5291 -- Subtype_Mark (Node4) (set to Empty if not present)
5292 -- Access_Definition (Node3) (set to Empty if not present)
5294 -- Corresponding_Generic_Association (Node5-Sem)
5296 -----------------------------------------
5297 -- 8.5 Exception Renaming Declaration --
5298 -----------------------------------------
5300 -- EXCEPTION_RENAMING_DECLARATION ::=
5301 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5302 -- [ASPECT_SPECIFICATIONS];
5304 -- N_Exception_Renaming_Declaration
5305 -- Sloc points to first identifier
5306 -- Defining_Identifier (Node1)
5309 ---------------------------------------
5310 -- 8.5 Package Renaming Declaration --
5311 ---------------------------------------
5313 -- PACKAGE_RENAMING_DECLARATION ::=
5314 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5315 -- [ASPECT_SPECIFICATIONS];
5317 -- N_Package_Renaming_Declaration
5318 -- Sloc points to PACKAGE
5319 -- Defining_Unit_Name (Node1)
5321 -- Parent_Spec (Node4-Sem)
5323 ------------------------------------------
5324 -- 8.5 Subprogram Renaming Declaration --
5325 ------------------------------------------
5327 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5328 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5329 -- [ASPECT_SPECIFICATIONS];
5331 -- N_Subprogram_Renaming_Declaration
5332 -- Sloc points to RENAMES
5333 -- Specification (Node1)
5335 -- Parent_Spec (Node4-Sem)
5336 -- Corresponding_Spec (Node5-Sem)
5337 -- Corresponding_Formal_Spec (Node3-Sem)
5338 -- From_Default (Flag6-Sem)
5340 -----------------------------------------
5341 -- 8.5.5 Generic Renaming Declaration --
5342 -----------------------------------------
5344 -- GENERIC_RENAMING_DECLARATION ::=
5345 -- generic package DEFINING_PROGRAM_UNIT_NAME
5346 -- renames generic_package_NAME
5347 -- [ASPECT_SPECIFICATIONS];
5348 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5349 -- renames generic_procedure_NAME
5350 -- [ASPECT_SPECIFICATIONS];
5351 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5352 -- renames generic_function_NAME
5353 -- [ASPECT_SPECIFICATIONS];
5355 -- N_Generic_Package_Renaming_Declaration
5356 -- Sloc points to GENERIC
5357 -- Defining_Unit_Name (Node1)
5359 -- Parent_Spec (Node4-Sem)
5361 -- N_Generic_Procedure_Renaming_Declaration
5362 -- Sloc points to GENERIC
5363 -- Defining_Unit_Name (Node1)
5365 -- Parent_Spec (Node4-Sem)
5367 -- N_Generic_Function_Renaming_Declaration
5368 -- Sloc points to GENERIC
5369 -- Defining_Unit_Name (Node1)
5371 -- Parent_Spec (Node4-Sem)
5373 --------------------------------
5374 -- 9.1 Task Type Declaration --
5375 --------------------------------
5377 -- TASK_TYPE_DECLARATION ::=
5378 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5379 -- [ASPECT_SPECIFICATIONS]
5380 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5382 -- N_Task_Type_Declaration
5383 -- Sloc points to TASK
5384 -- Defining_Identifier (Node1)
5385 -- Discriminant_Specifications (List4) (set to No_List if no
5386 -- discriminant part)
5387 -- Interface_List (List2) (set to No_List if none)
5388 -- Task_Definition (Node3) (set to Empty if not present)
5389 -- Corresponding_Body (Node5-Sem)
5391 ----------------------------------
5392 -- 9.1 Single Task Declaration --
5393 ----------------------------------
5395 -- SINGLE_TASK_DECLARATION ::=
5396 -- task DEFINING_IDENTIFIER
5397 -- [ASPECT_SPECIFICATIONS]
5398 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5400 -- N_Single_Task_Declaration
5401 -- Sloc points to TASK
5402 -- Defining_Identifier (Node1)
5403 -- Interface_List (List2) (set to No_List if none)
5404 -- Task_Definition (Node3) (set to Empty if not present)
5406 --------------------------
5407 -- 9.1 Task Definition --
5408 --------------------------
5410 -- TASK_DEFINITION ::=
5414 -- end [task_IDENTIFIER]
5416 -- Note: as a result of semantic analysis, the list of task items can
5417 -- include implicit type declarations resulting from entry families.
5419 -- N_Task_Definition
5420 -- Sloc points to first token of task definition
5421 -- Visible_Declarations (List2)
5422 -- Private_Declarations (List3) (set to No_List if no private part)
5423 -- End_Label (Node4)
5424 -- Has_Storage_Size_Pragma (Flag5-Sem)
5425 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5427 --------------------
5429 --------------------
5431 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5433 --------------------
5435 --------------------
5438 -- task body task_DEFINING_IDENTIFIER
5439 -- [ASPECT_SPECIFICATIONS]
5443 -- HANDLED_SEQUENCE_OF_STATEMENTS
5444 -- end [task_IDENTIFIER];
5446 -- Gigi restriction: This node never appears
5449 -- Sloc points to TASK
5450 -- Defining_Identifier (Node1)
5451 -- Declarations (List2)
5452 -- Handled_Statement_Sequence (Node4)
5453 -- Is_Task_Master (Flag5-Sem)
5454 -- Activation_Chain_Entity (Node3-Sem)
5455 -- Corresponding_Spec (Node5-Sem)
5456 -- Was_Originally_Stub (Flag13-Sem)
5458 -------------------------------------
5459 -- 9.4 Protected Type Declaration --
5460 -------------------------------------
5462 -- PROTECTED_TYPE_DECLARATION ::=
5463 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5464 -- [ASPECT_SPECIFICATIONS]
5465 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5467 -- Note: protected type declarations are not permitted in Ada 83 mode
5469 -- N_Protected_Type_Declaration
5470 -- Sloc points to PROTECTED
5471 -- Defining_Identifier (Node1)
5472 -- Discriminant_Specifications (List4) (set to No_List if no
5473 -- discriminant part)
5474 -- Interface_List (List2) (set to No_List if none)
5475 -- Protected_Definition (Node3)
5476 -- Corresponding_Body (Node5-Sem)
5478 ---------------------------------------
5479 -- 9.4 Single Protected Declaration --
5480 ---------------------------------------
5482 -- SINGLE_PROTECTED_DECLARATION ::=
5483 -- protected DEFINING_IDENTIFIER
5484 -- [ASPECT_SPECIFICATIONS]
5485 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5487 -- Note: single protected declarations are not allowed in Ada 83 mode
5489 -- N_Single_Protected_Declaration
5490 -- Sloc points to PROTECTED
5491 -- Defining_Identifier (Node1)
5492 -- Interface_List (List2) (set to No_List if none)
5493 -- Protected_Definition (Node3)
5495 -------------------------------
5496 -- 9.4 Protected Definition --
5497 -------------------------------
5499 -- PROTECTED_DEFINITION ::=
5500 -- {PROTECTED_OPERATION_DECLARATION}
5502 -- {PROTECTED_ELEMENT_DECLARATION}]
5503 -- end [protected_IDENTIFIER]
5505 -- N_Protected_Definition
5506 -- Sloc points to first token of protected definition
5507 -- Visible_Declarations (List2)
5508 -- Private_Declarations (List3) (set to No_List if no private part)
5509 -- End_Label (Node4)
5511 ------------------------------------------
5512 -- 9.4 Protected Operation Declaration --
5513 ------------------------------------------
5515 -- PROTECTED_OPERATION_DECLARATION ::=
5516 -- SUBPROGRAM_DECLARATION
5517 -- | ENTRY_DECLARATION
5518 -- | REPRESENTATION_CLAUSE
5520 ----------------------------------------
5521 -- 9.4 Protected Element Declaration --
5522 ----------------------------------------
5524 -- PROTECTED_ELEMENT_DECLARATION ::=
5525 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5527 -------------------------
5528 -- 9.4 Protected Body --
5529 -------------------------
5531 -- PROTECTED_BODY ::=
5532 -- protected body DEFINING_IDENTIFIER
5533 -- [ASPECT_SPECIFICATIONS];
5535 -- {PROTECTED_OPERATION_ITEM}
5536 -- end [protected_IDENTIFIER];
5538 -- Note: protected bodies are not allowed in Ada 83 mode
5540 -- Gigi restriction: This node never appears
5543 -- Sloc points to PROTECTED
5544 -- Defining_Identifier (Node1)
5545 -- Declarations (List2) protected operation items (and pragmas)
5546 -- End_Label (Node4)
5547 -- Corresponding_Spec (Node5-Sem)
5548 -- Was_Originally_Stub (Flag13-Sem)
5550 -----------------------------------
5551 -- 9.4 Protected Operation Item --
5552 -----------------------------------
5554 -- PROTECTED_OPERATION_ITEM ::=
5555 -- SUBPROGRAM_DECLARATION
5556 -- | SUBPROGRAM_BODY
5558 -- | REPRESENTATION_CLAUSE
5560 ------------------------------
5561 -- 9.5.2 Entry Declaration --
5562 ------------------------------
5564 -- ENTRY_DECLARATION ::=
5565 -- [[not] overriding]
5566 -- entry DEFINING_IDENTIFIER
5567 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5568 -- [ASPECT_SPECIFICATIONS];
5570 -- N_Entry_Declaration
5571 -- Sloc points to ENTRY
5572 -- Defining_Identifier (Node1)
5573 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5574 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5575 -- Corresponding_Body (Node5-Sem)
5576 -- Must_Override (Flag14) set if overriding indicator present
5577 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5579 -- Note: overriding indicator is an Ada 2005 feature
5581 -----------------------------
5582 -- 9.5.2 Accept statement --
5583 -----------------------------
5585 -- ACCEPT_STATEMENT ::=
5586 -- accept entry_DIRECT_NAME
5587 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5588 -- HANDLED_SEQUENCE_OF_STATEMENTS
5589 -- end [entry_IDENTIFIER]];
5591 -- Gigi restriction: This node never appears
5593 -- Note: there are no explicit declarations allowed in an accept
5594 -- statement. However, the implicit declarations for any statement
5595 -- identifiers (labels and block/loop identifiers) are declarations
5596 -- that belong logically to the accept statement, and that is why
5597 -- there is a Declarations field in this node.
5599 -- N_Accept_Statement
5600 -- Sloc points to ACCEPT
5601 -- Entry_Direct_Name (Node1)
5602 -- Entry_Index (Node5) (set to Empty if not present)
5603 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5604 -- Handled_Statement_Sequence (Node4)
5605 -- Declarations (List2) (set to No_List if no declarations)
5607 ------------------------
5608 -- 9.5.2 Entry Index --
5609 ------------------------
5611 -- ENTRY_INDEX ::= EXPRESSION
5613 -----------------------
5614 -- 9.5.2 Entry Body --
5615 -----------------------
5618 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5621 -- HANDLED_SEQUENCE_OF_STATEMENTS
5622 -- end [entry_IDENTIFIER];
5624 -- ENTRY_BARRIER ::= when CONDITION
5626 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5627 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5628 -- too full (it would otherwise have too many fields)
5630 -- Gigi restriction: This node never appears
5633 -- Sloc points to ENTRY
5634 -- Defining_Identifier (Node1)
5635 -- Entry_Body_Formal_Part (Node5)
5636 -- Declarations (List2)
5637 -- Handled_Statement_Sequence (Node4)
5638 -- Activation_Chain_Entity (Node3-Sem)
5640 -----------------------------------
5641 -- 9.5.2 Entry Body Formal Part --
5642 -----------------------------------
5644 -- ENTRY_BODY_FORMAL_PART ::=
5645 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5647 -- Note that an entry body formal part node is present even if it is
5648 -- empty. This reflects the grammar, in which it is the components of
5649 -- the entry body formal part that are optional, not the entry body
5650 -- formal part itself. Also this means that the barrier condition
5651 -- always has somewhere to be stored.
5653 -- Gigi restriction: This node never appears
5655 -- N_Entry_Body_Formal_Part
5656 -- Sloc points to first token
5657 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5658 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5659 -- Condition (Node1) from entry barrier of entry body
5661 --------------------------
5662 -- 9.5.2 Entry Barrier --
5663 --------------------------
5665 -- ENTRY_BARRIER ::= when CONDITION
5667 --------------------------------------
5668 -- 9.5.2 Entry Index Specification --
5669 --------------------------------------
5671 -- ENTRY_INDEX_SPECIFICATION ::=
5672 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5674 -- Gigi restriction: This node never appears
5676 -- N_Entry_Index_Specification
5677 -- Sloc points to FOR
5678 -- Defining_Identifier (Node1)
5679 -- Discrete_Subtype_Definition (Node4)
5681 ---------------------------------
5682 -- 9.5.3 Entry Call Statement --
5683 ---------------------------------
5685 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5687 -- The parser may generate a procedure call for this construct. The
5688 -- semantic pass must correct this misidentification where needed.
5690 -- Gigi restriction: This node never appears
5692 -- N_Entry_Call_Statement
5693 -- Sloc points to first token of name
5695 -- Parameter_Associations (List3) (set to No_List if no
5696 -- actual parameter part)
5697 -- First_Named_Actual (Node4-Sem)
5699 ------------------------------
5700 -- 9.5.4 Requeue Statement --
5701 ------------------------------
5703 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5705 -- Note: requeue statements are not permitted in Ada 83 mode
5707 -- Gigi restriction: This node never appears
5709 -- N_Requeue_Statement
5710 -- Sloc points to REQUEUE
5712 -- Abort_Present (Flag15)
5714 --------------------------
5715 -- 9.6 Delay Statement --
5716 --------------------------
5718 -- DELAY_STATEMENT ::=
5719 -- DELAY_UNTIL_STATEMENT
5720 -- | DELAY_RELATIVE_STATEMENT
5722 --------------------------------
5723 -- 9.6 Delay Until Statement --
5724 --------------------------------
5726 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5728 -- Note: delay until statements are not permitted in Ada 83 mode
5730 -- Gigi restriction: This node never appears
5732 -- N_Delay_Until_Statement
5733 -- Sloc points to DELAY
5734 -- Expression (Node3)
5736 -----------------------------------
5737 -- 9.6 Delay Relative Statement --
5738 -----------------------------------
5740 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5742 -- Gigi restriction: This node never appears
5744 -- N_Delay_Relative_Statement
5745 -- Sloc points to DELAY
5746 -- Expression (Node3)
5748 ---------------------------
5749 -- 9.7 Select Statement --
5750 ---------------------------
5752 -- SELECT_STATEMENT ::=
5754 -- | TIMED_ENTRY_CALL
5755 -- | CONDITIONAL_ENTRY_CALL
5756 -- | ASYNCHRONOUS_SELECT
5758 -----------------------------
5759 -- 9.7.1 Selective Accept --
5760 -----------------------------
5762 -- SELECTIVE_ACCEPT ::=
5765 -- SELECT_ALTERNATIVE
5768 -- SELECT_ALTERNATIVE}
5770 -- SEQUENCE_OF_STATEMENTS]
5773 -- Gigi restriction: This node never appears
5775 -- Note: the guard expression, if present, appears in the node for
5776 -- the select alternative.
5778 -- N_Selective_Accept
5779 -- Sloc points to SELECT
5780 -- Select_Alternatives (List1)
5781 -- Else_Statements (List4) (set to No_List if no else part)
5787 -- GUARD ::= when CONDITION =>
5789 -- As noted above, the CONDITION that is part of a GUARD is included
5790 -- in the node for the select alternative for convenience.
5792 -------------------------------
5793 -- 9.7.1 Select Alternative --
5794 -------------------------------
5796 -- SELECT_ALTERNATIVE ::=
5797 -- ACCEPT_ALTERNATIVE
5798 -- | DELAY_ALTERNATIVE
5799 -- | TERMINATE_ALTERNATIVE
5801 -------------------------------
5802 -- 9.7.1 Accept Alternative --
5803 -------------------------------
5805 -- ACCEPT_ALTERNATIVE ::=
5806 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5808 -- Gigi restriction: This node never appears
5810 -- N_Accept_Alternative
5811 -- Sloc points to ACCEPT
5812 -- Accept_Statement (Node2)
5813 -- Condition (Node1) from the guard (set to Empty if no guard present)
5814 -- Statements (List3) (set to Empty_List if no statements)
5815 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5816 -- Accept_Handler_Records (List5-Sem)
5818 ------------------------------
5819 -- 9.7.1 Delay Alternative --
5820 ------------------------------
5822 -- DELAY_ALTERNATIVE ::=
5823 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5825 -- Gigi restriction: This node never appears
5827 -- N_Delay_Alternative
5828 -- Sloc points to DELAY
5829 -- Delay_Statement (Node2)
5830 -- Condition (Node1) from the guard (set to Empty if no guard present)
5831 -- Statements (List3) (set to Empty_List if no statements)
5832 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5834 ----------------------------------
5835 -- 9.7.1 Terminate Alternative --
5836 ----------------------------------
5838 -- TERMINATE_ALTERNATIVE ::= terminate;
5840 -- Gigi restriction: This node never appears
5842 -- N_Terminate_Alternative
5843 -- Sloc points to TERMINATE
5844 -- Condition (Node1) from the guard (set to Empty if no guard present)
5845 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5846 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5848 -----------------------------
5849 -- 9.7.2 Timed Entry Call --
5850 -----------------------------
5852 -- TIMED_ENTRY_CALL ::=
5854 -- ENTRY_CALL_ALTERNATIVE
5856 -- DELAY_ALTERNATIVE
5859 -- Gigi restriction: This node never appears
5861 -- N_Timed_Entry_Call
5862 -- Sloc points to SELECT
5863 -- Entry_Call_Alternative (Node1)
5864 -- Delay_Alternative (Node4)
5866 -----------------------------------
5867 -- 9.7.2 Entry Call Alternative --
5868 -----------------------------------
5870 -- ENTRY_CALL_ALTERNATIVE ::=
5871 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5873 -- PROCEDURE_OR_ENTRY_CALL ::=
5874 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5876 -- Gigi restriction: This node never appears
5878 -- N_Entry_Call_Alternative
5879 -- Sloc points to first token of entry call statement
5880 -- Entry_Call_Statement (Node1)
5881 -- Statements (List3) (set to Empty_List if no statements)
5882 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5884 -----------------------------------
5885 -- 9.7.3 Conditional Entry Call --
5886 -----------------------------------
5888 -- CONDITIONAL_ENTRY_CALL ::=
5890 -- ENTRY_CALL_ALTERNATIVE
5892 -- SEQUENCE_OF_STATEMENTS
5895 -- Gigi restriction: This node never appears
5897 -- N_Conditional_Entry_Call
5898 -- Sloc points to SELECT
5899 -- Entry_Call_Alternative (Node1)
5900 -- Else_Statements (List4)
5902 --------------------------------
5903 -- 9.7.4 Asynchronous Select --
5904 --------------------------------
5906 -- ASYNCHRONOUS_SELECT ::=
5908 -- TRIGGERING_ALTERNATIVE
5913 -- Note: asynchronous select is not permitted in Ada 83 mode
5915 -- Gigi restriction: This node never appears
5917 -- N_Asynchronous_Select
5918 -- Sloc points to SELECT
5919 -- Triggering_Alternative (Node1)
5920 -- Abortable_Part (Node2)
5922 -----------------------------------
5923 -- 9.7.4 Triggering Alternative --
5924 -----------------------------------
5926 -- TRIGGERING_ALTERNATIVE ::=
5927 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5929 -- Gigi restriction: This node never appears
5931 -- N_Triggering_Alternative
5932 -- Sloc points to first token of triggering statement
5933 -- Triggering_Statement (Node1)
5934 -- Statements (List3) (set to Empty_List if no statements)
5935 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5937 ---------------------------------
5938 -- 9.7.4 Triggering Statement --
5939 ---------------------------------
5941 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5943 ---------------------------
5944 -- 9.7.4 Abortable Part --
5945 ---------------------------
5947 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5949 -- Gigi restriction: This node never appears
5952 -- Sloc points to ABORT
5953 -- Statements (List3)
5955 --------------------------
5956 -- 9.8 Abort Statement --
5957 --------------------------
5959 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5961 -- Gigi restriction: This node never appears
5963 -- N_Abort_Statement
5964 -- Sloc points to ABORT
5967 -------------------------
5968 -- 10.1.1 Compilation --
5969 -------------------------
5971 -- COMPILATION ::= {COMPILATION_UNIT}
5973 -- There is no explicit node in the tree for a compilation, since in
5974 -- general the compiler is processing only a single compilation unit
5975 -- at a time. It is possible to parse multiple units in syntax check
5976 -- only mode, but the trees are discarded in that case.
5978 ------------------------------
5979 -- 10.1.1 Compilation Unit --
5980 ------------------------------
5982 -- COMPILATION_UNIT ::=
5983 -- CONTEXT_CLAUSE LIBRARY_ITEM
5984 -- | CONTEXT_CLAUSE SUBUNIT
5986 -- The N_Compilation_Unit node itself represents the above syntax.
5987 -- However, there are two additional items not reflected in the above
5988 -- syntax. First we have the global declarations that are added by the
5989 -- code generator. These are outer level declarations (so they cannot
5990 -- be represented as being inside the units). An example is the wrapper
5991 -- subprograms that are created to do ABE checking. As always a list of
5992 -- declarations can contain actions as well (i.e. statements), and such
5993 -- statements are executed as part of the elaboration of the unit. Note
5994 -- that all such declarations are elaborated before the library unit.
5996 -- Similarly, certain actions need to be elaborated at the completion
5997 -- of elaboration of the library unit (notably the statement that sets
5998 -- the Boolean flag indicating that elaboration is complete).
6000 -- The third item not reflected in the syntax is pragmas that appear
6001 -- after the compilation unit. As always pragmas are a problem since
6002 -- they are not part of the formal syntax, but can be stuck into the
6003 -- source following a set of ad hoc rules, and we have to find an ad
6004 -- hoc way of sticking them into the tree. For pragmas that appear
6005 -- before the library unit, we just consider them to be part of the
6006 -- context clause, and pragmas can appear in the Context_Items list
6007 -- of the compilation unit. However, pragmas can also appear after
6008 -- the library item.
6010 -- To deal with all these problems, we create an auxiliary node for
6011 -- a compilation unit, referenced from the N_Compilation_Unit node,
6012 -- that contains these items.
6014 -- N_Compilation_Unit
6015 -- Sloc points to first token of defining unit name
6016 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6017 -- Context_Items (List1) context items and pragmas preceding unit
6018 -- Private_Present (Flag15) set if library unit has private keyword
6019 -- Unit (Node2) library item or subunit
6020 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6021 -- Has_No_Elaboration_Code (Flag17-Sem)
6022 -- Body_Required (Flag13-Sem) set for spec if body is required
6023 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6024 -- Context_Pending (Flag16-Sem)
6025 -- First_Inlined_Subprogram (Node3-Sem)
6026 -- Has_Pragma_Suppress_All (Flag14-Sem)
6028 -- N_Compilation_Unit_Aux
6029 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6030 -- Declarations (List2) (set to No_List if no global declarations)
6031 -- Actions (List1) (set to No_List if no actions)
6032 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6033 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6034 -- Default_Storage_Pool (Node3-Sem)
6036 --------------------------
6037 -- 10.1.1 Library Item --
6038 --------------------------
6041 -- [private] LIBRARY_UNIT_DECLARATION
6042 -- | LIBRARY_UNIT_BODY
6043 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6045 -- Note: PRIVATE is not allowed in Ada 83 mode
6047 -- There is no explicit node in the tree for library item, instead
6048 -- the declaration or body, and the flag for private if present,
6049 -- appear in the N_Compilation_Unit node.
6051 --------------------------------------
6052 -- 10.1.1 Library Unit Declaration --
6053 --------------------------------------
6055 -- LIBRARY_UNIT_DECLARATION ::=
6056 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6057 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6059 -----------------------------------------------
6060 -- 10.1.1 Library Unit Renaming Declaration --
6061 -----------------------------------------------
6063 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6064 -- PACKAGE_RENAMING_DECLARATION
6065 -- | GENERIC_RENAMING_DECLARATION
6066 -- | SUBPROGRAM_RENAMING_DECLARATION
6068 -------------------------------
6069 -- 10.1.1 Library unit body --
6070 -------------------------------
6072 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6074 ------------------------------
6075 -- 10.1.1 Parent Unit Name --
6076 ------------------------------
6078 -- PARENT_UNIT_NAME ::= NAME
6080 ----------------------------
6081 -- 10.1.2 Context clause --
6082 ----------------------------
6084 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6086 -- The context clause can include pragmas, and any pragmas that appear
6087 -- before the context clause proper (i.e. all configuration pragmas,
6088 -- also appear at the front of this list).
6090 --------------------------
6091 -- 10.1.2 Context_Item --
6092 --------------------------
6094 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6096 -------------------------
6097 -- 10.1.2 With clause --
6098 -------------------------
6101 -- with library_unit_NAME {,library_unit_NAME};
6103 -- A separate With clause is built for each name, so that we have
6104 -- a Corresponding_Spec field for each with'ed spec. The flags
6105 -- First_Name and Last_Name are used to reconstruct the exact
6106 -- source form. When a list of names appears in one with clause,
6107 -- the first name in the list has First_Name set, and the last
6108 -- has Last_Name set. If the with clause has only one name, then
6109 -- both of the flags First_Name and Last_Name are set in this name.
6111 -- Note: in the case of implicit with's that are installed by the
6112 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6113 -- set to Standard_Location, but it is incorrect to test the Sloc
6114 -- to find out if a with clause is implicit, test the flag instead.
6117 -- Sloc points to first token of library unit name
6118 -- Withed_Body (Node1-Sem)
6120 -- Next_Implicit_With (Node3-Sem)
6121 -- Library_Unit (Node4-Sem)
6122 -- Corresponding_Spec (Node5-Sem)
6123 -- First_Name (Flag5) (set to True if first name or only one name)
6124 -- Last_Name (Flag6) (set to True if last name or only one name)
6125 -- Context_Installed (Flag13-Sem)
6126 -- Elaborate_Present (Flag4-Sem)
6127 -- Elaborate_All_Present (Flag14-Sem)
6128 -- Elaborate_All_Desirable (Flag9-Sem)
6129 -- Elaborate_Desirable (Flag11-Sem)
6130 -- Private_Present (Flag15) set if with_clause has private keyword
6131 -- Implicit_With (Flag16-Sem)
6132 -- Implicit_With_From_Instantiation (Flag12-Sem)
6133 -- Limited_Present (Flag17) set if LIMITED is present
6134 -- Limited_View_Installed (Flag18-Sem)
6135 -- Unreferenced_In_Spec (Flag7-Sem)
6136 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6138 -- Note: Limited_Present and Limited_View_Installed are used to support
6139 -- the implementation of Ada 2005 (AI-50217).
6141 -- Similarly, Private_Present is used to support the implementation of
6142 -- Ada 2005 (AI-50262).
6144 ----------------------
6145 -- With_Type clause --
6146 ----------------------
6148 -- This is a GNAT extension, used to implement mutually recursive
6149 -- types declared in different packages.
6151 -- Note: this is now obsolete. The functionality of this construct
6152 -- is now implemented by the Ada 2005 limited_with_clause.
6154 ---------------------
6155 -- 10.2 Body stub --
6156 ---------------------
6159 -- SUBPROGRAM_BODY_STUB
6160 -- | PACKAGE_BODY_STUB
6162 -- | PROTECTED_BODY_STUB
6164 ----------------------------------
6165 -- 10.1.3 Subprogram Body Stub --
6166 ----------------------------------
6168 -- SUBPROGRAM_BODY_STUB ::=
6169 -- SUBPROGRAM_SPECIFICATION is separate
6170 -- [ASPECT_SPECIFICATION];
6172 -- N_Subprogram_Body_Stub
6173 -- Sloc points to FUNCTION or PROCEDURE
6174 -- Specification (Node1)
6175 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6176 -- Library_Unit (Node4-Sem) points to the subunit
6177 -- Corresponding_Body (Node5-Sem)
6179 -------------------------------
6180 -- 10.1.3 Package Body Stub --
6181 -------------------------------
6183 -- PACKAGE_BODY_STUB ::=
6184 -- package body DEFINING_IDENTIFIER is separate
6185 -- [ASPECT_SPECIFICATION];
6187 -- N_Package_Body_Stub
6188 -- Sloc points to PACKAGE
6189 -- Defining_Identifier (Node1)
6190 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6191 -- Library_Unit (Node4-Sem) points to the subunit
6192 -- Corresponding_Body (Node5-Sem)
6194 ----------------------------
6195 -- 10.1.3 Task Body Stub --
6196 ----------------------------
6198 -- TASK_BODY_STUB ::=
6199 -- task body DEFINING_IDENTIFIER is separate
6200 -- [ASPECT_SPECIFICATION];
6203 -- Sloc points to TASK
6204 -- Defining_Identifier (Node1)
6205 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6206 -- Library_Unit (Node4-Sem) points to the subunit
6207 -- Corresponding_Body (Node5-Sem)
6209 ---------------------------------
6210 -- 10.1.3 Protected Body Stub --
6211 ---------------------------------
6213 -- PROTECTED_BODY_STUB ::=
6214 -- protected body DEFINING_IDENTIFIER is separate
6215 -- [ASPECT_SPECIFICATION];
6217 -- Note: protected body stubs are not allowed in Ada 83 mode
6219 -- N_Protected_Body_Stub
6220 -- Sloc points to PROTECTED
6221 -- Defining_Identifier (Node1)
6222 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6223 -- Library_Unit (Node4-Sem) points to the subunit
6224 -- Corresponding_Body (Node5-Sem)
6226 ---------------------
6227 -- 10.1.3 Subunit --
6228 ---------------------
6230 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6233 -- Sloc points to SEPARATE
6234 -- Name (Node2) is the name of the parent unit
6235 -- Proper_Body (Node1) is the subunit body
6236 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6238 ---------------------------------
6239 -- 11.1 Exception Declaration --
6240 ---------------------------------
6242 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6243 -- [ASPECT_SPECIFICATIONS];
6245 -- For consistency with object declarations etc., the parser converts
6246 -- the case of multiple identifiers being declared to a series of
6247 -- declarations in which the expression is copied, using the More_Ids
6248 -- and Prev_Ids flags to remember the source form as described in the
6249 -- section on "Handling of Defining Identifier Lists".
6251 -- N_Exception_Declaration
6252 -- Sloc points to EXCEPTION
6253 -- Defining_Identifier (Node1)
6254 -- Expression (Node3-Sem)
6255 -- Renaming_Exception (Node2-Sem)
6256 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6257 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6259 ------------------------------------------
6260 -- 11.2 Handled Sequence Of Statements --
6261 ------------------------------------------
6263 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6264 -- SEQUENCE_OF_STATEMENTS
6266 -- EXCEPTION_HANDLER
6267 -- {EXCEPTION_HANDLER}]
6269 -- cleanup_procedure_call (param, param, param, ...);]
6271 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6272 -- used only internally currently, but is considered to be syntactic.
6273 -- At the moment, the only cleanup action allowed is a single call to
6274 -- a parameterless procedure, and the Identifier field of the node is
6275 -- the procedure to be called. The cleanup action occurs whenever the
6276 -- sequence of statements is left for any reason. The possible reasons
6278 -- 1. reaching the end of the sequence
6279 -- 2. exit, return, or goto
6280 -- 3. exception or abort
6281 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6282 -- entirely in the back end. In this case, a handled sequence of
6283 -- statements with an "at end" cannot also have exception handlers.
6284 -- For other back ends, such as gcc with SJLJ and .NET, the
6285 -- implementation is split between the front end and back end; the front
6286 -- end implements 3, and the back end implements 1 and 2. In this case,
6287 -- if there is an "at end", the front end inserts the appropriate
6288 -- exception handler, and this handler takes precedence over "at end"
6289 -- in case of exception.
6291 -- The inserted exception handler is of the form:
6293 -- when all others =>
6297 -- where cleanup is the procedure to be called. The reason we do this is
6298 -- so that the front end can handle the necessary entries in the
6299 -- exception tables, and other exception handler actions required as
6300 -- part of the normal handling for exception handlers.
6302 -- The AT END cleanup handler protects only the sequence of statements
6303 -- (not the associated declarations of the parent), just like exception
6304 -- handlers. The big difference is that the cleanup procedure is called
6305 -- on either a normal or an abnormal exit from the statement sequence.
6307 -- Note: the list of Exception_Handlers can contain pragmas as well
6308 -- as actual handlers. In practice these pragmas can only occur at
6309 -- the start of the list, since any pragmas occurring later on will
6310 -- be included in the statement list of the corresponding handler.
6312 -- Note: although in the Ada syntax, the sequence of statements in
6313 -- a handled sequence of statements can only contain statements, we
6314 -- allow free mixing of declarations and statements in the resulting
6315 -- expanded tree. This is for example used to deal with the case of
6316 -- a cleanup procedure that must handle declarations as well as the
6317 -- statements of a block.
6319 -- N_Handled_Sequence_Of_Statements
6320 -- Sloc points to first token of first statement
6321 -- Statements (List3)
6322 -- End_Label (Node4) (set to Empty if expander generated)
6323 -- Exception_Handlers (List5) (set to No_List if none present)
6324 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6325 -- First_Real_Statement (Node2-Sem)
6327 -- Note: the parent always contains a Declarations field which contains
6328 -- declarations associated with the handled sequence of statements. This
6329 -- is true even in the case of an accept statement (see description of
6330 -- the N_Accept_Statement node).
6332 -- End_Label refers to the containing construct
6334 -----------------------------
6335 -- 11.2 Exception Handler --
6336 -----------------------------
6338 -- EXCEPTION_HANDLER ::=
6339 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6340 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6341 -- SEQUENCE_OF_STATEMENTS
6343 -- Note: choice parameter specification is not allowed in Ada 83 mode
6345 -- N_Exception_Handler
6346 -- Sloc points to WHEN
6347 -- Choice_Parameter (Node2) (set to Empty if not present)
6348 -- Exception_Choices (List4)
6349 -- Statements (List3)
6350 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6351 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6352 -- Local_Raise_Not_OK (Flag7-Sem)
6353 -- Has_Local_Raise (Flag8-Sem)
6355 ------------------------------------------
6356 -- 11.2 Choice parameter specification --
6357 ------------------------------------------
6359 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6361 ----------------------------
6362 -- 11.2 Exception Choice --
6363 ----------------------------
6365 -- EXCEPTION_CHOICE ::= exception_NAME | others
6367 -- Except in the case of OTHERS, no explicit node appears in the tree
6368 -- for exception choice. Instead the exception name appears directly.
6369 -- An OTHERS choice is represented by a N_Others_Choice node (see
6372 -- Note: for the exception choice created for an at end handler, the
6373 -- exception choice is an N_Others_Choice node with All_Others set.
6375 ---------------------------
6376 -- 11.3 Raise Statement --
6377 ---------------------------
6379 -- RAISE_STATEMENT ::= raise [exception_NAME];
6381 -- In Ada 2005, we have
6383 -- RAISE_STATEMENT ::=
6384 -- raise; | raise exception_NAME [with string_EXPRESSION];
6386 -- N_Raise_Statement
6387 -- Sloc points to RAISE
6388 -- Name (Node2) (set to Empty if no exception name present)
6389 -- Expression (Node3) (set to Empty if no expression present)
6390 -- From_At_End (Flag4-Sem)
6392 ----------------------------
6393 -- 11.3 Raise Expression --
6394 ----------------------------
6396 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6398 -- N_Raise_Expression
6399 -- Sloc points to RAISE
6400 -- Name (Node2) (always present)
6401 -- Expression (Node3) (set to Empty if no expression present)
6402 -- Convert_To_Return_False (Flag13-Sem)
6403 -- plus fields for expression
6405 -------------------------------
6406 -- 12.1 Generic Declaration --
6407 -------------------------------
6409 -- GENERIC_DECLARATION ::=
6410 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6412 ------------------------------------------
6413 -- 12.1 Generic Subprogram Declaration --
6414 ------------------------------------------
6416 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6417 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6418 -- [ASPECT_SPECIFICATIONS];
6420 -- Note: Generic_Formal_Declarations can include pragmas
6422 -- N_Generic_Subprogram_Declaration
6423 -- Sloc points to GENERIC
6424 -- Specification (Node1) subprogram specification
6425 -- Corresponding_Body (Node5-Sem)
6426 -- Generic_Formal_Declarations (List2) from generic formal part
6427 -- Parent_Spec (Node4-Sem)
6429 ---------------------------------------
6430 -- 12.1 Generic Package Declaration --
6431 ---------------------------------------
6433 -- GENERIC_PACKAGE_DECLARATION ::=
6434 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6435 -- [ASPECT_SPECIFICATIONS];
6437 -- Note: when we do generics right, the Activation_Chain_Entity entry
6438 -- for this node can be removed (since the expander won't see generic
6439 -- units any more)???.
6441 -- Note: Generic_Formal_Declarations can include pragmas
6443 -- N_Generic_Package_Declaration
6444 -- Sloc points to GENERIC
6445 -- Specification (Node1) package specification
6446 -- Corresponding_Body (Node5-Sem)
6447 -- Generic_Formal_Declarations (List2) from generic formal part
6448 -- Parent_Spec (Node4-Sem)
6449 -- Activation_Chain_Entity (Node3-Sem)
6451 -------------------------------
6452 -- 12.1 Generic Formal Part --
6453 -------------------------------
6455 -- GENERIC_FORMAL_PART ::=
6456 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6458 ------------------------------------------------
6459 -- 12.1 Generic Formal Parameter Declaration --
6460 ------------------------------------------------
6462 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6463 -- FORMAL_OBJECT_DECLARATION
6464 -- | FORMAL_TYPE_DECLARATION
6465 -- | FORMAL_SUBPROGRAM_DECLARATION
6466 -- | FORMAL_PACKAGE_DECLARATION
6468 ---------------------------------
6469 -- 12.3 Generic Instantiation --
6470 ---------------------------------
6472 -- GENERIC_INSTANTIATION ::=
6473 -- package DEFINING_PROGRAM_UNIT_NAME is
6474 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6475 -- [ASPECT_SPECIFICATIONS];
6476 -- | [[not] overriding]
6477 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6478 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6479 -- [ASPECT_SPECIFICATIONS];
6480 -- | [[not] overriding]
6481 -- function DEFINING_DESIGNATOR is
6482 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6483 -- [ASPECT_SPECIFICATIONS];
6485 -- N_Package_Instantiation
6486 -- Sloc points to PACKAGE
6487 -- Defining_Unit_Name (Node1)
6489 -- Generic_Associations (List3) (set to No_List if no
6490 -- generic actual part)
6491 -- Parent_Spec (Node4-Sem)
6492 -- Instance_Spec (Node5-Sem)
6493 -- ABE_Is_Certain (Flag18-Sem)
6495 -- N_Procedure_Instantiation
6496 -- Sloc points to PROCEDURE
6497 -- Defining_Unit_Name (Node1)
6499 -- Parent_Spec (Node4-Sem)
6500 -- Generic_Associations (List3) (set to No_List if no
6501 -- generic actual part)
6502 -- Instance_Spec (Node5-Sem)
6503 -- Must_Override (Flag14) set if overriding indicator present
6504 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6505 -- ABE_Is_Certain (Flag18-Sem)
6507 -- N_Function_Instantiation
6508 -- Sloc points to FUNCTION
6509 -- Defining_Unit_Name (Node1)
6511 -- Generic_Associations (List3) (set to No_List if no
6512 -- generic actual part)
6513 -- Parent_Spec (Node4-Sem)
6514 -- Instance_Spec (Node5-Sem)
6515 -- Must_Override (Flag14) set if overriding indicator present
6516 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6517 -- ABE_Is_Certain (Flag18-Sem)
6519 -- Note: overriding indicator is an Ada 2005 feature
6521 -------------------------------
6522 -- 12.3 Generic Actual Part --
6523 -------------------------------
6525 -- GENERIC_ACTUAL_PART ::=
6526 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6528 -------------------------------
6529 -- 12.3 Generic Association --
6530 -------------------------------
6532 -- GENERIC_ASSOCIATION ::=
6533 -- [generic_formal_parameter_SELECTOR_NAME =>]
6535 -- Note: unlike the procedure call case, a generic association node
6536 -- is generated for every association, even if no formal parameter
6537 -- selector name is present. In this case the parser will leave the
6538 -- Selector_Name field set to Empty, to be filled in later by the
6541 -- In Ada 2005, a formal may be associated with a box, if the
6542 -- association is part of the list of actuals for a formal package.
6543 -- If the association is given by OTHERS => <>, the association is
6544 -- an N_Others_Choice.
6546 -- N_Generic_Association
6547 -- Sloc points to first token of generic association
6548 -- Selector_Name (Node2) (set to Empty if no formal
6549 -- parameter selector name)
6550 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6551 -- Box_Present (Flag15) (for formal_package associations with a box)
6553 ---------------------------------------------
6554 -- 12.3 Explicit Generic Actual Parameter --
6555 ---------------------------------------------
6557 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6558 -- EXPRESSION | variable_NAME | subprogram_NAME
6559 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6561 -------------------------------------
6562 -- 12.4 Formal Object Declaration --
6563 -------------------------------------
6565 -- FORMAL_OBJECT_DECLARATION ::=
6566 -- DEFINING_IDENTIFIER_LIST :
6567 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6568 -- [ASPECT_SPECIFICATIONS];
6569 -- | DEFINING_IDENTIFIER_LIST :
6570 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6571 -- [ASPECT_SPECIFICATIONS];
6573 -- Although the syntax allows multiple identifiers in the list, the
6574 -- semantics is as though successive declarations were given with
6575 -- identical type definition and expression components. To simplify
6576 -- semantic processing, the parser represents a multiple declaration
6577 -- case as a sequence of single declarations, using the More_Ids and
6578 -- Prev_Ids flags to preserve the original source form as described
6579 -- in the section on "Handling of Defining Identifier Lists".
6581 -- N_Formal_Object_Declaration
6582 -- Sloc points to first identifier
6583 -- Defining_Identifier (Node1)
6584 -- In_Present (Flag15)
6585 -- Out_Present (Flag17)
6586 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6587 -- Subtype_Mark (Node4) (set to Empty if not present)
6588 -- Access_Definition (Node3) (set to Empty if not present)
6589 -- Default_Expression (Node5) (set to Empty if no default expression)
6590 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6591 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6593 -----------------------------------
6594 -- 12.5 Formal Type Declaration --
6595 -----------------------------------
6597 -- FORMAL_TYPE_DECLARATION ::=
6598 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6599 -- is FORMAL_TYPE_DEFINITION
6600 -- [ASPECT_SPECIFICATIONS];
6601 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6603 -- N_Formal_Type_Declaration
6604 -- Sloc points to TYPE
6605 -- Defining_Identifier (Node1)
6606 -- Formal_Type_Definition (Node3)
6607 -- Discriminant_Specifications (List4) (set to No_List if no
6608 -- discriminant part)
6609 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6611 ----------------------------------
6612 -- 12.5 Formal type definition --
6613 ----------------------------------
6615 -- FORMAL_TYPE_DEFINITION ::=
6616 -- FORMAL_PRIVATE_TYPE_DEFINITION
6617 -- | FORMAL_DERIVED_TYPE_DEFINITION
6618 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6619 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6620 -- | FORMAL_MODULAR_TYPE_DEFINITION
6621 -- | FORMAL_FLOATING_POINT_DEFINITION
6622 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6623 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6624 -- | FORMAL_ARRAY_TYPE_DEFINITION
6625 -- | FORMAL_ACCESS_TYPE_DEFINITION
6626 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6627 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6629 -- The Ada 2012 syntax introduces two new non-terminals:
6630 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6631 -- the latter category. Here we introduce an incomplete type definition
6632 -- in order to preserve as much as possible the existing structure.
6634 ---------------------------------------------
6635 -- 12.5.1 Formal Private Type Definition --
6636 ---------------------------------------------
6638 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6639 -- [[abstract] tagged] [limited] private
6641 -- Note: TAGGED is not allowed in Ada 83 mode
6643 -- N_Formal_Private_Type_Definition
6644 -- Sloc points to PRIVATE
6645 -- Abstract_Present (Flag4)
6646 -- Tagged_Present (Flag15)
6647 -- Limited_Present (Flag17)
6649 --------------------------------------------
6650 -- 12.5.1 Formal Derived Type Definition --
6651 --------------------------------------------
6653 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6654 -- [abstract] [limited | synchronized]
6655 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6656 -- Note: this construct is not allowed in Ada 83 mode
6658 -- N_Formal_Derived_Type_Definition
6659 -- Sloc points to NEW
6660 -- Subtype_Mark (Node4)
6661 -- Private_Present (Flag15)
6662 -- Abstract_Present (Flag4)
6663 -- Limited_Present (Flag17)
6664 -- Synchronized_Present (Flag7)
6665 -- Interface_List (List2) (set to No_List if none)
6667 -----------------------------------------------
6668 -- 12.5.1 Formal Incomplete Type Definition --
6669 -----------------------------------------------
6671 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6673 -- N_Formal_Incomplete_Type_Definition
6674 -- Sloc points to identifier of parent
6675 -- Tagged_Present (Flag15)
6677 ---------------------------------------------
6678 -- 12.5.2 Formal Discrete Type Definition --
6679 ---------------------------------------------
6681 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6683 -- N_Formal_Discrete_Type_Definition
6686 ---------------------------------------------------
6687 -- 12.5.2 Formal Signed Integer Type Definition --
6688 ---------------------------------------------------
6690 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6692 -- N_Formal_Signed_Integer_Type_Definition
6693 -- Sloc points to RANGE
6695 --------------------------------------------
6696 -- 12.5.2 Formal Modular Type Definition --
6697 --------------------------------------------
6699 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6701 -- N_Formal_Modular_Type_Definition
6702 -- Sloc points to MOD
6704 ----------------------------------------------
6705 -- 12.5.2 Formal Floating Point Definition --
6706 ----------------------------------------------
6708 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6710 -- N_Formal_Floating_Point_Definition
6711 -- Sloc points to DIGITS
6713 ----------------------------------------------------
6714 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6715 ----------------------------------------------------
6717 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6719 -- N_Formal_Ordinary_Fixed_Point_Definition
6720 -- Sloc points to DELTA
6722 ---------------------------------------------------
6723 -- 12.5.2 Formal Decimal Fixed Point Definition --
6724 ---------------------------------------------------
6726 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6728 -- Note: formal decimal fixed point definition not allowed in Ada 83
6730 -- N_Formal_Decimal_Fixed_Point_Definition
6731 -- Sloc points to DELTA
6733 ------------------------------------------
6734 -- 12.5.3 Formal Array Type Definition --
6735 ------------------------------------------
6737 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6739 -------------------------------------------
6740 -- 12.5.4 Formal Access Type Definition --
6741 -------------------------------------------
6743 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6745 ----------------------------------------------
6746 -- 12.5.5 Formal Interface Type Definition --
6747 ----------------------------------------------
6749 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6751 -----------------------------------------
6752 -- 12.6 Formal Subprogram Declaration --
6753 -----------------------------------------
6755 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6756 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6757 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6759 --------------------------------------------------
6760 -- 12.6 Formal Concrete Subprogram Declaration --
6761 --------------------------------------------------
6763 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6764 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6765 -- [ASPECT_SPECIFICATIONS];
6767 -- N_Formal_Concrete_Subprogram_Declaration
6768 -- Sloc points to WITH
6769 -- Specification (Node1)
6770 -- Default_Name (Node2) (set to Empty if no subprogram default)
6771 -- Box_Present (Flag15)
6773 -- Note: if no subprogram default is present, then Name is set
6774 -- to Empty, and Box_Present is False.
6776 --------------------------------------------------
6777 -- 12.6 Formal Abstract Subprogram Declaration --
6778 --------------------------------------------------
6780 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6781 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6782 -- [ASPECT_SPECIFICATIONS];
6784 -- N_Formal_Abstract_Subprogram_Declaration
6785 -- Sloc points to WITH
6786 -- Specification (Node1)
6787 -- Default_Name (Node2) (set to Empty if no subprogram default)
6788 -- Box_Present (Flag15)
6790 -- Note: if no subprogram default is present, then Name is set
6791 -- to Empty, and Box_Present is False.
6793 ------------------------------
6794 -- 12.6 Subprogram Default --
6795 ------------------------------
6797 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6799 -- There is no separate node in the tree for a subprogram default.
6800 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6801 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6802 -- default name or box indication, as needed.
6804 ------------------------
6805 -- 12.6 Default Name --
6806 ------------------------
6808 -- DEFAULT_NAME ::= NAME
6810 --------------------------------------
6811 -- 12.7 Formal Package Declaration --
6812 --------------------------------------
6814 -- FORMAL_PACKAGE_DECLARATION ::=
6815 -- with package DEFINING_IDENTIFIER
6816 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6817 -- [ASPECT_SPECIFICATIONS];
6819 -- Note: formal package declarations not allowed in Ada 83 mode
6821 -- N_Formal_Package_Declaration
6822 -- Sloc points to WITH
6823 -- Defining_Identifier (Node1)
6825 -- Generic_Associations (List3) (set to No_List if (<>) case or
6826 -- empty generic actual part)
6827 -- Box_Present (Flag15)
6828 -- Instance_Spec (Node5-Sem)
6829 -- ABE_Is_Certain (Flag18-Sem)
6831 --------------------------------------
6832 -- 12.7 Formal Package Actual Part --
6833 --------------------------------------
6835 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6837 -- | [GENERIC_ACTUAL_PART]
6838 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6840 -- FORMAL_PACKAGE_ASSOCIATION ::=
6841 -- GENERIC_ASSOCIATION
6842 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6844 -- There is no explicit node in the tree for a formal package actual
6845 -- part. Instead the information appears in the parent node (i.e. the
6846 -- formal package declaration node itself).
6848 -- There is no explicit node for a formal package association. All of
6849 -- them are represented either by a generic association, possibly with
6850 -- Box_Present, or by an N_Others_Choice.
6852 ---------------------------------
6853 -- 13.1 Representation clause --
6854 ---------------------------------
6856 -- REPRESENTATION_CLAUSE ::=
6857 -- ATTRIBUTE_DEFINITION_CLAUSE
6858 -- | ENUMERATION_REPRESENTATION_CLAUSE
6859 -- | RECORD_REPRESENTATION_CLAUSE
6862 ----------------------
6863 -- 13.1 Local Name --
6864 ----------------------
6868 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6869 -- | library_unit_NAME
6871 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6872 -- as an attribute reference, which has essentially the same form.
6874 ---------------------------------------
6875 -- 13.3 Attribute definition clause --
6876 ---------------------------------------
6878 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6879 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6880 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6882 -- In Ada 83, the expression must be a simple expression and the
6883 -- local name must be a direct name.
6885 -- Note: the only attribute definition clause that is processed by
6886 -- gigi is an address clause. For all other cases, the information
6887 -- is extracted by the front end and either results in setting entity
6888 -- information, e.g. Esize for the Size clause, or in appropriate
6889 -- expansion actions (e.g. in the case of Storage_Size).
6891 -- For an address clause, Gigi constructs the appropriate addressing
6892 -- code. It also ensures that no aliasing optimizations are made
6893 -- for the object for which the address clause appears.
6895 -- Note: for an address clause used to achieve an overlay:
6899 -- for B'Address use A'Address;
6901 -- the above rule means that Gigi will ensure that no optimizations
6902 -- will be made for B that would violate the implementation advice
6903 -- of RM 13.3(19). However, this advice applies only to B and not
6904 -- to A, which seems unfortunate. The GNAT front end will mark the
6905 -- object A as volatile to also prevent unwanted optimization
6906 -- assumptions based on no aliasing being made for B.
6908 -- N_Attribute_Definition_Clause
6909 -- Sloc points to FOR
6910 -- Name (Node2) the local name
6911 -- Chars (Name1) the identifier name from the attribute designator
6912 -- Expression (Node3) the expression or name
6913 -- Entity (Node4-Sem)
6914 -- Next_Rep_Item (Node5-Sem)
6915 -- From_At_Mod (Flag4-Sem)
6916 -- Check_Address_Alignment (Flag11-Sem)
6917 -- From_Aspect_Specification (Flag13-Sem)
6918 -- Is_Delayed_Aspect (Flag14-Sem)
6919 -- Address_Warning_Posted (Flag18-Sem)
6921 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6922 -- aspect name, and Entity is resolved already to reference the entity
6923 -- to which the aspect applies.
6925 -----------------------------------
6926 -- 13.3.1 Aspect Specifications --
6927 -----------------------------------
6929 -- We modify the RM grammar here, the RM grammar is:
6931 -- ASPECT_SPECIFICATION ::=
6932 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6933 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6935 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6937 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6939 -- That's inconvenient, since there is no non-terminal name for a single
6940 -- entry in the list of aspects. So we use this grammar instead:
6942 -- ASPECT_SPECIFICATIONS ::=
6943 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6945 -- ASPECT_SPECIFICATION =>
6946 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6948 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6950 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6952 -- See separate package Aspects for details on the incorporation of
6953 -- these nodes into the tree, and how aspect specifications for a given
6954 -- declaration node are associated with that node.
6956 -- N_Aspect_Specification
6957 -- Sloc points to aspect identifier
6958 -- Identifier (Node1) aspect identifier
6959 -- Aspect_Rep_Item (Node2-Sem)
6960 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6961 -- Entity (Node4-Sem) entity to which the aspect applies
6962 -- Class_Present (Flag6) Set if 'Class present
6963 -- Next_Rep_Item (Node5-Sem)
6964 -- Split_PPC (Flag17) Set if split pre/post attribute
6965 -- Is_Boolean_Aspect (Flag16-Sem)
6966 -- Is_Checked (Flag11-Sem)
6967 -- Is_Delayed_Aspect (Flag14-Sem)
6968 -- Is_Disabled (Flag15-Sem)
6969 -- Is_Ignored (Flag9-Sem)
6971 -- Note: Aspect_Specification is an Ada 2012 feature
6973 -- Note: The Identifier serves to identify the aspect involved (it
6974 -- is the aspect whose name corresponds to the Chars field). This
6975 -- means that the other fields of this identifier are unused, and
6976 -- in particular we use the Entity field of this identifier to save
6977 -- a copy of the expression for visibility analysis, see spec of
6978 -- Sem_Ch13 for full details of this usage.
6980 -- In the case of aspects of the form xxx'Class, the aspect identifier
6981 -- is for xxx, and Class_Present is set to True.
6983 -- Note: When a Pre or Post aspect specification is processed, it is
6984 -- broken into AND THEN sections. The left most section has Split_PPC
6985 -- set to False, indicating that it is the original specification (e.g.
6986 -- for posting errors). For the other sections, Split_PPC is set True.
6988 ---------------------------------------------
6989 -- 13.4 Enumeration representation clause --
6990 ---------------------------------------------
6992 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6993 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6995 -- In Ada 83, the name must be a direct name
6997 -- N_Enumeration_Representation_Clause
6998 -- Sloc points to FOR
6999 -- Identifier (Node1) direct name
7000 -- Array_Aggregate (Node3)
7001 -- Next_Rep_Item (Node5-Sem)
7003 ---------------------------------
7004 -- 13.4 Enumeration aggregate --
7005 ---------------------------------
7007 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7009 ------------------------------------------
7010 -- 13.5.1 Record representation clause --
7011 ------------------------------------------
7013 -- RECORD_REPRESENTATION_CLAUSE ::=
7014 -- for first_subtype_LOCAL_NAME use
7015 -- record [MOD_CLAUSE]
7016 -- {COMPONENT_CLAUSE}
7019 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7020 -- replaced by a corresponding Alignment attribute definition clause).
7022 -- Note: Component_Clauses can include pragmas
7024 -- N_Record_Representation_Clause
7025 -- Sloc points to FOR
7026 -- Identifier (Node1) direct name
7027 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7028 -- Component_Clauses (List3)
7029 -- Next_Rep_Item (Node5-Sem)
7031 ------------------------------
7032 -- 13.5.1 Component clause --
7033 ------------------------------
7035 -- COMPONENT_CLAUSE ::=
7036 -- component_LOCAL_NAME at POSITION
7037 -- range FIRST_BIT .. LAST_BIT;
7039 -- N_Component_Clause
7040 -- Sloc points to AT
7041 -- Component_Name (Node1) points to Name or Attribute_Reference
7043 -- First_Bit (Node3)
7046 ----------------------
7047 -- 13.5.1 Position --
7048 ----------------------
7050 -- POSITION ::= static_EXPRESSION
7052 -----------------------
7053 -- 13.5.1 First_Bit --
7054 -----------------------
7056 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7058 ----------------------
7059 -- 13.5.1 Last_Bit --
7060 ----------------------
7062 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7064 --------------------------
7065 -- 13.8 Code statement --
7066 --------------------------
7068 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7070 -- Note: in GNAT, the qualified expression has the form
7072 -- Asm_Insn'(Asm (...));
7074 -- See package System.Machine_Code in file s-maccod.ads for details on
7075 -- the allowed parameters to Asm. There are two ways this node can
7076 -- arise, as a code statement, in which case the expression is the
7077 -- qualified expression, or as a result of the expansion of an intrinsic
7078 -- call to the Asm or Asm_Input procedure.
7081 -- Sloc points to first token of the expression
7082 -- Expression (Node3)
7084 -- Note: package Exp_Code contains an abstract functional interface
7085 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7087 ------------------------
7088 -- 13.12 Restriction --
7089 ------------------------
7092 -- restriction_IDENTIFIER
7093 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7095 -- There is no explicit node for restrictions. Instead the restriction
7096 -- appears in normal pragma syntax as a pragma argument association,
7097 -- which has the same syntactic form.
7099 --------------------------
7100 -- B.2 Shift Operators --
7101 --------------------------
7103 -- Calls to the intrinsic shift functions are converted to one of
7104 -- the following shift nodes, which have the form of normal binary
7105 -- operator names. Note that for a given shift operation, one node
7106 -- covers all possible types, as for normal operators.
7108 -- Note: it is perfectly permissible for the expander to generate
7109 -- shift operation nodes directly, in which case they will be analyzed
7110 -- and parsed in the usual manner.
7112 -- Sprint syntax: shift-function-name!(expr, count)
7114 -- Note: the Left_Opnd field holds the first argument (the value to
7115 -- be shifted). The Right_Opnd field holds the second argument (the
7116 -- shift count). The Chars field is the name of the intrinsic function.
7119 -- Sloc points to the function name
7120 -- plus fields for binary operator
7121 -- plus fields for expression
7122 -- Shift_Count_OK (Flag4-Sem)
7124 -- N_Op_Rotate_Right
7125 -- Sloc points to the function name
7126 -- plus fields for binary operator
7127 -- plus fields for expression
7128 -- Shift_Count_OK (Flag4-Sem)
7131 -- Sloc points to the function name
7132 -- plus fields for binary operator
7133 -- plus fields for expression
7134 -- Shift_Count_OK (Flag4-Sem)
7136 -- N_Op_Shift_Right_Arithmetic
7137 -- Sloc points to the function name
7138 -- plus fields for binary operator
7139 -- plus fields for expression
7140 -- Shift_Count_OK (Flag4-Sem)
7143 -- Sloc points to the function name
7144 -- plus fields for binary operator
7145 -- plus fields for expression
7146 -- Shift_Count_OK (Flag4-Sem)
7148 --------------------------
7149 -- Obsolescent Features --
7150 --------------------------
7152 -- The syntax descriptions and tree nodes for obsolescent features are
7153 -- grouped together, corresponding to their location in appendix I in
7154 -- the RM. However, parsing and semantic analysis for these constructs
7155 -- is located in an appropriate chapter (see individual notes).
7157 ---------------------------
7158 -- J.3 Delta Constraint --
7159 ---------------------------
7161 -- Note: the parse routine for this construct is located in section
7162 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7163 -- where delta constraint logically belongs.
7165 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7167 -- N_Delta_Constraint
7168 -- Sloc points to DELTA
7169 -- Delta_Expression (Node3)
7170 -- Range_Constraint (Node4) (set to Empty if not present)
7172 --------------------
7174 --------------------
7176 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7178 -- Note: the parse routine for this construct is located in Par-Ch13,
7179 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7180 -- belongs if it were not obsolescent.
7182 -- Note: in Ada 83 the expression must be a simple expression
7184 -- Gigi restriction: This node never appears, it is rewritten as an
7185 -- address attribute definition clause.
7188 -- Sloc points to FOR
7189 -- Identifier (Node1)
7190 -- Expression (Node3)
7192 ---------------------
7193 -- J.8 Mod clause --
7194 ---------------------
7196 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7198 -- Note: the parse routine for this construct is located in Par-Ch13,
7199 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7200 -- belongs if it were not obsolescent.
7202 -- Note: in Ada 83, the expression must be a simple expression
7204 -- Gigi restriction: this node never appears. It is replaced
7205 -- by a corresponding Alignment attribute definition clause.
7207 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7208 -- its name has "clause" in it. This is rather strange, but is quite
7209 -- definitely specified. The pragmas before are collected in the
7210 -- Pragmas_Before field of the mod clause node itself, and pragmas
7211 -- after are simply swallowed up in the list of component clauses.
7214 -- Sloc points to AT
7215 -- Expression (Node3)
7216 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7218 --------------------
7219 -- Semantic Nodes --
7220 --------------------
7222 -- These semantic nodes are used to hold additional semantic information.
7223 -- They are inserted into the tree as a result of semantic processing.
7224 -- Although there are no legitimate source syntax constructions that
7225 -- correspond directly to these nodes, we need a source syntax for the
7226 -- reconstructed tree printed by Sprint, and the node descriptions here
7227 -- show this syntax.
7233 -- This node is used to hold the various parts of an entry, subprogram
7234 -- [body] or package [body] contract, in particular:
7235 -- Abstract states declared by a package declaration
7236 -- Contract cases that apply to a subprogram
7237 -- Dependency relations of inputs and output of a subprogram
7238 -- Global annotations classifying data as input or output
7239 -- Initialization sequences for a package declaration
7240 -- Pre- and postconditions that apply to a subprogram
7242 -- The node appears in an entry and [generic] subprogram [body] entity.
7244 -- Sprint syntax: <none> as the node should not appear in the tree, but
7245 -- only attached to an entry or [generic] subprogram
7249 -- Sloc points to the subprogram's name
7250 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7251 -- Contract_Test_Cases (Node2) (set to Empty if none)
7252 -- Classifications (Node3) (set to Empty if none)
7254 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7255 -- to pre- and postconditions associated with an entry or a subprogram
7256 -- [body or stub]. The pragmas can either come from source or be the
7257 -- byproduct of aspect expansion. Currently the following pragmas appear
7263 -- The ordering in the list is in LIFO fashion.
7265 -- Note that there might be multiple preconditions or postconditions
7266 -- in this list, either because they come from separate pragmas in the
7267 -- source, or because a Pre (resp. Post) aspect specification has been
7268 -- broken into AND THEN sections. See Split_PPC for details.
7270 -- Contract_Test_Cases contains a collection of pragmas that correspond
7271 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7272 -- list is in LIFO fashion.
7274 -- Classifications contains pragmas that either declare, categorize or
7275 -- establish dependencies between subprogram or package inputs and
7276 -- outputs. Currently the following pragmas appear in this list:
7284 -- Initial_Condition
7289 -- The ordering is in LIFO fashion.
7295 -- The N_Expanded_Name node is used to represent a selected component
7296 -- name that has been resolved to an expanded name. The semantic phase
7297 -- replaces N_Selected_Component nodes that represent names by the use
7298 -- of this node, leaving the N_Selected_Component node used only when
7299 -- the prefix is a record or protected type.
7301 -- The fields of the N_Expanded_Name node are layed out identically
7302 -- to those of the N_Selected_Component node, allowing conversion of
7303 -- an expanded name node to a selected component node to be done
7304 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7306 -- There is no special sprint syntax for an expanded name
7309 -- Sloc points to the period
7310 -- Chars (Name1) copy of Chars field of selector name
7312 -- Selector_Name (Node2)
7313 -- Entity (Node4-Sem)
7314 -- Associated_Node (Node4-Sem)
7315 -- Has_Private_View (Flag11-Sem) set in generic units.
7316 -- Redundant_Use (Flag13-Sem)
7317 -- Atomic_Sync_Required (Flag14-Sem)
7318 -- plus fields for expression
7320 -----------------------------
7321 -- Expression with Actions --
7322 -----------------------------
7324 -- This node is created by the analyzer/expander to handle some
7325 -- expansion cases, notably short circuit forms where there are
7326 -- actions associated with the right-hand side operand.
7328 -- The N_Expression_With_Actions node represents an expression with
7329 -- an associated set of actions (which are executable statements and
7330 -- declarations, as might occur in a handled statement sequence).
7332 -- The required semantics is that the set of actions is executed in
7333 -- the order in which it appears just before the expression is
7334 -- evaluated (and these actions must only be executed if the value
7335 -- of the expression is evaluated). The node is considered to be
7336 -- a subexpression, whose value is the value of the Expression after
7337 -- executing all the actions.
7339 -- If the actions contain declarations, then these declarations may
7340 -- be referenced within the expression. However note that there is
7341 -- no proper scope associated with the expression-with-action, so the
7342 -- back-end will elaborate them in the context of the enclosing scope.
7344 -- Sprint syntax: do
7349 -- in expression end
7351 -- N_Expression_With_Actions
7353 -- Expression (Node3)
7354 -- plus fields for expression
7356 -- Note: the actions list is always non-null, since we would never have
7357 -- created this node if there weren't some actions.
7359 -- Note: Expression may be a Null_Statement, in which case the
7360 -- N_Expression_With_Actions has type Standard_Void_Type. However some
7361 -- backends do not support such expression-with-actions occurring
7362 -- outside of a proper (non-void) expression, so this should just be
7363 -- used as an intermediate representation within the front end. Also
7364 -- note that this is really an irregularity (expressions and statements
7365 -- are not interchangeable, and in particular an N_Null_Statement is
7366 -- not a proper expression), and in the long term all cases of this
7367 -- idiom should instead use a new node kind N_Compound_Statement.
7369 --------------------
7370 -- Free Statement --
7371 --------------------
7373 -- The N_Free_Statement node is generated as a result of a call to an
7374 -- instantiation of Unchecked_Deallocation. The instantiation of this
7375 -- generic is handled specially and generates this node directly.
7377 -- Sprint syntax: free expression
7380 -- Sloc is copied from the unchecked deallocation call
7381 -- Expression (Node3) argument to unchecked deallocation call
7382 -- Storage_Pool (Node1-Sem)
7383 -- Procedure_To_Call (Node2-Sem)
7384 -- Actual_Designated_Subtype (Node4-Sem)
7386 -- Note: in the case where a debug source file is generated, the Sloc
7387 -- for this node points to the FREE keyword in the Sprint file output.
7393 -- This node marks the point in a declarative part at which an entity
7394 -- declared therein becomes frozen. The expander places initialization
7395 -- procedures for types at those points. Gigi uses the freezing point
7396 -- to elaborate entities that may depend on previous private types.
7398 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7399 -- a full description of the use of this node.
7401 -- The Entity field points back to the entity for the type (whose
7402 -- Freeze_Node field points back to this freeze node).
7404 -- The Actions field contains a list of declarations and statements
7405 -- generated by the expander which are associated with the freeze
7406 -- node, and are elaborated as though the freeze node were replaced
7407 -- by this sequence of actions.
7409 -- Note: the Sloc field in the freeze node references a construct
7410 -- associated with the freezing point. This is used for posting
7411 -- messages in some error/warning situations, e.g. the case where
7412 -- a primitive operation of a tagged type is declared too late.
7414 -- Sprint syntax: freeze entity-name [
7419 -- Sloc points near freeze point (see above special note)
7420 -- Entity (Node4-Sem)
7421 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7422 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7423 -- Actions (List1) (set to No_List if no freeze actions)
7424 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7426 -- The Actions field holds actions associated with the freeze. These
7427 -- actions are elaborated at the point where the type is frozen.
7429 -- Note: in the case where a debug source file is generated, the Sloc
7430 -- for this node points to the FREEZE keyword in the Sprint file output.
7432 ---------------------------
7433 -- Freeze_Generic_Entity --
7434 ---------------------------
7436 -- The freeze point of an entity indicates the point at which the
7437 -- information needed to generate code for the entity is complete.
7438 -- The freeze node for an entity triggers expander activities, such as
7439 -- build initialization procedures, and backend activities, such as
7440 -- completing the elaboration of packages.
7442 -- For entities declared within a generic unit, for which no code is
7443 -- generated, the freeze point is not equally meaningful. However, in
7444 -- Ada 2012 several semantic checks on declarations must be delayed to
7445 -- the freeze point, and we need to include such a mark in the tree to
7446 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7447 -- role, and is ignored by the expander and the back-end.
7449 -- Sprint syntax: freeze_generic entity-name
7451 -- N_Freeze_Generic_Entity
7452 -- Sloc points near freeze point
7453 -- Entity (Node4-Sem)
7455 --------------------------------
7456 -- Implicit Label Declaration --
7457 --------------------------------
7459 -- An implicit label declaration is created for every occurrence of a
7460 -- label on a statement or a label on a block or loop. It is chained
7461 -- in the declarations of the innermost enclosing block as specified
7462 -- in RM section 5.1 (3).
7464 -- The Defining_Identifier is the actual identifier for the statement
7465 -- identifier. Note that the occurrence of the label is a reference, NOT
7466 -- the defining occurrence. The defining occurrence occurs at the head
7467 -- of the innermost enclosing block, and is represented by this node.
7469 -- Note: from the grammar, this might better be called an implicit
7470 -- statement identifier declaration, but the term we choose seems
7471 -- friendlier, since at least informally statement identifiers are
7472 -- called labels in both cases (i.e. when used in labels, and when
7473 -- used as the identifiers of blocks and loops).
7475 -- Note: although this is logically a semantic node, since it does not
7476 -- correspond directly to a source syntax construction, these nodes are
7477 -- actually created by the parser in a post pass done just after parsing
7478 -- is complete, before semantic analysis is started (see Par.Labl).
7480 -- Sprint syntax: labelname : label;
7482 -- N_Implicit_Label_Declaration
7483 -- Sloc points to the << token for a statement identifier, or to the
7484 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7485 -- Defining_Identifier (Node1)
7486 -- Label_Construct (Node2-Sem)
7488 -- Note: in the case where a debug source file is generated, the Sloc
7489 -- for this node points to the label name in the generated declaration.
7491 ---------------------
7492 -- Itype_Reference --
7493 ---------------------
7495 -- This node is used to create a reference to an Itype. The only purpose
7496 -- is to make sure the Itype is defined if this is the first reference.
7498 -- A typical use of this node is when an Itype is to be referenced in
7499 -- two branches of an IF statement. In this case it is important that
7500 -- the first use of the Itype not be inside the conditional, since then
7501 -- it might not be defined if the other branch of the IF is taken, in
7502 -- the case where the definition generates elaboration code.
7504 -- The Itype field points to the referenced Itype
7506 -- Sprint syntax: reference itype-name
7508 -- N_Itype_Reference
7509 -- Sloc points to the node generating the reference
7510 -- Itype (Node1-Sem)
7512 -- Note: in the case where a debug source file is generated, the Sloc
7513 -- for this node points to the REFERENCE keyword in the file output.
7515 ---------------------
7516 -- Raise_xxx_Error --
7517 ---------------------
7519 -- One of these nodes is created during semantic analysis to replace
7520 -- a node for an expression that is determined to definitely raise
7521 -- the corresponding exception.
7523 -- The N_Raise_xxx_Error node may also stand alone in place
7524 -- of a declaration or statement, in which case it simply causes
7525 -- the exception to be raised (i.e. it is equivalent to a raise
7526 -- statement that raises the corresponding exception). This use
7527 -- is distinguished by the fact that the Etype in this case is
7528 -- Standard_Void_Type; in the subexpression case, the Etype is the
7529 -- same as the type of the subexpression which it replaces.
7531 -- If Condition is empty, then the raise is unconditional. If the
7532 -- Condition field is non-empty, it is a boolean expression which
7533 -- is first evaluated, and the exception is raised only if the
7534 -- value of the expression is True. In the unconditional case, the
7535 -- creation of this node is usually accompanied by a warning message
7536 -- error. The creation of this node will usually be accompanied by a
7537 -- message (unless it appears within the right operand of a short
7538 -- circuit form whose left argument is static and decisively
7539 -- eliminates elaboration of the raise operation. The condition field
7540 -- can ONLY be present when the node is used as a statement form, it
7541 -- may NOT be present in the case where the node appears within an
7544 -- The exception is generated with a message that contains the
7545 -- file name and line number, and then appended text. The Reason
7546 -- code shows the text to be added. The Reason code is an element
7547 -- of the type Types.RT_Exception_Code, and indicates both the
7548 -- message to be added, and the exception to be raised (which must
7549 -- match the node type). The value is stored by storing a Uint which
7550 -- is the Pos value of the enumeration element in this type.
7552 -- Gigi restriction: This expander ensures that the type of the
7553 -- Condition field is always Standard.Boolean, even if the type
7554 -- in the source is some non-standard boolean type.
7556 -- Sprint syntax: [xxx_error "msg"]
7557 -- or: [xxx_error when condition "msg"]
7559 -- N_Raise_Constraint_Error
7560 -- Sloc references related construct
7561 -- Condition (Node1) (set to Empty if no condition)
7563 -- plus fields for expression
7565 -- N_Raise_Program_Error
7566 -- Sloc references related construct
7567 -- Condition (Node1) (set to Empty if no condition)
7569 -- plus fields for expression
7571 -- N_Raise_Storage_Error
7572 -- Sloc references related construct
7573 -- Condition (Node1) (set to Empty if no condition)
7575 -- plus fields for expression
7577 -- Note: Sloc is copied from the expression generating the exception.
7578 -- In the case where a debug source file is generated, the Sloc for
7579 -- this node points to the left bracket in the Sprint file output.
7581 -- Note: the back end may be required to translate these nodes into
7582 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7584 ---------------------------------------------
7585 -- Optimization of Exception Raise to Goto --
7586 ---------------------------------------------
7588 -- In some cases, the front end will determine that any exception raised
7589 -- by the back end for a certain exception should be transformed into a
7592 -- There are three kinds of exceptions raised by the back end (note that
7593 -- for this purpose we consider gigi to be part of the back end in the
7596 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7597 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7598 -- 3. Other cases not specifically marked by the front end
7600 -- Normally all such exceptions are translated into calls to the proper
7601 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7602 -- and the exception message.
7604 -- The front end may determine that for a particular sequence of code,
7605 -- exceptions in any of these three categories for a particular builtin
7606 -- exception should result in a goto, rather than a call to Rcheck_xx.
7607 -- The exact sequence to be generated is:
7609 -- Local_Raise (exception'Identity);
7612 -- The front end marks such a sequence of code by bracketing it with
7613 -- push and pop nodes:
7615 -- N_Push_xxx_Label (referencing the label)
7617 -- (code where transformation is expected for exception xxx)
7621 -- The use of push/pop reflects the fact that such regions can properly
7622 -- nest, and one special case is a subregion in which no transformation
7623 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7624 -- Exception_Label field is Empty.
7626 -- N_Push_Constraint_Error_Label
7627 -- Sloc references first statement in region covered
7628 -- Exception_Label (Node5-Sem)
7630 -- N_Push_Program_Error_Label
7631 -- Sloc references first statement in region covered
7632 -- Exception_Label (Node5-Sem)
7634 -- N_Push_Storage_Error_Label
7635 -- Sloc references first statement in region covered
7636 -- Exception_Label (Node5-Sem)
7638 -- N_Pop_Constraint_Error_Label
7639 -- Sloc references last statement in region covered
7641 -- N_Pop_Program_Error_Label
7642 -- Sloc references last statement in region covered
7644 -- N_Pop_Storage_Error_Label
7645 -- Sloc references last statement in region covered
7651 -- For a number of purposes, we need to construct references to objects.
7652 -- These references are subsequently treated as normal access values.
7653 -- An example is the construction of the parameter block passed to a
7654 -- task entry. The N_Reference node is provided for this purpose. It is
7655 -- similar in effect to the use of the Unrestricted_Access attribute,
7656 -- and like Unrestricted_Access can be applied to objects which would
7657 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7658 -- objects which are not aliased, and slices). In addition it can be
7659 -- applied to composite type values as well as objects, including string
7660 -- values and aggregates.
7662 -- Note: we use the Prefix field for this expression so that the
7663 -- resulting node can be treated using common code with the attribute
7664 -- nodes for the 'Access and related attributes. Logically it would make
7665 -- more sense to call it an Expression field, but then we would have to
7666 -- special case the treatment of the N_Reference node.
7668 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7669 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7670 -- a temporary initialized to a N_Reference node in order to eliminate
7671 -- superfluous access checks.
7673 -- Sprint syntax: prefix'reference
7676 -- Sloc is copied from the expression
7678 -- plus fields for expression
7680 -- Note: in the case where a debug source file is generated, the Sloc
7681 -- for this node points to the quote in the Sprint file output.
7687 -- SCIL nodes are special nodes added to the tree when the CodePeer
7688 -- mode is active. They help the CodePeer backend to locate nodes that
7689 -- require special processing. They are only generated if SCIL
7690 -- generation is enabled. A standard tree-walk will not encounter
7691 -- these nodes even if they are present; these nodes are only
7692 -- accessible via the function SCIL_LL.Get_SCIL_Node.
7694 -- N_SCIL_Dispatch_Table_Tag_Init
7695 -- Sloc references a node for a tag initialization
7696 -- SCIL_Entity (Node4-Sem)
7698 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7699 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7700 -- the declaration of the dispatch table for a tagged type.
7702 -- N_SCIL_Dispatching_Call
7703 -- Sloc references the node of a dispatching call
7704 -- SCIL_Target_Prim (Node2-Sem)
7705 -- SCIL_Entity (Node4-Sem)
7706 -- SCIL_Controlling_Tag (Node5-Sem)
7708 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7709 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7710 -- thereof) corresponding to a dispatching call.
7712 -- N_SCIL_Membership_Test
7713 -- Sloc references the node of a membership test
7714 -- SCIL_Tag_Value (Node5-Sem)
7715 -- SCIL_Entity (Node4-Sem)
7717 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7718 -- with the N_In node (or a rewriting thereof) corresponding to a
7719 -- classwide membership test.
7721 --------------------------
7722 -- Unchecked Expression --
7723 --------------------------
7725 -- An unchecked expression is one that must be analyzed and resolved
7726 -- with all checks off, regardless of the current setting of scope
7729 -- Sprint syntax: `(expression)
7731 -- Note: this node is always removed from the tree (and replaced by
7732 -- its constituent expression) on completion of analysis, so it only
7733 -- appears in intermediate trees, and will never be seen by Gigi.
7735 -- N_Unchecked_Expression
7736 -- Sloc is a copy of the Sloc of the expression
7737 -- Expression (Node3)
7738 -- plus fields for expression
7740 -- Note: in the case where a debug source file is generated, the Sloc
7741 -- for this node points to the back quote in the Sprint file output.
7743 -------------------------------
7744 -- Unchecked Type Conversion --
7745 -------------------------------
7747 -- An unchecked type conversion node represents the semantic action
7748 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7749 -- It is generated as a result of actual use of Unchecked_Conversion
7750 -- and also the expander generates unchecked type conversion nodes
7751 -- directly for expansion of complex semantic actions.
7753 -- Note: an unchecked type conversion is a variable as far as the
7754 -- semantics are concerned, which is convenient for the expander.
7755 -- This does not change what Ada source programs are legal, since
7756 -- clearly a function call to an instantiation of Unchecked_Conversion
7757 -- is not a variable in any case.
7759 -- Sprint syntax: subtype-mark!(expression)
7761 -- N_Unchecked_Type_Conversion
7762 -- Sloc points to related node in source
7763 -- Subtype_Mark (Node4)
7764 -- Expression (Node3)
7765 -- Kill_Range_Check (Flag11-Sem)
7766 -- No_Truncation (Flag17-Sem)
7767 -- plus fields for expression
7769 -- Note: in the case where a debug source file is generated, the Sloc
7770 -- for this node points to the exclamation in the Sprint file output.
7772 -----------------------------------
7773 -- Validate_Unchecked_Conversion --
7774 -----------------------------------
7776 -- The front end does most of the validation of unchecked conversion,
7777 -- including checking sizes (this is done after the back end is called
7778 -- to take advantage of back-annotation of calculated sizes).
7780 -- The front end also deals with specific cases that are not allowed
7781 -- e.g. involving unconstrained array types.
7783 -- For the case of the standard gigi backend, this means that all
7784 -- checks are done in the front end.
7786 -- However, in the case of specialized back-ends, notably the JVM
7787 -- backend for JGNAT, additional requirements and restrictions apply
7788 -- to unchecked conversion, and these are most conveniently performed
7789 -- in the specialized back-end.
7791 -- To accommodate this requirement, for such back ends, the following
7792 -- special node is generated recording an unchecked conversion that
7793 -- needs to be validated. The back end should post an appropriate
7794 -- error message if the unchecked conversion is invalid or warrants
7795 -- a special warning message.
7797 -- Source_Type and Target_Type point to the entities for the two
7798 -- types involved in the unchecked conversion instantiation that
7799 -- is to be validated.
7801 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7803 -- N_Validate_Unchecked_Conversion
7804 -- Sloc points to instantiation (location for warning message)
7805 -- Source_Type (Node1-Sem)
7806 -- Target_Type (Node2-Sem)
7808 -- Note: in the case where a debug source file is generated, the Sloc
7809 -- for this node points to the VALIDATE keyword in the file output.
7815 -- Used as the contents of the Nkind field of the dummy Empty node
7816 -- and in some other situations to indicate an uninitialized value.
7819 -- Chars (Name1) is set to No_Name
7825 -- Used as the contents of the Nkind field of the dummy Error node.
7826 -- Has an Etype field, which gets set to Any_Type later on, to help
7827 -- error recovery (Error_Posted is also set in the Error node).
7830 -- Chars (Name1) is set to Error_Name
7831 -- Etype (Node5-Sem)
7833 --------------------------
7834 -- Node Type Definition --
7835 --------------------------
7837 -- The following is the definition of the Node_Kind type. As previously
7838 -- discussed, this is separated off to allow rearrangement of the order to
7839 -- facilitate definition of subtype ranges. The comments show the subtype
7840 -- classes which apply to each set of node kinds. The first entry in the
7841 -- comment characterizes the following list of nodes.
7846 -- N_Representation_Clause
7850 N_Enumeration_Representation_Clause,
7852 N_Record_Representation_Clause,
7854 -- N_Representation_Clause, N_Has_Chars
7856 N_Attribute_Definition_Clause,
7861 N_Pragma_Argument_Association,
7863 -- N_Has_Etype, N_Has_Chars
7865 -- Note: of course N_Error does not really have Etype or Chars fields,
7866 -- and any attempt to access these fields in N_Error will cause an
7867 -- error, but historically this always has been positioned so that an
7868 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7869 -- Most likely this makes coding easier somewhere but still seems
7870 -- undesirable. To be investigated some time ???
7874 -- N_Entity, N_Has_Etype, N_Has_Chars
7876 N_Defining_Character_Literal,
7877 N_Defining_Identifier,
7878 N_Defining_Operator_Symbol,
7880 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7884 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7885 -- N_Has_Chars, N_Has_Entity
7890 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7891 -- N_Has_Chars, N_Has_Entity
7893 N_Character_Literal,
7895 -- N_Binary_Op, N_Op, N_Subexpr,
7896 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7903 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7904 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7911 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7912 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7916 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7917 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7926 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7927 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7932 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7933 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7939 N_Op_Shift_Right_Arithmetic,
7941 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7942 -- N_Has_Chars, N_Has_Entity
7949 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7951 N_Attribute_Reference,
7953 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7958 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7963 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
7966 N_Procedure_Call_Statement,
7968 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
7970 N_Raise_Constraint_Error,
7971 N_Raise_Program_Error,
7972 N_Raise_Storage_Error,
7974 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
7980 -- N_Subexpr, N_Has_Etype
7982 N_Explicit_Dereference,
7983 N_Expression_With_Actions,
7985 N_Indexed_Component,
7987 N_Qualified_Expression,
7988 N_Quantified_Expression,
7992 N_Extension_Aggregate,
7996 N_Selected_Component,
7999 N_Unchecked_Expression,
8000 N_Unchecked_Type_Conversion,
8004 N_Subtype_Indication,
8008 N_Component_Declaration,
8009 N_Entry_Declaration,
8010 N_Expression_Function,
8011 N_Formal_Object_Declaration,
8012 N_Formal_Type_Declaration,
8013 N_Full_Type_Declaration,
8014 N_Incomplete_Type_Declaration,
8015 N_Iterator_Specification,
8016 N_Loop_Parameter_Specification,
8017 N_Object_Declaration,
8018 N_Protected_Type_Declaration,
8019 N_Private_Extension_Declaration,
8020 N_Private_Type_Declaration,
8021 N_Subtype_Declaration,
8023 -- N_Subprogram_Specification, N_Declaration
8025 N_Function_Specification,
8026 N_Procedure_Specification,
8028 -- N_Access_To_Subprogram_Definition
8030 N_Access_Function_Definition,
8031 N_Access_Procedure_Definition,
8033 -- N_Later_Decl_Item
8035 N_Task_Type_Declaration,
8037 -- N_Body_Stub, N_Later_Decl_Item
8039 N_Package_Body_Stub,
8040 N_Protected_Body_Stub,
8041 N_Subprogram_Body_Stub,
8044 -- N_Generic_Instantiation, N_Later_Decl_Item
8045 -- N_Subprogram_Instantiation
8047 N_Function_Instantiation,
8048 N_Procedure_Instantiation,
8050 -- N_Generic_Instantiation, N_Later_Decl_Item
8052 N_Package_Instantiation,
8054 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8059 -- N_Later_Decl_Item, N_Proper_Body
8064 -- N_Later_Decl_Item
8066 N_Implicit_Label_Declaration,
8067 N_Package_Declaration,
8068 N_Single_Task_Declaration,
8069 N_Subprogram_Declaration,
8070 N_Use_Package_Clause,
8072 -- N_Generic_Declaration, N_Later_Decl_Item
8074 N_Generic_Package_Declaration,
8075 N_Generic_Subprogram_Declaration,
8077 -- N_Array_Type_Definition
8079 N_Constrained_Array_Definition,
8080 N_Unconstrained_Array_Definition,
8082 -- N_Renaming_Declaration
8084 N_Exception_Renaming_Declaration,
8085 N_Object_Renaming_Declaration,
8086 N_Package_Renaming_Declaration,
8087 N_Subprogram_Renaming_Declaration,
8089 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8091 N_Generic_Function_Renaming_Declaration,
8092 N_Generic_Package_Renaming_Declaration,
8093 N_Generic_Procedure_Renaming_Declaration,
8095 -- N_Statement_Other_Than_Procedure_Call
8099 N_Assignment_Statement,
8100 N_Asynchronous_Select,
8104 N_Conditional_Entry_Call,
8106 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8108 N_Delay_Relative_Statement,
8109 N_Delay_Until_Statement,
8111 -- N_Statement_Other_Than_Procedure_Call
8113 N_Entry_Call_Statement,
8119 N_Requeue_Statement,
8120 N_Simple_Return_Statement,
8121 N_Extended_Return_Statement,
8125 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8132 N_Accept_Alternative,
8133 N_Delay_Alternative,
8135 N_Entry_Body_Formal_Part,
8137 N_Terminate_Alternative,
8139 -- N_Formal_Subprogram_Declaration
8141 N_Formal_Abstract_Subprogram_Declaration,
8142 N_Formal_Concrete_Subprogram_Declaration,
8144 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8146 N_Push_Constraint_Error_Label,
8147 N_Push_Program_Error_Label,
8148 N_Push_Storage_Error_Label,
8150 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8152 N_Pop_Constraint_Error_Label,
8153 N_Pop_Program_Error_Label,
8154 N_Pop_Storage_Error_Label,
8158 N_SCIL_Dispatch_Table_Tag_Init,
8159 N_SCIL_Dispatching_Call,
8160 N_SCIL_Membership_Test,
8162 -- Other nodes (not part of any subtype class)
8165 N_Abstract_Subprogram_Declaration,
8166 N_Access_Definition,
8167 N_Access_To_Object_Definition,
8168 N_Aspect_Specification,
8169 N_Case_Expression_Alternative,
8170 N_Case_Statement_Alternative,
8172 N_Compilation_Unit_Aux,
8173 N_Component_Association,
8174 N_Component_Definition,
8177 N_Derived_Type_Definition,
8178 N_Decimal_Fixed_Point_Definition,
8179 N_Defining_Program_Unit_Name,
8182 N_Digits_Constraint,
8183 N_Discriminant_Association,
8184 N_Discriminant_Specification,
8185 N_Enumeration_Type_Definition,
8187 N_Entry_Call_Alternative,
8188 N_Entry_Index_Specification,
8189 N_Exception_Declaration,
8190 N_Exception_Handler,
8191 N_Floating_Point_Definition,
8192 N_Formal_Decimal_Fixed_Point_Definition,
8193 N_Formal_Derived_Type_Definition,
8194 N_Formal_Discrete_Type_Definition,
8195 N_Formal_Floating_Point_Definition,
8196 N_Formal_Modular_Type_Definition,
8197 N_Formal_Ordinary_Fixed_Point_Definition,
8198 N_Formal_Package_Declaration,
8199 N_Formal_Private_Type_Definition,
8200 N_Formal_Incomplete_Type_Definition,
8201 N_Formal_Signed_Integer_Type_Definition,
8203 N_Freeze_Generic_Entity,
8204 N_Generic_Association,
8205 N_Handled_Sequence_Of_Statements,
8206 N_Index_Or_Discriminant_Constraint,
8209 N_Modular_Type_Definition,
8210 N_Number_Declaration,
8211 N_Ordinary_Fixed_Point_Definition,
8213 N_Package_Specification,
8214 N_Parameter_Association,
8215 N_Parameter_Specification,
8217 N_Protected_Definition,
8219 N_Real_Range_Specification,
8220 N_Record_Definition,
8221 N_Signed_Integer_Type_Definition,
8222 N_Single_Protected_Declaration,
8225 N_Triggering_Alternative,
8227 N_Validate_Unchecked_Conversion,
8233 for Node_Kind'Size use 8;
8234 -- The data structures in Atree assume this!
8236 ----------------------------
8237 -- Node Class Definitions --
8238 ----------------------------
8240 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8241 N_Access_Function_Definition ..
8242 N_Access_Procedure_Definition;
8244 subtype N_Array_Type_Definition is Node_Kind range
8245 N_Constrained_Array_Definition ..
8246 N_Unconstrained_Array_Definition;
8248 subtype N_Binary_Op is Node_Kind range
8250 N_Op_Shift_Right_Arithmetic;
8252 subtype N_Body_Stub is Node_Kind range
8253 N_Package_Body_Stub ..
8256 subtype N_Declaration is Node_Kind range
8257 N_Component_Declaration ..
8258 N_Procedure_Specification;
8259 -- Note: this includes all constructs normally thought of as declarations
8260 -- except those which are separately grouped as later declarations.
8262 subtype N_Delay_Statement is Node_Kind range
8263 N_Delay_Relative_Statement ..
8264 N_Delay_Until_Statement;
8266 subtype N_Direct_Name is Node_Kind range
8268 N_Character_Literal;
8270 subtype N_Entity is Node_Kind range
8271 N_Defining_Character_Literal ..
8272 N_Defining_Operator_Symbol;
8274 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8275 N_Formal_Abstract_Subprogram_Declaration ..
8276 N_Formal_Concrete_Subprogram_Declaration;
8278 subtype N_Generic_Declaration is Node_Kind range
8279 N_Generic_Package_Declaration ..
8280 N_Generic_Subprogram_Declaration;
8282 subtype N_Generic_Instantiation is Node_Kind range
8283 N_Function_Instantiation ..
8284 N_Package_Instantiation;
8286 subtype N_Generic_Renaming_Declaration is Node_Kind range
8287 N_Generic_Function_Renaming_Declaration ..
8288 N_Generic_Procedure_Renaming_Declaration;
8290 subtype N_Has_Chars is Node_Kind range
8291 N_Attribute_Definition_Clause ..
8294 subtype N_Has_Entity is Node_Kind range
8296 N_Attribute_Reference;
8297 -- Nodes that have Entity fields
8298 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8299 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8301 subtype N_Has_Etype is Node_Kind range
8303 N_Subtype_Indication;
8305 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8309 subtype N_Multiplying_Operator is Node_Kind range
8313 subtype N_Later_Decl_Item is Node_Kind range
8314 N_Task_Type_Declaration ..
8315 N_Generic_Subprogram_Declaration;
8316 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8317 -- only those items which can appear as later declarative items. This also
8318 -- includes N_Implicit_Label_Declaration which is not specifically in the
8319 -- grammar but may appear as a valid later declarative items. It does NOT
8320 -- include N_Pragma which can also appear among later declarative items.
8321 -- It does however include N_Protected_Body, which is a bit peculiar, but
8322 -- harmless since this cannot appear in Ada 83 mode anyway.
8324 subtype N_Membership_Test is Node_Kind range
8328 subtype N_Numeric_Or_String_Literal is Node_Kind range
8329 N_Integer_Literal ..
8332 subtype N_Op is Node_Kind range
8336 subtype N_Op_Boolean is Node_Kind range
8339 -- Binary operators which take operands of a boolean type, and yield
8340 -- a result of a boolean type.
8342 subtype N_Op_Compare is Node_Kind range
8346 subtype N_Op_Shift is Node_Kind range
8348 N_Op_Shift_Right_Arithmetic;
8350 subtype N_Proper_Body is Node_Kind range
8354 subtype N_Push_xxx_Label is Node_Kind range
8355 N_Push_Constraint_Error_Label ..
8356 N_Push_Storage_Error_Label;
8358 subtype N_Pop_xxx_Label is Node_Kind range
8359 N_Pop_Constraint_Error_Label ..
8360 N_Pop_Storage_Error_Label;
8362 subtype N_Push_Pop_xxx_Label is Node_Kind range
8363 N_Push_Constraint_Error_Label ..
8364 N_Pop_Storage_Error_Label;
8366 subtype N_Raise_xxx_Error is Node_Kind range
8367 N_Raise_Constraint_Error ..
8368 N_Raise_Storage_Error;
8370 subtype N_Renaming_Declaration is Node_Kind range
8371 N_Exception_Renaming_Declaration ..
8372 N_Generic_Procedure_Renaming_Declaration;
8374 subtype N_Representation_Clause is Node_Kind range
8376 N_Attribute_Definition_Clause;
8378 subtype N_Short_Circuit is Node_Kind range
8382 subtype N_SCIL_Node is Node_Kind range
8383 N_SCIL_Dispatch_Table_Tag_Init ..
8384 N_SCIL_Membership_Test;
8386 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8387 N_Abort_Statement ..
8389 -- Note that this includes all statement types except for the cases of the
8390 -- N_Procedure_Call_Statement which is considered to be a subexpression
8391 -- (since overloading is possible, so it needs to go through the normal
8392 -- overloading resolution for expressions).
8394 subtype N_Subprogram_Call is Node_Kind range
8396 N_Procedure_Call_Statement;
8398 subtype N_Subprogram_Instantiation is Node_Kind range
8399 N_Function_Instantiation ..
8400 N_Procedure_Instantiation;
8402 subtype N_Has_Condition is Node_Kind range
8404 N_Terminate_Alternative;
8405 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8407 subtype N_Subexpr is Node_Kind range
8409 N_Unchecked_Type_Conversion;
8410 -- Nodes with expression fields
8412 subtype N_Subprogram_Specification is Node_Kind range
8413 N_Function_Specification ..
8414 N_Procedure_Specification;
8416 subtype N_Unary_Op is Node_Kind range
8420 subtype N_Unit_Body is Node_Kind range
8424 ---------------------------
8425 -- Node Access Functions --
8426 ---------------------------
8428 -- The following functions return the contents of the indicated field of
8429 -- the node referenced by the argument, which is a Node_Id. They provide
8430 -- logical access to fields in the node which could be accessed using the
8431 -- Atree.Unchecked_Access package, but the idea is always to use these
8432 -- higher level routines which preserve strong typing. In debug mode,
8433 -- these routines check that they are being applied to an appropriate
8434 -- node, as well as checking that the node is in range.
8436 function ABE_Is_Certain
8437 (N : Node_Id) return Boolean; -- Flag18
8439 function Abort_Present
8440 (N : Node_Id) return Boolean; -- Flag15
8442 function Abortable_Part
8443 (N : Node_Id) return Node_Id; -- Node2
8445 function Abstract_Present
8446 (N : Node_Id) return Boolean; -- Flag4
8448 function Accept_Handler_Records
8449 (N : Node_Id) return List_Id; -- List5
8451 function Accept_Statement
8452 (N : Node_Id) return Node_Id; -- Node2
8454 function Access_Definition
8455 (N : Node_Id) return Node_Id; -- Node3
8457 function Access_To_Subprogram_Definition
8458 (N : Node_Id) return Node_Id; -- Node3
8460 function Access_Types_To_Process
8461 (N : Node_Id) return Elist_Id; -- Elist2
8464 (N : Node_Id) return List_Id; -- List1
8466 function Activation_Chain_Entity
8467 (N : Node_Id) return Node_Id; -- Node3
8469 function Acts_As_Spec
8470 (N : Node_Id) return Boolean; -- Flag4
8472 function Actual_Designated_Subtype
8473 (N : Node_Id) return Node_Id; -- Node4
8475 function Address_Warning_Posted
8476 (N : Node_Id) return Boolean; -- Flag18
8478 function Aggregate_Bounds
8479 (N : Node_Id) return Node_Id; -- Node3
8481 function Aliased_Present
8482 (N : Node_Id) return Boolean; -- Flag4
8485 (N : Node_Id) return Boolean; -- Flag11
8487 function All_Present
8488 (N : Node_Id) return Boolean; -- Flag15
8490 function Alternatives
8491 (N : Node_Id) return List_Id; -- List4
8493 function Ancestor_Part
8494 (N : Node_Id) return Node_Id; -- Node3
8496 function Atomic_Sync_Required
8497 (N : Node_Id) return Boolean; -- Flag14
8499 function Array_Aggregate
8500 (N : Node_Id) return Node_Id; -- Node3
8502 function Aspect_Rep_Item
8503 (N : Node_Id) return Node_Id; -- Node2
8505 function Assignment_OK
8506 (N : Node_Id) return Boolean; -- Flag15
8508 function Associated_Node
8509 (N : Node_Id) return Node_Id; -- Node4
8511 function At_End_Proc
8512 (N : Node_Id) return Node_Id; -- Node1
8514 function Attribute_Name
8515 (N : Node_Id) return Name_Id; -- Name2
8517 function Aux_Decls_Node
8518 (N : Node_Id) return Node_Id; -- Node5
8520 function Backwards_OK
8521 (N : Node_Id) return Boolean; -- Flag6
8523 function Bad_Is_Detected
8524 (N : Node_Id) return Boolean; -- Flag15
8527 (N : Node_Id) return Boolean; -- Flag5
8529 function Body_Required
8530 (N : Node_Id) return Boolean; -- Flag13
8532 function Body_To_Inline
8533 (N : Node_Id) return Node_Id; -- Node3
8535 function Box_Present
8536 (N : Node_Id) return Boolean; -- Flag15
8538 function Char_Literal_Value
8539 (N : Node_Id) return Uint; -- Uint2
8542 (N : Node_Id) return Name_Id; -- Name1
8544 function Check_Address_Alignment
8545 (N : Node_Id) return Boolean; -- Flag11
8547 function Choice_Parameter
8548 (N : Node_Id) return Node_Id; -- Node2
8551 (N : Node_Id) return List_Id; -- List1
8553 function Class_Present
8554 (N : Node_Id) return Boolean; -- Flag6
8556 function Classifications
8557 (N : Node_Id) return Node_Id; -- Node3
8559 function Comes_From_Extended_Return_Statement
8560 (N : Node_Id) return Boolean; -- Flag18
8562 function Compile_Time_Known_Aggregate
8563 (N : Node_Id) return Boolean; -- Flag18
8565 function Component_Associations
8566 (N : Node_Id) return List_Id; -- List2
8568 function Component_Clauses
8569 (N : Node_Id) return List_Id; -- List3
8571 function Component_Definition
8572 (N : Node_Id) return Node_Id; -- Node4
8574 function Component_Items
8575 (N : Node_Id) return List_Id; -- List3
8577 function Component_List
8578 (N : Node_Id) return Node_Id; -- Node1
8580 function Component_Name
8581 (N : Node_Id) return Node_Id; -- Node1
8583 function Componentwise_Assignment
8584 (N : Node_Id) return Boolean; -- Flag14
8587 (N : Node_Id) return Node_Id; -- Node1
8589 function Condition_Actions
8590 (N : Node_Id) return List_Id; -- List3
8592 function Config_Pragmas
8593 (N : Node_Id) return List_Id; -- List4
8595 function Constant_Present
8596 (N : Node_Id) return Boolean; -- Flag17
8599 (N : Node_Id) return Node_Id; -- Node3
8601 function Constraints
8602 (N : Node_Id) return List_Id; -- List1
8604 function Context_Installed
8605 (N : Node_Id) return Boolean; -- Flag13
8607 function Context_Pending
8608 (N : Node_Id) return Boolean; -- Flag16
8610 function Context_Items
8611 (N : Node_Id) return List_Id; -- List1
8613 function Contract_Test_Cases
8614 (N : Node_Id) return Node_Id; -- Node2
8616 function Controlling_Argument
8617 (N : Node_Id) return Node_Id; -- Node1
8619 function Conversion_OK
8620 (N : Node_Id) return Boolean; -- Flag14
8622 function Convert_To_Return_False
8623 (N : Node_Id) return Boolean; -- Flag13
8625 function Corresponding_Aspect
8626 (N : Node_Id) return Node_Id; -- Node3
8628 function Corresponding_Body
8629 (N : Node_Id) return Node_Id; -- Node5
8631 function Corresponding_Formal_Spec
8632 (N : Node_Id) return Node_Id; -- Node3
8634 function Corresponding_Generic_Association
8635 (N : Node_Id) return Node_Id; -- Node5
8637 function Corresponding_Integer_Value
8638 (N : Node_Id) return Uint; -- Uint4
8640 function Corresponding_Spec
8641 (N : Node_Id) return Node_Id; -- Node5
8643 function Corresponding_Spec_Of_Stub
8644 (N : Node_Id) return Node_Id; -- Node2
8646 function Corresponding_Stub
8647 (N : Node_Id) return Node_Id; -- Node3
8649 function Dcheck_Function
8650 (N : Node_Id) return Entity_Id; -- Node5
8652 function Declarations
8653 (N : Node_Id) return List_Id; -- List2
8655 function Default_Expression
8656 (N : Node_Id) return Node_Id; -- Node5
8658 function Default_Storage_Pool
8659 (N : Node_Id) return Node_Id; -- Node3
8661 function Default_Name
8662 (N : Node_Id) return Node_Id; -- Node2
8664 function Defining_Identifier
8665 (N : Node_Id) return Entity_Id; -- Node1
8667 function Defining_Unit_Name
8668 (N : Node_Id) return Node_Id; -- Node1
8670 function Delay_Alternative
8671 (N : Node_Id) return Node_Id; -- Node4
8673 function Delay_Statement
8674 (N : Node_Id) return Node_Id; -- Node2
8676 function Delta_Expression
8677 (N : Node_Id) return Node_Id; -- Node3
8679 function Digits_Expression
8680 (N : Node_Id) return Node_Id; -- Node2
8682 function Discr_Check_Funcs_Built
8683 (N : Node_Id) return Boolean; -- Flag11
8685 function Discrete_Choices
8686 (N : Node_Id) return List_Id; -- List4
8688 function Discrete_Range
8689 (N : Node_Id) return Node_Id; -- Node4
8691 function Discrete_Subtype_Definition
8692 (N : Node_Id) return Node_Id; -- Node4
8694 function Discrete_Subtype_Definitions
8695 (N : Node_Id) return List_Id; -- List2
8697 function Discriminant_Specifications
8698 (N : Node_Id) return List_Id; -- List4
8700 function Discriminant_Type
8701 (N : Node_Id) return Node_Id; -- Node5
8703 function Do_Accessibility_Check
8704 (N : Node_Id) return Boolean; -- Flag13
8706 function Do_Discriminant_Check
8707 (N : Node_Id) return Boolean; -- Flag1
8709 function Do_Division_Check
8710 (N : Node_Id) return Boolean; -- Flag13
8712 function Do_Length_Check
8713 (N : Node_Id) return Boolean; -- Flag4
8715 function Do_Overflow_Check
8716 (N : Node_Id) return Boolean; -- Flag17
8718 function Do_Range_Check
8719 (N : Node_Id) return Boolean; -- Flag9
8721 function Do_Storage_Check
8722 (N : Node_Id) return Boolean; -- Flag17
8724 function Do_Tag_Check
8725 (N : Node_Id) return Boolean; -- Flag13
8727 function Elaborate_All_Desirable
8728 (N : Node_Id) return Boolean; -- Flag9
8730 function Elaborate_All_Present
8731 (N : Node_Id) return Boolean; -- Flag14
8733 function Elaborate_Desirable
8734 (N : Node_Id) return Boolean; -- Flag11
8736 function Elaborate_Present
8737 (N : Node_Id) return Boolean; -- Flag4
8739 function Elaboration_Boolean
8740 (N : Node_Id) return Node_Id; -- Node2
8742 function Else_Actions
8743 (N : Node_Id) return List_Id; -- List3
8745 function Else_Statements
8746 (N : Node_Id) return List_Id; -- List4
8748 function Elsif_Parts
8749 (N : Node_Id) return List_Id; -- List3
8751 function Enclosing_Variant
8752 (N : Node_Id) return Node_Id; -- Node2
8755 (N : Node_Id) return Node_Id; -- Node4
8758 (N : Node_Id) return Uint; -- Uint5
8761 (N : Node_Id) return Node_Id; -- Node4
8763 function Entity_Or_Associated_Node
8764 (N : Node_Id) return Node_Id; -- Node4
8766 function Entry_Body_Formal_Part
8767 (N : Node_Id) return Node_Id; -- Node5
8769 function Entry_Call_Alternative
8770 (N : Node_Id) return Node_Id; -- Node1
8772 function Entry_Call_Statement
8773 (N : Node_Id) return Node_Id; -- Node1
8775 function Entry_Direct_Name
8776 (N : Node_Id) return Node_Id; -- Node1
8778 function Entry_Index
8779 (N : Node_Id) return Node_Id; -- Node5
8781 function Entry_Index_Specification
8782 (N : Node_Id) return Node_Id; -- Node4
8785 (N : Node_Id) return Node_Id; -- Node5
8787 function Exception_Choices
8788 (N : Node_Id) return List_Id; -- List4
8790 function Exception_Handlers
8791 (N : Node_Id) return List_Id; -- List5
8793 function Exception_Junk
8794 (N : Node_Id) return Boolean; -- Flag8
8796 function Exception_Label
8797 (N : Node_Id) return Node_Id; -- Node5
8799 function Explicit_Actual_Parameter
8800 (N : Node_Id) return Node_Id; -- Node3
8802 function Expansion_Delayed
8803 (N : Node_Id) return Boolean; -- Flag11
8805 function Explicit_Generic_Actual_Parameter
8806 (N : Node_Id) return Node_Id; -- Node1
8809 (N : Node_Id) return Node_Id; -- Node3
8811 function Expressions
8812 (N : Node_Id) return List_Id; -- List1
8815 (N : Node_Id) return Node_Id; -- Node3
8817 function First_Inlined_Subprogram
8818 (N : Node_Id) return Entity_Id; -- Node3
8821 (N : Node_Id) return Boolean; -- Flag5
8823 function First_Named_Actual
8824 (N : Node_Id) return Node_Id; -- Node4
8826 function First_Real_Statement
8827 (N : Node_Id) return Node_Id; -- Node2
8829 function First_Subtype_Link
8830 (N : Node_Id) return Entity_Id; -- Node5
8832 function Float_Truncate
8833 (N : Node_Id) return Boolean; -- Flag11
8835 function Formal_Type_Definition
8836 (N : Node_Id) return Node_Id; -- Node3
8838 function Forwards_OK
8839 (N : Node_Id) return Boolean; -- Flag5
8841 function From_Aspect_Specification
8842 (N : Node_Id) return Boolean; -- Flag13
8844 function From_At_End
8845 (N : Node_Id) return Boolean; -- Flag4
8847 function From_At_Mod
8848 (N : Node_Id) return Boolean; -- Flag4
8850 function From_Default
8851 (N : Node_Id) return Boolean; -- Flag6
8853 function Generic_Associations
8854 (N : Node_Id) return List_Id; -- List3
8856 function Generic_Formal_Declarations
8857 (N : Node_Id) return List_Id; -- List2
8859 function Generic_Parent
8860 (N : Node_Id) return Node_Id; -- Node5
8862 function Generic_Parent_Type
8863 (N : Node_Id) return Node_Id; -- Node4
8865 function Handled_Statement_Sequence
8866 (N : Node_Id) return Node_Id; -- Node4
8868 function Handler_List_Entry
8869 (N : Node_Id) return Node_Id; -- Node2
8871 function Has_Created_Identifier
8872 (N : Node_Id) return Boolean; -- Flag15
8874 function Has_Dereference_Action
8875 (N : Node_Id) return Boolean; -- Flag13
8877 function Has_Dynamic_Length_Check
8878 (N : Node_Id) return Boolean; -- Flag10
8880 function Has_Dynamic_Range_Check
8881 (N : Node_Id) return Boolean; -- Flag12
8883 function Has_Init_Expression
8884 (N : Node_Id) return Boolean; -- Flag14
8886 function Has_Local_Raise
8887 (N : Node_Id) return Boolean; -- Flag8
8889 function Has_No_Elaboration_Code
8890 (N : Node_Id) return Boolean; -- Flag17
8892 function Has_Pragma_Suppress_All
8893 (N : Node_Id) return Boolean; -- Flag14
8895 function Has_Private_View
8896 (N : Node_Id) return Boolean; -- Flag11
8898 function Has_Relative_Deadline_Pragma
8899 (N : Node_Id) return Boolean; -- Flag9
8901 function Has_Self_Reference
8902 (N : Node_Id) return Boolean; -- Flag13
8904 function Has_SP_Choice
8905 (N : Node_Id) return Boolean; -- Flag15
8907 function Has_Storage_Size_Pragma
8908 (N : Node_Id) return Boolean; -- Flag5
8910 function Has_Wide_Character
8911 (N : Node_Id) return Boolean; -- Flag11
8913 function Has_Wide_Wide_Character
8914 (N : Node_Id) return Boolean; -- Flag13
8916 function Header_Size_Added
8917 (N : Node_Id) return Boolean; -- Flag11
8919 function Hidden_By_Use_Clause
8920 (N : Node_Id) return Elist_Id; -- Elist4
8923 (N : Node_Id) return Node_Id; -- Node2
8926 (N : Node_Id) return Node_Id; -- Node1
8928 function Interface_List
8929 (N : Node_Id) return List_Id; -- List2
8931 function Interface_Present
8932 (N : Node_Id) return Boolean; -- Flag16
8934 function Implicit_With
8935 (N : Node_Id) return Boolean; -- Flag16
8937 function Implicit_With_From_Instantiation
8938 (N : Node_Id) return Boolean; -- Flag12
8940 function Import_Interface_Present
8941 (N : Node_Id) return Boolean; -- Flag16
8943 function In_Assertion_Expression
8944 (N : Node_Id) return Boolean; -- Flag4
8947 (N : Node_Id) return Boolean; -- Flag15
8949 function Includes_Infinities
8950 (N : Node_Id) return Boolean; -- Flag11
8952 function Inherited_Discriminant
8953 (N : Node_Id) return Boolean; -- Flag13
8955 function Instance_Spec
8956 (N : Node_Id) return Node_Id; -- Node5
8959 (N : Node_Id) return Uint; -- Uint3
8961 function Is_Accessibility_Actual
8962 (N : Node_Id) return Boolean; -- Flag13
8964 function Is_Asynchronous_Call_Block
8965 (N : Node_Id) return Boolean; -- Flag7
8967 function Is_Boolean_Aspect
8968 (N : Node_Id) return Boolean; -- Flag16
8971 (N : Node_Id) return Boolean; -- Flag11
8973 function Is_Component_Left_Opnd
8974 (N : Node_Id) return Boolean; -- Flag13
8976 function Is_Component_Right_Opnd
8977 (N : Node_Id) return Boolean; -- Flag14
8979 function Is_Controlling_Actual
8980 (N : Node_Id) return Boolean; -- Flag16
8982 function Is_Delayed_Aspect
8983 (N : Node_Id) return Boolean; -- Flag14
8985 function Is_Disabled
8986 (N : Node_Id) return Boolean; -- Flag15
8988 function Is_Dynamic_Coextension
8989 (N : Node_Id) return Boolean; -- Flag18
8992 (N : Node_Id) return Boolean; -- Flag13
8994 function Is_Entry_Barrier_Function
8995 (N : Node_Id) return Boolean; -- Flag8
8997 function Is_Expanded_Build_In_Place_Call
8998 (N : Node_Id) return Boolean; -- Flag11
9000 function Is_Finalization_Wrapper
9001 (N : Node_Id) return Boolean; -- Flag9
9003 function Is_Folded_In_Parser
9004 (N : Node_Id) return Boolean; -- Flag4
9007 (N : Node_Id) return Boolean; -- Flag9
9009 function Is_In_Discriminant_Check
9010 (N : Node_Id) return Boolean; -- Flag11
9012 function Is_Machine_Number
9013 (N : Node_Id) return Boolean; -- Flag11
9015 function Is_Null_Loop
9016 (N : Node_Id) return Boolean; -- Flag16
9018 function Is_Overloaded
9019 (N : Node_Id) return Boolean; -- Flag5
9021 function Is_Power_Of_2_For_Shift
9022 (N : Node_Id) return Boolean; -- Flag13
9024 function Is_Prefixed_Call
9025 (N : Node_Id) return Boolean; -- Flag17
9027 function Is_Protected_Subprogram_Body
9028 (N : Node_Id) return Boolean; -- Flag7
9030 function Is_Static_Coextension
9031 (N : Node_Id) return Boolean; -- Flag14
9033 function Is_Static_Expression
9034 (N : Node_Id) return Boolean; -- Flag6
9036 function Is_Subprogram_Descriptor
9037 (N : Node_Id) return Boolean; -- Flag16
9039 function Is_Task_Allocation_Block
9040 (N : Node_Id) return Boolean; -- Flag6
9042 function Is_Task_Master
9043 (N : Node_Id) return Boolean; -- Flag5
9045 function Iteration_Scheme
9046 (N : Node_Id) return Node_Id; -- Node2
9048 function Iterator_Specification
9049 (N : Node_Id) return Node_Id; -- Node2
9052 (N : Node_Id) return Entity_Id; -- Node1
9054 function Kill_Range_Check
9055 (N : Node_Id) return Boolean; -- Flag11
9057 function Label_Construct
9058 (N : Node_Id) return Node_Id; -- Node2
9061 (N : Node_Id) return Node_Id; -- Node2
9064 (N : Node_Id) return Node_Id; -- Node4
9067 (N : Node_Id) return Boolean; -- Flag6
9069 function Library_Unit
9070 (N : Node_Id) return Node_Id; -- Node4
9072 function Limited_View_Installed
9073 (N : Node_Id) return Boolean; -- Flag18
9075 function Limited_Present
9076 (N : Node_Id) return Boolean; -- Flag17
9079 (N : Node_Id) return List_Id; -- List1
9081 function Local_Raise_Not_OK
9082 (N : Node_Id) return Boolean; -- Flag7
9084 function Local_Raise_Statements
9085 (N : Node_Id) return Elist_Id; -- Elist1
9087 function Loop_Actions
9088 (N : Node_Id) return List_Id; -- List2
9090 function Loop_Parameter_Specification
9091 (N : Node_Id) return Node_Id; -- Node4
9094 (N : Node_Id) return Node_Id; -- Node1
9097 (N : Node_Id) return Node_Id; -- Node2
9100 (N : Node_Id) return Boolean; -- Flag5
9102 function Must_Be_Byte_Aligned
9103 (N : Node_Id) return Boolean; -- Flag14
9105 function Must_Not_Freeze
9106 (N : Node_Id) return Boolean; -- Flag8
9108 function Must_Not_Override
9109 (N : Node_Id) return Boolean; -- Flag15
9111 function Must_Override
9112 (N : Node_Id) return Boolean; -- Flag14
9115 (N : Node_Id) return Node_Id; -- Node2
9118 (N : Node_Id) return List_Id; -- List2
9120 function Next_Entity
9121 (N : Node_Id) return Node_Id; -- Node2
9123 function Next_Exit_Statement
9124 (N : Node_Id) return Node_Id; -- Node3
9126 function Next_Implicit_With
9127 (N : Node_Id) return Node_Id; -- Node3
9129 function Next_Named_Actual
9130 (N : Node_Id) return Node_Id; -- Node4
9132 function Next_Pragma
9133 (N : Node_Id) return Node_Id; -- Node1
9135 function Next_Rep_Item
9136 (N : Node_Id) return Node_Id; -- Node5
9138 function Next_Use_Clause
9139 (N : Node_Id) return Node_Id; -- Node3
9141 function No_Ctrl_Actions
9142 (N : Node_Id) return Boolean; -- Flag7
9144 function No_Elaboration_Check
9145 (N : Node_Id) return Boolean; -- Flag14
9147 function No_Entities_Ref_In_Spec
9148 (N : Node_Id) return Boolean; -- Flag8
9150 function No_Initialization
9151 (N : Node_Id) return Boolean; -- Flag13
9153 function No_Minimize_Eliminate
9154 (N : Node_Id) return Boolean; -- Flag17
9156 function No_Truncation
9157 (N : Node_Id) return Boolean; -- Flag17
9159 function Null_Present
9160 (N : Node_Id) return Boolean; -- Flag13
9162 function Null_Exclusion_Present
9163 (N : Node_Id) return Boolean; -- Flag11
9165 function Null_Exclusion_In_Return_Present
9166 (N : Node_Id) return Boolean; -- Flag14
9168 function Null_Record_Present
9169 (N : Node_Id) return Boolean; -- Flag17
9171 function Object_Definition
9172 (N : Node_Id) return Node_Id; -- Node4
9175 (N : Node_Id) return Boolean; -- Flag16
9177 function Original_Discriminant
9178 (N : Node_Id) return Node_Id; -- Node2
9180 function Original_Entity
9181 (N : Node_Id) return Entity_Id; -- Node2
9183 function Others_Discrete_Choices
9184 (N : Node_Id) return List_Id; -- List1
9186 function Out_Present
9187 (N : Node_Id) return Boolean; -- Flag17
9189 function Parameter_Associations
9190 (N : Node_Id) return List_Id; -- List3
9192 function Parameter_List_Truncated
9193 (N : Node_Id) return Boolean; -- Flag17
9195 function Parameter_Specifications
9196 (N : Node_Id) return List_Id; -- List3
9198 function Parameter_Type
9199 (N : Node_Id) return Node_Id; -- Node2
9201 function Parent_Spec
9202 (N : Node_Id) return Node_Id; -- Node4
9205 (N : Node_Id) return Node_Id; -- Node2
9207 function Pragma_Argument_Associations
9208 (N : Node_Id) return List_Id; -- List2
9210 function Pragma_Identifier
9211 (N : Node_Id) return Node_Id; -- Node4
9213 function Pragmas_After
9214 (N : Node_Id) return List_Id; -- List5
9216 function Pragmas_Before
9217 (N : Node_Id) return List_Id; -- List4
9219 function Pre_Post_Conditions
9220 (N : Node_Id) return Node_Id; -- Node1
9223 (N : Node_Id) return Node_Id; -- Node3
9225 function Premature_Use
9226 (N : Node_Id) return Node_Id; -- Node5
9228 function Present_Expr
9229 (N : Node_Id) return Uint; -- Uint3
9232 (N : Node_Id) return Boolean; -- Flag6
9234 function Print_In_Hex
9235 (N : Node_Id) return Boolean; -- Flag13
9237 function Private_Declarations
9238 (N : Node_Id) return List_Id; -- List3
9240 function Private_Present
9241 (N : Node_Id) return Boolean; -- Flag15
9243 function Procedure_To_Call
9244 (N : Node_Id) return Node_Id; -- Node2
9246 function Proper_Body
9247 (N : Node_Id) return Node_Id; -- Node1
9249 function Protected_Definition
9250 (N : Node_Id) return Node_Id; -- Node3
9252 function Protected_Present
9253 (N : Node_Id) return Boolean; -- Flag6
9255 function Raises_Constraint_Error
9256 (N : Node_Id) return Boolean; -- Flag7
9258 function Range_Constraint
9259 (N : Node_Id) return Node_Id; -- Node4
9261 function Range_Expression
9262 (N : Node_Id) return Node_Id; -- Node4
9264 function Real_Range_Specification
9265 (N : Node_Id) return Node_Id; -- Node4
9268 (N : Node_Id) return Ureal; -- Ureal3
9271 (N : Node_Id) return Uint; -- Uint3
9273 function Record_Extension_Part
9274 (N : Node_Id) return Node_Id; -- Node3
9276 function Redundant_Use
9277 (N : Node_Id) return Boolean; -- Flag13
9279 function Renaming_Exception
9280 (N : Node_Id) return Node_Id; -- Node2
9282 function Result_Definition
9283 (N : Node_Id) return Node_Id; -- Node4
9285 function Return_Object_Declarations
9286 (N : Node_Id) return List_Id; -- List3
9288 function Return_Statement_Entity
9289 (N : Node_Id) return Node_Id; -- Node5
9291 function Reverse_Present
9292 (N : Node_Id) return Boolean; -- Flag15
9295 (N : Node_Id) return Node_Id; -- Node3
9297 function Rounded_Result
9298 (N : Node_Id) return Boolean; -- Flag18
9300 function SCIL_Controlling_Tag
9301 (N : Node_Id) return Node_Id; -- Node5
9303 function SCIL_Entity
9304 (N : Node_Id) return Node_Id; -- Node4
9306 function SCIL_Tag_Value
9307 (N : Node_Id) return Node_Id; -- Node5
9309 function SCIL_Target_Prim
9310 (N : Node_Id) return Node_Id; -- Node2
9313 (N : Node_Id) return Node_Id; -- Node3
9315 function Select_Alternatives
9316 (N : Node_Id) return List_Id; -- List1
9318 function Selector_Name
9319 (N : Node_Id) return Node_Id; -- Node2
9321 function Selector_Names
9322 (N : Node_Id) return List_Id; -- List1
9324 function Shift_Count_OK
9325 (N : Node_Id) return Boolean; -- Flag4
9327 function Source_Type
9328 (N : Node_Id) return Entity_Id; -- Node1
9330 function Specification
9331 (N : Node_Id) return Node_Id; -- Node1
9334 (N : Node_Id) return Boolean; -- Flag17
9337 (N : Node_Id) return List_Id; -- List3
9339 function Storage_Pool
9340 (N : Node_Id) return Node_Id; -- Node1
9342 function Subpool_Handle_Name
9343 (N : Node_Id) return Node_Id; -- Node4
9346 (N : Node_Id) return String_Id; -- Str3
9348 function Subtype_Indication
9349 (N : Node_Id) return Node_Id; -- Node5
9351 function Subtype_Mark
9352 (N : Node_Id) return Node_Id; -- Node4
9354 function Subtype_Marks
9355 (N : Node_Id) return List_Id; -- List2
9357 function Suppress_Assignment_Checks
9358 (N : Node_Id) return Boolean; -- Flag18
9360 function Suppress_Loop_Warnings
9361 (N : Node_Id) return Boolean; -- Flag17
9363 function Synchronized_Present
9364 (N : Node_Id) return Boolean; -- Flag7
9366 function Tagged_Present
9367 (N : Node_Id) return Boolean; -- Flag15
9369 function Target_Type
9370 (N : Node_Id) return Entity_Id; -- Node2
9372 function Task_Definition
9373 (N : Node_Id) return Node_Id; -- Node3
9375 function Task_Present
9376 (N : Node_Id) return Boolean; -- Flag5
9378 function Then_Actions
9379 (N : Node_Id) return List_Id; -- List2
9381 function Then_Statements
9382 (N : Node_Id) return List_Id; -- List2
9384 function Treat_Fixed_As_Integer
9385 (N : Node_Id) return Boolean; -- Flag14
9387 function Triggering_Alternative
9388 (N : Node_Id) return Node_Id; -- Node1
9390 function Triggering_Statement
9391 (N : Node_Id) return Node_Id; -- Node1
9394 (N : Node_Id) return Elist_Id; -- Elist3
9396 function Type_Definition
9397 (N : Node_Id) return Node_Id; -- Node3
9400 (N : Node_Id) return Node_Id; -- Node2
9402 function Unknown_Discriminants_Present
9403 (N : Node_Id) return Boolean; -- Flag13
9405 function Unreferenced_In_Spec
9406 (N : Node_Id) return Boolean; -- Flag7
9408 function Variant_Part
9409 (N : Node_Id) return Node_Id; -- Node4
9412 (N : Node_Id) return List_Id; -- List1
9414 function Visible_Declarations
9415 (N : Node_Id) return List_Id; -- List2
9417 function Used_Operations
9418 (N : Node_Id) return Elist_Id; -- Elist5
9420 function Was_Originally_Stub
9421 (N : Node_Id) return Boolean; -- Flag13
9423 function Withed_Body
9424 (N : Node_Id) return Node_Id; -- Node1
9426 -- End functions (note used by xsinfo utility program to end processing)
9428 ----------------------------
9429 -- Node Update Procedures --
9430 ----------------------------
9432 -- These are the corresponding node update routines, which again provide
9433 -- a high level logical access with type checking. In addition to setting
9434 -- the indicated field of the node N to the given Val, in the case of
9435 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9436 -- point back to node N. This automates the setting of the parent pointer.
9438 procedure Set_ABE_Is_Certain
9439 (N : Node_Id; Val : Boolean := True); -- Flag18
9441 procedure Set_Abort_Present
9442 (N : Node_Id; Val : Boolean := True); -- Flag15
9444 procedure Set_Abortable_Part
9445 (N : Node_Id; Val : Node_Id); -- Node2
9447 procedure Set_Abstract_Present
9448 (N : Node_Id; Val : Boolean := True); -- Flag4
9450 procedure Set_Accept_Handler_Records
9451 (N : Node_Id; Val : List_Id); -- List5
9453 procedure Set_Accept_Statement
9454 (N : Node_Id; Val : Node_Id); -- Node2
9456 procedure Set_Access_Definition
9457 (N : Node_Id; Val : Node_Id); -- Node3
9459 procedure Set_Access_To_Subprogram_Definition
9460 (N : Node_Id; Val : Node_Id); -- Node3
9462 procedure Set_Access_Types_To_Process
9463 (N : Node_Id; Val : Elist_Id); -- Elist2
9465 procedure Set_Actions
9466 (N : Node_Id; Val : List_Id); -- List1
9468 procedure Set_Activation_Chain_Entity
9469 (N : Node_Id; Val : Node_Id); -- Node3
9471 procedure Set_Acts_As_Spec
9472 (N : Node_Id; Val : Boolean := True); -- Flag4
9474 procedure Set_Actual_Designated_Subtype
9475 (N : Node_Id; Val : Node_Id); -- Node4
9477 procedure Set_Address_Warning_Posted
9478 (N : Node_Id; Val : Boolean := True); -- Flag18
9480 procedure Set_Aggregate_Bounds
9481 (N : Node_Id; Val : Node_Id); -- Node3
9483 procedure Set_Aliased_Present
9484 (N : Node_Id; Val : Boolean := True); -- Flag4
9486 procedure Set_All_Others
9487 (N : Node_Id; Val : Boolean := True); -- Flag11
9489 procedure Set_All_Present
9490 (N : Node_Id; Val : Boolean := True); -- Flag15
9492 procedure Set_Alternatives
9493 (N : Node_Id; Val : List_Id); -- List4
9495 procedure Set_Ancestor_Part
9496 (N : Node_Id; Val : Node_Id); -- Node3
9498 procedure Set_Atomic_Sync_Required
9499 (N : Node_Id; Val : Boolean := True); -- Flag14
9501 procedure Set_Array_Aggregate
9502 (N : Node_Id; Val : Node_Id); -- Node3
9504 procedure Set_Aspect_Rep_Item
9505 (N : Node_Id; Val : Node_Id); -- Node2
9507 procedure Set_Assignment_OK
9508 (N : Node_Id; Val : Boolean := True); -- Flag15
9510 procedure Set_Associated_Node
9511 (N : Node_Id; Val : Node_Id); -- Node4
9513 procedure Set_Attribute_Name
9514 (N : Node_Id; Val : Name_Id); -- Name2
9516 procedure Set_At_End_Proc
9517 (N : Node_Id; Val : Node_Id); -- Node1
9519 procedure Set_Aux_Decls_Node
9520 (N : Node_Id; Val : Node_Id); -- Node5
9522 procedure Set_Backwards_OK
9523 (N : Node_Id; Val : Boolean := True); -- Flag6
9525 procedure Set_Bad_Is_Detected
9526 (N : Node_Id; Val : Boolean := True); -- Flag15
9528 procedure Set_Body_Required
9529 (N : Node_Id; Val : Boolean := True); -- Flag13
9531 procedure Set_Body_To_Inline
9532 (N : Node_Id; Val : Node_Id); -- Node3
9534 procedure Set_Box_Present
9535 (N : Node_Id; Val : Boolean := True); -- Flag15
9537 procedure Set_By_Ref
9538 (N : Node_Id; Val : Boolean := True); -- Flag5
9540 procedure Set_Char_Literal_Value
9541 (N : Node_Id; Val : Uint); -- Uint2
9544 (N : Node_Id; Val : Name_Id); -- Name1
9546 procedure Set_Check_Address_Alignment
9547 (N : Node_Id; Val : Boolean := True); -- Flag11
9549 procedure Set_Choice_Parameter
9550 (N : Node_Id; Val : Node_Id); -- Node2
9552 procedure Set_Choices
9553 (N : Node_Id; Val : List_Id); -- List1
9555 procedure Set_Class_Present
9556 (N : Node_Id; Val : Boolean := True); -- Flag6
9558 procedure Set_Classifications
9559 (N : Node_Id; Val : Node_Id); -- Node3
9561 procedure Set_Comes_From_Extended_Return_Statement
9562 (N : Node_Id; Val : Boolean := True); -- Flag18
9564 procedure Set_Compile_Time_Known_Aggregate
9565 (N : Node_Id; Val : Boolean := True); -- Flag18
9567 procedure Set_Component_Associations
9568 (N : Node_Id; Val : List_Id); -- List2
9570 procedure Set_Component_Clauses
9571 (N : Node_Id; Val : List_Id); -- List3
9573 procedure Set_Component_Definition
9574 (N : Node_Id; Val : Node_Id); -- Node4
9576 procedure Set_Component_Items
9577 (N : Node_Id; Val : List_Id); -- List3
9579 procedure Set_Component_List
9580 (N : Node_Id; Val : Node_Id); -- Node1
9582 procedure Set_Component_Name
9583 (N : Node_Id; Val : Node_Id); -- Node1
9585 procedure Set_Componentwise_Assignment
9586 (N : Node_Id; Val : Boolean := True); -- Flag14
9588 procedure Set_Condition
9589 (N : Node_Id; Val : Node_Id); -- Node1
9591 procedure Set_Condition_Actions
9592 (N : Node_Id; Val : List_Id); -- List3
9594 procedure Set_Config_Pragmas
9595 (N : Node_Id; Val : List_Id); -- List4
9597 procedure Set_Constant_Present
9598 (N : Node_Id; Val : Boolean := True); -- Flag17
9600 procedure Set_Constraint
9601 (N : Node_Id; Val : Node_Id); -- Node3
9603 procedure Set_Constraints
9604 (N : Node_Id; Val : List_Id); -- List1
9606 procedure Set_Context_Installed
9607 (N : Node_Id; Val : Boolean := True); -- Flag13
9609 procedure Set_Context_Items
9610 (N : Node_Id; Val : List_Id); -- List1
9612 procedure Set_Context_Pending
9613 (N : Node_Id; Val : Boolean := True); -- Flag16
9615 procedure Set_Contract_Test_Cases
9616 (N : Node_Id; Val : Node_Id); -- Node2
9618 procedure Set_Controlling_Argument
9619 (N : Node_Id; Val : Node_Id); -- Node1
9621 procedure Set_Conversion_OK
9622 (N : Node_Id; Val : Boolean := True); -- Flag14
9624 procedure Set_Convert_To_Return_False
9625 (N : Node_Id; Val : Boolean := True); -- Flag13
9627 procedure Set_Corresponding_Aspect
9628 (N : Node_Id; Val : Node_Id); -- Node3
9630 procedure Set_Corresponding_Body
9631 (N : Node_Id; Val : Node_Id); -- Node5
9633 procedure Set_Corresponding_Formal_Spec
9634 (N : Node_Id; Val : Node_Id); -- Node3
9636 procedure Set_Corresponding_Generic_Association
9637 (N : Node_Id; Val : Node_Id); -- Node5
9639 procedure Set_Corresponding_Integer_Value
9640 (N : Node_Id; Val : Uint); -- Uint4
9642 procedure Set_Corresponding_Spec
9643 (N : Node_Id; Val : Node_Id); -- Node5
9645 procedure Set_Corresponding_Spec_Of_Stub
9646 (N : Node_Id; Val : Node_Id); -- Node2
9648 procedure Set_Corresponding_Stub
9649 (N : Node_Id; Val : Node_Id); -- Node3
9651 procedure Set_Dcheck_Function
9652 (N : Node_Id; Val : Entity_Id); -- Node5
9654 procedure Set_Declarations
9655 (N : Node_Id; Val : List_Id); -- List2
9657 procedure Set_Default_Expression
9658 (N : Node_Id; Val : Node_Id); -- Node5
9660 procedure Set_Default_Storage_Pool
9661 (N : Node_Id; Val : Node_Id); -- Node3
9663 procedure Set_Default_Name
9664 (N : Node_Id; Val : Node_Id); -- Node2
9666 procedure Set_Defining_Identifier
9667 (N : Node_Id; Val : Entity_Id); -- Node1
9669 procedure Set_Defining_Unit_Name
9670 (N : Node_Id; Val : Node_Id); -- Node1
9672 procedure Set_Delay_Alternative
9673 (N : Node_Id; Val : Node_Id); -- Node4
9675 procedure Set_Delay_Statement
9676 (N : Node_Id; Val : Node_Id); -- Node2
9678 procedure Set_Delta_Expression
9679 (N : Node_Id; Val : Node_Id); -- Node3
9681 procedure Set_Digits_Expression
9682 (N : Node_Id; Val : Node_Id); -- Node2
9684 procedure Set_Discr_Check_Funcs_Built
9685 (N : Node_Id; Val : Boolean := True); -- Flag11
9687 procedure Set_Discrete_Choices
9688 (N : Node_Id; Val : List_Id); -- List4
9690 procedure Set_Discrete_Range
9691 (N : Node_Id; Val : Node_Id); -- Node4
9693 procedure Set_Discrete_Subtype_Definition
9694 (N : Node_Id; Val : Node_Id); -- Node4
9696 procedure Set_Discrete_Subtype_Definitions
9697 (N : Node_Id; Val : List_Id); -- List2
9699 procedure Set_Discriminant_Specifications
9700 (N : Node_Id; Val : List_Id); -- List4
9702 procedure Set_Discriminant_Type
9703 (N : Node_Id; Val : Node_Id); -- Node5
9705 procedure Set_Do_Accessibility_Check
9706 (N : Node_Id; Val : Boolean := True); -- Flag13
9708 procedure Set_Do_Discriminant_Check
9709 (N : Node_Id; Val : Boolean := True); -- Flag1
9711 procedure Set_Do_Division_Check
9712 (N : Node_Id; Val : Boolean := True); -- Flag13
9714 procedure Set_Do_Length_Check
9715 (N : Node_Id; Val : Boolean := True); -- Flag4
9717 procedure Set_Do_Overflow_Check
9718 (N : Node_Id; Val : Boolean := True); -- Flag17
9720 procedure Set_Do_Range_Check
9721 (N : Node_Id; Val : Boolean := True); -- Flag9
9723 procedure Set_Do_Storage_Check
9724 (N : Node_Id; Val : Boolean := True); -- Flag17
9726 procedure Set_Do_Tag_Check
9727 (N : Node_Id; Val : Boolean := True); -- Flag13
9729 procedure Set_Elaborate_All_Desirable
9730 (N : Node_Id; Val : Boolean := True); -- Flag9
9732 procedure Set_Elaborate_All_Present
9733 (N : Node_Id; Val : Boolean := True); -- Flag14
9735 procedure Set_Elaborate_Desirable
9736 (N : Node_Id; Val : Boolean := True); -- Flag11
9738 procedure Set_Elaborate_Present
9739 (N : Node_Id; Val : Boolean := True); -- Flag4
9741 procedure Set_Elaboration_Boolean
9742 (N : Node_Id; Val : Node_Id); -- Node2
9744 procedure Set_Else_Actions
9745 (N : Node_Id; Val : List_Id); -- List3
9747 procedure Set_Else_Statements
9748 (N : Node_Id; Val : List_Id); -- List4
9750 procedure Set_Elsif_Parts
9751 (N : Node_Id; Val : List_Id); -- List3
9753 procedure Set_Enclosing_Variant
9754 (N : Node_Id; Val : Node_Id); -- Node2
9756 procedure Set_End_Label
9757 (N : Node_Id; Val : Node_Id); -- Node4
9759 procedure Set_End_Span
9760 (N : Node_Id; Val : Uint); -- Uint5
9762 procedure Set_Entity
9763 (N : Node_Id; Val : Node_Id); -- Node4
9765 procedure Set_Entry_Body_Formal_Part
9766 (N : Node_Id; Val : Node_Id); -- Node5
9768 procedure Set_Entry_Call_Alternative
9769 (N : Node_Id; Val : Node_Id); -- Node1
9771 procedure Set_Entry_Call_Statement
9772 (N : Node_Id; Val : Node_Id); -- Node1
9774 procedure Set_Entry_Direct_Name
9775 (N : Node_Id; Val : Node_Id); -- Node1
9777 procedure Set_Entry_Index
9778 (N : Node_Id; Val : Node_Id); -- Node5
9780 procedure Set_Entry_Index_Specification
9781 (N : Node_Id; Val : Node_Id); -- Node4
9784 (N : Node_Id; Val : Node_Id); -- Node5
9786 procedure Set_Exception_Choices
9787 (N : Node_Id; Val : List_Id); -- List4
9789 procedure Set_Exception_Handlers
9790 (N : Node_Id; Val : List_Id); -- List5
9792 procedure Set_Exception_Junk
9793 (N : Node_Id; Val : Boolean := True); -- Flag8
9795 procedure Set_Exception_Label
9796 (N : Node_Id; Val : Node_Id); -- Node5
9798 procedure Set_Expansion_Delayed
9799 (N : Node_Id; Val : Boolean := True); -- Flag11
9801 procedure Set_Explicit_Actual_Parameter
9802 (N : Node_Id; Val : Node_Id); -- Node3
9804 procedure Set_Explicit_Generic_Actual_Parameter
9805 (N : Node_Id; Val : Node_Id); -- Node1
9807 procedure Set_Expression
9808 (N : Node_Id; Val : Node_Id); -- Node3
9810 procedure Set_Expressions
9811 (N : Node_Id; Val : List_Id); -- List1
9813 procedure Set_First_Bit
9814 (N : Node_Id; Val : Node_Id); -- Node3
9816 procedure Set_First_Inlined_Subprogram
9817 (N : Node_Id; Val : Entity_Id); -- Node3
9819 procedure Set_First_Name
9820 (N : Node_Id; Val : Boolean := True); -- Flag5
9822 procedure Set_First_Named_Actual
9823 (N : Node_Id; Val : Node_Id); -- Node4
9825 procedure Set_First_Real_Statement
9826 (N : Node_Id; Val : Node_Id); -- Node2
9828 procedure Set_First_Subtype_Link
9829 (N : Node_Id; Val : Entity_Id); -- Node5
9831 procedure Set_Float_Truncate
9832 (N : Node_Id; Val : Boolean := True); -- Flag11
9834 procedure Set_Formal_Type_Definition
9835 (N : Node_Id; Val : Node_Id); -- Node3
9837 procedure Set_Forwards_OK
9838 (N : Node_Id; Val : Boolean := True); -- Flag5
9840 procedure Set_From_At_Mod
9841 (N : Node_Id; Val : Boolean := True); -- Flag4
9843 procedure Set_From_Aspect_Specification
9844 (N : Node_Id; Val : Boolean := True); -- Flag13
9846 procedure Set_From_At_End
9847 (N : Node_Id; Val : Boolean := True); -- Flag4
9849 procedure Set_From_Default
9850 (N : Node_Id; Val : Boolean := True); -- Flag6
9852 procedure Set_Generic_Associations
9853 (N : Node_Id; Val : List_Id); -- List3
9855 procedure Set_Generic_Formal_Declarations
9856 (N : Node_Id; Val : List_Id); -- List2
9858 procedure Set_Generic_Parent
9859 (N : Node_Id; Val : Node_Id); -- Node5
9861 procedure Set_Generic_Parent_Type
9862 (N : Node_Id; Val : Node_Id); -- Node4
9864 procedure Set_Handled_Statement_Sequence
9865 (N : Node_Id; Val : Node_Id); -- Node4
9867 procedure Set_Handler_List_Entry
9868 (N : Node_Id; Val : Node_Id); -- Node2
9870 procedure Set_Has_Created_Identifier
9871 (N : Node_Id; Val : Boolean := True); -- Flag15
9873 procedure Set_Has_Dereference_Action
9874 (N : Node_Id; Val : Boolean := True); -- Flag13
9876 procedure Set_Has_Dynamic_Length_Check
9877 (N : Node_Id; Val : Boolean := True); -- Flag10
9879 procedure Set_Has_Dynamic_Range_Check
9880 (N : Node_Id; Val : Boolean := True); -- Flag12
9882 procedure Set_Has_Init_Expression
9883 (N : Node_Id; Val : Boolean := True); -- Flag14
9885 procedure Set_Has_Local_Raise
9886 (N : Node_Id; Val : Boolean := True); -- Flag8
9888 procedure Set_Has_No_Elaboration_Code
9889 (N : Node_Id; Val : Boolean := True); -- Flag17
9891 procedure Set_Has_Pragma_Suppress_All
9892 (N : Node_Id; Val : Boolean := True); -- Flag14
9894 procedure Set_Has_Private_View
9895 (N : Node_Id; Val : Boolean := True); -- Flag11
9897 procedure Set_Has_Relative_Deadline_Pragma
9898 (N : Node_Id; Val : Boolean := True); -- Flag9
9900 procedure Set_Has_Self_Reference
9901 (N : Node_Id; Val : Boolean := True); -- Flag13
9903 procedure Set_Has_SP_Choice
9904 (N : Node_Id; Val : Boolean := True); -- Flag15
9906 procedure Set_Has_Storage_Size_Pragma
9907 (N : Node_Id; Val : Boolean := True); -- Flag5
9909 procedure Set_Has_Wide_Character
9910 (N : Node_Id; Val : Boolean := True); -- Flag11
9912 procedure Set_Has_Wide_Wide_Character
9913 (N : Node_Id; Val : Boolean := True); -- Flag13
9915 procedure Set_Header_Size_Added
9916 (N : Node_Id; Val : Boolean := True); -- Flag11
9918 procedure Set_Hidden_By_Use_Clause
9919 (N : Node_Id; Val : Elist_Id); -- Elist4
9921 procedure Set_High_Bound
9922 (N : Node_Id; Val : Node_Id); -- Node2
9924 procedure Set_Identifier
9925 (N : Node_Id; Val : Node_Id); -- Node1
9927 procedure Set_Interface_List
9928 (N : Node_Id; Val : List_Id); -- List2
9930 procedure Set_Interface_Present
9931 (N : Node_Id; Val : Boolean := True); -- Flag16
9933 procedure Set_Implicit_With
9934 (N : Node_Id; Val : Boolean := True); -- Flag16
9936 procedure Set_Implicit_With_From_Instantiation
9937 (N : Node_Id; Val : Boolean := True); -- Flag12
9939 procedure Set_Import_Interface_Present
9940 (N : Node_Id; Val : Boolean := True); -- Flag16
9942 procedure Set_In_Assertion_Expression
9943 (N : Node_Id; Val : Boolean := True); -- Flag4
9945 procedure Set_In_Present
9946 (N : Node_Id; Val : Boolean := True); -- Flag15
9948 procedure Set_Includes_Infinities
9949 (N : Node_Id; Val : Boolean := True); -- Flag11
9951 procedure Set_Inherited_Discriminant
9952 (N : Node_Id; Val : Boolean := True); -- Flag13
9954 procedure Set_Instance_Spec
9955 (N : Node_Id; Val : Node_Id); -- Node5
9957 procedure Set_Intval
9958 (N : Node_Id; Val : Uint); -- Uint3
9960 procedure Set_Is_Accessibility_Actual
9961 (N : Node_Id; Val : Boolean := True); -- Flag13
9963 procedure Set_Is_Asynchronous_Call_Block
9964 (N : Node_Id; Val : Boolean := True); -- Flag7
9966 procedure Set_Is_Boolean_Aspect
9967 (N : Node_Id; Val : Boolean := True); -- Flag16
9969 procedure Set_Is_Checked
9970 (N : Node_Id; Val : Boolean := True); -- Flag11
9972 procedure Set_Is_Component_Left_Opnd
9973 (N : Node_Id; Val : Boolean := True); -- Flag13
9975 procedure Set_Is_Component_Right_Opnd
9976 (N : Node_Id; Val : Boolean := True); -- Flag14
9978 procedure Set_Is_Controlling_Actual
9979 (N : Node_Id; Val : Boolean := True); -- Flag16
9981 procedure Set_Is_Delayed_Aspect
9982 (N : Node_Id; Val : Boolean := True); -- Flag14
9984 procedure Set_Is_Disabled
9985 (N : Node_Id; Val : Boolean := True); -- Flag15
9987 procedure Set_Is_Ignored
9988 (N : Node_Id; Val : Boolean := True); -- Flag9
9990 procedure Set_Is_Dynamic_Coextension
9991 (N : Node_Id; Val : Boolean := True); -- Flag18
9993 procedure Set_Is_Elsif
9994 (N : Node_Id; Val : Boolean := True); -- Flag13
9996 procedure Set_Is_Entry_Barrier_Function
9997 (N : Node_Id; Val : Boolean := True); -- Flag8
9999 procedure Set_Is_Expanded_Build_In_Place_Call
10000 (N : Node_Id; Val : Boolean := True); -- Flag11
10002 procedure Set_Is_Finalization_Wrapper
10003 (N : Node_Id; Val : Boolean := True); -- Flag9
10005 procedure Set_Is_Folded_In_Parser
10006 (N : Node_Id; Val : Boolean := True); -- Flag4
10008 procedure Set_Is_In_Discriminant_Check
10009 (N : Node_Id; Val : Boolean := True); -- Flag11
10011 procedure Set_Is_Machine_Number
10012 (N : Node_Id; Val : Boolean := True); -- Flag11
10014 procedure Set_Is_Null_Loop
10015 (N : Node_Id; Val : Boolean := True); -- Flag16
10017 procedure Set_Is_Overloaded
10018 (N : Node_Id; Val : Boolean := True); -- Flag5
10020 procedure Set_Is_Power_Of_2_For_Shift
10021 (N : Node_Id; Val : Boolean := True); -- Flag13
10023 procedure Set_Is_Prefixed_Call
10024 (N : Node_Id; Val : Boolean := True); -- Flag17
10026 procedure Set_Is_Protected_Subprogram_Body
10027 (N : Node_Id; Val : Boolean := True); -- Flag7
10029 procedure Set_Is_Static_Coextension
10030 (N : Node_Id; Val : Boolean := True); -- Flag14
10032 procedure Set_Is_Static_Expression
10033 (N : Node_Id; Val : Boolean := True); -- Flag6
10035 procedure Set_Is_Subprogram_Descriptor
10036 (N : Node_Id; Val : Boolean := True); -- Flag16
10038 procedure Set_Is_Task_Allocation_Block
10039 (N : Node_Id; Val : Boolean := True); -- Flag6
10041 procedure Set_Is_Task_Master
10042 (N : Node_Id; Val : Boolean := True); -- Flag5
10044 procedure Set_Iteration_Scheme
10045 (N : Node_Id; Val : Node_Id); -- Node2
10047 procedure Set_Iterator_Specification
10048 (N : Node_Id; Val : Node_Id); -- Node2
10050 procedure Set_Itype
10051 (N : Node_Id; Val : Entity_Id); -- Node1
10053 procedure Set_Kill_Range_Check
10054 (N : Node_Id; Val : Boolean := True); -- Flag11
10056 procedure Set_Last_Bit
10057 (N : Node_Id; Val : Node_Id); -- Node4
10059 procedure Set_Last_Name
10060 (N : Node_Id; Val : Boolean := True); -- Flag6
10062 procedure Set_Library_Unit
10063 (N : Node_Id; Val : Node_Id); -- Node4
10065 procedure Set_Label_Construct
10066 (N : Node_Id; Val : Node_Id); -- Node2
10068 procedure Set_Left_Opnd
10069 (N : Node_Id; Val : Node_Id); -- Node2
10071 procedure Set_Limited_View_Installed
10072 (N : Node_Id; Val : Boolean := True); -- Flag18
10074 procedure Set_Limited_Present
10075 (N : Node_Id; Val : Boolean := True); -- Flag17
10077 procedure Set_Literals
10078 (N : Node_Id; Val : List_Id); -- List1
10080 procedure Set_Local_Raise_Not_OK
10081 (N : Node_Id; Val : Boolean := True); -- Flag7
10083 procedure Set_Local_Raise_Statements
10084 (N : Node_Id; Val : Elist_Id); -- Elist1
10086 procedure Set_Loop_Actions
10087 (N : Node_Id; Val : List_Id); -- List2
10089 procedure Set_Loop_Parameter_Specification
10090 (N : Node_Id; Val : Node_Id); -- Node4
10092 procedure Set_Low_Bound
10093 (N : Node_Id; Val : Node_Id); -- Node1
10095 procedure Set_Mod_Clause
10096 (N : Node_Id; Val : Node_Id); -- Node2
10098 procedure Set_More_Ids
10099 (N : Node_Id; Val : Boolean := True); -- Flag5
10101 procedure Set_Must_Be_Byte_Aligned
10102 (N : Node_Id; Val : Boolean := True); -- Flag14
10104 procedure Set_Must_Not_Freeze
10105 (N : Node_Id; Val : Boolean := True); -- Flag8
10107 procedure Set_Must_Not_Override
10108 (N : Node_Id; Val : Boolean := True); -- Flag15
10110 procedure Set_Must_Override
10111 (N : Node_Id; Val : Boolean := True); -- Flag14
10114 (N : Node_Id; Val : Node_Id); -- Node2
10116 procedure Set_Names
10117 (N : Node_Id; Val : List_Id); -- List2
10119 procedure Set_Next_Entity
10120 (N : Node_Id; Val : Node_Id); -- Node2
10122 procedure Set_Next_Exit_Statement
10123 (N : Node_Id; Val : Node_Id); -- Node3
10125 procedure Set_Next_Implicit_With
10126 (N : Node_Id; Val : Node_Id); -- Node3
10128 procedure Set_Next_Named_Actual
10129 (N : Node_Id; Val : Node_Id); -- Node4
10131 procedure Set_Next_Pragma
10132 (N : Node_Id; Val : Node_Id); -- Node1
10134 procedure Set_Next_Rep_Item
10135 (N : Node_Id; Val : Node_Id); -- Node5
10137 procedure Set_Next_Use_Clause
10138 (N : Node_Id; Val : Node_Id); -- Node3
10140 procedure Set_No_Ctrl_Actions
10141 (N : Node_Id; Val : Boolean := True); -- Flag7
10143 procedure Set_No_Elaboration_Check
10144 (N : Node_Id; Val : Boolean := True); -- Flag14
10146 procedure Set_No_Entities_Ref_In_Spec
10147 (N : Node_Id; Val : Boolean := True); -- Flag8
10149 procedure Set_No_Initialization
10150 (N : Node_Id; Val : Boolean := True); -- Flag13
10152 procedure Set_No_Minimize_Eliminate
10153 (N : Node_Id; Val : Boolean := True); -- Flag17
10155 procedure Set_No_Truncation
10156 (N : Node_Id; Val : Boolean := True); -- Flag17
10158 procedure Set_Null_Present
10159 (N : Node_Id; Val : Boolean := True); -- Flag13
10161 procedure Set_Null_Exclusion_Present
10162 (N : Node_Id; Val : Boolean := True); -- Flag11
10164 procedure Set_Null_Exclusion_In_Return_Present
10165 (N : Node_Id; Val : Boolean := True); -- Flag14
10167 procedure Set_Null_Record_Present
10168 (N : Node_Id; Val : Boolean := True); -- Flag17
10170 procedure Set_Object_Definition
10171 (N : Node_Id; Val : Node_Id); -- Node4
10173 procedure Set_Of_Present
10174 (N : Node_Id; Val : Boolean := True); -- Flag16
10176 procedure Set_Original_Discriminant
10177 (N : Node_Id; Val : Node_Id); -- Node2
10179 procedure Set_Original_Entity
10180 (N : Node_Id; Val : Entity_Id); -- Node2
10182 procedure Set_Others_Discrete_Choices
10183 (N : Node_Id; Val : List_Id); -- List1
10185 procedure Set_Out_Present
10186 (N : Node_Id; Val : Boolean := True); -- Flag17
10188 procedure Set_Parameter_Associations
10189 (N : Node_Id; Val : List_Id); -- List3
10191 procedure Set_Parameter_List_Truncated
10192 (N : Node_Id; Val : Boolean := True); -- Flag17
10194 procedure Set_Parameter_Specifications
10195 (N : Node_Id; Val : List_Id); -- List3
10197 procedure Set_Parameter_Type
10198 (N : Node_Id; Val : Node_Id); -- Node2
10200 procedure Set_Parent_Spec
10201 (N : Node_Id; Val : Node_Id); -- Node4
10203 procedure Set_Position
10204 (N : Node_Id; Val : Node_Id); -- Node2
10206 procedure Set_Pragma_Argument_Associations
10207 (N : Node_Id; Val : List_Id); -- List2
10209 procedure Set_Pragma_Identifier
10210 (N : Node_Id; Val : Node_Id); -- Node4
10212 procedure Set_Pragmas_After
10213 (N : Node_Id; Val : List_Id); -- List5
10215 procedure Set_Pragmas_Before
10216 (N : Node_Id; Val : List_Id); -- List4
10218 procedure Set_Pre_Post_Conditions
10219 (N : Node_Id; Val : Node_Id); -- Node1
10221 procedure Set_Prefix
10222 (N : Node_Id; Val : Node_Id); -- Node3
10224 procedure Set_Premature_Use
10225 (N : Node_Id; Val : Node_Id); -- Node5
10227 procedure Set_Present_Expr
10228 (N : Node_Id; Val : Uint); -- Uint3
10230 procedure Set_Prev_Ids
10231 (N : Node_Id; Val : Boolean := True); -- Flag6
10233 procedure Set_Print_In_Hex
10234 (N : Node_Id; Val : Boolean := True); -- Flag13
10236 procedure Set_Private_Declarations
10237 (N : Node_Id; Val : List_Id); -- List3
10239 procedure Set_Private_Present
10240 (N : Node_Id; Val : Boolean := True); -- Flag15
10242 procedure Set_Procedure_To_Call
10243 (N : Node_Id; Val : Node_Id); -- Node2
10245 procedure Set_Proper_Body
10246 (N : Node_Id; Val : Node_Id); -- Node1
10248 procedure Set_Protected_Definition
10249 (N : Node_Id; Val : Node_Id); -- Node3
10251 procedure Set_Protected_Present
10252 (N : Node_Id; Val : Boolean := True); -- Flag6
10254 procedure Set_Raises_Constraint_Error
10255 (N : Node_Id; Val : Boolean := True); -- Flag7
10257 procedure Set_Range_Constraint
10258 (N : Node_Id; Val : Node_Id); -- Node4
10260 procedure Set_Range_Expression
10261 (N : Node_Id; Val : Node_Id); -- Node4
10263 procedure Set_Real_Range_Specification
10264 (N : Node_Id; Val : Node_Id); -- Node4
10266 procedure Set_Realval
10267 (N : Node_Id; Val : Ureal); -- Ureal3
10269 procedure Set_Reason
10270 (N : Node_Id; Val : Uint); -- Uint3
10272 procedure Set_Record_Extension_Part
10273 (N : Node_Id; Val : Node_Id); -- Node3
10275 procedure Set_Redundant_Use
10276 (N : Node_Id; Val : Boolean := True); -- Flag13
10278 procedure Set_Renaming_Exception
10279 (N : Node_Id; Val : Node_Id); -- Node2
10281 procedure Set_Result_Definition
10282 (N : Node_Id; Val : Node_Id); -- Node4
10284 procedure Set_Return_Object_Declarations
10285 (N : Node_Id; Val : List_Id); -- List3
10287 procedure Set_Return_Statement_Entity
10288 (N : Node_Id; Val : Node_Id); -- Node5
10290 procedure Set_Reverse_Present
10291 (N : Node_Id; Val : Boolean := True); -- Flag15
10293 procedure Set_Right_Opnd
10294 (N : Node_Id; Val : Node_Id); -- Node3
10296 procedure Set_Rounded_Result
10297 (N : Node_Id; Val : Boolean := True); -- Flag18
10299 procedure Set_SCIL_Controlling_Tag
10300 (N : Node_Id; Val : Node_Id); -- Node5
10302 procedure Set_SCIL_Entity
10303 (N : Node_Id; Val : Node_Id); -- Node4
10305 procedure Set_SCIL_Tag_Value
10306 (N : Node_Id; Val : Node_Id); -- Node5
10308 procedure Set_SCIL_Target_Prim
10309 (N : Node_Id; Val : Node_Id); -- Node2
10311 procedure Set_Scope
10312 (N : Node_Id; Val : Node_Id); -- Node3
10314 procedure Set_Select_Alternatives
10315 (N : Node_Id; Val : List_Id); -- List1
10317 procedure Set_Selector_Name
10318 (N : Node_Id; Val : Node_Id); -- Node2
10320 procedure Set_Selector_Names
10321 (N : Node_Id; Val : List_Id); -- List1
10323 procedure Set_Shift_Count_OK
10324 (N : Node_Id; Val : Boolean := True); -- Flag4
10326 procedure Set_Source_Type
10327 (N : Node_Id; Val : Entity_Id); -- Node1
10329 procedure Set_Specification
10330 (N : Node_Id; Val : Node_Id); -- Node1
10332 procedure Set_Split_PPC
10333 (N : Node_Id; Val : Boolean); -- Flag17
10335 procedure Set_Statements
10336 (N : Node_Id; Val : List_Id); -- List3
10338 procedure Set_Storage_Pool
10339 (N : Node_Id; Val : Node_Id); -- Node1
10341 procedure Set_Subpool_Handle_Name
10342 (N : Node_Id; Val : Node_Id); -- Node4
10344 procedure Set_Strval
10345 (N : Node_Id; Val : String_Id); -- Str3
10347 procedure Set_Subtype_Indication
10348 (N : Node_Id; Val : Node_Id); -- Node5
10350 procedure Set_Subtype_Mark
10351 (N : Node_Id; Val : Node_Id); -- Node4
10353 procedure Set_Subtype_Marks
10354 (N : Node_Id; Val : List_Id); -- List2
10356 procedure Set_Suppress_Assignment_Checks
10357 (N : Node_Id; Val : Boolean := True); -- Flag18
10359 procedure Set_Suppress_Loop_Warnings
10360 (N : Node_Id; Val : Boolean := True); -- Flag17
10362 procedure Set_Synchronized_Present
10363 (N : Node_Id; Val : Boolean := True); -- Flag7
10365 procedure Set_Tagged_Present
10366 (N : Node_Id; Val : Boolean := True); -- Flag15
10368 procedure Set_Target_Type
10369 (N : Node_Id; Val : Entity_Id); -- Node2
10371 procedure Set_Task_Definition
10372 (N : Node_Id; Val : Node_Id); -- Node3
10374 procedure Set_Task_Present
10375 (N : Node_Id; Val : Boolean := True); -- Flag5
10377 procedure Set_Then_Actions
10378 (N : Node_Id; Val : List_Id); -- List2
10380 procedure Set_Then_Statements
10381 (N : Node_Id; Val : List_Id); -- List2
10383 procedure Set_Treat_Fixed_As_Integer
10384 (N : Node_Id; Val : Boolean := True); -- Flag14
10386 procedure Set_Triggering_Alternative
10387 (N : Node_Id; Val : Node_Id); -- Node1
10389 procedure Set_Triggering_Statement
10390 (N : Node_Id; Val : Node_Id); -- Node1
10392 procedure Set_TSS_Elist
10393 (N : Node_Id; Val : Elist_Id); -- Elist3
10395 procedure Set_Type_Definition
10396 (N : Node_Id; Val : Node_Id); -- Node3
10399 (N : Node_Id; Val : Node_Id); -- Node2
10401 procedure Set_Unknown_Discriminants_Present
10402 (N : Node_Id; Val : Boolean := True); -- Flag13
10404 procedure Set_Unreferenced_In_Spec
10405 (N : Node_Id; Val : Boolean := True); -- Flag7
10407 procedure Set_Variant_Part
10408 (N : Node_Id; Val : Node_Id); -- Node4
10410 procedure Set_Variants
10411 (N : Node_Id; Val : List_Id); -- List1
10413 procedure Set_Visible_Declarations
10414 (N : Node_Id; Val : List_Id); -- List2
10416 procedure Set_Used_Operations
10417 (N : Node_Id; Val : Elist_Id); -- Elist5
10419 procedure Set_Was_Originally_Stub
10420 (N : Node_Id; Val : Boolean := True); -- Flag13
10422 procedure Set_Withed_Body
10423 (N : Node_Id; Val : Node_Id); -- Node1
10425 -------------------------
10426 -- Iterator Procedures --
10427 -------------------------
10429 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10431 procedure Next_Entity (N : in out Node_Id);
10432 procedure Next_Named_Actual (N : in out Node_Id);
10433 procedure Next_Rep_Item (N : in out Node_Id);
10434 procedure Next_Use_Clause (N : in out Node_Id);
10436 -------------------------------------------
10437 -- Miscellaneous Tree Access Subprograms --
10438 -------------------------------------------
10440 function End_Location (N : Node_Id) return Source_Ptr;
10441 -- N is an N_If_Statement or N_Case_Statement node, and this function
10442 -- returns the location of the IF token in the END IF sequence by
10443 -- translating the value of the End_Span field.
10445 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10446 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10447 -- the End_Span field to correspond to the given value S. In other words,
10448 -- End_Span is set to the difference between S and Sloc (N), the starting
10451 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10452 -- Given an argument to a pragma Arg, this function returns the expression
10453 -- for the argument. This is Arg itself, or, in the case where Arg is a
10454 -- pragma argument association node, the expression from this node.
10456 --------------------------------
10457 -- Node_Kind Membership Tests --
10458 --------------------------------
10460 -- The following functions allow a convenient notation for testing whether
10461 -- a Node_Kind value matches any one of a list of possible values. In each
10462 -- case True is returned if the given T argument is equal to any of the V
10463 -- arguments. Note that there is a similar set of functions defined in
10464 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10469 V2 : Node_Kind) return Boolean;
10475 V3 : Node_Kind) return Boolean;
10482 V4 : Node_Kind) return Boolean;
10490 V5 : Node_Kind) return Boolean;
10499 V6 : Node_Kind) return Boolean;
10509 V7 : Node_Kind) return Boolean;
10520 V8 : Node_Kind) return Boolean;
10532 V9 : Node_Kind) return Boolean;
10534 pragma Inline (Nkind_In);
10535 -- Inline all above functions
10537 -----------------------
10538 -- Utility Functions --
10539 -----------------------
10541 function Pragma_Name (N : Node_Id) return Name_Id;
10542 pragma Inline (Pragma_Name);
10543 -- Convenient function to obtain Chars field of Pragma_Identifier
10545 -----------------------------
10546 -- Syntactic Parent Tables --
10547 -----------------------------
10549 -- These tables show for each node, and for each of the five fields,
10550 -- whether the corresponding field is syntactic (True) or semantic (False).
10551 -- Unused entries are also set to False.
10553 subtype Field_Num is Natural range 1 .. 5;
10555 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10557 -- Following entries can be built automatically from the sinfo sources
10558 -- using the makeisf utility (currently this program is in spitbol).
10561 (1 => True, -- Chars (Name1)
10562 2 => False, -- Original_Discriminant (Node2-Sem)
10563 3 => False, -- unused
10564 4 => False, -- Entity (Node4-Sem)
10565 5 => False), -- Etype (Node5-Sem)
10567 N_Integer_Literal =>
10568 (1 => False, -- unused
10569 2 => False, -- Original_Entity (Node2-Sem)
10570 3 => True, -- Intval (Uint3)
10571 4 => False, -- unused
10572 5 => False), -- Etype (Node5-Sem)
10575 (1 => False, -- unused
10576 2 => False, -- Original_Entity (Node2-Sem)
10577 3 => True, -- Realval (Ureal3)
10578 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10579 5 => False), -- Etype (Node5-Sem)
10581 N_Character_Literal =>
10582 (1 => True, -- Chars (Name1)
10583 2 => True, -- Char_Literal_Value (Uint2)
10584 3 => False, -- unused
10585 4 => False, -- Entity (Node4-Sem)
10586 5 => False), -- Etype (Node5-Sem)
10588 N_String_Literal =>
10589 (1 => False, -- unused
10590 2 => False, -- unused
10591 3 => True, -- Strval (Str3)
10592 4 => False, -- unused
10593 5 => False), -- Etype (Node5-Sem)
10596 (1 => False, -- Next_Pragma (Node1-Sem)
10597 2 => True, -- Pragma_Argument_Associations (List2)
10598 3 => False, -- unused
10599 4 => True, -- Pragma_Identifier (Node4)
10600 5 => False), -- Next_Rep_Item (Node5-Sem)
10602 N_Pragma_Argument_Association =>
10603 (1 => True, -- Chars (Name1)
10604 2 => False, -- unused
10605 3 => True, -- Expression (Node3)
10606 4 => False, -- unused
10607 5 => False), -- unused
10609 N_Defining_Identifier =>
10610 (1 => True, -- Chars (Name1)
10611 2 => False, -- Next_Entity (Node2-Sem)
10612 3 => False, -- Scope (Node3-Sem)
10613 4 => False, -- unused
10614 5 => False), -- Etype (Node5-Sem)
10616 N_Full_Type_Declaration =>
10617 (1 => True, -- Defining_Identifier (Node1)
10618 2 => False, -- unused
10619 3 => True, -- Type_Definition (Node3)
10620 4 => True, -- Discriminant_Specifications (List4)
10621 5 => False), -- unused
10623 N_Subtype_Declaration =>
10624 (1 => True, -- Defining_Identifier (Node1)
10625 2 => False, -- unused
10626 3 => False, -- unused
10627 4 => False, -- Generic_Parent_Type (Node4-Sem)
10628 5 => True), -- Subtype_Indication (Node5)
10630 N_Subtype_Indication =>
10631 (1 => False, -- unused
10632 2 => False, -- unused
10633 3 => True, -- Constraint (Node3)
10634 4 => True, -- Subtype_Mark (Node4)
10635 5 => False), -- Etype (Node5-Sem)
10637 N_Object_Declaration =>
10638 (1 => True, -- Defining_Identifier (Node1)
10639 2 => False, -- Handler_List_Entry (Node2-Sem)
10640 3 => True, -- Expression (Node3)
10641 4 => True, -- Object_Definition (Node4)
10642 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10644 N_Number_Declaration =>
10645 (1 => True, -- Defining_Identifier (Node1)
10646 2 => False, -- unused
10647 3 => True, -- Expression (Node3)
10648 4 => False, -- unused
10649 5 => False), -- unused
10651 N_Derived_Type_Definition =>
10652 (1 => False, -- unused
10653 2 => True, -- Interface_List (List2)
10654 3 => True, -- Record_Extension_Part (Node3)
10655 4 => False, -- unused
10656 5 => True), -- Subtype_Indication (Node5)
10658 N_Range_Constraint =>
10659 (1 => False, -- unused
10660 2 => False, -- unused
10661 3 => False, -- unused
10662 4 => True, -- Range_Expression (Node4)
10663 5 => False), -- unused
10666 (1 => True, -- Low_Bound (Node1)
10667 2 => True, -- High_Bound (Node2)
10668 3 => False, -- unused
10669 4 => False, -- unused
10670 5 => False), -- Etype (Node5-Sem)
10672 N_Enumeration_Type_Definition =>
10673 (1 => True, -- Literals (List1)
10674 2 => False, -- unused
10675 3 => False, -- unused
10676 4 => True, -- End_Label (Node4)
10677 5 => False), -- unused
10679 N_Defining_Character_Literal =>
10680 (1 => True, -- Chars (Name1)
10681 2 => False, -- Next_Entity (Node2-Sem)
10682 3 => False, -- Scope (Node3-Sem)
10683 4 => False, -- unused
10684 5 => False), -- Etype (Node5-Sem)
10686 N_Signed_Integer_Type_Definition =>
10687 (1 => True, -- Low_Bound (Node1)
10688 2 => True, -- High_Bound (Node2)
10689 3 => False, -- unused
10690 4 => False, -- unused
10691 5 => False), -- unused
10693 N_Modular_Type_Definition =>
10694 (1 => False, -- unused
10695 2 => False, -- unused
10696 3 => True, -- Expression (Node3)
10697 4 => False, -- unused
10698 5 => False), -- unused
10700 N_Floating_Point_Definition =>
10701 (1 => False, -- unused
10702 2 => True, -- Digits_Expression (Node2)
10703 3 => False, -- unused
10704 4 => True, -- Real_Range_Specification (Node4)
10705 5 => False), -- unused
10707 N_Real_Range_Specification =>
10708 (1 => True, -- Low_Bound (Node1)
10709 2 => True, -- High_Bound (Node2)
10710 3 => False, -- unused
10711 4 => False, -- unused
10712 5 => False), -- unused
10714 N_Ordinary_Fixed_Point_Definition =>
10715 (1 => False, -- unused
10716 2 => False, -- unused
10717 3 => True, -- Delta_Expression (Node3)
10718 4 => True, -- Real_Range_Specification (Node4)
10719 5 => False), -- unused
10721 N_Decimal_Fixed_Point_Definition =>
10722 (1 => False, -- unused
10723 2 => True, -- Digits_Expression (Node2)
10724 3 => True, -- Delta_Expression (Node3)
10725 4 => True, -- Real_Range_Specification (Node4)
10726 5 => False), -- unused
10728 N_Digits_Constraint =>
10729 (1 => False, -- unused
10730 2 => True, -- Digits_Expression (Node2)
10731 3 => False, -- unused
10732 4 => True, -- Range_Constraint (Node4)
10733 5 => False), -- unused
10735 N_Unconstrained_Array_Definition =>
10736 (1 => False, -- unused
10737 2 => True, -- Subtype_Marks (List2)
10738 3 => False, -- unused
10739 4 => True, -- Component_Definition (Node4)
10740 5 => False), -- unused
10742 N_Constrained_Array_Definition =>
10743 (1 => False, -- unused
10744 2 => True, -- Discrete_Subtype_Definitions (List2)
10745 3 => False, -- unused
10746 4 => True, -- Component_Definition (Node4)
10747 5 => False), -- unused
10749 N_Component_Definition =>
10750 (1 => False, -- unused
10751 2 => False, -- unused
10752 3 => True, -- Access_Definition (Node3)
10753 4 => False, -- unused
10754 5 => True), -- Subtype_Indication (Node5)
10756 N_Discriminant_Specification =>
10757 (1 => True, -- Defining_Identifier (Node1)
10758 2 => False, -- unused
10759 3 => True, -- Expression (Node3)
10760 4 => False, -- unused
10761 5 => True), -- Discriminant_Type (Node5)
10763 N_Index_Or_Discriminant_Constraint =>
10764 (1 => True, -- Constraints (List1)
10765 2 => False, -- unused
10766 3 => False, -- unused
10767 4 => False, -- unused
10768 5 => False), -- unused
10770 N_Discriminant_Association =>
10771 (1 => True, -- Selector_Names (List1)
10772 2 => False, -- unused
10773 3 => True, -- Expression (Node3)
10774 4 => False, -- unused
10775 5 => False), -- unused
10777 N_Record_Definition =>
10778 (1 => True, -- Component_List (Node1)
10779 2 => True, -- Interface_List (List2)
10780 3 => False, -- unused
10781 4 => True, -- End_Label (Node4)
10782 5 => False), -- unused
10784 N_Component_List =>
10785 (1 => False, -- unused
10786 2 => False, -- unused
10787 3 => True, -- Component_Items (List3)
10788 4 => True, -- Variant_Part (Node4)
10789 5 => False), -- unused
10791 N_Component_Declaration =>
10792 (1 => True, -- Defining_Identifier (Node1)
10793 2 => False, -- unused
10794 3 => True, -- Expression (Node3)
10795 4 => True, -- Component_Definition (Node4)
10796 5 => False), -- unused
10799 (1 => True, -- Variants (List1)
10800 2 => True, -- Name (Node2)
10801 3 => False, -- unused
10802 4 => False, -- unused
10803 5 => False), -- unused
10806 (1 => True, -- Component_List (Node1)
10807 2 => False, -- Enclosing_Variant (Node2-Sem)
10808 3 => False, -- Present_Expr (Uint3-Sem)
10809 4 => True, -- Discrete_Choices (List4)
10810 5 => False), -- Dcheck_Function (Node5-Sem)
10813 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10814 2 => False, -- unused
10815 3 => False, -- unused
10816 4 => False, -- unused
10817 5 => False), -- unused
10819 N_Access_To_Object_Definition =>
10820 (1 => False, -- unused
10821 2 => False, -- unused
10822 3 => False, -- unused
10823 4 => False, -- unused
10824 5 => True), -- Subtype_Indication (Node5)
10826 N_Access_Function_Definition =>
10827 (1 => False, -- unused
10828 2 => False, -- unused
10829 3 => True, -- Parameter_Specifications (List3)
10830 4 => True, -- Result_Definition (Node4)
10831 5 => False), -- unused
10833 N_Access_Procedure_Definition =>
10834 (1 => False, -- unused
10835 2 => False, -- unused
10836 3 => True, -- Parameter_Specifications (List3)
10837 4 => False, -- unused
10838 5 => False), -- unused
10840 N_Access_Definition =>
10841 (1 => False, -- unused
10842 2 => False, -- unused
10843 3 => True, -- Access_To_Subprogram_Definition (Node3)
10844 4 => True, -- Subtype_Mark (Node4)
10845 5 => False), -- unused
10847 N_Incomplete_Type_Declaration =>
10848 (1 => True, -- Defining_Identifier (Node1)
10849 2 => False, -- unused
10850 3 => False, -- unused
10851 4 => True, -- Discriminant_Specifications (List4)
10852 5 => False), -- Premature_Use
10854 N_Explicit_Dereference =>
10855 (1 => False, -- unused
10856 2 => False, -- unused
10857 3 => True, -- Prefix (Node3)
10858 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10859 5 => False), -- Etype (Node5-Sem)
10861 N_Indexed_Component =>
10862 (1 => True, -- Expressions (List1)
10863 2 => False, -- unused
10864 3 => True, -- Prefix (Node3)
10865 4 => False, -- unused
10866 5 => False), -- Etype (Node5-Sem)
10869 (1 => False, -- unused
10870 2 => False, -- unused
10871 3 => True, -- Prefix (Node3)
10872 4 => True, -- Discrete_Range (Node4)
10873 5 => False), -- Etype (Node5-Sem)
10875 N_Selected_Component =>
10876 (1 => False, -- unused
10877 2 => True, -- Selector_Name (Node2)
10878 3 => True, -- Prefix (Node3)
10879 4 => False, -- unused
10880 5 => False), -- Etype (Node5-Sem)
10882 N_Attribute_Reference =>
10883 (1 => True, -- Expressions (List1)
10884 2 => True, -- Attribute_Name (Name2)
10885 3 => True, -- Prefix (Node3)
10886 4 => False, -- Entity (Node4-Sem)
10887 5 => False), -- Etype (Node5-Sem)
10890 (1 => True, -- Expressions (List1)
10891 2 => True, -- Component_Associations (List2)
10892 3 => False, -- Aggregate_Bounds (Node3-Sem)
10893 4 => False, -- unused
10894 5 => False), -- Etype (Node5-Sem)
10896 N_Component_Association =>
10897 (1 => True, -- Choices (List1)
10898 2 => False, -- Loop_Actions (List2-Sem)
10899 3 => True, -- Expression (Node3)
10900 4 => False, -- unused
10901 5 => False), -- unused
10903 N_Extension_Aggregate =>
10904 (1 => True, -- Expressions (List1)
10905 2 => True, -- Component_Associations (List2)
10906 3 => True, -- Ancestor_Part (Node3)
10907 4 => False, -- unused
10908 5 => False), -- Etype (Node5-Sem)
10911 (1 => False, -- unused
10912 2 => False, -- unused
10913 3 => False, -- unused
10914 4 => False, -- unused
10915 5 => False), -- Etype (Node5-Sem)
10918 (1 => False, -- Actions (List1-Sem)
10919 2 => True, -- Left_Opnd (Node2)
10920 3 => True, -- Right_Opnd (Node3)
10921 4 => False, -- unused
10922 5 => False), -- Etype (Node5-Sem)
10925 (1 => False, -- Actions (List1-Sem)
10926 2 => True, -- Left_Opnd (Node2)
10927 3 => True, -- Right_Opnd (Node3)
10928 4 => False, -- unused
10929 5 => False), -- Etype (Node5-Sem)
10932 (1 => False, -- unused
10933 2 => True, -- Left_Opnd (Node2)
10934 3 => True, -- Right_Opnd (Node3)
10935 4 => True, -- Alternatives (List4)
10936 5 => False), -- Etype (Node5-Sem)
10939 (1 => False, -- unused
10940 2 => True, -- Left_Opnd (Node2)
10941 3 => True, -- Right_Opnd (Node3)
10942 4 => True, -- Alternatives (List4)
10943 5 => False), -- Etype (Node5-Sem)
10946 (1 => True, -- Chars (Name1)
10947 2 => True, -- Left_Opnd (Node2)
10948 3 => True, -- Right_Opnd (Node3)
10949 4 => False, -- Entity (Node4-Sem)
10950 5 => False), -- Etype (Node5-Sem)
10953 (1 => True, -- Chars (Name1)
10954 2 => True, -- Left_Opnd (Node2)
10955 3 => True, -- Right_Opnd (Node3)
10956 4 => False, -- Entity (Node4-Sem)
10957 5 => False), -- Etype (Node5-Sem)
10960 (1 => True, -- Chars (Name1)
10961 2 => True, -- Left_Opnd (Node2)
10962 3 => True, -- Right_Opnd (Node3)
10963 4 => False, -- Entity (Node4-Sem)
10964 5 => False), -- Etype (Node5-Sem)
10967 (1 => True, -- Chars (Name1)
10968 2 => True, -- Left_Opnd (Node2)
10969 3 => True, -- Right_Opnd (Node3)
10970 4 => False, -- Entity (Node4-Sem)
10971 5 => False), -- Etype (Node5-Sem)
10974 (1 => True, -- Chars (Name1)
10975 2 => True, -- Left_Opnd (Node2)
10976 3 => True, -- Right_Opnd (Node3)
10977 4 => False, -- Entity (Node4-Sem)
10978 5 => False), -- Etype (Node5-Sem)
10981 (1 => True, -- Chars (Name1)
10982 2 => True, -- Left_Opnd (Node2)
10983 3 => True, -- Right_Opnd (Node3)
10984 4 => False, -- Entity (Node4-Sem)
10985 5 => False), -- Etype (Node5-Sem)
10988 (1 => True, -- Chars (Name1)
10989 2 => True, -- Left_Opnd (Node2)
10990 3 => True, -- Right_Opnd (Node3)
10991 4 => False, -- Entity (Node4-Sem)
10992 5 => False), -- Etype (Node5-Sem)
10995 (1 => True, -- Chars (Name1)
10996 2 => True, -- Left_Opnd (Node2)
10997 3 => True, -- Right_Opnd (Node3)
10998 4 => False, -- Entity (Node4-Sem)
10999 5 => False), -- Etype (Node5-Sem)
11002 (1 => True, -- Chars (Name1)
11003 2 => True, -- Left_Opnd (Node2)
11004 3 => True, -- Right_Opnd (Node3)
11005 4 => False, -- Entity (Node4-Sem)
11006 5 => False), -- Etype (Node5-Sem)
11009 (1 => True, -- Chars (Name1)
11010 2 => True, -- Left_Opnd (Node2)
11011 3 => True, -- Right_Opnd (Node3)
11012 4 => False, -- Entity (Node4-Sem)
11013 5 => False), -- Etype (Node5-Sem)
11016 (1 => True, -- Chars (Name1)
11017 2 => True, -- Left_Opnd (Node2)
11018 3 => True, -- Right_Opnd (Node3)
11019 4 => False, -- Entity (Node4-Sem)
11020 5 => False), -- Etype (Node5-Sem)
11023 (1 => True, -- Chars (Name1)
11024 2 => True, -- Left_Opnd (Node2)
11025 3 => True, -- Right_Opnd (Node3)
11026 4 => False, -- Entity (Node4-Sem)
11027 5 => False), -- Etype (Node5-Sem)
11030 (1 => True, -- Chars (Name1)
11031 2 => True, -- Left_Opnd (Node2)
11032 3 => True, -- Right_Opnd (Node3)
11033 4 => False, -- Entity (Node4-Sem)
11034 5 => False), -- Etype (Node5-Sem)
11037 (1 => True, -- Chars (Name1)
11038 2 => True, -- Left_Opnd (Node2)
11039 3 => True, -- Right_Opnd (Node3)
11040 4 => False, -- Entity (Node4-Sem)
11041 5 => False), -- Etype (Node5-Sem)
11044 (1 => True, -- Chars (Name1)
11045 2 => True, -- Left_Opnd (Node2)
11046 3 => True, -- Right_Opnd (Node3)
11047 4 => False, -- Entity (Node4-Sem)
11048 5 => False), -- Etype (Node5-Sem)
11051 (1 => True, -- Chars (Name1)
11052 2 => True, -- Left_Opnd (Node2)
11053 3 => True, -- Right_Opnd (Node3)
11054 4 => False, -- Entity (Node4-Sem)
11055 5 => False), -- Etype (Node5-Sem)
11058 (1 => True, -- Chars (Name1)
11059 2 => True, -- Left_Opnd (Node2)
11060 3 => True, -- Right_Opnd (Node3)
11061 4 => False, -- Entity (Node4-Sem)
11062 5 => False), -- Etype (Node5-Sem)
11065 (1 => True, -- Chars (Name1)
11066 2 => False, -- unused
11067 3 => True, -- Right_Opnd (Node3)
11068 4 => False, -- Entity (Node4-Sem)
11069 5 => False), -- Etype (Node5-Sem)
11072 (1 => True, -- Chars (Name1)
11073 2 => False, -- unused
11074 3 => True, -- Right_Opnd (Node3)
11075 4 => False, -- Entity (Node4-Sem)
11076 5 => False), -- Etype (Node5-Sem)
11079 (1 => True, -- Chars (Name1)
11080 2 => False, -- unused
11081 3 => True, -- Right_Opnd (Node3)
11082 4 => False, -- Entity (Node4-Sem)
11083 5 => False), -- Etype (Node5-Sem)
11086 (1 => True, -- Chars (Name1)
11087 2 => False, -- unused
11088 3 => True, -- Right_Opnd (Node3)
11089 4 => False, -- Entity (Node4-Sem)
11090 5 => False), -- Etype (Node5-Sem)
11092 N_Type_Conversion =>
11093 (1 => False, -- unused
11094 2 => False, -- unused
11095 3 => True, -- Expression (Node3)
11096 4 => True, -- Subtype_Mark (Node4)
11097 5 => False), -- Etype (Node5-Sem)
11099 N_Qualified_Expression =>
11100 (1 => False, -- unused
11101 2 => False, -- unused
11102 3 => True, -- Expression (Node3)
11103 4 => True, -- Subtype_Mark (Node4)
11104 5 => False), -- Etype (Node5-Sem)
11106 N_Quantified_Expression =>
11107 (1 => True, -- Condition (Node1)
11108 2 => True, -- Iterator_Specification
11109 3 => False, -- unused
11110 4 => True, -- Loop_Parameter_Specification (Node4)
11111 5 => False), -- Etype (Node5-Sem)
11114 (1 => False, -- Storage_Pool (Node1-Sem)
11115 2 => False, -- Procedure_To_Call (Node2-Sem)
11116 3 => True, -- Expression (Node3)
11117 4 => True, -- Subpool_Handle_Name (Node4)
11118 5 => False), -- Etype (Node5-Sem)
11120 N_Null_Statement =>
11121 (1 => False, -- unused
11122 2 => False, -- unused
11123 3 => False, -- unused
11124 4 => False, -- unused
11125 5 => False), -- unused
11128 (1 => True, -- Identifier (Node1)
11129 2 => False, -- unused
11130 3 => False, -- unused
11131 4 => False, -- unused
11132 5 => False), -- unused
11134 N_Assignment_Statement =>
11135 (1 => False, -- unused
11136 2 => True, -- Name (Node2)
11137 3 => True, -- Expression (Node3)
11138 4 => False, -- unused
11139 5 => False), -- unused
11142 (1 => True, -- Condition (Node1)
11143 2 => True, -- Then_Statements (List2)
11144 3 => True, -- Elsif_Parts (List3)
11145 4 => True, -- Else_Statements (List4)
11146 5 => True), -- End_Span (Uint5)
11149 (1 => True, -- Condition (Node1)
11150 2 => True, -- Then_Statements (List2)
11151 3 => False, -- Condition_Actions (List3-Sem)
11152 4 => False, -- unused
11153 5 => False), -- unused
11155 N_Case_Expression =>
11156 (1 => False, -- unused
11157 2 => False, -- unused
11158 3 => True, -- Expression (Node3)
11159 4 => True, -- Alternatives (List4)
11160 5 => False), -- unused
11162 N_Case_Expression_Alternative =>
11163 (1 => False, -- Actions (List1-Sem)
11164 2 => False, -- unused
11165 3 => True, -- Statements (List3)
11166 4 => True, -- Expression (Node4)
11167 5 => False), -- unused
11169 N_Case_Statement =>
11170 (1 => False, -- unused
11171 2 => False, -- unused
11172 3 => True, -- Expression (Node3)
11173 4 => True, -- Alternatives (List4)
11174 5 => True), -- End_Span (Uint5)
11176 N_Case_Statement_Alternative =>
11177 (1 => False, -- unused
11178 2 => False, -- unused
11179 3 => True, -- Statements (List3)
11180 4 => True, -- Discrete_Choices (List4)
11181 5 => False), -- unused
11183 N_Loop_Statement =>
11184 (1 => True, -- Identifier (Node1)
11185 2 => True, -- Iteration_Scheme (Node2)
11186 3 => True, -- Statements (List3)
11187 4 => True, -- End_Label (Node4)
11188 5 => False), -- unused
11190 N_Iteration_Scheme =>
11191 (1 => True, -- Condition (Node1)
11192 2 => True, -- Iterator_Specification (Node2)
11193 3 => False, -- Condition_Actions (List3-Sem)
11194 4 => True, -- Loop_Parameter_Specification (Node4)
11195 5 => False), -- unused
11197 N_Loop_Parameter_Specification =>
11198 (1 => True, -- Defining_Identifier (Node1)
11199 2 => False, -- unused
11200 3 => False, -- unused
11201 4 => True, -- Discrete_Subtype_Definition (Node4)
11202 5 => False), -- unused
11204 N_Iterator_Specification =>
11205 (1 => True, -- Defining_Identifier (Node1)
11206 2 => True, -- Name (Node2)
11207 3 => False, -- Unused
11208 4 => False, -- Unused
11209 5 => True), -- Subtype_Indication (Node5)
11211 N_Block_Statement =>
11212 (1 => True, -- Identifier (Node1)
11213 2 => True, -- Declarations (List2)
11214 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11215 4 => True, -- Handled_Statement_Sequence (Node4)
11216 5 => False), -- unused
11218 N_Exit_Statement =>
11219 (1 => True, -- Condition (Node1)
11220 2 => True, -- Name (Node2)
11221 3 => False, -- unused
11222 4 => False, -- unused
11223 5 => False), -- unused
11225 N_Goto_Statement =>
11226 (1 => False, -- unused
11227 2 => True, -- Name (Node2)
11228 3 => False, -- unused
11229 4 => False, -- unused
11230 5 => False), -- unused
11232 N_Subprogram_Declaration =>
11233 (1 => True, -- Specification (Node1)
11234 2 => False, -- unused
11235 3 => False, -- Body_To_Inline (Node3-Sem)
11236 4 => False, -- Parent_Spec (Node4-Sem)
11237 5 => False), -- Corresponding_Body (Node5-Sem)
11239 N_Abstract_Subprogram_Declaration =>
11240 (1 => True, -- Specification (Node1)
11241 2 => False, -- unused
11242 3 => False, -- unused
11243 4 => False, -- unused
11244 5 => False), -- unused
11246 N_Function_Specification =>
11247 (1 => True, -- Defining_Unit_Name (Node1)
11248 2 => False, -- Elaboration_Boolean (Node2-Sem)
11249 3 => True, -- Parameter_Specifications (List3)
11250 4 => True, -- Result_Definition (Node4)
11251 5 => False), -- Generic_Parent (Node5-Sem)
11253 N_Procedure_Specification =>
11254 (1 => True, -- Defining_Unit_Name (Node1)
11255 2 => False, -- Elaboration_Boolean (Node2-Sem)
11256 3 => True, -- Parameter_Specifications (List3)
11257 4 => False, -- unused
11258 5 => False), -- Generic_Parent (Node5-Sem)
11261 (1 => True, -- Identifier (Node1)
11262 2 => True, -- Name (Node2)
11263 3 => False, -- unused
11264 4 => False, -- unused
11265 5 => False), -- unused
11267 N_Defining_Program_Unit_Name =>
11268 (1 => True, -- Defining_Identifier (Node1)
11269 2 => True, -- Name (Node2)
11270 3 => False, -- unused
11271 4 => False, -- unused
11272 5 => False), -- unused
11274 N_Operator_Symbol =>
11275 (1 => True, -- Chars (Name1)
11276 2 => False, -- unused
11277 3 => True, -- Strval (Str3)
11278 4 => False, -- Entity (Node4-Sem)
11279 5 => False), -- Etype (Node5-Sem)
11281 N_Defining_Operator_Symbol =>
11282 (1 => True, -- Chars (Name1)
11283 2 => False, -- Next_Entity (Node2-Sem)
11284 3 => False, -- Scope (Node3-Sem)
11285 4 => False, -- unused
11286 5 => False), -- Etype (Node5-Sem)
11288 N_Parameter_Specification =>
11289 (1 => True, -- Defining_Identifier (Node1)
11290 2 => True, -- Parameter_Type (Node2)
11291 3 => True, -- Expression (Node3)
11292 4 => False, -- unused
11293 5 => False), -- Default_Expression (Node5-Sem)
11295 N_Subprogram_Body =>
11296 (1 => True, -- Specification (Node1)
11297 2 => True, -- Declarations (List2)
11298 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11299 4 => True, -- Handled_Statement_Sequence (Node4)
11300 5 => False), -- Corresponding_Spec (Node5-Sem)
11302 N_Expression_Function =>
11303 (1 => True, -- Specification (Node1)
11304 2 => False, -- unused
11305 3 => True, -- Expression (Node3)
11306 4 => False, -- unused
11307 5 => False), -- unused
11309 N_Procedure_Call_Statement =>
11310 (1 => False, -- Controlling_Argument (Node1-Sem)
11311 2 => True, -- Name (Node2)
11312 3 => True, -- Parameter_Associations (List3)
11313 4 => False, -- First_Named_Actual (Node4-Sem)
11314 5 => False), -- Etype (Node5-Sem)
11317 (1 => False, -- Controlling_Argument (Node1-Sem)
11318 2 => True, -- Name (Node2)
11319 3 => True, -- Parameter_Associations (List3)
11320 4 => False, -- First_Named_Actual (Node4-Sem)
11321 5 => False), -- Etype (Node5-Sem)
11323 N_Parameter_Association =>
11324 (1 => False, -- unused
11325 2 => True, -- Selector_Name (Node2)
11326 3 => True, -- Explicit_Actual_Parameter (Node3)
11327 4 => False, -- Next_Named_Actual (Node4-Sem)
11328 5 => False), -- unused
11330 N_Simple_Return_Statement =>
11331 (1 => False, -- Storage_Pool (Node1-Sem)
11332 2 => False, -- Procedure_To_Call (Node2-Sem)
11333 3 => True, -- Expression (Node3)
11334 4 => False, -- unused
11335 5 => False), -- Return_Statement_Entity (Node5-Sem)
11337 N_Extended_Return_Statement =>
11338 (1 => False, -- Storage_Pool (Node1-Sem)
11339 2 => False, -- Procedure_To_Call (Node2-Sem)
11340 3 => True, -- Return_Object_Declarations (List3)
11341 4 => True, -- Handled_Statement_Sequence (Node4)
11342 5 => False), -- Return_Statement_Entity (Node5-Sem)
11344 N_Package_Declaration =>
11345 (1 => True, -- Specification (Node1)
11346 2 => False, -- unused
11347 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11348 4 => False, -- Parent_Spec (Node4-Sem)
11349 5 => False), -- Corresponding_Body (Node5-Sem)
11351 N_Package_Specification =>
11352 (1 => True, -- Defining_Unit_Name (Node1)
11353 2 => True, -- Visible_Declarations (List2)
11354 3 => True, -- Private_Declarations (List3)
11355 4 => True, -- End_Label (Node4)
11356 5 => False), -- Generic_Parent (Node5-Sem)
11359 (1 => True, -- Defining_Unit_Name (Node1)
11360 2 => True, -- Declarations (List2)
11361 3 => False, -- unused
11362 4 => True, -- Handled_Statement_Sequence (Node4)
11363 5 => False), -- Corresponding_Spec (Node5-Sem)
11365 N_Private_Type_Declaration =>
11366 (1 => True, -- Defining_Identifier (Node1)
11367 2 => False, -- unused
11368 3 => False, -- unused
11369 4 => True, -- Discriminant_Specifications (List4)
11370 5 => False), -- unused
11372 N_Private_Extension_Declaration =>
11373 (1 => True, -- Defining_Identifier (Node1)
11374 2 => True, -- Interface_List (List2)
11375 3 => False, -- unused
11376 4 => True, -- Discriminant_Specifications (List4)
11377 5 => True), -- Subtype_Indication (Node5)
11379 N_Use_Package_Clause =>
11380 (1 => False, -- unused
11381 2 => True, -- Names (List2)
11382 3 => False, -- Next_Use_Clause (Node3-Sem)
11383 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11384 5 => False), -- unused
11386 N_Use_Type_Clause =>
11387 (1 => False, -- unused
11388 2 => True, -- Subtype_Marks (List2)
11389 3 => False, -- Next_Use_Clause (Node3-Sem)
11390 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11391 5 => False), -- unused
11393 N_Object_Renaming_Declaration =>
11394 (1 => True, -- Defining_Identifier (Node1)
11395 2 => True, -- Name (Node2)
11396 3 => True, -- Access_Definition (Node3)
11397 4 => True, -- Subtype_Mark (Node4)
11398 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11400 N_Exception_Renaming_Declaration =>
11401 (1 => True, -- Defining_Identifier (Node1)
11402 2 => True, -- Name (Node2)
11403 3 => False, -- unused
11404 4 => False, -- unused
11405 5 => False), -- unused
11407 N_Package_Renaming_Declaration =>
11408 (1 => True, -- Defining_Unit_Name (Node1)
11409 2 => True, -- Name (Node2)
11410 3 => False, -- unused
11411 4 => False, -- Parent_Spec (Node4-Sem)
11412 5 => False), -- unused
11414 N_Subprogram_Renaming_Declaration =>
11415 (1 => True, -- Specification (Node1)
11416 2 => True, -- Name (Node2)
11417 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11418 4 => False, -- Parent_Spec (Node4-Sem)
11419 5 => False), -- Corresponding_Spec (Node5-Sem)
11421 N_Generic_Package_Renaming_Declaration =>
11422 (1 => True, -- Defining_Unit_Name (Node1)
11423 2 => True, -- Name (Node2)
11424 3 => False, -- unused
11425 4 => False, -- Parent_Spec (Node4-Sem)
11426 5 => False), -- unused
11428 N_Generic_Procedure_Renaming_Declaration =>
11429 (1 => True, -- Defining_Unit_Name (Node1)
11430 2 => True, -- Name (Node2)
11431 3 => False, -- unused
11432 4 => False, -- Parent_Spec (Node4-Sem)
11433 5 => False), -- unused
11435 N_Generic_Function_Renaming_Declaration =>
11436 (1 => True, -- Defining_Unit_Name (Node1)
11437 2 => True, -- Name (Node2)
11438 3 => False, -- unused
11439 4 => False, -- Parent_Spec (Node4-Sem)
11440 5 => False), -- unused
11442 N_Task_Type_Declaration =>
11443 (1 => True, -- Defining_Identifier (Node1)
11444 2 => True, -- Interface_List (List2)
11445 3 => True, -- Task_Definition (Node3)
11446 4 => True, -- Discriminant_Specifications (List4)
11447 5 => False), -- Corresponding_Body (Node5-Sem)
11449 N_Single_Task_Declaration =>
11450 (1 => True, -- Defining_Identifier (Node1)
11451 2 => True, -- Interface_List (List2)
11452 3 => True, -- Task_Definition (Node3)
11453 4 => False, -- unused
11454 5 => False), -- unused
11456 N_Task_Definition =>
11457 (1 => False, -- unused
11458 2 => True, -- Visible_Declarations (List2)
11459 3 => True, -- Private_Declarations (List3)
11460 4 => True, -- End_Label (Node4)
11461 5 => False), -- unused
11464 (1 => True, -- Defining_Identifier (Node1)
11465 2 => True, -- Declarations (List2)
11466 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11467 4 => True, -- Handled_Statement_Sequence (Node4)
11468 5 => False), -- Corresponding_Spec (Node5-Sem)
11470 N_Protected_Type_Declaration =>
11471 (1 => True, -- Defining_Identifier (Node1)
11472 2 => True, -- Interface_List (List2)
11473 3 => True, -- Protected_Definition (Node3)
11474 4 => True, -- Discriminant_Specifications (List4)
11475 5 => False), -- Corresponding_Body (Node5-Sem)
11477 N_Single_Protected_Declaration =>
11478 (1 => True, -- Defining_Identifier (Node1)
11479 2 => True, -- Interface_List (List2)
11480 3 => True, -- Protected_Definition (Node3)
11481 4 => False, -- unused
11482 5 => False), -- unused
11484 N_Protected_Definition =>
11485 (1 => False, -- unused
11486 2 => True, -- Visible_Declarations (List2)
11487 3 => True, -- Private_Declarations (List3)
11488 4 => True, -- End_Label (Node4)
11489 5 => False), -- unused
11491 N_Protected_Body =>
11492 (1 => True, -- Defining_Identifier (Node1)
11493 2 => True, -- Declarations (List2)
11494 3 => False, -- unused
11495 4 => True, -- End_Label (Node4)
11496 5 => False), -- Corresponding_Spec (Node5-Sem)
11498 N_Entry_Declaration =>
11499 (1 => True, -- Defining_Identifier (Node1)
11500 2 => False, -- unused
11501 3 => True, -- Parameter_Specifications (List3)
11502 4 => True, -- Discrete_Subtype_Definition (Node4)
11503 5 => False), -- Corresponding_Body (Node5-Sem)
11505 N_Accept_Statement =>
11506 (1 => True, -- Entry_Direct_Name (Node1)
11507 2 => True, -- Declarations (List2)
11508 3 => True, -- Parameter_Specifications (List3)
11509 4 => True, -- Handled_Statement_Sequence (Node4)
11510 5 => True), -- Entry_Index (Node5)
11513 (1 => True, -- Defining_Identifier (Node1)
11514 2 => True, -- Declarations (List2)
11515 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11516 4 => True, -- Handled_Statement_Sequence (Node4)
11517 5 => True), -- Entry_Body_Formal_Part (Node5)
11519 N_Entry_Body_Formal_Part =>
11520 (1 => True, -- Condition (Node1)
11521 2 => False, -- unused
11522 3 => True, -- Parameter_Specifications (List3)
11523 4 => True, -- Entry_Index_Specification (Node4)
11524 5 => False), -- unused
11526 N_Entry_Index_Specification =>
11527 (1 => True, -- Defining_Identifier (Node1)
11528 2 => False, -- unused
11529 3 => False, -- unused
11530 4 => True, -- Discrete_Subtype_Definition (Node4)
11531 5 => False), -- unused
11533 N_Entry_Call_Statement =>
11534 (1 => False, -- unused
11535 2 => True, -- Name (Node2)
11536 3 => True, -- Parameter_Associations (List3)
11537 4 => False, -- First_Named_Actual (Node4-Sem)
11538 5 => False), -- unused
11540 N_Requeue_Statement =>
11541 (1 => False, -- unused
11542 2 => True, -- Name (Node2)
11543 3 => False, -- unused
11544 4 => False, -- unused
11545 5 => False), -- unused
11547 N_Delay_Until_Statement =>
11548 (1 => False, -- unused
11549 2 => False, -- unused
11550 3 => True, -- Expression (Node3)
11551 4 => False, -- unused
11552 5 => False), -- unused
11554 N_Delay_Relative_Statement =>
11555 (1 => False, -- unused
11556 2 => False, -- unused
11557 3 => True, -- Expression (Node3)
11558 4 => False, -- unused
11559 5 => False), -- unused
11561 N_Selective_Accept =>
11562 (1 => True, -- Select_Alternatives (List1)
11563 2 => False, -- unused
11564 3 => False, -- unused
11565 4 => True, -- Else_Statements (List4)
11566 5 => False), -- unused
11568 N_Accept_Alternative =>
11569 (1 => True, -- Condition (Node1)
11570 2 => True, -- Accept_Statement (Node2)
11571 3 => True, -- Statements (List3)
11572 4 => True, -- Pragmas_Before (List4)
11573 5 => False), -- Accept_Handler_Records (List5-Sem)
11575 N_Delay_Alternative =>
11576 (1 => True, -- Condition (Node1)
11577 2 => True, -- Delay_Statement (Node2)
11578 3 => True, -- Statements (List3)
11579 4 => True, -- Pragmas_Before (List4)
11580 5 => False), -- unused
11582 N_Terminate_Alternative =>
11583 (1 => True, -- Condition (Node1)
11584 2 => False, -- unused
11585 3 => False, -- unused
11586 4 => True, -- Pragmas_Before (List4)
11587 5 => True), -- Pragmas_After (List5)
11589 N_Timed_Entry_Call =>
11590 (1 => True, -- Entry_Call_Alternative (Node1)
11591 2 => False, -- unused
11592 3 => False, -- unused
11593 4 => True, -- Delay_Alternative (Node4)
11594 5 => False), -- unused
11596 N_Entry_Call_Alternative =>
11597 (1 => True, -- Entry_Call_Statement (Node1)
11598 2 => False, -- unused
11599 3 => True, -- Statements (List3)
11600 4 => True, -- Pragmas_Before (List4)
11601 5 => False), -- unused
11603 N_Conditional_Entry_Call =>
11604 (1 => True, -- Entry_Call_Alternative (Node1)
11605 2 => False, -- unused
11606 3 => False, -- unused
11607 4 => True, -- Else_Statements (List4)
11608 5 => False), -- unused
11610 N_Asynchronous_Select =>
11611 (1 => True, -- Triggering_Alternative (Node1)
11612 2 => True, -- Abortable_Part (Node2)
11613 3 => False, -- unused
11614 4 => False, -- unused
11615 5 => False), -- unused
11617 N_Triggering_Alternative =>
11618 (1 => True, -- Triggering_Statement (Node1)
11619 2 => False, -- unused
11620 3 => True, -- Statements (List3)
11621 4 => True, -- Pragmas_Before (List4)
11622 5 => False), -- unused
11624 N_Abortable_Part =>
11625 (1 => False, -- unused
11626 2 => False, -- unused
11627 3 => True, -- Statements (List3)
11628 4 => False, -- unused
11629 5 => False), -- unused
11631 N_Abort_Statement =>
11632 (1 => False, -- unused
11633 2 => True, -- Names (List2)
11634 3 => False, -- unused
11635 4 => False, -- unused
11636 5 => False), -- unused
11638 N_Compilation_Unit =>
11639 (1 => True, -- Context_Items (List1)
11640 2 => True, -- Unit (Node2)
11641 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11642 4 => False, -- Library_Unit (Node4-Sem)
11643 5 => True), -- Aux_Decls_Node (Node5)
11645 N_Compilation_Unit_Aux =>
11646 (1 => True, -- Actions (List1)
11647 2 => True, -- Declarations (List2)
11648 3 => False, -- Default_Storage_Pool (Node3)
11649 4 => True, -- Config_Pragmas (List4)
11650 5 => True), -- Pragmas_After (List5)
11653 (1 => False, -- unused
11654 2 => True, -- Name (Node2)
11655 3 => False, -- unused
11656 4 => False, -- Library_Unit (Node4-Sem)
11657 5 => False), -- Corresponding_Spec (Node5-Sem)
11659 N_Subprogram_Body_Stub =>
11660 (1 => True, -- Specification (Node1)
11661 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11662 3 => False, -- unused
11663 4 => False, -- Library_Unit (Node4-Sem)
11664 5 => False), -- Corresponding_Body (Node5-Sem)
11666 N_Package_Body_Stub =>
11667 (1 => True, -- Defining_Identifier (Node1)
11668 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11669 3 => False, -- unused
11670 4 => False, -- Library_Unit (Node4-Sem)
11671 5 => False), -- Corresponding_Body (Node5-Sem)
11673 N_Task_Body_Stub =>
11674 (1 => True, -- Defining_Identifier (Node1)
11675 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11676 3 => False, -- unused
11677 4 => False, -- Library_Unit (Node4-Sem)
11678 5 => False), -- Corresponding_Body (Node5-Sem)
11680 N_Protected_Body_Stub =>
11681 (1 => True, -- Defining_Identifier (Node1)
11682 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11683 3 => False, -- unused
11684 4 => False, -- Library_Unit (Node4-Sem)
11685 5 => False), -- Corresponding_Body (Node5-Sem)
11688 (1 => True, -- Proper_Body (Node1)
11689 2 => True, -- Name (Node2)
11690 3 => False, -- Corresponding_Stub (Node3-Sem)
11691 4 => False, -- unused
11692 5 => False), -- unused
11694 N_Exception_Declaration =>
11695 (1 => True, -- Defining_Identifier (Node1)
11696 2 => False, -- unused
11697 3 => False, -- Expression (Node3-Sem)
11698 4 => False, -- unused
11699 5 => False), -- unused
11701 N_Handled_Sequence_Of_Statements =>
11702 (1 => True, -- At_End_Proc (Node1)
11703 2 => False, -- First_Real_Statement (Node2-Sem)
11704 3 => True, -- Statements (List3)
11705 4 => True, -- End_Label (Node4)
11706 5 => True), -- Exception_Handlers (List5)
11708 N_Exception_Handler =>
11709 (1 => False, -- Local_Raise_Statements (Elist1)
11710 2 => True, -- Choice_Parameter (Node2)
11711 3 => True, -- Statements (List3)
11712 4 => True, -- Exception_Choices (List4)
11713 5 => False), -- Exception_Label (Node5)
11715 N_Raise_Statement =>
11716 (1 => False, -- unused
11717 2 => True, -- Name (Node2)
11718 3 => True, -- Expression (Node3)
11719 4 => False, -- unused
11720 5 => False), -- unused
11722 N_Raise_Expression =>
11723 (1 => False, -- unused
11724 2 => True, -- Name (Node2)
11725 3 => True, -- Expression (Node3)
11726 4 => False, -- unused
11727 5 => False), -- Etype (Node5-Sem)
11729 N_Generic_Subprogram_Declaration =>
11730 (1 => True, -- Specification (Node1)
11731 2 => True, -- Generic_Formal_Declarations (List2)
11732 3 => False, -- unused
11733 4 => False, -- Parent_Spec (Node4-Sem)
11734 5 => False), -- Corresponding_Body (Node5-Sem)
11736 N_Generic_Package_Declaration =>
11737 (1 => True, -- Specification (Node1)
11738 2 => True, -- Generic_Formal_Declarations (List2)
11739 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11740 4 => False, -- Parent_Spec (Node4-Sem)
11741 5 => False), -- Corresponding_Body (Node5-Sem)
11743 N_Package_Instantiation =>
11744 (1 => True, -- Defining_Unit_Name (Node1)
11745 2 => True, -- Name (Node2)
11746 3 => True, -- Generic_Associations (List3)
11747 4 => False, -- Parent_Spec (Node4-Sem)
11748 5 => False), -- Instance_Spec (Node5-Sem)
11750 N_Procedure_Instantiation =>
11751 (1 => True, -- Defining_Unit_Name (Node1)
11752 2 => True, -- Name (Node2)
11753 3 => True, -- Generic_Associations (List3)
11754 4 => False, -- Parent_Spec (Node4-Sem)
11755 5 => False), -- Instance_Spec (Node5-Sem)
11757 N_Function_Instantiation =>
11758 (1 => True, -- Defining_Unit_Name (Node1)
11759 2 => True, -- Name (Node2)
11760 3 => True, -- Generic_Associations (List3)
11761 4 => False, -- Parent_Spec (Node4-Sem)
11762 5 => False), -- Instance_Spec (Node5-Sem)
11764 N_Generic_Association =>
11765 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11766 2 => True, -- Selector_Name (Node2)
11767 3 => False, -- unused
11768 4 => False, -- unused
11769 5 => False), -- unused
11771 N_Formal_Object_Declaration =>
11772 (1 => True, -- Defining_Identifier (Node1)
11773 2 => False, -- unused
11774 3 => True, -- Access_Definition (Node3)
11775 4 => True, -- Subtype_Mark (Node4)
11776 5 => True), -- Default_Expression (Node5)
11778 N_Formal_Type_Declaration =>
11779 (1 => True, -- Defining_Identifier (Node1)
11780 2 => False, -- unused
11781 3 => True, -- Formal_Type_Definition (Node3)
11782 4 => True, -- Discriminant_Specifications (List4)
11783 5 => False), -- unused
11785 N_Formal_Private_Type_Definition =>
11786 (1 => False, -- unused
11787 2 => False, -- unused
11788 3 => False, -- unused
11789 4 => False, -- unused
11790 5 => False), -- unused
11792 N_Formal_Incomplete_Type_Definition =>
11793 (1 => False, -- unused
11794 2 => False, -- unused
11795 3 => False, -- unused
11796 4 => False, -- unused
11797 5 => False), -- unused
11799 N_Formal_Derived_Type_Definition =>
11800 (1 => False, -- unused
11801 2 => True, -- Interface_List (List2)
11802 3 => False, -- unused
11803 4 => True, -- Subtype_Mark (Node4)
11804 5 => False), -- unused
11806 N_Formal_Discrete_Type_Definition =>
11807 (1 => False, -- unused
11808 2 => False, -- unused
11809 3 => False, -- unused
11810 4 => False, -- unused
11811 5 => False), -- unused
11813 N_Formal_Signed_Integer_Type_Definition =>
11814 (1 => False, -- unused
11815 2 => False, -- unused
11816 3 => False, -- unused
11817 4 => False, -- unused
11818 5 => False), -- unused
11820 N_Formal_Modular_Type_Definition =>
11821 (1 => False, -- unused
11822 2 => False, -- unused
11823 3 => False, -- unused
11824 4 => False, -- unused
11825 5 => False), -- unused
11827 N_Formal_Floating_Point_Definition =>
11828 (1 => False, -- unused
11829 2 => False, -- unused
11830 3 => False, -- unused
11831 4 => False, -- unused
11832 5 => False), -- unused
11834 N_Formal_Ordinary_Fixed_Point_Definition =>
11835 (1 => False, -- unused
11836 2 => False, -- unused
11837 3 => False, -- unused
11838 4 => False, -- unused
11839 5 => False), -- unused
11841 N_Formal_Decimal_Fixed_Point_Definition =>
11842 (1 => False, -- unused
11843 2 => False, -- unused
11844 3 => False, -- unused
11845 4 => False, -- unused
11846 5 => False), -- unused
11848 N_Formal_Concrete_Subprogram_Declaration =>
11849 (1 => True, -- Specification (Node1)
11850 2 => True, -- Default_Name (Node2)
11851 3 => False, -- unused
11852 4 => False, -- unused
11853 5 => False), -- unused
11855 N_Formal_Abstract_Subprogram_Declaration =>
11856 (1 => True, -- Specification (Node1)
11857 2 => True, -- Default_Name (Node2)
11858 3 => False, -- unused
11859 4 => False, -- unused
11860 5 => False), -- unused
11862 N_Formal_Package_Declaration =>
11863 (1 => True, -- Defining_Identifier (Node1)
11864 2 => True, -- Name (Node2)
11865 3 => True, -- Generic_Associations (List3)
11866 4 => False, -- unused
11867 5 => False), -- Instance_Spec (Node5-Sem)
11869 N_Attribute_Definition_Clause =>
11870 (1 => True, -- Chars (Name1)
11871 2 => True, -- Name (Node2)
11872 3 => True, -- Expression (Node3)
11873 4 => False, -- unused
11874 5 => False), -- Next_Rep_Item (Node5-Sem)
11876 N_Aspect_Specification =>
11877 (1 => True, -- Identifier (Node1)
11878 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11879 3 => True, -- Expression (Node3)
11880 4 => False, -- Entity (Node4-Sem)
11881 5 => False), -- Next_Rep_Item (Node5-Sem)
11883 N_Enumeration_Representation_Clause =>
11884 (1 => True, -- Identifier (Node1)
11885 2 => False, -- unused
11886 3 => True, -- Array_Aggregate (Node3)
11887 4 => False, -- unused
11888 5 => False), -- Next_Rep_Item (Node5-Sem)
11890 N_Record_Representation_Clause =>
11891 (1 => True, -- Identifier (Node1)
11892 2 => True, -- Mod_Clause (Node2)
11893 3 => True, -- Component_Clauses (List3)
11894 4 => False, -- unused
11895 5 => False), -- Next_Rep_Item (Node5-Sem)
11897 N_Component_Clause =>
11898 (1 => True, -- Component_Name (Node1)
11899 2 => True, -- Position (Node2)
11900 3 => True, -- First_Bit (Node3)
11901 4 => True, -- Last_Bit (Node4)
11902 5 => False), -- unused
11904 N_Code_Statement =>
11905 (1 => False, -- unused
11906 2 => False, -- unused
11907 3 => True, -- Expression (Node3)
11908 4 => False, -- unused
11909 5 => False), -- unused
11911 N_Op_Rotate_Left =>
11912 (1 => True, -- Chars (Name1)
11913 2 => True, -- Left_Opnd (Node2)
11914 3 => True, -- Right_Opnd (Node3)
11915 4 => False, -- Entity (Node4-Sem)
11916 5 => False), -- Etype (Node5-Sem)
11918 N_Op_Rotate_Right =>
11919 (1 => True, -- Chars (Name1)
11920 2 => True, -- Left_Opnd (Node2)
11921 3 => True, -- Right_Opnd (Node3)
11922 4 => False, -- Entity (Node4-Sem)
11923 5 => False), -- Etype (Node5-Sem)
11926 (1 => True, -- Chars (Name1)
11927 2 => True, -- Left_Opnd (Node2)
11928 3 => True, -- Right_Opnd (Node3)
11929 4 => False, -- Entity (Node4-Sem)
11930 5 => False), -- Etype (Node5-Sem)
11932 N_Op_Shift_Right_Arithmetic =>
11933 (1 => True, -- Chars (Name1)
11934 2 => True, -- Left_Opnd (Node2)
11935 3 => True, -- Right_Opnd (Node3)
11936 4 => False, -- Entity (Node4-Sem)
11937 5 => False), -- Etype (Node5-Sem)
11939 N_Op_Shift_Right =>
11940 (1 => True, -- Chars (Name1)
11941 2 => True, -- Left_Opnd (Node2)
11942 3 => True, -- Right_Opnd (Node3)
11943 4 => False, -- Entity (Node4-Sem)
11944 5 => False), -- Etype (Node5-Sem)
11946 N_Delta_Constraint =>
11947 (1 => False, -- unused
11948 2 => False, -- unused
11949 3 => True, -- Delta_Expression (Node3)
11950 4 => True, -- Range_Constraint (Node4)
11951 5 => False), -- unused
11954 (1 => True, -- Identifier (Node1)
11955 2 => False, -- unused
11956 3 => True, -- Expression (Node3)
11957 4 => False, -- unused
11958 5 => False), -- unused
11961 (1 => False, -- unused
11962 2 => False, -- unused
11963 3 => True, -- Expression (Node3)
11964 4 => True, -- Pragmas_Before (List4)
11965 5 => False), -- unused
11968 (1 => True, -- Expressions (List1)
11969 2 => False, -- Then_Actions (List2-Sem)
11970 3 => False, -- Else_Actions (List3-Sem)
11971 4 => False, -- unused
11972 5 => False), -- Etype (Node5-Sem)
11975 (1 => False, -- Pre_Post_Conditions (Node1)
11976 2 => False, -- Contract_Test_Cases (Node2)
11977 3 => False, -- Classifications (Node3)
11978 4 => False, -- unused
11979 5 => False), -- unused
11982 (1 => True, -- Chars (Name1)
11983 2 => True, -- Selector_Name (Node2)
11984 3 => True, -- Prefix (Node3)
11985 4 => False, -- Entity (Node4-Sem)
11986 5 => False), -- Etype (Node5-Sem)
11988 N_Expression_With_Actions =>
11989 (1 => True, -- Actions (List1)
11990 2 => False, -- unused
11991 3 => True, -- Expression (Node3)
11992 4 => False, -- unused
11993 5 => False), -- unused
11995 N_Free_Statement =>
11996 (1 => False, -- Storage_Pool (Node1-Sem)
11997 2 => False, -- Procedure_To_Call (Node2-Sem)
11998 3 => True, -- Expression (Node3)
11999 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12000 5 => False), -- unused
12003 (1 => True, -- Actions (List1)
12004 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12005 3 => False, -- TSS_Elist (Elist3-Sem)
12006 4 => False, -- Entity (Node4-Sem)
12007 5 => False), -- First_Subtype_Link (Node5-Sem)
12009 N_Freeze_Generic_Entity =>
12010 (1 => False, -- unused
12011 2 => False, -- unused
12012 3 => False, -- unused
12013 4 => False, -- Entity (Node4-Sem)
12014 5 => False), -- unused
12016 N_Implicit_Label_Declaration =>
12017 (1 => True, -- Defining_Identifier (Node1)
12018 2 => False, -- Label_Construct (Node2-Sem)
12019 3 => False, -- unused
12020 4 => False, -- unused
12021 5 => False), -- unused
12023 N_Itype_Reference =>
12024 (1 => False, -- Itype (Node1-Sem)
12025 2 => False, -- unused
12026 3 => False, -- unused
12027 4 => False, -- unused
12028 5 => False), -- unused
12030 N_Raise_Constraint_Error =>
12031 (1 => True, -- Condition (Node1)
12032 2 => False, -- unused
12033 3 => True, -- Reason (Uint3)
12034 4 => False, -- unused
12035 5 => False), -- Etype (Node5-Sem)
12037 N_Raise_Program_Error =>
12038 (1 => True, -- Condition (Node1)
12039 2 => False, -- unused
12040 3 => True, -- Reason (Uint3)
12041 4 => False, -- unused
12042 5 => False), -- Etype (Node5-Sem)
12044 N_Raise_Storage_Error =>
12045 (1 => True, -- Condition (Node1)
12046 2 => False, -- unused
12047 3 => True, -- Reason (Uint3)
12048 4 => False, -- unused
12049 5 => False), -- Etype (Node5-Sem)
12051 N_Push_Constraint_Error_Label =>
12052 (1 => False, -- unused
12053 2 => False, -- unused
12054 3 => False, -- unused
12055 4 => False, -- unused
12056 5 => False), -- unused
12058 N_Push_Program_Error_Label =>
12059 (1 => False, -- Exception_Label
12060 2 => False, -- unused
12061 3 => False, -- unused
12062 4 => False, -- unused
12063 5 => False), -- Exception_Label
12065 N_Push_Storage_Error_Label =>
12066 (1 => False, -- Exception_Label
12067 2 => False, -- unused
12068 3 => False, -- unused
12069 4 => False, -- unused
12070 5 => False), -- Exception_Label
12072 N_Pop_Constraint_Error_Label =>
12073 (1 => False, -- unused
12074 2 => False, -- unused
12075 3 => False, -- unused
12076 4 => False, -- unused
12077 5 => False), -- unused
12079 N_Pop_Program_Error_Label =>
12080 (1 => False, -- unused
12081 2 => False, -- unused
12082 3 => False, -- unused
12083 4 => False, -- unused
12084 5 => False), -- unused
12086 N_Pop_Storage_Error_Label =>
12087 (1 => False, -- unused
12088 2 => False, -- unused
12089 3 => False, -- unused
12090 4 => False, -- unused
12091 5 => False), -- unused
12094 (1 => False, -- unused
12095 2 => False, -- unused
12096 3 => True, -- Prefix (Node3)
12097 4 => False, -- unused
12098 5 => False), -- Etype (Node5-Sem)
12100 N_Unchecked_Expression =>
12101 (1 => False, -- unused
12102 2 => False, -- unused
12103 3 => True, -- Expression (Node3)
12104 4 => False, -- unused
12105 5 => False), -- Etype (Node5-Sem)
12107 N_Unchecked_Type_Conversion =>
12108 (1 => False, -- unused
12109 2 => False, -- unused
12110 3 => True, -- Expression (Node3)
12111 4 => True, -- Subtype_Mark (Node4)
12112 5 => False), -- Etype (Node5-Sem)
12114 N_Validate_Unchecked_Conversion =>
12115 (1 => False, -- Source_Type (Node1-Sem)
12116 2 => False, -- Target_Type (Node2-Sem)
12117 3 => False, -- unused
12118 4 => False, -- unused
12119 5 => False), -- unused
12121 -- Entries for SCIL nodes
12123 N_SCIL_Dispatch_Table_Tag_Init =>
12124 (1 => False, -- unused
12125 2 => False, -- unused
12126 3 => False, -- unused
12127 4 => False, -- SCIL_Entity (Node4-Sem)
12128 5 => False), -- unused
12130 N_SCIL_Dispatching_Call =>
12131 (1 => False, -- unused
12132 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12133 3 => False, -- unused
12134 4 => False, -- SCIL_Entity (Node4-Sem)
12135 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12137 N_SCIL_Membership_Test =>
12138 (1 => False, -- unused
12139 2 => False, -- unused
12140 3 => False, -- unused
12141 4 => False, -- SCIL_Entity (Node4-Sem)
12142 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12144 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12145 -- field for debugging purposes, they are not really syntactic fields, so
12146 -- we mark all fields as unused.
12149 (1 => False, -- unused
12150 2 => False, -- unused
12151 3 => False, -- unused
12152 4 => False, -- unused
12153 5 => False), -- unused
12156 (1 => False, -- unused
12157 2 => False, -- unused
12158 3 => False, -- unused
12159 4 => False, -- unused
12160 5 => False), -- unused
12162 N_Unused_At_Start =>
12163 (1 => False, -- unused
12164 2 => False, -- unused
12165 3 => False, -- unused
12166 4 => False, -- unused
12167 5 => False), -- unused
12170 (1 => False, -- unused
12171 2 => False, -- unused
12172 3 => False, -- unused
12173 4 => False, -- unused
12174 5 => False)); -- unused
12176 --------------------
12177 -- Inline Pragmas --
12178 --------------------
12180 pragma Inline (ABE_Is_Certain);
12181 pragma Inline (Abort_Present);
12182 pragma Inline (Abortable_Part);
12183 pragma Inline (Abstract_Present);
12184 pragma Inline (Accept_Handler_Records);
12185 pragma Inline (Accept_Statement);
12186 pragma Inline (Access_Definition);
12187 pragma Inline (Access_To_Subprogram_Definition);
12188 pragma Inline (Access_Types_To_Process);
12189 pragma Inline (Actions);
12190 pragma Inline (Activation_Chain_Entity);
12191 pragma Inline (Acts_As_Spec);
12192 pragma Inline (Actual_Designated_Subtype);
12193 pragma Inline (Address_Warning_Posted);
12194 pragma Inline (Aggregate_Bounds);
12195 pragma Inline (Aliased_Present);
12196 pragma Inline (All_Others);
12197 pragma Inline (All_Present);
12198 pragma Inline (Alternatives);
12199 pragma Inline (Ancestor_Part);
12200 pragma Inline (Atomic_Sync_Required);
12201 pragma Inline (Array_Aggregate);
12202 pragma Inline (Aspect_Rep_Item);
12203 pragma Inline (Assignment_OK);
12204 pragma Inline (Associated_Node);
12205 pragma Inline (At_End_Proc);
12206 pragma Inline (Attribute_Name);
12207 pragma Inline (Aux_Decls_Node);
12208 pragma Inline (Backwards_OK);
12209 pragma Inline (Bad_Is_Detected);
12210 pragma Inline (Body_To_Inline);
12211 pragma Inline (Body_Required);
12212 pragma Inline (By_Ref);
12213 pragma Inline (Box_Present);
12214 pragma Inline (Char_Literal_Value);
12215 pragma Inline (Chars);
12216 pragma Inline (Check_Address_Alignment);
12217 pragma Inline (Choice_Parameter);
12218 pragma Inline (Choices);
12219 pragma Inline (Class_Present);
12220 pragma Inline (Classifications);
12221 pragma Inline (Comes_From_Extended_Return_Statement);
12222 pragma Inline (Compile_Time_Known_Aggregate);
12223 pragma Inline (Component_Associations);
12224 pragma Inline (Component_Clauses);
12225 pragma Inline (Component_Definition);
12226 pragma Inline (Component_Items);
12227 pragma Inline (Component_List);
12228 pragma Inline (Component_Name);
12229 pragma Inline (Componentwise_Assignment);
12230 pragma Inline (Condition);
12231 pragma Inline (Condition_Actions);
12232 pragma Inline (Config_Pragmas);
12233 pragma Inline (Constant_Present);
12234 pragma Inline (Constraint);
12235 pragma Inline (Constraints);
12236 pragma Inline (Context_Installed);
12237 pragma Inline (Context_Items);
12238 pragma Inline (Context_Pending);
12239 pragma Inline (Contract_Test_Cases);
12240 pragma Inline (Controlling_Argument);
12241 pragma Inline (Convert_To_Return_False);
12242 pragma Inline (Conversion_OK);
12243 pragma Inline (Corresponding_Aspect);
12244 pragma Inline (Corresponding_Body);
12245 pragma Inline (Corresponding_Formal_Spec);
12246 pragma Inline (Corresponding_Generic_Association);
12247 pragma Inline (Corresponding_Integer_Value);
12248 pragma Inline (Corresponding_Spec);
12249 pragma Inline (Corresponding_Spec_Of_Stub);
12250 pragma Inline (Corresponding_Stub);
12251 pragma Inline (Dcheck_Function);
12252 pragma Inline (Declarations);
12253 pragma Inline (Default_Expression);
12254 pragma Inline (Default_Storage_Pool);
12255 pragma Inline (Default_Name);
12256 pragma Inline (Defining_Identifier);
12257 pragma Inline (Defining_Unit_Name);
12258 pragma Inline (Delay_Alternative);
12259 pragma Inline (Delay_Statement);
12260 pragma Inline (Delta_Expression);
12261 pragma Inline (Digits_Expression);
12262 pragma Inline (Discr_Check_Funcs_Built);
12263 pragma Inline (Discrete_Choices);
12264 pragma Inline (Discrete_Range);
12265 pragma Inline (Discrete_Subtype_Definition);
12266 pragma Inline (Discrete_Subtype_Definitions);
12267 pragma Inline (Discriminant_Specifications);
12268 pragma Inline (Discriminant_Type);
12269 pragma Inline (Do_Accessibility_Check);
12270 pragma Inline (Do_Discriminant_Check);
12271 pragma Inline (Do_Length_Check);
12272 pragma Inline (Do_Division_Check);
12273 pragma Inline (Do_Overflow_Check);
12274 pragma Inline (Do_Range_Check);
12275 pragma Inline (Do_Storage_Check);
12276 pragma Inline (Do_Tag_Check);
12277 pragma Inline (Elaborate_Present);
12278 pragma Inline (Elaborate_All_Desirable);
12279 pragma Inline (Elaborate_All_Present);
12280 pragma Inline (Elaborate_Desirable);
12281 pragma Inline (Elaboration_Boolean);
12282 pragma Inline (Else_Actions);
12283 pragma Inline (Else_Statements);
12284 pragma Inline (Elsif_Parts);
12285 pragma Inline (Enclosing_Variant);
12286 pragma Inline (End_Label);
12287 pragma Inline (End_Span);
12288 pragma Inline (Entity);
12289 pragma Inline (Entity_Or_Associated_Node);
12290 pragma Inline (Entry_Body_Formal_Part);
12291 pragma Inline (Entry_Call_Alternative);
12292 pragma Inline (Entry_Call_Statement);
12293 pragma Inline (Entry_Direct_Name);
12294 pragma Inline (Entry_Index);
12295 pragma Inline (Entry_Index_Specification);
12296 pragma Inline (Etype);
12297 pragma Inline (Exception_Choices);
12298 pragma Inline (Exception_Handlers);
12299 pragma Inline (Exception_Junk);
12300 pragma Inline (Exception_Label);
12301 pragma Inline (Expansion_Delayed);
12302 pragma Inline (Explicit_Actual_Parameter);
12303 pragma Inline (Explicit_Generic_Actual_Parameter);
12304 pragma Inline (Expression);
12305 pragma Inline (Expressions);
12306 pragma Inline (First_Bit);
12307 pragma Inline (First_Inlined_Subprogram);
12308 pragma Inline (First_Name);
12309 pragma Inline (First_Named_Actual);
12310 pragma Inline (First_Real_Statement);
12311 pragma Inline (First_Subtype_Link);
12312 pragma Inline (Float_Truncate);
12313 pragma Inline (Formal_Type_Definition);
12314 pragma Inline (Forwards_OK);
12315 pragma Inline (From_Aspect_Specification);
12316 pragma Inline (From_At_End);
12317 pragma Inline (From_At_Mod);
12318 pragma Inline (From_Default);
12319 pragma Inline (Generic_Associations);
12320 pragma Inline (Generic_Formal_Declarations);
12321 pragma Inline (Generic_Parent);
12322 pragma Inline (Generic_Parent_Type);
12323 pragma Inline (Handled_Statement_Sequence);
12324 pragma Inline (Handler_List_Entry);
12325 pragma Inline (Has_Created_Identifier);
12326 pragma Inline (Has_Dereference_Action);
12327 pragma Inline (Has_Dynamic_Length_Check);
12328 pragma Inline (Has_Dynamic_Range_Check);
12329 pragma Inline (Has_Init_Expression);
12330 pragma Inline (Has_Local_Raise);
12331 pragma Inline (Has_Self_Reference);
12332 pragma Inline (Has_SP_Choice);
12333 pragma Inline (Has_No_Elaboration_Code);
12334 pragma Inline (Has_Pragma_Suppress_All);
12335 pragma Inline (Has_Private_View);
12336 pragma Inline (Has_Relative_Deadline_Pragma);
12337 pragma Inline (Has_Storage_Size_Pragma);
12338 pragma Inline (Has_Wide_Character);
12339 pragma Inline (Has_Wide_Wide_Character);
12340 pragma Inline (Header_Size_Added);
12341 pragma Inline (Hidden_By_Use_Clause);
12342 pragma Inline (High_Bound);
12343 pragma Inline (Identifier);
12344 pragma Inline (Implicit_With);
12345 pragma Inline (Implicit_With_From_Instantiation);
12346 pragma Inline (Interface_List);
12347 pragma Inline (Interface_Present);
12348 pragma Inline (Includes_Infinities);
12349 pragma Inline (Import_Interface_Present);
12350 pragma Inline (In_Assertion_Expression);
12351 pragma Inline (In_Present);
12352 pragma Inline (Inherited_Discriminant);
12353 pragma Inline (Instance_Spec);
12354 pragma Inline (Intval);
12355 pragma Inline (Iterator_Specification);
12356 pragma Inline (Is_Accessibility_Actual);
12357 pragma Inline (Is_Asynchronous_Call_Block);
12358 pragma Inline (Is_Boolean_Aspect);
12359 pragma Inline (Is_Checked);
12360 pragma Inline (Is_Component_Left_Opnd);
12361 pragma Inline (Is_Component_Right_Opnd);
12362 pragma Inline (Is_Controlling_Actual);
12363 pragma Inline (Is_Delayed_Aspect);
12364 pragma Inline (Is_Disabled);
12365 pragma Inline (Is_Dynamic_Coextension);
12366 pragma Inline (Is_Elsif);
12367 pragma Inline (Is_Entry_Barrier_Function);
12368 pragma Inline (Is_Expanded_Build_In_Place_Call);
12369 pragma Inline (Is_Finalization_Wrapper);
12370 pragma Inline (Is_Folded_In_Parser);
12371 pragma Inline (Is_Ignored);
12372 pragma Inline (Is_In_Discriminant_Check);
12373 pragma Inline (Is_Machine_Number);
12374 pragma Inline (Is_Null_Loop);
12375 pragma Inline (Is_Overloaded);
12376 pragma Inline (Is_Power_Of_2_For_Shift);
12377 pragma Inline (Is_Prefixed_Call);
12378 pragma Inline (Is_Protected_Subprogram_Body);
12379 pragma Inline (Is_Static_Coextension);
12380 pragma Inline (Is_Static_Expression);
12381 pragma Inline (Is_Subprogram_Descriptor);
12382 pragma Inline (Is_Task_Allocation_Block);
12383 pragma Inline (Is_Task_Master);
12384 pragma Inline (Iteration_Scheme);
12385 pragma Inline (Itype);
12386 pragma Inline (Kill_Range_Check);
12387 pragma Inline (Last_Bit);
12388 pragma Inline (Last_Name);
12389 pragma Inline (Library_Unit);
12390 pragma Inline (Label_Construct);
12391 pragma Inline (Left_Opnd);
12392 pragma Inline (Limited_View_Installed);
12393 pragma Inline (Limited_Present);
12394 pragma Inline (Literals);
12395 pragma Inline (Local_Raise_Not_OK);
12396 pragma Inline (Local_Raise_Statements);
12397 pragma Inline (Loop_Actions);
12398 pragma Inline (Loop_Parameter_Specification);
12399 pragma Inline (Low_Bound);
12400 pragma Inline (Mod_Clause);
12401 pragma Inline (More_Ids);
12402 pragma Inline (Must_Be_Byte_Aligned);
12403 pragma Inline (Must_Not_Freeze);
12404 pragma Inline (Must_Not_Override);
12405 pragma Inline (Must_Override);
12406 pragma Inline (Name);
12407 pragma Inline (Names);
12408 pragma Inline (Next_Entity);
12409 pragma Inline (Next_Exit_Statement);
12410 pragma Inline (Next_Implicit_With);
12411 pragma Inline (Next_Named_Actual);
12412 pragma Inline (Next_Pragma);
12413 pragma Inline (Next_Rep_Item);
12414 pragma Inline (Next_Use_Clause);
12415 pragma Inline (No_Ctrl_Actions);
12416 pragma Inline (No_Elaboration_Check);
12417 pragma Inline (No_Entities_Ref_In_Spec);
12418 pragma Inline (No_Initialization);
12419 pragma Inline (No_Minimize_Eliminate);
12420 pragma Inline (No_Truncation);
12421 pragma Inline (Null_Present);
12422 pragma Inline (Null_Exclusion_Present);
12423 pragma Inline (Null_Exclusion_In_Return_Present);
12424 pragma Inline (Null_Record_Present);
12425 pragma Inline (Object_Definition);
12426 pragma Inline (Of_Present);
12427 pragma Inline (Original_Discriminant);
12428 pragma Inline (Original_Entity);
12429 pragma Inline (Others_Discrete_Choices);
12430 pragma Inline (Out_Present);
12431 pragma Inline (Parameter_Associations);
12432 pragma Inline (Parameter_Specifications);
12433 pragma Inline (Parameter_List_Truncated);
12434 pragma Inline (Parameter_Type);
12435 pragma Inline (Parent_Spec);
12436 pragma Inline (Position);
12437 pragma Inline (Pragma_Argument_Associations);
12438 pragma Inline (Pragma_Identifier);
12439 pragma Inline (Pragmas_After);
12440 pragma Inline (Pragmas_Before);
12441 pragma Inline (Pre_Post_Conditions);
12442 pragma Inline (Prefix);
12443 pragma Inline (Premature_Use);
12444 pragma Inline (Present_Expr);
12445 pragma Inline (Prev_Ids);
12446 pragma Inline (Print_In_Hex);
12447 pragma Inline (Private_Declarations);
12448 pragma Inline (Private_Present);
12449 pragma Inline (Procedure_To_Call);
12450 pragma Inline (Proper_Body);
12451 pragma Inline (Protected_Definition);
12452 pragma Inline (Protected_Present);
12453 pragma Inline (Raises_Constraint_Error);
12454 pragma Inline (Range_Constraint);
12455 pragma Inline (Range_Expression);
12456 pragma Inline (Real_Range_Specification);
12457 pragma Inline (Realval);
12458 pragma Inline (Reason);
12459 pragma Inline (Record_Extension_Part);
12460 pragma Inline (Redundant_Use);
12461 pragma Inline (Renaming_Exception);
12462 pragma Inline (Result_Definition);
12463 pragma Inline (Return_Object_Declarations);
12464 pragma Inline (Return_Statement_Entity);
12465 pragma Inline (Reverse_Present);
12466 pragma Inline (Right_Opnd);
12467 pragma Inline (Rounded_Result);
12468 pragma Inline (SCIL_Controlling_Tag);
12469 pragma Inline (SCIL_Entity);
12470 pragma Inline (SCIL_Tag_Value);
12471 pragma Inline (SCIL_Target_Prim);
12472 pragma Inline (Scope);
12473 pragma Inline (Select_Alternatives);
12474 pragma Inline (Selector_Name);
12475 pragma Inline (Selector_Names);
12476 pragma Inline (Shift_Count_OK);
12477 pragma Inline (Source_Type);
12478 pragma Inline (Specification);
12479 pragma Inline (Split_PPC);
12480 pragma Inline (Statements);
12481 pragma Inline (Storage_Pool);
12482 pragma Inline (Subpool_Handle_Name);
12483 pragma Inline (Strval);
12484 pragma Inline (Subtype_Indication);
12485 pragma Inline (Subtype_Mark);
12486 pragma Inline (Subtype_Marks);
12487 pragma Inline (Suppress_Assignment_Checks);
12488 pragma Inline (Suppress_Loop_Warnings);
12489 pragma Inline (Synchronized_Present);
12490 pragma Inline (Tagged_Present);
12491 pragma Inline (Target_Type);
12492 pragma Inline (Task_Definition);
12493 pragma Inline (Task_Present);
12494 pragma Inline (Then_Actions);
12495 pragma Inline (Then_Statements);
12496 pragma Inline (Triggering_Alternative);
12497 pragma Inline (Triggering_Statement);
12498 pragma Inline (Treat_Fixed_As_Integer);
12499 pragma Inline (TSS_Elist);
12500 pragma Inline (Type_Definition);
12501 pragma Inline (Unit);
12502 pragma Inline (Unknown_Discriminants_Present);
12503 pragma Inline (Unreferenced_In_Spec);
12504 pragma Inline (Variant_Part);
12505 pragma Inline (Variants);
12506 pragma Inline (Visible_Declarations);
12507 pragma Inline (Used_Operations);
12508 pragma Inline (Was_Originally_Stub);
12509 pragma Inline (Withed_Body);
12511 pragma Inline (Set_ABE_Is_Certain);
12512 pragma Inline (Set_Abort_Present);
12513 pragma Inline (Set_Abortable_Part);
12514 pragma Inline (Set_Abstract_Present);
12515 pragma Inline (Set_Accept_Handler_Records);
12516 pragma Inline (Set_Accept_Statement);
12517 pragma Inline (Set_Access_Definition);
12518 pragma Inline (Set_Access_To_Subprogram_Definition);
12519 pragma Inline (Set_Access_Types_To_Process);
12520 pragma Inline (Set_Actions);
12521 pragma Inline (Set_Activation_Chain_Entity);
12522 pragma Inline (Set_Acts_As_Spec);
12523 pragma Inline (Set_Actual_Designated_Subtype);
12524 pragma Inline (Set_Address_Warning_Posted);
12525 pragma Inline (Set_Aggregate_Bounds);
12526 pragma Inline (Set_Aliased_Present);
12527 pragma Inline (Set_All_Others);
12528 pragma Inline (Set_All_Present);
12529 pragma Inline (Set_Alternatives);
12530 pragma Inline (Set_Ancestor_Part);
12531 pragma Inline (Set_Array_Aggregate);
12532 pragma Inline (Set_Aspect_Rep_Item);
12533 pragma Inline (Set_Assignment_OK);
12534 pragma Inline (Set_Associated_Node);
12535 pragma Inline (Set_At_End_Proc);
12536 pragma Inline (Set_Atomic_Sync_Required);
12537 pragma Inline (Set_Attribute_Name);
12538 pragma Inline (Set_Aux_Decls_Node);
12539 pragma Inline (Set_Backwards_OK);
12540 pragma Inline (Set_Bad_Is_Detected);
12541 pragma Inline (Set_Body_Required);
12542 pragma Inline (Set_Body_To_Inline);
12543 pragma Inline (Set_Box_Present);
12544 pragma Inline (Set_By_Ref);
12545 pragma Inline (Set_Char_Literal_Value);
12546 pragma Inline (Set_Chars);
12547 pragma Inline (Set_Check_Address_Alignment);
12548 pragma Inline (Set_Choice_Parameter);
12549 pragma Inline (Set_Choices);
12550 pragma Inline (Set_Class_Present);
12551 pragma Inline (Set_Classifications);
12552 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12553 pragma Inline (Set_Compile_Time_Known_Aggregate);
12554 pragma Inline (Set_Component_Associations);
12555 pragma Inline (Set_Component_Clauses);
12556 pragma Inline (Set_Component_Definition);
12557 pragma Inline (Set_Component_Items);
12558 pragma Inline (Set_Component_List);
12559 pragma Inline (Set_Component_Name);
12560 pragma Inline (Set_Componentwise_Assignment);
12561 pragma Inline (Set_Condition);
12562 pragma Inline (Set_Condition_Actions);
12563 pragma Inline (Set_Config_Pragmas);
12564 pragma Inline (Set_Constant_Present);
12565 pragma Inline (Set_Constraint);
12566 pragma Inline (Set_Constraints);
12567 pragma Inline (Set_Context_Installed);
12568 pragma Inline (Set_Context_Items);
12569 pragma Inline (Set_Context_Pending);
12570 pragma Inline (Set_Contract_Test_Cases);
12571 pragma Inline (Set_Controlling_Argument);
12572 pragma Inline (Set_Conversion_OK);
12573 pragma Inline (Set_Convert_To_Return_False);
12574 pragma Inline (Set_Corresponding_Aspect);
12575 pragma Inline (Set_Corresponding_Body);
12576 pragma Inline (Set_Corresponding_Formal_Spec);
12577 pragma Inline (Set_Corresponding_Generic_Association);
12578 pragma Inline (Set_Corresponding_Integer_Value);
12579 pragma Inline (Set_Corresponding_Spec);
12580 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12581 pragma Inline (Set_Corresponding_Stub);
12582 pragma Inline (Set_Dcheck_Function);
12583 pragma Inline (Set_Declarations);
12584 pragma Inline (Set_Default_Expression);
12585 pragma Inline (Set_Default_Name);
12586 pragma Inline (Set_Default_Storage_Pool);
12587 pragma Inline (Set_Defining_Identifier);
12588 pragma Inline (Set_Defining_Unit_Name);
12589 pragma Inline (Set_Delay_Alternative);
12590 pragma Inline (Set_Delay_Statement);
12591 pragma Inline (Set_Delta_Expression);
12592 pragma Inline (Set_Digits_Expression);
12593 pragma Inline (Set_Discr_Check_Funcs_Built);
12594 pragma Inline (Set_Discrete_Choices);
12595 pragma Inline (Set_Discrete_Range);
12596 pragma Inline (Set_Discrete_Subtype_Definition);
12597 pragma Inline (Set_Discrete_Subtype_Definitions);
12598 pragma Inline (Set_Discriminant_Specifications);
12599 pragma Inline (Set_Discriminant_Type);
12600 pragma Inline (Set_Do_Accessibility_Check);
12601 pragma Inline (Set_Do_Discriminant_Check);
12602 pragma Inline (Set_Do_Division_Check);
12603 pragma Inline (Set_Do_Length_Check);
12604 pragma Inline (Set_Do_Overflow_Check);
12605 pragma Inline (Set_Do_Range_Check);
12606 pragma Inline (Set_Do_Storage_Check);
12607 pragma Inline (Set_Do_Tag_Check);
12608 pragma Inline (Set_Elaborate_All_Desirable);
12609 pragma Inline (Set_Elaborate_All_Present);
12610 pragma Inline (Set_Elaborate_Desirable);
12611 pragma Inline (Set_Elaborate_Present);
12612 pragma Inline (Set_Elaboration_Boolean);
12613 pragma Inline (Set_Else_Actions);
12614 pragma Inline (Set_Else_Statements);
12615 pragma Inline (Set_Elsif_Parts);
12616 pragma Inline (Set_Enclosing_Variant);
12617 pragma Inline (Set_End_Label);
12618 pragma Inline (Set_End_Span);
12619 pragma Inline (Set_Entity);
12620 pragma Inline (Set_Entry_Body_Formal_Part);
12621 pragma Inline (Set_Entry_Call_Alternative);
12622 pragma Inline (Set_Entry_Call_Statement);
12623 pragma Inline (Set_Entry_Direct_Name);
12624 pragma Inline (Set_Entry_Index);
12625 pragma Inline (Set_Entry_Index_Specification);
12626 pragma Inline (Set_Etype);
12627 pragma Inline (Set_Exception_Choices);
12628 pragma Inline (Set_Exception_Handlers);
12629 pragma Inline (Set_Exception_Junk);
12630 pragma Inline (Set_Exception_Label);
12631 pragma Inline (Set_Expansion_Delayed);
12632 pragma Inline (Set_Explicit_Actual_Parameter);
12633 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12634 pragma Inline (Set_Expression);
12635 pragma Inline (Set_Expressions);
12636 pragma Inline (Set_First_Bit);
12637 pragma Inline (Set_First_Inlined_Subprogram);
12638 pragma Inline (Set_First_Name);
12639 pragma Inline (Set_First_Named_Actual);
12640 pragma Inline (Set_First_Real_Statement);
12641 pragma Inline (Set_First_Subtype_Link);
12642 pragma Inline (Set_Float_Truncate);
12643 pragma Inline (Set_Formal_Type_Definition);
12644 pragma Inline (Set_Forwards_OK);
12645 pragma Inline (Set_From_Aspect_Specification);
12646 pragma Inline (Set_From_At_End);
12647 pragma Inline (Set_From_At_Mod);
12648 pragma Inline (Set_From_Default);
12649 pragma Inline (Set_Generic_Associations);
12650 pragma Inline (Set_Generic_Formal_Declarations);
12651 pragma Inline (Set_Generic_Parent);
12652 pragma Inline (Set_Generic_Parent_Type);
12653 pragma Inline (Set_Handled_Statement_Sequence);
12654 pragma Inline (Set_Handler_List_Entry);
12655 pragma Inline (Set_Has_Created_Identifier);
12656 pragma Inline (Set_Has_Dereference_Action);
12657 pragma Inline (Set_Has_Dynamic_Length_Check);
12658 pragma Inline (Set_Has_Dynamic_Range_Check);
12659 pragma Inline (Set_Has_Init_Expression);
12660 pragma Inline (Set_Has_Local_Raise);
12661 pragma Inline (Set_Has_No_Elaboration_Code);
12662 pragma Inline (Set_Has_Pragma_Suppress_All);
12663 pragma Inline (Set_Has_Private_View);
12664 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12665 pragma Inline (Set_Has_Self_Reference);
12666 pragma Inline (Set_Has_SP_Choice);
12667 pragma Inline (Set_Has_Storage_Size_Pragma);
12668 pragma Inline (Set_Has_Wide_Character);
12669 pragma Inline (Set_Has_Wide_Wide_Character);
12670 pragma Inline (Set_Header_Size_Added);
12671 pragma Inline (Set_Hidden_By_Use_Clause);
12672 pragma Inline (Set_High_Bound);
12673 pragma Inline (Set_Identifier);
12674 pragma Inline (Set_Implicit_With);
12675 pragma Inline (Set_Import_Interface_Present);
12676 pragma Inline (Set_In_Assertion_Expression);
12677 pragma Inline (Set_In_Present);
12678 pragma Inline (Set_Includes_Infinities);
12679 pragma Inline (Set_Inherited_Discriminant);
12680 pragma Inline (Set_Instance_Spec);
12681 pragma Inline (Set_Interface_List);
12682 pragma Inline (Set_Interface_Present);
12683 pragma Inline (Set_Intval);
12684 pragma Inline (Set_Is_Accessibility_Actual);
12685 pragma Inline (Set_Is_Asynchronous_Call_Block);
12686 pragma Inline (Set_Is_Boolean_Aspect);
12687 pragma Inline (Set_Is_Checked);
12688 pragma Inline (Set_Is_Component_Left_Opnd);
12689 pragma Inline (Set_Is_Component_Right_Opnd);
12690 pragma Inline (Set_Is_Controlling_Actual);
12691 pragma Inline (Set_Is_Delayed_Aspect);
12692 pragma Inline (Set_Is_Disabled);
12693 pragma Inline (Set_Is_Dynamic_Coextension);
12694 pragma Inline (Set_Is_Elsif);
12695 pragma Inline (Set_Is_Entry_Barrier_Function);
12696 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12697 pragma Inline (Set_Is_Finalization_Wrapper);
12698 pragma Inline (Set_Is_Folded_In_Parser);
12699 pragma Inline (Set_Is_Ignored);
12700 pragma Inline (Set_Is_In_Discriminant_Check);
12701 pragma Inline (Set_Is_Machine_Number);
12702 pragma Inline (Set_Is_Null_Loop);
12703 pragma Inline (Set_Is_Overloaded);
12704 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12705 pragma Inline (Set_Is_Prefixed_Call);
12706 pragma Inline (Set_Is_Protected_Subprogram_Body);
12707 pragma Inline (Set_Is_Static_Coextension);
12708 pragma Inline (Set_Is_Static_Expression);
12709 pragma Inline (Set_Is_Subprogram_Descriptor);
12710 pragma Inline (Set_Is_Task_Allocation_Block);
12711 pragma Inline (Set_Is_Task_Master);
12712 pragma Inline (Set_Iteration_Scheme);
12713 pragma Inline (Set_Iterator_Specification);
12714 pragma Inline (Set_Itype);
12715 pragma Inline (Set_Kill_Range_Check);
12716 pragma Inline (Set_Label_Construct);
12717 pragma Inline (Set_Last_Bit);
12718 pragma Inline (Set_Last_Name);
12719 pragma Inline (Set_Left_Opnd);
12720 pragma Inline (Set_Library_Unit);
12721 pragma Inline (Set_Limited_Present);
12722 pragma Inline (Set_Limited_View_Installed);
12723 pragma Inline (Set_Literals);
12724 pragma Inline (Set_Local_Raise_Not_OK);
12725 pragma Inline (Set_Local_Raise_Statements);
12726 pragma Inline (Set_Loop_Actions);
12727 pragma Inline (Set_Loop_Parameter_Specification);
12728 pragma Inline (Set_Low_Bound);
12729 pragma Inline (Set_Mod_Clause);
12730 pragma Inline (Set_More_Ids);
12731 pragma Inline (Set_Must_Be_Byte_Aligned);
12732 pragma Inline (Set_Must_Not_Freeze);
12733 pragma Inline (Set_Must_Not_Override);
12734 pragma Inline (Set_Must_Override);
12735 pragma Inline (Set_Name);
12736 pragma Inline (Set_Names);
12737 pragma Inline (Set_Next_Entity);
12738 pragma Inline (Set_Next_Exit_Statement);
12739 pragma Inline (Set_Next_Implicit_With);
12740 pragma Inline (Set_Next_Named_Actual);
12741 pragma Inline (Set_Next_Pragma);
12742 pragma Inline (Set_Next_Rep_Item);
12743 pragma Inline (Set_Next_Use_Clause);
12744 pragma Inline (Set_No_Ctrl_Actions);
12745 pragma Inline (Set_No_Elaboration_Check);
12746 pragma Inline (Set_No_Entities_Ref_In_Spec);
12747 pragma Inline (Set_No_Initialization);
12748 pragma Inline (Set_No_Minimize_Eliminate);
12749 pragma Inline (Set_No_Truncation);
12750 pragma Inline (Set_Null_Exclusion_Present);
12751 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12752 pragma Inline (Set_Null_Present);
12753 pragma Inline (Set_Null_Record_Present);
12754 pragma Inline (Set_Object_Definition);
12755 pragma Inline (Set_Of_Present);
12756 pragma Inline (Set_Original_Discriminant);
12757 pragma Inline (Set_Original_Entity);
12758 pragma Inline (Set_Others_Discrete_Choices);
12759 pragma Inline (Set_Out_Present);
12760 pragma Inline (Set_Parameter_Associations);
12761 pragma Inline (Set_Parameter_List_Truncated);
12762 pragma Inline (Set_Parameter_Specifications);
12763 pragma Inline (Set_Parameter_Type);
12764 pragma Inline (Set_Parent_Spec);
12765 pragma Inline (Set_Position);
12766 pragma Inline (Set_Pragma_Argument_Associations);
12767 pragma Inline (Set_Pragma_Identifier);
12768 pragma Inline (Set_Pragmas_After);
12769 pragma Inline (Set_Pragmas_Before);
12770 pragma Inline (Set_Pre_Post_Conditions);
12771 pragma Inline (Set_Prefix);
12772 pragma Inline (Set_Premature_Use);
12773 pragma Inline (Set_Present_Expr);
12774 pragma Inline (Set_Prev_Ids);
12775 pragma Inline (Set_Print_In_Hex);
12776 pragma Inline (Set_Private_Declarations);
12777 pragma Inline (Set_Private_Present);
12778 pragma Inline (Set_Procedure_To_Call);
12779 pragma Inline (Set_Proper_Body);
12780 pragma Inline (Set_Protected_Definition);
12781 pragma Inline (Set_Protected_Present);
12782 pragma Inline (Set_Raises_Constraint_Error);
12783 pragma Inline (Set_Range_Constraint);
12784 pragma Inline (Set_Range_Expression);
12785 pragma Inline (Set_Real_Range_Specification);
12786 pragma Inline (Set_Realval);
12787 pragma Inline (Set_Reason);
12788 pragma Inline (Set_Record_Extension_Part);
12789 pragma Inline (Set_Redundant_Use);
12790 pragma Inline (Set_Renaming_Exception);
12791 pragma Inline (Set_Result_Definition);
12792 pragma Inline (Set_Return_Object_Declarations);
12793 pragma Inline (Set_Reverse_Present);
12794 pragma Inline (Set_Right_Opnd);
12795 pragma Inline (Set_Rounded_Result);
12796 pragma Inline (Set_SCIL_Controlling_Tag);
12797 pragma Inline (Set_SCIL_Entity);
12798 pragma Inline (Set_SCIL_Tag_Value);
12799 pragma Inline (Set_SCIL_Target_Prim);
12800 pragma Inline (Set_Scope);
12801 pragma Inline (Set_Select_Alternatives);
12802 pragma Inline (Set_Selector_Name);
12803 pragma Inline (Set_Selector_Names);
12804 pragma Inline (Set_Shift_Count_OK);
12805 pragma Inline (Set_Source_Type);
12806 pragma Inline (Set_Split_PPC);
12807 pragma Inline (Set_Statements);
12808 pragma Inline (Set_Storage_Pool);
12809 pragma Inline (Set_Strval);
12810 pragma Inline (Set_Subpool_Handle_Name);
12811 pragma Inline (Set_Subtype_Indication);
12812 pragma Inline (Set_Subtype_Mark);
12813 pragma Inline (Set_Subtype_Marks);
12814 pragma Inline (Set_Suppress_Assignment_Checks);
12815 pragma Inline (Set_Suppress_Loop_Warnings);
12816 pragma Inline (Set_Synchronized_Present);
12817 pragma Inline (Set_TSS_Elist);
12818 pragma Inline (Set_Tagged_Present);
12819 pragma Inline (Set_Target_Type);
12820 pragma Inline (Set_Task_Definition);
12821 pragma Inline (Set_Task_Present);
12822 pragma Inline (Set_Then_Actions);
12823 pragma Inline (Set_Then_Statements);
12824 pragma Inline (Set_Treat_Fixed_As_Integer);
12825 pragma Inline (Set_Triggering_Alternative);
12826 pragma Inline (Set_Triggering_Statement);
12827 pragma Inline (Set_Type_Definition);
12828 pragma Inline (Set_Unit);
12829 pragma Inline (Set_Unknown_Discriminants_Present);
12830 pragma Inline (Set_Unreferenced_In_Spec);
12831 pragma Inline (Set_Used_Operations);
12832 pragma Inline (Set_Variant_Part);
12833 pragma Inline (Set_Variants);
12834 pragma Inline (Set_Visible_Declarations);
12835 pragma Inline (Set_Was_Originally_Stub);
12836 pragma Inline (Set_Withed_Body);