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 till 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 -- In addition pragma Debug statements are removed from the tree (rewritten
553 -- to NULL stmt), since they should be taken into account in flow analysis.
555 -----------------------
556 -- Check Flag Fields --
557 -----------------------
559 -- The following flag fields appear in expression nodes:
565 -- These three flags are always set by the front end during semantic
566 -- analysis, on expression nodes that may trigger the corresponding
567 -- check. The front end then inserts or not the check during expansion. In
568 -- particular, these flags should also be correctly set in ASIS mode and
571 -- Note that this accounts for all nodes that trigger the corresponding
572 -- checks, except for range checks on subtype_indications, which may be
573 -- required to check that a range_constraint is compatible with the given
574 -- subtype (RM 3.2.2(11)).
576 -- The following flag fields appear in various nodes:
578 -- Do_Accessibility_Check
579 -- Do_Discriminant_Check
584 -- These flags are used in some specific cases by the front end, either
585 -- during semantic analysis or during expansion, and cannot be expected
586 -- to be set on all nodes that trigger the corresponding check.
588 ------------------------
589 -- Common Flag Fields --
590 ------------------------
592 -- The following flag fields appear in all nodes:
595 -- This flag is used to indicate that a node (and all its children have
596 -- been analyzed. It is used to avoid reanalysis of a node that has
597 -- already been analyzed, both for efficiency and functional correctness
601 -- This flag is set if the node comes directly from an explicit construct
602 -- in the source. It is normally on for any nodes built by the scanner or
603 -- parser from the source program, with the exception that in a few cases
604 -- the parser adds nodes to normalize the representation (in particular
605 -- a null statement is added to a package body if there is no begin/end
606 -- initialization section.
608 -- Most nodes inserted by the analyzer or expander are not considered
609 -- as coming from source, so the flag is off for such nodes. In a few
610 -- cases, the expander constructs nodes closely equivalent to nodes
611 -- from the source program (e.g. the allocator built for build-in-place
612 -- case), and the Comes_From_Source flag is deliberately set.
615 -- This flag is used to avoid multiple error messages being posted on or
616 -- referring to the same node. This flag is set if an error message
617 -- refers to a node or is posted on its source location, and has the
618 -- effect of inhibiting further messages involving this same node.
620 -----------------------
621 -- Modify_Tree_For_C --
622 -----------------------
624 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
625 -- in ways that help match the semantics better with C, easing the task of
626 -- interfacing to C code generators (other than GCC, where the work is done
627 -- in gigi, and there is no point in changing that), and also making life
628 -- easier for Cprint in generating C source code.
630 -- The current modifications implemented are as follows:
632 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
633 -- are eliminated from the tree (since these operations do not exist in
634 -- C), and the operations are rewritten in terms of logical shifts and
635 -- other logical operations that do exist in C. See Exp_Ch4 expansion
636 -- routines for these operators for details of the transformations made.
638 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
639 -- less than the word size (since other values are not well-defined in
640 -- C). This is done using an explicit test if necessary.
642 -- Min and Max attributes are expanded into equivalent if expressions,
643 -- dealing properly with side effect issues.
645 ------------------------------------
646 -- Description of Semantic Fields --
647 ------------------------------------
649 -- The meaning of the syntactic fields is generally clear from their names
650 -- without any further description, since the names are chosen to
651 -- correspond very closely to the syntax in the reference manual. This
652 -- section describes the usage of the semantic fields, which are used to
653 -- contain additional information determined during semantic analysis.
655 -- ABE_Is_Certain (Flag18-Sem)
656 -- This flag is set in an instantiation node or a call node is determined
657 -- to be sure to raise an ABE. This is used to trigger special handling
658 -- of such cases, particularly in the instantiation case where we avoid
659 -- instantiating the body if this flag is set. This flag is also present
660 -- in an N_Formal_Package_Declaration_Node since formal package
661 -- declarations are treated like instantiations, but it is always set to
662 -- False in this context.
664 -- Accept_Handler_Records (List5-Sem)
665 -- This field is present only in an N_Accept_Alternative node. It is used
666 -- to temporarily hold the exception handler records from an accept
667 -- statement in a selective accept. These exception handlers will
668 -- eventually be placed in the Handler_Records list of the procedure
669 -- built for this accept (see Expand_N_Selective_Accept procedure in
670 -- Exp_Ch9 for further details).
672 -- Access_Types_To_Process (Elist2-Sem)
673 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
674 -- Contains the list of access types which may require specific treatment
675 -- when the nature of the type completion is completely known. An example
676 -- of such treatment is the generation of the associated_final_chain.
678 -- Actions (List1-Sem)
679 -- This field contains a sequence of actions that are associated with the
680 -- node holding the field. See the individual node types for details of
681 -- how this field is used, as well as the description of the specific use
682 -- for a particular node type.
684 -- Activation_Chain_Entity (Node3-Sem)
685 -- This is used in tree nodes representing task activators (blocks,
686 -- subprogram bodies, package declarations, and task bodies). It is
687 -- initially Empty, and then gets set to point to the entity for the
688 -- declared Activation_Chain variable when the first task is declared.
689 -- When tasks are declared in the corresponding declarative region this
690 -- entity is located by name (its name is always _Chain) and the declared
691 -- tasks are added to the chain. Note that N_Extended_Return_Statement
692 -- does not have this attribute, although it does have an activation
693 -- chain. This chain is used to store the tasks temporarily, and is not
694 -- used for activating them. On successful completion of the return
695 -- statement, the tasks are moved to the caller's chain, and the caller
698 -- Acts_As_Spec (Flag4-Sem)
699 -- A flag set in the N_Subprogram_Body node for a subprogram body which
700 -- is acting as its own spec, except in the case of a library level
701 -- subprogram, in which case the flag is set on the parent compilation
702 -- unit node instead.
704 -- Actual_Designated_Subtype (Node4-Sem)
705 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
706 -- needs to known the dynamic constrained subtype of the designated
707 -- object, this attribute is set to that type. This is done for
708 -- N_Free_Statements for access-to-classwide types and access to
709 -- unconstrained packed array types, and for N_Explicit_Dereference when
710 -- the designated type is an unconstrained packed array and the
711 -- dereference is the prefix of a 'Size attribute reference.
713 -- Address_Warning_Posted (Flag18-Sem)
714 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
715 -- posted a warning for the address clause regarding size or alignment
716 -- issues. Used to inhibit multiple redundant messages.
718 -- Aggregate_Bounds (Node3-Sem)
719 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
720 -- known at compile time, this field points to an N_Range node with those
721 -- bounds. Otherwise Empty.
723 -- All_Others (Flag11-Sem)
724 -- Present in an N_Others_Choice node. This flag is set for an others
725 -- exception where all exceptions are to be caught, even those that are
726 -- not normally handled (in particular the tasking abort signal). This
727 -- is used for translation of the at end handler into a normal exception
730 -- Aspect_Rep_Item (Node2-Sem)
731 -- Present in N_Aspect_Specification nodes. Points to the corresponding
732 -- pragma/attribute definition node used to process the aspect.
734 -- Assignment_OK (Flag15-Sem)
735 -- This flag is set in a subexpression node for an object, indicating
736 -- that the associated object can be modified, even if this would not
737 -- normally be permissible (either by direct assignment, or by being
738 -- passed as an out or in-out parameter). This is used by the expander
739 -- for a number of purposes, including initialization of constants and
740 -- limited type objects (such as tasks), setting discriminant fields,
741 -- setting tag values, etc. N_Object_Declaration nodes also have this
742 -- flag defined. Here it is used to indicate that an initialization
743 -- expression is valid, even where it would normally not be allowed
744 -- (e.g. where the type involved is limited).
746 -- Associated_Node (Node4-Sem)
747 -- Present in nodes that can denote an entity: identifiers, character
748 -- literals, operator symbols, expanded names, operator nodes, and
749 -- attribute reference nodes (all these nodes have an Entity field).
750 -- This field is also present in N_Aggregate, N_Selected_Component, and
751 -- N_Extension_Aggregate nodes. This field is used in generic processing
752 -- to create links between the generic template and the generic copy.
753 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
754 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
755 -- the normal function of Entity is not required at the point where the
756 -- Associated_Node is set. Note also, that in generic templates, this
757 -- means that the Entity field does not necessarily point to an Entity.
758 -- Since the back end is expected to ignore generic templates, this is
761 -- Atomic_Sync_Required (Flag14-Sem)
762 -- This flag is set on a node for which atomic synchronization is
763 -- required for the corresponding reference or modification.
765 -- At_End_Proc (Node1)
766 -- This field is present in an N_Handled_Sequence_Of_Statements node.
767 -- It contains an identifier reference for the cleanup procedure to be
768 -- called. See description of this node for further details.
770 -- Backwards_OK (Flag6-Sem)
771 -- A flag present in the N_Assignment_Statement node. It is used only
772 -- if the type being assigned is an array type, and is set if analysis
773 -- determines that it is definitely safe to do the copy backwards, i.e.
774 -- starting at the highest addressed element. This is the case if either
775 -- the operands do not overlap, or they may overlap, but if they do,
776 -- then the left operand is at a higher address than the right operand.
778 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
779 -- means that the front end could not determine that either direction is
780 -- definitely safe, and a runtime check may be required if the backend
781 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
782 -- set, it means that the front end can assure no overlap of operands.
784 -- Body_To_Inline (Node3-Sem)
785 -- present in subprogram declarations. Denotes analyzed but unexpanded
786 -- body of subprogram, to be used when inlining calls. Present when the
787 -- subprogram has an Inline pragma and inlining is enabled. If the
788 -- declaration is completed by a renaming_as_body, and the renamed en-
789 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
790 -- which is used directly in later calls to the original subprogram.
792 -- Body_Required (Flag13-Sem)
793 -- A flag that appears in the N_Compilation_Unit node indicating that
794 -- the corresponding unit requires a body. For the package case, this
795 -- indicates that a completion is required. In Ada 95, if the flag is not
796 -- set for the package case, then a body may not be present. In Ada 83,
797 -- if the flag is not set for the package case, then body is optional.
798 -- For a subprogram declaration, the flag is set except in the case where
799 -- a pragma Import or Interface applies, in which case no body is
800 -- permitted (in Ada 83 or Ada 95).
802 -- By_Ref (Flag5-Sem)
803 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
804 -- this flag is set when the returned expression is already allocated on
805 -- the secondary stack and thus the result is passed by reference rather
806 -- than copied another time.
808 -- Check_Address_Alignment (Flag11-Sem)
809 -- A flag present in N_Attribute_Definition clause for a 'Address
810 -- attribute definition. This flag is set if a dynamic check should be
811 -- generated at the freeze point for the entity to which this address
812 -- clause applies. The reason that we need this flag is that we want to
813 -- check for range checks being suppressed at the point where the
814 -- attribute definition clause is given, rather than testing this at the
817 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
818 -- Present in N_Simple_Return_Statement nodes. True if this node was
819 -- constructed as part of the N_Extended_Return_Statement expansion.
821 -- Compile_Time_Known_Aggregate (Flag18-Sem)
822 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
823 -- evaluated at compile time without raising constraint error. Such
824 -- aggregates can be passed as is the back end without any expansion.
825 -- See Exp_Aggr for specific conditions under which this flag gets set.
827 -- Componentwise_Assignment (Flag14-Sem)
828 -- Present in N_Assignment_Statement nodes. Set for a record assignment
829 -- where all that needs doing is to expand it into component-by-component
830 -- assignments. This is used internally for the case of tagged types with
831 -- rep clauses, where we need to avoid recursion (we don't want to try to
832 -- generate a call to the primitive operation, because this is the case
833 -- where we are compiling the primitive operation). Note that when we are
834 -- expanding component assignments in this case, we never assign the _tag
835 -- field, but we recursively assign components of the parent type.
837 -- Condition_Actions (List3-Sem)
838 -- This field appears in else-if nodes and in the iteration scheme node
839 -- for while loops. This field is only used during semantic processing to
840 -- temporarily hold actions inserted into the tree. In the tree passed
841 -- to gigi, the condition actions field is always set to No_List. For
842 -- details on how this field is used, see the routine Insert_Actions in
843 -- package Exp_Util, and also the expansion routines for the relevant
846 -- Context_Pending (Flag16-Sem)
847 -- This field appears in Compilation_Unit nodes, to indicate that the
848 -- context of the unit is being compiled. Used to detect circularities
849 -- that are not otherwise detected by the loading mechanism. Such
850 -- circularities can occur in the presence of limited and non-limited
851 -- with_clauses that mention the same units.
853 -- Controlling_Argument (Node1-Sem)
854 -- This field is set in procedure and function call nodes if the call
855 -- is a dispatching call (it is Empty for a non-dispatching call). It
856 -- indicates the source of the call's controlling tag. For procedure
857 -- calls, the Controlling_Argument is one of the actuals. For function
858 -- that has a dispatching result, it is an entity in the context of the
859 -- call that can provide a tag, or else it is the tag of the root type
860 -- of the class. It can also specify a tag directly rather than being a
861 -- tagged object. The latter is needed by the implementations of AI-239
864 -- Conversion_OK (Flag14-Sem)
865 -- A flag set on type conversion nodes to indicate that the conversion
866 -- is to be considered as being valid, even though it is the case that
867 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
868 -- Fixed_Value and Integer_Value, for internal conversions done for
869 -- fixed-point operations, and for certain conversions for calls to
870 -- initialization procedures. If Conversion_OK is set, then Etype must be
871 -- set (the analyzer assumes that Etype has been set). For the case of
872 -- fixed-point operands, it also indicates that the conversion is to be
873 -- direct conversion of the underlying integer result, with no regard to
874 -- the small operand.
876 -- Convert_To_Return_False (Flag13-Sem)
877 -- Present in N_Raise_Expression nodes that appear in the body of the
878 -- special predicateM function used to test a predicate in the context
879 -- of a membership test, where raise expression results in returning a
880 -- value of False rather than raising an exception.
882 -- Corresponding_Aspect (Node3-Sem)
883 -- Present in N_Pragma node. Used to point back to the source aspect from
884 -- the corresponding pragma. This field is Empty for source pragmas.
886 -- Corresponding_Body (Node5-Sem)
887 -- This field is set in subprogram declarations, package declarations,
888 -- entry declarations of protected types, and in generic units. It points
889 -- to the defining entity for the corresponding body (NOT the node for
892 -- Corresponding_Formal_Spec (Node3-Sem)
893 -- This field is set in subprogram renaming declarations, where it points
894 -- to the defining entity for a formal subprogram in the case where the
895 -- renaming corresponds to a generic formal subprogram association in an
896 -- instantiation. The field is Empty if the renaming does not correspond
897 -- to such a formal association.
899 -- Corresponding_Generic_Association (Node5-Sem)
900 -- This field is defined for object declarations and object renaming
901 -- declarations. It is set for the declarations within an instance that
902 -- map generic formals to their actuals. If set, the field points to
903 -- a generic_association which is the original parent of the expression
904 -- or name appearing in the declaration. This simplifies ASIS queries.
906 -- Corresponding_Integer_Value (Uint4-Sem)
907 -- This field is set in real literals of fixed-point types (it is not
908 -- used for floating-point types). It contains the integer value used
909 -- to represent the fixed-point value. It is also set on the universal
910 -- real literals used to represent bounds of fixed-point base types
911 -- and their first named subtypes.
913 -- Corresponding_Spec (Node5-Sem)
914 -- This field is set in subprogram, package, task, and protected body
915 -- nodes, where it points to the defining entity in the corresponding
916 -- spec. The attribute is also set in N_With_Clause nodes where it points
917 -- to the defining entity for the with'ed spec, and in a subprogram
918 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
919 -- if there is no corresponding spec, as in the case of a subprogram body
920 -- that serves as its own spec.
922 -- In Ada 2012, Corresponding_Spec is set on expression functions that
923 -- complete a subprogram declaration.
925 -- Corresponding_Spec_Of_Stub (Node2-Sem)
926 -- This field is present in subprogram, package, task and protected body
927 -- stubs where it points to the corresponding spec of the stub. Due to
928 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
930 -- Corresponding_Stub (Node3-Sem)
931 -- This field is present in an N_Subunit node. It holds the node in
932 -- the parent unit that is the stub declaration for the subunit. It is
933 -- set when analysis of the stub forces loading of the proper body. If
934 -- expansion of the proper body creates new declarative nodes, they are
935 -- inserted at the point of the corresponding_stub.
937 -- Dcheck_Function (Node5-Sem)
938 -- This field is present in an N_Variant node, It references the entity
939 -- for the discriminant checking function for the variant.
941 -- Default_Expression (Node5-Sem)
942 -- This field is Empty if there is no default expression. If there is a
943 -- simple default expression (one with no side effects), then this field
944 -- simply contains a copy of the Expression field (both point to the tree
945 -- for the default expression). Default_Expression is used for
946 -- conformance checking.
948 -- Default_Storage_Pool (Node3-Sem)
949 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
950 -- copy of Opt.Default_Pool at the end of the compilation unit. See
951 -- package Opt for details. This is used for inheriting the
952 -- Default_Storage_Pool in child units.
954 -- Discr_Check_Funcs_Built (Flag11-Sem)
955 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
956 -- discriminant checking functions are constructed. The purpose is to
957 -- avoid attempting to set these functions more than once.
959 -- Do_Accessibility_Check (Flag13-Sem)
960 -- This flag is set on N_Parameter_Specification nodes to indicate
961 -- that an accessibility check is required for the parameter. It is
962 -- not yet decided who takes care of this check (TBD ???).
964 -- Do_Discriminant_Check (Flag1-Sem)
965 -- This flag is set on N_Selected_Component nodes to indicate that a
966 -- discriminant check is required using the discriminant check routine
967 -- associated with the selector. The actual check is generated by the
968 -- expander when processing selected components. In the case of
969 -- Unchecked_Union, the flag is also set, but no discriminant check
970 -- routine is associated with the selector, and the expander does not
971 -- generate a check. This flag is also present in assignment statements
972 -- (and set if the assignment requires a discriminant check), and in type
973 -- conversion nodes (and set if the conversion requires a check).
975 -- Do_Division_Check (Flag13-Sem)
976 -- This flag is set on a division operator (/ mod rem) to indicate
977 -- that a zero divide check is required. The actual check is dealt
978 -- with by the backend (all the front end does is to set the flag).
980 -- Do_Length_Check (Flag4-Sem)
981 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
982 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
983 -- is required. It is not determined who deals with this flag (???).
985 -- Do_Overflow_Check (Flag17-Sem)
986 -- This flag is set on an operator where an overflow check is required on
987 -- the operation. The actual check is dealt with by the backend (all the
988 -- front end does is to set the flag). The other cases where this flag is
989 -- used is on a Type_Conversion node and for attribute reference nodes.
990 -- For a type conversion, it means that the conversion is from one base
991 -- type to another, and the value may not fit in the target base type.
992 -- See also the description of Do_Range_Check for this case. The only
993 -- attribute references which use this flag are Pred and Succ, where it
994 -- means that the result should be checked for going outside the base
995 -- range. Note that this flag is not set for modular types. This flag is
996 -- also set on if and case expression nodes if we are operating in either
997 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
998 -- properly process overflow checking for dependent expressions).
1000 -- Do_Range_Check (Flag9-Sem)
1001 -- This flag is set on an expression which appears in a context where a
1002 -- range check is required. The target type is clear from the context.
1003 -- The contexts in which this flag can appear are the following:
1005 -- Right side of an assignment. In this case the target type is
1006 -- taken from the left side of the assignment, which is referenced
1007 -- by the Name of the N_Assignment_Statement node.
1009 -- Subscript expressions in an indexed component. In this case the
1010 -- target type is determined from the type of the array, which is
1011 -- referenced by the Prefix of the N_Indexed_Component node.
1013 -- Argument expression for a parameter, appearing either directly in
1014 -- the Parameter_Associations list of a call or as the Expression of an
1015 -- N_Parameter_Association node that appears in this list. In either
1016 -- case, the check is against the type of the formal. Note that the
1017 -- flag is relevant only in IN and IN OUT parameters, and will be
1018 -- ignored for OUT parameters, where no check is required in the call,
1019 -- and if a check is required on the return, it is generated explicitly
1020 -- with a type conversion.
1022 -- Initialization expression for the initial value in an object
1023 -- declaration. In this case the Do_Range_Check flag is set on
1024 -- the initialization expression, and the check is against the
1025 -- range of the type of the object being declared.
1027 -- The expression of a type conversion. In this case the range check is
1028 -- against the target type of the conversion. See also the use of
1029 -- Do_Overflow_Check on a type conversion. The distinction is that the
1030 -- overflow check protects against a value that is outside the range of
1031 -- the target base type, whereas a range check checks that the
1032 -- resulting value (which is a value of the base type of the target
1033 -- type), satisfies the range constraint of the target type.
1035 -- Note: when a range check is required in contexts other than those
1036 -- listed above (e.g. in a return statement), an additional type
1037 -- conversion node is introduced to represent the required check.
1039 -- A special case arises for the arguments of the Pred/Succ attributes.
1040 -- Here the range check needed is against First + 1 .. Last (Pred) or
1041 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1042 -- these checks are what would be performed within the implicit body of
1043 -- the functions that correspond to these attributes. In these cases,
1044 -- the Do_Range check flag is set on the argument to the attribute
1045 -- function, and the back end must special case the appropriate range
1046 -- to check against.
1048 -- Do_Storage_Check (Flag17-Sem)
1049 -- This flag is set in an N_Allocator node to indicate that a storage
1050 -- check is required for the allocation, or in an N_Subprogram_Body node
1051 -- to indicate that a stack check is required in the subprogram prolog.
1052 -- The N_Allocator case is handled by the routine that expands the call
1053 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1054 -- backend, and all the semantics does is set the flag.
1056 -- Do_Tag_Check (Flag13-Sem)
1057 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1058 -- N_Procedure_Call_Statement, N_Type_Conversion,
1059 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1060 -- node to indicate that the tag check can be suppressed. It is not
1061 -- yet decided how this flag is used (TBD ???).
1063 -- Elaborate_Present (Flag4-Sem)
1064 -- This flag is set in the N_With_Clause node to indicate that pragma
1065 -- Elaborate pragma appears for the with'ed units.
1067 -- Elaborate_All_Desirable (Flag9-Sem)
1068 -- This flag is set in the N_With_Clause mode to indicate that the static
1069 -- elaboration processing has determined that an Elaborate_All pragma is
1070 -- desirable for correct elaboration for this unit.
1072 -- Elaborate_All_Present (Flag14-Sem)
1073 -- This flag is set in the N_With_Clause node to indicate that a
1074 -- pragma Elaborate_All pragma appears for the with'ed units.
1076 -- Elaborate_Desirable (Flag11-Sem)
1077 -- This flag is set in the N_With_Clause mode to indicate that the static
1078 -- elaboration processing has determined that an Elaborate pragma is
1079 -- desirable for correct elaboration for this unit.
1081 -- Elaboration_Boolean (Node2-Sem)
1082 -- This field is present in function and procedure specification nodes.
1083 -- If set, it points to the entity for a Boolean flag that must be tested
1084 -- for certain calls to check for access before elaboration. See body of
1085 -- Sem_Elab for further details. This field is Empty if no elaboration
1086 -- boolean is required.
1088 -- Else_Actions (List3-Sem)
1089 -- This field is present in if expression nodes. During code
1090 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1091 -- actions at an appropriate place in the tree to get elaborated at the
1092 -- right time. For if expressions, we have to be sure that the actions
1093 -- for the Else branch are only elaborated if the condition is False.
1094 -- The Else_Actions field is used as a temporary parking place for
1095 -- these actions. The final tree is always rewritten to eliminate the
1096 -- need for this field, so in the tree passed to Gigi, this field is
1097 -- always set to No_List.
1099 -- Enclosing_Variant (Node2-Sem)
1100 -- This field is present in the N_Variant node and identifies the Node_Id
1101 -- corresponding to the immediately enclosing variant when the variant is
1102 -- nested, and N_Empty otherwise. Set during semantic processing of the
1103 -- variant part of a record type.
1105 -- Entity (Node4-Sem)
1106 -- Appears in all direct names (identifiers, character literals, and
1107 -- operator symbols), as well as expanded names, and attributes that
1108 -- denote entities, such as 'Class. Points to entity for corresponding
1109 -- defining occurrence. Set after name resolution. For identifiers in a
1110 -- WITH list, the corresponding defining occurrence is in a separately
1111 -- compiled file, and Entity must be set by the library Load procedure.
1113 -- Note: During name resolution, the value in Entity may be temporarily
1114 -- incorrect (e.g. during overload resolution, Entity is initially set to
1115 -- the first possible correct interpretation, and then later modified if
1116 -- necessary to contain the correct value after resolution).
1118 -- Note: This field overlaps Associated_Node, which is used during
1119 -- generic processing (see Sem_Ch12 for details). Note also that in
1120 -- generic templates, this means that the Entity field does not always
1121 -- point to an Entity. Since the back end is expected to ignore generic
1122 -- templates, this is harmless.
1124 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1125 -- It is used only for stream attributes definition clauses. In this
1126 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1127 -- conceptually at the point of the clause. Thus the visibility of the
1128 -- attribute definition clause (in the sense of 8.3(23) as amended by
1129 -- AI-195) can be checked by testing the visibility of that subprogram.
1131 -- Note: Normally the Entity field of an identifier points to the entity
1132 -- for the corresponding defining identifier, and hence the Chars field
1133 -- of an identifier will match the Chars field of the entity. However,
1134 -- there is no requirement that these match, and there are obscure cases
1135 -- of generated code where they do not match.
1137 -- Note: Ada 2012 aspect specifications require additional links between
1138 -- identifiers and various attributes. These attributes can be of
1139 -- arbitrary types, and the entity field of identifiers that denote
1140 -- aspects must be used to store arbitrary expressions for later semantic
1141 -- checks. See section on aspect specifications for details.
1143 -- Entity_Or_Associated_Node (Node4-Sem)
1144 -- A synonym for both Entity and Associated_Node. Used by convention in
1145 -- the code when referencing this field in cases where it is not known
1146 -- whether the field contains an Entity or an Associated_Node.
1148 -- Etype (Node5-Sem)
1149 -- Appears in all expression nodes, all direct names, and all entities.
1150 -- Points to the entity for the related type. Set after type resolution.
1151 -- Normally this is the actual subtype of the expression. However, in
1152 -- certain contexts such as the right side of an assignment, subscripts,
1153 -- arguments to calls, returned value in a function, initial value etc.
1154 -- it is the desired target type. In the event that this is different
1155 -- from the actual type, the Do_Range_Check flag will be set if a range
1156 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1157 -- points to an essentially arbitrary choice from the possible set of
1160 -- Exception_Junk (Flag8-Sem)
1161 -- This flag is set in a various nodes appearing in a statement sequence
1162 -- to indicate that the corresponding node is an artifact of the
1163 -- generated code for exception handling, and should be ignored when
1164 -- analyzing the control flow of the relevant sequence of statements
1165 -- (e.g. to check that it does not end with a bad return statement).
1167 -- Exception_Label (Node5-Sem)
1168 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1169 -- to be used for transforming the corresponding exception into a goto,
1170 -- or contains Empty, if this exception is not to be transformed. Also
1171 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1172 -- that there may be a local raise for the handler, so that expansion
1173 -- to allow a goto is required (and this field contains the label for
1174 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1176 -- Expansion_Delayed (Flag11-Sem)
1177 -- Set on aggregates and extension aggregates that need a top-down rather
1178 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1179 -- up. For nested aggregates the expansion is delayed until the enclosing
1180 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1181 -- delay it we set this flag. This is done to avoid creating a temporary
1182 -- for each level of a nested aggregates, and also to prevent the
1183 -- premature generation of constraint checks. This is also a requirement
1184 -- if we want to generate the proper attachment to the internal
1185 -- finalization lists (for record with controlled components). Top down
1186 -- expansion of aggregates is also used for in-place array aggregate
1187 -- assignment or initialization. When the full context is known, the
1188 -- target of the assignment or initialization is used to generate the
1189 -- left-hand side of individual assignment to each sub-component.
1191 -- First_Inlined_Subprogram (Node3-Sem)
1192 -- Present in the N_Compilation_Unit node for the main program. Points
1193 -- to a chain of entities for subprograms that are to be inlined. The
1194 -- Next_Inlined_Subprogram field of these entities is used as a link
1195 -- pointer with Empty marking the end of the list. This field is Empty
1196 -- if there are no inlined subprograms or inlining is not active.
1198 -- First_Named_Actual (Node4-Sem)
1199 -- Present in procedure call statement and function call nodes, and also
1200 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1201 -- named parameter where parameters are ordered by declaration order (as
1202 -- opposed to the actual order in the call which may be different due to
1203 -- named associations). Note: this field points to the explicit actual
1204 -- parameter itself, not the N_Parameter_Association node (its parent).
1206 -- First_Real_Statement (Node2-Sem)
1207 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1208 -- Empty. Used only when declarations are moved into the statement part
1209 -- of a construct as a result of wrapping an AT END handler that is
1210 -- required to cover the declarations. In this case, this field is used
1211 -- to remember the location in the statements list of the first real
1212 -- statement, i.e. the statement that used to be first in the statement
1213 -- list before the declarations were prepended.
1215 -- First_Subtype_Link (Node5-Sem)
1216 -- Present in N_Freeze_Entity node for an anonymous base type that is
1217 -- implicitly created by the declaration of a first subtype. It points
1218 -- to the entity for the first subtype.
1220 -- Float_Truncate (Flag11-Sem)
1221 -- A flag present in type conversion nodes. This is used for float to
1222 -- integer conversions where truncation is required rather than rounding.
1223 -- Note that Gigi does not handle type conversions from real to integer
1224 -- with rounding (see Expand_N_Type_Conversion).
1226 -- Forwards_OK (Flag5-Sem)
1227 -- A flag present in the N_Assignment_Statement node. It is used only
1228 -- if the type being assigned is an array type, and is set if analysis
1229 -- determines that it is definitely safe to do the copy forwards, i.e.
1230 -- starting at the lowest addressed element. This is the case if either
1231 -- the operands do not overlap, or they may overlap, but if they do,
1232 -- then the left operand is at a lower address than the right operand.
1234 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1235 -- means that the front end could not determine that either direction is
1236 -- definitely safe, and a runtime check may be required if the backend
1237 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1238 -- set, it means that the front end can assure no overlap of operands.
1240 -- From_Aspect_Specification (Flag13-Sem)
1241 -- Processing of aspect specifications typically results in insertion in
1242 -- the tree of corresponding pragma or attribute definition clause nodes.
1243 -- These generated nodes have the From_Aspect_Specification flag set to
1244 -- indicate that they came from aspect specifications originally.
1246 -- From_At_End (Flag4-Sem)
1247 -- This flag is set on an N_Raise_Statement node if it corresponds to
1248 -- the reraise statement generated as the last statement of an AT END
1249 -- handler when SJLJ exception handling is active. It is used to stop
1250 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1251 -- because if the restriction is set, the reraise is not generated.
1253 -- From_At_Mod (Flag4-Sem)
1254 -- This flag is set on the attribute definition clause node that is
1255 -- generated by a transformation of an at mod phrase in a record
1256 -- representation clause. This is used to give slightly different (Ada 83
1257 -- compatible) semantics to such a clause, namely it is used to specify a
1258 -- minimum acceptable alignment for the base type and all subtypes. In
1259 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1260 -- must be a multiple of the given value, and the representation clause
1261 -- is considered to be type specific instead of subtype specific.
1263 -- From_Default (Flag6-Sem)
1264 -- This flag is set on the subprogram renaming declaration created in an
1265 -- instance for a formal subprogram, when the formal is declared with a
1266 -- box, and there is no explicit actual. If the flag is present, the
1267 -- declaration is treated as an implicit reference to the formal in the
1270 -- Generic_Parent (Node5-Sem)
1271 -- Generic_Parent is defined on declaration nodes that are instances. The
1272 -- value of Generic_Parent is the generic entity from which the instance
1273 -- is obtained. Generic_Parent is also defined for the renaming
1274 -- declarations and object declarations created for the actuals in an
1275 -- instantiation. The generic parent of such a declaration is the
1276 -- corresponding generic association in the Instantiation node.
1278 -- Generic_Parent_Type (Node4-Sem)
1279 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1280 -- actuals of formal private and derived types. Within the instance, the
1281 -- operations on the actual are those inherited from the parent. For a
1282 -- formal private type, the parent type is the generic type itself. The
1283 -- Generic_Parent_Type is also used in an instance to determine whether a
1284 -- private operation overrides an inherited one.
1286 -- Handler_List_Entry (Node2-Sem)
1287 -- This field is present in N_Object_Declaration nodes. It is set only
1288 -- for the Handler_Record entry generated for an exception in zero cost
1289 -- exception handling mode. It references the corresponding item in the
1290 -- handler list, and is used to delete this entry if the corresponding
1291 -- handler is deleted during optimization. For further details on why
1292 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1294 -- Has_Dereference_Action (Flag13-Sem)
1295 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1296 -- indicate that the expansion has aready produced a call to primitive
1297 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1298 -- Such dereference actions are produced for debugging purposes.
1300 -- Has_Dynamic_Length_Check (Flag10-Sem)
1301 -- This flag is present in all expression nodes. It is set to indicate
1302 -- that one of the routines in unit Checks has generated a length check
1303 -- action which has been inserted at the flagged node. This is used to
1304 -- avoid the generation of duplicate checks.
1306 -- Has_Dynamic_Range_Check (Flag12-Sem)
1307 -- This flag is present in N_Subtype_Declaration nodes and on all
1308 -- expression nodes. It is set to indicate that one of the routines in
1309 -- unit Checks has generated a range check action which has been inserted
1310 -- at the flagged node. This is used to avoid the generation of duplicate
1311 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1312 -- it mean in that context???
1314 -- Has_Local_Raise (Flag8-Sem)
1315 -- Present in exception handler nodes. Set if the handler can be entered
1316 -- via a local raise that gets transformed to a goto statement. This will
1317 -- always be set if Local_Raise_Statements is non-empty, but can also be
1318 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1319 -- nodes requiring generation of back end checks.
1321 -- Has_No_Elaboration_Code (Flag17-Sem)
1322 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1323 -- or not elaboration code is present for this unit. It is initially set
1324 -- true for subprogram specs and bodies and for all generic units and
1325 -- false for non-generic package specs and bodies. Gigi may set the flag
1326 -- in the non-generic package case if it determines that no elaboration
1327 -- code is generated. Note that this flag is not related to the
1328 -- Is_Preelaborated status, there can be preelaborated packages that
1329 -- generate elaboration code, and non-preelaborated packages which do
1330 -- not generate elaboration code.
1332 -- Has_Pragma_Suppress_All (Flag14-Sem)
1333 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1334 -- pragma appears anywhere in the unit. This accommodates the rather
1335 -- strange placement rules of other compilers (DEC permits it at the
1336 -- end of a unit, and Rational allows it as a program unit pragma). We
1337 -- allow it anywhere at all, and consider it equivalent to a pragma
1338 -- Suppress (All_Checks) appearing at the start of the configuration
1339 -- pragmas for the unit.
1341 -- Has_Private_View (Flag11-Sem)
1342 -- A flag present in generic nodes that have an entity, to indicate that
1343 -- the node has a private type. Used to exchange private and full
1344 -- declarations if the visibility at instantiation is different from the
1345 -- visibility at generic definition.
1347 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1348 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1349 -- flag the presence of a pragma Relative_Deadline.
1351 -- Has_Self_Reference (Flag13-Sem)
1352 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1353 -- of the expressions contains an access attribute reference to the
1354 -- enclosing type. Such a self-reference can only appear in default-
1355 -- initialized aggregate for a record type.
1357 -- Has_SP_Choice (Flag15-Sem)
1358 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1359 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1360 -- True if the Discrete_Choices list has at least one occurrence of a
1361 -- statically predicated subtype.
1363 -- Has_Storage_Size_Pragma (Flag5-Sem)
1364 -- A flag present in an N_Task_Definition node to flag the presence of a
1365 -- Storage_Size pragma.
1367 -- Has_Wide_Character (Flag11-Sem)
1368 -- Present in string literals, set if any wide character (i.e. character
1369 -- code outside the Character range but within Wide_Character range)
1370 -- appears in the string. Used to implement pragma preference rules.
1372 -- Has_Wide_Wide_Character (Flag13-Sem)
1373 -- Present in string literals, set if any wide character (i.e. character
1374 -- code outside the Wide_Character range) appears in the string. Used to
1375 -- implement pragma preference rules.
1377 -- Header_Size_Added (Flag11-Sem)
1378 -- Present in N_Attribute_Reference nodes, set only for attribute
1379 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1380 -- hidden list header used by the runtime finalization support has been
1381 -- added to the size of the prefix. The flag also prevents the infinite
1382 -- expansion of the same attribute in the said context.
1384 -- Hidden_By_Use_Clause (Elist4-Sem)
1385 -- An entity list present in use clauses that appear within
1386 -- instantiations. For the resolution of local entities, entities
1387 -- introduced by these use clauses have priority over global ones, and
1388 -- outer entities must be explicitly hidden/restored on exit.
1390 -- Implicit_With (Flag16-Sem)
1391 -- This flag is set in the N_With_Clause node that is implicitly
1392 -- generated for runtime units that are loaded by the expander, and also
1393 -- for package System, if it is loaded implicitly by a use of the
1394 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1397 -- Implicit_With_From_Instantiation (Flag12-Sem)
1398 -- Set in N_With_Clause nodes from generic instantiations.
1400 -- Import_Interface_Present (Flag16-Sem)
1401 -- This flag is set in an Interface or Import pragma if a matching
1402 -- pragma of the other kind is also present. This is used to avoid
1403 -- generating some unwanted error messages.
1405 -- Includes_Infinities (Flag11-Sem)
1406 -- This flag is present in N_Range nodes. It is set for the range of
1407 -- unconstrained float types defined in Standard, which include not only
1408 -- the given range of values, but also legitimately can include infinite
1409 -- values. This flag is false for any float type for which an explicit
1410 -- range is given by the programmer, even if that range is identical to
1411 -- the range for Float.
1413 -- Inherited_Discriminant (Flag13-Sem)
1414 -- This flag is present in N_Component_Association nodes. It indicates
1415 -- that a given component association in an extension aggregate is the
1416 -- value obtained from a constraint on an ancestor. Used to prevent
1417 -- double expansion when the aggregate has expansion delayed.
1419 -- Instance_Spec (Node5-Sem)
1420 -- This field is present in generic instantiation nodes, and also in
1421 -- formal package declaration nodes (formal package declarations are
1422 -- treated in a manner very similar to package instantiations). It points
1423 -- to the node for the spec of the instance, inserted as part of the
1424 -- semantic processing for instantiations in Sem_Ch12.
1426 -- Is_Accessibility_Actual (Flag13-Sem)
1427 -- Present in N_Parameter_Association nodes. True if the parameter is
1428 -- an extra actual that carries the accessibility level of the actual
1429 -- for an access parameter, in a function that dispatches on result and
1430 -- is called in a dispatching context. Used to prevent a formal/actual
1431 -- mismatch when the call is rewritten as a dispatching call.
1433 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1434 -- A flag set in a Block_Statement node to indicate that it is the
1435 -- expansion of an asynchronous entry call. Such a block needs cleanup
1436 -- handler to assure that the call is cancelled.
1438 -- Is_Boolean_Aspect (Flag16-Sem)
1439 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1440 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1442 -- Is_Checked (Flag11-Sem)
1443 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1444 -- assertion aspect or pragma, or check pragma for an assertion, that
1445 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1446 -- is set (they cannot both be set), then this means that the status of
1447 -- the pragma has been checked at the appropriate point and should not
1448 -- be further modified (in some cases these flags are copied when a
1449 -- pragma is rewritten).
1451 -- Is_Component_Left_Opnd (Flag13-Sem)
1452 -- Is_Component_Right_Opnd (Flag14-Sem)
1453 -- Present in concatenation nodes, to indicate that the corresponding
1454 -- operand is of the component type of the result. Used in resolving
1455 -- concatenation nodes in instances.
1457 -- Is_Delayed_Aspect (Flag14-Sem)
1458 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1459 -- come from aspect specifications, where the evaluation of the aspect
1460 -- must be delayed to the freeze point. This flag is also set True in
1461 -- the corresponding N_Aspect_Specification node.
1463 -- Is_Controlling_Actual (Flag16-Sem)
1464 -- This flag is set on in an expression that is a controlling argument in
1465 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1466 -- details of its use.
1468 -- Is_Disabled (Flag15-Sem)
1469 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1470 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1471 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1472 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1473 -- If this flag is set, the aspect or policy is not analyzed for semantic
1474 -- correctness, so any expressions etc will not be marked as analyzed.
1476 -- Is_Dynamic_Coextension (Flag18-Sem)
1477 -- Present in allocator nodes, to indicate that this is an allocator
1478 -- for an access discriminant of a dynamically allocated object. The
1479 -- coextension must be deallocated and finalized at the same time as
1480 -- the enclosing object.
1482 -- Is_Entry_Barrier_Function (Flag8-Sem)
1483 -- This flag is set in an N_Subprogram_Body node which is the expansion
1484 -- of an entry barrier from a protected entry body. It is used for the
1485 -- circuitry checking for incorrect use of Current_Task.
1487 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1488 -- This flag is set in an N_Function_Call node to indicate that the extra
1489 -- actuals to support a build-in-place style of call have been added to
1492 -- Is_Finalization_Wrapper (Flag9-Sem);
1493 -- This flag is present in N_Block_Statement nodes. It is set when the
1494 -- block acts as a wrapper of a handled construct which has controlled
1495 -- objects. The wrapper prevents interference between exception handlers
1496 -- and At_End handlers.
1498 -- Is_Ignored (Flag9-Sem)
1499 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1500 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1501 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1502 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1503 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1504 -- gives a policy for the aspect or pragma, then there are two cases. For
1505 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1506 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1507 -- ignored because of the absence of a -gnata switch. For any other
1508 -- aspects or pragmas, the flag is off. If this flag is set, the
1509 -- aspect/pragma is fully analyzed and checked for other syntactic
1510 -- and semantic errors, but it does not have any semantic effect.
1512 -- Is_In_Discriminant_Check (Flag11-Sem)
1513 -- This flag is present in a selected component, and is used to indicate
1514 -- that the reference occurs within a discriminant check. The
1515 -- significance is that optimizations based on assuming that the
1516 -- discriminant check has a correct value cannot be performed in this
1517 -- case (or the discriminant check may be optimized away).
1519 -- Is_Machine_Number (Flag11-Sem)
1520 -- This flag is set in an N_Real_Literal node to indicate that the value
1521 -- is a machine number. This avoids some unnecessary cases of converting
1522 -- real literals to machine numbers.
1524 -- Is_Null_Loop (Flag16-Sem)
1525 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1526 -- can be determined to be null at compile time. This is used to remove
1527 -- the loop entirely at expansion time.
1529 -- Is_Overloaded (Flag5-Sem)
1530 -- A flag present in all expression nodes. Used temporarily during
1531 -- overloading determination. The setting of this flag is not relevant
1532 -- once overloading analysis is complete.
1534 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1535 -- A flag present only in N_Op_Expon nodes. It is set when the
1536 -- exponentiation is of the form 2 ** N, where the type of N is an
1537 -- unsigned integral subtype whose size does not exceed the size of
1538 -- Standard_Integer (i.e. a type that can be safely converted to
1539 -- Natural), and the exponentiation appears as the right operand of an
1540 -- integer multiplication or an integer division where the dividend is
1541 -- unsigned. It is also required that overflow checking is off for both
1542 -- the exponentiation and the multiply/divide node. If this set of
1543 -- conditions holds, and the flag is set, then the division or
1544 -- multiplication can be (and is) converted to a shift.
1546 -- Is_Prefixed_Call (Flag17-Sem)
1547 -- This flag is set in a selected component within a generic unit, if
1548 -- it resolves to a prefixed call to a primitive operation. The flag
1549 -- is used to prevent accidental overloadings in an instance, when a
1550 -- primitive operation and a private record component may be homographs.
1552 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1553 -- A flag set in a Subprogram_Body block to indicate that it is the
1554 -- implementation of a protected subprogram. Such a body needs cleanup
1555 -- handler to make sure that the associated protected object is unlocked
1556 -- when the subprogram completes.
1558 -- Is_Static_Coextension (Flag14-Sem)
1559 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1560 -- of an object allocated on the stack rather than the heap.
1562 -- Is_Static_Expression (Flag6-Sem)
1563 -- Indicates that an expression is a static expression (RM 4.9). See spec
1564 -- of package Sem_Eval for full details on the use of this flag.
1566 -- Is_Subprogram_Descriptor (Flag16-Sem)
1567 -- Present in N_Object_Declaration, and set only for the object
1568 -- declaration generated for a subprogram descriptor in fast exception
1569 -- mode. See Exp_Ch11 for details of use.
1571 -- Is_Task_Allocation_Block (Flag6-Sem)
1572 -- A flag set in a Block_Statement node to indicate that it is the
1573 -- expansion of a task allocator, or the allocator of an object
1574 -- containing tasks. Such a block requires a cleanup handler to call
1575 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1576 -- allocated but not activated when the allocator completes abnormally.
1578 -- Is_Task_Master (Flag5-Sem)
1579 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1580 -- indicate that the construct is a task master (i.e. has declared tasks
1581 -- or declares an access to a task type).
1583 -- Itype (Node1-Sem)
1584 -- Used in N_Itype_Reference node to reference an itype for which it is
1585 -- important to ensure that it is defined. See description of this node
1586 -- for further details.
1588 -- Kill_Range_Check (Flag11-Sem)
1589 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1590 -- result should not be subjected to range checks. This is used for the
1591 -- implementation of Normalize_Scalars.
1593 -- Label_Construct (Node2-Sem)
1594 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1595 -- N_Block_Statement or N_Loop_Statement node to which the label
1596 -- declaration applies. This attribute is used both in the compiler and
1597 -- in the implementation of ASIS queries. The field is left empty for the
1598 -- special labels generated as part of expanding raise statements with a
1599 -- local exception handler.
1601 -- Library_Unit (Node4-Sem)
1602 -- In a stub node, Library_Unit points to the compilation unit node of
1603 -- the corresponding subunit.
1605 -- In a with clause node, Library_Unit points to the spec of the with'ed
1608 -- In a compilation unit node, the usage depends on the unit type:
1610 -- For a library unit body, Library_Unit points to the compilation unit
1611 -- node of the corresponding spec, unless it's a subprogram body with
1612 -- Acts_As_Spec set, in which case it points to itself.
1614 -- For a spec, Library_Unit points to the compilation unit node of the
1615 -- corresponding body, if present. The body will be present if the spec
1616 -- is or contains generics that we needed to instantiate. Similarly, the
1617 -- body will be present if we needed it for inlining purposes. Thus, if
1618 -- we have a spec/body pair, both of which are present, they point to
1619 -- each other via Library_Unit.
1621 -- For a subunit, Library_Unit points to the compilation unit node of
1624 -- Note that this field is not used to hold the parent pointer for child
1625 -- unit (which might in any case need to use it for some other purpose as
1626 -- described above). Instead for a child unit, implicit with's are
1627 -- generated for all parents.
1629 -- Local_Raise_Statements (Elist1)
1630 -- This field is present in exception handler nodes. It is set to
1631 -- No_Elist in the normal case. If there is at least one raise statement
1632 -- which can potentially be handled as a local raise, then this field
1633 -- points to a list of raise nodes, which are calls to a routine to raise
1634 -- an exception. These are raise nodes which can be optimized into gotos
1635 -- if the handler turns out to meet the conditions which permit this
1636 -- transformation. Note that this does NOT include instances of the
1637 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1638 -- handled by the back end (using the N_Push/N_Pop mechanism).
1640 -- Loop_Actions (List2-Sem)
1641 -- A list present in Component_Association nodes in array aggregates.
1642 -- Used to collect actions that must be executed within the loop because
1643 -- they may need to be evaluated anew each time through.
1645 -- Limited_View_Installed (Flag18-Sem)
1646 -- Present in With_Clauses and in package specifications. If set on
1647 -- with_clause, it indicates that this clause has created the current
1648 -- limited view of the designated package. On a package specification, it
1649 -- indicates that the limited view has already been created because the
1650 -- package is mentioned in a limited_with_clause in the closure of the
1651 -- unit being compiled.
1653 -- Local_Raise_Not_OK (Flag7-Sem)
1654 -- Present in N_Exception_Handler nodes. Set if the handler contains
1655 -- a construct (reraise statement, or call to subprogram in package
1656 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1657 -- for a local raise (one that could otherwise be converted to a goto).
1659 -- Must_Be_Byte_Aligned (Flag14-Sem)
1660 -- This flag is present in N_Attribute_Reference nodes. It can be set
1661 -- only for the Address and Unrestricted_Access attributes. If set it
1662 -- means that the object for which the address/access is given must be on
1663 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1664 -- of the object is to be made before taking the address (this copy is in
1665 -- the current scope on the stack frame). This is used for certain cases
1666 -- of code generated by the expander that passes parameters by address.
1668 -- The reason the copy is not made by the front end is that the back end
1669 -- has more information about type layout and may be able to (but is not
1670 -- guaranteed to) prevent making unnecessary copies.
1672 -- Must_Not_Freeze (Flag8-Sem)
1673 -- A flag present in all expression nodes. Normally expressions cause
1674 -- freezing as described in the RM. If this flag is set, then this is
1675 -- inhibited. This is used by the analyzer and expander to label nodes
1676 -- that are created by semantic analysis or expansion and which must not
1677 -- cause freezing even though they normally would. This flag is also
1678 -- present in an N_Subtype_Indication node, since we also use these in
1679 -- calls to Freeze_Expression.
1681 -- Next_Entity (Node2-Sem)
1682 -- Present in defining identifiers, defining character literals and
1683 -- defining operator symbols (i.e. in all entities). The entities of a
1684 -- scope are chained, and this field is used as the forward pointer for
1685 -- this list. See Einfo for further details.
1687 -- Next_Exit_Statement (Node3-Sem)
1688 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1689 -- chained (in reverse order of appearance) from the First_Exit_Statement
1690 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1691 -- the next entry on this chain (Empty = end of list).
1693 -- Next_Implicit_With (Node3-Sem)
1694 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1695 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1696 -- to prevent multiple with_clauses for the same unit in a given context.
1697 -- A postorder traversal of the tree whose nodes are units and whose
1698 -- links are with_clauses defines the order in which CodePeer must
1699 -- examine a compiled unit and its full context. This ordering ensures
1700 -- that any subprogram call is examined after the subprogram declaration
1703 -- Next_Named_Actual (Node4-Sem)
1704 -- Present in parameter association nodes. Set during semantic analysis
1705 -- to point to the next named parameter, where parameters are ordered by
1706 -- declaration order (as opposed to the actual order in the call, which
1707 -- may be different due to named associations). Not that this field
1708 -- points to the explicit actual parameter itself, not to the
1709 -- N_Parameter_Association node (its parent).
1711 -- Next_Pragma (Node1-Sem)
1712 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1713 -- nodes. Currently used for two purposes:
1715 -- Create a list of linked Check_Policy pragmas. The head of this list
1716 -- is stored in Opt.Check_Policy_List (which has further details).
1718 -- Used by processing for Pre/Postcondition pragmas to store a list of
1719 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1722 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1723 -- the apply to the same construct. These are visible/private mode for
1724 -- a package spec and declarative/statement mode for package body.
1726 -- Next_Rep_Item (Node5-Sem)
1727 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1728 -- clauses, record rep clauses, aspect specification nodes. Used to link
1729 -- representation items that apply to an entity. See full description of
1730 -- First_Rep_Item field in Einfo for further details.
1732 -- Next_Use_Clause (Node3-Sem)
1733 -- While use clauses are active during semantic processing, they are
1734 -- chained from the scope stack entry, using Next_Use_Clause as a link
1735 -- pointer, with Empty marking the end of the list. The head pointer is
1736 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1737 -- processing (i.e. when Gigi sees the tree, the contents of this field
1738 -- is undefined and should not be read).
1740 -- No_Ctrl_Actions (Flag7-Sem)
1741 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1742 -- Adjust should take place on this assignment even though the RHS is
1743 -- controlled. Also indicates that the primitive _assign should not be
1744 -- used for a tagged assignment. This is used in init procs and aggregate
1745 -- expansions where the generated assignments are initializations, not
1746 -- real assignments.
1748 -- No_Elaboration_Check (Flag14-Sem)
1749 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1750 -- that no elaboration check is needed on the call, because it appears in
1751 -- the context of a local Suppress pragma. This is used on calls within
1752 -- task bodies, where the actual elaboration checks are applied after
1753 -- analysis, when the local scope stack is not present.
1755 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1756 -- Present in N_With_Clause nodes. Set if the with clause is on the
1757 -- package or subprogram spec where the main unit is the corresponding
1758 -- body, and no entities of the with'ed unit are referenced by the spec
1759 -- (an entity may still be referenced in the body, so this flag is used
1760 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1763 -- No_Initialization (Flag13-Sem)
1764 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1765 -- object must not be initialized (by Initialize or call to an init
1766 -- proc). This is needed for controlled aggregates. When the Object
1767 -- declaration has an expression, this flag means that this expression
1768 -- should not be taken into account (needed for in place initialization
1769 -- with aggregates, and for object with an address clause, which are
1770 -- initialized with an assignment at freeze time).
1772 -- No_Minimize_Eliminate (Flag17-Sem)
1773 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1774 -- It is used to indicate that processing for extended overflow checking
1775 -- modes is not required (this is used to prevent infinite recursion).
1777 -- No_Truncation (Flag17-Sem)
1778 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1779 -- only if the RM_Size of the source is greater than the RM_Size of the
1780 -- target for scalar operands. Normally in such a case we truncate some
1781 -- higher order bits of the source, and then sign/zero extend the result
1782 -- to form the output value. But if this flag is set, then we do not do
1783 -- any truncation, so for example, if an 8 bit input is converted to 5
1784 -- bit result which is in fact stored in 8 bits, then the high order
1785 -- three bits of the target result will be copied from the source. This
1786 -- is used for properly setting out of range values for use by pragmas
1787 -- Initialize_Scalars and Normalize_Scalars.
1789 -- Original_Discriminant (Node2-Sem)
1790 -- Present in identifiers. Used in references to discriminants that
1791 -- appear in generic units. Because the names of the discriminants may be
1792 -- different in an instance, we use this field to recover the position of
1793 -- the discriminant in the original type, and replace it with the
1794 -- discriminant at the same position in the instantiated type.
1796 -- Original_Entity (Node2-Sem)
1797 -- Present in numeric literals. Used to denote the named number that has
1798 -- been constant-folded into the given literal. If literal is from
1799 -- source, or the result of some other constant-folding operation, then
1800 -- Original_Entity is empty. This field is needed to handle properly
1801 -- named numbers in generic units, where the Associated_Node field
1802 -- interferes with the Entity field, making it impossible to preserve the
1803 -- original entity at the point of instantiation (ASIS problem).
1805 -- Others_Discrete_Choices (List1-Sem)
1806 -- When a case statement or variant is analyzed, the semantic checks
1807 -- determine the actual list of choices that correspond to an others
1808 -- choice. This list is materialized for later use by the expander and
1809 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1810 -- this materialized list of choices, which is in standard format for a
1811 -- list of discrete choices, except that of course it cannot contain an
1812 -- N_Others_Choice entry.
1814 -- Parameter_List_Truncated (Flag17-Sem)
1815 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1816 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1817 -- a result of a First_Optional_Parameter specification in an
1818 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1819 -- The truncation is done by the expander by removing trailing parameters
1820 -- from the argument list, in accordance with the set of rules allowing
1821 -- such parameter removal. In particular, parameters can be removed
1822 -- working from the end of the parameter list backwards up to and
1823 -- including the entry designated by First_Optional_Parameter in the
1824 -- Import pragma. Parameters can be removed if they are implicit and the
1825 -- default value is a known-at-compile-time value, including the use of
1826 -- the Null_Parameter attribute, or if explicit parameter values are
1827 -- present that match the corresponding defaults.
1829 -- Parent_Spec (Node4-Sem)
1830 -- For a library unit that is a child unit spec (package or subprogram
1831 -- declaration, generic declaration or instantiation, or library level
1832 -- rename, this field points to the compilation unit node for the parent
1833 -- package specification. This field is Empty for library bodies (the
1834 -- parent spec in this case can be found from the corresponding spec).
1836 -- Premature_Use (Node5-Sem)
1837 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1838 -- error diagnostics: if there is a premature usage of an incomplete
1839 -- type, a subsequently generated error message indicates the position
1840 -- of its full declaration.
1842 -- Present_Expr (Uint3-Sem)
1843 -- Present in an N_Variant node. This has a meaningful value only after
1844 -- Gigi has back annotated the tree with representation information. At
1845 -- this point, it contains a reference to a gcc expression that depends
1846 -- on the values of one or more discriminants. Give a set of discriminant
1847 -- values, this expression evaluates to False (zero) if variant is not
1848 -- present, and True (non-zero) if it is present. See unit Repinfo for
1849 -- further details on gigi back annotation. This field is used during
1850 -- ASIS processing (data decomposition annex) to determine if a field is
1853 -- Print_In_Hex (Flag13-Sem)
1854 -- Set on an N_Integer_Literal node to indicate that the value should be
1855 -- printed in hexadecimal in the sprint listing. Has no effect on
1856 -- legality or semantics of program, only on the displayed output. This
1857 -- is used to clarify output from the packed array cases.
1859 -- Procedure_To_Call (Node2-Sem)
1860 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1861 -- and N_Extended_Return_Statement nodes. References the entity for the
1862 -- declaration of the procedure to be called to accomplish the required
1863 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1864 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1865 -- allocating the return value), and for the Deallocate procedure in the
1866 -- case of N_Free_Statement.
1868 -- Raises_Constraint_Error (Flag7-Sem)
1869 -- Set on an expression whose evaluation will definitely fail constraint
1870 -- error check. In the case of static expressions, this flag must be set
1871 -- accurately (and if it is set, the expression is typically illegal
1872 -- unless it appears as a non-elaborated branch of a short-circuit form).
1873 -- For a non-static expression, this flag may be set whenever an
1874 -- expression (e.g. an aggregate) is known to raise constraint error. If
1875 -- set, the expression definitely will raise CE if elaborated at runtime.
1876 -- If not set, the expression may or may not raise CE. In other words, on
1877 -- static expressions, the flag is set accurately, on non-static
1878 -- expressions it is set conservatively.
1880 -- Redundant_Use (Flag13-Sem)
1881 -- Present in nodes that can appear as an operand in a use clause or use
1882 -- type clause (identifiers, expanded names, attribute references). Set
1883 -- to indicate that a use is redundant (and therefore need not be undone
1886 -- Renaming_Exception (Node2-Sem)
1887 -- Present in N_Exception_Declaration node. Used to point back to the
1888 -- exception renaming for an exception declared within a subprogram.
1889 -- What happens is that an exception declared in a subprogram is moved
1890 -- to the library level with a unique name, and the original exception
1891 -- becomes a renaming. This link from the library level exception to the
1892 -- renaming declaration allows registering of the proper exception name.
1894 -- Return_Statement_Entity (Node5-Sem)
1895 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1896 -- Points to an E_Return_Statement representing the return statement.
1898 -- Return_Object_Declarations (List3)
1899 -- Present in N_Extended_Return_Statement. Points to a list initially
1900 -- containing a single N_Object_Declaration representing the return
1901 -- object. We use a list (instead of just a pointer to the object decl)
1902 -- because Analyze wants to insert extra actions on this list.
1904 -- Rounded_Result (Flag18-Sem)
1905 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1906 -- Used in the fixed-point cases to indicate that the result must be
1907 -- rounded as a result of the use of the 'Round attribute. Also used for
1908 -- integer N_Op_Divide nodes to indicate that the result should be
1909 -- rounded to the nearest integer (breaking ties away from zero), rather
1910 -- than truncated towards zero as usual. These rounded integer operations
1911 -- are the result of expansion of rounded fixed-point divide, conversion
1912 -- and multiplication operations.
1914 -- SCIL_Entity (Node4-Sem)
1915 -- Present in SCIL nodes. Used to reference the tagged type associated
1916 -- with the SCIL node.
1918 -- SCIL_Controlling_Tag (Node5-Sem)
1919 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1920 -- controlling tag of a dispatching call.
1922 -- SCIL_Tag_Value (Node5-Sem)
1923 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1924 -- value that is being tested.
1926 -- SCIL_Target_Prim (Node2-Sem)
1927 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1928 -- type primitive associated with the SCIL node.
1930 -- Scope (Node3-Sem)
1931 -- Present in defining identifiers, defining character literals and
1932 -- defining operator symbols (i.e. in all entities). The entities of a
1933 -- scope all use this field to reference the corresponding scope entity.
1934 -- See Einfo for further details.
1936 -- Shift_Count_OK (Flag4-Sem)
1937 -- A flag present in shift nodes to indicate that the shift count is
1938 -- known to be in range, i.e. is in the range from zero to word length
1939 -- minus one. If this flag is not set, then the shift count may be
1940 -- outside this range, i.e. larger than the word length, and the code
1941 -- must ensure that such shift counts give the appropriate result.
1943 -- Source_Type (Node1-Sem)
1944 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1945 -- source type entity for the unchecked conversion instantiation
1946 -- which gigi must do size validation for.
1948 -- Split_PPC (Flag17)
1949 -- When a Pre or Post aspect specification is processed, it is broken
1950 -- into AND THEN sections. The left most section has Split_PPC set to
1951 -- False, indicating that it is the original specification (e.g. for
1952 -- posting errors). For other sections, Split_PPC is set to True.
1953 -- This flag is set in both the N_Aspect_Specification node itself,
1954 -- and in the pragma which is generated from this node.
1956 -- Storage_Pool (Node1-Sem)
1957 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1958 -- and N_Extended_Return_Statement nodes. References the entity for the
1959 -- storage pool to be used for the allocate or free call or for the
1960 -- allocation of the returned value from function. Empty indicates that
1961 -- the global default pool is to be used. Note that in the case
1962 -- of a return statement, this field is set only if the function returns
1963 -- value of a type whose size is not known at compile time on the
1966 -- Suppress_Assignment_Checks (Flag18-Sem)
1967 -- Used in generated N_Assignment_Statement nodes to suppress predicate
1968 -- and range checks in cases where the generated code knows that the
1969 -- value being assigned is in range and satisfies any predicate. Also
1970 -- can be set in N_Object_Declaration nodes, to similarly suppress any
1971 -- checks on the initializing value.
1973 -- Suppress_Loop_Warnings (Flag17-Sem)
1974 -- Used in N_Loop_Statement node to indicate that warnings within the
1975 -- body of the loop should be suppressed. This is set when the range
1976 -- of a FOR loop is known to be null, or is probably null (loop would
1977 -- only execute if invalid values are present).
1979 -- Target_Type (Node2-Sem)
1980 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1981 -- type entity for the unchecked conversion instantiation which gigi must
1982 -- do size validation for.
1984 -- Then_Actions (List3-Sem)
1985 -- This field is present in if expression nodes. During code expansion
1986 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
1987 -- at an appropriate place in the tree to get elaborated at the right
1988 -- time. For if expressions, we have to be sure that the actions for
1989 -- for the Then branch are only elaborated if the condition is True.
1990 -- The Then_Actions field is used as a temporary parking place for
1991 -- these actions. The final tree is always rewritten to eliminate the
1992 -- need for this field, so in the tree passed to Gigi, this field is
1993 -- always set to No_List.
1995 -- Treat_Fixed_As_Integer (Flag14-Sem)
1996 -- This flag appears in operator nodes for divide, multiply, mod and rem
1997 -- on fixed-point operands. It indicates that the operands are to be
1998 -- treated as integer values, ignoring small values. This flag is only
1999 -- set as a result of expansion of fixed-point operations. Typically a
2000 -- fixed-point multiplication in the source generates subsidiary
2001 -- multiplication and division operations that work with the underlying
2002 -- integer values and have this flag set. Note that this flag is not
2003 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2004 -- in these cases it is always the case that fixed is treated as integer.
2005 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2006 -- leave such nodes alone, and whoever makes them must set the correct
2009 -- TSS_Elist (Elist3-Sem)
2010 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2011 -- entries for each TSS (type support subprogram) associated with the
2012 -- frozen type. The elements of the list are the entities for the
2013 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2014 -- if there are no type support subprograms for the type or if the freeze
2015 -- node is not for a type.
2017 -- Unreferenced_In_Spec (Flag7-Sem)
2018 -- Present in N_With_Clause nodes. Set if the with clause is on the
2019 -- package or subprogram spec where the main unit is the corresponding
2020 -- body, and is not referenced by the spec (it may still be referenced by
2021 -- the body, so this flag is used to generate the proper message (see
2022 -- Sem_Util.Check_Unused_Withs for details)
2024 -- Used_Operations (Elist5-Sem)
2025 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2026 -- are made potentially use-visible by the clause. Simplifies processing
2027 -- on exit from the scope of the use_type_clause, in particular in the
2028 -- case of Use_All_Type, when those operations several scopes.
2030 -- Was_Originally_Stub (Flag13-Sem)
2031 -- This flag is set in the node for a proper body that replaces stub.
2032 -- During the analysis procedure, stubs in some situations get rewritten
2033 -- by the corresponding bodies, and we set this flag to remember that
2034 -- this happened. Note that it is not good enough to rely on the use of
2035 -- Original_Node here because of the case of nested instantiations where
2036 -- the substituted node can be copied.
2038 -- Withed_Body (Node1-Sem)
2039 -- Present in N_With_Clause nodes. Set if the unit in whose context
2040 -- the with_clause appears instantiates a generic contained in the
2041 -- library unit of the with_clause and as a result loads its body.
2042 -- Used for a more precise unit traversal for CodePeer.
2044 --------------------------------------------------
2045 -- Note on Use of End_Label and End_Span Fields --
2046 --------------------------------------------------
2048 -- Several constructs have end lines:
2050 -- Loop Statement end loop [loop_IDENTIFIER];
2051 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2052 -- Task Definition end [task_IDENTIFIER]
2053 -- Protected Definition end [protected_IDENTIFIER]
2054 -- Protected Body end [protected_IDENTIFIER]
2056 -- Block Statement end [block_IDENTIFIER];
2057 -- Subprogram Body end [DESIGNATOR];
2058 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2059 -- Task Body end [task_IDENTIFIER];
2060 -- Accept Statement end [entry_IDENTIFIER]];
2061 -- Entry Body end [entry_IDENTIFIER];
2063 -- If Statement end if;
2064 -- Case Statement end case;
2066 -- Record Definition end record;
2067 -- Enumeration Definition );
2069 -- The End_Label and End_Span fields are used to mark the locations of
2070 -- these lines, and also keep track of the label in the case where a label
2073 -- For the first group above, the End_Label field of the corresponding node
2074 -- is used to point to the label identifier. In the case where there is no
2075 -- label in the source, the parser supplies a dummy identifier (with
2076 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2077 -- marks the location of the token following the END token.
2079 -- For the second group, the use of End_Label is similar, but the End_Label
2080 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2081 -- simply because in some cases there is no room in the parent node.
2083 -- For the third group, there is never any label, and instead of using
2084 -- End_Label, we use the End_Span field which gives the location of the
2085 -- token following END, relative to the starting Sloc of the construct,
2086 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2087 -- following the End_Label.
2089 -- The record definition case is handled specially, we treat it as though
2090 -- it required an optional label which is never present, and so the parser
2091 -- always builds a dummy identifier with Comes From Source set False. The
2092 -- reason we do this, rather than using End_Span in this case, is that we
2093 -- want to generate a cross-ref entry for the end of a record, since it
2094 -- represents a scope for name declaration purposes.
2096 -- The enumeration definition case is handled in an exactly similar manner,
2097 -- building a dummy identifier to get a cross-reference.
2099 -- Note: the reason we store the difference as a Uint, instead of storing
2100 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2101 -- distinguished from other types of values, and we count on all general
2102 -- use fields being self describing. To make things easier for clients,
2103 -- note that we provide function End_Location, and procedure
2104 -- Set_End_Location to allow access to the logical value (which is the
2105 -- Source_Ptr value for the end token).
2107 ---------------------
2108 -- Syntactic Nodes --
2109 ---------------------
2111 ---------------------
2112 -- 2.3 Identifier --
2113 ---------------------
2115 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2116 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2118 -- An IDENTIFIER shall not be a reserved word
2120 -- In the Ada grammar identifiers are the bottom level tokens which have
2121 -- very few semantics. Actual program identifiers are direct names. If
2122 -- we were being 100% honest with the grammar, then we would have a node
2123 -- called N_Direct_Name which would point to an identifier. However,
2124 -- that's too many extra nodes, so we just use the N_Identifier node
2125 -- directly as a direct name, and it contains the expression fields and
2126 -- Entity field that correspond to its use as a direct name. In those
2127 -- few cases where identifiers appear in contexts where they are not
2128 -- direct names (pragmas, pragma argument associations, attribute
2129 -- references and attribute definition clauses), the Chars field of the
2130 -- node contains the Name_Id for the identifier name.
2132 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2133 -- cases. First, an incorrect use of a reserved word as an identifier is
2134 -- diagnosed and then treated as a normal identifier. Second, an
2135 -- attribute designator of the form of a reserved word (access, delta,
2136 -- digits, range) is treated as an identifier.
2138 -- Note: The set of letters that is permitted in an identifier depends
2139 -- on the character set in use. See package Csets for full details.
2142 -- Sloc points to identifier
2143 -- Chars (Name1) contains the Name_Id for the identifier
2144 -- Entity (Node4-Sem)
2145 -- Associated_Node (Node4-Sem)
2146 -- Original_Discriminant (Node2-Sem)
2147 -- Redundant_Use (Flag13-Sem)
2148 -- Atomic_Sync_Required (Flag14-Sem)
2149 -- Has_Private_View (Flag11-Sem) (set in generic units)
2150 -- plus fields for expression
2152 --------------------------
2153 -- 2.4 Numeric Literal --
2154 --------------------------
2156 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2158 ----------------------------
2159 -- 2.4.1 Decimal Literal --
2160 ----------------------------
2162 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2164 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2166 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2168 -- Decimal literals appear in the tree as either integer literal nodes
2169 -- or real literal nodes, depending on whether a period is present.
2171 -- Note: literal nodes appear as a result of direct use of literals
2172 -- in the source program, and also as the result of evaluating
2173 -- expressions at compile time. In the latter case, it is possible
2174 -- to construct real literals that have no syntactic representation
2175 -- using the standard literal format. Such literals are listed by
2176 -- Sprint using the notation [numerator / denominator].
2178 -- Note: the value of an integer literal node created by the front end
2179 -- is never outside the range of values of the base type. However, it
2180 -- can be the case that the created value is outside the range of the
2181 -- particular subtype. This happens in the case of integer overflows
2182 -- with checks suppressed.
2184 -- N_Integer_Literal
2185 -- Sloc points to literal
2186 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2187 -- has been constant-folded into its literal value.
2188 -- Intval (Uint3) contains integer value of literal
2189 -- plus fields for expression
2190 -- Print_In_Hex (Flag13-Sem)
2193 -- Sloc points to literal
2194 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2195 -- has been constant-folded into its literal value.
2196 -- Realval (Ureal3) contains real value of literal
2197 -- Corresponding_Integer_Value (Uint4-Sem)
2198 -- Is_Machine_Number (Flag11-Sem)
2199 -- plus fields for expression
2201 --------------------------
2202 -- 2.4.2 Based Literal --
2203 --------------------------
2205 -- BASED_LITERAL ::=
2206 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2210 -- BASED_NUMERAL ::=
2211 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2213 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2215 -- Based literals appear in the tree as either integer literal nodes
2216 -- or real literal nodes, depending on whether a period is present.
2218 ----------------------------
2219 -- 2.5 Character Literal --
2220 ----------------------------
2222 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2224 -- N_Character_Literal
2225 -- Sloc points to literal
2226 -- Chars (Name1) contains the Name_Id for the identifier
2227 -- Char_Literal_Value (Uint2) contains the literal value
2228 -- Entity (Node4-Sem)
2229 -- Associated_Node (Node4-Sem)
2230 -- Has_Private_View (Flag11-Sem) set in generic units.
2231 -- plus fields for expression
2233 -- Note: the Entity field will be missing (set to Empty) for character
2234 -- literals whose type is Standard.Wide_Character or Standard.Character
2235 -- or a type derived from one of these two. In this case the character
2236 -- literal stands for its own coding. The reason we take this irregular
2237 -- short cut is to avoid the need to build lots of junk defining
2238 -- character literal nodes.
2240 -------------------------
2241 -- 2.6 String Literal --
2242 -------------------------
2244 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2246 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2247 -- single GRAPHIC_CHARACTER other than a quotation mark.
2249 -- Is_Folded_In_Parser is True if the parser created this literal by
2250 -- folding a sequence of "&" operators. For example, if the source code
2251 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2252 -- is set. This flag is needed because the parser doesn't know about
2253 -- visibility, so the folded result might be wrong, and semantic
2254 -- analysis needs to check for that.
2257 -- Sloc points to literal
2258 -- Strval (Str3) contains Id of string value
2259 -- Has_Wide_Character (Flag11-Sem)
2260 -- Has_Wide_Wide_Character (Flag13-Sem)
2261 -- Is_Folded_In_Parser (Flag4)
2262 -- plus fields for expression
2268 -- A COMMENT starts with two adjacent hyphens and extends up to the
2269 -- end of the line. A COMMENT may appear on any line of a program.
2271 -- Comments are skipped by the scanner and do not appear in the tree.
2272 -- It is possible to reconstruct the position of comments with respect
2273 -- to the elements of the tree by using the source position (Sloc)
2274 -- pointers that appear in every tree node.
2280 -- PRAGMA ::= pragma IDENTIFIER
2281 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2283 -- Note that a pragma may appear in the tree anywhere a declaration
2284 -- or a statement may appear, as well as in some other situations
2285 -- which are explicitly documented.
2288 -- Sloc points to PRAGMA
2289 -- Next_Pragma (Node1-Sem)
2290 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2291 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2292 -- Pragma_Identifier (Node4)
2293 -- Next_Rep_Item (Node5-Sem)
2294 -- Class_Present (Flag6) set if from Aspect with 'Class
2295 -- From_Aspect_Specification (Flag13-Sem)
2296 -- Is_Delayed_Aspect (Flag14-Sem)
2297 -- Is_Disabled (Flag15-Sem)
2298 -- Is_Ignored (Flag9-Sem)
2299 -- Is_Checked (Flag11-Sem)
2300 -- Import_Interface_Present (Flag16-Sem)
2301 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2303 -- Note: we should have a section on what pragmas are passed on to
2304 -- the back end to be processed. This section should note that pragma
2305 -- Psect_Object is always converted to Common_Object, but there are
2306 -- undoubtedly many other similar notes required ???
2308 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2309 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2311 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2312 -- aspect name, as does the Pragma_Identifier. In this case if the
2313 -- pragma has a local name argument (such as pragma Inline), it is
2314 -- resolved to point to the specific entity affected by the pragma.
2316 --------------------------------------
2317 -- 2.8 Pragma Argument Association --
2318 --------------------------------------
2320 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2321 -- [pragma_argument_IDENTIFIER =>] NAME
2322 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2324 -- In Ada 2012, there are two more possibilities:
2326 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2327 -- [pragma_argument_ASPECT_MARK =>] NAME
2328 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2330 -- where the interesting allowed cases (which do not fit the syntax of
2331 -- the first alternative above) are
2333 -- ASPECT_MARK => Pre'Class |
2335 -- Type_Invariant'Class |
2338 -- We allow this special usage in all Ada modes, but it would be a
2339 -- pain to allow these aspects to pervade the pragma syntax, and the
2340 -- representation of pragma nodes internally. So what we do is to
2341 -- replace these ASPECT_MARK forms with identifiers whose name is one
2342 -- of the special internal names _Pre, _Post or _Type_Invariant.
2344 -- We do a similar replacement of these Aspect_Mark forms in the
2345 -- Expression of a pragma argument association for the cases of
2346 -- the first arguments of any Check pragmas and Check_Policy pragmas
2348 -- N_Pragma_Argument_Association
2349 -- Sloc points to first token in association
2350 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2351 -- Expression (Node3)
2353 ------------------------
2354 -- 2.9 Reserved Word --
2355 ------------------------
2357 -- Reserved words are parsed by the scanner, and returned as the
2358 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2360 ----------------------------
2361 -- 3.1 Basic Declaration --
2362 ----------------------------
2364 -- BASIC_DECLARATION ::=
2365 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2366 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2367 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2368 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2369 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2370 -- | GENERIC_INSTANTIATION
2372 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2373 -- see further description in section on semantic nodes.
2375 -- Also, in the tree that is constructed, a pragma may appear
2376 -- anywhere that a declaration may appear.
2378 ------------------------------
2379 -- 3.1 Defining Identifier --
2380 ------------------------------
2382 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2384 -- A defining identifier is an entity, which has additional fields
2385 -- depending on the setting of the Ekind field. These additional
2386 -- fields are defined (and access subprograms declared) in package
2389 -- Note: N_Defining_Identifier is an extended node whose fields are
2390 -- deliberate layed out to match the layout of fields in an ordinary
2391 -- N_Identifier node allowing for easy alteration of an identifier
2392 -- node into a defining identifier node. For details, see procedure
2393 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2395 -- N_Defining_Identifier
2396 -- Sloc points to identifier
2397 -- Chars (Name1) contains the Name_Id for the identifier
2398 -- Next_Entity (Node2-Sem)
2399 -- Scope (Node3-Sem)
2400 -- Etype (Node5-Sem)
2402 -----------------------------
2403 -- 3.2.1 Type Declaration --
2404 -----------------------------
2406 -- TYPE_DECLARATION ::=
2407 -- FULL_TYPE_DECLARATION
2408 -- | INCOMPLETE_TYPE_DECLARATION
2409 -- | PRIVATE_TYPE_DECLARATION
2410 -- | PRIVATE_EXTENSION_DECLARATION
2412 ----------------------------------
2413 -- 3.2.1 Full Type Declaration --
2414 ----------------------------------
2416 -- FULL_TYPE_DECLARATION ::=
2417 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2418 -- is TYPE_DEFINITION
2419 -- [ASPECT_SPECIFICATIONS];
2420 -- | TASK_TYPE_DECLARATION
2421 -- | PROTECTED_TYPE_DECLARATION
2423 -- The full type declaration node is used only for the first case. The
2424 -- second case (concurrent type declaration), is represented directly
2425 -- by a task type declaration or a protected type declaration.
2427 -- N_Full_Type_Declaration
2428 -- Sloc points to TYPE
2429 -- Defining_Identifier (Node1)
2430 -- Discriminant_Specifications (List4) (set to No_List if none)
2431 -- Type_Definition (Node3)
2432 -- Discr_Check_Funcs_Built (Flag11-Sem)
2434 ----------------------------
2435 -- 3.2.1 Type Definition --
2436 ----------------------------
2438 -- TYPE_DEFINITION ::=
2439 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2440 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2441 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2442 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2444 --------------------------------
2445 -- 3.2.2 Subtype Declaration --
2446 --------------------------------
2448 -- SUBTYPE_DECLARATION ::=
2449 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2450 -- [ASPECT_SPECIFICATIONS];
2452 -- The subtype indication field is set to Empty for subtypes
2453 -- declared in package Standard (Positive, Natural).
2455 -- N_Subtype_Declaration
2456 -- Sloc points to SUBTYPE
2457 -- Defining_Identifier (Node1)
2458 -- Null_Exclusion_Present (Flag11)
2459 -- Subtype_Indication (Node5)
2460 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2461 -- Exception_Junk (Flag8-Sem)
2462 -- Has_Dynamic_Range_Check (Flag12-Sem)
2464 -------------------------------
2465 -- 3.2.2 Subtype Indication --
2466 -------------------------------
2468 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2470 -- Note: if no constraint is present, the subtype indication appears
2471 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2472 -- node is used only if a constraint is present.
2474 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2475 -- with the null-exclusion part (see AI-231), we had to introduce a new
2476 -- attribute in all the parents of subtype_indication nodes to indicate
2477 -- if the null-exclusion is present.
2479 -- Note: the reason that this node has expression fields is that a
2480 -- subtype indication can appear as an operand of a membership test.
2482 -- N_Subtype_Indication
2483 -- Sloc points to first token of subtype mark
2484 -- Subtype_Mark (Node4)
2485 -- Constraint (Node3)
2486 -- Etype (Node5-Sem)
2487 -- Must_Not_Freeze (Flag8-Sem)
2489 -- Note: Depending on context, the Etype is either the entity of the
2490 -- Subtype_Mark field, or it is an itype constructed to reify the
2491 -- subtype indication. In particular, such itypes are created for a
2492 -- subtype indication that appears in an array type declaration. This
2493 -- simplifies constraint checking in indexed components.
2495 -- For subtype indications that appear in scalar type and subtype
2496 -- declarations, the Etype is the entity of the subtype mark.
2498 -------------------------
2499 -- 3.2.2 Subtype Mark --
2500 -------------------------
2502 -- SUBTYPE_MARK ::= subtype_NAME
2504 -----------------------
2505 -- 3.2.2 Constraint --
2506 -----------------------
2508 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2510 ------------------------------
2511 -- 3.2.2 Scalar Constraint --
2512 ------------------------------
2514 -- SCALAR_CONSTRAINT ::=
2515 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2517 ---------------------------------
2518 -- 3.2.2 Composite Constraint --
2519 ---------------------------------
2521 -- COMPOSITE_CONSTRAINT ::=
2522 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2524 -------------------------------
2525 -- 3.3.1 Object Declaration --
2526 -------------------------------
2528 -- OBJECT_DECLARATION ::=
2529 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2530 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2531 -- [ASPECT_SPECIFICATIONS];
2532 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2533 -- ACCESS_DEFINITION [:= EXPRESSION]
2534 -- [ASPECT_SPECIFICATIONS];
2535 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2536 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2537 -- [ASPECT_SPECIFICATIONS];
2538 -- | SINGLE_TASK_DECLARATION
2539 -- | SINGLE_PROTECTED_DECLARATION
2541 -- Note: aliased is not permitted in Ada 83 mode
2543 -- The N_Object_Declaration node is only for the first two cases.
2544 -- Single task declaration is handled by P_Task (9.1)
2545 -- Single protected declaration is handled by P_protected (9.5)
2547 -- Although the syntax allows multiple identifiers in the list, the
2548 -- semantics is as though successive declarations were given with
2549 -- identical type definition and expression components. To simplify
2550 -- semantic processing, the parser represents a multiple declaration
2551 -- case as a sequence of single declarations, using the More_Ids and
2552 -- Prev_Ids flags to preserve the original source form as described
2553 -- in the section on "Handling of Defining Identifier Lists".
2555 -- The flag Has_Init_Expression is set if an initializing expression
2556 -- is present. Normally it is set if and only if Expression contains
2557 -- a non-empty value, but there is an exception to this. When the
2558 -- initializing expression is an aggregate which requires explicit
2559 -- assignments, the Expression field gets set to Empty, but this flag
2560 -- is still set, so we don't forget we had an initializing expression.
2562 -- Note: if a range check is required for the initialization
2563 -- expression then the Do_Range_Check flag is set in the Expression,
2564 -- with the check being done against the type given by the object
2565 -- definition, which is also the Etype of the defining identifier.
2567 -- Note: the contents of the Expression field must be ignored (i.e.
2568 -- treated as though it were Empty) if No_Initialization is set True.
2570 -- Note: the back end places some restrictions on the form of the
2571 -- Expression field. If the object being declared is Atomic, then
2572 -- the Expression may not have the form of an aggregate (since this
2573 -- might cause the back end to generate separate assignments). In this
2574 -- case the front end must generate an extra temporary and initialize
2575 -- this temporary as required (the temporary itself is not atomic).
2577 -- Note: there is not node kind for object definition. Instead, the
2578 -- corresponding field holds a subtype indication, an array type
2579 -- definition, or (Ada 2005, AI-406) an access definition.
2581 -- N_Object_Declaration
2582 -- Sloc points to first identifier
2583 -- Defining_Identifier (Node1)
2584 -- Aliased_Present (Flag4)
2585 -- Constant_Present (Flag17) set if CONSTANT appears
2586 -- Null_Exclusion_Present (Flag11)
2587 -- Object_Definition (Node4) subtype indic./array type def./access def.
2588 -- Expression (Node3) (set to Empty if not present)
2589 -- Handler_List_Entry (Node2-Sem)
2590 -- Corresponding_Generic_Association (Node5-Sem)
2591 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2592 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2593 -- No_Initialization (Flag13-Sem)
2594 -- Assignment_OK (Flag15-Sem)
2595 -- Exception_Junk (Flag8-Sem)
2596 -- Is_Subprogram_Descriptor (Flag16-Sem)
2597 -- Has_Init_Expression (Flag14)
2598 -- Suppress_Assignment_Checks (Flag18-Sem)
2600 -------------------------------------
2601 -- 3.3.1 Defining Identifier List --
2602 -------------------------------------
2604 -- DEFINING_IDENTIFIER_LIST ::=
2605 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2607 -------------------------------
2608 -- 3.3.2 Number Declaration --
2609 -------------------------------
2611 -- NUMBER_DECLARATION ::=
2612 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2614 -- Although the syntax allows multiple identifiers in the list, the
2615 -- semantics is as though successive declarations were given with
2616 -- identical expressions. To simplify semantic processing, the parser
2617 -- represents a multiple declaration case as a sequence of single
2618 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2619 -- the original source form as described in the section on "Handling
2620 -- of Defining Identifier Lists".
2622 -- N_Number_Declaration
2623 -- Sloc points to first identifier
2624 -- Defining_Identifier (Node1)
2625 -- Expression (Node3)
2626 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2627 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2629 ----------------------------------
2630 -- 3.4 Derived Type Definition --
2631 ----------------------------------
2633 -- DERIVED_TYPE_DEFINITION ::=
2634 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2635 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2637 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2640 -- Note: a record extension part is required if ABSTRACT is present
2642 -- N_Derived_Type_Definition
2643 -- Sloc points to NEW
2644 -- Abstract_Present (Flag4)
2645 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2646 -- Subtype_Indication (Node5)
2647 -- Record_Extension_Part (Node3) (set to Empty if not present)
2648 -- Limited_Present (Flag17)
2649 -- Task_Present (Flag5) set in task interfaces
2650 -- Protected_Present (Flag6) set in protected interfaces
2651 -- Synchronized_Present (Flag7) set in interfaces
2652 -- Interface_List (List2) (set to No_List if none)
2653 -- Interface_Present (Flag16) set in abstract interfaces
2655 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2656 -- Interface_List, and Interface_Present are used for abstract
2657 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2659 ---------------------------
2660 -- 3.5 Range Constraint --
2661 ---------------------------
2663 -- RANGE_CONSTRAINT ::= range RANGE
2665 -- N_Range_Constraint
2666 -- Sloc points to RANGE
2667 -- Range_Expression (Node4)
2674 -- RANGE_ATTRIBUTE_REFERENCE
2675 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2677 -- Note: the case of a range given as a range attribute reference
2678 -- appears directly in the tree as an attribute reference.
2680 -- Note: the field name for a reference to a range is Range_Expression
2681 -- rather than Range, because range is a reserved keyword in Ada.
2683 -- Note: the reason that this node has expression fields is that a
2684 -- range can appear as an operand of a membership test. The Etype
2685 -- field is the type of the range (we do NOT construct an implicit
2686 -- subtype to represent the range exactly).
2689 -- Sloc points to ..
2690 -- Low_Bound (Node1)
2691 -- High_Bound (Node2)
2692 -- Includes_Infinities (Flag11)
2693 -- plus fields for expression
2695 -- Note: if the range appears in a context, such as a subtype
2696 -- declaration, where range checks are required on one or both of
2697 -- the expression fields, then type conversion nodes are inserted
2698 -- to represent the required checks.
2700 ----------------------------------------
2701 -- 3.5.1 Enumeration Type Definition --
2702 ----------------------------------------
2704 -- ENUMERATION_TYPE_DEFINITION ::=
2705 -- (ENUMERATION_LITERAL_SPECIFICATION
2706 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2708 -- Note: the Literals field in the node described below is null for
2709 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2710 -- which special processing handles these types as special cases.
2712 -- N_Enumeration_Type_Definition
2713 -- Sloc points to left parenthesis
2714 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2715 -- End_Label (Node4) (set to Empty if internally generated record)
2717 ----------------------------------------------
2718 -- 3.5.1 Enumeration Literal Specification --
2719 ----------------------------------------------
2721 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2722 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2724 ---------------------------------------
2725 -- 3.5.1 Defining Character Literal --
2726 ---------------------------------------
2728 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2730 -- A defining character literal is an entity, which has additional
2731 -- fields depending on the setting of the Ekind field. These
2732 -- additional fields are defined (and access subprograms declared)
2733 -- in package Einfo.
2735 -- Note: N_Defining_Character_Literal is an extended node whose fields
2736 -- are deliberate layed out to match the layout of fields in an ordinary
2737 -- N_Character_Literal node allowing for easy alteration of a character
2738 -- literal node into a defining character literal node. For details, see
2739 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2741 -- N_Defining_Character_Literal
2742 -- Sloc points to literal
2743 -- Chars (Name1) contains the Name_Id for the identifier
2744 -- Next_Entity (Node2-Sem)
2745 -- Scope (Node3-Sem)
2746 -- Etype (Node5-Sem)
2748 ------------------------------------
2749 -- 3.5.4 Integer Type Definition --
2750 ------------------------------------
2752 -- Note: there is an error in this rule in the latest version of the
2753 -- grammar, so we have retained the old rule pending clarification.
2755 -- INTEGER_TYPE_DEFINITION ::=
2756 -- SIGNED_INTEGER_TYPE_DEFINITION
2757 -- | MODULAR_TYPE_DEFINITION
2759 -------------------------------------------
2760 -- 3.5.4 Signed Integer Type Definition --
2761 -------------------------------------------
2763 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2764 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2766 -- Note: the Low_Bound and High_Bound fields are set to Empty
2767 -- for integer types defined in package Standard.
2769 -- N_Signed_Integer_Type_Definition
2770 -- Sloc points to RANGE
2771 -- Low_Bound (Node1)
2772 -- High_Bound (Node2)
2774 ------------------------------------
2775 -- 3.5.4 Modular Type Definition --
2776 ------------------------------------
2778 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2780 -- N_Modular_Type_Definition
2781 -- Sloc points to MOD
2782 -- Expression (Node3)
2784 ---------------------------------
2785 -- 3.5.6 Real Type Definition --
2786 ---------------------------------
2788 -- REAL_TYPE_DEFINITION ::=
2789 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2791 --------------------------------------
2792 -- 3.5.7 Floating Point Definition --
2793 --------------------------------------
2795 -- FLOATING_POINT_DEFINITION ::=
2796 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2798 -- Note: The Digits_Expression and Real_Range_Specifications fields
2799 -- are set to Empty for floating-point types declared in Standard.
2801 -- N_Floating_Point_Definition
2802 -- Sloc points to DIGITS
2803 -- Digits_Expression (Node2)
2804 -- Real_Range_Specification (Node4) (set to Empty if not present)
2806 -------------------------------------
2807 -- 3.5.7 Real Range Specification --
2808 -------------------------------------
2810 -- REAL_RANGE_SPECIFICATION ::=
2811 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2813 -- N_Real_Range_Specification
2814 -- Sloc points to RANGE
2815 -- Low_Bound (Node1)
2816 -- High_Bound (Node2)
2818 -----------------------------------
2819 -- 3.5.9 Fixed Point Definition --
2820 -----------------------------------
2822 -- FIXED_POINT_DEFINITION ::=
2823 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2825 --------------------------------------------
2826 -- 3.5.9 Ordinary Fixed Point Definition --
2827 --------------------------------------------
2829 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2830 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2832 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2834 -- N_Ordinary_Fixed_Point_Definition
2835 -- Sloc points to DELTA
2836 -- Delta_Expression (Node3)
2837 -- Real_Range_Specification (Node4)
2839 -------------------------------------------
2840 -- 3.5.9 Decimal Fixed Point Definition --
2841 -------------------------------------------
2843 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2844 -- delta static_EXPRESSION
2845 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2847 -- Note: decimal types are not permitted in Ada 83 mode
2849 -- N_Decimal_Fixed_Point_Definition
2850 -- Sloc points to DELTA
2851 -- Delta_Expression (Node3)
2852 -- Digits_Expression (Node2)
2853 -- Real_Range_Specification (Node4) (set to Empty if not present)
2855 ------------------------------
2856 -- 3.5.9 Digits Constraint --
2857 ------------------------------
2859 -- DIGITS_CONSTRAINT ::=
2860 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2862 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2863 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2865 -- N_Digits_Constraint
2866 -- Sloc points to DIGITS
2867 -- Digits_Expression (Node2)
2868 -- Range_Constraint (Node4) (set to Empty if not present)
2870 --------------------------------
2871 -- 3.6 Array Type Definition --
2872 --------------------------------
2874 -- ARRAY_TYPE_DEFINITION ::=
2875 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2877 -----------------------------------------
2878 -- 3.6 Unconstrained Array Definition --
2879 -----------------------------------------
2881 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2882 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2883 -- COMPONENT_DEFINITION
2885 -- Note: dimensionality of array is indicated by number of entries in
2886 -- the Subtype_Marks list, which has one entry for each dimension.
2888 -- N_Unconstrained_Array_Definition
2889 -- Sloc points to ARRAY
2890 -- Subtype_Marks (List2)
2891 -- Component_Definition (Node4)
2893 -----------------------------------
2894 -- 3.6 Index Subtype Definition --
2895 -----------------------------------
2897 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2899 -- There is no explicit node in the tree for an index subtype
2900 -- definition since the N_Unconstrained_Array_Definition node
2901 -- incorporates the type marks which appear in this context.
2903 ---------------------------------------
2904 -- 3.6 Constrained Array Definition --
2905 ---------------------------------------
2907 -- CONSTRAINED_ARRAY_DEFINITION ::=
2908 -- array (DISCRETE_SUBTYPE_DEFINITION
2909 -- {, DISCRETE_SUBTYPE_DEFINITION})
2910 -- of COMPONENT_DEFINITION
2912 -- Note: dimensionality of array is indicated by number of entries
2913 -- in the Discrete_Subtype_Definitions list, which has one entry
2914 -- for each dimension.
2916 -- N_Constrained_Array_Definition
2917 -- Sloc points to ARRAY
2918 -- Discrete_Subtype_Definitions (List2)
2919 -- Component_Definition (Node4)
2921 --------------------------------------
2922 -- 3.6 Discrete Subtype Definition --
2923 --------------------------------------
2925 -- DISCRETE_SUBTYPE_DEFINITION ::=
2926 -- discrete_SUBTYPE_INDICATION | RANGE
2928 -------------------------------
2929 -- 3.6 Component Definition --
2930 -------------------------------
2932 -- COMPONENT_DEFINITION ::=
2933 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2935 -- Note: although the syntax does not permit a component definition to
2936 -- be an anonymous array (and the parser will diagnose such an attempt
2937 -- with an appropriate message), it is possible for anonymous arrays
2938 -- to appear as component definitions. The semantics and back end handle
2939 -- this case properly, and the expander in fact generates such cases.
2940 -- Access_Definition is an optional field that gives support to
2941 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2942 -- Subtype_Indication field or else the Access_Definition field.
2944 -- N_Component_Definition
2945 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2946 -- Aliased_Present (Flag4)
2947 -- Null_Exclusion_Present (Flag11)
2948 -- Subtype_Indication (Node5) (set to Empty if not present)
2949 -- Access_Definition (Node3) (set to Empty if not present)
2951 -----------------------------
2952 -- 3.6.1 Index Constraint --
2953 -----------------------------
2955 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2957 -- It is not in general possible to distinguish between discriminant
2958 -- constraints and index constraints at parse time, since a simple
2959 -- name could be either the subtype mark of a discrete range, or an
2960 -- expression in a discriminant association with no name. Either
2961 -- entry appears simply as the name, and the semantic parse must
2962 -- distinguish between the two cases. Thus we use a common tree
2963 -- node format for both of these constraint types.
2965 -- See Discriminant_Constraint for format of node
2967 ---------------------------
2968 -- 3.6.1 Discrete Range --
2969 ---------------------------
2971 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2973 ----------------------------
2974 -- 3.7 Discriminant Part --
2975 ----------------------------
2977 -- DISCRIMINANT_PART ::=
2978 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2980 ------------------------------------
2981 -- 3.7 Unknown Discriminant Part --
2982 ------------------------------------
2984 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2986 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2988 -- There is no explicit node in the tree for an unknown discriminant
2989 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2992 ----------------------------------
2993 -- 3.7 Known Discriminant Part --
2994 ----------------------------------
2996 -- KNOWN_DISCRIMINANT_PART ::=
2997 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2999 -------------------------------------
3000 -- 3.7 Discriminant Specification --
3001 -------------------------------------
3003 -- DISCRIMINANT_SPECIFICATION ::=
3004 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3005 -- [:= DEFAULT_EXPRESSION]
3006 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3007 -- [:= DEFAULT_EXPRESSION]
3009 -- Although the syntax allows multiple identifiers in the list, the
3010 -- semantics is as though successive specifications were given with
3011 -- identical type definition and expression components. To simplify
3012 -- semantic processing, the parser represents a multiple declaration
3013 -- case as a sequence of single specifications, using the More_Ids and
3014 -- Prev_Ids flags to preserve the original source form as described
3015 -- in the section on "Handling of Defining Identifier Lists".
3017 -- N_Discriminant_Specification
3018 -- Sloc points to first identifier
3019 -- Defining_Identifier (Node1)
3020 -- Null_Exclusion_Present (Flag11)
3021 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3022 -- Expression (Node3) (set to Empty if no default expression)
3023 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3024 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3026 -----------------------------
3027 -- 3.7 Default Expression --
3028 -----------------------------
3030 -- DEFAULT_EXPRESSION ::= EXPRESSION
3032 ------------------------------------
3033 -- 3.7.1 Discriminant Constraint --
3034 ------------------------------------
3036 -- DISCRIMINANT_CONSTRAINT ::=
3037 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3039 -- It is not in general possible to distinguish between discriminant
3040 -- constraints and index constraints at parse time, since a simple
3041 -- name could be either the subtype mark of a discrete range, or an
3042 -- expression in a discriminant association with no name. Either
3043 -- entry appears simply as the name, and the semantic parse must
3044 -- distinguish between the two cases. Thus we use a common tree
3045 -- node format for both of these constraint types.
3047 -- N_Index_Or_Discriminant_Constraint
3048 -- Sloc points to left paren
3049 -- Constraints (List1) points to list of discrete ranges or
3050 -- discriminant associations
3052 -------------------------------------
3053 -- 3.7.1 Discriminant Association --
3054 -------------------------------------
3056 -- DISCRIMINANT_ASSOCIATION ::=
3057 -- [discriminant_SELECTOR_NAME
3058 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3060 -- Note: a discriminant association that has no selector name list
3061 -- appears directly as an expression in the tree.
3063 -- N_Discriminant_Association
3064 -- Sloc points to first token of discriminant association
3065 -- Selector_Names (List1) (always non-empty, since if no selector
3066 -- names are present, this node is not used, see comment above)
3067 -- Expression (Node3)
3069 ---------------------------------
3070 -- 3.8 Record Type Definition --
3071 ---------------------------------
3073 -- RECORD_TYPE_DEFINITION ::=
3074 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3076 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3078 -- There is no explicit node in the tree for a record type definition.
3079 -- Instead the flags for Tagged_Present and Limited_Present appear in
3080 -- the N_Record_Definition node for a record definition appearing in
3081 -- the context of a record type definition.
3083 ----------------------------
3084 -- 3.8 Record Definition --
3085 ----------------------------
3087 -- RECORD_DEFINITION ::=
3093 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3094 -- flags appear only for a record definition appearing in a record
3097 -- Note: the NULL RECORD case is not permitted in Ada 83
3099 -- N_Record_Definition
3100 -- Sloc points to RECORD or NULL
3101 -- End_Label (Node4) (set to Empty if internally generated record)
3102 -- Abstract_Present (Flag4)
3103 -- Tagged_Present (Flag15)
3104 -- Limited_Present (Flag17)
3105 -- Component_List (Node1) empty in null record case
3106 -- Null_Present (Flag13) set in null record case
3107 -- Task_Present (Flag5) set in task interfaces
3108 -- Protected_Present (Flag6) set in protected interfaces
3109 -- Synchronized_Present (Flag7) set in interfaces
3110 -- Interface_Present (Flag16) set in abstract interfaces
3111 -- Interface_List (List2) (set to No_List if none)
3113 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3114 -- Interface_List and Interface_Present are used for abstract
3115 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3117 -------------------------
3118 -- 3.8 Component List --
3119 -------------------------
3121 -- COMPONENT_LIST ::=
3122 -- COMPONENT_ITEM {COMPONENT_ITEM}
3123 -- | {COMPONENT_ITEM} VARIANT_PART
3127 -- Sloc points to first token of component list
3128 -- Component_Items (List3)
3129 -- Variant_Part (Node4) (set to Empty if no variant part)
3130 -- Null_Present (Flag13)
3132 -------------------------
3133 -- 3.8 Component Item --
3134 -------------------------
3136 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3138 -- Note: A component item can also be a pragma, and in the tree
3139 -- that is obtained after semantic processing, a component item
3140 -- can be an N_Null node resulting from a non-recognized pragma.
3142 --------------------------------
3143 -- 3.8 Component Declaration --
3144 --------------------------------
3146 -- COMPONENT_DECLARATION ::=
3147 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3148 -- [:= DEFAULT_EXPRESSION]
3149 -- [ASPECT_SPECIFICATIONS];
3151 -- Note: although the syntax does not permit a component definition to
3152 -- be an anonymous array (and the parser will diagnose such an attempt
3153 -- with an appropriate message), it is possible for anonymous arrays
3154 -- to appear as component definitions. The semantics and back end handle
3155 -- this case properly, and the expander in fact generates such cases.
3157 -- Although the syntax allows multiple identifiers in the list, the
3158 -- semantics is as though successive declarations were given with the
3159 -- same component definition and expression components. To simplify
3160 -- semantic processing, the parser represents a multiple declaration
3161 -- case as a sequence of single declarations, using the More_Ids and
3162 -- Prev_Ids flags to preserve the original source form as described
3163 -- in the section on "Handling of Defining Identifier Lists".
3165 -- N_Component_Declaration
3166 -- Sloc points to first identifier
3167 -- Defining_Identifier (Node1)
3168 -- Component_Definition (Node4)
3169 -- Expression (Node3) (set to Empty if no default expression)
3170 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3171 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3173 -------------------------
3174 -- 3.8.1 Variant Part --
3175 -------------------------
3178 -- case discriminant_DIRECT_NAME is
3179 -- VARIANT {VARIANT}
3182 -- Note: the variants list can contain pragmas as well as variants.
3183 -- In a properly formed program there is at least one variant.
3186 -- Sloc points to CASE
3190 --------------------
3192 --------------------
3195 -- when DISCRETE_CHOICE_LIST =>
3199 -- Sloc points to WHEN
3200 -- Discrete_Choices (List4)
3201 -- Component_List (Node1)
3202 -- Enclosing_Variant (Node2-Sem)
3203 -- Present_Expr (Uint3-Sem)
3204 -- Dcheck_Function (Node5-Sem)
3205 -- Has_SP_Choice (Flag15-Sem)
3207 -- Note: in the list of Discrete_Choices, the tree passed to the back
3208 -- end does not have choice entries corresponding to names of statically
3209 -- predicated subtypes. Such entries are always expanded out to the list
3210 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3211 -- mode also has this expansion, but done with a proper Rewrite call on
3212 -- the N_Variant node so that ASIS can properly retrieve the original.
3214 ---------------------------------
3215 -- 3.8.1 Discrete Choice List --
3216 ---------------------------------
3218 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3220 ----------------------------
3221 -- 3.8.1 Discrete Choice --
3222 ----------------------------
3224 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3226 -- Note: in Ada 83 mode, the expression must be a simple expression
3228 -- The only choice that appears explicitly is the OTHERS choice, as
3229 -- defined here. Other cases of discrete choice (expression and
3230 -- discrete range) appear directly. This production is also used
3231 -- for the OTHERS possibility of an exception choice.
3233 -- Note: in accordance with the syntax, the parser does not check that
3234 -- OTHERS appears at the end on its own in a choice list context. This
3235 -- is a semantic check.
3238 -- Sloc points to OTHERS
3239 -- Others_Discrete_Choices (List1-Sem)
3240 -- All_Others (Flag11-Sem)
3242 ----------------------------------
3243 -- 3.9.1 Record Extension Part --
3244 ----------------------------------
3246 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3248 -- Note: record extension parts are not permitted in Ada 83 mode
3250 --------------------------------------
3251 -- 3.9.4 Interface Type Definition --
3252 --------------------------------------
3254 -- INTERFACE_TYPE_DEFINITION ::=
3255 -- [limited | task | protected | synchronized]
3256 -- interface [interface_list]
3258 -- Note: Interfaces are implemented with N_Record_Definition and
3259 -- N_Derived_Type_Definition nodes because most of the support
3260 -- for the analysis of abstract types has been reused to
3261 -- analyze abstract interfaces.
3263 ----------------------------------
3264 -- 3.10 Access Type Definition --
3265 ----------------------------------
3267 -- ACCESS_TYPE_DEFINITION ::=
3268 -- ACCESS_TO_OBJECT_DEFINITION
3269 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3271 --------------------------
3272 -- 3.10 Null Exclusion --
3273 --------------------------
3275 -- NULL_EXCLUSION ::= not null
3277 ---------------------------------------
3278 -- 3.10 Access To Object Definition --
3279 ---------------------------------------
3281 -- ACCESS_TO_OBJECT_DEFINITION ::=
3282 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3283 -- SUBTYPE_INDICATION
3285 -- N_Access_To_Object_Definition
3286 -- Sloc points to ACCESS
3287 -- All_Present (Flag15)
3288 -- Null_Exclusion_Present (Flag11)
3289 -- Subtype_Indication (Node5)
3290 -- Constant_Present (Flag17)
3292 -----------------------------------
3293 -- 3.10 General Access Modifier --
3294 -----------------------------------
3296 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3298 -- Note: general access modifiers are not permitted in Ada 83 mode
3300 -- There is no explicit node in the tree for general access modifier.
3301 -- Instead the All_Present or Constant_Present flags are set in the
3304 -------------------------------------------
3305 -- 3.10 Access To Subprogram Definition --
3306 -------------------------------------------
3308 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3309 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3310 -- | [NULL_EXCLUSION] access [protected] function
3311 -- PARAMETER_AND_RESULT_PROFILE
3313 -- Note: access to subprograms are not permitted in Ada 83 mode
3315 -- N_Access_Function_Definition
3316 -- Sloc points to ACCESS
3317 -- Null_Exclusion_Present (Flag11)
3318 -- Null_Exclusion_In_Return_Present (Flag14)
3319 -- Protected_Present (Flag6)
3320 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3321 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3323 -- N_Access_Procedure_Definition
3324 -- Sloc points to ACCESS
3325 -- Null_Exclusion_Present (Flag11)
3326 -- Protected_Present (Flag6)
3327 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3329 -----------------------------
3330 -- 3.10 Access Definition --
3331 -----------------------------
3333 -- ACCESS_DEFINITION ::=
3334 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3335 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3337 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3339 -- N_Access_Definition
3340 -- Sloc points to ACCESS
3341 -- Null_Exclusion_Present (Flag11)
3342 -- All_Present (Flag15)
3343 -- Constant_Present (Flag17)
3344 -- Subtype_Mark (Node4)
3345 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3347 -----------------------------------------
3348 -- 3.10.1 Incomplete Type Declaration --
3349 -----------------------------------------
3351 -- INCOMPLETE_TYPE_DECLARATION ::=
3352 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3354 -- N_Incomplete_Type_Declaration
3355 -- Sloc points to TYPE
3356 -- Defining_Identifier (Node1)
3357 -- Discriminant_Specifications (List4) (set to No_List if no
3358 -- discriminant part, or if the discriminant part is an
3359 -- unknown discriminant part)
3360 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3361 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3362 -- Tagged_Present (Flag15)
3364 ----------------------------
3365 -- 3.11 Declarative Part --
3366 ----------------------------
3368 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3370 -- Note: although the parser enforces the syntactic requirement that
3371 -- a declarative part can contain only declarations, the semantic
3372 -- processing may add statements to the list of actions in a
3373 -- declarative part, so the code generator should be prepared
3374 -- to accept a statement in this position.
3376 ----------------------------
3377 -- 3.11 Declarative Item --
3378 ----------------------------
3380 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3382 ----------------------------------
3383 -- 3.11 Basic Declarative Item --
3384 ----------------------------------
3386 -- BASIC_DECLARATIVE_ITEM ::=
3387 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3393 -- BODY ::= PROPER_BODY | BODY_STUB
3395 -----------------------
3396 -- 3.11 Proper Body --
3397 -----------------------
3400 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3407 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3408 -- | INDEXED_COMPONENT | SLICE
3409 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3410 -- | TYPE_CONVERSION | FUNCTION_CALL
3411 -- | CHARACTER_LITERAL
3413 ----------------------
3414 -- 4.1 Direct Name --
3415 ----------------------
3417 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3423 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3425 -------------------------------
3426 -- 4.1 Explicit Dereference --
3427 -------------------------------
3429 -- EXPLICIT_DEREFERENCE ::= NAME . all
3431 -- N_Explicit_Dereference
3432 -- Sloc points to ALL
3434 -- Actual_Designated_Subtype (Node4-Sem)
3435 -- Atomic_Sync_Required (Flag14-Sem)
3436 -- Has_Dereference_Action (Flag13-Sem)
3437 -- plus fields for expression
3439 -------------------------------
3440 -- 4.1 Implicit Dereference --
3441 -------------------------------
3443 -- IMPLICIT_DEREFERENCE ::= NAME
3445 ------------------------------
3446 -- 4.1.1 Indexed Component --
3447 ------------------------------
3449 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3451 -- Note: the parser may generate this node in some situations where it
3452 -- should be a function call. The semantic pass must correct this
3453 -- misidentification (which is inevitable at the parser level).
3455 -- N_Indexed_Component
3456 -- Sloc contains a copy of the Sloc value of the Prefix
3458 -- Expressions (List1)
3459 -- Atomic_Sync_Required (Flag14-Sem)
3460 -- plus fields for expression
3462 -- Note: if any of the subscripts requires a range check, then the
3463 -- Do_Range_Check flag is set on the corresponding expression, with
3464 -- the index type being determined from the type of the Prefix, which
3465 -- references the array being indexed.
3467 -- Note: in a fully analyzed and expanded indexed component node, and
3468 -- hence in any such node that gigi sees, if the prefix is an access
3469 -- type, then an explicit dereference operation has been inserted.
3475 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3477 -- Note: an implicit subtype is created to describe the resulting
3478 -- type, so that the bounds of this type are the bounds of the slice.
3481 -- Sloc points to first token of prefix
3483 -- Discrete_Range (Node4)
3484 -- plus fields for expression
3486 -------------------------------
3487 -- 4.1.3 Selected Component --
3488 -------------------------------
3490 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3492 -- Note: selected components that are semantically expanded names get
3493 -- changed during semantic processing into the separate N_Expanded_Name
3494 -- node. See description of this node in the section on semantic nodes.
3496 -- N_Selected_Component
3497 -- Sloc points to period
3499 -- Selector_Name (Node2)
3500 -- Associated_Node (Node4-Sem)
3501 -- Do_Discriminant_Check (Flag1-Sem)
3502 -- Is_In_Discriminant_Check (Flag11-Sem)
3503 -- Is_Prefixed_Call (Flag17-Sem)
3504 -- Atomic_Sync_Required (Flag14-Sem)
3505 -- plus fields for expression
3507 --------------------------
3508 -- 4.1.3 Selector Name --
3509 --------------------------
3511 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3513 --------------------------------
3514 -- 4.1.4 Attribute Reference --
3515 --------------------------------
3517 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3519 -- Note: the syntax is quite ambiguous at this point. Consider:
3521 -- A'Length (X) X is part of the attribute designator
3522 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3523 -- A'Class (X) X is the expression of a type conversion
3525 -- It would be possible for the parser to distinguish these cases
3526 -- by looking at the attribute identifier. However, that would mean
3527 -- more work in introducing new implementation defined attributes,
3528 -- and also it would mean that special processing for attributes
3529 -- would be scattered around, instead of being centralized in the
3530 -- semantic routine that handles an N_Attribute_Reference node.
3531 -- Consequently, the parser in all the above cases stores the
3532 -- expression (X in these examples) as a single element list in
3533 -- in the Expressions field of the N_Attribute_Reference node.
3535 -- Similarly, for attributes like Max which take two arguments,
3536 -- we store the two arguments as a two element list in the
3537 -- Expressions field. Of course it is clear at parse time that
3538 -- this case is really a function call with an attribute as the
3539 -- prefix, but it turns out to be convenient to handle the two
3540 -- argument case in a similar manner to the one argument case,
3541 -- and indeed in general the parser will accept any number of
3542 -- expressions in this position and store them as a list in the
3543 -- attribute reference node. This allows for future addition of
3544 -- attributes that take more than two arguments.
3546 -- Note: named associates are not permitted in function calls where
3547 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3548 -- to skip the normal subprogram argument processing.
3550 -- Note: for the attributes whose designators are technically keywords,
3551 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3552 -- the corresponding name, even though no identifier is involved.
3554 -- Note: the generated code may contain stream attributes applied to
3555 -- limited types for which no stream routines exist officially. In such
3556 -- case, the result is to use the stream attribute for the underlying
3557 -- full type, or in the case of a protected type, the components
3558 -- (including any discriminants) are merely streamed in order.
3560 -- See Exp_Attr for a complete description of which attributes are
3561 -- passed onto Gigi, and which are handled entirely by the front end.
3563 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3564 -- a non-standard enumeration type or a nonzero/zero semantics
3565 -- boolean type, so the value is simply the stored representation.
3567 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3568 -- references a subprogram that is a renaming, then the front end must
3569 -- rewrite the attribute to refer directly to the renamed entity.
3571 -- Note: In generated code, the Address and Unrestricted_Access
3572 -- attributes can be applied to any expression, and the meaning is
3573 -- to create an object containing the value (the object is in the
3574 -- current stack frame), and pass the address of this value. If the
3575 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3576 -- is taken must be on a byte (storage unit) boundary, and if it is
3577 -- not (or may not be), then the generated code must create a copy
3578 -- that is byte aligned, and pass the address of this copy.
3580 -- N_Attribute_Reference
3581 -- Sloc points to apostrophe
3583 -- Attribute_Name (Name2) identifier name from attribute designator
3584 -- Expressions (List1) (set to No_List if no associated expressions)
3585 -- Entity (Node4-Sem) used if the attribute yields a type
3586 -- Associated_Node (Node4-Sem)
3587 -- Do_Overflow_Check (Flag17-Sem)
3588 -- Header_Size_Added (Flag11-Sem)
3589 -- Redundant_Use (Flag13-Sem)
3590 -- Must_Be_Byte_Aligned (Flag14)
3591 -- plus fields for expression
3593 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3594 -- into equivalent if expressions, properly taking care of side effects.
3596 ---------------------------------
3597 -- 4.1.4 Attribute Designator --
3598 ---------------------------------
3600 -- ATTRIBUTE_DESIGNATOR ::=
3601 -- IDENTIFIER [(static_EXPRESSION)]
3602 -- | access | delta | digits
3604 -- There is no explicit node in the tree for an attribute designator.
3605 -- Instead the Attribute_Name and Expressions fields of the parent
3606 -- node (N_Attribute_Reference node) hold the information.
3608 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3609 -- designator, then they are treated as identifiers internally
3610 -- rather than the keywords of the same name.
3612 --------------------------------------
3613 -- 4.1.4 Range Attribute Reference --
3614 --------------------------------------
3616 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3618 -- A range attribute reference is represented in the tree using the
3619 -- normal N_Attribute_Reference node.
3621 ---------------------------------------
3622 -- 4.1.4 Range Attribute Designator --
3623 ---------------------------------------
3625 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3627 -- A range attribute designator is represented in the tree using the
3628 -- normal N_Attribute_Reference node.
3630 --------------------
3632 --------------------
3635 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3637 -----------------------------
3638 -- 4.3.1 Record Aggregate --
3639 -----------------------------
3641 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3644 -- Sloc points to left parenthesis
3645 -- Expressions (List1) (set to No_List if none or null record case)
3646 -- Component_Associations (List2) (set to No_List if none)
3647 -- Null_Record_Present (Flag17)
3648 -- Aggregate_Bounds (Node3-Sem)
3649 -- Associated_Node (Node4-Sem)
3650 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3651 -- Expansion_Delayed (Flag11-Sem)
3652 -- Has_Self_Reference (Flag13-Sem)
3653 -- plus fields for expression
3655 -- Note: this structure is used for both record and array aggregates
3656 -- since the two cases are not separable by the parser. The parser
3657 -- makes no attempt to enforce consistency here, so it is up to the
3658 -- semantic phase to make sure that the aggregate is consistent (i.e.
3659 -- that it is not a "half-and-half" case that mixes record and array
3660 -- syntax. In particular, for a record aggregate, the expressions
3661 -- field will be set if there are positional associations.
3663 -- Note: N_Aggregate is not used for all aggregates; in particular,
3664 -- there is a separate node kind for extension aggregates.
3666 -- Note: gigi/gcc can handle array aggregates correctly providing that
3667 -- they are entirely positional, and the array subtype involved has a
3668 -- known at compile time length and is not bit packed, or a convention
3669 -- Fortran array with more than one dimension. If these conditions
3670 -- are not met, then the front end must translate the aggregate into
3671 -- an appropriate set of assignments into a temporary.
3673 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3674 -- record aggregates, including those for packed, and rep-claused
3675 -- records, and also variant records, providing that there are no
3676 -- variable length fields whose size is not known at compile time, and
3677 -- providing that the aggregate is presented in fully named form.
3679 ----------------------------------------------
3680 -- 4.3.1 Record Component Association List --
3681 ----------------------------------------------
3683 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3684 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3687 -- There is no explicit node in the tree for a record component
3688 -- association list. Instead the Null_Record_Present flag is set in
3689 -- the parent node for the NULL RECORD case.
3691 ------------------------------------------------------
3692 -- 4.3.1 Record Component Association (also 4.3.3) --
3693 ------------------------------------------------------
3695 -- RECORD_COMPONENT_ASSOCIATION ::=
3696 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3698 -- N_Component_Association
3699 -- Sloc points to first selector name
3701 -- Loop_Actions (List2-Sem)
3702 -- Expression (Node3) (empty if Box_Present)
3703 -- Box_Present (Flag15)
3704 -- Inherited_Discriminant (Flag13)
3706 -- Note: this structure is used for both record component associations
3707 -- and array component associations, since the two cases aren't always
3708 -- separable by the parser. The choices list may represent either a
3709 -- list of selector names in the record aggregate case, or a list of
3710 -- discrete choices in the array aggregate case or an N_Others_Choice
3711 -- node (which appears as a singleton list). Box_Present gives support
3712 -- to Ada 2005 (AI-287).
3714 ----------------------------------
3715 -- 4.3.1 Component Choice List --
3716 ----------------------------------
3718 -- COMPONENT_CHOICE_LIST ::=
3719 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3722 -- The entries of a component choice list appear in the Choices list of
3723 -- the associated N_Component_Association, as either selector names, or
3724 -- as an N_Others_Choice node.
3726 --------------------------------
3727 -- 4.3.2 Extension Aggregate --
3728 --------------------------------
3730 -- EXTENSION_AGGREGATE ::=
3731 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3733 -- Note: extension aggregates are not permitted in Ada 83 mode
3735 -- N_Extension_Aggregate
3736 -- Sloc points to left parenthesis
3737 -- Ancestor_Part (Node3)
3738 -- Associated_Node (Node4-Sem)
3739 -- Expressions (List1) (set to No_List if none or null record case)
3740 -- Component_Associations (List2) (set to No_List if none)
3741 -- Null_Record_Present (Flag17)
3742 -- Expansion_Delayed (Flag11-Sem)
3743 -- Has_Self_Reference (Flag13-Sem)
3744 -- plus fields for expression
3746 --------------------------
3747 -- 4.3.2 Ancestor Part --
3748 --------------------------
3750 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3752 ----------------------------
3753 -- 4.3.3 Array Aggregate --
3754 ----------------------------
3756 -- ARRAY_AGGREGATE ::=
3757 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3759 ---------------------------------------
3760 -- 4.3.3 Positional Array Aggregate --
3761 ---------------------------------------
3763 -- POSITIONAL_ARRAY_AGGREGATE ::=
3764 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3765 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3767 -- See Record_Aggregate (4.3.1) for node structure
3769 ----------------------------------
3770 -- 4.3.3 Named Array Aggregate --
3771 ----------------------------------
3773 -- NAMED_ARRAY_AGGREGATE ::=
3774 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3776 -- See Record_Aggregate (4.3.1) for node structure
3778 ----------------------------------------
3779 -- 4.3.3 Array Component Association --
3780 ----------------------------------------
3782 -- ARRAY_COMPONENT_ASSOCIATION ::=
3783 -- DISCRETE_CHOICE_LIST => EXPRESSION
3785 -- See Record_Component_Association (4.3.1) for node structure
3787 --------------------------------------------------
3788 -- 4.4 Expression/Relation/Term/Factor/Primary --
3789 --------------------------------------------------
3792 -- RELATION {LOGICAL_OPERATOR RELATION}
3794 -- CHOICE_EXPRESSION ::=
3795 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3797 -- CHOICE_RELATION ::=
3798 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3801 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3802 -- | RAISE_EXPRESSION
3804 -- MEMBERSHIP_CHOICE_LIST ::=
3805 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3807 -- MEMBERSHIP_CHOICE ::=
3808 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3810 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3812 -- SIMPLE_EXPRESSION ::=
3813 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3815 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3817 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3819 -- No nodes are generated for any of these constructs. Instead, the
3820 -- node for the operator appears directly. When we refer to an
3821 -- expression in this description, we mean any of the possible
3822 -- constituent components of an expression (e.g. identifier is
3823 -- an example of an expression).
3825 -- Note: the above syntax is that Ada 2012 syntax which restricts
3826 -- choice relations to simple expressions to avoid ambiguities in
3827 -- some contexts with set membership notation. It has been decided
3828 -- that in retrospect, the Ada 95 change allowing general expressions
3829 -- in this context was a mistake, so we have reverted to the above
3830 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3831 -- expressions was there in Ada 83 from the start).
3838 -- NUMERIC_LITERAL | null
3839 -- | STRING_LITERAL | AGGREGATE
3840 -- | NAME | QUALIFIED_EXPRESSION
3841 -- | ALLOCATOR | (EXPRESSION)
3843 -- Usually there is no explicit node in the tree for primary. Instead
3844 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3845 -- exceptions. First, there is an explicit node for a null primary.
3848 -- Sloc points to NULL
3849 -- plus fields for expression
3851 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3852 -- that the parser keep track of which subexpressions are enclosed
3853 -- in parentheses, and how many levels of parentheses are used. This
3854 -- information is required for optimization purposes, and also for
3855 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3856 -- conform with ((((1)))) in the body).
3858 -- The parentheses are recorded by keeping a Paren_Count field in every
3859 -- subexpression node (it is actually present in all nodes, but only
3860 -- used in subexpression nodes). This count records the number of
3861 -- levels of parentheses. If the number of levels in the source exceeds
3862 -- the maximum accommodated by this count, then the count is simply left
3863 -- at the maximum value. This means that there are some pathological
3864 -- cases of failure to detect conformance failures (e.g. an expression
3865 -- with 500 levels of parens will conform with one with 501 levels),
3866 -- but we do not need to lose sleep over this.
3868 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3869 -- type N_Parenthesized_Expression used to accurately record unlimited
3870 -- numbers of levels of parentheses. However, it turned out to be a
3871 -- real nuisance to have to take into account the possible presence of
3872 -- this node during semantic analysis, since basically parentheses have
3873 -- zero relevance to semantic analysis.
3875 -- Note: the level of parentheses always present in things like
3876 -- aggregates does not count, only the parentheses in the primary
3877 -- (EXPRESSION) affect the setting of the Paren_Count field.
3879 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3880 -- treated as though it were Empty) if No_Initialization is set True.
3882 --------------------------------------
3883 -- 4.5 Short Circuit Control Forms --
3884 --------------------------------------
3887 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3889 -- Gigi restriction: For both these control forms, the operand and
3890 -- result types are always Standard.Boolean. The expander inserts the
3891 -- required conversion operations where needed to ensure this is the
3895 -- Sloc points to AND of AND THEN
3896 -- Left_Opnd (Node2)
3897 -- Right_Opnd (Node3)
3898 -- Actions (List1-Sem)
3899 -- plus fields for expression
3902 -- Sloc points to OR of OR ELSE
3903 -- Left_Opnd (Node2)
3904 -- Right_Opnd (Node3)
3905 -- Actions (List1-Sem)
3906 -- plus fields for expression
3908 -- Note: The Actions field is used to hold actions associated with
3909 -- the right hand operand. These have to be treated specially since
3910 -- they are not unconditionally executed. See Insert_Actions for a
3911 -- more detailed description of how these actions are handled.
3913 ---------------------------
3914 -- 4.5 Membership Tests --
3915 ---------------------------
3918 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3920 -- MEMBERSHIP_CHOICE_LIST ::=
3921 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3923 -- MEMBERSHIP_CHOICE ::=
3924 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3926 -- Note: although the grammar above allows only a range or a subtype
3927 -- mark, the parser in fact will accept any simple expression in place
3928 -- of a subtype mark. This means that the semantic analyzer must be able
3929 -- to deal with, and diagnose a simple expression other than a name for
3930 -- the right operand. This simplifies error recovery in the parser.
3932 -- The Alternatives field below is present only if there is more
3933 -- than one Membership_Choice present (which is legitimate only in
3934 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3935 -- contains the list of choices. In the tree passed to the back end,
3936 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3937 -- expansion circuitry expands out the complex set membership case
3938 -- using simple membership operations).
3940 -- Should we rename Alternatives here to Membership_Choices ???
3943 -- Sloc points to IN
3944 -- Left_Opnd (Node2)
3945 -- Right_Opnd (Node3)
3946 -- Alternatives (List4) (set to No_List if only one set alternative)
3947 -- No_Minimize_Eliminate (Flag17)
3948 -- plus fields for expression
3951 -- Sloc points to NOT of NOT IN
3952 -- Left_Opnd (Node2)
3953 -- Right_Opnd (Node3)
3954 -- Alternatives (List4) (set to No_List if only one set alternative)
3955 -- No_Minimize_Eliminate (Flag17)
3956 -- plus fields for expression
3958 --------------------
3960 --------------------
3962 -- LOGICAL_OPERATOR ::= and | or | xor
3964 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3966 -- BINARY_ADDING_OPERATOR ::= + | - | &
3968 -- UNARY_ADDING_OPERATOR ::= + | -
3970 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3972 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3974 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3981 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3982 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3983 -- All handling of smalls for multiplication and division is handled
3984 -- by the front end (mod and rem result only from expansion). Gigi
3985 -- thus never needs to worry about small values (for other operators
3986 -- operating on fixed-point, e.g. addition, the small value does not
3987 -- have any semantic effect anyway, these are always integer operations.
3989 -- Gigi restriction: For all operators taking Boolean operands, the
3990 -- type is always Standard.Boolean. The expander inserts the required
3991 -- conversion operations where needed to ensure this is the case.
3994 -- Sloc points to AND
3995 -- Do_Length_Check (Flag4-Sem)
3996 -- plus fields for binary operator
3997 -- plus fields for expression
4000 -- Sloc points to OR
4001 -- Do_Length_Check (Flag4-Sem)
4002 -- plus fields for binary operator
4003 -- plus fields for expression
4006 -- Sloc points to XOR
4007 -- Do_Length_Check (Flag4-Sem)
4008 -- plus fields for binary operator
4009 -- plus fields for expression
4013 -- plus fields for binary operator
4014 -- plus fields for expression
4017 -- Sloc points to /=
4018 -- plus fields for binary operator
4019 -- plus fields for expression
4023 -- plus fields for binary operator
4024 -- plus fields for expression
4027 -- Sloc points to <=
4028 -- plus fields for binary operator
4029 -- plus fields for expression
4033 -- plus fields for binary operator
4034 -- plus fields for expression
4037 -- Sloc points to >=
4038 -- plus fields for binary operator
4039 -- plus fields for expression
4042 -- Sloc points to + (binary)
4043 -- plus fields for binary operator
4044 -- plus fields for expression
4047 -- Sloc points to - (binary)
4048 -- plus fields for binary operator
4049 -- plus fields for expression
4053 -- Is_Component_Left_Opnd (Flag13-Sem)
4054 -- Is_Component_Right_Opnd (Flag14-Sem)
4055 -- plus fields for binary operator
4056 -- plus fields for expression
4060 -- Treat_Fixed_As_Integer (Flag14-Sem)
4061 -- Rounded_Result (Flag18-Sem)
4062 -- plus fields for binary operator
4063 -- plus fields for expression
4067 -- Treat_Fixed_As_Integer (Flag14-Sem)
4068 -- Do_Division_Check (Flag13-Sem)
4069 -- Rounded_Result (Flag18-Sem)
4070 -- plus fields for binary operator
4071 -- plus fields for expression
4074 -- Sloc points to MOD
4075 -- Treat_Fixed_As_Integer (Flag14-Sem)
4076 -- Do_Division_Check (Flag13-Sem)
4077 -- plus fields for binary operator
4078 -- plus fields for expression
4081 -- Sloc points to REM
4082 -- Treat_Fixed_As_Integer (Flag14-Sem)
4083 -- Do_Division_Check (Flag13-Sem)
4084 -- plus fields for binary operator
4085 -- plus fields for expression
4088 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4089 -- Sloc points to **
4090 -- plus fields for binary operator
4091 -- plus fields for expression
4094 -- Sloc points to + (unary)
4095 -- plus fields for unary operator
4096 -- plus fields for expression
4099 -- Sloc points to - (unary)
4100 -- plus fields for unary operator
4101 -- plus fields for expression
4104 -- Sloc points to ABS
4105 -- plus fields for unary operator
4106 -- plus fields for expression
4109 -- Sloc points to NOT
4110 -- plus fields for unary operator
4111 -- plus fields for expression
4113 -- See also shift operators in section B.2
4115 -- Note on fixed-point operations passed to Gigi: For adding operators,
4116 -- the semantics is to treat these simply as integer operations, with
4117 -- the small values being ignored (the bounds are already stored in
4118 -- units of small, so that constraint checking works as usual). For the
4119 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4120 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4121 -- thus treat these nodes in identical manner, ignoring small values.
4123 -- Note on overflow handling: When the overflow checking mode is set to
4124 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4125 -- be modified to use a larger type for the operands and result. In
4126 -- the case where the computed range exceeds that of Long_Long_Integer,
4127 -- and we are running in ELIMINATED mode, the operator node will be
4128 -- changed to be a call to the appropriate routine in System.Bignums.
4130 ------------------------------------
4131 -- 4.5.7 Conditional Expressions --
4132 ------------------------------------
4134 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4136 --------------------------
4137 -- 4.5.7 If Expression --
4138 ----------------------------
4140 -- IF_EXPRESSION ::=
4141 -- if CONDITION then DEPENDENT_EXPRESSION
4142 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4143 -- [else DEPENDENT_EXPRESSION]
4145 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4147 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4148 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4149 -- the Is_Elsif flag is set on the inner if expression.
4152 -- Sloc points to IF or ELSIF keyword
4153 -- Expressions (List1)
4154 -- Then_Actions (List2-Sem)
4155 -- Else_Actions (List3-Sem)
4156 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4157 -- Do_Overflow_Check (Flag17-Sem)
4158 -- plus fields for expression
4160 -- Expressions here is a three-element list, whose first element is the
4161 -- condition, the second element is the dependent expression after THEN
4162 -- and the third element is the dependent expression after the ELSE
4163 -- (explicitly set to True if missing).
4165 -- Note: the Then_Actions and Else_Actions fields are always set to
4166 -- No_List in the tree passed to Gigi. These fields are used only
4167 -- for temporary processing purposes in the expander.
4169 ----------------------------
4170 -- 4.5.7 Case Expression --
4171 ----------------------------
4173 -- CASE_EXPRESSION ::=
4174 -- case SELECTING_EXPRESSION is
4175 -- CASE_EXPRESSION_ALTERNATIVE
4176 -- {CASE_EXPRESSION_ALTERNATIVE}
4178 -- Note that the Alternatives cannot include pragmas (this contrasts
4179 -- with the situation of case statements where pragmas are allowed).
4181 -- N_Case_Expression
4182 -- Sloc points to CASE
4183 -- Expression (Node3) (the selecting expression)
4184 -- Alternatives (List4) (the case expression alternatives)
4185 -- Do_Overflow_Check (Flag17-Sem)
4187 ----------------------------------------
4188 -- 4.5.7 Case Expression Alternative --
4189 ----------------------------------------
4191 -- CASE_EXPRESSION_ALTERNATIVE ::=
4192 -- when DISCRETE_CHOICE_LIST =>
4193 -- DEPENDENT_EXPRESSION
4195 -- N_Case_Expression_Alternative
4196 -- Sloc points to WHEN
4198 -- Discrete_Choices (List4)
4199 -- Expression (Node3)
4200 -- Has_SP_Choice (Flag15-Sem)
4202 -- Note: The Actions field temporarily holds any actions associated with
4203 -- evaluation of the Expression. During expansion of the case expression
4204 -- these actions are wrapped into an N_Expressions_With_Actions node
4205 -- replacing the original expression.
4207 -- Note: this node never appears in the tree passed to the back end,
4208 -- since the expander converts case expressions into case statements.
4210 ---------------------------------
4211 -- 4.5.9 Quantified Expression --
4212 ---------------------------------
4214 -- QUANTIFIED_EXPRESSION ::=
4215 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4216 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4218 -- QUANTIFIER ::= all | some
4220 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4221 -- is present at a time, in which case the other one is empty.
4223 -- N_Quantified_Expression
4224 -- Sloc points to FOR
4225 -- Iterator_Specification (Node2)
4226 -- Loop_Parameter_Specification (Node4)
4227 -- Condition (Node1)
4228 -- All_Present (Flag15)
4230 --------------------------
4231 -- 4.6 Type Conversion --
4232 --------------------------
4234 -- TYPE_CONVERSION ::=
4235 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4237 -- In the (NAME) case, the name is stored as the expression
4239 -- Note: the parser never generates a type conversion node, since it
4240 -- looks like an indexed component which is generated by preference.
4241 -- The semantic pass must correct this misidentification.
4243 -- Gigi handles conversions that involve no change in the root type,
4244 -- and also all conversions from integer to floating-point types.
4245 -- Conversions from floating-point to integer are only handled in
4246 -- the case where Float_Truncate flag set. Other conversions from
4247 -- floating-point to integer (involving rounding) and all conversions
4248 -- involving fixed-point types are handled by the expander.
4250 -- Sprint syntax if Float_Truncate set: X^(Y)
4251 -- Sprint syntax if Conversion_OK set X?(Y)
4252 -- Sprint syntax if both flags set X?^(Y)
4254 -- Note: If either the operand or result type is fixed-point, Gigi will
4255 -- only see a type conversion node with Conversion_OK set. The front end
4256 -- takes care of all handling of small's for fixed-point conversions.
4258 -- N_Type_Conversion
4259 -- Sloc points to first token of subtype mark
4260 -- Subtype_Mark (Node4)
4261 -- Expression (Node3)
4262 -- Do_Discriminant_Check (Flag1-Sem)
4263 -- Do_Length_Check (Flag4-Sem)
4264 -- Float_Truncate (Flag11-Sem)
4265 -- Do_Tag_Check (Flag13-Sem)
4266 -- Conversion_OK (Flag14-Sem)
4267 -- Do_Overflow_Check (Flag17-Sem)
4268 -- Rounded_Result (Flag18-Sem)
4269 -- plus fields for expression
4271 -- Note: if a range check is required, then the Do_Range_Check flag
4272 -- is set in the Expression with the check being done against the
4273 -- target type range (after the base type conversion, if any).
4275 -------------------------------
4276 -- 4.7 Qualified Expression --
4277 -------------------------------
4279 -- QUALIFIED_EXPRESSION ::=
4280 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4282 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4283 -- the expression, so the Expression field of this node always points
4284 -- to a parenthesized expression in this case (i.e. Paren_Count will
4285 -- always be non-zero for the referenced expression if it is not an
4288 -- N_Qualified_Expression
4289 -- Sloc points to apostrophe
4290 -- Subtype_Mark (Node4)
4291 -- Expression (Node3) expression or aggregate
4292 -- plus fields for expression
4294 --------------------
4296 --------------------
4299 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4300 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4302 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4304 -- Sprint syntax (when storage pool present)
4305 -- new xxx (storage_pool = pool)
4307 -- new (subpool) xxx (storage_pool = pool)
4310 -- Sloc points to NEW
4311 -- Expression (Node3) subtype indication or qualified expression
4312 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4313 -- Storage_Pool (Node1-Sem)
4314 -- Procedure_To_Call (Node2-Sem)
4315 -- Null_Exclusion_Present (Flag11)
4316 -- No_Initialization (Flag13-Sem)
4317 -- Is_Static_Coextension (Flag14-Sem)
4318 -- Do_Storage_Check (Flag17-Sem)
4319 -- Is_Dynamic_Coextension (Flag18-Sem)
4320 -- plus fields for expression
4322 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4323 -- This flag has a special function in conjunction with the restriction
4324 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4325 -- is not set. This means that if a source allocator is replaced with
4326 -- a constructed allocator, the Comes_From_Source flag should be copied
4327 -- to the newly created allocator.
4329 ---------------------------------
4330 -- 5.1 Sequence Of Statements --
4331 ---------------------------------
4333 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4335 -- Note: Although the parser will not accept a declaration as a
4336 -- statement, the semantic analyzer may insert declarations (e.g.
4337 -- declarations of implicit types needed for execution of other
4338 -- statements) into a sequence of statements, so the code generator
4339 -- should be prepared to accept a declaration where a statement is
4340 -- expected. Note also that pragmas can appear as statements.
4342 --------------------
4344 --------------------
4347 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4349 -- There is no explicit node in the tree for a statement. Instead, the
4350 -- individual statement appears directly. Labels are treated as a
4351 -- kind of statement, i.e. they are linked into a statement list at
4352 -- the point they appear, so the labeled statement appears following
4353 -- the label or labels in the statement list.
4355 ---------------------------
4356 -- 5.1 Simple Statement --
4357 ---------------------------
4359 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4360 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4361 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4362 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4363 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4364 -- | ABORT_STATEMENT | RAISE_STATEMENT
4367 -----------------------------
4368 -- 5.1 Compound Statement --
4369 -----------------------------
4371 -- COMPOUND_STATEMENT ::=
4372 -- IF_STATEMENT | CASE_STATEMENT
4373 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4374 -- | EXTENDED_RETURN_STATEMENT
4375 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4377 -------------------------
4378 -- 5.1 Null Statement --
4379 -------------------------
4381 -- NULL_STATEMENT ::= null;
4384 -- Sloc points to NULL
4390 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4392 -- Note that the occurrence of a label is not a defining identifier,
4393 -- but rather a referencing occurrence. The defining occurrence is
4394 -- in the implicit label declaration which occurs in the innermost
4398 -- Sloc points to <<
4399 -- Identifier (Node1) direct name of statement identifier
4400 -- Exception_Junk (Flag8-Sem)
4402 -- Note: Before Ada 2012, a label is always followed by a statement,
4403 -- and this is true in the tree even in Ada 2012 mode (the parser
4404 -- inserts a null statement marked with Comes_From_Source False).
4406 -------------------------------
4407 -- 5.1 Statement Identifier --
4408 -------------------------------
4410 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4412 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4413 -- (not an OPERATOR_SYMBOL)
4415 -------------------------------
4416 -- 5.2 Assignment Statement --
4417 -------------------------------
4419 -- ASSIGNMENT_STATEMENT ::=
4420 -- variable_NAME := EXPRESSION;
4422 -- N_Assignment_Statement
4423 -- Sloc points to :=
4425 -- Expression (Node3)
4426 -- Do_Discriminant_Check (Flag1-Sem)
4427 -- Do_Tag_Check (Flag13-Sem)
4428 -- Do_Length_Check (Flag4-Sem)
4429 -- Forwards_OK (Flag5-Sem)
4430 -- Backwards_OK (Flag6-Sem)
4431 -- No_Ctrl_Actions (Flag7-Sem)
4432 -- Componentwise_Assignment (Flag14-Sem)
4433 -- Suppress_Assignment_Checks (Flag18-Sem)
4435 -- Note: if a range check is required, then the Do_Range_Check flag
4436 -- is set in the Expression (right hand side), with the check being
4437 -- done against the type of the Name (left hand side).
4439 -- Note: the back end places some restrictions on the form of the
4440 -- Expression field. If the object being assigned to is Atomic, then
4441 -- the Expression may not have the form of an aggregate (since this
4442 -- might cause the back end to generate separate assignments). In this
4443 -- case the front end must generate an extra temporary and initialize
4444 -- this temporary as required (the temporary itself is not atomic).
4446 -----------------------
4447 -- 5.3 If Statement --
4448 -----------------------
4451 -- if CONDITION then
4452 -- SEQUENCE_OF_STATEMENTS
4453 -- {elsif CONDITION then
4454 -- SEQUENCE_OF_STATEMENTS}
4456 -- SEQUENCE_OF_STATEMENTS]
4459 -- Gigi restriction: This expander ensures that the type of the
4460 -- Condition fields is always Standard.Boolean, even if the type
4461 -- in the source is some non-standard boolean type.
4464 -- Sloc points to IF
4465 -- Condition (Node1)
4466 -- Then_Statements (List2)
4467 -- Elsif_Parts (List3) (set to No_List if none present)
4468 -- Else_Statements (List4) (set to No_List if no else part present)
4469 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4472 -- Sloc points to ELSIF
4473 -- Condition (Node1)
4474 -- Then_Statements (List2)
4475 -- Condition_Actions (List3-Sem)
4477 --------------------
4479 --------------------
4481 -- CONDITION ::= boolean_EXPRESSION
4483 -------------------------
4484 -- 5.4 Case Statement --
4485 -------------------------
4487 -- CASE_STATEMENT ::=
4488 -- case EXPRESSION is
4489 -- CASE_STATEMENT_ALTERNATIVE
4490 -- {CASE_STATEMENT_ALTERNATIVE}
4493 -- Note: the Alternatives can contain pragmas. These only occur at
4494 -- the start of the list, since any pragmas occurring after the first
4495 -- alternative are absorbed into the corresponding statement sequence.
4498 -- Sloc points to CASE
4499 -- Expression (Node3)
4500 -- Alternatives (List4)
4501 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4503 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4504 -- followed by a statement, and this is true in the tree even in Ada
4505 -- 2012 mode (the parser inserts a null statement marked with the flag
4506 -- Comes_From_Source False).
4508 -------------------------------------
4509 -- 5.4 Case Statement Alternative --
4510 -------------------------------------
4512 -- CASE_STATEMENT_ALTERNATIVE ::=
4513 -- when DISCRETE_CHOICE_LIST =>
4514 -- SEQUENCE_OF_STATEMENTS
4516 -- N_Case_Statement_Alternative
4517 -- Sloc points to WHEN
4518 -- Discrete_Choices (List4)
4519 -- Statements (List3)
4520 -- Has_SP_Choice (Flag15-Sem)
4522 -- Note: in the list of Discrete_Choices, the tree passed to the back
4523 -- end does not have choice entries corresponding to names of statically
4524 -- predicated subtypes. Such entries are always expanded out to the list
4525 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4526 -- mode does not have this expansion, and has the original choices.
4528 -------------------------
4529 -- 5.5 Loop Statement --
4530 -------------------------
4532 -- LOOP_STATEMENT ::=
4533 -- [loop_STATEMENT_IDENTIFIER :]
4534 -- [ITERATION_SCHEME] loop
4535 -- SEQUENCE_OF_STATEMENTS
4536 -- end loop [loop_IDENTIFIER];
4538 -- Note: The occurrence of a loop label is not a defining identifier
4539 -- but rather a referencing occurrence. The defining occurrence is in
4540 -- the implicit label declaration which occurs in the innermost
4543 -- Note: there is always a loop statement identifier present in
4544 -- the tree, even if none was given in the source. In the case where
4545 -- no loop identifier is given in the source, the parser creates
4546 -- a name of the form _Loop_n, where n is a decimal integer (the
4547 -- two underlines ensure that the loop names created in this manner
4548 -- do not conflict with any user defined identifiers), and the flag
4549 -- Has_Created_Identifier is set to True. The only exception to the
4550 -- rule that all loop statement nodes have identifiers occurs for
4551 -- loops constructed by the expander, and the semantic analyzer will
4552 -- create and supply dummy loop identifiers in these cases.
4555 -- Sloc points to LOOP
4556 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4557 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4558 -- Statements (List3)
4559 -- End_Label (Node4)
4560 -- Has_Created_Identifier (Flag15)
4561 -- Is_Null_Loop (Flag16)
4562 -- Suppress_Loop_Warnings (Flag17)
4564 -- Note: the parser fills in the Identifier field if there is an
4565 -- explicit loop identifier. Otherwise the parser leaves this field
4566 -- set to Empty, and then the semantic processing for a loop statement
4567 -- creates an identifier, setting the Has_Created_Identifier flag to
4568 -- True. So after semantic analysis, the Identifier is always set,
4569 -- referencing an identifier whose entity has an Ekind of E_Loop.
4571 ---------------------------
4572 -- 5.5 Iteration Scheme --
4573 ---------------------------
4575 -- ITERATION_SCHEME ::=
4577 -- | for LOOP_PARAMETER_SPECIFICATION
4578 -- | for ITERATOR_SPECIFICATION
4580 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4581 -- is present at a time, in which case the other one is empty. Both are
4582 -- empty in the case of a WHILE loop.
4584 -- Gigi restriction: This expander ensures that the type of the
4585 -- Condition field is always Standard.Boolean, even if the type
4586 -- in the source is some non-standard boolean type.
4588 -- N_Iteration_Scheme
4589 -- Sloc points to WHILE or FOR
4590 -- Condition (Node1) (set to Empty if FOR case)
4591 -- Condition_Actions (List3-Sem)
4592 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4593 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4595 ---------------------------------------
4596 -- 5.5 Loop Parameter Specification --
4597 ---------------------------------------
4599 -- LOOP_PARAMETER_SPECIFICATION ::=
4600 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4602 -- N_Loop_Parameter_Specification
4603 -- Sloc points to first identifier
4604 -- Defining_Identifier (Node1)
4605 -- Reverse_Present (Flag15)
4606 -- Discrete_Subtype_Definition (Node4)
4608 -----------------------------------
4609 -- 5.5.1 Iterator Specification --
4610 -----------------------------------
4612 -- ITERATOR_SPECIFICATION ::=
4613 -- DEFINING_IDENTIFIER in [reverse] NAME
4614 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4616 -- N_Iterator_Specification
4617 -- Sloc points to defining identifier
4618 -- Defining_Identifier (Node1)
4620 -- Reverse_Present (Flag15)
4621 -- Of_Present (Flag16)
4622 -- Subtype_Indication (Node5)
4624 -- Note: The Of_Present flag distinguishes the two forms
4626 --------------------------
4627 -- 5.6 Block Statement --
4628 --------------------------
4630 -- BLOCK_STATEMENT ::=
4631 -- [block_STATEMENT_IDENTIFIER:]
4633 -- DECLARATIVE_PART]
4635 -- HANDLED_SEQUENCE_OF_STATEMENTS
4636 -- end [block_IDENTIFIER];
4638 -- Note that the occurrence of a block identifier is not a defining
4639 -- identifier, but rather a referencing occurrence. The defining
4640 -- occurrence is an E_Block entity declared by the implicit label
4641 -- declaration which occurs in the innermost enclosing block statement
4642 -- or body; the block identifier denotes that E_Block.
4644 -- For block statements that come from source code, there is always a
4645 -- block statement identifier present in the tree, denoting an
4646 -- E_Block. In the case where no block identifier is given in the
4647 -- source, the parser creates a name of the form B_n, where n is a
4648 -- decimal integer, and the flag Has_Created_Identifier is set to
4649 -- True. Blocks constructed by the expander usually have no identifier,
4650 -- and no corresponding entity.
4652 -- Note: the block statement created for an extended return statement
4653 -- has an entity, and this entity is an E_Return_Statement, rather than
4654 -- the usual E_Block.
4656 -- Note: Exception_Junk is set for the wrapping blocks created during
4657 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4659 -- Note: from a control flow viewpoint, a block statement defines an
4660 -- extended basic block, i.e. the entry of the block dominates every
4661 -- statement in the sequence. When generating new statements with
4662 -- exception handlers in the expander at the end of a sequence that
4663 -- comes from source code, it can be necessary to wrap them all in a
4664 -- block statement in order to expose the implicit control flow to
4665 -- gigi and thus prevent it from issuing bogus control flow warnings.
4667 -- N_Block_Statement
4668 -- Sloc points to DECLARE or BEGIN
4669 -- Identifier (Node1) block direct name (set to Empty if not present)
4670 -- Declarations (List2) (set to No_List if no DECLARE part)
4671 -- Handled_Statement_Sequence (Node4)
4672 -- Is_Task_Master (Flag5-Sem)
4673 -- Activation_Chain_Entity (Node3-Sem)
4674 -- Has_Created_Identifier (Flag15)
4675 -- Is_Task_Allocation_Block (Flag6)
4676 -- Is_Asynchronous_Call_Block (Flag7)
4677 -- Exception_Junk (Flag8-Sem)
4678 -- Is_Finalization_Wrapper (Flag9-Sem)
4680 -------------------------
4681 -- 5.7 Exit Statement --
4682 -------------------------
4684 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4686 -- Gigi restriction: This expander ensures that the type of the
4687 -- Condition field is always Standard.Boolean, even if the type
4688 -- in the source is some non-standard boolean type.
4691 -- Sloc points to EXIT
4692 -- Name (Node2) (set to Empty if no loop name present)
4693 -- Condition (Node1) (set to Empty if no WHEN part present)
4694 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4696 -------------------------
4697 -- 5.9 Goto Statement --
4698 -------------------------
4700 -- GOTO_STATEMENT ::= goto label_NAME;
4703 -- Sloc points to GOTO
4705 -- Exception_Junk (Flag8-Sem)
4707 ---------------------------------
4708 -- 6.1 Subprogram Declaration --
4709 ---------------------------------
4711 -- SUBPROGRAM_DECLARATION ::=
4712 -- SUBPROGRAM_SPECIFICATION
4713 -- [ASPECT_SPECIFICATIONS];
4715 -- N_Subprogram_Declaration
4716 -- Sloc points to FUNCTION or PROCEDURE
4717 -- Specification (Node1)
4718 -- Body_To_Inline (Node3-Sem)
4719 -- Corresponding_Body (Node5-Sem)
4720 -- Parent_Spec (Node4-Sem)
4722 ------------------------------------------
4723 -- 6.1 Abstract Subprogram Declaration --
4724 ------------------------------------------
4726 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4727 -- SUBPROGRAM_SPECIFICATION is abstract
4728 -- [ASPECT_SPECIFICATIONS];
4730 -- N_Abstract_Subprogram_Declaration
4731 -- Sloc points to ABSTRACT
4732 -- Specification (Node1)
4734 -----------------------------------
4735 -- 6.1 Subprogram Specification --
4736 -----------------------------------
4738 -- SUBPROGRAM_SPECIFICATION ::=
4739 -- [[not] overriding]
4740 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4741 -- | [[not] overriding]
4742 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4744 -- Note: there are no separate nodes for the profiles, instead the
4745 -- information appears directly in the following nodes.
4747 -- N_Function_Specification
4748 -- Sloc points to FUNCTION
4749 -- Defining_Unit_Name (Node1) (the designator)
4750 -- Elaboration_Boolean (Node2-Sem)
4751 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4752 -- Null_Exclusion_Present (Flag11)
4753 -- Result_Definition (Node4) for result subtype
4754 -- Generic_Parent (Node5-Sem)
4755 -- Must_Override (Flag14) set if overriding indicator present
4756 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4758 -- N_Procedure_Specification
4759 -- Sloc points to PROCEDURE
4760 -- Defining_Unit_Name (Node1)
4761 -- Elaboration_Boolean (Node2-Sem)
4762 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4763 -- Generic_Parent (Node5-Sem)
4764 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4765 -- Must_Override (Flag14) set if overriding indicator present
4766 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4768 -- Note: overriding indicator is an Ada 2005 feature
4770 ---------------------
4771 -- 6.1 Designator --
4772 ---------------------
4775 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4777 -- Designators that are simply identifiers or operator symbols appear
4778 -- directly in the tree in this form. The following node is used only
4779 -- in the case where the designator has a parent unit name component.
4782 -- Sloc points to period
4783 -- Name (Node2) holds the parent unit name. Note that this is always
4784 -- non-Empty, since this node is only used for the case where a
4785 -- parent library unit package name is present.
4786 -- Identifier (Node1)
4788 -- Note that the identifier can also be an operator symbol here
4790 ------------------------------
4791 -- 6.1 Defining Designator --
4792 ------------------------------
4794 -- DEFINING_DESIGNATOR ::=
4795 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4797 -------------------------------------
4798 -- 6.1 Defining Program Unit Name --
4799 -------------------------------------
4801 -- DEFINING_PROGRAM_UNIT_NAME ::=
4802 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4804 -- The parent unit name is present only in the case of a child unit
4805 -- name (permissible only for Ada 95 for a library level unit, i.e.
4806 -- a unit at scope level one). If no such name is present, the defining
4807 -- program unit name is represented simply as the defining identifier.
4808 -- In the child unit case, the following node is used to represent the
4811 -- N_Defining_Program_Unit_Name
4812 -- Sloc points to period
4813 -- Name (Node2) holds the parent unit name. Note that this is always
4814 -- non-Empty, since this node is only used for the case where a
4815 -- parent unit name is present.
4816 -- Defining_Identifier (Node1)
4818 --------------------------
4819 -- 6.1 Operator Symbol --
4820 --------------------------
4822 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4824 -- Note: the fields of the N_Operator_Symbol node are laid out to
4825 -- match the corresponding fields of an N_Character_Literal node. This
4826 -- allows easy conversion of the operator symbol node into a character
4827 -- literal node in the case where a string constant of the form of an
4828 -- operator symbol is scanned out as such, but turns out semantically
4829 -- to be a string literal that is not an operator. For details see
4830 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4832 -- N_Operator_Symbol
4833 -- Sloc points to literal
4834 -- Chars (Name1) contains the Name_Id for the operator symbol
4835 -- Strval (Str3) Id of string value. This is used if the operator
4836 -- symbol turns out to be a normal string after all.
4837 -- Entity (Node4-Sem)
4838 -- Associated_Node (Node4-Sem)
4839 -- Has_Private_View (Flag11-Sem) set in generic units.
4840 -- Etype (Node5-Sem)
4842 -- Note: the Strval field may be set to No_String for generated
4843 -- operator symbols that are known not to be string literals
4846 -----------------------------------
4847 -- 6.1 Defining Operator Symbol --
4848 -----------------------------------
4850 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4852 -- A defining operator symbol is an entity, which has additional
4853 -- fields depending on the setting of the Ekind field. These
4854 -- additional fields are defined (and access subprograms declared)
4855 -- in package Einfo.
4857 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4858 -- are deliberately layed out to match the layout of fields in an
4859 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4860 -- an operator symbol node into a defining operator symbol node.
4861 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4862 -- for further details.
4864 -- N_Defining_Operator_Symbol
4865 -- Sloc points to literal
4866 -- Chars (Name1) contains the Name_Id for the operator symbol
4867 -- Next_Entity (Node2-Sem)
4868 -- Scope (Node3-Sem)
4869 -- Etype (Node5-Sem)
4871 ----------------------------
4872 -- 6.1 Parameter Profile --
4873 ----------------------------
4875 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4877 ---------------------------------------
4878 -- 6.1 Parameter and Result Profile --
4879 ---------------------------------------
4881 -- PARAMETER_AND_RESULT_PROFILE ::=
4882 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4883 -- | [FORMAL_PART] return ACCESS_DEFINITION
4885 -- There is no explicit node in the tree for a parameter and result
4886 -- profile. Instead the information appears directly in the parent.
4888 ----------------------
4889 -- 6.1 Formal Part --
4890 ----------------------
4893 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4895 ----------------------------------
4896 -- 6.1 Parameter Specification --
4897 ----------------------------------
4899 -- PARAMETER_SPECIFICATION ::=
4900 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4901 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4902 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4903 -- [:= DEFAULT_EXPRESSION]
4905 -- Although the syntax allows multiple identifiers in the list, the
4906 -- semantics is as though successive specifications were given with
4907 -- identical type definition and expression components. To simplify
4908 -- semantic processing, the parser represents a multiple declaration
4909 -- case as a sequence of single Specifications, using the More_Ids and
4910 -- Prev_Ids flags to preserve the original source form as described
4911 -- in the section on "Handling of Defining Identifier Lists".
4913 -- ALIASED can only be present in Ada 2012 mode
4915 -- N_Parameter_Specification
4916 -- Sloc points to first identifier
4917 -- Defining_Identifier (Node1)
4918 -- Aliased_Present (Flag4)
4919 -- In_Present (Flag15)
4920 -- Out_Present (Flag17)
4921 -- Null_Exclusion_Present (Flag11)
4922 -- Parameter_Type (Node2) subtype mark or access definition
4923 -- Expression (Node3) (set to Empty if no default expression present)
4924 -- Do_Accessibility_Check (Flag13-Sem)
4925 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4926 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4927 -- Default_Expression (Node5-Sem)
4933 -- MODE ::= [in] | in out | out
4935 -- There is no explicit node in the tree for the Mode. Instead the
4936 -- In_Present and Out_Present flags are set in the parent node to
4937 -- record the presence of keywords specifying the mode.
4939 --------------------------
4940 -- 6.3 Subprogram Body --
4941 --------------------------
4943 -- SUBPROGRAM_BODY ::=
4944 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
4947 -- HANDLED_SEQUENCE_OF_STATEMENTS
4948 -- end [DESIGNATOR];
4950 -- N_Subprogram_Body
4951 -- Sloc points to FUNCTION or PROCEDURE
4952 -- Specification (Node1)
4953 -- Declarations (List2)
4954 -- Handled_Statement_Sequence (Node4)
4955 -- Activation_Chain_Entity (Node3-Sem)
4956 -- Corresponding_Spec (Node5-Sem)
4957 -- Acts_As_Spec (Flag4-Sem)
4958 -- Bad_Is_Detected (Flag15) used only by parser
4959 -- Do_Storage_Check (Flag17-Sem)
4960 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4961 -- Is_Entry_Barrier_Function (Flag8-Sem)
4962 -- Is_Task_Master (Flag5-Sem)
4963 -- Was_Originally_Stub (Flag13-Sem)
4964 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4966 -------------------------
4967 -- Expression Function --
4968 -------------------------
4970 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4971 -- and put in its proper section when we know exactly where that is.
4973 -- EXPRESSION_FUNCTION ::=
4974 -- FUNCTION SPECIFICATION IS (EXPRESSION)
4975 -- [ASPECT_SPECIFICATIONS];
4977 -- N_Expression_Function
4978 -- Sloc points to FUNCTION
4979 -- Specification (Node1)
4980 -- Expression (Node3)
4981 -- Corresponding_Spec (Node5-Sem)
4983 -----------------------------------
4984 -- 6.4 Procedure Call Statement --
4985 -----------------------------------
4987 -- PROCEDURE_CALL_STATEMENT ::=
4988 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4990 -- Note: the reason that a procedure call has expression fields is
4991 -- that it semantically resembles an expression, e.g. overloading is
4992 -- allowed and a type is concocted for semantic processing purposes.
4993 -- Certain of these fields, such as Parens are not relevant, but it
4994 -- is easier to just supply all of them together.
4996 -- N_Procedure_Call_Statement
4997 -- Sloc points to first token of name or prefix
4998 -- Name (Node2) stores name or prefix
4999 -- Parameter_Associations (List3) (set to No_List if no
5000 -- actual parameter part)
5001 -- First_Named_Actual (Node4-Sem)
5002 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5003 -- Do_Tag_Check (Flag13-Sem)
5004 -- No_Elaboration_Check (Flag14-Sem)
5005 -- Parameter_List_Truncated (Flag17-Sem)
5006 -- ABE_Is_Certain (Flag18-Sem)
5007 -- plus fields for expression
5009 -- If any IN parameter requires a range check, then the corresponding
5010 -- argument expression has the Do_Range_Check flag set, and the range
5011 -- check is done against the formal type. Note that this argument
5012 -- expression may appear directly in the Parameter_Associations list,
5013 -- or may be a descendent of an N_Parameter_Association node that
5014 -- appears in this list.
5016 ------------------------
5017 -- 6.4 Function Call --
5018 ------------------------
5020 -- FUNCTION_CALL ::=
5021 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5023 -- Note: the parser may generate an indexed component node or simply
5024 -- a name node instead of a function call node. The semantic pass must
5025 -- correct this misidentification.
5028 -- Sloc points to first token of name or prefix
5029 -- Name (Node2) stores name or prefix
5030 -- Parameter_Associations (List3) (set to No_List if no
5031 -- actual parameter part)
5032 -- First_Named_Actual (Node4-Sem)
5033 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5034 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5035 -- Do_Tag_Check (Flag13-Sem)
5036 -- No_Elaboration_Check (Flag14-Sem)
5037 -- Parameter_List_Truncated (Flag17-Sem)
5038 -- ABE_Is_Certain (Flag18-Sem)
5039 -- plus fields for expression
5041 --------------------------------
5042 -- 6.4 Actual Parameter Part --
5043 --------------------------------
5045 -- ACTUAL_PARAMETER_PART ::=
5046 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5048 --------------------------------
5049 -- 6.4 Parameter Association --
5050 --------------------------------
5052 -- PARAMETER_ASSOCIATION ::=
5053 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5055 -- Note: the N_Parameter_Association node is built only if a formal
5056 -- parameter selector name is present, otherwise the parameter
5057 -- association appears in the tree simply as the node for the
5058 -- explicit actual parameter.
5060 -- N_Parameter_Association
5061 -- Sloc points to formal parameter
5062 -- Selector_Name (Node2) (always non-Empty)
5063 -- Explicit_Actual_Parameter (Node3)
5064 -- Next_Named_Actual (Node4-Sem)
5065 -- Is_Accessibility_Actual (Flag13-Sem)
5067 ---------------------------
5068 -- 6.4 Actual Parameter --
5069 ---------------------------
5071 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5073 ---------------------------
5074 -- 6.5 Return Statement --
5075 ---------------------------
5077 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5079 -- EXTENDED_RETURN_STATEMENT ::=
5080 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5081 -- [:= EXPRESSION] [do
5082 -- HANDLED_SEQUENCE_OF_STATEMENTS
5085 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5087 -- The term "return statement" is defined in 6.5 to mean either a
5088 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5089 -- the use of this term, since it used to mean someting else in earlier
5092 -- N_Simple_Return_Statement
5093 -- Sloc points to RETURN
5094 -- Return_Statement_Entity (Node5-Sem)
5095 -- Expression (Node3) (set to Empty if no expression present)
5096 -- Storage_Pool (Node1-Sem)
5097 -- Procedure_To_Call (Node2-Sem)
5098 -- Do_Tag_Check (Flag13-Sem)
5099 -- By_Ref (Flag5-Sem)
5100 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5102 -- Note: Return_Statement_Entity points to an E_Return_Statement
5104 -- If a range check is required, then Do_Range_Check is set on the
5105 -- Expression. The check is against the return subtype of the function.
5107 -- N_Extended_Return_Statement
5108 -- Sloc points to RETURN
5109 -- Return_Statement_Entity (Node5-Sem)
5110 -- Return_Object_Declarations (List3)
5111 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5112 -- Storage_Pool (Node1-Sem)
5113 -- Procedure_To_Call (Node2-Sem)
5114 -- Do_Tag_Check (Flag13-Sem)
5115 -- By_Ref (Flag5-Sem)
5117 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5119 -- Note that Return_Object_Declarations is a list containing the
5120 -- N_Object_Declaration -- see comment on this field above.
5122 -- The declared object will have Is_Return_Object = True.
5124 -- There is no such syntactic category as return_object_declaration
5125 -- in the RM. Return_Object_Declarations represents this portion of
5126 -- the syntax for EXTENDED_RETURN_STATEMENT:
5127 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5130 -- There are two entities associated with an extended_return_statement:
5131 -- the Return_Statement_Entity represents the statement itself, and the
5132 -- Defining_Identifier of the Object_Declaration in
5133 -- Return_Object_Declarations represents the object being
5134 -- returned. N_Simple_Return_Statement has only the former.
5136 ------------------------------
5137 -- 7.1 Package Declaration --
5138 ------------------------------
5140 -- PACKAGE_DECLARATION ::=
5141 -- PACKAGE_SPECIFICATION;
5143 -- Note: the activation chain entity for a package spec is used for
5144 -- all tasks declared in the package spec, or in the package body.
5146 -- N_Package_Declaration
5147 -- Sloc points to PACKAGE
5148 -- Specification (Node1)
5149 -- Corresponding_Body (Node5-Sem)
5150 -- Parent_Spec (Node4-Sem)
5151 -- Activation_Chain_Entity (Node3-Sem)
5153 --------------------------------
5154 -- 7.1 Package Specification --
5155 --------------------------------
5157 -- PACKAGE_SPECIFICATION ::=
5158 -- package DEFINING_PROGRAM_UNIT_NAME
5159 -- [ASPECT_SPECIFICATIONS]
5161 -- {BASIC_DECLARATIVE_ITEM}
5163 -- {BASIC_DECLARATIVE_ITEM}]
5164 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5166 -- N_Package_Specification
5167 -- Sloc points to PACKAGE
5168 -- Defining_Unit_Name (Node1)
5169 -- Visible_Declarations (List2)
5170 -- Private_Declarations (List3) (set to No_List if no private
5172 -- End_Label (Node4)
5173 -- Generic_Parent (Node5-Sem)
5174 -- Limited_View_Installed (Flag18-Sem)
5176 -----------------------
5177 -- 7.1 Package Body --
5178 -----------------------
5181 -- package body DEFINING_PROGRAM_UNIT_NAME
5182 -- [ASPECT_SPECIFICATIONS]
5186 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5187 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5190 -- Sloc points to PACKAGE
5191 -- Defining_Unit_Name (Node1)
5192 -- Declarations (List2)
5193 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5194 -- Corresponding_Spec (Node5-Sem)
5195 -- Was_Originally_Stub (Flag13-Sem)
5197 -- Note: if a source level package does not contain a handled sequence
5198 -- of statements, then the parser supplies a dummy one with a null
5199 -- sequence of statements. Comes_From_Source will be False in this
5200 -- constructed sequence. The reason we need this is for the End_Label
5201 -- field in the HSS.
5203 -----------------------------------
5204 -- 7.4 Private Type Declaration --
5205 -----------------------------------
5207 -- PRIVATE_TYPE_DECLARATION ::=
5208 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5209 -- is [[abstract] tagged] [limited] private
5210 -- [ASPECT_SPECIFICATIONS];
5212 -- Note: TAGGED is not permitted in Ada 83 mode
5214 -- N_Private_Type_Declaration
5215 -- Sloc points to TYPE
5216 -- Defining_Identifier (Node1)
5217 -- Discriminant_Specifications (List4) (set to No_List if no
5218 -- discriminant part)
5219 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5220 -- Abstract_Present (Flag4)
5221 -- Tagged_Present (Flag15)
5222 -- Limited_Present (Flag17)
5224 ----------------------------------------
5225 -- 7.4 Private Extension Declaration --
5226 ----------------------------------------
5228 -- PRIVATE_EXTENSION_DECLARATION ::=
5229 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5230 -- [abstract] [limited | synchronized]
5231 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5232 -- with private [ASPECT_SPECIFICATIONS];
5234 -- Note: LIMITED, and private extension declarations are not allowed
5237 -- N_Private_Extension_Declaration
5238 -- Sloc points to TYPE
5239 -- Defining_Identifier (Node1)
5240 -- Discriminant_Specifications (List4) (set to No_List if no
5241 -- discriminant part)
5242 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5243 -- Abstract_Present (Flag4)
5244 -- Limited_Present (Flag17)
5245 -- Synchronized_Present (Flag7)
5246 -- Subtype_Indication (Node5)
5247 -- Interface_List (List2) (set to No_List if none)
5249 ---------------------
5250 -- 8.4 Use Clause --
5251 ---------------------
5253 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5255 -----------------------------
5256 -- 8.4 Use Package Clause --
5257 -----------------------------
5259 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5261 -- N_Use_Package_Clause
5262 -- Sloc points to USE
5264 -- Next_Use_Clause (Node3-Sem)
5265 -- Hidden_By_Use_Clause (Elist4-Sem)
5267 --------------------------
5268 -- 8.4 Use Type Clause --
5269 --------------------------
5271 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5273 -- Note: use type clause is not permitted in Ada 83 mode
5275 -- Note: the ALL keyword can appear only in Ada 2012 mode
5277 -- N_Use_Type_Clause
5278 -- Sloc points to USE
5279 -- Subtype_Marks (List2)
5280 -- Next_Use_Clause (Node3-Sem)
5281 -- Hidden_By_Use_Clause (Elist4-Sem)
5282 -- Used_Operations (Elist5-Sem)
5283 -- All_Present (Flag15)
5285 -------------------------------
5286 -- 8.5 Renaming Declaration --
5287 -------------------------------
5289 -- RENAMING_DECLARATION ::=
5290 -- OBJECT_RENAMING_DECLARATION
5291 -- | EXCEPTION_RENAMING_DECLARATION
5292 -- | PACKAGE_RENAMING_DECLARATION
5293 -- | SUBPROGRAM_RENAMING_DECLARATION
5294 -- | GENERIC_RENAMING_DECLARATION
5296 --------------------------------------
5297 -- 8.5 Object Renaming Declaration --
5298 --------------------------------------
5300 -- OBJECT_RENAMING_DECLARATION ::=
5301 -- DEFINING_IDENTIFIER :
5302 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5303 -- [ASPECT_SPECIFICATIONS];
5304 -- | DEFINING_IDENTIFIER :
5305 -- ACCESS_DEFINITION renames object_NAME
5306 -- [ASPECT_SPECIFICATIONS];
5308 -- Note: Access_Definition is an optional field that gives support to
5309 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5310 -- Subtype_Indication field or else the Access_Definition field.
5312 -- N_Object_Renaming_Declaration
5313 -- Sloc points to first identifier
5314 -- Defining_Identifier (Node1)
5315 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5316 -- Subtype_Mark (Node4) (set to Empty if not present)
5317 -- Access_Definition (Node3) (set to Empty if not present)
5319 -- Corresponding_Generic_Association (Node5-Sem)
5321 -----------------------------------------
5322 -- 8.5 Exception Renaming Declaration --
5323 -----------------------------------------
5325 -- EXCEPTION_RENAMING_DECLARATION ::=
5326 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5327 -- [ASPECT_SPECIFICATIONS];
5329 -- N_Exception_Renaming_Declaration
5330 -- Sloc points to first identifier
5331 -- Defining_Identifier (Node1)
5334 ---------------------------------------
5335 -- 8.5 Package Renaming Declaration --
5336 ---------------------------------------
5338 -- PACKAGE_RENAMING_DECLARATION ::=
5339 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5340 -- [ASPECT_SPECIFICATIONS];
5342 -- N_Package_Renaming_Declaration
5343 -- Sloc points to PACKAGE
5344 -- Defining_Unit_Name (Node1)
5346 -- Parent_Spec (Node4-Sem)
5348 ------------------------------------------
5349 -- 8.5 Subprogram Renaming Declaration --
5350 ------------------------------------------
5352 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5353 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5354 -- [ASPECT_SPECIFICATIONS];
5356 -- N_Subprogram_Renaming_Declaration
5357 -- Sloc points to RENAMES
5358 -- Specification (Node1)
5360 -- Parent_Spec (Node4-Sem)
5361 -- Corresponding_Spec (Node5-Sem)
5362 -- Corresponding_Formal_Spec (Node3-Sem)
5363 -- From_Default (Flag6-Sem)
5365 -----------------------------------------
5366 -- 8.5.5 Generic Renaming Declaration --
5367 -----------------------------------------
5369 -- GENERIC_RENAMING_DECLARATION ::=
5370 -- generic package DEFINING_PROGRAM_UNIT_NAME
5371 -- renames generic_package_NAME
5372 -- [ASPECT_SPECIFICATIONS];
5373 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5374 -- renames generic_procedure_NAME
5375 -- [ASPECT_SPECIFICATIONS];
5376 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5377 -- renames generic_function_NAME
5378 -- [ASPECT_SPECIFICATIONS];
5380 -- N_Generic_Package_Renaming_Declaration
5381 -- Sloc points to GENERIC
5382 -- Defining_Unit_Name (Node1)
5384 -- Parent_Spec (Node4-Sem)
5386 -- N_Generic_Procedure_Renaming_Declaration
5387 -- Sloc points to GENERIC
5388 -- Defining_Unit_Name (Node1)
5390 -- Parent_Spec (Node4-Sem)
5392 -- N_Generic_Function_Renaming_Declaration
5393 -- Sloc points to GENERIC
5394 -- Defining_Unit_Name (Node1)
5396 -- Parent_Spec (Node4-Sem)
5398 --------------------------------
5399 -- 9.1 Task Type Declaration --
5400 --------------------------------
5402 -- TASK_TYPE_DECLARATION ::=
5403 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5404 -- [ASPECT_SPECIFICATIONS]
5405 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5407 -- N_Task_Type_Declaration
5408 -- Sloc points to TASK
5409 -- Defining_Identifier (Node1)
5410 -- Discriminant_Specifications (List4) (set to No_List if no
5411 -- discriminant part)
5412 -- Interface_List (List2) (set to No_List if none)
5413 -- Task_Definition (Node3) (set to Empty if not present)
5414 -- Corresponding_Body (Node5-Sem)
5416 ----------------------------------
5417 -- 9.1 Single Task Declaration --
5418 ----------------------------------
5420 -- SINGLE_TASK_DECLARATION ::=
5421 -- task DEFINING_IDENTIFIER
5422 -- [ASPECT_SPECIFICATIONS]
5423 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5425 -- N_Single_Task_Declaration
5426 -- Sloc points to TASK
5427 -- Defining_Identifier (Node1)
5428 -- Interface_List (List2) (set to No_List if none)
5429 -- Task_Definition (Node3) (set to Empty if not present)
5431 --------------------------
5432 -- 9.1 Task Definition --
5433 --------------------------
5435 -- TASK_DEFINITION ::=
5439 -- end [task_IDENTIFIER]
5441 -- Note: as a result of semantic analysis, the list of task items can
5442 -- include implicit type declarations resulting from entry families.
5444 -- N_Task_Definition
5445 -- Sloc points to first token of task definition
5446 -- Visible_Declarations (List2)
5447 -- Private_Declarations (List3) (set to No_List if no private part)
5448 -- End_Label (Node4)
5449 -- Has_Storage_Size_Pragma (Flag5-Sem)
5450 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5452 --------------------
5454 --------------------
5456 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5458 --------------------
5460 --------------------
5463 -- task body task_DEFINING_IDENTIFIER
5464 -- [ASPECT_SPECIFICATIONS]
5468 -- HANDLED_SEQUENCE_OF_STATEMENTS
5469 -- end [task_IDENTIFIER];
5471 -- Gigi restriction: This node never appears
5474 -- Sloc points to TASK
5475 -- Defining_Identifier (Node1)
5476 -- Declarations (List2)
5477 -- Handled_Statement_Sequence (Node4)
5478 -- Is_Task_Master (Flag5-Sem)
5479 -- Activation_Chain_Entity (Node3-Sem)
5480 -- Corresponding_Spec (Node5-Sem)
5481 -- Was_Originally_Stub (Flag13-Sem)
5483 -------------------------------------
5484 -- 9.4 Protected Type Declaration --
5485 -------------------------------------
5487 -- PROTECTED_TYPE_DECLARATION ::=
5488 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5489 -- [ASPECT_SPECIFICATIONS]
5490 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5492 -- Note: protected type declarations are not permitted in Ada 83 mode
5494 -- N_Protected_Type_Declaration
5495 -- Sloc points to PROTECTED
5496 -- Defining_Identifier (Node1)
5497 -- Discriminant_Specifications (List4) (set to No_List if no
5498 -- discriminant part)
5499 -- Interface_List (List2) (set to No_List if none)
5500 -- Protected_Definition (Node3)
5501 -- Corresponding_Body (Node5-Sem)
5503 ---------------------------------------
5504 -- 9.4 Single Protected Declaration --
5505 ---------------------------------------
5507 -- SINGLE_PROTECTED_DECLARATION ::=
5508 -- protected DEFINING_IDENTIFIER
5509 -- [ASPECT_SPECIFICATIONS]
5510 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5512 -- Note: single protected declarations are not allowed in Ada 83 mode
5514 -- N_Single_Protected_Declaration
5515 -- Sloc points to PROTECTED
5516 -- Defining_Identifier (Node1)
5517 -- Interface_List (List2) (set to No_List if none)
5518 -- Protected_Definition (Node3)
5520 -------------------------------
5521 -- 9.4 Protected Definition --
5522 -------------------------------
5524 -- PROTECTED_DEFINITION ::=
5525 -- {PROTECTED_OPERATION_DECLARATION}
5527 -- {PROTECTED_ELEMENT_DECLARATION}]
5528 -- end [protected_IDENTIFIER]
5530 -- N_Protected_Definition
5531 -- Sloc points to first token of protected definition
5532 -- Visible_Declarations (List2)
5533 -- Private_Declarations (List3) (set to No_List if no private part)
5534 -- End_Label (Node4)
5536 ------------------------------------------
5537 -- 9.4 Protected Operation Declaration --
5538 ------------------------------------------
5540 -- PROTECTED_OPERATION_DECLARATION ::=
5541 -- SUBPROGRAM_DECLARATION
5542 -- | ENTRY_DECLARATION
5543 -- | REPRESENTATION_CLAUSE
5545 ----------------------------------------
5546 -- 9.4 Protected Element Declaration --
5547 ----------------------------------------
5549 -- PROTECTED_ELEMENT_DECLARATION ::=
5550 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5552 -------------------------
5553 -- 9.4 Protected Body --
5554 -------------------------
5556 -- PROTECTED_BODY ::=
5557 -- protected body DEFINING_IDENTIFIER
5558 -- [ASPECT_SPECIFICATIONS];
5560 -- {PROTECTED_OPERATION_ITEM}
5561 -- end [protected_IDENTIFIER];
5563 -- Note: protected bodies are not allowed in Ada 83 mode
5565 -- Gigi restriction: This node never appears
5568 -- Sloc points to PROTECTED
5569 -- Defining_Identifier (Node1)
5570 -- Declarations (List2) protected operation items (and pragmas)
5571 -- End_Label (Node4)
5572 -- Corresponding_Spec (Node5-Sem)
5573 -- Was_Originally_Stub (Flag13-Sem)
5575 -----------------------------------
5576 -- 9.4 Protected Operation Item --
5577 -----------------------------------
5579 -- PROTECTED_OPERATION_ITEM ::=
5580 -- SUBPROGRAM_DECLARATION
5581 -- | SUBPROGRAM_BODY
5583 -- | REPRESENTATION_CLAUSE
5585 ------------------------------
5586 -- 9.5.2 Entry Declaration --
5587 ------------------------------
5589 -- ENTRY_DECLARATION ::=
5590 -- [[not] overriding]
5591 -- entry DEFINING_IDENTIFIER
5592 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5593 -- [ASPECT_SPECIFICATIONS];
5595 -- N_Entry_Declaration
5596 -- Sloc points to ENTRY
5597 -- Defining_Identifier (Node1)
5598 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5599 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5600 -- Corresponding_Body (Node5-Sem)
5601 -- Must_Override (Flag14) set if overriding indicator present
5602 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5604 -- Note: overriding indicator is an Ada 2005 feature
5606 -----------------------------
5607 -- 9.5.2 Accept statement --
5608 -----------------------------
5610 -- ACCEPT_STATEMENT ::=
5611 -- accept entry_DIRECT_NAME
5612 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5613 -- HANDLED_SEQUENCE_OF_STATEMENTS
5614 -- end [entry_IDENTIFIER]];
5616 -- Gigi restriction: This node never appears
5618 -- Note: there are no explicit declarations allowed in an accept
5619 -- statement. However, the implicit declarations for any statement
5620 -- identifiers (labels and block/loop identifiers) are declarations
5621 -- that belong logically to the accept statement, and that is why
5622 -- there is a Declarations field in this node.
5624 -- N_Accept_Statement
5625 -- Sloc points to ACCEPT
5626 -- Entry_Direct_Name (Node1)
5627 -- Entry_Index (Node5) (set to Empty if not present)
5628 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5629 -- Handled_Statement_Sequence (Node4)
5630 -- Declarations (List2) (set to No_List if no declarations)
5632 ------------------------
5633 -- 9.5.2 Entry Index --
5634 ------------------------
5636 -- ENTRY_INDEX ::= EXPRESSION
5638 -----------------------
5639 -- 9.5.2 Entry Body --
5640 -----------------------
5643 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5646 -- HANDLED_SEQUENCE_OF_STATEMENTS
5647 -- end [entry_IDENTIFIER];
5649 -- ENTRY_BARRIER ::= when CONDITION
5651 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5652 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5653 -- too full (it would otherwise have too many fields)
5655 -- Gigi restriction: This node never appears
5658 -- Sloc points to ENTRY
5659 -- Defining_Identifier (Node1)
5660 -- Entry_Body_Formal_Part (Node5)
5661 -- Declarations (List2)
5662 -- Handled_Statement_Sequence (Node4)
5663 -- Activation_Chain_Entity (Node3-Sem)
5665 -----------------------------------
5666 -- 9.5.2 Entry Body Formal Part --
5667 -----------------------------------
5669 -- ENTRY_BODY_FORMAL_PART ::=
5670 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5672 -- Note that an entry body formal part node is present even if it is
5673 -- empty. This reflects the grammar, in which it is the components of
5674 -- the entry body formal part that are optional, not the entry body
5675 -- formal part itself. Also this means that the barrier condition
5676 -- always has somewhere to be stored.
5678 -- Gigi restriction: This node never appears
5680 -- N_Entry_Body_Formal_Part
5681 -- Sloc points to first token
5682 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5683 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5684 -- Condition (Node1) from entry barrier of entry body
5686 --------------------------
5687 -- 9.5.2 Entry Barrier --
5688 --------------------------
5690 -- ENTRY_BARRIER ::= when CONDITION
5692 --------------------------------------
5693 -- 9.5.2 Entry Index Specification --
5694 --------------------------------------
5696 -- ENTRY_INDEX_SPECIFICATION ::=
5697 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5699 -- Gigi restriction: This node never appears
5701 -- N_Entry_Index_Specification
5702 -- Sloc points to FOR
5703 -- Defining_Identifier (Node1)
5704 -- Discrete_Subtype_Definition (Node4)
5706 ---------------------------------
5707 -- 9.5.3 Entry Call Statement --
5708 ---------------------------------
5710 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5712 -- The parser may generate a procedure call for this construct. The
5713 -- semantic pass must correct this misidentification where needed.
5715 -- Gigi restriction: This node never appears
5717 -- N_Entry_Call_Statement
5718 -- Sloc points to first token of name
5720 -- Parameter_Associations (List3) (set to No_List if no
5721 -- actual parameter part)
5722 -- First_Named_Actual (Node4-Sem)
5724 ------------------------------
5725 -- 9.5.4 Requeue Statement --
5726 ------------------------------
5728 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5730 -- Note: requeue statements are not permitted in Ada 83 mode
5732 -- Gigi restriction: This node never appears
5734 -- N_Requeue_Statement
5735 -- Sloc points to REQUEUE
5737 -- Abort_Present (Flag15)
5739 --------------------------
5740 -- 9.6 Delay Statement --
5741 --------------------------
5743 -- DELAY_STATEMENT ::=
5744 -- DELAY_UNTIL_STATEMENT
5745 -- | DELAY_RELATIVE_STATEMENT
5747 --------------------------------
5748 -- 9.6 Delay Until Statement --
5749 --------------------------------
5751 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5753 -- Note: delay until statements are not permitted in Ada 83 mode
5755 -- Gigi restriction: This node never appears
5757 -- N_Delay_Until_Statement
5758 -- Sloc points to DELAY
5759 -- Expression (Node3)
5761 -----------------------------------
5762 -- 9.6 Delay Relative Statement --
5763 -----------------------------------
5765 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5767 -- Gigi restriction: This node never appears
5769 -- N_Delay_Relative_Statement
5770 -- Sloc points to DELAY
5771 -- Expression (Node3)
5773 ---------------------------
5774 -- 9.7 Select Statement --
5775 ---------------------------
5777 -- SELECT_STATEMENT ::=
5779 -- | TIMED_ENTRY_CALL
5780 -- | CONDITIONAL_ENTRY_CALL
5781 -- | ASYNCHRONOUS_SELECT
5783 -----------------------------
5784 -- 9.7.1 Selective Accept --
5785 -----------------------------
5787 -- SELECTIVE_ACCEPT ::=
5790 -- SELECT_ALTERNATIVE
5793 -- SELECT_ALTERNATIVE}
5795 -- SEQUENCE_OF_STATEMENTS]
5798 -- Gigi restriction: This node never appears
5800 -- Note: the guard expression, if present, appears in the node for
5801 -- the select alternative.
5803 -- N_Selective_Accept
5804 -- Sloc points to SELECT
5805 -- Select_Alternatives (List1)
5806 -- Else_Statements (List4) (set to No_List if no else part)
5812 -- GUARD ::= when CONDITION =>
5814 -- As noted above, the CONDITION that is part of a GUARD is included
5815 -- in the node for the select alternative for convenience.
5817 -------------------------------
5818 -- 9.7.1 Select Alternative --
5819 -------------------------------
5821 -- SELECT_ALTERNATIVE ::=
5822 -- ACCEPT_ALTERNATIVE
5823 -- | DELAY_ALTERNATIVE
5824 -- | TERMINATE_ALTERNATIVE
5826 -------------------------------
5827 -- 9.7.1 Accept Alternative --
5828 -------------------------------
5830 -- ACCEPT_ALTERNATIVE ::=
5831 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5833 -- Gigi restriction: This node never appears
5835 -- N_Accept_Alternative
5836 -- Sloc points to ACCEPT
5837 -- Accept_Statement (Node2)
5838 -- Condition (Node1) from the guard (set to Empty if no guard present)
5839 -- Statements (List3) (set to Empty_List if no statements)
5840 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5841 -- Accept_Handler_Records (List5-Sem)
5843 ------------------------------
5844 -- 9.7.1 Delay Alternative --
5845 ------------------------------
5847 -- DELAY_ALTERNATIVE ::=
5848 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5850 -- Gigi restriction: This node never appears
5852 -- N_Delay_Alternative
5853 -- Sloc points to DELAY
5854 -- Delay_Statement (Node2)
5855 -- Condition (Node1) from the guard (set to Empty if no guard present)
5856 -- Statements (List3) (set to Empty_List if no statements)
5857 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5859 ----------------------------------
5860 -- 9.7.1 Terminate Alternative --
5861 ----------------------------------
5863 -- TERMINATE_ALTERNATIVE ::= terminate;
5865 -- Gigi restriction: This node never appears
5867 -- N_Terminate_Alternative
5868 -- Sloc points to TERMINATE
5869 -- Condition (Node1) from the guard (set to Empty if no guard present)
5870 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5871 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5873 -----------------------------
5874 -- 9.7.2 Timed Entry Call --
5875 -----------------------------
5877 -- TIMED_ENTRY_CALL ::=
5879 -- ENTRY_CALL_ALTERNATIVE
5881 -- DELAY_ALTERNATIVE
5884 -- Gigi restriction: This node never appears
5886 -- N_Timed_Entry_Call
5887 -- Sloc points to SELECT
5888 -- Entry_Call_Alternative (Node1)
5889 -- Delay_Alternative (Node4)
5891 -----------------------------------
5892 -- 9.7.2 Entry Call Alternative --
5893 -----------------------------------
5895 -- ENTRY_CALL_ALTERNATIVE ::=
5896 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5898 -- PROCEDURE_OR_ENTRY_CALL ::=
5899 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5901 -- Gigi restriction: This node never appears
5903 -- N_Entry_Call_Alternative
5904 -- Sloc points to first token of entry call statement
5905 -- Entry_Call_Statement (Node1)
5906 -- Statements (List3) (set to Empty_List if no statements)
5907 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5909 -----------------------------------
5910 -- 9.7.3 Conditional Entry Call --
5911 -----------------------------------
5913 -- CONDITIONAL_ENTRY_CALL ::=
5915 -- ENTRY_CALL_ALTERNATIVE
5917 -- SEQUENCE_OF_STATEMENTS
5920 -- Gigi restriction: This node never appears
5922 -- N_Conditional_Entry_Call
5923 -- Sloc points to SELECT
5924 -- Entry_Call_Alternative (Node1)
5925 -- Else_Statements (List4)
5927 --------------------------------
5928 -- 9.7.4 Asynchronous Select --
5929 --------------------------------
5931 -- ASYNCHRONOUS_SELECT ::=
5933 -- TRIGGERING_ALTERNATIVE
5938 -- Note: asynchronous select is not permitted in Ada 83 mode
5940 -- Gigi restriction: This node never appears
5942 -- N_Asynchronous_Select
5943 -- Sloc points to SELECT
5944 -- Triggering_Alternative (Node1)
5945 -- Abortable_Part (Node2)
5947 -----------------------------------
5948 -- 9.7.4 Triggering Alternative --
5949 -----------------------------------
5951 -- TRIGGERING_ALTERNATIVE ::=
5952 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5954 -- Gigi restriction: This node never appears
5956 -- N_Triggering_Alternative
5957 -- Sloc points to first token of triggering statement
5958 -- Triggering_Statement (Node1)
5959 -- Statements (List3) (set to Empty_List if no statements)
5960 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5962 ---------------------------------
5963 -- 9.7.4 Triggering Statement --
5964 ---------------------------------
5966 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5968 ---------------------------
5969 -- 9.7.4 Abortable Part --
5970 ---------------------------
5972 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5974 -- Gigi restriction: This node never appears
5977 -- Sloc points to ABORT
5978 -- Statements (List3)
5980 --------------------------
5981 -- 9.8 Abort Statement --
5982 --------------------------
5984 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5986 -- Gigi restriction: This node never appears
5988 -- N_Abort_Statement
5989 -- Sloc points to ABORT
5992 -------------------------
5993 -- 10.1.1 Compilation --
5994 -------------------------
5996 -- COMPILATION ::= {COMPILATION_UNIT}
5998 -- There is no explicit node in the tree for a compilation, since in
5999 -- general the compiler is processing only a single compilation unit
6000 -- at a time. It is possible to parse multiple units in syntax check
6001 -- only mode, but the trees are discarded in that case.
6003 ------------------------------
6004 -- 10.1.1 Compilation Unit --
6005 ------------------------------
6007 -- COMPILATION_UNIT ::=
6008 -- CONTEXT_CLAUSE LIBRARY_ITEM
6009 -- | CONTEXT_CLAUSE SUBUNIT
6011 -- The N_Compilation_Unit node itself represents the above syntax.
6012 -- However, there are two additional items not reflected in the above
6013 -- syntax. First we have the global declarations that are added by the
6014 -- code generator. These are outer level declarations (so they cannot
6015 -- be represented as being inside the units). An example is the wrapper
6016 -- subprograms that are created to do ABE checking. As always a list of
6017 -- declarations can contain actions as well (i.e. statements), and such
6018 -- statements are executed as part of the elaboration of the unit. Note
6019 -- that all such declarations are elaborated before the library unit.
6021 -- Similarly, certain actions need to be elaborated at the completion
6022 -- of elaboration of the library unit (notably the statement that sets
6023 -- the Boolean flag indicating that elaboration is complete).
6025 -- The third item not reflected in the syntax is pragmas that appear
6026 -- after the compilation unit. As always pragmas are a problem since
6027 -- they are not part of the formal syntax, but can be stuck into the
6028 -- source following a set of ad hoc rules, and we have to find an ad
6029 -- hoc way of sticking them into the tree. For pragmas that appear
6030 -- before the library unit, we just consider them to be part of the
6031 -- context clause, and pragmas can appear in the Context_Items list
6032 -- of the compilation unit. However, pragmas can also appear after
6033 -- the library item.
6035 -- To deal with all these problems, we create an auxiliary node for
6036 -- a compilation unit, referenced from the N_Compilation_Unit node,
6037 -- that contains these items.
6039 -- N_Compilation_Unit
6040 -- Sloc points to first token of defining unit name
6041 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6042 -- Context_Items (List1) context items and pragmas preceding unit
6043 -- Private_Present (Flag15) set if library unit has private keyword
6044 -- Unit (Node2) library item or subunit
6045 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6046 -- Has_No_Elaboration_Code (Flag17-Sem)
6047 -- Body_Required (Flag13-Sem) set for spec if body is required
6048 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6049 -- Context_Pending (Flag16-Sem)
6050 -- First_Inlined_Subprogram (Node3-Sem)
6051 -- Has_Pragma_Suppress_All (Flag14-Sem)
6053 -- N_Compilation_Unit_Aux
6054 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6055 -- Declarations (List2) (set to No_List if no global declarations)
6056 -- Actions (List1) (set to No_List if no actions)
6057 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6058 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6059 -- Default_Storage_Pool (Node3-Sem)
6061 --------------------------
6062 -- 10.1.1 Library Item --
6063 --------------------------
6066 -- [private] LIBRARY_UNIT_DECLARATION
6067 -- | LIBRARY_UNIT_BODY
6068 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6070 -- Note: PRIVATE is not allowed in Ada 83 mode
6072 -- There is no explicit node in the tree for library item, instead
6073 -- the declaration or body, and the flag for private if present,
6074 -- appear in the N_Compilation_Unit node.
6076 --------------------------------------
6077 -- 10.1.1 Library Unit Declaration --
6078 --------------------------------------
6080 -- LIBRARY_UNIT_DECLARATION ::=
6081 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6082 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6084 -----------------------------------------------
6085 -- 10.1.1 Library Unit Renaming Declaration --
6086 -----------------------------------------------
6088 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6089 -- PACKAGE_RENAMING_DECLARATION
6090 -- | GENERIC_RENAMING_DECLARATION
6091 -- | SUBPROGRAM_RENAMING_DECLARATION
6093 -------------------------------
6094 -- 10.1.1 Library unit body --
6095 -------------------------------
6097 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6099 ------------------------------
6100 -- 10.1.1 Parent Unit Name --
6101 ------------------------------
6103 -- PARENT_UNIT_NAME ::= NAME
6105 ----------------------------
6106 -- 10.1.2 Context clause --
6107 ----------------------------
6109 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6111 -- The context clause can include pragmas, and any pragmas that appear
6112 -- before the context clause proper (i.e. all configuration pragmas,
6113 -- also appear at the front of this list).
6115 --------------------------
6116 -- 10.1.2 Context_Item --
6117 --------------------------
6119 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6121 -------------------------
6122 -- 10.1.2 With clause --
6123 -------------------------
6126 -- with library_unit_NAME {,library_unit_NAME};
6128 -- A separate With clause is built for each name, so that we have
6129 -- a Corresponding_Spec field for each with'ed spec. The flags
6130 -- First_Name and Last_Name are used to reconstruct the exact
6131 -- source form. When a list of names appears in one with clause,
6132 -- the first name in the list has First_Name set, and the last
6133 -- has Last_Name set. If the with clause has only one name, then
6134 -- both of the flags First_Name and Last_Name are set in this name.
6136 -- Note: in the case of implicit with's that are installed by the
6137 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6138 -- set to Standard_Location, but it is incorrect to test the Sloc
6139 -- to find out if a with clause is implicit, test the flag instead.
6142 -- Sloc points to first token of library unit name
6143 -- Withed_Body (Node1-Sem)
6145 -- Next_Implicit_With (Node3-Sem)
6146 -- Library_Unit (Node4-Sem)
6147 -- Corresponding_Spec (Node5-Sem)
6148 -- First_Name (Flag5) (set to True if first name or only one name)
6149 -- Last_Name (Flag6) (set to True if last name or only one name)
6150 -- Context_Installed (Flag13-Sem)
6151 -- Elaborate_Present (Flag4-Sem)
6152 -- Elaborate_All_Present (Flag14-Sem)
6153 -- Elaborate_All_Desirable (Flag9-Sem)
6154 -- Elaborate_Desirable (Flag11-Sem)
6155 -- Private_Present (Flag15) set if with_clause has private keyword
6156 -- Implicit_With (Flag16-Sem)
6157 -- Implicit_With_From_Instantiation (Flag12-Sem)
6158 -- Limited_Present (Flag17) set if LIMITED is present
6159 -- Limited_View_Installed (Flag18-Sem)
6160 -- Unreferenced_In_Spec (Flag7-Sem)
6161 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6163 -- Note: Limited_Present and Limited_View_Installed are used to support
6164 -- the implementation of Ada 2005 (AI-50217).
6166 -- Similarly, Private_Present is used to support the implementation of
6167 -- Ada 2005 (AI-50262).
6169 ----------------------
6170 -- With_Type clause --
6171 ----------------------
6173 -- This is a GNAT extension, used to implement mutually recursive
6174 -- types declared in different packages.
6176 -- Note: this is now obsolete. The functionality of this construct
6177 -- is now implemented by the Ada 2005 limited_with_clause.
6179 ---------------------
6180 -- 10.2 Body stub --
6181 ---------------------
6184 -- SUBPROGRAM_BODY_STUB
6185 -- | PACKAGE_BODY_STUB
6187 -- | PROTECTED_BODY_STUB
6189 ----------------------------------
6190 -- 10.1.3 Subprogram Body Stub --
6191 ----------------------------------
6193 -- SUBPROGRAM_BODY_STUB ::=
6194 -- SUBPROGRAM_SPECIFICATION is separate
6195 -- [ASPECT_SPECIFICATION];
6197 -- N_Subprogram_Body_Stub
6198 -- Sloc points to FUNCTION or PROCEDURE
6199 -- Specification (Node1)
6200 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6201 -- Library_Unit (Node4-Sem) points to the subunit
6202 -- Corresponding_Body (Node5-Sem)
6204 -------------------------------
6205 -- 10.1.3 Package Body Stub --
6206 -------------------------------
6208 -- PACKAGE_BODY_STUB ::=
6209 -- package body DEFINING_IDENTIFIER is separate
6210 -- [ASPECT_SPECIFICATION];
6212 -- N_Package_Body_Stub
6213 -- Sloc points to PACKAGE
6214 -- Defining_Identifier (Node1)
6215 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6216 -- Library_Unit (Node4-Sem) points to the subunit
6217 -- Corresponding_Body (Node5-Sem)
6219 ----------------------------
6220 -- 10.1.3 Task Body Stub --
6221 ----------------------------
6223 -- TASK_BODY_STUB ::=
6224 -- task body DEFINING_IDENTIFIER is separate
6225 -- [ASPECT_SPECIFICATION];
6228 -- Sloc points to TASK
6229 -- Defining_Identifier (Node1)
6230 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6231 -- Library_Unit (Node4-Sem) points to the subunit
6232 -- Corresponding_Body (Node5-Sem)
6234 ---------------------------------
6235 -- 10.1.3 Protected Body Stub --
6236 ---------------------------------
6238 -- PROTECTED_BODY_STUB ::=
6239 -- protected body DEFINING_IDENTIFIER is separate
6240 -- [ASPECT_SPECIFICATION];
6242 -- Note: protected body stubs are not allowed in Ada 83 mode
6244 -- N_Protected_Body_Stub
6245 -- Sloc points to PROTECTED
6246 -- Defining_Identifier (Node1)
6247 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6248 -- Library_Unit (Node4-Sem) points to the subunit
6249 -- Corresponding_Body (Node5-Sem)
6251 ---------------------
6252 -- 10.1.3 Subunit --
6253 ---------------------
6255 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6258 -- Sloc points to SEPARATE
6259 -- Name (Node2) is the name of the parent unit
6260 -- Proper_Body (Node1) is the subunit body
6261 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6263 ---------------------------------
6264 -- 11.1 Exception Declaration --
6265 ---------------------------------
6267 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6268 -- [ASPECT_SPECIFICATIONS];
6270 -- For consistency with object declarations etc., the parser converts
6271 -- the case of multiple identifiers being declared to a series of
6272 -- declarations in which the expression is copied, using the More_Ids
6273 -- and Prev_Ids flags to remember the source form as described in the
6274 -- section on "Handling of Defining Identifier Lists".
6276 -- N_Exception_Declaration
6277 -- Sloc points to EXCEPTION
6278 -- Defining_Identifier (Node1)
6279 -- Expression (Node3-Sem)
6280 -- Renaming_Exception (Node2-Sem)
6281 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6282 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6284 ------------------------------------------
6285 -- 11.2 Handled Sequence Of Statements --
6286 ------------------------------------------
6288 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6289 -- SEQUENCE_OF_STATEMENTS
6291 -- EXCEPTION_HANDLER
6292 -- {EXCEPTION_HANDLER}]
6294 -- cleanup_procedure_call (param, param, param, ...);]
6296 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6297 -- used only internally currently, but is considered to be syntactic.
6298 -- At the moment, the only cleanup action allowed is a single call to
6299 -- a parameterless procedure, and the Identifier field of the node is
6300 -- the procedure to be called. The cleanup action occurs whenever the
6301 -- sequence of statements is left for any reason. The possible reasons
6303 -- 1. reaching the end of the sequence
6304 -- 2. exit, return, or goto
6305 -- 3. exception or abort
6306 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6307 -- entirely in the back end. In this case, a handled sequence of
6308 -- statements with an "at end" cannot also have exception handlers.
6309 -- For other back ends, such as gcc with SJLJ and .NET, the
6310 -- implementation is split between the front end and back end; the front
6311 -- end implements 3, and the back end implements 1 and 2. In this case,
6312 -- if there is an "at end", the front end inserts the appropriate
6313 -- exception handler, and this handler takes precedence over "at end"
6314 -- in case of exception.
6316 -- The inserted exception handler is of the form:
6318 -- when all others =>
6322 -- where cleanup is the procedure to be called. The reason we do this is
6323 -- so that the front end can handle the necessary entries in the
6324 -- exception tables, and other exception handler actions required as
6325 -- part of the normal handling for exception handlers.
6327 -- The AT END cleanup handler protects only the sequence of statements
6328 -- (not the associated declarations of the parent), just like exception
6329 -- handlers. The big difference is that the cleanup procedure is called
6330 -- on either a normal or an abnormal exit from the statement sequence.
6332 -- Note: the list of Exception_Handlers can contain pragmas as well
6333 -- as actual handlers. In practice these pragmas can only occur at
6334 -- the start of the list, since any pragmas occurring later on will
6335 -- be included in the statement list of the corresponding handler.
6337 -- Note: although in the Ada syntax, the sequence of statements in
6338 -- a handled sequence of statements can only contain statements, we
6339 -- allow free mixing of declarations and statements in the resulting
6340 -- expanded tree. This is for example used to deal with the case of
6341 -- a cleanup procedure that must handle declarations as well as the
6342 -- statements of a block.
6344 -- N_Handled_Sequence_Of_Statements
6345 -- Sloc points to first token of first statement
6346 -- Statements (List3)
6347 -- End_Label (Node4) (set to Empty if expander generated)
6348 -- Exception_Handlers (List5) (set to No_List if none present)
6349 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6350 -- First_Real_Statement (Node2-Sem)
6352 -- Note: the parent always contains a Declarations field which contains
6353 -- declarations associated with the handled sequence of statements. This
6354 -- is true even in the case of an accept statement (see description of
6355 -- the N_Accept_Statement node).
6357 -- End_Label refers to the containing construct
6359 -----------------------------
6360 -- 11.2 Exception Handler --
6361 -----------------------------
6363 -- EXCEPTION_HANDLER ::=
6364 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6365 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6366 -- SEQUENCE_OF_STATEMENTS
6368 -- Note: choice parameter specification is not allowed in Ada 83 mode
6370 -- N_Exception_Handler
6371 -- Sloc points to WHEN
6372 -- Choice_Parameter (Node2) (set to Empty if not present)
6373 -- Exception_Choices (List4)
6374 -- Statements (List3)
6375 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6376 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6377 -- Local_Raise_Not_OK (Flag7-Sem)
6378 -- Has_Local_Raise (Flag8-Sem)
6380 ------------------------------------------
6381 -- 11.2 Choice parameter specification --
6382 ------------------------------------------
6384 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6386 ----------------------------
6387 -- 11.2 Exception Choice --
6388 ----------------------------
6390 -- EXCEPTION_CHOICE ::= exception_NAME | others
6392 -- Except in the case of OTHERS, no explicit node appears in the tree
6393 -- for exception choice. Instead the exception name appears directly.
6394 -- An OTHERS choice is represented by a N_Others_Choice node (see
6397 -- Note: for the exception choice created for an at end handler, the
6398 -- exception choice is an N_Others_Choice node with All_Others set.
6400 ---------------------------
6401 -- 11.3 Raise Statement --
6402 ---------------------------
6404 -- RAISE_STATEMENT ::= raise [exception_NAME];
6406 -- In Ada 2005, we have
6408 -- RAISE_STATEMENT ::=
6409 -- raise; | raise exception_NAME [with string_EXPRESSION];
6411 -- N_Raise_Statement
6412 -- Sloc points to RAISE
6413 -- Name (Node2) (set to Empty if no exception name present)
6414 -- Expression (Node3) (set to Empty if no expression present)
6415 -- From_At_End (Flag4-Sem)
6417 ----------------------------
6418 -- 11.3 Raise Expression --
6419 ----------------------------
6421 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6423 -- N_Raise_Expression
6424 -- Sloc points to RAISE
6425 -- Name (Node2) (always present)
6426 -- Expression (Node3) (set to Empty if no expression present)
6427 -- Convert_To_Return_False (Flag13-Sem)
6428 -- plus fields for expression
6430 -------------------------------
6431 -- 12.1 Generic Declaration --
6432 -------------------------------
6434 -- GENERIC_DECLARATION ::=
6435 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6437 ------------------------------------------
6438 -- 12.1 Generic Subprogram Declaration --
6439 ------------------------------------------
6441 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6442 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6443 -- [ASPECT_SPECIFICATIONS];
6445 -- Note: Generic_Formal_Declarations can include pragmas
6447 -- N_Generic_Subprogram_Declaration
6448 -- Sloc points to GENERIC
6449 -- Specification (Node1) subprogram specification
6450 -- Corresponding_Body (Node5-Sem)
6451 -- Generic_Formal_Declarations (List2) from generic formal part
6452 -- Parent_Spec (Node4-Sem)
6454 ---------------------------------------
6455 -- 12.1 Generic Package Declaration --
6456 ---------------------------------------
6458 -- GENERIC_PACKAGE_DECLARATION ::=
6459 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6460 -- [ASPECT_SPECIFICATIONS];
6462 -- Note: when we do generics right, the Activation_Chain_Entity entry
6463 -- for this node can be removed (since the expander won't see generic
6464 -- units any more)???.
6466 -- Note: Generic_Formal_Declarations can include pragmas
6468 -- N_Generic_Package_Declaration
6469 -- Sloc points to GENERIC
6470 -- Specification (Node1) package specification
6471 -- Corresponding_Body (Node5-Sem)
6472 -- Generic_Formal_Declarations (List2) from generic formal part
6473 -- Parent_Spec (Node4-Sem)
6474 -- Activation_Chain_Entity (Node3-Sem)
6476 -------------------------------
6477 -- 12.1 Generic Formal Part --
6478 -------------------------------
6480 -- GENERIC_FORMAL_PART ::=
6481 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6483 ------------------------------------------------
6484 -- 12.1 Generic Formal Parameter Declaration --
6485 ------------------------------------------------
6487 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6488 -- FORMAL_OBJECT_DECLARATION
6489 -- | FORMAL_TYPE_DECLARATION
6490 -- | FORMAL_SUBPROGRAM_DECLARATION
6491 -- | FORMAL_PACKAGE_DECLARATION
6493 ---------------------------------
6494 -- 12.3 Generic Instantiation --
6495 ---------------------------------
6497 -- GENERIC_INSTANTIATION ::=
6498 -- package DEFINING_PROGRAM_UNIT_NAME is
6499 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6500 -- [ASPECT_SPECIFICATIONS];
6501 -- | [[not] overriding]
6502 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6503 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6504 -- [ASPECT_SPECIFICATIONS];
6505 -- | [[not] overriding]
6506 -- function DEFINING_DESIGNATOR is
6507 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6508 -- [ASPECT_SPECIFICATIONS];
6510 -- N_Package_Instantiation
6511 -- Sloc points to PACKAGE
6512 -- Defining_Unit_Name (Node1)
6514 -- Generic_Associations (List3) (set to No_List if no
6515 -- generic actual part)
6516 -- Parent_Spec (Node4-Sem)
6517 -- Instance_Spec (Node5-Sem)
6518 -- ABE_Is_Certain (Flag18-Sem)
6520 -- N_Procedure_Instantiation
6521 -- Sloc points to PROCEDURE
6522 -- Defining_Unit_Name (Node1)
6524 -- Parent_Spec (Node4-Sem)
6525 -- Generic_Associations (List3) (set to No_List if no
6526 -- generic actual part)
6527 -- Instance_Spec (Node5-Sem)
6528 -- Must_Override (Flag14) set if overriding indicator present
6529 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6530 -- ABE_Is_Certain (Flag18-Sem)
6532 -- N_Function_Instantiation
6533 -- Sloc points to FUNCTION
6534 -- Defining_Unit_Name (Node1)
6536 -- Generic_Associations (List3) (set to No_List if no
6537 -- generic actual part)
6538 -- Parent_Spec (Node4-Sem)
6539 -- Instance_Spec (Node5-Sem)
6540 -- Must_Override (Flag14) set if overriding indicator present
6541 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6542 -- ABE_Is_Certain (Flag18-Sem)
6544 -- Note: overriding indicator is an Ada 2005 feature
6546 -------------------------------
6547 -- 12.3 Generic Actual Part --
6548 -------------------------------
6550 -- GENERIC_ACTUAL_PART ::=
6551 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6553 -------------------------------
6554 -- 12.3 Generic Association --
6555 -------------------------------
6557 -- GENERIC_ASSOCIATION ::=
6558 -- [generic_formal_parameter_SELECTOR_NAME =>]
6560 -- Note: unlike the procedure call case, a generic association node
6561 -- is generated for every association, even if no formal parameter
6562 -- selector name is present. In this case the parser will leave the
6563 -- Selector_Name field set to Empty, to be filled in later by the
6566 -- In Ada 2005, a formal may be associated with a box, if the
6567 -- association is part of the list of actuals for a formal package.
6568 -- If the association is given by OTHERS => <>, the association is
6569 -- an N_Others_Choice.
6571 -- N_Generic_Association
6572 -- Sloc points to first token of generic association
6573 -- Selector_Name (Node2) (set to Empty if no formal
6574 -- parameter selector name)
6575 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6576 -- Box_Present (Flag15) (for formal_package associations with a box)
6578 ---------------------------------------------
6579 -- 12.3 Explicit Generic Actual Parameter --
6580 ---------------------------------------------
6582 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6583 -- EXPRESSION | variable_NAME | subprogram_NAME
6584 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6586 -------------------------------------
6587 -- 12.4 Formal Object Declaration --
6588 -------------------------------------
6590 -- FORMAL_OBJECT_DECLARATION ::=
6591 -- DEFINING_IDENTIFIER_LIST :
6592 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6593 -- [ASPECT_SPECIFICATIONS];
6594 -- | DEFINING_IDENTIFIER_LIST :
6595 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6596 -- [ASPECT_SPECIFICATIONS];
6598 -- Although the syntax allows multiple identifiers in the list, the
6599 -- semantics is as though successive declarations were given with
6600 -- identical type definition and expression components. To simplify
6601 -- semantic processing, the parser represents a multiple declaration
6602 -- case as a sequence of single declarations, using the More_Ids and
6603 -- Prev_Ids flags to preserve the original source form as described
6604 -- in the section on "Handling of Defining Identifier Lists".
6606 -- N_Formal_Object_Declaration
6607 -- Sloc points to first identifier
6608 -- Defining_Identifier (Node1)
6609 -- In_Present (Flag15)
6610 -- Out_Present (Flag17)
6611 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6612 -- Subtype_Mark (Node4) (set to Empty if not present)
6613 -- Access_Definition (Node3) (set to Empty if not present)
6614 -- Default_Expression (Node5) (set to Empty if no default expression)
6615 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6616 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6618 -----------------------------------
6619 -- 12.5 Formal Type Declaration --
6620 -----------------------------------
6622 -- FORMAL_TYPE_DECLARATION ::=
6623 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6624 -- is FORMAL_TYPE_DEFINITION
6625 -- [ASPECT_SPECIFICATIONS];
6626 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6628 -- N_Formal_Type_Declaration
6629 -- Sloc points to TYPE
6630 -- Defining_Identifier (Node1)
6631 -- Formal_Type_Definition (Node3)
6632 -- Discriminant_Specifications (List4) (set to No_List if no
6633 -- discriminant part)
6634 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6636 ----------------------------------
6637 -- 12.5 Formal type definition --
6638 ----------------------------------
6640 -- FORMAL_TYPE_DEFINITION ::=
6641 -- FORMAL_PRIVATE_TYPE_DEFINITION
6642 -- | FORMAL_DERIVED_TYPE_DEFINITION
6643 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6644 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6645 -- | FORMAL_MODULAR_TYPE_DEFINITION
6646 -- | FORMAL_FLOATING_POINT_DEFINITION
6647 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6648 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6649 -- | FORMAL_ARRAY_TYPE_DEFINITION
6650 -- | FORMAL_ACCESS_TYPE_DEFINITION
6651 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6652 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6654 -- The Ada 2012 syntax introduces two new non-terminals:
6655 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6656 -- the latter category. Here we introduce an incomplete type definition
6657 -- in order to preserve as much as possible the existing structure.
6659 ---------------------------------------------
6660 -- 12.5.1 Formal Private Type Definition --
6661 ---------------------------------------------
6663 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6664 -- [[abstract] tagged] [limited] private
6666 -- Note: TAGGED is not allowed in Ada 83 mode
6668 -- N_Formal_Private_Type_Definition
6669 -- Sloc points to PRIVATE
6670 -- Abstract_Present (Flag4)
6671 -- Tagged_Present (Flag15)
6672 -- Limited_Present (Flag17)
6674 --------------------------------------------
6675 -- 12.5.1 Formal Derived Type Definition --
6676 --------------------------------------------
6678 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6679 -- [abstract] [limited | synchronized]
6680 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6681 -- Note: this construct is not allowed in Ada 83 mode
6683 -- N_Formal_Derived_Type_Definition
6684 -- Sloc points to NEW
6685 -- Subtype_Mark (Node4)
6686 -- Private_Present (Flag15)
6687 -- Abstract_Present (Flag4)
6688 -- Limited_Present (Flag17)
6689 -- Synchronized_Present (Flag7)
6690 -- Interface_List (List2) (set to No_List if none)
6692 -----------------------------------------------
6693 -- 12.5.1 Formal Incomplete Type Definition --
6694 -----------------------------------------------
6696 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6698 -- N_Formal_Incomplete_Type_Definition
6699 -- Sloc points to identifier of parent
6700 -- Tagged_Present (Flag15)
6702 ---------------------------------------------
6703 -- 12.5.2 Formal Discrete Type Definition --
6704 ---------------------------------------------
6706 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6708 -- N_Formal_Discrete_Type_Definition
6711 ---------------------------------------------------
6712 -- 12.5.2 Formal Signed Integer Type Definition --
6713 ---------------------------------------------------
6715 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6717 -- N_Formal_Signed_Integer_Type_Definition
6718 -- Sloc points to RANGE
6720 --------------------------------------------
6721 -- 12.5.2 Formal Modular Type Definition --
6722 --------------------------------------------
6724 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6726 -- N_Formal_Modular_Type_Definition
6727 -- Sloc points to MOD
6729 ----------------------------------------------
6730 -- 12.5.2 Formal Floating Point Definition --
6731 ----------------------------------------------
6733 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6735 -- N_Formal_Floating_Point_Definition
6736 -- Sloc points to DIGITS
6738 ----------------------------------------------------
6739 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6740 ----------------------------------------------------
6742 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6744 -- N_Formal_Ordinary_Fixed_Point_Definition
6745 -- Sloc points to DELTA
6747 ---------------------------------------------------
6748 -- 12.5.2 Formal Decimal Fixed Point Definition --
6749 ---------------------------------------------------
6751 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6753 -- Note: formal decimal fixed point definition not allowed in Ada 83
6755 -- N_Formal_Decimal_Fixed_Point_Definition
6756 -- Sloc points to DELTA
6758 ------------------------------------------
6759 -- 12.5.3 Formal Array Type Definition --
6760 ------------------------------------------
6762 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6764 -------------------------------------------
6765 -- 12.5.4 Formal Access Type Definition --
6766 -------------------------------------------
6768 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6770 ----------------------------------------------
6771 -- 12.5.5 Formal Interface Type Definition --
6772 ----------------------------------------------
6774 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6776 -----------------------------------------
6777 -- 12.6 Formal Subprogram Declaration --
6778 -----------------------------------------
6780 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6781 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6782 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6784 --------------------------------------------------
6785 -- 12.6 Formal Concrete Subprogram Declaration --
6786 --------------------------------------------------
6788 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6789 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6790 -- [ASPECT_SPECIFICATIONS];
6792 -- N_Formal_Concrete_Subprogram_Declaration
6793 -- Sloc points to WITH
6794 -- Specification (Node1)
6795 -- Default_Name (Node2) (set to Empty if no subprogram default)
6796 -- Box_Present (Flag15)
6798 -- Note: if no subprogram default is present, then Name is set
6799 -- to Empty, and Box_Present is False.
6801 --------------------------------------------------
6802 -- 12.6 Formal Abstract Subprogram Declaration --
6803 --------------------------------------------------
6805 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6806 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6807 -- [ASPECT_SPECIFICATIONS];
6809 -- N_Formal_Abstract_Subprogram_Declaration
6810 -- Sloc points to WITH
6811 -- Specification (Node1)
6812 -- Default_Name (Node2) (set to Empty if no subprogram default)
6813 -- Box_Present (Flag15)
6815 -- Note: if no subprogram default is present, then Name is set
6816 -- to Empty, and Box_Present is False.
6818 ------------------------------
6819 -- 12.6 Subprogram Default --
6820 ------------------------------
6822 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6824 -- There is no separate node in the tree for a subprogram default.
6825 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6826 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6827 -- default name or box indication, as needed.
6829 ------------------------
6830 -- 12.6 Default Name --
6831 ------------------------
6833 -- DEFAULT_NAME ::= NAME
6835 --------------------------------------
6836 -- 12.7 Formal Package Declaration --
6837 --------------------------------------
6839 -- FORMAL_PACKAGE_DECLARATION ::=
6840 -- with package DEFINING_IDENTIFIER
6841 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6842 -- [ASPECT_SPECIFICATIONS];
6844 -- Note: formal package declarations not allowed in Ada 83 mode
6846 -- N_Formal_Package_Declaration
6847 -- Sloc points to WITH
6848 -- Defining_Identifier (Node1)
6850 -- Generic_Associations (List3) (set to No_List if (<>) case or
6851 -- empty generic actual part)
6852 -- Box_Present (Flag15)
6853 -- Instance_Spec (Node5-Sem)
6854 -- ABE_Is_Certain (Flag18-Sem)
6856 --------------------------------------
6857 -- 12.7 Formal Package Actual Part --
6858 --------------------------------------
6860 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6862 -- | [GENERIC_ACTUAL_PART]
6863 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6865 -- FORMAL_PACKAGE_ASSOCIATION ::=
6866 -- GENERIC_ASSOCIATION
6867 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6869 -- There is no explicit node in the tree for a formal package actual
6870 -- part. Instead the information appears in the parent node (i.e. the
6871 -- formal package declaration node itself).
6873 -- There is no explicit node for a formal package association. All of
6874 -- them are represented either by a generic association, possibly with
6875 -- Box_Present, or by an N_Others_Choice.
6877 ---------------------------------
6878 -- 13.1 Representation clause --
6879 ---------------------------------
6881 -- REPRESENTATION_CLAUSE ::=
6882 -- ATTRIBUTE_DEFINITION_CLAUSE
6883 -- | ENUMERATION_REPRESENTATION_CLAUSE
6884 -- | RECORD_REPRESENTATION_CLAUSE
6887 ----------------------
6888 -- 13.1 Local Name --
6889 ----------------------
6893 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6894 -- | library_unit_NAME
6896 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6897 -- as an attribute reference, which has essentially the same form.
6899 ---------------------------------------
6900 -- 13.3 Attribute definition clause --
6901 ---------------------------------------
6903 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6904 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6905 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6907 -- In Ada 83, the expression must be a simple expression and the
6908 -- local name must be a direct name.
6910 -- Note: the only attribute definition clause that is processed by
6911 -- gigi is an address clause. For all other cases, the information
6912 -- is extracted by the front end and either results in setting entity
6913 -- information, e.g. Esize for the Size clause, or in appropriate
6914 -- expansion actions (e.g. in the case of Storage_Size).
6916 -- For an address clause, Gigi constructs the appropriate addressing
6917 -- code. It also ensures that no aliasing optimizations are made
6918 -- for the object for which the address clause appears.
6920 -- Note: for an address clause used to achieve an overlay:
6924 -- for B'Address use A'Address;
6926 -- the above rule means that Gigi will ensure that no optimizations
6927 -- will be made for B that would violate the implementation advice
6928 -- of RM 13.3(19). However, this advice applies only to B and not
6929 -- to A, which seems unfortunate. The GNAT front end will mark the
6930 -- object A as volatile to also prevent unwanted optimization
6931 -- assumptions based on no aliasing being made for B.
6933 -- N_Attribute_Definition_Clause
6934 -- Sloc points to FOR
6935 -- Name (Node2) the local name
6936 -- Chars (Name1) the identifier name from the attribute designator
6937 -- Expression (Node3) the expression or name
6938 -- Entity (Node4-Sem)
6939 -- Next_Rep_Item (Node5-Sem)
6940 -- From_At_Mod (Flag4-Sem)
6941 -- Check_Address_Alignment (Flag11-Sem)
6942 -- From_Aspect_Specification (Flag13-Sem)
6943 -- Is_Delayed_Aspect (Flag14-Sem)
6944 -- Address_Warning_Posted (Flag18-Sem)
6946 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6947 -- aspect name, and Entity is resolved already to reference the entity
6948 -- to which the aspect applies.
6950 -----------------------------------
6951 -- 13.3.1 Aspect Specifications --
6952 -----------------------------------
6954 -- We modify the RM grammar here, the RM grammar is:
6956 -- ASPECT_SPECIFICATION ::=
6957 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6958 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6960 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6962 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6964 -- That's inconvenient, since there is no non-terminal name for a single
6965 -- entry in the list of aspects. So we use this grammar instead:
6967 -- ASPECT_SPECIFICATIONS ::=
6968 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6970 -- ASPECT_SPECIFICATION =>
6971 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6973 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6975 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6977 -- See separate package Aspects for details on the incorporation of
6978 -- these nodes into the tree, and how aspect specifications for a given
6979 -- declaration node are associated with that node.
6981 -- N_Aspect_Specification
6982 -- Sloc points to aspect identifier
6983 -- Identifier (Node1) aspect identifier
6984 -- Aspect_Rep_Item (Node2-Sem)
6985 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6986 -- Entity (Node4-Sem) entity to which the aspect applies
6987 -- Class_Present (Flag6) Set if 'Class present
6988 -- Next_Rep_Item (Node5-Sem)
6989 -- Split_PPC (Flag17) Set if split pre/post attribute
6990 -- Is_Boolean_Aspect (Flag16-Sem)
6991 -- Is_Checked (Flag11-Sem)
6992 -- Is_Delayed_Aspect (Flag14-Sem)
6993 -- Is_Disabled (Flag15-Sem)
6994 -- Is_Ignored (Flag9-Sem)
6996 -- Note: Aspect_Specification is an Ada 2012 feature
6998 -- Note: The Identifier serves to identify the aspect involved (it
6999 -- is the aspect whose name corresponds to the Chars field). This
7000 -- means that the other fields of this identifier are unused, and
7001 -- in particular we use the Entity field of this identifier to save
7002 -- a copy of the expression for visibility analysis, see spec of
7003 -- Sem_Ch13 for full details of this usage.
7005 -- In the case of aspects of the form xxx'Class, the aspect identifier
7006 -- is for xxx, and Class_Present is set to True.
7008 -- Note: When a Pre or Post aspect specification is processed, it is
7009 -- broken into AND THEN sections. The left most section has Split_PPC
7010 -- set to False, indicating that it is the original specification (e.g.
7011 -- for posting errors). For the other sections, Split_PPC is set True.
7013 ---------------------------------------------
7014 -- 13.4 Enumeration representation clause --
7015 ---------------------------------------------
7017 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7018 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7020 -- In Ada 83, the name must be a direct name
7022 -- N_Enumeration_Representation_Clause
7023 -- Sloc points to FOR
7024 -- Identifier (Node1) direct name
7025 -- Array_Aggregate (Node3)
7026 -- Next_Rep_Item (Node5-Sem)
7028 ---------------------------------
7029 -- 13.4 Enumeration aggregate --
7030 ---------------------------------
7032 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7034 ------------------------------------------
7035 -- 13.5.1 Record representation clause --
7036 ------------------------------------------
7038 -- RECORD_REPRESENTATION_CLAUSE ::=
7039 -- for first_subtype_LOCAL_NAME use
7040 -- record [MOD_CLAUSE]
7041 -- {COMPONENT_CLAUSE}
7044 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7045 -- replaced by a corresponding Alignment attribute definition clause).
7047 -- Note: Component_Clauses can include pragmas
7049 -- N_Record_Representation_Clause
7050 -- Sloc points to FOR
7051 -- Identifier (Node1) direct name
7052 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7053 -- Component_Clauses (List3)
7054 -- Next_Rep_Item (Node5-Sem)
7056 ------------------------------
7057 -- 13.5.1 Component clause --
7058 ------------------------------
7060 -- COMPONENT_CLAUSE ::=
7061 -- component_LOCAL_NAME at POSITION
7062 -- range FIRST_BIT .. LAST_BIT;
7064 -- N_Component_Clause
7065 -- Sloc points to AT
7066 -- Component_Name (Node1) points to Name or Attribute_Reference
7068 -- First_Bit (Node3)
7071 ----------------------
7072 -- 13.5.1 Position --
7073 ----------------------
7075 -- POSITION ::= static_EXPRESSION
7077 -----------------------
7078 -- 13.5.1 First_Bit --
7079 -----------------------
7081 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7083 ----------------------
7084 -- 13.5.1 Last_Bit --
7085 ----------------------
7087 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7089 --------------------------
7090 -- 13.8 Code statement --
7091 --------------------------
7093 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7095 -- Note: in GNAT, the qualified expression has the form
7097 -- Asm_Insn'(Asm (...));
7099 -- See package System.Machine_Code in file s-maccod.ads for details on
7100 -- the allowed parameters to Asm. There are two ways this node can
7101 -- arise, as a code statement, in which case the expression is the
7102 -- qualified expression, or as a result of the expansion of an intrinsic
7103 -- call to the Asm or Asm_Input procedure.
7106 -- Sloc points to first token of the expression
7107 -- Expression (Node3)
7109 -- Note: package Exp_Code contains an abstract functional interface
7110 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7112 ------------------------
7113 -- 13.12 Restriction --
7114 ------------------------
7117 -- restriction_IDENTIFIER
7118 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7120 -- There is no explicit node for restrictions. Instead the restriction
7121 -- appears in normal pragma syntax as a pragma argument association,
7122 -- which has the same syntactic form.
7124 --------------------------
7125 -- B.2 Shift Operators --
7126 --------------------------
7128 -- Calls to the intrinsic shift functions are converted to one of
7129 -- the following shift nodes, which have the form of normal binary
7130 -- operator names. Note that for a given shift operation, one node
7131 -- covers all possible types, as for normal operators.
7133 -- Note: it is perfectly permissible for the expander to generate
7134 -- shift operation nodes directly, in which case they will be analyzed
7135 -- and parsed in the usual manner.
7137 -- Sprint syntax: shift-function-name!(expr, count)
7139 -- Note: the Left_Opnd field holds the first argument (the value to
7140 -- be shifted). The Right_Opnd field holds the second argument (the
7141 -- shift count). The Chars field is the name of the intrinsic function.
7144 -- Sloc points to the function name
7145 -- plus fields for binary operator
7146 -- plus fields for expression
7147 -- Shift_Count_OK (Flag4-Sem)
7149 -- N_Op_Rotate_Right
7150 -- Sloc points to the function name
7151 -- plus fields for binary operator
7152 -- plus fields for expression
7153 -- Shift_Count_OK (Flag4-Sem)
7156 -- Sloc points to the function name
7157 -- plus fields for binary operator
7158 -- plus fields for expression
7159 -- Shift_Count_OK (Flag4-Sem)
7161 -- N_Op_Shift_Right_Arithmetic
7162 -- Sloc points to the function name
7163 -- plus fields for binary operator
7164 -- plus fields for expression
7165 -- Shift_Count_OK (Flag4-Sem)
7168 -- Sloc points to the function name
7169 -- plus fields for binary operator
7170 -- plus fields for expression
7171 -- Shift_Count_OK (Flag4-Sem)
7173 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7174 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7176 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7177 -- always less than the word size if Modify_Tree_For_C mode is set.
7179 --------------------------
7180 -- Obsolescent Features --
7181 --------------------------
7183 -- The syntax descriptions and tree nodes for obsolescent features are
7184 -- grouped together, corresponding to their location in appendix I in
7185 -- the RM. However, parsing and semantic analysis for these constructs
7186 -- is located in an appropriate chapter (see individual notes).
7188 ---------------------------
7189 -- J.3 Delta Constraint --
7190 ---------------------------
7192 -- Note: the parse routine for this construct is located in section
7193 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7194 -- where delta constraint logically belongs.
7196 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7198 -- N_Delta_Constraint
7199 -- Sloc points to DELTA
7200 -- Delta_Expression (Node3)
7201 -- Range_Constraint (Node4) (set to Empty if not present)
7203 --------------------
7205 --------------------
7207 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7209 -- Note: the parse routine for this construct is located in Par-Ch13,
7210 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7211 -- belongs if it were not obsolescent.
7213 -- Note: in Ada 83 the expression must be a simple expression
7215 -- Gigi restriction: This node never appears, it is rewritten as an
7216 -- address attribute definition clause.
7219 -- Sloc points to FOR
7220 -- Identifier (Node1)
7221 -- Expression (Node3)
7223 ---------------------
7224 -- J.8 Mod clause --
7225 ---------------------
7227 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7229 -- Note: the parse routine for this construct is located in Par-Ch13,
7230 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7231 -- belongs if it were not obsolescent.
7233 -- Note: in Ada 83, the expression must be a simple expression
7235 -- Gigi restriction: this node never appears. It is replaced
7236 -- by a corresponding Alignment attribute definition clause.
7238 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7239 -- its name has "clause" in it. This is rather strange, but is quite
7240 -- definitely specified. The pragmas before are collected in the
7241 -- Pragmas_Before field of the mod clause node itself, and pragmas
7242 -- after are simply swallowed up in the list of component clauses.
7245 -- Sloc points to AT
7246 -- Expression (Node3)
7247 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7249 --------------------
7250 -- Semantic Nodes --
7251 --------------------
7253 -- These semantic nodes are used to hold additional semantic information.
7254 -- They are inserted into the tree as a result of semantic processing.
7255 -- Although there are no legitimate source syntax constructions that
7256 -- correspond directly to these nodes, we need a source syntax for the
7257 -- reconstructed tree printed by Sprint, and the node descriptions here
7258 -- show this syntax.
7264 -- This node is used to hold the various parts of an entry, subprogram
7265 -- [body] or package [body] contract, in particular:
7266 -- Abstract states declared by a package declaration
7267 -- Contract cases that apply to a subprogram
7268 -- Dependency relations of inputs and output of a subprogram
7269 -- Global annotations classifying data as input or output
7270 -- Initialization sequences for a package declaration
7271 -- Pre- and postconditions that apply to a subprogram
7273 -- The node appears in an entry and [generic] subprogram [body] entity.
7275 -- Sprint syntax: <none> as the node should not appear in the tree, but
7276 -- only attached to an entry or [generic] subprogram
7280 -- Sloc points to the subprogram's name
7281 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7282 -- Contract_Test_Cases (Node2) (set to Empty if none)
7283 -- Classifications (Node3) (set to Empty if none)
7285 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7286 -- to pre- and postconditions associated with an entry or a subprogram
7287 -- [body or stub]. The pragmas can either come from source or be the
7288 -- byproduct of aspect expansion. Currently the following pragmas appear
7295 -- The ordering in the list is in LIFO fashion.
7297 -- Note that there might be multiple preconditions or postconditions
7298 -- in this list, either because they come from separate pragmas in the
7299 -- source, or because a Pre (resp. Post) aspect specification has been
7300 -- broken into AND THEN sections. See Split_PPC for details.
7302 -- Contract_Test_Cases contains a collection of pragmas that correspond
7303 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7304 -- list is in LIFO fashion.
7306 -- Classifications contains pragmas that either declare, categorize or
7307 -- establish dependencies between subprogram or package inputs and
7308 -- outputs. Currently the following pragmas appear in this list:
7316 -- Initial_Condition
7322 -- The ordering is in LIFO fashion.
7328 -- The N_Expanded_Name node is used to represent a selected component
7329 -- name that has been resolved to an expanded name. The semantic phase
7330 -- replaces N_Selected_Component nodes that represent names by the use
7331 -- of this node, leaving the N_Selected_Component node used only when
7332 -- the prefix is a record or protected type.
7334 -- The fields of the N_Expanded_Name node are layed out identically
7335 -- to those of the N_Selected_Component node, allowing conversion of
7336 -- an expanded name node to a selected component node to be done
7337 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7339 -- There is no special sprint syntax for an expanded name
7342 -- Sloc points to the period
7343 -- Chars (Name1) copy of Chars field of selector name
7345 -- Selector_Name (Node2)
7346 -- Entity (Node4-Sem)
7347 -- Associated_Node (Node4-Sem)
7348 -- Has_Private_View (Flag11-Sem) set in generic units.
7349 -- Redundant_Use (Flag13-Sem)
7350 -- Atomic_Sync_Required (Flag14-Sem)
7351 -- plus fields for expression
7353 -----------------------------
7354 -- Expression with Actions --
7355 -----------------------------
7357 -- This node is created by the analyzer/expander to handle some
7358 -- expansion cases, notably short circuit forms where there are
7359 -- actions associated with the right-hand side operand.
7361 -- The N_Expression_With_Actions node represents an expression with
7362 -- an associated set of actions (which are executable statements and
7363 -- declarations, as might occur in a handled statement sequence).
7365 -- The required semantics is that the set of actions is executed in
7366 -- the order in which it appears just before the expression is
7367 -- evaluated (and these actions must only be executed if the value
7368 -- of the expression is evaluated). The node is considered to be
7369 -- a subexpression, whose value is the value of the Expression after
7370 -- executing all the actions.
7372 -- If the actions contain declarations, then these declarations may
7373 -- be referenced within the expression. However note that there is
7374 -- no proper scope associated with the expression-with-action, so the
7375 -- back-end will elaborate them in the context of the enclosing scope.
7377 -- Sprint syntax: do
7382 -- in expression end
7384 -- N_Expression_With_Actions
7386 -- Expression (Node3)
7387 -- plus fields for expression
7389 -- Note: In the final generated tree presented to the code generator,
7390 -- the actions list is always non-null, since there is no point in this
7391 -- node if the actions are Empty. During semantic analysis there are
7392 -- cases where it is convenient to temporarily generate an empty actions
7393 -- list. This arises in cases where we create such an empty actions
7394 -- list, and it may or may not end up being a place where additional
7395 -- actions are inserted. The expander removes such empty cases after
7396 -- the expression of the node is fully analyzed and expanded, at which
7397 -- point it is safe to remove it, since no more actions can be inserted.
7399 -- Note: Expression may be a Null_Statement, in which case the
7400 -- N_Expression_With_Actions has type Standard_Void_Type. However some
7401 -- backends do not support such expression-with-actions occurring
7402 -- outside of a proper (non-void) expression, so this should just be
7403 -- used as an intermediate representation within the front end. Also
7404 -- note that this is really an irregularity (expressions and statements
7405 -- are not interchangeable, and in particular an N_Null_Statement is
7406 -- not a proper expression), and in the long term all cases of this
7407 -- idiom should instead use a new node kind N_Compound_Statement.
7409 --------------------
7410 -- Free Statement --
7411 --------------------
7413 -- The N_Free_Statement node is generated as a result of a call to an
7414 -- instantiation of Unchecked_Deallocation. The instantiation of this
7415 -- generic is handled specially and generates this node directly.
7417 -- Sprint syntax: free expression
7420 -- Sloc is copied from the unchecked deallocation call
7421 -- Expression (Node3) argument to unchecked deallocation call
7422 -- Storage_Pool (Node1-Sem)
7423 -- Procedure_To_Call (Node2-Sem)
7424 -- Actual_Designated_Subtype (Node4-Sem)
7426 -- Note: in the case where a debug source file is generated, the Sloc
7427 -- for this node points to the FREE keyword in the Sprint file output.
7433 -- This node marks the point in a declarative part at which an entity
7434 -- declared therein becomes frozen. The expander places initialization
7435 -- procedures for types at those points. Gigi uses the freezing point
7436 -- to elaborate entities that may depend on previous private types.
7438 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7439 -- a full description of the use of this node.
7441 -- The Entity field points back to the entity for the type (whose
7442 -- Freeze_Node field points back to this freeze node).
7444 -- The Actions field contains a list of declarations and statements
7445 -- generated by the expander which are associated with the freeze
7446 -- node, and are elaborated as though the freeze node were replaced
7447 -- by this sequence of actions.
7449 -- Note: the Sloc field in the freeze node references a construct
7450 -- associated with the freezing point. This is used for posting
7451 -- messages in some error/warning situations, e.g. the case where
7452 -- a primitive operation of a tagged type is declared too late.
7454 -- Sprint syntax: freeze entity-name [
7459 -- Sloc points near freeze point (see above special note)
7460 -- Entity (Node4-Sem)
7461 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7462 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7463 -- Actions (List1) (set to No_List if no freeze actions)
7464 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7466 -- The Actions field holds actions associated with the freeze. These
7467 -- actions are elaborated at the point where the type is frozen.
7469 -- Note: in the case where a debug source file is generated, the Sloc
7470 -- for this node points to the FREEZE keyword in the Sprint file output.
7472 ---------------------------
7473 -- Freeze_Generic_Entity --
7474 ---------------------------
7476 -- The freeze point of an entity indicates the point at which the
7477 -- information needed to generate code for the entity is complete.
7478 -- The freeze node for an entity triggers expander activities, such as
7479 -- build initialization procedures, and backend activities, such as
7480 -- completing the elaboration of packages.
7482 -- For entities declared within a generic unit, for which no code is
7483 -- generated, the freeze point is not equally meaningful. However, in
7484 -- Ada 2012 several semantic checks on declarations must be delayed to
7485 -- the freeze point, and we need to include such a mark in the tree to
7486 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7487 -- role, and is ignored by the expander and the back-end.
7489 -- Sprint syntax: freeze_generic entity-name
7491 -- N_Freeze_Generic_Entity
7492 -- Sloc points near freeze point
7493 -- Entity (Node4-Sem)
7495 --------------------------------
7496 -- Implicit Label Declaration --
7497 --------------------------------
7499 -- An implicit label declaration is created for every occurrence of a
7500 -- label on a statement or a label on a block or loop. It is chained
7501 -- in the declarations of the innermost enclosing block as specified
7502 -- in RM section 5.1 (3).
7504 -- The Defining_Identifier is the actual identifier for the statement
7505 -- identifier. Note that the occurrence of the label is a reference, NOT
7506 -- the defining occurrence. The defining occurrence occurs at the head
7507 -- of the innermost enclosing block, and is represented by this node.
7509 -- Note: from the grammar, this might better be called an implicit
7510 -- statement identifier declaration, but the term we choose seems
7511 -- friendlier, since at least informally statement identifiers are
7512 -- called labels in both cases (i.e. when used in labels, and when
7513 -- used as the identifiers of blocks and loops).
7515 -- Note: although this is logically a semantic node, since it does not
7516 -- correspond directly to a source syntax construction, these nodes are
7517 -- actually created by the parser in a post pass done just after parsing
7518 -- is complete, before semantic analysis is started (see Par.Labl).
7520 -- Sprint syntax: labelname : label;
7522 -- N_Implicit_Label_Declaration
7523 -- Sloc points to the << token for a statement identifier, or to the
7524 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7525 -- Defining_Identifier (Node1)
7526 -- Label_Construct (Node2-Sem)
7528 -- Note: in the case where a debug source file is generated, the Sloc
7529 -- for this node points to the label name in the generated declaration.
7531 ---------------------
7532 -- Itype_Reference --
7533 ---------------------
7535 -- This node is used to create a reference to an Itype. The only purpose
7536 -- is to make sure the Itype is defined if this is the first reference.
7538 -- A typical use of this node is when an Itype is to be referenced in
7539 -- two branches of an IF statement. In this case it is important that
7540 -- the first use of the Itype not be inside the conditional, since then
7541 -- it might not be defined if the other branch of the IF is taken, in
7542 -- the case where the definition generates elaboration code.
7544 -- The Itype field points to the referenced Itype
7546 -- Sprint syntax: reference itype-name
7548 -- N_Itype_Reference
7549 -- Sloc points to the node generating the reference
7550 -- Itype (Node1-Sem)
7552 -- Note: in the case where a debug source file is generated, the Sloc
7553 -- for this node points to the REFERENCE keyword in the file output.
7555 ---------------------
7556 -- Raise_xxx_Error --
7557 ---------------------
7559 -- One of these nodes is created during semantic analysis to replace
7560 -- a node for an expression that is determined to definitely raise
7561 -- the corresponding exception.
7563 -- The N_Raise_xxx_Error node may also stand alone in place
7564 -- of a declaration or statement, in which case it simply causes
7565 -- the exception to be raised (i.e. it is equivalent to a raise
7566 -- statement that raises the corresponding exception). This use
7567 -- is distinguished by the fact that the Etype in this case is
7568 -- Standard_Void_Type; in the subexpression case, the Etype is the
7569 -- same as the type of the subexpression which it replaces.
7571 -- If Condition is empty, then the raise is unconditional. If the
7572 -- Condition field is non-empty, it is a boolean expression which
7573 -- is first evaluated, and the exception is raised only if the
7574 -- value of the expression is True. In the unconditional case, the
7575 -- creation of this node is usually accompanied by a warning message
7576 -- error. The creation of this node will usually be accompanied by a
7577 -- message (unless it appears within the right operand of a short
7578 -- circuit form whose left argument is static and decisively
7579 -- eliminates elaboration of the raise operation. The condition field
7580 -- can ONLY be present when the node is used as a statement form, it
7581 -- may NOT be present in the case where the node appears within an
7584 -- The exception is generated with a message that contains the
7585 -- file name and line number, and then appended text. The Reason
7586 -- code shows the text to be added. The Reason code is an element
7587 -- of the type Types.RT_Exception_Code, and indicates both the
7588 -- message to be added, and the exception to be raised (which must
7589 -- match the node type). The value is stored by storing a Uint which
7590 -- is the Pos value of the enumeration element in this type.
7592 -- Gigi restriction: This expander ensures that the type of the
7593 -- Condition field is always Standard.Boolean, even if the type
7594 -- in the source is some non-standard boolean type.
7596 -- Sprint syntax: [xxx_error "msg"]
7597 -- or: [xxx_error when condition "msg"]
7599 -- N_Raise_Constraint_Error
7600 -- Sloc references related construct
7601 -- Condition (Node1) (set to Empty if no condition)
7603 -- plus fields for expression
7605 -- N_Raise_Program_Error
7606 -- Sloc references related construct
7607 -- Condition (Node1) (set to Empty if no condition)
7609 -- plus fields for expression
7611 -- N_Raise_Storage_Error
7612 -- Sloc references related construct
7613 -- Condition (Node1) (set to Empty if no condition)
7615 -- plus fields for expression
7617 -- Note: Sloc is copied from the expression generating the exception.
7618 -- In the case where a debug source file is generated, the Sloc for
7619 -- this node points to the left bracket in the Sprint file output.
7621 -- Note: the back end may be required to translate these nodes into
7622 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7624 ---------------------------------------------
7625 -- Optimization of Exception Raise to Goto --
7626 ---------------------------------------------
7628 -- In some cases, the front end will determine that any exception raised
7629 -- by the back end for a certain exception should be transformed into a
7632 -- There are three kinds of exceptions raised by the back end (note that
7633 -- for this purpose we consider gigi to be part of the back end in the
7636 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7637 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7638 -- 3. Other cases not specifically marked by the front end
7640 -- Normally all such exceptions are translated into calls to the proper
7641 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7642 -- and the exception message.
7644 -- The front end may determine that for a particular sequence of code,
7645 -- exceptions in any of these three categories for a particular builtin
7646 -- exception should result in a goto, rather than a call to Rcheck_xx.
7647 -- The exact sequence to be generated is:
7649 -- Local_Raise (exception'Identity);
7652 -- The front end marks such a sequence of code by bracketing it with
7653 -- push and pop nodes:
7655 -- N_Push_xxx_Label (referencing the label)
7657 -- (code where transformation is expected for exception xxx)
7661 -- The use of push/pop reflects the fact that such regions can properly
7662 -- nest, and one special case is a subregion in which no transformation
7663 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7664 -- Exception_Label field is Empty.
7666 -- N_Push_Constraint_Error_Label
7667 -- Sloc references first statement in region covered
7668 -- Exception_Label (Node5-Sem)
7670 -- N_Push_Program_Error_Label
7671 -- Sloc references first statement in region covered
7672 -- Exception_Label (Node5-Sem)
7674 -- N_Push_Storage_Error_Label
7675 -- Sloc references first statement in region covered
7676 -- Exception_Label (Node5-Sem)
7678 -- N_Pop_Constraint_Error_Label
7679 -- Sloc references last statement in region covered
7681 -- N_Pop_Program_Error_Label
7682 -- Sloc references last statement in region covered
7684 -- N_Pop_Storage_Error_Label
7685 -- Sloc references last statement in region covered
7691 -- For a number of purposes, we need to construct references to objects.
7692 -- These references are subsequently treated as normal access values.
7693 -- An example is the construction of the parameter block passed to a
7694 -- task entry. The N_Reference node is provided for this purpose. It is
7695 -- similar in effect to the use of the Unrestricted_Access attribute,
7696 -- and like Unrestricted_Access can be applied to objects which would
7697 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7698 -- objects which are not aliased, and slices). In addition it can be
7699 -- applied to composite type values as well as objects, including string
7700 -- values and aggregates.
7702 -- Note: we use the Prefix field for this expression so that the
7703 -- resulting node can be treated using common code with the attribute
7704 -- nodes for the 'Access and related attributes. Logically it would make
7705 -- more sense to call it an Expression field, but then we would have to
7706 -- special case the treatment of the N_Reference node.
7708 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7709 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7710 -- a temporary initialized to a N_Reference node in order to eliminate
7711 -- superfluous access checks.
7713 -- Sprint syntax: prefix'reference
7716 -- Sloc is copied from the expression
7718 -- plus fields for expression
7720 -- Note: in the case where a debug source file is generated, the Sloc
7721 -- for this node points to the quote in the Sprint file output.
7727 -- SCIL nodes are special nodes added to the tree when the CodePeer
7728 -- mode is active. They help the CodePeer backend to locate nodes that
7729 -- require special processing. They are only generated if SCIL
7730 -- generation is enabled. A standard tree-walk will not encounter
7731 -- these nodes even if they are present; these nodes are only
7732 -- accessible via the function SCIL_LL.Get_SCIL_Node.
7734 -- N_SCIL_Dispatch_Table_Tag_Init
7735 -- Sloc references a node for a tag initialization
7736 -- SCIL_Entity (Node4-Sem)
7738 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7739 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7740 -- the declaration of the dispatch table for a tagged type.
7742 -- N_SCIL_Dispatching_Call
7743 -- Sloc references the node of a dispatching call
7744 -- SCIL_Target_Prim (Node2-Sem)
7745 -- SCIL_Entity (Node4-Sem)
7746 -- SCIL_Controlling_Tag (Node5-Sem)
7748 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7749 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7750 -- thereof) corresponding to a dispatching call.
7752 -- N_SCIL_Membership_Test
7753 -- Sloc references the node of a membership test
7754 -- SCIL_Tag_Value (Node5-Sem)
7755 -- SCIL_Entity (Node4-Sem)
7757 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7758 -- with the N_In node (or a rewriting thereof) corresponding to a
7759 -- classwide membership test.
7761 --------------------------
7762 -- Unchecked Expression --
7763 --------------------------
7765 -- An unchecked expression is one that must be analyzed and resolved
7766 -- with all checks off, regardless of the current setting of scope
7769 -- Sprint syntax: `(expression)
7771 -- Note: this node is always removed from the tree (and replaced by
7772 -- its constituent expression) on completion of analysis, so it only
7773 -- appears in intermediate trees, and will never be seen by Gigi.
7775 -- N_Unchecked_Expression
7776 -- Sloc is a copy of the Sloc of the expression
7777 -- Expression (Node3)
7778 -- plus fields for expression
7780 -- Note: in the case where a debug source file is generated, the Sloc
7781 -- for this node points to the back quote in the Sprint file output.
7783 -------------------------------
7784 -- Unchecked Type Conversion --
7785 -------------------------------
7787 -- An unchecked type conversion node represents the semantic action
7788 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7789 -- It is generated as a result of actual use of Unchecked_Conversion
7790 -- and also the expander generates unchecked type conversion nodes
7791 -- directly for expansion of complex semantic actions.
7793 -- Note: an unchecked type conversion is a variable as far as the
7794 -- semantics are concerned, which is convenient for the expander.
7795 -- This does not change what Ada source programs are legal, since
7796 -- clearly a function call to an instantiation of Unchecked_Conversion
7797 -- is not a variable in any case.
7799 -- Sprint syntax: subtype-mark!(expression)
7801 -- N_Unchecked_Type_Conversion
7802 -- Sloc points to related node in source
7803 -- Subtype_Mark (Node4)
7804 -- Expression (Node3)
7805 -- Kill_Range_Check (Flag11-Sem)
7806 -- No_Truncation (Flag17-Sem)
7807 -- plus fields for expression
7809 -- Note: in the case where a debug source file is generated, the Sloc
7810 -- for this node points to the exclamation in the Sprint file output.
7812 -----------------------------------
7813 -- Validate_Unchecked_Conversion --
7814 -----------------------------------
7816 -- The front end does most of the validation of unchecked conversion,
7817 -- including checking sizes (this is done after the back end is called
7818 -- to take advantage of back-annotation of calculated sizes).
7820 -- The front end also deals with specific cases that are not allowed
7821 -- e.g. involving unconstrained array types.
7823 -- For the case of the standard gigi backend, this means that all
7824 -- checks are done in the front end.
7826 -- However, in the case of specialized back-ends, notably the JVM
7827 -- backend for JGNAT, additional requirements and restrictions apply
7828 -- to unchecked conversion, and these are most conveniently performed
7829 -- in the specialized back-end.
7831 -- To accommodate this requirement, for such back ends, the following
7832 -- special node is generated recording an unchecked conversion that
7833 -- needs to be validated. The back end should post an appropriate
7834 -- error message if the unchecked conversion is invalid or warrants
7835 -- a special warning message.
7837 -- Source_Type and Target_Type point to the entities for the two
7838 -- types involved in the unchecked conversion instantiation that
7839 -- is to be validated.
7841 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7843 -- N_Validate_Unchecked_Conversion
7844 -- Sloc points to instantiation (location for warning message)
7845 -- Source_Type (Node1-Sem)
7846 -- Target_Type (Node2-Sem)
7848 -- Note: in the case where a debug source file is generated, the Sloc
7849 -- for this node points to the VALIDATE keyword in the file output.
7855 -- Used as the contents of the Nkind field of the dummy Empty node
7856 -- and in some other situations to indicate an uninitialized value.
7859 -- Chars (Name1) is set to No_Name
7865 -- Used as the contents of the Nkind field of the dummy Error node.
7866 -- Has an Etype field, which gets set to Any_Type later on, to help
7867 -- error recovery (Error_Posted is also set in the Error node).
7870 -- Chars (Name1) is set to Error_Name
7871 -- Etype (Node5-Sem)
7873 --------------------------
7874 -- Node Type Definition --
7875 --------------------------
7877 -- The following is the definition of the Node_Kind type. As previously
7878 -- discussed, this is separated off to allow rearrangement of the order to
7879 -- facilitate definition of subtype ranges. The comments show the subtype
7880 -- classes which apply to each set of node kinds. The first entry in the
7881 -- comment characterizes the following list of nodes.
7886 -- N_Representation_Clause
7890 N_Enumeration_Representation_Clause,
7892 N_Record_Representation_Clause,
7894 -- N_Representation_Clause, N_Has_Chars
7896 N_Attribute_Definition_Clause,
7901 N_Pragma_Argument_Association,
7903 -- N_Has_Etype, N_Has_Chars
7905 -- Note: of course N_Error does not really have Etype or Chars fields,
7906 -- and any attempt to access these fields in N_Error will cause an
7907 -- error, but historically this always has been positioned so that an
7908 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7909 -- Most likely this makes coding easier somewhere but still seems
7910 -- undesirable. To be investigated some time ???
7914 -- N_Entity, N_Has_Etype, N_Has_Chars
7916 N_Defining_Character_Literal,
7917 N_Defining_Identifier,
7918 N_Defining_Operator_Symbol,
7920 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7924 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7925 -- N_Has_Chars, N_Has_Entity
7930 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7931 -- N_Has_Chars, N_Has_Entity
7933 N_Character_Literal,
7935 -- N_Binary_Op, N_Op, N_Subexpr,
7936 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7943 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7944 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7951 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7952 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7956 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7957 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7966 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7967 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7972 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7973 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7979 N_Op_Shift_Right_Arithmetic,
7981 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7982 -- N_Has_Chars, N_Has_Entity
7989 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7991 N_Attribute_Reference,
7993 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7998 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8003 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8006 N_Procedure_Call_Statement,
8008 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8010 N_Raise_Constraint_Error,
8011 N_Raise_Program_Error,
8012 N_Raise_Storage_Error,
8014 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8020 -- N_Subexpr, N_Has_Etype
8022 N_Explicit_Dereference,
8023 N_Expression_With_Actions,
8025 N_Indexed_Component,
8027 N_Qualified_Expression,
8028 N_Quantified_Expression,
8032 N_Extension_Aggregate,
8036 N_Selected_Component,
8039 N_Unchecked_Expression,
8040 N_Unchecked_Type_Conversion,
8044 N_Subtype_Indication,
8048 N_Component_Declaration,
8049 N_Entry_Declaration,
8050 N_Expression_Function,
8051 N_Formal_Object_Declaration,
8052 N_Formal_Type_Declaration,
8053 N_Full_Type_Declaration,
8054 N_Incomplete_Type_Declaration,
8055 N_Iterator_Specification,
8056 N_Loop_Parameter_Specification,
8057 N_Object_Declaration,
8058 N_Protected_Type_Declaration,
8059 N_Private_Extension_Declaration,
8060 N_Private_Type_Declaration,
8061 N_Subtype_Declaration,
8063 -- N_Subprogram_Specification, N_Declaration
8065 N_Function_Specification,
8066 N_Procedure_Specification,
8068 -- N_Access_To_Subprogram_Definition
8070 N_Access_Function_Definition,
8071 N_Access_Procedure_Definition,
8073 -- N_Later_Decl_Item
8075 N_Task_Type_Declaration,
8077 -- N_Body_Stub, N_Later_Decl_Item
8079 N_Package_Body_Stub,
8080 N_Protected_Body_Stub,
8081 N_Subprogram_Body_Stub,
8084 -- N_Generic_Instantiation, N_Later_Decl_Item
8085 -- N_Subprogram_Instantiation
8087 N_Function_Instantiation,
8088 N_Procedure_Instantiation,
8090 -- N_Generic_Instantiation, N_Later_Decl_Item
8092 N_Package_Instantiation,
8094 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8099 -- N_Later_Decl_Item, N_Proper_Body
8104 -- N_Later_Decl_Item
8106 N_Implicit_Label_Declaration,
8107 N_Package_Declaration,
8108 N_Single_Task_Declaration,
8109 N_Subprogram_Declaration,
8110 N_Use_Package_Clause,
8112 -- N_Generic_Declaration, N_Later_Decl_Item
8114 N_Generic_Package_Declaration,
8115 N_Generic_Subprogram_Declaration,
8117 -- N_Array_Type_Definition
8119 N_Constrained_Array_Definition,
8120 N_Unconstrained_Array_Definition,
8122 -- N_Renaming_Declaration
8124 N_Exception_Renaming_Declaration,
8125 N_Object_Renaming_Declaration,
8126 N_Package_Renaming_Declaration,
8127 N_Subprogram_Renaming_Declaration,
8129 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8131 N_Generic_Function_Renaming_Declaration,
8132 N_Generic_Package_Renaming_Declaration,
8133 N_Generic_Procedure_Renaming_Declaration,
8135 -- N_Statement_Other_Than_Procedure_Call
8139 N_Assignment_Statement,
8140 N_Asynchronous_Select,
8144 N_Conditional_Entry_Call,
8146 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8148 N_Delay_Relative_Statement,
8149 N_Delay_Until_Statement,
8151 -- N_Statement_Other_Than_Procedure_Call
8153 N_Entry_Call_Statement,
8159 N_Requeue_Statement,
8160 N_Simple_Return_Statement,
8161 N_Extended_Return_Statement,
8165 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8172 N_Accept_Alternative,
8173 N_Delay_Alternative,
8175 N_Entry_Body_Formal_Part,
8177 N_Terminate_Alternative,
8179 -- N_Formal_Subprogram_Declaration
8181 N_Formal_Abstract_Subprogram_Declaration,
8182 N_Formal_Concrete_Subprogram_Declaration,
8184 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8186 N_Push_Constraint_Error_Label,
8187 N_Push_Program_Error_Label,
8188 N_Push_Storage_Error_Label,
8190 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8192 N_Pop_Constraint_Error_Label,
8193 N_Pop_Program_Error_Label,
8194 N_Pop_Storage_Error_Label,
8198 N_SCIL_Dispatch_Table_Tag_Init,
8199 N_SCIL_Dispatching_Call,
8200 N_SCIL_Membership_Test,
8202 -- Other nodes (not part of any subtype class)
8205 N_Abstract_Subprogram_Declaration,
8206 N_Access_Definition,
8207 N_Access_To_Object_Definition,
8208 N_Aspect_Specification,
8209 N_Case_Expression_Alternative,
8210 N_Case_Statement_Alternative,
8212 N_Compilation_Unit_Aux,
8213 N_Component_Association,
8214 N_Component_Definition,
8217 N_Derived_Type_Definition,
8218 N_Decimal_Fixed_Point_Definition,
8219 N_Defining_Program_Unit_Name,
8222 N_Digits_Constraint,
8223 N_Discriminant_Association,
8224 N_Discriminant_Specification,
8225 N_Enumeration_Type_Definition,
8227 N_Entry_Call_Alternative,
8228 N_Entry_Index_Specification,
8229 N_Exception_Declaration,
8230 N_Exception_Handler,
8231 N_Floating_Point_Definition,
8232 N_Formal_Decimal_Fixed_Point_Definition,
8233 N_Formal_Derived_Type_Definition,
8234 N_Formal_Discrete_Type_Definition,
8235 N_Formal_Floating_Point_Definition,
8236 N_Formal_Modular_Type_Definition,
8237 N_Formal_Ordinary_Fixed_Point_Definition,
8238 N_Formal_Package_Declaration,
8239 N_Formal_Private_Type_Definition,
8240 N_Formal_Incomplete_Type_Definition,
8241 N_Formal_Signed_Integer_Type_Definition,
8243 N_Freeze_Generic_Entity,
8244 N_Generic_Association,
8245 N_Handled_Sequence_Of_Statements,
8246 N_Index_Or_Discriminant_Constraint,
8249 N_Modular_Type_Definition,
8250 N_Number_Declaration,
8251 N_Ordinary_Fixed_Point_Definition,
8253 N_Package_Specification,
8254 N_Parameter_Association,
8255 N_Parameter_Specification,
8257 N_Protected_Definition,
8259 N_Real_Range_Specification,
8260 N_Record_Definition,
8261 N_Signed_Integer_Type_Definition,
8262 N_Single_Protected_Declaration,
8265 N_Triggering_Alternative,
8267 N_Validate_Unchecked_Conversion,
8273 for Node_Kind'Size use 8;
8274 -- The data structures in Atree assume this
8276 ----------------------------
8277 -- Node Class Definitions --
8278 ----------------------------
8280 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8281 N_Access_Function_Definition ..
8282 N_Access_Procedure_Definition;
8284 subtype N_Array_Type_Definition is Node_Kind range
8285 N_Constrained_Array_Definition ..
8286 N_Unconstrained_Array_Definition;
8288 subtype N_Binary_Op is Node_Kind range
8290 N_Op_Shift_Right_Arithmetic;
8292 subtype N_Body_Stub is Node_Kind range
8293 N_Package_Body_Stub ..
8296 subtype N_Declaration is Node_Kind range
8297 N_Component_Declaration ..
8298 N_Procedure_Specification;
8299 -- Note: this includes all constructs normally thought of as declarations
8300 -- except those which are separately grouped as later declarations.
8302 subtype N_Delay_Statement is Node_Kind range
8303 N_Delay_Relative_Statement ..
8304 N_Delay_Until_Statement;
8306 subtype N_Direct_Name is Node_Kind range
8308 N_Character_Literal;
8310 subtype N_Entity is Node_Kind range
8311 N_Defining_Character_Literal ..
8312 N_Defining_Operator_Symbol;
8314 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8315 N_Formal_Abstract_Subprogram_Declaration ..
8316 N_Formal_Concrete_Subprogram_Declaration;
8318 subtype N_Generic_Declaration is Node_Kind range
8319 N_Generic_Package_Declaration ..
8320 N_Generic_Subprogram_Declaration;
8322 subtype N_Generic_Instantiation is Node_Kind range
8323 N_Function_Instantiation ..
8324 N_Package_Instantiation;
8326 subtype N_Generic_Renaming_Declaration is Node_Kind range
8327 N_Generic_Function_Renaming_Declaration ..
8328 N_Generic_Procedure_Renaming_Declaration;
8330 subtype N_Has_Chars is Node_Kind range
8331 N_Attribute_Definition_Clause ..
8334 subtype N_Has_Entity is Node_Kind range
8336 N_Attribute_Reference;
8337 -- Nodes that have Entity fields
8338 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8339 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8341 subtype N_Has_Etype is Node_Kind range
8343 N_Subtype_Indication;
8345 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8349 subtype N_Multiplying_Operator is Node_Kind range
8353 subtype N_Later_Decl_Item is Node_Kind range
8354 N_Task_Type_Declaration ..
8355 N_Generic_Subprogram_Declaration;
8356 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8357 -- only those items which can appear as later declarative items. This also
8358 -- includes N_Implicit_Label_Declaration which is not specifically in the
8359 -- grammar but may appear as a valid later declarative items. It does NOT
8360 -- include N_Pragma which can also appear among later declarative items.
8361 -- It does however include N_Protected_Body, which is a bit peculiar, but
8362 -- harmless since this cannot appear in Ada 83 mode anyway.
8364 subtype N_Membership_Test is Node_Kind range
8368 subtype N_Numeric_Or_String_Literal is Node_Kind range
8369 N_Integer_Literal ..
8372 subtype N_Op is Node_Kind range
8376 subtype N_Op_Boolean is Node_Kind range
8379 -- Binary operators which take operands of a boolean type, and yield
8380 -- a result of a boolean type.
8382 subtype N_Op_Compare is Node_Kind range
8386 subtype N_Op_Shift is Node_Kind range
8388 N_Op_Shift_Right_Arithmetic;
8390 subtype N_Proper_Body is Node_Kind range
8394 subtype N_Push_xxx_Label is Node_Kind range
8395 N_Push_Constraint_Error_Label ..
8396 N_Push_Storage_Error_Label;
8398 subtype N_Pop_xxx_Label is Node_Kind range
8399 N_Pop_Constraint_Error_Label ..
8400 N_Pop_Storage_Error_Label;
8402 subtype N_Push_Pop_xxx_Label is Node_Kind range
8403 N_Push_Constraint_Error_Label ..
8404 N_Pop_Storage_Error_Label;
8406 subtype N_Raise_xxx_Error is Node_Kind range
8407 N_Raise_Constraint_Error ..
8408 N_Raise_Storage_Error;
8410 subtype N_Renaming_Declaration is Node_Kind range
8411 N_Exception_Renaming_Declaration ..
8412 N_Generic_Procedure_Renaming_Declaration;
8414 subtype N_Representation_Clause is Node_Kind range
8416 N_Attribute_Definition_Clause;
8418 subtype N_Short_Circuit is Node_Kind range
8422 subtype N_SCIL_Node is Node_Kind range
8423 N_SCIL_Dispatch_Table_Tag_Init ..
8424 N_SCIL_Membership_Test;
8426 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8427 N_Abort_Statement ..
8429 -- Note that this includes all statement types except for the cases of the
8430 -- N_Procedure_Call_Statement which is considered to be a subexpression
8431 -- (since overloading is possible, so it needs to go through the normal
8432 -- overloading resolution for expressions).
8434 subtype N_Subprogram_Call is Node_Kind range
8436 N_Procedure_Call_Statement;
8438 subtype N_Subprogram_Instantiation is Node_Kind range
8439 N_Function_Instantiation ..
8440 N_Procedure_Instantiation;
8442 subtype N_Has_Condition is Node_Kind range
8444 N_Terminate_Alternative;
8445 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8447 subtype N_Subexpr is Node_Kind range
8449 N_Unchecked_Type_Conversion;
8450 -- Nodes with expression fields
8452 subtype N_Subprogram_Specification is Node_Kind range
8453 N_Function_Specification ..
8454 N_Procedure_Specification;
8456 subtype N_Unary_Op is Node_Kind range
8460 subtype N_Unit_Body is Node_Kind range
8464 ---------------------------
8465 -- Node Access Functions --
8466 ---------------------------
8468 -- The following functions return the contents of the indicated field of
8469 -- the node referenced by the argument, which is a Node_Id. They provide
8470 -- logical access to fields in the node which could be accessed using the
8471 -- Atree.Unchecked_Access package, but the idea is always to use these
8472 -- higher level routines which preserve strong typing. In debug mode,
8473 -- these routines check that they are being applied to an appropriate
8474 -- node, as well as checking that the node is in range.
8476 function ABE_Is_Certain
8477 (N : Node_Id) return Boolean; -- Flag18
8479 function Abort_Present
8480 (N : Node_Id) return Boolean; -- Flag15
8482 function Abortable_Part
8483 (N : Node_Id) return Node_Id; -- Node2
8485 function Abstract_Present
8486 (N : Node_Id) return Boolean; -- Flag4
8488 function Accept_Handler_Records
8489 (N : Node_Id) return List_Id; -- List5
8491 function Accept_Statement
8492 (N : Node_Id) return Node_Id; -- Node2
8494 function Access_Definition
8495 (N : Node_Id) return Node_Id; -- Node3
8497 function Access_To_Subprogram_Definition
8498 (N : Node_Id) return Node_Id; -- Node3
8500 function Access_Types_To_Process
8501 (N : Node_Id) return Elist_Id; -- Elist2
8504 (N : Node_Id) return List_Id; -- List1
8506 function Activation_Chain_Entity
8507 (N : Node_Id) return Node_Id; -- Node3
8509 function Acts_As_Spec
8510 (N : Node_Id) return Boolean; -- Flag4
8512 function Actual_Designated_Subtype
8513 (N : Node_Id) return Node_Id; -- Node4
8515 function Address_Warning_Posted
8516 (N : Node_Id) return Boolean; -- Flag18
8518 function Aggregate_Bounds
8519 (N : Node_Id) return Node_Id; -- Node3
8521 function Aliased_Present
8522 (N : Node_Id) return Boolean; -- Flag4
8525 (N : Node_Id) return Boolean; -- Flag11
8527 function All_Present
8528 (N : Node_Id) return Boolean; -- Flag15
8530 function Alternatives
8531 (N : Node_Id) return List_Id; -- List4
8533 function Ancestor_Part
8534 (N : Node_Id) return Node_Id; -- Node3
8536 function Atomic_Sync_Required
8537 (N : Node_Id) return Boolean; -- Flag14
8539 function Array_Aggregate
8540 (N : Node_Id) return Node_Id; -- Node3
8542 function Aspect_Rep_Item
8543 (N : Node_Id) return Node_Id; -- Node2
8545 function Assignment_OK
8546 (N : Node_Id) return Boolean; -- Flag15
8548 function Associated_Node
8549 (N : Node_Id) return Node_Id; -- Node4
8551 function At_End_Proc
8552 (N : Node_Id) return Node_Id; -- Node1
8554 function Attribute_Name
8555 (N : Node_Id) return Name_Id; -- Name2
8557 function Aux_Decls_Node
8558 (N : Node_Id) return Node_Id; -- Node5
8560 function Backwards_OK
8561 (N : Node_Id) return Boolean; -- Flag6
8563 function Bad_Is_Detected
8564 (N : Node_Id) return Boolean; -- Flag15
8567 (N : Node_Id) return Boolean; -- Flag5
8569 function Body_Required
8570 (N : Node_Id) return Boolean; -- Flag13
8572 function Body_To_Inline
8573 (N : Node_Id) return Node_Id; -- Node3
8575 function Box_Present
8576 (N : Node_Id) return Boolean; -- Flag15
8578 function Char_Literal_Value
8579 (N : Node_Id) return Uint; -- Uint2
8582 (N : Node_Id) return Name_Id; -- Name1
8584 function Check_Address_Alignment
8585 (N : Node_Id) return Boolean; -- Flag11
8587 function Choice_Parameter
8588 (N : Node_Id) return Node_Id; -- Node2
8591 (N : Node_Id) return List_Id; -- List1
8593 function Class_Present
8594 (N : Node_Id) return Boolean; -- Flag6
8596 function Classifications
8597 (N : Node_Id) return Node_Id; -- Node3
8599 function Comes_From_Extended_Return_Statement
8600 (N : Node_Id) return Boolean; -- Flag18
8602 function Compile_Time_Known_Aggregate
8603 (N : Node_Id) return Boolean; -- Flag18
8605 function Component_Associations
8606 (N : Node_Id) return List_Id; -- List2
8608 function Component_Clauses
8609 (N : Node_Id) return List_Id; -- List3
8611 function Component_Definition
8612 (N : Node_Id) return Node_Id; -- Node4
8614 function Component_Items
8615 (N : Node_Id) return List_Id; -- List3
8617 function Component_List
8618 (N : Node_Id) return Node_Id; -- Node1
8620 function Component_Name
8621 (N : Node_Id) return Node_Id; -- Node1
8623 function Componentwise_Assignment
8624 (N : Node_Id) return Boolean; -- Flag14
8627 (N : Node_Id) return Node_Id; -- Node1
8629 function Condition_Actions
8630 (N : Node_Id) return List_Id; -- List3
8632 function Config_Pragmas
8633 (N : Node_Id) return List_Id; -- List4
8635 function Constant_Present
8636 (N : Node_Id) return Boolean; -- Flag17
8639 (N : Node_Id) return Node_Id; -- Node3
8641 function Constraints
8642 (N : Node_Id) return List_Id; -- List1
8644 function Context_Installed
8645 (N : Node_Id) return Boolean; -- Flag13
8647 function Context_Pending
8648 (N : Node_Id) return Boolean; -- Flag16
8650 function Context_Items
8651 (N : Node_Id) return List_Id; -- List1
8653 function Contract_Test_Cases
8654 (N : Node_Id) return Node_Id; -- Node2
8656 function Controlling_Argument
8657 (N : Node_Id) return Node_Id; -- Node1
8659 function Conversion_OK
8660 (N : Node_Id) return Boolean; -- Flag14
8662 function Convert_To_Return_False
8663 (N : Node_Id) return Boolean; -- Flag13
8665 function Corresponding_Aspect
8666 (N : Node_Id) return Node_Id; -- Node3
8668 function Corresponding_Body
8669 (N : Node_Id) return Node_Id; -- Node5
8671 function Corresponding_Formal_Spec
8672 (N : Node_Id) return Node_Id; -- Node3
8674 function Corresponding_Generic_Association
8675 (N : Node_Id) return Node_Id; -- Node5
8677 function Corresponding_Integer_Value
8678 (N : Node_Id) return Uint; -- Uint4
8680 function Corresponding_Spec
8681 (N : Node_Id) return Node_Id; -- Node5
8683 function Corresponding_Spec_Of_Stub
8684 (N : Node_Id) return Node_Id; -- Node2
8686 function Corresponding_Stub
8687 (N : Node_Id) return Node_Id; -- Node3
8689 function Dcheck_Function
8690 (N : Node_Id) return Entity_Id; -- Node5
8692 function Declarations
8693 (N : Node_Id) return List_Id; -- List2
8695 function Default_Expression
8696 (N : Node_Id) return Node_Id; -- Node5
8698 function Default_Storage_Pool
8699 (N : Node_Id) return Node_Id; -- Node3
8701 function Default_Name
8702 (N : Node_Id) return Node_Id; -- Node2
8704 function Defining_Identifier
8705 (N : Node_Id) return Entity_Id; -- Node1
8707 function Defining_Unit_Name
8708 (N : Node_Id) return Node_Id; -- Node1
8710 function Delay_Alternative
8711 (N : Node_Id) return Node_Id; -- Node4
8713 function Delay_Statement
8714 (N : Node_Id) return Node_Id; -- Node2
8716 function Delta_Expression
8717 (N : Node_Id) return Node_Id; -- Node3
8719 function Digits_Expression
8720 (N : Node_Id) return Node_Id; -- Node2
8722 function Discr_Check_Funcs_Built
8723 (N : Node_Id) return Boolean; -- Flag11
8725 function Discrete_Choices
8726 (N : Node_Id) return List_Id; -- List4
8728 function Discrete_Range
8729 (N : Node_Id) return Node_Id; -- Node4
8731 function Discrete_Subtype_Definition
8732 (N : Node_Id) return Node_Id; -- Node4
8734 function Discrete_Subtype_Definitions
8735 (N : Node_Id) return List_Id; -- List2
8737 function Discriminant_Specifications
8738 (N : Node_Id) return List_Id; -- List4
8740 function Discriminant_Type
8741 (N : Node_Id) return Node_Id; -- Node5
8743 function Do_Accessibility_Check
8744 (N : Node_Id) return Boolean; -- Flag13
8746 function Do_Discriminant_Check
8747 (N : Node_Id) return Boolean; -- Flag1
8749 function Do_Division_Check
8750 (N : Node_Id) return Boolean; -- Flag13
8752 function Do_Length_Check
8753 (N : Node_Id) return Boolean; -- Flag4
8755 function Do_Overflow_Check
8756 (N : Node_Id) return Boolean; -- Flag17
8758 function Do_Range_Check
8759 (N : Node_Id) return Boolean; -- Flag9
8761 function Do_Storage_Check
8762 (N : Node_Id) return Boolean; -- Flag17
8764 function Do_Tag_Check
8765 (N : Node_Id) return Boolean; -- Flag13
8767 function Elaborate_All_Desirable
8768 (N : Node_Id) return Boolean; -- Flag9
8770 function Elaborate_All_Present
8771 (N : Node_Id) return Boolean; -- Flag14
8773 function Elaborate_Desirable
8774 (N : Node_Id) return Boolean; -- Flag11
8776 function Elaborate_Present
8777 (N : Node_Id) return Boolean; -- Flag4
8779 function Elaboration_Boolean
8780 (N : Node_Id) return Node_Id; -- Node2
8782 function Else_Actions
8783 (N : Node_Id) return List_Id; -- List3
8785 function Else_Statements
8786 (N : Node_Id) return List_Id; -- List4
8788 function Elsif_Parts
8789 (N : Node_Id) return List_Id; -- List3
8791 function Enclosing_Variant
8792 (N : Node_Id) return Node_Id; -- Node2
8795 (N : Node_Id) return Node_Id; -- Node4
8798 (N : Node_Id) return Uint; -- Uint5
8801 (N : Node_Id) return Node_Id; -- Node4
8803 function Entity_Or_Associated_Node
8804 (N : Node_Id) return Node_Id; -- Node4
8806 function Entry_Body_Formal_Part
8807 (N : Node_Id) return Node_Id; -- Node5
8809 function Entry_Call_Alternative
8810 (N : Node_Id) return Node_Id; -- Node1
8812 function Entry_Call_Statement
8813 (N : Node_Id) return Node_Id; -- Node1
8815 function Entry_Direct_Name
8816 (N : Node_Id) return Node_Id; -- Node1
8818 function Entry_Index
8819 (N : Node_Id) return Node_Id; -- Node5
8821 function Entry_Index_Specification
8822 (N : Node_Id) return Node_Id; -- Node4
8825 (N : Node_Id) return Node_Id; -- Node5
8827 function Exception_Choices
8828 (N : Node_Id) return List_Id; -- List4
8830 function Exception_Handlers
8831 (N : Node_Id) return List_Id; -- List5
8833 function Exception_Junk
8834 (N : Node_Id) return Boolean; -- Flag8
8836 function Exception_Label
8837 (N : Node_Id) return Node_Id; -- Node5
8839 function Explicit_Actual_Parameter
8840 (N : Node_Id) return Node_Id; -- Node3
8842 function Expansion_Delayed
8843 (N : Node_Id) return Boolean; -- Flag11
8845 function Explicit_Generic_Actual_Parameter
8846 (N : Node_Id) return Node_Id; -- Node1
8849 (N : Node_Id) return Node_Id; -- Node3
8851 function Expressions
8852 (N : Node_Id) return List_Id; -- List1
8855 (N : Node_Id) return Node_Id; -- Node3
8857 function First_Inlined_Subprogram
8858 (N : Node_Id) return Entity_Id; -- Node3
8861 (N : Node_Id) return Boolean; -- Flag5
8863 function First_Named_Actual
8864 (N : Node_Id) return Node_Id; -- Node4
8866 function First_Real_Statement
8867 (N : Node_Id) return Node_Id; -- Node2
8869 function First_Subtype_Link
8870 (N : Node_Id) return Entity_Id; -- Node5
8872 function Float_Truncate
8873 (N : Node_Id) return Boolean; -- Flag11
8875 function Formal_Type_Definition
8876 (N : Node_Id) return Node_Id; -- Node3
8878 function Forwards_OK
8879 (N : Node_Id) return Boolean; -- Flag5
8881 function From_Aspect_Specification
8882 (N : Node_Id) return Boolean; -- Flag13
8884 function From_At_End
8885 (N : Node_Id) return Boolean; -- Flag4
8887 function From_At_Mod
8888 (N : Node_Id) return Boolean; -- Flag4
8890 function From_Default
8891 (N : Node_Id) return Boolean; -- Flag6
8893 function Generic_Associations
8894 (N : Node_Id) return List_Id; -- List3
8896 function Generic_Formal_Declarations
8897 (N : Node_Id) return List_Id; -- List2
8899 function Generic_Parent
8900 (N : Node_Id) return Node_Id; -- Node5
8902 function Generic_Parent_Type
8903 (N : Node_Id) return Node_Id; -- Node4
8905 function Handled_Statement_Sequence
8906 (N : Node_Id) return Node_Id; -- Node4
8908 function Handler_List_Entry
8909 (N : Node_Id) return Node_Id; -- Node2
8911 function Has_Created_Identifier
8912 (N : Node_Id) return Boolean; -- Flag15
8914 function Has_Dereference_Action
8915 (N : Node_Id) return Boolean; -- Flag13
8917 function Has_Dynamic_Length_Check
8918 (N : Node_Id) return Boolean; -- Flag10
8920 function Has_Dynamic_Range_Check
8921 (N : Node_Id) return Boolean; -- Flag12
8923 function Has_Init_Expression
8924 (N : Node_Id) return Boolean; -- Flag14
8926 function Has_Local_Raise
8927 (N : Node_Id) return Boolean; -- Flag8
8929 function Has_No_Elaboration_Code
8930 (N : Node_Id) return Boolean; -- Flag17
8932 function Has_Pragma_Suppress_All
8933 (N : Node_Id) return Boolean; -- Flag14
8935 function Has_Private_View
8936 (N : Node_Id) return Boolean; -- Flag11
8938 function Has_Relative_Deadline_Pragma
8939 (N : Node_Id) return Boolean; -- Flag9
8941 function Has_Self_Reference
8942 (N : Node_Id) return Boolean; -- Flag13
8944 function Has_SP_Choice
8945 (N : Node_Id) return Boolean; -- Flag15
8947 function Has_Storage_Size_Pragma
8948 (N : Node_Id) return Boolean; -- Flag5
8950 function Has_Wide_Character
8951 (N : Node_Id) return Boolean; -- Flag11
8953 function Has_Wide_Wide_Character
8954 (N : Node_Id) return Boolean; -- Flag13
8956 function Header_Size_Added
8957 (N : Node_Id) return Boolean; -- Flag11
8959 function Hidden_By_Use_Clause
8960 (N : Node_Id) return Elist_Id; -- Elist4
8963 (N : Node_Id) return Node_Id; -- Node2
8966 (N : Node_Id) return Node_Id; -- Node1
8968 function Interface_List
8969 (N : Node_Id) return List_Id; -- List2
8971 function Interface_Present
8972 (N : Node_Id) return Boolean; -- Flag16
8974 function Implicit_With
8975 (N : Node_Id) return Boolean; -- Flag16
8977 function Implicit_With_From_Instantiation
8978 (N : Node_Id) return Boolean; -- Flag12
8980 function Import_Interface_Present
8981 (N : Node_Id) return Boolean; -- Flag16
8984 (N : Node_Id) return Boolean; -- Flag15
8986 function Includes_Infinities
8987 (N : Node_Id) return Boolean; -- Flag11
8989 function Inherited_Discriminant
8990 (N : Node_Id) return Boolean; -- Flag13
8992 function Instance_Spec
8993 (N : Node_Id) return Node_Id; -- Node5
8996 (N : Node_Id) return Uint; -- Uint3
8998 function Is_Accessibility_Actual
8999 (N : Node_Id) return Boolean; -- Flag13
9001 function Is_Asynchronous_Call_Block
9002 (N : Node_Id) return Boolean; -- Flag7
9004 function Is_Boolean_Aspect
9005 (N : Node_Id) return Boolean; -- Flag16
9008 (N : Node_Id) return Boolean; -- Flag11
9010 function Is_Component_Left_Opnd
9011 (N : Node_Id) return Boolean; -- Flag13
9013 function Is_Component_Right_Opnd
9014 (N : Node_Id) return Boolean; -- Flag14
9016 function Is_Controlling_Actual
9017 (N : Node_Id) return Boolean; -- Flag16
9019 function Is_Delayed_Aspect
9020 (N : Node_Id) return Boolean; -- Flag14
9022 function Is_Disabled
9023 (N : Node_Id) return Boolean; -- Flag15
9025 function Is_Dynamic_Coextension
9026 (N : Node_Id) return Boolean; -- Flag18
9029 (N : Node_Id) return Boolean; -- Flag13
9031 function Is_Entry_Barrier_Function
9032 (N : Node_Id) return Boolean; -- Flag8
9034 function Is_Expanded_Build_In_Place_Call
9035 (N : Node_Id) return Boolean; -- Flag11
9037 function Is_Finalization_Wrapper
9038 (N : Node_Id) return Boolean; -- Flag9
9040 function Is_Folded_In_Parser
9041 (N : Node_Id) return Boolean; -- Flag4
9044 (N : Node_Id) return Boolean; -- Flag9
9046 function Is_In_Discriminant_Check
9047 (N : Node_Id) return Boolean; -- Flag11
9049 function Is_Machine_Number
9050 (N : Node_Id) return Boolean; -- Flag11
9052 function Is_Null_Loop
9053 (N : Node_Id) return Boolean; -- Flag16
9055 function Is_Overloaded
9056 (N : Node_Id) return Boolean; -- Flag5
9058 function Is_Power_Of_2_For_Shift
9059 (N : Node_Id) return Boolean; -- Flag13
9061 function Is_Prefixed_Call
9062 (N : Node_Id) return Boolean; -- Flag17
9064 function Is_Protected_Subprogram_Body
9065 (N : Node_Id) return Boolean; -- Flag7
9067 function Is_Static_Coextension
9068 (N : Node_Id) return Boolean; -- Flag14
9070 function Is_Static_Expression
9071 (N : Node_Id) return Boolean; -- Flag6
9073 function Is_Subprogram_Descriptor
9074 (N : Node_Id) return Boolean; -- Flag16
9076 function Is_Task_Allocation_Block
9077 (N : Node_Id) return Boolean; -- Flag6
9079 function Is_Task_Master
9080 (N : Node_Id) return Boolean; -- Flag5
9082 function Iteration_Scheme
9083 (N : Node_Id) return Node_Id; -- Node2
9085 function Iterator_Specification
9086 (N : Node_Id) return Node_Id; -- Node2
9089 (N : Node_Id) return Entity_Id; -- Node1
9091 function Kill_Range_Check
9092 (N : Node_Id) return Boolean; -- Flag11
9094 function Label_Construct
9095 (N : Node_Id) return Node_Id; -- Node2
9098 (N : Node_Id) return Node_Id; -- Node2
9101 (N : Node_Id) return Node_Id; -- Node4
9104 (N : Node_Id) return Boolean; -- Flag6
9106 function Library_Unit
9107 (N : Node_Id) return Node_Id; -- Node4
9109 function Limited_View_Installed
9110 (N : Node_Id) return Boolean; -- Flag18
9112 function Limited_Present
9113 (N : Node_Id) return Boolean; -- Flag17
9116 (N : Node_Id) return List_Id; -- List1
9118 function Local_Raise_Not_OK
9119 (N : Node_Id) return Boolean; -- Flag7
9121 function Local_Raise_Statements
9122 (N : Node_Id) return Elist_Id; -- Elist1
9124 function Loop_Actions
9125 (N : Node_Id) return List_Id; -- List2
9127 function Loop_Parameter_Specification
9128 (N : Node_Id) return Node_Id; -- Node4
9131 (N : Node_Id) return Node_Id; -- Node1
9134 (N : Node_Id) return Node_Id; -- Node2
9137 (N : Node_Id) return Boolean; -- Flag5
9139 function Must_Be_Byte_Aligned
9140 (N : Node_Id) return Boolean; -- Flag14
9142 function Must_Not_Freeze
9143 (N : Node_Id) return Boolean; -- Flag8
9145 function Must_Not_Override
9146 (N : Node_Id) return Boolean; -- Flag15
9148 function Must_Override
9149 (N : Node_Id) return Boolean; -- Flag14
9152 (N : Node_Id) return Node_Id; -- Node2
9155 (N : Node_Id) return List_Id; -- List2
9157 function Next_Entity
9158 (N : Node_Id) return Node_Id; -- Node2
9160 function Next_Exit_Statement
9161 (N : Node_Id) return Node_Id; -- Node3
9163 function Next_Implicit_With
9164 (N : Node_Id) return Node_Id; -- Node3
9166 function Next_Named_Actual
9167 (N : Node_Id) return Node_Id; -- Node4
9169 function Next_Pragma
9170 (N : Node_Id) return Node_Id; -- Node1
9172 function Next_Rep_Item
9173 (N : Node_Id) return Node_Id; -- Node5
9175 function Next_Use_Clause
9176 (N : Node_Id) return Node_Id; -- Node3
9178 function No_Ctrl_Actions
9179 (N : Node_Id) return Boolean; -- Flag7
9181 function No_Elaboration_Check
9182 (N : Node_Id) return Boolean; -- Flag14
9184 function No_Entities_Ref_In_Spec
9185 (N : Node_Id) return Boolean; -- Flag8
9187 function No_Initialization
9188 (N : Node_Id) return Boolean; -- Flag13
9190 function No_Minimize_Eliminate
9191 (N : Node_Id) return Boolean; -- Flag17
9193 function No_Truncation
9194 (N : Node_Id) return Boolean; -- Flag17
9196 function Null_Present
9197 (N : Node_Id) return Boolean; -- Flag13
9199 function Null_Exclusion_Present
9200 (N : Node_Id) return Boolean; -- Flag11
9202 function Null_Exclusion_In_Return_Present
9203 (N : Node_Id) return Boolean; -- Flag14
9205 function Null_Record_Present
9206 (N : Node_Id) return Boolean; -- Flag17
9208 function Object_Definition
9209 (N : Node_Id) return Node_Id; -- Node4
9212 (N : Node_Id) return Boolean; -- Flag16
9214 function Original_Discriminant
9215 (N : Node_Id) return Node_Id; -- Node2
9217 function Original_Entity
9218 (N : Node_Id) return Entity_Id; -- Node2
9220 function Others_Discrete_Choices
9221 (N : Node_Id) return List_Id; -- List1
9223 function Out_Present
9224 (N : Node_Id) return Boolean; -- Flag17
9226 function Parameter_Associations
9227 (N : Node_Id) return List_Id; -- List3
9229 function Parameter_List_Truncated
9230 (N : Node_Id) return Boolean; -- Flag17
9232 function Parameter_Specifications
9233 (N : Node_Id) return List_Id; -- List3
9235 function Parameter_Type
9236 (N : Node_Id) return Node_Id; -- Node2
9238 function Parent_Spec
9239 (N : Node_Id) return Node_Id; -- Node4
9242 (N : Node_Id) return Node_Id; -- Node2
9244 function Pragma_Argument_Associations
9245 (N : Node_Id) return List_Id; -- List2
9247 function Pragma_Identifier
9248 (N : Node_Id) return Node_Id; -- Node4
9250 function Pragmas_After
9251 (N : Node_Id) return List_Id; -- List5
9253 function Pragmas_Before
9254 (N : Node_Id) return List_Id; -- List4
9256 function Pre_Post_Conditions
9257 (N : Node_Id) return Node_Id; -- Node1
9260 (N : Node_Id) return Node_Id; -- Node3
9262 function Premature_Use
9263 (N : Node_Id) return Node_Id; -- Node5
9265 function Present_Expr
9266 (N : Node_Id) return Uint; -- Uint3
9269 (N : Node_Id) return Boolean; -- Flag6
9271 function Print_In_Hex
9272 (N : Node_Id) return Boolean; -- Flag13
9274 function Private_Declarations
9275 (N : Node_Id) return List_Id; -- List3
9277 function Private_Present
9278 (N : Node_Id) return Boolean; -- Flag15
9280 function Procedure_To_Call
9281 (N : Node_Id) return Node_Id; -- Node2
9283 function Proper_Body
9284 (N : Node_Id) return Node_Id; -- Node1
9286 function Protected_Definition
9287 (N : Node_Id) return Node_Id; -- Node3
9289 function Protected_Present
9290 (N : Node_Id) return Boolean; -- Flag6
9292 function Raises_Constraint_Error
9293 (N : Node_Id) return Boolean; -- Flag7
9295 function Range_Constraint
9296 (N : Node_Id) return Node_Id; -- Node4
9298 function Range_Expression
9299 (N : Node_Id) return Node_Id; -- Node4
9301 function Real_Range_Specification
9302 (N : Node_Id) return Node_Id; -- Node4
9305 (N : Node_Id) return Ureal; -- Ureal3
9308 (N : Node_Id) return Uint; -- Uint3
9310 function Record_Extension_Part
9311 (N : Node_Id) return Node_Id; -- Node3
9313 function Redundant_Use
9314 (N : Node_Id) return Boolean; -- Flag13
9316 function Renaming_Exception
9317 (N : Node_Id) return Node_Id; -- Node2
9319 function Result_Definition
9320 (N : Node_Id) return Node_Id; -- Node4
9322 function Return_Object_Declarations
9323 (N : Node_Id) return List_Id; -- List3
9325 function Return_Statement_Entity
9326 (N : Node_Id) return Node_Id; -- Node5
9328 function Reverse_Present
9329 (N : Node_Id) return Boolean; -- Flag15
9332 (N : Node_Id) return Node_Id; -- Node3
9334 function Rounded_Result
9335 (N : Node_Id) return Boolean; -- Flag18
9337 function SCIL_Controlling_Tag
9338 (N : Node_Id) return Node_Id; -- Node5
9340 function SCIL_Entity
9341 (N : Node_Id) return Node_Id; -- Node4
9343 function SCIL_Tag_Value
9344 (N : Node_Id) return Node_Id; -- Node5
9346 function SCIL_Target_Prim
9347 (N : Node_Id) return Node_Id; -- Node2
9350 (N : Node_Id) return Node_Id; -- Node3
9352 function Select_Alternatives
9353 (N : Node_Id) return List_Id; -- List1
9355 function Selector_Name
9356 (N : Node_Id) return Node_Id; -- Node2
9358 function Selector_Names
9359 (N : Node_Id) return List_Id; -- List1
9361 function Shift_Count_OK
9362 (N : Node_Id) return Boolean; -- Flag4
9364 function Source_Type
9365 (N : Node_Id) return Entity_Id; -- Node1
9367 function Specification
9368 (N : Node_Id) return Node_Id; -- Node1
9371 (N : Node_Id) return Boolean; -- Flag17
9374 (N : Node_Id) return List_Id; -- List3
9376 function Storage_Pool
9377 (N : Node_Id) return Node_Id; -- Node1
9379 function Subpool_Handle_Name
9380 (N : Node_Id) return Node_Id; -- Node4
9383 (N : Node_Id) return String_Id; -- Str3
9385 function Subtype_Indication
9386 (N : Node_Id) return Node_Id; -- Node5
9388 function Subtype_Mark
9389 (N : Node_Id) return Node_Id; -- Node4
9391 function Subtype_Marks
9392 (N : Node_Id) return List_Id; -- List2
9394 function Suppress_Assignment_Checks
9395 (N : Node_Id) return Boolean; -- Flag18
9397 function Suppress_Loop_Warnings
9398 (N : Node_Id) return Boolean; -- Flag17
9400 function Synchronized_Present
9401 (N : Node_Id) return Boolean; -- Flag7
9403 function Tagged_Present
9404 (N : Node_Id) return Boolean; -- Flag15
9406 function Target_Type
9407 (N : Node_Id) return Entity_Id; -- Node2
9409 function Task_Definition
9410 (N : Node_Id) return Node_Id; -- Node3
9412 function Task_Present
9413 (N : Node_Id) return Boolean; -- Flag5
9415 function Then_Actions
9416 (N : Node_Id) return List_Id; -- List2
9418 function Then_Statements
9419 (N : Node_Id) return List_Id; -- List2
9421 function Treat_Fixed_As_Integer
9422 (N : Node_Id) return Boolean; -- Flag14
9424 function Triggering_Alternative
9425 (N : Node_Id) return Node_Id; -- Node1
9427 function Triggering_Statement
9428 (N : Node_Id) return Node_Id; -- Node1
9431 (N : Node_Id) return Elist_Id; -- Elist3
9433 function Type_Definition
9434 (N : Node_Id) return Node_Id; -- Node3
9437 (N : Node_Id) return Node_Id; -- Node2
9439 function Unknown_Discriminants_Present
9440 (N : Node_Id) return Boolean; -- Flag13
9442 function Unreferenced_In_Spec
9443 (N : Node_Id) return Boolean; -- Flag7
9445 function Variant_Part
9446 (N : Node_Id) return Node_Id; -- Node4
9449 (N : Node_Id) return List_Id; -- List1
9451 function Visible_Declarations
9452 (N : Node_Id) return List_Id; -- List2
9454 function Used_Operations
9455 (N : Node_Id) return Elist_Id; -- Elist5
9457 function Was_Originally_Stub
9458 (N : Node_Id) return Boolean; -- Flag13
9460 function Withed_Body
9461 (N : Node_Id) return Node_Id; -- Node1
9463 -- End functions (note used by xsinfo utility program to end processing)
9465 ----------------------------
9466 -- Node Update Procedures --
9467 ----------------------------
9469 -- These are the corresponding node update routines, which again provide
9470 -- a high level logical access with type checking. In addition to setting
9471 -- the indicated field of the node N to the given Val, in the case of
9472 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9473 -- point back to node N. This automates the setting of the parent pointer.
9475 procedure Set_ABE_Is_Certain
9476 (N : Node_Id; Val : Boolean := True); -- Flag18
9478 procedure Set_Abort_Present
9479 (N : Node_Id; Val : Boolean := True); -- Flag15
9481 procedure Set_Abortable_Part
9482 (N : Node_Id; Val : Node_Id); -- Node2
9484 procedure Set_Abstract_Present
9485 (N : Node_Id; Val : Boolean := True); -- Flag4
9487 procedure Set_Accept_Handler_Records
9488 (N : Node_Id; Val : List_Id); -- List5
9490 procedure Set_Accept_Statement
9491 (N : Node_Id; Val : Node_Id); -- Node2
9493 procedure Set_Access_Definition
9494 (N : Node_Id; Val : Node_Id); -- Node3
9496 procedure Set_Access_To_Subprogram_Definition
9497 (N : Node_Id; Val : Node_Id); -- Node3
9499 procedure Set_Access_Types_To_Process
9500 (N : Node_Id; Val : Elist_Id); -- Elist2
9502 procedure Set_Actions
9503 (N : Node_Id; Val : List_Id); -- List1
9505 procedure Set_Activation_Chain_Entity
9506 (N : Node_Id; Val : Node_Id); -- Node3
9508 procedure Set_Acts_As_Spec
9509 (N : Node_Id; Val : Boolean := True); -- Flag4
9511 procedure Set_Actual_Designated_Subtype
9512 (N : Node_Id; Val : Node_Id); -- Node4
9514 procedure Set_Address_Warning_Posted
9515 (N : Node_Id; Val : Boolean := True); -- Flag18
9517 procedure Set_Aggregate_Bounds
9518 (N : Node_Id; Val : Node_Id); -- Node3
9520 procedure Set_Aliased_Present
9521 (N : Node_Id; Val : Boolean := True); -- Flag4
9523 procedure Set_All_Others
9524 (N : Node_Id; Val : Boolean := True); -- Flag11
9526 procedure Set_All_Present
9527 (N : Node_Id; Val : Boolean := True); -- Flag15
9529 procedure Set_Alternatives
9530 (N : Node_Id; Val : List_Id); -- List4
9532 procedure Set_Ancestor_Part
9533 (N : Node_Id; Val : Node_Id); -- Node3
9535 procedure Set_Atomic_Sync_Required
9536 (N : Node_Id; Val : Boolean := True); -- Flag14
9538 procedure Set_Array_Aggregate
9539 (N : Node_Id; Val : Node_Id); -- Node3
9541 procedure Set_Aspect_Rep_Item
9542 (N : Node_Id; Val : Node_Id); -- Node2
9544 procedure Set_Assignment_OK
9545 (N : Node_Id; Val : Boolean := True); -- Flag15
9547 procedure Set_Associated_Node
9548 (N : Node_Id; Val : Node_Id); -- Node4
9550 procedure Set_Attribute_Name
9551 (N : Node_Id; Val : Name_Id); -- Name2
9553 procedure Set_At_End_Proc
9554 (N : Node_Id; Val : Node_Id); -- Node1
9556 procedure Set_Aux_Decls_Node
9557 (N : Node_Id; Val : Node_Id); -- Node5
9559 procedure Set_Backwards_OK
9560 (N : Node_Id; Val : Boolean := True); -- Flag6
9562 procedure Set_Bad_Is_Detected
9563 (N : Node_Id; Val : Boolean := True); -- Flag15
9565 procedure Set_Body_Required
9566 (N : Node_Id; Val : Boolean := True); -- Flag13
9568 procedure Set_Body_To_Inline
9569 (N : Node_Id; Val : Node_Id); -- Node3
9571 procedure Set_Box_Present
9572 (N : Node_Id; Val : Boolean := True); -- Flag15
9574 procedure Set_By_Ref
9575 (N : Node_Id; Val : Boolean := True); -- Flag5
9577 procedure Set_Char_Literal_Value
9578 (N : Node_Id; Val : Uint); -- Uint2
9581 (N : Node_Id; Val : Name_Id); -- Name1
9583 procedure Set_Check_Address_Alignment
9584 (N : Node_Id; Val : Boolean := True); -- Flag11
9586 procedure Set_Choice_Parameter
9587 (N : Node_Id; Val : Node_Id); -- Node2
9589 procedure Set_Choices
9590 (N : Node_Id; Val : List_Id); -- List1
9592 procedure Set_Class_Present
9593 (N : Node_Id; Val : Boolean := True); -- Flag6
9595 procedure Set_Classifications
9596 (N : Node_Id; Val : Node_Id); -- Node3
9598 procedure Set_Comes_From_Extended_Return_Statement
9599 (N : Node_Id; Val : Boolean := True); -- Flag18
9601 procedure Set_Compile_Time_Known_Aggregate
9602 (N : Node_Id; Val : Boolean := True); -- Flag18
9604 procedure Set_Component_Associations
9605 (N : Node_Id; Val : List_Id); -- List2
9607 procedure Set_Component_Clauses
9608 (N : Node_Id; Val : List_Id); -- List3
9610 procedure Set_Component_Definition
9611 (N : Node_Id; Val : Node_Id); -- Node4
9613 procedure Set_Component_Items
9614 (N : Node_Id; Val : List_Id); -- List3
9616 procedure Set_Component_List
9617 (N : Node_Id; Val : Node_Id); -- Node1
9619 procedure Set_Component_Name
9620 (N : Node_Id; Val : Node_Id); -- Node1
9622 procedure Set_Componentwise_Assignment
9623 (N : Node_Id; Val : Boolean := True); -- Flag14
9625 procedure Set_Condition
9626 (N : Node_Id; Val : Node_Id); -- Node1
9628 procedure Set_Condition_Actions
9629 (N : Node_Id; Val : List_Id); -- List3
9631 procedure Set_Config_Pragmas
9632 (N : Node_Id; Val : List_Id); -- List4
9634 procedure Set_Constant_Present
9635 (N : Node_Id; Val : Boolean := True); -- Flag17
9637 procedure Set_Constraint
9638 (N : Node_Id; Val : Node_Id); -- Node3
9640 procedure Set_Constraints
9641 (N : Node_Id; Val : List_Id); -- List1
9643 procedure Set_Context_Installed
9644 (N : Node_Id; Val : Boolean := True); -- Flag13
9646 procedure Set_Context_Items
9647 (N : Node_Id; Val : List_Id); -- List1
9649 procedure Set_Context_Pending
9650 (N : Node_Id; Val : Boolean := True); -- Flag16
9652 procedure Set_Contract_Test_Cases
9653 (N : Node_Id; Val : Node_Id); -- Node2
9655 procedure Set_Controlling_Argument
9656 (N : Node_Id; Val : Node_Id); -- Node1
9658 procedure Set_Conversion_OK
9659 (N : Node_Id; Val : Boolean := True); -- Flag14
9661 procedure Set_Convert_To_Return_False
9662 (N : Node_Id; Val : Boolean := True); -- Flag13
9664 procedure Set_Corresponding_Aspect
9665 (N : Node_Id; Val : Node_Id); -- Node3
9667 procedure Set_Corresponding_Body
9668 (N : Node_Id; Val : Node_Id); -- Node5
9670 procedure Set_Corresponding_Formal_Spec
9671 (N : Node_Id; Val : Node_Id); -- Node3
9673 procedure Set_Corresponding_Generic_Association
9674 (N : Node_Id; Val : Node_Id); -- Node5
9676 procedure Set_Corresponding_Integer_Value
9677 (N : Node_Id; Val : Uint); -- Uint4
9679 procedure Set_Corresponding_Spec
9680 (N : Node_Id; Val : Node_Id); -- Node5
9682 procedure Set_Corresponding_Spec_Of_Stub
9683 (N : Node_Id; Val : Node_Id); -- Node2
9685 procedure Set_Corresponding_Stub
9686 (N : Node_Id; Val : Node_Id); -- Node3
9688 procedure Set_Dcheck_Function
9689 (N : Node_Id; Val : Entity_Id); -- Node5
9691 procedure Set_Declarations
9692 (N : Node_Id; Val : List_Id); -- List2
9694 procedure Set_Default_Expression
9695 (N : Node_Id; Val : Node_Id); -- Node5
9697 procedure Set_Default_Storage_Pool
9698 (N : Node_Id; Val : Node_Id); -- Node3
9700 procedure Set_Default_Name
9701 (N : Node_Id; Val : Node_Id); -- Node2
9703 procedure Set_Defining_Identifier
9704 (N : Node_Id; Val : Entity_Id); -- Node1
9706 procedure Set_Defining_Unit_Name
9707 (N : Node_Id; Val : Node_Id); -- Node1
9709 procedure Set_Delay_Alternative
9710 (N : Node_Id; Val : Node_Id); -- Node4
9712 procedure Set_Delay_Statement
9713 (N : Node_Id; Val : Node_Id); -- Node2
9715 procedure Set_Delta_Expression
9716 (N : Node_Id; Val : Node_Id); -- Node3
9718 procedure Set_Digits_Expression
9719 (N : Node_Id; Val : Node_Id); -- Node2
9721 procedure Set_Discr_Check_Funcs_Built
9722 (N : Node_Id; Val : Boolean := True); -- Flag11
9724 procedure Set_Discrete_Choices
9725 (N : Node_Id; Val : List_Id); -- List4
9727 procedure Set_Discrete_Range
9728 (N : Node_Id; Val : Node_Id); -- Node4
9730 procedure Set_Discrete_Subtype_Definition
9731 (N : Node_Id; Val : Node_Id); -- Node4
9733 procedure Set_Discrete_Subtype_Definitions
9734 (N : Node_Id; Val : List_Id); -- List2
9736 procedure Set_Discriminant_Specifications
9737 (N : Node_Id; Val : List_Id); -- List4
9739 procedure Set_Discriminant_Type
9740 (N : Node_Id; Val : Node_Id); -- Node5
9742 procedure Set_Do_Accessibility_Check
9743 (N : Node_Id; Val : Boolean := True); -- Flag13
9745 procedure Set_Do_Discriminant_Check
9746 (N : Node_Id; Val : Boolean := True); -- Flag1
9748 procedure Set_Do_Division_Check
9749 (N : Node_Id; Val : Boolean := True); -- Flag13
9751 procedure Set_Do_Length_Check
9752 (N : Node_Id; Val : Boolean := True); -- Flag4
9754 procedure Set_Do_Overflow_Check
9755 (N : Node_Id; Val : Boolean := True); -- Flag17
9757 procedure Set_Do_Range_Check
9758 (N : Node_Id; Val : Boolean := True); -- Flag9
9760 procedure Set_Do_Storage_Check
9761 (N : Node_Id; Val : Boolean := True); -- Flag17
9763 procedure Set_Do_Tag_Check
9764 (N : Node_Id; Val : Boolean := True); -- Flag13
9766 procedure Set_Elaborate_All_Desirable
9767 (N : Node_Id; Val : Boolean := True); -- Flag9
9769 procedure Set_Elaborate_All_Present
9770 (N : Node_Id; Val : Boolean := True); -- Flag14
9772 procedure Set_Elaborate_Desirable
9773 (N : Node_Id; Val : Boolean := True); -- Flag11
9775 procedure Set_Elaborate_Present
9776 (N : Node_Id; Val : Boolean := True); -- Flag4
9778 procedure Set_Elaboration_Boolean
9779 (N : Node_Id; Val : Node_Id); -- Node2
9781 procedure Set_Else_Actions
9782 (N : Node_Id; Val : List_Id); -- List3
9784 procedure Set_Else_Statements
9785 (N : Node_Id; Val : List_Id); -- List4
9787 procedure Set_Elsif_Parts
9788 (N : Node_Id; Val : List_Id); -- List3
9790 procedure Set_Enclosing_Variant
9791 (N : Node_Id; Val : Node_Id); -- Node2
9793 procedure Set_End_Label
9794 (N : Node_Id; Val : Node_Id); -- Node4
9796 procedure Set_End_Span
9797 (N : Node_Id; Val : Uint); -- Uint5
9799 procedure Set_Entity
9800 (N : Node_Id; Val : Node_Id); -- Node4
9802 procedure Set_Entry_Body_Formal_Part
9803 (N : Node_Id; Val : Node_Id); -- Node5
9805 procedure Set_Entry_Call_Alternative
9806 (N : Node_Id; Val : Node_Id); -- Node1
9808 procedure Set_Entry_Call_Statement
9809 (N : Node_Id; Val : Node_Id); -- Node1
9811 procedure Set_Entry_Direct_Name
9812 (N : Node_Id; Val : Node_Id); -- Node1
9814 procedure Set_Entry_Index
9815 (N : Node_Id; Val : Node_Id); -- Node5
9817 procedure Set_Entry_Index_Specification
9818 (N : Node_Id; Val : Node_Id); -- Node4
9821 (N : Node_Id; Val : Node_Id); -- Node5
9823 procedure Set_Exception_Choices
9824 (N : Node_Id; Val : List_Id); -- List4
9826 procedure Set_Exception_Handlers
9827 (N : Node_Id; Val : List_Id); -- List5
9829 procedure Set_Exception_Junk
9830 (N : Node_Id; Val : Boolean := True); -- Flag8
9832 procedure Set_Exception_Label
9833 (N : Node_Id; Val : Node_Id); -- Node5
9835 procedure Set_Expansion_Delayed
9836 (N : Node_Id; Val : Boolean := True); -- Flag11
9838 procedure Set_Explicit_Actual_Parameter
9839 (N : Node_Id; Val : Node_Id); -- Node3
9841 procedure Set_Explicit_Generic_Actual_Parameter
9842 (N : Node_Id; Val : Node_Id); -- Node1
9844 procedure Set_Expression
9845 (N : Node_Id; Val : Node_Id); -- Node3
9847 procedure Set_Expressions
9848 (N : Node_Id; Val : List_Id); -- List1
9850 procedure Set_First_Bit
9851 (N : Node_Id; Val : Node_Id); -- Node3
9853 procedure Set_First_Inlined_Subprogram
9854 (N : Node_Id; Val : Entity_Id); -- Node3
9856 procedure Set_First_Name
9857 (N : Node_Id; Val : Boolean := True); -- Flag5
9859 procedure Set_First_Named_Actual
9860 (N : Node_Id; Val : Node_Id); -- Node4
9862 procedure Set_First_Real_Statement
9863 (N : Node_Id; Val : Node_Id); -- Node2
9865 procedure Set_First_Subtype_Link
9866 (N : Node_Id; Val : Entity_Id); -- Node5
9868 procedure Set_Float_Truncate
9869 (N : Node_Id; Val : Boolean := True); -- Flag11
9871 procedure Set_Formal_Type_Definition
9872 (N : Node_Id; Val : Node_Id); -- Node3
9874 procedure Set_Forwards_OK
9875 (N : Node_Id; Val : Boolean := True); -- Flag5
9877 procedure Set_From_At_Mod
9878 (N : Node_Id; Val : Boolean := True); -- Flag4
9880 procedure Set_From_Aspect_Specification
9881 (N : Node_Id; Val : Boolean := True); -- Flag13
9883 procedure Set_From_At_End
9884 (N : Node_Id; Val : Boolean := True); -- Flag4
9886 procedure Set_From_Default
9887 (N : Node_Id; Val : Boolean := True); -- Flag6
9889 procedure Set_Generic_Associations
9890 (N : Node_Id; Val : List_Id); -- List3
9892 procedure Set_Generic_Formal_Declarations
9893 (N : Node_Id; Val : List_Id); -- List2
9895 procedure Set_Generic_Parent
9896 (N : Node_Id; Val : Node_Id); -- Node5
9898 procedure Set_Generic_Parent_Type
9899 (N : Node_Id; Val : Node_Id); -- Node4
9901 procedure Set_Handled_Statement_Sequence
9902 (N : Node_Id; Val : Node_Id); -- Node4
9904 procedure Set_Handler_List_Entry
9905 (N : Node_Id; Val : Node_Id); -- Node2
9907 procedure Set_Has_Created_Identifier
9908 (N : Node_Id; Val : Boolean := True); -- Flag15
9910 procedure Set_Has_Dereference_Action
9911 (N : Node_Id; Val : Boolean := True); -- Flag13
9913 procedure Set_Has_Dynamic_Length_Check
9914 (N : Node_Id; Val : Boolean := True); -- Flag10
9916 procedure Set_Has_Dynamic_Range_Check
9917 (N : Node_Id; Val : Boolean := True); -- Flag12
9919 procedure Set_Has_Init_Expression
9920 (N : Node_Id; Val : Boolean := True); -- Flag14
9922 procedure Set_Has_Local_Raise
9923 (N : Node_Id; Val : Boolean := True); -- Flag8
9925 procedure Set_Has_No_Elaboration_Code
9926 (N : Node_Id; Val : Boolean := True); -- Flag17
9928 procedure Set_Has_Pragma_Suppress_All
9929 (N : Node_Id; Val : Boolean := True); -- Flag14
9931 procedure Set_Has_Private_View
9932 (N : Node_Id; Val : Boolean := True); -- Flag11
9934 procedure Set_Has_Relative_Deadline_Pragma
9935 (N : Node_Id; Val : Boolean := True); -- Flag9
9937 procedure Set_Has_Self_Reference
9938 (N : Node_Id; Val : Boolean := True); -- Flag13
9940 procedure Set_Has_SP_Choice
9941 (N : Node_Id; Val : Boolean := True); -- Flag15
9943 procedure Set_Has_Storage_Size_Pragma
9944 (N : Node_Id; Val : Boolean := True); -- Flag5
9946 procedure Set_Has_Wide_Character
9947 (N : Node_Id; Val : Boolean := True); -- Flag11
9949 procedure Set_Has_Wide_Wide_Character
9950 (N : Node_Id; Val : Boolean := True); -- Flag13
9952 procedure Set_Header_Size_Added
9953 (N : Node_Id; Val : Boolean := True); -- Flag11
9955 procedure Set_Hidden_By_Use_Clause
9956 (N : Node_Id; Val : Elist_Id); -- Elist4
9958 procedure Set_High_Bound
9959 (N : Node_Id; Val : Node_Id); -- Node2
9961 procedure Set_Identifier
9962 (N : Node_Id; Val : Node_Id); -- Node1
9964 procedure Set_Interface_List
9965 (N : Node_Id; Val : List_Id); -- List2
9967 procedure Set_Interface_Present
9968 (N : Node_Id; Val : Boolean := True); -- Flag16
9970 procedure Set_Implicit_With
9971 (N : Node_Id; Val : Boolean := True); -- Flag16
9973 procedure Set_Implicit_With_From_Instantiation
9974 (N : Node_Id; Val : Boolean := True); -- Flag12
9976 procedure Set_Import_Interface_Present
9977 (N : Node_Id; Val : Boolean := True); -- Flag16
9979 procedure Set_In_Present
9980 (N : Node_Id; Val : Boolean := True); -- Flag15
9982 procedure Set_Includes_Infinities
9983 (N : Node_Id; Val : Boolean := True); -- Flag11
9985 procedure Set_Inherited_Discriminant
9986 (N : Node_Id; Val : Boolean := True); -- Flag13
9988 procedure Set_Instance_Spec
9989 (N : Node_Id; Val : Node_Id); -- Node5
9991 procedure Set_Intval
9992 (N : Node_Id; Val : Uint); -- Uint3
9994 procedure Set_Is_Accessibility_Actual
9995 (N : Node_Id; Val : Boolean := True); -- Flag13
9997 procedure Set_Is_Asynchronous_Call_Block
9998 (N : Node_Id; Val : Boolean := True); -- Flag7
10000 procedure Set_Is_Boolean_Aspect
10001 (N : Node_Id; Val : Boolean := True); -- Flag16
10003 procedure Set_Is_Checked
10004 (N : Node_Id; Val : Boolean := True); -- Flag11
10006 procedure Set_Is_Component_Left_Opnd
10007 (N : Node_Id; Val : Boolean := True); -- Flag13
10009 procedure Set_Is_Component_Right_Opnd
10010 (N : Node_Id; Val : Boolean := True); -- Flag14
10012 procedure Set_Is_Controlling_Actual
10013 (N : Node_Id; Val : Boolean := True); -- Flag16
10015 procedure Set_Is_Delayed_Aspect
10016 (N : Node_Id; Val : Boolean := True); -- Flag14
10018 procedure Set_Is_Disabled
10019 (N : Node_Id; Val : Boolean := True); -- Flag15
10021 procedure Set_Is_Ignored
10022 (N : Node_Id; Val : Boolean := True); -- Flag9
10024 procedure Set_Is_Dynamic_Coextension
10025 (N : Node_Id; Val : Boolean := True); -- Flag18
10027 procedure Set_Is_Elsif
10028 (N : Node_Id; Val : Boolean := True); -- Flag13
10030 procedure Set_Is_Entry_Barrier_Function
10031 (N : Node_Id; Val : Boolean := True); -- Flag8
10033 procedure Set_Is_Expanded_Build_In_Place_Call
10034 (N : Node_Id; Val : Boolean := True); -- Flag11
10036 procedure Set_Is_Finalization_Wrapper
10037 (N : Node_Id; Val : Boolean := True); -- Flag9
10039 procedure Set_Is_Folded_In_Parser
10040 (N : Node_Id; Val : Boolean := True); -- Flag4
10042 procedure Set_Is_In_Discriminant_Check
10043 (N : Node_Id; Val : Boolean := True); -- Flag11
10045 procedure Set_Is_Machine_Number
10046 (N : Node_Id; Val : Boolean := True); -- Flag11
10048 procedure Set_Is_Null_Loop
10049 (N : Node_Id; Val : Boolean := True); -- Flag16
10051 procedure Set_Is_Overloaded
10052 (N : Node_Id; Val : Boolean := True); -- Flag5
10054 procedure Set_Is_Power_Of_2_For_Shift
10055 (N : Node_Id; Val : Boolean := True); -- Flag13
10057 procedure Set_Is_Prefixed_Call
10058 (N : Node_Id; Val : Boolean := True); -- Flag17
10060 procedure Set_Is_Protected_Subprogram_Body
10061 (N : Node_Id; Val : Boolean := True); -- Flag7
10063 procedure Set_Is_Static_Coextension
10064 (N : Node_Id; Val : Boolean := True); -- Flag14
10066 procedure Set_Is_Static_Expression
10067 (N : Node_Id; Val : Boolean := True); -- Flag6
10069 procedure Set_Is_Subprogram_Descriptor
10070 (N : Node_Id; Val : Boolean := True); -- Flag16
10072 procedure Set_Is_Task_Allocation_Block
10073 (N : Node_Id; Val : Boolean := True); -- Flag6
10075 procedure Set_Is_Task_Master
10076 (N : Node_Id; Val : Boolean := True); -- Flag5
10078 procedure Set_Iteration_Scheme
10079 (N : Node_Id; Val : Node_Id); -- Node2
10081 procedure Set_Iterator_Specification
10082 (N : Node_Id; Val : Node_Id); -- Node2
10084 procedure Set_Itype
10085 (N : Node_Id; Val : Entity_Id); -- Node1
10087 procedure Set_Kill_Range_Check
10088 (N : Node_Id; Val : Boolean := True); -- Flag11
10090 procedure Set_Last_Bit
10091 (N : Node_Id; Val : Node_Id); -- Node4
10093 procedure Set_Last_Name
10094 (N : Node_Id; Val : Boolean := True); -- Flag6
10096 procedure Set_Library_Unit
10097 (N : Node_Id; Val : Node_Id); -- Node4
10099 procedure Set_Label_Construct
10100 (N : Node_Id; Val : Node_Id); -- Node2
10102 procedure Set_Left_Opnd
10103 (N : Node_Id; Val : Node_Id); -- Node2
10105 procedure Set_Limited_View_Installed
10106 (N : Node_Id; Val : Boolean := True); -- Flag18
10108 procedure Set_Limited_Present
10109 (N : Node_Id; Val : Boolean := True); -- Flag17
10111 procedure Set_Literals
10112 (N : Node_Id; Val : List_Id); -- List1
10114 procedure Set_Local_Raise_Not_OK
10115 (N : Node_Id; Val : Boolean := True); -- Flag7
10117 procedure Set_Local_Raise_Statements
10118 (N : Node_Id; Val : Elist_Id); -- Elist1
10120 procedure Set_Loop_Actions
10121 (N : Node_Id; Val : List_Id); -- List2
10123 procedure Set_Loop_Parameter_Specification
10124 (N : Node_Id; Val : Node_Id); -- Node4
10126 procedure Set_Low_Bound
10127 (N : Node_Id; Val : Node_Id); -- Node1
10129 procedure Set_Mod_Clause
10130 (N : Node_Id; Val : Node_Id); -- Node2
10132 procedure Set_More_Ids
10133 (N : Node_Id; Val : Boolean := True); -- Flag5
10135 procedure Set_Must_Be_Byte_Aligned
10136 (N : Node_Id; Val : Boolean := True); -- Flag14
10138 procedure Set_Must_Not_Freeze
10139 (N : Node_Id; Val : Boolean := True); -- Flag8
10141 procedure Set_Must_Not_Override
10142 (N : Node_Id; Val : Boolean := True); -- Flag15
10144 procedure Set_Must_Override
10145 (N : Node_Id; Val : Boolean := True); -- Flag14
10148 (N : Node_Id; Val : Node_Id); -- Node2
10150 procedure Set_Names
10151 (N : Node_Id; Val : List_Id); -- List2
10153 procedure Set_Next_Entity
10154 (N : Node_Id; Val : Node_Id); -- Node2
10156 procedure Set_Next_Exit_Statement
10157 (N : Node_Id; Val : Node_Id); -- Node3
10159 procedure Set_Next_Implicit_With
10160 (N : Node_Id; Val : Node_Id); -- Node3
10162 procedure Set_Next_Named_Actual
10163 (N : Node_Id; Val : Node_Id); -- Node4
10165 procedure Set_Next_Pragma
10166 (N : Node_Id; Val : Node_Id); -- Node1
10168 procedure Set_Next_Rep_Item
10169 (N : Node_Id; Val : Node_Id); -- Node5
10171 procedure Set_Next_Use_Clause
10172 (N : Node_Id; Val : Node_Id); -- Node3
10174 procedure Set_No_Ctrl_Actions
10175 (N : Node_Id; Val : Boolean := True); -- Flag7
10177 procedure Set_No_Elaboration_Check
10178 (N : Node_Id; Val : Boolean := True); -- Flag14
10180 procedure Set_No_Entities_Ref_In_Spec
10181 (N : Node_Id; Val : Boolean := True); -- Flag8
10183 procedure Set_No_Initialization
10184 (N : Node_Id; Val : Boolean := True); -- Flag13
10186 procedure Set_No_Minimize_Eliminate
10187 (N : Node_Id; Val : Boolean := True); -- Flag17
10189 procedure Set_No_Truncation
10190 (N : Node_Id; Val : Boolean := True); -- Flag17
10192 procedure Set_Null_Present
10193 (N : Node_Id; Val : Boolean := True); -- Flag13
10195 procedure Set_Null_Exclusion_Present
10196 (N : Node_Id; Val : Boolean := True); -- Flag11
10198 procedure Set_Null_Exclusion_In_Return_Present
10199 (N : Node_Id; Val : Boolean := True); -- Flag14
10201 procedure Set_Null_Record_Present
10202 (N : Node_Id; Val : Boolean := True); -- Flag17
10204 procedure Set_Object_Definition
10205 (N : Node_Id; Val : Node_Id); -- Node4
10207 procedure Set_Of_Present
10208 (N : Node_Id; Val : Boolean := True); -- Flag16
10210 procedure Set_Original_Discriminant
10211 (N : Node_Id; Val : Node_Id); -- Node2
10213 procedure Set_Original_Entity
10214 (N : Node_Id; Val : Entity_Id); -- Node2
10216 procedure Set_Others_Discrete_Choices
10217 (N : Node_Id; Val : List_Id); -- List1
10219 procedure Set_Out_Present
10220 (N : Node_Id; Val : Boolean := True); -- Flag17
10222 procedure Set_Parameter_Associations
10223 (N : Node_Id; Val : List_Id); -- List3
10225 procedure Set_Parameter_List_Truncated
10226 (N : Node_Id; Val : Boolean := True); -- Flag17
10228 procedure Set_Parameter_Specifications
10229 (N : Node_Id; Val : List_Id); -- List3
10231 procedure Set_Parameter_Type
10232 (N : Node_Id; Val : Node_Id); -- Node2
10234 procedure Set_Parent_Spec
10235 (N : Node_Id; Val : Node_Id); -- Node4
10237 procedure Set_Position
10238 (N : Node_Id; Val : Node_Id); -- Node2
10240 procedure Set_Pragma_Argument_Associations
10241 (N : Node_Id; Val : List_Id); -- List2
10243 procedure Set_Pragma_Identifier
10244 (N : Node_Id; Val : Node_Id); -- Node4
10246 procedure Set_Pragmas_After
10247 (N : Node_Id; Val : List_Id); -- List5
10249 procedure Set_Pragmas_Before
10250 (N : Node_Id; Val : List_Id); -- List4
10252 procedure Set_Pre_Post_Conditions
10253 (N : Node_Id; Val : Node_Id); -- Node1
10255 procedure Set_Prefix
10256 (N : Node_Id; Val : Node_Id); -- Node3
10258 procedure Set_Premature_Use
10259 (N : Node_Id; Val : Node_Id); -- Node5
10261 procedure Set_Present_Expr
10262 (N : Node_Id; Val : Uint); -- Uint3
10264 procedure Set_Prev_Ids
10265 (N : Node_Id; Val : Boolean := True); -- Flag6
10267 procedure Set_Print_In_Hex
10268 (N : Node_Id; Val : Boolean := True); -- Flag13
10270 procedure Set_Private_Declarations
10271 (N : Node_Id; Val : List_Id); -- List3
10273 procedure Set_Private_Present
10274 (N : Node_Id; Val : Boolean := True); -- Flag15
10276 procedure Set_Procedure_To_Call
10277 (N : Node_Id; Val : Node_Id); -- Node2
10279 procedure Set_Proper_Body
10280 (N : Node_Id; Val : Node_Id); -- Node1
10282 procedure Set_Protected_Definition
10283 (N : Node_Id; Val : Node_Id); -- Node3
10285 procedure Set_Protected_Present
10286 (N : Node_Id; Val : Boolean := True); -- Flag6
10288 procedure Set_Raises_Constraint_Error
10289 (N : Node_Id; Val : Boolean := True); -- Flag7
10291 procedure Set_Range_Constraint
10292 (N : Node_Id; Val : Node_Id); -- Node4
10294 procedure Set_Range_Expression
10295 (N : Node_Id; Val : Node_Id); -- Node4
10297 procedure Set_Real_Range_Specification
10298 (N : Node_Id; Val : Node_Id); -- Node4
10300 procedure Set_Realval
10301 (N : Node_Id; Val : Ureal); -- Ureal3
10303 procedure Set_Reason
10304 (N : Node_Id; Val : Uint); -- Uint3
10306 procedure Set_Record_Extension_Part
10307 (N : Node_Id; Val : Node_Id); -- Node3
10309 procedure Set_Redundant_Use
10310 (N : Node_Id; Val : Boolean := True); -- Flag13
10312 procedure Set_Renaming_Exception
10313 (N : Node_Id; Val : Node_Id); -- Node2
10315 procedure Set_Result_Definition
10316 (N : Node_Id; Val : Node_Id); -- Node4
10318 procedure Set_Return_Object_Declarations
10319 (N : Node_Id; Val : List_Id); -- List3
10321 procedure Set_Return_Statement_Entity
10322 (N : Node_Id; Val : Node_Id); -- Node5
10324 procedure Set_Reverse_Present
10325 (N : Node_Id; Val : Boolean := True); -- Flag15
10327 procedure Set_Right_Opnd
10328 (N : Node_Id; Val : Node_Id); -- Node3
10330 procedure Set_Rounded_Result
10331 (N : Node_Id; Val : Boolean := True); -- Flag18
10333 procedure Set_SCIL_Controlling_Tag
10334 (N : Node_Id; Val : Node_Id); -- Node5
10336 procedure Set_SCIL_Entity
10337 (N : Node_Id; Val : Node_Id); -- Node4
10339 procedure Set_SCIL_Tag_Value
10340 (N : Node_Id; Val : Node_Id); -- Node5
10342 procedure Set_SCIL_Target_Prim
10343 (N : Node_Id; Val : Node_Id); -- Node2
10345 procedure Set_Scope
10346 (N : Node_Id; Val : Node_Id); -- Node3
10348 procedure Set_Select_Alternatives
10349 (N : Node_Id; Val : List_Id); -- List1
10351 procedure Set_Selector_Name
10352 (N : Node_Id; Val : Node_Id); -- Node2
10354 procedure Set_Selector_Names
10355 (N : Node_Id; Val : List_Id); -- List1
10357 procedure Set_Shift_Count_OK
10358 (N : Node_Id; Val : Boolean := True); -- Flag4
10360 procedure Set_Source_Type
10361 (N : Node_Id; Val : Entity_Id); -- Node1
10363 procedure Set_Specification
10364 (N : Node_Id; Val : Node_Id); -- Node1
10366 procedure Set_Split_PPC
10367 (N : Node_Id; Val : Boolean); -- Flag17
10369 procedure Set_Statements
10370 (N : Node_Id; Val : List_Id); -- List3
10372 procedure Set_Storage_Pool
10373 (N : Node_Id; Val : Node_Id); -- Node1
10375 procedure Set_Subpool_Handle_Name
10376 (N : Node_Id; Val : Node_Id); -- Node4
10378 procedure Set_Strval
10379 (N : Node_Id; Val : String_Id); -- Str3
10381 procedure Set_Subtype_Indication
10382 (N : Node_Id; Val : Node_Id); -- Node5
10384 procedure Set_Subtype_Mark
10385 (N : Node_Id; Val : Node_Id); -- Node4
10387 procedure Set_Subtype_Marks
10388 (N : Node_Id; Val : List_Id); -- List2
10390 procedure Set_Suppress_Assignment_Checks
10391 (N : Node_Id; Val : Boolean := True); -- Flag18
10393 procedure Set_Suppress_Loop_Warnings
10394 (N : Node_Id; Val : Boolean := True); -- Flag17
10396 procedure Set_Synchronized_Present
10397 (N : Node_Id; Val : Boolean := True); -- Flag7
10399 procedure Set_Tagged_Present
10400 (N : Node_Id; Val : Boolean := True); -- Flag15
10402 procedure Set_Target_Type
10403 (N : Node_Id; Val : Entity_Id); -- Node2
10405 procedure Set_Task_Definition
10406 (N : Node_Id; Val : Node_Id); -- Node3
10408 procedure Set_Task_Present
10409 (N : Node_Id; Val : Boolean := True); -- Flag5
10411 procedure Set_Then_Actions
10412 (N : Node_Id; Val : List_Id); -- List2
10414 procedure Set_Then_Statements
10415 (N : Node_Id; Val : List_Id); -- List2
10417 procedure Set_Treat_Fixed_As_Integer
10418 (N : Node_Id; Val : Boolean := True); -- Flag14
10420 procedure Set_Triggering_Alternative
10421 (N : Node_Id; Val : Node_Id); -- Node1
10423 procedure Set_Triggering_Statement
10424 (N : Node_Id; Val : Node_Id); -- Node1
10426 procedure Set_TSS_Elist
10427 (N : Node_Id; Val : Elist_Id); -- Elist3
10429 procedure Set_Type_Definition
10430 (N : Node_Id; Val : Node_Id); -- Node3
10433 (N : Node_Id; Val : Node_Id); -- Node2
10435 procedure Set_Unknown_Discriminants_Present
10436 (N : Node_Id; Val : Boolean := True); -- Flag13
10438 procedure Set_Unreferenced_In_Spec
10439 (N : Node_Id; Val : Boolean := True); -- Flag7
10441 procedure Set_Variant_Part
10442 (N : Node_Id; Val : Node_Id); -- Node4
10444 procedure Set_Variants
10445 (N : Node_Id; Val : List_Id); -- List1
10447 procedure Set_Visible_Declarations
10448 (N : Node_Id; Val : List_Id); -- List2
10450 procedure Set_Used_Operations
10451 (N : Node_Id; Val : Elist_Id); -- Elist5
10453 procedure Set_Was_Originally_Stub
10454 (N : Node_Id; Val : Boolean := True); -- Flag13
10456 procedure Set_Withed_Body
10457 (N : Node_Id; Val : Node_Id); -- Node1
10459 -------------------------
10460 -- Iterator Procedures --
10461 -------------------------
10463 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10465 procedure Next_Entity (N : in out Node_Id);
10466 procedure Next_Named_Actual (N : in out Node_Id);
10467 procedure Next_Rep_Item (N : in out Node_Id);
10468 procedure Next_Use_Clause (N : in out Node_Id);
10470 -------------------------------------------
10471 -- Miscellaneous Tree Access Subprograms --
10472 -------------------------------------------
10474 function End_Location (N : Node_Id) return Source_Ptr;
10475 -- N is an N_If_Statement or N_Case_Statement node, and this function
10476 -- returns the location of the IF token in the END IF sequence by
10477 -- translating the value of the End_Span field.
10479 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10480 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10481 -- the End_Span field to correspond to the given value S. In other words,
10482 -- End_Span is set to the difference between S and Sloc (N), the starting
10485 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10486 -- Given an argument to a pragma Arg, this function returns the expression
10487 -- for the argument. This is Arg itself, or, in the case where Arg is a
10488 -- pragma argument association node, the expression from this node.
10490 --------------------------------
10491 -- Node_Kind Membership Tests --
10492 --------------------------------
10494 -- The following functions allow a convenient notation for testing whether
10495 -- a Node_Kind value matches any one of a list of possible values. In each
10496 -- case True is returned if the given T argument is equal to any of the V
10497 -- arguments. Note that there is a similar set of functions defined in
10498 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10503 V2 : Node_Kind) return Boolean;
10509 V3 : Node_Kind) return Boolean;
10516 V4 : Node_Kind) return Boolean;
10524 V5 : Node_Kind) return Boolean;
10533 V6 : Node_Kind) return Boolean;
10543 V7 : Node_Kind) return Boolean;
10554 V8 : Node_Kind) return Boolean;
10566 V9 : Node_Kind) return Boolean;
10568 pragma Inline (Nkind_In);
10569 -- Inline all above functions
10571 -----------------------
10572 -- Utility Functions --
10573 -----------------------
10575 function Pragma_Name (N : Node_Id) return Name_Id;
10576 pragma Inline (Pragma_Name);
10577 -- Convenient function to obtain Chars field of Pragma_Identifier
10579 -----------------------------
10580 -- Syntactic Parent Tables --
10581 -----------------------------
10583 -- These tables show for each node, and for each of the five fields,
10584 -- whether the corresponding field is syntactic (True) or semantic (False).
10585 -- Unused entries are also set to False.
10587 subtype Field_Num is Natural range 1 .. 5;
10589 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10591 -- Following entries can be built automatically from the sinfo sources
10592 -- using the makeisf utility (currently this program is in spitbol).
10595 (1 => True, -- Chars (Name1)
10596 2 => False, -- Original_Discriminant (Node2-Sem)
10597 3 => False, -- unused
10598 4 => False, -- Entity (Node4-Sem)
10599 5 => False), -- Etype (Node5-Sem)
10601 N_Integer_Literal =>
10602 (1 => False, -- unused
10603 2 => False, -- Original_Entity (Node2-Sem)
10604 3 => True, -- Intval (Uint3)
10605 4 => False, -- unused
10606 5 => False), -- Etype (Node5-Sem)
10609 (1 => False, -- unused
10610 2 => False, -- Original_Entity (Node2-Sem)
10611 3 => True, -- Realval (Ureal3)
10612 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10613 5 => False), -- Etype (Node5-Sem)
10615 N_Character_Literal =>
10616 (1 => True, -- Chars (Name1)
10617 2 => True, -- Char_Literal_Value (Uint2)
10618 3 => False, -- unused
10619 4 => False, -- Entity (Node4-Sem)
10620 5 => False), -- Etype (Node5-Sem)
10622 N_String_Literal =>
10623 (1 => False, -- unused
10624 2 => False, -- unused
10625 3 => True, -- Strval (Str3)
10626 4 => False, -- unused
10627 5 => False), -- Etype (Node5-Sem)
10630 (1 => False, -- Next_Pragma (Node1-Sem)
10631 2 => True, -- Pragma_Argument_Associations (List2)
10632 3 => False, -- unused
10633 4 => True, -- Pragma_Identifier (Node4)
10634 5 => False), -- Next_Rep_Item (Node5-Sem)
10636 N_Pragma_Argument_Association =>
10637 (1 => True, -- Chars (Name1)
10638 2 => False, -- unused
10639 3 => True, -- Expression (Node3)
10640 4 => False, -- unused
10641 5 => False), -- unused
10643 N_Defining_Identifier =>
10644 (1 => True, -- Chars (Name1)
10645 2 => False, -- Next_Entity (Node2-Sem)
10646 3 => False, -- Scope (Node3-Sem)
10647 4 => False, -- unused
10648 5 => False), -- Etype (Node5-Sem)
10650 N_Full_Type_Declaration =>
10651 (1 => True, -- Defining_Identifier (Node1)
10652 2 => False, -- unused
10653 3 => True, -- Type_Definition (Node3)
10654 4 => True, -- Discriminant_Specifications (List4)
10655 5 => False), -- unused
10657 N_Subtype_Declaration =>
10658 (1 => True, -- Defining_Identifier (Node1)
10659 2 => False, -- unused
10660 3 => False, -- unused
10661 4 => False, -- Generic_Parent_Type (Node4-Sem)
10662 5 => True), -- Subtype_Indication (Node5)
10664 N_Subtype_Indication =>
10665 (1 => False, -- unused
10666 2 => False, -- unused
10667 3 => True, -- Constraint (Node3)
10668 4 => True, -- Subtype_Mark (Node4)
10669 5 => False), -- Etype (Node5-Sem)
10671 N_Object_Declaration =>
10672 (1 => True, -- Defining_Identifier (Node1)
10673 2 => False, -- Handler_List_Entry (Node2-Sem)
10674 3 => True, -- Expression (Node3)
10675 4 => True, -- Object_Definition (Node4)
10676 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10678 N_Number_Declaration =>
10679 (1 => True, -- Defining_Identifier (Node1)
10680 2 => False, -- unused
10681 3 => True, -- Expression (Node3)
10682 4 => False, -- unused
10683 5 => False), -- unused
10685 N_Derived_Type_Definition =>
10686 (1 => False, -- unused
10687 2 => True, -- Interface_List (List2)
10688 3 => True, -- Record_Extension_Part (Node3)
10689 4 => False, -- unused
10690 5 => True), -- Subtype_Indication (Node5)
10692 N_Range_Constraint =>
10693 (1 => False, -- unused
10694 2 => False, -- unused
10695 3 => False, -- unused
10696 4 => True, -- Range_Expression (Node4)
10697 5 => False), -- unused
10700 (1 => True, -- Low_Bound (Node1)
10701 2 => True, -- High_Bound (Node2)
10702 3 => False, -- unused
10703 4 => False, -- unused
10704 5 => False), -- Etype (Node5-Sem)
10706 N_Enumeration_Type_Definition =>
10707 (1 => True, -- Literals (List1)
10708 2 => False, -- unused
10709 3 => False, -- unused
10710 4 => True, -- End_Label (Node4)
10711 5 => False), -- unused
10713 N_Defining_Character_Literal =>
10714 (1 => True, -- Chars (Name1)
10715 2 => False, -- Next_Entity (Node2-Sem)
10716 3 => False, -- Scope (Node3-Sem)
10717 4 => False, -- unused
10718 5 => False), -- Etype (Node5-Sem)
10720 N_Signed_Integer_Type_Definition =>
10721 (1 => True, -- Low_Bound (Node1)
10722 2 => True, -- High_Bound (Node2)
10723 3 => False, -- unused
10724 4 => False, -- unused
10725 5 => False), -- unused
10727 N_Modular_Type_Definition =>
10728 (1 => False, -- unused
10729 2 => False, -- unused
10730 3 => True, -- Expression (Node3)
10731 4 => False, -- unused
10732 5 => False), -- unused
10734 N_Floating_Point_Definition =>
10735 (1 => False, -- unused
10736 2 => True, -- Digits_Expression (Node2)
10737 3 => False, -- unused
10738 4 => True, -- Real_Range_Specification (Node4)
10739 5 => False), -- unused
10741 N_Real_Range_Specification =>
10742 (1 => True, -- Low_Bound (Node1)
10743 2 => True, -- High_Bound (Node2)
10744 3 => False, -- unused
10745 4 => False, -- unused
10746 5 => False), -- unused
10748 N_Ordinary_Fixed_Point_Definition =>
10749 (1 => False, -- unused
10750 2 => False, -- unused
10751 3 => True, -- Delta_Expression (Node3)
10752 4 => True, -- Real_Range_Specification (Node4)
10753 5 => False), -- unused
10755 N_Decimal_Fixed_Point_Definition =>
10756 (1 => False, -- unused
10757 2 => True, -- Digits_Expression (Node2)
10758 3 => True, -- Delta_Expression (Node3)
10759 4 => True, -- Real_Range_Specification (Node4)
10760 5 => False), -- unused
10762 N_Digits_Constraint =>
10763 (1 => False, -- unused
10764 2 => True, -- Digits_Expression (Node2)
10765 3 => False, -- unused
10766 4 => True, -- Range_Constraint (Node4)
10767 5 => False), -- unused
10769 N_Unconstrained_Array_Definition =>
10770 (1 => False, -- unused
10771 2 => True, -- Subtype_Marks (List2)
10772 3 => False, -- unused
10773 4 => True, -- Component_Definition (Node4)
10774 5 => False), -- unused
10776 N_Constrained_Array_Definition =>
10777 (1 => False, -- unused
10778 2 => True, -- Discrete_Subtype_Definitions (List2)
10779 3 => False, -- unused
10780 4 => True, -- Component_Definition (Node4)
10781 5 => False), -- unused
10783 N_Component_Definition =>
10784 (1 => False, -- unused
10785 2 => False, -- unused
10786 3 => True, -- Access_Definition (Node3)
10787 4 => False, -- unused
10788 5 => True), -- Subtype_Indication (Node5)
10790 N_Discriminant_Specification =>
10791 (1 => True, -- Defining_Identifier (Node1)
10792 2 => False, -- unused
10793 3 => True, -- Expression (Node3)
10794 4 => False, -- unused
10795 5 => True), -- Discriminant_Type (Node5)
10797 N_Index_Or_Discriminant_Constraint =>
10798 (1 => True, -- Constraints (List1)
10799 2 => False, -- unused
10800 3 => False, -- unused
10801 4 => False, -- unused
10802 5 => False), -- unused
10804 N_Discriminant_Association =>
10805 (1 => True, -- Selector_Names (List1)
10806 2 => False, -- unused
10807 3 => True, -- Expression (Node3)
10808 4 => False, -- unused
10809 5 => False), -- unused
10811 N_Record_Definition =>
10812 (1 => True, -- Component_List (Node1)
10813 2 => True, -- Interface_List (List2)
10814 3 => False, -- unused
10815 4 => True, -- End_Label (Node4)
10816 5 => False), -- unused
10818 N_Component_List =>
10819 (1 => False, -- unused
10820 2 => False, -- unused
10821 3 => True, -- Component_Items (List3)
10822 4 => True, -- Variant_Part (Node4)
10823 5 => False), -- unused
10825 N_Component_Declaration =>
10826 (1 => True, -- Defining_Identifier (Node1)
10827 2 => False, -- unused
10828 3 => True, -- Expression (Node3)
10829 4 => True, -- Component_Definition (Node4)
10830 5 => False), -- unused
10833 (1 => True, -- Variants (List1)
10834 2 => True, -- Name (Node2)
10835 3 => False, -- unused
10836 4 => False, -- unused
10837 5 => False), -- unused
10840 (1 => True, -- Component_List (Node1)
10841 2 => False, -- Enclosing_Variant (Node2-Sem)
10842 3 => False, -- Present_Expr (Uint3-Sem)
10843 4 => True, -- Discrete_Choices (List4)
10844 5 => False), -- Dcheck_Function (Node5-Sem)
10847 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10848 2 => False, -- unused
10849 3 => False, -- unused
10850 4 => False, -- unused
10851 5 => False), -- unused
10853 N_Access_To_Object_Definition =>
10854 (1 => False, -- unused
10855 2 => False, -- unused
10856 3 => False, -- unused
10857 4 => False, -- unused
10858 5 => True), -- Subtype_Indication (Node5)
10860 N_Access_Function_Definition =>
10861 (1 => False, -- unused
10862 2 => False, -- unused
10863 3 => True, -- Parameter_Specifications (List3)
10864 4 => True, -- Result_Definition (Node4)
10865 5 => False), -- unused
10867 N_Access_Procedure_Definition =>
10868 (1 => False, -- unused
10869 2 => False, -- unused
10870 3 => True, -- Parameter_Specifications (List3)
10871 4 => False, -- unused
10872 5 => False), -- unused
10874 N_Access_Definition =>
10875 (1 => False, -- unused
10876 2 => False, -- unused
10877 3 => True, -- Access_To_Subprogram_Definition (Node3)
10878 4 => True, -- Subtype_Mark (Node4)
10879 5 => False), -- unused
10881 N_Incomplete_Type_Declaration =>
10882 (1 => True, -- Defining_Identifier (Node1)
10883 2 => False, -- unused
10884 3 => False, -- unused
10885 4 => True, -- Discriminant_Specifications (List4)
10886 5 => False), -- Premature_Use
10888 N_Explicit_Dereference =>
10889 (1 => False, -- unused
10890 2 => False, -- unused
10891 3 => True, -- Prefix (Node3)
10892 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10893 5 => False), -- Etype (Node5-Sem)
10895 N_Indexed_Component =>
10896 (1 => True, -- Expressions (List1)
10897 2 => False, -- unused
10898 3 => True, -- Prefix (Node3)
10899 4 => False, -- unused
10900 5 => False), -- Etype (Node5-Sem)
10903 (1 => False, -- unused
10904 2 => False, -- unused
10905 3 => True, -- Prefix (Node3)
10906 4 => True, -- Discrete_Range (Node4)
10907 5 => False), -- Etype (Node5-Sem)
10909 N_Selected_Component =>
10910 (1 => False, -- unused
10911 2 => True, -- Selector_Name (Node2)
10912 3 => True, -- Prefix (Node3)
10913 4 => False, -- unused
10914 5 => False), -- Etype (Node5-Sem)
10916 N_Attribute_Reference =>
10917 (1 => True, -- Expressions (List1)
10918 2 => True, -- Attribute_Name (Name2)
10919 3 => True, -- Prefix (Node3)
10920 4 => False, -- Entity (Node4-Sem)
10921 5 => False), -- Etype (Node5-Sem)
10924 (1 => True, -- Expressions (List1)
10925 2 => True, -- Component_Associations (List2)
10926 3 => False, -- Aggregate_Bounds (Node3-Sem)
10927 4 => False, -- unused
10928 5 => False), -- Etype (Node5-Sem)
10930 N_Component_Association =>
10931 (1 => True, -- Choices (List1)
10932 2 => False, -- Loop_Actions (List2-Sem)
10933 3 => True, -- Expression (Node3)
10934 4 => False, -- unused
10935 5 => False), -- unused
10937 N_Extension_Aggregate =>
10938 (1 => True, -- Expressions (List1)
10939 2 => True, -- Component_Associations (List2)
10940 3 => True, -- Ancestor_Part (Node3)
10941 4 => False, -- unused
10942 5 => False), -- Etype (Node5-Sem)
10945 (1 => False, -- unused
10946 2 => False, -- unused
10947 3 => False, -- unused
10948 4 => False, -- unused
10949 5 => False), -- Etype (Node5-Sem)
10952 (1 => False, -- Actions (List1-Sem)
10953 2 => True, -- Left_Opnd (Node2)
10954 3 => True, -- Right_Opnd (Node3)
10955 4 => False, -- unused
10956 5 => False), -- Etype (Node5-Sem)
10959 (1 => False, -- Actions (List1-Sem)
10960 2 => True, -- Left_Opnd (Node2)
10961 3 => True, -- Right_Opnd (Node3)
10962 4 => False, -- unused
10963 5 => False), -- Etype (Node5-Sem)
10966 (1 => False, -- unused
10967 2 => True, -- Left_Opnd (Node2)
10968 3 => True, -- Right_Opnd (Node3)
10969 4 => True, -- Alternatives (List4)
10970 5 => False), -- Etype (Node5-Sem)
10973 (1 => False, -- unused
10974 2 => True, -- Left_Opnd (Node2)
10975 3 => True, -- Right_Opnd (Node3)
10976 4 => True, -- Alternatives (List4)
10977 5 => False), -- Etype (Node5-Sem)
10980 (1 => True, -- Chars (Name1)
10981 2 => True, -- Left_Opnd (Node2)
10982 3 => True, -- Right_Opnd (Node3)
10983 4 => False, -- Entity (Node4-Sem)
10984 5 => False), -- Etype (Node5-Sem)
10987 (1 => True, -- Chars (Name1)
10988 2 => True, -- Left_Opnd (Node2)
10989 3 => True, -- Right_Opnd (Node3)
10990 4 => False, -- Entity (Node4-Sem)
10991 5 => False), -- Etype (Node5-Sem)
10994 (1 => True, -- Chars (Name1)
10995 2 => True, -- Left_Opnd (Node2)
10996 3 => True, -- Right_Opnd (Node3)
10997 4 => False, -- Entity (Node4-Sem)
10998 5 => False), -- Etype (Node5-Sem)
11001 (1 => True, -- Chars (Name1)
11002 2 => True, -- Left_Opnd (Node2)
11003 3 => True, -- Right_Opnd (Node3)
11004 4 => False, -- Entity (Node4-Sem)
11005 5 => False), -- Etype (Node5-Sem)
11008 (1 => True, -- Chars (Name1)
11009 2 => True, -- Left_Opnd (Node2)
11010 3 => True, -- Right_Opnd (Node3)
11011 4 => False, -- Entity (Node4-Sem)
11012 5 => False), -- Etype (Node5-Sem)
11015 (1 => True, -- Chars (Name1)
11016 2 => True, -- Left_Opnd (Node2)
11017 3 => True, -- Right_Opnd (Node3)
11018 4 => False, -- Entity (Node4-Sem)
11019 5 => False), -- Etype (Node5-Sem)
11022 (1 => True, -- Chars (Name1)
11023 2 => True, -- Left_Opnd (Node2)
11024 3 => True, -- Right_Opnd (Node3)
11025 4 => False, -- Entity (Node4-Sem)
11026 5 => False), -- Etype (Node5-Sem)
11029 (1 => True, -- Chars (Name1)
11030 2 => True, -- Left_Opnd (Node2)
11031 3 => True, -- Right_Opnd (Node3)
11032 4 => False, -- Entity (Node4-Sem)
11033 5 => False), -- Etype (Node5-Sem)
11036 (1 => True, -- Chars (Name1)
11037 2 => True, -- Left_Opnd (Node2)
11038 3 => True, -- Right_Opnd (Node3)
11039 4 => False, -- Entity (Node4-Sem)
11040 5 => False), -- Etype (Node5-Sem)
11043 (1 => True, -- Chars (Name1)
11044 2 => True, -- Left_Opnd (Node2)
11045 3 => True, -- Right_Opnd (Node3)
11046 4 => False, -- Entity (Node4-Sem)
11047 5 => False), -- Etype (Node5-Sem)
11050 (1 => True, -- Chars (Name1)
11051 2 => True, -- Left_Opnd (Node2)
11052 3 => True, -- Right_Opnd (Node3)
11053 4 => False, -- Entity (Node4-Sem)
11054 5 => False), -- Etype (Node5-Sem)
11057 (1 => True, -- Chars (Name1)
11058 2 => True, -- Left_Opnd (Node2)
11059 3 => True, -- Right_Opnd (Node3)
11060 4 => False, -- Entity (Node4-Sem)
11061 5 => False), -- Etype (Node5-Sem)
11064 (1 => True, -- Chars (Name1)
11065 2 => True, -- Left_Opnd (Node2)
11066 3 => True, -- Right_Opnd (Node3)
11067 4 => False, -- Entity (Node4-Sem)
11068 5 => False), -- Etype (Node5-Sem)
11071 (1 => True, -- Chars (Name1)
11072 2 => True, -- Left_Opnd (Node2)
11073 3 => True, -- Right_Opnd (Node3)
11074 4 => False, -- Entity (Node4-Sem)
11075 5 => False), -- Etype (Node5-Sem)
11078 (1 => True, -- Chars (Name1)
11079 2 => True, -- Left_Opnd (Node2)
11080 3 => True, -- Right_Opnd (Node3)
11081 4 => False, -- Entity (Node4-Sem)
11082 5 => False), -- Etype (Node5-Sem)
11085 (1 => True, -- Chars (Name1)
11086 2 => True, -- Left_Opnd (Node2)
11087 3 => True, -- Right_Opnd (Node3)
11088 4 => False, -- Entity (Node4-Sem)
11089 5 => False), -- Etype (Node5-Sem)
11092 (1 => True, -- Chars (Name1)
11093 2 => True, -- Left_Opnd (Node2)
11094 3 => True, -- Right_Opnd (Node3)
11095 4 => False, -- Entity (Node4-Sem)
11096 5 => False), -- Etype (Node5-Sem)
11099 (1 => True, -- Chars (Name1)
11100 2 => False, -- unused
11101 3 => True, -- Right_Opnd (Node3)
11102 4 => False, -- Entity (Node4-Sem)
11103 5 => False), -- Etype (Node5-Sem)
11106 (1 => True, -- Chars (Name1)
11107 2 => False, -- unused
11108 3 => True, -- Right_Opnd (Node3)
11109 4 => False, -- Entity (Node4-Sem)
11110 5 => False), -- Etype (Node5-Sem)
11113 (1 => True, -- Chars (Name1)
11114 2 => False, -- unused
11115 3 => True, -- Right_Opnd (Node3)
11116 4 => False, -- Entity (Node4-Sem)
11117 5 => False), -- Etype (Node5-Sem)
11120 (1 => True, -- Chars (Name1)
11121 2 => False, -- unused
11122 3 => True, -- Right_Opnd (Node3)
11123 4 => False, -- Entity (Node4-Sem)
11124 5 => False), -- Etype (Node5-Sem)
11126 N_Type_Conversion =>
11127 (1 => False, -- unused
11128 2 => False, -- unused
11129 3 => True, -- Expression (Node3)
11130 4 => True, -- Subtype_Mark (Node4)
11131 5 => False), -- Etype (Node5-Sem)
11133 N_Qualified_Expression =>
11134 (1 => False, -- unused
11135 2 => False, -- unused
11136 3 => True, -- Expression (Node3)
11137 4 => True, -- Subtype_Mark (Node4)
11138 5 => False), -- Etype (Node5-Sem)
11140 N_Quantified_Expression =>
11141 (1 => True, -- Condition (Node1)
11142 2 => True, -- Iterator_Specification
11143 3 => False, -- unused
11144 4 => True, -- Loop_Parameter_Specification (Node4)
11145 5 => False), -- Etype (Node5-Sem)
11148 (1 => False, -- Storage_Pool (Node1-Sem)
11149 2 => False, -- Procedure_To_Call (Node2-Sem)
11150 3 => True, -- Expression (Node3)
11151 4 => True, -- Subpool_Handle_Name (Node4)
11152 5 => False), -- Etype (Node5-Sem)
11154 N_Null_Statement =>
11155 (1 => False, -- unused
11156 2 => False, -- unused
11157 3 => False, -- unused
11158 4 => False, -- unused
11159 5 => False), -- unused
11162 (1 => True, -- Identifier (Node1)
11163 2 => False, -- unused
11164 3 => False, -- unused
11165 4 => False, -- unused
11166 5 => False), -- unused
11168 N_Assignment_Statement =>
11169 (1 => False, -- unused
11170 2 => True, -- Name (Node2)
11171 3 => True, -- Expression (Node3)
11172 4 => False, -- unused
11173 5 => False), -- unused
11176 (1 => True, -- Condition (Node1)
11177 2 => True, -- Then_Statements (List2)
11178 3 => True, -- Elsif_Parts (List3)
11179 4 => True, -- Else_Statements (List4)
11180 5 => True), -- End_Span (Uint5)
11183 (1 => True, -- Condition (Node1)
11184 2 => True, -- Then_Statements (List2)
11185 3 => False, -- Condition_Actions (List3-Sem)
11186 4 => False, -- unused
11187 5 => False), -- unused
11189 N_Case_Expression =>
11190 (1 => False, -- unused
11191 2 => False, -- unused
11192 3 => True, -- Expression (Node3)
11193 4 => True, -- Alternatives (List4)
11194 5 => False), -- unused
11196 N_Case_Expression_Alternative =>
11197 (1 => False, -- Actions (List1-Sem)
11198 2 => False, -- unused
11199 3 => True, -- Statements (List3)
11200 4 => True, -- Expression (Node4)
11201 5 => False), -- unused
11203 N_Case_Statement =>
11204 (1 => False, -- unused
11205 2 => False, -- unused
11206 3 => True, -- Expression (Node3)
11207 4 => True, -- Alternatives (List4)
11208 5 => True), -- End_Span (Uint5)
11210 N_Case_Statement_Alternative =>
11211 (1 => False, -- unused
11212 2 => False, -- unused
11213 3 => True, -- Statements (List3)
11214 4 => True, -- Discrete_Choices (List4)
11215 5 => False), -- unused
11217 N_Loop_Statement =>
11218 (1 => True, -- Identifier (Node1)
11219 2 => True, -- Iteration_Scheme (Node2)
11220 3 => True, -- Statements (List3)
11221 4 => True, -- End_Label (Node4)
11222 5 => False), -- unused
11224 N_Iteration_Scheme =>
11225 (1 => True, -- Condition (Node1)
11226 2 => True, -- Iterator_Specification (Node2)
11227 3 => False, -- Condition_Actions (List3-Sem)
11228 4 => True, -- Loop_Parameter_Specification (Node4)
11229 5 => False), -- unused
11231 N_Loop_Parameter_Specification =>
11232 (1 => True, -- Defining_Identifier (Node1)
11233 2 => False, -- unused
11234 3 => False, -- unused
11235 4 => True, -- Discrete_Subtype_Definition (Node4)
11236 5 => False), -- unused
11238 N_Iterator_Specification =>
11239 (1 => True, -- Defining_Identifier (Node1)
11240 2 => True, -- Name (Node2)
11241 3 => False, -- Unused
11242 4 => False, -- Unused
11243 5 => True), -- Subtype_Indication (Node5)
11245 N_Block_Statement =>
11246 (1 => True, -- Identifier (Node1)
11247 2 => True, -- Declarations (List2)
11248 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11249 4 => True, -- Handled_Statement_Sequence (Node4)
11250 5 => False), -- unused
11252 N_Exit_Statement =>
11253 (1 => True, -- Condition (Node1)
11254 2 => True, -- Name (Node2)
11255 3 => False, -- unused
11256 4 => False, -- unused
11257 5 => False), -- unused
11259 N_Goto_Statement =>
11260 (1 => False, -- unused
11261 2 => True, -- Name (Node2)
11262 3 => False, -- unused
11263 4 => False, -- unused
11264 5 => False), -- unused
11266 N_Subprogram_Declaration =>
11267 (1 => True, -- Specification (Node1)
11268 2 => False, -- unused
11269 3 => False, -- Body_To_Inline (Node3-Sem)
11270 4 => False, -- Parent_Spec (Node4-Sem)
11271 5 => False), -- Corresponding_Body (Node5-Sem)
11273 N_Abstract_Subprogram_Declaration =>
11274 (1 => True, -- Specification (Node1)
11275 2 => False, -- unused
11276 3 => False, -- unused
11277 4 => False, -- unused
11278 5 => False), -- unused
11280 N_Function_Specification =>
11281 (1 => True, -- Defining_Unit_Name (Node1)
11282 2 => False, -- Elaboration_Boolean (Node2-Sem)
11283 3 => True, -- Parameter_Specifications (List3)
11284 4 => True, -- Result_Definition (Node4)
11285 5 => False), -- Generic_Parent (Node5-Sem)
11287 N_Procedure_Specification =>
11288 (1 => True, -- Defining_Unit_Name (Node1)
11289 2 => False, -- Elaboration_Boolean (Node2-Sem)
11290 3 => True, -- Parameter_Specifications (List3)
11291 4 => False, -- unused
11292 5 => False), -- Generic_Parent (Node5-Sem)
11295 (1 => True, -- Identifier (Node1)
11296 2 => True, -- Name (Node2)
11297 3 => False, -- unused
11298 4 => False, -- unused
11299 5 => False), -- unused
11301 N_Defining_Program_Unit_Name =>
11302 (1 => True, -- Defining_Identifier (Node1)
11303 2 => True, -- Name (Node2)
11304 3 => False, -- unused
11305 4 => False, -- unused
11306 5 => False), -- unused
11308 N_Operator_Symbol =>
11309 (1 => True, -- Chars (Name1)
11310 2 => False, -- unused
11311 3 => True, -- Strval (Str3)
11312 4 => False, -- Entity (Node4-Sem)
11313 5 => False), -- Etype (Node5-Sem)
11315 N_Defining_Operator_Symbol =>
11316 (1 => True, -- Chars (Name1)
11317 2 => False, -- Next_Entity (Node2-Sem)
11318 3 => False, -- Scope (Node3-Sem)
11319 4 => False, -- unused
11320 5 => False), -- Etype (Node5-Sem)
11322 N_Parameter_Specification =>
11323 (1 => True, -- Defining_Identifier (Node1)
11324 2 => True, -- Parameter_Type (Node2)
11325 3 => True, -- Expression (Node3)
11326 4 => False, -- unused
11327 5 => False), -- Default_Expression (Node5-Sem)
11329 N_Subprogram_Body =>
11330 (1 => True, -- Specification (Node1)
11331 2 => True, -- Declarations (List2)
11332 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11333 4 => True, -- Handled_Statement_Sequence (Node4)
11334 5 => False), -- Corresponding_Spec (Node5-Sem)
11336 N_Expression_Function =>
11337 (1 => True, -- Specification (Node1)
11338 2 => False, -- unused
11339 3 => True, -- Expression (Node3)
11340 4 => False, -- unused
11341 5 => False), -- unused
11343 N_Procedure_Call_Statement =>
11344 (1 => False, -- Controlling_Argument (Node1-Sem)
11345 2 => True, -- Name (Node2)
11346 3 => True, -- Parameter_Associations (List3)
11347 4 => False, -- First_Named_Actual (Node4-Sem)
11348 5 => False), -- Etype (Node5-Sem)
11351 (1 => False, -- Controlling_Argument (Node1-Sem)
11352 2 => True, -- Name (Node2)
11353 3 => True, -- Parameter_Associations (List3)
11354 4 => False, -- First_Named_Actual (Node4-Sem)
11355 5 => False), -- Etype (Node5-Sem)
11357 N_Parameter_Association =>
11358 (1 => False, -- unused
11359 2 => True, -- Selector_Name (Node2)
11360 3 => True, -- Explicit_Actual_Parameter (Node3)
11361 4 => False, -- Next_Named_Actual (Node4-Sem)
11362 5 => False), -- unused
11364 N_Simple_Return_Statement =>
11365 (1 => False, -- Storage_Pool (Node1-Sem)
11366 2 => False, -- Procedure_To_Call (Node2-Sem)
11367 3 => True, -- Expression (Node3)
11368 4 => False, -- unused
11369 5 => False), -- Return_Statement_Entity (Node5-Sem)
11371 N_Extended_Return_Statement =>
11372 (1 => False, -- Storage_Pool (Node1-Sem)
11373 2 => False, -- Procedure_To_Call (Node2-Sem)
11374 3 => True, -- Return_Object_Declarations (List3)
11375 4 => True, -- Handled_Statement_Sequence (Node4)
11376 5 => False), -- Return_Statement_Entity (Node5-Sem)
11378 N_Package_Declaration =>
11379 (1 => True, -- Specification (Node1)
11380 2 => False, -- unused
11381 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11382 4 => False, -- Parent_Spec (Node4-Sem)
11383 5 => False), -- Corresponding_Body (Node5-Sem)
11385 N_Package_Specification =>
11386 (1 => True, -- Defining_Unit_Name (Node1)
11387 2 => True, -- Visible_Declarations (List2)
11388 3 => True, -- Private_Declarations (List3)
11389 4 => True, -- End_Label (Node4)
11390 5 => False), -- Generic_Parent (Node5-Sem)
11393 (1 => True, -- Defining_Unit_Name (Node1)
11394 2 => True, -- Declarations (List2)
11395 3 => False, -- unused
11396 4 => True, -- Handled_Statement_Sequence (Node4)
11397 5 => False), -- Corresponding_Spec (Node5-Sem)
11399 N_Private_Type_Declaration =>
11400 (1 => True, -- Defining_Identifier (Node1)
11401 2 => False, -- unused
11402 3 => False, -- unused
11403 4 => True, -- Discriminant_Specifications (List4)
11404 5 => False), -- unused
11406 N_Private_Extension_Declaration =>
11407 (1 => True, -- Defining_Identifier (Node1)
11408 2 => True, -- Interface_List (List2)
11409 3 => False, -- unused
11410 4 => True, -- Discriminant_Specifications (List4)
11411 5 => True), -- Subtype_Indication (Node5)
11413 N_Use_Package_Clause =>
11414 (1 => False, -- unused
11415 2 => True, -- Names (List2)
11416 3 => False, -- Next_Use_Clause (Node3-Sem)
11417 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11418 5 => False), -- unused
11420 N_Use_Type_Clause =>
11421 (1 => False, -- unused
11422 2 => True, -- Subtype_Marks (List2)
11423 3 => False, -- Next_Use_Clause (Node3-Sem)
11424 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11425 5 => False), -- unused
11427 N_Object_Renaming_Declaration =>
11428 (1 => True, -- Defining_Identifier (Node1)
11429 2 => True, -- Name (Node2)
11430 3 => True, -- Access_Definition (Node3)
11431 4 => True, -- Subtype_Mark (Node4)
11432 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11434 N_Exception_Renaming_Declaration =>
11435 (1 => True, -- Defining_Identifier (Node1)
11436 2 => True, -- Name (Node2)
11437 3 => False, -- unused
11438 4 => False, -- unused
11439 5 => False), -- unused
11441 N_Package_Renaming_Declaration =>
11442 (1 => True, -- Defining_Unit_Name (Node1)
11443 2 => True, -- Name (Node2)
11444 3 => False, -- unused
11445 4 => False, -- Parent_Spec (Node4-Sem)
11446 5 => False), -- unused
11448 N_Subprogram_Renaming_Declaration =>
11449 (1 => True, -- Specification (Node1)
11450 2 => True, -- Name (Node2)
11451 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11452 4 => False, -- Parent_Spec (Node4-Sem)
11453 5 => False), -- Corresponding_Spec (Node5-Sem)
11455 N_Generic_Package_Renaming_Declaration =>
11456 (1 => True, -- Defining_Unit_Name (Node1)
11457 2 => True, -- Name (Node2)
11458 3 => False, -- unused
11459 4 => False, -- Parent_Spec (Node4-Sem)
11460 5 => False), -- unused
11462 N_Generic_Procedure_Renaming_Declaration =>
11463 (1 => True, -- Defining_Unit_Name (Node1)
11464 2 => True, -- Name (Node2)
11465 3 => False, -- unused
11466 4 => False, -- Parent_Spec (Node4-Sem)
11467 5 => False), -- unused
11469 N_Generic_Function_Renaming_Declaration =>
11470 (1 => True, -- Defining_Unit_Name (Node1)
11471 2 => True, -- Name (Node2)
11472 3 => False, -- unused
11473 4 => False, -- Parent_Spec (Node4-Sem)
11474 5 => False), -- unused
11476 N_Task_Type_Declaration =>
11477 (1 => True, -- Defining_Identifier (Node1)
11478 2 => True, -- Interface_List (List2)
11479 3 => True, -- Task_Definition (Node3)
11480 4 => True, -- Discriminant_Specifications (List4)
11481 5 => False), -- Corresponding_Body (Node5-Sem)
11483 N_Single_Task_Declaration =>
11484 (1 => True, -- Defining_Identifier (Node1)
11485 2 => True, -- Interface_List (List2)
11486 3 => True, -- Task_Definition (Node3)
11487 4 => False, -- unused
11488 5 => False), -- unused
11490 N_Task_Definition =>
11491 (1 => False, -- unused
11492 2 => True, -- Visible_Declarations (List2)
11493 3 => True, -- Private_Declarations (List3)
11494 4 => True, -- End_Label (Node4)
11495 5 => False), -- unused
11498 (1 => True, -- Defining_Identifier (Node1)
11499 2 => True, -- Declarations (List2)
11500 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11501 4 => True, -- Handled_Statement_Sequence (Node4)
11502 5 => False), -- Corresponding_Spec (Node5-Sem)
11504 N_Protected_Type_Declaration =>
11505 (1 => True, -- Defining_Identifier (Node1)
11506 2 => True, -- Interface_List (List2)
11507 3 => True, -- Protected_Definition (Node3)
11508 4 => True, -- Discriminant_Specifications (List4)
11509 5 => False), -- Corresponding_Body (Node5-Sem)
11511 N_Single_Protected_Declaration =>
11512 (1 => True, -- Defining_Identifier (Node1)
11513 2 => True, -- Interface_List (List2)
11514 3 => True, -- Protected_Definition (Node3)
11515 4 => False, -- unused
11516 5 => False), -- unused
11518 N_Protected_Definition =>
11519 (1 => False, -- unused
11520 2 => True, -- Visible_Declarations (List2)
11521 3 => True, -- Private_Declarations (List3)
11522 4 => True, -- End_Label (Node4)
11523 5 => False), -- unused
11525 N_Protected_Body =>
11526 (1 => True, -- Defining_Identifier (Node1)
11527 2 => True, -- Declarations (List2)
11528 3 => False, -- unused
11529 4 => True, -- End_Label (Node4)
11530 5 => False), -- Corresponding_Spec (Node5-Sem)
11532 N_Entry_Declaration =>
11533 (1 => True, -- Defining_Identifier (Node1)
11534 2 => False, -- unused
11535 3 => True, -- Parameter_Specifications (List3)
11536 4 => True, -- Discrete_Subtype_Definition (Node4)
11537 5 => False), -- Corresponding_Body (Node5-Sem)
11539 N_Accept_Statement =>
11540 (1 => True, -- Entry_Direct_Name (Node1)
11541 2 => True, -- Declarations (List2)
11542 3 => True, -- Parameter_Specifications (List3)
11543 4 => True, -- Handled_Statement_Sequence (Node4)
11544 5 => True), -- Entry_Index (Node5)
11547 (1 => True, -- Defining_Identifier (Node1)
11548 2 => True, -- Declarations (List2)
11549 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11550 4 => True, -- Handled_Statement_Sequence (Node4)
11551 5 => True), -- Entry_Body_Formal_Part (Node5)
11553 N_Entry_Body_Formal_Part =>
11554 (1 => True, -- Condition (Node1)
11555 2 => False, -- unused
11556 3 => True, -- Parameter_Specifications (List3)
11557 4 => True, -- Entry_Index_Specification (Node4)
11558 5 => False), -- unused
11560 N_Entry_Index_Specification =>
11561 (1 => True, -- Defining_Identifier (Node1)
11562 2 => False, -- unused
11563 3 => False, -- unused
11564 4 => True, -- Discrete_Subtype_Definition (Node4)
11565 5 => False), -- unused
11567 N_Entry_Call_Statement =>
11568 (1 => False, -- unused
11569 2 => True, -- Name (Node2)
11570 3 => True, -- Parameter_Associations (List3)
11571 4 => False, -- First_Named_Actual (Node4-Sem)
11572 5 => False), -- unused
11574 N_Requeue_Statement =>
11575 (1 => False, -- unused
11576 2 => True, -- Name (Node2)
11577 3 => False, -- unused
11578 4 => False, -- unused
11579 5 => False), -- unused
11581 N_Delay_Until_Statement =>
11582 (1 => False, -- unused
11583 2 => False, -- unused
11584 3 => True, -- Expression (Node3)
11585 4 => False, -- unused
11586 5 => False), -- unused
11588 N_Delay_Relative_Statement =>
11589 (1 => False, -- unused
11590 2 => False, -- unused
11591 3 => True, -- Expression (Node3)
11592 4 => False, -- unused
11593 5 => False), -- unused
11595 N_Selective_Accept =>
11596 (1 => True, -- Select_Alternatives (List1)
11597 2 => False, -- unused
11598 3 => False, -- unused
11599 4 => True, -- Else_Statements (List4)
11600 5 => False), -- unused
11602 N_Accept_Alternative =>
11603 (1 => True, -- Condition (Node1)
11604 2 => True, -- Accept_Statement (Node2)
11605 3 => True, -- Statements (List3)
11606 4 => True, -- Pragmas_Before (List4)
11607 5 => False), -- Accept_Handler_Records (List5-Sem)
11609 N_Delay_Alternative =>
11610 (1 => True, -- Condition (Node1)
11611 2 => True, -- Delay_Statement (Node2)
11612 3 => True, -- Statements (List3)
11613 4 => True, -- Pragmas_Before (List4)
11614 5 => False), -- unused
11616 N_Terminate_Alternative =>
11617 (1 => True, -- Condition (Node1)
11618 2 => False, -- unused
11619 3 => False, -- unused
11620 4 => True, -- Pragmas_Before (List4)
11621 5 => True), -- Pragmas_After (List5)
11623 N_Timed_Entry_Call =>
11624 (1 => True, -- Entry_Call_Alternative (Node1)
11625 2 => False, -- unused
11626 3 => False, -- unused
11627 4 => True, -- Delay_Alternative (Node4)
11628 5 => False), -- unused
11630 N_Entry_Call_Alternative =>
11631 (1 => True, -- Entry_Call_Statement (Node1)
11632 2 => False, -- unused
11633 3 => True, -- Statements (List3)
11634 4 => True, -- Pragmas_Before (List4)
11635 5 => False), -- unused
11637 N_Conditional_Entry_Call =>
11638 (1 => True, -- Entry_Call_Alternative (Node1)
11639 2 => False, -- unused
11640 3 => False, -- unused
11641 4 => True, -- Else_Statements (List4)
11642 5 => False), -- unused
11644 N_Asynchronous_Select =>
11645 (1 => True, -- Triggering_Alternative (Node1)
11646 2 => True, -- Abortable_Part (Node2)
11647 3 => False, -- unused
11648 4 => False, -- unused
11649 5 => False), -- unused
11651 N_Triggering_Alternative =>
11652 (1 => True, -- Triggering_Statement (Node1)
11653 2 => False, -- unused
11654 3 => True, -- Statements (List3)
11655 4 => True, -- Pragmas_Before (List4)
11656 5 => False), -- unused
11658 N_Abortable_Part =>
11659 (1 => False, -- unused
11660 2 => False, -- unused
11661 3 => True, -- Statements (List3)
11662 4 => False, -- unused
11663 5 => False), -- unused
11665 N_Abort_Statement =>
11666 (1 => False, -- unused
11667 2 => True, -- Names (List2)
11668 3 => False, -- unused
11669 4 => False, -- unused
11670 5 => False), -- unused
11672 N_Compilation_Unit =>
11673 (1 => True, -- Context_Items (List1)
11674 2 => True, -- Unit (Node2)
11675 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11676 4 => False, -- Library_Unit (Node4-Sem)
11677 5 => True), -- Aux_Decls_Node (Node5)
11679 N_Compilation_Unit_Aux =>
11680 (1 => True, -- Actions (List1)
11681 2 => True, -- Declarations (List2)
11682 3 => False, -- Default_Storage_Pool (Node3)
11683 4 => True, -- Config_Pragmas (List4)
11684 5 => True), -- Pragmas_After (List5)
11687 (1 => False, -- unused
11688 2 => True, -- Name (Node2)
11689 3 => False, -- unused
11690 4 => False, -- Library_Unit (Node4-Sem)
11691 5 => False), -- Corresponding_Spec (Node5-Sem)
11693 N_Subprogram_Body_Stub =>
11694 (1 => True, -- Specification (Node1)
11695 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11696 3 => False, -- unused
11697 4 => False, -- Library_Unit (Node4-Sem)
11698 5 => False), -- Corresponding_Body (Node5-Sem)
11700 N_Package_Body_Stub =>
11701 (1 => True, -- Defining_Identifier (Node1)
11702 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11703 3 => False, -- unused
11704 4 => False, -- Library_Unit (Node4-Sem)
11705 5 => False), -- Corresponding_Body (Node5-Sem)
11707 N_Task_Body_Stub =>
11708 (1 => True, -- Defining_Identifier (Node1)
11709 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11710 3 => False, -- unused
11711 4 => False, -- Library_Unit (Node4-Sem)
11712 5 => False), -- Corresponding_Body (Node5-Sem)
11714 N_Protected_Body_Stub =>
11715 (1 => True, -- Defining_Identifier (Node1)
11716 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11717 3 => False, -- unused
11718 4 => False, -- Library_Unit (Node4-Sem)
11719 5 => False), -- Corresponding_Body (Node5-Sem)
11722 (1 => True, -- Proper_Body (Node1)
11723 2 => True, -- Name (Node2)
11724 3 => False, -- Corresponding_Stub (Node3-Sem)
11725 4 => False, -- unused
11726 5 => False), -- unused
11728 N_Exception_Declaration =>
11729 (1 => True, -- Defining_Identifier (Node1)
11730 2 => False, -- unused
11731 3 => False, -- Expression (Node3-Sem)
11732 4 => False, -- unused
11733 5 => False), -- unused
11735 N_Handled_Sequence_Of_Statements =>
11736 (1 => True, -- At_End_Proc (Node1)
11737 2 => False, -- First_Real_Statement (Node2-Sem)
11738 3 => True, -- Statements (List3)
11739 4 => True, -- End_Label (Node4)
11740 5 => True), -- Exception_Handlers (List5)
11742 N_Exception_Handler =>
11743 (1 => False, -- Local_Raise_Statements (Elist1)
11744 2 => True, -- Choice_Parameter (Node2)
11745 3 => True, -- Statements (List3)
11746 4 => True, -- Exception_Choices (List4)
11747 5 => False), -- Exception_Label (Node5)
11749 N_Raise_Statement =>
11750 (1 => False, -- unused
11751 2 => True, -- Name (Node2)
11752 3 => True, -- Expression (Node3)
11753 4 => False, -- unused
11754 5 => False), -- unused
11756 N_Raise_Expression =>
11757 (1 => False, -- unused
11758 2 => True, -- Name (Node2)
11759 3 => True, -- Expression (Node3)
11760 4 => False, -- unused
11761 5 => False), -- Etype (Node5-Sem)
11763 N_Generic_Subprogram_Declaration =>
11764 (1 => True, -- Specification (Node1)
11765 2 => True, -- Generic_Formal_Declarations (List2)
11766 3 => False, -- unused
11767 4 => False, -- Parent_Spec (Node4-Sem)
11768 5 => False), -- Corresponding_Body (Node5-Sem)
11770 N_Generic_Package_Declaration =>
11771 (1 => True, -- Specification (Node1)
11772 2 => True, -- Generic_Formal_Declarations (List2)
11773 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11774 4 => False, -- Parent_Spec (Node4-Sem)
11775 5 => False), -- Corresponding_Body (Node5-Sem)
11777 N_Package_Instantiation =>
11778 (1 => True, -- Defining_Unit_Name (Node1)
11779 2 => True, -- Name (Node2)
11780 3 => True, -- Generic_Associations (List3)
11781 4 => False, -- Parent_Spec (Node4-Sem)
11782 5 => False), -- Instance_Spec (Node5-Sem)
11784 N_Procedure_Instantiation =>
11785 (1 => True, -- Defining_Unit_Name (Node1)
11786 2 => True, -- Name (Node2)
11787 3 => True, -- Generic_Associations (List3)
11788 4 => False, -- Parent_Spec (Node4-Sem)
11789 5 => False), -- Instance_Spec (Node5-Sem)
11791 N_Function_Instantiation =>
11792 (1 => True, -- Defining_Unit_Name (Node1)
11793 2 => True, -- Name (Node2)
11794 3 => True, -- Generic_Associations (List3)
11795 4 => False, -- Parent_Spec (Node4-Sem)
11796 5 => False), -- Instance_Spec (Node5-Sem)
11798 N_Generic_Association =>
11799 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11800 2 => True, -- Selector_Name (Node2)
11801 3 => False, -- unused
11802 4 => False, -- unused
11803 5 => False), -- unused
11805 N_Formal_Object_Declaration =>
11806 (1 => True, -- Defining_Identifier (Node1)
11807 2 => False, -- unused
11808 3 => True, -- Access_Definition (Node3)
11809 4 => True, -- Subtype_Mark (Node4)
11810 5 => True), -- Default_Expression (Node5)
11812 N_Formal_Type_Declaration =>
11813 (1 => True, -- Defining_Identifier (Node1)
11814 2 => False, -- unused
11815 3 => True, -- Formal_Type_Definition (Node3)
11816 4 => True, -- Discriminant_Specifications (List4)
11817 5 => False), -- unused
11819 N_Formal_Private_Type_Definition =>
11820 (1 => False, -- unused
11821 2 => False, -- unused
11822 3 => False, -- unused
11823 4 => False, -- unused
11824 5 => False), -- unused
11826 N_Formal_Incomplete_Type_Definition =>
11827 (1 => False, -- unused
11828 2 => False, -- unused
11829 3 => False, -- unused
11830 4 => False, -- unused
11831 5 => False), -- unused
11833 N_Formal_Derived_Type_Definition =>
11834 (1 => False, -- unused
11835 2 => True, -- Interface_List (List2)
11836 3 => False, -- unused
11837 4 => True, -- Subtype_Mark (Node4)
11838 5 => False), -- unused
11840 N_Formal_Discrete_Type_Definition =>
11841 (1 => False, -- unused
11842 2 => False, -- unused
11843 3 => False, -- unused
11844 4 => False, -- unused
11845 5 => False), -- unused
11847 N_Formal_Signed_Integer_Type_Definition =>
11848 (1 => False, -- unused
11849 2 => False, -- unused
11850 3 => False, -- unused
11851 4 => False, -- unused
11852 5 => False), -- unused
11854 N_Formal_Modular_Type_Definition =>
11855 (1 => False, -- unused
11856 2 => False, -- unused
11857 3 => False, -- unused
11858 4 => False, -- unused
11859 5 => False), -- unused
11861 N_Formal_Floating_Point_Definition =>
11862 (1 => False, -- unused
11863 2 => False, -- unused
11864 3 => False, -- unused
11865 4 => False, -- unused
11866 5 => False), -- unused
11868 N_Formal_Ordinary_Fixed_Point_Definition =>
11869 (1 => False, -- unused
11870 2 => False, -- unused
11871 3 => False, -- unused
11872 4 => False, -- unused
11873 5 => False), -- unused
11875 N_Formal_Decimal_Fixed_Point_Definition =>
11876 (1 => False, -- unused
11877 2 => False, -- unused
11878 3 => False, -- unused
11879 4 => False, -- unused
11880 5 => False), -- unused
11882 N_Formal_Concrete_Subprogram_Declaration =>
11883 (1 => True, -- Specification (Node1)
11884 2 => True, -- Default_Name (Node2)
11885 3 => False, -- unused
11886 4 => False, -- unused
11887 5 => False), -- unused
11889 N_Formal_Abstract_Subprogram_Declaration =>
11890 (1 => True, -- Specification (Node1)
11891 2 => True, -- Default_Name (Node2)
11892 3 => False, -- unused
11893 4 => False, -- unused
11894 5 => False), -- unused
11896 N_Formal_Package_Declaration =>
11897 (1 => True, -- Defining_Identifier (Node1)
11898 2 => True, -- Name (Node2)
11899 3 => True, -- Generic_Associations (List3)
11900 4 => False, -- unused
11901 5 => False), -- Instance_Spec (Node5-Sem)
11903 N_Attribute_Definition_Clause =>
11904 (1 => True, -- Chars (Name1)
11905 2 => True, -- Name (Node2)
11906 3 => True, -- Expression (Node3)
11907 4 => False, -- unused
11908 5 => False), -- Next_Rep_Item (Node5-Sem)
11910 N_Aspect_Specification =>
11911 (1 => True, -- Identifier (Node1)
11912 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11913 3 => True, -- Expression (Node3)
11914 4 => False, -- Entity (Node4-Sem)
11915 5 => False), -- Next_Rep_Item (Node5-Sem)
11917 N_Enumeration_Representation_Clause =>
11918 (1 => True, -- Identifier (Node1)
11919 2 => False, -- unused
11920 3 => True, -- Array_Aggregate (Node3)
11921 4 => False, -- unused
11922 5 => False), -- Next_Rep_Item (Node5-Sem)
11924 N_Record_Representation_Clause =>
11925 (1 => True, -- Identifier (Node1)
11926 2 => True, -- Mod_Clause (Node2)
11927 3 => True, -- Component_Clauses (List3)
11928 4 => False, -- unused
11929 5 => False), -- Next_Rep_Item (Node5-Sem)
11931 N_Component_Clause =>
11932 (1 => True, -- Component_Name (Node1)
11933 2 => True, -- Position (Node2)
11934 3 => True, -- First_Bit (Node3)
11935 4 => True, -- Last_Bit (Node4)
11936 5 => False), -- unused
11938 N_Code_Statement =>
11939 (1 => False, -- unused
11940 2 => False, -- unused
11941 3 => True, -- Expression (Node3)
11942 4 => False, -- unused
11943 5 => False), -- unused
11945 N_Op_Rotate_Left =>
11946 (1 => True, -- Chars (Name1)
11947 2 => True, -- Left_Opnd (Node2)
11948 3 => True, -- Right_Opnd (Node3)
11949 4 => False, -- Entity (Node4-Sem)
11950 5 => False), -- Etype (Node5-Sem)
11952 N_Op_Rotate_Right =>
11953 (1 => True, -- Chars (Name1)
11954 2 => True, -- Left_Opnd (Node2)
11955 3 => True, -- Right_Opnd (Node3)
11956 4 => False, -- Entity (Node4-Sem)
11957 5 => False), -- Etype (Node5-Sem)
11960 (1 => True, -- Chars (Name1)
11961 2 => True, -- Left_Opnd (Node2)
11962 3 => True, -- Right_Opnd (Node3)
11963 4 => False, -- Entity (Node4-Sem)
11964 5 => False), -- Etype (Node5-Sem)
11966 N_Op_Shift_Right_Arithmetic =>
11967 (1 => True, -- Chars (Name1)
11968 2 => True, -- Left_Opnd (Node2)
11969 3 => True, -- Right_Opnd (Node3)
11970 4 => False, -- Entity (Node4-Sem)
11971 5 => False), -- Etype (Node5-Sem)
11973 N_Op_Shift_Right =>
11974 (1 => True, -- Chars (Name1)
11975 2 => True, -- Left_Opnd (Node2)
11976 3 => True, -- Right_Opnd (Node3)
11977 4 => False, -- Entity (Node4-Sem)
11978 5 => False), -- Etype (Node5-Sem)
11980 N_Delta_Constraint =>
11981 (1 => False, -- unused
11982 2 => False, -- unused
11983 3 => True, -- Delta_Expression (Node3)
11984 4 => True, -- Range_Constraint (Node4)
11985 5 => False), -- unused
11988 (1 => True, -- Identifier (Node1)
11989 2 => False, -- unused
11990 3 => True, -- Expression (Node3)
11991 4 => False, -- unused
11992 5 => False), -- unused
11995 (1 => False, -- unused
11996 2 => False, -- unused
11997 3 => True, -- Expression (Node3)
11998 4 => True, -- Pragmas_Before (List4)
11999 5 => False), -- unused
12002 (1 => True, -- Expressions (List1)
12003 2 => False, -- Then_Actions (List2-Sem)
12004 3 => False, -- Else_Actions (List3-Sem)
12005 4 => False, -- unused
12006 5 => False), -- Etype (Node5-Sem)
12009 (1 => False, -- Pre_Post_Conditions (Node1)
12010 2 => False, -- Contract_Test_Cases (Node2)
12011 3 => False, -- Classifications (Node3)
12012 4 => False, -- unused
12013 5 => False), -- unused
12016 (1 => True, -- Chars (Name1)
12017 2 => True, -- Selector_Name (Node2)
12018 3 => True, -- Prefix (Node3)
12019 4 => False, -- Entity (Node4-Sem)
12020 5 => False), -- Etype (Node5-Sem)
12022 N_Expression_With_Actions =>
12023 (1 => True, -- Actions (List1)
12024 2 => False, -- unused
12025 3 => True, -- Expression (Node3)
12026 4 => False, -- unused
12027 5 => False), -- unused
12029 N_Free_Statement =>
12030 (1 => False, -- Storage_Pool (Node1-Sem)
12031 2 => False, -- Procedure_To_Call (Node2-Sem)
12032 3 => True, -- Expression (Node3)
12033 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12034 5 => False), -- unused
12037 (1 => True, -- Actions (List1)
12038 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12039 3 => False, -- TSS_Elist (Elist3-Sem)
12040 4 => False, -- Entity (Node4-Sem)
12041 5 => False), -- First_Subtype_Link (Node5-Sem)
12043 N_Freeze_Generic_Entity =>
12044 (1 => False, -- unused
12045 2 => False, -- unused
12046 3 => False, -- unused
12047 4 => False, -- Entity (Node4-Sem)
12048 5 => False), -- unused
12050 N_Implicit_Label_Declaration =>
12051 (1 => True, -- Defining_Identifier (Node1)
12052 2 => False, -- Label_Construct (Node2-Sem)
12053 3 => False, -- unused
12054 4 => False, -- unused
12055 5 => False), -- unused
12057 N_Itype_Reference =>
12058 (1 => False, -- Itype (Node1-Sem)
12059 2 => False, -- unused
12060 3 => False, -- unused
12061 4 => False, -- unused
12062 5 => False), -- unused
12064 N_Raise_Constraint_Error =>
12065 (1 => True, -- Condition (Node1)
12066 2 => False, -- unused
12067 3 => True, -- Reason (Uint3)
12068 4 => False, -- unused
12069 5 => False), -- Etype (Node5-Sem)
12071 N_Raise_Program_Error =>
12072 (1 => True, -- Condition (Node1)
12073 2 => False, -- unused
12074 3 => True, -- Reason (Uint3)
12075 4 => False, -- unused
12076 5 => False), -- Etype (Node5-Sem)
12078 N_Raise_Storage_Error =>
12079 (1 => True, -- Condition (Node1)
12080 2 => False, -- unused
12081 3 => True, -- Reason (Uint3)
12082 4 => False, -- unused
12083 5 => False), -- Etype (Node5-Sem)
12085 N_Push_Constraint_Error_Label =>
12086 (1 => False, -- unused
12087 2 => False, -- unused
12088 3 => False, -- unused
12089 4 => False, -- unused
12090 5 => False), -- unused
12092 N_Push_Program_Error_Label =>
12093 (1 => False, -- Exception_Label
12094 2 => False, -- unused
12095 3 => False, -- unused
12096 4 => False, -- unused
12097 5 => False), -- Exception_Label
12099 N_Push_Storage_Error_Label =>
12100 (1 => False, -- Exception_Label
12101 2 => False, -- unused
12102 3 => False, -- unused
12103 4 => False, -- unused
12104 5 => False), -- Exception_Label
12106 N_Pop_Constraint_Error_Label =>
12107 (1 => False, -- unused
12108 2 => False, -- unused
12109 3 => False, -- unused
12110 4 => False, -- unused
12111 5 => False), -- unused
12113 N_Pop_Program_Error_Label =>
12114 (1 => False, -- unused
12115 2 => False, -- unused
12116 3 => False, -- unused
12117 4 => False, -- unused
12118 5 => False), -- unused
12120 N_Pop_Storage_Error_Label =>
12121 (1 => False, -- unused
12122 2 => False, -- unused
12123 3 => False, -- unused
12124 4 => False, -- unused
12125 5 => False), -- unused
12128 (1 => False, -- unused
12129 2 => False, -- unused
12130 3 => True, -- Prefix (Node3)
12131 4 => False, -- unused
12132 5 => False), -- Etype (Node5-Sem)
12134 N_Unchecked_Expression =>
12135 (1 => False, -- unused
12136 2 => False, -- unused
12137 3 => True, -- Expression (Node3)
12138 4 => False, -- unused
12139 5 => False), -- Etype (Node5-Sem)
12141 N_Unchecked_Type_Conversion =>
12142 (1 => False, -- unused
12143 2 => False, -- unused
12144 3 => True, -- Expression (Node3)
12145 4 => True, -- Subtype_Mark (Node4)
12146 5 => False), -- Etype (Node5-Sem)
12148 N_Validate_Unchecked_Conversion =>
12149 (1 => False, -- Source_Type (Node1-Sem)
12150 2 => False, -- Target_Type (Node2-Sem)
12151 3 => False, -- unused
12152 4 => False, -- unused
12153 5 => False), -- unused
12155 -- Entries for SCIL nodes
12157 N_SCIL_Dispatch_Table_Tag_Init =>
12158 (1 => False, -- unused
12159 2 => False, -- unused
12160 3 => False, -- unused
12161 4 => False, -- SCIL_Entity (Node4-Sem)
12162 5 => False), -- unused
12164 N_SCIL_Dispatching_Call =>
12165 (1 => False, -- unused
12166 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12167 3 => False, -- unused
12168 4 => False, -- SCIL_Entity (Node4-Sem)
12169 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12171 N_SCIL_Membership_Test =>
12172 (1 => False, -- unused
12173 2 => False, -- unused
12174 3 => False, -- unused
12175 4 => False, -- SCIL_Entity (Node4-Sem)
12176 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12178 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12179 -- field for debugging purposes, they are not really syntactic fields, so
12180 -- we mark all fields as unused.
12183 (1 => False, -- unused
12184 2 => False, -- unused
12185 3 => False, -- unused
12186 4 => False, -- unused
12187 5 => False), -- unused
12190 (1 => False, -- unused
12191 2 => False, -- unused
12192 3 => False, -- unused
12193 4 => False, -- unused
12194 5 => False), -- unused
12196 N_Unused_At_Start =>
12197 (1 => False, -- unused
12198 2 => False, -- unused
12199 3 => False, -- unused
12200 4 => False, -- unused
12201 5 => False), -- unused
12204 (1 => False, -- unused
12205 2 => False, -- unused
12206 3 => False, -- unused
12207 4 => False, -- unused
12208 5 => False)); -- unused
12210 --------------------
12211 -- Inline Pragmas --
12212 --------------------
12214 pragma Inline (ABE_Is_Certain);
12215 pragma Inline (Abort_Present);
12216 pragma Inline (Abortable_Part);
12217 pragma Inline (Abstract_Present);
12218 pragma Inline (Accept_Handler_Records);
12219 pragma Inline (Accept_Statement);
12220 pragma Inline (Access_Definition);
12221 pragma Inline (Access_To_Subprogram_Definition);
12222 pragma Inline (Access_Types_To_Process);
12223 pragma Inline (Actions);
12224 pragma Inline (Activation_Chain_Entity);
12225 pragma Inline (Acts_As_Spec);
12226 pragma Inline (Actual_Designated_Subtype);
12227 pragma Inline (Address_Warning_Posted);
12228 pragma Inline (Aggregate_Bounds);
12229 pragma Inline (Aliased_Present);
12230 pragma Inline (All_Others);
12231 pragma Inline (All_Present);
12232 pragma Inline (Alternatives);
12233 pragma Inline (Ancestor_Part);
12234 pragma Inline (Atomic_Sync_Required);
12235 pragma Inline (Array_Aggregate);
12236 pragma Inline (Aspect_Rep_Item);
12237 pragma Inline (Assignment_OK);
12238 pragma Inline (Associated_Node);
12239 pragma Inline (At_End_Proc);
12240 pragma Inline (Attribute_Name);
12241 pragma Inline (Aux_Decls_Node);
12242 pragma Inline (Backwards_OK);
12243 pragma Inline (Bad_Is_Detected);
12244 pragma Inline (Body_To_Inline);
12245 pragma Inline (Body_Required);
12246 pragma Inline (By_Ref);
12247 pragma Inline (Box_Present);
12248 pragma Inline (Char_Literal_Value);
12249 pragma Inline (Chars);
12250 pragma Inline (Check_Address_Alignment);
12251 pragma Inline (Choice_Parameter);
12252 pragma Inline (Choices);
12253 pragma Inline (Class_Present);
12254 pragma Inline (Classifications);
12255 pragma Inline (Comes_From_Extended_Return_Statement);
12256 pragma Inline (Compile_Time_Known_Aggregate);
12257 pragma Inline (Component_Associations);
12258 pragma Inline (Component_Clauses);
12259 pragma Inline (Component_Definition);
12260 pragma Inline (Component_Items);
12261 pragma Inline (Component_List);
12262 pragma Inline (Component_Name);
12263 pragma Inline (Componentwise_Assignment);
12264 pragma Inline (Condition);
12265 pragma Inline (Condition_Actions);
12266 pragma Inline (Config_Pragmas);
12267 pragma Inline (Constant_Present);
12268 pragma Inline (Constraint);
12269 pragma Inline (Constraints);
12270 pragma Inline (Context_Installed);
12271 pragma Inline (Context_Items);
12272 pragma Inline (Context_Pending);
12273 pragma Inline (Contract_Test_Cases);
12274 pragma Inline (Controlling_Argument);
12275 pragma Inline (Convert_To_Return_False);
12276 pragma Inline (Conversion_OK);
12277 pragma Inline (Corresponding_Aspect);
12278 pragma Inline (Corresponding_Body);
12279 pragma Inline (Corresponding_Formal_Spec);
12280 pragma Inline (Corresponding_Generic_Association);
12281 pragma Inline (Corresponding_Integer_Value);
12282 pragma Inline (Corresponding_Spec);
12283 pragma Inline (Corresponding_Spec_Of_Stub);
12284 pragma Inline (Corresponding_Stub);
12285 pragma Inline (Dcheck_Function);
12286 pragma Inline (Declarations);
12287 pragma Inline (Default_Expression);
12288 pragma Inline (Default_Storage_Pool);
12289 pragma Inline (Default_Name);
12290 pragma Inline (Defining_Identifier);
12291 pragma Inline (Defining_Unit_Name);
12292 pragma Inline (Delay_Alternative);
12293 pragma Inline (Delay_Statement);
12294 pragma Inline (Delta_Expression);
12295 pragma Inline (Digits_Expression);
12296 pragma Inline (Discr_Check_Funcs_Built);
12297 pragma Inline (Discrete_Choices);
12298 pragma Inline (Discrete_Range);
12299 pragma Inline (Discrete_Subtype_Definition);
12300 pragma Inline (Discrete_Subtype_Definitions);
12301 pragma Inline (Discriminant_Specifications);
12302 pragma Inline (Discriminant_Type);
12303 pragma Inline (Do_Accessibility_Check);
12304 pragma Inline (Do_Discriminant_Check);
12305 pragma Inline (Do_Length_Check);
12306 pragma Inline (Do_Division_Check);
12307 pragma Inline (Do_Overflow_Check);
12308 pragma Inline (Do_Range_Check);
12309 pragma Inline (Do_Storage_Check);
12310 pragma Inline (Do_Tag_Check);
12311 pragma Inline (Elaborate_Present);
12312 pragma Inline (Elaborate_All_Desirable);
12313 pragma Inline (Elaborate_All_Present);
12314 pragma Inline (Elaborate_Desirable);
12315 pragma Inline (Elaboration_Boolean);
12316 pragma Inline (Else_Actions);
12317 pragma Inline (Else_Statements);
12318 pragma Inline (Elsif_Parts);
12319 pragma Inline (Enclosing_Variant);
12320 pragma Inline (End_Label);
12321 pragma Inline (End_Span);
12322 pragma Inline (Entity);
12323 pragma Inline (Entity_Or_Associated_Node);
12324 pragma Inline (Entry_Body_Formal_Part);
12325 pragma Inline (Entry_Call_Alternative);
12326 pragma Inline (Entry_Call_Statement);
12327 pragma Inline (Entry_Direct_Name);
12328 pragma Inline (Entry_Index);
12329 pragma Inline (Entry_Index_Specification);
12330 pragma Inline (Etype);
12331 pragma Inline (Exception_Choices);
12332 pragma Inline (Exception_Handlers);
12333 pragma Inline (Exception_Junk);
12334 pragma Inline (Exception_Label);
12335 pragma Inline (Expansion_Delayed);
12336 pragma Inline (Explicit_Actual_Parameter);
12337 pragma Inline (Explicit_Generic_Actual_Parameter);
12338 pragma Inline (Expression);
12339 pragma Inline (Expressions);
12340 pragma Inline (First_Bit);
12341 pragma Inline (First_Inlined_Subprogram);
12342 pragma Inline (First_Name);
12343 pragma Inline (First_Named_Actual);
12344 pragma Inline (First_Real_Statement);
12345 pragma Inline (First_Subtype_Link);
12346 pragma Inline (Float_Truncate);
12347 pragma Inline (Formal_Type_Definition);
12348 pragma Inline (Forwards_OK);
12349 pragma Inline (From_Aspect_Specification);
12350 pragma Inline (From_At_End);
12351 pragma Inline (From_At_Mod);
12352 pragma Inline (From_Default);
12353 pragma Inline (Generic_Associations);
12354 pragma Inline (Generic_Formal_Declarations);
12355 pragma Inline (Generic_Parent);
12356 pragma Inline (Generic_Parent_Type);
12357 pragma Inline (Handled_Statement_Sequence);
12358 pragma Inline (Handler_List_Entry);
12359 pragma Inline (Has_Created_Identifier);
12360 pragma Inline (Has_Dereference_Action);
12361 pragma Inline (Has_Dynamic_Length_Check);
12362 pragma Inline (Has_Dynamic_Range_Check);
12363 pragma Inline (Has_Init_Expression);
12364 pragma Inline (Has_Local_Raise);
12365 pragma Inline (Has_Self_Reference);
12366 pragma Inline (Has_SP_Choice);
12367 pragma Inline (Has_No_Elaboration_Code);
12368 pragma Inline (Has_Pragma_Suppress_All);
12369 pragma Inline (Has_Private_View);
12370 pragma Inline (Has_Relative_Deadline_Pragma);
12371 pragma Inline (Has_Storage_Size_Pragma);
12372 pragma Inline (Has_Wide_Character);
12373 pragma Inline (Has_Wide_Wide_Character);
12374 pragma Inline (Header_Size_Added);
12375 pragma Inline (Hidden_By_Use_Clause);
12376 pragma Inline (High_Bound);
12377 pragma Inline (Identifier);
12378 pragma Inline (Implicit_With);
12379 pragma Inline (Implicit_With_From_Instantiation);
12380 pragma Inline (Interface_List);
12381 pragma Inline (Interface_Present);
12382 pragma Inline (Includes_Infinities);
12383 pragma Inline (Import_Interface_Present);
12384 pragma Inline (In_Present);
12385 pragma Inline (Inherited_Discriminant);
12386 pragma Inline (Instance_Spec);
12387 pragma Inline (Intval);
12388 pragma Inline (Iterator_Specification);
12389 pragma Inline (Is_Accessibility_Actual);
12390 pragma Inline (Is_Asynchronous_Call_Block);
12391 pragma Inline (Is_Boolean_Aspect);
12392 pragma Inline (Is_Checked);
12393 pragma Inline (Is_Component_Left_Opnd);
12394 pragma Inline (Is_Component_Right_Opnd);
12395 pragma Inline (Is_Controlling_Actual);
12396 pragma Inline (Is_Delayed_Aspect);
12397 pragma Inline (Is_Disabled);
12398 pragma Inline (Is_Dynamic_Coextension);
12399 pragma Inline (Is_Elsif);
12400 pragma Inline (Is_Entry_Barrier_Function);
12401 pragma Inline (Is_Expanded_Build_In_Place_Call);
12402 pragma Inline (Is_Finalization_Wrapper);
12403 pragma Inline (Is_Folded_In_Parser);
12404 pragma Inline (Is_Ignored);
12405 pragma Inline (Is_In_Discriminant_Check);
12406 pragma Inline (Is_Machine_Number);
12407 pragma Inline (Is_Null_Loop);
12408 pragma Inline (Is_Overloaded);
12409 pragma Inline (Is_Power_Of_2_For_Shift);
12410 pragma Inline (Is_Prefixed_Call);
12411 pragma Inline (Is_Protected_Subprogram_Body);
12412 pragma Inline (Is_Static_Coextension);
12413 pragma Inline (Is_Static_Expression);
12414 pragma Inline (Is_Subprogram_Descriptor);
12415 pragma Inline (Is_Task_Allocation_Block);
12416 pragma Inline (Is_Task_Master);
12417 pragma Inline (Iteration_Scheme);
12418 pragma Inline (Itype);
12419 pragma Inline (Kill_Range_Check);
12420 pragma Inline (Last_Bit);
12421 pragma Inline (Last_Name);
12422 pragma Inline (Library_Unit);
12423 pragma Inline (Label_Construct);
12424 pragma Inline (Left_Opnd);
12425 pragma Inline (Limited_View_Installed);
12426 pragma Inline (Limited_Present);
12427 pragma Inline (Literals);
12428 pragma Inline (Local_Raise_Not_OK);
12429 pragma Inline (Local_Raise_Statements);
12430 pragma Inline (Loop_Actions);
12431 pragma Inline (Loop_Parameter_Specification);
12432 pragma Inline (Low_Bound);
12433 pragma Inline (Mod_Clause);
12434 pragma Inline (More_Ids);
12435 pragma Inline (Must_Be_Byte_Aligned);
12436 pragma Inline (Must_Not_Freeze);
12437 pragma Inline (Must_Not_Override);
12438 pragma Inline (Must_Override);
12439 pragma Inline (Name);
12440 pragma Inline (Names);
12441 pragma Inline (Next_Entity);
12442 pragma Inline (Next_Exit_Statement);
12443 pragma Inline (Next_Implicit_With);
12444 pragma Inline (Next_Named_Actual);
12445 pragma Inline (Next_Pragma);
12446 pragma Inline (Next_Rep_Item);
12447 pragma Inline (Next_Use_Clause);
12448 pragma Inline (No_Ctrl_Actions);
12449 pragma Inline (No_Elaboration_Check);
12450 pragma Inline (No_Entities_Ref_In_Spec);
12451 pragma Inline (No_Initialization);
12452 pragma Inline (No_Minimize_Eliminate);
12453 pragma Inline (No_Truncation);
12454 pragma Inline (Null_Present);
12455 pragma Inline (Null_Exclusion_Present);
12456 pragma Inline (Null_Exclusion_In_Return_Present);
12457 pragma Inline (Null_Record_Present);
12458 pragma Inline (Object_Definition);
12459 pragma Inline (Of_Present);
12460 pragma Inline (Original_Discriminant);
12461 pragma Inline (Original_Entity);
12462 pragma Inline (Others_Discrete_Choices);
12463 pragma Inline (Out_Present);
12464 pragma Inline (Parameter_Associations);
12465 pragma Inline (Parameter_Specifications);
12466 pragma Inline (Parameter_List_Truncated);
12467 pragma Inline (Parameter_Type);
12468 pragma Inline (Parent_Spec);
12469 pragma Inline (Position);
12470 pragma Inline (Pragma_Argument_Associations);
12471 pragma Inline (Pragma_Identifier);
12472 pragma Inline (Pragmas_After);
12473 pragma Inline (Pragmas_Before);
12474 pragma Inline (Pre_Post_Conditions);
12475 pragma Inline (Prefix);
12476 pragma Inline (Premature_Use);
12477 pragma Inline (Present_Expr);
12478 pragma Inline (Prev_Ids);
12479 pragma Inline (Print_In_Hex);
12480 pragma Inline (Private_Declarations);
12481 pragma Inline (Private_Present);
12482 pragma Inline (Procedure_To_Call);
12483 pragma Inline (Proper_Body);
12484 pragma Inline (Protected_Definition);
12485 pragma Inline (Protected_Present);
12486 pragma Inline (Raises_Constraint_Error);
12487 pragma Inline (Range_Constraint);
12488 pragma Inline (Range_Expression);
12489 pragma Inline (Real_Range_Specification);
12490 pragma Inline (Realval);
12491 pragma Inline (Reason);
12492 pragma Inline (Record_Extension_Part);
12493 pragma Inline (Redundant_Use);
12494 pragma Inline (Renaming_Exception);
12495 pragma Inline (Result_Definition);
12496 pragma Inline (Return_Object_Declarations);
12497 pragma Inline (Return_Statement_Entity);
12498 pragma Inline (Reverse_Present);
12499 pragma Inline (Right_Opnd);
12500 pragma Inline (Rounded_Result);
12501 pragma Inline (SCIL_Controlling_Tag);
12502 pragma Inline (SCIL_Entity);
12503 pragma Inline (SCIL_Tag_Value);
12504 pragma Inline (SCIL_Target_Prim);
12505 pragma Inline (Scope);
12506 pragma Inline (Select_Alternatives);
12507 pragma Inline (Selector_Name);
12508 pragma Inline (Selector_Names);
12509 pragma Inline (Shift_Count_OK);
12510 pragma Inline (Source_Type);
12511 pragma Inline (Specification);
12512 pragma Inline (Split_PPC);
12513 pragma Inline (Statements);
12514 pragma Inline (Storage_Pool);
12515 pragma Inline (Subpool_Handle_Name);
12516 pragma Inline (Strval);
12517 pragma Inline (Subtype_Indication);
12518 pragma Inline (Subtype_Mark);
12519 pragma Inline (Subtype_Marks);
12520 pragma Inline (Suppress_Assignment_Checks);
12521 pragma Inline (Suppress_Loop_Warnings);
12522 pragma Inline (Synchronized_Present);
12523 pragma Inline (Tagged_Present);
12524 pragma Inline (Target_Type);
12525 pragma Inline (Task_Definition);
12526 pragma Inline (Task_Present);
12527 pragma Inline (Then_Actions);
12528 pragma Inline (Then_Statements);
12529 pragma Inline (Triggering_Alternative);
12530 pragma Inline (Triggering_Statement);
12531 pragma Inline (Treat_Fixed_As_Integer);
12532 pragma Inline (TSS_Elist);
12533 pragma Inline (Type_Definition);
12534 pragma Inline (Unit);
12535 pragma Inline (Unknown_Discriminants_Present);
12536 pragma Inline (Unreferenced_In_Spec);
12537 pragma Inline (Variant_Part);
12538 pragma Inline (Variants);
12539 pragma Inline (Visible_Declarations);
12540 pragma Inline (Used_Operations);
12541 pragma Inline (Was_Originally_Stub);
12542 pragma Inline (Withed_Body);
12544 pragma Inline (Set_ABE_Is_Certain);
12545 pragma Inline (Set_Abort_Present);
12546 pragma Inline (Set_Abortable_Part);
12547 pragma Inline (Set_Abstract_Present);
12548 pragma Inline (Set_Accept_Handler_Records);
12549 pragma Inline (Set_Accept_Statement);
12550 pragma Inline (Set_Access_Definition);
12551 pragma Inline (Set_Access_To_Subprogram_Definition);
12552 pragma Inline (Set_Access_Types_To_Process);
12553 pragma Inline (Set_Actions);
12554 pragma Inline (Set_Activation_Chain_Entity);
12555 pragma Inline (Set_Acts_As_Spec);
12556 pragma Inline (Set_Actual_Designated_Subtype);
12557 pragma Inline (Set_Address_Warning_Posted);
12558 pragma Inline (Set_Aggregate_Bounds);
12559 pragma Inline (Set_Aliased_Present);
12560 pragma Inline (Set_All_Others);
12561 pragma Inline (Set_All_Present);
12562 pragma Inline (Set_Alternatives);
12563 pragma Inline (Set_Ancestor_Part);
12564 pragma Inline (Set_Array_Aggregate);
12565 pragma Inline (Set_Aspect_Rep_Item);
12566 pragma Inline (Set_Assignment_OK);
12567 pragma Inline (Set_Associated_Node);
12568 pragma Inline (Set_At_End_Proc);
12569 pragma Inline (Set_Atomic_Sync_Required);
12570 pragma Inline (Set_Attribute_Name);
12571 pragma Inline (Set_Aux_Decls_Node);
12572 pragma Inline (Set_Backwards_OK);
12573 pragma Inline (Set_Bad_Is_Detected);
12574 pragma Inline (Set_Body_Required);
12575 pragma Inline (Set_Body_To_Inline);
12576 pragma Inline (Set_Box_Present);
12577 pragma Inline (Set_By_Ref);
12578 pragma Inline (Set_Char_Literal_Value);
12579 pragma Inline (Set_Chars);
12580 pragma Inline (Set_Check_Address_Alignment);
12581 pragma Inline (Set_Choice_Parameter);
12582 pragma Inline (Set_Choices);
12583 pragma Inline (Set_Class_Present);
12584 pragma Inline (Set_Classifications);
12585 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12586 pragma Inline (Set_Compile_Time_Known_Aggregate);
12587 pragma Inline (Set_Component_Associations);
12588 pragma Inline (Set_Component_Clauses);
12589 pragma Inline (Set_Component_Definition);
12590 pragma Inline (Set_Component_Items);
12591 pragma Inline (Set_Component_List);
12592 pragma Inline (Set_Component_Name);
12593 pragma Inline (Set_Componentwise_Assignment);
12594 pragma Inline (Set_Condition);
12595 pragma Inline (Set_Condition_Actions);
12596 pragma Inline (Set_Config_Pragmas);
12597 pragma Inline (Set_Constant_Present);
12598 pragma Inline (Set_Constraint);
12599 pragma Inline (Set_Constraints);
12600 pragma Inline (Set_Context_Installed);
12601 pragma Inline (Set_Context_Items);
12602 pragma Inline (Set_Context_Pending);
12603 pragma Inline (Set_Contract_Test_Cases);
12604 pragma Inline (Set_Controlling_Argument);
12605 pragma Inline (Set_Conversion_OK);
12606 pragma Inline (Set_Convert_To_Return_False);
12607 pragma Inline (Set_Corresponding_Aspect);
12608 pragma Inline (Set_Corresponding_Body);
12609 pragma Inline (Set_Corresponding_Formal_Spec);
12610 pragma Inline (Set_Corresponding_Generic_Association);
12611 pragma Inline (Set_Corresponding_Integer_Value);
12612 pragma Inline (Set_Corresponding_Spec);
12613 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12614 pragma Inline (Set_Corresponding_Stub);
12615 pragma Inline (Set_Dcheck_Function);
12616 pragma Inline (Set_Declarations);
12617 pragma Inline (Set_Default_Expression);
12618 pragma Inline (Set_Default_Name);
12619 pragma Inline (Set_Default_Storage_Pool);
12620 pragma Inline (Set_Defining_Identifier);
12621 pragma Inline (Set_Defining_Unit_Name);
12622 pragma Inline (Set_Delay_Alternative);
12623 pragma Inline (Set_Delay_Statement);
12624 pragma Inline (Set_Delta_Expression);
12625 pragma Inline (Set_Digits_Expression);
12626 pragma Inline (Set_Discr_Check_Funcs_Built);
12627 pragma Inline (Set_Discrete_Choices);
12628 pragma Inline (Set_Discrete_Range);
12629 pragma Inline (Set_Discrete_Subtype_Definition);
12630 pragma Inline (Set_Discrete_Subtype_Definitions);
12631 pragma Inline (Set_Discriminant_Specifications);
12632 pragma Inline (Set_Discriminant_Type);
12633 pragma Inline (Set_Do_Accessibility_Check);
12634 pragma Inline (Set_Do_Discriminant_Check);
12635 pragma Inline (Set_Do_Division_Check);
12636 pragma Inline (Set_Do_Length_Check);
12637 pragma Inline (Set_Do_Overflow_Check);
12638 pragma Inline (Set_Do_Range_Check);
12639 pragma Inline (Set_Do_Storage_Check);
12640 pragma Inline (Set_Do_Tag_Check);
12641 pragma Inline (Set_Elaborate_All_Desirable);
12642 pragma Inline (Set_Elaborate_All_Present);
12643 pragma Inline (Set_Elaborate_Desirable);
12644 pragma Inline (Set_Elaborate_Present);
12645 pragma Inline (Set_Elaboration_Boolean);
12646 pragma Inline (Set_Else_Actions);
12647 pragma Inline (Set_Else_Statements);
12648 pragma Inline (Set_Elsif_Parts);
12649 pragma Inline (Set_Enclosing_Variant);
12650 pragma Inline (Set_End_Label);
12651 pragma Inline (Set_End_Span);
12652 pragma Inline (Set_Entity);
12653 pragma Inline (Set_Entry_Body_Formal_Part);
12654 pragma Inline (Set_Entry_Call_Alternative);
12655 pragma Inline (Set_Entry_Call_Statement);
12656 pragma Inline (Set_Entry_Direct_Name);
12657 pragma Inline (Set_Entry_Index);
12658 pragma Inline (Set_Entry_Index_Specification);
12659 pragma Inline (Set_Etype);
12660 pragma Inline (Set_Exception_Choices);
12661 pragma Inline (Set_Exception_Handlers);
12662 pragma Inline (Set_Exception_Junk);
12663 pragma Inline (Set_Exception_Label);
12664 pragma Inline (Set_Expansion_Delayed);
12665 pragma Inline (Set_Explicit_Actual_Parameter);
12666 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12667 pragma Inline (Set_Expression);
12668 pragma Inline (Set_Expressions);
12669 pragma Inline (Set_First_Bit);
12670 pragma Inline (Set_First_Inlined_Subprogram);
12671 pragma Inline (Set_First_Name);
12672 pragma Inline (Set_First_Named_Actual);
12673 pragma Inline (Set_First_Real_Statement);
12674 pragma Inline (Set_First_Subtype_Link);
12675 pragma Inline (Set_Float_Truncate);
12676 pragma Inline (Set_Formal_Type_Definition);
12677 pragma Inline (Set_Forwards_OK);
12678 pragma Inline (Set_From_Aspect_Specification);
12679 pragma Inline (Set_From_At_End);
12680 pragma Inline (Set_From_At_Mod);
12681 pragma Inline (Set_From_Default);
12682 pragma Inline (Set_Generic_Associations);
12683 pragma Inline (Set_Generic_Formal_Declarations);
12684 pragma Inline (Set_Generic_Parent);
12685 pragma Inline (Set_Generic_Parent_Type);
12686 pragma Inline (Set_Handled_Statement_Sequence);
12687 pragma Inline (Set_Handler_List_Entry);
12688 pragma Inline (Set_Has_Created_Identifier);
12689 pragma Inline (Set_Has_Dereference_Action);
12690 pragma Inline (Set_Has_Dynamic_Length_Check);
12691 pragma Inline (Set_Has_Dynamic_Range_Check);
12692 pragma Inline (Set_Has_Init_Expression);
12693 pragma Inline (Set_Has_Local_Raise);
12694 pragma Inline (Set_Has_No_Elaboration_Code);
12695 pragma Inline (Set_Has_Pragma_Suppress_All);
12696 pragma Inline (Set_Has_Private_View);
12697 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12698 pragma Inline (Set_Has_Self_Reference);
12699 pragma Inline (Set_Has_SP_Choice);
12700 pragma Inline (Set_Has_Storage_Size_Pragma);
12701 pragma Inline (Set_Has_Wide_Character);
12702 pragma Inline (Set_Has_Wide_Wide_Character);
12703 pragma Inline (Set_Header_Size_Added);
12704 pragma Inline (Set_Hidden_By_Use_Clause);
12705 pragma Inline (Set_High_Bound);
12706 pragma Inline (Set_Identifier);
12707 pragma Inline (Set_Implicit_With);
12708 pragma Inline (Set_Import_Interface_Present);
12709 pragma Inline (Set_In_Present);
12710 pragma Inline (Set_Includes_Infinities);
12711 pragma Inline (Set_Inherited_Discriminant);
12712 pragma Inline (Set_Instance_Spec);
12713 pragma Inline (Set_Interface_List);
12714 pragma Inline (Set_Interface_Present);
12715 pragma Inline (Set_Intval);
12716 pragma Inline (Set_Is_Accessibility_Actual);
12717 pragma Inline (Set_Is_Asynchronous_Call_Block);
12718 pragma Inline (Set_Is_Boolean_Aspect);
12719 pragma Inline (Set_Is_Checked);
12720 pragma Inline (Set_Is_Component_Left_Opnd);
12721 pragma Inline (Set_Is_Component_Right_Opnd);
12722 pragma Inline (Set_Is_Controlling_Actual);
12723 pragma Inline (Set_Is_Delayed_Aspect);
12724 pragma Inline (Set_Is_Disabled);
12725 pragma Inline (Set_Is_Dynamic_Coextension);
12726 pragma Inline (Set_Is_Elsif);
12727 pragma Inline (Set_Is_Entry_Barrier_Function);
12728 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12729 pragma Inline (Set_Is_Finalization_Wrapper);
12730 pragma Inline (Set_Is_Folded_In_Parser);
12731 pragma Inline (Set_Is_Ignored);
12732 pragma Inline (Set_Is_In_Discriminant_Check);
12733 pragma Inline (Set_Is_Machine_Number);
12734 pragma Inline (Set_Is_Null_Loop);
12735 pragma Inline (Set_Is_Overloaded);
12736 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12737 pragma Inline (Set_Is_Prefixed_Call);
12738 pragma Inline (Set_Is_Protected_Subprogram_Body);
12739 pragma Inline (Set_Is_Static_Coextension);
12740 pragma Inline (Set_Is_Static_Expression);
12741 pragma Inline (Set_Is_Subprogram_Descriptor);
12742 pragma Inline (Set_Is_Task_Allocation_Block);
12743 pragma Inline (Set_Is_Task_Master);
12744 pragma Inline (Set_Iteration_Scheme);
12745 pragma Inline (Set_Iterator_Specification);
12746 pragma Inline (Set_Itype);
12747 pragma Inline (Set_Kill_Range_Check);
12748 pragma Inline (Set_Label_Construct);
12749 pragma Inline (Set_Last_Bit);
12750 pragma Inline (Set_Last_Name);
12751 pragma Inline (Set_Left_Opnd);
12752 pragma Inline (Set_Library_Unit);
12753 pragma Inline (Set_Limited_Present);
12754 pragma Inline (Set_Limited_View_Installed);
12755 pragma Inline (Set_Literals);
12756 pragma Inline (Set_Local_Raise_Not_OK);
12757 pragma Inline (Set_Local_Raise_Statements);
12758 pragma Inline (Set_Loop_Actions);
12759 pragma Inline (Set_Loop_Parameter_Specification);
12760 pragma Inline (Set_Low_Bound);
12761 pragma Inline (Set_Mod_Clause);
12762 pragma Inline (Set_More_Ids);
12763 pragma Inline (Set_Must_Be_Byte_Aligned);
12764 pragma Inline (Set_Must_Not_Freeze);
12765 pragma Inline (Set_Must_Not_Override);
12766 pragma Inline (Set_Must_Override);
12767 pragma Inline (Set_Name);
12768 pragma Inline (Set_Names);
12769 pragma Inline (Set_Next_Entity);
12770 pragma Inline (Set_Next_Exit_Statement);
12771 pragma Inline (Set_Next_Implicit_With);
12772 pragma Inline (Set_Next_Named_Actual);
12773 pragma Inline (Set_Next_Pragma);
12774 pragma Inline (Set_Next_Rep_Item);
12775 pragma Inline (Set_Next_Use_Clause);
12776 pragma Inline (Set_No_Ctrl_Actions);
12777 pragma Inline (Set_No_Elaboration_Check);
12778 pragma Inline (Set_No_Entities_Ref_In_Spec);
12779 pragma Inline (Set_No_Initialization);
12780 pragma Inline (Set_No_Minimize_Eliminate);
12781 pragma Inline (Set_No_Truncation);
12782 pragma Inline (Set_Null_Exclusion_Present);
12783 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12784 pragma Inline (Set_Null_Present);
12785 pragma Inline (Set_Null_Record_Present);
12786 pragma Inline (Set_Object_Definition);
12787 pragma Inline (Set_Of_Present);
12788 pragma Inline (Set_Original_Discriminant);
12789 pragma Inline (Set_Original_Entity);
12790 pragma Inline (Set_Others_Discrete_Choices);
12791 pragma Inline (Set_Out_Present);
12792 pragma Inline (Set_Parameter_Associations);
12793 pragma Inline (Set_Parameter_List_Truncated);
12794 pragma Inline (Set_Parameter_Specifications);
12795 pragma Inline (Set_Parameter_Type);
12796 pragma Inline (Set_Parent_Spec);
12797 pragma Inline (Set_Position);
12798 pragma Inline (Set_Pragma_Argument_Associations);
12799 pragma Inline (Set_Pragma_Identifier);
12800 pragma Inline (Set_Pragmas_After);
12801 pragma Inline (Set_Pragmas_Before);
12802 pragma Inline (Set_Pre_Post_Conditions);
12803 pragma Inline (Set_Prefix);
12804 pragma Inline (Set_Premature_Use);
12805 pragma Inline (Set_Present_Expr);
12806 pragma Inline (Set_Prev_Ids);
12807 pragma Inline (Set_Print_In_Hex);
12808 pragma Inline (Set_Private_Declarations);
12809 pragma Inline (Set_Private_Present);
12810 pragma Inline (Set_Procedure_To_Call);
12811 pragma Inline (Set_Proper_Body);
12812 pragma Inline (Set_Protected_Definition);
12813 pragma Inline (Set_Protected_Present);
12814 pragma Inline (Set_Raises_Constraint_Error);
12815 pragma Inline (Set_Range_Constraint);
12816 pragma Inline (Set_Range_Expression);
12817 pragma Inline (Set_Real_Range_Specification);
12818 pragma Inline (Set_Realval);
12819 pragma Inline (Set_Reason);
12820 pragma Inline (Set_Record_Extension_Part);
12821 pragma Inline (Set_Redundant_Use);
12822 pragma Inline (Set_Renaming_Exception);
12823 pragma Inline (Set_Result_Definition);
12824 pragma Inline (Set_Return_Object_Declarations);
12825 pragma Inline (Set_Reverse_Present);
12826 pragma Inline (Set_Right_Opnd);
12827 pragma Inline (Set_Rounded_Result);
12828 pragma Inline (Set_SCIL_Controlling_Tag);
12829 pragma Inline (Set_SCIL_Entity);
12830 pragma Inline (Set_SCIL_Tag_Value);
12831 pragma Inline (Set_SCIL_Target_Prim);
12832 pragma Inline (Set_Scope);
12833 pragma Inline (Set_Select_Alternatives);
12834 pragma Inline (Set_Selector_Name);
12835 pragma Inline (Set_Selector_Names);
12836 pragma Inline (Set_Shift_Count_OK);
12837 pragma Inline (Set_Source_Type);
12838 pragma Inline (Set_Split_PPC);
12839 pragma Inline (Set_Statements);
12840 pragma Inline (Set_Storage_Pool);
12841 pragma Inline (Set_Strval);
12842 pragma Inline (Set_Subpool_Handle_Name);
12843 pragma Inline (Set_Subtype_Indication);
12844 pragma Inline (Set_Subtype_Mark);
12845 pragma Inline (Set_Subtype_Marks);
12846 pragma Inline (Set_Suppress_Assignment_Checks);
12847 pragma Inline (Set_Suppress_Loop_Warnings);
12848 pragma Inline (Set_Synchronized_Present);
12849 pragma Inline (Set_TSS_Elist);
12850 pragma Inline (Set_Tagged_Present);
12851 pragma Inline (Set_Target_Type);
12852 pragma Inline (Set_Task_Definition);
12853 pragma Inline (Set_Task_Present);
12854 pragma Inline (Set_Then_Actions);
12855 pragma Inline (Set_Then_Statements);
12856 pragma Inline (Set_Treat_Fixed_As_Integer);
12857 pragma Inline (Set_Triggering_Alternative);
12858 pragma Inline (Set_Triggering_Statement);
12859 pragma Inline (Set_Type_Definition);
12860 pragma Inline (Set_Unit);
12861 pragma Inline (Set_Unknown_Discriminants_Present);
12862 pragma Inline (Set_Unreferenced_In_Spec);
12863 pragma Inline (Set_Used_Operations);
12864 pragma Inline (Set_Variant_Part);
12865 pragma Inline (Set_Variants);
12866 pragma Inline (Set_Visible_Declarations);
12867 pragma Inline (Set_Was_Originally_Stub);
12868 pragma Inline (Set_Withed_Body);