gcc/
[official-gcc.git] / gcc / ada / sinfo.ads
blob203313d11e6dfa1ea402359e681b745876eb77df
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2015, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
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. --
21 -- --
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/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
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;
54 package Sinfo is
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:
64 -- In sinfo.ads:
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
72 -- In sinfo.adb:
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
78 -- fields.
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 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
102 -- All back ends must be made aware of the new node kind.
104 -- Finally, four utility programs must be run:
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree, First and Next are defined in Nlists.
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
224 -------------
225 -- Pragmas --
226 -------------
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
248 -- In the case of the variants list, we can either write:
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
256 -- or
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
268 ---------------------
269 -- Optional Fields --
270 ---------------------
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
324 -- So, to summarize:
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
386 -----------------------
387 -- Field Definitions --
388 -----------------------
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
461 ---------------
462 -- ASIS Mode --
463 ---------------
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
500 -- Representation Information
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
527 ----------------
528 -- Ghost Mode --
529 ----------------
531 -- When a declaration is subject to pragma Ghost, it establishes a Ghost
532 -- region depending on the Ghost assertion policy in effect at the point
533 -- of declaration. This region is temporal and starts right before the
534 -- analysis of the Ghost declaration and ends after its expansion. The
535 -- values of global variable Opt.Ghost_Mode are as follows:
537 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
538 -- effect.
540 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
541 -- files, object files as well as the final executable.
543 -- To achieve the runtime semantics of "Ignore", the compiler marks each
544 -- node created during an ignored Ghost region and signals all enclosing
545 -- scopes that such a node resides within. The compilation unit where the
546 -- node resides is also added to an auxiliary table for post processing.
548 -- After the analysis and expansion of all compilation units takes place
549 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
550 -- driver initiates a separate pass which removes all ignored Ghost code
551 -- from all units stored in the auxiliary table.
553 --------------------
554 -- GNATprove Mode --
555 --------------------
557 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
558 -- expansion is performed and the analysis must generate a tree in a
559 -- form that meets additional requirements.
561 -- This light expansion does two transformations of the tree that cannot
562 -- be postponed till after semantic analysis:
564 -- 1. Replace object renamings by renamed object. This requires the
565 -- introduction of temporaries at the point of the renaming, which
566 -- must be properly analyzed.
568 -- 2. Fully qualify entity names. This is needed to generate suitable
569 -- local effects and call-graphs in ALI files, with the completely
570 -- qualified names (in particular the suffix to distinguish homonyms).
572 -- The tree after this light expansion should be fully analyzed
573 -- semantically, which sometimes requires the insertion of semantic
574 -- pre-analysis, for example for subprogram contracts and pragma
575 -- check/assert. In particular, all expression must have their proper type,
576 -- and semantic links should be set between tree nodes (partial to full
577 -- view, etc.) Some kinds of nodes should be either absent, or can be
578 -- ignored by the formal verification backend:
580 -- N_Object_Renaming_Declaration: can be ignored safely
581 -- N_Expression_Function: absent (rewritten)
582 -- N_Expression_With_Actions: absent (not generated)
584 -- SPARK cross-references are generated from the regular cross-references
585 -- (used for browsing and code understanding) and additional references
586 -- collected during semantic analysis, in particular on all dereferences.
587 -- These SPARK cross-references are output in a separate section of ALI
588 -- files, as described in spark_xrefs.adb. They are the basis for the
589 -- computation of data dependences in GNATprove. This implies that all
590 -- cross-references should be generated in this mode, even those that would
591 -- not make sense from a user point-of-view, and that cross-references that
592 -- do not lead to data dependences for subprograms can be safely ignored.
594 -- GNATprove relies on the following front end behaviors:
596 -- 1. The first declarations in the list of visible declarations of
597 -- a package declaration for a generic instance, up to the first
598 -- declaration which comes from source, should correspond to
599 -- the "mappings nodes" between formal and actual generic parameters.
601 -- 2. In addition pragma Debug statements are removed from the tree
602 -- (rewritten to NULL stmt), since they should be ignored in formal
603 -- verification.
605 -- 3. An error is also issued for missing subunits, similar to the
606 -- warning issued when generating code, to avoid formal verification
607 -- of a partial unit.
609 -- 4. Unconstrained types are not replaced by constrained types whose
610 -- bounds are generated from an expression: Expand_Subtype_From_Expr
611 -- should be a no-op.
613 -- 5. Errors (instead of warnings) are issued on compile-time-known
614 -- constraint errors even though such cases do not correspond to
615 -- illegalities in the Ada RM (this is simply another case where
616 -- GNATprove implements a subset of the full language).
618 -- However, there are a few exceptions to this rule for cases where
619 -- we want to allow the GNATprove analysis to proceed (e.g. range
620 -- checks on empty ranges, which typically appear in deactivated
621 -- code in a particular configuration).
623 -- 6. Subtypes should match in the AST, even after a generic is
624 -- instantiated. In particular, GNATprove relies on the fact that,
625 -- on a selected component, the type of the selected component is
626 -- the type of the corresponding component in the prefix of the
627 -- selected component.
629 -- Note that, in some cases, we know that this rule is broken by the
630 -- frontend. In particular, if the selected component is a packed
631 -- array depending on a discriminant of a unconstrained formal object
632 -- parameter of a generic.
634 -----------------------
635 -- Check Flag Fields --
636 -----------------------
638 -- The following flag fields appear in expression nodes:
640 -- Do_Division_Check
641 -- Do_Overflow_Check
642 -- Do_Range_Check
644 -- These three flags are always set by the front end during semantic
645 -- analysis, on expression nodes that may trigger the corresponding
646 -- check. The front end then inserts or not the check during expansion. In
647 -- particular, these flags should also be correctly set in ASIS mode and
648 -- GNATprove mode.
650 -- Note: the expander always takes care of the Do_Range check case,
651 -- so this flag will never be set in the expanded tree passed to the
652 -- back end code generator.
654 -- Note that this accounts for all nodes that trigger the corresponding
655 -- checks, except for range checks on subtype_indications, which may be
656 -- required to check that a range_constraint is compatible with the given
657 -- subtype (RM 3.2.2(11)).
659 -- The following flag fields appear in various nodes:
661 -- Do_Accessibility_Check
662 -- Do_Discriminant_Check
663 -- Do_Length_Check
664 -- Do_Storage_Check
665 -- Do_Tag_Check
667 -- These flags are used in some specific cases by the front end, either
668 -- during semantic analysis or during expansion, and cannot be expected
669 -- to be set on all nodes that trigger the corresponding check.
671 ------------------------
672 -- Common Flag Fields --
673 ------------------------
675 -- The following flag fields appear in all nodes:
677 -- Analyzed
678 -- This flag is used to indicate that a node (and all its children have
679 -- been analyzed. It is used to avoid reanalysis of a node that has
680 -- already been analyzed, both for efficiency and functional correctness
681 -- reasons.
683 -- Comes_From_Source
684 -- This flag is set if the node comes directly from an explicit construct
685 -- in the source. It is normally on for any nodes built by the scanner or
686 -- parser from the source program, with the exception that in a few cases
687 -- the parser adds nodes to normalize the representation (in particular
688 -- a null statement is added to a package body if there is no begin/end
689 -- initialization section.
691 -- Most nodes inserted by the analyzer or expander are not considered
692 -- as coming from source, so the flag is off for such nodes. In a few
693 -- cases, the expander constructs nodes closely equivalent to nodes
694 -- from the source program (e.g. the allocator built for build-in-place
695 -- case), and the Comes_From_Source flag is deliberately set.
697 -- Error_Posted
698 -- This flag is used to avoid multiple error messages being posted on or
699 -- referring to the same node. This flag is set if an error message
700 -- refers to a node or is posted on its source location, and has the
701 -- effect of inhibiting further messages involving this same node.
703 -----------------------
704 -- Modify_Tree_For_C --
705 -----------------------
707 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
708 -- in ways that help match the semantics better with C, easing the task of
709 -- interfacing to C code generators (other than GCC, where the work is done
710 -- in gigi, and there is no point in changing that), and also making life
711 -- easier for Cprint in generating C source code.
713 -- The current modifications implemented are as follows:
715 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
716 -- are eliminated from the tree (since these operations do not exist in
717 -- C), and the operations are rewritten in terms of logical shifts and
718 -- other logical operations that do exist in C. See Exp_Ch4 expansion
719 -- routines for these operators for details of the transformations made.
721 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
722 -- less than the word size (since other values are not well-defined in
723 -- C). This is done using an explicit test if necessary.
725 -- Min and Max attributes are expanded into equivalent if expressions,
726 -- dealing properly with side effect issues.
728 -- Mod for signed integer types is expanded into equivalent expressions
729 -- using Rem (which is % in C) and other C-available operators.
731 -- The Actions list of an Expression_With_Actions node does not contain
732 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
734 ------------------------------------
735 -- Description of Semantic Fields --
736 ------------------------------------
738 -- The meaning of the syntactic fields is generally clear from their names
739 -- without any further description, since the names are chosen to
740 -- correspond very closely to the syntax in the reference manual. This
741 -- section describes the usage of the semantic fields, which are used to
742 -- contain additional information determined during semantic analysis.
744 -- ABE_Is_Certain (Flag18-Sem)
745 -- This flag is set in an instantiation node or a call node is determined
746 -- to be sure to raise an ABE. This is used to trigger special handling
747 -- of such cases, particularly in the instantiation case where we avoid
748 -- instantiating the body if this flag is set. This flag is also present
749 -- in an N_Formal_Package_Declaration_Node since formal package
750 -- declarations are treated like instantiations, but it is always set to
751 -- False in this context.
753 -- Accept_Handler_Records (List5-Sem)
754 -- This field is present only in an N_Accept_Alternative node. It is used
755 -- to temporarily hold the exception handler records from an accept
756 -- statement in a selective accept. These exception handlers will
757 -- eventually be placed in the Handler_Records list of the procedure
758 -- built for this accept (see Expand_N_Selective_Accept procedure in
759 -- Exp_Ch9 for further details).
761 -- Access_Types_To_Process (Elist2-Sem)
762 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
763 -- Contains the list of access types which may require specific treatment
764 -- when the nature of the type completion is completely known. An example
765 -- of such treatment is the generation of the associated_final_chain.
767 -- Actions (List1-Sem)
768 -- This field contains a sequence of actions that are associated with the
769 -- node holding the field. See the individual node types for details of
770 -- how this field is used, as well as the description of the specific use
771 -- for a particular node type.
773 -- Activation_Chain_Entity (Node3-Sem)
774 -- This is used in tree nodes representing task activators (blocks,
775 -- subprogram bodies, package declarations, and task bodies). It is
776 -- initially Empty, and then gets set to point to the entity for the
777 -- declared Activation_Chain variable when the first task is declared.
778 -- When tasks are declared in the corresponding declarative region this
779 -- entity is located by name (its name is always _Chain) and the declared
780 -- tasks are added to the chain. Note that N_Extended_Return_Statement
781 -- does not have this attribute, although it does have an activation
782 -- chain. This chain is used to store the tasks temporarily, and is not
783 -- used for activating them. On successful completion of the return
784 -- statement, the tasks are moved to the caller's chain, and the caller
785 -- activates them.
787 -- Acts_As_Spec (Flag4-Sem)
788 -- A flag set in the N_Subprogram_Body node for a subprogram body which
789 -- is acting as its own spec. In the case of a library-level subprogram
790 -- the flag is set as well on the parent compilation unit node.
792 -- Actual_Designated_Subtype (Node4-Sem)
793 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
794 -- needs to known the dynamic constrained subtype of the designated
795 -- object, this attribute is set to that type. This is done for
796 -- N_Free_Statements for access-to-classwide types and access to
797 -- unconstrained packed array types, and for N_Explicit_Dereference when
798 -- the designated type is an unconstrained packed array and the
799 -- dereference is the prefix of a 'Size attribute reference.
801 -- Address_Warning_Posted (Flag18-Sem)
802 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
803 -- posted a warning for the address clause regarding size or alignment
804 -- issues. Used to inhibit multiple redundant messages.
806 -- Aggregate_Bounds (Node3-Sem)
807 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
808 -- known at compile time, this field points to an N_Range node with those
809 -- bounds. Otherwise Empty.
811 -- All_Others (Flag11-Sem)
812 -- Present in an N_Others_Choice node. This flag is set for an others
813 -- exception where all exceptions are to be caught, even those that are
814 -- not normally handled (in particular the tasking abort signal). This
815 -- is used for translation of the at end handler into a normal exception
816 -- handler.
818 -- Aspect_Rep_Item (Node2-Sem)
819 -- Present in N_Aspect_Specification nodes. Points to the corresponding
820 -- pragma/attribute definition node used to process the aspect.
822 -- Assignment_OK (Flag15-Sem)
823 -- This flag is set in a subexpression node for an object, indicating
824 -- that the associated object can be modified, even if this would not
825 -- normally be permissible (either by direct assignment, or by being
826 -- passed as an out or in-out parameter). This is used by the expander
827 -- for a number of purposes, including initialization of constants and
828 -- limited type objects (such as tasks), setting discriminant fields,
829 -- setting tag values, etc. N_Object_Declaration nodes also have this
830 -- flag defined. Here it is used to indicate that an initialization
831 -- expression is valid, even where it would normally not be allowed
832 -- (e.g. where the type involved is limited). It is also used to stop
833 -- a Force_Evaluation call for an unchecked conversion, but this usage
834 -- is unclear and not documented ???
836 -- Associated_Node (Node4-Sem)
837 -- Present in nodes that can denote an entity: identifiers, character
838 -- literals, operator symbols, expanded names, operator nodes, and
839 -- attribute reference nodes (all these nodes have an Entity field).
840 -- This field is also present in N_Aggregate, N_Selected_Component, and
841 -- N_Extension_Aggregate nodes. This field is used in generic processing
842 -- to create links between the generic template and the generic copy.
843 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
844 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
845 -- the normal function of Entity is not required at the point where the
846 -- Associated_Node is set. Note also, that in generic templates, this
847 -- means that the Entity field does not necessarily point to an Entity.
848 -- Since the back end is expected to ignore generic templates, this is
849 -- harmless.
851 -- Atomic_Sync_Required (Flag14-Sem)
852 -- This flag is set on a node for which atomic synchronization is
853 -- required for the corresponding reference or modification.
855 -- At_End_Proc (Node1)
856 -- This field is present in an N_Handled_Sequence_Of_Statements node.
857 -- It contains an identifier reference for the cleanup procedure to be
858 -- called. See description of this node for further details.
860 -- Backwards_OK (Flag6-Sem)
861 -- A flag present in the N_Assignment_Statement node. It is used only
862 -- if the type being assigned is an array type, and is set if analysis
863 -- determines that it is definitely safe to do the copy backwards, i.e.
864 -- starting at the highest addressed element. This is the case if either
865 -- the operands do not overlap, or they may overlap, but if they do,
866 -- then the left operand is at a higher address than the right operand.
868 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
869 -- means that the front end could not determine that either direction is
870 -- definitely safe, and a runtime check may be required if the backend
871 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
872 -- set, it means that the front end can assure no overlap of operands.
874 -- Body_To_Inline (Node3-Sem)
875 -- Present in subprogram declarations. Denotes analyzed but unexpanded
876 -- body of subprogram, to be used when inlining calls. Present when the
877 -- subprogram has an Inline pragma and inlining is enabled. If the
878 -- declaration is completed by a renaming_as_body, and the renamed en-
879 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
880 -- which is used directly in later calls to the original subprogram.
882 -- Body_Required (Flag13-Sem)
883 -- A flag that appears in the N_Compilation_Unit node indicating that
884 -- the corresponding unit requires a body. For the package case, this
885 -- indicates that a completion is required. In Ada 95, if the flag is not
886 -- set for the package case, then a body may not be present. In Ada 83,
887 -- if the flag is not set for the package case, then body is optional.
888 -- For a subprogram declaration, the flag is set except in the case where
889 -- a pragma Import or Interface applies, in which case no body is
890 -- permitted (in Ada 83 or Ada 95).
892 -- By_Ref (Flag5-Sem)
893 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
894 -- this flag is set when the returned expression is already allocated on
895 -- the secondary stack and thus the result is passed by reference rather
896 -- than copied another time.
898 -- Cleanup_Actions (List5-Sem)
899 -- Present in block statements created for transient blocks, contains
900 -- additional cleanup actions carried over from the transient scope.
902 -- Check_Address_Alignment (Flag11-Sem)
903 -- A flag present in N_Attribute_Definition clause for a 'Address
904 -- attribute definition. This flag is set if a dynamic check should be
905 -- generated at the freeze point for the entity to which this address
906 -- clause applies. The reason that we need this flag is that we want to
907 -- check for range checks being suppressed at the point where the
908 -- attribute definition clause is given, rather than testing this at the
909 -- freeze point.
911 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
912 -- Present in N_Simple_Return_Statement nodes. True if this node was
913 -- constructed as part of the N_Extended_Return_Statement expansion.
915 -- Compile_Time_Known_Aggregate (Flag18-Sem)
916 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
917 -- evaluated at compile time without raising constraint error. Such
918 -- aggregates can be passed as is the back end without any expansion.
919 -- See Exp_Aggr for specific conditions under which this flag gets set.
921 -- Componentwise_Assignment (Flag14-Sem)
922 -- Present in N_Assignment_Statement nodes. Set for a record assignment
923 -- where all that needs doing is to expand it into component-by-component
924 -- assignments. This is used internally for the case of tagged types with
925 -- rep clauses, where we need to avoid recursion (we don't want to try to
926 -- generate a call to the primitive operation, because this is the case
927 -- where we are compiling the primitive operation). Note that when we are
928 -- expanding component assignments in this case, we never assign the _tag
929 -- field, but we recursively assign components of the parent type.
931 -- Condition_Actions (List3-Sem)
932 -- This field appears in else-if nodes and in the iteration scheme node
933 -- for while loops. This field is only used during semantic processing to
934 -- temporarily hold actions inserted into the tree. In the tree passed
935 -- to gigi, the condition actions field is always set to No_List. For
936 -- details on how this field is used, see the routine Insert_Actions in
937 -- package Exp_Util, and also the expansion routines for the relevant
938 -- nodes.
940 -- Context_Pending (Flag16-Sem)
941 -- This field appears in Compilation_Unit nodes, to indicate that the
942 -- context of the unit is being compiled. Used to detect circularities
943 -- that are not otherwise detected by the loading mechanism. Such
944 -- circularities can occur in the presence of limited and non-limited
945 -- with_clauses that mention the same units.
947 -- Controlling_Argument (Node1-Sem)
948 -- This field is set in procedure and function call nodes if the call
949 -- is a dispatching call (it is Empty for a non-dispatching call). It
950 -- indicates the source of the call's controlling tag. For procedure
951 -- calls, the Controlling_Argument is one of the actuals. For function
952 -- that has a dispatching result, it is an entity in the context of the
953 -- call that can provide a tag, or else it is the tag of the root type
954 -- of the class. It can also specify a tag directly rather than being a
955 -- tagged object. The latter is needed by the implementations of AI-239
956 -- and AI-260.
958 -- Conversion_OK (Flag14-Sem)
959 -- A flag set on type conversion nodes to indicate that the conversion
960 -- is to be considered as being valid, even though it is the case that
961 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
962 -- Fixed_Value and Integer_Value, for internal conversions done for
963 -- fixed-point operations, and for certain conversions for calls to
964 -- initialization procedures. If Conversion_OK is set, then Etype must be
965 -- set (the analyzer assumes that Etype has been set). For the case of
966 -- fixed-point operands, it also indicates that the conversion is to be
967 -- direct conversion of the underlying integer result, with no regard to
968 -- the small operand.
970 -- Convert_To_Return_False (Flag13-Sem)
971 -- Present in N_Raise_Expression nodes that appear in the body of the
972 -- special predicateM function used to test a predicate in the context
973 -- of a membership test, where raise expression results in returning a
974 -- value of False rather than raising an exception.
976 -- Corresponding_Aspect (Node3-Sem)
977 -- Present in N_Pragma node. Used to point back to the source aspect from
978 -- the corresponding pragma. This field is Empty for source pragmas.
980 -- Corresponding_Body (Node5-Sem)
981 -- This field is set in subprogram declarations, package declarations,
982 -- entry declarations of protected types, and in generic units. It points
983 -- to the defining entity for the corresponding body (NOT the node for
984 -- the body itself).
986 -- Corresponding_Formal_Spec (Node3-Sem)
987 -- This field is set in subprogram renaming declarations, where it points
988 -- to the defining entity for a formal subprogram in the case where the
989 -- renaming corresponds to a generic formal subprogram association in an
990 -- instantiation. The field is Empty if the renaming does not correspond
991 -- to such a formal association.
993 -- Corresponding_Generic_Association (Node5-Sem)
994 -- This field is defined for object declarations and object renaming
995 -- declarations. It is set for the declarations within an instance that
996 -- map generic formals to their actuals. If set, the field points to
997 -- a generic_association which is the original parent of the expression
998 -- or name appearing in the declaration. This simplifies ASIS queries.
1000 -- Corresponding_Integer_Value (Uint4-Sem)
1001 -- This field is set in real literals of fixed-point types (it is not
1002 -- used for floating-point types). It contains the integer value used
1003 -- to represent the fixed-point value. It is also set on the universal
1004 -- real literals used to represent bounds of fixed-point base types
1005 -- and their first named subtypes.
1007 -- Corresponding_Spec (Node5-Sem)
1008 -- This field is set in subprogram, package, task, and protected body
1009 -- nodes, where it points to the defining entity in the corresponding
1010 -- spec. The attribute is also set in N_With_Clause nodes where it points
1011 -- to the defining entity for the with'ed spec, and in a subprogram
1012 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1013 -- if there is no corresponding spec, as in the case of a subprogram body
1014 -- that serves as its own spec.
1016 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1017 -- complete a subprogram declaration.
1019 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1020 -- This field is present in subprogram, package, task and protected body
1021 -- stubs where it points to the corresponding spec of the stub. Due to
1022 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1024 -- Corresponding_Stub (Node3-Sem)
1025 -- This field is present in an N_Subunit node. It holds the node in
1026 -- the parent unit that is the stub declaration for the subunit. It is
1027 -- set when analysis of the stub forces loading of the proper body. If
1028 -- expansion of the proper body creates new declarative nodes, they are
1029 -- inserted at the point of the corresponding_stub.
1031 -- Dcheck_Function (Node5-Sem)
1032 -- This field is present in an N_Variant node, It references the entity
1033 -- for the discriminant checking function for the variant.
1035 -- Default_Expression (Node5-Sem)
1036 -- This field is Empty if there is no default expression. If there is a
1037 -- simple default expression (one with no side effects), then this field
1038 -- simply contains a copy of the Expression field (both point to the tree
1039 -- for the default expression). Default_Expression is used for
1040 -- conformance checking.
1042 -- Default_Storage_Pool (Node3-Sem)
1043 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1044 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1045 -- package Opt for details. This is used for inheriting the
1046 -- Default_Storage_Pool in child units.
1048 -- Discr_Check_Funcs_Built (Flag11-Sem)
1049 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1050 -- discriminant checking functions are constructed. The purpose is to
1051 -- avoid attempting to set these functions more than once.
1053 -- Do_Accessibility_Check (Flag13-Sem)
1054 -- This flag is set on N_Parameter_Specification nodes to indicate
1055 -- that an accessibility check is required for the parameter. It is
1056 -- not yet decided who takes care of this check (TBD ???).
1058 -- Do_Discriminant_Check (Flag1-Sem)
1059 -- This flag is set on N_Selected_Component nodes to indicate that a
1060 -- discriminant check is required using the discriminant check routine
1061 -- associated with the selector. The actual check is generated by the
1062 -- expander when processing selected components. In the case of
1063 -- Unchecked_Union, the flag is also set, but no discriminant check
1064 -- routine is associated with the selector, and the expander does not
1065 -- generate a check. This flag is also present in assignment statements
1066 -- (and set if the assignment requires a discriminant check), and in type
1067 -- conversion nodes (and set if the conversion requires a check).
1069 -- Do_Division_Check (Flag13-Sem)
1070 -- This flag is set on a division operator (/ mod rem) to indicate
1071 -- that a zero divide check is required. The actual check is dealt
1072 -- with by the backend (all the front end does is to set the flag).
1074 -- Do_Length_Check (Flag4-Sem)
1075 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1076 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1077 -- is required. It is not determined who deals with this flag (???).
1079 -- Do_Overflow_Check (Flag17-Sem)
1080 -- This flag is set on an operator where an overflow check is required on
1081 -- the operation. The actual check is dealt with by the backend (all the
1082 -- front end does is to set the flag). The other cases where this flag is
1083 -- used is on a Type_Conversion node and for attribute reference nodes.
1084 -- For a type conversion, it means that the conversion is from one base
1085 -- type to another, and the value may not fit in the target base type.
1086 -- See also the description of Do_Range_Check for this case. The only
1087 -- attribute references which use this flag are Pred and Succ, where it
1088 -- means that the result should be checked for going outside the base
1089 -- range. Note that this flag is not set for modular types. This flag is
1090 -- also set on if and case expression nodes if we are operating in either
1091 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1092 -- properly process overflow checking for dependent expressions).
1094 -- Do_Range_Check (Flag9-Sem)
1095 -- This flag is set on an expression which appears in a context where a
1096 -- range check is required. The target type is clear from the context.
1097 -- The contexts in which this flag can appear are the following:
1099 -- Right side of an assignment. In this case the target type is
1100 -- taken from the left side of the assignment, which is referenced
1101 -- by the Name of the N_Assignment_Statement node.
1103 -- Subscript expressions in an indexed component. In this case the
1104 -- target type is determined from the type of the array, which is
1105 -- referenced by the Prefix of the N_Indexed_Component node.
1107 -- Argument expression for a parameter, appearing either directly in
1108 -- the Parameter_Associations list of a call or as the Expression of an
1109 -- N_Parameter_Association node that appears in this list. In either
1110 -- case, the check is against the type of the formal. Note that the
1111 -- flag is relevant only in IN and IN OUT parameters, and will be
1112 -- ignored for OUT parameters, where no check is required in the call,
1113 -- and if a check is required on the return, it is generated explicitly
1114 -- with a type conversion.
1116 -- Initialization expression for the initial value in an object
1117 -- declaration. In this case the Do_Range_Check flag is set on
1118 -- the initialization expression, and the check is against the
1119 -- range of the type of the object being declared. This includes the
1120 -- cases of expressions providing default discriminant values, and
1121 -- expressions used to initialize record components.
1123 -- The expression of a type conversion. In this case the range check is
1124 -- against the target type of the conversion. See also the use of
1125 -- Do_Overflow_Check on a type conversion. The distinction is that the
1126 -- overflow check protects against a value that is outside the range of
1127 -- the target base type, whereas a range check checks that the
1128 -- resulting value (which is a value of the base type of the target
1129 -- type), satisfies the range constraint of the target type.
1131 -- Note: when a range check is required in contexts other than those
1132 -- listed above (e.g. in a return statement), an additional type
1133 -- conversion node is introduced to represent the required check.
1135 -- A special case arises for the arguments of the Pred/Succ attributes.
1136 -- Here the range check needed is against First + 1 .. Last (Pred) or
1137 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1138 -- these checks are what would be performed within the implicit body of
1139 -- the functions that correspond to these attributes. In these cases,
1140 -- the Do_Range check flag is set on the argument to the attribute
1141 -- function, and the back end must special case the appropriate range
1142 -- to check against.
1144 -- Do_Storage_Check (Flag17-Sem)
1145 -- This flag is set in an N_Allocator node to indicate that a storage
1146 -- check is required for the allocation, or in an N_Subprogram_Body node
1147 -- to indicate that a stack check is required in the subprogram prologue.
1148 -- The N_Allocator case is handled by the routine that expands the call
1149 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1150 -- backend, and all the semantics does is set the flag.
1152 -- Do_Tag_Check (Flag13-Sem)
1153 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1154 -- N_Procedure_Call_Statement, N_Type_Conversion,
1155 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1156 -- node to indicate that the tag check can be suppressed. It is not
1157 -- yet decided how this flag is used (TBD ???).
1159 -- Elaborate_Present (Flag4-Sem)
1160 -- This flag is set in the N_With_Clause node to indicate that pragma
1161 -- Elaborate pragma appears for the with'ed units.
1163 -- Elaborate_All_Desirable (Flag9-Sem)
1164 -- This flag is set in the N_With_Clause mode to indicate that the static
1165 -- elaboration processing has determined that an Elaborate_All pragma is
1166 -- desirable for correct elaboration for this unit.
1168 -- Elaborate_All_Present (Flag14-Sem)
1169 -- This flag is set in the N_With_Clause node to indicate that a
1170 -- pragma Elaborate_All pragma appears for the with'ed units.
1172 -- Elaborate_Desirable (Flag11-Sem)
1173 -- This flag is set in the N_With_Clause mode to indicate that the static
1174 -- elaboration processing has determined that an Elaborate pragma is
1175 -- desirable for correct elaboration for this unit.
1177 -- Else_Actions (List3-Sem)
1178 -- This field is present in if expression nodes. During code
1179 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1180 -- actions at an appropriate place in the tree to get elaborated at the
1181 -- right time. For if expressions, we have to be sure that the actions
1182 -- for the Else branch are only elaborated if the condition is False.
1183 -- The Else_Actions field is used as a temporary parking place for
1184 -- these actions. The final tree is always rewritten to eliminate the
1185 -- need for this field, so in the tree passed to Gigi, this field is
1186 -- always set to No_List.
1188 -- Enclosing_Variant (Node2-Sem)
1189 -- This field is present in the N_Variant node and identifies the Node_Id
1190 -- corresponding to the immediately enclosing variant when the variant is
1191 -- nested, and N_Empty otherwise. Set during semantic processing of the
1192 -- variant part of a record type.
1194 -- Entity (Node4-Sem)
1195 -- Appears in all direct names (identifiers, character literals, and
1196 -- operator symbols), as well as expanded names, and attributes that
1197 -- denote entities, such as 'Class. Points to entity for corresponding
1198 -- defining occurrence. Set after name resolution. For identifiers in a
1199 -- WITH list, the corresponding defining occurrence is in a separately
1200 -- compiled file, and Entity must be set by the library Load procedure.
1202 -- Note: During name resolution, the value in Entity may be temporarily
1203 -- incorrect (e.g. during overload resolution, Entity is initially set to
1204 -- the first possible correct interpretation, and then later modified if
1205 -- necessary to contain the correct value after resolution).
1207 -- Note: This field overlaps Associated_Node, which is used during
1208 -- generic processing (see Sem_Ch12 for details). Note also that in
1209 -- generic templates, this means that the Entity field does not always
1210 -- point to an Entity. Since the back end is expected to ignore generic
1211 -- templates, this is harmless.
1213 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1214 -- It is used only for stream attributes definition clauses. In this
1215 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1216 -- conceptually at the point of the clause. Thus the visibility of the
1217 -- attribute definition clause (in the sense of 8.3(23) as amended by
1218 -- AI-195) can be checked by testing the visibility of that subprogram.
1220 -- Note: Normally the Entity field of an identifier points to the entity
1221 -- for the corresponding defining identifier, and hence the Chars field
1222 -- of an identifier will match the Chars field of the entity. However,
1223 -- there is no requirement that these match, and there are obscure cases
1224 -- of generated code where they do not match.
1226 -- Note: Ada 2012 aspect specifications require additional links between
1227 -- identifiers and various attributes. These attributes can be of
1228 -- arbitrary types, and the entity field of identifiers that denote
1229 -- aspects must be used to store arbitrary expressions for later semantic
1230 -- checks. See section on aspect specifications for details.
1232 -- Entity_Or_Associated_Node (Node4-Sem)
1233 -- A synonym for both Entity and Associated_Node. Used by convention in
1234 -- the code when referencing this field in cases where it is not known
1235 -- whether the field contains an Entity or an Associated_Node.
1237 -- Etype (Node5-Sem)
1238 -- Appears in all expression nodes, all direct names, and all entities.
1239 -- Points to the entity for the related type. Set after type resolution.
1240 -- Normally this is the actual subtype of the expression. However, in
1241 -- certain contexts such as the right side of an assignment, subscripts,
1242 -- arguments to calls, returned value in a function, initial value etc.
1243 -- it is the desired target type. In the event that this is different
1244 -- from the actual type, the Do_Range_Check flag will be set if a range
1245 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1246 -- points to an essentially arbitrary choice from the possible set of
1247 -- types.
1249 -- Exception_Junk (Flag8-Sem)
1250 -- This flag is set in a various nodes appearing in a statement sequence
1251 -- to indicate that the corresponding node is an artifact of the
1252 -- generated code for exception handling, and should be ignored when
1253 -- analyzing the control flow of the relevant sequence of statements
1254 -- (e.g. to check that it does not end with a bad return statement).
1256 -- Exception_Label (Node5-Sem)
1257 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1258 -- to be used for transforming the corresponding exception into a goto,
1259 -- or contains Empty, if this exception is not to be transformed. Also
1260 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1261 -- that there may be a local raise for the handler, so that expansion
1262 -- to allow a goto is required (and this field contains the label for
1263 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1265 -- Expansion_Delayed (Flag11-Sem)
1266 -- Set on aggregates and extension aggregates that need a top-down rather
1267 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1268 -- up. For nested aggregates the expansion is delayed until the enclosing
1269 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1270 -- delay it we set this flag. This is done to avoid creating a temporary
1271 -- for each level of a nested aggregates, and also to prevent the
1272 -- premature generation of constraint checks. This is also a requirement
1273 -- if we want to generate the proper attachment to the internal
1274 -- finalization lists (for record with controlled components). Top down
1275 -- expansion of aggregates is also used for in-place array aggregate
1276 -- assignment or initialization. When the full context is known, the
1277 -- target of the assignment or initialization is used to generate the
1278 -- left-hand side of individual assignment to each sub-component.
1280 -- First_Inlined_Subprogram (Node3-Sem)
1281 -- Present in the N_Compilation_Unit node for the main program. Points
1282 -- to a chain of entities for subprograms that are to be inlined. The
1283 -- Next_Inlined_Subprogram field of these entities is used as a link
1284 -- pointer with Empty marking the end of the list. This field is Empty
1285 -- if there are no inlined subprograms or inlining is not active.
1287 -- First_Named_Actual (Node4-Sem)
1288 -- Present in procedure call statement and function call nodes, and also
1289 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1290 -- named parameter where parameters are ordered by declaration order (as
1291 -- opposed to the actual order in the call which may be different due to
1292 -- named associations). Note: this field points to the explicit actual
1293 -- parameter itself, not the N_Parameter_Association node (its parent).
1295 -- First_Real_Statement (Node2-Sem)
1296 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1297 -- Empty. Used only when declarations are moved into the statement part
1298 -- of a construct as a result of wrapping an AT END handler that is
1299 -- required to cover the declarations. In this case, this field is used
1300 -- to remember the location in the statements list of the first real
1301 -- statement, i.e. the statement that used to be first in the statement
1302 -- list before the declarations were prepended.
1304 -- First_Subtype_Link (Node5-Sem)
1305 -- Present in N_Freeze_Entity node for an anonymous base type that is
1306 -- implicitly created by the declaration of a first subtype. It points
1307 -- to the entity for the first subtype.
1309 -- Float_Truncate (Flag11-Sem)
1310 -- A flag present in type conversion nodes. This is used for float to
1311 -- integer conversions where truncation is required rather than rounding.
1313 -- Forwards_OK (Flag5-Sem)
1314 -- A flag present in the N_Assignment_Statement node. It is used only
1315 -- if the type being assigned is an array type, and is set if analysis
1316 -- determines that it is definitely safe to do the copy forwards, i.e.
1317 -- starting at the lowest addressed element. This is the case if either
1318 -- the operands do not overlap, or they may overlap, but if they do,
1319 -- then the left operand is at a lower address than the right operand.
1321 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1322 -- means that the front end could not determine that either direction is
1323 -- definitely safe, and a runtime check may be required if the backend
1324 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1325 -- set, it means that the front end can assure no overlap of operands.
1327 -- From_Aspect_Specification (Flag13-Sem)
1328 -- Processing of aspect specifications typically results in insertion in
1329 -- the tree of corresponding pragma or attribute definition clause nodes.
1330 -- These generated nodes have the From_Aspect_Specification flag set to
1331 -- indicate that they came from aspect specifications originally.
1333 -- From_At_End (Flag4-Sem)
1334 -- This flag is set on an N_Raise_Statement node if it corresponds to
1335 -- the reraise statement generated as the last statement of an AT END
1336 -- handler when SJLJ exception handling is active. It is used to stop
1337 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1338 -- because if the restriction is set, the reraise is not generated.
1340 -- From_At_Mod (Flag4-Sem)
1341 -- This flag is set on the attribute definition clause node that is
1342 -- generated by a transformation of an at mod phrase in a record
1343 -- representation clause. This is used to give slightly different (Ada 83
1344 -- compatible) semantics to such a clause, namely it is used to specify a
1345 -- minimum acceptable alignment for the base type and all subtypes. In
1346 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1347 -- must be a multiple of the given value, and the representation clause
1348 -- is considered to be type specific instead of subtype specific.
1350 -- From_Conditional_Expression (Flag1-Sem)
1351 -- This flag is set on if and case statements generated by the expansion
1352 -- of if and case expressions respectively. The flag is used to suppress
1353 -- any finalization of controlled objects found within these statements.
1355 -- From_Default (Flag6-Sem)
1356 -- This flag is set on the subprogram renaming declaration created in an
1357 -- instance for a formal subprogram, when the formal is declared with a
1358 -- box, and there is no explicit actual. If the flag is present, the
1359 -- declaration is treated as an implicit reference to the formal in the
1360 -- ali file.
1362 -- Generalized_Indexing (Node4-Sem)
1363 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1364 -- that are Ada 2012 container indexing operations. The value of the
1365 -- attribute is a function call (possibly dereferenced) that corresponds
1366 -- to the proper expansion of the source indexing operation. Before
1367 -- expansion, the source node is rewritten as the resolved generalized
1368 -- indexing. In ASIS mode, the expansion does not take place, so that
1369 -- the source is preserved and properly annotated with types.
1371 -- Generic_Parent (Node5-Sem)
1372 -- Generic_Parent is defined on declaration nodes that are instances. The
1373 -- value of Generic_Parent is the generic entity from which the instance
1374 -- is obtained. Generic_Parent is also defined for the renaming
1375 -- declarations and object declarations created for the actuals in an
1376 -- instantiation. The generic parent of such a declaration is the
1377 -- corresponding generic association in the Instantiation node.
1379 -- Generic_Parent_Type (Node4-Sem)
1380 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1381 -- actuals of formal private and derived types. Within the instance, the
1382 -- operations on the actual are those inherited from the parent. For a
1383 -- formal private type, the parent type is the generic type itself. The
1384 -- Generic_Parent_Type is also used in an instance to determine whether a
1385 -- private operation overrides an inherited one.
1387 -- Handler_List_Entry (Node2-Sem)
1388 -- This field is present in N_Object_Declaration nodes. It is set only
1389 -- for the Handler_Record entry generated for an exception in zero cost
1390 -- exception handling mode. It references the corresponding item in the
1391 -- handler list, and is used to delete this entry if the corresponding
1392 -- handler is deleted during optimization. For further details on why
1393 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1395 -- Has_Dereference_Action (Flag13-Sem)
1396 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1397 -- indicate that the expansion has aready produced a call to primitive
1398 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1399 -- Such dereference actions are produced for debugging purposes.
1401 -- Has_Dynamic_Length_Check (Flag10-Sem)
1402 -- This flag is present in all expression nodes. It is set to indicate
1403 -- that one of the routines in unit Checks has generated a length check
1404 -- action which has been inserted at the flagged node. This is used to
1405 -- avoid the generation of duplicate checks.
1407 -- Has_Dynamic_Range_Check (Flag12-Sem)
1408 -- This flag is present in N_Subtype_Declaration nodes and on all
1409 -- expression nodes. It is set to indicate that one of the routines in
1410 -- unit Checks has generated a range check action which has been inserted
1411 -- at the flagged node. This is used to avoid the generation of duplicate
1412 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1413 -- it mean in that context???
1415 -- Has_Local_Raise (Flag8-Sem)
1416 -- Present in exception handler nodes. Set if the handler can be entered
1417 -- via a local raise that gets transformed to a goto statement. This will
1418 -- always be set if Local_Raise_Statements is non-empty, but can also be
1419 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1420 -- nodes requiring generation of back end checks.
1422 -- Has_No_Elaboration_Code (Flag17-Sem)
1423 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1424 -- or not elaboration code is present for this unit. It is initially set
1425 -- true for subprogram specs and bodies and for all generic units and
1426 -- false for non-generic package specs and bodies. Gigi may set the flag
1427 -- in the non-generic package case if it determines that no elaboration
1428 -- code is generated. Note that this flag is not related to the
1429 -- Is_Preelaborated status, there can be preelaborated packages that
1430 -- generate elaboration code, and non-preelaborated packages which do
1431 -- not generate elaboration code.
1433 -- Has_Pragma_Suppress_All (Flag14-Sem)
1434 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1435 -- pragma appears anywhere in the unit. This accommodates the rather
1436 -- strange placement rules of other compilers (DEC permits it at the
1437 -- end of a unit, and Rational allows it as a program unit pragma). We
1438 -- allow it anywhere at all, and consider it equivalent to a pragma
1439 -- Suppress (All_Checks) appearing at the start of the configuration
1440 -- pragmas for the unit.
1442 -- Has_Private_View (Flag11-Sem)
1443 -- A flag present in generic nodes that have an entity, to indicate that
1444 -- the node has a private type. Used to exchange private and full
1445 -- declarations if the visibility at instantiation is different from the
1446 -- visibility at generic definition.
1448 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1449 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1450 -- flag the presence of a pragma Relative_Deadline.
1452 -- Has_Self_Reference (Flag13-Sem)
1453 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1454 -- of the expressions contains an access attribute reference to the
1455 -- enclosing type. Such a self-reference can only appear in default-
1456 -- initialized aggregate for a record type.
1458 -- Has_SP_Choice (Flag15-Sem)
1459 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1460 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1461 -- True if the Discrete_Choices list has at least one occurrence of a
1462 -- statically predicated subtype.
1464 -- Has_Storage_Size_Pragma (Flag5-Sem)
1465 -- A flag present in an N_Task_Definition node to flag the presence of a
1466 -- Storage_Size pragma.
1468 -- Has_Wide_Character (Flag11-Sem)
1469 -- Present in string literals, set if any wide character (i.e. character
1470 -- code outside the Character range but within Wide_Character range)
1471 -- appears in the string. Used to implement pragma preference rules.
1473 -- Has_Wide_Wide_Character (Flag13-Sem)
1474 -- Present in string literals, set if any wide character (i.e. character
1475 -- code outside the Wide_Character range) appears in the string. Used to
1476 -- implement pragma preference rules.
1478 -- Header_Size_Added (Flag11-Sem)
1479 -- Present in N_Attribute_Reference nodes, set only for attribute
1480 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1481 -- hidden list header used by the runtime finalization support has been
1482 -- added to the size of the prefix. The flag also prevents the infinite
1483 -- expansion of the same attribute in the said context.
1485 -- Hidden_By_Use_Clause (Elist4-Sem)
1486 -- An entity list present in use clauses that appear within
1487 -- instantiations. For the resolution of local entities, entities
1488 -- introduced by these use clauses have priority over global ones, and
1489 -- outer entities must be explicitly hidden/restored on exit.
1491 -- Implicit_With (Flag16-Sem)
1492 -- This flag is set in the N_With_Clause node that is implicitly
1493 -- generated for runtime units that are loaded by the expander, and also
1494 -- for package System, if it is loaded implicitly by a use of the
1495 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1496 -- as well.
1498 -- Implicit_With_From_Instantiation (Flag12-Sem)
1499 -- Set in N_With_Clause nodes from generic instantiations.
1501 -- Import_Interface_Present (Flag16-Sem)
1502 -- This flag is set in an Interface or Import pragma if a matching
1503 -- pragma of the other kind is also present. This is used to avoid
1504 -- generating some unwanted error messages.
1506 -- Includes_Infinities (Flag11-Sem)
1507 -- This flag is present in N_Range nodes. It is set for the range of
1508 -- unconstrained float types defined in Standard, which include not only
1509 -- the given range of values, but also legitimately can include infinite
1510 -- values. This flag is false for any float type for which an explicit
1511 -- range is given by the programmer, even if that range is identical to
1512 -- the range for Float.
1514 -- Incomplete_View (Node2-Sem)
1515 -- Present in full type declarations that are completions of incomplete
1516 -- type declarations. Denotes the corresponding incomplete type
1517 -- declaration. Used to simplify the retrieval of primitive operations
1518 -- that may be declared between the partial and the full view of an
1519 -- untagged type.
1521 -- Inherited_Discriminant (Flag13-Sem)
1522 -- This flag is present in N_Component_Association nodes. It indicates
1523 -- that a given component association in an extension aggregate is the
1524 -- value obtained from a constraint on an ancestor. Used to prevent
1525 -- double expansion when the aggregate has expansion delayed.
1527 -- Instance_Spec (Node5-Sem)
1528 -- This field is present in generic instantiation nodes, and also in
1529 -- formal package declaration nodes (formal package declarations are
1530 -- treated in a manner very similar to package instantiations). It points
1531 -- to the node for the spec of the instance, inserted as part of the
1532 -- semantic processing for instantiations in Sem_Ch12.
1534 -- Is_Accessibility_Actual (Flag13-Sem)
1535 -- Present in N_Parameter_Association nodes. True if the parameter is
1536 -- an extra actual that carries the accessibility level of the actual
1537 -- for an access parameter, in a function that dispatches on result and
1538 -- is called in a dispatching context. Used to prevent a formal/actual
1539 -- mismatch when the call is rewritten as a dispatching call.
1541 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1542 -- A flag set in a Block_Statement node to indicate that it is the
1543 -- expansion of an asynchronous entry call. Such a block needs cleanup
1544 -- handler to assure that the call is cancelled.
1546 -- Is_Boolean_Aspect (Flag16-Sem)
1547 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1548 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1550 -- Is_Checked (Flag11-Sem)
1551 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1552 -- assertion aspect or pragma, or check pragma for an assertion, that
1553 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1554 -- is set (they cannot both be set), then this means that the status of
1555 -- the pragma has been checked at the appropriate point and should not
1556 -- be further modified (in some cases these flags are copied when a
1557 -- pragma is rewritten).
1559 -- Is_Component_Left_Opnd (Flag13-Sem)
1560 -- Is_Component_Right_Opnd (Flag14-Sem)
1561 -- Present in concatenation nodes, to indicate that the corresponding
1562 -- operand is of the component type of the result. Used in resolving
1563 -- concatenation nodes in instances.
1565 -- Is_Controlling_Actual (Flag16-Sem)
1566 -- This flag is set on in an expression that is a controlling argument in
1567 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1568 -- details of its use.
1570 -- Is_Delayed_Aspect (Flag14-Sem)
1571 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1572 -- come from aspect specifications, where the evaluation of the aspect
1573 -- must be delayed to the freeze point. This flag is also set True in
1574 -- the corresponding N_Aspect_Specification node.
1576 -- Is_Disabled (Flag15-Sem)
1577 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1578 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1579 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1580 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1581 -- If this flag is set, the aspect or policy is not analyzed for semantic
1582 -- correctness, so any expressions etc will not be marked as analyzed.
1584 -- Is_Dynamic_Coextension (Flag18-Sem)
1585 -- Present in allocator nodes, to indicate that this is an allocator
1586 -- for an access discriminant of a dynamically allocated object. The
1587 -- coextension must be deallocated and finalized at the same time as
1588 -- the enclosing object.
1590 -- Is_Entry_Barrier_Function (Flag8-Sem)
1591 -- This flag is set in an N_Subprogram_Body node which is the expansion
1592 -- of an entry barrier from a protected entry body. It is used for the
1593 -- circuitry checking for incorrect use of Current_Task.
1595 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1596 -- This flag is set in an N_Function_Call node to indicate that the extra
1597 -- actuals to support a build-in-place style of call have been added to
1598 -- the call.
1600 -- Is_Finalization_Wrapper (Flag9-Sem);
1601 -- This flag is present in N_Block_Statement nodes. It is set when the
1602 -- block acts as a wrapper of a handled construct which has controlled
1603 -- objects. The wrapper prevents interference between exception handlers
1604 -- and At_End handlers.
1606 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1607 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1608 -- a source construct, applies to a generic unit or its body and denotes
1609 -- one of the following contract-related annotations:
1610 -- Abstract_State
1611 -- Contract_Cases
1612 -- Depends
1613 -- Extensions_Visible
1614 -- Global
1615 -- Initial_Condition
1616 -- Initializes
1617 -- Post
1618 -- Post_Class
1619 -- Postcondition
1620 -- Pre
1621 -- Pre_Class
1622 -- Precondition
1623 -- Refined_Depends
1624 -- Refined_Global
1625 -- Refined_Post
1626 -- Refined_State
1627 -- Test_Case
1629 -- Is_Ghost_Pragma (Flag3-Sem)
1630 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1631 -- either declared within a Ghost construct or it applies to a Ghost
1632 -- construct.
1634 -- Is_Ignored (Flag9-Sem)
1635 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1636 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1637 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1638 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1639 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1640 -- gives a policy for the aspect or pragma, then there are two cases. For
1641 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1642 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1643 -- ignored because of the absence of a -gnata switch. For any other
1644 -- aspects or pragmas, the flag is off. If this flag is set, the
1645 -- aspect/pragma is fully analyzed and checked for other syntactic
1646 -- and semantic errors, but it does not have any semantic effect.
1648 -- Is_In_Discriminant_Check (Flag11-Sem)
1649 -- This flag is present in a selected component, and is used to indicate
1650 -- that the reference occurs within a discriminant check. The
1651 -- significance is that optimizations based on assuming that the
1652 -- discriminant check has a correct value cannot be performed in this
1653 -- case (or the discriminant check may be optimized away).
1655 -- Is_Inherited (Flag4-Sem)
1656 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1657 -- to indicate that the pragma has been inherited from a parent context.
1659 -- Is_Machine_Number (Flag11-Sem)
1660 -- This flag is set in an N_Real_Literal node to indicate that the value
1661 -- is a machine number. This avoids some unnecessary cases of converting
1662 -- real literals to machine numbers.
1664 -- Is_Null_Loop (Flag16-Sem)
1665 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1666 -- can be determined to be null at compile time. This is used to remove
1667 -- the loop entirely at expansion time.
1669 -- Is_Overloaded (Flag5-Sem)
1670 -- A flag present in all expression nodes. Used temporarily during
1671 -- overloading determination. The setting of this flag is not relevant
1672 -- once overloading analysis is complete.
1674 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1675 -- A flag present only in N_Op_Expon nodes. It is set when the
1676 -- exponentiation is of the form 2 ** N, where the type of N is an
1677 -- unsigned integral subtype whose size does not exceed the size of
1678 -- Standard_Integer (i.e. a type that can be safely converted to
1679 -- Natural), and the exponentiation appears as the right operand of an
1680 -- integer multiplication or an integer division where the dividend is
1681 -- unsigned. It is also required that overflow checking is off for both
1682 -- the exponentiation and the multiply/divide node. If this set of
1683 -- conditions holds, and the flag is set, then the division or
1684 -- multiplication can be (and is) converted to a shift.
1686 -- Is_Prefixed_Call (Flag17-Sem)
1687 -- This flag is set in a selected component within a generic unit, if
1688 -- it resolves to a prefixed call to a primitive operation. The flag
1689 -- is used to prevent accidental overloadings in an instance, when a
1690 -- primitive operation and a private record component may be homographs.
1692 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1693 -- A flag set in a Subprogram_Body block to indicate that it is the
1694 -- implementation of a protected subprogram. Such a body needs cleanup
1695 -- handler to make sure that the associated protected object is unlocked
1696 -- when the subprogram completes.
1698 -- Is_Static_Coextension (Flag14-Sem)
1699 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1700 -- of an object allocated on the stack rather than the heap.
1702 -- Is_Static_Expression (Flag6-Sem)
1703 -- Indicates that an expression is a static expression according to the
1704 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1705 -- when Raises_Constraint_Error is also set. In practice almost all cases
1706 -- where a static expression is required do not allow an expression which
1707 -- raises Constraint_Error, so almost always, callers should call the
1708 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1709 -- spec of package Sem_Eval for full details on the use of this flag.
1711 -- Is_Subprogram_Descriptor (Flag16-Sem)
1712 -- Present in N_Object_Declaration, and set only for the object
1713 -- declaration generated for a subprogram descriptor in fast exception
1714 -- mode. See Exp_Ch11 for details of use.
1716 -- Is_Task_Allocation_Block (Flag6-Sem)
1717 -- A flag set in a Block_Statement node to indicate that it is the
1718 -- expansion of a task allocator, or the allocator of an object
1719 -- containing tasks. Such a block requires a cleanup handler to call
1720 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1721 -- allocated but not activated when the allocator completes abnormally.
1723 -- Is_Task_Master (Flag5-Sem)
1724 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1725 -- indicate that the construct is a task master (i.e. has declared tasks
1726 -- or declares an access to a task type).
1728 -- Itype (Node1-Sem)
1729 -- Used in N_Itype_Reference node to reference an itype for which it is
1730 -- important to ensure that it is defined. See description of this node
1731 -- for further details.
1733 -- Kill_Range_Check (Flag11-Sem)
1734 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1735 -- result should not be subjected to range checks. This is used for the
1736 -- implementation of Normalize_Scalars.
1738 -- Label_Construct (Node2-Sem)
1739 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1740 -- N_Block_Statement or N_Loop_Statement node to which the label
1741 -- declaration applies. This attribute is used both in the compiler and
1742 -- in the implementation of ASIS queries. The field is left empty for the
1743 -- special labels generated as part of expanding raise statements with a
1744 -- local exception handler.
1746 -- Library_Unit (Node4-Sem)
1747 -- In a stub node, Library_Unit points to the compilation unit node of
1748 -- the corresponding subunit.
1750 -- In a with clause node, Library_Unit points to the spec of the with'ed
1751 -- unit.
1753 -- In a compilation unit node, the usage depends on the unit type:
1755 -- For a library unit body, Library_Unit points to the compilation unit
1756 -- node of the corresponding spec, unless it's a subprogram body with
1757 -- Acts_As_Spec set, in which case it points to itself.
1759 -- For a spec, Library_Unit points to the compilation unit node of the
1760 -- corresponding body, if present. The body will be present if the spec
1761 -- is or contains generics that we needed to instantiate. Similarly, the
1762 -- body will be present if we needed it for inlining purposes. Thus, if
1763 -- we have a spec/body pair, both of which are present, they point to
1764 -- each other via Library_Unit.
1766 -- For a subunit, Library_Unit points to the compilation unit node of
1767 -- the parent body.
1768 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1769 -- to the corresponding spec for the parent body.
1771 -- Note that this field is not used to hold the parent pointer for child
1772 -- unit (which might in any case need to use it for some other purpose as
1773 -- described above). Instead for a child unit, implicit with's are
1774 -- generated for all parents.
1776 -- Local_Raise_Statements (Elist1)
1777 -- This field is present in exception handler nodes. It is set to
1778 -- No_Elist in the normal case. If there is at least one raise statement
1779 -- which can potentially be handled as a local raise, then this field
1780 -- points to a list of raise nodes, which are calls to a routine to raise
1781 -- an exception. These are raise nodes which can be optimized into gotos
1782 -- if the handler turns out to meet the conditions which permit this
1783 -- transformation. Note that this does NOT include instances of the
1784 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1785 -- handled by the back end (using the N_Push/N_Pop mechanism).
1787 -- Loop_Actions (List2-Sem)
1788 -- A list present in Component_Association nodes in array aggregates.
1789 -- Used to collect actions that must be executed within the loop because
1790 -- they may need to be evaluated anew each time through.
1792 -- Limited_View_Installed (Flag18-Sem)
1793 -- Present in With_Clauses and in package specifications. If set on
1794 -- with_clause, it indicates that this clause has created the current
1795 -- limited view of the designated package. On a package specification, it
1796 -- indicates that the limited view has already been created because the
1797 -- package is mentioned in a limited_with_clause in the closure of the
1798 -- unit being compiled.
1800 -- Local_Raise_Not_OK (Flag7-Sem)
1801 -- Present in N_Exception_Handler nodes. Set if the handler contains
1802 -- a construct (reraise statement, or call to subprogram in package
1803 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1804 -- for a local raise (one that could otherwise be converted to a goto).
1806 -- Must_Be_Byte_Aligned (Flag14-Sem)
1807 -- This flag is present in N_Attribute_Reference nodes. It can be set
1808 -- only for the Address and Unrestricted_Access attributes. If set it
1809 -- means that the object for which the address/access is given must be on
1810 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1811 -- of the object is to be made before taking the address (this copy is in
1812 -- the current scope on the stack frame). This is used for certain cases
1813 -- of code generated by the expander that passes parameters by address.
1815 -- The reason the copy is not made by the front end is that the back end
1816 -- has more information about type layout and may be able to (but is not
1817 -- guaranteed to) prevent making unnecessary copies.
1819 -- Must_Not_Freeze (Flag8-Sem)
1820 -- A flag present in all expression nodes. Normally expressions cause
1821 -- freezing as described in the RM. If this flag is set, then this is
1822 -- inhibited. This is used by the analyzer and expander to label nodes
1823 -- that are created by semantic analysis or expansion and which must not
1824 -- cause freezing even though they normally would. This flag is also
1825 -- present in an N_Subtype_Indication node, since we also use these in
1826 -- calls to Freeze_Expression.
1828 -- Next_Entity (Node2-Sem)
1829 -- Present in defining identifiers, defining character literals and
1830 -- defining operator symbols (i.e. in all entities). The entities of a
1831 -- scope are chained, and this field is used as the forward pointer for
1832 -- this list. See Einfo for further details.
1834 -- Next_Exit_Statement (Node3-Sem)
1835 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1836 -- chained (in reverse order of appearance) from the First_Exit_Statement
1837 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1838 -- the next entry on this chain (Empty = end of list).
1840 -- Next_Implicit_With (Node3-Sem)
1841 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1842 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1843 -- to prevent multiple with_clauses for the same unit in a given context.
1844 -- A postorder traversal of the tree whose nodes are units and whose
1845 -- links are with_clauses defines the order in which CodePeer must
1846 -- examine a compiled unit and its full context. This ordering ensures
1847 -- that any subprogram call is examined after the subprogram declaration
1848 -- has been seen.
1850 -- Next_Named_Actual (Node4-Sem)
1851 -- Present in parameter association nodes. Set during semantic analysis
1852 -- to point to the next named parameter, where parameters are ordered by
1853 -- declaration order (as opposed to the actual order in the call, which
1854 -- may be different due to named associations). Not that this field
1855 -- points to the explicit actual parameter itself, not to the
1856 -- N_Parameter_Association node (its parent).
1858 -- Next_Pragma (Node1-Sem)
1859 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1860 -- nodes. Currently used for two purposes:
1862 -- Create a list of linked Check_Policy pragmas. The head of this list
1863 -- is stored in Opt.Check_Policy_List (which has further details).
1865 -- Used by processing for Pre/Postcondition pragmas to store a list of
1866 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1867 -- details).
1869 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1870 -- the apply to the same construct. These are visible/private mode for
1871 -- a package spec and declarative/statement mode for package body.
1873 -- Next_Rep_Item (Node5-Sem)
1874 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1875 -- clauses, record rep clauses, aspect specification nodes. Used to link
1876 -- representation items that apply to an entity. See full description of
1877 -- First_Rep_Item field in Einfo for further details.
1879 -- Next_Use_Clause (Node3-Sem)
1880 -- While use clauses are active during semantic processing, they are
1881 -- chained from the scope stack entry, using Next_Use_Clause as a link
1882 -- pointer, with Empty marking the end of the list. The head pointer is
1883 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1884 -- processing (i.e. when Gigi sees the tree, the contents of this field
1885 -- is undefined and should not be read).
1887 -- No_Ctrl_Actions (Flag7-Sem)
1888 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1889 -- Adjust should take place on this assignment even though the RHS is
1890 -- controlled. Also indicates that the primitive _assign should not be
1891 -- used for a tagged assignment. This is used in init procs and aggregate
1892 -- expansions where the generated assignments are initializations, not
1893 -- real assignments.
1895 -- No_Elaboration_Check (Flag14-Sem)
1896 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1897 -- that no elaboration check is needed on the call, because it appears in
1898 -- the context of a local Suppress pragma. This is used on calls within
1899 -- task bodies, where the actual elaboration checks are applied after
1900 -- analysis, when the local scope stack is not present.
1902 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1903 -- Present in N_With_Clause nodes. Set if the with clause is on the
1904 -- package or subprogram spec where the main unit is the corresponding
1905 -- body, and no entities of the with'ed unit are referenced by the spec
1906 -- (an entity may still be referenced in the body, so this flag is used
1907 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1908 -- full details)
1910 -- No_Initialization (Flag13-Sem)
1911 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1912 -- object must not be initialized (by Initialize or call to an init
1913 -- proc). This is needed for controlled aggregates. When the Object
1914 -- declaration has an expression, this flag means that this expression
1915 -- should not be taken into account (needed for in place initialization
1916 -- with aggregates, and for object with an address clause, which are
1917 -- initialized with an assignment at freeze time).
1919 -- No_Minimize_Eliminate (Flag17-Sem)
1920 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1921 -- It is used to indicate that processing for extended overflow checking
1922 -- modes is not required (this is used to prevent infinite recursion).
1924 -- No_Truncation (Flag17-Sem)
1925 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1926 -- only if the RM_Size of the source is greater than the RM_Size of the
1927 -- target for scalar operands. Normally in such a case we truncate some
1928 -- higher order bits of the source, and then sign/zero extend the result
1929 -- to form the output value. But if this flag is set, then we do not do
1930 -- any truncation, so for example, if an 8 bit input is converted to 5
1931 -- bit result which is in fact stored in 8 bits, then the high order
1932 -- three bits of the target result will be copied from the source. This
1933 -- is used for properly setting out of range values for use by pragmas
1934 -- Initialize_Scalars and Normalize_Scalars.
1936 -- Non_Aliased_Prefix (Flag18-Sem)
1937 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1938 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1939 -- the case that is permitted for Unrestricted_Access except when the
1940 -- expected type is a thin pointer to unconstrained array. This flag is
1941 -- to assist in detecting this illegal use of Unrestricted_Access.
1943 -- Null_Excluding_Subtype (Flag16)
1944 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1945 -- indication carries a null-exclusion indicator, which is distinct from
1946 -- the null-exclusion indicator that may precede the access keyword.
1948 -- Original_Discriminant (Node2-Sem)
1949 -- Present in identifiers. Used in references to discriminants that
1950 -- appear in generic units. Because the names of the discriminants may be
1951 -- different in an instance, we use this field to recover the position of
1952 -- the discriminant in the original type, and replace it with the
1953 -- discriminant at the same position in the instantiated type.
1955 -- Original_Entity (Node2-Sem)
1956 -- Present in numeric literals. Used to denote the named number that has
1957 -- been constant-folded into the given literal. If literal is from
1958 -- source, or the result of some other constant-folding operation, then
1959 -- Original_Entity is empty. This field is needed to handle properly
1960 -- named numbers in generic units, where the Associated_Node field
1961 -- interferes with the Entity field, making it impossible to preserve the
1962 -- original entity at the point of instantiation (ASIS problem).
1964 -- Others_Discrete_Choices (List1-Sem)
1965 -- When a case statement or variant is analyzed, the semantic checks
1966 -- determine the actual list of choices that correspond to an others
1967 -- choice. This list is materialized for later use by the expander and
1968 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1969 -- this materialized list of choices, which is in standard format for a
1970 -- list of discrete choices, except that of course it cannot contain an
1971 -- N_Others_Choice entry.
1973 -- Parent_Spec (Node4-Sem)
1974 -- For a library unit that is a child unit spec (package or subprogram
1975 -- declaration, generic declaration or instantiation, or library level
1976 -- rename, this field points to the compilation unit node for the parent
1977 -- package specification. This field is Empty for library bodies (the
1978 -- parent spec in this case can be found from the corresponding spec).
1980 -- Premature_Use (Node5-Sem)
1981 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1982 -- error diagnostics: if there is a premature usage of an incomplete
1983 -- type, a subsequently generated error message indicates the position
1984 -- of its full declaration.
1986 -- Present_Expr (Uint3-Sem)
1987 -- Present in an N_Variant node. This has a meaningful value only after
1988 -- Gigi has back annotated the tree with representation information. At
1989 -- this point, it contains a reference to a gcc expression that depends
1990 -- on the values of one or more discriminants. Give a set of discriminant
1991 -- values, this expression evaluates to False (zero) if variant is not
1992 -- present, and True (non-zero) if it is present. See unit Repinfo for
1993 -- further details on gigi back annotation. This field is used during
1994 -- ASIS processing (data decomposition annex) to determine if a field is
1995 -- present or not.
1997 -- Print_In_Hex (Flag13-Sem)
1998 -- Set on an N_Integer_Literal node to indicate that the value should be
1999 -- printed in hexadecimal in the sprint listing. Has no effect on
2000 -- legality or semantics of program, only on the displayed output. This
2001 -- is used to clarify output from the packed array cases.
2003 -- Procedure_To_Call (Node2-Sem)
2004 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2005 -- and N_Extended_Return_Statement nodes. References the entity for the
2006 -- declaration of the procedure to be called to accomplish the required
2007 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2008 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2009 -- allocating the return value), and for the Deallocate procedure in the
2010 -- case of N_Free_Statement.
2012 -- Raises_Constraint_Error (Flag7-Sem)
2013 -- Set on an expression whose evaluation will definitely fail constraint
2014 -- error check. In the case of static expressions, this flag must be set
2015 -- accurately (and if it is set, the expression is typically illegal
2016 -- unless it appears as a non-elaborated branch of a short-circuit form).
2017 -- For a non-static expression, this flag may be set whenever an
2018 -- expression (e.g. an aggregate) is known to raise constraint error. If
2019 -- set, the expression definitely will raise CE if elaborated at runtime.
2020 -- If not set, the expression may or may not raise CE. In other words, on
2021 -- static expressions, the flag is set accurately, on non-static
2022 -- expressions it is set conservatively.
2024 -- Redundant_Use (Flag13-Sem)
2025 -- Present in nodes that can appear as an operand in a use clause or use
2026 -- type clause (identifiers, expanded names, attribute references). Set
2027 -- to indicate that a use is redundant (and therefore need not be undone
2028 -- on scope exit).
2030 -- Renaming_Exception (Node2-Sem)
2031 -- Present in N_Exception_Declaration node. Used to point back to the
2032 -- exception renaming for an exception declared within a subprogram.
2033 -- What happens is that an exception declared in a subprogram is moved
2034 -- to the library level with a unique name, and the original exception
2035 -- becomes a renaming. This link from the library level exception to the
2036 -- renaming declaration allows registering of the proper exception name.
2038 -- Return_Statement_Entity (Node5-Sem)
2039 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2040 -- Points to an E_Return_Statement representing the return statement.
2042 -- Return_Object_Declarations (List3)
2043 -- Present in N_Extended_Return_Statement. Points to a list initially
2044 -- containing a single N_Object_Declaration representing the return
2045 -- object. We use a list (instead of just a pointer to the object decl)
2046 -- because Analyze wants to insert extra actions on this list.
2048 -- Rounded_Result (Flag18-Sem)
2049 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2050 -- Used in the fixed-point cases to indicate that the result must be
2051 -- rounded as a result of the use of the 'Round attribute. Also used for
2052 -- integer N_Op_Divide nodes to indicate that the result should be
2053 -- rounded to the nearest integer (breaking ties away from zero), rather
2054 -- than truncated towards zero as usual. These rounded integer operations
2055 -- are the result of expansion of rounded fixed-point divide, conversion
2056 -- and multiplication operations.
2058 -- SCIL_Entity (Node4-Sem)
2059 -- Present in SCIL nodes. References the specific tagged type associated
2060 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2061 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2062 -- generated as part of testing membership in T'Class, this is T; for an
2063 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2065 -- SCIL_Controlling_Tag (Node5-Sem)
2066 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2067 -- tag of a dispatching call. This is usually an N_Selected_Component
2068 -- node (for a _tag component), but may be an N_Object_Declaration or
2069 -- N_Parameter_Specification node in some cases (e.g., for a call to
2070 -- a classwide streaming operation or a call to an instance of
2071 -- Ada.Tags.Generic_Dispatching_Constructor).
2073 -- SCIL_Tag_Value (Node5-Sem)
2074 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2075 -- of the value that is being tested.
2077 -- SCIL_Target_Prim (Node2-Sem)
2078 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2079 -- operation named (statically) in a dispatching call.
2081 -- Scope (Node3-Sem)
2082 -- Present in defining identifiers, defining character literals and
2083 -- defining operator symbols (i.e. in all entities). The entities of a
2084 -- scope all use this field to reference the corresponding scope entity.
2085 -- See Einfo for further details.
2087 -- Shift_Count_OK (Flag4-Sem)
2088 -- A flag present in shift nodes to indicate that the shift count is
2089 -- known to be in range, i.e. is in the range from zero to word length
2090 -- minus one. If this flag is not set, then the shift count may be
2091 -- outside this range, i.e. larger than the word length, and the code
2092 -- must ensure that such shift counts give the appropriate result.
2094 -- Source_Type (Node1-Sem)
2095 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2096 -- source type entity for the unchecked conversion instantiation
2097 -- which gigi must do size validation for.
2099 -- Split_PPC (Flag17)
2100 -- When a Pre or Post aspect specification is processed, it is broken
2101 -- into AND THEN sections. The left most section has Split_PPC set to
2102 -- False, indicating that it is the original specification (e.g. for
2103 -- posting errors). For other sections, Split_PPC is set to True.
2104 -- This flag is set in both the N_Aspect_Specification node itself,
2105 -- and in the pragma which is generated from this node.
2107 -- Storage_Pool (Node1-Sem)
2108 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2109 -- and N_Extended_Return_Statement nodes. References the entity for the
2110 -- storage pool to be used for the allocate or free call or for the
2111 -- allocation of the returned value from function. Empty indicates that
2112 -- the global default pool is to be used. Note that in the case
2113 -- of a return statement, this field is set only if the function returns
2114 -- value of a type whose size is not known at compile time on the
2115 -- secondary stack.
2117 -- Suppress_Assignment_Checks (Flag18-Sem)
2118 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2119 -- and range checks in cases where the generated code knows that the
2120 -- value being assigned is in range and satisfies any predicate. Also
2121 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2122 -- checks on the initializing value. In assignment statements it also
2123 -- suppresses access checks in the generated code for out- and in-out
2124 -- parameters in entry calls.
2126 -- Suppress_Loop_Warnings (Flag17-Sem)
2127 -- Used in N_Loop_Statement node to indicate that warnings within the
2128 -- body of the loop should be suppressed. This is set when the range
2129 -- of a FOR loop is known to be null, or is probably null (loop would
2130 -- only execute if invalid values are present).
2132 -- Target_Type (Node2-Sem)
2133 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2134 -- type entity for the unchecked conversion instantiation which gigi must
2135 -- do size validation for.
2137 -- Then_Actions (List3-Sem)
2138 -- This field is present in if expression nodes. During code expansion
2139 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2140 -- at an appropriate place in the tree to get elaborated at the right
2141 -- time. For if expressions, we have to be sure that the actions for
2142 -- for the Then branch are only elaborated if the condition is True.
2143 -- The Then_Actions field is used as a temporary parking place for
2144 -- these actions. The final tree is always rewritten to eliminate the
2145 -- need for this field, so in the tree passed to Gigi, this field is
2146 -- always set to No_List.
2148 -- Treat_Fixed_As_Integer (Flag14-Sem)
2149 -- This flag appears in operator nodes for divide, multiply, mod and rem
2150 -- on fixed-point operands. It indicates that the operands are to be
2151 -- treated as integer values, ignoring small values. This flag is only
2152 -- set as a result of expansion of fixed-point operations. Typically a
2153 -- fixed-point multiplication in the source generates subsidiary
2154 -- multiplication and division operations that work with the underlying
2155 -- integer values and have this flag set. Note that this flag is not
2156 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2157 -- in these cases it is always the case that fixed is treated as integer.
2158 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2159 -- leave such nodes alone, and whoever makes them must set the correct
2160 -- Etype value.
2162 -- TSS_Elist (Elist3-Sem)
2163 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2164 -- entries for each TSS (type support subprogram) associated with the
2165 -- frozen type. The elements of the list are the entities for the
2166 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2167 -- if there are no type support subprograms for the type or if the freeze
2168 -- node is not for a type.
2170 -- Uneval_Old_Accept (Flag7-Sem)
2171 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2172 -- (accept) at the point where the pragma is encountered (including the
2173 -- case of a pragma generated from an aspect specification). It is this
2174 -- setting that is relevant, rather than the setting at the point where
2175 -- a contract is finally analyzed after the delay till the freeze point.
2177 -- Uneval_Old_Warn (Flag18-Sem)
2178 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2179 -- (warn) at the point where the pragma is encountered (including the
2180 -- case of a pragma generated from an aspect specification). It is this
2181 -- setting that is relevant, rather than the setting at the point where
2182 -- a contract is finally analyzed after the delay till the freeze point.
2184 -- Unreferenced_In_Spec (Flag7-Sem)
2185 -- Present in N_With_Clause nodes. Set if the with clause is on the
2186 -- package or subprogram spec where the main unit is the corresponding
2187 -- body, and is not referenced by the spec (it may still be referenced by
2188 -- the body, so this flag is used to generate the proper message (see
2189 -- Sem_Util.Check_Unused_Withs for details)
2191 -- Uninitialized_Variable (Node3-Sem)
2192 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2193 -- Extension_Declarations. Indicates that a variable in a generic unit
2194 -- whose type is a formal private or derived type is read without being
2195 -- initialized. Used to warn if the corresponding actual type is not
2196 -- a fully initialized type.
2198 -- Used_Operations (Elist5-Sem)
2199 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2200 -- are made potentially use-visible by the clause. Simplifies processing
2201 -- on exit from the scope of the use_type_clause, in particular in the
2202 -- case of Use_All_Type, when those operations several scopes.
2204 -- Was_Originally_Stub (Flag13-Sem)
2205 -- This flag is set in the node for a proper body that replaces stub.
2206 -- During the analysis procedure, stubs in some situations get rewritten
2207 -- by the corresponding bodies, and we set this flag to remember that
2208 -- this happened. Note that it is not good enough to rely on the use of
2209 -- Original_Node here because of the case of nested instantiations where
2210 -- the substituted node can be copied.
2212 -- Withed_Body (Node1-Sem)
2213 -- Present in N_With_Clause nodes. Set if the unit in whose context
2214 -- the with_clause appears instantiates a generic contained in the
2215 -- library unit of the with_clause and as a result loads its body.
2216 -- Used for a more precise unit traversal for CodePeer.
2218 --------------------------------------------------
2219 -- Note on Use of End_Label and End_Span Fields --
2220 --------------------------------------------------
2222 -- Several constructs have end lines:
2224 -- Loop Statement end loop [loop_IDENTIFIER];
2225 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2226 -- Task Definition end [task_IDENTIFIER]
2227 -- Protected Definition end [protected_IDENTIFIER]
2228 -- Protected Body end [protected_IDENTIFIER]
2230 -- Block Statement end [block_IDENTIFIER];
2231 -- Subprogram Body end [DESIGNATOR];
2232 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2233 -- Task Body end [task_IDENTIFIER];
2234 -- Accept Statement end [entry_IDENTIFIER]];
2235 -- Entry Body end [entry_IDENTIFIER];
2237 -- If Statement end if;
2238 -- Case Statement end case;
2240 -- Record Definition end record;
2241 -- Enumeration Definition );
2243 -- The End_Label and End_Span fields are used to mark the locations of
2244 -- these lines, and also keep track of the label in the case where a label
2245 -- is present.
2247 -- For the first group above, the End_Label field of the corresponding node
2248 -- is used to point to the label identifier. In the case where there is no
2249 -- label in the source, the parser supplies a dummy identifier (with
2250 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2251 -- marks the location of the token following the END token.
2253 -- For the second group, the use of End_Label is similar, but the End_Label
2254 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2255 -- simply because in some cases there is no room in the parent node.
2257 -- For the third group, there is never any label, and instead of using
2258 -- End_Label, we use the End_Span field which gives the location of the
2259 -- token following END, relative to the starting Sloc of the construct,
2260 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2261 -- following the End_Label.
2263 -- The record definition case is handled specially, we treat it as though
2264 -- it required an optional label which is never present, and so the parser
2265 -- always builds a dummy identifier with Comes From Source set False. The
2266 -- reason we do this, rather than using End_Span in this case, is that we
2267 -- want to generate a cross-ref entry for the end of a record, since it
2268 -- represents a scope for name declaration purposes.
2270 -- The enumeration definition case is handled in an exactly similar manner,
2271 -- building a dummy identifier to get a cross-reference.
2273 -- Note: the reason we store the difference as a Uint, instead of storing
2274 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2275 -- distinguished from other types of values, and we count on all general
2276 -- use fields being self describing. To make things easier for clients,
2277 -- note that we provide function End_Location, and procedure
2278 -- Set_End_Location to allow access to the logical value (which is the
2279 -- Source_Ptr value for the end token).
2281 ---------------------
2282 -- Syntactic Nodes --
2283 ---------------------
2285 ---------------------
2286 -- 2.3 Identifier --
2287 ---------------------
2289 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2290 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2292 -- An IDENTIFIER shall not be a reserved word
2294 -- In the Ada grammar identifiers are the bottom level tokens which have
2295 -- very few semantics. Actual program identifiers are direct names. If
2296 -- we were being 100% honest with the grammar, then we would have a node
2297 -- called N_Direct_Name which would point to an identifier. However,
2298 -- that's too many extra nodes, so we just use the N_Identifier node
2299 -- directly as a direct name, and it contains the expression fields and
2300 -- Entity field that correspond to its use as a direct name. In those
2301 -- few cases where identifiers appear in contexts where they are not
2302 -- direct names (pragmas, pragma argument associations, attribute
2303 -- references and attribute definition clauses), the Chars field of the
2304 -- node contains the Name_Id for the identifier name.
2306 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2307 -- cases. First, an incorrect use of a reserved word as an identifier is
2308 -- diagnosed and then treated as a normal identifier. Second, an
2309 -- attribute designator of the form of a reserved word (access, delta,
2310 -- digits, range) is treated as an identifier.
2312 -- Note: The set of letters that is permitted in an identifier depends
2313 -- on the character set in use. See package Csets for full details.
2315 -- N_Identifier
2316 -- Sloc points to identifier
2317 -- Chars (Name1) contains the Name_Id for the identifier
2318 -- Entity (Node4-Sem)
2319 -- Associated_Node (Node4-Sem)
2320 -- Original_Discriminant (Node2-Sem)
2321 -- Redundant_Use (Flag13-Sem)
2322 -- Atomic_Sync_Required (Flag14-Sem)
2323 -- Has_Private_View (Flag11-Sem) (set in generic units)
2324 -- plus fields for expression
2326 --------------------------
2327 -- 2.4 Numeric Literal --
2328 --------------------------
2330 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2332 ----------------------------
2333 -- 2.4.1 Decimal Literal --
2334 ----------------------------
2336 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2338 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2340 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2342 -- Decimal literals appear in the tree as either integer literal nodes
2343 -- or real literal nodes, depending on whether a period is present.
2345 -- Note: literal nodes appear as a result of direct use of literals
2346 -- in the source program, and also as the result of evaluating
2347 -- expressions at compile time. In the latter case, it is possible
2348 -- to construct real literals that have no syntactic representation
2349 -- using the standard literal format. Such literals are listed by
2350 -- Sprint using the notation [numerator / denominator].
2352 -- Note: the value of an integer literal node created by the front end
2353 -- is never outside the range of values of the base type. However, it
2354 -- can be the case that the created value is outside the range of the
2355 -- particular subtype. This happens in the case of integer overflows
2356 -- with checks suppressed.
2358 -- N_Integer_Literal
2359 -- Sloc points to literal
2360 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2361 -- has been constant-folded into its literal value.
2362 -- Intval (Uint3) contains integer value of literal
2363 -- plus fields for expression
2364 -- Print_In_Hex (Flag13-Sem)
2366 -- N_Real_Literal
2367 -- Sloc points to literal
2368 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2369 -- has been constant-folded into its literal value.
2370 -- Realval (Ureal3) contains real value of literal
2371 -- Corresponding_Integer_Value (Uint4-Sem)
2372 -- Is_Machine_Number (Flag11-Sem)
2373 -- plus fields for expression
2375 --------------------------
2376 -- 2.4.2 Based Literal --
2377 --------------------------
2379 -- BASED_LITERAL ::=
2380 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2382 -- BASE ::= NUMERAL
2384 -- BASED_NUMERAL ::=
2385 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2387 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2389 -- Based literals appear in the tree as either integer literal nodes
2390 -- or real literal nodes, depending on whether a period is present.
2392 ----------------------------
2393 -- 2.5 Character Literal --
2394 ----------------------------
2396 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2398 -- N_Character_Literal
2399 -- Sloc points to literal
2400 -- Chars (Name1) contains the Name_Id for the identifier
2401 -- Char_Literal_Value (Uint2) contains the literal value
2402 -- Entity (Node4-Sem)
2403 -- Associated_Node (Node4-Sem)
2404 -- Has_Private_View (Flag11-Sem) set in generic units.
2405 -- plus fields for expression
2407 -- Note: the Entity field will be missing (set to Empty) for character
2408 -- literals whose type is Standard.Wide_Character or Standard.Character
2409 -- or a type derived from one of these two. In this case the character
2410 -- literal stands for its own coding. The reason we take this irregular
2411 -- short cut is to avoid the need to build lots of junk defining
2412 -- character literal nodes.
2414 -------------------------
2415 -- 2.6 String Literal --
2416 -------------------------
2418 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2420 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2421 -- single GRAPHIC_CHARACTER other than a quotation mark.
2423 -- Is_Folded_In_Parser is True if the parser created this literal by
2424 -- folding a sequence of "&" operators. For example, if the source code
2425 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2426 -- is set. This flag is needed because the parser doesn't know about
2427 -- visibility, so the folded result might be wrong, and semantic
2428 -- analysis needs to check for that.
2430 -- N_String_Literal
2431 -- Sloc points to literal
2432 -- Strval (Str3) contains Id of string value
2433 -- Has_Wide_Character (Flag11-Sem)
2434 -- Has_Wide_Wide_Character (Flag13-Sem)
2435 -- Is_Folded_In_Parser (Flag4)
2436 -- plus fields for expression
2438 ------------------
2439 -- 2.7 Comment --
2440 ------------------
2442 -- A COMMENT starts with two adjacent hyphens and extends up to the
2443 -- end of the line. A COMMENT may appear on any line of a program.
2445 -- Comments are skipped by the scanner and do not appear in the tree.
2446 -- It is possible to reconstruct the position of comments with respect
2447 -- to the elements of the tree by using the source position (Sloc)
2448 -- pointers that appear in every tree node.
2450 -----------------
2451 -- 2.8 Pragma --
2452 -----------------
2454 -- PRAGMA ::= pragma IDENTIFIER
2455 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2457 -- Note that a pragma may appear in the tree anywhere a declaration
2458 -- or a statement may appear, as well as in some other situations
2459 -- which are explicitly documented.
2461 -- N_Pragma
2462 -- Sloc points to PRAGMA
2463 -- Next_Pragma (Node1-Sem)
2464 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2465 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2466 -- Pragma_Identifier (Node4)
2467 -- Next_Rep_Item (Node5-Sem)
2468 -- Class_Present (Flag6) set if from Aspect with 'Class
2469 -- From_Aspect_Specification (Flag13-Sem)
2470 -- Import_Interface_Present (Flag16-Sem)
2471 -- Is_Checked (Flag11-Sem)
2472 -- Is_Delayed_Aspect (Flag14-Sem)
2473 -- Is_Disabled (Flag15-Sem)
2474 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2475 -- Is_Ghost_Pragma (Flag3-Sem);
2476 -- Is_Ignored (Flag9-Sem)
2477 -- Is_Inherited (Flag4-Sem)
2478 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2479 -- Uneval_Old_Accept (Flag7-Sem)
2480 -- Uneval_Old_Warn (Flag18-Sem)
2482 -- Note: we should have a section on what pragmas are passed on to
2483 -- the back end to be processed. This section should note that pragma
2484 -- Psect_Object is always converted to Common_Object, but there are
2485 -- undoubtedly many other similar notes required ???
2487 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2488 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2490 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2491 -- aspect name, as does the Pragma_Identifier. In this case if the
2492 -- pragma has a local name argument (such as pragma Inline), it is
2493 -- resolved to point to the specific entity affected by the pragma.
2495 --------------------------------------
2496 -- 2.8 Pragma Argument Association --
2497 --------------------------------------
2499 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2500 -- [pragma_argument_IDENTIFIER =>] NAME
2501 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2503 -- In Ada 2012, there are two more possibilities:
2505 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2506 -- [pragma_argument_ASPECT_MARK =>] NAME
2507 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2509 -- where the interesting allowed cases (which do not fit the syntax of
2510 -- the first alternative above) are
2512 -- ASPECT_MARK => Pre'Class |
2513 -- Post'Class |
2514 -- Type_Invariant'Class |
2515 -- Invariant'Class
2517 -- We allow this special usage in all Ada modes, but it would be a
2518 -- pain to allow these aspects to pervade the pragma syntax, and the
2519 -- representation of pragma nodes internally. So what we do is to
2520 -- replace these ASPECT_MARK forms with identifiers whose name is one
2521 -- of the special internal names _Pre, _Post or _Type_Invariant.
2523 -- We do a similar replacement of these Aspect_Mark forms in the
2524 -- Expression of a pragma argument association for the cases of
2525 -- the first arguments of any Check pragmas and Check_Policy pragmas
2527 -- N_Pragma_Argument_Association
2528 -- Sloc points to first token in association
2529 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2530 -- Expression (Node3)
2532 ------------------------
2533 -- 2.9 Reserved Word --
2534 ------------------------
2536 -- Reserved words are parsed by the scanner, and returned as the
2537 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2539 ----------------------------
2540 -- 3.1 Basic Declaration --
2541 ----------------------------
2543 -- BASIC_DECLARATION ::=
2544 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2545 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2546 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2547 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2548 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2549 -- | GENERIC_INSTANTIATION
2551 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2552 -- see further description in section on semantic nodes.
2554 -- Also, in the tree that is constructed, a pragma may appear
2555 -- anywhere that a declaration may appear.
2557 ------------------------------
2558 -- 3.1 Defining Identifier --
2559 ------------------------------
2561 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2563 -- A defining identifier is an entity, which has additional fields
2564 -- depending on the setting of the Ekind field. These additional
2565 -- fields are defined (and access subprograms declared) in package
2566 -- Einfo.
2568 -- Note: N_Defining_Identifier is an extended node whose fields are
2569 -- deliberate layed out to match the layout of fields in an ordinary
2570 -- N_Identifier node allowing for easy alteration of an identifier
2571 -- node into a defining identifier node. For details, see procedure
2572 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2574 -- N_Defining_Identifier
2575 -- Sloc points to identifier
2576 -- Chars (Name1) contains the Name_Id for the identifier
2577 -- Next_Entity (Node2-Sem)
2578 -- Scope (Node3-Sem)
2579 -- Etype (Node5-Sem)
2581 -----------------------------
2582 -- 3.2.1 Type Declaration --
2583 -----------------------------
2585 -- TYPE_DECLARATION ::=
2586 -- FULL_TYPE_DECLARATION
2587 -- | INCOMPLETE_TYPE_DECLARATION
2588 -- | PRIVATE_TYPE_DECLARATION
2589 -- | PRIVATE_EXTENSION_DECLARATION
2591 ----------------------------------
2592 -- 3.2.1 Full Type Declaration --
2593 ----------------------------------
2595 -- FULL_TYPE_DECLARATION ::=
2596 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2597 -- is TYPE_DEFINITION
2598 -- [ASPECT_SPECIFICATIONS];
2599 -- | TASK_TYPE_DECLARATION
2600 -- | PROTECTED_TYPE_DECLARATION
2602 -- The full type declaration node is used only for the first case. The
2603 -- second case (concurrent type declaration), is represented directly
2604 -- by a task type declaration or a protected type declaration.
2606 -- N_Full_Type_Declaration
2607 -- Sloc points to TYPE
2608 -- Defining_Identifier (Node1)
2609 -- Incomplete_View (Node2-Sem)
2610 -- Discriminant_Specifications (List4) (set to No_List if none)
2611 -- Type_Definition (Node3)
2612 -- Discr_Check_Funcs_Built (Flag11-Sem)
2614 ----------------------------
2615 -- 3.2.1 Type Definition --
2616 ----------------------------
2618 -- TYPE_DEFINITION ::=
2619 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2620 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2621 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2622 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2624 --------------------------------
2625 -- 3.2.2 Subtype Declaration --
2626 --------------------------------
2628 -- SUBTYPE_DECLARATION ::=
2629 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2630 -- [ASPECT_SPECIFICATIONS];
2632 -- The subtype indication field is set to Empty for subtypes
2633 -- declared in package Standard (Positive, Natural).
2635 -- N_Subtype_Declaration
2636 -- Sloc points to SUBTYPE
2637 -- Defining_Identifier (Node1)
2638 -- Null_Exclusion_Present (Flag11)
2639 -- Subtype_Indication (Node5)
2640 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2641 -- Exception_Junk (Flag8-Sem)
2642 -- Has_Dynamic_Range_Check (Flag12-Sem)
2644 -------------------------------
2645 -- 3.2.2 Subtype Indication --
2646 -------------------------------
2648 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2650 -- Note: if no constraint is present, the subtype indication appears
2651 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2652 -- node is used only if a constraint is present.
2654 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2655 -- with the null-exclusion part (see AI-231), we had to introduce a new
2656 -- attribute in all the parents of subtype_indication nodes to indicate
2657 -- if the null-exclusion is present.
2659 -- Note: the reason that this node has expression fields is that a
2660 -- subtype indication can appear as an operand of a membership test.
2662 -- N_Subtype_Indication
2663 -- Sloc points to first token of subtype mark
2664 -- Subtype_Mark (Node4)
2665 -- Constraint (Node3)
2666 -- Etype (Node5-Sem)
2667 -- Must_Not_Freeze (Flag8-Sem)
2669 -- Note: Depending on context, the Etype is either the entity of the
2670 -- Subtype_Mark field, or it is an itype constructed to reify the
2671 -- subtype indication. In particular, such itypes are created for a
2672 -- subtype indication that appears in an array type declaration. This
2673 -- simplifies constraint checking in indexed components.
2675 -- For subtype indications that appear in scalar type and subtype
2676 -- declarations, the Etype is the entity of the subtype mark.
2678 -------------------------
2679 -- 3.2.2 Subtype Mark --
2680 -------------------------
2682 -- SUBTYPE_MARK ::= subtype_NAME
2684 -----------------------
2685 -- 3.2.2 Constraint --
2686 -----------------------
2688 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2690 ------------------------------
2691 -- 3.2.2 Scalar Constraint --
2692 ------------------------------
2694 -- SCALAR_CONSTRAINT ::=
2695 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2697 ---------------------------------
2698 -- 3.2.2 Composite Constraint --
2699 ---------------------------------
2701 -- COMPOSITE_CONSTRAINT ::=
2702 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2704 -------------------------------
2705 -- 3.3.1 Object Declaration --
2706 -------------------------------
2708 -- OBJECT_DECLARATION ::=
2709 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2710 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2711 -- [ASPECT_SPECIFICATIONS];
2712 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2713 -- ACCESS_DEFINITION [:= EXPRESSION]
2714 -- [ASPECT_SPECIFICATIONS];
2715 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2716 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2717 -- [ASPECT_SPECIFICATIONS];
2718 -- | SINGLE_TASK_DECLARATION
2719 -- | SINGLE_PROTECTED_DECLARATION
2721 -- Note: aliased is not permitted in Ada 83 mode
2723 -- The N_Object_Declaration node is only for the first two cases.
2724 -- Single task declaration is handled by P_Task (9.1)
2725 -- Single protected declaration is handled by P_protected (9.5)
2727 -- Although the syntax allows multiple identifiers in the list, the
2728 -- semantics is as though successive declarations were given with
2729 -- identical type definition and expression components. To simplify
2730 -- semantic processing, the parser represents a multiple declaration
2731 -- case as a sequence of single declarations, using the More_Ids and
2732 -- Prev_Ids flags to preserve the original source form as described
2733 -- in the section on "Handling of Defining Identifier Lists".
2735 -- The flag Has_Init_Expression is set if an initializing expression
2736 -- is present. Normally it is set if and only if Expression contains
2737 -- a non-empty value, but there is an exception to this. When the
2738 -- initializing expression is an aggregate which requires explicit
2739 -- assignments, the Expression field gets set to Empty, but this flag
2740 -- is still set, so we don't forget we had an initializing expression.
2742 -- Note: if a range check is required for the initialization
2743 -- expression then the Do_Range_Check flag is set in the Expression,
2744 -- with the check being done against the type given by the object
2745 -- definition, which is also the Etype of the defining identifier.
2747 -- Note: the contents of the Expression field must be ignored (i.e.
2748 -- treated as though it were Empty) if No_Initialization is set True.
2750 -- Note: the back end places some restrictions on the form of the
2751 -- Expression field. If the object being declared is Atomic, then
2752 -- the Expression may not have the form of an aggregate (since this
2753 -- might cause the back end to generate separate assignments). In this
2754 -- case the front end must generate an extra temporary and initialize
2755 -- this temporary as required (the temporary itself is not atomic).
2757 -- Note: there is not node kind for object definition. Instead, the
2758 -- corresponding field holds a subtype indication, an array type
2759 -- definition, or (Ada 2005, AI-406) an access definition.
2761 -- N_Object_Declaration
2762 -- Sloc points to first identifier
2763 -- Defining_Identifier (Node1)
2764 -- Aliased_Present (Flag4)
2765 -- Constant_Present (Flag17) set if CONSTANT appears
2766 -- Null_Exclusion_Present (Flag11)
2767 -- Object_Definition (Node4) subtype indic./array type def./access def.
2768 -- Expression (Node3) (set to Empty if not present)
2769 -- Handler_List_Entry (Node2-Sem)
2770 -- Corresponding_Generic_Association (Node5-Sem)
2771 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2772 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2773 -- No_Initialization (Flag13-Sem)
2774 -- Assignment_OK (Flag15-Sem)
2775 -- Exception_Junk (Flag8-Sem)
2776 -- Is_Subprogram_Descriptor (Flag16-Sem)
2777 -- Has_Init_Expression (Flag14)
2778 -- Suppress_Assignment_Checks (Flag18-Sem)
2780 -------------------------------------
2781 -- 3.3.1 Defining Identifier List --
2782 -------------------------------------
2784 -- DEFINING_IDENTIFIER_LIST ::=
2785 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2787 -------------------------------
2788 -- 3.3.2 Number Declaration --
2789 -------------------------------
2791 -- NUMBER_DECLARATION ::=
2792 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2794 -- Although the syntax allows multiple identifiers in the list, the
2795 -- semantics is as though successive declarations were given with
2796 -- identical expressions. To simplify semantic processing, the parser
2797 -- represents a multiple declaration case as a sequence of single
2798 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2799 -- the original source form as described in the section on "Handling
2800 -- of Defining Identifier Lists".
2802 -- N_Number_Declaration
2803 -- Sloc points to first identifier
2804 -- Defining_Identifier (Node1)
2805 -- Expression (Node3)
2806 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2807 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2809 ----------------------------------
2810 -- 3.4 Derived Type Definition --
2811 ----------------------------------
2813 -- DERIVED_TYPE_DEFINITION ::=
2814 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2815 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2817 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2818 -- in Ada 83 mode
2820 -- Note: a record extension part is required if ABSTRACT is present
2822 -- N_Derived_Type_Definition
2823 -- Sloc points to NEW
2824 -- Abstract_Present (Flag4)
2825 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2826 -- Subtype_Indication (Node5)
2827 -- Record_Extension_Part (Node3) (set to Empty if not present)
2828 -- Limited_Present (Flag17)
2829 -- Task_Present (Flag5) set in task interfaces
2830 -- Protected_Present (Flag6) set in protected interfaces
2831 -- Synchronized_Present (Flag7) set in interfaces
2832 -- Interface_List (List2) (set to No_List if none)
2833 -- Interface_Present (Flag16) set in abstract interfaces
2835 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2836 -- Interface_List, and Interface_Present are used for abstract
2837 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2839 ---------------------------
2840 -- 3.5 Range Constraint --
2841 ---------------------------
2843 -- RANGE_CONSTRAINT ::= range RANGE
2845 -- N_Range_Constraint
2846 -- Sloc points to RANGE
2847 -- Range_Expression (Node4)
2849 ----------------
2850 -- 3.5 Range --
2851 ----------------
2853 -- RANGE ::=
2854 -- RANGE_ATTRIBUTE_REFERENCE
2855 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2857 -- Note: the case of a range given as a range attribute reference
2858 -- appears directly in the tree as an attribute reference.
2860 -- Note: the field name for a reference to a range is Range_Expression
2861 -- rather than Range, because range is a reserved keyword in Ada.
2863 -- Note: the reason that this node has expression fields is that a
2864 -- range can appear as an operand of a membership test. The Etype
2865 -- field is the type of the range (we do NOT construct an implicit
2866 -- subtype to represent the range exactly).
2868 -- N_Range
2869 -- Sloc points to ..
2870 -- Low_Bound (Node1)
2871 -- High_Bound (Node2)
2872 -- Includes_Infinities (Flag11)
2873 -- plus fields for expression
2875 -- Note: if the range appears in a context, such as a subtype
2876 -- declaration, where range checks are required on one or both of
2877 -- the expression fields, then type conversion nodes are inserted
2878 -- to represent the required checks.
2880 ----------------------------------------
2881 -- 3.5.1 Enumeration Type Definition --
2882 ----------------------------------------
2884 -- ENUMERATION_TYPE_DEFINITION ::=
2885 -- (ENUMERATION_LITERAL_SPECIFICATION
2886 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2888 -- Note: the Literals field in the node described below is null for
2889 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2890 -- which special processing handles these types as special cases.
2892 -- N_Enumeration_Type_Definition
2893 -- Sloc points to left parenthesis
2894 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2895 -- End_Label (Node4) (set to Empty if internally generated record)
2897 ----------------------------------------------
2898 -- 3.5.1 Enumeration Literal Specification --
2899 ----------------------------------------------
2901 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2902 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2904 ---------------------------------------
2905 -- 3.5.1 Defining Character Literal --
2906 ---------------------------------------
2908 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2910 -- A defining character literal is an entity, which has additional
2911 -- fields depending on the setting of the Ekind field. These
2912 -- additional fields are defined (and access subprograms declared)
2913 -- in package Einfo.
2915 -- Note: N_Defining_Character_Literal is an extended node whose fields
2916 -- are deliberate layed out to match the layout of fields in an ordinary
2917 -- N_Character_Literal node allowing for easy alteration of a character
2918 -- literal node into a defining character literal node. For details, see
2919 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2921 -- N_Defining_Character_Literal
2922 -- Sloc points to literal
2923 -- Chars (Name1) contains the Name_Id for the identifier
2924 -- Next_Entity (Node2-Sem)
2925 -- Scope (Node3-Sem)
2926 -- Etype (Node5-Sem)
2928 ------------------------------------
2929 -- 3.5.4 Integer Type Definition --
2930 ------------------------------------
2932 -- Note: there is an error in this rule in the latest version of the
2933 -- grammar, so we have retained the old rule pending clarification.
2935 -- INTEGER_TYPE_DEFINITION ::=
2936 -- SIGNED_INTEGER_TYPE_DEFINITION
2937 -- | MODULAR_TYPE_DEFINITION
2939 -------------------------------------------
2940 -- 3.5.4 Signed Integer Type Definition --
2941 -------------------------------------------
2943 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2944 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2946 -- Note: the Low_Bound and High_Bound fields are set to Empty
2947 -- for integer types defined in package Standard.
2949 -- N_Signed_Integer_Type_Definition
2950 -- Sloc points to RANGE
2951 -- Low_Bound (Node1)
2952 -- High_Bound (Node2)
2954 ------------------------------------
2955 -- 3.5.4 Modular Type Definition --
2956 ------------------------------------
2958 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2960 -- N_Modular_Type_Definition
2961 -- Sloc points to MOD
2962 -- Expression (Node3)
2964 ---------------------------------
2965 -- 3.5.6 Real Type Definition --
2966 ---------------------------------
2968 -- REAL_TYPE_DEFINITION ::=
2969 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2971 --------------------------------------
2972 -- 3.5.7 Floating Point Definition --
2973 --------------------------------------
2975 -- FLOATING_POINT_DEFINITION ::=
2976 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2978 -- Note: The Digits_Expression and Real_Range_Specifications fields
2979 -- are set to Empty for floating-point types declared in Standard.
2981 -- N_Floating_Point_Definition
2982 -- Sloc points to DIGITS
2983 -- Digits_Expression (Node2)
2984 -- Real_Range_Specification (Node4) (set to Empty if not present)
2986 -------------------------------------
2987 -- 3.5.7 Real Range Specification --
2988 -------------------------------------
2990 -- REAL_RANGE_SPECIFICATION ::=
2991 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2993 -- N_Real_Range_Specification
2994 -- Sloc points to RANGE
2995 -- Low_Bound (Node1)
2996 -- High_Bound (Node2)
2998 -----------------------------------
2999 -- 3.5.9 Fixed Point Definition --
3000 -----------------------------------
3002 -- FIXED_POINT_DEFINITION ::=
3003 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3005 --------------------------------------------
3006 -- 3.5.9 Ordinary Fixed Point Definition --
3007 --------------------------------------------
3009 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3010 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3012 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3014 -- N_Ordinary_Fixed_Point_Definition
3015 -- Sloc points to DELTA
3016 -- Delta_Expression (Node3)
3017 -- Real_Range_Specification (Node4)
3019 -------------------------------------------
3020 -- 3.5.9 Decimal Fixed Point Definition --
3021 -------------------------------------------
3023 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3024 -- delta static_EXPRESSION
3025 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3027 -- Note: decimal types are not permitted in Ada 83 mode
3029 -- N_Decimal_Fixed_Point_Definition
3030 -- Sloc points to DELTA
3031 -- Delta_Expression (Node3)
3032 -- Digits_Expression (Node2)
3033 -- Real_Range_Specification (Node4) (set to Empty if not present)
3035 ------------------------------
3036 -- 3.5.9 Digits Constraint --
3037 ------------------------------
3039 -- DIGITS_CONSTRAINT ::=
3040 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3042 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3043 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3045 -- N_Digits_Constraint
3046 -- Sloc points to DIGITS
3047 -- Digits_Expression (Node2)
3048 -- Range_Constraint (Node4) (set to Empty if not present)
3050 --------------------------------
3051 -- 3.6 Array Type Definition --
3052 --------------------------------
3054 -- ARRAY_TYPE_DEFINITION ::=
3055 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3057 -----------------------------------------
3058 -- 3.6 Unconstrained Array Definition --
3059 -----------------------------------------
3061 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3062 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3063 -- COMPONENT_DEFINITION
3065 -- Note: dimensionality of array is indicated by number of entries in
3066 -- the Subtype_Marks list, which has one entry for each dimension.
3068 -- N_Unconstrained_Array_Definition
3069 -- Sloc points to ARRAY
3070 -- Subtype_Marks (List2)
3071 -- Component_Definition (Node4)
3073 -----------------------------------
3074 -- 3.6 Index Subtype Definition --
3075 -----------------------------------
3077 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3079 -- There is no explicit node in the tree for an index subtype
3080 -- definition since the N_Unconstrained_Array_Definition node
3081 -- incorporates the type marks which appear in this context.
3083 ---------------------------------------
3084 -- 3.6 Constrained Array Definition --
3085 ---------------------------------------
3087 -- CONSTRAINED_ARRAY_DEFINITION ::=
3088 -- array (DISCRETE_SUBTYPE_DEFINITION
3089 -- {, DISCRETE_SUBTYPE_DEFINITION})
3090 -- of COMPONENT_DEFINITION
3092 -- Note: dimensionality of array is indicated by number of entries
3093 -- in the Discrete_Subtype_Definitions list, which has one entry
3094 -- for each dimension.
3096 -- N_Constrained_Array_Definition
3097 -- Sloc points to ARRAY
3098 -- Discrete_Subtype_Definitions (List2)
3099 -- Component_Definition (Node4)
3101 -- Note: although the language allows the full syntax for discrete
3102 -- subtype definitions (i.e. a discrete subtype indication or a range),
3103 -- in the generated tree, we always rewrite these as N_Range nodes.
3105 --------------------------------------
3106 -- 3.6 Discrete Subtype Definition --
3107 --------------------------------------
3109 -- DISCRETE_SUBTYPE_DEFINITION ::=
3110 -- discrete_SUBTYPE_INDICATION | RANGE
3112 -------------------------------
3113 -- 3.6 Component Definition --
3114 -------------------------------
3116 -- COMPONENT_DEFINITION ::=
3117 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3119 -- Note: although the syntax does not permit a component definition to
3120 -- be an anonymous array (and the parser will diagnose such an attempt
3121 -- with an appropriate message), it is possible for anonymous arrays
3122 -- to appear as component definitions. The semantics and back end handle
3123 -- this case properly, and the expander in fact generates such cases.
3124 -- Access_Definition is an optional field that gives support to
3125 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3126 -- Subtype_Indication field or else the Access_Definition field.
3128 -- N_Component_Definition
3129 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3130 -- Aliased_Present (Flag4)
3131 -- Null_Exclusion_Present (Flag11)
3132 -- Subtype_Indication (Node5) (set to Empty if not present)
3133 -- Access_Definition (Node3) (set to Empty if not present)
3135 -----------------------------
3136 -- 3.6.1 Index Constraint --
3137 -----------------------------
3139 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3141 -- It is not in general possible to distinguish between discriminant
3142 -- constraints and index constraints at parse time, since a simple
3143 -- name could be either the subtype mark of a discrete range, or an
3144 -- expression in a discriminant association with no name. Either
3145 -- entry appears simply as the name, and the semantic parse must
3146 -- distinguish between the two cases. Thus we use a common tree
3147 -- node format for both of these constraint types.
3149 -- See Discriminant_Constraint for format of node
3151 ---------------------------
3152 -- 3.6.1 Discrete Range --
3153 ---------------------------
3155 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3157 ----------------------------
3158 -- 3.7 Discriminant Part --
3159 ----------------------------
3161 -- DISCRIMINANT_PART ::=
3162 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3164 ------------------------------------
3165 -- 3.7 Unknown Discriminant Part --
3166 ------------------------------------
3168 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3170 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3172 -- There is no explicit node in the tree for an unknown discriminant
3173 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3174 -- parent node.
3176 ----------------------------------
3177 -- 3.7 Known Discriminant Part --
3178 ----------------------------------
3180 -- KNOWN_DISCRIMINANT_PART ::=
3181 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3183 -------------------------------------
3184 -- 3.7 Discriminant Specification --
3185 -------------------------------------
3187 -- DISCRIMINANT_SPECIFICATION ::=
3188 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3189 -- [:= DEFAULT_EXPRESSION]
3190 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3191 -- [:= DEFAULT_EXPRESSION]
3193 -- Although the syntax allows multiple identifiers in the list, the
3194 -- semantics is as though successive specifications were given with
3195 -- identical type definition and expression components. To simplify
3196 -- semantic processing, the parser represents a multiple declaration
3197 -- case as a sequence of single specifications, using the More_Ids and
3198 -- Prev_Ids flags to preserve the original source form as described
3199 -- in the section on "Handling of Defining Identifier Lists".
3201 -- N_Discriminant_Specification
3202 -- Sloc points to first identifier
3203 -- Defining_Identifier (Node1)
3204 -- Null_Exclusion_Present (Flag11)
3205 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3206 -- Expression (Node3) (set to Empty if no default expression)
3207 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3208 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3210 -----------------------------
3211 -- 3.7 Default Expression --
3212 -----------------------------
3214 -- DEFAULT_EXPRESSION ::= EXPRESSION
3216 ------------------------------------
3217 -- 3.7.1 Discriminant Constraint --
3218 ------------------------------------
3220 -- DISCRIMINANT_CONSTRAINT ::=
3221 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3223 -- It is not in general possible to distinguish between discriminant
3224 -- constraints and index constraints at parse time, since a simple
3225 -- name could be either the subtype mark of a discrete range, or an
3226 -- expression in a discriminant association with no name. Either
3227 -- entry appears simply as the name, and the semantic parse must
3228 -- distinguish between the two cases. Thus we use a common tree
3229 -- node format for both of these constraint types.
3231 -- N_Index_Or_Discriminant_Constraint
3232 -- Sloc points to left paren
3233 -- Constraints (List1) points to list of discrete ranges or
3234 -- discriminant associations
3236 -------------------------------------
3237 -- 3.7.1 Discriminant Association --
3238 -------------------------------------
3240 -- DISCRIMINANT_ASSOCIATION ::=
3241 -- [discriminant_SELECTOR_NAME
3242 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3244 -- Note: a discriminant association that has no selector name list
3245 -- appears directly as an expression in the tree.
3247 -- N_Discriminant_Association
3248 -- Sloc points to first token of discriminant association
3249 -- Selector_Names (List1) (always non-empty, since if no selector
3250 -- names are present, this node is not used, see comment above)
3251 -- Expression (Node3)
3253 ---------------------------------
3254 -- 3.8 Record Type Definition --
3255 ---------------------------------
3257 -- RECORD_TYPE_DEFINITION ::=
3258 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3260 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3262 -- There is no explicit node in the tree for a record type definition.
3263 -- Instead the flags for Tagged_Present and Limited_Present appear in
3264 -- the N_Record_Definition node for a record definition appearing in
3265 -- the context of a record type definition.
3267 ----------------------------
3268 -- 3.8 Record Definition --
3269 ----------------------------
3271 -- RECORD_DEFINITION ::=
3272 -- record
3273 -- COMPONENT_LIST
3274 -- end record
3275 -- | null record
3277 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3278 -- flags appear only for a record definition appearing in a record
3279 -- type definition.
3281 -- Note: the NULL RECORD case is not permitted in Ada 83
3283 -- N_Record_Definition
3284 -- Sloc points to RECORD or NULL
3285 -- End_Label (Node4) (set to Empty if internally generated record)
3286 -- Abstract_Present (Flag4)
3287 -- Tagged_Present (Flag15)
3288 -- Limited_Present (Flag17)
3289 -- Component_List (Node1) empty in null record case
3290 -- Null_Present (Flag13) set in null record case
3291 -- Task_Present (Flag5) set in task interfaces
3292 -- Protected_Present (Flag6) set in protected interfaces
3293 -- Synchronized_Present (Flag7) set in interfaces
3294 -- Interface_Present (Flag16) set in abstract interfaces
3295 -- Interface_List (List2) (set to No_List if none)
3297 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3298 -- Interface_List and Interface_Present are used for abstract
3299 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3301 -------------------------
3302 -- 3.8 Component List --
3303 -------------------------
3305 -- COMPONENT_LIST ::=
3306 -- COMPONENT_ITEM {COMPONENT_ITEM}
3307 -- | {COMPONENT_ITEM} VARIANT_PART
3308 -- | null;
3310 -- N_Component_List
3311 -- Sloc points to first token of component list
3312 -- Component_Items (List3)
3313 -- Variant_Part (Node4) (set to Empty if no variant part)
3314 -- Null_Present (Flag13)
3316 -------------------------
3317 -- 3.8 Component Item --
3318 -------------------------
3320 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3322 -- Note: A component item can also be a pragma, and in the tree
3323 -- that is obtained after semantic processing, a component item
3324 -- can be an N_Null node resulting from a non-recognized pragma.
3326 --------------------------------
3327 -- 3.8 Component Declaration --
3328 --------------------------------
3330 -- COMPONENT_DECLARATION ::=
3331 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3332 -- [:= DEFAULT_EXPRESSION]
3333 -- [ASPECT_SPECIFICATIONS];
3335 -- Note: although the syntax does not permit a component definition to
3336 -- be an anonymous array (and the parser will diagnose such an attempt
3337 -- with an appropriate message), it is possible for anonymous arrays
3338 -- to appear as component definitions. The semantics and back end handle
3339 -- this case properly, and the expander in fact generates such cases.
3341 -- Although the syntax allows multiple identifiers in the list, the
3342 -- semantics is as though successive declarations were given with the
3343 -- same component definition and expression components. To simplify
3344 -- semantic processing, the parser represents a multiple declaration
3345 -- case as a sequence of single declarations, using the More_Ids and
3346 -- Prev_Ids flags to preserve the original source form as described
3347 -- in the section on "Handling of Defining Identifier Lists".
3349 -- N_Component_Declaration
3350 -- Sloc points to first identifier
3351 -- Defining_Identifier (Node1)
3352 -- Component_Definition (Node4)
3353 -- Expression (Node3) (set to Empty if no default expression)
3354 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3355 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3357 -------------------------
3358 -- 3.8.1 Variant Part --
3359 -------------------------
3361 -- VARIANT_PART ::=
3362 -- case discriminant_DIRECT_NAME is
3363 -- VARIANT {VARIANT}
3364 -- end case;
3366 -- Note: the variants list can contain pragmas as well as variants.
3367 -- In a properly formed program there is at least one variant.
3369 -- N_Variant_Part
3370 -- Sloc points to CASE
3371 -- Name (Node2)
3372 -- Variants (List1)
3374 --------------------
3375 -- 3.8.1 Variant --
3376 --------------------
3378 -- VARIANT ::=
3379 -- when DISCRETE_CHOICE_LIST =>
3380 -- COMPONENT_LIST
3382 -- N_Variant
3383 -- Sloc points to WHEN
3384 -- Discrete_Choices (List4)
3385 -- Component_List (Node1)
3386 -- Enclosing_Variant (Node2-Sem)
3387 -- Present_Expr (Uint3-Sem)
3388 -- Dcheck_Function (Node5-Sem)
3389 -- Has_SP_Choice (Flag15-Sem)
3391 -- Note: in the list of Discrete_Choices, the tree passed to the back
3392 -- end does not have choice entries corresponding to names of statically
3393 -- predicated subtypes. Such entries are always expanded out to the list
3394 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3395 -- mode also has this expansion, but done with a proper Rewrite call on
3396 -- the N_Variant node so that ASIS can properly retrieve the original.
3398 ---------------------------------
3399 -- 3.8.1 Discrete Choice List --
3400 ---------------------------------
3402 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3404 ----------------------------
3405 -- 3.8.1 Discrete Choice --
3406 ----------------------------
3408 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3410 -- Note: in Ada 83 mode, the expression must be a simple expression
3412 -- The only choice that appears explicitly is the OTHERS choice, as
3413 -- defined here. Other cases of discrete choice (expression and
3414 -- discrete range) appear directly. This production is also used
3415 -- for the OTHERS possibility of an exception choice.
3417 -- Note: in accordance with the syntax, the parser does not check that
3418 -- OTHERS appears at the end on its own in a choice list context. This
3419 -- is a semantic check.
3421 -- N_Others_Choice
3422 -- Sloc points to OTHERS
3423 -- Others_Discrete_Choices (List1-Sem)
3424 -- All_Others (Flag11-Sem)
3426 ----------------------------------
3427 -- 3.9.1 Record Extension Part --
3428 ----------------------------------
3430 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3432 -- Note: record extension parts are not permitted in Ada 83 mode
3434 --------------------------------------
3435 -- 3.9.4 Interface Type Definition --
3436 --------------------------------------
3438 -- INTERFACE_TYPE_DEFINITION ::=
3439 -- [limited | task | protected | synchronized]
3440 -- interface [interface_list]
3442 -- Note: Interfaces are implemented with N_Record_Definition and
3443 -- N_Derived_Type_Definition nodes because most of the support
3444 -- for the analysis of abstract types has been reused to
3445 -- analyze abstract interfaces.
3447 ----------------------------------
3448 -- 3.10 Access Type Definition --
3449 ----------------------------------
3451 -- ACCESS_TYPE_DEFINITION ::=
3452 -- ACCESS_TO_OBJECT_DEFINITION
3453 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3455 --------------------------
3456 -- 3.10 Null Exclusion --
3457 --------------------------
3459 -- NULL_EXCLUSION ::= not null
3461 ---------------------------------------
3462 -- 3.10 Access To Object Definition --
3463 ---------------------------------------
3465 -- ACCESS_TO_OBJECT_DEFINITION ::=
3466 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3467 -- SUBTYPE_INDICATION
3469 -- N_Access_To_Object_Definition
3470 -- Sloc points to ACCESS
3471 -- All_Present (Flag15)
3472 -- Null_Exclusion_Present (Flag11)
3473 -- Null_Excluding_Subtype (Flag16)
3474 -- Subtype_Indication (Node5)
3475 -- Constant_Present (Flag17)
3477 -----------------------------------
3478 -- 3.10 General Access Modifier --
3479 -----------------------------------
3481 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3483 -- Note: general access modifiers are not permitted in Ada 83 mode
3485 -- There is no explicit node in the tree for general access modifier.
3486 -- Instead the All_Present or Constant_Present flags are set in the
3487 -- parent node.
3489 -------------------------------------------
3490 -- 3.10 Access To Subprogram Definition --
3491 -------------------------------------------
3493 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3494 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3495 -- | [NULL_EXCLUSION] access [protected] function
3496 -- PARAMETER_AND_RESULT_PROFILE
3498 -- Note: access to subprograms are not permitted in Ada 83 mode
3500 -- N_Access_Function_Definition
3501 -- Sloc points to ACCESS
3502 -- Null_Exclusion_Present (Flag11)
3503 -- Null_Exclusion_In_Return_Present (Flag14)
3504 -- Protected_Present (Flag6)
3505 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3506 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3508 -- N_Access_Procedure_Definition
3509 -- Sloc points to ACCESS
3510 -- Null_Exclusion_Present (Flag11)
3511 -- Protected_Present (Flag6)
3512 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3514 -----------------------------
3515 -- 3.10 Access Definition --
3516 -----------------------------
3518 -- ACCESS_DEFINITION ::=
3519 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3520 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3522 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3524 -- N_Access_Definition
3525 -- Sloc points to ACCESS
3526 -- Null_Exclusion_Present (Flag11)
3527 -- All_Present (Flag15)
3528 -- Constant_Present (Flag17)
3529 -- Subtype_Mark (Node4)
3530 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3532 -----------------------------------------
3533 -- 3.10.1 Incomplete Type Declaration --
3534 -----------------------------------------
3536 -- INCOMPLETE_TYPE_DECLARATION ::=
3537 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3539 -- N_Incomplete_Type_Declaration
3540 -- Sloc points to TYPE
3541 -- Defining_Identifier (Node1)
3542 -- Discriminant_Specifications (List4) (set to No_List if no
3543 -- discriminant part, or if the discriminant part is an
3544 -- unknown discriminant part)
3545 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3546 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3547 -- Tagged_Present (Flag15)
3549 ----------------------------
3550 -- 3.11 Declarative Part --
3551 ----------------------------
3553 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3555 -- Note: although the parser enforces the syntactic requirement that
3556 -- a declarative part can contain only declarations, the semantic
3557 -- processing may add statements to the list of actions in a
3558 -- declarative part, so the code generator should be prepared
3559 -- to accept a statement in this position.
3561 ----------------------------
3562 -- 3.11 Declarative Item --
3563 ----------------------------
3565 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3567 ----------------------------------
3568 -- 3.11 Basic Declarative Item --
3569 ----------------------------------
3571 -- BASIC_DECLARATIVE_ITEM ::=
3572 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3574 ----------------
3575 -- 3.11 Body --
3576 ----------------
3578 -- BODY ::= PROPER_BODY | BODY_STUB
3580 -----------------------
3581 -- 3.11 Proper Body --
3582 -----------------------
3584 -- PROPER_BODY ::=
3585 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3587 ---------------
3588 -- 4.1 Name --
3589 ---------------
3591 -- NAME ::=
3592 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3593 -- | INDEXED_COMPONENT | SLICE
3594 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3595 -- | TYPE_CONVERSION | FUNCTION_CALL
3596 -- | CHARACTER_LITERAL
3598 ----------------------
3599 -- 4.1 Direct Name --
3600 ----------------------
3602 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3604 -----------------
3605 -- 4.1 Prefix --
3606 -----------------
3608 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3610 -------------------------------
3611 -- 4.1 Explicit Dereference --
3612 -------------------------------
3614 -- EXPLICIT_DEREFERENCE ::= NAME . all
3616 -- N_Explicit_Dereference
3617 -- Sloc points to ALL
3618 -- Prefix (Node3)
3619 -- Actual_Designated_Subtype (Node4-Sem)
3620 -- Atomic_Sync_Required (Flag14-Sem)
3621 -- Has_Dereference_Action (Flag13-Sem)
3622 -- plus fields for expression
3624 -------------------------------
3625 -- 4.1 Implicit Dereference --
3626 -------------------------------
3628 -- IMPLICIT_DEREFERENCE ::= NAME
3630 ------------------------------
3631 -- 4.1.1 Indexed Component --
3632 ------------------------------
3634 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3636 -- Note: the parser may generate this node in some situations where it
3637 -- should be a function call. The semantic pass must correct this
3638 -- misidentification (which is inevitable at the parser level).
3640 -- N_Indexed_Component
3641 -- Sloc contains a copy of the Sloc value of the Prefix
3642 -- Prefix (Node3)
3643 -- Expressions (List1)
3644 -- Generalized_Indexing (Node4-Sem)
3645 -- Atomic_Sync_Required (Flag14-Sem)
3646 -- plus fields for expression
3648 -- Note: if any of the subscripts requires a range check, then the
3649 -- Do_Range_Check flag is set on the corresponding expression, with
3650 -- the index type being determined from the type of the Prefix, which
3651 -- references the array being indexed.
3653 -- Note: in a fully analyzed and expanded indexed component node, and
3654 -- hence in any such node that gigi sees, if the prefix is an access
3655 -- type, then an explicit dereference operation has been inserted.
3657 ------------------
3658 -- 4.1.2 Slice --
3659 ------------------
3661 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3663 -- Note: an implicit subtype is created to describe the resulting
3664 -- type, so that the bounds of this type are the bounds of the slice.
3666 -- N_Slice
3667 -- Sloc points to first token of prefix
3668 -- Prefix (Node3)
3669 -- Discrete_Range (Node4)
3670 -- plus fields for expression
3672 -------------------------------
3673 -- 4.1.3 Selected Component --
3674 -------------------------------
3676 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3678 -- Note: selected components that are semantically expanded names get
3679 -- changed during semantic processing into the separate N_Expanded_Name
3680 -- node. See description of this node in the section on semantic nodes.
3682 -- N_Selected_Component
3683 -- Sloc points to period
3684 -- Prefix (Node3)
3685 -- Selector_Name (Node2)
3686 -- Associated_Node (Node4-Sem)
3687 -- Do_Discriminant_Check (Flag1-Sem)
3688 -- Is_In_Discriminant_Check (Flag11-Sem)
3689 -- Is_Prefixed_Call (Flag17-Sem)
3690 -- Atomic_Sync_Required (Flag14-Sem)
3691 -- plus fields for expression
3693 --------------------------
3694 -- 4.1.3 Selector Name --
3695 --------------------------
3697 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3699 --------------------------------
3700 -- 4.1.4 Attribute Reference --
3701 --------------------------------
3703 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3705 -- Note: the syntax is quite ambiguous at this point. Consider:
3707 -- A'Length (X) X is part of the attribute designator
3708 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3709 -- A'Class (X) X is the expression of a type conversion
3711 -- It would be possible for the parser to distinguish these cases
3712 -- by looking at the attribute identifier. However, that would mean
3713 -- more work in introducing new implementation defined attributes,
3714 -- and also it would mean that special processing for attributes
3715 -- would be scattered around, instead of being centralized in the
3716 -- semantic routine that handles an N_Attribute_Reference node.
3717 -- Consequently, the parser in all the above cases stores the
3718 -- expression (X in these examples) as a single element list in
3719 -- in the Expressions field of the N_Attribute_Reference node.
3721 -- Similarly, for attributes like Max which take two arguments,
3722 -- we store the two arguments as a two element list in the
3723 -- Expressions field. Of course it is clear at parse time that
3724 -- this case is really a function call with an attribute as the
3725 -- prefix, but it turns out to be convenient to handle the two
3726 -- argument case in a similar manner to the one argument case,
3727 -- and indeed in general the parser will accept any number of
3728 -- expressions in this position and store them as a list in the
3729 -- attribute reference node. This allows for future addition of
3730 -- attributes that take more than two arguments.
3732 -- Note: named associates are not permitted in function calls where
3733 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3734 -- to skip the normal subprogram argument processing.
3736 -- Note: for the attributes whose designators are technically keywords,
3737 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3738 -- the corresponding name, even though no identifier is involved.
3740 -- Note: the generated code may contain stream attributes applied to
3741 -- limited types for which no stream routines exist officially. In such
3742 -- case, the result is to use the stream attribute for the underlying
3743 -- full type, or in the case of a protected type, the components
3744 -- (including any discriminants) are merely streamed in order.
3746 -- See Exp_Attr for a complete description of which attributes are
3747 -- passed onto Gigi, and which are handled entirely by the front end.
3749 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3750 -- a non-standard enumeration type or a nonzero/zero semantics
3751 -- boolean type, so the value is simply the stored representation.
3753 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3754 -- references a subprogram that is a renaming, then the front end must
3755 -- rewrite the attribute to refer directly to the renamed entity.
3757 -- Note: syntactically the prefix of an attribute reference must be a
3758 -- name, and this (somewhat artificial) requirement is enforced by the
3759 -- parser. However, for many attributes, such as 'Valid, it is quite
3760 -- reasonable to apply the attribute to any value, and hence to any
3761 -- expression. Internally in the tree, the prefix is an expression which
3762 -- does not have to be a name, and this is handled fine by the semantic
3763 -- analysis and expansion, and back ends. This arises for the case of
3764 -- attribute references built by the expander (e.g. 'Valid for the case
3765 -- of an implicit validity check).
3767 -- Note: In generated code, the Address and Unrestricted_Access
3768 -- attributes can be applied to any expression, and the meaning is
3769 -- to create an object containing the value (the object is in the
3770 -- current stack frame), and pass the address of this value. If the
3771 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3772 -- is taken must be on a byte (storage unit) boundary, and if it is
3773 -- not (or may not be), then the generated code must create a copy
3774 -- that is byte aligned, and pass the address of this copy.
3776 -- N_Attribute_Reference
3777 -- Sloc points to apostrophe
3778 -- Prefix (Node3) (general expression, see note above)
3779 -- Attribute_Name (Name2) identifier name from attribute designator
3780 -- Expressions (List1) (set to No_List if no associated expressions)
3781 -- Entity (Node4-Sem) used if the attribute yields a type
3782 -- Associated_Node (Node4-Sem)
3783 -- Do_Overflow_Check (Flag17-Sem)
3784 -- Header_Size_Added (Flag11-Sem)
3785 -- Must_Be_Byte_Aligned (Flag14-Sem)
3786 -- Non_Aliased_Prefix (Flag18-Sem)
3787 -- Redundant_Use (Flag13-Sem)
3789 -- plus fields for expression
3791 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3792 -- into equivalent if expressions, properly taking care of side effects.
3794 ---------------------------------
3795 -- 4.1.4 Attribute Designator --
3796 ---------------------------------
3798 -- ATTRIBUTE_DESIGNATOR ::=
3799 -- IDENTIFIER [(static_EXPRESSION)]
3800 -- | access | delta | digits
3802 -- There is no explicit node in the tree for an attribute designator.
3803 -- Instead the Attribute_Name and Expressions fields of the parent
3804 -- node (N_Attribute_Reference node) hold the information.
3806 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3807 -- designator, then they are treated as identifiers internally
3808 -- rather than the keywords of the same name.
3810 --------------------------------------
3811 -- 4.1.4 Range Attribute Reference --
3812 --------------------------------------
3814 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3816 -- A range attribute reference is represented in the tree using the
3817 -- normal N_Attribute_Reference node.
3819 ---------------------------------------
3820 -- 4.1.4 Range Attribute Designator --
3821 ---------------------------------------
3823 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3825 -- A range attribute designator is represented in the tree using the
3826 -- normal N_Attribute_Reference node.
3828 --------------------
3829 -- 4.3 Aggregate --
3830 --------------------
3832 -- AGGREGATE ::=
3833 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3835 -----------------------------
3836 -- 4.3.1 Record Aggregate --
3837 -----------------------------
3839 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3841 -- N_Aggregate
3842 -- Sloc points to left parenthesis
3843 -- Expressions (List1) (set to No_List if none or null record case)
3844 -- Component_Associations (List2) (set to No_List if none)
3845 -- Null_Record_Present (Flag17)
3846 -- Aggregate_Bounds (Node3-Sem)
3847 -- Associated_Node (Node4-Sem)
3848 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3849 -- Expansion_Delayed (Flag11-Sem)
3850 -- Has_Self_Reference (Flag13-Sem)
3851 -- plus fields for expression
3853 -- Note: this structure is used for both record and array aggregates
3854 -- since the two cases are not separable by the parser. The parser
3855 -- makes no attempt to enforce consistency here, so it is up to the
3856 -- semantic phase to make sure that the aggregate is consistent (i.e.
3857 -- that it is not a "half-and-half" case that mixes record and array
3858 -- syntax. In particular, for a record aggregate, the expressions
3859 -- field will be set if there are positional associations.
3861 -- Note: N_Aggregate is not used for all aggregates; in particular,
3862 -- there is a separate node kind for extension aggregates.
3864 -- Note: gigi/gcc can handle array aggregates correctly providing that
3865 -- they are entirely positional, and the array subtype involved has a
3866 -- known at compile time length and is not bit packed, or a convention
3867 -- Fortran array with more than one dimension. If these conditions
3868 -- are not met, then the front end must translate the aggregate into
3869 -- an appropriate set of assignments into a temporary.
3871 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3872 -- of record aggregates, including those for packed, and rep-claused
3873 -- records, and also variant records, providing that there are no
3874 -- variable length fields whose size is not known at compile time,
3875 -- and providing that the aggregate is presented in fully named form.
3877 -- The other situation in which array aggregates and record aggregates
3878 -- cannot be passed to the back end is if assignment to one or more
3879 -- components itself needs expansion, e.g. in the case of an assignment
3880 -- of an object of a controlled type. In such cases, the front end
3881 -- must expand the aggregate to a series of assignments, and apply
3882 -- the required expansion to the individual assignment statements.
3884 ----------------------------------------------
3885 -- 4.3.1 Record Component Association List --
3886 ----------------------------------------------
3888 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3889 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3890 -- | null record
3892 -- There is no explicit node in the tree for a record component
3893 -- association list. Instead the Null_Record_Present flag is set in
3894 -- the parent node for the NULL RECORD case.
3896 ------------------------------------------------------
3897 -- 4.3.1 Record Component Association (also 4.3.3) --
3898 ------------------------------------------------------
3900 -- RECORD_COMPONENT_ASSOCIATION ::=
3901 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3903 -- N_Component_Association
3904 -- Sloc points to first selector name
3905 -- Choices (List1)
3906 -- Loop_Actions (List2-Sem)
3907 -- Expression (Node3) (empty if Box_Present)
3908 -- Box_Present (Flag15)
3909 -- Inherited_Discriminant (Flag13)
3911 -- Note: this structure is used for both record component associations
3912 -- and array component associations, since the two cases aren't always
3913 -- separable by the parser. The choices list may represent either a
3914 -- list of selector names in the record aggregate case, or a list of
3915 -- discrete choices in the array aggregate case or an N_Others_Choice
3916 -- node (which appears as a singleton list). Box_Present gives support
3917 -- to Ada 2005 (AI-287).
3919 ----------------------------------
3920 -- 4.3.1 Component Choice List --
3921 ----------------------------------
3923 -- COMPONENT_CHOICE_LIST ::=
3924 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3925 -- | others
3927 -- The entries of a component choice list appear in the Choices list of
3928 -- the associated N_Component_Association, as either selector names, or
3929 -- as an N_Others_Choice node.
3931 --------------------------------
3932 -- 4.3.2 Extension Aggregate --
3933 --------------------------------
3935 -- EXTENSION_AGGREGATE ::=
3936 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3938 -- Note: extension aggregates are not permitted in Ada 83 mode
3940 -- N_Extension_Aggregate
3941 -- Sloc points to left parenthesis
3942 -- Ancestor_Part (Node3)
3943 -- Associated_Node (Node4-Sem)
3944 -- Expressions (List1) (set to No_List if none or null record case)
3945 -- Component_Associations (List2) (set to No_List if none)
3946 -- Null_Record_Present (Flag17)
3947 -- Expansion_Delayed (Flag11-Sem)
3948 -- Has_Self_Reference (Flag13-Sem)
3949 -- plus fields for expression
3951 --------------------------
3952 -- 4.3.2 Ancestor Part --
3953 --------------------------
3955 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3957 ----------------------------
3958 -- 4.3.3 Array Aggregate --
3959 ----------------------------
3961 -- ARRAY_AGGREGATE ::=
3962 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3964 ---------------------------------------
3965 -- 4.3.3 Positional Array Aggregate --
3966 ---------------------------------------
3968 -- POSITIONAL_ARRAY_AGGREGATE ::=
3969 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3970 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3972 -- See Record_Aggregate (4.3.1) for node structure
3974 ----------------------------------
3975 -- 4.3.3 Named Array Aggregate --
3976 ----------------------------------
3978 -- NAMED_ARRAY_AGGREGATE ::=
3979 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3981 -- See Record_Aggregate (4.3.1) for node structure
3983 ----------------------------------------
3984 -- 4.3.3 Array Component Association --
3985 ----------------------------------------
3987 -- ARRAY_COMPONENT_ASSOCIATION ::=
3988 -- DISCRETE_CHOICE_LIST => EXPRESSION
3990 -- See Record_Component_Association (4.3.1) for node structure
3992 --------------------------------------------------
3993 -- 4.4 Expression/Relation/Term/Factor/Primary --
3994 --------------------------------------------------
3996 -- EXPRESSION ::=
3997 -- RELATION {LOGICAL_OPERATOR RELATION}
3999 -- CHOICE_EXPRESSION ::=
4000 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4002 -- CHOICE_RELATION ::=
4003 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4005 -- RELATION ::=
4006 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4007 -- | RAISE_EXPRESSION
4009 -- MEMBERSHIP_CHOICE_LIST ::=
4010 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4012 -- MEMBERSHIP_CHOICE ::=
4013 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4015 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4017 -- SIMPLE_EXPRESSION ::=
4018 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4020 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4022 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4024 -- No nodes are generated for any of these constructs. Instead, the
4025 -- node for the operator appears directly. When we refer to an
4026 -- expression in this description, we mean any of the possible
4027 -- constituent components of an expression (e.g. identifier is
4028 -- an example of an expression).
4030 -- Note: the above syntax is that Ada 2012 syntax which restricts
4031 -- choice relations to simple expressions to avoid ambiguities in
4032 -- some contexts with set membership notation. It has been decided
4033 -- that in retrospect, the Ada 95 change allowing general expressions
4034 -- in this context was a mistake, so we have reverted to the above
4035 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4036 -- expressions was there in Ada 83 from the start).
4038 ------------------
4039 -- 4.4 Primary --
4040 ------------------
4042 -- PRIMARY ::=
4043 -- NUMERIC_LITERAL | null
4044 -- | STRING_LITERAL | AGGREGATE
4045 -- | NAME | QUALIFIED_EXPRESSION
4046 -- | ALLOCATOR | (EXPRESSION)
4048 -- Usually there is no explicit node in the tree for primary. Instead
4049 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4050 -- exceptions. First, there is an explicit node for a null primary.
4052 -- N_Null
4053 -- Sloc points to NULL
4054 -- plus fields for expression
4056 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4057 -- that the parser keep track of which subexpressions are enclosed
4058 -- in parentheses, and how many levels of parentheses are used. This
4059 -- information is required for optimization purposes, and also for
4060 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4061 -- conform with ((((1)))) in the body).
4063 -- The parentheses are recorded by keeping a Paren_Count field in every
4064 -- subexpression node (it is actually present in all nodes, but only
4065 -- used in subexpression nodes). This count records the number of
4066 -- levels of parentheses. If the number of levels in the source exceeds
4067 -- the maximum accommodated by this count, then the count is simply left
4068 -- at the maximum value. This means that there are some pathological
4069 -- cases of failure to detect conformance failures (e.g. an expression
4070 -- with 500 levels of parens will conform with one with 501 levels),
4071 -- but we do not need to lose sleep over this.
4073 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4074 -- type N_Parenthesized_Expression used to accurately record unlimited
4075 -- numbers of levels of parentheses. However, it turned out to be a
4076 -- real nuisance to have to take into account the possible presence of
4077 -- this node during semantic analysis, since basically parentheses have
4078 -- zero relevance to semantic analysis.
4080 -- Note: the level of parentheses always present in things like
4081 -- aggregates does not count, only the parentheses in the primary
4082 -- (EXPRESSION) affect the setting of the Paren_Count field.
4084 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4085 -- treated as though it were Empty) if No_Initialization is set True.
4087 --------------------------------------
4088 -- 4.5 Short Circuit Control Forms --
4089 --------------------------------------
4091 -- EXPRESSION ::=
4092 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4094 -- Gigi restriction: For both these control forms, the operand and
4095 -- result types are always Standard.Boolean. The expander inserts the
4096 -- required conversion operations where needed to ensure this is the
4097 -- case.
4099 -- N_And_Then
4100 -- Sloc points to AND of AND THEN
4101 -- Left_Opnd (Node2)
4102 -- Right_Opnd (Node3)
4103 -- Actions (List1-Sem)
4104 -- plus fields for expression
4106 -- N_Or_Else
4107 -- Sloc points to OR of OR ELSE
4108 -- Left_Opnd (Node2)
4109 -- Right_Opnd (Node3)
4110 -- Actions (List1-Sem)
4111 -- plus fields for expression
4113 -- Note: The Actions field is used to hold actions associated with
4114 -- the right hand operand. These have to be treated specially since
4115 -- they are not unconditionally executed. See Insert_Actions for a
4116 -- more detailed description of how these actions are handled.
4118 ---------------------------
4119 -- 4.5 Membership Tests --
4120 ---------------------------
4122 -- RELATION ::=
4123 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4125 -- MEMBERSHIP_CHOICE_LIST ::=
4126 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4128 -- MEMBERSHIP_CHOICE ::=
4129 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4131 -- Note: although the grammar above allows only a range or a subtype
4132 -- mark, the parser in fact will accept any simple expression in place
4133 -- of a subtype mark. This means that the semantic analyzer must be able
4134 -- to deal with, and diagnose a simple expression other than a name for
4135 -- the right operand. This simplifies error recovery in the parser.
4137 -- The Alternatives field below is present only if there is more than
4138 -- one Membership_Choice present (which is legitimate only in Ada 2012
4139 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4140 -- the list of choices. In the tree passed to the back end, Alternatives
4141 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4142 -- expands out the complex set membership case using simple membership
4143 -- and equality operations).
4145 -- Should we rename Alternatives here to Membership_Choices ???
4147 -- N_In
4148 -- Sloc points to IN
4149 -- Left_Opnd (Node2)
4150 -- Right_Opnd (Node3)
4151 -- Alternatives (List4) (set to No_List if only one set alternative)
4152 -- No_Minimize_Eliminate (Flag17)
4153 -- plus fields for expression
4155 -- N_Not_In
4156 -- Sloc points to NOT of NOT IN
4157 -- Left_Opnd (Node2)
4158 -- Right_Opnd (Node3)
4159 -- Alternatives (List4) (set to No_List if only one set alternative)
4160 -- No_Minimize_Eliminate (Flag17)
4161 -- plus fields for expression
4163 --------------------
4164 -- 4.5 Operators --
4165 --------------------
4167 -- LOGICAL_OPERATOR ::= and | or | xor
4169 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4171 -- BINARY_ADDING_OPERATOR ::= + | - | &
4173 -- UNARY_ADDING_OPERATOR ::= + | -
4175 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4177 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4179 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4181 -- x #* y
4182 -- x #/ y
4183 -- x #mod y
4184 -- x #rem y
4186 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4187 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4188 -- All handling of smalls for multiplication and division is handled
4189 -- by the front end (mod and rem result only from expansion). Gigi
4190 -- thus never needs to worry about small values (for other operators
4191 -- operating on fixed-point, e.g. addition, the small value does not
4192 -- have any semantic effect anyway, these are always integer operations.
4194 -- Gigi restriction: For all operators taking Boolean operands, the
4195 -- type is always Standard.Boolean. The expander inserts the required
4196 -- conversion operations where needed to ensure this is the case.
4198 -- N_Op_And
4199 -- Sloc points to AND
4200 -- Do_Length_Check (Flag4-Sem)
4201 -- plus fields for binary operator
4202 -- plus fields for expression
4204 -- N_Op_Or
4205 -- Sloc points to OR
4206 -- Do_Length_Check (Flag4-Sem)
4207 -- plus fields for binary operator
4208 -- plus fields for expression
4210 -- N_Op_Xor
4211 -- Sloc points to XOR
4212 -- Do_Length_Check (Flag4-Sem)
4213 -- plus fields for binary operator
4214 -- plus fields for expression
4216 -- N_Op_Eq
4217 -- Sloc points to =
4218 -- plus fields for binary operator
4219 -- plus fields for expression
4221 -- N_Op_Ne
4222 -- Sloc points to /=
4223 -- plus fields for binary operator
4224 -- plus fields for expression
4226 -- N_Op_Lt
4227 -- Sloc points to <
4228 -- plus fields for binary operator
4229 -- plus fields for expression
4231 -- N_Op_Le
4232 -- Sloc points to <=
4233 -- plus fields for binary operator
4234 -- plus fields for expression
4236 -- N_Op_Gt
4237 -- Sloc points to >
4238 -- plus fields for binary operator
4239 -- plus fields for expression
4241 -- N_Op_Ge
4242 -- Sloc points to >=
4243 -- plus fields for binary operator
4244 -- plus fields for expression
4246 -- N_Op_Add
4247 -- Sloc points to + (binary)
4248 -- plus fields for binary operator
4249 -- plus fields for expression
4251 -- N_Op_Subtract
4252 -- Sloc points to - (binary)
4253 -- plus fields for binary operator
4254 -- plus fields for expression
4256 -- N_Op_Concat
4257 -- Sloc points to &
4258 -- Is_Component_Left_Opnd (Flag13-Sem)
4259 -- Is_Component_Right_Opnd (Flag14-Sem)
4260 -- plus fields for binary operator
4261 -- plus fields for expression
4263 -- N_Op_Multiply
4264 -- Sloc points to *
4265 -- Treat_Fixed_As_Integer (Flag14-Sem)
4266 -- Rounded_Result (Flag18-Sem)
4267 -- plus fields for binary operator
4268 -- plus fields for expression
4270 -- N_Op_Divide
4271 -- Sloc points to /
4272 -- Treat_Fixed_As_Integer (Flag14-Sem)
4273 -- Do_Division_Check (Flag13-Sem)
4274 -- Rounded_Result (Flag18-Sem)
4275 -- plus fields for binary operator
4276 -- plus fields for expression
4278 -- N_Op_Mod
4279 -- Sloc points to MOD
4280 -- Treat_Fixed_As_Integer (Flag14-Sem)
4281 -- Do_Division_Check (Flag13-Sem)
4282 -- plus fields for binary operator
4283 -- plus fields for expression
4285 -- N_Op_Rem
4286 -- Sloc points to REM
4287 -- Treat_Fixed_As_Integer (Flag14-Sem)
4288 -- Do_Division_Check (Flag13-Sem)
4289 -- plus fields for binary operator
4290 -- plus fields for expression
4292 -- N_Op_Expon
4293 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4294 -- Sloc points to **
4295 -- plus fields for binary operator
4296 -- plus fields for expression
4298 -- N_Op_Plus
4299 -- Sloc points to + (unary)
4300 -- plus fields for unary operator
4301 -- plus fields for expression
4303 -- N_Op_Minus
4304 -- Sloc points to - (unary)
4305 -- plus fields for unary operator
4306 -- plus fields for expression
4308 -- N_Op_Abs
4309 -- Sloc points to ABS
4310 -- plus fields for unary operator
4311 -- plus fields for expression
4313 -- N_Op_Not
4314 -- Sloc points to NOT
4315 -- plus fields for unary operator
4316 -- plus fields for expression
4318 -- See also shift operators in section B.2
4320 -- Note on fixed-point operations passed to Gigi: For adding operators,
4321 -- the semantics is to treat these simply as integer operations, with
4322 -- the small values being ignored (the bounds are already stored in
4323 -- units of small, so that constraint checking works as usual). For the
4324 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4325 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4326 -- thus treat these nodes in identical manner, ignoring small values.
4328 -- Note on equality/inequality tests for records. In the expanded tree,
4329 -- record comparisons are always expanded to be a series of component
4330 -- comparisons, so the back end will never see an equality or inequality
4331 -- operation with operands of a record type.
4333 -- Note on overflow handling: When the overflow checking mode is set to
4334 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4335 -- be modified to use a larger type for the operands and result. In
4336 -- the case where the computed range exceeds that of Long_Long_Integer,
4337 -- and we are running in ELIMINATED mode, the operator node will be
4338 -- changed to be a call to the appropriate routine in System.Bignums.
4340 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4341 -- for signed integer types (since there is no equivalent operator in
4342 -- C). Instead we rewrite such an operation in terms of REM (which is
4343 -- % in C) and other C-available operators.
4345 ------------------------------------
4346 -- 4.5.7 Conditional Expressions --
4347 ------------------------------------
4349 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4351 --------------------------
4352 -- 4.5.7 If Expression --
4353 ----------------------------
4355 -- IF_EXPRESSION ::=
4356 -- if CONDITION then DEPENDENT_EXPRESSION
4357 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4358 -- [else DEPENDENT_EXPRESSION]
4360 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4362 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4363 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4364 -- the Is_Elsif flag is set on the inner if expression.
4366 -- N_If_Expression
4367 -- Sloc points to IF or ELSIF keyword
4368 -- Expressions (List1)
4369 -- Then_Actions (List2-Sem)
4370 -- Else_Actions (List3-Sem)
4371 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4372 -- Do_Overflow_Check (Flag17-Sem)
4373 -- plus fields for expression
4375 -- Expressions here is a three-element list, whose first element is the
4376 -- condition, the second element is the dependent expression after THEN
4377 -- and the third element is the dependent expression after the ELSE
4378 -- (explicitly set to True if missing).
4380 -- Note: the Then_Actions and Else_Actions fields are always set to
4381 -- No_List in the tree passed to the back end. These are used only
4382 -- for temporary processing purposes in the expander. Even though they
4383 -- are semantic fields, their parent pointers are set because analysis
4384 -- of actions nodes in those lists may generate additional actions that
4385 -- need to know their insertion point (for example for the creation of
4386 -- transient scopes).
4388 -- Note: in the tree passed to the back end, if the result type is
4389 -- an unconstrained array, the if expression can only appears in the
4390 -- initializing expression of an object declaration (this avoids the
4391 -- back end having to create a variable length temporary on the fly).
4393 ----------------------------
4394 -- 4.5.7 Case Expression --
4395 ----------------------------
4397 -- CASE_EXPRESSION ::=
4398 -- case SELECTING_EXPRESSION is
4399 -- CASE_EXPRESSION_ALTERNATIVE
4400 -- {,CASE_EXPRESSION_ALTERNATIVE}
4402 -- Note that the Alternatives cannot include pragmas (this contrasts
4403 -- with the situation of case statements where pragmas are allowed).
4405 -- N_Case_Expression
4406 -- Sloc points to CASE
4407 -- Expression (Node3) (the selecting expression)
4408 -- Alternatives (List4) (the case expression alternatives)
4409 -- Do_Overflow_Check (Flag17-Sem)
4411 ----------------------------------------
4412 -- 4.5.7 Case Expression Alternative --
4413 ----------------------------------------
4415 -- CASE_EXPRESSION_ALTERNATIVE ::=
4416 -- when DISCRETE_CHOICE_LIST =>
4417 -- DEPENDENT_EXPRESSION
4419 -- N_Case_Expression_Alternative
4420 -- Sloc points to WHEN
4421 -- Actions (List1)
4422 -- Discrete_Choices (List4)
4423 -- Expression (Node3)
4424 -- Has_SP_Choice (Flag15-Sem)
4426 -- Note: The Actions field temporarily holds any actions associated with
4427 -- evaluation of the Expression. During expansion of the case expression
4428 -- these actions are wrapped into an N_Expressions_With_Actions node
4429 -- replacing the original expression.
4431 -- Note: this node never appears in the tree passed to the back end,
4432 -- since the expander converts case expressions into case statements.
4434 ---------------------------------
4435 -- 4.5.9 Quantified Expression --
4436 ---------------------------------
4438 -- QUANTIFIED_EXPRESSION ::=
4439 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4440 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4442 -- QUANTIFIER ::= all | some
4444 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4445 -- is present at a time, in which case the other one is empty.
4447 -- N_Quantified_Expression
4448 -- Sloc points to FOR
4449 -- Iterator_Specification (Node2)
4450 -- Loop_Parameter_Specification (Node4)
4451 -- Condition (Node1)
4452 -- All_Present (Flag15)
4454 --------------------------
4455 -- 4.6 Type Conversion --
4456 --------------------------
4458 -- TYPE_CONVERSION ::=
4459 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4461 -- In the (NAME) case, the name is stored as the expression
4463 -- Note: the parser never generates a type conversion node, since it
4464 -- looks like an indexed component which is generated by preference.
4465 -- The semantic pass must correct this misidentification.
4467 -- Gigi handles conversions that involve no change in the root type,
4468 -- and also all conversions from integer to floating-point types.
4469 -- Conversions from floating-point to integer are only handled in
4470 -- the case where Float_Truncate flag set. Other conversions from
4471 -- floating-point to integer (involving rounding) and all conversions
4472 -- involving fixed-point types are handled by the expander.
4474 -- Sprint syntax if Float_Truncate set: X^(Y)
4475 -- Sprint syntax if Conversion_OK set X?(Y)
4476 -- Sprint syntax if both flags set X?^(Y)
4478 -- Note: If either the operand or result type is fixed-point, Gigi will
4479 -- only see a type conversion node with Conversion_OK set. The front end
4480 -- takes care of all handling of small's for fixed-point conversions.
4482 -- N_Type_Conversion
4483 -- Sloc points to first token of subtype mark
4484 -- Subtype_Mark (Node4)
4485 -- Expression (Node3)
4486 -- Do_Discriminant_Check (Flag1-Sem)
4487 -- Do_Length_Check (Flag4-Sem)
4488 -- Float_Truncate (Flag11-Sem)
4489 -- Do_Tag_Check (Flag13-Sem)
4490 -- Conversion_OK (Flag14-Sem)
4491 -- Do_Overflow_Check (Flag17-Sem)
4492 -- Rounded_Result (Flag18-Sem)
4493 -- plus fields for expression
4495 -- Note: if a range check is required, then the Do_Range_Check flag
4496 -- is set in the Expression with the check being done against the
4497 -- target type range (after the base type conversion, if any).
4499 -------------------------------
4500 -- 4.7 Qualified Expression --
4501 -------------------------------
4503 -- QUALIFIED_EXPRESSION ::=
4504 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4506 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4507 -- the expression, so the Expression field of this node always points
4508 -- to a parenthesized expression in this case (i.e. Paren_Count will
4509 -- always be non-zero for the referenced expression if it is not an
4510 -- aggregate).
4512 -- N_Qualified_Expression
4513 -- Sloc points to apostrophe
4514 -- Subtype_Mark (Node4)
4515 -- Expression (Node3) expression or aggregate
4516 -- plus fields for expression
4518 --------------------
4519 -- 4.8 Allocator --
4520 --------------------
4522 -- ALLOCATOR ::=
4523 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4524 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4526 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4528 -- Sprint syntax (when storage pool present)
4529 -- new xxx (storage_pool = pool)
4530 -- or
4531 -- new (subpool) xxx (storage_pool = pool)
4533 -- N_Allocator
4534 -- Sloc points to NEW
4535 -- Expression (Node3) subtype indication or qualified expression
4536 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4537 -- Storage_Pool (Node1-Sem)
4538 -- Procedure_To_Call (Node2-Sem)
4539 -- Null_Exclusion_Present (Flag11)
4540 -- No_Initialization (Flag13-Sem)
4541 -- Is_Static_Coextension (Flag14-Sem)
4542 -- Do_Storage_Check (Flag17-Sem)
4543 -- Is_Dynamic_Coextension (Flag18-Sem)
4544 -- plus fields for expression
4546 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4547 -- This flag has a special function in conjunction with the restriction
4548 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4549 -- is not set. This means that if a source allocator is replaced with
4550 -- a constructed allocator, the Comes_From_Source flag should be copied
4551 -- to the newly created allocator.
4553 ---------------------------------
4554 -- 5.1 Sequence Of Statements --
4555 ---------------------------------
4557 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4559 -- Note: Although the parser will not accept a declaration as a
4560 -- statement, the semantic analyzer may insert declarations (e.g.
4561 -- declarations of implicit types needed for execution of other
4562 -- statements) into a sequence of statements, so the code generator
4563 -- should be prepared to accept a declaration where a statement is
4564 -- expected. Note also that pragmas can appear as statements.
4566 --------------------
4567 -- 5.1 Statement --
4568 --------------------
4570 -- STATEMENT ::=
4571 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4573 -- There is no explicit node in the tree for a statement. Instead, the
4574 -- individual statement appears directly. Labels are treated as a
4575 -- kind of statement, i.e. they are linked into a statement list at
4576 -- the point they appear, so the labeled statement appears following
4577 -- the label or labels in the statement list.
4579 ---------------------------
4580 -- 5.1 Simple Statement --
4581 ---------------------------
4583 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4584 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4585 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4586 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4587 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4588 -- | ABORT_STATEMENT | RAISE_STATEMENT
4589 -- | CODE_STATEMENT
4591 -----------------------------
4592 -- 5.1 Compound Statement --
4593 -----------------------------
4595 -- COMPOUND_STATEMENT ::=
4596 -- IF_STATEMENT | CASE_STATEMENT
4597 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4598 -- | EXTENDED_RETURN_STATEMENT
4599 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4601 -------------------------
4602 -- 5.1 Null Statement --
4603 -------------------------
4605 -- NULL_STATEMENT ::= null;
4607 -- N_Null_Statement
4608 -- Sloc points to NULL
4610 ----------------
4611 -- 5.1 Label --
4612 ----------------
4614 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4616 -- Note that the occurrence of a label is not a defining identifier,
4617 -- but rather a referencing occurrence. The defining occurrence is
4618 -- in the implicit label declaration which occurs in the innermost
4619 -- enclosing block.
4621 -- N_Label
4622 -- Sloc points to <<
4623 -- Identifier (Node1) direct name of statement identifier
4624 -- Exception_Junk (Flag8-Sem)
4626 -- Note: Before Ada 2012, a label is always followed by a statement,
4627 -- and this is true in the tree even in Ada 2012 mode (the parser
4628 -- inserts a null statement marked with Comes_From_Source False).
4630 -------------------------------
4631 -- 5.1 Statement Identifier --
4632 -------------------------------
4634 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4636 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4637 -- (not an OPERATOR_SYMBOL)
4639 -------------------------------
4640 -- 5.2 Assignment Statement --
4641 -------------------------------
4643 -- ASSIGNMENT_STATEMENT ::=
4644 -- variable_NAME := EXPRESSION;
4646 -- N_Assignment_Statement
4647 -- Sloc points to :=
4648 -- Name (Node2)
4649 -- Expression (Node3)
4650 -- Do_Discriminant_Check (Flag1-Sem)
4651 -- Do_Tag_Check (Flag13-Sem)
4652 -- Do_Length_Check (Flag4-Sem)
4653 -- Forwards_OK (Flag5-Sem)
4654 -- Backwards_OK (Flag6-Sem)
4655 -- No_Ctrl_Actions (Flag7-Sem)
4656 -- Componentwise_Assignment (Flag14-Sem)
4657 -- Suppress_Assignment_Checks (Flag18-Sem)
4659 -- Note: if a range check is required, then the Do_Range_Check flag
4660 -- is set in the Expression (right hand side), with the check being
4661 -- done against the type of the Name (left hand side).
4663 -- Note: the back end places some restrictions on the form of the
4664 -- Expression field. If the object being assigned to is Atomic, then
4665 -- the Expression may not have the form of an aggregate (since this
4666 -- might cause the back end to generate separate assignments). In this
4667 -- case the front end must generate an extra temporary and initialize
4668 -- this temporary as required (the temporary itself is not atomic).
4670 -----------------------
4671 -- 5.3 If Statement --
4672 -----------------------
4674 -- IF_STATEMENT ::=
4675 -- if CONDITION then
4676 -- SEQUENCE_OF_STATEMENTS
4677 -- {elsif CONDITION then
4678 -- SEQUENCE_OF_STATEMENTS}
4679 -- [else
4680 -- SEQUENCE_OF_STATEMENTS]
4681 -- end if;
4683 -- Gigi restriction: This expander ensures that the type of the
4684 -- Condition fields is always Standard.Boolean, even if the type
4685 -- in the source is some non-standard boolean type.
4687 -- N_If_Statement
4688 -- Sloc points to IF
4689 -- Condition (Node1)
4690 -- Then_Statements (List2)
4691 -- Elsif_Parts (List3) (set to No_List if none present)
4692 -- Else_Statements (List4) (set to No_List if no else part present)
4693 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4694 -- From_Conditional_Expression (Flag1-Sem)
4696 -- N_Elsif_Part
4697 -- Sloc points to ELSIF
4698 -- Condition (Node1)
4699 -- Then_Statements (List2)
4700 -- Condition_Actions (List3-Sem)
4702 --------------------
4703 -- 5.3 Condition --
4704 --------------------
4706 -- CONDITION ::= boolean_EXPRESSION
4708 -------------------------
4709 -- 5.4 Case Statement --
4710 -------------------------
4712 -- CASE_STATEMENT ::=
4713 -- case EXPRESSION is
4714 -- CASE_STATEMENT_ALTERNATIVE
4715 -- {CASE_STATEMENT_ALTERNATIVE}
4716 -- end case;
4718 -- Note: the Alternatives can contain pragmas. These only occur at
4719 -- the start of the list, since any pragmas occurring after the first
4720 -- alternative are absorbed into the corresponding statement sequence.
4722 -- N_Case_Statement
4723 -- Sloc points to CASE
4724 -- Expression (Node3)
4725 -- Alternatives (List4)
4726 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4727 -- From_Conditional_Expression (Flag1-Sem)
4729 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4730 -- followed by a statement, and this is true in the tree even in Ada
4731 -- 2012 mode (the parser inserts a null statement marked with the flag
4732 -- Comes_From_Source False).
4734 -------------------------------------
4735 -- 5.4 Case Statement Alternative --
4736 -------------------------------------
4738 -- CASE_STATEMENT_ALTERNATIVE ::=
4739 -- when DISCRETE_CHOICE_LIST =>
4740 -- SEQUENCE_OF_STATEMENTS
4742 -- N_Case_Statement_Alternative
4743 -- Sloc points to WHEN
4744 -- Discrete_Choices (List4)
4745 -- Statements (List3)
4746 -- Has_SP_Choice (Flag15-Sem)
4748 -- Note: in the list of Discrete_Choices, the tree passed to the back
4749 -- end does not have choice entries corresponding to names of statically
4750 -- predicated subtypes. Such entries are always expanded out to the list
4751 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4752 -- mode does not have this expansion, and has the original choices.
4754 -------------------------
4755 -- 5.5 Loop Statement --
4756 -------------------------
4758 -- LOOP_STATEMENT ::=
4759 -- [loop_STATEMENT_IDENTIFIER :]
4760 -- [ITERATION_SCHEME] loop
4761 -- SEQUENCE_OF_STATEMENTS
4762 -- end loop [loop_IDENTIFIER];
4764 -- Note: The occurrence of a loop label is not a defining identifier
4765 -- but rather a referencing occurrence. The defining occurrence is in
4766 -- the implicit label declaration which occurs in the innermost
4767 -- enclosing block.
4769 -- Note: there is always a loop statement identifier present in the
4770 -- tree, even if none was given in the source. In the case where no loop
4771 -- identifier is given in the source, the parser creates a name of the
4772 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4773 -- that the loop names created in this manner do not conflict with any
4774 -- user defined identifiers), and the flag Has_Created_Identifier is set
4775 -- to True. The only exception to the rule that all loop statement nodes
4776 -- have identifiers occurs for loops constructed by the expander, and
4777 -- the semantic analyzer will create and supply dummy loop identifiers
4778 -- in these cases.
4780 -- N_Loop_Statement
4781 -- Sloc points to LOOP
4782 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4783 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4784 -- Statements (List3)
4785 -- End_Label (Node4)
4786 -- Has_Created_Identifier (Flag15)
4787 -- Is_Null_Loop (Flag16)
4788 -- Suppress_Loop_Warnings (Flag17)
4790 -- Note: the parser fills in the Identifier field if there is an
4791 -- explicit loop identifier. Otherwise the parser leaves this field
4792 -- set to Empty, and then the semantic processing for a loop statement
4793 -- creates an identifier, setting the Has_Created_Identifier flag to
4794 -- True. So after semantic analysis, the Identifier is always set,
4795 -- referencing an identifier whose entity has an Ekind of E_Loop.
4797 ---------------------------
4798 -- 5.5 Iteration Scheme --
4799 ---------------------------
4801 -- ITERATION_SCHEME ::=
4802 -- while CONDITION
4803 -- | for LOOP_PARAMETER_SPECIFICATION
4804 -- | for ITERATOR_SPECIFICATION
4806 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4807 -- is present at a time, in which case the other one is empty. Both are
4808 -- empty in the case of a WHILE loop.
4810 -- Gigi restriction: The expander ensures that the type of the Condition
4811 -- field is always Standard.Boolean, even if the type in the source is
4812 -- some non-standard boolean type.
4814 -- N_Iteration_Scheme
4815 -- Sloc points to WHILE or FOR
4816 -- Condition (Node1) (set to Empty if FOR case)
4817 -- Condition_Actions (List3-Sem)
4818 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4819 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4821 ---------------------------------------
4822 -- 5.5 Loop Parameter Specification --
4823 ---------------------------------------
4825 -- LOOP_PARAMETER_SPECIFICATION ::=
4826 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4828 -- N_Loop_Parameter_Specification
4829 -- Sloc points to first identifier
4830 -- Defining_Identifier (Node1)
4831 -- Reverse_Present (Flag15)
4832 -- Discrete_Subtype_Definition (Node4)
4834 -----------------------------------
4835 -- 5.5.1 Iterator Specification --
4836 -----------------------------------
4838 -- ITERATOR_SPECIFICATION ::=
4839 -- DEFINING_IDENTIFIER in [reverse] NAME
4840 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4842 -- N_Iterator_Specification
4843 -- Sloc points to defining identifier
4844 -- Defining_Identifier (Node1)
4845 -- Name (Node2)
4846 -- Reverse_Present (Flag15)
4847 -- Of_Present (Flag16)
4848 -- Subtype_Indication (Node5)
4850 -- Note: The Of_Present flag distinguishes the two forms
4852 --------------------------
4853 -- 5.6 Block Statement --
4854 --------------------------
4856 -- BLOCK_STATEMENT ::=
4857 -- [block_STATEMENT_IDENTIFIER:]
4858 -- [declare
4859 -- DECLARATIVE_PART]
4860 -- begin
4861 -- HANDLED_SEQUENCE_OF_STATEMENTS
4862 -- end [block_IDENTIFIER];
4864 -- Note that the occurrence of a block identifier is not a defining
4865 -- identifier, but rather a referencing occurrence. The defining
4866 -- occurrence is an E_Block entity declared by the implicit label
4867 -- declaration which occurs in the innermost enclosing block statement
4868 -- or body; the block identifier denotes that E_Block.
4870 -- For block statements that come from source code, there is always a
4871 -- block statement identifier present in the tree, denoting an E_Block.
4872 -- In the case where no block identifier is given in the source,
4873 -- the parser creates a name of the form B_n, where n is a decimal
4874 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4875 -- constructed by the expander usually have no identifier, and no
4876 -- corresponding entity.
4878 -- Note: the block statement created for an extended return statement
4879 -- has an entity, and this entity is an E_Return_Statement, rather than
4880 -- the usual E_Block.
4882 -- Note: Exception_Junk is set for the wrapping blocks created during
4883 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4885 -- Note: from a control flow viewpoint, a block statement defines an
4886 -- extended basic block, i.e. the entry of the block dominates every
4887 -- statement in the sequence. When generating new statements with
4888 -- exception handlers in the expander at the end of a sequence that
4889 -- comes from source code, it can be necessary to wrap them all in a
4890 -- block statement in order to expose the implicit control flow to
4891 -- gigi and thus prevent it from issuing bogus control flow warnings.
4893 -- N_Block_Statement
4894 -- Sloc points to DECLARE or BEGIN
4895 -- Identifier (Node1) block direct name (set to Empty if not present)
4896 -- Declarations (List2) (set to No_List if no DECLARE part)
4897 -- Handled_Statement_Sequence (Node4)
4898 -- Cleanup_Actions (List5-Sem)
4899 -- Is_Task_Master (Flag5-Sem)
4900 -- Activation_Chain_Entity (Node3-Sem)
4901 -- Has_Created_Identifier (Flag15)
4902 -- Is_Task_Allocation_Block (Flag6)
4903 -- Is_Asynchronous_Call_Block (Flag7)
4904 -- Exception_Junk (Flag8-Sem)
4905 -- Is_Finalization_Wrapper (Flag9-Sem)
4907 -------------------------
4908 -- 5.7 Exit Statement --
4909 -------------------------
4911 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4913 -- Gigi restriction: The expander ensures that the type of the Condition
4914 -- field is always Standard.Boolean, even if the type in the source is
4915 -- some non-standard boolean type.
4917 -- N_Exit_Statement
4918 -- Sloc points to EXIT
4919 -- Name (Node2) (set to Empty if no loop name present)
4920 -- Condition (Node1) (set to Empty if no WHEN part present)
4921 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4923 -------------------------
4924 -- 5.9 Goto Statement --
4925 -------------------------
4927 -- GOTO_STATEMENT ::= goto label_NAME;
4929 -- N_Goto_Statement
4930 -- Sloc points to GOTO
4931 -- Name (Node2)
4932 -- Exception_Junk (Flag8-Sem)
4934 ---------------------------------
4935 -- 6.1 Subprogram Declaration --
4936 ---------------------------------
4938 -- SUBPROGRAM_DECLARATION ::=
4939 -- SUBPROGRAM_SPECIFICATION
4940 -- [ASPECT_SPECIFICATIONS];
4942 -- N_Subprogram_Declaration
4943 -- Sloc points to FUNCTION or PROCEDURE
4944 -- Specification (Node1)
4945 -- Body_To_Inline (Node3-Sem)
4946 -- Corresponding_Body (Node5-Sem)
4947 -- Parent_Spec (Node4-Sem)
4949 ------------------------------------------
4950 -- 6.1 Abstract Subprogram Declaration --
4951 ------------------------------------------
4953 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4954 -- SUBPROGRAM_SPECIFICATION is abstract
4955 -- [ASPECT_SPECIFICATIONS];
4957 -- N_Abstract_Subprogram_Declaration
4958 -- Sloc points to ABSTRACT
4959 -- Specification (Node1)
4961 -----------------------------------
4962 -- 6.1 Subprogram Specification --
4963 -----------------------------------
4965 -- SUBPROGRAM_SPECIFICATION ::=
4966 -- [[not] overriding]
4967 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4968 -- | [[not] overriding]
4969 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4971 -- Note: there are no separate nodes for the profiles, instead the
4972 -- information appears directly in the following nodes.
4974 -- N_Function_Specification
4975 -- Sloc points to FUNCTION
4976 -- Defining_Unit_Name (Node1) (the designator)
4977 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4978 -- Null_Exclusion_Present (Flag11)
4979 -- Result_Definition (Node4) for result subtype
4980 -- Generic_Parent (Node5-Sem)
4981 -- Must_Override (Flag14) set if overriding indicator present
4982 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4984 -- N_Procedure_Specification
4985 -- Sloc points to PROCEDURE
4986 -- Defining_Unit_Name (Node1)
4987 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4988 -- Generic_Parent (Node5-Sem)
4989 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4990 -- Must_Override (Flag14) set if overriding indicator present
4991 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4993 -- Note: overriding indicator is an Ada 2005 feature
4995 ---------------------
4996 -- 6.1 Designator --
4997 ---------------------
4999 -- DESIGNATOR ::=
5000 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5002 -- Designators that are simply identifiers or operator symbols appear
5003 -- directly in the tree in this form. The following node is used only
5004 -- in the case where the designator has a parent unit name component.
5006 -- N_Designator
5007 -- Sloc points to period
5008 -- Name (Node2) holds the parent unit name
5009 -- Identifier (Node1)
5011 -- Note: Name is always non-Empty, since this node is only used for the
5012 -- case where a parent library unit package name is present.
5014 -- Note that the identifier can also be an operator symbol here
5016 ------------------------------
5017 -- 6.1 Defining Designator --
5018 ------------------------------
5020 -- DEFINING_DESIGNATOR ::=
5021 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5023 -------------------------------------
5024 -- 6.1 Defining Program Unit Name --
5025 -------------------------------------
5027 -- DEFINING_PROGRAM_UNIT_NAME ::=
5028 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5030 -- The parent unit name is present only in the case of a child unit name
5031 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5032 -- at scope level one). If no such name is present, the defining program
5033 -- unit name is represented simply as the defining identifier. In the
5034 -- child unit case, the following node is used to represent the child
5035 -- unit name.
5037 -- N_Defining_Program_Unit_Name
5038 -- Sloc points to period
5039 -- Name (Node2) holds the parent unit name
5040 -- Defining_Identifier (Node1)
5042 -- Note: Name is always non-Empty, since this node is only used for the
5043 -- case where a parent unit name is present.
5045 --------------------------
5046 -- 6.1 Operator Symbol --
5047 --------------------------
5049 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5051 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5052 -- the corresponding fields of an N_Character_Literal node. This allows
5053 -- easy conversion of the operator symbol node into a character literal
5054 -- node in the case where a string constant of the form of an operator
5055 -- symbol is scanned out as such, but turns out semantically to be a
5056 -- string literal that is not an operator. For details see Sinfo.CN.
5057 -- Change_Operator_Symbol_To_String_Literal.
5059 -- N_Operator_Symbol
5060 -- Sloc points to literal
5061 -- Chars (Name1) contains the Name_Id for the operator symbol
5062 -- Strval (Str3) Id of string value. This is used if the operator
5063 -- symbol turns out to be a normal string after all.
5064 -- Entity (Node4-Sem)
5065 -- Associated_Node (Node4-Sem)
5066 -- Has_Private_View (Flag11-Sem) set in generic units.
5067 -- Etype (Node5-Sem)
5069 -- Note: the Strval field may be set to No_String for generated
5070 -- operator symbols that are known not to be string literals
5071 -- semantically.
5073 -----------------------------------
5074 -- 6.1 Defining Operator Symbol --
5075 -----------------------------------
5077 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5079 -- A defining operator symbol is an entity, which has additional
5080 -- fields depending on the setting of the Ekind field. These
5081 -- additional fields are defined (and access subprograms declared)
5082 -- in package Einfo.
5084 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5085 -- are deliberately layed out to match the layout of fields in an
5086 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5087 -- an operator symbol node into a defining operator symbol node.
5088 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5089 -- for further details.
5091 -- N_Defining_Operator_Symbol
5092 -- Sloc points to literal
5093 -- Chars (Name1) contains the Name_Id for the operator symbol
5094 -- Next_Entity (Node2-Sem)
5095 -- Scope (Node3-Sem)
5096 -- Etype (Node5-Sem)
5098 ----------------------------
5099 -- 6.1 Parameter Profile --
5100 ----------------------------
5102 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5104 ---------------------------------------
5105 -- 6.1 Parameter and Result Profile --
5106 ---------------------------------------
5108 -- PARAMETER_AND_RESULT_PROFILE ::=
5109 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5110 -- | [FORMAL_PART] return ACCESS_DEFINITION
5112 -- There is no explicit node in the tree for a parameter and result
5113 -- profile. Instead the information appears directly in the parent.
5115 ----------------------
5116 -- 6.1 Formal Part --
5117 ----------------------
5119 -- FORMAL_PART ::=
5120 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5122 ----------------------------------
5123 -- 6.1 Parameter Specification --
5124 ----------------------------------
5126 -- PARAMETER_SPECIFICATION ::=
5127 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5128 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5129 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5130 -- [:= DEFAULT_EXPRESSION]
5132 -- Although the syntax allows multiple identifiers in the list, the
5133 -- semantics is as though successive specifications were given with
5134 -- identical type definition and expression components. To simplify
5135 -- semantic processing, the parser represents a multiple declaration
5136 -- case as a sequence of single Specifications, using the More_Ids and
5137 -- Prev_Ids flags to preserve the original source form as described
5138 -- in the section on "Handling of Defining Identifier Lists".
5140 -- ALIASED can only be present in Ada 2012 mode
5142 -- N_Parameter_Specification
5143 -- Sloc points to first identifier
5144 -- Defining_Identifier (Node1)
5145 -- Aliased_Present (Flag4)
5146 -- In_Present (Flag15)
5147 -- Out_Present (Flag17)
5148 -- Null_Exclusion_Present (Flag11)
5149 -- Parameter_Type (Node2) subtype mark or access definition
5150 -- Expression (Node3) (set to Empty if no default expression present)
5151 -- Do_Accessibility_Check (Flag13-Sem)
5152 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5153 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5154 -- Default_Expression (Node5-Sem)
5156 ---------------
5157 -- 6.1 Mode --
5158 ---------------
5160 -- MODE ::= [in] | in out | out
5162 -- There is no explicit node in the tree for the Mode. Instead the
5163 -- In_Present and Out_Present flags are set in the parent node to
5164 -- record the presence of keywords specifying the mode.
5166 --------------------------
5167 -- 6.3 Subprogram Body --
5168 --------------------------
5170 -- SUBPROGRAM_BODY ::=
5171 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5172 -- DECLARATIVE_PART
5173 -- begin
5174 -- HANDLED_SEQUENCE_OF_STATEMENTS
5175 -- end [DESIGNATOR];
5177 -- N_Subprogram_Body
5178 -- Sloc points to FUNCTION or PROCEDURE
5179 -- Specification (Node1)
5180 -- Declarations (List2)
5181 -- Handled_Statement_Sequence (Node4)
5182 -- Activation_Chain_Entity (Node3-Sem)
5183 -- Corresponding_Spec (Node5-Sem)
5184 -- Acts_As_Spec (Flag4-Sem)
5185 -- Bad_Is_Detected (Flag15) used only by parser
5186 -- Do_Storage_Check (Flag17-Sem)
5187 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5188 -- Is_Entry_Barrier_Function (Flag8-Sem)
5189 -- Is_Task_Master (Flag5-Sem)
5190 -- Was_Originally_Stub (Flag13-Sem)
5191 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5193 -------------------------
5194 -- Expression Function --
5195 -------------------------
5197 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5198 -- and put in its proper section when we know exactly where that is.
5200 -- EXPRESSION_FUNCTION ::=
5201 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5202 -- [ASPECT_SPECIFICATIONS];
5204 -- N_Expression_Function
5205 -- Sloc points to FUNCTION
5206 -- Specification (Node1)
5207 -- Expression (Node3)
5208 -- Corresponding_Spec (Node5-Sem)
5210 -----------------------------------
5211 -- 6.4 Procedure Call Statement --
5212 -----------------------------------
5214 -- PROCEDURE_CALL_STATEMENT ::=
5215 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5217 -- Note: the reason that a procedure call has expression fields is that
5218 -- it semantically resembles an expression, e.g. overloading is allowed
5219 -- and a type is concocted for semantic processing purposes. Certain of
5220 -- these fields, such as Parens are not relevant, but it is easier to
5221 -- just supply all of them together.
5223 -- N_Procedure_Call_Statement
5224 -- Sloc points to first token of name or prefix
5225 -- Name (Node2) stores name or prefix
5226 -- Parameter_Associations (List3) (set to No_List if no
5227 -- actual parameter part)
5228 -- First_Named_Actual (Node4-Sem)
5229 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5230 -- Do_Tag_Check (Flag13-Sem)
5231 -- No_Elaboration_Check (Flag14-Sem)
5232 -- ABE_Is_Certain (Flag18-Sem)
5233 -- plus fields for expression
5235 -- If any IN parameter requires a range check, then the corresponding
5236 -- argument expression has the Do_Range_Check flag set, and the range
5237 -- check is done against the formal type. Note that this argument
5238 -- expression may appear directly in the Parameter_Associations list,
5239 -- or may be a descendent of an N_Parameter_Association node that
5240 -- appears in this list.
5242 ------------------------
5243 -- 6.4 Function Call --
5244 ------------------------
5246 -- FUNCTION_CALL ::=
5247 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5249 -- Note: the parser may generate an indexed component node or simply
5250 -- a name node instead of a function call node. The semantic pass must
5251 -- correct this misidentification.
5253 -- N_Function_Call
5254 -- Sloc points to first token of name or prefix
5255 -- Name (Node2) stores name or prefix
5256 -- Parameter_Associations (List3) (set to No_List if no
5257 -- actual parameter part)
5258 -- First_Named_Actual (Node4-Sem)
5259 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5260 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5261 -- Do_Tag_Check (Flag13-Sem)
5262 -- No_Elaboration_Check (Flag14-Sem)
5263 -- ABE_Is_Certain (Flag18-Sem)
5264 -- plus fields for expression
5266 --------------------------------
5267 -- 6.4 Actual Parameter Part --
5268 --------------------------------
5270 -- ACTUAL_PARAMETER_PART ::=
5271 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5273 --------------------------------
5274 -- 6.4 Parameter Association --
5275 --------------------------------
5277 -- PARAMETER_ASSOCIATION ::=
5278 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5280 -- Note: the N_Parameter_Association node is built only if a formal
5281 -- parameter selector name is present, otherwise the parameter
5282 -- association appears in the tree simply as the node for the
5283 -- explicit actual parameter.
5285 -- N_Parameter_Association
5286 -- Sloc points to formal parameter
5287 -- Selector_Name (Node2) (always non-Empty)
5288 -- Explicit_Actual_Parameter (Node3)
5289 -- Next_Named_Actual (Node4-Sem)
5290 -- Is_Accessibility_Actual (Flag13-Sem)
5292 ---------------------------
5293 -- 6.4 Actual Parameter --
5294 ---------------------------
5296 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5298 ---------------------------
5299 -- 6.5 Return Statement --
5300 ---------------------------
5302 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5304 -- EXTENDED_RETURN_STATEMENT ::=
5305 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5306 -- [:= EXPRESSION] [do
5307 -- HANDLED_SEQUENCE_OF_STATEMENTS
5308 -- end return];
5310 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5312 -- The term "return statement" is defined in 6.5 to mean either a
5313 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5314 -- the use of this term, since it used to mean someting else in earlier
5315 -- versions of Ada.
5317 -- N_Simple_Return_Statement
5318 -- Sloc points to RETURN
5319 -- Return_Statement_Entity (Node5-Sem)
5320 -- Expression (Node3) (set to Empty if no expression present)
5321 -- Storage_Pool (Node1-Sem)
5322 -- Procedure_To_Call (Node2-Sem)
5323 -- Do_Tag_Check (Flag13-Sem)
5324 -- By_Ref (Flag5-Sem)
5325 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5327 -- Note: Return_Statement_Entity points to an E_Return_Statement
5329 -- If a range check is required, then Do_Range_Check is set on the
5330 -- Expression. The check is against the return subtype of the function.
5332 -- N_Extended_Return_Statement
5333 -- Sloc points to RETURN
5334 -- Return_Statement_Entity (Node5-Sem)
5335 -- Return_Object_Declarations (List3)
5336 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5337 -- Storage_Pool (Node1-Sem)
5338 -- Procedure_To_Call (Node2-Sem)
5339 -- Do_Tag_Check (Flag13-Sem)
5340 -- By_Ref (Flag5-Sem)
5342 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5344 -- Note that Return_Object_Declarations is a list containing the
5345 -- N_Object_Declaration -- see comment on this field above.
5347 -- The declared object will have Is_Return_Object = True.
5349 -- There is no such syntactic category as return_object_declaration
5350 -- in the RM. Return_Object_Declarations represents this portion of
5351 -- the syntax for EXTENDED_RETURN_STATEMENT:
5352 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5353 -- [:= EXPRESSION]
5355 -- There are two entities associated with an extended_return_statement:
5356 -- the Return_Statement_Entity represents the statement itself,
5357 -- and the Defining_Identifier of the Object_Declaration in
5358 -- Return_Object_Declarations represents the object being
5359 -- returned. N_Simple_Return_Statement has only the former.
5361 ------------------------------
5362 -- 7.1 Package Declaration --
5363 ------------------------------
5365 -- PACKAGE_DECLARATION ::=
5366 -- PACKAGE_SPECIFICATION;
5368 -- Note: the activation chain entity for a package spec is used for
5369 -- all tasks declared in the package spec, or in the package body.
5371 -- N_Package_Declaration
5372 -- Sloc points to PACKAGE
5373 -- Specification (Node1)
5374 -- Corresponding_Body (Node5-Sem)
5375 -- Parent_Spec (Node4-Sem)
5376 -- Activation_Chain_Entity (Node3-Sem)
5378 --------------------------------
5379 -- 7.1 Package Specification --
5380 --------------------------------
5382 -- PACKAGE_SPECIFICATION ::=
5383 -- package DEFINING_PROGRAM_UNIT_NAME
5384 -- [ASPECT_SPECIFICATIONS]
5385 -- is
5386 -- {BASIC_DECLARATIVE_ITEM}
5387 -- [private
5388 -- {BASIC_DECLARATIVE_ITEM}]
5389 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5391 -- N_Package_Specification
5392 -- Sloc points to PACKAGE
5393 -- Defining_Unit_Name (Node1)
5394 -- Visible_Declarations (List2)
5395 -- Private_Declarations (List3) (set to No_List if no private
5396 -- part present)
5397 -- End_Label (Node4)
5398 -- Generic_Parent (Node5-Sem)
5399 -- Limited_View_Installed (Flag18-Sem)
5401 -----------------------
5402 -- 7.1 Package Body --
5403 -----------------------
5405 -- PACKAGE_BODY ::=
5406 -- package body DEFINING_PROGRAM_UNIT_NAME
5407 -- [ASPECT_SPECIFICATIONS]
5408 -- is
5409 -- DECLARATIVE_PART
5410 -- [begin
5411 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5412 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5414 -- N_Package_Body
5415 -- Sloc points to PACKAGE
5416 -- Defining_Unit_Name (Node1)
5417 -- Declarations (List2)
5418 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5419 -- Corresponding_Spec (Node5-Sem)
5420 -- Was_Originally_Stub (Flag13-Sem)
5422 -- Note: if a source level package does not contain a handled sequence
5423 -- of statements, then the parser supplies a dummy one with a null
5424 -- sequence of statements. Comes_From_Source will be False in this
5425 -- constructed sequence. The reason we need this is for the End_Label
5426 -- field in the HSS.
5428 -----------------------------------
5429 -- 7.4 Private Type Declaration --
5430 -----------------------------------
5432 -- PRIVATE_TYPE_DECLARATION ::=
5433 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5434 -- is [[abstract] tagged] [limited] private
5435 -- [ASPECT_SPECIFICATIONS];
5437 -- Note: TAGGED is not permitted in Ada 83 mode
5439 -- N_Private_Type_Declaration
5440 -- Sloc points to TYPE
5441 -- Defining_Identifier (Node1)
5442 -- Discriminant_Specifications (List4) (set to No_List if no
5443 -- discriminant part)
5444 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5445 -- Abstract_Present (Flag4)
5446 -- Tagged_Present (Flag15)
5447 -- Limited_Present (Flag17)
5449 ----------------------------------------
5450 -- 7.4 Private Extension Declaration --
5451 ----------------------------------------
5453 -- PRIVATE_EXTENSION_DECLARATION ::=
5454 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5455 -- [abstract] [limited | synchronized]
5456 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5457 -- with private [ASPECT_SPECIFICATIONS];
5459 -- Note: LIMITED, and private extension declarations are not allowed
5460 -- in Ada 83 mode.
5462 -- N_Private_Extension_Declaration
5463 -- Sloc points to TYPE
5464 -- Defining_Identifier (Node1)
5465 -- Uninitialized_Variable (Node3-Sem)
5466 -- Discriminant_Specifications (List4) (set to No_List if no
5467 -- discriminant part)
5468 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5469 -- Abstract_Present (Flag4)
5470 -- Limited_Present (Flag17)
5471 -- Synchronized_Present (Flag7)
5472 -- Subtype_Indication (Node5)
5473 -- Interface_List (List2) (set to No_List if none)
5475 ---------------------
5476 -- 8.4 Use Clause --
5477 ---------------------
5479 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5481 -----------------------------
5482 -- 8.4 Use Package Clause --
5483 -----------------------------
5485 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5487 -- N_Use_Package_Clause
5488 -- Sloc points to USE
5489 -- Names (List2)
5490 -- Next_Use_Clause (Node3-Sem)
5491 -- Hidden_By_Use_Clause (Elist4-Sem)
5493 --------------------------
5494 -- 8.4 Use Type Clause --
5495 --------------------------
5497 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5499 -- Note: use type clause is not permitted in Ada 83 mode
5501 -- Note: the ALL keyword can appear only in Ada 2012 mode
5503 -- N_Use_Type_Clause
5504 -- Sloc points to USE
5505 -- Subtype_Marks (List2)
5506 -- Next_Use_Clause (Node3-Sem)
5507 -- Hidden_By_Use_Clause (Elist4-Sem)
5508 -- Used_Operations (Elist5-Sem)
5509 -- All_Present (Flag15)
5511 -------------------------------
5512 -- 8.5 Renaming Declaration --
5513 -------------------------------
5515 -- RENAMING_DECLARATION ::=
5516 -- OBJECT_RENAMING_DECLARATION
5517 -- | EXCEPTION_RENAMING_DECLARATION
5518 -- | PACKAGE_RENAMING_DECLARATION
5519 -- | SUBPROGRAM_RENAMING_DECLARATION
5520 -- | GENERIC_RENAMING_DECLARATION
5522 --------------------------------------
5523 -- 8.5 Object Renaming Declaration --
5524 --------------------------------------
5526 -- OBJECT_RENAMING_DECLARATION ::=
5527 -- DEFINING_IDENTIFIER :
5528 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5529 -- [ASPECT_SPECIFICATIONS];
5530 -- | DEFINING_IDENTIFIER :
5531 -- ACCESS_DEFINITION renames object_NAME
5532 -- [ASPECT_SPECIFICATIONS];
5534 -- Note: Access_Definition is an optional field that gives support to
5535 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5536 -- Subtype_Indication field or else the Access_Definition field.
5538 -- N_Object_Renaming_Declaration
5539 -- Sloc points to first identifier
5540 -- Defining_Identifier (Node1)
5541 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5542 -- Subtype_Mark (Node4) (set to Empty if not present)
5543 -- Access_Definition (Node3) (set to Empty if not present)
5544 -- Name (Node2)
5545 -- Corresponding_Generic_Association (Node5-Sem)
5547 -----------------------------------------
5548 -- 8.5 Exception Renaming Declaration --
5549 -----------------------------------------
5551 -- EXCEPTION_RENAMING_DECLARATION ::=
5552 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5553 -- [ASPECT_SPECIFICATIONS];
5555 -- N_Exception_Renaming_Declaration
5556 -- Sloc points to first identifier
5557 -- Defining_Identifier (Node1)
5558 -- Name (Node2)
5560 ---------------------------------------
5561 -- 8.5 Package Renaming Declaration --
5562 ---------------------------------------
5564 -- PACKAGE_RENAMING_DECLARATION ::=
5565 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5566 -- [ASPECT_SPECIFICATIONS];
5568 -- N_Package_Renaming_Declaration
5569 -- Sloc points to PACKAGE
5570 -- Defining_Unit_Name (Node1)
5571 -- Name (Node2)
5572 -- Parent_Spec (Node4-Sem)
5574 ------------------------------------------
5575 -- 8.5 Subprogram Renaming Declaration --
5576 ------------------------------------------
5578 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5579 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5580 -- [ASPECT_SPECIFICATIONS];
5582 -- N_Subprogram_Renaming_Declaration
5583 -- Sloc points to RENAMES
5584 -- Specification (Node1)
5585 -- Name (Node2)
5586 -- Parent_Spec (Node4-Sem)
5587 -- Corresponding_Spec (Node5-Sem)
5588 -- Corresponding_Formal_Spec (Node3-Sem)
5589 -- From_Default (Flag6-Sem)
5591 -----------------------------------------
5592 -- 8.5.5 Generic Renaming Declaration --
5593 -----------------------------------------
5595 -- GENERIC_RENAMING_DECLARATION ::=
5596 -- generic package DEFINING_PROGRAM_UNIT_NAME
5597 -- renames generic_package_NAME
5598 -- [ASPECT_SPECIFICATIONS];
5599 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5600 -- renames generic_procedure_NAME
5601 -- [ASPECT_SPECIFICATIONS];
5602 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5603 -- renames generic_function_NAME
5604 -- [ASPECT_SPECIFICATIONS];
5606 -- N_Generic_Package_Renaming_Declaration
5607 -- Sloc points to GENERIC
5608 -- Defining_Unit_Name (Node1)
5609 -- Name (Node2)
5610 -- Parent_Spec (Node4-Sem)
5612 -- N_Generic_Procedure_Renaming_Declaration
5613 -- Sloc points to GENERIC
5614 -- Defining_Unit_Name (Node1)
5615 -- Name (Node2)
5616 -- Parent_Spec (Node4-Sem)
5618 -- N_Generic_Function_Renaming_Declaration
5619 -- Sloc points to GENERIC
5620 -- Defining_Unit_Name (Node1)
5621 -- Name (Node2)
5622 -- Parent_Spec (Node4-Sem)
5624 --------------------------------
5625 -- 9.1 Task Type Declaration --
5626 --------------------------------
5628 -- TASK_TYPE_DECLARATION ::=
5629 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5630 -- [ASPECT_SPECIFICATIONS]
5631 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5633 -- N_Task_Type_Declaration
5634 -- Sloc points to TASK
5635 -- Defining_Identifier (Node1)
5636 -- Discriminant_Specifications (List4) (set to No_List if no
5637 -- discriminant part)
5638 -- Interface_List (List2) (set to No_List if none)
5639 -- Task_Definition (Node3) (set to Empty if not present)
5640 -- Corresponding_Body (Node5-Sem)
5642 ----------------------------------
5643 -- 9.1 Single Task Declaration --
5644 ----------------------------------
5646 -- SINGLE_TASK_DECLARATION ::=
5647 -- task DEFINING_IDENTIFIER
5648 -- [ASPECT_SPECIFICATIONS]
5649 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5651 -- N_Single_Task_Declaration
5652 -- Sloc points to TASK
5653 -- Defining_Identifier (Node1)
5654 -- Interface_List (List2) (set to No_List if none)
5655 -- Task_Definition (Node3) (set to Empty if not present)
5657 --------------------------
5658 -- 9.1 Task Definition --
5659 --------------------------
5661 -- TASK_DEFINITION ::=
5662 -- {TASK_ITEM}
5663 -- [private
5664 -- {TASK_ITEM}]
5665 -- end [task_IDENTIFIER]
5667 -- Note: as a result of semantic analysis, the list of task items can
5668 -- include implicit type declarations resulting from entry families.
5670 -- N_Task_Definition
5671 -- Sloc points to first token of task definition
5672 -- Visible_Declarations (List2)
5673 -- Private_Declarations (List3) (set to No_List if no private part)
5674 -- End_Label (Node4)
5675 -- Has_Storage_Size_Pragma (Flag5-Sem)
5676 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5678 --------------------
5679 -- 9.1 Task Item --
5680 --------------------
5682 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5684 --------------------
5685 -- 9.1 Task Body --
5686 --------------------
5688 -- TASK_BODY ::=
5689 -- task body task_DEFINING_IDENTIFIER
5690 -- [ASPECT_SPECIFICATIONS]
5691 -- is
5692 -- DECLARATIVE_PART
5693 -- begin
5694 -- HANDLED_SEQUENCE_OF_STATEMENTS
5695 -- end [task_IDENTIFIER];
5697 -- Gigi restriction: This node never appears
5699 -- N_Task_Body
5700 -- Sloc points to TASK
5701 -- Defining_Identifier (Node1)
5702 -- Declarations (List2)
5703 -- Handled_Statement_Sequence (Node4)
5704 -- Is_Task_Master (Flag5-Sem)
5705 -- Activation_Chain_Entity (Node3-Sem)
5706 -- Corresponding_Spec (Node5-Sem)
5707 -- Was_Originally_Stub (Flag13-Sem)
5709 -------------------------------------
5710 -- 9.4 Protected Type Declaration --
5711 -------------------------------------
5713 -- PROTECTED_TYPE_DECLARATION ::=
5714 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5715 -- [ASPECT_SPECIFICATIONS]
5716 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5718 -- Note: protected type declarations are not permitted in Ada 83 mode
5720 -- N_Protected_Type_Declaration
5721 -- Sloc points to PROTECTED
5722 -- Defining_Identifier (Node1)
5723 -- Discriminant_Specifications (List4) (set to No_List if no
5724 -- discriminant part)
5725 -- Interface_List (List2) (set to No_List if none)
5726 -- Protected_Definition (Node3)
5727 -- Corresponding_Body (Node5-Sem)
5729 ---------------------------------------
5730 -- 9.4 Single Protected Declaration --
5731 ---------------------------------------
5733 -- SINGLE_PROTECTED_DECLARATION ::=
5734 -- protected DEFINING_IDENTIFIER
5735 -- [ASPECT_SPECIFICATIONS]
5736 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5738 -- Note: single protected declarations are not allowed in Ada 83 mode
5740 -- N_Single_Protected_Declaration
5741 -- Sloc points to PROTECTED
5742 -- Defining_Identifier (Node1)
5743 -- Interface_List (List2) (set to No_List if none)
5744 -- Protected_Definition (Node3)
5746 -------------------------------
5747 -- 9.4 Protected Definition --
5748 -------------------------------
5750 -- PROTECTED_DEFINITION ::=
5751 -- {PROTECTED_OPERATION_DECLARATION}
5752 -- [private
5753 -- {PROTECTED_ELEMENT_DECLARATION}]
5754 -- end [protected_IDENTIFIER]
5756 -- N_Protected_Definition
5757 -- Sloc points to first token of protected definition
5758 -- Visible_Declarations (List2)
5759 -- Private_Declarations (List3) (set to No_List if no private part)
5760 -- End_Label (Node4)
5762 ------------------------------------------
5763 -- 9.4 Protected Operation Declaration --
5764 ------------------------------------------
5766 -- PROTECTED_OPERATION_DECLARATION ::=
5767 -- SUBPROGRAM_DECLARATION
5768 -- | ENTRY_DECLARATION
5769 -- | REPRESENTATION_CLAUSE
5771 ----------------------------------------
5772 -- 9.4 Protected Element Declaration --
5773 ----------------------------------------
5775 -- PROTECTED_ELEMENT_DECLARATION ::=
5776 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5778 -------------------------
5779 -- 9.4 Protected Body --
5780 -------------------------
5782 -- PROTECTED_BODY ::=
5783 -- protected body DEFINING_IDENTIFIER
5784 -- [ASPECT_SPECIFICATIONS];
5785 -- is
5786 -- {PROTECTED_OPERATION_ITEM}
5787 -- end [protected_IDENTIFIER];
5789 -- Note: protected bodies are not allowed in Ada 83 mode
5791 -- Gigi restriction: This node never appears
5793 -- N_Protected_Body
5794 -- Sloc points to PROTECTED
5795 -- Defining_Identifier (Node1)
5796 -- Declarations (List2) protected operation items (and pragmas)
5797 -- End_Label (Node4)
5798 -- Corresponding_Spec (Node5-Sem)
5799 -- Was_Originally_Stub (Flag13-Sem)
5801 -----------------------------------
5802 -- 9.4 Protected Operation Item --
5803 -----------------------------------
5805 -- PROTECTED_OPERATION_ITEM ::=
5806 -- SUBPROGRAM_DECLARATION
5807 -- | SUBPROGRAM_BODY
5808 -- | ENTRY_BODY
5809 -- | REPRESENTATION_CLAUSE
5811 ------------------------------
5812 -- 9.5.2 Entry Declaration --
5813 ------------------------------
5815 -- ENTRY_DECLARATION ::=
5816 -- [[not] overriding]
5817 -- entry DEFINING_IDENTIFIER
5818 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5819 -- [ASPECT_SPECIFICATIONS];
5821 -- N_Entry_Declaration
5822 -- Sloc points to ENTRY
5823 -- Defining_Identifier (Node1)
5824 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5825 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5826 -- Corresponding_Body (Node5-Sem)
5827 -- Must_Override (Flag14) set if overriding indicator present
5828 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5830 -- Note: overriding indicator is an Ada 2005 feature
5832 -----------------------------
5833 -- 9.5.2 Accept statement --
5834 -----------------------------
5836 -- ACCEPT_STATEMENT ::=
5837 -- accept entry_DIRECT_NAME
5838 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5839 -- HANDLED_SEQUENCE_OF_STATEMENTS
5840 -- end [entry_IDENTIFIER]];
5842 -- Gigi restriction: This node never appears
5844 -- Note: there are no explicit declarations allowed in an accept
5845 -- statement. However, the implicit declarations for any statement
5846 -- identifiers (labels and block/loop identifiers) are declarations
5847 -- that belong logically to the accept statement, and that is why
5848 -- there is a Declarations field in this node.
5850 -- N_Accept_Statement
5851 -- Sloc points to ACCEPT
5852 -- Entry_Direct_Name (Node1)
5853 -- Entry_Index (Node5) (set to Empty if not present)
5854 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5855 -- Handled_Statement_Sequence (Node4)
5856 -- Declarations (List2) (set to No_List if no declarations)
5858 ------------------------
5859 -- 9.5.2 Entry Index --
5860 ------------------------
5862 -- ENTRY_INDEX ::= EXPRESSION
5864 -----------------------
5865 -- 9.5.2 Entry Body --
5866 -----------------------
5868 -- ENTRY_BODY ::=
5869 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5870 -- DECLARATIVE_PART
5871 -- begin
5872 -- HANDLED_SEQUENCE_OF_STATEMENTS
5873 -- end [entry_IDENTIFIER];
5875 -- ENTRY_BARRIER ::= when CONDITION
5877 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5878 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5879 -- too full (it would otherwise have too many fields)
5881 -- Gigi restriction: This node never appears
5883 -- N_Entry_Body
5884 -- Sloc points to ENTRY
5885 -- Defining_Identifier (Node1)
5886 -- Entry_Body_Formal_Part (Node5)
5887 -- Declarations (List2)
5888 -- Handled_Statement_Sequence (Node4)
5889 -- Activation_Chain_Entity (Node3-Sem)
5891 -----------------------------------
5892 -- 9.5.2 Entry Body Formal Part --
5893 -----------------------------------
5895 -- ENTRY_BODY_FORMAL_PART ::=
5896 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5898 -- Note that an entry body formal part node is present even if it is
5899 -- empty. This reflects the grammar, in which it is the components of
5900 -- the entry body formal part that are optional, not the entry body
5901 -- formal part itself. Also this means that the barrier condition
5902 -- always has somewhere to be stored.
5904 -- Gigi restriction: This node never appears
5906 -- N_Entry_Body_Formal_Part
5907 -- Sloc points to first token
5908 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5909 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5910 -- Condition (Node1) from entry barrier of entry body
5912 --------------------------
5913 -- 9.5.2 Entry Barrier --
5914 --------------------------
5916 -- ENTRY_BARRIER ::= when CONDITION
5918 --------------------------------------
5919 -- 9.5.2 Entry Index Specification --
5920 --------------------------------------
5922 -- ENTRY_INDEX_SPECIFICATION ::=
5923 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5925 -- Gigi restriction: This node never appears
5927 -- N_Entry_Index_Specification
5928 -- Sloc points to FOR
5929 -- Defining_Identifier (Node1)
5930 -- Discrete_Subtype_Definition (Node4)
5932 ---------------------------------
5933 -- 9.5.3 Entry Call Statement --
5934 ---------------------------------
5936 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5938 -- The parser may generate a procedure call for this construct. The
5939 -- semantic pass must correct this misidentification where needed.
5941 -- Gigi restriction: This node never appears
5943 -- N_Entry_Call_Statement
5944 -- Sloc points to first token of name
5945 -- Name (Node2)
5946 -- Parameter_Associations (List3) (set to No_List if no
5947 -- actual parameter part)
5948 -- First_Named_Actual (Node4-Sem)
5950 ------------------------------
5951 -- 9.5.4 Requeue Statement --
5952 ------------------------------
5954 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5956 -- Note: requeue statements are not permitted in Ada 83 mode
5958 -- Gigi restriction: This node never appears
5960 -- N_Requeue_Statement
5961 -- Sloc points to REQUEUE
5962 -- Name (Node2)
5963 -- Abort_Present (Flag15)
5965 --------------------------
5966 -- 9.6 Delay Statement --
5967 --------------------------
5969 -- DELAY_STATEMENT ::=
5970 -- DELAY_UNTIL_STATEMENT
5971 -- | DELAY_RELATIVE_STATEMENT
5973 --------------------------------
5974 -- 9.6 Delay Until Statement --
5975 --------------------------------
5977 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5979 -- Note: delay until statements are not permitted in Ada 83 mode
5981 -- Gigi restriction: This node never appears
5983 -- N_Delay_Until_Statement
5984 -- Sloc points to DELAY
5985 -- Expression (Node3)
5987 -----------------------------------
5988 -- 9.6 Delay Relative Statement --
5989 -----------------------------------
5991 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5993 -- Gigi restriction: This node never appears
5995 -- N_Delay_Relative_Statement
5996 -- Sloc points to DELAY
5997 -- Expression (Node3)
5999 ---------------------------
6000 -- 9.7 Select Statement --
6001 ---------------------------
6003 -- SELECT_STATEMENT ::=
6004 -- SELECTIVE_ACCEPT
6005 -- | TIMED_ENTRY_CALL
6006 -- | CONDITIONAL_ENTRY_CALL
6007 -- | ASYNCHRONOUS_SELECT
6009 -----------------------------
6010 -- 9.7.1 Selective Accept --
6011 -----------------------------
6013 -- SELECTIVE_ACCEPT ::=
6014 -- select
6015 -- [GUARD]
6016 -- SELECT_ALTERNATIVE
6017 -- {or
6018 -- [GUARD]
6019 -- SELECT_ALTERNATIVE}
6020 -- [else
6021 -- SEQUENCE_OF_STATEMENTS]
6022 -- end select;
6024 -- Gigi restriction: This node never appears
6026 -- Note: the guard expression, if present, appears in the node for
6027 -- the select alternative.
6029 -- N_Selective_Accept
6030 -- Sloc points to SELECT
6031 -- Select_Alternatives (List1)
6032 -- Else_Statements (List4) (set to No_List if no else part)
6034 ------------------
6035 -- 9.7.1 Guard --
6036 ------------------
6038 -- GUARD ::= when CONDITION =>
6040 -- As noted above, the CONDITION that is part of a GUARD is included
6041 -- in the node for the select alternative for convenience.
6043 -------------------------------
6044 -- 9.7.1 Select Alternative --
6045 -------------------------------
6047 -- SELECT_ALTERNATIVE ::=
6048 -- ACCEPT_ALTERNATIVE
6049 -- | DELAY_ALTERNATIVE
6050 -- | TERMINATE_ALTERNATIVE
6052 -------------------------------
6053 -- 9.7.1 Accept Alternative --
6054 -------------------------------
6056 -- ACCEPT_ALTERNATIVE ::=
6057 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6059 -- Gigi restriction: This node never appears
6061 -- N_Accept_Alternative
6062 -- Sloc points to ACCEPT
6063 -- Accept_Statement (Node2)
6064 -- Condition (Node1) from the guard (set to Empty if no guard present)
6065 -- Statements (List3) (set to Empty_List if no statements)
6066 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6067 -- Accept_Handler_Records (List5-Sem)
6069 ------------------------------
6070 -- 9.7.1 Delay Alternative --
6071 ------------------------------
6073 -- DELAY_ALTERNATIVE ::=
6074 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6076 -- Gigi restriction: This node never appears
6078 -- N_Delay_Alternative
6079 -- Sloc points to DELAY
6080 -- Delay_Statement (Node2)
6081 -- Condition (Node1) from the guard (set to Empty if no guard present)
6082 -- Statements (List3) (set to Empty_List if no statements)
6083 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6085 ----------------------------------
6086 -- 9.7.1 Terminate Alternative --
6087 ----------------------------------
6089 -- TERMINATE_ALTERNATIVE ::= terminate;
6091 -- Gigi restriction: This node never appears
6093 -- N_Terminate_Alternative
6094 -- Sloc points to TERMINATE
6095 -- Condition (Node1) from the guard (set to Empty if no guard present)
6096 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6097 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6099 -----------------------------
6100 -- 9.7.2 Timed Entry Call --
6101 -----------------------------
6103 -- TIMED_ENTRY_CALL ::=
6104 -- select
6105 -- ENTRY_CALL_ALTERNATIVE
6106 -- or
6107 -- DELAY_ALTERNATIVE
6108 -- end select;
6110 -- Gigi restriction: This node never appears
6112 -- N_Timed_Entry_Call
6113 -- Sloc points to SELECT
6114 -- Entry_Call_Alternative (Node1)
6115 -- Delay_Alternative (Node4)
6117 -----------------------------------
6118 -- 9.7.2 Entry Call Alternative --
6119 -----------------------------------
6121 -- ENTRY_CALL_ALTERNATIVE ::=
6122 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6124 -- PROCEDURE_OR_ENTRY_CALL ::=
6125 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6127 -- Gigi restriction: This node never appears
6129 -- N_Entry_Call_Alternative
6130 -- Sloc points to first token of entry call statement
6131 -- Entry_Call_Statement (Node1)
6132 -- Statements (List3) (set to Empty_List if no statements)
6133 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6135 -----------------------------------
6136 -- 9.7.3 Conditional Entry Call --
6137 -----------------------------------
6139 -- CONDITIONAL_ENTRY_CALL ::=
6140 -- select
6141 -- ENTRY_CALL_ALTERNATIVE
6142 -- else
6143 -- SEQUENCE_OF_STATEMENTS
6144 -- end select;
6146 -- Gigi restriction: This node never appears
6148 -- N_Conditional_Entry_Call
6149 -- Sloc points to SELECT
6150 -- Entry_Call_Alternative (Node1)
6151 -- Else_Statements (List4)
6153 --------------------------------
6154 -- 9.7.4 Asynchronous Select --
6155 --------------------------------
6157 -- ASYNCHRONOUS_SELECT ::=
6158 -- select
6159 -- TRIGGERING_ALTERNATIVE
6160 -- then abort
6161 -- ABORTABLE_PART
6162 -- end select;
6164 -- Note: asynchronous select is not permitted in Ada 83 mode
6166 -- Gigi restriction: This node never appears
6168 -- N_Asynchronous_Select
6169 -- Sloc points to SELECT
6170 -- Triggering_Alternative (Node1)
6171 -- Abortable_Part (Node2)
6173 -----------------------------------
6174 -- 9.7.4 Triggering Alternative --
6175 -----------------------------------
6177 -- TRIGGERING_ALTERNATIVE ::=
6178 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6180 -- Gigi restriction: This node never appears
6182 -- N_Triggering_Alternative
6183 -- Sloc points to first token of triggering statement
6184 -- Triggering_Statement (Node1)
6185 -- Statements (List3) (set to Empty_List if no statements)
6186 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6188 ---------------------------------
6189 -- 9.7.4 Triggering Statement --
6190 ---------------------------------
6192 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6194 ---------------------------
6195 -- 9.7.4 Abortable Part --
6196 ---------------------------
6198 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6200 -- Gigi restriction: This node never appears
6202 -- N_Abortable_Part
6203 -- Sloc points to ABORT
6204 -- Statements (List3)
6206 --------------------------
6207 -- 9.8 Abort Statement --
6208 --------------------------
6210 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6212 -- Gigi restriction: This node never appears
6214 -- N_Abort_Statement
6215 -- Sloc points to ABORT
6216 -- Names (List2)
6218 -------------------------
6219 -- 10.1.1 Compilation --
6220 -------------------------
6222 -- COMPILATION ::= {COMPILATION_UNIT}
6224 -- There is no explicit node in the tree for a compilation, since in
6225 -- general the compiler is processing only a single compilation unit
6226 -- at a time. It is possible to parse multiple units in syntax check
6227 -- only mode, but the trees are discarded in that case.
6229 ------------------------------
6230 -- 10.1.1 Compilation Unit --
6231 ------------------------------
6233 -- COMPILATION_UNIT ::=
6234 -- CONTEXT_CLAUSE LIBRARY_ITEM
6235 -- | CONTEXT_CLAUSE SUBUNIT
6237 -- The N_Compilation_Unit node itself represents the above syntax.
6238 -- However, there are two additional items not reflected in the above
6239 -- syntax. First we have the global declarations that are added by the
6240 -- code generator. These are outer level declarations (so they cannot
6241 -- be represented as being inside the units). An example is the wrapper
6242 -- subprograms that are created to do ABE checking. As always a list of
6243 -- declarations can contain actions as well (i.e. statements), and such
6244 -- statements are executed as part of the elaboration of the unit. Note
6245 -- that all such declarations are elaborated before the library unit.
6247 -- Similarly, certain actions need to be elaborated at the completion
6248 -- of elaboration of the library unit (notably the statement that sets
6249 -- the Boolean flag indicating that elaboration is complete).
6251 -- The third item not reflected in the syntax is pragmas that appear
6252 -- after the compilation unit. As always pragmas are a problem since
6253 -- they are not part of the formal syntax, but can be stuck into the
6254 -- source following a set of ad hoc rules, and we have to find an ad
6255 -- hoc way of sticking them into the tree. For pragmas that appear
6256 -- before the library unit, we just consider them to be part of the
6257 -- context clause, and pragmas can appear in the Context_Items list
6258 -- of the compilation unit. However, pragmas can also appear after
6259 -- the library item.
6261 -- To deal with all these problems, we create an auxiliary node for
6262 -- a compilation unit, referenced from the N_Compilation_Unit node,
6263 -- that contains these items.
6265 -- N_Compilation_Unit
6266 -- Sloc points to first token of defining unit name
6267 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6268 -- Context_Items (List1) context items and pragmas preceding unit
6269 -- Private_Present (Flag15) set if library unit has private keyword
6270 -- Unit (Node2) library item or subunit
6271 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6272 -- Has_No_Elaboration_Code (Flag17-Sem)
6273 -- Body_Required (Flag13-Sem) set for spec if body is required
6274 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6275 -- Context_Pending (Flag16-Sem)
6276 -- First_Inlined_Subprogram (Node3-Sem)
6277 -- Has_Pragma_Suppress_All (Flag14-Sem)
6279 -- N_Compilation_Unit_Aux
6280 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6281 -- Declarations (List2) (set to No_List if no global declarations)
6282 -- Actions (List1) (set to No_List if no actions)
6283 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6284 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6285 -- Default_Storage_Pool (Node3-Sem)
6287 --------------------------
6288 -- 10.1.1 Library Item --
6289 --------------------------
6291 -- LIBRARY_ITEM ::=
6292 -- [private] LIBRARY_UNIT_DECLARATION
6293 -- | LIBRARY_UNIT_BODY
6294 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6296 -- Note: PRIVATE is not allowed in Ada 83 mode
6298 -- There is no explicit node in the tree for library item, instead
6299 -- the declaration or body, and the flag for private if present,
6300 -- appear in the N_Compilation_Unit node.
6302 --------------------------------------
6303 -- 10.1.1 Library Unit Declaration --
6304 --------------------------------------
6306 -- LIBRARY_UNIT_DECLARATION ::=
6307 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6308 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6310 -----------------------------------------------
6311 -- 10.1.1 Library Unit Renaming Declaration --
6312 -----------------------------------------------
6314 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6315 -- PACKAGE_RENAMING_DECLARATION
6316 -- | GENERIC_RENAMING_DECLARATION
6317 -- | SUBPROGRAM_RENAMING_DECLARATION
6319 -------------------------------
6320 -- 10.1.1 Library unit body --
6321 -------------------------------
6323 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6325 ------------------------------
6326 -- 10.1.1 Parent Unit Name --
6327 ------------------------------
6329 -- PARENT_UNIT_NAME ::= NAME
6331 ----------------------------
6332 -- 10.1.2 Context clause --
6333 ----------------------------
6335 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6337 -- The context clause can include pragmas, and any pragmas that appear
6338 -- before the context clause proper (i.e. all configuration pragmas,
6339 -- also appear at the front of this list).
6341 --------------------------
6342 -- 10.1.2 Context_Item --
6343 --------------------------
6345 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6347 -------------------------
6348 -- 10.1.2 With clause --
6349 -------------------------
6351 -- WITH_CLAUSE ::=
6352 -- with library_unit_NAME {,library_unit_NAME};
6354 -- A separate With clause is built for each name, so that we have
6355 -- a Corresponding_Spec field for each with'ed spec. The flags
6356 -- First_Name and Last_Name are used to reconstruct the exact
6357 -- source form. When a list of names appears in one with clause,
6358 -- the first name in the list has First_Name set, and the last
6359 -- has Last_Name set. If the with clause has only one name, then
6360 -- both of the flags First_Name and Last_Name are set in this name.
6362 -- Note: in the case of implicit with's that are installed by the
6363 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6364 -- set to Standard_Location, but it is incorrect to test the Sloc
6365 -- to find out if a with clause is implicit, test the flag instead.
6367 -- N_With_Clause
6368 -- Sloc points to first token of library unit name
6369 -- Withed_Body (Node1-Sem)
6370 -- Name (Node2)
6371 -- Next_Implicit_With (Node3-Sem)
6372 -- Library_Unit (Node4-Sem)
6373 -- Corresponding_Spec (Node5-Sem)
6374 -- First_Name (Flag5) (set to True if first name or only one name)
6375 -- Last_Name (Flag6) (set to True if last name or only one name)
6376 -- Context_Installed (Flag13-Sem)
6377 -- Elaborate_Present (Flag4-Sem)
6378 -- Elaborate_All_Present (Flag14-Sem)
6379 -- Elaborate_All_Desirable (Flag9-Sem)
6380 -- Elaborate_Desirable (Flag11-Sem)
6381 -- Private_Present (Flag15) set if with_clause has private keyword
6382 -- Implicit_With (Flag16-Sem)
6383 -- Implicit_With_From_Instantiation (Flag12-Sem)
6384 -- Limited_Present (Flag17) set if LIMITED is present
6385 -- Limited_View_Installed (Flag18-Sem)
6386 -- Unreferenced_In_Spec (Flag7-Sem)
6387 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6389 -- Note: Limited_Present and Limited_View_Installed are used to support
6390 -- the implementation of Ada 2005 (AI-50217).
6392 -- Similarly, Private_Present is used to support the implementation of
6393 -- Ada 2005 (AI-50262).
6395 -- Note: if the WITH clause refers to a standard library unit, then a
6396 -- limited with clause is changed into a normal with clause, because we
6397 -- are not prepared to deal with limited with in the context of Rtsfind.
6398 -- So in this case, the Limited_Present flag will be False in the final
6399 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6400 -- ASIS the flag will remain set in this situation.
6402 ----------------------
6403 -- With_Type clause --
6404 ----------------------
6406 -- This is a GNAT extension, used to implement mutually recursive
6407 -- types declared in different packages.
6409 -- Note: this is now obsolete. The functionality of this construct
6410 -- is now implemented by the Ada 2005 limited_with_clause.
6412 ---------------------
6413 -- 10.2 Body stub --
6414 ---------------------
6416 -- BODY_STUB ::=
6417 -- SUBPROGRAM_BODY_STUB
6418 -- | PACKAGE_BODY_STUB
6419 -- | TASK_BODY_STUB
6420 -- | PROTECTED_BODY_STUB
6422 ----------------------------------
6423 -- 10.1.3 Subprogram Body Stub --
6424 ----------------------------------
6426 -- SUBPROGRAM_BODY_STUB ::=
6427 -- SUBPROGRAM_SPECIFICATION is separate
6428 -- [ASPECT_SPECIFICATION];
6430 -- N_Subprogram_Body_Stub
6431 -- Sloc points to FUNCTION or PROCEDURE
6432 -- Specification (Node1)
6433 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6434 -- Library_Unit (Node4-Sem) points to the subunit
6435 -- Corresponding_Body (Node5-Sem)
6437 -------------------------------
6438 -- 10.1.3 Package Body Stub --
6439 -------------------------------
6441 -- PACKAGE_BODY_STUB ::=
6442 -- package body DEFINING_IDENTIFIER is separate
6443 -- [ASPECT_SPECIFICATION];
6445 -- N_Package_Body_Stub
6446 -- Sloc points to PACKAGE
6447 -- Defining_Identifier (Node1)
6448 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6449 -- Library_Unit (Node4-Sem) points to the subunit
6450 -- Corresponding_Body (Node5-Sem)
6452 ----------------------------
6453 -- 10.1.3 Task Body Stub --
6454 ----------------------------
6456 -- TASK_BODY_STUB ::=
6457 -- task body DEFINING_IDENTIFIER is separate
6458 -- [ASPECT_SPECIFICATION];
6460 -- N_Task_Body_Stub
6461 -- Sloc points to TASK
6462 -- Defining_Identifier (Node1)
6463 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6464 -- Library_Unit (Node4-Sem) points to the subunit
6465 -- Corresponding_Body (Node5-Sem)
6467 ---------------------------------
6468 -- 10.1.3 Protected Body Stub --
6469 ---------------------------------
6471 -- PROTECTED_BODY_STUB ::=
6472 -- protected body DEFINING_IDENTIFIER is separate
6473 -- [ASPECT_SPECIFICATION];
6475 -- Note: protected body stubs are not allowed in Ada 83 mode
6477 -- N_Protected_Body_Stub
6478 -- Sloc points to PROTECTED
6479 -- Defining_Identifier (Node1)
6480 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6481 -- Library_Unit (Node4-Sem) points to the subunit
6482 -- Corresponding_Body (Node5-Sem)
6484 ---------------------
6485 -- 10.1.3 Subunit --
6486 ---------------------
6488 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6490 -- N_Subunit
6491 -- Sloc points to SEPARATE
6492 -- Name (Node2) is the name of the parent unit
6493 -- Proper_Body (Node1) is the subunit body
6494 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6496 ---------------------------------
6497 -- 11.1 Exception Declaration --
6498 ---------------------------------
6500 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6501 -- [ASPECT_SPECIFICATIONS];
6503 -- For consistency with object declarations etc., the parser converts
6504 -- the case of multiple identifiers being declared to a series of
6505 -- declarations in which the expression is copied, using the More_Ids
6506 -- and Prev_Ids flags to remember the source form as described in the
6507 -- section on "Handling of Defining Identifier Lists".
6509 -- N_Exception_Declaration
6510 -- Sloc points to EXCEPTION
6511 -- Defining_Identifier (Node1)
6512 -- Expression (Node3-Sem)
6513 -- Renaming_Exception (Node2-Sem)
6514 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6515 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6517 ------------------------------------------
6518 -- 11.2 Handled Sequence Of Statements --
6519 ------------------------------------------
6521 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6522 -- SEQUENCE_OF_STATEMENTS
6523 -- [exception
6524 -- EXCEPTION_HANDLER
6525 -- {EXCEPTION_HANDLER}]
6526 -- [at end
6527 -- cleanup_procedure_call (param, param, param, ...);]
6529 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6530 -- used only internally currently, but is considered to be syntactic.
6531 -- At the moment, the only cleanup action allowed is a single call to
6532 -- a parameterless procedure, and the Identifier field of the node is
6533 -- the procedure to be called. The cleanup action occurs whenever the
6534 -- sequence of statements is left for any reason. The possible reasons
6535 -- are:
6536 -- 1. reaching the end of the sequence
6537 -- 2. exit, return, or goto
6538 -- 3. exception or abort
6539 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6540 -- entirely in the back end. In this case, a handled sequence of
6541 -- statements with an "at end" cannot also have exception handlers.
6542 -- For other back ends, such as gcc with SJLJ and .NET, the
6543 -- implementation is split between the front end and back end; the front
6544 -- end implements 3, and the back end implements 1 and 2. In this case,
6545 -- if there is an "at end", the front end inserts the appropriate
6546 -- exception handler, and this handler takes precedence over "at end"
6547 -- in case of exception.
6549 -- The inserted exception handler is of the form:
6551 -- when all others =>
6552 -- cleanup;
6553 -- raise;
6555 -- where cleanup is the procedure to be called. The reason we do this is
6556 -- so that the front end can handle the necessary entries in the
6557 -- exception tables, and other exception handler actions required as
6558 -- part of the normal handling for exception handlers.
6560 -- The AT END cleanup handler protects only the sequence of statements
6561 -- (not the associated declarations of the parent), just like exception
6562 -- handlers. The big difference is that the cleanup procedure is called
6563 -- on either a normal or an abnormal exit from the statement sequence.
6565 -- Note: the list of Exception_Handlers can contain pragmas as well
6566 -- as actual handlers. In practice these pragmas can only occur at
6567 -- the start of the list, since any pragmas occurring later on will
6568 -- be included in the statement list of the corresponding handler.
6570 -- Note: although in the Ada syntax, the sequence of statements in
6571 -- a handled sequence of statements can only contain statements, we
6572 -- allow free mixing of declarations and statements in the resulting
6573 -- expanded tree. This is for example used to deal with the case of
6574 -- a cleanup procedure that must handle declarations as well as the
6575 -- statements of a block.
6577 -- Note: the cleanup_procedure_call does not go through the common
6578 -- processing for calls, which in particular means that it will not be
6579 -- automatically inlined in all cases, even though the procedure to be
6580 -- called is marked inline. More specifically, if the procedure comes
6581 -- from another unit than the main source unit, for example a run-time
6582 -- unit, then it needs to be manually added to the list of bodies to be
6583 -- inlined by invoking Add_Inlined_Body on it.
6585 -- N_Handled_Sequence_Of_Statements
6586 -- Sloc points to first token of first statement
6587 -- Statements (List3)
6588 -- End_Label (Node4) (set to Empty if expander generated)
6589 -- Exception_Handlers (List5) (set to No_List if none present)
6590 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6591 -- First_Real_Statement (Node2-Sem)
6593 -- Note: the parent always contains a Declarations field which contains
6594 -- declarations associated with the handled sequence of statements. This
6595 -- is true even in the case of an accept statement (see description of
6596 -- the N_Accept_Statement node).
6598 -- End_Label refers to the containing construct
6600 -----------------------------
6601 -- 11.2 Exception Handler --
6602 -----------------------------
6604 -- EXCEPTION_HANDLER ::=
6605 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6606 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6607 -- SEQUENCE_OF_STATEMENTS
6609 -- Note: choice parameter specification is not allowed in Ada 83 mode
6611 -- N_Exception_Handler
6612 -- Sloc points to WHEN
6613 -- Choice_Parameter (Node2) (set to Empty if not present)
6614 -- Exception_Choices (List4)
6615 -- Statements (List3)
6616 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6617 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6618 -- Local_Raise_Not_OK (Flag7-Sem)
6619 -- Has_Local_Raise (Flag8-Sem)
6621 ------------------------------------------
6622 -- 11.2 Choice parameter specification --
6623 ------------------------------------------
6625 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6627 ----------------------------
6628 -- 11.2 Exception Choice --
6629 ----------------------------
6631 -- EXCEPTION_CHOICE ::= exception_NAME | others
6633 -- Except in the case of OTHERS, no explicit node appears in the tree
6634 -- for exception choice. Instead the exception name appears directly.
6635 -- An OTHERS choice is represented by a N_Others_Choice node (see
6636 -- section 3.8.1.
6638 -- Note: for the exception choice created for an at end handler, the
6639 -- exception choice is an N_Others_Choice node with All_Others set.
6641 ---------------------------
6642 -- 11.3 Raise Statement --
6643 ---------------------------
6645 -- RAISE_STATEMENT ::= raise [exception_NAME];
6647 -- In Ada 2005, we have
6649 -- RAISE_STATEMENT ::=
6650 -- raise; | raise exception_NAME [with string_EXPRESSION];
6652 -- N_Raise_Statement
6653 -- Sloc points to RAISE
6654 -- Name (Node2) (set to Empty if no exception name present)
6655 -- Expression (Node3) (set to Empty if no expression present)
6656 -- From_At_End (Flag4-Sem)
6658 ----------------------------
6659 -- 11.3 Raise Expression --
6660 ----------------------------
6662 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6664 -- N_Raise_Expression
6665 -- Sloc points to RAISE
6666 -- Name (Node2) (always present)
6667 -- Expression (Node3) (set to Empty if no expression present)
6668 -- Convert_To_Return_False (Flag13-Sem)
6669 -- plus fields for expression
6671 -------------------------------
6672 -- 12.1 Generic Declaration --
6673 -------------------------------
6675 -- GENERIC_DECLARATION ::=
6676 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6678 ------------------------------------------
6679 -- 12.1 Generic Subprogram Declaration --
6680 ------------------------------------------
6682 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6683 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6684 -- [ASPECT_SPECIFICATIONS];
6686 -- Note: Generic_Formal_Declarations can include pragmas
6688 -- N_Generic_Subprogram_Declaration
6689 -- Sloc points to GENERIC
6690 -- Specification (Node1) subprogram specification
6691 -- Corresponding_Body (Node5-Sem)
6692 -- Generic_Formal_Declarations (List2) from generic formal part
6693 -- Parent_Spec (Node4-Sem)
6695 ---------------------------------------
6696 -- 12.1 Generic Package Declaration --
6697 ---------------------------------------
6699 -- GENERIC_PACKAGE_DECLARATION ::=
6700 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6701 -- [ASPECT_SPECIFICATIONS];
6703 -- Note: when we do generics right, the Activation_Chain_Entity entry
6704 -- for this node can be removed (since the expander won't see generic
6705 -- units any more)???.
6707 -- Note: Generic_Formal_Declarations can include pragmas
6709 -- N_Generic_Package_Declaration
6710 -- Sloc points to GENERIC
6711 -- Specification (Node1) package specification
6712 -- Corresponding_Body (Node5-Sem)
6713 -- Generic_Formal_Declarations (List2) from generic formal part
6714 -- Parent_Spec (Node4-Sem)
6715 -- Activation_Chain_Entity (Node3-Sem)
6717 -------------------------------
6718 -- 12.1 Generic Formal Part --
6719 -------------------------------
6721 -- GENERIC_FORMAL_PART ::=
6722 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6724 ------------------------------------------------
6725 -- 12.1 Generic Formal Parameter Declaration --
6726 ------------------------------------------------
6728 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6729 -- FORMAL_OBJECT_DECLARATION
6730 -- | FORMAL_TYPE_DECLARATION
6731 -- | FORMAL_SUBPROGRAM_DECLARATION
6732 -- | FORMAL_PACKAGE_DECLARATION
6734 ---------------------------------
6735 -- 12.3 Generic Instantiation --
6736 ---------------------------------
6738 -- GENERIC_INSTANTIATION ::=
6739 -- package DEFINING_PROGRAM_UNIT_NAME is
6740 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6741 -- [ASPECT_SPECIFICATIONS];
6742 -- | [[not] overriding]
6743 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6744 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6745 -- [ASPECT_SPECIFICATIONS];
6746 -- | [[not] overriding]
6747 -- function DEFINING_DESIGNATOR is
6748 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6749 -- [ASPECT_SPECIFICATIONS];
6751 -- N_Package_Instantiation
6752 -- Sloc points to PACKAGE
6753 -- Defining_Unit_Name (Node1)
6754 -- Name (Node2)
6755 -- Generic_Associations (List3) (set to No_List if no
6756 -- generic actual part)
6757 -- Parent_Spec (Node4-Sem)
6758 -- Instance_Spec (Node5-Sem)
6759 -- ABE_Is_Certain (Flag18-Sem)
6761 -- N_Procedure_Instantiation
6762 -- Sloc points to PROCEDURE
6763 -- Defining_Unit_Name (Node1)
6764 -- Name (Node2)
6765 -- Parent_Spec (Node4-Sem)
6766 -- Generic_Associations (List3) (set to No_List if no
6767 -- generic actual part)
6768 -- Instance_Spec (Node5-Sem)
6769 -- Must_Override (Flag14) set if overriding indicator present
6770 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6771 -- ABE_Is_Certain (Flag18-Sem)
6773 -- N_Function_Instantiation
6774 -- Sloc points to FUNCTION
6775 -- Defining_Unit_Name (Node1)
6776 -- Name (Node2)
6777 -- Generic_Associations (List3) (set to No_List if no
6778 -- generic actual part)
6779 -- Parent_Spec (Node4-Sem)
6780 -- Instance_Spec (Node5-Sem)
6781 -- Must_Override (Flag14) set if overriding indicator present
6782 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6783 -- ABE_Is_Certain (Flag18-Sem)
6785 -- Note: overriding indicator is an Ada 2005 feature
6787 -------------------------------
6788 -- 12.3 Generic Actual Part --
6789 -------------------------------
6791 -- GENERIC_ACTUAL_PART ::=
6792 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6794 -------------------------------
6795 -- 12.3 Generic Association --
6796 -------------------------------
6798 -- GENERIC_ASSOCIATION ::=
6799 -- [generic_formal_parameter_SELECTOR_NAME =>]
6801 -- Note: unlike the procedure call case, a generic association node
6802 -- is generated for every association, even if no formal parameter
6803 -- selector name is present. In this case the parser will leave the
6804 -- Selector_Name field set to Empty, to be filled in later by the
6805 -- semantic pass.
6807 -- In Ada 2005, a formal may be associated with a box, if the
6808 -- association is part of the list of actuals for a formal package.
6809 -- If the association is given by OTHERS => <>, the association is
6810 -- an N_Others_Choice.
6812 -- N_Generic_Association
6813 -- Sloc points to first token of generic association
6814 -- Selector_Name (Node2) (set to Empty if no formal
6815 -- parameter selector name)
6816 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6817 -- Box_Present (Flag15) (for formal_package associations with a box)
6819 ---------------------------------------------
6820 -- 12.3 Explicit Generic Actual Parameter --
6821 ---------------------------------------------
6823 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6824 -- EXPRESSION | variable_NAME | subprogram_NAME
6825 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6827 -------------------------------------
6828 -- 12.4 Formal Object Declaration --
6829 -------------------------------------
6831 -- FORMAL_OBJECT_DECLARATION ::=
6832 -- DEFINING_IDENTIFIER_LIST :
6833 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6834 -- [ASPECT_SPECIFICATIONS];
6835 -- | DEFINING_IDENTIFIER_LIST :
6836 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6837 -- [ASPECT_SPECIFICATIONS];
6839 -- Although the syntax allows multiple identifiers in the list, the
6840 -- semantics is as though successive declarations were given with
6841 -- identical type definition and expression components. To simplify
6842 -- semantic processing, the parser represents a multiple declaration
6843 -- case as a sequence of single declarations, using the More_Ids and
6844 -- Prev_Ids flags to preserve the original source form as described
6845 -- in the section on "Handling of Defining Identifier Lists".
6847 -- N_Formal_Object_Declaration
6848 -- Sloc points to first identifier
6849 -- Defining_Identifier (Node1)
6850 -- In_Present (Flag15)
6851 -- Out_Present (Flag17)
6852 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6853 -- Subtype_Mark (Node4) (set to Empty if not present)
6854 -- Access_Definition (Node3) (set to Empty if not present)
6855 -- Default_Expression (Node5) (set to Empty if no default expression)
6856 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6857 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6859 -----------------------------------
6860 -- 12.5 Formal Type Declaration --
6861 -----------------------------------
6863 -- FORMAL_TYPE_DECLARATION ::=
6864 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6865 -- is FORMAL_TYPE_DEFINITION
6866 -- [ASPECT_SPECIFICATIONS];
6867 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6869 -- N_Formal_Type_Declaration
6870 -- Sloc points to TYPE
6871 -- Defining_Identifier (Node1)
6872 -- Formal_Type_Definition (Node3)
6873 -- Discriminant_Specifications (List4) (set to No_List if no
6874 -- discriminant part)
6875 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6877 ----------------------------------
6878 -- 12.5 Formal type definition --
6879 ----------------------------------
6881 -- FORMAL_TYPE_DEFINITION ::=
6882 -- FORMAL_PRIVATE_TYPE_DEFINITION
6883 -- | FORMAL_DERIVED_TYPE_DEFINITION
6884 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6885 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6886 -- | FORMAL_MODULAR_TYPE_DEFINITION
6887 -- | FORMAL_FLOATING_POINT_DEFINITION
6888 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6889 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6890 -- | FORMAL_ARRAY_TYPE_DEFINITION
6891 -- | FORMAL_ACCESS_TYPE_DEFINITION
6892 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6893 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6895 -- The Ada 2012 syntax introduces two new non-terminals:
6896 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6897 -- the latter category. Here we introduce an incomplete type definition
6898 -- in order to preserve as much as possible the existing structure.
6900 ---------------------------------------------
6901 -- 12.5.1 Formal Private Type Definition --
6902 ---------------------------------------------
6904 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6905 -- [[abstract] tagged] [limited] private
6907 -- Note: TAGGED is not allowed in Ada 83 mode
6909 -- N_Formal_Private_Type_Definition
6910 -- Sloc points to PRIVATE
6911 -- Uninitialized_Variable (Node3-Sem)
6912 -- Abstract_Present (Flag4)
6913 -- Tagged_Present (Flag15)
6914 -- Limited_Present (Flag17)
6916 --------------------------------------------
6917 -- 12.5.1 Formal Derived Type Definition --
6918 --------------------------------------------
6920 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6921 -- [abstract] [limited | synchronized]
6922 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6923 -- Note: this construct is not allowed in Ada 83 mode
6925 -- N_Formal_Derived_Type_Definition
6926 -- Sloc points to NEW
6927 -- Subtype_Mark (Node4)
6928 -- Private_Present (Flag15)
6929 -- Abstract_Present (Flag4)
6930 -- Limited_Present (Flag17)
6931 -- Synchronized_Present (Flag7)
6932 -- Interface_List (List2) (set to No_List if none)
6934 -----------------------------------------------
6935 -- 12.5.1 Formal Incomplete Type Definition --
6936 -----------------------------------------------
6938 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6940 -- N_Formal_Incomplete_Type_Definition
6941 -- Sloc points to identifier of parent
6942 -- Tagged_Present (Flag15)
6944 ---------------------------------------------
6945 -- 12.5.2 Formal Discrete Type Definition --
6946 ---------------------------------------------
6948 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6950 -- N_Formal_Discrete_Type_Definition
6951 -- Sloc points to (
6953 ---------------------------------------------------
6954 -- 12.5.2 Formal Signed Integer Type Definition --
6955 ---------------------------------------------------
6957 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6959 -- N_Formal_Signed_Integer_Type_Definition
6960 -- Sloc points to RANGE
6962 --------------------------------------------
6963 -- 12.5.2 Formal Modular Type Definition --
6964 --------------------------------------------
6966 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6968 -- N_Formal_Modular_Type_Definition
6969 -- Sloc points to MOD
6971 ----------------------------------------------
6972 -- 12.5.2 Formal Floating Point Definition --
6973 ----------------------------------------------
6975 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6977 -- N_Formal_Floating_Point_Definition
6978 -- Sloc points to DIGITS
6980 ----------------------------------------------------
6981 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6982 ----------------------------------------------------
6984 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6986 -- N_Formal_Ordinary_Fixed_Point_Definition
6987 -- Sloc points to DELTA
6989 ---------------------------------------------------
6990 -- 12.5.2 Formal Decimal Fixed Point Definition --
6991 ---------------------------------------------------
6993 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6995 -- Note: formal decimal fixed point definition not allowed in Ada 83
6997 -- N_Formal_Decimal_Fixed_Point_Definition
6998 -- Sloc points to DELTA
7000 ------------------------------------------
7001 -- 12.5.3 Formal Array Type Definition --
7002 ------------------------------------------
7004 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7006 -------------------------------------------
7007 -- 12.5.4 Formal Access Type Definition --
7008 -------------------------------------------
7010 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7012 ----------------------------------------------
7013 -- 12.5.5 Formal Interface Type Definition --
7014 ----------------------------------------------
7016 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7018 -----------------------------------------
7019 -- 12.6 Formal Subprogram Declaration --
7020 -----------------------------------------
7022 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7023 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7024 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7026 --------------------------------------------------
7027 -- 12.6 Formal Concrete Subprogram Declaration --
7028 --------------------------------------------------
7030 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7031 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7032 -- [ASPECT_SPECIFICATIONS];
7034 -- N_Formal_Concrete_Subprogram_Declaration
7035 -- Sloc points to WITH
7036 -- Specification (Node1)
7037 -- Default_Name (Node2) (set to Empty if no subprogram default)
7038 -- Box_Present (Flag15)
7040 -- Note: if no subprogram default is present, then Name is set
7041 -- to Empty, and Box_Present is False.
7043 --------------------------------------------------
7044 -- 12.6 Formal Abstract Subprogram Declaration --
7045 --------------------------------------------------
7047 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7048 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7049 -- [ASPECT_SPECIFICATIONS];
7051 -- N_Formal_Abstract_Subprogram_Declaration
7052 -- Sloc points to WITH
7053 -- Specification (Node1)
7054 -- Default_Name (Node2) (set to Empty if no subprogram default)
7055 -- Box_Present (Flag15)
7057 -- Note: if no subprogram default is present, then Name is set
7058 -- to Empty, and Box_Present is False.
7060 ------------------------------
7061 -- 12.6 Subprogram Default --
7062 ------------------------------
7064 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7066 -- There is no separate node in the tree for a subprogram default.
7067 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7068 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7069 -- default name or box indication, as needed.
7071 ------------------------
7072 -- 12.6 Default Name --
7073 ------------------------
7075 -- DEFAULT_NAME ::= NAME
7077 --------------------------------------
7078 -- 12.7 Formal Package Declaration --
7079 --------------------------------------
7081 -- FORMAL_PACKAGE_DECLARATION ::=
7082 -- with package DEFINING_IDENTIFIER
7083 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7084 -- [ASPECT_SPECIFICATIONS];
7086 -- Note: formal package declarations not allowed in Ada 83 mode
7088 -- N_Formal_Package_Declaration
7089 -- Sloc points to WITH
7090 -- Defining_Identifier (Node1)
7091 -- Name (Node2)
7092 -- Generic_Associations (List3) (set to No_List if (<>) case or
7093 -- empty generic actual part)
7094 -- Box_Present (Flag15)
7095 -- Instance_Spec (Node5-Sem)
7096 -- ABE_Is_Certain (Flag18-Sem)
7098 --------------------------------------
7099 -- 12.7 Formal Package Actual Part --
7100 --------------------------------------
7102 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7103 -- ([OTHERS] => <>)
7104 -- | [GENERIC_ACTUAL_PART]
7105 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7107 -- FORMAL_PACKAGE_ASSOCIATION ::=
7108 -- GENERIC_ASSOCIATION
7109 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7111 -- There is no explicit node in the tree for a formal package actual
7112 -- part. Instead the information appears in the parent node (i.e. the
7113 -- formal package declaration node itself).
7115 -- There is no explicit node for a formal package association. All of
7116 -- them are represented either by a generic association, possibly with
7117 -- Box_Present, or by an N_Others_Choice.
7119 ---------------------------------
7120 -- 13.1 Representation clause --
7121 ---------------------------------
7123 -- REPRESENTATION_CLAUSE ::=
7124 -- ATTRIBUTE_DEFINITION_CLAUSE
7125 -- | ENUMERATION_REPRESENTATION_CLAUSE
7126 -- | RECORD_REPRESENTATION_CLAUSE
7127 -- | AT_CLAUSE
7129 ----------------------
7130 -- 13.1 Local Name --
7131 ----------------------
7133 -- LOCAL_NAME :=
7134 -- DIRECT_NAME
7135 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7136 -- | library_unit_NAME
7138 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7139 -- as an attribute reference, which has essentially the same form.
7141 ---------------------------------------
7142 -- 13.3 Attribute definition clause --
7143 ---------------------------------------
7145 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7146 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7147 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7149 -- In Ada 83, the expression must be a simple expression and the
7150 -- local name must be a direct name.
7152 -- Note: the only attribute definition clause that is processed by
7153 -- gigi is an address clause. For all other cases, the information
7154 -- is extracted by the front end and either results in setting entity
7155 -- information, e.g. Esize for the Size clause, or in appropriate
7156 -- expansion actions (e.g. in the case of Storage_Size).
7158 -- For an address clause, Gigi constructs the appropriate addressing
7159 -- code. It also ensures that no aliasing optimizations are made
7160 -- for the object for which the address clause appears.
7162 -- Note: for an address clause used to achieve an overlay:
7164 -- A : Integer;
7165 -- B : Integer;
7166 -- for B'Address use A'Address;
7168 -- the above rule means that Gigi will ensure that no optimizations
7169 -- will be made for B that would violate the implementation advice
7170 -- of RM 13.3(19). However, this advice applies only to B and not
7171 -- to A, which seems unfortunate. The GNAT front end will mark the
7172 -- object A as volatile to also prevent unwanted optimization
7173 -- assumptions based on no aliasing being made for B.
7175 -- N_Attribute_Definition_Clause
7176 -- Sloc points to FOR
7177 -- Name (Node2) the local name
7178 -- Chars (Name1) the identifier name from the attribute designator
7179 -- Expression (Node3) the expression or name
7180 -- Entity (Node4-Sem)
7181 -- Next_Rep_Item (Node5-Sem)
7182 -- From_At_Mod (Flag4-Sem)
7183 -- Check_Address_Alignment (Flag11-Sem)
7184 -- From_Aspect_Specification (Flag13-Sem)
7185 -- Is_Delayed_Aspect (Flag14-Sem)
7186 -- Address_Warning_Posted (Flag18-Sem)
7188 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7189 -- aspect name, and Entity is resolved already to reference the entity
7190 -- to which the aspect applies.
7192 -----------------------------------
7193 -- 13.3.1 Aspect Specifications --
7194 -----------------------------------
7196 -- We modify the RM grammar here, the RM grammar is:
7198 -- ASPECT_SPECIFICATION ::=
7199 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7200 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7202 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7204 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7206 -- That's inconvenient, since there is no non-terminal name for a single
7207 -- entry in the list of aspects. So we use this grammar instead:
7209 -- ASPECT_SPECIFICATIONS ::=
7210 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7212 -- ASPECT_SPECIFICATION =>
7213 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7215 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7217 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7219 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7220 -- aggregate with the elements of the aggregate corresponding to the
7221 -- successive arguments of the corresponding pragma.
7223 -- See separate package Aspects for details on the incorporation of
7224 -- these nodes into the tree, and how aspect specifications for a given
7225 -- declaration node are associated with that node.
7227 -- N_Aspect_Specification
7228 -- Sloc points to aspect identifier
7229 -- Identifier (Node1) aspect identifier
7230 -- Aspect_Rep_Item (Node2-Sem)
7231 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7232 -- Entity (Node4-Sem) entity to which the aspect applies
7233 -- Next_Rep_Item (Node5-Sem)
7234 -- Class_Present (Flag6) Set if 'Class present
7235 -- Is_Ignored (Flag9-Sem)
7236 -- Is_Checked (Flag11-Sem)
7237 -- Is_Delayed_Aspect (Flag14-Sem)
7238 -- Is_Disabled (Flag15-Sem)
7239 -- Is_Boolean_Aspect (Flag16-Sem)
7240 -- Split_PPC (Flag17) Set if split pre/post attribute
7242 -- Note: Aspect_Specification is an Ada 2012 feature
7244 -- Note: The Identifier serves to identify the aspect involved (it
7245 -- is the aspect whose name corresponds to the Chars field). This
7246 -- means that the other fields of this identifier are unused, and
7247 -- in particular we use the Entity field of this identifier to save
7248 -- a copy of the expression for visibility analysis, see spec of
7249 -- Sem_Ch13 for full details of this usage.
7251 -- In the case of aspects of the form xxx'Class, the aspect identifier
7252 -- is for xxx, and Class_Present is set to True.
7254 -- Note: When a Pre or Post aspect specification is processed, it is
7255 -- broken into AND THEN sections. The left most section has Split_PPC
7256 -- set to False, indicating that it is the original specification (e.g.
7257 -- for posting errors). For the other sections, Split_PPC is set True.
7259 ---------------------------------------------
7260 -- 13.4 Enumeration representation clause --
7261 ---------------------------------------------
7263 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7264 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7266 -- In Ada 83, the name must be a direct name
7268 -- N_Enumeration_Representation_Clause
7269 -- Sloc points to FOR
7270 -- Identifier (Node1) direct name
7271 -- Array_Aggregate (Node3)
7272 -- Next_Rep_Item (Node5-Sem)
7274 ---------------------------------
7275 -- 13.4 Enumeration aggregate --
7276 ---------------------------------
7278 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7280 ------------------------------------------
7281 -- 13.5.1 Record representation clause --
7282 ------------------------------------------
7284 -- RECORD_REPRESENTATION_CLAUSE ::=
7285 -- for first_subtype_LOCAL_NAME use
7286 -- record [MOD_CLAUSE]
7287 -- {COMPONENT_CLAUSE}
7288 -- end record;
7290 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7291 -- replaced by a corresponding Alignment attribute definition clause).
7293 -- Note: Component_Clauses can include pragmas
7295 -- N_Record_Representation_Clause
7296 -- Sloc points to FOR
7297 -- Identifier (Node1) direct name
7298 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7299 -- Component_Clauses (List3)
7300 -- Next_Rep_Item (Node5-Sem)
7302 ------------------------------
7303 -- 13.5.1 Component clause --
7304 ------------------------------
7306 -- COMPONENT_CLAUSE ::=
7307 -- component_LOCAL_NAME at POSITION
7308 -- range FIRST_BIT .. LAST_BIT;
7310 -- N_Component_Clause
7311 -- Sloc points to AT
7312 -- Component_Name (Node1) points to Name or Attribute_Reference
7313 -- Position (Node2)
7314 -- First_Bit (Node3)
7315 -- Last_Bit (Node4)
7317 ----------------------
7318 -- 13.5.1 Position --
7319 ----------------------
7321 -- POSITION ::= static_EXPRESSION
7323 -----------------------
7324 -- 13.5.1 First_Bit --
7325 -----------------------
7327 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7329 ----------------------
7330 -- 13.5.1 Last_Bit --
7331 ----------------------
7333 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7335 --------------------------
7336 -- 13.8 Code statement --
7337 --------------------------
7339 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7341 -- Note: in GNAT, the qualified expression has the form
7343 -- Asm_Insn'(Asm (...));
7345 -- See package System.Machine_Code in file s-maccod.ads for details on
7346 -- the allowed parameters to Asm. There are two ways this node can
7347 -- arise, as a code statement, in which case the expression is the
7348 -- qualified expression, or as a result of the expansion of an intrinsic
7349 -- call to the Asm or Asm_Input procedure.
7351 -- N_Code_Statement
7352 -- Sloc points to first token of the expression
7353 -- Expression (Node3)
7355 -- Note: package Exp_Code contains an abstract functional interface
7356 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7358 ------------------------
7359 -- 13.12 Restriction --
7360 ------------------------
7362 -- RESTRICTION ::=
7363 -- restriction_IDENTIFIER
7364 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7366 -- There is no explicit node for restrictions. Instead the restriction
7367 -- appears in normal pragma syntax as a pragma argument association,
7368 -- which has the same syntactic form.
7370 --------------------------
7371 -- B.2 Shift Operators --
7372 --------------------------
7374 -- Calls to the intrinsic shift functions are converted to one of
7375 -- the following shift nodes, which have the form of normal binary
7376 -- operator names. Note that for a given shift operation, one node
7377 -- covers all possible types, as for normal operators.
7379 -- Note: it is perfectly permissible for the expander to generate
7380 -- shift operation nodes directly, in which case they will be analyzed
7381 -- and parsed in the usual manner.
7383 -- Sprint syntax: shift-function-name!(expr, count)
7385 -- Note: the Left_Opnd field holds the first argument (the value to
7386 -- be shifted). The Right_Opnd field holds the second argument (the
7387 -- shift count). The Chars field is the name of the intrinsic function.
7389 -- N_Op_Rotate_Left
7390 -- Sloc points to the function name
7391 -- plus fields for binary operator
7392 -- plus fields for expression
7393 -- Shift_Count_OK (Flag4-Sem)
7395 -- N_Op_Rotate_Right
7396 -- Sloc points to the function name
7397 -- plus fields for binary operator
7398 -- plus fields for expression
7399 -- Shift_Count_OK (Flag4-Sem)
7401 -- N_Op_Shift_Left
7402 -- Sloc points to the function name
7403 -- plus fields for binary operator
7404 -- plus fields for expression
7405 -- Shift_Count_OK (Flag4-Sem)
7407 -- N_Op_Shift_Right_Arithmetic
7408 -- Sloc points to the function name
7409 -- plus fields for binary operator
7410 -- plus fields for expression
7411 -- Shift_Count_OK (Flag4-Sem)
7413 -- N_Op_Shift_Right
7414 -- Sloc points to the function name
7415 -- plus fields for binary operator
7416 -- plus fields for expression
7417 -- Shift_Count_OK (Flag4-Sem)
7419 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7420 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7422 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7423 -- always less than the word size if Modify_Tree_For_C mode is set.
7425 --------------------------
7426 -- Obsolescent Features --
7427 --------------------------
7429 -- The syntax descriptions and tree nodes for obsolescent features are
7430 -- grouped together, corresponding to their location in appendix I in
7431 -- the RM. However, parsing and semantic analysis for these constructs
7432 -- is located in an appropriate chapter (see individual notes).
7434 ---------------------------
7435 -- J.3 Delta Constraint --
7436 ---------------------------
7438 -- Note: the parse routine for this construct is located in section
7439 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7440 -- where delta constraint logically belongs.
7442 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7444 -- N_Delta_Constraint
7445 -- Sloc points to DELTA
7446 -- Delta_Expression (Node3)
7447 -- Range_Constraint (Node4) (set to Empty if not present)
7449 --------------------
7450 -- J.7 At Clause --
7451 --------------------
7453 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7455 -- Note: the parse routine for this construct is located in Par-Ch13,
7456 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7457 -- belongs if it were not obsolescent.
7459 -- Note: in Ada 83 the expression must be a simple expression
7461 -- Gigi restriction: This node never appears, it is rewritten as an
7462 -- address attribute definition clause.
7464 -- N_At_Clause
7465 -- Sloc points to FOR
7466 -- Identifier (Node1)
7467 -- Expression (Node3)
7469 ---------------------
7470 -- J.8 Mod clause --
7471 ---------------------
7473 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7475 -- Note: the parse routine for this construct is located in Par-Ch13,
7476 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7477 -- belongs if it were not obsolescent.
7479 -- Note: in Ada 83, the expression must be a simple expression
7481 -- Gigi restriction: this node never appears. It is replaced
7482 -- by a corresponding Alignment attribute definition clause.
7484 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7485 -- its name has "clause" in it. This is rather strange, but is quite
7486 -- definitely specified. The pragmas before are collected in the
7487 -- Pragmas_Before field of the mod clause node itself, and pragmas
7488 -- after are simply swallowed up in the list of component clauses.
7490 -- N_Mod_Clause
7491 -- Sloc points to AT
7492 -- Expression (Node3)
7493 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7495 --------------------
7496 -- Semantic Nodes --
7497 --------------------
7499 -- These semantic nodes are used to hold additional semantic information.
7500 -- They are inserted into the tree as a result of semantic processing.
7501 -- Although there are no legitimate source syntax constructions that
7502 -- correspond directly to these nodes, we need a source syntax for the
7503 -- reconstructed tree printed by Sprint, and the node descriptions here
7504 -- show this syntax.
7506 ------------------------
7507 -- Compound Statement --
7508 ------------------------
7510 -- This node is created by the analyzer/expander to handle some
7511 -- expansion cases where a sequence of actions needs to be captured
7512 -- within a single node (which acts as a container and allows the
7513 -- entire list of actions to be moved around as a whole) appearing
7514 -- in a sequence of statements.
7516 -- This is the statement counterpart to the expression node
7517 -- N_Expression_With_Actions.
7519 -- The required semantics is that the set of actions is executed in
7520 -- the order in which it appears, as though they appeared by themselves
7521 -- in the enclosing list of declarations of statements. Unlike what
7522 -- happens when using an N_Block_Statement, no new scope is introduced.
7524 -- Note: for the time being, this is used only as a transient
7525 -- representation during expansion, and all compound statement nodes
7526 -- must be exploded back to their constituent statements before handing
7527 -- the tree to the back end.
7529 -- Sprint syntax: do
7530 -- action;
7531 -- action;
7532 -- ...
7533 -- action;
7534 -- end;
7536 -- N_Compound_Statement
7537 -- Actions (List1)
7539 --------------
7540 -- Contract --
7541 --------------
7543 -- This node is used to hold the various parts of an entry, subprogram
7544 -- [body] or package [body] contract, in particular:
7545 -- Abstract states declared by a package declaration
7546 -- Contract cases that apply to a subprogram
7547 -- Dependency relations of inputs and output of a subprogram
7548 -- Global annotations classifying data as input or output
7549 -- Initialization sequences for a package declaration
7550 -- Pre- and postconditions that apply to a subprogram
7552 -- The node appears in an entry and [generic] subprogram [body] entity.
7554 -- Sprint syntax: <none> as the node should not appear in the tree, but
7555 -- only attached to an entry or [generic] subprogram
7556 -- entity.
7558 -- N_Contract
7559 -- Sloc points to the subprogram's name
7560 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7561 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7562 -- Classifications (Node3-Sem) (set to Empty if none)
7564 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7565 -- to pre- and postconditions associated with an entry or a subprogram
7566 -- [body or stub]. The pragmas can either come from source or be the
7567 -- byproduct of aspect expansion. Currently the following pragmas appear
7568 -- in this list:
7569 -- Post
7570 -- Postcondition
7571 -- Pre
7572 -- Precondition
7573 -- Refined_Post
7574 -- The ordering in the list is in LIFO fashion.
7576 -- Note that there might be multiple preconditions or postconditions
7577 -- in this list, either because they come from separate pragmas in the
7578 -- source, or because a Pre (resp. Post) aspect specification has been
7579 -- broken into AND THEN sections. See Split_PPC for details.
7581 -- Contract_Test_Cases contains a collection of pragmas that correspond
7582 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7583 -- list is in LIFO fashion.
7585 -- Classifications contains pragmas that either declare, categorize or
7586 -- establish dependencies between subprogram or package inputs and
7587 -- outputs. Currently the following pragmas appear in this list:
7588 -- Abstract_States
7589 -- Async_Readers
7590 -- Async_Writers
7591 -- Depends
7592 -- Effective_Reads
7593 -- Effective_Writes
7594 -- Global
7595 -- Initial_Condition
7596 -- Initializes
7597 -- Part_Of
7598 -- Refined_Depends
7599 -- Refined_Global
7600 -- Refined_States
7601 -- The ordering is in LIFO fashion.
7603 -------------------
7604 -- Expanded Name --
7605 -------------------
7607 -- The N_Expanded_Name node is used to represent a selected component
7608 -- name that has been resolved to an expanded name. The semantic phase
7609 -- replaces N_Selected_Component nodes that represent names by the use
7610 -- of this node, leaving the N_Selected_Component node used only when
7611 -- the prefix is a record or protected type.
7613 -- The fields of the N_Expanded_Name node are layed out identically
7614 -- to those of the N_Selected_Component node, allowing conversion of
7615 -- an expanded name node to a selected component node to be done
7616 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7618 -- There is no special sprint syntax for an expanded name
7620 -- N_Expanded_Name
7621 -- Sloc points to the period
7622 -- Chars (Name1) copy of Chars field of selector name
7623 -- Prefix (Node3)
7624 -- Selector_Name (Node2)
7625 -- Entity (Node4-Sem)
7626 -- Associated_Node (Node4-Sem)
7627 -- Has_Private_View (Flag11-Sem) set in generic units.
7628 -- Redundant_Use (Flag13-Sem)
7629 -- Atomic_Sync_Required (Flag14-Sem)
7630 -- plus fields for expression
7632 -----------------------------
7633 -- Expression With Actions --
7634 -----------------------------
7636 -- This node is created by the analyzer/expander to handle some
7637 -- expansion cases, notably short circuit forms where there are
7638 -- actions associated with the right-hand side operand.
7640 -- The N_Expression_With_Actions node represents an expression with
7641 -- an associated set of actions (which are executable statements and
7642 -- declarations, as might occur in a handled statement sequence).
7644 -- The required semantics is that the set of actions is executed in
7645 -- the order in which it appears just before the expression is
7646 -- evaluated (and these actions must only be executed if the value
7647 -- of the expression is evaluated). The node is considered to be
7648 -- a subexpression, whose value is the value of the Expression after
7649 -- executing all the actions.
7651 -- If the actions contain declarations, then these declarations may
7652 -- be referenced within the expression. However note that there is
7653 -- no proper scope associated with the expression-with-action, so the
7654 -- back-end will elaborate them in the context of the enclosing scope.
7656 -- Sprint syntax: do
7657 -- action;
7658 -- action;
7659 -- ...
7660 -- action;
7661 -- in expression end
7663 -- N_Expression_With_Actions
7664 -- Actions (List1)
7665 -- Expression (Node3)
7666 -- plus fields for expression
7668 -- Note: In the final generated tree presented to the code generator,
7669 -- the actions list is always non-null, since there is no point in this
7670 -- node if the actions are Empty. During semantic analysis there are
7671 -- cases where it is convenient to temporarily generate an empty actions
7672 -- list. This arises in cases where we create such an empty actions
7673 -- list, and it may or may not end up being a place where additional
7674 -- actions are inserted. The expander removes such empty cases after
7675 -- the expression of the node is fully analyzed and expanded, at which
7676 -- point it is safe to remove it, since no more actions can be inserted.
7678 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7679 -- the action list, which can contain only non-declarative statements.
7681 --------------------
7682 -- Free Statement --
7683 --------------------
7685 -- The N_Free_Statement node is generated as a result of a call to an
7686 -- instantiation of Unchecked_Deallocation. The instantiation of this
7687 -- generic is handled specially and generates this node directly.
7689 -- Sprint syntax: free expression
7691 -- N_Free_Statement
7692 -- Sloc is copied from the unchecked deallocation call
7693 -- Expression (Node3) argument to unchecked deallocation call
7694 -- Storage_Pool (Node1-Sem)
7695 -- Procedure_To_Call (Node2-Sem)
7696 -- Actual_Designated_Subtype (Node4-Sem)
7698 -- Note: in the case where a debug source file is generated, the Sloc
7699 -- for this node points to the FREE keyword in the Sprint file output.
7701 -------------------
7702 -- Freeze Entity --
7703 -------------------
7705 -- This node marks the point in a declarative part at which an entity
7706 -- declared therein becomes frozen. The expander places initialization
7707 -- procedures for types at those points. Gigi uses the freezing point
7708 -- to elaborate entities that may depend on previous private types.
7710 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7711 -- a full description of the use of this node.
7713 -- The Entity field points back to the entity for the type (whose
7714 -- Freeze_Node field points back to this freeze node).
7716 -- The Actions field contains a list of declarations and statements
7717 -- generated by the expander which are associated with the freeze
7718 -- node, and are elaborated as though the freeze node were replaced
7719 -- by this sequence of actions.
7721 -- Note: the Sloc field in the freeze node references a construct
7722 -- associated with the freezing point. This is used for posting
7723 -- messages in some error/warning situations, e.g. the case where
7724 -- a primitive operation of a tagged type is declared too late.
7726 -- Sprint syntax: freeze entity-name [
7727 -- freeze actions
7728 -- ]
7730 -- N_Freeze_Entity
7731 -- Sloc points near freeze point (see above special note)
7732 -- Entity (Node4-Sem)
7733 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7734 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7735 -- Actions (List1) (set to No_List if no freeze actions)
7736 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7738 -- The Actions field holds actions associated with the freeze. These
7739 -- actions are elaborated at the point where the type is frozen.
7741 -- Note: in the case where a debug source file is generated, the Sloc
7742 -- for this node points to the FREEZE keyword in the Sprint file output.
7744 ---------------------------
7745 -- Freeze Generic Entity --
7746 ---------------------------
7748 -- The freeze point of an entity indicates the point at which the
7749 -- information needed to generate code for the entity is complete.
7750 -- The freeze node for an entity triggers expander activities, such as
7751 -- build initialization procedures, and backend activities, such as
7752 -- completing the elaboration of packages.
7754 -- For entities declared within a generic unit, for which no code is
7755 -- generated, the freeze point is not equally meaningful. However, in
7756 -- Ada 2012 several semantic checks on declarations must be delayed to
7757 -- the freeze point, and we need to include such a mark in the tree to
7758 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7759 -- role, and is ignored by the expander and the back-end.
7761 -- Sprint syntax: freeze_generic entity-name
7763 -- N_Freeze_Generic_Entity
7764 -- Sloc points near freeze point
7765 -- Entity (Node4-Sem)
7767 --------------------------------
7768 -- Implicit Label Declaration --
7769 --------------------------------
7771 -- An implicit label declaration is created for every occurrence of a
7772 -- label on a statement or a label on a block or loop. It is chained
7773 -- in the declarations of the innermost enclosing block as specified
7774 -- in RM section 5.1 (3).
7776 -- The Defining_Identifier is the actual identifier for the statement
7777 -- identifier. Note that the occurrence of the label is a reference, NOT
7778 -- the defining occurrence. The defining occurrence occurs at the head
7779 -- of the innermost enclosing block, and is represented by this node.
7781 -- Note: from the grammar, this might better be called an implicit
7782 -- statement identifier declaration, but the term we choose seems
7783 -- friendlier, since at least informally statement identifiers are
7784 -- called labels in both cases (i.e. when used in labels, and when
7785 -- used as the identifiers of blocks and loops).
7787 -- Note: although this is logically a semantic node, since it does not
7788 -- correspond directly to a source syntax construction, these nodes are
7789 -- actually created by the parser in a post pass done just after parsing
7790 -- is complete, before semantic analysis is started (see Par.Labl).
7792 -- Sprint syntax: labelname : label;
7794 -- N_Implicit_Label_Declaration
7795 -- Sloc points to the << token for a statement identifier, or to the
7796 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7797 -- Defining_Identifier (Node1)
7798 -- Label_Construct (Node2-Sem)
7800 -- Note: in the case where a debug source file is generated, the Sloc
7801 -- for this node points to the label name in the generated declaration.
7803 ---------------------
7804 -- Itype Reference --
7805 ---------------------
7807 -- This node is used to create a reference to an Itype. The only purpose
7808 -- is to make sure the Itype is defined if this is the first reference.
7810 -- A typical use of this node is when an Itype is to be referenced in
7811 -- two branches of an IF statement. In this case it is important that
7812 -- the first use of the Itype not be inside the conditional, since then
7813 -- it might not be defined if the other branch of the IF is taken, in
7814 -- the case where the definition generates elaboration code.
7816 -- The Itype field points to the referenced Itype
7818 -- Sprint syntax: reference itype-name
7820 -- N_Itype_Reference
7821 -- Sloc points to the node generating the reference
7822 -- Itype (Node1-Sem)
7824 -- Note: in the case where a debug source file is generated, the Sloc
7825 -- for this node points to the REFERENCE keyword in the file output.
7827 ---------------------
7828 -- Raise xxx Error --
7829 ---------------------
7831 -- One of these nodes is created during semantic analysis to replace
7832 -- a node for an expression that is determined to definitely raise
7833 -- the corresponding exception.
7835 -- The N_Raise_xxx_Error node may also stand alone in place
7836 -- of a declaration or statement, in which case it simply causes
7837 -- the exception to be raised (i.e. it is equivalent to a raise
7838 -- statement that raises the corresponding exception). This use
7839 -- is distinguished by the fact that the Etype in this case is
7840 -- Standard_Void_Type; in the subexpression case, the Etype is the
7841 -- same as the type of the subexpression which it replaces.
7843 -- If Condition is empty, then the raise is unconditional. If the
7844 -- Condition field is non-empty, it is a boolean expression which
7845 -- is first evaluated, and the exception is raised only if the
7846 -- value of the expression is True. In the unconditional case, the
7847 -- creation of this node is usually accompanied by a warning message
7848 -- error. The creation of this node will usually be accompanied by a
7849 -- message (unless it appears within the right operand of a short
7850 -- circuit form whose left argument is static and decisively
7851 -- eliminates elaboration of the raise operation. The condition field
7852 -- can ONLY be present when the node is used as a statement form, it
7853 -- may NOT be present in the case where the node appears within an
7854 -- expression.
7856 -- The exception is generated with a message that contains the
7857 -- file name and line number, and then appended text. The Reason
7858 -- code shows the text to be added. The Reason code is an element
7859 -- of the type Types.RT_Exception_Code, and indicates both the
7860 -- message to be added, and the exception to be raised (which must
7861 -- match the node type). The value is stored by storing a Uint which
7862 -- is the Pos value of the enumeration element in this type.
7864 -- Gigi restriction: This expander ensures that the type of the
7865 -- Condition field is always Standard.Boolean, even if the type
7866 -- in the source is some non-standard boolean type.
7868 -- Sprint syntax: [xxx_error "msg"]
7869 -- or: [xxx_error when condition "msg"]
7871 -- N_Raise_Constraint_Error
7872 -- Sloc references related construct
7873 -- Condition (Node1) (set to Empty if no condition)
7874 -- Reason (Uint3)
7875 -- plus fields for expression
7877 -- N_Raise_Program_Error
7878 -- Sloc references related construct
7879 -- Condition (Node1) (set to Empty if no condition)
7880 -- Reason (Uint3)
7881 -- plus fields for expression
7883 -- N_Raise_Storage_Error
7884 -- Sloc references related construct
7885 -- Condition (Node1) (set to Empty if no condition)
7886 -- Reason (Uint3)
7887 -- plus fields for expression
7889 -- Note: Sloc is copied from the expression generating the exception.
7890 -- In the case where a debug source file is generated, the Sloc for
7891 -- this node points to the left bracket in the Sprint file output.
7893 -- Note: the back end may be required to translate these nodes into
7894 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7896 ---------------------------------------------
7897 -- Optimization of Exception Raise to Goto --
7898 ---------------------------------------------
7900 -- In some cases, the front end will determine that any exception raised
7901 -- by the back end for a certain exception should be transformed into a
7902 -- goto statement.
7904 -- There are three kinds of exceptions raised by the back end (note that
7905 -- for this purpose we consider gigi to be part of the back end in the
7906 -- gcc case):
7908 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7909 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7910 -- 3. Other cases not specifically marked by the front end
7912 -- Normally all such exceptions are translated into calls to the proper
7913 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7914 -- and the exception message.
7916 -- The front end may determine that for a particular sequence of code,
7917 -- exceptions in any of these three categories for a particular builtin
7918 -- exception should result in a goto, rather than a call to Rcheck_xx.
7919 -- The exact sequence to be generated is:
7921 -- Local_Raise (exception'Identity);
7922 -- goto Label
7924 -- The front end marks such a sequence of code by bracketing it with
7925 -- push and pop nodes:
7927 -- N_Push_xxx_Label (referencing the label)
7928 -- ...
7929 -- (code where transformation is expected for exception xxx)
7930 -- ...
7931 -- N_Pop_xxx_Label
7933 -- The use of push/pop reflects the fact that such regions can properly
7934 -- nest, and one special case is a subregion in which no transformation
7935 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7936 -- Exception_Label field is Empty.
7938 -- N_Push_Constraint_Error_Label
7939 -- Sloc references first statement in region covered
7940 -- Exception_Label (Node5-Sem)
7942 -- N_Push_Program_Error_Label
7943 -- Sloc references first statement in region covered
7944 -- Exception_Label (Node5-Sem)
7946 -- N_Push_Storage_Error_Label
7947 -- Sloc references first statement in region covered
7948 -- Exception_Label (Node5-Sem)
7950 -- N_Pop_Constraint_Error_Label
7951 -- Sloc references last statement in region covered
7953 -- N_Pop_Program_Error_Label
7954 -- Sloc references last statement in region covered
7956 -- N_Pop_Storage_Error_Label
7957 -- Sloc references last statement in region covered
7959 ---------------
7960 -- Reference --
7961 ---------------
7963 -- For a number of purposes, we need to construct references to objects.
7964 -- These references are subsequently treated as normal access values.
7965 -- An example is the construction of the parameter block passed to a
7966 -- task entry. The N_Reference node is provided for this purpose. It is
7967 -- similar in effect to the use of the Unrestricted_Access attribute,
7968 -- and like Unrestricted_Access can be applied to objects which would
7969 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7970 -- objects which are not aliased, and slices). In addition it can be
7971 -- applied to composite type values as well as objects, including string
7972 -- values and aggregates.
7974 -- Note: we use the Prefix field for this expression so that the
7975 -- resulting node can be treated using common code with the attribute
7976 -- nodes for the 'Access and related attributes. Logically it would make
7977 -- more sense to call it an Expression field, but then we would have to
7978 -- special case the treatment of the N_Reference node.
7980 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7981 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7982 -- a temporary initialized to a N_Reference node in order to eliminate
7983 -- superfluous access checks.
7985 -- Sprint syntax: prefix'reference
7987 -- N_Reference
7988 -- Sloc is copied from the expression
7989 -- Prefix (Node3)
7990 -- plus fields for expression
7992 -- Note: in the case where a debug source file is generated, the Sloc
7993 -- for this node points to the quote in the Sprint file output.
7995 ----------------
7996 -- SCIL Nodes --
7997 ----------------
7999 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8000 -- is active. They are only generated if SCIL generation is enabled.
8001 -- A standard tree-walk will not encounter these nodes even if they
8002 -- are present; these nodes are only accessible via the function
8003 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8004 -- semantics.
8006 -- Sprint syntax: [ <node kind> ]
8007 -- No semantic field values are displayed.
8009 -- N_SCIL_Dispatch_Table_Tag_Init
8010 -- Sloc references a node for a tag initialization
8011 -- SCIL_Entity (Node4-Sem)
8013 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8014 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8015 -- the declaration of the dispatch table for a tagged type.
8017 -- N_SCIL_Dispatching_Call
8018 -- Sloc references the node of a dispatching call
8019 -- SCIL_Target_Prim (Node2-Sem)
8020 -- SCIL_Entity (Node4-Sem)
8021 -- SCIL_Controlling_Tag (Node5-Sem)
8023 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8024 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
8025 -- thereof) corresponding to a dispatching call.
8027 -- N_SCIL_Membership_Test
8028 -- Sloc references the node of a membership test
8029 -- SCIL_Tag_Value (Node5-Sem)
8030 -- SCIL_Entity (Node4-Sem)
8032 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8033 -- with the N_In node (or a rewriting thereof) corresponding to a
8034 -- classwide membership test.
8036 --------------------------
8037 -- Unchecked Expression --
8038 --------------------------
8040 -- An unchecked expression is one that must be analyzed and resolved
8041 -- with all checks off, regardless of the current setting of scope
8042 -- suppress flags.
8044 -- Sprint syntax: `(expression)
8046 -- Note: this node is always removed from the tree (and replaced by
8047 -- its constituent expression) on completion of analysis, so it only
8048 -- appears in intermediate trees, and will never be seen by Gigi.
8050 -- N_Unchecked_Expression
8051 -- Sloc is a copy of the Sloc of the expression
8052 -- Expression (Node3)
8053 -- plus fields for expression
8055 -- Note: in the case where a debug source file is generated, the Sloc
8056 -- for this node points to the back quote in the Sprint file output.
8058 -------------------------------
8059 -- Unchecked Type Conversion --
8060 -------------------------------
8062 -- An unchecked type conversion node represents the semantic action
8063 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8064 -- It is generated as a result of actual use of Unchecked_Conversion
8065 -- and also the expander generates unchecked type conversion nodes
8066 -- directly for expansion of complex semantic actions.
8068 -- Note: an unchecked type conversion is a variable as far as the
8069 -- semantics are concerned, which is convenient for the expander.
8070 -- This does not change what Ada source programs are legal, since
8071 -- clearly a function call to an instantiation of Unchecked_Conversion
8072 -- is not a variable in any case.
8074 -- Sprint syntax: subtype-mark!(expression)
8076 -- N_Unchecked_Type_Conversion
8077 -- Sloc points to related node in source
8078 -- Subtype_Mark (Node4)
8079 -- Expression (Node3)
8080 -- Kill_Range_Check (Flag11-Sem)
8081 -- No_Truncation (Flag17-Sem)
8082 -- plus fields for expression
8084 -- Note: in the case where a debug source file is generated, the Sloc
8085 -- for this node points to the exclamation in the Sprint file output.
8087 -----------------------------------
8088 -- Validate_Unchecked_Conversion --
8089 -----------------------------------
8091 -- The front end does most of the validation of unchecked conversion,
8092 -- including checking sizes (this is done after the back end is called
8093 -- to take advantage of back-annotation of calculated sizes).
8095 -- The front end also deals with specific cases that are not allowed
8096 -- e.g. involving unconstrained array types.
8098 -- For the case of the standard gigi backend, this means that all
8099 -- checks are done in the front end.
8101 -- However, in the case of specialized back-ends, notably the JVM
8102 -- backend for JGNAT, additional requirements and restrictions apply
8103 -- to unchecked conversion, and these are most conveniently performed
8104 -- in the specialized back-end.
8106 -- To accommodate this requirement, for such back ends, the following
8107 -- special node is generated recording an unchecked conversion that
8108 -- needs to be validated. The back end should post an appropriate
8109 -- error message if the unchecked conversion is invalid or warrants
8110 -- a special warning message.
8112 -- Source_Type and Target_Type point to the entities for the two
8113 -- types involved in the unchecked conversion instantiation that
8114 -- is to be validated.
8116 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8118 -- N_Validate_Unchecked_Conversion
8119 -- Sloc points to instantiation (location for warning message)
8120 -- Source_Type (Node1-Sem)
8121 -- Target_Type (Node2-Sem)
8123 -- Note: in the case where a debug source file is generated, the Sloc
8124 -- for this node points to the VALIDATE keyword in the file output.
8126 -----------
8127 -- Empty --
8128 -----------
8130 -- Used as the contents of the Nkind field of the dummy Empty node
8131 -- and in some other situations to indicate an uninitialized value.
8133 -- N_Empty
8134 -- Chars (Name1) is set to No_Name
8136 -----------
8137 -- Error --
8138 -----------
8140 -- Used as the contents of the Nkind field of the dummy Error node.
8141 -- Has an Etype field, which gets set to Any_Type later on, to help
8142 -- error recovery (Error_Posted is also set in the Error node).
8144 -- N_Error
8145 -- Chars (Name1) is set to Error_Name
8146 -- Etype (Node5-Sem)
8148 --------------------------
8149 -- Node Type Definition --
8150 --------------------------
8152 -- The following is the definition of the Node_Kind type. As previously
8153 -- discussed, this is separated off to allow rearrangement of the order to
8154 -- facilitate definition of subtype ranges. The comments show the subtype
8155 -- classes which apply to each set of node kinds. The first entry in the
8156 -- comment characterizes the following list of nodes.
8158 type Node_Kind is (
8159 N_Unused_At_Start,
8161 -- N_Representation_Clause
8163 N_At_Clause,
8164 N_Component_Clause,
8165 N_Enumeration_Representation_Clause,
8166 N_Mod_Clause,
8167 N_Record_Representation_Clause,
8169 -- N_Representation_Clause, N_Has_Chars
8171 N_Attribute_Definition_Clause,
8173 -- N_Has_Chars
8175 N_Empty,
8176 N_Pragma_Argument_Association,
8178 -- N_Has_Etype, N_Has_Chars
8180 -- Note: of course N_Error does not really have Etype or Chars fields,
8181 -- and any attempt to access these fields in N_Error will cause an
8182 -- error, but historically this always has been positioned so that an
8183 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8184 -- Most likely this makes coding easier somewhere but still seems
8185 -- undesirable. To be investigated some time ???
8187 N_Error,
8189 -- N_Entity, N_Has_Etype, N_Has_Chars
8191 N_Defining_Character_Literal,
8192 N_Defining_Identifier,
8193 N_Defining_Operator_Symbol,
8195 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8197 N_Expanded_Name,
8199 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8200 -- N_Has_Chars, N_Has_Entity
8202 N_Identifier,
8203 N_Operator_Symbol,
8205 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8206 -- N_Has_Chars, N_Has_Entity
8208 N_Character_Literal,
8210 -- N_Binary_Op, N_Op, N_Subexpr,
8211 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8213 N_Op_Add,
8214 N_Op_Concat,
8215 N_Op_Expon,
8216 N_Op_Subtract,
8218 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8219 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8221 N_Op_Divide,
8222 N_Op_Mod,
8223 N_Op_Multiply,
8224 N_Op_Rem,
8226 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8227 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8229 N_Op_And,
8231 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8232 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8234 N_Op_Eq,
8235 N_Op_Ge,
8236 N_Op_Gt,
8237 N_Op_Le,
8238 N_Op_Lt,
8239 N_Op_Ne,
8241 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8242 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8244 N_Op_Or,
8245 N_Op_Xor,
8247 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8248 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8250 N_Op_Rotate_Left,
8251 N_Op_Rotate_Right,
8252 N_Op_Shift_Left,
8253 N_Op_Shift_Right,
8254 N_Op_Shift_Right_Arithmetic,
8256 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8257 -- N_Has_Chars, N_Has_Entity
8259 N_Op_Abs,
8260 N_Op_Minus,
8261 N_Op_Not,
8262 N_Op_Plus,
8264 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8266 N_Attribute_Reference,
8268 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8270 N_In,
8271 N_Not_In,
8273 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8275 N_And_Then,
8276 N_Or_Else,
8278 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8280 N_Function_Call,
8281 N_Procedure_Call_Statement,
8283 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8285 N_Raise_Constraint_Error,
8286 N_Raise_Program_Error,
8287 N_Raise_Storage_Error,
8289 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8291 N_Integer_Literal,
8292 N_Real_Literal,
8293 N_String_Literal,
8295 -- N_Subexpr, N_Has_Etype
8297 N_Explicit_Dereference,
8298 N_Expression_With_Actions,
8299 N_If_Expression,
8300 N_Indexed_Component,
8301 N_Null,
8302 N_Qualified_Expression,
8303 N_Quantified_Expression,
8304 N_Aggregate,
8305 N_Allocator,
8306 N_Case_Expression,
8307 N_Extension_Aggregate,
8308 N_Raise_Expression,
8309 N_Range,
8310 N_Reference,
8311 N_Selected_Component,
8312 N_Slice,
8313 N_Type_Conversion,
8314 N_Unchecked_Expression,
8315 N_Unchecked_Type_Conversion,
8317 -- N_Has_Etype
8319 N_Subtype_Indication,
8321 -- N_Declaration
8323 N_Component_Declaration,
8324 N_Entry_Declaration,
8325 N_Expression_Function,
8326 N_Formal_Object_Declaration,
8327 N_Formal_Type_Declaration,
8328 N_Full_Type_Declaration,
8329 N_Incomplete_Type_Declaration,
8330 N_Iterator_Specification,
8331 N_Loop_Parameter_Specification,
8332 N_Object_Declaration,
8333 N_Protected_Type_Declaration,
8334 N_Private_Extension_Declaration,
8335 N_Private_Type_Declaration,
8336 N_Subtype_Declaration,
8338 -- N_Subprogram_Specification, N_Declaration
8340 N_Function_Specification,
8341 N_Procedure_Specification,
8343 -- N_Access_To_Subprogram_Definition
8345 N_Access_Function_Definition,
8346 N_Access_Procedure_Definition,
8348 -- N_Later_Decl_Item
8350 N_Task_Type_Declaration,
8352 -- N_Body_Stub, N_Later_Decl_Item
8354 N_Package_Body_Stub,
8355 N_Protected_Body_Stub,
8356 N_Subprogram_Body_Stub,
8357 N_Task_Body_Stub,
8359 -- N_Generic_Instantiation, N_Later_Decl_Item
8360 -- N_Subprogram_Instantiation
8362 N_Function_Instantiation,
8363 N_Procedure_Instantiation,
8365 -- N_Generic_Instantiation, N_Later_Decl_Item
8367 N_Package_Instantiation,
8369 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8371 N_Package_Body,
8372 N_Subprogram_Body,
8374 -- N_Later_Decl_Item, N_Proper_Body
8376 N_Protected_Body,
8377 N_Task_Body,
8379 -- N_Later_Decl_Item
8381 N_Implicit_Label_Declaration,
8382 N_Package_Declaration,
8383 N_Single_Task_Declaration,
8384 N_Subprogram_Declaration,
8385 N_Use_Package_Clause,
8387 -- N_Generic_Declaration, N_Later_Decl_Item
8389 N_Generic_Package_Declaration,
8390 N_Generic_Subprogram_Declaration,
8392 -- N_Array_Type_Definition
8394 N_Constrained_Array_Definition,
8395 N_Unconstrained_Array_Definition,
8397 -- N_Renaming_Declaration
8399 N_Exception_Renaming_Declaration,
8400 N_Object_Renaming_Declaration,
8401 N_Package_Renaming_Declaration,
8402 N_Subprogram_Renaming_Declaration,
8404 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8406 N_Generic_Function_Renaming_Declaration,
8407 N_Generic_Package_Renaming_Declaration,
8408 N_Generic_Procedure_Renaming_Declaration,
8410 -- N_Statement_Other_Than_Procedure_Call
8412 N_Abort_Statement,
8413 N_Accept_Statement,
8414 N_Assignment_Statement,
8415 N_Asynchronous_Select,
8416 N_Block_Statement,
8417 N_Case_Statement,
8418 N_Code_Statement,
8419 N_Compound_Statement,
8420 N_Conditional_Entry_Call,
8422 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8424 N_Delay_Relative_Statement,
8425 N_Delay_Until_Statement,
8427 -- N_Statement_Other_Than_Procedure_Call
8429 N_Entry_Call_Statement,
8430 N_Free_Statement,
8431 N_Goto_Statement,
8432 N_Loop_Statement,
8433 N_Null_Statement,
8434 N_Raise_Statement,
8435 N_Requeue_Statement,
8436 N_Simple_Return_Statement,
8437 N_Extended_Return_Statement,
8438 N_Selective_Accept,
8439 N_Timed_Entry_Call,
8441 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8443 N_Exit_Statement,
8444 N_If_Statement,
8446 -- N_Has_Condition
8448 N_Accept_Alternative,
8449 N_Delay_Alternative,
8450 N_Elsif_Part,
8451 N_Entry_Body_Formal_Part,
8452 N_Iteration_Scheme,
8453 N_Terminate_Alternative,
8455 -- N_Formal_Subprogram_Declaration
8457 N_Formal_Abstract_Subprogram_Declaration,
8458 N_Formal_Concrete_Subprogram_Declaration,
8460 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8462 N_Push_Constraint_Error_Label,
8463 N_Push_Program_Error_Label,
8464 N_Push_Storage_Error_Label,
8466 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8468 N_Pop_Constraint_Error_Label,
8469 N_Pop_Program_Error_Label,
8470 N_Pop_Storage_Error_Label,
8472 -- SCIL nodes
8474 N_SCIL_Dispatch_Table_Tag_Init,
8475 N_SCIL_Dispatching_Call,
8476 N_SCIL_Membership_Test,
8478 -- Other nodes (not part of any subtype class)
8480 N_Abortable_Part,
8481 N_Abstract_Subprogram_Declaration,
8482 N_Access_Definition,
8483 N_Access_To_Object_Definition,
8484 N_Aspect_Specification,
8485 N_Case_Expression_Alternative,
8486 N_Case_Statement_Alternative,
8487 N_Compilation_Unit,
8488 N_Compilation_Unit_Aux,
8489 N_Component_Association,
8490 N_Component_Definition,
8491 N_Component_List,
8492 N_Contract,
8493 N_Derived_Type_Definition,
8494 N_Decimal_Fixed_Point_Definition,
8495 N_Defining_Program_Unit_Name,
8496 N_Delta_Constraint,
8497 N_Designator,
8498 N_Digits_Constraint,
8499 N_Discriminant_Association,
8500 N_Discriminant_Specification,
8501 N_Enumeration_Type_Definition,
8502 N_Entry_Body,
8503 N_Entry_Call_Alternative,
8504 N_Entry_Index_Specification,
8505 N_Exception_Declaration,
8506 N_Exception_Handler,
8507 N_Floating_Point_Definition,
8508 N_Formal_Decimal_Fixed_Point_Definition,
8509 N_Formal_Derived_Type_Definition,
8510 N_Formal_Discrete_Type_Definition,
8511 N_Formal_Floating_Point_Definition,
8512 N_Formal_Modular_Type_Definition,
8513 N_Formal_Ordinary_Fixed_Point_Definition,
8514 N_Formal_Package_Declaration,
8515 N_Formal_Private_Type_Definition,
8516 N_Formal_Incomplete_Type_Definition,
8517 N_Formal_Signed_Integer_Type_Definition,
8518 N_Freeze_Entity,
8519 N_Freeze_Generic_Entity,
8520 N_Generic_Association,
8521 N_Handled_Sequence_Of_Statements,
8522 N_Index_Or_Discriminant_Constraint,
8523 N_Itype_Reference,
8524 N_Label,
8525 N_Modular_Type_Definition,
8526 N_Number_Declaration,
8527 N_Ordinary_Fixed_Point_Definition,
8528 N_Others_Choice,
8529 N_Package_Specification,
8530 N_Parameter_Association,
8531 N_Parameter_Specification,
8532 N_Pragma,
8533 N_Protected_Definition,
8534 N_Range_Constraint,
8535 N_Real_Range_Specification,
8536 N_Record_Definition,
8537 N_Signed_Integer_Type_Definition,
8538 N_Single_Protected_Declaration,
8539 N_Subunit,
8540 N_Task_Definition,
8541 N_Triggering_Alternative,
8542 N_Use_Type_Clause,
8543 N_Validate_Unchecked_Conversion,
8544 N_Variant,
8545 N_Variant_Part,
8546 N_With_Clause,
8547 N_Unused_At_End);
8549 for Node_Kind'Size use 8;
8550 -- The data structures in Atree assume this
8552 ----------------------------
8553 -- Node Class Definitions --
8554 ----------------------------
8556 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8557 N_Access_Function_Definition ..
8558 N_Access_Procedure_Definition;
8560 subtype N_Array_Type_Definition is Node_Kind range
8561 N_Constrained_Array_Definition ..
8562 N_Unconstrained_Array_Definition;
8564 subtype N_Binary_Op is Node_Kind range
8565 N_Op_Add ..
8566 N_Op_Shift_Right_Arithmetic;
8568 subtype N_Body_Stub is Node_Kind range
8569 N_Package_Body_Stub ..
8570 N_Task_Body_Stub;
8572 subtype N_Declaration is Node_Kind range
8573 N_Component_Declaration ..
8574 N_Procedure_Specification;
8575 -- Note: this includes all constructs normally thought of as declarations
8576 -- except those which are separately grouped as later declarations.
8578 subtype N_Delay_Statement is Node_Kind range
8579 N_Delay_Relative_Statement ..
8580 N_Delay_Until_Statement;
8582 subtype N_Direct_Name is Node_Kind range
8583 N_Identifier ..
8584 N_Character_Literal;
8586 subtype N_Entity is Node_Kind range
8587 N_Defining_Character_Literal ..
8588 N_Defining_Operator_Symbol;
8590 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8591 N_Formal_Abstract_Subprogram_Declaration ..
8592 N_Formal_Concrete_Subprogram_Declaration;
8594 subtype N_Generic_Declaration is Node_Kind range
8595 N_Generic_Package_Declaration ..
8596 N_Generic_Subprogram_Declaration;
8598 subtype N_Generic_Instantiation is Node_Kind range
8599 N_Function_Instantiation ..
8600 N_Package_Instantiation;
8602 subtype N_Generic_Renaming_Declaration is Node_Kind range
8603 N_Generic_Function_Renaming_Declaration ..
8604 N_Generic_Procedure_Renaming_Declaration;
8606 subtype N_Has_Chars is Node_Kind range
8607 N_Attribute_Definition_Clause ..
8608 N_Op_Plus;
8610 subtype N_Has_Entity is Node_Kind range
8611 N_Expanded_Name ..
8612 N_Attribute_Reference;
8613 -- Nodes that have Entity fields
8614 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8615 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8617 subtype N_Has_Etype is Node_Kind range
8618 N_Error ..
8619 N_Subtype_Indication;
8621 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8622 N_Op_Divide ..
8623 N_Op_Rem;
8625 subtype N_Multiplying_Operator is Node_Kind range
8626 N_Op_Divide ..
8627 N_Op_Rem;
8629 subtype N_Later_Decl_Item is Node_Kind range
8630 N_Task_Type_Declaration ..
8631 N_Generic_Subprogram_Declaration;
8632 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8633 -- only those items which can appear as later declarative items. This also
8634 -- includes N_Implicit_Label_Declaration which is not specifically in the
8635 -- grammar but may appear as a valid later declarative items. It does NOT
8636 -- include N_Pragma which can also appear among later declarative items.
8637 -- It does however include N_Protected_Body, which is a bit peculiar, but
8638 -- harmless since this cannot appear in Ada 83 mode anyway.
8640 subtype N_Membership_Test is Node_Kind range
8641 N_In ..
8642 N_Not_In;
8644 subtype N_Numeric_Or_String_Literal is Node_Kind range
8645 N_Integer_Literal ..
8646 N_String_Literal;
8648 subtype N_Op is Node_Kind range
8649 N_Op_Add ..
8650 N_Op_Plus;
8652 subtype N_Op_Boolean is Node_Kind range
8653 N_Op_And ..
8654 N_Op_Xor;
8655 -- Binary operators which take operands of a boolean type, and yield
8656 -- a result of a boolean type.
8658 subtype N_Op_Compare is Node_Kind range
8659 N_Op_Eq ..
8660 N_Op_Ne;
8662 subtype N_Op_Shift is Node_Kind range
8663 N_Op_Rotate_Left ..
8664 N_Op_Shift_Right_Arithmetic;
8666 subtype N_Proper_Body is Node_Kind range
8667 N_Package_Body ..
8668 N_Task_Body;
8670 subtype N_Push_xxx_Label is Node_Kind range
8671 N_Push_Constraint_Error_Label ..
8672 N_Push_Storage_Error_Label;
8674 subtype N_Pop_xxx_Label is Node_Kind range
8675 N_Pop_Constraint_Error_Label ..
8676 N_Pop_Storage_Error_Label;
8678 subtype N_Push_Pop_xxx_Label is Node_Kind range
8679 N_Push_Constraint_Error_Label ..
8680 N_Pop_Storage_Error_Label;
8682 subtype N_Raise_xxx_Error is Node_Kind range
8683 N_Raise_Constraint_Error ..
8684 N_Raise_Storage_Error;
8686 subtype N_Renaming_Declaration is Node_Kind range
8687 N_Exception_Renaming_Declaration ..
8688 N_Generic_Procedure_Renaming_Declaration;
8690 subtype N_Representation_Clause is Node_Kind range
8691 N_At_Clause ..
8692 N_Attribute_Definition_Clause;
8694 subtype N_Short_Circuit is Node_Kind range
8695 N_And_Then ..
8696 N_Or_Else;
8698 subtype N_SCIL_Node is Node_Kind range
8699 N_SCIL_Dispatch_Table_Tag_Init ..
8700 N_SCIL_Membership_Test;
8702 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8703 N_Abort_Statement ..
8704 N_If_Statement;
8705 -- Note that this includes all statement types except for the cases of the
8706 -- N_Procedure_Call_Statement which is considered to be a subexpression
8707 -- (since overloading is possible, so it needs to go through the normal
8708 -- overloading resolution for expressions).
8710 subtype N_Subprogram_Call is Node_Kind range
8711 N_Function_Call ..
8712 N_Procedure_Call_Statement;
8714 subtype N_Subprogram_Instantiation is Node_Kind range
8715 N_Function_Instantiation ..
8716 N_Procedure_Instantiation;
8718 subtype N_Has_Condition is Node_Kind range
8719 N_Exit_Statement ..
8720 N_Terminate_Alternative;
8721 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8723 subtype N_Subexpr is Node_Kind range
8724 N_Expanded_Name ..
8725 N_Unchecked_Type_Conversion;
8726 -- Nodes with expression fields
8728 subtype N_Subprogram_Specification is Node_Kind range
8729 N_Function_Specification ..
8730 N_Procedure_Specification;
8732 subtype N_Unary_Op is Node_Kind range
8733 N_Op_Abs ..
8734 N_Op_Plus;
8736 subtype N_Unit_Body is Node_Kind range
8737 N_Package_Body ..
8738 N_Subprogram_Body;
8740 ---------------------------
8741 -- Node Access Functions --
8742 ---------------------------
8744 -- The following functions return the contents of the indicated field of
8745 -- the node referenced by the argument, which is a Node_Id. They provide
8746 -- logical access to fields in the node which could be accessed using the
8747 -- Atree.Unchecked_Access package, but the idea is always to use these
8748 -- higher level routines which preserve strong typing. In debug mode,
8749 -- these routines check that they are being applied to an appropriate
8750 -- node, as well as checking that the node is in range.
8752 function ABE_Is_Certain
8753 (N : Node_Id) return Boolean; -- Flag18
8755 function Abort_Present
8756 (N : Node_Id) return Boolean; -- Flag15
8758 function Abortable_Part
8759 (N : Node_Id) return Node_Id; -- Node2
8761 function Abstract_Present
8762 (N : Node_Id) return Boolean; -- Flag4
8764 function Accept_Handler_Records
8765 (N : Node_Id) return List_Id; -- List5
8767 function Accept_Statement
8768 (N : Node_Id) return Node_Id; -- Node2
8770 function Access_Definition
8771 (N : Node_Id) return Node_Id; -- Node3
8773 function Access_To_Subprogram_Definition
8774 (N : Node_Id) return Node_Id; -- Node3
8776 function Access_Types_To_Process
8777 (N : Node_Id) return Elist_Id; -- Elist2
8779 function Actions
8780 (N : Node_Id) return List_Id; -- List1
8782 function Activation_Chain_Entity
8783 (N : Node_Id) return Node_Id; -- Node3
8785 function Acts_As_Spec
8786 (N : Node_Id) return Boolean; -- Flag4
8788 function Actual_Designated_Subtype
8789 (N : Node_Id) return Node_Id; -- Node4
8791 function Address_Warning_Posted
8792 (N : Node_Id) return Boolean; -- Flag18
8794 function Aggregate_Bounds
8795 (N : Node_Id) return Node_Id; -- Node3
8797 function Aliased_Present
8798 (N : Node_Id) return Boolean; -- Flag4
8800 function All_Others
8801 (N : Node_Id) return Boolean; -- Flag11
8803 function All_Present
8804 (N : Node_Id) return Boolean; -- Flag15
8806 function Alternatives
8807 (N : Node_Id) return List_Id; -- List4
8809 function Ancestor_Part
8810 (N : Node_Id) return Node_Id; -- Node3
8812 function Atomic_Sync_Required
8813 (N : Node_Id) return Boolean; -- Flag14
8815 function Array_Aggregate
8816 (N : Node_Id) return Node_Id; -- Node3
8818 function Aspect_Rep_Item
8819 (N : Node_Id) return Node_Id; -- Node2
8821 function Assignment_OK
8822 (N : Node_Id) return Boolean; -- Flag15
8824 function Associated_Node
8825 (N : Node_Id) return Node_Id; -- Node4
8827 function At_End_Proc
8828 (N : Node_Id) return Node_Id; -- Node1
8830 function Attribute_Name
8831 (N : Node_Id) return Name_Id; -- Name2
8833 function Aux_Decls_Node
8834 (N : Node_Id) return Node_Id; -- Node5
8836 function Backwards_OK
8837 (N : Node_Id) return Boolean; -- Flag6
8839 function Bad_Is_Detected
8840 (N : Node_Id) return Boolean; -- Flag15
8842 function By_Ref
8843 (N : Node_Id) return Boolean; -- Flag5
8845 function Body_Required
8846 (N : Node_Id) return Boolean; -- Flag13
8848 function Body_To_Inline
8849 (N : Node_Id) return Node_Id; -- Node3
8851 function Box_Present
8852 (N : Node_Id) return Boolean; -- Flag15
8854 function Char_Literal_Value
8855 (N : Node_Id) return Uint; -- Uint2
8857 function Chars
8858 (N : Node_Id) return Name_Id; -- Name1
8860 function Check_Address_Alignment
8861 (N : Node_Id) return Boolean; -- Flag11
8863 function Choice_Parameter
8864 (N : Node_Id) return Node_Id; -- Node2
8866 function Choices
8867 (N : Node_Id) return List_Id; -- List1
8869 function Class_Present
8870 (N : Node_Id) return Boolean; -- Flag6
8872 function Classifications
8873 (N : Node_Id) return Node_Id; -- Node3
8875 function Cleanup_Actions
8876 (N : Node_Id) return List_Id; -- List5
8878 function Comes_From_Extended_Return_Statement
8879 (N : Node_Id) return Boolean; -- Flag18
8881 function Compile_Time_Known_Aggregate
8882 (N : Node_Id) return Boolean; -- Flag18
8884 function Component_Associations
8885 (N : Node_Id) return List_Id; -- List2
8887 function Component_Clauses
8888 (N : Node_Id) return List_Id; -- List3
8890 function Component_Definition
8891 (N : Node_Id) return Node_Id; -- Node4
8893 function Component_Items
8894 (N : Node_Id) return List_Id; -- List3
8896 function Component_List
8897 (N : Node_Id) return Node_Id; -- Node1
8899 function Component_Name
8900 (N : Node_Id) return Node_Id; -- Node1
8902 function Componentwise_Assignment
8903 (N : Node_Id) return Boolean; -- Flag14
8905 function Condition
8906 (N : Node_Id) return Node_Id; -- Node1
8908 function Condition_Actions
8909 (N : Node_Id) return List_Id; -- List3
8911 function Config_Pragmas
8912 (N : Node_Id) return List_Id; -- List4
8914 function Constant_Present
8915 (N : Node_Id) return Boolean; -- Flag17
8917 function Constraint
8918 (N : Node_Id) return Node_Id; -- Node3
8920 function Constraints
8921 (N : Node_Id) return List_Id; -- List1
8923 function Context_Installed
8924 (N : Node_Id) return Boolean; -- Flag13
8926 function Context_Pending
8927 (N : Node_Id) return Boolean; -- Flag16
8929 function Context_Items
8930 (N : Node_Id) return List_Id; -- List1
8932 function Contract_Test_Cases
8933 (N : Node_Id) return Node_Id; -- Node2
8935 function Controlling_Argument
8936 (N : Node_Id) return Node_Id; -- Node1
8938 function Conversion_OK
8939 (N : Node_Id) return Boolean; -- Flag14
8941 function Convert_To_Return_False
8942 (N : Node_Id) return Boolean; -- Flag13
8944 function Corresponding_Aspect
8945 (N : Node_Id) return Node_Id; -- Node3
8947 function Corresponding_Body
8948 (N : Node_Id) return Node_Id; -- Node5
8950 function Corresponding_Formal_Spec
8951 (N : Node_Id) return Node_Id; -- Node3
8953 function Corresponding_Generic_Association
8954 (N : Node_Id) return Node_Id; -- Node5
8956 function Corresponding_Integer_Value
8957 (N : Node_Id) return Uint; -- Uint4
8959 function Corresponding_Spec
8960 (N : Node_Id) return Node_Id; -- Node5
8962 function Corresponding_Spec_Of_Stub
8963 (N : Node_Id) return Node_Id; -- Node2
8965 function Corresponding_Stub
8966 (N : Node_Id) return Node_Id; -- Node3
8968 function Dcheck_Function
8969 (N : Node_Id) return Entity_Id; -- Node5
8971 function Declarations
8972 (N : Node_Id) return List_Id; -- List2
8974 function Default_Expression
8975 (N : Node_Id) return Node_Id; -- Node5
8977 function Default_Storage_Pool
8978 (N : Node_Id) return Node_Id; -- Node3
8980 function Default_Name
8981 (N : Node_Id) return Node_Id; -- Node2
8983 function Defining_Identifier
8984 (N : Node_Id) return Entity_Id; -- Node1
8986 function Defining_Unit_Name
8987 (N : Node_Id) return Node_Id; -- Node1
8989 function Delay_Alternative
8990 (N : Node_Id) return Node_Id; -- Node4
8992 function Delay_Statement
8993 (N : Node_Id) return Node_Id; -- Node2
8995 function Delta_Expression
8996 (N : Node_Id) return Node_Id; -- Node3
8998 function Digits_Expression
8999 (N : Node_Id) return Node_Id; -- Node2
9001 function Discr_Check_Funcs_Built
9002 (N : Node_Id) return Boolean; -- Flag11
9004 function Discrete_Choices
9005 (N : Node_Id) return List_Id; -- List4
9007 function Discrete_Range
9008 (N : Node_Id) return Node_Id; -- Node4
9010 function Discrete_Subtype_Definition
9011 (N : Node_Id) return Node_Id; -- Node4
9013 function Discrete_Subtype_Definitions
9014 (N : Node_Id) return List_Id; -- List2
9016 function Discriminant_Specifications
9017 (N : Node_Id) return List_Id; -- List4
9019 function Discriminant_Type
9020 (N : Node_Id) return Node_Id; -- Node5
9022 function Do_Accessibility_Check
9023 (N : Node_Id) return Boolean; -- Flag13
9025 function Do_Discriminant_Check
9026 (N : Node_Id) return Boolean; -- Flag1
9028 function Do_Division_Check
9029 (N : Node_Id) return Boolean; -- Flag13
9031 function Do_Length_Check
9032 (N : Node_Id) return Boolean; -- Flag4
9034 function Do_Overflow_Check
9035 (N : Node_Id) return Boolean; -- Flag17
9037 function Do_Range_Check
9038 (N : Node_Id) return Boolean; -- Flag9
9040 function Do_Storage_Check
9041 (N : Node_Id) return Boolean; -- Flag17
9043 function Do_Tag_Check
9044 (N : Node_Id) return Boolean; -- Flag13
9046 function Elaborate_All_Desirable
9047 (N : Node_Id) return Boolean; -- Flag9
9049 function Elaborate_All_Present
9050 (N : Node_Id) return Boolean; -- Flag14
9052 function Elaborate_Desirable
9053 (N : Node_Id) return Boolean; -- Flag11
9055 function Elaborate_Present
9056 (N : Node_Id) return Boolean; -- Flag4
9058 function Else_Actions
9059 (N : Node_Id) return List_Id; -- List3
9061 function Else_Statements
9062 (N : Node_Id) return List_Id; -- List4
9064 function Elsif_Parts
9065 (N : Node_Id) return List_Id; -- List3
9067 function Enclosing_Variant
9068 (N : Node_Id) return Node_Id; -- Node2
9070 function End_Label
9071 (N : Node_Id) return Node_Id; -- Node4
9073 function End_Span
9074 (N : Node_Id) return Uint; -- Uint5
9076 function Entity
9077 (N : Node_Id) return Node_Id; -- Node4
9079 function Entity_Or_Associated_Node
9080 (N : Node_Id) return Node_Id; -- Node4
9082 function Entry_Body_Formal_Part
9083 (N : Node_Id) return Node_Id; -- Node5
9085 function Entry_Call_Alternative
9086 (N : Node_Id) return Node_Id; -- Node1
9088 function Entry_Call_Statement
9089 (N : Node_Id) return Node_Id; -- Node1
9091 function Entry_Direct_Name
9092 (N : Node_Id) return Node_Id; -- Node1
9094 function Entry_Index
9095 (N : Node_Id) return Node_Id; -- Node5
9097 function Entry_Index_Specification
9098 (N : Node_Id) return Node_Id; -- Node4
9100 function Etype
9101 (N : Node_Id) return Node_Id; -- Node5
9103 function Exception_Choices
9104 (N : Node_Id) return List_Id; -- List4
9106 function Exception_Handlers
9107 (N : Node_Id) return List_Id; -- List5
9109 function Exception_Junk
9110 (N : Node_Id) return Boolean; -- Flag8
9112 function Exception_Label
9113 (N : Node_Id) return Node_Id; -- Node5
9115 function Explicit_Actual_Parameter
9116 (N : Node_Id) return Node_Id; -- Node3
9118 function Expansion_Delayed
9119 (N : Node_Id) return Boolean; -- Flag11
9121 function Explicit_Generic_Actual_Parameter
9122 (N : Node_Id) return Node_Id; -- Node1
9124 function Expression
9125 (N : Node_Id) return Node_Id; -- Node3
9127 function Expressions
9128 (N : Node_Id) return List_Id; -- List1
9130 function First_Bit
9131 (N : Node_Id) return Node_Id; -- Node3
9133 function First_Inlined_Subprogram
9134 (N : Node_Id) return Entity_Id; -- Node3
9136 function First_Name
9137 (N : Node_Id) return Boolean; -- Flag5
9139 function First_Named_Actual
9140 (N : Node_Id) return Node_Id; -- Node4
9142 function First_Real_Statement
9143 (N : Node_Id) return Node_Id; -- Node2
9145 function First_Subtype_Link
9146 (N : Node_Id) return Entity_Id; -- Node5
9148 function Float_Truncate
9149 (N : Node_Id) return Boolean; -- Flag11
9151 function Formal_Type_Definition
9152 (N : Node_Id) return Node_Id; -- Node3
9154 function Forwards_OK
9155 (N : Node_Id) return Boolean; -- Flag5
9157 function From_Aspect_Specification
9158 (N : Node_Id) return Boolean; -- Flag13
9160 function From_At_End
9161 (N : Node_Id) return Boolean; -- Flag4
9163 function From_At_Mod
9164 (N : Node_Id) return Boolean; -- Flag4
9166 function From_Conditional_Expression
9167 (N : Node_Id) return Boolean; -- Flag1
9169 function From_Default
9170 (N : Node_Id) return Boolean; -- Flag6
9172 function Generalized_Indexing
9173 (N : Node_Id) return Node_Id; -- Node4
9174 function Generic_Associations
9175 (N : Node_Id) return List_Id; -- List3
9177 function Generic_Formal_Declarations
9178 (N : Node_Id) return List_Id; -- List2
9180 function Generic_Parent
9181 (N : Node_Id) return Node_Id; -- Node5
9183 function Generic_Parent_Type
9184 (N : Node_Id) return Node_Id; -- Node4
9186 function Handled_Statement_Sequence
9187 (N : Node_Id) return Node_Id; -- Node4
9189 function Handler_List_Entry
9190 (N : Node_Id) return Node_Id; -- Node2
9192 function Has_Created_Identifier
9193 (N : Node_Id) return Boolean; -- Flag15
9195 function Has_Dereference_Action
9196 (N : Node_Id) return Boolean; -- Flag13
9198 function Has_Dynamic_Length_Check
9199 (N : Node_Id) return Boolean; -- Flag10
9201 function Has_Dynamic_Range_Check
9202 (N : Node_Id) return Boolean; -- Flag12
9204 function Has_Init_Expression
9205 (N : Node_Id) return Boolean; -- Flag14
9207 function Has_Local_Raise
9208 (N : Node_Id) return Boolean; -- Flag8
9210 function Has_No_Elaboration_Code
9211 (N : Node_Id) return Boolean; -- Flag17
9213 function Has_Pragma_Suppress_All
9214 (N : Node_Id) return Boolean; -- Flag14
9216 function Has_Private_View
9217 (N : Node_Id) return Boolean; -- Flag11
9219 function Has_Relative_Deadline_Pragma
9220 (N : Node_Id) return Boolean; -- Flag9
9222 function Has_Self_Reference
9223 (N : Node_Id) return Boolean; -- Flag13
9225 function Has_SP_Choice
9226 (N : Node_Id) return Boolean; -- Flag15
9228 function Has_Storage_Size_Pragma
9229 (N : Node_Id) return Boolean; -- Flag5
9231 function Has_Wide_Character
9232 (N : Node_Id) return Boolean; -- Flag11
9234 function Has_Wide_Wide_Character
9235 (N : Node_Id) return Boolean; -- Flag13
9237 function Header_Size_Added
9238 (N : Node_Id) return Boolean; -- Flag11
9240 function Hidden_By_Use_Clause
9241 (N : Node_Id) return Elist_Id; -- Elist4
9243 function High_Bound
9244 (N : Node_Id) return Node_Id; -- Node2
9246 function Identifier
9247 (N : Node_Id) return Node_Id; -- Node1
9249 function Interface_List
9250 (N : Node_Id) return List_Id; -- List2
9252 function Interface_Present
9253 (N : Node_Id) return Boolean; -- Flag16
9255 function Implicit_With
9256 (N : Node_Id) return Boolean; -- Flag16
9258 function Implicit_With_From_Instantiation
9259 (N : Node_Id) return Boolean; -- Flag12
9261 function Import_Interface_Present
9262 (N : Node_Id) return Boolean; -- Flag16
9264 function In_Present
9265 (N : Node_Id) return Boolean; -- Flag15
9267 function Includes_Infinities
9268 (N : Node_Id) return Boolean; -- Flag11
9270 function Incomplete_View
9271 (N : Node_Id) return Node_Id; -- Node2
9273 function Inherited_Discriminant
9274 (N : Node_Id) return Boolean; -- Flag13
9276 function Instance_Spec
9277 (N : Node_Id) return Node_Id; -- Node5
9279 function Intval
9280 (N : Node_Id) return Uint; -- Uint3
9282 function Is_Accessibility_Actual
9283 (N : Node_Id) return Boolean; -- Flag13
9285 function Is_Asynchronous_Call_Block
9286 (N : Node_Id) return Boolean; -- Flag7
9288 function Is_Boolean_Aspect
9289 (N : Node_Id) return Boolean; -- Flag16
9291 function Is_Checked
9292 (N : Node_Id) return Boolean; -- Flag11
9294 function Is_Component_Left_Opnd
9295 (N : Node_Id) return Boolean; -- Flag13
9297 function Is_Component_Right_Opnd
9298 (N : Node_Id) return Boolean; -- Flag14
9300 function Is_Controlling_Actual
9301 (N : Node_Id) return Boolean; -- Flag16
9303 function Is_Delayed_Aspect
9304 (N : Node_Id) return Boolean; -- Flag14
9306 function Is_Disabled
9307 (N : Node_Id) return Boolean; -- Flag15
9309 function Is_Dynamic_Coextension
9310 (N : Node_Id) return Boolean; -- Flag18
9312 function Is_Elsif
9313 (N : Node_Id) return Boolean; -- Flag13
9315 function Is_Entry_Barrier_Function
9316 (N : Node_Id) return Boolean; -- Flag8
9318 function Is_Expanded_Build_In_Place_Call
9319 (N : Node_Id) return Boolean; -- Flag11
9321 function Is_Finalization_Wrapper
9322 (N : Node_Id) return Boolean; -- Flag9
9324 function Is_Folded_In_Parser
9325 (N : Node_Id) return Boolean; -- Flag4
9327 function Is_Generic_Contract_Pragma
9328 (N : Node_Id) return Boolean; -- Flag2
9330 function Is_Ghost_Pragma
9331 (N : Node_Id) return Boolean; -- Flag3
9333 function Is_Ignored
9334 (N : Node_Id) return Boolean; -- Flag9
9336 function Is_In_Discriminant_Check
9337 (N : Node_Id) return Boolean; -- Flag11
9339 function Is_Inherited
9340 (N : Node_Id) return Boolean; -- Flag4
9342 function Is_Machine_Number
9343 (N : Node_Id) return Boolean; -- Flag11
9345 function Is_Null_Loop
9346 (N : Node_Id) return Boolean; -- Flag16
9348 function Is_Overloaded
9349 (N : Node_Id) return Boolean; -- Flag5
9351 function Is_Power_Of_2_For_Shift
9352 (N : Node_Id) return Boolean; -- Flag13
9354 function Is_Prefixed_Call
9355 (N : Node_Id) return Boolean; -- Flag17
9357 function Is_Protected_Subprogram_Body
9358 (N : Node_Id) return Boolean; -- Flag7
9360 function Is_Static_Coextension
9361 (N : Node_Id) return Boolean; -- Flag14
9363 function Is_Static_Expression
9364 (N : Node_Id) return Boolean; -- Flag6
9366 function Is_Subprogram_Descriptor
9367 (N : Node_Id) return Boolean; -- Flag16
9369 function Is_Task_Allocation_Block
9370 (N : Node_Id) return Boolean; -- Flag6
9372 function Is_Task_Master
9373 (N : Node_Id) return Boolean; -- Flag5
9375 function Iteration_Scheme
9376 (N : Node_Id) return Node_Id; -- Node2
9378 function Iterator_Specification
9379 (N : Node_Id) return Node_Id; -- Node2
9381 function Itype
9382 (N : Node_Id) return Entity_Id; -- Node1
9384 function Kill_Range_Check
9385 (N : Node_Id) return Boolean; -- Flag11
9387 function Label_Construct
9388 (N : Node_Id) return Node_Id; -- Node2
9390 function Left_Opnd
9391 (N : Node_Id) return Node_Id; -- Node2
9393 function Last_Bit
9394 (N : Node_Id) return Node_Id; -- Node4
9396 function Last_Name
9397 (N : Node_Id) return Boolean; -- Flag6
9399 function Library_Unit
9400 (N : Node_Id) return Node_Id; -- Node4
9402 function Limited_View_Installed
9403 (N : Node_Id) return Boolean; -- Flag18
9405 function Limited_Present
9406 (N : Node_Id) return Boolean; -- Flag17
9408 function Literals
9409 (N : Node_Id) return List_Id; -- List1
9411 function Local_Raise_Not_OK
9412 (N : Node_Id) return Boolean; -- Flag7
9414 function Local_Raise_Statements
9415 (N : Node_Id) return Elist_Id; -- Elist1
9417 function Loop_Actions
9418 (N : Node_Id) return List_Id; -- List2
9420 function Loop_Parameter_Specification
9421 (N : Node_Id) return Node_Id; -- Node4
9423 function Low_Bound
9424 (N : Node_Id) return Node_Id; -- Node1
9426 function Mod_Clause
9427 (N : Node_Id) return Node_Id; -- Node2
9429 function More_Ids
9430 (N : Node_Id) return Boolean; -- Flag5
9432 function Must_Be_Byte_Aligned
9433 (N : Node_Id) return Boolean; -- Flag14
9435 function Must_Not_Freeze
9436 (N : Node_Id) return Boolean; -- Flag8
9438 function Must_Not_Override
9439 (N : Node_Id) return Boolean; -- Flag15
9441 function Must_Override
9442 (N : Node_Id) return Boolean; -- Flag14
9444 function Name
9445 (N : Node_Id) return Node_Id; -- Node2
9447 function Names
9448 (N : Node_Id) return List_Id; -- List2
9450 function Next_Entity
9451 (N : Node_Id) return Node_Id; -- Node2
9453 function Next_Exit_Statement
9454 (N : Node_Id) return Node_Id; -- Node3
9456 function Next_Implicit_With
9457 (N : Node_Id) return Node_Id; -- Node3
9459 function Next_Named_Actual
9460 (N : Node_Id) return Node_Id; -- Node4
9462 function Next_Pragma
9463 (N : Node_Id) return Node_Id; -- Node1
9465 function Next_Rep_Item
9466 (N : Node_Id) return Node_Id; -- Node5
9468 function Next_Use_Clause
9469 (N : Node_Id) return Node_Id; -- Node3
9471 function No_Ctrl_Actions
9472 (N : Node_Id) return Boolean; -- Flag7
9474 function No_Elaboration_Check
9475 (N : Node_Id) return Boolean; -- Flag14
9477 function No_Entities_Ref_In_Spec
9478 (N : Node_Id) return Boolean; -- Flag8
9480 function No_Initialization
9481 (N : Node_Id) return Boolean; -- Flag13
9483 function No_Minimize_Eliminate
9484 (N : Node_Id) return Boolean; -- Flag17
9486 function No_Truncation
9487 (N : Node_Id) return Boolean; -- Flag17
9489 function Non_Aliased_Prefix
9490 (N : Node_Id) return Boolean; -- Flag18
9492 function Null_Present
9493 (N : Node_Id) return Boolean; -- Flag13
9495 function Null_Excluding_Subtype
9496 (N : Node_Id) return Boolean; -- Flag16
9498 function Null_Exclusion_Present
9499 (N : Node_Id) return Boolean; -- Flag11
9501 function Null_Exclusion_In_Return_Present
9502 (N : Node_Id) return Boolean; -- Flag14
9504 function Null_Record_Present
9505 (N : Node_Id) return Boolean; -- Flag17
9507 function Object_Definition
9508 (N : Node_Id) return Node_Id; -- Node4
9510 function Of_Present
9511 (N : Node_Id) return Boolean; -- Flag16
9513 function Original_Discriminant
9514 (N : Node_Id) return Node_Id; -- Node2
9516 function Original_Entity
9517 (N : Node_Id) return Entity_Id; -- Node2
9519 function Others_Discrete_Choices
9520 (N : Node_Id) return List_Id; -- List1
9522 function Out_Present
9523 (N : Node_Id) return Boolean; -- Flag17
9525 function Parameter_Associations
9526 (N : Node_Id) return List_Id; -- List3
9528 function Parameter_Specifications
9529 (N : Node_Id) return List_Id; -- List3
9531 function Parameter_Type
9532 (N : Node_Id) return Node_Id; -- Node2
9534 function Parent_Spec
9535 (N : Node_Id) return Node_Id; -- Node4
9537 function Position
9538 (N : Node_Id) return Node_Id; -- Node2
9540 function Pragma_Argument_Associations
9541 (N : Node_Id) return List_Id; -- List2
9543 function Pragma_Identifier
9544 (N : Node_Id) return Node_Id; -- Node4
9546 function Pragmas_After
9547 (N : Node_Id) return List_Id; -- List5
9549 function Pragmas_Before
9550 (N : Node_Id) return List_Id; -- List4
9552 function Pre_Post_Conditions
9553 (N : Node_Id) return Node_Id; -- Node1
9555 function Prefix
9556 (N : Node_Id) return Node_Id; -- Node3
9558 function Premature_Use
9559 (N : Node_Id) return Node_Id; -- Node5
9561 function Present_Expr
9562 (N : Node_Id) return Uint; -- Uint3
9564 function Prev_Ids
9565 (N : Node_Id) return Boolean; -- Flag6
9567 function Print_In_Hex
9568 (N : Node_Id) return Boolean; -- Flag13
9570 function Private_Declarations
9571 (N : Node_Id) return List_Id; -- List3
9573 function Private_Present
9574 (N : Node_Id) return Boolean; -- Flag15
9576 function Procedure_To_Call
9577 (N : Node_Id) return Node_Id; -- Node2
9579 function Proper_Body
9580 (N : Node_Id) return Node_Id; -- Node1
9582 function Protected_Definition
9583 (N : Node_Id) return Node_Id; -- Node3
9585 function Protected_Present
9586 (N : Node_Id) return Boolean; -- Flag6
9588 function Raises_Constraint_Error
9589 (N : Node_Id) return Boolean; -- Flag7
9591 function Range_Constraint
9592 (N : Node_Id) return Node_Id; -- Node4
9594 function Range_Expression
9595 (N : Node_Id) return Node_Id; -- Node4
9597 function Real_Range_Specification
9598 (N : Node_Id) return Node_Id; -- Node4
9600 function Realval
9601 (N : Node_Id) return Ureal; -- Ureal3
9603 function Reason
9604 (N : Node_Id) return Uint; -- Uint3
9606 function Record_Extension_Part
9607 (N : Node_Id) return Node_Id; -- Node3
9609 function Redundant_Use
9610 (N : Node_Id) return Boolean; -- Flag13
9612 function Renaming_Exception
9613 (N : Node_Id) return Node_Id; -- Node2
9615 function Result_Definition
9616 (N : Node_Id) return Node_Id; -- Node4
9618 function Return_Object_Declarations
9619 (N : Node_Id) return List_Id; -- List3
9621 function Return_Statement_Entity
9622 (N : Node_Id) return Node_Id; -- Node5
9624 function Reverse_Present
9625 (N : Node_Id) return Boolean; -- Flag15
9627 function Right_Opnd
9628 (N : Node_Id) return Node_Id; -- Node3
9630 function Rounded_Result
9631 (N : Node_Id) return Boolean; -- Flag18
9633 function SCIL_Controlling_Tag
9634 (N : Node_Id) return Node_Id; -- Node5
9636 function SCIL_Entity
9637 (N : Node_Id) return Node_Id; -- Node4
9639 function SCIL_Tag_Value
9640 (N : Node_Id) return Node_Id; -- Node5
9642 function SCIL_Target_Prim
9643 (N : Node_Id) return Node_Id; -- Node2
9645 function Scope
9646 (N : Node_Id) return Node_Id; -- Node3
9648 function Select_Alternatives
9649 (N : Node_Id) return List_Id; -- List1
9651 function Selector_Name
9652 (N : Node_Id) return Node_Id; -- Node2
9654 function Selector_Names
9655 (N : Node_Id) return List_Id; -- List1
9657 function Shift_Count_OK
9658 (N : Node_Id) return Boolean; -- Flag4
9660 function Source_Type
9661 (N : Node_Id) return Entity_Id; -- Node1
9663 function Specification
9664 (N : Node_Id) return Node_Id; -- Node1
9666 function Split_PPC
9667 (N : Node_Id) return Boolean; -- Flag17
9669 function Statements
9670 (N : Node_Id) return List_Id; -- List3
9672 function Storage_Pool
9673 (N : Node_Id) return Node_Id; -- Node1
9675 function Subpool_Handle_Name
9676 (N : Node_Id) return Node_Id; -- Node4
9678 function Strval
9679 (N : Node_Id) return String_Id; -- Str3
9681 function Subtype_Indication
9682 (N : Node_Id) return Node_Id; -- Node5
9684 function Subtype_Mark
9685 (N : Node_Id) return Node_Id; -- Node4
9687 function Subtype_Marks
9688 (N : Node_Id) return List_Id; -- List2
9690 function Suppress_Assignment_Checks
9691 (N : Node_Id) return Boolean; -- Flag18
9693 function Suppress_Loop_Warnings
9694 (N : Node_Id) return Boolean; -- Flag17
9696 function Synchronized_Present
9697 (N : Node_Id) return Boolean; -- Flag7
9699 function Tagged_Present
9700 (N : Node_Id) return Boolean; -- Flag15
9702 function Target_Type
9703 (N : Node_Id) return Entity_Id; -- Node2
9705 function Task_Definition
9706 (N : Node_Id) return Node_Id; -- Node3
9708 function Task_Present
9709 (N : Node_Id) return Boolean; -- Flag5
9711 function Then_Actions
9712 (N : Node_Id) return List_Id; -- List2
9714 function Then_Statements
9715 (N : Node_Id) return List_Id; -- List2
9717 function Treat_Fixed_As_Integer
9718 (N : Node_Id) return Boolean; -- Flag14
9720 function Triggering_Alternative
9721 (N : Node_Id) return Node_Id; -- Node1
9723 function Triggering_Statement
9724 (N : Node_Id) return Node_Id; -- Node1
9726 function TSS_Elist
9727 (N : Node_Id) return Elist_Id; -- Elist3
9729 function Type_Definition
9730 (N : Node_Id) return Node_Id; -- Node3
9732 function Uneval_Old_Accept
9733 (N : Node_Id) return Boolean; -- Flag7
9735 function Uneval_Old_Warn
9736 (N : Node_Id) return Boolean; -- Flag18
9738 function Unit
9739 (N : Node_Id) return Node_Id; -- Node2
9741 function Unknown_Discriminants_Present
9742 (N : Node_Id) return Boolean; -- Flag13
9744 function Unreferenced_In_Spec
9745 (N : Node_Id) return Boolean; -- Flag7
9747 function Variant_Part
9748 (N : Node_Id) return Node_Id; -- Node4
9750 function Variants
9751 (N : Node_Id) return List_Id; -- List1
9753 function Visible_Declarations
9754 (N : Node_Id) return List_Id; -- List2
9756 function Uninitialized_Variable
9757 (N : Node_Id) return Node_Id; -- Node3
9759 function Used_Operations
9760 (N : Node_Id) return Elist_Id; -- Elist5
9762 function Was_Originally_Stub
9763 (N : Node_Id) return Boolean; -- Flag13
9765 function Withed_Body
9766 (N : Node_Id) return Node_Id; -- Node1
9768 -- End functions (note used by xsinfo utility program to end processing)
9770 ----------------------------
9771 -- Node Update Procedures --
9772 ----------------------------
9774 -- These are the corresponding node update routines, which again provide
9775 -- a high level logical access with type checking. In addition to setting
9776 -- the indicated field of the node N to the given Val, in the case of
9777 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9778 -- point back to node N. This automates the setting of the parent pointer.
9780 procedure Set_ABE_Is_Certain
9781 (N : Node_Id; Val : Boolean := True); -- Flag18
9783 procedure Set_Abort_Present
9784 (N : Node_Id; Val : Boolean := True); -- Flag15
9786 procedure Set_Abortable_Part
9787 (N : Node_Id; Val : Node_Id); -- Node2
9789 procedure Set_Abstract_Present
9790 (N : Node_Id; Val : Boolean := True); -- Flag4
9792 procedure Set_Accept_Handler_Records
9793 (N : Node_Id; Val : List_Id); -- List5
9795 procedure Set_Accept_Statement
9796 (N : Node_Id; Val : Node_Id); -- Node2
9798 procedure Set_Access_Definition
9799 (N : Node_Id; Val : Node_Id); -- Node3
9801 procedure Set_Access_To_Subprogram_Definition
9802 (N : Node_Id; Val : Node_Id); -- Node3
9804 procedure Set_Access_Types_To_Process
9805 (N : Node_Id; Val : Elist_Id); -- Elist2
9807 procedure Set_Actions
9808 (N : Node_Id; Val : List_Id); -- List1
9810 procedure Set_Activation_Chain_Entity
9811 (N : Node_Id; Val : Node_Id); -- Node3
9813 procedure Set_Acts_As_Spec
9814 (N : Node_Id; Val : Boolean := True); -- Flag4
9816 procedure Set_Actual_Designated_Subtype
9817 (N : Node_Id; Val : Node_Id); -- Node4
9819 procedure Set_Address_Warning_Posted
9820 (N : Node_Id; Val : Boolean := True); -- Flag18
9822 procedure Set_Aggregate_Bounds
9823 (N : Node_Id; Val : Node_Id); -- Node3
9825 procedure Set_Aliased_Present
9826 (N : Node_Id; Val : Boolean := True); -- Flag4
9828 procedure Set_All_Others
9829 (N : Node_Id; Val : Boolean := True); -- Flag11
9831 procedure Set_All_Present
9832 (N : Node_Id; Val : Boolean := True); -- Flag15
9834 procedure Set_Alternatives
9835 (N : Node_Id; Val : List_Id); -- List4
9837 procedure Set_Ancestor_Part
9838 (N : Node_Id; Val : Node_Id); -- Node3
9840 procedure Set_Atomic_Sync_Required
9841 (N : Node_Id; Val : Boolean := True); -- Flag14
9843 procedure Set_Array_Aggregate
9844 (N : Node_Id; Val : Node_Id); -- Node3
9846 procedure Set_Aspect_Rep_Item
9847 (N : Node_Id; Val : Node_Id); -- Node2
9849 procedure Set_Assignment_OK
9850 (N : Node_Id; Val : Boolean := True); -- Flag15
9852 procedure Set_Associated_Node
9853 (N : Node_Id; Val : Node_Id); -- Node4
9855 procedure Set_Attribute_Name
9856 (N : Node_Id; Val : Name_Id); -- Name2
9858 procedure Set_At_End_Proc
9859 (N : Node_Id; Val : Node_Id); -- Node1
9861 procedure Set_Aux_Decls_Node
9862 (N : Node_Id; Val : Node_Id); -- Node5
9864 procedure Set_Backwards_OK
9865 (N : Node_Id; Val : Boolean := True); -- Flag6
9867 procedure Set_Bad_Is_Detected
9868 (N : Node_Id; Val : Boolean := True); -- Flag15
9870 procedure Set_Body_Required
9871 (N : Node_Id; Val : Boolean := True); -- Flag13
9873 procedure Set_Body_To_Inline
9874 (N : Node_Id; Val : Node_Id); -- Node3
9876 procedure Set_Box_Present
9877 (N : Node_Id; Val : Boolean := True); -- Flag15
9879 procedure Set_By_Ref
9880 (N : Node_Id; Val : Boolean := True); -- Flag5
9882 procedure Set_Char_Literal_Value
9883 (N : Node_Id; Val : Uint); -- Uint2
9885 procedure Set_Chars
9886 (N : Node_Id; Val : Name_Id); -- Name1
9888 procedure Set_Check_Address_Alignment
9889 (N : Node_Id; Val : Boolean := True); -- Flag11
9891 procedure Set_Choice_Parameter
9892 (N : Node_Id; Val : Node_Id); -- Node2
9894 procedure Set_Choices
9895 (N : Node_Id; Val : List_Id); -- List1
9897 procedure Set_Class_Present
9898 (N : Node_Id; Val : Boolean := True); -- Flag6
9900 procedure Set_Classifications
9901 (N : Node_Id; Val : Node_Id); -- Node3
9903 procedure Set_Cleanup_Actions
9904 (N : Node_Id; Val : List_Id); -- List5
9906 procedure Set_Comes_From_Extended_Return_Statement
9907 (N : Node_Id; Val : Boolean := True); -- Flag18
9909 procedure Set_Compile_Time_Known_Aggregate
9910 (N : Node_Id; Val : Boolean := True); -- Flag18
9912 procedure Set_Component_Associations
9913 (N : Node_Id; Val : List_Id); -- List2
9915 procedure Set_Component_Clauses
9916 (N : Node_Id; Val : List_Id); -- List3
9918 procedure Set_Component_Definition
9919 (N : Node_Id; Val : Node_Id); -- Node4
9921 procedure Set_Component_Items
9922 (N : Node_Id; Val : List_Id); -- List3
9924 procedure Set_Component_List
9925 (N : Node_Id; Val : Node_Id); -- Node1
9927 procedure Set_Component_Name
9928 (N : Node_Id; Val : Node_Id); -- Node1
9930 procedure Set_Componentwise_Assignment
9931 (N : Node_Id; Val : Boolean := True); -- Flag14
9933 procedure Set_Condition
9934 (N : Node_Id; Val : Node_Id); -- Node1
9936 procedure Set_Condition_Actions
9937 (N : Node_Id; Val : List_Id); -- List3
9939 procedure Set_Config_Pragmas
9940 (N : Node_Id; Val : List_Id); -- List4
9942 procedure Set_Constant_Present
9943 (N : Node_Id; Val : Boolean := True); -- Flag17
9945 procedure Set_Constraint
9946 (N : Node_Id; Val : Node_Id); -- Node3
9948 procedure Set_Constraints
9949 (N : Node_Id; Val : List_Id); -- List1
9951 procedure Set_Context_Installed
9952 (N : Node_Id; Val : Boolean := True); -- Flag13
9954 procedure Set_Context_Items
9955 (N : Node_Id; Val : List_Id); -- List1
9957 procedure Set_Context_Pending
9958 (N : Node_Id; Val : Boolean := True); -- Flag16
9960 procedure Set_Contract_Test_Cases
9961 (N : Node_Id; Val : Node_Id); -- Node2
9963 procedure Set_Controlling_Argument
9964 (N : Node_Id; Val : Node_Id); -- Node1
9966 procedure Set_Conversion_OK
9967 (N : Node_Id; Val : Boolean := True); -- Flag14
9969 procedure Set_Convert_To_Return_False
9970 (N : Node_Id; Val : Boolean := True); -- Flag13
9972 procedure Set_Corresponding_Aspect
9973 (N : Node_Id; Val : Node_Id); -- Node3
9975 procedure Set_Corresponding_Body
9976 (N : Node_Id; Val : Node_Id); -- Node5
9978 procedure Set_Corresponding_Formal_Spec
9979 (N : Node_Id; Val : Node_Id); -- Node3
9981 procedure Set_Corresponding_Generic_Association
9982 (N : Node_Id; Val : Node_Id); -- Node5
9984 procedure Set_Corresponding_Integer_Value
9985 (N : Node_Id; Val : Uint); -- Uint4
9987 procedure Set_Corresponding_Spec
9988 (N : Node_Id; Val : Node_Id); -- Node5
9990 procedure Set_Corresponding_Spec_Of_Stub
9991 (N : Node_Id; Val : Node_Id); -- Node2
9993 procedure Set_Corresponding_Stub
9994 (N : Node_Id; Val : Node_Id); -- Node3
9996 procedure Set_Dcheck_Function
9997 (N : Node_Id; Val : Entity_Id); -- Node5
9999 procedure Set_Declarations
10000 (N : Node_Id; Val : List_Id); -- List2
10002 procedure Set_Default_Expression
10003 (N : Node_Id; Val : Node_Id); -- Node5
10005 procedure Set_Default_Storage_Pool
10006 (N : Node_Id; Val : Node_Id); -- Node3
10008 procedure Set_Default_Name
10009 (N : Node_Id; Val : Node_Id); -- Node2
10011 procedure Set_Defining_Identifier
10012 (N : Node_Id; Val : Entity_Id); -- Node1
10014 procedure Set_Defining_Unit_Name
10015 (N : Node_Id; Val : Node_Id); -- Node1
10017 procedure Set_Delay_Alternative
10018 (N : Node_Id; Val : Node_Id); -- Node4
10020 procedure Set_Delay_Statement
10021 (N : Node_Id; Val : Node_Id); -- Node2
10023 procedure Set_Delta_Expression
10024 (N : Node_Id; Val : Node_Id); -- Node3
10026 procedure Set_Digits_Expression
10027 (N : Node_Id; Val : Node_Id); -- Node2
10029 procedure Set_Discr_Check_Funcs_Built
10030 (N : Node_Id; Val : Boolean := True); -- Flag11
10032 procedure Set_Discrete_Choices
10033 (N : Node_Id; Val : List_Id); -- List4
10035 procedure Set_Discrete_Range
10036 (N : Node_Id; Val : Node_Id); -- Node4
10038 procedure Set_Discrete_Subtype_Definition
10039 (N : Node_Id; Val : Node_Id); -- Node4
10041 procedure Set_Discrete_Subtype_Definitions
10042 (N : Node_Id; Val : List_Id); -- List2
10044 procedure Set_Discriminant_Specifications
10045 (N : Node_Id; Val : List_Id); -- List4
10047 procedure Set_Discriminant_Type
10048 (N : Node_Id; Val : Node_Id); -- Node5
10050 procedure Set_Do_Accessibility_Check
10051 (N : Node_Id; Val : Boolean := True); -- Flag13
10053 procedure Set_Do_Discriminant_Check
10054 (N : Node_Id; Val : Boolean := True); -- Flag1
10056 procedure Set_Do_Division_Check
10057 (N : Node_Id; Val : Boolean := True); -- Flag13
10059 procedure Set_Do_Length_Check
10060 (N : Node_Id; Val : Boolean := True); -- Flag4
10062 procedure Set_Do_Overflow_Check
10063 (N : Node_Id; Val : Boolean := True); -- Flag17
10065 procedure Set_Do_Range_Check
10066 (N : Node_Id; Val : Boolean := True); -- Flag9
10068 procedure Set_Do_Storage_Check
10069 (N : Node_Id; Val : Boolean := True); -- Flag17
10071 procedure Set_Do_Tag_Check
10072 (N : Node_Id; Val : Boolean := True); -- Flag13
10074 procedure Set_Elaborate_All_Desirable
10075 (N : Node_Id; Val : Boolean := True); -- Flag9
10077 procedure Set_Elaborate_All_Present
10078 (N : Node_Id; Val : Boolean := True); -- Flag14
10080 procedure Set_Elaborate_Desirable
10081 (N : Node_Id; Val : Boolean := True); -- Flag11
10083 procedure Set_Elaborate_Present
10084 (N : Node_Id; Val : Boolean := True); -- Flag4
10086 procedure Set_Else_Actions
10087 (N : Node_Id; Val : List_Id); -- List3
10089 procedure Set_Else_Statements
10090 (N : Node_Id; Val : List_Id); -- List4
10092 procedure Set_Elsif_Parts
10093 (N : Node_Id; Val : List_Id); -- List3
10095 procedure Set_Enclosing_Variant
10096 (N : Node_Id; Val : Node_Id); -- Node2
10098 procedure Set_End_Label
10099 (N : Node_Id; Val : Node_Id); -- Node4
10101 procedure Set_End_Span
10102 (N : Node_Id; Val : Uint); -- Uint5
10104 procedure Set_Entity
10105 (N : Node_Id; Val : Node_Id); -- Node4
10107 procedure Set_Entry_Body_Formal_Part
10108 (N : Node_Id; Val : Node_Id); -- Node5
10110 procedure Set_Entry_Call_Alternative
10111 (N : Node_Id; Val : Node_Id); -- Node1
10113 procedure Set_Entry_Call_Statement
10114 (N : Node_Id; Val : Node_Id); -- Node1
10116 procedure Set_Entry_Direct_Name
10117 (N : Node_Id; Val : Node_Id); -- Node1
10119 procedure Set_Entry_Index
10120 (N : Node_Id; Val : Node_Id); -- Node5
10122 procedure Set_Entry_Index_Specification
10123 (N : Node_Id; Val : Node_Id); -- Node4
10125 procedure Set_Etype
10126 (N : Node_Id; Val : Node_Id); -- Node5
10128 procedure Set_Exception_Choices
10129 (N : Node_Id; Val : List_Id); -- List4
10131 procedure Set_Exception_Handlers
10132 (N : Node_Id; Val : List_Id); -- List5
10134 procedure Set_Exception_Junk
10135 (N : Node_Id; Val : Boolean := True); -- Flag8
10137 procedure Set_Exception_Label
10138 (N : Node_Id; Val : Node_Id); -- Node5
10140 procedure Set_Expansion_Delayed
10141 (N : Node_Id; Val : Boolean := True); -- Flag11
10143 procedure Set_Explicit_Actual_Parameter
10144 (N : Node_Id; Val : Node_Id); -- Node3
10146 procedure Set_Explicit_Generic_Actual_Parameter
10147 (N : Node_Id; Val : Node_Id); -- Node1
10149 procedure Set_Expression
10150 (N : Node_Id; Val : Node_Id); -- Node3
10152 procedure Set_Expressions
10153 (N : Node_Id; Val : List_Id); -- List1
10155 procedure Set_First_Bit
10156 (N : Node_Id; Val : Node_Id); -- Node3
10158 procedure Set_First_Inlined_Subprogram
10159 (N : Node_Id; Val : Entity_Id); -- Node3
10161 procedure Set_First_Name
10162 (N : Node_Id; Val : Boolean := True); -- Flag5
10164 procedure Set_First_Named_Actual
10165 (N : Node_Id; Val : Node_Id); -- Node4
10167 procedure Set_First_Real_Statement
10168 (N : Node_Id; Val : Node_Id); -- Node2
10170 procedure Set_First_Subtype_Link
10171 (N : Node_Id; Val : Entity_Id); -- Node5
10173 procedure Set_Float_Truncate
10174 (N : Node_Id; Val : Boolean := True); -- Flag11
10176 procedure Set_Formal_Type_Definition
10177 (N : Node_Id; Val : Node_Id); -- Node3
10179 procedure Set_Forwards_OK
10180 (N : Node_Id; Val : Boolean := True); -- Flag5
10182 procedure Set_From_Aspect_Specification
10183 (N : Node_Id; Val : Boolean := True); -- Flag13
10185 procedure Set_From_At_End
10186 (N : Node_Id; Val : Boolean := True); -- Flag4
10188 procedure Set_From_At_Mod
10189 (N : Node_Id; Val : Boolean := True); -- Flag4
10191 procedure Set_From_Conditional_Expression
10192 (N : Node_Id; Val : Boolean := True); -- Flag1
10194 procedure Set_From_Default
10195 (N : Node_Id; Val : Boolean := True); -- Flag6
10197 procedure Set_Generalized_Indexing
10198 (N : Node_Id; Val : Node_Id); -- Node4
10200 procedure Set_Generic_Associations
10201 (N : Node_Id; Val : List_Id); -- List3
10203 procedure Set_Generic_Formal_Declarations
10204 (N : Node_Id; Val : List_Id); -- List2
10206 procedure Set_Generic_Parent
10207 (N : Node_Id; Val : Node_Id); -- Node5
10209 procedure Set_Generic_Parent_Type
10210 (N : Node_Id; Val : Node_Id); -- Node4
10212 procedure Set_Handled_Statement_Sequence
10213 (N : Node_Id; Val : Node_Id); -- Node4
10215 procedure Set_Handler_List_Entry
10216 (N : Node_Id; Val : Node_Id); -- Node2
10218 procedure Set_Has_Created_Identifier
10219 (N : Node_Id; Val : Boolean := True); -- Flag15
10221 procedure Set_Has_Dereference_Action
10222 (N : Node_Id; Val : Boolean := True); -- Flag13
10224 procedure Set_Has_Dynamic_Length_Check
10225 (N : Node_Id; Val : Boolean := True); -- Flag10
10227 procedure Set_Has_Dynamic_Range_Check
10228 (N : Node_Id; Val : Boolean := True); -- Flag12
10230 procedure Set_Has_Init_Expression
10231 (N : Node_Id; Val : Boolean := True); -- Flag14
10233 procedure Set_Has_Local_Raise
10234 (N : Node_Id; Val : Boolean := True); -- Flag8
10236 procedure Set_Has_No_Elaboration_Code
10237 (N : Node_Id; Val : Boolean := True); -- Flag17
10239 procedure Set_Has_Pragma_Suppress_All
10240 (N : Node_Id; Val : Boolean := True); -- Flag14
10242 procedure Set_Has_Private_View
10243 (N : Node_Id; Val : Boolean := True); -- Flag11
10245 procedure Set_Has_Relative_Deadline_Pragma
10246 (N : Node_Id; Val : Boolean := True); -- Flag9
10248 procedure Set_Has_Self_Reference
10249 (N : Node_Id; Val : Boolean := True); -- Flag13
10251 procedure Set_Has_SP_Choice
10252 (N : Node_Id; Val : Boolean := True); -- Flag15
10254 procedure Set_Has_Storage_Size_Pragma
10255 (N : Node_Id; Val : Boolean := True); -- Flag5
10257 procedure Set_Has_Wide_Character
10258 (N : Node_Id; Val : Boolean := True); -- Flag11
10260 procedure Set_Has_Wide_Wide_Character
10261 (N : Node_Id; Val : Boolean := True); -- Flag13
10263 procedure Set_Header_Size_Added
10264 (N : Node_Id; Val : Boolean := True); -- Flag11
10266 procedure Set_Hidden_By_Use_Clause
10267 (N : Node_Id; Val : Elist_Id); -- Elist4
10269 procedure Set_High_Bound
10270 (N : Node_Id; Val : Node_Id); -- Node2
10272 procedure Set_Identifier
10273 (N : Node_Id; Val : Node_Id); -- Node1
10275 procedure Set_Interface_List
10276 (N : Node_Id; Val : List_Id); -- List2
10278 procedure Set_Interface_Present
10279 (N : Node_Id; Val : Boolean := True); -- Flag16
10281 procedure Set_Implicit_With
10282 (N : Node_Id; Val : Boolean := True); -- Flag16
10284 procedure Set_Implicit_With_From_Instantiation
10285 (N : Node_Id; Val : Boolean := True); -- Flag12
10287 procedure Set_Import_Interface_Present
10288 (N : Node_Id; Val : Boolean := True); -- Flag16
10290 procedure Set_In_Present
10291 (N : Node_Id; Val : Boolean := True); -- Flag15
10293 procedure Set_Includes_Infinities
10294 (N : Node_Id; Val : Boolean := True); -- Flag11
10296 procedure Set_Incomplete_View
10297 (N : Node_Id; Val : Node_Id); -- Node2
10299 procedure Set_Inherited_Discriminant
10300 (N : Node_Id; Val : Boolean := True); -- Flag13
10302 procedure Set_Instance_Spec
10303 (N : Node_Id; Val : Node_Id); -- Node5
10305 procedure Set_Intval
10306 (N : Node_Id; Val : Uint); -- Uint3
10308 procedure Set_Is_Accessibility_Actual
10309 (N : Node_Id; Val : Boolean := True); -- Flag13
10311 procedure Set_Is_Asynchronous_Call_Block
10312 (N : Node_Id; Val : Boolean := True); -- Flag7
10314 procedure Set_Is_Boolean_Aspect
10315 (N : Node_Id; Val : Boolean := True); -- Flag16
10317 procedure Set_Is_Checked
10318 (N : Node_Id; Val : Boolean := True); -- Flag11
10320 procedure Set_Is_Component_Left_Opnd
10321 (N : Node_Id; Val : Boolean := True); -- Flag13
10323 procedure Set_Is_Component_Right_Opnd
10324 (N : Node_Id; Val : Boolean := True); -- Flag14
10326 procedure Set_Is_Controlling_Actual
10327 (N : Node_Id; Val : Boolean := True); -- Flag16
10329 procedure Set_Is_Delayed_Aspect
10330 (N : Node_Id; Val : Boolean := True); -- Flag14
10332 procedure Set_Is_Disabled
10333 (N : Node_Id; Val : Boolean := True); -- Flag15
10335 procedure Set_Is_Dynamic_Coextension
10336 (N : Node_Id; Val : Boolean := True); -- Flag18
10338 procedure Set_Is_Elsif
10339 (N : Node_Id; Val : Boolean := True); -- Flag13
10341 procedure Set_Is_Entry_Barrier_Function
10342 (N : Node_Id; Val : Boolean := True); -- Flag8
10344 procedure Set_Is_Expanded_Build_In_Place_Call
10345 (N : Node_Id; Val : Boolean := True); -- Flag11
10347 procedure Set_Is_Finalization_Wrapper
10348 (N : Node_Id; Val : Boolean := True); -- Flag9
10350 procedure Set_Is_Folded_In_Parser
10351 (N : Node_Id; Val : Boolean := True); -- Flag4
10353 procedure Set_Is_Generic_Contract_Pragma
10354 (N : Node_Id; Val : Boolean := True); -- Flag2
10356 procedure Set_Is_Ghost_Pragma
10357 (N : Node_Id; Val : Boolean := True); -- Flag3
10359 procedure Set_Is_Ignored
10360 (N : Node_Id; Val : Boolean := True); -- Flag9
10362 procedure Set_Is_In_Discriminant_Check
10363 (N : Node_Id; Val : Boolean := True); -- Flag11
10365 procedure Set_Is_Inherited
10366 (N : Node_Id; Val : Boolean := True); -- Flag4
10368 procedure Set_Is_Machine_Number
10369 (N : Node_Id; Val : Boolean := True); -- Flag11
10371 procedure Set_Is_Null_Loop
10372 (N : Node_Id; Val : Boolean := True); -- Flag16
10374 procedure Set_Is_Overloaded
10375 (N : Node_Id; Val : Boolean := True); -- Flag5
10377 procedure Set_Is_Power_Of_2_For_Shift
10378 (N : Node_Id; Val : Boolean := True); -- Flag13
10380 procedure Set_Is_Prefixed_Call
10381 (N : Node_Id; Val : Boolean := True); -- Flag17
10383 procedure Set_Is_Protected_Subprogram_Body
10384 (N : Node_Id; Val : Boolean := True); -- Flag7
10386 procedure Set_Is_Static_Coextension
10387 (N : Node_Id; Val : Boolean := True); -- Flag14
10389 procedure Set_Is_Static_Expression
10390 (N : Node_Id; Val : Boolean := True); -- Flag6
10392 procedure Set_Is_Subprogram_Descriptor
10393 (N : Node_Id; Val : Boolean := True); -- Flag16
10395 procedure Set_Is_Task_Allocation_Block
10396 (N : Node_Id; Val : Boolean := True); -- Flag6
10398 procedure Set_Is_Task_Master
10399 (N : Node_Id; Val : Boolean := True); -- Flag5
10401 procedure Set_Iteration_Scheme
10402 (N : Node_Id; Val : Node_Id); -- Node2
10404 procedure Set_Iterator_Specification
10405 (N : Node_Id; Val : Node_Id); -- Node2
10407 procedure Set_Itype
10408 (N : Node_Id; Val : Entity_Id); -- Node1
10410 procedure Set_Kill_Range_Check
10411 (N : Node_Id; Val : Boolean := True); -- Flag11
10413 procedure Set_Last_Bit
10414 (N : Node_Id; Val : Node_Id); -- Node4
10416 procedure Set_Last_Name
10417 (N : Node_Id; Val : Boolean := True); -- Flag6
10419 procedure Set_Library_Unit
10420 (N : Node_Id; Val : Node_Id); -- Node4
10422 procedure Set_Label_Construct
10423 (N : Node_Id; Val : Node_Id); -- Node2
10425 procedure Set_Left_Opnd
10426 (N : Node_Id; Val : Node_Id); -- Node2
10428 procedure Set_Limited_View_Installed
10429 (N : Node_Id; Val : Boolean := True); -- Flag18
10431 procedure Set_Limited_Present
10432 (N : Node_Id; Val : Boolean := True); -- Flag17
10434 procedure Set_Literals
10435 (N : Node_Id; Val : List_Id); -- List1
10437 procedure Set_Local_Raise_Not_OK
10438 (N : Node_Id; Val : Boolean := True); -- Flag7
10440 procedure Set_Local_Raise_Statements
10441 (N : Node_Id; Val : Elist_Id); -- Elist1
10443 procedure Set_Loop_Actions
10444 (N : Node_Id; Val : List_Id); -- List2
10446 procedure Set_Loop_Parameter_Specification
10447 (N : Node_Id; Val : Node_Id); -- Node4
10449 procedure Set_Low_Bound
10450 (N : Node_Id; Val : Node_Id); -- Node1
10452 procedure Set_Mod_Clause
10453 (N : Node_Id; Val : Node_Id); -- Node2
10455 procedure Set_More_Ids
10456 (N : Node_Id; Val : Boolean := True); -- Flag5
10458 procedure Set_Must_Be_Byte_Aligned
10459 (N : Node_Id; Val : Boolean := True); -- Flag14
10461 procedure Set_Must_Not_Freeze
10462 (N : Node_Id; Val : Boolean := True); -- Flag8
10464 procedure Set_Must_Not_Override
10465 (N : Node_Id; Val : Boolean := True); -- Flag15
10467 procedure Set_Must_Override
10468 (N : Node_Id; Val : Boolean := True); -- Flag14
10470 procedure Set_Name
10471 (N : Node_Id; Val : Node_Id); -- Node2
10473 procedure Set_Names
10474 (N : Node_Id; Val : List_Id); -- List2
10476 procedure Set_Next_Entity
10477 (N : Node_Id; Val : Node_Id); -- Node2
10479 procedure Set_Next_Exit_Statement
10480 (N : Node_Id; Val : Node_Id); -- Node3
10482 procedure Set_Next_Implicit_With
10483 (N : Node_Id; Val : Node_Id); -- Node3
10485 procedure Set_Next_Named_Actual
10486 (N : Node_Id; Val : Node_Id); -- Node4
10488 procedure Set_Next_Pragma
10489 (N : Node_Id; Val : Node_Id); -- Node1
10491 procedure Set_Next_Rep_Item
10492 (N : Node_Id; Val : Node_Id); -- Node5
10494 procedure Set_Next_Use_Clause
10495 (N : Node_Id; Val : Node_Id); -- Node3
10497 procedure Set_No_Ctrl_Actions
10498 (N : Node_Id; Val : Boolean := True); -- Flag7
10500 procedure Set_No_Elaboration_Check
10501 (N : Node_Id; Val : Boolean := True); -- Flag14
10503 procedure Set_No_Entities_Ref_In_Spec
10504 (N : Node_Id; Val : Boolean := True); -- Flag8
10506 procedure Set_No_Initialization
10507 (N : Node_Id; Val : Boolean := True); -- Flag13
10509 procedure Set_No_Minimize_Eliminate
10510 (N : Node_Id; Val : Boolean := True); -- Flag17
10512 procedure Set_No_Truncation
10513 (N : Node_Id; Val : Boolean := True); -- Flag17
10515 procedure Set_Non_Aliased_Prefix
10516 (N : Node_Id; Val : Boolean := True); -- Flag18
10518 procedure Set_Null_Present
10519 (N : Node_Id; Val : Boolean := True); -- Flag13
10521 procedure Set_Null_Excluding_Subtype
10522 (N : Node_Id; Val : Boolean := True); -- Flag16
10524 procedure Set_Null_Exclusion_Present
10525 (N : Node_Id; Val : Boolean := True); -- Flag11
10527 procedure Set_Null_Exclusion_In_Return_Present
10528 (N : Node_Id; Val : Boolean := True); -- Flag14
10530 procedure Set_Null_Record_Present
10531 (N : Node_Id; Val : Boolean := True); -- Flag17
10533 procedure Set_Object_Definition
10534 (N : Node_Id; Val : Node_Id); -- Node4
10536 procedure Set_Of_Present
10537 (N : Node_Id; Val : Boolean := True); -- Flag16
10539 procedure Set_Original_Discriminant
10540 (N : Node_Id; Val : Node_Id); -- Node2
10542 procedure Set_Original_Entity
10543 (N : Node_Id; Val : Entity_Id); -- Node2
10545 procedure Set_Others_Discrete_Choices
10546 (N : Node_Id; Val : List_Id); -- List1
10548 procedure Set_Out_Present
10549 (N : Node_Id; Val : Boolean := True); -- Flag17
10551 procedure Set_Parameter_Associations
10552 (N : Node_Id; Val : List_Id); -- List3
10554 procedure Set_Parameter_Specifications
10555 (N : Node_Id; Val : List_Id); -- List3
10557 procedure Set_Parameter_Type
10558 (N : Node_Id; Val : Node_Id); -- Node2
10560 procedure Set_Parent_Spec
10561 (N : Node_Id; Val : Node_Id); -- Node4
10563 procedure Set_Position
10564 (N : Node_Id; Val : Node_Id); -- Node2
10566 procedure Set_Pragma_Argument_Associations
10567 (N : Node_Id; Val : List_Id); -- List2
10569 procedure Set_Pragma_Identifier
10570 (N : Node_Id; Val : Node_Id); -- Node4
10572 procedure Set_Pragmas_After
10573 (N : Node_Id; Val : List_Id); -- List5
10575 procedure Set_Pragmas_Before
10576 (N : Node_Id; Val : List_Id); -- List4
10578 procedure Set_Pre_Post_Conditions
10579 (N : Node_Id; Val : Node_Id); -- Node1
10581 procedure Set_Prefix
10582 (N : Node_Id; Val : Node_Id); -- Node3
10584 procedure Set_Premature_Use
10585 (N : Node_Id; Val : Node_Id); -- Node5
10587 procedure Set_Present_Expr
10588 (N : Node_Id; Val : Uint); -- Uint3
10590 procedure Set_Prev_Ids
10591 (N : Node_Id; Val : Boolean := True); -- Flag6
10593 procedure Set_Print_In_Hex
10594 (N : Node_Id; Val : Boolean := True); -- Flag13
10596 procedure Set_Private_Declarations
10597 (N : Node_Id; Val : List_Id); -- List3
10599 procedure Set_Private_Present
10600 (N : Node_Id; Val : Boolean := True); -- Flag15
10602 procedure Set_Procedure_To_Call
10603 (N : Node_Id; Val : Node_Id); -- Node2
10605 procedure Set_Proper_Body
10606 (N : Node_Id; Val : Node_Id); -- Node1
10608 procedure Set_Protected_Definition
10609 (N : Node_Id; Val : Node_Id); -- Node3
10611 procedure Set_Protected_Present
10612 (N : Node_Id; Val : Boolean := True); -- Flag6
10614 procedure Set_Raises_Constraint_Error
10615 (N : Node_Id; Val : Boolean := True); -- Flag7
10617 procedure Set_Range_Constraint
10618 (N : Node_Id; Val : Node_Id); -- Node4
10620 procedure Set_Range_Expression
10621 (N : Node_Id; Val : Node_Id); -- Node4
10623 procedure Set_Real_Range_Specification
10624 (N : Node_Id; Val : Node_Id); -- Node4
10626 procedure Set_Realval
10627 (N : Node_Id; Val : Ureal); -- Ureal3
10629 procedure Set_Reason
10630 (N : Node_Id; Val : Uint); -- Uint3
10632 procedure Set_Record_Extension_Part
10633 (N : Node_Id; Val : Node_Id); -- Node3
10635 procedure Set_Redundant_Use
10636 (N : Node_Id; Val : Boolean := True); -- Flag13
10638 procedure Set_Renaming_Exception
10639 (N : Node_Id; Val : Node_Id); -- Node2
10641 procedure Set_Result_Definition
10642 (N : Node_Id; Val : Node_Id); -- Node4
10644 procedure Set_Return_Object_Declarations
10645 (N : Node_Id; Val : List_Id); -- List3
10647 procedure Set_Return_Statement_Entity
10648 (N : Node_Id; Val : Node_Id); -- Node5
10650 procedure Set_Reverse_Present
10651 (N : Node_Id; Val : Boolean := True); -- Flag15
10653 procedure Set_Right_Opnd
10654 (N : Node_Id; Val : Node_Id); -- Node3
10656 procedure Set_Rounded_Result
10657 (N : Node_Id; Val : Boolean := True); -- Flag18
10659 procedure Set_SCIL_Controlling_Tag
10660 (N : Node_Id; Val : Node_Id); -- Node5
10662 procedure Set_SCIL_Entity
10663 (N : Node_Id; Val : Node_Id); -- Node4
10665 procedure Set_SCIL_Tag_Value
10666 (N : Node_Id; Val : Node_Id); -- Node5
10668 procedure Set_SCIL_Target_Prim
10669 (N : Node_Id; Val : Node_Id); -- Node2
10671 procedure Set_Scope
10672 (N : Node_Id; Val : Node_Id); -- Node3
10674 procedure Set_Select_Alternatives
10675 (N : Node_Id; Val : List_Id); -- List1
10677 procedure Set_Selector_Name
10678 (N : Node_Id; Val : Node_Id); -- Node2
10680 procedure Set_Selector_Names
10681 (N : Node_Id; Val : List_Id); -- List1
10683 procedure Set_Shift_Count_OK
10684 (N : Node_Id; Val : Boolean := True); -- Flag4
10686 procedure Set_Source_Type
10687 (N : Node_Id; Val : Entity_Id); -- Node1
10689 procedure Set_Specification
10690 (N : Node_Id; Val : Node_Id); -- Node1
10692 procedure Set_Split_PPC
10693 (N : Node_Id; Val : Boolean); -- Flag17
10695 procedure Set_Statements
10696 (N : Node_Id; Val : List_Id); -- List3
10698 procedure Set_Storage_Pool
10699 (N : Node_Id; Val : Node_Id); -- Node1
10701 procedure Set_Subpool_Handle_Name
10702 (N : Node_Id; Val : Node_Id); -- Node4
10704 procedure Set_Strval
10705 (N : Node_Id; Val : String_Id); -- Str3
10707 procedure Set_Subtype_Indication
10708 (N : Node_Id; Val : Node_Id); -- Node5
10710 procedure Set_Subtype_Mark
10711 (N : Node_Id; Val : Node_Id); -- Node4
10713 procedure Set_Subtype_Marks
10714 (N : Node_Id; Val : List_Id); -- List2
10716 procedure Set_Suppress_Assignment_Checks
10717 (N : Node_Id; Val : Boolean := True); -- Flag18
10719 procedure Set_Suppress_Loop_Warnings
10720 (N : Node_Id; Val : Boolean := True); -- Flag17
10722 procedure Set_Synchronized_Present
10723 (N : Node_Id; Val : Boolean := True); -- Flag7
10725 procedure Set_Tagged_Present
10726 (N : Node_Id; Val : Boolean := True); -- Flag15
10728 procedure Set_Target_Type
10729 (N : Node_Id; Val : Entity_Id); -- Node2
10731 procedure Set_Task_Definition
10732 (N : Node_Id; Val : Node_Id); -- Node3
10734 procedure Set_Task_Present
10735 (N : Node_Id; Val : Boolean := True); -- Flag5
10737 procedure Set_Then_Actions
10738 (N : Node_Id; Val : List_Id); -- List2
10740 procedure Set_Then_Statements
10741 (N : Node_Id; Val : List_Id); -- List2
10743 procedure Set_Treat_Fixed_As_Integer
10744 (N : Node_Id; Val : Boolean := True); -- Flag14
10746 procedure Set_Triggering_Alternative
10747 (N : Node_Id; Val : Node_Id); -- Node1
10749 procedure Set_Triggering_Statement
10750 (N : Node_Id; Val : Node_Id); -- Node1
10752 procedure Set_TSS_Elist
10753 (N : Node_Id; Val : Elist_Id); -- Elist3
10755 procedure Set_Type_Definition
10756 (N : Node_Id; Val : Node_Id); -- Node3
10758 procedure Set_Uneval_Old_Accept
10759 (N : Node_Id; Val : Boolean := True); -- Flag7
10761 procedure Set_Uneval_Old_Warn
10762 (N : Node_Id; Val : Boolean := True); -- Flag18
10764 procedure Set_Unit
10765 (N : Node_Id; Val : Node_Id); -- Node2
10767 procedure Set_Unknown_Discriminants_Present
10768 (N : Node_Id; Val : Boolean := True); -- Flag13
10770 procedure Set_Unreferenced_In_Spec
10771 (N : Node_Id; Val : Boolean := True); -- Flag7
10773 procedure Set_Variant_Part
10774 (N : Node_Id; Val : Node_Id); -- Node4
10776 procedure Set_Variants
10777 (N : Node_Id; Val : List_Id); -- List1
10779 procedure Set_Visible_Declarations
10780 (N : Node_Id; Val : List_Id); -- List2
10782 procedure Set_Uninitialized_Variable
10783 (N : Node_Id; Val : Node_Id); -- Node3
10785 procedure Set_Used_Operations
10786 (N : Node_Id; Val : Elist_Id); -- Elist5
10788 procedure Set_Was_Originally_Stub
10789 (N : Node_Id; Val : Boolean := True); -- Flag13
10791 procedure Set_Withed_Body
10792 (N : Node_Id; Val : Node_Id); -- Node1
10794 -------------------------
10795 -- Iterator Procedures --
10796 -------------------------
10798 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10800 procedure Next_Entity (N : in out Node_Id);
10801 procedure Next_Named_Actual (N : in out Node_Id);
10802 procedure Next_Rep_Item (N : in out Node_Id);
10803 procedure Next_Use_Clause (N : in out Node_Id);
10805 -------------------------------------------
10806 -- Miscellaneous Tree Access Subprograms --
10807 -------------------------------------------
10809 function End_Location (N : Node_Id) return Source_Ptr;
10810 -- N is an N_If_Statement or N_Case_Statement node, and this function
10811 -- returns the location of the IF token in the END IF sequence by
10812 -- translating the value of the End_Span field.
10814 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10815 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10816 -- the End_Span field to correspond to the given value S. In other words,
10817 -- End_Span is set to the difference between S and Sloc (N), the starting
10818 -- location.
10820 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10821 -- Given an argument to a pragma Arg, this function returns the expression
10822 -- for the argument. This is Arg itself, or, in the case where Arg is a
10823 -- pragma argument association node, the expression from this node.
10825 --------------------------------
10826 -- Node_Kind Membership Tests --
10827 --------------------------------
10829 -- The following functions allow a convenient notation for testing whether
10830 -- a Node_Kind value matches any one of a list of possible values. In each
10831 -- case True is returned if the given T argument is equal to any of the V
10832 -- arguments. Note that there is a similar set of functions defined in
10833 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10835 function Nkind_In
10836 (T : Node_Kind;
10837 V1 : Node_Kind;
10838 V2 : Node_Kind) return Boolean;
10840 function Nkind_In
10841 (T : Node_Kind;
10842 V1 : Node_Kind;
10843 V2 : Node_Kind;
10844 V3 : Node_Kind) return Boolean;
10846 function Nkind_In
10847 (T : Node_Kind;
10848 V1 : Node_Kind;
10849 V2 : Node_Kind;
10850 V3 : Node_Kind;
10851 V4 : Node_Kind) return Boolean;
10853 function Nkind_In
10854 (T : Node_Kind;
10855 V1 : Node_Kind;
10856 V2 : Node_Kind;
10857 V3 : Node_Kind;
10858 V4 : Node_Kind;
10859 V5 : Node_Kind) return Boolean;
10861 function Nkind_In
10862 (T : Node_Kind;
10863 V1 : Node_Kind;
10864 V2 : Node_Kind;
10865 V3 : Node_Kind;
10866 V4 : Node_Kind;
10867 V5 : Node_Kind;
10868 V6 : Node_Kind) return Boolean;
10870 function Nkind_In
10871 (T : Node_Kind;
10872 V1 : Node_Kind;
10873 V2 : Node_Kind;
10874 V3 : Node_Kind;
10875 V4 : Node_Kind;
10876 V5 : Node_Kind;
10877 V6 : Node_Kind;
10878 V7 : Node_Kind) return Boolean;
10880 function Nkind_In
10881 (T : Node_Kind;
10882 V1 : Node_Kind;
10883 V2 : Node_Kind;
10884 V3 : Node_Kind;
10885 V4 : Node_Kind;
10886 V5 : Node_Kind;
10887 V6 : Node_Kind;
10888 V7 : Node_Kind;
10889 V8 : Node_Kind) return Boolean;
10891 function Nkind_In
10892 (T : Node_Kind;
10893 V1 : Node_Kind;
10894 V2 : Node_Kind;
10895 V3 : Node_Kind;
10896 V4 : Node_Kind;
10897 V5 : Node_Kind;
10898 V6 : Node_Kind;
10899 V7 : Node_Kind;
10900 V8 : Node_Kind;
10901 V9 : Node_Kind) return Boolean;
10903 pragma Inline (Nkind_In);
10904 -- Inline all above functions
10906 -----------------------
10907 -- Utility Functions --
10908 -----------------------
10910 function Pragma_Name (N : Node_Id) return Name_Id;
10911 pragma Inline (Pragma_Name);
10912 -- Convenient function to obtain Chars field of Pragma_Identifier
10914 -----------------------------
10915 -- Syntactic Parent Tables --
10916 -----------------------------
10918 -- These tables show for each node, and for each of the five fields,
10919 -- whether the corresponding field is syntactic (True) or semantic (False).
10920 -- Unused entries are also set to False.
10922 subtype Field_Num is Natural range 1 .. 5;
10924 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10926 -- Following entries can be built automatically from the sinfo sources
10927 -- using the makeisf utility (currently this program is in spitbol).
10929 N_Identifier =>
10930 (1 => True, -- Chars (Name1)
10931 2 => False, -- Original_Discriminant (Node2-Sem)
10932 3 => False, -- unused
10933 4 => False, -- Entity (Node4-Sem)
10934 5 => False), -- Etype (Node5-Sem)
10936 N_Integer_Literal =>
10937 (1 => False, -- unused
10938 2 => False, -- Original_Entity (Node2-Sem)
10939 3 => True, -- Intval (Uint3)
10940 4 => False, -- unused
10941 5 => False), -- Etype (Node5-Sem)
10943 N_Real_Literal =>
10944 (1 => False, -- unused
10945 2 => False, -- Original_Entity (Node2-Sem)
10946 3 => True, -- Realval (Ureal3)
10947 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10948 5 => False), -- Etype (Node5-Sem)
10950 N_Character_Literal =>
10951 (1 => True, -- Chars (Name1)
10952 2 => True, -- Char_Literal_Value (Uint2)
10953 3 => False, -- unused
10954 4 => False, -- Entity (Node4-Sem)
10955 5 => False), -- Etype (Node5-Sem)
10957 N_String_Literal =>
10958 (1 => False, -- unused
10959 2 => False, -- unused
10960 3 => True, -- Strval (Str3)
10961 4 => False, -- unused
10962 5 => False), -- Etype (Node5-Sem)
10964 N_Pragma =>
10965 (1 => False, -- Next_Pragma (Node1-Sem)
10966 2 => True, -- Pragma_Argument_Associations (List2)
10967 3 => False, -- Corresponding_Aspect (Node3-Sem)
10968 4 => True, -- Pragma_Identifier (Node4)
10969 5 => False), -- Next_Rep_Item (Node5-Sem)
10971 N_Pragma_Argument_Association =>
10972 (1 => True, -- Chars (Name1)
10973 2 => False, -- unused
10974 3 => True, -- Expression (Node3)
10975 4 => False, -- unused
10976 5 => False), -- unused
10978 N_Defining_Identifier =>
10979 (1 => True, -- Chars (Name1)
10980 2 => False, -- Next_Entity (Node2-Sem)
10981 3 => False, -- Scope (Node3-Sem)
10982 4 => False, -- unused
10983 5 => False), -- Etype (Node5-Sem)
10985 N_Full_Type_Declaration =>
10986 (1 => True, -- Defining_Identifier (Node1)
10987 2 => False, -- Incomplete_View (Node2-Sem)
10988 3 => True, -- Type_Definition (Node3)
10989 4 => True, -- Discriminant_Specifications (List4)
10990 5 => False), -- unused
10992 N_Subtype_Declaration =>
10993 (1 => True, -- Defining_Identifier (Node1)
10994 2 => False, -- unused
10995 3 => False, -- unused
10996 4 => False, -- Generic_Parent_Type (Node4-Sem)
10997 5 => True), -- Subtype_Indication (Node5)
10999 N_Subtype_Indication =>
11000 (1 => False, -- unused
11001 2 => False, -- unused
11002 3 => True, -- Constraint (Node3)
11003 4 => True, -- Subtype_Mark (Node4)
11004 5 => False), -- Etype (Node5-Sem)
11006 N_Object_Declaration =>
11007 (1 => True, -- Defining_Identifier (Node1)
11008 2 => False, -- Handler_List_Entry (Node2-Sem)
11009 3 => True, -- Expression (Node3)
11010 4 => True, -- Object_Definition (Node4)
11011 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11013 N_Number_Declaration =>
11014 (1 => True, -- Defining_Identifier (Node1)
11015 2 => False, -- unused
11016 3 => True, -- Expression (Node3)
11017 4 => False, -- unused
11018 5 => False), -- unused
11020 N_Derived_Type_Definition =>
11021 (1 => False, -- unused
11022 2 => True, -- Interface_List (List2)
11023 3 => True, -- Record_Extension_Part (Node3)
11024 4 => False, -- unused
11025 5 => True), -- Subtype_Indication (Node5)
11027 N_Range_Constraint =>
11028 (1 => False, -- unused
11029 2 => False, -- unused
11030 3 => False, -- unused
11031 4 => True, -- Range_Expression (Node4)
11032 5 => False), -- unused
11034 N_Range =>
11035 (1 => True, -- Low_Bound (Node1)
11036 2 => True, -- High_Bound (Node2)
11037 3 => False, -- unused
11038 4 => False, -- unused
11039 5 => False), -- Etype (Node5-Sem)
11041 N_Enumeration_Type_Definition =>
11042 (1 => True, -- Literals (List1)
11043 2 => False, -- unused
11044 3 => False, -- unused
11045 4 => True, -- End_Label (Node4)
11046 5 => False), -- unused
11048 N_Defining_Character_Literal =>
11049 (1 => True, -- Chars (Name1)
11050 2 => False, -- Next_Entity (Node2-Sem)
11051 3 => False, -- Scope (Node3-Sem)
11052 4 => False, -- unused
11053 5 => False), -- Etype (Node5-Sem)
11055 N_Signed_Integer_Type_Definition =>
11056 (1 => True, -- Low_Bound (Node1)
11057 2 => True, -- High_Bound (Node2)
11058 3 => False, -- unused
11059 4 => False, -- unused
11060 5 => False), -- unused
11062 N_Modular_Type_Definition =>
11063 (1 => False, -- unused
11064 2 => False, -- unused
11065 3 => True, -- Expression (Node3)
11066 4 => False, -- unused
11067 5 => False), -- unused
11069 N_Floating_Point_Definition =>
11070 (1 => False, -- unused
11071 2 => True, -- Digits_Expression (Node2)
11072 3 => False, -- unused
11073 4 => True, -- Real_Range_Specification (Node4)
11074 5 => False), -- unused
11076 N_Real_Range_Specification =>
11077 (1 => True, -- Low_Bound (Node1)
11078 2 => True, -- High_Bound (Node2)
11079 3 => False, -- unused
11080 4 => False, -- unused
11081 5 => False), -- unused
11083 N_Ordinary_Fixed_Point_Definition =>
11084 (1 => False, -- unused
11085 2 => False, -- unused
11086 3 => True, -- Delta_Expression (Node3)
11087 4 => True, -- Real_Range_Specification (Node4)
11088 5 => False), -- unused
11090 N_Decimal_Fixed_Point_Definition =>
11091 (1 => False, -- unused
11092 2 => True, -- Digits_Expression (Node2)
11093 3 => True, -- Delta_Expression (Node3)
11094 4 => True, -- Real_Range_Specification (Node4)
11095 5 => False), -- unused
11097 N_Digits_Constraint =>
11098 (1 => False, -- unused
11099 2 => True, -- Digits_Expression (Node2)
11100 3 => False, -- unused
11101 4 => True, -- Range_Constraint (Node4)
11102 5 => False), -- unused
11104 N_Unconstrained_Array_Definition =>
11105 (1 => False, -- unused
11106 2 => True, -- Subtype_Marks (List2)
11107 3 => False, -- unused
11108 4 => True, -- Component_Definition (Node4)
11109 5 => False), -- unused
11111 N_Constrained_Array_Definition =>
11112 (1 => False, -- unused
11113 2 => True, -- Discrete_Subtype_Definitions (List2)
11114 3 => False, -- unused
11115 4 => True, -- Component_Definition (Node4)
11116 5 => False), -- unused
11118 N_Component_Definition =>
11119 (1 => False, -- unused
11120 2 => False, -- unused
11121 3 => True, -- Access_Definition (Node3)
11122 4 => False, -- unused
11123 5 => True), -- Subtype_Indication (Node5)
11125 N_Discriminant_Specification =>
11126 (1 => True, -- Defining_Identifier (Node1)
11127 2 => False, -- unused
11128 3 => True, -- Expression (Node3)
11129 4 => False, -- unused
11130 5 => True), -- Discriminant_Type (Node5)
11132 N_Index_Or_Discriminant_Constraint =>
11133 (1 => True, -- Constraints (List1)
11134 2 => False, -- unused
11135 3 => False, -- unused
11136 4 => False, -- unused
11137 5 => False), -- unused
11139 N_Discriminant_Association =>
11140 (1 => True, -- Selector_Names (List1)
11141 2 => False, -- unused
11142 3 => True, -- Expression (Node3)
11143 4 => False, -- unused
11144 5 => False), -- unused
11146 N_Record_Definition =>
11147 (1 => True, -- Component_List (Node1)
11148 2 => True, -- Interface_List (List2)
11149 3 => False, -- unused
11150 4 => True, -- End_Label (Node4)
11151 5 => False), -- unused
11153 N_Component_List =>
11154 (1 => False, -- unused
11155 2 => False, -- unused
11156 3 => True, -- Component_Items (List3)
11157 4 => True, -- Variant_Part (Node4)
11158 5 => False), -- unused
11160 N_Component_Declaration =>
11161 (1 => True, -- Defining_Identifier (Node1)
11162 2 => False, -- unused
11163 3 => True, -- Expression (Node3)
11164 4 => True, -- Component_Definition (Node4)
11165 5 => False), -- unused
11167 N_Variant_Part =>
11168 (1 => True, -- Variants (List1)
11169 2 => True, -- Name (Node2)
11170 3 => False, -- unused
11171 4 => False, -- unused
11172 5 => False), -- unused
11174 N_Variant =>
11175 (1 => True, -- Component_List (Node1)
11176 2 => False, -- Enclosing_Variant (Node2-Sem)
11177 3 => False, -- Present_Expr (Uint3-Sem)
11178 4 => True, -- Discrete_Choices (List4)
11179 5 => False), -- Dcheck_Function (Node5-Sem)
11181 N_Others_Choice =>
11182 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11183 2 => False, -- unused
11184 3 => False, -- unused
11185 4 => False, -- unused
11186 5 => False), -- unused
11188 N_Access_To_Object_Definition =>
11189 (1 => False, -- unused
11190 2 => False, -- unused
11191 3 => False, -- unused
11192 4 => False, -- unused
11193 5 => True), -- Subtype_Indication (Node5)
11195 N_Access_Function_Definition =>
11196 (1 => False, -- unused
11197 2 => False, -- unused
11198 3 => True, -- Parameter_Specifications (List3)
11199 4 => True, -- Result_Definition (Node4)
11200 5 => False), -- unused
11202 N_Access_Procedure_Definition =>
11203 (1 => False, -- unused
11204 2 => False, -- unused
11205 3 => True, -- Parameter_Specifications (List3)
11206 4 => False, -- unused
11207 5 => False), -- unused
11209 N_Access_Definition =>
11210 (1 => False, -- unused
11211 2 => False, -- unused
11212 3 => True, -- Access_To_Subprogram_Definition (Node3)
11213 4 => True, -- Subtype_Mark (Node4)
11214 5 => False), -- unused
11216 N_Incomplete_Type_Declaration =>
11217 (1 => True, -- Defining_Identifier (Node1)
11218 2 => False, -- unused
11219 3 => False, -- unused
11220 4 => True, -- Discriminant_Specifications (List4)
11221 5 => False), -- Premature_Use
11223 N_Explicit_Dereference =>
11224 (1 => False, -- unused
11225 2 => False, -- unused
11226 3 => True, -- Prefix (Node3)
11227 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11228 5 => False), -- Etype (Node5-Sem)
11230 N_Indexed_Component =>
11231 (1 => True, -- Expressions (List1)
11232 2 => False, -- unused
11233 3 => True, -- Prefix (Node3)
11234 4 => False, -- Generalized_Indexing (Node4-Sem)
11235 5 => False), -- Etype (Node5-Sem)
11237 N_Slice =>
11238 (1 => False, -- unused
11239 2 => False, -- unused
11240 3 => True, -- Prefix (Node3)
11241 4 => True, -- Discrete_Range (Node4)
11242 5 => False), -- Etype (Node5-Sem)
11244 N_Selected_Component =>
11245 (1 => False, -- unused
11246 2 => True, -- Selector_Name (Node2)
11247 3 => True, -- Prefix (Node3)
11248 4 => False, -- unused
11249 5 => False), -- Etype (Node5-Sem)
11251 N_Attribute_Reference =>
11252 (1 => True, -- Expressions (List1)
11253 2 => True, -- Attribute_Name (Name2)
11254 3 => True, -- Prefix (Node3)
11255 4 => False, -- Entity (Node4-Sem)
11256 5 => False), -- Etype (Node5-Sem)
11258 N_Aggregate =>
11259 (1 => True, -- Expressions (List1)
11260 2 => True, -- Component_Associations (List2)
11261 3 => False, -- Aggregate_Bounds (Node3-Sem)
11262 4 => False, -- unused
11263 5 => False), -- Etype (Node5-Sem)
11265 N_Component_Association =>
11266 (1 => True, -- Choices (List1)
11267 2 => False, -- Loop_Actions (List2-Sem)
11268 3 => True, -- Expression (Node3)
11269 4 => False, -- unused
11270 5 => False), -- unused
11272 N_Extension_Aggregate =>
11273 (1 => True, -- Expressions (List1)
11274 2 => True, -- Component_Associations (List2)
11275 3 => True, -- Ancestor_Part (Node3)
11276 4 => False, -- unused
11277 5 => False), -- Etype (Node5-Sem)
11279 N_Null =>
11280 (1 => False, -- unused
11281 2 => False, -- unused
11282 3 => False, -- unused
11283 4 => False, -- unused
11284 5 => False), -- Etype (Node5-Sem)
11286 N_And_Then =>
11287 (1 => False, -- Actions (List1-Sem)
11288 2 => True, -- Left_Opnd (Node2)
11289 3 => True, -- Right_Opnd (Node3)
11290 4 => False, -- unused
11291 5 => False), -- Etype (Node5-Sem)
11293 N_Or_Else =>
11294 (1 => False, -- Actions (List1-Sem)
11295 2 => True, -- Left_Opnd (Node2)
11296 3 => True, -- Right_Opnd (Node3)
11297 4 => False, -- unused
11298 5 => False), -- Etype (Node5-Sem)
11300 N_In =>
11301 (1 => False, -- unused
11302 2 => True, -- Left_Opnd (Node2)
11303 3 => True, -- Right_Opnd (Node3)
11304 4 => True, -- Alternatives (List4)
11305 5 => False), -- Etype (Node5-Sem)
11307 N_Not_In =>
11308 (1 => False, -- unused
11309 2 => True, -- Left_Opnd (Node2)
11310 3 => True, -- Right_Opnd (Node3)
11311 4 => True, -- Alternatives (List4)
11312 5 => False), -- Etype (Node5-Sem)
11314 N_Op_And =>
11315 (1 => True, -- Chars (Name1)
11316 2 => True, -- Left_Opnd (Node2)
11317 3 => True, -- Right_Opnd (Node3)
11318 4 => False, -- Entity (Node4-Sem)
11319 5 => False), -- Etype (Node5-Sem)
11321 N_Op_Or =>
11322 (1 => True, -- Chars (Name1)
11323 2 => True, -- Left_Opnd (Node2)
11324 3 => True, -- Right_Opnd (Node3)
11325 4 => False, -- Entity (Node4-Sem)
11326 5 => False), -- Etype (Node5-Sem)
11328 N_Op_Xor =>
11329 (1 => True, -- Chars (Name1)
11330 2 => True, -- Left_Opnd (Node2)
11331 3 => True, -- Right_Opnd (Node3)
11332 4 => False, -- Entity (Node4-Sem)
11333 5 => False), -- Etype (Node5-Sem)
11335 N_Op_Eq =>
11336 (1 => True, -- Chars (Name1)
11337 2 => True, -- Left_Opnd (Node2)
11338 3 => True, -- Right_Opnd (Node3)
11339 4 => False, -- Entity (Node4-Sem)
11340 5 => False), -- Etype (Node5-Sem)
11342 N_Op_Ne =>
11343 (1 => True, -- Chars (Name1)
11344 2 => True, -- Left_Opnd (Node2)
11345 3 => True, -- Right_Opnd (Node3)
11346 4 => False, -- Entity (Node4-Sem)
11347 5 => False), -- Etype (Node5-Sem)
11349 N_Op_Lt =>
11350 (1 => True, -- Chars (Name1)
11351 2 => True, -- Left_Opnd (Node2)
11352 3 => True, -- Right_Opnd (Node3)
11353 4 => False, -- Entity (Node4-Sem)
11354 5 => False), -- Etype (Node5-Sem)
11356 N_Op_Le =>
11357 (1 => True, -- Chars (Name1)
11358 2 => True, -- Left_Opnd (Node2)
11359 3 => True, -- Right_Opnd (Node3)
11360 4 => False, -- Entity (Node4-Sem)
11361 5 => False), -- Etype (Node5-Sem)
11363 N_Op_Gt =>
11364 (1 => True, -- Chars (Name1)
11365 2 => True, -- Left_Opnd (Node2)
11366 3 => True, -- Right_Opnd (Node3)
11367 4 => False, -- Entity (Node4-Sem)
11368 5 => False), -- Etype (Node5-Sem)
11370 N_Op_Ge =>
11371 (1 => True, -- Chars (Name1)
11372 2 => True, -- Left_Opnd (Node2)
11373 3 => True, -- Right_Opnd (Node3)
11374 4 => False, -- Entity (Node4-Sem)
11375 5 => False), -- Etype (Node5-Sem)
11377 N_Op_Add =>
11378 (1 => True, -- Chars (Name1)
11379 2 => True, -- Left_Opnd (Node2)
11380 3 => True, -- Right_Opnd (Node3)
11381 4 => False, -- Entity (Node4-Sem)
11382 5 => False), -- Etype (Node5-Sem)
11384 N_Op_Subtract =>
11385 (1 => True, -- Chars (Name1)
11386 2 => True, -- Left_Opnd (Node2)
11387 3 => True, -- Right_Opnd (Node3)
11388 4 => False, -- Entity (Node4-Sem)
11389 5 => False), -- Etype (Node5-Sem)
11391 N_Op_Concat =>
11392 (1 => True, -- Chars (Name1)
11393 2 => True, -- Left_Opnd (Node2)
11394 3 => True, -- Right_Opnd (Node3)
11395 4 => False, -- Entity (Node4-Sem)
11396 5 => False), -- Etype (Node5-Sem)
11398 N_Op_Multiply =>
11399 (1 => True, -- Chars (Name1)
11400 2 => True, -- Left_Opnd (Node2)
11401 3 => True, -- Right_Opnd (Node3)
11402 4 => False, -- Entity (Node4-Sem)
11403 5 => False), -- Etype (Node5-Sem)
11405 N_Op_Divide =>
11406 (1 => True, -- Chars (Name1)
11407 2 => True, -- Left_Opnd (Node2)
11408 3 => True, -- Right_Opnd (Node3)
11409 4 => False, -- Entity (Node4-Sem)
11410 5 => False), -- Etype (Node5-Sem)
11412 N_Op_Mod =>
11413 (1 => True, -- Chars (Name1)
11414 2 => True, -- Left_Opnd (Node2)
11415 3 => True, -- Right_Opnd (Node3)
11416 4 => False, -- Entity (Node4-Sem)
11417 5 => False), -- Etype (Node5-Sem)
11419 N_Op_Rem =>
11420 (1 => True, -- Chars (Name1)
11421 2 => True, -- Left_Opnd (Node2)
11422 3 => True, -- Right_Opnd (Node3)
11423 4 => False, -- Entity (Node4-Sem)
11424 5 => False), -- Etype (Node5-Sem)
11426 N_Op_Expon =>
11427 (1 => True, -- Chars (Name1)
11428 2 => True, -- Left_Opnd (Node2)
11429 3 => True, -- Right_Opnd (Node3)
11430 4 => False, -- Entity (Node4-Sem)
11431 5 => False), -- Etype (Node5-Sem)
11433 N_Op_Plus =>
11434 (1 => True, -- Chars (Name1)
11435 2 => False, -- unused
11436 3 => True, -- Right_Opnd (Node3)
11437 4 => False, -- Entity (Node4-Sem)
11438 5 => False), -- Etype (Node5-Sem)
11440 N_Op_Minus =>
11441 (1 => True, -- Chars (Name1)
11442 2 => False, -- unused
11443 3 => True, -- Right_Opnd (Node3)
11444 4 => False, -- Entity (Node4-Sem)
11445 5 => False), -- Etype (Node5-Sem)
11447 N_Op_Abs =>
11448 (1 => True, -- Chars (Name1)
11449 2 => False, -- unused
11450 3 => True, -- Right_Opnd (Node3)
11451 4 => False, -- Entity (Node4-Sem)
11452 5 => False), -- Etype (Node5-Sem)
11454 N_Op_Not =>
11455 (1 => True, -- Chars (Name1)
11456 2 => False, -- unused
11457 3 => True, -- Right_Opnd (Node3)
11458 4 => False, -- Entity (Node4-Sem)
11459 5 => False), -- Etype (Node5-Sem)
11461 N_Type_Conversion =>
11462 (1 => False, -- unused
11463 2 => False, -- unused
11464 3 => True, -- Expression (Node3)
11465 4 => True, -- Subtype_Mark (Node4)
11466 5 => False), -- Etype (Node5-Sem)
11468 N_Qualified_Expression =>
11469 (1 => False, -- unused
11470 2 => False, -- unused
11471 3 => True, -- Expression (Node3)
11472 4 => True, -- Subtype_Mark (Node4)
11473 5 => False), -- Etype (Node5-Sem)
11475 N_Quantified_Expression =>
11476 (1 => True, -- Condition (Node1)
11477 2 => True, -- Iterator_Specification
11478 3 => False, -- unused
11479 4 => True, -- Loop_Parameter_Specification (Node4)
11480 5 => False), -- Etype (Node5-Sem)
11482 N_Allocator =>
11483 (1 => False, -- Storage_Pool (Node1-Sem)
11484 2 => False, -- Procedure_To_Call (Node2-Sem)
11485 3 => True, -- Expression (Node3)
11486 4 => True, -- Subpool_Handle_Name (Node4)
11487 5 => False), -- Etype (Node5-Sem)
11489 N_Null_Statement =>
11490 (1 => False, -- unused
11491 2 => False, -- unused
11492 3 => False, -- unused
11493 4 => False, -- unused
11494 5 => False), -- unused
11496 N_Label =>
11497 (1 => True, -- Identifier (Node1)
11498 2 => False, -- unused
11499 3 => False, -- unused
11500 4 => False, -- unused
11501 5 => False), -- unused
11503 N_Assignment_Statement =>
11504 (1 => False, -- unused
11505 2 => True, -- Name (Node2)
11506 3 => True, -- Expression (Node3)
11507 4 => False, -- unused
11508 5 => False), -- unused
11510 N_If_Statement =>
11511 (1 => True, -- Condition (Node1)
11512 2 => True, -- Then_Statements (List2)
11513 3 => True, -- Elsif_Parts (List3)
11514 4 => True, -- Else_Statements (List4)
11515 5 => True), -- End_Span (Uint5)
11517 N_Elsif_Part =>
11518 (1 => True, -- Condition (Node1)
11519 2 => True, -- Then_Statements (List2)
11520 3 => False, -- Condition_Actions (List3-Sem)
11521 4 => False, -- unused
11522 5 => False), -- unused
11524 N_Case_Expression =>
11525 (1 => False, -- unused
11526 2 => False, -- unused
11527 3 => True, -- Expression (Node3)
11528 4 => True, -- Alternatives (List4)
11529 5 => False), -- unused
11531 N_Case_Expression_Alternative =>
11532 (1 => False, -- Actions (List1-Sem)
11533 2 => False, -- unused
11534 3 => True, -- Statements (List3)
11535 4 => True, -- Expression (Node4)
11536 5 => False), -- unused
11538 N_Case_Statement =>
11539 (1 => False, -- unused
11540 2 => False, -- unused
11541 3 => True, -- Expression (Node3)
11542 4 => True, -- Alternatives (List4)
11543 5 => True), -- End_Span (Uint5)
11545 N_Case_Statement_Alternative =>
11546 (1 => False, -- unused
11547 2 => False, -- unused
11548 3 => True, -- Statements (List3)
11549 4 => True, -- Discrete_Choices (List4)
11550 5 => False), -- unused
11552 N_Loop_Statement =>
11553 (1 => True, -- Identifier (Node1)
11554 2 => True, -- Iteration_Scheme (Node2)
11555 3 => True, -- Statements (List3)
11556 4 => True, -- End_Label (Node4)
11557 5 => False), -- unused
11559 N_Iteration_Scheme =>
11560 (1 => True, -- Condition (Node1)
11561 2 => True, -- Iterator_Specification (Node2)
11562 3 => False, -- Condition_Actions (List3-Sem)
11563 4 => True, -- Loop_Parameter_Specification (Node4)
11564 5 => False), -- unused
11566 N_Loop_Parameter_Specification =>
11567 (1 => True, -- Defining_Identifier (Node1)
11568 2 => False, -- unused
11569 3 => False, -- unused
11570 4 => True, -- Discrete_Subtype_Definition (Node4)
11571 5 => False), -- unused
11573 N_Iterator_Specification =>
11574 (1 => True, -- Defining_Identifier (Node1)
11575 2 => True, -- Name (Node2)
11576 3 => False, -- Unused
11577 4 => False, -- Unused
11578 5 => True), -- Subtype_Indication (Node5)
11580 N_Block_Statement =>
11581 (1 => True, -- Identifier (Node1)
11582 2 => True, -- Declarations (List2)
11583 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11584 4 => True, -- Handled_Statement_Sequence (Node4)
11585 5 => False), -- unused
11587 N_Exit_Statement =>
11588 (1 => True, -- Condition (Node1)
11589 2 => True, -- Name (Node2)
11590 3 => False, -- unused
11591 4 => False, -- unused
11592 5 => False), -- unused
11594 N_Goto_Statement =>
11595 (1 => False, -- unused
11596 2 => True, -- Name (Node2)
11597 3 => False, -- unused
11598 4 => False, -- unused
11599 5 => False), -- unused
11601 N_Subprogram_Declaration =>
11602 (1 => True, -- Specification (Node1)
11603 2 => False, -- unused
11604 3 => False, -- Body_To_Inline (Node3-Sem)
11605 4 => False, -- Parent_Spec (Node4-Sem)
11606 5 => False), -- Corresponding_Body (Node5-Sem)
11608 N_Abstract_Subprogram_Declaration =>
11609 (1 => True, -- Specification (Node1)
11610 2 => False, -- unused
11611 3 => False, -- unused
11612 4 => False, -- unused
11613 5 => False), -- unused
11615 N_Function_Specification =>
11616 (1 => True, -- Defining_Unit_Name (Node1)
11617 2 => False, -- unused
11618 3 => True, -- Parameter_Specifications (List3)
11619 4 => True, -- Result_Definition (Node4)
11620 5 => False), -- Generic_Parent (Node5-Sem)
11622 N_Procedure_Specification =>
11623 (1 => True, -- Defining_Unit_Name (Node1)
11624 2 => False, -- unused
11625 3 => True, -- Parameter_Specifications (List3)
11626 4 => False, -- unused
11627 5 => False), -- Generic_Parent (Node5-Sem)
11629 N_Designator =>
11630 (1 => True, -- Identifier (Node1)
11631 2 => True, -- Name (Node2)
11632 3 => False, -- unused
11633 4 => False, -- unused
11634 5 => False), -- unused
11636 N_Defining_Program_Unit_Name =>
11637 (1 => True, -- Defining_Identifier (Node1)
11638 2 => True, -- Name (Node2)
11639 3 => False, -- unused
11640 4 => False, -- unused
11641 5 => False), -- unused
11643 N_Operator_Symbol =>
11644 (1 => True, -- Chars (Name1)
11645 2 => False, -- unused
11646 3 => True, -- Strval (Str3)
11647 4 => False, -- Entity (Node4-Sem)
11648 5 => False), -- Etype (Node5-Sem)
11650 N_Defining_Operator_Symbol =>
11651 (1 => True, -- Chars (Name1)
11652 2 => False, -- Next_Entity (Node2-Sem)
11653 3 => False, -- Scope (Node3-Sem)
11654 4 => False, -- unused
11655 5 => False), -- Etype (Node5-Sem)
11657 N_Parameter_Specification =>
11658 (1 => True, -- Defining_Identifier (Node1)
11659 2 => True, -- Parameter_Type (Node2)
11660 3 => True, -- Expression (Node3)
11661 4 => False, -- unused
11662 5 => False), -- Default_Expression (Node5-Sem)
11664 N_Subprogram_Body =>
11665 (1 => True, -- Specification (Node1)
11666 2 => True, -- Declarations (List2)
11667 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11668 4 => True, -- Handled_Statement_Sequence (Node4)
11669 5 => False), -- Corresponding_Spec (Node5-Sem)
11671 N_Expression_Function =>
11672 (1 => True, -- Specification (Node1)
11673 2 => False, -- unused
11674 3 => True, -- Expression (Node3)
11675 4 => False, -- unused
11676 5 => False), -- unused
11678 N_Procedure_Call_Statement =>
11679 (1 => False, -- Controlling_Argument (Node1-Sem)
11680 2 => True, -- Name (Node2)
11681 3 => True, -- Parameter_Associations (List3)
11682 4 => False, -- First_Named_Actual (Node4-Sem)
11683 5 => False), -- Etype (Node5-Sem)
11685 N_Function_Call =>
11686 (1 => False, -- Controlling_Argument (Node1-Sem)
11687 2 => True, -- Name (Node2)
11688 3 => True, -- Parameter_Associations (List3)
11689 4 => False, -- First_Named_Actual (Node4-Sem)
11690 5 => False), -- Etype (Node5-Sem)
11692 N_Parameter_Association =>
11693 (1 => False, -- unused
11694 2 => True, -- Selector_Name (Node2)
11695 3 => True, -- Explicit_Actual_Parameter (Node3)
11696 4 => False, -- Next_Named_Actual (Node4-Sem)
11697 5 => False), -- unused
11699 N_Simple_Return_Statement =>
11700 (1 => False, -- Storage_Pool (Node1-Sem)
11701 2 => False, -- Procedure_To_Call (Node2-Sem)
11702 3 => True, -- Expression (Node3)
11703 4 => False, -- unused
11704 5 => False), -- Return_Statement_Entity (Node5-Sem)
11706 N_Extended_Return_Statement =>
11707 (1 => False, -- Storage_Pool (Node1-Sem)
11708 2 => False, -- Procedure_To_Call (Node2-Sem)
11709 3 => True, -- Return_Object_Declarations (List3)
11710 4 => True, -- Handled_Statement_Sequence (Node4)
11711 5 => False), -- Return_Statement_Entity (Node5-Sem)
11713 N_Package_Declaration =>
11714 (1 => True, -- Specification (Node1)
11715 2 => False, -- unused
11716 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11717 4 => False, -- Parent_Spec (Node4-Sem)
11718 5 => False), -- Corresponding_Body (Node5-Sem)
11720 N_Package_Specification =>
11721 (1 => True, -- Defining_Unit_Name (Node1)
11722 2 => True, -- Visible_Declarations (List2)
11723 3 => True, -- Private_Declarations (List3)
11724 4 => True, -- End_Label (Node4)
11725 5 => False), -- Generic_Parent (Node5-Sem)
11727 N_Package_Body =>
11728 (1 => True, -- Defining_Unit_Name (Node1)
11729 2 => True, -- Declarations (List2)
11730 3 => False, -- unused
11731 4 => True, -- Handled_Statement_Sequence (Node4)
11732 5 => False), -- Corresponding_Spec (Node5-Sem)
11734 N_Private_Type_Declaration =>
11735 (1 => True, -- Defining_Identifier (Node1)
11736 2 => False, -- unused
11737 3 => False, -- unused
11738 4 => True, -- Discriminant_Specifications (List4)
11739 5 => False), -- unused
11741 N_Private_Extension_Declaration =>
11742 (1 => True, -- Defining_Identifier (Node1)
11743 2 => True, -- Interface_List (List2)
11744 3 => False, -- unused
11745 4 => True, -- Discriminant_Specifications (List4)
11746 5 => True), -- Subtype_Indication (Node5)
11748 N_Use_Package_Clause =>
11749 (1 => False, -- unused
11750 2 => True, -- Names (List2)
11751 3 => False, -- Next_Use_Clause (Node3-Sem)
11752 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11753 5 => False), -- unused
11755 N_Use_Type_Clause =>
11756 (1 => False, -- unused
11757 2 => True, -- Subtype_Marks (List2)
11758 3 => False, -- Next_Use_Clause (Node3-Sem)
11759 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11760 5 => False), -- unused
11762 N_Object_Renaming_Declaration =>
11763 (1 => True, -- Defining_Identifier (Node1)
11764 2 => True, -- Name (Node2)
11765 3 => True, -- Access_Definition (Node3)
11766 4 => True, -- Subtype_Mark (Node4)
11767 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11769 N_Exception_Renaming_Declaration =>
11770 (1 => True, -- Defining_Identifier (Node1)
11771 2 => True, -- Name (Node2)
11772 3 => False, -- unused
11773 4 => False, -- unused
11774 5 => False), -- unused
11776 N_Package_Renaming_Declaration =>
11777 (1 => True, -- Defining_Unit_Name (Node1)
11778 2 => True, -- Name (Node2)
11779 3 => False, -- unused
11780 4 => False, -- Parent_Spec (Node4-Sem)
11781 5 => False), -- unused
11783 N_Subprogram_Renaming_Declaration =>
11784 (1 => True, -- Specification (Node1)
11785 2 => True, -- Name (Node2)
11786 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11787 4 => False, -- Parent_Spec (Node4-Sem)
11788 5 => False), -- Corresponding_Spec (Node5-Sem)
11790 N_Generic_Package_Renaming_Declaration =>
11791 (1 => True, -- Defining_Unit_Name (Node1)
11792 2 => True, -- Name (Node2)
11793 3 => False, -- unused
11794 4 => False, -- Parent_Spec (Node4-Sem)
11795 5 => False), -- unused
11797 N_Generic_Procedure_Renaming_Declaration =>
11798 (1 => True, -- Defining_Unit_Name (Node1)
11799 2 => True, -- Name (Node2)
11800 3 => False, -- unused
11801 4 => False, -- Parent_Spec (Node4-Sem)
11802 5 => False), -- unused
11804 N_Generic_Function_Renaming_Declaration =>
11805 (1 => True, -- Defining_Unit_Name (Node1)
11806 2 => True, -- Name (Node2)
11807 3 => False, -- unused
11808 4 => False, -- Parent_Spec (Node4-Sem)
11809 5 => False), -- unused
11811 N_Task_Type_Declaration =>
11812 (1 => True, -- Defining_Identifier (Node1)
11813 2 => True, -- Interface_List (List2)
11814 3 => True, -- Task_Definition (Node3)
11815 4 => True, -- Discriminant_Specifications (List4)
11816 5 => False), -- Corresponding_Body (Node5-Sem)
11818 N_Single_Task_Declaration =>
11819 (1 => True, -- Defining_Identifier (Node1)
11820 2 => True, -- Interface_List (List2)
11821 3 => True, -- Task_Definition (Node3)
11822 4 => False, -- unused
11823 5 => False), -- unused
11825 N_Task_Definition =>
11826 (1 => False, -- unused
11827 2 => True, -- Visible_Declarations (List2)
11828 3 => True, -- Private_Declarations (List3)
11829 4 => True, -- End_Label (Node4)
11830 5 => False), -- unused
11832 N_Task_Body =>
11833 (1 => True, -- Defining_Identifier (Node1)
11834 2 => True, -- Declarations (List2)
11835 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11836 4 => True, -- Handled_Statement_Sequence (Node4)
11837 5 => False), -- Corresponding_Spec (Node5-Sem)
11839 N_Protected_Type_Declaration =>
11840 (1 => True, -- Defining_Identifier (Node1)
11841 2 => True, -- Interface_List (List2)
11842 3 => True, -- Protected_Definition (Node3)
11843 4 => True, -- Discriminant_Specifications (List4)
11844 5 => False), -- Corresponding_Body (Node5-Sem)
11846 N_Single_Protected_Declaration =>
11847 (1 => True, -- Defining_Identifier (Node1)
11848 2 => True, -- Interface_List (List2)
11849 3 => True, -- Protected_Definition (Node3)
11850 4 => False, -- unused
11851 5 => False), -- unused
11853 N_Protected_Definition =>
11854 (1 => False, -- unused
11855 2 => True, -- Visible_Declarations (List2)
11856 3 => True, -- Private_Declarations (List3)
11857 4 => True, -- End_Label (Node4)
11858 5 => False), -- unused
11860 N_Protected_Body =>
11861 (1 => True, -- Defining_Identifier (Node1)
11862 2 => True, -- Declarations (List2)
11863 3 => False, -- unused
11864 4 => True, -- End_Label (Node4)
11865 5 => False), -- Corresponding_Spec (Node5-Sem)
11867 N_Entry_Declaration =>
11868 (1 => True, -- Defining_Identifier (Node1)
11869 2 => False, -- unused
11870 3 => True, -- Parameter_Specifications (List3)
11871 4 => True, -- Discrete_Subtype_Definition (Node4)
11872 5 => False), -- Corresponding_Body (Node5-Sem)
11874 N_Accept_Statement =>
11875 (1 => True, -- Entry_Direct_Name (Node1)
11876 2 => True, -- Declarations (List2)
11877 3 => True, -- Parameter_Specifications (List3)
11878 4 => True, -- Handled_Statement_Sequence (Node4)
11879 5 => True), -- Entry_Index (Node5)
11881 N_Entry_Body =>
11882 (1 => True, -- Defining_Identifier (Node1)
11883 2 => True, -- Declarations (List2)
11884 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11885 4 => True, -- Handled_Statement_Sequence (Node4)
11886 5 => True), -- Entry_Body_Formal_Part (Node5)
11888 N_Entry_Body_Formal_Part =>
11889 (1 => True, -- Condition (Node1)
11890 2 => False, -- unused
11891 3 => True, -- Parameter_Specifications (List3)
11892 4 => True, -- Entry_Index_Specification (Node4)
11893 5 => False), -- unused
11895 N_Entry_Index_Specification =>
11896 (1 => True, -- Defining_Identifier (Node1)
11897 2 => False, -- unused
11898 3 => False, -- unused
11899 4 => True, -- Discrete_Subtype_Definition (Node4)
11900 5 => False), -- unused
11902 N_Entry_Call_Statement =>
11903 (1 => False, -- unused
11904 2 => True, -- Name (Node2)
11905 3 => True, -- Parameter_Associations (List3)
11906 4 => False, -- First_Named_Actual (Node4-Sem)
11907 5 => False), -- unused
11909 N_Requeue_Statement =>
11910 (1 => False, -- unused
11911 2 => True, -- Name (Node2)
11912 3 => False, -- unused
11913 4 => False, -- unused
11914 5 => False), -- unused
11916 N_Delay_Until_Statement =>
11917 (1 => False, -- unused
11918 2 => False, -- unused
11919 3 => True, -- Expression (Node3)
11920 4 => False, -- unused
11921 5 => False), -- unused
11923 N_Delay_Relative_Statement =>
11924 (1 => False, -- unused
11925 2 => False, -- unused
11926 3 => True, -- Expression (Node3)
11927 4 => False, -- unused
11928 5 => False), -- unused
11930 N_Selective_Accept =>
11931 (1 => True, -- Select_Alternatives (List1)
11932 2 => False, -- unused
11933 3 => False, -- unused
11934 4 => True, -- Else_Statements (List4)
11935 5 => False), -- unused
11937 N_Accept_Alternative =>
11938 (1 => True, -- Condition (Node1)
11939 2 => True, -- Accept_Statement (Node2)
11940 3 => True, -- Statements (List3)
11941 4 => True, -- Pragmas_Before (List4)
11942 5 => False), -- Accept_Handler_Records (List5-Sem)
11944 N_Delay_Alternative =>
11945 (1 => True, -- Condition (Node1)
11946 2 => True, -- Delay_Statement (Node2)
11947 3 => True, -- Statements (List3)
11948 4 => True, -- Pragmas_Before (List4)
11949 5 => False), -- unused
11951 N_Terminate_Alternative =>
11952 (1 => True, -- Condition (Node1)
11953 2 => False, -- unused
11954 3 => False, -- unused
11955 4 => True, -- Pragmas_Before (List4)
11956 5 => True), -- Pragmas_After (List5)
11958 N_Timed_Entry_Call =>
11959 (1 => True, -- Entry_Call_Alternative (Node1)
11960 2 => False, -- unused
11961 3 => False, -- unused
11962 4 => True, -- Delay_Alternative (Node4)
11963 5 => False), -- unused
11965 N_Entry_Call_Alternative =>
11966 (1 => True, -- Entry_Call_Statement (Node1)
11967 2 => False, -- unused
11968 3 => True, -- Statements (List3)
11969 4 => True, -- Pragmas_Before (List4)
11970 5 => False), -- unused
11972 N_Conditional_Entry_Call =>
11973 (1 => True, -- Entry_Call_Alternative (Node1)
11974 2 => False, -- unused
11975 3 => False, -- unused
11976 4 => True, -- Else_Statements (List4)
11977 5 => False), -- unused
11979 N_Asynchronous_Select =>
11980 (1 => True, -- Triggering_Alternative (Node1)
11981 2 => True, -- Abortable_Part (Node2)
11982 3 => False, -- unused
11983 4 => False, -- unused
11984 5 => False), -- unused
11986 N_Triggering_Alternative =>
11987 (1 => True, -- Triggering_Statement (Node1)
11988 2 => False, -- unused
11989 3 => True, -- Statements (List3)
11990 4 => True, -- Pragmas_Before (List4)
11991 5 => False), -- unused
11993 N_Abortable_Part =>
11994 (1 => False, -- unused
11995 2 => False, -- unused
11996 3 => True, -- Statements (List3)
11997 4 => False, -- unused
11998 5 => False), -- unused
12000 N_Abort_Statement =>
12001 (1 => False, -- unused
12002 2 => True, -- Names (List2)
12003 3 => False, -- unused
12004 4 => False, -- unused
12005 5 => False), -- unused
12007 N_Compilation_Unit =>
12008 (1 => True, -- Context_Items (List1)
12009 2 => True, -- Unit (Node2)
12010 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12011 4 => False, -- Library_Unit (Node4-Sem)
12012 5 => True), -- Aux_Decls_Node (Node5)
12014 N_Compilation_Unit_Aux =>
12015 (1 => True, -- Actions (List1)
12016 2 => True, -- Declarations (List2)
12017 3 => False, -- Default_Storage_Pool (Node3)
12018 4 => True, -- Config_Pragmas (List4)
12019 5 => True), -- Pragmas_After (List5)
12021 N_With_Clause =>
12022 (1 => False, -- unused
12023 2 => True, -- Name (Node2)
12024 3 => False, -- unused
12025 4 => False, -- Library_Unit (Node4-Sem)
12026 5 => False), -- Corresponding_Spec (Node5-Sem)
12028 N_Subprogram_Body_Stub =>
12029 (1 => True, -- Specification (Node1)
12030 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12031 3 => False, -- unused
12032 4 => False, -- Library_Unit (Node4-Sem)
12033 5 => False), -- Corresponding_Body (Node5-Sem)
12035 N_Package_Body_Stub =>
12036 (1 => True, -- Defining_Identifier (Node1)
12037 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12038 3 => False, -- unused
12039 4 => False, -- Library_Unit (Node4-Sem)
12040 5 => False), -- Corresponding_Body (Node5-Sem)
12042 N_Task_Body_Stub =>
12043 (1 => True, -- Defining_Identifier (Node1)
12044 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12045 3 => False, -- unused
12046 4 => False, -- Library_Unit (Node4-Sem)
12047 5 => False), -- Corresponding_Body (Node5-Sem)
12049 N_Protected_Body_Stub =>
12050 (1 => True, -- Defining_Identifier (Node1)
12051 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12052 3 => False, -- unused
12053 4 => False, -- Library_Unit (Node4-Sem)
12054 5 => False), -- Corresponding_Body (Node5-Sem)
12056 N_Subunit =>
12057 (1 => True, -- Proper_Body (Node1)
12058 2 => True, -- Name (Node2)
12059 3 => False, -- Corresponding_Stub (Node3-Sem)
12060 4 => False, -- unused
12061 5 => False), -- unused
12063 N_Exception_Declaration =>
12064 (1 => True, -- Defining_Identifier (Node1)
12065 2 => False, -- unused
12066 3 => False, -- Expression (Node3-Sem)
12067 4 => False, -- unused
12068 5 => False), -- unused
12070 N_Handled_Sequence_Of_Statements =>
12071 (1 => True, -- At_End_Proc (Node1)
12072 2 => False, -- First_Real_Statement (Node2-Sem)
12073 3 => True, -- Statements (List3)
12074 4 => True, -- End_Label (Node4)
12075 5 => True), -- Exception_Handlers (List5)
12077 N_Exception_Handler =>
12078 (1 => False, -- Local_Raise_Statements (Elist1)
12079 2 => True, -- Choice_Parameter (Node2)
12080 3 => True, -- Statements (List3)
12081 4 => True, -- Exception_Choices (List4)
12082 5 => False), -- Exception_Label (Node5)
12084 N_Raise_Statement =>
12085 (1 => False, -- unused
12086 2 => True, -- Name (Node2)
12087 3 => True, -- Expression (Node3)
12088 4 => False, -- unused
12089 5 => False), -- unused
12091 N_Raise_Expression =>
12092 (1 => False, -- unused
12093 2 => True, -- Name (Node2)
12094 3 => True, -- Expression (Node3)
12095 4 => False, -- unused
12096 5 => False), -- Etype (Node5-Sem)
12098 N_Generic_Subprogram_Declaration =>
12099 (1 => True, -- Specification (Node1)
12100 2 => True, -- Generic_Formal_Declarations (List2)
12101 3 => False, -- unused
12102 4 => False, -- Parent_Spec (Node4-Sem)
12103 5 => False), -- Corresponding_Body (Node5-Sem)
12105 N_Generic_Package_Declaration =>
12106 (1 => True, -- Specification (Node1)
12107 2 => True, -- Generic_Formal_Declarations (List2)
12108 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12109 4 => False, -- Parent_Spec (Node4-Sem)
12110 5 => False), -- Corresponding_Body (Node5-Sem)
12112 N_Package_Instantiation =>
12113 (1 => True, -- Defining_Unit_Name (Node1)
12114 2 => True, -- Name (Node2)
12115 3 => True, -- Generic_Associations (List3)
12116 4 => False, -- Parent_Spec (Node4-Sem)
12117 5 => False), -- Instance_Spec (Node5-Sem)
12119 N_Procedure_Instantiation =>
12120 (1 => True, -- Defining_Unit_Name (Node1)
12121 2 => True, -- Name (Node2)
12122 3 => True, -- Generic_Associations (List3)
12123 4 => False, -- Parent_Spec (Node4-Sem)
12124 5 => False), -- Instance_Spec (Node5-Sem)
12126 N_Function_Instantiation =>
12127 (1 => True, -- Defining_Unit_Name (Node1)
12128 2 => True, -- Name (Node2)
12129 3 => True, -- Generic_Associations (List3)
12130 4 => False, -- Parent_Spec (Node4-Sem)
12131 5 => False), -- Instance_Spec (Node5-Sem)
12133 N_Generic_Association =>
12134 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12135 2 => True, -- Selector_Name (Node2)
12136 3 => False, -- unused
12137 4 => False, -- unused
12138 5 => False), -- unused
12140 N_Formal_Object_Declaration =>
12141 (1 => True, -- Defining_Identifier (Node1)
12142 2 => False, -- unused
12143 3 => True, -- Access_Definition (Node3)
12144 4 => True, -- Subtype_Mark (Node4)
12145 5 => True), -- Default_Expression (Node5)
12147 N_Formal_Type_Declaration =>
12148 (1 => True, -- Defining_Identifier (Node1)
12149 2 => False, -- unused
12150 3 => True, -- Formal_Type_Definition (Node3)
12151 4 => True, -- Discriminant_Specifications (List4)
12152 5 => False), -- unused
12154 N_Formal_Private_Type_Definition =>
12155 (1 => False, -- unused
12156 2 => False, -- unused
12157 3 => False, -- unused
12158 4 => False, -- unused
12159 5 => False), -- unused
12161 N_Formal_Incomplete_Type_Definition =>
12162 (1 => False, -- unused
12163 2 => False, -- unused
12164 3 => False, -- unused
12165 4 => False, -- unused
12166 5 => False), -- unused
12168 N_Formal_Derived_Type_Definition =>
12169 (1 => False, -- unused
12170 2 => True, -- Interface_List (List2)
12171 3 => False, -- unused
12172 4 => True, -- Subtype_Mark (Node4)
12173 5 => False), -- unused
12175 N_Formal_Discrete_Type_Definition =>
12176 (1 => False, -- unused
12177 2 => False, -- unused
12178 3 => False, -- unused
12179 4 => False, -- unused
12180 5 => False), -- unused
12182 N_Formal_Signed_Integer_Type_Definition =>
12183 (1 => False, -- unused
12184 2 => False, -- unused
12185 3 => False, -- unused
12186 4 => False, -- unused
12187 5 => False), -- unused
12189 N_Formal_Modular_Type_Definition =>
12190 (1 => False, -- unused
12191 2 => False, -- unused
12192 3 => False, -- unused
12193 4 => False, -- unused
12194 5 => False), -- unused
12196 N_Formal_Floating_Point_Definition =>
12197 (1 => False, -- unused
12198 2 => False, -- unused
12199 3 => False, -- unused
12200 4 => False, -- unused
12201 5 => False), -- unused
12203 N_Formal_Ordinary_Fixed_Point_Definition =>
12204 (1 => False, -- unused
12205 2 => False, -- unused
12206 3 => False, -- unused
12207 4 => False, -- unused
12208 5 => False), -- unused
12210 N_Formal_Decimal_Fixed_Point_Definition =>
12211 (1 => False, -- unused
12212 2 => False, -- unused
12213 3 => False, -- unused
12214 4 => False, -- unused
12215 5 => False), -- unused
12217 N_Formal_Concrete_Subprogram_Declaration =>
12218 (1 => True, -- Specification (Node1)
12219 2 => True, -- Default_Name (Node2)
12220 3 => False, -- unused
12221 4 => False, -- unused
12222 5 => False), -- unused
12224 N_Formal_Abstract_Subprogram_Declaration =>
12225 (1 => True, -- Specification (Node1)
12226 2 => True, -- Default_Name (Node2)
12227 3 => False, -- unused
12228 4 => False, -- unused
12229 5 => False), -- unused
12231 N_Formal_Package_Declaration =>
12232 (1 => True, -- Defining_Identifier (Node1)
12233 2 => True, -- Name (Node2)
12234 3 => True, -- Generic_Associations (List3)
12235 4 => False, -- unused
12236 5 => False), -- Instance_Spec (Node5-Sem)
12238 N_Attribute_Definition_Clause =>
12239 (1 => True, -- Chars (Name1)
12240 2 => True, -- Name (Node2)
12241 3 => True, -- Expression (Node3)
12242 4 => False, -- unused
12243 5 => False), -- Next_Rep_Item (Node5-Sem)
12245 N_Aspect_Specification =>
12246 (1 => True, -- Identifier (Node1)
12247 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12248 3 => True, -- Expression (Node3)
12249 4 => False, -- Entity (Node4-Sem)
12250 5 => False), -- Next_Rep_Item (Node5-Sem)
12252 N_Enumeration_Representation_Clause =>
12253 (1 => True, -- Identifier (Node1)
12254 2 => False, -- unused
12255 3 => True, -- Array_Aggregate (Node3)
12256 4 => False, -- unused
12257 5 => False), -- Next_Rep_Item (Node5-Sem)
12259 N_Record_Representation_Clause =>
12260 (1 => True, -- Identifier (Node1)
12261 2 => True, -- Mod_Clause (Node2)
12262 3 => True, -- Component_Clauses (List3)
12263 4 => False, -- unused
12264 5 => False), -- Next_Rep_Item (Node5-Sem)
12266 N_Component_Clause =>
12267 (1 => True, -- Component_Name (Node1)
12268 2 => True, -- Position (Node2)
12269 3 => True, -- First_Bit (Node3)
12270 4 => True, -- Last_Bit (Node4)
12271 5 => False), -- unused
12273 N_Code_Statement =>
12274 (1 => False, -- unused
12275 2 => False, -- unused
12276 3 => True, -- Expression (Node3)
12277 4 => False, -- unused
12278 5 => False), -- unused
12280 N_Op_Rotate_Left =>
12281 (1 => True, -- Chars (Name1)
12282 2 => True, -- Left_Opnd (Node2)
12283 3 => True, -- Right_Opnd (Node3)
12284 4 => False, -- Entity (Node4-Sem)
12285 5 => False), -- Etype (Node5-Sem)
12287 N_Op_Rotate_Right =>
12288 (1 => True, -- Chars (Name1)
12289 2 => True, -- Left_Opnd (Node2)
12290 3 => True, -- Right_Opnd (Node3)
12291 4 => False, -- Entity (Node4-Sem)
12292 5 => False), -- Etype (Node5-Sem)
12294 N_Op_Shift_Left =>
12295 (1 => True, -- Chars (Name1)
12296 2 => True, -- Left_Opnd (Node2)
12297 3 => True, -- Right_Opnd (Node3)
12298 4 => False, -- Entity (Node4-Sem)
12299 5 => False), -- Etype (Node5-Sem)
12301 N_Op_Shift_Right_Arithmetic =>
12302 (1 => True, -- Chars (Name1)
12303 2 => True, -- Left_Opnd (Node2)
12304 3 => True, -- Right_Opnd (Node3)
12305 4 => False, -- Entity (Node4-Sem)
12306 5 => False), -- Etype (Node5-Sem)
12308 N_Op_Shift_Right =>
12309 (1 => True, -- Chars (Name1)
12310 2 => True, -- Left_Opnd (Node2)
12311 3 => True, -- Right_Opnd (Node3)
12312 4 => False, -- Entity (Node4-Sem)
12313 5 => False), -- Etype (Node5-Sem)
12315 N_Delta_Constraint =>
12316 (1 => False, -- unused
12317 2 => False, -- unused
12318 3 => True, -- Delta_Expression (Node3)
12319 4 => True, -- Range_Constraint (Node4)
12320 5 => False), -- unused
12322 N_At_Clause =>
12323 (1 => True, -- Identifier (Node1)
12324 2 => False, -- unused
12325 3 => True, -- Expression (Node3)
12326 4 => False, -- unused
12327 5 => False), -- unused
12329 N_Mod_Clause =>
12330 (1 => False, -- unused
12331 2 => False, -- unused
12332 3 => True, -- Expression (Node3)
12333 4 => True, -- Pragmas_Before (List4)
12334 5 => False), -- unused
12336 N_If_Expression =>
12337 (1 => True, -- Expressions (List1)
12338 2 => False, -- Then_Actions (List2-Sem)
12339 3 => False, -- Else_Actions (List3-Sem)
12340 4 => False, -- unused
12341 5 => False), -- Etype (Node5-Sem)
12343 N_Compound_Statement =>
12344 (1 => True, -- Actions (List1)
12345 2 => False, -- unused
12346 3 => False, -- unused
12347 4 => False, -- unused
12348 5 => False), -- unused
12350 N_Contract =>
12351 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12352 2 => False, -- Contract_Test_Cases (Node2-Sem)
12353 3 => False, -- Classifications (Node3-Sem)
12354 4 => False, -- unused
12355 5 => False), -- unused
12357 N_Expanded_Name =>
12358 (1 => True, -- Chars (Name1)
12359 2 => True, -- Selector_Name (Node2)
12360 3 => True, -- Prefix (Node3)
12361 4 => False, -- Entity (Node4-Sem)
12362 5 => False), -- Etype (Node5-Sem)
12364 N_Expression_With_Actions =>
12365 (1 => True, -- Actions (List1)
12366 2 => False, -- unused
12367 3 => True, -- Expression (Node3)
12368 4 => False, -- unused
12369 5 => False), -- unused
12371 N_Free_Statement =>
12372 (1 => False, -- Storage_Pool (Node1-Sem)
12373 2 => False, -- Procedure_To_Call (Node2-Sem)
12374 3 => True, -- Expression (Node3)
12375 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12376 5 => False), -- unused
12378 N_Freeze_Entity =>
12379 (1 => True, -- Actions (List1)
12380 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12381 3 => False, -- TSS_Elist (Elist3-Sem)
12382 4 => False, -- Entity (Node4-Sem)
12383 5 => False), -- First_Subtype_Link (Node5-Sem)
12385 N_Freeze_Generic_Entity =>
12386 (1 => False, -- unused
12387 2 => False, -- unused
12388 3 => False, -- unused
12389 4 => False, -- Entity (Node4-Sem)
12390 5 => False), -- unused
12392 N_Implicit_Label_Declaration =>
12393 (1 => True, -- Defining_Identifier (Node1)
12394 2 => False, -- Label_Construct (Node2-Sem)
12395 3 => False, -- unused
12396 4 => False, -- unused
12397 5 => False), -- unused
12399 N_Itype_Reference =>
12400 (1 => False, -- Itype (Node1-Sem)
12401 2 => False, -- unused
12402 3 => False, -- unused
12403 4 => False, -- unused
12404 5 => False), -- unused
12406 N_Raise_Constraint_Error =>
12407 (1 => True, -- Condition (Node1)
12408 2 => False, -- unused
12409 3 => True, -- Reason (Uint3)
12410 4 => False, -- unused
12411 5 => False), -- Etype (Node5-Sem)
12413 N_Raise_Program_Error =>
12414 (1 => True, -- Condition (Node1)
12415 2 => False, -- unused
12416 3 => True, -- Reason (Uint3)
12417 4 => False, -- unused
12418 5 => False), -- Etype (Node5-Sem)
12420 N_Raise_Storage_Error =>
12421 (1 => True, -- Condition (Node1)
12422 2 => False, -- unused
12423 3 => True, -- Reason (Uint3)
12424 4 => False, -- unused
12425 5 => False), -- Etype (Node5-Sem)
12427 N_Push_Constraint_Error_Label =>
12428 (1 => False, -- unused
12429 2 => False, -- unused
12430 3 => False, -- unused
12431 4 => False, -- unused
12432 5 => False), -- unused
12434 N_Push_Program_Error_Label =>
12435 (1 => False, -- Exception_Label
12436 2 => False, -- unused
12437 3 => False, -- unused
12438 4 => False, -- unused
12439 5 => False), -- Exception_Label
12441 N_Push_Storage_Error_Label =>
12442 (1 => False, -- Exception_Label
12443 2 => False, -- unused
12444 3 => False, -- unused
12445 4 => False, -- unused
12446 5 => False), -- Exception_Label
12448 N_Pop_Constraint_Error_Label =>
12449 (1 => False, -- unused
12450 2 => False, -- unused
12451 3 => False, -- unused
12452 4 => False, -- unused
12453 5 => False), -- unused
12455 N_Pop_Program_Error_Label =>
12456 (1 => False, -- unused
12457 2 => False, -- unused
12458 3 => False, -- unused
12459 4 => False, -- unused
12460 5 => False), -- unused
12462 N_Pop_Storage_Error_Label =>
12463 (1 => False, -- unused
12464 2 => False, -- unused
12465 3 => False, -- unused
12466 4 => False, -- unused
12467 5 => False), -- unused
12469 N_Reference =>
12470 (1 => False, -- unused
12471 2 => False, -- unused
12472 3 => True, -- Prefix (Node3)
12473 4 => False, -- unused
12474 5 => False), -- Etype (Node5-Sem)
12476 N_Unchecked_Expression =>
12477 (1 => False, -- unused
12478 2 => False, -- unused
12479 3 => True, -- Expression (Node3)
12480 4 => False, -- unused
12481 5 => False), -- Etype (Node5-Sem)
12483 N_Unchecked_Type_Conversion =>
12484 (1 => False, -- unused
12485 2 => False, -- unused
12486 3 => True, -- Expression (Node3)
12487 4 => True, -- Subtype_Mark (Node4)
12488 5 => False), -- Etype (Node5-Sem)
12490 N_Validate_Unchecked_Conversion =>
12491 (1 => False, -- Source_Type (Node1-Sem)
12492 2 => False, -- Target_Type (Node2-Sem)
12493 3 => False, -- unused
12494 4 => False, -- unused
12495 5 => False), -- unused
12497 -- Entries for SCIL nodes
12499 N_SCIL_Dispatch_Table_Tag_Init =>
12500 (1 => False, -- unused
12501 2 => False, -- unused
12502 3 => False, -- unused
12503 4 => False, -- SCIL_Entity (Node4-Sem)
12504 5 => False), -- unused
12506 N_SCIL_Dispatching_Call =>
12507 (1 => False, -- unused
12508 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12509 3 => False, -- unused
12510 4 => False, -- SCIL_Entity (Node4-Sem)
12511 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12513 N_SCIL_Membership_Test =>
12514 (1 => False, -- unused
12515 2 => False, -- unused
12516 3 => False, -- unused
12517 4 => False, -- SCIL_Entity (Node4-Sem)
12518 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12520 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12521 -- field for debugging purposes, they are not really syntactic fields, so
12522 -- we mark all fields as unused.
12524 N_Empty =>
12525 (1 => False, -- unused
12526 2 => False, -- unused
12527 3 => False, -- unused
12528 4 => False, -- unused
12529 5 => False), -- unused
12531 N_Error =>
12532 (1 => False, -- unused
12533 2 => False, -- unused
12534 3 => False, -- unused
12535 4 => False, -- unused
12536 5 => False), -- unused
12538 N_Unused_At_Start =>
12539 (1 => False, -- unused
12540 2 => False, -- unused
12541 3 => False, -- unused
12542 4 => False, -- unused
12543 5 => False), -- unused
12545 N_Unused_At_End =>
12546 (1 => False, -- unused
12547 2 => False, -- unused
12548 3 => False, -- unused
12549 4 => False, -- unused
12550 5 => False)); -- unused
12552 --------------------
12553 -- Inline Pragmas --
12554 --------------------
12556 pragma Inline (ABE_Is_Certain);
12557 pragma Inline (Abort_Present);
12558 pragma Inline (Abortable_Part);
12559 pragma Inline (Abstract_Present);
12560 pragma Inline (Accept_Handler_Records);
12561 pragma Inline (Accept_Statement);
12562 pragma Inline (Access_Definition);
12563 pragma Inline (Access_To_Subprogram_Definition);
12564 pragma Inline (Access_Types_To_Process);
12565 pragma Inline (Actions);
12566 pragma Inline (Activation_Chain_Entity);
12567 pragma Inline (Acts_As_Spec);
12568 pragma Inline (Actual_Designated_Subtype);
12569 pragma Inline (Address_Warning_Posted);
12570 pragma Inline (Aggregate_Bounds);
12571 pragma Inline (Aliased_Present);
12572 pragma Inline (All_Others);
12573 pragma Inline (All_Present);
12574 pragma Inline (Alternatives);
12575 pragma Inline (Ancestor_Part);
12576 pragma Inline (Atomic_Sync_Required);
12577 pragma Inline (Array_Aggregate);
12578 pragma Inline (Aspect_Rep_Item);
12579 pragma Inline (Assignment_OK);
12580 pragma Inline (Associated_Node);
12581 pragma Inline (At_End_Proc);
12582 pragma Inline (Attribute_Name);
12583 pragma Inline (Aux_Decls_Node);
12584 pragma Inline (Backwards_OK);
12585 pragma Inline (Bad_Is_Detected);
12586 pragma Inline (Body_To_Inline);
12587 pragma Inline (Body_Required);
12588 pragma Inline (By_Ref);
12589 pragma Inline (Box_Present);
12590 pragma Inline (Char_Literal_Value);
12591 pragma Inline (Chars);
12592 pragma Inline (Check_Address_Alignment);
12593 pragma Inline (Choice_Parameter);
12594 pragma Inline (Choices);
12595 pragma Inline (Class_Present);
12596 pragma Inline (Classifications);
12597 pragma Inline (Cleanup_Actions);
12598 pragma Inline (Comes_From_Extended_Return_Statement);
12599 pragma Inline (Compile_Time_Known_Aggregate);
12600 pragma Inline (Component_Associations);
12601 pragma Inline (Component_Clauses);
12602 pragma Inline (Component_Definition);
12603 pragma Inline (Component_Items);
12604 pragma Inline (Component_List);
12605 pragma Inline (Component_Name);
12606 pragma Inline (Componentwise_Assignment);
12607 pragma Inline (Condition);
12608 pragma Inline (Condition_Actions);
12609 pragma Inline (Config_Pragmas);
12610 pragma Inline (Constant_Present);
12611 pragma Inline (Constraint);
12612 pragma Inline (Constraints);
12613 pragma Inline (Context_Installed);
12614 pragma Inline (Context_Items);
12615 pragma Inline (Context_Pending);
12616 pragma Inline (Contract_Test_Cases);
12617 pragma Inline (Controlling_Argument);
12618 pragma Inline (Convert_To_Return_False);
12619 pragma Inline (Conversion_OK);
12620 pragma Inline (Corresponding_Aspect);
12621 pragma Inline (Corresponding_Body);
12622 pragma Inline (Corresponding_Formal_Spec);
12623 pragma Inline (Corresponding_Generic_Association);
12624 pragma Inline (Corresponding_Integer_Value);
12625 pragma Inline (Corresponding_Spec);
12626 pragma Inline (Corresponding_Spec_Of_Stub);
12627 pragma Inline (Corresponding_Stub);
12628 pragma Inline (Dcheck_Function);
12629 pragma Inline (Declarations);
12630 pragma Inline (Default_Expression);
12631 pragma Inline (Default_Storage_Pool);
12632 pragma Inline (Default_Name);
12633 pragma Inline (Defining_Identifier);
12634 pragma Inline (Defining_Unit_Name);
12635 pragma Inline (Delay_Alternative);
12636 pragma Inline (Delay_Statement);
12637 pragma Inline (Delta_Expression);
12638 pragma Inline (Digits_Expression);
12639 pragma Inline (Discr_Check_Funcs_Built);
12640 pragma Inline (Discrete_Choices);
12641 pragma Inline (Discrete_Range);
12642 pragma Inline (Discrete_Subtype_Definition);
12643 pragma Inline (Discrete_Subtype_Definitions);
12644 pragma Inline (Discriminant_Specifications);
12645 pragma Inline (Discriminant_Type);
12646 pragma Inline (Do_Accessibility_Check);
12647 pragma Inline (Do_Discriminant_Check);
12648 pragma Inline (Do_Length_Check);
12649 pragma Inline (Do_Division_Check);
12650 pragma Inline (Do_Overflow_Check);
12651 pragma Inline (Do_Range_Check);
12652 pragma Inline (Do_Storage_Check);
12653 pragma Inline (Do_Tag_Check);
12654 pragma Inline (Elaborate_Present);
12655 pragma Inline (Elaborate_All_Desirable);
12656 pragma Inline (Elaborate_All_Present);
12657 pragma Inline (Elaborate_Desirable);
12658 pragma Inline (Else_Actions);
12659 pragma Inline (Else_Statements);
12660 pragma Inline (Elsif_Parts);
12661 pragma Inline (Enclosing_Variant);
12662 pragma Inline (End_Label);
12663 pragma Inline (End_Span);
12664 pragma Inline (Entity);
12665 pragma Inline (Entity_Or_Associated_Node);
12666 pragma Inline (Entry_Body_Formal_Part);
12667 pragma Inline (Entry_Call_Alternative);
12668 pragma Inline (Entry_Call_Statement);
12669 pragma Inline (Entry_Direct_Name);
12670 pragma Inline (Entry_Index);
12671 pragma Inline (Entry_Index_Specification);
12672 pragma Inline (Etype);
12673 pragma Inline (Exception_Choices);
12674 pragma Inline (Exception_Handlers);
12675 pragma Inline (Exception_Junk);
12676 pragma Inline (Exception_Label);
12677 pragma Inline (Expansion_Delayed);
12678 pragma Inline (Explicit_Actual_Parameter);
12679 pragma Inline (Explicit_Generic_Actual_Parameter);
12680 pragma Inline (Expression);
12681 pragma Inline (Expressions);
12682 pragma Inline (First_Bit);
12683 pragma Inline (First_Inlined_Subprogram);
12684 pragma Inline (First_Name);
12685 pragma Inline (First_Named_Actual);
12686 pragma Inline (First_Real_Statement);
12687 pragma Inline (First_Subtype_Link);
12688 pragma Inline (Float_Truncate);
12689 pragma Inline (Formal_Type_Definition);
12690 pragma Inline (Forwards_OK);
12691 pragma Inline (From_Aspect_Specification);
12692 pragma Inline (From_At_End);
12693 pragma Inline (From_At_Mod);
12694 pragma Inline (From_Conditional_Expression);
12695 pragma Inline (From_Default);
12696 pragma Inline (Generalized_Indexing);
12697 pragma Inline (Generic_Associations);
12698 pragma Inline (Generic_Formal_Declarations);
12699 pragma Inline (Generic_Parent);
12700 pragma Inline (Generic_Parent_Type);
12701 pragma Inline (Handled_Statement_Sequence);
12702 pragma Inline (Handler_List_Entry);
12703 pragma Inline (Has_Created_Identifier);
12704 pragma Inline (Has_Dereference_Action);
12705 pragma Inline (Has_Dynamic_Length_Check);
12706 pragma Inline (Has_Dynamic_Range_Check);
12707 pragma Inline (Has_Init_Expression);
12708 pragma Inline (Has_Local_Raise);
12709 pragma Inline (Has_Self_Reference);
12710 pragma Inline (Has_SP_Choice);
12711 pragma Inline (Has_No_Elaboration_Code);
12712 pragma Inline (Has_Pragma_Suppress_All);
12713 pragma Inline (Has_Private_View);
12714 pragma Inline (Has_Relative_Deadline_Pragma);
12715 pragma Inline (Has_Storage_Size_Pragma);
12716 pragma Inline (Has_Wide_Character);
12717 pragma Inline (Has_Wide_Wide_Character);
12718 pragma Inline (Header_Size_Added);
12719 pragma Inline (Hidden_By_Use_Clause);
12720 pragma Inline (High_Bound);
12721 pragma Inline (Identifier);
12722 pragma Inline (Implicit_With);
12723 pragma Inline (Implicit_With_From_Instantiation);
12724 pragma Inline (Interface_List);
12725 pragma Inline (Interface_Present);
12726 pragma Inline (Includes_Infinities);
12727 pragma Inline (Import_Interface_Present);
12728 pragma Inline (In_Present);
12729 pragma Inline (Incomplete_View);
12730 pragma Inline (Inherited_Discriminant);
12731 pragma Inline (Instance_Spec);
12732 pragma Inline (Intval);
12733 pragma Inline (Iterator_Specification);
12734 pragma Inline (Is_Accessibility_Actual);
12735 pragma Inline (Is_Asynchronous_Call_Block);
12736 pragma Inline (Is_Boolean_Aspect);
12737 pragma Inline (Is_Checked);
12738 pragma Inline (Is_Component_Left_Opnd);
12739 pragma Inline (Is_Component_Right_Opnd);
12740 pragma Inline (Is_Controlling_Actual);
12741 pragma Inline (Is_Delayed_Aspect);
12742 pragma Inline (Is_Disabled);
12743 pragma Inline (Is_Dynamic_Coextension);
12744 pragma Inline (Is_Elsif);
12745 pragma Inline (Is_Entry_Barrier_Function);
12746 pragma Inline (Is_Expanded_Build_In_Place_Call);
12747 pragma Inline (Is_Finalization_Wrapper);
12748 pragma Inline (Is_Folded_In_Parser);
12749 pragma Inline (Is_Generic_Contract_Pragma);
12750 pragma Inline (Is_Ghost_Pragma);
12751 pragma Inline (Is_Ignored);
12752 pragma Inline (Is_In_Discriminant_Check);
12753 pragma Inline (Is_Inherited);
12754 pragma Inline (Is_Machine_Number);
12755 pragma Inline (Is_Null_Loop);
12756 pragma Inline (Is_Overloaded);
12757 pragma Inline (Is_Power_Of_2_For_Shift);
12758 pragma Inline (Is_Prefixed_Call);
12759 pragma Inline (Is_Protected_Subprogram_Body);
12760 pragma Inline (Is_Static_Coextension);
12761 pragma Inline (Is_Static_Expression);
12762 pragma Inline (Is_Subprogram_Descriptor);
12763 pragma Inline (Is_Task_Allocation_Block);
12764 pragma Inline (Is_Task_Master);
12765 pragma Inline (Iteration_Scheme);
12766 pragma Inline (Itype);
12767 pragma Inline (Kill_Range_Check);
12768 pragma Inline (Last_Bit);
12769 pragma Inline (Last_Name);
12770 pragma Inline (Library_Unit);
12771 pragma Inline (Label_Construct);
12772 pragma Inline (Left_Opnd);
12773 pragma Inline (Limited_View_Installed);
12774 pragma Inline (Limited_Present);
12775 pragma Inline (Literals);
12776 pragma Inline (Local_Raise_Not_OK);
12777 pragma Inline (Local_Raise_Statements);
12778 pragma Inline (Loop_Actions);
12779 pragma Inline (Loop_Parameter_Specification);
12780 pragma Inline (Low_Bound);
12781 pragma Inline (Mod_Clause);
12782 pragma Inline (More_Ids);
12783 pragma Inline (Must_Be_Byte_Aligned);
12784 pragma Inline (Must_Not_Freeze);
12785 pragma Inline (Must_Not_Override);
12786 pragma Inline (Must_Override);
12787 pragma Inline (Name);
12788 pragma Inline (Names);
12789 pragma Inline (Next_Entity);
12790 pragma Inline (Next_Exit_Statement);
12791 pragma Inline (Next_Implicit_With);
12792 pragma Inline (Next_Named_Actual);
12793 pragma Inline (Next_Pragma);
12794 pragma Inline (Next_Rep_Item);
12795 pragma Inline (Next_Use_Clause);
12796 pragma Inline (No_Ctrl_Actions);
12797 pragma Inline (No_Elaboration_Check);
12798 pragma Inline (No_Entities_Ref_In_Spec);
12799 pragma Inline (No_Initialization);
12800 pragma Inline (No_Minimize_Eliminate);
12801 pragma Inline (No_Truncation);
12802 pragma Inline (Non_Aliased_Prefix);
12803 pragma Inline (Null_Present);
12804 pragma Inline (Null_Excluding_Subtype);
12805 pragma Inline (Null_Exclusion_Present);
12806 pragma Inline (Null_Exclusion_In_Return_Present);
12807 pragma Inline (Null_Record_Present);
12808 pragma Inline (Object_Definition);
12809 pragma Inline (Of_Present);
12810 pragma Inline (Original_Discriminant);
12811 pragma Inline (Original_Entity);
12812 pragma Inline (Others_Discrete_Choices);
12813 pragma Inline (Out_Present);
12814 pragma Inline (Parameter_Associations);
12815 pragma Inline (Parameter_Specifications);
12816 pragma Inline (Parameter_Type);
12817 pragma Inline (Parent_Spec);
12818 pragma Inline (Position);
12819 pragma Inline (Pragma_Argument_Associations);
12820 pragma Inline (Pragma_Identifier);
12821 pragma Inline (Pragmas_After);
12822 pragma Inline (Pragmas_Before);
12823 pragma Inline (Pre_Post_Conditions);
12824 pragma Inline (Prefix);
12825 pragma Inline (Premature_Use);
12826 pragma Inline (Present_Expr);
12827 pragma Inline (Prev_Ids);
12828 pragma Inline (Print_In_Hex);
12829 pragma Inline (Private_Declarations);
12830 pragma Inline (Private_Present);
12831 pragma Inline (Procedure_To_Call);
12832 pragma Inline (Proper_Body);
12833 pragma Inline (Protected_Definition);
12834 pragma Inline (Protected_Present);
12835 pragma Inline (Raises_Constraint_Error);
12836 pragma Inline (Range_Constraint);
12837 pragma Inline (Range_Expression);
12838 pragma Inline (Real_Range_Specification);
12839 pragma Inline (Realval);
12840 pragma Inline (Reason);
12841 pragma Inline (Record_Extension_Part);
12842 pragma Inline (Redundant_Use);
12843 pragma Inline (Renaming_Exception);
12844 pragma Inline (Result_Definition);
12845 pragma Inline (Return_Object_Declarations);
12846 pragma Inline (Return_Statement_Entity);
12847 pragma Inline (Reverse_Present);
12848 pragma Inline (Right_Opnd);
12849 pragma Inline (Rounded_Result);
12850 pragma Inline (SCIL_Controlling_Tag);
12851 pragma Inline (SCIL_Entity);
12852 pragma Inline (SCIL_Tag_Value);
12853 pragma Inline (SCIL_Target_Prim);
12854 pragma Inline (Scope);
12855 pragma Inline (Select_Alternatives);
12856 pragma Inline (Selector_Name);
12857 pragma Inline (Selector_Names);
12858 pragma Inline (Shift_Count_OK);
12859 pragma Inline (Source_Type);
12860 pragma Inline (Specification);
12861 pragma Inline (Split_PPC);
12862 pragma Inline (Statements);
12863 pragma Inline (Storage_Pool);
12864 pragma Inline (Subpool_Handle_Name);
12865 pragma Inline (Strval);
12866 pragma Inline (Subtype_Indication);
12867 pragma Inline (Subtype_Mark);
12868 pragma Inline (Subtype_Marks);
12869 pragma Inline (Suppress_Assignment_Checks);
12870 pragma Inline (Suppress_Loop_Warnings);
12871 pragma Inline (Synchronized_Present);
12872 pragma Inline (Tagged_Present);
12873 pragma Inline (Target_Type);
12874 pragma Inline (Task_Definition);
12875 pragma Inline (Task_Present);
12876 pragma Inline (Then_Actions);
12877 pragma Inline (Then_Statements);
12878 pragma Inline (Triggering_Alternative);
12879 pragma Inline (Triggering_Statement);
12880 pragma Inline (Treat_Fixed_As_Integer);
12881 pragma Inline (TSS_Elist);
12882 pragma Inline (Type_Definition);
12883 pragma Inline (Uneval_Old_Accept);
12884 pragma Inline (Uneval_Old_Warn);
12885 pragma Inline (Unit);
12886 pragma Inline (Uninitialized_Variable);
12887 pragma Inline (Unknown_Discriminants_Present);
12888 pragma Inline (Unreferenced_In_Spec);
12889 pragma Inline (Variant_Part);
12890 pragma Inline (Variants);
12891 pragma Inline (Visible_Declarations);
12892 pragma Inline (Used_Operations);
12893 pragma Inline (Was_Originally_Stub);
12894 pragma Inline (Withed_Body);
12896 pragma Inline (Set_ABE_Is_Certain);
12897 pragma Inline (Set_Abort_Present);
12898 pragma Inline (Set_Abortable_Part);
12899 pragma Inline (Set_Abstract_Present);
12900 pragma Inline (Set_Accept_Handler_Records);
12901 pragma Inline (Set_Accept_Statement);
12902 pragma Inline (Set_Access_Definition);
12903 pragma Inline (Set_Access_To_Subprogram_Definition);
12904 pragma Inline (Set_Access_Types_To_Process);
12905 pragma Inline (Set_Actions);
12906 pragma Inline (Set_Activation_Chain_Entity);
12907 pragma Inline (Set_Acts_As_Spec);
12908 pragma Inline (Set_Actual_Designated_Subtype);
12909 pragma Inline (Set_Address_Warning_Posted);
12910 pragma Inline (Set_Aggregate_Bounds);
12911 pragma Inline (Set_Aliased_Present);
12912 pragma Inline (Set_All_Others);
12913 pragma Inline (Set_All_Present);
12914 pragma Inline (Set_Alternatives);
12915 pragma Inline (Set_Ancestor_Part);
12916 pragma Inline (Set_Array_Aggregate);
12917 pragma Inline (Set_Aspect_Rep_Item);
12918 pragma Inline (Set_Assignment_OK);
12919 pragma Inline (Set_Associated_Node);
12920 pragma Inline (Set_At_End_Proc);
12921 pragma Inline (Set_Atomic_Sync_Required);
12922 pragma Inline (Set_Attribute_Name);
12923 pragma Inline (Set_Aux_Decls_Node);
12924 pragma Inline (Set_Backwards_OK);
12925 pragma Inline (Set_Bad_Is_Detected);
12926 pragma Inline (Set_Body_Required);
12927 pragma Inline (Set_Body_To_Inline);
12928 pragma Inline (Set_Box_Present);
12929 pragma Inline (Set_By_Ref);
12930 pragma Inline (Set_Char_Literal_Value);
12931 pragma Inline (Set_Chars);
12932 pragma Inline (Set_Check_Address_Alignment);
12933 pragma Inline (Set_Choice_Parameter);
12934 pragma Inline (Set_Choices);
12935 pragma Inline (Set_Class_Present);
12936 pragma Inline (Set_Classifications);
12937 pragma Inline (Set_Cleanup_Actions);
12938 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12939 pragma Inline (Set_Compile_Time_Known_Aggregate);
12940 pragma Inline (Set_Component_Associations);
12941 pragma Inline (Set_Component_Clauses);
12942 pragma Inline (Set_Component_Definition);
12943 pragma Inline (Set_Component_Items);
12944 pragma Inline (Set_Component_List);
12945 pragma Inline (Set_Component_Name);
12946 pragma Inline (Set_Componentwise_Assignment);
12947 pragma Inline (Set_Condition);
12948 pragma Inline (Set_Condition_Actions);
12949 pragma Inline (Set_Config_Pragmas);
12950 pragma Inline (Set_Constant_Present);
12951 pragma Inline (Set_Constraint);
12952 pragma Inline (Set_Constraints);
12953 pragma Inline (Set_Context_Installed);
12954 pragma Inline (Set_Context_Items);
12955 pragma Inline (Set_Context_Pending);
12956 pragma Inline (Set_Contract_Test_Cases);
12957 pragma Inline (Set_Controlling_Argument);
12958 pragma Inline (Set_Conversion_OK);
12959 pragma Inline (Set_Convert_To_Return_False);
12960 pragma Inline (Set_Corresponding_Aspect);
12961 pragma Inline (Set_Corresponding_Body);
12962 pragma Inline (Set_Corresponding_Formal_Spec);
12963 pragma Inline (Set_Corresponding_Generic_Association);
12964 pragma Inline (Set_Corresponding_Integer_Value);
12965 pragma Inline (Set_Corresponding_Spec);
12966 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12967 pragma Inline (Set_Corresponding_Stub);
12968 pragma Inline (Set_Dcheck_Function);
12969 pragma Inline (Set_Declarations);
12970 pragma Inline (Set_Default_Expression);
12971 pragma Inline (Set_Default_Name);
12972 pragma Inline (Set_Default_Storage_Pool);
12973 pragma Inline (Set_Defining_Identifier);
12974 pragma Inline (Set_Defining_Unit_Name);
12975 pragma Inline (Set_Delay_Alternative);
12976 pragma Inline (Set_Delay_Statement);
12977 pragma Inline (Set_Delta_Expression);
12978 pragma Inline (Set_Digits_Expression);
12979 pragma Inline (Set_Discr_Check_Funcs_Built);
12980 pragma Inline (Set_Discrete_Choices);
12981 pragma Inline (Set_Discrete_Range);
12982 pragma Inline (Set_Discrete_Subtype_Definition);
12983 pragma Inline (Set_Discrete_Subtype_Definitions);
12984 pragma Inline (Set_Discriminant_Specifications);
12985 pragma Inline (Set_Discriminant_Type);
12986 pragma Inline (Set_Do_Accessibility_Check);
12987 pragma Inline (Set_Do_Discriminant_Check);
12988 pragma Inline (Set_Do_Division_Check);
12989 pragma Inline (Set_Do_Length_Check);
12990 pragma Inline (Set_Do_Overflow_Check);
12991 pragma Inline (Set_Do_Range_Check);
12992 pragma Inline (Set_Do_Storage_Check);
12993 pragma Inline (Set_Do_Tag_Check);
12994 pragma Inline (Set_Elaborate_All_Desirable);
12995 pragma Inline (Set_Elaborate_All_Present);
12996 pragma Inline (Set_Elaborate_Desirable);
12997 pragma Inline (Set_Elaborate_Present);
12998 pragma Inline (Set_Else_Actions);
12999 pragma Inline (Set_Else_Statements);
13000 pragma Inline (Set_Elsif_Parts);
13001 pragma Inline (Set_Enclosing_Variant);
13002 pragma Inline (Set_End_Label);
13003 pragma Inline (Set_End_Span);
13004 pragma Inline (Set_Entity);
13005 pragma Inline (Set_Entry_Body_Formal_Part);
13006 pragma Inline (Set_Entry_Call_Alternative);
13007 pragma Inline (Set_Entry_Call_Statement);
13008 pragma Inline (Set_Entry_Direct_Name);
13009 pragma Inline (Set_Entry_Index);
13010 pragma Inline (Set_Entry_Index_Specification);
13011 pragma Inline (Set_Etype);
13012 pragma Inline (Set_Exception_Choices);
13013 pragma Inline (Set_Exception_Handlers);
13014 pragma Inline (Set_Exception_Junk);
13015 pragma Inline (Set_Exception_Label);
13016 pragma Inline (Set_Expansion_Delayed);
13017 pragma Inline (Set_Explicit_Actual_Parameter);
13018 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13019 pragma Inline (Set_Expression);
13020 pragma Inline (Set_Expressions);
13021 pragma Inline (Set_First_Bit);
13022 pragma Inline (Set_First_Inlined_Subprogram);
13023 pragma Inline (Set_First_Name);
13024 pragma Inline (Set_First_Named_Actual);
13025 pragma Inline (Set_First_Real_Statement);
13026 pragma Inline (Set_First_Subtype_Link);
13027 pragma Inline (Set_Float_Truncate);
13028 pragma Inline (Set_Formal_Type_Definition);
13029 pragma Inline (Set_Forwards_OK);
13030 pragma Inline (Set_From_Aspect_Specification);
13031 pragma Inline (Set_From_At_End);
13032 pragma Inline (Set_From_At_Mod);
13033 pragma Inline (Set_From_Conditional_Expression);
13034 pragma Inline (Set_From_Default);
13035 pragma Inline (Set_Generalized_Indexing);
13036 pragma Inline (Set_Generic_Associations);
13037 pragma Inline (Set_Generic_Formal_Declarations);
13038 pragma Inline (Set_Generic_Parent);
13039 pragma Inline (Set_Generic_Parent_Type);
13040 pragma Inline (Set_Handled_Statement_Sequence);
13041 pragma Inline (Set_Handler_List_Entry);
13042 pragma Inline (Set_Has_Created_Identifier);
13043 pragma Inline (Set_Has_Dereference_Action);
13044 pragma Inline (Set_Has_Dynamic_Length_Check);
13045 pragma Inline (Set_Has_Dynamic_Range_Check);
13046 pragma Inline (Set_Has_Init_Expression);
13047 pragma Inline (Set_Has_Local_Raise);
13048 pragma Inline (Set_Has_No_Elaboration_Code);
13049 pragma Inline (Set_Has_Pragma_Suppress_All);
13050 pragma Inline (Set_Has_Private_View);
13051 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13052 pragma Inline (Set_Has_Self_Reference);
13053 pragma Inline (Set_Has_SP_Choice);
13054 pragma Inline (Set_Has_Storage_Size_Pragma);
13055 pragma Inline (Set_Has_Wide_Character);
13056 pragma Inline (Set_Has_Wide_Wide_Character);
13057 pragma Inline (Set_Header_Size_Added);
13058 pragma Inline (Set_Hidden_By_Use_Clause);
13059 pragma Inline (Set_High_Bound);
13060 pragma Inline (Set_Identifier);
13061 pragma Inline (Set_Implicit_With);
13062 pragma Inline (Set_Import_Interface_Present);
13063 pragma Inline (Set_In_Present);
13064 pragma Inline (Set_Includes_Infinities);
13065 pragma Inline (Set_Incomplete_View);
13066 pragma Inline (Set_Inherited_Discriminant);
13067 pragma Inline (Set_Instance_Spec);
13068 pragma Inline (Set_Interface_List);
13069 pragma Inline (Set_Interface_Present);
13070 pragma Inline (Set_Intval);
13071 pragma Inline (Set_Is_Accessibility_Actual);
13072 pragma Inline (Set_Is_Asynchronous_Call_Block);
13073 pragma Inline (Set_Is_Boolean_Aspect);
13074 pragma Inline (Set_Is_Checked);
13075 pragma Inline (Set_Is_Component_Left_Opnd);
13076 pragma Inline (Set_Is_Component_Right_Opnd);
13077 pragma Inline (Set_Is_Controlling_Actual);
13078 pragma Inline (Set_Is_Delayed_Aspect);
13079 pragma Inline (Set_Is_Disabled);
13080 pragma Inline (Set_Is_Dynamic_Coextension);
13081 pragma Inline (Set_Is_Elsif);
13082 pragma Inline (Set_Is_Entry_Barrier_Function);
13083 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13084 pragma Inline (Set_Is_Finalization_Wrapper);
13085 pragma Inline (Set_Is_Folded_In_Parser);
13086 pragma Inline (Set_Is_Generic_Contract_Pragma);
13087 pragma Inline (Set_Is_Ghost_Pragma);
13088 pragma Inline (Set_Is_Ignored);
13089 pragma Inline (Set_Is_In_Discriminant_Check);
13090 pragma Inline (Set_Is_Inherited);
13091 pragma Inline (Set_Is_Machine_Number);
13092 pragma Inline (Set_Is_Null_Loop);
13093 pragma Inline (Set_Is_Overloaded);
13094 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13095 pragma Inline (Set_Is_Prefixed_Call);
13096 pragma Inline (Set_Is_Protected_Subprogram_Body);
13097 pragma Inline (Set_Is_Static_Coextension);
13098 pragma Inline (Set_Is_Static_Expression);
13099 pragma Inline (Set_Is_Subprogram_Descriptor);
13100 pragma Inline (Set_Is_Task_Allocation_Block);
13101 pragma Inline (Set_Is_Task_Master);
13102 pragma Inline (Set_Iteration_Scheme);
13103 pragma Inline (Set_Iterator_Specification);
13104 pragma Inline (Set_Itype);
13105 pragma Inline (Set_Kill_Range_Check);
13106 pragma Inline (Set_Label_Construct);
13107 pragma Inline (Set_Last_Bit);
13108 pragma Inline (Set_Last_Name);
13109 pragma Inline (Set_Left_Opnd);
13110 pragma Inline (Set_Library_Unit);
13111 pragma Inline (Set_Limited_Present);
13112 pragma Inline (Set_Limited_View_Installed);
13113 pragma Inline (Set_Literals);
13114 pragma Inline (Set_Local_Raise_Not_OK);
13115 pragma Inline (Set_Local_Raise_Statements);
13116 pragma Inline (Set_Loop_Actions);
13117 pragma Inline (Set_Loop_Parameter_Specification);
13118 pragma Inline (Set_Low_Bound);
13119 pragma Inline (Set_Mod_Clause);
13120 pragma Inline (Set_More_Ids);
13121 pragma Inline (Set_Must_Be_Byte_Aligned);
13122 pragma Inline (Set_Must_Not_Freeze);
13123 pragma Inline (Set_Must_Not_Override);
13124 pragma Inline (Set_Must_Override);
13125 pragma Inline (Set_Name);
13126 pragma Inline (Set_Names);
13127 pragma Inline (Set_Next_Entity);
13128 pragma Inline (Set_Next_Exit_Statement);
13129 pragma Inline (Set_Next_Implicit_With);
13130 pragma Inline (Set_Next_Named_Actual);
13131 pragma Inline (Set_Next_Pragma);
13132 pragma Inline (Set_Next_Rep_Item);
13133 pragma Inline (Set_Next_Use_Clause);
13134 pragma Inline (Set_No_Ctrl_Actions);
13135 pragma Inline (Set_No_Elaboration_Check);
13136 pragma Inline (Set_No_Entities_Ref_In_Spec);
13137 pragma Inline (Set_No_Initialization);
13138 pragma Inline (Set_No_Minimize_Eliminate);
13139 pragma Inline (Set_No_Truncation);
13140 pragma Inline (Set_Non_Aliased_Prefix);
13141 pragma Inline (Set_Null_Excluding_Subtype);
13142 pragma Inline (Set_Null_Exclusion_Present);
13143 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13144 pragma Inline (Set_Null_Present);
13145 pragma Inline (Set_Null_Record_Present);
13146 pragma Inline (Set_Object_Definition);
13147 pragma Inline (Set_Of_Present);
13148 pragma Inline (Set_Original_Discriminant);
13149 pragma Inline (Set_Original_Entity);
13150 pragma Inline (Set_Others_Discrete_Choices);
13151 pragma Inline (Set_Out_Present);
13152 pragma Inline (Set_Parameter_Associations);
13153 pragma Inline (Set_Parameter_Specifications);
13154 pragma Inline (Set_Parameter_Type);
13155 pragma Inline (Set_Parent_Spec);
13156 pragma Inline (Set_Position);
13157 pragma Inline (Set_Pragma_Argument_Associations);
13158 pragma Inline (Set_Pragma_Identifier);
13159 pragma Inline (Set_Pragmas_After);
13160 pragma Inline (Set_Pragmas_Before);
13161 pragma Inline (Set_Pre_Post_Conditions);
13162 pragma Inline (Set_Prefix);
13163 pragma Inline (Set_Premature_Use);
13164 pragma Inline (Set_Present_Expr);
13165 pragma Inline (Set_Prev_Ids);
13166 pragma Inline (Set_Print_In_Hex);
13167 pragma Inline (Set_Private_Declarations);
13168 pragma Inline (Set_Private_Present);
13169 pragma Inline (Set_Procedure_To_Call);
13170 pragma Inline (Set_Proper_Body);
13171 pragma Inline (Set_Protected_Definition);
13172 pragma Inline (Set_Protected_Present);
13173 pragma Inline (Set_Raises_Constraint_Error);
13174 pragma Inline (Set_Range_Constraint);
13175 pragma Inline (Set_Range_Expression);
13176 pragma Inline (Set_Real_Range_Specification);
13177 pragma Inline (Set_Realval);
13178 pragma Inline (Set_Reason);
13179 pragma Inline (Set_Record_Extension_Part);
13180 pragma Inline (Set_Redundant_Use);
13181 pragma Inline (Set_Renaming_Exception);
13182 pragma Inline (Set_Result_Definition);
13183 pragma Inline (Set_Return_Object_Declarations);
13184 pragma Inline (Set_Reverse_Present);
13185 pragma Inline (Set_Right_Opnd);
13186 pragma Inline (Set_Rounded_Result);
13187 pragma Inline (Set_SCIL_Controlling_Tag);
13188 pragma Inline (Set_SCIL_Entity);
13189 pragma Inline (Set_SCIL_Tag_Value);
13190 pragma Inline (Set_SCIL_Target_Prim);
13191 pragma Inline (Set_Scope);
13192 pragma Inline (Set_Select_Alternatives);
13193 pragma Inline (Set_Selector_Name);
13194 pragma Inline (Set_Selector_Names);
13195 pragma Inline (Set_Shift_Count_OK);
13196 pragma Inline (Set_Source_Type);
13197 pragma Inline (Set_Split_PPC);
13198 pragma Inline (Set_Statements);
13199 pragma Inline (Set_Storage_Pool);
13200 pragma Inline (Set_Strval);
13201 pragma Inline (Set_Subpool_Handle_Name);
13202 pragma Inline (Set_Subtype_Indication);
13203 pragma Inline (Set_Subtype_Mark);
13204 pragma Inline (Set_Subtype_Marks);
13205 pragma Inline (Set_Suppress_Assignment_Checks);
13206 pragma Inline (Set_Suppress_Loop_Warnings);
13207 pragma Inline (Set_Synchronized_Present);
13208 pragma Inline (Set_TSS_Elist);
13209 pragma Inline (Set_Tagged_Present);
13210 pragma Inline (Set_Target_Type);
13211 pragma Inline (Set_Task_Definition);
13212 pragma Inline (Set_Task_Present);
13213 pragma Inline (Set_Then_Actions);
13214 pragma Inline (Set_Then_Statements);
13215 pragma Inline (Set_Treat_Fixed_As_Integer);
13216 pragma Inline (Set_Triggering_Alternative);
13217 pragma Inline (Set_Triggering_Statement);
13218 pragma Inline (Set_Type_Definition);
13219 pragma Inline (Set_Uneval_Old_Accept);
13220 pragma Inline (Set_Uneval_Old_Warn);
13221 pragma Inline (Set_Unit);
13222 pragma Inline (Set_Uninitialized_Variable);
13223 pragma Inline (Set_Unknown_Discriminants_Present);
13224 pragma Inline (Set_Unreferenced_In_Spec);
13225 pragma Inline (Set_Used_Operations);
13226 pragma Inline (Set_Variant_Part);
13227 pragma Inline (Set_Variants);
13228 pragma Inline (Set_Visible_Declarations);
13229 pragma Inline (Set_Was_Originally_Stub);
13230 pragma Inline (Set_Withed_Body);
13232 end Sinfo;