2016-06-14 Hristian Kirtchev <kirtchev@adacore.com>
[official-gcc.git] / gcc / ada / sinfo.ads
blob4e8d51a41ae106fdbc7df46641d2a6075138de84
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2016, 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 -- Functions returning bounded arrays are transformed into procedures
732 -- with an extra out parameter, and the calls updated accordingly.
734 -- Aggregates are only kept unexpanded for object declarations, otherwise
735 -- they are systematically expanded into loops (for arrays) and
736 -- individual assignments (for records).
738 ------------------------------------
739 -- Description of Semantic Fields --
740 ------------------------------------
742 -- The meaning of the syntactic fields is generally clear from their names
743 -- without any further description, since the names are chosen to
744 -- correspond very closely to the syntax in the reference manual. This
745 -- section describes the usage of the semantic fields, which are used to
746 -- contain additional information determined during semantic analysis.
748 -- ABE_Is_Certain (Flag18-Sem)
749 -- This flag is set in an instantiation node or a call node is determined
750 -- to be sure to raise an ABE. This is used to trigger special handling
751 -- of such cases, particularly in the instantiation case where we avoid
752 -- instantiating the body if this flag is set. This flag is also present
753 -- in an N_Formal_Package_Declaration node since formal package
754 -- declarations are treated like instantiations, but it is always set to
755 -- False in this context.
757 -- Accept_Handler_Records (List5-Sem)
758 -- This field is present only in an N_Accept_Alternative node. It is used
759 -- to temporarily hold the exception handler records from an accept
760 -- statement in a selective accept. These exception handlers will
761 -- eventually be placed in the Handler_Records list of the procedure
762 -- built for this accept (see Expand_N_Selective_Accept procedure in
763 -- Exp_Ch9 for further details).
765 -- Access_Types_To_Process (Elist2-Sem)
766 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
767 -- Contains the list of access types which may require specific treatment
768 -- when the nature of the type completion is completely known. An example
769 -- of such treatment is the generation of the associated_final_chain.
771 -- Actions (List1-Sem)
772 -- This field contains a sequence of actions that are associated with the
773 -- node holding the field. See the individual node types for details of
774 -- how this field is used, as well as the description of the specific use
775 -- for a particular node type.
777 -- Activation_Chain_Entity (Node3-Sem)
778 -- This is used in tree nodes representing task activators (blocks,
779 -- subprogram bodies, package declarations, and task bodies). It is
780 -- initially Empty, and then gets set to point to the entity for the
781 -- declared Activation_Chain variable when the first task is declared.
782 -- When tasks are declared in the corresponding declarative region this
783 -- entity is located by name (its name is always _Chain) and the declared
784 -- tasks are added to the chain. Note that N_Extended_Return_Statement
785 -- does not have this attribute, although it does have an activation
786 -- chain. This chain is used to store the tasks temporarily, and is not
787 -- used for activating them. On successful completion of the return
788 -- statement, the tasks are moved to the caller's chain, and the caller
789 -- activates them.
791 -- Acts_As_Spec (Flag4-Sem)
792 -- A flag set in the N_Subprogram_Body node for a subprogram body which
793 -- is acting as its own spec. In the case of a library-level subprogram
794 -- the flag is set as well on the parent compilation unit node.
796 -- Actual_Designated_Subtype (Node4-Sem)
797 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
798 -- needs to known the dynamic constrained subtype of the designated
799 -- object, this attribute is set to that type. This is done for
800 -- N_Free_Statements for access-to-classwide types and access to
801 -- unconstrained packed array types, and for N_Explicit_Dereference when
802 -- the designated type is an unconstrained packed array and the
803 -- dereference is the prefix of a 'Size attribute reference.
805 -- Address_Warning_Posted (Flag18-Sem)
806 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
807 -- posted a warning for the address clause regarding size or alignment
808 -- issues. Used to inhibit multiple redundant messages.
810 -- Aggregate_Bounds (Node3-Sem)
811 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
812 -- known at compile time, this field points to an N_Range node with those
813 -- bounds. Otherwise Empty.
815 -- All_Others (Flag11-Sem)
816 -- Present in an N_Others_Choice node. This flag is set for an others
817 -- exception where all exceptions are to be caught, even those that are
818 -- not normally handled (in particular the tasking abort signal). This
819 -- is used for translation of the at end handler into a normal exception
820 -- handler.
822 -- Aspect_Rep_Item (Node2-Sem)
823 -- Present in N_Aspect_Specification nodes. Points to the corresponding
824 -- pragma/attribute definition node used to process the aspect.
826 -- Assignment_OK (Flag15-Sem)
827 -- This flag is set in a subexpression node for an object, indicating
828 -- that the associated object can be modified, even if this would not
829 -- normally be permissible (either by direct assignment, or by being
830 -- passed as an out or in-out parameter). This is used by the expander
831 -- for a number of purposes, including initialization of constants and
832 -- limited type objects (such as tasks), setting discriminant fields,
833 -- setting tag values, etc. N_Object_Declaration nodes also have this
834 -- flag defined. Here it is used to indicate that an initialization
835 -- expression is valid, even where it would normally not be allowed
836 -- (e.g. where the type involved is limited). It is also used to stop
837 -- a Force_Evaluation call for an unchecked conversion, but this usage
838 -- is unclear and not documented ???
840 -- Associated_Node (Node4-Sem)
841 -- Present in nodes that can denote an entity: identifiers, character
842 -- literals, operator symbols, expanded names, operator nodes, and
843 -- attribute reference nodes (all these nodes have an Entity field).
844 -- This field is also present in N_Aggregate, N_Selected_Component, and
845 -- N_Extension_Aggregate nodes. This field is used in generic processing
846 -- to create links between the generic template and the generic copy.
847 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
848 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
849 -- the normal function of Entity is not required at the point where the
850 -- Associated_Node is set. Note also, that in generic templates, this
851 -- means that the Entity field does not necessarily point to an Entity.
852 -- Since the back end is expected to ignore generic templates, this is
853 -- harmless.
855 -- Atomic_Sync_Required (Flag14-Sem)
856 -- This flag is set on a node for which atomic synchronization is
857 -- required for the corresponding reference or modification.
859 -- At_End_Proc (Node1)
860 -- This field is present in an N_Handled_Sequence_Of_Statements node.
861 -- It contains an identifier reference for the cleanup procedure to be
862 -- called. See description of this node for further details.
864 -- Backwards_OK (Flag6-Sem)
865 -- A flag present in the N_Assignment_Statement node. It is used only
866 -- if the type being assigned is an array type, and is set if analysis
867 -- determines that it is definitely safe to do the copy backwards, i.e.
868 -- starting at the highest addressed element. This is the case if either
869 -- the operands do not overlap, or they may overlap, but if they do,
870 -- then the left operand is at a higher address than the right operand.
872 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
873 -- means that the front end could not determine that either direction is
874 -- definitely safe, and a runtime check may be required if the backend
875 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
876 -- set, it means that the front end can assure no overlap of operands.
878 -- Body_To_Inline (Node3-Sem)
879 -- Present in subprogram declarations. Denotes analyzed but unexpanded
880 -- body of subprogram, to be used when inlining calls. Present when the
881 -- subprogram has an Inline pragma and inlining is enabled. If the
882 -- declaration is completed by a renaming_as_body, and the renamed entity
883 -- is a subprogram, the Body_To_Inline is the name of that entity, which
884 -- is used directly in later calls to the original subprogram.
886 -- Body_Required (Flag13-Sem)
887 -- A flag that appears in the N_Compilation_Unit node indicating that
888 -- the corresponding unit requires a body. For the package case, this
889 -- indicates that a completion is required. In Ada 95, if the flag is not
890 -- set for the package case, then a body may not be present. In Ada 83,
891 -- if the flag is not set for the package case, then body is optional.
892 -- For a subprogram declaration, the flag is set except in the case where
893 -- a pragma Import or Interface applies, in which case no body is
894 -- permitted (in Ada 83 or Ada 95).
896 -- By_Ref (Flag5-Sem)
897 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
898 -- this flag is set when the returned expression is already allocated on
899 -- the secondary stack and thus the result is passed by reference rather
900 -- than copied another time.
902 -- Cleanup_Actions (List5-Sem)
903 -- Present in block statements created for transient blocks, contains
904 -- additional cleanup actions carried over from the transient scope.
906 -- Check_Address_Alignment (Flag11-Sem)
907 -- A flag present in N_Attribute_Definition clause for a 'Address
908 -- attribute definition. This flag is set if a dynamic check should be
909 -- generated at the freeze point for the entity to which this address
910 -- clause applies. The reason that we need this flag is that we want to
911 -- check for range checks being suppressed at the point where the
912 -- attribute definition clause is given, rather than testing this at the
913 -- freeze point.
915 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
916 -- Present in N_Simple_Return_Statement nodes. True if this node was
917 -- constructed as part of the N_Extended_Return_Statement expansion.
919 -- Compile_Time_Known_Aggregate (Flag18-Sem)
920 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
921 -- evaluated at compile time without raising constraint error. Such
922 -- aggregates can be passed as is the back end without any expansion.
923 -- See Exp_Aggr for specific conditions under which this flag gets set.
925 -- Componentwise_Assignment (Flag14-Sem)
926 -- Present in N_Assignment_Statement nodes. Set for a record assignment
927 -- where all that needs doing is to expand it into component-by-component
928 -- assignments. This is used internally for the case of tagged types with
929 -- rep clauses, where we need to avoid recursion (we don't want to try to
930 -- generate a call to the primitive operation, because this is the case
931 -- where we are compiling the primitive operation). Note that when we are
932 -- expanding component assignments in this case, we never assign the _tag
933 -- field, but we recursively assign components of the parent type.
935 -- Condition_Actions (List3-Sem)
936 -- This field appears in else-if nodes and in the iteration scheme node
937 -- for while loops. This field is only used during semantic processing to
938 -- temporarily hold actions inserted into the tree. In the tree passed
939 -- to gigi, the condition actions field is always set to No_List. For
940 -- details on how this field is used, see the routine Insert_Actions in
941 -- package Exp_Util, and also the expansion routines for the relevant
942 -- nodes.
944 -- Context_Pending (Flag16-Sem)
945 -- This field appears in Compilation_Unit nodes, to indicate that the
946 -- context of the unit is being compiled. Used to detect circularities
947 -- that are not otherwise detected by the loading mechanism. Such
948 -- circularities can occur in the presence of limited and non-limited
949 -- with_clauses that mention the same units.
951 -- Controlling_Argument (Node1-Sem)
952 -- This field is set in procedure and function call nodes if the call
953 -- is a dispatching call (it is Empty for a non-dispatching call). It
954 -- indicates the source of the call's controlling tag. For procedure
955 -- calls, the Controlling_Argument is one of the actuals. For function
956 -- that has a dispatching result, it is an entity in the context of the
957 -- call that can provide a tag, or else it is the tag of the root type
958 -- of the class. It can also specify a tag directly rather than being a
959 -- tagged object. The latter is needed by the implementations of AI-239
960 -- and AI-260.
962 -- Conversion_OK (Flag14-Sem)
963 -- A flag set on type conversion nodes to indicate that the conversion
964 -- is to be considered as being valid, even though it is the case that
965 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
966 -- Fixed_Value and Integer_Value, for internal conversions done for
967 -- fixed-point operations, and for certain conversions for calls to
968 -- initialization procedures. If Conversion_OK is set, then Etype must be
969 -- set (the analyzer assumes that Etype has been set). For the case of
970 -- fixed-point operands, it also indicates that the conversion is to be
971 -- direct conversion of the underlying integer result, with no regard to
972 -- the small operand.
974 -- Convert_To_Return_False (Flag13-Sem)
975 -- Present in N_Raise_Expression nodes that appear in the body of the
976 -- special predicateM function used to test a predicate in the context
977 -- of a membership test, where raise expression results in returning a
978 -- value of False rather than raising an exception.
980 -- Corresponding_Aspect (Node3-Sem)
981 -- Present in N_Pragma node. Used to point back to the source aspect from
982 -- the corresponding pragma. This field is Empty for source pragmas.
984 -- Corresponding_Body (Node5-Sem)
985 -- This field is set in subprogram declarations, package declarations,
986 -- entry declarations of protected types, and in generic units. It points
987 -- to the defining entity for the corresponding body (NOT the node for
988 -- the body itself).
990 -- Corresponding_Formal_Spec (Node3-Sem)
991 -- This field is set in subprogram renaming declarations, where it points
992 -- to the defining entity for a formal subprogram in the case where the
993 -- renaming corresponds to a generic formal subprogram association in an
994 -- instantiation. The field is Empty if the renaming does not correspond
995 -- to such a formal association.
997 -- Corresponding_Generic_Association (Node5-Sem)
998 -- This field is defined for object declarations and object renaming
999 -- declarations. It is set for the declarations within an instance that
1000 -- map generic formals to their actuals. If set, the field points to
1001 -- a generic_association which is the original parent of the expression
1002 -- or name appearing in the declaration. This simplifies ASIS queries.
1004 -- Corresponding_Integer_Value (Uint4-Sem)
1005 -- This field is set in real literals of fixed-point types (it is not
1006 -- used for floating-point types). It contains the integer value used
1007 -- to represent the fixed-point value. It is also set on the universal
1008 -- real literals used to represent bounds of fixed-point base types
1009 -- and their first named subtypes.
1011 -- Corresponding_Spec (Node5-Sem)
1012 -- This field is set in subprogram, package, task, and protected body
1013 -- nodes, where it points to the defining entity in the corresponding
1014 -- spec. The attribute is also set in N_With_Clause nodes where it points
1015 -- to the defining entity for the with'ed spec, and in a subprogram
1016 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1017 -- if there is no corresponding spec, as in the case of a subprogram body
1018 -- that serves as its own spec.
1020 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1021 -- complete a subprogram declaration.
1023 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1024 -- This field is present in subprogram, package, task and protected body
1025 -- stubs where it points to the corresponding spec of the stub. Due to
1026 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1028 -- Corresponding_Stub (Node3-Sem)
1029 -- This field is present in an N_Subunit node. It holds the node in
1030 -- the parent unit that is the stub declaration for the subunit. It is
1031 -- set when analysis of the stub forces loading of the proper body. If
1032 -- expansion of the proper body creates new declarative nodes, they are
1033 -- inserted at the point of the corresponding_stub.
1035 -- Dcheck_Function (Node5-Sem)
1036 -- This field is present in an N_Variant node, It references the entity
1037 -- for the discriminant checking function for the variant.
1039 -- Default_Expression (Node5-Sem)
1040 -- This field is Empty if there is no default expression. If there is a
1041 -- simple default expression (one with no side effects), then this field
1042 -- simply contains a copy of the Expression field (both point to the tree
1043 -- for the default expression). Default_Expression is used for
1044 -- conformance checking.
1046 -- Default_Storage_Pool (Node3-Sem)
1047 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1048 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1049 -- package Opt for details. This is used for inheriting the
1050 -- Default_Storage_Pool in child units.
1052 -- Discr_Check_Funcs_Built (Flag11-Sem)
1053 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1054 -- discriminant checking functions are constructed. The purpose is to
1055 -- avoid attempting to set these functions more than once.
1057 -- Do_Accessibility_Check (Flag13-Sem)
1058 -- This flag is set on N_Parameter_Specification nodes to indicate
1059 -- that an accessibility check is required for the parameter. It is
1060 -- not yet decided who takes care of this check (TBD ???).
1062 -- Do_Discriminant_Check (Flag1-Sem)
1063 -- This flag is set on N_Selected_Component nodes to indicate that a
1064 -- discriminant check is required using the discriminant check routine
1065 -- associated with the selector. The actual check is generated by the
1066 -- expander when processing selected components. In the case of
1067 -- Unchecked_Union, the flag is also set, but no discriminant check
1068 -- routine is associated with the selector, and the expander does not
1069 -- generate a check. This flag is also present in assignment statements
1070 -- (and set if the assignment requires a discriminant check), and in type
1071 -- conversion nodes (and set if the conversion requires a check).
1073 -- Do_Division_Check (Flag13-Sem)
1074 -- This flag is set on a division operator (/ mod rem) to indicate
1075 -- that a zero divide check is required. The actual check is dealt
1076 -- with by the backend (all the front end does is to set the flag).
1078 -- Do_Length_Check (Flag4-Sem)
1079 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1080 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1081 -- is required. It is not determined who deals with this flag (???).
1083 -- Do_Overflow_Check (Flag17-Sem)
1084 -- This flag is set on an operator where an overflow check is required on
1085 -- the operation. The actual check is dealt with by the backend (all the
1086 -- front end does is to set the flag). The other cases where this flag is
1087 -- used is on a Type_Conversion node and for attribute reference nodes.
1088 -- For a type conversion, it means that the conversion is from one base
1089 -- type to another, and the value may not fit in the target base type.
1090 -- See also the description of Do_Range_Check for this case. The only
1091 -- attribute references which use this flag are Pred and Succ, where it
1092 -- means that the result should be checked for going outside the base
1093 -- range. Note that this flag is not set for modular types. This flag is
1094 -- also set on if and case expression nodes if we are operating in either
1095 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1096 -- properly process overflow checking for dependent expressions).
1098 -- Do_Range_Check (Flag9-Sem)
1099 -- This flag is set on an expression which appears in a context where a
1100 -- range check is required. The target type is clear from the context.
1101 -- The contexts in which this flag can appear are the following:
1103 -- Right side of an assignment. In this case the target type is
1104 -- taken from the left side of the assignment, which is referenced
1105 -- by the Name of the N_Assignment_Statement node.
1107 -- Subscript expressions in an indexed component. In this case the
1108 -- target type is determined from the type of the array, which is
1109 -- referenced by the Prefix of the N_Indexed_Component node.
1111 -- Argument expression for a parameter, appearing either directly in
1112 -- the Parameter_Associations list of a call or as the Expression of an
1113 -- N_Parameter_Association node that appears in this list. In either
1114 -- case, the check is against the type of the formal. Note that the
1115 -- flag is relevant only in IN and IN OUT parameters, and will be
1116 -- ignored for OUT parameters, where no check is required in the call,
1117 -- and if a check is required on the return, it is generated explicitly
1118 -- with a type conversion.
1120 -- Initialization expression for the initial value in an object
1121 -- declaration. In this case the Do_Range_Check flag is set on
1122 -- the initialization expression, and the check is against the
1123 -- range of the type of the object being declared. This includes the
1124 -- cases of expressions providing default discriminant values, and
1125 -- expressions used to initialize record components.
1127 -- The expression of a type conversion. In this case the range check is
1128 -- against the target type of the conversion. See also the use of
1129 -- Do_Overflow_Check on a type conversion. The distinction is that the
1130 -- overflow check protects against a value that is outside the range of
1131 -- the target base type, whereas a range check checks that the
1132 -- resulting value (which is a value of the base type of the target
1133 -- type), satisfies the range constraint of the target type.
1135 -- Note: when a range check is required in contexts other than those
1136 -- listed above (e.g. in a return statement), an additional type
1137 -- conversion node is introduced to represent the required check.
1139 -- A special case arises for the arguments of the Pred/Succ attributes.
1140 -- Here the range check needed is against First + 1 .. Last (Pred) or
1141 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1142 -- these checks are what would be performed within the implicit body of
1143 -- the functions that correspond to these attributes. In these cases,
1144 -- the Do_Range check flag is set on the argument to the attribute
1145 -- function, and the back end must special case the appropriate range
1146 -- to check against.
1148 -- Do_Storage_Check (Flag17-Sem)
1149 -- This flag is set in an N_Allocator node to indicate that a storage
1150 -- check is required for the allocation, or in an N_Subprogram_Body node
1151 -- to indicate that a stack check is required in the subprogram prologue.
1152 -- The N_Allocator case is handled by the routine that expands the call
1153 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1154 -- backend, and all the semantics does is set the flag.
1156 -- Do_Tag_Check (Flag13-Sem)
1157 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1158 -- N_Procedure_Call_Statement, N_Type_Conversion,
1159 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1160 -- node to indicate that the tag check can be suppressed. It is not
1161 -- yet decided how this flag is used (TBD ???).
1163 -- Elaborate_Present (Flag4-Sem)
1164 -- This flag is set in the N_With_Clause node to indicate that pragma
1165 -- Elaborate pragma appears for the with'ed units.
1167 -- Elaborate_All_Desirable (Flag9-Sem)
1168 -- This flag is set in the N_With_Clause mode to indicate that the static
1169 -- elaboration processing has determined that an Elaborate_All pragma is
1170 -- desirable for correct elaboration for this unit.
1172 -- Elaborate_All_Present (Flag14-Sem)
1173 -- This flag is set in the N_With_Clause node to indicate that a
1174 -- pragma Elaborate_All pragma appears for the with'ed units.
1176 -- Elaborate_Desirable (Flag11-Sem)
1177 -- This flag is set in the N_With_Clause mode to indicate that the static
1178 -- elaboration processing has determined that an Elaborate pragma is
1179 -- desirable for correct elaboration for this unit.
1181 -- Else_Actions (List3-Sem)
1182 -- This field is present in if expression nodes. During code
1183 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1184 -- actions at an appropriate place in the tree to get elaborated at the
1185 -- right time. For if expressions, we have to be sure that the actions
1186 -- for the Else branch are only elaborated if the condition is False.
1187 -- The Else_Actions field is used as a temporary parking place for
1188 -- these actions. The final tree is always rewritten to eliminate the
1189 -- need for this field, so in the tree passed to Gigi, this field is
1190 -- always set to No_List.
1192 -- Enclosing_Variant (Node2-Sem)
1193 -- This field is present in the N_Variant node and identifies the Node_Id
1194 -- corresponding to the immediately enclosing variant when the variant is
1195 -- nested, and N_Empty otherwise. Set during semantic processing of the
1196 -- variant part of a record type.
1198 -- Entity (Node4-Sem)
1199 -- Appears in all direct names (identifiers, character literals, and
1200 -- operator symbols), as well as expanded names, and attributes that
1201 -- denote entities, such as 'Class. Points to entity for corresponding
1202 -- defining occurrence. Set after name resolution. For identifiers in a
1203 -- WITH list, the corresponding defining occurrence is in a separately
1204 -- compiled file, and Entity must be set by the library Load procedure.
1206 -- Note: During name resolution, the value in Entity may be temporarily
1207 -- incorrect (e.g. during overload resolution, Entity is initially set to
1208 -- the first possible correct interpretation, and then later modified if
1209 -- necessary to contain the correct value after resolution).
1211 -- Note: This field overlaps Associated_Node, which is used during
1212 -- generic processing (see Sem_Ch12 for details). Note also that in
1213 -- generic templates, this means that the Entity field does not always
1214 -- point to an Entity. Since the back end is expected to ignore generic
1215 -- templates, this is harmless.
1217 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1218 -- It is used only for stream attributes definition clauses. In this
1219 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1220 -- conceptually at the point of the clause. Thus the visibility of the
1221 -- attribute definition clause (in the sense of 8.3(23) as amended by
1222 -- AI-195) can be checked by testing the visibility of that subprogram.
1224 -- Note: Normally the Entity field of an identifier points to the entity
1225 -- for the corresponding defining identifier, and hence the Chars field
1226 -- of an identifier will match the Chars field of the entity. However,
1227 -- there is no requirement that these match, and there are obscure cases
1228 -- of generated code where they do not match.
1230 -- Note: Ada 2012 aspect specifications require additional links between
1231 -- identifiers and various attributes. These attributes can be of
1232 -- arbitrary types, and the entity field of identifiers that denote
1233 -- aspects must be used to store arbitrary expressions for later semantic
1234 -- checks. See section on aspect specifications for details.
1236 -- Entity_Or_Associated_Node (Node4-Sem)
1237 -- A synonym for both Entity and Associated_Node. Used by convention in
1238 -- the code when referencing this field in cases where it is not known
1239 -- whether the field contains an Entity or an Associated_Node.
1241 -- Etype (Node5-Sem)
1242 -- Appears in all expression nodes, all direct names, and all entities.
1243 -- Points to the entity for the related type. Set after type resolution.
1244 -- Normally this is the actual subtype of the expression. However, in
1245 -- certain contexts such as the right side of an assignment, subscripts,
1246 -- arguments to calls, returned value in a function, initial value etc.
1247 -- it is the desired target type. In the event that this is different
1248 -- from the actual type, the Do_Range_Check flag will be set if a range
1249 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1250 -- points to an essentially arbitrary choice from the possible set of
1251 -- types.
1253 -- Exception_Junk (Flag8-Sem)
1254 -- This flag is set in a various nodes appearing in a statement sequence
1255 -- to indicate that the corresponding node is an artifact of the
1256 -- generated code for exception handling, and should be ignored when
1257 -- analyzing the control flow of the relevant sequence of statements
1258 -- (e.g. to check that it does not end with a bad return statement).
1260 -- Exception_Label (Node5-Sem)
1261 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1262 -- to be used for transforming the corresponding exception into a goto,
1263 -- or contains Empty, if this exception is not to be transformed. Also
1264 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1265 -- that there may be a local raise for the handler, so that expansion
1266 -- to allow a goto is required (and this field contains the label for
1267 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1269 -- Expansion_Delayed (Flag11-Sem)
1270 -- Set on aggregates and extension aggregates that need a top-down rather
1271 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1272 -- up. For nested aggregates the expansion is delayed until the enclosing
1273 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1274 -- delay it we set this flag. This is done to avoid creating a temporary
1275 -- for each level of a nested aggregates, and also to prevent the
1276 -- premature generation of constraint checks. This is also a requirement
1277 -- if we want to generate the proper attachment to the internal
1278 -- finalization lists (for record with controlled components). Top down
1279 -- expansion of aggregates is also used for in-place array aggregate
1280 -- assignment or initialization. When the full context is known, the
1281 -- target of the assignment or initialization is used to generate the
1282 -- left-hand side of individual assignment to each sub-component.
1284 -- First_Inlined_Subprogram (Node3-Sem)
1285 -- Present in the N_Compilation_Unit node for the main program. Points
1286 -- to a chain of entities for subprograms that are to be inlined. The
1287 -- Next_Inlined_Subprogram field of these entities is used as a link
1288 -- pointer with Empty marking the end of the list. This field is Empty
1289 -- if there are no inlined subprograms or inlining is not active.
1291 -- First_Named_Actual (Node4-Sem)
1292 -- Present in procedure call statement and function call nodes, and also
1293 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1294 -- named parameter where parameters are ordered by declaration order (as
1295 -- opposed to the actual order in the call which may be different due to
1296 -- named associations). Note: this field points to the explicit actual
1297 -- parameter itself, not the N_Parameter_Association node (its parent).
1299 -- First_Real_Statement (Node2-Sem)
1300 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1301 -- Empty. Used only when declarations are moved into the statement part
1302 -- of a construct as a result of wrapping an AT END handler that is
1303 -- required to cover the declarations. In this case, this field is used
1304 -- to remember the location in the statements list of the first real
1305 -- statement, i.e. the statement that used to be first in the statement
1306 -- list before the declarations were prepended.
1308 -- First_Subtype_Link (Node5-Sem)
1309 -- Present in N_Freeze_Entity node for an anonymous base type that is
1310 -- implicitly created by the declaration of a first subtype. It points
1311 -- to the entity for the first subtype.
1313 -- Float_Truncate (Flag11-Sem)
1314 -- A flag present in type conversion nodes. This is used for float to
1315 -- integer conversions where truncation is required rather than rounding.
1317 -- Forwards_OK (Flag5-Sem)
1318 -- A flag present in the N_Assignment_Statement node. It is used only
1319 -- if the type being assigned is an array type, and is set if analysis
1320 -- determines that it is definitely safe to do the copy forwards, i.e.
1321 -- starting at the lowest addressed element. This is the case if either
1322 -- the operands do not overlap, or they may overlap, but if they do,
1323 -- then the left operand is at a lower address than the right operand.
1325 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1326 -- means that the front end could not determine that either direction is
1327 -- definitely safe, and a runtime check may be required if the backend
1328 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1329 -- set, it means that the front end can assure no overlap of operands.
1331 -- From_Aspect_Specification (Flag13-Sem)
1332 -- Processing of aspect specifications typically results in insertion in
1333 -- the tree of corresponding pragma or attribute definition clause nodes.
1334 -- These generated nodes have the From_Aspect_Specification flag set to
1335 -- indicate that they came from aspect specifications originally.
1337 -- From_At_End (Flag4-Sem)
1338 -- This flag is set on an N_Raise_Statement node if it corresponds to
1339 -- the reraise statement generated as the last statement of an AT END
1340 -- handler when SJLJ exception handling is active. It is used to stop
1341 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1342 -- because if the restriction is set, the reraise is not generated.
1344 -- From_At_Mod (Flag4-Sem)
1345 -- This flag is set on the attribute definition clause node that is
1346 -- generated by a transformation of an at mod phrase in a record
1347 -- representation clause. This is used to give slightly different (Ada 83
1348 -- compatible) semantics to such a clause, namely it is used to specify a
1349 -- minimum acceptable alignment for the base type and all subtypes. In
1350 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1351 -- must be a multiple of the given value, and the representation clause
1352 -- is considered to be type specific instead of subtype specific.
1354 -- From_Conditional_Expression (Flag1-Sem)
1355 -- This flag is set on if and case statements generated by the expansion
1356 -- of if and case expressions respectively. The flag is used to suppress
1357 -- any finalization of controlled objects found within these statements.
1359 -- From_Default (Flag6-Sem)
1360 -- This flag is set on the subprogram renaming declaration created in an
1361 -- instance for a formal subprogram, when the formal is declared with a
1362 -- box, and there is no explicit actual. If the flag is present, the
1363 -- declaration is treated as an implicit reference to the formal in the
1364 -- ali file.
1366 -- Generalized_Indexing (Node4-Sem)
1367 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1368 -- that are Ada 2012 container indexing operations. The value of the
1369 -- attribute is a function call (possibly dereferenced) that corresponds
1370 -- to the proper expansion of the source indexing operation. Before
1371 -- expansion, the source node is rewritten as the resolved generalized
1372 -- indexing. In ASIS mode, the expansion does not take place, so that
1373 -- the source is preserved and properly annotated with types.
1375 -- Generic_Parent (Node5-Sem)
1376 -- Generic_Parent is defined on declaration nodes that are instances. The
1377 -- value of Generic_Parent is the generic entity from which the instance
1378 -- is obtained. Generic_Parent is also defined for the renaming
1379 -- declarations and object declarations created for the actuals in an
1380 -- instantiation. The generic parent of such a declaration is the
1381 -- corresponding generic association in the Instantiation node.
1383 -- Generic_Parent_Type (Node4-Sem)
1384 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1385 -- actuals of formal private and derived types. Within the instance, the
1386 -- operations on the actual are those inherited from the parent. For a
1387 -- formal private type, the parent type is the generic type itself. The
1388 -- Generic_Parent_Type is also used in an instance to determine whether a
1389 -- private operation overrides an inherited one.
1391 -- Handler_List_Entry (Node2-Sem)
1392 -- This field is present in N_Object_Declaration nodes. It is set only
1393 -- for the Handler_Record entry generated for an exception in zero cost
1394 -- exception handling mode. It references the corresponding item in the
1395 -- handler list, and is used to delete this entry if the corresponding
1396 -- handler is deleted during optimization. For further details on why
1397 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1399 -- Has_Dereference_Action (Flag13-Sem)
1400 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1401 -- indicate that the expansion has aready produced a call to primitive
1402 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1403 -- Such dereference actions are produced for debugging purposes.
1405 -- Has_Dynamic_Length_Check (Flag10-Sem)
1406 -- This flag is present in all expression nodes. It is set to indicate
1407 -- that one of the routines in unit Checks has generated a length check
1408 -- action which has been inserted at the flagged node. This is used to
1409 -- avoid the generation of duplicate checks.
1411 -- Has_Dynamic_Range_Check (Flag12-Sem)
1412 -- This flag is present in N_Subtype_Declaration nodes and on all
1413 -- expression nodes. It is set to indicate that one of the routines in
1414 -- unit Checks has generated a range check action which has been inserted
1415 -- at the flagged node. This is used to avoid the generation of duplicate
1416 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1417 -- it mean in that context???
1419 -- Has_Local_Raise (Flag8-Sem)
1420 -- Present in exception handler nodes. Set if the handler can be entered
1421 -- via a local raise that gets transformed to a goto statement. This will
1422 -- always be set if Local_Raise_Statements is non-empty, but can also be
1423 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1424 -- nodes requiring generation of back end checks.
1426 -- Has_No_Elaboration_Code (Flag17-Sem)
1427 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1428 -- or not elaboration code is present for this unit. It is initially set
1429 -- true for subprogram specs and bodies and for all generic units and
1430 -- false for non-generic package specs and bodies. Gigi may set the flag
1431 -- in the non-generic package case if it determines that no elaboration
1432 -- code is generated. Note that this flag is not related to the
1433 -- Is_Preelaborated status, there can be preelaborated packages that
1434 -- generate elaboration code, and non-preelaborated packages which do
1435 -- not generate elaboration code.
1437 -- Has_Pragma_Suppress_All (Flag14-Sem)
1438 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1439 -- pragma appears anywhere in the unit. This accommodates the rather
1440 -- strange placement rules of other compilers (DEC permits it at the
1441 -- end of a unit, and Rational allows it as a program unit pragma). We
1442 -- allow it anywhere at all, and consider it equivalent to a pragma
1443 -- Suppress (All_Checks) appearing at the start of the configuration
1444 -- pragmas for the unit.
1446 -- Has_Private_View (Flag11-Sem)
1447 -- A flag present in generic nodes that have an entity, to indicate that
1448 -- the node has a private type. Used to exchange private and full
1449 -- declarations if the visibility at instantiation is different from the
1450 -- visibility at generic definition.
1452 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1453 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1454 -- flag the presence of a pragma Relative_Deadline.
1456 -- Has_Self_Reference (Flag13-Sem)
1457 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1458 -- of the expressions contains an access attribute reference to the
1459 -- enclosing type. Such a self-reference can only appear in default-
1460 -- initialized aggregate for a record type.
1462 -- Has_SP_Choice (Flag15-Sem)
1463 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1464 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1465 -- True if the Discrete_Choices list has at least one occurrence of a
1466 -- statically predicated subtype.
1468 -- Has_Storage_Size_Pragma (Flag5-Sem)
1469 -- A flag present in an N_Task_Definition node to flag the presence of a
1470 -- Storage_Size pragma.
1472 -- Has_Wide_Character (Flag11-Sem)
1473 -- Present in string literals, set if any wide character (i.e. character
1474 -- code outside the Character range but within Wide_Character range)
1475 -- appears in the string. Used to implement pragma preference rules.
1477 -- Has_Wide_Wide_Character (Flag13-Sem)
1478 -- Present in string literals, set if any wide character (i.e. character
1479 -- code outside the Wide_Character range) appears in the string. Used to
1480 -- implement pragma preference rules.
1482 -- Header_Size_Added (Flag11-Sem)
1483 -- Present in N_Attribute_Reference nodes, set only for attribute
1484 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1485 -- hidden list header used by the runtime finalization support has been
1486 -- added to the size of the prefix. The flag also prevents the infinite
1487 -- expansion of the same attribute in the said context.
1489 -- Hidden_By_Use_Clause (Elist4-Sem)
1490 -- An entity list present in use clauses that appear within
1491 -- instantiations. For the resolution of local entities, entities
1492 -- introduced by these use clauses have priority over global ones, and
1493 -- outer entities must be explicitly hidden/restored on exit.
1495 -- Implicit_With (Flag16-Sem)
1496 -- This flag is set in the N_With_Clause node that is implicitly
1497 -- generated for runtime units that are loaded by the expander, and also
1498 -- for package System, if it is loaded implicitly by a use of the
1499 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1500 -- as well.
1502 -- Implicit_With_From_Instantiation (Flag12-Sem)
1503 -- Set in N_With_Clause nodes from generic instantiations.
1505 -- Import_Interface_Present (Flag16-Sem)
1506 -- This flag is set in an Interface or Import pragma if a matching
1507 -- pragma of the other kind is also present. This is used to avoid
1508 -- generating some unwanted error messages.
1510 -- Includes_Infinities (Flag11-Sem)
1511 -- This flag is present in N_Range nodes. It is set for the range of
1512 -- unconstrained float types defined in Standard, which include not only
1513 -- the given range of values, but also legitimately can include infinite
1514 -- values. This flag is false for any float type for which an explicit
1515 -- range is given by the programmer, even if that range is identical to
1516 -- the range for Float.
1518 -- Incomplete_View (Node2-Sem)
1519 -- Present in full type declarations that are completions of incomplete
1520 -- type declarations. Denotes the corresponding incomplete type
1521 -- declaration. Used to simplify the retrieval of primitive operations
1522 -- that may be declared between the partial and the full view of an
1523 -- untagged type.
1525 -- Inherited_Discriminant (Flag13-Sem)
1526 -- This flag is present in N_Component_Association nodes. It indicates
1527 -- that a given component association in an extension aggregate is the
1528 -- value obtained from a constraint on an ancestor. Used to prevent
1529 -- double expansion when the aggregate has expansion delayed.
1531 -- Instance_Spec (Node5-Sem)
1532 -- This field is present in generic instantiation nodes, and also in
1533 -- formal package declaration nodes (formal package declarations are
1534 -- treated in a manner very similar to package instantiations). It points
1535 -- to the node for the spec of the instance, inserted as part of the
1536 -- semantic processing for instantiations in Sem_Ch12.
1538 -- Is_Accessibility_Actual (Flag13-Sem)
1539 -- Present in N_Parameter_Association nodes. True if the parameter is
1540 -- an extra actual that carries the accessibility level of the actual
1541 -- for an access parameter, in a function that dispatches on result and
1542 -- is called in a dispatching context. Used to prevent a formal/actual
1543 -- mismatch when the call is rewritten as a dispatching call.
1545 -- Is_Analyzed_Pragma (Flag5-Sem)
1546 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1547 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1548 -- and verifies the overall legality of the pragma. The second step takes
1549 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1550 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1552 -- Is_Expanded_Contract (Flag1-Sem)
1553 -- Present in N_Contract nodes. Set if the contract has already undergone
1554 -- expansion activities.
1556 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1557 -- A flag set in a Block_Statement node to indicate that it is the
1558 -- expansion of an asynchronous entry call. Such a block needs cleanup
1559 -- handler to assure that the call is cancelled.
1561 -- Is_Boolean_Aspect (Flag16-Sem)
1562 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1563 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1565 -- Is_Checked (Flag11-Sem)
1566 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1567 -- assertion aspect or pragma, or check pragma for an assertion, that
1568 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1569 -- is set (they cannot both be set), then this means that the status of
1570 -- the pragma has been checked at the appropriate point and should not
1571 -- be further modified (in some cases these flags are copied when a
1572 -- pragma is rewritten).
1574 -- Is_Component_Left_Opnd (Flag13-Sem)
1575 -- Is_Component_Right_Opnd (Flag14-Sem)
1576 -- Present in concatenation nodes, to indicate that the corresponding
1577 -- operand is of the component type of the result. Used in resolving
1578 -- concatenation nodes in instances.
1580 -- Is_Controlling_Actual (Flag16-Sem)
1581 -- This flag is set on an expression that is a controlling argument in
1582 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1583 -- details of its use.
1585 -- Is_Delayed_Aspect (Flag14-Sem)
1586 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1587 -- come from aspect specifications, where the evaluation of the aspect
1588 -- must be delayed to the freeze point. This flag is also set True in
1589 -- the corresponding N_Aspect_Specification node.
1591 -- Is_Disabled (Flag15-Sem)
1592 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1593 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1594 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1595 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1596 -- If this flag is set, the aspect or policy is not analyzed for semantic
1597 -- correctness, so any expressions etc will not be marked as analyzed.
1599 -- Is_Dynamic_Coextension (Flag18-Sem)
1600 -- Present in allocator nodes, to indicate that this is an allocator
1601 -- for an access discriminant of a dynamically allocated object. The
1602 -- coextension must be deallocated and finalized at the same time as
1603 -- the enclosing object.
1605 -- Is_Entry_Barrier_Function (Flag8-Sem)
1606 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1607 -- nodes which emulate the barrier function of a protected entry body.
1608 -- The flag is used when checking for incorrect use of Current_Task.
1610 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1611 -- This flag is set in an N_Function_Call node to indicate that the extra
1612 -- actuals to support a build-in-place style of call have been added to
1613 -- the call.
1615 -- Is_Finalization_Wrapper (Flag9-Sem);
1616 -- This flag is present in N_Block_Statement nodes. It is set when the
1617 -- block acts as a wrapper of a handled construct which has controlled
1618 -- objects. The wrapper prevents interference between exception handlers
1619 -- and At_End handlers.
1621 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1622 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1623 -- a source construct, applies to a generic unit or its body and denotes
1624 -- one of the following contract-related annotations:
1625 -- Abstract_State
1626 -- Contract_Cases
1627 -- Depends
1628 -- Extensions_Visible
1629 -- Global
1630 -- Initial_Condition
1631 -- Initializes
1632 -- Post
1633 -- Post_Class
1634 -- Postcondition
1635 -- Pre
1636 -- Pre_Class
1637 -- Precondition
1638 -- Refined_Depends
1639 -- Refined_Global
1640 -- Refined_Post
1641 -- Refined_State
1642 -- Test_Case
1644 -- Is_Ghost_Pragma (Flag3-Sem)
1645 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1646 -- either declared within a Ghost construct or it applies to a Ghost
1647 -- construct.
1649 -- Is_Ignored (Flag9-Sem)
1650 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1651 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1652 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1653 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1654 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1655 -- gives a policy for the aspect or pragma, then there are two cases. For
1656 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1657 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1658 -- ignored because of the absence of a -gnata switch. For any other
1659 -- aspects or pragmas, the flag is off. If this flag is set, the
1660 -- aspect/pragma is fully analyzed and checked for other syntactic
1661 -- and semantic errors, but it does not have any semantic effect.
1663 -- Is_In_Discriminant_Check (Flag11-Sem)
1664 -- This flag is present in a selected component, and is used to indicate
1665 -- that the reference occurs within a discriminant check. The
1666 -- significance is that optimizations based on assuming that the
1667 -- discriminant check has a correct value cannot be performed in this
1668 -- case (or the discriminant check may be optimized away).
1670 -- Is_Inherited_Pragma (Flag4-Sem)
1671 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1672 -- to indicate that the pragma has been inherited from a parent context.
1674 -- Is_Machine_Number (Flag11-Sem)
1675 -- This flag is set in an N_Real_Literal node to indicate that the value
1676 -- is a machine number. This avoids some unnecessary cases of converting
1677 -- real literals to machine numbers.
1679 -- Is_Null_Loop (Flag16-Sem)
1680 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1681 -- can be determined to be null at compile time. This is used to remove
1682 -- the loop entirely at expansion time.
1684 -- Is_Overloaded (Flag5-Sem)
1685 -- A flag present in all expression nodes. Used temporarily during
1686 -- overloading determination. The setting of this flag is not relevant
1687 -- once overloading analysis is complete.
1689 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1690 -- A flag present only in N_Op_Expon nodes. It is set when the
1691 -- exponentiation is of the form 2 ** N, where the type of N is an
1692 -- unsigned integral subtype whose size does not exceed the size of
1693 -- Standard_Integer (i.e. a type that can be safely converted to
1694 -- Natural), and the exponentiation appears as the right operand of an
1695 -- integer multiplication or an integer division where the dividend is
1696 -- unsigned. It is also required that overflow checking is off for both
1697 -- the exponentiation and the multiply/divide node. If this set of
1698 -- conditions holds, and the flag is set, then the division or
1699 -- multiplication can be (and is) converted to a shift.
1701 -- Is_Prefixed_Call (Flag17-Sem)
1702 -- This flag is set in a selected component within a generic unit, if
1703 -- it resolves to a prefixed call to a primitive operation. The flag
1704 -- is used to prevent accidental overloadings in an instance, when a
1705 -- primitive operation and a private record component may be homographs.
1707 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1708 -- A flag set in a Subprogram_Body block to indicate that it is the
1709 -- implementation of a protected subprogram. Such a body needs cleanup
1710 -- handler to make sure that the associated protected object is unlocked
1711 -- when the subprogram completes.
1713 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1714 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1715 -- converting a universal literal to a specific type. Such qualifiers aid
1716 -- the resolution of accidental overloading of binary or unary operators
1717 -- which may occur in instances.
1719 -- Is_Static_Coextension (Flag14-Sem)
1720 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1721 -- of an object allocated on the stack rather than the heap.
1723 -- Is_Static_Expression (Flag6-Sem)
1724 -- Indicates that an expression is a static expression according to the
1725 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1726 -- when Raises_Constraint_Error is also set. In practice almost all cases
1727 -- where a static expression is required do not allow an expression which
1728 -- raises Constraint_Error, so almost always, callers should call the
1729 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1730 -- spec of package Sem_Eval for full details on the use of this flag.
1732 -- Is_Subprogram_Descriptor (Flag16-Sem)
1733 -- Present in N_Object_Declaration, and set only for the object
1734 -- declaration generated for a subprogram descriptor in fast exception
1735 -- mode. See Exp_Ch11 for details of use.
1737 -- Is_Task_Allocation_Block (Flag6-Sem)
1738 -- A flag set in a Block_Statement node to indicate that it is the
1739 -- expansion of a task allocator, or the allocator of an object
1740 -- containing tasks. Such a block requires a cleanup handler to call
1741 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1742 -- allocated but not activated when the allocator completes abnormally.
1744 -- Is_Task_Body_Procedure (Flag1-Sem)
1745 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1746 -- nodes which emulate the body of a task unit.
1748 -- Is_Task_Master (Flag5-Sem)
1749 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1750 -- indicate that the construct is a task master (i.e. has declared tasks
1751 -- or declares an access to a task type).
1753 -- Itype (Node1-Sem)
1754 -- Used in N_Itype_Reference node to reference an itype for which it is
1755 -- important to ensure that it is defined. See description of this node
1756 -- for further details.
1758 -- Kill_Range_Check (Flag11-Sem)
1759 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1760 -- result should not be subjected to range checks. This is used for the
1761 -- implementation of Normalize_Scalars.
1763 -- Label_Construct (Node2-Sem)
1764 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1765 -- N_Block_Statement or N_Loop_Statement node to which the label
1766 -- declaration applies. This attribute is used both in the compiler and
1767 -- in the implementation of ASIS queries. The field is left empty for the
1768 -- special labels generated as part of expanding raise statements with a
1769 -- local exception handler.
1771 -- Library_Unit (Node4-Sem)
1772 -- In a stub node, Library_Unit points to the compilation unit node of
1773 -- the corresponding subunit.
1775 -- In a with clause node, Library_Unit points to the spec of the with'ed
1776 -- unit.
1778 -- In a compilation unit node, the usage depends on the unit type:
1780 -- For a library unit body, Library_Unit points to the compilation unit
1781 -- node of the corresponding spec, unless it's a subprogram body with
1782 -- Acts_As_Spec set, in which case it points to itself.
1784 -- For a spec, Library_Unit points to the compilation unit node of the
1785 -- corresponding body, if present. The body will be present if the spec
1786 -- is or contains generics that we needed to instantiate. Similarly, the
1787 -- body will be present if we needed it for inlining purposes. Thus, if
1788 -- we have a spec/body pair, both of which are present, they point to
1789 -- each other via Library_Unit.
1791 -- For a subunit, Library_Unit points to the compilation unit node of
1792 -- the parent body.
1793 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1794 -- to the corresponding spec for the parent body.
1796 -- Note that this field is not used to hold the parent pointer for child
1797 -- unit (which might in any case need to use it for some other purpose as
1798 -- described above). Instead for a child unit, implicit with's are
1799 -- generated for all parents.
1801 -- Local_Raise_Statements (Elist1)
1802 -- This field is present in exception handler nodes. It is set to
1803 -- No_Elist in the normal case. If there is at least one raise statement
1804 -- which can potentially be handled as a local raise, then this field
1805 -- points to a list of raise nodes, which are calls to a routine to raise
1806 -- an exception. These are raise nodes which can be optimized into gotos
1807 -- if the handler turns out to meet the conditions which permit this
1808 -- transformation. Note that this does NOT include instances of the
1809 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1810 -- handled by the back end (using the N_Push/N_Pop mechanism).
1812 -- Loop_Actions (List2-Sem)
1813 -- A list present in Component_Association nodes in array aggregates.
1814 -- Used to collect actions that must be executed within the loop because
1815 -- they may need to be evaluated anew each time through.
1817 -- Limited_View_Installed (Flag18-Sem)
1818 -- Present in With_Clauses and in package specifications. If set on
1819 -- with_clause, it indicates that this clause has created the current
1820 -- limited view of the designated package. On a package specification, it
1821 -- indicates that the limited view has already been created because the
1822 -- package is mentioned in a limited_with_clause in the closure of the
1823 -- unit being compiled.
1825 -- Local_Raise_Not_OK (Flag7-Sem)
1826 -- Present in N_Exception_Handler nodes. Set if the handler contains
1827 -- a construct (reraise statement, or call to subprogram in package
1828 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1829 -- for a local raise (one that could otherwise be converted to a goto).
1831 -- Must_Be_Byte_Aligned (Flag14-Sem)
1832 -- This flag is present in N_Attribute_Reference nodes. It can be set
1833 -- only for the Address and Unrestricted_Access attributes. If set it
1834 -- means that the object for which the address/access is given must be on
1835 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1836 -- of the object is to be made before taking the address (this copy is in
1837 -- the current scope on the stack frame). This is used for certain cases
1838 -- of code generated by the expander that passes parameters by address.
1840 -- The reason the copy is not made by the front end is that the back end
1841 -- has more information about type layout and may be able to (but is not
1842 -- guaranteed to) prevent making unnecessary copies.
1844 -- Must_Not_Freeze (Flag8-Sem)
1845 -- A flag present in all expression nodes. Normally expressions cause
1846 -- freezing as described in the RM. If this flag is set, then this is
1847 -- inhibited. This is used by the analyzer and expander to label nodes
1848 -- that are created by semantic analysis or expansion and which must not
1849 -- cause freezing even though they normally would. This flag is also
1850 -- present in an N_Subtype_Indication node, since we also use these in
1851 -- calls to Freeze_Expression.
1853 -- Next_Entity (Node2-Sem)
1854 -- Present in defining identifiers, defining character literals and
1855 -- defining operator symbols (i.e. in all entities). The entities of a
1856 -- scope are chained, and this field is used as the forward pointer for
1857 -- this list. See Einfo for further details.
1859 -- Next_Exit_Statement (Node3-Sem)
1860 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1861 -- chained (in reverse order of appearance) from the First_Exit_Statement
1862 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1863 -- the next entry on this chain (Empty = end of list).
1865 -- Next_Implicit_With (Node3-Sem)
1866 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1867 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1868 -- to prevent multiple with_clauses for the same unit in a given context.
1869 -- A postorder traversal of the tree whose nodes are units and whose
1870 -- links are with_clauses defines the order in which CodePeer must
1871 -- examine a compiled unit and its full context. This ordering ensures
1872 -- that any subprogram call is examined after the subprogram declaration
1873 -- has been seen.
1875 -- Next_Named_Actual (Node4-Sem)
1876 -- Present in parameter association nodes. Set during semantic analysis
1877 -- to point to the next named parameter, where parameters are ordered by
1878 -- declaration order (as opposed to the actual order in the call, which
1879 -- may be different due to named associations). Not that this field
1880 -- points to the explicit actual parameter itself, not to the
1881 -- N_Parameter_Association node (its parent).
1883 -- Next_Pragma (Node1-Sem)
1884 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1885 -- nodes. Currently used for two purposes:
1887 -- Create a list of linked Check_Policy pragmas. The head of this list
1888 -- is stored in Opt.Check_Policy_List (which has further details).
1890 -- Used by processing for Pre/Postcondition pragmas to store a list of
1891 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1892 -- details).
1894 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1895 -- the apply to the same construct. These are visible/private mode for
1896 -- a package spec and declarative/statement mode for package body.
1898 -- Next_Rep_Item (Node5-Sem)
1899 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1900 -- clauses, record rep clauses, aspect specification nodes. Used to link
1901 -- representation items that apply to an entity. See full description of
1902 -- First_Rep_Item field in Einfo for further details.
1904 -- Next_Use_Clause (Node3-Sem)
1905 -- While use clauses are active during semantic processing, they are
1906 -- chained from the scope stack entry, using Next_Use_Clause as a link
1907 -- pointer, with Empty marking the end of the list. The head pointer is
1908 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1909 -- processing (i.e. when Gigi sees the tree, the contents of this field
1910 -- is undefined and should not be read).
1912 -- No_Ctrl_Actions (Flag7-Sem)
1913 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1914 -- Adjust should take place on this assignment even though the RHS is
1915 -- controlled. Also indicates that the primitive _assign should not be
1916 -- used for a tagged assignment. This is used in init procs and aggregate
1917 -- expansions where the generated assignments are initializations, not
1918 -- real assignments.
1920 -- No_Elaboration_Check (Flag14-Sem)
1921 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1922 -- that no elaboration check is needed on the call, because it appears in
1923 -- the context of a local Suppress pragma. This is used on calls within
1924 -- task bodies, where the actual elaboration checks are applied after
1925 -- analysis, when the local scope stack is not present.
1927 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1928 -- Present in N_With_Clause nodes. Set if the with clause is on the
1929 -- package or subprogram spec where the main unit is the corresponding
1930 -- body, and no entities of the with'ed unit are referenced by the spec
1931 -- (an entity may still be referenced in the body, so this flag is used
1932 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1933 -- full details).
1935 -- No_Initialization (Flag13-Sem)
1936 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1937 -- object must not be initialized (by Initialize or call to an init
1938 -- proc). This is needed for controlled aggregates. When the Object
1939 -- declaration has an expression, this flag means that this expression
1940 -- should not be taken into account (needed for in place initialization
1941 -- with aggregates, and for object with an address clause, which are
1942 -- initialized with an assignment at freeze time).
1944 -- No_Minimize_Eliminate (Flag17-Sem)
1945 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1946 -- It is used to indicate that processing for extended overflow checking
1947 -- modes is not required (this is used to prevent infinite recursion).
1949 -- No_Truncation (Flag17-Sem)
1950 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1951 -- only if the RM_Size of the source is greater than the RM_Size of the
1952 -- target for scalar operands. Normally in such a case we truncate some
1953 -- higher order bits of the source, and then sign/zero extend the result
1954 -- to form the output value. But if this flag is set, then we do not do
1955 -- any truncation, so for example, if an 8 bit input is converted to 5
1956 -- bit result which is in fact stored in 8 bits, then the high order
1957 -- three bits of the target result will be copied from the source. This
1958 -- is used for properly setting out of range values for use by pragmas
1959 -- Initialize_Scalars and Normalize_Scalars.
1961 -- Non_Aliased_Prefix (Flag18-Sem)
1962 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1963 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1964 -- the case that is permitted for Unrestricted_Access except when the
1965 -- expected type is a thin pointer to unconstrained array. This flag is
1966 -- to assist in detecting this illegal use of Unrestricted_Access.
1968 -- Null_Excluding_Subtype (Flag16)
1969 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1970 -- indication carries a null-exclusion indicator, which is distinct from
1971 -- the null-exclusion indicator that may precede the access keyword.
1973 -- Original_Discriminant (Node2-Sem)
1974 -- Present in identifiers. Used in references to discriminants that
1975 -- appear in generic units. Because the names of the discriminants may be
1976 -- different in an instance, we use this field to recover the position of
1977 -- the discriminant in the original type, and replace it with the
1978 -- discriminant at the same position in the instantiated type.
1980 -- Original_Entity (Node2-Sem)
1981 -- Present in numeric literals. Used to denote the named number that has
1982 -- been constant-folded into the given literal. If literal is from
1983 -- source, or the result of some other constant-folding operation, then
1984 -- Original_Entity is empty. This field is needed to handle properly
1985 -- named numbers in generic units, where the Associated_Node field
1986 -- interferes with the Entity field, making it impossible to preserve the
1987 -- original entity at the point of instantiation (ASIS problem).
1989 -- Others_Discrete_Choices (List1-Sem)
1990 -- When a case statement or variant is analyzed, the semantic checks
1991 -- determine the actual list of choices that correspond to an others
1992 -- choice. This list is materialized for later use by the expander and
1993 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1994 -- this materialized list of choices, which is in standard format for a
1995 -- list of discrete choices, except that of course it cannot contain an
1996 -- N_Others_Choice entry.
1998 -- Parent_Spec (Node4-Sem)
1999 -- For a library unit that is a child unit spec (package or subprogram
2000 -- declaration, generic declaration or instantiation, or library level
2001 -- rename, this field points to the compilation unit node for the parent
2002 -- package specification. This field is Empty for library bodies (the
2003 -- parent spec in this case can be found from the corresponding spec).
2005 -- Premature_Use (Node5-Sem)
2006 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2007 -- error diagnostics: if there is a premature usage of an incomplete
2008 -- type, a subsequently generated error message indicates the position
2009 -- of its full declaration.
2011 -- Present_Expr (Uint3-Sem)
2012 -- Present in an N_Variant node. This has a meaningful value only after
2013 -- Gigi has back annotated the tree with representation information. At
2014 -- this point, it contains a reference to a gcc expression that depends
2015 -- on the values of one or more discriminants. Give a set of discriminant
2016 -- values, this expression evaluates to False (zero) if variant is not
2017 -- present, and True (non-zero) if it is present. See unit Repinfo for
2018 -- further details on gigi back annotation. This field is used during
2019 -- ASIS processing (data decomposition annex) to determine if a field is
2020 -- present or not.
2022 -- Print_In_Hex (Flag13-Sem)
2023 -- Set on an N_Integer_Literal node to indicate that the value should be
2024 -- printed in hexadecimal in the sprint listing. Has no effect on
2025 -- legality or semantics of program, only on the displayed output. This
2026 -- is used to clarify output from the packed array cases.
2028 -- Procedure_To_Call (Node2-Sem)
2029 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2030 -- and N_Extended_Return_Statement nodes. References the entity for the
2031 -- declaration of the procedure to be called to accomplish the required
2032 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2033 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2034 -- allocating the return value), and for the Deallocate procedure in the
2035 -- case of N_Free_Statement.
2037 -- Raises_Constraint_Error (Flag7-Sem)
2038 -- Set on an expression whose evaluation will definitely fail constraint
2039 -- error check. In the case of static expressions, this flag must be set
2040 -- accurately (and if it is set, the expression is typically illegal
2041 -- unless it appears as a non-elaborated branch of a short-circuit form).
2042 -- For a non-static expression, this flag may be set whenever an
2043 -- expression (e.g. an aggregate) is known to raise constraint error. If
2044 -- set, the expression definitely will raise CE if elaborated at runtime.
2045 -- If not set, the expression may or may not raise CE. In other words, on
2046 -- static expressions, the flag is set accurately, on non-static
2047 -- expressions it is set conservatively.
2049 -- Redundant_Use (Flag13-Sem)
2050 -- Present in nodes that can appear as an operand in a use clause or use
2051 -- type clause (identifiers, expanded names, attribute references). Set
2052 -- to indicate that a use is redundant (and therefore need not be undone
2053 -- on scope exit).
2055 -- Renaming_Exception (Node2-Sem)
2056 -- Present in N_Exception_Declaration node. Used to point back to the
2057 -- exception renaming for an exception declared within a subprogram.
2058 -- What happens is that an exception declared in a subprogram is moved
2059 -- to the library level with a unique name, and the original exception
2060 -- becomes a renaming. This link from the library level exception to the
2061 -- renaming declaration allows registering of the proper exception name.
2063 -- Return_Statement_Entity (Node5-Sem)
2064 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2065 -- Points to an E_Return_Statement representing the return statement.
2067 -- Return_Object_Declarations (List3)
2068 -- Present in N_Extended_Return_Statement. Points to a list initially
2069 -- containing a single N_Object_Declaration representing the return
2070 -- object. We use a list (instead of just a pointer to the object decl)
2071 -- because Analyze wants to insert extra actions on this list.
2073 -- Rounded_Result (Flag18-Sem)
2074 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2075 -- Used in the fixed-point cases to indicate that the result must be
2076 -- rounded as a result of the use of the 'Round attribute. Also used for
2077 -- integer N_Op_Divide nodes to indicate that the result should be
2078 -- rounded to the nearest integer (breaking ties away from zero), rather
2079 -- than truncated towards zero as usual. These rounded integer operations
2080 -- are the result of expansion of rounded fixed-point divide, conversion
2081 -- and multiplication operations.
2083 -- SCIL_Entity (Node4-Sem)
2084 -- Present in SCIL nodes. References the specific tagged type associated
2085 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2086 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2087 -- generated as part of testing membership in T'Class, this is T; for an
2088 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2090 -- SCIL_Controlling_Tag (Node5-Sem)
2091 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2092 -- tag of a dispatching call. This is usually an N_Selected_Component
2093 -- node (for a _tag component), but may be an N_Object_Declaration or
2094 -- N_Parameter_Specification node in some cases (e.g., for a call to
2095 -- a classwide streaming operation or a call to an instance of
2096 -- Ada.Tags.Generic_Dispatching_Constructor).
2098 -- SCIL_Tag_Value (Node5-Sem)
2099 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2100 -- of the value that is being tested.
2102 -- SCIL_Target_Prim (Node2-Sem)
2103 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2104 -- operation named (statically) in a dispatching call.
2106 -- Scope (Node3-Sem)
2107 -- Present in defining identifiers, defining character literals and
2108 -- defining operator symbols (i.e. in all entities). The entities of a
2109 -- scope all use this field to reference the corresponding scope entity.
2110 -- See Einfo for further details.
2112 -- Shift_Count_OK (Flag4-Sem)
2113 -- A flag present in shift nodes to indicate that the shift count is
2114 -- known to be in range, i.e. is in the range from zero to word length
2115 -- minus one. If this flag is not set, then the shift count may be
2116 -- outside this range, i.e. larger than the word length, and the code
2117 -- must ensure that such shift counts give the appropriate result.
2119 -- Source_Type (Node1-Sem)
2120 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2121 -- source type entity for the unchecked conversion instantiation
2122 -- which gigi must do size validation for.
2124 -- Split_PPC (Flag17)
2125 -- When a Pre or Post aspect specification is processed, it is broken
2126 -- into AND THEN sections. The left most section has Split_PPC set to
2127 -- False, indicating that it is the original specification (e.g. for
2128 -- posting errors). For other sections, Split_PPC is set to True.
2129 -- This flag is set in both the N_Aspect_Specification node itself,
2130 -- and in the pragma which is generated from this node.
2132 -- Storage_Pool (Node1-Sem)
2133 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2134 -- and N_Extended_Return_Statement nodes. References the entity for the
2135 -- storage pool to be used for the allocate or free call or for the
2136 -- allocation of the returned value from function. Empty indicates that
2137 -- the global default pool is to be used. Note that in the case
2138 -- of a return statement, this field is set only if the function returns
2139 -- value of a type whose size is not known at compile time on the
2140 -- secondary stack.
2142 -- Suppress_Assignment_Checks (Flag18-Sem)
2143 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2144 -- and range checks in cases where the generated code knows that the
2145 -- value being assigned is in range and satisfies any predicate. Also
2146 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2147 -- checks on the initializing value. In assignment statements it also
2148 -- suppresses access checks in the generated code for out- and in-out
2149 -- parameters in entry calls.
2151 -- Suppress_Loop_Warnings (Flag17-Sem)
2152 -- Used in N_Loop_Statement node to indicate that warnings within the
2153 -- body of the loop should be suppressed. This is set when the range
2154 -- of a FOR loop is known to be null, or is probably null (loop would
2155 -- only execute if invalid values are present).
2157 -- Target_Type (Node2-Sem)
2158 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2159 -- type entity for the unchecked conversion instantiation which gigi must
2160 -- do size validation for.
2162 -- Then_Actions (List3-Sem)
2163 -- This field is present in if expression nodes. During code expansion
2164 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2165 -- at an appropriate place in the tree to get elaborated at the right
2166 -- time. For if expressions, we have to be sure that the actions for
2167 -- for the Then branch are only elaborated if the condition is True.
2168 -- The Then_Actions field is used as a temporary parking place for
2169 -- these actions. The final tree is always rewritten to eliminate the
2170 -- need for this field, so in the tree passed to Gigi, this field is
2171 -- always set to No_List.
2173 -- Treat_Fixed_As_Integer (Flag14-Sem)
2174 -- This flag appears in operator nodes for divide, multiply, mod and rem
2175 -- on fixed-point operands. It indicates that the operands are to be
2176 -- treated as integer values, ignoring small values. This flag is only
2177 -- set as a result of expansion of fixed-point operations. Typically a
2178 -- fixed-point multiplication in the source generates subsidiary
2179 -- multiplication and division operations that work with the underlying
2180 -- integer values and have this flag set. Note that this flag is not
2181 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2182 -- in these cases it is always the case that fixed is treated as integer.
2183 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2184 -- leave such nodes alone, and whoever makes them must set the correct
2185 -- Etype value.
2187 -- TSS_Elist (Elist3-Sem)
2188 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2189 -- entries for each TSS (type support subprogram) associated with the
2190 -- frozen type. The elements of the list are the entities for the
2191 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2192 -- if there are no type support subprograms for the type or if the freeze
2193 -- node is not for a type.
2195 -- Uneval_Old_Accept (Flag7-Sem)
2196 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2197 -- (accept) at the point where the pragma is encountered (including the
2198 -- case of a pragma generated from an aspect specification). It is this
2199 -- setting that is relevant, rather than the setting at the point where
2200 -- a contract is finally analyzed after the delay till the freeze point.
2202 -- Uneval_Old_Warn (Flag18-Sem)
2203 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2204 -- (warn) at the point where the pragma is encountered (including the
2205 -- case of a pragma generated from an aspect specification). It is this
2206 -- setting that is relevant, rather than the setting at the point where
2207 -- a contract is finally analyzed after the delay till the freeze point.
2209 -- Unreferenced_In_Spec (Flag7-Sem)
2210 -- Present in N_With_Clause nodes. Set if the with clause is on the
2211 -- package or subprogram spec where the main unit is the corresponding
2212 -- body, and is not referenced by the spec (it may still be referenced by
2213 -- the body, so this flag is used to generate the proper message (see
2214 -- Sem_Util.Check_Unused_Withs for details)
2216 -- Uninitialized_Variable (Node3-Sem)
2217 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2218 -- Extension_Declarations. Indicates that a variable in a generic unit
2219 -- whose type is a formal private or derived type is read without being
2220 -- initialized. Used to warn if the corresponding actual type is not
2221 -- a fully initialized type.
2223 -- Used_Operations (Elist5-Sem)
2224 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2225 -- are made potentially use-visible by the clause. Simplifies processing
2226 -- on exit from the scope of the use_type_clause, in particular in the
2227 -- case of Use_All_Type, when those operations several scopes.
2229 -- Was_Expression_Function (Flag18-Sem)
2230 -- Present in N_Subprogram_Body. True if the original source had an
2231 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2232 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2233 -- recreate the expression function (for the instance body) when the
2234 -- completion of a generic function declaration is an expression
2235 -- function.
2237 -- Was_Originally_Stub (Flag13-Sem)
2238 -- This flag is set in the node for a proper body that replaces stub.
2239 -- During the analysis procedure, stubs in some situations get rewritten
2240 -- by the corresponding bodies, and we set this flag to remember that
2241 -- this happened. Note that it is not good enough to rely on the use of
2242 -- Original_Node here because of the case of nested instantiations where
2243 -- the substituted node can be copied.
2245 -- Withed_Body (Node1-Sem)
2246 -- Present in N_With_Clause nodes. Set if the unit in whose context
2247 -- the with_clause appears instantiates a generic contained in the
2248 -- library unit of the with_clause and as a result loads its body.
2249 -- Used for a more precise unit traversal for CodePeer.
2251 --------------------------------------------------
2252 -- Note on Use of End_Label and End_Span Fields --
2253 --------------------------------------------------
2255 -- Several constructs have end lines:
2257 -- Loop Statement end loop [loop_IDENTIFIER];
2258 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2259 -- Task Definition end [task_IDENTIFIER]
2260 -- Protected Definition end [protected_IDENTIFIER]
2261 -- Protected Body end [protected_IDENTIFIER]
2263 -- Block Statement end [block_IDENTIFIER];
2264 -- Subprogram Body end [DESIGNATOR];
2265 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2266 -- Task Body end [task_IDENTIFIER];
2267 -- Accept Statement end [entry_IDENTIFIER]];
2268 -- Entry Body end [entry_IDENTIFIER];
2270 -- If Statement end if;
2271 -- Case Statement end case;
2273 -- Record Definition end record;
2274 -- Enumeration Definition );
2276 -- The End_Label and End_Span fields are used to mark the locations of
2277 -- these lines, and also keep track of the label in the case where a label
2278 -- is present.
2280 -- For the first group above, the End_Label field of the corresponding node
2281 -- is used to point to the label identifier. In the case where there is no
2282 -- label in the source, the parser supplies a dummy identifier (with
2283 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2284 -- marks the location of the token following the END token.
2286 -- For the second group, the use of End_Label is similar, but the End_Label
2287 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2288 -- simply because in some cases there is no room in the parent node.
2290 -- For the third group, there is never any label, and instead of using
2291 -- End_Label, we use the End_Span field which gives the location of the
2292 -- token following END, relative to the starting Sloc of the construct,
2293 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2294 -- following the End_Label.
2296 -- The record definition case is handled specially, we treat it as though
2297 -- it required an optional label which is never present, and so the parser
2298 -- always builds a dummy identifier with Comes From Source set False. The
2299 -- reason we do this, rather than using End_Span in this case, is that we
2300 -- want to generate a cross-ref entry for the end of a record, since it
2301 -- represents a scope for name declaration purposes.
2303 -- The enumeration definition case is handled in an exactly similar manner,
2304 -- building a dummy identifier to get a cross-reference.
2306 -- Note: the reason we store the difference as a Uint, instead of storing
2307 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2308 -- distinguished from other types of values, and we count on all general
2309 -- use fields being self describing. To make things easier for clients,
2310 -- note that we provide function End_Location, and procedure
2311 -- Set_End_Location to allow access to the logical value (which is the
2312 -- Source_Ptr value for the end token).
2314 ---------------------
2315 -- Syntactic Nodes --
2316 ---------------------
2318 ---------------------
2319 -- 2.3 Identifier --
2320 ---------------------
2322 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2323 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2325 -- An IDENTIFIER shall not be a reserved word
2327 -- In the Ada grammar identifiers are the bottom level tokens which have
2328 -- very few semantics. Actual program identifiers are direct names. If
2329 -- we were being 100% honest with the grammar, then we would have a node
2330 -- called N_Direct_Name which would point to an identifier. However,
2331 -- that's too many extra nodes, so we just use the N_Identifier node
2332 -- directly as a direct name, and it contains the expression fields and
2333 -- Entity field that correspond to its use as a direct name. In those
2334 -- few cases where identifiers appear in contexts where they are not
2335 -- direct names (pragmas, pragma argument associations, attribute
2336 -- references and attribute definition clauses), the Chars field of the
2337 -- node contains the Name_Id for the identifier name.
2339 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2340 -- cases. First, an incorrect use of a reserved word as an identifier is
2341 -- diagnosed and then treated as a normal identifier. Second, an
2342 -- attribute designator of the form of a reserved word (access, delta,
2343 -- digits, range) is treated as an identifier.
2345 -- Note: The set of letters that is permitted in an identifier depends
2346 -- on the character set in use. See package Csets for full details.
2348 -- N_Identifier
2349 -- Sloc points to identifier
2350 -- Chars (Name1) contains the Name_Id for the identifier
2351 -- Entity (Node4-Sem)
2352 -- Associated_Node (Node4-Sem)
2353 -- Original_Discriminant (Node2-Sem)
2354 -- Redundant_Use (Flag13-Sem)
2355 -- Atomic_Sync_Required (Flag14-Sem)
2356 -- Has_Private_View (Flag11-Sem) (set in generic units)
2357 -- plus fields for expression
2359 --------------------------
2360 -- 2.4 Numeric Literal --
2361 --------------------------
2363 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2365 ----------------------------
2366 -- 2.4.1 Decimal Literal --
2367 ----------------------------
2369 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2371 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2373 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2375 -- Decimal literals appear in the tree as either integer literal nodes
2376 -- or real literal nodes, depending on whether a period is present.
2378 -- Note: literal nodes appear as a result of direct use of literals
2379 -- in the source program, and also as the result of evaluating
2380 -- expressions at compile time. In the latter case, it is possible
2381 -- to construct real literals that have no syntactic representation
2382 -- using the standard literal format. Such literals are listed by
2383 -- Sprint using the notation [numerator / denominator].
2385 -- Note: the value of an integer literal node created by the front end
2386 -- is never outside the range of values of the base type. However, it
2387 -- can be the case that the created value is outside the range of the
2388 -- particular subtype. This happens in the case of integer overflows
2389 -- with checks suppressed.
2391 -- N_Integer_Literal
2392 -- Sloc points to literal
2393 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2394 -- has been constant-folded into its literal value.
2395 -- Intval (Uint3) contains integer value of literal
2396 -- plus fields for expression
2397 -- Print_In_Hex (Flag13-Sem)
2399 -- N_Real_Literal
2400 -- Sloc points to literal
2401 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2402 -- has been constant-folded into its literal value.
2403 -- Realval (Ureal3) contains real value of literal
2404 -- Corresponding_Integer_Value (Uint4-Sem)
2405 -- Is_Machine_Number (Flag11-Sem)
2406 -- plus fields for expression
2408 --------------------------
2409 -- 2.4.2 Based Literal --
2410 --------------------------
2412 -- BASED_LITERAL ::=
2413 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2415 -- BASE ::= NUMERAL
2417 -- BASED_NUMERAL ::=
2418 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2420 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2422 -- Based literals appear in the tree as either integer literal nodes
2423 -- or real literal nodes, depending on whether a period is present.
2425 ----------------------------
2426 -- 2.5 Character Literal --
2427 ----------------------------
2429 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2431 -- N_Character_Literal
2432 -- Sloc points to literal
2433 -- Chars (Name1) contains the Name_Id for the identifier
2434 -- Char_Literal_Value (Uint2) contains the literal value
2435 -- Entity (Node4-Sem)
2436 -- Associated_Node (Node4-Sem)
2437 -- Has_Private_View (Flag11-Sem) set in generic units.
2438 -- plus fields for expression
2440 -- Note: the Entity field will be missing (set to Empty) for character
2441 -- literals whose type is Standard.Wide_Character or Standard.Character
2442 -- or a type derived from one of these two. In this case the character
2443 -- literal stands for its own coding. The reason we take this irregular
2444 -- short cut is to avoid the need to build lots of junk defining
2445 -- character literal nodes.
2447 -------------------------
2448 -- 2.6 String Literal --
2449 -------------------------
2451 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2453 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2454 -- single GRAPHIC_CHARACTER other than a quotation mark.
2456 -- Is_Folded_In_Parser is True if the parser created this literal by
2457 -- folding a sequence of "&" operators. For example, if the source code
2458 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2459 -- is set. This flag is needed because the parser doesn't know about
2460 -- visibility, so the folded result might be wrong, and semantic
2461 -- analysis needs to check for that.
2463 -- N_String_Literal
2464 -- Sloc points to literal
2465 -- Strval (Str3) contains Id of string value
2466 -- Has_Wide_Character (Flag11-Sem)
2467 -- Has_Wide_Wide_Character (Flag13-Sem)
2468 -- Is_Folded_In_Parser (Flag4)
2469 -- plus fields for expression
2471 ------------------
2472 -- 2.7 Comment --
2473 ------------------
2475 -- A COMMENT starts with two adjacent hyphens and extends up to the
2476 -- end of the line. A COMMENT may appear on any line of a program.
2478 -- Comments are skipped by the scanner and do not appear in the tree.
2479 -- It is possible to reconstruct the position of comments with respect
2480 -- to the elements of the tree by using the source position (Sloc)
2481 -- pointers that appear in every tree node.
2483 -----------------
2484 -- 2.8 Pragma --
2485 -----------------
2487 -- PRAGMA ::= pragma IDENTIFIER
2488 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2490 -- Note that a pragma may appear in the tree anywhere a declaration
2491 -- or a statement may appear, as well as in some other situations
2492 -- which are explicitly documented.
2494 -- N_Pragma
2495 -- Sloc points to PRAGMA
2496 -- Next_Pragma (Node1-Sem)
2497 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2498 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2499 -- Pragma_Identifier (Node4)
2500 -- Next_Rep_Item (Node5-Sem)
2501 -- Class_Present (Flag6) set if from Aspect with 'Class
2502 -- From_Aspect_Specification (Flag13-Sem)
2503 -- Import_Interface_Present (Flag16-Sem)
2504 -- Is_Analyzed_Pragma (Flag5-Sem)
2505 -- Is_Checked (Flag11-Sem)
2506 -- Is_Delayed_Aspect (Flag14-Sem)
2507 -- Is_Disabled (Flag15-Sem)
2508 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2509 -- Is_Ghost_Pragma (Flag3-Sem)
2510 -- Is_Ignored (Flag9-Sem)
2511 -- Is_Inherited_Pragma (Flag4-Sem)
2512 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2513 -- Uneval_Old_Accept (Flag7-Sem)
2514 -- Uneval_Old_Warn (Flag18-Sem)
2516 -- Note: we should have a section on what pragmas are passed on to
2517 -- the back end to be processed. This section should note that pragma
2518 -- Psect_Object is always converted to Common_Object, but there are
2519 -- undoubtedly many other similar notes required ???
2521 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2522 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2524 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2525 -- aspect name, as does the Pragma_Identifier. In this case if the
2526 -- pragma has a local name argument (such as pragma Inline), it is
2527 -- resolved to point to the specific entity affected by the pragma.
2529 --------------------------------------
2530 -- 2.8 Pragma Argument Association --
2531 --------------------------------------
2533 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2534 -- [pragma_argument_IDENTIFIER =>] NAME
2535 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2537 -- In Ada 2012, there are two more possibilities:
2539 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2540 -- [pragma_argument_ASPECT_MARK =>] NAME
2541 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2543 -- where the interesting allowed cases (which do not fit the syntax of
2544 -- the first alternative above) are
2546 -- ASPECT_MARK => Pre'Class |
2547 -- Post'Class |
2548 -- Type_Invariant'Class |
2549 -- Invariant'Class
2551 -- We allow this special usage in all Ada modes, but it would be a
2552 -- pain to allow these aspects to pervade the pragma syntax, and the
2553 -- representation of pragma nodes internally. So what we do is to
2554 -- replace these ASPECT_MARK forms with identifiers whose name is one
2555 -- of the special internal names _Pre, _Post or _Type_Invariant.
2557 -- We do a similar replacement of these Aspect_Mark forms in the
2558 -- Expression of a pragma argument association for the cases of
2559 -- the first arguments of any Check pragmas and Check_Policy pragmas
2561 -- N_Pragma_Argument_Association
2562 -- Sloc points to first token in association
2563 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2564 -- Expression (Node3)
2566 ------------------------
2567 -- 2.9 Reserved Word --
2568 ------------------------
2570 -- Reserved words are parsed by the scanner, and returned as the
2571 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2573 ----------------------------
2574 -- 3.1 Basic Declaration --
2575 ----------------------------
2577 -- BASIC_DECLARATION ::=
2578 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2579 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2580 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2581 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2582 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2583 -- | GENERIC_INSTANTIATION
2585 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2586 -- see further description in section on semantic nodes.
2588 -- Also, in the tree that is constructed, a pragma may appear
2589 -- anywhere that a declaration may appear.
2591 ------------------------------
2592 -- 3.1 Defining Identifier --
2593 ------------------------------
2595 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2597 -- A defining identifier is an entity, which has additional fields
2598 -- depending on the setting of the Ekind field. These additional
2599 -- fields are defined (and access subprograms declared) in package
2600 -- Einfo.
2602 -- Note: N_Defining_Identifier is an extended node whose fields are
2603 -- deliberate layed out to match the layout of fields in an ordinary
2604 -- N_Identifier node allowing for easy alteration of an identifier
2605 -- node into a defining identifier node. For details, see procedure
2606 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2608 -- N_Defining_Identifier
2609 -- Sloc points to identifier
2610 -- Chars (Name1) contains the Name_Id for the identifier
2611 -- Next_Entity (Node2-Sem)
2612 -- Scope (Node3-Sem)
2613 -- Etype (Node5-Sem)
2615 -----------------------------
2616 -- 3.2.1 Type Declaration --
2617 -----------------------------
2619 -- TYPE_DECLARATION ::=
2620 -- FULL_TYPE_DECLARATION
2621 -- | INCOMPLETE_TYPE_DECLARATION
2622 -- | PRIVATE_TYPE_DECLARATION
2623 -- | PRIVATE_EXTENSION_DECLARATION
2625 ----------------------------------
2626 -- 3.2.1 Full Type Declaration --
2627 ----------------------------------
2629 -- FULL_TYPE_DECLARATION ::=
2630 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2631 -- is TYPE_DEFINITION
2632 -- [ASPECT_SPECIFICATIONS];
2633 -- | TASK_TYPE_DECLARATION
2634 -- | PROTECTED_TYPE_DECLARATION
2636 -- The full type declaration node is used only for the first case. The
2637 -- second case (concurrent type declaration), is represented directly
2638 -- by a task type declaration or a protected type declaration.
2640 -- N_Full_Type_Declaration
2641 -- Sloc points to TYPE
2642 -- Defining_Identifier (Node1)
2643 -- Incomplete_View (Node2-Sem)
2644 -- Discriminant_Specifications (List4) (set to No_List if none)
2645 -- Type_Definition (Node3)
2646 -- Discr_Check_Funcs_Built (Flag11-Sem)
2648 ----------------------------
2649 -- 3.2.1 Type Definition --
2650 ----------------------------
2652 -- TYPE_DEFINITION ::=
2653 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2654 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2655 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2656 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2658 --------------------------------
2659 -- 3.2.2 Subtype Declaration --
2660 --------------------------------
2662 -- SUBTYPE_DECLARATION ::=
2663 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2664 -- [ASPECT_SPECIFICATIONS];
2666 -- The subtype indication field is set to Empty for subtypes
2667 -- declared in package Standard (Positive, Natural).
2669 -- N_Subtype_Declaration
2670 -- Sloc points to SUBTYPE
2671 -- Defining_Identifier (Node1)
2672 -- Null_Exclusion_Present (Flag11)
2673 -- Subtype_Indication (Node5)
2674 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2675 -- Exception_Junk (Flag8-Sem)
2676 -- Has_Dynamic_Range_Check (Flag12-Sem)
2678 -------------------------------
2679 -- 3.2.2 Subtype Indication --
2680 -------------------------------
2682 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2684 -- Note: if no constraint is present, the subtype indication appears
2685 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2686 -- node is used only if a constraint is present.
2688 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2689 -- with the null-exclusion part (see AI-231), we had to introduce a new
2690 -- attribute in all the parents of subtype_indication nodes to indicate
2691 -- if the null-exclusion is present.
2693 -- Note: the reason that this node has expression fields is that a
2694 -- subtype indication can appear as an operand of a membership test.
2696 -- N_Subtype_Indication
2697 -- Sloc points to first token of subtype mark
2698 -- Subtype_Mark (Node4)
2699 -- Constraint (Node3)
2700 -- Etype (Node5-Sem)
2701 -- Must_Not_Freeze (Flag8-Sem)
2703 -- Note: Depending on context, the Etype is either the entity of the
2704 -- Subtype_Mark field, or it is an itype constructed to reify the
2705 -- subtype indication. In particular, such itypes are created for a
2706 -- subtype indication that appears in an array type declaration. This
2707 -- simplifies constraint checking in indexed components.
2709 -- For subtype indications that appear in scalar type and subtype
2710 -- declarations, the Etype is the entity of the subtype mark.
2712 -------------------------
2713 -- 3.2.2 Subtype Mark --
2714 -------------------------
2716 -- SUBTYPE_MARK ::= subtype_NAME
2718 -----------------------
2719 -- 3.2.2 Constraint --
2720 -----------------------
2722 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2724 ------------------------------
2725 -- 3.2.2 Scalar Constraint --
2726 ------------------------------
2728 -- SCALAR_CONSTRAINT ::=
2729 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2731 ---------------------------------
2732 -- 3.2.2 Composite Constraint --
2733 ---------------------------------
2735 -- COMPOSITE_CONSTRAINT ::=
2736 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2738 -------------------------------
2739 -- 3.3.1 Object Declaration --
2740 -------------------------------
2742 -- OBJECT_DECLARATION ::=
2743 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2744 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2745 -- [ASPECT_SPECIFICATIONS];
2746 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2747 -- ACCESS_DEFINITION [:= EXPRESSION]
2748 -- [ASPECT_SPECIFICATIONS];
2749 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2750 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2751 -- [ASPECT_SPECIFICATIONS];
2752 -- | SINGLE_TASK_DECLARATION
2753 -- | SINGLE_PROTECTED_DECLARATION
2755 -- Note: aliased is not permitted in Ada 83 mode
2757 -- The N_Object_Declaration node is only for the first three cases.
2758 -- Single task declaration is handled by P_Task (9.1)
2759 -- Single protected declaration is handled by P_protected (9.5)
2761 -- Although the syntax allows multiple identifiers in the list, the
2762 -- semantics is as though successive declarations were given with
2763 -- identical type definition and expression components. To simplify
2764 -- semantic processing, the parser represents a multiple declaration
2765 -- case as a sequence of single declarations, using the More_Ids and
2766 -- Prev_Ids flags to preserve the original source form as described
2767 -- in the section on "Handling of Defining Identifier Lists".
2769 -- The flag Has_Init_Expression is set if an initializing expression
2770 -- is present. Normally it is set if and only if Expression contains
2771 -- a non-empty value, but there is an exception to this. When the
2772 -- initializing expression is an aggregate which requires explicit
2773 -- assignments, the Expression field gets set to Empty, but this flag
2774 -- is still set, so we don't forget we had an initializing expression.
2776 -- Note: if a range check is required for the initialization
2777 -- expression then the Do_Range_Check flag is set in the Expression,
2778 -- with the check being done against the type given by the object
2779 -- definition, which is also the Etype of the defining identifier.
2781 -- Note: the contents of the Expression field must be ignored (i.e.
2782 -- treated as though it were Empty) if No_Initialization is set True.
2784 -- Note: the back end places some restrictions on the form of the
2785 -- Expression field. If the object being declared is Atomic, then
2786 -- the Expression may not have the form of an aggregate (since this
2787 -- might cause the back end to generate separate assignments). In this
2788 -- case the front end must generate an extra temporary and initialize
2789 -- this temporary as required (the temporary itself is not atomic).
2791 -- Note: there is not node kind for object definition. Instead, the
2792 -- corresponding field holds a subtype indication, an array type
2793 -- definition, or (Ada 2005, AI-406) an access definition.
2795 -- N_Object_Declaration
2796 -- Sloc points to first identifier
2797 -- Defining_Identifier (Node1)
2798 -- Aliased_Present (Flag4)
2799 -- Constant_Present (Flag17) set if CONSTANT appears
2800 -- Null_Exclusion_Present (Flag11)
2801 -- Object_Definition (Node4) subtype indic./array type def./access def.
2802 -- Expression (Node3) (set to Empty if not present)
2803 -- Handler_List_Entry (Node2-Sem)
2804 -- Corresponding_Generic_Association (Node5-Sem)
2805 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2806 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2807 -- No_Initialization (Flag13-Sem)
2808 -- Assignment_OK (Flag15-Sem)
2809 -- Exception_Junk (Flag8-Sem)
2810 -- Is_Subprogram_Descriptor (Flag16-Sem)
2811 -- Has_Init_Expression (Flag14)
2812 -- Suppress_Assignment_Checks (Flag18-Sem)
2814 -------------------------------------
2815 -- 3.3.1 Defining Identifier List --
2816 -------------------------------------
2818 -- DEFINING_IDENTIFIER_LIST ::=
2819 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2821 -------------------------------
2822 -- 3.3.2 Number Declaration --
2823 -------------------------------
2825 -- NUMBER_DECLARATION ::=
2826 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2828 -- Although the syntax allows multiple identifiers in the list, the
2829 -- semantics is as though successive declarations were given with
2830 -- identical expressions. To simplify semantic processing, the parser
2831 -- represents a multiple declaration case as a sequence of single
2832 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2833 -- the original source form as described in the section on "Handling
2834 -- of Defining Identifier Lists".
2836 -- N_Number_Declaration
2837 -- Sloc points to first identifier
2838 -- Defining_Identifier (Node1)
2839 -- Expression (Node3)
2840 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2841 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2843 ----------------------------------
2844 -- 3.4 Derived Type Definition --
2845 ----------------------------------
2847 -- DERIVED_TYPE_DEFINITION ::=
2848 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2849 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2851 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2852 -- in Ada 83 mode
2854 -- Note: a record extension part is required if ABSTRACT is present
2856 -- N_Derived_Type_Definition
2857 -- Sloc points to NEW
2858 -- Abstract_Present (Flag4)
2859 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2860 -- Subtype_Indication (Node5)
2861 -- Record_Extension_Part (Node3) (set to Empty if not present)
2862 -- Limited_Present (Flag17)
2863 -- Task_Present (Flag5) set in task interfaces
2864 -- Protected_Present (Flag6) set in protected interfaces
2865 -- Synchronized_Present (Flag7) set in interfaces
2866 -- Interface_List (List2) (set to No_List if none)
2867 -- Interface_Present (Flag16) set in abstract interfaces
2869 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2870 -- Interface_List, and Interface_Present are used for abstract
2871 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2873 ---------------------------
2874 -- 3.5 Range Constraint --
2875 ---------------------------
2877 -- RANGE_CONSTRAINT ::= range RANGE
2879 -- N_Range_Constraint
2880 -- Sloc points to RANGE
2881 -- Range_Expression (Node4)
2883 ----------------
2884 -- 3.5 Range --
2885 ----------------
2887 -- RANGE ::=
2888 -- RANGE_ATTRIBUTE_REFERENCE
2889 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2891 -- Note: the case of a range given as a range attribute reference
2892 -- appears directly in the tree as an attribute reference.
2894 -- Note: the field name for a reference to a range is Range_Expression
2895 -- rather than Range, because range is a reserved keyword in Ada.
2897 -- Note: the reason that this node has expression fields is that a
2898 -- range can appear as an operand of a membership test. The Etype
2899 -- field is the type of the range (we do NOT construct an implicit
2900 -- subtype to represent the range exactly).
2902 -- N_Range
2903 -- Sloc points to ..
2904 -- Low_Bound (Node1)
2905 -- High_Bound (Node2)
2906 -- Includes_Infinities (Flag11)
2907 -- plus fields for expression
2909 -- Note: if the range appears in a context, such as a subtype
2910 -- declaration, where range checks are required on one or both of
2911 -- the expression fields, then type conversion nodes are inserted
2912 -- to represent the required checks.
2914 ----------------------------------------
2915 -- 3.5.1 Enumeration Type Definition --
2916 ----------------------------------------
2918 -- ENUMERATION_TYPE_DEFINITION ::=
2919 -- (ENUMERATION_LITERAL_SPECIFICATION
2920 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2922 -- Note: the Literals field in the node described below is null for
2923 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2924 -- which special processing handles these types as special cases.
2926 -- N_Enumeration_Type_Definition
2927 -- Sloc points to left parenthesis
2928 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2929 -- End_Label (Node4) (set to Empty if internally generated record)
2931 ----------------------------------------------
2932 -- 3.5.1 Enumeration Literal Specification --
2933 ----------------------------------------------
2935 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2936 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2938 ---------------------------------------
2939 -- 3.5.1 Defining Character Literal --
2940 ---------------------------------------
2942 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2944 -- A defining character literal is an entity, which has additional
2945 -- fields depending on the setting of the Ekind field. These
2946 -- additional fields are defined (and access subprograms declared)
2947 -- in package Einfo.
2949 -- Note: N_Defining_Character_Literal is an extended node whose fields
2950 -- are deliberate layed out to match the layout of fields in an ordinary
2951 -- N_Character_Literal node allowing for easy alteration of a character
2952 -- literal node into a defining character literal node. For details, see
2953 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2955 -- N_Defining_Character_Literal
2956 -- Sloc points to literal
2957 -- Chars (Name1) contains the Name_Id for the identifier
2958 -- Next_Entity (Node2-Sem)
2959 -- Scope (Node3-Sem)
2960 -- Etype (Node5-Sem)
2962 ------------------------------------
2963 -- 3.5.4 Integer Type Definition --
2964 ------------------------------------
2966 -- Note: there is an error in this rule in the latest version of the
2967 -- grammar, so we have retained the old rule pending clarification.
2969 -- INTEGER_TYPE_DEFINITION ::=
2970 -- SIGNED_INTEGER_TYPE_DEFINITION
2971 -- | MODULAR_TYPE_DEFINITION
2973 -------------------------------------------
2974 -- 3.5.4 Signed Integer Type Definition --
2975 -------------------------------------------
2977 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2978 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2980 -- Note: the Low_Bound and High_Bound fields are set to Empty
2981 -- for integer types defined in package Standard.
2983 -- N_Signed_Integer_Type_Definition
2984 -- Sloc points to RANGE
2985 -- Low_Bound (Node1)
2986 -- High_Bound (Node2)
2988 ------------------------------------
2989 -- 3.5.4 Modular Type Definition --
2990 ------------------------------------
2992 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2994 -- N_Modular_Type_Definition
2995 -- Sloc points to MOD
2996 -- Expression (Node3)
2998 ---------------------------------
2999 -- 3.5.6 Real Type Definition --
3000 ---------------------------------
3002 -- REAL_TYPE_DEFINITION ::=
3003 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3005 --------------------------------------
3006 -- 3.5.7 Floating Point Definition --
3007 --------------------------------------
3009 -- FLOATING_POINT_DEFINITION ::=
3010 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3012 -- Note: The Digits_Expression and Real_Range_Specifications fields
3013 -- are set to Empty for floating-point types declared in Standard.
3015 -- N_Floating_Point_Definition
3016 -- Sloc points to DIGITS
3017 -- Digits_Expression (Node2)
3018 -- Real_Range_Specification (Node4) (set to Empty if not present)
3020 -------------------------------------
3021 -- 3.5.7 Real Range Specification --
3022 -------------------------------------
3024 -- REAL_RANGE_SPECIFICATION ::=
3025 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3027 -- N_Real_Range_Specification
3028 -- Sloc points to RANGE
3029 -- Low_Bound (Node1)
3030 -- High_Bound (Node2)
3032 -----------------------------------
3033 -- 3.5.9 Fixed Point Definition --
3034 -----------------------------------
3036 -- FIXED_POINT_DEFINITION ::=
3037 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3039 --------------------------------------------
3040 -- 3.5.9 Ordinary Fixed Point Definition --
3041 --------------------------------------------
3043 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3044 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3046 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3048 -- N_Ordinary_Fixed_Point_Definition
3049 -- Sloc points to DELTA
3050 -- Delta_Expression (Node3)
3051 -- Real_Range_Specification (Node4)
3053 -------------------------------------------
3054 -- 3.5.9 Decimal Fixed Point Definition --
3055 -------------------------------------------
3057 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3058 -- delta static_EXPRESSION
3059 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3061 -- Note: decimal types are not permitted in Ada 83 mode
3063 -- N_Decimal_Fixed_Point_Definition
3064 -- Sloc points to DELTA
3065 -- Delta_Expression (Node3)
3066 -- Digits_Expression (Node2)
3067 -- Real_Range_Specification (Node4) (set to Empty if not present)
3069 ------------------------------
3070 -- 3.5.9 Digits Constraint --
3071 ------------------------------
3073 -- DIGITS_CONSTRAINT ::=
3074 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3076 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3077 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3079 -- N_Digits_Constraint
3080 -- Sloc points to DIGITS
3081 -- Digits_Expression (Node2)
3082 -- Range_Constraint (Node4) (set to Empty if not present)
3084 --------------------------------
3085 -- 3.6 Array Type Definition --
3086 --------------------------------
3088 -- ARRAY_TYPE_DEFINITION ::=
3089 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3091 -----------------------------------------
3092 -- 3.6 Unconstrained Array Definition --
3093 -----------------------------------------
3095 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3096 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3097 -- COMPONENT_DEFINITION
3099 -- Note: dimensionality of array is indicated by number of entries in
3100 -- the Subtype_Marks list, which has one entry for each dimension.
3102 -- N_Unconstrained_Array_Definition
3103 -- Sloc points to ARRAY
3104 -- Subtype_Marks (List2)
3105 -- Component_Definition (Node4)
3107 -----------------------------------
3108 -- 3.6 Index Subtype Definition --
3109 -----------------------------------
3111 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3113 -- There is no explicit node in the tree for an index subtype
3114 -- definition since the N_Unconstrained_Array_Definition node
3115 -- incorporates the type marks which appear in this context.
3117 ---------------------------------------
3118 -- 3.6 Constrained Array Definition --
3119 ---------------------------------------
3121 -- CONSTRAINED_ARRAY_DEFINITION ::=
3122 -- array (DISCRETE_SUBTYPE_DEFINITION
3123 -- {, DISCRETE_SUBTYPE_DEFINITION})
3124 -- of COMPONENT_DEFINITION
3126 -- Note: dimensionality of array is indicated by number of entries
3127 -- in the Discrete_Subtype_Definitions list, which has one entry
3128 -- for each dimension.
3130 -- N_Constrained_Array_Definition
3131 -- Sloc points to ARRAY
3132 -- Discrete_Subtype_Definitions (List2)
3133 -- Component_Definition (Node4)
3135 -- Note: although the language allows the full syntax for discrete
3136 -- subtype definitions (i.e. a discrete subtype indication or a range),
3137 -- in the generated tree, we always rewrite these as N_Range nodes.
3139 --------------------------------------
3140 -- 3.6 Discrete Subtype Definition --
3141 --------------------------------------
3143 -- DISCRETE_SUBTYPE_DEFINITION ::=
3144 -- discrete_SUBTYPE_INDICATION | RANGE
3146 -------------------------------
3147 -- 3.6 Component Definition --
3148 -------------------------------
3150 -- COMPONENT_DEFINITION ::=
3151 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3153 -- Note: although the syntax does not permit a component definition to
3154 -- be an anonymous array (and the parser will diagnose such an attempt
3155 -- with an appropriate message), it is possible for anonymous arrays
3156 -- to appear as component definitions. The semantics and back end handle
3157 -- this case properly, and the expander in fact generates such cases.
3158 -- Access_Definition is an optional field that gives support to
3159 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3160 -- Subtype_Indication field or else the Access_Definition field.
3162 -- N_Component_Definition
3163 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3164 -- Aliased_Present (Flag4)
3165 -- Null_Exclusion_Present (Flag11)
3166 -- Subtype_Indication (Node5) (set to Empty if not present)
3167 -- Access_Definition (Node3) (set to Empty if not present)
3169 -----------------------------
3170 -- 3.6.1 Index Constraint --
3171 -----------------------------
3173 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3175 -- It is not in general possible to distinguish between discriminant
3176 -- constraints and index constraints at parse time, since a simple
3177 -- name could be either the subtype mark of a discrete range, or an
3178 -- expression in a discriminant association with no name. Either
3179 -- entry appears simply as the name, and the semantic parse must
3180 -- distinguish between the two cases. Thus we use a common tree
3181 -- node format for both of these constraint types.
3183 -- See Discriminant_Constraint for format of node
3185 ---------------------------
3186 -- 3.6.1 Discrete Range --
3187 ---------------------------
3189 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3191 ----------------------------
3192 -- 3.7 Discriminant Part --
3193 ----------------------------
3195 -- DISCRIMINANT_PART ::=
3196 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3198 ------------------------------------
3199 -- 3.7 Unknown Discriminant Part --
3200 ------------------------------------
3202 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3204 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3206 -- There is no explicit node in the tree for an unknown discriminant
3207 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3208 -- parent node.
3210 ----------------------------------
3211 -- 3.7 Known Discriminant Part --
3212 ----------------------------------
3214 -- KNOWN_DISCRIMINANT_PART ::=
3215 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3217 -------------------------------------
3218 -- 3.7 Discriminant Specification --
3219 -------------------------------------
3221 -- DISCRIMINANT_SPECIFICATION ::=
3222 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3223 -- [:= DEFAULT_EXPRESSION]
3224 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3225 -- [:= DEFAULT_EXPRESSION]
3227 -- Although the syntax allows multiple identifiers in the list, the
3228 -- semantics is as though successive specifications were given with
3229 -- identical type definition and expression components. To simplify
3230 -- semantic processing, the parser represents a multiple declaration
3231 -- case as a sequence of single specifications, using the More_Ids and
3232 -- Prev_Ids flags to preserve the original source form as described
3233 -- in the section on "Handling of Defining Identifier Lists".
3235 -- N_Discriminant_Specification
3236 -- Sloc points to first identifier
3237 -- Defining_Identifier (Node1)
3238 -- Null_Exclusion_Present (Flag11)
3239 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3240 -- Expression (Node3) (set to Empty if no default expression)
3241 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3242 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3244 -----------------------------
3245 -- 3.7 Default Expression --
3246 -----------------------------
3248 -- DEFAULT_EXPRESSION ::= EXPRESSION
3250 ------------------------------------
3251 -- 3.7.1 Discriminant Constraint --
3252 ------------------------------------
3254 -- DISCRIMINANT_CONSTRAINT ::=
3255 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3257 -- It is not in general possible to distinguish between discriminant
3258 -- constraints and index constraints at parse time, since a simple
3259 -- name could be either the subtype mark of a discrete range, or an
3260 -- expression in a discriminant association with no name. Either
3261 -- entry appears simply as the name, and the semantic parse must
3262 -- distinguish between the two cases. Thus we use a common tree
3263 -- node format for both of these constraint types.
3265 -- N_Index_Or_Discriminant_Constraint
3266 -- Sloc points to left paren
3267 -- Constraints (List1) points to list of discrete ranges or
3268 -- discriminant associations
3270 -------------------------------------
3271 -- 3.7.1 Discriminant Association --
3272 -------------------------------------
3274 -- DISCRIMINANT_ASSOCIATION ::=
3275 -- [discriminant_SELECTOR_NAME
3276 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3278 -- Note: a discriminant association that has no selector name list
3279 -- appears directly as an expression in the tree.
3281 -- N_Discriminant_Association
3282 -- Sloc points to first token of discriminant association
3283 -- Selector_Names (List1) (always non-empty, since if no selector
3284 -- names are present, this node is not used, see comment above)
3285 -- Expression (Node3)
3287 ---------------------------------
3288 -- 3.8 Record Type Definition --
3289 ---------------------------------
3291 -- RECORD_TYPE_DEFINITION ::=
3292 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3294 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3296 -- There is no explicit node in the tree for a record type definition.
3297 -- Instead the flags for Tagged_Present and Limited_Present appear in
3298 -- the N_Record_Definition node for a record definition appearing in
3299 -- the context of a record type definition.
3301 ----------------------------
3302 -- 3.8 Record Definition --
3303 ----------------------------
3305 -- RECORD_DEFINITION ::=
3306 -- record
3307 -- COMPONENT_LIST
3308 -- end record
3309 -- | null record
3311 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3312 -- flags appear only for a record definition appearing in a record
3313 -- type definition.
3315 -- Note: the NULL RECORD case is not permitted in Ada 83
3317 -- N_Record_Definition
3318 -- Sloc points to RECORD or NULL
3319 -- End_Label (Node4) (set to Empty if internally generated record)
3320 -- Abstract_Present (Flag4)
3321 -- Tagged_Present (Flag15)
3322 -- Limited_Present (Flag17)
3323 -- Component_List (Node1) empty in null record case
3324 -- Null_Present (Flag13) set in null record case
3325 -- Task_Present (Flag5) set in task interfaces
3326 -- Protected_Present (Flag6) set in protected interfaces
3327 -- Synchronized_Present (Flag7) set in interfaces
3328 -- Interface_Present (Flag16) set in abstract interfaces
3329 -- Interface_List (List2) (set to No_List if none)
3331 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3332 -- Interface_List and Interface_Present are used for abstract
3333 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3335 -------------------------
3336 -- 3.8 Component List --
3337 -------------------------
3339 -- COMPONENT_LIST ::=
3340 -- COMPONENT_ITEM {COMPONENT_ITEM}
3341 -- | {COMPONENT_ITEM} VARIANT_PART
3342 -- | null;
3344 -- N_Component_List
3345 -- Sloc points to first token of component list
3346 -- Component_Items (List3)
3347 -- Variant_Part (Node4) (set to Empty if no variant part)
3348 -- Null_Present (Flag13)
3350 -------------------------
3351 -- 3.8 Component Item --
3352 -------------------------
3354 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3356 -- Note: A component item can also be a pragma, and in the tree
3357 -- that is obtained after semantic processing, a component item
3358 -- can be an N_Null node resulting from a non-recognized pragma.
3360 --------------------------------
3361 -- 3.8 Component Declaration --
3362 --------------------------------
3364 -- COMPONENT_DECLARATION ::=
3365 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3366 -- [:= DEFAULT_EXPRESSION]
3367 -- [ASPECT_SPECIFICATIONS];
3369 -- Note: although the syntax does not permit a component definition to
3370 -- be an anonymous array (and the parser will diagnose such an attempt
3371 -- with an appropriate message), it is possible for anonymous arrays
3372 -- to appear as component definitions. The semantics and back end handle
3373 -- this case properly, and the expander in fact generates such cases.
3375 -- Although the syntax allows multiple identifiers in the list, the
3376 -- semantics is as though successive declarations were given with the
3377 -- same component definition and expression components. To simplify
3378 -- semantic processing, the parser represents a multiple declaration
3379 -- case as a sequence of single declarations, using the More_Ids and
3380 -- Prev_Ids flags to preserve the original source form as described
3381 -- in the section on "Handling of Defining Identifier Lists".
3383 -- N_Component_Declaration
3384 -- Sloc points to first identifier
3385 -- Defining_Identifier (Node1)
3386 -- Component_Definition (Node4)
3387 -- Expression (Node3) (set to Empty if no default expression)
3388 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3389 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3391 -------------------------
3392 -- 3.8.1 Variant Part --
3393 -------------------------
3395 -- VARIANT_PART ::=
3396 -- case discriminant_DIRECT_NAME is
3397 -- VARIANT {VARIANT}
3398 -- end case;
3400 -- Note: the variants list can contain pragmas as well as variants.
3401 -- In a properly formed program there is at least one variant.
3403 -- N_Variant_Part
3404 -- Sloc points to CASE
3405 -- Name (Node2)
3406 -- Variants (List1)
3408 --------------------
3409 -- 3.8.1 Variant --
3410 --------------------
3412 -- VARIANT ::=
3413 -- when DISCRETE_CHOICE_LIST =>
3414 -- COMPONENT_LIST
3416 -- N_Variant
3417 -- Sloc points to WHEN
3418 -- Discrete_Choices (List4)
3419 -- Component_List (Node1)
3420 -- Enclosing_Variant (Node2-Sem)
3421 -- Present_Expr (Uint3-Sem)
3422 -- Dcheck_Function (Node5-Sem)
3423 -- Has_SP_Choice (Flag15-Sem)
3425 -- Note: in the list of Discrete_Choices, the tree passed to the back
3426 -- end does not have choice entries corresponding to names of statically
3427 -- predicated subtypes. Such entries are always expanded out to the list
3428 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3429 -- mode also has this expansion, but done with a proper Rewrite call on
3430 -- the N_Variant node so that ASIS can properly retrieve the original.
3432 ---------------------------------
3433 -- 3.8.1 Discrete Choice List --
3434 ---------------------------------
3436 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3438 ----------------------------
3439 -- 3.8.1 Discrete Choice --
3440 ----------------------------
3442 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3444 -- Note: in Ada 83 mode, the expression must be a simple expression
3446 -- The only choice that appears explicitly is the OTHERS choice, as
3447 -- defined here. Other cases of discrete choice (expression and
3448 -- discrete range) appear directly. This production is also used
3449 -- for the OTHERS possibility of an exception choice.
3451 -- Note: in accordance with the syntax, the parser does not check that
3452 -- OTHERS appears at the end on its own in a choice list context. This
3453 -- is a semantic check.
3455 -- N_Others_Choice
3456 -- Sloc points to OTHERS
3457 -- Others_Discrete_Choices (List1-Sem)
3458 -- All_Others (Flag11-Sem)
3460 ----------------------------------
3461 -- 3.9.1 Record Extension Part --
3462 ----------------------------------
3464 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3466 -- Note: record extension parts are not permitted in Ada 83 mode
3468 --------------------------------------
3469 -- 3.9.4 Interface Type Definition --
3470 --------------------------------------
3472 -- INTERFACE_TYPE_DEFINITION ::=
3473 -- [limited | task | protected | synchronized]
3474 -- interface [interface_list]
3476 -- Note: Interfaces are implemented with N_Record_Definition and
3477 -- N_Derived_Type_Definition nodes because most of the support
3478 -- for the analysis of abstract types has been reused to
3479 -- analyze abstract interfaces.
3481 ----------------------------------
3482 -- 3.10 Access Type Definition --
3483 ----------------------------------
3485 -- ACCESS_TYPE_DEFINITION ::=
3486 -- ACCESS_TO_OBJECT_DEFINITION
3487 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3489 --------------------------
3490 -- 3.10 Null Exclusion --
3491 --------------------------
3493 -- NULL_EXCLUSION ::= not null
3495 ---------------------------------------
3496 -- 3.10 Access To Object Definition --
3497 ---------------------------------------
3499 -- ACCESS_TO_OBJECT_DEFINITION ::=
3500 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3501 -- SUBTYPE_INDICATION
3503 -- N_Access_To_Object_Definition
3504 -- Sloc points to ACCESS
3505 -- All_Present (Flag15)
3506 -- Null_Exclusion_Present (Flag11)
3507 -- Null_Excluding_Subtype (Flag16)
3508 -- Subtype_Indication (Node5)
3509 -- Constant_Present (Flag17)
3511 -----------------------------------
3512 -- 3.10 General Access Modifier --
3513 -----------------------------------
3515 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3517 -- Note: general access modifiers are not permitted in Ada 83 mode
3519 -- There is no explicit node in the tree for general access modifier.
3520 -- Instead the All_Present or Constant_Present flags are set in the
3521 -- parent node.
3523 -------------------------------------------
3524 -- 3.10 Access To Subprogram Definition --
3525 -------------------------------------------
3527 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3528 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3529 -- | [NULL_EXCLUSION] access [protected] function
3530 -- PARAMETER_AND_RESULT_PROFILE
3532 -- Note: access to subprograms are not permitted in Ada 83 mode
3534 -- N_Access_Function_Definition
3535 -- Sloc points to ACCESS
3536 -- Null_Exclusion_Present (Flag11)
3537 -- Null_Exclusion_In_Return_Present (Flag14)
3538 -- Protected_Present (Flag6)
3539 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3540 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3542 -- N_Access_Procedure_Definition
3543 -- Sloc points to ACCESS
3544 -- Null_Exclusion_Present (Flag11)
3545 -- Protected_Present (Flag6)
3546 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3548 -----------------------------
3549 -- 3.10 Access Definition --
3550 -----------------------------
3552 -- ACCESS_DEFINITION ::=
3553 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3554 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3556 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3558 -- N_Access_Definition
3559 -- Sloc points to ACCESS
3560 -- Null_Exclusion_Present (Flag11)
3561 -- All_Present (Flag15)
3562 -- Constant_Present (Flag17)
3563 -- Subtype_Mark (Node4)
3564 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3566 -----------------------------------------
3567 -- 3.10.1 Incomplete Type Declaration --
3568 -----------------------------------------
3570 -- INCOMPLETE_TYPE_DECLARATION ::=
3571 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3573 -- N_Incomplete_Type_Declaration
3574 -- Sloc points to TYPE
3575 -- Defining_Identifier (Node1)
3576 -- Discriminant_Specifications (List4) (set to No_List if no
3577 -- discriminant part, or if the discriminant part is an
3578 -- unknown discriminant part)
3579 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3580 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3581 -- Tagged_Present (Flag15)
3583 ----------------------------
3584 -- 3.11 Declarative Part --
3585 ----------------------------
3587 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3589 -- Note: although the parser enforces the syntactic requirement that
3590 -- a declarative part can contain only declarations, the semantic
3591 -- processing may add statements to the list of actions in a
3592 -- declarative part, so the code generator should be prepared
3593 -- to accept a statement in this position.
3595 ----------------------------
3596 -- 3.11 Declarative Item --
3597 ----------------------------
3599 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3601 ----------------------------------
3602 -- 3.11 Basic Declarative Item --
3603 ----------------------------------
3605 -- BASIC_DECLARATIVE_ITEM ::=
3606 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3608 ----------------
3609 -- 3.11 Body --
3610 ----------------
3612 -- BODY ::= PROPER_BODY | BODY_STUB
3614 -----------------------
3615 -- 3.11 Proper Body --
3616 -----------------------
3618 -- PROPER_BODY ::=
3619 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3621 ---------------
3622 -- 4.1 Name --
3623 ---------------
3625 -- NAME ::=
3626 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3627 -- | INDEXED_COMPONENT | SLICE
3628 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3629 -- | TYPE_CONVERSION | FUNCTION_CALL
3630 -- | CHARACTER_LITERAL
3632 ----------------------
3633 -- 4.1 Direct Name --
3634 ----------------------
3636 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3638 -----------------
3639 -- 4.1 Prefix --
3640 -----------------
3642 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3644 -------------------------------
3645 -- 4.1 Explicit Dereference --
3646 -------------------------------
3648 -- EXPLICIT_DEREFERENCE ::= NAME . all
3650 -- N_Explicit_Dereference
3651 -- Sloc points to ALL
3652 -- Prefix (Node3)
3653 -- Actual_Designated_Subtype (Node4-Sem)
3654 -- Atomic_Sync_Required (Flag14-Sem)
3655 -- Has_Dereference_Action (Flag13-Sem)
3656 -- plus fields for expression
3658 -------------------------------
3659 -- 4.1 Implicit Dereference --
3660 -------------------------------
3662 -- IMPLICIT_DEREFERENCE ::= NAME
3664 ------------------------------
3665 -- 4.1.1 Indexed Component --
3666 ------------------------------
3668 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3670 -- Note: the parser may generate this node in some situations where it
3671 -- should be a function call. The semantic pass must correct this
3672 -- misidentification (which is inevitable at the parser level).
3674 -- N_Indexed_Component
3675 -- Sloc contains a copy of the Sloc value of the Prefix
3676 -- Prefix (Node3)
3677 -- Expressions (List1)
3678 -- Generalized_Indexing (Node4-Sem)
3679 -- Atomic_Sync_Required (Flag14-Sem)
3680 -- plus fields for expression
3682 -- Note: if any of the subscripts requires a range check, then the
3683 -- Do_Range_Check flag is set on the corresponding expression, with
3684 -- the index type being determined from the type of the Prefix, which
3685 -- references the array being indexed.
3687 -- Note: in a fully analyzed and expanded indexed component node, and
3688 -- hence in any such node that gigi sees, if the prefix is an access
3689 -- type, then an explicit dereference operation has been inserted.
3691 ------------------
3692 -- 4.1.2 Slice --
3693 ------------------
3695 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3697 -- Note: an implicit subtype is created to describe the resulting
3698 -- type, so that the bounds of this type are the bounds of the slice.
3700 -- N_Slice
3701 -- Sloc points to first token of prefix
3702 -- Prefix (Node3)
3703 -- Discrete_Range (Node4)
3704 -- plus fields for expression
3706 -------------------------------
3707 -- 4.1.3 Selected Component --
3708 -------------------------------
3710 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3712 -- Note: selected components that are semantically expanded names get
3713 -- changed during semantic processing into the separate N_Expanded_Name
3714 -- node. See description of this node in the section on semantic nodes.
3716 -- N_Selected_Component
3717 -- Sloc points to the period
3718 -- Prefix (Node3)
3719 -- Selector_Name (Node2)
3720 -- Associated_Node (Node4-Sem)
3721 -- Do_Discriminant_Check (Flag1-Sem)
3722 -- Is_In_Discriminant_Check (Flag11-Sem)
3723 -- Is_Prefixed_Call (Flag17-Sem)
3724 -- Atomic_Sync_Required (Flag14-Sem)
3725 -- plus fields for expression
3727 --------------------------
3728 -- 4.1.3 Selector Name --
3729 --------------------------
3731 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3733 --------------------------------
3734 -- 4.1.4 Attribute Reference --
3735 --------------------------------
3737 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3739 -- Note: the syntax is quite ambiguous at this point. Consider:
3741 -- A'Length (X) X is part of the attribute designator
3742 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3743 -- A'Class (X) X is the expression of a type conversion
3745 -- It would be possible for the parser to distinguish these cases
3746 -- by looking at the attribute identifier. However, that would mean
3747 -- more work in introducing new implementation defined attributes,
3748 -- and also it would mean that special processing for attributes
3749 -- would be scattered around, instead of being centralized in the
3750 -- semantic routine that handles an N_Attribute_Reference node.
3751 -- Consequently, the parser in all the above cases stores the
3752 -- expression (X in these examples) as a single element list in
3753 -- in the Expressions field of the N_Attribute_Reference node.
3755 -- Similarly, for attributes like Max which take two arguments,
3756 -- we store the two arguments as a two element list in the
3757 -- Expressions field. Of course it is clear at parse time that
3758 -- this case is really a function call with an attribute as the
3759 -- prefix, but it turns out to be convenient to handle the two
3760 -- argument case in a similar manner to the one argument case,
3761 -- and indeed in general the parser will accept any number of
3762 -- expressions in this position and store them as a list in the
3763 -- attribute reference node. This allows for future addition of
3764 -- attributes that take more than two arguments.
3766 -- Note: named associates are not permitted in function calls where
3767 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3768 -- to skip the normal subprogram argument processing.
3770 -- Note: for the attributes whose designators are technically keywords,
3771 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3772 -- the corresponding name, even though no identifier is involved.
3774 -- Note: the generated code may contain stream attributes applied to
3775 -- limited types for which no stream routines exist officially. In such
3776 -- case, the result is to use the stream attribute for the underlying
3777 -- full type, or in the case of a protected type, the components
3778 -- (including any discriminants) are merely streamed in order.
3780 -- See Exp_Attr for a complete description of which attributes are
3781 -- passed onto Gigi, and which are handled entirely by the front end.
3783 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3784 -- a non-standard enumeration type or a nonzero/zero semantics
3785 -- boolean type, so the value is simply the stored representation.
3787 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3788 -- references a subprogram that is a renaming, then the front end must
3789 -- rewrite the attribute to refer directly to the renamed entity.
3791 -- Note: syntactically the prefix of an attribute reference must be a
3792 -- name, and this (somewhat artificial) requirement is enforced by the
3793 -- parser. However, for many attributes, such as 'Valid, it is quite
3794 -- reasonable to apply the attribute to any value, and hence to any
3795 -- expression. Internally in the tree, the prefix is an expression which
3796 -- does not have to be a name, and this is handled fine by the semantic
3797 -- analysis and expansion, and back ends. This arises for the case of
3798 -- attribute references built by the expander (e.g. 'Valid for the case
3799 -- of an implicit validity check).
3801 -- Note: In generated code, the Address and Unrestricted_Access
3802 -- attributes can be applied to any expression, and the meaning is
3803 -- to create an object containing the value (the object is in the
3804 -- current stack frame), and pass the address of this value. If the
3805 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3806 -- is taken must be on a byte (storage unit) boundary, and if it is
3807 -- not (or may not be), then the generated code must create a copy
3808 -- that is byte aligned, and pass the address of this copy.
3810 -- N_Attribute_Reference
3811 -- Sloc points to apostrophe
3812 -- Prefix (Node3) (general expression, see note above)
3813 -- Attribute_Name (Name2) identifier name from attribute designator
3814 -- Expressions (List1) (set to No_List if no associated expressions)
3815 -- Entity (Node4-Sem) used if the attribute yields a type
3816 -- Associated_Node (Node4-Sem)
3817 -- Do_Overflow_Check (Flag17-Sem)
3818 -- Header_Size_Added (Flag11-Sem)
3819 -- Must_Be_Byte_Aligned (Flag14-Sem)
3820 -- Non_Aliased_Prefix (Flag18-Sem)
3821 -- Redundant_Use (Flag13-Sem)
3823 -- plus fields for expression
3825 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3826 -- into equivalent if expressions, properly taking care of side effects.
3828 ---------------------------------
3829 -- 4.1.4 Attribute Designator --
3830 ---------------------------------
3832 -- ATTRIBUTE_DESIGNATOR ::=
3833 -- IDENTIFIER [(static_EXPRESSION)]
3834 -- | access | delta | digits
3836 -- There is no explicit node in the tree for an attribute designator.
3837 -- Instead the Attribute_Name and Expressions fields of the parent
3838 -- node (N_Attribute_Reference node) hold the information.
3840 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3841 -- designator, then they are treated as identifiers internally
3842 -- rather than the keywords of the same name.
3844 --------------------------------------
3845 -- 4.1.4 Range Attribute Reference --
3846 --------------------------------------
3848 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3850 -- A range attribute reference is represented in the tree using the
3851 -- normal N_Attribute_Reference node.
3853 ---------------------------------------
3854 -- 4.1.4 Range Attribute Designator --
3855 ---------------------------------------
3857 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3859 -- A range attribute designator is represented in the tree using the
3860 -- normal N_Attribute_Reference node.
3862 --------------------
3863 -- 4.3 Aggregate --
3864 --------------------
3866 -- AGGREGATE ::=
3867 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3869 -----------------------------
3870 -- 4.3.1 Record Aggregate --
3871 -----------------------------
3873 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3875 -- N_Aggregate
3876 -- Sloc points to left parenthesis
3877 -- Expressions (List1) (set to No_List if none or null record case)
3878 -- Component_Associations (List2) (set to No_List if none)
3879 -- Null_Record_Present (Flag17)
3880 -- Aggregate_Bounds (Node3-Sem)
3881 -- Associated_Node (Node4-Sem)
3882 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3883 -- Expansion_Delayed (Flag11-Sem)
3884 -- Has_Self_Reference (Flag13-Sem)
3885 -- plus fields for expression
3887 -- Note: this structure is used for both record and array aggregates
3888 -- since the two cases are not separable by the parser. The parser
3889 -- makes no attempt to enforce consistency here, so it is up to the
3890 -- semantic phase to make sure that the aggregate is consistent (i.e.
3891 -- that it is not a "half-and-half" case that mixes record and array
3892 -- syntax. In particular, for a record aggregate, the expressions
3893 -- field will be set if there are positional associations.
3895 -- Note: N_Aggregate is not used for all aggregates; in particular,
3896 -- there is a separate node kind for extension aggregates.
3898 -- Note: gigi/gcc can handle array aggregates correctly providing that
3899 -- they are entirely positional, and the array subtype involved has a
3900 -- known at compile time length and is not bit packed, or a convention
3901 -- Fortran array with more than one dimension. If these conditions
3902 -- are not met, then the front end must translate the aggregate into
3903 -- an appropriate set of assignments into a temporary.
3905 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3906 -- of record aggregates, including those for packed, and rep-claused
3907 -- records, and also variant records, providing that there are no
3908 -- variable length fields whose size is not known at compile time,
3909 -- and providing that the aggregate is presented in fully named form.
3911 -- The other situation in which array aggregates and record aggregates
3912 -- cannot be passed to the back end is if assignment to one or more
3913 -- components itself needs expansion, e.g. in the case of an assignment
3914 -- of an object of a controlled type. In such cases, the front end
3915 -- must expand the aggregate to a series of assignments, and apply
3916 -- the required expansion to the individual assignment statements.
3918 ----------------------------------------------
3919 -- 4.3.1 Record Component Association List --
3920 ----------------------------------------------
3922 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3923 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3924 -- | null record
3926 -- There is no explicit node in the tree for a record component
3927 -- association list. Instead the Null_Record_Present flag is set in
3928 -- the parent node for the NULL RECORD case.
3930 ------------------------------------------------------
3931 -- 4.3.1 Record Component Association (also 4.3.3) --
3932 ------------------------------------------------------
3934 -- RECORD_COMPONENT_ASSOCIATION ::=
3935 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3937 -- N_Component_Association
3938 -- Sloc points to first selector name
3939 -- Choices (List1)
3940 -- Loop_Actions (List2-Sem)
3941 -- Expression (Node3) (empty if Box_Present)
3942 -- Box_Present (Flag15)
3943 -- Inherited_Discriminant (Flag13)
3945 -- Note: this structure is used for both record component associations
3946 -- and array component associations, since the two cases aren't always
3947 -- separable by the parser. The choices list may represent either a
3948 -- list of selector names in the record aggregate case, or a list of
3949 -- discrete choices in the array aggregate case or an N_Others_Choice
3950 -- node (which appears as a singleton list). Box_Present gives support
3951 -- to Ada 2005 (AI-287).
3953 ----------------------------------
3954 -- 4.3.1 Component Choice List --
3955 ----------------------------------
3957 -- COMPONENT_CHOICE_LIST ::=
3958 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3959 -- | others
3961 -- The entries of a component choice list appear in the Choices list of
3962 -- the associated N_Component_Association, as either selector names, or
3963 -- as an N_Others_Choice node.
3965 --------------------------------
3966 -- 4.3.2 Extension Aggregate --
3967 --------------------------------
3969 -- EXTENSION_AGGREGATE ::=
3970 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3972 -- Note: extension aggregates are not permitted in Ada 83 mode
3974 -- N_Extension_Aggregate
3975 -- Sloc points to left parenthesis
3976 -- Ancestor_Part (Node3)
3977 -- Associated_Node (Node4-Sem)
3978 -- Expressions (List1) (set to No_List if none or null record case)
3979 -- Component_Associations (List2) (set to No_List if none)
3980 -- Null_Record_Present (Flag17)
3981 -- Expansion_Delayed (Flag11-Sem)
3982 -- Has_Self_Reference (Flag13-Sem)
3983 -- plus fields for expression
3985 --------------------------
3986 -- 4.3.2 Ancestor Part --
3987 --------------------------
3989 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3991 ----------------------------
3992 -- 4.3.3 Array Aggregate --
3993 ----------------------------
3995 -- ARRAY_AGGREGATE ::=
3996 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3998 ---------------------------------------
3999 -- 4.3.3 Positional Array Aggregate --
4000 ---------------------------------------
4002 -- POSITIONAL_ARRAY_AGGREGATE ::=
4003 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4004 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4006 -- See Record_Aggregate (4.3.1) for node structure
4008 ----------------------------------
4009 -- 4.3.3 Named Array Aggregate --
4010 ----------------------------------
4012 -- NAMED_ARRAY_AGGREGATE ::=
4013 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4015 -- See Record_Aggregate (4.3.1) for node structure
4017 ----------------------------------------
4018 -- 4.3.3 Array Component Association --
4019 ----------------------------------------
4021 -- ARRAY_COMPONENT_ASSOCIATION ::=
4022 -- DISCRETE_CHOICE_LIST => EXPRESSION
4024 -- See Record_Component_Association (4.3.1) for node structure
4026 --------------------------------------------------
4027 -- 4.4 Expression/Relation/Term/Factor/Primary --
4028 --------------------------------------------------
4030 -- EXPRESSION ::=
4031 -- RELATION {LOGICAL_OPERATOR RELATION}
4033 -- CHOICE_EXPRESSION ::=
4034 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4036 -- CHOICE_RELATION ::=
4037 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4039 -- RELATION ::=
4040 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4041 -- | RAISE_EXPRESSION
4043 -- MEMBERSHIP_CHOICE_LIST ::=
4044 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4046 -- MEMBERSHIP_CHOICE ::=
4047 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4049 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4051 -- SIMPLE_EXPRESSION ::=
4052 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4054 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4056 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4058 -- No nodes are generated for any of these constructs. Instead, the
4059 -- node for the operator appears directly. When we refer to an
4060 -- expression in this description, we mean any of the possible
4061 -- constituent components of an expression (e.g. identifier is
4062 -- an example of an expression).
4064 -- Note: the above syntax is that Ada 2012 syntax which restricts
4065 -- choice relations to simple expressions to avoid ambiguities in
4066 -- some contexts with set membership notation. It has been decided
4067 -- that in retrospect, the Ada 95 change allowing general expressions
4068 -- in this context was a mistake, so we have reverted to the above
4069 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4070 -- expressions was there in Ada 83 from the start).
4072 ------------------
4073 -- 4.4 Primary --
4074 ------------------
4076 -- PRIMARY ::=
4077 -- NUMERIC_LITERAL | null
4078 -- | STRING_LITERAL | AGGREGATE
4079 -- | NAME | QUALIFIED_EXPRESSION
4080 -- | ALLOCATOR | (EXPRESSION)
4082 -- Usually there is no explicit node in the tree for primary. Instead
4083 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4084 -- exceptions. First, there is an explicit node for a null primary.
4086 -- N_Null
4087 -- Sloc points to NULL
4088 -- plus fields for expression
4090 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4091 -- that the parser keep track of which subexpressions are enclosed
4092 -- in parentheses, and how many levels of parentheses are used. This
4093 -- information is required for optimization purposes, and also for
4094 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4095 -- conform with ((((1)))) in the body).
4097 -- The parentheses are recorded by keeping a Paren_Count field in every
4098 -- subexpression node (it is actually present in all nodes, but only
4099 -- used in subexpression nodes). This count records the number of
4100 -- levels of parentheses. If the number of levels in the source exceeds
4101 -- the maximum accommodated by this count, then the count is simply left
4102 -- at the maximum value. This means that there are some pathological
4103 -- cases of failure to detect conformance failures (e.g. an expression
4104 -- with 500 levels of parens will conform with one with 501 levels),
4105 -- but we do not need to lose sleep over this.
4107 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4108 -- type N_Parenthesized_Expression used to accurately record unlimited
4109 -- numbers of levels of parentheses. However, it turned out to be a
4110 -- real nuisance to have to take into account the possible presence of
4111 -- this node during semantic analysis, since basically parentheses have
4112 -- zero relevance to semantic analysis.
4114 -- Note: the level of parentheses always present in things like
4115 -- aggregates does not count, only the parentheses in the primary
4116 -- (EXPRESSION) affect the setting of the Paren_Count field.
4118 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4119 -- treated as though it were Empty) if No_Initialization is set True.
4121 --------------------------------------
4122 -- 4.5 Short-Circuit Control Forms --
4123 --------------------------------------
4125 -- EXPRESSION ::=
4126 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4128 -- Gigi restriction: For both these control forms, the operand and
4129 -- result types are always Standard.Boolean. The expander inserts the
4130 -- required conversion operations where needed to ensure this is the
4131 -- case.
4133 -- N_And_Then
4134 -- Sloc points to AND of AND THEN
4135 -- Left_Opnd (Node2)
4136 -- Right_Opnd (Node3)
4137 -- Actions (List1-Sem)
4138 -- plus fields for expression
4140 -- N_Or_Else
4141 -- Sloc points to OR of OR ELSE
4142 -- Left_Opnd (Node2)
4143 -- Right_Opnd (Node3)
4144 -- Actions (List1-Sem)
4145 -- plus fields for expression
4147 -- Note: The Actions field is used to hold actions associated with
4148 -- the right hand operand. These have to be treated specially since
4149 -- they are not unconditionally executed. See Insert_Actions for a
4150 -- more detailed description of how these actions are handled.
4152 ---------------------------
4153 -- 4.5 Membership Tests --
4154 ---------------------------
4156 -- RELATION ::=
4157 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4159 -- MEMBERSHIP_CHOICE_LIST ::=
4160 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4162 -- MEMBERSHIP_CHOICE ::=
4163 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4165 -- Note: although the grammar above allows only a range or a subtype
4166 -- mark, the parser in fact will accept any simple expression in place
4167 -- of a subtype mark. This means that the semantic analyzer must be able
4168 -- to deal with, and diagnose a simple expression other than a name for
4169 -- the right operand. This simplifies error recovery in the parser.
4171 -- The Alternatives field below is present only if there is more than
4172 -- one Membership_Choice present (which is legitimate only in Ada 2012
4173 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4174 -- the list of choices. In the tree passed to the back end, Alternatives
4175 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4176 -- expands out the complex set membership case using simple membership
4177 -- and equality operations).
4179 -- Should we rename Alternatives here to Membership_Choices ???
4181 -- N_In
4182 -- Sloc points to IN
4183 -- Left_Opnd (Node2)
4184 -- Right_Opnd (Node3)
4185 -- Alternatives (List4) (set to No_List if only one set alternative)
4186 -- No_Minimize_Eliminate (Flag17)
4187 -- plus fields for expression
4189 -- N_Not_In
4190 -- Sloc points to NOT of NOT IN
4191 -- Left_Opnd (Node2)
4192 -- Right_Opnd (Node3)
4193 -- Alternatives (List4) (set to No_List if only one set alternative)
4194 -- No_Minimize_Eliminate (Flag17)
4195 -- plus fields for expression
4197 --------------------
4198 -- 4.5 Operators --
4199 --------------------
4201 -- LOGICAL_OPERATOR ::= and | or | xor
4203 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4205 -- BINARY_ADDING_OPERATOR ::= + | - | &
4207 -- UNARY_ADDING_OPERATOR ::= + | -
4209 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4211 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4213 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4215 -- x #* y
4216 -- x #/ y
4217 -- x #mod y
4218 -- x #rem y
4220 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4221 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4222 -- All handling of smalls for multiplication and division is handled
4223 -- by the front end (mod and rem result only from expansion). Gigi
4224 -- thus never needs to worry about small values (for other operators
4225 -- operating on fixed-point, e.g. addition, the small value does not
4226 -- have any semantic effect anyway, these are always integer operations.
4228 -- Gigi restriction: For all operators taking Boolean operands, the
4229 -- type is always Standard.Boolean. The expander inserts the required
4230 -- conversion operations where needed to ensure this is the case.
4232 -- N_Op_And
4233 -- Sloc points to AND
4234 -- Do_Length_Check (Flag4-Sem)
4235 -- plus fields for binary operator
4236 -- plus fields for expression
4238 -- N_Op_Or
4239 -- Sloc points to OR
4240 -- Do_Length_Check (Flag4-Sem)
4241 -- plus fields for binary operator
4242 -- plus fields for expression
4244 -- N_Op_Xor
4245 -- Sloc points to XOR
4246 -- Do_Length_Check (Flag4-Sem)
4247 -- plus fields for binary operator
4248 -- plus fields for expression
4250 -- N_Op_Eq
4251 -- Sloc points to =
4252 -- plus fields for binary operator
4253 -- plus fields for expression
4255 -- N_Op_Ne
4256 -- Sloc points to /=
4257 -- plus fields for binary operator
4258 -- plus fields for expression
4260 -- N_Op_Lt
4261 -- Sloc points to <
4262 -- plus fields for binary operator
4263 -- plus fields for expression
4265 -- N_Op_Le
4266 -- Sloc points to <=
4267 -- plus fields for binary operator
4268 -- plus fields for expression
4270 -- N_Op_Gt
4271 -- Sloc points to >
4272 -- plus fields for binary operator
4273 -- plus fields for expression
4275 -- N_Op_Ge
4276 -- Sloc points to >=
4277 -- plus fields for binary operator
4278 -- plus fields for expression
4280 -- N_Op_Add
4281 -- Sloc points to + (binary)
4282 -- plus fields for binary operator
4283 -- plus fields for expression
4285 -- N_Op_Subtract
4286 -- Sloc points to - (binary)
4287 -- plus fields for binary operator
4288 -- plus fields for expression
4290 -- N_Op_Concat
4291 -- Sloc points to &
4292 -- Is_Component_Left_Opnd (Flag13-Sem)
4293 -- Is_Component_Right_Opnd (Flag14-Sem)
4294 -- plus fields for binary operator
4295 -- plus fields for expression
4297 -- N_Op_Multiply
4298 -- Sloc points to *
4299 -- Treat_Fixed_As_Integer (Flag14-Sem)
4300 -- Rounded_Result (Flag18-Sem)
4301 -- plus fields for binary operator
4302 -- plus fields for expression
4304 -- N_Op_Divide
4305 -- Sloc points to /
4306 -- Treat_Fixed_As_Integer (Flag14-Sem)
4307 -- Do_Division_Check (Flag13-Sem)
4308 -- Rounded_Result (Flag18-Sem)
4309 -- plus fields for binary operator
4310 -- plus fields for expression
4312 -- N_Op_Mod
4313 -- Sloc points to MOD
4314 -- Treat_Fixed_As_Integer (Flag14-Sem)
4315 -- Do_Division_Check (Flag13-Sem)
4316 -- plus fields for binary operator
4317 -- plus fields for expression
4319 -- N_Op_Rem
4320 -- Sloc points to REM
4321 -- Treat_Fixed_As_Integer (Flag14-Sem)
4322 -- Do_Division_Check (Flag13-Sem)
4323 -- plus fields for binary operator
4324 -- plus fields for expression
4326 -- N_Op_Expon
4327 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4328 -- Sloc points to **
4329 -- plus fields for binary operator
4330 -- plus fields for expression
4332 -- N_Op_Plus
4333 -- Sloc points to + (unary)
4334 -- plus fields for unary operator
4335 -- plus fields for expression
4337 -- N_Op_Minus
4338 -- Sloc points to - (unary)
4339 -- plus fields for unary operator
4340 -- plus fields for expression
4342 -- N_Op_Abs
4343 -- Sloc points to ABS
4344 -- plus fields for unary operator
4345 -- plus fields for expression
4347 -- N_Op_Not
4348 -- Sloc points to NOT
4349 -- plus fields for unary operator
4350 -- plus fields for expression
4352 -- See also shift operators in section B.2
4354 -- Note on fixed-point operations passed to Gigi: For adding operators,
4355 -- the semantics is to treat these simply as integer operations, with
4356 -- the small values being ignored (the bounds are already stored in
4357 -- units of small, so that constraint checking works as usual). For the
4358 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4359 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4360 -- thus treat these nodes in identical manner, ignoring small values.
4362 -- Note on equality/inequality tests for records. In the expanded tree,
4363 -- record comparisons are always expanded to be a series of component
4364 -- comparisons, so the back end will never see an equality or inequality
4365 -- operation with operands of a record type.
4367 -- Note on overflow handling: When the overflow checking mode is set to
4368 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4369 -- be modified to use a larger type for the operands and result. In
4370 -- the case where the computed range exceeds that of Long_Long_Integer,
4371 -- and we are running in ELIMINATED mode, the operator node will be
4372 -- changed to be a call to the appropriate routine in System.Bignums.
4374 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4375 -- for signed integer types (since there is no equivalent operator in
4376 -- C). Instead we rewrite such an operation in terms of REM (which is
4377 -- % in C) and other C-available operators.
4379 ------------------------------------
4380 -- 4.5.7 Conditional Expressions --
4381 ------------------------------------
4383 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4385 --------------------------
4386 -- 4.5.7 If Expression --
4387 ----------------------------
4389 -- IF_EXPRESSION ::=
4390 -- if CONDITION then DEPENDENT_EXPRESSION
4391 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4392 -- [else DEPENDENT_EXPRESSION]
4394 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4396 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4397 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4398 -- the Is_Elsif flag is set on the inner if expression.
4400 -- N_If_Expression
4401 -- Sloc points to IF or ELSIF keyword
4402 -- Expressions (List1)
4403 -- Then_Actions (List2-Sem)
4404 -- Else_Actions (List3-Sem)
4405 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4406 -- Do_Overflow_Check (Flag17-Sem)
4407 -- plus fields for expression
4409 -- Expressions here is a three-element list, whose first element is the
4410 -- condition, the second element is the dependent expression after THEN
4411 -- and the third element is the dependent expression after the ELSE
4412 -- (explicitly set to True if missing).
4414 -- Note: the Then_Actions and Else_Actions fields are always set to
4415 -- No_List in the tree passed to the back end. These are used only
4416 -- for temporary processing purposes in the expander. Even though they
4417 -- are semantic fields, their parent pointers are set because analysis
4418 -- of actions nodes in those lists may generate additional actions that
4419 -- need to know their insertion point (for example for the creation of
4420 -- transient scopes).
4422 -- Note: in the tree passed to the back end, if the result type is
4423 -- an unconstrained array, the if expression can only appears in the
4424 -- initializing expression of an object declaration (this avoids the
4425 -- back end having to create a variable length temporary on the fly).
4427 ----------------------------
4428 -- 4.5.7 Case Expression --
4429 ----------------------------
4431 -- CASE_EXPRESSION ::=
4432 -- case SELECTING_EXPRESSION is
4433 -- CASE_EXPRESSION_ALTERNATIVE
4434 -- {,CASE_EXPRESSION_ALTERNATIVE}
4436 -- Note that the Alternatives cannot include pragmas (this contrasts
4437 -- with the situation of case statements where pragmas are allowed).
4439 -- N_Case_Expression
4440 -- Sloc points to CASE
4441 -- Expression (Node3) (the selecting expression)
4442 -- Alternatives (List4) (the case expression alternatives)
4443 -- Do_Overflow_Check (Flag17-Sem)
4445 ----------------------------------------
4446 -- 4.5.7 Case Expression Alternative --
4447 ----------------------------------------
4449 -- CASE_EXPRESSION_ALTERNATIVE ::=
4450 -- when DISCRETE_CHOICE_LIST =>
4451 -- DEPENDENT_EXPRESSION
4453 -- N_Case_Expression_Alternative
4454 -- Sloc points to WHEN
4455 -- Actions (List1)
4456 -- Discrete_Choices (List4)
4457 -- Expression (Node3)
4458 -- Has_SP_Choice (Flag15-Sem)
4460 -- Note: The Actions field temporarily holds any actions associated with
4461 -- evaluation of the Expression. During expansion of the case expression
4462 -- these actions are wrapped into an N_Expressions_With_Actions node
4463 -- replacing the original expression.
4465 -- Note: this node never appears in the tree passed to the back end,
4466 -- since the expander converts case expressions into case statements.
4468 ---------------------------------
4469 -- 4.5.9 Quantified Expression --
4470 ---------------------------------
4472 -- QUANTIFIED_EXPRESSION ::=
4473 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4474 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4476 -- QUANTIFIER ::= all | some
4478 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4479 -- is present at a time, in which case the other one is empty.
4481 -- N_Quantified_Expression
4482 -- Sloc points to FOR
4483 -- Iterator_Specification (Node2)
4484 -- Loop_Parameter_Specification (Node4)
4485 -- Condition (Node1)
4486 -- All_Present (Flag15)
4488 --------------------------
4489 -- 4.6 Type Conversion --
4490 --------------------------
4492 -- TYPE_CONVERSION ::=
4493 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4495 -- In the (NAME) case, the name is stored as the expression
4497 -- Note: the parser never generates a type conversion node, since it
4498 -- looks like an indexed component which is generated by preference.
4499 -- The semantic pass must correct this misidentification.
4501 -- Gigi handles conversions that involve no change in the root type,
4502 -- and also all conversions from integer to floating-point types.
4503 -- Conversions from floating-point to integer are only handled in
4504 -- the case where Float_Truncate flag set. Other conversions from
4505 -- floating-point to integer (involving rounding) and all conversions
4506 -- involving fixed-point types are handled by the expander.
4508 -- Sprint syntax if Float_Truncate set: X^(Y)
4509 -- Sprint syntax if Conversion_OK set X?(Y)
4510 -- Sprint syntax if both flags set X?^(Y)
4512 -- Note: If either the operand or result type is fixed-point, Gigi will
4513 -- only see a type conversion node with Conversion_OK set. The front end
4514 -- takes care of all handling of small's for fixed-point conversions.
4516 -- N_Type_Conversion
4517 -- Sloc points to first token of subtype mark
4518 -- Subtype_Mark (Node4)
4519 -- Expression (Node3)
4520 -- Do_Discriminant_Check (Flag1-Sem)
4521 -- Do_Length_Check (Flag4-Sem)
4522 -- Float_Truncate (Flag11-Sem)
4523 -- Do_Tag_Check (Flag13-Sem)
4524 -- Conversion_OK (Flag14-Sem)
4525 -- Do_Overflow_Check (Flag17-Sem)
4526 -- Rounded_Result (Flag18-Sem)
4527 -- plus fields for expression
4529 -- Note: if a range check is required, then the Do_Range_Check flag
4530 -- is set in the Expression with the check being done against the
4531 -- target type range (after the base type conversion, if any).
4533 -------------------------------
4534 -- 4.7 Qualified Expression --
4535 -------------------------------
4537 -- QUALIFIED_EXPRESSION ::=
4538 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4540 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4541 -- the expression, so the Expression field of this node always points
4542 -- to a parenthesized expression in this case (i.e. Paren_Count will
4543 -- always be non-zero for the referenced expression if it is not an
4544 -- aggregate).
4546 -- N_Qualified_Expression
4547 -- Sloc points to apostrophe
4548 -- Subtype_Mark (Node4)
4549 -- Expression (Node3) expression or aggregate
4550 -- plus fields for expression
4551 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4553 --------------------
4554 -- 4.8 Allocator --
4555 --------------------
4557 -- ALLOCATOR ::=
4558 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4559 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4561 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4563 -- Sprint syntax (when storage pool present)
4564 -- new xxx (storage_pool = pool)
4565 -- or
4566 -- new (subpool) xxx (storage_pool = pool)
4568 -- N_Allocator
4569 -- Sloc points to NEW
4570 -- Expression (Node3) subtype indication or qualified expression
4571 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4572 -- Storage_Pool (Node1-Sem)
4573 -- Procedure_To_Call (Node2-Sem)
4574 -- Null_Exclusion_Present (Flag11)
4575 -- No_Initialization (Flag13-Sem)
4576 -- Is_Static_Coextension (Flag14-Sem)
4577 -- Do_Storage_Check (Flag17-Sem)
4578 -- Is_Dynamic_Coextension (Flag18-Sem)
4579 -- plus fields for expression
4581 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4582 -- This flag has a special function in conjunction with the restriction
4583 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4584 -- is not set. This means that if a source allocator is replaced with
4585 -- a constructed allocator, the Comes_From_Source flag should be copied
4586 -- to the newly created allocator.
4588 ---------------------------------
4589 -- 5.1 Sequence Of Statements --
4590 ---------------------------------
4592 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4594 -- Note: Although the parser will not accept a declaration as a
4595 -- statement, the semantic analyzer may insert declarations (e.g.
4596 -- declarations of implicit types needed for execution of other
4597 -- statements) into a sequence of statements, so the code generator
4598 -- should be prepared to accept a declaration where a statement is
4599 -- expected. Note also that pragmas can appear as statements.
4601 --------------------
4602 -- 5.1 Statement --
4603 --------------------
4605 -- STATEMENT ::=
4606 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4608 -- There is no explicit node in the tree for a statement. Instead, the
4609 -- individual statement appears directly. Labels are treated as a
4610 -- kind of statement, i.e. they are linked into a statement list at
4611 -- the point they appear, so the labeled statement appears following
4612 -- the label or labels in the statement list.
4614 ---------------------------
4615 -- 5.1 Simple Statement --
4616 ---------------------------
4618 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4619 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4620 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4621 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4622 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4623 -- | ABORT_STATEMENT | RAISE_STATEMENT
4624 -- | CODE_STATEMENT
4626 -----------------------------
4627 -- 5.1 Compound Statement --
4628 -----------------------------
4630 -- COMPOUND_STATEMENT ::=
4631 -- IF_STATEMENT | CASE_STATEMENT
4632 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4633 -- | EXTENDED_RETURN_STATEMENT
4634 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4636 -------------------------
4637 -- 5.1 Null Statement --
4638 -------------------------
4640 -- NULL_STATEMENT ::= null;
4642 -- N_Null_Statement
4643 -- Sloc points to NULL
4645 ----------------
4646 -- 5.1 Label --
4647 ----------------
4649 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4651 -- Note that the occurrence of a label is not a defining identifier,
4652 -- but rather a referencing occurrence. The defining occurrence is
4653 -- in the implicit label declaration which occurs in the innermost
4654 -- enclosing block.
4656 -- N_Label
4657 -- Sloc points to <<
4658 -- Identifier (Node1) direct name of statement identifier
4659 -- Exception_Junk (Flag8-Sem)
4661 -- Note: Before Ada 2012, a label is always followed by a statement,
4662 -- and this is true in the tree even in Ada 2012 mode (the parser
4663 -- inserts a null statement marked with Comes_From_Source False).
4665 -------------------------------
4666 -- 5.1 Statement Identifier --
4667 -------------------------------
4669 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4671 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4672 -- (not an OPERATOR_SYMBOL)
4674 -------------------------------
4675 -- 5.2 Assignment Statement --
4676 -------------------------------
4678 -- ASSIGNMENT_STATEMENT ::=
4679 -- variable_NAME := EXPRESSION;
4681 -- N_Assignment_Statement
4682 -- Sloc points to :=
4683 -- Name (Node2)
4684 -- Expression (Node3)
4685 -- Do_Discriminant_Check (Flag1-Sem)
4686 -- Do_Tag_Check (Flag13-Sem)
4687 -- Do_Length_Check (Flag4-Sem)
4688 -- Forwards_OK (Flag5-Sem)
4689 -- Backwards_OK (Flag6-Sem)
4690 -- No_Ctrl_Actions (Flag7-Sem)
4691 -- Componentwise_Assignment (Flag14-Sem)
4692 -- Suppress_Assignment_Checks (Flag18-Sem)
4694 -- Note: if a range check is required, then the Do_Range_Check flag
4695 -- is set in the Expression (right hand side), with the check being
4696 -- done against the type of the Name (left hand side).
4698 -- Note: the back end places some restrictions on the form of the
4699 -- Expression field. If the object being assigned to is Atomic, then
4700 -- the Expression may not have the form of an aggregate (since this
4701 -- might cause the back end to generate separate assignments). In this
4702 -- case the front end must generate an extra temporary and initialize
4703 -- this temporary as required (the temporary itself is not atomic).
4705 -----------------------
4706 -- 5.3 If Statement --
4707 -----------------------
4709 -- IF_STATEMENT ::=
4710 -- if CONDITION then
4711 -- SEQUENCE_OF_STATEMENTS
4712 -- {elsif CONDITION then
4713 -- SEQUENCE_OF_STATEMENTS}
4714 -- [else
4715 -- SEQUENCE_OF_STATEMENTS]
4716 -- end if;
4718 -- Gigi restriction: This expander ensures that the type of the
4719 -- Condition fields is always Standard.Boolean, even if the type
4720 -- in the source is some non-standard boolean type.
4722 -- N_If_Statement
4723 -- Sloc points to IF
4724 -- Condition (Node1)
4725 -- Then_Statements (List2)
4726 -- Elsif_Parts (List3) (set to No_List if none present)
4727 -- Else_Statements (List4) (set to No_List if no else part present)
4728 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4729 -- From_Conditional_Expression (Flag1-Sem)
4731 -- N_Elsif_Part
4732 -- Sloc points to ELSIF
4733 -- Condition (Node1)
4734 -- Then_Statements (List2)
4735 -- Condition_Actions (List3-Sem)
4737 --------------------
4738 -- 5.3 Condition --
4739 --------------------
4741 -- CONDITION ::= boolean_EXPRESSION
4743 -------------------------
4744 -- 5.4 Case Statement --
4745 -------------------------
4747 -- CASE_STATEMENT ::=
4748 -- case EXPRESSION is
4749 -- CASE_STATEMENT_ALTERNATIVE
4750 -- {CASE_STATEMENT_ALTERNATIVE}
4751 -- end case;
4753 -- Note: the Alternatives can contain pragmas. These only occur at
4754 -- the start of the list, since any pragmas occurring after the first
4755 -- alternative are absorbed into the corresponding statement sequence.
4757 -- N_Case_Statement
4758 -- Sloc points to CASE
4759 -- Expression (Node3)
4760 -- Alternatives (List4)
4761 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4762 -- From_Conditional_Expression (Flag1-Sem)
4764 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4765 -- followed by a statement, and this is true in the tree even in Ada
4766 -- 2012 mode (the parser inserts a null statement marked with the flag
4767 -- Comes_From_Source False).
4769 -------------------------------------
4770 -- 5.4 Case Statement Alternative --
4771 -------------------------------------
4773 -- CASE_STATEMENT_ALTERNATIVE ::=
4774 -- when DISCRETE_CHOICE_LIST =>
4775 -- SEQUENCE_OF_STATEMENTS
4777 -- N_Case_Statement_Alternative
4778 -- Sloc points to WHEN
4779 -- Discrete_Choices (List4)
4780 -- Statements (List3)
4781 -- Has_SP_Choice (Flag15-Sem)
4783 -- Note: in the list of Discrete_Choices, the tree passed to the back
4784 -- end does not have choice entries corresponding to names of statically
4785 -- predicated subtypes. Such entries are always expanded out to the list
4786 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4787 -- mode does not have this expansion, and has the original choices.
4789 -------------------------
4790 -- 5.5 Loop Statement --
4791 -------------------------
4793 -- LOOP_STATEMENT ::=
4794 -- [loop_STATEMENT_IDENTIFIER :]
4795 -- [ITERATION_SCHEME] loop
4796 -- SEQUENCE_OF_STATEMENTS
4797 -- end loop [loop_IDENTIFIER];
4799 -- Note: The occurrence of a loop label is not a defining identifier
4800 -- but rather a referencing occurrence. The defining occurrence is in
4801 -- the implicit label declaration which occurs in the innermost
4802 -- enclosing block.
4804 -- Note: there is always a loop statement identifier present in the
4805 -- tree, even if none was given in the source. In the case where no loop
4806 -- identifier is given in the source, the parser creates a name of the
4807 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4808 -- that the loop names created in this manner do not conflict with any
4809 -- user defined identifiers), and the flag Has_Created_Identifier is set
4810 -- to True. The only exception to the rule that all loop statement nodes
4811 -- have identifiers occurs for loops constructed by the expander, and
4812 -- the semantic analyzer will create and supply dummy loop identifiers
4813 -- in these cases.
4815 -- N_Loop_Statement
4816 -- Sloc points to LOOP
4817 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4818 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4819 -- Statements (List3)
4820 -- End_Label (Node4)
4821 -- Has_Created_Identifier (Flag15)
4822 -- Is_Null_Loop (Flag16)
4823 -- Suppress_Loop_Warnings (Flag17)
4825 -- Note: the parser fills in the Identifier field if there is an
4826 -- explicit loop identifier. Otherwise the parser leaves this field
4827 -- set to Empty, and then the semantic processing for a loop statement
4828 -- creates an identifier, setting the Has_Created_Identifier flag to
4829 -- True. So after semantic analysis, the Identifier is always set,
4830 -- referencing an identifier whose entity has an Ekind of E_Loop.
4832 ---------------------------
4833 -- 5.5 Iteration Scheme --
4834 ---------------------------
4836 -- ITERATION_SCHEME ::=
4837 -- while CONDITION
4838 -- | for LOOP_PARAMETER_SPECIFICATION
4839 -- | for ITERATOR_SPECIFICATION
4841 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4842 -- is present at a time, in which case the other one is empty. Both are
4843 -- empty in the case of a WHILE loop.
4845 -- Gigi restriction: The expander ensures that the type of the Condition
4846 -- field is always Standard.Boolean, even if the type in the source is
4847 -- some non-standard boolean type.
4849 -- N_Iteration_Scheme
4850 -- Sloc points to WHILE or FOR
4851 -- Condition (Node1) (set to Empty if FOR case)
4852 -- Condition_Actions (List3-Sem)
4853 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4854 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4856 ---------------------------------------
4857 -- 5.5 Loop Parameter Specification --
4858 ---------------------------------------
4860 -- LOOP_PARAMETER_SPECIFICATION ::=
4861 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4863 -- N_Loop_Parameter_Specification
4864 -- Sloc points to first identifier
4865 -- Defining_Identifier (Node1)
4866 -- Reverse_Present (Flag15)
4867 -- Discrete_Subtype_Definition (Node4)
4869 -----------------------------------
4870 -- 5.5.1 Iterator Specification --
4871 -----------------------------------
4873 -- ITERATOR_SPECIFICATION ::=
4874 -- DEFINING_IDENTIFIER in [reverse] NAME
4875 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4877 -- N_Iterator_Specification
4878 -- Sloc points to defining identifier
4879 -- Defining_Identifier (Node1)
4880 -- Name (Node2)
4881 -- Reverse_Present (Flag15)
4882 -- Of_Present (Flag16)
4883 -- Subtype_Indication (Node5)
4885 -- Note: The Of_Present flag distinguishes the two forms
4887 --------------------------
4888 -- 5.6 Block Statement --
4889 --------------------------
4891 -- BLOCK_STATEMENT ::=
4892 -- [block_STATEMENT_IDENTIFIER:]
4893 -- [declare
4894 -- DECLARATIVE_PART]
4895 -- begin
4896 -- HANDLED_SEQUENCE_OF_STATEMENTS
4897 -- end [block_IDENTIFIER];
4899 -- Note that the occurrence of a block identifier is not a defining
4900 -- identifier, but rather a referencing occurrence. The defining
4901 -- occurrence is an E_Block entity declared by the implicit label
4902 -- declaration which occurs in the innermost enclosing block statement
4903 -- or body; the block identifier denotes that E_Block.
4905 -- For block statements that come from source code, there is always a
4906 -- block statement identifier present in the tree, denoting an E_Block.
4907 -- In the case where no block identifier is given in the source,
4908 -- the parser creates a name of the form B_n, where n is a decimal
4909 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4910 -- constructed by the expander usually have no identifier, and no
4911 -- corresponding entity.
4913 -- Note: the block statement created for an extended return statement
4914 -- has an entity, and this entity is an E_Return_Statement, rather than
4915 -- the usual E_Block.
4917 -- Note: Exception_Junk is set for the wrapping blocks created during
4918 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4920 -- Note: from a control flow viewpoint, a block statement defines an
4921 -- extended basic block, i.e. the entry of the block dominates every
4922 -- statement in the sequence. When generating new statements with
4923 -- exception handlers in the expander at the end of a sequence that
4924 -- comes from source code, it can be necessary to wrap them all in a
4925 -- block statement in order to expose the implicit control flow to
4926 -- gigi and thus prevent it from issuing bogus control flow warnings.
4928 -- N_Block_Statement
4929 -- Sloc points to DECLARE or BEGIN
4930 -- Identifier (Node1) block direct name (set to Empty if not present)
4931 -- Declarations (List2) (set to No_List if no DECLARE part)
4932 -- Handled_Statement_Sequence (Node4)
4933 -- Cleanup_Actions (List5-Sem)
4934 -- Is_Task_Master (Flag5-Sem)
4935 -- Activation_Chain_Entity (Node3-Sem)
4936 -- Has_Created_Identifier (Flag15)
4937 -- Is_Task_Allocation_Block (Flag6)
4938 -- Is_Asynchronous_Call_Block (Flag7)
4939 -- Exception_Junk (Flag8-Sem)
4940 -- Is_Finalization_Wrapper (Flag9-Sem)
4942 -------------------------
4943 -- 5.7 Exit Statement --
4944 -------------------------
4946 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4948 -- Gigi restriction: The expander ensures that the type of the Condition
4949 -- field is always Standard.Boolean, even if the type in the source is
4950 -- some non-standard boolean type.
4952 -- N_Exit_Statement
4953 -- Sloc points to EXIT
4954 -- Name (Node2) (set to Empty if no loop name present)
4955 -- Condition (Node1) (set to Empty if no WHEN part present)
4956 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4958 -------------------------
4959 -- 5.9 Goto Statement --
4960 -------------------------
4962 -- GOTO_STATEMENT ::= goto label_NAME;
4964 -- N_Goto_Statement
4965 -- Sloc points to GOTO
4966 -- Name (Node2)
4967 -- Exception_Junk (Flag8-Sem)
4969 ---------------------------------
4970 -- 6.1 Subprogram Declaration --
4971 ---------------------------------
4973 -- SUBPROGRAM_DECLARATION ::=
4974 -- SUBPROGRAM_SPECIFICATION
4975 -- [ASPECT_SPECIFICATIONS];
4977 -- N_Subprogram_Declaration
4978 -- Sloc points to FUNCTION or PROCEDURE
4979 -- Specification (Node1)
4980 -- Body_To_Inline (Node3-Sem)
4981 -- Corresponding_Body (Node5-Sem)
4982 -- Parent_Spec (Node4-Sem)
4983 -- Is_Entry_Barrier_Function (Flag8-Sem)
4984 -- Is_Task_Body_Procedure (Flag1-Sem)
4986 ------------------------------------------
4987 -- 6.1 Abstract Subprogram Declaration --
4988 ------------------------------------------
4990 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4991 -- SUBPROGRAM_SPECIFICATION is abstract
4992 -- [ASPECT_SPECIFICATIONS];
4994 -- N_Abstract_Subprogram_Declaration
4995 -- Sloc points to ABSTRACT
4996 -- Specification (Node1)
4998 -----------------------------------
4999 -- 6.1 Subprogram Specification --
5000 -----------------------------------
5002 -- SUBPROGRAM_SPECIFICATION ::=
5003 -- [[not] overriding]
5004 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5005 -- | [[not] overriding]
5006 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5008 -- Note: there are no separate nodes for the profiles, instead the
5009 -- information appears directly in the following nodes.
5011 -- N_Function_Specification
5012 -- Sloc points to FUNCTION
5013 -- Defining_Unit_Name (Node1) (the designator)
5014 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5015 -- Null_Exclusion_Present (Flag11)
5016 -- Result_Definition (Node4) for result subtype
5017 -- Generic_Parent (Node5-Sem)
5018 -- Must_Override (Flag14) set if overriding indicator present
5019 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5021 -- N_Procedure_Specification
5022 -- Sloc points to PROCEDURE
5023 -- Defining_Unit_Name (Node1)
5024 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5025 -- Generic_Parent (Node5-Sem)
5026 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5027 -- Must_Override (Flag14) set if overriding indicator present
5028 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5030 -- Note: overriding indicator is an Ada 2005 feature
5032 ---------------------
5033 -- 6.1 Designator --
5034 ---------------------
5036 -- DESIGNATOR ::=
5037 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5039 -- Designators that are simply identifiers or operator symbols appear
5040 -- directly in the tree in this form. The following node is used only
5041 -- in the case where the designator has a parent unit name component.
5043 -- N_Designator
5044 -- Sloc points to period
5045 -- Name (Node2) holds the parent unit name
5046 -- Identifier (Node1)
5048 -- Note: Name is always non-Empty, since this node is only used for the
5049 -- case where a parent library unit package name is present.
5051 -- Note that the identifier can also be an operator symbol here
5053 ------------------------------
5054 -- 6.1 Defining Designator --
5055 ------------------------------
5057 -- DEFINING_DESIGNATOR ::=
5058 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5060 -------------------------------------
5061 -- 6.1 Defining Program Unit Name --
5062 -------------------------------------
5064 -- DEFINING_PROGRAM_UNIT_NAME ::=
5065 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5067 -- The parent unit name is present only in the case of a child unit name
5068 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5069 -- at scope level one). If no such name is present, the defining program
5070 -- unit name is represented simply as the defining identifier. In the
5071 -- child unit case, the following node is used to represent the child
5072 -- unit name.
5074 -- N_Defining_Program_Unit_Name
5075 -- Sloc points to period
5076 -- Name (Node2) holds the parent unit name
5077 -- Defining_Identifier (Node1)
5079 -- Note: Name is always non-Empty, since this node is only used for the
5080 -- case where a parent unit name is present.
5082 --------------------------
5083 -- 6.1 Operator Symbol --
5084 --------------------------
5086 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5088 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5089 -- the corresponding fields of an N_Character_Literal node. This allows
5090 -- easy conversion of the operator symbol node into a character literal
5091 -- node in the case where a string constant of the form of an operator
5092 -- symbol is scanned out as such, but turns out semantically to be a
5093 -- string literal that is not an operator. For details see Sinfo.CN.
5094 -- Change_Operator_Symbol_To_String_Literal.
5096 -- N_Operator_Symbol
5097 -- Sloc points to literal
5098 -- Chars (Name1) contains the Name_Id for the operator symbol
5099 -- Strval (Str3) Id of string value. This is used if the operator
5100 -- symbol turns out to be a normal string after all.
5101 -- Entity (Node4-Sem)
5102 -- Associated_Node (Node4-Sem)
5103 -- Has_Private_View (Flag11-Sem) set in generic units.
5104 -- Etype (Node5-Sem)
5106 -- Note: the Strval field may be set to No_String for generated
5107 -- operator symbols that are known not to be string literals
5108 -- semantically.
5110 -----------------------------------
5111 -- 6.1 Defining Operator Symbol --
5112 -----------------------------------
5114 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5116 -- A defining operator symbol is an entity, which has additional
5117 -- fields depending on the setting of the Ekind field. These
5118 -- additional fields are defined (and access subprograms declared)
5119 -- in package Einfo.
5121 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5122 -- are deliberately layed out to match the layout of fields in an
5123 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5124 -- an operator symbol node into a defining operator symbol node.
5125 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5126 -- for further details.
5128 -- N_Defining_Operator_Symbol
5129 -- Sloc points to literal
5130 -- Chars (Name1) contains the Name_Id for the operator symbol
5131 -- Next_Entity (Node2-Sem)
5132 -- Scope (Node3-Sem)
5133 -- Etype (Node5-Sem)
5135 ----------------------------
5136 -- 6.1 Parameter Profile --
5137 ----------------------------
5139 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5141 ---------------------------------------
5142 -- 6.1 Parameter and Result Profile --
5143 ---------------------------------------
5145 -- PARAMETER_AND_RESULT_PROFILE ::=
5146 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5147 -- | [FORMAL_PART] return ACCESS_DEFINITION
5149 -- There is no explicit node in the tree for a parameter and result
5150 -- profile. Instead the information appears directly in the parent.
5152 ----------------------
5153 -- 6.1 Formal Part --
5154 ----------------------
5156 -- FORMAL_PART ::=
5157 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5159 ----------------------------------
5160 -- 6.1 Parameter Specification --
5161 ----------------------------------
5163 -- PARAMETER_SPECIFICATION ::=
5164 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5165 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5166 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5167 -- [:= DEFAULT_EXPRESSION]
5169 -- Although the syntax allows multiple identifiers in the list, the
5170 -- semantics is as though successive specifications were given with
5171 -- identical type definition and expression components. To simplify
5172 -- semantic processing, the parser represents a multiple declaration
5173 -- case as a sequence of single Specifications, using the More_Ids and
5174 -- Prev_Ids flags to preserve the original source form as described
5175 -- in the section on "Handling of Defining Identifier Lists".
5177 -- ALIASED can only be present in Ada 2012 mode
5179 -- N_Parameter_Specification
5180 -- Sloc points to first identifier
5181 -- Defining_Identifier (Node1)
5182 -- Aliased_Present (Flag4)
5183 -- In_Present (Flag15)
5184 -- Out_Present (Flag17)
5185 -- Null_Exclusion_Present (Flag11)
5186 -- Parameter_Type (Node2) subtype mark or access definition
5187 -- Expression (Node3) (set to Empty if no default expression present)
5188 -- Do_Accessibility_Check (Flag13-Sem)
5189 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5190 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5191 -- Default_Expression (Node5-Sem)
5193 ---------------
5194 -- 6.1 Mode --
5195 ---------------
5197 -- MODE ::= [in] | in out | out
5199 -- There is no explicit node in the tree for the Mode. Instead the
5200 -- In_Present and Out_Present flags are set in the parent node to
5201 -- record the presence of keywords specifying the mode.
5203 --------------------------
5204 -- 6.3 Subprogram Body --
5205 --------------------------
5207 -- SUBPROGRAM_BODY ::=
5208 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5209 -- DECLARATIVE_PART
5210 -- begin
5211 -- HANDLED_SEQUENCE_OF_STATEMENTS
5212 -- end [DESIGNATOR];
5214 -- N_Subprogram_Body
5215 -- Sloc points to FUNCTION or PROCEDURE
5216 -- Specification (Node1)
5217 -- Declarations (List2)
5218 -- Handled_Statement_Sequence (Node4)
5219 -- Activation_Chain_Entity (Node3-Sem)
5220 -- Corresponding_Spec (Node5-Sem)
5221 -- Acts_As_Spec (Flag4-Sem)
5222 -- Bad_Is_Detected (Flag15) used only by parser
5223 -- Do_Storage_Check (Flag17-Sem)
5224 -- Is_Entry_Barrier_Function (Flag8-Sem)
5225 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5226 -- Is_Task_Body_Procedure (Flag1-Sem)
5227 -- Is_Task_Master (Flag5-Sem)
5228 -- Was_Originally_Stub (Flag13-Sem)
5229 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5230 -- Was_Expression_Function (Flag18-Sem)
5232 -------------------------
5233 -- Expression Function --
5234 -------------------------
5236 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5237 -- and put in its proper section when we know exactly where that is.
5239 -- EXPRESSION_FUNCTION ::=
5240 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5241 -- [ASPECT_SPECIFICATIONS];
5243 -- N_Expression_Function
5244 -- Sloc points to FUNCTION
5245 -- Specification (Node1)
5246 -- Expression (Node3)
5247 -- Corresponding_Spec (Node5-Sem)
5249 -----------------------------------
5250 -- 6.4 Procedure Call Statement --
5251 -----------------------------------
5253 -- PROCEDURE_CALL_STATEMENT ::=
5254 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5256 -- Note: the reason that a procedure call has expression fields is that
5257 -- it semantically resembles an expression, e.g. overloading is allowed
5258 -- and a type is concocted for semantic processing purposes. Certain of
5259 -- these fields, such as Parens are not relevant, but it is easier to
5260 -- just supply all of them together.
5262 -- N_Procedure_Call_Statement
5263 -- Sloc points to first token of name or prefix
5264 -- Name (Node2) stores name or prefix
5265 -- Parameter_Associations (List3) (set to No_List if no
5266 -- actual parameter part)
5267 -- First_Named_Actual (Node4-Sem)
5268 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5269 -- Do_Tag_Check (Flag13-Sem)
5270 -- No_Elaboration_Check (Flag14-Sem)
5271 -- ABE_Is_Certain (Flag18-Sem)
5272 -- plus fields for expression
5274 -- If any IN parameter requires a range check, then the corresponding
5275 -- argument expression has the Do_Range_Check flag set, and the range
5276 -- check is done against the formal type. Note that this argument
5277 -- expression may appear directly in the Parameter_Associations list,
5278 -- or may be a descendant of an N_Parameter_Association node that
5279 -- appears in this list.
5281 ------------------------
5282 -- 6.4 Function Call --
5283 ------------------------
5285 -- FUNCTION_CALL ::=
5286 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5288 -- Note: the parser may generate an indexed component node or simply
5289 -- a name node instead of a function call node. The semantic pass must
5290 -- correct this misidentification.
5292 -- N_Function_Call
5293 -- Sloc points to first token of name or prefix
5294 -- Name (Node2) stores name or prefix
5295 -- Parameter_Associations (List3) (set to No_List if no
5296 -- actual parameter part)
5297 -- First_Named_Actual (Node4-Sem)
5298 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5299 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5300 -- Do_Tag_Check (Flag13-Sem)
5301 -- No_Elaboration_Check (Flag14-Sem)
5302 -- ABE_Is_Certain (Flag18-Sem)
5303 -- plus fields for expression
5305 --------------------------------
5306 -- 6.4 Actual Parameter Part --
5307 --------------------------------
5309 -- ACTUAL_PARAMETER_PART ::=
5310 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5312 --------------------------------
5313 -- 6.4 Parameter Association --
5314 --------------------------------
5316 -- PARAMETER_ASSOCIATION ::=
5317 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5319 -- Note: the N_Parameter_Association node is built only if a formal
5320 -- parameter selector name is present, otherwise the parameter
5321 -- association appears in the tree simply as the node for the
5322 -- explicit actual parameter.
5324 -- N_Parameter_Association
5325 -- Sloc points to formal parameter
5326 -- Selector_Name (Node2) (always non-Empty)
5327 -- Explicit_Actual_Parameter (Node3)
5328 -- Next_Named_Actual (Node4-Sem)
5329 -- Is_Accessibility_Actual (Flag13-Sem)
5331 ---------------------------
5332 -- 6.4 Actual Parameter --
5333 ---------------------------
5335 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5337 ---------------------------
5338 -- 6.5 Return Statement --
5339 ---------------------------
5341 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5343 -- EXTENDED_RETURN_STATEMENT ::=
5344 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5345 -- [:= EXPRESSION] [do
5346 -- HANDLED_SEQUENCE_OF_STATEMENTS
5347 -- end return];
5349 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5351 -- The term "return statement" is defined in 6.5 to mean either a
5352 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5353 -- the use of this term, since it used to mean someting else in earlier
5354 -- versions of Ada.
5356 -- N_Simple_Return_Statement
5357 -- Sloc points to RETURN
5358 -- Return_Statement_Entity (Node5-Sem)
5359 -- Expression (Node3) (set to Empty if no expression present)
5360 -- Storage_Pool (Node1-Sem)
5361 -- Procedure_To_Call (Node2-Sem)
5362 -- Do_Tag_Check (Flag13-Sem)
5363 -- By_Ref (Flag5-Sem)
5364 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5366 -- Note: Return_Statement_Entity points to an E_Return_Statement
5368 -- If a range check is required, then Do_Range_Check is set on the
5369 -- Expression. The check is against the return subtype of the function.
5371 -- N_Extended_Return_Statement
5372 -- Sloc points to RETURN
5373 -- Return_Statement_Entity (Node5-Sem)
5374 -- Return_Object_Declarations (List3)
5375 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5376 -- Storage_Pool (Node1-Sem)
5377 -- Procedure_To_Call (Node2-Sem)
5378 -- Do_Tag_Check (Flag13-Sem)
5379 -- By_Ref (Flag5-Sem)
5381 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5383 -- Note that Return_Object_Declarations is a list containing the
5384 -- N_Object_Declaration -- see comment on this field above.
5386 -- The declared object will have Is_Return_Object = True.
5388 -- There is no such syntactic category as return_object_declaration
5389 -- in the RM. Return_Object_Declarations represents this portion of
5390 -- the syntax for EXTENDED_RETURN_STATEMENT:
5391 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5392 -- [:= EXPRESSION]
5394 -- There are two entities associated with an extended_return_statement:
5395 -- the Return_Statement_Entity represents the statement itself,
5396 -- and the Defining_Identifier of the Object_Declaration in
5397 -- Return_Object_Declarations represents the object being
5398 -- returned. N_Simple_Return_Statement has only the former.
5400 ------------------------------
5401 -- 7.1 Package Declaration --
5402 ------------------------------
5404 -- PACKAGE_DECLARATION ::=
5405 -- PACKAGE_SPECIFICATION;
5407 -- Note: the activation chain entity for a package spec is used for
5408 -- all tasks declared in the package spec, or in the package body.
5410 -- N_Package_Declaration
5411 -- Sloc points to PACKAGE
5412 -- Specification (Node1)
5413 -- Corresponding_Body (Node5-Sem)
5414 -- Parent_Spec (Node4-Sem)
5415 -- Activation_Chain_Entity (Node3-Sem)
5417 --------------------------------
5418 -- 7.1 Package Specification --
5419 --------------------------------
5421 -- PACKAGE_SPECIFICATION ::=
5422 -- package DEFINING_PROGRAM_UNIT_NAME
5423 -- [ASPECT_SPECIFICATIONS]
5424 -- is
5425 -- {BASIC_DECLARATIVE_ITEM}
5426 -- [private
5427 -- {BASIC_DECLARATIVE_ITEM}]
5428 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5430 -- N_Package_Specification
5431 -- Sloc points to PACKAGE
5432 -- Defining_Unit_Name (Node1)
5433 -- Visible_Declarations (List2)
5434 -- Private_Declarations (List3) (set to No_List if no private
5435 -- part present)
5436 -- End_Label (Node4)
5437 -- Generic_Parent (Node5-Sem)
5438 -- Limited_View_Installed (Flag18-Sem)
5440 -----------------------
5441 -- 7.1 Package Body --
5442 -----------------------
5444 -- PACKAGE_BODY ::=
5445 -- package body DEFINING_PROGRAM_UNIT_NAME
5446 -- [ASPECT_SPECIFICATIONS]
5447 -- is
5448 -- DECLARATIVE_PART
5449 -- [begin
5450 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5451 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5453 -- N_Package_Body
5454 -- Sloc points to PACKAGE
5455 -- Defining_Unit_Name (Node1)
5456 -- Declarations (List2)
5457 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5458 -- Corresponding_Spec (Node5-Sem)
5459 -- Was_Originally_Stub (Flag13-Sem)
5461 -- Note: if a source level package does not contain a handled sequence
5462 -- of statements, then the parser supplies a dummy one with a null
5463 -- sequence of statements. Comes_From_Source will be False in this
5464 -- constructed sequence. The reason we need this is for the End_Label
5465 -- field in the HSS.
5467 -----------------------------------
5468 -- 7.4 Private Type Declaration --
5469 -----------------------------------
5471 -- PRIVATE_TYPE_DECLARATION ::=
5472 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5473 -- is [[abstract] tagged] [limited] private
5474 -- [ASPECT_SPECIFICATIONS];
5476 -- Note: TAGGED is not permitted in Ada 83 mode
5478 -- N_Private_Type_Declaration
5479 -- Sloc points to TYPE
5480 -- Defining_Identifier (Node1)
5481 -- Discriminant_Specifications (List4) (set to No_List if no
5482 -- discriminant part)
5483 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5484 -- Abstract_Present (Flag4)
5485 -- Tagged_Present (Flag15)
5486 -- Limited_Present (Flag17)
5488 ----------------------------------------
5489 -- 7.4 Private Extension Declaration --
5490 ----------------------------------------
5492 -- PRIVATE_EXTENSION_DECLARATION ::=
5493 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5494 -- [abstract] [limited | synchronized]
5495 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5496 -- with private [ASPECT_SPECIFICATIONS];
5498 -- Note: LIMITED, and private extension declarations are not allowed
5499 -- in Ada 83 mode.
5501 -- N_Private_Extension_Declaration
5502 -- Sloc points to TYPE
5503 -- Defining_Identifier (Node1)
5504 -- Uninitialized_Variable (Node3-Sem)
5505 -- Discriminant_Specifications (List4) (set to No_List if no
5506 -- discriminant part)
5507 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5508 -- Abstract_Present (Flag4)
5509 -- Limited_Present (Flag17)
5510 -- Synchronized_Present (Flag7)
5511 -- Subtype_Indication (Node5)
5512 -- Interface_List (List2) (set to No_List if none)
5514 ---------------------
5515 -- 8.4 Use Clause --
5516 ---------------------
5518 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5520 -----------------------------
5521 -- 8.4 Use Package Clause --
5522 -----------------------------
5524 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5526 -- N_Use_Package_Clause
5527 -- Sloc points to USE
5528 -- Names (List2)
5529 -- Next_Use_Clause (Node3-Sem)
5530 -- Hidden_By_Use_Clause (Elist4-Sem)
5532 --------------------------
5533 -- 8.4 Use Type Clause --
5534 --------------------------
5536 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5538 -- Note: use type clause is not permitted in Ada 83 mode
5540 -- Note: the ALL keyword can appear only in Ada 2012 mode
5542 -- N_Use_Type_Clause
5543 -- Sloc points to USE
5544 -- Subtype_Marks (List2)
5545 -- Next_Use_Clause (Node3-Sem)
5546 -- Hidden_By_Use_Clause (Elist4-Sem)
5547 -- Used_Operations (Elist5-Sem)
5548 -- All_Present (Flag15)
5550 -------------------------------
5551 -- 8.5 Renaming Declaration --
5552 -------------------------------
5554 -- RENAMING_DECLARATION ::=
5555 -- OBJECT_RENAMING_DECLARATION
5556 -- | EXCEPTION_RENAMING_DECLARATION
5557 -- | PACKAGE_RENAMING_DECLARATION
5558 -- | SUBPROGRAM_RENAMING_DECLARATION
5559 -- | GENERIC_RENAMING_DECLARATION
5561 --------------------------------------
5562 -- 8.5 Object Renaming Declaration --
5563 --------------------------------------
5565 -- OBJECT_RENAMING_DECLARATION ::=
5566 -- DEFINING_IDENTIFIER :
5567 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5568 -- [ASPECT_SPECIFICATIONS];
5569 -- | DEFINING_IDENTIFIER :
5570 -- ACCESS_DEFINITION renames object_NAME
5571 -- [ASPECT_SPECIFICATIONS];
5573 -- Note: Access_Definition is an optional field that gives support to
5574 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5575 -- Subtype_Indication field or else the Access_Definition field.
5577 -- N_Object_Renaming_Declaration
5578 -- Sloc points to first identifier
5579 -- Defining_Identifier (Node1)
5580 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5581 -- Subtype_Mark (Node4) (set to Empty if not present)
5582 -- Access_Definition (Node3) (set to Empty if not present)
5583 -- Name (Node2)
5584 -- Corresponding_Generic_Association (Node5-Sem)
5586 -----------------------------------------
5587 -- 8.5 Exception Renaming Declaration --
5588 -----------------------------------------
5590 -- EXCEPTION_RENAMING_DECLARATION ::=
5591 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5592 -- [ASPECT_SPECIFICATIONS];
5594 -- N_Exception_Renaming_Declaration
5595 -- Sloc points to first identifier
5596 -- Defining_Identifier (Node1)
5597 -- Name (Node2)
5599 ---------------------------------------
5600 -- 8.5 Package Renaming Declaration --
5601 ---------------------------------------
5603 -- PACKAGE_RENAMING_DECLARATION ::=
5604 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5605 -- [ASPECT_SPECIFICATIONS];
5607 -- N_Package_Renaming_Declaration
5608 -- Sloc points to PACKAGE
5609 -- Defining_Unit_Name (Node1)
5610 -- Name (Node2)
5611 -- Parent_Spec (Node4-Sem)
5613 ------------------------------------------
5614 -- 8.5 Subprogram Renaming Declaration --
5615 ------------------------------------------
5617 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5618 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5619 -- [ASPECT_SPECIFICATIONS];
5621 -- N_Subprogram_Renaming_Declaration
5622 -- Sloc points to RENAMES
5623 -- Specification (Node1)
5624 -- Name (Node2)
5625 -- Parent_Spec (Node4-Sem)
5626 -- Corresponding_Spec (Node5-Sem)
5627 -- Corresponding_Formal_Spec (Node3-Sem)
5628 -- From_Default (Flag6-Sem)
5630 -----------------------------------------
5631 -- 8.5.5 Generic Renaming Declaration --
5632 -----------------------------------------
5634 -- GENERIC_RENAMING_DECLARATION ::=
5635 -- generic package DEFINING_PROGRAM_UNIT_NAME
5636 -- renames generic_package_NAME
5637 -- [ASPECT_SPECIFICATIONS];
5638 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5639 -- renames generic_procedure_NAME
5640 -- [ASPECT_SPECIFICATIONS];
5641 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5642 -- renames generic_function_NAME
5643 -- [ASPECT_SPECIFICATIONS];
5645 -- N_Generic_Package_Renaming_Declaration
5646 -- Sloc points to GENERIC
5647 -- Defining_Unit_Name (Node1)
5648 -- Name (Node2)
5649 -- Parent_Spec (Node4-Sem)
5651 -- N_Generic_Procedure_Renaming_Declaration
5652 -- Sloc points to GENERIC
5653 -- Defining_Unit_Name (Node1)
5654 -- Name (Node2)
5655 -- Parent_Spec (Node4-Sem)
5657 -- N_Generic_Function_Renaming_Declaration
5658 -- Sloc points to GENERIC
5659 -- Defining_Unit_Name (Node1)
5660 -- Name (Node2)
5661 -- Parent_Spec (Node4-Sem)
5663 --------------------------------
5664 -- 9.1 Task Type Declaration --
5665 --------------------------------
5667 -- TASK_TYPE_DECLARATION ::=
5668 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5669 -- [ASPECT_SPECIFICATIONS]
5670 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5672 -- N_Task_Type_Declaration
5673 -- Sloc points to TASK
5674 -- Defining_Identifier (Node1)
5675 -- Discriminant_Specifications (List4) (set to No_List if no
5676 -- discriminant part)
5677 -- Interface_List (List2) (set to No_List if none)
5678 -- Task_Definition (Node3) (set to Empty if not present)
5679 -- Corresponding_Body (Node5-Sem)
5681 ----------------------------------
5682 -- 9.1 Single Task Declaration --
5683 ----------------------------------
5685 -- SINGLE_TASK_DECLARATION ::=
5686 -- task DEFINING_IDENTIFIER
5687 -- [ASPECT_SPECIFICATIONS]
5688 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5690 -- N_Single_Task_Declaration
5691 -- Sloc points to TASK
5692 -- Defining_Identifier (Node1)
5693 -- Interface_List (List2) (set to No_List if none)
5694 -- Task_Definition (Node3) (set to Empty if not present)
5696 --------------------------
5697 -- 9.1 Task Definition --
5698 --------------------------
5700 -- TASK_DEFINITION ::=
5701 -- {TASK_ITEM}
5702 -- [private
5703 -- {TASK_ITEM}]
5704 -- end [task_IDENTIFIER]
5706 -- Note: as a result of semantic analysis, the list of task items can
5707 -- include implicit type declarations resulting from entry families.
5709 -- N_Task_Definition
5710 -- Sloc points to first token of task definition
5711 -- Visible_Declarations (List2)
5712 -- Private_Declarations (List3) (set to No_List if no private part)
5713 -- End_Label (Node4)
5714 -- Has_Storage_Size_Pragma (Flag5-Sem)
5715 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5717 --------------------
5718 -- 9.1 Task Item --
5719 --------------------
5721 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5723 --------------------
5724 -- 9.1 Task Body --
5725 --------------------
5727 -- TASK_BODY ::=
5728 -- task body task_DEFINING_IDENTIFIER
5729 -- [ASPECT_SPECIFICATIONS]
5730 -- is
5731 -- DECLARATIVE_PART
5732 -- begin
5733 -- HANDLED_SEQUENCE_OF_STATEMENTS
5734 -- end [task_IDENTIFIER];
5736 -- Gigi restriction: This node never appears
5738 -- N_Task_Body
5739 -- Sloc points to TASK
5740 -- Defining_Identifier (Node1)
5741 -- Declarations (List2)
5742 -- Handled_Statement_Sequence (Node4)
5743 -- Is_Task_Master (Flag5-Sem)
5744 -- Activation_Chain_Entity (Node3-Sem)
5745 -- Corresponding_Spec (Node5-Sem)
5746 -- Was_Originally_Stub (Flag13-Sem)
5748 -------------------------------------
5749 -- 9.4 Protected Type Declaration --
5750 -------------------------------------
5752 -- PROTECTED_TYPE_DECLARATION ::=
5753 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5754 -- [ASPECT_SPECIFICATIONS]
5755 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5757 -- Note: protected type declarations are not permitted in Ada 83 mode
5759 -- N_Protected_Type_Declaration
5760 -- Sloc points to PROTECTED
5761 -- Defining_Identifier (Node1)
5762 -- Discriminant_Specifications (List4) (set to No_List if no
5763 -- discriminant part)
5764 -- Interface_List (List2) (set to No_List if none)
5765 -- Protected_Definition (Node3)
5766 -- Corresponding_Body (Node5-Sem)
5768 ---------------------------------------
5769 -- 9.4 Single Protected Declaration --
5770 ---------------------------------------
5772 -- SINGLE_PROTECTED_DECLARATION ::=
5773 -- protected DEFINING_IDENTIFIER
5774 -- [ASPECT_SPECIFICATIONS]
5775 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5777 -- Note: single protected declarations are not allowed in Ada 83 mode
5779 -- N_Single_Protected_Declaration
5780 -- Sloc points to PROTECTED
5781 -- Defining_Identifier (Node1)
5782 -- Interface_List (List2) (set to No_List if none)
5783 -- Protected_Definition (Node3)
5785 -------------------------------
5786 -- 9.4 Protected Definition --
5787 -------------------------------
5789 -- PROTECTED_DEFINITION ::=
5790 -- {PROTECTED_OPERATION_DECLARATION}
5791 -- [private
5792 -- {PROTECTED_ELEMENT_DECLARATION}]
5793 -- end [protected_IDENTIFIER]
5795 -- N_Protected_Definition
5796 -- Sloc points to first token of protected definition
5797 -- Visible_Declarations (List2)
5798 -- Private_Declarations (List3) (set to No_List if no private part)
5799 -- End_Label (Node4)
5801 ------------------------------------------
5802 -- 9.4 Protected Operation Declaration --
5803 ------------------------------------------
5805 -- PROTECTED_OPERATION_DECLARATION ::=
5806 -- SUBPROGRAM_DECLARATION
5807 -- | ENTRY_DECLARATION
5808 -- | REPRESENTATION_CLAUSE
5810 ----------------------------------------
5811 -- 9.4 Protected Element Declaration --
5812 ----------------------------------------
5814 -- PROTECTED_ELEMENT_DECLARATION ::=
5815 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5817 -------------------------
5818 -- 9.4 Protected Body --
5819 -------------------------
5821 -- PROTECTED_BODY ::=
5822 -- protected body DEFINING_IDENTIFIER
5823 -- [ASPECT_SPECIFICATIONS];
5824 -- is
5825 -- {PROTECTED_OPERATION_ITEM}
5826 -- end [protected_IDENTIFIER];
5828 -- Note: protected bodies are not allowed in Ada 83 mode
5830 -- Gigi restriction: This node never appears
5832 -- N_Protected_Body
5833 -- Sloc points to PROTECTED
5834 -- Defining_Identifier (Node1)
5835 -- Declarations (List2) protected operation items (and pragmas)
5836 -- End_Label (Node4)
5837 -- Corresponding_Spec (Node5-Sem)
5838 -- Was_Originally_Stub (Flag13-Sem)
5840 -----------------------------------
5841 -- 9.4 Protected Operation Item --
5842 -----------------------------------
5844 -- PROTECTED_OPERATION_ITEM ::=
5845 -- SUBPROGRAM_DECLARATION
5846 -- | SUBPROGRAM_BODY
5847 -- | ENTRY_BODY
5848 -- | REPRESENTATION_CLAUSE
5850 ------------------------------
5851 -- 9.5.2 Entry Declaration --
5852 ------------------------------
5854 -- ENTRY_DECLARATION ::=
5855 -- [[not] overriding]
5856 -- entry DEFINING_IDENTIFIER
5857 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5858 -- [ASPECT_SPECIFICATIONS];
5860 -- N_Entry_Declaration
5861 -- Sloc points to ENTRY
5862 -- Defining_Identifier (Node1)
5863 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5864 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5865 -- Corresponding_Body (Node5-Sem)
5866 -- Must_Override (Flag14) set if overriding indicator present
5867 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5869 -- Note: overriding indicator is an Ada 2005 feature
5871 -----------------------------
5872 -- 9.5.2 Accept statement --
5873 -----------------------------
5875 -- ACCEPT_STATEMENT ::=
5876 -- accept entry_DIRECT_NAME
5877 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5878 -- HANDLED_SEQUENCE_OF_STATEMENTS
5879 -- end [entry_IDENTIFIER]];
5881 -- Gigi restriction: This node never appears
5883 -- Note: there are no explicit declarations allowed in an accept
5884 -- statement. However, the implicit declarations for any statement
5885 -- identifiers (labels and block/loop identifiers) are declarations
5886 -- that belong logically to the accept statement, and that is why
5887 -- there is a Declarations field in this node.
5889 -- N_Accept_Statement
5890 -- Sloc points to ACCEPT
5891 -- Entry_Direct_Name (Node1)
5892 -- Entry_Index (Node5) (set to Empty if not present)
5893 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5894 -- Handled_Statement_Sequence (Node4)
5895 -- Declarations (List2) (set to No_List if no declarations)
5897 ------------------------
5898 -- 9.5.2 Entry Index --
5899 ------------------------
5901 -- ENTRY_INDEX ::= EXPRESSION
5903 -----------------------
5904 -- 9.5.2 Entry Body --
5905 -----------------------
5907 -- ENTRY_BODY ::=
5908 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5909 -- DECLARATIVE_PART
5910 -- begin
5911 -- HANDLED_SEQUENCE_OF_STATEMENTS
5912 -- end [entry_IDENTIFIER];
5914 -- ENTRY_BARRIER ::= when CONDITION
5916 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5917 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5918 -- too full (it would otherwise have too many fields)
5920 -- Gigi restriction: This node never appears
5922 -- N_Entry_Body
5923 -- Sloc points to ENTRY
5924 -- Defining_Identifier (Node1)
5925 -- Entry_Body_Formal_Part (Node5)
5926 -- Declarations (List2)
5927 -- Handled_Statement_Sequence (Node4)
5928 -- Activation_Chain_Entity (Node3-Sem)
5930 -----------------------------------
5931 -- 9.5.2 Entry Body Formal Part --
5932 -----------------------------------
5934 -- ENTRY_BODY_FORMAL_PART ::=
5935 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5937 -- Note that an entry body formal part node is present even if it is
5938 -- empty. This reflects the grammar, in which it is the components of
5939 -- the entry body formal part that are optional, not the entry body
5940 -- formal part itself. Also this means that the barrier condition
5941 -- always has somewhere to be stored.
5943 -- Gigi restriction: This node never appears
5945 -- N_Entry_Body_Formal_Part
5946 -- Sloc points to first token
5947 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5948 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5949 -- Condition (Node1) from entry barrier of entry body
5951 --------------------------
5952 -- 9.5.2 Entry Barrier --
5953 --------------------------
5955 -- ENTRY_BARRIER ::= when CONDITION
5957 --------------------------------------
5958 -- 9.5.2 Entry Index Specification --
5959 --------------------------------------
5961 -- ENTRY_INDEX_SPECIFICATION ::=
5962 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5964 -- Gigi restriction: This node never appears
5966 -- N_Entry_Index_Specification
5967 -- Sloc points to FOR
5968 -- Defining_Identifier (Node1)
5969 -- Discrete_Subtype_Definition (Node4)
5971 ---------------------------------
5972 -- 9.5.3 Entry Call Statement --
5973 ---------------------------------
5975 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5977 -- The parser may generate a procedure call for this construct. The
5978 -- semantic pass must correct this misidentification where needed.
5980 -- Gigi restriction: This node never appears
5982 -- N_Entry_Call_Statement
5983 -- Sloc points to first token of name
5984 -- Name (Node2)
5985 -- Parameter_Associations (List3) (set to No_List if no
5986 -- actual parameter part)
5987 -- First_Named_Actual (Node4-Sem)
5989 ------------------------------
5990 -- 9.5.4 Requeue Statement --
5991 ------------------------------
5993 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5995 -- Note: requeue statements are not permitted in Ada 83 mode
5997 -- Gigi restriction: This node never appears
5999 -- N_Requeue_Statement
6000 -- Sloc points to REQUEUE
6001 -- Name (Node2)
6002 -- Abort_Present (Flag15)
6004 --------------------------
6005 -- 9.6 Delay Statement --
6006 --------------------------
6008 -- DELAY_STATEMENT ::=
6009 -- DELAY_UNTIL_STATEMENT
6010 -- | DELAY_RELATIVE_STATEMENT
6012 --------------------------------
6013 -- 9.6 Delay Until Statement --
6014 --------------------------------
6016 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6018 -- Note: delay until statements are not permitted in Ada 83 mode
6020 -- Gigi restriction: This node never appears
6022 -- N_Delay_Until_Statement
6023 -- Sloc points to DELAY
6024 -- Expression (Node3)
6026 -----------------------------------
6027 -- 9.6 Delay Relative Statement --
6028 -----------------------------------
6030 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6032 -- Gigi restriction: This node never appears
6034 -- N_Delay_Relative_Statement
6035 -- Sloc points to DELAY
6036 -- Expression (Node3)
6038 ---------------------------
6039 -- 9.7 Select Statement --
6040 ---------------------------
6042 -- SELECT_STATEMENT ::=
6043 -- SELECTIVE_ACCEPT
6044 -- | TIMED_ENTRY_CALL
6045 -- | CONDITIONAL_ENTRY_CALL
6046 -- | ASYNCHRONOUS_SELECT
6048 -----------------------------
6049 -- 9.7.1 Selective Accept --
6050 -----------------------------
6052 -- SELECTIVE_ACCEPT ::=
6053 -- select
6054 -- [GUARD]
6055 -- SELECT_ALTERNATIVE
6056 -- {or
6057 -- [GUARD]
6058 -- SELECT_ALTERNATIVE}
6059 -- [else
6060 -- SEQUENCE_OF_STATEMENTS]
6061 -- end select;
6063 -- Gigi restriction: This node never appears
6065 -- Note: the guard expression, if present, appears in the node for
6066 -- the select alternative.
6068 -- N_Selective_Accept
6069 -- Sloc points to SELECT
6070 -- Select_Alternatives (List1)
6071 -- Else_Statements (List4) (set to No_List if no else part)
6073 ------------------
6074 -- 9.7.1 Guard --
6075 ------------------
6077 -- GUARD ::= when CONDITION =>
6079 -- As noted above, the CONDITION that is part of a GUARD is included
6080 -- in the node for the select alternative for convenience.
6082 -------------------------------
6083 -- 9.7.1 Select Alternative --
6084 -------------------------------
6086 -- SELECT_ALTERNATIVE ::=
6087 -- ACCEPT_ALTERNATIVE
6088 -- | DELAY_ALTERNATIVE
6089 -- | TERMINATE_ALTERNATIVE
6091 -------------------------------
6092 -- 9.7.1 Accept Alternative --
6093 -------------------------------
6095 -- ACCEPT_ALTERNATIVE ::=
6096 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6098 -- Gigi restriction: This node never appears
6100 -- N_Accept_Alternative
6101 -- Sloc points to ACCEPT
6102 -- Accept_Statement (Node2)
6103 -- Condition (Node1) from the guard (set to Empty if no guard present)
6104 -- Statements (List3) (set to Empty_List if no statements)
6105 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6106 -- Accept_Handler_Records (List5-Sem)
6108 ------------------------------
6109 -- 9.7.1 Delay Alternative --
6110 ------------------------------
6112 -- DELAY_ALTERNATIVE ::=
6113 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6115 -- Gigi restriction: This node never appears
6117 -- N_Delay_Alternative
6118 -- Sloc points to DELAY
6119 -- Delay_Statement (Node2)
6120 -- Condition (Node1) from the guard (set to Empty if no guard present)
6121 -- Statements (List3) (set to Empty_List if no statements)
6122 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6124 ----------------------------------
6125 -- 9.7.1 Terminate Alternative --
6126 ----------------------------------
6128 -- TERMINATE_ALTERNATIVE ::= terminate;
6130 -- Gigi restriction: This node never appears
6132 -- N_Terminate_Alternative
6133 -- Sloc points to TERMINATE
6134 -- Condition (Node1) from the guard (set to Empty if no guard present)
6135 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6136 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6138 -----------------------------
6139 -- 9.7.2 Timed Entry Call --
6140 -----------------------------
6142 -- TIMED_ENTRY_CALL ::=
6143 -- select
6144 -- ENTRY_CALL_ALTERNATIVE
6145 -- or
6146 -- DELAY_ALTERNATIVE
6147 -- end select;
6149 -- Gigi restriction: This node never appears
6151 -- N_Timed_Entry_Call
6152 -- Sloc points to SELECT
6153 -- Entry_Call_Alternative (Node1)
6154 -- Delay_Alternative (Node4)
6156 -----------------------------------
6157 -- 9.7.2 Entry Call Alternative --
6158 -----------------------------------
6160 -- ENTRY_CALL_ALTERNATIVE ::=
6161 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6163 -- PROCEDURE_OR_ENTRY_CALL ::=
6164 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6166 -- Gigi restriction: This node never appears
6168 -- N_Entry_Call_Alternative
6169 -- Sloc points to first token of entry call statement
6170 -- Entry_Call_Statement (Node1)
6171 -- Statements (List3) (set to Empty_List if no statements)
6172 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6174 -----------------------------------
6175 -- 9.7.3 Conditional Entry Call --
6176 -----------------------------------
6178 -- CONDITIONAL_ENTRY_CALL ::=
6179 -- select
6180 -- ENTRY_CALL_ALTERNATIVE
6181 -- else
6182 -- SEQUENCE_OF_STATEMENTS
6183 -- end select;
6185 -- Gigi restriction: This node never appears
6187 -- N_Conditional_Entry_Call
6188 -- Sloc points to SELECT
6189 -- Entry_Call_Alternative (Node1)
6190 -- Else_Statements (List4)
6192 --------------------------------
6193 -- 9.7.4 Asynchronous Select --
6194 --------------------------------
6196 -- ASYNCHRONOUS_SELECT ::=
6197 -- select
6198 -- TRIGGERING_ALTERNATIVE
6199 -- then abort
6200 -- ABORTABLE_PART
6201 -- end select;
6203 -- Note: asynchronous select is not permitted in Ada 83 mode
6205 -- Gigi restriction: This node never appears
6207 -- N_Asynchronous_Select
6208 -- Sloc points to SELECT
6209 -- Triggering_Alternative (Node1)
6210 -- Abortable_Part (Node2)
6212 -----------------------------------
6213 -- 9.7.4 Triggering Alternative --
6214 -----------------------------------
6216 -- TRIGGERING_ALTERNATIVE ::=
6217 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6219 -- Gigi restriction: This node never appears
6221 -- N_Triggering_Alternative
6222 -- Sloc points to first token of triggering statement
6223 -- Triggering_Statement (Node1)
6224 -- Statements (List3) (set to Empty_List if no statements)
6225 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6227 ---------------------------------
6228 -- 9.7.4 Triggering Statement --
6229 ---------------------------------
6231 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6233 ---------------------------
6234 -- 9.7.4 Abortable Part --
6235 ---------------------------
6237 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6239 -- Gigi restriction: This node never appears
6241 -- N_Abortable_Part
6242 -- Sloc points to ABORT
6243 -- Statements (List3)
6245 --------------------------
6246 -- 9.8 Abort Statement --
6247 --------------------------
6249 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6251 -- Gigi restriction: This node never appears
6253 -- N_Abort_Statement
6254 -- Sloc points to ABORT
6255 -- Names (List2)
6257 -------------------------
6258 -- 10.1.1 Compilation --
6259 -------------------------
6261 -- COMPILATION ::= {COMPILATION_UNIT}
6263 -- There is no explicit node in the tree for a compilation, since in
6264 -- general the compiler is processing only a single compilation unit
6265 -- at a time. It is possible to parse multiple units in syntax check
6266 -- only mode, but the trees are discarded in that case.
6268 ------------------------------
6269 -- 10.1.1 Compilation Unit --
6270 ------------------------------
6272 -- COMPILATION_UNIT ::=
6273 -- CONTEXT_CLAUSE LIBRARY_ITEM
6274 -- | CONTEXT_CLAUSE SUBUNIT
6276 -- The N_Compilation_Unit node itself represents the above syntax.
6277 -- However, there are two additional items not reflected in the above
6278 -- syntax. First we have the global declarations that are added by the
6279 -- code generator. These are outer level declarations (so they cannot
6280 -- be represented as being inside the units). An example is the wrapper
6281 -- subprograms that are created to do ABE checking. As always a list of
6282 -- declarations can contain actions as well (i.e. statements), and such
6283 -- statements are executed as part of the elaboration of the unit. Note
6284 -- that all such declarations are elaborated before the library unit.
6286 -- Similarly, certain actions need to be elaborated at the completion
6287 -- of elaboration of the library unit (notably the statement that sets
6288 -- the Boolean flag indicating that elaboration is complete).
6290 -- The third item not reflected in the syntax is pragmas that appear
6291 -- after the compilation unit. As always pragmas are a problem since
6292 -- they are not part of the formal syntax, but can be stuck into the
6293 -- source following a set of ad hoc rules, and we have to find an ad
6294 -- hoc way of sticking them into the tree. For pragmas that appear
6295 -- before the library unit, we just consider them to be part of the
6296 -- context clause, and pragmas can appear in the Context_Items list
6297 -- of the compilation unit. However, pragmas can also appear after
6298 -- the library item.
6300 -- To deal with all these problems, we create an auxiliary node for
6301 -- a compilation unit, referenced from the N_Compilation_Unit node,
6302 -- that contains these items.
6304 -- N_Compilation_Unit
6305 -- Sloc points to first token of defining unit name
6306 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6307 -- Context_Items (List1) context items and pragmas preceding unit
6308 -- Private_Present (Flag15) set if library unit has private keyword
6309 -- Unit (Node2) library item or subunit
6310 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6311 -- Has_No_Elaboration_Code (Flag17-Sem)
6312 -- Body_Required (Flag13-Sem) set for spec if body is required
6313 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6314 -- Context_Pending (Flag16-Sem)
6315 -- First_Inlined_Subprogram (Node3-Sem)
6316 -- Has_Pragma_Suppress_All (Flag14-Sem)
6318 -- N_Compilation_Unit_Aux
6319 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6320 -- Declarations (List2) (set to No_List if no global declarations)
6321 -- Actions (List1) (set to No_List if no actions)
6322 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6323 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6324 -- Default_Storage_Pool (Node3-Sem)
6326 --------------------------
6327 -- 10.1.1 Library Item --
6328 --------------------------
6330 -- LIBRARY_ITEM ::=
6331 -- [private] LIBRARY_UNIT_DECLARATION
6332 -- | LIBRARY_UNIT_BODY
6333 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6335 -- Note: PRIVATE is not allowed in Ada 83 mode
6337 -- There is no explicit node in the tree for library item, instead
6338 -- the declaration or body, and the flag for private if present,
6339 -- appear in the N_Compilation_Unit node.
6341 --------------------------------------
6342 -- 10.1.1 Library Unit Declaration --
6343 --------------------------------------
6345 -- LIBRARY_UNIT_DECLARATION ::=
6346 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6347 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6349 -----------------------------------------------
6350 -- 10.1.1 Library Unit Renaming Declaration --
6351 -----------------------------------------------
6353 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6354 -- PACKAGE_RENAMING_DECLARATION
6355 -- | GENERIC_RENAMING_DECLARATION
6356 -- | SUBPROGRAM_RENAMING_DECLARATION
6358 -------------------------------
6359 -- 10.1.1 Library unit body --
6360 -------------------------------
6362 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6364 ------------------------------
6365 -- 10.1.1 Parent Unit Name --
6366 ------------------------------
6368 -- PARENT_UNIT_NAME ::= NAME
6370 ----------------------------
6371 -- 10.1.2 Context clause --
6372 ----------------------------
6374 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6376 -- The context clause can include pragmas, and any pragmas that appear
6377 -- before the context clause proper (i.e. all configuration pragmas,
6378 -- also appear at the front of this list).
6380 --------------------------
6381 -- 10.1.2 Context_Item --
6382 --------------------------
6384 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6386 -------------------------
6387 -- 10.1.2 With clause --
6388 -------------------------
6390 -- WITH_CLAUSE ::=
6391 -- with library_unit_NAME {,library_unit_NAME};
6393 -- A separate With clause is built for each name, so that we have
6394 -- a Corresponding_Spec field for each with'ed spec. The flags
6395 -- First_Name and Last_Name are used to reconstruct the exact
6396 -- source form. When a list of names appears in one with clause,
6397 -- the first name in the list has First_Name set, and the last
6398 -- has Last_Name set. If the with clause has only one name, then
6399 -- both of the flags First_Name and Last_Name are set in this name.
6401 -- Note: in the case of implicit with's that are installed by the
6402 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6403 -- set to Standard_Location, but it is incorrect to test the Sloc
6404 -- to find out if a with clause is implicit, test the flag instead.
6406 -- N_With_Clause
6407 -- Sloc points to first token of library unit name
6408 -- Withed_Body (Node1-Sem)
6409 -- Name (Node2)
6410 -- Next_Implicit_With (Node3-Sem)
6411 -- Library_Unit (Node4-Sem)
6412 -- Corresponding_Spec (Node5-Sem)
6413 -- First_Name (Flag5) (set to True if first name or only one name)
6414 -- Last_Name (Flag6) (set to True if last name or only one name)
6415 -- Context_Installed (Flag13-Sem)
6416 -- Elaborate_Present (Flag4-Sem)
6417 -- Elaborate_All_Present (Flag14-Sem)
6418 -- Elaborate_All_Desirable (Flag9-Sem)
6419 -- Elaborate_Desirable (Flag11-Sem)
6420 -- Private_Present (Flag15) set if with_clause has private keyword
6421 -- Implicit_With (Flag16-Sem)
6422 -- Implicit_With_From_Instantiation (Flag12-Sem)
6423 -- Limited_Present (Flag17) set if LIMITED is present
6424 -- Limited_View_Installed (Flag18-Sem)
6425 -- Unreferenced_In_Spec (Flag7-Sem)
6426 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6428 -- Note: Limited_Present and Limited_View_Installed are used to support
6429 -- the implementation of Ada 2005 (AI-50217).
6431 -- Similarly, Private_Present is used to support the implementation of
6432 -- Ada 2005 (AI-50262).
6434 -- Note: if the WITH clause refers to a standard library unit, then a
6435 -- limited with clause is changed into a normal with clause, because we
6436 -- are not prepared to deal with limited with in the context of Rtsfind.
6437 -- So in this case, the Limited_Present flag will be False in the final
6438 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6439 -- ASIS the flag will remain set in this situation.
6441 ----------------------
6442 -- With_Type clause --
6443 ----------------------
6445 -- This is a GNAT extension, used to implement mutually recursive
6446 -- types declared in different packages.
6448 -- Note: this is now obsolete. The functionality of this construct
6449 -- is now implemented by the Ada 2005 limited_with_clause.
6451 ---------------------
6452 -- 10.2 Body stub --
6453 ---------------------
6455 -- BODY_STUB ::=
6456 -- SUBPROGRAM_BODY_STUB
6457 -- | PACKAGE_BODY_STUB
6458 -- | TASK_BODY_STUB
6459 -- | PROTECTED_BODY_STUB
6461 ----------------------------------
6462 -- 10.1.3 Subprogram Body Stub --
6463 ----------------------------------
6465 -- SUBPROGRAM_BODY_STUB ::=
6466 -- SUBPROGRAM_SPECIFICATION is separate
6467 -- [ASPECT_SPECIFICATION];
6469 -- N_Subprogram_Body_Stub
6470 -- Sloc points to FUNCTION or PROCEDURE
6471 -- Specification (Node1)
6472 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6473 -- Library_Unit (Node4-Sem) points to the subunit
6474 -- Corresponding_Body (Node5-Sem)
6476 -------------------------------
6477 -- 10.1.3 Package Body Stub --
6478 -------------------------------
6480 -- PACKAGE_BODY_STUB ::=
6481 -- package body DEFINING_IDENTIFIER is separate
6482 -- [ASPECT_SPECIFICATION];
6484 -- N_Package_Body_Stub
6485 -- Sloc points to PACKAGE
6486 -- Defining_Identifier (Node1)
6487 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6488 -- Library_Unit (Node4-Sem) points to the subunit
6489 -- Corresponding_Body (Node5-Sem)
6491 ----------------------------
6492 -- 10.1.3 Task Body Stub --
6493 ----------------------------
6495 -- TASK_BODY_STUB ::=
6496 -- task body DEFINING_IDENTIFIER is separate
6497 -- [ASPECT_SPECIFICATION];
6499 -- N_Task_Body_Stub
6500 -- Sloc points to TASK
6501 -- Defining_Identifier (Node1)
6502 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6503 -- Library_Unit (Node4-Sem) points to the subunit
6504 -- Corresponding_Body (Node5-Sem)
6506 ---------------------------------
6507 -- 10.1.3 Protected Body Stub --
6508 ---------------------------------
6510 -- PROTECTED_BODY_STUB ::=
6511 -- protected body DEFINING_IDENTIFIER is separate
6512 -- [ASPECT_SPECIFICATION];
6514 -- Note: protected body stubs are not allowed in Ada 83 mode
6516 -- N_Protected_Body_Stub
6517 -- Sloc points to PROTECTED
6518 -- Defining_Identifier (Node1)
6519 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6520 -- Library_Unit (Node4-Sem) points to the subunit
6521 -- Corresponding_Body (Node5-Sem)
6523 ---------------------
6524 -- 10.1.3 Subunit --
6525 ---------------------
6527 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6529 -- N_Subunit
6530 -- Sloc points to SEPARATE
6531 -- Name (Node2) is the name of the parent unit
6532 -- Proper_Body (Node1) is the subunit body
6533 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6535 ---------------------------------
6536 -- 11.1 Exception Declaration --
6537 ---------------------------------
6539 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6540 -- [ASPECT_SPECIFICATIONS];
6542 -- For consistency with object declarations etc., the parser converts
6543 -- the case of multiple identifiers being declared to a series of
6544 -- declarations in which the expression is copied, using the More_Ids
6545 -- and Prev_Ids flags to remember the source form as described in the
6546 -- section on "Handling of Defining Identifier Lists".
6548 -- N_Exception_Declaration
6549 -- Sloc points to EXCEPTION
6550 -- Defining_Identifier (Node1)
6551 -- Expression (Node3-Sem)
6552 -- Renaming_Exception (Node2-Sem)
6553 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6554 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6556 ------------------------------------------
6557 -- 11.2 Handled Sequence Of Statements --
6558 ------------------------------------------
6560 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6561 -- SEQUENCE_OF_STATEMENTS
6562 -- [exception
6563 -- EXCEPTION_HANDLER
6564 -- {EXCEPTION_HANDLER}]
6565 -- [at end
6566 -- cleanup_procedure_call (param, param, param, ...);]
6568 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6569 -- used only internally currently, but is considered to be syntactic.
6570 -- At the moment, the only cleanup action allowed is a single call to
6571 -- a parameterless procedure, and the Identifier field of the node is
6572 -- the procedure to be called. The cleanup action occurs whenever the
6573 -- sequence of statements is left for any reason. The possible reasons
6574 -- are:
6575 -- 1. reaching the end of the sequence
6576 -- 2. exit, return, or goto
6577 -- 3. exception or abort
6578 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6579 -- entirely in the back end. In this case, a handled sequence of
6580 -- statements with an "at end" cannot also have exception handlers.
6581 -- For other back ends, such as gcc with front-end SJLJ, the
6582 -- implementation is split between the front end and back end; the front
6583 -- end implements 3, and the back end implements 1 and 2. In this case,
6584 -- if there is an "at end", the front end inserts the appropriate
6585 -- exception handler, and this handler takes precedence over "at end"
6586 -- in case of exception.
6588 -- The inserted exception handler is of the form:
6590 -- when all others =>
6591 -- cleanup;
6592 -- raise;
6594 -- where cleanup is the procedure to be called. The reason we do this is
6595 -- so that the front end can handle the necessary entries in the
6596 -- exception tables, and other exception handler actions required as
6597 -- part of the normal handling for exception handlers.
6599 -- The AT END cleanup handler protects only the sequence of statements
6600 -- (not the associated declarations of the parent), just like exception
6601 -- handlers. The big difference is that the cleanup procedure is called
6602 -- on either a normal or an abnormal exit from the statement sequence.
6604 -- Note: the list of Exception_Handlers can contain pragmas as well
6605 -- as actual handlers. In practice these pragmas can only occur at
6606 -- the start of the list, since any pragmas occurring later on will
6607 -- be included in the statement list of the corresponding handler.
6609 -- Note: although in the Ada syntax, the sequence of statements in
6610 -- a handled sequence of statements can only contain statements, we
6611 -- allow free mixing of declarations and statements in the resulting
6612 -- expanded tree. This is for example used to deal with the case of
6613 -- a cleanup procedure that must handle declarations as well as the
6614 -- statements of a block.
6616 -- Note: the cleanup_procedure_call does not go through the common
6617 -- processing for calls, which in particular means that it will not be
6618 -- automatically inlined in all cases, even though the procedure to be
6619 -- called is marked inline. More specifically, if the procedure comes
6620 -- from another unit than the main source unit, for example a run-time
6621 -- unit, then it needs to be manually added to the list of bodies to be
6622 -- inlined by invoking Add_Inlined_Body on it.
6624 -- N_Handled_Sequence_Of_Statements
6625 -- Sloc points to first token of first statement
6626 -- Statements (List3)
6627 -- End_Label (Node4) (set to Empty if expander generated)
6628 -- Exception_Handlers (List5) (set to No_List if none present)
6629 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6630 -- First_Real_Statement (Node2-Sem)
6632 -- Note: the parent always contains a Declarations field which contains
6633 -- declarations associated with the handled sequence of statements. This
6634 -- is true even in the case of an accept statement (see description of
6635 -- the N_Accept_Statement node).
6637 -- End_Label refers to the containing construct
6639 -----------------------------
6640 -- 11.2 Exception Handler --
6641 -----------------------------
6643 -- EXCEPTION_HANDLER ::=
6644 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6645 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6646 -- SEQUENCE_OF_STATEMENTS
6648 -- Note: choice parameter specification is not allowed in Ada 83 mode
6650 -- N_Exception_Handler
6651 -- Sloc points to WHEN
6652 -- Choice_Parameter (Node2) (set to Empty if not present)
6653 -- Exception_Choices (List4)
6654 -- Statements (List3)
6655 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6656 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6657 -- Local_Raise_Not_OK (Flag7-Sem)
6658 -- Has_Local_Raise (Flag8-Sem)
6660 ------------------------------------------
6661 -- 11.2 Choice parameter specification --
6662 ------------------------------------------
6664 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6666 ----------------------------
6667 -- 11.2 Exception Choice --
6668 ----------------------------
6670 -- EXCEPTION_CHOICE ::= exception_NAME | others
6672 -- Except in the case of OTHERS, no explicit node appears in the tree
6673 -- for exception choice. Instead the exception name appears directly.
6674 -- An OTHERS choice is represented by a N_Others_Choice node (see
6675 -- section 3.8.1.
6677 -- Note: for the exception choice created for an at end handler, the
6678 -- exception choice is an N_Others_Choice node with All_Others set.
6680 ---------------------------
6681 -- 11.3 Raise Statement --
6682 ---------------------------
6684 -- RAISE_STATEMENT ::= raise [exception_NAME];
6686 -- In Ada 2005, we have
6688 -- RAISE_STATEMENT ::=
6689 -- raise; | raise exception_NAME [with string_EXPRESSION];
6691 -- N_Raise_Statement
6692 -- Sloc points to RAISE
6693 -- Name (Node2) (set to Empty if no exception name present)
6694 -- Expression (Node3) (set to Empty if no expression present)
6695 -- From_At_End (Flag4-Sem)
6697 ----------------------------
6698 -- 11.3 Raise Expression --
6699 ----------------------------
6701 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6703 -- N_Raise_Expression
6704 -- Sloc points to RAISE
6705 -- Name (Node2) (always present)
6706 -- Expression (Node3) (set to Empty if no expression present)
6707 -- Convert_To_Return_False (Flag13-Sem)
6708 -- plus fields for expression
6710 -------------------------------
6711 -- 12.1 Generic Declaration --
6712 -------------------------------
6714 -- GENERIC_DECLARATION ::=
6715 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6717 ------------------------------------------
6718 -- 12.1 Generic Subprogram Declaration --
6719 ------------------------------------------
6721 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6722 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6723 -- [ASPECT_SPECIFICATIONS];
6725 -- Note: Generic_Formal_Declarations can include pragmas
6727 -- N_Generic_Subprogram_Declaration
6728 -- Sloc points to GENERIC
6729 -- Specification (Node1) subprogram specification
6730 -- Corresponding_Body (Node5-Sem)
6731 -- Generic_Formal_Declarations (List2) from generic formal part
6732 -- Parent_Spec (Node4-Sem)
6734 ---------------------------------------
6735 -- 12.1 Generic Package Declaration --
6736 ---------------------------------------
6738 -- GENERIC_PACKAGE_DECLARATION ::=
6739 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6740 -- [ASPECT_SPECIFICATIONS];
6742 -- Note: when we do generics right, the Activation_Chain_Entity entry
6743 -- for this node can be removed (since the expander won't see generic
6744 -- units any more)???.
6746 -- Note: Generic_Formal_Declarations can include pragmas
6748 -- N_Generic_Package_Declaration
6749 -- Sloc points to GENERIC
6750 -- Specification (Node1) package specification
6751 -- Corresponding_Body (Node5-Sem)
6752 -- Generic_Formal_Declarations (List2) from generic formal part
6753 -- Parent_Spec (Node4-Sem)
6754 -- Activation_Chain_Entity (Node3-Sem)
6756 -------------------------------
6757 -- 12.1 Generic Formal Part --
6758 -------------------------------
6760 -- GENERIC_FORMAL_PART ::=
6761 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6763 ------------------------------------------------
6764 -- 12.1 Generic Formal Parameter Declaration --
6765 ------------------------------------------------
6767 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6768 -- FORMAL_OBJECT_DECLARATION
6769 -- | FORMAL_TYPE_DECLARATION
6770 -- | FORMAL_SUBPROGRAM_DECLARATION
6771 -- | FORMAL_PACKAGE_DECLARATION
6773 ---------------------------------
6774 -- 12.3 Generic Instantiation --
6775 ---------------------------------
6777 -- GENERIC_INSTANTIATION ::=
6778 -- package DEFINING_PROGRAM_UNIT_NAME is
6779 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6780 -- [ASPECT_SPECIFICATIONS];
6781 -- | [[not] overriding]
6782 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6783 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6784 -- [ASPECT_SPECIFICATIONS];
6785 -- | [[not] overriding]
6786 -- function DEFINING_DESIGNATOR is
6787 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6788 -- [ASPECT_SPECIFICATIONS];
6790 -- N_Package_Instantiation
6791 -- Sloc points to PACKAGE
6792 -- Defining_Unit_Name (Node1)
6793 -- Name (Node2)
6794 -- Generic_Associations (List3) (set to No_List if no
6795 -- generic actual part)
6796 -- Parent_Spec (Node4-Sem)
6797 -- Instance_Spec (Node5-Sem)
6798 -- ABE_Is_Certain (Flag18-Sem)
6800 -- N_Procedure_Instantiation
6801 -- Sloc points to PROCEDURE
6802 -- Defining_Unit_Name (Node1)
6803 -- Name (Node2)
6804 -- Parent_Spec (Node4-Sem)
6805 -- Generic_Associations (List3) (set to No_List if no
6806 -- generic actual part)
6807 -- Instance_Spec (Node5-Sem)
6808 -- Must_Override (Flag14) set if overriding indicator present
6809 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6810 -- ABE_Is_Certain (Flag18-Sem)
6812 -- N_Function_Instantiation
6813 -- Sloc points to FUNCTION
6814 -- Defining_Unit_Name (Node1)
6815 -- Name (Node2)
6816 -- Generic_Associations (List3) (set to No_List if no
6817 -- generic actual part)
6818 -- Parent_Spec (Node4-Sem)
6819 -- Instance_Spec (Node5-Sem)
6820 -- Must_Override (Flag14) set if overriding indicator present
6821 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6822 -- ABE_Is_Certain (Flag18-Sem)
6824 -- Note: overriding indicator is an Ada 2005 feature
6826 -------------------------------
6827 -- 12.3 Generic Actual Part --
6828 -------------------------------
6830 -- GENERIC_ACTUAL_PART ::=
6831 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6833 -------------------------------
6834 -- 12.3 Generic Association --
6835 -------------------------------
6837 -- GENERIC_ASSOCIATION ::=
6838 -- [generic_formal_parameter_SELECTOR_NAME =>]
6840 -- Note: unlike the procedure call case, a generic association node
6841 -- is generated for every association, even if no formal parameter
6842 -- selector name is present. In this case the parser will leave the
6843 -- Selector_Name field set to Empty, to be filled in later by the
6844 -- semantic pass.
6846 -- In Ada 2005, a formal may be associated with a box, if the
6847 -- association is part of the list of actuals for a formal package.
6848 -- If the association is given by OTHERS => <>, the association is
6849 -- an N_Others_Choice.
6851 -- N_Generic_Association
6852 -- Sloc points to first token of generic association
6853 -- Selector_Name (Node2) (set to Empty if no formal
6854 -- parameter selector name)
6855 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6856 -- Box_Present (Flag15) (for formal_package associations with a box)
6858 ---------------------------------------------
6859 -- 12.3 Explicit Generic Actual Parameter --
6860 ---------------------------------------------
6862 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6863 -- EXPRESSION | variable_NAME | subprogram_NAME
6864 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6866 -------------------------------------
6867 -- 12.4 Formal Object Declaration --
6868 -------------------------------------
6870 -- FORMAL_OBJECT_DECLARATION ::=
6871 -- DEFINING_IDENTIFIER_LIST :
6872 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6873 -- [ASPECT_SPECIFICATIONS];
6874 -- | DEFINING_IDENTIFIER_LIST :
6875 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6876 -- [ASPECT_SPECIFICATIONS];
6878 -- Although the syntax allows multiple identifiers in the list, the
6879 -- semantics is as though successive declarations were given with
6880 -- identical type definition and expression components. To simplify
6881 -- semantic processing, the parser represents a multiple declaration
6882 -- case as a sequence of single declarations, using the More_Ids and
6883 -- Prev_Ids flags to preserve the original source form as described
6884 -- in the section on "Handling of Defining Identifier Lists".
6886 -- N_Formal_Object_Declaration
6887 -- Sloc points to first identifier
6888 -- Defining_Identifier (Node1)
6889 -- In_Present (Flag15)
6890 -- Out_Present (Flag17)
6891 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6892 -- Subtype_Mark (Node4) (set to Empty if not present)
6893 -- Access_Definition (Node3) (set to Empty if not present)
6894 -- Default_Expression (Node5) (set to Empty if no default expression)
6895 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6896 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6898 -----------------------------------
6899 -- 12.5 Formal Type Declaration --
6900 -----------------------------------
6902 -- FORMAL_TYPE_DECLARATION ::=
6903 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6904 -- is FORMAL_TYPE_DEFINITION
6905 -- [ASPECT_SPECIFICATIONS];
6906 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6908 -- N_Formal_Type_Declaration
6909 -- Sloc points to TYPE
6910 -- Defining_Identifier (Node1)
6911 -- Formal_Type_Definition (Node3)
6912 -- Discriminant_Specifications (List4) (set to No_List if no
6913 -- discriminant part)
6914 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6916 ----------------------------------
6917 -- 12.5 Formal type definition --
6918 ----------------------------------
6920 -- FORMAL_TYPE_DEFINITION ::=
6921 -- FORMAL_PRIVATE_TYPE_DEFINITION
6922 -- | FORMAL_DERIVED_TYPE_DEFINITION
6923 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6924 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6925 -- | FORMAL_MODULAR_TYPE_DEFINITION
6926 -- | FORMAL_FLOATING_POINT_DEFINITION
6927 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6928 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6929 -- | FORMAL_ARRAY_TYPE_DEFINITION
6930 -- | FORMAL_ACCESS_TYPE_DEFINITION
6931 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6932 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6934 -- The Ada 2012 syntax introduces two new non-terminals:
6935 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6936 -- the latter category. Here we introduce an incomplete type definition
6937 -- in order to preserve as much as possible the existing structure.
6939 ---------------------------------------------
6940 -- 12.5.1 Formal Private Type Definition --
6941 ---------------------------------------------
6943 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6944 -- [[abstract] tagged] [limited] private
6946 -- Note: TAGGED is not allowed in Ada 83 mode
6948 -- N_Formal_Private_Type_Definition
6949 -- Sloc points to PRIVATE
6950 -- Uninitialized_Variable (Node3-Sem)
6951 -- Abstract_Present (Flag4)
6952 -- Tagged_Present (Flag15)
6953 -- Limited_Present (Flag17)
6955 --------------------------------------------
6956 -- 12.5.1 Formal Derived Type Definition --
6957 --------------------------------------------
6959 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6960 -- [abstract] [limited | synchronized]
6961 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6962 -- Note: this construct is not allowed in Ada 83 mode
6964 -- N_Formal_Derived_Type_Definition
6965 -- Sloc points to NEW
6966 -- Subtype_Mark (Node4)
6967 -- Private_Present (Flag15)
6968 -- Abstract_Present (Flag4)
6969 -- Limited_Present (Flag17)
6970 -- Synchronized_Present (Flag7)
6971 -- Interface_List (List2) (set to No_List if none)
6973 -----------------------------------------------
6974 -- 12.5.1 Formal Incomplete Type Definition --
6975 -----------------------------------------------
6977 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6979 -- N_Formal_Incomplete_Type_Definition
6980 -- Sloc points to identifier of parent
6981 -- Tagged_Present (Flag15)
6983 ---------------------------------------------
6984 -- 12.5.2 Formal Discrete Type Definition --
6985 ---------------------------------------------
6987 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6989 -- N_Formal_Discrete_Type_Definition
6990 -- Sloc points to (
6992 ---------------------------------------------------
6993 -- 12.5.2 Formal Signed Integer Type Definition --
6994 ---------------------------------------------------
6996 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6998 -- N_Formal_Signed_Integer_Type_Definition
6999 -- Sloc points to RANGE
7001 --------------------------------------------
7002 -- 12.5.2 Formal Modular Type Definition --
7003 --------------------------------------------
7005 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7007 -- N_Formal_Modular_Type_Definition
7008 -- Sloc points to MOD
7010 ----------------------------------------------
7011 -- 12.5.2 Formal Floating Point Definition --
7012 ----------------------------------------------
7014 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7016 -- N_Formal_Floating_Point_Definition
7017 -- Sloc points to DIGITS
7019 ----------------------------------------------------
7020 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7021 ----------------------------------------------------
7023 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7025 -- N_Formal_Ordinary_Fixed_Point_Definition
7026 -- Sloc points to DELTA
7028 ---------------------------------------------------
7029 -- 12.5.2 Formal Decimal Fixed Point Definition --
7030 ---------------------------------------------------
7032 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7034 -- Note: formal decimal fixed point definition not allowed in Ada 83
7036 -- N_Formal_Decimal_Fixed_Point_Definition
7037 -- Sloc points to DELTA
7039 ------------------------------------------
7040 -- 12.5.3 Formal Array Type Definition --
7041 ------------------------------------------
7043 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7045 -------------------------------------------
7046 -- 12.5.4 Formal Access Type Definition --
7047 -------------------------------------------
7049 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7051 ----------------------------------------------
7052 -- 12.5.5 Formal Interface Type Definition --
7053 ----------------------------------------------
7055 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7057 -----------------------------------------
7058 -- 12.6 Formal Subprogram Declaration --
7059 -----------------------------------------
7061 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7062 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7063 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7065 --------------------------------------------------
7066 -- 12.6 Formal Concrete Subprogram Declaration --
7067 --------------------------------------------------
7069 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7070 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7071 -- [ASPECT_SPECIFICATIONS];
7073 -- N_Formal_Concrete_Subprogram_Declaration
7074 -- Sloc points to WITH
7075 -- Specification (Node1)
7076 -- Default_Name (Node2) (set to Empty if no subprogram default)
7077 -- Box_Present (Flag15)
7079 -- Note: if no subprogram default is present, then Name is set
7080 -- to Empty, and Box_Present is False.
7082 --------------------------------------------------
7083 -- 12.6 Formal Abstract Subprogram Declaration --
7084 --------------------------------------------------
7086 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7087 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7088 -- [ASPECT_SPECIFICATIONS];
7090 -- N_Formal_Abstract_Subprogram_Declaration
7091 -- Sloc points to WITH
7092 -- Specification (Node1)
7093 -- Default_Name (Node2) (set to Empty if no subprogram default)
7094 -- Box_Present (Flag15)
7096 -- Note: if no subprogram default is present, then Name is set
7097 -- to Empty, and Box_Present is False.
7099 ------------------------------
7100 -- 12.6 Subprogram Default --
7101 ------------------------------
7103 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7105 -- There is no separate node in the tree for a subprogram default.
7106 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7107 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7108 -- default name or box indication, as needed.
7110 ------------------------
7111 -- 12.6 Default Name --
7112 ------------------------
7114 -- DEFAULT_NAME ::= NAME
7116 --------------------------------------
7117 -- 12.7 Formal Package Declaration --
7118 --------------------------------------
7120 -- FORMAL_PACKAGE_DECLARATION ::=
7121 -- with package DEFINING_IDENTIFIER
7122 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7123 -- [ASPECT_SPECIFICATIONS];
7125 -- Note: formal package declarations not allowed in Ada 83 mode
7127 -- N_Formal_Package_Declaration
7128 -- Sloc points to WITH
7129 -- Defining_Identifier (Node1)
7130 -- Name (Node2)
7131 -- Generic_Associations (List3) (set to No_List if (<>) case or
7132 -- empty generic actual part)
7133 -- Box_Present (Flag15)
7134 -- Instance_Spec (Node5-Sem)
7135 -- ABE_Is_Certain (Flag18-Sem)
7137 --------------------------------------
7138 -- 12.7 Formal Package Actual Part --
7139 --------------------------------------
7141 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7142 -- ([OTHERS] => <>)
7143 -- | [GENERIC_ACTUAL_PART]
7144 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7146 -- FORMAL_PACKAGE_ASSOCIATION ::=
7147 -- GENERIC_ASSOCIATION
7148 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7150 -- There is no explicit node in the tree for a formal package actual
7151 -- part. Instead the information appears in the parent node (i.e. the
7152 -- formal package declaration node itself).
7154 -- There is no explicit node for a formal package association. All of
7155 -- them are represented either by a generic association, possibly with
7156 -- Box_Present, or by an N_Others_Choice.
7158 ---------------------------------
7159 -- 13.1 Representation clause --
7160 ---------------------------------
7162 -- REPRESENTATION_CLAUSE ::=
7163 -- ATTRIBUTE_DEFINITION_CLAUSE
7164 -- | ENUMERATION_REPRESENTATION_CLAUSE
7165 -- | RECORD_REPRESENTATION_CLAUSE
7166 -- | AT_CLAUSE
7168 ----------------------
7169 -- 13.1 Local Name --
7170 ----------------------
7172 -- LOCAL_NAME :=
7173 -- DIRECT_NAME
7174 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7175 -- | library_unit_NAME
7177 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7178 -- as an attribute reference, which has essentially the same form.
7180 ---------------------------------------
7181 -- 13.3 Attribute definition clause --
7182 ---------------------------------------
7184 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7185 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7186 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7188 -- In Ada 83, the expression must be a simple expression and the
7189 -- local name must be a direct name.
7191 -- Note: the only attribute definition clause that is processed by
7192 -- gigi is an address clause. For all other cases, the information
7193 -- is extracted by the front end and either results in setting entity
7194 -- information, e.g. Esize for the Size clause, or in appropriate
7195 -- expansion actions (e.g. in the case of Storage_Size).
7197 -- For an address clause, Gigi constructs the appropriate addressing
7198 -- code. It also ensures that no aliasing optimizations are made
7199 -- for the object for which the address clause appears.
7201 -- Note: for an address clause used to achieve an overlay:
7203 -- A : Integer;
7204 -- B : Integer;
7205 -- for B'Address use A'Address;
7207 -- the above rule means that Gigi will ensure that no optimizations
7208 -- will be made for B that would violate the implementation advice
7209 -- of RM 13.3(19). However, this advice applies only to B and not
7210 -- to A, which seems unfortunate. The GNAT front end will mark the
7211 -- object A as volatile to also prevent unwanted optimization
7212 -- assumptions based on no aliasing being made for B.
7214 -- N_Attribute_Definition_Clause
7215 -- Sloc points to FOR
7216 -- Name (Node2) the local name
7217 -- Chars (Name1) the identifier name from the attribute designator
7218 -- Expression (Node3) the expression or name
7219 -- Entity (Node4-Sem)
7220 -- Next_Rep_Item (Node5-Sem)
7221 -- From_At_Mod (Flag4-Sem)
7222 -- Check_Address_Alignment (Flag11-Sem)
7223 -- From_Aspect_Specification (Flag13-Sem)
7224 -- Is_Delayed_Aspect (Flag14-Sem)
7225 -- Address_Warning_Posted (Flag18-Sem)
7227 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7228 -- aspect name, and Entity is resolved already to reference the entity
7229 -- to which the aspect applies.
7231 -----------------------------------
7232 -- 13.3.1 Aspect Specifications --
7233 -----------------------------------
7235 -- We modify the RM grammar here, the RM grammar is:
7237 -- ASPECT_SPECIFICATION ::=
7238 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7239 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7241 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7243 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7245 -- That's inconvenient, since there is no non-terminal name for a single
7246 -- entry in the list of aspects. So we use this grammar instead:
7248 -- ASPECT_SPECIFICATIONS ::=
7249 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7251 -- ASPECT_SPECIFICATION =>
7252 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7254 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7256 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7258 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7259 -- aggregate with the elements of the aggregate corresponding to the
7260 -- successive arguments of the corresponding pragma.
7262 -- See separate package Aspects for details on the incorporation of
7263 -- these nodes into the tree, and how aspect specifications for a given
7264 -- declaration node are associated with that node.
7266 -- N_Aspect_Specification
7267 -- Sloc points to aspect identifier
7268 -- Identifier (Node1) aspect identifier
7269 -- Aspect_Rep_Item (Node2-Sem)
7270 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7271 -- Entity (Node4-Sem) entity to which the aspect applies
7272 -- Next_Rep_Item (Node5-Sem)
7273 -- Class_Present (Flag6) Set if 'Class present
7274 -- Is_Ignored (Flag9-Sem)
7275 -- Is_Checked (Flag11-Sem)
7276 -- Is_Delayed_Aspect (Flag14-Sem)
7277 -- Is_Disabled (Flag15-Sem)
7278 -- Is_Boolean_Aspect (Flag16-Sem)
7279 -- Split_PPC (Flag17) Set if split pre/post attribute
7281 -- Note: Aspect_Specification is an Ada 2012 feature
7283 -- Note: The Identifier serves to identify the aspect involved (it
7284 -- is the aspect whose name corresponds to the Chars field). This
7285 -- means that the other fields of this identifier are unused, and
7286 -- in particular we use the Entity field of this identifier to save
7287 -- a copy of the expression for visibility analysis, see spec of
7288 -- Sem_Ch13 for full details of this usage.
7290 -- In the case of aspects of the form xxx'Class, the aspect identifier
7291 -- is for xxx, and Class_Present is set to True.
7293 -- Note: When a Pre or Post aspect specification is processed, it is
7294 -- broken into AND THEN sections. The left most section has Split_PPC
7295 -- set to False, indicating that it is the original specification (e.g.
7296 -- for posting errors). For the other sections, Split_PPC is set True.
7298 ---------------------------------------------
7299 -- 13.4 Enumeration representation clause --
7300 ---------------------------------------------
7302 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7303 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7305 -- In Ada 83, the name must be a direct name
7307 -- N_Enumeration_Representation_Clause
7308 -- Sloc points to FOR
7309 -- Identifier (Node1) direct name
7310 -- Array_Aggregate (Node3)
7311 -- Next_Rep_Item (Node5-Sem)
7313 ---------------------------------
7314 -- 13.4 Enumeration aggregate --
7315 ---------------------------------
7317 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7319 ------------------------------------------
7320 -- 13.5.1 Record representation clause --
7321 ------------------------------------------
7323 -- RECORD_REPRESENTATION_CLAUSE ::=
7324 -- for first_subtype_LOCAL_NAME use
7325 -- record [MOD_CLAUSE]
7326 -- {COMPONENT_CLAUSE}
7327 -- end record;
7329 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7330 -- replaced by a corresponding Alignment attribute definition clause).
7332 -- Note: Component_Clauses can include pragmas
7334 -- N_Record_Representation_Clause
7335 -- Sloc points to FOR
7336 -- Identifier (Node1) direct name
7337 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7338 -- Component_Clauses (List3)
7339 -- Next_Rep_Item (Node5-Sem)
7341 ------------------------------
7342 -- 13.5.1 Component clause --
7343 ------------------------------
7345 -- COMPONENT_CLAUSE ::=
7346 -- component_LOCAL_NAME at POSITION
7347 -- range FIRST_BIT .. LAST_BIT;
7349 -- N_Component_Clause
7350 -- Sloc points to AT
7351 -- Component_Name (Node1) points to Name or Attribute_Reference
7352 -- Position (Node2)
7353 -- First_Bit (Node3)
7354 -- Last_Bit (Node4)
7356 ----------------------
7357 -- 13.5.1 Position --
7358 ----------------------
7360 -- POSITION ::= static_EXPRESSION
7362 -----------------------
7363 -- 13.5.1 First_Bit --
7364 -----------------------
7366 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7368 ----------------------
7369 -- 13.5.1 Last_Bit --
7370 ----------------------
7372 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7374 --------------------------
7375 -- 13.8 Code statement --
7376 --------------------------
7378 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7380 -- Note: in GNAT, the qualified expression has the form
7382 -- Asm_Insn'(Asm (...));
7384 -- See package System.Machine_Code in file s-maccod.ads for details on
7385 -- the allowed parameters to Asm. There are two ways this node can
7386 -- arise, as a code statement, in which case the expression is the
7387 -- qualified expression, or as a result of the expansion of an intrinsic
7388 -- call to the Asm or Asm_Input procedure.
7390 -- N_Code_Statement
7391 -- Sloc points to first token of the expression
7392 -- Expression (Node3)
7394 -- Note: package Exp_Code contains an abstract functional interface
7395 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7397 ------------------------
7398 -- 13.12 Restriction --
7399 ------------------------
7401 -- RESTRICTION ::=
7402 -- restriction_IDENTIFIER
7403 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7405 -- There is no explicit node for restrictions. Instead the restriction
7406 -- appears in normal pragma syntax as a pragma argument association,
7407 -- which has the same syntactic form.
7409 --------------------------
7410 -- B.2 Shift Operators --
7411 --------------------------
7413 -- Calls to the intrinsic shift functions are converted to one of
7414 -- the following shift nodes, which have the form of normal binary
7415 -- operator names. Note that for a given shift operation, one node
7416 -- covers all possible types, as for normal operators.
7418 -- Note: it is perfectly permissible for the expander to generate
7419 -- shift operation nodes directly, in which case they will be analyzed
7420 -- and parsed in the usual manner.
7422 -- Sprint syntax: shift-function-name!(expr, count)
7424 -- Note: the Left_Opnd field holds the first argument (the value to
7425 -- be shifted). The Right_Opnd field holds the second argument (the
7426 -- shift count). The Chars field is the name of the intrinsic function.
7428 -- N_Op_Rotate_Left
7429 -- Sloc points to the function name
7430 -- plus fields for binary operator
7431 -- plus fields for expression
7432 -- Shift_Count_OK (Flag4-Sem)
7434 -- N_Op_Rotate_Right
7435 -- Sloc points to the function name
7436 -- plus fields for binary operator
7437 -- plus fields for expression
7438 -- Shift_Count_OK (Flag4-Sem)
7440 -- N_Op_Shift_Left
7441 -- Sloc points to the function name
7442 -- plus fields for binary operator
7443 -- plus fields for expression
7444 -- Shift_Count_OK (Flag4-Sem)
7446 -- N_Op_Shift_Right_Arithmetic
7447 -- Sloc points to the function name
7448 -- plus fields for binary operator
7449 -- plus fields for expression
7450 -- Shift_Count_OK (Flag4-Sem)
7452 -- N_Op_Shift_Right
7453 -- Sloc points to the function name
7454 -- plus fields for binary operator
7455 -- plus fields for expression
7456 -- Shift_Count_OK (Flag4-Sem)
7458 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7459 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7461 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7462 -- always less than the word size if Modify_Tree_For_C mode is set.
7464 --------------------------
7465 -- Obsolescent Features --
7466 --------------------------
7468 -- The syntax descriptions and tree nodes for obsolescent features are
7469 -- grouped together, corresponding to their location in appendix I in
7470 -- the RM. However, parsing and semantic analysis for these constructs
7471 -- is located in an appropriate chapter (see individual notes).
7473 ---------------------------
7474 -- J.3 Delta Constraint --
7475 ---------------------------
7477 -- Note: the parse routine for this construct is located in section
7478 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7479 -- where delta constraint logically belongs.
7481 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7483 -- N_Delta_Constraint
7484 -- Sloc points to DELTA
7485 -- Delta_Expression (Node3)
7486 -- Range_Constraint (Node4) (set to Empty if not present)
7488 --------------------
7489 -- J.7 At Clause --
7490 --------------------
7492 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7494 -- Note: the parse routine for this construct is located in Par-Ch13,
7495 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7496 -- belongs if it were not obsolescent.
7498 -- Note: in Ada 83 the expression must be a simple expression
7500 -- Gigi restriction: This node never appears, it is rewritten as an
7501 -- address attribute definition clause.
7503 -- N_At_Clause
7504 -- Sloc points to FOR
7505 -- Identifier (Node1)
7506 -- Expression (Node3)
7508 ---------------------
7509 -- J.8 Mod clause --
7510 ---------------------
7512 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7514 -- Note: the parse routine for this construct is located in Par-Ch13,
7515 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7516 -- belongs if it were not obsolescent.
7518 -- Note: in Ada 83, the expression must be a simple expression
7520 -- Gigi restriction: this node never appears. It is replaced
7521 -- by a corresponding Alignment attribute definition clause.
7523 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7524 -- its name has "clause" in it. This is rather strange, but is quite
7525 -- definitely specified. The pragmas before are collected in the
7526 -- Pragmas_Before field of the mod clause node itself, and pragmas
7527 -- after are simply swallowed up in the list of component clauses.
7529 -- N_Mod_Clause
7530 -- Sloc points to AT
7531 -- Expression (Node3)
7532 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7534 --------------------
7535 -- Semantic Nodes --
7536 --------------------
7538 -- These semantic nodes are used to hold additional semantic information.
7539 -- They are inserted into the tree as a result of semantic processing.
7540 -- Although there are no legitimate source syntax constructions that
7541 -- correspond directly to these nodes, we need a source syntax for the
7542 -- reconstructed tree printed by Sprint, and the node descriptions here
7543 -- show this syntax.
7545 ------------------------
7546 -- Compound Statement --
7547 ------------------------
7549 -- This node is created by the analyzer/expander to handle some
7550 -- expansion cases where a sequence of actions needs to be captured
7551 -- within a single node (which acts as a container and allows the
7552 -- entire list of actions to be moved around as a whole) appearing
7553 -- in a sequence of statements.
7555 -- This is the statement counterpart to the expression node
7556 -- N_Expression_With_Actions.
7558 -- The required semantics is that the set of actions is executed in
7559 -- the order in which it appears, as though they appeared by themselves
7560 -- in the enclosing list of declarations of statements. Unlike what
7561 -- happens when using an N_Block_Statement, no new scope is introduced.
7563 -- Note: for the time being, this is used only as a transient
7564 -- representation during expansion, and all compound statement nodes
7565 -- must be exploded back to their constituent statements before handing
7566 -- the tree to the back end.
7568 -- Sprint syntax: do
7569 -- action;
7570 -- action;
7571 -- ...
7572 -- action;
7573 -- end;
7575 -- N_Compound_Statement
7576 -- Actions (List1)
7578 --------------
7579 -- Contract --
7580 --------------
7582 -- This node is used to hold the various parts of an entry, subprogram
7583 -- [body] or package [body] contract, in particular:
7584 -- Abstract states declared by a package declaration
7585 -- Contract cases that apply to a subprogram
7586 -- Dependency relations of inputs and output of a subprogram
7587 -- Global annotations classifying data as input or output
7588 -- Initialization sequences for a package declaration
7589 -- Pre- and postconditions that apply to a subprogram
7591 -- The node appears in an entry and [generic] subprogram [body] entity.
7593 -- Sprint syntax: <none> as the node should not appear in the tree, but
7594 -- only attached to an entry or [generic] subprogram
7595 -- entity.
7597 -- N_Contract
7598 -- Sloc points to the subprogram's name
7599 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7600 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7601 -- Classifications (Node3-Sem) (set to Empty if none)
7602 -- Is_Expanded_Contract (Flag1-Sem)
7604 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7605 -- to pre- and postconditions associated with an entry or a subprogram
7606 -- [body or stub]. The pragmas can either come from source or be the
7607 -- byproduct of aspect expansion. Currently the following pragmas appear
7608 -- in this list:
7609 -- Post
7610 -- Postcondition
7611 -- Pre
7612 -- Precondition
7613 -- Refined_Post
7614 -- The ordering in the list is in LIFO fashion.
7616 -- Note that there might be multiple preconditions or postconditions
7617 -- in this list, either because they come from separate pragmas in the
7618 -- source, or because a Pre (resp. Post) aspect specification has been
7619 -- broken into AND THEN sections. See Split_PPC for details.
7621 -- Contract_Test_Cases contains a collection of pragmas that correspond
7622 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7623 -- list is in LIFO fashion.
7625 -- Classifications contains pragmas that either declare, categorize or
7626 -- establish dependencies between subprogram or package inputs and
7627 -- outputs. Currently the following pragmas appear in this list:
7628 -- Abstract_States
7629 -- Async_Readers
7630 -- Async_Writers
7631 -- Constant_After_Elaboration
7632 -- Depends
7633 -- Effective_Reads
7634 -- Effective_Writes
7635 -- Extensions_Visible
7636 -- Global
7637 -- Initial_Condition
7638 -- Initializes
7639 -- Part_Of
7640 -- Refined_Depends
7641 -- Refined_Global
7642 -- Refined_States
7643 -- Volatile_Function
7644 -- The ordering is in LIFO fashion.
7646 -------------------
7647 -- Expanded Name --
7648 -------------------
7650 -- The N_Expanded_Name node is used to represent a selected component
7651 -- name that has been resolved to an expanded name. The semantic phase
7652 -- replaces N_Selected_Component nodes that represent names by the use
7653 -- of this node, leaving the N_Selected_Component node used only when
7654 -- the prefix is a record or protected type.
7656 -- The fields of the N_Expanded_Name node are layed out identically
7657 -- to those of the N_Selected_Component node, allowing conversion of
7658 -- an expanded name node to a selected component node to be done
7659 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7661 -- There is no special sprint syntax for an expanded name
7663 -- N_Expanded_Name
7664 -- Sloc points to the period
7665 -- Chars (Name1) copy of Chars field of selector name
7666 -- Prefix (Node3)
7667 -- Selector_Name (Node2)
7668 -- Entity (Node4-Sem)
7669 -- Associated_Node (Node4-Sem)
7670 -- Has_Private_View (Flag11-Sem) set in generic units.
7671 -- Redundant_Use (Flag13-Sem)
7672 -- Atomic_Sync_Required (Flag14-Sem)
7673 -- plus fields for expression
7675 -----------------------------
7676 -- Expression With Actions --
7677 -----------------------------
7679 -- This node is created by the analyzer/expander to handle some
7680 -- expansion cases, notably short-circuit forms where there are
7681 -- actions associated with the right-hand side operand.
7683 -- The N_Expression_With_Actions node represents an expression with
7684 -- an associated set of actions (which are executable statements and
7685 -- declarations, as might occur in a handled statement sequence).
7687 -- The required semantics is that the set of actions is executed in
7688 -- the order in which it appears just before the expression is
7689 -- evaluated (and these actions must only be executed if the value
7690 -- of the expression is evaluated). The node is considered to be
7691 -- a subexpression, whose value is the value of the Expression after
7692 -- executing all the actions.
7694 -- If the actions contain declarations, then these declarations may
7695 -- be referenced within the expression. However note that there is
7696 -- no proper scope associated with the expression-with-action, so the
7697 -- back-end will elaborate them in the context of the enclosing scope.
7699 -- Sprint syntax: do
7700 -- action;
7701 -- action;
7702 -- ...
7703 -- action;
7704 -- in expression end
7706 -- N_Expression_With_Actions
7707 -- Actions (List1)
7708 -- Expression (Node3)
7709 -- plus fields for expression
7711 -- Note: In the final generated tree presented to the code generator,
7712 -- the actions list is always non-null, since there is no point in this
7713 -- node if the actions are Empty. During semantic analysis there are
7714 -- cases where it is convenient to temporarily generate an empty actions
7715 -- list. This arises in cases where we create such an empty actions
7716 -- list, and it may or may not end up being a place where additional
7717 -- actions are inserted. The expander removes such empty cases after
7718 -- the expression of the node is fully analyzed and expanded, at which
7719 -- point it is safe to remove it, since no more actions can be inserted.
7721 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7722 -- the action list, which can contain only non-declarative statements.
7724 --------------------
7725 -- Free Statement --
7726 --------------------
7728 -- The N_Free_Statement node is generated as a result of a call to an
7729 -- instantiation of Unchecked_Deallocation. The instantiation of this
7730 -- generic is handled specially and generates this node directly.
7732 -- Sprint syntax: free expression
7734 -- N_Free_Statement
7735 -- Sloc is copied from the unchecked deallocation call
7736 -- Expression (Node3) argument to unchecked deallocation call
7737 -- Storage_Pool (Node1-Sem)
7738 -- Procedure_To_Call (Node2-Sem)
7739 -- Actual_Designated_Subtype (Node4-Sem)
7741 -- Note: in the case where a debug source file is generated, the Sloc
7742 -- for this node points to the FREE keyword in the Sprint file output.
7744 -------------------
7745 -- Freeze Entity --
7746 -------------------
7748 -- This node marks the point in a declarative part at which an entity
7749 -- declared therein becomes frozen. The expander places initialization
7750 -- procedures for types at those points. Gigi uses the freezing point
7751 -- to elaborate entities that may depend on previous private types.
7753 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7754 -- a full description of the use of this node.
7756 -- The Entity field points back to the entity for the type (whose
7757 -- Freeze_Node field points back to this freeze node).
7759 -- The Actions field contains a list of declarations and statements
7760 -- generated by the expander which are associated with the freeze
7761 -- node, and are elaborated as though the freeze node were replaced
7762 -- by this sequence of actions.
7764 -- Note: the Sloc field in the freeze node references a construct
7765 -- associated with the freezing point. This is used for posting
7766 -- messages in some error/warning situations, e.g. the case where
7767 -- a primitive operation of a tagged type is declared too late.
7769 -- Sprint syntax: freeze entity-name [
7770 -- freeze actions
7771 -- ]
7773 -- N_Freeze_Entity
7774 -- Sloc points near freeze point (see above special note)
7775 -- Entity (Node4-Sem)
7776 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7777 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7778 -- Actions (List1) (set to No_List if no freeze actions)
7779 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7781 -- The Actions field holds actions associated with the freeze. These
7782 -- actions are elaborated at the point where the type is frozen.
7784 -- Note: in the case where a debug source file is generated, the Sloc
7785 -- for this node points to the FREEZE keyword in the Sprint file output.
7787 ---------------------------
7788 -- Freeze Generic Entity --
7789 ---------------------------
7791 -- The freeze point of an entity indicates the point at which the
7792 -- information needed to generate code for the entity is complete.
7793 -- The freeze node for an entity triggers expander activities, such as
7794 -- build initialization procedures, and backend activities, such as
7795 -- completing the elaboration of packages.
7797 -- For entities declared within a generic unit, for which no code is
7798 -- generated, the freeze point is not equally meaningful. However, in
7799 -- Ada 2012 several semantic checks on declarations must be delayed to
7800 -- the freeze point, and we need to include such a mark in the tree to
7801 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7802 -- role, and is ignored by the expander and the back-end.
7804 -- Sprint syntax: freeze_generic entity-name
7806 -- N_Freeze_Generic_Entity
7807 -- Sloc points near freeze point
7808 -- Entity (Node4-Sem)
7810 --------------------------------
7811 -- Implicit Label Declaration --
7812 --------------------------------
7814 -- An implicit label declaration is created for every occurrence of a
7815 -- label on a statement or a label on a block or loop. It is chained
7816 -- in the declarations of the innermost enclosing block as specified
7817 -- in RM section 5.1 (3).
7819 -- The Defining_Identifier is the actual identifier for the statement
7820 -- identifier. Note that the occurrence of the label is a reference, NOT
7821 -- the defining occurrence. The defining occurrence occurs at the head
7822 -- of the innermost enclosing block, and is represented by this node.
7824 -- Note: from the grammar, this might better be called an implicit
7825 -- statement identifier declaration, but the term we choose seems
7826 -- friendlier, since at least informally statement identifiers are
7827 -- called labels in both cases (i.e. when used in labels, and when
7828 -- used as the identifiers of blocks and loops).
7830 -- Note: although this is logically a semantic node, since it does not
7831 -- correspond directly to a source syntax construction, these nodes are
7832 -- actually created by the parser in a post pass done just after parsing
7833 -- is complete, before semantic analysis is started (see Par.Labl).
7835 -- Sprint syntax: labelname : label;
7837 -- N_Implicit_Label_Declaration
7838 -- Sloc points to the << token for a statement identifier, or to the
7839 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7840 -- Defining_Identifier (Node1)
7841 -- Label_Construct (Node2-Sem)
7843 -- Note: in the case where a debug source file is generated, the Sloc
7844 -- for this node points to the label name in the generated declaration.
7846 ---------------------
7847 -- Itype Reference --
7848 ---------------------
7850 -- This node is used to create a reference to an Itype. The only purpose
7851 -- is to make sure the Itype is defined if this is the first reference.
7853 -- A typical use of this node is when an Itype is to be referenced in
7854 -- two branches of an IF statement. In this case it is important that
7855 -- the first use of the Itype not be inside the conditional, since then
7856 -- it might not be defined if the other branch of the IF is taken, in
7857 -- the case where the definition generates elaboration code.
7859 -- The Itype field points to the referenced Itype
7861 -- Sprint syntax: reference itype-name
7863 -- N_Itype_Reference
7864 -- Sloc points to the node generating the reference
7865 -- Itype (Node1-Sem)
7867 -- Note: in the case where a debug source file is generated, the Sloc
7868 -- for this node points to the REFERENCE keyword in the file output.
7870 ---------------------
7871 -- Raise xxx Error --
7872 ---------------------
7874 -- One of these nodes is created during semantic analysis to replace
7875 -- a node for an expression that is determined to definitely raise
7876 -- the corresponding exception.
7878 -- The N_Raise_xxx_Error node may also stand alone in place
7879 -- of a declaration or statement, in which case it simply causes
7880 -- the exception to be raised (i.e. it is equivalent to a raise
7881 -- statement that raises the corresponding exception). This use
7882 -- is distinguished by the fact that the Etype in this case is
7883 -- Standard_Void_Type; in the subexpression case, the Etype is the
7884 -- same as the type of the subexpression which it replaces.
7886 -- If Condition is empty, then the raise is unconditional. If the
7887 -- Condition field is non-empty, it is a boolean expression which is
7888 -- first evaluated, and the exception is raised only if the value of the
7889 -- expression is True. In the unconditional case, the creation of this
7890 -- node is usually accompanied by a warning message (unless it appears
7891 -- within the right operand of a short-circuit form whose left argument
7892 -- is static and decisively eliminates elaboration of the raise
7893 -- operation). The condition field can ONLY be present when the node is
7894 -- used as a statement form; it must NOT be present in the case where
7895 -- the node appears within an expression.
7897 -- The exception is generated with a message that contains the
7898 -- file name and line number, and then appended text. The Reason
7899 -- code shows the text to be added. The Reason code is an element
7900 -- of the type Types.RT_Exception_Code, and indicates both the
7901 -- message to be added, and the exception to be raised (which must
7902 -- match the node type). The value is stored by storing a Uint which
7903 -- is the Pos value of the enumeration element in this type.
7905 -- Gigi restriction: This expander ensures that the type of the
7906 -- Condition field is always Standard.Boolean, even if the type
7907 -- in the source is some non-standard boolean type.
7909 -- Sprint syntax: [xxx_error "msg"]
7910 -- or: [xxx_error when condition "msg"]
7912 -- N_Raise_Constraint_Error
7913 -- Sloc references related construct
7914 -- Condition (Node1) (set to Empty if no condition)
7915 -- Reason (Uint3)
7916 -- plus fields for expression
7918 -- N_Raise_Program_Error
7919 -- Sloc references related construct
7920 -- Condition (Node1) (set to Empty if no condition)
7921 -- Reason (Uint3)
7922 -- plus fields for expression
7924 -- N_Raise_Storage_Error
7925 -- Sloc references related construct
7926 -- Condition (Node1) (set to Empty if no condition)
7927 -- Reason (Uint3)
7928 -- plus fields for expression
7930 -- Note: Sloc is copied from the expression generating the exception.
7931 -- In the case where a debug source file is generated, the Sloc for
7932 -- this node points to the left bracket in the Sprint file output.
7934 -- Note: the back end may be required to translate these nodes into
7935 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7937 ---------------------------------------------
7938 -- Optimization of Exception Raise to Goto --
7939 ---------------------------------------------
7941 -- In some cases, the front end will determine that any exception raised
7942 -- by the back end for a certain exception should be transformed into a
7943 -- goto statement.
7945 -- There are three kinds of exceptions raised by the back end (note that
7946 -- for this purpose we consider gigi to be part of the back end in the
7947 -- gcc case):
7949 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7950 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7951 -- 3. Other cases not specifically marked by the front end
7953 -- Normally all such exceptions are translated into calls to the proper
7954 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7955 -- and the exception message.
7957 -- The front end may determine that for a particular sequence of code,
7958 -- exceptions in any of these three categories for a particular builtin
7959 -- exception should result in a goto, rather than a call to Rcheck_xx.
7960 -- The exact sequence to be generated is:
7962 -- Local_Raise (exception'Identity);
7963 -- goto Label
7965 -- The front end marks such a sequence of code by bracketing it with
7966 -- push and pop nodes:
7968 -- N_Push_xxx_Label (referencing the label)
7969 -- ...
7970 -- (code where transformation is expected for exception xxx)
7971 -- ...
7972 -- N_Pop_xxx_Label
7974 -- The use of push/pop reflects the fact that such regions can properly
7975 -- nest, and one special case is a subregion in which no transformation
7976 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7977 -- Exception_Label field is Empty.
7979 -- N_Push_Constraint_Error_Label
7980 -- Sloc references first statement in region covered
7981 -- Exception_Label (Node5-Sem)
7983 -- N_Push_Program_Error_Label
7984 -- Sloc references first statement in region covered
7985 -- Exception_Label (Node5-Sem)
7987 -- N_Push_Storage_Error_Label
7988 -- Sloc references first statement in region covered
7989 -- Exception_Label (Node5-Sem)
7991 -- N_Pop_Constraint_Error_Label
7992 -- Sloc references last statement in region covered
7994 -- N_Pop_Program_Error_Label
7995 -- Sloc references last statement in region covered
7997 -- N_Pop_Storage_Error_Label
7998 -- Sloc references last statement in region covered
8000 ---------------
8001 -- Reference --
8002 ---------------
8004 -- For a number of purposes, we need to construct references to objects.
8005 -- These references are subsequently treated as normal access values.
8006 -- An example is the construction of the parameter block passed to a
8007 -- task entry. The N_Reference node is provided for this purpose. It is
8008 -- similar in effect to the use of the Unrestricted_Access attribute,
8009 -- and like Unrestricted_Access can be applied to objects which would
8010 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8011 -- objects which are not aliased, and slices). In addition it can be
8012 -- applied to composite type values as well as objects, including string
8013 -- values and aggregates.
8015 -- Note: we use the Prefix field for this expression so that the
8016 -- resulting node can be treated using common code with the attribute
8017 -- nodes for the 'Access and related attributes. Logically it would make
8018 -- more sense to call it an Expression field, but then we would have to
8019 -- special case the treatment of the N_Reference node.
8021 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8022 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8023 -- a temporary initialized to a N_Reference node in order to eliminate
8024 -- superfluous access checks.
8026 -- Sprint syntax: prefix'reference
8028 -- N_Reference
8029 -- Sloc is copied from the expression
8030 -- Prefix (Node3)
8031 -- plus fields for expression
8033 -- Note: in the case where a debug source file is generated, the Sloc
8034 -- for this node points to the quote in the Sprint file output.
8036 ----------------
8037 -- SCIL Nodes --
8038 ----------------
8040 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8041 -- is active. They are only generated if SCIL generation is enabled.
8042 -- A standard tree-walk will not encounter these nodes even if they
8043 -- are present; these nodes are only accessible via the function
8044 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8045 -- semantics.
8047 -- Sprint syntax: [ <node kind> ]
8048 -- No semantic field values are displayed.
8050 -- N_SCIL_Dispatch_Table_Tag_Init
8051 -- Sloc references a node for a tag initialization
8052 -- SCIL_Entity (Node4-Sem)
8054 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8055 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8056 -- the declaration of the dispatch table for a tagged type.
8058 -- N_SCIL_Dispatching_Call
8059 -- Sloc references the node of a dispatching call
8060 -- SCIL_Target_Prim (Node2-Sem)
8061 -- SCIL_Entity (Node4-Sem)
8062 -- SCIL_Controlling_Tag (Node5-Sem)
8064 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8065 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8066 -- rewriting thereof) corresponding to a dispatching call.
8068 -- N_SCIL_Membership_Test
8069 -- Sloc references the node of a membership test
8070 -- SCIL_Tag_Value (Node5-Sem)
8071 -- SCIL_Entity (Node4-Sem)
8073 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8074 -- with the N_In node (or a rewriting thereof) corresponding to a
8075 -- classwide membership test.
8077 --------------------------
8078 -- Unchecked Expression --
8079 --------------------------
8081 -- An unchecked expression is one that must be analyzed and resolved
8082 -- with all checks off, regardless of the current setting of scope
8083 -- suppress flags.
8085 -- Sprint syntax: `(expression)
8087 -- Note: this node is always removed from the tree (and replaced by
8088 -- its constituent expression) on completion of analysis, so it only
8089 -- appears in intermediate trees, and will never be seen by Gigi.
8091 -- N_Unchecked_Expression
8092 -- Sloc is a copy of the Sloc of the expression
8093 -- Expression (Node3)
8094 -- plus fields for expression
8096 -- Note: in the case where a debug source file is generated, the Sloc
8097 -- for this node points to the back quote in the Sprint file output.
8099 -------------------------------
8100 -- Unchecked Type Conversion --
8101 -------------------------------
8103 -- An unchecked type conversion node represents the semantic action
8104 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8105 -- It is generated as a result of actual use of Unchecked_Conversion
8106 -- and also the expander generates unchecked type conversion nodes
8107 -- directly for expansion of complex semantic actions.
8109 -- Note: an unchecked type conversion is a variable as far as the
8110 -- semantics are concerned, which is convenient for the expander.
8111 -- This does not change what Ada source programs are legal, since
8112 -- clearly a function call to an instantiation of Unchecked_Conversion
8113 -- is not a variable in any case.
8115 -- Sprint syntax: subtype-mark!(expression)
8117 -- N_Unchecked_Type_Conversion
8118 -- Sloc points to related node in source
8119 -- Subtype_Mark (Node4)
8120 -- Expression (Node3)
8121 -- Kill_Range_Check (Flag11-Sem)
8122 -- No_Truncation (Flag17-Sem)
8123 -- plus fields for expression
8125 -- Note: in the case where a debug source file is generated, the Sloc
8126 -- for this node points to the exclamation in the Sprint file output.
8128 -----------------------------------
8129 -- Validate_Unchecked_Conversion --
8130 -----------------------------------
8132 -- The front end does most of the validation of unchecked conversion,
8133 -- including checking sizes (this is done after the back end is called
8134 -- to take advantage of back-annotation of calculated sizes).
8136 -- The front end also deals with specific cases that are not allowed
8137 -- e.g. involving unconstrained array types.
8139 -- For the case of the standard gigi backend, this means that all
8140 -- checks are done in the front end.
8142 -- However, in the case of specialized back-ends, in particular the JVM
8143 -- backend in the past, additional requirements and restrictions may
8144 -- apply to unchecked conversion, and these are most conveniently
8145 -- performed in the specialized back-end.
8147 -- To accommodate this requirement, for such back ends, the following
8148 -- special node is generated recording an unchecked conversion that
8149 -- needs to be validated. The back end should post an appropriate
8150 -- error message if the unchecked conversion is invalid or warrants
8151 -- a special warning message.
8153 -- Source_Type and Target_Type point to the entities for the two
8154 -- types involved in the unchecked conversion instantiation that
8155 -- is to be validated.
8157 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8159 -- N_Validate_Unchecked_Conversion
8160 -- Sloc points to instantiation (location for warning message)
8161 -- Source_Type (Node1-Sem)
8162 -- Target_Type (Node2-Sem)
8164 -- Note: in the case where a debug source file is generated, the Sloc
8165 -- for this node points to the VALIDATE keyword in the file output.
8167 -----------
8168 -- Empty --
8169 -----------
8171 -- Used as the contents of the Nkind field of the dummy Empty node
8172 -- and in some other situations to indicate an uninitialized value.
8174 -- N_Empty
8175 -- Chars (Name1) is set to No_Name
8177 -----------
8178 -- Error --
8179 -----------
8181 -- Used as the contents of the Nkind field of the dummy Error node.
8182 -- Has an Etype field, which gets set to Any_Type later on, to help
8183 -- error recovery (Error_Posted is also set in the Error node).
8185 -- N_Error
8186 -- Chars (Name1) is set to Error_Name
8187 -- Etype (Node5-Sem)
8189 --------------------------
8190 -- Node Type Definition --
8191 --------------------------
8193 -- The following is the definition of the Node_Kind type. As previously
8194 -- discussed, this is separated off to allow rearrangement of the order to
8195 -- facilitate definition of subtype ranges. The comments show the subtype
8196 -- classes which apply to each set of node kinds. The first entry in the
8197 -- comment characterizes the following list of nodes.
8199 type Node_Kind is (
8200 N_Unused_At_Start,
8202 -- N_Representation_Clause
8204 N_At_Clause,
8205 N_Component_Clause,
8206 N_Enumeration_Representation_Clause,
8207 N_Mod_Clause,
8208 N_Record_Representation_Clause,
8210 -- N_Representation_Clause, N_Has_Chars
8212 N_Attribute_Definition_Clause,
8214 -- N_Has_Chars
8216 N_Empty,
8217 N_Pragma_Argument_Association,
8219 -- N_Has_Etype, N_Has_Chars
8221 -- Note: of course N_Error does not really have Etype or Chars fields,
8222 -- and any attempt to access these fields in N_Error will cause an
8223 -- error, but historically this always has been positioned so that an
8224 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8225 -- Most likely this makes coding easier somewhere but still seems
8226 -- undesirable. To be investigated some time ???
8228 N_Error,
8230 -- N_Entity, N_Has_Etype, N_Has_Chars
8232 N_Defining_Character_Literal,
8233 N_Defining_Identifier,
8234 N_Defining_Operator_Symbol,
8236 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8238 N_Expanded_Name,
8240 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8241 -- N_Has_Chars, N_Has_Entity
8243 N_Identifier,
8244 N_Operator_Symbol,
8246 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8247 -- N_Has_Chars, N_Has_Entity
8249 N_Character_Literal,
8251 -- N_Binary_Op, N_Op, N_Subexpr,
8252 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8254 N_Op_Add,
8255 N_Op_Concat,
8256 N_Op_Expon,
8257 N_Op_Subtract,
8259 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8260 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8262 N_Op_Divide,
8263 N_Op_Mod,
8264 N_Op_Multiply,
8265 N_Op_Rem,
8267 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8268 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8270 N_Op_And,
8272 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8273 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8275 N_Op_Eq,
8276 N_Op_Ge,
8277 N_Op_Gt,
8278 N_Op_Le,
8279 N_Op_Lt,
8280 N_Op_Ne,
8282 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8283 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8285 N_Op_Or,
8286 N_Op_Xor,
8288 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8289 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8291 N_Op_Rotate_Left,
8292 N_Op_Rotate_Right,
8293 N_Op_Shift_Left,
8294 N_Op_Shift_Right,
8295 N_Op_Shift_Right_Arithmetic,
8297 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8298 -- N_Has_Chars, N_Has_Entity
8300 N_Op_Abs,
8301 N_Op_Minus,
8302 N_Op_Not,
8303 N_Op_Plus,
8305 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8307 N_Attribute_Reference,
8309 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8311 N_In,
8312 N_Not_In,
8314 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8316 N_And_Then,
8317 N_Or_Else,
8319 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8321 N_Function_Call,
8322 N_Procedure_Call_Statement,
8324 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8326 N_Raise_Constraint_Error,
8327 N_Raise_Program_Error,
8328 N_Raise_Storage_Error,
8330 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8332 N_Integer_Literal,
8333 N_Real_Literal,
8334 N_String_Literal,
8336 -- N_Subexpr, N_Has_Etype
8338 N_Explicit_Dereference,
8339 N_Expression_With_Actions,
8340 N_If_Expression,
8341 N_Indexed_Component,
8342 N_Null,
8343 N_Qualified_Expression,
8344 N_Quantified_Expression,
8345 N_Aggregate,
8346 N_Allocator,
8347 N_Case_Expression,
8348 N_Extension_Aggregate,
8349 N_Raise_Expression,
8350 N_Range,
8351 N_Reference,
8352 N_Selected_Component,
8353 N_Slice,
8354 N_Type_Conversion,
8355 N_Unchecked_Expression,
8356 N_Unchecked_Type_Conversion,
8358 -- N_Has_Etype
8360 N_Subtype_Indication,
8362 -- N_Declaration
8364 N_Component_Declaration,
8365 N_Entry_Declaration,
8366 N_Expression_Function,
8367 N_Formal_Object_Declaration,
8368 N_Formal_Type_Declaration,
8369 N_Full_Type_Declaration,
8370 N_Incomplete_Type_Declaration,
8371 N_Iterator_Specification,
8372 N_Loop_Parameter_Specification,
8373 N_Object_Declaration,
8374 N_Protected_Type_Declaration,
8375 N_Private_Extension_Declaration,
8376 N_Private_Type_Declaration,
8377 N_Subtype_Declaration,
8379 -- N_Subprogram_Specification, N_Declaration
8381 N_Function_Specification,
8382 N_Procedure_Specification,
8384 -- N_Access_To_Subprogram_Definition
8386 N_Access_Function_Definition,
8387 N_Access_Procedure_Definition,
8389 -- N_Later_Decl_Item
8391 N_Task_Type_Declaration,
8393 -- N_Body_Stub, N_Later_Decl_Item
8395 N_Package_Body_Stub,
8396 N_Protected_Body_Stub,
8397 N_Subprogram_Body_Stub,
8398 N_Task_Body_Stub,
8400 -- N_Generic_Instantiation, N_Later_Decl_Item
8401 -- N_Subprogram_Instantiation
8403 N_Function_Instantiation,
8404 N_Procedure_Instantiation,
8406 -- N_Generic_Instantiation, N_Later_Decl_Item
8408 N_Package_Instantiation,
8410 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8412 N_Package_Body,
8413 N_Subprogram_Body,
8415 -- N_Later_Decl_Item, N_Proper_Body
8417 N_Protected_Body,
8418 N_Task_Body,
8420 -- N_Later_Decl_Item
8422 N_Implicit_Label_Declaration,
8423 N_Package_Declaration,
8424 N_Single_Task_Declaration,
8425 N_Subprogram_Declaration,
8426 N_Use_Package_Clause,
8428 -- N_Generic_Declaration, N_Later_Decl_Item
8430 N_Generic_Package_Declaration,
8431 N_Generic_Subprogram_Declaration,
8433 -- N_Array_Type_Definition
8435 N_Constrained_Array_Definition,
8436 N_Unconstrained_Array_Definition,
8438 -- N_Renaming_Declaration
8440 N_Exception_Renaming_Declaration,
8441 N_Object_Renaming_Declaration,
8442 N_Package_Renaming_Declaration,
8443 N_Subprogram_Renaming_Declaration,
8445 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8447 N_Generic_Function_Renaming_Declaration,
8448 N_Generic_Package_Renaming_Declaration,
8449 N_Generic_Procedure_Renaming_Declaration,
8451 -- N_Statement_Other_Than_Procedure_Call
8453 N_Abort_Statement,
8454 N_Accept_Statement,
8455 N_Assignment_Statement,
8456 N_Asynchronous_Select,
8457 N_Block_Statement,
8458 N_Case_Statement,
8459 N_Code_Statement,
8460 N_Compound_Statement,
8461 N_Conditional_Entry_Call,
8463 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8465 N_Delay_Relative_Statement,
8466 N_Delay_Until_Statement,
8468 -- N_Statement_Other_Than_Procedure_Call
8470 N_Entry_Call_Statement,
8471 N_Free_Statement,
8472 N_Goto_Statement,
8473 N_Loop_Statement,
8474 N_Null_Statement,
8475 N_Raise_Statement,
8476 N_Requeue_Statement,
8477 N_Simple_Return_Statement,
8478 N_Extended_Return_Statement,
8479 N_Selective_Accept,
8480 N_Timed_Entry_Call,
8482 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8484 N_Exit_Statement,
8485 N_If_Statement,
8487 -- N_Has_Condition
8489 N_Accept_Alternative,
8490 N_Delay_Alternative,
8491 N_Elsif_Part,
8492 N_Entry_Body_Formal_Part,
8493 N_Iteration_Scheme,
8494 N_Terminate_Alternative,
8496 -- N_Formal_Subprogram_Declaration
8498 N_Formal_Abstract_Subprogram_Declaration,
8499 N_Formal_Concrete_Subprogram_Declaration,
8501 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8503 N_Push_Constraint_Error_Label,
8504 N_Push_Program_Error_Label,
8505 N_Push_Storage_Error_Label,
8507 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8509 N_Pop_Constraint_Error_Label,
8510 N_Pop_Program_Error_Label,
8511 N_Pop_Storage_Error_Label,
8513 -- SCIL nodes
8515 N_SCIL_Dispatch_Table_Tag_Init,
8516 N_SCIL_Dispatching_Call,
8517 N_SCIL_Membership_Test,
8519 -- Other nodes (not part of any subtype class)
8521 N_Abortable_Part,
8522 N_Abstract_Subprogram_Declaration,
8523 N_Access_Definition,
8524 N_Access_To_Object_Definition,
8525 N_Aspect_Specification,
8526 N_Case_Expression_Alternative,
8527 N_Case_Statement_Alternative,
8528 N_Compilation_Unit,
8529 N_Compilation_Unit_Aux,
8530 N_Component_Association,
8531 N_Component_Definition,
8532 N_Component_List,
8533 N_Contract,
8534 N_Derived_Type_Definition,
8535 N_Decimal_Fixed_Point_Definition,
8536 N_Defining_Program_Unit_Name,
8537 N_Delta_Constraint,
8538 N_Designator,
8539 N_Digits_Constraint,
8540 N_Discriminant_Association,
8541 N_Discriminant_Specification,
8542 N_Enumeration_Type_Definition,
8543 N_Entry_Body,
8544 N_Entry_Call_Alternative,
8545 N_Entry_Index_Specification,
8546 N_Exception_Declaration,
8547 N_Exception_Handler,
8548 N_Floating_Point_Definition,
8549 N_Formal_Decimal_Fixed_Point_Definition,
8550 N_Formal_Derived_Type_Definition,
8551 N_Formal_Discrete_Type_Definition,
8552 N_Formal_Floating_Point_Definition,
8553 N_Formal_Modular_Type_Definition,
8554 N_Formal_Ordinary_Fixed_Point_Definition,
8555 N_Formal_Package_Declaration,
8556 N_Formal_Private_Type_Definition,
8557 N_Formal_Incomplete_Type_Definition,
8558 N_Formal_Signed_Integer_Type_Definition,
8559 N_Freeze_Entity,
8560 N_Freeze_Generic_Entity,
8561 N_Generic_Association,
8562 N_Handled_Sequence_Of_Statements,
8563 N_Index_Or_Discriminant_Constraint,
8564 N_Itype_Reference,
8565 N_Label,
8566 N_Modular_Type_Definition,
8567 N_Number_Declaration,
8568 N_Ordinary_Fixed_Point_Definition,
8569 N_Others_Choice,
8570 N_Package_Specification,
8571 N_Parameter_Association,
8572 N_Parameter_Specification,
8573 N_Pragma,
8574 N_Protected_Definition,
8575 N_Range_Constraint,
8576 N_Real_Range_Specification,
8577 N_Record_Definition,
8578 N_Signed_Integer_Type_Definition,
8579 N_Single_Protected_Declaration,
8580 N_Subunit,
8581 N_Task_Definition,
8582 N_Triggering_Alternative,
8583 N_Use_Type_Clause,
8584 N_Validate_Unchecked_Conversion,
8585 N_Variant,
8586 N_Variant_Part,
8587 N_With_Clause,
8588 N_Unused_At_End);
8590 for Node_Kind'Size use 8;
8591 -- The data structures in Atree assume this
8593 ----------------------------
8594 -- Node Class Definitions --
8595 ----------------------------
8597 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8598 N_Access_Function_Definition ..
8599 N_Access_Procedure_Definition;
8601 subtype N_Array_Type_Definition is Node_Kind range
8602 N_Constrained_Array_Definition ..
8603 N_Unconstrained_Array_Definition;
8605 subtype N_Binary_Op is Node_Kind range
8606 N_Op_Add ..
8607 N_Op_Shift_Right_Arithmetic;
8609 subtype N_Body_Stub is Node_Kind range
8610 N_Package_Body_Stub ..
8611 N_Task_Body_Stub;
8613 subtype N_Declaration is Node_Kind range
8614 N_Component_Declaration ..
8615 N_Procedure_Specification;
8616 -- Note: this includes all constructs normally thought of as declarations
8617 -- except those which are separately grouped as later declarations.
8619 subtype N_Delay_Statement is Node_Kind range
8620 N_Delay_Relative_Statement ..
8621 N_Delay_Until_Statement;
8623 subtype N_Direct_Name is Node_Kind range
8624 N_Identifier ..
8625 N_Character_Literal;
8627 subtype N_Entity is Node_Kind range
8628 N_Defining_Character_Literal ..
8629 N_Defining_Operator_Symbol;
8631 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8632 N_Formal_Abstract_Subprogram_Declaration ..
8633 N_Formal_Concrete_Subprogram_Declaration;
8635 subtype N_Generic_Declaration is Node_Kind range
8636 N_Generic_Package_Declaration ..
8637 N_Generic_Subprogram_Declaration;
8639 subtype N_Generic_Instantiation is Node_Kind range
8640 N_Function_Instantiation ..
8641 N_Package_Instantiation;
8643 subtype N_Generic_Renaming_Declaration is Node_Kind range
8644 N_Generic_Function_Renaming_Declaration ..
8645 N_Generic_Procedure_Renaming_Declaration;
8647 subtype N_Has_Chars is Node_Kind range
8648 N_Attribute_Definition_Clause ..
8649 N_Op_Plus;
8651 subtype N_Has_Entity is Node_Kind range
8652 N_Expanded_Name ..
8653 N_Attribute_Reference;
8654 -- Nodes that have Entity fields
8655 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8656 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8658 subtype N_Has_Etype is Node_Kind range
8659 N_Error ..
8660 N_Subtype_Indication;
8662 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8663 N_Op_Divide ..
8664 N_Op_Rem;
8666 subtype N_Multiplying_Operator is Node_Kind range
8667 N_Op_Divide ..
8668 N_Op_Rem;
8670 subtype N_Later_Decl_Item is Node_Kind range
8671 N_Task_Type_Declaration ..
8672 N_Generic_Subprogram_Declaration;
8673 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8674 -- only those items which can appear as later declarative items. This also
8675 -- includes N_Implicit_Label_Declaration which is not specifically in the
8676 -- grammar but may appear as a valid later declarative items. It does NOT
8677 -- include N_Pragma which can also appear among later declarative items.
8678 -- It does however include N_Protected_Body, which is a bit peculiar, but
8679 -- harmless since this cannot appear in Ada 83 mode anyway.
8681 subtype N_Membership_Test is Node_Kind range
8682 N_In ..
8683 N_Not_In;
8685 subtype N_Numeric_Or_String_Literal is Node_Kind range
8686 N_Integer_Literal ..
8687 N_String_Literal;
8689 subtype N_Op is Node_Kind range
8690 N_Op_Add ..
8691 N_Op_Plus;
8693 subtype N_Op_Boolean is Node_Kind range
8694 N_Op_And ..
8695 N_Op_Xor;
8696 -- Binary operators which take operands of a boolean type, and yield
8697 -- a result of a boolean type.
8699 subtype N_Op_Compare is Node_Kind range
8700 N_Op_Eq ..
8701 N_Op_Ne;
8703 subtype N_Op_Shift is Node_Kind range
8704 N_Op_Rotate_Left ..
8705 N_Op_Shift_Right_Arithmetic;
8707 subtype N_Proper_Body is Node_Kind range
8708 N_Package_Body ..
8709 N_Task_Body;
8711 subtype N_Push_xxx_Label is Node_Kind range
8712 N_Push_Constraint_Error_Label ..
8713 N_Push_Storage_Error_Label;
8715 subtype N_Pop_xxx_Label is Node_Kind range
8716 N_Pop_Constraint_Error_Label ..
8717 N_Pop_Storage_Error_Label;
8719 subtype N_Push_Pop_xxx_Label is Node_Kind range
8720 N_Push_Constraint_Error_Label ..
8721 N_Pop_Storage_Error_Label;
8723 subtype N_Raise_xxx_Error is Node_Kind range
8724 N_Raise_Constraint_Error ..
8725 N_Raise_Storage_Error;
8727 subtype N_Renaming_Declaration is Node_Kind range
8728 N_Exception_Renaming_Declaration ..
8729 N_Generic_Procedure_Renaming_Declaration;
8731 subtype N_Representation_Clause is Node_Kind range
8732 N_At_Clause ..
8733 N_Attribute_Definition_Clause;
8735 subtype N_Short_Circuit is Node_Kind range
8736 N_And_Then ..
8737 N_Or_Else;
8739 subtype N_SCIL_Node is Node_Kind range
8740 N_SCIL_Dispatch_Table_Tag_Init ..
8741 N_SCIL_Membership_Test;
8743 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8744 N_Abort_Statement ..
8745 N_If_Statement;
8746 -- Note that this includes all statement types except for the cases of the
8747 -- N_Procedure_Call_Statement which is considered to be a subexpression
8748 -- (since overloading is possible, so it needs to go through the normal
8749 -- overloading resolution for expressions).
8751 subtype N_Subprogram_Call is Node_Kind range
8752 N_Function_Call ..
8753 N_Procedure_Call_Statement;
8755 subtype N_Subprogram_Instantiation is Node_Kind range
8756 N_Function_Instantiation ..
8757 N_Procedure_Instantiation;
8759 subtype N_Has_Condition is Node_Kind range
8760 N_Exit_Statement ..
8761 N_Terminate_Alternative;
8762 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8764 subtype N_Subexpr is Node_Kind range
8765 N_Expanded_Name ..
8766 N_Unchecked_Type_Conversion;
8767 -- Nodes with expression fields
8769 subtype N_Subprogram_Specification is Node_Kind range
8770 N_Function_Specification ..
8771 N_Procedure_Specification;
8773 subtype N_Unary_Op is Node_Kind range
8774 N_Op_Abs ..
8775 N_Op_Plus;
8777 subtype N_Unit_Body is Node_Kind range
8778 N_Package_Body ..
8779 N_Subprogram_Body;
8781 ---------------------------
8782 -- Node Access Functions --
8783 ---------------------------
8785 -- The following functions return the contents of the indicated field of
8786 -- the node referenced by the argument, which is a Node_Id. They provide
8787 -- logical access to fields in the node which could be accessed using the
8788 -- Atree.Unchecked_Access package, but the idea is always to use these
8789 -- higher level routines which preserve strong typing. In debug mode,
8790 -- these routines check that they are being applied to an appropriate
8791 -- node, as well as checking that the node is in range.
8793 function ABE_Is_Certain
8794 (N : Node_Id) return Boolean; -- Flag18
8796 function Abort_Present
8797 (N : Node_Id) return Boolean; -- Flag15
8799 function Abortable_Part
8800 (N : Node_Id) return Node_Id; -- Node2
8802 function Abstract_Present
8803 (N : Node_Id) return Boolean; -- Flag4
8805 function Accept_Handler_Records
8806 (N : Node_Id) return List_Id; -- List5
8808 function Accept_Statement
8809 (N : Node_Id) return Node_Id; -- Node2
8811 function Access_Definition
8812 (N : Node_Id) return Node_Id; -- Node3
8814 function Access_To_Subprogram_Definition
8815 (N : Node_Id) return Node_Id; -- Node3
8817 function Access_Types_To_Process
8818 (N : Node_Id) return Elist_Id; -- Elist2
8820 function Actions
8821 (N : Node_Id) return List_Id; -- List1
8823 function Activation_Chain_Entity
8824 (N : Node_Id) return Node_Id; -- Node3
8826 function Acts_As_Spec
8827 (N : Node_Id) return Boolean; -- Flag4
8829 function Actual_Designated_Subtype
8830 (N : Node_Id) return Node_Id; -- Node4
8832 function Address_Warning_Posted
8833 (N : Node_Id) return Boolean; -- Flag18
8835 function Aggregate_Bounds
8836 (N : Node_Id) return Node_Id; -- Node3
8838 function Aliased_Present
8839 (N : Node_Id) return Boolean; -- Flag4
8841 function All_Others
8842 (N : Node_Id) return Boolean; -- Flag11
8844 function All_Present
8845 (N : Node_Id) return Boolean; -- Flag15
8847 function Alternatives
8848 (N : Node_Id) return List_Id; -- List4
8850 function Ancestor_Part
8851 (N : Node_Id) return Node_Id; -- Node3
8853 function Atomic_Sync_Required
8854 (N : Node_Id) return Boolean; -- Flag14
8856 function Array_Aggregate
8857 (N : Node_Id) return Node_Id; -- Node3
8859 function Aspect_Rep_Item
8860 (N : Node_Id) return Node_Id; -- Node2
8862 function Assignment_OK
8863 (N : Node_Id) return Boolean; -- Flag15
8865 function Associated_Node
8866 (N : Node_Id) return Node_Id; -- Node4
8868 function At_End_Proc
8869 (N : Node_Id) return Node_Id; -- Node1
8871 function Attribute_Name
8872 (N : Node_Id) return Name_Id; -- Name2
8874 function Aux_Decls_Node
8875 (N : Node_Id) return Node_Id; -- Node5
8877 function Backwards_OK
8878 (N : Node_Id) return Boolean; -- Flag6
8880 function Bad_Is_Detected
8881 (N : Node_Id) return Boolean; -- Flag15
8883 function By_Ref
8884 (N : Node_Id) return Boolean; -- Flag5
8886 function Body_Required
8887 (N : Node_Id) return Boolean; -- Flag13
8889 function Body_To_Inline
8890 (N : Node_Id) return Node_Id; -- Node3
8892 function Box_Present
8893 (N : Node_Id) return Boolean; -- Flag15
8895 function Char_Literal_Value
8896 (N : Node_Id) return Uint; -- Uint2
8898 function Chars
8899 (N : Node_Id) return Name_Id; -- Name1
8901 function Check_Address_Alignment
8902 (N : Node_Id) return Boolean; -- Flag11
8904 function Choice_Parameter
8905 (N : Node_Id) return Node_Id; -- Node2
8907 function Choices
8908 (N : Node_Id) return List_Id; -- List1
8910 function Class_Present
8911 (N : Node_Id) return Boolean; -- Flag6
8913 function Classifications
8914 (N : Node_Id) return Node_Id; -- Node3
8916 function Cleanup_Actions
8917 (N : Node_Id) return List_Id; -- List5
8919 function Comes_From_Extended_Return_Statement
8920 (N : Node_Id) return Boolean; -- Flag18
8922 function Compile_Time_Known_Aggregate
8923 (N : Node_Id) return Boolean; -- Flag18
8925 function Component_Associations
8926 (N : Node_Id) return List_Id; -- List2
8928 function Component_Clauses
8929 (N : Node_Id) return List_Id; -- List3
8931 function Component_Definition
8932 (N : Node_Id) return Node_Id; -- Node4
8934 function Component_Items
8935 (N : Node_Id) return List_Id; -- List3
8937 function Component_List
8938 (N : Node_Id) return Node_Id; -- Node1
8940 function Component_Name
8941 (N : Node_Id) return Node_Id; -- Node1
8943 function Componentwise_Assignment
8944 (N : Node_Id) return Boolean; -- Flag14
8946 function Condition
8947 (N : Node_Id) return Node_Id; -- Node1
8949 function Condition_Actions
8950 (N : Node_Id) return List_Id; -- List3
8952 function Config_Pragmas
8953 (N : Node_Id) return List_Id; -- List4
8955 function Constant_Present
8956 (N : Node_Id) return Boolean; -- Flag17
8958 function Constraint
8959 (N : Node_Id) return Node_Id; -- Node3
8961 function Constraints
8962 (N : Node_Id) return List_Id; -- List1
8964 function Context_Installed
8965 (N : Node_Id) return Boolean; -- Flag13
8967 function Context_Pending
8968 (N : Node_Id) return Boolean; -- Flag16
8970 function Context_Items
8971 (N : Node_Id) return List_Id; -- List1
8973 function Contract_Test_Cases
8974 (N : Node_Id) return Node_Id; -- Node2
8976 function Controlling_Argument
8977 (N : Node_Id) return Node_Id; -- Node1
8979 function Conversion_OK
8980 (N : Node_Id) return Boolean; -- Flag14
8982 function Convert_To_Return_False
8983 (N : Node_Id) return Boolean; -- Flag13
8985 function Corresponding_Aspect
8986 (N : Node_Id) return Node_Id; -- Node3
8988 function Corresponding_Body
8989 (N : Node_Id) return Node_Id; -- Node5
8991 function Corresponding_Formal_Spec
8992 (N : Node_Id) return Node_Id; -- Node3
8994 function Corresponding_Generic_Association
8995 (N : Node_Id) return Node_Id; -- Node5
8997 function Corresponding_Integer_Value
8998 (N : Node_Id) return Uint; -- Uint4
9000 function Corresponding_Spec
9001 (N : Node_Id) return Entity_Id; -- Node5
9003 function Corresponding_Spec_Of_Stub
9004 (N : Node_Id) return Node_Id; -- Node2
9006 function Corresponding_Stub
9007 (N : Node_Id) return Node_Id; -- Node3
9009 function Dcheck_Function
9010 (N : Node_Id) return Entity_Id; -- Node5
9012 function Declarations
9013 (N : Node_Id) return List_Id; -- List2
9015 function Default_Expression
9016 (N : Node_Id) return Node_Id; -- Node5
9018 function Default_Storage_Pool
9019 (N : Node_Id) return Node_Id; -- Node3
9021 function Default_Name
9022 (N : Node_Id) return Node_Id; -- Node2
9024 function Defining_Identifier
9025 (N : Node_Id) return Entity_Id; -- Node1
9027 function Defining_Unit_Name
9028 (N : Node_Id) return Node_Id; -- Node1
9030 function Delay_Alternative
9031 (N : Node_Id) return Node_Id; -- Node4
9033 function Delay_Statement
9034 (N : Node_Id) return Node_Id; -- Node2
9036 function Delta_Expression
9037 (N : Node_Id) return Node_Id; -- Node3
9039 function Digits_Expression
9040 (N : Node_Id) return Node_Id; -- Node2
9042 function Discr_Check_Funcs_Built
9043 (N : Node_Id) return Boolean; -- Flag11
9045 function Discrete_Choices
9046 (N : Node_Id) return List_Id; -- List4
9048 function Discrete_Range
9049 (N : Node_Id) return Node_Id; -- Node4
9051 function Discrete_Subtype_Definition
9052 (N : Node_Id) return Node_Id; -- Node4
9054 function Discrete_Subtype_Definitions
9055 (N : Node_Id) return List_Id; -- List2
9057 function Discriminant_Specifications
9058 (N : Node_Id) return List_Id; -- List4
9060 function Discriminant_Type
9061 (N : Node_Id) return Node_Id; -- Node5
9063 function Do_Accessibility_Check
9064 (N : Node_Id) return Boolean; -- Flag13
9066 function Do_Discriminant_Check
9067 (N : Node_Id) return Boolean; -- Flag1
9069 function Do_Division_Check
9070 (N : Node_Id) return Boolean; -- Flag13
9072 function Do_Length_Check
9073 (N : Node_Id) return Boolean; -- Flag4
9075 function Do_Overflow_Check
9076 (N : Node_Id) return Boolean; -- Flag17
9078 function Do_Range_Check
9079 (N : Node_Id) return Boolean; -- Flag9
9081 function Do_Storage_Check
9082 (N : Node_Id) return Boolean; -- Flag17
9084 function Do_Tag_Check
9085 (N : Node_Id) return Boolean; -- Flag13
9087 function Elaborate_All_Desirable
9088 (N : Node_Id) return Boolean; -- Flag9
9090 function Elaborate_All_Present
9091 (N : Node_Id) return Boolean; -- Flag14
9093 function Elaborate_Desirable
9094 (N : Node_Id) return Boolean; -- Flag11
9096 function Elaborate_Present
9097 (N : Node_Id) return Boolean; -- Flag4
9099 function Else_Actions
9100 (N : Node_Id) return List_Id; -- List3
9102 function Else_Statements
9103 (N : Node_Id) return List_Id; -- List4
9105 function Elsif_Parts
9106 (N : Node_Id) return List_Id; -- List3
9108 function Enclosing_Variant
9109 (N : Node_Id) return Node_Id; -- Node2
9111 function End_Label
9112 (N : Node_Id) return Node_Id; -- Node4
9114 function End_Span
9115 (N : Node_Id) return Uint; -- Uint5
9117 function Entity
9118 (N : Node_Id) return Node_Id; -- Node4
9120 function Entity_Or_Associated_Node
9121 (N : Node_Id) return Node_Id; -- Node4
9123 function Entry_Body_Formal_Part
9124 (N : Node_Id) return Node_Id; -- Node5
9126 function Entry_Call_Alternative
9127 (N : Node_Id) return Node_Id; -- Node1
9129 function Entry_Call_Statement
9130 (N : Node_Id) return Node_Id; -- Node1
9132 function Entry_Direct_Name
9133 (N : Node_Id) return Node_Id; -- Node1
9135 function Entry_Index
9136 (N : Node_Id) return Node_Id; -- Node5
9138 function Entry_Index_Specification
9139 (N : Node_Id) return Node_Id; -- Node4
9141 function Etype
9142 (N : Node_Id) return Node_Id; -- Node5
9144 function Exception_Choices
9145 (N : Node_Id) return List_Id; -- List4
9147 function Exception_Handlers
9148 (N : Node_Id) return List_Id; -- List5
9150 function Exception_Junk
9151 (N : Node_Id) return Boolean; -- Flag8
9153 function Exception_Label
9154 (N : Node_Id) return Node_Id; -- Node5
9156 function Explicit_Actual_Parameter
9157 (N : Node_Id) return Node_Id; -- Node3
9159 function Expansion_Delayed
9160 (N : Node_Id) return Boolean; -- Flag11
9162 function Explicit_Generic_Actual_Parameter
9163 (N : Node_Id) return Node_Id; -- Node1
9165 function Expression
9166 (N : Node_Id) return Node_Id; -- Node3
9168 function Expressions
9169 (N : Node_Id) return List_Id; -- List1
9171 function First_Bit
9172 (N : Node_Id) return Node_Id; -- Node3
9174 function First_Inlined_Subprogram
9175 (N : Node_Id) return Entity_Id; -- Node3
9177 function First_Name
9178 (N : Node_Id) return Boolean; -- Flag5
9180 function First_Named_Actual
9181 (N : Node_Id) return Node_Id; -- Node4
9183 function First_Real_Statement
9184 (N : Node_Id) return Node_Id; -- Node2
9186 function First_Subtype_Link
9187 (N : Node_Id) return Entity_Id; -- Node5
9189 function Float_Truncate
9190 (N : Node_Id) return Boolean; -- Flag11
9192 function Formal_Type_Definition
9193 (N : Node_Id) return Node_Id; -- Node3
9195 function Forwards_OK
9196 (N : Node_Id) return Boolean; -- Flag5
9198 function From_Aspect_Specification
9199 (N : Node_Id) return Boolean; -- Flag13
9201 function From_At_End
9202 (N : Node_Id) return Boolean; -- Flag4
9204 function From_At_Mod
9205 (N : Node_Id) return Boolean; -- Flag4
9207 function From_Conditional_Expression
9208 (N : Node_Id) return Boolean; -- Flag1
9210 function From_Default
9211 (N : Node_Id) return Boolean; -- Flag6
9213 function Generalized_Indexing
9214 (N : Node_Id) return Node_Id; -- Node4
9215 function Generic_Associations
9216 (N : Node_Id) return List_Id; -- List3
9218 function Generic_Formal_Declarations
9219 (N : Node_Id) return List_Id; -- List2
9221 function Generic_Parent
9222 (N : Node_Id) return Node_Id; -- Node5
9224 function Generic_Parent_Type
9225 (N : Node_Id) return Node_Id; -- Node4
9227 function Handled_Statement_Sequence
9228 (N : Node_Id) return Node_Id; -- Node4
9230 function Handler_List_Entry
9231 (N : Node_Id) return Node_Id; -- Node2
9233 function Has_Created_Identifier
9234 (N : Node_Id) return Boolean; -- Flag15
9236 function Has_Dereference_Action
9237 (N : Node_Id) return Boolean; -- Flag13
9239 function Has_Dynamic_Length_Check
9240 (N : Node_Id) return Boolean; -- Flag10
9242 function Has_Dynamic_Range_Check
9243 (N : Node_Id) return Boolean; -- Flag12
9245 function Has_Init_Expression
9246 (N : Node_Id) return Boolean; -- Flag14
9248 function Has_Local_Raise
9249 (N : Node_Id) return Boolean; -- Flag8
9251 function Has_No_Elaboration_Code
9252 (N : Node_Id) return Boolean; -- Flag17
9254 function Has_Pragma_Suppress_All
9255 (N : Node_Id) return Boolean; -- Flag14
9257 function Has_Private_View
9258 (N : Node_Id) return Boolean; -- Flag11
9260 function Has_Relative_Deadline_Pragma
9261 (N : Node_Id) return Boolean; -- Flag9
9263 function Has_Self_Reference
9264 (N : Node_Id) return Boolean; -- Flag13
9266 function Has_SP_Choice
9267 (N : Node_Id) return Boolean; -- Flag15
9269 function Has_Storage_Size_Pragma
9270 (N : Node_Id) return Boolean; -- Flag5
9272 function Has_Wide_Character
9273 (N : Node_Id) return Boolean; -- Flag11
9275 function Has_Wide_Wide_Character
9276 (N : Node_Id) return Boolean; -- Flag13
9278 function Header_Size_Added
9279 (N : Node_Id) return Boolean; -- Flag11
9281 function Hidden_By_Use_Clause
9282 (N : Node_Id) return Elist_Id; -- Elist4
9284 function High_Bound
9285 (N : Node_Id) return Node_Id; -- Node2
9287 function Identifier
9288 (N : Node_Id) return Node_Id; -- Node1
9290 function Interface_List
9291 (N : Node_Id) return List_Id; -- List2
9293 function Interface_Present
9294 (N : Node_Id) return Boolean; -- Flag16
9296 function Implicit_With
9297 (N : Node_Id) return Boolean; -- Flag16
9299 function Implicit_With_From_Instantiation
9300 (N : Node_Id) return Boolean; -- Flag12
9302 function Import_Interface_Present
9303 (N : Node_Id) return Boolean; -- Flag16
9305 function In_Present
9306 (N : Node_Id) return Boolean; -- Flag15
9308 function Includes_Infinities
9309 (N : Node_Id) return Boolean; -- Flag11
9311 function Incomplete_View
9312 (N : Node_Id) return Node_Id; -- Node2
9314 function Inherited_Discriminant
9315 (N : Node_Id) return Boolean; -- Flag13
9317 function Instance_Spec
9318 (N : Node_Id) return Node_Id; -- Node5
9320 function Intval
9321 (N : Node_Id) return Uint; -- Uint3
9323 function Is_Accessibility_Actual
9324 (N : Node_Id) return Boolean; -- Flag13
9326 function Is_Analyzed_Pragma
9327 (N : Node_Id) return Boolean; -- Flag5
9329 function Is_Asynchronous_Call_Block
9330 (N : Node_Id) return Boolean; -- Flag7
9332 function Is_Boolean_Aspect
9333 (N : Node_Id) return Boolean; -- Flag16
9335 function Is_Checked
9336 (N : Node_Id) return Boolean; -- Flag11
9338 function Is_Component_Left_Opnd
9339 (N : Node_Id) return Boolean; -- Flag13
9341 function Is_Component_Right_Opnd
9342 (N : Node_Id) return Boolean; -- Flag14
9344 function Is_Controlling_Actual
9345 (N : Node_Id) return Boolean; -- Flag16
9347 function Is_Delayed_Aspect
9348 (N : Node_Id) return Boolean; -- Flag14
9350 function Is_Disabled
9351 (N : Node_Id) return Boolean; -- Flag15
9353 function Is_Dynamic_Coextension
9354 (N : Node_Id) return Boolean; -- Flag18
9356 function Is_Elsif
9357 (N : Node_Id) return Boolean; -- Flag13
9359 function Is_Entry_Barrier_Function
9360 (N : Node_Id) return Boolean; -- Flag8
9362 function Is_Expanded_Build_In_Place_Call
9363 (N : Node_Id) return Boolean; -- Flag11
9365 function Is_Expanded_Contract
9366 (N : Node_Id) return Boolean; -- Flag1
9368 function Is_Finalization_Wrapper
9369 (N : Node_Id) return Boolean; -- Flag9
9371 function Is_Folded_In_Parser
9372 (N : Node_Id) return Boolean; -- Flag4
9374 function Is_Generic_Contract_Pragma
9375 (N : Node_Id) return Boolean; -- Flag2
9377 function Is_Ghost_Pragma
9378 (N : Node_Id) return Boolean; -- Flag3
9380 function Is_Ignored
9381 (N : Node_Id) return Boolean; -- Flag9
9383 function Is_In_Discriminant_Check
9384 (N : Node_Id) return Boolean; -- Flag11
9386 function Is_Inherited_Pragma
9387 (N : Node_Id) return Boolean; -- Flag4
9389 function Is_Machine_Number
9390 (N : Node_Id) return Boolean; -- Flag11
9392 function Is_Null_Loop
9393 (N : Node_Id) return Boolean; -- Flag16
9395 function Is_Overloaded
9396 (N : Node_Id) return Boolean; -- Flag5
9398 function Is_Power_Of_2_For_Shift
9399 (N : Node_Id) return Boolean; -- Flag13
9401 function Is_Prefixed_Call
9402 (N : Node_Id) return Boolean; -- Flag17
9404 function Is_Protected_Subprogram_Body
9405 (N : Node_Id) return Boolean; -- Flag7
9407 function Is_Qualified_Universal_Literal
9408 (N : Node_Id) return Boolean; -- Flag4
9410 function Is_Static_Coextension
9411 (N : Node_Id) return Boolean; -- Flag14
9413 function Is_Static_Expression
9414 (N : Node_Id) return Boolean; -- Flag6
9416 function Is_Subprogram_Descriptor
9417 (N : Node_Id) return Boolean; -- Flag16
9419 function Is_Task_Allocation_Block
9420 (N : Node_Id) return Boolean; -- Flag6
9422 function Is_Task_Body_Procedure
9423 (N : Node_Id) return Boolean; -- Flag1
9425 function Is_Task_Master
9426 (N : Node_Id) return Boolean; -- Flag5
9428 function Iteration_Scheme
9429 (N : Node_Id) return Node_Id; -- Node2
9431 function Iterator_Specification
9432 (N : Node_Id) return Node_Id; -- Node2
9434 function Itype
9435 (N : Node_Id) return Entity_Id; -- Node1
9437 function Kill_Range_Check
9438 (N : Node_Id) return Boolean; -- Flag11
9440 function Label_Construct
9441 (N : Node_Id) return Node_Id; -- Node2
9443 function Left_Opnd
9444 (N : Node_Id) return Node_Id; -- Node2
9446 function Last_Bit
9447 (N : Node_Id) return Node_Id; -- Node4
9449 function Last_Name
9450 (N : Node_Id) return Boolean; -- Flag6
9452 function Library_Unit
9453 (N : Node_Id) return Node_Id; -- Node4
9455 function Limited_View_Installed
9456 (N : Node_Id) return Boolean; -- Flag18
9458 function Limited_Present
9459 (N : Node_Id) return Boolean; -- Flag17
9461 function Literals
9462 (N : Node_Id) return List_Id; -- List1
9464 function Local_Raise_Not_OK
9465 (N : Node_Id) return Boolean; -- Flag7
9467 function Local_Raise_Statements
9468 (N : Node_Id) return Elist_Id; -- Elist1
9470 function Loop_Actions
9471 (N : Node_Id) return List_Id; -- List2
9473 function Loop_Parameter_Specification
9474 (N : Node_Id) return Node_Id; -- Node4
9476 function Low_Bound
9477 (N : Node_Id) return Node_Id; -- Node1
9479 function Mod_Clause
9480 (N : Node_Id) return Node_Id; -- Node2
9482 function More_Ids
9483 (N : Node_Id) return Boolean; -- Flag5
9485 function Must_Be_Byte_Aligned
9486 (N : Node_Id) return Boolean; -- Flag14
9488 function Must_Not_Freeze
9489 (N : Node_Id) return Boolean; -- Flag8
9491 function Must_Not_Override
9492 (N : Node_Id) return Boolean; -- Flag15
9494 function Must_Override
9495 (N : Node_Id) return Boolean; -- Flag14
9497 function Name
9498 (N : Node_Id) return Node_Id; -- Node2
9500 function Names
9501 (N : Node_Id) return List_Id; -- List2
9503 function Next_Entity
9504 (N : Node_Id) return Node_Id; -- Node2
9506 function Next_Exit_Statement
9507 (N : Node_Id) return Node_Id; -- Node3
9509 function Next_Implicit_With
9510 (N : Node_Id) return Node_Id; -- Node3
9512 function Next_Named_Actual
9513 (N : Node_Id) return Node_Id; -- Node4
9515 function Next_Pragma
9516 (N : Node_Id) return Node_Id; -- Node1
9518 function Next_Rep_Item
9519 (N : Node_Id) return Node_Id; -- Node5
9521 function Next_Use_Clause
9522 (N : Node_Id) return Node_Id; -- Node3
9524 function No_Ctrl_Actions
9525 (N : Node_Id) return Boolean; -- Flag7
9527 function No_Elaboration_Check
9528 (N : Node_Id) return Boolean; -- Flag14
9530 function No_Entities_Ref_In_Spec
9531 (N : Node_Id) return Boolean; -- Flag8
9533 function No_Initialization
9534 (N : Node_Id) return Boolean; -- Flag13
9536 function No_Minimize_Eliminate
9537 (N : Node_Id) return Boolean; -- Flag17
9539 function No_Truncation
9540 (N : Node_Id) return Boolean; -- Flag17
9542 function Non_Aliased_Prefix
9543 (N : Node_Id) return Boolean; -- Flag18
9545 function Null_Present
9546 (N : Node_Id) return Boolean; -- Flag13
9548 function Null_Excluding_Subtype
9549 (N : Node_Id) return Boolean; -- Flag16
9551 function Null_Exclusion_Present
9552 (N : Node_Id) return Boolean; -- Flag11
9554 function Null_Exclusion_In_Return_Present
9555 (N : Node_Id) return Boolean; -- Flag14
9557 function Null_Record_Present
9558 (N : Node_Id) return Boolean; -- Flag17
9560 function Object_Definition
9561 (N : Node_Id) return Node_Id; -- Node4
9563 function Of_Present
9564 (N : Node_Id) return Boolean; -- Flag16
9566 function Original_Discriminant
9567 (N : Node_Id) return Node_Id; -- Node2
9569 function Original_Entity
9570 (N : Node_Id) return Entity_Id; -- Node2
9572 function Others_Discrete_Choices
9573 (N : Node_Id) return List_Id; -- List1
9575 function Out_Present
9576 (N : Node_Id) return Boolean; -- Flag17
9578 function Parameter_Associations
9579 (N : Node_Id) return List_Id; -- List3
9581 function Parameter_Specifications
9582 (N : Node_Id) return List_Id; -- List3
9584 function Parameter_Type
9585 (N : Node_Id) return Node_Id; -- Node2
9587 function Parent_Spec
9588 (N : Node_Id) return Node_Id; -- Node4
9590 function Position
9591 (N : Node_Id) return Node_Id; -- Node2
9593 function Pragma_Argument_Associations
9594 (N : Node_Id) return List_Id; -- List2
9596 function Pragma_Identifier
9597 (N : Node_Id) return Node_Id; -- Node4
9599 function Pragmas_After
9600 (N : Node_Id) return List_Id; -- List5
9602 function Pragmas_Before
9603 (N : Node_Id) return List_Id; -- List4
9605 function Pre_Post_Conditions
9606 (N : Node_Id) return Node_Id; -- Node1
9608 function Prefix
9609 (N : Node_Id) return Node_Id; -- Node3
9611 function Premature_Use
9612 (N : Node_Id) return Node_Id; -- Node5
9614 function Present_Expr
9615 (N : Node_Id) return Uint; -- Uint3
9617 function Prev_Ids
9618 (N : Node_Id) return Boolean; -- Flag6
9620 function Print_In_Hex
9621 (N : Node_Id) return Boolean; -- Flag13
9623 function Private_Declarations
9624 (N : Node_Id) return List_Id; -- List3
9626 function Private_Present
9627 (N : Node_Id) return Boolean; -- Flag15
9629 function Procedure_To_Call
9630 (N : Node_Id) return Node_Id; -- Node2
9632 function Proper_Body
9633 (N : Node_Id) return Node_Id; -- Node1
9635 function Protected_Definition
9636 (N : Node_Id) return Node_Id; -- Node3
9638 function Protected_Present
9639 (N : Node_Id) return Boolean; -- Flag6
9641 function Raises_Constraint_Error
9642 (N : Node_Id) return Boolean; -- Flag7
9644 function Range_Constraint
9645 (N : Node_Id) return Node_Id; -- Node4
9647 function Range_Expression
9648 (N : Node_Id) return Node_Id; -- Node4
9650 function Real_Range_Specification
9651 (N : Node_Id) return Node_Id; -- Node4
9653 function Realval
9654 (N : Node_Id) return Ureal; -- Ureal3
9656 function Reason
9657 (N : Node_Id) return Uint; -- Uint3
9659 function Record_Extension_Part
9660 (N : Node_Id) return Node_Id; -- Node3
9662 function Redundant_Use
9663 (N : Node_Id) return Boolean; -- Flag13
9665 function Renaming_Exception
9666 (N : Node_Id) return Node_Id; -- Node2
9668 function Result_Definition
9669 (N : Node_Id) return Node_Id; -- Node4
9671 function Return_Object_Declarations
9672 (N : Node_Id) return List_Id; -- List3
9674 function Return_Statement_Entity
9675 (N : Node_Id) return Node_Id; -- Node5
9677 function Reverse_Present
9678 (N : Node_Id) return Boolean; -- Flag15
9680 function Right_Opnd
9681 (N : Node_Id) return Node_Id; -- Node3
9683 function Rounded_Result
9684 (N : Node_Id) return Boolean; -- Flag18
9686 function SCIL_Controlling_Tag
9687 (N : Node_Id) return Node_Id; -- Node5
9689 function SCIL_Entity
9690 (N : Node_Id) return Node_Id; -- Node4
9692 function SCIL_Tag_Value
9693 (N : Node_Id) return Node_Id; -- Node5
9695 function SCIL_Target_Prim
9696 (N : Node_Id) return Node_Id; -- Node2
9698 function Scope
9699 (N : Node_Id) return Node_Id; -- Node3
9701 function Select_Alternatives
9702 (N : Node_Id) return List_Id; -- List1
9704 function Selector_Name
9705 (N : Node_Id) return Node_Id; -- Node2
9707 function Selector_Names
9708 (N : Node_Id) return List_Id; -- List1
9710 function Shift_Count_OK
9711 (N : Node_Id) return Boolean; -- Flag4
9713 function Source_Type
9714 (N : Node_Id) return Entity_Id; -- Node1
9716 function Specification
9717 (N : Node_Id) return Node_Id; -- Node1
9719 function Split_PPC
9720 (N : Node_Id) return Boolean; -- Flag17
9722 function Statements
9723 (N : Node_Id) return List_Id; -- List3
9725 function Storage_Pool
9726 (N : Node_Id) return Node_Id; -- Node1
9728 function Subpool_Handle_Name
9729 (N : Node_Id) return Node_Id; -- Node4
9731 function Strval
9732 (N : Node_Id) return String_Id; -- Str3
9734 function Subtype_Indication
9735 (N : Node_Id) return Node_Id; -- Node5
9737 function Subtype_Mark
9738 (N : Node_Id) return Node_Id; -- Node4
9740 function Subtype_Marks
9741 (N : Node_Id) return List_Id; -- List2
9743 function Suppress_Assignment_Checks
9744 (N : Node_Id) return Boolean; -- Flag18
9746 function Suppress_Loop_Warnings
9747 (N : Node_Id) return Boolean; -- Flag17
9749 function Synchronized_Present
9750 (N : Node_Id) return Boolean; -- Flag7
9752 function Tagged_Present
9753 (N : Node_Id) return Boolean; -- Flag15
9755 function Target_Type
9756 (N : Node_Id) return Entity_Id; -- Node2
9758 function Task_Definition
9759 (N : Node_Id) return Node_Id; -- Node3
9761 function Task_Present
9762 (N : Node_Id) return Boolean; -- Flag5
9764 function Then_Actions
9765 (N : Node_Id) return List_Id; -- List2
9767 function Then_Statements
9768 (N : Node_Id) return List_Id; -- List2
9770 function Treat_Fixed_As_Integer
9771 (N : Node_Id) return Boolean; -- Flag14
9773 function Triggering_Alternative
9774 (N : Node_Id) return Node_Id; -- Node1
9776 function Triggering_Statement
9777 (N : Node_Id) return Node_Id; -- Node1
9779 function TSS_Elist
9780 (N : Node_Id) return Elist_Id; -- Elist3
9782 function Type_Definition
9783 (N : Node_Id) return Node_Id; -- Node3
9785 function Uneval_Old_Accept
9786 (N : Node_Id) return Boolean; -- Flag7
9788 function Uneval_Old_Warn
9789 (N : Node_Id) return Boolean; -- Flag18
9791 function Unit
9792 (N : Node_Id) return Node_Id; -- Node2
9794 function Unknown_Discriminants_Present
9795 (N : Node_Id) return Boolean; -- Flag13
9797 function Unreferenced_In_Spec
9798 (N : Node_Id) return Boolean; -- Flag7
9800 function Variant_Part
9801 (N : Node_Id) return Node_Id; -- Node4
9803 function Variants
9804 (N : Node_Id) return List_Id; -- List1
9806 function Visible_Declarations
9807 (N : Node_Id) return List_Id; -- List2
9809 function Uninitialized_Variable
9810 (N : Node_Id) return Node_Id; -- Node3
9812 function Used_Operations
9813 (N : Node_Id) return Elist_Id; -- Elist5
9815 function Was_Expression_Function
9816 (N : Node_Id) return Boolean; -- Flag18
9818 function Was_Originally_Stub
9819 (N : Node_Id) return Boolean; -- Flag13
9821 function Withed_Body
9822 (N : Node_Id) return Node_Id; -- Node1
9824 -- End functions (note used by xsinfo utility program to end processing)
9826 ----------------------------
9827 -- Node Update Procedures --
9828 ----------------------------
9830 -- These are the corresponding node update routines, which again provide
9831 -- a high level logical access with type checking. In addition to setting
9832 -- the indicated field of the node N to the given Val, in the case of
9833 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9834 -- point back to node N. This automates the setting of the parent pointer.
9836 procedure Set_ABE_Is_Certain
9837 (N : Node_Id; Val : Boolean := True); -- Flag18
9839 procedure Set_Abort_Present
9840 (N : Node_Id; Val : Boolean := True); -- Flag15
9842 procedure Set_Abortable_Part
9843 (N : Node_Id; Val : Node_Id); -- Node2
9845 procedure Set_Abstract_Present
9846 (N : Node_Id; Val : Boolean := True); -- Flag4
9848 procedure Set_Accept_Handler_Records
9849 (N : Node_Id; Val : List_Id); -- List5
9851 procedure Set_Accept_Statement
9852 (N : Node_Id; Val : Node_Id); -- Node2
9854 procedure Set_Access_Definition
9855 (N : Node_Id; Val : Node_Id); -- Node3
9857 procedure Set_Access_To_Subprogram_Definition
9858 (N : Node_Id; Val : Node_Id); -- Node3
9860 procedure Set_Access_Types_To_Process
9861 (N : Node_Id; Val : Elist_Id); -- Elist2
9863 procedure Set_Actions
9864 (N : Node_Id; Val : List_Id); -- List1
9866 procedure Set_Activation_Chain_Entity
9867 (N : Node_Id; Val : Node_Id); -- Node3
9869 procedure Set_Acts_As_Spec
9870 (N : Node_Id; Val : Boolean := True); -- Flag4
9872 procedure Set_Actual_Designated_Subtype
9873 (N : Node_Id; Val : Node_Id); -- Node4
9875 procedure Set_Address_Warning_Posted
9876 (N : Node_Id; Val : Boolean := True); -- Flag18
9878 procedure Set_Aggregate_Bounds
9879 (N : Node_Id; Val : Node_Id); -- Node3
9881 procedure Set_Aliased_Present
9882 (N : Node_Id; Val : Boolean := True); -- Flag4
9884 procedure Set_All_Others
9885 (N : Node_Id; Val : Boolean := True); -- Flag11
9887 procedure Set_All_Present
9888 (N : Node_Id; Val : Boolean := True); -- Flag15
9890 procedure Set_Alternatives
9891 (N : Node_Id; Val : List_Id); -- List4
9893 procedure Set_Ancestor_Part
9894 (N : Node_Id; Val : Node_Id); -- Node3
9896 procedure Set_Atomic_Sync_Required
9897 (N : Node_Id; Val : Boolean := True); -- Flag14
9899 procedure Set_Array_Aggregate
9900 (N : Node_Id; Val : Node_Id); -- Node3
9902 procedure Set_Aspect_Rep_Item
9903 (N : Node_Id; Val : Node_Id); -- Node2
9905 procedure Set_Assignment_OK
9906 (N : Node_Id; Val : Boolean := True); -- Flag15
9908 procedure Set_Associated_Node
9909 (N : Node_Id; Val : Node_Id); -- Node4
9911 procedure Set_Attribute_Name
9912 (N : Node_Id; Val : Name_Id); -- Name2
9914 procedure Set_At_End_Proc
9915 (N : Node_Id; Val : Node_Id); -- Node1
9917 procedure Set_Aux_Decls_Node
9918 (N : Node_Id; Val : Node_Id); -- Node5
9920 procedure Set_Backwards_OK
9921 (N : Node_Id; Val : Boolean := True); -- Flag6
9923 procedure Set_Bad_Is_Detected
9924 (N : Node_Id; Val : Boolean := True); -- Flag15
9926 procedure Set_Body_Required
9927 (N : Node_Id; Val : Boolean := True); -- Flag13
9929 procedure Set_Body_To_Inline
9930 (N : Node_Id; Val : Node_Id); -- Node3
9932 procedure Set_Box_Present
9933 (N : Node_Id; Val : Boolean := True); -- Flag15
9935 procedure Set_By_Ref
9936 (N : Node_Id; Val : Boolean := True); -- Flag5
9938 procedure Set_Char_Literal_Value
9939 (N : Node_Id; Val : Uint); -- Uint2
9941 procedure Set_Chars
9942 (N : Node_Id; Val : Name_Id); -- Name1
9944 procedure Set_Check_Address_Alignment
9945 (N : Node_Id; Val : Boolean := True); -- Flag11
9947 procedure Set_Choice_Parameter
9948 (N : Node_Id; Val : Node_Id); -- Node2
9950 procedure Set_Choices
9951 (N : Node_Id; Val : List_Id); -- List1
9953 procedure Set_Class_Present
9954 (N : Node_Id; Val : Boolean := True); -- Flag6
9956 procedure Set_Classifications
9957 (N : Node_Id; Val : Node_Id); -- Node3
9959 procedure Set_Cleanup_Actions
9960 (N : Node_Id; Val : List_Id); -- List5
9962 procedure Set_Comes_From_Extended_Return_Statement
9963 (N : Node_Id; Val : Boolean := True); -- Flag18
9965 procedure Set_Compile_Time_Known_Aggregate
9966 (N : Node_Id; Val : Boolean := True); -- Flag18
9968 procedure Set_Component_Associations
9969 (N : Node_Id; Val : List_Id); -- List2
9971 procedure Set_Component_Clauses
9972 (N : Node_Id; Val : List_Id); -- List3
9974 procedure Set_Component_Definition
9975 (N : Node_Id; Val : Node_Id); -- Node4
9977 procedure Set_Component_Items
9978 (N : Node_Id; Val : List_Id); -- List3
9980 procedure Set_Component_List
9981 (N : Node_Id; Val : Node_Id); -- Node1
9983 procedure Set_Component_Name
9984 (N : Node_Id; Val : Node_Id); -- Node1
9986 procedure Set_Componentwise_Assignment
9987 (N : Node_Id; Val : Boolean := True); -- Flag14
9989 procedure Set_Condition
9990 (N : Node_Id; Val : Node_Id); -- Node1
9992 procedure Set_Condition_Actions
9993 (N : Node_Id; Val : List_Id); -- List3
9995 procedure Set_Config_Pragmas
9996 (N : Node_Id; Val : List_Id); -- List4
9998 procedure Set_Constant_Present
9999 (N : Node_Id; Val : Boolean := True); -- Flag17
10001 procedure Set_Constraint
10002 (N : Node_Id; Val : Node_Id); -- Node3
10004 procedure Set_Constraints
10005 (N : Node_Id; Val : List_Id); -- List1
10007 procedure Set_Context_Installed
10008 (N : Node_Id; Val : Boolean := True); -- Flag13
10010 procedure Set_Context_Items
10011 (N : Node_Id; Val : List_Id); -- List1
10013 procedure Set_Context_Pending
10014 (N : Node_Id; Val : Boolean := True); -- Flag16
10016 procedure Set_Contract_Test_Cases
10017 (N : Node_Id; Val : Node_Id); -- Node2
10019 procedure Set_Controlling_Argument
10020 (N : Node_Id; Val : Node_Id); -- Node1
10022 procedure Set_Conversion_OK
10023 (N : Node_Id; Val : Boolean := True); -- Flag14
10025 procedure Set_Convert_To_Return_False
10026 (N : Node_Id; Val : Boolean := True); -- Flag13
10028 procedure Set_Corresponding_Aspect
10029 (N : Node_Id; Val : Node_Id); -- Node3
10031 procedure Set_Corresponding_Body
10032 (N : Node_Id; Val : Node_Id); -- Node5
10034 procedure Set_Corresponding_Formal_Spec
10035 (N : Node_Id; Val : Node_Id); -- Node3
10037 procedure Set_Corresponding_Generic_Association
10038 (N : Node_Id; Val : Node_Id); -- Node5
10040 procedure Set_Corresponding_Integer_Value
10041 (N : Node_Id; Val : Uint); -- Uint4
10043 procedure Set_Corresponding_Spec
10044 (N : Node_Id; Val : Entity_Id); -- Node5
10046 procedure Set_Corresponding_Spec_Of_Stub
10047 (N : Node_Id; Val : Node_Id); -- Node2
10049 procedure Set_Corresponding_Stub
10050 (N : Node_Id; Val : Node_Id); -- Node3
10052 procedure Set_Dcheck_Function
10053 (N : Node_Id; Val : Entity_Id); -- Node5
10055 procedure Set_Declarations
10056 (N : Node_Id; Val : List_Id); -- List2
10058 procedure Set_Default_Expression
10059 (N : Node_Id; Val : Node_Id); -- Node5
10061 procedure Set_Default_Storage_Pool
10062 (N : Node_Id; Val : Node_Id); -- Node3
10064 procedure Set_Default_Name
10065 (N : Node_Id; Val : Node_Id); -- Node2
10067 procedure Set_Defining_Identifier
10068 (N : Node_Id; Val : Entity_Id); -- Node1
10070 procedure Set_Defining_Unit_Name
10071 (N : Node_Id; Val : Node_Id); -- Node1
10073 procedure Set_Delay_Alternative
10074 (N : Node_Id; Val : Node_Id); -- Node4
10076 procedure Set_Delay_Statement
10077 (N : Node_Id; Val : Node_Id); -- Node2
10079 procedure Set_Delta_Expression
10080 (N : Node_Id; Val : Node_Id); -- Node3
10082 procedure Set_Digits_Expression
10083 (N : Node_Id; Val : Node_Id); -- Node2
10085 procedure Set_Discr_Check_Funcs_Built
10086 (N : Node_Id; Val : Boolean := True); -- Flag11
10088 procedure Set_Discrete_Choices
10089 (N : Node_Id; Val : List_Id); -- List4
10091 procedure Set_Discrete_Range
10092 (N : Node_Id; Val : Node_Id); -- Node4
10094 procedure Set_Discrete_Subtype_Definition
10095 (N : Node_Id; Val : Node_Id); -- Node4
10097 procedure Set_Discrete_Subtype_Definitions
10098 (N : Node_Id; Val : List_Id); -- List2
10100 procedure Set_Discriminant_Specifications
10101 (N : Node_Id; Val : List_Id); -- List4
10103 procedure Set_Discriminant_Type
10104 (N : Node_Id; Val : Node_Id); -- Node5
10106 procedure Set_Do_Accessibility_Check
10107 (N : Node_Id; Val : Boolean := True); -- Flag13
10109 procedure Set_Do_Discriminant_Check
10110 (N : Node_Id; Val : Boolean := True); -- Flag1
10112 procedure Set_Do_Division_Check
10113 (N : Node_Id; Val : Boolean := True); -- Flag13
10115 procedure Set_Do_Length_Check
10116 (N : Node_Id; Val : Boolean := True); -- Flag4
10118 procedure Set_Do_Overflow_Check
10119 (N : Node_Id; Val : Boolean := True); -- Flag17
10121 procedure Set_Do_Range_Check
10122 (N : Node_Id; Val : Boolean := True); -- Flag9
10124 procedure Set_Do_Storage_Check
10125 (N : Node_Id; Val : Boolean := True); -- Flag17
10127 procedure Set_Do_Tag_Check
10128 (N : Node_Id; Val : Boolean := True); -- Flag13
10130 procedure Set_Elaborate_All_Desirable
10131 (N : Node_Id; Val : Boolean := True); -- Flag9
10133 procedure Set_Elaborate_All_Present
10134 (N : Node_Id; Val : Boolean := True); -- Flag14
10136 procedure Set_Elaborate_Desirable
10137 (N : Node_Id; Val : Boolean := True); -- Flag11
10139 procedure Set_Elaborate_Present
10140 (N : Node_Id; Val : Boolean := True); -- Flag4
10142 procedure Set_Else_Actions
10143 (N : Node_Id; Val : List_Id); -- List3
10145 procedure Set_Else_Statements
10146 (N : Node_Id; Val : List_Id); -- List4
10148 procedure Set_Elsif_Parts
10149 (N : Node_Id; Val : List_Id); -- List3
10151 procedure Set_Enclosing_Variant
10152 (N : Node_Id; Val : Node_Id); -- Node2
10154 procedure Set_End_Label
10155 (N : Node_Id; Val : Node_Id); -- Node4
10157 procedure Set_End_Span
10158 (N : Node_Id; Val : Uint); -- Uint5
10160 procedure Set_Entity
10161 (N : Node_Id; Val : Node_Id); -- Node4
10163 procedure Set_Entry_Body_Formal_Part
10164 (N : Node_Id; Val : Node_Id); -- Node5
10166 procedure Set_Entry_Call_Alternative
10167 (N : Node_Id; Val : Node_Id); -- Node1
10169 procedure Set_Entry_Call_Statement
10170 (N : Node_Id; Val : Node_Id); -- Node1
10172 procedure Set_Entry_Direct_Name
10173 (N : Node_Id; Val : Node_Id); -- Node1
10175 procedure Set_Entry_Index
10176 (N : Node_Id; Val : Node_Id); -- Node5
10178 procedure Set_Entry_Index_Specification
10179 (N : Node_Id; Val : Node_Id); -- Node4
10181 procedure Set_Etype
10182 (N : Node_Id; Val : Node_Id); -- Node5
10184 procedure Set_Exception_Choices
10185 (N : Node_Id; Val : List_Id); -- List4
10187 procedure Set_Exception_Handlers
10188 (N : Node_Id; Val : List_Id); -- List5
10190 procedure Set_Exception_Junk
10191 (N : Node_Id; Val : Boolean := True); -- Flag8
10193 procedure Set_Exception_Label
10194 (N : Node_Id; Val : Node_Id); -- Node5
10196 procedure Set_Expansion_Delayed
10197 (N : Node_Id; Val : Boolean := True); -- Flag11
10199 procedure Set_Explicit_Actual_Parameter
10200 (N : Node_Id; Val : Node_Id); -- Node3
10202 procedure Set_Explicit_Generic_Actual_Parameter
10203 (N : Node_Id; Val : Node_Id); -- Node1
10205 procedure Set_Expression
10206 (N : Node_Id; Val : Node_Id); -- Node3
10208 procedure Set_Expressions
10209 (N : Node_Id; Val : List_Id); -- List1
10211 procedure Set_First_Bit
10212 (N : Node_Id; Val : Node_Id); -- Node3
10214 procedure Set_First_Inlined_Subprogram
10215 (N : Node_Id; Val : Entity_Id); -- Node3
10217 procedure Set_First_Name
10218 (N : Node_Id; Val : Boolean := True); -- Flag5
10220 procedure Set_First_Named_Actual
10221 (N : Node_Id; Val : Node_Id); -- Node4
10223 procedure Set_First_Real_Statement
10224 (N : Node_Id; Val : Node_Id); -- Node2
10226 procedure Set_First_Subtype_Link
10227 (N : Node_Id; Val : Entity_Id); -- Node5
10229 procedure Set_Float_Truncate
10230 (N : Node_Id; Val : Boolean := True); -- Flag11
10232 procedure Set_Formal_Type_Definition
10233 (N : Node_Id; Val : Node_Id); -- Node3
10235 procedure Set_Forwards_OK
10236 (N : Node_Id; Val : Boolean := True); -- Flag5
10238 procedure Set_From_Aspect_Specification
10239 (N : Node_Id; Val : Boolean := True); -- Flag13
10241 procedure Set_From_At_End
10242 (N : Node_Id; Val : Boolean := True); -- Flag4
10244 procedure Set_From_At_Mod
10245 (N : Node_Id; Val : Boolean := True); -- Flag4
10247 procedure Set_From_Conditional_Expression
10248 (N : Node_Id; Val : Boolean := True); -- Flag1
10250 procedure Set_From_Default
10251 (N : Node_Id; Val : Boolean := True); -- Flag6
10253 procedure Set_Generalized_Indexing
10254 (N : Node_Id; Val : Node_Id); -- Node4
10256 procedure Set_Generic_Associations
10257 (N : Node_Id; Val : List_Id); -- List3
10259 procedure Set_Generic_Formal_Declarations
10260 (N : Node_Id; Val : List_Id); -- List2
10262 procedure Set_Generic_Parent
10263 (N : Node_Id; Val : Node_Id); -- Node5
10265 procedure Set_Generic_Parent_Type
10266 (N : Node_Id; Val : Node_Id); -- Node4
10268 procedure Set_Handled_Statement_Sequence
10269 (N : Node_Id; Val : Node_Id); -- Node4
10271 procedure Set_Handler_List_Entry
10272 (N : Node_Id; Val : Node_Id); -- Node2
10274 procedure Set_Has_Created_Identifier
10275 (N : Node_Id; Val : Boolean := True); -- Flag15
10277 procedure Set_Has_Dereference_Action
10278 (N : Node_Id; Val : Boolean := True); -- Flag13
10280 procedure Set_Has_Dynamic_Length_Check
10281 (N : Node_Id; Val : Boolean := True); -- Flag10
10283 procedure Set_Has_Dynamic_Range_Check
10284 (N : Node_Id; Val : Boolean := True); -- Flag12
10286 procedure Set_Has_Init_Expression
10287 (N : Node_Id; Val : Boolean := True); -- Flag14
10289 procedure Set_Has_Local_Raise
10290 (N : Node_Id; Val : Boolean := True); -- Flag8
10292 procedure Set_Has_No_Elaboration_Code
10293 (N : Node_Id; Val : Boolean := True); -- Flag17
10295 procedure Set_Has_Pragma_Suppress_All
10296 (N : Node_Id; Val : Boolean := True); -- Flag14
10298 procedure Set_Has_Private_View
10299 (N : Node_Id; Val : Boolean := True); -- Flag11
10301 procedure Set_Has_Relative_Deadline_Pragma
10302 (N : Node_Id; Val : Boolean := True); -- Flag9
10304 procedure Set_Has_Self_Reference
10305 (N : Node_Id; Val : Boolean := True); -- Flag13
10307 procedure Set_Has_SP_Choice
10308 (N : Node_Id; Val : Boolean := True); -- Flag15
10310 procedure Set_Has_Storage_Size_Pragma
10311 (N : Node_Id; Val : Boolean := True); -- Flag5
10313 procedure Set_Has_Wide_Character
10314 (N : Node_Id; Val : Boolean := True); -- Flag11
10316 procedure Set_Has_Wide_Wide_Character
10317 (N : Node_Id; Val : Boolean := True); -- Flag13
10319 procedure Set_Header_Size_Added
10320 (N : Node_Id; Val : Boolean := True); -- Flag11
10322 procedure Set_Hidden_By_Use_Clause
10323 (N : Node_Id; Val : Elist_Id); -- Elist4
10325 procedure Set_High_Bound
10326 (N : Node_Id; Val : Node_Id); -- Node2
10328 procedure Set_Identifier
10329 (N : Node_Id; Val : Node_Id); -- Node1
10331 procedure Set_Interface_List
10332 (N : Node_Id; Val : List_Id); -- List2
10334 procedure Set_Interface_Present
10335 (N : Node_Id; Val : Boolean := True); -- Flag16
10337 procedure Set_Implicit_With
10338 (N : Node_Id; Val : Boolean := True); -- Flag16
10340 procedure Set_Implicit_With_From_Instantiation
10341 (N : Node_Id; Val : Boolean := True); -- Flag12
10343 procedure Set_Import_Interface_Present
10344 (N : Node_Id; Val : Boolean := True); -- Flag16
10346 procedure Set_In_Present
10347 (N : Node_Id; Val : Boolean := True); -- Flag15
10349 procedure Set_Includes_Infinities
10350 (N : Node_Id; Val : Boolean := True); -- Flag11
10352 procedure Set_Incomplete_View
10353 (N : Node_Id; Val : Node_Id); -- Node2
10355 procedure Set_Inherited_Discriminant
10356 (N : Node_Id; Val : Boolean := True); -- Flag13
10358 procedure Set_Instance_Spec
10359 (N : Node_Id; Val : Node_Id); -- Node5
10361 procedure Set_Intval
10362 (N : Node_Id; Val : Uint); -- Uint3
10364 procedure Set_Is_Accessibility_Actual
10365 (N : Node_Id; Val : Boolean := True); -- Flag13
10367 procedure Set_Is_Analyzed_Pragma
10368 (N : Node_Id; Val : Boolean := True); -- Flag5
10370 procedure Set_Is_Asynchronous_Call_Block
10371 (N : Node_Id; Val : Boolean := True); -- Flag7
10373 procedure Set_Is_Boolean_Aspect
10374 (N : Node_Id; Val : Boolean := True); -- Flag16
10376 procedure Set_Is_Checked
10377 (N : Node_Id; Val : Boolean := True); -- Flag11
10379 procedure Set_Is_Component_Left_Opnd
10380 (N : Node_Id; Val : Boolean := True); -- Flag13
10382 procedure Set_Is_Component_Right_Opnd
10383 (N : Node_Id; Val : Boolean := True); -- Flag14
10385 procedure Set_Is_Controlling_Actual
10386 (N : Node_Id; Val : Boolean := True); -- Flag16
10388 procedure Set_Is_Delayed_Aspect
10389 (N : Node_Id; Val : Boolean := True); -- Flag14
10391 procedure Set_Is_Disabled
10392 (N : Node_Id; Val : Boolean := True); -- Flag15
10394 procedure Set_Is_Dynamic_Coextension
10395 (N : Node_Id; Val : Boolean := True); -- Flag18
10397 procedure Set_Is_Elsif
10398 (N : Node_Id; Val : Boolean := True); -- Flag13
10400 procedure Set_Is_Entry_Barrier_Function
10401 (N : Node_Id; Val : Boolean := True); -- Flag8
10403 procedure Set_Is_Expanded_Build_In_Place_Call
10404 (N : Node_Id; Val : Boolean := True); -- Flag11
10406 procedure Set_Is_Expanded_Contract
10407 (N : Node_Id; Val : Boolean := True); -- Flag1
10409 procedure Set_Is_Finalization_Wrapper
10410 (N : Node_Id; Val : Boolean := True); -- Flag9
10412 procedure Set_Is_Folded_In_Parser
10413 (N : Node_Id; Val : Boolean := True); -- Flag4
10415 procedure Set_Is_Generic_Contract_Pragma
10416 (N : Node_Id; Val : Boolean := True); -- Flag2
10418 procedure Set_Is_Ghost_Pragma
10419 (N : Node_Id; Val : Boolean := True); -- Flag3
10421 procedure Set_Is_Ignored
10422 (N : Node_Id; Val : Boolean := True); -- Flag9
10424 procedure Set_Is_In_Discriminant_Check
10425 (N : Node_Id; Val : Boolean := True); -- Flag11
10427 procedure Set_Is_Inherited_Pragma
10428 (N : Node_Id; Val : Boolean := True); -- Flag4
10430 procedure Set_Is_Machine_Number
10431 (N : Node_Id; Val : Boolean := True); -- Flag11
10433 procedure Set_Is_Null_Loop
10434 (N : Node_Id; Val : Boolean := True); -- Flag16
10436 procedure Set_Is_Overloaded
10437 (N : Node_Id; Val : Boolean := True); -- Flag5
10439 procedure Set_Is_Power_Of_2_For_Shift
10440 (N : Node_Id; Val : Boolean := True); -- Flag13
10442 procedure Set_Is_Prefixed_Call
10443 (N : Node_Id; Val : Boolean := True); -- Flag17
10445 procedure Set_Is_Protected_Subprogram_Body
10446 (N : Node_Id; Val : Boolean := True); -- Flag7
10448 procedure Set_Is_Qualified_Universal_Literal
10449 (N : Node_Id; Val : Boolean := True); -- Flag4
10451 procedure Set_Is_Static_Coextension
10452 (N : Node_Id; Val : Boolean := True); -- Flag14
10454 procedure Set_Is_Static_Expression
10455 (N : Node_Id; Val : Boolean := True); -- Flag6
10457 procedure Set_Is_Subprogram_Descriptor
10458 (N : Node_Id; Val : Boolean := True); -- Flag16
10460 procedure Set_Is_Task_Allocation_Block
10461 (N : Node_Id; Val : Boolean := True); -- Flag6
10463 procedure Set_Is_Task_Body_Procedure
10464 (N : Node_Id; Val : Boolean := True); -- Flag1
10466 procedure Set_Is_Task_Master
10467 (N : Node_Id; Val : Boolean := True); -- Flag5
10469 procedure Set_Iteration_Scheme
10470 (N : Node_Id; Val : Node_Id); -- Node2
10472 procedure Set_Iterator_Specification
10473 (N : Node_Id; Val : Node_Id); -- Node2
10475 procedure Set_Itype
10476 (N : Node_Id; Val : Entity_Id); -- Node1
10478 procedure Set_Kill_Range_Check
10479 (N : Node_Id; Val : Boolean := True); -- Flag11
10481 procedure Set_Last_Bit
10482 (N : Node_Id; Val : Node_Id); -- Node4
10484 procedure Set_Last_Name
10485 (N : Node_Id; Val : Boolean := True); -- Flag6
10487 procedure Set_Library_Unit
10488 (N : Node_Id; Val : Node_Id); -- Node4
10490 procedure Set_Label_Construct
10491 (N : Node_Id; Val : Node_Id); -- Node2
10493 procedure Set_Left_Opnd
10494 (N : Node_Id; Val : Node_Id); -- Node2
10496 procedure Set_Limited_View_Installed
10497 (N : Node_Id; Val : Boolean := True); -- Flag18
10499 procedure Set_Limited_Present
10500 (N : Node_Id; Val : Boolean := True); -- Flag17
10502 procedure Set_Literals
10503 (N : Node_Id; Val : List_Id); -- List1
10505 procedure Set_Local_Raise_Not_OK
10506 (N : Node_Id; Val : Boolean := True); -- Flag7
10508 procedure Set_Local_Raise_Statements
10509 (N : Node_Id; Val : Elist_Id); -- Elist1
10511 procedure Set_Loop_Actions
10512 (N : Node_Id; Val : List_Id); -- List2
10514 procedure Set_Loop_Parameter_Specification
10515 (N : Node_Id; Val : Node_Id); -- Node4
10517 procedure Set_Low_Bound
10518 (N : Node_Id; Val : Node_Id); -- Node1
10520 procedure Set_Mod_Clause
10521 (N : Node_Id; Val : Node_Id); -- Node2
10523 procedure Set_More_Ids
10524 (N : Node_Id; Val : Boolean := True); -- Flag5
10526 procedure Set_Must_Be_Byte_Aligned
10527 (N : Node_Id; Val : Boolean := True); -- Flag14
10529 procedure Set_Must_Not_Freeze
10530 (N : Node_Id; Val : Boolean := True); -- Flag8
10532 procedure Set_Must_Not_Override
10533 (N : Node_Id; Val : Boolean := True); -- Flag15
10535 procedure Set_Must_Override
10536 (N : Node_Id; Val : Boolean := True); -- Flag14
10538 procedure Set_Name
10539 (N : Node_Id; Val : Node_Id); -- Node2
10541 procedure Set_Names
10542 (N : Node_Id; Val : List_Id); -- List2
10544 procedure Set_Next_Entity
10545 (N : Node_Id; Val : Node_Id); -- Node2
10547 procedure Set_Next_Exit_Statement
10548 (N : Node_Id; Val : Node_Id); -- Node3
10550 procedure Set_Next_Implicit_With
10551 (N : Node_Id; Val : Node_Id); -- Node3
10553 procedure Set_Next_Named_Actual
10554 (N : Node_Id; Val : Node_Id); -- Node4
10556 procedure Set_Next_Pragma
10557 (N : Node_Id; Val : Node_Id); -- Node1
10559 procedure Set_Next_Rep_Item
10560 (N : Node_Id; Val : Node_Id); -- Node5
10562 procedure Set_Next_Use_Clause
10563 (N : Node_Id; Val : Node_Id); -- Node3
10565 procedure Set_No_Ctrl_Actions
10566 (N : Node_Id; Val : Boolean := True); -- Flag7
10568 procedure Set_No_Elaboration_Check
10569 (N : Node_Id; Val : Boolean := True); -- Flag14
10571 procedure Set_No_Entities_Ref_In_Spec
10572 (N : Node_Id; Val : Boolean := True); -- Flag8
10574 procedure Set_No_Initialization
10575 (N : Node_Id; Val : Boolean := True); -- Flag13
10577 procedure Set_No_Minimize_Eliminate
10578 (N : Node_Id; Val : Boolean := True); -- Flag17
10580 procedure Set_No_Truncation
10581 (N : Node_Id; Val : Boolean := True); -- Flag17
10583 procedure Set_Non_Aliased_Prefix
10584 (N : Node_Id; Val : Boolean := True); -- Flag18
10586 procedure Set_Null_Present
10587 (N : Node_Id; Val : Boolean := True); -- Flag13
10589 procedure Set_Null_Excluding_Subtype
10590 (N : Node_Id; Val : Boolean := True); -- Flag16
10592 procedure Set_Null_Exclusion_Present
10593 (N : Node_Id; Val : Boolean := True); -- Flag11
10595 procedure Set_Null_Exclusion_In_Return_Present
10596 (N : Node_Id; Val : Boolean := True); -- Flag14
10598 procedure Set_Null_Record_Present
10599 (N : Node_Id; Val : Boolean := True); -- Flag17
10601 procedure Set_Object_Definition
10602 (N : Node_Id; Val : Node_Id); -- Node4
10604 procedure Set_Of_Present
10605 (N : Node_Id; Val : Boolean := True); -- Flag16
10607 procedure Set_Original_Discriminant
10608 (N : Node_Id; Val : Node_Id); -- Node2
10610 procedure Set_Original_Entity
10611 (N : Node_Id; Val : Entity_Id); -- Node2
10613 procedure Set_Others_Discrete_Choices
10614 (N : Node_Id; Val : List_Id); -- List1
10616 procedure Set_Out_Present
10617 (N : Node_Id; Val : Boolean := True); -- Flag17
10619 procedure Set_Parameter_Associations
10620 (N : Node_Id; Val : List_Id); -- List3
10622 procedure Set_Parameter_Specifications
10623 (N : Node_Id; Val : List_Id); -- List3
10625 procedure Set_Parameter_Type
10626 (N : Node_Id; Val : Node_Id); -- Node2
10628 procedure Set_Parent_Spec
10629 (N : Node_Id; Val : Node_Id); -- Node4
10631 procedure Set_Position
10632 (N : Node_Id; Val : Node_Id); -- Node2
10634 procedure Set_Pragma_Argument_Associations
10635 (N : Node_Id; Val : List_Id); -- List2
10637 procedure Set_Pragma_Identifier
10638 (N : Node_Id; Val : Node_Id); -- Node4
10640 procedure Set_Pragmas_After
10641 (N : Node_Id; Val : List_Id); -- List5
10643 procedure Set_Pragmas_Before
10644 (N : Node_Id; Val : List_Id); -- List4
10646 procedure Set_Pre_Post_Conditions
10647 (N : Node_Id; Val : Node_Id); -- Node1
10649 procedure Set_Prefix
10650 (N : Node_Id; Val : Node_Id); -- Node3
10652 procedure Set_Premature_Use
10653 (N : Node_Id; Val : Node_Id); -- Node5
10655 procedure Set_Present_Expr
10656 (N : Node_Id; Val : Uint); -- Uint3
10658 procedure Set_Prev_Ids
10659 (N : Node_Id; Val : Boolean := True); -- Flag6
10661 procedure Set_Print_In_Hex
10662 (N : Node_Id; Val : Boolean := True); -- Flag13
10664 procedure Set_Private_Declarations
10665 (N : Node_Id; Val : List_Id); -- List3
10667 procedure Set_Private_Present
10668 (N : Node_Id; Val : Boolean := True); -- Flag15
10670 procedure Set_Procedure_To_Call
10671 (N : Node_Id; Val : Node_Id); -- Node2
10673 procedure Set_Proper_Body
10674 (N : Node_Id; Val : Node_Id); -- Node1
10676 procedure Set_Protected_Definition
10677 (N : Node_Id; Val : Node_Id); -- Node3
10679 procedure Set_Protected_Present
10680 (N : Node_Id; Val : Boolean := True); -- Flag6
10682 procedure Set_Raises_Constraint_Error
10683 (N : Node_Id; Val : Boolean := True); -- Flag7
10685 procedure Set_Range_Constraint
10686 (N : Node_Id; Val : Node_Id); -- Node4
10688 procedure Set_Range_Expression
10689 (N : Node_Id; Val : Node_Id); -- Node4
10691 procedure Set_Real_Range_Specification
10692 (N : Node_Id; Val : Node_Id); -- Node4
10694 procedure Set_Realval
10695 (N : Node_Id; Val : Ureal); -- Ureal3
10697 procedure Set_Reason
10698 (N : Node_Id; Val : Uint); -- Uint3
10700 procedure Set_Record_Extension_Part
10701 (N : Node_Id; Val : Node_Id); -- Node3
10703 procedure Set_Redundant_Use
10704 (N : Node_Id; Val : Boolean := True); -- Flag13
10706 procedure Set_Renaming_Exception
10707 (N : Node_Id; Val : Node_Id); -- Node2
10709 procedure Set_Result_Definition
10710 (N : Node_Id; Val : Node_Id); -- Node4
10712 procedure Set_Return_Object_Declarations
10713 (N : Node_Id; Val : List_Id); -- List3
10715 procedure Set_Return_Statement_Entity
10716 (N : Node_Id; Val : Node_Id); -- Node5
10718 procedure Set_Reverse_Present
10719 (N : Node_Id; Val : Boolean := True); -- Flag15
10721 procedure Set_Right_Opnd
10722 (N : Node_Id; Val : Node_Id); -- Node3
10724 procedure Set_Rounded_Result
10725 (N : Node_Id; Val : Boolean := True); -- Flag18
10727 procedure Set_SCIL_Controlling_Tag
10728 (N : Node_Id; Val : Node_Id); -- Node5
10730 procedure Set_SCIL_Entity
10731 (N : Node_Id; Val : Node_Id); -- Node4
10733 procedure Set_SCIL_Tag_Value
10734 (N : Node_Id; Val : Node_Id); -- Node5
10736 procedure Set_SCIL_Target_Prim
10737 (N : Node_Id; Val : Node_Id); -- Node2
10739 procedure Set_Scope
10740 (N : Node_Id; Val : Node_Id); -- Node3
10742 procedure Set_Select_Alternatives
10743 (N : Node_Id; Val : List_Id); -- List1
10745 procedure Set_Selector_Name
10746 (N : Node_Id; Val : Node_Id); -- Node2
10748 procedure Set_Selector_Names
10749 (N : Node_Id; Val : List_Id); -- List1
10751 procedure Set_Shift_Count_OK
10752 (N : Node_Id; Val : Boolean := True); -- Flag4
10754 procedure Set_Source_Type
10755 (N : Node_Id; Val : Entity_Id); -- Node1
10757 procedure Set_Specification
10758 (N : Node_Id; Val : Node_Id); -- Node1
10760 procedure Set_Split_PPC
10761 (N : Node_Id; Val : Boolean); -- Flag17
10763 procedure Set_Statements
10764 (N : Node_Id; Val : List_Id); -- List3
10766 procedure Set_Storage_Pool
10767 (N : Node_Id; Val : Node_Id); -- Node1
10769 procedure Set_Subpool_Handle_Name
10770 (N : Node_Id; Val : Node_Id); -- Node4
10772 procedure Set_Strval
10773 (N : Node_Id; Val : String_Id); -- Str3
10775 procedure Set_Subtype_Indication
10776 (N : Node_Id; Val : Node_Id); -- Node5
10778 procedure Set_Subtype_Mark
10779 (N : Node_Id; Val : Node_Id); -- Node4
10781 procedure Set_Subtype_Marks
10782 (N : Node_Id; Val : List_Id); -- List2
10784 procedure Set_Suppress_Assignment_Checks
10785 (N : Node_Id; Val : Boolean := True); -- Flag18
10787 procedure Set_Suppress_Loop_Warnings
10788 (N : Node_Id; Val : Boolean := True); -- Flag17
10790 procedure Set_Synchronized_Present
10791 (N : Node_Id; Val : Boolean := True); -- Flag7
10793 procedure Set_Tagged_Present
10794 (N : Node_Id; Val : Boolean := True); -- Flag15
10796 procedure Set_Target_Type
10797 (N : Node_Id; Val : Entity_Id); -- Node2
10799 procedure Set_Task_Definition
10800 (N : Node_Id; Val : Node_Id); -- Node3
10802 procedure Set_Task_Present
10803 (N : Node_Id; Val : Boolean := True); -- Flag5
10805 procedure Set_Then_Actions
10806 (N : Node_Id; Val : List_Id); -- List2
10808 procedure Set_Then_Statements
10809 (N : Node_Id; Val : List_Id); -- List2
10811 procedure Set_Treat_Fixed_As_Integer
10812 (N : Node_Id; Val : Boolean := True); -- Flag14
10814 procedure Set_Triggering_Alternative
10815 (N : Node_Id; Val : Node_Id); -- Node1
10817 procedure Set_Triggering_Statement
10818 (N : Node_Id; Val : Node_Id); -- Node1
10820 procedure Set_TSS_Elist
10821 (N : Node_Id; Val : Elist_Id); -- Elist3
10823 procedure Set_Type_Definition
10824 (N : Node_Id; Val : Node_Id); -- Node3
10826 procedure Set_Uneval_Old_Accept
10827 (N : Node_Id; Val : Boolean := True); -- Flag7
10829 procedure Set_Uneval_Old_Warn
10830 (N : Node_Id; Val : Boolean := True); -- Flag18
10832 procedure Set_Unit
10833 (N : Node_Id; Val : Node_Id); -- Node2
10835 procedure Set_Unknown_Discriminants_Present
10836 (N : Node_Id; Val : Boolean := True); -- Flag13
10838 procedure Set_Unreferenced_In_Spec
10839 (N : Node_Id; Val : Boolean := True); -- Flag7
10841 procedure Set_Variant_Part
10842 (N : Node_Id; Val : Node_Id); -- Node4
10844 procedure Set_Variants
10845 (N : Node_Id; Val : List_Id); -- List1
10847 procedure Set_Visible_Declarations
10848 (N : Node_Id; Val : List_Id); -- List2
10850 procedure Set_Uninitialized_Variable
10851 (N : Node_Id; Val : Node_Id); -- Node3
10853 procedure Set_Used_Operations
10854 (N : Node_Id; Val : Elist_Id); -- Elist5
10856 procedure Set_Was_Expression_Function
10857 (N : Node_Id; Val : Boolean := True); -- Flag18
10859 procedure Set_Was_Originally_Stub
10860 (N : Node_Id; Val : Boolean := True); -- Flag13
10862 procedure Set_Withed_Body
10863 (N : Node_Id; Val : Node_Id); -- Node1
10865 -------------------------
10866 -- Iterator Procedures --
10867 -------------------------
10869 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10871 procedure Next_Entity (N : in out Node_Id);
10872 procedure Next_Named_Actual (N : in out Node_Id);
10873 procedure Next_Rep_Item (N : in out Node_Id);
10874 procedure Next_Use_Clause (N : in out Node_Id);
10876 -------------------------------------------
10877 -- Miscellaneous Tree Access Subprograms --
10878 -------------------------------------------
10880 function End_Location (N : Node_Id) return Source_Ptr;
10881 -- N is an N_If_Statement or N_Case_Statement node, and this function
10882 -- returns the location of the IF token in the END IF sequence by
10883 -- translating the value of the End_Span field.
10885 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10886 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10887 -- the End_Span field to correspond to the given value S. In other words,
10888 -- End_Span is set to the difference between S and Sloc (N), the starting
10889 -- location.
10891 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10892 -- Given an argument to a pragma Arg, this function returns the expression
10893 -- for the argument. This is Arg itself, or, in the case where Arg is a
10894 -- pragma argument association node, the expression from this node.
10896 --------------------------------
10897 -- Node_Kind Membership Tests --
10898 --------------------------------
10900 -- The following functions allow a convenient notation for testing whether
10901 -- a Node_Kind value matches any one of a list of possible values. In each
10902 -- case True is returned if the given T argument is equal to any of the V
10903 -- arguments. Note that there is a similar set of functions defined in
10904 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10906 function Nkind_In
10907 (T : Node_Kind;
10908 V1 : Node_Kind;
10909 V2 : Node_Kind) return Boolean;
10911 function Nkind_In
10912 (T : Node_Kind;
10913 V1 : Node_Kind;
10914 V2 : Node_Kind;
10915 V3 : Node_Kind) return Boolean;
10917 function Nkind_In
10918 (T : Node_Kind;
10919 V1 : Node_Kind;
10920 V2 : Node_Kind;
10921 V3 : Node_Kind;
10922 V4 : Node_Kind) return Boolean;
10924 function Nkind_In
10925 (T : Node_Kind;
10926 V1 : Node_Kind;
10927 V2 : Node_Kind;
10928 V3 : Node_Kind;
10929 V4 : Node_Kind;
10930 V5 : Node_Kind) return Boolean;
10932 function Nkind_In
10933 (T : Node_Kind;
10934 V1 : Node_Kind;
10935 V2 : Node_Kind;
10936 V3 : Node_Kind;
10937 V4 : Node_Kind;
10938 V5 : Node_Kind;
10939 V6 : Node_Kind) return Boolean;
10941 function Nkind_In
10942 (T : Node_Kind;
10943 V1 : Node_Kind;
10944 V2 : Node_Kind;
10945 V3 : Node_Kind;
10946 V4 : Node_Kind;
10947 V5 : Node_Kind;
10948 V6 : Node_Kind;
10949 V7 : Node_Kind) return Boolean;
10951 function Nkind_In
10952 (T : Node_Kind;
10953 V1 : Node_Kind;
10954 V2 : Node_Kind;
10955 V3 : Node_Kind;
10956 V4 : Node_Kind;
10957 V5 : Node_Kind;
10958 V6 : Node_Kind;
10959 V7 : Node_Kind;
10960 V8 : Node_Kind) return Boolean;
10962 function Nkind_In
10963 (T : Node_Kind;
10964 V1 : Node_Kind;
10965 V2 : Node_Kind;
10966 V3 : Node_Kind;
10967 V4 : Node_Kind;
10968 V5 : Node_Kind;
10969 V6 : Node_Kind;
10970 V7 : Node_Kind;
10971 V8 : Node_Kind;
10972 V9 : Node_Kind) return Boolean;
10974 pragma Inline (Nkind_In);
10975 -- Inline all above functions
10977 -----------------------
10978 -- Utility Functions --
10979 -----------------------
10981 function Pragma_Name (N : Node_Id) return Name_Id;
10982 pragma Inline (Pragma_Name);
10983 -- Convenient function to obtain Chars field of Pragma_Identifier
10985 -----------------------------
10986 -- Syntactic Parent Tables --
10987 -----------------------------
10989 -- These tables show for each node, and for each of the five fields,
10990 -- whether the corresponding field is syntactic (True) or semantic (False).
10991 -- Unused entries are also set to False.
10993 subtype Field_Num is Natural range 1 .. 5;
10995 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10997 -- Following entries can be built automatically from the sinfo sources
10998 -- using the makeisf utility (currently this program is in spitbol).
11000 N_Identifier =>
11001 (1 => True, -- Chars (Name1)
11002 2 => False, -- Original_Discriminant (Node2-Sem)
11003 3 => False, -- unused
11004 4 => False, -- Entity (Node4-Sem)
11005 5 => False), -- Etype (Node5-Sem)
11007 N_Integer_Literal =>
11008 (1 => False, -- unused
11009 2 => False, -- Original_Entity (Node2-Sem)
11010 3 => True, -- Intval (Uint3)
11011 4 => False, -- unused
11012 5 => False), -- Etype (Node5-Sem)
11014 N_Real_Literal =>
11015 (1 => False, -- unused
11016 2 => False, -- Original_Entity (Node2-Sem)
11017 3 => True, -- Realval (Ureal3)
11018 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11019 5 => False), -- Etype (Node5-Sem)
11021 N_Character_Literal =>
11022 (1 => True, -- Chars (Name1)
11023 2 => True, -- Char_Literal_Value (Uint2)
11024 3 => False, -- unused
11025 4 => False, -- Entity (Node4-Sem)
11026 5 => False), -- Etype (Node5-Sem)
11028 N_String_Literal =>
11029 (1 => False, -- unused
11030 2 => False, -- unused
11031 3 => True, -- Strval (Str3)
11032 4 => False, -- unused
11033 5 => False), -- Etype (Node5-Sem)
11035 N_Pragma =>
11036 (1 => False, -- Next_Pragma (Node1-Sem)
11037 2 => True, -- Pragma_Argument_Associations (List2)
11038 3 => False, -- Corresponding_Aspect (Node3-Sem)
11039 4 => True, -- Pragma_Identifier (Node4)
11040 5 => False), -- Next_Rep_Item (Node5-Sem)
11042 N_Pragma_Argument_Association =>
11043 (1 => True, -- Chars (Name1)
11044 2 => False, -- unused
11045 3 => True, -- Expression (Node3)
11046 4 => False, -- unused
11047 5 => False), -- unused
11049 N_Defining_Identifier =>
11050 (1 => True, -- Chars (Name1)
11051 2 => False, -- Next_Entity (Node2-Sem)
11052 3 => False, -- Scope (Node3-Sem)
11053 4 => False, -- unused
11054 5 => False), -- Etype (Node5-Sem)
11056 N_Full_Type_Declaration =>
11057 (1 => True, -- Defining_Identifier (Node1)
11058 2 => False, -- Incomplete_View (Node2-Sem)
11059 3 => True, -- Type_Definition (Node3)
11060 4 => True, -- Discriminant_Specifications (List4)
11061 5 => False), -- unused
11063 N_Subtype_Declaration =>
11064 (1 => True, -- Defining_Identifier (Node1)
11065 2 => False, -- unused
11066 3 => False, -- unused
11067 4 => False, -- Generic_Parent_Type (Node4-Sem)
11068 5 => True), -- Subtype_Indication (Node5)
11070 N_Subtype_Indication =>
11071 (1 => False, -- unused
11072 2 => False, -- unused
11073 3 => True, -- Constraint (Node3)
11074 4 => True, -- Subtype_Mark (Node4)
11075 5 => False), -- Etype (Node5-Sem)
11077 N_Object_Declaration =>
11078 (1 => True, -- Defining_Identifier (Node1)
11079 2 => False, -- Handler_List_Entry (Node2-Sem)
11080 3 => True, -- Expression (Node3)
11081 4 => True, -- Object_Definition (Node4)
11082 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11084 N_Number_Declaration =>
11085 (1 => True, -- Defining_Identifier (Node1)
11086 2 => False, -- unused
11087 3 => True, -- Expression (Node3)
11088 4 => False, -- unused
11089 5 => False), -- unused
11091 N_Derived_Type_Definition =>
11092 (1 => False, -- unused
11093 2 => True, -- Interface_List (List2)
11094 3 => True, -- Record_Extension_Part (Node3)
11095 4 => False, -- unused
11096 5 => True), -- Subtype_Indication (Node5)
11098 N_Range_Constraint =>
11099 (1 => False, -- unused
11100 2 => False, -- unused
11101 3 => False, -- unused
11102 4 => True, -- Range_Expression (Node4)
11103 5 => False), -- unused
11105 N_Range =>
11106 (1 => True, -- Low_Bound (Node1)
11107 2 => True, -- High_Bound (Node2)
11108 3 => False, -- unused
11109 4 => False, -- unused
11110 5 => False), -- Etype (Node5-Sem)
11112 N_Enumeration_Type_Definition =>
11113 (1 => True, -- Literals (List1)
11114 2 => False, -- unused
11115 3 => False, -- unused
11116 4 => True, -- End_Label (Node4)
11117 5 => False), -- unused
11119 N_Defining_Character_Literal =>
11120 (1 => True, -- Chars (Name1)
11121 2 => False, -- Next_Entity (Node2-Sem)
11122 3 => False, -- Scope (Node3-Sem)
11123 4 => False, -- unused
11124 5 => False), -- Etype (Node5-Sem)
11126 N_Signed_Integer_Type_Definition =>
11127 (1 => True, -- Low_Bound (Node1)
11128 2 => True, -- High_Bound (Node2)
11129 3 => False, -- unused
11130 4 => False, -- unused
11131 5 => False), -- unused
11133 N_Modular_Type_Definition =>
11134 (1 => False, -- unused
11135 2 => False, -- unused
11136 3 => True, -- Expression (Node3)
11137 4 => False, -- unused
11138 5 => False), -- unused
11140 N_Floating_Point_Definition =>
11141 (1 => False, -- unused
11142 2 => True, -- Digits_Expression (Node2)
11143 3 => False, -- unused
11144 4 => True, -- Real_Range_Specification (Node4)
11145 5 => False), -- unused
11147 N_Real_Range_Specification =>
11148 (1 => True, -- Low_Bound (Node1)
11149 2 => True, -- High_Bound (Node2)
11150 3 => False, -- unused
11151 4 => False, -- unused
11152 5 => False), -- unused
11154 N_Ordinary_Fixed_Point_Definition =>
11155 (1 => False, -- unused
11156 2 => False, -- unused
11157 3 => True, -- Delta_Expression (Node3)
11158 4 => True, -- Real_Range_Specification (Node4)
11159 5 => False), -- unused
11161 N_Decimal_Fixed_Point_Definition =>
11162 (1 => False, -- unused
11163 2 => True, -- Digits_Expression (Node2)
11164 3 => True, -- Delta_Expression (Node3)
11165 4 => True, -- Real_Range_Specification (Node4)
11166 5 => False), -- unused
11168 N_Digits_Constraint =>
11169 (1 => False, -- unused
11170 2 => True, -- Digits_Expression (Node2)
11171 3 => False, -- unused
11172 4 => True, -- Range_Constraint (Node4)
11173 5 => False), -- unused
11175 N_Unconstrained_Array_Definition =>
11176 (1 => False, -- unused
11177 2 => True, -- Subtype_Marks (List2)
11178 3 => False, -- unused
11179 4 => True, -- Component_Definition (Node4)
11180 5 => False), -- unused
11182 N_Constrained_Array_Definition =>
11183 (1 => False, -- unused
11184 2 => True, -- Discrete_Subtype_Definitions (List2)
11185 3 => False, -- unused
11186 4 => True, -- Component_Definition (Node4)
11187 5 => False), -- unused
11189 N_Component_Definition =>
11190 (1 => False, -- unused
11191 2 => False, -- unused
11192 3 => True, -- Access_Definition (Node3)
11193 4 => False, -- unused
11194 5 => True), -- Subtype_Indication (Node5)
11196 N_Discriminant_Specification =>
11197 (1 => True, -- Defining_Identifier (Node1)
11198 2 => False, -- unused
11199 3 => True, -- Expression (Node3)
11200 4 => False, -- unused
11201 5 => True), -- Discriminant_Type (Node5)
11203 N_Index_Or_Discriminant_Constraint =>
11204 (1 => True, -- Constraints (List1)
11205 2 => False, -- unused
11206 3 => False, -- unused
11207 4 => False, -- unused
11208 5 => False), -- unused
11210 N_Discriminant_Association =>
11211 (1 => True, -- Selector_Names (List1)
11212 2 => False, -- unused
11213 3 => True, -- Expression (Node3)
11214 4 => False, -- unused
11215 5 => False), -- unused
11217 N_Record_Definition =>
11218 (1 => True, -- Component_List (Node1)
11219 2 => True, -- Interface_List (List2)
11220 3 => False, -- unused
11221 4 => True, -- End_Label (Node4)
11222 5 => False), -- unused
11224 N_Component_List =>
11225 (1 => False, -- unused
11226 2 => False, -- unused
11227 3 => True, -- Component_Items (List3)
11228 4 => True, -- Variant_Part (Node4)
11229 5 => False), -- unused
11231 N_Component_Declaration =>
11232 (1 => True, -- Defining_Identifier (Node1)
11233 2 => False, -- unused
11234 3 => True, -- Expression (Node3)
11235 4 => True, -- Component_Definition (Node4)
11236 5 => False), -- unused
11238 N_Variant_Part =>
11239 (1 => True, -- Variants (List1)
11240 2 => True, -- Name (Node2)
11241 3 => False, -- unused
11242 4 => False, -- unused
11243 5 => False), -- unused
11245 N_Variant =>
11246 (1 => True, -- Component_List (Node1)
11247 2 => False, -- Enclosing_Variant (Node2-Sem)
11248 3 => False, -- Present_Expr (Uint3-Sem)
11249 4 => True, -- Discrete_Choices (List4)
11250 5 => False), -- Dcheck_Function (Node5-Sem)
11252 N_Others_Choice =>
11253 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11254 2 => False, -- unused
11255 3 => False, -- unused
11256 4 => False, -- unused
11257 5 => False), -- unused
11259 N_Access_To_Object_Definition =>
11260 (1 => False, -- unused
11261 2 => False, -- unused
11262 3 => False, -- unused
11263 4 => False, -- unused
11264 5 => True), -- Subtype_Indication (Node5)
11266 N_Access_Function_Definition =>
11267 (1 => False, -- unused
11268 2 => False, -- unused
11269 3 => True, -- Parameter_Specifications (List3)
11270 4 => True, -- Result_Definition (Node4)
11271 5 => False), -- unused
11273 N_Access_Procedure_Definition =>
11274 (1 => False, -- unused
11275 2 => False, -- unused
11276 3 => True, -- Parameter_Specifications (List3)
11277 4 => False, -- unused
11278 5 => False), -- unused
11280 N_Access_Definition =>
11281 (1 => False, -- unused
11282 2 => False, -- unused
11283 3 => True, -- Access_To_Subprogram_Definition (Node3)
11284 4 => True, -- Subtype_Mark (Node4)
11285 5 => False), -- unused
11287 N_Incomplete_Type_Declaration =>
11288 (1 => True, -- Defining_Identifier (Node1)
11289 2 => False, -- unused
11290 3 => False, -- unused
11291 4 => True, -- Discriminant_Specifications (List4)
11292 5 => False), -- Premature_Use
11294 N_Explicit_Dereference =>
11295 (1 => False, -- unused
11296 2 => False, -- unused
11297 3 => True, -- Prefix (Node3)
11298 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11299 5 => False), -- Etype (Node5-Sem)
11301 N_Indexed_Component =>
11302 (1 => True, -- Expressions (List1)
11303 2 => False, -- unused
11304 3 => True, -- Prefix (Node3)
11305 4 => False, -- Generalized_Indexing (Node4-Sem)
11306 5 => False), -- Etype (Node5-Sem)
11308 N_Slice =>
11309 (1 => False, -- unused
11310 2 => False, -- unused
11311 3 => True, -- Prefix (Node3)
11312 4 => True, -- Discrete_Range (Node4)
11313 5 => False), -- Etype (Node5-Sem)
11315 N_Selected_Component =>
11316 (1 => False, -- unused
11317 2 => True, -- Selector_Name (Node2)
11318 3 => True, -- Prefix (Node3)
11319 4 => False, -- unused
11320 5 => False), -- Etype (Node5-Sem)
11322 N_Attribute_Reference =>
11323 (1 => True, -- Expressions (List1)
11324 2 => True, -- Attribute_Name (Name2)
11325 3 => True, -- Prefix (Node3)
11326 4 => False, -- Entity (Node4-Sem)
11327 5 => False), -- Etype (Node5-Sem)
11329 N_Aggregate =>
11330 (1 => True, -- Expressions (List1)
11331 2 => True, -- Component_Associations (List2)
11332 3 => False, -- Aggregate_Bounds (Node3-Sem)
11333 4 => False, -- unused
11334 5 => False), -- Etype (Node5-Sem)
11336 N_Component_Association =>
11337 (1 => True, -- Choices (List1)
11338 2 => False, -- Loop_Actions (List2-Sem)
11339 3 => True, -- Expression (Node3)
11340 4 => False, -- unused
11341 5 => False), -- unused
11343 N_Extension_Aggregate =>
11344 (1 => True, -- Expressions (List1)
11345 2 => True, -- Component_Associations (List2)
11346 3 => True, -- Ancestor_Part (Node3)
11347 4 => False, -- unused
11348 5 => False), -- Etype (Node5-Sem)
11350 N_Null =>
11351 (1 => False, -- unused
11352 2 => False, -- unused
11353 3 => False, -- unused
11354 4 => False, -- unused
11355 5 => False), -- Etype (Node5-Sem)
11357 N_And_Then =>
11358 (1 => False, -- Actions (List1-Sem)
11359 2 => True, -- Left_Opnd (Node2)
11360 3 => True, -- Right_Opnd (Node3)
11361 4 => False, -- unused
11362 5 => False), -- Etype (Node5-Sem)
11364 N_Or_Else =>
11365 (1 => False, -- Actions (List1-Sem)
11366 2 => True, -- Left_Opnd (Node2)
11367 3 => True, -- Right_Opnd (Node3)
11368 4 => False, -- unused
11369 5 => False), -- Etype (Node5-Sem)
11371 N_In =>
11372 (1 => False, -- unused
11373 2 => True, -- Left_Opnd (Node2)
11374 3 => True, -- Right_Opnd (Node3)
11375 4 => True, -- Alternatives (List4)
11376 5 => False), -- Etype (Node5-Sem)
11378 N_Not_In =>
11379 (1 => False, -- unused
11380 2 => True, -- Left_Opnd (Node2)
11381 3 => True, -- Right_Opnd (Node3)
11382 4 => True, -- Alternatives (List4)
11383 5 => False), -- Etype (Node5-Sem)
11385 N_Op_And =>
11386 (1 => True, -- Chars (Name1)
11387 2 => True, -- Left_Opnd (Node2)
11388 3 => True, -- Right_Opnd (Node3)
11389 4 => False, -- Entity (Node4-Sem)
11390 5 => False), -- Etype (Node5-Sem)
11392 N_Op_Or =>
11393 (1 => True, -- Chars (Name1)
11394 2 => True, -- Left_Opnd (Node2)
11395 3 => True, -- Right_Opnd (Node3)
11396 4 => False, -- Entity (Node4-Sem)
11397 5 => False), -- Etype (Node5-Sem)
11399 N_Op_Xor =>
11400 (1 => True, -- Chars (Name1)
11401 2 => True, -- Left_Opnd (Node2)
11402 3 => True, -- Right_Opnd (Node3)
11403 4 => False, -- Entity (Node4-Sem)
11404 5 => False), -- Etype (Node5-Sem)
11406 N_Op_Eq =>
11407 (1 => True, -- Chars (Name1)
11408 2 => True, -- Left_Opnd (Node2)
11409 3 => True, -- Right_Opnd (Node3)
11410 4 => False, -- Entity (Node4-Sem)
11411 5 => False), -- Etype (Node5-Sem)
11413 N_Op_Ne =>
11414 (1 => True, -- Chars (Name1)
11415 2 => True, -- Left_Opnd (Node2)
11416 3 => True, -- Right_Opnd (Node3)
11417 4 => False, -- Entity (Node4-Sem)
11418 5 => False), -- Etype (Node5-Sem)
11420 N_Op_Lt =>
11421 (1 => True, -- Chars (Name1)
11422 2 => True, -- Left_Opnd (Node2)
11423 3 => True, -- Right_Opnd (Node3)
11424 4 => False, -- Entity (Node4-Sem)
11425 5 => False), -- Etype (Node5-Sem)
11427 N_Op_Le =>
11428 (1 => True, -- Chars (Name1)
11429 2 => True, -- Left_Opnd (Node2)
11430 3 => True, -- Right_Opnd (Node3)
11431 4 => False, -- Entity (Node4-Sem)
11432 5 => False), -- Etype (Node5-Sem)
11434 N_Op_Gt =>
11435 (1 => True, -- Chars (Name1)
11436 2 => True, -- Left_Opnd (Node2)
11437 3 => True, -- Right_Opnd (Node3)
11438 4 => False, -- Entity (Node4-Sem)
11439 5 => False), -- Etype (Node5-Sem)
11441 N_Op_Ge =>
11442 (1 => True, -- Chars (Name1)
11443 2 => True, -- Left_Opnd (Node2)
11444 3 => True, -- Right_Opnd (Node3)
11445 4 => False, -- Entity (Node4-Sem)
11446 5 => False), -- Etype (Node5-Sem)
11448 N_Op_Add =>
11449 (1 => True, -- Chars (Name1)
11450 2 => True, -- Left_Opnd (Node2)
11451 3 => True, -- Right_Opnd (Node3)
11452 4 => False, -- Entity (Node4-Sem)
11453 5 => False), -- Etype (Node5-Sem)
11455 N_Op_Subtract =>
11456 (1 => True, -- Chars (Name1)
11457 2 => True, -- Left_Opnd (Node2)
11458 3 => True, -- Right_Opnd (Node3)
11459 4 => False, -- Entity (Node4-Sem)
11460 5 => False), -- Etype (Node5-Sem)
11462 N_Op_Concat =>
11463 (1 => True, -- Chars (Name1)
11464 2 => True, -- Left_Opnd (Node2)
11465 3 => True, -- Right_Opnd (Node3)
11466 4 => False, -- Entity (Node4-Sem)
11467 5 => False), -- Etype (Node5-Sem)
11469 N_Op_Multiply =>
11470 (1 => True, -- Chars (Name1)
11471 2 => True, -- Left_Opnd (Node2)
11472 3 => True, -- Right_Opnd (Node3)
11473 4 => False, -- Entity (Node4-Sem)
11474 5 => False), -- Etype (Node5-Sem)
11476 N_Op_Divide =>
11477 (1 => True, -- Chars (Name1)
11478 2 => True, -- Left_Opnd (Node2)
11479 3 => True, -- Right_Opnd (Node3)
11480 4 => False, -- Entity (Node4-Sem)
11481 5 => False), -- Etype (Node5-Sem)
11483 N_Op_Mod =>
11484 (1 => True, -- Chars (Name1)
11485 2 => True, -- Left_Opnd (Node2)
11486 3 => True, -- Right_Opnd (Node3)
11487 4 => False, -- Entity (Node4-Sem)
11488 5 => False), -- Etype (Node5-Sem)
11490 N_Op_Rem =>
11491 (1 => True, -- Chars (Name1)
11492 2 => True, -- Left_Opnd (Node2)
11493 3 => True, -- Right_Opnd (Node3)
11494 4 => False, -- Entity (Node4-Sem)
11495 5 => False), -- Etype (Node5-Sem)
11497 N_Op_Expon =>
11498 (1 => True, -- Chars (Name1)
11499 2 => True, -- Left_Opnd (Node2)
11500 3 => True, -- Right_Opnd (Node3)
11501 4 => False, -- Entity (Node4-Sem)
11502 5 => False), -- Etype (Node5-Sem)
11504 N_Op_Plus =>
11505 (1 => True, -- Chars (Name1)
11506 2 => False, -- unused
11507 3 => True, -- Right_Opnd (Node3)
11508 4 => False, -- Entity (Node4-Sem)
11509 5 => False), -- Etype (Node5-Sem)
11511 N_Op_Minus =>
11512 (1 => True, -- Chars (Name1)
11513 2 => False, -- unused
11514 3 => True, -- Right_Opnd (Node3)
11515 4 => False, -- Entity (Node4-Sem)
11516 5 => False), -- Etype (Node5-Sem)
11518 N_Op_Abs =>
11519 (1 => True, -- Chars (Name1)
11520 2 => False, -- unused
11521 3 => True, -- Right_Opnd (Node3)
11522 4 => False, -- Entity (Node4-Sem)
11523 5 => False), -- Etype (Node5-Sem)
11525 N_Op_Not =>
11526 (1 => True, -- Chars (Name1)
11527 2 => False, -- unused
11528 3 => True, -- Right_Opnd (Node3)
11529 4 => False, -- Entity (Node4-Sem)
11530 5 => False), -- Etype (Node5-Sem)
11532 N_Type_Conversion =>
11533 (1 => False, -- unused
11534 2 => False, -- unused
11535 3 => True, -- Expression (Node3)
11536 4 => True, -- Subtype_Mark (Node4)
11537 5 => False), -- Etype (Node5-Sem)
11539 N_Qualified_Expression =>
11540 (1 => False, -- unused
11541 2 => False, -- unused
11542 3 => True, -- Expression (Node3)
11543 4 => True, -- Subtype_Mark (Node4)
11544 5 => False), -- Etype (Node5-Sem)
11546 N_Quantified_Expression =>
11547 (1 => True, -- Condition (Node1)
11548 2 => True, -- Iterator_Specification
11549 3 => False, -- unused
11550 4 => True, -- Loop_Parameter_Specification (Node4)
11551 5 => False), -- Etype (Node5-Sem)
11553 N_Allocator =>
11554 (1 => False, -- Storage_Pool (Node1-Sem)
11555 2 => False, -- Procedure_To_Call (Node2-Sem)
11556 3 => True, -- Expression (Node3)
11557 4 => True, -- Subpool_Handle_Name (Node4)
11558 5 => False), -- Etype (Node5-Sem)
11560 N_Null_Statement =>
11561 (1 => False, -- unused
11562 2 => False, -- unused
11563 3 => False, -- unused
11564 4 => False, -- unused
11565 5 => False), -- unused
11567 N_Label =>
11568 (1 => True, -- Identifier (Node1)
11569 2 => False, -- unused
11570 3 => False, -- unused
11571 4 => False, -- unused
11572 5 => False), -- unused
11574 N_Assignment_Statement =>
11575 (1 => False, -- unused
11576 2 => True, -- Name (Node2)
11577 3 => True, -- Expression (Node3)
11578 4 => False, -- unused
11579 5 => False), -- unused
11581 N_If_Statement =>
11582 (1 => True, -- Condition (Node1)
11583 2 => True, -- Then_Statements (List2)
11584 3 => True, -- Elsif_Parts (List3)
11585 4 => True, -- Else_Statements (List4)
11586 5 => True), -- End_Span (Uint5)
11588 N_Elsif_Part =>
11589 (1 => True, -- Condition (Node1)
11590 2 => True, -- Then_Statements (List2)
11591 3 => False, -- Condition_Actions (List3-Sem)
11592 4 => False, -- unused
11593 5 => False), -- unused
11595 N_Case_Expression =>
11596 (1 => False, -- unused
11597 2 => False, -- unused
11598 3 => True, -- Expression (Node3)
11599 4 => True, -- Alternatives (List4)
11600 5 => False), -- unused
11602 N_Case_Expression_Alternative =>
11603 (1 => False, -- Actions (List1-Sem)
11604 2 => False, -- unused
11605 3 => True, -- Statements (List3)
11606 4 => True, -- Expression (Node4)
11607 5 => False), -- unused
11609 N_Case_Statement =>
11610 (1 => False, -- unused
11611 2 => False, -- unused
11612 3 => True, -- Expression (Node3)
11613 4 => True, -- Alternatives (List4)
11614 5 => True), -- End_Span (Uint5)
11616 N_Case_Statement_Alternative =>
11617 (1 => False, -- unused
11618 2 => False, -- unused
11619 3 => True, -- Statements (List3)
11620 4 => True, -- Discrete_Choices (List4)
11621 5 => False), -- unused
11623 N_Loop_Statement =>
11624 (1 => True, -- Identifier (Node1)
11625 2 => True, -- Iteration_Scheme (Node2)
11626 3 => True, -- Statements (List3)
11627 4 => True, -- End_Label (Node4)
11628 5 => False), -- unused
11630 N_Iteration_Scheme =>
11631 (1 => True, -- Condition (Node1)
11632 2 => True, -- Iterator_Specification (Node2)
11633 3 => False, -- Condition_Actions (List3-Sem)
11634 4 => True, -- Loop_Parameter_Specification (Node4)
11635 5 => False), -- unused
11637 N_Loop_Parameter_Specification =>
11638 (1 => True, -- Defining_Identifier (Node1)
11639 2 => False, -- unused
11640 3 => False, -- unused
11641 4 => True, -- Discrete_Subtype_Definition (Node4)
11642 5 => False), -- unused
11644 N_Iterator_Specification =>
11645 (1 => True, -- Defining_Identifier (Node1)
11646 2 => True, -- Name (Node2)
11647 3 => False, -- Unused
11648 4 => False, -- Unused
11649 5 => True), -- Subtype_Indication (Node5)
11651 N_Block_Statement =>
11652 (1 => True, -- Identifier (Node1)
11653 2 => True, -- Declarations (List2)
11654 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11655 4 => True, -- Handled_Statement_Sequence (Node4)
11656 5 => False), -- unused
11658 N_Exit_Statement =>
11659 (1 => True, -- Condition (Node1)
11660 2 => True, -- Name (Node2)
11661 3 => False, -- unused
11662 4 => False, -- unused
11663 5 => False), -- unused
11665 N_Goto_Statement =>
11666 (1 => False, -- unused
11667 2 => True, -- Name (Node2)
11668 3 => False, -- unused
11669 4 => False, -- unused
11670 5 => False), -- unused
11672 N_Subprogram_Declaration =>
11673 (1 => True, -- Specification (Node1)
11674 2 => False, -- unused
11675 3 => False, -- Body_To_Inline (Node3-Sem)
11676 4 => False, -- Parent_Spec (Node4-Sem)
11677 5 => False), -- Corresponding_Body (Node5-Sem)
11679 N_Abstract_Subprogram_Declaration =>
11680 (1 => True, -- Specification (Node1)
11681 2 => False, -- unused
11682 3 => False, -- unused
11683 4 => False, -- unused
11684 5 => False), -- unused
11686 N_Function_Specification =>
11687 (1 => True, -- Defining_Unit_Name (Node1)
11688 2 => False, -- unused
11689 3 => True, -- Parameter_Specifications (List3)
11690 4 => True, -- Result_Definition (Node4)
11691 5 => False), -- Generic_Parent (Node5-Sem)
11693 N_Procedure_Specification =>
11694 (1 => True, -- Defining_Unit_Name (Node1)
11695 2 => False, -- unused
11696 3 => True, -- Parameter_Specifications (List3)
11697 4 => False, -- unused
11698 5 => False), -- Generic_Parent (Node5-Sem)
11700 N_Designator =>
11701 (1 => True, -- Identifier (Node1)
11702 2 => True, -- Name (Node2)
11703 3 => False, -- unused
11704 4 => False, -- unused
11705 5 => False), -- unused
11707 N_Defining_Program_Unit_Name =>
11708 (1 => True, -- Defining_Identifier (Node1)
11709 2 => True, -- Name (Node2)
11710 3 => False, -- unused
11711 4 => False, -- unused
11712 5 => False), -- unused
11714 N_Operator_Symbol =>
11715 (1 => True, -- Chars (Name1)
11716 2 => False, -- unused
11717 3 => True, -- Strval (Str3)
11718 4 => False, -- Entity (Node4-Sem)
11719 5 => False), -- Etype (Node5-Sem)
11721 N_Defining_Operator_Symbol =>
11722 (1 => True, -- Chars (Name1)
11723 2 => False, -- Next_Entity (Node2-Sem)
11724 3 => False, -- Scope (Node3-Sem)
11725 4 => False, -- unused
11726 5 => False), -- Etype (Node5-Sem)
11728 N_Parameter_Specification =>
11729 (1 => True, -- Defining_Identifier (Node1)
11730 2 => True, -- Parameter_Type (Node2)
11731 3 => True, -- Expression (Node3)
11732 4 => False, -- unused
11733 5 => False), -- Default_Expression (Node5-Sem)
11735 N_Subprogram_Body =>
11736 (1 => True, -- Specification (Node1)
11737 2 => True, -- Declarations (List2)
11738 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11739 4 => True, -- Handled_Statement_Sequence (Node4)
11740 5 => False), -- Corresponding_Spec (Node5-Sem)
11742 N_Expression_Function =>
11743 (1 => True, -- Specification (Node1)
11744 2 => False, -- unused
11745 3 => True, -- Expression (Node3)
11746 4 => False, -- unused
11747 5 => False), -- unused
11749 N_Procedure_Call_Statement =>
11750 (1 => False, -- Controlling_Argument (Node1-Sem)
11751 2 => True, -- Name (Node2)
11752 3 => True, -- Parameter_Associations (List3)
11753 4 => False, -- First_Named_Actual (Node4-Sem)
11754 5 => False), -- Etype (Node5-Sem)
11756 N_Function_Call =>
11757 (1 => False, -- Controlling_Argument (Node1-Sem)
11758 2 => True, -- Name (Node2)
11759 3 => True, -- Parameter_Associations (List3)
11760 4 => False, -- First_Named_Actual (Node4-Sem)
11761 5 => False), -- Etype (Node5-Sem)
11763 N_Parameter_Association =>
11764 (1 => False, -- unused
11765 2 => True, -- Selector_Name (Node2)
11766 3 => True, -- Explicit_Actual_Parameter (Node3)
11767 4 => False, -- Next_Named_Actual (Node4-Sem)
11768 5 => False), -- unused
11770 N_Simple_Return_Statement =>
11771 (1 => False, -- Storage_Pool (Node1-Sem)
11772 2 => False, -- Procedure_To_Call (Node2-Sem)
11773 3 => True, -- Expression (Node3)
11774 4 => False, -- unused
11775 5 => False), -- Return_Statement_Entity (Node5-Sem)
11777 N_Extended_Return_Statement =>
11778 (1 => False, -- Storage_Pool (Node1-Sem)
11779 2 => False, -- Procedure_To_Call (Node2-Sem)
11780 3 => True, -- Return_Object_Declarations (List3)
11781 4 => True, -- Handled_Statement_Sequence (Node4)
11782 5 => False), -- Return_Statement_Entity (Node5-Sem)
11784 N_Package_Declaration =>
11785 (1 => True, -- Specification (Node1)
11786 2 => False, -- unused
11787 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11788 4 => False, -- Parent_Spec (Node4-Sem)
11789 5 => False), -- Corresponding_Body (Node5-Sem)
11791 N_Package_Specification =>
11792 (1 => True, -- Defining_Unit_Name (Node1)
11793 2 => True, -- Visible_Declarations (List2)
11794 3 => True, -- Private_Declarations (List3)
11795 4 => True, -- End_Label (Node4)
11796 5 => False), -- Generic_Parent (Node5-Sem)
11798 N_Package_Body =>
11799 (1 => True, -- Defining_Unit_Name (Node1)
11800 2 => True, -- Declarations (List2)
11801 3 => False, -- unused
11802 4 => True, -- Handled_Statement_Sequence (Node4)
11803 5 => False), -- Corresponding_Spec (Node5-Sem)
11805 N_Private_Type_Declaration =>
11806 (1 => True, -- Defining_Identifier (Node1)
11807 2 => False, -- unused
11808 3 => False, -- unused
11809 4 => True, -- Discriminant_Specifications (List4)
11810 5 => False), -- unused
11812 N_Private_Extension_Declaration =>
11813 (1 => True, -- Defining_Identifier (Node1)
11814 2 => True, -- Interface_List (List2)
11815 3 => False, -- unused
11816 4 => True, -- Discriminant_Specifications (List4)
11817 5 => True), -- Subtype_Indication (Node5)
11819 N_Use_Package_Clause =>
11820 (1 => False, -- unused
11821 2 => True, -- Names (List2)
11822 3 => False, -- Next_Use_Clause (Node3-Sem)
11823 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11824 5 => False), -- unused
11826 N_Use_Type_Clause =>
11827 (1 => False, -- unused
11828 2 => True, -- Subtype_Marks (List2)
11829 3 => False, -- Next_Use_Clause (Node3-Sem)
11830 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11831 5 => False), -- unused
11833 N_Object_Renaming_Declaration =>
11834 (1 => True, -- Defining_Identifier (Node1)
11835 2 => True, -- Name (Node2)
11836 3 => True, -- Access_Definition (Node3)
11837 4 => True, -- Subtype_Mark (Node4)
11838 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11840 N_Exception_Renaming_Declaration =>
11841 (1 => True, -- Defining_Identifier (Node1)
11842 2 => True, -- Name (Node2)
11843 3 => False, -- unused
11844 4 => False, -- unused
11845 5 => False), -- unused
11847 N_Package_Renaming_Declaration =>
11848 (1 => True, -- Defining_Unit_Name (Node1)
11849 2 => True, -- Name (Node2)
11850 3 => False, -- unused
11851 4 => False, -- Parent_Spec (Node4-Sem)
11852 5 => False), -- unused
11854 N_Subprogram_Renaming_Declaration =>
11855 (1 => True, -- Specification (Node1)
11856 2 => True, -- Name (Node2)
11857 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11858 4 => False, -- Parent_Spec (Node4-Sem)
11859 5 => False), -- Corresponding_Spec (Node5-Sem)
11861 N_Generic_Package_Renaming_Declaration =>
11862 (1 => True, -- Defining_Unit_Name (Node1)
11863 2 => True, -- Name (Node2)
11864 3 => False, -- unused
11865 4 => False, -- Parent_Spec (Node4-Sem)
11866 5 => False), -- unused
11868 N_Generic_Procedure_Renaming_Declaration =>
11869 (1 => True, -- Defining_Unit_Name (Node1)
11870 2 => True, -- Name (Node2)
11871 3 => False, -- unused
11872 4 => False, -- Parent_Spec (Node4-Sem)
11873 5 => False), -- unused
11875 N_Generic_Function_Renaming_Declaration =>
11876 (1 => True, -- Defining_Unit_Name (Node1)
11877 2 => True, -- Name (Node2)
11878 3 => False, -- unused
11879 4 => False, -- Parent_Spec (Node4-Sem)
11880 5 => False), -- unused
11882 N_Task_Type_Declaration =>
11883 (1 => True, -- Defining_Identifier (Node1)
11884 2 => True, -- Interface_List (List2)
11885 3 => True, -- Task_Definition (Node3)
11886 4 => True, -- Discriminant_Specifications (List4)
11887 5 => False), -- Corresponding_Body (Node5-Sem)
11889 N_Single_Task_Declaration =>
11890 (1 => True, -- Defining_Identifier (Node1)
11891 2 => True, -- Interface_List (List2)
11892 3 => True, -- Task_Definition (Node3)
11893 4 => False, -- unused
11894 5 => False), -- unused
11896 N_Task_Definition =>
11897 (1 => False, -- unused
11898 2 => True, -- Visible_Declarations (List2)
11899 3 => True, -- Private_Declarations (List3)
11900 4 => True, -- End_Label (Node4)
11901 5 => False), -- unused
11903 N_Task_Body =>
11904 (1 => True, -- Defining_Identifier (Node1)
11905 2 => True, -- Declarations (List2)
11906 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11907 4 => True, -- Handled_Statement_Sequence (Node4)
11908 5 => False), -- Corresponding_Spec (Node5-Sem)
11910 N_Protected_Type_Declaration =>
11911 (1 => True, -- Defining_Identifier (Node1)
11912 2 => True, -- Interface_List (List2)
11913 3 => True, -- Protected_Definition (Node3)
11914 4 => True, -- Discriminant_Specifications (List4)
11915 5 => False), -- Corresponding_Body (Node5-Sem)
11917 N_Single_Protected_Declaration =>
11918 (1 => True, -- Defining_Identifier (Node1)
11919 2 => True, -- Interface_List (List2)
11920 3 => True, -- Protected_Definition (Node3)
11921 4 => False, -- unused
11922 5 => False), -- unused
11924 N_Protected_Definition =>
11925 (1 => False, -- unused
11926 2 => True, -- Visible_Declarations (List2)
11927 3 => True, -- Private_Declarations (List3)
11928 4 => True, -- End_Label (Node4)
11929 5 => False), -- unused
11931 N_Protected_Body =>
11932 (1 => True, -- Defining_Identifier (Node1)
11933 2 => True, -- Declarations (List2)
11934 3 => False, -- unused
11935 4 => True, -- End_Label (Node4)
11936 5 => False), -- Corresponding_Spec (Node5-Sem)
11938 N_Entry_Declaration =>
11939 (1 => True, -- Defining_Identifier (Node1)
11940 2 => False, -- unused
11941 3 => True, -- Parameter_Specifications (List3)
11942 4 => True, -- Discrete_Subtype_Definition (Node4)
11943 5 => False), -- Corresponding_Body (Node5-Sem)
11945 N_Accept_Statement =>
11946 (1 => True, -- Entry_Direct_Name (Node1)
11947 2 => True, -- Declarations (List2)
11948 3 => True, -- Parameter_Specifications (List3)
11949 4 => True, -- Handled_Statement_Sequence (Node4)
11950 5 => True), -- Entry_Index (Node5)
11952 N_Entry_Body =>
11953 (1 => True, -- Defining_Identifier (Node1)
11954 2 => True, -- Declarations (List2)
11955 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11956 4 => True, -- Handled_Statement_Sequence (Node4)
11957 5 => True), -- Entry_Body_Formal_Part (Node5)
11959 N_Entry_Body_Formal_Part =>
11960 (1 => True, -- Condition (Node1)
11961 2 => False, -- unused
11962 3 => True, -- Parameter_Specifications (List3)
11963 4 => True, -- Entry_Index_Specification (Node4)
11964 5 => False), -- unused
11966 N_Entry_Index_Specification =>
11967 (1 => True, -- Defining_Identifier (Node1)
11968 2 => False, -- unused
11969 3 => False, -- unused
11970 4 => True, -- Discrete_Subtype_Definition (Node4)
11971 5 => False), -- unused
11973 N_Entry_Call_Statement =>
11974 (1 => False, -- unused
11975 2 => True, -- Name (Node2)
11976 3 => True, -- Parameter_Associations (List3)
11977 4 => False, -- First_Named_Actual (Node4-Sem)
11978 5 => False), -- unused
11980 N_Requeue_Statement =>
11981 (1 => False, -- unused
11982 2 => True, -- Name (Node2)
11983 3 => False, -- unused
11984 4 => False, -- unused
11985 5 => False), -- unused
11987 N_Delay_Until_Statement =>
11988 (1 => False, -- unused
11989 2 => False, -- unused
11990 3 => True, -- Expression (Node3)
11991 4 => False, -- unused
11992 5 => False), -- unused
11994 N_Delay_Relative_Statement =>
11995 (1 => False, -- unused
11996 2 => False, -- unused
11997 3 => True, -- Expression (Node3)
11998 4 => False, -- unused
11999 5 => False), -- unused
12001 N_Selective_Accept =>
12002 (1 => True, -- Select_Alternatives (List1)
12003 2 => False, -- unused
12004 3 => False, -- unused
12005 4 => True, -- Else_Statements (List4)
12006 5 => False), -- unused
12008 N_Accept_Alternative =>
12009 (1 => True, -- Condition (Node1)
12010 2 => True, -- Accept_Statement (Node2)
12011 3 => True, -- Statements (List3)
12012 4 => True, -- Pragmas_Before (List4)
12013 5 => False), -- Accept_Handler_Records (List5-Sem)
12015 N_Delay_Alternative =>
12016 (1 => True, -- Condition (Node1)
12017 2 => True, -- Delay_Statement (Node2)
12018 3 => True, -- Statements (List3)
12019 4 => True, -- Pragmas_Before (List4)
12020 5 => False), -- unused
12022 N_Terminate_Alternative =>
12023 (1 => True, -- Condition (Node1)
12024 2 => False, -- unused
12025 3 => False, -- unused
12026 4 => True, -- Pragmas_Before (List4)
12027 5 => True), -- Pragmas_After (List5)
12029 N_Timed_Entry_Call =>
12030 (1 => True, -- Entry_Call_Alternative (Node1)
12031 2 => False, -- unused
12032 3 => False, -- unused
12033 4 => True, -- Delay_Alternative (Node4)
12034 5 => False), -- unused
12036 N_Entry_Call_Alternative =>
12037 (1 => True, -- Entry_Call_Statement (Node1)
12038 2 => False, -- unused
12039 3 => True, -- Statements (List3)
12040 4 => True, -- Pragmas_Before (List4)
12041 5 => False), -- unused
12043 N_Conditional_Entry_Call =>
12044 (1 => True, -- Entry_Call_Alternative (Node1)
12045 2 => False, -- unused
12046 3 => False, -- unused
12047 4 => True, -- Else_Statements (List4)
12048 5 => False), -- unused
12050 N_Asynchronous_Select =>
12051 (1 => True, -- Triggering_Alternative (Node1)
12052 2 => True, -- Abortable_Part (Node2)
12053 3 => False, -- unused
12054 4 => False, -- unused
12055 5 => False), -- unused
12057 N_Triggering_Alternative =>
12058 (1 => True, -- Triggering_Statement (Node1)
12059 2 => False, -- unused
12060 3 => True, -- Statements (List3)
12061 4 => True, -- Pragmas_Before (List4)
12062 5 => False), -- unused
12064 N_Abortable_Part =>
12065 (1 => False, -- unused
12066 2 => False, -- unused
12067 3 => True, -- Statements (List3)
12068 4 => False, -- unused
12069 5 => False), -- unused
12071 N_Abort_Statement =>
12072 (1 => False, -- unused
12073 2 => True, -- Names (List2)
12074 3 => False, -- unused
12075 4 => False, -- unused
12076 5 => False), -- unused
12078 N_Compilation_Unit =>
12079 (1 => True, -- Context_Items (List1)
12080 2 => True, -- Unit (Node2)
12081 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12082 4 => False, -- Library_Unit (Node4-Sem)
12083 5 => True), -- Aux_Decls_Node (Node5)
12085 N_Compilation_Unit_Aux =>
12086 (1 => True, -- Actions (List1)
12087 2 => True, -- Declarations (List2)
12088 3 => False, -- Default_Storage_Pool (Node3)
12089 4 => True, -- Config_Pragmas (List4)
12090 5 => True), -- Pragmas_After (List5)
12092 N_With_Clause =>
12093 (1 => False, -- unused
12094 2 => True, -- Name (Node2)
12095 3 => False, -- unused
12096 4 => False, -- Library_Unit (Node4-Sem)
12097 5 => False), -- Corresponding_Spec (Node5-Sem)
12099 N_Subprogram_Body_Stub =>
12100 (1 => True, -- Specification (Node1)
12101 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12102 3 => False, -- unused
12103 4 => False, -- Library_Unit (Node4-Sem)
12104 5 => False), -- Corresponding_Body (Node5-Sem)
12106 N_Package_Body_Stub =>
12107 (1 => True, -- Defining_Identifier (Node1)
12108 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12109 3 => False, -- unused
12110 4 => False, -- Library_Unit (Node4-Sem)
12111 5 => False), -- Corresponding_Body (Node5-Sem)
12113 N_Task_Body_Stub =>
12114 (1 => True, -- Defining_Identifier (Node1)
12115 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12116 3 => False, -- unused
12117 4 => False, -- Library_Unit (Node4-Sem)
12118 5 => False), -- Corresponding_Body (Node5-Sem)
12120 N_Protected_Body_Stub =>
12121 (1 => True, -- Defining_Identifier (Node1)
12122 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12123 3 => False, -- unused
12124 4 => False, -- Library_Unit (Node4-Sem)
12125 5 => False), -- Corresponding_Body (Node5-Sem)
12127 N_Subunit =>
12128 (1 => True, -- Proper_Body (Node1)
12129 2 => True, -- Name (Node2)
12130 3 => False, -- Corresponding_Stub (Node3-Sem)
12131 4 => False, -- unused
12132 5 => False), -- unused
12134 N_Exception_Declaration =>
12135 (1 => True, -- Defining_Identifier (Node1)
12136 2 => False, -- unused
12137 3 => False, -- Expression (Node3-Sem)
12138 4 => False, -- unused
12139 5 => False), -- unused
12141 N_Handled_Sequence_Of_Statements =>
12142 (1 => True, -- At_End_Proc (Node1)
12143 2 => False, -- First_Real_Statement (Node2-Sem)
12144 3 => True, -- Statements (List3)
12145 4 => True, -- End_Label (Node4)
12146 5 => True), -- Exception_Handlers (List5)
12148 N_Exception_Handler =>
12149 (1 => False, -- Local_Raise_Statements (Elist1)
12150 2 => True, -- Choice_Parameter (Node2)
12151 3 => True, -- Statements (List3)
12152 4 => True, -- Exception_Choices (List4)
12153 5 => False), -- Exception_Label (Node5)
12155 N_Raise_Statement =>
12156 (1 => False, -- unused
12157 2 => True, -- Name (Node2)
12158 3 => True, -- Expression (Node3)
12159 4 => False, -- unused
12160 5 => False), -- unused
12162 N_Raise_Expression =>
12163 (1 => False, -- unused
12164 2 => True, -- Name (Node2)
12165 3 => True, -- Expression (Node3)
12166 4 => False, -- unused
12167 5 => False), -- Etype (Node5-Sem)
12169 N_Generic_Subprogram_Declaration =>
12170 (1 => True, -- Specification (Node1)
12171 2 => True, -- Generic_Formal_Declarations (List2)
12172 3 => False, -- unused
12173 4 => False, -- Parent_Spec (Node4-Sem)
12174 5 => False), -- Corresponding_Body (Node5-Sem)
12176 N_Generic_Package_Declaration =>
12177 (1 => True, -- Specification (Node1)
12178 2 => True, -- Generic_Formal_Declarations (List2)
12179 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12180 4 => False, -- Parent_Spec (Node4-Sem)
12181 5 => False), -- Corresponding_Body (Node5-Sem)
12183 N_Package_Instantiation =>
12184 (1 => True, -- Defining_Unit_Name (Node1)
12185 2 => True, -- Name (Node2)
12186 3 => True, -- Generic_Associations (List3)
12187 4 => False, -- Parent_Spec (Node4-Sem)
12188 5 => False), -- Instance_Spec (Node5-Sem)
12190 N_Procedure_Instantiation =>
12191 (1 => True, -- Defining_Unit_Name (Node1)
12192 2 => True, -- Name (Node2)
12193 3 => True, -- Generic_Associations (List3)
12194 4 => False, -- Parent_Spec (Node4-Sem)
12195 5 => False), -- Instance_Spec (Node5-Sem)
12197 N_Function_Instantiation =>
12198 (1 => True, -- Defining_Unit_Name (Node1)
12199 2 => True, -- Name (Node2)
12200 3 => True, -- Generic_Associations (List3)
12201 4 => False, -- Parent_Spec (Node4-Sem)
12202 5 => False), -- Instance_Spec (Node5-Sem)
12204 N_Generic_Association =>
12205 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12206 2 => True, -- Selector_Name (Node2)
12207 3 => False, -- unused
12208 4 => False, -- unused
12209 5 => False), -- unused
12211 N_Formal_Object_Declaration =>
12212 (1 => True, -- Defining_Identifier (Node1)
12213 2 => False, -- unused
12214 3 => True, -- Access_Definition (Node3)
12215 4 => True, -- Subtype_Mark (Node4)
12216 5 => True), -- Default_Expression (Node5)
12218 N_Formal_Type_Declaration =>
12219 (1 => True, -- Defining_Identifier (Node1)
12220 2 => False, -- unused
12221 3 => True, -- Formal_Type_Definition (Node3)
12222 4 => True, -- Discriminant_Specifications (List4)
12223 5 => False), -- unused
12225 N_Formal_Private_Type_Definition =>
12226 (1 => False, -- unused
12227 2 => False, -- unused
12228 3 => False, -- unused
12229 4 => False, -- unused
12230 5 => False), -- unused
12232 N_Formal_Incomplete_Type_Definition =>
12233 (1 => False, -- unused
12234 2 => False, -- unused
12235 3 => False, -- unused
12236 4 => False, -- unused
12237 5 => False), -- unused
12239 N_Formal_Derived_Type_Definition =>
12240 (1 => False, -- unused
12241 2 => True, -- Interface_List (List2)
12242 3 => False, -- unused
12243 4 => True, -- Subtype_Mark (Node4)
12244 5 => False), -- unused
12246 N_Formal_Discrete_Type_Definition =>
12247 (1 => False, -- unused
12248 2 => False, -- unused
12249 3 => False, -- unused
12250 4 => False, -- unused
12251 5 => False), -- unused
12253 N_Formal_Signed_Integer_Type_Definition =>
12254 (1 => False, -- unused
12255 2 => False, -- unused
12256 3 => False, -- unused
12257 4 => False, -- unused
12258 5 => False), -- unused
12260 N_Formal_Modular_Type_Definition =>
12261 (1 => False, -- unused
12262 2 => False, -- unused
12263 3 => False, -- unused
12264 4 => False, -- unused
12265 5 => False), -- unused
12267 N_Formal_Floating_Point_Definition =>
12268 (1 => False, -- unused
12269 2 => False, -- unused
12270 3 => False, -- unused
12271 4 => False, -- unused
12272 5 => False), -- unused
12274 N_Formal_Ordinary_Fixed_Point_Definition =>
12275 (1 => False, -- unused
12276 2 => False, -- unused
12277 3 => False, -- unused
12278 4 => False, -- unused
12279 5 => False), -- unused
12281 N_Formal_Decimal_Fixed_Point_Definition =>
12282 (1 => False, -- unused
12283 2 => False, -- unused
12284 3 => False, -- unused
12285 4 => False, -- unused
12286 5 => False), -- unused
12288 N_Formal_Concrete_Subprogram_Declaration =>
12289 (1 => True, -- Specification (Node1)
12290 2 => True, -- Default_Name (Node2)
12291 3 => False, -- unused
12292 4 => False, -- unused
12293 5 => False), -- unused
12295 N_Formal_Abstract_Subprogram_Declaration =>
12296 (1 => True, -- Specification (Node1)
12297 2 => True, -- Default_Name (Node2)
12298 3 => False, -- unused
12299 4 => False, -- unused
12300 5 => False), -- unused
12302 N_Formal_Package_Declaration =>
12303 (1 => True, -- Defining_Identifier (Node1)
12304 2 => True, -- Name (Node2)
12305 3 => True, -- Generic_Associations (List3)
12306 4 => False, -- unused
12307 5 => False), -- Instance_Spec (Node5-Sem)
12309 N_Attribute_Definition_Clause =>
12310 (1 => True, -- Chars (Name1)
12311 2 => True, -- Name (Node2)
12312 3 => True, -- Expression (Node3)
12313 4 => False, -- unused
12314 5 => False), -- Next_Rep_Item (Node5-Sem)
12316 N_Aspect_Specification =>
12317 (1 => True, -- Identifier (Node1)
12318 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12319 3 => True, -- Expression (Node3)
12320 4 => False, -- Entity (Node4-Sem)
12321 5 => False), -- Next_Rep_Item (Node5-Sem)
12323 N_Enumeration_Representation_Clause =>
12324 (1 => True, -- Identifier (Node1)
12325 2 => False, -- unused
12326 3 => True, -- Array_Aggregate (Node3)
12327 4 => False, -- unused
12328 5 => False), -- Next_Rep_Item (Node5-Sem)
12330 N_Record_Representation_Clause =>
12331 (1 => True, -- Identifier (Node1)
12332 2 => True, -- Mod_Clause (Node2)
12333 3 => True, -- Component_Clauses (List3)
12334 4 => False, -- unused
12335 5 => False), -- Next_Rep_Item (Node5-Sem)
12337 N_Component_Clause =>
12338 (1 => True, -- Component_Name (Node1)
12339 2 => True, -- Position (Node2)
12340 3 => True, -- First_Bit (Node3)
12341 4 => True, -- Last_Bit (Node4)
12342 5 => False), -- unused
12344 N_Code_Statement =>
12345 (1 => False, -- unused
12346 2 => False, -- unused
12347 3 => True, -- Expression (Node3)
12348 4 => False, -- unused
12349 5 => False), -- unused
12351 N_Op_Rotate_Left =>
12352 (1 => True, -- Chars (Name1)
12353 2 => True, -- Left_Opnd (Node2)
12354 3 => True, -- Right_Opnd (Node3)
12355 4 => False, -- Entity (Node4-Sem)
12356 5 => False), -- Etype (Node5-Sem)
12358 N_Op_Rotate_Right =>
12359 (1 => True, -- Chars (Name1)
12360 2 => True, -- Left_Opnd (Node2)
12361 3 => True, -- Right_Opnd (Node3)
12362 4 => False, -- Entity (Node4-Sem)
12363 5 => False), -- Etype (Node5-Sem)
12365 N_Op_Shift_Left =>
12366 (1 => True, -- Chars (Name1)
12367 2 => True, -- Left_Opnd (Node2)
12368 3 => True, -- Right_Opnd (Node3)
12369 4 => False, -- Entity (Node4-Sem)
12370 5 => False), -- Etype (Node5-Sem)
12372 N_Op_Shift_Right_Arithmetic =>
12373 (1 => True, -- Chars (Name1)
12374 2 => True, -- Left_Opnd (Node2)
12375 3 => True, -- Right_Opnd (Node3)
12376 4 => False, -- Entity (Node4-Sem)
12377 5 => False), -- Etype (Node5-Sem)
12379 N_Op_Shift_Right =>
12380 (1 => True, -- Chars (Name1)
12381 2 => True, -- Left_Opnd (Node2)
12382 3 => True, -- Right_Opnd (Node3)
12383 4 => False, -- Entity (Node4-Sem)
12384 5 => False), -- Etype (Node5-Sem)
12386 N_Delta_Constraint =>
12387 (1 => False, -- unused
12388 2 => False, -- unused
12389 3 => True, -- Delta_Expression (Node3)
12390 4 => True, -- Range_Constraint (Node4)
12391 5 => False), -- unused
12393 N_At_Clause =>
12394 (1 => True, -- Identifier (Node1)
12395 2 => False, -- unused
12396 3 => True, -- Expression (Node3)
12397 4 => False, -- unused
12398 5 => False), -- unused
12400 N_Mod_Clause =>
12401 (1 => False, -- unused
12402 2 => False, -- unused
12403 3 => True, -- Expression (Node3)
12404 4 => True, -- Pragmas_Before (List4)
12405 5 => False), -- unused
12407 N_If_Expression =>
12408 (1 => True, -- Expressions (List1)
12409 2 => False, -- Then_Actions (List2-Sem)
12410 3 => False, -- Else_Actions (List3-Sem)
12411 4 => False, -- unused
12412 5 => False), -- Etype (Node5-Sem)
12414 N_Compound_Statement =>
12415 (1 => True, -- Actions (List1)
12416 2 => False, -- unused
12417 3 => False, -- unused
12418 4 => False, -- unused
12419 5 => False), -- unused
12421 N_Contract =>
12422 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
12423 2 => False, -- Contract_Test_Cases (Node2-Sem)
12424 3 => False, -- Classifications (Node3-Sem)
12425 4 => False, -- unused
12426 5 => False), -- unused
12428 N_Expanded_Name =>
12429 (1 => True, -- Chars (Name1)
12430 2 => True, -- Selector_Name (Node2)
12431 3 => True, -- Prefix (Node3)
12432 4 => False, -- Entity (Node4-Sem)
12433 5 => False), -- Etype (Node5-Sem)
12435 N_Expression_With_Actions =>
12436 (1 => True, -- Actions (List1)
12437 2 => False, -- unused
12438 3 => True, -- Expression (Node3)
12439 4 => False, -- unused
12440 5 => False), -- unused
12442 N_Free_Statement =>
12443 (1 => False, -- Storage_Pool (Node1-Sem)
12444 2 => False, -- Procedure_To_Call (Node2-Sem)
12445 3 => True, -- Expression (Node3)
12446 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12447 5 => False), -- unused
12449 N_Freeze_Entity =>
12450 (1 => True, -- Actions (List1)
12451 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12452 3 => False, -- TSS_Elist (Elist3-Sem)
12453 4 => False, -- Entity (Node4-Sem)
12454 5 => False), -- First_Subtype_Link (Node5-Sem)
12456 N_Freeze_Generic_Entity =>
12457 (1 => False, -- unused
12458 2 => False, -- unused
12459 3 => False, -- unused
12460 4 => False, -- Entity (Node4-Sem)
12461 5 => False), -- unused
12463 N_Implicit_Label_Declaration =>
12464 (1 => True, -- Defining_Identifier (Node1)
12465 2 => False, -- Label_Construct (Node2-Sem)
12466 3 => False, -- unused
12467 4 => False, -- unused
12468 5 => False), -- unused
12470 N_Itype_Reference =>
12471 (1 => False, -- Itype (Node1-Sem)
12472 2 => False, -- unused
12473 3 => False, -- unused
12474 4 => False, -- unused
12475 5 => False), -- unused
12477 N_Raise_Constraint_Error =>
12478 (1 => True, -- Condition (Node1)
12479 2 => False, -- unused
12480 3 => True, -- Reason (Uint3)
12481 4 => False, -- unused
12482 5 => False), -- Etype (Node5-Sem)
12484 N_Raise_Program_Error =>
12485 (1 => True, -- Condition (Node1)
12486 2 => False, -- unused
12487 3 => True, -- Reason (Uint3)
12488 4 => False, -- unused
12489 5 => False), -- Etype (Node5-Sem)
12491 N_Raise_Storage_Error =>
12492 (1 => True, -- Condition (Node1)
12493 2 => False, -- unused
12494 3 => True, -- Reason (Uint3)
12495 4 => False, -- unused
12496 5 => False), -- Etype (Node5-Sem)
12498 N_Push_Constraint_Error_Label =>
12499 (1 => False, -- unused
12500 2 => False, -- unused
12501 3 => False, -- unused
12502 4 => False, -- unused
12503 5 => False), -- unused
12505 N_Push_Program_Error_Label =>
12506 (1 => False, -- Exception_Label
12507 2 => False, -- unused
12508 3 => False, -- unused
12509 4 => False, -- unused
12510 5 => False), -- Exception_Label
12512 N_Push_Storage_Error_Label =>
12513 (1 => False, -- Exception_Label
12514 2 => False, -- unused
12515 3 => False, -- unused
12516 4 => False, -- unused
12517 5 => False), -- Exception_Label
12519 N_Pop_Constraint_Error_Label =>
12520 (1 => False, -- unused
12521 2 => False, -- unused
12522 3 => False, -- unused
12523 4 => False, -- unused
12524 5 => False), -- unused
12526 N_Pop_Program_Error_Label =>
12527 (1 => False, -- unused
12528 2 => False, -- unused
12529 3 => False, -- unused
12530 4 => False, -- unused
12531 5 => False), -- unused
12533 N_Pop_Storage_Error_Label =>
12534 (1 => False, -- unused
12535 2 => False, -- unused
12536 3 => False, -- unused
12537 4 => False, -- unused
12538 5 => False), -- unused
12540 N_Reference =>
12541 (1 => False, -- unused
12542 2 => False, -- unused
12543 3 => True, -- Prefix (Node3)
12544 4 => False, -- unused
12545 5 => False), -- Etype (Node5-Sem)
12547 N_Unchecked_Expression =>
12548 (1 => False, -- unused
12549 2 => False, -- unused
12550 3 => True, -- Expression (Node3)
12551 4 => False, -- unused
12552 5 => False), -- Etype (Node5-Sem)
12554 N_Unchecked_Type_Conversion =>
12555 (1 => False, -- unused
12556 2 => False, -- unused
12557 3 => True, -- Expression (Node3)
12558 4 => True, -- Subtype_Mark (Node4)
12559 5 => False), -- Etype (Node5-Sem)
12561 N_Validate_Unchecked_Conversion =>
12562 (1 => False, -- Source_Type (Node1-Sem)
12563 2 => False, -- Target_Type (Node2-Sem)
12564 3 => False, -- unused
12565 4 => False, -- unused
12566 5 => False), -- unused
12568 -- Entries for SCIL nodes
12570 N_SCIL_Dispatch_Table_Tag_Init =>
12571 (1 => False, -- unused
12572 2 => False, -- unused
12573 3 => False, -- unused
12574 4 => False, -- SCIL_Entity (Node4-Sem)
12575 5 => False), -- unused
12577 N_SCIL_Dispatching_Call =>
12578 (1 => False, -- unused
12579 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12580 3 => False, -- unused
12581 4 => False, -- SCIL_Entity (Node4-Sem)
12582 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12584 N_SCIL_Membership_Test =>
12585 (1 => False, -- unused
12586 2 => False, -- unused
12587 3 => False, -- unused
12588 4 => False, -- SCIL_Entity (Node4-Sem)
12589 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12591 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12592 -- field for debugging purposes, they are not really syntactic fields, so
12593 -- we mark all fields as unused.
12595 N_Empty =>
12596 (1 => False, -- unused
12597 2 => False, -- unused
12598 3 => False, -- unused
12599 4 => False, -- unused
12600 5 => False), -- unused
12602 N_Error =>
12603 (1 => False, -- unused
12604 2 => False, -- unused
12605 3 => False, -- unused
12606 4 => False, -- unused
12607 5 => False), -- unused
12609 N_Unused_At_Start =>
12610 (1 => False, -- unused
12611 2 => False, -- unused
12612 3 => False, -- unused
12613 4 => False, -- unused
12614 5 => False), -- unused
12616 N_Unused_At_End =>
12617 (1 => False, -- unused
12618 2 => False, -- unused
12619 3 => False, -- unused
12620 4 => False, -- unused
12621 5 => False)); -- unused
12623 --------------------
12624 -- Inline Pragmas --
12625 --------------------
12627 pragma Inline (ABE_Is_Certain);
12628 pragma Inline (Abort_Present);
12629 pragma Inline (Abortable_Part);
12630 pragma Inline (Abstract_Present);
12631 pragma Inline (Accept_Handler_Records);
12632 pragma Inline (Accept_Statement);
12633 pragma Inline (Access_Definition);
12634 pragma Inline (Access_To_Subprogram_Definition);
12635 pragma Inline (Access_Types_To_Process);
12636 pragma Inline (Actions);
12637 pragma Inline (Activation_Chain_Entity);
12638 pragma Inline (Acts_As_Spec);
12639 pragma Inline (Actual_Designated_Subtype);
12640 pragma Inline (Address_Warning_Posted);
12641 pragma Inline (Aggregate_Bounds);
12642 pragma Inline (Aliased_Present);
12643 pragma Inline (All_Others);
12644 pragma Inline (All_Present);
12645 pragma Inline (Alternatives);
12646 pragma Inline (Ancestor_Part);
12647 pragma Inline (Atomic_Sync_Required);
12648 pragma Inline (Array_Aggregate);
12649 pragma Inline (Aspect_Rep_Item);
12650 pragma Inline (Assignment_OK);
12651 pragma Inline (Associated_Node);
12652 pragma Inline (At_End_Proc);
12653 pragma Inline (Attribute_Name);
12654 pragma Inline (Aux_Decls_Node);
12655 pragma Inline (Backwards_OK);
12656 pragma Inline (Bad_Is_Detected);
12657 pragma Inline (Body_To_Inline);
12658 pragma Inline (Body_Required);
12659 pragma Inline (By_Ref);
12660 pragma Inline (Box_Present);
12661 pragma Inline (Char_Literal_Value);
12662 pragma Inline (Chars);
12663 pragma Inline (Check_Address_Alignment);
12664 pragma Inline (Choice_Parameter);
12665 pragma Inline (Choices);
12666 pragma Inline (Class_Present);
12667 pragma Inline (Classifications);
12668 pragma Inline (Cleanup_Actions);
12669 pragma Inline (Comes_From_Extended_Return_Statement);
12670 pragma Inline (Compile_Time_Known_Aggregate);
12671 pragma Inline (Component_Associations);
12672 pragma Inline (Component_Clauses);
12673 pragma Inline (Component_Definition);
12674 pragma Inline (Component_Items);
12675 pragma Inline (Component_List);
12676 pragma Inline (Component_Name);
12677 pragma Inline (Componentwise_Assignment);
12678 pragma Inline (Condition);
12679 pragma Inline (Condition_Actions);
12680 pragma Inline (Config_Pragmas);
12681 pragma Inline (Constant_Present);
12682 pragma Inline (Constraint);
12683 pragma Inline (Constraints);
12684 pragma Inline (Context_Installed);
12685 pragma Inline (Context_Items);
12686 pragma Inline (Context_Pending);
12687 pragma Inline (Contract_Test_Cases);
12688 pragma Inline (Controlling_Argument);
12689 pragma Inline (Convert_To_Return_False);
12690 pragma Inline (Conversion_OK);
12691 pragma Inline (Corresponding_Aspect);
12692 pragma Inline (Corresponding_Body);
12693 pragma Inline (Corresponding_Formal_Spec);
12694 pragma Inline (Corresponding_Generic_Association);
12695 pragma Inline (Corresponding_Integer_Value);
12696 pragma Inline (Corresponding_Spec);
12697 pragma Inline (Corresponding_Spec_Of_Stub);
12698 pragma Inline (Corresponding_Stub);
12699 pragma Inline (Dcheck_Function);
12700 pragma Inline (Declarations);
12701 pragma Inline (Default_Expression);
12702 pragma Inline (Default_Storage_Pool);
12703 pragma Inline (Default_Name);
12704 pragma Inline (Defining_Identifier);
12705 pragma Inline (Defining_Unit_Name);
12706 pragma Inline (Delay_Alternative);
12707 pragma Inline (Delay_Statement);
12708 pragma Inline (Delta_Expression);
12709 pragma Inline (Digits_Expression);
12710 pragma Inline (Discr_Check_Funcs_Built);
12711 pragma Inline (Discrete_Choices);
12712 pragma Inline (Discrete_Range);
12713 pragma Inline (Discrete_Subtype_Definition);
12714 pragma Inline (Discrete_Subtype_Definitions);
12715 pragma Inline (Discriminant_Specifications);
12716 pragma Inline (Discriminant_Type);
12717 pragma Inline (Do_Accessibility_Check);
12718 pragma Inline (Do_Discriminant_Check);
12719 pragma Inline (Do_Length_Check);
12720 pragma Inline (Do_Division_Check);
12721 pragma Inline (Do_Overflow_Check);
12722 pragma Inline (Do_Range_Check);
12723 pragma Inline (Do_Storage_Check);
12724 pragma Inline (Do_Tag_Check);
12725 pragma Inline (Elaborate_Present);
12726 pragma Inline (Elaborate_All_Desirable);
12727 pragma Inline (Elaborate_All_Present);
12728 pragma Inline (Elaborate_Desirable);
12729 pragma Inline (Else_Actions);
12730 pragma Inline (Else_Statements);
12731 pragma Inline (Elsif_Parts);
12732 pragma Inline (Enclosing_Variant);
12733 pragma Inline (End_Label);
12734 pragma Inline (End_Span);
12735 pragma Inline (Entity);
12736 pragma Inline (Entity_Or_Associated_Node);
12737 pragma Inline (Entry_Body_Formal_Part);
12738 pragma Inline (Entry_Call_Alternative);
12739 pragma Inline (Entry_Call_Statement);
12740 pragma Inline (Entry_Direct_Name);
12741 pragma Inline (Entry_Index);
12742 pragma Inline (Entry_Index_Specification);
12743 pragma Inline (Etype);
12744 pragma Inline (Exception_Choices);
12745 pragma Inline (Exception_Handlers);
12746 pragma Inline (Exception_Junk);
12747 pragma Inline (Exception_Label);
12748 pragma Inline (Expansion_Delayed);
12749 pragma Inline (Explicit_Actual_Parameter);
12750 pragma Inline (Explicit_Generic_Actual_Parameter);
12751 pragma Inline (Expression);
12752 pragma Inline (Expressions);
12753 pragma Inline (First_Bit);
12754 pragma Inline (First_Inlined_Subprogram);
12755 pragma Inline (First_Name);
12756 pragma Inline (First_Named_Actual);
12757 pragma Inline (First_Real_Statement);
12758 pragma Inline (First_Subtype_Link);
12759 pragma Inline (Float_Truncate);
12760 pragma Inline (Formal_Type_Definition);
12761 pragma Inline (Forwards_OK);
12762 pragma Inline (From_Aspect_Specification);
12763 pragma Inline (From_At_End);
12764 pragma Inline (From_At_Mod);
12765 pragma Inline (From_Conditional_Expression);
12766 pragma Inline (From_Default);
12767 pragma Inline (Generalized_Indexing);
12768 pragma Inline (Generic_Associations);
12769 pragma Inline (Generic_Formal_Declarations);
12770 pragma Inline (Generic_Parent);
12771 pragma Inline (Generic_Parent_Type);
12772 pragma Inline (Handled_Statement_Sequence);
12773 pragma Inline (Handler_List_Entry);
12774 pragma Inline (Has_Created_Identifier);
12775 pragma Inline (Has_Dereference_Action);
12776 pragma Inline (Has_Dynamic_Length_Check);
12777 pragma Inline (Has_Dynamic_Range_Check);
12778 pragma Inline (Has_Init_Expression);
12779 pragma Inline (Has_Local_Raise);
12780 pragma Inline (Has_Self_Reference);
12781 pragma Inline (Has_SP_Choice);
12782 pragma Inline (Has_No_Elaboration_Code);
12783 pragma Inline (Has_Pragma_Suppress_All);
12784 pragma Inline (Has_Private_View);
12785 pragma Inline (Has_Relative_Deadline_Pragma);
12786 pragma Inline (Has_Storage_Size_Pragma);
12787 pragma Inline (Has_Wide_Character);
12788 pragma Inline (Has_Wide_Wide_Character);
12789 pragma Inline (Header_Size_Added);
12790 pragma Inline (Hidden_By_Use_Clause);
12791 pragma Inline (High_Bound);
12792 pragma Inline (Identifier);
12793 pragma Inline (Implicit_With);
12794 pragma Inline (Implicit_With_From_Instantiation);
12795 pragma Inline (Interface_List);
12796 pragma Inline (Interface_Present);
12797 pragma Inline (Includes_Infinities);
12798 pragma Inline (Import_Interface_Present);
12799 pragma Inline (In_Present);
12800 pragma Inline (Incomplete_View);
12801 pragma Inline (Inherited_Discriminant);
12802 pragma Inline (Instance_Spec);
12803 pragma Inline (Intval);
12804 pragma Inline (Iterator_Specification);
12805 pragma Inline (Is_Accessibility_Actual);
12806 pragma Inline (Is_Analyzed_Pragma);
12807 pragma Inline (Is_Asynchronous_Call_Block);
12808 pragma Inline (Is_Boolean_Aspect);
12809 pragma Inline (Is_Checked);
12810 pragma Inline (Is_Component_Left_Opnd);
12811 pragma Inline (Is_Component_Right_Opnd);
12812 pragma Inline (Is_Controlling_Actual);
12813 pragma Inline (Is_Delayed_Aspect);
12814 pragma Inline (Is_Disabled);
12815 pragma Inline (Is_Dynamic_Coextension);
12816 pragma Inline (Is_Elsif);
12817 pragma Inline (Is_Entry_Barrier_Function);
12818 pragma Inline (Is_Expanded_Build_In_Place_Call);
12819 pragma Inline (Is_Expanded_Contract);
12820 pragma Inline (Is_Finalization_Wrapper);
12821 pragma Inline (Is_Folded_In_Parser);
12822 pragma Inline (Is_Generic_Contract_Pragma);
12823 pragma Inline (Is_Ghost_Pragma);
12824 pragma Inline (Is_Ignored);
12825 pragma Inline (Is_In_Discriminant_Check);
12826 pragma Inline (Is_Inherited_Pragma);
12827 pragma Inline (Is_Machine_Number);
12828 pragma Inline (Is_Null_Loop);
12829 pragma Inline (Is_Overloaded);
12830 pragma Inline (Is_Power_Of_2_For_Shift);
12831 pragma Inline (Is_Prefixed_Call);
12832 pragma Inline (Is_Protected_Subprogram_Body);
12833 pragma Inline (Is_Qualified_Universal_Literal);
12834 pragma Inline (Is_Static_Coextension);
12835 pragma Inline (Is_Static_Expression);
12836 pragma Inline (Is_Subprogram_Descriptor);
12837 pragma Inline (Is_Task_Allocation_Block);
12838 pragma Inline (Is_Task_Body_Procedure);
12839 pragma Inline (Is_Task_Master);
12840 pragma Inline (Iteration_Scheme);
12841 pragma Inline (Itype);
12842 pragma Inline (Kill_Range_Check);
12843 pragma Inline (Last_Bit);
12844 pragma Inline (Last_Name);
12845 pragma Inline (Library_Unit);
12846 pragma Inline (Label_Construct);
12847 pragma Inline (Left_Opnd);
12848 pragma Inline (Limited_View_Installed);
12849 pragma Inline (Limited_Present);
12850 pragma Inline (Literals);
12851 pragma Inline (Local_Raise_Not_OK);
12852 pragma Inline (Local_Raise_Statements);
12853 pragma Inline (Loop_Actions);
12854 pragma Inline (Loop_Parameter_Specification);
12855 pragma Inline (Low_Bound);
12856 pragma Inline (Mod_Clause);
12857 pragma Inline (More_Ids);
12858 pragma Inline (Must_Be_Byte_Aligned);
12859 pragma Inline (Must_Not_Freeze);
12860 pragma Inline (Must_Not_Override);
12861 pragma Inline (Must_Override);
12862 pragma Inline (Name);
12863 pragma Inline (Names);
12864 pragma Inline (Next_Entity);
12865 pragma Inline (Next_Exit_Statement);
12866 pragma Inline (Next_Implicit_With);
12867 pragma Inline (Next_Named_Actual);
12868 pragma Inline (Next_Pragma);
12869 pragma Inline (Next_Rep_Item);
12870 pragma Inline (Next_Use_Clause);
12871 pragma Inline (No_Ctrl_Actions);
12872 pragma Inline (No_Elaboration_Check);
12873 pragma Inline (No_Entities_Ref_In_Spec);
12874 pragma Inline (No_Initialization);
12875 pragma Inline (No_Minimize_Eliminate);
12876 pragma Inline (No_Truncation);
12877 pragma Inline (Non_Aliased_Prefix);
12878 pragma Inline (Null_Present);
12879 pragma Inline (Null_Excluding_Subtype);
12880 pragma Inline (Null_Exclusion_Present);
12881 pragma Inline (Null_Exclusion_In_Return_Present);
12882 pragma Inline (Null_Record_Present);
12883 pragma Inline (Object_Definition);
12884 pragma Inline (Of_Present);
12885 pragma Inline (Original_Discriminant);
12886 pragma Inline (Original_Entity);
12887 pragma Inline (Others_Discrete_Choices);
12888 pragma Inline (Out_Present);
12889 pragma Inline (Parameter_Associations);
12890 pragma Inline (Parameter_Specifications);
12891 pragma Inline (Parameter_Type);
12892 pragma Inline (Parent_Spec);
12893 pragma Inline (Position);
12894 pragma Inline (Pragma_Argument_Associations);
12895 pragma Inline (Pragma_Identifier);
12896 pragma Inline (Pragmas_After);
12897 pragma Inline (Pragmas_Before);
12898 pragma Inline (Pre_Post_Conditions);
12899 pragma Inline (Prefix);
12900 pragma Inline (Premature_Use);
12901 pragma Inline (Present_Expr);
12902 pragma Inline (Prev_Ids);
12903 pragma Inline (Print_In_Hex);
12904 pragma Inline (Private_Declarations);
12905 pragma Inline (Private_Present);
12906 pragma Inline (Procedure_To_Call);
12907 pragma Inline (Proper_Body);
12908 pragma Inline (Protected_Definition);
12909 pragma Inline (Protected_Present);
12910 pragma Inline (Raises_Constraint_Error);
12911 pragma Inline (Range_Constraint);
12912 pragma Inline (Range_Expression);
12913 pragma Inline (Real_Range_Specification);
12914 pragma Inline (Realval);
12915 pragma Inline (Reason);
12916 pragma Inline (Record_Extension_Part);
12917 pragma Inline (Redundant_Use);
12918 pragma Inline (Renaming_Exception);
12919 pragma Inline (Result_Definition);
12920 pragma Inline (Return_Object_Declarations);
12921 pragma Inline (Return_Statement_Entity);
12922 pragma Inline (Reverse_Present);
12923 pragma Inline (Right_Opnd);
12924 pragma Inline (Rounded_Result);
12925 pragma Inline (SCIL_Controlling_Tag);
12926 pragma Inline (SCIL_Entity);
12927 pragma Inline (SCIL_Tag_Value);
12928 pragma Inline (SCIL_Target_Prim);
12929 pragma Inline (Scope);
12930 pragma Inline (Select_Alternatives);
12931 pragma Inline (Selector_Name);
12932 pragma Inline (Selector_Names);
12933 pragma Inline (Shift_Count_OK);
12934 pragma Inline (Source_Type);
12935 pragma Inline (Specification);
12936 pragma Inline (Split_PPC);
12937 pragma Inline (Statements);
12938 pragma Inline (Storage_Pool);
12939 pragma Inline (Subpool_Handle_Name);
12940 pragma Inline (Strval);
12941 pragma Inline (Subtype_Indication);
12942 pragma Inline (Subtype_Mark);
12943 pragma Inline (Subtype_Marks);
12944 pragma Inline (Suppress_Assignment_Checks);
12945 pragma Inline (Suppress_Loop_Warnings);
12946 pragma Inline (Synchronized_Present);
12947 pragma Inline (Tagged_Present);
12948 pragma Inline (Target_Type);
12949 pragma Inline (Task_Definition);
12950 pragma Inline (Task_Present);
12951 pragma Inline (Then_Actions);
12952 pragma Inline (Then_Statements);
12953 pragma Inline (Triggering_Alternative);
12954 pragma Inline (Triggering_Statement);
12955 pragma Inline (Treat_Fixed_As_Integer);
12956 pragma Inline (TSS_Elist);
12957 pragma Inline (Type_Definition);
12958 pragma Inline (Uneval_Old_Accept);
12959 pragma Inline (Uneval_Old_Warn);
12960 pragma Inline (Unit);
12961 pragma Inline (Uninitialized_Variable);
12962 pragma Inline (Unknown_Discriminants_Present);
12963 pragma Inline (Unreferenced_In_Spec);
12964 pragma Inline (Variant_Part);
12965 pragma Inline (Variants);
12966 pragma Inline (Visible_Declarations);
12967 pragma Inline (Used_Operations);
12968 pragma Inline (Was_Expression_Function);
12969 pragma Inline (Was_Originally_Stub);
12970 pragma Inline (Withed_Body);
12972 pragma Inline (Set_ABE_Is_Certain);
12973 pragma Inline (Set_Abort_Present);
12974 pragma Inline (Set_Abortable_Part);
12975 pragma Inline (Set_Abstract_Present);
12976 pragma Inline (Set_Accept_Handler_Records);
12977 pragma Inline (Set_Accept_Statement);
12978 pragma Inline (Set_Access_Definition);
12979 pragma Inline (Set_Access_To_Subprogram_Definition);
12980 pragma Inline (Set_Access_Types_To_Process);
12981 pragma Inline (Set_Actions);
12982 pragma Inline (Set_Activation_Chain_Entity);
12983 pragma Inline (Set_Acts_As_Spec);
12984 pragma Inline (Set_Actual_Designated_Subtype);
12985 pragma Inline (Set_Address_Warning_Posted);
12986 pragma Inline (Set_Aggregate_Bounds);
12987 pragma Inline (Set_Aliased_Present);
12988 pragma Inline (Set_All_Others);
12989 pragma Inline (Set_All_Present);
12990 pragma Inline (Set_Alternatives);
12991 pragma Inline (Set_Ancestor_Part);
12992 pragma Inline (Set_Array_Aggregate);
12993 pragma Inline (Set_Aspect_Rep_Item);
12994 pragma Inline (Set_Assignment_OK);
12995 pragma Inline (Set_Associated_Node);
12996 pragma Inline (Set_At_End_Proc);
12997 pragma Inline (Set_Atomic_Sync_Required);
12998 pragma Inline (Set_Attribute_Name);
12999 pragma Inline (Set_Aux_Decls_Node);
13000 pragma Inline (Set_Backwards_OK);
13001 pragma Inline (Set_Bad_Is_Detected);
13002 pragma Inline (Set_Body_Required);
13003 pragma Inline (Set_Body_To_Inline);
13004 pragma Inline (Set_Box_Present);
13005 pragma Inline (Set_By_Ref);
13006 pragma Inline (Set_Char_Literal_Value);
13007 pragma Inline (Set_Chars);
13008 pragma Inline (Set_Check_Address_Alignment);
13009 pragma Inline (Set_Choice_Parameter);
13010 pragma Inline (Set_Choices);
13011 pragma Inline (Set_Class_Present);
13012 pragma Inline (Set_Classifications);
13013 pragma Inline (Set_Cleanup_Actions);
13014 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13015 pragma Inline (Set_Compile_Time_Known_Aggregate);
13016 pragma Inline (Set_Component_Associations);
13017 pragma Inline (Set_Component_Clauses);
13018 pragma Inline (Set_Component_Definition);
13019 pragma Inline (Set_Component_Items);
13020 pragma Inline (Set_Component_List);
13021 pragma Inline (Set_Component_Name);
13022 pragma Inline (Set_Componentwise_Assignment);
13023 pragma Inline (Set_Condition);
13024 pragma Inline (Set_Condition_Actions);
13025 pragma Inline (Set_Config_Pragmas);
13026 pragma Inline (Set_Constant_Present);
13027 pragma Inline (Set_Constraint);
13028 pragma Inline (Set_Constraints);
13029 pragma Inline (Set_Context_Installed);
13030 pragma Inline (Set_Context_Items);
13031 pragma Inline (Set_Context_Pending);
13032 pragma Inline (Set_Contract_Test_Cases);
13033 pragma Inline (Set_Controlling_Argument);
13034 pragma Inline (Set_Conversion_OK);
13035 pragma Inline (Set_Convert_To_Return_False);
13036 pragma Inline (Set_Corresponding_Aspect);
13037 pragma Inline (Set_Corresponding_Body);
13038 pragma Inline (Set_Corresponding_Formal_Spec);
13039 pragma Inline (Set_Corresponding_Generic_Association);
13040 pragma Inline (Set_Corresponding_Integer_Value);
13041 pragma Inline (Set_Corresponding_Spec);
13042 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13043 pragma Inline (Set_Corresponding_Stub);
13044 pragma Inline (Set_Dcheck_Function);
13045 pragma Inline (Set_Declarations);
13046 pragma Inline (Set_Default_Expression);
13047 pragma Inline (Set_Default_Name);
13048 pragma Inline (Set_Default_Storage_Pool);
13049 pragma Inline (Set_Defining_Identifier);
13050 pragma Inline (Set_Defining_Unit_Name);
13051 pragma Inline (Set_Delay_Alternative);
13052 pragma Inline (Set_Delay_Statement);
13053 pragma Inline (Set_Delta_Expression);
13054 pragma Inline (Set_Digits_Expression);
13055 pragma Inline (Set_Discr_Check_Funcs_Built);
13056 pragma Inline (Set_Discrete_Choices);
13057 pragma Inline (Set_Discrete_Range);
13058 pragma Inline (Set_Discrete_Subtype_Definition);
13059 pragma Inline (Set_Discrete_Subtype_Definitions);
13060 pragma Inline (Set_Discriminant_Specifications);
13061 pragma Inline (Set_Discriminant_Type);
13062 pragma Inline (Set_Do_Accessibility_Check);
13063 pragma Inline (Set_Do_Discriminant_Check);
13064 pragma Inline (Set_Do_Division_Check);
13065 pragma Inline (Set_Do_Length_Check);
13066 pragma Inline (Set_Do_Overflow_Check);
13067 pragma Inline (Set_Do_Range_Check);
13068 pragma Inline (Set_Do_Storage_Check);
13069 pragma Inline (Set_Do_Tag_Check);
13070 pragma Inline (Set_Elaborate_All_Desirable);
13071 pragma Inline (Set_Elaborate_All_Present);
13072 pragma Inline (Set_Elaborate_Desirable);
13073 pragma Inline (Set_Elaborate_Present);
13074 pragma Inline (Set_Else_Actions);
13075 pragma Inline (Set_Else_Statements);
13076 pragma Inline (Set_Elsif_Parts);
13077 pragma Inline (Set_Enclosing_Variant);
13078 pragma Inline (Set_End_Label);
13079 pragma Inline (Set_End_Span);
13080 pragma Inline (Set_Entity);
13081 pragma Inline (Set_Entry_Body_Formal_Part);
13082 pragma Inline (Set_Entry_Call_Alternative);
13083 pragma Inline (Set_Entry_Call_Statement);
13084 pragma Inline (Set_Entry_Direct_Name);
13085 pragma Inline (Set_Entry_Index);
13086 pragma Inline (Set_Entry_Index_Specification);
13087 pragma Inline (Set_Etype);
13088 pragma Inline (Set_Exception_Choices);
13089 pragma Inline (Set_Exception_Handlers);
13090 pragma Inline (Set_Exception_Junk);
13091 pragma Inline (Set_Exception_Label);
13092 pragma Inline (Set_Expansion_Delayed);
13093 pragma Inline (Set_Explicit_Actual_Parameter);
13094 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13095 pragma Inline (Set_Expression);
13096 pragma Inline (Set_Expressions);
13097 pragma Inline (Set_First_Bit);
13098 pragma Inline (Set_First_Inlined_Subprogram);
13099 pragma Inline (Set_First_Name);
13100 pragma Inline (Set_First_Named_Actual);
13101 pragma Inline (Set_First_Real_Statement);
13102 pragma Inline (Set_First_Subtype_Link);
13103 pragma Inline (Set_Float_Truncate);
13104 pragma Inline (Set_Formal_Type_Definition);
13105 pragma Inline (Set_Forwards_OK);
13106 pragma Inline (Set_From_Aspect_Specification);
13107 pragma Inline (Set_From_At_End);
13108 pragma Inline (Set_From_At_Mod);
13109 pragma Inline (Set_From_Conditional_Expression);
13110 pragma Inline (Set_From_Default);
13111 pragma Inline (Set_Generalized_Indexing);
13112 pragma Inline (Set_Generic_Associations);
13113 pragma Inline (Set_Generic_Formal_Declarations);
13114 pragma Inline (Set_Generic_Parent);
13115 pragma Inline (Set_Generic_Parent_Type);
13116 pragma Inline (Set_Handled_Statement_Sequence);
13117 pragma Inline (Set_Handler_List_Entry);
13118 pragma Inline (Set_Has_Created_Identifier);
13119 pragma Inline (Set_Has_Dereference_Action);
13120 pragma Inline (Set_Has_Dynamic_Length_Check);
13121 pragma Inline (Set_Has_Dynamic_Range_Check);
13122 pragma Inline (Set_Has_Init_Expression);
13123 pragma Inline (Set_Has_Local_Raise);
13124 pragma Inline (Set_Has_No_Elaboration_Code);
13125 pragma Inline (Set_Has_Pragma_Suppress_All);
13126 pragma Inline (Set_Has_Private_View);
13127 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13128 pragma Inline (Set_Has_Self_Reference);
13129 pragma Inline (Set_Has_SP_Choice);
13130 pragma Inline (Set_Has_Storage_Size_Pragma);
13131 pragma Inline (Set_Has_Wide_Character);
13132 pragma Inline (Set_Has_Wide_Wide_Character);
13133 pragma Inline (Set_Header_Size_Added);
13134 pragma Inline (Set_Hidden_By_Use_Clause);
13135 pragma Inline (Set_High_Bound);
13136 pragma Inline (Set_Identifier);
13137 pragma Inline (Set_Implicit_With);
13138 pragma Inline (Set_Import_Interface_Present);
13139 pragma Inline (Set_In_Present);
13140 pragma Inline (Set_Includes_Infinities);
13141 pragma Inline (Set_Incomplete_View);
13142 pragma Inline (Set_Inherited_Discriminant);
13143 pragma Inline (Set_Instance_Spec);
13144 pragma Inline (Set_Interface_List);
13145 pragma Inline (Set_Interface_Present);
13146 pragma Inline (Set_Intval);
13147 pragma Inline (Set_Is_Accessibility_Actual);
13148 pragma Inline (Set_Is_Analyzed_Pragma);
13149 pragma Inline (Set_Is_Asynchronous_Call_Block);
13150 pragma Inline (Set_Is_Boolean_Aspect);
13151 pragma Inline (Set_Is_Checked);
13152 pragma Inline (Set_Is_Component_Left_Opnd);
13153 pragma Inline (Set_Is_Component_Right_Opnd);
13154 pragma Inline (Set_Is_Controlling_Actual);
13155 pragma Inline (Set_Is_Delayed_Aspect);
13156 pragma Inline (Set_Is_Disabled);
13157 pragma Inline (Set_Is_Dynamic_Coextension);
13158 pragma Inline (Set_Is_Elsif);
13159 pragma Inline (Set_Is_Entry_Barrier_Function);
13160 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13161 pragma Inline (Set_Is_Expanded_Contract);
13162 pragma Inline (Set_Is_Finalization_Wrapper);
13163 pragma Inline (Set_Is_Folded_In_Parser);
13164 pragma Inline (Set_Is_Generic_Contract_Pragma);
13165 pragma Inline (Set_Is_Ghost_Pragma);
13166 pragma Inline (Set_Is_Ignored);
13167 pragma Inline (Set_Is_In_Discriminant_Check);
13168 pragma Inline (Set_Is_Inherited_Pragma);
13169 pragma Inline (Set_Is_Machine_Number);
13170 pragma Inline (Set_Is_Null_Loop);
13171 pragma Inline (Set_Is_Overloaded);
13172 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13173 pragma Inline (Set_Is_Prefixed_Call);
13174 pragma Inline (Set_Is_Protected_Subprogram_Body);
13175 pragma Inline (Set_Is_Qualified_Universal_Literal);
13176 pragma Inline (Set_Is_Static_Coextension);
13177 pragma Inline (Set_Is_Static_Expression);
13178 pragma Inline (Set_Is_Subprogram_Descriptor);
13179 pragma Inline (Set_Is_Task_Allocation_Block);
13180 pragma Inline (Set_Is_Task_Body_Procedure);
13181 pragma Inline (Set_Is_Task_Master);
13182 pragma Inline (Set_Iteration_Scheme);
13183 pragma Inline (Set_Iterator_Specification);
13184 pragma Inline (Set_Itype);
13185 pragma Inline (Set_Kill_Range_Check);
13186 pragma Inline (Set_Label_Construct);
13187 pragma Inline (Set_Last_Bit);
13188 pragma Inline (Set_Last_Name);
13189 pragma Inline (Set_Left_Opnd);
13190 pragma Inline (Set_Library_Unit);
13191 pragma Inline (Set_Limited_Present);
13192 pragma Inline (Set_Limited_View_Installed);
13193 pragma Inline (Set_Literals);
13194 pragma Inline (Set_Local_Raise_Not_OK);
13195 pragma Inline (Set_Local_Raise_Statements);
13196 pragma Inline (Set_Loop_Actions);
13197 pragma Inline (Set_Loop_Parameter_Specification);
13198 pragma Inline (Set_Low_Bound);
13199 pragma Inline (Set_Mod_Clause);
13200 pragma Inline (Set_More_Ids);
13201 pragma Inline (Set_Must_Be_Byte_Aligned);
13202 pragma Inline (Set_Must_Not_Freeze);
13203 pragma Inline (Set_Must_Not_Override);
13204 pragma Inline (Set_Must_Override);
13205 pragma Inline (Set_Name);
13206 pragma Inline (Set_Names);
13207 pragma Inline (Set_Next_Entity);
13208 pragma Inline (Set_Next_Exit_Statement);
13209 pragma Inline (Set_Next_Implicit_With);
13210 pragma Inline (Set_Next_Named_Actual);
13211 pragma Inline (Set_Next_Pragma);
13212 pragma Inline (Set_Next_Rep_Item);
13213 pragma Inline (Set_Next_Use_Clause);
13214 pragma Inline (Set_No_Ctrl_Actions);
13215 pragma Inline (Set_No_Elaboration_Check);
13216 pragma Inline (Set_No_Entities_Ref_In_Spec);
13217 pragma Inline (Set_No_Initialization);
13218 pragma Inline (Set_No_Minimize_Eliminate);
13219 pragma Inline (Set_No_Truncation);
13220 pragma Inline (Set_Non_Aliased_Prefix);
13221 pragma Inline (Set_Null_Excluding_Subtype);
13222 pragma Inline (Set_Null_Exclusion_Present);
13223 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13224 pragma Inline (Set_Null_Present);
13225 pragma Inline (Set_Null_Record_Present);
13226 pragma Inline (Set_Object_Definition);
13227 pragma Inline (Set_Of_Present);
13228 pragma Inline (Set_Original_Discriminant);
13229 pragma Inline (Set_Original_Entity);
13230 pragma Inline (Set_Others_Discrete_Choices);
13231 pragma Inline (Set_Out_Present);
13232 pragma Inline (Set_Parameter_Associations);
13233 pragma Inline (Set_Parameter_Specifications);
13234 pragma Inline (Set_Parameter_Type);
13235 pragma Inline (Set_Parent_Spec);
13236 pragma Inline (Set_Position);
13237 pragma Inline (Set_Pragma_Argument_Associations);
13238 pragma Inline (Set_Pragma_Identifier);
13239 pragma Inline (Set_Pragmas_After);
13240 pragma Inline (Set_Pragmas_Before);
13241 pragma Inline (Set_Pre_Post_Conditions);
13242 pragma Inline (Set_Prefix);
13243 pragma Inline (Set_Premature_Use);
13244 pragma Inline (Set_Present_Expr);
13245 pragma Inline (Set_Prev_Ids);
13246 pragma Inline (Set_Print_In_Hex);
13247 pragma Inline (Set_Private_Declarations);
13248 pragma Inline (Set_Private_Present);
13249 pragma Inline (Set_Procedure_To_Call);
13250 pragma Inline (Set_Proper_Body);
13251 pragma Inline (Set_Protected_Definition);
13252 pragma Inline (Set_Protected_Present);
13253 pragma Inline (Set_Raises_Constraint_Error);
13254 pragma Inline (Set_Range_Constraint);
13255 pragma Inline (Set_Range_Expression);
13256 pragma Inline (Set_Real_Range_Specification);
13257 pragma Inline (Set_Realval);
13258 pragma Inline (Set_Reason);
13259 pragma Inline (Set_Record_Extension_Part);
13260 pragma Inline (Set_Redundant_Use);
13261 pragma Inline (Set_Renaming_Exception);
13262 pragma Inline (Set_Result_Definition);
13263 pragma Inline (Set_Return_Object_Declarations);
13264 pragma Inline (Set_Reverse_Present);
13265 pragma Inline (Set_Right_Opnd);
13266 pragma Inline (Set_Rounded_Result);
13267 pragma Inline (Set_SCIL_Controlling_Tag);
13268 pragma Inline (Set_SCIL_Entity);
13269 pragma Inline (Set_SCIL_Tag_Value);
13270 pragma Inline (Set_SCIL_Target_Prim);
13271 pragma Inline (Set_Scope);
13272 pragma Inline (Set_Select_Alternatives);
13273 pragma Inline (Set_Selector_Name);
13274 pragma Inline (Set_Selector_Names);
13275 pragma Inline (Set_Shift_Count_OK);
13276 pragma Inline (Set_Source_Type);
13277 pragma Inline (Set_Split_PPC);
13278 pragma Inline (Set_Statements);
13279 pragma Inline (Set_Storage_Pool);
13280 pragma Inline (Set_Strval);
13281 pragma Inline (Set_Subpool_Handle_Name);
13282 pragma Inline (Set_Subtype_Indication);
13283 pragma Inline (Set_Subtype_Mark);
13284 pragma Inline (Set_Subtype_Marks);
13285 pragma Inline (Set_Suppress_Assignment_Checks);
13286 pragma Inline (Set_Suppress_Loop_Warnings);
13287 pragma Inline (Set_Synchronized_Present);
13288 pragma Inline (Set_TSS_Elist);
13289 pragma Inline (Set_Tagged_Present);
13290 pragma Inline (Set_Target_Type);
13291 pragma Inline (Set_Task_Definition);
13292 pragma Inline (Set_Task_Present);
13293 pragma Inline (Set_Then_Actions);
13294 pragma Inline (Set_Then_Statements);
13295 pragma Inline (Set_Treat_Fixed_As_Integer);
13296 pragma Inline (Set_Triggering_Alternative);
13297 pragma Inline (Set_Triggering_Statement);
13298 pragma Inline (Set_Type_Definition);
13299 pragma Inline (Set_Uneval_Old_Accept);
13300 pragma Inline (Set_Uneval_Old_Warn);
13301 pragma Inline (Set_Unit);
13302 pragma Inline (Set_Uninitialized_Variable);
13303 pragma Inline (Set_Unknown_Discriminants_Present);
13304 pragma Inline (Set_Unreferenced_In_Spec);
13305 pragma Inline (Set_Used_Operations);
13306 pragma Inline (Set_Variant_Part);
13307 pragma Inline (Set_Variants);
13308 pragma Inline (Set_Visible_Declarations);
13309 pragma Inline (Set_Was_Expression_Function);
13310 pragma Inline (Set_Was_Originally_Stub);
13311 pragma Inline (Set_Withed_Body);
13313 end Sinfo;