PR target/64876
[official-gcc.git] / gcc / ada / sinfo.ads
blob7c4bbf9a98aa4fc6919598fe5b401fb20b9899a1
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2014, 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 ----------------
525 -- Ghost Mode --
526 ----------------
528 -- When a declaration is subject to pragma Ghost, it establishes a Ghost
529 -- region depending on the Ghost assertion policy in effect at the point
530 -- of declaration. This region is temporal and starts right before the
531 -- analysis of the Ghost declaration and ends after its expansion. The
532 -- values of global variable Opt.Ghost_Mode are as follows:
534 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
535 -- effect.
537 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
538 -- files, object files as well as the final executable.
540 -- To achieve the runtime semantics of "Ignore", the compiler marks each
541 -- node created during an ignored Ghost region and signals all enclosing
542 -- scopes that such a node resides within. The compilation unit where the
543 -- node resides is also added to an auxiliary table for post processing.
545 -- After the analysis and expansion of all compilation units takes place
546 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
547 -- driver initiates a separate pass which removes all ignored Ghost code
548 -- from all units stored in the auxiliary table.
550 --------------------
551 -- GNATprove Mode --
552 --------------------
554 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
555 -- expansion is performed and the analysis must generate a tree in a
556 -- form that meets additional requirements.
558 -- This light expansion does two transformations of the tree that cannot
559 -- be postponed till after semantic analysis:
561 -- 1. Replace object renamings by renamed object. This requires the
562 -- introduction of temporaries at the point of the renaming, which
563 -- must be properly analyzed.
565 -- 2. Fully qualify entity names. This is needed to generate suitable
566 -- local effects and call-graphs in ALI files, with the completely
567 -- qualified names (in particular the suffix to distinguish homonyms).
569 -- The tree after this light expansion should be fully analyzed
570 -- semantically, which sometimes requires the insertion of semantic
571 -- pre-analysis, for example for subprogram contracts and pragma
572 -- check/assert. In particular, all expression must have their proper type,
573 -- and semantic links should be set between tree nodes (partial to full
574 -- view, etc.) Some kinds of nodes should be either absent, or can be
575 -- ignored by the formal verification backend:
577 -- N_Object_Renaming_Declaration: can be ignored safely
578 -- N_Expression_Function: absent (rewritten)
579 -- N_Expression_With_Actions: absent (not generated)
581 -- SPARK cross-references are generated from the regular cross-references
582 -- (used for browsing and code understanding) and additional references
583 -- collected during semantic analysis, in particular on all dereferences.
584 -- These SPARK cross-references are output in a separate section of ALI
585 -- files, as described in spark_xrefs.adb. They are the basis for the
586 -- computation of data dependences in GNATprove. This implies that all
587 -- cross-references should be generated in this mode, even those that would
588 -- not make sense from a user point-of-view, and that cross-references that
589 -- do not lead to data dependences for subprograms can be safely ignored.
591 -- GNATprove relies on the following front end behaviors:
593 -- 1. The first declarations in the list of visible declarations of
594 -- a package declaration for a generic instance, up to the first
595 -- declaration which comes from source, should correspond to
596 -- the "mappings nodes" between formal and actual generic parameters.
598 -- 2. In addition pragma Debug statements are removed from the tree
599 -- (rewritten to NULL stmt), since they should be ignored in formal
600 -- verification.
602 -- 3. An error is also issued for missing subunits, similar to the
603 -- warning issued when generating code, to avoid formal verification
604 -- of a partial unit.
606 -- 4. Unconstrained types are not replaced by constrained types whose
607 -- bounds are generated from an expression: Expand_Subtype_From_Expr
608 -- should be a no-op.
610 -- 5. Errors (instead of warnings) are issued on compile-time-known
611 -- constraint errors even though such cases do not correspond to
612 -- illegalities in the Ada RM (this is simply another case where
613 -- GNATprove implements a subset of the full language).
615 -- However, there are a few exceptions to this rule for cases where
616 -- we want to allow the GNATprove analysis to proceed (e.g. range
617 -- checks on empty ranges, which typically appear in deactivated
618 -- code in a particular configuration).
620 -----------------------
621 -- Check Flag Fields --
622 -----------------------
624 -- The following flag fields appear in expression nodes:
626 -- Do_Division_Check
627 -- Do_Overflow_Check
628 -- Do_Range_Check
630 -- These three flags are always set by the front end during semantic
631 -- analysis, on expression nodes that may trigger the corresponding
632 -- check. The front end then inserts or not the check during expansion. In
633 -- particular, these flags should also be correctly set in ASIS mode and
634 -- GNATprove mode.
636 -- Note: the expander always takes care of the Do_Range check case,
637 -- so this flag will never be set in the expanded tree passed to the
638 -- back end code generator.
640 -- Note that this accounts for all nodes that trigger the corresponding
641 -- checks, except for range checks on subtype_indications, which may be
642 -- required to check that a range_constraint is compatible with the given
643 -- subtype (RM 3.2.2(11)).
645 -- The following flag fields appear in various nodes:
647 -- Do_Accessibility_Check
648 -- Do_Discriminant_Check
649 -- Do_Length_Check
650 -- Do_Storage_Check
651 -- Do_Tag_Check
653 -- These flags are used in some specific cases by the front end, either
654 -- during semantic analysis or during expansion, and cannot be expected
655 -- to be set on all nodes that trigger the corresponding check.
657 ------------------------
658 -- Common Flag Fields --
659 ------------------------
661 -- The following flag fields appear in all nodes:
663 -- Analyzed
664 -- This flag is used to indicate that a node (and all its children have
665 -- been analyzed. It is used to avoid reanalysis of a node that has
666 -- already been analyzed, both for efficiency and functional correctness
667 -- reasons.
669 -- Comes_From_Source
670 -- This flag is set if the node comes directly from an explicit construct
671 -- in the source. It is normally on for any nodes built by the scanner or
672 -- parser from the source program, with the exception that in a few cases
673 -- the parser adds nodes to normalize the representation (in particular
674 -- a null statement is added to a package body if there is no begin/end
675 -- initialization section.
677 -- Most nodes inserted by the analyzer or expander are not considered
678 -- as coming from source, so the flag is off for such nodes. In a few
679 -- cases, the expander constructs nodes closely equivalent to nodes
680 -- from the source program (e.g. the allocator built for build-in-place
681 -- case), and the Comes_From_Source flag is deliberately set.
683 -- Error_Posted
684 -- This flag is used to avoid multiple error messages being posted on or
685 -- referring to the same node. This flag is set if an error message
686 -- refers to a node or is posted on its source location, and has the
687 -- effect of inhibiting further messages involving this same node.
689 -----------------------
690 -- Modify_Tree_For_C --
691 -----------------------
693 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
694 -- in ways that help match the semantics better with C, easing the task of
695 -- interfacing to C code generators (other than GCC, where the work is done
696 -- in gigi, and there is no point in changing that), and also making life
697 -- easier for Cprint in generating C source code.
699 -- The current modifications implemented are as follows:
701 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
702 -- are eliminated from the tree (since these operations do not exist in
703 -- C), and the operations are rewritten in terms of logical shifts and
704 -- other logical operations that do exist in C. See Exp_Ch4 expansion
705 -- routines for these operators for details of the transformations made.
707 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
708 -- less than the word size (since other values are not well-defined in
709 -- C). This is done using an explicit test if necessary.
711 -- Min and Max attributes are expanded into equivalent if expressions,
712 -- dealing properly with side effect issues.
714 -- Mod for signed integer types is expanded into equivalent expressions
715 -- using Rem (which is % in C) and other C-available operators.
717 -- The Actions list of an Expression_With_Actions node does not contain
718 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
720 ------------------------------------
721 -- Description of Semantic Fields --
722 ------------------------------------
724 -- The meaning of the syntactic fields is generally clear from their names
725 -- without any further description, since the names are chosen to
726 -- correspond very closely to the syntax in the reference manual. This
727 -- section describes the usage of the semantic fields, which are used to
728 -- contain additional information determined during semantic analysis.
730 -- ABE_Is_Certain (Flag18-Sem)
731 -- This flag is set in an instantiation node or a call node is determined
732 -- to be sure to raise an ABE. This is used to trigger special handling
733 -- of such cases, particularly in the instantiation case where we avoid
734 -- instantiating the body if this flag is set. This flag is also present
735 -- in an N_Formal_Package_Declaration_Node since formal package
736 -- declarations are treated like instantiations, but it is always set to
737 -- False in this context.
739 -- Accept_Handler_Records (List5-Sem)
740 -- This field is present only in an N_Accept_Alternative node. It is used
741 -- to temporarily hold the exception handler records from an accept
742 -- statement in a selective accept. These exception handlers will
743 -- eventually be placed in the Handler_Records list of the procedure
744 -- built for this accept (see Expand_N_Selective_Accept procedure in
745 -- Exp_Ch9 for further details).
747 -- Access_Types_To_Process (Elist2-Sem)
748 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
749 -- Contains the list of access types which may require specific treatment
750 -- when the nature of the type completion is completely known. An example
751 -- of such treatment is the generation of the associated_final_chain.
753 -- Actions (List1-Sem)
754 -- This field contains a sequence of actions that are associated with the
755 -- node holding the field. See the individual node types for details of
756 -- how this field is used, as well as the description of the specific use
757 -- for a particular node type.
759 -- Activation_Chain_Entity (Node3-Sem)
760 -- This is used in tree nodes representing task activators (blocks,
761 -- subprogram bodies, package declarations, and task bodies). It is
762 -- initially Empty, and then gets set to point to the entity for the
763 -- declared Activation_Chain variable when the first task is declared.
764 -- When tasks are declared in the corresponding declarative region this
765 -- entity is located by name (its name is always _Chain) and the declared
766 -- tasks are added to the chain. Note that N_Extended_Return_Statement
767 -- does not have this attribute, although it does have an activation
768 -- chain. This chain is used to store the tasks temporarily, and is not
769 -- used for activating them. On successful completion of the return
770 -- statement, the tasks are moved to the caller's chain, and the caller
771 -- activates them.
773 -- Acts_As_Spec (Flag4-Sem)
774 -- A flag set in the N_Subprogram_Body node for a subprogram body which
775 -- is acting as its own spec, except in the case of a library level
776 -- subprogram, in which case the flag is set on the parent compilation
777 -- unit node instead.
779 -- Actual_Designated_Subtype (Node4-Sem)
780 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
781 -- needs to known the dynamic constrained subtype of the designated
782 -- object, this attribute is set to that type. This is done for
783 -- N_Free_Statements for access-to-classwide types and access to
784 -- unconstrained packed array types, and for N_Explicit_Dereference when
785 -- the designated type is an unconstrained packed array and the
786 -- dereference is the prefix of a 'Size attribute reference.
788 -- Address_Warning_Posted (Flag18-Sem)
789 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
790 -- posted a warning for the address clause regarding size or alignment
791 -- issues. Used to inhibit multiple redundant messages.
793 -- Aggregate_Bounds (Node3-Sem)
794 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
795 -- known at compile time, this field points to an N_Range node with those
796 -- bounds. Otherwise Empty.
798 -- All_Others (Flag11-Sem)
799 -- Present in an N_Others_Choice node. This flag is set for an others
800 -- exception where all exceptions are to be caught, even those that are
801 -- not normally handled (in particular the tasking abort signal). This
802 -- is used for translation of the at end handler into a normal exception
803 -- handler.
805 -- Aspect_Rep_Item (Node2-Sem)
806 -- Present in N_Aspect_Specification nodes. Points to the corresponding
807 -- pragma/attribute definition node used to process the aspect.
809 -- Assignment_OK (Flag15-Sem)
810 -- This flag is set in a subexpression node for an object, indicating
811 -- that the associated object can be modified, even if this would not
812 -- normally be permissible (either by direct assignment, or by being
813 -- passed as an out or in-out parameter). This is used by the expander
814 -- for a number of purposes, including initialization of constants and
815 -- limited type objects (such as tasks), setting discriminant fields,
816 -- setting tag values, etc. N_Object_Declaration nodes also have this
817 -- flag defined. Here it is used to indicate that an initialization
818 -- expression is valid, even where it would normally not be allowed
819 -- (e.g. where the type involved is limited).
821 -- Associated_Node (Node4-Sem)
822 -- Present in nodes that can denote an entity: identifiers, character
823 -- literals, operator symbols, expanded names, operator nodes, and
824 -- attribute reference nodes (all these nodes have an Entity field).
825 -- This field is also present in N_Aggregate, N_Selected_Component, and
826 -- N_Extension_Aggregate nodes. This field is used in generic processing
827 -- to create links between the generic template and the generic copy.
828 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
829 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
830 -- the normal function of Entity is not required at the point where the
831 -- Associated_Node is set. Note also, that in generic templates, this
832 -- means that the Entity field does not necessarily point to an Entity.
833 -- Since the back end is expected to ignore generic templates, this is
834 -- harmless.
836 -- Atomic_Sync_Required (Flag14-Sem)
837 -- This flag is set on a node for which atomic synchronization is
838 -- required for the corresponding reference or modification.
840 -- At_End_Proc (Node1)
841 -- This field is present in an N_Handled_Sequence_Of_Statements node.
842 -- It contains an identifier reference for the cleanup procedure to be
843 -- called. See description of this node for further details.
845 -- Backwards_OK (Flag6-Sem)
846 -- A flag present in the N_Assignment_Statement node. It is used only
847 -- if the type being assigned is an array type, and is set if analysis
848 -- determines that it is definitely safe to do the copy backwards, i.e.
849 -- starting at the highest addressed element. This is the case if either
850 -- the operands do not overlap, or they may overlap, but if they do,
851 -- then the left operand is at a higher address than the right operand.
853 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
854 -- means that the front end could not determine that either direction is
855 -- definitely safe, and a runtime check may be required if the backend
856 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
857 -- set, it means that the front end can assure no overlap of operands.
859 -- Body_To_Inline (Node3-Sem)
860 -- Present in subprogram declarations. Denotes analyzed but unexpanded
861 -- body of subprogram, to be used when inlining calls. Present when the
862 -- subprogram has an Inline pragma and inlining is enabled. If the
863 -- declaration is completed by a renaming_as_body, and the renamed en-
864 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
865 -- which is used directly in later calls to the original subprogram.
867 -- Body_Required (Flag13-Sem)
868 -- A flag that appears in the N_Compilation_Unit node indicating that
869 -- the corresponding unit requires a body. For the package case, this
870 -- indicates that a completion is required. In Ada 95, if the flag is not
871 -- set for the package case, then a body may not be present. In Ada 83,
872 -- if the flag is not set for the package case, then body is optional.
873 -- For a subprogram declaration, the flag is set except in the case where
874 -- a pragma Import or Interface applies, in which case no body is
875 -- permitted (in Ada 83 or Ada 95).
877 -- By_Ref (Flag5-Sem)
878 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
879 -- this flag is set when the returned expression is already allocated on
880 -- the secondary stack and thus the result is passed by reference rather
881 -- than copied another time.
883 -- Cleanup_Actions (List5-Sem)
884 -- Present in block statements created for transient blocks, contains
885 -- additional cleanup actions carried over from the transient scope.
887 -- Check_Address_Alignment (Flag11-Sem)
888 -- A flag present in N_Attribute_Definition clause for a 'Address
889 -- attribute definition. This flag is set if a dynamic check should be
890 -- generated at the freeze point for the entity to which this address
891 -- clause applies. The reason that we need this flag is that we want to
892 -- check for range checks being suppressed at the point where the
893 -- attribute definition clause is given, rather than testing this at the
894 -- freeze point.
896 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
897 -- Present in N_Simple_Return_Statement nodes. True if this node was
898 -- constructed as part of the N_Extended_Return_Statement expansion.
900 -- Compile_Time_Known_Aggregate (Flag18-Sem)
901 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
902 -- evaluated at compile time without raising constraint error. Such
903 -- aggregates can be passed as is the back end without any expansion.
904 -- See Exp_Aggr for specific conditions under which this flag gets set.
906 -- Componentwise_Assignment (Flag14-Sem)
907 -- Present in N_Assignment_Statement nodes. Set for a record assignment
908 -- where all that needs doing is to expand it into component-by-component
909 -- assignments. This is used internally for the case of tagged types with
910 -- rep clauses, where we need to avoid recursion (we don't want to try to
911 -- generate a call to the primitive operation, because this is the case
912 -- where we are compiling the primitive operation). Note that when we are
913 -- expanding component assignments in this case, we never assign the _tag
914 -- field, but we recursively assign components of the parent type.
916 -- Condition_Actions (List3-Sem)
917 -- This field appears in else-if nodes and in the iteration scheme node
918 -- for while loops. This field is only used during semantic processing to
919 -- temporarily hold actions inserted into the tree. In the tree passed
920 -- to gigi, the condition actions field is always set to No_List. For
921 -- details on how this field is used, see the routine Insert_Actions in
922 -- package Exp_Util, and also the expansion routines for the relevant
923 -- nodes.
925 -- Context_Pending (Flag16-Sem)
926 -- This field appears in Compilation_Unit nodes, to indicate that the
927 -- context of the unit is being compiled. Used to detect circularities
928 -- that are not otherwise detected by the loading mechanism. Such
929 -- circularities can occur in the presence of limited and non-limited
930 -- with_clauses that mention the same units.
932 -- Controlling_Argument (Node1-Sem)
933 -- This field is set in procedure and function call nodes if the call
934 -- is a dispatching call (it is Empty for a non-dispatching call). It
935 -- indicates the source of the call's controlling tag. For procedure
936 -- calls, the Controlling_Argument is one of the actuals. For function
937 -- that has a dispatching result, it is an entity in the context of the
938 -- call that can provide a tag, or else it is the tag of the root type
939 -- of the class. It can also specify a tag directly rather than being a
940 -- tagged object. The latter is needed by the implementations of AI-239
941 -- and AI-260.
943 -- Conversion_OK (Flag14-Sem)
944 -- A flag set on type conversion nodes to indicate that the conversion
945 -- is to be considered as being valid, even though it is the case that
946 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
947 -- Fixed_Value and Integer_Value, for internal conversions done for
948 -- fixed-point operations, and for certain conversions for calls to
949 -- initialization procedures. If Conversion_OK is set, then Etype must be
950 -- set (the analyzer assumes that Etype has been set). For the case of
951 -- fixed-point operands, it also indicates that the conversion is to be
952 -- direct conversion of the underlying integer result, with no regard to
953 -- the small operand.
955 -- Convert_To_Return_False (Flag13-Sem)
956 -- Present in N_Raise_Expression nodes that appear in the body of the
957 -- special predicateM function used to test a predicate in the context
958 -- of a membership test, where raise expression results in returning a
959 -- value of False rather than raising an exception.
961 -- Corresponding_Aspect (Node3-Sem)
962 -- Present in N_Pragma node. Used to point back to the source aspect from
963 -- the corresponding pragma. This field is Empty for source pragmas.
965 -- Corresponding_Body (Node5-Sem)
966 -- This field is set in subprogram declarations, package declarations,
967 -- entry declarations of protected types, and in generic units. It points
968 -- to the defining entity for the corresponding body (NOT the node for
969 -- the body itself).
971 -- Corresponding_Formal_Spec (Node3-Sem)
972 -- This field is set in subprogram renaming declarations, where it points
973 -- to the defining entity for a formal subprogram in the case where the
974 -- renaming corresponds to a generic formal subprogram association in an
975 -- instantiation. The field is Empty if the renaming does not correspond
976 -- to such a formal association.
978 -- Corresponding_Generic_Association (Node5-Sem)
979 -- This field is defined for object declarations and object renaming
980 -- declarations. It is set for the declarations within an instance that
981 -- map generic formals to their actuals. If set, the field points to
982 -- a generic_association which is the original parent of the expression
983 -- or name appearing in the declaration. This simplifies ASIS queries.
985 -- Corresponding_Integer_Value (Uint4-Sem)
986 -- This field is set in real literals of fixed-point types (it is not
987 -- used for floating-point types). It contains the integer value used
988 -- to represent the fixed-point value. It is also set on the universal
989 -- real literals used to represent bounds of fixed-point base types
990 -- and their first named subtypes.
992 -- Corresponding_Spec (Node5-Sem)
993 -- This field is set in subprogram, package, task, and protected body
994 -- nodes, where it points to the defining entity in the corresponding
995 -- spec. The attribute is also set in N_With_Clause nodes where it points
996 -- to the defining entity for the with'ed spec, and in a subprogram
997 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
998 -- if there is no corresponding spec, as in the case of a subprogram body
999 -- that serves as its own spec.
1001 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1002 -- complete a subprogram declaration.
1004 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1005 -- This field is present in subprogram, package, task and protected body
1006 -- stubs where it points to the corresponding spec of the stub. Due to
1007 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1009 -- Corresponding_Stub (Node3-Sem)
1010 -- This field is present in an N_Subunit node. It holds the node in
1011 -- the parent unit that is the stub declaration for the subunit. It is
1012 -- set when analysis of the stub forces loading of the proper body. If
1013 -- expansion of the proper body creates new declarative nodes, they are
1014 -- inserted at the point of the corresponding_stub.
1016 -- Dcheck_Function (Node5-Sem)
1017 -- This field is present in an N_Variant node, It references the entity
1018 -- for the discriminant checking function for the variant.
1020 -- Default_Expression (Node5-Sem)
1021 -- This field is Empty if there is no default expression. If there is a
1022 -- simple default expression (one with no side effects), then this field
1023 -- simply contains a copy of the Expression field (both point to the tree
1024 -- for the default expression). Default_Expression is used for
1025 -- conformance checking.
1027 -- Default_Storage_Pool (Node3-Sem)
1028 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1029 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1030 -- package Opt for details. This is used for inheriting the
1031 -- Default_Storage_Pool in child units.
1033 -- Discr_Check_Funcs_Built (Flag11-Sem)
1034 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1035 -- discriminant checking functions are constructed. The purpose is to
1036 -- avoid attempting to set these functions more than once.
1038 -- Do_Accessibility_Check (Flag13-Sem)
1039 -- This flag is set on N_Parameter_Specification nodes to indicate
1040 -- that an accessibility check is required for the parameter. It is
1041 -- not yet decided who takes care of this check (TBD ???).
1043 -- Do_Discriminant_Check (Flag1-Sem)
1044 -- This flag is set on N_Selected_Component nodes to indicate that a
1045 -- discriminant check is required using the discriminant check routine
1046 -- associated with the selector. The actual check is generated by the
1047 -- expander when processing selected components. In the case of
1048 -- Unchecked_Union, the flag is also set, but no discriminant check
1049 -- routine is associated with the selector, and the expander does not
1050 -- generate a check. This flag is also present in assignment statements
1051 -- (and set if the assignment requires a discriminant check), and in type
1052 -- conversion nodes (and set if the conversion requires a check).
1054 -- Do_Division_Check (Flag13-Sem)
1055 -- This flag is set on a division operator (/ mod rem) to indicate
1056 -- that a zero divide check is required. The actual check is dealt
1057 -- with by the backend (all the front end does is to set the flag).
1059 -- Do_Length_Check (Flag4-Sem)
1060 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1061 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1062 -- is required. It is not determined who deals with this flag (???).
1064 -- Do_Overflow_Check (Flag17-Sem)
1065 -- This flag is set on an operator where an overflow check is required on
1066 -- the operation. The actual check is dealt with by the backend (all the
1067 -- front end does is to set the flag). The other cases where this flag is
1068 -- used is on a Type_Conversion node and for attribute reference nodes.
1069 -- For a type conversion, it means that the conversion is from one base
1070 -- type to another, and the value may not fit in the target base type.
1071 -- See also the description of Do_Range_Check for this case. The only
1072 -- attribute references which use this flag are Pred and Succ, where it
1073 -- means that the result should be checked for going outside the base
1074 -- range. Note that this flag is not set for modular types. This flag is
1075 -- also set on if and case expression nodes if we are operating in either
1076 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1077 -- properly process overflow checking for dependent expressions).
1079 -- Do_Range_Check (Flag9-Sem)
1080 -- This flag is set on an expression which appears in a context where a
1081 -- range check is required. The target type is clear from the context.
1082 -- The contexts in which this flag can appear are the following:
1084 -- Right side of an assignment. In this case the target type is
1085 -- taken from the left side of the assignment, which is referenced
1086 -- by the Name of the N_Assignment_Statement node.
1088 -- Subscript expressions in an indexed component. In this case the
1089 -- target type is determined from the type of the array, which is
1090 -- referenced by the Prefix of the N_Indexed_Component node.
1092 -- Argument expression for a parameter, appearing either directly in
1093 -- the Parameter_Associations list of a call or as the Expression of an
1094 -- N_Parameter_Association node that appears in this list. In either
1095 -- case, the check is against the type of the formal. Note that the
1096 -- flag is relevant only in IN and IN OUT parameters, and will be
1097 -- ignored for OUT parameters, where no check is required in the call,
1098 -- and if a check is required on the return, it is generated explicitly
1099 -- with a type conversion.
1101 -- Initialization expression for the initial value in an object
1102 -- declaration. In this case the Do_Range_Check flag is set on
1103 -- the initialization expression, and the check is against the
1104 -- range of the type of the object being declared. This includes the
1105 -- cases of expressions providing default discriminant values, and
1106 -- expressions used to initialize record components.
1108 -- The expression of a type conversion. In this case the range check is
1109 -- against the target type of the conversion. See also the use of
1110 -- Do_Overflow_Check on a type conversion. The distinction is that the
1111 -- overflow check protects against a value that is outside the range of
1112 -- the target base type, whereas a range check checks that the
1113 -- resulting value (which is a value of the base type of the target
1114 -- type), satisfies the range constraint of the target type.
1116 -- Note: when a range check is required in contexts other than those
1117 -- listed above (e.g. in a return statement), an additional type
1118 -- conversion node is introduced to represent the required check.
1120 -- A special case arises for the arguments of the Pred/Succ attributes.
1121 -- Here the range check needed is against First + 1 .. Last (Pred) or
1122 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1123 -- these checks are what would be performed within the implicit body of
1124 -- the functions that correspond to these attributes. In these cases,
1125 -- the Do_Range check flag is set on the argument to the attribute
1126 -- function, and the back end must special case the appropriate range
1127 -- to check against.
1129 -- Do_Storage_Check (Flag17-Sem)
1130 -- This flag is set in an N_Allocator node to indicate that a storage
1131 -- check is required for the allocation, or in an N_Subprogram_Body node
1132 -- to indicate that a stack check is required in the subprogram prologue.
1133 -- The N_Allocator case is handled by the routine that expands the call
1134 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1135 -- backend, and all the semantics does is set the flag.
1137 -- Do_Tag_Check (Flag13-Sem)
1138 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1139 -- N_Procedure_Call_Statement, N_Type_Conversion,
1140 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1141 -- node to indicate that the tag check can be suppressed. It is not
1142 -- yet decided how this flag is used (TBD ???).
1144 -- Elaborate_Present (Flag4-Sem)
1145 -- This flag is set in the N_With_Clause node to indicate that pragma
1146 -- Elaborate pragma appears for the with'ed units.
1148 -- Elaborate_All_Desirable (Flag9-Sem)
1149 -- This flag is set in the N_With_Clause mode to indicate that the static
1150 -- elaboration processing has determined that an Elaborate_All pragma is
1151 -- desirable for correct elaboration for this unit.
1153 -- Elaborate_All_Present (Flag14-Sem)
1154 -- This flag is set in the N_With_Clause node to indicate that a
1155 -- pragma Elaborate_All pragma appears for the with'ed units.
1157 -- Elaborate_Desirable (Flag11-Sem)
1158 -- This flag is set in the N_With_Clause mode to indicate that the static
1159 -- elaboration processing has determined that an Elaborate pragma is
1160 -- desirable for correct elaboration for this unit.
1162 -- Else_Actions (List3-Sem)
1163 -- This field is present in if expression nodes. During code
1164 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1165 -- actions at an appropriate place in the tree to get elaborated at the
1166 -- right time. For if expressions, we have to be sure that the actions
1167 -- for the Else branch are only elaborated if the condition is False.
1168 -- The Else_Actions field is used as a temporary parking place for
1169 -- these actions. The final tree is always rewritten to eliminate the
1170 -- need for this field, so in the tree passed to Gigi, this field is
1171 -- always set to No_List.
1173 -- Enclosing_Variant (Node2-Sem)
1174 -- This field is present in the N_Variant node and identifies the Node_Id
1175 -- corresponding to the immediately enclosing variant when the variant is
1176 -- nested, and N_Empty otherwise. Set during semantic processing of the
1177 -- variant part of a record type.
1179 -- Entity (Node4-Sem)
1180 -- Appears in all direct names (identifiers, character literals, and
1181 -- operator symbols), as well as expanded names, and attributes that
1182 -- denote entities, such as 'Class. Points to entity for corresponding
1183 -- defining occurrence. Set after name resolution. For identifiers in a
1184 -- WITH list, the corresponding defining occurrence is in a separately
1185 -- compiled file, and Entity must be set by the library Load procedure.
1187 -- Note: During name resolution, the value in Entity may be temporarily
1188 -- incorrect (e.g. during overload resolution, Entity is initially set to
1189 -- the first possible correct interpretation, and then later modified if
1190 -- necessary to contain the correct value after resolution).
1192 -- Note: This field overlaps Associated_Node, which is used during
1193 -- generic processing (see Sem_Ch12 for details). Note also that in
1194 -- generic templates, this means that the Entity field does not always
1195 -- point to an Entity. Since the back end is expected to ignore generic
1196 -- templates, this is harmless.
1198 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1199 -- It is used only for stream attributes definition clauses. In this
1200 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1201 -- conceptually at the point of the clause. Thus the visibility of the
1202 -- attribute definition clause (in the sense of 8.3(23) as amended by
1203 -- AI-195) can be checked by testing the visibility of that subprogram.
1205 -- Note: Normally the Entity field of an identifier points to the entity
1206 -- for the corresponding defining identifier, and hence the Chars field
1207 -- of an identifier will match the Chars field of the entity. However,
1208 -- there is no requirement that these match, and there are obscure cases
1209 -- of generated code where they do not match.
1211 -- Note: Ada 2012 aspect specifications require additional links between
1212 -- identifiers and various attributes. These attributes can be of
1213 -- arbitrary types, and the entity field of identifiers that denote
1214 -- aspects must be used to store arbitrary expressions for later semantic
1215 -- checks. See section on aspect specifications for details.
1217 -- Entity_Or_Associated_Node (Node4-Sem)
1218 -- A synonym for both Entity and Associated_Node. Used by convention in
1219 -- the code when referencing this field in cases where it is not known
1220 -- whether the field contains an Entity or an Associated_Node.
1222 -- Etype (Node5-Sem)
1223 -- Appears in all expression nodes, all direct names, and all entities.
1224 -- Points to the entity for the related type. Set after type resolution.
1225 -- Normally this is the actual subtype of the expression. However, in
1226 -- certain contexts such as the right side of an assignment, subscripts,
1227 -- arguments to calls, returned value in a function, initial value etc.
1228 -- it is the desired target type. In the event that this is different
1229 -- from the actual type, the Do_Range_Check flag will be set if a range
1230 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1231 -- points to an essentially arbitrary choice from the possible set of
1232 -- types.
1234 -- Exception_Junk (Flag8-Sem)
1235 -- This flag is set in a various nodes appearing in a statement sequence
1236 -- to indicate that the corresponding node is an artifact of the
1237 -- generated code for exception handling, and should be ignored when
1238 -- analyzing the control flow of the relevant sequence of statements
1239 -- (e.g. to check that it does not end with a bad return statement).
1241 -- Exception_Label (Node5-Sem)
1242 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1243 -- to be used for transforming the corresponding exception into a goto,
1244 -- or contains Empty, if this exception is not to be transformed. Also
1245 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1246 -- that there may be a local raise for the handler, so that expansion
1247 -- to allow a goto is required (and this field contains the label for
1248 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1250 -- Expansion_Delayed (Flag11-Sem)
1251 -- Set on aggregates and extension aggregates that need a top-down rather
1252 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1253 -- up. For nested aggregates the expansion is delayed until the enclosing
1254 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1255 -- delay it we set this flag. This is done to avoid creating a temporary
1256 -- for each level of a nested aggregates, and also to prevent the
1257 -- premature generation of constraint checks. This is also a requirement
1258 -- if we want to generate the proper attachment to the internal
1259 -- finalization lists (for record with controlled components). Top down
1260 -- expansion of aggregates is also used for in-place array aggregate
1261 -- assignment or initialization. When the full context is known, the
1262 -- target of the assignment or initialization is used to generate the
1263 -- left-hand side of individual assignment to each sub-component.
1265 -- First_Inlined_Subprogram (Node3-Sem)
1266 -- Present in the N_Compilation_Unit node for the main program. Points
1267 -- to a chain of entities for subprograms that are to be inlined. The
1268 -- Next_Inlined_Subprogram field of these entities is used as a link
1269 -- pointer with Empty marking the end of the list. This field is Empty
1270 -- if there are no inlined subprograms or inlining is not active.
1272 -- First_Named_Actual (Node4-Sem)
1273 -- Present in procedure call statement and function call nodes, and also
1274 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1275 -- named parameter where parameters are ordered by declaration order (as
1276 -- opposed to the actual order in the call which may be different due to
1277 -- named associations). Note: this field points to the explicit actual
1278 -- parameter itself, not the N_Parameter_Association node (its parent).
1280 -- First_Real_Statement (Node2-Sem)
1281 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1282 -- Empty. Used only when declarations are moved into the statement part
1283 -- of a construct as a result of wrapping an AT END handler that is
1284 -- required to cover the declarations. In this case, this field is used
1285 -- to remember the location in the statements list of the first real
1286 -- statement, i.e. the statement that used to be first in the statement
1287 -- list before the declarations were prepended.
1289 -- First_Subtype_Link (Node5-Sem)
1290 -- Present in N_Freeze_Entity node for an anonymous base type that is
1291 -- implicitly created by the declaration of a first subtype. It points
1292 -- to the entity for the first subtype.
1294 -- Float_Truncate (Flag11-Sem)
1295 -- A flag present in type conversion nodes. This is used for float to
1296 -- integer conversions where truncation is required rather than rounding.
1298 -- Forwards_OK (Flag5-Sem)
1299 -- A flag present in the N_Assignment_Statement node. It is used only
1300 -- if the type being assigned is an array type, and is set if analysis
1301 -- determines that it is definitely safe to do the copy forwards, i.e.
1302 -- starting at the lowest addressed element. This is the case if either
1303 -- the operands do not overlap, or they may overlap, but if they do,
1304 -- then the left operand is at a lower address than the right operand.
1306 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1307 -- means that the front end could not determine that either direction is
1308 -- definitely safe, and a runtime check may be required if the backend
1309 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1310 -- set, it means that the front end can assure no overlap of operands.
1312 -- From_Aspect_Specification (Flag13-Sem)
1313 -- Processing of aspect specifications typically results in insertion in
1314 -- the tree of corresponding pragma or attribute definition clause nodes.
1315 -- These generated nodes have the From_Aspect_Specification flag set to
1316 -- indicate that they came from aspect specifications originally.
1318 -- From_At_End (Flag4-Sem)
1319 -- This flag is set on an N_Raise_Statement node if it corresponds to
1320 -- the reraise statement generated as the last statement of an AT END
1321 -- handler when SJLJ exception handling is active. It is used to stop
1322 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1323 -- because if the restriction is set, the reraise is not generated.
1325 -- From_At_Mod (Flag4-Sem)
1326 -- This flag is set on the attribute definition clause node that is
1327 -- generated by a transformation of an at mod phrase in a record
1328 -- representation clause. This is used to give slightly different (Ada 83
1329 -- compatible) semantics to such a clause, namely it is used to specify a
1330 -- minimum acceptable alignment for the base type and all subtypes. In
1331 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1332 -- must be a multiple of the given value, and the representation clause
1333 -- is considered to be type specific instead of subtype specific.
1335 -- From_Conditional_Expression (Flag1-Sem)
1336 -- This flag is set on if and case statements generated by the expansion
1337 -- of if and case expressions respectively. The flag is used to suppress
1338 -- any finalization of controlled objects found within these statements.
1340 -- From_Default (Flag6-Sem)
1341 -- This flag is set on the subprogram renaming declaration created in an
1342 -- instance for a formal subprogram, when the formal is declared with a
1343 -- box, and there is no explicit actual. If the flag is present, the
1344 -- declaration is treated as an implicit reference to the formal in the
1345 -- ali file.
1347 -- Generalized_Indexing (Node4-Sem)
1348 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1349 -- that are Ada 2012 container indexing operations. The value of the
1350 -- attribute is a function call (possibly dereferenced) that corresponds
1351 -- to the proper expansion of the source indexing operation. Before
1352 -- expansion, the source node is rewritten as the resolved generalized
1353 -- indexing. In ASIS mode, the expansion does not take place, so that
1354 -- the source is preserved and properly annotated with types.
1356 -- Generic_Parent (Node5-Sem)
1357 -- Generic_Parent is defined on declaration nodes that are instances. The
1358 -- value of Generic_Parent is the generic entity from which the instance
1359 -- is obtained. Generic_Parent is also defined for the renaming
1360 -- declarations and object declarations created for the actuals in an
1361 -- instantiation. The generic parent of such a declaration is the
1362 -- corresponding generic association in the Instantiation node.
1364 -- Generic_Parent_Type (Node4-Sem)
1365 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1366 -- actuals of formal private and derived types. Within the instance, the
1367 -- operations on the actual are those inherited from the parent. For a
1368 -- formal private type, the parent type is the generic type itself. The
1369 -- Generic_Parent_Type is also used in an instance to determine whether a
1370 -- private operation overrides an inherited one.
1372 -- Handler_List_Entry (Node2-Sem)
1373 -- This field is present in N_Object_Declaration nodes. It is set only
1374 -- for the Handler_Record entry generated for an exception in zero cost
1375 -- exception handling mode. It references the corresponding item in the
1376 -- handler list, and is used to delete this entry if the corresponding
1377 -- handler is deleted during optimization. For further details on why
1378 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1380 -- Has_Dereference_Action (Flag13-Sem)
1381 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1382 -- indicate that the expansion has aready produced a call to primitive
1383 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1384 -- Such dereference actions are produced for debugging purposes.
1386 -- Has_Dynamic_Length_Check (Flag10-Sem)
1387 -- This flag is present in all expression nodes. It is set to indicate
1388 -- that one of the routines in unit Checks has generated a length check
1389 -- action which has been inserted at the flagged node. This is used to
1390 -- avoid the generation of duplicate checks.
1392 -- Has_Dynamic_Range_Check (Flag12-Sem)
1393 -- This flag is present in N_Subtype_Declaration nodes and on all
1394 -- expression nodes. It is set to indicate that one of the routines in
1395 -- unit Checks has generated a range check action which has been inserted
1396 -- at the flagged node. This is used to avoid the generation of duplicate
1397 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1398 -- it mean in that context???
1400 -- Has_Local_Raise (Flag8-Sem)
1401 -- Present in exception handler nodes. Set if the handler can be entered
1402 -- via a local raise that gets transformed to a goto statement. This will
1403 -- always be set if Local_Raise_Statements is non-empty, but can also be
1404 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1405 -- nodes requiring generation of back end checks.
1407 -- Has_No_Elaboration_Code (Flag17-Sem)
1408 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1409 -- or not elaboration code is present for this unit. It is initially set
1410 -- true for subprogram specs and bodies and for all generic units and
1411 -- false for non-generic package specs and bodies. Gigi may set the flag
1412 -- in the non-generic package case if it determines that no elaboration
1413 -- code is generated. Note that this flag is not related to the
1414 -- Is_Preelaborated status, there can be preelaborated packages that
1415 -- generate elaboration code, and non-preelaborated packages which do
1416 -- not generate elaboration code.
1418 -- Has_Pragma_Suppress_All (Flag14-Sem)
1419 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1420 -- pragma appears anywhere in the unit. This accommodates the rather
1421 -- strange placement rules of other compilers (DEC permits it at the
1422 -- end of a unit, and Rational allows it as a program unit pragma). We
1423 -- allow it anywhere at all, and consider it equivalent to a pragma
1424 -- Suppress (All_Checks) appearing at the start of the configuration
1425 -- pragmas for the unit.
1427 -- Has_Private_View (Flag11-Sem)
1428 -- A flag present in generic nodes that have an entity, to indicate that
1429 -- the node has a private type. Used to exchange private and full
1430 -- declarations if the visibility at instantiation is different from the
1431 -- visibility at generic definition.
1433 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1434 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1435 -- flag the presence of a pragma Relative_Deadline.
1437 -- Has_Self_Reference (Flag13-Sem)
1438 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1439 -- of the expressions contains an access attribute reference to the
1440 -- enclosing type. Such a self-reference can only appear in default-
1441 -- initialized aggregate for a record type.
1443 -- Has_SP_Choice (Flag15-Sem)
1444 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1445 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1446 -- True if the Discrete_Choices list has at least one occurrence of a
1447 -- statically predicated subtype.
1449 -- Has_Storage_Size_Pragma (Flag5-Sem)
1450 -- A flag present in an N_Task_Definition node to flag the presence of a
1451 -- Storage_Size pragma.
1453 -- Has_Wide_Character (Flag11-Sem)
1454 -- Present in string literals, set if any wide character (i.e. character
1455 -- code outside the Character range but within Wide_Character range)
1456 -- appears in the string. Used to implement pragma preference rules.
1458 -- Has_Wide_Wide_Character (Flag13-Sem)
1459 -- Present in string literals, set if any wide character (i.e. character
1460 -- code outside the Wide_Character range) appears in the string. Used to
1461 -- implement pragma preference rules.
1463 -- Header_Size_Added (Flag11-Sem)
1464 -- Present in N_Attribute_Reference nodes, set only for attribute
1465 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1466 -- hidden list header used by the runtime finalization support has been
1467 -- added to the size of the prefix. The flag also prevents the infinite
1468 -- expansion of the same attribute in the said context.
1470 -- Hidden_By_Use_Clause (Elist4-Sem)
1471 -- An entity list present in use clauses that appear within
1472 -- instantiations. For the resolution of local entities, entities
1473 -- introduced by these use clauses have priority over global ones, and
1474 -- outer entities must be explicitly hidden/restored on exit.
1476 -- Implicit_With (Flag16-Sem)
1477 -- This flag is set in the N_With_Clause node that is implicitly
1478 -- generated for runtime units that are loaded by the expander, and also
1479 -- for package System, if it is loaded implicitly by a use of the
1480 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1481 -- as well.
1483 -- Implicit_With_From_Instantiation (Flag12-Sem)
1484 -- Set in N_With_Clause nodes from generic instantiations.
1486 -- Import_Interface_Present (Flag16-Sem)
1487 -- This flag is set in an Interface or Import pragma if a matching
1488 -- pragma of the other kind is also present. This is used to avoid
1489 -- generating some unwanted error messages.
1491 -- Includes_Infinities (Flag11-Sem)
1492 -- This flag is present in N_Range nodes. It is set for the range of
1493 -- unconstrained float types defined in Standard, which include not only
1494 -- the given range of values, but also legitimately can include infinite
1495 -- values. This flag is false for any float type for which an explicit
1496 -- range is given by the programmer, even if that range is identical to
1497 -- the range for Float.
1499 -- Incomplete_View (Node2-Sem)
1500 -- Present in full type declarations that are completions of incomplete
1501 -- type declarations. Denotes the corresponding incomplete type
1502 -- declaration. Used to simplify the retrieval of primitive operations
1503 -- that may be declared between the partial and the full view of an
1504 -- untagged type.
1506 -- Inherited_Discriminant (Flag13-Sem)
1507 -- This flag is present in N_Component_Association nodes. It indicates
1508 -- that a given component association in an extension aggregate is the
1509 -- value obtained from a constraint on an ancestor. Used to prevent
1510 -- double expansion when the aggregate has expansion delayed.
1512 -- Instance_Spec (Node5-Sem)
1513 -- This field is present in generic instantiation nodes, and also in
1514 -- formal package declaration nodes (formal package declarations are
1515 -- treated in a manner very similar to package instantiations). It points
1516 -- to the node for the spec of the instance, inserted as part of the
1517 -- semantic processing for instantiations in Sem_Ch12.
1519 -- Is_Accessibility_Actual (Flag13-Sem)
1520 -- Present in N_Parameter_Association nodes. True if the parameter is
1521 -- an extra actual that carries the accessibility level of the actual
1522 -- for an access parameter, in a function that dispatches on result and
1523 -- is called in a dispatching context. Used to prevent a formal/actual
1524 -- mismatch when the call is rewritten as a dispatching call.
1526 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1527 -- A flag set in a Block_Statement node to indicate that it is the
1528 -- expansion of an asynchronous entry call. Such a block needs cleanup
1529 -- handler to assure that the call is cancelled.
1531 -- Is_Boolean_Aspect (Flag16-Sem)
1532 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1533 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1535 -- Is_Checked (Flag11-Sem)
1536 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1537 -- assertion aspect or pragma, or check pragma for an assertion, that
1538 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1539 -- is set (they cannot both be set), then this means that the status of
1540 -- the pragma has been checked at the appropriate point and should not
1541 -- be further modified (in some cases these flags are copied when a
1542 -- pragma is rewritten).
1544 -- Is_Component_Left_Opnd (Flag13-Sem)
1545 -- Is_Component_Right_Opnd (Flag14-Sem)
1546 -- Present in concatenation nodes, to indicate that the corresponding
1547 -- operand is of the component type of the result. Used in resolving
1548 -- concatenation nodes in instances.
1550 -- Is_Delayed_Aspect (Flag14-Sem)
1551 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1552 -- come from aspect specifications, where the evaluation of the aspect
1553 -- must be delayed to the freeze point. This flag is also set True in
1554 -- the corresponding N_Aspect_Specification node.
1556 -- Is_Controlling_Actual (Flag16-Sem)
1557 -- This flag is set on in an expression that is a controlling argument in
1558 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1559 -- details of its use.
1561 -- Is_Disabled (Flag15-Sem)
1562 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1563 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1564 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1565 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1566 -- If this flag is set, the aspect or policy is not analyzed for semantic
1567 -- correctness, so any expressions etc will not be marked as analyzed.
1569 -- Is_Dynamic_Coextension (Flag18-Sem)
1570 -- Present in allocator nodes, to indicate that this is an allocator
1571 -- for an access discriminant of a dynamically allocated object. The
1572 -- coextension must be deallocated and finalized at the same time as
1573 -- the enclosing object.
1575 -- Is_Entry_Barrier_Function (Flag8-Sem)
1576 -- This flag is set in an N_Subprogram_Body node which is the expansion
1577 -- of an entry barrier from a protected entry body. It is used for the
1578 -- circuitry checking for incorrect use of Current_Task.
1580 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1581 -- This flag is set in an N_Function_Call node to indicate that the extra
1582 -- actuals to support a build-in-place style of call have been added to
1583 -- the call.
1585 -- Is_Finalization_Wrapper (Flag9-Sem);
1586 -- This flag is present in N_Block_Statement nodes. It is set when the
1587 -- block acts as a wrapper of a handled construct which has controlled
1588 -- objects. The wrapper prevents interference between exception handlers
1589 -- and At_End handlers.
1591 -- Is_Ignored (Flag9-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 specified a policy of IGNORE, DISABLE, or
1595 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1596 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1597 -- gives a policy for the aspect or pragma, then there are two cases. For
1598 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1599 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1600 -- ignored because of the absence of a -gnata switch. For any other
1601 -- aspects or pragmas, the flag is off. If this flag is set, the
1602 -- aspect/pragma is fully analyzed and checked for other syntactic
1603 -- and semantic errors, but it does not have any semantic effect.
1605 -- Is_In_Discriminant_Check (Flag11-Sem)
1606 -- This flag is present in a selected component, and is used to indicate
1607 -- that the reference occurs within a discriminant check. The
1608 -- significance is that optimizations based on assuming that the
1609 -- discriminant check has a correct value cannot be performed in this
1610 -- case (or the discriminant check may be optimized away).
1612 -- Is_Inherited (Flag4-Sem)
1613 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1614 -- to indicate that the pragma has been inherited from a parent context.
1616 -- Is_Machine_Number (Flag11-Sem)
1617 -- This flag is set in an N_Real_Literal node to indicate that the value
1618 -- is a machine number. This avoids some unnecessary cases of converting
1619 -- real literals to machine numbers.
1621 -- Is_Null_Loop (Flag16-Sem)
1622 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1623 -- can be determined to be null at compile time. This is used to remove
1624 -- the loop entirely at expansion time.
1626 -- Is_Overloaded (Flag5-Sem)
1627 -- A flag present in all expression nodes. Used temporarily during
1628 -- overloading determination. The setting of this flag is not relevant
1629 -- once overloading analysis is complete.
1631 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1632 -- A flag present only in N_Op_Expon nodes. It is set when the
1633 -- exponentiation is of the form 2 ** N, where the type of N is an
1634 -- unsigned integral subtype whose size does not exceed the size of
1635 -- Standard_Integer (i.e. a type that can be safely converted to
1636 -- Natural), and the exponentiation appears as the right operand of an
1637 -- integer multiplication or an integer division where the dividend is
1638 -- unsigned. It is also required that overflow checking is off for both
1639 -- the exponentiation and the multiply/divide node. If this set of
1640 -- conditions holds, and the flag is set, then the division or
1641 -- multiplication can be (and is) converted to a shift.
1643 -- Is_Prefixed_Call (Flag17-Sem)
1644 -- This flag is set in a selected component within a generic unit, if
1645 -- it resolves to a prefixed call to a primitive operation. The flag
1646 -- is used to prevent accidental overloadings in an instance, when a
1647 -- primitive operation and a private record component may be homographs.
1649 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1650 -- A flag set in a Subprogram_Body block to indicate that it is the
1651 -- implementation of a protected subprogram. Such a body needs cleanup
1652 -- handler to make sure that the associated protected object is unlocked
1653 -- when the subprogram completes.
1655 -- Is_Static_Coextension (Flag14-Sem)
1656 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1657 -- of an object allocated on the stack rather than the heap.
1659 -- Is_Static_Expression (Flag6-Sem)
1660 -- Indicates that an expression is a static expression according to the
1661 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1662 -- when Raises_Constraint_Error is also set. In practice almost all cases
1663 -- where a static expression is required do not allow an expression which
1664 -- raises Constraint_Error, so almost always, callers should call the
1665 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1666 -- spec of package Sem_Eval for full details on the use of this flag.
1668 -- Is_Subprogram_Descriptor (Flag16-Sem)
1669 -- Present in N_Object_Declaration, and set only for the object
1670 -- declaration generated for a subprogram descriptor in fast exception
1671 -- mode. See Exp_Ch11 for details of use.
1673 -- Is_Task_Allocation_Block (Flag6-Sem)
1674 -- A flag set in a Block_Statement node to indicate that it is the
1675 -- expansion of a task allocator, or the allocator of an object
1676 -- containing tasks. Such a block requires a cleanup handler to call
1677 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1678 -- allocated but not activated when the allocator completes abnormally.
1680 -- Is_Task_Master (Flag5-Sem)
1681 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1682 -- indicate that the construct is a task master (i.e. has declared tasks
1683 -- or declares an access to a task type).
1685 -- Itype (Node1-Sem)
1686 -- Used in N_Itype_Reference node to reference an itype for which it is
1687 -- important to ensure that it is defined. See description of this node
1688 -- for further details.
1690 -- Kill_Range_Check (Flag11-Sem)
1691 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1692 -- result should not be subjected to range checks. This is used for the
1693 -- implementation of Normalize_Scalars.
1695 -- Label_Construct (Node2-Sem)
1696 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1697 -- N_Block_Statement or N_Loop_Statement node to which the label
1698 -- declaration applies. This attribute is used both in the compiler and
1699 -- in the implementation of ASIS queries. The field is left empty for the
1700 -- special labels generated as part of expanding raise statements with a
1701 -- local exception handler.
1703 -- Library_Unit (Node4-Sem)
1704 -- In a stub node, Library_Unit points to the compilation unit node of
1705 -- the corresponding subunit.
1707 -- In a with clause node, Library_Unit points to the spec of the with'ed
1708 -- unit.
1710 -- In a compilation unit node, the usage depends on the unit type:
1712 -- For a library unit body, Library_Unit points to the compilation unit
1713 -- node of the corresponding spec, unless it's a subprogram body with
1714 -- Acts_As_Spec set, in which case it points to itself.
1716 -- For a spec, Library_Unit points to the compilation unit node of the
1717 -- corresponding body, if present. The body will be present if the spec
1718 -- is or contains generics that we needed to instantiate. Similarly, the
1719 -- body will be present if we needed it for inlining purposes. Thus, if
1720 -- we have a spec/body pair, both of which are present, they point to
1721 -- each other via Library_Unit.
1723 -- For a subunit, Library_Unit points to the compilation unit node of
1724 -- the parent body.
1725 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1726 -- to the corresponding spec for the parent body.
1728 -- Note that this field is not used to hold the parent pointer for child
1729 -- unit (which might in any case need to use it for some other purpose as
1730 -- described above). Instead for a child unit, implicit with's are
1731 -- generated for all parents.
1733 -- Local_Raise_Statements (Elist1)
1734 -- This field is present in exception handler nodes. It is set to
1735 -- No_Elist in the normal case. If there is at least one raise statement
1736 -- which can potentially be handled as a local raise, then this field
1737 -- points to a list of raise nodes, which are calls to a routine to raise
1738 -- an exception. These are raise nodes which can be optimized into gotos
1739 -- if the handler turns out to meet the conditions which permit this
1740 -- transformation. Note that this does NOT include instances of the
1741 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1742 -- handled by the back end (using the N_Push/N_Pop mechanism).
1744 -- Loop_Actions (List2-Sem)
1745 -- A list present in Component_Association nodes in array aggregates.
1746 -- Used to collect actions that must be executed within the loop because
1747 -- they may need to be evaluated anew each time through.
1749 -- Limited_View_Installed (Flag18-Sem)
1750 -- Present in With_Clauses and in package specifications. If set on
1751 -- with_clause, it indicates that this clause has created the current
1752 -- limited view of the designated package. On a package specification, it
1753 -- indicates that the limited view has already been created because the
1754 -- package is mentioned in a limited_with_clause in the closure of the
1755 -- unit being compiled.
1757 -- Local_Raise_Not_OK (Flag7-Sem)
1758 -- Present in N_Exception_Handler nodes. Set if the handler contains
1759 -- a construct (reraise statement, or call to subprogram in package
1760 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1761 -- for a local raise (one that could otherwise be converted to a goto).
1763 -- Must_Be_Byte_Aligned (Flag14-Sem)
1764 -- This flag is present in N_Attribute_Reference nodes. It can be set
1765 -- only for the Address and Unrestricted_Access attributes. If set it
1766 -- means that the object for which the address/access is given must be on
1767 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1768 -- of the object is to be made before taking the address (this copy is in
1769 -- the current scope on the stack frame). This is used for certain cases
1770 -- of code generated by the expander that passes parameters by address.
1772 -- The reason the copy is not made by the front end is that the back end
1773 -- has more information about type layout and may be able to (but is not
1774 -- guaranteed to) prevent making unnecessary copies.
1776 -- Must_Not_Freeze (Flag8-Sem)
1777 -- A flag present in all expression nodes. Normally expressions cause
1778 -- freezing as described in the RM. If this flag is set, then this is
1779 -- inhibited. This is used by the analyzer and expander to label nodes
1780 -- that are created by semantic analysis or expansion and which must not
1781 -- cause freezing even though they normally would. This flag is also
1782 -- present in an N_Subtype_Indication node, since we also use these in
1783 -- calls to Freeze_Expression.
1785 -- Next_Entity (Node2-Sem)
1786 -- Present in defining identifiers, defining character literals and
1787 -- defining operator symbols (i.e. in all entities). The entities of a
1788 -- scope are chained, and this field is used as the forward pointer for
1789 -- this list. See Einfo for further details.
1791 -- Next_Exit_Statement (Node3-Sem)
1792 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1793 -- chained (in reverse order of appearance) from the First_Exit_Statement
1794 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1795 -- the next entry on this chain (Empty = end of list).
1797 -- Next_Implicit_With (Node3-Sem)
1798 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1799 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1800 -- to prevent multiple with_clauses for the same unit in a given context.
1801 -- A postorder traversal of the tree whose nodes are units and whose
1802 -- links are with_clauses defines the order in which CodePeer must
1803 -- examine a compiled unit and its full context. This ordering ensures
1804 -- that any subprogram call is examined after the subprogram declaration
1805 -- has been seen.
1807 -- Next_Named_Actual (Node4-Sem)
1808 -- Present in parameter association nodes. Set during semantic analysis
1809 -- to point to the next named parameter, where parameters are ordered by
1810 -- declaration order (as opposed to the actual order in the call, which
1811 -- may be different due to named associations). Not that this field
1812 -- points to the explicit actual parameter itself, not to the
1813 -- N_Parameter_Association node (its parent).
1815 -- Next_Pragma (Node1-Sem)
1816 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1817 -- nodes. Currently used for two purposes:
1819 -- Create a list of linked Check_Policy pragmas. The head of this list
1820 -- is stored in Opt.Check_Policy_List (which has further details).
1822 -- Used by processing for Pre/Postcondition pragmas to store a list of
1823 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1824 -- details).
1826 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1827 -- the apply to the same construct. These are visible/private mode for
1828 -- a package spec and declarative/statement mode for package body.
1830 -- Next_Rep_Item (Node5-Sem)
1831 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1832 -- clauses, record rep clauses, aspect specification nodes. Used to link
1833 -- representation items that apply to an entity. See full description of
1834 -- First_Rep_Item field in Einfo for further details.
1836 -- Next_Use_Clause (Node3-Sem)
1837 -- While use clauses are active during semantic processing, they are
1838 -- chained from the scope stack entry, using Next_Use_Clause as a link
1839 -- pointer, with Empty marking the end of the list. The head pointer is
1840 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1841 -- processing (i.e. when Gigi sees the tree, the contents of this field
1842 -- is undefined and should not be read).
1844 -- No_Ctrl_Actions (Flag7-Sem)
1845 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1846 -- Adjust should take place on this assignment even though the RHS is
1847 -- controlled. Also indicates that the primitive _assign should not be
1848 -- used for a tagged assignment. This is used in init procs and aggregate
1849 -- expansions where the generated assignments are initializations, not
1850 -- real assignments.
1852 -- No_Elaboration_Check (Flag14-Sem)
1853 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1854 -- that no elaboration check is needed on the call, because it appears in
1855 -- the context of a local Suppress pragma. This is used on calls within
1856 -- task bodies, where the actual elaboration checks are applied after
1857 -- analysis, when the local scope stack is not present.
1859 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1860 -- Present in N_With_Clause nodes. Set if the with clause is on the
1861 -- package or subprogram spec where the main unit is the corresponding
1862 -- body, and no entities of the with'ed unit are referenced by the spec
1863 -- (an entity may still be referenced in the body, so this flag is used
1864 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1865 -- full details)
1867 -- No_Initialization (Flag13-Sem)
1868 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1869 -- object must not be initialized (by Initialize or call to an init
1870 -- proc). This is needed for controlled aggregates. When the Object
1871 -- declaration has an expression, this flag means that this expression
1872 -- should not be taken into account (needed for in place initialization
1873 -- with aggregates, and for object with an address clause, which are
1874 -- initialized with an assignment at freeze time).
1876 -- No_Minimize_Eliminate (Flag17-Sem)
1877 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1878 -- It is used to indicate that processing for extended overflow checking
1879 -- modes is not required (this is used to prevent infinite recursion).
1881 -- No_Truncation (Flag17-Sem)
1882 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1883 -- only if the RM_Size of the source is greater than the RM_Size of the
1884 -- target for scalar operands. Normally in such a case we truncate some
1885 -- higher order bits of the source, and then sign/zero extend the result
1886 -- to form the output value. But if this flag is set, then we do not do
1887 -- any truncation, so for example, if an 8 bit input is converted to 5
1888 -- bit result which is in fact stored in 8 bits, then the high order
1889 -- three bits of the target result will be copied from the source. This
1890 -- is used for properly setting out of range values for use by pragmas
1891 -- Initialize_Scalars and Normalize_Scalars.
1893 -- Non_Aliased_Prefix (Flag18-Sem)
1894 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1895 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1896 -- the case that is permitted for Unrestricted_Access except when the
1897 -- expected type is a thin pointer to unconstrained array. This flag is
1898 -- to assist in detecting this illegal use of Unrestricted_Access.
1900 -- Null_Excluding_Subtype (Flag16)
1901 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1902 -- indication carries a null-exclusion indicator, which is distinct from
1903 -- the null-exclusion indicator that may precede the access keyword.
1905 -- Original_Discriminant (Node2-Sem)
1906 -- Present in identifiers. Used in references to discriminants that
1907 -- appear in generic units. Because the names of the discriminants may be
1908 -- different in an instance, we use this field to recover the position of
1909 -- the discriminant in the original type, and replace it with the
1910 -- discriminant at the same position in the instantiated type.
1912 -- Original_Entity (Node2-Sem)
1913 -- Present in numeric literals. Used to denote the named number that has
1914 -- been constant-folded into the given literal. If literal is from
1915 -- source, or the result of some other constant-folding operation, then
1916 -- Original_Entity is empty. This field is needed to handle properly
1917 -- named numbers in generic units, where the Associated_Node field
1918 -- interferes with the Entity field, making it impossible to preserve the
1919 -- original entity at the point of instantiation (ASIS problem).
1921 -- Others_Discrete_Choices (List1-Sem)
1922 -- When a case statement or variant is analyzed, the semantic checks
1923 -- determine the actual list of choices that correspond to an others
1924 -- choice. This list is materialized for later use by the expander and
1925 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1926 -- this materialized list of choices, which is in standard format for a
1927 -- list of discrete choices, except that of course it cannot contain an
1928 -- N_Others_Choice entry.
1930 -- Parent_Spec (Node4-Sem)
1931 -- For a library unit that is a child unit spec (package or subprogram
1932 -- declaration, generic declaration or instantiation, or library level
1933 -- rename, this field points to the compilation unit node for the parent
1934 -- package specification. This field is Empty for library bodies (the
1935 -- parent spec in this case can be found from the corresponding spec).
1937 -- Premature_Use (Node5-Sem)
1938 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1939 -- error diagnostics: if there is a premature usage of an incomplete
1940 -- type, a subsequently generated error message indicates the position
1941 -- of its full declaration.
1943 -- Present_Expr (Uint3-Sem)
1944 -- Present in an N_Variant node. This has a meaningful value only after
1945 -- Gigi has back annotated the tree with representation information. At
1946 -- this point, it contains a reference to a gcc expression that depends
1947 -- on the values of one or more discriminants. Give a set of discriminant
1948 -- values, this expression evaluates to False (zero) if variant is not
1949 -- present, and True (non-zero) if it is present. See unit Repinfo for
1950 -- further details on gigi back annotation. This field is used during
1951 -- ASIS processing (data decomposition annex) to determine if a field is
1952 -- present or not.
1954 -- Print_In_Hex (Flag13-Sem)
1955 -- Set on an N_Integer_Literal node to indicate that the value should be
1956 -- printed in hexadecimal in the sprint listing. Has no effect on
1957 -- legality or semantics of program, only on the displayed output. This
1958 -- is used to clarify output from the packed array cases.
1960 -- Procedure_To_Call (Node2-Sem)
1961 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1962 -- and N_Extended_Return_Statement nodes. References the entity for the
1963 -- declaration of the procedure to be called to accomplish the required
1964 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1965 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1966 -- allocating the return value), and for the Deallocate procedure in the
1967 -- case of N_Free_Statement.
1969 -- Raises_Constraint_Error (Flag7-Sem)
1970 -- Set on an expression whose evaluation will definitely fail constraint
1971 -- error check. In the case of static expressions, this flag must be set
1972 -- accurately (and if it is set, the expression is typically illegal
1973 -- unless it appears as a non-elaborated branch of a short-circuit form).
1974 -- For a non-static expression, this flag may be set whenever an
1975 -- expression (e.g. an aggregate) is known to raise constraint error. If
1976 -- set, the expression definitely will raise CE if elaborated at runtime.
1977 -- If not set, the expression may or may not raise CE. In other words, on
1978 -- static expressions, the flag is set accurately, on non-static
1979 -- expressions it is set conservatively.
1981 -- Redundant_Use (Flag13-Sem)
1982 -- Present in nodes that can appear as an operand in a use clause or use
1983 -- type clause (identifiers, expanded names, attribute references). Set
1984 -- to indicate that a use is redundant (and therefore need not be undone
1985 -- on scope exit).
1987 -- Renaming_Exception (Node2-Sem)
1988 -- Present in N_Exception_Declaration node. Used to point back to the
1989 -- exception renaming for an exception declared within a subprogram.
1990 -- What happens is that an exception declared in a subprogram is moved
1991 -- to the library level with a unique name, and the original exception
1992 -- becomes a renaming. This link from the library level exception to the
1993 -- renaming declaration allows registering of the proper exception name.
1995 -- Return_Statement_Entity (Node5-Sem)
1996 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1997 -- Points to an E_Return_Statement representing the return statement.
1999 -- Return_Object_Declarations (List3)
2000 -- Present in N_Extended_Return_Statement. Points to a list initially
2001 -- containing a single N_Object_Declaration representing the return
2002 -- object. We use a list (instead of just a pointer to the object decl)
2003 -- because Analyze wants to insert extra actions on this list.
2005 -- Rounded_Result (Flag18-Sem)
2006 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
2007 -- Used in the fixed-point cases to indicate that the result must be
2008 -- rounded as a result of the use of the 'Round attribute. Also used for
2009 -- integer N_Op_Divide nodes to indicate that the result should be
2010 -- rounded to the nearest integer (breaking ties away from zero), rather
2011 -- than truncated towards zero as usual. These rounded integer operations
2012 -- are the result of expansion of rounded fixed-point divide, conversion
2013 -- and multiplication operations.
2015 -- SCIL_Entity (Node4-Sem)
2016 -- Present in SCIL nodes. References the specific tagged type associated
2017 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2018 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2019 -- generated as part of testing membership in T'Class, this is T; for an
2020 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2022 -- SCIL_Controlling_Tag (Node5-Sem)
2023 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2024 -- tag of a dispatching call. This is usually an N_Selected_Component
2025 -- node (for a _tag component), but may be an N_Object_Declaration or
2026 -- N_Parameter_Specification node in some cases (e.g., for a call to
2027 -- a classwide streaming operation or a call to an instance of
2028 -- Ada.Tags.Generic_Dispatching_Constructor).
2030 -- SCIL_Tag_Value (Node5-Sem)
2031 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2032 -- of the value that is being tested.
2034 -- SCIL_Target_Prim (Node2-Sem)
2035 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2036 -- operation named (statically) in a dispatching call.
2038 -- Scope (Node3-Sem)
2039 -- Present in defining identifiers, defining character literals and
2040 -- defining operator symbols (i.e. in all entities). The entities of a
2041 -- scope all use this field to reference the corresponding scope entity.
2042 -- See Einfo for further details.
2044 -- Shift_Count_OK (Flag4-Sem)
2045 -- A flag present in shift nodes to indicate that the shift count is
2046 -- known to be in range, i.e. is in the range from zero to word length
2047 -- minus one. If this flag is not set, then the shift count may be
2048 -- outside this range, i.e. larger than the word length, and the code
2049 -- must ensure that such shift counts give the appropriate result.
2051 -- Source_Type (Node1-Sem)
2052 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2053 -- source type entity for the unchecked conversion instantiation
2054 -- which gigi must do size validation for.
2056 -- Split_PPC (Flag17)
2057 -- When a Pre or Post aspect specification is processed, it is broken
2058 -- into AND THEN sections. The left most section has Split_PPC set to
2059 -- False, indicating that it is the original specification (e.g. for
2060 -- posting errors). For other sections, Split_PPC is set to True.
2061 -- This flag is set in both the N_Aspect_Specification node itself,
2062 -- and in the pragma which is generated from this node.
2064 -- Storage_Pool (Node1-Sem)
2065 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2066 -- and N_Extended_Return_Statement nodes. References the entity for the
2067 -- storage pool to be used for the allocate or free call or for the
2068 -- allocation of the returned value from function. Empty indicates that
2069 -- the global default pool is to be used. Note that in the case
2070 -- of a return statement, this field is set only if the function returns
2071 -- value of a type whose size is not known at compile time on the
2072 -- secondary stack.
2074 -- Suppress_Assignment_Checks (Flag18-Sem)
2075 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2076 -- and range checks in cases where the generated code knows that the
2077 -- value being assigned is in range and satisfies any predicate. Also
2078 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2079 -- checks on the initializing value. In assignment statements it also
2080 -- suppresses access checks in the generated code for out- and in-out
2081 -- parameters in entry calls.
2083 -- Suppress_Loop_Warnings (Flag17-Sem)
2084 -- Used in N_Loop_Statement node to indicate that warnings within the
2085 -- body of the loop should be suppressed. This is set when the range
2086 -- of a FOR loop is known to be null, or is probably null (loop would
2087 -- only execute if invalid values are present).
2089 -- Target_Type (Node2-Sem)
2090 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2091 -- type entity for the unchecked conversion instantiation which gigi must
2092 -- do size validation for.
2094 -- Then_Actions (List3-Sem)
2095 -- This field is present in if expression nodes. During code expansion
2096 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2097 -- at an appropriate place in the tree to get elaborated at the right
2098 -- time. For if expressions, we have to be sure that the actions for
2099 -- for the Then branch are only elaborated if the condition is True.
2100 -- The Then_Actions field is used as a temporary parking place for
2101 -- these actions. The final tree is always rewritten to eliminate the
2102 -- need for this field, so in the tree passed to Gigi, this field is
2103 -- always set to No_List.
2105 -- Treat_Fixed_As_Integer (Flag14-Sem)
2106 -- This flag appears in operator nodes for divide, multiply, mod and rem
2107 -- on fixed-point operands. It indicates that the operands are to be
2108 -- treated as integer values, ignoring small values. This flag is only
2109 -- set as a result of expansion of fixed-point operations. Typically a
2110 -- fixed-point multiplication in the source generates subsidiary
2111 -- multiplication and division operations that work with the underlying
2112 -- integer values and have this flag set. Note that this flag is not
2113 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2114 -- in these cases it is always the case that fixed is treated as integer.
2115 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2116 -- leave such nodes alone, and whoever makes them must set the correct
2117 -- Etype value.
2119 -- TSS_Elist (Elist3-Sem)
2120 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2121 -- entries for each TSS (type support subprogram) associated with the
2122 -- frozen type. The elements of the list are the entities for the
2123 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2124 -- if there are no type support subprograms for the type or if the freeze
2125 -- node is not for a type.
2127 -- Uneval_Old_Accept (Flag7-Sem)
2128 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2129 -- (accept) at the point where the pragma is encountered (including the
2130 -- case of a pragma generated from an aspect specification). It is this
2131 -- setting that is relevant, rather than the setting at the point where
2132 -- a contract is finally analyzed after the delay till the freeze point.
2134 -- Uneval_Old_Warn (Flag18-Sem)
2135 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2136 -- (warn) at the point where the pragma is encountered (including the
2137 -- case of a pragma generated from an aspect specification). It is this
2138 -- setting that is relevant, rather than the setting at the point where
2139 -- a contract is finally analyzed after the delay till the freeze point.
2141 -- Unreferenced_In_Spec (Flag7-Sem)
2142 -- Present in N_With_Clause nodes. Set if the with clause is on the
2143 -- package or subprogram spec where the main unit is the corresponding
2144 -- body, and is not referenced by the spec (it may still be referenced by
2145 -- the body, so this flag is used to generate the proper message (see
2146 -- Sem_Util.Check_Unused_Withs for details)
2148 -- Uninitialized_Variable (Node3-Sem)
2149 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2150 -- Extension_Declarations. Indicates that a variable in a generic unit
2151 -- whose type is a formal private or derived type is read without being
2152 -- initialized. Used to warn if the corresponding actual type is not
2153 -- a fully initialized type.
2155 -- Used_Operations (Elist5-Sem)
2156 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2157 -- are made potentially use-visible by the clause. Simplifies processing
2158 -- on exit from the scope of the use_type_clause, in particular in the
2159 -- case of Use_All_Type, when those operations several scopes.
2161 -- Was_Originally_Stub (Flag13-Sem)
2162 -- This flag is set in the node for a proper body that replaces stub.
2163 -- During the analysis procedure, stubs in some situations get rewritten
2164 -- by the corresponding bodies, and we set this flag to remember that
2165 -- this happened. Note that it is not good enough to rely on the use of
2166 -- Original_Node here because of the case of nested instantiations where
2167 -- the substituted node can be copied.
2169 -- Withed_Body (Node1-Sem)
2170 -- Present in N_With_Clause nodes. Set if the unit in whose context
2171 -- the with_clause appears instantiates a generic contained in the
2172 -- library unit of the with_clause and as a result loads its body.
2173 -- Used for a more precise unit traversal for CodePeer.
2175 --------------------------------------------------
2176 -- Note on Use of End_Label and End_Span Fields --
2177 --------------------------------------------------
2179 -- Several constructs have end lines:
2181 -- Loop Statement end loop [loop_IDENTIFIER];
2182 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2183 -- Task Definition end [task_IDENTIFIER]
2184 -- Protected Definition end [protected_IDENTIFIER]
2185 -- Protected Body end [protected_IDENTIFIER]
2187 -- Block Statement end [block_IDENTIFIER];
2188 -- Subprogram Body end [DESIGNATOR];
2189 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2190 -- Task Body end [task_IDENTIFIER];
2191 -- Accept Statement end [entry_IDENTIFIER]];
2192 -- Entry Body end [entry_IDENTIFIER];
2194 -- If Statement end if;
2195 -- Case Statement end case;
2197 -- Record Definition end record;
2198 -- Enumeration Definition );
2200 -- The End_Label and End_Span fields are used to mark the locations of
2201 -- these lines, and also keep track of the label in the case where a label
2202 -- is present.
2204 -- For the first group above, the End_Label field of the corresponding node
2205 -- is used to point to the label identifier. In the case where there is no
2206 -- label in the source, the parser supplies a dummy identifier (with
2207 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2208 -- marks the location of the token following the END token.
2210 -- For the second group, the use of End_Label is similar, but the End_Label
2211 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2212 -- simply because in some cases there is no room in the parent node.
2214 -- For the third group, there is never any label, and instead of using
2215 -- End_Label, we use the End_Span field which gives the location of the
2216 -- token following END, relative to the starting Sloc of the construct,
2217 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2218 -- following the End_Label.
2220 -- The record definition case is handled specially, we treat it as though
2221 -- it required an optional label which is never present, and so the parser
2222 -- always builds a dummy identifier with Comes From Source set False. The
2223 -- reason we do this, rather than using End_Span in this case, is that we
2224 -- want to generate a cross-ref entry for the end of a record, since it
2225 -- represents a scope for name declaration purposes.
2227 -- The enumeration definition case is handled in an exactly similar manner,
2228 -- building a dummy identifier to get a cross-reference.
2230 -- Note: the reason we store the difference as a Uint, instead of storing
2231 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2232 -- distinguished from other types of values, and we count on all general
2233 -- use fields being self describing. To make things easier for clients,
2234 -- note that we provide function End_Location, and procedure
2235 -- Set_End_Location to allow access to the logical value (which is the
2236 -- Source_Ptr value for the end token).
2238 ---------------------
2239 -- Syntactic Nodes --
2240 ---------------------
2242 ---------------------
2243 -- 2.3 Identifier --
2244 ---------------------
2246 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2247 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2249 -- An IDENTIFIER shall not be a reserved word
2251 -- In the Ada grammar identifiers are the bottom level tokens which have
2252 -- very few semantics. Actual program identifiers are direct names. If
2253 -- we were being 100% honest with the grammar, then we would have a node
2254 -- called N_Direct_Name which would point to an identifier. However,
2255 -- that's too many extra nodes, so we just use the N_Identifier node
2256 -- directly as a direct name, and it contains the expression fields and
2257 -- Entity field that correspond to its use as a direct name. In those
2258 -- few cases where identifiers appear in contexts where they are not
2259 -- direct names (pragmas, pragma argument associations, attribute
2260 -- references and attribute definition clauses), the Chars field of the
2261 -- node contains the Name_Id for the identifier name.
2263 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2264 -- cases. First, an incorrect use of a reserved word as an identifier is
2265 -- diagnosed and then treated as a normal identifier. Second, an
2266 -- attribute designator of the form of a reserved word (access, delta,
2267 -- digits, range) is treated as an identifier.
2269 -- Note: The set of letters that is permitted in an identifier depends
2270 -- on the character set in use. See package Csets for full details.
2272 -- N_Identifier
2273 -- Sloc points to identifier
2274 -- Chars (Name1) contains the Name_Id for the identifier
2275 -- Entity (Node4-Sem)
2276 -- Associated_Node (Node4-Sem)
2277 -- Original_Discriminant (Node2-Sem)
2278 -- Redundant_Use (Flag13-Sem)
2279 -- Atomic_Sync_Required (Flag14-Sem)
2280 -- Has_Private_View (Flag11-Sem) (set in generic units)
2281 -- plus fields for expression
2283 --------------------------
2284 -- 2.4 Numeric Literal --
2285 --------------------------
2287 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2289 ----------------------------
2290 -- 2.4.1 Decimal Literal --
2291 ----------------------------
2293 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2295 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2297 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2299 -- Decimal literals appear in the tree as either integer literal nodes
2300 -- or real literal nodes, depending on whether a period is present.
2302 -- Note: literal nodes appear as a result of direct use of literals
2303 -- in the source program, and also as the result of evaluating
2304 -- expressions at compile time. In the latter case, it is possible
2305 -- to construct real literals that have no syntactic representation
2306 -- using the standard literal format. Such literals are listed by
2307 -- Sprint using the notation [numerator / denominator].
2309 -- Note: the value of an integer literal node created by the front end
2310 -- is never outside the range of values of the base type. However, it
2311 -- can be the case that the created value is outside the range of the
2312 -- particular subtype. This happens in the case of integer overflows
2313 -- with checks suppressed.
2315 -- N_Integer_Literal
2316 -- Sloc points to literal
2317 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2318 -- has been constant-folded into its literal value.
2319 -- Intval (Uint3) contains integer value of literal
2320 -- plus fields for expression
2321 -- Print_In_Hex (Flag13-Sem)
2323 -- N_Real_Literal
2324 -- Sloc points to literal
2325 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2326 -- has been constant-folded into its literal value.
2327 -- Realval (Ureal3) contains real value of literal
2328 -- Corresponding_Integer_Value (Uint4-Sem)
2329 -- Is_Machine_Number (Flag11-Sem)
2330 -- plus fields for expression
2332 --------------------------
2333 -- 2.4.2 Based Literal --
2334 --------------------------
2336 -- BASED_LITERAL ::=
2337 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2339 -- BASE ::= NUMERAL
2341 -- BASED_NUMERAL ::=
2342 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2344 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2346 -- Based literals appear in the tree as either integer literal nodes
2347 -- or real literal nodes, depending on whether a period is present.
2349 ----------------------------
2350 -- 2.5 Character Literal --
2351 ----------------------------
2353 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2355 -- N_Character_Literal
2356 -- Sloc points to literal
2357 -- Chars (Name1) contains the Name_Id for the identifier
2358 -- Char_Literal_Value (Uint2) contains the literal value
2359 -- Entity (Node4-Sem)
2360 -- Associated_Node (Node4-Sem)
2361 -- Has_Private_View (Flag11-Sem) set in generic units.
2362 -- plus fields for expression
2364 -- Note: the Entity field will be missing (set to Empty) for character
2365 -- literals whose type is Standard.Wide_Character or Standard.Character
2366 -- or a type derived from one of these two. In this case the character
2367 -- literal stands for its own coding. The reason we take this irregular
2368 -- short cut is to avoid the need to build lots of junk defining
2369 -- character literal nodes.
2371 -------------------------
2372 -- 2.6 String Literal --
2373 -------------------------
2375 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2377 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2378 -- single GRAPHIC_CHARACTER other than a quotation mark.
2380 -- Is_Folded_In_Parser is True if the parser created this literal by
2381 -- folding a sequence of "&" operators. For example, if the source code
2382 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2383 -- is set. This flag is needed because the parser doesn't know about
2384 -- visibility, so the folded result might be wrong, and semantic
2385 -- analysis needs to check for that.
2387 -- N_String_Literal
2388 -- Sloc points to literal
2389 -- Strval (Str3) contains Id of string value
2390 -- Has_Wide_Character (Flag11-Sem)
2391 -- Has_Wide_Wide_Character (Flag13-Sem)
2392 -- Is_Folded_In_Parser (Flag4)
2393 -- plus fields for expression
2395 ------------------
2396 -- 2.7 Comment --
2397 ------------------
2399 -- A COMMENT starts with two adjacent hyphens and extends up to the
2400 -- end of the line. A COMMENT may appear on any line of a program.
2402 -- Comments are skipped by the scanner and do not appear in the tree.
2403 -- It is possible to reconstruct the position of comments with respect
2404 -- to the elements of the tree by using the source position (Sloc)
2405 -- pointers that appear in every tree node.
2407 -----------------
2408 -- 2.8 Pragma --
2409 -----------------
2411 -- PRAGMA ::= pragma IDENTIFIER
2412 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2414 -- Note that a pragma may appear in the tree anywhere a declaration
2415 -- or a statement may appear, as well as in some other situations
2416 -- which are explicitly documented.
2418 -- N_Pragma
2419 -- Sloc points to PRAGMA
2420 -- Next_Pragma (Node1-Sem)
2421 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2422 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2423 -- Pragma_Identifier (Node4)
2424 -- Next_Rep_Item (Node5-Sem)
2425 -- Class_Present (Flag6) set if from Aspect with 'Class
2426 -- From_Aspect_Specification (Flag13-Sem)
2427 -- Import_Interface_Present (Flag16-Sem)
2428 -- Is_Checked (Flag11-Sem)
2429 -- Is_Delayed_Aspect (Flag14-Sem)
2430 -- Is_Disabled (Flag15-Sem)
2431 -- Is_Ignored (Flag9-Sem)
2432 -- Is_Inherited (Flag4-Sem)
2433 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2434 -- Uneval_Old_Accept (Flag7-Sem)
2435 -- Uneval_Old_Warn (Flag18-Sem)
2437 -- Note: we should have a section on what pragmas are passed on to
2438 -- the back end to be processed. This section should note that pragma
2439 -- Psect_Object is always converted to Common_Object, but there are
2440 -- undoubtedly many other similar notes required ???
2442 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2443 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2445 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2446 -- aspect name, as does the Pragma_Identifier. In this case if the
2447 -- pragma has a local name argument (such as pragma Inline), it is
2448 -- resolved to point to the specific entity affected by the pragma.
2450 --------------------------------------
2451 -- 2.8 Pragma Argument Association --
2452 --------------------------------------
2454 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2455 -- [pragma_argument_IDENTIFIER =>] NAME
2456 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2458 -- In Ada 2012, there are two more possibilities:
2460 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2461 -- [pragma_argument_ASPECT_MARK =>] NAME
2462 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2464 -- where the interesting allowed cases (which do not fit the syntax of
2465 -- the first alternative above) are
2467 -- ASPECT_MARK => Pre'Class |
2468 -- Post'Class |
2469 -- Type_Invariant'Class |
2470 -- Invariant'Class
2472 -- We allow this special usage in all Ada modes, but it would be a
2473 -- pain to allow these aspects to pervade the pragma syntax, and the
2474 -- representation of pragma nodes internally. So what we do is to
2475 -- replace these ASPECT_MARK forms with identifiers whose name is one
2476 -- of the special internal names _Pre, _Post or _Type_Invariant.
2478 -- We do a similar replacement of these Aspect_Mark forms in the
2479 -- Expression of a pragma argument association for the cases of
2480 -- the first arguments of any Check pragmas and Check_Policy pragmas
2482 -- N_Pragma_Argument_Association
2483 -- Sloc points to first token in association
2484 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2485 -- Expression (Node3)
2487 ------------------------
2488 -- 2.9 Reserved Word --
2489 ------------------------
2491 -- Reserved words are parsed by the scanner, and returned as the
2492 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2494 ----------------------------
2495 -- 3.1 Basic Declaration --
2496 ----------------------------
2498 -- BASIC_DECLARATION ::=
2499 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2500 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2501 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2502 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2503 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2504 -- | GENERIC_INSTANTIATION
2506 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2507 -- see further description in section on semantic nodes.
2509 -- Also, in the tree that is constructed, a pragma may appear
2510 -- anywhere that a declaration may appear.
2512 ------------------------------
2513 -- 3.1 Defining Identifier --
2514 ------------------------------
2516 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2518 -- A defining identifier is an entity, which has additional fields
2519 -- depending on the setting of the Ekind field. These additional
2520 -- fields are defined (and access subprograms declared) in package
2521 -- Einfo.
2523 -- Note: N_Defining_Identifier is an extended node whose fields are
2524 -- deliberate layed out to match the layout of fields in an ordinary
2525 -- N_Identifier node allowing for easy alteration of an identifier
2526 -- node into a defining identifier node. For details, see procedure
2527 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2529 -- N_Defining_Identifier
2530 -- Sloc points to identifier
2531 -- Chars (Name1) contains the Name_Id for the identifier
2532 -- Next_Entity (Node2-Sem)
2533 -- Scope (Node3-Sem)
2534 -- Etype (Node5-Sem)
2536 -----------------------------
2537 -- 3.2.1 Type Declaration --
2538 -----------------------------
2540 -- TYPE_DECLARATION ::=
2541 -- FULL_TYPE_DECLARATION
2542 -- | INCOMPLETE_TYPE_DECLARATION
2543 -- | PRIVATE_TYPE_DECLARATION
2544 -- | PRIVATE_EXTENSION_DECLARATION
2546 ----------------------------------
2547 -- 3.2.1 Full Type Declaration --
2548 ----------------------------------
2550 -- FULL_TYPE_DECLARATION ::=
2551 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2552 -- is TYPE_DEFINITION
2553 -- [ASPECT_SPECIFICATIONS];
2554 -- | TASK_TYPE_DECLARATION
2555 -- | PROTECTED_TYPE_DECLARATION
2557 -- The full type declaration node is used only for the first case. The
2558 -- second case (concurrent type declaration), is represented directly
2559 -- by a task type declaration or a protected type declaration.
2561 -- N_Full_Type_Declaration
2562 -- Sloc points to TYPE
2563 -- Defining_Identifier (Node1)
2564 -- Incomplete_View (Node2-Sem)
2565 -- Discriminant_Specifications (List4) (set to No_List if none)
2566 -- Type_Definition (Node3)
2567 -- Discr_Check_Funcs_Built (Flag11-Sem)
2569 ----------------------------
2570 -- 3.2.1 Type Definition --
2571 ----------------------------
2573 -- TYPE_DEFINITION ::=
2574 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2575 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2576 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2577 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2579 --------------------------------
2580 -- 3.2.2 Subtype Declaration --
2581 --------------------------------
2583 -- SUBTYPE_DECLARATION ::=
2584 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2585 -- [ASPECT_SPECIFICATIONS];
2587 -- The subtype indication field is set to Empty for subtypes
2588 -- declared in package Standard (Positive, Natural).
2590 -- N_Subtype_Declaration
2591 -- Sloc points to SUBTYPE
2592 -- Defining_Identifier (Node1)
2593 -- Null_Exclusion_Present (Flag11)
2594 -- Subtype_Indication (Node5)
2595 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2596 -- Exception_Junk (Flag8-Sem)
2597 -- Has_Dynamic_Range_Check (Flag12-Sem)
2599 -------------------------------
2600 -- 3.2.2 Subtype Indication --
2601 -------------------------------
2603 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2605 -- Note: if no constraint is present, the subtype indication appears
2606 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2607 -- node is used only if a constraint is present.
2609 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2610 -- with the null-exclusion part (see AI-231), we had to introduce a new
2611 -- attribute in all the parents of subtype_indication nodes to indicate
2612 -- if the null-exclusion is present.
2614 -- Note: the reason that this node has expression fields is that a
2615 -- subtype indication can appear as an operand of a membership test.
2617 -- N_Subtype_Indication
2618 -- Sloc points to first token of subtype mark
2619 -- Subtype_Mark (Node4)
2620 -- Constraint (Node3)
2621 -- Etype (Node5-Sem)
2622 -- Must_Not_Freeze (Flag8-Sem)
2624 -- Note: Depending on context, the Etype is either the entity of the
2625 -- Subtype_Mark field, or it is an itype constructed to reify the
2626 -- subtype indication. In particular, such itypes are created for a
2627 -- subtype indication that appears in an array type declaration. This
2628 -- simplifies constraint checking in indexed components.
2630 -- For subtype indications that appear in scalar type and subtype
2631 -- declarations, the Etype is the entity of the subtype mark.
2633 -------------------------
2634 -- 3.2.2 Subtype Mark --
2635 -------------------------
2637 -- SUBTYPE_MARK ::= subtype_NAME
2639 -----------------------
2640 -- 3.2.2 Constraint --
2641 -----------------------
2643 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2645 ------------------------------
2646 -- 3.2.2 Scalar Constraint --
2647 ------------------------------
2649 -- SCALAR_CONSTRAINT ::=
2650 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2652 ---------------------------------
2653 -- 3.2.2 Composite Constraint --
2654 ---------------------------------
2656 -- COMPOSITE_CONSTRAINT ::=
2657 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2659 -------------------------------
2660 -- 3.3.1 Object Declaration --
2661 -------------------------------
2663 -- OBJECT_DECLARATION ::=
2664 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2665 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2666 -- [ASPECT_SPECIFICATIONS];
2667 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2668 -- ACCESS_DEFINITION [:= EXPRESSION]
2669 -- [ASPECT_SPECIFICATIONS];
2670 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2671 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2672 -- [ASPECT_SPECIFICATIONS];
2673 -- | SINGLE_TASK_DECLARATION
2674 -- | SINGLE_PROTECTED_DECLARATION
2676 -- Note: aliased is not permitted in Ada 83 mode
2678 -- The N_Object_Declaration node is only for the first two cases.
2679 -- Single task declaration is handled by P_Task (9.1)
2680 -- Single protected declaration is handled by P_protected (9.5)
2682 -- Although the syntax allows multiple identifiers in the list, the
2683 -- semantics is as though successive declarations were given with
2684 -- identical type definition and expression components. To simplify
2685 -- semantic processing, the parser represents a multiple declaration
2686 -- case as a sequence of single declarations, using the More_Ids and
2687 -- Prev_Ids flags to preserve the original source form as described
2688 -- in the section on "Handling of Defining Identifier Lists".
2690 -- The flag Has_Init_Expression is set if an initializing expression
2691 -- is present. Normally it is set if and only if Expression contains
2692 -- a non-empty value, but there is an exception to this. When the
2693 -- initializing expression is an aggregate which requires explicit
2694 -- assignments, the Expression field gets set to Empty, but this flag
2695 -- is still set, so we don't forget we had an initializing expression.
2697 -- Note: if a range check is required for the initialization
2698 -- expression then the Do_Range_Check flag is set in the Expression,
2699 -- with the check being done against the type given by the object
2700 -- definition, which is also the Etype of the defining identifier.
2702 -- Note: the contents of the Expression field must be ignored (i.e.
2703 -- treated as though it were Empty) if No_Initialization is set True.
2705 -- Note: the back end places some restrictions on the form of the
2706 -- Expression field. If the object being declared is Atomic, then
2707 -- the Expression may not have the form of an aggregate (since this
2708 -- might cause the back end to generate separate assignments). In this
2709 -- case the front end must generate an extra temporary and initialize
2710 -- this temporary as required (the temporary itself is not atomic).
2712 -- Note: there is not node kind for object definition. Instead, the
2713 -- corresponding field holds a subtype indication, an array type
2714 -- definition, or (Ada 2005, AI-406) an access definition.
2716 -- N_Object_Declaration
2717 -- Sloc points to first identifier
2718 -- Defining_Identifier (Node1)
2719 -- Aliased_Present (Flag4)
2720 -- Constant_Present (Flag17) set if CONSTANT appears
2721 -- Null_Exclusion_Present (Flag11)
2722 -- Object_Definition (Node4) subtype indic./array type def./access def.
2723 -- Expression (Node3) (set to Empty if not present)
2724 -- Handler_List_Entry (Node2-Sem)
2725 -- Corresponding_Generic_Association (Node5-Sem)
2726 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2727 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2728 -- No_Initialization (Flag13-Sem)
2729 -- Assignment_OK (Flag15-Sem)
2730 -- Exception_Junk (Flag8-Sem)
2731 -- Is_Subprogram_Descriptor (Flag16-Sem)
2732 -- Has_Init_Expression (Flag14)
2733 -- Suppress_Assignment_Checks (Flag18-Sem)
2735 -------------------------------------
2736 -- 3.3.1 Defining Identifier List --
2737 -------------------------------------
2739 -- DEFINING_IDENTIFIER_LIST ::=
2740 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2742 -------------------------------
2743 -- 3.3.2 Number Declaration --
2744 -------------------------------
2746 -- NUMBER_DECLARATION ::=
2747 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2749 -- Although the syntax allows multiple identifiers in the list, the
2750 -- semantics is as though successive declarations were given with
2751 -- identical expressions. To simplify semantic processing, the parser
2752 -- represents a multiple declaration case as a sequence of single
2753 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2754 -- the original source form as described in the section on "Handling
2755 -- of Defining Identifier Lists".
2757 -- N_Number_Declaration
2758 -- Sloc points to first identifier
2759 -- Defining_Identifier (Node1)
2760 -- Expression (Node3)
2761 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2762 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2764 ----------------------------------
2765 -- 3.4 Derived Type Definition --
2766 ----------------------------------
2768 -- DERIVED_TYPE_DEFINITION ::=
2769 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2770 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2772 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2773 -- in Ada 83 mode
2775 -- Note: a record extension part is required if ABSTRACT is present
2777 -- N_Derived_Type_Definition
2778 -- Sloc points to NEW
2779 -- Abstract_Present (Flag4)
2780 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2781 -- Subtype_Indication (Node5)
2782 -- Record_Extension_Part (Node3) (set to Empty if not present)
2783 -- Limited_Present (Flag17)
2784 -- Task_Present (Flag5) set in task interfaces
2785 -- Protected_Present (Flag6) set in protected interfaces
2786 -- Synchronized_Present (Flag7) set in interfaces
2787 -- Interface_List (List2) (set to No_List if none)
2788 -- Interface_Present (Flag16) set in abstract interfaces
2790 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2791 -- Interface_List, and Interface_Present are used for abstract
2792 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2794 ---------------------------
2795 -- 3.5 Range Constraint --
2796 ---------------------------
2798 -- RANGE_CONSTRAINT ::= range RANGE
2800 -- N_Range_Constraint
2801 -- Sloc points to RANGE
2802 -- Range_Expression (Node4)
2804 ----------------
2805 -- 3.5 Range --
2806 ----------------
2808 -- RANGE ::=
2809 -- RANGE_ATTRIBUTE_REFERENCE
2810 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2812 -- Note: the case of a range given as a range attribute reference
2813 -- appears directly in the tree as an attribute reference.
2815 -- Note: the field name for a reference to a range is Range_Expression
2816 -- rather than Range, because range is a reserved keyword in Ada.
2818 -- Note: the reason that this node has expression fields is that a
2819 -- range can appear as an operand of a membership test. The Etype
2820 -- field is the type of the range (we do NOT construct an implicit
2821 -- subtype to represent the range exactly).
2823 -- N_Range
2824 -- Sloc points to ..
2825 -- Low_Bound (Node1)
2826 -- High_Bound (Node2)
2827 -- Includes_Infinities (Flag11)
2828 -- plus fields for expression
2830 -- Note: if the range appears in a context, such as a subtype
2831 -- declaration, where range checks are required on one or both of
2832 -- the expression fields, then type conversion nodes are inserted
2833 -- to represent the required checks.
2835 ----------------------------------------
2836 -- 3.5.1 Enumeration Type Definition --
2837 ----------------------------------------
2839 -- ENUMERATION_TYPE_DEFINITION ::=
2840 -- (ENUMERATION_LITERAL_SPECIFICATION
2841 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2843 -- Note: the Literals field in the node described below is null for
2844 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2845 -- which special processing handles these types as special cases.
2847 -- N_Enumeration_Type_Definition
2848 -- Sloc points to left parenthesis
2849 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2850 -- End_Label (Node4) (set to Empty if internally generated record)
2852 ----------------------------------------------
2853 -- 3.5.1 Enumeration Literal Specification --
2854 ----------------------------------------------
2856 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2857 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2859 ---------------------------------------
2860 -- 3.5.1 Defining Character Literal --
2861 ---------------------------------------
2863 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2865 -- A defining character literal is an entity, which has additional
2866 -- fields depending on the setting of the Ekind field. These
2867 -- additional fields are defined (and access subprograms declared)
2868 -- in package Einfo.
2870 -- Note: N_Defining_Character_Literal is an extended node whose fields
2871 -- are deliberate layed out to match the layout of fields in an ordinary
2872 -- N_Character_Literal node allowing for easy alteration of a character
2873 -- literal node into a defining character literal node. For details, see
2874 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2876 -- N_Defining_Character_Literal
2877 -- Sloc points to literal
2878 -- Chars (Name1) contains the Name_Id for the identifier
2879 -- Next_Entity (Node2-Sem)
2880 -- Scope (Node3-Sem)
2881 -- Etype (Node5-Sem)
2883 ------------------------------------
2884 -- 3.5.4 Integer Type Definition --
2885 ------------------------------------
2887 -- Note: there is an error in this rule in the latest version of the
2888 -- grammar, so we have retained the old rule pending clarification.
2890 -- INTEGER_TYPE_DEFINITION ::=
2891 -- SIGNED_INTEGER_TYPE_DEFINITION
2892 -- | MODULAR_TYPE_DEFINITION
2894 -------------------------------------------
2895 -- 3.5.4 Signed Integer Type Definition --
2896 -------------------------------------------
2898 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2899 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2901 -- Note: the Low_Bound and High_Bound fields are set to Empty
2902 -- for integer types defined in package Standard.
2904 -- N_Signed_Integer_Type_Definition
2905 -- Sloc points to RANGE
2906 -- Low_Bound (Node1)
2907 -- High_Bound (Node2)
2909 ------------------------------------
2910 -- 3.5.4 Modular Type Definition --
2911 ------------------------------------
2913 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2915 -- N_Modular_Type_Definition
2916 -- Sloc points to MOD
2917 -- Expression (Node3)
2919 ---------------------------------
2920 -- 3.5.6 Real Type Definition --
2921 ---------------------------------
2923 -- REAL_TYPE_DEFINITION ::=
2924 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2926 --------------------------------------
2927 -- 3.5.7 Floating Point Definition --
2928 --------------------------------------
2930 -- FLOATING_POINT_DEFINITION ::=
2931 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2933 -- Note: The Digits_Expression and Real_Range_Specifications fields
2934 -- are set to Empty for floating-point types declared in Standard.
2936 -- N_Floating_Point_Definition
2937 -- Sloc points to DIGITS
2938 -- Digits_Expression (Node2)
2939 -- Real_Range_Specification (Node4) (set to Empty if not present)
2941 -------------------------------------
2942 -- 3.5.7 Real Range Specification --
2943 -------------------------------------
2945 -- REAL_RANGE_SPECIFICATION ::=
2946 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2948 -- N_Real_Range_Specification
2949 -- Sloc points to RANGE
2950 -- Low_Bound (Node1)
2951 -- High_Bound (Node2)
2953 -----------------------------------
2954 -- 3.5.9 Fixed Point Definition --
2955 -----------------------------------
2957 -- FIXED_POINT_DEFINITION ::=
2958 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2960 --------------------------------------------
2961 -- 3.5.9 Ordinary Fixed Point Definition --
2962 --------------------------------------------
2964 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2965 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2967 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2969 -- N_Ordinary_Fixed_Point_Definition
2970 -- Sloc points to DELTA
2971 -- Delta_Expression (Node3)
2972 -- Real_Range_Specification (Node4)
2974 -------------------------------------------
2975 -- 3.5.9 Decimal Fixed Point Definition --
2976 -------------------------------------------
2978 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2979 -- delta static_EXPRESSION
2980 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2982 -- Note: decimal types are not permitted in Ada 83 mode
2984 -- N_Decimal_Fixed_Point_Definition
2985 -- Sloc points to DELTA
2986 -- Delta_Expression (Node3)
2987 -- Digits_Expression (Node2)
2988 -- Real_Range_Specification (Node4) (set to Empty if not present)
2990 ------------------------------
2991 -- 3.5.9 Digits Constraint --
2992 ------------------------------
2994 -- DIGITS_CONSTRAINT ::=
2995 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2997 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2998 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3000 -- N_Digits_Constraint
3001 -- Sloc points to DIGITS
3002 -- Digits_Expression (Node2)
3003 -- Range_Constraint (Node4) (set to Empty if not present)
3005 --------------------------------
3006 -- 3.6 Array Type Definition --
3007 --------------------------------
3009 -- ARRAY_TYPE_DEFINITION ::=
3010 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3012 -----------------------------------------
3013 -- 3.6 Unconstrained Array Definition --
3014 -----------------------------------------
3016 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3017 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3018 -- COMPONENT_DEFINITION
3020 -- Note: dimensionality of array is indicated by number of entries in
3021 -- the Subtype_Marks list, which has one entry for each dimension.
3023 -- N_Unconstrained_Array_Definition
3024 -- Sloc points to ARRAY
3025 -- Subtype_Marks (List2)
3026 -- Component_Definition (Node4)
3028 -----------------------------------
3029 -- 3.6 Index Subtype Definition --
3030 -----------------------------------
3032 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3034 -- There is no explicit node in the tree for an index subtype
3035 -- definition since the N_Unconstrained_Array_Definition node
3036 -- incorporates the type marks which appear in this context.
3038 ---------------------------------------
3039 -- 3.6 Constrained Array Definition --
3040 ---------------------------------------
3042 -- CONSTRAINED_ARRAY_DEFINITION ::=
3043 -- array (DISCRETE_SUBTYPE_DEFINITION
3044 -- {, DISCRETE_SUBTYPE_DEFINITION})
3045 -- of COMPONENT_DEFINITION
3047 -- Note: dimensionality of array is indicated by number of entries
3048 -- in the Discrete_Subtype_Definitions list, which has one entry
3049 -- for each dimension.
3051 -- N_Constrained_Array_Definition
3052 -- Sloc points to ARRAY
3053 -- Discrete_Subtype_Definitions (List2)
3054 -- Component_Definition (Node4)
3056 -- Note: although the language allows the full syntax for discrete
3057 -- subtype definitions (i.e. a discrete subtype indication or a range),
3058 -- in the generated tree, we always rewrite these as N_Range nodes.
3060 --------------------------------------
3061 -- 3.6 Discrete Subtype Definition --
3062 --------------------------------------
3064 -- DISCRETE_SUBTYPE_DEFINITION ::=
3065 -- discrete_SUBTYPE_INDICATION | RANGE
3067 -------------------------------
3068 -- 3.6 Component Definition --
3069 -------------------------------
3071 -- COMPONENT_DEFINITION ::=
3072 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3074 -- Note: although the syntax does not permit a component definition to
3075 -- be an anonymous array (and the parser will diagnose such an attempt
3076 -- with an appropriate message), it is possible for anonymous arrays
3077 -- to appear as component definitions. The semantics and back end handle
3078 -- this case properly, and the expander in fact generates such cases.
3079 -- Access_Definition is an optional field that gives support to
3080 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3081 -- Subtype_Indication field or else the Access_Definition field.
3083 -- N_Component_Definition
3084 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3085 -- Aliased_Present (Flag4)
3086 -- Null_Exclusion_Present (Flag11)
3087 -- Subtype_Indication (Node5) (set to Empty if not present)
3088 -- Access_Definition (Node3) (set to Empty if not present)
3090 -----------------------------
3091 -- 3.6.1 Index Constraint --
3092 -----------------------------
3094 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3096 -- It is not in general possible to distinguish between discriminant
3097 -- constraints and index constraints at parse time, since a simple
3098 -- name could be either the subtype mark of a discrete range, or an
3099 -- expression in a discriminant association with no name. Either
3100 -- entry appears simply as the name, and the semantic parse must
3101 -- distinguish between the two cases. Thus we use a common tree
3102 -- node format for both of these constraint types.
3104 -- See Discriminant_Constraint for format of node
3106 ---------------------------
3107 -- 3.6.1 Discrete Range --
3108 ---------------------------
3110 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3112 ----------------------------
3113 -- 3.7 Discriminant Part --
3114 ----------------------------
3116 -- DISCRIMINANT_PART ::=
3117 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3119 ------------------------------------
3120 -- 3.7 Unknown Discriminant Part --
3121 ------------------------------------
3123 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3125 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3127 -- There is no explicit node in the tree for an unknown discriminant
3128 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3129 -- parent node.
3131 ----------------------------------
3132 -- 3.7 Known Discriminant Part --
3133 ----------------------------------
3135 -- KNOWN_DISCRIMINANT_PART ::=
3136 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3138 -------------------------------------
3139 -- 3.7 Discriminant Specification --
3140 -------------------------------------
3142 -- DISCRIMINANT_SPECIFICATION ::=
3143 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3144 -- [:= DEFAULT_EXPRESSION]
3145 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3146 -- [:= DEFAULT_EXPRESSION]
3148 -- Although the syntax allows multiple identifiers in the list, the
3149 -- semantics is as though successive specifications were given with
3150 -- identical type definition and expression components. To simplify
3151 -- semantic processing, the parser represents a multiple declaration
3152 -- case as a sequence of single specifications, using the More_Ids and
3153 -- Prev_Ids flags to preserve the original source form as described
3154 -- in the section on "Handling of Defining Identifier Lists".
3156 -- N_Discriminant_Specification
3157 -- Sloc points to first identifier
3158 -- Defining_Identifier (Node1)
3159 -- Null_Exclusion_Present (Flag11)
3160 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3161 -- Expression (Node3) (set to Empty if no default expression)
3162 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3163 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3165 -----------------------------
3166 -- 3.7 Default Expression --
3167 -----------------------------
3169 -- DEFAULT_EXPRESSION ::= EXPRESSION
3171 ------------------------------------
3172 -- 3.7.1 Discriminant Constraint --
3173 ------------------------------------
3175 -- DISCRIMINANT_CONSTRAINT ::=
3176 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3178 -- It is not in general possible to distinguish between discriminant
3179 -- constraints and index constraints at parse time, since a simple
3180 -- name could be either the subtype mark of a discrete range, or an
3181 -- expression in a discriminant association with no name. Either
3182 -- entry appears simply as the name, and the semantic parse must
3183 -- distinguish between the two cases. Thus we use a common tree
3184 -- node format for both of these constraint types.
3186 -- N_Index_Or_Discriminant_Constraint
3187 -- Sloc points to left paren
3188 -- Constraints (List1) points to list of discrete ranges or
3189 -- discriminant associations
3191 -------------------------------------
3192 -- 3.7.1 Discriminant Association --
3193 -------------------------------------
3195 -- DISCRIMINANT_ASSOCIATION ::=
3196 -- [discriminant_SELECTOR_NAME
3197 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3199 -- Note: a discriminant association that has no selector name list
3200 -- appears directly as an expression in the tree.
3202 -- N_Discriminant_Association
3203 -- Sloc points to first token of discriminant association
3204 -- Selector_Names (List1) (always non-empty, since if no selector
3205 -- names are present, this node is not used, see comment above)
3206 -- Expression (Node3)
3208 ---------------------------------
3209 -- 3.8 Record Type Definition --
3210 ---------------------------------
3212 -- RECORD_TYPE_DEFINITION ::=
3213 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3215 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3217 -- There is no explicit node in the tree for a record type definition.
3218 -- Instead the flags for Tagged_Present and Limited_Present appear in
3219 -- the N_Record_Definition node for a record definition appearing in
3220 -- the context of a record type definition.
3222 ----------------------------
3223 -- 3.8 Record Definition --
3224 ----------------------------
3226 -- RECORD_DEFINITION ::=
3227 -- record
3228 -- COMPONENT_LIST
3229 -- end record
3230 -- | null record
3232 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3233 -- flags appear only for a record definition appearing in a record
3234 -- type definition.
3236 -- Note: the NULL RECORD case is not permitted in Ada 83
3238 -- N_Record_Definition
3239 -- Sloc points to RECORD or NULL
3240 -- End_Label (Node4) (set to Empty if internally generated record)
3241 -- Abstract_Present (Flag4)
3242 -- Tagged_Present (Flag15)
3243 -- Limited_Present (Flag17)
3244 -- Component_List (Node1) empty in null record case
3245 -- Null_Present (Flag13) set in null record case
3246 -- Task_Present (Flag5) set in task interfaces
3247 -- Protected_Present (Flag6) set in protected interfaces
3248 -- Synchronized_Present (Flag7) set in interfaces
3249 -- Interface_Present (Flag16) set in abstract interfaces
3250 -- Interface_List (List2) (set to No_List if none)
3252 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3253 -- Interface_List and Interface_Present are used for abstract
3254 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3256 -------------------------
3257 -- 3.8 Component List --
3258 -------------------------
3260 -- COMPONENT_LIST ::=
3261 -- COMPONENT_ITEM {COMPONENT_ITEM}
3262 -- | {COMPONENT_ITEM} VARIANT_PART
3263 -- | null;
3265 -- N_Component_List
3266 -- Sloc points to first token of component list
3267 -- Component_Items (List3)
3268 -- Variant_Part (Node4) (set to Empty if no variant part)
3269 -- Null_Present (Flag13)
3271 -------------------------
3272 -- 3.8 Component Item --
3273 -------------------------
3275 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3277 -- Note: A component item can also be a pragma, and in the tree
3278 -- that is obtained after semantic processing, a component item
3279 -- can be an N_Null node resulting from a non-recognized pragma.
3281 --------------------------------
3282 -- 3.8 Component Declaration --
3283 --------------------------------
3285 -- COMPONENT_DECLARATION ::=
3286 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3287 -- [:= DEFAULT_EXPRESSION]
3288 -- [ASPECT_SPECIFICATIONS];
3290 -- Note: although the syntax does not permit a component definition to
3291 -- be an anonymous array (and the parser will diagnose such an attempt
3292 -- with an appropriate message), it is possible for anonymous arrays
3293 -- to appear as component definitions. The semantics and back end handle
3294 -- this case properly, and the expander in fact generates such cases.
3296 -- Although the syntax allows multiple identifiers in the list, the
3297 -- semantics is as though successive declarations were given with the
3298 -- same component definition and expression components. To simplify
3299 -- semantic processing, the parser represents a multiple declaration
3300 -- case as a sequence of single declarations, using the More_Ids and
3301 -- Prev_Ids flags to preserve the original source form as described
3302 -- in the section on "Handling of Defining Identifier Lists".
3304 -- N_Component_Declaration
3305 -- Sloc points to first identifier
3306 -- Defining_Identifier (Node1)
3307 -- Component_Definition (Node4)
3308 -- Expression (Node3) (set to Empty if no default expression)
3309 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3310 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3312 -------------------------
3313 -- 3.8.1 Variant Part --
3314 -------------------------
3316 -- VARIANT_PART ::=
3317 -- case discriminant_DIRECT_NAME is
3318 -- VARIANT {VARIANT}
3319 -- end case;
3321 -- Note: the variants list can contain pragmas as well as variants.
3322 -- In a properly formed program there is at least one variant.
3324 -- N_Variant_Part
3325 -- Sloc points to CASE
3326 -- Name (Node2)
3327 -- Variants (List1)
3329 --------------------
3330 -- 3.8.1 Variant --
3331 --------------------
3333 -- VARIANT ::=
3334 -- when DISCRETE_CHOICE_LIST =>
3335 -- COMPONENT_LIST
3337 -- N_Variant
3338 -- Sloc points to WHEN
3339 -- Discrete_Choices (List4)
3340 -- Component_List (Node1)
3341 -- Enclosing_Variant (Node2-Sem)
3342 -- Present_Expr (Uint3-Sem)
3343 -- Dcheck_Function (Node5-Sem)
3344 -- Has_SP_Choice (Flag15-Sem)
3346 -- Note: in the list of Discrete_Choices, the tree passed to the back
3347 -- end does not have choice entries corresponding to names of statically
3348 -- predicated subtypes. Such entries are always expanded out to the list
3349 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3350 -- mode also has this expansion, but done with a proper Rewrite call on
3351 -- the N_Variant node so that ASIS can properly retrieve the original.
3353 ---------------------------------
3354 -- 3.8.1 Discrete Choice List --
3355 ---------------------------------
3357 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3359 ----------------------------
3360 -- 3.8.1 Discrete Choice --
3361 ----------------------------
3363 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3365 -- Note: in Ada 83 mode, the expression must be a simple expression
3367 -- The only choice that appears explicitly is the OTHERS choice, as
3368 -- defined here. Other cases of discrete choice (expression and
3369 -- discrete range) appear directly. This production is also used
3370 -- for the OTHERS possibility of an exception choice.
3372 -- Note: in accordance with the syntax, the parser does not check that
3373 -- OTHERS appears at the end on its own in a choice list context. This
3374 -- is a semantic check.
3376 -- N_Others_Choice
3377 -- Sloc points to OTHERS
3378 -- Others_Discrete_Choices (List1-Sem)
3379 -- All_Others (Flag11-Sem)
3381 ----------------------------------
3382 -- 3.9.1 Record Extension Part --
3383 ----------------------------------
3385 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3387 -- Note: record extension parts are not permitted in Ada 83 mode
3389 --------------------------------------
3390 -- 3.9.4 Interface Type Definition --
3391 --------------------------------------
3393 -- INTERFACE_TYPE_DEFINITION ::=
3394 -- [limited | task | protected | synchronized]
3395 -- interface [interface_list]
3397 -- Note: Interfaces are implemented with N_Record_Definition and
3398 -- N_Derived_Type_Definition nodes because most of the support
3399 -- for the analysis of abstract types has been reused to
3400 -- analyze abstract interfaces.
3402 ----------------------------------
3403 -- 3.10 Access Type Definition --
3404 ----------------------------------
3406 -- ACCESS_TYPE_DEFINITION ::=
3407 -- ACCESS_TO_OBJECT_DEFINITION
3408 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3410 --------------------------
3411 -- 3.10 Null Exclusion --
3412 --------------------------
3414 -- NULL_EXCLUSION ::= not null
3416 ---------------------------------------
3417 -- 3.10 Access To Object Definition --
3418 ---------------------------------------
3420 -- ACCESS_TO_OBJECT_DEFINITION ::=
3421 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3422 -- SUBTYPE_INDICATION
3424 -- N_Access_To_Object_Definition
3425 -- Sloc points to ACCESS
3426 -- All_Present (Flag15)
3427 -- Null_Exclusion_Present (Flag11)
3428 -- Null_Excluding_Subtype (Flag16)
3429 -- Subtype_Indication (Node5)
3430 -- Constant_Present (Flag17)
3432 -----------------------------------
3433 -- 3.10 General Access Modifier --
3434 -----------------------------------
3436 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3438 -- Note: general access modifiers are not permitted in Ada 83 mode
3440 -- There is no explicit node in the tree for general access modifier.
3441 -- Instead the All_Present or Constant_Present flags are set in the
3442 -- parent node.
3444 -------------------------------------------
3445 -- 3.10 Access To Subprogram Definition --
3446 -------------------------------------------
3448 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3449 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3450 -- | [NULL_EXCLUSION] access [protected] function
3451 -- PARAMETER_AND_RESULT_PROFILE
3453 -- Note: access to subprograms are not permitted in Ada 83 mode
3455 -- N_Access_Function_Definition
3456 -- Sloc points to ACCESS
3457 -- Null_Exclusion_Present (Flag11)
3458 -- Null_Exclusion_In_Return_Present (Flag14)
3459 -- Protected_Present (Flag6)
3460 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3461 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3463 -- N_Access_Procedure_Definition
3464 -- Sloc points to ACCESS
3465 -- Null_Exclusion_Present (Flag11)
3466 -- Protected_Present (Flag6)
3467 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3469 -----------------------------
3470 -- 3.10 Access Definition --
3471 -----------------------------
3473 -- ACCESS_DEFINITION ::=
3474 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3475 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3477 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3479 -- N_Access_Definition
3480 -- Sloc points to ACCESS
3481 -- Null_Exclusion_Present (Flag11)
3482 -- All_Present (Flag15)
3483 -- Constant_Present (Flag17)
3484 -- Subtype_Mark (Node4)
3485 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3487 -----------------------------------------
3488 -- 3.10.1 Incomplete Type Declaration --
3489 -----------------------------------------
3491 -- INCOMPLETE_TYPE_DECLARATION ::=
3492 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3494 -- N_Incomplete_Type_Declaration
3495 -- Sloc points to TYPE
3496 -- Defining_Identifier (Node1)
3497 -- Discriminant_Specifications (List4) (set to No_List if no
3498 -- discriminant part, or if the discriminant part is an
3499 -- unknown discriminant part)
3500 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3501 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3502 -- Tagged_Present (Flag15)
3504 ----------------------------
3505 -- 3.11 Declarative Part --
3506 ----------------------------
3508 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3510 -- Note: although the parser enforces the syntactic requirement that
3511 -- a declarative part can contain only declarations, the semantic
3512 -- processing may add statements to the list of actions in a
3513 -- declarative part, so the code generator should be prepared
3514 -- to accept a statement in this position.
3516 ----------------------------
3517 -- 3.11 Declarative Item --
3518 ----------------------------
3520 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3522 ----------------------------------
3523 -- 3.11 Basic Declarative Item --
3524 ----------------------------------
3526 -- BASIC_DECLARATIVE_ITEM ::=
3527 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3529 ----------------
3530 -- 3.11 Body --
3531 ----------------
3533 -- BODY ::= PROPER_BODY | BODY_STUB
3535 -----------------------
3536 -- 3.11 Proper Body --
3537 -----------------------
3539 -- PROPER_BODY ::=
3540 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3542 ---------------
3543 -- 4.1 Name --
3544 ---------------
3546 -- NAME ::=
3547 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3548 -- | INDEXED_COMPONENT | SLICE
3549 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3550 -- | TYPE_CONVERSION | FUNCTION_CALL
3551 -- | CHARACTER_LITERAL
3553 ----------------------
3554 -- 4.1 Direct Name --
3555 ----------------------
3557 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3559 -----------------
3560 -- 4.1 Prefix --
3561 -----------------
3563 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3565 -------------------------------
3566 -- 4.1 Explicit Dereference --
3567 -------------------------------
3569 -- EXPLICIT_DEREFERENCE ::= NAME . all
3571 -- N_Explicit_Dereference
3572 -- Sloc points to ALL
3573 -- Prefix (Node3)
3574 -- Actual_Designated_Subtype (Node4-Sem)
3575 -- Atomic_Sync_Required (Flag14-Sem)
3576 -- Has_Dereference_Action (Flag13-Sem)
3577 -- plus fields for expression
3579 -------------------------------
3580 -- 4.1 Implicit Dereference --
3581 -------------------------------
3583 -- IMPLICIT_DEREFERENCE ::= NAME
3585 ------------------------------
3586 -- 4.1.1 Indexed Component --
3587 ------------------------------
3589 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3591 -- Note: the parser may generate this node in some situations where it
3592 -- should be a function call. The semantic pass must correct this
3593 -- misidentification (which is inevitable at the parser level).
3595 -- N_Indexed_Component
3596 -- Sloc contains a copy of the Sloc value of the Prefix
3597 -- Prefix (Node3)
3598 -- Expressions (List1)
3599 -- Generalized_Indexing (Node4-Sem)
3600 -- Atomic_Sync_Required (Flag14-Sem)
3601 -- plus fields for expression
3603 -- Note: if any of the subscripts requires a range check, then the
3604 -- Do_Range_Check flag is set on the corresponding expression, with
3605 -- the index type being determined from the type of the Prefix, which
3606 -- references the array being indexed.
3608 -- Note: in a fully analyzed and expanded indexed component node, and
3609 -- hence in any such node that gigi sees, if the prefix is an access
3610 -- type, then an explicit dereference operation has been inserted.
3612 ------------------
3613 -- 4.1.2 Slice --
3614 ------------------
3616 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3618 -- Note: an implicit subtype is created to describe the resulting
3619 -- type, so that the bounds of this type are the bounds of the slice.
3621 -- N_Slice
3622 -- Sloc points to first token of prefix
3623 -- Prefix (Node3)
3624 -- Discrete_Range (Node4)
3625 -- plus fields for expression
3627 -------------------------------
3628 -- 4.1.3 Selected Component --
3629 -------------------------------
3631 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3633 -- Note: selected components that are semantically expanded names get
3634 -- changed during semantic processing into the separate N_Expanded_Name
3635 -- node. See description of this node in the section on semantic nodes.
3637 -- N_Selected_Component
3638 -- Sloc points to period
3639 -- Prefix (Node3)
3640 -- Selector_Name (Node2)
3641 -- Associated_Node (Node4-Sem)
3642 -- Do_Discriminant_Check (Flag1-Sem)
3643 -- Is_In_Discriminant_Check (Flag11-Sem)
3644 -- Is_Prefixed_Call (Flag17-Sem)
3645 -- Atomic_Sync_Required (Flag14-Sem)
3646 -- plus fields for expression
3648 --------------------------
3649 -- 4.1.3 Selector Name --
3650 --------------------------
3652 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3654 --------------------------------
3655 -- 4.1.4 Attribute Reference --
3656 --------------------------------
3658 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3660 -- Note: the syntax is quite ambiguous at this point. Consider:
3662 -- A'Length (X) X is part of the attribute designator
3663 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3664 -- A'Class (X) X is the expression of a type conversion
3666 -- It would be possible for the parser to distinguish these cases
3667 -- by looking at the attribute identifier. However, that would mean
3668 -- more work in introducing new implementation defined attributes,
3669 -- and also it would mean that special processing for attributes
3670 -- would be scattered around, instead of being centralized in the
3671 -- semantic routine that handles an N_Attribute_Reference node.
3672 -- Consequently, the parser in all the above cases stores the
3673 -- expression (X in these examples) as a single element list in
3674 -- in the Expressions field of the N_Attribute_Reference node.
3676 -- Similarly, for attributes like Max which take two arguments,
3677 -- we store the two arguments as a two element list in the
3678 -- Expressions field. Of course it is clear at parse time that
3679 -- this case is really a function call with an attribute as the
3680 -- prefix, but it turns out to be convenient to handle the two
3681 -- argument case in a similar manner to the one argument case,
3682 -- and indeed in general the parser will accept any number of
3683 -- expressions in this position and store them as a list in the
3684 -- attribute reference node. This allows for future addition of
3685 -- attributes that take more than two arguments.
3687 -- Note: named associates are not permitted in function calls where
3688 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3689 -- to skip the normal subprogram argument processing.
3691 -- Note: for the attributes whose designators are technically keywords,
3692 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3693 -- the corresponding name, even though no identifier is involved.
3695 -- Note: the generated code may contain stream attributes applied to
3696 -- limited types for which no stream routines exist officially. In such
3697 -- case, the result is to use the stream attribute for the underlying
3698 -- full type, or in the case of a protected type, the components
3699 -- (including any discriminants) are merely streamed in order.
3701 -- See Exp_Attr for a complete description of which attributes are
3702 -- passed onto Gigi, and which are handled entirely by the front end.
3704 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3705 -- a non-standard enumeration type or a nonzero/zero semantics
3706 -- boolean type, so the value is simply the stored representation.
3708 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3709 -- references a subprogram that is a renaming, then the front end must
3710 -- rewrite the attribute to refer directly to the renamed entity.
3712 -- Note: syntactically the prefix of an attribute reference must be a
3713 -- name, and this (somewhat artificial) requirement is enforced by the
3714 -- parser. However, for many attributes, such as 'Valid, it is quite
3715 -- reasonable to apply the attribute to any value, and hence to any
3716 -- expression. Internally in the tree, the prefix is an expression which
3717 -- does not have to be a name, and this is handled fine by the semantic
3718 -- analysis and expansion, and back ends. This arises for the case of
3719 -- attribute references built by the expander (e.g. 'Valid for the case
3720 -- of an implicit validity check).
3722 -- Note: In generated code, the Address and Unrestricted_Access
3723 -- attributes can be applied to any expression, and the meaning is
3724 -- to create an object containing the value (the object is in the
3725 -- current stack frame), and pass the address of this value. If the
3726 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3727 -- is taken must be on a byte (storage unit) boundary, and if it is
3728 -- not (or may not be), then the generated code must create a copy
3729 -- that is byte aligned, and pass the address of this copy.
3731 -- N_Attribute_Reference
3732 -- Sloc points to apostrophe
3733 -- Prefix (Node3) (general expression, see note above)
3734 -- Attribute_Name (Name2) identifier name from attribute designator
3735 -- Expressions (List1) (set to No_List if no associated expressions)
3736 -- Entity (Node4-Sem) used if the attribute yields a type
3737 -- Associated_Node (Node4-Sem)
3738 -- Do_Overflow_Check (Flag17-Sem)
3739 -- Header_Size_Added (Flag11-Sem)
3740 -- Must_Be_Byte_Aligned (Flag14-Sem)
3741 -- Non_Aliased_Prefix (Flag18-Sem)
3742 -- Redundant_Use (Flag13-Sem)
3744 -- plus fields for expression
3746 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3747 -- into equivalent if expressions, properly taking care of side effects.
3749 ---------------------------------
3750 -- 4.1.4 Attribute Designator --
3751 ---------------------------------
3753 -- ATTRIBUTE_DESIGNATOR ::=
3754 -- IDENTIFIER [(static_EXPRESSION)]
3755 -- | access | delta | digits
3757 -- There is no explicit node in the tree for an attribute designator.
3758 -- Instead the Attribute_Name and Expressions fields of the parent
3759 -- node (N_Attribute_Reference node) hold the information.
3761 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3762 -- designator, then they are treated as identifiers internally
3763 -- rather than the keywords of the same name.
3765 --------------------------------------
3766 -- 4.1.4 Range Attribute Reference --
3767 --------------------------------------
3769 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3771 -- A range attribute reference is represented in the tree using the
3772 -- normal N_Attribute_Reference node.
3774 ---------------------------------------
3775 -- 4.1.4 Range Attribute Designator --
3776 ---------------------------------------
3778 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3780 -- A range attribute designator is represented in the tree using the
3781 -- normal N_Attribute_Reference node.
3783 --------------------
3784 -- 4.3 Aggregate --
3785 --------------------
3787 -- AGGREGATE ::=
3788 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3790 -----------------------------
3791 -- 4.3.1 Record Aggregate --
3792 -----------------------------
3794 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3796 -- N_Aggregate
3797 -- Sloc points to left parenthesis
3798 -- Expressions (List1) (set to No_List if none or null record case)
3799 -- Component_Associations (List2) (set to No_List if none)
3800 -- Null_Record_Present (Flag17)
3801 -- Aggregate_Bounds (Node3-Sem)
3802 -- Associated_Node (Node4-Sem)
3803 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3804 -- Expansion_Delayed (Flag11-Sem)
3805 -- Has_Self_Reference (Flag13-Sem)
3806 -- plus fields for expression
3808 -- Note: this structure is used for both record and array aggregates
3809 -- since the two cases are not separable by the parser. The parser
3810 -- makes no attempt to enforce consistency here, so it is up to the
3811 -- semantic phase to make sure that the aggregate is consistent (i.e.
3812 -- that it is not a "half-and-half" case that mixes record and array
3813 -- syntax. In particular, for a record aggregate, the expressions
3814 -- field will be set if there are positional associations.
3816 -- Note: N_Aggregate is not used for all aggregates; in particular,
3817 -- there is a separate node kind for extension aggregates.
3819 -- Note: gigi/gcc can handle array aggregates correctly providing that
3820 -- they are entirely positional, and the array subtype involved has a
3821 -- known at compile time length and is not bit packed, or a convention
3822 -- Fortran array with more than one dimension. If these conditions
3823 -- are not met, then the front end must translate the aggregate into
3824 -- an appropriate set of assignments into a temporary.
3826 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3827 -- of record aggregates, including those for packed, and rep-claused
3828 -- records, and also variant records, providing that there are no
3829 -- variable length fields whose size is not known at compile time,
3830 -- and providing that the aggregate is presented in fully named form.
3832 -- The other situation in which array aggregates and record aggregates
3833 -- cannot be passed to the back end is if assignment to one or more
3834 -- components itself needs expansion, e.g. in the case of an assignment
3835 -- of an object of a controlled type. In such cases, the front end
3836 -- must expand the aggregate to a series of assignments, and apply
3837 -- the required expansion to the individual assignment statements.
3839 ----------------------------------------------
3840 -- 4.3.1 Record Component Association List --
3841 ----------------------------------------------
3843 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3844 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3845 -- | null record
3847 -- There is no explicit node in the tree for a record component
3848 -- association list. Instead the Null_Record_Present flag is set in
3849 -- the parent node for the NULL RECORD case.
3851 ------------------------------------------------------
3852 -- 4.3.1 Record Component Association (also 4.3.3) --
3853 ------------------------------------------------------
3855 -- RECORD_COMPONENT_ASSOCIATION ::=
3856 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3858 -- N_Component_Association
3859 -- Sloc points to first selector name
3860 -- Choices (List1)
3861 -- Loop_Actions (List2-Sem)
3862 -- Expression (Node3) (empty if Box_Present)
3863 -- Box_Present (Flag15)
3864 -- Inherited_Discriminant (Flag13)
3866 -- Note: this structure is used for both record component associations
3867 -- and array component associations, since the two cases aren't always
3868 -- separable by the parser. The choices list may represent either a
3869 -- list of selector names in the record aggregate case, or a list of
3870 -- discrete choices in the array aggregate case or an N_Others_Choice
3871 -- node (which appears as a singleton list). Box_Present gives support
3872 -- to Ada 2005 (AI-287).
3874 ----------------------------------
3875 -- 4.3.1 Component Choice List --
3876 ----------------------------------
3878 -- COMPONENT_CHOICE_LIST ::=
3879 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3880 -- | others
3882 -- The entries of a component choice list appear in the Choices list of
3883 -- the associated N_Component_Association, as either selector names, or
3884 -- as an N_Others_Choice node.
3886 --------------------------------
3887 -- 4.3.2 Extension Aggregate --
3888 --------------------------------
3890 -- EXTENSION_AGGREGATE ::=
3891 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3893 -- Note: extension aggregates are not permitted in Ada 83 mode
3895 -- N_Extension_Aggregate
3896 -- Sloc points to left parenthesis
3897 -- Ancestor_Part (Node3)
3898 -- Associated_Node (Node4-Sem)
3899 -- Expressions (List1) (set to No_List if none or null record case)
3900 -- Component_Associations (List2) (set to No_List if none)
3901 -- Null_Record_Present (Flag17)
3902 -- Expansion_Delayed (Flag11-Sem)
3903 -- Has_Self_Reference (Flag13-Sem)
3904 -- plus fields for expression
3906 --------------------------
3907 -- 4.3.2 Ancestor Part --
3908 --------------------------
3910 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3912 ----------------------------
3913 -- 4.3.3 Array Aggregate --
3914 ----------------------------
3916 -- ARRAY_AGGREGATE ::=
3917 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3919 ---------------------------------------
3920 -- 4.3.3 Positional Array Aggregate --
3921 ---------------------------------------
3923 -- POSITIONAL_ARRAY_AGGREGATE ::=
3924 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3925 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3927 -- See Record_Aggregate (4.3.1) for node structure
3929 ----------------------------------
3930 -- 4.3.3 Named Array Aggregate --
3931 ----------------------------------
3933 -- NAMED_ARRAY_AGGREGATE ::=
3934 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3936 -- See Record_Aggregate (4.3.1) for node structure
3938 ----------------------------------------
3939 -- 4.3.3 Array Component Association --
3940 ----------------------------------------
3942 -- ARRAY_COMPONENT_ASSOCIATION ::=
3943 -- DISCRETE_CHOICE_LIST => EXPRESSION
3945 -- See Record_Component_Association (4.3.1) for node structure
3947 --------------------------------------------------
3948 -- 4.4 Expression/Relation/Term/Factor/Primary --
3949 --------------------------------------------------
3951 -- EXPRESSION ::=
3952 -- RELATION {LOGICAL_OPERATOR RELATION}
3954 -- CHOICE_EXPRESSION ::=
3955 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3957 -- CHOICE_RELATION ::=
3958 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3960 -- RELATION ::=
3961 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3962 -- | RAISE_EXPRESSION
3964 -- MEMBERSHIP_CHOICE_LIST ::=
3965 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3967 -- MEMBERSHIP_CHOICE ::=
3968 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3970 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3972 -- SIMPLE_EXPRESSION ::=
3973 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3975 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3977 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3979 -- No nodes are generated for any of these constructs. Instead, the
3980 -- node for the operator appears directly. When we refer to an
3981 -- expression in this description, we mean any of the possible
3982 -- constituent components of an expression (e.g. identifier is
3983 -- an example of an expression).
3985 -- Note: the above syntax is that Ada 2012 syntax which restricts
3986 -- choice relations to simple expressions to avoid ambiguities in
3987 -- some contexts with set membership notation. It has been decided
3988 -- that in retrospect, the Ada 95 change allowing general expressions
3989 -- in this context was a mistake, so we have reverted to the above
3990 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3991 -- expressions was there in Ada 83 from the start).
3993 ------------------
3994 -- 4.4 Primary --
3995 ------------------
3997 -- PRIMARY ::=
3998 -- NUMERIC_LITERAL | null
3999 -- | STRING_LITERAL | AGGREGATE
4000 -- | NAME | QUALIFIED_EXPRESSION
4001 -- | ALLOCATOR | (EXPRESSION)
4003 -- Usually there is no explicit node in the tree for primary. Instead
4004 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4005 -- exceptions. First, there is an explicit node for a null primary.
4007 -- N_Null
4008 -- Sloc points to NULL
4009 -- plus fields for expression
4011 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4012 -- that the parser keep track of which subexpressions are enclosed
4013 -- in parentheses, and how many levels of parentheses are used. This
4014 -- information is required for optimization purposes, and also for
4015 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4016 -- conform with ((((1)))) in the body).
4018 -- The parentheses are recorded by keeping a Paren_Count field in every
4019 -- subexpression node (it is actually present in all nodes, but only
4020 -- used in subexpression nodes). This count records the number of
4021 -- levels of parentheses. If the number of levels in the source exceeds
4022 -- the maximum accommodated by this count, then the count is simply left
4023 -- at the maximum value. This means that there are some pathological
4024 -- cases of failure to detect conformance failures (e.g. an expression
4025 -- with 500 levels of parens will conform with one with 501 levels),
4026 -- but we do not need to lose sleep over this.
4028 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4029 -- type N_Parenthesized_Expression used to accurately record unlimited
4030 -- numbers of levels of parentheses. However, it turned out to be a
4031 -- real nuisance to have to take into account the possible presence of
4032 -- this node during semantic analysis, since basically parentheses have
4033 -- zero relevance to semantic analysis.
4035 -- Note: the level of parentheses always present in things like
4036 -- aggregates does not count, only the parentheses in the primary
4037 -- (EXPRESSION) affect the setting of the Paren_Count field.
4039 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4040 -- treated as though it were Empty) if No_Initialization is set True.
4042 --------------------------------------
4043 -- 4.5 Short Circuit Control Forms --
4044 --------------------------------------
4046 -- EXPRESSION ::=
4047 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4049 -- Gigi restriction: For both these control forms, the operand and
4050 -- result types are always Standard.Boolean. The expander inserts the
4051 -- required conversion operations where needed to ensure this is the
4052 -- case.
4054 -- N_And_Then
4055 -- Sloc points to AND of AND THEN
4056 -- Left_Opnd (Node2)
4057 -- Right_Opnd (Node3)
4058 -- Actions (List1-Sem)
4059 -- plus fields for expression
4061 -- N_Or_Else
4062 -- Sloc points to OR of OR ELSE
4063 -- Left_Opnd (Node2)
4064 -- Right_Opnd (Node3)
4065 -- Actions (List1-Sem)
4066 -- plus fields for expression
4068 -- Note: The Actions field is used to hold actions associated with
4069 -- the right hand operand. These have to be treated specially since
4070 -- they are not unconditionally executed. See Insert_Actions for a
4071 -- more detailed description of how these actions are handled.
4073 ---------------------------
4074 -- 4.5 Membership Tests --
4075 ---------------------------
4077 -- RELATION ::=
4078 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4080 -- MEMBERSHIP_CHOICE_LIST ::=
4081 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4083 -- MEMBERSHIP_CHOICE ::=
4084 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4086 -- Note: although the grammar above allows only a range or a subtype
4087 -- mark, the parser in fact will accept any simple expression in place
4088 -- of a subtype mark. This means that the semantic analyzer must be able
4089 -- to deal with, and diagnose a simple expression other than a name for
4090 -- the right operand. This simplifies error recovery in the parser.
4092 -- The Alternatives field below is present only if there is more than
4093 -- one Membership_Choice present (which is legitimate only in Ada 2012
4094 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4095 -- the list of choices. In the tree passed to the back end, Alternatives
4096 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4097 -- expands out the complex set membership case using simple membership
4098 -- and equality operations).
4100 -- Should we rename Alternatives here to Membership_Choices ???
4102 -- N_In
4103 -- Sloc points to IN
4104 -- Left_Opnd (Node2)
4105 -- Right_Opnd (Node3)
4106 -- Alternatives (List4) (set to No_List if only one set alternative)
4107 -- No_Minimize_Eliminate (Flag17)
4108 -- plus fields for expression
4110 -- N_Not_In
4111 -- Sloc points to NOT of NOT IN
4112 -- Left_Opnd (Node2)
4113 -- Right_Opnd (Node3)
4114 -- Alternatives (List4) (set to No_List if only one set alternative)
4115 -- No_Minimize_Eliminate (Flag17)
4116 -- plus fields for expression
4118 --------------------
4119 -- 4.5 Operators --
4120 --------------------
4122 -- LOGICAL_OPERATOR ::= and | or | xor
4124 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4126 -- BINARY_ADDING_OPERATOR ::= + | - | &
4128 -- UNARY_ADDING_OPERATOR ::= + | -
4130 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4132 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4134 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4136 -- x #* y
4137 -- x #/ y
4138 -- x #mod y
4139 -- x #rem y
4141 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4142 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4143 -- All handling of smalls for multiplication and division is handled
4144 -- by the front end (mod and rem result only from expansion). Gigi
4145 -- thus never needs to worry about small values (for other operators
4146 -- operating on fixed-point, e.g. addition, the small value does not
4147 -- have any semantic effect anyway, these are always integer operations.
4149 -- Gigi restriction: For all operators taking Boolean operands, the
4150 -- type is always Standard.Boolean. The expander inserts the required
4151 -- conversion operations where needed to ensure this is the case.
4153 -- N_Op_And
4154 -- Sloc points to AND
4155 -- Do_Length_Check (Flag4-Sem)
4156 -- plus fields for binary operator
4157 -- plus fields for expression
4159 -- N_Op_Or
4160 -- Sloc points to OR
4161 -- Do_Length_Check (Flag4-Sem)
4162 -- plus fields for binary operator
4163 -- plus fields for expression
4165 -- N_Op_Xor
4166 -- Sloc points to XOR
4167 -- Do_Length_Check (Flag4-Sem)
4168 -- plus fields for binary operator
4169 -- plus fields for expression
4171 -- N_Op_Eq
4172 -- Sloc points to =
4173 -- plus fields for binary operator
4174 -- plus fields for expression
4176 -- N_Op_Ne
4177 -- Sloc points to /=
4178 -- plus fields for binary operator
4179 -- plus fields for expression
4181 -- N_Op_Lt
4182 -- Sloc points to <
4183 -- plus fields for binary operator
4184 -- plus fields for expression
4186 -- N_Op_Le
4187 -- Sloc points to <=
4188 -- plus fields for binary operator
4189 -- plus fields for expression
4191 -- N_Op_Gt
4192 -- Sloc points to >
4193 -- plus fields for binary operator
4194 -- plus fields for expression
4196 -- N_Op_Ge
4197 -- Sloc points to >=
4198 -- plus fields for binary operator
4199 -- plus fields for expression
4201 -- N_Op_Add
4202 -- Sloc points to + (binary)
4203 -- plus fields for binary operator
4204 -- plus fields for expression
4206 -- N_Op_Subtract
4207 -- Sloc points to - (binary)
4208 -- plus fields for binary operator
4209 -- plus fields for expression
4211 -- N_Op_Concat
4212 -- Sloc points to &
4213 -- Is_Component_Left_Opnd (Flag13-Sem)
4214 -- Is_Component_Right_Opnd (Flag14-Sem)
4215 -- plus fields for binary operator
4216 -- plus fields for expression
4218 -- N_Op_Multiply
4219 -- Sloc points to *
4220 -- Treat_Fixed_As_Integer (Flag14-Sem)
4221 -- Rounded_Result (Flag18-Sem)
4222 -- plus fields for binary operator
4223 -- plus fields for expression
4225 -- N_Op_Divide
4226 -- Sloc points to /
4227 -- Treat_Fixed_As_Integer (Flag14-Sem)
4228 -- Do_Division_Check (Flag13-Sem)
4229 -- Rounded_Result (Flag18-Sem)
4230 -- plus fields for binary operator
4231 -- plus fields for expression
4233 -- N_Op_Mod
4234 -- Sloc points to MOD
4235 -- Treat_Fixed_As_Integer (Flag14-Sem)
4236 -- Do_Division_Check (Flag13-Sem)
4237 -- plus fields for binary operator
4238 -- plus fields for expression
4240 -- N_Op_Rem
4241 -- Sloc points to REM
4242 -- Treat_Fixed_As_Integer (Flag14-Sem)
4243 -- Do_Division_Check (Flag13-Sem)
4244 -- plus fields for binary operator
4245 -- plus fields for expression
4247 -- N_Op_Expon
4248 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4249 -- Sloc points to **
4250 -- plus fields for binary operator
4251 -- plus fields for expression
4253 -- N_Op_Plus
4254 -- Sloc points to + (unary)
4255 -- plus fields for unary operator
4256 -- plus fields for expression
4258 -- N_Op_Minus
4259 -- Sloc points to - (unary)
4260 -- plus fields for unary operator
4261 -- plus fields for expression
4263 -- N_Op_Abs
4264 -- Sloc points to ABS
4265 -- plus fields for unary operator
4266 -- plus fields for expression
4268 -- N_Op_Not
4269 -- Sloc points to NOT
4270 -- plus fields for unary operator
4271 -- plus fields for expression
4273 -- See also shift operators in section B.2
4275 -- Note on fixed-point operations passed to Gigi: For adding operators,
4276 -- the semantics is to treat these simply as integer operations, with
4277 -- the small values being ignored (the bounds are already stored in
4278 -- units of small, so that constraint checking works as usual). For the
4279 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4280 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4281 -- thus treat these nodes in identical manner, ignoring small values.
4283 -- Note on equality/inequality tests for records. In the expanded tree,
4284 -- record comparisons are always expanded to be a series of component
4285 -- comparisons, so the back end will never see an equality or inequality
4286 -- operation with operands of a record type.
4288 -- Note on overflow handling: When the overflow checking mode is set to
4289 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4290 -- be modified to use a larger type for the operands and result. In
4291 -- the case where the computed range exceeds that of Long_Long_Integer,
4292 -- and we are running in ELIMINATED mode, the operator node will be
4293 -- changed to be a call to the appropriate routine in System.Bignums.
4295 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4296 -- for signed integer types (since there is no equivalent operator in
4297 -- C). Instead we rewrite such an operation in terms of REM (which is
4298 -- % in C) and other C-available operators.
4300 ------------------------------------
4301 -- 4.5.7 Conditional Expressions --
4302 ------------------------------------
4304 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4306 --------------------------
4307 -- 4.5.7 If Expression --
4308 ----------------------------
4310 -- IF_EXPRESSION ::=
4311 -- if CONDITION then DEPENDENT_EXPRESSION
4312 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4313 -- [else DEPENDENT_EXPRESSION]
4315 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4317 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4318 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4319 -- the Is_Elsif flag is set on the inner if expression.
4321 -- N_If_Expression
4322 -- Sloc points to IF or ELSIF keyword
4323 -- Expressions (List1)
4324 -- Then_Actions (List2-Sem)
4325 -- Else_Actions (List3-Sem)
4326 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4327 -- Do_Overflow_Check (Flag17-Sem)
4328 -- plus fields for expression
4330 -- Expressions here is a three-element list, whose first element is the
4331 -- condition, the second element is the dependent expression after THEN
4332 -- and the third element is the dependent expression after the ELSE
4333 -- (explicitly set to True if missing).
4335 -- Note: the Then_Actions and Else_Actions fields are always set to
4336 -- No_List in the tree passed to the back end. These are used only
4337 -- for temporary processing purposes in the expander. Even though they
4338 -- are semantic fields, their parent pointers are set because analysis
4339 -- of actions nodes in those lists may generate additional actions that
4340 -- need to know their insertion point (for example for the creation of
4341 -- transient scopes).
4343 -- Note: in the tree passed to the back end, if the result type is
4344 -- an unconstrained array, the if expression can only appears in the
4345 -- initializing expression of an object declaration (this avoids the
4346 -- back end having to create a variable length temporary on the fly).
4348 ----------------------------
4349 -- 4.5.7 Case Expression --
4350 ----------------------------
4352 -- CASE_EXPRESSION ::=
4353 -- case SELECTING_EXPRESSION is
4354 -- CASE_EXPRESSION_ALTERNATIVE
4355 -- {,CASE_EXPRESSION_ALTERNATIVE}
4357 -- Note that the Alternatives cannot include pragmas (this contrasts
4358 -- with the situation of case statements where pragmas are allowed).
4360 -- N_Case_Expression
4361 -- Sloc points to CASE
4362 -- Expression (Node3) (the selecting expression)
4363 -- Alternatives (List4) (the case expression alternatives)
4364 -- Do_Overflow_Check (Flag17-Sem)
4366 ----------------------------------------
4367 -- 4.5.7 Case Expression Alternative --
4368 ----------------------------------------
4370 -- CASE_EXPRESSION_ALTERNATIVE ::=
4371 -- when DISCRETE_CHOICE_LIST =>
4372 -- DEPENDENT_EXPRESSION
4374 -- N_Case_Expression_Alternative
4375 -- Sloc points to WHEN
4376 -- Actions (List1)
4377 -- Discrete_Choices (List4)
4378 -- Expression (Node3)
4379 -- Has_SP_Choice (Flag15-Sem)
4381 -- Note: The Actions field temporarily holds any actions associated with
4382 -- evaluation of the Expression. During expansion of the case expression
4383 -- these actions are wrapped into an N_Expressions_With_Actions node
4384 -- replacing the original expression.
4386 -- Note: this node never appears in the tree passed to the back end,
4387 -- since the expander converts case expressions into case statements.
4389 ---------------------------------
4390 -- 4.5.9 Quantified Expression --
4391 ---------------------------------
4393 -- QUANTIFIED_EXPRESSION ::=
4394 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4395 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4397 -- QUANTIFIER ::= all | some
4399 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4400 -- is present at a time, in which case the other one is empty.
4402 -- N_Quantified_Expression
4403 -- Sloc points to FOR
4404 -- Iterator_Specification (Node2)
4405 -- Loop_Parameter_Specification (Node4)
4406 -- Condition (Node1)
4407 -- All_Present (Flag15)
4409 --------------------------
4410 -- 4.6 Type Conversion --
4411 --------------------------
4413 -- TYPE_CONVERSION ::=
4414 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4416 -- In the (NAME) case, the name is stored as the expression
4418 -- Note: the parser never generates a type conversion node, since it
4419 -- looks like an indexed component which is generated by preference.
4420 -- The semantic pass must correct this misidentification.
4422 -- Gigi handles conversions that involve no change in the root type,
4423 -- and also all conversions from integer to floating-point types.
4424 -- Conversions from floating-point to integer are only handled in
4425 -- the case where Float_Truncate flag set. Other conversions from
4426 -- floating-point to integer (involving rounding) and all conversions
4427 -- involving fixed-point types are handled by the expander.
4429 -- Sprint syntax if Float_Truncate set: X^(Y)
4430 -- Sprint syntax if Conversion_OK set X?(Y)
4431 -- Sprint syntax if both flags set X?^(Y)
4433 -- Note: If either the operand or result type is fixed-point, Gigi will
4434 -- only see a type conversion node with Conversion_OK set. The front end
4435 -- takes care of all handling of small's for fixed-point conversions.
4437 -- N_Type_Conversion
4438 -- Sloc points to first token of subtype mark
4439 -- Subtype_Mark (Node4)
4440 -- Expression (Node3)
4441 -- Do_Discriminant_Check (Flag1-Sem)
4442 -- Do_Length_Check (Flag4-Sem)
4443 -- Float_Truncate (Flag11-Sem)
4444 -- Do_Tag_Check (Flag13-Sem)
4445 -- Conversion_OK (Flag14-Sem)
4446 -- Do_Overflow_Check (Flag17-Sem)
4447 -- Rounded_Result (Flag18-Sem)
4448 -- plus fields for expression
4450 -- Note: if a range check is required, then the Do_Range_Check flag
4451 -- is set in the Expression with the check being done against the
4452 -- target type range (after the base type conversion, if any).
4454 -------------------------------
4455 -- 4.7 Qualified Expression --
4456 -------------------------------
4458 -- QUALIFIED_EXPRESSION ::=
4459 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4461 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4462 -- the expression, so the Expression field of this node always points
4463 -- to a parenthesized expression in this case (i.e. Paren_Count will
4464 -- always be non-zero for the referenced expression if it is not an
4465 -- aggregate).
4467 -- N_Qualified_Expression
4468 -- Sloc points to apostrophe
4469 -- Subtype_Mark (Node4)
4470 -- Expression (Node3) expression or aggregate
4471 -- plus fields for expression
4473 --------------------
4474 -- 4.8 Allocator --
4475 --------------------
4477 -- ALLOCATOR ::=
4478 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4479 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4481 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4483 -- Sprint syntax (when storage pool present)
4484 -- new xxx (storage_pool = pool)
4485 -- or
4486 -- new (subpool) xxx (storage_pool = pool)
4488 -- N_Allocator
4489 -- Sloc points to NEW
4490 -- Expression (Node3) subtype indication or qualified expression
4491 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4492 -- Storage_Pool (Node1-Sem)
4493 -- Procedure_To_Call (Node2-Sem)
4494 -- Null_Exclusion_Present (Flag11)
4495 -- No_Initialization (Flag13-Sem)
4496 -- Is_Static_Coextension (Flag14-Sem)
4497 -- Do_Storage_Check (Flag17-Sem)
4498 -- Is_Dynamic_Coextension (Flag18-Sem)
4499 -- plus fields for expression
4501 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4502 -- This flag has a special function in conjunction with the restriction
4503 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4504 -- is not set. This means that if a source allocator is replaced with
4505 -- a constructed allocator, the Comes_From_Source flag should be copied
4506 -- to the newly created allocator.
4508 ---------------------------------
4509 -- 5.1 Sequence Of Statements --
4510 ---------------------------------
4512 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4514 -- Note: Although the parser will not accept a declaration as a
4515 -- statement, the semantic analyzer may insert declarations (e.g.
4516 -- declarations of implicit types needed for execution of other
4517 -- statements) into a sequence of statements, so the code generator
4518 -- should be prepared to accept a declaration where a statement is
4519 -- expected. Note also that pragmas can appear as statements.
4521 --------------------
4522 -- 5.1 Statement --
4523 --------------------
4525 -- STATEMENT ::=
4526 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4528 -- There is no explicit node in the tree for a statement. Instead, the
4529 -- individual statement appears directly. Labels are treated as a
4530 -- kind of statement, i.e. they are linked into a statement list at
4531 -- the point they appear, so the labeled statement appears following
4532 -- the label or labels in the statement list.
4534 ---------------------------
4535 -- 5.1 Simple Statement --
4536 ---------------------------
4538 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4539 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4540 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4541 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4542 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4543 -- | ABORT_STATEMENT | RAISE_STATEMENT
4544 -- | CODE_STATEMENT
4546 -----------------------------
4547 -- 5.1 Compound Statement --
4548 -----------------------------
4550 -- COMPOUND_STATEMENT ::=
4551 -- IF_STATEMENT | CASE_STATEMENT
4552 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4553 -- | EXTENDED_RETURN_STATEMENT
4554 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4556 -------------------------
4557 -- 5.1 Null Statement --
4558 -------------------------
4560 -- NULL_STATEMENT ::= null;
4562 -- N_Null_Statement
4563 -- Sloc points to NULL
4565 ----------------
4566 -- 5.1 Label --
4567 ----------------
4569 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4571 -- Note that the occurrence of a label is not a defining identifier,
4572 -- but rather a referencing occurrence. The defining occurrence is
4573 -- in the implicit label declaration which occurs in the innermost
4574 -- enclosing block.
4576 -- N_Label
4577 -- Sloc points to <<
4578 -- Identifier (Node1) direct name of statement identifier
4579 -- Exception_Junk (Flag8-Sem)
4581 -- Note: Before Ada 2012, a label is always followed by a statement,
4582 -- and this is true in the tree even in Ada 2012 mode (the parser
4583 -- inserts a null statement marked with Comes_From_Source False).
4585 -------------------------------
4586 -- 5.1 Statement Identifier --
4587 -------------------------------
4589 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4591 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4592 -- (not an OPERATOR_SYMBOL)
4594 -------------------------------
4595 -- 5.2 Assignment Statement --
4596 -------------------------------
4598 -- ASSIGNMENT_STATEMENT ::=
4599 -- variable_NAME := EXPRESSION;
4601 -- N_Assignment_Statement
4602 -- Sloc points to :=
4603 -- Name (Node2)
4604 -- Expression (Node3)
4605 -- Do_Discriminant_Check (Flag1-Sem)
4606 -- Do_Tag_Check (Flag13-Sem)
4607 -- Do_Length_Check (Flag4-Sem)
4608 -- Forwards_OK (Flag5-Sem)
4609 -- Backwards_OK (Flag6-Sem)
4610 -- No_Ctrl_Actions (Flag7-Sem)
4611 -- Componentwise_Assignment (Flag14-Sem)
4612 -- Suppress_Assignment_Checks (Flag18-Sem)
4614 -- Note: if a range check is required, then the Do_Range_Check flag
4615 -- is set in the Expression (right hand side), with the check being
4616 -- done against the type of the Name (left hand side).
4618 -- Note: the back end places some restrictions on the form of the
4619 -- Expression field. If the object being assigned to is Atomic, then
4620 -- the Expression may not have the form of an aggregate (since this
4621 -- might cause the back end to generate separate assignments). In this
4622 -- case the front end must generate an extra temporary and initialize
4623 -- this temporary as required (the temporary itself is not atomic).
4625 -----------------------
4626 -- 5.3 If Statement --
4627 -----------------------
4629 -- IF_STATEMENT ::=
4630 -- if CONDITION then
4631 -- SEQUENCE_OF_STATEMENTS
4632 -- {elsif CONDITION then
4633 -- SEQUENCE_OF_STATEMENTS}
4634 -- [else
4635 -- SEQUENCE_OF_STATEMENTS]
4636 -- end if;
4638 -- Gigi restriction: This expander ensures that the type of the
4639 -- Condition fields is always Standard.Boolean, even if the type
4640 -- in the source is some non-standard boolean type.
4642 -- N_If_Statement
4643 -- Sloc points to IF
4644 -- Condition (Node1)
4645 -- Then_Statements (List2)
4646 -- Elsif_Parts (List3) (set to No_List if none present)
4647 -- Else_Statements (List4) (set to No_List if no else part present)
4648 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4649 -- From_Conditional_Expression (Flag1-Sem)
4651 -- N_Elsif_Part
4652 -- Sloc points to ELSIF
4653 -- Condition (Node1)
4654 -- Then_Statements (List2)
4655 -- Condition_Actions (List3-Sem)
4657 --------------------
4658 -- 5.3 Condition --
4659 --------------------
4661 -- CONDITION ::= boolean_EXPRESSION
4663 -------------------------
4664 -- 5.4 Case Statement --
4665 -------------------------
4667 -- CASE_STATEMENT ::=
4668 -- case EXPRESSION is
4669 -- CASE_STATEMENT_ALTERNATIVE
4670 -- {CASE_STATEMENT_ALTERNATIVE}
4671 -- end case;
4673 -- Note: the Alternatives can contain pragmas. These only occur at
4674 -- the start of the list, since any pragmas occurring after the first
4675 -- alternative are absorbed into the corresponding statement sequence.
4677 -- N_Case_Statement
4678 -- Sloc points to CASE
4679 -- Expression (Node3)
4680 -- Alternatives (List4)
4681 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4682 -- From_Conditional_Expression (Flag1-Sem)
4684 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4685 -- followed by a statement, and this is true in the tree even in Ada
4686 -- 2012 mode (the parser inserts a null statement marked with the flag
4687 -- Comes_From_Source False).
4689 -------------------------------------
4690 -- 5.4 Case Statement Alternative --
4691 -------------------------------------
4693 -- CASE_STATEMENT_ALTERNATIVE ::=
4694 -- when DISCRETE_CHOICE_LIST =>
4695 -- SEQUENCE_OF_STATEMENTS
4697 -- N_Case_Statement_Alternative
4698 -- Sloc points to WHEN
4699 -- Discrete_Choices (List4)
4700 -- Statements (List3)
4701 -- Has_SP_Choice (Flag15-Sem)
4703 -- Note: in the list of Discrete_Choices, the tree passed to the back
4704 -- end does not have choice entries corresponding to names of statically
4705 -- predicated subtypes. Such entries are always expanded out to the list
4706 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4707 -- mode does not have this expansion, and has the original choices.
4709 -------------------------
4710 -- 5.5 Loop Statement --
4711 -------------------------
4713 -- LOOP_STATEMENT ::=
4714 -- [loop_STATEMENT_IDENTIFIER :]
4715 -- [ITERATION_SCHEME] loop
4716 -- SEQUENCE_OF_STATEMENTS
4717 -- end loop [loop_IDENTIFIER];
4719 -- Note: The occurrence of a loop label is not a defining identifier
4720 -- but rather a referencing occurrence. The defining occurrence is in
4721 -- the implicit label declaration which occurs in the innermost
4722 -- enclosing block.
4724 -- Note: there is always a loop statement identifier present in the
4725 -- tree, even if none was given in the source. In the case where no loop
4726 -- identifier is given in the source, the parser creates a name of the
4727 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4728 -- that the loop names created in this manner do not conflict with any
4729 -- user defined identifiers), and the flag Has_Created_Identifier is set
4730 -- to True. The only exception to the rule that all loop statement nodes
4731 -- have identifiers occurs for loops constructed by the expander, and
4732 -- the semantic analyzer will create and supply dummy loop identifiers
4733 -- in these cases.
4735 -- N_Loop_Statement
4736 -- Sloc points to LOOP
4737 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4738 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4739 -- Statements (List3)
4740 -- End_Label (Node4)
4741 -- Has_Created_Identifier (Flag15)
4742 -- Is_Null_Loop (Flag16)
4743 -- Suppress_Loop_Warnings (Flag17)
4745 -- Note: the parser fills in the Identifier field if there is an
4746 -- explicit loop identifier. Otherwise the parser leaves this field
4747 -- set to Empty, and then the semantic processing for a loop statement
4748 -- creates an identifier, setting the Has_Created_Identifier flag to
4749 -- True. So after semantic analysis, the Identifier is always set,
4750 -- referencing an identifier whose entity has an Ekind of E_Loop.
4752 ---------------------------
4753 -- 5.5 Iteration Scheme --
4754 ---------------------------
4756 -- ITERATION_SCHEME ::=
4757 -- while CONDITION
4758 -- | for LOOP_PARAMETER_SPECIFICATION
4759 -- | for ITERATOR_SPECIFICATION
4761 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4762 -- is present at a time, in which case the other one is empty. Both are
4763 -- empty in the case of a WHILE loop.
4765 -- Gigi restriction: The expander ensures that the type of the Condition
4766 -- field is always Standard.Boolean, even if the type in the source is
4767 -- some non-standard boolean type.
4769 -- N_Iteration_Scheme
4770 -- Sloc points to WHILE or FOR
4771 -- Condition (Node1) (set to Empty if FOR case)
4772 -- Condition_Actions (List3-Sem)
4773 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4774 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4776 ---------------------------------------
4777 -- 5.5 Loop Parameter Specification --
4778 ---------------------------------------
4780 -- LOOP_PARAMETER_SPECIFICATION ::=
4781 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4783 -- N_Loop_Parameter_Specification
4784 -- Sloc points to first identifier
4785 -- Defining_Identifier (Node1)
4786 -- Reverse_Present (Flag15)
4787 -- Discrete_Subtype_Definition (Node4)
4789 -----------------------------------
4790 -- 5.5.1 Iterator Specification --
4791 -----------------------------------
4793 -- ITERATOR_SPECIFICATION ::=
4794 -- DEFINING_IDENTIFIER in [reverse] NAME
4795 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4797 -- N_Iterator_Specification
4798 -- Sloc points to defining identifier
4799 -- Defining_Identifier (Node1)
4800 -- Name (Node2)
4801 -- Reverse_Present (Flag15)
4802 -- Of_Present (Flag16)
4803 -- Subtype_Indication (Node5)
4805 -- Note: The Of_Present flag distinguishes the two forms
4807 --------------------------
4808 -- 5.6 Block Statement --
4809 --------------------------
4811 -- BLOCK_STATEMENT ::=
4812 -- [block_STATEMENT_IDENTIFIER:]
4813 -- [declare
4814 -- DECLARATIVE_PART]
4815 -- begin
4816 -- HANDLED_SEQUENCE_OF_STATEMENTS
4817 -- end [block_IDENTIFIER];
4819 -- Note that the occurrence of a block identifier is not a defining
4820 -- identifier, but rather a referencing occurrence. The defining
4821 -- occurrence is an E_Block entity declared by the implicit label
4822 -- declaration which occurs in the innermost enclosing block statement
4823 -- or body; the block identifier denotes that E_Block.
4825 -- For block statements that come from source code, there is always a
4826 -- block statement identifier present in the tree, denoting an E_Block.
4827 -- In the case where no block identifier is given in the source,
4828 -- the parser creates a name of the form B_n, where n is a decimal
4829 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4830 -- constructed by the expander usually have no identifier, and no
4831 -- corresponding entity.
4833 -- Note: the block statement created for an extended return statement
4834 -- has an entity, and this entity is an E_Return_Statement, rather than
4835 -- the usual E_Block.
4837 -- Note: Exception_Junk is set for the wrapping blocks created during
4838 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4840 -- Note: from a control flow viewpoint, a block statement defines an
4841 -- extended basic block, i.e. the entry of the block dominates every
4842 -- statement in the sequence. When generating new statements with
4843 -- exception handlers in the expander at the end of a sequence that
4844 -- comes from source code, it can be necessary to wrap them all in a
4845 -- block statement in order to expose the implicit control flow to
4846 -- gigi and thus prevent it from issuing bogus control flow warnings.
4848 -- N_Block_Statement
4849 -- Sloc points to DECLARE or BEGIN
4850 -- Identifier (Node1) block direct name (set to Empty if not present)
4851 -- Declarations (List2) (set to No_List if no DECLARE part)
4852 -- Handled_Statement_Sequence (Node4)
4853 -- Cleanup_Actions (List5-Sem)
4854 -- Is_Task_Master (Flag5-Sem)
4855 -- Activation_Chain_Entity (Node3-Sem)
4856 -- Has_Created_Identifier (Flag15)
4857 -- Is_Task_Allocation_Block (Flag6)
4858 -- Is_Asynchronous_Call_Block (Flag7)
4859 -- Exception_Junk (Flag8-Sem)
4860 -- Is_Finalization_Wrapper (Flag9-Sem)
4862 -------------------------
4863 -- 5.7 Exit Statement --
4864 -------------------------
4866 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4868 -- Gigi restriction: The expander ensures that the type of the Condition
4869 -- field is always Standard.Boolean, even if the type in the source is
4870 -- some non-standard boolean type.
4872 -- N_Exit_Statement
4873 -- Sloc points to EXIT
4874 -- Name (Node2) (set to Empty if no loop name present)
4875 -- Condition (Node1) (set to Empty if no WHEN part present)
4876 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4878 -------------------------
4879 -- 5.9 Goto Statement --
4880 -------------------------
4882 -- GOTO_STATEMENT ::= goto label_NAME;
4884 -- N_Goto_Statement
4885 -- Sloc points to GOTO
4886 -- Name (Node2)
4887 -- Exception_Junk (Flag8-Sem)
4889 ---------------------------------
4890 -- 6.1 Subprogram Declaration --
4891 ---------------------------------
4893 -- SUBPROGRAM_DECLARATION ::=
4894 -- SUBPROGRAM_SPECIFICATION
4895 -- [ASPECT_SPECIFICATIONS];
4897 -- N_Subprogram_Declaration
4898 -- Sloc points to FUNCTION or PROCEDURE
4899 -- Specification (Node1)
4900 -- Body_To_Inline (Node3-Sem)
4901 -- Corresponding_Body (Node5-Sem)
4902 -- Parent_Spec (Node4-Sem)
4904 ------------------------------------------
4905 -- 6.1 Abstract Subprogram Declaration --
4906 ------------------------------------------
4908 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4909 -- SUBPROGRAM_SPECIFICATION is abstract
4910 -- [ASPECT_SPECIFICATIONS];
4912 -- N_Abstract_Subprogram_Declaration
4913 -- Sloc points to ABSTRACT
4914 -- Specification (Node1)
4916 -----------------------------------
4917 -- 6.1 Subprogram Specification --
4918 -----------------------------------
4920 -- SUBPROGRAM_SPECIFICATION ::=
4921 -- [[not] overriding]
4922 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4923 -- | [[not] overriding]
4924 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4926 -- Note: there are no separate nodes for the profiles, instead the
4927 -- information appears directly in the following nodes.
4929 -- N_Function_Specification
4930 -- Sloc points to FUNCTION
4931 -- Defining_Unit_Name (Node1) (the designator)
4932 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4933 -- Null_Exclusion_Present (Flag11)
4934 -- Result_Definition (Node4) for result subtype
4935 -- Generic_Parent (Node5-Sem)
4936 -- Must_Override (Flag14) set if overriding indicator present
4937 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4939 -- N_Procedure_Specification
4940 -- Sloc points to PROCEDURE
4941 -- Defining_Unit_Name (Node1)
4942 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4943 -- Generic_Parent (Node5-Sem)
4944 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4945 -- Must_Override (Flag14) set if overriding indicator present
4946 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4948 -- Note: overriding indicator is an Ada 2005 feature
4950 ---------------------
4951 -- 6.1 Designator --
4952 ---------------------
4954 -- DESIGNATOR ::=
4955 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4957 -- Designators that are simply identifiers or operator symbols appear
4958 -- directly in the tree in this form. The following node is used only
4959 -- in the case where the designator has a parent unit name component.
4961 -- N_Designator
4962 -- Sloc points to period
4963 -- Name (Node2) holds the parent unit name
4964 -- Identifier (Node1)
4966 -- Note: Name is always non-Empty, since this node is only used for the
4967 -- case where a parent library unit package name is present.
4969 -- Note that the identifier can also be an operator symbol here
4971 ------------------------------
4972 -- 6.1 Defining Designator --
4973 ------------------------------
4975 -- DEFINING_DESIGNATOR ::=
4976 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4978 -------------------------------------
4979 -- 6.1 Defining Program Unit Name --
4980 -------------------------------------
4982 -- DEFINING_PROGRAM_UNIT_NAME ::=
4983 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4985 -- The parent unit name is present only in the case of a child unit name
4986 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
4987 -- at scope level one). If no such name is present, the defining program
4988 -- unit name is represented simply as the defining identifier. In the
4989 -- child unit case, the following node is used to represent the child
4990 -- unit name.
4992 -- N_Defining_Program_Unit_Name
4993 -- Sloc points to period
4994 -- Name (Node2) holds the parent unit name
4995 -- Defining_Identifier (Node1)
4997 -- Note: Name is always non-Empty, since this node is only used for the
4998 -- case where a parent unit name is present.
5000 --------------------------
5001 -- 6.1 Operator Symbol --
5002 --------------------------
5004 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5006 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5007 -- the corresponding fields of an N_Character_Literal node. This allows
5008 -- easy conversion of the operator symbol node into a character literal
5009 -- node in the case where a string constant of the form of an operator
5010 -- symbol is scanned out as such, but turns out semantically to be a
5011 -- string literal that is not an operator. For details see Sinfo.CN.
5012 -- Change_Operator_Symbol_To_String_Literal.
5014 -- N_Operator_Symbol
5015 -- Sloc points to literal
5016 -- Chars (Name1) contains the Name_Id for the operator symbol
5017 -- Strval (Str3) Id of string value. This is used if the operator
5018 -- symbol turns out to be a normal string after all.
5019 -- Entity (Node4-Sem)
5020 -- Associated_Node (Node4-Sem)
5021 -- Has_Private_View (Flag11-Sem) set in generic units.
5022 -- Etype (Node5-Sem)
5024 -- Note: the Strval field may be set to No_String for generated
5025 -- operator symbols that are known not to be string literals
5026 -- semantically.
5028 -----------------------------------
5029 -- 6.1 Defining Operator Symbol --
5030 -----------------------------------
5032 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5034 -- A defining operator symbol is an entity, which has additional
5035 -- fields depending on the setting of the Ekind field. These
5036 -- additional fields are defined (and access subprograms declared)
5037 -- in package Einfo.
5039 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5040 -- are deliberately layed out to match the layout of fields in an
5041 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5042 -- an operator symbol node into a defining operator symbol node.
5043 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5044 -- for further details.
5046 -- N_Defining_Operator_Symbol
5047 -- Sloc points to literal
5048 -- Chars (Name1) contains the Name_Id for the operator symbol
5049 -- Next_Entity (Node2-Sem)
5050 -- Scope (Node3-Sem)
5051 -- Etype (Node5-Sem)
5053 ----------------------------
5054 -- 6.1 Parameter Profile --
5055 ----------------------------
5057 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5059 ---------------------------------------
5060 -- 6.1 Parameter and Result Profile --
5061 ---------------------------------------
5063 -- PARAMETER_AND_RESULT_PROFILE ::=
5064 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5065 -- | [FORMAL_PART] return ACCESS_DEFINITION
5067 -- There is no explicit node in the tree for a parameter and result
5068 -- profile. Instead the information appears directly in the parent.
5070 ----------------------
5071 -- 6.1 Formal Part --
5072 ----------------------
5074 -- FORMAL_PART ::=
5075 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5077 ----------------------------------
5078 -- 6.1 Parameter Specification --
5079 ----------------------------------
5081 -- PARAMETER_SPECIFICATION ::=
5082 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5083 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5084 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5085 -- [:= DEFAULT_EXPRESSION]
5087 -- Although the syntax allows multiple identifiers in the list, the
5088 -- semantics is as though successive specifications were given with
5089 -- identical type definition and expression components. To simplify
5090 -- semantic processing, the parser represents a multiple declaration
5091 -- case as a sequence of single Specifications, using the More_Ids and
5092 -- Prev_Ids flags to preserve the original source form as described
5093 -- in the section on "Handling of Defining Identifier Lists".
5095 -- ALIASED can only be present in Ada 2012 mode
5097 -- N_Parameter_Specification
5098 -- Sloc points to first identifier
5099 -- Defining_Identifier (Node1)
5100 -- Aliased_Present (Flag4)
5101 -- In_Present (Flag15)
5102 -- Out_Present (Flag17)
5103 -- Null_Exclusion_Present (Flag11)
5104 -- Parameter_Type (Node2) subtype mark or access definition
5105 -- Expression (Node3) (set to Empty if no default expression present)
5106 -- Do_Accessibility_Check (Flag13-Sem)
5107 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5108 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5109 -- Default_Expression (Node5-Sem)
5111 ---------------
5112 -- 6.1 Mode --
5113 ---------------
5115 -- MODE ::= [in] | in out | out
5117 -- There is no explicit node in the tree for the Mode. Instead the
5118 -- In_Present and Out_Present flags are set in the parent node to
5119 -- record the presence of keywords specifying the mode.
5121 --------------------------
5122 -- 6.3 Subprogram Body --
5123 --------------------------
5125 -- SUBPROGRAM_BODY ::=
5126 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5127 -- DECLARATIVE_PART
5128 -- begin
5129 -- HANDLED_SEQUENCE_OF_STATEMENTS
5130 -- end [DESIGNATOR];
5132 -- N_Subprogram_Body
5133 -- Sloc points to FUNCTION or PROCEDURE
5134 -- Specification (Node1)
5135 -- Declarations (List2)
5136 -- Handled_Statement_Sequence (Node4)
5137 -- Activation_Chain_Entity (Node3-Sem)
5138 -- Corresponding_Spec (Node5-Sem)
5139 -- Acts_As_Spec (Flag4-Sem)
5140 -- Bad_Is_Detected (Flag15) used only by parser
5141 -- Do_Storage_Check (Flag17-Sem)
5142 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5143 -- Is_Entry_Barrier_Function (Flag8-Sem)
5144 -- Is_Task_Master (Flag5-Sem)
5145 -- Was_Originally_Stub (Flag13-Sem)
5146 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5148 -------------------------
5149 -- Expression Function --
5150 -------------------------
5152 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5153 -- and put in its proper section when we know exactly where that is.
5155 -- EXPRESSION_FUNCTION ::=
5156 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5157 -- [ASPECT_SPECIFICATIONS];
5159 -- N_Expression_Function
5160 -- Sloc points to FUNCTION
5161 -- Specification (Node1)
5162 -- Expression (Node3)
5163 -- Corresponding_Spec (Node5-Sem)
5165 -----------------------------------
5166 -- 6.4 Procedure Call Statement --
5167 -----------------------------------
5169 -- PROCEDURE_CALL_STATEMENT ::=
5170 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5172 -- Note: the reason that a procedure call has expression fields is that
5173 -- it semantically resembles an expression, e.g. overloading is allowed
5174 -- and a type is concocted for semantic processing purposes. Certain of
5175 -- these fields, such as Parens are not relevant, but it is easier to
5176 -- just supply all of them together.
5178 -- N_Procedure_Call_Statement
5179 -- Sloc points to first token of name or prefix
5180 -- Name (Node2) stores name or prefix
5181 -- Parameter_Associations (List3) (set to No_List if no
5182 -- actual parameter part)
5183 -- First_Named_Actual (Node4-Sem)
5184 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5185 -- Do_Tag_Check (Flag13-Sem)
5186 -- No_Elaboration_Check (Flag14-Sem)
5187 -- ABE_Is_Certain (Flag18-Sem)
5188 -- plus fields for expression
5190 -- If any IN parameter requires a range check, then the corresponding
5191 -- argument expression has the Do_Range_Check flag set, and the range
5192 -- check is done against the formal type. Note that this argument
5193 -- expression may appear directly in the Parameter_Associations list,
5194 -- or may be a descendent of an N_Parameter_Association node that
5195 -- appears in this list.
5197 ------------------------
5198 -- 6.4 Function Call --
5199 ------------------------
5201 -- FUNCTION_CALL ::=
5202 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5204 -- Note: the parser may generate an indexed component node or simply
5205 -- a name node instead of a function call node. The semantic pass must
5206 -- correct this misidentification.
5208 -- N_Function_Call
5209 -- Sloc points to first token of name or prefix
5210 -- Name (Node2) stores name or prefix
5211 -- Parameter_Associations (List3) (set to No_List if no
5212 -- actual parameter part)
5213 -- First_Named_Actual (Node4-Sem)
5214 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5215 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5216 -- Do_Tag_Check (Flag13-Sem)
5217 -- No_Elaboration_Check (Flag14-Sem)
5218 -- ABE_Is_Certain (Flag18-Sem)
5219 -- plus fields for expression
5221 --------------------------------
5222 -- 6.4 Actual Parameter Part --
5223 --------------------------------
5225 -- ACTUAL_PARAMETER_PART ::=
5226 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5228 --------------------------------
5229 -- 6.4 Parameter Association --
5230 --------------------------------
5232 -- PARAMETER_ASSOCIATION ::=
5233 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5235 -- Note: the N_Parameter_Association node is built only if a formal
5236 -- parameter selector name is present, otherwise the parameter
5237 -- association appears in the tree simply as the node for the
5238 -- explicit actual parameter.
5240 -- N_Parameter_Association
5241 -- Sloc points to formal parameter
5242 -- Selector_Name (Node2) (always non-Empty)
5243 -- Explicit_Actual_Parameter (Node3)
5244 -- Next_Named_Actual (Node4-Sem)
5245 -- Is_Accessibility_Actual (Flag13-Sem)
5247 ---------------------------
5248 -- 6.4 Actual Parameter --
5249 ---------------------------
5251 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5253 ---------------------------
5254 -- 6.5 Return Statement --
5255 ---------------------------
5257 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5259 -- EXTENDED_RETURN_STATEMENT ::=
5260 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5261 -- [:= EXPRESSION] [do
5262 -- HANDLED_SEQUENCE_OF_STATEMENTS
5263 -- end return];
5265 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5267 -- The term "return statement" is defined in 6.5 to mean either a
5268 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5269 -- the use of this term, since it used to mean someting else in earlier
5270 -- versions of Ada.
5272 -- N_Simple_Return_Statement
5273 -- Sloc points to RETURN
5274 -- Return_Statement_Entity (Node5-Sem)
5275 -- Expression (Node3) (set to Empty if no expression present)
5276 -- Storage_Pool (Node1-Sem)
5277 -- Procedure_To_Call (Node2-Sem)
5278 -- Do_Tag_Check (Flag13-Sem)
5279 -- By_Ref (Flag5-Sem)
5280 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5282 -- Note: Return_Statement_Entity points to an E_Return_Statement
5284 -- If a range check is required, then Do_Range_Check is set on the
5285 -- Expression. The check is against the return subtype of the function.
5287 -- N_Extended_Return_Statement
5288 -- Sloc points to RETURN
5289 -- Return_Statement_Entity (Node5-Sem)
5290 -- Return_Object_Declarations (List3)
5291 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5292 -- Storage_Pool (Node1-Sem)
5293 -- Procedure_To_Call (Node2-Sem)
5294 -- Do_Tag_Check (Flag13-Sem)
5295 -- By_Ref (Flag5-Sem)
5297 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5299 -- Note that Return_Object_Declarations is a list containing the
5300 -- N_Object_Declaration -- see comment on this field above.
5302 -- The declared object will have Is_Return_Object = True.
5304 -- There is no such syntactic category as return_object_declaration
5305 -- in the RM. Return_Object_Declarations represents this portion of
5306 -- the syntax for EXTENDED_RETURN_STATEMENT:
5307 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5308 -- [:= EXPRESSION]
5310 -- There are two entities associated with an extended_return_statement:
5311 -- the Return_Statement_Entity represents the statement itself,
5312 -- and the Defining_Identifier of the Object_Declaration in
5313 -- Return_Object_Declarations represents the object being
5314 -- returned. N_Simple_Return_Statement has only the former.
5316 ------------------------------
5317 -- 7.1 Package Declaration --
5318 ------------------------------
5320 -- PACKAGE_DECLARATION ::=
5321 -- PACKAGE_SPECIFICATION;
5323 -- Note: the activation chain entity for a package spec is used for
5324 -- all tasks declared in the package spec, or in the package body.
5326 -- N_Package_Declaration
5327 -- Sloc points to PACKAGE
5328 -- Specification (Node1)
5329 -- Corresponding_Body (Node5-Sem)
5330 -- Parent_Spec (Node4-Sem)
5331 -- Activation_Chain_Entity (Node3-Sem)
5333 --------------------------------
5334 -- 7.1 Package Specification --
5335 --------------------------------
5337 -- PACKAGE_SPECIFICATION ::=
5338 -- package DEFINING_PROGRAM_UNIT_NAME
5339 -- [ASPECT_SPECIFICATIONS]
5340 -- is
5341 -- {BASIC_DECLARATIVE_ITEM}
5342 -- [private
5343 -- {BASIC_DECLARATIVE_ITEM}]
5344 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5346 -- N_Package_Specification
5347 -- Sloc points to PACKAGE
5348 -- Defining_Unit_Name (Node1)
5349 -- Visible_Declarations (List2)
5350 -- Private_Declarations (List3) (set to No_List if no private
5351 -- part present)
5352 -- End_Label (Node4)
5353 -- Generic_Parent (Node5-Sem)
5354 -- Limited_View_Installed (Flag18-Sem)
5356 -----------------------
5357 -- 7.1 Package Body --
5358 -----------------------
5360 -- PACKAGE_BODY ::=
5361 -- package body DEFINING_PROGRAM_UNIT_NAME
5362 -- [ASPECT_SPECIFICATIONS]
5363 -- is
5364 -- DECLARATIVE_PART
5365 -- [begin
5366 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5367 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5369 -- N_Package_Body
5370 -- Sloc points to PACKAGE
5371 -- Defining_Unit_Name (Node1)
5372 -- Declarations (List2)
5373 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5374 -- Corresponding_Spec (Node5-Sem)
5375 -- Was_Originally_Stub (Flag13-Sem)
5377 -- Note: if a source level package does not contain a handled sequence
5378 -- of statements, then the parser supplies a dummy one with a null
5379 -- sequence of statements. Comes_From_Source will be False in this
5380 -- constructed sequence. The reason we need this is for the End_Label
5381 -- field in the HSS.
5383 -----------------------------------
5384 -- 7.4 Private Type Declaration --
5385 -----------------------------------
5387 -- PRIVATE_TYPE_DECLARATION ::=
5388 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5389 -- is [[abstract] tagged] [limited] private
5390 -- [ASPECT_SPECIFICATIONS];
5392 -- Note: TAGGED is not permitted in Ada 83 mode
5394 -- N_Private_Type_Declaration
5395 -- Sloc points to TYPE
5396 -- Defining_Identifier (Node1)
5397 -- Discriminant_Specifications (List4) (set to No_List if no
5398 -- discriminant part)
5399 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5400 -- Abstract_Present (Flag4)
5401 -- Tagged_Present (Flag15)
5402 -- Limited_Present (Flag17)
5404 ----------------------------------------
5405 -- 7.4 Private Extension Declaration --
5406 ----------------------------------------
5408 -- PRIVATE_EXTENSION_DECLARATION ::=
5409 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5410 -- [abstract] [limited | synchronized]
5411 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5412 -- with private [ASPECT_SPECIFICATIONS];
5414 -- Note: LIMITED, and private extension declarations are not allowed
5415 -- in Ada 83 mode.
5417 -- N_Private_Extension_Declaration
5418 -- Sloc points to TYPE
5419 -- Defining_Identifier (Node1)
5420 -- Uninitialized_Variable (Node3-Sem)
5421 -- Discriminant_Specifications (List4) (set to No_List if no
5422 -- discriminant part)
5423 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5424 -- Abstract_Present (Flag4)
5425 -- Limited_Present (Flag17)
5426 -- Synchronized_Present (Flag7)
5427 -- Subtype_Indication (Node5)
5428 -- Interface_List (List2) (set to No_List if none)
5430 ---------------------
5431 -- 8.4 Use Clause --
5432 ---------------------
5434 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5436 -----------------------------
5437 -- 8.4 Use Package Clause --
5438 -----------------------------
5440 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5442 -- N_Use_Package_Clause
5443 -- Sloc points to USE
5444 -- Names (List2)
5445 -- Next_Use_Clause (Node3-Sem)
5446 -- Hidden_By_Use_Clause (Elist4-Sem)
5448 --------------------------
5449 -- 8.4 Use Type Clause --
5450 --------------------------
5452 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5454 -- Note: use type clause is not permitted in Ada 83 mode
5456 -- Note: the ALL keyword can appear only in Ada 2012 mode
5458 -- N_Use_Type_Clause
5459 -- Sloc points to USE
5460 -- Subtype_Marks (List2)
5461 -- Next_Use_Clause (Node3-Sem)
5462 -- Hidden_By_Use_Clause (Elist4-Sem)
5463 -- Used_Operations (Elist5-Sem)
5464 -- All_Present (Flag15)
5466 -------------------------------
5467 -- 8.5 Renaming Declaration --
5468 -------------------------------
5470 -- RENAMING_DECLARATION ::=
5471 -- OBJECT_RENAMING_DECLARATION
5472 -- | EXCEPTION_RENAMING_DECLARATION
5473 -- | PACKAGE_RENAMING_DECLARATION
5474 -- | SUBPROGRAM_RENAMING_DECLARATION
5475 -- | GENERIC_RENAMING_DECLARATION
5477 --------------------------------------
5478 -- 8.5 Object Renaming Declaration --
5479 --------------------------------------
5481 -- OBJECT_RENAMING_DECLARATION ::=
5482 -- DEFINING_IDENTIFIER :
5483 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5484 -- [ASPECT_SPECIFICATIONS];
5485 -- | DEFINING_IDENTIFIER :
5486 -- ACCESS_DEFINITION renames object_NAME
5487 -- [ASPECT_SPECIFICATIONS];
5489 -- Note: Access_Definition is an optional field that gives support to
5490 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5491 -- Subtype_Indication field or else the Access_Definition field.
5493 -- N_Object_Renaming_Declaration
5494 -- Sloc points to first identifier
5495 -- Defining_Identifier (Node1)
5496 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5497 -- Subtype_Mark (Node4) (set to Empty if not present)
5498 -- Access_Definition (Node3) (set to Empty if not present)
5499 -- Name (Node2)
5500 -- Corresponding_Generic_Association (Node5-Sem)
5502 -----------------------------------------
5503 -- 8.5 Exception Renaming Declaration --
5504 -----------------------------------------
5506 -- EXCEPTION_RENAMING_DECLARATION ::=
5507 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5508 -- [ASPECT_SPECIFICATIONS];
5510 -- N_Exception_Renaming_Declaration
5511 -- Sloc points to first identifier
5512 -- Defining_Identifier (Node1)
5513 -- Name (Node2)
5515 ---------------------------------------
5516 -- 8.5 Package Renaming Declaration --
5517 ---------------------------------------
5519 -- PACKAGE_RENAMING_DECLARATION ::=
5520 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5521 -- [ASPECT_SPECIFICATIONS];
5523 -- N_Package_Renaming_Declaration
5524 -- Sloc points to PACKAGE
5525 -- Defining_Unit_Name (Node1)
5526 -- Name (Node2)
5527 -- Parent_Spec (Node4-Sem)
5529 ------------------------------------------
5530 -- 8.5 Subprogram Renaming Declaration --
5531 ------------------------------------------
5533 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5534 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5535 -- [ASPECT_SPECIFICATIONS];
5537 -- N_Subprogram_Renaming_Declaration
5538 -- Sloc points to RENAMES
5539 -- Specification (Node1)
5540 -- Name (Node2)
5541 -- Parent_Spec (Node4-Sem)
5542 -- Corresponding_Spec (Node5-Sem)
5543 -- Corresponding_Formal_Spec (Node3-Sem)
5544 -- From_Default (Flag6-Sem)
5546 -----------------------------------------
5547 -- 8.5.5 Generic Renaming Declaration --
5548 -----------------------------------------
5550 -- GENERIC_RENAMING_DECLARATION ::=
5551 -- generic package DEFINING_PROGRAM_UNIT_NAME
5552 -- renames generic_package_NAME
5553 -- [ASPECT_SPECIFICATIONS];
5554 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5555 -- renames generic_procedure_NAME
5556 -- [ASPECT_SPECIFICATIONS];
5557 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5558 -- renames generic_function_NAME
5559 -- [ASPECT_SPECIFICATIONS];
5561 -- N_Generic_Package_Renaming_Declaration
5562 -- Sloc points to GENERIC
5563 -- Defining_Unit_Name (Node1)
5564 -- Name (Node2)
5565 -- Parent_Spec (Node4-Sem)
5567 -- N_Generic_Procedure_Renaming_Declaration
5568 -- Sloc points to GENERIC
5569 -- Defining_Unit_Name (Node1)
5570 -- Name (Node2)
5571 -- Parent_Spec (Node4-Sem)
5573 -- N_Generic_Function_Renaming_Declaration
5574 -- Sloc points to GENERIC
5575 -- Defining_Unit_Name (Node1)
5576 -- Name (Node2)
5577 -- Parent_Spec (Node4-Sem)
5579 --------------------------------
5580 -- 9.1 Task Type Declaration --
5581 --------------------------------
5583 -- TASK_TYPE_DECLARATION ::=
5584 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5585 -- [ASPECT_SPECIFICATIONS]
5586 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5588 -- N_Task_Type_Declaration
5589 -- Sloc points to TASK
5590 -- Defining_Identifier (Node1)
5591 -- Discriminant_Specifications (List4) (set to No_List if no
5592 -- discriminant part)
5593 -- Interface_List (List2) (set to No_List if none)
5594 -- Task_Definition (Node3) (set to Empty if not present)
5595 -- Corresponding_Body (Node5-Sem)
5597 ----------------------------------
5598 -- 9.1 Single Task Declaration --
5599 ----------------------------------
5601 -- SINGLE_TASK_DECLARATION ::=
5602 -- task DEFINING_IDENTIFIER
5603 -- [ASPECT_SPECIFICATIONS]
5604 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5606 -- N_Single_Task_Declaration
5607 -- Sloc points to TASK
5608 -- Defining_Identifier (Node1)
5609 -- Interface_List (List2) (set to No_List if none)
5610 -- Task_Definition (Node3) (set to Empty if not present)
5612 --------------------------
5613 -- 9.1 Task Definition --
5614 --------------------------
5616 -- TASK_DEFINITION ::=
5617 -- {TASK_ITEM}
5618 -- [private
5619 -- {TASK_ITEM}]
5620 -- end [task_IDENTIFIER]
5622 -- Note: as a result of semantic analysis, the list of task items can
5623 -- include implicit type declarations resulting from entry families.
5625 -- N_Task_Definition
5626 -- Sloc points to first token of task definition
5627 -- Visible_Declarations (List2)
5628 -- Private_Declarations (List3) (set to No_List if no private part)
5629 -- End_Label (Node4)
5630 -- Has_Storage_Size_Pragma (Flag5-Sem)
5631 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5633 --------------------
5634 -- 9.1 Task Item --
5635 --------------------
5637 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5639 --------------------
5640 -- 9.1 Task Body --
5641 --------------------
5643 -- TASK_BODY ::=
5644 -- task body task_DEFINING_IDENTIFIER
5645 -- [ASPECT_SPECIFICATIONS]
5646 -- is
5647 -- DECLARATIVE_PART
5648 -- begin
5649 -- HANDLED_SEQUENCE_OF_STATEMENTS
5650 -- end [task_IDENTIFIER];
5652 -- Gigi restriction: This node never appears
5654 -- N_Task_Body
5655 -- Sloc points to TASK
5656 -- Defining_Identifier (Node1)
5657 -- Declarations (List2)
5658 -- Handled_Statement_Sequence (Node4)
5659 -- Is_Task_Master (Flag5-Sem)
5660 -- Activation_Chain_Entity (Node3-Sem)
5661 -- Corresponding_Spec (Node5-Sem)
5662 -- Was_Originally_Stub (Flag13-Sem)
5664 -------------------------------------
5665 -- 9.4 Protected Type Declaration --
5666 -------------------------------------
5668 -- PROTECTED_TYPE_DECLARATION ::=
5669 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5670 -- [ASPECT_SPECIFICATIONS]
5671 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5673 -- Note: protected type declarations are not permitted in Ada 83 mode
5675 -- N_Protected_Type_Declaration
5676 -- Sloc points to PROTECTED
5677 -- Defining_Identifier (Node1)
5678 -- Discriminant_Specifications (List4) (set to No_List if no
5679 -- discriminant part)
5680 -- Interface_List (List2) (set to No_List if none)
5681 -- Protected_Definition (Node3)
5682 -- Corresponding_Body (Node5-Sem)
5684 ---------------------------------------
5685 -- 9.4 Single Protected Declaration --
5686 ---------------------------------------
5688 -- SINGLE_PROTECTED_DECLARATION ::=
5689 -- protected DEFINING_IDENTIFIER
5690 -- [ASPECT_SPECIFICATIONS]
5691 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5693 -- Note: single protected declarations are not allowed in Ada 83 mode
5695 -- N_Single_Protected_Declaration
5696 -- Sloc points to PROTECTED
5697 -- Defining_Identifier (Node1)
5698 -- Interface_List (List2) (set to No_List if none)
5699 -- Protected_Definition (Node3)
5701 -------------------------------
5702 -- 9.4 Protected Definition --
5703 -------------------------------
5705 -- PROTECTED_DEFINITION ::=
5706 -- {PROTECTED_OPERATION_DECLARATION}
5707 -- [private
5708 -- {PROTECTED_ELEMENT_DECLARATION}]
5709 -- end [protected_IDENTIFIER]
5711 -- N_Protected_Definition
5712 -- Sloc points to first token of protected definition
5713 -- Visible_Declarations (List2)
5714 -- Private_Declarations (List3) (set to No_List if no private part)
5715 -- End_Label (Node4)
5717 ------------------------------------------
5718 -- 9.4 Protected Operation Declaration --
5719 ------------------------------------------
5721 -- PROTECTED_OPERATION_DECLARATION ::=
5722 -- SUBPROGRAM_DECLARATION
5723 -- | ENTRY_DECLARATION
5724 -- | REPRESENTATION_CLAUSE
5726 ----------------------------------------
5727 -- 9.4 Protected Element Declaration --
5728 ----------------------------------------
5730 -- PROTECTED_ELEMENT_DECLARATION ::=
5731 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5733 -------------------------
5734 -- 9.4 Protected Body --
5735 -------------------------
5737 -- PROTECTED_BODY ::=
5738 -- protected body DEFINING_IDENTIFIER
5739 -- [ASPECT_SPECIFICATIONS];
5740 -- is
5741 -- {PROTECTED_OPERATION_ITEM}
5742 -- end [protected_IDENTIFIER];
5744 -- Note: protected bodies are not allowed in Ada 83 mode
5746 -- Gigi restriction: This node never appears
5748 -- N_Protected_Body
5749 -- Sloc points to PROTECTED
5750 -- Defining_Identifier (Node1)
5751 -- Declarations (List2) protected operation items (and pragmas)
5752 -- End_Label (Node4)
5753 -- Corresponding_Spec (Node5-Sem)
5754 -- Was_Originally_Stub (Flag13-Sem)
5756 -----------------------------------
5757 -- 9.4 Protected Operation Item --
5758 -----------------------------------
5760 -- PROTECTED_OPERATION_ITEM ::=
5761 -- SUBPROGRAM_DECLARATION
5762 -- | SUBPROGRAM_BODY
5763 -- | ENTRY_BODY
5764 -- | REPRESENTATION_CLAUSE
5766 ------------------------------
5767 -- 9.5.2 Entry Declaration --
5768 ------------------------------
5770 -- ENTRY_DECLARATION ::=
5771 -- [[not] overriding]
5772 -- entry DEFINING_IDENTIFIER
5773 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5774 -- [ASPECT_SPECIFICATIONS];
5776 -- N_Entry_Declaration
5777 -- Sloc points to ENTRY
5778 -- Defining_Identifier (Node1)
5779 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5780 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5781 -- Corresponding_Body (Node5-Sem)
5782 -- Must_Override (Flag14) set if overriding indicator present
5783 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5785 -- Note: overriding indicator is an Ada 2005 feature
5787 -----------------------------
5788 -- 9.5.2 Accept statement --
5789 -----------------------------
5791 -- ACCEPT_STATEMENT ::=
5792 -- accept entry_DIRECT_NAME
5793 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5794 -- HANDLED_SEQUENCE_OF_STATEMENTS
5795 -- end [entry_IDENTIFIER]];
5797 -- Gigi restriction: This node never appears
5799 -- Note: there are no explicit declarations allowed in an accept
5800 -- statement. However, the implicit declarations for any statement
5801 -- identifiers (labels and block/loop identifiers) are declarations
5802 -- that belong logically to the accept statement, and that is why
5803 -- there is a Declarations field in this node.
5805 -- N_Accept_Statement
5806 -- Sloc points to ACCEPT
5807 -- Entry_Direct_Name (Node1)
5808 -- Entry_Index (Node5) (set to Empty if not present)
5809 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5810 -- Handled_Statement_Sequence (Node4)
5811 -- Declarations (List2) (set to No_List if no declarations)
5813 ------------------------
5814 -- 9.5.2 Entry Index --
5815 ------------------------
5817 -- ENTRY_INDEX ::= EXPRESSION
5819 -----------------------
5820 -- 9.5.2 Entry Body --
5821 -----------------------
5823 -- ENTRY_BODY ::=
5824 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5825 -- DECLARATIVE_PART
5826 -- begin
5827 -- HANDLED_SEQUENCE_OF_STATEMENTS
5828 -- end [entry_IDENTIFIER];
5830 -- ENTRY_BARRIER ::= when CONDITION
5832 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5833 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5834 -- too full (it would otherwise have too many fields)
5836 -- Gigi restriction: This node never appears
5838 -- N_Entry_Body
5839 -- Sloc points to ENTRY
5840 -- Defining_Identifier (Node1)
5841 -- Entry_Body_Formal_Part (Node5)
5842 -- Declarations (List2)
5843 -- Handled_Statement_Sequence (Node4)
5844 -- Activation_Chain_Entity (Node3-Sem)
5846 -----------------------------------
5847 -- 9.5.2 Entry Body Formal Part --
5848 -----------------------------------
5850 -- ENTRY_BODY_FORMAL_PART ::=
5851 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5853 -- Note that an entry body formal part node is present even if it is
5854 -- empty. This reflects the grammar, in which it is the components of
5855 -- the entry body formal part that are optional, not the entry body
5856 -- formal part itself. Also this means that the barrier condition
5857 -- always has somewhere to be stored.
5859 -- Gigi restriction: This node never appears
5861 -- N_Entry_Body_Formal_Part
5862 -- Sloc points to first token
5863 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5864 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5865 -- Condition (Node1) from entry barrier of entry body
5867 --------------------------
5868 -- 9.5.2 Entry Barrier --
5869 --------------------------
5871 -- ENTRY_BARRIER ::= when CONDITION
5873 --------------------------------------
5874 -- 9.5.2 Entry Index Specification --
5875 --------------------------------------
5877 -- ENTRY_INDEX_SPECIFICATION ::=
5878 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5880 -- Gigi restriction: This node never appears
5882 -- N_Entry_Index_Specification
5883 -- Sloc points to FOR
5884 -- Defining_Identifier (Node1)
5885 -- Discrete_Subtype_Definition (Node4)
5887 ---------------------------------
5888 -- 9.5.3 Entry Call Statement --
5889 ---------------------------------
5891 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5893 -- The parser may generate a procedure call for this construct. The
5894 -- semantic pass must correct this misidentification where needed.
5896 -- Gigi restriction: This node never appears
5898 -- N_Entry_Call_Statement
5899 -- Sloc points to first token of name
5900 -- Name (Node2)
5901 -- Parameter_Associations (List3) (set to No_List if no
5902 -- actual parameter part)
5903 -- First_Named_Actual (Node4-Sem)
5905 ------------------------------
5906 -- 9.5.4 Requeue Statement --
5907 ------------------------------
5909 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5911 -- Note: requeue statements are not permitted in Ada 83 mode
5913 -- Gigi restriction: This node never appears
5915 -- N_Requeue_Statement
5916 -- Sloc points to REQUEUE
5917 -- Name (Node2)
5918 -- Abort_Present (Flag15)
5920 --------------------------
5921 -- 9.6 Delay Statement --
5922 --------------------------
5924 -- DELAY_STATEMENT ::=
5925 -- DELAY_UNTIL_STATEMENT
5926 -- | DELAY_RELATIVE_STATEMENT
5928 --------------------------------
5929 -- 9.6 Delay Until Statement --
5930 --------------------------------
5932 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5934 -- Note: delay until statements are not permitted in Ada 83 mode
5936 -- Gigi restriction: This node never appears
5938 -- N_Delay_Until_Statement
5939 -- Sloc points to DELAY
5940 -- Expression (Node3)
5942 -----------------------------------
5943 -- 9.6 Delay Relative Statement --
5944 -----------------------------------
5946 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5948 -- Gigi restriction: This node never appears
5950 -- N_Delay_Relative_Statement
5951 -- Sloc points to DELAY
5952 -- Expression (Node3)
5954 ---------------------------
5955 -- 9.7 Select Statement --
5956 ---------------------------
5958 -- SELECT_STATEMENT ::=
5959 -- SELECTIVE_ACCEPT
5960 -- | TIMED_ENTRY_CALL
5961 -- | CONDITIONAL_ENTRY_CALL
5962 -- | ASYNCHRONOUS_SELECT
5964 -----------------------------
5965 -- 9.7.1 Selective Accept --
5966 -----------------------------
5968 -- SELECTIVE_ACCEPT ::=
5969 -- select
5970 -- [GUARD]
5971 -- SELECT_ALTERNATIVE
5972 -- {or
5973 -- [GUARD]
5974 -- SELECT_ALTERNATIVE}
5975 -- [else
5976 -- SEQUENCE_OF_STATEMENTS]
5977 -- end select;
5979 -- Gigi restriction: This node never appears
5981 -- Note: the guard expression, if present, appears in the node for
5982 -- the select alternative.
5984 -- N_Selective_Accept
5985 -- Sloc points to SELECT
5986 -- Select_Alternatives (List1)
5987 -- Else_Statements (List4) (set to No_List if no else part)
5989 ------------------
5990 -- 9.7.1 Guard --
5991 ------------------
5993 -- GUARD ::= when CONDITION =>
5995 -- As noted above, the CONDITION that is part of a GUARD is included
5996 -- in the node for the select alternative for convenience.
5998 -------------------------------
5999 -- 9.7.1 Select Alternative --
6000 -------------------------------
6002 -- SELECT_ALTERNATIVE ::=
6003 -- ACCEPT_ALTERNATIVE
6004 -- | DELAY_ALTERNATIVE
6005 -- | TERMINATE_ALTERNATIVE
6007 -------------------------------
6008 -- 9.7.1 Accept Alternative --
6009 -------------------------------
6011 -- ACCEPT_ALTERNATIVE ::=
6012 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6014 -- Gigi restriction: This node never appears
6016 -- N_Accept_Alternative
6017 -- Sloc points to ACCEPT
6018 -- Accept_Statement (Node2)
6019 -- Condition (Node1) from the guard (set to Empty if no guard present)
6020 -- Statements (List3) (set to Empty_List if no statements)
6021 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6022 -- Accept_Handler_Records (List5-Sem)
6024 ------------------------------
6025 -- 9.7.1 Delay Alternative --
6026 ------------------------------
6028 -- DELAY_ALTERNATIVE ::=
6029 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6031 -- Gigi restriction: This node never appears
6033 -- N_Delay_Alternative
6034 -- Sloc points to DELAY
6035 -- Delay_Statement (Node2)
6036 -- Condition (Node1) from the guard (set to Empty if no guard present)
6037 -- Statements (List3) (set to Empty_List if no statements)
6038 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6040 ----------------------------------
6041 -- 9.7.1 Terminate Alternative --
6042 ----------------------------------
6044 -- TERMINATE_ALTERNATIVE ::= terminate;
6046 -- Gigi restriction: This node never appears
6048 -- N_Terminate_Alternative
6049 -- Sloc points to TERMINATE
6050 -- Condition (Node1) from the guard (set to Empty if no guard present)
6051 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6052 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6054 -----------------------------
6055 -- 9.7.2 Timed Entry Call --
6056 -----------------------------
6058 -- TIMED_ENTRY_CALL ::=
6059 -- select
6060 -- ENTRY_CALL_ALTERNATIVE
6061 -- or
6062 -- DELAY_ALTERNATIVE
6063 -- end select;
6065 -- Gigi restriction: This node never appears
6067 -- N_Timed_Entry_Call
6068 -- Sloc points to SELECT
6069 -- Entry_Call_Alternative (Node1)
6070 -- Delay_Alternative (Node4)
6072 -----------------------------------
6073 -- 9.7.2 Entry Call Alternative --
6074 -----------------------------------
6076 -- ENTRY_CALL_ALTERNATIVE ::=
6077 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6079 -- PROCEDURE_OR_ENTRY_CALL ::=
6080 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6082 -- Gigi restriction: This node never appears
6084 -- N_Entry_Call_Alternative
6085 -- Sloc points to first token of entry call statement
6086 -- Entry_Call_Statement (Node1)
6087 -- Statements (List3) (set to Empty_List if no statements)
6088 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6090 -----------------------------------
6091 -- 9.7.3 Conditional Entry Call --
6092 -----------------------------------
6094 -- CONDITIONAL_ENTRY_CALL ::=
6095 -- select
6096 -- ENTRY_CALL_ALTERNATIVE
6097 -- else
6098 -- SEQUENCE_OF_STATEMENTS
6099 -- end select;
6101 -- Gigi restriction: This node never appears
6103 -- N_Conditional_Entry_Call
6104 -- Sloc points to SELECT
6105 -- Entry_Call_Alternative (Node1)
6106 -- Else_Statements (List4)
6108 --------------------------------
6109 -- 9.7.4 Asynchronous Select --
6110 --------------------------------
6112 -- ASYNCHRONOUS_SELECT ::=
6113 -- select
6114 -- TRIGGERING_ALTERNATIVE
6115 -- then abort
6116 -- ABORTABLE_PART
6117 -- end select;
6119 -- Note: asynchronous select is not permitted in Ada 83 mode
6121 -- Gigi restriction: This node never appears
6123 -- N_Asynchronous_Select
6124 -- Sloc points to SELECT
6125 -- Triggering_Alternative (Node1)
6126 -- Abortable_Part (Node2)
6128 -----------------------------------
6129 -- 9.7.4 Triggering Alternative --
6130 -----------------------------------
6132 -- TRIGGERING_ALTERNATIVE ::=
6133 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6135 -- Gigi restriction: This node never appears
6137 -- N_Triggering_Alternative
6138 -- Sloc points to first token of triggering statement
6139 -- Triggering_Statement (Node1)
6140 -- Statements (List3) (set to Empty_List if no statements)
6141 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6143 ---------------------------------
6144 -- 9.7.4 Triggering Statement --
6145 ---------------------------------
6147 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6149 ---------------------------
6150 -- 9.7.4 Abortable Part --
6151 ---------------------------
6153 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6155 -- Gigi restriction: This node never appears
6157 -- N_Abortable_Part
6158 -- Sloc points to ABORT
6159 -- Statements (List3)
6161 --------------------------
6162 -- 9.8 Abort Statement --
6163 --------------------------
6165 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6167 -- Gigi restriction: This node never appears
6169 -- N_Abort_Statement
6170 -- Sloc points to ABORT
6171 -- Names (List2)
6173 -------------------------
6174 -- 10.1.1 Compilation --
6175 -------------------------
6177 -- COMPILATION ::= {COMPILATION_UNIT}
6179 -- There is no explicit node in the tree for a compilation, since in
6180 -- general the compiler is processing only a single compilation unit
6181 -- at a time. It is possible to parse multiple units in syntax check
6182 -- only mode, but the trees are discarded in that case.
6184 ------------------------------
6185 -- 10.1.1 Compilation Unit --
6186 ------------------------------
6188 -- COMPILATION_UNIT ::=
6189 -- CONTEXT_CLAUSE LIBRARY_ITEM
6190 -- | CONTEXT_CLAUSE SUBUNIT
6192 -- The N_Compilation_Unit node itself represents the above syntax.
6193 -- However, there are two additional items not reflected in the above
6194 -- syntax. First we have the global declarations that are added by the
6195 -- code generator. These are outer level declarations (so they cannot
6196 -- be represented as being inside the units). An example is the wrapper
6197 -- subprograms that are created to do ABE checking. As always a list of
6198 -- declarations can contain actions as well (i.e. statements), and such
6199 -- statements are executed as part of the elaboration of the unit. Note
6200 -- that all such declarations are elaborated before the library unit.
6202 -- Similarly, certain actions need to be elaborated at the completion
6203 -- of elaboration of the library unit (notably the statement that sets
6204 -- the Boolean flag indicating that elaboration is complete).
6206 -- The third item not reflected in the syntax is pragmas that appear
6207 -- after the compilation unit. As always pragmas are a problem since
6208 -- they are not part of the formal syntax, but can be stuck into the
6209 -- source following a set of ad hoc rules, and we have to find an ad
6210 -- hoc way of sticking them into the tree. For pragmas that appear
6211 -- before the library unit, we just consider them to be part of the
6212 -- context clause, and pragmas can appear in the Context_Items list
6213 -- of the compilation unit. However, pragmas can also appear after
6214 -- the library item.
6216 -- To deal with all these problems, we create an auxiliary node for
6217 -- a compilation unit, referenced from the N_Compilation_Unit node,
6218 -- that contains these items.
6220 -- N_Compilation_Unit
6221 -- Sloc points to first token of defining unit name
6222 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6223 -- Context_Items (List1) context items and pragmas preceding unit
6224 -- Private_Present (Flag15) set if library unit has private keyword
6225 -- Unit (Node2) library item or subunit
6226 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6227 -- Has_No_Elaboration_Code (Flag17-Sem)
6228 -- Body_Required (Flag13-Sem) set for spec if body is required
6229 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6230 -- Context_Pending (Flag16-Sem)
6231 -- First_Inlined_Subprogram (Node3-Sem)
6232 -- Has_Pragma_Suppress_All (Flag14-Sem)
6234 -- N_Compilation_Unit_Aux
6235 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6236 -- Declarations (List2) (set to No_List if no global declarations)
6237 -- Actions (List1) (set to No_List if no actions)
6238 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6239 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6240 -- Default_Storage_Pool (Node3-Sem)
6242 --------------------------
6243 -- 10.1.1 Library Item --
6244 --------------------------
6246 -- LIBRARY_ITEM ::=
6247 -- [private] LIBRARY_UNIT_DECLARATION
6248 -- | LIBRARY_UNIT_BODY
6249 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6251 -- Note: PRIVATE is not allowed in Ada 83 mode
6253 -- There is no explicit node in the tree for library item, instead
6254 -- the declaration or body, and the flag for private if present,
6255 -- appear in the N_Compilation_Unit node.
6257 --------------------------------------
6258 -- 10.1.1 Library Unit Declaration --
6259 --------------------------------------
6261 -- LIBRARY_UNIT_DECLARATION ::=
6262 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6263 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6265 -----------------------------------------------
6266 -- 10.1.1 Library Unit Renaming Declaration --
6267 -----------------------------------------------
6269 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6270 -- PACKAGE_RENAMING_DECLARATION
6271 -- | GENERIC_RENAMING_DECLARATION
6272 -- | SUBPROGRAM_RENAMING_DECLARATION
6274 -------------------------------
6275 -- 10.1.1 Library unit body --
6276 -------------------------------
6278 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6280 ------------------------------
6281 -- 10.1.1 Parent Unit Name --
6282 ------------------------------
6284 -- PARENT_UNIT_NAME ::= NAME
6286 ----------------------------
6287 -- 10.1.2 Context clause --
6288 ----------------------------
6290 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6292 -- The context clause can include pragmas, and any pragmas that appear
6293 -- before the context clause proper (i.e. all configuration pragmas,
6294 -- also appear at the front of this list).
6296 --------------------------
6297 -- 10.1.2 Context_Item --
6298 --------------------------
6300 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6302 -------------------------
6303 -- 10.1.2 With clause --
6304 -------------------------
6306 -- WITH_CLAUSE ::=
6307 -- with library_unit_NAME {,library_unit_NAME};
6309 -- A separate With clause is built for each name, so that we have
6310 -- a Corresponding_Spec field for each with'ed spec. The flags
6311 -- First_Name and Last_Name are used to reconstruct the exact
6312 -- source form. When a list of names appears in one with clause,
6313 -- the first name in the list has First_Name set, and the last
6314 -- has Last_Name set. If the with clause has only one name, then
6315 -- both of the flags First_Name and Last_Name are set in this name.
6317 -- Note: in the case of implicit with's that are installed by the
6318 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6319 -- set to Standard_Location, but it is incorrect to test the Sloc
6320 -- to find out if a with clause is implicit, test the flag instead.
6322 -- N_With_Clause
6323 -- Sloc points to first token of library unit name
6324 -- Withed_Body (Node1-Sem)
6325 -- Name (Node2)
6326 -- Next_Implicit_With (Node3-Sem)
6327 -- Library_Unit (Node4-Sem)
6328 -- Corresponding_Spec (Node5-Sem)
6329 -- First_Name (Flag5) (set to True if first name or only one name)
6330 -- Last_Name (Flag6) (set to True if last name or only one name)
6331 -- Context_Installed (Flag13-Sem)
6332 -- Elaborate_Present (Flag4-Sem)
6333 -- Elaborate_All_Present (Flag14-Sem)
6334 -- Elaborate_All_Desirable (Flag9-Sem)
6335 -- Elaborate_Desirable (Flag11-Sem)
6336 -- Private_Present (Flag15) set if with_clause has private keyword
6337 -- Implicit_With (Flag16-Sem)
6338 -- Implicit_With_From_Instantiation (Flag12-Sem)
6339 -- Limited_Present (Flag17) set if LIMITED is present
6340 -- Limited_View_Installed (Flag18-Sem)
6341 -- Unreferenced_In_Spec (Flag7-Sem)
6342 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6344 -- Note: Limited_Present and Limited_View_Installed are used to support
6345 -- the implementation of Ada 2005 (AI-50217).
6347 -- Similarly, Private_Present is used to support the implementation of
6348 -- Ada 2005 (AI-50262).
6350 ----------------------
6351 -- With_Type clause --
6352 ----------------------
6354 -- This is a GNAT extension, used to implement mutually recursive
6355 -- types declared in different packages.
6357 -- Note: this is now obsolete. The functionality of this construct
6358 -- is now implemented by the Ada 2005 limited_with_clause.
6360 ---------------------
6361 -- 10.2 Body stub --
6362 ---------------------
6364 -- BODY_STUB ::=
6365 -- SUBPROGRAM_BODY_STUB
6366 -- | PACKAGE_BODY_STUB
6367 -- | TASK_BODY_STUB
6368 -- | PROTECTED_BODY_STUB
6370 ----------------------------------
6371 -- 10.1.3 Subprogram Body Stub --
6372 ----------------------------------
6374 -- SUBPROGRAM_BODY_STUB ::=
6375 -- SUBPROGRAM_SPECIFICATION is separate
6376 -- [ASPECT_SPECIFICATION];
6378 -- N_Subprogram_Body_Stub
6379 -- Sloc points to FUNCTION or PROCEDURE
6380 -- Specification (Node1)
6381 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6382 -- Library_Unit (Node4-Sem) points to the subunit
6383 -- Corresponding_Body (Node5-Sem)
6385 -------------------------------
6386 -- 10.1.3 Package Body Stub --
6387 -------------------------------
6389 -- PACKAGE_BODY_STUB ::=
6390 -- package body DEFINING_IDENTIFIER is separate
6391 -- [ASPECT_SPECIFICATION];
6393 -- N_Package_Body_Stub
6394 -- Sloc points to PACKAGE
6395 -- Defining_Identifier (Node1)
6396 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6397 -- Library_Unit (Node4-Sem) points to the subunit
6398 -- Corresponding_Body (Node5-Sem)
6400 ----------------------------
6401 -- 10.1.3 Task Body Stub --
6402 ----------------------------
6404 -- TASK_BODY_STUB ::=
6405 -- task body DEFINING_IDENTIFIER is separate
6406 -- [ASPECT_SPECIFICATION];
6408 -- N_Task_Body_Stub
6409 -- Sloc points to TASK
6410 -- Defining_Identifier (Node1)
6411 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6412 -- Library_Unit (Node4-Sem) points to the subunit
6413 -- Corresponding_Body (Node5-Sem)
6415 ---------------------------------
6416 -- 10.1.3 Protected Body Stub --
6417 ---------------------------------
6419 -- PROTECTED_BODY_STUB ::=
6420 -- protected body DEFINING_IDENTIFIER is separate
6421 -- [ASPECT_SPECIFICATION];
6423 -- Note: protected body stubs are not allowed in Ada 83 mode
6425 -- N_Protected_Body_Stub
6426 -- Sloc points to PROTECTED
6427 -- Defining_Identifier (Node1)
6428 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6429 -- Library_Unit (Node4-Sem) points to the subunit
6430 -- Corresponding_Body (Node5-Sem)
6432 ---------------------
6433 -- 10.1.3 Subunit --
6434 ---------------------
6436 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6438 -- N_Subunit
6439 -- Sloc points to SEPARATE
6440 -- Name (Node2) is the name of the parent unit
6441 -- Proper_Body (Node1) is the subunit body
6442 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6444 ---------------------------------
6445 -- 11.1 Exception Declaration --
6446 ---------------------------------
6448 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6449 -- [ASPECT_SPECIFICATIONS];
6451 -- For consistency with object declarations etc., the parser converts
6452 -- the case of multiple identifiers being declared to a series of
6453 -- declarations in which the expression is copied, using the More_Ids
6454 -- and Prev_Ids flags to remember the source form as described in the
6455 -- section on "Handling of Defining Identifier Lists".
6457 -- N_Exception_Declaration
6458 -- Sloc points to EXCEPTION
6459 -- Defining_Identifier (Node1)
6460 -- Expression (Node3-Sem)
6461 -- Renaming_Exception (Node2-Sem)
6462 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6463 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6465 ------------------------------------------
6466 -- 11.2 Handled Sequence Of Statements --
6467 ------------------------------------------
6469 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6470 -- SEQUENCE_OF_STATEMENTS
6471 -- [exception
6472 -- EXCEPTION_HANDLER
6473 -- {EXCEPTION_HANDLER}]
6474 -- [at end
6475 -- cleanup_procedure_call (param, param, param, ...);]
6477 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6478 -- used only internally currently, but is considered to be syntactic.
6479 -- At the moment, the only cleanup action allowed is a single call to
6480 -- a parameterless procedure, and the Identifier field of the node is
6481 -- the procedure to be called. The cleanup action occurs whenever the
6482 -- sequence of statements is left for any reason. The possible reasons
6483 -- are:
6484 -- 1. reaching the end of the sequence
6485 -- 2. exit, return, or goto
6486 -- 3. exception or abort
6487 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6488 -- entirely in the back end. In this case, a handled sequence of
6489 -- statements with an "at end" cannot also have exception handlers.
6490 -- For other back ends, such as gcc with SJLJ and .NET, the
6491 -- implementation is split between the front end and back end; the front
6492 -- end implements 3, and the back end implements 1 and 2. In this case,
6493 -- if there is an "at end", the front end inserts the appropriate
6494 -- exception handler, and this handler takes precedence over "at end"
6495 -- in case of exception.
6497 -- The inserted exception handler is of the form:
6499 -- when all others =>
6500 -- cleanup;
6501 -- raise;
6503 -- where cleanup is the procedure to be called. The reason we do this is
6504 -- so that the front end can handle the necessary entries in the
6505 -- exception tables, and other exception handler actions required as
6506 -- part of the normal handling for exception handlers.
6508 -- The AT END cleanup handler protects only the sequence of statements
6509 -- (not the associated declarations of the parent), just like exception
6510 -- handlers. The big difference is that the cleanup procedure is called
6511 -- on either a normal or an abnormal exit from the statement sequence.
6513 -- Note: the list of Exception_Handlers can contain pragmas as well
6514 -- as actual handlers. In practice these pragmas can only occur at
6515 -- the start of the list, since any pragmas occurring later on will
6516 -- be included in the statement list of the corresponding handler.
6518 -- Note: although in the Ada syntax, the sequence of statements in
6519 -- a handled sequence of statements can only contain statements, we
6520 -- allow free mixing of declarations and statements in the resulting
6521 -- expanded tree. This is for example used to deal with the case of
6522 -- a cleanup procedure that must handle declarations as well as the
6523 -- statements of a block.
6525 -- N_Handled_Sequence_Of_Statements
6526 -- Sloc points to first token of first statement
6527 -- Statements (List3)
6528 -- End_Label (Node4) (set to Empty if expander generated)
6529 -- Exception_Handlers (List5) (set to No_List if none present)
6530 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6531 -- First_Real_Statement (Node2-Sem)
6533 -- Note: the parent always contains a Declarations field which contains
6534 -- declarations associated with the handled sequence of statements. This
6535 -- is true even in the case of an accept statement (see description of
6536 -- the N_Accept_Statement node).
6538 -- End_Label refers to the containing construct
6540 -----------------------------
6541 -- 11.2 Exception Handler --
6542 -----------------------------
6544 -- EXCEPTION_HANDLER ::=
6545 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6546 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6547 -- SEQUENCE_OF_STATEMENTS
6549 -- Note: choice parameter specification is not allowed in Ada 83 mode
6551 -- N_Exception_Handler
6552 -- Sloc points to WHEN
6553 -- Choice_Parameter (Node2) (set to Empty if not present)
6554 -- Exception_Choices (List4)
6555 -- Statements (List3)
6556 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6557 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6558 -- Local_Raise_Not_OK (Flag7-Sem)
6559 -- Has_Local_Raise (Flag8-Sem)
6561 ------------------------------------------
6562 -- 11.2 Choice parameter specification --
6563 ------------------------------------------
6565 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6567 ----------------------------
6568 -- 11.2 Exception Choice --
6569 ----------------------------
6571 -- EXCEPTION_CHOICE ::= exception_NAME | others
6573 -- Except in the case of OTHERS, no explicit node appears in the tree
6574 -- for exception choice. Instead the exception name appears directly.
6575 -- An OTHERS choice is represented by a N_Others_Choice node (see
6576 -- section 3.8.1.
6578 -- Note: for the exception choice created for an at end handler, the
6579 -- exception choice is an N_Others_Choice node with All_Others set.
6581 ---------------------------
6582 -- 11.3 Raise Statement --
6583 ---------------------------
6585 -- RAISE_STATEMENT ::= raise [exception_NAME];
6587 -- In Ada 2005, we have
6589 -- RAISE_STATEMENT ::=
6590 -- raise; | raise exception_NAME [with string_EXPRESSION];
6592 -- N_Raise_Statement
6593 -- Sloc points to RAISE
6594 -- Name (Node2) (set to Empty if no exception name present)
6595 -- Expression (Node3) (set to Empty if no expression present)
6596 -- From_At_End (Flag4-Sem)
6598 ----------------------------
6599 -- 11.3 Raise Expression --
6600 ----------------------------
6602 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6604 -- N_Raise_Expression
6605 -- Sloc points to RAISE
6606 -- Name (Node2) (always present)
6607 -- Expression (Node3) (set to Empty if no expression present)
6608 -- Convert_To_Return_False (Flag13-Sem)
6609 -- plus fields for expression
6611 -------------------------------
6612 -- 12.1 Generic Declaration --
6613 -------------------------------
6615 -- GENERIC_DECLARATION ::=
6616 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6618 ------------------------------------------
6619 -- 12.1 Generic Subprogram Declaration --
6620 ------------------------------------------
6622 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6623 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6624 -- [ASPECT_SPECIFICATIONS];
6626 -- Note: Generic_Formal_Declarations can include pragmas
6628 -- N_Generic_Subprogram_Declaration
6629 -- Sloc points to GENERIC
6630 -- Specification (Node1) subprogram specification
6631 -- Corresponding_Body (Node5-Sem)
6632 -- Generic_Formal_Declarations (List2) from generic formal part
6633 -- Parent_Spec (Node4-Sem)
6635 ---------------------------------------
6636 -- 12.1 Generic Package Declaration --
6637 ---------------------------------------
6639 -- GENERIC_PACKAGE_DECLARATION ::=
6640 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6641 -- [ASPECT_SPECIFICATIONS];
6643 -- Note: when we do generics right, the Activation_Chain_Entity entry
6644 -- for this node can be removed (since the expander won't see generic
6645 -- units any more)???.
6647 -- Note: Generic_Formal_Declarations can include pragmas
6649 -- N_Generic_Package_Declaration
6650 -- Sloc points to GENERIC
6651 -- Specification (Node1) package specification
6652 -- Corresponding_Body (Node5-Sem)
6653 -- Generic_Formal_Declarations (List2) from generic formal part
6654 -- Parent_Spec (Node4-Sem)
6655 -- Activation_Chain_Entity (Node3-Sem)
6657 -------------------------------
6658 -- 12.1 Generic Formal Part --
6659 -------------------------------
6661 -- GENERIC_FORMAL_PART ::=
6662 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6664 ------------------------------------------------
6665 -- 12.1 Generic Formal Parameter Declaration --
6666 ------------------------------------------------
6668 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6669 -- FORMAL_OBJECT_DECLARATION
6670 -- | FORMAL_TYPE_DECLARATION
6671 -- | FORMAL_SUBPROGRAM_DECLARATION
6672 -- | FORMAL_PACKAGE_DECLARATION
6674 ---------------------------------
6675 -- 12.3 Generic Instantiation --
6676 ---------------------------------
6678 -- GENERIC_INSTANTIATION ::=
6679 -- package DEFINING_PROGRAM_UNIT_NAME is
6680 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6681 -- [ASPECT_SPECIFICATIONS];
6682 -- | [[not] overriding]
6683 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6684 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6685 -- [ASPECT_SPECIFICATIONS];
6686 -- | [[not] overriding]
6687 -- function DEFINING_DESIGNATOR is
6688 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6689 -- [ASPECT_SPECIFICATIONS];
6691 -- N_Package_Instantiation
6692 -- Sloc points to PACKAGE
6693 -- Defining_Unit_Name (Node1)
6694 -- Name (Node2)
6695 -- Generic_Associations (List3) (set to No_List if no
6696 -- generic actual part)
6697 -- Parent_Spec (Node4-Sem)
6698 -- Instance_Spec (Node5-Sem)
6699 -- ABE_Is_Certain (Flag18-Sem)
6701 -- N_Procedure_Instantiation
6702 -- Sloc points to PROCEDURE
6703 -- Defining_Unit_Name (Node1)
6704 -- Name (Node2)
6705 -- Parent_Spec (Node4-Sem)
6706 -- Generic_Associations (List3) (set to No_List if no
6707 -- generic actual part)
6708 -- Instance_Spec (Node5-Sem)
6709 -- Must_Override (Flag14) set if overriding indicator present
6710 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6711 -- ABE_Is_Certain (Flag18-Sem)
6713 -- N_Function_Instantiation
6714 -- Sloc points to FUNCTION
6715 -- Defining_Unit_Name (Node1)
6716 -- Name (Node2)
6717 -- Generic_Associations (List3) (set to No_List if no
6718 -- generic actual part)
6719 -- Parent_Spec (Node4-Sem)
6720 -- Instance_Spec (Node5-Sem)
6721 -- Must_Override (Flag14) set if overriding indicator present
6722 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6723 -- ABE_Is_Certain (Flag18-Sem)
6725 -- Note: overriding indicator is an Ada 2005 feature
6727 -------------------------------
6728 -- 12.3 Generic Actual Part --
6729 -------------------------------
6731 -- GENERIC_ACTUAL_PART ::=
6732 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6734 -------------------------------
6735 -- 12.3 Generic Association --
6736 -------------------------------
6738 -- GENERIC_ASSOCIATION ::=
6739 -- [generic_formal_parameter_SELECTOR_NAME =>]
6741 -- Note: unlike the procedure call case, a generic association node
6742 -- is generated for every association, even if no formal parameter
6743 -- selector name is present. In this case the parser will leave the
6744 -- Selector_Name field set to Empty, to be filled in later by the
6745 -- semantic pass.
6747 -- In Ada 2005, a formal may be associated with a box, if the
6748 -- association is part of the list of actuals for a formal package.
6749 -- If the association is given by OTHERS => <>, the association is
6750 -- an N_Others_Choice.
6752 -- N_Generic_Association
6753 -- Sloc points to first token of generic association
6754 -- Selector_Name (Node2) (set to Empty if no formal
6755 -- parameter selector name)
6756 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6757 -- Box_Present (Flag15) (for formal_package associations with a box)
6759 ---------------------------------------------
6760 -- 12.3 Explicit Generic Actual Parameter --
6761 ---------------------------------------------
6763 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6764 -- EXPRESSION | variable_NAME | subprogram_NAME
6765 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6767 -------------------------------------
6768 -- 12.4 Formal Object Declaration --
6769 -------------------------------------
6771 -- FORMAL_OBJECT_DECLARATION ::=
6772 -- DEFINING_IDENTIFIER_LIST :
6773 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6774 -- [ASPECT_SPECIFICATIONS];
6775 -- | DEFINING_IDENTIFIER_LIST :
6776 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6777 -- [ASPECT_SPECIFICATIONS];
6779 -- Although the syntax allows multiple identifiers in the list, the
6780 -- semantics is as though successive declarations were given with
6781 -- identical type definition and expression components. To simplify
6782 -- semantic processing, the parser represents a multiple declaration
6783 -- case as a sequence of single declarations, using the More_Ids and
6784 -- Prev_Ids flags to preserve the original source form as described
6785 -- in the section on "Handling of Defining Identifier Lists".
6787 -- N_Formal_Object_Declaration
6788 -- Sloc points to first identifier
6789 -- Defining_Identifier (Node1)
6790 -- In_Present (Flag15)
6791 -- Out_Present (Flag17)
6792 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6793 -- Subtype_Mark (Node4) (set to Empty if not present)
6794 -- Access_Definition (Node3) (set to Empty if not present)
6795 -- Default_Expression (Node5) (set to Empty if no default expression)
6796 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6797 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6799 -----------------------------------
6800 -- 12.5 Formal Type Declaration --
6801 -----------------------------------
6803 -- FORMAL_TYPE_DECLARATION ::=
6804 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6805 -- is FORMAL_TYPE_DEFINITION
6806 -- [ASPECT_SPECIFICATIONS];
6807 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6809 -- N_Formal_Type_Declaration
6810 -- Sloc points to TYPE
6811 -- Defining_Identifier (Node1)
6812 -- Formal_Type_Definition (Node3)
6813 -- Discriminant_Specifications (List4) (set to No_List if no
6814 -- discriminant part)
6815 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6817 ----------------------------------
6818 -- 12.5 Formal type definition --
6819 ----------------------------------
6821 -- FORMAL_TYPE_DEFINITION ::=
6822 -- FORMAL_PRIVATE_TYPE_DEFINITION
6823 -- | FORMAL_DERIVED_TYPE_DEFINITION
6824 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6825 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6826 -- | FORMAL_MODULAR_TYPE_DEFINITION
6827 -- | FORMAL_FLOATING_POINT_DEFINITION
6828 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6829 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6830 -- | FORMAL_ARRAY_TYPE_DEFINITION
6831 -- | FORMAL_ACCESS_TYPE_DEFINITION
6832 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6833 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6835 -- The Ada 2012 syntax introduces two new non-terminals:
6836 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6837 -- the latter category. Here we introduce an incomplete type definition
6838 -- in order to preserve as much as possible the existing structure.
6840 ---------------------------------------------
6841 -- 12.5.1 Formal Private Type Definition --
6842 ---------------------------------------------
6844 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6845 -- [[abstract] tagged] [limited] private
6847 -- Note: TAGGED is not allowed in Ada 83 mode
6849 -- N_Formal_Private_Type_Definition
6850 -- Sloc points to PRIVATE
6851 -- Uninitialized_Variable (Node3-Sem)
6852 -- Abstract_Present (Flag4)
6853 -- Tagged_Present (Flag15)
6854 -- Limited_Present (Flag17)
6856 --------------------------------------------
6857 -- 12.5.1 Formal Derived Type Definition --
6858 --------------------------------------------
6860 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6861 -- [abstract] [limited | synchronized]
6862 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6863 -- Note: this construct is not allowed in Ada 83 mode
6865 -- N_Formal_Derived_Type_Definition
6866 -- Sloc points to NEW
6867 -- Subtype_Mark (Node4)
6868 -- Private_Present (Flag15)
6869 -- Abstract_Present (Flag4)
6870 -- Limited_Present (Flag17)
6871 -- Synchronized_Present (Flag7)
6872 -- Interface_List (List2) (set to No_List if none)
6874 -----------------------------------------------
6875 -- 12.5.1 Formal Incomplete Type Definition --
6876 -----------------------------------------------
6878 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6880 -- N_Formal_Incomplete_Type_Definition
6881 -- Sloc points to identifier of parent
6882 -- Tagged_Present (Flag15)
6884 ---------------------------------------------
6885 -- 12.5.2 Formal Discrete Type Definition --
6886 ---------------------------------------------
6888 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6890 -- N_Formal_Discrete_Type_Definition
6891 -- Sloc points to (
6893 ---------------------------------------------------
6894 -- 12.5.2 Formal Signed Integer Type Definition --
6895 ---------------------------------------------------
6897 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6899 -- N_Formal_Signed_Integer_Type_Definition
6900 -- Sloc points to RANGE
6902 --------------------------------------------
6903 -- 12.5.2 Formal Modular Type Definition --
6904 --------------------------------------------
6906 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6908 -- N_Formal_Modular_Type_Definition
6909 -- Sloc points to MOD
6911 ----------------------------------------------
6912 -- 12.5.2 Formal Floating Point Definition --
6913 ----------------------------------------------
6915 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6917 -- N_Formal_Floating_Point_Definition
6918 -- Sloc points to DIGITS
6920 ----------------------------------------------------
6921 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6922 ----------------------------------------------------
6924 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6926 -- N_Formal_Ordinary_Fixed_Point_Definition
6927 -- Sloc points to DELTA
6929 ---------------------------------------------------
6930 -- 12.5.2 Formal Decimal Fixed Point Definition --
6931 ---------------------------------------------------
6933 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6935 -- Note: formal decimal fixed point definition not allowed in Ada 83
6937 -- N_Formal_Decimal_Fixed_Point_Definition
6938 -- Sloc points to DELTA
6940 ------------------------------------------
6941 -- 12.5.3 Formal Array Type Definition --
6942 ------------------------------------------
6944 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6946 -------------------------------------------
6947 -- 12.5.4 Formal Access Type Definition --
6948 -------------------------------------------
6950 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6952 ----------------------------------------------
6953 -- 12.5.5 Formal Interface Type Definition --
6954 ----------------------------------------------
6956 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6958 -----------------------------------------
6959 -- 12.6 Formal Subprogram Declaration --
6960 -----------------------------------------
6962 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6963 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6964 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6966 --------------------------------------------------
6967 -- 12.6 Formal Concrete Subprogram Declaration --
6968 --------------------------------------------------
6970 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6971 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6972 -- [ASPECT_SPECIFICATIONS];
6974 -- N_Formal_Concrete_Subprogram_Declaration
6975 -- Sloc points to WITH
6976 -- Specification (Node1)
6977 -- Default_Name (Node2) (set to Empty if no subprogram default)
6978 -- Box_Present (Flag15)
6980 -- Note: if no subprogram default is present, then Name is set
6981 -- to Empty, and Box_Present is False.
6983 --------------------------------------------------
6984 -- 12.6 Formal Abstract Subprogram Declaration --
6985 --------------------------------------------------
6987 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6988 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6989 -- [ASPECT_SPECIFICATIONS];
6991 -- N_Formal_Abstract_Subprogram_Declaration
6992 -- Sloc points to WITH
6993 -- Specification (Node1)
6994 -- Default_Name (Node2) (set to Empty if no subprogram default)
6995 -- Box_Present (Flag15)
6997 -- Note: if no subprogram default is present, then Name is set
6998 -- to Empty, and Box_Present is False.
7000 ------------------------------
7001 -- 12.6 Subprogram Default --
7002 ------------------------------
7004 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7006 -- There is no separate node in the tree for a subprogram default.
7007 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7008 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7009 -- default name or box indication, as needed.
7011 ------------------------
7012 -- 12.6 Default Name --
7013 ------------------------
7015 -- DEFAULT_NAME ::= NAME
7017 --------------------------------------
7018 -- 12.7 Formal Package Declaration --
7019 --------------------------------------
7021 -- FORMAL_PACKAGE_DECLARATION ::=
7022 -- with package DEFINING_IDENTIFIER
7023 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7024 -- [ASPECT_SPECIFICATIONS];
7026 -- Note: formal package declarations not allowed in Ada 83 mode
7028 -- N_Formal_Package_Declaration
7029 -- Sloc points to WITH
7030 -- Defining_Identifier (Node1)
7031 -- Name (Node2)
7032 -- Generic_Associations (List3) (set to No_List if (<>) case or
7033 -- empty generic actual part)
7034 -- Box_Present (Flag15)
7035 -- Instance_Spec (Node5-Sem)
7036 -- ABE_Is_Certain (Flag18-Sem)
7038 --------------------------------------
7039 -- 12.7 Formal Package Actual Part --
7040 --------------------------------------
7042 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7043 -- ([OTHERS] => <>)
7044 -- | [GENERIC_ACTUAL_PART]
7045 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7047 -- FORMAL_PACKAGE_ASSOCIATION ::=
7048 -- GENERIC_ASSOCIATION
7049 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7051 -- There is no explicit node in the tree for a formal package actual
7052 -- part. Instead the information appears in the parent node (i.e. the
7053 -- formal package declaration node itself).
7055 -- There is no explicit node for a formal package association. All of
7056 -- them are represented either by a generic association, possibly with
7057 -- Box_Present, or by an N_Others_Choice.
7059 ---------------------------------
7060 -- 13.1 Representation clause --
7061 ---------------------------------
7063 -- REPRESENTATION_CLAUSE ::=
7064 -- ATTRIBUTE_DEFINITION_CLAUSE
7065 -- | ENUMERATION_REPRESENTATION_CLAUSE
7066 -- | RECORD_REPRESENTATION_CLAUSE
7067 -- | AT_CLAUSE
7069 ----------------------
7070 -- 13.1 Local Name --
7071 ----------------------
7073 -- LOCAL_NAME :=
7074 -- DIRECT_NAME
7075 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7076 -- | library_unit_NAME
7078 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7079 -- as an attribute reference, which has essentially the same form.
7081 ---------------------------------------
7082 -- 13.3 Attribute definition clause --
7083 ---------------------------------------
7085 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7086 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7087 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7089 -- In Ada 83, the expression must be a simple expression and the
7090 -- local name must be a direct name.
7092 -- Note: the only attribute definition clause that is processed by
7093 -- gigi is an address clause. For all other cases, the information
7094 -- is extracted by the front end and either results in setting entity
7095 -- information, e.g. Esize for the Size clause, or in appropriate
7096 -- expansion actions (e.g. in the case of Storage_Size).
7098 -- For an address clause, Gigi constructs the appropriate addressing
7099 -- code. It also ensures that no aliasing optimizations are made
7100 -- for the object for which the address clause appears.
7102 -- Note: for an address clause used to achieve an overlay:
7104 -- A : Integer;
7105 -- B : Integer;
7106 -- for B'Address use A'Address;
7108 -- the above rule means that Gigi will ensure that no optimizations
7109 -- will be made for B that would violate the implementation advice
7110 -- of RM 13.3(19). However, this advice applies only to B and not
7111 -- to A, which seems unfortunate. The GNAT front end will mark the
7112 -- object A as volatile to also prevent unwanted optimization
7113 -- assumptions based on no aliasing being made for B.
7115 -- N_Attribute_Definition_Clause
7116 -- Sloc points to FOR
7117 -- Name (Node2) the local name
7118 -- Chars (Name1) the identifier name from the attribute designator
7119 -- Expression (Node3) the expression or name
7120 -- Entity (Node4-Sem)
7121 -- Next_Rep_Item (Node5-Sem)
7122 -- From_At_Mod (Flag4-Sem)
7123 -- Check_Address_Alignment (Flag11-Sem)
7124 -- From_Aspect_Specification (Flag13-Sem)
7125 -- Is_Delayed_Aspect (Flag14-Sem)
7126 -- Address_Warning_Posted (Flag18-Sem)
7128 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7129 -- aspect name, and Entity is resolved already to reference the entity
7130 -- to which the aspect applies.
7132 -----------------------------------
7133 -- 13.3.1 Aspect Specifications --
7134 -----------------------------------
7136 -- We modify the RM grammar here, the RM grammar is:
7138 -- ASPECT_SPECIFICATION ::=
7139 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7140 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7142 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7144 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7146 -- That's inconvenient, since there is no non-terminal name for a single
7147 -- entry in the list of aspects. So we use this grammar instead:
7149 -- ASPECT_SPECIFICATIONS ::=
7150 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7152 -- ASPECT_SPECIFICATION =>
7153 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7155 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7157 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7159 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7160 -- aggregate with the elements of the aggregate corresponding to the
7161 -- successive arguments of the corresponding pragma.
7163 -- See separate package Aspects for details on the incorporation of
7164 -- these nodes into the tree, and how aspect specifications for a given
7165 -- declaration node are associated with that node.
7167 -- N_Aspect_Specification
7168 -- Sloc points to aspect identifier
7169 -- Identifier (Node1) aspect identifier
7170 -- Aspect_Rep_Item (Node2-Sem)
7171 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7172 -- Entity (Node4-Sem) entity to which the aspect applies
7173 -- Next_Rep_Item (Node5-Sem)
7174 -- Class_Present (Flag6) Set if 'Class present
7175 -- Is_Ignored (Flag9-Sem)
7176 -- Is_Checked (Flag11-Sem)
7177 -- Is_Delayed_Aspect (Flag14-Sem)
7178 -- Is_Disabled (Flag15-Sem)
7179 -- Is_Boolean_Aspect (Flag16-Sem)
7180 -- Split_PPC (Flag17) Set if split pre/post attribute
7182 -- Note: Aspect_Specification is an Ada 2012 feature
7184 -- Note: The Identifier serves to identify the aspect involved (it
7185 -- is the aspect whose name corresponds to the Chars field). This
7186 -- means that the other fields of this identifier are unused, and
7187 -- in particular we use the Entity field of this identifier to save
7188 -- a copy of the expression for visibility analysis, see spec of
7189 -- Sem_Ch13 for full details of this usage.
7191 -- In the case of aspects of the form xxx'Class, the aspect identifier
7192 -- is for xxx, and Class_Present is set to True.
7194 -- Note: When a Pre or Post aspect specification is processed, it is
7195 -- broken into AND THEN sections. The left most section has Split_PPC
7196 -- set to False, indicating that it is the original specification (e.g.
7197 -- for posting errors). For the other sections, Split_PPC is set True.
7199 ---------------------------------------------
7200 -- 13.4 Enumeration representation clause --
7201 ---------------------------------------------
7203 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7204 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7206 -- In Ada 83, the name must be a direct name
7208 -- N_Enumeration_Representation_Clause
7209 -- Sloc points to FOR
7210 -- Identifier (Node1) direct name
7211 -- Array_Aggregate (Node3)
7212 -- Next_Rep_Item (Node5-Sem)
7214 ---------------------------------
7215 -- 13.4 Enumeration aggregate --
7216 ---------------------------------
7218 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7220 ------------------------------------------
7221 -- 13.5.1 Record representation clause --
7222 ------------------------------------------
7224 -- RECORD_REPRESENTATION_CLAUSE ::=
7225 -- for first_subtype_LOCAL_NAME use
7226 -- record [MOD_CLAUSE]
7227 -- {COMPONENT_CLAUSE}
7228 -- end record;
7230 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7231 -- replaced by a corresponding Alignment attribute definition clause).
7233 -- Note: Component_Clauses can include pragmas
7235 -- N_Record_Representation_Clause
7236 -- Sloc points to FOR
7237 -- Identifier (Node1) direct name
7238 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7239 -- Component_Clauses (List3)
7240 -- Next_Rep_Item (Node5-Sem)
7242 ------------------------------
7243 -- 13.5.1 Component clause --
7244 ------------------------------
7246 -- COMPONENT_CLAUSE ::=
7247 -- component_LOCAL_NAME at POSITION
7248 -- range FIRST_BIT .. LAST_BIT;
7250 -- N_Component_Clause
7251 -- Sloc points to AT
7252 -- Component_Name (Node1) points to Name or Attribute_Reference
7253 -- Position (Node2)
7254 -- First_Bit (Node3)
7255 -- Last_Bit (Node4)
7257 ----------------------
7258 -- 13.5.1 Position --
7259 ----------------------
7261 -- POSITION ::= static_EXPRESSION
7263 -----------------------
7264 -- 13.5.1 First_Bit --
7265 -----------------------
7267 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7269 ----------------------
7270 -- 13.5.1 Last_Bit --
7271 ----------------------
7273 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7275 --------------------------
7276 -- 13.8 Code statement --
7277 --------------------------
7279 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7281 -- Note: in GNAT, the qualified expression has the form
7283 -- Asm_Insn'(Asm (...));
7285 -- See package System.Machine_Code in file s-maccod.ads for details on
7286 -- the allowed parameters to Asm. There are two ways this node can
7287 -- arise, as a code statement, in which case the expression is the
7288 -- qualified expression, or as a result of the expansion of an intrinsic
7289 -- call to the Asm or Asm_Input procedure.
7291 -- N_Code_Statement
7292 -- Sloc points to first token of the expression
7293 -- Expression (Node3)
7295 -- Note: package Exp_Code contains an abstract functional interface
7296 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7298 ------------------------
7299 -- 13.12 Restriction --
7300 ------------------------
7302 -- RESTRICTION ::=
7303 -- restriction_IDENTIFIER
7304 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7306 -- There is no explicit node for restrictions. Instead the restriction
7307 -- appears in normal pragma syntax as a pragma argument association,
7308 -- which has the same syntactic form.
7310 --------------------------
7311 -- B.2 Shift Operators --
7312 --------------------------
7314 -- Calls to the intrinsic shift functions are converted to one of
7315 -- the following shift nodes, which have the form of normal binary
7316 -- operator names. Note that for a given shift operation, one node
7317 -- covers all possible types, as for normal operators.
7319 -- Note: it is perfectly permissible for the expander to generate
7320 -- shift operation nodes directly, in which case they will be analyzed
7321 -- and parsed in the usual manner.
7323 -- Sprint syntax: shift-function-name!(expr, count)
7325 -- Note: the Left_Opnd field holds the first argument (the value to
7326 -- be shifted). The Right_Opnd field holds the second argument (the
7327 -- shift count). The Chars field is the name of the intrinsic function.
7329 -- N_Op_Rotate_Left
7330 -- Sloc points to the function name
7331 -- plus fields for binary operator
7332 -- plus fields for expression
7333 -- Shift_Count_OK (Flag4-Sem)
7335 -- N_Op_Rotate_Right
7336 -- Sloc points to the function name
7337 -- plus fields for binary operator
7338 -- plus fields for expression
7339 -- Shift_Count_OK (Flag4-Sem)
7341 -- N_Op_Shift_Left
7342 -- Sloc points to the function name
7343 -- plus fields for binary operator
7344 -- plus fields for expression
7345 -- Shift_Count_OK (Flag4-Sem)
7347 -- N_Op_Shift_Right_Arithmetic
7348 -- Sloc points to the function name
7349 -- plus fields for binary operator
7350 -- plus fields for expression
7351 -- Shift_Count_OK (Flag4-Sem)
7353 -- N_Op_Shift_Right
7354 -- Sloc points to the function name
7355 -- plus fields for binary operator
7356 -- plus fields for expression
7357 -- Shift_Count_OK (Flag4-Sem)
7359 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7360 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7362 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7363 -- always less than the word size if Modify_Tree_For_C mode is set.
7365 --------------------------
7366 -- Obsolescent Features --
7367 --------------------------
7369 -- The syntax descriptions and tree nodes for obsolescent features are
7370 -- grouped together, corresponding to their location in appendix I in
7371 -- the RM. However, parsing and semantic analysis for these constructs
7372 -- is located in an appropriate chapter (see individual notes).
7374 ---------------------------
7375 -- J.3 Delta Constraint --
7376 ---------------------------
7378 -- Note: the parse routine for this construct is located in section
7379 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7380 -- where delta constraint logically belongs.
7382 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7384 -- N_Delta_Constraint
7385 -- Sloc points to DELTA
7386 -- Delta_Expression (Node3)
7387 -- Range_Constraint (Node4) (set to Empty if not present)
7389 --------------------
7390 -- J.7 At Clause --
7391 --------------------
7393 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7395 -- Note: the parse routine for this construct is located in Par-Ch13,
7396 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7397 -- belongs if it were not obsolescent.
7399 -- Note: in Ada 83 the expression must be a simple expression
7401 -- Gigi restriction: This node never appears, it is rewritten as an
7402 -- address attribute definition clause.
7404 -- N_At_Clause
7405 -- Sloc points to FOR
7406 -- Identifier (Node1)
7407 -- Expression (Node3)
7409 ---------------------
7410 -- J.8 Mod clause --
7411 ---------------------
7413 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7415 -- Note: the parse routine for this construct is located in Par-Ch13,
7416 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7417 -- belongs if it were not obsolescent.
7419 -- Note: in Ada 83, the expression must be a simple expression
7421 -- Gigi restriction: this node never appears. It is replaced
7422 -- by a corresponding Alignment attribute definition clause.
7424 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7425 -- its name has "clause" in it. This is rather strange, but is quite
7426 -- definitely specified. The pragmas before are collected in the
7427 -- Pragmas_Before field of the mod clause node itself, and pragmas
7428 -- after are simply swallowed up in the list of component clauses.
7430 -- N_Mod_Clause
7431 -- Sloc points to AT
7432 -- Expression (Node3)
7433 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7435 --------------------
7436 -- Semantic Nodes --
7437 --------------------
7439 -- These semantic nodes are used to hold additional semantic information.
7440 -- They are inserted into the tree as a result of semantic processing.
7441 -- Although there are no legitimate source syntax constructions that
7442 -- correspond directly to these nodes, we need a source syntax for the
7443 -- reconstructed tree printed by Sprint, and the node descriptions here
7444 -- show this syntax.
7446 ------------------------
7447 -- Compound Statement --
7448 ------------------------
7450 -- This node is created by the analyzer/expander to handle some
7451 -- expansion cases where a sequence of actions needs to be captured
7452 -- within a single node (which acts as a container and allows the
7453 -- entire list of actions to be moved around as a whole) appearing
7454 -- in a sequence of statements.
7456 -- This is the statement counterpart to the expression node
7457 -- N_Expression_With_Actions.
7459 -- The required semantics is that the set of actions is executed in
7460 -- the order in which it appears, as though they appeared by themselves
7461 -- in the enclosing list of declarations of statements. Unlike what
7462 -- happens when using an N_Block_Statement, no new scope is introduced.
7464 -- Note: for the time being, this is used only as a transient
7465 -- representation during expansion, and all compound statement nodes
7466 -- must be exploded back to their constituent statements before handing
7467 -- the tree to the back end.
7469 -- Sprint syntax: do
7470 -- action;
7471 -- action;
7472 -- ...
7473 -- action;
7474 -- end;
7476 -- N_Compound_Statement
7477 -- Actions (List1)
7479 --------------
7480 -- Contract --
7481 --------------
7483 -- This node is used to hold the various parts of an entry, subprogram
7484 -- [body] or package [body] contract, in particular:
7485 -- Abstract states declared by a package declaration
7486 -- Contract cases that apply to a subprogram
7487 -- Dependency relations of inputs and output of a subprogram
7488 -- Global annotations classifying data as input or output
7489 -- Initialization sequences for a package declaration
7490 -- Pre- and postconditions that apply to a subprogram
7492 -- The node appears in an entry and [generic] subprogram [body] entity.
7494 -- Sprint syntax: <none> as the node should not appear in the tree, but
7495 -- only attached to an entry or [generic] subprogram
7496 -- entity.
7498 -- N_Contract
7499 -- Sloc points to the subprogram's name
7500 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7501 -- Contract_Test_Cases (Node2) (set to Empty if none)
7502 -- Classifications (Node3) (set to Empty if none)
7504 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7505 -- to pre- and postconditions associated with an entry or a subprogram
7506 -- [body or stub]. The pragmas can either come from source or be the
7507 -- byproduct of aspect expansion. Currently the following pragmas appear
7508 -- in this list:
7509 -- Post
7510 -- Postcondition
7511 -- Pre
7512 -- Precondition
7513 -- Refined_Post
7514 -- The ordering in the list is in LIFO fashion.
7516 -- Note that there might be multiple preconditions or postconditions
7517 -- in this list, either because they come from separate pragmas in the
7518 -- source, or because a Pre (resp. Post) aspect specification has been
7519 -- broken into AND THEN sections. See Split_PPC for details.
7521 -- Contract_Test_Cases contains a collection of pragmas that correspond
7522 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7523 -- list is in LIFO fashion.
7525 -- Classifications contains pragmas that either declare, categorize or
7526 -- establish dependencies between subprogram or package inputs and
7527 -- outputs. Currently the following pragmas appear in this list:
7528 -- Abstract_States
7529 -- Async_Readers
7530 -- Async_Writers
7531 -- Depends
7532 -- Effective_Reads
7533 -- Effective_Writes
7534 -- Global
7535 -- Initial_Condition
7536 -- Initializes
7537 -- Part_Of
7538 -- Refined_Depends
7539 -- Refined_Global
7540 -- Refined_States
7541 -- The ordering is in LIFO fashion.
7543 -------------------
7544 -- Expanded Name --
7545 -------------------
7547 -- The N_Expanded_Name node is used to represent a selected component
7548 -- name that has been resolved to an expanded name. The semantic phase
7549 -- replaces N_Selected_Component nodes that represent names by the use
7550 -- of this node, leaving the N_Selected_Component node used only when
7551 -- the prefix is a record or protected type.
7553 -- The fields of the N_Expanded_Name node are layed out identically
7554 -- to those of the N_Selected_Component node, allowing conversion of
7555 -- an expanded name node to a selected component node to be done
7556 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7558 -- There is no special sprint syntax for an expanded name
7560 -- N_Expanded_Name
7561 -- Sloc points to the period
7562 -- Chars (Name1) copy of Chars field of selector name
7563 -- Prefix (Node3)
7564 -- Selector_Name (Node2)
7565 -- Entity (Node4-Sem)
7566 -- Associated_Node (Node4-Sem)
7567 -- Has_Private_View (Flag11-Sem) set in generic units.
7568 -- Redundant_Use (Flag13-Sem)
7569 -- Atomic_Sync_Required (Flag14-Sem)
7570 -- plus fields for expression
7572 -----------------------------
7573 -- Expression With Actions --
7574 -----------------------------
7576 -- This node is created by the analyzer/expander to handle some
7577 -- expansion cases, notably short circuit forms where there are
7578 -- actions associated with the right-hand side operand.
7580 -- The N_Expression_With_Actions node represents an expression with
7581 -- an associated set of actions (which are executable statements and
7582 -- declarations, as might occur in a handled statement sequence).
7584 -- The required semantics is that the set of actions is executed in
7585 -- the order in which it appears just before the expression is
7586 -- evaluated (and these actions must only be executed if the value
7587 -- of the expression is evaluated). The node is considered to be
7588 -- a subexpression, whose value is the value of the Expression after
7589 -- executing all the actions.
7591 -- If the actions contain declarations, then these declarations may
7592 -- be referenced within the expression. However note that there is
7593 -- no proper scope associated with the expression-with-action, so the
7594 -- back-end will elaborate them in the context of the enclosing scope.
7596 -- Sprint syntax: do
7597 -- action;
7598 -- action;
7599 -- ...
7600 -- action;
7601 -- in expression end
7603 -- N_Expression_With_Actions
7604 -- Actions (List1)
7605 -- Expression (Node3)
7606 -- plus fields for expression
7608 -- Note: In the final generated tree presented to the code generator,
7609 -- the actions list is always non-null, since there is no point in this
7610 -- node if the actions are Empty. During semantic analysis there are
7611 -- cases where it is convenient to temporarily generate an empty actions
7612 -- list. This arises in cases where we create such an empty actions
7613 -- list, and it may or may not end up being a place where additional
7614 -- actions are inserted. The expander removes such empty cases after
7615 -- the expression of the node is fully analyzed and expanded, at which
7616 -- point it is safe to remove it, since no more actions can be inserted.
7618 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7619 -- the action list, which can contain only non-declarative statements.
7621 --------------------
7622 -- Free Statement --
7623 --------------------
7625 -- The N_Free_Statement node is generated as a result of a call to an
7626 -- instantiation of Unchecked_Deallocation. The instantiation of this
7627 -- generic is handled specially and generates this node directly.
7629 -- Sprint syntax: free expression
7631 -- N_Free_Statement
7632 -- Sloc is copied from the unchecked deallocation call
7633 -- Expression (Node3) argument to unchecked deallocation call
7634 -- Storage_Pool (Node1-Sem)
7635 -- Procedure_To_Call (Node2-Sem)
7636 -- Actual_Designated_Subtype (Node4-Sem)
7638 -- Note: in the case where a debug source file is generated, the Sloc
7639 -- for this node points to the FREE keyword in the Sprint file output.
7641 -------------------
7642 -- Freeze Entity --
7643 -------------------
7645 -- This node marks the point in a declarative part at which an entity
7646 -- declared therein becomes frozen. The expander places initialization
7647 -- procedures for types at those points. Gigi uses the freezing point
7648 -- to elaborate entities that may depend on previous private types.
7650 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7651 -- a full description of the use of this node.
7653 -- The Entity field points back to the entity for the type (whose
7654 -- Freeze_Node field points back to this freeze node).
7656 -- The Actions field contains a list of declarations and statements
7657 -- generated by the expander which are associated with the freeze
7658 -- node, and are elaborated as though the freeze node were replaced
7659 -- by this sequence of actions.
7661 -- Note: the Sloc field in the freeze node references a construct
7662 -- associated with the freezing point. This is used for posting
7663 -- messages in some error/warning situations, e.g. the case where
7664 -- a primitive operation of a tagged type is declared too late.
7666 -- Sprint syntax: freeze entity-name [
7667 -- freeze actions
7668 -- ]
7670 -- N_Freeze_Entity
7671 -- Sloc points near freeze point (see above special note)
7672 -- Entity (Node4-Sem)
7673 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7674 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7675 -- Actions (List1) (set to No_List if no freeze actions)
7676 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7678 -- The Actions field holds actions associated with the freeze. These
7679 -- actions are elaborated at the point where the type is frozen.
7681 -- Note: in the case where a debug source file is generated, the Sloc
7682 -- for this node points to the FREEZE keyword in the Sprint file output.
7684 ---------------------------
7685 -- Freeze Generic Entity --
7686 ---------------------------
7688 -- The freeze point of an entity indicates the point at which the
7689 -- information needed to generate code for the entity is complete.
7690 -- The freeze node for an entity triggers expander activities, such as
7691 -- build initialization procedures, and backend activities, such as
7692 -- completing the elaboration of packages.
7694 -- For entities declared within a generic unit, for which no code is
7695 -- generated, the freeze point is not equally meaningful. However, in
7696 -- Ada 2012 several semantic checks on declarations must be delayed to
7697 -- the freeze point, and we need to include such a mark in the tree to
7698 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7699 -- role, and is ignored by the expander and the back-end.
7701 -- Sprint syntax: freeze_generic entity-name
7703 -- N_Freeze_Generic_Entity
7704 -- Sloc points near freeze point
7705 -- Entity (Node4-Sem)
7707 --------------------------------
7708 -- Implicit Label Declaration --
7709 --------------------------------
7711 -- An implicit label declaration is created for every occurrence of a
7712 -- label on a statement or a label on a block or loop. It is chained
7713 -- in the declarations of the innermost enclosing block as specified
7714 -- in RM section 5.1 (3).
7716 -- The Defining_Identifier is the actual identifier for the statement
7717 -- identifier. Note that the occurrence of the label is a reference, NOT
7718 -- the defining occurrence. The defining occurrence occurs at the head
7719 -- of the innermost enclosing block, and is represented by this node.
7721 -- Note: from the grammar, this might better be called an implicit
7722 -- statement identifier declaration, but the term we choose seems
7723 -- friendlier, since at least informally statement identifiers are
7724 -- called labels in both cases (i.e. when used in labels, and when
7725 -- used as the identifiers of blocks and loops).
7727 -- Note: although this is logically a semantic node, since it does not
7728 -- correspond directly to a source syntax construction, these nodes are
7729 -- actually created by the parser in a post pass done just after parsing
7730 -- is complete, before semantic analysis is started (see Par.Labl).
7732 -- Sprint syntax: labelname : label;
7734 -- N_Implicit_Label_Declaration
7735 -- Sloc points to the << token for a statement identifier, or to the
7736 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7737 -- Defining_Identifier (Node1)
7738 -- Label_Construct (Node2-Sem)
7740 -- Note: in the case where a debug source file is generated, the Sloc
7741 -- for this node points to the label name in the generated declaration.
7743 ---------------------
7744 -- Itype Reference --
7745 ---------------------
7747 -- This node is used to create a reference to an Itype. The only purpose
7748 -- is to make sure the Itype is defined if this is the first reference.
7750 -- A typical use of this node is when an Itype is to be referenced in
7751 -- two branches of an IF statement. In this case it is important that
7752 -- the first use of the Itype not be inside the conditional, since then
7753 -- it might not be defined if the other branch of the IF is taken, in
7754 -- the case where the definition generates elaboration code.
7756 -- The Itype field points to the referenced Itype
7758 -- Sprint syntax: reference itype-name
7760 -- N_Itype_Reference
7761 -- Sloc points to the node generating the reference
7762 -- Itype (Node1-Sem)
7764 -- Note: in the case where a debug source file is generated, the Sloc
7765 -- for this node points to the REFERENCE keyword in the file output.
7767 ---------------------
7768 -- Raise xxx Error --
7769 ---------------------
7771 -- One of these nodes is created during semantic analysis to replace
7772 -- a node for an expression that is determined to definitely raise
7773 -- the corresponding exception.
7775 -- The N_Raise_xxx_Error node may also stand alone in place
7776 -- of a declaration or statement, in which case it simply causes
7777 -- the exception to be raised (i.e. it is equivalent to a raise
7778 -- statement that raises the corresponding exception). This use
7779 -- is distinguished by the fact that the Etype in this case is
7780 -- Standard_Void_Type; in the subexpression case, the Etype is the
7781 -- same as the type of the subexpression which it replaces.
7783 -- If Condition is empty, then the raise is unconditional. If the
7784 -- Condition field is non-empty, it is a boolean expression which
7785 -- is first evaluated, and the exception is raised only if the
7786 -- value of the expression is True. In the unconditional case, the
7787 -- creation of this node is usually accompanied by a warning message
7788 -- error. The creation of this node will usually be accompanied by a
7789 -- message (unless it appears within the right operand of a short
7790 -- circuit form whose left argument is static and decisively
7791 -- eliminates elaboration of the raise operation. The condition field
7792 -- can ONLY be present when the node is used as a statement form, it
7793 -- may NOT be present in the case where the node appears within an
7794 -- expression.
7796 -- The exception is generated with a message that contains the
7797 -- file name and line number, and then appended text. The Reason
7798 -- code shows the text to be added. The Reason code is an element
7799 -- of the type Types.RT_Exception_Code, and indicates both the
7800 -- message to be added, and the exception to be raised (which must
7801 -- match the node type). The value is stored by storing a Uint which
7802 -- is the Pos value of the enumeration element in this type.
7804 -- Gigi restriction: This expander ensures that the type of the
7805 -- Condition field is always Standard.Boolean, even if the type
7806 -- in the source is some non-standard boolean type.
7808 -- Sprint syntax: [xxx_error "msg"]
7809 -- or: [xxx_error when condition "msg"]
7811 -- N_Raise_Constraint_Error
7812 -- Sloc references related construct
7813 -- Condition (Node1) (set to Empty if no condition)
7814 -- Reason (Uint3)
7815 -- plus fields for expression
7817 -- N_Raise_Program_Error
7818 -- Sloc references related construct
7819 -- Condition (Node1) (set to Empty if no condition)
7820 -- Reason (Uint3)
7821 -- plus fields for expression
7823 -- N_Raise_Storage_Error
7824 -- Sloc references related construct
7825 -- Condition (Node1) (set to Empty if no condition)
7826 -- Reason (Uint3)
7827 -- plus fields for expression
7829 -- Note: Sloc is copied from the expression generating the exception.
7830 -- In the case where a debug source file is generated, the Sloc for
7831 -- this node points to the left bracket in the Sprint file output.
7833 -- Note: the back end may be required to translate these nodes into
7834 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7836 ---------------------------------------------
7837 -- Optimization of Exception Raise to Goto --
7838 ---------------------------------------------
7840 -- In some cases, the front end will determine that any exception raised
7841 -- by the back end for a certain exception should be transformed into a
7842 -- goto statement.
7844 -- There are three kinds of exceptions raised by the back end (note that
7845 -- for this purpose we consider gigi to be part of the back end in the
7846 -- gcc case):
7848 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7849 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7850 -- 3. Other cases not specifically marked by the front end
7852 -- Normally all such exceptions are translated into calls to the proper
7853 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7854 -- and the exception message.
7856 -- The front end may determine that for a particular sequence of code,
7857 -- exceptions in any of these three categories for a particular builtin
7858 -- exception should result in a goto, rather than a call to Rcheck_xx.
7859 -- The exact sequence to be generated is:
7861 -- Local_Raise (exception'Identity);
7862 -- goto Label
7864 -- The front end marks such a sequence of code by bracketing it with
7865 -- push and pop nodes:
7867 -- N_Push_xxx_Label (referencing the label)
7868 -- ...
7869 -- (code where transformation is expected for exception xxx)
7870 -- ...
7871 -- N_Pop_xxx_Label
7873 -- The use of push/pop reflects the fact that such regions can properly
7874 -- nest, and one special case is a subregion in which no transformation
7875 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7876 -- Exception_Label field is Empty.
7878 -- N_Push_Constraint_Error_Label
7879 -- Sloc references first statement in region covered
7880 -- Exception_Label (Node5-Sem)
7882 -- N_Push_Program_Error_Label
7883 -- Sloc references first statement in region covered
7884 -- Exception_Label (Node5-Sem)
7886 -- N_Push_Storage_Error_Label
7887 -- Sloc references first statement in region covered
7888 -- Exception_Label (Node5-Sem)
7890 -- N_Pop_Constraint_Error_Label
7891 -- Sloc references last statement in region covered
7893 -- N_Pop_Program_Error_Label
7894 -- Sloc references last statement in region covered
7896 -- N_Pop_Storage_Error_Label
7897 -- Sloc references last statement in region covered
7899 ---------------
7900 -- Reference --
7901 ---------------
7903 -- For a number of purposes, we need to construct references to objects.
7904 -- These references are subsequently treated as normal access values.
7905 -- An example is the construction of the parameter block passed to a
7906 -- task entry. The N_Reference node is provided for this purpose. It is
7907 -- similar in effect to the use of the Unrestricted_Access attribute,
7908 -- and like Unrestricted_Access can be applied to objects which would
7909 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7910 -- objects which are not aliased, and slices). In addition it can be
7911 -- applied to composite type values as well as objects, including string
7912 -- values and aggregates.
7914 -- Note: we use the Prefix field for this expression so that the
7915 -- resulting node can be treated using common code with the attribute
7916 -- nodes for the 'Access and related attributes. Logically it would make
7917 -- more sense to call it an Expression field, but then we would have to
7918 -- special case the treatment of the N_Reference node.
7920 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7921 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7922 -- a temporary initialized to a N_Reference node in order to eliminate
7923 -- superfluous access checks.
7925 -- Sprint syntax: prefix'reference
7927 -- N_Reference
7928 -- Sloc is copied from the expression
7929 -- Prefix (Node3)
7930 -- plus fields for expression
7932 -- Note: in the case where a debug source file is generated, the Sloc
7933 -- for this node points to the quote in the Sprint file output.
7935 ----------------
7936 -- SCIL Nodes --
7937 ----------------
7939 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
7940 -- is active. They are only generated if SCIL generation is enabled.
7941 -- A standard tree-walk will not encounter these nodes even if they
7942 -- are present; these nodes are only accessible via the function
7943 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
7944 -- semantics.
7946 -- Sprint syntax: [ <node kind> ]
7947 -- No semantic field values are displayed.
7949 -- N_SCIL_Dispatch_Table_Tag_Init
7950 -- Sloc references a node for a tag initialization
7951 -- SCIL_Entity (Node4-Sem)
7953 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7954 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7955 -- the declaration of the dispatch table for a tagged type.
7957 -- N_SCIL_Dispatching_Call
7958 -- Sloc references the node of a dispatching call
7959 -- SCIL_Target_Prim (Node2-Sem)
7960 -- SCIL_Entity (Node4-Sem)
7961 -- SCIL_Controlling_Tag (Node5-Sem)
7963 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7964 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7965 -- thereof) corresponding to a dispatching call.
7967 -- N_SCIL_Membership_Test
7968 -- Sloc references the node of a membership test
7969 -- SCIL_Tag_Value (Node5-Sem)
7970 -- SCIL_Entity (Node4-Sem)
7972 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7973 -- with the N_In node (or a rewriting thereof) corresponding to a
7974 -- classwide membership test.
7976 --------------------------
7977 -- Unchecked Expression --
7978 --------------------------
7980 -- An unchecked expression is one that must be analyzed and resolved
7981 -- with all checks off, regardless of the current setting of scope
7982 -- suppress flags.
7984 -- Sprint syntax: `(expression)
7986 -- Note: this node is always removed from the tree (and replaced by
7987 -- its constituent expression) on completion of analysis, so it only
7988 -- appears in intermediate trees, and will never be seen by Gigi.
7990 -- N_Unchecked_Expression
7991 -- Sloc is a copy of the Sloc of the expression
7992 -- Expression (Node3)
7993 -- plus fields for expression
7995 -- Note: in the case where a debug source file is generated, the Sloc
7996 -- for this node points to the back quote in the Sprint file output.
7998 -------------------------------
7999 -- Unchecked Type Conversion --
8000 -------------------------------
8002 -- An unchecked type conversion node represents the semantic action
8003 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8004 -- It is generated as a result of actual use of Unchecked_Conversion
8005 -- and also the expander generates unchecked type conversion nodes
8006 -- directly for expansion of complex semantic actions.
8008 -- Note: an unchecked type conversion is a variable as far as the
8009 -- semantics are concerned, which is convenient for the expander.
8010 -- This does not change what Ada source programs are legal, since
8011 -- clearly a function call to an instantiation of Unchecked_Conversion
8012 -- is not a variable in any case.
8014 -- Sprint syntax: subtype-mark!(expression)
8016 -- N_Unchecked_Type_Conversion
8017 -- Sloc points to related node in source
8018 -- Subtype_Mark (Node4)
8019 -- Expression (Node3)
8020 -- Kill_Range_Check (Flag11-Sem)
8021 -- No_Truncation (Flag17-Sem)
8022 -- plus fields for expression
8024 -- Note: in the case where a debug source file is generated, the Sloc
8025 -- for this node points to the exclamation in the Sprint file output.
8027 -----------------------------------
8028 -- Validate_Unchecked_Conversion --
8029 -----------------------------------
8031 -- The front end does most of the validation of unchecked conversion,
8032 -- including checking sizes (this is done after the back end is called
8033 -- to take advantage of back-annotation of calculated sizes).
8035 -- The front end also deals with specific cases that are not allowed
8036 -- e.g. involving unconstrained array types.
8038 -- For the case of the standard gigi backend, this means that all
8039 -- checks are done in the front end.
8041 -- However, in the case of specialized back-ends, notably the JVM
8042 -- backend for JGNAT, additional requirements and restrictions apply
8043 -- to unchecked conversion, and these are most conveniently performed
8044 -- in the specialized back-end.
8046 -- To accommodate this requirement, for such back ends, the following
8047 -- special node is generated recording an unchecked conversion that
8048 -- needs to be validated. The back end should post an appropriate
8049 -- error message if the unchecked conversion is invalid or warrants
8050 -- a special warning message.
8052 -- Source_Type and Target_Type point to the entities for the two
8053 -- types involved in the unchecked conversion instantiation that
8054 -- is to be validated.
8056 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8058 -- N_Validate_Unchecked_Conversion
8059 -- Sloc points to instantiation (location for warning message)
8060 -- Source_Type (Node1-Sem)
8061 -- Target_Type (Node2-Sem)
8063 -- Note: in the case where a debug source file is generated, the Sloc
8064 -- for this node points to the VALIDATE keyword in the file output.
8066 -----------
8067 -- Empty --
8068 -----------
8070 -- Used as the contents of the Nkind field of the dummy Empty node
8071 -- and in some other situations to indicate an uninitialized value.
8073 -- N_Empty
8074 -- Chars (Name1) is set to No_Name
8076 -----------
8077 -- Error --
8078 -----------
8080 -- Used as the contents of the Nkind field of the dummy Error node.
8081 -- Has an Etype field, which gets set to Any_Type later on, to help
8082 -- error recovery (Error_Posted is also set in the Error node).
8084 -- N_Error
8085 -- Chars (Name1) is set to Error_Name
8086 -- Etype (Node5-Sem)
8088 --------------------------
8089 -- Node Type Definition --
8090 --------------------------
8092 -- The following is the definition of the Node_Kind type. As previously
8093 -- discussed, this is separated off to allow rearrangement of the order to
8094 -- facilitate definition of subtype ranges. The comments show the subtype
8095 -- classes which apply to each set of node kinds. The first entry in the
8096 -- comment characterizes the following list of nodes.
8098 type Node_Kind is (
8099 N_Unused_At_Start,
8101 -- N_Representation_Clause
8103 N_At_Clause,
8104 N_Component_Clause,
8105 N_Enumeration_Representation_Clause,
8106 N_Mod_Clause,
8107 N_Record_Representation_Clause,
8109 -- N_Representation_Clause, N_Has_Chars
8111 N_Attribute_Definition_Clause,
8113 -- N_Has_Chars
8115 N_Empty,
8116 N_Pragma_Argument_Association,
8118 -- N_Has_Etype, N_Has_Chars
8120 -- Note: of course N_Error does not really have Etype or Chars fields,
8121 -- and any attempt to access these fields in N_Error will cause an
8122 -- error, but historically this always has been positioned so that an
8123 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8124 -- Most likely this makes coding easier somewhere but still seems
8125 -- undesirable. To be investigated some time ???
8127 N_Error,
8129 -- N_Entity, N_Has_Etype, N_Has_Chars
8131 N_Defining_Character_Literal,
8132 N_Defining_Identifier,
8133 N_Defining_Operator_Symbol,
8135 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8137 N_Expanded_Name,
8139 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8140 -- N_Has_Chars, N_Has_Entity
8142 N_Identifier,
8143 N_Operator_Symbol,
8145 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8146 -- N_Has_Chars, N_Has_Entity
8148 N_Character_Literal,
8150 -- N_Binary_Op, N_Op, N_Subexpr,
8151 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8153 N_Op_Add,
8154 N_Op_Concat,
8155 N_Op_Expon,
8156 N_Op_Subtract,
8158 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8159 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8161 N_Op_Divide,
8162 N_Op_Mod,
8163 N_Op_Multiply,
8164 N_Op_Rem,
8166 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8167 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8169 N_Op_And,
8171 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8172 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8174 N_Op_Eq,
8175 N_Op_Ge,
8176 N_Op_Gt,
8177 N_Op_Le,
8178 N_Op_Lt,
8179 N_Op_Ne,
8181 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8182 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8184 N_Op_Or,
8185 N_Op_Xor,
8187 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8188 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8190 N_Op_Rotate_Left,
8191 N_Op_Rotate_Right,
8192 N_Op_Shift_Left,
8193 N_Op_Shift_Right,
8194 N_Op_Shift_Right_Arithmetic,
8196 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8197 -- N_Has_Chars, N_Has_Entity
8199 N_Op_Abs,
8200 N_Op_Minus,
8201 N_Op_Not,
8202 N_Op_Plus,
8204 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8206 N_Attribute_Reference,
8208 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8210 N_In,
8211 N_Not_In,
8213 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8215 N_And_Then,
8216 N_Or_Else,
8218 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8220 N_Function_Call,
8221 N_Procedure_Call_Statement,
8223 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8225 N_Raise_Constraint_Error,
8226 N_Raise_Program_Error,
8227 N_Raise_Storage_Error,
8229 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8231 N_Integer_Literal,
8232 N_Real_Literal,
8233 N_String_Literal,
8235 -- N_Subexpr, N_Has_Etype
8237 N_Explicit_Dereference,
8238 N_Expression_With_Actions,
8239 N_If_Expression,
8240 N_Indexed_Component,
8241 N_Null,
8242 N_Qualified_Expression,
8243 N_Quantified_Expression,
8244 N_Aggregate,
8245 N_Allocator,
8246 N_Case_Expression,
8247 N_Extension_Aggregate,
8248 N_Raise_Expression,
8249 N_Range,
8250 N_Reference,
8251 N_Selected_Component,
8252 N_Slice,
8253 N_Type_Conversion,
8254 N_Unchecked_Expression,
8255 N_Unchecked_Type_Conversion,
8257 -- N_Has_Etype
8259 N_Subtype_Indication,
8261 -- N_Declaration
8263 N_Component_Declaration,
8264 N_Entry_Declaration,
8265 N_Expression_Function,
8266 N_Formal_Object_Declaration,
8267 N_Formal_Type_Declaration,
8268 N_Full_Type_Declaration,
8269 N_Incomplete_Type_Declaration,
8270 N_Iterator_Specification,
8271 N_Loop_Parameter_Specification,
8272 N_Object_Declaration,
8273 N_Protected_Type_Declaration,
8274 N_Private_Extension_Declaration,
8275 N_Private_Type_Declaration,
8276 N_Subtype_Declaration,
8278 -- N_Subprogram_Specification, N_Declaration
8280 N_Function_Specification,
8281 N_Procedure_Specification,
8283 -- N_Access_To_Subprogram_Definition
8285 N_Access_Function_Definition,
8286 N_Access_Procedure_Definition,
8288 -- N_Later_Decl_Item
8290 N_Task_Type_Declaration,
8292 -- N_Body_Stub, N_Later_Decl_Item
8294 N_Package_Body_Stub,
8295 N_Protected_Body_Stub,
8296 N_Subprogram_Body_Stub,
8297 N_Task_Body_Stub,
8299 -- N_Generic_Instantiation, N_Later_Decl_Item
8300 -- N_Subprogram_Instantiation
8302 N_Function_Instantiation,
8303 N_Procedure_Instantiation,
8305 -- N_Generic_Instantiation, N_Later_Decl_Item
8307 N_Package_Instantiation,
8309 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8311 N_Package_Body,
8312 N_Subprogram_Body,
8314 -- N_Later_Decl_Item, N_Proper_Body
8316 N_Protected_Body,
8317 N_Task_Body,
8319 -- N_Later_Decl_Item
8321 N_Implicit_Label_Declaration,
8322 N_Package_Declaration,
8323 N_Single_Task_Declaration,
8324 N_Subprogram_Declaration,
8325 N_Use_Package_Clause,
8327 -- N_Generic_Declaration, N_Later_Decl_Item
8329 N_Generic_Package_Declaration,
8330 N_Generic_Subprogram_Declaration,
8332 -- N_Array_Type_Definition
8334 N_Constrained_Array_Definition,
8335 N_Unconstrained_Array_Definition,
8337 -- N_Renaming_Declaration
8339 N_Exception_Renaming_Declaration,
8340 N_Object_Renaming_Declaration,
8341 N_Package_Renaming_Declaration,
8342 N_Subprogram_Renaming_Declaration,
8344 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8346 N_Generic_Function_Renaming_Declaration,
8347 N_Generic_Package_Renaming_Declaration,
8348 N_Generic_Procedure_Renaming_Declaration,
8350 -- N_Statement_Other_Than_Procedure_Call
8352 N_Abort_Statement,
8353 N_Accept_Statement,
8354 N_Assignment_Statement,
8355 N_Asynchronous_Select,
8356 N_Block_Statement,
8357 N_Case_Statement,
8358 N_Code_Statement,
8359 N_Compound_Statement,
8360 N_Conditional_Entry_Call,
8362 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8364 N_Delay_Relative_Statement,
8365 N_Delay_Until_Statement,
8367 -- N_Statement_Other_Than_Procedure_Call
8369 N_Entry_Call_Statement,
8370 N_Free_Statement,
8371 N_Goto_Statement,
8372 N_Loop_Statement,
8373 N_Null_Statement,
8374 N_Raise_Statement,
8375 N_Requeue_Statement,
8376 N_Simple_Return_Statement,
8377 N_Extended_Return_Statement,
8378 N_Selective_Accept,
8379 N_Timed_Entry_Call,
8381 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8383 N_Exit_Statement,
8384 N_If_Statement,
8386 -- N_Has_Condition
8388 N_Accept_Alternative,
8389 N_Delay_Alternative,
8390 N_Elsif_Part,
8391 N_Entry_Body_Formal_Part,
8392 N_Iteration_Scheme,
8393 N_Terminate_Alternative,
8395 -- N_Formal_Subprogram_Declaration
8397 N_Formal_Abstract_Subprogram_Declaration,
8398 N_Formal_Concrete_Subprogram_Declaration,
8400 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8402 N_Push_Constraint_Error_Label,
8403 N_Push_Program_Error_Label,
8404 N_Push_Storage_Error_Label,
8406 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8408 N_Pop_Constraint_Error_Label,
8409 N_Pop_Program_Error_Label,
8410 N_Pop_Storage_Error_Label,
8412 -- SCIL nodes
8414 N_SCIL_Dispatch_Table_Tag_Init,
8415 N_SCIL_Dispatching_Call,
8416 N_SCIL_Membership_Test,
8418 -- Other nodes (not part of any subtype class)
8420 N_Abortable_Part,
8421 N_Abstract_Subprogram_Declaration,
8422 N_Access_Definition,
8423 N_Access_To_Object_Definition,
8424 N_Aspect_Specification,
8425 N_Case_Expression_Alternative,
8426 N_Case_Statement_Alternative,
8427 N_Compilation_Unit,
8428 N_Compilation_Unit_Aux,
8429 N_Component_Association,
8430 N_Component_Definition,
8431 N_Component_List,
8432 N_Contract,
8433 N_Derived_Type_Definition,
8434 N_Decimal_Fixed_Point_Definition,
8435 N_Defining_Program_Unit_Name,
8436 N_Delta_Constraint,
8437 N_Designator,
8438 N_Digits_Constraint,
8439 N_Discriminant_Association,
8440 N_Discriminant_Specification,
8441 N_Enumeration_Type_Definition,
8442 N_Entry_Body,
8443 N_Entry_Call_Alternative,
8444 N_Entry_Index_Specification,
8445 N_Exception_Declaration,
8446 N_Exception_Handler,
8447 N_Floating_Point_Definition,
8448 N_Formal_Decimal_Fixed_Point_Definition,
8449 N_Formal_Derived_Type_Definition,
8450 N_Formal_Discrete_Type_Definition,
8451 N_Formal_Floating_Point_Definition,
8452 N_Formal_Modular_Type_Definition,
8453 N_Formal_Ordinary_Fixed_Point_Definition,
8454 N_Formal_Package_Declaration,
8455 N_Formal_Private_Type_Definition,
8456 N_Formal_Incomplete_Type_Definition,
8457 N_Formal_Signed_Integer_Type_Definition,
8458 N_Freeze_Entity,
8459 N_Freeze_Generic_Entity,
8460 N_Generic_Association,
8461 N_Handled_Sequence_Of_Statements,
8462 N_Index_Or_Discriminant_Constraint,
8463 N_Itype_Reference,
8464 N_Label,
8465 N_Modular_Type_Definition,
8466 N_Number_Declaration,
8467 N_Ordinary_Fixed_Point_Definition,
8468 N_Others_Choice,
8469 N_Package_Specification,
8470 N_Parameter_Association,
8471 N_Parameter_Specification,
8472 N_Pragma,
8473 N_Protected_Definition,
8474 N_Range_Constraint,
8475 N_Real_Range_Specification,
8476 N_Record_Definition,
8477 N_Signed_Integer_Type_Definition,
8478 N_Single_Protected_Declaration,
8479 N_Subunit,
8480 N_Task_Definition,
8481 N_Triggering_Alternative,
8482 N_Use_Type_Clause,
8483 N_Validate_Unchecked_Conversion,
8484 N_Variant,
8485 N_Variant_Part,
8486 N_With_Clause,
8487 N_Unused_At_End);
8489 for Node_Kind'Size use 8;
8490 -- The data structures in Atree assume this
8492 ----------------------------
8493 -- Node Class Definitions --
8494 ----------------------------
8496 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8497 N_Access_Function_Definition ..
8498 N_Access_Procedure_Definition;
8500 subtype N_Array_Type_Definition is Node_Kind range
8501 N_Constrained_Array_Definition ..
8502 N_Unconstrained_Array_Definition;
8504 subtype N_Binary_Op is Node_Kind range
8505 N_Op_Add ..
8506 N_Op_Shift_Right_Arithmetic;
8508 subtype N_Body_Stub is Node_Kind range
8509 N_Package_Body_Stub ..
8510 N_Task_Body_Stub;
8512 subtype N_Declaration is Node_Kind range
8513 N_Component_Declaration ..
8514 N_Procedure_Specification;
8515 -- Note: this includes all constructs normally thought of as declarations
8516 -- except those which are separately grouped as later declarations.
8518 subtype N_Delay_Statement is Node_Kind range
8519 N_Delay_Relative_Statement ..
8520 N_Delay_Until_Statement;
8522 subtype N_Direct_Name is Node_Kind range
8523 N_Identifier ..
8524 N_Character_Literal;
8526 subtype N_Entity is Node_Kind range
8527 N_Defining_Character_Literal ..
8528 N_Defining_Operator_Symbol;
8530 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8531 N_Formal_Abstract_Subprogram_Declaration ..
8532 N_Formal_Concrete_Subprogram_Declaration;
8534 subtype N_Generic_Declaration is Node_Kind range
8535 N_Generic_Package_Declaration ..
8536 N_Generic_Subprogram_Declaration;
8538 subtype N_Generic_Instantiation is Node_Kind range
8539 N_Function_Instantiation ..
8540 N_Package_Instantiation;
8542 subtype N_Generic_Renaming_Declaration is Node_Kind range
8543 N_Generic_Function_Renaming_Declaration ..
8544 N_Generic_Procedure_Renaming_Declaration;
8546 subtype N_Has_Chars is Node_Kind range
8547 N_Attribute_Definition_Clause ..
8548 N_Op_Plus;
8550 subtype N_Has_Entity is Node_Kind range
8551 N_Expanded_Name ..
8552 N_Attribute_Reference;
8553 -- Nodes that have Entity fields
8554 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8555 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8557 subtype N_Has_Etype is Node_Kind range
8558 N_Error ..
8559 N_Subtype_Indication;
8561 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8562 N_Op_Divide ..
8563 N_Op_Rem;
8565 subtype N_Multiplying_Operator is Node_Kind range
8566 N_Op_Divide ..
8567 N_Op_Rem;
8569 subtype N_Later_Decl_Item is Node_Kind range
8570 N_Task_Type_Declaration ..
8571 N_Generic_Subprogram_Declaration;
8572 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8573 -- only those items which can appear as later declarative items. This also
8574 -- includes N_Implicit_Label_Declaration which is not specifically in the
8575 -- grammar but may appear as a valid later declarative items. It does NOT
8576 -- include N_Pragma which can also appear among later declarative items.
8577 -- It does however include N_Protected_Body, which is a bit peculiar, but
8578 -- harmless since this cannot appear in Ada 83 mode anyway.
8580 subtype N_Membership_Test is Node_Kind range
8581 N_In ..
8582 N_Not_In;
8584 subtype N_Numeric_Or_String_Literal is Node_Kind range
8585 N_Integer_Literal ..
8586 N_String_Literal;
8588 subtype N_Op is Node_Kind range
8589 N_Op_Add ..
8590 N_Op_Plus;
8592 subtype N_Op_Boolean is Node_Kind range
8593 N_Op_And ..
8594 N_Op_Xor;
8595 -- Binary operators which take operands of a boolean type, and yield
8596 -- a result of a boolean type.
8598 subtype N_Op_Compare is Node_Kind range
8599 N_Op_Eq ..
8600 N_Op_Ne;
8602 subtype N_Op_Shift is Node_Kind range
8603 N_Op_Rotate_Left ..
8604 N_Op_Shift_Right_Arithmetic;
8606 subtype N_Proper_Body is Node_Kind range
8607 N_Package_Body ..
8608 N_Task_Body;
8610 subtype N_Push_xxx_Label is Node_Kind range
8611 N_Push_Constraint_Error_Label ..
8612 N_Push_Storage_Error_Label;
8614 subtype N_Pop_xxx_Label is Node_Kind range
8615 N_Pop_Constraint_Error_Label ..
8616 N_Pop_Storage_Error_Label;
8618 subtype N_Push_Pop_xxx_Label is Node_Kind range
8619 N_Push_Constraint_Error_Label ..
8620 N_Pop_Storage_Error_Label;
8622 subtype N_Raise_xxx_Error is Node_Kind range
8623 N_Raise_Constraint_Error ..
8624 N_Raise_Storage_Error;
8626 subtype N_Renaming_Declaration is Node_Kind range
8627 N_Exception_Renaming_Declaration ..
8628 N_Generic_Procedure_Renaming_Declaration;
8630 subtype N_Representation_Clause is Node_Kind range
8631 N_At_Clause ..
8632 N_Attribute_Definition_Clause;
8634 subtype N_Short_Circuit is Node_Kind range
8635 N_And_Then ..
8636 N_Or_Else;
8638 subtype N_SCIL_Node is Node_Kind range
8639 N_SCIL_Dispatch_Table_Tag_Init ..
8640 N_SCIL_Membership_Test;
8642 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8643 N_Abort_Statement ..
8644 N_If_Statement;
8645 -- Note that this includes all statement types except for the cases of the
8646 -- N_Procedure_Call_Statement which is considered to be a subexpression
8647 -- (since overloading is possible, so it needs to go through the normal
8648 -- overloading resolution for expressions).
8650 subtype N_Subprogram_Call is Node_Kind range
8651 N_Function_Call ..
8652 N_Procedure_Call_Statement;
8654 subtype N_Subprogram_Instantiation is Node_Kind range
8655 N_Function_Instantiation ..
8656 N_Procedure_Instantiation;
8658 subtype N_Has_Condition is Node_Kind range
8659 N_Exit_Statement ..
8660 N_Terminate_Alternative;
8661 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8663 subtype N_Subexpr is Node_Kind range
8664 N_Expanded_Name ..
8665 N_Unchecked_Type_Conversion;
8666 -- Nodes with expression fields
8668 subtype N_Subprogram_Specification is Node_Kind range
8669 N_Function_Specification ..
8670 N_Procedure_Specification;
8672 subtype N_Unary_Op is Node_Kind range
8673 N_Op_Abs ..
8674 N_Op_Plus;
8676 subtype N_Unit_Body is Node_Kind range
8677 N_Package_Body ..
8678 N_Subprogram_Body;
8680 ---------------------------
8681 -- Node Access Functions --
8682 ---------------------------
8684 -- The following functions return the contents of the indicated field of
8685 -- the node referenced by the argument, which is a Node_Id. They provide
8686 -- logical access to fields in the node which could be accessed using the
8687 -- Atree.Unchecked_Access package, but the idea is always to use these
8688 -- higher level routines which preserve strong typing. In debug mode,
8689 -- these routines check that they are being applied to an appropriate
8690 -- node, as well as checking that the node is in range.
8692 function ABE_Is_Certain
8693 (N : Node_Id) return Boolean; -- Flag18
8695 function Abort_Present
8696 (N : Node_Id) return Boolean; -- Flag15
8698 function Abortable_Part
8699 (N : Node_Id) return Node_Id; -- Node2
8701 function Abstract_Present
8702 (N : Node_Id) return Boolean; -- Flag4
8704 function Accept_Handler_Records
8705 (N : Node_Id) return List_Id; -- List5
8707 function Accept_Statement
8708 (N : Node_Id) return Node_Id; -- Node2
8710 function Access_Definition
8711 (N : Node_Id) return Node_Id; -- Node3
8713 function Access_To_Subprogram_Definition
8714 (N : Node_Id) return Node_Id; -- Node3
8716 function Access_Types_To_Process
8717 (N : Node_Id) return Elist_Id; -- Elist2
8719 function Actions
8720 (N : Node_Id) return List_Id; -- List1
8722 function Activation_Chain_Entity
8723 (N : Node_Id) return Node_Id; -- Node3
8725 function Acts_As_Spec
8726 (N : Node_Id) return Boolean; -- Flag4
8728 function Actual_Designated_Subtype
8729 (N : Node_Id) return Node_Id; -- Node4
8731 function Address_Warning_Posted
8732 (N : Node_Id) return Boolean; -- Flag18
8734 function Aggregate_Bounds
8735 (N : Node_Id) return Node_Id; -- Node3
8737 function Aliased_Present
8738 (N : Node_Id) return Boolean; -- Flag4
8740 function All_Others
8741 (N : Node_Id) return Boolean; -- Flag11
8743 function All_Present
8744 (N : Node_Id) return Boolean; -- Flag15
8746 function Alternatives
8747 (N : Node_Id) return List_Id; -- List4
8749 function Ancestor_Part
8750 (N : Node_Id) return Node_Id; -- Node3
8752 function Atomic_Sync_Required
8753 (N : Node_Id) return Boolean; -- Flag14
8755 function Array_Aggregate
8756 (N : Node_Id) return Node_Id; -- Node3
8758 function Aspect_Rep_Item
8759 (N : Node_Id) return Node_Id; -- Node2
8761 function Assignment_OK
8762 (N : Node_Id) return Boolean; -- Flag15
8764 function Associated_Node
8765 (N : Node_Id) return Node_Id; -- Node4
8767 function At_End_Proc
8768 (N : Node_Id) return Node_Id; -- Node1
8770 function Attribute_Name
8771 (N : Node_Id) return Name_Id; -- Name2
8773 function Aux_Decls_Node
8774 (N : Node_Id) return Node_Id; -- Node5
8776 function Backwards_OK
8777 (N : Node_Id) return Boolean; -- Flag6
8779 function Bad_Is_Detected
8780 (N : Node_Id) return Boolean; -- Flag15
8782 function By_Ref
8783 (N : Node_Id) return Boolean; -- Flag5
8785 function Body_Required
8786 (N : Node_Id) return Boolean; -- Flag13
8788 function Body_To_Inline
8789 (N : Node_Id) return Node_Id; -- Node3
8791 function Box_Present
8792 (N : Node_Id) return Boolean; -- Flag15
8794 function Char_Literal_Value
8795 (N : Node_Id) return Uint; -- Uint2
8797 function Chars
8798 (N : Node_Id) return Name_Id; -- Name1
8800 function Check_Address_Alignment
8801 (N : Node_Id) return Boolean; -- Flag11
8803 function Choice_Parameter
8804 (N : Node_Id) return Node_Id; -- Node2
8806 function Choices
8807 (N : Node_Id) return List_Id; -- List1
8809 function Class_Present
8810 (N : Node_Id) return Boolean; -- Flag6
8812 function Classifications
8813 (N : Node_Id) return Node_Id; -- Node3
8815 function Cleanup_Actions
8816 (N : Node_Id) return List_Id; -- List5
8818 function Comes_From_Extended_Return_Statement
8819 (N : Node_Id) return Boolean; -- Flag18
8821 function Compile_Time_Known_Aggregate
8822 (N : Node_Id) return Boolean; -- Flag18
8824 function Component_Associations
8825 (N : Node_Id) return List_Id; -- List2
8827 function Component_Clauses
8828 (N : Node_Id) return List_Id; -- List3
8830 function Component_Definition
8831 (N : Node_Id) return Node_Id; -- Node4
8833 function Component_Items
8834 (N : Node_Id) return List_Id; -- List3
8836 function Component_List
8837 (N : Node_Id) return Node_Id; -- Node1
8839 function Component_Name
8840 (N : Node_Id) return Node_Id; -- Node1
8842 function Componentwise_Assignment
8843 (N : Node_Id) return Boolean; -- Flag14
8845 function Condition
8846 (N : Node_Id) return Node_Id; -- Node1
8848 function Condition_Actions
8849 (N : Node_Id) return List_Id; -- List3
8851 function Config_Pragmas
8852 (N : Node_Id) return List_Id; -- List4
8854 function Constant_Present
8855 (N : Node_Id) return Boolean; -- Flag17
8857 function Constraint
8858 (N : Node_Id) return Node_Id; -- Node3
8860 function Constraints
8861 (N : Node_Id) return List_Id; -- List1
8863 function Context_Installed
8864 (N : Node_Id) return Boolean; -- Flag13
8866 function Context_Pending
8867 (N : Node_Id) return Boolean; -- Flag16
8869 function Context_Items
8870 (N : Node_Id) return List_Id; -- List1
8872 function Contract_Test_Cases
8873 (N : Node_Id) return Node_Id; -- Node2
8875 function Controlling_Argument
8876 (N : Node_Id) return Node_Id; -- Node1
8878 function Conversion_OK
8879 (N : Node_Id) return Boolean; -- Flag14
8881 function Convert_To_Return_False
8882 (N : Node_Id) return Boolean; -- Flag13
8884 function Corresponding_Aspect
8885 (N : Node_Id) return Node_Id; -- Node3
8887 function Corresponding_Body
8888 (N : Node_Id) return Node_Id; -- Node5
8890 function Corresponding_Formal_Spec
8891 (N : Node_Id) return Node_Id; -- Node3
8893 function Corresponding_Generic_Association
8894 (N : Node_Id) return Node_Id; -- Node5
8896 function Corresponding_Integer_Value
8897 (N : Node_Id) return Uint; -- Uint4
8899 function Corresponding_Spec
8900 (N : Node_Id) return Node_Id; -- Node5
8902 function Corresponding_Spec_Of_Stub
8903 (N : Node_Id) return Node_Id; -- Node2
8905 function Corresponding_Stub
8906 (N : Node_Id) return Node_Id; -- Node3
8908 function Dcheck_Function
8909 (N : Node_Id) return Entity_Id; -- Node5
8911 function Declarations
8912 (N : Node_Id) return List_Id; -- List2
8914 function Default_Expression
8915 (N : Node_Id) return Node_Id; -- Node5
8917 function Default_Storage_Pool
8918 (N : Node_Id) return Node_Id; -- Node3
8920 function Default_Name
8921 (N : Node_Id) return Node_Id; -- Node2
8923 function Defining_Identifier
8924 (N : Node_Id) return Entity_Id; -- Node1
8926 function Defining_Unit_Name
8927 (N : Node_Id) return Node_Id; -- Node1
8929 function Delay_Alternative
8930 (N : Node_Id) return Node_Id; -- Node4
8932 function Delay_Statement
8933 (N : Node_Id) return Node_Id; -- Node2
8935 function Delta_Expression
8936 (N : Node_Id) return Node_Id; -- Node3
8938 function Digits_Expression
8939 (N : Node_Id) return Node_Id; -- Node2
8941 function Discr_Check_Funcs_Built
8942 (N : Node_Id) return Boolean; -- Flag11
8944 function Discrete_Choices
8945 (N : Node_Id) return List_Id; -- List4
8947 function Discrete_Range
8948 (N : Node_Id) return Node_Id; -- Node4
8950 function Discrete_Subtype_Definition
8951 (N : Node_Id) return Node_Id; -- Node4
8953 function Discrete_Subtype_Definitions
8954 (N : Node_Id) return List_Id; -- List2
8956 function Discriminant_Specifications
8957 (N : Node_Id) return List_Id; -- List4
8959 function Discriminant_Type
8960 (N : Node_Id) return Node_Id; -- Node5
8962 function Do_Accessibility_Check
8963 (N : Node_Id) return Boolean; -- Flag13
8965 function Do_Discriminant_Check
8966 (N : Node_Id) return Boolean; -- Flag1
8968 function Do_Division_Check
8969 (N : Node_Id) return Boolean; -- Flag13
8971 function Do_Length_Check
8972 (N : Node_Id) return Boolean; -- Flag4
8974 function Do_Overflow_Check
8975 (N : Node_Id) return Boolean; -- Flag17
8977 function Do_Range_Check
8978 (N : Node_Id) return Boolean; -- Flag9
8980 function Do_Storage_Check
8981 (N : Node_Id) return Boolean; -- Flag17
8983 function Do_Tag_Check
8984 (N : Node_Id) return Boolean; -- Flag13
8986 function Elaborate_All_Desirable
8987 (N : Node_Id) return Boolean; -- Flag9
8989 function Elaborate_All_Present
8990 (N : Node_Id) return Boolean; -- Flag14
8992 function Elaborate_Desirable
8993 (N : Node_Id) return Boolean; -- Flag11
8995 function Elaborate_Present
8996 (N : Node_Id) return Boolean; -- Flag4
8998 function Else_Actions
8999 (N : Node_Id) return List_Id; -- List3
9001 function Else_Statements
9002 (N : Node_Id) return List_Id; -- List4
9004 function Elsif_Parts
9005 (N : Node_Id) return List_Id; -- List3
9007 function Enclosing_Variant
9008 (N : Node_Id) return Node_Id; -- Node2
9010 function End_Label
9011 (N : Node_Id) return Node_Id; -- Node4
9013 function End_Span
9014 (N : Node_Id) return Uint; -- Uint5
9016 function Entity
9017 (N : Node_Id) return Node_Id; -- Node4
9019 function Entity_Or_Associated_Node
9020 (N : Node_Id) return Node_Id; -- Node4
9022 function Entry_Body_Formal_Part
9023 (N : Node_Id) return Node_Id; -- Node5
9025 function Entry_Call_Alternative
9026 (N : Node_Id) return Node_Id; -- Node1
9028 function Entry_Call_Statement
9029 (N : Node_Id) return Node_Id; -- Node1
9031 function Entry_Direct_Name
9032 (N : Node_Id) return Node_Id; -- Node1
9034 function Entry_Index
9035 (N : Node_Id) return Node_Id; -- Node5
9037 function Entry_Index_Specification
9038 (N : Node_Id) return Node_Id; -- Node4
9040 function Etype
9041 (N : Node_Id) return Node_Id; -- Node5
9043 function Exception_Choices
9044 (N : Node_Id) return List_Id; -- List4
9046 function Exception_Handlers
9047 (N : Node_Id) return List_Id; -- List5
9049 function Exception_Junk
9050 (N : Node_Id) return Boolean; -- Flag8
9052 function Exception_Label
9053 (N : Node_Id) return Node_Id; -- Node5
9055 function Explicit_Actual_Parameter
9056 (N : Node_Id) return Node_Id; -- Node3
9058 function Expansion_Delayed
9059 (N : Node_Id) return Boolean; -- Flag11
9061 function Explicit_Generic_Actual_Parameter
9062 (N : Node_Id) return Node_Id; -- Node1
9064 function Expression
9065 (N : Node_Id) return Node_Id; -- Node3
9067 function Expressions
9068 (N : Node_Id) return List_Id; -- List1
9070 function First_Bit
9071 (N : Node_Id) return Node_Id; -- Node3
9073 function First_Inlined_Subprogram
9074 (N : Node_Id) return Entity_Id; -- Node3
9076 function First_Name
9077 (N : Node_Id) return Boolean; -- Flag5
9079 function First_Named_Actual
9080 (N : Node_Id) return Node_Id; -- Node4
9082 function First_Real_Statement
9083 (N : Node_Id) return Node_Id; -- Node2
9085 function First_Subtype_Link
9086 (N : Node_Id) return Entity_Id; -- Node5
9088 function Float_Truncate
9089 (N : Node_Id) return Boolean; -- Flag11
9091 function Formal_Type_Definition
9092 (N : Node_Id) return Node_Id; -- Node3
9094 function Forwards_OK
9095 (N : Node_Id) return Boolean; -- Flag5
9097 function From_Aspect_Specification
9098 (N : Node_Id) return Boolean; -- Flag13
9100 function From_At_End
9101 (N : Node_Id) return Boolean; -- Flag4
9103 function From_At_Mod
9104 (N : Node_Id) return Boolean; -- Flag4
9106 function From_Conditional_Expression
9107 (N : Node_Id) return Boolean; -- Flag1
9109 function From_Default
9110 (N : Node_Id) return Boolean; -- Flag6
9112 function Generalized_Indexing
9113 (N : Node_Id) return Node_Id; -- Node4
9114 function Generic_Associations
9115 (N : Node_Id) return List_Id; -- List3
9117 function Generic_Formal_Declarations
9118 (N : Node_Id) return List_Id; -- List2
9120 function Generic_Parent
9121 (N : Node_Id) return Node_Id; -- Node5
9123 function Generic_Parent_Type
9124 (N : Node_Id) return Node_Id; -- Node4
9126 function Handled_Statement_Sequence
9127 (N : Node_Id) return Node_Id; -- Node4
9129 function Handler_List_Entry
9130 (N : Node_Id) return Node_Id; -- Node2
9132 function Has_Created_Identifier
9133 (N : Node_Id) return Boolean; -- Flag15
9135 function Has_Dereference_Action
9136 (N : Node_Id) return Boolean; -- Flag13
9138 function Has_Dynamic_Length_Check
9139 (N : Node_Id) return Boolean; -- Flag10
9141 function Has_Dynamic_Range_Check
9142 (N : Node_Id) return Boolean; -- Flag12
9144 function Has_Init_Expression
9145 (N : Node_Id) return Boolean; -- Flag14
9147 function Has_Local_Raise
9148 (N : Node_Id) return Boolean; -- Flag8
9150 function Has_No_Elaboration_Code
9151 (N : Node_Id) return Boolean; -- Flag17
9153 function Has_Pragma_Suppress_All
9154 (N : Node_Id) return Boolean; -- Flag14
9156 function Has_Private_View
9157 (N : Node_Id) return Boolean; -- Flag11
9159 function Has_Relative_Deadline_Pragma
9160 (N : Node_Id) return Boolean; -- Flag9
9162 function Has_Self_Reference
9163 (N : Node_Id) return Boolean; -- Flag13
9165 function Has_SP_Choice
9166 (N : Node_Id) return Boolean; -- Flag15
9168 function Has_Storage_Size_Pragma
9169 (N : Node_Id) return Boolean; -- Flag5
9171 function Has_Wide_Character
9172 (N : Node_Id) return Boolean; -- Flag11
9174 function Has_Wide_Wide_Character
9175 (N : Node_Id) return Boolean; -- Flag13
9177 function Header_Size_Added
9178 (N : Node_Id) return Boolean; -- Flag11
9180 function Hidden_By_Use_Clause
9181 (N : Node_Id) return Elist_Id; -- Elist4
9183 function High_Bound
9184 (N : Node_Id) return Node_Id; -- Node2
9186 function Identifier
9187 (N : Node_Id) return Node_Id; -- Node1
9189 function Interface_List
9190 (N : Node_Id) return List_Id; -- List2
9192 function Interface_Present
9193 (N : Node_Id) return Boolean; -- Flag16
9195 function Implicit_With
9196 (N : Node_Id) return Boolean; -- Flag16
9198 function Implicit_With_From_Instantiation
9199 (N : Node_Id) return Boolean; -- Flag12
9201 function Import_Interface_Present
9202 (N : Node_Id) return Boolean; -- Flag16
9204 function In_Present
9205 (N : Node_Id) return Boolean; -- Flag15
9207 function Includes_Infinities
9208 (N : Node_Id) return Boolean; -- Flag11
9210 function Incomplete_View
9211 (N : Node_Id) return Node_Id; -- Node2
9213 function Inherited_Discriminant
9214 (N : Node_Id) return Boolean; -- Flag13
9216 function Instance_Spec
9217 (N : Node_Id) return Node_Id; -- Node5
9219 function Intval
9220 (N : Node_Id) return Uint; -- Uint3
9222 function Is_Accessibility_Actual
9223 (N : Node_Id) return Boolean; -- Flag13
9225 function Is_Asynchronous_Call_Block
9226 (N : Node_Id) return Boolean; -- Flag7
9228 function Is_Boolean_Aspect
9229 (N : Node_Id) return Boolean; -- Flag16
9231 function Is_Checked
9232 (N : Node_Id) return Boolean; -- Flag11
9234 function Is_Component_Left_Opnd
9235 (N : Node_Id) return Boolean; -- Flag13
9237 function Is_Component_Right_Opnd
9238 (N : Node_Id) return Boolean; -- Flag14
9240 function Is_Controlling_Actual
9241 (N : Node_Id) return Boolean; -- Flag16
9243 function Is_Delayed_Aspect
9244 (N : Node_Id) return Boolean; -- Flag14
9246 function Is_Disabled
9247 (N : Node_Id) return Boolean; -- Flag15
9249 function Is_Dynamic_Coextension
9250 (N : Node_Id) return Boolean; -- Flag18
9252 function Is_Elsif
9253 (N : Node_Id) return Boolean; -- Flag13
9255 function Is_Entry_Barrier_Function
9256 (N : Node_Id) return Boolean; -- Flag8
9258 function Is_Expanded_Build_In_Place_Call
9259 (N : Node_Id) return Boolean; -- Flag11
9261 function Is_Finalization_Wrapper
9262 (N : Node_Id) return Boolean; -- Flag9
9264 function Is_Folded_In_Parser
9265 (N : Node_Id) return Boolean; -- Flag4
9267 function Is_Ignored
9268 (N : Node_Id) return Boolean; -- Flag9
9270 function Is_In_Discriminant_Check
9271 (N : Node_Id) return Boolean; -- Flag11
9273 function Is_Inherited
9274 (N : Node_Id) return Boolean; -- Flag4
9276 function Is_Machine_Number
9277 (N : Node_Id) return Boolean; -- Flag11
9279 function Is_Null_Loop
9280 (N : Node_Id) return Boolean; -- Flag16
9282 function Is_Overloaded
9283 (N : Node_Id) return Boolean; -- Flag5
9285 function Is_Power_Of_2_For_Shift
9286 (N : Node_Id) return Boolean; -- Flag13
9288 function Is_Prefixed_Call
9289 (N : Node_Id) return Boolean; -- Flag17
9291 function Is_Protected_Subprogram_Body
9292 (N : Node_Id) return Boolean; -- Flag7
9294 function Is_Static_Coextension
9295 (N : Node_Id) return Boolean; -- Flag14
9297 function Is_Static_Expression
9298 (N : Node_Id) return Boolean; -- Flag6
9300 function Is_Subprogram_Descriptor
9301 (N : Node_Id) return Boolean; -- Flag16
9303 function Is_Task_Allocation_Block
9304 (N : Node_Id) return Boolean; -- Flag6
9306 function Is_Task_Master
9307 (N : Node_Id) return Boolean; -- Flag5
9309 function Iteration_Scheme
9310 (N : Node_Id) return Node_Id; -- Node2
9312 function Iterator_Specification
9313 (N : Node_Id) return Node_Id; -- Node2
9315 function Itype
9316 (N : Node_Id) return Entity_Id; -- Node1
9318 function Kill_Range_Check
9319 (N : Node_Id) return Boolean; -- Flag11
9321 function Label_Construct
9322 (N : Node_Id) return Node_Id; -- Node2
9324 function Left_Opnd
9325 (N : Node_Id) return Node_Id; -- Node2
9327 function Last_Bit
9328 (N : Node_Id) return Node_Id; -- Node4
9330 function Last_Name
9331 (N : Node_Id) return Boolean; -- Flag6
9333 function Library_Unit
9334 (N : Node_Id) return Node_Id; -- Node4
9336 function Limited_View_Installed
9337 (N : Node_Id) return Boolean; -- Flag18
9339 function Limited_Present
9340 (N : Node_Id) return Boolean; -- Flag17
9342 function Literals
9343 (N : Node_Id) return List_Id; -- List1
9345 function Local_Raise_Not_OK
9346 (N : Node_Id) return Boolean; -- Flag7
9348 function Local_Raise_Statements
9349 (N : Node_Id) return Elist_Id; -- Elist1
9351 function Loop_Actions
9352 (N : Node_Id) return List_Id; -- List2
9354 function Loop_Parameter_Specification
9355 (N : Node_Id) return Node_Id; -- Node4
9357 function Low_Bound
9358 (N : Node_Id) return Node_Id; -- Node1
9360 function Mod_Clause
9361 (N : Node_Id) return Node_Id; -- Node2
9363 function More_Ids
9364 (N : Node_Id) return Boolean; -- Flag5
9366 function Must_Be_Byte_Aligned
9367 (N : Node_Id) return Boolean; -- Flag14
9369 function Must_Not_Freeze
9370 (N : Node_Id) return Boolean; -- Flag8
9372 function Must_Not_Override
9373 (N : Node_Id) return Boolean; -- Flag15
9375 function Must_Override
9376 (N : Node_Id) return Boolean; -- Flag14
9378 function Name
9379 (N : Node_Id) return Node_Id; -- Node2
9381 function Names
9382 (N : Node_Id) return List_Id; -- List2
9384 function Next_Entity
9385 (N : Node_Id) return Node_Id; -- Node2
9387 function Next_Exit_Statement
9388 (N : Node_Id) return Node_Id; -- Node3
9390 function Next_Implicit_With
9391 (N : Node_Id) return Node_Id; -- Node3
9393 function Next_Named_Actual
9394 (N : Node_Id) return Node_Id; -- Node4
9396 function Next_Pragma
9397 (N : Node_Id) return Node_Id; -- Node1
9399 function Next_Rep_Item
9400 (N : Node_Id) return Node_Id; -- Node5
9402 function Next_Use_Clause
9403 (N : Node_Id) return Node_Id; -- Node3
9405 function No_Ctrl_Actions
9406 (N : Node_Id) return Boolean; -- Flag7
9408 function No_Elaboration_Check
9409 (N : Node_Id) return Boolean; -- Flag14
9411 function No_Entities_Ref_In_Spec
9412 (N : Node_Id) return Boolean; -- Flag8
9414 function No_Initialization
9415 (N : Node_Id) return Boolean; -- Flag13
9417 function No_Minimize_Eliminate
9418 (N : Node_Id) return Boolean; -- Flag17
9420 function No_Truncation
9421 (N : Node_Id) return Boolean; -- Flag17
9423 function Non_Aliased_Prefix
9424 (N : Node_Id) return Boolean; -- Flag18
9426 function Null_Present
9427 (N : Node_Id) return Boolean; -- Flag13
9429 function Null_Excluding_Subtype
9430 (N : Node_Id) return Boolean; -- Flag16
9432 function Null_Exclusion_Present
9433 (N : Node_Id) return Boolean; -- Flag11
9435 function Null_Exclusion_In_Return_Present
9436 (N : Node_Id) return Boolean; -- Flag14
9438 function Null_Record_Present
9439 (N : Node_Id) return Boolean; -- Flag17
9441 function Object_Definition
9442 (N : Node_Id) return Node_Id; -- Node4
9444 function Of_Present
9445 (N : Node_Id) return Boolean; -- Flag16
9447 function Original_Discriminant
9448 (N : Node_Id) return Node_Id; -- Node2
9450 function Original_Entity
9451 (N : Node_Id) return Entity_Id; -- Node2
9453 function Others_Discrete_Choices
9454 (N : Node_Id) return List_Id; -- List1
9456 function Out_Present
9457 (N : Node_Id) return Boolean; -- Flag17
9459 function Parameter_Associations
9460 (N : Node_Id) return List_Id; -- List3
9462 function Parameter_Specifications
9463 (N : Node_Id) return List_Id; -- List3
9465 function Parameter_Type
9466 (N : Node_Id) return Node_Id; -- Node2
9468 function Parent_Spec
9469 (N : Node_Id) return Node_Id; -- Node4
9471 function Position
9472 (N : Node_Id) return Node_Id; -- Node2
9474 function Pragma_Argument_Associations
9475 (N : Node_Id) return List_Id; -- List2
9477 function Pragma_Identifier
9478 (N : Node_Id) return Node_Id; -- Node4
9480 function Pragmas_After
9481 (N : Node_Id) return List_Id; -- List5
9483 function Pragmas_Before
9484 (N : Node_Id) return List_Id; -- List4
9486 function Pre_Post_Conditions
9487 (N : Node_Id) return Node_Id; -- Node1
9489 function Prefix
9490 (N : Node_Id) return Node_Id; -- Node3
9492 function Premature_Use
9493 (N : Node_Id) return Node_Id; -- Node5
9495 function Present_Expr
9496 (N : Node_Id) return Uint; -- Uint3
9498 function Prev_Ids
9499 (N : Node_Id) return Boolean; -- Flag6
9501 function Print_In_Hex
9502 (N : Node_Id) return Boolean; -- Flag13
9504 function Private_Declarations
9505 (N : Node_Id) return List_Id; -- List3
9507 function Private_Present
9508 (N : Node_Id) return Boolean; -- Flag15
9510 function Procedure_To_Call
9511 (N : Node_Id) return Node_Id; -- Node2
9513 function Proper_Body
9514 (N : Node_Id) return Node_Id; -- Node1
9516 function Protected_Definition
9517 (N : Node_Id) return Node_Id; -- Node3
9519 function Protected_Present
9520 (N : Node_Id) return Boolean; -- Flag6
9522 function Raises_Constraint_Error
9523 (N : Node_Id) return Boolean; -- Flag7
9525 function Range_Constraint
9526 (N : Node_Id) return Node_Id; -- Node4
9528 function Range_Expression
9529 (N : Node_Id) return Node_Id; -- Node4
9531 function Real_Range_Specification
9532 (N : Node_Id) return Node_Id; -- Node4
9534 function Realval
9535 (N : Node_Id) return Ureal; -- Ureal3
9537 function Reason
9538 (N : Node_Id) return Uint; -- Uint3
9540 function Record_Extension_Part
9541 (N : Node_Id) return Node_Id; -- Node3
9543 function Redundant_Use
9544 (N : Node_Id) return Boolean; -- Flag13
9546 function Renaming_Exception
9547 (N : Node_Id) return Node_Id; -- Node2
9549 function Result_Definition
9550 (N : Node_Id) return Node_Id; -- Node4
9552 function Return_Object_Declarations
9553 (N : Node_Id) return List_Id; -- List3
9555 function Return_Statement_Entity
9556 (N : Node_Id) return Node_Id; -- Node5
9558 function Reverse_Present
9559 (N : Node_Id) return Boolean; -- Flag15
9561 function Right_Opnd
9562 (N : Node_Id) return Node_Id; -- Node3
9564 function Rounded_Result
9565 (N : Node_Id) return Boolean; -- Flag18
9567 function SCIL_Controlling_Tag
9568 (N : Node_Id) return Node_Id; -- Node5
9570 function SCIL_Entity
9571 (N : Node_Id) return Node_Id; -- Node4
9573 function SCIL_Tag_Value
9574 (N : Node_Id) return Node_Id; -- Node5
9576 function SCIL_Target_Prim
9577 (N : Node_Id) return Node_Id; -- Node2
9579 function Scope
9580 (N : Node_Id) return Node_Id; -- Node3
9582 function Select_Alternatives
9583 (N : Node_Id) return List_Id; -- List1
9585 function Selector_Name
9586 (N : Node_Id) return Node_Id; -- Node2
9588 function Selector_Names
9589 (N : Node_Id) return List_Id; -- List1
9591 function Shift_Count_OK
9592 (N : Node_Id) return Boolean; -- Flag4
9594 function Source_Type
9595 (N : Node_Id) return Entity_Id; -- Node1
9597 function Specification
9598 (N : Node_Id) return Node_Id; -- Node1
9600 function Split_PPC
9601 (N : Node_Id) return Boolean; -- Flag17
9603 function Statements
9604 (N : Node_Id) return List_Id; -- List3
9606 function Storage_Pool
9607 (N : Node_Id) return Node_Id; -- Node1
9609 function Subpool_Handle_Name
9610 (N : Node_Id) return Node_Id; -- Node4
9612 function Strval
9613 (N : Node_Id) return String_Id; -- Str3
9615 function Subtype_Indication
9616 (N : Node_Id) return Node_Id; -- Node5
9618 function Subtype_Mark
9619 (N : Node_Id) return Node_Id; -- Node4
9621 function Subtype_Marks
9622 (N : Node_Id) return List_Id; -- List2
9624 function Suppress_Assignment_Checks
9625 (N : Node_Id) return Boolean; -- Flag18
9627 function Suppress_Loop_Warnings
9628 (N : Node_Id) return Boolean; -- Flag17
9630 function Synchronized_Present
9631 (N : Node_Id) return Boolean; -- Flag7
9633 function Tagged_Present
9634 (N : Node_Id) return Boolean; -- Flag15
9636 function Target_Type
9637 (N : Node_Id) return Entity_Id; -- Node2
9639 function Task_Definition
9640 (N : Node_Id) return Node_Id; -- Node3
9642 function Task_Present
9643 (N : Node_Id) return Boolean; -- Flag5
9645 function Then_Actions
9646 (N : Node_Id) return List_Id; -- List2
9648 function Then_Statements
9649 (N : Node_Id) return List_Id; -- List2
9651 function Treat_Fixed_As_Integer
9652 (N : Node_Id) return Boolean; -- Flag14
9654 function Triggering_Alternative
9655 (N : Node_Id) return Node_Id; -- Node1
9657 function Triggering_Statement
9658 (N : Node_Id) return Node_Id; -- Node1
9660 function TSS_Elist
9661 (N : Node_Id) return Elist_Id; -- Elist3
9663 function Type_Definition
9664 (N : Node_Id) return Node_Id; -- Node3
9666 function Uneval_Old_Accept
9667 (N : Node_Id) return Boolean; -- Flag7
9669 function Uneval_Old_Warn
9670 (N : Node_Id) return Boolean; -- Flag18
9672 function Unit
9673 (N : Node_Id) return Node_Id; -- Node2
9675 function Unknown_Discriminants_Present
9676 (N : Node_Id) return Boolean; -- Flag13
9678 function Unreferenced_In_Spec
9679 (N : Node_Id) return Boolean; -- Flag7
9681 function Variant_Part
9682 (N : Node_Id) return Node_Id; -- Node4
9684 function Variants
9685 (N : Node_Id) return List_Id; -- List1
9687 function Visible_Declarations
9688 (N : Node_Id) return List_Id; -- List2
9690 function Uninitialized_Variable
9691 (N : Node_Id) return Node_Id; -- Node3
9693 function Used_Operations
9694 (N : Node_Id) return Elist_Id; -- Elist5
9696 function Was_Originally_Stub
9697 (N : Node_Id) return Boolean; -- Flag13
9699 function Withed_Body
9700 (N : Node_Id) return Node_Id; -- Node1
9702 -- End functions (note used by xsinfo utility program to end processing)
9704 ----------------------------
9705 -- Node Update Procedures --
9706 ----------------------------
9708 -- These are the corresponding node update routines, which again provide
9709 -- a high level logical access with type checking. In addition to setting
9710 -- the indicated field of the node N to the given Val, in the case of
9711 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9712 -- point back to node N. This automates the setting of the parent pointer.
9714 procedure Set_ABE_Is_Certain
9715 (N : Node_Id; Val : Boolean := True); -- Flag18
9717 procedure Set_Abort_Present
9718 (N : Node_Id; Val : Boolean := True); -- Flag15
9720 procedure Set_Abortable_Part
9721 (N : Node_Id; Val : Node_Id); -- Node2
9723 procedure Set_Abstract_Present
9724 (N : Node_Id; Val : Boolean := True); -- Flag4
9726 procedure Set_Accept_Handler_Records
9727 (N : Node_Id; Val : List_Id); -- List5
9729 procedure Set_Accept_Statement
9730 (N : Node_Id; Val : Node_Id); -- Node2
9732 procedure Set_Access_Definition
9733 (N : Node_Id; Val : Node_Id); -- Node3
9735 procedure Set_Access_To_Subprogram_Definition
9736 (N : Node_Id; Val : Node_Id); -- Node3
9738 procedure Set_Access_Types_To_Process
9739 (N : Node_Id; Val : Elist_Id); -- Elist2
9741 procedure Set_Actions
9742 (N : Node_Id; Val : List_Id); -- List1
9744 procedure Set_Activation_Chain_Entity
9745 (N : Node_Id; Val : Node_Id); -- Node3
9747 procedure Set_Acts_As_Spec
9748 (N : Node_Id; Val : Boolean := True); -- Flag4
9750 procedure Set_Actual_Designated_Subtype
9751 (N : Node_Id; Val : Node_Id); -- Node4
9753 procedure Set_Address_Warning_Posted
9754 (N : Node_Id; Val : Boolean := True); -- Flag18
9756 procedure Set_Aggregate_Bounds
9757 (N : Node_Id; Val : Node_Id); -- Node3
9759 procedure Set_Aliased_Present
9760 (N : Node_Id; Val : Boolean := True); -- Flag4
9762 procedure Set_All_Others
9763 (N : Node_Id; Val : Boolean := True); -- Flag11
9765 procedure Set_All_Present
9766 (N : Node_Id; Val : Boolean := True); -- Flag15
9768 procedure Set_Alternatives
9769 (N : Node_Id; Val : List_Id); -- List4
9771 procedure Set_Ancestor_Part
9772 (N : Node_Id; Val : Node_Id); -- Node3
9774 procedure Set_Atomic_Sync_Required
9775 (N : Node_Id; Val : Boolean := True); -- Flag14
9777 procedure Set_Array_Aggregate
9778 (N : Node_Id; Val : Node_Id); -- Node3
9780 procedure Set_Aspect_Rep_Item
9781 (N : Node_Id; Val : Node_Id); -- Node2
9783 procedure Set_Assignment_OK
9784 (N : Node_Id; Val : Boolean := True); -- Flag15
9786 procedure Set_Associated_Node
9787 (N : Node_Id; Val : Node_Id); -- Node4
9789 procedure Set_Attribute_Name
9790 (N : Node_Id; Val : Name_Id); -- Name2
9792 procedure Set_At_End_Proc
9793 (N : Node_Id; Val : Node_Id); -- Node1
9795 procedure Set_Aux_Decls_Node
9796 (N : Node_Id; Val : Node_Id); -- Node5
9798 procedure Set_Backwards_OK
9799 (N : Node_Id; Val : Boolean := True); -- Flag6
9801 procedure Set_Bad_Is_Detected
9802 (N : Node_Id; Val : Boolean := True); -- Flag15
9804 procedure Set_Body_Required
9805 (N : Node_Id; Val : Boolean := True); -- Flag13
9807 procedure Set_Body_To_Inline
9808 (N : Node_Id; Val : Node_Id); -- Node3
9810 procedure Set_Box_Present
9811 (N : Node_Id; Val : Boolean := True); -- Flag15
9813 procedure Set_By_Ref
9814 (N : Node_Id; Val : Boolean := True); -- Flag5
9816 procedure Set_Char_Literal_Value
9817 (N : Node_Id; Val : Uint); -- Uint2
9819 procedure Set_Chars
9820 (N : Node_Id; Val : Name_Id); -- Name1
9822 procedure Set_Check_Address_Alignment
9823 (N : Node_Id; Val : Boolean := True); -- Flag11
9825 procedure Set_Choice_Parameter
9826 (N : Node_Id; Val : Node_Id); -- Node2
9828 procedure Set_Choices
9829 (N : Node_Id; Val : List_Id); -- List1
9831 procedure Set_Class_Present
9832 (N : Node_Id; Val : Boolean := True); -- Flag6
9834 procedure Set_Classifications
9835 (N : Node_Id; Val : Node_Id); -- Node3
9837 procedure Set_Cleanup_Actions
9838 (N : Node_Id; Val : List_Id); -- List5
9840 procedure Set_Comes_From_Extended_Return_Statement
9841 (N : Node_Id; Val : Boolean := True); -- Flag18
9843 procedure Set_Compile_Time_Known_Aggregate
9844 (N : Node_Id; Val : Boolean := True); -- Flag18
9846 procedure Set_Component_Associations
9847 (N : Node_Id; Val : List_Id); -- List2
9849 procedure Set_Component_Clauses
9850 (N : Node_Id; Val : List_Id); -- List3
9852 procedure Set_Component_Definition
9853 (N : Node_Id; Val : Node_Id); -- Node4
9855 procedure Set_Component_Items
9856 (N : Node_Id; Val : List_Id); -- List3
9858 procedure Set_Component_List
9859 (N : Node_Id; Val : Node_Id); -- Node1
9861 procedure Set_Component_Name
9862 (N : Node_Id; Val : Node_Id); -- Node1
9864 procedure Set_Componentwise_Assignment
9865 (N : Node_Id; Val : Boolean := True); -- Flag14
9867 procedure Set_Condition
9868 (N : Node_Id; Val : Node_Id); -- Node1
9870 procedure Set_Condition_Actions
9871 (N : Node_Id; Val : List_Id); -- List3
9873 procedure Set_Config_Pragmas
9874 (N : Node_Id; Val : List_Id); -- List4
9876 procedure Set_Constant_Present
9877 (N : Node_Id; Val : Boolean := True); -- Flag17
9879 procedure Set_Constraint
9880 (N : Node_Id; Val : Node_Id); -- Node3
9882 procedure Set_Constraints
9883 (N : Node_Id; Val : List_Id); -- List1
9885 procedure Set_Context_Installed
9886 (N : Node_Id; Val : Boolean := True); -- Flag13
9888 procedure Set_Context_Items
9889 (N : Node_Id; Val : List_Id); -- List1
9891 procedure Set_Context_Pending
9892 (N : Node_Id; Val : Boolean := True); -- Flag16
9894 procedure Set_Contract_Test_Cases
9895 (N : Node_Id; Val : Node_Id); -- Node2
9897 procedure Set_Controlling_Argument
9898 (N : Node_Id; Val : Node_Id); -- Node1
9900 procedure Set_Conversion_OK
9901 (N : Node_Id; Val : Boolean := True); -- Flag14
9903 procedure Set_Convert_To_Return_False
9904 (N : Node_Id; Val : Boolean := True); -- Flag13
9906 procedure Set_Corresponding_Aspect
9907 (N : Node_Id; Val : Node_Id); -- Node3
9909 procedure Set_Corresponding_Body
9910 (N : Node_Id; Val : Node_Id); -- Node5
9912 procedure Set_Corresponding_Formal_Spec
9913 (N : Node_Id; Val : Node_Id); -- Node3
9915 procedure Set_Corresponding_Generic_Association
9916 (N : Node_Id; Val : Node_Id); -- Node5
9918 procedure Set_Corresponding_Integer_Value
9919 (N : Node_Id; Val : Uint); -- Uint4
9921 procedure Set_Corresponding_Spec
9922 (N : Node_Id; Val : Node_Id); -- Node5
9924 procedure Set_Corresponding_Spec_Of_Stub
9925 (N : Node_Id; Val : Node_Id); -- Node2
9927 procedure Set_Corresponding_Stub
9928 (N : Node_Id; Val : Node_Id); -- Node3
9930 procedure Set_Dcheck_Function
9931 (N : Node_Id; Val : Entity_Id); -- Node5
9933 procedure Set_Declarations
9934 (N : Node_Id; Val : List_Id); -- List2
9936 procedure Set_Default_Expression
9937 (N : Node_Id; Val : Node_Id); -- Node5
9939 procedure Set_Default_Storage_Pool
9940 (N : Node_Id; Val : Node_Id); -- Node3
9942 procedure Set_Default_Name
9943 (N : Node_Id; Val : Node_Id); -- Node2
9945 procedure Set_Defining_Identifier
9946 (N : Node_Id; Val : Entity_Id); -- Node1
9948 procedure Set_Defining_Unit_Name
9949 (N : Node_Id; Val : Node_Id); -- Node1
9951 procedure Set_Delay_Alternative
9952 (N : Node_Id; Val : Node_Id); -- Node4
9954 procedure Set_Delay_Statement
9955 (N : Node_Id; Val : Node_Id); -- Node2
9957 procedure Set_Delta_Expression
9958 (N : Node_Id; Val : Node_Id); -- Node3
9960 procedure Set_Digits_Expression
9961 (N : Node_Id; Val : Node_Id); -- Node2
9963 procedure Set_Discr_Check_Funcs_Built
9964 (N : Node_Id; Val : Boolean := True); -- Flag11
9966 procedure Set_Discrete_Choices
9967 (N : Node_Id; Val : List_Id); -- List4
9969 procedure Set_Discrete_Range
9970 (N : Node_Id; Val : Node_Id); -- Node4
9972 procedure Set_Discrete_Subtype_Definition
9973 (N : Node_Id; Val : Node_Id); -- Node4
9975 procedure Set_Discrete_Subtype_Definitions
9976 (N : Node_Id; Val : List_Id); -- List2
9978 procedure Set_Discriminant_Specifications
9979 (N : Node_Id; Val : List_Id); -- List4
9981 procedure Set_Discriminant_Type
9982 (N : Node_Id; Val : Node_Id); -- Node5
9984 procedure Set_Do_Accessibility_Check
9985 (N : Node_Id; Val : Boolean := True); -- Flag13
9987 procedure Set_Do_Discriminant_Check
9988 (N : Node_Id; Val : Boolean := True); -- Flag1
9990 procedure Set_Do_Division_Check
9991 (N : Node_Id; Val : Boolean := True); -- Flag13
9993 procedure Set_Do_Length_Check
9994 (N : Node_Id; Val : Boolean := True); -- Flag4
9996 procedure Set_Do_Overflow_Check
9997 (N : Node_Id; Val : Boolean := True); -- Flag17
9999 procedure Set_Do_Range_Check
10000 (N : Node_Id; Val : Boolean := True); -- Flag9
10002 procedure Set_Do_Storage_Check
10003 (N : Node_Id; Val : Boolean := True); -- Flag17
10005 procedure Set_Do_Tag_Check
10006 (N : Node_Id; Val : Boolean := True); -- Flag13
10008 procedure Set_Elaborate_All_Desirable
10009 (N : Node_Id; Val : Boolean := True); -- Flag9
10011 procedure Set_Elaborate_All_Present
10012 (N : Node_Id; Val : Boolean := True); -- Flag14
10014 procedure Set_Elaborate_Desirable
10015 (N : Node_Id; Val : Boolean := True); -- Flag11
10017 procedure Set_Elaborate_Present
10018 (N : Node_Id; Val : Boolean := True); -- Flag4
10020 procedure Set_Else_Actions
10021 (N : Node_Id; Val : List_Id); -- List3
10023 procedure Set_Else_Statements
10024 (N : Node_Id; Val : List_Id); -- List4
10026 procedure Set_Elsif_Parts
10027 (N : Node_Id; Val : List_Id); -- List3
10029 procedure Set_Enclosing_Variant
10030 (N : Node_Id; Val : Node_Id); -- Node2
10032 procedure Set_End_Label
10033 (N : Node_Id; Val : Node_Id); -- Node4
10035 procedure Set_End_Span
10036 (N : Node_Id; Val : Uint); -- Uint5
10038 procedure Set_Entity
10039 (N : Node_Id; Val : Node_Id); -- Node4
10041 procedure Set_Entry_Body_Formal_Part
10042 (N : Node_Id; Val : Node_Id); -- Node5
10044 procedure Set_Entry_Call_Alternative
10045 (N : Node_Id; Val : Node_Id); -- Node1
10047 procedure Set_Entry_Call_Statement
10048 (N : Node_Id; Val : Node_Id); -- Node1
10050 procedure Set_Entry_Direct_Name
10051 (N : Node_Id; Val : Node_Id); -- Node1
10053 procedure Set_Entry_Index
10054 (N : Node_Id; Val : Node_Id); -- Node5
10056 procedure Set_Entry_Index_Specification
10057 (N : Node_Id; Val : Node_Id); -- Node4
10059 procedure Set_Etype
10060 (N : Node_Id; Val : Node_Id); -- Node5
10062 procedure Set_Exception_Choices
10063 (N : Node_Id; Val : List_Id); -- List4
10065 procedure Set_Exception_Handlers
10066 (N : Node_Id; Val : List_Id); -- List5
10068 procedure Set_Exception_Junk
10069 (N : Node_Id; Val : Boolean := True); -- Flag8
10071 procedure Set_Exception_Label
10072 (N : Node_Id; Val : Node_Id); -- Node5
10074 procedure Set_Expansion_Delayed
10075 (N : Node_Id; Val : Boolean := True); -- Flag11
10077 procedure Set_Explicit_Actual_Parameter
10078 (N : Node_Id; Val : Node_Id); -- Node3
10080 procedure Set_Explicit_Generic_Actual_Parameter
10081 (N : Node_Id; Val : Node_Id); -- Node1
10083 procedure Set_Expression
10084 (N : Node_Id; Val : Node_Id); -- Node3
10086 procedure Set_Expressions
10087 (N : Node_Id; Val : List_Id); -- List1
10089 procedure Set_First_Bit
10090 (N : Node_Id; Val : Node_Id); -- Node3
10092 procedure Set_First_Inlined_Subprogram
10093 (N : Node_Id; Val : Entity_Id); -- Node3
10095 procedure Set_First_Name
10096 (N : Node_Id; Val : Boolean := True); -- Flag5
10098 procedure Set_First_Named_Actual
10099 (N : Node_Id; Val : Node_Id); -- Node4
10101 procedure Set_First_Real_Statement
10102 (N : Node_Id; Val : Node_Id); -- Node2
10104 procedure Set_First_Subtype_Link
10105 (N : Node_Id; Val : Entity_Id); -- Node5
10107 procedure Set_Float_Truncate
10108 (N : Node_Id; Val : Boolean := True); -- Flag11
10110 procedure Set_Formal_Type_Definition
10111 (N : Node_Id; Val : Node_Id); -- Node3
10113 procedure Set_Forwards_OK
10114 (N : Node_Id; Val : Boolean := True); -- Flag5
10116 procedure Set_From_Aspect_Specification
10117 (N : Node_Id; Val : Boolean := True); -- Flag13
10119 procedure Set_From_At_End
10120 (N : Node_Id; Val : Boolean := True); -- Flag4
10122 procedure Set_From_At_Mod
10123 (N : Node_Id; Val : Boolean := True); -- Flag4
10125 procedure Set_From_Conditional_Expression
10126 (N : Node_Id; Val : Boolean := True); -- Flag1
10128 procedure Set_From_Default
10129 (N : Node_Id; Val : Boolean := True); -- Flag6
10131 procedure Set_Generalized_Indexing
10132 (N : Node_Id; Val : Node_Id); -- Node4
10134 procedure Set_Generic_Associations
10135 (N : Node_Id; Val : List_Id); -- List3
10137 procedure Set_Generic_Formal_Declarations
10138 (N : Node_Id; Val : List_Id); -- List2
10140 procedure Set_Generic_Parent
10141 (N : Node_Id; Val : Node_Id); -- Node5
10143 procedure Set_Generic_Parent_Type
10144 (N : Node_Id; Val : Node_Id); -- Node4
10146 procedure Set_Handled_Statement_Sequence
10147 (N : Node_Id; Val : Node_Id); -- Node4
10149 procedure Set_Handler_List_Entry
10150 (N : Node_Id; Val : Node_Id); -- Node2
10152 procedure Set_Has_Created_Identifier
10153 (N : Node_Id; Val : Boolean := True); -- Flag15
10155 procedure Set_Has_Dereference_Action
10156 (N : Node_Id; Val : Boolean := True); -- Flag13
10158 procedure Set_Has_Dynamic_Length_Check
10159 (N : Node_Id; Val : Boolean := True); -- Flag10
10161 procedure Set_Has_Dynamic_Range_Check
10162 (N : Node_Id; Val : Boolean := True); -- Flag12
10164 procedure Set_Has_Init_Expression
10165 (N : Node_Id; Val : Boolean := True); -- Flag14
10167 procedure Set_Has_Local_Raise
10168 (N : Node_Id; Val : Boolean := True); -- Flag8
10170 procedure Set_Has_No_Elaboration_Code
10171 (N : Node_Id; Val : Boolean := True); -- Flag17
10173 procedure Set_Has_Pragma_Suppress_All
10174 (N : Node_Id; Val : Boolean := True); -- Flag14
10176 procedure Set_Has_Private_View
10177 (N : Node_Id; Val : Boolean := True); -- Flag11
10179 procedure Set_Has_Relative_Deadline_Pragma
10180 (N : Node_Id; Val : Boolean := True); -- Flag9
10182 procedure Set_Has_Self_Reference
10183 (N : Node_Id; Val : Boolean := True); -- Flag13
10185 procedure Set_Has_SP_Choice
10186 (N : Node_Id; Val : Boolean := True); -- Flag15
10188 procedure Set_Has_Storage_Size_Pragma
10189 (N : Node_Id; Val : Boolean := True); -- Flag5
10191 procedure Set_Has_Wide_Character
10192 (N : Node_Id; Val : Boolean := True); -- Flag11
10194 procedure Set_Has_Wide_Wide_Character
10195 (N : Node_Id; Val : Boolean := True); -- Flag13
10197 procedure Set_Header_Size_Added
10198 (N : Node_Id; Val : Boolean := True); -- Flag11
10200 procedure Set_Hidden_By_Use_Clause
10201 (N : Node_Id; Val : Elist_Id); -- Elist4
10203 procedure Set_High_Bound
10204 (N : Node_Id; Val : Node_Id); -- Node2
10206 procedure Set_Identifier
10207 (N : Node_Id; Val : Node_Id); -- Node1
10209 procedure Set_Interface_List
10210 (N : Node_Id; Val : List_Id); -- List2
10212 procedure Set_Interface_Present
10213 (N : Node_Id; Val : Boolean := True); -- Flag16
10215 procedure Set_Implicit_With
10216 (N : Node_Id; Val : Boolean := True); -- Flag16
10218 procedure Set_Implicit_With_From_Instantiation
10219 (N : Node_Id; Val : Boolean := True); -- Flag12
10221 procedure Set_Import_Interface_Present
10222 (N : Node_Id; Val : Boolean := True); -- Flag16
10224 procedure Set_In_Present
10225 (N : Node_Id; Val : Boolean := True); -- Flag15
10227 procedure Set_Includes_Infinities
10228 (N : Node_Id; Val : Boolean := True); -- Flag11
10230 procedure Set_Incomplete_View
10231 (N : Node_Id; Val : Node_Id); -- Node2
10233 procedure Set_Inherited_Discriminant
10234 (N : Node_Id; Val : Boolean := True); -- Flag13
10236 procedure Set_Instance_Spec
10237 (N : Node_Id; Val : Node_Id); -- Node5
10239 procedure Set_Intval
10240 (N : Node_Id; Val : Uint); -- Uint3
10242 procedure Set_Is_Accessibility_Actual
10243 (N : Node_Id; Val : Boolean := True); -- Flag13
10245 procedure Set_Is_Asynchronous_Call_Block
10246 (N : Node_Id; Val : Boolean := True); -- Flag7
10248 procedure Set_Is_Boolean_Aspect
10249 (N : Node_Id; Val : Boolean := True); -- Flag16
10251 procedure Set_Is_Checked
10252 (N : Node_Id; Val : Boolean := True); -- Flag11
10254 procedure Set_Is_Component_Left_Opnd
10255 (N : Node_Id; Val : Boolean := True); -- Flag13
10257 procedure Set_Is_Component_Right_Opnd
10258 (N : Node_Id; Val : Boolean := True); -- Flag14
10260 procedure Set_Is_Controlling_Actual
10261 (N : Node_Id; Val : Boolean := True); -- Flag16
10263 procedure Set_Is_Delayed_Aspect
10264 (N : Node_Id; Val : Boolean := True); -- Flag14
10266 procedure Set_Is_Disabled
10267 (N : Node_Id; Val : Boolean := True); -- Flag15
10269 procedure Set_Is_Ignored
10270 (N : Node_Id; Val : Boolean := True); -- Flag9
10272 procedure Set_Is_Dynamic_Coextension
10273 (N : Node_Id; Val : Boolean := True); -- Flag18
10275 procedure Set_Is_Elsif
10276 (N : Node_Id; Val : Boolean := True); -- Flag13
10278 procedure Set_Is_Entry_Barrier_Function
10279 (N : Node_Id; Val : Boolean := True); -- Flag8
10281 procedure Set_Is_Expanded_Build_In_Place_Call
10282 (N : Node_Id; Val : Boolean := True); -- Flag11
10284 procedure Set_Is_Finalization_Wrapper
10285 (N : Node_Id; Val : Boolean := True); -- Flag9
10287 procedure Set_Is_Folded_In_Parser
10288 (N : Node_Id; Val : Boolean := True); -- Flag4
10290 procedure Set_Is_In_Discriminant_Check
10291 (N : Node_Id; Val : Boolean := True); -- Flag11
10293 procedure Set_Is_Inherited
10294 (N : Node_Id; Val : Boolean := True); -- Flag4
10296 procedure Set_Is_Machine_Number
10297 (N : Node_Id; Val : Boolean := True); -- Flag11
10299 procedure Set_Is_Null_Loop
10300 (N : Node_Id; Val : Boolean := True); -- Flag16
10302 procedure Set_Is_Overloaded
10303 (N : Node_Id; Val : Boolean := True); -- Flag5
10305 procedure Set_Is_Power_Of_2_For_Shift
10306 (N : Node_Id; Val : Boolean := True); -- Flag13
10308 procedure Set_Is_Prefixed_Call
10309 (N : Node_Id; Val : Boolean := True); -- Flag17
10311 procedure Set_Is_Protected_Subprogram_Body
10312 (N : Node_Id; Val : Boolean := True); -- Flag7
10314 procedure Set_Is_Static_Coextension
10315 (N : Node_Id; Val : Boolean := True); -- Flag14
10317 procedure Set_Is_Static_Expression
10318 (N : Node_Id; Val : Boolean := True); -- Flag6
10320 procedure Set_Is_Subprogram_Descriptor
10321 (N : Node_Id; Val : Boolean := True); -- Flag16
10323 procedure Set_Is_Task_Allocation_Block
10324 (N : Node_Id; Val : Boolean := True); -- Flag6
10326 procedure Set_Is_Task_Master
10327 (N : Node_Id; Val : Boolean := True); -- Flag5
10329 procedure Set_Iteration_Scheme
10330 (N : Node_Id; Val : Node_Id); -- Node2
10332 procedure Set_Iterator_Specification
10333 (N : Node_Id; Val : Node_Id); -- Node2
10335 procedure Set_Itype
10336 (N : Node_Id; Val : Entity_Id); -- Node1
10338 procedure Set_Kill_Range_Check
10339 (N : Node_Id; Val : Boolean := True); -- Flag11
10341 procedure Set_Last_Bit
10342 (N : Node_Id; Val : Node_Id); -- Node4
10344 procedure Set_Last_Name
10345 (N : Node_Id; Val : Boolean := True); -- Flag6
10347 procedure Set_Library_Unit
10348 (N : Node_Id; Val : Node_Id); -- Node4
10350 procedure Set_Label_Construct
10351 (N : Node_Id; Val : Node_Id); -- Node2
10353 procedure Set_Left_Opnd
10354 (N : Node_Id; Val : Node_Id); -- Node2
10356 procedure Set_Limited_View_Installed
10357 (N : Node_Id; Val : Boolean := True); -- Flag18
10359 procedure Set_Limited_Present
10360 (N : Node_Id; Val : Boolean := True); -- Flag17
10362 procedure Set_Literals
10363 (N : Node_Id; Val : List_Id); -- List1
10365 procedure Set_Local_Raise_Not_OK
10366 (N : Node_Id; Val : Boolean := True); -- Flag7
10368 procedure Set_Local_Raise_Statements
10369 (N : Node_Id; Val : Elist_Id); -- Elist1
10371 procedure Set_Loop_Actions
10372 (N : Node_Id; Val : List_Id); -- List2
10374 procedure Set_Loop_Parameter_Specification
10375 (N : Node_Id; Val : Node_Id); -- Node4
10377 procedure Set_Low_Bound
10378 (N : Node_Id; Val : Node_Id); -- Node1
10380 procedure Set_Mod_Clause
10381 (N : Node_Id; Val : Node_Id); -- Node2
10383 procedure Set_More_Ids
10384 (N : Node_Id; Val : Boolean := True); -- Flag5
10386 procedure Set_Must_Be_Byte_Aligned
10387 (N : Node_Id; Val : Boolean := True); -- Flag14
10389 procedure Set_Must_Not_Freeze
10390 (N : Node_Id; Val : Boolean := True); -- Flag8
10392 procedure Set_Must_Not_Override
10393 (N : Node_Id; Val : Boolean := True); -- Flag15
10395 procedure Set_Must_Override
10396 (N : Node_Id; Val : Boolean := True); -- Flag14
10398 procedure Set_Name
10399 (N : Node_Id; Val : Node_Id); -- Node2
10401 procedure Set_Names
10402 (N : Node_Id; Val : List_Id); -- List2
10404 procedure Set_Next_Entity
10405 (N : Node_Id; Val : Node_Id); -- Node2
10407 procedure Set_Next_Exit_Statement
10408 (N : Node_Id; Val : Node_Id); -- Node3
10410 procedure Set_Next_Implicit_With
10411 (N : Node_Id; Val : Node_Id); -- Node3
10413 procedure Set_Next_Named_Actual
10414 (N : Node_Id; Val : Node_Id); -- Node4
10416 procedure Set_Next_Pragma
10417 (N : Node_Id; Val : Node_Id); -- Node1
10419 procedure Set_Next_Rep_Item
10420 (N : Node_Id; Val : Node_Id); -- Node5
10422 procedure Set_Next_Use_Clause
10423 (N : Node_Id; Val : Node_Id); -- Node3
10425 procedure Set_No_Ctrl_Actions
10426 (N : Node_Id; Val : Boolean := True); -- Flag7
10428 procedure Set_No_Elaboration_Check
10429 (N : Node_Id; Val : Boolean := True); -- Flag14
10431 procedure Set_No_Entities_Ref_In_Spec
10432 (N : Node_Id; Val : Boolean := True); -- Flag8
10434 procedure Set_No_Initialization
10435 (N : Node_Id; Val : Boolean := True); -- Flag13
10437 procedure Set_No_Minimize_Eliminate
10438 (N : Node_Id; Val : Boolean := True); -- Flag17
10440 procedure Set_No_Truncation
10441 (N : Node_Id; Val : Boolean := True); -- Flag17
10443 procedure Set_Non_Aliased_Prefix
10444 (N : Node_Id; Val : Boolean := True); -- Flag18
10446 procedure Set_Null_Present
10447 (N : Node_Id; Val : Boolean := True); -- Flag13
10449 procedure Set_Null_Excluding_Subtype
10450 (N : Node_Id; Val : Boolean := True); -- Flag16
10452 procedure Set_Null_Exclusion_Present
10453 (N : Node_Id; Val : Boolean := True); -- Flag11
10455 procedure Set_Null_Exclusion_In_Return_Present
10456 (N : Node_Id; Val : Boolean := True); -- Flag14
10458 procedure Set_Null_Record_Present
10459 (N : Node_Id; Val : Boolean := True); -- Flag17
10461 procedure Set_Object_Definition
10462 (N : Node_Id; Val : Node_Id); -- Node4
10464 procedure Set_Of_Present
10465 (N : Node_Id; Val : Boolean := True); -- Flag16
10467 procedure Set_Original_Discriminant
10468 (N : Node_Id; Val : Node_Id); -- Node2
10470 procedure Set_Original_Entity
10471 (N : Node_Id; Val : Entity_Id); -- Node2
10473 procedure Set_Others_Discrete_Choices
10474 (N : Node_Id; Val : List_Id); -- List1
10476 procedure Set_Out_Present
10477 (N : Node_Id; Val : Boolean := True); -- Flag17
10479 procedure Set_Parameter_Associations
10480 (N : Node_Id; Val : List_Id); -- List3
10482 procedure Set_Parameter_Specifications
10483 (N : Node_Id; Val : List_Id); -- List3
10485 procedure Set_Parameter_Type
10486 (N : Node_Id; Val : Node_Id); -- Node2
10488 procedure Set_Parent_Spec
10489 (N : Node_Id; Val : Node_Id); -- Node4
10491 procedure Set_Position
10492 (N : Node_Id; Val : Node_Id); -- Node2
10494 procedure Set_Pragma_Argument_Associations
10495 (N : Node_Id; Val : List_Id); -- List2
10497 procedure Set_Pragma_Identifier
10498 (N : Node_Id; Val : Node_Id); -- Node4
10500 procedure Set_Pragmas_After
10501 (N : Node_Id; Val : List_Id); -- List5
10503 procedure Set_Pragmas_Before
10504 (N : Node_Id; Val : List_Id); -- List4
10506 procedure Set_Pre_Post_Conditions
10507 (N : Node_Id; Val : Node_Id); -- Node1
10509 procedure Set_Prefix
10510 (N : Node_Id; Val : Node_Id); -- Node3
10512 procedure Set_Premature_Use
10513 (N : Node_Id; Val : Node_Id); -- Node5
10515 procedure Set_Present_Expr
10516 (N : Node_Id; Val : Uint); -- Uint3
10518 procedure Set_Prev_Ids
10519 (N : Node_Id; Val : Boolean := True); -- Flag6
10521 procedure Set_Print_In_Hex
10522 (N : Node_Id; Val : Boolean := True); -- Flag13
10524 procedure Set_Private_Declarations
10525 (N : Node_Id; Val : List_Id); -- List3
10527 procedure Set_Private_Present
10528 (N : Node_Id; Val : Boolean := True); -- Flag15
10530 procedure Set_Procedure_To_Call
10531 (N : Node_Id; Val : Node_Id); -- Node2
10533 procedure Set_Proper_Body
10534 (N : Node_Id; Val : Node_Id); -- Node1
10536 procedure Set_Protected_Definition
10537 (N : Node_Id; Val : Node_Id); -- Node3
10539 procedure Set_Protected_Present
10540 (N : Node_Id; Val : Boolean := True); -- Flag6
10542 procedure Set_Raises_Constraint_Error
10543 (N : Node_Id; Val : Boolean := True); -- Flag7
10545 procedure Set_Range_Constraint
10546 (N : Node_Id; Val : Node_Id); -- Node4
10548 procedure Set_Range_Expression
10549 (N : Node_Id; Val : Node_Id); -- Node4
10551 procedure Set_Real_Range_Specification
10552 (N : Node_Id; Val : Node_Id); -- Node4
10554 procedure Set_Realval
10555 (N : Node_Id; Val : Ureal); -- Ureal3
10557 procedure Set_Reason
10558 (N : Node_Id; Val : Uint); -- Uint3
10560 procedure Set_Record_Extension_Part
10561 (N : Node_Id; Val : Node_Id); -- Node3
10563 procedure Set_Redundant_Use
10564 (N : Node_Id; Val : Boolean := True); -- Flag13
10566 procedure Set_Renaming_Exception
10567 (N : Node_Id; Val : Node_Id); -- Node2
10569 procedure Set_Result_Definition
10570 (N : Node_Id; Val : Node_Id); -- Node4
10572 procedure Set_Return_Object_Declarations
10573 (N : Node_Id; Val : List_Id); -- List3
10575 procedure Set_Return_Statement_Entity
10576 (N : Node_Id; Val : Node_Id); -- Node5
10578 procedure Set_Reverse_Present
10579 (N : Node_Id; Val : Boolean := True); -- Flag15
10581 procedure Set_Right_Opnd
10582 (N : Node_Id; Val : Node_Id); -- Node3
10584 procedure Set_Rounded_Result
10585 (N : Node_Id; Val : Boolean := True); -- Flag18
10587 procedure Set_SCIL_Controlling_Tag
10588 (N : Node_Id; Val : Node_Id); -- Node5
10590 procedure Set_SCIL_Entity
10591 (N : Node_Id; Val : Node_Id); -- Node4
10593 procedure Set_SCIL_Tag_Value
10594 (N : Node_Id; Val : Node_Id); -- Node5
10596 procedure Set_SCIL_Target_Prim
10597 (N : Node_Id; Val : Node_Id); -- Node2
10599 procedure Set_Scope
10600 (N : Node_Id; Val : Node_Id); -- Node3
10602 procedure Set_Select_Alternatives
10603 (N : Node_Id; Val : List_Id); -- List1
10605 procedure Set_Selector_Name
10606 (N : Node_Id; Val : Node_Id); -- Node2
10608 procedure Set_Selector_Names
10609 (N : Node_Id; Val : List_Id); -- List1
10611 procedure Set_Shift_Count_OK
10612 (N : Node_Id; Val : Boolean := True); -- Flag4
10614 procedure Set_Source_Type
10615 (N : Node_Id; Val : Entity_Id); -- Node1
10617 procedure Set_Specification
10618 (N : Node_Id; Val : Node_Id); -- Node1
10620 procedure Set_Split_PPC
10621 (N : Node_Id; Val : Boolean); -- Flag17
10623 procedure Set_Statements
10624 (N : Node_Id; Val : List_Id); -- List3
10626 procedure Set_Storage_Pool
10627 (N : Node_Id; Val : Node_Id); -- Node1
10629 procedure Set_Subpool_Handle_Name
10630 (N : Node_Id; Val : Node_Id); -- Node4
10632 procedure Set_Strval
10633 (N : Node_Id; Val : String_Id); -- Str3
10635 procedure Set_Subtype_Indication
10636 (N : Node_Id; Val : Node_Id); -- Node5
10638 procedure Set_Subtype_Mark
10639 (N : Node_Id; Val : Node_Id); -- Node4
10641 procedure Set_Subtype_Marks
10642 (N : Node_Id; Val : List_Id); -- List2
10644 procedure Set_Suppress_Assignment_Checks
10645 (N : Node_Id; Val : Boolean := True); -- Flag18
10647 procedure Set_Suppress_Loop_Warnings
10648 (N : Node_Id; Val : Boolean := True); -- Flag17
10650 procedure Set_Synchronized_Present
10651 (N : Node_Id; Val : Boolean := True); -- Flag7
10653 procedure Set_Tagged_Present
10654 (N : Node_Id; Val : Boolean := True); -- Flag15
10656 procedure Set_Target_Type
10657 (N : Node_Id; Val : Entity_Id); -- Node2
10659 procedure Set_Task_Definition
10660 (N : Node_Id; Val : Node_Id); -- Node3
10662 procedure Set_Task_Present
10663 (N : Node_Id; Val : Boolean := True); -- Flag5
10665 procedure Set_Then_Actions
10666 (N : Node_Id; Val : List_Id); -- List2
10668 procedure Set_Then_Statements
10669 (N : Node_Id; Val : List_Id); -- List2
10671 procedure Set_Treat_Fixed_As_Integer
10672 (N : Node_Id; Val : Boolean := True); -- Flag14
10674 procedure Set_Triggering_Alternative
10675 (N : Node_Id; Val : Node_Id); -- Node1
10677 procedure Set_Triggering_Statement
10678 (N : Node_Id; Val : Node_Id); -- Node1
10680 procedure Set_TSS_Elist
10681 (N : Node_Id; Val : Elist_Id); -- Elist3
10683 procedure Set_Type_Definition
10684 (N : Node_Id; Val : Node_Id); -- Node3
10686 procedure Set_Uneval_Old_Accept
10687 (N : Node_Id; Val : Boolean := True); -- Flag7
10689 procedure Set_Uneval_Old_Warn
10690 (N : Node_Id; Val : Boolean := True); -- Flag18
10692 procedure Set_Unit
10693 (N : Node_Id; Val : Node_Id); -- Node2
10695 procedure Set_Unknown_Discriminants_Present
10696 (N : Node_Id; Val : Boolean := True); -- Flag13
10698 procedure Set_Unreferenced_In_Spec
10699 (N : Node_Id; Val : Boolean := True); -- Flag7
10701 procedure Set_Variant_Part
10702 (N : Node_Id; Val : Node_Id); -- Node4
10704 procedure Set_Variants
10705 (N : Node_Id; Val : List_Id); -- List1
10707 procedure Set_Visible_Declarations
10708 (N : Node_Id; Val : List_Id); -- List2
10710 procedure Set_Uninitialized_Variable
10711 (N : Node_Id; Val : Node_Id); -- Node3
10713 procedure Set_Used_Operations
10714 (N : Node_Id; Val : Elist_Id); -- Elist5
10716 procedure Set_Was_Originally_Stub
10717 (N : Node_Id; Val : Boolean := True); -- Flag13
10719 procedure Set_Withed_Body
10720 (N : Node_Id; Val : Node_Id); -- Node1
10722 -------------------------
10723 -- Iterator Procedures --
10724 -------------------------
10726 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10728 procedure Next_Entity (N : in out Node_Id);
10729 procedure Next_Named_Actual (N : in out Node_Id);
10730 procedure Next_Rep_Item (N : in out Node_Id);
10731 procedure Next_Use_Clause (N : in out Node_Id);
10733 -------------------------------------------
10734 -- Miscellaneous Tree Access Subprograms --
10735 -------------------------------------------
10737 function End_Location (N : Node_Id) return Source_Ptr;
10738 -- N is an N_If_Statement or N_Case_Statement node, and this function
10739 -- returns the location of the IF token in the END IF sequence by
10740 -- translating the value of the End_Span field.
10742 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10743 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10744 -- the End_Span field to correspond to the given value S. In other words,
10745 -- End_Span is set to the difference between S and Sloc (N), the starting
10746 -- location.
10748 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10749 -- Given an argument to a pragma Arg, this function returns the expression
10750 -- for the argument. This is Arg itself, or, in the case where Arg is a
10751 -- pragma argument association node, the expression from this node.
10753 --------------------------------
10754 -- Node_Kind Membership Tests --
10755 --------------------------------
10757 -- The following functions allow a convenient notation for testing whether
10758 -- a Node_Kind value matches any one of a list of possible values. In each
10759 -- case True is returned if the given T argument is equal to any of the V
10760 -- arguments. Note that there is a similar set of functions defined in
10761 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10763 function Nkind_In
10764 (T : Node_Kind;
10765 V1 : Node_Kind;
10766 V2 : Node_Kind) return Boolean;
10768 function Nkind_In
10769 (T : Node_Kind;
10770 V1 : Node_Kind;
10771 V2 : Node_Kind;
10772 V3 : Node_Kind) return Boolean;
10774 function Nkind_In
10775 (T : Node_Kind;
10776 V1 : Node_Kind;
10777 V2 : Node_Kind;
10778 V3 : Node_Kind;
10779 V4 : Node_Kind) return Boolean;
10781 function Nkind_In
10782 (T : Node_Kind;
10783 V1 : Node_Kind;
10784 V2 : Node_Kind;
10785 V3 : Node_Kind;
10786 V4 : Node_Kind;
10787 V5 : Node_Kind) return Boolean;
10789 function Nkind_In
10790 (T : Node_Kind;
10791 V1 : Node_Kind;
10792 V2 : Node_Kind;
10793 V3 : Node_Kind;
10794 V4 : Node_Kind;
10795 V5 : Node_Kind;
10796 V6 : Node_Kind) return Boolean;
10798 function Nkind_In
10799 (T : Node_Kind;
10800 V1 : Node_Kind;
10801 V2 : Node_Kind;
10802 V3 : Node_Kind;
10803 V4 : Node_Kind;
10804 V5 : Node_Kind;
10805 V6 : Node_Kind;
10806 V7 : Node_Kind) return Boolean;
10808 function Nkind_In
10809 (T : Node_Kind;
10810 V1 : Node_Kind;
10811 V2 : Node_Kind;
10812 V3 : Node_Kind;
10813 V4 : Node_Kind;
10814 V5 : Node_Kind;
10815 V6 : Node_Kind;
10816 V7 : Node_Kind;
10817 V8 : Node_Kind) return Boolean;
10819 function Nkind_In
10820 (T : Node_Kind;
10821 V1 : Node_Kind;
10822 V2 : Node_Kind;
10823 V3 : Node_Kind;
10824 V4 : Node_Kind;
10825 V5 : Node_Kind;
10826 V6 : Node_Kind;
10827 V7 : Node_Kind;
10828 V8 : Node_Kind;
10829 V9 : Node_Kind) return Boolean;
10831 pragma Inline (Nkind_In);
10832 -- Inline all above functions
10834 -----------------------
10835 -- Utility Functions --
10836 -----------------------
10838 function Pragma_Name (N : Node_Id) return Name_Id;
10839 pragma Inline (Pragma_Name);
10840 -- Convenient function to obtain Chars field of Pragma_Identifier
10842 -----------------------------
10843 -- Syntactic Parent Tables --
10844 -----------------------------
10846 -- These tables show for each node, and for each of the five fields,
10847 -- whether the corresponding field is syntactic (True) or semantic (False).
10848 -- Unused entries are also set to False.
10850 subtype Field_Num is Natural range 1 .. 5;
10852 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10854 -- Following entries can be built automatically from the sinfo sources
10855 -- using the makeisf utility (currently this program is in spitbol).
10857 N_Identifier =>
10858 (1 => True, -- Chars (Name1)
10859 2 => False, -- Original_Discriminant (Node2-Sem)
10860 3 => False, -- unused
10861 4 => False, -- Entity (Node4-Sem)
10862 5 => False), -- Etype (Node5-Sem)
10864 N_Integer_Literal =>
10865 (1 => False, -- unused
10866 2 => False, -- Original_Entity (Node2-Sem)
10867 3 => True, -- Intval (Uint3)
10868 4 => False, -- unused
10869 5 => False), -- Etype (Node5-Sem)
10871 N_Real_Literal =>
10872 (1 => False, -- unused
10873 2 => False, -- Original_Entity (Node2-Sem)
10874 3 => True, -- Realval (Ureal3)
10875 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10876 5 => False), -- Etype (Node5-Sem)
10878 N_Character_Literal =>
10879 (1 => True, -- Chars (Name1)
10880 2 => True, -- Char_Literal_Value (Uint2)
10881 3 => False, -- unused
10882 4 => False, -- Entity (Node4-Sem)
10883 5 => False), -- Etype (Node5-Sem)
10885 N_String_Literal =>
10886 (1 => False, -- unused
10887 2 => False, -- unused
10888 3 => True, -- Strval (Str3)
10889 4 => False, -- unused
10890 5 => False), -- Etype (Node5-Sem)
10892 N_Pragma =>
10893 (1 => False, -- Next_Pragma (Node1-Sem)
10894 2 => True, -- Pragma_Argument_Associations (List2)
10895 3 => False, -- unused
10896 4 => True, -- Pragma_Identifier (Node4)
10897 5 => False), -- Next_Rep_Item (Node5-Sem)
10899 N_Pragma_Argument_Association =>
10900 (1 => True, -- Chars (Name1)
10901 2 => False, -- unused
10902 3 => True, -- Expression (Node3)
10903 4 => False, -- unused
10904 5 => False), -- unused
10906 N_Defining_Identifier =>
10907 (1 => True, -- Chars (Name1)
10908 2 => False, -- Next_Entity (Node2-Sem)
10909 3 => False, -- Scope (Node3-Sem)
10910 4 => False, -- unused
10911 5 => False), -- Etype (Node5-Sem)
10913 N_Full_Type_Declaration =>
10914 (1 => True, -- Defining_Identifier (Node1)
10915 2 => False, -- Incomplete_View (Node2-Sem)
10916 3 => True, -- Type_Definition (Node3)
10917 4 => True, -- Discriminant_Specifications (List4)
10918 5 => False), -- unused
10920 N_Subtype_Declaration =>
10921 (1 => True, -- Defining_Identifier (Node1)
10922 2 => False, -- unused
10923 3 => False, -- unused
10924 4 => False, -- Generic_Parent_Type (Node4-Sem)
10925 5 => True), -- Subtype_Indication (Node5)
10927 N_Subtype_Indication =>
10928 (1 => False, -- unused
10929 2 => False, -- unused
10930 3 => True, -- Constraint (Node3)
10931 4 => True, -- Subtype_Mark (Node4)
10932 5 => False), -- Etype (Node5-Sem)
10934 N_Object_Declaration =>
10935 (1 => True, -- Defining_Identifier (Node1)
10936 2 => False, -- Handler_List_Entry (Node2-Sem)
10937 3 => True, -- Expression (Node3)
10938 4 => True, -- Object_Definition (Node4)
10939 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10941 N_Number_Declaration =>
10942 (1 => True, -- Defining_Identifier (Node1)
10943 2 => False, -- unused
10944 3 => True, -- Expression (Node3)
10945 4 => False, -- unused
10946 5 => False), -- unused
10948 N_Derived_Type_Definition =>
10949 (1 => False, -- unused
10950 2 => True, -- Interface_List (List2)
10951 3 => True, -- Record_Extension_Part (Node3)
10952 4 => False, -- unused
10953 5 => True), -- Subtype_Indication (Node5)
10955 N_Range_Constraint =>
10956 (1 => False, -- unused
10957 2 => False, -- unused
10958 3 => False, -- unused
10959 4 => True, -- Range_Expression (Node4)
10960 5 => False), -- unused
10962 N_Range =>
10963 (1 => True, -- Low_Bound (Node1)
10964 2 => True, -- High_Bound (Node2)
10965 3 => False, -- unused
10966 4 => False, -- unused
10967 5 => False), -- Etype (Node5-Sem)
10969 N_Enumeration_Type_Definition =>
10970 (1 => True, -- Literals (List1)
10971 2 => False, -- unused
10972 3 => False, -- unused
10973 4 => True, -- End_Label (Node4)
10974 5 => False), -- unused
10976 N_Defining_Character_Literal =>
10977 (1 => True, -- Chars (Name1)
10978 2 => False, -- Next_Entity (Node2-Sem)
10979 3 => False, -- Scope (Node3-Sem)
10980 4 => False, -- unused
10981 5 => False), -- Etype (Node5-Sem)
10983 N_Signed_Integer_Type_Definition =>
10984 (1 => True, -- Low_Bound (Node1)
10985 2 => True, -- High_Bound (Node2)
10986 3 => False, -- unused
10987 4 => False, -- unused
10988 5 => False), -- unused
10990 N_Modular_Type_Definition =>
10991 (1 => False, -- unused
10992 2 => False, -- unused
10993 3 => True, -- Expression (Node3)
10994 4 => False, -- unused
10995 5 => False), -- unused
10997 N_Floating_Point_Definition =>
10998 (1 => False, -- unused
10999 2 => True, -- Digits_Expression (Node2)
11000 3 => False, -- unused
11001 4 => True, -- Real_Range_Specification (Node4)
11002 5 => False), -- unused
11004 N_Real_Range_Specification =>
11005 (1 => True, -- Low_Bound (Node1)
11006 2 => True, -- High_Bound (Node2)
11007 3 => False, -- unused
11008 4 => False, -- unused
11009 5 => False), -- unused
11011 N_Ordinary_Fixed_Point_Definition =>
11012 (1 => False, -- unused
11013 2 => False, -- unused
11014 3 => True, -- Delta_Expression (Node3)
11015 4 => True, -- Real_Range_Specification (Node4)
11016 5 => False), -- unused
11018 N_Decimal_Fixed_Point_Definition =>
11019 (1 => False, -- unused
11020 2 => True, -- Digits_Expression (Node2)
11021 3 => True, -- Delta_Expression (Node3)
11022 4 => True, -- Real_Range_Specification (Node4)
11023 5 => False), -- unused
11025 N_Digits_Constraint =>
11026 (1 => False, -- unused
11027 2 => True, -- Digits_Expression (Node2)
11028 3 => False, -- unused
11029 4 => True, -- Range_Constraint (Node4)
11030 5 => False), -- unused
11032 N_Unconstrained_Array_Definition =>
11033 (1 => False, -- unused
11034 2 => True, -- Subtype_Marks (List2)
11035 3 => False, -- unused
11036 4 => True, -- Component_Definition (Node4)
11037 5 => False), -- unused
11039 N_Constrained_Array_Definition =>
11040 (1 => False, -- unused
11041 2 => True, -- Discrete_Subtype_Definitions (List2)
11042 3 => False, -- unused
11043 4 => True, -- Component_Definition (Node4)
11044 5 => False), -- unused
11046 N_Component_Definition =>
11047 (1 => False, -- unused
11048 2 => False, -- unused
11049 3 => True, -- Access_Definition (Node3)
11050 4 => False, -- unused
11051 5 => True), -- Subtype_Indication (Node5)
11053 N_Discriminant_Specification =>
11054 (1 => True, -- Defining_Identifier (Node1)
11055 2 => False, -- unused
11056 3 => True, -- Expression (Node3)
11057 4 => False, -- unused
11058 5 => True), -- Discriminant_Type (Node5)
11060 N_Index_Or_Discriminant_Constraint =>
11061 (1 => True, -- Constraints (List1)
11062 2 => False, -- unused
11063 3 => False, -- unused
11064 4 => False, -- unused
11065 5 => False), -- unused
11067 N_Discriminant_Association =>
11068 (1 => True, -- Selector_Names (List1)
11069 2 => False, -- unused
11070 3 => True, -- Expression (Node3)
11071 4 => False, -- unused
11072 5 => False), -- unused
11074 N_Record_Definition =>
11075 (1 => True, -- Component_List (Node1)
11076 2 => True, -- Interface_List (List2)
11077 3 => False, -- unused
11078 4 => True, -- End_Label (Node4)
11079 5 => False), -- unused
11081 N_Component_List =>
11082 (1 => False, -- unused
11083 2 => False, -- unused
11084 3 => True, -- Component_Items (List3)
11085 4 => True, -- Variant_Part (Node4)
11086 5 => False), -- unused
11088 N_Component_Declaration =>
11089 (1 => True, -- Defining_Identifier (Node1)
11090 2 => False, -- unused
11091 3 => True, -- Expression (Node3)
11092 4 => True, -- Component_Definition (Node4)
11093 5 => False), -- unused
11095 N_Variant_Part =>
11096 (1 => True, -- Variants (List1)
11097 2 => True, -- Name (Node2)
11098 3 => False, -- unused
11099 4 => False, -- unused
11100 5 => False), -- unused
11102 N_Variant =>
11103 (1 => True, -- Component_List (Node1)
11104 2 => False, -- Enclosing_Variant (Node2-Sem)
11105 3 => False, -- Present_Expr (Uint3-Sem)
11106 4 => True, -- Discrete_Choices (List4)
11107 5 => False), -- Dcheck_Function (Node5-Sem)
11109 N_Others_Choice =>
11110 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11111 2 => False, -- unused
11112 3 => False, -- unused
11113 4 => False, -- unused
11114 5 => False), -- unused
11116 N_Access_To_Object_Definition =>
11117 (1 => False, -- unused
11118 2 => False, -- unused
11119 3 => False, -- unused
11120 4 => False, -- unused
11121 5 => True), -- Subtype_Indication (Node5)
11123 N_Access_Function_Definition =>
11124 (1 => False, -- unused
11125 2 => False, -- unused
11126 3 => True, -- Parameter_Specifications (List3)
11127 4 => True, -- Result_Definition (Node4)
11128 5 => False), -- unused
11130 N_Access_Procedure_Definition =>
11131 (1 => False, -- unused
11132 2 => False, -- unused
11133 3 => True, -- Parameter_Specifications (List3)
11134 4 => False, -- unused
11135 5 => False), -- unused
11137 N_Access_Definition =>
11138 (1 => False, -- unused
11139 2 => False, -- unused
11140 3 => True, -- Access_To_Subprogram_Definition (Node3)
11141 4 => True, -- Subtype_Mark (Node4)
11142 5 => False), -- unused
11144 N_Incomplete_Type_Declaration =>
11145 (1 => True, -- Defining_Identifier (Node1)
11146 2 => False, -- unused
11147 3 => False, -- unused
11148 4 => True, -- Discriminant_Specifications (List4)
11149 5 => False), -- Premature_Use
11151 N_Explicit_Dereference =>
11152 (1 => False, -- unused
11153 2 => False, -- unused
11154 3 => True, -- Prefix (Node3)
11155 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11156 5 => False), -- Etype (Node5-Sem)
11158 N_Indexed_Component =>
11159 (1 => True, -- Expressions (List1)
11160 2 => False, -- unused
11161 3 => True, -- Prefix (Node3)
11162 4 => False, -- Generalized_Indexing (Node4-Sem)
11163 5 => False), -- Etype (Node5-Sem)
11165 N_Slice =>
11166 (1 => False, -- unused
11167 2 => False, -- unused
11168 3 => True, -- Prefix (Node3)
11169 4 => True, -- Discrete_Range (Node4)
11170 5 => False), -- Etype (Node5-Sem)
11172 N_Selected_Component =>
11173 (1 => False, -- unused
11174 2 => True, -- Selector_Name (Node2)
11175 3 => True, -- Prefix (Node3)
11176 4 => False, -- unused
11177 5 => False), -- Etype (Node5-Sem)
11179 N_Attribute_Reference =>
11180 (1 => True, -- Expressions (List1)
11181 2 => True, -- Attribute_Name (Name2)
11182 3 => True, -- Prefix (Node3)
11183 4 => False, -- Entity (Node4-Sem)
11184 5 => False), -- Etype (Node5-Sem)
11186 N_Aggregate =>
11187 (1 => True, -- Expressions (List1)
11188 2 => True, -- Component_Associations (List2)
11189 3 => False, -- Aggregate_Bounds (Node3-Sem)
11190 4 => False, -- unused
11191 5 => False), -- Etype (Node5-Sem)
11193 N_Component_Association =>
11194 (1 => True, -- Choices (List1)
11195 2 => False, -- Loop_Actions (List2-Sem)
11196 3 => True, -- Expression (Node3)
11197 4 => False, -- unused
11198 5 => False), -- unused
11200 N_Extension_Aggregate =>
11201 (1 => True, -- Expressions (List1)
11202 2 => True, -- Component_Associations (List2)
11203 3 => True, -- Ancestor_Part (Node3)
11204 4 => False, -- unused
11205 5 => False), -- Etype (Node5-Sem)
11207 N_Null =>
11208 (1 => False, -- unused
11209 2 => False, -- unused
11210 3 => False, -- unused
11211 4 => False, -- unused
11212 5 => False), -- Etype (Node5-Sem)
11214 N_And_Then =>
11215 (1 => False, -- Actions (List1-Sem)
11216 2 => True, -- Left_Opnd (Node2)
11217 3 => True, -- Right_Opnd (Node3)
11218 4 => False, -- unused
11219 5 => False), -- Etype (Node5-Sem)
11221 N_Or_Else =>
11222 (1 => False, -- Actions (List1-Sem)
11223 2 => True, -- Left_Opnd (Node2)
11224 3 => True, -- Right_Opnd (Node3)
11225 4 => False, -- unused
11226 5 => False), -- Etype (Node5-Sem)
11228 N_In =>
11229 (1 => False, -- unused
11230 2 => True, -- Left_Opnd (Node2)
11231 3 => True, -- Right_Opnd (Node3)
11232 4 => True, -- Alternatives (List4)
11233 5 => False), -- Etype (Node5-Sem)
11235 N_Not_In =>
11236 (1 => False, -- unused
11237 2 => True, -- Left_Opnd (Node2)
11238 3 => True, -- Right_Opnd (Node3)
11239 4 => True, -- Alternatives (List4)
11240 5 => False), -- Etype (Node5-Sem)
11242 N_Op_And =>
11243 (1 => True, -- Chars (Name1)
11244 2 => True, -- Left_Opnd (Node2)
11245 3 => True, -- Right_Opnd (Node3)
11246 4 => False, -- Entity (Node4-Sem)
11247 5 => False), -- Etype (Node5-Sem)
11249 N_Op_Or =>
11250 (1 => True, -- Chars (Name1)
11251 2 => True, -- Left_Opnd (Node2)
11252 3 => True, -- Right_Opnd (Node3)
11253 4 => False, -- Entity (Node4-Sem)
11254 5 => False), -- Etype (Node5-Sem)
11256 N_Op_Xor =>
11257 (1 => True, -- Chars (Name1)
11258 2 => True, -- Left_Opnd (Node2)
11259 3 => True, -- Right_Opnd (Node3)
11260 4 => False, -- Entity (Node4-Sem)
11261 5 => False), -- Etype (Node5-Sem)
11263 N_Op_Eq =>
11264 (1 => True, -- Chars (Name1)
11265 2 => True, -- Left_Opnd (Node2)
11266 3 => True, -- Right_Opnd (Node3)
11267 4 => False, -- Entity (Node4-Sem)
11268 5 => False), -- Etype (Node5-Sem)
11270 N_Op_Ne =>
11271 (1 => True, -- Chars (Name1)
11272 2 => True, -- Left_Opnd (Node2)
11273 3 => True, -- Right_Opnd (Node3)
11274 4 => False, -- Entity (Node4-Sem)
11275 5 => False), -- Etype (Node5-Sem)
11277 N_Op_Lt =>
11278 (1 => True, -- Chars (Name1)
11279 2 => True, -- Left_Opnd (Node2)
11280 3 => True, -- Right_Opnd (Node3)
11281 4 => False, -- Entity (Node4-Sem)
11282 5 => False), -- Etype (Node5-Sem)
11284 N_Op_Le =>
11285 (1 => True, -- Chars (Name1)
11286 2 => True, -- Left_Opnd (Node2)
11287 3 => True, -- Right_Opnd (Node3)
11288 4 => False, -- Entity (Node4-Sem)
11289 5 => False), -- Etype (Node5-Sem)
11291 N_Op_Gt =>
11292 (1 => True, -- Chars (Name1)
11293 2 => True, -- Left_Opnd (Node2)
11294 3 => True, -- Right_Opnd (Node3)
11295 4 => False, -- Entity (Node4-Sem)
11296 5 => False), -- Etype (Node5-Sem)
11298 N_Op_Ge =>
11299 (1 => True, -- Chars (Name1)
11300 2 => True, -- Left_Opnd (Node2)
11301 3 => True, -- Right_Opnd (Node3)
11302 4 => False, -- Entity (Node4-Sem)
11303 5 => False), -- Etype (Node5-Sem)
11305 N_Op_Add =>
11306 (1 => True, -- Chars (Name1)
11307 2 => True, -- Left_Opnd (Node2)
11308 3 => True, -- Right_Opnd (Node3)
11309 4 => False, -- Entity (Node4-Sem)
11310 5 => False), -- Etype (Node5-Sem)
11312 N_Op_Subtract =>
11313 (1 => True, -- Chars (Name1)
11314 2 => True, -- Left_Opnd (Node2)
11315 3 => True, -- Right_Opnd (Node3)
11316 4 => False, -- Entity (Node4-Sem)
11317 5 => False), -- Etype (Node5-Sem)
11319 N_Op_Concat =>
11320 (1 => True, -- Chars (Name1)
11321 2 => True, -- Left_Opnd (Node2)
11322 3 => True, -- Right_Opnd (Node3)
11323 4 => False, -- Entity (Node4-Sem)
11324 5 => False), -- Etype (Node5-Sem)
11326 N_Op_Multiply =>
11327 (1 => True, -- Chars (Name1)
11328 2 => True, -- Left_Opnd (Node2)
11329 3 => True, -- Right_Opnd (Node3)
11330 4 => False, -- Entity (Node4-Sem)
11331 5 => False), -- Etype (Node5-Sem)
11333 N_Op_Divide =>
11334 (1 => True, -- Chars (Name1)
11335 2 => True, -- Left_Opnd (Node2)
11336 3 => True, -- Right_Opnd (Node3)
11337 4 => False, -- Entity (Node4-Sem)
11338 5 => False), -- Etype (Node5-Sem)
11340 N_Op_Mod =>
11341 (1 => True, -- Chars (Name1)
11342 2 => True, -- Left_Opnd (Node2)
11343 3 => True, -- Right_Opnd (Node3)
11344 4 => False, -- Entity (Node4-Sem)
11345 5 => False), -- Etype (Node5-Sem)
11347 N_Op_Rem =>
11348 (1 => True, -- Chars (Name1)
11349 2 => True, -- Left_Opnd (Node2)
11350 3 => True, -- Right_Opnd (Node3)
11351 4 => False, -- Entity (Node4-Sem)
11352 5 => False), -- Etype (Node5-Sem)
11354 N_Op_Expon =>
11355 (1 => True, -- Chars (Name1)
11356 2 => True, -- Left_Opnd (Node2)
11357 3 => True, -- Right_Opnd (Node3)
11358 4 => False, -- Entity (Node4-Sem)
11359 5 => False), -- Etype (Node5-Sem)
11361 N_Op_Plus =>
11362 (1 => True, -- Chars (Name1)
11363 2 => False, -- unused
11364 3 => True, -- Right_Opnd (Node3)
11365 4 => False, -- Entity (Node4-Sem)
11366 5 => False), -- Etype (Node5-Sem)
11368 N_Op_Minus =>
11369 (1 => True, -- Chars (Name1)
11370 2 => False, -- unused
11371 3 => True, -- Right_Opnd (Node3)
11372 4 => False, -- Entity (Node4-Sem)
11373 5 => False), -- Etype (Node5-Sem)
11375 N_Op_Abs =>
11376 (1 => True, -- Chars (Name1)
11377 2 => False, -- unused
11378 3 => True, -- Right_Opnd (Node3)
11379 4 => False, -- Entity (Node4-Sem)
11380 5 => False), -- Etype (Node5-Sem)
11382 N_Op_Not =>
11383 (1 => True, -- Chars (Name1)
11384 2 => False, -- unused
11385 3 => True, -- Right_Opnd (Node3)
11386 4 => False, -- Entity (Node4-Sem)
11387 5 => False), -- Etype (Node5-Sem)
11389 N_Type_Conversion =>
11390 (1 => False, -- unused
11391 2 => False, -- unused
11392 3 => True, -- Expression (Node3)
11393 4 => True, -- Subtype_Mark (Node4)
11394 5 => False), -- Etype (Node5-Sem)
11396 N_Qualified_Expression =>
11397 (1 => False, -- unused
11398 2 => False, -- unused
11399 3 => True, -- Expression (Node3)
11400 4 => True, -- Subtype_Mark (Node4)
11401 5 => False), -- Etype (Node5-Sem)
11403 N_Quantified_Expression =>
11404 (1 => True, -- Condition (Node1)
11405 2 => True, -- Iterator_Specification
11406 3 => False, -- unused
11407 4 => True, -- Loop_Parameter_Specification (Node4)
11408 5 => False), -- Etype (Node5-Sem)
11410 N_Allocator =>
11411 (1 => False, -- Storage_Pool (Node1-Sem)
11412 2 => False, -- Procedure_To_Call (Node2-Sem)
11413 3 => True, -- Expression (Node3)
11414 4 => True, -- Subpool_Handle_Name (Node4)
11415 5 => False), -- Etype (Node5-Sem)
11417 N_Null_Statement =>
11418 (1 => False, -- unused
11419 2 => False, -- unused
11420 3 => False, -- unused
11421 4 => False, -- unused
11422 5 => False), -- unused
11424 N_Label =>
11425 (1 => True, -- Identifier (Node1)
11426 2 => False, -- unused
11427 3 => False, -- unused
11428 4 => False, -- unused
11429 5 => False), -- unused
11431 N_Assignment_Statement =>
11432 (1 => False, -- unused
11433 2 => True, -- Name (Node2)
11434 3 => True, -- Expression (Node3)
11435 4 => False, -- unused
11436 5 => False), -- unused
11438 N_If_Statement =>
11439 (1 => True, -- Condition (Node1)
11440 2 => True, -- Then_Statements (List2)
11441 3 => True, -- Elsif_Parts (List3)
11442 4 => True, -- Else_Statements (List4)
11443 5 => True), -- End_Span (Uint5)
11445 N_Elsif_Part =>
11446 (1 => True, -- Condition (Node1)
11447 2 => True, -- Then_Statements (List2)
11448 3 => False, -- Condition_Actions (List3-Sem)
11449 4 => False, -- unused
11450 5 => False), -- unused
11452 N_Case_Expression =>
11453 (1 => False, -- unused
11454 2 => False, -- unused
11455 3 => True, -- Expression (Node3)
11456 4 => True, -- Alternatives (List4)
11457 5 => False), -- unused
11459 N_Case_Expression_Alternative =>
11460 (1 => False, -- Actions (List1-Sem)
11461 2 => False, -- unused
11462 3 => True, -- Statements (List3)
11463 4 => True, -- Expression (Node4)
11464 5 => False), -- unused
11466 N_Case_Statement =>
11467 (1 => False, -- unused
11468 2 => False, -- unused
11469 3 => True, -- Expression (Node3)
11470 4 => True, -- Alternatives (List4)
11471 5 => True), -- End_Span (Uint5)
11473 N_Case_Statement_Alternative =>
11474 (1 => False, -- unused
11475 2 => False, -- unused
11476 3 => True, -- Statements (List3)
11477 4 => True, -- Discrete_Choices (List4)
11478 5 => False), -- unused
11480 N_Loop_Statement =>
11481 (1 => True, -- Identifier (Node1)
11482 2 => True, -- Iteration_Scheme (Node2)
11483 3 => True, -- Statements (List3)
11484 4 => True, -- End_Label (Node4)
11485 5 => False), -- unused
11487 N_Iteration_Scheme =>
11488 (1 => True, -- Condition (Node1)
11489 2 => True, -- Iterator_Specification (Node2)
11490 3 => False, -- Condition_Actions (List3-Sem)
11491 4 => True, -- Loop_Parameter_Specification (Node4)
11492 5 => False), -- unused
11494 N_Loop_Parameter_Specification =>
11495 (1 => True, -- Defining_Identifier (Node1)
11496 2 => False, -- unused
11497 3 => False, -- unused
11498 4 => True, -- Discrete_Subtype_Definition (Node4)
11499 5 => False), -- unused
11501 N_Iterator_Specification =>
11502 (1 => True, -- Defining_Identifier (Node1)
11503 2 => True, -- Name (Node2)
11504 3 => False, -- Unused
11505 4 => False, -- Unused
11506 5 => True), -- Subtype_Indication (Node5)
11508 N_Block_Statement =>
11509 (1 => True, -- Identifier (Node1)
11510 2 => True, -- Declarations (List2)
11511 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11512 4 => True, -- Handled_Statement_Sequence (Node4)
11513 5 => False), -- unused
11515 N_Exit_Statement =>
11516 (1 => True, -- Condition (Node1)
11517 2 => True, -- Name (Node2)
11518 3 => False, -- unused
11519 4 => False, -- unused
11520 5 => False), -- unused
11522 N_Goto_Statement =>
11523 (1 => False, -- unused
11524 2 => True, -- Name (Node2)
11525 3 => False, -- unused
11526 4 => False, -- unused
11527 5 => False), -- unused
11529 N_Subprogram_Declaration =>
11530 (1 => True, -- Specification (Node1)
11531 2 => False, -- unused
11532 3 => False, -- Body_To_Inline (Node3-Sem)
11533 4 => False, -- Parent_Spec (Node4-Sem)
11534 5 => False), -- Corresponding_Body (Node5-Sem)
11536 N_Abstract_Subprogram_Declaration =>
11537 (1 => True, -- Specification (Node1)
11538 2 => False, -- unused
11539 3 => False, -- unused
11540 4 => False, -- unused
11541 5 => False), -- unused
11543 N_Function_Specification =>
11544 (1 => True, -- Defining_Unit_Name (Node1)
11545 2 => False, -- unused
11546 3 => True, -- Parameter_Specifications (List3)
11547 4 => True, -- Result_Definition (Node4)
11548 5 => False), -- Generic_Parent (Node5-Sem)
11550 N_Procedure_Specification =>
11551 (1 => True, -- Defining_Unit_Name (Node1)
11552 2 => False, -- unused
11553 3 => True, -- Parameter_Specifications (List3)
11554 4 => False, -- unused
11555 5 => False), -- Generic_Parent (Node5-Sem)
11557 N_Designator =>
11558 (1 => True, -- Identifier (Node1)
11559 2 => True, -- Name (Node2)
11560 3 => False, -- unused
11561 4 => False, -- unused
11562 5 => False), -- unused
11564 N_Defining_Program_Unit_Name =>
11565 (1 => True, -- Defining_Identifier (Node1)
11566 2 => True, -- Name (Node2)
11567 3 => False, -- unused
11568 4 => False, -- unused
11569 5 => False), -- unused
11571 N_Operator_Symbol =>
11572 (1 => True, -- Chars (Name1)
11573 2 => False, -- unused
11574 3 => True, -- Strval (Str3)
11575 4 => False, -- Entity (Node4-Sem)
11576 5 => False), -- Etype (Node5-Sem)
11578 N_Defining_Operator_Symbol =>
11579 (1 => True, -- Chars (Name1)
11580 2 => False, -- Next_Entity (Node2-Sem)
11581 3 => False, -- Scope (Node3-Sem)
11582 4 => False, -- unused
11583 5 => False), -- Etype (Node5-Sem)
11585 N_Parameter_Specification =>
11586 (1 => True, -- Defining_Identifier (Node1)
11587 2 => True, -- Parameter_Type (Node2)
11588 3 => True, -- Expression (Node3)
11589 4 => False, -- unused
11590 5 => False), -- Default_Expression (Node5-Sem)
11592 N_Subprogram_Body =>
11593 (1 => True, -- Specification (Node1)
11594 2 => True, -- Declarations (List2)
11595 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11596 4 => True, -- Handled_Statement_Sequence (Node4)
11597 5 => False), -- Corresponding_Spec (Node5-Sem)
11599 N_Expression_Function =>
11600 (1 => True, -- Specification (Node1)
11601 2 => False, -- unused
11602 3 => True, -- Expression (Node3)
11603 4 => False, -- unused
11604 5 => False), -- unused
11606 N_Procedure_Call_Statement =>
11607 (1 => False, -- Controlling_Argument (Node1-Sem)
11608 2 => True, -- Name (Node2)
11609 3 => True, -- Parameter_Associations (List3)
11610 4 => False, -- First_Named_Actual (Node4-Sem)
11611 5 => False), -- Etype (Node5-Sem)
11613 N_Function_Call =>
11614 (1 => False, -- Controlling_Argument (Node1-Sem)
11615 2 => True, -- Name (Node2)
11616 3 => True, -- Parameter_Associations (List3)
11617 4 => False, -- First_Named_Actual (Node4-Sem)
11618 5 => False), -- Etype (Node5-Sem)
11620 N_Parameter_Association =>
11621 (1 => False, -- unused
11622 2 => True, -- Selector_Name (Node2)
11623 3 => True, -- Explicit_Actual_Parameter (Node3)
11624 4 => False, -- Next_Named_Actual (Node4-Sem)
11625 5 => False), -- unused
11627 N_Simple_Return_Statement =>
11628 (1 => False, -- Storage_Pool (Node1-Sem)
11629 2 => False, -- Procedure_To_Call (Node2-Sem)
11630 3 => True, -- Expression (Node3)
11631 4 => False, -- unused
11632 5 => False), -- Return_Statement_Entity (Node5-Sem)
11634 N_Extended_Return_Statement =>
11635 (1 => False, -- Storage_Pool (Node1-Sem)
11636 2 => False, -- Procedure_To_Call (Node2-Sem)
11637 3 => True, -- Return_Object_Declarations (List3)
11638 4 => True, -- Handled_Statement_Sequence (Node4)
11639 5 => False), -- Return_Statement_Entity (Node5-Sem)
11641 N_Package_Declaration =>
11642 (1 => True, -- Specification (Node1)
11643 2 => False, -- unused
11644 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11645 4 => False, -- Parent_Spec (Node4-Sem)
11646 5 => False), -- Corresponding_Body (Node5-Sem)
11648 N_Package_Specification =>
11649 (1 => True, -- Defining_Unit_Name (Node1)
11650 2 => True, -- Visible_Declarations (List2)
11651 3 => True, -- Private_Declarations (List3)
11652 4 => True, -- End_Label (Node4)
11653 5 => False), -- Generic_Parent (Node5-Sem)
11655 N_Package_Body =>
11656 (1 => True, -- Defining_Unit_Name (Node1)
11657 2 => True, -- Declarations (List2)
11658 3 => False, -- unused
11659 4 => True, -- Handled_Statement_Sequence (Node4)
11660 5 => False), -- Corresponding_Spec (Node5-Sem)
11662 N_Private_Type_Declaration =>
11663 (1 => True, -- Defining_Identifier (Node1)
11664 2 => False, -- unused
11665 3 => False, -- unused
11666 4 => True, -- Discriminant_Specifications (List4)
11667 5 => False), -- unused
11669 N_Private_Extension_Declaration =>
11670 (1 => True, -- Defining_Identifier (Node1)
11671 2 => True, -- Interface_List (List2)
11672 3 => False, -- unused
11673 4 => True, -- Discriminant_Specifications (List4)
11674 5 => True), -- Subtype_Indication (Node5)
11676 N_Use_Package_Clause =>
11677 (1 => False, -- unused
11678 2 => True, -- Names (List2)
11679 3 => False, -- Next_Use_Clause (Node3-Sem)
11680 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11681 5 => False), -- unused
11683 N_Use_Type_Clause =>
11684 (1 => False, -- unused
11685 2 => True, -- Subtype_Marks (List2)
11686 3 => False, -- Next_Use_Clause (Node3-Sem)
11687 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11688 5 => False), -- unused
11690 N_Object_Renaming_Declaration =>
11691 (1 => True, -- Defining_Identifier (Node1)
11692 2 => True, -- Name (Node2)
11693 3 => True, -- Access_Definition (Node3)
11694 4 => True, -- Subtype_Mark (Node4)
11695 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11697 N_Exception_Renaming_Declaration =>
11698 (1 => True, -- Defining_Identifier (Node1)
11699 2 => True, -- Name (Node2)
11700 3 => False, -- unused
11701 4 => False, -- unused
11702 5 => False), -- unused
11704 N_Package_Renaming_Declaration =>
11705 (1 => True, -- Defining_Unit_Name (Node1)
11706 2 => True, -- Name (Node2)
11707 3 => False, -- unused
11708 4 => False, -- Parent_Spec (Node4-Sem)
11709 5 => False), -- unused
11711 N_Subprogram_Renaming_Declaration =>
11712 (1 => True, -- Specification (Node1)
11713 2 => True, -- Name (Node2)
11714 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11715 4 => False, -- Parent_Spec (Node4-Sem)
11716 5 => False), -- Corresponding_Spec (Node5-Sem)
11718 N_Generic_Package_Renaming_Declaration =>
11719 (1 => True, -- Defining_Unit_Name (Node1)
11720 2 => True, -- Name (Node2)
11721 3 => False, -- unused
11722 4 => False, -- Parent_Spec (Node4-Sem)
11723 5 => False), -- unused
11725 N_Generic_Procedure_Renaming_Declaration =>
11726 (1 => True, -- Defining_Unit_Name (Node1)
11727 2 => True, -- Name (Node2)
11728 3 => False, -- unused
11729 4 => False, -- Parent_Spec (Node4-Sem)
11730 5 => False), -- unused
11732 N_Generic_Function_Renaming_Declaration =>
11733 (1 => True, -- Defining_Unit_Name (Node1)
11734 2 => True, -- Name (Node2)
11735 3 => False, -- unused
11736 4 => False, -- Parent_Spec (Node4-Sem)
11737 5 => False), -- unused
11739 N_Task_Type_Declaration =>
11740 (1 => True, -- Defining_Identifier (Node1)
11741 2 => True, -- Interface_List (List2)
11742 3 => True, -- Task_Definition (Node3)
11743 4 => True, -- Discriminant_Specifications (List4)
11744 5 => False), -- Corresponding_Body (Node5-Sem)
11746 N_Single_Task_Declaration =>
11747 (1 => True, -- Defining_Identifier (Node1)
11748 2 => True, -- Interface_List (List2)
11749 3 => True, -- Task_Definition (Node3)
11750 4 => False, -- unused
11751 5 => False), -- unused
11753 N_Task_Definition =>
11754 (1 => False, -- unused
11755 2 => True, -- Visible_Declarations (List2)
11756 3 => True, -- Private_Declarations (List3)
11757 4 => True, -- End_Label (Node4)
11758 5 => False), -- unused
11760 N_Task_Body =>
11761 (1 => True, -- Defining_Identifier (Node1)
11762 2 => True, -- Declarations (List2)
11763 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11764 4 => True, -- Handled_Statement_Sequence (Node4)
11765 5 => False), -- Corresponding_Spec (Node5-Sem)
11767 N_Protected_Type_Declaration =>
11768 (1 => True, -- Defining_Identifier (Node1)
11769 2 => True, -- Interface_List (List2)
11770 3 => True, -- Protected_Definition (Node3)
11771 4 => True, -- Discriminant_Specifications (List4)
11772 5 => False), -- Corresponding_Body (Node5-Sem)
11774 N_Single_Protected_Declaration =>
11775 (1 => True, -- Defining_Identifier (Node1)
11776 2 => True, -- Interface_List (List2)
11777 3 => True, -- Protected_Definition (Node3)
11778 4 => False, -- unused
11779 5 => False), -- unused
11781 N_Protected_Definition =>
11782 (1 => False, -- unused
11783 2 => True, -- Visible_Declarations (List2)
11784 3 => True, -- Private_Declarations (List3)
11785 4 => True, -- End_Label (Node4)
11786 5 => False), -- unused
11788 N_Protected_Body =>
11789 (1 => True, -- Defining_Identifier (Node1)
11790 2 => True, -- Declarations (List2)
11791 3 => False, -- unused
11792 4 => True, -- End_Label (Node4)
11793 5 => False), -- Corresponding_Spec (Node5-Sem)
11795 N_Entry_Declaration =>
11796 (1 => True, -- Defining_Identifier (Node1)
11797 2 => False, -- unused
11798 3 => True, -- Parameter_Specifications (List3)
11799 4 => True, -- Discrete_Subtype_Definition (Node4)
11800 5 => False), -- Corresponding_Body (Node5-Sem)
11802 N_Accept_Statement =>
11803 (1 => True, -- Entry_Direct_Name (Node1)
11804 2 => True, -- Declarations (List2)
11805 3 => True, -- Parameter_Specifications (List3)
11806 4 => True, -- Handled_Statement_Sequence (Node4)
11807 5 => True), -- Entry_Index (Node5)
11809 N_Entry_Body =>
11810 (1 => True, -- Defining_Identifier (Node1)
11811 2 => True, -- Declarations (List2)
11812 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11813 4 => True, -- Handled_Statement_Sequence (Node4)
11814 5 => True), -- Entry_Body_Formal_Part (Node5)
11816 N_Entry_Body_Formal_Part =>
11817 (1 => True, -- Condition (Node1)
11818 2 => False, -- unused
11819 3 => True, -- Parameter_Specifications (List3)
11820 4 => True, -- Entry_Index_Specification (Node4)
11821 5 => False), -- unused
11823 N_Entry_Index_Specification =>
11824 (1 => True, -- Defining_Identifier (Node1)
11825 2 => False, -- unused
11826 3 => False, -- unused
11827 4 => True, -- Discrete_Subtype_Definition (Node4)
11828 5 => False), -- unused
11830 N_Entry_Call_Statement =>
11831 (1 => False, -- unused
11832 2 => True, -- Name (Node2)
11833 3 => True, -- Parameter_Associations (List3)
11834 4 => False, -- First_Named_Actual (Node4-Sem)
11835 5 => False), -- unused
11837 N_Requeue_Statement =>
11838 (1 => False, -- unused
11839 2 => True, -- Name (Node2)
11840 3 => False, -- unused
11841 4 => False, -- unused
11842 5 => False), -- unused
11844 N_Delay_Until_Statement =>
11845 (1 => False, -- unused
11846 2 => False, -- unused
11847 3 => True, -- Expression (Node3)
11848 4 => False, -- unused
11849 5 => False), -- unused
11851 N_Delay_Relative_Statement =>
11852 (1 => False, -- unused
11853 2 => False, -- unused
11854 3 => True, -- Expression (Node3)
11855 4 => False, -- unused
11856 5 => False), -- unused
11858 N_Selective_Accept =>
11859 (1 => True, -- Select_Alternatives (List1)
11860 2 => False, -- unused
11861 3 => False, -- unused
11862 4 => True, -- Else_Statements (List4)
11863 5 => False), -- unused
11865 N_Accept_Alternative =>
11866 (1 => True, -- Condition (Node1)
11867 2 => True, -- Accept_Statement (Node2)
11868 3 => True, -- Statements (List3)
11869 4 => True, -- Pragmas_Before (List4)
11870 5 => False), -- Accept_Handler_Records (List5-Sem)
11872 N_Delay_Alternative =>
11873 (1 => True, -- Condition (Node1)
11874 2 => True, -- Delay_Statement (Node2)
11875 3 => True, -- Statements (List3)
11876 4 => True, -- Pragmas_Before (List4)
11877 5 => False), -- unused
11879 N_Terminate_Alternative =>
11880 (1 => True, -- Condition (Node1)
11881 2 => False, -- unused
11882 3 => False, -- unused
11883 4 => True, -- Pragmas_Before (List4)
11884 5 => True), -- Pragmas_After (List5)
11886 N_Timed_Entry_Call =>
11887 (1 => True, -- Entry_Call_Alternative (Node1)
11888 2 => False, -- unused
11889 3 => False, -- unused
11890 4 => True, -- Delay_Alternative (Node4)
11891 5 => False), -- unused
11893 N_Entry_Call_Alternative =>
11894 (1 => True, -- Entry_Call_Statement (Node1)
11895 2 => False, -- unused
11896 3 => True, -- Statements (List3)
11897 4 => True, -- Pragmas_Before (List4)
11898 5 => False), -- unused
11900 N_Conditional_Entry_Call =>
11901 (1 => True, -- Entry_Call_Alternative (Node1)
11902 2 => False, -- unused
11903 3 => False, -- unused
11904 4 => True, -- Else_Statements (List4)
11905 5 => False), -- unused
11907 N_Asynchronous_Select =>
11908 (1 => True, -- Triggering_Alternative (Node1)
11909 2 => True, -- Abortable_Part (Node2)
11910 3 => False, -- unused
11911 4 => False, -- unused
11912 5 => False), -- unused
11914 N_Triggering_Alternative =>
11915 (1 => True, -- Triggering_Statement (Node1)
11916 2 => False, -- unused
11917 3 => True, -- Statements (List3)
11918 4 => True, -- Pragmas_Before (List4)
11919 5 => False), -- unused
11921 N_Abortable_Part =>
11922 (1 => False, -- unused
11923 2 => False, -- unused
11924 3 => True, -- Statements (List3)
11925 4 => False, -- unused
11926 5 => False), -- unused
11928 N_Abort_Statement =>
11929 (1 => False, -- unused
11930 2 => True, -- Names (List2)
11931 3 => False, -- unused
11932 4 => False, -- unused
11933 5 => False), -- unused
11935 N_Compilation_Unit =>
11936 (1 => True, -- Context_Items (List1)
11937 2 => True, -- Unit (Node2)
11938 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11939 4 => False, -- Library_Unit (Node4-Sem)
11940 5 => True), -- Aux_Decls_Node (Node5)
11942 N_Compilation_Unit_Aux =>
11943 (1 => True, -- Actions (List1)
11944 2 => True, -- Declarations (List2)
11945 3 => False, -- Default_Storage_Pool (Node3)
11946 4 => True, -- Config_Pragmas (List4)
11947 5 => True), -- Pragmas_After (List5)
11949 N_With_Clause =>
11950 (1 => False, -- unused
11951 2 => True, -- Name (Node2)
11952 3 => False, -- unused
11953 4 => False, -- Library_Unit (Node4-Sem)
11954 5 => False), -- Corresponding_Spec (Node5-Sem)
11956 N_Subprogram_Body_Stub =>
11957 (1 => True, -- Specification (Node1)
11958 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11959 3 => False, -- unused
11960 4 => False, -- Library_Unit (Node4-Sem)
11961 5 => False), -- Corresponding_Body (Node5-Sem)
11963 N_Package_Body_Stub =>
11964 (1 => True, -- Defining_Identifier (Node1)
11965 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11966 3 => False, -- unused
11967 4 => False, -- Library_Unit (Node4-Sem)
11968 5 => False), -- Corresponding_Body (Node5-Sem)
11970 N_Task_Body_Stub =>
11971 (1 => True, -- Defining_Identifier (Node1)
11972 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11973 3 => False, -- unused
11974 4 => False, -- Library_Unit (Node4-Sem)
11975 5 => False), -- Corresponding_Body (Node5-Sem)
11977 N_Protected_Body_Stub =>
11978 (1 => True, -- Defining_Identifier (Node1)
11979 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11980 3 => False, -- unused
11981 4 => False, -- Library_Unit (Node4-Sem)
11982 5 => False), -- Corresponding_Body (Node5-Sem)
11984 N_Subunit =>
11985 (1 => True, -- Proper_Body (Node1)
11986 2 => True, -- Name (Node2)
11987 3 => False, -- Corresponding_Stub (Node3-Sem)
11988 4 => False, -- unused
11989 5 => False), -- unused
11991 N_Exception_Declaration =>
11992 (1 => True, -- Defining_Identifier (Node1)
11993 2 => False, -- unused
11994 3 => False, -- Expression (Node3-Sem)
11995 4 => False, -- unused
11996 5 => False), -- unused
11998 N_Handled_Sequence_Of_Statements =>
11999 (1 => True, -- At_End_Proc (Node1)
12000 2 => False, -- First_Real_Statement (Node2-Sem)
12001 3 => True, -- Statements (List3)
12002 4 => True, -- End_Label (Node4)
12003 5 => True), -- Exception_Handlers (List5)
12005 N_Exception_Handler =>
12006 (1 => False, -- Local_Raise_Statements (Elist1)
12007 2 => True, -- Choice_Parameter (Node2)
12008 3 => True, -- Statements (List3)
12009 4 => True, -- Exception_Choices (List4)
12010 5 => False), -- Exception_Label (Node5)
12012 N_Raise_Statement =>
12013 (1 => False, -- unused
12014 2 => True, -- Name (Node2)
12015 3 => True, -- Expression (Node3)
12016 4 => False, -- unused
12017 5 => False), -- unused
12019 N_Raise_Expression =>
12020 (1 => False, -- unused
12021 2 => True, -- Name (Node2)
12022 3 => True, -- Expression (Node3)
12023 4 => False, -- unused
12024 5 => False), -- Etype (Node5-Sem)
12026 N_Generic_Subprogram_Declaration =>
12027 (1 => True, -- Specification (Node1)
12028 2 => True, -- Generic_Formal_Declarations (List2)
12029 3 => False, -- unused
12030 4 => False, -- Parent_Spec (Node4-Sem)
12031 5 => False), -- Corresponding_Body (Node5-Sem)
12033 N_Generic_Package_Declaration =>
12034 (1 => True, -- Specification (Node1)
12035 2 => True, -- Generic_Formal_Declarations (List2)
12036 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12037 4 => False, -- Parent_Spec (Node4-Sem)
12038 5 => False), -- Corresponding_Body (Node5-Sem)
12040 N_Package_Instantiation =>
12041 (1 => True, -- Defining_Unit_Name (Node1)
12042 2 => True, -- Name (Node2)
12043 3 => True, -- Generic_Associations (List3)
12044 4 => False, -- Parent_Spec (Node4-Sem)
12045 5 => False), -- Instance_Spec (Node5-Sem)
12047 N_Procedure_Instantiation =>
12048 (1 => True, -- Defining_Unit_Name (Node1)
12049 2 => True, -- Name (Node2)
12050 3 => True, -- Generic_Associations (List3)
12051 4 => False, -- Parent_Spec (Node4-Sem)
12052 5 => False), -- Instance_Spec (Node5-Sem)
12054 N_Function_Instantiation =>
12055 (1 => True, -- Defining_Unit_Name (Node1)
12056 2 => True, -- Name (Node2)
12057 3 => True, -- Generic_Associations (List3)
12058 4 => False, -- Parent_Spec (Node4-Sem)
12059 5 => False), -- Instance_Spec (Node5-Sem)
12061 N_Generic_Association =>
12062 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12063 2 => True, -- Selector_Name (Node2)
12064 3 => False, -- unused
12065 4 => False, -- unused
12066 5 => False), -- unused
12068 N_Formal_Object_Declaration =>
12069 (1 => True, -- Defining_Identifier (Node1)
12070 2 => False, -- unused
12071 3 => True, -- Access_Definition (Node3)
12072 4 => True, -- Subtype_Mark (Node4)
12073 5 => True), -- Default_Expression (Node5)
12075 N_Formal_Type_Declaration =>
12076 (1 => True, -- Defining_Identifier (Node1)
12077 2 => False, -- unused
12078 3 => True, -- Formal_Type_Definition (Node3)
12079 4 => True, -- Discriminant_Specifications (List4)
12080 5 => False), -- unused
12082 N_Formal_Private_Type_Definition =>
12083 (1 => False, -- unused
12084 2 => False, -- unused
12085 3 => False, -- unused
12086 4 => False, -- unused
12087 5 => False), -- unused
12089 N_Formal_Incomplete_Type_Definition =>
12090 (1 => False, -- unused
12091 2 => False, -- unused
12092 3 => False, -- unused
12093 4 => False, -- unused
12094 5 => False), -- unused
12096 N_Formal_Derived_Type_Definition =>
12097 (1 => False, -- unused
12098 2 => True, -- Interface_List (List2)
12099 3 => False, -- unused
12100 4 => True, -- Subtype_Mark (Node4)
12101 5 => False), -- unused
12103 N_Formal_Discrete_Type_Definition =>
12104 (1 => False, -- unused
12105 2 => False, -- unused
12106 3 => False, -- unused
12107 4 => False, -- unused
12108 5 => False), -- unused
12110 N_Formal_Signed_Integer_Type_Definition =>
12111 (1 => False, -- unused
12112 2 => False, -- unused
12113 3 => False, -- unused
12114 4 => False, -- unused
12115 5 => False), -- unused
12117 N_Formal_Modular_Type_Definition =>
12118 (1 => False, -- unused
12119 2 => False, -- unused
12120 3 => False, -- unused
12121 4 => False, -- unused
12122 5 => False), -- unused
12124 N_Formal_Floating_Point_Definition =>
12125 (1 => False, -- unused
12126 2 => False, -- unused
12127 3 => False, -- unused
12128 4 => False, -- unused
12129 5 => False), -- unused
12131 N_Formal_Ordinary_Fixed_Point_Definition =>
12132 (1 => False, -- unused
12133 2 => False, -- unused
12134 3 => False, -- unused
12135 4 => False, -- unused
12136 5 => False), -- unused
12138 N_Formal_Decimal_Fixed_Point_Definition =>
12139 (1 => False, -- unused
12140 2 => False, -- unused
12141 3 => False, -- unused
12142 4 => False, -- unused
12143 5 => False), -- unused
12145 N_Formal_Concrete_Subprogram_Declaration =>
12146 (1 => True, -- Specification (Node1)
12147 2 => True, -- Default_Name (Node2)
12148 3 => False, -- unused
12149 4 => False, -- unused
12150 5 => False), -- unused
12152 N_Formal_Abstract_Subprogram_Declaration =>
12153 (1 => True, -- Specification (Node1)
12154 2 => True, -- Default_Name (Node2)
12155 3 => False, -- unused
12156 4 => False, -- unused
12157 5 => False), -- unused
12159 N_Formal_Package_Declaration =>
12160 (1 => True, -- Defining_Identifier (Node1)
12161 2 => True, -- Name (Node2)
12162 3 => True, -- Generic_Associations (List3)
12163 4 => False, -- unused
12164 5 => False), -- Instance_Spec (Node5-Sem)
12166 N_Attribute_Definition_Clause =>
12167 (1 => True, -- Chars (Name1)
12168 2 => True, -- Name (Node2)
12169 3 => True, -- Expression (Node3)
12170 4 => False, -- unused
12171 5 => False), -- Next_Rep_Item (Node5-Sem)
12173 N_Aspect_Specification =>
12174 (1 => True, -- Identifier (Node1)
12175 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12176 3 => True, -- Expression (Node3)
12177 4 => False, -- Entity (Node4-Sem)
12178 5 => False), -- Next_Rep_Item (Node5-Sem)
12180 N_Enumeration_Representation_Clause =>
12181 (1 => True, -- Identifier (Node1)
12182 2 => False, -- unused
12183 3 => True, -- Array_Aggregate (Node3)
12184 4 => False, -- unused
12185 5 => False), -- Next_Rep_Item (Node5-Sem)
12187 N_Record_Representation_Clause =>
12188 (1 => True, -- Identifier (Node1)
12189 2 => True, -- Mod_Clause (Node2)
12190 3 => True, -- Component_Clauses (List3)
12191 4 => False, -- unused
12192 5 => False), -- Next_Rep_Item (Node5-Sem)
12194 N_Component_Clause =>
12195 (1 => True, -- Component_Name (Node1)
12196 2 => True, -- Position (Node2)
12197 3 => True, -- First_Bit (Node3)
12198 4 => True, -- Last_Bit (Node4)
12199 5 => False), -- unused
12201 N_Code_Statement =>
12202 (1 => False, -- unused
12203 2 => False, -- unused
12204 3 => True, -- Expression (Node3)
12205 4 => False, -- unused
12206 5 => False), -- unused
12208 N_Op_Rotate_Left =>
12209 (1 => True, -- Chars (Name1)
12210 2 => True, -- Left_Opnd (Node2)
12211 3 => True, -- Right_Opnd (Node3)
12212 4 => False, -- Entity (Node4-Sem)
12213 5 => False), -- Etype (Node5-Sem)
12215 N_Op_Rotate_Right =>
12216 (1 => True, -- Chars (Name1)
12217 2 => True, -- Left_Opnd (Node2)
12218 3 => True, -- Right_Opnd (Node3)
12219 4 => False, -- Entity (Node4-Sem)
12220 5 => False), -- Etype (Node5-Sem)
12222 N_Op_Shift_Left =>
12223 (1 => True, -- Chars (Name1)
12224 2 => True, -- Left_Opnd (Node2)
12225 3 => True, -- Right_Opnd (Node3)
12226 4 => False, -- Entity (Node4-Sem)
12227 5 => False), -- Etype (Node5-Sem)
12229 N_Op_Shift_Right_Arithmetic =>
12230 (1 => True, -- Chars (Name1)
12231 2 => True, -- Left_Opnd (Node2)
12232 3 => True, -- Right_Opnd (Node3)
12233 4 => False, -- Entity (Node4-Sem)
12234 5 => False), -- Etype (Node5-Sem)
12236 N_Op_Shift_Right =>
12237 (1 => True, -- Chars (Name1)
12238 2 => True, -- Left_Opnd (Node2)
12239 3 => True, -- Right_Opnd (Node3)
12240 4 => False, -- Entity (Node4-Sem)
12241 5 => False), -- Etype (Node5-Sem)
12243 N_Delta_Constraint =>
12244 (1 => False, -- unused
12245 2 => False, -- unused
12246 3 => True, -- Delta_Expression (Node3)
12247 4 => True, -- Range_Constraint (Node4)
12248 5 => False), -- unused
12250 N_At_Clause =>
12251 (1 => True, -- Identifier (Node1)
12252 2 => False, -- unused
12253 3 => True, -- Expression (Node3)
12254 4 => False, -- unused
12255 5 => False), -- unused
12257 N_Mod_Clause =>
12258 (1 => False, -- unused
12259 2 => False, -- unused
12260 3 => True, -- Expression (Node3)
12261 4 => True, -- Pragmas_Before (List4)
12262 5 => False), -- unused
12264 N_If_Expression =>
12265 (1 => True, -- Expressions (List1)
12266 2 => False, -- Then_Actions (List2-Sem)
12267 3 => False, -- Else_Actions (List3-Sem)
12268 4 => False, -- unused
12269 5 => False), -- Etype (Node5-Sem)
12271 N_Compound_Statement =>
12272 (1 => True, -- Actions (List1)
12273 2 => False, -- unused
12274 3 => False, -- unused
12275 4 => False, -- unused
12276 5 => False), -- unused
12278 N_Contract =>
12279 (1 => False, -- Pre_Post_Conditions (Node1)
12280 2 => False, -- Contract_Test_Cases (Node2)
12281 3 => False, -- Classifications (Node3)
12282 4 => False, -- unused
12283 5 => False), -- unused
12285 N_Expanded_Name =>
12286 (1 => True, -- Chars (Name1)
12287 2 => True, -- Selector_Name (Node2)
12288 3 => True, -- Prefix (Node3)
12289 4 => False, -- Entity (Node4-Sem)
12290 5 => False), -- Etype (Node5-Sem)
12292 N_Expression_With_Actions =>
12293 (1 => True, -- Actions (List1)
12294 2 => False, -- unused
12295 3 => True, -- Expression (Node3)
12296 4 => False, -- unused
12297 5 => False), -- unused
12299 N_Free_Statement =>
12300 (1 => False, -- Storage_Pool (Node1-Sem)
12301 2 => False, -- Procedure_To_Call (Node2-Sem)
12302 3 => True, -- Expression (Node3)
12303 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12304 5 => False), -- unused
12306 N_Freeze_Entity =>
12307 (1 => True, -- Actions (List1)
12308 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12309 3 => False, -- TSS_Elist (Elist3-Sem)
12310 4 => False, -- Entity (Node4-Sem)
12311 5 => False), -- First_Subtype_Link (Node5-Sem)
12313 N_Freeze_Generic_Entity =>
12314 (1 => False, -- unused
12315 2 => False, -- unused
12316 3 => False, -- unused
12317 4 => False, -- Entity (Node4-Sem)
12318 5 => False), -- unused
12320 N_Implicit_Label_Declaration =>
12321 (1 => True, -- Defining_Identifier (Node1)
12322 2 => False, -- Label_Construct (Node2-Sem)
12323 3 => False, -- unused
12324 4 => False, -- unused
12325 5 => False), -- unused
12327 N_Itype_Reference =>
12328 (1 => False, -- Itype (Node1-Sem)
12329 2 => False, -- unused
12330 3 => False, -- unused
12331 4 => False, -- unused
12332 5 => False), -- unused
12334 N_Raise_Constraint_Error =>
12335 (1 => True, -- Condition (Node1)
12336 2 => False, -- unused
12337 3 => True, -- Reason (Uint3)
12338 4 => False, -- unused
12339 5 => False), -- Etype (Node5-Sem)
12341 N_Raise_Program_Error =>
12342 (1 => True, -- Condition (Node1)
12343 2 => False, -- unused
12344 3 => True, -- Reason (Uint3)
12345 4 => False, -- unused
12346 5 => False), -- Etype (Node5-Sem)
12348 N_Raise_Storage_Error =>
12349 (1 => True, -- Condition (Node1)
12350 2 => False, -- unused
12351 3 => True, -- Reason (Uint3)
12352 4 => False, -- unused
12353 5 => False), -- Etype (Node5-Sem)
12355 N_Push_Constraint_Error_Label =>
12356 (1 => False, -- unused
12357 2 => False, -- unused
12358 3 => False, -- unused
12359 4 => False, -- unused
12360 5 => False), -- unused
12362 N_Push_Program_Error_Label =>
12363 (1 => False, -- Exception_Label
12364 2 => False, -- unused
12365 3 => False, -- unused
12366 4 => False, -- unused
12367 5 => False), -- Exception_Label
12369 N_Push_Storage_Error_Label =>
12370 (1 => False, -- Exception_Label
12371 2 => False, -- unused
12372 3 => False, -- unused
12373 4 => False, -- unused
12374 5 => False), -- Exception_Label
12376 N_Pop_Constraint_Error_Label =>
12377 (1 => False, -- unused
12378 2 => False, -- unused
12379 3 => False, -- unused
12380 4 => False, -- unused
12381 5 => False), -- unused
12383 N_Pop_Program_Error_Label =>
12384 (1 => False, -- unused
12385 2 => False, -- unused
12386 3 => False, -- unused
12387 4 => False, -- unused
12388 5 => False), -- unused
12390 N_Pop_Storage_Error_Label =>
12391 (1 => False, -- unused
12392 2 => False, -- unused
12393 3 => False, -- unused
12394 4 => False, -- unused
12395 5 => False), -- unused
12397 N_Reference =>
12398 (1 => False, -- unused
12399 2 => False, -- unused
12400 3 => True, -- Prefix (Node3)
12401 4 => False, -- unused
12402 5 => False), -- Etype (Node5-Sem)
12404 N_Unchecked_Expression =>
12405 (1 => False, -- unused
12406 2 => False, -- unused
12407 3 => True, -- Expression (Node3)
12408 4 => False, -- unused
12409 5 => False), -- Etype (Node5-Sem)
12411 N_Unchecked_Type_Conversion =>
12412 (1 => False, -- unused
12413 2 => False, -- unused
12414 3 => True, -- Expression (Node3)
12415 4 => True, -- Subtype_Mark (Node4)
12416 5 => False), -- Etype (Node5-Sem)
12418 N_Validate_Unchecked_Conversion =>
12419 (1 => False, -- Source_Type (Node1-Sem)
12420 2 => False, -- Target_Type (Node2-Sem)
12421 3 => False, -- unused
12422 4 => False, -- unused
12423 5 => False), -- unused
12425 -- Entries for SCIL nodes
12427 N_SCIL_Dispatch_Table_Tag_Init =>
12428 (1 => False, -- unused
12429 2 => False, -- unused
12430 3 => False, -- unused
12431 4 => False, -- SCIL_Entity (Node4-Sem)
12432 5 => False), -- unused
12434 N_SCIL_Dispatching_Call =>
12435 (1 => False, -- unused
12436 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12437 3 => False, -- unused
12438 4 => False, -- SCIL_Entity (Node4-Sem)
12439 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12441 N_SCIL_Membership_Test =>
12442 (1 => False, -- unused
12443 2 => False, -- unused
12444 3 => False, -- unused
12445 4 => False, -- SCIL_Entity (Node4-Sem)
12446 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12448 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12449 -- field for debugging purposes, they are not really syntactic fields, so
12450 -- we mark all fields as unused.
12452 N_Empty =>
12453 (1 => False, -- unused
12454 2 => False, -- unused
12455 3 => False, -- unused
12456 4 => False, -- unused
12457 5 => False), -- unused
12459 N_Error =>
12460 (1 => False, -- unused
12461 2 => False, -- unused
12462 3 => False, -- unused
12463 4 => False, -- unused
12464 5 => False), -- unused
12466 N_Unused_At_Start =>
12467 (1 => False, -- unused
12468 2 => False, -- unused
12469 3 => False, -- unused
12470 4 => False, -- unused
12471 5 => False), -- unused
12473 N_Unused_At_End =>
12474 (1 => False, -- unused
12475 2 => False, -- unused
12476 3 => False, -- unused
12477 4 => False, -- unused
12478 5 => False)); -- unused
12480 --------------------
12481 -- Inline Pragmas --
12482 --------------------
12484 pragma Inline (ABE_Is_Certain);
12485 pragma Inline (Abort_Present);
12486 pragma Inline (Abortable_Part);
12487 pragma Inline (Abstract_Present);
12488 pragma Inline (Accept_Handler_Records);
12489 pragma Inline (Accept_Statement);
12490 pragma Inline (Access_Definition);
12491 pragma Inline (Access_To_Subprogram_Definition);
12492 pragma Inline (Access_Types_To_Process);
12493 pragma Inline (Actions);
12494 pragma Inline (Activation_Chain_Entity);
12495 pragma Inline (Acts_As_Spec);
12496 pragma Inline (Actual_Designated_Subtype);
12497 pragma Inline (Address_Warning_Posted);
12498 pragma Inline (Aggregate_Bounds);
12499 pragma Inline (Aliased_Present);
12500 pragma Inline (All_Others);
12501 pragma Inline (All_Present);
12502 pragma Inline (Alternatives);
12503 pragma Inline (Ancestor_Part);
12504 pragma Inline (Atomic_Sync_Required);
12505 pragma Inline (Array_Aggregate);
12506 pragma Inline (Aspect_Rep_Item);
12507 pragma Inline (Assignment_OK);
12508 pragma Inline (Associated_Node);
12509 pragma Inline (At_End_Proc);
12510 pragma Inline (Attribute_Name);
12511 pragma Inline (Aux_Decls_Node);
12512 pragma Inline (Backwards_OK);
12513 pragma Inline (Bad_Is_Detected);
12514 pragma Inline (Body_To_Inline);
12515 pragma Inline (Body_Required);
12516 pragma Inline (By_Ref);
12517 pragma Inline (Box_Present);
12518 pragma Inline (Char_Literal_Value);
12519 pragma Inline (Chars);
12520 pragma Inline (Check_Address_Alignment);
12521 pragma Inline (Choice_Parameter);
12522 pragma Inline (Choices);
12523 pragma Inline (Class_Present);
12524 pragma Inline (Classifications);
12525 pragma Inline (Cleanup_Actions);
12526 pragma Inline (Comes_From_Extended_Return_Statement);
12527 pragma Inline (Compile_Time_Known_Aggregate);
12528 pragma Inline (Component_Associations);
12529 pragma Inline (Component_Clauses);
12530 pragma Inline (Component_Definition);
12531 pragma Inline (Component_Items);
12532 pragma Inline (Component_List);
12533 pragma Inline (Component_Name);
12534 pragma Inline (Componentwise_Assignment);
12535 pragma Inline (Condition);
12536 pragma Inline (Condition_Actions);
12537 pragma Inline (Config_Pragmas);
12538 pragma Inline (Constant_Present);
12539 pragma Inline (Constraint);
12540 pragma Inline (Constraints);
12541 pragma Inline (Context_Installed);
12542 pragma Inline (Context_Items);
12543 pragma Inline (Context_Pending);
12544 pragma Inline (Contract_Test_Cases);
12545 pragma Inline (Controlling_Argument);
12546 pragma Inline (Convert_To_Return_False);
12547 pragma Inline (Conversion_OK);
12548 pragma Inline (Corresponding_Aspect);
12549 pragma Inline (Corresponding_Body);
12550 pragma Inline (Corresponding_Formal_Spec);
12551 pragma Inline (Corresponding_Generic_Association);
12552 pragma Inline (Corresponding_Integer_Value);
12553 pragma Inline (Corresponding_Spec);
12554 pragma Inline (Corresponding_Spec_Of_Stub);
12555 pragma Inline (Corresponding_Stub);
12556 pragma Inline (Dcheck_Function);
12557 pragma Inline (Declarations);
12558 pragma Inline (Default_Expression);
12559 pragma Inline (Default_Storage_Pool);
12560 pragma Inline (Default_Name);
12561 pragma Inline (Defining_Identifier);
12562 pragma Inline (Defining_Unit_Name);
12563 pragma Inline (Delay_Alternative);
12564 pragma Inline (Delay_Statement);
12565 pragma Inline (Delta_Expression);
12566 pragma Inline (Digits_Expression);
12567 pragma Inline (Discr_Check_Funcs_Built);
12568 pragma Inline (Discrete_Choices);
12569 pragma Inline (Discrete_Range);
12570 pragma Inline (Discrete_Subtype_Definition);
12571 pragma Inline (Discrete_Subtype_Definitions);
12572 pragma Inline (Discriminant_Specifications);
12573 pragma Inline (Discriminant_Type);
12574 pragma Inline (Do_Accessibility_Check);
12575 pragma Inline (Do_Discriminant_Check);
12576 pragma Inline (Do_Length_Check);
12577 pragma Inline (Do_Division_Check);
12578 pragma Inline (Do_Overflow_Check);
12579 pragma Inline (Do_Range_Check);
12580 pragma Inline (Do_Storage_Check);
12581 pragma Inline (Do_Tag_Check);
12582 pragma Inline (Elaborate_Present);
12583 pragma Inline (Elaborate_All_Desirable);
12584 pragma Inline (Elaborate_All_Present);
12585 pragma Inline (Elaborate_Desirable);
12586 pragma Inline (Else_Actions);
12587 pragma Inline (Else_Statements);
12588 pragma Inline (Elsif_Parts);
12589 pragma Inline (Enclosing_Variant);
12590 pragma Inline (End_Label);
12591 pragma Inline (End_Span);
12592 pragma Inline (Entity);
12593 pragma Inline (Entity_Or_Associated_Node);
12594 pragma Inline (Entry_Body_Formal_Part);
12595 pragma Inline (Entry_Call_Alternative);
12596 pragma Inline (Entry_Call_Statement);
12597 pragma Inline (Entry_Direct_Name);
12598 pragma Inline (Entry_Index);
12599 pragma Inline (Entry_Index_Specification);
12600 pragma Inline (Etype);
12601 pragma Inline (Exception_Choices);
12602 pragma Inline (Exception_Handlers);
12603 pragma Inline (Exception_Junk);
12604 pragma Inline (Exception_Label);
12605 pragma Inline (Expansion_Delayed);
12606 pragma Inline (Explicit_Actual_Parameter);
12607 pragma Inline (Explicit_Generic_Actual_Parameter);
12608 pragma Inline (Expression);
12609 pragma Inline (Expressions);
12610 pragma Inline (First_Bit);
12611 pragma Inline (First_Inlined_Subprogram);
12612 pragma Inline (First_Name);
12613 pragma Inline (First_Named_Actual);
12614 pragma Inline (First_Real_Statement);
12615 pragma Inline (First_Subtype_Link);
12616 pragma Inline (Float_Truncate);
12617 pragma Inline (Formal_Type_Definition);
12618 pragma Inline (Forwards_OK);
12619 pragma Inline (From_Aspect_Specification);
12620 pragma Inline (From_At_End);
12621 pragma Inline (From_At_Mod);
12622 pragma Inline (From_Conditional_Expression);
12623 pragma Inline (From_Default);
12624 pragma Inline (Generalized_Indexing);
12625 pragma Inline (Generic_Associations);
12626 pragma Inline (Generic_Formal_Declarations);
12627 pragma Inline (Generic_Parent);
12628 pragma Inline (Generic_Parent_Type);
12629 pragma Inline (Handled_Statement_Sequence);
12630 pragma Inline (Handler_List_Entry);
12631 pragma Inline (Has_Created_Identifier);
12632 pragma Inline (Has_Dereference_Action);
12633 pragma Inline (Has_Dynamic_Length_Check);
12634 pragma Inline (Has_Dynamic_Range_Check);
12635 pragma Inline (Has_Init_Expression);
12636 pragma Inline (Has_Local_Raise);
12637 pragma Inline (Has_Self_Reference);
12638 pragma Inline (Has_SP_Choice);
12639 pragma Inline (Has_No_Elaboration_Code);
12640 pragma Inline (Has_Pragma_Suppress_All);
12641 pragma Inline (Has_Private_View);
12642 pragma Inline (Has_Relative_Deadline_Pragma);
12643 pragma Inline (Has_Storage_Size_Pragma);
12644 pragma Inline (Has_Wide_Character);
12645 pragma Inline (Has_Wide_Wide_Character);
12646 pragma Inline (Header_Size_Added);
12647 pragma Inline (Hidden_By_Use_Clause);
12648 pragma Inline (High_Bound);
12649 pragma Inline (Identifier);
12650 pragma Inline (Implicit_With);
12651 pragma Inline (Implicit_With_From_Instantiation);
12652 pragma Inline (Interface_List);
12653 pragma Inline (Interface_Present);
12654 pragma Inline (Includes_Infinities);
12655 pragma Inline (Import_Interface_Present);
12656 pragma Inline (In_Present);
12657 pragma Inline (Incomplete_View);
12658 pragma Inline (Inherited_Discriminant);
12659 pragma Inline (Instance_Spec);
12660 pragma Inline (Intval);
12661 pragma Inline (Iterator_Specification);
12662 pragma Inline (Is_Accessibility_Actual);
12663 pragma Inline (Is_Asynchronous_Call_Block);
12664 pragma Inline (Is_Boolean_Aspect);
12665 pragma Inline (Is_Checked);
12666 pragma Inline (Is_Component_Left_Opnd);
12667 pragma Inline (Is_Component_Right_Opnd);
12668 pragma Inline (Is_Controlling_Actual);
12669 pragma Inline (Is_Delayed_Aspect);
12670 pragma Inline (Is_Disabled);
12671 pragma Inline (Is_Dynamic_Coextension);
12672 pragma Inline (Is_Elsif);
12673 pragma Inline (Is_Entry_Barrier_Function);
12674 pragma Inline (Is_Expanded_Build_In_Place_Call);
12675 pragma Inline (Is_Finalization_Wrapper);
12676 pragma Inline (Is_Folded_In_Parser);
12677 pragma Inline (Is_Ignored);
12678 pragma Inline (Is_In_Discriminant_Check);
12679 pragma Inline (Is_Inherited);
12680 pragma Inline (Is_Machine_Number);
12681 pragma Inline (Is_Null_Loop);
12682 pragma Inline (Is_Overloaded);
12683 pragma Inline (Is_Power_Of_2_For_Shift);
12684 pragma Inline (Is_Prefixed_Call);
12685 pragma Inline (Is_Protected_Subprogram_Body);
12686 pragma Inline (Is_Static_Coextension);
12687 pragma Inline (Is_Static_Expression);
12688 pragma Inline (Is_Subprogram_Descriptor);
12689 pragma Inline (Is_Task_Allocation_Block);
12690 pragma Inline (Is_Task_Master);
12691 pragma Inline (Iteration_Scheme);
12692 pragma Inline (Itype);
12693 pragma Inline (Kill_Range_Check);
12694 pragma Inline (Last_Bit);
12695 pragma Inline (Last_Name);
12696 pragma Inline (Library_Unit);
12697 pragma Inline (Label_Construct);
12698 pragma Inline (Left_Opnd);
12699 pragma Inline (Limited_View_Installed);
12700 pragma Inline (Limited_Present);
12701 pragma Inline (Literals);
12702 pragma Inline (Local_Raise_Not_OK);
12703 pragma Inline (Local_Raise_Statements);
12704 pragma Inline (Loop_Actions);
12705 pragma Inline (Loop_Parameter_Specification);
12706 pragma Inline (Low_Bound);
12707 pragma Inline (Mod_Clause);
12708 pragma Inline (More_Ids);
12709 pragma Inline (Must_Be_Byte_Aligned);
12710 pragma Inline (Must_Not_Freeze);
12711 pragma Inline (Must_Not_Override);
12712 pragma Inline (Must_Override);
12713 pragma Inline (Name);
12714 pragma Inline (Names);
12715 pragma Inline (Next_Entity);
12716 pragma Inline (Next_Exit_Statement);
12717 pragma Inline (Next_Implicit_With);
12718 pragma Inline (Next_Named_Actual);
12719 pragma Inline (Next_Pragma);
12720 pragma Inline (Next_Rep_Item);
12721 pragma Inline (Next_Use_Clause);
12722 pragma Inline (No_Ctrl_Actions);
12723 pragma Inline (No_Elaboration_Check);
12724 pragma Inline (No_Entities_Ref_In_Spec);
12725 pragma Inline (No_Initialization);
12726 pragma Inline (No_Minimize_Eliminate);
12727 pragma Inline (No_Truncation);
12728 pragma Inline (Non_Aliased_Prefix);
12729 pragma Inline (Null_Present);
12730 pragma Inline (Null_Excluding_Subtype);
12731 pragma Inline (Null_Exclusion_Present);
12732 pragma Inline (Null_Exclusion_In_Return_Present);
12733 pragma Inline (Null_Record_Present);
12734 pragma Inline (Object_Definition);
12735 pragma Inline (Of_Present);
12736 pragma Inline (Original_Discriminant);
12737 pragma Inline (Original_Entity);
12738 pragma Inline (Others_Discrete_Choices);
12739 pragma Inline (Out_Present);
12740 pragma Inline (Parameter_Associations);
12741 pragma Inline (Parameter_Specifications);
12742 pragma Inline (Parameter_Type);
12743 pragma Inline (Parent_Spec);
12744 pragma Inline (Position);
12745 pragma Inline (Pragma_Argument_Associations);
12746 pragma Inline (Pragma_Identifier);
12747 pragma Inline (Pragmas_After);
12748 pragma Inline (Pragmas_Before);
12749 pragma Inline (Pre_Post_Conditions);
12750 pragma Inline (Prefix);
12751 pragma Inline (Premature_Use);
12752 pragma Inline (Present_Expr);
12753 pragma Inline (Prev_Ids);
12754 pragma Inline (Print_In_Hex);
12755 pragma Inline (Private_Declarations);
12756 pragma Inline (Private_Present);
12757 pragma Inline (Procedure_To_Call);
12758 pragma Inline (Proper_Body);
12759 pragma Inline (Protected_Definition);
12760 pragma Inline (Protected_Present);
12761 pragma Inline (Raises_Constraint_Error);
12762 pragma Inline (Range_Constraint);
12763 pragma Inline (Range_Expression);
12764 pragma Inline (Real_Range_Specification);
12765 pragma Inline (Realval);
12766 pragma Inline (Reason);
12767 pragma Inline (Record_Extension_Part);
12768 pragma Inline (Redundant_Use);
12769 pragma Inline (Renaming_Exception);
12770 pragma Inline (Result_Definition);
12771 pragma Inline (Return_Object_Declarations);
12772 pragma Inline (Return_Statement_Entity);
12773 pragma Inline (Reverse_Present);
12774 pragma Inline (Right_Opnd);
12775 pragma Inline (Rounded_Result);
12776 pragma Inline (SCIL_Controlling_Tag);
12777 pragma Inline (SCIL_Entity);
12778 pragma Inline (SCIL_Tag_Value);
12779 pragma Inline (SCIL_Target_Prim);
12780 pragma Inline (Scope);
12781 pragma Inline (Select_Alternatives);
12782 pragma Inline (Selector_Name);
12783 pragma Inline (Selector_Names);
12784 pragma Inline (Shift_Count_OK);
12785 pragma Inline (Source_Type);
12786 pragma Inline (Specification);
12787 pragma Inline (Split_PPC);
12788 pragma Inline (Statements);
12789 pragma Inline (Storage_Pool);
12790 pragma Inline (Subpool_Handle_Name);
12791 pragma Inline (Strval);
12792 pragma Inline (Subtype_Indication);
12793 pragma Inline (Subtype_Mark);
12794 pragma Inline (Subtype_Marks);
12795 pragma Inline (Suppress_Assignment_Checks);
12796 pragma Inline (Suppress_Loop_Warnings);
12797 pragma Inline (Synchronized_Present);
12798 pragma Inline (Tagged_Present);
12799 pragma Inline (Target_Type);
12800 pragma Inline (Task_Definition);
12801 pragma Inline (Task_Present);
12802 pragma Inline (Then_Actions);
12803 pragma Inline (Then_Statements);
12804 pragma Inline (Triggering_Alternative);
12805 pragma Inline (Triggering_Statement);
12806 pragma Inline (Treat_Fixed_As_Integer);
12807 pragma Inline (TSS_Elist);
12808 pragma Inline (Type_Definition);
12809 pragma Inline (Uneval_Old_Accept);
12810 pragma Inline (Uneval_Old_Warn);
12811 pragma Inline (Unit);
12812 pragma Inline (Uninitialized_Variable);
12813 pragma Inline (Unknown_Discriminants_Present);
12814 pragma Inline (Unreferenced_In_Spec);
12815 pragma Inline (Variant_Part);
12816 pragma Inline (Variants);
12817 pragma Inline (Visible_Declarations);
12818 pragma Inline (Used_Operations);
12819 pragma Inline (Was_Originally_Stub);
12820 pragma Inline (Withed_Body);
12822 pragma Inline (Set_ABE_Is_Certain);
12823 pragma Inline (Set_Abort_Present);
12824 pragma Inline (Set_Abortable_Part);
12825 pragma Inline (Set_Abstract_Present);
12826 pragma Inline (Set_Accept_Handler_Records);
12827 pragma Inline (Set_Accept_Statement);
12828 pragma Inline (Set_Access_Definition);
12829 pragma Inline (Set_Access_To_Subprogram_Definition);
12830 pragma Inline (Set_Access_Types_To_Process);
12831 pragma Inline (Set_Actions);
12832 pragma Inline (Set_Activation_Chain_Entity);
12833 pragma Inline (Set_Acts_As_Spec);
12834 pragma Inline (Set_Actual_Designated_Subtype);
12835 pragma Inline (Set_Address_Warning_Posted);
12836 pragma Inline (Set_Aggregate_Bounds);
12837 pragma Inline (Set_Aliased_Present);
12838 pragma Inline (Set_All_Others);
12839 pragma Inline (Set_All_Present);
12840 pragma Inline (Set_Alternatives);
12841 pragma Inline (Set_Ancestor_Part);
12842 pragma Inline (Set_Array_Aggregate);
12843 pragma Inline (Set_Aspect_Rep_Item);
12844 pragma Inline (Set_Assignment_OK);
12845 pragma Inline (Set_Associated_Node);
12846 pragma Inline (Set_At_End_Proc);
12847 pragma Inline (Set_Atomic_Sync_Required);
12848 pragma Inline (Set_Attribute_Name);
12849 pragma Inline (Set_Aux_Decls_Node);
12850 pragma Inline (Set_Backwards_OK);
12851 pragma Inline (Set_Bad_Is_Detected);
12852 pragma Inline (Set_Body_Required);
12853 pragma Inline (Set_Body_To_Inline);
12854 pragma Inline (Set_Box_Present);
12855 pragma Inline (Set_By_Ref);
12856 pragma Inline (Set_Char_Literal_Value);
12857 pragma Inline (Set_Chars);
12858 pragma Inline (Set_Check_Address_Alignment);
12859 pragma Inline (Set_Choice_Parameter);
12860 pragma Inline (Set_Choices);
12861 pragma Inline (Set_Class_Present);
12862 pragma Inline (Set_Classifications);
12863 pragma Inline (Set_Cleanup_Actions);
12864 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12865 pragma Inline (Set_Compile_Time_Known_Aggregate);
12866 pragma Inline (Set_Component_Associations);
12867 pragma Inline (Set_Component_Clauses);
12868 pragma Inline (Set_Component_Definition);
12869 pragma Inline (Set_Component_Items);
12870 pragma Inline (Set_Component_List);
12871 pragma Inline (Set_Component_Name);
12872 pragma Inline (Set_Componentwise_Assignment);
12873 pragma Inline (Set_Condition);
12874 pragma Inline (Set_Condition_Actions);
12875 pragma Inline (Set_Config_Pragmas);
12876 pragma Inline (Set_Constant_Present);
12877 pragma Inline (Set_Constraint);
12878 pragma Inline (Set_Constraints);
12879 pragma Inline (Set_Context_Installed);
12880 pragma Inline (Set_Context_Items);
12881 pragma Inline (Set_Context_Pending);
12882 pragma Inline (Set_Contract_Test_Cases);
12883 pragma Inline (Set_Controlling_Argument);
12884 pragma Inline (Set_Conversion_OK);
12885 pragma Inline (Set_Convert_To_Return_False);
12886 pragma Inline (Set_Corresponding_Aspect);
12887 pragma Inline (Set_Corresponding_Body);
12888 pragma Inline (Set_Corresponding_Formal_Spec);
12889 pragma Inline (Set_Corresponding_Generic_Association);
12890 pragma Inline (Set_Corresponding_Integer_Value);
12891 pragma Inline (Set_Corresponding_Spec);
12892 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12893 pragma Inline (Set_Corresponding_Stub);
12894 pragma Inline (Set_Dcheck_Function);
12895 pragma Inline (Set_Declarations);
12896 pragma Inline (Set_Default_Expression);
12897 pragma Inline (Set_Default_Name);
12898 pragma Inline (Set_Default_Storage_Pool);
12899 pragma Inline (Set_Defining_Identifier);
12900 pragma Inline (Set_Defining_Unit_Name);
12901 pragma Inline (Set_Delay_Alternative);
12902 pragma Inline (Set_Delay_Statement);
12903 pragma Inline (Set_Delta_Expression);
12904 pragma Inline (Set_Digits_Expression);
12905 pragma Inline (Set_Discr_Check_Funcs_Built);
12906 pragma Inline (Set_Discrete_Choices);
12907 pragma Inline (Set_Discrete_Range);
12908 pragma Inline (Set_Discrete_Subtype_Definition);
12909 pragma Inline (Set_Discrete_Subtype_Definitions);
12910 pragma Inline (Set_Discriminant_Specifications);
12911 pragma Inline (Set_Discriminant_Type);
12912 pragma Inline (Set_Do_Accessibility_Check);
12913 pragma Inline (Set_Do_Discriminant_Check);
12914 pragma Inline (Set_Do_Division_Check);
12915 pragma Inline (Set_Do_Length_Check);
12916 pragma Inline (Set_Do_Overflow_Check);
12917 pragma Inline (Set_Do_Range_Check);
12918 pragma Inline (Set_Do_Storage_Check);
12919 pragma Inline (Set_Do_Tag_Check);
12920 pragma Inline (Set_Elaborate_All_Desirable);
12921 pragma Inline (Set_Elaborate_All_Present);
12922 pragma Inline (Set_Elaborate_Desirable);
12923 pragma Inline (Set_Elaborate_Present);
12924 pragma Inline (Set_Else_Actions);
12925 pragma Inline (Set_Else_Statements);
12926 pragma Inline (Set_Elsif_Parts);
12927 pragma Inline (Set_Enclosing_Variant);
12928 pragma Inline (Set_End_Label);
12929 pragma Inline (Set_End_Span);
12930 pragma Inline (Set_Entity);
12931 pragma Inline (Set_Entry_Body_Formal_Part);
12932 pragma Inline (Set_Entry_Call_Alternative);
12933 pragma Inline (Set_Entry_Call_Statement);
12934 pragma Inline (Set_Entry_Direct_Name);
12935 pragma Inline (Set_Entry_Index);
12936 pragma Inline (Set_Entry_Index_Specification);
12937 pragma Inline (Set_Etype);
12938 pragma Inline (Set_Exception_Choices);
12939 pragma Inline (Set_Exception_Handlers);
12940 pragma Inline (Set_Exception_Junk);
12941 pragma Inline (Set_Exception_Label);
12942 pragma Inline (Set_Expansion_Delayed);
12943 pragma Inline (Set_Explicit_Actual_Parameter);
12944 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12945 pragma Inline (Set_Expression);
12946 pragma Inline (Set_Expressions);
12947 pragma Inline (Set_First_Bit);
12948 pragma Inline (Set_First_Inlined_Subprogram);
12949 pragma Inline (Set_First_Name);
12950 pragma Inline (Set_First_Named_Actual);
12951 pragma Inline (Set_First_Real_Statement);
12952 pragma Inline (Set_First_Subtype_Link);
12953 pragma Inline (Set_Float_Truncate);
12954 pragma Inline (Set_Formal_Type_Definition);
12955 pragma Inline (Set_Forwards_OK);
12956 pragma Inline (Set_From_Aspect_Specification);
12957 pragma Inline (Set_From_At_End);
12958 pragma Inline (Set_From_At_Mod);
12959 pragma Inline (Set_From_Conditional_Expression);
12960 pragma Inline (Set_From_Default);
12961 pragma Inline (Set_Generalized_Indexing);
12962 pragma Inline (Set_Generic_Associations);
12963 pragma Inline (Set_Generic_Formal_Declarations);
12964 pragma Inline (Set_Generic_Parent);
12965 pragma Inline (Set_Generic_Parent_Type);
12966 pragma Inline (Set_Handled_Statement_Sequence);
12967 pragma Inline (Set_Handler_List_Entry);
12968 pragma Inline (Set_Has_Created_Identifier);
12969 pragma Inline (Set_Has_Dereference_Action);
12970 pragma Inline (Set_Has_Dynamic_Length_Check);
12971 pragma Inline (Set_Has_Dynamic_Range_Check);
12972 pragma Inline (Set_Has_Init_Expression);
12973 pragma Inline (Set_Has_Local_Raise);
12974 pragma Inline (Set_Has_No_Elaboration_Code);
12975 pragma Inline (Set_Has_Pragma_Suppress_All);
12976 pragma Inline (Set_Has_Private_View);
12977 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12978 pragma Inline (Set_Has_Self_Reference);
12979 pragma Inline (Set_Has_SP_Choice);
12980 pragma Inline (Set_Has_Storage_Size_Pragma);
12981 pragma Inline (Set_Has_Wide_Character);
12982 pragma Inline (Set_Has_Wide_Wide_Character);
12983 pragma Inline (Set_Header_Size_Added);
12984 pragma Inline (Set_Hidden_By_Use_Clause);
12985 pragma Inline (Set_High_Bound);
12986 pragma Inline (Set_Identifier);
12987 pragma Inline (Set_Implicit_With);
12988 pragma Inline (Set_Import_Interface_Present);
12989 pragma Inline (Set_In_Present);
12990 pragma Inline (Set_Includes_Infinities);
12991 pragma Inline (Set_Incomplete_View);
12992 pragma Inline (Set_Inherited_Discriminant);
12993 pragma Inline (Set_Instance_Spec);
12994 pragma Inline (Set_Interface_List);
12995 pragma Inline (Set_Interface_Present);
12996 pragma Inline (Set_Intval);
12997 pragma Inline (Set_Is_Accessibility_Actual);
12998 pragma Inline (Set_Is_Asynchronous_Call_Block);
12999 pragma Inline (Set_Is_Boolean_Aspect);
13000 pragma Inline (Set_Is_Checked);
13001 pragma Inline (Set_Is_Component_Left_Opnd);
13002 pragma Inline (Set_Is_Component_Right_Opnd);
13003 pragma Inline (Set_Is_Controlling_Actual);
13004 pragma Inline (Set_Is_Delayed_Aspect);
13005 pragma Inline (Set_Is_Disabled);
13006 pragma Inline (Set_Is_Dynamic_Coextension);
13007 pragma Inline (Set_Is_Elsif);
13008 pragma Inline (Set_Is_Entry_Barrier_Function);
13009 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13010 pragma Inline (Set_Is_Finalization_Wrapper);
13011 pragma Inline (Set_Is_Folded_In_Parser);
13012 pragma Inline (Set_Is_Ignored);
13013 pragma Inline (Set_Is_In_Discriminant_Check);
13014 pragma Inline (Set_Is_Inherited);
13015 pragma Inline (Set_Is_Machine_Number);
13016 pragma Inline (Set_Is_Null_Loop);
13017 pragma Inline (Set_Is_Overloaded);
13018 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13019 pragma Inline (Set_Is_Prefixed_Call);
13020 pragma Inline (Set_Is_Protected_Subprogram_Body);
13021 pragma Inline (Set_Is_Static_Coextension);
13022 pragma Inline (Set_Is_Static_Expression);
13023 pragma Inline (Set_Is_Subprogram_Descriptor);
13024 pragma Inline (Set_Is_Task_Allocation_Block);
13025 pragma Inline (Set_Is_Task_Master);
13026 pragma Inline (Set_Iteration_Scheme);
13027 pragma Inline (Set_Iterator_Specification);
13028 pragma Inline (Set_Itype);
13029 pragma Inline (Set_Kill_Range_Check);
13030 pragma Inline (Set_Label_Construct);
13031 pragma Inline (Set_Last_Bit);
13032 pragma Inline (Set_Last_Name);
13033 pragma Inline (Set_Left_Opnd);
13034 pragma Inline (Set_Library_Unit);
13035 pragma Inline (Set_Limited_Present);
13036 pragma Inline (Set_Limited_View_Installed);
13037 pragma Inline (Set_Literals);
13038 pragma Inline (Set_Local_Raise_Not_OK);
13039 pragma Inline (Set_Local_Raise_Statements);
13040 pragma Inline (Set_Loop_Actions);
13041 pragma Inline (Set_Loop_Parameter_Specification);
13042 pragma Inline (Set_Low_Bound);
13043 pragma Inline (Set_Mod_Clause);
13044 pragma Inline (Set_More_Ids);
13045 pragma Inline (Set_Must_Be_Byte_Aligned);
13046 pragma Inline (Set_Must_Not_Freeze);
13047 pragma Inline (Set_Must_Not_Override);
13048 pragma Inline (Set_Must_Override);
13049 pragma Inline (Set_Name);
13050 pragma Inline (Set_Names);
13051 pragma Inline (Set_Next_Entity);
13052 pragma Inline (Set_Next_Exit_Statement);
13053 pragma Inline (Set_Next_Implicit_With);
13054 pragma Inline (Set_Next_Named_Actual);
13055 pragma Inline (Set_Next_Pragma);
13056 pragma Inline (Set_Next_Rep_Item);
13057 pragma Inline (Set_Next_Use_Clause);
13058 pragma Inline (Set_No_Ctrl_Actions);
13059 pragma Inline (Set_No_Elaboration_Check);
13060 pragma Inline (Set_No_Entities_Ref_In_Spec);
13061 pragma Inline (Set_No_Initialization);
13062 pragma Inline (Set_No_Minimize_Eliminate);
13063 pragma Inline (Set_No_Truncation);
13064 pragma Inline (Set_Non_Aliased_Prefix);
13065 pragma Inline (Set_Null_Excluding_Subtype);
13066 pragma Inline (Set_Null_Exclusion_Present);
13067 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13068 pragma Inline (Set_Null_Present);
13069 pragma Inline (Set_Null_Record_Present);
13070 pragma Inline (Set_Object_Definition);
13071 pragma Inline (Set_Of_Present);
13072 pragma Inline (Set_Original_Discriminant);
13073 pragma Inline (Set_Original_Entity);
13074 pragma Inline (Set_Others_Discrete_Choices);
13075 pragma Inline (Set_Out_Present);
13076 pragma Inline (Set_Parameter_Associations);
13077 pragma Inline (Set_Parameter_Specifications);
13078 pragma Inline (Set_Parameter_Type);
13079 pragma Inline (Set_Parent_Spec);
13080 pragma Inline (Set_Position);
13081 pragma Inline (Set_Pragma_Argument_Associations);
13082 pragma Inline (Set_Pragma_Identifier);
13083 pragma Inline (Set_Pragmas_After);
13084 pragma Inline (Set_Pragmas_Before);
13085 pragma Inline (Set_Pre_Post_Conditions);
13086 pragma Inline (Set_Prefix);
13087 pragma Inline (Set_Premature_Use);
13088 pragma Inline (Set_Present_Expr);
13089 pragma Inline (Set_Prev_Ids);
13090 pragma Inline (Set_Print_In_Hex);
13091 pragma Inline (Set_Private_Declarations);
13092 pragma Inline (Set_Private_Present);
13093 pragma Inline (Set_Procedure_To_Call);
13094 pragma Inline (Set_Proper_Body);
13095 pragma Inline (Set_Protected_Definition);
13096 pragma Inline (Set_Protected_Present);
13097 pragma Inline (Set_Raises_Constraint_Error);
13098 pragma Inline (Set_Range_Constraint);
13099 pragma Inline (Set_Range_Expression);
13100 pragma Inline (Set_Real_Range_Specification);
13101 pragma Inline (Set_Realval);
13102 pragma Inline (Set_Reason);
13103 pragma Inline (Set_Record_Extension_Part);
13104 pragma Inline (Set_Redundant_Use);
13105 pragma Inline (Set_Renaming_Exception);
13106 pragma Inline (Set_Result_Definition);
13107 pragma Inline (Set_Return_Object_Declarations);
13108 pragma Inline (Set_Reverse_Present);
13109 pragma Inline (Set_Right_Opnd);
13110 pragma Inline (Set_Rounded_Result);
13111 pragma Inline (Set_SCIL_Controlling_Tag);
13112 pragma Inline (Set_SCIL_Entity);
13113 pragma Inline (Set_SCIL_Tag_Value);
13114 pragma Inline (Set_SCIL_Target_Prim);
13115 pragma Inline (Set_Scope);
13116 pragma Inline (Set_Select_Alternatives);
13117 pragma Inline (Set_Selector_Name);
13118 pragma Inline (Set_Selector_Names);
13119 pragma Inline (Set_Shift_Count_OK);
13120 pragma Inline (Set_Source_Type);
13121 pragma Inline (Set_Split_PPC);
13122 pragma Inline (Set_Statements);
13123 pragma Inline (Set_Storage_Pool);
13124 pragma Inline (Set_Strval);
13125 pragma Inline (Set_Subpool_Handle_Name);
13126 pragma Inline (Set_Subtype_Indication);
13127 pragma Inline (Set_Subtype_Mark);
13128 pragma Inline (Set_Subtype_Marks);
13129 pragma Inline (Set_Suppress_Assignment_Checks);
13130 pragma Inline (Set_Suppress_Loop_Warnings);
13131 pragma Inline (Set_Synchronized_Present);
13132 pragma Inline (Set_TSS_Elist);
13133 pragma Inline (Set_Tagged_Present);
13134 pragma Inline (Set_Target_Type);
13135 pragma Inline (Set_Task_Definition);
13136 pragma Inline (Set_Task_Present);
13137 pragma Inline (Set_Then_Actions);
13138 pragma Inline (Set_Then_Statements);
13139 pragma Inline (Set_Treat_Fixed_As_Integer);
13140 pragma Inline (Set_Triggering_Alternative);
13141 pragma Inline (Set_Triggering_Statement);
13142 pragma Inline (Set_Type_Definition);
13143 pragma Inline (Set_Uneval_Old_Accept);
13144 pragma Inline (Set_Uneval_Old_Warn);
13145 pragma Inline (Set_Unit);
13146 pragma Inline (Set_Uninitialized_Variable);
13147 pragma Inline (Set_Unknown_Discriminants_Present);
13148 pragma Inline (Set_Unreferenced_In_Spec);
13149 pragma Inline (Set_Used_Operations);
13150 pragma Inline (Set_Variant_Part);
13151 pragma Inline (Set_Variants);
13152 pragma Inline (Set_Visible_Declarations);
13153 pragma Inline (Set_Was_Originally_Stub);
13154 pragma Inline (Set_Withed_Body);
13156 end Sinfo;