Merge branch 'master' r216746-r217593 into gimple-classes-v2-option-3
[official-gcc.git] / gcc / ada / sinfo.ads
blob7a3bc6ff0164c3f911ccd8d7f31d47354767de7d
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 -- GNATprove Mode --
526 --------------------
528 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
529 -- expansion is performed and the analysis must generate a tree in a
530 -- form that meets additional requirements.
532 -- This light expansion does two transformations of the tree that cannot
533 -- be postponed till after semantic analysis:
535 -- 1. Replace object renamings by renamed object. This requires the
536 -- introduction of temporaries at the point of the renaming, which
537 -- must be properly analyzed.
539 -- 2. Fully qualify entity names. This is needed to generate suitable
540 -- local effects and call-graphs in ALI files, with the completely
541 -- qualified names (in particular the suffix to distinguish homonyms).
543 -- The tree after this light expansion should be fully analyzed
544 -- semantically, which sometimes requires the insertion of semantic
545 -- pre-analysis, for example for subprogram contracts and pragma
546 -- check/assert. In particular, all expression must have their proper type,
547 -- and semantic links should be set between tree nodes (partial to full
548 -- view, etc.) Some kinds of nodes should be either absent, or can be
549 -- ignored by the formal verification backend:
551 -- N_Object_Renaming_Declaration: can be ignored safely
552 -- N_Expression_Function: absent (rewritten)
553 -- N_Expression_With_Actions: absent (not generated)
555 -- SPARK cross-references are generated from the regular cross-references
556 -- (used for browsing and code understanding) and additional references
557 -- collected during semantic analysis, in particular on all dereferences.
558 -- These SPARK cross-references are output in a separate section of ALI
559 -- files, as described in spark_xrefs.adb. They are the basis for the
560 -- computation of data dependences in GNATprove. This implies that all
561 -- cross-references should be generated in this mode, even those that would
562 -- not make sense from a user point-of-view, and that cross-references that
563 -- do not lead to data dependences for subprograms can be safely ignored.
565 -- GNATprove relies on the following frontend behaviors:
567 -- 1. The first declarations in the list of visible declarations of
568 -- a package declaration for a generic instance, up to the first
569 -- declaration which comes from source, should correspond to
570 -- the "mappings nodes" between formal and actual generic parameters.
572 -- 2. In addition pragma Debug statements are removed from the tree
573 -- (rewritten to NULL stmt), since they should be ignored in formal
574 -- verification.
576 -- 3. An error is also issued for missing subunits, similar to the
577 -- warning issued when generating code, to avoid formal verification
578 -- of a partial unit.
580 -- 4. Unconstrained types are not replaced by constrained types whose
581 -- bounds are generated from an expression: Expand_Subtype_From_Expr
582 -- should be noop.
584 -----------------------
585 -- Check Flag Fields --
586 -----------------------
588 -- The following flag fields appear in expression nodes:
590 -- Do_Division_Check
591 -- Do_Overflow_Check
592 -- Do_Range_Check
594 -- These three flags are always set by the front end during semantic
595 -- analysis, on expression nodes that may trigger the corresponding
596 -- check. The front end then inserts or not the check during expansion. In
597 -- particular, these flags should also be correctly set in ASIS mode and
598 -- GNATprove mode.
600 -- Note: the expander always takes care of the Do_Range check case,
601 -- so this flag will never be set in the expanded tree passed to the
602 -- back end code generator.
604 -- Note that this accounts for all nodes that trigger the corresponding
605 -- checks, except for range checks on subtype_indications, which may be
606 -- required to check that a range_constraint is compatible with the given
607 -- subtype (RM 3.2.2(11)).
609 -- The following flag fields appear in various nodes:
611 -- Do_Accessibility_Check
612 -- Do_Discriminant_Check
613 -- Do_Length_Check
614 -- Do_Storage_Check
615 -- Do_Tag_Check
617 -- These flags are used in some specific cases by the front end, either
618 -- during semantic analysis or during expansion, and cannot be expected
619 -- to be set on all nodes that trigger the corresponding check.
621 ------------------------
622 -- Common Flag Fields --
623 ------------------------
625 -- The following flag fields appear in all nodes:
627 -- Analyzed
628 -- This flag is used to indicate that a node (and all its children have
629 -- been analyzed. It is used to avoid reanalysis of a node that has
630 -- already been analyzed, both for efficiency and functional correctness
631 -- reasons.
633 -- Comes_From_Source
634 -- This flag is set if the node comes directly from an explicit construct
635 -- in the source. It is normally on for any nodes built by the scanner or
636 -- parser from the source program, with the exception that in a few cases
637 -- the parser adds nodes to normalize the representation (in particular
638 -- a null statement is added to a package body if there is no begin/end
639 -- initialization section.
641 -- Most nodes inserted by the analyzer or expander are not considered
642 -- as coming from source, so the flag is off for such nodes. In a few
643 -- cases, the expander constructs nodes closely equivalent to nodes
644 -- from the source program (e.g. the allocator built for build-in-place
645 -- case), and the Comes_From_Source flag is deliberately set.
647 -- Error_Posted
648 -- This flag is used to avoid multiple error messages being posted on or
649 -- referring to the same node. This flag is set if an error message
650 -- refers to a node or is posted on its source location, and has the
651 -- effect of inhibiting further messages involving this same node.
653 -----------------------
654 -- Modify_Tree_For_C --
655 -----------------------
657 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
658 -- in ways that help match the semantics better with C, easing the task of
659 -- interfacing to C code generators (other than GCC, where the work is done
660 -- in gigi, and there is no point in changing that), and also making life
661 -- easier for Cprint in generating C source code.
663 -- The current modifications implemented are as follows:
665 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
666 -- are eliminated from the tree (since these operations do not exist in
667 -- C), and the operations are rewritten in terms of logical shifts and
668 -- other logical operations that do exist in C. See Exp_Ch4 expansion
669 -- routines for these operators for details of the transformations made.
671 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
672 -- less than the word size (since other values are not well-defined in
673 -- C). This is done using an explicit test if necessary.
675 -- Min and Max attributes are expanded into equivalent if expressions,
676 -- dealing properly with side effect issues.
678 -- Mod for signed integer types is expanded into equivalent expressions
679 -- using Rem (which is % in C) and other C-available operators.
681 -- The Actions list of an Expression_With_Actions node does not contain
682 -- any declarations,(so that DO X, .. Y IN Z becomes (X, .. Y, Z) in C).
684 ------------------------------------
685 -- Description of Semantic Fields --
686 ------------------------------------
688 -- The meaning of the syntactic fields is generally clear from their names
689 -- without any further description, since the names are chosen to
690 -- correspond very closely to the syntax in the reference manual. This
691 -- section describes the usage of the semantic fields, which are used to
692 -- contain additional information determined during semantic analysis.
694 -- ABE_Is_Certain (Flag18-Sem)
695 -- This flag is set in an instantiation node or a call node is determined
696 -- to be sure to raise an ABE. This is used to trigger special handling
697 -- of such cases, particularly in the instantiation case where we avoid
698 -- instantiating the body if this flag is set. This flag is also present
699 -- in an N_Formal_Package_Declaration_Node since formal package
700 -- declarations are treated like instantiations, but it is always set to
701 -- False in this context.
703 -- Accept_Handler_Records (List5-Sem)
704 -- This field is present only in an N_Accept_Alternative node. It is used
705 -- to temporarily hold the exception handler records from an accept
706 -- statement in a selective accept. These exception handlers will
707 -- eventually be placed in the Handler_Records list of the procedure
708 -- built for this accept (see Expand_N_Selective_Accept procedure in
709 -- Exp_Ch9 for further details).
711 -- Access_Types_To_Process (Elist2-Sem)
712 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
713 -- Contains the list of access types which may require specific treatment
714 -- when the nature of the type completion is completely known. An example
715 -- of such treatment is the generation of the associated_final_chain.
717 -- Actions (List1-Sem)
718 -- This field contains a sequence of actions that are associated with the
719 -- node holding the field. See the individual node types for details of
720 -- how this field is used, as well as the description of the specific use
721 -- for a particular node type.
723 -- Activation_Chain_Entity (Node3-Sem)
724 -- This is used in tree nodes representing task activators (blocks,
725 -- subprogram bodies, package declarations, and task bodies). It is
726 -- initially Empty, and then gets set to point to the entity for the
727 -- declared Activation_Chain variable when the first task is declared.
728 -- When tasks are declared in the corresponding declarative region this
729 -- entity is located by name (its name is always _Chain) and the declared
730 -- tasks are added to the chain. Note that N_Extended_Return_Statement
731 -- does not have this attribute, although it does have an activation
732 -- chain. This chain is used to store the tasks temporarily, and is not
733 -- used for activating them. On successful completion of the return
734 -- statement, the tasks are moved to the caller's chain, and the caller
735 -- activates them.
737 -- Acts_As_Spec (Flag4-Sem)
738 -- A flag set in the N_Subprogram_Body node for a subprogram body which
739 -- is acting as its own spec, except in the case of a library level
740 -- subprogram, in which case the flag is set on the parent compilation
741 -- unit node instead.
743 -- Actual_Designated_Subtype (Node4-Sem)
744 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
745 -- needs to known the dynamic constrained subtype of the designated
746 -- object, this attribute is set to that type. This is done for
747 -- N_Free_Statements for access-to-classwide types and access to
748 -- unconstrained packed array types, and for N_Explicit_Dereference when
749 -- the designated type is an unconstrained packed array and the
750 -- dereference is the prefix of a 'Size attribute reference.
752 -- Address_Warning_Posted (Flag18-Sem)
753 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
754 -- posted a warning for the address clause regarding size or alignment
755 -- issues. Used to inhibit multiple redundant messages.
757 -- Aggregate_Bounds (Node3-Sem)
758 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
759 -- known at compile time, this field points to an N_Range node with those
760 -- bounds. Otherwise Empty.
762 -- All_Others (Flag11-Sem)
763 -- Present in an N_Others_Choice node. This flag is set for an others
764 -- exception where all exceptions are to be caught, even those that are
765 -- not normally handled (in particular the tasking abort signal). This
766 -- is used for translation of the at end handler into a normal exception
767 -- handler.
769 -- Aspect_Rep_Item (Node2-Sem)
770 -- Present in N_Aspect_Specification nodes. Points to the corresponding
771 -- pragma/attribute definition node used to process the aspect.
773 -- Assignment_OK (Flag15-Sem)
774 -- This flag is set in a subexpression node for an object, indicating
775 -- that the associated object can be modified, even if this would not
776 -- normally be permissible (either by direct assignment, or by being
777 -- passed as an out or in-out parameter). This is used by the expander
778 -- for a number of purposes, including initialization of constants and
779 -- limited type objects (such as tasks), setting discriminant fields,
780 -- setting tag values, etc. N_Object_Declaration nodes also have this
781 -- flag defined. Here it is used to indicate that an initialization
782 -- expression is valid, even where it would normally not be allowed
783 -- (e.g. where the type involved is limited).
785 -- Associated_Node (Node4-Sem)
786 -- Present in nodes that can denote an entity: identifiers, character
787 -- literals, operator symbols, expanded names, operator nodes, and
788 -- attribute reference nodes (all these nodes have an Entity field).
789 -- This field is also present in N_Aggregate, N_Selected_Component, and
790 -- N_Extension_Aggregate nodes. This field is used in generic processing
791 -- to create links between the generic template and the generic copy.
792 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
793 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
794 -- the normal function of Entity is not required at the point where the
795 -- Associated_Node is set. Note also, that in generic templates, this
796 -- means that the Entity field does not necessarily point to an Entity.
797 -- Since the back end is expected to ignore generic templates, this is
798 -- harmless.
800 -- Atomic_Sync_Required (Flag14-Sem)
801 -- This flag is set on a node for which atomic synchronization is
802 -- required for the corresponding reference or modification.
804 -- At_End_Proc (Node1)
805 -- This field is present in an N_Handled_Sequence_Of_Statements node.
806 -- It contains an identifier reference for the cleanup procedure to be
807 -- called. See description of this node for further details.
809 -- Backwards_OK (Flag6-Sem)
810 -- A flag present in the N_Assignment_Statement node. It is used only
811 -- if the type being assigned is an array type, and is set if analysis
812 -- determines that it is definitely safe to do the copy backwards, i.e.
813 -- starting at the highest addressed element. This is the case if either
814 -- the operands do not overlap, or they may overlap, but if they do,
815 -- then the left operand is at a higher address than the right operand.
817 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
818 -- means that the front end could not determine that either direction is
819 -- definitely safe, and a runtime check may be required if the backend
820 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
821 -- set, it means that the front end can assure no overlap of operands.
823 -- Body_To_Inline (Node3-Sem)
824 -- Present in subprogram declarations. Denotes analyzed but unexpanded
825 -- body of subprogram, to be used when inlining calls. Present when the
826 -- subprogram has an Inline pragma and inlining is enabled. If the
827 -- declaration is completed by a renaming_as_body, and the renamed en-
828 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
829 -- which is used directly in later calls to the original subprogram.
831 -- Body_Required (Flag13-Sem)
832 -- A flag that appears in the N_Compilation_Unit node indicating that
833 -- the corresponding unit requires a body. For the package case, this
834 -- indicates that a completion is required. In Ada 95, if the flag is not
835 -- set for the package case, then a body may not be present. In Ada 83,
836 -- if the flag is not set for the package case, then body is optional.
837 -- For a subprogram declaration, the flag is set except in the case where
838 -- a pragma Import or Interface applies, in which case no body is
839 -- permitted (in Ada 83 or Ada 95).
841 -- By_Ref (Flag5-Sem)
842 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
843 -- this flag is set when the returned expression is already allocated on
844 -- the secondary stack and thus the result is passed by reference rather
845 -- than copied another time.
847 -- Cleanup_Actions (List5-Sem)
848 -- Present in block statements created for transient blocks, contains
849 -- additional cleanup actions carried over from the transient scope.
851 -- Check_Address_Alignment (Flag11-Sem)
852 -- A flag present in N_Attribute_Definition clause for a 'Address
853 -- attribute definition. This flag is set if a dynamic check should be
854 -- generated at the freeze point for the entity to which this address
855 -- clause applies. The reason that we need this flag is that we want to
856 -- check for range checks being suppressed at the point where the
857 -- attribute definition clause is given, rather than testing this at the
858 -- freeze point.
860 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
861 -- Present in N_Simple_Return_Statement nodes. True if this node was
862 -- constructed as part of the N_Extended_Return_Statement expansion.
864 -- Compile_Time_Known_Aggregate (Flag18-Sem)
865 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
866 -- evaluated at compile time without raising constraint error. Such
867 -- aggregates can be passed as is the back end without any expansion.
868 -- See Exp_Aggr for specific conditions under which this flag gets set.
870 -- Componentwise_Assignment (Flag14-Sem)
871 -- Present in N_Assignment_Statement nodes. Set for a record assignment
872 -- where all that needs doing is to expand it into component-by-component
873 -- assignments. This is used internally for the case of tagged types with
874 -- rep clauses, where we need to avoid recursion (we don't want to try to
875 -- generate a call to the primitive operation, because this is the case
876 -- where we are compiling the primitive operation). Note that when we are
877 -- expanding component assignments in this case, we never assign the _tag
878 -- field, but we recursively assign components of the parent type.
880 -- Condition_Actions (List3-Sem)
881 -- This field appears in else-if nodes and in the iteration scheme node
882 -- for while loops. This field is only used during semantic processing to
883 -- temporarily hold actions inserted into the tree. In the tree passed
884 -- to gigi, the condition actions field is always set to No_List. For
885 -- details on how this field is used, see the routine Insert_Actions in
886 -- package Exp_Util, and also the expansion routines for the relevant
887 -- nodes.
889 -- Context_Pending (Flag16-Sem)
890 -- This field appears in Compilation_Unit nodes, to indicate that the
891 -- context of the unit is being compiled. Used to detect circularities
892 -- that are not otherwise detected by the loading mechanism. Such
893 -- circularities can occur in the presence of limited and non-limited
894 -- with_clauses that mention the same units.
896 -- Controlling_Argument (Node1-Sem)
897 -- This field is set in procedure and function call nodes if the call
898 -- is a dispatching call (it is Empty for a non-dispatching call). It
899 -- indicates the source of the call's controlling tag. For procedure
900 -- calls, the Controlling_Argument is one of the actuals. For function
901 -- that has a dispatching result, it is an entity in the context of the
902 -- call that can provide a tag, or else it is the tag of the root type
903 -- of the class. It can also specify a tag directly rather than being a
904 -- tagged object. The latter is needed by the implementations of AI-239
905 -- and AI-260.
907 -- Conversion_OK (Flag14-Sem)
908 -- A flag set on type conversion nodes to indicate that the conversion
909 -- is to be considered as being valid, even though it is the case that
910 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
911 -- Fixed_Value and Integer_Value, for internal conversions done for
912 -- fixed-point operations, and for certain conversions for calls to
913 -- initialization procedures. If Conversion_OK is set, then Etype must be
914 -- set (the analyzer assumes that Etype has been set). For the case of
915 -- fixed-point operands, it also indicates that the conversion is to be
916 -- direct conversion of the underlying integer result, with no regard to
917 -- the small operand.
919 -- Convert_To_Return_False (Flag13-Sem)
920 -- Present in N_Raise_Expression nodes that appear in the body of the
921 -- special predicateM function used to test a predicate in the context
922 -- of a membership test, where raise expression results in returning a
923 -- value of False rather than raising an exception.
925 -- Corresponding_Aspect (Node3-Sem)
926 -- Present in N_Pragma node. Used to point back to the source aspect from
927 -- the corresponding pragma. This field is Empty for source pragmas.
929 -- Corresponding_Body (Node5-Sem)
930 -- This field is set in subprogram declarations, package declarations,
931 -- entry declarations of protected types, and in generic units. It points
932 -- to the defining entity for the corresponding body (NOT the node for
933 -- the body itself).
935 -- Corresponding_Formal_Spec (Node3-Sem)
936 -- This field is set in subprogram renaming declarations, where it points
937 -- to the defining entity for a formal subprogram in the case where the
938 -- renaming corresponds to a generic formal subprogram association in an
939 -- instantiation. The field is Empty if the renaming does not correspond
940 -- to such a formal association.
942 -- Corresponding_Generic_Association (Node5-Sem)
943 -- This field is defined for object declarations and object renaming
944 -- declarations. It is set for the declarations within an instance that
945 -- map generic formals to their actuals. If set, the field points to
946 -- a generic_association which is the original parent of the expression
947 -- or name appearing in the declaration. This simplifies ASIS queries.
949 -- Corresponding_Integer_Value (Uint4-Sem)
950 -- This field is set in real literals of fixed-point types (it is not
951 -- used for floating-point types). It contains the integer value used
952 -- to represent the fixed-point value. It is also set on the universal
953 -- real literals used to represent bounds of fixed-point base types
954 -- and their first named subtypes.
956 -- Corresponding_Spec (Node5-Sem)
957 -- This field is set in subprogram, package, task, and protected body
958 -- nodes, where it points to the defining entity in the corresponding
959 -- spec. The attribute is also set in N_With_Clause nodes where it points
960 -- to the defining entity for the with'ed spec, and in a subprogram
961 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
962 -- if there is no corresponding spec, as in the case of a subprogram body
963 -- that serves as its own spec.
965 -- In Ada 2012, Corresponding_Spec is set on expression functions that
966 -- complete a subprogram declaration.
968 -- Corresponding_Spec_Of_Stub (Node2-Sem)
969 -- This field is present in subprogram, package, task and protected body
970 -- stubs where it points to the corresponding spec of the stub. Due to
971 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
973 -- Corresponding_Stub (Node3-Sem)
974 -- This field is present in an N_Subunit node. It holds the node in
975 -- the parent unit that is the stub declaration for the subunit. It is
976 -- set when analysis of the stub forces loading of the proper body. If
977 -- expansion of the proper body creates new declarative nodes, they are
978 -- inserted at the point of the corresponding_stub.
980 -- Dcheck_Function (Node5-Sem)
981 -- This field is present in an N_Variant node, It references the entity
982 -- for the discriminant checking function for the variant.
984 -- Default_Expression (Node5-Sem)
985 -- This field is Empty if there is no default expression. If there is a
986 -- simple default expression (one with no side effects), then this field
987 -- simply contains a copy of the Expression field (both point to the tree
988 -- for the default expression). Default_Expression is used for
989 -- conformance checking.
991 -- Default_Storage_Pool (Node3-Sem)
992 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
993 -- copy of Opt.Default_Pool at the end of the compilation unit. See
994 -- package Opt for details. This is used for inheriting the
995 -- Default_Storage_Pool in child units.
997 -- Discr_Check_Funcs_Built (Flag11-Sem)
998 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
999 -- discriminant checking functions are constructed. The purpose is to
1000 -- avoid attempting to set these functions more than once.
1002 -- Do_Accessibility_Check (Flag13-Sem)
1003 -- This flag is set on N_Parameter_Specification nodes to indicate
1004 -- that an accessibility check is required for the parameter. It is
1005 -- not yet decided who takes care of this check (TBD ???).
1007 -- Do_Discriminant_Check (Flag1-Sem)
1008 -- This flag is set on N_Selected_Component nodes to indicate that a
1009 -- discriminant check is required using the discriminant check routine
1010 -- associated with the selector. The actual check is generated by the
1011 -- expander when processing selected components. In the case of
1012 -- Unchecked_Union, the flag is also set, but no discriminant check
1013 -- routine is associated with the selector, and the expander does not
1014 -- generate a check. This flag is also present in assignment statements
1015 -- (and set if the assignment requires a discriminant check), and in type
1016 -- conversion nodes (and set if the conversion requires a check).
1018 -- Do_Division_Check (Flag13-Sem)
1019 -- This flag is set on a division operator (/ mod rem) to indicate
1020 -- that a zero divide check is required. The actual check is dealt
1021 -- with by the backend (all the front end does is to set the flag).
1023 -- Do_Length_Check (Flag4-Sem)
1024 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1025 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1026 -- is required. It is not determined who deals with this flag (???).
1028 -- Do_Overflow_Check (Flag17-Sem)
1029 -- This flag is set on an operator where an overflow check is required on
1030 -- the operation. The actual check is dealt with by the backend (all the
1031 -- front end does is to set the flag). The other cases where this flag is
1032 -- used is on a Type_Conversion node and for attribute reference nodes.
1033 -- For a type conversion, it means that the conversion is from one base
1034 -- type to another, and the value may not fit in the target base type.
1035 -- See also the description of Do_Range_Check for this case. The only
1036 -- attribute references which use this flag are Pred and Succ, where it
1037 -- means that the result should be checked for going outside the base
1038 -- range. Note that this flag is not set for modular types. This flag is
1039 -- also set on if and case expression nodes if we are operating in either
1040 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1041 -- properly process overflow checking for dependent expressions).
1043 -- Do_Range_Check (Flag9-Sem)
1044 -- This flag is set on an expression which appears in a context where a
1045 -- range check is required. The target type is clear from the context.
1046 -- The contexts in which this flag can appear are the following:
1048 -- Right side of an assignment. In this case the target type is
1049 -- taken from the left side of the assignment, which is referenced
1050 -- by the Name of the N_Assignment_Statement node.
1052 -- Subscript expressions in an indexed component. In this case the
1053 -- target type is determined from the type of the array, which is
1054 -- referenced by the Prefix of the N_Indexed_Component node.
1056 -- Argument expression for a parameter, appearing either directly in
1057 -- the Parameter_Associations list of a call or as the Expression of an
1058 -- N_Parameter_Association node that appears in this list. In either
1059 -- case, the check is against the type of the formal. Note that the
1060 -- flag is relevant only in IN and IN OUT parameters, and will be
1061 -- ignored for OUT parameters, where no check is required in the call,
1062 -- and if a check is required on the return, it is generated explicitly
1063 -- with a type conversion.
1065 -- Initialization expression for the initial value in an object
1066 -- declaration. In this case the Do_Range_Check flag is set on
1067 -- the initialization expression, and the check is against the
1068 -- range of the type of the object being declared. This includes the
1069 -- cases of expressions providing default discriminant values, and
1070 -- expressions used to initialize record components.
1072 -- The expression of a type conversion. In this case the range check is
1073 -- against the target type of the conversion. See also the use of
1074 -- Do_Overflow_Check on a type conversion. The distinction is that the
1075 -- overflow check protects against a value that is outside the range of
1076 -- the target base type, whereas a range check checks that the
1077 -- resulting value (which is a value of the base type of the target
1078 -- type), satisfies the range constraint of the target type.
1080 -- Note: when a range check is required in contexts other than those
1081 -- listed above (e.g. in a return statement), an additional type
1082 -- conversion node is introduced to represent the required check.
1084 -- A special case arises for the arguments of the Pred/Succ attributes.
1085 -- Here the range check needed is against First + 1 .. Last (Pred) or
1086 -- First .. Last - 1 (Succ) of the corresponding base type. Essentially
1087 -- these checks are what would be performed within the implicit body of
1088 -- the functions that correspond to these attributes. In these cases,
1089 -- the Do_Range check flag is set on the argument to the attribute
1090 -- function, and the back end must special case the appropriate range
1091 -- to check against.
1093 -- Do_Storage_Check (Flag17-Sem)
1094 -- This flag is set in an N_Allocator node to indicate that a storage
1095 -- check is required for the allocation, or in an N_Subprogram_Body node
1096 -- to indicate that a stack check is required in the subprogram prologue.
1097 -- The N_Allocator case is handled by the routine that expands the call
1098 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1099 -- backend, and all the semantics does is set the flag.
1101 -- Do_Tag_Check (Flag13-Sem)
1102 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1103 -- N_Procedure_Call_Statement, N_Type_Conversion,
1104 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1105 -- node to indicate that the tag check can be suppressed. It is not
1106 -- yet decided how this flag is used (TBD ???).
1108 -- Elaborate_Present (Flag4-Sem)
1109 -- This flag is set in the N_With_Clause node to indicate that pragma
1110 -- Elaborate pragma appears for the with'ed units.
1112 -- Elaborate_All_Desirable (Flag9-Sem)
1113 -- This flag is set in the N_With_Clause mode to indicate that the static
1114 -- elaboration processing has determined that an Elaborate_All pragma is
1115 -- desirable for correct elaboration for this unit.
1117 -- Elaborate_All_Present (Flag14-Sem)
1118 -- This flag is set in the N_With_Clause node to indicate that a
1119 -- pragma Elaborate_All pragma appears for the with'ed units.
1121 -- Elaborate_Desirable (Flag11-Sem)
1122 -- This flag is set in the N_With_Clause mode to indicate that the static
1123 -- elaboration processing has determined that an Elaborate pragma is
1124 -- desirable for correct elaboration for this unit.
1126 -- Else_Actions (List3-Sem)
1127 -- This field is present in if expression nodes. During code
1128 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1129 -- actions at an appropriate place in the tree to get elaborated at the
1130 -- right time. For if expressions, we have to be sure that the actions
1131 -- for the Else branch are only elaborated if the condition is False.
1132 -- The Else_Actions field is used as a temporary parking place for
1133 -- these actions. The final tree is always rewritten to eliminate the
1134 -- need for this field, so in the tree passed to Gigi, this field is
1135 -- always set to No_List.
1137 -- Enclosing_Variant (Node2-Sem)
1138 -- This field is present in the N_Variant node and identifies the Node_Id
1139 -- corresponding to the immediately enclosing variant when the variant is
1140 -- nested, and N_Empty otherwise. Set during semantic processing of the
1141 -- variant part of a record type.
1143 -- Entity (Node4-Sem)
1144 -- Appears in all direct names (identifiers, character literals, and
1145 -- operator symbols), as well as expanded names, and attributes that
1146 -- denote entities, such as 'Class. Points to entity for corresponding
1147 -- defining occurrence. Set after name resolution. For identifiers in a
1148 -- WITH list, the corresponding defining occurrence is in a separately
1149 -- compiled file, and Entity must be set by the library Load procedure.
1151 -- Note: During name resolution, the value in Entity may be temporarily
1152 -- incorrect (e.g. during overload resolution, Entity is initially set to
1153 -- the first possible correct interpretation, and then later modified if
1154 -- necessary to contain the correct value after resolution).
1156 -- Note: This field overlaps Associated_Node, which is used during
1157 -- generic processing (see Sem_Ch12 for details). Note also that in
1158 -- generic templates, this means that the Entity field does not always
1159 -- point to an Entity. Since the back end is expected to ignore generic
1160 -- templates, this is harmless.
1162 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1163 -- It is used only for stream attributes definition clauses. In this
1164 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1165 -- conceptually at the point of the clause. Thus the visibility of the
1166 -- attribute definition clause (in the sense of 8.3(23) as amended by
1167 -- AI-195) can be checked by testing the visibility of that subprogram.
1169 -- Note: Normally the Entity field of an identifier points to the entity
1170 -- for the corresponding defining identifier, and hence the Chars field
1171 -- of an identifier will match the Chars field of the entity. However,
1172 -- there is no requirement that these match, and there are obscure cases
1173 -- of generated code where they do not match.
1175 -- Note: Ada 2012 aspect specifications require additional links between
1176 -- identifiers and various attributes. These attributes can be of
1177 -- arbitrary types, and the entity field of identifiers that denote
1178 -- aspects must be used to store arbitrary expressions for later semantic
1179 -- checks. See section on aspect specifications for details.
1181 -- Entity_Or_Associated_Node (Node4-Sem)
1182 -- A synonym for both Entity and Associated_Node. Used by convention in
1183 -- the code when referencing this field in cases where it is not known
1184 -- whether the field contains an Entity or an Associated_Node.
1186 -- Etype (Node5-Sem)
1187 -- Appears in all expression nodes, all direct names, and all entities.
1188 -- Points to the entity for the related type. Set after type resolution.
1189 -- Normally this is the actual subtype of the expression. However, in
1190 -- certain contexts such as the right side of an assignment, subscripts,
1191 -- arguments to calls, returned value in a function, initial value etc.
1192 -- it is the desired target type. In the event that this is different
1193 -- from the actual type, the Do_Range_Check flag will be set if a range
1194 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1195 -- points to an essentially arbitrary choice from the possible set of
1196 -- types.
1198 -- Exception_Junk (Flag8-Sem)
1199 -- This flag is set in a various nodes appearing in a statement sequence
1200 -- to indicate that the corresponding node is an artifact of the
1201 -- generated code for exception handling, and should be ignored when
1202 -- analyzing the control flow of the relevant sequence of statements
1203 -- (e.g. to check that it does not end with a bad return statement).
1205 -- Exception_Label (Node5-Sem)
1206 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1207 -- to be used for transforming the corresponding exception into a goto,
1208 -- or contains Empty, if this exception is not to be transformed. Also
1209 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1210 -- that there may be a local raise for the handler, so that expansion
1211 -- to allow a goto is required (and this field contains the label for
1212 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1214 -- Expansion_Delayed (Flag11-Sem)
1215 -- Set on aggregates and extension aggregates that need a top-down rather
1216 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1217 -- up. For nested aggregates the expansion is delayed until the enclosing
1218 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1219 -- delay it we set this flag. This is done to avoid creating a temporary
1220 -- for each level of a nested aggregates, and also to prevent the
1221 -- premature generation of constraint checks. This is also a requirement
1222 -- if we want to generate the proper attachment to the internal
1223 -- finalization lists (for record with controlled components). Top down
1224 -- expansion of aggregates is also used for in-place array aggregate
1225 -- assignment or initialization. When the full context is known, the
1226 -- target of the assignment or initialization is used to generate the
1227 -- left-hand side of individual assignment to each sub-component.
1229 -- First_Inlined_Subprogram (Node3-Sem)
1230 -- Present in the N_Compilation_Unit node for the main program. Points
1231 -- to a chain of entities for subprograms that are to be inlined. The
1232 -- Next_Inlined_Subprogram field of these entities is used as a link
1233 -- pointer with Empty marking the end of the list. This field is Empty
1234 -- if there are no inlined subprograms or inlining is not active.
1236 -- First_Named_Actual (Node4-Sem)
1237 -- Present in procedure call statement and function call nodes, and also
1238 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1239 -- named parameter where parameters are ordered by declaration order (as
1240 -- opposed to the actual order in the call which may be different due to
1241 -- named associations). Note: this field points to the explicit actual
1242 -- parameter itself, not the N_Parameter_Association node (its parent).
1244 -- First_Real_Statement (Node2-Sem)
1245 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1246 -- Empty. Used only when declarations are moved into the statement part
1247 -- of a construct as a result of wrapping an AT END handler that is
1248 -- required to cover the declarations. In this case, this field is used
1249 -- to remember the location in the statements list of the first real
1250 -- statement, i.e. the statement that used to be first in the statement
1251 -- list before the declarations were prepended.
1253 -- First_Subtype_Link (Node5-Sem)
1254 -- Present in N_Freeze_Entity node for an anonymous base type that is
1255 -- implicitly created by the declaration of a first subtype. It points
1256 -- to the entity for the first subtype.
1258 -- Float_Truncate (Flag11-Sem)
1259 -- A flag present in type conversion nodes. This is used for float to
1260 -- integer conversions where truncation is required rather than rounding.
1262 -- Forwards_OK (Flag5-Sem)
1263 -- A flag present in the N_Assignment_Statement node. It is used only
1264 -- if the type being assigned is an array type, and is set if analysis
1265 -- determines that it is definitely safe to do the copy forwards, i.e.
1266 -- starting at the lowest addressed element. This is the case if either
1267 -- the operands do not overlap, or they may overlap, but if they do,
1268 -- then the left operand is at a lower address than the right operand.
1270 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1271 -- means that the front end could not determine that either direction is
1272 -- definitely safe, and a runtime check may be required if the backend
1273 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1274 -- set, it means that the front end can assure no overlap of operands.
1276 -- From_Aspect_Specification (Flag13-Sem)
1277 -- Processing of aspect specifications typically results in insertion in
1278 -- the tree of corresponding pragma or attribute definition clause nodes.
1279 -- These generated nodes have the From_Aspect_Specification flag set to
1280 -- indicate that they came from aspect specifications originally.
1282 -- From_At_End (Flag4-Sem)
1283 -- This flag is set on an N_Raise_Statement node if it corresponds to
1284 -- the reraise statement generated as the last statement of an AT END
1285 -- handler when SJLJ exception handling is active. It is used to stop
1286 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1287 -- because if the restriction is set, the reraise is not generated.
1289 -- From_At_Mod (Flag4-Sem)
1290 -- This flag is set on the attribute definition clause node that is
1291 -- generated by a transformation of an at mod phrase in a record
1292 -- representation clause. This is used to give slightly different (Ada 83
1293 -- compatible) semantics to such a clause, namely it is used to specify a
1294 -- minimum acceptable alignment for the base type and all subtypes. In
1295 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1296 -- must be a multiple of the given value, and the representation clause
1297 -- is considered to be type specific instead of subtype specific.
1299 -- From_Conditional_Expression (Flag1-Sem)
1300 -- This flag is set on if and case statements generated by the expansion
1301 -- of if and case expressions respectively. The flag is used to suppress
1302 -- any finalization of controlled objects found within these statements.
1304 -- From_Default (Flag6-Sem)
1305 -- This flag is set on the subprogram renaming declaration created in an
1306 -- instance for a formal subprogram, when the formal is declared with a
1307 -- box, and there is no explicit actual. If the flag is present, the
1308 -- declaration is treated as an implicit reference to the formal in the
1309 -- ali file.
1311 -- Generalized_Indexing (Node4-Sem)
1312 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1313 -- that are Ada 2012 container indexing operations. The value of the
1314 -- attribute is a function call (possibly dereferenced) that corresponds
1315 -- to the proper expansion of the source indexing operation. Before
1316 -- expansion, the source node is rewritten as the resolved generalized
1317 -- indexing. In ASIS mode, the expansion does not take place, so that
1318 -- the source is preserved and properly annotated with types.
1320 -- Generic_Parent (Node5-Sem)
1321 -- Generic_Parent is defined on declaration nodes that are instances. The
1322 -- value of Generic_Parent is the generic entity from which the instance
1323 -- is obtained. Generic_Parent is also defined for the renaming
1324 -- declarations and object declarations created for the actuals in an
1325 -- instantiation. The generic parent of such a declaration is the
1326 -- corresponding generic association in the Instantiation node.
1328 -- Generic_Parent_Type (Node4-Sem)
1329 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1330 -- actuals of formal private and derived types. Within the instance, the
1331 -- operations on the actual are those inherited from the parent. For a
1332 -- formal private type, the parent type is the generic type itself. The
1333 -- Generic_Parent_Type is also used in an instance to determine whether a
1334 -- private operation overrides an inherited one.
1336 -- Handler_List_Entry (Node2-Sem)
1337 -- This field is present in N_Object_Declaration nodes. It is set only
1338 -- for the Handler_Record entry generated for an exception in zero cost
1339 -- exception handling mode. It references the corresponding item in the
1340 -- handler list, and is used to delete this entry if the corresponding
1341 -- handler is deleted during optimization. For further details on why
1342 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1344 -- Has_Dereference_Action (Flag13-Sem)
1345 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1346 -- indicate that the expansion has aready produced a call to primitive
1347 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1348 -- Such dereference actions are produced for debugging purposes.
1350 -- Has_Dynamic_Length_Check (Flag10-Sem)
1351 -- This flag is present in all expression nodes. It is set to indicate
1352 -- that one of the routines in unit Checks has generated a length check
1353 -- action which has been inserted at the flagged node. This is used to
1354 -- avoid the generation of duplicate checks.
1356 -- Has_Dynamic_Range_Check (Flag12-Sem)
1357 -- This flag is present in N_Subtype_Declaration nodes and on all
1358 -- expression nodes. It is set to indicate that one of the routines in
1359 -- unit Checks has generated a range check action which has been inserted
1360 -- at the flagged node. This is used to avoid the generation of duplicate
1361 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1362 -- it mean in that context???
1364 -- Has_Local_Raise (Flag8-Sem)
1365 -- Present in exception handler nodes. Set if the handler can be entered
1366 -- via a local raise that gets transformed to a goto statement. This will
1367 -- always be set if Local_Raise_Statements is non-empty, but can also be
1368 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1369 -- nodes requiring generation of back end checks.
1371 -- Has_No_Elaboration_Code (Flag17-Sem)
1372 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1373 -- or not elaboration code is present for this unit. It is initially set
1374 -- true for subprogram specs and bodies and for all generic units and
1375 -- false for non-generic package specs and bodies. Gigi may set the flag
1376 -- in the non-generic package case if it determines that no elaboration
1377 -- code is generated. Note that this flag is not related to the
1378 -- Is_Preelaborated status, there can be preelaborated packages that
1379 -- generate elaboration code, and non-preelaborated packages which do
1380 -- not generate elaboration code.
1382 -- Has_Pragma_Suppress_All (Flag14-Sem)
1383 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1384 -- pragma appears anywhere in the unit. This accommodates the rather
1385 -- strange placement rules of other compilers (DEC permits it at the
1386 -- end of a unit, and Rational allows it as a program unit pragma). We
1387 -- allow it anywhere at all, and consider it equivalent to a pragma
1388 -- Suppress (All_Checks) appearing at the start of the configuration
1389 -- pragmas for the unit.
1391 -- Has_Private_View (Flag11-Sem)
1392 -- A flag present in generic nodes that have an entity, to indicate that
1393 -- the node has a private type. Used to exchange private and full
1394 -- declarations if the visibility at instantiation is different from the
1395 -- visibility at generic definition.
1397 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1398 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1399 -- flag the presence of a pragma Relative_Deadline.
1401 -- Has_Self_Reference (Flag13-Sem)
1402 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1403 -- of the expressions contains an access attribute reference to the
1404 -- enclosing type. Such a self-reference can only appear in default-
1405 -- initialized aggregate for a record type.
1407 -- Has_SP_Choice (Flag15-Sem)
1408 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1409 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1410 -- True if the Discrete_Choices list has at least one occurrence of a
1411 -- statically predicated subtype.
1413 -- Has_Storage_Size_Pragma (Flag5-Sem)
1414 -- A flag present in an N_Task_Definition node to flag the presence of a
1415 -- Storage_Size pragma.
1417 -- Has_Wide_Character (Flag11-Sem)
1418 -- Present in string literals, set if any wide character (i.e. character
1419 -- code outside the Character range but within Wide_Character range)
1420 -- appears in the string. Used to implement pragma preference rules.
1422 -- Has_Wide_Wide_Character (Flag13-Sem)
1423 -- Present in string literals, set if any wide character (i.e. character
1424 -- code outside the Wide_Character range) appears in the string. Used to
1425 -- implement pragma preference rules.
1427 -- Header_Size_Added (Flag11-Sem)
1428 -- Present in N_Attribute_Reference nodes, set only for attribute
1429 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1430 -- hidden list header used by the runtime finalization support has been
1431 -- added to the size of the prefix. The flag also prevents the infinite
1432 -- expansion of the same attribute in the said context.
1434 -- Hidden_By_Use_Clause (Elist4-Sem)
1435 -- An entity list present in use clauses that appear within
1436 -- instantiations. For the resolution of local entities, entities
1437 -- introduced by these use clauses have priority over global ones, and
1438 -- outer entities must be explicitly hidden/restored on exit.
1440 -- Implicit_With (Flag16-Sem)
1441 -- This flag is set in the N_With_Clause node that is implicitly
1442 -- generated for runtime units that are loaded by the expander, and also
1443 -- for package System, if it is loaded implicitly by a use of the
1444 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1445 -- as well.
1447 -- Implicit_With_From_Instantiation (Flag12-Sem)
1448 -- Set in N_With_Clause nodes from generic instantiations.
1450 -- Import_Interface_Present (Flag16-Sem)
1451 -- This flag is set in an Interface or Import pragma if a matching
1452 -- pragma of the other kind is also present. This is used to avoid
1453 -- generating some unwanted error messages.
1455 -- Includes_Infinities (Flag11-Sem)
1456 -- This flag is present in N_Range nodes. It is set for the range of
1457 -- unconstrained float types defined in Standard, which include not only
1458 -- the given range of values, but also legitimately can include infinite
1459 -- values. This flag is false for any float type for which an explicit
1460 -- range is given by the programmer, even if that range is identical to
1461 -- the range for Float.
1463 -- Incomplete_View (Node2-Sem)
1464 -- Present in full type declarations that are completions of incomplete
1465 -- type declarations. Denotes the corresponding incomplete type
1466 -- declaration. Used to simplify the retrieval of primitive operations
1467 -- that may be declared between the partial and the full view of an
1468 -- untagged type.
1470 -- Inherited_Discriminant (Flag13-Sem)
1471 -- This flag is present in N_Component_Association nodes. It indicates
1472 -- that a given component association in an extension aggregate is the
1473 -- value obtained from a constraint on an ancestor. Used to prevent
1474 -- double expansion when the aggregate has expansion delayed.
1476 -- Instance_Spec (Node5-Sem)
1477 -- This field is present in generic instantiation nodes, and also in
1478 -- formal package declaration nodes (formal package declarations are
1479 -- treated in a manner very similar to package instantiations). It points
1480 -- to the node for the spec of the instance, inserted as part of the
1481 -- semantic processing for instantiations in Sem_Ch12.
1483 -- Is_Accessibility_Actual (Flag13-Sem)
1484 -- Present in N_Parameter_Association nodes. True if the parameter is
1485 -- an extra actual that carries the accessibility level of the actual
1486 -- for an access parameter, in a function that dispatches on result and
1487 -- is called in a dispatching context. Used to prevent a formal/actual
1488 -- mismatch when the call is rewritten as a dispatching call.
1490 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1491 -- A flag set in a Block_Statement node to indicate that it is the
1492 -- expansion of an asynchronous entry call. Such a block needs cleanup
1493 -- handler to assure that the call is cancelled.
1495 -- Is_Boolean_Aspect (Flag16-Sem)
1496 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1497 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1499 -- Is_Checked (Flag11-Sem)
1500 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1501 -- assertion aspect or pragma, or check pragma for an assertion, that
1502 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1503 -- is set (they cannot both be set), then this means that the status of
1504 -- the pragma has been checked at the appropriate point and should not
1505 -- be further modified (in some cases these flags are copied when a
1506 -- pragma is rewritten).
1508 -- Is_Component_Left_Opnd (Flag13-Sem)
1509 -- Is_Component_Right_Opnd (Flag14-Sem)
1510 -- Present in concatenation nodes, to indicate that the corresponding
1511 -- operand is of the component type of the result. Used in resolving
1512 -- concatenation nodes in instances.
1514 -- Is_Delayed_Aspect (Flag14-Sem)
1515 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1516 -- come from aspect specifications, where the evaluation of the aspect
1517 -- must be delayed to the freeze point. This flag is also set True in
1518 -- the corresponding N_Aspect_Specification node.
1520 -- Is_Controlling_Actual (Flag16-Sem)
1521 -- This flag is set on in an expression that is a controlling argument in
1522 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1523 -- details of its use.
1525 -- Is_Disabled (Flag15-Sem)
1526 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1527 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1528 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1529 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1530 -- If this flag is set, the aspect or policy is not analyzed for semantic
1531 -- correctness, so any expressions etc will not be marked as analyzed.
1533 -- Is_Dynamic_Coextension (Flag18-Sem)
1534 -- Present in allocator nodes, to indicate that this is an allocator
1535 -- for an access discriminant of a dynamically allocated object. The
1536 -- coextension must be deallocated and finalized at the same time as
1537 -- the enclosing object.
1539 -- Is_Entry_Barrier_Function (Flag8-Sem)
1540 -- This flag is set in an N_Subprogram_Body node which is the expansion
1541 -- of an entry barrier from a protected entry body. It is used for the
1542 -- circuitry checking for incorrect use of Current_Task.
1544 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1545 -- This flag is set in an N_Function_Call node to indicate that the extra
1546 -- actuals to support a build-in-place style of call have been added to
1547 -- the call.
1549 -- Is_Finalization_Wrapper (Flag9-Sem);
1550 -- This flag is present in N_Block_Statement nodes. It is set when the
1551 -- block acts as a wrapper of a handled construct which has controlled
1552 -- objects. The wrapper prevents interference between exception handlers
1553 -- and At_End handlers.
1555 -- Is_Ignored (Flag9-Sem)
1556 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1557 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1558 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1559 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1560 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1561 -- gives a policy for the aspect or pragma, then there are two cases. For
1562 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1563 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1564 -- ignored because of the absence of a -gnata switch. For any other
1565 -- aspects or pragmas, the flag is off. If this flag is set, the
1566 -- aspect/pragma is fully analyzed and checked for other syntactic
1567 -- and semantic errors, but it does not have any semantic effect.
1569 -- Is_In_Discriminant_Check (Flag11-Sem)
1570 -- This flag is present in a selected component, and is used to indicate
1571 -- that the reference occurs within a discriminant check. The
1572 -- significance is that optimizations based on assuming that the
1573 -- discriminant check has a correct value cannot be performed in this
1574 -- case (or the discriminant check may be optimized away).
1576 -- Is_Inherited (Flag4-Sem)
1577 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1578 -- to indicate that the pragma has been inherited from a parent context.
1580 -- Is_Machine_Number (Flag11-Sem)
1581 -- This flag is set in an N_Real_Literal node to indicate that the value
1582 -- is a machine number. This avoids some unnecessary cases of converting
1583 -- real literals to machine numbers.
1585 -- Is_Null_Loop (Flag16-Sem)
1586 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1587 -- can be determined to be null at compile time. This is used to remove
1588 -- the loop entirely at expansion time.
1590 -- Is_Overloaded (Flag5-Sem)
1591 -- A flag present in all expression nodes. Used temporarily during
1592 -- overloading determination. The setting of this flag is not relevant
1593 -- once overloading analysis is complete.
1595 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1596 -- A flag present only in N_Op_Expon nodes. It is set when the
1597 -- exponentiation is of the form 2 ** N, where the type of N is an
1598 -- unsigned integral subtype whose size does not exceed the size of
1599 -- Standard_Integer (i.e. a type that can be safely converted to
1600 -- Natural), and the exponentiation appears as the right operand of an
1601 -- integer multiplication or an integer division where the dividend is
1602 -- unsigned. It is also required that overflow checking is off for both
1603 -- the exponentiation and the multiply/divide node. If this set of
1604 -- conditions holds, and the flag is set, then the division or
1605 -- multiplication can be (and is) converted to a shift.
1607 -- Is_Prefixed_Call (Flag17-Sem)
1608 -- This flag is set in a selected component within a generic unit, if
1609 -- it resolves to a prefixed call to a primitive operation. The flag
1610 -- is used to prevent accidental overloadings in an instance, when a
1611 -- primitive operation and a private record component may be homographs.
1613 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1614 -- A flag set in a Subprogram_Body block to indicate that it is the
1615 -- implementation of a protected subprogram. Such a body needs cleanup
1616 -- handler to make sure that the associated protected object is unlocked
1617 -- when the subprogram completes.
1619 -- Is_Static_Coextension (Flag14-Sem)
1620 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1621 -- of an object allocated on the stack rather than the heap.
1623 -- Is_Static_Expression (Flag6-Sem)
1624 -- Indicates that an expression is a static expression according to the
1625 -- rules in (RM 4.9). Note that it is possible for this flag to be set
1626 -- when Raises_Constraint_Error is also set. In practice almost all cases
1627 -- where a static expression is required do not allow an expression which
1628 -- raises Constraint_Error, so almost always, callers should call the
1629 -- Is_Ok_Static_Expression routine instead of testing this flag. See
1630 -- spec of package Sem_Eval for full details on the use of this flag.
1632 -- Is_Subprogram_Descriptor (Flag16-Sem)
1633 -- Present in N_Object_Declaration, and set only for the object
1634 -- declaration generated for a subprogram descriptor in fast exception
1635 -- mode. See Exp_Ch11 for details of use.
1637 -- Is_Task_Allocation_Block (Flag6-Sem)
1638 -- A flag set in a Block_Statement node to indicate that it is the
1639 -- expansion of a task allocator, or the allocator of an object
1640 -- containing tasks. Such a block requires a cleanup handler to call
1641 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1642 -- allocated but not activated when the allocator completes abnormally.
1644 -- Is_Task_Master (Flag5-Sem)
1645 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1646 -- indicate that the construct is a task master (i.e. has declared tasks
1647 -- or declares an access to a task type).
1649 -- Itype (Node1-Sem)
1650 -- Used in N_Itype_Reference node to reference an itype for which it is
1651 -- important to ensure that it is defined. See description of this node
1652 -- for further details.
1654 -- Kill_Range_Check (Flag11-Sem)
1655 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1656 -- result should not be subjected to range checks. This is used for the
1657 -- implementation of Normalize_Scalars.
1659 -- Label_Construct (Node2-Sem)
1660 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1661 -- N_Block_Statement or N_Loop_Statement node to which the label
1662 -- declaration applies. This attribute is used both in the compiler and
1663 -- in the implementation of ASIS queries. The field is left empty for the
1664 -- special labels generated as part of expanding raise statements with a
1665 -- local exception handler.
1667 -- Library_Unit (Node4-Sem)
1668 -- In a stub node, Library_Unit points to the compilation unit node of
1669 -- the corresponding subunit.
1671 -- In a with clause node, Library_Unit points to the spec of the with'ed
1672 -- unit.
1674 -- In a compilation unit node, the usage depends on the unit type:
1676 -- For a library unit body, Library_Unit points to the compilation unit
1677 -- node of the corresponding spec, unless it's a subprogram body with
1678 -- Acts_As_Spec set, in which case it points to itself.
1680 -- For a spec, Library_Unit points to the compilation unit node of the
1681 -- corresponding body, if present. The body will be present if the spec
1682 -- is or contains generics that we needed to instantiate. Similarly, the
1683 -- body will be present if we needed it for inlining purposes. Thus, if
1684 -- we have a spec/body pair, both of which are present, they point to
1685 -- each other via Library_Unit.
1687 -- For a subunit, Library_Unit points to the compilation unit node of
1688 -- the parent body.
1689 -- ??? not (always) true, in (at least some, maybe all?) cases it points
1690 -- to the corresponding spec for the parent body.
1692 -- Note that this field is not used to hold the parent pointer for child
1693 -- unit (which might in any case need to use it for some other purpose as
1694 -- described above). Instead for a child unit, implicit with's are
1695 -- generated for all parents.
1697 -- Local_Raise_Statements (Elist1)
1698 -- This field is present in exception handler nodes. It is set to
1699 -- No_Elist in the normal case. If there is at least one raise statement
1700 -- which can potentially be handled as a local raise, then this field
1701 -- points to a list of raise nodes, which are calls to a routine to raise
1702 -- an exception. These are raise nodes which can be optimized into gotos
1703 -- if the handler turns out to meet the conditions which permit this
1704 -- transformation. Note that this does NOT include instances of the
1705 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1706 -- handled by the back end (using the N_Push/N_Pop mechanism).
1708 -- Loop_Actions (List2-Sem)
1709 -- A list present in Component_Association nodes in array aggregates.
1710 -- Used to collect actions that must be executed within the loop because
1711 -- they may need to be evaluated anew each time through.
1713 -- Limited_View_Installed (Flag18-Sem)
1714 -- Present in With_Clauses and in package specifications. If set on
1715 -- with_clause, it indicates that this clause has created the current
1716 -- limited view of the designated package. On a package specification, it
1717 -- indicates that the limited view has already been created because the
1718 -- package is mentioned in a limited_with_clause in the closure of the
1719 -- unit being compiled.
1721 -- Local_Raise_Not_OK (Flag7-Sem)
1722 -- Present in N_Exception_Handler nodes. Set if the handler contains
1723 -- a construct (reraise statement, or call to subprogram in package
1724 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1725 -- for a local raise (one that could otherwise be converted to a goto).
1727 -- Must_Be_Byte_Aligned (Flag14-Sem)
1728 -- This flag is present in N_Attribute_Reference nodes. It can be set
1729 -- only for the Address and Unrestricted_Access attributes. If set it
1730 -- means that the object for which the address/access is given must be on
1731 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1732 -- of the object is to be made before taking the address (this copy is in
1733 -- the current scope on the stack frame). This is used for certain cases
1734 -- of code generated by the expander that passes parameters by address.
1736 -- The reason the copy is not made by the front end is that the back end
1737 -- has more information about type layout and may be able to (but is not
1738 -- guaranteed to) prevent making unnecessary copies.
1740 -- Must_Not_Freeze (Flag8-Sem)
1741 -- A flag present in all expression nodes. Normally expressions cause
1742 -- freezing as described in the RM. If this flag is set, then this is
1743 -- inhibited. This is used by the analyzer and expander to label nodes
1744 -- that are created by semantic analysis or expansion and which must not
1745 -- cause freezing even though they normally would. This flag is also
1746 -- present in an N_Subtype_Indication node, since we also use these in
1747 -- calls to Freeze_Expression.
1749 -- Next_Entity (Node2-Sem)
1750 -- Present in defining identifiers, defining character literals and
1751 -- defining operator symbols (i.e. in all entities). The entities of a
1752 -- scope are chained, and this field is used as the forward pointer for
1753 -- this list. See Einfo for further details.
1755 -- Next_Exit_Statement (Node3-Sem)
1756 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1757 -- chained (in reverse order of appearance) from the First_Exit_Statement
1758 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1759 -- the next entry on this chain (Empty = end of list).
1761 -- Next_Implicit_With (Node3-Sem)
1762 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1763 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1764 -- to prevent multiple with_clauses for the same unit in a given context.
1765 -- A postorder traversal of the tree whose nodes are units and whose
1766 -- links are with_clauses defines the order in which CodePeer must
1767 -- examine a compiled unit and its full context. This ordering ensures
1768 -- that any subprogram call is examined after the subprogram declaration
1769 -- has been seen.
1771 -- Next_Named_Actual (Node4-Sem)
1772 -- Present in parameter association nodes. Set during semantic analysis
1773 -- to point to the next named parameter, where parameters are ordered by
1774 -- declaration order (as opposed to the actual order in the call, which
1775 -- may be different due to named associations). Not that this field
1776 -- points to the explicit actual parameter itself, not to the
1777 -- N_Parameter_Association node (its parent).
1779 -- Next_Pragma (Node1-Sem)
1780 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1781 -- nodes. Currently used for two purposes:
1783 -- Create a list of linked Check_Policy pragmas. The head of this list
1784 -- is stored in Opt.Check_Policy_List (which has further details).
1786 -- Used by processing for Pre/Postcondition pragmas to store a list of
1787 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1788 -- details).
1790 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
1791 -- the apply to the same construct. These are visible/private mode for
1792 -- a package spec and declarative/statement mode for package body.
1794 -- Next_Rep_Item (Node5-Sem)
1795 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1796 -- clauses, record rep clauses, aspect specification nodes. Used to link
1797 -- representation items that apply to an entity. See full description of
1798 -- First_Rep_Item field in Einfo for further details.
1800 -- Next_Use_Clause (Node3-Sem)
1801 -- While use clauses are active during semantic processing, they are
1802 -- chained from the scope stack entry, using Next_Use_Clause as a link
1803 -- pointer, with Empty marking the end of the list. The head pointer is
1804 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1805 -- processing (i.e. when Gigi sees the tree, the contents of this field
1806 -- is undefined and should not be read).
1808 -- No_Ctrl_Actions (Flag7-Sem)
1809 -- Present in N_Assignment_Statement to indicate that no Finalize nor
1810 -- Adjust should take place on this assignment even though the RHS is
1811 -- controlled. Also indicates that the primitive _assign should not be
1812 -- used for a tagged assignment. This is used in init procs and aggregate
1813 -- expansions where the generated assignments are initializations, not
1814 -- real assignments.
1816 -- No_Elaboration_Check (Flag14-Sem)
1817 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1818 -- that no elaboration check is needed on the call, because it appears in
1819 -- the context of a local Suppress pragma. This is used on calls within
1820 -- task bodies, where the actual elaboration checks are applied after
1821 -- analysis, when the local scope stack is not present.
1823 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1824 -- Present in N_With_Clause nodes. Set if the with clause is on the
1825 -- package or subprogram spec where the main unit is the corresponding
1826 -- body, and no entities of the with'ed unit are referenced by the spec
1827 -- (an entity may still be referenced in the body, so this flag is used
1828 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1829 -- full details)
1831 -- No_Initialization (Flag13-Sem)
1832 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1833 -- object must not be initialized (by Initialize or call to an init
1834 -- proc). This is needed for controlled aggregates. When the Object
1835 -- declaration has an expression, this flag means that this expression
1836 -- should not be taken into account (needed for in place initialization
1837 -- with aggregates, and for object with an address clause, which are
1838 -- initialized with an assignment at freeze time).
1840 -- No_Minimize_Eliminate (Flag17-Sem)
1841 -- This flag is present in membership operator nodes (N_In/N_Not_In).
1842 -- It is used to indicate that processing for extended overflow checking
1843 -- modes is not required (this is used to prevent infinite recursion).
1845 -- No_Truncation (Flag17-Sem)
1846 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1847 -- only if the RM_Size of the source is greater than the RM_Size of the
1848 -- target for scalar operands. Normally in such a case we truncate some
1849 -- higher order bits of the source, and then sign/zero extend the result
1850 -- to form the output value. But if this flag is set, then we do not do
1851 -- any truncation, so for example, if an 8 bit input is converted to 5
1852 -- bit result which is in fact stored in 8 bits, then the high order
1853 -- three bits of the target result will be copied from the source. This
1854 -- is used for properly setting out of range values for use by pragmas
1855 -- Initialize_Scalars and Normalize_Scalars.
1857 -- Non_Aliased_Prefix (Flag18-Sem)
1858 -- Present in N_Attribute_Reference nodes. Set only for the case of an
1859 -- Unrestricted_Access reference whose prefix is non-aliased, which is
1860 -- the case that is permitted for Unrestricted_Access except when the
1861 -- expected type is a thin pointer to unconstrained array. This flag is
1862 -- to assist in detecting this illegal use of Unrestricted_Access.
1864 -- Null_Excluding_Subtype (Flag16)
1865 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
1866 -- indication carries a null-exclusion indicator, which is distinct from
1867 -- the null-exclusion indicator that may precede the access keyword.
1869 -- Original_Discriminant (Node2-Sem)
1870 -- Present in identifiers. Used in references to discriminants that
1871 -- appear in generic units. Because the names of the discriminants may be
1872 -- different in an instance, we use this field to recover the position of
1873 -- the discriminant in the original type, and replace it with the
1874 -- discriminant at the same position in the instantiated type.
1876 -- Original_Entity (Node2-Sem)
1877 -- Present in numeric literals. Used to denote the named number that has
1878 -- been constant-folded into the given literal. If literal is from
1879 -- source, or the result of some other constant-folding operation, then
1880 -- Original_Entity is empty. This field is needed to handle properly
1881 -- named numbers in generic units, where the Associated_Node field
1882 -- interferes with the Entity field, making it impossible to preserve the
1883 -- original entity at the point of instantiation (ASIS problem).
1885 -- Others_Discrete_Choices (List1-Sem)
1886 -- When a case statement or variant is analyzed, the semantic checks
1887 -- determine the actual list of choices that correspond to an others
1888 -- choice. This list is materialized for later use by the expander and
1889 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1890 -- this materialized list of choices, which is in standard format for a
1891 -- list of discrete choices, except that of course it cannot contain an
1892 -- N_Others_Choice entry.
1894 -- Parent_Spec (Node4-Sem)
1895 -- For a library unit that is a child unit spec (package or subprogram
1896 -- declaration, generic declaration or instantiation, or library level
1897 -- rename, this field points to the compilation unit node for the parent
1898 -- package specification. This field is Empty for library bodies (the
1899 -- parent spec in this case can be found from the corresponding spec).
1901 -- Premature_Use (Node5-Sem)
1902 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1903 -- error diagnostics: if there is a premature usage of an incomplete
1904 -- type, a subsequently generated error message indicates the position
1905 -- of its full declaration.
1907 -- Present_Expr (Uint3-Sem)
1908 -- Present in an N_Variant node. This has a meaningful value only after
1909 -- Gigi has back annotated the tree with representation information. At
1910 -- this point, it contains a reference to a gcc expression that depends
1911 -- on the values of one or more discriminants. Give a set of discriminant
1912 -- values, this expression evaluates to False (zero) if variant is not
1913 -- present, and True (non-zero) if it is present. See unit Repinfo for
1914 -- further details on gigi back annotation. This field is used during
1915 -- ASIS processing (data decomposition annex) to determine if a field is
1916 -- present or not.
1918 -- Print_In_Hex (Flag13-Sem)
1919 -- Set on an N_Integer_Literal node to indicate that the value should be
1920 -- printed in hexadecimal in the sprint listing. Has no effect on
1921 -- legality or semantics of program, only on the displayed output. This
1922 -- is used to clarify output from the packed array cases.
1924 -- Procedure_To_Call (Node2-Sem)
1925 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1926 -- and N_Extended_Return_Statement nodes. References the entity for the
1927 -- declaration of the procedure to be called to accomplish the required
1928 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1929 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1930 -- allocating the return value), and for the Deallocate procedure in the
1931 -- case of N_Free_Statement.
1933 -- Raises_Constraint_Error (Flag7-Sem)
1934 -- Set on an expression whose evaluation will definitely fail constraint
1935 -- error check. In the case of static expressions, this flag must be set
1936 -- accurately (and if it is set, the expression is typically illegal
1937 -- unless it appears as a non-elaborated branch of a short-circuit form).
1938 -- For a non-static expression, this flag may be set whenever an
1939 -- expression (e.g. an aggregate) is known to raise constraint error. If
1940 -- set, the expression definitely will raise CE if elaborated at runtime.
1941 -- If not set, the expression may or may not raise CE. In other words, on
1942 -- static expressions, the flag is set accurately, on non-static
1943 -- expressions it is set conservatively.
1945 -- Redundant_Use (Flag13-Sem)
1946 -- Present in nodes that can appear as an operand in a use clause or use
1947 -- type clause (identifiers, expanded names, attribute references). Set
1948 -- to indicate that a use is redundant (and therefore need not be undone
1949 -- on scope exit).
1951 -- Renaming_Exception (Node2-Sem)
1952 -- Present in N_Exception_Declaration node. Used to point back to the
1953 -- exception renaming for an exception declared within a subprogram.
1954 -- What happens is that an exception declared in a subprogram is moved
1955 -- to the library level with a unique name, and the original exception
1956 -- becomes a renaming. This link from the library level exception to the
1957 -- renaming declaration allows registering of the proper exception name.
1959 -- Return_Statement_Entity (Node5-Sem)
1960 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1961 -- Points to an E_Return_Statement representing the return statement.
1963 -- Return_Object_Declarations (List3)
1964 -- Present in N_Extended_Return_Statement. Points to a list initially
1965 -- containing a single N_Object_Declaration representing the return
1966 -- object. We use a list (instead of just a pointer to the object decl)
1967 -- because Analyze wants to insert extra actions on this list.
1969 -- Rounded_Result (Flag18-Sem)
1970 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1971 -- Used in the fixed-point cases to indicate that the result must be
1972 -- rounded as a result of the use of the 'Round attribute. Also used for
1973 -- integer N_Op_Divide nodes to indicate that the result should be
1974 -- rounded to the nearest integer (breaking ties away from zero), rather
1975 -- than truncated towards zero as usual. These rounded integer operations
1976 -- are the result of expansion of rounded fixed-point divide, conversion
1977 -- and multiplication operations.
1979 -- SCIL_Entity (Node4-Sem)
1980 -- Present in SCIL nodes. References the specific tagged type associated
1981 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
1982 -- the controlling type of the call; for an N_SCIL_Membership_Test node
1983 -- generated as part of testing membership in T'Class, this is T; for an
1984 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
1986 -- SCIL_Controlling_Tag (Node5-Sem)
1987 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
1988 -- tag of a dispatching call. This is usually an N_Selected_Component
1989 -- node (for a _tag component), but may be an N_Object_Declaration or
1990 -- N_Parameter_Specification node in some cases (e.g., for a call to
1991 -- a classwide streaming operation or a call to an instance of
1992 -- Ada.Tags.Generic_Dispatching_Constructor).
1994 -- SCIL_Tag_Value (Node5-Sem)
1995 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1996 -- of the value that is being tested.
1998 -- SCIL_Target_Prim (Node2-Sem)
1999 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2000 -- operation named (statically) in a dispatching call.
2002 -- Scope (Node3-Sem)
2003 -- Present in defining identifiers, defining character literals and
2004 -- defining operator symbols (i.e. in all entities). The entities of a
2005 -- scope all use this field to reference the corresponding scope entity.
2006 -- See Einfo for further details.
2008 -- Shift_Count_OK (Flag4-Sem)
2009 -- A flag present in shift nodes to indicate that the shift count is
2010 -- known to be in range, i.e. is in the range from zero to word length
2011 -- minus one. If this flag is not set, then the shift count may be
2012 -- outside this range, i.e. larger than the word length, and the code
2013 -- must ensure that such shift counts give the appropriate result.
2015 -- Source_Type (Node1-Sem)
2016 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2017 -- source type entity for the unchecked conversion instantiation
2018 -- which gigi must do size validation for.
2020 -- Split_PPC (Flag17)
2021 -- When a Pre or Post aspect specification is processed, it is broken
2022 -- into AND THEN sections. The left most section has Split_PPC set to
2023 -- False, indicating that it is the original specification (e.g. for
2024 -- posting errors). For other sections, Split_PPC is set to True.
2025 -- This flag is set in both the N_Aspect_Specification node itself,
2026 -- and in the pragma which is generated from this node.
2028 -- Storage_Pool (Node1-Sem)
2029 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2030 -- and N_Extended_Return_Statement nodes. References the entity for the
2031 -- storage pool to be used for the allocate or free call or for the
2032 -- allocation of the returned value from function. Empty indicates that
2033 -- the global default pool is to be used. Note that in the case
2034 -- of a return statement, this field is set only if the function returns
2035 -- value of a type whose size is not known at compile time on the
2036 -- secondary stack.
2038 -- Suppress_Assignment_Checks (Flag18-Sem)
2039 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2040 -- and range checks in cases where the generated code knows that the
2041 -- value being assigned is in range and satisfies any predicate. Also
2042 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2043 -- checks on the initializing value. In assignment statements it also
2044 -- suppresses access checks in the generated code for out- and in-out
2045 -- parameters in entry calls.
2047 -- Suppress_Loop_Warnings (Flag17-Sem)
2048 -- Used in N_Loop_Statement node to indicate that warnings within the
2049 -- body of the loop should be suppressed. This is set when the range
2050 -- of a FOR loop is known to be null, or is probably null (loop would
2051 -- only execute if invalid values are present).
2053 -- Target_Type (Node2-Sem)
2054 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2055 -- type entity for the unchecked conversion instantiation which gigi must
2056 -- do size validation for.
2058 -- Then_Actions (List3-Sem)
2059 -- This field is present in if expression nodes. During code expansion
2060 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2061 -- at an appropriate place in the tree to get elaborated at the right
2062 -- time. For if expressions, we have to be sure that the actions for
2063 -- for the Then branch are only elaborated if the condition is True.
2064 -- The Then_Actions field is used as a temporary parking place for
2065 -- these actions. The final tree is always rewritten to eliminate the
2066 -- need for this field, so in the tree passed to Gigi, this field is
2067 -- always set to No_List.
2069 -- Treat_Fixed_As_Integer (Flag14-Sem)
2070 -- This flag appears in operator nodes for divide, multiply, mod and rem
2071 -- on fixed-point operands. It indicates that the operands are to be
2072 -- treated as integer values, ignoring small values. This flag is only
2073 -- set as a result of expansion of fixed-point operations. Typically a
2074 -- fixed-point multiplication in the source generates subsidiary
2075 -- multiplication and division operations that work with the underlying
2076 -- integer values and have this flag set. Note that this flag is not
2077 -- needed on other arithmetic operations (add, neg, subtract etc.) since
2078 -- in these cases it is always the case that fixed is treated as integer.
2079 -- The Etype field MUST be set if this flag is set. The analyzer knows to
2080 -- leave such nodes alone, and whoever makes them must set the correct
2081 -- Etype value.
2083 -- TSS_Elist (Elist3-Sem)
2084 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2085 -- entries for each TSS (type support subprogram) associated with the
2086 -- frozen type. The elements of the list are the entities for the
2087 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2088 -- if there are no type support subprograms for the type or if the freeze
2089 -- node is not for a type.
2091 -- Uneval_Old_Accept (Flag7-Sem)
2092 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2093 -- (accept) at the point where the pragma is encountered (including the
2094 -- case of a pragma generated from an aspect specification). It is this
2095 -- setting that is relevant, rather than the setting at the point where
2096 -- a contract is finally analyzed after the delay till the freeze point.
2098 -- Uneval_Old_Warn (Flag18-Sem)
2099 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2100 -- (warn) at the point where the pragma is encountered (including the
2101 -- case of a pragma generated from an aspect specification). It is this
2102 -- setting that is relevant, rather than the setting at the point where
2103 -- a contract is finally analyzed after the delay till the freeze point.
2105 -- Unreferenced_In_Spec (Flag7-Sem)
2106 -- Present in N_With_Clause nodes. Set if the with clause is on the
2107 -- package or subprogram spec where the main unit is the corresponding
2108 -- body, and is not referenced by the spec (it may still be referenced by
2109 -- the body, so this flag is used to generate the proper message (see
2110 -- Sem_Util.Check_Unused_Withs for details)
2112 -- Uninitialized_Variable (Node3-Sem)
2113 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2114 -- Extension_Declarations. Indicates that a variable in a generic unit
2115 -- whose type is a formal private or derived type is read without being
2116 -- initialized. Used to warn if the corresponding actual type is not
2117 -- a fully initialized type.
2119 -- Used_Operations (Elist5-Sem)
2120 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2121 -- are made potentially use-visible by the clause. Simplifies processing
2122 -- on exit from the scope of the use_type_clause, in particular in the
2123 -- case of Use_All_Type, when those operations several scopes.
2125 -- Was_Originally_Stub (Flag13-Sem)
2126 -- This flag is set in the node for a proper body that replaces stub.
2127 -- During the analysis procedure, stubs in some situations get rewritten
2128 -- by the corresponding bodies, and we set this flag to remember that
2129 -- this happened. Note that it is not good enough to rely on the use of
2130 -- Original_Node here because of the case of nested instantiations where
2131 -- the substituted node can be copied.
2133 -- Withed_Body (Node1-Sem)
2134 -- Present in N_With_Clause nodes. Set if the unit in whose context
2135 -- the with_clause appears instantiates a generic contained in the
2136 -- library unit of the with_clause and as a result loads its body.
2137 -- Used for a more precise unit traversal for CodePeer.
2139 --------------------------------------------------
2140 -- Note on Use of End_Label and End_Span Fields --
2141 --------------------------------------------------
2143 -- Several constructs have end lines:
2145 -- Loop Statement end loop [loop_IDENTIFIER];
2146 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2147 -- Task Definition end [task_IDENTIFIER]
2148 -- Protected Definition end [protected_IDENTIFIER]
2149 -- Protected Body end [protected_IDENTIFIER]
2151 -- Block Statement end [block_IDENTIFIER];
2152 -- Subprogram Body end [DESIGNATOR];
2153 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2154 -- Task Body end [task_IDENTIFIER];
2155 -- Accept Statement end [entry_IDENTIFIER]];
2156 -- Entry Body end [entry_IDENTIFIER];
2158 -- If Statement end if;
2159 -- Case Statement end case;
2161 -- Record Definition end record;
2162 -- Enumeration Definition );
2164 -- The End_Label and End_Span fields are used to mark the locations of
2165 -- these lines, and also keep track of the label in the case where a label
2166 -- is present.
2168 -- For the first group above, the End_Label field of the corresponding node
2169 -- is used to point to the label identifier. In the case where there is no
2170 -- label in the source, the parser supplies a dummy identifier (with
2171 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2172 -- marks the location of the token following the END token.
2174 -- For the second group, the use of End_Label is similar, but the End_Label
2175 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2176 -- simply because in some cases there is no room in the parent node.
2178 -- For the third group, there is never any label, and instead of using
2179 -- End_Label, we use the End_Span field which gives the location of the
2180 -- token following END, relative to the starting Sloc of the construct,
2181 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2182 -- following the End_Label.
2184 -- The record definition case is handled specially, we treat it as though
2185 -- it required an optional label which is never present, and so the parser
2186 -- always builds a dummy identifier with Comes From Source set False. The
2187 -- reason we do this, rather than using End_Span in this case, is that we
2188 -- want to generate a cross-ref entry for the end of a record, since it
2189 -- represents a scope for name declaration purposes.
2191 -- The enumeration definition case is handled in an exactly similar manner,
2192 -- building a dummy identifier to get a cross-reference.
2194 -- Note: the reason we store the difference as a Uint, instead of storing
2195 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2196 -- distinguished from other types of values, and we count on all general
2197 -- use fields being self describing. To make things easier for clients,
2198 -- note that we provide function End_Location, and procedure
2199 -- Set_End_Location to allow access to the logical value (which is the
2200 -- Source_Ptr value for the end token).
2202 ---------------------
2203 -- Syntactic Nodes --
2204 ---------------------
2206 ---------------------
2207 -- 2.3 Identifier --
2208 ---------------------
2210 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2211 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2213 -- An IDENTIFIER shall not be a reserved word
2215 -- In the Ada grammar identifiers are the bottom level tokens which have
2216 -- very few semantics. Actual program identifiers are direct names. If
2217 -- we were being 100% honest with the grammar, then we would have a node
2218 -- called N_Direct_Name which would point to an identifier. However,
2219 -- that's too many extra nodes, so we just use the N_Identifier node
2220 -- directly as a direct name, and it contains the expression fields and
2221 -- Entity field that correspond to its use as a direct name. In those
2222 -- few cases where identifiers appear in contexts where they are not
2223 -- direct names (pragmas, pragma argument associations, attribute
2224 -- references and attribute definition clauses), the Chars field of the
2225 -- node contains the Name_Id for the identifier name.
2227 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2228 -- cases. First, an incorrect use of a reserved word as an identifier is
2229 -- diagnosed and then treated as a normal identifier. Second, an
2230 -- attribute designator of the form of a reserved word (access, delta,
2231 -- digits, range) is treated as an identifier.
2233 -- Note: The set of letters that is permitted in an identifier depends
2234 -- on the character set in use. See package Csets for full details.
2236 -- N_Identifier
2237 -- Sloc points to identifier
2238 -- Chars (Name1) contains the Name_Id for the identifier
2239 -- Entity (Node4-Sem)
2240 -- Associated_Node (Node4-Sem)
2241 -- Original_Discriminant (Node2-Sem)
2242 -- Redundant_Use (Flag13-Sem)
2243 -- Atomic_Sync_Required (Flag14-Sem)
2244 -- Has_Private_View (Flag11-Sem) (set in generic units)
2245 -- plus fields for expression
2247 --------------------------
2248 -- 2.4 Numeric Literal --
2249 --------------------------
2251 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2253 ----------------------------
2254 -- 2.4.1 Decimal Literal --
2255 ----------------------------
2257 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2259 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2261 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2263 -- Decimal literals appear in the tree as either integer literal nodes
2264 -- or real literal nodes, depending on whether a period is present.
2266 -- Note: literal nodes appear as a result of direct use of literals
2267 -- in the source program, and also as the result of evaluating
2268 -- expressions at compile time. In the latter case, it is possible
2269 -- to construct real literals that have no syntactic representation
2270 -- using the standard literal format. Such literals are listed by
2271 -- Sprint using the notation [numerator / denominator].
2273 -- Note: the value of an integer literal node created by the front end
2274 -- is never outside the range of values of the base type. However, it
2275 -- can be the case that the created value is outside the range of the
2276 -- particular subtype. This happens in the case of integer overflows
2277 -- with checks suppressed.
2279 -- N_Integer_Literal
2280 -- Sloc points to literal
2281 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2282 -- has been constant-folded into its literal value.
2283 -- Intval (Uint3) contains integer value of literal
2284 -- plus fields for expression
2285 -- Print_In_Hex (Flag13-Sem)
2287 -- N_Real_Literal
2288 -- Sloc points to literal
2289 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2290 -- has been constant-folded into its literal value.
2291 -- Realval (Ureal3) contains real value of literal
2292 -- Corresponding_Integer_Value (Uint4-Sem)
2293 -- Is_Machine_Number (Flag11-Sem)
2294 -- plus fields for expression
2296 --------------------------
2297 -- 2.4.2 Based Literal --
2298 --------------------------
2300 -- BASED_LITERAL ::=
2301 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2303 -- BASE ::= NUMERAL
2305 -- BASED_NUMERAL ::=
2306 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2308 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2310 -- Based literals appear in the tree as either integer literal nodes
2311 -- or real literal nodes, depending on whether a period is present.
2313 ----------------------------
2314 -- 2.5 Character Literal --
2315 ----------------------------
2317 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2319 -- N_Character_Literal
2320 -- Sloc points to literal
2321 -- Chars (Name1) contains the Name_Id for the identifier
2322 -- Char_Literal_Value (Uint2) contains the literal value
2323 -- Entity (Node4-Sem)
2324 -- Associated_Node (Node4-Sem)
2325 -- Has_Private_View (Flag11-Sem) set in generic units.
2326 -- plus fields for expression
2328 -- Note: the Entity field will be missing (set to Empty) for character
2329 -- literals whose type is Standard.Wide_Character or Standard.Character
2330 -- or a type derived from one of these two. In this case the character
2331 -- literal stands for its own coding. The reason we take this irregular
2332 -- short cut is to avoid the need to build lots of junk defining
2333 -- character literal nodes.
2335 -------------------------
2336 -- 2.6 String Literal --
2337 -------------------------
2339 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2341 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2342 -- single GRAPHIC_CHARACTER other than a quotation mark.
2344 -- Is_Folded_In_Parser is True if the parser created this literal by
2345 -- folding a sequence of "&" operators. For example, if the source code
2346 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2347 -- is set. This flag is needed because the parser doesn't know about
2348 -- visibility, so the folded result might be wrong, and semantic
2349 -- analysis needs to check for that.
2351 -- N_String_Literal
2352 -- Sloc points to literal
2353 -- Strval (Str3) contains Id of string value
2354 -- Has_Wide_Character (Flag11-Sem)
2355 -- Has_Wide_Wide_Character (Flag13-Sem)
2356 -- Is_Folded_In_Parser (Flag4)
2357 -- plus fields for expression
2359 ------------------
2360 -- 2.7 Comment --
2361 ------------------
2363 -- A COMMENT starts with two adjacent hyphens and extends up to the
2364 -- end of the line. A COMMENT may appear on any line of a program.
2366 -- Comments are skipped by the scanner and do not appear in the tree.
2367 -- It is possible to reconstruct the position of comments with respect
2368 -- to the elements of the tree by using the source position (Sloc)
2369 -- pointers that appear in every tree node.
2371 -----------------
2372 -- 2.8 Pragma --
2373 -----------------
2375 -- PRAGMA ::= pragma IDENTIFIER
2376 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2378 -- Note that a pragma may appear in the tree anywhere a declaration
2379 -- or a statement may appear, as well as in some other situations
2380 -- which are explicitly documented.
2382 -- N_Pragma
2383 -- Sloc points to PRAGMA
2384 -- Next_Pragma (Node1-Sem)
2385 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2386 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2387 -- Pragma_Identifier (Node4)
2388 -- Next_Rep_Item (Node5-Sem)
2389 -- Class_Present (Flag6) set if from Aspect with 'Class
2390 -- From_Aspect_Specification (Flag13-Sem)
2391 -- Import_Interface_Present (Flag16-Sem)
2392 -- Is_Checked (Flag11-Sem)
2393 -- Is_Delayed_Aspect (Flag14-Sem)
2394 -- Is_Disabled (Flag15-Sem)
2395 -- Is_Ignored (Flag9-Sem)
2396 -- Is_Inherited (Flag4-Sem)
2397 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2398 -- Uneval_Old_Accept (Flag7-Sem)
2399 -- Uneval_Old_Warn (Flag18-Sem)
2401 -- Note: we should have a section on what pragmas are passed on to
2402 -- the back end to be processed. This section should note that pragma
2403 -- Psect_Object is always converted to Common_Object, but there are
2404 -- undoubtedly many other similar notes required ???
2406 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2407 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2409 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2410 -- aspect name, as does the Pragma_Identifier. In this case if the
2411 -- pragma has a local name argument (such as pragma Inline), it is
2412 -- resolved to point to the specific entity affected by the pragma.
2414 --------------------------------------
2415 -- 2.8 Pragma Argument Association --
2416 --------------------------------------
2418 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2419 -- [pragma_argument_IDENTIFIER =>] NAME
2420 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2422 -- In Ada 2012, there are two more possibilities:
2424 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2425 -- [pragma_argument_ASPECT_MARK =>] NAME
2426 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2428 -- where the interesting allowed cases (which do not fit the syntax of
2429 -- the first alternative above) are
2431 -- ASPECT_MARK => Pre'Class |
2432 -- Post'Class |
2433 -- Type_Invariant'Class |
2434 -- Invariant'Class
2436 -- We allow this special usage in all Ada modes, but it would be a
2437 -- pain to allow these aspects to pervade the pragma syntax, and the
2438 -- representation of pragma nodes internally. So what we do is to
2439 -- replace these ASPECT_MARK forms with identifiers whose name is one
2440 -- of the special internal names _Pre, _Post or _Type_Invariant.
2442 -- We do a similar replacement of these Aspect_Mark forms in the
2443 -- Expression of a pragma argument association for the cases of
2444 -- the first arguments of any Check pragmas and Check_Policy pragmas
2446 -- N_Pragma_Argument_Association
2447 -- Sloc points to first token in association
2448 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2449 -- Expression (Node3)
2451 ------------------------
2452 -- 2.9 Reserved Word --
2453 ------------------------
2455 -- Reserved words are parsed by the scanner, and returned as the
2456 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2458 ----------------------------
2459 -- 3.1 Basic Declaration --
2460 ----------------------------
2462 -- BASIC_DECLARATION ::=
2463 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2464 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2465 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2466 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2467 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2468 -- | GENERIC_INSTANTIATION
2470 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2471 -- see further description in section on semantic nodes.
2473 -- Also, in the tree that is constructed, a pragma may appear
2474 -- anywhere that a declaration may appear.
2476 ------------------------------
2477 -- 3.1 Defining Identifier --
2478 ------------------------------
2480 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2482 -- A defining identifier is an entity, which has additional fields
2483 -- depending on the setting of the Ekind field. These additional
2484 -- fields are defined (and access subprograms declared) in package
2485 -- Einfo.
2487 -- Note: N_Defining_Identifier is an extended node whose fields are
2488 -- deliberate layed out to match the layout of fields in an ordinary
2489 -- N_Identifier node allowing for easy alteration of an identifier
2490 -- node into a defining identifier node. For details, see procedure
2491 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2493 -- N_Defining_Identifier
2494 -- Sloc points to identifier
2495 -- Chars (Name1) contains the Name_Id for the identifier
2496 -- Next_Entity (Node2-Sem)
2497 -- Scope (Node3-Sem)
2498 -- Etype (Node5-Sem)
2500 -----------------------------
2501 -- 3.2.1 Type Declaration --
2502 -----------------------------
2504 -- TYPE_DECLARATION ::=
2505 -- FULL_TYPE_DECLARATION
2506 -- | INCOMPLETE_TYPE_DECLARATION
2507 -- | PRIVATE_TYPE_DECLARATION
2508 -- | PRIVATE_EXTENSION_DECLARATION
2510 ----------------------------------
2511 -- 3.2.1 Full Type Declaration --
2512 ----------------------------------
2514 -- FULL_TYPE_DECLARATION ::=
2515 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2516 -- is TYPE_DEFINITION
2517 -- [ASPECT_SPECIFICATIONS];
2518 -- | TASK_TYPE_DECLARATION
2519 -- | PROTECTED_TYPE_DECLARATION
2521 -- The full type declaration node is used only for the first case. The
2522 -- second case (concurrent type declaration), is represented directly
2523 -- by a task type declaration or a protected type declaration.
2525 -- N_Full_Type_Declaration
2526 -- Sloc points to TYPE
2527 -- Defining_Identifier (Node1)
2528 -- Incomplete_View (Node2-Sem)
2529 -- Discriminant_Specifications (List4) (set to No_List if none)
2530 -- Type_Definition (Node3)
2531 -- Discr_Check_Funcs_Built (Flag11-Sem)
2533 ----------------------------
2534 -- 3.2.1 Type Definition --
2535 ----------------------------
2537 -- TYPE_DEFINITION ::=
2538 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2539 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2540 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2541 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2543 --------------------------------
2544 -- 3.2.2 Subtype Declaration --
2545 --------------------------------
2547 -- SUBTYPE_DECLARATION ::=
2548 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2549 -- [ASPECT_SPECIFICATIONS];
2551 -- The subtype indication field is set to Empty for subtypes
2552 -- declared in package Standard (Positive, Natural).
2554 -- N_Subtype_Declaration
2555 -- Sloc points to SUBTYPE
2556 -- Defining_Identifier (Node1)
2557 -- Null_Exclusion_Present (Flag11)
2558 -- Subtype_Indication (Node5)
2559 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2560 -- Exception_Junk (Flag8-Sem)
2561 -- Has_Dynamic_Range_Check (Flag12-Sem)
2563 -------------------------------
2564 -- 3.2.2 Subtype Indication --
2565 -------------------------------
2567 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2569 -- Note: if no constraint is present, the subtype indication appears
2570 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2571 -- node is used only if a constraint is present.
2573 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2574 -- with the null-exclusion part (see AI-231), we had to introduce a new
2575 -- attribute in all the parents of subtype_indication nodes to indicate
2576 -- if the null-exclusion is present.
2578 -- Note: the reason that this node has expression fields is that a
2579 -- subtype indication can appear as an operand of a membership test.
2581 -- N_Subtype_Indication
2582 -- Sloc points to first token of subtype mark
2583 -- Subtype_Mark (Node4)
2584 -- Constraint (Node3)
2585 -- Etype (Node5-Sem)
2586 -- Must_Not_Freeze (Flag8-Sem)
2588 -- Note: Depending on context, the Etype is either the entity of the
2589 -- Subtype_Mark field, or it is an itype constructed to reify the
2590 -- subtype indication. In particular, such itypes are created for a
2591 -- subtype indication that appears in an array type declaration. This
2592 -- simplifies constraint checking in indexed components.
2594 -- For subtype indications that appear in scalar type and subtype
2595 -- declarations, the Etype is the entity of the subtype mark.
2597 -------------------------
2598 -- 3.2.2 Subtype Mark --
2599 -------------------------
2601 -- SUBTYPE_MARK ::= subtype_NAME
2603 -----------------------
2604 -- 3.2.2 Constraint --
2605 -----------------------
2607 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2609 ------------------------------
2610 -- 3.2.2 Scalar Constraint --
2611 ------------------------------
2613 -- SCALAR_CONSTRAINT ::=
2614 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2616 ---------------------------------
2617 -- 3.2.2 Composite Constraint --
2618 ---------------------------------
2620 -- COMPOSITE_CONSTRAINT ::=
2621 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2623 -------------------------------
2624 -- 3.3.1 Object Declaration --
2625 -------------------------------
2627 -- OBJECT_DECLARATION ::=
2628 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2629 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2630 -- [ASPECT_SPECIFICATIONS];
2631 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2632 -- ACCESS_DEFINITION [:= EXPRESSION]
2633 -- [ASPECT_SPECIFICATIONS];
2634 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2635 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2636 -- [ASPECT_SPECIFICATIONS];
2637 -- | SINGLE_TASK_DECLARATION
2638 -- | SINGLE_PROTECTED_DECLARATION
2640 -- Note: aliased is not permitted in Ada 83 mode
2642 -- The N_Object_Declaration node is only for the first two cases.
2643 -- Single task declaration is handled by P_Task (9.1)
2644 -- Single protected declaration is handled by P_protected (9.5)
2646 -- Although the syntax allows multiple identifiers in the list, the
2647 -- semantics is as though successive declarations were given with
2648 -- identical type definition and expression components. To simplify
2649 -- semantic processing, the parser represents a multiple declaration
2650 -- case as a sequence of single declarations, using the More_Ids and
2651 -- Prev_Ids flags to preserve the original source form as described
2652 -- in the section on "Handling of Defining Identifier Lists".
2654 -- The flag Has_Init_Expression is set if an initializing expression
2655 -- is present. Normally it is set if and only if Expression contains
2656 -- a non-empty value, but there is an exception to this. When the
2657 -- initializing expression is an aggregate which requires explicit
2658 -- assignments, the Expression field gets set to Empty, but this flag
2659 -- is still set, so we don't forget we had an initializing expression.
2661 -- Note: if a range check is required for the initialization
2662 -- expression then the Do_Range_Check flag is set in the Expression,
2663 -- with the check being done against the type given by the object
2664 -- definition, which is also the Etype of the defining identifier.
2666 -- Note: the contents of the Expression field must be ignored (i.e.
2667 -- treated as though it were Empty) if No_Initialization is set True.
2669 -- Note: the back end places some restrictions on the form of the
2670 -- Expression field. If the object being declared is Atomic, then
2671 -- the Expression may not have the form of an aggregate (since this
2672 -- might cause the back end to generate separate assignments). In this
2673 -- case the front end must generate an extra temporary and initialize
2674 -- this temporary as required (the temporary itself is not atomic).
2676 -- Note: there is not node kind for object definition. Instead, the
2677 -- corresponding field holds a subtype indication, an array type
2678 -- definition, or (Ada 2005, AI-406) an access definition.
2680 -- N_Object_Declaration
2681 -- Sloc points to first identifier
2682 -- Defining_Identifier (Node1)
2683 -- Aliased_Present (Flag4)
2684 -- Constant_Present (Flag17) set if CONSTANT appears
2685 -- Null_Exclusion_Present (Flag11)
2686 -- Object_Definition (Node4) subtype indic./array type def./access def.
2687 -- Expression (Node3) (set to Empty if not present)
2688 -- Handler_List_Entry (Node2-Sem)
2689 -- Corresponding_Generic_Association (Node5-Sem)
2690 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2691 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2692 -- No_Initialization (Flag13-Sem)
2693 -- Assignment_OK (Flag15-Sem)
2694 -- Exception_Junk (Flag8-Sem)
2695 -- Is_Subprogram_Descriptor (Flag16-Sem)
2696 -- Has_Init_Expression (Flag14)
2697 -- Suppress_Assignment_Checks (Flag18-Sem)
2699 -------------------------------------
2700 -- 3.3.1 Defining Identifier List --
2701 -------------------------------------
2703 -- DEFINING_IDENTIFIER_LIST ::=
2704 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2706 -------------------------------
2707 -- 3.3.2 Number Declaration --
2708 -------------------------------
2710 -- NUMBER_DECLARATION ::=
2711 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2713 -- Although the syntax allows multiple identifiers in the list, the
2714 -- semantics is as though successive declarations were given with
2715 -- identical expressions. To simplify semantic processing, the parser
2716 -- represents a multiple declaration case as a sequence of single
2717 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2718 -- the original source form as described in the section on "Handling
2719 -- of Defining Identifier Lists".
2721 -- N_Number_Declaration
2722 -- Sloc points to first identifier
2723 -- Defining_Identifier (Node1)
2724 -- Expression (Node3)
2725 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2726 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2728 ----------------------------------
2729 -- 3.4 Derived Type Definition --
2730 ----------------------------------
2732 -- DERIVED_TYPE_DEFINITION ::=
2733 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2734 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2736 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2737 -- in Ada 83 mode
2739 -- Note: a record extension part is required if ABSTRACT is present
2741 -- N_Derived_Type_Definition
2742 -- Sloc points to NEW
2743 -- Abstract_Present (Flag4)
2744 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2745 -- Subtype_Indication (Node5)
2746 -- Record_Extension_Part (Node3) (set to Empty if not present)
2747 -- Limited_Present (Flag17)
2748 -- Task_Present (Flag5) set in task interfaces
2749 -- Protected_Present (Flag6) set in protected interfaces
2750 -- Synchronized_Present (Flag7) set in interfaces
2751 -- Interface_List (List2) (set to No_List if none)
2752 -- Interface_Present (Flag16) set in abstract interfaces
2754 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2755 -- Interface_List, and Interface_Present are used for abstract
2756 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2758 ---------------------------
2759 -- 3.5 Range Constraint --
2760 ---------------------------
2762 -- RANGE_CONSTRAINT ::= range RANGE
2764 -- N_Range_Constraint
2765 -- Sloc points to RANGE
2766 -- Range_Expression (Node4)
2768 ----------------
2769 -- 3.5 Range --
2770 ----------------
2772 -- RANGE ::=
2773 -- RANGE_ATTRIBUTE_REFERENCE
2774 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2776 -- Note: the case of a range given as a range attribute reference
2777 -- appears directly in the tree as an attribute reference.
2779 -- Note: the field name for a reference to a range is Range_Expression
2780 -- rather than Range, because range is a reserved keyword in Ada.
2782 -- Note: the reason that this node has expression fields is that a
2783 -- range can appear as an operand of a membership test. The Etype
2784 -- field is the type of the range (we do NOT construct an implicit
2785 -- subtype to represent the range exactly).
2787 -- N_Range
2788 -- Sloc points to ..
2789 -- Low_Bound (Node1)
2790 -- High_Bound (Node2)
2791 -- Includes_Infinities (Flag11)
2792 -- plus fields for expression
2794 -- Note: if the range appears in a context, such as a subtype
2795 -- declaration, where range checks are required on one or both of
2796 -- the expression fields, then type conversion nodes are inserted
2797 -- to represent the required checks.
2799 ----------------------------------------
2800 -- 3.5.1 Enumeration Type Definition --
2801 ----------------------------------------
2803 -- ENUMERATION_TYPE_DEFINITION ::=
2804 -- (ENUMERATION_LITERAL_SPECIFICATION
2805 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2807 -- Note: the Literals field in the node described below is null for
2808 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2809 -- which special processing handles these types as special cases.
2811 -- N_Enumeration_Type_Definition
2812 -- Sloc points to left parenthesis
2813 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2814 -- End_Label (Node4) (set to Empty if internally generated record)
2816 ----------------------------------------------
2817 -- 3.5.1 Enumeration Literal Specification --
2818 ----------------------------------------------
2820 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2821 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2823 ---------------------------------------
2824 -- 3.5.1 Defining Character Literal --
2825 ---------------------------------------
2827 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2829 -- A defining character literal is an entity, which has additional
2830 -- fields depending on the setting of the Ekind field. These
2831 -- additional fields are defined (and access subprograms declared)
2832 -- in package Einfo.
2834 -- Note: N_Defining_Character_Literal is an extended node whose fields
2835 -- are deliberate layed out to match the layout of fields in an ordinary
2836 -- N_Character_Literal node allowing for easy alteration of a character
2837 -- literal node into a defining character literal node. For details, see
2838 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2840 -- N_Defining_Character_Literal
2841 -- Sloc points to literal
2842 -- Chars (Name1) contains the Name_Id for the identifier
2843 -- Next_Entity (Node2-Sem)
2844 -- Scope (Node3-Sem)
2845 -- Etype (Node5-Sem)
2847 ------------------------------------
2848 -- 3.5.4 Integer Type Definition --
2849 ------------------------------------
2851 -- Note: there is an error in this rule in the latest version of the
2852 -- grammar, so we have retained the old rule pending clarification.
2854 -- INTEGER_TYPE_DEFINITION ::=
2855 -- SIGNED_INTEGER_TYPE_DEFINITION
2856 -- | MODULAR_TYPE_DEFINITION
2858 -------------------------------------------
2859 -- 3.5.4 Signed Integer Type Definition --
2860 -------------------------------------------
2862 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2863 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2865 -- Note: the Low_Bound and High_Bound fields are set to Empty
2866 -- for integer types defined in package Standard.
2868 -- N_Signed_Integer_Type_Definition
2869 -- Sloc points to RANGE
2870 -- Low_Bound (Node1)
2871 -- High_Bound (Node2)
2873 ------------------------------------
2874 -- 3.5.4 Modular Type Definition --
2875 ------------------------------------
2877 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2879 -- N_Modular_Type_Definition
2880 -- Sloc points to MOD
2881 -- Expression (Node3)
2883 ---------------------------------
2884 -- 3.5.6 Real Type Definition --
2885 ---------------------------------
2887 -- REAL_TYPE_DEFINITION ::=
2888 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2890 --------------------------------------
2891 -- 3.5.7 Floating Point Definition --
2892 --------------------------------------
2894 -- FLOATING_POINT_DEFINITION ::=
2895 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2897 -- Note: The Digits_Expression and Real_Range_Specifications fields
2898 -- are set to Empty for floating-point types declared in Standard.
2900 -- N_Floating_Point_Definition
2901 -- Sloc points to DIGITS
2902 -- Digits_Expression (Node2)
2903 -- Real_Range_Specification (Node4) (set to Empty if not present)
2905 -------------------------------------
2906 -- 3.5.7 Real Range Specification --
2907 -------------------------------------
2909 -- REAL_RANGE_SPECIFICATION ::=
2910 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2912 -- N_Real_Range_Specification
2913 -- Sloc points to RANGE
2914 -- Low_Bound (Node1)
2915 -- High_Bound (Node2)
2917 -----------------------------------
2918 -- 3.5.9 Fixed Point Definition --
2919 -----------------------------------
2921 -- FIXED_POINT_DEFINITION ::=
2922 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2924 --------------------------------------------
2925 -- 3.5.9 Ordinary Fixed Point Definition --
2926 --------------------------------------------
2928 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2929 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2931 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2933 -- N_Ordinary_Fixed_Point_Definition
2934 -- Sloc points to DELTA
2935 -- Delta_Expression (Node3)
2936 -- Real_Range_Specification (Node4)
2938 -------------------------------------------
2939 -- 3.5.9 Decimal Fixed Point Definition --
2940 -------------------------------------------
2942 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2943 -- delta static_EXPRESSION
2944 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2946 -- Note: decimal types are not permitted in Ada 83 mode
2948 -- N_Decimal_Fixed_Point_Definition
2949 -- Sloc points to DELTA
2950 -- Delta_Expression (Node3)
2951 -- Digits_Expression (Node2)
2952 -- Real_Range_Specification (Node4) (set to Empty if not present)
2954 ------------------------------
2955 -- 3.5.9 Digits Constraint --
2956 ------------------------------
2958 -- DIGITS_CONSTRAINT ::=
2959 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2961 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2962 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2964 -- N_Digits_Constraint
2965 -- Sloc points to DIGITS
2966 -- Digits_Expression (Node2)
2967 -- Range_Constraint (Node4) (set to Empty if not present)
2969 --------------------------------
2970 -- 3.6 Array Type Definition --
2971 --------------------------------
2973 -- ARRAY_TYPE_DEFINITION ::=
2974 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2976 -----------------------------------------
2977 -- 3.6 Unconstrained Array Definition --
2978 -----------------------------------------
2980 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2981 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2982 -- COMPONENT_DEFINITION
2984 -- Note: dimensionality of array is indicated by number of entries in
2985 -- the Subtype_Marks list, which has one entry for each dimension.
2987 -- N_Unconstrained_Array_Definition
2988 -- Sloc points to ARRAY
2989 -- Subtype_Marks (List2)
2990 -- Component_Definition (Node4)
2992 -----------------------------------
2993 -- 3.6 Index Subtype Definition --
2994 -----------------------------------
2996 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2998 -- There is no explicit node in the tree for an index subtype
2999 -- definition since the N_Unconstrained_Array_Definition node
3000 -- incorporates the type marks which appear in this context.
3002 ---------------------------------------
3003 -- 3.6 Constrained Array Definition --
3004 ---------------------------------------
3006 -- CONSTRAINED_ARRAY_DEFINITION ::=
3007 -- array (DISCRETE_SUBTYPE_DEFINITION
3008 -- {, DISCRETE_SUBTYPE_DEFINITION})
3009 -- of COMPONENT_DEFINITION
3011 -- Note: dimensionality of array is indicated by number of entries
3012 -- in the Discrete_Subtype_Definitions list, which has one entry
3013 -- for each dimension.
3015 -- N_Constrained_Array_Definition
3016 -- Sloc points to ARRAY
3017 -- Discrete_Subtype_Definitions (List2)
3018 -- Component_Definition (Node4)
3020 -- Note: although the language allows the full syntax for discrete
3021 -- subtype definitions (i.e. a discrete subtype indication or a range),
3022 -- in the generated tree, we always rewrite these as N_Range nodes.
3024 --------------------------------------
3025 -- 3.6 Discrete Subtype Definition --
3026 --------------------------------------
3028 -- DISCRETE_SUBTYPE_DEFINITION ::=
3029 -- discrete_SUBTYPE_INDICATION | RANGE
3031 -------------------------------
3032 -- 3.6 Component Definition --
3033 -------------------------------
3035 -- COMPONENT_DEFINITION ::=
3036 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3038 -- Note: although the syntax does not permit a component definition to
3039 -- be an anonymous array (and the parser will diagnose such an attempt
3040 -- with an appropriate message), it is possible for anonymous arrays
3041 -- to appear as component definitions. The semantics and back end handle
3042 -- this case properly, and the expander in fact generates such cases.
3043 -- Access_Definition is an optional field that gives support to
3044 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3045 -- Subtype_Indication field or else the Access_Definition field.
3047 -- N_Component_Definition
3048 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
3049 -- Aliased_Present (Flag4)
3050 -- Null_Exclusion_Present (Flag11)
3051 -- Subtype_Indication (Node5) (set to Empty if not present)
3052 -- Access_Definition (Node3) (set to Empty if not present)
3054 -----------------------------
3055 -- 3.6.1 Index Constraint --
3056 -----------------------------
3058 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3060 -- It is not in general possible to distinguish between discriminant
3061 -- constraints and index constraints at parse time, since a simple
3062 -- name could be either the subtype mark of a discrete range, or an
3063 -- expression in a discriminant association with no name. Either
3064 -- entry appears simply as the name, and the semantic parse must
3065 -- distinguish between the two cases. Thus we use a common tree
3066 -- node format for both of these constraint types.
3068 -- See Discriminant_Constraint for format of node
3070 ---------------------------
3071 -- 3.6.1 Discrete Range --
3072 ---------------------------
3074 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3076 ----------------------------
3077 -- 3.7 Discriminant Part --
3078 ----------------------------
3080 -- DISCRIMINANT_PART ::=
3081 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3083 ------------------------------------
3084 -- 3.7 Unknown Discriminant Part --
3085 ------------------------------------
3087 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3089 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3091 -- There is no explicit node in the tree for an unknown discriminant
3092 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3093 -- parent node.
3095 ----------------------------------
3096 -- 3.7 Known Discriminant Part --
3097 ----------------------------------
3099 -- KNOWN_DISCRIMINANT_PART ::=
3100 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3102 -------------------------------------
3103 -- 3.7 Discriminant Specification --
3104 -------------------------------------
3106 -- DISCRIMINANT_SPECIFICATION ::=
3107 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3108 -- [:= DEFAULT_EXPRESSION]
3109 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3110 -- [:= DEFAULT_EXPRESSION]
3112 -- Although the syntax allows multiple identifiers in the list, the
3113 -- semantics is as though successive specifications were given with
3114 -- identical type definition and expression components. To simplify
3115 -- semantic processing, the parser represents a multiple declaration
3116 -- case as a sequence of single specifications, using the More_Ids and
3117 -- Prev_Ids flags to preserve the original source form as described
3118 -- in the section on "Handling of Defining Identifier Lists".
3120 -- N_Discriminant_Specification
3121 -- Sloc points to first identifier
3122 -- Defining_Identifier (Node1)
3123 -- Null_Exclusion_Present (Flag11)
3124 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3125 -- Expression (Node3) (set to Empty if no default expression)
3126 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3127 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3129 -----------------------------
3130 -- 3.7 Default Expression --
3131 -----------------------------
3133 -- DEFAULT_EXPRESSION ::= EXPRESSION
3135 ------------------------------------
3136 -- 3.7.1 Discriminant Constraint --
3137 ------------------------------------
3139 -- DISCRIMINANT_CONSTRAINT ::=
3140 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3142 -- It is not in general possible to distinguish between discriminant
3143 -- constraints and index constraints at parse time, since a simple
3144 -- name could be either the subtype mark of a discrete range, or an
3145 -- expression in a discriminant association with no name. Either
3146 -- entry appears simply as the name, and the semantic parse must
3147 -- distinguish between the two cases. Thus we use a common tree
3148 -- node format for both of these constraint types.
3150 -- N_Index_Or_Discriminant_Constraint
3151 -- Sloc points to left paren
3152 -- Constraints (List1) points to list of discrete ranges or
3153 -- discriminant associations
3155 -------------------------------------
3156 -- 3.7.1 Discriminant Association --
3157 -------------------------------------
3159 -- DISCRIMINANT_ASSOCIATION ::=
3160 -- [discriminant_SELECTOR_NAME
3161 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3163 -- Note: a discriminant association that has no selector name list
3164 -- appears directly as an expression in the tree.
3166 -- N_Discriminant_Association
3167 -- Sloc points to first token of discriminant association
3168 -- Selector_Names (List1) (always non-empty, since if no selector
3169 -- names are present, this node is not used, see comment above)
3170 -- Expression (Node3)
3172 ---------------------------------
3173 -- 3.8 Record Type Definition --
3174 ---------------------------------
3176 -- RECORD_TYPE_DEFINITION ::=
3177 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3179 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3181 -- There is no explicit node in the tree for a record type definition.
3182 -- Instead the flags for Tagged_Present and Limited_Present appear in
3183 -- the N_Record_Definition node for a record definition appearing in
3184 -- the context of a record type definition.
3186 ----------------------------
3187 -- 3.8 Record Definition --
3188 ----------------------------
3190 -- RECORD_DEFINITION ::=
3191 -- record
3192 -- COMPONENT_LIST
3193 -- end record
3194 -- | null record
3196 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
3197 -- flags appear only for a record definition appearing in a record
3198 -- type definition.
3200 -- Note: the NULL RECORD case is not permitted in Ada 83
3202 -- N_Record_Definition
3203 -- Sloc points to RECORD or NULL
3204 -- End_Label (Node4) (set to Empty if internally generated record)
3205 -- Abstract_Present (Flag4)
3206 -- Tagged_Present (Flag15)
3207 -- Limited_Present (Flag17)
3208 -- Component_List (Node1) empty in null record case
3209 -- Null_Present (Flag13) set in null record case
3210 -- Task_Present (Flag5) set in task interfaces
3211 -- Protected_Present (Flag6) set in protected interfaces
3212 -- Synchronized_Present (Flag7) set in interfaces
3213 -- Interface_Present (Flag16) set in abstract interfaces
3214 -- Interface_List (List2) (set to No_List if none)
3216 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3217 -- Interface_List and Interface_Present are used for abstract
3218 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3220 -------------------------
3221 -- 3.8 Component List --
3222 -------------------------
3224 -- COMPONENT_LIST ::=
3225 -- COMPONENT_ITEM {COMPONENT_ITEM}
3226 -- | {COMPONENT_ITEM} VARIANT_PART
3227 -- | null;
3229 -- N_Component_List
3230 -- Sloc points to first token of component list
3231 -- Component_Items (List3)
3232 -- Variant_Part (Node4) (set to Empty if no variant part)
3233 -- Null_Present (Flag13)
3235 -------------------------
3236 -- 3.8 Component Item --
3237 -------------------------
3239 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3241 -- Note: A component item can also be a pragma, and in the tree
3242 -- that is obtained after semantic processing, a component item
3243 -- can be an N_Null node resulting from a non-recognized pragma.
3245 --------------------------------
3246 -- 3.8 Component Declaration --
3247 --------------------------------
3249 -- COMPONENT_DECLARATION ::=
3250 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3251 -- [:= DEFAULT_EXPRESSION]
3252 -- [ASPECT_SPECIFICATIONS];
3254 -- Note: although the syntax does not permit a component definition to
3255 -- be an anonymous array (and the parser will diagnose such an attempt
3256 -- with an appropriate message), it is possible for anonymous arrays
3257 -- to appear as component definitions. The semantics and back end handle
3258 -- this case properly, and the expander in fact generates such cases.
3260 -- Although the syntax allows multiple identifiers in the list, the
3261 -- semantics is as though successive declarations were given with the
3262 -- same component definition and expression components. To simplify
3263 -- semantic processing, the parser represents a multiple declaration
3264 -- case as a sequence of single declarations, using the More_Ids and
3265 -- Prev_Ids flags to preserve the original source form as described
3266 -- in the section on "Handling of Defining Identifier Lists".
3268 -- N_Component_Declaration
3269 -- Sloc points to first identifier
3270 -- Defining_Identifier (Node1)
3271 -- Component_Definition (Node4)
3272 -- Expression (Node3) (set to Empty if no default expression)
3273 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3274 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3276 -------------------------
3277 -- 3.8.1 Variant Part --
3278 -------------------------
3280 -- VARIANT_PART ::=
3281 -- case discriminant_DIRECT_NAME is
3282 -- VARIANT {VARIANT}
3283 -- end case;
3285 -- Note: the variants list can contain pragmas as well as variants.
3286 -- In a properly formed program there is at least one variant.
3288 -- N_Variant_Part
3289 -- Sloc points to CASE
3290 -- Name (Node2)
3291 -- Variants (List1)
3293 --------------------
3294 -- 3.8.1 Variant --
3295 --------------------
3297 -- VARIANT ::=
3298 -- when DISCRETE_CHOICE_LIST =>
3299 -- COMPONENT_LIST
3301 -- N_Variant
3302 -- Sloc points to WHEN
3303 -- Discrete_Choices (List4)
3304 -- Component_List (Node1)
3305 -- Enclosing_Variant (Node2-Sem)
3306 -- Present_Expr (Uint3-Sem)
3307 -- Dcheck_Function (Node5-Sem)
3308 -- Has_SP_Choice (Flag15-Sem)
3310 -- Note: in the list of Discrete_Choices, the tree passed to the back
3311 -- end does not have choice entries corresponding to names of statically
3312 -- predicated subtypes. Such entries are always expanded out to the list
3313 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3314 -- mode also has this expansion, but done with a proper Rewrite call on
3315 -- the N_Variant node so that ASIS can properly retrieve the original.
3317 ---------------------------------
3318 -- 3.8.1 Discrete Choice List --
3319 ---------------------------------
3321 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3323 ----------------------------
3324 -- 3.8.1 Discrete Choice --
3325 ----------------------------
3327 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3329 -- Note: in Ada 83 mode, the expression must be a simple expression
3331 -- The only choice that appears explicitly is the OTHERS choice, as
3332 -- defined here. Other cases of discrete choice (expression and
3333 -- discrete range) appear directly. This production is also used
3334 -- for the OTHERS possibility of an exception choice.
3336 -- Note: in accordance with the syntax, the parser does not check that
3337 -- OTHERS appears at the end on its own in a choice list context. This
3338 -- is a semantic check.
3340 -- N_Others_Choice
3341 -- Sloc points to OTHERS
3342 -- Others_Discrete_Choices (List1-Sem)
3343 -- All_Others (Flag11-Sem)
3345 ----------------------------------
3346 -- 3.9.1 Record Extension Part --
3347 ----------------------------------
3349 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3351 -- Note: record extension parts are not permitted in Ada 83 mode
3353 --------------------------------------
3354 -- 3.9.4 Interface Type Definition --
3355 --------------------------------------
3357 -- INTERFACE_TYPE_DEFINITION ::=
3358 -- [limited | task | protected | synchronized]
3359 -- interface [interface_list]
3361 -- Note: Interfaces are implemented with N_Record_Definition and
3362 -- N_Derived_Type_Definition nodes because most of the support
3363 -- for the analysis of abstract types has been reused to
3364 -- analyze abstract interfaces.
3366 ----------------------------------
3367 -- 3.10 Access Type Definition --
3368 ----------------------------------
3370 -- ACCESS_TYPE_DEFINITION ::=
3371 -- ACCESS_TO_OBJECT_DEFINITION
3372 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3374 --------------------------
3375 -- 3.10 Null Exclusion --
3376 --------------------------
3378 -- NULL_EXCLUSION ::= not null
3380 ---------------------------------------
3381 -- 3.10 Access To Object Definition --
3382 ---------------------------------------
3384 -- ACCESS_TO_OBJECT_DEFINITION ::=
3385 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3386 -- SUBTYPE_INDICATION
3388 -- N_Access_To_Object_Definition
3389 -- Sloc points to ACCESS
3390 -- All_Present (Flag15)
3391 -- Null_Exclusion_Present (Flag11)
3392 -- Null_Excluding_Subtype (Flag16)
3393 -- Subtype_Indication (Node5)
3394 -- Constant_Present (Flag17)
3396 -----------------------------------
3397 -- 3.10 General Access Modifier --
3398 -----------------------------------
3400 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3402 -- Note: general access modifiers are not permitted in Ada 83 mode
3404 -- There is no explicit node in the tree for general access modifier.
3405 -- Instead the All_Present or Constant_Present flags are set in the
3406 -- parent node.
3408 -------------------------------------------
3409 -- 3.10 Access To Subprogram Definition --
3410 -------------------------------------------
3412 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3413 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3414 -- | [NULL_EXCLUSION] access [protected] function
3415 -- PARAMETER_AND_RESULT_PROFILE
3417 -- Note: access to subprograms are not permitted in Ada 83 mode
3419 -- N_Access_Function_Definition
3420 -- Sloc points to ACCESS
3421 -- Null_Exclusion_Present (Flag11)
3422 -- Null_Exclusion_In_Return_Present (Flag14)
3423 -- Protected_Present (Flag6)
3424 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3425 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3427 -- N_Access_Procedure_Definition
3428 -- Sloc points to ACCESS
3429 -- Null_Exclusion_Present (Flag11)
3430 -- Protected_Present (Flag6)
3431 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3433 -----------------------------
3434 -- 3.10 Access Definition --
3435 -----------------------------
3437 -- ACCESS_DEFINITION ::=
3438 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3439 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3441 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3443 -- N_Access_Definition
3444 -- Sloc points to ACCESS
3445 -- Null_Exclusion_Present (Flag11)
3446 -- All_Present (Flag15)
3447 -- Constant_Present (Flag17)
3448 -- Subtype_Mark (Node4)
3449 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3451 -----------------------------------------
3452 -- 3.10.1 Incomplete Type Declaration --
3453 -----------------------------------------
3455 -- INCOMPLETE_TYPE_DECLARATION ::=
3456 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3458 -- N_Incomplete_Type_Declaration
3459 -- Sloc points to TYPE
3460 -- Defining_Identifier (Node1)
3461 -- Discriminant_Specifications (List4) (set to No_List if no
3462 -- discriminant part, or if the discriminant part is an
3463 -- unknown discriminant part)
3464 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3465 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3466 -- Tagged_Present (Flag15)
3468 ----------------------------
3469 -- 3.11 Declarative Part --
3470 ----------------------------
3472 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3474 -- Note: although the parser enforces the syntactic requirement that
3475 -- a declarative part can contain only declarations, the semantic
3476 -- processing may add statements to the list of actions in a
3477 -- declarative part, so the code generator should be prepared
3478 -- to accept a statement in this position.
3480 ----------------------------
3481 -- 3.11 Declarative Item --
3482 ----------------------------
3484 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3486 ----------------------------------
3487 -- 3.11 Basic Declarative Item --
3488 ----------------------------------
3490 -- BASIC_DECLARATIVE_ITEM ::=
3491 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3493 ----------------
3494 -- 3.11 Body --
3495 ----------------
3497 -- BODY ::= PROPER_BODY | BODY_STUB
3499 -----------------------
3500 -- 3.11 Proper Body --
3501 -----------------------
3503 -- PROPER_BODY ::=
3504 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3506 ---------------
3507 -- 4.1 Name --
3508 ---------------
3510 -- NAME ::=
3511 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3512 -- | INDEXED_COMPONENT | SLICE
3513 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3514 -- | TYPE_CONVERSION | FUNCTION_CALL
3515 -- | CHARACTER_LITERAL
3517 ----------------------
3518 -- 4.1 Direct Name --
3519 ----------------------
3521 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3523 -----------------
3524 -- 4.1 Prefix --
3525 -----------------
3527 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3529 -------------------------------
3530 -- 4.1 Explicit Dereference --
3531 -------------------------------
3533 -- EXPLICIT_DEREFERENCE ::= NAME . all
3535 -- N_Explicit_Dereference
3536 -- Sloc points to ALL
3537 -- Prefix (Node3)
3538 -- Actual_Designated_Subtype (Node4-Sem)
3539 -- Atomic_Sync_Required (Flag14-Sem)
3540 -- Has_Dereference_Action (Flag13-Sem)
3541 -- plus fields for expression
3543 -------------------------------
3544 -- 4.1 Implicit Dereference --
3545 -------------------------------
3547 -- IMPLICIT_DEREFERENCE ::= NAME
3549 ------------------------------
3550 -- 4.1.1 Indexed Component --
3551 ------------------------------
3553 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3555 -- Note: the parser may generate this node in some situations where it
3556 -- should be a function call. The semantic pass must correct this
3557 -- misidentification (which is inevitable at the parser level).
3559 -- N_Indexed_Component
3560 -- Sloc contains a copy of the Sloc value of the Prefix
3561 -- Prefix (Node3)
3562 -- Expressions (List1)
3563 -- Generalized_Indexing (Node4-Sem)
3564 -- Atomic_Sync_Required (Flag14-Sem)
3565 -- plus fields for expression
3567 -- Note: if any of the subscripts requires a range check, then the
3568 -- Do_Range_Check flag is set on the corresponding expression, with
3569 -- the index type being determined from the type of the Prefix, which
3570 -- references the array being indexed.
3572 -- Note: in a fully analyzed and expanded indexed component node, and
3573 -- hence in any such node that gigi sees, if the prefix is an access
3574 -- type, then an explicit dereference operation has been inserted.
3576 ------------------
3577 -- 4.1.2 Slice --
3578 ------------------
3580 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3582 -- Note: an implicit subtype is created to describe the resulting
3583 -- type, so that the bounds of this type are the bounds of the slice.
3585 -- N_Slice
3586 -- Sloc points to first token of prefix
3587 -- Prefix (Node3)
3588 -- Discrete_Range (Node4)
3589 -- plus fields for expression
3591 -------------------------------
3592 -- 4.1.3 Selected Component --
3593 -------------------------------
3595 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3597 -- Note: selected components that are semantically expanded names get
3598 -- changed during semantic processing into the separate N_Expanded_Name
3599 -- node. See description of this node in the section on semantic nodes.
3601 -- N_Selected_Component
3602 -- Sloc points to period
3603 -- Prefix (Node3)
3604 -- Selector_Name (Node2)
3605 -- Associated_Node (Node4-Sem)
3606 -- Do_Discriminant_Check (Flag1-Sem)
3607 -- Is_In_Discriminant_Check (Flag11-Sem)
3608 -- Is_Prefixed_Call (Flag17-Sem)
3609 -- Atomic_Sync_Required (Flag14-Sem)
3610 -- plus fields for expression
3612 --------------------------
3613 -- 4.1.3 Selector Name --
3614 --------------------------
3616 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3618 --------------------------------
3619 -- 4.1.4 Attribute Reference --
3620 --------------------------------
3622 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3624 -- Note: the syntax is quite ambiguous at this point. Consider:
3626 -- A'Length (X) X is part of the attribute designator
3627 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3628 -- A'Class (X) X is the expression of a type conversion
3630 -- It would be possible for the parser to distinguish these cases
3631 -- by looking at the attribute identifier. However, that would mean
3632 -- more work in introducing new implementation defined attributes,
3633 -- and also it would mean that special processing for attributes
3634 -- would be scattered around, instead of being centralized in the
3635 -- semantic routine that handles an N_Attribute_Reference node.
3636 -- Consequently, the parser in all the above cases stores the
3637 -- expression (X in these examples) as a single element list in
3638 -- in the Expressions field of the N_Attribute_Reference node.
3640 -- Similarly, for attributes like Max which take two arguments,
3641 -- we store the two arguments as a two element list in the
3642 -- Expressions field. Of course it is clear at parse time that
3643 -- this case is really a function call with an attribute as the
3644 -- prefix, but it turns out to be convenient to handle the two
3645 -- argument case in a similar manner to the one argument case,
3646 -- and indeed in general the parser will accept any number of
3647 -- expressions in this position and store them as a list in the
3648 -- attribute reference node. This allows for future addition of
3649 -- attributes that take more than two arguments.
3651 -- Note: named associates are not permitted in function calls where
3652 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3653 -- to skip the normal subprogram argument processing.
3655 -- Note: for the attributes whose designators are technically keywords,
3656 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3657 -- the corresponding name, even though no identifier is involved.
3659 -- Note: the generated code may contain stream attributes applied to
3660 -- limited types for which no stream routines exist officially. In such
3661 -- case, the result is to use the stream attribute for the underlying
3662 -- full type, or in the case of a protected type, the components
3663 -- (including any discriminants) are merely streamed in order.
3665 -- See Exp_Attr for a complete description of which attributes are
3666 -- passed onto Gigi, and which are handled entirely by the front end.
3668 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3669 -- a non-standard enumeration type or a nonzero/zero semantics
3670 -- boolean type, so the value is simply the stored representation.
3672 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3673 -- references a subprogram that is a renaming, then the front end must
3674 -- rewrite the attribute to refer directly to the renamed entity.
3676 -- Note: syntactically the prefix of an attribute reference must be a
3677 -- name, and this (somewhat artificial) requirement is enforced by the
3678 -- parser. However, for many attributes, such as 'Valid, it is quite
3679 -- reasonable to apply the attribute to any value, and hence to any
3680 -- expression. Internally in the tree, the prefix is an expression which
3681 -- does not have to be a name, and this is handled fine by the semantic
3682 -- analysis and expansion, and back ends. This arises for the case of
3683 -- attribute references built by the expander (e.g. 'Valid for the case
3684 -- of an implicit validity check).
3686 -- Note: In generated code, the Address and Unrestricted_Access
3687 -- attributes can be applied to any expression, and the meaning is
3688 -- to create an object containing the value (the object is in the
3689 -- current stack frame), and pass the address of this value. If the
3690 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3691 -- is taken must be on a byte (storage unit) boundary, and if it is
3692 -- not (or may not be), then the generated code must create a copy
3693 -- that is byte aligned, and pass the address of this copy.
3695 -- N_Attribute_Reference
3696 -- Sloc points to apostrophe
3697 -- Prefix (Node3) (general expression, see note above)
3698 -- Attribute_Name (Name2) identifier name from attribute designator
3699 -- Expressions (List1) (set to No_List if no associated expressions)
3700 -- Entity (Node4-Sem) used if the attribute yields a type
3701 -- Associated_Node (Node4-Sem)
3702 -- Do_Overflow_Check (Flag17-Sem)
3703 -- Header_Size_Added (Flag11-Sem)
3704 -- Must_Be_Byte_Aligned (Flag14-Sem)
3705 -- Non_Aliased_Prefix (Flag18-Sem)
3706 -- Redundant_Use (Flag13-Sem)
3708 -- plus fields for expression
3710 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
3711 -- into equivalent if expressions, properly taking care of side effects.
3713 ---------------------------------
3714 -- 4.1.4 Attribute Designator --
3715 ---------------------------------
3717 -- ATTRIBUTE_DESIGNATOR ::=
3718 -- IDENTIFIER [(static_EXPRESSION)]
3719 -- | access | delta | digits
3721 -- There is no explicit node in the tree for an attribute designator.
3722 -- Instead the Attribute_Name and Expressions fields of the parent
3723 -- node (N_Attribute_Reference node) hold the information.
3725 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3726 -- designator, then they are treated as identifiers internally
3727 -- rather than the keywords of the same name.
3729 --------------------------------------
3730 -- 4.1.4 Range Attribute Reference --
3731 --------------------------------------
3733 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3735 -- A range attribute reference is represented in the tree using the
3736 -- normal N_Attribute_Reference node.
3738 ---------------------------------------
3739 -- 4.1.4 Range Attribute Designator --
3740 ---------------------------------------
3742 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3744 -- A range attribute designator is represented in the tree using the
3745 -- normal N_Attribute_Reference node.
3747 --------------------
3748 -- 4.3 Aggregate --
3749 --------------------
3751 -- AGGREGATE ::=
3752 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3754 -----------------------------
3755 -- 4.3.1 Record Aggregate --
3756 -----------------------------
3758 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3760 -- N_Aggregate
3761 -- Sloc points to left parenthesis
3762 -- Expressions (List1) (set to No_List if none or null record case)
3763 -- Component_Associations (List2) (set to No_List if none)
3764 -- Null_Record_Present (Flag17)
3765 -- Aggregate_Bounds (Node3-Sem)
3766 -- Associated_Node (Node4-Sem)
3767 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3768 -- Expansion_Delayed (Flag11-Sem)
3769 -- Has_Self_Reference (Flag13-Sem)
3770 -- plus fields for expression
3772 -- Note: this structure is used for both record and array aggregates
3773 -- since the two cases are not separable by the parser. The parser
3774 -- makes no attempt to enforce consistency here, so it is up to the
3775 -- semantic phase to make sure that the aggregate is consistent (i.e.
3776 -- that it is not a "half-and-half" case that mixes record and array
3777 -- syntax. In particular, for a record aggregate, the expressions
3778 -- field will be set if there are positional associations.
3780 -- Note: N_Aggregate is not used for all aggregates; in particular,
3781 -- there is a separate node kind for extension aggregates.
3783 -- Note: gigi/gcc can handle array aggregates correctly providing that
3784 -- they are entirely positional, and the array subtype involved has a
3785 -- known at compile time length and is not bit packed, or a convention
3786 -- Fortran array with more than one dimension. If these conditions
3787 -- are not met, then the front end must translate the aggregate into
3788 -- an appropriate set of assignments into a temporary.
3790 -- Note: for the record aggregate case, gigi/gcc can handle most cases
3791 -- of record aggregates, including those for packed, and rep-claused
3792 -- records, and also variant records, providing that there are no
3793 -- variable length fields whose size is not known at compile time,
3794 -- and providing that the aggregate is presented in fully named form.
3796 -- The other situation in which array aggregates and record aggregates
3797 -- cannot be passed to the back end is if assignment to one or more
3798 -- components itself needs expansion, e.g. in the case of an assignment
3799 -- of an object of a controlled type. In such cases, the front end
3800 -- must expand the aggregate to a series of assignments, and apply
3801 -- the required expansion to the individual assignment statements.
3803 ----------------------------------------------
3804 -- 4.3.1 Record Component Association List --
3805 ----------------------------------------------
3807 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3808 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3809 -- | null record
3811 -- There is no explicit node in the tree for a record component
3812 -- association list. Instead the Null_Record_Present flag is set in
3813 -- the parent node for the NULL RECORD case.
3815 ------------------------------------------------------
3816 -- 4.3.1 Record Component Association (also 4.3.3) --
3817 ------------------------------------------------------
3819 -- RECORD_COMPONENT_ASSOCIATION ::=
3820 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3822 -- N_Component_Association
3823 -- Sloc points to first selector name
3824 -- Choices (List1)
3825 -- Loop_Actions (List2-Sem)
3826 -- Expression (Node3) (empty if Box_Present)
3827 -- Box_Present (Flag15)
3828 -- Inherited_Discriminant (Flag13)
3830 -- Note: this structure is used for both record component associations
3831 -- and array component associations, since the two cases aren't always
3832 -- separable by the parser. The choices list may represent either a
3833 -- list of selector names in the record aggregate case, or a list of
3834 -- discrete choices in the array aggregate case or an N_Others_Choice
3835 -- node (which appears as a singleton list). Box_Present gives support
3836 -- to Ada 2005 (AI-287).
3838 ----------------------------------
3839 -- 4.3.1 Component Choice List --
3840 ----------------------------------
3842 -- COMPONENT_CHOICE_LIST ::=
3843 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3844 -- | others
3846 -- The entries of a component choice list appear in the Choices list of
3847 -- the associated N_Component_Association, as either selector names, or
3848 -- as an N_Others_Choice node.
3850 --------------------------------
3851 -- 4.3.2 Extension Aggregate --
3852 --------------------------------
3854 -- EXTENSION_AGGREGATE ::=
3855 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3857 -- Note: extension aggregates are not permitted in Ada 83 mode
3859 -- N_Extension_Aggregate
3860 -- Sloc points to left parenthesis
3861 -- Ancestor_Part (Node3)
3862 -- Associated_Node (Node4-Sem)
3863 -- Expressions (List1) (set to No_List if none or null record case)
3864 -- Component_Associations (List2) (set to No_List if none)
3865 -- Null_Record_Present (Flag17)
3866 -- Expansion_Delayed (Flag11-Sem)
3867 -- Has_Self_Reference (Flag13-Sem)
3868 -- plus fields for expression
3870 --------------------------
3871 -- 4.3.2 Ancestor Part --
3872 --------------------------
3874 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3876 ----------------------------
3877 -- 4.3.3 Array Aggregate --
3878 ----------------------------
3880 -- ARRAY_AGGREGATE ::=
3881 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3883 ---------------------------------------
3884 -- 4.3.3 Positional Array Aggregate --
3885 ---------------------------------------
3887 -- POSITIONAL_ARRAY_AGGREGATE ::=
3888 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3889 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3891 -- See Record_Aggregate (4.3.1) for node structure
3893 ----------------------------------
3894 -- 4.3.3 Named Array Aggregate --
3895 ----------------------------------
3897 -- NAMED_ARRAY_AGGREGATE ::=
3898 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3900 -- See Record_Aggregate (4.3.1) for node structure
3902 ----------------------------------------
3903 -- 4.3.3 Array Component Association --
3904 ----------------------------------------
3906 -- ARRAY_COMPONENT_ASSOCIATION ::=
3907 -- DISCRETE_CHOICE_LIST => EXPRESSION
3909 -- See Record_Component_Association (4.3.1) for node structure
3911 --------------------------------------------------
3912 -- 4.4 Expression/Relation/Term/Factor/Primary --
3913 --------------------------------------------------
3915 -- EXPRESSION ::=
3916 -- RELATION {LOGICAL_OPERATOR RELATION}
3918 -- CHOICE_EXPRESSION ::=
3919 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3921 -- CHOICE_RELATION ::=
3922 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3924 -- RELATION ::=
3925 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3926 -- | RAISE_EXPRESSION
3928 -- MEMBERSHIP_CHOICE_LIST ::=
3929 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3931 -- MEMBERSHIP_CHOICE ::=
3932 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3934 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3936 -- SIMPLE_EXPRESSION ::=
3937 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3939 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3941 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3943 -- No nodes are generated for any of these constructs. Instead, the
3944 -- node for the operator appears directly. When we refer to an
3945 -- expression in this description, we mean any of the possible
3946 -- constituent components of an expression (e.g. identifier is
3947 -- an example of an expression).
3949 -- Note: the above syntax is that Ada 2012 syntax which restricts
3950 -- choice relations to simple expressions to avoid ambiguities in
3951 -- some contexts with set membership notation. It has been decided
3952 -- that in retrospect, the Ada 95 change allowing general expressions
3953 -- in this context was a mistake, so we have reverted to the above
3954 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3955 -- expressions was there in Ada 83 from the start).
3957 ------------------
3958 -- 4.4 Primary --
3959 ------------------
3961 -- PRIMARY ::=
3962 -- NUMERIC_LITERAL | null
3963 -- | STRING_LITERAL | AGGREGATE
3964 -- | NAME | QUALIFIED_EXPRESSION
3965 -- | ALLOCATOR | (EXPRESSION)
3967 -- Usually there is no explicit node in the tree for primary. Instead
3968 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3969 -- exceptions. First, there is an explicit node for a null primary.
3971 -- N_Null
3972 -- Sloc points to NULL
3973 -- plus fields for expression
3975 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3976 -- that the parser keep track of which subexpressions are enclosed
3977 -- in parentheses, and how many levels of parentheses are used. This
3978 -- information is required for optimization purposes, and also for
3979 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3980 -- conform with ((((1)))) in the body).
3982 -- The parentheses are recorded by keeping a Paren_Count field in every
3983 -- subexpression node (it is actually present in all nodes, but only
3984 -- used in subexpression nodes). This count records the number of
3985 -- levels of parentheses. If the number of levels in the source exceeds
3986 -- the maximum accommodated by this count, then the count is simply left
3987 -- at the maximum value. This means that there are some pathological
3988 -- cases of failure to detect conformance failures (e.g. an expression
3989 -- with 500 levels of parens will conform with one with 501 levels),
3990 -- but we do not need to lose sleep over this.
3992 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3993 -- type N_Parenthesized_Expression used to accurately record unlimited
3994 -- numbers of levels of parentheses. However, it turned out to be a
3995 -- real nuisance to have to take into account the possible presence of
3996 -- this node during semantic analysis, since basically parentheses have
3997 -- zero relevance to semantic analysis.
3999 -- Note: the level of parentheses always present in things like
4000 -- aggregates does not count, only the parentheses in the primary
4001 -- (EXPRESSION) affect the setting of the Paren_Count field.
4003 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4004 -- treated as though it were Empty) if No_Initialization is set True.
4006 --------------------------------------
4007 -- 4.5 Short Circuit Control Forms --
4008 --------------------------------------
4010 -- EXPRESSION ::=
4011 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4013 -- Gigi restriction: For both these control forms, the operand and
4014 -- result types are always Standard.Boolean. The expander inserts the
4015 -- required conversion operations where needed to ensure this is the
4016 -- case.
4018 -- N_And_Then
4019 -- Sloc points to AND of AND THEN
4020 -- Left_Opnd (Node2)
4021 -- Right_Opnd (Node3)
4022 -- Actions (List1-Sem)
4023 -- plus fields for expression
4025 -- N_Or_Else
4026 -- Sloc points to OR of OR ELSE
4027 -- Left_Opnd (Node2)
4028 -- Right_Opnd (Node3)
4029 -- Actions (List1-Sem)
4030 -- plus fields for expression
4032 -- Note: The Actions field is used to hold actions associated with
4033 -- the right hand operand. These have to be treated specially since
4034 -- they are not unconditionally executed. See Insert_Actions for a
4035 -- more detailed description of how these actions are handled.
4037 ---------------------------
4038 -- 4.5 Membership Tests --
4039 ---------------------------
4041 -- RELATION ::=
4042 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4044 -- MEMBERSHIP_CHOICE_LIST ::=
4045 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4047 -- MEMBERSHIP_CHOICE ::=
4048 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4050 -- Note: although the grammar above allows only a range or a subtype
4051 -- mark, the parser in fact will accept any simple expression in place
4052 -- of a subtype mark. This means that the semantic analyzer must be able
4053 -- to deal with, and diagnose a simple expression other than a name for
4054 -- the right operand. This simplifies error recovery in the parser.
4056 -- The Alternatives field below is present only if there is more than
4057 -- one Membership_Choice present (which is legitimate only in Ada 2012
4058 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4059 -- the list of choices. In the tree passed to the back end, Alternatives
4060 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4061 -- expands out the complex set membership case using simple membership
4062 -- and equality operations).
4064 -- Should we rename Alternatives here to Membership_Choices ???
4066 -- N_In
4067 -- Sloc points to IN
4068 -- Left_Opnd (Node2)
4069 -- Right_Opnd (Node3)
4070 -- Alternatives (List4) (set to No_List if only one set alternative)
4071 -- No_Minimize_Eliminate (Flag17)
4072 -- plus fields for expression
4074 -- N_Not_In
4075 -- Sloc points to NOT of NOT IN
4076 -- Left_Opnd (Node2)
4077 -- Right_Opnd (Node3)
4078 -- Alternatives (List4) (set to No_List if only one set alternative)
4079 -- No_Minimize_Eliminate (Flag17)
4080 -- plus fields for expression
4082 --------------------
4083 -- 4.5 Operators --
4084 --------------------
4086 -- LOGICAL_OPERATOR ::= and | or | xor
4088 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4090 -- BINARY_ADDING_OPERATOR ::= + | - | &
4092 -- UNARY_ADDING_OPERATOR ::= + | -
4094 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4096 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4098 -- Sprint syntax if Treat_Fixed_As_Integer is set:
4100 -- x #* y
4101 -- x #/ y
4102 -- x #mod y
4103 -- x #rem y
4105 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
4106 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
4107 -- All handling of smalls for multiplication and division is handled
4108 -- by the front end (mod and rem result only from expansion). Gigi
4109 -- thus never needs to worry about small values (for other operators
4110 -- operating on fixed-point, e.g. addition, the small value does not
4111 -- have any semantic effect anyway, these are always integer operations.
4113 -- Gigi restriction: For all operators taking Boolean operands, the
4114 -- type is always Standard.Boolean. The expander inserts the required
4115 -- conversion operations where needed to ensure this is the case.
4117 -- N_Op_And
4118 -- Sloc points to AND
4119 -- Do_Length_Check (Flag4-Sem)
4120 -- plus fields for binary operator
4121 -- plus fields for expression
4123 -- N_Op_Or
4124 -- Sloc points to OR
4125 -- Do_Length_Check (Flag4-Sem)
4126 -- plus fields for binary operator
4127 -- plus fields for expression
4129 -- N_Op_Xor
4130 -- Sloc points to XOR
4131 -- Do_Length_Check (Flag4-Sem)
4132 -- plus fields for binary operator
4133 -- plus fields for expression
4135 -- N_Op_Eq
4136 -- Sloc points to =
4137 -- plus fields for binary operator
4138 -- plus fields for expression
4140 -- N_Op_Ne
4141 -- Sloc points to /=
4142 -- plus fields for binary operator
4143 -- plus fields for expression
4145 -- N_Op_Lt
4146 -- Sloc points to <
4147 -- plus fields for binary operator
4148 -- plus fields for expression
4150 -- N_Op_Le
4151 -- Sloc points to <=
4152 -- plus fields for binary operator
4153 -- plus fields for expression
4155 -- N_Op_Gt
4156 -- Sloc points to >
4157 -- plus fields for binary operator
4158 -- plus fields for expression
4160 -- N_Op_Ge
4161 -- Sloc points to >=
4162 -- plus fields for binary operator
4163 -- plus fields for expression
4165 -- N_Op_Add
4166 -- Sloc points to + (binary)
4167 -- plus fields for binary operator
4168 -- plus fields for expression
4170 -- N_Op_Subtract
4171 -- Sloc points to - (binary)
4172 -- plus fields for binary operator
4173 -- plus fields for expression
4175 -- N_Op_Concat
4176 -- Sloc points to &
4177 -- Is_Component_Left_Opnd (Flag13-Sem)
4178 -- Is_Component_Right_Opnd (Flag14-Sem)
4179 -- plus fields for binary operator
4180 -- plus fields for expression
4182 -- N_Op_Multiply
4183 -- Sloc points to *
4184 -- Treat_Fixed_As_Integer (Flag14-Sem)
4185 -- Rounded_Result (Flag18-Sem)
4186 -- plus fields for binary operator
4187 -- plus fields for expression
4189 -- N_Op_Divide
4190 -- Sloc points to /
4191 -- Treat_Fixed_As_Integer (Flag14-Sem)
4192 -- Do_Division_Check (Flag13-Sem)
4193 -- Rounded_Result (Flag18-Sem)
4194 -- plus fields for binary operator
4195 -- plus fields for expression
4197 -- N_Op_Mod
4198 -- Sloc points to MOD
4199 -- Treat_Fixed_As_Integer (Flag14-Sem)
4200 -- Do_Division_Check (Flag13-Sem)
4201 -- plus fields for binary operator
4202 -- plus fields for expression
4204 -- N_Op_Rem
4205 -- Sloc points to REM
4206 -- Treat_Fixed_As_Integer (Flag14-Sem)
4207 -- Do_Division_Check (Flag13-Sem)
4208 -- plus fields for binary operator
4209 -- plus fields for expression
4211 -- N_Op_Expon
4212 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4213 -- Sloc points to **
4214 -- plus fields for binary operator
4215 -- plus fields for expression
4217 -- N_Op_Plus
4218 -- Sloc points to + (unary)
4219 -- plus fields for unary operator
4220 -- plus fields for expression
4222 -- N_Op_Minus
4223 -- Sloc points to - (unary)
4224 -- plus fields for unary operator
4225 -- plus fields for expression
4227 -- N_Op_Abs
4228 -- Sloc points to ABS
4229 -- plus fields for unary operator
4230 -- plus fields for expression
4232 -- N_Op_Not
4233 -- Sloc points to NOT
4234 -- plus fields for unary operator
4235 -- plus fields for expression
4237 -- See also shift operators in section B.2
4239 -- Note on fixed-point operations passed to Gigi: For adding operators,
4240 -- the semantics is to treat these simply as integer operations, with
4241 -- the small values being ignored (the bounds are already stored in
4242 -- units of small, so that constraint checking works as usual). For the
4243 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
4244 -- point operands if the Treat_Fixed_As_Integer flag is set and will
4245 -- thus treat these nodes in identical manner, ignoring small values.
4247 -- Note on equality/inequality tests for records. In the expanded tree,
4248 -- record comparisons are always expanded to be a series of component
4249 -- comparisons, so the back end will never see an equality or inequality
4250 -- operation with operands of a record type.
4252 -- Note on overflow handling: When the overflow checking mode is set to
4253 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4254 -- be modified to use a larger type for the operands and result. In
4255 -- the case where the computed range exceeds that of Long_Long_Integer,
4256 -- and we are running in ELIMINATED mode, the operator node will be
4257 -- changed to be a call to the appropriate routine in System.Bignums.
4259 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4260 -- for signed integer types (since there is no equivalent operator in
4261 -- C). Instead we rewrite such an operation in terms of REM (which is
4262 -- % in C) and other C-available operators.
4264 ------------------------------------
4265 -- 4.5.7 Conditional Expressions --
4266 ------------------------------------
4268 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4270 --------------------------
4271 -- 4.5.7 If Expression --
4272 ----------------------------
4274 -- IF_EXPRESSION ::=
4275 -- if CONDITION then DEPENDENT_EXPRESSION
4276 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4277 -- [else DEPENDENT_EXPRESSION]
4279 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4281 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4282 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4283 -- the Is_Elsif flag is set on the inner if expression.
4285 -- N_If_Expression
4286 -- Sloc points to IF or ELSIF keyword
4287 -- Expressions (List1)
4288 -- Then_Actions (List2-Sem)
4289 -- Else_Actions (List3-Sem)
4290 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4291 -- Do_Overflow_Check (Flag17-Sem)
4292 -- plus fields for expression
4294 -- Expressions here is a three-element list, whose first element is the
4295 -- condition, the second element is the dependent expression after THEN
4296 -- and the third element is the dependent expression after the ELSE
4297 -- (explicitly set to True if missing).
4299 -- Note: the Then_Actions and Else_Actions fields are always set to
4300 -- No_List in the tree passed to the back end. These are used only
4301 -- for temporary processing purposes in the expander. Even though they
4302 -- are semantic fields, their parent pointers are set because analysis
4303 -- of actions nodes in those lists may generate additional actions that
4304 -- need to know their insertion point (for example for the creation of
4305 -- transient scopes).
4307 -- Note: in the tree passed to the back end, if the result type is
4308 -- an unconstrained array, the if expression can only appears in the
4309 -- initializing expression of an object declaration (this avoids the
4310 -- back end having to create a variable length temporary on the fly).
4312 ----------------------------
4313 -- 4.5.7 Case Expression --
4314 ----------------------------
4316 -- CASE_EXPRESSION ::=
4317 -- case SELECTING_EXPRESSION is
4318 -- CASE_EXPRESSION_ALTERNATIVE
4319 -- {,CASE_EXPRESSION_ALTERNATIVE}
4321 -- Note that the Alternatives cannot include pragmas (this contrasts
4322 -- with the situation of case statements where pragmas are allowed).
4324 -- N_Case_Expression
4325 -- Sloc points to CASE
4326 -- Expression (Node3) (the selecting expression)
4327 -- Alternatives (List4) (the case expression alternatives)
4328 -- Do_Overflow_Check (Flag17-Sem)
4330 ----------------------------------------
4331 -- 4.5.7 Case Expression Alternative --
4332 ----------------------------------------
4334 -- CASE_EXPRESSION_ALTERNATIVE ::=
4335 -- when DISCRETE_CHOICE_LIST =>
4336 -- DEPENDENT_EXPRESSION
4338 -- N_Case_Expression_Alternative
4339 -- Sloc points to WHEN
4340 -- Actions (List1)
4341 -- Discrete_Choices (List4)
4342 -- Expression (Node3)
4343 -- Has_SP_Choice (Flag15-Sem)
4345 -- Note: The Actions field temporarily holds any actions associated with
4346 -- evaluation of the Expression. During expansion of the case expression
4347 -- these actions are wrapped into an N_Expressions_With_Actions node
4348 -- replacing the original expression.
4350 -- Note: this node never appears in the tree passed to the back end,
4351 -- since the expander converts case expressions into case statements.
4353 ---------------------------------
4354 -- 4.5.9 Quantified Expression --
4355 ---------------------------------
4357 -- QUANTIFIED_EXPRESSION ::=
4358 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4359 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4361 -- QUANTIFIER ::= all | some
4363 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4364 -- is present at a time, in which case the other one is empty.
4366 -- N_Quantified_Expression
4367 -- Sloc points to FOR
4368 -- Iterator_Specification (Node2)
4369 -- Loop_Parameter_Specification (Node4)
4370 -- Condition (Node1)
4371 -- All_Present (Flag15)
4373 --------------------------
4374 -- 4.6 Type Conversion --
4375 --------------------------
4377 -- TYPE_CONVERSION ::=
4378 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4380 -- In the (NAME) case, the name is stored as the expression
4382 -- Note: the parser never generates a type conversion node, since it
4383 -- looks like an indexed component which is generated by preference.
4384 -- The semantic pass must correct this misidentification.
4386 -- Gigi handles conversions that involve no change in the root type,
4387 -- and also all conversions from integer to floating-point types.
4388 -- Conversions from floating-point to integer are only handled in
4389 -- the case where Float_Truncate flag set. Other conversions from
4390 -- floating-point to integer (involving rounding) and all conversions
4391 -- involving fixed-point types are handled by the expander.
4393 -- Sprint syntax if Float_Truncate set: X^(Y)
4394 -- Sprint syntax if Conversion_OK set X?(Y)
4395 -- Sprint syntax if both flags set X?^(Y)
4397 -- Note: If either the operand or result type is fixed-point, Gigi will
4398 -- only see a type conversion node with Conversion_OK set. The front end
4399 -- takes care of all handling of small's for fixed-point conversions.
4401 -- N_Type_Conversion
4402 -- Sloc points to first token of subtype mark
4403 -- Subtype_Mark (Node4)
4404 -- Expression (Node3)
4405 -- Do_Discriminant_Check (Flag1-Sem)
4406 -- Do_Length_Check (Flag4-Sem)
4407 -- Float_Truncate (Flag11-Sem)
4408 -- Do_Tag_Check (Flag13-Sem)
4409 -- Conversion_OK (Flag14-Sem)
4410 -- Do_Overflow_Check (Flag17-Sem)
4411 -- Rounded_Result (Flag18-Sem)
4412 -- plus fields for expression
4414 -- Note: if a range check is required, then the Do_Range_Check flag
4415 -- is set in the Expression with the check being done against the
4416 -- target type range (after the base type conversion, if any).
4418 -------------------------------
4419 -- 4.7 Qualified Expression --
4420 -------------------------------
4422 -- QUALIFIED_EXPRESSION ::=
4423 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4425 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4426 -- the expression, so the Expression field of this node always points
4427 -- to a parenthesized expression in this case (i.e. Paren_Count will
4428 -- always be non-zero for the referenced expression if it is not an
4429 -- aggregate).
4431 -- N_Qualified_Expression
4432 -- Sloc points to apostrophe
4433 -- Subtype_Mark (Node4)
4434 -- Expression (Node3) expression or aggregate
4435 -- plus fields for expression
4437 --------------------
4438 -- 4.8 Allocator --
4439 --------------------
4441 -- ALLOCATOR ::=
4442 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4443 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4445 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4447 -- Sprint syntax (when storage pool present)
4448 -- new xxx (storage_pool = pool)
4449 -- or
4450 -- new (subpool) xxx (storage_pool = pool)
4452 -- N_Allocator
4453 -- Sloc points to NEW
4454 -- Expression (Node3) subtype indication or qualified expression
4455 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4456 -- Storage_Pool (Node1-Sem)
4457 -- Procedure_To_Call (Node2-Sem)
4458 -- Null_Exclusion_Present (Flag11)
4459 -- No_Initialization (Flag13-Sem)
4460 -- Is_Static_Coextension (Flag14-Sem)
4461 -- Do_Storage_Check (Flag17-Sem)
4462 -- Is_Dynamic_Coextension (Flag18-Sem)
4463 -- plus fields for expression
4465 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4466 -- This flag has a special function in conjunction with the restriction
4467 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4468 -- is not set. This means that if a source allocator is replaced with
4469 -- a constructed allocator, the Comes_From_Source flag should be copied
4470 -- to the newly created allocator.
4472 ---------------------------------
4473 -- 5.1 Sequence Of Statements --
4474 ---------------------------------
4476 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4478 -- Note: Although the parser will not accept a declaration as a
4479 -- statement, the semantic analyzer may insert declarations (e.g.
4480 -- declarations of implicit types needed for execution of other
4481 -- statements) into a sequence of statements, so the code generator
4482 -- should be prepared to accept a declaration where a statement is
4483 -- expected. Note also that pragmas can appear as statements.
4485 --------------------
4486 -- 5.1 Statement --
4487 --------------------
4489 -- STATEMENT ::=
4490 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4492 -- There is no explicit node in the tree for a statement. Instead, the
4493 -- individual statement appears directly. Labels are treated as a
4494 -- kind of statement, i.e. they are linked into a statement list at
4495 -- the point they appear, so the labeled statement appears following
4496 -- the label or labels in the statement list.
4498 ---------------------------
4499 -- 5.1 Simple Statement --
4500 ---------------------------
4502 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4503 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4504 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4505 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4506 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4507 -- | ABORT_STATEMENT | RAISE_STATEMENT
4508 -- | CODE_STATEMENT
4510 -----------------------------
4511 -- 5.1 Compound Statement --
4512 -----------------------------
4514 -- COMPOUND_STATEMENT ::=
4515 -- IF_STATEMENT | CASE_STATEMENT
4516 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4517 -- | EXTENDED_RETURN_STATEMENT
4518 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4520 -------------------------
4521 -- 5.1 Null Statement --
4522 -------------------------
4524 -- NULL_STATEMENT ::= null;
4526 -- N_Null_Statement
4527 -- Sloc points to NULL
4529 ----------------
4530 -- 5.1 Label --
4531 ----------------
4533 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4535 -- Note that the occurrence of a label is not a defining identifier,
4536 -- but rather a referencing occurrence. The defining occurrence is
4537 -- in the implicit label declaration which occurs in the innermost
4538 -- enclosing block.
4540 -- N_Label
4541 -- Sloc points to <<
4542 -- Identifier (Node1) direct name of statement identifier
4543 -- Exception_Junk (Flag8-Sem)
4545 -- Note: Before Ada 2012, a label is always followed by a statement,
4546 -- and this is true in the tree even in Ada 2012 mode (the parser
4547 -- inserts a null statement marked with Comes_From_Source False).
4549 -------------------------------
4550 -- 5.1 Statement Identifier --
4551 -------------------------------
4553 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4555 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4556 -- (not an OPERATOR_SYMBOL)
4558 -------------------------------
4559 -- 5.2 Assignment Statement --
4560 -------------------------------
4562 -- ASSIGNMENT_STATEMENT ::=
4563 -- variable_NAME := EXPRESSION;
4565 -- N_Assignment_Statement
4566 -- Sloc points to :=
4567 -- Name (Node2)
4568 -- Expression (Node3)
4569 -- Do_Discriminant_Check (Flag1-Sem)
4570 -- Do_Tag_Check (Flag13-Sem)
4571 -- Do_Length_Check (Flag4-Sem)
4572 -- Forwards_OK (Flag5-Sem)
4573 -- Backwards_OK (Flag6-Sem)
4574 -- No_Ctrl_Actions (Flag7-Sem)
4575 -- Componentwise_Assignment (Flag14-Sem)
4576 -- Suppress_Assignment_Checks (Flag18-Sem)
4578 -- Note: if a range check is required, then the Do_Range_Check flag
4579 -- is set in the Expression (right hand side), with the check being
4580 -- done against the type of the Name (left hand side).
4582 -- Note: the back end places some restrictions on the form of the
4583 -- Expression field. If the object being assigned to is Atomic, then
4584 -- the Expression may not have the form of an aggregate (since this
4585 -- might cause the back end to generate separate assignments). In this
4586 -- case the front end must generate an extra temporary and initialize
4587 -- this temporary as required (the temporary itself is not atomic).
4589 -----------------------
4590 -- 5.3 If Statement --
4591 -----------------------
4593 -- IF_STATEMENT ::=
4594 -- if CONDITION then
4595 -- SEQUENCE_OF_STATEMENTS
4596 -- {elsif CONDITION then
4597 -- SEQUENCE_OF_STATEMENTS}
4598 -- [else
4599 -- SEQUENCE_OF_STATEMENTS]
4600 -- end if;
4602 -- Gigi restriction: This expander ensures that the type of the
4603 -- Condition fields is always Standard.Boolean, even if the type
4604 -- in the source is some non-standard boolean type.
4606 -- N_If_Statement
4607 -- Sloc points to IF
4608 -- Condition (Node1)
4609 -- Then_Statements (List2)
4610 -- Elsif_Parts (List3) (set to No_List if none present)
4611 -- Else_Statements (List4) (set to No_List if no else part present)
4612 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4613 -- From_Conditional_Expression (Flag1-Sem)
4615 -- N_Elsif_Part
4616 -- Sloc points to ELSIF
4617 -- Condition (Node1)
4618 -- Then_Statements (List2)
4619 -- Condition_Actions (List3-Sem)
4621 --------------------
4622 -- 5.3 Condition --
4623 --------------------
4625 -- CONDITION ::= boolean_EXPRESSION
4627 -------------------------
4628 -- 5.4 Case Statement --
4629 -------------------------
4631 -- CASE_STATEMENT ::=
4632 -- case EXPRESSION is
4633 -- CASE_STATEMENT_ALTERNATIVE
4634 -- {CASE_STATEMENT_ALTERNATIVE}
4635 -- end case;
4637 -- Note: the Alternatives can contain pragmas. These only occur at
4638 -- the start of the list, since any pragmas occurring after the first
4639 -- alternative are absorbed into the corresponding statement sequence.
4641 -- N_Case_Statement
4642 -- Sloc points to CASE
4643 -- Expression (Node3)
4644 -- Alternatives (List4)
4645 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4646 -- From_Conditional_Expression (Flag1-Sem)
4648 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4649 -- followed by a statement, and this is true in the tree even in Ada
4650 -- 2012 mode (the parser inserts a null statement marked with the flag
4651 -- Comes_From_Source False).
4653 -------------------------------------
4654 -- 5.4 Case Statement Alternative --
4655 -------------------------------------
4657 -- CASE_STATEMENT_ALTERNATIVE ::=
4658 -- when DISCRETE_CHOICE_LIST =>
4659 -- SEQUENCE_OF_STATEMENTS
4661 -- N_Case_Statement_Alternative
4662 -- Sloc points to WHEN
4663 -- Discrete_Choices (List4)
4664 -- Statements (List3)
4665 -- Has_SP_Choice (Flag15-Sem)
4667 -- Note: in the list of Discrete_Choices, the tree passed to the back
4668 -- end does not have choice entries corresponding to names of statically
4669 -- predicated subtypes. Such entries are always expanded out to the list
4670 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
4671 -- mode does not have this expansion, and has the original choices.
4673 -------------------------
4674 -- 5.5 Loop Statement --
4675 -------------------------
4677 -- LOOP_STATEMENT ::=
4678 -- [loop_STATEMENT_IDENTIFIER :]
4679 -- [ITERATION_SCHEME] loop
4680 -- SEQUENCE_OF_STATEMENTS
4681 -- end loop [loop_IDENTIFIER];
4683 -- Note: The occurrence of a loop label is not a defining identifier
4684 -- but rather a referencing occurrence. The defining occurrence is in
4685 -- the implicit label declaration which occurs in the innermost
4686 -- enclosing block.
4688 -- Note: there is always a loop statement identifier present in the
4689 -- tree, even if none was given in the source. In the case where no loop
4690 -- identifier is given in the source, the parser creates a name of the
4691 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
4692 -- that the loop names created in this manner do not conflict with any
4693 -- user defined identifiers), and the flag Has_Created_Identifier is set
4694 -- to True. The only exception to the rule that all loop statement nodes
4695 -- have identifiers occurs for loops constructed by the expander, and
4696 -- the semantic analyzer will create and supply dummy loop identifiers
4697 -- in these cases.
4699 -- N_Loop_Statement
4700 -- Sloc points to LOOP
4701 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4702 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4703 -- Statements (List3)
4704 -- End_Label (Node4)
4705 -- Has_Created_Identifier (Flag15)
4706 -- Is_Null_Loop (Flag16)
4707 -- Suppress_Loop_Warnings (Flag17)
4709 -- Note: the parser fills in the Identifier field if there is an
4710 -- explicit loop identifier. Otherwise the parser leaves this field
4711 -- set to Empty, and then the semantic processing for a loop statement
4712 -- creates an identifier, setting the Has_Created_Identifier flag to
4713 -- True. So after semantic analysis, the Identifier is always set,
4714 -- referencing an identifier whose entity has an Ekind of E_Loop.
4716 ---------------------------
4717 -- 5.5 Iteration Scheme --
4718 ---------------------------
4720 -- ITERATION_SCHEME ::=
4721 -- while CONDITION
4722 -- | for LOOP_PARAMETER_SPECIFICATION
4723 -- | for ITERATOR_SPECIFICATION
4725 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4726 -- is present at a time, in which case the other one is empty. Both are
4727 -- empty in the case of a WHILE loop.
4729 -- Gigi restriction: The expander ensures that the type of the Condition
4730 -- field is always Standard.Boolean, even if the type in the source is
4731 -- some non-standard boolean type.
4733 -- N_Iteration_Scheme
4734 -- Sloc points to WHILE or FOR
4735 -- Condition (Node1) (set to Empty if FOR case)
4736 -- Condition_Actions (List3-Sem)
4737 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4738 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4740 ---------------------------------------
4741 -- 5.5 Loop Parameter Specification --
4742 ---------------------------------------
4744 -- LOOP_PARAMETER_SPECIFICATION ::=
4745 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4747 -- N_Loop_Parameter_Specification
4748 -- Sloc points to first identifier
4749 -- Defining_Identifier (Node1)
4750 -- Reverse_Present (Flag15)
4751 -- Discrete_Subtype_Definition (Node4)
4753 -----------------------------------
4754 -- 5.5.1 Iterator Specification --
4755 -----------------------------------
4757 -- ITERATOR_SPECIFICATION ::=
4758 -- DEFINING_IDENTIFIER in [reverse] NAME
4759 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4761 -- N_Iterator_Specification
4762 -- Sloc points to defining identifier
4763 -- Defining_Identifier (Node1)
4764 -- Name (Node2)
4765 -- Reverse_Present (Flag15)
4766 -- Of_Present (Flag16)
4767 -- Subtype_Indication (Node5)
4769 -- Note: The Of_Present flag distinguishes the two forms
4771 --------------------------
4772 -- 5.6 Block Statement --
4773 --------------------------
4775 -- BLOCK_STATEMENT ::=
4776 -- [block_STATEMENT_IDENTIFIER:]
4777 -- [declare
4778 -- DECLARATIVE_PART]
4779 -- begin
4780 -- HANDLED_SEQUENCE_OF_STATEMENTS
4781 -- end [block_IDENTIFIER];
4783 -- Note that the occurrence of a block identifier is not a defining
4784 -- identifier, but rather a referencing occurrence. The defining
4785 -- occurrence is an E_Block entity declared by the implicit label
4786 -- declaration which occurs in the innermost enclosing block statement
4787 -- or body; the block identifier denotes that E_Block.
4789 -- For block statements that come from source code, there is always a
4790 -- block statement identifier present in the tree, denoting an E_Block.
4791 -- In the case where no block identifier is given in the source,
4792 -- the parser creates a name of the form B_n, where n is a decimal
4793 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
4794 -- constructed by the expander usually have no identifier, and no
4795 -- corresponding entity.
4797 -- Note: the block statement created for an extended return statement
4798 -- has an entity, and this entity is an E_Return_Statement, rather than
4799 -- the usual E_Block.
4801 -- Note: Exception_Junk is set for the wrapping blocks created during
4802 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4804 -- Note: from a control flow viewpoint, a block statement defines an
4805 -- extended basic block, i.e. the entry of the block dominates every
4806 -- statement in the sequence. When generating new statements with
4807 -- exception handlers in the expander at the end of a sequence that
4808 -- comes from source code, it can be necessary to wrap them all in a
4809 -- block statement in order to expose the implicit control flow to
4810 -- gigi and thus prevent it from issuing bogus control flow warnings.
4812 -- N_Block_Statement
4813 -- Sloc points to DECLARE or BEGIN
4814 -- Identifier (Node1) block direct name (set to Empty if not present)
4815 -- Declarations (List2) (set to No_List if no DECLARE part)
4816 -- Handled_Statement_Sequence (Node4)
4817 -- Cleanup_Actions (List5-Sem)
4818 -- Is_Task_Master (Flag5-Sem)
4819 -- Activation_Chain_Entity (Node3-Sem)
4820 -- Has_Created_Identifier (Flag15)
4821 -- Is_Task_Allocation_Block (Flag6)
4822 -- Is_Asynchronous_Call_Block (Flag7)
4823 -- Exception_Junk (Flag8-Sem)
4824 -- Is_Finalization_Wrapper (Flag9-Sem)
4826 -------------------------
4827 -- 5.7 Exit Statement --
4828 -------------------------
4830 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4832 -- Gigi restriction: The expander ensures that the type of the Condition
4833 -- field is always Standard.Boolean, even if the type in the source is
4834 -- some non-standard boolean type.
4836 -- N_Exit_Statement
4837 -- Sloc points to EXIT
4838 -- Name (Node2) (set to Empty if no loop name present)
4839 -- Condition (Node1) (set to Empty if no WHEN part present)
4840 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4842 -------------------------
4843 -- 5.9 Goto Statement --
4844 -------------------------
4846 -- GOTO_STATEMENT ::= goto label_NAME;
4848 -- N_Goto_Statement
4849 -- Sloc points to GOTO
4850 -- Name (Node2)
4851 -- Exception_Junk (Flag8-Sem)
4853 ---------------------------------
4854 -- 6.1 Subprogram Declaration --
4855 ---------------------------------
4857 -- SUBPROGRAM_DECLARATION ::=
4858 -- SUBPROGRAM_SPECIFICATION
4859 -- [ASPECT_SPECIFICATIONS];
4861 -- N_Subprogram_Declaration
4862 -- Sloc points to FUNCTION or PROCEDURE
4863 -- Specification (Node1)
4864 -- Body_To_Inline (Node3-Sem)
4865 -- Corresponding_Body (Node5-Sem)
4866 -- Parent_Spec (Node4-Sem)
4868 ------------------------------------------
4869 -- 6.1 Abstract Subprogram Declaration --
4870 ------------------------------------------
4872 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4873 -- SUBPROGRAM_SPECIFICATION is abstract
4874 -- [ASPECT_SPECIFICATIONS];
4876 -- N_Abstract_Subprogram_Declaration
4877 -- Sloc points to ABSTRACT
4878 -- Specification (Node1)
4880 -----------------------------------
4881 -- 6.1 Subprogram Specification --
4882 -----------------------------------
4884 -- SUBPROGRAM_SPECIFICATION ::=
4885 -- [[not] overriding]
4886 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4887 -- | [[not] overriding]
4888 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4890 -- Note: there are no separate nodes for the profiles, instead the
4891 -- information appears directly in the following nodes.
4893 -- N_Function_Specification
4894 -- Sloc points to FUNCTION
4895 -- Defining_Unit_Name (Node1) (the designator)
4896 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4897 -- Null_Exclusion_Present (Flag11)
4898 -- Result_Definition (Node4) for result subtype
4899 -- Generic_Parent (Node5-Sem)
4900 -- Must_Override (Flag14) set if overriding indicator present
4901 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4903 -- N_Procedure_Specification
4904 -- Sloc points to PROCEDURE
4905 -- Defining_Unit_Name (Node1)
4906 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4907 -- Generic_Parent (Node5-Sem)
4908 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4909 -- Must_Override (Flag14) set if overriding indicator present
4910 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4912 -- Note: overriding indicator is an Ada 2005 feature
4914 ---------------------
4915 -- 6.1 Designator --
4916 ---------------------
4918 -- DESIGNATOR ::=
4919 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4921 -- Designators that are simply identifiers or operator symbols appear
4922 -- directly in the tree in this form. The following node is used only
4923 -- in the case where the designator has a parent unit name component.
4925 -- N_Designator
4926 -- Sloc points to period
4927 -- Name (Node2) holds the parent unit name
4928 -- Identifier (Node1)
4930 -- Note: Name is always non-Empty, since this node is only used for the
4931 -- case where a parent library unit package name is present.
4933 -- Note that the identifier can also be an operator symbol here
4935 ------------------------------
4936 -- 6.1 Defining Designator --
4937 ------------------------------
4939 -- DEFINING_DESIGNATOR ::=
4940 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4942 -------------------------------------
4943 -- 6.1 Defining Program Unit Name --
4944 -------------------------------------
4946 -- DEFINING_PROGRAM_UNIT_NAME ::=
4947 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4949 -- The parent unit name is present only in the case of a child unit name
4950 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
4951 -- at scope level one). If no such name is present, the defining program
4952 -- unit name is represented simply as the defining identifier. In the
4953 -- child unit case, the following node is used to represent the child
4954 -- unit name.
4956 -- N_Defining_Program_Unit_Name
4957 -- Sloc points to period
4958 -- Name (Node2) holds the parent unit name
4959 -- Defining_Identifier (Node1)
4961 -- Note: Name is always non-Empty, since this node is only used for the
4962 -- case where a parent unit name is present.
4964 --------------------------
4965 -- 6.1 Operator Symbol --
4966 --------------------------
4968 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4970 -- Note: the fields of the N_Operator_Symbol node are laid out to match
4971 -- the corresponding fields of an N_Character_Literal node. This allows
4972 -- easy conversion of the operator symbol node into a character literal
4973 -- node in the case where a string constant of the form of an operator
4974 -- symbol is scanned out as such, but turns out semantically to be a
4975 -- string literal that is not an operator. For details see Sinfo.CN.
4976 -- Change_Operator_Symbol_To_String_Literal.
4978 -- N_Operator_Symbol
4979 -- Sloc points to literal
4980 -- Chars (Name1) contains the Name_Id for the operator symbol
4981 -- Strval (Str3) Id of string value. This is used if the operator
4982 -- symbol turns out to be a normal string after all.
4983 -- Entity (Node4-Sem)
4984 -- Associated_Node (Node4-Sem)
4985 -- Has_Private_View (Flag11-Sem) set in generic units.
4986 -- Etype (Node5-Sem)
4988 -- Note: the Strval field may be set to No_String for generated
4989 -- operator symbols that are known not to be string literals
4990 -- semantically.
4992 -----------------------------------
4993 -- 6.1 Defining Operator Symbol --
4994 -----------------------------------
4996 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4998 -- A defining operator symbol is an entity, which has additional
4999 -- fields depending on the setting of the Ekind field. These
5000 -- additional fields are defined (and access subprograms declared)
5001 -- in package Einfo.
5003 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5004 -- are deliberately layed out to match the layout of fields in an
5005 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5006 -- an operator symbol node into a defining operator symbol node.
5007 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5008 -- for further details.
5010 -- N_Defining_Operator_Symbol
5011 -- Sloc points to literal
5012 -- Chars (Name1) contains the Name_Id for the operator symbol
5013 -- Next_Entity (Node2-Sem)
5014 -- Scope (Node3-Sem)
5015 -- Etype (Node5-Sem)
5017 ----------------------------
5018 -- 6.1 Parameter Profile --
5019 ----------------------------
5021 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5023 ---------------------------------------
5024 -- 6.1 Parameter and Result Profile --
5025 ---------------------------------------
5027 -- PARAMETER_AND_RESULT_PROFILE ::=
5028 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5029 -- | [FORMAL_PART] return ACCESS_DEFINITION
5031 -- There is no explicit node in the tree for a parameter and result
5032 -- profile. Instead the information appears directly in the parent.
5034 ----------------------
5035 -- 6.1 Formal Part --
5036 ----------------------
5038 -- FORMAL_PART ::=
5039 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5041 ----------------------------------
5042 -- 6.1 Parameter Specification --
5043 ----------------------------------
5045 -- PARAMETER_SPECIFICATION ::=
5046 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5047 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5048 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5049 -- [:= DEFAULT_EXPRESSION]
5051 -- Although the syntax allows multiple identifiers in the list, the
5052 -- semantics is as though successive specifications were given with
5053 -- identical type definition and expression components. To simplify
5054 -- semantic processing, the parser represents a multiple declaration
5055 -- case as a sequence of single Specifications, using the More_Ids and
5056 -- Prev_Ids flags to preserve the original source form as described
5057 -- in the section on "Handling of Defining Identifier Lists".
5059 -- ALIASED can only be present in Ada 2012 mode
5061 -- N_Parameter_Specification
5062 -- Sloc points to first identifier
5063 -- Defining_Identifier (Node1)
5064 -- Aliased_Present (Flag4)
5065 -- In_Present (Flag15)
5066 -- Out_Present (Flag17)
5067 -- Null_Exclusion_Present (Flag11)
5068 -- Parameter_Type (Node2) subtype mark or access definition
5069 -- Expression (Node3) (set to Empty if no default expression present)
5070 -- Do_Accessibility_Check (Flag13-Sem)
5071 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5072 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5073 -- Default_Expression (Node5-Sem)
5075 ---------------
5076 -- 6.1 Mode --
5077 ---------------
5079 -- MODE ::= [in] | in out | out
5081 -- There is no explicit node in the tree for the Mode. Instead the
5082 -- In_Present and Out_Present flags are set in the parent node to
5083 -- record the presence of keywords specifying the mode.
5085 --------------------------
5086 -- 6.3 Subprogram Body --
5087 --------------------------
5089 -- SUBPROGRAM_BODY ::=
5090 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5091 -- DECLARATIVE_PART
5092 -- begin
5093 -- HANDLED_SEQUENCE_OF_STATEMENTS
5094 -- end [DESIGNATOR];
5096 -- N_Subprogram_Body
5097 -- Sloc points to FUNCTION or PROCEDURE
5098 -- Specification (Node1)
5099 -- Declarations (List2)
5100 -- Handled_Statement_Sequence (Node4)
5101 -- Activation_Chain_Entity (Node3-Sem)
5102 -- Corresponding_Spec (Node5-Sem)
5103 -- Acts_As_Spec (Flag4-Sem)
5104 -- Bad_Is_Detected (Flag15) used only by parser
5105 -- Do_Storage_Check (Flag17-Sem)
5106 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5107 -- Is_Entry_Barrier_Function (Flag8-Sem)
5108 -- Is_Task_Master (Flag5-Sem)
5109 -- Was_Originally_Stub (Flag13-Sem)
5110 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5112 -------------------------
5113 -- Expression Function --
5114 -------------------------
5116 -- This is an Ada 2012 extension, we put it here for now, to be labeled
5117 -- and put in its proper section when we know exactly where that is.
5119 -- EXPRESSION_FUNCTION ::=
5120 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5121 -- [ASPECT_SPECIFICATIONS];
5123 -- N_Expression_Function
5124 -- Sloc points to FUNCTION
5125 -- Specification (Node1)
5126 -- Expression (Node3)
5127 -- Corresponding_Spec (Node5-Sem)
5129 -----------------------------------
5130 -- 6.4 Procedure Call Statement --
5131 -----------------------------------
5133 -- PROCEDURE_CALL_STATEMENT ::=
5134 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5136 -- Note: the reason that a procedure call has expression fields is that
5137 -- it semantically resembles an expression, e.g. overloading is allowed
5138 -- and a type is concocted for semantic processing purposes. Certain of
5139 -- these fields, such as Parens are not relevant, but it is easier to
5140 -- just supply all of them together.
5142 -- N_Procedure_Call_Statement
5143 -- Sloc points to first token of name or prefix
5144 -- Name (Node2) stores name or prefix
5145 -- Parameter_Associations (List3) (set to No_List if no
5146 -- actual parameter part)
5147 -- First_Named_Actual (Node4-Sem)
5148 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5149 -- Do_Tag_Check (Flag13-Sem)
5150 -- No_Elaboration_Check (Flag14-Sem)
5151 -- ABE_Is_Certain (Flag18-Sem)
5152 -- plus fields for expression
5154 -- If any IN parameter requires a range check, then the corresponding
5155 -- argument expression has the Do_Range_Check flag set, and the range
5156 -- check is done against the formal type. Note that this argument
5157 -- expression may appear directly in the Parameter_Associations list,
5158 -- or may be a descendent of an N_Parameter_Association node that
5159 -- appears in this list.
5161 ------------------------
5162 -- 6.4 Function Call --
5163 ------------------------
5165 -- FUNCTION_CALL ::=
5166 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5168 -- Note: the parser may generate an indexed component node or simply
5169 -- a name node instead of a function call node. The semantic pass must
5170 -- correct this misidentification.
5172 -- N_Function_Call
5173 -- Sloc points to first token of name or prefix
5174 -- Name (Node2) stores name or prefix
5175 -- Parameter_Associations (List3) (set to No_List if no
5176 -- actual parameter part)
5177 -- First_Named_Actual (Node4-Sem)
5178 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5179 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5180 -- Do_Tag_Check (Flag13-Sem)
5181 -- No_Elaboration_Check (Flag14-Sem)
5182 -- ABE_Is_Certain (Flag18-Sem)
5183 -- plus fields for expression
5185 --------------------------------
5186 -- 6.4 Actual Parameter Part --
5187 --------------------------------
5189 -- ACTUAL_PARAMETER_PART ::=
5190 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5192 --------------------------------
5193 -- 6.4 Parameter Association --
5194 --------------------------------
5196 -- PARAMETER_ASSOCIATION ::=
5197 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5199 -- Note: the N_Parameter_Association node is built only if a formal
5200 -- parameter selector name is present, otherwise the parameter
5201 -- association appears in the tree simply as the node for the
5202 -- explicit actual parameter.
5204 -- N_Parameter_Association
5205 -- Sloc points to formal parameter
5206 -- Selector_Name (Node2) (always non-Empty)
5207 -- Explicit_Actual_Parameter (Node3)
5208 -- Next_Named_Actual (Node4-Sem)
5209 -- Is_Accessibility_Actual (Flag13-Sem)
5211 ---------------------------
5212 -- 6.4 Actual Parameter --
5213 ---------------------------
5215 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
5217 ---------------------------
5218 -- 6.5 Return Statement --
5219 ---------------------------
5221 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5223 -- EXTENDED_RETURN_STATEMENT ::=
5224 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5225 -- [:= EXPRESSION] [do
5226 -- HANDLED_SEQUENCE_OF_STATEMENTS
5227 -- end return];
5229 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5231 -- The term "return statement" is defined in 6.5 to mean either a
5232 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5233 -- the use of this term, since it used to mean someting else in earlier
5234 -- versions of Ada.
5236 -- N_Simple_Return_Statement
5237 -- Sloc points to RETURN
5238 -- Return_Statement_Entity (Node5-Sem)
5239 -- Expression (Node3) (set to Empty if no expression present)
5240 -- Storage_Pool (Node1-Sem)
5241 -- Procedure_To_Call (Node2-Sem)
5242 -- Do_Tag_Check (Flag13-Sem)
5243 -- By_Ref (Flag5-Sem)
5244 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5246 -- Note: Return_Statement_Entity points to an E_Return_Statement
5248 -- If a range check is required, then Do_Range_Check is set on the
5249 -- Expression. The check is against the return subtype of the function.
5251 -- N_Extended_Return_Statement
5252 -- Sloc points to RETURN
5253 -- Return_Statement_Entity (Node5-Sem)
5254 -- Return_Object_Declarations (List3)
5255 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5256 -- Storage_Pool (Node1-Sem)
5257 -- Procedure_To_Call (Node2-Sem)
5258 -- Do_Tag_Check (Flag13-Sem)
5259 -- By_Ref (Flag5-Sem)
5261 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5263 -- Note that Return_Object_Declarations is a list containing the
5264 -- N_Object_Declaration -- see comment on this field above.
5266 -- The declared object will have Is_Return_Object = True.
5268 -- There is no such syntactic category as return_object_declaration
5269 -- in the RM. Return_Object_Declarations represents this portion of
5270 -- the syntax for EXTENDED_RETURN_STATEMENT:
5271 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5272 -- [:= EXPRESSION]
5274 -- There are two entities associated with an extended_return_statement:
5275 -- the Return_Statement_Entity represents the statement itself,
5276 -- and the Defining_Identifier of the Object_Declaration in
5277 -- Return_Object_Declarations represents the object being
5278 -- returned. N_Simple_Return_Statement has only the former.
5280 ------------------------------
5281 -- 7.1 Package Declaration --
5282 ------------------------------
5284 -- PACKAGE_DECLARATION ::=
5285 -- PACKAGE_SPECIFICATION;
5287 -- Note: the activation chain entity for a package spec is used for
5288 -- all tasks declared in the package spec, or in the package body.
5290 -- N_Package_Declaration
5291 -- Sloc points to PACKAGE
5292 -- Specification (Node1)
5293 -- Corresponding_Body (Node5-Sem)
5294 -- Parent_Spec (Node4-Sem)
5295 -- Activation_Chain_Entity (Node3-Sem)
5297 --------------------------------
5298 -- 7.1 Package Specification --
5299 --------------------------------
5301 -- PACKAGE_SPECIFICATION ::=
5302 -- package DEFINING_PROGRAM_UNIT_NAME
5303 -- [ASPECT_SPECIFICATIONS]
5304 -- is
5305 -- {BASIC_DECLARATIVE_ITEM}
5306 -- [private
5307 -- {BASIC_DECLARATIVE_ITEM}]
5308 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5310 -- N_Package_Specification
5311 -- Sloc points to PACKAGE
5312 -- Defining_Unit_Name (Node1)
5313 -- Visible_Declarations (List2)
5314 -- Private_Declarations (List3) (set to No_List if no private
5315 -- part present)
5316 -- End_Label (Node4)
5317 -- Generic_Parent (Node5-Sem)
5318 -- Limited_View_Installed (Flag18-Sem)
5320 -----------------------
5321 -- 7.1 Package Body --
5322 -----------------------
5324 -- PACKAGE_BODY ::=
5325 -- package body DEFINING_PROGRAM_UNIT_NAME
5326 -- [ASPECT_SPECIFICATIONS]
5327 -- is
5328 -- DECLARATIVE_PART
5329 -- [begin
5330 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5331 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5333 -- N_Package_Body
5334 -- Sloc points to PACKAGE
5335 -- Defining_Unit_Name (Node1)
5336 -- Declarations (List2)
5337 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5338 -- Corresponding_Spec (Node5-Sem)
5339 -- Was_Originally_Stub (Flag13-Sem)
5341 -- Note: if a source level package does not contain a handled sequence
5342 -- of statements, then the parser supplies a dummy one with a null
5343 -- sequence of statements. Comes_From_Source will be False in this
5344 -- constructed sequence. The reason we need this is for the End_Label
5345 -- field in the HSS.
5347 -----------------------------------
5348 -- 7.4 Private Type Declaration --
5349 -----------------------------------
5351 -- PRIVATE_TYPE_DECLARATION ::=
5352 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5353 -- is [[abstract] tagged] [limited] private
5354 -- [ASPECT_SPECIFICATIONS];
5356 -- Note: TAGGED is not permitted in Ada 83 mode
5358 -- N_Private_Type_Declaration
5359 -- Sloc points to TYPE
5360 -- Defining_Identifier (Node1)
5361 -- Discriminant_Specifications (List4) (set to No_List if no
5362 -- discriminant part)
5363 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5364 -- Abstract_Present (Flag4)
5365 -- Tagged_Present (Flag15)
5366 -- Limited_Present (Flag17)
5368 ----------------------------------------
5369 -- 7.4 Private Extension Declaration --
5370 ----------------------------------------
5372 -- PRIVATE_EXTENSION_DECLARATION ::=
5373 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5374 -- [abstract] [limited | synchronized]
5375 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5376 -- with private [ASPECT_SPECIFICATIONS];
5378 -- Note: LIMITED, and private extension declarations are not allowed
5379 -- in Ada 83 mode.
5381 -- N_Private_Extension_Declaration
5382 -- Sloc points to TYPE
5383 -- Defining_Identifier (Node1)
5384 -- Uninitialized_Variable (Node3-Sem)
5385 -- Discriminant_Specifications (List4) (set to No_List if no
5386 -- discriminant part)
5387 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5388 -- Abstract_Present (Flag4)
5389 -- Limited_Present (Flag17)
5390 -- Synchronized_Present (Flag7)
5391 -- Subtype_Indication (Node5)
5392 -- Interface_List (List2) (set to No_List if none)
5394 ---------------------
5395 -- 8.4 Use Clause --
5396 ---------------------
5398 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5400 -----------------------------
5401 -- 8.4 Use Package Clause --
5402 -----------------------------
5404 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5406 -- N_Use_Package_Clause
5407 -- Sloc points to USE
5408 -- Names (List2)
5409 -- Next_Use_Clause (Node3-Sem)
5410 -- Hidden_By_Use_Clause (Elist4-Sem)
5412 --------------------------
5413 -- 8.4 Use Type Clause --
5414 --------------------------
5416 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5418 -- Note: use type clause is not permitted in Ada 83 mode
5420 -- Note: the ALL keyword can appear only in Ada 2012 mode
5422 -- N_Use_Type_Clause
5423 -- Sloc points to USE
5424 -- Subtype_Marks (List2)
5425 -- Next_Use_Clause (Node3-Sem)
5426 -- Hidden_By_Use_Clause (Elist4-Sem)
5427 -- Used_Operations (Elist5-Sem)
5428 -- All_Present (Flag15)
5430 -------------------------------
5431 -- 8.5 Renaming Declaration --
5432 -------------------------------
5434 -- RENAMING_DECLARATION ::=
5435 -- OBJECT_RENAMING_DECLARATION
5436 -- | EXCEPTION_RENAMING_DECLARATION
5437 -- | PACKAGE_RENAMING_DECLARATION
5438 -- | SUBPROGRAM_RENAMING_DECLARATION
5439 -- | GENERIC_RENAMING_DECLARATION
5441 --------------------------------------
5442 -- 8.5 Object Renaming Declaration --
5443 --------------------------------------
5445 -- OBJECT_RENAMING_DECLARATION ::=
5446 -- DEFINING_IDENTIFIER :
5447 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5448 -- [ASPECT_SPECIFICATIONS];
5449 -- | DEFINING_IDENTIFIER :
5450 -- ACCESS_DEFINITION renames object_NAME
5451 -- [ASPECT_SPECIFICATIONS];
5453 -- Note: Access_Definition is an optional field that gives support to
5454 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5455 -- Subtype_Indication field or else the Access_Definition field.
5457 -- N_Object_Renaming_Declaration
5458 -- Sloc points to first identifier
5459 -- Defining_Identifier (Node1)
5460 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5461 -- Subtype_Mark (Node4) (set to Empty if not present)
5462 -- Access_Definition (Node3) (set to Empty if not present)
5463 -- Name (Node2)
5464 -- Corresponding_Generic_Association (Node5-Sem)
5466 -----------------------------------------
5467 -- 8.5 Exception Renaming Declaration --
5468 -----------------------------------------
5470 -- EXCEPTION_RENAMING_DECLARATION ::=
5471 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5472 -- [ASPECT_SPECIFICATIONS];
5474 -- N_Exception_Renaming_Declaration
5475 -- Sloc points to first identifier
5476 -- Defining_Identifier (Node1)
5477 -- Name (Node2)
5479 ---------------------------------------
5480 -- 8.5 Package Renaming Declaration --
5481 ---------------------------------------
5483 -- PACKAGE_RENAMING_DECLARATION ::=
5484 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5485 -- [ASPECT_SPECIFICATIONS];
5487 -- N_Package_Renaming_Declaration
5488 -- Sloc points to PACKAGE
5489 -- Defining_Unit_Name (Node1)
5490 -- Name (Node2)
5491 -- Parent_Spec (Node4-Sem)
5493 ------------------------------------------
5494 -- 8.5 Subprogram Renaming Declaration --
5495 ------------------------------------------
5497 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5498 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5499 -- [ASPECT_SPECIFICATIONS];
5501 -- N_Subprogram_Renaming_Declaration
5502 -- Sloc points to RENAMES
5503 -- Specification (Node1)
5504 -- Name (Node2)
5505 -- Parent_Spec (Node4-Sem)
5506 -- Corresponding_Spec (Node5-Sem)
5507 -- Corresponding_Formal_Spec (Node3-Sem)
5508 -- From_Default (Flag6-Sem)
5510 -----------------------------------------
5511 -- 8.5.5 Generic Renaming Declaration --
5512 -----------------------------------------
5514 -- GENERIC_RENAMING_DECLARATION ::=
5515 -- generic package DEFINING_PROGRAM_UNIT_NAME
5516 -- renames generic_package_NAME
5517 -- [ASPECT_SPECIFICATIONS];
5518 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5519 -- renames generic_procedure_NAME
5520 -- [ASPECT_SPECIFICATIONS];
5521 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5522 -- renames generic_function_NAME
5523 -- [ASPECT_SPECIFICATIONS];
5525 -- N_Generic_Package_Renaming_Declaration
5526 -- Sloc points to GENERIC
5527 -- Defining_Unit_Name (Node1)
5528 -- Name (Node2)
5529 -- Parent_Spec (Node4-Sem)
5531 -- N_Generic_Procedure_Renaming_Declaration
5532 -- Sloc points to GENERIC
5533 -- Defining_Unit_Name (Node1)
5534 -- Name (Node2)
5535 -- Parent_Spec (Node4-Sem)
5537 -- N_Generic_Function_Renaming_Declaration
5538 -- Sloc points to GENERIC
5539 -- Defining_Unit_Name (Node1)
5540 -- Name (Node2)
5541 -- Parent_Spec (Node4-Sem)
5543 --------------------------------
5544 -- 9.1 Task Type Declaration --
5545 --------------------------------
5547 -- TASK_TYPE_DECLARATION ::=
5548 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5549 -- [ASPECT_SPECIFICATIONS]
5550 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5552 -- N_Task_Type_Declaration
5553 -- Sloc points to TASK
5554 -- Defining_Identifier (Node1)
5555 -- Discriminant_Specifications (List4) (set to No_List if no
5556 -- discriminant part)
5557 -- Interface_List (List2) (set to No_List if none)
5558 -- Task_Definition (Node3) (set to Empty if not present)
5559 -- Corresponding_Body (Node5-Sem)
5561 ----------------------------------
5562 -- 9.1 Single Task Declaration --
5563 ----------------------------------
5565 -- SINGLE_TASK_DECLARATION ::=
5566 -- task DEFINING_IDENTIFIER
5567 -- [ASPECT_SPECIFICATIONS]
5568 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5570 -- N_Single_Task_Declaration
5571 -- Sloc points to TASK
5572 -- Defining_Identifier (Node1)
5573 -- Interface_List (List2) (set to No_List if none)
5574 -- Task_Definition (Node3) (set to Empty if not present)
5576 --------------------------
5577 -- 9.1 Task Definition --
5578 --------------------------
5580 -- TASK_DEFINITION ::=
5581 -- {TASK_ITEM}
5582 -- [private
5583 -- {TASK_ITEM}]
5584 -- end [task_IDENTIFIER]
5586 -- Note: as a result of semantic analysis, the list of task items can
5587 -- include implicit type declarations resulting from entry families.
5589 -- N_Task_Definition
5590 -- Sloc points to first token of task definition
5591 -- Visible_Declarations (List2)
5592 -- Private_Declarations (List3) (set to No_List if no private part)
5593 -- End_Label (Node4)
5594 -- Has_Storage_Size_Pragma (Flag5-Sem)
5595 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5597 --------------------
5598 -- 9.1 Task Item --
5599 --------------------
5601 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5603 --------------------
5604 -- 9.1 Task Body --
5605 --------------------
5607 -- TASK_BODY ::=
5608 -- task body task_DEFINING_IDENTIFIER
5609 -- [ASPECT_SPECIFICATIONS]
5610 -- is
5611 -- DECLARATIVE_PART
5612 -- begin
5613 -- HANDLED_SEQUENCE_OF_STATEMENTS
5614 -- end [task_IDENTIFIER];
5616 -- Gigi restriction: This node never appears
5618 -- N_Task_Body
5619 -- Sloc points to TASK
5620 -- Defining_Identifier (Node1)
5621 -- Declarations (List2)
5622 -- Handled_Statement_Sequence (Node4)
5623 -- Is_Task_Master (Flag5-Sem)
5624 -- Activation_Chain_Entity (Node3-Sem)
5625 -- Corresponding_Spec (Node5-Sem)
5626 -- Was_Originally_Stub (Flag13-Sem)
5628 -------------------------------------
5629 -- 9.4 Protected Type Declaration --
5630 -------------------------------------
5632 -- PROTECTED_TYPE_DECLARATION ::=
5633 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5634 -- [ASPECT_SPECIFICATIONS]
5635 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5637 -- Note: protected type declarations are not permitted in Ada 83 mode
5639 -- N_Protected_Type_Declaration
5640 -- Sloc points to PROTECTED
5641 -- Defining_Identifier (Node1)
5642 -- Discriminant_Specifications (List4) (set to No_List if no
5643 -- discriminant part)
5644 -- Interface_List (List2) (set to No_List if none)
5645 -- Protected_Definition (Node3)
5646 -- Corresponding_Body (Node5-Sem)
5648 ---------------------------------------
5649 -- 9.4 Single Protected Declaration --
5650 ---------------------------------------
5652 -- SINGLE_PROTECTED_DECLARATION ::=
5653 -- protected DEFINING_IDENTIFIER
5654 -- [ASPECT_SPECIFICATIONS]
5655 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5657 -- Note: single protected declarations are not allowed in Ada 83 mode
5659 -- N_Single_Protected_Declaration
5660 -- Sloc points to PROTECTED
5661 -- Defining_Identifier (Node1)
5662 -- Interface_List (List2) (set to No_List if none)
5663 -- Protected_Definition (Node3)
5665 -------------------------------
5666 -- 9.4 Protected Definition --
5667 -------------------------------
5669 -- PROTECTED_DEFINITION ::=
5670 -- {PROTECTED_OPERATION_DECLARATION}
5671 -- [private
5672 -- {PROTECTED_ELEMENT_DECLARATION}]
5673 -- end [protected_IDENTIFIER]
5675 -- N_Protected_Definition
5676 -- Sloc points to first token of protected definition
5677 -- Visible_Declarations (List2)
5678 -- Private_Declarations (List3) (set to No_List if no private part)
5679 -- End_Label (Node4)
5681 ------------------------------------------
5682 -- 9.4 Protected Operation Declaration --
5683 ------------------------------------------
5685 -- PROTECTED_OPERATION_DECLARATION ::=
5686 -- SUBPROGRAM_DECLARATION
5687 -- | ENTRY_DECLARATION
5688 -- | REPRESENTATION_CLAUSE
5690 ----------------------------------------
5691 -- 9.4 Protected Element Declaration --
5692 ----------------------------------------
5694 -- PROTECTED_ELEMENT_DECLARATION ::=
5695 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5697 -------------------------
5698 -- 9.4 Protected Body --
5699 -------------------------
5701 -- PROTECTED_BODY ::=
5702 -- protected body DEFINING_IDENTIFIER
5703 -- [ASPECT_SPECIFICATIONS];
5704 -- is
5705 -- {PROTECTED_OPERATION_ITEM}
5706 -- end [protected_IDENTIFIER];
5708 -- Note: protected bodies are not allowed in Ada 83 mode
5710 -- Gigi restriction: This node never appears
5712 -- N_Protected_Body
5713 -- Sloc points to PROTECTED
5714 -- Defining_Identifier (Node1)
5715 -- Declarations (List2) protected operation items (and pragmas)
5716 -- End_Label (Node4)
5717 -- Corresponding_Spec (Node5-Sem)
5718 -- Was_Originally_Stub (Flag13-Sem)
5720 -----------------------------------
5721 -- 9.4 Protected Operation Item --
5722 -----------------------------------
5724 -- PROTECTED_OPERATION_ITEM ::=
5725 -- SUBPROGRAM_DECLARATION
5726 -- | SUBPROGRAM_BODY
5727 -- | ENTRY_BODY
5728 -- | REPRESENTATION_CLAUSE
5730 ------------------------------
5731 -- 9.5.2 Entry Declaration --
5732 ------------------------------
5734 -- ENTRY_DECLARATION ::=
5735 -- [[not] overriding]
5736 -- entry DEFINING_IDENTIFIER
5737 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
5738 -- [ASPECT_SPECIFICATIONS];
5740 -- N_Entry_Declaration
5741 -- Sloc points to ENTRY
5742 -- Defining_Identifier (Node1)
5743 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5744 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5745 -- Corresponding_Body (Node5-Sem)
5746 -- Must_Override (Flag14) set if overriding indicator present
5747 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5749 -- Note: overriding indicator is an Ada 2005 feature
5751 -----------------------------
5752 -- 9.5.2 Accept statement --
5753 -----------------------------
5755 -- ACCEPT_STATEMENT ::=
5756 -- accept entry_DIRECT_NAME
5757 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5758 -- HANDLED_SEQUENCE_OF_STATEMENTS
5759 -- end [entry_IDENTIFIER]];
5761 -- Gigi restriction: This node never appears
5763 -- Note: there are no explicit declarations allowed in an accept
5764 -- statement. However, the implicit declarations for any statement
5765 -- identifiers (labels and block/loop identifiers) are declarations
5766 -- that belong logically to the accept statement, and that is why
5767 -- there is a Declarations field in this node.
5769 -- N_Accept_Statement
5770 -- Sloc points to ACCEPT
5771 -- Entry_Direct_Name (Node1)
5772 -- Entry_Index (Node5) (set to Empty if not present)
5773 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5774 -- Handled_Statement_Sequence (Node4)
5775 -- Declarations (List2) (set to No_List if no declarations)
5777 ------------------------
5778 -- 9.5.2 Entry Index --
5779 ------------------------
5781 -- ENTRY_INDEX ::= EXPRESSION
5783 -----------------------
5784 -- 9.5.2 Entry Body --
5785 -----------------------
5787 -- ENTRY_BODY ::=
5788 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5789 -- DECLARATIVE_PART
5790 -- begin
5791 -- HANDLED_SEQUENCE_OF_STATEMENTS
5792 -- end [entry_IDENTIFIER];
5794 -- ENTRY_BARRIER ::= when CONDITION
5796 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5797 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5798 -- too full (it would otherwise have too many fields)
5800 -- Gigi restriction: This node never appears
5802 -- N_Entry_Body
5803 -- Sloc points to ENTRY
5804 -- Defining_Identifier (Node1)
5805 -- Entry_Body_Formal_Part (Node5)
5806 -- Declarations (List2)
5807 -- Handled_Statement_Sequence (Node4)
5808 -- Activation_Chain_Entity (Node3-Sem)
5810 -----------------------------------
5811 -- 9.5.2 Entry Body Formal Part --
5812 -----------------------------------
5814 -- ENTRY_BODY_FORMAL_PART ::=
5815 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5817 -- Note that an entry body formal part node is present even if it is
5818 -- empty. This reflects the grammar, in which it is the components of
5819 -- the entry body formal part that are optional, not the entry body
5820 -- formal part itself. Also this means that the barrier condition
5821 -- always has somewhere to be stored.
5823 -- Gigi restriction: This node never appears
5825 -- N_Entry_Body_Formal_Part
5826 -- Sloc points to first token
5827 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5828 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5829 -- Condition (Node1) from entry barrier of entry body
5831 --------------------------
5832 -- 9.5.2 Entry Barrier --
5833 --------------------------
5835 -- ENTRY_BARRIER ::= when CONDITION
5837 --------------------------------------
5838 -- 9.5.2 Entry Index Specification --
5839 --------------------------------------
5841 -- ENTRY_INDEX_SPECIFICATION ::=
5842 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5844 -- Gigi restriction: This node never appears
5846 -- N_Entry_Index_Specification
5847 -- Sloc points to FOR
5848 -- Defining_Identifier (Node1)
5849 -- Discrete_Subtype_Definition (Node4)
5851 ---------------------------------
5852 -- 9.5.3 Entry Call Statement --
5853 ---------------------------------
5855 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5857 -- The parser may generate a procedure call for this construct. The
5858 -- semantic pass must correct this misidentification where needed.
5860 -- Gigi restriction: This node never appears
5862 -- N_Entry_Call_Statement
5863 -- Sloc points to first token of name
5864 -- Name (Node2)
5865 -- Parameter_Associations (List3) (set to No_List if no
5866 -- actual parameter part)
5867 -- First_Named_Actual (Node4-Sem)
5869 ------------------------------
5870 -- 9.5.4 Requeue Statement --
5871 ------------------------------
5873 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5875 -- Note: requeue statements are not permitted in Ada 83 mode
5877 -- Gigi restriction: This node never appears
5879 -- N_Requeue_Statement
5880 -- Sloc points to REQUEUE
5881 -- Name (Node2)
5882 -- Abort_Present (Flag15)
5884 --------------------------
5885 -- 9.6 Delay Statement --
5886 --------------------------
5888 -- DELAY_STATEMENT ::=
5889 -- DELAY_UNTIL_STATEMENT
5890 -- | DELAY_RELATIVE_STATEMENT
5892 --------------------------------
5893 -- 9.6 Delay Until Statement --
5894 --------------------------------
5896 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5898 -- Note: delay until statements are not permitted in Ada 83 mode
5900 -- Gigi restriction: This node never appears
5902 -- N_Delay_Until_Statement
5903 -- Sloc points to DELAY
5904 -- Expression (Node3)
5906 -----------------------------------
5907 -- 9.6 Delay Relative Statement --
5908 -----------------------------------
5910 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5912 -- Gigi restriction: This node never appears
5914 -- N_Delay_Relative_Statement
5915 -- Sloc points to DELAY
5916 -- Expression (Node3)
5918 ---------------------------
5919 -- 9.7 Select Statement --
5920 ---------------------------
5922 -- SELECT_STATEMENT ::=
5923 -- SELECTIVE_ACCEPT
5924 -- | TIMED_ENTRY_CALL
5925 -- | CONDITIONAL_ENTRY_CALL
5926 -- | ASYNCHRONOUS_SELECT
5928 -----------------------------
5929 -- 9.7.1 Selective Accept --
5930 -----------------------------
5932 -- SELECTIVE_ACCEPT ::=
5933 -- select
5934 -- [GUARD]
5935 -- SELECT_ALTERNATIVE
5936 -- {or
5937 -- [GUARD]
5938 -- SELECT_ALTERNATIVE}
5939 -- [else
5940 -- SEQUENCE_OF_STATEMENTS]
5941 -- end select;
5943 -- Gigi restriction: This node never appears
5945 -- Note: the guard expression, if present, appears in the node for
5946 -- the select alternative.
5948 -- N_Selective_Accept
5949 -- Sloc points to SELECT
5950 -- Select_Alternatives (List1)
5951 -- Else_Statements (List4) (set to No_List if no else part)
5953 ------------------
5954 -- 9.7.1 Guard --
5955 ------------------
5957 -- GUARD ::= when CONDITION =>
5959 -- As noted above, the CONDITION that is part of a GUARD is included
5960 -- in the node for the select alternative for convenience.
5962 -------------------------------
5963 -- 9.7.1 Select Alternative --
5964 -------------------------------
5966 -- SELECT_ALTERNATIVE ::=
5967 -- ACCEPT_ALTERNATIVE
5968 -- | DELAY_ALTERNATIVE
5969 -- | TERMINATE_ALTERNATIVE
5971 -------------------------------
5972 -- 9.7.1 Accept Alternative --
5973 -------------------------------
5975 -- ACCEPT_ALTERNATIVE ::=
5976 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5978 -- Gigi restriction: This node never appears
5980 -- N_Accept_Alternative
5981 -- Sloc points to ACCEPT
5982 -- Accept_Statement (Node2)
5983 -- Condition (Node1) from the guard (set to Empty if no guard present)
5984 -- Statements (List3) (set to Empty_List if no statements)
5985 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5986 -- Accept_Handler_Records (List5-Sem)
5988 ------------------------------
5989 -- 9.7.1 Delay Alternative --
5990 ------------------------------
5992 -- DELAY_ALTERNATIVE ::=
5993 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5995 -- Gigi restriction: This node never appears
5997 -- N_Delay_Alternative
5998 -- Sloc points to DELAY
5999 -- Delay_Statement (Node2)
6000 -- Condition (Node1) from the guard (set to Empty if no guard present)
6001 -- Statements (List3) (set to Empty_List if no statements)
6002 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6004 ----------------------------------
6005 -- 9.7.1 Terminate Alternative --
6006 ----------------------------------
6008 -- TERMINATE_ALTERNATIVE ::= terminate;
6010 -- Gigi restriction: This node never appears
6012 -- N_Terminate_Alternative
6013 -- Sloc points to TERMINATE
6014 -- Condition (Node1) from the guard (set to Empty if no guard present)
6015 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6016 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6018 -----------------------------
6019 -- 9.7.2 Timed Entry Call --
6020 -----------------------------
6022 -- TIMED_ENTRY_CALL ::=
6023 -- select
6024 -- ENTRY_CALL_ALTERNATIVE
6025 -- or
6026 -- DELAY_ALTERNATIVE
6027 -- end select;
6029 -- Gigi restriction: This node never appears
6031 -- N_Timed_Entry_Call
6032 -- Sloc points to SELECT
6033 -- Entry_Call_Alternative (Node1)
6034 -- Delay_Alternative (Node4)
6036 -----------------------------------
6037 -- 9.7.2 Entry Call Alternative --
6038 -----------------------------------
6040 -- ENTRY_CALL_ALTERNATIVE ::=
6041 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6043 -- PROCEDURE_OR_ENTRY_CALL ::=
6044 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6046 -- Gigi restriction: This node never appears
6048 -- N_Entry_Call_Alternative
6049 -- Sloc points to first token of entry call statement
6050 -- Entry_Call_Statement (Node1)
6051 -- Statements (List3) (set to Empty_List if no statements)
6052 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6054 -----------------------------------
6055 -- 9.7.3 Conditional Entry Call --
6056 -----------------------------------
6058 -- CONDITIONAL_ENTRY_CALL ::=
6059 -- select
6060 -- ENTRY_CALL_ALTERNATIVE
6061 -- else
6062 -- SEQUENCE_OF_STATEMENTS
6063 -- end select;
6065 -- Gigi restriction: This node never appears
6067 -- N_Conditional_Entry_Call
6068 -- Sloc points to SELECT
6069 -- Entry_Call_Alternative (Node1)
6070 -- Else_Statements (List4)
6072 --------------------------------
6073 -- 9.7.4 Asynchronous Select --
6074 --------------------------------
6076 -- ASYNCHRONOUS_SELECT ::=
6077 -- select
6078 -- TRIGGERING_ALTERNATIVE
6079 -- then abort
6080 -- ABORTABLE_PART
6081 -- end select;
6083 -- Note: asynchronous select is not permitted in Ada 83 mode
6085 -- Gigi restriction: This node never appears
6087 -- N_Asynchronous_Select
6088 -- Sloc points to SELECT
6089 -- Triggering_Alternative (Node1)
6090 -- Abortable_Part (Node2)
6092 -----------------------------------
6093 -- 9.7.4 Triggering Alternative --
6094 -----------------------------------
6096 -- TRIGGERING_ALTERNATIVE ::=
6097 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6099 -- Gigi restriction: This node never appears
6101 -- N_Triggering_Alternative
6102 -- Sloc points to first token of triggering statement
6103 -- Triggering_Statement (Node1)
6104 -- Statements (List3) (set to Empty_List if no statements)
6105 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6107 ---------------------------------
6108 -- 9.7.4 Triggering Statement --
6109 ---------------------------------
6111 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6113 ---------------------------
6114 -- 9.7.4 Abortable Part --
6115 ---------------------------
6117 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6119 -- Gigi restriction: This node never appears
6121 -- N_Abortable_Part
6122 -- Sloc points to ABORT
6123 -- Statements (List3)
6125 --------------------------
6126 -- 9.8 Abort Statement --
6127 --------------------------
6129 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6131 -- Gigi restriction: This node never appears
6133 -- N_Abort_Statement
6134 -- Sloc points to ABORT
6135 -- Names (List2)
6137 -------------------------
6138 -- 10.1.1 Compilation --
6139 -------------------------
6141 -- COMPILATION ::= {COMPILATION_UNIT}
6143 -- There is no explicit node in the tree for a compilation, since in
6144 -- general the compiler is processing only a single compilation unit
6145 -- at a time. It is possible to parse multiple units in syntax check
6146 -- only mode, but the trees are discarded in that case.
6148 ------------------------------
6149 -- 10.1.1 Compilation Unit --
6150 ------------------------------
6152 -- COMPILATION_UNIT ::=
6153 -- CONTEXT_CLAUSE LIBRARY_ITEM
6154 -- | CONTEXT_CLAUSE SUBUNIT
6156 -- The N_Compilation_Unit node itself represents the above syntax.
6157 -- However, there are two additional items not reflected in the above
6158 -- syntax. First we have the global declarations that are added by the
6159 -- code generator. These are outer level declarations (so they cannot
6160 -- be represented as being inside the units). An example is the wrapper
6161 -- subprograms that are created to do ABE checking. As always a list of
6162 -- declarations can contain actions as well (i.e. statements), and such
6163 -- statements are executed as part of the elaboration of the unit. Note
6164 -- that all such declarations are elaborated before the library unit.
6166 -- Similarly, certain actions need to be elaborated at the completion
6167 -- of elaboration of the library unit (notably the statement that sets
6168 -- the Boolean flag indicating that elaboration is complete).
6170 -- The third item not reflected in the syntax is pragmas that appear
6171 -- after the compilation unit. As always pragmas are a problem since
6172 -- they are not part of the formal syntax, but can be stuck into the
6173 -- source following a set of ad hoc rules, and we have to find an ad
6174 -- hoc way of sticking them into the tree. For pragmas that appear
6175 -- before the library unit, we just consider them to be part of the
6176 -- context clause, and pragmas can appear in the Context_Items list
6177 -- of the compilation unit. However, pragmas can also appear after
6178 -- the library item.
6180 -- To deal with all these problems, we create an auxiliary node for
6181 -- a compilation unit, referenced from the N_Compilation_Unit node,
6182 -- that contains these items.
6184 -- N_Compilation_Unit
6185 -- Sloc points to first token of defining unit name
6186 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6187 -- Context_Items (List1) context items and pragmas preceding unit
6188 -- Private_Present (Flag15) set if library unit has private keyword
6189 -- Unit (Node2) library item or subunit
6190 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6191 -- Has_No_Elaboration_Code (Flag17-Sem)
6192 -- Body_Required (Flag13-Sem) set for spec if body is required
6193 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6194 -- Context_Pending (Flag16-Sem)
6195 -- First_Inlined_Subprogram (Node3-Sem)
6196 -- Has_Pragma_Suppress_All (Flag14-Sem)
6198 -- N_Compilation_Unit_Aux
6199 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6200 -- Declarations (List2) (set to No_List if no global declarations)
6201 -- Actions (List1) (set to No_List if no actions)
6202 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6203 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6204 -- Default_Storage_Pool (Node3-Sem)
6206 --------------------------
6207 -- 10.1.1 Library Item --
6208 --------------------------
6210 -- LIBRARY_ITEM ::=
6211 -- [private] LIBRARY_UNIT_DECLARATION
6212 -- | LIBRARY_UNIT_BODY
6213 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6215 -- Note: PRIVATE is not allowed in Ada 83 mode
6217 -- There is no explicit node in the tree for library item, instead
6218 -- the declaration or body, and the flag for private if present,
6219 -- appear in the N_Compilation_Unit node.
6221 --------------------------------------
6222 -- 10.1.1 Library Unit Declaration --
6223 --------------------------------------
6225 -- LIBRARY_UNIT_DECLARATION ::=
6226 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6227 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6229 -----------------------------------------------
6230 -- 10.1.1 Library Unit Renaming Declaration --
6231 -----------------------------------------------
6233 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6234 -- PACKAGE_RENAMING_DECLARATION
6235 -- | GENERIC_RENAMING_DECLARATION
6236 -- | SUBPROGRAM_RENAMING_DECLARATION
6238 -------------------------------
6239 -- 10.1.1 Library unit body --
6240 -------------------------------
6242 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6244 ------------------------------
6245 -- 10.1.1 Parent Unit Name --
6246 ------------------------------
6248 -- PARENT_UNIT_NAME ::= NAME
6250 ----------------------------
6251 -- 10.1.2 Context clause --
6252 ----------------------------
6254 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6256 -- The context clause can include pragmas, and any pragmas that appear
6257 -- before the context clause proper (i.e. all configuration pragmas,
6258 -- also appear at the front of this list).
6260 --------------------------
6261 -- 10.1.2 Context_Item --
6262 --------------------------
6264 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6266 -------------------------
6267 -- 10.1.2 With clause --
6268 -------------------------
6270 -- WITH_CLAUSE ::=
6271 -- with library_unit_NAME {,library_unit_NAME};
6273 -- A separate With clause is built for each name, so that we have
6274 -- a Corresponding_Spec field for each with'ed spec. The flags
6275 -- First_Name and Last_Name are used to reconstruct the exact
6276 -- source form. When a list of names appears in one with clause,
6277 -- the first name in the list has First_Name set, and the last
6278 -- has Last_Name set. If the with clause has only one name, then
6279 -- both of the flags First_Name and Last_Name are set in this name.
6281 -- Note: in the case of implicit with's that are installed by the
6282 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6283 -- set to Standard_Location, but it is incorrect to test the Sloc
6284 -- to find out if a with clause is implicit, test the flag instead.
6286 -- N_With_Clause
6287 -- Sloc points to first token of library unit name
6288 -- Withed_Body (Node1-Sem)
6289 -- Name (Node2)
6290 -- Next_Implicit_With (Node3-Sem)
6291 -- Library_Unit (Node4-Sem)
6292 -- Corresponding_Spec (Node5-Sem)
6293 -- First_Name (Flag5) (set to True if first name or only one name)
6294 -- Last_Name (Flag6) (set to True if last name or only one name)
6295 -- Context_Installed (Flag13-Sem)
6296 -- Elaborate_Present (Flag4-Sem)
6297 -- Elaborate_All_Present (Flag14-Sem)
6298 -- Elaborate_All_Desirable (Flag9-Sem)
6299 -- Elaborate_Desirable (Flag11-Sem)
6300 -- Private_Present (Flag15) set if with_clause has private keyword
6301 -- Implicit_With (Flag16-Sem)
6302 -- Implicit_With_From_Instantiation (Flag12-Sem)
6303 -- Limited_Present (Flag17) set if LIMITED is present
6304 -- Limited_View_Installed (Flag18-Sem)
6305 -- Unreferenced_In_Spec (Flag7-Sem)
6306 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6308 -- Note: Limited_Present and Limited_View_Installed are used to support
6309 -- the implementation of Ada 2005 (AI-50217).
6311 -- Similarly, Private_Present is used to support the implementation of
6312 -- Ada 2005 (AI-50262).
6314 ----------------------
6315 -- With_Type clause --
6316 ----------------------
6318 -- This is a GNAT extension, used to implement mutually recursive
6319 -- types declared in different packages.
6321 -- Note: this is now obsolete. The functionality of this construct
6322 -- is now implemented by the Ada 2005 limited_with_clause.
6324 ---------------------
6325 -- 10.2 Body stub --
6326 ---------------------
6328 -- BODY_STUB ::=
6329 -- SUBPROGRAM_BODY_STUB
6330 -- | PACKAGE_BODY_STUB
6331 -- | TASK_BODY_STUB
6332 -- | PROTECTED_BODY_STUB
6334 ----------------------------------
6335 -- 10.1.3 Subprogram Body Stub --
6336 ----------------------------------
6338 -- SUBPROGRAM_BODY_STUB ::=
6339 -- SUBPROGRAM_SPECIFICATION is separate
6340 -- [ASPECT_SPECIFICATION];
6342 -- N_Subprogram_Body_Stub
6343 -- Sloc points to FUNCTION or PROCEDURE
6344 -- Specification (Node1)
6345 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6346 -- Library_Unit (Node4-Sem) points to the subunit
6347 -- Corresponding_Body (Node5-Sem)
6349 -------------------------------
6350 -- 10.1.3 Package Body Stub --
6351 -------------------------------
6353 -- PACKAGE_BODY_STUB ::=
6354 -- package body DEFINING_IDENTIFIER is separate
6355 -- [ASPECT_SPECIFICATION];
6357 -- N_Package_Body_Stub
6358 -- Sloc points to PACKAGE
6359 -- Defining_Identifier (Node1)
6360 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6361 -- Library_Unit (Node4-Sem) points to the subunit
6362 -- Corresponding_Body (Node5-Sem)
6364 ----------------------------
6365 -- 10.1.3 Task Body Stub --
6366 ----------------------------
6368 -- TASK_BODY_STUB ::=
6369 -- task body DEFINING_IDENTIFIER is separate
6370 -- [ASPECT_SPECIFICATION];
6372 -- N_Task_Body_Stub
6373 -- Sloc points to TASK
6374 -- Defining_Identifier (Node1)
6375 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6376 -- Library_Unit (Node4-Sem) points to the subunit
6377 -- Corresponding_Body (Node5-Sem)
6379 ---------------------------------
6380 -- 10.1.3 Protected Body Stub --
6381 ---------------------------------
6383 -- PROTECTED_BODY_STUB ::=
6384 -- protected body DEFINING_IDENTIFIER is separate
6385 -- [ASPECT_SPECIFICATION];
6387 -- Note: protected body stubs are not allowed in Ada 83 mode
6389 -- N_Protected_Body_Stub
6390 -- Sloc points to PROTECTED
6391 -- Defining_Identifier (Node1)
6392 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6393 -- Library_Unit (Node4-Sem) points to the subunit
6394 -- Corresponding_Body (Node5-Sem)
6396 ---------------------
6397 -- 10.1.3 Subunit --
6398 ---------------------
6400 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6402 -- N_Subunit
6403 -- Sloc points to SEPARATE
6404 -- Name (Node2) is the name of the parent unit
6405 -- Proper_Body (Node1) is the subunit body
6406 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6408 ---------------------------------
6409 -- 11.1 Exception Declaration --
6410 ---------------------------------
6412 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6413 -- [ASPECT_SPECIFICATIONS];
6415 -- For consistency with object declarations etc., the parser converts
6416 -- the case of multiple identifiers being declared to a series of
6417 -- declarations in which the expression is copied, using the More_Ids
6418 -- and Prev_Ids flags to remember the source form as described in the
6419 -- section on "Handling of Defining Identifier Lists".
6421 -- N_Exception_Declaration
6422 -- Sloc points to EXCEPTION
6423 -- Defining_Identifier (Node1)
6424 -- Expression (Node3-Sem)
6425 -- Renaming_Exception (Node2-Sem)
6426 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6427 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6429 ------------------------------------------
6430 -- 11.2 Handled Sequence Of Statements --
6431 ------------------------------------------
6433 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6434 -- SEQUENCE_OF_STATEMENTS
6435 -- [exception
6436 -- EXCEPTION_HANDLER
6437 -- {EXCEPTION_HANDLER}]
6438 -- [at end
6439 -- cleanup_procedure_call (param, param, param, ...);]
6441 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6442 -- used only internally currently, but is considered to be syntactic.
6443 -- At the moment, the only cleanup action allowed is a single call to
6444 -- a parameterless procedure, and the Identifier field of the node is
6445 -- the procedure to be called. The cleanup action occurs whenever the
6446 -- sequence of statements is left for any reason. The possible reasons
6447 -- are:
6448 -- 1. reaching the end of the sequence
6449 -- 2. exit, return, or goto
6450 -- 3. exception or abort
6451 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6452 -- entirely in the back end. In this case, a handled sequence of
6453 -- statements with an "at end" cannot also have exception handlers.
6454 -- For other back ends, such as gcc with SJLJ and .NET, the
6455 -- implementation is split between the front end and back end; the front
6456 -- end implements 3, and the back end implements 1 and 2. In this case,
6457 -- if there is an "at end", the front end inserts the appropriate
6458 -- exception handler, and this handler takes precedence over "at end"
6459 -- in case of exception.
6461 -- The inserted exception handler is of the form:
6463 -- when all others =>
6464 -- cleanup;
6465 -- raise;
6467 -- where cleanup is the procedure to be called. The reason we do this is
6468 -- so that the front end can handle the necessary entries in the
6469 -- exception tables, and other exception handler actions required as
6470 -- part of the normal handling for exception handlers.
6472 -- The AT END cleanup handler protects only the sequence of statements
6473 -- (not the associated declarations of the parent), just like exception
6474 -- handlers. The big difference is that the cleanup procedure is called
6475 -- on either a normal or an abnormal exit from the statement sequence.
6477 -- Note: the list of Exception_Handlers can contain pragmas as well
6478 -- as actual handlers. In practice these pragmas can only occur at
6479 -- the start of the list, since any pragmas occurring later on will
6480 -- be included in the statement list of the corresponding handler.
6482 -- Note: although in the Ada syntax, the sequence of statements in
6483 -- a handled sequence of statements can only contain statements, we
6484 -- allow free mixing of declarations and statements in the resulting
6485 -- expanded tree. This is for example used to deal with the case of
6486 -- a cleanup procedure that must handle declarations as well as the
6487 -- statements of a block.
6489 -- N_Handled_Sequence_Of_Statements
6490 -- Sloc points to first token of first statement
6491 -- Statements (List3)
6492 -- End_Label (Node4) (set to Empty if expander generated)
6493 -- Exception_Handlers (List5) (set to No_List if none present)
6494 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6495 -- First_Real_Statement (Node2-Sem)
6497 -- Note: the parent always contains a Declarations field which contains
6498 -- declarations associated with the handled sequence of statements. This
6499 -- is true even in the case of an accept statement (see description of
6500 -- the N_Accept_Statement node).
6502 -- End_Label refers to the containing construct
6504 -----------------------------
6505 -- 11.2 Exception Handler --
6506 -----------------------------
6508 -- EXCEPTION_HANDLER ::=
6509 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6510 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6511 -- SEQUENCE_OF_STATEMENTS
6513 -- Note: choice parameter specification is not allowed in Ada 83 mode
6515 -- N_Exception_Handler
6516 -- Sloc points to WHEN
6517 -- Choice_Parameter (Node2) (set to Empty if not present)
6518 -- Exception_Choices (List4)
6519 -- Statements (List3)
6520 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6521 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6522 -- Local_Raise_Not_OK (Flag7-Sem)
6523 -- Has_Local_Raise (Flag8-Sem)
6525 ------------------------------------------
6526 -- 11.2 Choice parameter specification --
6527 ------------------------------------------
6529 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6531 ----------------------------
6532 -- 11.2 Exception Choice --
6533 ----------------------------
6535 -- EXCEPTION_CHOICE ::= exception_NAME | others
6537 -- Except in the case of OTHERS, no explicit node appears in the tree
6538 -- for exception choice. Instead the exception name appears directly.
6539 -- An OTHERS choice is represented by a N_Others_Choice node (see
6540 -- section 3.8.1.
6542 -- Note: for the exception choice created for an at end handler, the
6543 -- exception choice is an N_Others_Choice node with All_Others set.
6545 ---------------------------
6546 -- 11.3 Raise Statement --
6547 ---------------------------
6549 -- RAISE_STATEMENT ::= raise [exception_NAME];
6551 -- In Ada 2005, we have
6553 -- RAISE_STATEMENT ::=
6554 -- raise; | raise exception_NAME [with string_EXPRESSION];
6556 -- N_Raise_Statement
6557 -- Sloc points to RAISE
6558 -- Name (Node2) (set to Empty if no exception name present)
6559 -- Expression (Node3) (set to Empty if no expression present)
6560 -- From_At_End (Flag4-Sem)
6562 ----------------------------
6563 -- 11.3 Raise Expression --
6564 ----------------------------
6566 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
6568 -- N_Raise_Expression
6569 -- Sloc points to RAISE
6570 -- Name (Node2) (always present)
6571 -- Expression (Node3) (set to Empty if no expression present)
6572 -- Convert_To_Return_False (Flag13-Sem)
6573 -- plus fields for expression
6575 -------------------------------
6576 -- 12.1 Generic Declaration --
6577 -------------------------------
6579 -- GENERIC_DECLARATION ::=
6580 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6582 ------------------------------------------
6583 -- 12.1 Generic Subprogram Declaration --
6584 ------------------------------------------
6586 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6587 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
6588 -- [ASPECT_SPECIFICATIONS];
6590 -- Note: Generic_Formal_Declarations can include pragmas
6592 -- N_Generic_Subprogram_Declaration
6593 -- Sloc points to GENERIC
6594 -- Specification (Node1) subprogram specification
6595 -- Corresponding_Body (Node5-Sem)
6596 -- Generic_Formal_Declarations (List2) from generic formal part
6597 -- Parent_Spec (Node4-Sem)
6599 ---------------------------------------
6600 -- 12.1 Generic Package Declaration --
6601 ---------------------------------------
6603 -- GENERIC_PACKAGE_DECLARATION ::=
6604 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6605 -- [ASPECT_SPECIFICATIONS];
6607 -- Note: when we do generics right, the Activation_Chain_Entity entry
6608 -- for this node can be removed (since the expander won't see generic
6609 -- units any more)???.
6611 -- Note: Generic_Formal_Declarations can include pragmas
6613 -- N_Generic_Package_Declaration
6614 -- Sloc points to GENERIC
6615 -- Specification (Node1) package specification
6616 -- Corresponding_Body (Node5-Sem)
6617 -- Generic_Formal_Declarations (List2) from generic formal part
6618 -- Parent_Spec (Node4-Sem)
6619 -- Activation_Chain_Entity (Node3-Sem)
6621 -------------------------------
6622 -- 12.1 Generic Formal Part --
6623 -------------------------------
6625 -- GENERIC_FORMAL_PART ::=
6626 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6628 ------------------------------------------------
6629 -- 12.1 Generic Formal Parameter Declaration --
6630 ------------------------------------------------
6632 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6633 -- FORMAL_OBJECT_DECLARATION
6634 -- | FORMAL_TYPE_DECLARATION
6635 -- | FORMAL_SUBPROGRAM_DECLARATION
6636 -- | FORMAL_PACKAGE_DECLARATION
6638 ---------------------------------
6639 -- 12.3 Generic Instantiation --
6640 ---------------------------------
6642 -- GENERIC_INSTANTIATION ::=
6643 -- package DEFINING_PROGRAM_UNIT_NAME is
6644 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6645 -- [ASPECT_SPECIFICATIONS];
6646 -- | [[not] overriding]
6647 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6648 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6649 -- [ASPECT_SPECIFICATIONS];
6650 -- | [[not] overriding]
6651 -- function DEFINING_DESIGNATOR is
6652 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6653 -- [ASPECT_SPECIFICATIONS];
6655 -- N_Package_Instantiation
6656 -- Sloc points to PACKAGE
6657 -- Defining_Unit_Name (Node1)
6658 -- Name (Node2)
6659 -- Generic_Associations (List3) (set to No_List if no
6660 -- generic actual part)
6661 -- Parent_Spec (Node4-Sem)
6662 -- Instance_Spec (Node5-Sem)
6663 -- ABE_Is_Certain (Flag18-Sem)
6665 -- N_Procedure_Instantiation
6666 -- Sloc points to PROCEDURE
6667 -- Defining_Unit_Name (Node1)
6668 -- Name (Node2)
6669 -- Parent_Spec (Node4-Sem)
6670 -- Generic_Associations (List3) (set to No_List if no
6671 -- generic actual part)
6672 -- Instance_Spec (Node5-Sem)
6673 -- Must_Override (Flag14) set if overriding indicator present
6674 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6675 -- ABE_Is_Certain (Flag18-Sem)
6677 -- N_Function_Instantiation
6678 -- Sloc points to FUNCTION
6679 -- Defining_Unit_Name (Node1)
6680 -- Name (Node2)
6681 -- Generic_Associations (List3) (set to No_List if no
6682 -- generic actual part)
6683 -- Parent_Spec (Node4-Sem)
6684 -- Instance_Spec (Node5-Sem)
6685 -- Must_Override (Flag14) set if overriding indicator present
6686 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6687 -- ABE_Is_Certain (Flag18-Sem)
6689 -- Note: overriding indicator is an Ada 2005 feature
6691 -------------------------------
6692 -- 12.3 Generic Actual Part --
6693 -------------------------------
6695 -- GENERIC_ACTUAL_PART ::=
6696 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6698 -------------------------------
6699 -- 12.3 Generic Association --
6700 -------------------------------
6702 -- GENERIC_ASSOCIATION ::=
6703 -- [generic_formal_parameter_SELECTOR_NAME =>]
6705 -- Note: unlike the procedure call case, a generic association node
6706 -- is generated for every association, even if no formal parameter
6707 -- selector name is present. In this case the parser will leave the
6708 -- Selector_Name field set to Empty, to be filled in later by the
6709 -- semantic pass.
6711 -- In Ada 2005, a formal may be associated with a box, if the
6712 -- association is part of the list of actuals for a formal package.
6713 -- If the association is given by OTHERS => <>, the association is
6714 -- an N_Others_Choice.
6716 -- N_Generic_Association
6717 -- Sloc points to first token of generic association
6718 -- Selector_Name (Node2) (set to Empty if no formal
6719 -- parameter selector name)
6720 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6721 -- Box_Present (Flag15) (for formal_package associations with a box)
6723 ---------------------------------------------
6724 -- 12.3 Explicit Generic Actual Parameter --
6725 ---------------------------------------------
6727 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6728 -- EXPRESSION | variable_NAME | subprogram_NAME
6729 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6731 -------------------------------------
6732 -- 12.4 Formal Object Declaration --
6733 -------------------------------------
6735 -- FORMAL_OBJECT_DECLARATION ::=
6736 -- DEFINING_IDENTIFIER_LIST :
6737 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6738 -- [ASPECT_SPECIFICATIONS];
6739 -- | DEFINING_IDENTIFIER_LIST :
6740 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6741 -- [ASPECT_SPECIFICATIONS];
6743 -- Although the syntax allows multiple identifiers in the list, the
6744 -- semantics is as though successive declarations were given with
6745 -- identical type definition and expression components. To simplify
6746 -- semantic processing, the parser represents a multiple declaration
6747 -- case as a sequence of single declarations, using the More_Ids and
6748 -- Prev_Ids flags to preserve the original source form as described
6749 -- in the section on "Handling of Defining Identifier Lists".
6751 -- N_Formal_Object_Declaration
6752 -- Sloc points to first identifier
6753 -- Defining_Identifier (Node1)
6754 -- In_Present (Flag15)
6755 -- Out_Present (Flag17)
6756 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6757 -- Subtype_Mark (Node4) (set to Empty if not present)
6758 -- Access_Definition (Node3) (set to Empty if not present)
6759 -- Default_Expression (Node5) (set to Empty if no default expression)
6760 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6761 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6763 -----------------------------------
6764 -- 12.5 Formal Type Declaration --
6765 -----------------------------------
6767 -- FORMAL_TYPE_DECLARATION ::=
6768 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6769 -- is FORMAL_TYPE_DEFINITION
6770 -- [ASPECT_SPECIFICATIONS];
6771 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6773 -- N_Formal_Type_Declaration
6774 -- Sloc points to TYPE
6775 -- Defining_Identifier (Node1)
6776 -- Formal_Type_Definition (Node3)
6777 -- Discriminant_Specifications (List4) (set to No_List if no
6778 -- discriminant part)
6779 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6781 ----------------------------------
6782 -- 12.5 Formal type definition --
6783 ----------------------------------
6785 -- FORMAL_TYPE_DEFINITION ::=
6786 -- FORMAL_PRIVATE_TYPE_DEFINITION
6787 -- | FORMAL_DERIVED_TYPE_DEFINITION
6788 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6789 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6790 -- | FORMAL_MODULAR_TYPE_DEFINITION
6791 -- | FORMAL_FLOATING_POINT_DEFINITION
6792 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6793 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6794 -- | FORMAL_ARRAY_TYPE_DEFINITION
6795 -- | FORMAL_ACCESS_TYPE_DEFINITION
6796 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6797 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6799 -- The Ada 2012 syntax introduces two new non-terminals:
6800 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6801 -- the latter category. Here we introduce an incomplete type definition
6802 -- in order to preserve as much as possible the existing structure.
6804 ---------------------------------------------
6805 -- 12.5.1 Formal Private Type Definition --
6806 ---------------------------------------------
6808 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6809 -- [[abstract] tagged] [limited] private
6811 -- Note: TAGGED is not allowed in Ada 83 mode
6813 -- N_Formal_Private_Type_Definition
6814 -- Sloc points to PRIVATE
6815 -- Uninitialized_Variable (Node3-Sem)
6816 -- Abstract_Present (Flag4)
6817 -- Tagged_Present (Flag15)
6818 -- Limited_Present (Flag17)
6820 --------------------------------------------
6821 -- 12.5.1 Formal Derived Type Definition --
6822 --------------------------------------------
6824 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6825 -- [abstract] [limited | synchronized]
6826 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6827 -- Note: this construct is not allowed in Ada 83 mode
6829 -- N_Formal_Derived_Type_Definition
6830 -- Sloc points to NEW
6831 -- Subtype_Mark (Node4)
6832 -- Private_Present (Flag15)
6833 -- Abstract_Present (Flag4)
6834 -- Limited_Present (Flag17)
6835 -- Synchronized_Present (Flag7)
6836 -- Interface_List (List2) (set to No_List if none)
6838 -----------------------------------------------
6839 -- 12.5.1 Formal Incomplete Type Definition --
6840 -----------------------------------------------
6842 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6844 -- N_Formal_Incomplete_Type_Definition
6845 -- Sloc points to identifier of parent
6846 -- Tagged_Present (Flag15)
6848 ---------------------------------------------
6849 -- 12.5.2 Formal Discrete Type Definition --
6850 ---------------------------------------------
6852 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6854 -- N_Formal_Discrete_Type_Definition
6855 -- Sloc points to (
6857 ---------------------------------------------------
6858 -- 12.5.2 Formal Signed Integer Type Definition --
6859 ---------------------------------------------------
6861 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6863 -- N_Formal_Signed_Integer_Type_Definition
6864 -- Sloc points to RANGE
6866 --------------------------------------------
6867 -- 12.5.2 Formal Modular Type Definition --
6868 --------------------------------------------
6870 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6872 -- N_Formal_Modular_Type_Definition
6873 -- Sloc points to MOD
6875 ----------------------------------------------
6876 -- 12.5.2 Formal Floating Point Definition --
6877 ----------------------------------------------
6879 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6881 -- N_Formal_Floating_Point_Definition
6882 -- Sloc points to DIGITS
6884 ----------------------------------------------------
6885 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6886 ----------------------------------------------------
6888 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6890 -- N_Formal_Ordinary_Fixed_Point_Definition
6891 -- Sloc points to DELTA
6893 ---------------------------------------------------
6894 -- 12.5.2 Formal Decimal Fixed Point Definition --
6895 ---------------------------------------------------
6897 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6899 -- Note: formal decimal fixed point definition not allowed in Ada 83
6901 -- N_Formal_Decimal_Fixed_Point_Definition
6902 -- Sloc points to DELTA
6904 ------------------------------------------
6905 -- 12.5.3 Formal Array Type Definition --
6906 ------------------------------------------
6908 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6910 -------------------------------------------
6911 -- 12.5.4 Formal Access Type Definition --
6912 -------------------------------------------
6914 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6916 ----------------------------------------------
6917 -- 12.5.5 Formal Interface Type Definition --
6918 ----------------------------------------------
6920 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6922 -----------------------------------------
6923 -- 12.6 Formal Subprogram Declaration --
6924 -----------------------------------------
6926 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6927 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6928 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6930 --------------------------------------------------
6931 -- 12.6 Formal Concrete Subprogram Declaration --
6932 --------------------------------------------------
6934 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6935 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6936 -- [ASPECT_SPECIFICATIONS];
6938 -- N_Formal_Concrete_Subprogram_Declaration
6939 -- Sloc points to WITH
6940 -- Specification (Node1)
6941 -- Default_Name (Node2) (set to Empty if no subprogram default)
6942 -- Box_Present (Flag15)
6944 -- Note: if no subprogram default is present, then Name is set
6945 -- to Empty, and Box_Present is False.
6947 --------------------------------------------------
6948 -- 12.6 Formal Abstract Subprogram Declaration --
6949 --------------------------------------------------
6951 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6952 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6953 -- [ASPECT_SPECIFICATIONS];
6955 -- N_Formal_Abstract_Subprogram_Declaration
6956 -- Sloc points to WITH
6957 -- Specification (Node1)
6958 -- Default_Name (Node2) (set to Empty if no subprogram default)
6959 -- Box_Present (Flag15)
6961 -- Note: if no subprogram default is present, then Name is set
6962 -- to Empty, and Box_Present is False.
6964 ------------------------------
6965 -- 12.6 Subprogram Default --
6966 ------------------------------
6968 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6970 -- There is no separate node in the tree for a subprogram default.
6971 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6972 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6973 -- default name or box indication, as needed.
6975 ------------------------
6976 -- 12.6 Default Name --
6977 ------------------------
6979 -- DEFAULT_NAME ::= NAME
6981 --------------------------------------
6982 -- 12.7 Formal Package Declaration --
6983 --------------------------------------
6985 -- FORMAL_PACKAGE_DECLARATION ::=
6986 -- with package DEFINING_IDENTIFIER
6987 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6988 -- [ASPECT_SPECIFICATIONS];
6990 -- Note: formal package declarations not allowed in Ada 83 mode
6992 -- N_Formal_Package_Declaration
6993 -- Sloc points to WITH
6994 -- Defining_Identifier (Node1)
6995 -- Name (Node2)
6996 -- Generic_Associations (List3) (set to No_List if (<>) case or
6997 -- empty generic actual part)
6998 -- Box_Present (Flag15)
6999 -- Instance_Spec (Node5-Sem)
7000 -- ABE_Is_Certain (Flag18-Sem)
7002 --------------------------------------
7003 -- 12.7 Formal Package Actual Part --
7004 --------------------------------------
7006 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7007 -- ([OTHERS] => <>)
7008 -- | [GENERIC_ACTUAL_PART]
7009 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7011 -- FORMAL_PACKAGE_ASSOCIATION ::=
7012 -- GENERIC_ASSOCIATION
7013 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7015 -- There is no explicit node in the tree for a formal package actual
7016 -- part. Instead the information appears in the parent node (i.e. the
7017 -- formal package declaration node itself).
7019 -- There is no explicit node for a formal package association. All of
7020 -- them are represented either by a generic association, possibly with
7021 -- Box_Present, or by an N_Others_Choice.
7023 ---------------------------------
7024 -- 13.1 Representation clause --
7025 ---------------------------------
7027 -- REPRESENTATION_CLAUSE ::=
7028 -- ATTRIBUTE_DEFINITION_CLAUSE
7029 -- | ENUMERATION_REPRESENTATION_CLAUSE
7030 -- | RECORD_REPRESENTATION_CLAUSE
7031 -- | AT_CLAUSE
7033 ----------------------
7034 -- 13.1 Local Name --
7035 ----------------------
7037 -- LOCAL_NAME :=
7038 -- DIRECT_NAME
7039 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7040 -- | library_unit_NAME
7042 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7043 -- as an attribute reference, which has essentially the same form.
7045 ---------------------------------------
7046 -- 13.3 Attribute definition clause --
7047 ---------------------------------------
7049 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7050 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7051 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7053 -- In Ada 83, the expression must be a simple expression and the
7054 -- local name must be a direct name.
7056 -- Note: the only attribute definition clause that is processed by
7057 -- gigi is an address clause. For all other cases, the information
7058 -- is extracted by the front end and either results in setting entity
7059 -- information, e.g. Esize for the Size clause, or in appropriate
7060 -- expansion actions (e.g. in the case of Storage_Size).
7062 -- For an address clause, Gigi constructs the appropriate addressing
7063 -- code. It also ensures that no aliasing optimizations are made
7064 -- for the object for which the address clause appears.
7066 -- Note: for an address clause used to achieve an overlay:
7068 -- A : Integer;
7069 -- B : Integer;
7070 -- for B'Address use A'Address;
7072 -- the above rule means that Gigi will ensure that no optimizations
7073 -- will be made for B that would violate the implementation advice
7074 -- of RM 13.3(19). However, this advice applies only to B and not
7075 -- to A, which seems unfortunate. The GNAT front end will mark the
7076 -- object A as volatile to also prevent unwanted optimization
7077 -- assumptions based on no aliasing being made for B.
7079 -- N_Attribute_Definition_Clause
7080 -- Sloc points to FOR
7081 -- Name (Node2) the local name
7082 -- Chars (Name1) the identifier name from the attribute designator
7083 -- Expression (Node3) the expression or name
7084 -- Entity (Node4-Sem)
7085 -- Next_Rep_Item (Node5-Sem)
7086 -- From_At_Mod (Flag4-Sem)
7087 -- Check_Address_Alignment (Flag11-Sem)
7088 -- From_Aspect_Specification (Flag13-Sem)
7089 -- Is_Delayed_Aspect (Flag14-Sem)
7090 -- Address_Warning_Posted (Flag18-Sem)
7092 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7093 -- aspect name, and Entity is resolved already to reference the entity
7094 -- to which the aspect applies.
7096 -----------------------------------
7097 -- 13.3.1 Aspect Specifications --
7098 -----------------------------------
7100 -- We modify the RM grammar here, the RM grammar is:
7102 -- ASPECT_SPECIFICATION ::=
7103 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7104 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7106 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7108 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7110 -- That's inconvenient, since there is no non-terminal name for a single
7111 -- entry in the list of aspects. So we use this grammar instead:
7113 -- ASPECT_SPECIFICATIONS ::=
7114 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7116 -- ASPECT_SPECIFICATION =>
7117 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7119 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7121 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7123 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7124 -- aggregate with the elements of the aggregate corresponding to the
7125 -- successive arguments of the corresponding pragma.
7127 -- See separate package Aspects for details on the incorporation of
7128 -- these nodes into the tree, and how aspect specifications for a given
7129 -- declaration node are associated with that node.
7131 -- N_Aspect_Specification
7132 -- Sloc points to aspect identifier
7133 -- Identifier (Node1) aspect identifier
7134 -- Aspect_Rep_Item (Node2-Sem)
7135 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7136 -- Entity (Node4-Sem) entity to which the aspect applies
7137 -- Next_Rep_Item (Node5-Sem)
7138 -- Class_Present (Flag6) Set if 'Class present
7139 -- Is_Ignored (Flag9-Sem)
7140 -- Is_Checked (Flag11-Sem)
7141 -- Is_Delayed_Aspect (Flag14-Sem)
7142 -- Is_Disabled (Flag15-Sem)
7143 -- Is_Boolean_Aspect (Flag16-Sem)
7144 -- Split_PPC (Flag17) Set if split pre/post attribute
7146 -- Note: Aspect_Specification is an Ada 2012 feature
7148 -- Note: The Identifier serves to identify the aspect involved (it
7149 -- is the aspect whose name corresponds to the Chars field). This
7150 -- means that the other fields of this identifier are unused, and
7151 -- in particular we use the Entity field of this identifier to save
7152 -- a copy of the expression for visibility analysis, see spec of
7153 -- Sem_Ch13 for full details of this usage.
7155 -- In the case of aspects of the form xxx'Class, the aspect identifier
7156 -- is for xxx, and Class_Present is set to True.
7158 -- Note: When a Pre or Post aspect specification is processed, it is
7159 -- broken into AND THEN sections. The left most section has Split_PPC
7160 -- set to False, indicating that it is the original specification (e.g.
7161 -- for posting errors). For the other sections, Split_PPC is set True.
7163 ---------------------------------------------
7164 -- 13.4 Enumeration representation clause --
7165 ---------------------------------------------
7167 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7168 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7170 -- In Ada 83, the name must be a direct name
7172 -- N_Enumeration_Representation_Clause
7173 -- Sloc points to FOR
7174 -- Identifier (Node1) direct name
7175 -- Array_Aggregate (Node3)
7176 -- Next_Rep_Item (Node5-Sem)
7178 ---------------------------------
7179 -- 13.4 Enumeration aggregate --
7180 ---------------------------------
7182 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7184 ------------------------------------------
7185 -- 13.5.1 Record representation clause --
7186 ------------------------------------------
7188 -- RECORD_REPRESENTATION_CLAUSE ::=
7189 -- for first_subtype_LOCAL_NAME use
7190 -- record [MOD_CLAUSE]
7191 -- {COMPONENT_CLAUSE}
7192 -- end record;
7194 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7195 -- replaced by a corresponding Alignment attribute definition clause).
7197 -- Note: Component_Clauses can include pragmas
7199 -- N_Record_Representation_Clause
7200 -- Sloc points to FOR
7201 -- Identifier (Node1) direct name
7202 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7203 -- Component_Clauses (List3)
7204 -- Next_Rep_Item (Node5-Sem)
7206 ------------------------------
7207 -- 13.5.1 Component clause --
7208 ------------------------------
7210 -- COMPONENT_CLAUSE ::=
7211 -- component_LOCAL_NAME at POSITION
7212 -- range FIRST_BIT .. LAST_BIT;
7214 -- N_Component_Clause
7215 -- Sloc points to AT
7216 -- Component_Name (Node1) points to Name or Attribute_Reference
7217 -- Position (Node2)
7218 -- First_Bit (Node3)
7219 -- Last_Bit (Node4)
7221 ----------------------
7222 -- 13.5.1 Position --
7223 ----------------------
7225 -- POSITION ::= static_EXPRESSION
7227 -----------------------
7228 -- 13.5.1 First_Bit --
7229 -----------------------
7231 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7233 ----------------------
7234 -- 13.5.1 Last_Bit --
7235 ----------------------
7237 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7239 --------------------------
7240 -- 13.8 Code statement --
7241 --------------------------
7243 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7245 -- Note: in GNAT, the qualified expression has the form
7247 -- Asm_Insn'(Asm (...));
7249 -- See package System.Machine_Code in file s-maccod.ads for details on
7250 -- the allowed parameters to Asm. There are two ways this node can
7251 -- arise, as a code statement, in which case the expression is the
7252 -- qualified expression, or as a result of the expansion of an intrinsic
7253 -- call to the Asm or Asm_Input procedure.
7255 -- N_Code_Statement
7256 -- Sloc points to first token of the expression
7257 -- Expression (Node3)
7259 -- Note: package Exp_Code contains an abstract functional interface
7260 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7262 ------------------------
7263 -- 13.12 Restriction --
7264 ------------------------
7266 -- RESTRICTION ::=
7267 -- restriction_IDENTIFIER
7268 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7270 -- There is no explicit node for restrictions. Instead the restriction
7271 -- appears in normal pragma syntax as a pragma argument association,
7272 -- which has the same syntactic form.
7274 --------------------------
7275 -- B.2 Shift Operators --
7276 --------------------------
7278 -- Calls to the intrinsic shift functions are converted to one of
7279 -- the following shift nodes, which have the form of normal binary
7280 -- operator names. Note that for a given shift operation, one node
7281 -- covers all possible types, as for normal operators.
7283 -- Note: it is perfectly permissible for the expander to generate
7284 -- shift operation nodes directly, in which case they will be analyzed
7285 -- and parsed in the usual manner.
7287 -- Sprint syntax: shift-function-name!(expr, count)
7289 -- Note: the Left_Opnd field holds the first argument (the value to
7290 -- be shifted). The Right_Opnd field holds the second argument (the
7291 -- shift count). The Chars field is the name of the intrinsic function.
7293 -- N_Op_Rotate_Left
7294 -- Sloc points to the function name
7295 -- plus fields for binary operator
7296 -- plus fields for expression
7297 -- Shift_Count_OK (Flag4-Sem)
7299 -- N_Op_Rotate_Right
7300 -- Sloc points to the function name
7301 -- plus fields for binary operator
7302 -- plus fields for expression
7303 -- Shift_Count_OK (Flag4-Sem)
7305 -- N_Op_Shift_Left
7306 -- Sloc points to the function name
7307 -- plus fields for binary operator
7308 -- plus fields for expression
7309 -- Shift_Count_OK (Flag4-Sem)
7311 -- N_Op_Shift_Right_Arithmetic
7312 -- Sloc points to the function name
7313 -- plus fields for binary operator
7314 -- plus fields for expression
7315 -- Shift_Count_OK (Flag4-Sem)
7317 -- N_Op_Shift_Right
7318 -- Sloc points to the function name
7319 -- plus fields for binary operator
7320 -- plus fields for expression
7321 -- Shift_Count_OK (Flag4-Sem)
7323 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7324 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7326 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7327 -- always less than the word size if Modify_Tree_For_C mode is set.
7329 --------------------------
7330 -- Obsolescent Features --
7331 --------------------------
7333 -- The syntax descriptions and tree nodes for obsolescent features are
7334 -- grouped together, corresponding to their location in appendix I in
7335 -- the RM. However, parsing and semantic analysis for these constructs
7336 -- is located in an appropriate chapter (see individual notes).
7338 ---------------------------
7339 -- J.3 Delta Constraint --
7340 ---------------------------
7342 -- Note: the parse routine for this construct is located in section
7343 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7344 -- where delta constraint logically belongs.
7346 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7348 -- N_Delta_Constraint
7349 -- Sloc points to DELTA
7350 -- Delta_Expression (Node3)
7351 -- Range_Constraint (Node4) (set to Empty if not present)
7353 --------------------
7354 -- J.7 At Clause --
7355 --------------------
7357 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7359 -- Note: the parse routine for this construct is located in Par-Ch13,
7360 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7361 -- belongs if it were not obsolescent.
7363 -- Note: in Ada 83 the expression must be a simple expression
7365 -- Gigi restriction: This node never appears, it is rewritten as an
7366 -- address attribute definition clause.
7368 -- N_At_Clause
7369 -- Sloc points to FOR
7370 -- Identifier (Node1)
7371 -- Expression (Node3)
7373 ---------------------
7374 -- J.8 Mod clause --
7375 ---------------------
7377 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7379 -- Note: the parse routine for this construct is located in Par-Ch13,
7380 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7381 -- belongs if it were not obsolescent.
7383 -- Note: in Ada 83, the expression must be a simple expression
7385 -- Gigi restriction: this node never appears. It is replaced
7386 -- by a corresponding Alignment attribute definition clause.
7388 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7389 -- its name has "clause" in it. This is rather strange, but is quite
7390 -- definitely specified. The pragmas before are collected in the
7391 -- Pragmas_Before field of the mod clause node itself, and pragmas
7392 -- after are simply swallowed up in the list of component clauses.
7394 -- N_Mod_Clause
7395 -- Sloc points to AT
7396 -- Expression (Node3)
7397 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7399 --------------------
7400 -- Semantic Nodes --
7401 --------------------
7403 -- These semantic nodes are used to hold additional semantic information.
7404 -- They are inserted into the tree as a result of semantic processing.
7405 -- Although there are no legitimate source syntax constructions that
7406 -- correspond directly to these nodes, we need a source syntax for the
7407 -- reconstructed tree printed by Sprint, and the node descriptions here
7408 -- show this syntax.
7410 ------------------------
7411 -- Compound Statement --
7412 ------------------------
7414 -- This node is created by the analyzer/expander to handle some
7415 -- expansion cases where a sequence of actions needs to be captured
7416 -- within a single node (which acts as a container and allows the
7417 -- entire list of actions to be moved around as a whole) appearing
7418 -- in a sequence of statements.
7420 -- This is the statement counterpart to the expression node
7421 -- N_Expression_With_Actions.
7423 -- The required semantics is that the set of actions is executed in
7424 -- the order in which it appears, as though they appeared by themselves
7425 -- in the enclosing list of declarations of statements. Unlike what
7426 -- happens when using an N_Block_Statement, no new scope is introduced.
7428 -- Note: for the time being, this is used only as a transient
7429 -- representation during expansion, and all compound statement nodes
7430 -- must be exploded back to their constituent statements before handing
7431 -- the tree to the back end.
7433 -- Sprint syntax: do
7434 -- action;
7435 -- action;
7436 -- ...
7437 -- action;
7438 -- end;
7440 -- N_Compound_Statement
7441 -- Actions (List1)
7443 --------------
7444 -- Contract --
7445 --------------
7447 -- This node is used to hold the various parts of an entry, subprogram
7448 -- [body] or package [body] contract, in particular:
7449 -- Abstract states declared by a package declaration
7450 -- Contract cases that apply to a subprogram
7451 -- Dependency relations of inputs and output of a subprogram
7452 -- Global annotations classifying data as input or output
7453 -- Initialization sequences for a package declaration
7454 -- Pre- and postconditions that apply to a subprogram
7456 -- The node appears in an entry and [generic] subprogram [body] entity.
7458 -- Sprint syntax: <none> as the node should not appear in the tree, but
7459 -- only attached to an entry or [generic] subprogram
7460 -- entity.
7462 -- N_Contract
7463 -- Sloc points to the subprogram's name
7464 -- Pre_Post_Conditions (Node1) (set to Empty if none)
7465 -- Contract_Test_Cases (Node2) (set to Empty if none)
7466 -- Classifications (Node3) (set to Empty if none)
7468 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7469 -- to pre- and postconditions associated with an entry or a subprogram
7470 -- [body or stub]. The pragmas can either come from source or be the
7471 -- byproduct of aspect expansion. Currently the following pragmas appear
7472 -- in this list:
7473 -- Post
7474 -- Postcondition
7475 -- Pre
7476 -- Precondition
7477 -- Refined_Post
7478 -- The ordering in the list is in LIFO fashion.
7480 -- Note that there might be multiple preconditions or postconditions
7481 -- in this list, either because they come from separate pragmas in the
7482 -- source, or because a Pre (resp. Post) aspect specification has been
7483 -- broken into AND THEN sections. See Split_PPC for details.
7485 -- Contract_Test_Cases contains a collection of pragmas that correspond
7486 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
7487 -- list is in LIFO fashion.
7489 -- Classifications contains pragmas that either declare, categorize or
7490 -- establish dependencies between subprogram or package inputs and
7491 -- outputs. Currently the following pragmas appear in this list:
7492 -- Abstract_States
7493 -- Async_Readers
7494 -- Async_Writers
7495 -- Depends
7496 -- Effective_Reads
7497 -- Effective_Writes
7498 -- Global
7499 -- Initial_Condition
7500 -- Initializes
7501 -- Part_Of
7502 -- Refined_Depends
7503 -- Refined_Global
7504 -- Refined_States
7505 -- The ordering is in LIFO fashion.
7507 -------------------
7508 -- Expanded Name --
7509 -------------------
7511 -- The N_Expanded_Name node is used to represent a selected component
7512 -- name that has been resolved to an expanded name. The semantic phase
7513 -- replaces N_Selected_Component nodes that represent names by the use
7514 -- of this node, leaving the N_Selected_Component node used only when
7515 -- the prefix is a record or protected type.
7517 -- The fields of the N_Expanded_Name node are layed out identically
7518 -- to those of the N_Selected_Component node, allowing conversion of
7519 -- an expanded name node to a selected component node to be done
7520 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
7522 -- There is no special sprint syntax for an expanded name
7524 -- N_Expanded_Name
7525 -- Sloc points to the period
7526 -- Chars (Name1) copy of Chars field of selector name
7527 -- Prefix (Node3)
7528 -- Selector_Name (Node2)
7529 -- Entity (Node4-Sem)
7530 -- Associated_Node (Node4-Sem)
7531 -- Has_Private_View (Flag11-Sem) set in generic units.
7532 -- Redundant_Use (Flag13-Sem)
7533 -- Atomic_Sync_Required (Flag14-Sem)
7534 -- plus fields for expression
7536 -----------------------------
7537 -- Expression With Actions --
7538 -----------------------------
7540 -- This node is created by the analyzer/expander to handle some
7541 -- expansion cases, notably short circuit forms where there are
7542 -- actions associated with the right-hand side operand.
7544 -- The N_Expression_With_Actions node represents an expression with
7545 -- an associated set of actions (which are executable statements and
7546 -- declarations, as might occur in a handled statement sequence).
7548 -- The required semantics is that the set of actions is executed in
7549 -- the order in which it appears just before the expression is
7550 -- evaluated (and these actions must only be executed if the value
7551 -- of the expression is evaluated). The node is considered to be
7552 -- a subexpression, whose value is the value of the Expression after
7553 -- executing all the actions.
7555 -- If the actions contain declarations, then these declarations may
7556 -- be referenced within the expression. However note that there is
7557 -- no proper scope associated with the expression-with-action, so the
7558 -- back-end will elaborate them in the context of the enclosing scope.
7560 -- Sprint syntax: do
7561 -- action;
7562 -- action;
7563 -- ...
7564 -- action;
7565 -- in expression end
7567 -- N_Expression_With_Actions
7568 -- Actions (List1)
7569 -- Expression (Node3)
7570 -- plus fields for expression
7572 -- Note: In the final generated tree presented to the code generator,
7573 -- the actions list is always non-null, since there is no point in this
7574 -- node if the actions are Empty. During semantic analysis there are
7575 -- cases where it is convenient to temporarily generate an empty actions
7576 -- list. This arises in cases where we create such an empty actions
7577 -- list, and it may or may not end up being a place where additional
7578 -- actions are inserted. The expander removes such empty cases after
7579 -- the expression of the node is fully analyzed and expanded, at which
7580 -- point it is safe to remove it, since no more actions can be inserted.
7582 -- Note: In Modify_Tree_For_C, we never generate any declarations in
7583 -- the action list, which can contain only non-declarative statements.
7585 --------------------
7586 -- Free Statement --
7587 --------------------
7589 -- The N_Free_Statement node is generated as a result of a call to an
7590 -- instantiation of Unchecked_Deallocation. The instantiation of this
7591 -- generic is handled specially and generates this node directly.
7593 -- Sprint syntax: free expression
7595 -- N_Free_Statement
7596 -- Sloc is copied from the unchecked deallocation call
7597 -- Expression (Node3) argument to unchecked deallocation call
7598 -- Storage_Pool (Node1-Sem)
7599 -- Procedure_To_Call (Node2-Sem)
7600 -- Actual_Designated_Subtype (Node4-Sem)
7602 -- Note: in the case where a debug source file is generated, the Sloc
7603 -- for this node points to the FREE keyword in the Sprint file output.
7605 -------------------
7606 -- Freeze Entity --
7607 -------------------
7609 -- This node marks the point in a declarative part at which an entity
7610 -- declared therein becomes frozen. The expander places initialization
7611 -- procedures for types at those points. Gigi uses the freezing point
7612 -- to elaborate entities that may depend on previous private types.
7614 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7615 -- a full description of the use of this node.
7617 -- The Entity field points back to the entity for the type (whose
7618 -- Freeze_Node field points back to this freeze node).
7620 -- The Actions field contains a list of declarations and statements
7621 -- generated by the expander which are associated with the freeze
7622 -- node, and are elaborated as though the freeze node were replaced
7623 -- by this sequence of actions.
7625 -- Note: the Sloc field in the freeze node references a construct
7626 -- associated with the freezing point. This is used for posting
7627 -- messages in some error/warning situations, e.g. the case where
7628 -- a primitive operation of a tagged type is declared too late.
7630 -- Sprint syntax: freeze entity-name [
7631 -- freeze actions
7632 -- ]
7634 -- N_Freeze_Entity
7635 -- Sloc points near freeze point (see above special note)
7636 -- Entity (Node4-Sem)
7637 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7638 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7639 -- Actions (List1) (set to No_List if no freeze actions)
7640 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7642 -- The Actions field holds actions associated with the freeze. These
7643 -- actions are elaborated at the point where the type is frozen.
7645 -- Note: in the case where a debug source file is generated, the Sloc
7646 -- for this node points to the FREEZE keyword in the Sprint file output.
7648 ---------------------------
7649 -- Freeze Generic Entity --
7650 ---------------------------
7652 -- The freeze point of an entity indicates the point at which the
7653 -- information needed to generate code for the entity is complete.
7654 -- The freeze node for an entity triggers expander activities, such as
7655 -- build initialization procedures, and backend activities, such as
7656 -- completing the elaboration of packages.
7658 -- For entities declared within a generic unit, for which no code is
7659 -- generated, the freeze point is not equally meaningful. However, in
7660 -- Ada 2012 several semantic checks on declarations must be delayed to
7661 -- the freeze point, and we need to include such a mark in the tree to
7662 -- trigger these checks. The Freeze_Generic_Entity node plays no other
7663 -- role, and is ignored by the expander and the back-end.
7665 -- Sprint syntax: freeze_generic entity-name
7667 -- N_Freeze_Generic_Entity
7668 -- Sloc points near freeze point
7669 -- Entity (Node4-Sem)
7671 --------------------------------
7672 -- Implicit Label Declaration --
7673 --------------------------------
7675 -- An implicit label declaration is created for every occurrence of a
7676 -- label on a statement or a label on a block or loop. It is chained
7677 -- in the declarations of the innermost enclosing block as specified
7678 -- in RM section 5.1 (3).
7680 -- The Defining_Identifier is the actual identifier for the statement
7681 -- identifier. Note that the occurrence of the label is a reference, NOT
7682 -- the defining occurrence. The defining occurrence occurs at the head
7683 -- of the innermost enclosing block, and is represented by this node.
7685 -- Note: from the grammar, this might better be called an implicit
7686 -- statement identifier declaration, but the term we choose seems
7687 -- friendlier, since at least informally statement identifiers are
7688 -- called labels in both cases (i.e. when used in labels, and when
7689 -- used as the identifiers of blocks and loops).
7691 -- Note: although this is logically a semantic node, since it does not
7692 -- correspond directly to a source syntax construction, these nodes are
7693 -- actually created by the parser in a post pass done just after parsing
7694 -- is complete, before semantic analysis is started (see Par.Labl).
7696 -- Sprint syntax: labelname : label;
7698 -- N_Implicit_Label_Declaration
7699 -- Sloc points to the << token for a statement identifier, or to the
7700 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
7701 -- Defining_Identifier (Node1)
7702 -- Label_Construct (Node2-Sem)
7704 -- Note: in the case where a debug source file is generated, the Sloc
7705 -- for this node points to the label name in the generated declaration.
7707 ---------------------
7708 -- Itype Reference --
7709 ---------------------
7711 -- This node is used to create a reference to an Itype. The only purpose
7712 -- is to make sure the Itype is defined if this is the first reference.
7714 -- A typical use of this node is when an Itype is to be referenced in
7715 -- two branches of an IF statement. In this case it is important that
7716 -- the first use of the Itype not be inside the conditional, since then
7717 -- it might not be defined if the other branch of the IF is taken, in
7718 -- the case where the definition generates elaboration code.
7720 -- The Itype field points to the referenced Itype
7722 -- Sprint syntax: reference itype-name
7724 -- N_Itype_Reference
7725 -- Sloc points to the node generating the reference
7726 -- Itype (Node1-Sem)
7728 -- Note: in the case where a debug source file is generated, the Sloc
7729 -- for this node points to the REFERENCE keyword in the file output.
7731 ---------------------
7732 -- Raise xxx Error --
7733 ---------------------
7735 -- One of these nodes is created during semantic analysis to replace
7736 -- a node for an expression that is determined to definitely raise
7737 -- the corresponding exception.
7739 -- The N_Raise_xxx_Error node may also stand alone in place
7740 -- of a declaration or statement, in which case it simply causes
7741 -- the exception to be raised (i.e. it is equivalent to a raise
7742 -- statement that raises the corresponding exception). This use
7743 -- is distinguished by the fact that the Etype in this case is
7744 -- Standard_Void_Type; in the subexpression case, the Etype is the
7745 -- same as the type of the subexpression which it replaces.
7747 -- If Condition is empty, then the raise is unconditional. If the
7748 -- Condition field is non-empty, it is a boolean expression which
7749 -- is first evaluated, and the exception is raised only if the
7750 -- value of the expression is True. In the unconditional case, the
7751 -- creation of this node is usually accompanied by a warning message
7752 -- error. The creation of this node will usually be accompanied by a
7753 -- message (unless it appears within the right operand of a short
7754 -- circuit form whose left argument is static and decisively
7755 -- eliminates elaboration of the raise operation. The condition field
7756 -- can ONLY be present when the node is used as a statement form, it
7757 -- may NOT be present in the case where the node appears within an
7758 -- expression.
7760 -- The exception is generated with a message that contains the
7761 -- file name and line number, and then appended text. The Reason
7762 -- code shows the text to be added. The Reason code is an element
7763 -- of the type Types.RT_Exception_Code, and indicates both the
7764 -- message to be added, and the exception to be raised (which must
7765 -- match the node type). The value is stored by storing a Uint which
7766 -- is the Pos value of the enumeration element in this type.
7768 -- Gigi restriction: This expander ensures that the type of the
7769 -- Condition field is always Standard.Boolean, even if the type
7770 -- in the source is some non-standard boolean type.
7772 -- Sprint syntax: [xxx_error "msg"]
7773 -- or: [xxx_error when condition "msg"]
7775 -- N_Raise_Constraint_Error
7776 -- Sloc references related construct
7777 -- Condition (Node1) (set to Empty if no condition)
7778 -- Reason (Uint3)
7779 -- plus fields for expression
7781 -- N_Raise_Program_Error
7782 -- Sloc references related construct
7783 -- Condition (Node1) (set to Empty if no condition)
7784 -- Reason (Uint3)
7785 -- plus fields for expression
7787 -- N_Raise_Storage_Error
7788 -- Sloc references related construct
7789 -- Condition (Node1) (set to Empty if no condition)
7790 -- Reason (Uint3)
7791 -- plus fields for expression
7793 -- Note: Sloc is copied from the expression generating the exception.
7794 -- In the case where a debug source file is generated, the Sloc for
7795 -- this node points to the left bracket in the Sprint file output.
7797 -- Note: the back end may be required to translate these nodes into
7798 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7800 ---------------------------------------------
7801 -- Optimization of Exception Raise to Goto --
7802 ---------------------------------------------
7804 -- In some cases, the front end will determine that any exception raised
7805 -- by the back end for a certain exception should be transformed into a
7806 -- goto statement.
7808 -- There are three kinds of exceptions raised by the back end (note that
7809 -- for this purpose we consider gigi to be part of the back end in the
7810 -- gcc case):
7812 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7813 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7814 -- 3. Other cases not specifically marked by the front end
7816 -- Normally all such exceptions are translated into calls to the proper
7817 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7818 -- and the exception message.
7820 -- The front end may determine that for a particular sequence of code,
7821 -- exceptions in any of these three categories for a particular builtin
7822 -- exception should result in a goto, rather than a call to Rcheck_xx.
7823 -- The exact sequence to be generated is:
7825 -- Local_Raise (exception'Identity);
7826 -- goto Label
7828 -- The front end marks such a sequence of code by bracketing it with
7829 -- push and pop nodes:
7831 -- N_Push_xxx_Label (referencing the label)
7832 -- ...
7833 -- (code where transformation is expected for exception xxx)
7834 -- ...
7835 -- N_Pop_xxx_Label
7837 -- The use of push/pop reflects the fact that such regions can properly
7838 -- nest, and one special case is a subregion in which no transformation
7839 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7840 -- Exception_Label field is Empty.
7842 -- N_Push_Constraint_Error_Label
7843 -- Sloc references first statement in region covered
7844 -- Exception_Label (Node5-Sem)
7846 -- N_Push_Program_Error_Label
7847 -- Sloc references first statement in region covered
7848 -- Exception_Label (Node5-Sem)
7850 -- N_Push_Storage_Error_Label
7851 -- Sloc references first statement in region covered
7852 -- Exception_Label (Node5-Sem)
7854 -- N_Pop_Constraint_Error_Label
7855 -- Sloc references last statement in region covered
7857 -- N_Pop_Program_Error_Label
7858 -- Sloc references last statement in region covered
7860 -- N_Pop_Storage_Error_Label
7861 -- Sloc references last statement in region covered
7863 ---------------
7864 -- Reference --
7865 ---------------
7867 -- For a number of purposes, we need to construct references to objects.
7868 -- These references are subsequently treated as normal access values.
7869 -- An example is the construction of the parameter block passed to a
7870 -- task entry. The N_Reference node is provided for this purpose. It is
7871 -- similar in effect to the use of the Unrestricted_Access attribute,
7872 -- and like Unrestricted_Access can be applied to objects which would
7873 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7874 -- objects which are not aliased, and slices). In addition it can be
7875 -- applied to composite type values as well as objects, including string
7876 -- values and aggregates.
7878 -- Note: we use the Prefix field for this expression so that the
7879 -- resulting node can be treated using common code with the attribute
7880 -- nodes for the 'Access and related attributes. Logically it would make
7881 -- more sense to call it an Expression field, but then we would have to
7882 -- special case the treatment of the N_Reference node.
7884 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7885 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7886 -- a temporary initialized to a N_Reference node in order to eliminate
7887 -- superfluous access checks.
7889 -- Sprint syntax: prefix'reference
7891 -- N_Reference
7892 -- Sloc is copied from the expression
7893 -- Prefix (Node3)
7894 -- plus fields for expression
7896 -- Note: in the case where a debug source file is generated, the Sloc
7897 -- for this node points to the quote in the Sprint file output.
7899 ----------------
7900 -- SCIL Nodes --
7901 ----------------
7903 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
7904 -- is active. They are only generated if SCIL generation is enabled.
7905 -- A standard tree-walk will not encounter these nodes even if they
7906 -- are present; these nodes are only accessible via the function
7907 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
7908 -- semantics.
7910 -- Sprint syntax: [ <node kind> ]
7911 -- No semantic field values are displayed.
7913 -- N_SCIL_Dispatch_Table_Tag_Init
7914 -- Sloc references a node for a tag initialization
7915 -- SCIL_Entity (Node4-Sem)
7917 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
7918 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
7919 -- the declaration of the dispatch table for a tagged type.
7921 -- N_SCIL_Dispatching_Call
7922 -- Sloc references the node of a dispatching call
7923 -- SCIL_Target_Prim (Node2-Sem)
7924 -- SCIL_Entity (Node4-Sem)
7925 -- SCIL_Controlling_Tag (Node5-Sem)
7927 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
7928 -- with the N_Procedure_Call or N_Function_Call node (or a rewriting
7929 -- thereof) corresponding to a dispatching call.
7931 -- N_SCIL_Membership_Test
7932 -- Sloc references the node of a membership test
7933 -- SCIL_Tag_Value (Node5-Sem)
7934 -- SCIL_Entity (Node4-Sem)
7936 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
7937 -- with the N_In node (or a rewriting thereof) corresponding to a
7938 -- classwide membership test.
7940 --------------------------
7941 -- Unchecked Expression --
7942 --------------------------
7944 -- An unchecked expression is one that must be analyzed and resolved
7945 -- with all checks off, regardless of the current setting of scope
7946 -- suppress flags.
7948 -- Sprint syntax: `(expression)
7950 -- Note: this node is always removed from the tree (and replaced by
7951 -- its constituent expression) on completion of analysis, so it only
7952 -- appears in intermediate trees, and will never be seen by Gigi.
7954 -- N_Unchecked_Expression
7955 -- Sloc is a copy of the Sloc of the expression
7956 -- Expression (Node3)
7957 -- plus fields for expression
7959 -- Note: in the case where a debug source file is generated, the Sloc
7960 -- for this node points to the back quote in the Sprint file output.
7962 -------------------------------
7963 -- Unchecked Type Conversion --
7964 -------------------------------
7966 -- An unchecked type conversion node represents the semantic action
7967 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7968 -- It is generated as a result of actual use of Unchecked_Conversion
7969 -- and also the expander generates unchecked type conversion nodes
7970 -- directly for expansion of complex semantic actions.
7972 -- Note: an unchecked type conversion is a variable as far as the
7973 -- semantics are concerned, which is convenient for the expander.
7974 -- This does not change what Ada source programs are legal, since
7975 -- clearly a function call to an instantiation of Unchecked_Conversion
7976 -- is not a variable in any case.
7978 -- Sprint syntax: subtype-mark!(expression)
7980 -- N_Unchecked_Type_Conversion
7981 -- Sloc points to related node in source
7982 -- Subtype_Mark (Node4)
7983 -- Expression (Node3)
7984 -- Kill_Range_Check (Flag11-Sem)
7985 -- No_Truncation (Flag17-Sem)
7986 -- plus fields for expression
7988 -- Note: in the case where a debug source file is generated, the Sloc
7989 -- for this node points to the exclamation in the Sprint file output.
7991 -----------------------------------
7992 -- Validate_Unchecked_Conversion --
7993 -----------------------------------
7995 -- The front end does most of the validation of unchecked conversion,
7996 -- including checking sizes (this is done after the back end is called
7997 -- to take advantage of back-annotation of calculated sizes).
7999 -- The front end also deals with specific cases that are not allowed
8000 -- e.g. involving unconstrained array types.
8002 -- For the case of the standard gigi backend, this means that all
8003 -- checks are done in the front end.
8005 -- However, in the case of specialized back-ends, notably the JVM
8006 -- backend for JGNAT, additional requirements and restrictions apply
8007 -- to unchecked conversion, and these are most conveniently performed
8008 -- in the specialized back-end.
8010 -- To accommodate this requirement, for such back ends, the following
8011 -- special node is generated recording an unchecked conversion that
8012 -- needs to be validated. The back end should post an appropriate
8013 -- error message if the unchecked conversion is invalid or warrants
8014 -- a special warning message.
8016 -- Source_Type and Target_Type point to the entities for the two
8017 -- types involved in the unchecked conversion instantiation that
8018 -- is to be validated.
8020 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8022 -- N_Validate_Unchecked_Conversion
8023 -- Sloc points to instantiation (location for warning message)
8024 -- Source_Type (Node1-Sem)
8025 -- Target_Type (Node2-Sem)
8027 -- Note: in the case where a debug source file is generated, the Sloc
8028 -- for this node points to the VALIDATE keyword in the file output.
8030 -----------
8031 -- Empty --
8032 -----------
8034 -- Used as the contents of the Nkind field of the dummy Empty node
8035 -- and in some other situations to indicate an uninitialized value.
8037 -- N_Empty
8038 -- Chars (Name1) is set to No_Name
8040 -----------
8041 -- Error --
8042 -----------
8044 -- Used as the contents of the Nkind field of the dummy Error node.
8045 -- Has an Etype field, which gets set to Any_Type later on, to help
8046 -- error recovery (Error_Posted is also set in the Error node).
8048 -- N_Error
8049 -- Chars (Name1) is set to Error_Name
8050 -- Etype (Node5-Sem)
8052 --------------------------
8053 -- Node Type Definition --
8054 --------------------------
8056 -- The following is the definition of the Node_Kind type. As previously
8057 -- discussed, this is separated off to allow rearrangement of the order to
8058 -- facilitate definition of subtype ranges. The comments show the subtype
8059 -- classes which apply to each set of node kinds. The first entry in the
8060 -- comment characterizes the following list of nodes.
8062 type Node_Kind is (
8063 N_Unused_At_Start,
8065 -- N_Representation_Clause
8067 N_At_Clause,
8068 N_Component_Clause,
8069 N_Enumeration_Representation_Clause,
8070 N_Mod_Clause,
8071 N_Record_Representation_Clause,
8073 -- N_Representation_Clause, N_Has_Chars
8075 N_Attribute_Definition_Clause,
8077 -- N_Has_Chars
8079 N_Empty,
8080 N_Pragma_Argument_Association,
8082 -- N_Has_Etype, N_Has_Chars
8084 -- Note: of course N_Error does not really have Etype or Chars fields,
8085 -- and any attempt to access these fields in N_Error will cause an
8086 -- error, but historically this always has been positioned so that an
8087 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8088 -- Most likely this makes coding easier somewhere but still seems
8089 -- undesirable. To be investigated some time ???
8091 N_Error,
8093 -- N_Entity, N_Has_Etype, N_Has_Chars
8095 N_Defining_Character_Literal,
8096 N_Defining_Identifier,
8097 N_Defining_Operator_Symbol,
8099 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8101 N_Expanded_Name,
8103 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8104 -- N_Has_Chars, N_Has_Entity
8106 N_Identifier,
8107 N_Operator_Symbol,
8109 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8110 -- N_Has_Chars, N_Has_Entity
8112 N_Character_Literal,
8114 -- N_Binary_Op, N_Op, N_Subexpr,
8115 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8117 N_Op_Add,
8118 N_Op_Concat,
8119 N_Op_Expon,
8120 N_Op_Subtract,
8122 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
8123 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8125 N_Op_Divide,
8126 N_Op_Mod,
8127 N_Op_Multiply,
8128 N_Op_Rem,
8130 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8131 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8133 N_Op_And,
8135 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8136 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8138 N_Op_Eq,
8139 N_Op_Ge,
8140 N_Op_Gt,
8141 N_Op_Le,
8142 N_Op_Lt,
8143 N_Op_Ne,
8145 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8146 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8148 N_Op_Or,
8149 N_Op_Xor,
8151 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8152 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8154 N_Op_Rotate_Left,
8155 N_Op_Rotate_Right,
8156 N_Op_Shift_Left,
8157 N_Op_Shift_Right,
8158 N_Op_Shift_Right_Arithmetic,
8160 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8161 -- N_Has_Chars, N_Has_Entity
8163 N_Op_Abs,
8164 N_Op_Minus,
8165 N_Op_Not,
8166 N_Op_Plus,
8168 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8170 N_Attribute_Reference,
8172 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8174 N_In,
8175 N_Not_In,
8177 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8179 N_And_Then,
8180 N_Or_Else,
8182 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8184 N_Function_Call,
8185 N_Procedure_Call_Statement,
8187 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8189 N_Raise_Constraint_Error,
8190 N_Raise_Program_Error,
8191 N_Raise_Storage_Error,
8193 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8195 N_Integer_Literal,
8196 N_Real_Literal,
8197 N_String_Literal,
8199 -- N_Subexpr, N_Has_Etype
8201 N_Explicit_Dereference,
8202 N_Expression_With_Actions,
8203 N_If_Expression,
8204 N_Indexed_Component,
8205 N_Null,
8206 N_Qualified_Expression,
8207 N_Quantified_Expression,
8208 N_Aggregate,
8209 N_Allocator,
8210 N_Case_Expression,
8211 N_Extension_Aggregate,
8212 N_Raise_Expression,
8213 N_Range,
8214 N_Reference,
8215 N_Selected_Component,
8216 N_Slice,
8217 N_Type_Conversion,
8218 N_Unchecked_Expression,
8219 N_Unchecked_Type_Conversion,
8221 -- N_Has_Etype
8223 N_Subtype_Indication,
8225 -- N_Declaration
8227 N_Component_Declaration,
8228 N_Entry_Declaration,
8229 N_Expression_Function,
8230 N_Formal_Object_Declaration,
8231 N_Formal_Type_Declaration,
8232 N_Full_Type_Declaration,
8233 N_Incomplete_Type_Declaration,
8234 N_Iterator_Specification,
8235 N_Loop_Parameter_Specification,
8236 N_Object_Declaration,
8237 N_Protected_Type_Declaration,
8238 N_Private_Extension_Declaration,
8239 N_Private_Type_Declaration,
8240 N_Subtype_Declaration,
8242 -- N_Subprogram_Specification, N_Declaration
8244 N_Function_Specification,
8245 N_Procedure_Specification,
8247 -- N_Access_To_Subprogram_Definition
8249 N_Access_Function_Definition,
8250 N_Access_Procedure_Definition,
8252 -- N_Later_Decl_Item
8254 N_Task_Type_Declaration,
8256 -- N_Body_Stub, N_Later_Decl_Item
8258 N_Package_Body_Stub,
8259 N_Protected_Body_Stub,
8260 N_Subprogram_Body_Stub,
8261 N_Task_Body_Stub,
8263 -- N_Generic_Instantiation, N_Later_Decl_Item
8264 -- N_Subprogram_Instantiation
8266 N_Function_Instantiation,
8267 N_Procedure_Instantiation,
8269 -- N_Generic_Instantiation, N_Later_Decl_Item
8271 N_Package_Instantiation,
8273 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8275 N_Package_Body,
8276 N_Subprogram_Body,
8278 -- N_Later_Decl_Item, N_Proper_Body
8280 N_Protected_Body,
8281 N_Task_Body,
8283 -- N_Later_Decl_Item
8285 N_Implicit_Label_Declaration,
8286 N_Package_Declaration,
8287 N_Single_Task_Declaration,
8288 N_Subprogram_Declaration,
8289 N_Use_Package_Clause,
8291 -- N_Generic_Declaration, N_Later_Decl_Item
8293 N_Generic_Package_Declaration,
8294 N_Generic_Subprogram_Declaration,
8296 -- N_Array_Type_Definition
8298 N_Constrained_Array_Definition,
8299 N_Unconstrained_Array_Definition,
8301 -- N_Renaming_Declaration
8303 N_Exception_Renaming_Declaration,
8304 N_Object_Renaming_Declaration,
8305 N_Package_Renaming_Declaration,
8306 N_Subprogram_Renaming_Declaration,
8308 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8310 N_Generic_Function_Renaming_Declaration,
8311 N_Generic_Package_Renaming_Declaration,
8312 N_Generic_Procedure_Renaming_Declaration,
8314 -- N_Statement_Other_Than_Procedure_Call
8316 N_Abort_Statement,
8317 N_Accept_Statement,
8318 N_Assignment_Statement,
8319 N_Asynchronous_Select,
8320 N_Block_Statement,
8321 N_Case_Statement,
8322 N_Code_Statement,
8323 N_Compound_Statement,
8324 N_Conditional_Entry_Call,
8326 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8328 N_Delay_Relative_Statement,
8329 N_Delay_Until_Statement,
8331 -- N_Statement_Other_Than_Procedure_Call
8333 N_Entry_Call_Statement,
8334 N_Free_Statement,
8335 N_Goto_Statement,
8336 N_Loop_Statement,
8337 N_Null_Statement,
8338 N_Raise_Statement,
8339 N_Requeue_Statement,
8340 N_Simple_Return_Statement,
8341 N_Extended_Return_Statement,
8342 N_Selective_Accept,
8343 N_Timed_Entry_Call,
8345 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8347 N_Exit_Statement,
8348 N_If_Statement,
8350 -- N_Has_Condition
8352 N_Accept_Alternative,
8353 N_Delay_Alternative,
8354 N_Elsif_Part,
8355 N_Entry_Body_Formal_Part,
8356 N_Iteration_Scheme,
8357 N_Terminate_Alternative,
8359 -- N_Formal_Subprogram_Declaration
8361 N_Formal_Abstract_Subprogram_Declaration,
8362 N_Formal_Concrete_Subprogram_Declaration,
8364 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8366 N_Push_Constraint_Error_Label,
8367 N_Push_Program_Error_Label,
8368 N_Push_Storage_Error_Label,
8370 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8372 N_Pop_Constraint_Error_Label,
8373 N_Pop_Program_Error_Label,
8374 N_Pop_Storage_Error_Label,
8376 -- SCIL nodes
8378 N_SCIL_Dispatch_Table_Tag_Init,
8379 N_SCIL_Dispatching_Call,
8380 N_SCIL_Membership_Test,
8382 -- Other nodes (not part of any subtype class)
8384 N_Abortable_Part,
8385 N_Abstract_Subprogram_Declaration,
8386 N_Access_Definition,
8387 N_Access_To_Object_Definition,
8388 N_Aspect_Specification,
8389 N_Case_Expression_Alternative,
8390 N_Case_Statement_Alternative,
8391 N_Compilation_Unit,
8392 N_Compilation_Unit_Aux,
8393 N_Component_Association,
8394 N_Component_Definition,
8395 N_Component_List,
8396 N_Contract,
8397 N_Derived_Type_Definition,
8398 N_Decimal_Fixed_Point_Definition,
8399 N_Defining_Program_Unit_Name,
8400 N_Delta_Constraint,
8401 N_Designator,
8402 N_Digits_Constraint,
8403 N_Discriminant_Association,
8404 N_Discriminant_Specification,
8405 N_Enumeration_Type_Definition,
8406 N_Entry_Body,
8407 N_Entry_Call_Alternative,
8408 N_Entry_Index_Specification,
8409 N_Exception_Declaration,
8410 N_Exception_Handler,
8411 N_Floating_Point_Definition,
8412 N_Formal_Decimal_Fixed_Point_Definition,
8413 N_Formal_Derived_Type_Definition,
8414 N_Formal_Discrete_Type_Definition,
8415 N_Formal_Floating_Point_Definition,
8416 N_Formal_Modular_Type_Definition,
8417 N_Formal_Ordinary_Fixed_Point_Definition,
8418 N_Formal_Package_Declaration,
8419 N_Formal_Private_Type_Definition,
8420 N_Formal_Incomplete_Type_Definition,
8421 N_Formal_Signed_Integer_Type_Definition,
8422 N_Freeze_Entity,
8423 N_Freeze_Generic_Entity,
8424 N_Generic_Association,
8425 N_Handled_Sequence_Of_Statements,
8426 N_Index_Or_Discriminant_Constraint,
8427 N_Itype_Reference,
8428 N_Label,
8429 N_Modular_Type_Definition,
8430 N_Number_Declaration,
8431 N_Ordinary_Fixed_Point_Definition,
8432 N_Others_Choice,
8433 N_Package_Specification,
8434 N_Parameter_Association,
8435 N_Parameter_Specification,
8436 N_Pragma,
8437 N_Protected_Definition,
8438 N_Range_Constraint,
8439 N_Real_Range_Specification,
8440 N_Record_Definition,
8441 N_Signed_Integer_Type_Definition,
8442 N_Single_Protected_Declaration,
8443 N_Subunit,
8444 N_Task_Definition,
8445 N_Triggering_Alternative,
8446 N_Use_Type_Clause,
8447 N_Validate_Unchecked_Conversion,
8448 N_Variant,
8449 N_Variant_Part,
8450 N_With_Clause,
8451 N_Unused_At_End);
8453 for Node_Kind'Size use 8;
8454 -- The data structures in Atree assume this
8456 ----------------------------
8457 -- Node Class Definitions --
8458 ----------------------------
8460 subtype N_Access_To_Subprogram_Definition is Node_Kind range
8461 N_Access_Function_Definition ..
8462 N_Access_Procedure_Definition;
8464 subtype N_Array_Type_Definition is Node_Kind range
8465 N_Constrained_Array_Definition ..
8466 N_Unconstrained_Array_Definition;
8468 subtype N_Binary_Op is Node_Kind range
8469 N_Op_Add ..
8470 N_Op_Shift_Right_Arithmetic;
8472 subtype N_Body_Stub is Node_Kind range
8473 N_Package_Body_Stub ..
8474 N_Task_Body_Stub;
8476 subtype N_Declaration is Node_Kind range
8477 N_Component_Declaration ..
8478 N_Procedure_Specification;
8479 -- Note: this includes all constructs normally thought of as declarations
8480 -- except those which are separately grouped as later declarations.
8482 subtype N_Delay_Statement is Node_Kind range
8483 N_Delay_Relative_Statement ..
8484 N_Delay_Until_Statement;
8486 subtype N_Direct_Name is Node_Kind range
8487 N_Identifier ..
8488 N_Character_Literal;
8490 subtype N_Entity is Node_Kind range
8491 N_Defining_Character_Literal ..
8492 N_Defining_Operator_Symbol;
8494 subtype N_Formal_Subprogram_Declaration is Node_Kind range
8495 N_Formal_Abstract_Subprogram_Declaration ..
8496 N_Formal_Concrete_Subprogram_Declaration;
8498 subtype N_Generic_Declaration is Node_Kind range
8499 N_Generic_Package_Declaration ..
8500 N_Generic_Subprogram_Declaration;
8502 subtype N_Generic_Instantiation is Node_Kind range
8503 N_Function_Instantiation ..
8504 N_Package_Instantiation;
8506 subtype N_Generic_Renaming_Declaration is Node_Kind range
8507 N_Generic_Function_Renaming_Declaration ..
8508 N_Generic_Procedure_Renaming_Declaration;
8510 subtype N_Has_Chars is Node_Kind range
8511 N_Attribute_Definition_Clause ..
8512 N_Op_Plus;
8514 subtype N_Has_Entity is Node_Kind range
8515 N_Expanded_Name ..
8516 N_Attribute_Reference;
8517 -- Nodes that have Entity fields
8518 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
8519 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
8521 subtype N_Has_Etype is Node_Kind range
8522 N_Error ..
8523 N_Subtype_Indication;
8525 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
8526 N_Op_Divide ..
8527 N_Op_Rem;
8529 subtype N_Multiplying_Operator is Node_Kind range
8530 N_Op_Divide ..
8531 N_Op_Rem;
8533 subtype N_Later_Decl_Item is Node_Kind range
8534 N_Task_Type_Declaration ..
8535 N_Generic_Subprogram_Declaration;
8536 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
8537 -- only those items which can appear as later declarative items. This also
8538 -- includes N_Implicit_Label_Declaration which is not specifically in the
8539 -- grammar but may appear as a valid later declarative items. It does NOT
8540 -- include N_Pragma which can also appear among later declarative items.
8541 -- It does however include N_Protected_Body, which is a bit peculiar, but
8542 -- harmless since this cannot appear in Ada 83 mode anyway.
8544 subtype N_Membership_Test is Node_Kind range
8545 N_In ..
8546 N_Not_In;
8548 subtype N_Numeric_Or_String_Literal is Node_Kind range
8549 N_Integer_Literal ..
8550 N_String_Literal;
8552 subtype N_Op is Node_Kind range
8553 N_Op_Add ..
8554 N_Op_Plus;
8556 subtype N_Op_Boolean is Node_Kind range
8557 N_Op_And ..
8558 N_Op_Xor;
8559 -- Binary operators which take operands of a boolean type, and yield
8560 -- a result of a boolean type.
8562 subtype N_Op_Compare is Node_Kind range
8563 N_Op_Eq ..
8564 N_Op_Ne;
8566 subtype N_Op_Shift is Node_Kind range
8567 N_Op_Rotate_Left ..
8568 N_Op_Shift_Right_Arithmetic;
8570 subtype N_Proper_Body is Node_Kind range
8571 N_Package_Body ..
8572 N_Task_Body;
8574 subtype N_Push_xxx_Label is Node_Kind range
8575 N_Push_Constraint_Error_Label ..
8576 N_Push_Storage_Error_Label;
8578 subtype N_Pop_xxx_Label is Node_Kind range
8579 N_Pop_Constraint_Error_Label ..
8580 N_Pop_Storage_Error_Label;
8582 subtype N_Push_Pop_xxx_Label is Node_Kind range
8583 N_Push_Constraint_Error_Label ..
8584 N_Pop_Storage_Error_Label;
8586 subtype N_Raise_xxx_Error is Node_Kind range
8587 N_Raise_Constraint_Error ..
8588 N_Raise_Storage_Error;
8590 subtype N_Renaming_Declaration is Node_Kind range
8591 N_Exception_Renaming_Declaration ..
8592 N_Generic_Procedure_Renaming_Declaration;
8594 subtype N_Representation_Clause is Node_Kind range
8595 N_At_Clause ..
8596 N_Attribute_Definition_Clause;
8598 subtype N_Short_Circuit is Node_Kind range
8599 N_And_Then ..
8600 N_Or_Else;
8602 subtype N_SCIL_Node is Node_Kind range
8603 N_SCIL_Dispatch_Table_Tag_Init ..
8604 N_SCIL_Membership_Test;
8606 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8607 N_Abort_Statement ..
8608 N_If_Statement;
8609 -- Note that this includes all statement types except for the cases of the
8610 -- N_Procedure_Call_Statement which is considered to be a subexpression
8611 -- (since overloading is possible, so it needs to go through the normal
8612 -- overloading resolution for expressions).
8614 subtype N_Subprogram_Call is Node_Kind range
8615 N_Function_Call ..
8616 N_Procedure_Call_Statement;
8618 subtype N_Subprogram_Instantiation is Node_Kind range
8619 N_Function_Instantiation ..
8620 N_Procedure_Instantiation;
8622 subtype N_Has_Condition is Node_Kind range
8623 N_Exit_Statement ..
8624 N_Terminate_Alternative;
8625 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8627 subtype N_Subexpr is Node_Kind range
8628 N_Expanded_Name ..
8629 N_Unchecked_Type_Conversion;
8630 -- Nodes with expression fields
8632 subtype N_Subprogram_Specification is Node_Kind range
8633 N_Function_Specification ..
8634 N_Procedure_Specification;
8636 subtype N_Unary_Op is Node_Kind range
8637 N_Op_Abs ..
8638 N_Op_Plus;
8640 subtype N_Unit_Body is Node_Kind range
8641 N_Package_Body ..
8642 N_Subprogram_Body;
8644 ---------------------------
8645 -- Node Access Functions --
8646 ---------------------------
8648 -- The following functions return the contents of the indicated field of
8649 -- the node referenced by the argument, which is a Node_Id. They provide
8650 -- logical access to fields in the node which could be accessed using the
8651 -- Atree.Unchecked_Access package, but the idea is always to use these
8652 -- higher level routines which preserve strong typing. In debug mode,
8653 -- these routines check that they are being applied to an appropriate
8654 -- node, as well as checking that the node is in range.
8656 function ABE_Is_Certain
8657 (N : Node_Id) return Boolean; -- Flag18
8659 function Abort_Present
8660 (N : Node_Id) return Boolean; -- Flag15
8662 function Abortable_Part
8663 (N : Node_Id) return Node_Id; -- Node2
8665 function Abstract_Present
8666 (N : Node_Id) return Boolean; -- Flag4
8668 function Accept_Handler_Records
8669 (N : Node_Id) return List_Id; -- List5
8671 function Accept_Statement
8672 (N : Node_Id) return Node_Id; -- Node2
8674 function Access_Definition
8675 (N : Node_Id) return Node_Id; -- Node3
8677 function Access_To_Subprogram_Definition
8678 (N : Node_Id) return Node_Id; -- Node3
8680 function Access_Types_To_Process
8681 (N : Node_Id) return Elist_Id; -- Elist2
8683 function Actions
8684 (N : Node_Id) return List_Id; -- List1
8686 function Activation_Chain_Entity
8687 (N : Node_Id) return Node_Id; -- Node3
8689 function Acts_As_Spec
8690 (N : Node_Id) return Boolean; -- Flag4
8692 function Actual_Designated_Subtype
8693 (N : Node_Id) return Node_Id; -- Node4
8695 function Address_Warning_Posted
8696 (N : Node_Id) return Boolean; -- Flag18
8698 function Aggregate_Bounds
8699 (N : Node_Id) return Node_Id; -- Node3
8701 function Aliased_Present
8702 (N : Node_Id) return Boolean; -- Flag4
8704 function All_Others
8705 (N : Node_Id) return Boolean; -- Flag11
8707 function All_Present
8708 (N : Node_Id) return Boolean; -- Flag15
8710 function Alternatives
8711 (N : Node_Id) return List_Id; -- List4
8713 function Ancestor_Part
8714 (N : Node_Id) return Node_Id; -- Node3
8716 function Atomic_Sync_Required
8717 (N : Node_Id) return Boolean; -- Flag14
8719 function Array_Aggregate
8720 (N : Node_Id) return Node_Id; -- Node3
8722 function Aspect_Rep_Item
8723 (N : Node_Id) return Node_Id; -- Node2
8725 function Assignment_OK
8726 (N : Node_Id) return Boolean; -- Flag15
8728 function Associated_Node
8729 (N : Node_Id) return Node_Id; -- Node4
8731 function At_End_Proc
8732 (N : Node_Id) return Node_Id; -- Node1
8734 function Attribute_Name
8735 (N : Node_Id) return Name_Id; -- Name2
8737 function Aux_Decls_Node
8738 (N : Node_Id) return Node_Id; -- Node5
8740 function Backwards_OK
8741 (N : Node_Id) return Boolean; -- Flag6
8743 function Bad_Is_Detected
8744 (N : Node_Id) return Boolean; -- Flag15
8746 function By_Ref
8747 (N : Node_Id) return Boolean; -- Flag5
8749 function Body_Required
8750 (N : Node_Id) return Boolean; -- Flag13
8752 function Body_To_Inline
8753 (N : Node_Id) return Node_Id; -- Node3
8755 function Box_Present
8756 (N : Node_Id) return Boolean; -- Flag15
8758 function Char_Literal_Value
8759 (N : Node_Id) return Uint; -- Uint2
8761 function Chars
8762 (N : Node_Id) return Name_Id; -- Name1
8764 function Check_Address_Alignment
8765 (N : Node_Id) return Boolean; -- Flag11
8767 function Choice_Parameter
8768 (N : Node_Id) return Node_Id; -- Node2
8770 function Choices
8771 (N : Node_Id) return List_Id; -- List1
8773 function Class_Present
8774 (N : Node_Id) return Boolean; -- Flag6
8776 function Classifications
8777 (N : Node_Id) return Node_Id; -- Node3
8779 function Cleanup_Actions
8780 (N : Node_Id) return List_Id; -- List5
8782 function Comes_From_Extended_Return_Statement
8783 (N : Node_Id) return Boolean; -- Flag18
8785 function Compile_Time_Known_Aggregate
8786 (N : Node_Id) return Boolean; -- Flag18
8788 function Component_Associations
8789 (N : Node_Id) return List_Id; -- List2
8791 function Component_Clauses
8792 (N : Node_Id) return List_Id; -- List3
8794 function Component_Definition
8795 (N : Node_Id) return Node_Id; -- Node4
8797 function Component_Items
8798 (N : Node_Id) return List_Id; -- List3
8800 function Component_List
8801 (N : Node_Id) return Node_Id; -- Node1
8803 function Component_Name
8804 (N : Node_Id) return Node_Id; -- Node1
8806 function Componentwise_Assignment
8807 (N : Node_Id) return Boolean; -- Flag14
8809 function Condition
8810 (N : Node_Id) return Node_Id; -- Node1
8812 function Condition_Actions
8813 (N : Node_Id) return List_Id; -- List3
8815 function Config_Pragmas
8816 (N : Node_Id) return List_Id; -- List4
8818 function Constant_Present
8819 (N : Node_Id) return Boolean; -- Flag17
8821 function Constraint
8822 (N : Node_Id) return Node_Id; -- Node3
8824 function Constraints
8825 (N : Node_Id) return List_Id; -- List1
8827 function Context_Installed
8828 (N : Node_Id) return Boolean; -- Flag13
8830 function Context_Pending
8831 (N : Node_Id) return Boolean; -- Flag16
8833 function Context_Items
8834 (N : Node_Id) return List_Id; -- List1
8836 function Contract_Test_Cases
8837 (N : Node_Id) return Node_Id; -- Node2
8839 function Controlling_Argument
8840 (N : Node_Id) return Node_Id; -- Node1
8842 function Conversion_OK
8843 (N : Node_Id) return Boolean; -- Flag14
8845 function Convert_To_Return_False
8846 (N : Node_Id) return Boolean; -- Flag13
8848 function Corresponding_Aspect
8849 (N : Node_Id) return Node_Id; -- Node3
8851 function Corresponding_Body
8852 (N : Node_Id) return Node_Id; -- Node5
8854 function Corresponding_Formal_Spec
8855 (N : Node_Id) return Node_Id; -- Node3
8857 function Corresponding_Generic_Association
8858 (N : Node_Id) return Node_Id; -- Node5
8860 function Corresponding_Integer_Value
8861 (N : Node_Id) return Uint; -- Uint4
8863 function Corresponding_Spec
8864 (N : Node_Id) return Node_Id; -- Node5
8866 function Corresponding_Spec_Of_Stub
8867 (N : Node_Id) return Node_Id; -- Node2
8869 function Corresponding_Stub
8870 (N : Node_Id) return Node_Id; -- Node3
8872 function Dcheck_Function
8873 (N : Node_Id) return Entity_Id; -- Node5
8875 function Declarations
8876 (N : Node_Id) return List_Id; -- List2
8878 function Default_Expression
8879 (N : Node_Id) return Node_Id; -- Node5
8881 function Default_Storage_Pool
8882 (N : Node_Id) return Node_Id; -- Node3
8884 function Default_Name
8885 (N : Node_Id) return Node_Id; -- Node2
8887 function Defining_Identifier
8888 (N : Node_Id) return Entity_Id; -- Node1
8890 function Defining_Unit_Name
8891 (N : Node_Id) return Node_Id; -- Node1
8893 function Delay_Alternative
8894 (N : Node_Id) return Node_Id; -- Node4
8896 function Delay_Statement
8897 (N : Node_Id) return Node_Id; -- Node2
8899 function Delta_Expression
8900 (N : Node_Id) return Node_Id; -- Node3
8902 function Digits_Expression
8903 (N : Node_Id) return Node_Id; -- Node2
8905 function Discr_Check_Funcs_Built
8906 (N : Node_Id) return Boolean; -- Flag11
8908 function Discrete_Choices
8909 (N : Node_Id) return List_Id; -- List4
8911 function Discrete_Range
8912 (N : Node_Id) return Node_Id; -- Node4
8914 function Discrete_Subtype_Definition
8915 (N : Node_Id) return Node_Id; -- Node4
8917 function Discrete_Subtype_Definitions
8918 (N : Node_Id) return List_Id; -- List2
8920 function Discriminant_Specifications
8921 (N : Node_Id) return List_Id; -- List4
8923 function Discriminant_Type
8924 (N : Node_Id) return Node_Id; -- Node5
8926 function Do_Accessibility_Check
8927 (N : Node_Id) return Boolean; -- Flag13
8929 function Do_Discriminant_Check
8930 (N : Node_Id) return Boolean; -- Flag1
8932 function Do_Division_Check
8933 (N : Node_Id) return Boolean; -- Flag13
8935 function Do_Length_Check
8936 (N : Node_Id) return Boolean; -- Flag4
8938 function Do_Overflow_Check
8939 (N : Node_Id) return Boolean; -- Flag17
8941 function Do_Range_Check
8942 (N : Node_Id) return Boolean; -- Flag9
8944 function Do_Storage_Check
8945 (N : Node_Id) return Boolean; -- Flag17
8947 function Do_Tag_Check
8948 (N : Node_Id) return Boolean; -- Flag13
8950 function Elaborate_All_Desirable
8951 (N : Node_Id) return Boolean; -- Flag9
8953 function Elaborate_All_Present
8954 (N : Node_Id) return Boolean; -- Flag14
8956 function Elaborate_Desirable
8957 (N : Node_Id) return Boolean; -- Flag11
8959 function Elaborate_Present
8960 (N : Node_Id) return Boolean; -- Flag4
8962 function Else_Actions
8963 (N : Node_Id) return List_Id; -- List3
8965 function Else_Statements
8966 (N : Node_Id) return List_Id; -- List4
8968 function Elsif_Parts
8969 (N : Node_Id) return List_Id; -- List3
8971 function Enclosing_Variant
8972 (N : Node_Id) return Node_Id; -- Node2
8974 function End_Label
8975 (N : Node_Id) return Node_Id; -- Node4
8977 function End_Span
8978 (N : Node_Id) return Uint; -- Uint5
8980 function Entity
8981 (N : Node_Id) return Node_Id; -- Node4
8983 function Entity_Or_Associated_Node
8984 (N : Node_Id) return Node_Id; -- Node4
8986 function Entry_Body_Formal_Part
8987 (N : Node_Id) return Node_Id; -- Node5
8989 function Entry_Call_Alternative
8990 (N : Node_Id) return Node_Id; -- Node1
8992 function Entry_Call_Statement
8993 (N : Node_Id) return Node_Id; -- Node1
8995 function Entry_Direct_Name
8996 (N : Node_Id) return Node_Id; -- Node1
8998 function Entry_Index
8999 (N : Node_Id) return Node_Id; -- Node5
9001 function Entry_Index_Specification
9002 (N : Node_Id) return Node_Id; -- Node4
9004 function Etype
9005 (N : Node_Id) return Node_Id; -- Node5
9007 function Exception_Choices
9008 (N : Node_Id) return List_Id; -- List4
9010 function Exception_Handlers
9011 (N : Node_Id) return List_Id; -- List5
9013 function Exception_Junk
9014 (N : Node_Id) return Boolean; -- Flag8
9016 function Exception_Label
9017 (N : Node_Id) return Node_Id; -- Node5
9019 function Explicit_Actual_Parameter
9020 (N : Node_Id) return Node_Id; -- Node3
9022 function Expansion_Delayed
9023 (N : Node_Id) return Boolean; -- Flag11
9025 function Explicit_Generic_Actual_Parameter
9026 (N : Node_Id) return Node_Id; -- Node1
9028 function Expression
9029 (N : Node_Id) return Node_Id; -- Node3
9031 function Expressions
9032 (N : Node_Id) return List_Id; -- List1
9034 function First_Bit
9035 (N : Node_Id) return Node_Id; -- Node3
9037 function First_Inlined_Subprogram
9038 (N : Node_Id) return Entity_Id; -- Node3
9040 function First_Name
9041 (N : Node_Id) return Boolean; -- Flag5
9043 function First_Named_Actual
9044 (N : Node_Id) return Node_Id; -- Node4
9046 function First_Real_Statement
9047 (N : Node_Id) return Node_Id; -- Node2
9049 function First_Subtype_Link
9050 (N : Node_Id) return Entity_Id; -- Node5
9052 function Float_Truncate
9053 (N : Node_Id) return Boolean; -- Flag11
9055 function Formal_Type_Definition
9056 (N : Node_Id) return Node_Id; -- Node3
9058 function Forwards_OK
9059 (N : Node_Id) return Boolean; -- Flag5
9061 function From_Aspect_Specification
9062 (N : Node_Id) return Boolean; -- Flag13
9064 function From_At_End
9065 (N : Node_Id) return Boolean; -- Flag4
9067 function From_At_Mod
9068 (N : Node_Id) return Boolean; -- Flag4
9070 function From_Conditional_Expression
9071 (N : Node_Id) return Boolean; -- Flag1
9073 function From_Default
9074 (N : Node_Id) return Boolean; -- Flag6
9076 function Generalized_Indexing
9077 (N : Node_Id) return Node_Id; -- Node4
9078 function Generic_Associations
9079 (N : Node_Id) return List_Id; -- List3
9081 function Generic_Formal_Declarations
9082 (N : Node_Id) return List_Id; -- List2
9084 function Generic_Parent
9085 (N : Node_Id) return Node_Id; -- Node5
9087 function Generic_Parent_Type
9088 (N : Node_Id) return Node_Id; -- Node4
9090 function Handled_Statement_Sequence
9091 (N : Node_Id) return Node_Id; -- Node4
9093 function Handler_List_Entry
9094 (N : Node_Id) return Node_Id; -- Node2
9096 function Has_Created_Identifier
9097 (N : Node_Id) return Boolean; -- Flag15
9099 function Has_Dereference_Action
9100 (N : Node_Id) return Boolean; -- Flag13
9102 function Has_Dynamic_Length_Check
9103 (N : Node_Id) return Boolean; -- Flag10
9105 function Has_Dynamic_Range_Check
9106 (N : Node_Id) return Boolean; -- Flag12
9108 function Has_Init_Expression
9109 (N : Node_Id) return Boolean; -- Flag14
9111 function Has_Local_Raise
9112 (N : Node_Id) return Boolean; -- Flag8
9114 function Has_No_Elaboration_Code
9115 (N : Node_Id) return Boolean; -- Flag17
9117 function Has_Pragma_Suppress_All
9118 (N : Node_Id) return Boolean; -- Flag14
9120 function Has_Private_View
9121 (N : Node_Id) return Boolean; -- Flag11
9123 function Has_Relative_Deadline_Pragma
9124 (N : Node_Id) return Boolean; -- Flag9
9126 function Has_Self_Reference
9127 (N : Node_Id) return Boolean; -- Flag13
9129 function Has_SP_Choice
9130 (N : Node_Id) return Boolean; -- Flag15
9132 function Has_Storage_Size_Pragma
9133 (N : Node_Id) return Boolean; -- Flag5
9135 function Has_Wide_Character
9136 (N : Node_Id) return Boolean; -- Flag11
9138 function Has_Wide_Wide_Character
9139 (N : Node_Id) return Boolean; -- Flag13
9141 function Header_Size_Added
9142 (N : Node_Id) return Boolean; -- Flag11
9144 function Hidden_By_Use_Clause
9145 (N : Node_Id) return Elist_Id; -- Elist4
9147 function High_Bound
9148 (N : Node_Id) return Node_Id; -- Node2
9150 function Identifier
9151 (N : Node_Id) return Node_Id; -- Node1
9153 function Interface_List
9154 (N : Node_Id) return List_Id; -- List2
9156 function Interface_Present
9157 (N : Node_Id) return Boolean; -- Flag16
9159 function Implicit_With
9160 (N : Node_Id) return Boolean; -- Flag16
9162 function Implicit_With_From_Instantiation
9163 (N : Node_Id) return Boolean; -- Flag12
9165 function Import_Interface_Present
9166 (N : Node_Id) return Boolean; -- Flag16
9168 function In_Present
9169 (N : Node_Id) return Boolean; -- Flag15
9171 function Includes_Infinities
9172 (N : Node_Id) return Boolean; -- Flag11
9174 function Incomplete_View
9175 (N : Node_Id) return Node_Id; -- Node2
9177 function Inherited_Discriminant
9178 (N : Node_Id) return Boolean; -- Flag13
9180 function Instance_Spec
9181 (N : Node_Id) return Node_Id; -- Node5
9183 function Intval
9184 (N : Node_Id) return Uint; -- Uint3
9186 function Is_Accessibility_Actual
9187 (N : Node_Id) return Boolean; -- Flag13
9189 function Is_Asynchronous_Call_Block
9190 (N : Node_Id) return Boolean; -- Flag7
9192 function Is_Boolean_Aspect
9193 (N : Node_Id) return Boolean; -- Flag16
9195 function Is_Checked
9196 (N : Node_Id) return Boolean; -- Flag11
9198 function Is_Component_Left_Opnd
9199 (N : Node_Id) return Boolean; -- Flag13
9201 function Is_Component_Right_Opnd
9202 (N : Node_Id) return Boolean; -- Flag14
9204 function Is_Controlling_Actual
9205 (N : Node_Id) return Boolean; -- Flag16
9207 function Is_Delayed_Aspect
9208 (N : Node_Id) return Boolean; -- Flag14
9210 function Is_Disabled
9211 (N : Node_Id) return Boolean; -- Flag15
9213 function Is_Dynamic_Coextension
9214 (N : Node_Id) return Boolean; -- Flag18
9216 function Is_Elsif
9217 (N : Node_Id) return Boolean; -- Flag13
9219 function Is_Entry_Barrier_Function
9220 (N : Node_Id) return Boolean; -- Flag8
9222 function Is_Expanded_Build_In_Place_Call
9223 (N : Node_Id) return Boolean; -- Flag11
9225 function Is_Finalization_Wrapper
9226 (N : Node_Id) return Boolean; -- Flag9
9228 function Is_Folded_In_Parser
9229 (N : Node_Id) return Boolean; -- Flag4
9231 function Is_Ignored
9232 (N : Node_Id) return Boolean; -- Flag9
9234 function Is_In_Discriminant_Check
9235 (N : Node_Id) return Boolean; -- Flag11
9237 function Is_Inherited
9238 (N : Node_Id) return Boolean; -- Flag4
9240 function Is_Machine_Number
9241 (N : Node_Id) return Boolean; -- Flag11
9243 function Is_Null_Loop
9244 (N : Node_Id) return Boolean; -- Flag16
9246 function Is_Overloaded
9247 (N : Node_Id) return Boolean; -- Flag5
9249 function Is_Power_Of_2_For_Shift
9250 (N : Node_Id) return Boolean; -- Flag13
9252 function Is_Prefixed_Call
9253 (N : Node_Id) return Boolean; -- Flag17
9255 function Is_Protected_Subprogram_Body
9256 (N : Node_Id) return Boolean; -- Flag7
9258 function Is_Static_Coextension
9259 (N : Node_Id) return Boolean; -- Flag14
9261 function Is_Static_Expression
9262 (N : Node_Id) return Boolean; -- Flag6
9264 function Is_Subprogram_Descriptor
9265 (N : Node_Id) return Boolean; -- Flag16
9267 function Is_Task_Allocation_Block
9268 (N : Node_Id) return Boolean; -- Flag6
9270 function Is_Task_Master
9271 (N : Node_Id) return Boolean; -- Flag5
9273 function Iteration_Scheme
9274 (N : Node_Id) return Node_Id; -- Node2
9276 function Iterator_Specification
9277 (N : Node_Id) return Node_Id; -- Node2
9279 function Itype
9280 (N : Node_Id) return Entity_Id; -- Node1
9282 function Kill_Range_Check
9283 (N : Node_Id) return Boolean; -- Flag11
9285 function Label_Construct
9286 (N : Node_Id) return Node_Id; -- Node2
9288 function Left_Opnd
9289 (N : Node_Id) return Node_Id; -- Node2
9291 function Last_Bit
9292 (N : Node_Id) return Node_Id; -- Node4
9294 function Last_Name
9295 (N : Node_Id) return Boolean; -- Flag6
9297 function Library_Unit
9298 (N : Node_Id) return Node_Id; -- Node4
9300 function Limited_View_Installed
9301 (N : Node_Id) return Boolean; -- Flag18
9303 function Limited_Present
9304 (N : Node_Id) return Boolean; -- Flag17
9306 function Literals
9307 (N : Node_Id) return List_Id; -- List1
9309 function Local_Raise_Not_OK
9310 (N : Node_Id) return Boolean; -- Flag7
9312 function Local_Raise_Statements
9313 (N : Node_Id) return Elist_Id; -- Elist1
9315 function Loop_Actions
9316 (N : Node_Id) return List_Id; -- List2
9318 function Loop_Parameter_Specification
9319 (N : Node_Id) return Node_Id; -- Node4
9321 function Low_Bound
9322 (N : Node_Id) return Node_Id; -- Node1
9324 function Mod_Clause
9325 (N : Node_Id) return Node_Id; -- Node2
9327 function More_Ids
9328 (N : Node_Id) return Boolean; -- Flag5
9330 function Must_Be_Byte_Aligned
9331 (N : Node_Id) return Boolean; -- Flag14
9333 function Must_Not_Freeze
9334 (N : Node_Id) return Boolean; -- Flag8
9336 function Must_Not_Override
9337 (N : Node_Id) return Boolean; -- Flag15
9339 function Must_Override
9340 (N : Node_Id) return Boolean; -- Flag14
9342 function Name
9343 (N : Node_Id) return Node_Id; -- Node2
9345 function Names
9346 (N : Node_Id) return List_Id; -- List2
9348 function Next_Entity
9349 (N : Node_Id) return Node_Id; -- Node2
9351 function Next_Exit_Statement
9352 (N : Node_Id) return Node_Id; -- Node3
9354 function Next_Implicit_With
9355 (N : Node_Id) return Node_Id; -- Node3
9357 function Next_Named_Actual
9358 (N : Node_Id) return Node_Id; -- Node4
9360 function Next_Pragma
9361 (N : Node_Id) return Node_Id; -- Node1
9363 function Next_Rep_Item
9364 (N : Node_Id) return Node_Id; -- Node5
9366 function Next_Use_Clause
9367 (N : Node_Id) return Node_Id; -- Node3
9369 function No_Ctrl_Actions
9370 (N : Node_Id) return Boolean; -- Flag7
9372 function No_Elaboration_Check
9373 (N : Node_Id) return Boolean; -- Flag14
9375 function No_Entities_Ref_In_Spec
9376 (N : Node_Id) return Boolean; -- Flag8
9378 function No_Initialization
9379 (N : Node_Id) return Boolean; -- Flag13
9381 function No_Minimize_Eliminate
9382 (N : Node_Id) return Boolean; -- Flag17
9384 function No_Truncation
9385 (N : Node_Id) return Boolean; -- Flag17
9387 function Non_Aliased_Prefix
9388 (N : Node_Id) return Boolean; -- Flag18
9390 function Null_Present
9391 (N : Node_Id) return Boolean; -- Flag13
9393 function Null_Excluding_Subtype
9394 (N : Node_Id) return Boolean; -- Flag16
9396 function Null_Exclusion_Present
9397 (N : Node_Id) return Boolean; -- Flag11
9399 function Null_Exclusion_In_Return_Present
9400 (N : Node_Id) return Boolean; -- Flag14
9402 function Null_Record_Present
9403 (N : Node_Id) return Boolean; -- Flag17
9405 function Object_Definition
9406 (N : Node_Id) return Node_Id; -- Node4
9408 function Of_Present
9409 (N : Node_Id) return Boolean; -- Flag16
9411 function Original_Discriminant
9412 (N : Node_Id) return Node_Id; -- Node2
9414 function Original_Entity
9415 (N : Node_Id) return Entity_Id; -- Node2
9417 function Others_Discrete_Choices
9418 (N : Node_Id) return List_Id; -- List1
9420 function Out_Present
9421 (N : Node_Id) return Boolean; -- Flag17
9423 function Parameter_Associations
9424 (N : Node_Id) return List_Id; -- List3
9426 function Parameter_Specifications
9427 (N : Node_Id) return List_Id; -- List3
9429 function Parameter_Type
9430 (N : Node_Id) return Node_Id; -- Node2
9432 function Parent_Spec
9433 (N : Node_Id) return Node_Id; -- Node4
9435 function Position
9436 (N : Node_Id) return Node_Id; -- Node2
9438 function Pragma_Argument_Associations
9439 (N : Node_Id) return List_Id; -- List2
9441 function Pragma_Identifier
9442 (N : Node_Id) return Node_Id; -- Node4
9444 function Pragmas_After
9445 (N : Node_Id) return List_Id; -- List5
9447 function Pragmas_Before
9448 (N : Node_Id) return List_Id; -- List4
9450 function Pre_Post_Conditions
9451 (N : Node_Id) return Node_Id; -- Node1
9453 function Prefix
9454 (N : Node_Id) return Node_Id; -- Node3
9456 function Premature_Use
9457 (N : Node_Id) return Node_Id; -- Node5
9459 function Present_Expr
9460 (N : Node_Id) return Uint; -- Uint3
9462 function Prev_Ids
9463 (N : Node_Id) return Boolean; -- Flag6
9465 function Print_In_Hex
9466 (N : Node_Id) return Boolean; -- Flag13
9468 function Private_Declarations
9469 (N : Node_Id) return List_Id; -- List3
9471 function Private_Present
9472 (N : Node_Id) return Boolean; -- Flag15
9474 function Procedure_To_Call
9475 (N : Node_Id) return Node_Id; -- Node2
9477 function Proper_Body
9478 (N : Node_Id) return Node_Id; -- Node1
9480 function Protected_Definition
9481 (N : Node_Id) return Node_Id; -- Node3
9483 function Protected_Present
9484 (N : Node_Id) return Boolean; -- Flag6
9486 function Raises_Constraint_Error
9487 (N : Node_Id) return Boolean; -- Flag7
9489 function Range_Constraint
9490 (N : Node_Id) return Node_Id; -- Node4
9492 function Range_Expression
9493 (N : Node_Id) return Node_Id; -- Node4
9495 function Real_Range_Specification
9496 (N : Node_Id) return Node_Id; -- Node4
9498 function Realval
9499 (N : Node_Id) return Ureal; -- Ureal3
9501 function Reason
9502 (N : Node_Id) return Uint; -- Uint3
9504 function Record_Extension_Part
9505 (N : Node_Id) return Node_Id; -- Node3
9507 function Redundant_Use
9508 (N : Node_Id) return Boolean; -- Flag13
9510 function Renaming_Exception
9511 (N : Node_Id) return Node_Id; -- Node2
9513 function Result_Definition
9514 (N : Node_Id) return Node_Id; -- Node4
9516 function Return_Object_Declarations
9517 (N : Node_Id) return List_Id; -- List3
9519 function Return_Statement_Entity
9520 (N : Node_Id) return Node_Id; -- Node5
9522 function Reverse_Present
9523 (N : Node_Id) return Boolean; -- Flag15
9525 function Right_Opnd
9526 (N : Node_Id) return Node_Id; -- Node3
9528 function Rounded_Result
9529 (N : Node_Id) return Boolean; -- Flag18
9531 function SCIL_Controlling_Tag
9532 (N : Node_Id) return Node_Id; -- Node5
9534 function SCIL_Entity
9535 (N : Node_Id) return Node_Id; -- Node4
9537 function SCIL_Tag_Value
9538 (N : Node_Id) return Node_Id; -- Node5
9540 function SCIL_Target_Prim
9541 (N : Node_Id) return Node_Id; -- Node2
9543 function Scope
9544 (N : Node_Id) return Node_Id; -- Node3
9546 function Select_Alternatives
9547 (N : Node_Id) return List_Id; -- List1
9549 function Selector_Name
9550 (N : Node_Id) return Node_Id; -- Node2
9552 function Selector_Names
9553 (N : Node_Id) return List_Id; -- List1
9555 function Shift_Count_OK
9556 (N : Node_Id) return Boolean; -- Flag4
9558 function Source_Type
9559 (N : Node_Id) return Entity_Id; -- Node1
9561 function Specification
9562 (N : Node_Id) return Node_Id; -- Node1
9564 function Split_PPC
9565 (N : Node_Id) return Boolean; -- Flag17
9567 function Statements
9568 (N : Node_Id) return List_Id; -- List3
9570 function Storage_Pool
9571 (N : Node_Id) return Node_Id; -- Node1
9573 function Subpool_Handle_Name
9574 (N : Node_Id) return Node_Id; -- Node4
9576 function Strval
9577 (N : Node_Id) return String_Id; -- Str3
9579 function Subtype_Indication
9580 (N : Node_Id) return Node_Id; -- Node5
9582 function Subtype_Mark
9583 (N : Node_Id) return Node_Id; -- Node4
9585 function Subtype_Marks
9586 (N : Node_Id) return List_Id; -- List2
9588 function Suppress_Assignment_Checks
9589 (N : Node_Id) return Boolean; -- Flag18
9591 function Suppress_Loop_Warnings
9592 (N : Node_Id) return Boolean; -- Flag17
9594 function Synchronized_Present
9595 (N : Node_Id) return Boolean; -- Flag7
9597 function Tagged_Present
9598 (N : Node_Id) return Boolean; -- Flag15
9600 function Target_Type
9601 (N : Node_Id) return Entity_Id; -- Node2
9603 function Task_Definition
9604 (N : Node_Id) return Node_Id; -- Node3
9606 function Task_Present
9607 (N : Node_Id) return Boolean; -- Flag5
9609 function Then_Actions
9610 (N : Node_Id) return List_Id; -- List2
9612 function Then_Statements
9613 (N : Node_Id) return List_Id; -- List2
9615 function Treat_Fixed_As_Integer
9616 (N : Node_Id) return Boolean; -- Flag14
9618 function Triggering_Alternative
9619 (N : Node_Id) return Node_Id; -- Node1
9621 function Triggering_Statement
9622 (N : Node_Id) return Node_Id; -- Node1
9624 function TSS_Elist
9625 (N : Node_Id) return Elist_Id; -- Elist3
9627 function Type_Definition
9628 (N : Node_Id) return Node_Id; -- Node3
9630 function Uneval_Old_Accept
9631 (N : Node_Id) return Boolean; -- Flag7
9633 function Uneval_Old_Warn
9634 (N : Node_Id) return Boolean; -- Flag18
9636 function Unit
9637 (N : Node_Id) return Node_Id; -- Node2
9639 function Unknown_Discriminants_Present
9640 (N : Node_Id) return Boolean; -- Flag13
9642 function Unreferenced_In_Spec
9643 (N : Node_Id) return Boolean; -- Flag7
9645 function Variant_Part
9646 (N : Node_Id) return Node_Id; -- Node4
9648 function Variants
9649 (N : Node_Id) return List_Id; -- List1
9651 function Visible_Declarations
9652 (N : Node_Id) return List_Id; -- List2
9654 function Uninitialized_Variable
9655 (N : Node_Id) return Node_Id; -- Node3
9657 function Used_Operations
9658 (N : Node_Id) return Elist_Id; -- Elist5
9660 function Was_Originally_Stub
9661 (N : Node_Id) return Boolean; -- Flag13
9663 function Withed_Body
9664 (N : Node_Id) return Node_Id; -- Node1
9666 -- End functions (note used by xsinfo utility program to end processing)
9668 ----------------------------
9669 -- Node Update Procedures --
9670 ----------------------------
9672 -- These are the corresponding node update routines, which again provide
9673 -- a high level logical access with type checking. In addition to setting
9674 -- the indicated field of the node N to the given Val, in the case of
9675 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9676 -- point back to node N. This automates the setting of the parent pointer.
9678 procedure Set_ABE_Is_Certain
9679 (N : Node_Id; Val : Boolean := True); -- Flag18
9681 procedure Set_Abort_Present
9682 (N : Node_Id; Val : Boolean := True); -- Flag15
9684 procedure Set_Abortable_Part
9685 (N : Node_Id; Val : Node_Id); -- Node2
9687 procedure Set_Abstract_Present
9688 (N : Node_Id; Val : Boolean := True); -- Flag4
9690 procedure Set_Accept_Handler_Records
9691 (N : Node_Id; Val : List_Id); -- List5
9693 procedure Set_Accept_Statement
9694 (N : Node_Id; Val : Node_Id); -- Node2
9696 procedure Set_Access_Definition
9697 (N : Node_Id; Val : Node_Id); -- Node3
9699 procedure Set_Access_To_Subprogram_Definition
9700 (N : Node_Id; Val : Node_Id); -- Node3
9702 procedure Set_Access_Types_To_Process
9703 (N : Node_Id; Val : Elist_Id); -- Elist2
9705 procedure Set_Actions
9706 (N : Node_Id; Val : List_Id); -- List1
9708 procedure Set_Activation_Chain_Entity
9709 (N : Node_Id; Val : Node_Id); -- Node3
9711 procedure Set_Acts_As_Spec
9712 (N : Node_Id; Val : Boolean := True); -- Flag4
9714 procedure Set_Actual_Designated_Subtype
9715 (N : Node_Id; Val : Node_Id); -- Node4
9717 procedure Set_Address_Warning_Posted
9718 (N : Node_Id; Val : Boolean := True); -- Flag18
9720 procedure Set_Aggregate_Bounds
9721 (N : Node_Id; Val : Node_Id); -- Node3
9723 procedure Set_Aliased_Present
9724 (N : Node_Id; Val : Boolean := True); -- Flag4
9726 procedure Set_All_Others
9727 (N : Node_Id; Val : Boolean := True); -- Flag11
9729 procedure Set_All_Present
9730 (N : Node_Id; Val : Boolean := True); -- Flag15
9732 procedure Set_Alternatives
9733 (N : Node_Id; Val : List_Id); -- List4
9735 procedure Set_Ancestor_Part
9736 (N : Node_Id; Val : Node_Id); -- Node3
9738 procedure Set_Atomic_Sync_Required
9739 (N : Node_Id; Val : Boolean := True); -- Flag14
9741 procedure Set_Array_Aggregate
9742 (N : Node_Id; Val : Node_Id); -- Node3
9744 procedure Set_Aspect_Rep_Item
9745 (N : Node_Id; Val : Node_Id); -- Node2
9747 procedure Set_Assignment_OK
9748 (N : Node_Id; Val : Boolean := True); -- Flag15
9750 procedure Set_Associated_Node
9751 (N : Node_Id; Val : Node_Id); -- Node4
9753 procedure Set_Attribute_Name
9754 (N : Node_Id; Val : Name_Id); -- Name2
9756 procedure Set_At_End_Proc
9757 (N : Node_Id; Val : Node_Id); -- Node1
9759 procedure Set_Aux_Decls_Node
9760 (N : Node_Id; Val : Node_Id); -- Node5
9762 procedure Set_Backwards_OK
9763 (N : Node_Id; Val : Boolean := True); -- Flag6
9765 procedure Set_Bad_Is_Detected
9766 (N : Node_Id; Val : Boolean := True); -- Flag15
9768 procedure Set_Body_Required
9769 (N : Node_Id; Val : Boolean := True); -- Flag13
9771 procedure Set_Body_To_Inline
9772 (N : Node_Id; Val : Node_Id); -- Node3
9774 procedure Set_Box_Present
9775 (N : Node_Id; Val : Boolean := True); -- Flag15
9777 procedure Set_By_Ref
9778 (N : Node_Id; Val : Boolean := True); -- Flag5
9780 procedure Set_Char_Literal_Value
9781 (N : Node_Id; Val : Uint); -- Uint2
9783 procedure Set_Chars
9784 (N : Node_Id; Val : Name_Id); -- Name1
9786 procedure Set_Check_Address_Alignment
9787 (N : Node_Id; Val : Boolean := True); -- Flag11
9789 procedure Set_Choice_Parameter
9790 (N : Node_Id; Val : Node_Id); -- Node2
9792 procedure Set_Choices
9793 (N : Node_Id; Val : List_Id); -- List1
9795 procedure Set_Class_Present
9796 (N : Node_Id; Val : Boolean := True); -- Flag6
9798 procedure Set_Classifications
9799 (N : Node_Id; Val : Node_Id); -- Node3
9801 procedure Set_Cleanup_Actions
9802 (N : Node_Id; Val : List_Id); -- List5
9804 procedure Set_Comes_From_Extended_Return_Statement
9805 (N : Node_Id; Val : Boolean := True); -- Flag18
9807 procedure Set_Compile_Time_Known_Aggregate
9808 (N : Node_Id; Val : Boolean := True); -- Flag18
9810 procedure Set_Component_Associations
9811 (N : Node_Id; Val : List_Id); -- List2
9813 procedure Set_Component_Clauses
9814 (N : Node_Id; Val : List_Id); -- List3
9816 procedure Set_Component_Definition
9817 (N : Node_Id; Val : Node_Id); -- Node4
9819 procedure Set_Component_Items
9820 (N : Node_Id; Val : List_Id); -- List3
9822 procedure Set_Component_List
9823 (N : Node_Id; Val : Node_Id); -- Node1
9825 procedure Set_Component_Name
9826 (N : Node_Id; Val : Node_Id); -- Node1
9828 procedure Set_Componentwise_Assignment
9829 (N : Node_Id; Val : Boolean := True); -- Flag14
9831 procedure Set_Condition
9832 (N : Node_Id; Val : Node_Id); -- Node1
9834 procedure Set_Condition_Actions
9835 (N : Node_Id; Val : List_Id); -- List3
9837 procedure Set_Config_Pragmas
9838 (N : Node_Id; Val : List_Id); -- List4
9840 procedure Set_Constant_Present
9841 (N : Node_Id; Val : Boolean := True); -- Flag17
9843 procedure Set_Constraint
9844 (N : Node_Id; Val : Node_Id); -- Node3
9846 procedure Set_Constraints
9847 (N : Node_Id; Val : List_Id); -- List1
9849 procedure Set_Context_Installed
9850 (N : Node_Id; Val : Boolean := True); -- Flag13
9852 procedure Set_Context_Items
9853 (N : Node_Id; Val : List_Id); -- List1
9855 procedure Set_Context_Pending
9856 (N : Node_Id; Val : Boolean := True); -- Flag16
9858 procedure Set_Contract_Test_Cases
9859 (N : Node_Id; Val : Node_Id); -- Node2
9861 procedure Set_Controlling_Argument
9862 (N : Node_Id; Val : Node_Id); -- Node1
9864 procedure Set_Conversion_OK
9865 (N : Node_Id; Val : Boolean := True); -- Flag14
9867 procedure Set_Convert_To_Return_False
9868 (N : Node_Id; Val : Boolean := True); -- Flag13
9870 procedure Set_Corresponding_Aspect
9871 (N : Node_Id; Val : Node_Id); -- Node3
9873 procedure Set_Corresponding_Body
9874 (N : Node_Id; Val : Node_Id); -- Node5
9876 procedure Set_Corresponding_Formal_Spec
9877 (N : Node_Id; Val : Node_Id); -- Node3
9879 procedure Set_Corresponding_Generic_Association
9880 (N : Node_Id; Val : Node_Id); -- Node5
9882 procedure Set_Corresponding_Integer_Value
9883 (N : Node_Id; Val : Uint); -- Uint4
9885 procedure Set_Corresponding_Spec
9886 (N : Node_Id; Val : Node_Id); -- Node5
9888 procedure Set_Corresponding_Spec_Of_Stub
9889 (N : Node_Id; Val : Node_Id); -- Node2
9891 procedure Set_Corresponding_Stub
9892 (N : Node_Id; Val : Node_Id); -- Node3
9894 procedure Set_Dcheck_Function
9895 (N : Node_Id; Val : Entity_Id); -- Node5
9897 procedure Set_Declarations
9898 (N : Node_Id; Val : List_Id); -- List2
9900 procedure Set_Default_Expression
9901 (N : Node_Id; Val : Node_Id); -- Node5
9903 procedure Set_Default_Storage_Pool
9904 (N : Node_Id; Val : Node_Id); -- Node3
9906 procedure Set_Default_Name
9907 (N : Node_Id; Val : Node_Id); -- Node2
9909 procedure Set_Defining_Identifier
9910 (N : Node_Id; Val : Entity_Id); -- Node1
9912 procedure Set_Defining_Unit_Name
9913 (N : Node_Id; Val : Node_Id); -- Node1
9915 procedure Set_Delay_Alternative
9916 (N : Node_Id; Val : Node_Id); -- Node4
9918 procedure Set_Delay_Statement
9919 (N : Node_Id; Val : Node_Id); -- Node2
9921 procedure Set_Delta_Expression
9922 (N : Node_Id; Val : Node_Id); -- Node3
9924 procedure Set_Digits_Expression
9925 (N : Node_Id; Val : Node_Id); -- Node2
9927 procedure Set_Discr_Check_Funcs_Built
9928 (N : Node_Id; Val : Boolean := True); -- Flag11
9930 procedure Set_Discrete_Choices
9931 (N : Node_Id; Val : List_Id); -- List4
9933 procedure Set_Discrete_Range
9934 (N : Node_Id; Val : Node_Id); -- Node4
9936 procedure Set_Discrete_Subtype_Definition
9937 (N : Node_Id; Val : Node_Id); -- Node4
9939 procedure Set_Discrete_Subtype_Definitions
9940 (N : Node_Id; Val : List_Id); -- List2
9942 procedure Set_Discriminant_Specifications
9943 (N : Node_Id; Val : List_Id); -- List4
9945 procedure Set_Discriminant_Type
9946 (N : Node_Id; Val : Node_Id); -- Node5
9948 procedure Set_Do_Accessibility_Check
9949 (N : Node_Id; Val : Boolean := True); -- Flag13
9951 procedure Set_Do_Discriminant_Check
9952 (N : Node_Id; Val : Boolean := True); -- Flag1
9954 procedure Set_Do_Division_Check
9955 (N : Node_Id; Val : Boolean := True); -- Flag13
9957 procedure Set_Do_Length_Check
9958 (N : Node_Id; Val : Boolean := True); -- Flag4
9960 procedure Set_Do_Overflow_Check
9961 (N : Node_Id; Val : Boolean := True); -- Flag17
9963 procedure Set_Do_Range_Check
9964 (N : Node_Id; Val : Boolean := True); -- Flag9
9966 procedure Set_Do_Storage_Check
9967 (N : Node_Id; Val : Boolean := True); -- Flag17
9969 procedure Set_Do_Tag_Check
9970 (N : Node_Id; Val : Boolean := True); -- Flag13
9972 procedure Set_Elaborate_All_Desirable
9973 (N : Node_Id; Val : Boolean := True); -- Flag9
9975 procedure Set_Elaborate_All_Present
9976 (N : Node_Id; Val : Boolean := True); -- Flag14
9978 procedure Set_Elaborate_Desirable
9979 (N : Node_Id; Val : Boolean := True); -- Flag11
9981 procedure Set_Elaborate_Present
9982 (N : Node_Id; Val : Boolean := True); -- Flag4
9984 procedure Set_Else_Actions
9985 (N : Node_Id; Val : List_Id); -- List3
9987 procedure Set_Else_Statements
9988 (N : Node_Id; Val : List_Id); -- List4
9990 procedure Set_Elsif_Parts
9991 (N : Node_Id; Val : List_Id); -- List3
9993 procedure Set_Enclosing_Variant
9994 (N : Node_Id; Val : Node_Id); -- Node2
9996 procedure Set_End_Label
9997 (N : Node_Id; Val : Node_Id); -- Node4
9999 procedure Set_End_Span
10000 (N : Node_Id; Val : Uint); -- Uint5
10002 procedure Set_Entity
10003 (N : Node_Id; Val : Node_Id); -- Node4
10005 procedure Set_Entry_Body_Formal_Part
10006 (N : Node_Id; Val : Node_Id); -- Node5
10008 procedure Set_Entry_Call_Alternative
10009 (N : Node_Id; Val : Node_Id); -- Node1
10011 procedure Set_Entry_Call_Statement
10012 (N : Node_Id; Val : Node_Id); -- Node1
10014 procedure Set_Entry_Direct_Name
10015 (N : Node_Id; Val : Node_Id); -- Node1
10017 procedure Set_Entry_Index
10018 (N : Node_Id; Val : Node_Id); -- Node5
10020 procedure Set_Entry_Index_Specification
10021 (N : Node_Id; Val : Node_Id); -- Node4
10023 procedure Set_Etype
10024 (N : Node_Id; Val : Node_Id); -- Node5
10026 procedure Set_Exception_Choices
10027 (N : Node_Id; Val : List_Id); -- List4
10029 procedure Set_Exception_Handlers
10030 (N : Node_Id; Val : List_Id); -- List5
10032 procedure Set_Exception_Junk
10033 (N : Node_Id; Val : Boolean := True); -- Flag8
10035 procedure Set_Exception_Label
10036 (N : Node_Id; Val : Node_Id); -- Node5
10038 procedure Set_Expansion_Delayed
10039 (N : Node_Id; Val : Boolean := True); -- Flag11
10041 procedure Set_Explicit_Actual_Parameter
10042 (N : Node_Id; Val : Node_Id); -- Node3
10044 procedure Set_Explicit_Generic_Actual_Parameter
10045 (N : Node_Id; Val : Node_Id); -- Node1
10047 procedure Set_Expression
10048 (N : Node_Id; Val : Node_Id); -- Node3
10050 procedure Set_Expressions
10051 (N : Node_Id; Val : List_Id); -- List1
10053 procedure Set_First_Bit
10054 (N : Node_Id; Val : Node_Id); -- Node3
10056 procedure Set_First_Inlined_Subprogram
10057 (N : Node_Id; Val : Entity_Id); -- Node3
10059 procedure Set_First_Name
10060 (N : Node_Id; Val : Boolean := True); -- Flag5
10062 procedure Set_First_Named_Actual
10063 (N : Node_Id; Val : Node_Id); -- Node4
10065 procedure Set_First_Real_Statement
10066 (N : Node_Id; Val : Node_Id); -- Node2
10068 procedure Set_First_Subtype_Link
10069 (N : Node_Id; Val : Entity_Id); -- Node5
10071 procedure Set_Float_Truncate
10072 (N : Node_Id; Val : Boolean := True); -- Flag11
10074 procedure Set_Formal_Type_Definition
10075 (N : Node_Id; Val : Node_Id); -- Node3
10077 procedure Set_Forwards_OK
10078 (N : Node_Id; Val : Boolean := True); -- Flag5
10080 procedure Set_From_Aspect_Specification
10081 (N : Node_Id; Val : Boolean := True); -- Flag13
10083 procedure Set_From_At_End
10084 (N : Node_Id; Val : Boolean := True); -- Flag4
10086 procedure Set_From_At_Mod
10087 (N : Node_Id; Val : Boolean := True); -- Flag4
10089 procedure Set_From_Conditional_Expression
10090 (N : Node_Id; Val : Boolean := True); -- Flag1
10092 procedure Set_From_Default
10093 (N : Node_Id; Val : Boolean := True); -- Flag6
10095 procedure Set_Generalized_Indexing
10096 (N : Node_Id; Val : Node_Id); -- Node4
10098 procedure Set_Generic_Associations
10099 (N : Node_Id; Val : List_Id); -- List3
10101 procedure Set_Generic_Formal_Declarations
10102 (N : Node_Id; Val : List_Id); -- List2
10104 procedure Set_Generic_Parent
10105 (N : Node_Id; Val : Node_Id); -- Node5
10107 procedure Set_Generic_Parent_Type
10108 (N : Node_Id; Val : Node_Id); -- Node4
10110 procedure Set_Handled_Statement_Sequence
10111 (N : Node_Id; Val : Node_Id); -- Node4
10113 procedure Set_Handler_List_Entry
10114 (N : Node_Id; Val : Node_Id); -- Node2
10116 procedure Set_Has_Created_Identifier
10117 (N : Node_Id; Val : Boolean := True); -- Flag15
10119 procedure Set_Has_Dereference_Action
10120 (N : Node_Id; Val : Boolean := True); -- Flag13
10122 procedure Set_Has_Dynamic_Length_Check
10123 (N : Node_Id; Val : Boolean := True); -- Flag10
10125 procedure Set_Has_Dynamic_Range_Check
10126 (N : Node_Id; Val : Boolean := True); -- Flag12
10128 procedure Set_Has_Init_Expression
10129 (N : Node_Id; Val : Boolean := True); -- Flag14
10131 procedure Set_Has_Local_Raise
10132 (N : Node_Id; Val : Boolean := True); -- Flag8
10134 procedure Set_Has_No_Elaboration_Code
10135 (N : Node_Id; Val : Boolean := True); -- Flag17
10137 procedure Set_Has_Pragma_Suppress_All
10138 (N : Node_Id; Val : Boolean := True); -- Flag14
10140 procedure Set_Has_Private_View
10141 (N : Node_Id; Val : Boolean := True); -- Flag11
10143 procedure Set_Has_Relative_Deadline_Pragma
10144 (N : Node_Id; Val : Boolean := True); -- Flag9
10146 procedure Set_Has_Self_Reference
10147 (N : Node_Id; Val : Boolean := True); -- Flag13
10149 procedure Set_Has_SP_Choice
10150 (N : Node_Id; Val : Boolean := True); -- Flag15
10152 procedure Set_Has_Storage_Size_Pragma
10153 (N : Node_Id; Val : Boolean := True); -- Flag5
10155 procedure Set_Has_Wide_Character
10156 (N : Node_Id; Val : Boolean := True); -- Flag11
10158 procedure Set_Has_Wide_Wide_Character
10159 (N : Node_Id; Val : Boolean := True); -- Flag13
10161 procedure Set_Header_Size_Added
10162 (N : Node_Id; Val : Boolean := True); -- Flag11
10164 procedure Set_Hidden_By_Use_Clause
10165 (N : Node_Id; Val : Elist_Id); -- Elist4
10167 procedure Set_High_Bound
10168 (N : Node_Id; Val : Node_Id); -- Node2
10170 procedure Set_Identifier
10171 (N : Node_Id; Val : Node_Id); -- Node1
10173 procedure Set_Interface_List
10174 (N : Node_Id; Val : List_Id); -- List2
10176 procedure Set_Interface_Present
10177 (N : Node_Id; Val : Boolean := True); -- Flag16
10179 procedure Set_Implicit_With
10180 (N : Node_Id; Val : Boolean := True); -- Flag16
10182 procedure Set_Implicit_With_From_Instantiation
10183 (N : Node_Id; Val : Boolean := True); -- Flag12
10185 procedure Set_Import_Interface_Present
10186 (N : Node_Id; Val : Boolean := True); -- Flag16
10188 procedure Set_In_Present
10189 (N : Node_Id; Val : Boolean := True); -- Flag15
10191 procedure Set_Includes_Infinities
10192 (N : Node_Id; Val : Boolean := True); -- Flag11
10194 procedure Set_Incomplete_View
10195 (N : Node_Id; Val : Node_Id); -- Node2
10197 procedure Set_Inherited_Discriminant
10198 (N : Node_Id; Val : Boolean := True); -- Flag13
10200 procedure Set_Instance_Spec
10201 (N : Node_Id; Val : Node_Id); -- Node5
10203 procedure Set_Intval
10204 (N : Node_Id; Val : Uint); -- Uint3
10206 procedure Set_Is_Accessibility_Actual
10207 (N : Node_Id; Val : Boolean := True); -- Flag13
10209 procedure Set_Is_Asynchronous_Call_Block
10210 (N : Node_Id; Val : Boolean := True); -- Flag7
10212 procedure Set_Is_Boolean_Aspect
10213 (N : Node_Id; Val : Boolean := True); -- Flag16
10215 procedure Set_Is_Checked
10216 (N : Node_Id; Val : Boolean := True); -- Flag11
10218 procedure Set_Is_Component_Left_Opnd
10219 (N : Node_Id; Val : Boolean := True); -- Flag13
10221 procedure Set_Is_Component_Right_Opnd
10222 (N : Node_Id; Val : Boolean := True); -- Flag14
10224 procedure Set_Is_Controlling_Actual
10225 (N : Node_Id; Val : Boolean := True); -- Flag16
10227 procedure Set_Is_Delayed_Aspect
10228 (N : Node_Id; Val : Boolean := True); -- Flag14
10230 procedure Set_Is_Disabled
10231 (N : Node_Id; Val : Boolean := True); -- Flag15
10233 procedure Set_Is_Ignored
10234 (N : Node_Id; Val : Boolean := True); -- Flag9
10236 procedure Set_Is_Dynamic_Coextension
10237 (N : Node_Id; Val : Boolean := True); -- Flag18
10239 procedure Set_Is_Elsif
10240 (N : Node_Id; Val : Boolean := True); -- Flag13
10242 procedure Set_Is_Entry_Barrier_Function
10243 (N : Node_Id; Val : Boolean := True); -- Flag8
10245 procedure Set_Is_Expanded_Build_In_Place_Call
10246 (N : Node_Id; Val : Boolean := True); -- Flag11
10248 procedure Set_Is_Finalization_Wrapper
10249 (N : Node_Id; Val : Boolean := True); -- Flag9
10251 procedure Set_Is_Folded_In_Parser
10252 (N : Node_Id; Val : Boolean := True); -- Flag4
10254 procedure Set_Is_In_Discriminant_Check
10255 (N : Node_Id; Val : Boolean := True); -- Flag11
10257 procedure Set_Is_Inherited
10258 (N : Node_Id; Val : Boolean := True); -- Flag4
10260 procedure Set_Is_Machine_Number
10261 (N : Node_Id; Val : Boolean := True); -- Flag11
10263 procedure Set_Is_Null_Loop
10264 (N : Node_Id; Val : Boolean := True); -- Flag16
10266 procedure Set_Is_Overloaded
10267 (N : Node_Id; Val : Boolean := True); -- Flag5
10269 procedure Set_Is_Power_Of_2_For_Shift
10270 (N : Node_Id; Val : Boolean := True); -- Flag13
10272 procedure Set_Is_Prefixed_Call
10273 (N : Node_Id; Val : Boolean := True); -- Flag17
10275 procedure Set_Is_Protected_Subprogram_Body
10276 (N : Node_Id; Val : Boolean := True); -- Flag7
10278 procedure Set_Is_Static_Coextension
10279 (N : Node_Id; Val : Boolean := True); -- Flag14
10281 procedure Set_Is_Static_Expression
10282 (N : Node_Id; Val : Boolean := True); -- Flag6
10284 procedure Set_Is_Subprogram_Descriptor
10285 (N : Node_Id; Val : Boolean := True); -- Flag16
10287 procedure Set_Is_Task_Allocation_Block
10288 (N : Node_Id; Val : Boolean := True); -- Flag6
10290 procedure Set_Is_Task_Master
10291 (N : Node_Id; Val : Boolean := True); -- Flag5
10293 procedure Set_Iteration_Scheme
10294 (N : Node_Id; Val : Node_Id); -- Node2
10296 procedure Set_Iterator_Specification
10297 (N : Node_Id; Val : Node_Id); -- Node2
10299 procedure Set_Itype
10300 (N : Node_Id; Val : Entity_Id); -- Node1
10302 procedure Set_Kill_Range_Check
10303 (N : Node_Id; Val : Boolean := True); -- Flag11
10305 procedure Set_Last_Bit
10306 (N : Node_Id; Val : Node_Id); -- Node4
10308 procedure Set_Last_Name
10309 (N : Node_Id; Val : Boolean := True); -- Flag6
10311 procedure Set_Library_Unit
10312 (N : Node_Id; Val : Node_Id); -- Node4
10314 procedure Set_Label_Construct
10315 (N : Node_Id; Val : Node_Id); -- Node2
10317 procedure Set_Left_Opnd
10318 (N : Node_Id; Val : Node_Id); -- Node2
10320 procedure Set_Limited_View_Installed
10321 (N : Node_Id; Val : Boolean := True); -- Flag18
10323 procedure Set_Limited_Present
10324 (N : Node_Id; Val : Boolean := True); -- Flag17
10326 procedure Set_Literals
10327 (N : Node_Id; Val : List_Id); -- List1
10329 procedure Set_Local_Raise_Not_OK
10330 (N : Node_Id; Val : Boolean := True); -- Flag7
10332 procedure Set_Local_Raise_Statements
10333 (N : Node_Id; Val : Elist_Id); -- Elist1
10335 procedure Set_Loop_Actions
10336 (N : Node_Id; Val : List_Id); -- List2
10338 procedure Set_Loop_Parameter_Specification
10339 (N : Node_Id; Val : Node_Id); -- Node4
10341 procedure Set_Low_Bound
10342 (N : Node_Id; Val : Node_Id); -- Node1
10344 procedure Set_Mod_Clause
10345 (N : Node_Id; Val : Node_Id); -- Node2
10347 procedure Set_More_Ids
10348 (N : Node_Id; Val : Boolean := True); -- Flag5
10350 procedure Set_Must_Be_Byte_Aligned
10351 (N : Node_Id; Val : Boolean := True); -- Flag14
10353 procedure Set_Must_Not_Freeze
10354 (N : Node_Id; Val : Boolean := True); -- Flag8
10356 procedure Set_Must_Not_Override
10357 (N : Node_Id; Val : Boolean := True); -- Flag15
10359 procedure Set_Must_Override
10360 (N : Node_Id; Val : Boolean := True); -- Flag14
10362 procedure Set_Name
10363 (N : Node_Id; Val : Node_Id); -- Node2
10365 procedure Set_Names
10366 (N : Node_Id; Val : List_Id); -- List2
10368 procedure Set_Next_Entity
10369 (N : Node_Id; Val : Node_Id); -- Node2
10371 procedure Set_Next_Exit_Statement
10372 (N : Node_Id; Val : Node_Id); -- Node3
10374 procedure Set_Next_Implicit_With
10375 (N : Node_Id; Val : Node_Id); -- Node3
10377 procedure Set_Next_Named_Actual
10378 (N : Node_Id; Val : Node_Id); -- Node4
10380 procedure Set_Next_Pragma
10381 (N : Node_Id; Val : Node_Id); -- Node1
10383 procedure Set_Next_Rep_Item
10384 (N : Node_Id; Val : Node_Id); -- Node5
10386 procedure Set_Next_Use_Clause
10387 (N : Node_Id; Val : Node_Id); -- Node3
10389 procedure Set_No_Ctrl_Actions
10390 (N : Node_Id; Val : Boolean := True); -- Flag7
10392 procedure Set_No_Elaboration_Check
10393 (N : Node_Id; Val : Boolean := True); -- Flag14
10395 procedure Set_No_Entities_Ref_In_Spec
10396 (N : Node_Id; Val : Boolean := True); -- Flag8
10398 procedure Set_No_Initialization
10399 (N : Node_Id; Val : Boolean := True); -- Flag13
10401 procedure Set_No_Minimize_Eliminate
10402 (N : Node_Id; Val : Boolean := True); -- Flag17
10404 procedure Set_No_Truncation
10405 (N : Node_Id; Val : Boolean := True); -- Flag17
10407 procedure Set_Non_Aliased_Prefix
10408 (N : Node_Id; Val : Boolean := True); -- Flag18
10410 procedure Set_Null_Present
10411 (N : Node_Id; Val : Boolean := True); -- Flag13
10413 procedure Set_Null_Excluding_Subtype
10414 (N : Node_Id; Val : Boolean := True); -- Flag16
10416 procedure Set_Null_Exclusion_Present
10417 (N : Node_Id; Val : Boolean := True); -- Flag11
10419 procedure Set_Null_Exclusion_In_Return_Present
10420 (N : Node_Id; Val : Boolean := True); -- Flag14
10422 procedure Set_Null_Record_Present
10423 (N : Node_Id; Val : Boolean := True); -- Flag17
10425 procedure Set_Object_Definition
10426 (N : Node_Id; Val : Node_Id); -- Node4
10428 procedure Set_Of_Present
10429 (N : Node_Id; Val : Boolean := True); -- Flag16
10431 procedure Set_Original_Discriminant
10432 (N : Node_Id; Val : Node_Id); -- Node2
10434 procedure Set_Original_Entity
10435 (N : Node_Id; Val : Entity_Id); -- Node2
10437 procedure Set_Others_Discrete_Choices
10438 (N : Node_Id; Val : List_Id); -- List1
10440 procedure Set_Out_Present
10441 (N : Node_Id; Val : Boolean := True); -- Flag17
10443 procedure Set_Parameter_Associations
10444 (N : Node_Id; Val : List_Id); -- List3
10446 procedure Set_Parameter_Specifications
10447 (N : Node_Id; Val : List_Id); -- List3
10449 procedure Set_Parameter_Type
10450 (N : Node_Id; Val : Node_Id); -- Node2
10452 procedure Set_Parent_Spec
10453 (N : Node_Id; Val : Node_Id); -- Node4
10455 procedure Set_Position
10456 (N : Node_Id; Val : Node_Id); -- Node2
10458 procedure Set_Pragma_Argument_Associations
10459 (N : Node_Id; Val : List_Id); -- List2
10461 procedure Set_Pragma_Identifier
10462 (N : Node_Id; Val : Node_Id); -- Node4
10464 procedure Set_Pragmas_After
10465 (N : Node_Id; Val : List_Id); -- List5
10467 procedure Set_Pragmas_Before
10468 (N : Node_Id; Val : List_Id); -- List4
10470 procedure Set_Pre_Post_Conditions
10471 (N : Node_Id; Val : Node_Id); -- Node1
10473 procedure Set_Prefix
10474 (N : Node_Id; Val : Node_Id); -- Node3
10476 procedure Set_Premature_Use
10477 (N : Node_Id; Val : Node_Id); -- Node5
10479 procedure Set_Present_Expr
10480 (N : Node_Id; Val : Uint); -- Uint3
10482 procedure Set_Prev_Ids
10483 (N : Node_Id; Val : Boolean := True); -- Flag6
10485 procedure Set_Print_In_Hex
10486 (N : Node_Id; Val : Boolean := True); -- Flag13
10488 procedure Set_Private_Declarations
10489 (N : Node_Id; Val : List_Id); -- List3
10491 procedure Set_Private_Present
10492 (N : Node_Id; Val : Boolean := True); -- Flag15
10494 procedure Set_Procedure_To_Call
10495 (N : Node_Id; Val : Node_Id); -- Node2
10497 procedure Set_Proper_Body
10498 (N : Node_Id; Val : Node_Id); -- Node1
10500 procedure Set_Protected_Definition
10501 (N : Node_Id; Val : Node_Id); -- Node3
10503 procedure Set_Protected_Present
10504 (N : Node_Id; Val : Boolean := True); -- Flag6
10506 procedure Set_Raises_Constraint_Error
10507 (N : Node_Id; Val : Boolean := True); -- Flag7
10509 procedure Set_Range_Constraint
10510 (N : Node_Id; Val : Node_Id); -- Node4
10512 procedure Set_Range_Expression
10513 (N : Node_Id; Val : Node_Id); -- Node4
10515 procedure Set_Real_Range_Specification
10516 (N : Node_Id; Val : Node_Id); -- Node4
10518 procedure Set_Realval
10519 (N : Node_Id; Val : Ureal); -- Ureal3
10521 procedure Set_Reason
10522 (N : Node_Id; Val : Uint); -- Uint3
10524 procedure Set_Record_Extension_Part
10525 (N : Node_Id; Val : Node_Id); -- Node3
10527 procedure Set_Redundant_Use
10528 (N : Node_Id; Val : Boolean := True); -- Flag13
10530 procedure Set_Renaming_Exception
10531 (N : Node_Id; Val : Node_Id); -- Node2
10533 procedure Set_Result_Definition
10534 (N : Node_Id; Val : Node_Id); -- Node4
10536 procedure Set_Return_Object_Declarations
10537 (N : Node_Id; Val : List_Id); -- List3
10539 procedure Set_Return_Statement_Entity
10540 (N : Node_Id; Val : Node_Id); -- Node5
10542 procedure Set_Reverse_Present
10543 (N : Node_Id; Val : Boolean := True); -- Flag15
10545 procedure Set_Right_Opnd
10546 (N : Node_Id; Val : Node_Id); -- Node3
10548 procedure Set_Rounded_Result
10549 (N : Node_Id; Val : Boolean := True); -- Flag18
10551 procedure Set_SCIL_Controlling_Tag
10552 (N : Node_Id; Val : Node_Id); -- Node5
10554 procedure Set_SCIL_Entity
10555 (N : Node_Id; Val : Node_Id); -- Node4
10557 procedure Set_SCIL_Tag_Value
10558 (N : Node_Id; Val : Node_Id); -- Node5
10560 procedure Set_SCIL_Target_Prim
10561 (N : Node_Id; Val : Node_Id); -- Node2
10563 procedure Set_Scope
10564 (N : Node_Id; Val : Node_Id); -- Node3
10566 procedure Set_Select_Alternatives
10567 (N : Node_Id; Val : List_Id); -- List1
10569 procedure Set_Selector_Name
10570 (N : Node_Id; Val : Node_Id); -- Node2
10572 procedure Set_Selector_Names
10573 (N : Node_Id; Val : List_Id); -- List1
10575 procedure Set_Shift_Count_OK
10576 (N : Node_Id; Val : Boolean := True); -- Flag4
10578 procedure Set_Source_Type
10579 (N : Node_Id; Val : Entity_Id); -- Node1
10581 procedure Set_Specification
10582 (N : Node_Id; Val : Node_Id); -- Node1
10584 procedure Set_Split_PPC
10585 (N : Node_Id; Val : Boolean); -- Flag17
10587 procedure Set_Statements
10588 (N : Node_Id; Val : List_Id); -- List3
10590 procedure Set_Storage_Pool
10591 (N : Node_Id; Val : Node_Id); -- Node1
10593 procedure Set_Subpool_Handle_Name
10594 (N : Node_Id; Val : Node_Id); -- Node4
10596 procedure Set_Strval
10597 (N : Node_Id; Val : String_Id); -- Str3
10599 procedure Set_Subtype_Indication
10600 (N : Node_Id; Val : Node_Id); -- Node5
10602 procedure Set_Subtype_Mark
10603 (N : Node_Id; Val : Node_Id); -- Node4
10605 procedure Set_Subtype_Marks
10606 (N : Node_Id; Val : List_Id); -- List2
10608 procedure Set_Suppress_Assignment_Checks
10609 (N : Node_Id; Val : Boolean := True); -- Flag18
10611 procedure Set_Suppress_Loop_Warnings
10612 (N : Node_Id; Val : Boolean := True); -- Flag17
10614 procedure Set_Synchronized_Present
10615 (N : Node_Id; Val : Boolean := True); -- Flag7
10617 procedure Set_Tagged_Present
10618 (N : Node_Id; Val : Boolean := True); -- Flag15
10620 procedure Set_Target_Type
10621 (N : Node_Id; Val : Entity_Id); -- Node2
10623 procedure Set_Task_Definition
10624 (N : Node_Id; Val : Node_Id); -- Node3
10626 procedure Set_Task_Present
10627 (N : Node_Id; Val : Boolean := True); -- Flag5
10629 procedure Set_Then_Actions
10630 (N : Node_Id; Val : List_Id); -- List2
10632 procedure Set_Then_Statements
10633 (N : Node_Id; Val : List_Id); -- List2
10635 procedure Set_Treat_Fixed_As_Integer
10636 (N : Node_Id; Val : Boolean := True); -- Flag14
10638 procedure Set_Triggering_Alternative
10639 (N : Node_Id; Val : Node_Id); -- Node1
10641 procedure Set_Triggering_Statement
10642 (N : Node_Id; Val : Node_Id); -- Node1
10644 procedure Set_TSS_Elist
10645 (N : Node_Id; Val : Elist_Id); -- Elist3
10647 procedure Set_Type_Definition
10648 (N : Node_Id; Val : Node_Id); -- Node3
10650 procedure Set_Uneval_Old_Accept
10651 (N : Node_Id; Val : Boolean := True); -- Flag7
10653 procedure Set_Uneval_Old_Warn
10654 (N : Node_Id; Val : Boolean := True); -- Flag18
10656 procedure Set_Unit
10657 (N : Node_Id; Val : Node_Id); -- Node2
10659 procedure Set_Unknown_Discriminants_Present
10660 (N : Node_Id; Val : Boolean := True); -- Flag13
10662 procedure Set_Unreferenced_In_Spec
10663 (N : Node_Id; Val : Boolean := True); -- Flag7
10665 procedure Set_Variant_Part
10666 (N : Node_Id; Val : Node_Id); -- Node4
10668 procedure Set_Variants
10669 (N : Node_Id; Val : List_Id); -- List1
10671 procedure Set_Visible_Declarations
10672 (N : Node_Id; Val : List_Id); -- List2
10674 procedure Set_Uninitialized_Variable
10675 (N : Node_Id; Val : Node_Id); -- Node3
10677 procedure Set_Used_Operations
10678 (N : Node_Id; Val : Elist_Id); -- Elist5
10680 procedure Set_Was_Originally_Stub
10681 (N : Node_Id; Val : Boolean := True); -- Flag13
10683 procedure Set_Withed_Body
10684 (N : Node_Id; Val : Node_Id); -- Node1
10686 -------------------------
10687 -- Iterator Procedures --
10688 -------------------------
10690 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10692 procedure Next_Entity (N : in out Node_Id);
10693 procedure Next_Named_Actual (N : in out Node_Id);
10694 procedure Next_Rep_Item (N : in out Node_Id);
10695 procedure Next_Use_Clause (N : in out Node_Id);
10697 -------------------------------------------
10698 -- Miscellaneous Tree Access Subprograms --
10699 -------------------------------------------
10701 function End_Location (N : Node_Id) return Source_Ptr;
10702 -- N is an N_If_Statement or N_Case_Statement node, and this function
10703 -- returns the location of the IF token in the END IF sequence by
10704 -- translating the value of the End_Span field.
10706 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10707 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10708 -- the End_Span field to correspond to the given value S. In other words,
10709 -- End_Span is set to the difference between S and Sloc (N), the starting
10710 -- location.
10712 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10713 -- Given an argument to a pragma Arg, this function returns the expression
10714 -- for the argument. This is Arg itself, or, in the case where Arg is a
10715 -- pragma argument association node, the expression from this node.
10717 --------------------------------
10718 -- Node_Kind Membership Tests --
10719 --------------------------------
10721 -- The following functions allow a convenient notation for testing whether
10722 -- a Node_Kind value matches any one of a list of possible values. In each
10723 -- case True is returned if the given T argument is equal to any of the V
10724 -- arguments. Note that there is a similar set of functions defined in
10725 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10727 function Nkind_In
10728 (T : Node_Kind;
10729 V1 : Node_Kind;
10730 V2 : Node_Kind) return Boolean;
10732 function Nkind_In
10733 (T : Node_Kind;
10734 V1 : Node_Kind;
10735 V2 : Node_Kind;
10736 V3 : Node_Kind) return Boolean;
10738 function Nkind_In
10739 (T : Node_Kind;
10740 V1 : Node_Kind;
10741 V2 : Node_Kind;
10742 V3 : Node_Kind;
10743 V4 : Node_Kind) return Boolean;
10745 function Nkind_In
10746 (T : Node_Kind;
10747 V1 : Node_Kind;
10748 V2 : Node_Kind;
10749 V3 : Node_Kind;
10750 V4 : Node_Kind;
10751 V5 : Node_Kind) return Boolean;
10753 function Nkind_In
10754 (T : Node_Kind;
10755 V1 : Node_Kind;
10756 V2 : Node_Kind;
10757 V3 : Node_Kind;
10758 V4 : Node_Kind;
10759 V5 : Node_Kind;
10760 V6 : Node_Kind) return Boolean;
10762 function Nkind_In
10763 (T : Node_Kind;
10764 V1 : Node_Kind;
10765 V2 : Node_Kind;
10766 V3 : Node_Kind;
10767 V4 : Node_Kind;
10768 V5 : Node_Kind;
10769 V6 : Node_Kind;
10770 V7 : Node_Kind) return Boolean;
10772 function Nkind_In
10773 (T : Node_Kind;
10774 V1 : Node_Kind;
10775 V2 : Node_Kind;
10776 V3 : Node_Kind;
10777 V4 : Node_Kind;
10778 V5 : Node_Kind;
10779 V6 : Node_Kind;
10780 V7 : Node_Kind;
10781 V8 : Node_Kind) return Boolean;
10783 function Nkind_In
10784 (T : Node_Kind;
10785 V1 : Node_Kind;
10786 V2 : Node_Kind;
10787 V3 : Node_Kind;
10788 V4 : Node_Kind;
10789 V5 : Node_Kind;
10790 V6 : Node_Kind;
10791 V7 : Node_Kind;
10792 V8 : Node_Kind;
10793 V9 : Node_Kind) return Boolean;
10795 pragma Inline (Nkind_In);
10796 -- Inline all above functions
10798 -----------------------
10799 -- Utility Functions --
10800 -----------------------
10802 function Pragma_Name (N : Node_Id) return Name_Id;
10803 pragma Inline (Pragma_Name);
10804 -- Convenient function to obtain Chars field of Pragma_Identifier
10806 -----------------------------
10807 -- Syntactic Parent Tables --
10808 -----------------------------
10810 -- These tables show for each node, and for each of the five fields,
10811 -- whether the corresponding field is syntactic (True) or semantic (False).
10812 -- Unused entries are also set to False.
10814 subtype Field_Num is Natural range 1 .. 5;
10816 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10818 -- Following entries can be built automatically from the sinfo sources
10819 -- using the makeisf utility (currently this program is in spitbol).
10821 N_Identifier =>
10822 (1 => True, -- Chars (Name1)
10823 2 => False, -- Original_Discriminant (Node2-Sem)
10824 3 => False, -- unused
10825 4 => False, -- Entity (Node4-Sem)
10826 5 => False), -- Etype (Node5-Sem)
10828 N_Integer_Literal =>
10829 (1 => False, -- unused
10830 2 => False, -- Original_Entity (Node2-Sem)
10831 3 => True, -- Intval (Uint3)
10832 4 => False, -- unused
10833 5 => False), -- Etype (Node5-Sem)
10835 N_Real_Literal =>
10836 (1 => False, -- unused
10837 2 => False, -- Original_Entity (Node2-Sem)
10838 3 => True, -- Realval (Ureal3)
10839 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10840 5 => False), -- Etype (Node5-Sem)
10842 N_Character_Literal =>
10843 (1 => True, -- Chars (Name1)
10844 2 => True, -- Char_Literal_Value (Uint2)
10845 3 => False, -- unused
10846 4 => False, -- Entity (Node4-Sem)
10847 5 => False), -- Etype (Node5-Sem)
10849 N_String_Literal =>
10850 (1 => False, -- unused
10851 2 => False, -- unused
10852 3 => True, -- Strval (Str3)
10853 4 => False, -- unused
10854 5 => False), -- Etype (Node5-Sem)
10856 N_Pragma =>
10857 (1 => False, -- Next_Pragma (Node1-Sem)
10858 2 => True, -- Pragma_Argument_Associations (List2)
10859 3 => False, -- unused
10860 4 => True, -- Pragma_Identifier (Node4)
10861 5 => False), -- Next_Rep_Item (Node5-Sem)
10863 N_Pragma_Argument_Association =>
10864 (1 => True, -- Chars (Name1)
10865 2 => False, -- unused
10866 3 => True, -- Expression (Node3)
10867 4 => False, -- unused
10868 5 => False), -- unused
10870 N_Defining_Identifier =>
10871 (1 => True, -- Chars (Name1)
10872 2 => False, -- Next_Entity (Node2-Sem)
10873 3 => False, -- Scope (Node3-Sem)
10874 4 => False, -- unused
10875 5 => False), -- Etype (Node5-Sem)
10877 N_Full_Type_Declaration =>
10878 (1 => True, -- Defining_Identifier (Node1)
10879 2 => False, -- Incomplete_View (Node2-Sem)
10880 3 => True, -- Type_Definition (Node3)
10881 4 => True, -- Discriminant_Specifications (List4)
10882 5 => False), -- unused
10884 N_Subtype_Declaration =>
10885 (1 => True, -- Defining_Identifier (Node1)
10886 2 => False, -- unused
10887 3 => False, -- unused
10888 4 => False, -- Generic_Parent_Type (Node4-Sem)
10889 5 => True), -- Subtype_Indication (Node5)
10891 N_Subtype_Indication =>
10892 (1 => False, -- unused
10893 2 => False, -- unused
10894 3 => True, -- Constraint (Node3)
10895 4 => True, -- Subtype_Mark (Node4)
10896 5 => False), -- Etype (Node5-Sem)
10898 N_Object_Declaration =>
10899 (1 => True, -- Defining_Identifier (Node1)
10900 2 => False, -- Handler_List_Entry (Node2-Sem)
10901 3 => True, -- Expression (Node3)
10902 4 => True, -- Object_Definition (Node4)
10903 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10905 N_Number_Declaration =>
10906 (1 => True, -- Defining_Identifier (Node1)
10907 2 => False, -- unused
10908 3 => True, -- Expression (Node3)
10909 4 => False, -- unused
10910 5 => False), -- unused
10912 N_Derived_Type_Definition =>
10913 (1 => False, -- unused
10914 2 => True, -- Interface_List (List2)
10915 3 => True, -- Record_Extension_Part (Node3)
10916 4 => False, -- unused
10917 5 => True), -- Subtype_Indication (Node5)
10919 N_Range_Constraint =>
10920 (1 => False, -- unused
10921 2 => False, -- unused
10922 3 => False, -- unused
10923 4 => True, -- Range_Expression (Node4)
10924 5 => False), -- unused
10926 N_Range =>
10927 (1 => True, -- Low_Bound (Node1)
10928 2 => True, -- High_Bound (Node2)
10929 3 => False, -- unused
10930 4 => False, -- unused
10931 5 => False), -- Etype (Node5-Sem)
10933 N_Enumeration_Type_Definition =>
10934 (1 => True, -- Literals (List1)
10935 2 => False, -- unused
10936 3 => False, -- unused
10937 4 => True, -- End_Label (Node4)
10938 5 => False), -- unused
10940 N_Defining_Character_Literal =>
10941 (1 => True, -- Chars (Name1)
10942 2 => False, -- Next_Entity (Node2-Sem)
10943 3 => False, -- Scope (Node3-Sem)
10944 4 => False, -- unused
10945 5 => False), -- Etype (Node5-Sem)
10947 N_Signed_Integer_Type_Definition =>
10948 (1 => True, -- Low_Bound (Node1)
10949 2 => True, -- High_Bound (Node2)
10950 3 => False, -- unused
10951 4 => False, -- unused
10952 5 => False), -- unused
10954 N_Modular_Type_Definition =>
10955 (1 => False, -- unused
10956 2 => False, -- unused
10957 3 => True, -- Expression (Node3)
10958 4 => False, -- unused
10959 5 => False), -- unused
10961 N_Floating_Point_Definition =>
10962 (1 => False, -- unused
10963 2 => True, -- Digits_Expression (Node2)
10964 3 => False, -- unused
10965 4 => True, -- Real_Range_Specification (Node4)
10966 5 => False), -- unused
10968 N_Real_Range_Specification =>
10969 (1 => True, -- Low_Bound (Node1)
10970 2 => True, -- High_Bound (Node2)
10971 3 => False, -- unused
10972 4 => False, -- unused
10973 5 => False), -- unused
10975 N_Ordinary_Fixed_Point_Definition =>
10976 (1 => False, -- unused
10977 2 => False, -- unused
10978 3 => True, -- Delta_Expression (Node3)
10979 4 => True, -- Real_Range_Specification (Node4)
10980 5 => False), -- unused
10982 N_Decimal_Fixed_Point_Definition =>
10983 (1 => False, -- unused
10984 2 => True, -- Digits_Expression (Node2)
10985 3 => True, -- Delta_Expression (Node3)
10986 4 => True, -- Real_Range_Specification (Node4)
10987 5 => False), -- unused
10989 N_Digits_Constraint =>
10990 (1 => False, -- unused
10991 2 => True, -- Digits_Expression (Node2)
10992 3 => False, -- unused
10993 4 => True, -- Range_Constraint (Node4)
10994 5 => False), -- unused
10996 N_Unconstrained_Array_Definition =>
10997 (1 => False, -- unused
10998 2 => True, -- Subtype_Marks (List2)
10999 3 => False, -- unused
11000 4 => True, -- Component_Definition (Node4)
11001 5 => False), -- unused
11003 N_Constrained_Array_Definition =>
11004 (1 => False, -- unused
11005 2 => True, -- Discrete_Subtype_Definitions (List2)
11006 3 => False, -- unused
11007 4 => True, -- Component_Definition (Node4)
11008 5 => False), -- unused
11010 N_Component_Definition =>
11011 (1 => False, -- unused
11012 2 => False, -- unused
11013 3 => True, -- Access_Definition (Node3)
11014 4 => False, -- unused
11015 5 => True), -- Subtype_Indication (Node5)
11017 N_Discriminant_Specification =>
11018 (1 => True, -- Defining_Identifier (Node1)
11019 2 => False, -- unused
11020 3 => True, -- Expression (Node3)
11021 4 => False, -- unused
11022 5 => True), -- Discriminant_Type (Node5)
11024 N_Index_Or_Discriminant_Constraint =>
11025 (1 => True, -- Constraints (List1)
11026 2 => False, -- unused
11027 3 => False, -- unused
11028 4 => False, -- unused
11029 5 => False), -- unused
11031 N_Discriminant_Association =>
11032 (1 => True, -- Selector_Names (List1)
11033 2 => False, -- unused
11034 3 => True, -- Expression (Node3)
11035 4 => False, -- unused
11036 5 => False), -- unused
11038 N_Record_Definition =>
11039 (1 => True, -- Component_List (Node1)
11040 2 => True, -- Interface_List (List2)
11041 3 => False, -- unused
11042 4 => True, -- End_Label (Node4)
11043 5 => False), -- unused
11045 N_Component_List =>
11046 (1 => False, -- unused
11047 2 => False, -- unused
11048 3 => True, -- Component_Items (List3)
11049 4 => True, -- Variant_Part (Node4)
11050 5 => False), -- unused
11052 N_Component_Declaration =>
11053 (1 => True, -- Defining_Identifier (Node1)
11054 2 => False, -- unused
11055 3 => True, -- Expression (Node3)
11056 4 => True, -- Component_Definition (Node4)
11057 5 => False), -- unused
11059 N_Variant_Part =>
11060 (1 => True, -- Variants (List1)
11061 2 => True, -- Name (Node2)
11062 3 => False, -- unused
11063 4 => False, -- unused
11064 5 => False), -- unused
11066 N_Variant =>
11067 (1 => True, -- Component_List (Node1)
11068 2 => False, -- Enclosing_Variant (Node2-Sem)
11069 3 => False, -- Present_Expr (Uint3-Sem)
11070 4 => True, -- Discrete_Choices (List4)
11071 5 => False), -- Dcheck_Function (Node5-Sem)
11073 N_Others_Choice =>
11074 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11075 2 => False, -- unused
11076 3 => False, -- unused
11077 4 => False, -- unused
11078 5 => False), -- unused
11080 N_Access_To_Object_Definition =>
11081 (1 => False, -- unused
11082 2 => False, -- unused
11083 3 => False, -- unused
11084 4 => False, -- unused
11085 5 => True), -- Subtype_Indication (Node5)
11087 N_Access_Function_Definition =>
11088 (1 => False, -- unused
11089 2 => False, -- unused
11090 3 => True, -- Parameter_Specifications (List3)
11091 4 => True, -- Result_Definition (Node4)
11092 5 => False), -- unused
11094 N_Access_Procedure_Definition =>
11095 (1 => False, -- unused
11096 2 => False, -- unused
11097 3 => True, -- Parameter_Specifications (List3)
11098 4 => False, -- unused
11099 5 => False), -- unused
11101 N_Access_Definition =>
11102 (1 => False, -- unused
11103 2 => False, -- unused
11104 3 => True, -- Access_To_Subprogram_Definition (Node3)
11105 4 => True, -- Subtype_Mark (Node4)
11106 5 => False), -- unused
11108 N_Incomplete_Type_Declaration =>
11109 (1 => True, -- Defining_Identifier (Node1)
11110 2 => False, -- unused
11111 3 => False, -- unused
11112 4 => True, -- Discriminant_Specifications (List4)
11113 5 => False), -- Premature_Use
11115 N_Explicit_Dereference =>
11116 (1 => False, -- unused
11117 2 => False, -- unused
11118 3 => True, -- Prefix (Node3)
11119 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11120 5 => False), -- Etype (Node5-Sem)
11122 N_Indexed_Component =>
11123 (1 => True, -- Expressions (List1)
11124 2 => False, -- unused
11125 3 => True, -- Prefix (Node3)
11126 4 => False, -- Generalized_Indexing (Node4-Sem)
11127 5 => False), -- Etype (Node5-Sem)
11129 N_Slice =>
11130 (1 => False, -- unused
11131 2 => False, -- unused
11132 3 => True, -- Prefix (Node3)
11133 4 => True, -- Discrete_Range (Node4)
11134 5 => False), -- Etype (Node5-Sem)
11136 N_Selected_Component =>
11137 (1 => False, -- unused
11138 2 => True, -- Selector_Name (Node2)
11139 3 => True, -- Prefix (Node3)
11140 4 => False, -- unused
11141 5 => False), -- Etype (Node5-Sem)
11143 N_Attribute_Reference =>
11144 (1 => True, -- Expressions (List1)
11145 2 => True, -- Attribute_Name (Name2)
11146 3 => True, -- Prefix (Node3)
11147 4 => False, -- Entity (Node4-Sem)
11148 5 => False), -- Etype (Node5-Sem)
11150 N_Aggregate =>
11151 (1 => True, -- Expressions (List1)
11152 2 => True, -- Component_Associations (List2)
11153 3 => False, -- Aggregate_Bounds (Node3-Sem)
11154 4 => False, -- unused
11155 5 => False), -- Etype (Node5-Sem)
11157 N_Component_Association =>
11158 (1 => True, -- Choices (List1)
11159 2 => False, -- Loop_Actions (List2-Sem)
11160 3 => True, -- Expression (Node3)
11161 4 => False, -- unused
11162 5 => False), -- unused
11164 N_Extension_Aggregate =>
11165 (1 => True, -- Expressions (List1)
11166 2 => True, -- Component_Associations (List2)
11167 3 => True, -- Ancestor_Part (Node3)
11168 4 => False, -- unused
11169 5 => False), -- Etype (Node5-Sem)
11171 N_Null =>
11172 (1 => False, -- unused
11173 2 => False, -- unused
11174 3 => False, -- unused
11175 4 => False, -- unused
11176 5 => False), -- Etype (Node5-Sem)
11178 N_And_Then =>
11179 (1 => False, -- Actions (List1-Sem)
11180 2 => True, -- Left_Opnd (Node2)
11181 3 => True, -- Right_Opnd (Node3)
11182 4 => False, -- unused
11183 5 => False), -- Etype (Node5-Sem)
11185 N_Or_Else =>
11186 (1 => False, -- Actions (List1-Sem)
11187 2 => True, -- Left_Opnd (Node2)
11188 3 => True, -- Right_Opnd (Node3)
11189 4 => False, -- unused
11190 5 => False), -- Etype (Node5-Sem)
11192 N_In =>
11193 (1 => False, -- unused
11194 2 => True, -- Left_Opnd (Node2)
11195 3 => True, -- Right_Opnd (Node3)
11196 4 => True, -- Alternatives (List4)
11197 5 => False), -- Etype (Node5-Sem)
11199 N_Not_In =>
11200 (1 => False, -- unused
11201 2 => True, -- Left_Opnd (Node2)
11202 3 => True, -- Right_Opnd (Node3)
11203 4 => True, -- Alternatives (List4)
11204 5 => False), -- Etype (Node5-Sem)
11206 N_Op_And =>
11207 (1 => True, -- Chars (Name1)
11208 2 => True, -- Left_Opnd (Node2)
11209 3 => True, -- Right_Opnd (Node3)
11210 4 => False, -- Entity (Node4-Sem)
11211 5 => False), -- Etype (Node5-Sem)
11213 N_Op_Or =>
11214 (1 => True, -- Chars (Name1)
11215 2 => True, -- Left_Opnd (Node2)
11216 3 => True, -- Right_Opnd (Node3)
11217 4 => False, -- Entity (Node4-Sem)
11218 5 => False), -- Etype (Node5-Sem)
11220 N_Op_Xor =>
11221 (1 => True, -- Chars (Name1)
11222 2 => True, -- Left_Opnd (Node2)
11223 3 => True, -- Right_Opnd (Node3)
11224 4 => False, -- Entity (Node4-Sem)
11225 5 => False), -- Etype (Node5-Sem)
11227 N_Op_Eq =>
11228 (1 => True, -- Chars (Name1)
11229 2 => True, -- Left_Opnd (Node2)
11230 3 => True, -- Right_Opnd (Node3)
11231 4 => False, -- Entity (Node4-Sem)
11232 5 => False), -- Etype (Node5-Sem)
11234 N_Op_Ne =>
11235 (1 => True, -- Chars (Name1)
11236 2 => True, -- Left_Opnd (Node2)
11237 3 => True, -- Right_Opnd (Node3)
11238 4 => False, -- Entity (Node4-Sem)
11239 5 => False), -- Etype (Node5-Sem)
11241 N_Op_Lt =>
11242 (1 => True, -- Chars (Name1)
11243 2 => True, -- Left_Opnd (Node2)
11244 3 => True, -- Right_Opnd (Node3)
11245 4 => False, -- Entity (Node4-Sem)
11246 5 => False), -- Etype (Node5-Sem)
11248 N_Op_Le =>
11249 (1 => True, -- Chars (Name1)
11250 2 => True, -- Left_Opnd (Node2)
11251 3 => True, -- Right_Opnd (Node3)
11252 4 => False, -- Entity (Node4-Sem)
11253 5 => False), -- Etype (Node5-Sem)
11255 N_Op_Gt =>
11256 (1 => True, -- Chars (Name1)
11257 2 => True, -- Left_Opnd (Node2)
11258 3 => True, -- Right_Opnd (Node3)
11259 4 => False, -- Entity (Node4-Sem)
11260 5 => False), -- Etype (Node5-Sem)
11262 N_Op_Ge =>
11263 (1 => True, -- Chars (Name1)
11264 2 => True, -- Left_Opnd (Node2)
11265 3 => True, -- Right_Opnd (Node3)
11266 4 => False, -- Entity (Node4-Sem)
11267 5 => False), -- Etype (Node5-Sem)
11269 N_Op_Add =>
11270 (1 => True, -- Chars (Name1)
11271 2 => True, -- Left_Opnd (Node2)
11272 3 => True, -- Right_Opnd (Node3)
11273 4 => False, -- Entity (Node4-Sem)
11274 5 => False), -- Etype (Node5-Sem)
11276 N_Op_Subtract =>
11277 (1 => True, -- Chars (Name1)
11278 2 => True, -- Left_Opnd (Node2)
11279 3 => True, -- Right_Opnd (Node3)
11280 4 => False, -- Entity (Node4-Sem)
11281 5 => False), -- Etype (Node5-Sem)
11283 N_Op_Concat =>
11284 (1 => True, -- Chars (Name1)
11285 2 => True, -- Left_Opnd (Node2)
11286 3 => True, -- Right_Opnd (Node3)
11287 4 => False, -- Entity (Node4-Sem)
11288 5 => False), -- Etype (Node5-Sem)
11290 N_Op_Multiply =>
11291 (1 => True, -- Chars (Name1)
11292 2 => True, -- Left_Opnd (Node2)
11293 3 => True, -- Right_Opnd (Node3)
11294 4 => False, -- Entity (Node4-Sem)
11295 5 => False), -- Etype (Node5-Sem)
11297 N_Op_Divide =>
11298 (1 => True, -- Chars (Name1)
11299 2 => True, -- Left_Opnd (Node2)
11300 3 => True, -- Right_Opnd (Node3)
11301 4 => False, -- Entity (Node4-Sem)
11302 5 => False), -- Etype (Node5-Sem)
11304 N_Op_Mod =>
11305 (1 => True, -- Chars (Name1)
11306 2 => True, -- Left_Opnd (Node2)
11307 3 => True, -- Right_Opnd (Node3)
11308 4 => False, -- Entity (Node4-Sem)
11309 5 => False), -- Etype (Node5-Sem)
11311 N_Op_Rem =>
11312 (1 => True, -- Chars (Name1)
11313 2 => True, -- Left_Opnd (Node2)
11314 3 => True, -- Right_Opnd (Node3)
11315 4 => False, -- Entity (Node4-Sem)
11316 5 => False), -- Etype (Node5-Sem)
11318 N_Op_Expon =>
11319 (1 => True, -- Chars (Name1)
11320 2 => True, -- Left_Opnd (Node2)
11321 3 => True, -- Right_Opnd (Node3)
11322 4 => False, -- Entity (Node4-Sem)
11323 5 => False), -- Etype (Node5-Sem)
11325 N_Op_Plus =>
11326 (1 => True, -- Chars (Name1)
11327 2 => False, -- unused
11328 3 => True, -- Right_Opnd (Node3)
11329 4 => False, -- Entity (Node4-Sem)
11330 5 => False), -- Etype (Node5-Sem)
11332 N_Op_Minus =>
11333 (1 => True, -- Chars (Name1)
11334 2 => False, -- unused
11335 3 => True, -- Right_Opnd (Node3)
11336 4 => False, -- Entity (Node4-Sem)
11337 5 => False), -- Etype (Node5-Sem)
11339 N_Op_Abs =>
11340 (1 => True, -- Chars (Name1)
11341 2 => False, -- unused
11342 3 => True, -- Right_Opnd (Node3)
11343 4 => False, -- Entity (Node4-Sem)
11344 5 => False), -- Etype (Node5-Sem)
11346 N_Op_Not =>
11347 (1 => True, -- Chars (Name1)
11348 2 => False, -- unused
11349 3 => True, -- Right_Opnd (Node3)
11350 4 => False, -- Entity (Node4-Sem)
11351 5 => False), -- Etype (Node5-Sem)
11353 N_Type_Conversion =>
11354 (1 => False, -- unused
11355 2 => False, -- unused
11356 3 => True, -- Expression (Node3)
11357 4 => True, -- Subtype_Mark (Node4)
11358 5 => False), -- Etype (Node5-Sem)
11360 N_Qualified_Expression =>
11361 (1 => False, -- unused
11362 2 => False, -- unused
11363 3 => True, -- Expression (Node3)
11364 4 => True, -- Subtype_Mark (Node4)
11365 5 => False), -- Etype (Node5-Sem)
11367 N_Quantified_Expression =>
11368 (1 => True, -- Condition (Node1)
11369 2 => True, -- Iterator_Specification
11370 3 => False, -- unused
11371 4 => True, -- Loop_Parameter_Specification (Node4)
11372 5 => False), -- Etype (Node5-Sem)
11374 N_Allocator =>
11375 (1 => False, -- Storage_Pool (Node1-Sem)
11376 2 => False, -- Procedure_To_Call (Node2-Sem)
11377 3 => True, -- Expression (Node3)
11378 4 => True, -- Subpool_Handle_Name (Node4)
11379 5 => False), -- Etype (Node5-Sem)
11381 N_Null_Statement =>
11382 (1 => False, -- unused
11383 2 => False, -- unused
11384 3 => False, -- unused
11385 4 => False, -- unused
11386 5 => False), -- unused
11388 N_Label =>
11389 (1 => True, -- Identifier (Node1)
11390 2 => False, -- unused
11391 3 => False, -- unused
11392 4 => False, -- unused
11393 5 => False), -- unused
11395 N_Assignment_Statement =>
11396 (1 => False, -- unused
11397 2 => True, -- Name (Node2)
11398 3 => True, -- Expression (Node3)
11399 4 => False, -- unused
11400 5 => False), -- unused
11402 N_If_Statement =>
11403 (1 => True, -- Condition (Node1)
11404 2 => True, -- Then_Statements (List2)
11405 3 => True, -- Elsif_Parts (List3)
11406 4 => True, -- Else_Statements (List4)
11407 5 => True), -- End_Span (Uint5)
11409 N_Elsif_Part =>
11410 (1 => True, -- Condition (Node1)
11411 2 => True, -- Then_Statements (List2)
11412 3 => False, -- Condition_Actions (List3-Sem)
11413 4 => False, -- unused
11414 5 => False), -- unused
11416 N_Case_Expression =>
11417 (1 => False, -- unused
11418 2 => False, -- unused
11419 3 => True, -- Expression (Node3)
11420 4 => True, -- Alternatives (List4)
11421 5 => False), -- unused
11423 N_Case_Expression_Alternative =>
11424 (1 => False, -- Actions (List1-Sem)
11425 2 => False, -- unused
11426 3 => True, -- Statements (List3)
11427 4 => True, -- Expression (Node4)
11428 5 => False), -- unused
11430 N_Case_Statement =>
11431 (1 => False, -- unused
11432 2 => False, -- unused
11433 3 => True, -- Expression (Node3)
11434 4 => True, -- Alternatives (List4)
11435 5 => True), -- End_Span (Uint5)
11437 N_Case_Statement_Alternative =>
11438 (1 => False, -- unused
11439 2 => False, -- unused
11440 3 => True, -- Statements (List3)
11441 4 => True, -- Discrete_Choices (List4)
11442 5 => False), -- unused
11444 N_Loop_Statement =>
11445 (1 => True, -- Identifier (Node1)
11446 2 => True, -- Iteration_Scheme (Node2)
11447 3 => True, -- Statements (List3)
11448 4 => True, -- End_Label (Node4)
11449 5 => False), -- unused
11451 N_Iteration_Scheme =>
11452 (1 => True, -- Condition (Node1)
11453 2 => True, -- Iterator_Specification (Node2)
11454 3 => False, -- Condition_Actions (List3-Sem)
11455 4 => True, -- Loop_Parameter_Specification (Node4)
11456 5 => False), -- unused
11458 N_Loop_Parameter_Specification =>
11459 (1 => True, -- Defining_Identifier (Node1)
11460 2 => False, -- unused
11461 3 => False, -- unused
11462 4 => True, -- Discrete_Subtype_Definition (Node4)
11463 5 => False), -- unused
11465 N_Iterator_Specification =>
11466 (1 => True, -- Defining_Identifier (Node1)
11467 2 => True, -- Name (Node2)
11468 3 => False, -- Unused
11469 4 => False, -- Unused
11470 5 => True), -- Subtype_Indication (Node5)
11472 N_Block_Statement =>
11473 (1 => True, -- Identifier (Node1)
11474 2 => True, -- Declarations (List2)
11475 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11476 4 => True, -- Handled_Statement_Sequence (Node4)
11477 5 => False), -- unused
11479 N_Exit_Statement =>
11480 (1 => True, -- Condition (Node1)
11481 2 => True, -- Name (Node2)
11482 3 => False, -- unused
11483 4 => False, -- unused
11484 5 => False), -- unused
11486 N_Goto_Statement =>
11487 (1 => False, -- unused
11488 2 => True, -- Name (Node2)
11489 3 => False, -- unused
11490 4 => False, -- unused
11491 5 => False), -- unused
11493 N_Subprogram_Declaration =>
11494 (1 => True, -- Specification (Node1)
11495 2 => False, -- unused
11496 3 => False, -- Body_To_Inline (Node3-Sem)
11497 4 => False, -- Parent_Spec (Node4-Sem)
11498 5 => False), -- Corresponding_Body (Node5-Sem)
11500 N_Abstract_Subprogram_Declaration =>
11501 (1 => True, -- Specification (Node1)
11502 2 => False, -- unused
11503 3 => False, -- unused
11504 4 => False, -- unused
11505 5 => False), -- unused
11507 N_Function_Specification =>
11508 (1 => True, -- Defining_Unit_Name (Node1)
11509 2 => False, -- unused
11510 3 => True, -- Parameter_Specifications (List3)
11511 4 => True, -- Result_Definition (Node4)
11512 5 => False), -- Generic_Parent (Node5-Sem)
11514 N_Procedure_Specification =>
11515 (1 => True, -- Defining_Unit_Name (Node1)
11516 2 => False, -- unused
11517 3 => True, -- Parameter_Specifications (List3)
11518 4 => False, -- unused
11519 5 => False), -- Generic_Parent (Node5-Sem)
11521 N_Designator =>
11522 (1 => True, -- Identifier (Node1)
11523 2 => True, -- Name (Node2)
11524 3 => False, -- unused
11525 4 => False, -- unused
11526 5 => False), -- unused
11528 N_Defining_Program_Unit_Name =>
11529 (1 => True, -- Defining_Identifier (Node1)
11530 2 => True, -- Name (Node2)
11531 3 => False, -- unused
11532 4 => False, -- unused
11533 5 => False), -- unused
11535 N_Operator_Symbol =>
11536 (1 => True, -- Chars (Name1)
11537 2 => False, -- unused
11538 3 => True, -- Strval (Str3)
11539 4 => False, -- Entity (Node4-Sem)
11540 5 => False), -- Etype (Node5-Sem)
11542 N_Defining_Operator_Symbol =>
11543 (1 => True, -- Chars (Name1)
11544 2 => False, -- Next_Entity (Node2-Sem)
11545 3 => False, -- Scope (Node3-Sem)
11546 4 => False, -- unused
11547 5 => False), -- Etype (Node5-Sem)
11549 N_Parameter_Specification =>
11550 (1 => True, -- Defining_Identifier (Node1)
11551 2 => True, -- Parameter_Type (Node2)
11552 3 => True, -- Expression (Node3)
11553 4 => False, -- unused
11554 5 => False), -- Default_Expression (Node5-Sem)
11556 N_Subprogram_Body =>
11557 (1 => True, -- Specification (Node1)
11558 2 => True, -- Declarations (List2)
11559 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11560 4 => True, -- Handled_Statement_Sequence (Node4)
11561 5 => False), -- Corresponding_Spec (Node5-Sem)
11563 N_Expression_Function =>
11564 (1 => True, -- Specification (Node1)
11565 2 => False, -- unused
11566 3 => True, -- Expression (Node3)
11567 4 => False, -- unused
11568 5 => False), -- unused
11570 N_Procedure_Call_Statement =>
11571 (1 => False, -- Controlling_Argument (Node1-Sem)
11572 2 => True, -- Name (Node2)
11573 3 => True, -- Parameter_Associations (List3)
11574 4 => False, -- First_Named_Actual (Node4-Sem)
11575 5 => False), -- Etype (Node5-Sem)
11577 N_Function_Call =>
11578 (1 => False, -- Controlling_Argument (Node1-Sem)
11579 2 => True, -- Name (Node2)
11580 3 => True, -- Parameter_Associations (List3)
11581 4 => False, -- First_Named_Actual (Node4-Sem)
11582 5 => False), -- Etype (Node5-Sem)
11584 N_Parameter_Association =>
11585 (1 => False, -- unused
11586 2 => True, -- Selector_Name (Node2)
11587 3 => True, -- Explicit_Actual_Parameter (Node3)
11588 4 => False, -- Next_Named_Actual (Node4-Sem)
11589 5 => False), -- unused
11591 N_Simple_Return_Statement =>
11592 (1 => False, -- Storage_Pool (Node1-Sem)
11593 2 => False, -- Procedure_To_Call (Node2-Sem)
11594 3 => True, -- Expression (Node3)
11595 4 => False, -- unused
11596 5 => False), -- Return_Statement_Entity (Node5-Sem)
11598 N_Extended_Return_Statement =>
11599 (1 => False, -- Storage_Pool (Node1-Sem)
11600 2 => False, -- Procedure_To_Call (Node2-Sem)
11601 3 => True, -- Return_Object_Declarations (List3)
11602 4 => True, -- Handled_Statement_Sequence (Node4)
11603 5 => False), -- Return_Statement_Entity (Node5-Sem)
11605 N_Package_Declaration =>
11606 (1 => True, -- Specification (Node1)
11607 2 => False, -- unused
11608 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11609 4 => False, -- Parent_Spec (Node4-Sem)
11610 5 => False), -- Corresponding_Body (Node5-Sem)
11612 N_Package_Specification =>
11613 (1 => True, -- Defining_Unit_Name (Node1)
11614 2 => True, -- Visible_Declarations (List2)
11615 3 => True, -- Private_Declarations (List3)
11616 4 => True, -- End_Label (Node4)
11617 5 => False), -- Generic_Parent (Node5-Sem)
11619 N_Package_Body =>
11620 (1 => True, -- Defining_Unit_Name (Node1)
11621 2 => True, -- Declarations (List2)
11622 3 => False, -- unused
11623 4 => True, -- Handled_Statement_Sequence (Node4)
11624 5 => False), -- Corresponding_Spec (Node5-Sem)
11626 N_Private_Type_Declaration =>
11627 (1 => True, -- Defining_Identifier (Node1)
11628 2 => False, -- unused
11629 3 => False, -- unused
11630 4 => True, -- Discriminant_Specifications (List4)
11631 5 => False), -- unused
11633 N_Private_Extension_Declaration =>
11634 (1 => True, -- Defining_Identifier (Node1)
11635 2 => True, -- Interface_List (List2)
11636 3 => False, -- unused
11637 4 => True, -- Discriminant_Specifications (List4)
11638 5 => True), -- Subtype_Indication (Node5)
11640 N_Use_Package_Clause =>
11641 (1 => False, -- unused
11642 2 => True, -- Names (List2)
11643 3 => False, -- Next_Use_Clause (Node3-Sem)
11644 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11645 5 => False), -- unused
11647 N_Use_Type_Clause =>
11648 (1 => False, -- unused
11649 2 => True, -- Subtype_Marks (List2)
11650 3 => False, -- Next_Use_Clause (Node3-Sem)
11651 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
11652 5 => False), -- unused
11654 N_Object_Renaming_Declaration =>
11655 (1 => True, -- Defining_Identifier (Node1)
11656 2 => True, -- Name (Node2)
11657 3 => True, -- Access_Definition (Node3)
11658 4 => True, -- Subtype_Mark (Node4)
11659 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11661 N_Exception_Renaming_Declaration =>
11662 (1 => True, -- Defining_Identifier (Node1)
11663 2 => True, -- Name (Node2)
11664 3 => False, -- unused
11665 4 => False, -- unused
11666 5 => False), -- unused
11668 N_Package_Renaming_Declaration =>
11669 (1 => True, -- Defining_Unit_Name (Node1)
11670 2 => True, -- Name (Node2)
11671 3 => False, -- unused
11672 4 => False, -- Parent_Spec (Node4-Sem)
11673 5 => False), -- unused
11675 N_Subprogram_Renaming_Declaration =>
11676 (1 => True, -- Specification (Node1)
11677 2 => True, -- Name (Node2)
11678 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11679 4 => False, -- Parent_Spec (Node4-Sem)
11680 5 => False), -- Corresponding_Spec (Node5-Sem)
11682 N_Generic_Package_Renaming_Declaration =>
11683 (1 => True, -- Defining_Unit_Name (Node1)
11684 2 => True, -- Name (Node2)
11685 3 => False, -- unused
11686 4 => False, -- Parent_Spec (Node4-Sem)
11687 5 => False), -- unused
11689 N_Generic_Procedure_Renaming_Declaration =>
11690 (1 => True, -- Defining_Unit_Name (Node1)
11691 2 => True, -- Name (Node2)
11692 3 => False, -- unused
11693 4 => False, -- Parent_Spec (Node4-Sem)
11694 5 => False), -- unused
11696 N_Generic_Function_Renaming_Declaration =>
11697 (1 => True, -- Defining_Unit_Name (Node1)
11698 2 => True, -- Name (Node2)
11699 3 => False, -- unused
11700 4 => False, -- Parent_Spec (Node4-Sem)
11701 5 => False), -- unused
11703 N_Task_Type_Declaration =>
11704 (1 => True, -- Defining_Identifier (Node1)
11705 2 => True, -- Interface_List (List2)
11706 3 => True, -- Task_Definition (Node3)
11707 4 => True, -- Discriminant_Specifications (List4)
11708 5 => False), -- Corresponding_Body (Node5-Sem)
11710 N_Single_Task_Declaration =>
11711 (1 => True, -- Defining_Identifier (Node1)
11712 2 => True, -- Interface_List (List2)
11713 3 => True, -- Task_Definition (Node3)
11714 4 => False, -- unused
11715 5 => False), -- unused
11717 N_Task_Definition =>
11718 (1 => False, -- unused
11719 2 => True, -- Visible_Declarations (List2)
11720 3 => True, -- Private_Declarations (List3)
11721 4 => True, -- End_Label (Node4)
11722 5 => False), -- unused
11724 N_Task_Body =>
11725 (1 => True, -- Defining_Identifier (Node1)
11726 2 => True, -- Declarations (List2)
11727 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11728 4 => True, -- Handled_Statement_Sequence (Node4)
11729 5 => False), -- Corresponding_Spec (Node5-Sem)
11731 N_Protected_Type_Declaration =>
11732 (1 => True, -- Defining_Identifier (Node1)
11733 2 => True, -- Interface_List (List2)
11734 3 => True, -- Protected_Definition (Node3)
11735 4 => True, -- Discriminant_Specifications (List4)
11736 5 => False), -- Corresponding_Body (Node5-Sem)
11738 N_Single_Protected_Declaration =>
11739 (1 => True, -- Defining_Identifier (Node1)
11740 2 => True, -- Interface_List (List2)
11741 3 => True, -- Protected_Definition (Node3)
11742 4 => False, -- unused
11743 5 => False), -- unused
11745 N_Protected_Definition =>
11746 (1 => False, -- unused
11747 2 => True, -- Visible_Declarations (List2)
11748 3 => True, -- Private_Declarations (List3)
11749 4 => True, -- End_Label (Node4)
11750 5 => False), -- unused
11752 N_Protected_Body =>
11753 (1 => True, -- Defining_Identifier (Node1)
11754 2 => True, -- Declarations (List2)
11755 3 => False, -- unused
11756 4 => True, -- End_Label (Node4)
11757 5 => False), -- Corresponding_Spec (Node5-Sem)
11759 N_Entry_Declaration =>
11760 (1 => True, -- Defining_Identifier (Node1)
11761 2 => False, -- unused
11762 3 => True, -- Parameter_Specifications (List3)
11763 4 => True, -- Discrete_Subtype_Definition (Node4)
11764 5 => False), -- Corresponding_Body (Node5-Sem)
11766 N_Accept_Statement =>
11767 (1 => True, -- Entry_Direct_Name (Node1)
11768 2 => True, -- Declarations (List2)
11769 3 => True, -- Parameter_Specifications (List3)
11770 4 => True, -- Handled_Statement_Sequence (Node4)
11771 5 => True), -- Entry_Index (Node5)
11773 N_Entry_Body =>
11774 (1 => True, -- Defining_Identifier (Node1)
11775 2 => True, -- Declarations (List2)
11776 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11777 4 => True, -- Handled_Statement_Sequence (Node4)
11778 5 => True), -- Entry_Body_Formal_Part (Node5)
11780 N_Entry_Body_Formal_Part =>
11781 (1 => True, -- Condition (Node1)
11782 2 => False, -- unused
11783 3 => True, -- Parameter_Specifications (List3)
11784 4 => True, -- Entry_Index_Specification (Node4)
11785 5 => False), -- unused
11787 N_Entry_Index_Specification =>
11788 (1 => True, -- Defining_Identifier (Node1)
11789 2 => False, -- unused
11790 3 => False, -- unused
11791 4 => True, -- Discrete_Subtype_Definition (Node4)
11792 5 => False), -- unused
11794 N_Entry_Call_Statement =>
11795 (1 => False, -- unused
11796 2 => True, -- Name (Node2)
11797 3 => True, -- Parameter_Associations (List3)
11798 4 => False, -- First_Named_Actual (Node4-Sem)
11799 5 => False), -- unused
11801 N_Requeue_Statement =>
11802 (1 => False, -- unused
11803 2 => True, -- Name (Node2)
11804 3 => False, -- unused
11805 4 => False, -- unused
11806 5 => False), -- unused
11808 N_Delay_Until_Statement =>
11809 (1 => False, -- unused
11810 2 => False, -- unused
11811 3 => True, -- Expression (Node3)
11812 4 => False, -- unused
11813 5 => False), -- unused
11815 N_Delay_Relative_Statement =>
11816 (1 => False, -- unused
11817 2 => False, -- unused
11818 3 => True, -- Expression (Node3)
11819 4 => False, -- unused
11820 5 => False), -- unused
11822 N_Selective_Accept =>
11823 (1 => True, -- Select_Alternatives (List1)
11824 2 => False, -- unused
11825 3 => False, -- unused
11826 4 => True, -- Else_Statements (List4)
11827 5 => False), -- unused
11829 N_Accept_Alternative =>
11830 (1 => True, -- Condition (Node1)
11831 2 => True, -- Accept_Statement (Node2)
11832 3 => True, -- Statements (List3)
11833 4 => True, -- Pragmas_Before (List4)
11834 5 => False), -- Accept_Handler_Records (List5-Sem)
11836 N_Delay_Alternative =>
11837 (1 => True, -- Condition (Node1)
11838 2 => True, -- Delay_Statement (Node2)
11839 3 => True, -- Statements (List3)
11840 4 => True, -- Pragmas_Before (List4)
11841 5 => False), -- unused
11843 N_Terminate_Alternative =>
11844 (1 => True, -- Condition (Node1)
11845 2 => False, -- unused
11846 3 => False, -- unused
11847 4 => True, -- Pragmas_Before (List4)
11848 5 => True), -- Pragmas_After (List5)
11850 N_Timed_Entry_Call =>
11851 (1 => True, -- Entry_Call_Alternative (Node1)
11852 2 => False, -- unused
11853 3 => False, -- unused
11854 4 => True, -- Delay_Alternative (Node4)
11855 5 => False), -- unused
11857 N_Entry_Call_Alternative =>
11858 (1 => True, -- Entry_Call_Statement (Node1)
11859 2 => False, -- unused
11860 3 => True, -- Statements (List3)
11861 4 => True, -- Pragmas_Before (List4)
11862 5 => False), -- unused
11864 N_Conditional_Entry_Call =>
11865 (1 => True, -- Entry_Call_Alternative (Node1)
11866 2 => False, -- unused
11867 3 => False, -- unused
11868 4 => True, -- Else_Statements (List4)
11869 5 => False), -- unused
11871 N_Asynchronous_Select =>
11872 (1 => True, -- Triggering_Alternative (Node1)
11873 2 => True, -- Abortable_Part (Node2)
11874 3 => False, -- unused
11875 4 => False, -- unused
11876 5 => False), -- unused
11878 N_Triggering_Alternative =>
11879 (1 => True, -- Triggering_Statement (Node1)
11880 2 => False, -- unused
11881 3 => True, -- Statements (List3)
11882 4 => True, -- Pragmas_Before (List4)
11883 5 => False), -- unused
11885 N_Abortable_Part =>
11886 (1 => False, -- unused
11887 2 => False, -- unused
11888 3 => True, -- Statements (List3)
11889 4 => False, -- unused
11890 5 => False), -- unused
11892 N_Abort_Statement =>
11893 (1 => False, -- unused
11894 2 => True, -- Names (List2)
11895 3 => False, -- unused
11896 4 => False, -- unused
11897 5 => False), -- unused
11899 N_Compilation_Unit =>
11900 (1 => True, -- Context_Items (List1)
11901 2 => True, -- Unit (Node2)
11902 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11903 4 => False, -- Library_Unit (Node4-Sem)
11904 5 => True), -- Aux_Decls_Node (Node5)
11906 N_Compilation_Unit_Aux =>
11907 (1 => True, -- Actions (List1)
11908 2 => True, -- Declarations (List2)
11909 3 => False, -- Default_Storage_Pool (Node3)
11910 4 => True, -- Config_Pragmas (List4)
11911 5 => True), -- Pragmas_After (List5)
11913 N_With_Clause =>
11914 (1 => False, -- unused
11915 2 => True, -- Name (Node2)
11916 3 => False, -- unused
11917 4 => False, -- Library_Unit (Node4-Sem)
11918 5 => False), -- Corresponding_Spec (Node5-Sem)
11920 N_Subprogram_Body_Stub =>
11921 (1 => True, -- Specification (Node1)
11922 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11923 3 => False, -- unused
11924 4 => False, -- Library_Unit (Node4-Sem)
11925 5 => False), -- Corresponding_Body (Node5-Sem)
11927 N_Package_Body_Stub =>
11928 (1 => True, -- Defining_Identifier (Node1)
11929 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11930 3 => False, -- unused
11931 4 => False, -- Library_Unit (Node4-Sem)
11932 5 => False), -- Corresponding_Body (Node5-Sem)
11934 N_Task_Body_Stub =>
11935 (1 => True, -- Defining_Identifier (Node1)
11936 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11937 3 => False, -- unused
11938 4 => False, -- Library_Unit (Node4-Sem)
11939 5 => False), -- Corresponding_Body (Node5-Sem)
11941 N_Protected_Body_Stub =>
11942 (1 => True, -- Defining_Identifier (Node1)
11943 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
11944 3 => False, -- unused
11945 4 => False, -- Library_Unit (Node4-Sem)
11946 5 => False), -- Corresponding_Body (Node5-Sem)
11948 N_Subunit =>
11949 (1 => True, -- Proper_Body (Node1)
11950 2 => True, -- Name (Node2)
11951 3 => False, -- Corresponding_Stub (Node3-Sem)
11952 4 => False, -- unused
11953 5 => False), -- unused
11955 N_Exception_Declaration =>
11956 (1 => True, -- Defining_Identifier (Node1)
11957 2 => False, -- unused
11958 3 => False, -- Expression (Node3-Sem)
11959 4 => False, -- unused
11960 5 => False), -- unused
11962 N_Handled_Sequence_Of_Statements =>
11963 (1 => True, -- At_End_Proc (Node1)
11964 2 => False, -- First_Real_Statement (Node2-Sem)
11965 3 => True, -- Statements (List3)
11966 4 => True, -- End_Label (Node4)
11967 5 => True), -- Exception_Handlers (List5)
11969 N_Exception_Handler =>
11970 (1 => False, -- Local_Raise_Statements (Elist1)
11971 2 => True, -- Choice_Parameter (Node2)
11972 3 => True, -- Statements (List3)
11973 4 => True, -- Exception_Choices (List4)
11974 5 => False), -- Exception_Label (Node5)
11976 N_Raise_Statement =>
11977 (1 => False, -- unused
11978 2 => True, -- Name (Node2)
11979 3 => True, -- Expression (Node3)
11980 4 => False, -- unused
11981 5 => False), -- unused
11983 N_Raise_Expression =>
11984 (1 => False, -- unused
11985 2 => True, -- Name (Node2)
11986 3 => True, -- Expression (Node3)
11987 4 => False, -- unused
11988 5 => False), -- Etype (Node5-Sem)
11990 N_Generic_Subprogram_Declaration =>
11991 (1 => True, -- Specification (Node1)
11992 2 => True, -- Generic_Formal_Declarations (List2)
11993 3 => False, -- unused
11994 4 => False, -- Parent_Spec (Node4-Sem)
11995 5 => False), -- Corresponding_Body (Node5-Sem)
11997 N_Generic_Package_Declaration =>
11998 (1 => True, -- Specification (Node1)
11999 2 => True, -- Generic_Formal_Declarations (List2)
12000 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12001 4 => False, -- Parent_Spec (Node4-Sem)
12002 5 => False), -- Corresponding_Body (Node5-Sem)
12004 N_Package_Instantiation =>
12005 (1 => True, -- Defining_Unit_Name (Node1)
12006 2 => True, -- Name (Node2)
12007 3 => True, -- Generic_Associations (List3)
12008 4 => False, -- Parent_Spec (Node4-Sem)
12009 5 => False), -- Instance_Spec (Node5-Sem)
12011 N_Procedure_Instantiation =>
12012 (1 => True, -- Defining_Unit_Name (Node1)
12013 2 => True, -- Name (Node2)
12014 3 => True, -- Generic_Associations (List3)
12015 4 => False, -- Parent_Spec (Node4-Sem)
12016 5 => False), -- Instance_Spec (Node5-Sem)
12018 N_Function_Instantiation =>
12019 (1 => True, -- Defining_Unit_Name (Node1)
12020 2 => True, -- Name (Node2)
12021 3 => True, -- Generic_Associations (List3)
12022 4 => False, -- Parent_Spec (Node4-Sem)
12023 5 => False), -- Instance_Spec (Node5-Sem)
12025 N_Generic_Association =>
12026 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12027 2 => True, -- Selector_Name (Node2)
12028 3 => False, -- unused
12029 4 => False, -- unused
12030 5 => False), -- unused
12032 N_Formal_Object_Declaration =>
12033 (1 => True, -- Defining_Identifier (Node1)
12034 2 => False, -- unused
12035 3 => True, -- Access_Definition (Node3)
12036 4 => True, -- Subtype_Mark (Node4)
12037 5 => True), -- Default_Expression (Node5)
12039 N_Formal_Type_Declaration =>
12040 (1 => True, -- Defining_Identifier (Node1)
12041 2 => False, -- unused
12042 3 => True, -- Formal_Type_Definition (Node3)
12043 4 => True, -- Discriminant_Specifications (List4)
12044 5 => False), -- unused
12046 N_Formal_Private_Type_Definition =>
12047 (1 => False, -- unused
12048 2 => False, -- unused
12049 3 => False, -- unused
12050 4 => False, -- unused
12051 5 => False), -- unused
12053 N_Formal_Incomplete_Type_Definition =>
12054 (1 => False, -- unused
12055 2 => False, -- unused
12056 3 => False, -- unused
12057 4 => False, -- unused
12058 5 => False), -- unused
12060 N_Formal_Derived_Type_Definition =>
12061 (1 => False, -- unused
12062 2 => True, -- Interface_List (List2)
12063 3 => False, -- unused
12064 4 => True, -- Subtype_Mark (Node4)
12065 5 => False), -- unused
12067 N_Formal_Discrete_Type_Definition =>
12068 (1 => False, -- unused
12069 2 => False, -- unused
12070 3 => False, -- unused
12071 4 => False, -- unused
12072 5 => False), -- unused
12074 N_Formal_Signed_Integer_Type_Definition =>
12075 (1 => False, -- unused
12076 2 => False, -- unused
12077 3 => False, -- unused
12078 4 => False, -- unused
12079 5 => False), -- unused
12081 N_Formal_Modular_Type_Definition =>
12082 (1 => False, -- unused
12083 2 => False, -- unused
12084 3 => False, -- unused
12085 4 => False, -- unused
12086 5 => False), -- unused
12088 N_Formal_Floating_Point_Definition =>
12089 (1 => False, -- unused
12090 2 => False, -- unused
12091 3 => False, -- unused
12092 4 => False, -- unused
12093 5 => False), -- unused
12095 N_Formal_Ordinary_Fixed_Point_Definition =>
12096 (1 => False, -- unused
12097 2 => False, -- unused
12098 3 => False, -- unused
12099 4 => False, -- unused
12100 5 => False), -- unused
12102 N_Formal_Decimal_Fixed_Point_Definition =>
12103 (1 => False, -- unused
12104 2 => False, -- unused
12105 3 => False, -- unused
12106 4 => False, -- unused
12107 5 => False), -- unused
12109 N_Formal_Concrete_Subprogram_Declaration =>
12110 (1 => True, -- Specification (Node1)
12111 2 => True, -- Default_Name (Node2)
12112 3 => False, -- unused
12113 4 => False, -- unused
12114 5 => False), -- unused
12116 N_Formal_Abstract_Subprogram_Declaration =>
12117 (1 => True, -- Specification (Node1)
12118 2 => True, -- Default_Name (Node2)
12119 3 => False, -- unused
12120 4 => False, -- unused
12121 5 => False), -- unused
12123 N_Formal_Package_Declaration =>
12124 (1 => True, -- Defining_Identifier (Node1)
12125 2 => True, -- Name (Node2)
12126 3 => True, -- Generic_Associations (List3)
12127 4 => False, -- unused
12128 5 => False), -- Instance_Spec (Node5-Sem)
12130 N_Attribute_Definition_Clause =>
12131 (1 => True, -- Chars (Name1)
12132 2 => True, -- Name (Node2)
12133 3 => True, -- Expression (Node3)
12134 4 => False, -- unused
12135 5 => False), -- Next_Rep_Item (Node5-Sem)
12137 N_Aspect_Specification =>
12138 (1 => True, -- Identifier (Node1)
12139 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12140 3 => True, -- Expression (Node3)
12141 4 => False, -- Entity (Node4-Sem)
12142 5 => False), -- Next_Rep_Item (Node5-Sem)
12144 N_Enumeration_Representation_Clause =>
12145 (1 => True, -- Identifier (Node1)
12146 2 => False, -- unused
12147 3 => True, -- Array_Aggregate (Node3)
12148 4 => False, -- unused
12149 5 => False), -- Next_Rep_Item (Node5-Sem)
12151 N_Record_Representation_Clause =>
12152 (1 => True, -- Identifier (Node1)
12153 2 => True, -- Mod_Clause (Node2)
12154 3 => True, -- Component_Clauses (List3)
12155 4 => False, -- unused
12156 5 => False), -- Next_Rep_Item (Node5-Sem)
12158 N_Component_Clause =>
12159 (1 => True, -- Component_Name (Node1)
12160 2 => True, -- Position (Node2)
12161 3 => True, -- First_Bit (Node3)
12162 4 => True, -- Last_Bit (Node4)
12163 5 => False), -- unused
12165 N_Code_Statement =>
12166 (1 => False, -- unused
12167 2 => False, -- unused
12168 3 => True, -- Expression (Node3)
12169 4 => False, -- unused
12170 5 => False), -- unused
12172 N_Op_Rotate_Left =>
12173 (1 => True, -- Chars (Name1)
12174 2 => True, -- Left_Opnd (Node2)
12175 3 => True, -- Right_Opnd (Node3)
12176 4 => False, -- Entity (Node4-Sem)
12177 5 => False), -- Etype (Node5-Sem)
12179 N_Op_Rotate_Right =>
12180 (1 => True, -- Chars (Name1)
12181 2 => True, -- Left_Opnd (Node2)
12182 3 => True, -- Right_Opnd (Node3)
12183 4 => False, -- Entity (Node4-Sem)
12184 5 => False), -- Etype (Node5-Sem)
12186 N_Op_Shift_Left =>
12187 (1 => True, -- Chars (Name1)
12188 2 => True, -- Left_Opnd (Node2)
12189 3 => True, -- Right_Opnd (Node3)
12190 4 => False, -- Entity (Node4-Sem)
12191 5 => False), -- Etype (Node5-Sem)
12193 N_Op_Shift_Right_Arithmetic =>
12194 (1 => True, -- Chars (Name1)
12195 2 => True, -- Left_Opnd (Node2)
12196 3 => True, -- Right_Opnd (Node3)
12197 4 => False, -- Entity (Node4-Sem)
12198 5 => False), -- Etype (Node5-Sem)
12200 N_Op_Shift_Right =>
12201 (1 => True, -- Chars (Name1)
12202 2 => True, -- Left_Opnd (Node2)
12203 3 => True, -- Right_Opnd (Node3)
12204 4 => False, -- Entity (Node4-Sem)
12205 5 => False), -- Etype (Node5-Sem)
12207 N_Delta_Constraint =>
12208 (1 => False, -- unused
12209 2 => False, -- unused
12210 3 => True, -- Delta_Expression (Node3)
12211 4 => True, -- Range_Constraint (Node4)
12212 5 => False), -- unused
12214 N_At_Clause =>
12215 (1 => True, -- Identifier (Node1)
12216 2 => False, -- unused
12217 3 => True, -- Expression (Node3)
12218 4 => False, -- unused
12219 5 => False), -- unused
12221 N_Mod_Clause =>
12222 (1 => False, -- unused
12223 2 => False, -- unused
12224 3 => True, -- Expression (Node3)
12225 4 => True, -- Pragmas_Before (List4)
12226 5 => False), -- unused
12228 N_If_Expression =>
12229 (1 => True, -- Expressions (List1)
12230 2 => False, -- Then_Actions (List2-Sem)
12231 3 => False, -- Else_Actions (List3-Sem)
12232 4 => False, -- unused
12233 5 => False), -- Etype (Node5-Sem)
12235 N_Compound_Statement =>
12236 (1 => True, -- Actions (List1)
12237 2 => False, -- unused
12238 3 => False, -- unused
12239 4 => False, -- unused
12240 5 => False), -- unused
12242 N_Contract =>
12243 (1 => False, -- Pre_Post_Conditions (Node1)
12244 2 => False, -- Contract_Test_Cases (Node2)
12245 3 => False, -- Classifications (Node3)
12246 4 => False, -- unused
12247 5 => False), -- unused
12249 N_Expanded_Name =>
12250 (1 => True, -- Chars (Name1)
12251 2 => True, -- Selector_Name (Node2)
12252 3 => True, -- Prefix (Node3)
12253 4 => False, -- Entity (Node4-Sem)
12254 5 => False), -- Etype (Node5-Sem)
12256 N_Expression_With_Actions =>
12257 (1 => True, -- Actions (List1)
12258 2 => False, -- unused
12259 3 => True, -- Expression (Node3)
12260 4 => False, -- unused
12261 5 => False), -- unused
12263 N_Free_Statement =>
12264 (1 => False, -- Storage_Pool (Node1-Sem)
12265 2 => False, -- Procedure_To_Call (Node2-Sem)
12266 3 => True, -- Expression (Node3)
12267 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
12268 5 => False), -- unused
12270 N_Freeze_Entity =>
12271 (1 => True, -- Actions (List1)
12272 2 => False, -- Access_Types_To_Process (Elist2-Sem)
12273 3 => False, -- TSS_Elist (Elist3-Sem)
12274 4 => False, -- Entity (Node4-Sem)
12275 5 => False), -- First_Subtype_Link (Node5-Sem)
12277 N_Freeze_Generic_Entity =>
12278 (1 => False, -- unused
12279 2 => False, -- unused
12280 3 => False, -- unused
12281 4 => False, -- Entity (Node4-Sem)
12282 5 => False), -- unused
12284 N_Implicit_Label_Declaration =>
12285 (1 => True, -- Defining_Identifier (Node1)
12286 2 => False, -- Label_Construct (Node2-Sem)
12287 3 => False, -- unused
12288 4 => False, -- unused
12289 5 => False), -- unused
12291 N_Itype_Reference =>
12292 (1 => False, -- Itype (Node1-Sem)
12293 2 => False, -- unused
12294 3 => False, -- unused
12295 4 => False, -- unused
12296 5 => False), -- unused
12298 N_Raise_Constraint_Error =>
12299 (1 => True, -- Condition (Node1)
12300 2 => False, -- unused
12301 3 => True, -- Reason (Uint3)
12302 4 => False, -- unused
12303 5 => False), -- Etype (Node5-Sem)
12305 N_Raise_Program_Error =>
12306 (1 => True, -- Condition (Node1)
12307 2 => False, -- unused
12308 3 => True, -- Reason (Uint3)
12309 4 => False, -- unused
12310 5 => False), -- Etype (Node5-Sem)
12312 N_Raise_Storage_Error =>
12313 (1 => True, -- Condition (Node1)
12314 2 => False, -- unused
12315 3 => True, -- Reason (Uint3)
12316 4 => False, -- unused
12317 5 => False), -- Etype (Node5-Sem)
12319 N_Push_Constraint_Error_Label =>
12320 (1 => False, -- unused
12321 2 => False, -- unused
12322 3 => False, -- unused
12323 4 => False, -- unused
12324 5 => False), -- unused
12326 N_Push_Program_Error_Label =>
12327 (1 => False, -- Exception_Label
12328 2 => False, -- unused
12329 3 => False, -- unused
12330 4 => False, -- unused
12331 5 => False), -- Exception_Label
12333 N_Push_Storage_Error_Label =>
12334 (1 => False, -- Exception_Label
12335 2 => False, -- unused
12336 3 => False, -- unused
12337 4 => False, -- unused
12338 5 => False), -- Exception_Label
12340 N_Pop_Constraint_Error_Label =>
12341 (1 => False, -- unused
12342 2 => False, -- unused
12343 3 => False, -- unused
12344 4 => False, -- unused
12345 5 => False), -- unused
12347 N_Pop_Program_Error_Label =>
12348 (1 => False, -- unused
12349 2 => False, -- unused
12350 3 => False, -- unused
12351 4 => False, -- unused
12352 5 => False), -- unused
12354 N_Pop_Storage_Error_Label =>
12355 (1 => False, -- unused
12356 2 => False, -- unused
12357 3 => False, -- unused
12358 4 => False, -- unused
12359 5 => False), -- unused
12361 N_Reference =>
12362 (1 => False, -- unused
12363 2 => False, -- unused
12364 3 => True, -- Prefix (Node3)
12365 4 => False, -- unused
12366 5 => False), -- Etype (Node5-Sem)
12368 N_Unchecked_Expression =>
12369 (1 => False, -- unused
12370 2 => False, -- unused
12371 3 => True, -- Expression (Node3)
12372 4 => False, -- unused
12373 5 => False), -- Etype (Node5-Sem)
12375 N_Unchecked_Type_Conversion =>
12376 (1 => False, -- unused
12377 2 => False, -- unused
12378 3 => True, -- Expression (Node3)
12379 4 => True, -- Subtype_Mark (Node4)
12380 5 => False), -- Etype (Node5-Sem)
12382 N_Validate_Unchecked_Conversion =>
12383 (1 => False, -- Source_Type (Node1-Sem)
12384 2 => False, -- Target_Type (Node2-Sem)
12385 3 => False, -- unused
12386 4 => False, -- unused
12387 5 => False), -- unused
12389 -- Entries for SCIL nodes
12391 N_SCIL_Dispatch_Table_Tag_Init =>
12392 (1 => False, -- unused
12393 2 => False, -- unused
12394 3 => False, -- unused
12395 4 => False, -- SCIL_Entity (Node4-Sem)
12396 5 => False), -- unused
12398 N_SCIL_Dispatching_Call =>
12399 (1 => False, -- unused
12400 2 => False, -- SCIL_Target_Prim (Node2-Sem)
12401 3 => False, -- unused
12402 4 => False, -- SCIL_Entity (Node4-Sem)
12403 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
12405 N_SCIL_Membership_Test =>
12406 (1 => False, -- unused
12407 2 => False, -- unused
12408 3 => False, -- unused
12409 4 => False, -- SCIL_Entity (Node4-Sem)
12410 5 => False), -- SCIL_Tag_Value (Node5-Sem)
12412 -- Entries for Empty, Error and Unused. Even thought these have a Chars
12413 -- field for debugging purposes, they are not really syntactic fields, so
12414 -- we mark all fields as unused.
12416 N_Empty =>
12417 (1 => False, -- unused
12418 2 => False, -- unused
12419 3 => False, -- unused
12420 4 => False, -- unused
12421 5 => False), -- unused
12423 N_Error =>
12424 (1 => False, -- unused
12425 2 => False, -- unused
12426 3 => False, -- unused
12427 4 => False, -- unused
12428 5 => False), -- unused
12430 N_Unused_At_Start =>
12431 (1 => False, -- unused
12432 2 => False, -- unused
12433 3 => False, -- unused
12434 4 => False, -- unused
12435 5 => False), -- unused
12437 N_Unused_At_End =>
12438 (1 => False, -- unused
12439 2 => False, -- unused
12440 3 => False, -- unused
12441 4 => False, -- unused
12442 5 => False)); -- unused
12444 --------------------
12445 -- Inline Pragmas --
12446 --------------------
12448 pragma Inline (ABE_Is_Certain);
12449 pragma Inline (Abort_Present);
12450 pragma Inline (Abortable_Part);
12451 pragma Inline (Abstract_Present);
12452 pragma Inline (Accept_Handler_Records);
12453 pragma Inline (Accept_Statement);
12454 pragma Inline (Access_Definition);
12455 pragma Inline (Access_To_Subprogram_Definition);
12456 pragma Inline (Access_Types_To_Process);
12457 pragma Inline (Actions);
12458 pragma Inline (Activation_Chain_Entity);
12459 pragma Inline (Acts_As_Spec);
12460 pragma Inline (Actual_Designated_Subtype);
12461 pragma Inline (Address_Warning_Posted);
12462 pragma Inline (Aggregate_Bounds);
12463 pragma Inline (Aliased_Present);
12464 pragma Inline (All_Others);
12465 pragma Inline (All_Present);
12466 pragma Inline (Alternatives);
12467 pragma Inline (Ancestor_Part);
12468 pragma Inline (Atomic_Sync_Required);
12469 pragma Inline (Array_Aggregate);
12470 pragma Inline (Aspect_Rep_Item);
12471 pragma Inline (Assignment_OK);
12472 pragma Inline (Associated_Node);
12473 pragma Inline (At_End_Proc);
12474 pragma Inline (Attribute_Name);
12475 pragma Inline (Aux_Decls_Node);
12476 pragma Inline (Backwards_OK);
12477 pragma Inline (Bad_Is_Detected);
12478 pragma Inline (Body_To_Inline);
12479 pragma Inline (Body_Required);
12480 pragma Inline (By_Ref);
12481 pragma Inline (Box_Present);
12482 pragma Inline (Char_Literal_Value);
12483 pragma Inline (Chars);
12484 pragma Inline (Check_Address_Alignment);
12485 pragma Inline (Choice_Parameter);
12486 pragma Inline (Choices);
12487 pragma Inline (Class_Present);
12488 pragma Inline (Classifications);
12489 pragma Inline (Cleanup_Actions);
12490 pragma Inline (Comes_From_Extended_Return_Statement);
12491 pragma Inline (Compile_Time_Known_Aggregate);
12492 pragma Inline (Component_Associations);
12493 pragma Inline (Component_Clauses);
12494 pragma Inline (Component_Definition);
12495 pragma Inline (Component_Items);
12496 pragma Inline (Component_List);
12497 pragma Inline (Component_Name);
12498 pragma Inline (Componentwise_Assignment);
12499 pragma Inline (Condition);
12500 pragma Inline (Condition_Actions);
12501 pragma Inline (Config_Pragmas);
12502 pragma Inline (Constant_Present);
12503 pragma Inline (Constraint);
12504 pragma Inline (Constraints);
12505 pragma Inline (Context_Installed);
12506 pragma Inline (Context_Items);
12507 pragma Inline (Context_Pending);
12508 pragma Inline (Contract_Test_Cases);
12509 pragma Inline (Controlling_Argument);
12510 pragma Inline (Convert_To_Return_False);
12511 pragma Inline (Conversion_OK);
12512 pragma Inline (Corresponding_Aspect);
12513 pragma Inline (Corresponding_Body);
12514 pragma Inline (Corresponding_Formal_Spec);
12515 pragma Inline (Corresponding_Generic_Association);
12516 pragma Inline (Corresponding_Integer_Value);
12517 pragma Inline (Corresponding_Spec);
12518 pragma Inline (Corresponding_Spec_Of_Stub);
12519 pragma Inline (Corresponding_Stub);
12520 pragma Inline (Dcheck_Function);
12521 pragma Inline (Declarations);
12522 pragma Inline (Default_Expression);
12523 pragma Inline (Default_Storage_Pool);
12524 pragma Inline (Default_Name);
12525 pragma Inline (Defining_Identifier);
12526 pragma Inline (Defining_Unit_Name);
12527 pragma Inline (Delay_Alternative);
12528 pragma Inline (Delay_Statement);
12529 pragma Inline (Delta_Expression);
12530 pragma Inline (Digits_Expression);
12531 pragma Inline (Discr_Check_Funcs_Built);
12532 pragma Inline (Discrete_Choices);
12533 pragma Inline (Discrete_Range);
12534 pragma Inline (Discrete_Subtype_Definition);
12535 pragma Inline (Discrete_Subtype_Definitions);
12536 pragma Inline (Discriminant_Specifications);
12537 pragma Inline (Discriminant_Type);
12538 pragma Inline (Do_Accessibility_Check);
12539 pragma Inline (Do_Discriminant_Check);
12540 pragma Inline (Do_Length_Check);
12541 pragma Inline (Do_Division_Check);
12542 pragma Inline (Do_Overflow_Check);
12543 pragma Inline (Do_Range_Check);
12544 pragma Inline (Do_Storage_Check);
12545 pragma Inline (Do_Tag_Check);
12546 pragma Inline (Elaborate_Present);
12547 pragma Inline (Elaborate_All_Desirable);
12548 pragma Inline (Elaborate_All_Present);
12549 pragma Inline (Elaborate_Desirable);
12550 pragma Inline (Else_Actions);
12551 pragma Inline (Else_Statements);
12552 pragma Inline (Elsif_Parts);
12553 pragma Inline (Enclosing_Variant);
12554 pragma Inline (End_Label);
12555 pragma Inline (End_Span);
12556 pragma Inline (Entity);
12557 pragma Inline (Entity_Or_Associated_Node);
12558 pragma Inline (Entry_Body_Formal_Part);
12559 pragma Inline (Entry_Call_Alternative);
12560 pragma Inline (Entry_Call_Statement);
12561 pragma Inline (Entry_Direct_Name);
12562 pragma Inline (Entry_Index);
12563 pragma Inline (Entry_Index_Specification);
12564 pragma Inline (Etype);
12565 pragma Inline (Exception_Choices);
12566 pragma Inline (Exception_Handlers);
12567 pragma Inline (Exception_Junk);
12568 pragma Inline (Exception_Label);
12569 pragma Inline (Expansion_Delayed);
12570 pragma Inline (Explicit_Actual_Parameter);
12571 pragma Inline (Explicit_Generic_Actual_Parameter);
12572 pragma Inline (Expression);
12573 pragma Inline (Expressions);
12574 pragma Inline (First_Bit);
12575 pragma Inline (First_Inlined_Subprogram);
12576 pragma Inline (First_Name);
12577 pragma Inline (First_Named_Actual);
12578 pragma Inline (First_Real_Statement);
12579 pragma Inline (First_Subtype_Link);
12580 pragma Inline (Float_Truncate);
12581 pragma Inline (Formal_Type_Definition);
12582 pragma Inline (Forwards_OK);
12583 pragma Inline (From_Aspect_Specification);
12584 pragma Inline (From_At_End);
12585 pragma Inline (From_At_Mod);
12586 pragma Inline (From_Conditional_Expression);
12587 pragma Inline (From_Default);
12588 pragma Inline (Generalized_Indexing);
12589 pragma Inline (Generic_Associations);
12590 pragma Inline (Generic_Formal_Declarations);
12591 pragma Inline (Generic_Parent);
12592 pragma Inline (Generic_Parent_Type);
12593 pragma Inline (Handled_Statement_Sequence);
12594 pragma Inline (Handler_List_Entry);
12595 pragma Inline (Has_Created_Identifier);
12596 pragma Inline (Has_Dereference_Action);
12597 pragma Inline (Has_Dynamic_Length_Check);
12598 pragma Inline (Has_Dynamic_Range_Check);
12599 pragma Inline (Has_Init_Expression);
12600 pragma Inline (Has_Local_Raise);
12601 pragma Inline (Has_Self_Reference);
12602 pragma Inline (Has_SP_Choice);
12603 pragma Inline (Has_No_Elaboration_Code);
12604 pragma Inline (Has_Pragma_Suppress_All);
12605 pragma Inline (Has_Private_View);
12606 pragma Inline (Has_Relative_Deadline_Pragma);
12607 pragma Inline (Has_Storage_Size_Pragma);
12608 pragma Inline (Has_Wide_Character);
12609 pragma Inline (Has_Wide_Wide_Character);
12610 pragma Inline (Header_Size_Added);
12611 pragma Inline (Hidden_By_Use_Clause);
12612 pragma Inline (High_Bound);
12613 pragma Inline (Identifier);
12614 pragma Inline (Implicit_With);
12615 pragma Inline (Implicit_With_From_Instantiation);
12616 pragma Inline (Interface_List);
12617 pragma Inline (Interface_Present);
12618 pragma Inline (Includes_Infinities);
12619 pragma Inline (Import_Interface_Present);
12620 pragma Inline (In_Present);
12621 pragma Inline (Incomplete_View);
12622 pragma Inline (Inherited_Discriminant);
12623 pragma Inline (Instance_Spec);
12624 pragma Inline (Intval);
12625 pragma Inline (Iterator_Specification);
12626 pragma Inline (Is_Accessibility_Actual);
12627 pragma Inline (Is_Asynchronous_Call_Block);
12628 pragma Inline (Is_Boolean_Aspect);
12629 pragma Inline (Is_Checked);
12630 pragma Inline (Is_Component_Left_Opnd);
12631 pragma Inline (Is_Component_Right_Opnd);
12632 pragma Inline (Is_Controlling_Actual);
12633 pragma Inline (Is_Delayed_Aspect);
12634 pragma Inline (Is_Disabled);
12635 pragma Inline (Is_Dynamic_Coextension);
12636 pragma Inline (Is_Elsif);
12637 pragma Inline (Is_Entry_Barrier_Function);
12638 pragma Inline (Is_Expanded_Build_In_Place_Call);
12639 pragma Inline (Is_Finalization_Wrapper);
12640 pragma Inline (Is_Folded_In_Parser);
12641 pragma Inline (Is_Ignored);
12642 pragma Inline (Is_In_Discriminant_Check);
12643 pragma Inline (Is_Inherited);
12644 pragma Inline (Is_Machine_Number);
12645 pragma Inline (Is_Null_Loop);
12646 pragma Inline (Is_Overloaded);
12647 pragma Inline (Is_Power_Of_2_For_Shift);
12648 pragma Inline (Is_Prefixed_Call);
12649 pragma Inline (Is_Protected_Subprogram_Body);
12650 pragma Inline (Is_Static_Coextension);
12651 pragma Inline (Is_Static_Expression);
12652 pragma Inline (Is_Subprogram_Descriptor);
12653 pragma Inline (Is_Task_Allocation_Block);
12654 pragma Inline (Is_Task_Master);
12655 pragma Inline (Iteration_Scheme);
12656 pragma Inline (Itype);
12657 pragma Inline (Kill_Range_Check);
12658 pragma Inline (Last_Bit);
12659 pragma Inline (Last_Name);
12660 pragma Inline (Library_Unit);
12661 pragma Inline (Label_Construct);
12662 pragma Inline (Left_Opnd);
12663 pragma Inline (Limited_View_Installed);
12664 pragma Inline (Limited_Present);
12665 pragma Inline (Literals);
12666 pragma Inline (Local_Raise_Not_OK);
12667 pragma Inline (Local_Raise_Statements);
12668 pragma Inline (Loop_Actions);
12669 pragma Inline (Loop_Parameter_Specification);
12670 pragma Inline (Low_Bound);
12671 pragma Inline (Mod_Clause);
12672 pragma Inline (More_Ids);
12673 pragma Inline (Must_Be_Byte_Aligned);
12674 pragma Inline (Must_Not_Freeze);
12675 pragma Inline (Must_Not_Override);
12676 pragma Inline (Must_Override);
12677 pragma Inline (Name);
12678 pragma Inline (Names);
12679 pragma Inline (Next_Entity);
12680 pragma Inline (Next_Exit_Statement);
12681 pragma Inline (Next_Implicit_With);
12682 pragma Inline (Next_Named_Actual);
12683 pragma Inline (Next_Pragma);
12684 pragma Inline (Next_Rep_Item);
12685 pragma Inline (Next_Use_Clause);
12686 pragma Inline (No_Ctrl_Actions);
12687 pragma Inline (No_Elaboration_Check);
12688 pragma Inline (No_Entities_Ref_In_Spec);
12689 pragma Inline (No_Initialization);
12690 pragma Inline (No_Minimize_Eliminate);
12691 pragma Inline (No_Truncation);
12692 pragma Inline (Non_Aliased_Prefix);
12693 pragma Inline (Null_Present);
12694 pragma Inline (Null_Excluding_Subtype);
12695 pragma Inline (Null_Exclusion_Present);
12696 pragma Inline (Null_Exclusion_In_Return_Present);
12697 pragma Inline (Null_Record_Present);
12698 pragma Inline (Object_Definition);
12699 pragma Inline (Of_Present);
12700 pragma Inline (Original_Discriminant);
12701 pragma Inline (Original_Entity);
12702 pragma Inline (Others_Discrete_Choices);
12703 pragma Inline (Out_Present);
12704 pragma Inline (Parameter_Associations);
12705 pragma Inline (Parameter_Specifications);
12706 pragma Inline (Parameter_Type);
12707 pragma Inline (Parent_Spec);
12708 pragma Inline (Position);
12709 pragma Inline (Pragma_Argument_Associations);
12710 pragma Inline (Pragma_Identifier);
12711 pragma Inline (Pragmas_After);
12712 pragma Inline (Pragmas_Before);
12713 pragma Inline (Pre_Post_Conditions);
12714 pragma Inline (Prefix);
12715 pragma Inline (Premature_Use);
12716 pragma Inline (Present_Expr);
12717 pragma Inline (Prev_Ids);
12718 pragma Inline (Print_In_Hex);
12719 pragma Inline (Private_Declarations);
12720 pragma Inline (Private_Present);
12721 pragma Inline (Procedure_To_Call);
12722 pragma Inline (Proper_Body);
12723 pragma Inline (Protected_Definition);
12724 pragma Inline (Protected_Present);
12725 pragma Inline (Raises_Constraint_Error);
12726 pragma Inline (Range_Constraint);
12727 pragma Inline (Range_Expression);
12728 pragma Inline (Real_Range_Specification);
12729 pragma Inline (Realval);
12730 pragma Inline (Reason);
12731 pragma Inline (Record_Extension_Part);
12732 pragma Inline (Redundant_Use);
12733 pragma Inline (Renaming_Exception);
12734 pragma Inline (Result_Definition);
12735 pragma Inline (Return_Object_Declarations);
12736 pragma Inline (Return_Statement_Entity);
12737 pragma Inline (Reverse_Present);
12738 pragma Inline (Right_Opnd);
12739 pragma Inline (Rounded_Result);
12740 pragma Inline (SCIL_Controlling_Tag);
12741 pragma Inline (SCIL_Entity);
12742 pragma Inline (SCIL_Tag_Value);
12743 pragma Inline (SCIL_Target_Prim);
12744 pragma Inline (Scope);
12745 pragma Inline (Select_Alternatives);
12746 pragma Inline (Selector_Name);
12747 pragma Inline (Selector_Names);
12748 pragma Inline (Shift_Count_OK);
12749 pragma Inline (Source_Type);
12750 pragma Inline (Specification);
12751 pragma Inline (Split_PPC);
12752 pragma Inline (Statements);
12753 pragma Inline (Storage_Pool);
12754 pragma Inline (Subpool_Handle_Name);
12755 pragma Inline (Strval);
12756 pragma Inline (Subtype_Indication);
12757 pragma Inline (Subtype_Mark);
12758 pragma Inline (Subtype_Marks);
12759 pragma Inline (Suppress_Assignment_Checks);
12760 pragma Inline (Suppress_Loop_Warnings);
12761 pragma Inline (Synchronized_Present);
12762 pragma Inline (Tagged_Present);
12763 pragma Inline (Target_Type);
12764 pragma Inline (Task_Definition);
12765 pragma Inline (Task_Present);
12766 pragma Inline (Then_Actions);
12767 pragma Inline (Then_Statements);
12768 pragma Inline (Triggering_Alternative);
12769 pragma Inline (Triggering_Statement);
12770 pragma Inline (Treat_Fixed_As_Integer);
12771 pragma Inline (TSS_Elist);
12772 pragma Inline (Type_Definition);
12773 pragma Inline (Uneval_Old_Accept);
12774 pragma Inline (Uneval_Old_Warn);
12775 pragma Inline (Unit);
12776 pragma Inline (Uninitialized_Variable);
12777 pragma Inline (Unknown_Discriminants_Present);
12778 pragma Inline (Unreferenced_In_Spec);
12779 pragma Inline (Variant_Part);
12780 pragma Inline (Variants);
12781 pragma Inline (Visible_Declarations);
12782 pragma Inline (Used_Operations);
12783 pragma Inline (Was_Originally_Stub);
12784 pragma Inline (Withed_Body);
12786 pragma Inline (Set_ABE_Is_Certain);
12787 pragma Inline (Set_Abort_Present);
12788 pragma Inline (Set_Abortable_Part);
12789 pragma Inline (Set_Abstract_Present);
12790 pragma Inline (Set_Accept_Handler_Records);
12791 pragma Inline (Set_Accept_Statement);
12792 pragma Inline (Set_Access_Definition);
12793 pragma Inline (Set_Access_To_Subprogram_Definition);
12794 pragma Inline (Set_Access_Types_To_Process);
12795 pragma Inline (Set_Actions);
12796 pragma Inline (Set_Activation_Chain_Entity);
12797 pragma Inline (Set_Acts_As_Spec);
12798 pragma Inline (Set_Actual_Designated_Subtype);
12799 pragma Inline (Set_Address_Warning_Posted);
12800 pragma Inline (Set_Aggregate_Bounds);
12801 pragma Inline (Set_Aliased_Present);
12802 pragma Inline (Set_All_Others);
12803 pragma Inline (Set_All_Present);
12804 pragma Inline (Set_Alternatives);
12805 pragma Inline (Set_Ancestor_Part);
12806 pragma Inline (Set_Array_Aggregate);
12807 pragma Inline (Set_Aspect_Rep_Item);
12808 pragma Inline (Set_Assignment_OK);
12809 pragma Inline (Set_Associated_Node);
12810 pragma Inline (Set_At_End_Proc);
12811 pragma Inline (Set_Atomic_Sync_Required);
12812 pragma Inline (Set_Attribute_Name);
12813 pragma Inline (Set_Aux_Decls_Node);
12814 pragma Inline (Set_Backwards_OK);
12815 pragma Inline (Set_Bad_Is_Detected);
12816 pragma Inline (Set_Body_Required);
12817 pragma Inline (Set_Body_To_Inline);
12818 pragma Inline (Set_Box_Present);
12819 pragma Inline (Set_By_Ref);
12820 pragma Inline (Set_Char_Literal_Value);
12821 pragma Inline (Set_Chars);
12822 pragma Inline (Set_Check_Address_Alignment);
12823 pragma Inline (Set_Choice_Parameter);
12824 pragma Inline (Set_Choices);
12825 pragma Inline (Set_Class_Present);
12826 pragma Inline (Set_Classifications);
12827 pragma Inline (Set_Cleanup_Actions);
12828 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12829 pragma Inline (Set_Compile_Time_Known_Aggregate);
12830 pragma Inline (Set_Component_Associations);
12831 pragma Inline (Set_Component_Clauses);
12832 pragma Inline (Set_Component_Definition);
12833 pragma Inline (Set_Component_Items);
12834 pragma Inline (Set_Component_List);
12835 pragma Inline (Set_Component_Name);
12836 pragma Inline (Set_Componentwise_Assignment);
12837 pragma Inline (Set_Condition);
12838 pragma Inline (Set_Condition_Actions);
12839 pragma Inline (Set_Config_Pragmas);
12840 pragma Inline (Set_Constant_Present);
12841 pragma Inline (Set_Constraint);
12842 pragma Inline (Set_Constraints);
12843 pragma Inline (Set_Context_Installed);
12844 pragma Inline (Set_Context_Items);
12845 pragma Inline (Set_Context_Pending);
12846 pragma Inline (Set_Contract_Test_Cases);
12847 pragma Inline (Set_Controlling_Argument);
12848 pragma Inline (Set_Conversion_OK);
12849 pragma Inline (Set_Convert_To_Return_False);
12850 pragma Inline (Set_Corresponding_Aspect);
12851 pragma Inline (Set_Corresponding_Body);
12852 pragma Inline (Set_Corresponding_Formal_Spec);
12853 pragma Inline (Set_Corresponding_Generic_Association);
12854 pragma Inline (Set_Corresponding_Integer_Value);
12855 pragma Inline (Set_Corresponding_Spec);
12856 pragma Inline (Set_Corresponding_Spec_Of_Stub);
12857 pragma Inline (Set_Corresponding_Stub);
12858 pragma Inline (Set_Dcheck_Function);
12859 pragma Inline (Set_Declarations);
12860 pragma Inline (Set_Default_Expression);
12861 pragma Inline (Set_Default_Name);
12862 pragma Inline (Set_Default_Storage_Pool);
12863 pragma Inline (Set_Defining_Identifier);
12864 pragma Inline (Set_Defining_Unit_Name);
12865 pragma Inline (Set_Delay_Alternative);
12866 pragma Inline (Set_Delay_Statement);
12867 pragma Inline (Set_Delta_Expression);
12868 pragma Inline (Set_Digits_Expression);
12869 pragma Inline (Set_Discr_Check_Funcs_Built);
12870 pragma Inline (Set_Discrete_Choices);
12871 pragma Inline (Set_Discrete_Range);
12872 pragma Inline (Set_Discrete_Subtype_Definition);
12873 pragma Inline (Set_Discrete_Subtype_Definitions);
12874 pragma Inline (Set_Discriminant_Specifications);
12875 pragma Inline (Set_Discriminant_Type);
12876 pragma Inline (Set_Do_Accessibility_Check);
12877 pragma Inline (Set_Do_Discriminant_Check);
12878 pragma Inline (Set_Do_Division_Check);
12879 pragma Inline (Set_Do_Length_Check);
12880 pragma Inline (Set_Do_Overflow_Check);
12881 pragma Inline (Set_Do_Range_Check);
12882 pragma Inline (Set_Do_Storage_Check);
12883 pragma Inline (Set_Do_Tag_Check);
12884 pragma Inline (Set_Elaborate_All_Desirable);
12885 pragma Inline (Set_Elaborate_All_Present);
12886 pragma Inline (Set_Elaborate_Desirable);
12887 pragma Inline (Set_Elaborate_Present);
12888 pragma Inline (Set_Else_Actions);
12889 pragma Inline (Set_Else_Statements);
12890 pragma Inline (Set_Elsif_Parts);
12891 pragma Inline (Set_Enclosing_Variant);
12892 pragma Inline (Set_End_Label);
12893 pragma Inline (Set_End_Span);
12894 pragma Inline (Set_Entity);
12895 pragma Inline (Set_Entry_Body_Formal_Part);
12896 pragma Inline (Set_Entry_Call_Alternative);
12897 pragma Inline (Set_Entry_Call_Statement);
12898 pragma Inline (Set_Entry_Direct_Name);
12899 pragma Inline (Set_Entry_Index);
12900 pragma Inline (Set_Entry_Index_Specification);
12901 pragma Inline (Set_Etype);
12902 pragma Inline (Set_Exception_Choices);
12903 pragma Inline (Set_Exception_Handlers);
12904 pragma Inline (Set_Exception_Junk);
12905 pragma Inline (Set_Exception_Label);
12906 pragma Inline (Set_Expansion_Delayed);
12907 pragma Inline (Set_Explicit_Actual_Parameter);
12908 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12909 pragma Inline (Set_Expression);
12910 pragma Inline (Set_Expressions);
12911 pragma Inline (Set_First_Bit);
12912 pragma Inline (Set_First_Inlined_Subprogram);
12913 pragma Inline (Set_First_Name);
12914 pragma Inline (Set_First_Named_Actual);
12915 pragma Inline (Set_First_Real_Statement);
12916 pragma Inline (Set_First_Subtype_Link);
12917 pragma Inline (Set_Float_Truncate);
12918 pragma Inline (Set_Formal_Type_Definition);
12919 pragma Inline (Set_Forwards_OK);
12920 pragma Inline (Set_From_Aspect_Specification);
12921 pragma Inline (Set_From_At_End);
12922 pragma Inline (Set_From_At_Mod);
12923 pragma Inline (Set_From_Conditional_Expression);
12924 pragma Inline (Set_From_Default);
12925 pragma Inline (Set_Generalized_Indexing);
12926 pragma Inline (Set_Generic_Associations);
12927 pragma Inline (Set_Generic_Formal_Declarations);
12928 pragma Inline (Set_Generic_Parent);
12929 pragma Inline (Set_Generic_Parent_Type);
12930 pragma Inline (Set_Handled_Statement_Sequence);
12931 pragma Inline (Set_Handler_List_Entry);
12932 pragma Inline (Set_Has_Created_Identifier);
12933 pragma Inline (Set_Has_Dereference_Action);
12934 pragma Inline (Set_Has_Dynamic_Length_Check);
12935 pragma Inline (Set_Has_Dynamic_Range_Check);
12936 pragma Inline (Set_Has_Init_Expression);
12937 pragma Inline (Set_Has_Local_Raise);
12938 pragma Inline (Set_Has_No_Elaboration_Code);
12939 pragma Inline (Set_Has_Pragma_Suppress_All);
12940 pragma Inline (Set_Has_Private_View);
12941 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12942 pragma Inline (Set_Has_Self_Reference);
12943 pragma Inline (Set_Has_SP_Choice);
12944 pragma Inline (Set_Has_Storage_Size_Pragma);
12945 pragma Inline (Set_Has_Wide_Character);
12946 pragma Inline (Set_Has_Wide_Wide_Character);
12947 pragma Inline (Set_Header_Size_Added);
12948 pragma Inline (Set_Hidden_By_Use_Clause);
12949 pragma Inline (Set_High_Bound);
12950 pragma Inline (Set_Identifier);
12951 pragma Inline (Set_Implicit_With);
12952 pragma Inline (Set_Import_Interface_Present);
12953 pragma Inline (Set_In_Present);
12954 pragma Inline (Set_Includes_Infinities);
12955 pragma Inline (Set_Incomplete_View);
12956 pragma Inline (Set_Inherited_Discriminant);
12957 pragma Inline (Set_Instance_Spec);
12958 pragma Inline (Set_Interface_List);
12959 pragma Inline (Set_Interface_Present);
12960 pragma Inline (Set_Intval);
12961 pragma Inline (Set_Is_Accessibility_Actual);
12962 pragma Inline (Set_Is_Asynchronous_Call_Block);
12963 pragma Inline (Set_Is_Boolean_Aspect);
12964 pragma Inline (Set_Is_Checked);
12965 pragma Inline (Set_Is_Component_Left_Opnd);
12966 pragma Inline (Set_Is_Component_Right_Opnd);
12967 pragma Inline (Set_Is_Controlling_Actual);
12968 pragma Inline (Set_Is_Delayed_Aspect);
12969 pragma Inline (Set_Is_Disabled);
12970 pragma Inline (Set_Is_Dynamic_Coextension);
12971 pragma Inline (Set_Is_Elsif);
12972 pragma Inline (Set_Is_Entry_Barrier_Function);
12973 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12974 pragma Inline (Set_Is_Finalization_Wrapper);
12975 pragma Inline (Set_Is_Folded_In_Parser);
12976 pragma Inline (Set_Is_Ignored);
12977 pragma Inline (Set_Is_In_Discriminant_Check);
12978 pragma Inline (Set_Is_Inherited);
12979 pragma Inline (Set_Is_Machine_Number);
12980 pragma Inline (Set_Is_Null_Loop);
12981 pragma Inline (Set_Is_Overloaded);
12982 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12983 pragma Inline (Set_Is_Prefixed_Call);
12984 pragma Inline (Set_Is_Protected_Subprogram_Body);
12985 pragma Inline (Set_Is_Static_Coextension);
12986 pragma Inline (Set_Is_Static_Expression);
12987 pragma Inline (Set_Is_Subprogram_Descriptor);
12988 pragma Inline (Set_Is_Task_Allocation_Block);
12989 pragma Inline (Set_Is_Task_Master);
12990 pragma Inline (Set_Iteration_Scheme);
12991 pragma Inline (Set_Iterator_Specification);
12992 pragma Inline (Set_Itype);
12993 pragma Inline (Set_Kill_Range_Check);
12994 pragma Inline (Set_Label_Construct);
12995 pragma Inline (Set_Last_Bit);
12996 pragma Inline (Set_Last_Name);
12997 pragma Inline (Set_Left_Opnd);
12998 pragma Inline (Set_Library_Unit);
12999 pragma Inline (Set_Limited_Present);
13000 pragma Inline (Set_Limited_View_Installed);
13001 pragma Inline (Set_Literals);
13002 pragma Inline (Set_Local_Raise_Not_OK);
13003 pragma Inline (Set_Local_Raise_Statements);
13004 pragma Inline (Set_Loop_Actions);
13005 pragma Inline (Set_Loop_Parameter_Specification);
13006 pragma Inline (Set_Low_Bound);
13007 pragma Inline (Set_Mod_Clause);
13008 pragma Inline (Set_More_Ids);
13009 pragma Inline (Set_Must_Be_Byte_Aligned);
13010 pragma Inline (Set_Must_Not_Freeze);
13011 pragma Inline (Set_Must_Not_Override);
13012 pragma Inline (Set_Must_Override);
13013 pragma Inline (Set_Name);
13014 pragma Inline (Set_Names);
13015 pragma Inline (Set_Next_Entity);
13016 pragma Inline (Set_Next_Exit_Statement);
13017 pragma Inline (Set_Next_Implicit_With);
13018 pragma Inline (Set_Next_Named_Actual);
13019 pragma Inline (Set_Next_Pragma);
13020 pragma Inline (Set_Next_Rep_Item);
13021 pragma Inline (Set_Next_Use_Clause);
13022 pragma Inline (Set_No_Ctrl_Actions);
13023 pragma Inline (Set_No_Elaboration_Check);
13024 pragma Inline (Set_No_Entities_Ref_In_Spec);
13025 pragma Inline (Set_No_Initialization);
13026 pragma Inline (Set_No_Minimize_Eliminate);
13027 pragma Inline (Set_No_Truncation);
13028 pragma Inline (Set_Non_Aliased_Prefix);
13029 pragma Inline (Set_Null_Excluding_Subtype);
13030 pragma Inline (Set_Null_Exclusion_Present);
13031 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13032 pragma Inline (Set_Null_Present);
13033 pragma Inline (Set_Null_Record_Present);
13034 pragma Inline (Set_Object_Definition);
13035 pragma Inline (Set_Of_Present);
13036 pragma Inline (Set_Original_Discriminant);
13037 pragma Inline (Set_Original_Entity);
13038 pragma Inline (Set_Others_Discrete_Choices);
13039 pragma Inline (Set_Out_Present);
13040 pragma Inline (Set_Parameter_Associations);
13041 pragma Inline (Set_Parameter_Specifications);
13042 pragma Inline (Set_Parameter_Type);
13043 pragma Inline (Set_Parent_Spec);
13044 pragma Inline (Set_Position);
13045 pragma Inline (Set_Pragma_Argument_Associations);
13046 pragma Inline (Set_Pragma_Identifier);
13047 pragma Inline (Set_Pragmas_After);
13048 pragma Inline (Set_Pragmas_Before);
13049 pragma Inline (Set_Pre_Post_Conditions);
13050 pragma Inline (Set_Prefix);
13051 pragma Inline (Set_Premature_Use);
13052 pragma Inline (Set_Present_Expr);
13053 pragma Inline (Set_Prev_Ids);
13054 pragma Inline (Set_Print_In_Hex);
13055 pragma Inline (Set_Private_Declarations);
13056 pragma Inline (Set_Private_Present);
13057 pragma Inline (Set_Procedure_To_Call);
13058 pragma Inline (Set_Proper_Body);
13059 pragma Inline (Set_Protected_Definition);
13060 pragma Inline (Set_Protected_Present);
13061 pragma Inline (Set_Raises_Constraint_Error);
13062 pragma Inline (Set_Range_Constraint);
13063 pragma Inline (Set_Range_Expression);
13064 pragma Inline (Set_Real_Range_Specification);
13065 pragma Inline (Set_Realval);
13066 pragma Inline (Set_Reason);
13067 pragma Inline (Set_Record_Extension_Part);
13068 pragma Inline (Set_Redundant_Use);
13069 pragma Inline (Set_Renaming_Exception);
13070 pragma Inline (Set_Result_Definition);
13071 pragma Inline (Set_Return_Object_Declarations);
13072 pragma Inline (Set_Reverse_Present);
13073 pragma Inline (Set_Right_Opnd);
13074 pragma Inline (Set_Rounded_Result);
13075 pragma Inline (Set_SCIL_Controlling_Tag);
13076 pragma Inline (Set_SCIL_Entity);
13077 pragma Inline (Set_SCIL_Tag_Value);
13078 pragma Inline (Set_SCIL_Target_Prim);
13079 pragma Inline (Set_Scope);
13080 pragma Inline (Set_Select_Alternatives);
13081 pragma Inline (Set_Selector_Name);
13082 pragma Inline (Set_Selector_Names);
13083 pragma Inline (Set_Shift_Count_OK);
13084 pragma Inline (Set_Source_Type);
13085 pragma Inline (Set_Split_PPC);
13086 pragma Inline (Set_Statements);
13087 pragma Inline (Set_Storage_Pool);
13088 pragma Inline (Set_Strval);
13089 pragma Inline (Set_Subpool_Handle_Name);
13090 pragma Inline (Set_Subtype_Indication);
13091 pragma Inline (Set_Subtype_Mark);
13092 pragma Inline (Set_Subtype_Marks);
13093 pragma Inline (Set_Suppress_Assignment_Checks);
13094 pragma Inline (Set_Suppress_Loop_Warnings);
13095 pragma Inline (Set_Synchronized_Present);
13096 pragma Inline (Set_TSS_Elist);
13097 pragma Inline (Set_Tagged_Present);
13098 pragma Inline (Set_Target_Type);
13099 pragma Inline (Set_Task_Definition);
13100 pragma Inline (Set_Task_Present);
13101 pragma Inline (Set_Then_Actions);
13102 pragma Inline (Set_Then_Statements);
13103 pragma Inline (Set_Treat_Fixed_As_Integer);
13104 pragma Inline (Set_Triggering_Alternative);
13105 pragma Inline (Set_Triggering_Statement);
13106 pragma Inline (Set_Type_Definition);
13107 pragma Inline (Set_Uneval_Old_Accept);
13108 pragma Inline (Set_Uneval_Old_Warn);
13109 pragma Inline (Set_Unit);
13110 pragma Inline (Set_Uninitialized_Variable);
13111 pragma Inline (Set_Unknown_Discriminants_Present);
13112 pragma Inline (Set_Unreferenced_In_Spec);
13113 pragma Inline (Set_Used_Operations);
13114 pragma Inline (Set_Variant_Part);
13115 pragma Inline (Set_Variants);
13116 pragma Inline (Set_Visible_Declarations);
13117 pragma Inline (Set_Was_Originally_Stub);
13118 pragma Inline (Set_Withed_Body);
13120 end Sinfo;