1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
9 -- Copyright (C) 1992-2007, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, 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. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 -- This package defines the structure of the abstract syntax tree. The Tree
35 -- package provides a basic tree structure. Sinfo describes how this structure
36 -- is used to represent the syntax of an Ada program.
38 -- The grammar in the RM is followed very closely in the tree
39 -- design, and is repeated as part of this source file.
41 -- The tree contains not only the full syntactic representation of the
42 -- program, but also the results of semantic analysis. In particular, the
43 -- nodes for defining identifiers, defining character literals and defining
44 -- operator symbols, collectively referred to as entities, represent what
45 -- would normally be regarded as the symbol table information. In addition a
46 -- number of the tree nodes contain semantic information.
48 -- WARNING: Several files are automatically generated from this package.
49 -- See below for details.
51 with Namet; use Namet;
52 with Types; use Types;
53 with Uintp; use Uintp;
54 with Urealp; use Urealp;
58 ---------------------------------
59 -- Making Changes to This File --
60 ---------------------------------
62 -- If changes are made to this file, a number of related steps must be
63 -- carried out to ensure consistency. First, if a field access function is
64 -- added, it appears in seven places:
66 -- The documentation associated with the node
67 -- The spec of the access function in sinfo.ads
68 -- The body of the access function in sinfo.adb
69 -- The pragma Inline at the end of sinfo.ads for the access function
70 -- The spec of the set procedure in sinfo.ads
71 -- The body of the set procedure in sinfo.adb
72 -- The pragma Inline at the end of sinfo.ads for the set procedure
74 -- The field chosen must be consistent in all places, and, for a node that
75 -- is a subexpression, must not overlap any of the standard expression
78 -- In addition, if any of the standard expression fields is changed, then
79 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
80 -- must be updated appropriately, since it special cases expression fields.
82 -- If a new tree node is added, then the following changes are made
84 -- Add it to the documentation in the appropriate place
85 -- Add its fields to this documentation section
86 -- Define it in the appropriate classification in Node_Kind
87 -- In the body (sinfo), add entries to the access functions for all
88 -- its fields (except standard expression fields) to include the new
89 -- node in the checks.
90 -- Add an appropriate section to the case statement in sprint.adb
91 -- Add an appropriate section to the case statement in sem.adb
92 -- Add an appropriate section to the case statement in exp_util.adb
93 -- (Insert_Actions procedure)
94 -- For a subexpression, add an appropriate section to the case
95 -- statement in sem_eval.adb
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_res.adb
99 -- Finally, four utility programs must be run:
101 -- Run CSinfo to check that you have made the changes consistently. It
102 -- checks most of the rules given above, with clear error messages. This
103 -- utility reads sinfo.ads and sinfo.adb and generates a report to
106 -- Run XSinfo to create sinfo.h, the corresponding C header. This
107 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
108 -- not need to read sinfo.adb, since the contents of the body are
109 -- algorithmically determinable from the spec.
111 -- Run XTreeprs to create treeprs.ads, an updated version of the module
112 -- that is used to drive the tree print routine. This utility reads (but
113 -- does not modify) treeprs.adt, the template that provides the basic
114 -- structure of the file, and then fills in the data from the comments
117 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
118 -- spec of the Nmake package which contains functions for constructing
121 -- All of the above steps except CSinfo are done automatically by the
122 -- build scripts when you do a full bootstrap.
124 -- Note: sometime we could write a utility that actually generated the body
125 -- of sinfo from the spec instead of simply checking it, since, as noted
126 -- above, the contents of the body can be determined from the spec.
128 --------------------------------
129 -- Implicit Nodes in the Tree --
130 --------------------------------
132 -- Generally the structure of the tree very closely follows the grammar as
133 -- defined in the RM. However, certain nodes are omitted to save space and
134 -- simplify semantic processing. Two general classes of such omitted nodes
137 -- If the only possibilities for a non-terminal are one or more other
138 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
139 -- corresponding node is omitted from the tree, and the target construct
140 -- appears directly. For example, a real type definition is either
141 -- floating point definition or a fixed point definition. No explicit node
142 -- appears for real type definition. Instead either the floating point
143 -- definition or fixed point definition appears directly.
145 -- If a non-terminal corresponds to a list of some other non-terminal
146 -- (possibly with separating punctuation), then usually it is omitted from
147 -- the tree, and a list of components appears instead. For example,
148 -- sequence of statements does not appear explicitly in the tree. Instead
149 -- a list of statements appears directly.
151 -- Some additional cases of omitted nodes occur and are documented
152 -- individually. In particular, many nodes are omitted in the tree
153 -- generated for an expression.
155 -------------------------------------------
156 -- Handling of Defining Identifier Lists --
157 -------------------------------------------
159 -- In several declarative forms in the syntax, lists of defining
160 -- identifiers appear (object declarations, component declarations, number
161 -- declarations etc.)
163 -- The semantics of such statements are equivalent to a series of identical
164 -- declarations of single defining identifiers (except that conformance
165 -- checks require the same grouping of identifiers in the parameter case).
167 -- To simplify semantic processing, the parser breaks down such multiple
168 -- declaration cases into sequences of single declarations, duplicating
169 -- type and initialization information as required. The flags More_Ids and
170 -- Prev_Ids are used to record the original form of the source in the case
171 -- where the original source used a list of names, More_Ids being set on
172 -- all but the last name and Prev_Ids being set on all but the first name.
173 -- These flags are used to reconstruct the original source (e.g. in the
174 -- Sprint package), and also are included in the conformance checks, but
175 -- otherwise have no semantic significance.
177 -- Note: the reason that we use More_Ids and Prev_Ids rather than
178 -- First_Name and Last_Name flags is so that the flags are off in the
179 -- normal one identifier case, which minimizes tree print output.
181 -----------------------
182 -- Use of Node Lists --
183 -----------------------
185 -- With a few exceptions, if a construction of the form {non-terminal}
186 -- appears in the tree, lists are used in the corresponding tree node (see
187 -- package Nlists for handling of node lists). In this case a field of the
188 -- parent node points to a list of nodes for the non-terminal. The field
189 -- name for such fields has a plural name which always ends in "s". For
190 -- example, a case statement has a field Alternatives pointing to list of
191 -- case statement alternative nodes.
193 -- Only fields pointing to lists have names ending in "s", so generally the
194 -- structure is strongly typed, fields not ending in s point to single
195 -- nodes, and fields ending in s point to lists.
197 -- The following example shows how a traversal of a list is written. We
198 -- suppose here that Stmt points to a N_Case_Statement node which has a
199 -- list field called Alternatives:
201 -- Alt := First (Alternatives (Stmt));
202 -- while Present (Alt) loop
204 -- -- processing for case statement alternative Alt
206 -- Alt := Next (Alt);
209 -- The Present function tests for Empty, which in this case signals the end
210 -- of the list. First returns Empty immediately if the list is empty.
211 -- Present is defined in Atree, First and Next are defined in Nlists.
213 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
214 -- contexts, which is handled as described in the previous section, and
215 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
216 -- using the First_Name and Last_Name flags, as further detailed in the
217 -- description of the N_With_Clause node.
223 -- Pragmas can appear in many different context, but are not included in
224 -- the grammar. Still they must appear in the tree, so they can be properly
227 -- Two approaches are used. In some cases, an extra field is defined in an
228 -- appropriate node that contains a list of pragmas appearing in the
229 -- expected context. For example pragmas can appear before an
230 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
231 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
233 -- The other approach is to simply allow pragmas to appear in syntactic
234 -- lists where the grammar (of course) does not include the possibility.
235 -- For example, the Variants field of an N_Variant_Part node points to a
236 -- list that can contain both N_Pragma and N_Variant nodes.
238 -- To make processing easier in the latter case, the Nlists package
239 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
240 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
241 -- ignoring all pragmas.
243 -- In the case of the variants list, we can either write:
245 -- Variant := First (Variants (N));
246 -- while Present (Variant) loop
248 -- Variant := Next (Variant);
253 -- Variant := First_Non_Pragma (Variants (N));
254 -- while Present (Variant) loop
256 -- Variant := Next_Non_Pragma (Variant);
259 -- In the first form of the loop, Variant can either be an N_Pragma or an
260 -- N_Variant node. In the second form, Variant can only be N_Variant since
261 -- all pragmas are skipped.
263 ---------------------
264 -- Optional Fields --
265 ---------------------
267 -- Fields which correspond to a section of the syntax enclosed in square
268 -- brackets are generally omitted (and the corresponding field set to Empty
269 -- for a node, or No_List for a list). The documentation of such fields
270 -- notes these cases. One exception to this rule occurs in the case of
271 -- possibly empty statement sequences (such as the sequence of statements
272 -- in an entry call alternative). Such cases appear in the syntax rules as
273 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
274 -- statement sequences always contain an empty list (not No_List) if no
275 -- statements are present.
277 -- Note: the utility program that constructs the body and spec of the Nmake
278 -- package relies on the format of the comments to determine if a field
279 -- should have a default value in the corresponding make routine. The rule
280 -- is that if the first line of the description of the field contains the
281 -- string "(set to xxx if", then a default value of xxx is provided for
282 -- this field in the corresponding Make_yyy routine.
284 -----------------------------------
285 -- Note on Body/Spec Terminology --
286 -----------------------------------
288 -- In informal discussions about Ada, it is customary to refer to package
289 -- and subprogram specs and bodies. However, this is not technically
290 -- correct, what is normally referred to as a spec or specification is in
291 -- fact a package declaration or subprogram declaration. We are careful in
292 -- GNAT to use the correct terminology and in particular, the full word
293 -- specification is never used as an incorrect substitute for declaration.
294 -- The structure and terminology used in the tree also reflects the grammar
295 -- and thus uses declaration and specification in the technically correct
298 -- However, there are contexts in which the informal terminology is useful.
299 -- We have the word "body" to refer to the Interp_Etype declared by the
300 -- declaration of a unit body, and in some contexts we need similar term to
301 -- refer to the entity declared by the package or subprogram declaration,
302 -- and simply using declaration can be confusing since the body also has a
305 -- An example of such a context is the link between the package body and
306 -- its declaration. With_Declaration is confusing, since the package body
307 -- itself is a declaration.
309 -- To deal with this problem, we reserve the informal term Spec, i.e. the
310 -- popular abbreviation used in this context, to refer to the entity
311 -- declared by the package or subprogram declaration. So in the above
312 -- example case, the field in the body is called With_Spec.
314 -- Another important context for the use of the word Spec is in error
315 -- messages, where a hyper-correct use of declaration would be confusing to
316 -- a typical Ada programmer, and even for an expert programmer can cause
317 -- confusion since the body has a declaration as well.
321 -- Declaration always refers to the syntactic entity that is called
322 -- a declaration. In particular, subprogram declaration
323 -- and package declaration are used to describe the
324 -- syntactic entity that includes the semicolon.
326 -- Specification always refers to the syntactic entity that is called
327 -- a specification. In particular, the terms procedure
328 -- specification, function specification, package
329 -- specification, subprogram specification always refer
330 -- to the syntactic entity that has no semicolon.
332 -- Spec is an informal term, used to refer to the entity
333 -- that is declared by a task declaration, protected
334 -- declaration, generic declaration, subprogram
335 -- declaration or package declaration.
337 -- This convention is followed throughout the GNAT documentation
338 -- both internal and external, and in all error message text.
340 ------------------------
341 -- Internal Use Nodes --
342 ------------------------
344 -- These are Node_Kind settings used in the internal implementation which
345 -- are not logically part of the specification.
348 -- Completely unused entry at the start of the enumeration type. This
349 -- is inserted so that no legitimate value is zero, which helps to get
350 -- better debugging behavior, since zero is a likely uninitialized value).
353 -- Completely unused entry at the end of the enumeration type. This is
354 -- handy so that arrays with Node_Kind as the index type have an extra
355 -- entry at the end (see for example the use of the Pchar_Pos_Array in
356 -- Treepr, where the extra entry provides the limit value when dealing with
357 -- the last used entry in the array).
359 -----------------------------------------
360 -- Note on the settings of Sloc fields --
361 -----------------------------------------
363 -- The Sloc field of nodes that come from the source is set by the parser.
364 -- For internal nodes, and nodes generated during expansion the Sloc is
365 -- usually set in the call to the constructor for the node. In general the
366 -- Sloc value chosen for an internal node is the Sloc of the source node
367 -- whose processing is responsible for the expansion. For example, the Sloc
368 -- of an inherited primitive operation is the Sloc of the corresponding
369 -- derived type declaration.
371 -- For the nodes of a generic instantiation, the Sloc value is encoded to
372 -- represent both the original Sloc in the generic unit, and the Sloc of
373 -- the instantiation itself. See Sinput.ads for details.
375 -- Subprogram instances create two callable entities: one is the visible
376 -- subprogram instance, and the other is an anonymous subprogram nested
377 -- within a wrapper package that contains the renamings for the actuals.
378 -- Both of these entities have the Sloc of the defining entity in the
379 -- instantiation node. This simplifies some ASIS queries.
381 -----------------------
382 -- Field Definitions --
383 -----------------------
385 -- In the following node definitions, all fields, both syntactic and
386 -- semantic, are documented. The one exception is in the case of entities
387 -- (defining indentifiers, character literals and operator symbols), where
388 -- the usage of the fields depends on the entity kind. Entity fields are
389 -- fully documented in the separate package Einfo.
391 -- In the node definitions, three common sets of fields are abbreviated to
392 -- save both space in the documentation, and also space in the string
393 -- (defined in Tree_Print_Strings) used to print trees. The following
394 -- abbreviations are used:
396 -- Note: the utility program that creates the Treeprs spec (in the file
397 -- xtreeprs.adb) knows about the special fields here, so it must be
398 -- modified if any change is made to these fields.
400 -- "plus fields for binary operator"
401 -- Chars (Name1) Name_Id for the operator
402 -- Left_Opnd (Node2) left operand expression
403 -- Right_Opnd (Node3) right operand expression
404 -- Entity (Node4-Sem) defining entity for operator
405 -- Associated_Node (Node4-Sem) for generic processing
406 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
407 -- Has_Private_View (Flag11-Sem) set in generic units.
409 -- "plus fields for unary operator"
410 -- Chars (Name1) Name_Id for the operator
411 -- Right_Opnd (Node3) right operand expression
412 -- Entity (Node4-Sem) defining entity for operator
413 -- Associated_Node (Node4-Sem) for generic processing
414 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
415 -- Has_Private_View (Flag11-Sem) set in generic units.
417 -- "plus fields for expression"
418 -- Paren_Count number of parentheses levels
419 -- Etype (Node5-Sem) type of the expression
420 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
421 -- Is_Static_Expression (Flag6-Sem) set for static expression
422 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
423 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
424 -- Do_Range_Check (Flag9-Sem) set if a range check needed
425 -- Assignment_OK (Flag15-Sem) set if modification is OK
426 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
428 -- Note: see under (EXPRESSION) for further details on the use of
429 -- the Paren_Count field to record the number of parentheses levels.
431 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
432 -- The actual definition of this type is given later (the reason for this
433 -- is that we want the descriptions ordered by logical chapter in the RM,
434 -- but the type definition is reordered to facilitate the definition of
435 -- some subtype ranges. The individual descriptions of the nodes show how
436 -- the various fields are used in each node kind, as well as providing
437 -- logical names for the fields. Functions and procedures are provided for
438 -- accessing and setting these fields using these logical names.
440 -----------------------
441 -- Gigi Restrictions --
442 -----------------------
444 -- The tree passed to Gigi is more restricted than the general tree form.
445 -- For example, as a result of expansion, most of the tasking nodes can
446 -- never appear. For each node to which either a complete or partial
447 -- restriction applies, a note entitled "Gigi restriction" appears which
448 -- documents the restriction.
450 -- Note that most of these restrictions apply only to trees generated when
451 -- code is being generated, since they involved expander actions that
454 ------------------------
455 -- Common Flag Fields --
456 ------------------------
458 -- The following flag fields appear in all nodes
461 -- This flag is used to indicate that a node (and all its children have
462 -- been analyzed. It is used to avoid reanalysis of a node that has
463 -- already been analyzed, both for efficiency and functional correctness
466 -- Comes_From_Source (Flag2)
467 -- This flag is on for any nodes built by the scanner or parser from the
468 -- source program, and off for any nodes built by the analyzer or
469 -- expander. It indicates that a node comes from the original source.
470 -- This flag is defined in Atree.
472 -- Error_Posted (Flag3)
473 -- This flag is used to avoid multiple error messages being posted on or
474 -- referring to the same node. This flag is set if an error message
475 -- refers to a node or is posted on its source location, and has the
476 -- effect of inhibiting further messages involving this same node.
478 -- Local_Raise_Statements (Elist1)
479 -- This field is present in exception handler nodes. It is set to
480 -- No_Elist in the normal case. If there is at least one raise statement
481 -- which can potentially be handled as a local raise, then this field
482 -- points to a list of raise nodes, which are calls to a routine to raise
483 -- an exception. These are raise nodes which can be optimized into gotos
484 -- if the handler turns out to meet the conditions which permit this
485 -- transformation. Note that this does NOT include instances of the
486 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
487 -- handled by the back end (using the N_Push/N_Pop mechanism).
489 -- Has_Dynamic_Length_Check (Flag10-Sem)
490 -- This flag is present on all nodes. It is set to indicate that one of
491 -- the routines in unit Checks has generated a length check action which
492 -- has been inserted at the flagged node. This is used to avoid the
493 -- generation of duplicate checks.
495 -- Has_Dynamic_Range_Check (Flag12-Sem)
496 -- This flag is present on all nodes. It is set to indicate that one of
497 -- the routines in unit Checks has generated a range check action which
498 -- has been inserted at the flagged node. This is used to avoid the
499 -- generation of duplicate checks.
501 -- Has_Local_Raise (Flag8-Sem)
502 -- Present in exception handler nodes. Set if the handler can be entered
503 -- via a local raise that gets transformed to a goto statement. This will
504 -- always be set if Local_Raise_Statements is non-empty, but can also be
505 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
506 -- nodes requiring generation of back end checks.
508 ------------------------------------
509 -- Description of Semantic Fields --
510 ------------------------------------
512 -- The meaning of the syntactic fields is generally clear from their names
513 -- without any further description, since the names are chosen to
514 -- correspond very closely to the syntax in the reference manual. This
515 -- section describes the usage of the semantic fields, which are used to
516 -- contain additional information determined during semantic analysis.
518 -- ABE_Is_Certain (Flag18-Sem)
519 -- This flag is set in an instantiation node or a call node is determined
520 -- to be sure to raise an ABE. This is used to trigger special handling
521 -- of such cases, particularly in the instantiation case where we avoid
522 -- instantiating the body if this flag is set. This flag is also present
523 -- in an N_Formal_Package_Declaration_Node since formal package
524 -- declarations are treated like instantiations, but it is always set to
525 -- False in this context.
527 -- Accept_Handler_Records (List5-Sem)
528 -- This field is present only in an N_Accept_Alternative node. It is used
529 -- to temporarily hold the exception handler records from an accept
530 -- statement in a selective accept. These exception handlers will
531 -- eventually be placed in the Handler_Records list of the procedure
532 -- built for this accept (see Expand_N_Selective_Accept procedure in
533 -- Exp_Ch9 for further details).
535 -- Access_Types_To_Process (Elist2-Sem)
536 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
537 -- Contains the list of access types which may require specific treatment
538 -- when the nature of the type completion is completely known. An example
539 -- of such treatement is the generation of the associated_final_chain.
541 -- Actions (List1-Sem)
542 -- This field contains a sequence of actions that are associated with the
543 -- node holding the field. See the individual node types for details of
544 -- how this field is used, as well as the description of the specific use
545 -- for a particular node type.
547 -- Activation_Chain_Entity (Node3-Sem)
548 -- This is used in tree nodes representing task activators (blocks,
549 -- subprogram bodies, package declarations, and task bodies). It is
550 -- initially Empty, and then gets set to point to the entity for the
551 -- declared Activation_Chain variable when the first task is declared.
552 -- When tasks are declared in the corresponding declarative region this
553 -- entity is located by name (its name is always _Chain) and the declared
554 -- tasks are added to the chain. Note that N_Extended_Return_Statement
555 -- does not have this attribute, although it does have an activation
556 -- chain. This chain is used to store the tasks temporarily, and is not
557 -- used for activating them. On successful completion of the return
558 -- statement, the tasks are moved to the caller's chain, and the caller
561 -- Acts_As_Spec (Flag4-Sem)
562 -- A flag set in the N_Subprogram_Body node for a subprogram body which
563 -- is acting as its own spec. This flag also appears in the compilation
564 -- unit node at the library level for such a subprogram (see further
565 -- description in spec of Lib package).
567 -- Actual_Designated_Subtype (Node4-Sem)
568 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
569 -- needs to known the dynamic constrained subtype of the designated
570 -- object, this attribute is set to that type. This is done for
571 -- N_Free_Statements for access-to-classwide types and access to
572 -- unconstrained packed array types, and for N_Explicit_Dereference when
573 -- the designated type is an unconstrained packed array and the
574 -- dereference is the prefix of a 'Size attribute reference.
576 -- Aggregate_Bounds (Node3-Sem)
577 -- Present in array N_Aggregate nodes. If the aggregate contains
578 -- component associations this field points to an N_Range node whose
579 -- bounds give the lowest and highest discrete choice values. If the
580 -- named aggregate contains a dynamic or null choice this field is empty.
581 -- If the aggregate contains positional elements this field points to an
582 -- N_Integer_Literal node giving the number of positional elements. Note
583 -- that if the aggregate contains positional elements and an other choice
584 -- the N_Integer_Literal only accounts for the number of positional
587 -- All_Others (Flag11-Sem)
588 -- Present in an N_Others_Choice node. This flag is set in the case of an
589 -- others exception where all exceptions are to be caught, even those
590 -- that are not normally handled (in particular the tasking abort
591 -- signal). This is used for translation of the at end handler into a
592 -- normal exception handler.
594 -- Assignment_OK (Flag15-Sem)
595 -- This flag is set in a subexpression node for an object, indicating
596 -- that the associated object can be modified, even if this would not
597 -- normally be permissible (either by direct assignment, or by being
598 -- passed as an out or in-out parameter). This is used by the expander
599 -- for a number of purposes, including initialzation of constants and
600 -- limited type objects (such as tasks), setting discriminant fields,
601 -- setting tag values, etc. N_Object_Declaration nodes also have this
602 -- flag defined. Here it is used to indicate that an initialization
603 -- expression is valid, even where it would normally not be allowed (e.g.
604 -- where the type involved is limited).
606 -- Associated_Node (Node4-Sem)
607 -- Present in nodes that can denote an entity: identifiers, character
608 -- literals, operator symbols, expanded names, operator nodes, and
609 -- attribute reference nodes (all these nodes have an Entity field). This
610 -- field is also present in N_Aggregate, N_Selected_Component, and
611 -- N_Extension_Aggregate nodes. This field is used in generic processing
612 -- to create links between the generic template and the generic copy. See
613 -- Sem_Ch12.Get_Associated_Node for full details. Note that this field
614 -- overlaps Entity, which is fine, since, as explained in Sem_Ch12, the
615 -- normal function of Entity is not required at the point where the
616 -- Associated_Node is set. Note also, that in generic templates, this
617 -- means that the Entity field does not necessarily point to an Entity.
618 -- Since the back end is expected to ignore generic templates, this is
621 -- At_End_Proc (Node1)
622 -- This field is present in an N_Handled_Sequence_Of_Statements node. It
623 -- contains an identifier reference for the cleanup procedure to be
624 -- called. See description of this node for further details.
626 -- Backwards_OK (Flag6-Sem)
627 -- A flag present in the N_Assignment_Statement node. It is used only if
628 -- the type being assigned is an array type, and is set if analysis
629 -- determines that it is definitely safe to do the copy backwards, i.e.
630 -- starting at the highest addressed element. Note that if neither of the
631 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
632 -- could not determine that either direction is definitely safe, and a
633 -- runtime check may be required if the backend cannot figure it out.
635 -- Body_To_Inline (Node3-Sem)
636 -- present in subprogram declarations. Denotes analyzed but unexpanded
637 -- body of subprogram, to be used when inlining calls. Present when the
638 -- subprogram has an Inline pragma and inlining is enabled. If the
639 -- declaration is completed by a renaming_as_body, and the renamed en-
640 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
641 -- which is used directly in later calls to the original subprogram.
643 -- Body_Required (Flag13-Sem)
644 -- A flag that appears in the N_Compilation_Unit node indicating that the
645 -- corresponding unit requires a body. For the package case, this
646 -- indicates that a completion is required. In Ada 95, if the flag is not
647 -- set for the package case, then a body may not be present. In Ada 83,
648 -- if the flag is not set for the package case, then body is optional.
649 -- For a subprogram declaration, the flag is set except in the case where
650 -- a pragma Import or Interface applies, in which case no body is
651 -- permitted (in Ada 83 or Ada 95).
653 -- By_Ref (Flag5-Sem)
654 -- A flag present in N_Simple_Return_Statement and
655 -- N_Extended_Return_Statement.
656 -- It is set when the returned expression is already allocated on the
657 -- secondary stack and thus the result is passed by reference rather
658 -- than copied another time.
660 -- Check_Address_Alignment (Flag11-Sem)
661 -- A flag present in N_Attribute_Definition clause for a 'Address
662 -- attribute definition. This flag is set if a dynamic check should be
663 -- generated at the freeze point for the entity to which this address
664 -- clause applies. The reason that we need this flag is that we want to
665 -- check for range checks being suppressed at the point where the
666 -- attribute definition clause is given, rather than testing this at the
669 -- Coextensions (Elist4-Sem)
670 -- Present in allocators nodes. Points to list of allocators for the
671 -- access discriminants of the allocated object.
673 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
674 -- Present in N_Simple_Return_Statement nodes. True if this node was
675 -- constructed as part of the expansion of an
676 -- N_Extended_Return_Statement.
678 -- Compile_Time_Known_Aggregate (Flag18-Sem)
679 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
680 -- evaluated at compile time without raising constraint error. Such
681 -- aggregates can be passed as is to Gigi without any expansion. See
682 -- Sem_Aggr for the specific conditions under which an aggregate has this
683 -- flag set. See also the flag Static_Processing_OK.
685 -- Condition_Actions (List3-Sem)
686 -- This field appears in else-if nodes and in the iteration scheme node
687 -- for while loops. This field is only used during semantic processing to
688 -- temporarily hold actions inserted into the tree. In the tree passed to
689 -- gigi, the condition actions field is always set to No_List. For
690 -- details on how this field is used, see the routine Insert_Actions in
691 -- package Exp_Util, and also the expansion routines for the relevant
694 -- Controlling_Argument (Node1-Sem)
695 -- This field is set in procedure and function call nodes if the call is
696 -- a dispatching call (it is Empty for a non-dispatching call). It
697 -- indicates the source of the call's controlling tag. For procedure
698 -- calls, the Controlling_Argument is one of the actuals. For function
699 -- that has a dispatching result, it is an entity in the context of the
700 -- call that can provide a tag, or else it is the tag of the root type of
701 -- the class. It can also specify a tag directly rather than being a
702 -- tagged object. The latter is needed by the implementations of AI-239
705 -- Conversion_OK (Flag14-Sem)
706 -- A flag set on type conversion nodes to indicate that the conversion is
707 -- to be considered as being valid, even though it is the case that the
708 -- conversion is not valid Ada. This is used for Enum_Rep, Fixed_Value
709 -- and Integer_Value attributes, for internal conversions done for
710 -- fixed-point operations, and for certain conversions for calls to
711 -- initialization procedures. If Conversion_OK is set, then Etype must be
712 -- set (the analyzer assumes that Etype has been set). For the case of
713 -- fixed-point operands, it also indicates that the conversion is to be
714 -- direct conversion of the underlying integer result, with no regard to
715 -- the small operand.
717 -- Corresponding_Body (Node5-Sem)
718 -- This field is set in subprogram declarations, package declarations,
719 -- entry declarations of protected types, and in generic units. It
720 -- points to the defining entity for the corresponding body (NOT the
721 -- node for the body itself).
723 -- Corresponding_Formal_Spec (Node3-Sem)
724 -- This field is set in subprogram renaming declarations, where it points
725 -- to the defining entity for a formal subprogram in the case where the
726 -- renaming corresponds to a generic formal subprogram association in an
727 -- instantiation. The field is Empty if the renaming does not correspond
728 -- to such a formal association.
730 -- Corresponding_Generic_Association (Node5-Sem)
731 -- This field is defined for object declarations and object renaming
732 -- declarations. It is set for the declarations within an instance that
733 -- map generic formals to their actuals. If set, the field points to
734 -- a generic_association which is the original parent of the expression
735 -- or name appearing in the declaration. This simplifies ASIS queries.
737 -- Corresponding_Integer_Value (Uint4-Sem)
738 -- This field is set in real literals of fixed-point types (it is not
739 -- used for floating-point types). It contains the integer value used
740 -- to represent the fixed-point value. It is also set on the universal
741 -- real literals used to represent bounds of fixed-point base types
742 -- and their first named subtypes.
744 -- Corresponding_Spec (Node5-Sem)
745 -- This field is set in subprogram, package, task, and protected body
746 -- nodes, where it points to the defining entity in the corresponding
747 -- spec. The attribute is also set in N_With_Clause nodes, where it
748 -- points to the defining entity for the with'ed spec, and in a
749 -- subprogram renaming declaration when it is a Renaming_As_Body. The
750 -- field is Empty if there is no corresponding spec, as in the case of a
751 -- subprogram body that serves as its own spec.
753 -- Corresponding_Stub (Node3-Sem)
754 -- This field is present in an N_Subunit node. It holds the node in
755 -- the parent unit that is the stub declaration for the subunit. it is
756 -- set when analysis of the stub forces loading of the proper body. If
757 -- expansion of the proper body creates new declarative nodes, they are
758 -- inserted at the point of the corresponding_stub.
760 -- Dcheck_Function (Node5-Sem)
761 -- This field is present in an N_Variant node, It references the entity
762 -- for the discriminant checking function for the variant.
764 -- Debug_Statement (Node3)
765 -- This field is present in an N_Pragma node. It is used only for a Debug
766 -- pragma. The parameter is of the form of an expression, as required by
767 -- the pragma syntax, but is actually a procedure call. To simplify
768 -- semantic processing, the parser creates a copy of the argument
769 -- rearranged into a procedure call statement and places it in the
770 -- Debug_Statement field. Note that this field is considered syntactic
771 -- field, since it is created by the parser.
773 -- Default_Expression (Node5-Sem)
774 -- This field is Empty if there is no default expression. If there is a
775 -- simple default expression (one with no side effects), then this field
776 -- simply contains a copy of the Expression field (both point to the tree
777 -- for the default expression). Default_Expression is used for
778 -- conformance checking.
780 -- Discr_Check_Funcs_Built (Flag11-Sem)
781 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
782 -- discriminant checking functions are constructed. The purpose is to
783 -- avoid attempting to set these functions more than once.
785 -- Do_Accessibility_Check (Flag13-Sem)
786 -- This flag is set on N_Parameter_Specification nodes to indicate
787 -- that an accessibility check is required for the parameter. It is
788 -- not yet decided who takes care of this check (TBD ???).
790 -- Do_Discriminant_Check (Flag13-Sem)
791 -- This flag is set on N_Selected_Component nodes to indicate that a
792 -- discriminant check is required using the discriminant check routine
793 -- associated with the selector. The actual check is generated by the
794 -- expander when processing selected components.
796 -- Do_Division_Check (Flag13-Sem)
797 -- This flag is set on a division operator (/ mod rem) to indicate
798 -- that a zero divide check is required. The actual check is dealt
799 -- with by the backend (all the front end does is to set the flag).
801 -- Do_Length_Check (Flag4-Sem)
802 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
803 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
804 -- is required. It is not determined who deals with this flag (???).
806 -- Do_Overflow_Check (Flag17-Sem)
807 -- This flag is set on an operator where an overflow check is required on
808 -- the operation. The actual check is dealt with by the backend (all the
809 -- front end does is to set the flag). The other cases where this flag is
810 -- used is on a Type_Conversion node and for attribute reference nodes.
811 -- For a type conversion, it means that the conversion is from one base
812 -- type to another, and the value may not fit in the target base type.
813 -- See also the description of Do_Range_Check for this case. The only
814 -- attribute references which use this flag are Pred and Succ, where it
815 -- means that the result should be checked for going outside the base
818 -- Do_Range_Check (Flag9-Sem)
819 -- This flag is set on an expression which appears in a context where
820 -- a range check is required. The target type is clear from the
821 -- context. The contexts in which this flag can appear are limited to
824 -- Right side of an assignment. In this case the target type is
825 -- taken from the left side of the assignment, which is referenced
826 -- by the Name of the N_Assignment_Statement node.
828 -- Subscript expressions in an indexed component. In this case the
829 -- target type is determined from the type of the array, which is
830 -- referenced by the Prefix of the N_Indexed_Component node.
832 -- Argument expression for a parameter, appearing either directly in
833 -- the Parameter_Associations list of a call or as the Expression of an
834 -- N_Parameter_Association node that appears in this list. In either
835 -- case, the check is against the type of the formal. Note that the
836 -- flag is relevant only in IN and IN OUT parameters, and will be
837 -- ignored for OUT parameters, where no check is required in the call,
838 -- and if a check is required on the return, it is generated explicitly
839 -- with a type conversion.
841 -- Initialization expression for the initial value in an object
842 -- declaration. In this case the Do_Range_Check flag is set on
843 -- the initialization expression, and the check is against the
844 -- range of the type of the object being declared.
846 -- The expression of a type conversion. In this case the range check is
847 -- against the target type of the conversion. See also the use of
848 -- Do_Overflow_Check on a type conversion. The distinction is that the
849 -- overflow check protects against a value that is outside the range of
850 -- the target base type, whereas a range check checks that the
851 -- resulting value (which is a value of the base type of the target
852 -- type), satisfies the range constraint of the target type.
854 -- Note: when a range check is required in contexts other than those
855 -- listed above (e.g. in a return statement), an additional type
856 -- conversion node is introduced to represent the required check.
858 -- Do_Storage_Check (Flag17-Sem)
859 -- This flag is set in an N_Allocator node to indicate that a storage
860 -- check is required for the allocation, or in an N_Subprogram_Body node
861 -- to indicate that a stack check is required in the subprogram prolog.
862 -- The N_Allocator case is handled by the routine that expands the call
863 -- to the runtime routine. The N_Subprogram_Body case is handled by the
864 -- backend, and all the semantics does is set the flag.
866 -- Do_Tag_Check (Flag13-Sem)
867 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
868 -- N_Procedure_Call_Statement, N_Type_Conversion,
869 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
870 -- node to indicate that the tag check can be suppressed. It is not
871 -- yet decided how this flag is used (TBD ???).
873 -- Elaborate_Present (Flag4-Sem)
874 -- This flag is set in the N_With_Clause node to indicate that pragma
875 -- Elaborate pragma appears for the with'ed units.
877 -- Elaborate_All_Desirable (Flag9-Sem)
878 -- This flag is set in the N_With_Clause mode to indicate that the static
879 -- elaboration processing has determined that an Elaborate_All pragma is
880 -- desirable for correct elaboration for this unit.
882 -- Elaborate_All_Present (Flag14-Sem)
883 -- This flag is set in the N_With_Clause node to indicate that a
884 -- pragma Elaborate_All pragma appears for the with'ed units.
886 -- Elaborate_Desirable (Flag11-Sem)
887 -- This flag is set in the N_With_Clause mode to indicate that the static
888 -- elaboration processing has determined that an Elaborate pragma is
889 -- desirable for correct elaboration for this unit.
891 -- Elaboration_Boolean (Node2-Sem)
892 -- This field is present in function and procedure specification
893 -- nodes. If set, it points to the entity for a Boolean flag that
894 -- must be tested for certain calls to check for access before
895 -- elaboration. See body of Sem_Elab for further details. This
896 -- field is Empty if no elaboration boolean is required.
898 -- Else_Actions (List3-Sem)
899 -- This field is present in conditional expression nodes. During code
900 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
901 -- actions at an appropriate place in the tree to get elaborated at the
902 -- right time. For conditional expressions, we have to be sure that the
903 -- actions for the Else branch are only elaborated if the condition is
904 -- False. The Else_Actions field is used as a temporary parking place for
905 -- these actions. The final tree is always rewritten to eliminate the
906 -- need for this field, so in the tree passed to Gigi, this field is
907 -- always set to No_List.
909 -- Enclosing_Variant (Node2-Sem)
910 -- This field is present in the N_Variant node and identifies the
911 -- Node_Id corresponding to the immediately enclosing variant when
912 -- the variant is nested, and N_Empty otherwise. Set during semantic
913 -- processing of the variant part of a record type.
915 -- Entity (Node4-Sem)
916 -- Appears in all direct names (identifier, character literal, operator
917 -- symbol), as well as expanded names, and attributes that denote
918 -- entities, such as 'Class. Points to the entity for the corresponding
919 -- defining occurrence. Set after name resolution. In the case of
920 -- identifiers in a WITH list, the corresponding defining occurrence is
921 -- in a separately compiled file, and this pointer must be set using the
922 -- library Load procedure. Note that during name resolution, the value in
923 -- Entity may be temporarily incorrect (e.g. during overload resolution,
924 -- Entity is initially set to the first possible correct interpretation,
925 -- and then later modified if necessary to contain the correct value
926 -- after resolution). Note that this field overlaps Associated_Node,
927 -- which is used during generic processing (see Sem_Ch12 for details).
928 -- Note also that in generic templates, this means that the Entity field
929 -- does not always point to an Entity. Since the back end is expected to
930 -- ignore generic templates, this is harmless. Note that this field also
931 -- appears in N_Attribute_Definition_Clause nodes. It is used only for
932 -- stream attributes definition clauses. In this case, it denotes a
933 -- (possibly dummy) subprogram entity that is conceptually declared at
934 -- the point of the clause. Thus the visibility of the attribute
935 -- definition clause (in the sense of 8.3(23) as amended by AI-195) can
936 -- be checked by testing the visibility of that subprogram.
938 -- Entity_Or_Associated_Node (Node4-Sem)
939 -- A synonym for both Entity and Associated_Node. Used by convention in
940 -- the code when referencing this field in cases where it is not known
941 -- whether the field contains an Entity or an Associated_Node.
944 -- Appears in all expression nodes, all direct names, and all entities.
945 -- Points to the entity for the related type. Set after type resolution.
946 -- Normally this is the actual subtype of the expression. However, in
947 -- certain contexts such as the right side of an assignment, subscripts,
948 -- arguments to calls, returned value in a function, initial value etc.
949 -- it is the desired target type. In the event that this is different
950 -- from the actual type, the Do_Range_Check flag will be set if a range
951 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
952 -- points to an essentially arbitrary choice from the possible set of
955 -- Exception_Junk (Flag8-Sem)
956 -- This flag is set in a various nodes appearing in a statement sequence
957 -- to indicate that the corresponding node is an artifact of the
958 -- generated code for exception handling, and should be ignored when
959 -- analyzing the control flow of the relevant sequence of statements
960 -- (e.g. to check that it does not end with a bad return statement).
962 -- Exception_Label (Node5-Sem)
963 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
964 -- to be used for transforming the corresponding exception into a goto,
965 -- or contains Empty, if this exception is not to be transformed. Also
966 -- appears in N_Exception_Handler nodes, where, if set, it indicates
967 -- that there may be a local raise for the handler, so that expansion
968 -- to allow a goto is required (and this field contains the label for
969 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
971 -- Expansion_Delayed (Flag11-Sem)
972 -- Set on aggregates and extension aggregates that need a top-down rather
973 -- than bottom up expansion. Typically aggregate expansion happens bottom
974 -- up. For nested aggregates the expansion is delayed until the enclosing
975 -- aggregate itself is expanded, e.g. in the context of a declaration. To
976 -- delay it we set this flag. This is done to avoid creating a temporary
977 -- for each level of a nested aggregates, and also to prevent the
978 -- premature generation of constraint checks. This is also a requirement
979 -- if we want to generate the proper attachment to the internal
980 -- finalization lists (for record with controlled components). Top down
981 -- expansion of aggregates is also used for in-place array aggregate
982 -- assignment or initialization. When the full context is known, the
983 -- target of the assignment or initialization is used to generate the
984 -- left-hand side of individual assignment to each sub-component.
986 -- First_Inlined_Subprogram (Node3-Sem)
987 -- Present in the N_Compilation_Unit node for the main program. Points to
988 -- a chain of entities for subprograms that are to be inlined. The
989 -- Next_Inlined_Subprogram field of these entities is used as a link
990 -- pointer with Empty marking the end of the list. This field is Empty if
991 -- there are no inlined subprograms or inlining is not active.
993 -- First_Named_Actual (Node4-Sem)
994 -- Present in procedure call statement and function call nodes, and also
995 -- in Intrinsic nodes. Set during semantic analysis to point to the first
996 -- named parameter where parameters are ordered by declaration order (as
997 -- opposed to the actual order in the call which may be different due to
998 -- named associations). Note: this field points to the explicit actual
999 -- parameter itself, not the N_Parameter_Association node (its parent).
1001 -- First_Real_Statement (Node2-Sem)
1002 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1003 -- Empty. Used only when declarations are moved into the statement part
1004 -- of a construct as a result of wrapping an AT END handler that is
1005 -- required to cover the declarations. In this case, this field is used
1006 -- to remember the location in the statements list of the first real
1007 -- statement, i.e. the statement that used to be first in the statement
1008 -- list before the declarations were prepended.
1010 -- First_Subtype_Link (Node5-Sem)
1011 -- Present in N_Freeze_Entity node for an anonymous base type that is
1012 -- implicitly created by the declaration of a first subtype. It points to
1013 -- the entity for the first subtype.
1015 -- Float_Truncate (Flag11-Sem)
1016 -- A flag present in type conversion nodes. This is used for float to
1017 -- integer conversions where truncation is required rather than rounding.
1018 -- Note that Gigi does not handle type conversions from real to integer
1019 -- with rounding (see Expand_N_Type_Conversion).
1021 -- Forwards_OK (Flag5-Sem)
1022 -- A flag present in the N_Assignment_Statement node. It is used only if
1023 -- the type being assigned is an array type, and is set if analysis
1024 -- determines that it is definitely safe to do the copy forwards, i.e.
1025 -- starting at the lowest addressed element. Note that if neither of the
1026 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1027 -- could not determine that either direction is definitely safe, and a
1028 -- runtime check is required.
1030 -- From_At_Mod (Flag4-Sem)
1031 -- This flag is set on the attribute definition clause node that is
1032 -- generated by a transformation of an at mod phrase in a record
1033 -- representation clause. This is used to give slightly different (Ada 83
1034 -- compatible) semantics to such a clause, namely it is used to specify a
1035 -- minimum acceptable alignment for the base type and all subtypes. In
1036 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1037 -- must be a multiple of the given value, and the representation clause
1038 -- is considered to be type specific instead of subtype specific.
1040 -- From_Default (Flag6-Sem)
1041 -- This flag is set on the subprogram renaming declaration created in an
1042 -- instance for a formal subprogram, when the formal is declared with a
1043 -- box, and there is no explicit actual. If the flag is present, the
1044 -- declaration is treated as an implicit reference to the formal in the
1047 -- Generic_Parent (Node5-Sem)
1048 -- Generic_Parent is defined on declaration nodes that are instances. The
1049 -- value of Generic_Parent is the generic entity from which the instance
1050 -- is obtained. Generic_Parent is also defined for the renaming
1051 -- declarations and object declarations created for the actuals in an
1052 -- instantiation. The generic parent of such a declaration is the
1053 -- corresponding generic association in the Instantiation node.
1055 -- Generic_Parent_Type (Node4-Sem)
1056 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1057 -- actuals of formal private and derived types. Within the instance, the
1058 -- operations on the actual are those inherited from the parent. For a
1059 -- formal private type, the parent type is the generic type itself. The
1060 -- Generic_Parent_Type is also used in an instance to determine whether a
1061 -- private operation overrides an inherited one.
1063 -- Handler_List_Entry (Node2-Sem)
1064 -- This field is present in N_Object_Declaration nodes. It is set only
1065 -- for the Handler_Record entry generated for an exception in zero cost
1066 -- exception handling mode. It references the corresponding item in the
1067 -- handler list, and is used to delete this entry if the corresponding
1068 -- handler is deleted during optimization. For further details on why
1069 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1071 -- Has_No_Elaboration_Code (Flag17-Sem)
1072 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1073 -- or not elaboration code is present for this unit. It is initially set
1074 -- true for subprogram specs and bodies and for all generic units and
1075 -- false for non-generic package specs and bodies. Gigi may set the flag
1076 -- in the non-generic package case if it determines that no elaboration
1077 -- code is generated. Note that this flag is not related to the
1078 -- Is_Preelaborated status, there can be preelaborated packages that
1079 -- generate elaboration code, and non- preelaborated packages which do
1080 -- not generate elaboration code.
1082 -- Has_Priority_Pragma (Flag6-Sem)
1083 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1084 -- N_Protected_Definition nodes to flag the presence of either a Priority
1085 -- or Interrupt_Priority pragma in the declaration sequence (public or
1086 -- private in the task and protected cases)
1088 -- Has_Private_View (Flag11-Sem)
1089 -- A flag present in generic nodes that have an entity, to indicate that
1090 -- the node has a private type. Used to exchange private and full
1091 -- declarations if the visibility at instantiation is different from the
1092 -- visibility at generic definition.
1094 -- Has_Self_Reference (Flag13-Sem)
1095 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1096 -- of the expressions contains an access attribute reference to the
1097 -- enclosing type. Such a self-reference can only appear in default-
1098 -- initialized aggregate for a record type.
1100 -- Has_Storage_Size_Pragma (Flag5-Sem)
1101 -- A flag present in an N_Task_Definition node to flag the presence of a
1102 -- Storage_Size pragma.
1104 -- Has_Task_Info_Pragma (Flag7-Sem)
1105 -- A flag present in an N_Task_Definition node to flag the presence of a
1106 -- Task_Info pragma. Used to detect duplicate pragmas.
1108 -- Has_Task_Name_Pragma (Flag8-Sem)
1109 -- A flag present in N_Task_Definition nodes to flag the presence of a
1110 -- Task_Name pragma in the declaration sequence for the task.
1112 -- Has_Wide_Character (Flag11-Sem)
1113 -- Present in string literals, set if any wide character (i.e. character
1114 -- code outside the Character range) appears in the string.
1116 -- Hidden_By_Use_Clause (Elist4-Sem)
1117 -- An entity list present in use clauses that appear within
1118 -- instantiations. For the resolution of local entities, entities
1119 -- introduced by these use clauses have priority over global ones, and
1120 -- outer entities must be explicitly hidden/restored on exit.
1122 -- Implicit_With (Flag16-Sem)
1123 -- This flag is set in the N_With_Clause node that is implicitly
1124 -- generated for runtime units that are loaded by the expander, and also
1125 -- for package System, if it is loaded implicitly by a use of the
1126 -- 'Address or 'Tag attribute.
1128 -- Includes_Infinities (Flag11-Sem)
1129 -- This flag is present in N_Range nodes. It is set for the range of
1130 -- unconstrained float types defined in Standard, which include not only
1131 -- the given range of values, but also legtitimately can include infinite
1132 -- values. This flag is false for any float type for which an explicit
1133 -- range is given by the programmer, even if that range is identical to
1134 -- the range for Float.
1136 -- Instance_Spec (Node5-Sem)
1137 -- This field is present in generic instantiation nodes, and also in
1138 -- formal package declaration nodes (formal package declarations are
1139 -- treated in a manner very similar to package instantiations). It points
1140 -- to the node for the spec of the instance, inserted as part of the
1141 -- semantic processing for instantiations in Sem_Ch12.
1143 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1144 -- A flag set in a Block_Statement node to indicate that it is the
1145 -- expansion of an asynchronous entry call. Such a block needs cleanup
1146 -- handler to assure that the call is cancelled.
1148 -- Is_Component_Left_Opnd (Flag13-Sem)
1149 -- Is_Component_Right_Opnd (Flag14-Sem)
1150 -- Present in concatenation nodes, to indicate that the corresponding
1151 -- operand is of the component type of the result. Used in resolving
1152 -- concatenation nodes in instances.
1154 -- Is_Controlling_Actual (Flag16-Sem)
1155 -- This flag is set on in an expression that is a controlling argument in
1156 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1157 -- details of its use.
1159 -- Is_Dynamic_Coextension (Flag18-Sem)
1160 -- Present in allocator nodes, to indicate that this is an allocator
1161 -- for an access discriminant of a dynamically allocated object. The
1162 -- coextension must be deallocated and finalized at the same time as
1163 -- the enclosing object.
1165 -- Is_Entry_Barrier_Function (Flag8-Sem)
1166 -- This flag is set in an N_Subprogram_Body node which is the expansion
1167 -- of an entry barrier from a protected entry body. It is used for the
1168 -- circuitry checking for incorrect use of Current_Task.
1170 -- Is_In_Discriminant_Check (Flag11-Sem)
1171 -- This flag is present in a selected component, and is used to indicate
1172 -- that the reference occurs within a discriminant check. The
1173 -- significance is that optimizations based on assuming that the
1174 -- discriminant check has a correct value cannot be performed in this
1175 -- case (or the disriminant check may be optimized away!)
1177 -- Is_Machine_Number (Flag11-Sem)
1178 -- This flag is set in an N_Real_Literal node to indicate that the value
1179 -- is a machine number. This avoids some unnecessary cases of converting
1180 -- real literals to machine numbers.
1182 -- Is_Null_Loop (Flag16-Sem)
1183 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1184 -- can be determined to be null at compile time. This is used to suppress
1185 -- any warnings that would otherwise be issued inside the loop since they
1186 -- are probably not useful.
1188 -- Is_Overloaded (Flag5-Sem)
1189 -- A flag present in all expression nodes. Used temporarily during
1190 -- overloading determination. The setting of this flag is not relevant
1191 -- once overloading analysis is complete.
1193 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1194 -- A flag present only in N_Op_Expon nodes. It is set when the
1195 -- exponentiation is of the forma 2 ** N, where the type of N is an
1196 -- unsigned integral subtype whose size does not exceed the size of
1197 -- Standard_Integer (i.e. a type that can be safely converted to
1198 -- Natural), and the exponentiation appears as the right operand of an
1199 -- integer multiplication or an integer division where the dividend is
1200 -- unsigned. It is also required that overflow checking is off for both
1201 -- the exponentiation and the multiply/divide node. If this set of
1202 -- conditions holds, and the flag is set, then the division or
1203 -- multiplication can be (and is) converted to a shift.
1205 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1206 -- A flag set in a Subprogram_Body block to indicate that it is the
1207 -- implemenation of a protected subprogram. Such a body needs cleanup
1208 -- handler to make sure that the associated protected object is unlocked
1209 -- when the subprogram completes.
1211 -- Is_Static_Coextension (Flag14-Sem)
1212 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1213 -- of an object allocated on the stack rather than the heap.
1215 -- Is_Static_Expression (Flag6-Sem)
1216 -- Indicates that an expression is a static expression (RM 4.9). See spec
1217 -- of package Sem_Eval for full details on the use of this flag.
1219 -- Is_Subprogram_Descriptor (Flag16-Sem)
1220 -- Present in N_Object_Declaration, and set only for the object
1221 -- declaration generated for a subprogram descriptor in fast exception
1222 -- mode. See Exp_Ch11 for details of use.
1224 -- Is_Task_Allocation_Block (Flag6-Sem)
1225 -- A flag set in a Block_Statement node to indicate that it is the
1226 -- expansion of a task allocator, or the allocator of an object
1227 -- containing tasks. Such a block requires a cleanup handler to call
1228 -- Expunge_Unactivted_Tasks to complete any tasks that have been
1229 -- allocated but not activated when the allocator completes abnormally.
1231 -- Is_Task_Master (Flag5-Sem)
1232 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1233 -- indicate that the construct is a task master (i.e. has declared tasks
1234 -- or declares an access to a task type).
1236 -- Itype (Node1-Sem)
1237 -- Used in N_Itype_Reference node to reference an itype for which it is
1238 -- important to ensure that it is defined. See description of this node
1239 -- for further details.
1241 -- Kill_Range_Check (Flag11-Sem)
1242 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1243 -- result should not be subjected to range checks. This is used for the
1244 -- implementation of Normalize_Scalars.
1246 -- Label_Construct (Node2-Sem)
1247 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1248 -- N_Block_Statement or N_Loop_Statement node to which the label
1249 -- declaration applies. This is not currently used in the compiler
1250 -- itself, but it is useful in the implementation of ASIS queries.
1251 -- This field is left empty for the special labels generated as part
1252 -- of expanding raise statements with a local exception handler.
1254 -- Library_Unit (Node4-Sem)
1255 -- In a stub node, Library_Unit points to the compilation unit node of
1256 -- the corresponding subunit.
1258 -- In a with clause node, Library_Unit points to the spec of the with'ed
1261 -- In a compilation unit node, the usage depends on the unit type:
1263 -- For a subprogram body, Library_Unit points to the compilation unit
1264 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1265 -- case it points to itself.
1267 -- For a package body, Library_Unit points to the compilation unit of
1268 -- the corresponding package spec.
1270 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1271 -- points to the compilation unit node of the corresponding body, if
1272 -- inlining is active.
1274 -- For a generic declaration, Library_Unit points to the compilation
1275 -- unit node of the corresponding generic body.
1277 -- For a subunit, Library_Unit points to the compilation unit node of
1280 -- Note that this field is not used to hold the parent pointer for child
1281 -- unit (which might in any case need to use it for some other purpose as
1282 -- described above). Instead for a child unit, implicit with's are
1283 -- generated for all parents.
1285 -- Loop_Actions (List2-Sem)
1286 -- A list present in Component_Association nodes in array aggregates.
1287 -- Used to collect actions that must be executed within the loop because
1288 -- they may need to be evaluated anew each time through.
1290 -- Limited_View_Installed (Flag18-Sem)
1291 -- Present in With_Clauses and in package specifications. If set on
1292 -- with_clause, it indicates that this clause has created the current
1293 -- limited view of the designated package. On a package specification, it
1294 -- indicates that the limited view has already been created because the
1295 -- package is mentioned in a limited_with_clause in the closure of the
1296 -- unit being compiled.
1298 -- Local_Raise_Not_OK (Flag7-Sem)
1299 -- Present in N_Exception_Handler nodes. Set if the handler contains
1300 -- a construct (reraise statement, or call to subprogram in package
1301 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1302 -- for a local raise (one that could otherwise be converted to a goto).
1304 -- Must_Be_Byte_Aligned (Flag14-Sem)
1305 -- This flag is present in N_Attribute_Reference nodes. It can be set
1306 -- only for the Address and Unrestricted_Access attributes. If set it
1307 -- means that the object for which the address/access is given must be on
1308 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1309 -- of the object is to be made before taking the address (this copy is in
1310 -- the current scope on the stack frame). This is used for certain cases
1311 -- of code generated by the expander that passes parameters by address.
1313 -- The reason the copy is not made by the front end is that the back end
1314 -- has more information about type layout and may be able to (but is not
1315 -- guaranteed to) prevent making unnecessary copies.
1317 -- Must_Not_Freeze (Flag8-Sem)
1318 -- A flag present in all expression nodes. Normally expressions cause
1319 -- freezing as described in the RM. If this flag is set, then this is
1320 -- inhibited. This is used by the analyzer and expander to label nodes
1321 -- that are created by semantic analysis or expansion and which must not
1322 -- cause freezing even though they normally would. This flag is also
1323 -- present in an N_Subtype_Indication node, since we also use these in
1324 -- calls to Freeze_Expression.
1326 -- Next_Entity (Node2-Sem)
1327 -- Present in defining identifiers, defining character literals and
1328 -- defining operator symbols (i.e. in all entities). The entities of a
1329 -- scope are chained, and this field is used as the forward pointer for
1330 -- this list. See Einfo for further details.
1332 -- Next_Named_Actual (Node4-Sem)
1333 -- Present in parameter association node. Set during semantic analysis to
1334 -- point to the next named parameter, where parameters are ordered by
1335 -- declaration order (as opposed to the actual order in the call, which
1336 -- may be different due to named associations). Not that this field
1337 -- points to the explicit actual parameter itself, not to the
1338 -- N_Parameter_Association node (its parent).
1340 -- Next_Rep_Item (Node5-Sem)
1341 -- Present in pragma nodes and attribute definition nodes. Used to link
1342 -- representation items that apply to an entity. See description of
1343 -- First_Rep_Item field in Einfo for full details.
1345 -- Next_Use_Clause (Node3-Sem)
1346 -- While use clauses are active during semantic processing, they are
1347 -- chained from the scope stack entry, using Next_Use_Clause as a link
1348 -- pointer, with Empty marking the end of the list. The head pointer is
1349 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1350 -- processing (i.e. when Gigi sees the tree, the contents of this field
1351 -- is undefined and should not be read).
1353 -- No_Ctrl_Actions (Flag7-Sem)
1354 -- Present in N_Assignment_Statement to indicate that no finalize nor nor
1355 -- adjust should take place on this assignment eventhough the rhs is
1356 -- controlled. This is used in init procs and aggregate expansions where
1357 -- the generated assignments are more initialisations than real
1360 -- No_Elaboration_Check (Flag14-Sem)
1361 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1362 -- that no elaboration check is needed on the call, because it appears in
1363 -- the context of a local Suppress pragma. This is used on calls within
1364 -- task bodies, where the actual elaboration checks are applied after
1365 -- analysis, when the local scope stack is not present.
1367 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1368 -- Present in N_With_Clause nodes. Set if the with clause is on the
1369 -- package or subprogram spec where the main unit is the corresponding
1370 -- body, and no entities of the with'ed unit are referenced by the spec
1371 -- (an entity may still be referenced in the body, so this flag is used
1372 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1375 -- No_Initialization (Flag13-Sem)
1376 -- Present in N_Object_Declaration & N_Allocator to indicate that the
1377 -- object must not be initialized (by Initialize or call to an init
1378 -- proc). This is needed for controlled aggregates. When the Object
1379 -- declaration has an expression, this flag means that this expression
1380 -- should not be taken into account (needed for in place initialization
1383 -- No_Truncation (Flag17-Sem)
1384 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1385 -- only if the RM_Size of the source is greater than the RM_Size of the
1386 -- target for scalar operands. Normally in such a case we truncate some
1387 -- higher order bits of the source, and then sign/zero extend the result
1388 -- to form the output value. But if this flag is set, then we do not do
1389 -- any truncation, so for example, if an 8 bit input is converted to 5
1390 -- bit result which is in fact stored in 8 bits, then the high order
1391 -- three bits of the target result will be copied from the source. This
1392 -- is used for properly setting out of range values for use by pragmas
1393 -- Initialize_Scalars and Normalize_Scalars.
1395 -- Original_Discriminant (Node2-Sem)
1396 -- Present in identifiers. Used in references to discriminants that
1397 -- appear in generic units. Because the names of the discriminants may be
1398 -- different in an instance, we use this field to recover the position of
1399 -- the discriminant in the original type, and replace it with the
1400 -- discriminant at the same position in the instantiated type.
1402 -- Original_Entity (Node2-Sem)
1403 -- Present in numeric literals. Used to denote the named number that has
1404 -- been constant-folded into the given literal. If literal is from
1405 -- source, or the result of some other constant-folding operation, then
1406 -- Original_Entity is empty. This field is needed to handle properly
1407 -- named numbers in generic units, where the Associated_Node field
1408 -- interferes with the Entity field, making it impossible to preserve the
1409 -- original entity at the point of instantiation (ASIS problem).
1411 -- Others_Discrete_Choices (List1-Sem)
1412 -- When a case statement or variant is analyzed, the semantic checks
1413 -- determine the actual list of choices that correspond to an others
1414 -- choice. This list is materialized for later use by the expander and
1415 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1416 -- this materialized list of choices, which is in standard format for a
1417 -- list of discrete choices, except that of course it cannot contain an
1418 -- N_Others_Choice entry.
1420 -- Parameter_List_Truncated (Flag17-Sem)
1421 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1422 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1423 -- a result of a First_Optional_Parameter specification in an
1424 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1425 -- The truncation is done by the expander by removing trailing parameters
1426 -- from the argument list, in accordance with the set of rules allowing
1427 -- such parameter removal. In particular, parameters can be removed
1428 -- working from the end of the parameter list backwards up to and
1429 -- including the entry designated by First_Optional_Parameter in the
1430 -- Import pragma. Parameters can be removed if they are implicit and the
1431 -- default value is a known-at-compile-time value, including the use of
1432 -- the Null_Parameter attribute, or if explicit parameter values are
1433 -- present that match the corresponding defaults.
1435 -- Parent_Spec (Node4-Sem)
1436 -- For a library unit that is a child unit spec (package or subprogram
1437 -- declaration, generic declaration or instantiation, or library level
1438 -- rename, this field points to the compilation unit node for the parent
1439 -- package specification. This field is Empty for library bodies (the
1440 -- parent spec in this case can be found from the corresponding spec).
1442 -- Present_Expr (Uint3-Sem)
1443 -- Present in an N_Variant node. This has a meaningful value only after
1444 -- Gigi has back annotated the tree with representation information. At
1445 -- this point, it contains a reference to a gcc expression that depends
1446 -- on the values of one or more discriminants. Give a set of discriminant
1447 -- values, this expression evaluates to False (zero) if variant is not
1448 -- present, and True (non-zero) if it is present. See unit Repinfo for
1449 -- further details on gigi back annotation. This field is used during
1450 -- ASIS processing (data decomposition annex) to determine if a field is
1453 -- Print_In_Hex (Flag13-Sem)
1454 -- Set on an N_Integer_Literal node to indicate that the value should be
1455 -- printed in hexadecimal in the sprint listing. Has no effect on
1456 -- legality or semantics of program, only on the displayed output. This
1457 -- is used to clarify output from the packed array cases.
1459 -- Procedure_To_Call (Node2-Sem)
1460 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1461 -- and N_Extended_Return_Statement nodes. References the entity for the
1462 -- declaration of the procedure to be called to accomplish the required
1463 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1464 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1465 -- allocating the return value), and for the Deallocate procedure in the
1466 -- case of N_Free_Statement.
1468 -- Raises_Constraint_Error (Flag7-Sem)
1469 -- Set on an expression whose evaluation will definitely fail constraint
1470 -- error check. In the case of static expressions, this flag must be set
1471 -- accurately (and if it is set, the expression is typically illegal
1472 -- unless it appears as a non-elaborated branch of a short-circuit form).
1473 -- For a non-static expression, this flag may be set whenever an
1474 -- expression (e.g. an aggregate) is known to raise constraint error. If
1475 -- set, the expression definitely will raise CE if elaborated at runtime.
1476 -- If not set, the expression may or may not raise CE. In other words, on
1477 -- static expressions, the flag is set accurately, on non-static
1478 -- expressions it is set conservatively.
1480 -- Redundant_Use (Flag13-Sem)
1481 -- Present in nodes that can appear as an operand in a use clause or use
1482 -- type clause (identifiers, expanded names, attribute references). Set
1483 -- to indicate that a use is redundant (and therefore need not be undone
1486 -- Renaming_Exception (Node2-Sem)
1487 -- Present in N_Exception_Declaration node. Used to point back to the
1488 -- exception renaming for an exception declared within a subprogram.
1489 -- What happens is that an exception declared in a subprogram is moved
1490 -- to the library level with a unique name, and the original exception
1491 -- becomes a renaming. This link from the library level exception to the
1492 -- renaming declaration allows registering of the proper exception name.
1494 -- Return_Statement_Entity (Node5-Sem)
1495 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1496 -- Points to an E_Return_Statement representing the return statement.
1498 -- Return_Object_Declarations (List3)
1499 -- Present in N_Extended_Return_Statement.
1500 -- Points to a list initially containing a single
1501 -- N_Object_Declaration representing the return object.
1502 -- We use a list (instead of just a pointer to the object decl)
1503 -- because Analyze wants to insert extra actions on this list.
1505 -- Rounded_Result (Flag18-Sem)
1506 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1507 -- Used in the fixed-point cases to indicate that the result must be
1508 -- rounded as a result of the use of the 'Round attribute. Also used for
1509 -- integer N_Op_Divide nodes to indicate that the result should be
1510 -- rounded to the nearest integer (breaking ties away from zero), rather
1511 -- than truncated towards zero as usual. These rounded integer operations
1512 -- are the result of expansion of rounded fixed-point divide, conversion
1513 -- and multiplication operations.
1515 -- Scope (Node3-Sem)
1516 -- Present in defining identifiers, defining character literals and
1517 -- defining operator symbols (i.e. in all entities). The entities of a
1518 -- scope all use this field to reference the corresponding scope entity.
1519 -- See Einfo for further details.
1521 -- Shift_Count_OK (Flag4-Sem)
1522 -- A flag present in shift nodes to indicate that the shift count is
1523 -- known to be in range, i.e. is in the range from zero to word length
1524 -- minus one. If this flag is not set, then the shift count may be
1525 -- outside this range, i.e. larger than the word length, and the code
1526 -- must ensure that such shift counts give the appropriate result.
1528 -- Source_Type (Node1-Sem)
1529 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1530 -- source type entity for the unchecked conversion instantiation
1531 -- which gigi must do size validation for.
1533 -- Static_Processing_OK (Flag4-Sem)
1534 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1535 -- flag is set, the full value of the aggregate can be determined at
1536 -- compile time and the aggregate can be passed as is to the back-end.
1537 -- In this event it is irrelevant whether this flag is set or not.
1538 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1539 -- Static_Processing_OK is set, the aggregate can (but need not) be
1540 -- converted into a compile time known aggregate by the expander. See
1541 -- Sem_Aggr for the specific conditions under which an aggregate has its
1542 -- Static_Processing_OK flag set.
1544 -- Storage_Pool (Node1-Sem)
1545 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1546 -- and N_Extended_Return_Statement nodes. References the entity for the
1547 -- storage pool to be used for the allocate or free call or for the
1548 -- allocation of the returned value from function. Empty indicates that
1549 -- the global default default pool is to be used. Note that in the case
1550 -- of a return statement, this field is set only if the function returns
1551 -- value of a type whose size is not known at compile time on the
1554 -- Target_Type (Node2-Sem)
1555 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1556 -- type entity for the unchecked conversion instantiation which gigi must
1557 -- do size validation for.
1559 -- Then_Actions (List3-Sem)
1560 -- This field is present in conditional expression nodes. During code
1561 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1562 -- actions at an appropriate place in the tree to get elaborated at the
1563 -- right time. For conditional expressions, we have to be sure that the
1564 -- actions for the Then branch are only elaborated if the condition is
1565 -- True. The Then_Actions field is used as a temporary parking place for
1566 -- these actions. The final tree is always rewritten to eliminate the
1567 -- need for this field, so in the tree passed to Gigi, this field is
1568 -- always set to No_List.
1570 -- Treat_Fixed_As_Integer (Flag14-Sem)
1571 -- This flag appears in operator nodes for divide, multiply, mod and rem
1572 -- on fixed-point operands. It indicates that the operands are to be
1573 -- treated as integer values, ignoring small values. This flag is only
1574 -- set as a result of expansion of fixed-point operations. Typically a
1575 -- fixed-point multplication in the source generates subsidiary
1576 -- multiplication and division operations that work with the underlying
1577 -- integer values and have this flag set. Note that this flag is not
1578 -- needed on other arithmetic operations (add, neg, subtract etc) since
1579 -- in these cases it is always the case that fixed is treated as integer.
1580 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1581 -- leave such nodes alone, and whoever makes them must set the correct
1584 -- TSS_Elist (Elist3-Sem)
1585 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1586 -- entries for each TSS (type support subprogram) associated with the
1587 -- frozen type. The elements of the list are the entities for the
1588 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1589 -- if there are no type support subprograms for the type or if the freeze
1590 -- node is not for a type.
1592 -- Unreferenced_In_Spec (Flag7-Sem)
1593 -- Present in N_With_Clause nodes. Set if the with clause is on the
1594 -- package or subprogram spec where the main unit is the corresponding
1595 -- body, and is not referenced by the spec (it may still be referenced by
1596 -- the body, so this flag is used to generate the proper message (see
1597 -- Sem_Util.Check_Unused_Withs for details)
1599 -- Was_Originally_Stub (Flag13-Sem)
1600 -- This flag is set in the node for a proper body that replaces stub.
1601 -- During the analysis procedure, stubs in some situations get rewritten
1602 -- by the corresponding bodies, and we set this flag to remember that
1603 -- this happened. Note that it is not good enough to rely on the use of
1604 -- Original_Node here because of the case of nested instantiations where
1605 -- the substituted node can be copied.
1607 -- Zero_Cost_Handling (Flag5-Sem)
1608 -- This flag is set in all handled sequence of statement and exception
1609 -- handler nodes if eceptions are to be handled using the zero-cost
1610 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1611 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1612 -- to do for such a handler is simply to put the code in the handler
1613 -- somewhere. The front end has generated all necessary labels.
1615 --------------------------------------------------
1616 -- Note on Use of End_Label and End_Span Fields --
1617 --------------------------------------------------
1619 -- Several constructs have end lines:
1621 -- Loop Statement end loop [loop_IDENTIFIER];
1622 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1623 -- Task Definition end [task_IDENTIFIER]
1624 -- Protected Definition end [protected_IDENTIFIER]
1625 -- Protected Body end [protected_IDENTIFIER]
1627 -- Block Statement end [block_IDENTIFIER];
1628 -- Subprogram Body end [DESIGNATOR];
1629 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1630 -- Task Body end [task_IDENTIFIER];
1631 -- Accept Statement end [entry_IDENTIFIER]];
1632 -- Entry Body end [entry_IDENTIFIER];
1634 -- If Statement end if;
1635 -- Case Statement end case;
1637 -- Record Definition end record;
1638 -- Enumeration Definition );
1640 -- The End_Label and End_Span fields are used to mark the locations of
1641 -- these lines, and also keep track of the label in the case where a label
1644 -- For the first group above, the End_Label field of the corresponding node
1645 -- is used to point to the label identifier. In the case where there is no
1646 -- label in the source, the parser supplies a dummy identifier (with
1647 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1648 -- marks the location of the token following the END token.
1650 -- For the second group, the use of End_Label is similar, but the End_Label
1651 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1652 -- simply because in some cases there is no room in the parent node.
1654 -- For the third group, there is never any label, and instead of using
1655 -- End_Label, we use the End_Span field which gives the location of the
1656 -- token following END, relative to the starting Sloc of the construct,
1657 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1658 -- following the End_Label.
1660 -- The record definition case is handled specially, we treat it as though
1661 -- it required an optional label which is never present, and so the parser
1662 -- always builds a dummy identifier with Comes From Source set False. The
1663 -- reason we do this, rather than using End_Span in this case, is that we
1664 -- want to generate a cross-ref entry for the end of a record, since it
1665 -- represents a scope for name declaration purposes.
1667 -- The enumeration definition case is handled in an exactly similar manner,
1668 -- building a dummy identifier to get a cross-reference.
1670 -- Note: the reason we store the difference as a Uint, instead of storing
1671 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1672 -- distinguished from other types of values, and we count on all general
1673 -- use fields being self describing. To make things easier for clients,
1674 -- note that we provide function End_Location, and procedure
1675 -- Set_End_Location to allow access to the logical value (which is the
1676 -- Source_Ptr value for the end token).
1678 ---------------------
1679 -- Syntactic Nodes --
1680 ---------------------
1682 ---------------------
1683 -- 2.3 Identifier --
1684 ---------------------
1686 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1687 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1689 -- An IDENTIFIER shall not be a reserved word
1691 -- In the Ada grammar identifiers are the bottom level tokens which have
1692 -- very few semantics. Actual program identifiers are direct names. If
1693 -- we were being 100% honest with the grammar, then we would have a node
1694 -- called N_Direct_Name which would point to an identifier. However,
1695 -- that's too many extra nodes, so we just use the N_Identifier node
1696 -- directly as a direct name, and it contains the expression fields and
1697 -- Entity field that correspond to its use as a direct name. In those
1698 -- few cases where identifiers appear in contexts where they are not
1699 -- direct names (pragmas, pragma argument associations, attribute
1700 -- references and attribute definition clauses), the Chars field of the
1701 -- node contains the Name_Id for the identifier name.
1703 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1704 -- cases. First, an incorrect use of a reserved word as an identifier is
1705 -- diagnosed and then treated as a normal identifier. Second, an
1706 -- attribute designator of the form of a reserved word (access, delta,
1707 -- digits, range) is treated as an identifier.
1709 -- Note: The set of letters that is permitted in an identifier depends
1710 -- on the character set in use. See package Csets for full details.
1713 -- Sloc points to identifier
1714 -- Chars (Name1) contains the Name_Id for the identifier
1715 -- Entity (Node4-Sem)
1716 -- Associated_Node (Node4-Sem)
1717 -- Original_Discriminant (Node2-Sem)
1718 -- Redundant_Use (Flag13-Sem)
1719 -- Has_Private_View (Flag11-Sem) (set in generic units)
1720 -- plus fields for expression
1722 --------------------------
1723 -- 2.4 Numeric Literal --
1724 --------------------------
1726 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1728 ----------------------------
1729 -- 2.4.1 Decimal Literal --
1730 ----------------------------
1732 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1734 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1736 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1738 -- Decimal literals appear in the tree as either integer literal nodes
1739 -- or real literal nodes, depending on whether a period is present.
1741 -- Note: literal nodes appear as a result of direct use of literals
1742 -- in the source program, and also as the result of evaluating
1743 -- expressions at compile time. In the latter case, it is possible
1744 -- to construct real literals that have no syntactic representation
1745 -- using the standard literal format. Such literals are listed by
1746 -- Sprint using the notation [numerator / denominator].
1748 -- Note: the value of an integer literal node created by the front end
1749 -- is never outside the range of values of the base type. However, it
1750 -- can be the case that the value is outside the range of the
1751 -- particular subtype. This happens in the case of integer overflows
1752 -- with checks suppressed.
1754 -- N_Integer_Literal
1755 -- Sloc points to literal
1756 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1757 -- has been constant-folded into its literal value.
1758 -- Intval (Uint3) contains integer value of literal
1759 -- plus fields for expression
1760 -- Print_In_Hex (Flag13-Sem)
1763 -- Sloc points to literal
1764 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1765 -- has been constant-folded into its literal value.
1766 -- Realval (Ureal3) contains real value of literal
1767 -- Corresponding_Integer_Value (Uint4-Sem)
1768 -- Is_Machine_Number (Flag11-Sem)
1769 -- plus fields for expression
1771 --------------------------
1772 -- 2.4.2 Based Literal --
1773 --------------------------
1775 -- BASED_LITERAL ::=
1776 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1780 -- BASED_NUMERAL ::=
1781 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1783 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1785 -- Based literals appear in the tree as either integer literal nodes
1786 -- or real literal nodes, depending on whether a period is present.
1788 ----------------------------
1789 -- 2.5 Character Literal --
1790 ----------------------------
1792 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1794 -- N_Character_Literal
1795 -- Sloc points to literal
1796 -- Chars (Name1) contains the Name_Id for the identifier
1797 -- Char_Literal_Value (Uint2) contains the literal value
1798 -- Entity (Node4-Sem)
1799 -- Associated_Node (Node4-Sem)
1800 -- Has_Private_View (Flag11-Sem) set in generic units.
1801 -- plus fields for expression
1803 -- Note: the Entity field will be missing (set to Empty) for character
1804 -- literals whose type is Standard.Wide_Character or Standard.Character
1805 -- or a type derived from one of these two. In this case the character
1806 -- literal stands for its own coding. The reason we take this irregular
1807 -- short cut is to avoid the need to build lots of junk defining
1808 -- character literal nodes.
1810 -------------------------
1811 -- 2.6 String Literal --
1812 -------------------------
1814 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1816 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1817 -- single GRAPHIC_CHARACTER other than a quotation mark.
1819 -- Is_Folded_In_Parser is True if the parser created this literal by
1820 -- folding a sequence of "&" operators. For example, if the source code
1821 -- says "aaa" & "bbb" & "ccc", and the produces "aaabbbccc", the flag is
1822 -- set. This flag is needed because the parser doesn't know about
1823 -- visibility, so the folded result might be wrong, and semantic
1824 -- analysis needs to check for that.
1827 -- Sloc points to literal
1828 -- Strval (Str3) contains Id of string value
1829 -- Has_Wide_Character (Flag11-Sem)
1830 -- Is_Folded_In_Parser (Flag4)
1831 -- plus fields for expression
1837 -- A COMMENT starts with two adjacent hyphens and extends up to the
1838 -- end of the line. A COMMENT may appear on any line of a program.
1840 -- Comments are skipped by the scanner and do not appear in the tree.
1841 -- It is possible to reconstruct the position of comments with respect
1842 -- to the elements of the tree by using the source position (Sloc)
1843 -- pointers that appear in every tree node.
1849 -- PRAGMA ::= pragma IDENTIFIER
1850 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1852 -- Note that a pragma may appear in the tree anywhere a declaration
1853 -- or a statement may appear, as well as in some other situations
1854 -- which are explicitly documented.
1857 -- Sloc points to PRAGMA
1858 -- Chars (Name1) identifier name from pragma identifier
1859 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1860 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1861 -- Next_Rep_Item (Node5-Sem)
1863 -- Note: we should have a section on what pragmas are passed on to
1864 -- the back end to be processed. This section should note that pragma
1865 -- Psect_Object is always converted to Common_Object, but there are
1866 -- undoubtedly many other similar notes required ???
1868 --------------------------------------
1869 -- 2.8 Pragma Argument Association --
1870 --------------------------------------
1872 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1873 -- [pragma_argument_IDENTIFIER =>] NAME
1874 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1876 -- N_Pragma_Argument_Association
1877 -- Sloc points to first token in association
1878 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1879 -- Expression (Node3)
1881 ------------------------
1882 -- 2.9 Reserved Word --
1883 ------------------------
1885 -- Reserved words are parsed by the scanner, and returned as the
1886 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1888 ----------------------------
1889 -- 3.1 Basic Declaration --
1890 ----------------------------
1892 -- BASIC_DECLARATION ::=
1893 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1894 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1895 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1896 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1897 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1898 -- | GENERIC_INSTANTIATION
1900 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1901 -- see further description in section on semantic nodes.
1903 -- Also, in the tree that is constructed, a pragma may appear
1904 -- anywhere that a declaration may appear.
1906 ------------------------------
1907 -- 3.1 Defining Identifier --
1908 ------------------------------
1910 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1912 -- A defining identifier is an entity, which has additional fields
1913 -- depending on the setting of the Ekind field. These additional
1914 -- fields are defined (and access subprograms declared) in package
1917 -- Note: N_Defining_Identifier is an extended node whose fields are
1918 -- deliberate layed out to match the layout of fields in an ordinary
1919 -- N_Identifier node allowing for easy alteration of an identifier
1920 -- node into a defining identifier node. For details, see procedure
1921 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1923 -- N_Defining_Identifier
1924 -- Sloc points to identifier
1925 -- Chars (Name1) contains the Name_Id for the identifier
1926 -- Next_Entity (Node2-Sem)
1927 -- Scope (Node3-Sem)
1928 -- Etype (Node5-Sem)
1930 -----------------------------
1931 -- 3.2.1 Type Declaration --
1932 -----------------------------
1934 -- TYPE_DECLARATION ::=
1935 -- FULL_TYPE_DECLARATION
1936 -- | INCOMPLETE_TYPE_DECLARATION
1937 -- | PRIVATE_TYPE_DECLARATION
1938 -- | PRIVATE_EXTENSION_DECLARATION
1940 ----------------------------------
1941 -- 3.2.1 Full Type Declaration --
1942 ----------------------------------
1944 -- FULL_TYPE_DECLARATION ::=
1945 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1946 -- is TYPE_DEFINITION;
1947 -- | TASK_TYPE_DECLARATION
1948 -- | PROTECTED_TYPE_DECLARATION
1950 -- The full type declaration node is used only for the first case. The
1951 -- second case (concurrent type declaration), is represented directly
1952 -- by a task type declaration or a protected type declaration.
1954 -- N_Full_Type_Declaration
1955 -- Sloc points to TYPE
1956 -- Defining_Identifier (Node1)
1957 -- Discriminant_Specifications (List4) (set to No_List if none)
1958 -- Type_Definition (Node3)
1959 -- Discr_Check_Funcs_Built (Flag11-Sem)
1961 ----------------------------
1962 -- 3.2.1 Type Definition --
1963 ----------------------------
1965 -- TYPE_DEFINITION ::=
1966 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
1967 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
1968 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
1969 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
1971 --------------------------------
1972 -- 3.2.2 Subtype Declaration --
1973 --------------------------------
1975 -- SUBTYPE_DECLARATION ::=
1976 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
1978 -- The subtype indication field is set to Empty for subtypes
1979 -- declared in package Standard (Positive, Natural).
1981 -- N_Subtype_Declaration
1982 -- Sloc points to SUBTYPE
1983 -- Defining_Identifier (Node1)
1984 -- Null_Exclusion_Present (Flag11)
1985 -- Subtype_Indication (Node5)
1986 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
1987 -- Exception_Junk (Flag8-Sem)
1989 -------------------------------
1990 -- 3.2.2 Subtype Indication --
1991 -------------------------------
1993 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
1995 -- Note: if no constraint is present, the subtype indication appears
1996 -- directly in the tree as a subtype mark. The N_Subtype_Indication
1997 -- node is used only if a constraint is present.
1999 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2000 -- with the null-exclusion part (see AI-231), we had to introduce a new
2001 -- attribute in all the parents of subtype_indication nodes to indicate
2002 -- if the null-exclusion is present.
2004 -- Note: the reason that this node has expression fields is that a
2005 -- subtype indication can appear as an operand of a membership test.
2007 -- N_Subtype_Indication
2008 -- Sloc points to first token of subtype mark
2009 -- Subtype_Mark (Node4)
2010 -- Constraint (Node3)
2011 -- Etype (Node5-Sem)
2012 -- Must_Not_Freeze (Flag8-Sem)
2014 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2015 -- reason for this redundancy is so that in a list of array index types,
2016 -- the Etype can be uniformly accessed to determine the subscript type.
2017 -- This means that no Itype is constructed for the actual subtype that
2018 -- is created by the subtype indication. If such an Itype is required,
2019 -- it is constructed in the context in which the indication appears.
2021 -------------------------
2022 -- 3.2.2 Subtype Mark --
2023 -------------------------
2025 -- SUBTYPE_MARK ::= subtype_NAME
2027 -----------------------
2028 -- 3.2.2 Constraint --
2029 -----------------------
2031 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2033 ------------------------------
2034 -- 3.2.2 Scalar Constraint --
2035 ------------------------------
2037 -- SCALAR_CONSTRAINT ::=
2038 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2040 ---------------------------------
2041 -- 3.2.2 Composite Constraint --
2042 ---------------------------------
2044 -- COMPOSITE_CONSTRAINT ::=
2045 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2047 -------------------------------
2048 -- 3.3.1 Object Declaration --
2049 -------------------------------
2051 -- OBJECT_DECLARATION ::=
2052 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2053 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2054 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2055 -- ACCESS_DEFINITION [:= EXPRESSION];
2056 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2057 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2058 -- | SINGLE_TASK_DECLARATION
2059 -- | SINGLE_PROTECTED_DECLARATION
2061 -- Note: aliased is not permitted in Ada 83 mode
2063 -- The N_Object_Declaration node is only for the first two cases.
2064 -- Single task declaration is handled by P_Task (9.1)
2065 -- Single protected declaration is handled by P_protected (9.5)
2067 -- Although the syntax allows multiple identifiers in the list, the
2068 -- semantics is as though successive declarations were given with
2069 -- identical type definition and expression components. To simplify
2070 -- semantic processing, the parser represents a multiple declaration
2071 -- case as a sequence of single declarations, using the More_Ids and
2072 -- Prev_Ids flags to preserve the original source form as described
2073 -- in the section on "Handling of Defining Identifier Lists".
2075 -- The flag Has_Init_Expression is set if an initializing expression
2076 -- is present. Normally it is set if and only if Expression contains
2077 -- a non-empty value, but there is an exception to this. When the
2078 -- initializing expression is an aggregate which requires explicit
2079 -- assignments, the Expression field gets set to Empty, but this flag
2080 -- is still set, so we don't forget we had an initializing expression.
2082 -- Note: if a range check is required for the initialization
2083 -- expression then the Do_Range_Check flag is set in the Expression,
2084 -- with the check being done against the type given by the object
2085 -- definition, which is also the Etype of the defining identifier.
2087 -- Note: the contents of the Expression field must be ignored (i.e.
2088 -- treated as though it were Empty) if No_Initialization is set True.
2090 -- Note: the back end places some restrictions on the form of the
2091 -- Expression field. If the object being declared is Atomic, then
2092 -- the Expression may not have the form of an aggregate (since this
2093 -- might cause the back end to generate separate assignments). It
2094 -- also cannot be a reference to an object marked as a true constant
2095 -- (Is_True_Constant flag set), where the object is itself initalized
2096 -- with an aggregate. If necessary the front end must generate an
2097 -- extra temporary (with Is_True_Constant set False), and initialize
2098 -- this temporary as required (the temporary itself is not atomic).
2100 -- Note: there is not node kind for object definition. Instead, the
2101 -- corresponding field holds a subtype indication, an array type
2102 -- definition, or (Ada 2005, AI-406) an access definition.
2104 -- N_Object_Declaration
2105 -- Sloc points to first identifier
2106 -- Defining_Identifier (Node1)
2107 -- Aliased_Present (Flag4) set if ALIASED appears
2108 -- Constant_Present (Flag17) set if CONSTANT appears
2109 -- Null_Exclusion_Present (Flag11)
2110 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2111 -- Expression (Node3) (set to Empty if not present)
2112 -- Handler_List_Entry (Node2-Sem)
2113 -- Corresponding_Generic_Association (Node5-Sem)
2114 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2115 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2116 -- No_Initialization (Flag13-Sem)
2117 -- Assignment_OK (Flag15-Sem)
2118 -- Exception_Junk (Flag8-Sem)
2119 -- Is_Subprogram_Descriptor (Flag16-Sem)
2120 -- Has_Init_Expression (Flag14)
2122 -------------------------------------
2123 -- 3.3.1 Defining Identifier List --
2124 -------------------------------------
2126 -- DEFINING_IDENTIFIER_LIST ::=
2127 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2129 -------------------------------
2130 -- 3.3.2 Number Declaration --
2131 -------------------------------
2133 -- NUMBER_DECLARATION ::=
2134 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2136 -- Although the syntax allows multiple identifiers in the list, the
2137 -- semantics is as though successive declarations were given with
2138 -- identical expressions. To simplify semantic processing, the parser
2139 -- represents a multiple declaration case as a sequence of single
2140 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2141 -- the original source form as described in the section on "Handling
2142 -- of Defining Identifier Lists".
2144 -- N_Number_Declaration
2145 -- Sloc points to first identifier
2146 -- Defining_Identifier (Node1)
2147 -- Expression (Node3)
2148 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2149 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2151 ----------------------------------
2152 -- 3.4 Derived Type Definition --
2153 ----------------------------------
2155 -- DERIVED_TYPE_DEFINITION ::=
2156 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2157 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2159 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2162 -- Note: a record extension part is required if ABSTRACT is present
2164 -- N_Derived_Type_Definition
2165 -- Sloc points to NEW
2166 -- Abstract_Present (Flag4)
2167 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2168 -- Subtype_Indication (Node5)
2169 -- Record_Extension_Part (Node3) (set to Empty if not present)
2170 -- Limited_Present (Flag17)
2171 -- Task_Present (Flag5) set in task interfaces
2172 -- Protected_Present (Flag6) set in protected interfaces
2173 -- Synchronized_Present (Flag7) set in interfaces
2174 -- Interface_List (List2) (set to No_List if none)
2175 -- Interface_Present (Flag16) set in abstract interfaces
2177 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2178 -- Interface_List, and Interface_Present are used for abstract
2179 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2181 ---------------------------
2182 -- 3.5 Range Constraint --
2183 ---------------------------
2185 -- RANGE_CONSTRAINT ::= range RANGE
2187 -- N_Range_Constraint
2188 -- Sloc points to RANGE
2189 -- Range_Expression (Node4)
2196 -- RANGE_ATTRIBUTE_REFERENCE
2197 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2199 -- Note: the case of a range given as a range attribute reference
2200 -- appears directly in the tree as an attribute reference.
2202 -- Note: the field name for a reference to a range is Range_Expression
2203 -- rather than Range, because range is a reserved keyword in Ada!
2205 -- Note: the reason that this node has expression fields is that a
2206 -- range can appear as an operand of a membership test. The Etype
2207 -- field is the type of the range (we do NOT construct an implicit
2208 -- subtype to represent the range exactly).
2211 -- Sloc points to ..
2212 -- Low_Bound (Node1)
2213 -- High_Bound (Node2)
2214 -- Includes_Infinities (Flag11)
2215 -- plus fields for expression
2217 -- Note: if the range appears in a context, such as a subtype
2218 -- declaration, where range checks are required on one or both of
2219 -- the expression fields, then type conversion nodes are inserted
2220 -- to represent the required checks.
2222 ----------------------------------------
2223 -- 3.5.1 Enumeration Type Definition --
2224 ----------------------------------------
2226 -- ENUMERATION_TYPE_DEFINITION ::=
2227 -- (ENUMERATION_LITERAL_SPECIFICATION
2228 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2230 -- Note: the Literals field in the node described below is null for
2231 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2232 -- which special processing handles these types as special cases.
2234 -- N_Enumeration_Type_Definition
2235 -- Sloc points to left parenthesis
2236 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2237 -- End_Label (Node4) (set to Empty if internally generated record)
2239 ----------------------------------------------
2240 -- 3.5.1 Enumeration Literal Specification --
2241 ----------------------------------------------
2243 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2244 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2246 ---------------------------------------
2247 -- 3.5.1 Defining Character Literal --
2248 ---------------------------------------
2250 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2252 -- A defining character literal is an entity, which has additional
2253 -- fields depending on the setting of the Ekind field. These
2254 -- additional fields are defined (and access subprograms declared)
2255 -- in package Einfo.
2257 -- Note: N_Defining_Character_Literal is an extended node whose fields
2258 -- are deliberate layed out to match the layout of fields in an ordinary
2259 -- N_Character_Literal node allowing for easy alteration of a character
2260 -- literal node into a defining character literal node. For details, see
2261 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2263 -- N_Defining_Character_Literal
2264 -- Sloc points to literal
2265 -- Chars (Name1) contains the Name_Id for the identifier
2266 -- Next_Entity (Node2-Sem)
2267 -- Scope (Node3-Sem)
2268 -- Etype (Node5-Sem)
2270 ------------------------------------
2271 -- 3.5.4 Integer Type Definition --
2272 ------------------------------------
2274 -- Note: there is an error in this rule in the latest version of the
2275 -- grammar, so we have retained the old rule pending clarification.
2277 -- INTEGER_TYPE_DEFINITION ::=
2278 -- SIGNED_INTEGER_TYPE_DEFINITION
2279 -- | MODULAR_TYPE_DEFINITION
2281 -------------------------------------------
2282 -- 3.5.4 Signed Integer Type Definition --
2283 -------------------------------------------
2285 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2286 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2288 -- Note: the Low_Bound and High_Bound fields are set to Empty
2289 -- for integer types defined in package Standard.
2291 -- N_Signed_Integer_Type_Definition
2292 -- Sloc points to RANGE
2293 -- Low_Bound (Node1)
2294 -- High_Bound (Node2)
2296 ------------------------------------
2297 -- 3.5.4 Modular Type Definition --
2298 ------------------------------------
2300 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2302 -- N_Modular_Type_Definition
2303 -- Sloc points to MOD
2304 -- Expression (Node3)
2306 ---------------------------------
2307 -- 3.5.6 Real Type Definition --
2308 ---------------------------------
2310 -- REAL_TYPE_DEFINITION ::=
2311 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2313 --------------------------------------
2314 -- 3.5.7 Floating Point Definition --
2315 --------------------------------------
2317 -- FLOATING_POINT_DEFINITION ::=
2318 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2320 -- Note: The Digits_Expression and Real_Range_Specifications fields
2321 -- are set to Empty for floating-point types declared in Standard.
2323 -- N_Floating_Point_Definition
2324 -- Sloc points to DIGITS
2325 -- Digits_Expression (Node2)
2326 -- Real_Range_Specification (Node4) (set to Empty if not present)
2328 -------------------------------------
2329 -- 3.5.7 Real Range Specification --
2330 -------------------------------------
2332 -- REAL_RANGE_SPECIFICATION ::=
2333 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2335 -- N_Real_Range_Specification
2336 -- Sloc points to RANGE
2337 -- Low_Bound (Node1)
2338 -- High_Bound (Node2)
2340 -----------------------------------
2341 -- 3.5.9 Fixed Point Definition --
2342 -----------------------------------
2344 -- FIXED_POINT_DEFINITION ::=
2345 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2347 --------------------------------------------
2348 -- 3.5.9 Ordinary Fixed Point Definition --
2349 --------------------------------------------
2351 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2352 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2354 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2356 -- N_Ordinary_Fixed_Point_Definition
2357 -- Sloc points to DELTA
2358 -- Delta_Expression (Node3)
2359 -- Real_Range_Specification (Node4)
2361 -------------------------------------------
2362 -- 3.5.9 Decimal Fixed Point Definition --
2363 -------------------------------------------
2365 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2366 -- delta static_EXPRESSION
2367 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2369 -- Note: decimal types are not permitted in Ada 83 mode
2371 -- N_Decimal_Fixed_Point_Definition
2372 -- Sloc points to DELTA
2373 -- Delta_Expression (Node3)
2374 -- Digits_Expression (Node2)
2375 -- Real_Range_Specification (Node4) (set to Empty if not present)
2377 ------------------------------
2378 -- 3.5.9 Digits Constraint --
2379 ------------------------------
2381 -- DIGITS_CONSTRAINT ::=
2382 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2384 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2385 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2387 -- N_Digits_Constraint
2388 -- Sloc points to DIGITS
2389 -- Digits_Expression (Node2)
2390 -- Range_Constraint (Node4) (set to Empty if not present)
2392 --------------------------------
2393 -- 3.6 Array Type Definition --
2394 --------------------------------
2396 -- ARRAY_TYPE_DEFINITION ::=
2397 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2399 -----------------------------------------
2400 -- 3.6 Unconstrained Array Definition --
2401 -----------------------------------------
2403 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2404 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2405 -- COMPONENT_DEFINITION
2407 -- Note: dimensionality of array is indicated by number of entries in
2408 -- the Subtype_Marks list, which has one entry for each dimension.
2410 -- N_Unconstrained_Array_Definition
2411 -- Sloc points to ARRAY
2412 -- Subtype_Marks (List2)
2413 -- Component_Definition (Node4)
2415 -----------------------------------
2416 -- 3.6 Index Subtype Definition --
2417 -----------------------------------
2419 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2421 -- There is no explicit node in the tree for an index subtype
2422 -- definition since the N_Unconstrained_Array_Definition node
2423 -- incorporates the type marks which appear in this context.
2425 ---------------------------------------
2426 -- 3.6 Constrained Array Definition --
2427 ---------------------------------------
2429 -- CONSTRAINED_ARRAY_DEFINITION ::=
2430 -- array (DISCRETE_SUBTYPE_DEFINITION
2431 -- {, DISCRETE_SUBTYPE_DEFINITION})
2432 -- of COMPONENT_DEFINITION
2434 -- Note: dimensionality of array is indicated by number of entries
2435 -- in the Discrete_Subtype_Definitions list, which has one entry
2436 -- for each dimension.
2438 -- N_Constrained_Array_Definition
2439 -- Sloc points to ARRAY
2440 -- Discrete_Subtype_Definitions (List2)
2441 -- Component_Definition (Node4)
2443 --------------------------------------
2444 -- 3.6 Discrete Subtype Definition --
2445 --------------------------------------
2447 -- DISCRETE_SUBTYPE_DEFINITION ::=
2448 -- discrete_SUBTYPE_INDICATION | RANGE
2450 -------------------------------
2451 -- 3.6 Component Definition --
2452 -------------------------------
2454 -- COMPONENT_DEFINITION ::=
2455 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2457 -- Note: although the syntax does not permit a component definition to
2458 -- be an anonymous array (and the parser will diagnose such an attempt
2459 -- with an appropriate message), it is possible for anonymous arrays
2460 -- to appear as component definitions. The semantics and back end handle
2461 -- this case properly, and the expander in fact generates such cases.
2462 -- Access_Definition is an optional field that gives support to
2463 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2464 -- Subtype_Indication field or else the Access_Definition field.
2466 -- N_Component_Definition
2467 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2468 -- Aliased_Present (Flag4)
2469 -- Null_Exclusion_Present (Flag11)
2470 -- Subtype_Indication (Node5) (set to Empty if not present)
2471 -- Access_Definition (Node3) (set to Empty if not present)
2473 -----------------------------
2474 -- 3.6.1 Index Constraint --
2475 -----------------------------
2477 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2479 -- It is not in general possible to distinguish between discriminant
2480 -- constraints and index constraints at parse time, since a simple
2481 -- name could be either the subtype mark of a discrete range, or an
2482 -- expression in a discriminant association with no name. Either
2483 -- entry appears simply as the name, and the semantic parse must
2484 -- distinguish between the two cases. Thus we use a common tree
2485 -- node format for both of these constraint types.
2487 -- See Discriminant_Constraint for format of node
2489 ---------------------------
2490 -- 3.6.1 Discrete Range --
2491 ---------------------------
2493 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2495 ----------------------------
2496 -- 3.7 Discriminant Part --
2497 ----------------------------
2499 -- DISCRIMINANT_PART ::=
2500 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2502 ------------------------------------
2503 -- 3.7 Unknown Discriminant Part --
2504 ------------------------------------
2506 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2508 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2510 -- There is no explicit node in the tree for an unknown discriminant
2511 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2514 ----------------------------------
2515 -- 3.7 Known Discriminant Part --
2516 ----------------------------------
2518 -- KNOWN_DISCRIMINANT_PART ::=
2519 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2521 -------------------------------------
2522 -- 3.7 Discriminant Specification --
2523 -------------------------------------
2525 -- DISCRIMINANT_SPECIFICATION ::=
2526 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2527 -- [:= DEFAULT_EXPRESSION]
2528 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2529 -- [:= DEFAULT_EXPRESSION]
2531 -- Although the syntax allows multiple identifiers in the list, the
2532 -- semantics is as though successive specifications were given with
2533 -- identical type definition and expression components. To simplify
2534 -- semantic processing, the parser represents a multiple declaration
2535 -- case as a sequence of single specifications, using the More_Ids and
2536 -- Prev_Ids flags to preserve the original source form as described
2537 -- in the section on "Handling of Defining Identifier Lists".
2539 -- N_Discriminant_Specification
2540 -- Sloc points to first identifier
2541 -- Defining_Identifier (Node1)
2542 -- Null_Exclusion_Present (Flag11)
2543 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2544 -- Expression (Node3) (set to Empty if no default expression)
2545 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2546 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2548 -----------------------------
2549 -- 3.7 Default Expression --
2550 -----------------------------
2552 -- DEFAULT_EXPRESSION ::= EXPRESSION
2554 ------------------------------------
2555 -- 3.7.1 Discriminant Constraint --
2556 ------------------------------------
2558 -- DISCRIMINANT_CONSTRAINT ::=
2559 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2561 -- It is not in general possible to distinguish between discriminant
2562 -- constraints and index constraints at parse time, since a simple
2563 -- name could be either the subtype mark of a discrete range, or an
2564 -- expression in a discriminant association with no name. Either
2565 -- entry appears simply as the name, and the semantic parse must
2566 -- distinguish between the two cases. Thus we use a common tree
2567 -- node format for both of these constraint types.
2569 -- N_Index_Or_Discriminant_Constraint
2570 -- Sloc points to left paren
2571 -- Constraints (List1) points to list of discrete ranges or
2572 -- discriminant associations
2574 -------------------------------------
2575 -- 3.7.1 Discriminant Association --
2576 -------------------------------------
2578 -- DISCRIMINANT_ASSOCIATION ::=
2579 -- [discriminant_SELECTOR_NAME
2580 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2582 -- Note: a discriminant association that has no selector name list
2583 -- appears directly as an expression in the tree.
2585 -- N_Discriminant_Association
2586 -- Sloc points to first token of discriminant association
2587 -- Selector_Names (List1) (always non-empty, since if no selector
2588 -- names are present, this node is not used, see comment above)
2589 -- Expression (Node3)
2591 ---------------------------------
2592 -- 3.8 Record Type Definition --
2593 ---------------------------------
2595 -- RECORD_TYPE_DEFINITION ::=
2596 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2598 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2600 -- There is no explicit node in the tree for a record type definition.
2601 -- Instead the flags for Tagged_Present and Limited_Present appear in
2602 -- the N_Record_Definition node for a record definition appearing in
2603 -- the context of a record type definition.
2605 ----------------------------
2606 -- 3.8 Record Definition --
2607 ----------------------------
2609 -- RECORD_DEFINITION ::=
2615 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2616 -- flags appear only for a record definition appearing in a record
2619 -- Note: the NULL RECORD case is not permitted in Ada 83
2621 -- N_Record_Definition
2622 -- Sloc points to RECORD or NULL
2623 -- End_Label (Node4) (set to Empty if internally generated record)
2624 -- Abstract_Present (Flag4)
2625 -- Tagged_Present (Flag15)
2626 -- Limited_Present (Flag17)
2627 -- Component_List (Node1) empty in null record case
2628 -- Null_Present (Flag13) set in null record case
2629 -- Task_Present (Flag5) set in task interfaces
2630 -- Protected_Present (Flag6) set in protected interfaces
2631 -- Synchronized_Present (Flag7) set in interfaces
2632 -- Interface_Present (Flag16) set in abstract interfaces
2633 -- Interface_List (List2) (set to No_List if none)
2635 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2636 -- Interface_List and Interface_Present are used for abstract
2637 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2639 -------------------------
2640 -- 3.8 Component List --
2641 -------------------------
2643 -- COMPONENT_LIST ::=
2644 -- COMPONENT_ITEM {COMPONENT_ITEM}
2645 -- | {COMPONENT_ITEM} VARIANT_PART
2649 -- Sloc points to first token of component list
2650 -- Component_Items (List3)
2651 -- Variant_Part (Node4) (set to Empty if no variant part)
2652 -- Null_Present (Flag13)
2654 -------------------------
2655 -- 3.8 Component Item --
2656 -------------------------
2658 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2660 -- Note: A component item can also be a pragma, and in the tree
2661 -- that is obtained after semantic processing, a component item
2662 -- can be an N_Null node resulting from a non-recognized pragma.
2664 --------------------------------
2665 -- 3.8 Component Declaration --
2666 --------------------------------
2668 -- COMPONENT_DECLARATION ::=
2669 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2670 -- [:= DEFAULT_EXPRESSION]
2672 -- Note: although the syntax does not permit a component definition to
2673 -- be an anonymous array (and the parser will diagnose such an attempt
2674 -- with an appropriate message), it is possible for anonymous arrays
2675 -- to appear as component definitions. The semantics and back end handle
2676 -- this case properly, and the expander in fact generates such cases.
2678 -- Although the syntax allows multiple identifiers in the list, the
2679 -- semantics is as though successive declarations were given with the
2680 -- same component definition and expression components. To simplify
2681 -- semantic processing, the parser represents a multiple declaration
2682 -- case as a sequence of single declarations, using the More_Ids and
2683 -- Prev_Ids flags to preserve the original source form as described
2684 -- in the section on "Handling of Defining Identifier Lists".
2686 -- N_Component_Declaration
2687 -- Sloc points to first identifier
2688 -- Defining_Identifier (Node1)
2689 -- Component_Definition (Node4)
2690 -- Expression (Node3) (set to Empty if no default expression)
2691 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2692 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2694 -------------------------
2695 -- 3.8.1 Variant Part --
2696 -------------------------
2699 -- case discriminant_DIRECT_NAME is
2704 -- Note: the variants list can contain pragmas as well as variants.
2705 -- In a properly formed program there is at least one variant.
2708 -- Sloc points to CASE
2712 --------------------
2714 --------------------
2717 -- when DISCRETE_CHOICE_LIST =>
2721 -- Sloc points to WHEN
2722 -- Discrete_Choices (List4)
2723 -- Component_List (Node1)
2724 -- Enclosing_Variant (Node2-Sem)
2725 -- Present_Expr (Uint3-Sem)
2726 -- Dcheck_Function (Node5-Sem)
2728 ---------------------------------
2729 -- 3.8.1 Discrete Choice List --
2730 ---------------------------------
2732 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2734 ----------------------------
2735 -- 3.8.1 Discrete Choice --
2736 ----------------------------
2738 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2740 -- Note: in Ada 83 mode, the expression must be a simple expression
2742 -- The only choice that appears explicitly is the OTHERS choice, as
2743 -- defined here. Other cases of discrete choice (expression and
2744 -- discrete range) appear directly. This production is also used
2745 -- for the OTHERS possibility of an exception choice.
2747 -- Note: in accordance with the syntax, the parser does not check that
2748 -- OTHERS appears at the end on its own in a choice list context. This
2749 -- is a semantic check.
2752 -- Sloc points to OTHERS
2753 -- Others_Discrete_Choices (List1-Sem)
2754 -- All_Others (Flag11-Sem)
2756 ----------------------------------
2757 -- 3.9.1 Record Extension Part --
2758 ----------------------------------
2760 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2762 -- Note: record extension parts are not permitted in Ada 83 mode
2764 --------------------------------------
2765 -- 3.9.4 Interface Type Definition --
2766 --------------------------------------
2768 -- INTERFACE_TYPE_DEFINITION ::=
2769 -- [limited | task | protected | synchronized]
2770 -- interface [interface_list]
2772 -- Note: Interfaces are implemented with N_Record_Definition and
2773 -- N_Derived_Type_Definition nodes because most of the support
2774 -- for the analysis of abstract types has been reused to
2775 -- analyze abstract interfaces.
2777 ----------------------------------
2778 -- 3.10 Access Type Definition --
2779 ----------------------------------
2781 -- ACCESS_TYPE_DEFINITION ::=
2782 -- ACCESS_TO_OBJECT_DEFINITION
2783 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2785 --------------------------
2786 -- 3.10 Null Exclusion --
2787 --------------------------
2789 -- NULL_EXCLUSION ::= not null
2791 ---------------------------------------
2792 -- 3.10 Access To Object Definition --
2793 ---------------------------------------
2795 -- ACCESS_TO_OBJECT_DEFINITION ::=
2796 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2797 -- SUBTYPE_INDICATION
2799 -- N_Access_To_Object_Definition
2800 -- Sloc points to ACCESS
2801 -- All_Present (Flag15)
2802 -- Null_Exclusion_Present (Flag11)
2803 -- Subtype_Indication (Node5)
2804 -- Constant_Present (Flag17)
2806 -----------------------------------
2807 -- 3.10 General Access Modifier --
2808 -----------------------------------
2810 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2812 -- Note: general access modifiers are not permitted in Ada 83 mode
2814 -- There is no explicit node in the tree for general access modifier.
2815 -- Instead the All_Present or Constant_Present flags are set in the
2818 -------------------------------------------
2819 -- 3.10 Access To Subprogram Definition --
2820 -------------------------------------------
2822 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2823 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2824 -- | [NULL_EXCLUSION] access [protected] function
2825 -- PARAMETER_AND_RESULT_PROFILE
2827 -- Note: access to subprograms are not permitted in Ada 83 mode
2829 -- N_Access_Function_Definition
2830 -- Sloc points to ACCESS
2831 -- Null_Exclusion_Present (Flag11)
2832 -- Protected_Present (Flag6)
2833 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2834 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2836 -- N_Access_Procedure_Definition
2837 -- Sloc points to ACCESS
2838 -- Null_Exclusion_Present (Flag11)
2839 -- Protected_Present (Flag6)
2840 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2842 -----------------------------
2843 -- 3.10 Access Definition --
2844 -----------------------------
2846 -- ACCESS_DEFINITION ::=
2847 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2848 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2850 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2852 -- N_Access_Definition
2853 -- Sloc points to ACCESS
2854 -- Null_Exclusion_Present (Flag11)
2855 -- All_Present (Flag15)
2856 -- Constant_Present (Flag17)
2857 -- Subtype_Mark (Node4)
2858 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2860 -----------------------------------------
2861 -- 3.10.1 Incomplete Type Declaration --
2862 -----------------------------------------
2864 -- INCOMPLETE_TYPE_DECLARATION ::=
2865 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2867 -- N_Incomplete_Type_Declaration
2868 -- Sloc points to TYPE
2869 -- Defining_Identifier (Node1)
2870 -- Discriminant_Specifications (List4) (set to No_List if no
2871 -- discriminant part, or if the discriminant part is an
2872 -- unknown discriminant part)
2873 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2874 -- Tagged_Present (Flag15)
2876 ----------------------------
2877 -- 3.11 Declarative Part --
2878 ----------------------------
2880 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2882 -- Note: although the parser enforces the syntactic requirement that
2883 -- a declarative part can contain only declarations, the semantic
2884 -- processing may add statements to the list of actions in a
2885 -- declarative part, so the code generator should be prepared
2886 -- to accept a statement in this position.
2888 ----------------------------
2889 -- 3.11 Declarative Item --
2890 ----------------------------
2892 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2894 ----------------------------------
2895 -- 3.11 Basic Declarative Item --
2896 ----------------------------------
2898 -- BASIC_DECLARATIVE_ITEM ::=
2899 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2905 -- BODY ::= PROPER_BODY | BODY_STUB
2907 -----------------------
2908 -- 3.11 Proper Body --
2909 -----------------------
2912 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2919 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2920 -- | INDEXED_COMPONENT | SLICE
2921 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2922 -- | TYPE_CONVERSION | FUNCTION_CALL
2923 -- | CHARACTER_LITERAL
2925 ----------------------
2926 -- 4.1 Direct Name --
2927 ----------------------
2929 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2935 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2937 -------------------------------
2938 -- 4.1 Explicit Dereference --
2939 -------------------------------
2941 -- EXPLICIT_DEREFERENCE ::= NAME . all
2943 -- N_Explicit_Dereference
2944 -- Sloc points to ALL
2946 -- Actual_Designated_Subtype (Node4-Sem)
2947 -- plus fields for expression
2949 -------------------------------
2950 -- 4.1 Implicit Dereference --
2951 -------------------------------
2953 -- IMPLICIT_DEREFERENCE ::= NAME
2955 ------------------------------
2956 -- 4.1.1 Indexed Component --
2957 ------------------------------
2959 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2961 -- Note: the parser may generate this node in some situations where it
2962 -- should be a function call. The semantic pass must correct this
2963 -- misidentification (which is inevitable at the parser level).
2965 -- N_Indexed_Component
2966 -- Sloc contains a copy of the Sloc value of the Prefix
2968 -- Expressions (List1)
2969 -- plus fields for expression
2971 -- Note: if any of the subscripts requires a range check, then the
2972 -- Do_Range_Check flag is set on the corresponding expression, with
2973 -- the index type being determined from the type of the Prefix, which
2974 -- references the array being indexed.
2976 -- Note: in a fully analyzed and expanded indexed component node, and
2977 -- hence in any such node that gigi sees, if the prefix is an access
2978 -- type, then an explicit dereference operation has been inserted.
2984 -- SLICE ::= PREFIX (DISCRETE_RANGE)
2986 -- Note: an implicit subtype is created to describe the resulting
2987 -- type, so that the bounds of this type are the bounds of the slice.
2990 -- Sloc points to first token of prefix
2992 -- Discrete_Range (Node4)
2993 -- plus fields for expression
2995 -------------------------------
2996 -- 4.1.3 Selected Component --
2997 -------------------------------
2999 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3001 -- Note: selected components that are semantically expanded names get
3002 -- changed during semantic processing into the separate N_Expanded_Name
3003 -- node. See description of this node in the section on semantic nodes.
3005 -- N_Selected_Component
3006 -- Sloc points to period
3008 -- Selector_Name (Node2)
3009 -- Associated_Node (Node4-Sem)
3010 -- Do_Discriminant_Check (Flag13-Sem)
3011 -- Is_In_Discriminant_Check (Flag11-Sem)
3012 -- plus fields for expression
3014 --------------------------
3015 -- 4.1.3 Selector Name --
3016 --------------------------
3018 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3020 --------------------------------
3021 -- 4.1.4 Attribute Reference --
3022 --------------------------------
3024 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3026 -- Note: the syntax is quite ambiguous at this point. Consider:
3028 -- A'Length (X) X is part of the attribute designator
3029 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3030 -- A'Class (X) X is the expression of a type conversion
3032 -- It would be possible for the parser to distinguish these cases
3033 -- by looking at the attribute identifier. However, that would mean
3034 -- more work in introducing new implementation defined attributes,
3035 -- and also it would mean that special processing for attributes
3036 -- would be scattered around, instead of being centralized in the
3037 -- semantic routine that handles an N_Attribute_Reference node.
3038 -- Consequently, the parser in all the above cases stores the
3039 -- expression (X in these examples) as a single element list in
3040 -- in the Expressions field of the N_Attribute_Reference node.
3042 -- Similarly, for attributes like Max which take two arguments,
3043 -- we store the two arguments as a two element list in the
3044 -- Expressions field. Of course it is clear at parse time that
3045 -- this case is really a function call with an attribute as the
3046 -- prefix, but it turns out to be convenient to handle the two
3047 -- argument case in a similar manner to the one argument case,
3048 -- and indeed in general the parser will accept any number of
3049 -- expressions in this position and store them as a list in the
3050 -- attribute reference node. This allows for future addition of
3051 -- attributes that take more than two arguments.
3053 -- Note: named associates are not permitted in function calls where
3054 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3055 -- to skip the normal subprogram argument processing.
3057 -- Note: for the attributes whose designators are technically keywords,
3058 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3059 -- the corresponding name, even though no identifier is involved.
3061 -- Note: the generated code may contain stream attributes applied to
3062 -- limited types for which no stream routines exist officially. In such
3063 -- case, the result is to use the stream attribute for the underlying
3064 -- full type, or in the case of a protected type, the components
3065 -- (including any disriminants) are merely streamed in order.
3067 -- See Exp_Attr for a complete description of which attributes are
3068 -- passed onto Gigi, and which are handled entirely by the front end.
3070 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3071 -- a non-standard enumeration type or a nonzero/zero semantics
3072 -- boolean type, so the value is simply the stored representation.
3074 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3075 -- references a subprogram that is a renaming, then the front end must
3076 -- rewrite the attribute to refer directly to the renamed entity.
3078 -- Note: In generated code, the Address and Unrestricted_Access
3079 -- attributes can be applied to any expression, and the meaning is
3080 -- to create an object containing the value (the object is in the
3081 -- current stack frame), and pass the address of this value. If the
3082 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3083 -- is taken must be on a byte (storage unit) boundary, and if it is
3084 -- not (or may not be), then the generated code must create a copy
3085 -- that is byte aligned, and pass the address of this copy.
3087 -- N_Attribute_Reference
3088 -- Sloc points to apostrophe
3090 -- Attribute_Name (Name2) identifier name from attribute designator
3091 -- Expressions (List1) (set to No_List if no associated expressions)
3092 -- Entity (Node4-Sem) used if the attribute yields a type
3093 -- Associated_Node (Node4-Sem)
3094 -- Do_Overflow_Check (Flag17-Sem)
3095 -- Redundant_Use (Flag13-Sem)
3096 -- Must_Be_Byte_Aligned (Flag14)
3097 -- plus fields for expression
3099 ---------------------------------
3100 -- 4.1.4 Attribute Designator --
3101 ---------------------------------
3103 -- ATTRIBUTE_DESIGNATOR ::=
3104 -- IDENTIFIER [(static_EXPRESSION)]
3105 -- | access | delta | digits
3107 -- There is no explicit node in the tree for an attribute designator.
3108 -- Instead the Attribute_Name and Expressions fields of the parent
3109 -- node (N_Attribute_Reference node) hold the information.
3111 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3112 -- designator, then they are treated as identifiers internally
3113 -- rather than the keywords of the same name.
3115 --------------------------------------
3116 -- 4.1.4 Range Attribute Reference --
3117 --------------------------------------
3119 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3121 -- A range attribute reference is represented in the tree using the
3122 -- normal N_Attribute_Reference node.
3124 ---------------------------------------
3125 -- 4.1.4 Range Attribute Designator --
3126 ---------------------------------------
3128 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3130 -- A range attribute designator is represented in the tree using the
3131 -- normal N_Attribute_Reference node.
3133 --------------------
3135 --------------------
3138 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3140 -----------------------------
3141 -- 4.3.1 Record Aggregate --
3142 -----------------------------
3144 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3147 -- Sloc points to left parenthesis
3148 -- Expressions (List1) (set to No_List if none or null record case)
3149 -- Component_Associations (List2) (set to No_List if none)
3150 -- Null_Record_Present (Flag17)
3151 -- Aggregate_Bounds (Node3-Sem)
3152 -- Associated_Node (Node4-Sem)
3153 -- Static_Processing_OK (Flag4-Sem)
3154 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3155 -- Expansion_Delayed (Flag11-Sem)
3156 -- Has_Self_Reference (Flag13-Sem)
3157 -- plus fields for expression
3159 -- Note: this structure is used for both record and array aggregates
3160 -- since the two cases are not separable by the parser. The parser
3161 -- makes no attempt to enforce consistency here, so it is up to the
3162 -- semantic phase to make sure that the aggregate is consistent (i.e.
3163 -- that it is not a "half-and-half" case that mixes record and array
3164 -- syntax. In particular, for a record aggregate, the expressions
3165 -- field will be set if there are positional associations.
3167 -- Note: N_Aggregate is not used for all aggregates; in particular,
3168 -- there is a separate node kind for extension aggregates.
3170 -- Note: gigi/gcc can handle array aggregates correctly providing that
3171 -- they are entirely positional, and the array subtype involved has a
3172 -- known at compile time length and is not bit packed, or a convention
3173 -- Fortran array with more than one dimension. If these conditions
3174 -- are not met, then the front end must translate the aggregate into
3175 -- an appropriate set of assignments into a temporary.
3177 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3178 -- of record aggregates, including those for packed, and rep-claused
3179 -- records, and also variant records, providing that there are no
3180 -- variable length fields whose size is not known at runtime, and
3181 -- providing that the aggregate is presented in fully named form.
3183 ----------------------------------------------
3184 -- 4.3.1 Record Component Association List --
3185 ----------------------------------------------
3187 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3188 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3191 -- There is no explicit node in the tree for a record component
3192 -- association list. Instead the Null_Record_Present flag is set in
3193 -- the parent node for the NULL RECORD case.
3195 ------------------------------------------------------
3196 -- 4.3.1 Record Component Association (also 4.3.3) --
3197 ------------------------------------------------------
3199 -- RECORD_COMPONENT_ASSOCIATION ::=
3200 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3202 -- N_Component_Association
3203 -- Sloc points to first selector name
3205 -- Loop_Actions (List2-Sem)
3206 -- Expression (Node3)
3207 -- Box_Present (Flag15)
3209 -- Note: this structure is used for both record component associations
3210 -- and array component associations, since the two cases aren't always
3211 -- separable by the parser. The choices list may represent either a
3212 -- list of selector names in the record aggregate case, or a list of
3213 -- discrete choices in the array aggregate case or an N_Others_Choice
3214 -- node (which appears as a singleton list). Box_Present gives support
3215 -- to Ada 2005 (AI-287).
3217 -----------------------------------
3218 -- 4.3.1 Commponent Choice List --
3219 -----------------------------------
3221 -- COMPONENT_CHOICE_LIST ::=
3222 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3225 -- The entries of a component choice list appear in the Choices list
3226 -- of the associated N_Component_Association, as either selector
3227 -- names, or as an N_Others_Choice node.
3229 --------------------------------
3230 -- 4.3.2 Extension Aggregate --
3231 --------------------------------
3233 -- EXTENSION_AGGREGATE ::=
3234 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3236 -- Note: extension aggregates are not permitted in Ada 83 mode
3238 -- N_Extension_Aggregate
3239 -- Sloc points to left parenthesis
3240 -- Ancestor_Part (Node3)
3241 -- Associated_Node (Node4-Sem)
3242 -- Expressions (List1) (set to No_List if none or null record case)
3243 -- Component_Associations (List2) (set to No_List if none)
3244 -- Null_Record_Present (Flag17)
3245 -- Expansion_Delayed (Flag11-Sem)
3246 -- Has_Self_Reference (Flag13-Sem)
3247 -- plus fields for expression
3249 --------------------------
3250 -- 4.3.2 Ancestor Part --
3251 --------------------------
3253 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3255 ----------------------------
3256 -- 4.3.3 Array Aggregate --
3257 ----------------------------
3259 -- ARRAY_AGGREGATE ::=
3260 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3262 ---------------------------------------
3263 -- 4.3.3 Positional Array Aggregate --
3264 ---------------------------------------
3266 -- POSITIONAL_ARRAY_AGGREGATE ::=
3267 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3268 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3270 -- See Record_Aggregate (4.3.1) for node structure
3272 ----------------------------------
3273 -- 4.3.3 Named Array Aggregate --
3274 ----------------------------------
3276 -- NAMED_ARRAY_AGGREGATE ::=
3277 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3279 -- See Record_Aggregate (4.3.1) for node structure
3281 ----------------------------------------
3282 -- 4.3.3 Array Component Association --
3283 ----------------------------------------
3285 -- ARRAY_COMPONENT_ASSOCIATION ::=
3286 -- DISCRETE_CHOICE_LIST => EXPRESSION
3288 -- See Record_Component_Association (4.3.1) for node structure
3290 --------------------------------------------------
3291 -- 4.4 Expression/Relation/Term/Factor/Primary --
3292 --------------------------------------------------
3295 -- RELATION {and RELATION} | RELATION {and then RELATION}
3296 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3297 -- | RELATION {xor RELATION}
3300 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3301 -- | SIMPLE_EXPRESSION [not] in RANGE
3302 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3304 -- SIMPLE_EXPRESSION ::=
3305 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3307 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3309 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3311 -- No nodes are generated for any of these constructs. Instead, the
3312 -- node for the operator appears directly. When we refer to an
3313 -- expression in this description, we mean any of the possible
3314 -- consistuent components of an expression (e.g. identifier is
3315 -- an example of an expression).
3322 -- NUMERIC_LITERAL | null
3323 -- | STRING_LITERAL | AGGREGATE
3324 -- | NAME | QUALIFIED_EXPRESSION
3325 -- | ALLOCATOR | (EXPRESSION)
3327 -- Usually there is no explicit node in the tree for primary. Instead
3328 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3329 -- exceptions. First, there is an explicit node for a null primary.
3332 -- Sloc points to NULL
3333 -- plus fields for expression
3335 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3336 -- that the parser keep track of which subexpressions are enclosed
3337 -- in parentheses, and how many levels of parentheses are used. This
3338 -- information is required for optimization purposes, and also for
3339 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3340 -- conform with ((((1)))) in the body).
3342 -- The parentheses are recorded by keeping a Paren_Count field in every
3343 -- subexpression node (it is actually present in all nodes, but only
3344 -- used in subexpression nodes). This count records the number of
3345 -- levels of parentheses. If the number of levels in the source exceeds
3346 -- the maximum accomodated by this count, then the count is simply left
3347 -- at the maximum value. This means that there are some pathalogical
3348 -- cases of failure to detect conformance failures (e.g. an expression
3349 -- with 500 levels of parens will conform with one with 501 levels),
3350 -- but we do not need to lose sleep over this.
3352 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3353 -- type N_Parenthesized_Expression used to accurately record unlimited
3354 -- numbers of levels of parentheses. However, it turned out to be a
3355 -- real nuisance to have to take into account the possible presence of
3356 -- this node during semantic analysis, since basically parentheses have
3357 -- zero relevance to semantic analysis.
3359 -- Note: the level of parentheses always present in things like
3360 -- aggregates does not count, only the parentheses in the primary
3361 -- (EXPRESSION) affect the setting of the Paren_Count field.
3363 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3364 -- treated as though it were Empty) if No_Initialization is set True.
3366 --------------------------------------
3367 -- 4.5 Short Circuit Control Forms --
3368 --------------------------------------
3371 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3373 -- Gigi restriction: For both these control forms, the operand and
3374 -- result types are always Standard.Boolean. The expander inserts the
3375 -- required conversion operations where needed to ensure this is the
3379 -- Sloc points to AND of AND THEN
3380 -- Left_Opnd (Node2)
3381 -- Right_Opnd (Node3)
3382 -- Actions (List1-Sem)
3383 -- plus fields for expression
3386 -- Sloc points to OR of OR ELSE
3387 -- Left_Opnd (Node2)
3388 -- Right_Opnd (Node3)
3389 -- Actions (List1-Sem)
3390 -- plus fields for expression
3392 -- Note: The Actions field is used to hold actions associated with
3393 -- the right hand operand. These have to be treated specially since
3394 -- they are not unconditionally executed. See Insert_Actions for a
3395 -- more detailed description of how these actions are handled.
3397 ---------------------------
3398 -- 4.5 Membership Tests --
3399 ---------------------------
3402 -- SIMPLE_EXPRESSION [not] in RANGE
3403 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3405 -- Note: although the grammar above allows only a range or a
3406 -- subtype mark, the parser in fact will accept any simple
3407 -- expression in place of a subtype mark. This means that the
3408 -- semantic analyzer must be prepared to deal with, and diagnose
3409 -- a simple expression other than a name for the right operand.
3410 -- This simplifies error recovery in the parser.
3413 -- Sloc points to IN
3414 -- Left_Opnd (Node2)
3415 -- Right_Opnd (Node3)
3416 -- plus fields for expression
3419 -- Sloc points to NOT of NOT IN
3420 -- Left_Opnd (Node2)
3421 -- Right_Opnd (Node3)
3422 -- plus fields for expression
3424 --------------------
3426 --------------------
3428 -- LOGICAL_OPERATOR ::= and | or | xor
3430 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3432 -- BINARY_ADDING_OPERATOR ::= + | - | &
3434 -- UNARY_ADDING_OPERATOR ::= + | -
3436 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3438 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3440 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3447 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3448 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3449 -- All handling of smalls for multiplication and division is handled
3450 -- by the front end (mod and rem result only from expansion). Gigi
3451 -- thus never needs to worry about small values (for other operators
3452 -- operating on fixed-point, e.g. addition, the small value does not
3453 -- have any semantic effect anyway, these are always integer operations.
3455 -- Gigi restriction: For all operators taking Boolean operands, the
3456 -- type is always Standard.Boolean. The expander inserts the required
3457 -- conversion operations where needed to ensure this is the case.
3460 -- Sloc points to AND
3461 -- Do_Length_Check (Flag4-Sem)
3462 -- plus fields for binary operator
3463 -- plus fields for expression
3466 -- Sloc points to OR
3467 -- Do_Length_Check (Flag4-Sem)
3468 -- plus fields for binary operator
3469 -- plus fields for expression
3472 -- Sloc points to XOR
3473 -- Do_Length_Check (Flag4-Sem)
3474 -- plus fields for binary operator
3475 -- plus fields for expression
3479 -- plus fields for binary operator
3480 -- plus fields for expression
3483 -- Sloc points to /=
3484 -- plus fields for binary operator
3485 -- plus fields for expression
3489 -- plus fields for binary operator
3490 -- plus fields for expression
3493 -- Sloc points to <=
3494 -- plus fields for binary operator
3495 -- plus fields for expression
3499 -- plus fields for binary operator
3500 -- plus fields for expression
3503 -- Sloc points to >=
3504 -- plus fields for binary operator
3505 -- plus fields for expression
3508 -- Sloc points to + (binary)
3509 -- plus fields for binary operator
3510 -- plus fields for expression
3513 -- Sloc points to - (binary)
3514 -- plus fields for binary operator
3515 -- plus fields for expression
3519 -- Is_Component_Left_Opnd (Flag13-Sem)
3520 -- Is_Component_Right_Opnd (Flag14-Sem)
3521 -- plus fields for binary operator
3522 -- plus fields for expression
3526 -- Treat_Fixed_As_Integer (Flag14-Sem)
3527 -- Rounded_Result (Flag18-Sem)
3528 -- plus fields for binary operator
3529 -- plus fields for expression
3533 -- Treat_Fixed_As_Integer (Flag14-Sem)
3534 -- Do_Division_Check (Flag13-Sem)
3535 -- Rounded_Result (Flag18-Sem)
3536 -- plus fields for binary operator
3537 -- plus fields for expression
3540 -- Sloc points to MOD
3541 -- Treat_Fixed_As_Integer (Flag14-Sem)
3542 -- Do_Division_Check (Flag13-Sem)
3543 -- plus fields for binary operator
3544 -- plus fields for expression
3547 -- Sloc points to REM
3548 -- Treat_Fixed_As_Integer (Flag14-Sem)
3549 -- Do_Division_Check (Flag13-Sem)
3550 -- plus fields for binary operator
3551 -- plus fields for expression
3554 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3555 -- Sloc points to **
3556 -- plus fields for binary operator
3557 -- plus fields for expression
3560 -- Sloc points to + (unary)
3561 -- plus fields for unary operator
3562 -- plus fields for expression
3565 -- Sloc points to - (unary)
3566 -- plus fields for unary operator
3567 -- plus fields for expression
3570 -- Sloc points to ABS
3571 -- plus fields for unary operator
3572 -- plus fields for expression
3575 -- Sloc points to NOT
3576 -- plus fields for unary operator
3577 -- plus fields for expression
3579 -- See also shift operators in section B.2
3581 -- Note on fixed-point operations passed to Gigi: For adding operators,
3582 -- the semantics is to treat these simply as integer operations, with
3583 -- the small values being ignored (the bounds are already stored in
3584 -- units of small, so that constraint checking works as usual). For the
3585 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3586 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3587 -- thus treat these nodes in identical manner, ignoring small values.
3589 --------------------------
3590 -- 4.6 Type Conversion --
3591 --------------------------
3593 -- TYPE_CONVERSION ::=
3594 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3596 -- In the (NAME) case, the name is stored as the expression
3598 -- Note: the parser never generates a type conversion node, since it
3599 -- looks like an indexed component which is generated by preference.
3600 -- The semantic pass must correct this misidentification.
3602 -- Gigi handles conversions that involve no change in the root type,
3603 -- and also all conversions from integer to floating-point types.
3604 -- Conversions from floating-point to integer are only handled in
3605 -- the case where Float_Truncate flag set. Other conversions from
3606 -- floating-point to integer (involving rounding) and all conversions
3607 -- involving fixed-point types are handled by the expander.
3609 -- Sprint syntax if Float_Truncate set: X^(Y)
3610 -- Sprint syntax if Conversion_OK set X?(Y)
3611 -- Sprint syntax if both flags set X?^(Y)
3613 -- Note: If either the operand or result type is fixed-point, Gigi will
3614 -- only see a type conversion node with Conversion_OK set. The front end
3615 -- takes care of all handling of small's for fixed-point conversions.
3617 -- N_Type_Conversion
3618 -- Sloc points to first token of subtype mark
3619 -- Subtype_Mark (Node4)
3620 -- Expression (Node3)
3621 -- Do_Tag_Check (Flag13-Sem)
3622 -- Do_Length_Check (Flag4-Sem)
3623 -- Do_Overflow_Check (Flag17-Sem)
3624 -- Float_Truncate (Flag11-Sem)
3625 -- Rounded_Result (Flag18-Sem)
3626 -- Conversion_OK (Flag14-Sem)
3627 -- plus fields for expression
3629 -- Note: if a range check is required, then the Do_Range_Check flag
3630 -- is set in the Expression with the check being done against the
3631 -- target type range (after the base type conversion, if any).
3633 -------------------------------
3634 -- 4.7 Qualified Expression --
3635 -------------------------------
3637 -- QUALIFIED_EXPRESSION ::=
3638 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3640 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3641 -- the expression, so the Expression field of this node always points
3642 -- to a parenthesized expression in this case (i.e. Paren_Count will
3643 -- always be non-zero for the referenced expression if it is not an
3646 -- N_Qualified_Expression
3647 -- Sloc points to apostrophe
3648 -- Subtype_Mark (Node4)
3649 -- Expression (Node3) expression or aggregate
3650 -- plus fields for expression
3652 --------------------
3654 --------------------
3657 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3659 -- Sprint syntax (when storage pool present)
3660 -- new xxx (storage_pool = pool)
3663 -- Sloc points to NEW
3664 -- Expression (Node3) subtype indication or qualified expression
3665 -- Null_Exclusion_Present (Flag11)
3666 -- Storage_Pool (Node1-Sem)
3667 -- Procedure_To_Call (Node2-Sem)
3668 -- Coextensions (Elist4-Sem)
3669 -- No_Initialization (Flag13-Sem)
3670 -- Is_Static_Coextension (Flag14-Sem)
3671 -- Do_Storage_Check (Flag17-Sem)
3672 -- Is_Dynamic_Coextension (Flag18-Sem)
3673 -- plus fields for expression
3675 ---------------------------------
3676 -- 5.1 Sequence Of Statements --
3677 ---------------------------------
3679 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3681 -- Note: Although the parser will not accept a declaration as a
3682 -- statement, the semantic analyzer may insert declarations (e.g.
3683 -- declarations of implicit types needed for execution of other
3684 -- statements) into a sequence of statements, so the code genmerator
3685 -- should be prepared to accept a declaration where a statement is
3686 -- expected. Note also that pragmas can appear as statements.
3688 --------------------
3690 --------------------
3693 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3695 -- There is no explicit node in the tree for a statement. Instead, the
3696 -- individual statement appears directly. Labels are treated as a
3697 -- kind of statement, i.e. they are linked into a statement list at
3698 -- the point they appear, so the labeled statement appears following
3699 -- the label or labels in the statement list.
3701 ---------------------------
3702 -- 5.1 Simple Statement --
3703 ---------------------------
3705 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3706 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3707 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3708 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3709 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3710 -- | ABORT_STATEMENT | RAISE_STATEMENT
3713 -----------------------------
3714 -- 5.1 Compound Statement --
3715 -----------------------------
3717 -- COMPOUND_STATEMENT ::=
3718 -- IF_STATEMENT | CASE_STATEMENT
3719 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3720 -- | EXTENDED_RETURN_STATEMENT
3721 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3723 -------------------------
3724 -- 5.1 Null Statement --
3725 -------------------------
3727 -- NULL_STATEMENT ::= null;
3730 -- Sloc points to NULL
3736 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3738 -- Note that the occurrence of a label is not a defining identifier,
3739 -- but rather a referencing occurrence. The defining occurrence is
3740 -- in the implicit label declaration which occurs in the innermost
3744 -- Sloc points to <<
3745 -- Identifier (Node1) direct name of statement identifier
3746 -- Exception_Junk (Flag8-Sem)
3748 -------------------------------
3749 -- 5.1 Statement Identifier --
3750 -------------------------------
3752 -- STATEMENT_INDENTIFIER ::= DIRECT_NAME
3754 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3755 -- (not an OPERATOR_SYMBOL)
3757 -------------------------------
3758 -- 5.2 Assignment Statement --
3759 -------------------------------
3761 -- ASSIGNMENT_STATEMENT ::=
3762 -- variable_NAME := EXPRESSION;
3764 -- N_Assignment_Statement
3765 -- Sloc points to :=
3767 -- Expression (Node3)
3768 -- Do_Tag_Check (Flag13-Sem)
3769 -- Do_Length_Check (Flag4-Sem)
3770 -- Forwards_OK (Flag5-Sem)
3771 -- Backwards_OK (Flag6-Sem)
3772 -- No_Ctrl_Actions (Flag7-Sem)
3774 -- Note: if a range check is required, then the Do_Range_Check flag
3775 -- is set in the Expression (right hand side), with the check being
3776 -- done against the type of the Name (left hand side).
3778 -- Note: the back end places some restrictions on the form of the
3779 -- Expression field. If the object being assigned to is Atomic, then
3780 -- the Expression may not have the form of an aggregate (since this
3781 -- might cause the back end to generate separate assignments). It
3782 -- also cannot be a reference to an object marked as a true constant
3783 -- (Is_True_Constant flag set), where the object is itself initalized
3784 -- with an aggregate. If necessary the front end must generate an
3785 -- extra temporary (with Is_True_Constant set False), and initialize
3786 -- this temporary as required (the temporary itself is not atomic).
3788 -----------------------
3789 -- 5.3 If Statement --
3790 -----------------------
3793 -- if CONDITION then
3794 -- SEQUENCE_OF_STATEMENTS
3795 -- {elsif CONDITION then
3796 -- SEQUENCE_OF_STATEMENTS}
3798 -- SEQUENCE_OF_STATEMENTS]
3801 -- Gigi restriction: This expander ensures that the type of the
3802 -- Condition fields is always Standard.Boolean, even if the type
3803 -- in the source is some non-standard boolean type.
3806 -- Sloc points to IF
3807 -- Condition (Node1)
3808 -- Then_Statements (List2)
3809 -- Elsif_Parts (List3) (set to No_List if none present)
3810 -- Else_Statements (List4) (set to No_List if no else part present)
3811 -- End_Span (Uint5) (set to No_Uint if expander generated)
3814 -- Sloc points to ELSIF
3815 -- Condition (Node1)
3816 -- Then_Statements (List2)
3817 -- Condition_Actions (List3-Sem)
3819 --------------------
3821 --------------------
3823 -- CONDITION ::= boolean_EXPRESSION
3825 -------------------------
3826 -- 5.4 Case Statement --
3827 -------------------------
3829 -- CASE_STATEMENT ::=
3830 -- case EXPRESSION is
3831 -- CASE_STATEMENT_ALTERNATIVE
3832 -- {CASE_STATEMENT_ALTERNATIVE}
3835 -- Note: the Alternatives can contain pragmas. These only occur at
3836 -- the start of the list, since any pragmas occurring after the first
3837 -- alternative are absorbed into the corresponding statement sequence.
3840 -- Sloc points to CASE
3841 -- Expression (Node3)
3842 -- Alternatives (List4)
3843 -- End_Span (Uint5) (set to No_Uint if expander generated)
3845 -------------------------------------
3846 -- 5.4 Case Statement Alternative --
3847 -------------------------------------
3849 -- CASE_STATEMENT_ALTERNATIVE ::=
3850 -- when DISCRETE_CHOICE_LIST =>
3851 -- SEQUENCE_OF_STATEMENTS
3853 -- N_Case_Statement_Alternative
3854 -- Sloc points to WHEN
3855 -- Discrete_Choices (List4)
3856 -- Statements (List3)
3858 -------------------------
3859 -- 5.5 Loop Statement --
3860 -------------------------
3862 -- LOOP_STATEMENT ::=
3863 -- [loop_STATEMENT_IDENTIFIER :]
3864 -- [ITERATION_SCHEME] loop
3865 -- SEQUENCE_OF_STATEMENTS
3866 -- end loop [loop_IDENTIFIER];
3868 -- Note: The occurrence of a loop label is not a defining identifier
3869 -- but rather a referencing occurrence. The defining occurrence is in
3870 -- the implicit label declaration which occurs in the innermost
3873 -- Note: there is always a loop statement identifier present in
3874 -- the tree, even if none was given in the source. In the case where
3875 -- no loop identifier is given in the source, the parser creates
3876 -- a name of the form _Loop_n, where n is a decimal integer (the
3877 -- two underlines ensure that the loop names created in this manner
3878 -- do not conflict with any user defined identifiers), and the flag
3879 -- Has_Created_Identifier is set to True. The only exception to the
3880 -- rule that all loop statement nodes have identifiers occurs for
3881 -- loops constructed by the expander, and the semantic analyzer will
3882 -- create and supply dummy loop identifiers in these cases.
3885 -- Sloc points to LOOP
3886 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3887 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3888 -- Statements (List3)
3889 -- End_Label (Node4)
3890 -- Has_Created_Identifier (Flag15)
3891 -- Is_Null_Loop (Flag16)
3893 --------------------------
3894 -- 5.5 Iteration Scheme --
3895 --------------------------
3897 -- ITERATION_SCHEME ::=
3898 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3900 -- Gigi restriction: This expander ensures that the type of the
3901 -- Condition field is always Standard.Boolean, even if the type
3902 -- in the source is some non-standard boolean type.
3904 -- N_Iteration_Scheme
3905 -- Sloc points to WHILE or FOR
3906 -- Condition (Node1) (set to Empty if FOR case)
3907 -- Condition_Actions (List3-Sem)
3908 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3910 ---------------------------------------
3911 -- 5.5 Loop parameter specification --
3912 ---------------------------------------
3914 -- LOOP_PARAMETER_SPECIFICATION ::=
3915 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3917 -- N_Loop_Parameter_Specification
3918 -- Sloc points to first identifier
3919 -- Defining_Identifier (Node1)
3920 -- Reverse_Present (Flag15)
3921 -- Discrete_Subtype_Definition (Node4)
3923 --------------------------
3924 -- 5.6 Block Statement --
3925 --------------------------
3927 -- BLOCK_STATEMENT ::=
3928 -- [block_STATEMENT_IDENTIFIER:]
3930 -- DECLARATIVE_PART]
3932 -- HANDLED_SEQUENCE_OF_STATEMENTS
3933 -- end [block_IDENTIFIER];
3935 -- Note that the occurrence of a block identifier is not a defining
3936 -- identifier, but rather a referencing occurrence. The defining
3937 -- occurrence is an E_Block entity declared by the implicit label
3938 -- declaration which occurs in the innermost enclosing block statement
3939 -- or body; the block identifier denotes that E_Block.
3941 -- For block statements that come from source code, there is always a
3942 -- block statement identifier present in the tree, denoting an
3943 -- E_Block. In the case where no block identifier is given in the
3944 -- source, the parser creates a name of the form B_n, where n is a
3945 -- decimal integer, and the flag Has_Created_Identifier is set to
3946 -- True. Blocks constructed by the expander usually have no identifier,
3947 -- and no corresponding entity.
3949 -- Note: the block statement created for an extended return statement
3950 -- has an entity, and this entity is an E_Return_Statement, rather than
3951 -- the usual E_Block.
3953 -- Note: Exception_Junk is set for the wrapping blocks created during
3954 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
3956 -- N_Block_Statement
3957 -- Sloc points to DECLARE or BEGIN
3958 -- Identifier (Node1) block direct name (set to Empty if not present)
3959 -- Declarations (List2) (set to No_List if no DECLARE part)
3960 -- Handled_Statement_Sequence (Node4)
3961 -- Is_Task_Master (Flag5-Sem)
3962 -- Activation_Chain_Entity (Node3-Sem)
3963 -- Has_Created_Identifier (Flag15)
3964 -- Is_Task_Allocation_Block (Flag6)
3965 -- Is_Asynchronous_Call_Block (Flag7)
3966 -- Exception_Junk (Flag8-Sem)
3968 -------------------------
3969 -- 5.7 Exit Statement --
3970 -------------------------
3972 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
3974 -- Gigi restriction: This expander ensures that the type of the
3975 -- Condition field is always Standard.Boolean, even if the type
3976 -- in the source is some non-standard boolean type.
3979 -- Sloc points to EXIT
3980 -- Name (Node2) (set to Empty if no loop name present)
3981 -- Condition (Node1) (set to Empty if no when part present)
3983 -------------------------
3984 -- 5.9 Goto Statement --
3985 -------------------------
3987 -- GOTO_STATEMENT ::= goto label_NAME;
3990 -- Sloc points to GOTO
3992 -- Exception_Junk (Flag8-Sem)
3994 ---------------------------------
3995 -- 6.1 Subprogram Declaration --
3996 ---------------------------------
3998 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4000 -- N_Subprogram_Declaration
4001 -- Sloc points to FUNCTION or PROCEDURE
4002 -- Specification (Node1)
4003 -- Body_To_Inline (Node3-Sem)
4004 -- Corresponding_Body (Node5-Sem)
4005 -- Parent_Spec (Node4-Sem)
4007 ------------------------------------------
4008 -- 6.1 Abstract Subprogram Declaration --
4009 ------------------------------------------
4011 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4012 -- SUBPROGRAM_SPECIFICATION is abstract;
4014 -- N_Abstract_Subprogram_Declaration
4015 -- Sloc points to ABSTRACT
4016 -- Specification (Node1)
4018 -----------------------------------
4019 -- 6.1 Subprogram Specification --
4020 -----------------------------------
4022 -- SUBPROGRAM_SPECIFICATION ::=
4023 -- [[not] overriding]
4024 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4025 -- | [[not] overriding]
4026 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4028 -- Note: there are no separate nodes for the profiles, instead the
4029 -- information appears directly in the following nodes.
4031 -- N_Function_Specification
4032 -- Sloc points to FUNCTION
4033 -- Defining_Unit_Name (Node1) (the designator)
4034 -- Elaboration_Boolean (Node2-Sem)
4035 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4036 -- Null_Exclusion_Present (Flag11)
4037 -- Result_Definition (Node4) for result subtype
4038 -- Generic_Parent (Node5-Sem)
4039 -- Must_Override (Flag14) set if overriding indicator present
4040 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4042 -- N_Procedure_Specification
4043 -- Sloc points to PROCEDURE
4044 -- Defining_Unit_Name (Node1)
4045 -- Elaboration_Boolean (Node2-Sem)
4046 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4047 -- Generic_Parent (Node5-Sem)
4048 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4049 -- Must_Override (Flag14) set if overriding indicator present
4050 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4052 -- Note: overriding indicator is an Ada 2005 feature
4054 ---------------------
4055 -- 6.1 Designator --
4056 ---------------------
4059 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4061 -- Designators that are simply identifiers or operator symbols appear
4062 -- directly in the tree in this form. The following node is used only
4063 -- in the case where the designator has a parent unit name component.
4066 -- Sloc points to period
4067 -- Name (Node2) holds the parent unit name. Note that this is always
4068 -- non-Empty, since this node is only used for the case where a
4069 -- parent library unit package name is present.
4070 -- Identifier (Node1)
4072 -- Note that the identifier can also be an operator symbol here
4074 ------------------------------
4075 -- 6.1 Defining Designator --
4076 ------------------------------
4078 -- DEFINING_DESIGNATOR ::=
4079 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4081 -------------------------------------
4082 -- 6.1 Defining Program Unit Name --
4083 -------------------------------------
4085 -- DEFINING_PROGRAM_UNIT_NAME ::=
4086 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4088 -- The parent unit name is present only in the case of a child unit
4089 -- name (permissible only for Ada 95 for a library level unit, i.e.
4090 -- a unit at scope level one). If no such name is present, the defining
4091 -- program unit name is represented simply as the defining identifier.
4092 -- In the child unit case, the following node is used to represent the
4095 -- N_Defining_Program_Unit_Name
4096 -- Sloc points to period
4097 -- Name (Node2) holds the parent unit name. Note that this is always
4098 -- non-Empty, since this node is only used for the case where a
4099 -- parent unit name is present.
4100 -- Defining_Identifier (Node1)
4102 --------------------------
4103 -- 6.1 Operator Symbol --
4104 --------------------------
4106 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4108 -- Note: the fields of the N_Operator_Symbol node are laid out to
4109 -- match the corresponding fields of an N_Character_Literal node. This
4110 -- allows easy conversion of the operator symbol node into a character
4111 -- literal node in the case where a string constant of the form of an
4112 -- operator symbol is scanned out as such, but turns out semantically
4113 -- to be a string literal that is not an operator. For details see
4114 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4116 -- N_Operator_Symbol
4117 -- Sloc points to literal
4118 -- Chars (Name1) contains the Name_Id for the operator symbol
4119 -- Strval (Str3) Id of string value. This is used if the operator
4120 -- symbol turns out to be a normal string after all.
4121 -- Entity (Node4-Sem)
4122 -- Associated_Node (Node4-Sem)
4123 -- Has_Private_View (Flag11-Sem) set in generic units.
4124 -- Etype (Node5-Sem)
4126 -- Note: the Strval field may be set to No_String for generated
4127 -- operator symbols that are known not to be string literals
4130 -----------------------------------
4131 -- 6.1 Defining Operator Symbol --
4132 -----------------------------------
4134 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4136 -- A defining operator symbol is an entity, which has additional
4137 -- fields depending on the setting of the Ekind field. These
4138 -- additional fields are defined (and access subprograms declared)
4139 -- in package Einfo.
4141 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4142 -- are deliberately layed out to match the layout of fields in an
4143 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4144 -- an operator symbol node into a defining operator symbol node.
4145 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4146 -- for further details.
4148 -- N_Defining_Operator_Symbol
4149 -- Sloc points to literal
4150 -- Chars (Name1) contains the Name_Id for the operator symbol
4151 -- Next_Entity (Node2-Sem)
4152 -- Scope (Node3-Sem)
4153 -- Etype (Node5-Sem)
4155 ----------------------------
4156 -- 6.1 Parameter Profile --
4157 ----------------------------
4159 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4161 ---------------------------------------
4162 -- 6.1 Parameter and Result Profile --
4163 ---------------------------------------
4165 -- PARAMETER_AND_RESULT_PROFILE ::=
4166 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4167 -- | [FORMAL_PART] return ACCESS_DEFINITION
4169 -- There is no explicit node in the tree for a parameter and result
4170 -- profile. Instead the information appears directly in the parent.
4172 ----------------------
4173 -- 6.1 Formal part --
4174 ----------------------
4177 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4179 ----------------------------------
4180 -- 6.1 Parameter specification --
4181 ----------------------------------
4183 -- PARAMETER_SPECIFICATION ::=
4184 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4185 -- [:= DEFAULT_EXPRESSION]
4186 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4187 -- [:= DEFAULT_EXPRESSION]
4189 -- Although the syntax allows multiple identifiers in the list, the
4190 -- semantics is as though successive specifications were given with
4191 -- identical type definition and expression components. To simplify
4192 -- semantic processing, the parser represents a multiple declaration
4193 -- case as a sequence of single Specifications, using the More_Ids and
4194 -- Prev_Ids flags to preserve the original source form as described
4195 -- in the section on "Handling of Defining Identifier Lists".
4197 -- N_Parameter_Specification
4198 -- Sloc points to first identifier
4199 -- Defining_Identifier (Node1)
4200 -- In_Present (Flag15)
4201 -- Out_Present (Flag17)
4202 -- Null_Exclusion_Present (Flag11)
4203 -- Parameter_Type (Node2) subtype mark or access definition
4204 -- Expression (Node3) (set to Empty if no default expression present)
4205 -- Do_Accessibility_Check (Flag13-Sem)
4206 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4207 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4208 -- Default_Expression (Node5-Sem)
4214 -- MODE ::= [in] | in out | out
4216 -- There is no explicit node in the tree for the Mode. Instead the
4217 -- In_Present and Out_Present flags are set in the parent node to
4218 -- record the presence of keywords specifying the mode.
4220 --------------------------
4221 -- 6.3 Subprogram Body --
4222 --------------------------
4224 -- SUBPROGRAM_BODY ::=
4225 -- SUBPROGRAM_SPECIFICATION is
4228 -- HANDLED_SEQUENCE_OF_STATEMENTS
4229 -- end [DESIGNATOR];
4231 -- N_Subprogram_Body
4232 -- Sloc points to FUNCTION or PROCEDURE
4233 -- Specification (Node1)
4234 -- Declarations (List2)
4235 -- Handled_Statement_Sequence (Node4)
4236 -- Activation_Chain_Entity (Node3-Sem)
4237 -- Corresponding_Spec (Node5-Sem)
4238 -- Acts_As_Spec (Flag4-Sem)
4239 -- Bad_Is_Detected (Flag15) used only by parser
4240 -- Do_Storage_Check (Flag17-Sem)
4241 -- Has_Priority_Pragma (Flag6-Sem)
4242 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4243 -- Is_Entry_Barrier_Function (Flag8-Sem)
4244 -- Is_Task_Master (Flag5-Sem)
4245 -- Was_Originally_Stub (Flag13-Sem)
4247 -----------------------------------
4248 -- 6.4 Procedure Call Statement --
4249 -----------------------------------
4251 -- PROCEDURE_CALL_STATEMENT ::=
4252 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4254 -- Note: the reason that a procedure call has expression fields is
4255 -- that it semantically resembles an expression, e.g. overloading is
4256 -- allowed and a type is concocted for semantic processing purposes.
4257 -- Certain of these fields, such as Parens are not relevant, but it
4258 -- is easier to just supply all of them together!
4260 -- N_Procedure_Call_Statement
4261 -- Sloc points to first token of name or prefix
4262 -- Name (Node2) stores name or prefix
4263 -- Parameter_Associations (List3) (set to No_List if no
4264 -- actual parameter part)
4265 -- First_Named_Actual (Node4-Sem)
4266 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4267 -- Do_Tag_Check (Flag13-Sem)
4268 -- No_Elaboration_Check (Flag14-Sem)
4269 -- Parameter_List_Truncated (Flag17-Sem)
4270 -- ABE_Is_Certain (Flag18-Sem)
4271 -- plus fields for expression
4273 -- If any IN parameter requires a range check, then the corresponding
4274 -- argument expression has the Do_Range_Check flag set, and the range
4275 -- check is done against the formal type. Note that this argument
4276 -- expression may appear directly in the Parameter_Associations list,
4277 -- or may be a descendent of an N_Parameter_Association node that
4278 -- appears in this list.
4280 ------------------------
4281 -- 6.4 Function Call --
4282 ------------------------
4284 -- FUNCTION_CALL ::=
4285 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4287 -- Note: the parser may generate an indexed component node or simply
4288 -- a name node instead of a function call node. The semantic pass must
4289 -- correct this misidentification.
4292 -- Sloc points to first token of name or prefix
4293 -- Name (Node2) stores name or prefix
4294 -- Parameter_Associations (List3) (set to No_List if no
4295 -- actual parameter part)
4296 -- First_Named_Actual (Node4-Sem)
4297 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4298 -- Do_Tag_Check (Flag13-Sem)
4299 -- No_Elaboration_Check (Flag14-Sem)
4300 -- Parameter_List_Truncated (Flag17-Sem)
4301 -- ABE_Is_Certain (Flag18-Sem)
4302 -- plus fields for expression
4304 --------------------------------
4305 -- 6.4 Actual Parameter Part --
4306 --------------------------------
4308 -- ACTUAL_PARAMETER_PART ::=
4309 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4311 --------------------------------
4312 -- 6.4 Parameter Association --
4313 --------------------------------
4315 -- PARAMETER_ASSOCIATION ::=
4316 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4318 -- Note: the N_Parameter_Association node is built only if a formal
4319 -- parameter selector name is present, otherwise the parameter
4320 -- association appears in the tree simply as the node for the
4321 -- explicit actual parameter.
4323 -- N_Parameter_Association
4324 -- Sloc points to formal parameter
4325 -- Selector_Name (Node2) (always non-Empty)
4326 -- Explicit_Actual_Parameter (Node3)
4327 -- Next_Named_Actual (Node4-Sem)
4329 ---------------------------
4330 -- 6.4 Actual Parameter --
4331 ---------------------------
4333 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4335 ---------------------------
4336 -- 6.5 Return Statement --
4337 ---------------------------
4339 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4341 -- In Ada 2005, we have:
4343 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4345 -- EXTENDED_RETURN_STATEMENT ::=
4346 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4347 -- [:= EXPRESSION] [do
4348 -- HANDLED_SEQUENCE_OF_STATEMENTS
4351 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4353 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4354 -- "return statement" is defined in 6.5 to mean a
4355 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4357 -- N_Return_Statement
4358 -- Sloc points to RETURN
4359 -- Return_Statement_Entity (Node5-Sem)
4360 -- Expression (Node3) (set to Empty if no expression present)
4361 -- Storage_Pool (Node1-Sem)
4362 -- Procedure_To_Call (Node2-Sem)
4363 -- Do_Tag_Check (Flag13-Sem)
4364 -- By_Ref (Flag5-Sem)
4365 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4367 -- N_Return_Statement represents a simple_return_statement, and is
4368 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4369 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4370 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4371 -- as Make_Simple_Return_Statement in Sem_Util.
4373 -- Note: Return_Statement_Entity points to an E_Return_Statement
4375 -- If a range check is required, then Do_Range_Check is set on the
4376 -- Expression. The check is against the return subtype of the function.
4378 -- N_Extended_Return_Statement
4379 -- Sloc points to RETURN
4380 -- Return_Statement_Entity (Node5-Sem)
4381 -- Return_Object_Declarations (List3)
4382 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4383 -- Storage_Pool (Node1-Sem)
4384 -- Procedure_To_Call (Node2-Sem)
4385 -- Do_Tag_Check (Flag13-Sem)
4386 -- By_Ref (Flag5-Sem)
4388 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4389 -- Note that Return_Object_Declarations is a list containing the
4390 -- N_Object_Declaration -- see comment on this field above.
4391 -- The declared object will have Is_Return_Object = True.
4392 -- There is no such syntactic category as return_object_declaration
4393 -- in the RM. Return_Object_Declarations represents this portion of
4394 -- the syntax for EXTENDED_RETURN_STATEMENT:
4395 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4398 -- There are two entities associated with an extended_return_statement:
4399 -- the Return_Statement_Entity represents the statement itself, and the
4400 -- Defining_Identifier of the Object_Declaration in
4401 -- Return_Object_Declarations represents the object being
4402 -- returned. N_Simple_Return_Statement has only the former.
4404 ------------------------------
4405 -- 7.1 Package Declaration --
4406 ------------------------------
4408 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4410 -- Note: the activation chain entity for a package spec is used for
4411 -- all tasks declared in the package spec, or in the package body.
4413 -- N_Package_Declaration
4414 -- Sloc points to PACKAGE
4415 -- Specification (Node1)
4416 -- Corresponding_Body (Node5-Sem)
4417 -- Parent_Spec (Node4-Sem)
4418 -- Activation_Chain_Entity (Node3-Sem)
4420 --------------------------------
4421 -- 7.1 Package Specification --
4422 --------------------------------
4424 -- PACKAGE_SPECIFICATION ::=
4425 -- package DEFINING_PROGRAM_UNIT_NAME is
4426 -- {BASIC_DECLARATIVE_ITEM}
4428 -- {BASIC_DECLARATIVE_ITEM}]
4429 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4431 -- N_Package_Specification
4432 -- Sloc points to PACKAGE
4433 -- Defining_Unit_Name (Node1)
4434 -- Visible_Declarations (List2)
4435 -- Private_Declarations (List3) (set to No_List if no private
4437 -- End_Label (Node4)
4438 -- Generic_Parent (Node5-Sem)
4439 -- Limited_View_Installed (Flag18-Sem)
4441 -----------------------
4442 -- 7.1 Package Body --
4443 -----------------------
4446 -- package body DEFINING_PROGRAM_UNIT_NAME is
4449 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4450 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4453 -- Sloc points to PACKAGE
4454 -- Defining_Unit_Name (Node1)
4455 -- Declarations (List2)
4456 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4457 -- Corresponding_Spec (Node5-Sem)
4458 -- Was_Originally_Stub (Flag13-Sem)
4460 -- Note: if a source level package does not contain a handled sequence
4461 -- of statements, then the parser supplies a dummy one with a null
4462 -- sequence of statements. Comes_From_Source will be False in this
4463 -- constructed sequence. The reason we need this is for the End_Label
4464 -- field in the HSS.
4466 -----------------------------------
4467 -- 7.4 Private Type Declaration --
4468 -----------------------------------
4470 -- PRIVATE_TYPE_DECLARATION ::=
4471 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4472 -- is [[abstract] tagged] [limited] private;
4474 -- Note: TAGGED is not permitted in Ada 83 mode
4476 -- N_Private_Type_Declaration
4477 -- Sloc points to TYPE
4478 -- Defining_Identifier (Node1)
4479 -- Discriminant_Specifications (List4) (set to No_List if no
4480 -- discriminant part)
4481 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4482 -- Abstract_Present (Flag4)
4483 -- Tagged_Present (Flag15)
4484 -- Limited_Present (Flag17)
4486 ----------------------------------------
4487 -- 7.4 Private Extension Declaration --
4488 ----------------------------------------
4490 -- PRIVATE_EXTENSION_DECLARATION ::=
4491 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4492 -- [abstract] [limited | synchronized]
4493 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4496 -- Note: LIMITED, and private extension declarations are not allowed
4499 -- N_Private_Extension_Declaration
4500 -- Sloc points to TYPE
4501 -- Defining_Identifier (Node1)
4502 -- Discriminant_Specifications (List4) (set to No_List if no
4503 -- discriminant part)
4504 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4505 -- Abstract_Present (Flag4)
4506 -- Limited_Present (Flag17)
4507 -- Synchronized_Present (Flag7)
4508 -- Subtype_Indication (Node5)
4509 -- Interface_List (List2) (set to No_List if none)
4511 ---------------------
4512 -- 8.4 Use Clause --
4513 ---------------------
4515 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4517 -----------------------------
4518 -- 8.4 Use Package Clause --
4519 -----------------------------
4521 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4523 -- N_Use_Package_Clause
4524 -- Sloc points to USE
4526 -- Next_Use_Clause (Node3-Sem)
4527 -- Hidden_By_Use_Clause (Elist4-Sem)
4529 --------------------------
4530 -- 8.4 Use Type Clause --
4531 --------------------------
4533 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4535 -- Note: use type clause is not permitted in Ada 83 mode
4537 -- N_Use_Type_Clause
4538 -- Sloc points to USE
4539 -- Subtype_Marks (List2)
4540 -- Next_Use_Clause (Node3-Sem)
4541 -- Hidden_By_Use_Clause (Elist4-Sem)
4543 -------------------------------
4544 -- 8.5 Renaming Declaration --
4545 -------------------------------
4547 -- RENAMING_DECLARATION ::=
4548 -- OBJECT_RENAMING_DECLARATION
4549 -- | EXCEPTION_RENAMING_DECLARATION
4550 -- | PACKAGE_RENAMING_DECLARATION
4551 -- | SUBPROGRAM_RENAMING_DECLARATION
4552 -- | GENERIC_RENAMING_DECLARATION
4554 --------------------------------------
4555 -- 8.5 Object Renaming Declaration --
4556 --------------------------------------
4558 -- OBJECT_RENAMING_DECLARATION ::=
4559 -- DEFINING_IDENTIFIER :
4560 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4561 -- | DEFINING_IDENTIFIER :
4562 -- ACCESS_DEFINITION renames object_NAME;
4564 -- Note: Access_Definition is an optional field that gives support to
4565 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4566 -- Subtype_Indication field or else the Access_Definition field.
4568 -- N_Object_Renaming_Declaration
4569 -- Sloc points to first identifier
4570 -- Defining_Identifier (Node1)
4571 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4572 -- Subtype_Mark (Node4) (set to Empty if not present)
4573 -- Access_Definition (Node3) (set to Empty if not present)
4575 -- Corresponding_Generic_Association (Node5-Sem)
4577 -----------------------------------------
4578 -- 8.5 Exception Renaming Declaration --
4579 -----------------------------------------
4581 -- EXCEPTION_RENAMING_DECLARATION ::=
4582 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4584 -- N_Exception_Renaming_Declaration
4585 -- Sloc points to first identifier
4586 -- Defining_Identifier (Node1)
4589 ---------------------------------------
4590 -- 8.5 Package Renaming Declaration --
4591 ---------------------------------------
4593 -- PACKAGE_RENAMING_DECLARATION ::=
4594 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4596 -- N_Package_Renaming_Declaration
4597 -- Sloc points to PACKAGE
4598 -- Defining_Unit_Name (Node1)
4600 -- Parent_Spec (Node4-Sem)
4602 ------------------------------------------
4603 -- 8.5 Subprogram Renaming Declaration --
4604 ------------------------------------------
4606 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4607 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4609 -- N_Subprogram_Renaming_Declaration
4610 -- Sloc points to RENAMES
4611 -- Specification (Node1)
4613 -- Parent_Spec (Node4-Sem)
4614 -- Corresponding_Spec (Node5-Sem)
4615 -- Corresponding_Formal_Spec (Node3-Sem)
4616 -- From_Default (Flag6-Sem)
4618 -----------------------------------------
4619 -- 8.5.5 Generic Renaming Declaration --
4620 -----------------------------------------
4622 -- GENERIC_RENAMING_DECLARATION ::=
4623 -- generic package DEFINING_PROGRAM_UNIT_NAME
4624 -- renames generic_package_NAME
4625 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4626 -- renames generic_procedure_NAME
4627 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4628 -- renames generic_function_NAME
4630 -- N_Generic_Package_Renaming_Declaration
4631 -- Sloc points to GENERIC
4632 -- Defining_Unit_Name (Node1)
4634 -- Parent_Spec (Node4-Sem)
4636 -- N_Generic_Procedure_Renaming_Declaration
4637 -- Sloc points to GENERIC
4638 -- Defining_Unit_Name (Node1)
4640 -- Parent_Spec (Node4-Sem)
4642 -- N_Generic_Function_Renaming_Declaration
4643 -- Sloc points to GENERIC
4644 -- Defining_Unit_Name (Node1)
4646 -- Parent_Spec (Node4-Sem)
4648 --------------------------------
4649 -- 9.1 Task Type Declaration --
4650 --------------------------------
4652 -- TASK_TYPE_DECLARATION ::=
4653 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4654 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4656 -- N_Task_Type_Declaration
4657 -- Sloc points to TASK
4658 -- Defining_Identifier (Node1)
4659 -- Discriminant_Specifications (List4) (set to No_List if no
4660 -- discriminant part)
4661 -- Interface_List (List2) (set to No_List if none)
4662 -- Task_Definition (Node3) (set to Empty if not present)
4663 -- Corresponding_Body (Node5-Sem)
4665 ----------------------------------
4666 -- 9.1 Single Task Declaration --
4667 ----------------------------------
4669 -- SINGLE_TASK_DECLARATION ::=
4670 -- task DEFINING_IDENTIFIER
4671 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4673 -- N_Single_Task_Declaration
4674 -- Sloc points to TASK
4675 -- Defining_Identifier (Node1)
4676 -- Interface_List (List2) (set to No_List if none)
4677 -- Task_Definition (Node3) (set to Empty if not present)
4679 --------------------------
4680 -- 9.1 Task Definition --
4681 --------------------------
4683 -- TASK_DEFINITION ::=
4687 -- end [task_IDENTIFIER]
4689 -- Note: as a result of semantic analysis, the list of task items can
4690 -- include implicit type declarations resulting from entry families.
4692 -- N_Task_Definition
4693 -- Sloc points to first token of task definition
4694 -- Visible_Declarations (List2)
4695 -- Private_Declarations (List3) (set to No_List if no private part)
4696 -- End_Label (Node4)
4697 -- Has_Priority_Pragma (Flag6-Sem)
4698 -- Has_Storage_Size_Pragma (Flag5-Sem)
4699 -- Has_Task_Info_Pragma (Flag7-Sem)
4700 -- Has_Task_Name_Pragma (Flag8-Sem)
4702 --------------------
4704 --------------------
4706 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4708 --------------------
4710 --------------------
4713 -- task body task_DEFINING_IDENTIFIER is
4716 -- HANDLED_SEQUENCE_OF_STATEMENTS
4717 -- end [task_IDENTIFIER];
4719 -- Gigi restriction: This node never appears
4722 -- Sloc points to TASK
4723 -- Defining_Identifier (Node1)
4724 -- Declarations (List2)
4725 -- Handled_Statement_Sequence (Node4)
4726 -- Is_Task_Master (Flag5-Sem)
4727 -- Activation_Chain_Entity (Node3-Sem)
4728 -- Corresponding_Spec (Node5-Sem)
4729 -- Was_Originally_Stub (Flag13-Sem)
4731 -------------------------------------
4732 -- 9.4 Protected Type Declaration --
4733 -------------------------------------
4735 -- PROTECTED_TYPE_DECLARATION ::=
4736 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4737 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4739 -- Note: protected type declarations are not permitted in Ada 83 mode
4741 -- N_Protected_Type_Declaration
4742 -- Sloc points to PROTECTED
4743 -- Defining_Identifier (Node1)
4744 -- Discriminant_Specifications (List4) (set to No_List if no
4745 -- discriminant part)
4746 -- Interface_List (List2) (set to No_List if none)
4747 -- Protected_Definition (Node3)
4748 -- Corresponding_Body (Node5-Sem)
4750 ---------------------------------------
4751 -- 9.4 Single Protected Declaration --
4752 ---------------------------------------
4754 -- SINGLE_PROTECTED_DECLARATION ::=
4755 -- protected DEFINING_IDENTIFIER
4756 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4758 -- Note: single protected declarations are not allowed in Ada 83 mode
4760 -- N_Single_Protected_Declaration
4761 -- Sloc points to PROTECTED
4762 -- Defining_Identifier (Node1)
4763 -- Interface_List (List2) (set to No_List if none)
4764 -- Protected_Definition (Node3)
4766 -------------------------------
4767 -- 9.4 Protected Definition --
4768 -------------------------------
4770 -- PROTECTED_DEFINITION ::=
4771 -- {PROTECTED_OPERATION_DECLARATION}
4773 -- {PROTECTED_ELEMENT_DECLARATION}]
4774 -- end [protected_IDENTIFIER]
4776 -- N_Protected_Definition
4777 -- Sloc points to first token of protected definition
4778 -- Visible_Declarations (List2)
4779 -- Private_Declarations (List3) (set to No_List if no private part)
4780 -- End_Label (Node4)
4781 -- Has_Priority_Pragma (Flag6-Sem)
4783 ------------------------------------------
4784 -- 9.4 Protected Operation Declaration --
4785 ------------------------------------------
4787 -- PROTECTED_OPERATION_DECLARATION ::=
4788 -- SUBPROGRAM_DECLARATION
4789 -- | ENTRY_DECLARATION
4790 -- | REPRESENTATION_CLAUSE
4792 ----------------------------------------
4793 -- 9.4 Protected Element Declaration --
4794 ----------------------------------------
4796 -- PROTECTED_ELEMENT_DECLARATION ::=
4797 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4799 -------------------------
4800 -- 9.4 Protected Body --
4801 -------------------------
4803 -- PROTECTED_BODY ::=
4804 -- protected body DEFINING_IDENTIFIER is
4805 -- {PROTECTED_OPERATION_ITEM}
4806 -- end [protected_IDENTIFIER];
4808 -- Note: protected bodies are not allowed in Ada 83 mode
4810 -- Gigi restriction: This node never appears
4813 -- Sloc points to PROTECTED
4814 -- Defining_Identifier (Node1)
4815 -- Declarations (List2) protected operation items (and pragmas)
4816 -- End_Label (Node4)
4817 -- Corresponding_Spec (Node5-Sem)
4818 -- Was_Originally_Stub (Flag13-Sem)
4820 -----------------------------------
4821 -- 9.4 Protected Operation Item --
4822 -----------------------------------
4824 -- PROTECTED_OPERATION_ITEM ::=
4825 -- SUBPROGRAM_DECLARATION
4826 -- | SUBPROGRAM_BODY
4828 -- | REPRESENTATION_CLAUSE
4830 ------------------------------
4831 -- 9.5.2 Entry Declaration --
4832 ------------------------------
4834 -- ENTRY_DECLARATION ::=
4835 -- [[not] overriding]
4836 -- entry DEFINING_IDENTIFIER
4837 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4839 -- N_Entry_Declaration
4840 -- Sloc points to ENTRY
4841 -- Defining_Identifier (Node1)
4842 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4843 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4844 -- Corresponding_Body (Node5-Sem)
4845 -- Must_Override (Flag14) set if overriding indicator present
4846 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4848 -- Note: overriding indicator is an Ada 2005 feature
4850 -----------------------------
4851 -- 9.5.2 Accept statement --
4852 -----------------------------
4854 -- ACCEPT_STATEMENT ::=
4855 -- accept entry_DIRECT_NAME
4856 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4857 -- HANDLED_SEQUENCE_OF_STATEMENTS
4858 -- end [entry_IDENTIFIER]];
4860 -- Gigi restriction: This node never appears
4862 -- Note: there are no explicit declarations allowed in an accept
4863 -- statement. However, the implicit declarations for any statement
4864 -- identifiers (labels and block/loop identifiers) are declarations
4865 -- that belong logically to the accept statement, and that is why
4866 -- there is a Declarations field in this node.
4868 -- N_Accept_Statement
4869 -- Sloc points to ACCEPT
4870 -- Entry_Direct_Name (Node1)
4871 -- Entry_Index (Node5) (set to Empty if not present)
4872 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4873 -- Handled_Statement_Sequence (Node4)
4874 -- Declarations (List2) (set to No_List if no declarations)
4876 ------------------------
4877 -- 9.5.2 Entry Index --
4878 ------------------------
4880 -- ENTRY_INDEX ::= EXPRESSION
4882 -----------------------
4883 -- 9.5.2 Entry Body --
4884 -----------------------
4887 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4890 -- HANDLED_SEQUENCE_OF_STATEMENTS
4891 -- end [entry_IDENTIFIER];
4893 -- ENTRY_BARRIER ::= when CONDITION
4895 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4896 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4897 -- too full (it would otherwise have too many fields)
4899 -- Gigi restriction: This node never appears
4902 -- Sloc points to ENTRY
4903 -- Defining_Identifier (Node1)
4904 -- Entry_Body_Formal_Part (Node5)
4905 -- Declarations (List2)
4906 -- Handled_Statement_Sequence (Node4)
4907 -- Activation_Chain_Entity (Node3-Sem)
4909 -----------------------------------
4910 -- 9.5.2 Entry Body Formal Part --
4911 -----------------------------------
4913 -- ENTRY_BODY_FORMAL_PART ::=
4914 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4916 -- Note that an entry body formal part node is present even if it is
4917 -- empty. This reflects the grammar, in which it is the components of
4918 -- the entry body formal part that are optional, not the entry body
4919 -- formal part itself. Also this means that the barrier condition
4920 -- always has somewhere to be stored.
4922 -- Gigi restriction: This node never appears
4924 -- N_Entry_Body_Formal_Part
4925 -- Sloc points to first token
4926 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4927 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4928 -- Condition (Node1) from entry barrier of entry body
4930 --------------------------
4931 -- 9.5.2 Entry Barrier --
4932 --------------------------
4934 -- ENTRY_BARRIER ::= when CONDITION
4936 --------------------------------------
4937 -- 9.5.2 Entry Index Specification --
4938 --------------------------------------
4940 -- ENTRY_INDEX_SPECIFICATION ::=
4941 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4943 -- Gigi restriction: This node never appears
4945 -- N_Entry_Index_Specification
4946 -- Sloc points to FOR
4947 -- Defining_Identifier (Node1)
4948 -- Discrete_Subtype_Definition (Node4)
4950 ---------------------------------
4951 -- 9.5.3 Entry Call Statement --
4952 ---------------------------------
4954 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4956 -- The parser may generate a procedure call for this construct. The
4957 -- semantic pass must correct this misidentification where needed.
4959 -- Gigi restriction: This node never appears
4961 -- N_Entry_Call_Statement
4962 -- Sloc points to first token of name
4964 -- Parameter_Associations (List3) (set to No_List if no
4965 -- actual parameter part)
4966 -- First_Named_Actual (Node4-Sem)
4968 ------------------------------
4969 -- 9.5.4 Requeue Statement --
4970 ------------------------------
4972 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
4974 -- Note: requeue statements are not permitted in Ada 83 mode
4976 -- Gigi restriction: This node never appears
4978 -- N_Requeue_Statement
4979 -- Sloc points to REQUEUE
4981 -- Abort_Present (Flag15)
4983 --------------------------
4984 -- 9.6 Delay Statement --
4985 --------------------------
4987 -- DELAY_STATEMENT ::=
4988 -- DELAY_UNTIL_STATEMENT
4989 -- | DELAY_RELATIVE_STATEMENT
4991 --------------------------------
4992 -- 9.6 Delay Until Statement --
4993 --------------------------------
4995 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
4997 -- Note: delay until statements are not permitted in Ada 83 mode
4999 -- Gigi restriction: This node never appears
5001 -- N_Delay_Until_Statement
5002 -- Sloc points to DELAY
5003 -- Expression (Node3)
5005 -----------------------------------
5006 -- 9.6 Delay Relative Statement --
5007 -----------------------------------
5009 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5011 -- Gigi restriction: This node never appears
5013 -- N_Delay_Relative_Statement
5014 -- Sloc points to DELAY
5015 -- Expression (Node3)
5017 ---------------------------
5018 -- 9.7 Select Statement --
5019 ---------------------------
5021 -- SELECT_STATEMENT ::=
5023 -- | TIMED_ENTRY_CALL
5024 -- | CONDITIONAL_ENTRY_CALL
5025 -- | ASYNCHRONOUS_SELECT
5027 -----------------------------
5028 -- 9.7.1 Selective Accept --
5029 -----------------------------
5031 -- SELECTIVE_ACCEPT ::=
5034 -- SELECT_ALTERNATIVE
5037 -- SELECT_ALTERNATIVE}
5039 -- SEQUENCE_OF_STATEMENTS]
5042 -- Gigi restriction: This node never appears
5044 -- Note: the guard expression, if present, appears in the node for
5045 -- the select alternative.
5047 -- N_Selective_Accept
5048 -- Sloc points to SELECT
5049 -- Select_Alternatives (List1)
5050 -- Else_Statements (List4) (set to No_List if no else part)
5056 -- GUARD ::= when CONDITION =>
5058 -- As noted above, the CONDITION that is part of a GUARD is included
5059 -- in the node for the select alernative for convenience.
5061 -------------------------------
5062 -- 9.7.1 Select Alternative --
5063 -------------------------------
5065 -- SELECT_ALTERNATIVE ::=
5066 -- ACCEPT_ALTERNATIVE
5067 -- | DELAY_ALTERNATIVE
5068 -- | TERMINATE_ALTERNATIVE
5070 -------------------------------
5071 -- 9.7.1 Accept Alternative --
5072 -------------------------------
5074 -- ACCEPT_ALTERNATIVE ::=
5075 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5077 -- Gigi restriction: This node never appears
5079 -- N_Accept_Alternative
5080 -- Sloc points to ACCEPT
5081 -- Accept_Statement (Node2)
5082 -- Condition (Node1) from the guard (set to Empty if no guard present)
5083 -- Statements (List3) (set to Empty_List if no statements)
5084 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5085 -- Accept_Handler_Records (List5-Sem)
5087 ------------------------------
5088 -- 9.7.1 Delay Alternative --
5089 ------------------------------
5091 -- DELAY_ALTERNATIVE ::=
5092 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5094 -- Gigi restriction: This node never appears
5096 -- N_Delay_Alternative
5097 -- Sloc points to DELAY
5098 -- Delay_Statement (Node2)
5099 -- Condition (Node1) from the guard (set to Empty if no guard present)
5100 -- Statements (List3) (set to Empty_List if no statements)
5101 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5103 ----------------------------------
5104 -- 9.7.1 Terminate Alternative --
5105 ----------------------------------
5107 -- TERMINATE_ALTERNATIVE ::= terminate;
5109 -- Gigi restriction: This node never appears
5111 -- N_Terminate_Alternative
5112 -- Sloc points to TERMINATE
5113 -- Condition (Node1) from the guard (set to Empty if no guard present)
5114 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5115 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5117 -----------------------------
5118 -- 9.7.2 Timed Entry Call --
5119 -----------------------------
5121 -- TIMED_ENTRY_CALL ::=
5123 -- ENTRY_CALL_ALTERNATIVE
5125 -- DELAY_ALTERNATIVE
5128 -- Gigi restriction: This node never appears
5130 -- N_Timed_Entry_Call
5131 -- Sloc points to SELECT
5132 -- Entry_Call_Alternative (Node1)
5133 -- Delay_Alternative (Node4)
5135 -----------------------------------
5136 -- 9.7.2 Entry Call Alternative --
5137 -----------------------------------
5139 -- ENTRY_CALL_ALTERNATIVE ::=
5140 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5142 -- PROCEDURE_OR_ENTRY_CALL ::=
5143 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5145 -- Gigi restriction: This node never appears
5147 -- N_Entry_Call_Alternative
5148 -- Sloc points to first token of entry call statement
5149 -- Entry_Call_Statement (Node1)
5150 -- Statements (List3) (set to Empty_List if no statements)
5151 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5153 -----------------------------------
5154 -- 9.7.3 Conditional Entry Call --
5155 -----------------------------------
5157 -- CONDITIONAL_ENTRY_CALL ::=
5159 -- ENTRY_CALL_ALTERNATIVE
5161 -- SEQUENCE_OF_STATEMENTS
5164 -- Gigi restriction: This node never appears
5166 -- N_Conditional_Entry_Call
5167 -- Sloc points to SELECT
5168 -- Entry_Call_Alternative (Node1)
5169 -- Else_Statements (List4)
5171 --------------------------------
5172 -- 9.7.4 Asynchronous Select --
5173 --------------------------------
5175 -- ASYNCHRONOUS_SELECT ::=
5177 -- TRIGGERING_ALTERNATIVE
5182 -- Note: asynchronous select is not permitted in Ada 83 mode
5184 -- Gigi restriction: This node never appears
5186 -- N_Asynchronous_Select
5187 -- Sloc points to SELECT
5188 -- Triggering_Alternative (Node1)
5189 -- Abortable_Part (Node2)
5191 -----------------------------------
5192 -- 9.7.4 Triggering Alternative --
5193 -----------------------------------
5195 -- TRIGGERING_ALTERNATIVE ::=
5196 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5198 -- Gigi restriction: This node never appears
5200 -- N_Triggering_Alternative
5201 -- Sloc points to first token of triggering statement
5202 -- Triggering_Statement (Node1)
5203 -- Statements (List3) (set to Empty_List if no statements)
5204 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5206 ---------------------------------
5207 -- 9.7.4 Triggering Statement --
5208 ---------------------------------
5210 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5212 ---------------------------
5213 -- 9.7.4 Abortable Part --
5214 ---------------------------
5216 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5218 -- Gigi restriction: This node never appears
5221 -- Sloc points to ABORT
5222 -- Statements (List3)
5224 --------------------------
5225 -- 9.8 Abort Statement --
5226 --------------------------
5228 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5230 -- Gigi restriction: This node never appears
5232 -- N_Abort_Statement
5233 -- Sloc points to ABORT
5236 -------------------------
5237 -- 10.1.1 Compilation --
5238 -------------------------
5240 -- COMPILATION ::= {COMPILATION_UNIT}
5242 -- There is no explicit node in the tree for a compilation, since in
5243 -- general the compiler is processing only a single compilation unit
5244 -- at a time. It is possible to parse multiple units in syntax check
5245 -- only mode, but they the trees are discarded in any case.
5247 ------------------------------
5248 -- 10.1.1 Compilation Unit --
5249 ------------------------------
5251 -- COMPILATION_UNIT ::=
5252 -- CONTEXT_CLAUSE LIBRARY_ITEM
5253 -- | CONTEXT_CLAUSE SUBUNIT
5255 -- The N_Compilation_Unit node itself respresents the above syntax.
5256 -- However, there are two additional items not reflected in the above
5257 -- syntax. First we have the global declarations that are added by the
5258 -- code generator. These are outer level declarations (so they cannot
5259 -- be represented as being inside the units). An example is the wrapper
5260 -- subprograms that are created to do ABE checking. As always a list of
5261 -- declarations can contain actions as well (i.e. statements), and such
5262 -- statements are executed as part of the elaboration of the unit. Note
5263 -- that all such declarations are elaborated before the library unit.
5265 -- Similarly, certain actions need to be elaborated at the completion
5266 -- of elaboration of the library unit (notably the statement that sets
5267 -- the Boolean flag indicating that elaboration is complete).
5269 -- The third item not reflected in the syntax is pragmas that appear
5270 -- after the compilation unit. As always pragmas are a problem since
5271 -- they are not part of the formal syntax, but can be stuck into the
5272 -- source following a set of ad hoc rules, and we have to find an ad
5273 -- hoc way of sticking them into the tree. For pragmas that appear
5274 -- before the library unit, we just consider them to be part of the
5275 -- context clause, and pragmas can appear in the Context_Items list
5276 -- of the compilation unit. However, pragmas can also appear after
5277 -- the library item.
5279 -- To deal with all these problems, we create an auxiliary node for
5280 -- a compilation unit, referenced from the N_Compilation_Unit node
5281 -- that contains these three items.
5283 -- N_Compilation_Unit
5284 -- Sloc points to first token of defining unit name
5285 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5286 -- Context_Items (List1) context items and pragmas preceding unit
5287 -- Private_Present (Flag15) set if library unit has private keyword
5288 -- Unit (Node2) library item or subunit
5289 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5290 -- Has_No_Elaboration_Code (Flag17-Sem)
5291 -- Body_Required (Flag13-Sem) set for spec if body is required
5292 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5293 -- First_Inlined_Subprogram (Node3-Sem)
5295 -- N_Compilation_Unit_Aux
5296 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5297 -- Declarations (List2) (set to No_List if no global declarations)
5298 -- Actions (List1) (set to No_List if no actions)
5299 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5300 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5302 --------------------------
5303 -- 10.1.1 Library Item --
5304 --------------------------
5307 -- [private] LIBRARY_UNIT_DECLARATION
5308 -- | LIBRARY_UNIT_BODY
5309 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5311 -- Note: PRIVATE is not allowed in Ada 83 mode
5313 -- There is no explicit node in the tree for library item, instead
5314 -- the declaration or body, and the flag for private if present,
5315 -- appear in the N_Compilation_Unit clause.
5317 ----------------------------------------
5318 -- 10.1.1 Library Unit Declararation --
5319 ----------------------------------------
5321 -- LIBRARY_UNIT_DECLARATION ::=
5322 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5323 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5325 -------------------------------------------------
5326 -- 10.1.1 Library Unit Renaming Declararation --
5327 -------------------------------------------------
5329 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5330 -- PACKAGE_RENAMING_DECLARATION
5331 -- | GENERIC_RENAMING_DECLARATION
5332 -- | SUBPROGRAM_RENAMING_DECLARATION
5334 -------------------------------
5335 -- 10.1.1 Library unit body --
5336 -------------------------------
5338 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5340 ------------------------------
5341 -- 10.1.1 Parent Unit Name --
5342 ------------------------------
5344 -- PARENT_UNIT_NAME ::= NAME
5346 ----------------------------
5347 -- 10.1.2 Context clause --
5348 ----------------------------
5350 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5352 -- The context clause can include pragmas, and any pragmas that appear
5353 -- before the context clause proper (i.e. all configuration pragmas,
5354 -- also appear at the front of this list).
5356 --------------------------
5357 -- 10.1.2 Context_Item --
5358 --------------------------
5360 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5362 -------------------------
5363 -- 10.1.2 With clause --
5364 -------------------------
5367 -- with library_unit_NAME {,library_unit_NAME};
5369 -- A separate With clause is built for each name, so that we have
5370 -- a Corresponding_Spec field for each with'ed spec. The flags
5371 -- First_Name and Last_Name are used to reconstruct the exact
5372 -- source form. When a list of names appears in one with clause,
5373 -- the first name in the list has First_Name set, and the last
5374 -- has Last_Name set. If the with clause has only one name, then
5375 -- both of the flags First_Name and Last_Name are set in this name.
5377 -- Note: in the case of implicit with's that are installed by the
5378 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5379 -- set to Standard_Location, but it is incorrect to test the Sloc
5380 -- to find out if a with clause is implicit, test the flag instead.
5383 -- Sloc points to first token of library unit name
5385 -- Library_Unit (Node4-Sem)
5386 -- Corresponding_Spec (Node5-Sem)
5387 -- First_Name (Flag5) (set to True if first name or only one name)
5388 -- Last_Name (Flag6) (set to True if last name or only one name)
5389 -- Context_Installed (Flag13-Sem)
5390 -- Elaborate_Present (Flag4-Sem)
5391 -- Elaborate_All_Present (Flag14-Sem)
5392 -- Elaborate_All_Desirable (Flag9-Sem)
5393 -- Elaborate_Desirable (Flag11-Sem)
5394 -- Private_Present (Flag15) set if with_clause has private keyword
5395 -- Implicit_With (Flag16-Sem)
5396 -- Limited_Present (Flag17) set if LIMITED is present
5397 -- Limited_View_Installed (Flag18-Sem)
5398 -- Unreferenced_In_Spec (Flag7-Sem)
5399 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5401 -- Note: Limited_Present and Limited_View_Installed give support to
5402 -- Ada 2005 (AI-50217).
5403 -- Similarly, Private_Present gives support to AI-50262.
5405 ----------------------
5406 -- With_Type clause --
5407 ----------------------
5409 -- This is a GNAT extension, used to implement mutually recursive
5410 -- types declared in different packages.
5411 -- Note: this is now obsolete. The functionality of this construct
5412 -- is now implemented by the Ada 2005 Limited_with_Clause.
5414 ---------------------
5415 -- 10.2 Body stub --
5416 ---------------------
5419 -- SUBPROGRAM_BODY_STUB
5420 -- | PACKAGE_BODY_STUB
5422 -- | PROTECTED_BODY_STUB
5424 ----------------------------------
5425 -- 10.1.3 Subprogram Body Stub --
5426 ----------------------------------
5428 -- SUBPROGRAM_BODY_STUB ::=
5429 -- SUBPROGRAM_SPECIFICATION is separate;
5431 -- N_Subprogram_Body_Stub
5432 -- Sloc points to FUNCTION or PROCEDURE
5433 -- Specification (Node1)
5434 -- Library_Unit (Node4-Sem) points to the subunit
5435 -- Corresponding_Body (Node5-Sem)
5437 -------------------------------
5438 -- 10.1.3 Package Body Stub --
5439 -------------------------------
5441 -- PACKAGE_BODY_STUB ::=
5442 -- package body DEFINING_IDENTIFIER is separate;
5444 -- N_Package_Body_Stub
5445 -- Sloc points to PACKAGE
5446 -- Defining_Identifier (Node1)
5447 -- Library_Unit (Node4-Sem) points to the subunit
5448 -- Corresponding_Body (Node5-Sem)
5450 ----------------------------
5451 -- 10.1.3 Task Body Stub --
5452 ----------------------------
5454 -- TASK_BODY_STUB ::=
5455 -- task body DEFINING_IDENTIFIER is separate;
5458 -- Sloc points to TASK
5459 -- Defining_Identifier (Node1)
5460 -- Library_Unit (Node4-Sem) points to the subunit
5461 -- Corresponding_Body (Node5-Sem)
5463 ---------------------------------
5464 -- 10.1.3 Protected Body Stub --
5465 ---------------------------------
5467 -- PROTECTED_BODY_STUB ::=
5468 -- protected body DEFINING_IDENTIFIER is separate;
5470 -- Note: protected body stubs are not allowed in Ada 83 mode
5472 -- N_Protected_Body_Stub
5473 -- Sloc points to PROTECTED
5474 -- Defining_Identifier (Node1)
5475 -- Library_Unit (Node4-Sem) points to the subunit
5476 -- Corresponding_Body (Node5-Sem)
5478 ---------------------
5479 -- 10.1.3 Subunit --
5480 ---------------------
5482 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5485 -- Sloc points to SEPARATE
5486 -- Name (Node2) is the name of the parent unit
5487 -- Proper_Body (Node1) is the subunit body
5488 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5490 ---------------------------------
5491 -- 11.1 Exception Declaration --
5492 ---------------------------------
5494 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5496 -- For consistency with object declarations etc, the parser converts
5497 -- the case of multiple identifiers being declared to a series of
5498 -- declarations in which the expression is copied, using the More_Ids
5499 -- and Prev_Ids flags to remember the souce form as described in the
5500 -- section on "Handling of Defining Identifier Lists".
5502 -- N_Exception_Declaration
5503 -- Sloc points to EXCEPTION
5504 -- Defining_Identifier (Node1)
5505 -- Expression (Node3-Sem)
5506 -- Renaming_Exception (Node2-Sem)
5507 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5508 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5510 ------------------------------------------
5511 -- 11.2 Handled Sequence Of Statements --
5512 ------------------------------------------
5514 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5515 -- SEQUENCE_OF_STATEMENTS
5517 -- EXCEPTION_HANDLER
5518 -- {EXCEPTION_HANDLER}]
5520 -- cleanup_procedure_call (param, param, param, ...);]
5522 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5523 -- used only internally currently, but is considered to be syntactic.
5524 -- At the moment, the only cleanup action allowed is a single call to
5525 -- a parameterless procedure, and the Identifier field of the node is
5526 -- the procedure to be called. Also there is a current restriction
5527 -- that exception handles and a cleanup cannot be present in the same
5528 -- frame, so at least one of Exception_Handlers or the Identifier must
5531 -- Actually, more accurately, this restriction applies to the original
5532 -- source program. In the expanded tree, if the At_End_Proc field is
5533 -- present, then there will also be an exception handler of the form:
5535 -- when all others =>
5539 -- where cleanup is the procedure to be generated. The reason we do
5540 -- this is so that the front end can handle the necessary entries in
5541 -- the exception tables, and other exception handler actions required
5542 -- as part of the normal handling for exception handlers.
5544 -- The AT END cleanup handler protects only the sequence of statements
5545 -- (not the associated declarations of the parent), just like exception
5546 -- handlers. The big difference is that the cleanup procedure is called
5547 -- on either a normal or an abnormal exit from the statement sequence.
5549 -- Note: the list of Exception_Handlers can contain pragmas as well
5550 -- as actual handlers. In practice these pragmas can only occur at
5551 -- the start of the list, since any pragmas occurring later on will
5552 -- be included in the statement list of the corresponding handler.
5554 -- Note: although in the Ada syntax, the sequence of statements in
5555 -- a handled sequence of statements can only contain statements, we
5556 -- allow free mixing of declarations and statements in the resulting
5557 -- expanded tree. This is for example used to deal with the case of
5558 -- a cleanup procedure that must handle declarations as well as the
5559 -- statements of a block.
5561 -- N_Handled_Sequence_Of_Statements
5562 -- Sloc points to first token of first statement
5563 -- Statements (List3)
5564 -- End_Label (Node4) (set to Empty if expander generated)
5565 -- Exception_Handlers (List5) (set to No_List if none present)
5566 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5567 -- First_Real_Statement (Node2-Sem)
5568 -- Zero_Cost_Handling (Flag5-Sem)
5570 -- Note: the parent always contains a Declarations field which contains
5571 -- declarations associated with the handled sequence of statements. This
5572 -- is true even in the case of an accept statement (see description of
5573 -- the N_Accept_Statement node).
5575 -- End_Label refers to the containing construct
5577 -----------------------------
5578 -- 11.2 Exception Handler --
5579 -----------------------------
5581 -- EXCEPTION_HANDLER ::=
5582 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5583 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5584 -- SEQUENCE_OF_STATEMENTS
5586 -- Note: choice parameter specification is not allowed in Ada 83 mode
5588 -- N_Exception_Handler
5589 -- Sloc points to WHEN
5590 -- Choice_Parameter (Node2) (set to Empty if not present)
5591 -- Exception_Choices (List4)
5592 -- Statements (List3)
5593 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5594 -- Zero_Cost_Handling (Flag5-Sem)
5595 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5596 -- Local_Raise_Not_OK (Flag7-Sem)
5597 -- Has_Local_Raise (Flag8-Sem)
5599 ------------------------------------------
5600 -- 11.2 Choice parameter specification --
5601 ------------------------------------------
5603 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5605 ----------------------------
5606 -- 11.2 Exception Choice --
5607 ----------------------------
5609 -- EXCEPTION_CHOICE ::= exception_NAME | others
5611 -- Except in the case of OTHERS, no explicit node appears in the tree
5612 -- for exception choice. Instead the exception name appears directly.
5613 -- An OTHERS choice is represented by a N_Others_Choice node (see
5616 -- Note: for the exception choice created for an at end handler, the
5617 -- exception choice is an N_Others_Choice node with All_Others set.
5619 ---------------------------
5620 -- 11.3 Raise Statement --
5621 ---------------------------
5623 -- RAISE_STATEMENT ::= raise [exception_NAME];
5625 -- In Ada 2005, we have
5627 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5629 -- N_Raise_Statement
5630 -- Sloc points to RAISE
5631 -- Name (Node2) (set to Empty if no exception name present)
5632 -- Expression (Node3) (set to Empty if no expression present)
5634 -------------------------------
5635 -- 12.1 Generic Declaration --
5636 -------------------------------
5638 -- GENERIC_DECLARATION ::=
5639 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5641 ------------------------------------------
5642 -- 12.1 Generic Subprogram Declaration --
5643 ------------------------------------------
5645 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5646 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5648 -- Note: Generic_Formal_Declarations can include pragmas
5650 -- N_Generic_Subprogram_Declaration
5651 -- Sloc points to GENERIC
5652 -- Specification (Node1) subprogram specification
5653 -- Corresponding_Body (Node5-Sem)
5654 -- Generic_Formal_Declarations (List2) from generic formal part
5655 -- Parent_Spec (Node4-Sem)
5657 ---------------------------------------
5658 -- 12.1 Generic Package Declaration --
5659 ---------------------------------------
5661 -- GENERIC_PACKAGE_DECLARATION ::=
5662 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5664 -- Note: when we do generics right, the Activation_Chain_Entity entry
5665 -- for this node can be removed (since the expander won't see generic
5666 -- units any more)???.
5668 -- Note: Generic_Formal_Declarations can include pragmas
5670 -- N_Generic_Package_Declaration
5671 -- Sloc points to GENERIC
5672 -- Specification (Node1) package specification
5673 -- Corresponding_Body (Node5-Sem)
5674 -- Generic_Formal_Declarations (List2) from generic formal part
5675 -- Parent_Spec (Node4-Sem)
5676 -- Activation_Chain_Entity (Node3-Sem)
5678 -------------------------------
5679 -- 12.1 Generic Formal Part --
5680 -------------------------------
5682 -- GENERIC_FORMAL_PART ::=
5683 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5685 ------------------------------------------------
5686 -- 12.1 Generic Formal Parameter Declaration --
5687 ------------------------------------------------
5689 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5690 -- FORMAL_OBJECT_DECLARATION
5691 -- | FORMAL_TYPE_DECLARATION
5692 -- | FORMAL_SUBPROGRAM_DECLARATION
5693 -- | FORMAL_PACKAGE_DECLARATION
5695 ---------------------------------
5696 -- 12.3 Generic Instantiation --
5697 ---------------------------------
5699 -- GENERIC_INSTANTIATION ::=
5700 -- package DEFINING_PROGRAM_UNIT_NAME is
5701 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5702 -- | [[not] overriding]
5703 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5704 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5705 -- | [[not] overriding]
5706 -- function DEFINING_DESIGNATOR is
5707 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5709 -- N_Package_Instantiation
5710 -- Sloc points to PACKAGE
5711 -- Defining_Unit_Name (Node1)
5713 -- Generic_Associations (List3) (set to No_List if no
5714 -- generic actual part)
5715 -- Parent_Spec (Node4-Sem)
5716 -- Instance_Spec (Node5-Sem)
5717 -- ABE_Is_Certain (Flag18-Sem)
5719 -- N_Procedure_Instantiation
5720 -- Sloc points to PROCEDURE
5721 -- Defining_Unit_Name (Node1)
5723 -- Parent_Spec (Node4-Sem)
5724 -- Generic_Associations (List3) (set to No_List if no
5725 -- generic actual part)
5726 -- Instance_Spec (Node5-Sem)
5727 -- Must_Override (Flag14) set if overriding indicator present
5728 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5729 -- ABE_Is_Certain (Flag18-Sem)
5731 -- N_Function_Instantiation
5732 -- Sloc points to FUNCTION
5733 -- Defining_Unit_Name (Node1)
5735 -- Generic_Associations (List3) (set to No_List if no
5736 -- generic actual part)
5737 -- Parent_Spec (Node4-Sem)
5738 -- Instance_Spec (Node5-Sem)
5739 -- Must_Override (Flag14) set if overriding indicator present
5740 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5741 -- ABE_Is_Certain (Flag18-Sem)
5743 -- Note: overriding indicator is an Ada 2005 feature
5745 ------------------------------
5746 -- 12.3 Generic Actual Part --
5747 ------------------------------
5749 -- GENERIC_ACTUAL_PART ::=
5750 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5752 -------------------------------
5753 -- 12.3 Generic Association --
5754 -------------------------------
5756 -- GENERIC_ASSOCIATION ::=
5757 -- [generic_formal_parameter_SELECTOR_NAME =>]
5759 -- Note: unlike the procedure call case, a generic association node
5760 -- is generated for every association, even if no formal is present.
5761 -- In this case the parser will leave the Selector_Name field set
5762 -- to Empty, to be filled in later by the semantic pass.
5764 -- In Ada 2005, a formal may be associated with a box, if the
5765 -- association is part of the list of actuals for a formal package.
5766 -- If the association is given by OTHERS => <>, the association is
5767 -- an N_Others_Choice.
5769 -- N_Generic_Association
5770 -- Sloc points to first token of generic association
5771 -- Selector_Name (Node2) (set to Empty if no formal
5772 -- parameter selector name)
5773 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5774 -- Box_Present (Flag15) (for formal_package associations with a box)
5776 ---------------------------------------------
5777 -- 12.3 Explicit Generic Actual Parameter --
5778 ---------------------------------------------
5780 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5781 -- EXPRESSION | variable_NAME | subprogram_NAME
5782 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5784 -------------------------------------
5785 -- 12.4 Formal Object Declaration --
5786 -------------------------------------
5788 -- FORMAL_OBJECT_DECLARATION ::=
5789 -- DEFINING_IDENTIFIER_LIST :
5790 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5791 -- | DEFINING_IDENTIFIER_LIST :
5792 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5794 -- Although the syntax allows multiple identifiers in the list, the
5795 -- semantics is as though successive declarations were given with
5796 -- identical type definition and expression components. To simplify
5797 -- semantic processing, the parser represents a multiple declaration
5798 -- case as a sequence of single declarations, using the More_Ids and
5799 -- Prev_Ids flags to preserve the original source form as described
5800 -- in the section on "Handling of Defining Identifier Lists".
5802 -- N_Formal_Object_Declaration
5803 -- Sloc points to first identifier
5804 -- Defining_Identifier (Node1)
5805 -- In_Present (Flag15)
5806 -- Out_Present (Flag17)
5807 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5808 -- Subtype_Mark (Node4) (set to Empty if not present)
5809 -- Access_Definition (Node3) (set to Empty if not present)
5810 -- Default_Expression (Node5) (set to Empty if no default expression)
5811 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5812 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5814 -----------------------------------
5815 -- 12.5 Formal Type Declaration --
5816 -----------------------------------
5818 -- FORMAL_TYPE_DECLARATION ::=
5819 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5820 -- is FORMAL_TYPE_DEFINITION;
5822 -- N_Formal_Type_Declaration
5823 -- Sloc points to TYPE
5824 -- Defining_Identifier (Node1)
5825 -- Formal_Type_Definition (Node3)
5826 -- Discriminant_Specifications (List4) (set to No_List if no
5827 -- discriminant part)
5828 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5830 ----------------------------------
5831 -- 12.5 Formal type definition --
5832 ----------------------------------
5834 -- FORMAL_TYPE_DEFINITION ::=
5835 -- FORMAL_PRIVATE_TYPE_DEFINITION
5836 -- | FORMAL_DERIVED_TYPE_DEFINITION
5837 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5838 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5839 -- | FORMAL_MODULAR_TYPE_DEFINITION
5840 -- | FORMAL_FLOATING_POINT_DEFINITION
5841 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5842 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5843 -- | FORMAL_ARRAY_TYPE_DEFINITION
5844 -- | FORMAL_ACCESS_TYPE_DEFINITION
5845 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5847 ---------------------------------------------
5848 -- 12.5.1 Formal Private Type Definition --
5849 ---------------------------------------------
5851 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5852 -- [[abstract] tagged] [limited] private
5854 -- Note: TAGGED is not allowed in Ada 83 mode
5856 -- N_Formal_Private_Type_Definition
5857 -- Sloc points to PRIVATE
5858 -- Abstract_Present (Flag4)
5859 -- Tagged_Present (Flag15)
5860 -- Limited_Present (Flag17)
5862 --------------------------------------------
5863 -- 12.5.1 Formal Derived Type Definition --
5864 --------------------------------------------
5866 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5867 -- [abstract] [limited | synchronized]
5868 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5869 -- Note: this construct is not allowed in Ada 83 mode
5871 -- N_Formal_Derived_Type_Definition
5872 -- Sloc points to NEW
5873 -- Subtype_Mark (Node4)
5874 -- Private_Present (Flag15)
5875 -- Abstract_Present (Flag4)
5876 -- Limited_Present (Flag17)
5877 -- Synchronized_Present (Flag7)
5878 -- Interface_List (List2) (set to No_List if none)
5880 ---------------------------------------------
5881 -- 12.5.2 Formal Discrete Type Definition --
5882 ---------------------------------------------
5884 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5886 -- N_Formal_Discrete_Type_Definition
5889 ---------------------------------------------------
5890 -- 12.5.2 Formal Signed Integer Type Definition --
5891 ---------------------------------------------------
5893 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5895 -- N_Formal_Signed_Integer_Type_Definition
5896 -- Sloc points to RANGE
5898 --------------------------------------------
5899 -- 12.5.2 Formal Modular Type Definition --
5900 --------------------------------------------
5902 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5904 -- N_Formal_Modular_Type_Definition
5905 -- Sloc points to MOD
5907 ----------------------------------------------
5908 -- 12.5.2 Formal Floating Point Definition --
5909 ----------------------------------------------
5911 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5913 -- N_Formal_Floating_Point_Definition
5914 -- Sloc points to DIGITS
5916 ----------------------------------------------------
5917 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5918 ----------------------------------------------------
5920 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5922 -- N_Formal_Ordinary_Fixed_Point_Definition
5923 -- Sloc points to DELTA
5925 ---------------------------------------------------
5926 -- 12.5.2 Formal Decimal Fixed Point Definition --
5927 ---------------------------------------------------
5929 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5931 -- Note: formal decimal fixed point definition not allowed in Ada 83
5933 -- N_Formal_Decimal_Fixed_Point_Definition
5934 -- Sloc points to DELTA
5936 ------------------------------------------
5937 -- 12.5.3 Formal Array Type Definition --
5938 ------------------------------------------
5940 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5942 -------------------------------------------
5943 -- 12.5.4 Formal Access Type Definition --
5944 -------------------------------------------
5946 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5948 ----------------------------------------------
5949 -- 12.5.5 Formal Interface Type Definition --
5950 ----------------------------------------------
5952 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
5954 -----------------------------------------
5955 -- 12.6 Formal Subprogram Declaration --
5956 -----------------------------------------
5958 -- FORMAL_SUBPROGRAM_DECLARATION ::=
5959 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
5960 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
5962 --------------------------------------------------
5963 -- 12.6 Formal Concrete Subprogram Declaration --
5964 --------------------------------------------------
5966 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
5967 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5969 -- N_Formal_Concrete_Subprogram_Declaration
5970 -- Sloc points to WITH
5971 -- Specification (Node1)
5972 -- Default_Name (Node2) (set to Empty if no subprogram default)
5973 -- Box_Present (Flag15)
5975 -- Note: if no subprogram default is present, then Name is set
5976 -- to Empty, and Box_Present is False.
5978 --------------------------------------------------
5979 -- 12.6 Formal Abstract Subprogram Declaration --
5980 --------------------------------------------------
5982 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
5983 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
5985 -- N_Formal_Abstract_Subprogram_Declaration
5986 -- Sloc points to WITH
5987 -- Specification (Node1)
5988 -- Default_Name (Node2) (set to Empty if no subprogram default)
5989 -- Box_Present (Flag15)
5991 -- Note: if no subprogram default is present, then Name is set
5992 -- to Empty, and Box_Present is False.
5994 ------------------------------
5995 -- 12.6 Subprogram Default --
5996 ------------------------------
5998 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6000 -- There is no separate node in the tree for a subprogram default.
6001 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6002 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6003 -- default name or box indication, as needed.
6005 ------------------------
6006 -- 12.6 Default Name --
6007 ------------------------
6009 -- DEFAULT_NAME ::= NAME
6011 --------------------------------------
6012 -- 12.7 Formal Package Declaration --
6013 --------------------------------------
6015 -- FORMAL_PACKAGE_DECLARATION ::=
6016 -- with package DEFINING_IDENTIFIER
6017 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6019 -- Note: formal package declarations not allowed in Ada 83 mode
6021 -- N_Formal_Package_Declaration
6022 -- Sloc points to WITH
6023 -- Defining_Identifier (Node1)
6025 -- Generic_Associations (List3) (set to No_List if (<>) case or
6026 -- empty generic actual part)
6027 -- Box_Present (Flag15)
6028 -- Instance_Spec (Node5-Sem)
6029 -- ABE_Is_Certain (Flag18-Sem)
6031 --------------------------------------
6032 -- 12.7 Formal Package Actual Part --
6033 --------------------------------------
6035 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6037 -- | [GENERIC_ACTUAL_PART]
6038 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6040 -- FORMAL_PACKAGE_ASSOCIATION ::=
6041 -- GENERIC_ASSOCIATION
6042 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6044 -- There is no explicit node in the tree for a formal package actual
6045 -- part. Instead the information appears in the parent node (i.e. the
6046 -- formal package declaration node itself).
6048 -- There is no explicit node for a formal package association. All of
6049 -- them are represented either by a generic association, possibly with
6050 -- Box_Present, or by an N_Others_Choice.
6052 ---------------------------------
6053 -- 13.1 Representation clause --
6054 ---------------------------------
6056 -- REPRESENTATION_CLAUSE ::=
6057 -- ATTRIBUTE_DEFINITION_CLAUSE
6058 -- | ENUMERATION_REPRESENTATION_CLAUSE
6059 -- | RECORD_REPRESENTATION_CLAUSE
6062 ----------------------
6063 -- 13.1 Local Name --
6064 ----------------------
6068 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6069 -- | library_unit_NAME
6071 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6072 -- as an attribute reference, which has essentially the same form.
6074 ---------------------------------------
6075 -- 13.3 Attribute definition clause --
6076 ---------------------------------------
6078 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6079 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6080 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6082 -- In Ada 83, the expression must be a simple expression and the
6083 -- local name must be a direct name.
6085 -- Note: the only attribute definition clause that is processed by
6086 -- gigi is an address clause. For all other cases, the information
6087 -- is extracted by the front end and either results in setting entity
6088 -- information, e.g. Esize for the Size clause, or in appropriate
6089 -- expansion actions (e.g. in the case of Storage_Size).
6091 -- For an address clause, Gigi constructs the appropriate addressing
6092 -- code. It also ensures that no aliasing optimizations are made
6093 -- for the object for which the address clause appears.
6095 -- Note: for an address clause used to achieve an overlay:
6099 -- for B'Address use A'Address;
6101 -- the above rule means that Gigi will ensure that no optimizations
6102 -- will be made for B that would violate the implementation advice
6103 -- of RM 13.3(19). However, this advice applies only to B and not
6104 -- to A, which seems unfortunate. The GNAT front end will mark the
6105 -- object A as volatile to also prevent unwanted optimization
6106 -- assumptions based on no aliasing being made for B.
6108 -- N_Attribute_Definition_Clause
6109 -- Sloc points to FOR
6110 -- Name (Node2) the local name
6111 -- Chars (Name1) the identifier name from the attribute designator
6112 -- Expression (Node3) the expression or name
6113 -- Entity (Node4-Sem)
6114 -- Next_Rep_Item (Node5-Sem)
6115 -- From_At_Mod (Flag4-Sem)
6116 -- Check_Address_Alignment (Flag11-Sem)
6118 ---------------------------------------------
6119 -- 13.4 Enumeration representation clause --
6120 ---------------------------------------------
6122 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6123 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6125 -- In Ada 83, the name must be a direct name
6127 -- N_Enumeration_Representation_Clause
6128 -- Sloc points to FOR
6129 -- Identifier (Node1) direct name
6130 -- Array_Aggregate (Node3)
6131 -- Next_Rep_Item (Node5-Sem)
6133 ---------------------------------
6134 -- 13.4 Enumeration aggregate --
6135 ---------------------------------
6137 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6139 ------------------------------------------
6140 -- 13.5.1 Record representation clause --
6141 ------------------------------------------
6143 -- RECORD_REPRESENTATION_CLAUSE ::=
6144 -- for first_subtype_LOCAL_NAME use
6145 -- record [MOD_CLAUSE]
6146 -- {COMPONENT_CLAUSE}
6149 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6150 -- replaced by a corresponding Alignment attribute definition clause).
6152 -- Note: Component_Clauses can include pragmas
6154 -- N_Record_Representation_Clause
6155 -- Sloc points to FOR
6156 -- Identifier (Node1) direct name
6157 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6158 -- Component_Clauses (List3)
6159 -- Next_Rep_Item (Node5-Sem)
6161 ------------------------------
6162 -- 13.5.1 Component clause --
6163 ------------------------------
6165 -- COMPONENT_CLAUSE ::=
6166 -- component_LOCAL_NAME at POSITION
6167 -- range FIRST_BIT .. LAST_BIT;
6169 -- N_Component_Clause
6170 -- Sloc points to AT
6171 -- Component_Name (Node1) points to Name or Attribute_Reference
6173 -- First_Bit (Node3)
6176 ----------------------
6177 -- 13.5.1 Position --
6178 ----------------------
6180 -- POSITION ::= static_EXPRESSION
6182 -----------------------
6183 -- 13.5.1 First_Bit --
6184 -----------------------
6186 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6188 ----------------------
6189 -- 13.5.1 Last_Bit --
6190 ----------------------
6192 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6194 --------------------------
6195 -- 13.8 Code statement --
6196 --------------------------
6198 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6200 -- Note: in GNAT, the qualified expression has the form
6202 -- Asm_Insn'(Asm (...));
6204 -- See package System.Machine_Code in file s-maccod.ads for details on
6205 -- the allowed parameters to Asm. There are two ways this node can
6206 -- arise, as a code statement, in which case the expression is the
6207 -- qualified expression, or as a result of the expansion of an intrinsic
6208 -- call to the Asm or Asm_Input procedure.
6211 -- Sloc points to first token of the expression
6212 -- Expression (Node3)
6214 -- Note: package Exp_Code contains an abstract functional interface
6215 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6217 ------------------------
6218 -- 13.12 Restriction --
6219 ------------------------
6222 -- restriction_IDENTIFIER
6223 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6225 -- There is no explicit node for restrictions. Instead the restriction
6226 -- appears in normal pragma syntax as a pragma argument association,
6227 -- which has the same syntactic form.
6229 --------------------------
6230 -- B.2 Shift Operators --
6231 --------------------------
6233 -- Calls to the intrinsic shift functions are converted to one of
6234 -- the following shift nodes, which have the form of normal binary
6235 -- operator names. Note that for a given shift operation, one node
6236 -- covers all possible types, as for normal operators.
6238 -- Note: it is perfectly permissible for the expander to generate
6239 -- shift operation nodes directly, in which case they will be analyzed
6240 -- and parsed in the usual manner.
6242 -- Sprint syntax: shift-function-name!(expr, count)
6244 -- Note: the Left_Opnd field holds the first argument (the value to
6245 -- be shifted). The Right_Opnd field holds the second argument (the
6246 -- shift count). The Chars field is the name of the intrinsic function.
6249 -- Sloc points to the function name
6250 -- plus fields for binary operator
6251 -- plus fields for expression
6252 -- Shift_Count_OK (Flag4-Sem)
6254 -- N_Op_Rotate_Right
6255 -- Sloc points to the function name
6256 -- plus fields for binary operator
6257 -- plus fields for expression
6258 -- Shift_Count_OK (Flag4-Sem)
6261 -- Sloc points to the function name
6262 -- plus fields for binary operator
6263 -- plus fields for expression
6264 -- Shift_Count_OK (Flag4-Sem)
6266 -- N_Op_Shift_Right_Arithmetic
6267 -- Sloc points to the function name
6268 -- plus fields for binary operator
6269 -- plus fields for expression
6270 -- Shift_Count_OK (Flag4-Sem)
6273 -- Sloc points to the function name
6274 -- plus fields for binary operator
6275 -- plus fields for expression
6276 -- Shift_Count_OK (Flag4-Sem)
6278 --------------------------
6279 -- Obsolescent Features --
6280 --------------------------
6282 -- The syntax descriptions and tree nodes for obsolescent features are
6283 -- grouped together, corresponding to their location in appendix I in
6284 -- the RM. However, parsing and semantic analysis for these constructs
6285 -- is located in an appropriate chapter (see individual notes).
6287 ---------------------------
6288 -- J.3 Delta Constraint --
6289 ---------------------------
6291 -- Note: the parse routine for this construct is located in section
6292 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6293 -- where delta constraint logically belongs.
6295 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6297 -- N_Delta_Constraint
6298 -- Sloc points to DELTA
6299 -- Delta_Expression (Node3)
6300 -- Range_Constraint (Node4) (set to Empty if not present)
6302 --------------------
6304 --------------------
6306 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6308 -- Note: the parse routine for this construct is located in Par-Ch13,
6309 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6310 -- belongs if it were not obsolescent.
6312 -- Note: in Ada 83 the expression must be a simple expression
6314 -- Gigi restriction: This node never appears, it is rewritten as an
6315 -- address attribute definition clause.
6318 -- Sloc points to FOR
6319 -- Identifier (Node1)
6320 -- Expression (Node3)
6322 ---------------------
6323 -- J.8 Mod clause --
6324 ---------------------
6326 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6328 -- Note: the parse routine for this construct is located in Par-Ch13,
6329 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6330 -- belongs if it were not obsolescent.
6332 -- Note: in Ada 83, the expression must be a simple expression
6334 -- Gigi restriction: this node never appears. It is replaced
6335 -- by a corresponding Alignment attribute definition clause.
6337 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6338 -- its name has "clause" in it. This is rather strange, but is quite
6339 -- definitely specified. The pragmas before are collected in the
6340 -- Pragmas_Before field of the mod clause node itself, and pragmas
6341 -- after are simply swallowed up in the list of component clauses.
6344 -- Sloc points to AT
6345 -- Expression (Node3)
6346 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6348 --------------------
6349 -- Semantic Nodes --
6350 --------------------
6352 -- These semantic nodes are used to hold additional semantic information.
6353 -- They are inserted into the tree as a result of semantic processing.
6354 -- Although there are no legitimate source syntax constructions that
6355 -- correspond directly to these nodes, we need a source syntax for the
6356 -- reconstructed tree printed by Sprint, and the node descriptions here
6357 -- show this syntax.
6359 ----------------------------
6360 -- Conditional Expression --
6361 ----------------------------
6363 -- This node is used to represent an expression corresponding to the
6364 -- C construct (condition ? then-expression : else_expression), where
6365 -- Expressions is a three element list, whose first expression is the
6366 -- condition, and whose second and third expressions are the then and
6367 -- else expressions respectively.
6369 -- Note: the Then_Actions and Else_Actions fields are always set to
6370 -- No_List in the tree passed to Gigi. These fields are used only
6371 -- for temporary processing purposes in the expander.
6373 -- Sprint syntax: (if expr then expr else expr)
6375 -- N_Conditional_Expression
6376 -- Sloc points to related node
6377 -- Expressions (List1)
6378 -- Then_Actions (List2-Sem)
6379 -- Else_Actions (List3-Sem)
6380 -- plus fields for expression
6382 -- Note: in the case where a debug source file is generated, the Sloc
6383 -- for this node points to the IF keyword in the Sprint file output.
6389 -- The N_Expanded_Name node is used to represent a selected component
6390 -- name that has been resolved to an expanded name. The semantic phase
6391 -- replaces N_Selected_Component nodes that represent names by the use
6392 -- of this node, leaving the N_Selected_Component node used only when
6393 -- the prefix is a record or protected type.
6395 -- The fields of the N_Expanded_Name node are layed out identically
6396 -- to those of the N_Selected_Component node, allowing conversion of
6397 -- an expanded name node to a selected component node to be done
6398 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6400 -- There is no special sprint syntax for an expanded name
6403 -- Sloc points to the period
6404 -- Chars (Name1) copy of Chars field of selector name
6406 -- Selector_Name (Node2)
6407 -- Entity (Node4-Sem)
6408 -- Associated_Node (Node4-Sem)
6409 -- Redundant_Use (Flag13-Sem)
6410 -- Has_Private_View (Flag11-Sem) set in generic units.
6411 -- plus fields for expression
6413 --------------------
6414 -- Free Statement --
6415 --------------------
6417 -- The N_Free_Statement node is generated as a result of a call to an
6418 -- instantiation of Unchecked_Deallocation. The instantiation of this
6419 -- generic is handled specially and generates this node directly.
6421 -- Sprint syntax: free expression
6424 -- Sloc is copied from the unchecked deallocation call
6425 -- Expression (Node3) argument to unchecked deallocation call
6426 -- Storage_Pool (Node1-Sem)
6427 -- Procedure_To_Call (Node2-Sem)
6428 -- Actual_Designated_Subtype (Node4-Sem)
6430 -- Note: in the case where a debug source file is generated, the Sloc
6431 -- for this node points to the FREE keyword in the Sprint file output.
6437 -- This node marks the point in a declarative part at which an entity
6438 -- declared therein becomes frozen. The expander places initialization
6439 -- procedures for types at those points. Gigi uses the freezing point
6440 -- to elaborate entities that may depend on previous private types.
6442 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6443 -- a full description of the use of this node.
6445 -- The Entity field points back to the entity for the type (whose
6446 -- Freeze_Node field points back to this freeze node).
6448 -- The Actions field contains a list of declarations and statements
6449 -- generated by the expander which are associated with the freeze
6450 -- node, and are elaborated as though the freeze node were replaced
6451 -- by this sequence of actions.
6453 -- Note: the Sloc field in the freeze node references a construct
6454 -- associated with the freezing point. This is used for posting
6455 -- messages in some error/warning situations, e.g. the case where
6456 -- a primitive operation of a tagged type is declared too late.
6458 -- Sprint syntax: freeze entity-name [
6463 -- Sloc points near freeze point (see above special note)
6464 -- Entity (Node4-Sem)
6465 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6466 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6467 -- Actions (List1) (set to No_List if no freeze actions)
6468 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6470 -- The Actions field holds actions associated with the freeze. These
6471 -- actions are elaborated at the point where the type is frozen.
6473 -- Note: in the case where a debug source file is generated, the Sloc
6474 -- for this node points to the FREEZE keyword in the Sprint file output.
6476 --------------------------------
6477 -- Implicit Label Declaration --
6478 --------------------------------
6480 -- An implicit label declaration is created for every occurrence of a
6481 -- label on a statement or a label on a block or loop. It is chained
6482 -- in the declarations of the innermost enclosing block as specified
6483 -- in RM section 5.1 (3).
6485 -- The Defining_Identifier is the actual identifier for the
6486 -- statement identifier. Note that the occurrence of the label
6487 -- is a reference, NOT the defining occurrence. The defining
6488 -- occurrence occurs at the head of the innermost enclosing
6489 -- block, and is represented by this node.
6491 -- Note: from the grammar, this might better be called an implicit
6492 -- statement identifier declaration, but the term we choose seems
6493 -- friendlier, since at least informally statement identifiers are
6494 -- called labels in both cases (i.e. when used in labels, and when
6495 -- used as the identifiers of blocks and loops).
6497 -- Note: although this is logically a semantic node, since it does
6498 -- not correspond directly to a source syntax construction, these
6499 -- nodes are actually created by the parser in a post pass done just
6500 -- after parsing is complete, before semantic analysis is started (see
6501 -- the Par.Labl subunit in file par-labl.adb).
6503 -- Sprint syntax: labelname : label;
6505 -- N_Implicit_Label_Declaration
6506 -- Sloc points to the << of the label
6507 -- Defining_Identifier (Node1)
6508 -- Label_Construct (Node2-Sem)
6510 -- Note: in the case where a debug source file is generated, the Sloc
6511 -- for this node points to the label name in the generated declaration.
6513 ---------------------
6514 -- Itype_Reference --
6515 ---------------------
6517 -- This node is used to create a reference to an Itype. The only
6518 -- purpose is to make sure that the Itype is defined if this is the
6521 -- A typical use of this node is when an Itype is to be referenced in
6522 -- two branches of an if statement. In this case it is important that
6523 -- the first use of the Itype not be inside the conditional, since
6524 -- then it might not be defined if the wrong branch of the if is
6525 -- taken in the case where the definition generates elaboration code.
6527 -- The Itype field points to the referenced Itype
6529 -- sprint syntax: reference itype-name
6531 -- N_Itype_Reference
6532 -- Sloc points to the node generating the reference
6533 -- Itype (Node1-Sem)
6535 -- Note: in the case where a debug source file is generated, the Sloc
6536 -- for this node points to the REFERENCE keyword in the file output.
6538 ---------------------
6539 -- Raise_xxx_Error --
6540 ---------------------
6542 -- One of these nodes is created during semantic analysis to replace
6543 -- a node for an expression that is determined to definitely raise
6544 -- the corresponding exception.
6546 -- The N_Raise_xxx_Error node may also stand alone in place
6547 -- of a declaration or statement, in which case it simply causes
6548 -- the exception to be raised (i.e. it is equivalent to a raise
6549 -- statement that raises the corresponding exception). This use
6550 -- is distinguished by the fact that the Etype in this case is
6551 -- Standard_Void_Type, In the subexprssion case, the Etype is the
6552 -- same as the type of the subexpression which it replaces.
6554 -- If Condition is empty, then the raise is unconditional. If the
6555 -- Condition field is non-empty, it is a boolean expression which
6556 -- is first evaluated, and the exception is raised only if the
6557 -- value of the expression is True. In the unconditional case, the
6558 -- creation of this node is usually accompanied by a warning message
6559 -- error. The creation of this node will usually be accompanied by a
6560 -- message (unless it appears within the right operand of a short
6561 -- circuit form whose left argument is static and decisively
6562 -- eliminates elaboration of the raise operation. The condition field
6563 -- can ONLY be present when the node is used as a statement form, it
6564 -- may NOT be present in the case where the node appears within an
6567 -- The exception is generated with a message that contains the
6568 -- file name and line number, and then appended text. The Reason
6569 -- code shows the text to be added. The Reason code is an element
6570 -- of the type Types.RT_Exception_Code, and indicates both the
6571 -- message to be added, and the exception to be raised (which must
6572 -- match the node type). The value is stored by storing a Uint which
6573 -- is the Pos value of the enumeration element in this type.
6575 -- Gigi restriction: This expander ensures that the type of the
6576 -- Condition field is always Standard.Boolean, even if the type
6577 -- in the source is some non-standard boolean type.
6579 -- Sprint syntax: [xxx_error "msg"]
6580 -- or: [xxx_error when condition "msg"]
6582 -- N_Raise_Constraint_Error
6583 -- Sloc references related construct
6584 -- Condition (Node1) (set to Empty if no condition)
6586 -- plus fields for expression
6588 -- N_Raise_Program_Error
6589 -- Sloc references related construct
6590 -- Condition (Node1) (set to Empty if no condition)
6592 -- plus fields for expression
6594 -- N_Raise_Storage_Error
6595 -- Sloc references related construct
6596 -- Condition (Node1) (set to Empty if no condition)
6598 -- plus fields for expression
6600 -- Note: Sloc is copied from the expression generating the exception.
6601 -- In the case where a debug source file is generated, the Sloc for
6602 -- this node points to the left bracket in the Sprint file output.
6604 -- Note: the back end may be required to translate these nodes into
6605 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6607 ---------------------------------------------
6608 -- Optimization of Exception Raise to Goto --
6609 ---------------------------------------------
6611 -- In some cases, the front end will determine that any exception raised
6612 -- by the back end for a certain exception should be transformed into a
6615 -- There are three kinds of exceptions raised by the back end (note that
6616 -- for this purpose we consider gigi to be part of the back end in the
6619 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6620 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6621 -- 3. Other cases not specifically marked by the front end
6623 -- Normally all such exceptions are translated into calls to the proper
6624 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6625 -- and the exception message.
6627 -- The front end may determine that for a particular sequence of code,
6628 -- exceptions in any of these three categories for a particular builtin
6629 -- exception should result in a goto, rather than a call to Rcheck_xx.
6630 -- The exact sequence to be generated is:
6632 -- Local_Raise (exception'Identity);
6635 -- The front end marks such a sequence of code by bracketing it with
6636 -- push and pop nodes:
6638 -- N_Push_xxx_Label (referencing the label)
6640 -- (code where transformation is expected for exception xxx)
6644 -- The use of push/pop reflects the fact that such regions can properly
6645 -- nest, and one special case is a subregion in which no transformation
6646 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6647 -- Exception_Label field is Empty.
6649 -- N_Push_Constraint_Error_Label
6650 -- Sloc references first statement in region covered
6651 -- Exception_Label (Node5-Sem)
6653 -- N_Push_Program_Error_Label
6654 -- Sloc references first statement in region covered
6655 -- Exception_Label (Node5-Sem)
6657 -- N_Push_Storage_Error_Label
6658 -- Sloc references first statement in region covered
6659 -- Exception_Label (Node5-Sem)
6661 -- N_Pop_Constraint_Error_Label
6662 -- Sloc references last statement in region covered
6664 -- N_Pop_Program_Error_Label
6665 -- Sloc references last statement in region covered
6667 -- N_Pop_Storage_Error_Label
6668 -- Sloc references last statement in region covered
6674 -- For a number of purposes, we need to construct references to objects.
6675 -- These references are subsequently treated as normal access values.
6676 -- An example is the construction of the parameter block passed to a
6677 -- task entry. The N_Reference node is provided for this purpose. It is
6678 -- similar in effect to the use of the Unrestricted_Access attribute,
6679 -- and like Unrestricted_Access can be applied to objects which would
6680 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6681 -- objects which are not aliased, and slices). In addition it can be
6682 -- applied to composite type values as well as objects, including string
6683 -- values and aggregates.
6685 -- Note: we use the Prefix field for this expression so that the
6686 -- resulting node can be treated using common code with the attribute
6687 -- nodes for the 'Access and related attributes. Logically it would make
6688 -- more sense to call it an Expression field, but then we would have to
6689 -- special case the treatment of the N_Reference node.
6691 -- Sprint syntax: prefix'reference
6694 -- Sloc is copied from the expression
6696 -- plus fields for expression
6698 -- Note: in the case where a debug source file is generated, the Sloc
6699 -- for this node points to the quote in the Sprint file output.
6701 ---------------------
6702 -- Subprogram_Info --
6703 ---------------------
6705 -- This node generates the appropriate Subprogram_Info value for a
6706 -- given procedure. See Ada.Exceptions for further details
6708 -- Sprint syntax: subprog'subprogram_info
6710 -- N_Subprogram_Info
6711 -- Sloc points to the entity for the procedure
6712 -- Identifier (Node1) identifier referencing the procedure
6713 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6715 -- Note: in the case where a debug source file is generated, the Sloc
6716 -- for this node points to the quote in the Sprint file output.
6718 --------------------------
6719 -- Unchecked Expression --
6720 --------------------------
6722 -- An unchecked expression is one that must be analyzed and resolved
6723 -- with all checks off, regardless of the current setting of scope
6726 -- Sprint syntax: `(expression)
6728 -- Note: this node is always removed from the tree (and replaced by
6729 -- its constituent expression) on completion of analysis, so it only
6730 -- appears in intermediate trees, and will never be seen by Gigi.
6732 -- N_Unchecked_Expression
6733 -- Sloc is a copy of the Sloc of the expression
6734 -- Expression (Node3)
6735 -- plus fields for expression
6737 -- Note: in the case where a debug source file is generated, the Sloc
6738 -- for this node points to the back quote in the Sprint file output.
6740 -------------------------------
6741 -- Unchecked Type Conversion --
6742 -------------------------------
6744 -- An unchecked type conversion node represents the semantic action
6745 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6746 -- It is generated as a result of actual use of Unchecked_Conversion
6747 -- and also the expander generates unchecked type conversion nodes
6748 -- directly for expansion of complex semantic actions.
6750 -- Note: an unchecked type conversion is a variable as far as the
6751 -- semantics are concerned, which is convenient for the expander.
6752 -- This does not change what Ada source programs are legal, since
6753 -- clearly a function call to an instantiation of Unchecked_Conversion
6754 -- is not a variable in any case.
6756 -- Sprint syntax: subtype-mark!(expression)
6758 -- N_Unchecked_Type_Conversion
6759 -- Sloc points to related node in source
6760 -- Subtype_Mark (Node4)
6761 -- Expression (Node3)
6762 -- Kill_Range_Check (Flag11-Sem)
6763 -- No_Truncation (Flag17-Sem)
6764 -- plus fields for expression
6766 -- Note: in the case where a debug source file is generated, the Sloc
6767 -- for this node points to the exclamation in the Sprint file output.
6769 -----------------------------------
6770 -- Validate_Unchecked_Conversion --
6771 -----------------------------------
6773 -- The front end does most of the validation of unchecked conversion,
6774 -- including checking sizes (this is done after the back end is called
6775 -- to take advantage of back-annotation of calculated sizes).
6777 -- The front end also deals with specific cases that are not allowed
6778 -- e.g. involving unconstrained array types.
6780 -- For the case of the standard gigi backend, this means that all
6781 -- checks are done in the front-end.
6783 -- However, in the case of specialized back-ends, notably the JVM
6784 -- backend for JGNAT, additional requirements and restrictions apply
6785 -- to unchecked conversion, and these are most conveniently performed
6786 -- in the specialized back-end.
6788 -- To accommodate this requirement, for such back ends, the following
6789 -- special node is generated recording an unchecked conversion that
6790 -- needs to be validated. The back end should post an appropriate
6791 -- error message if the unchecked conversion is invalid or warrants
6792 -- a special warning message.
6794 -- Source_Type and Target_Type point to the entities for the two
6795 -- types involved in the unchecked conversion instantiation that
6796 -- is to be validated.
6798 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6800 -- N_Validate_Unchecked_Conversion
6801 -- Sloc points to instantiation (location for warning message)
6802 -- Source_Type (Node1-Sem)
6803 -- Target_Type (Node2-Sem)
6805 -- Note: in the case where a debug source file is generated, the Sloc
6806 -- for this node points to the VALIDATE keyword in the file output.
6812 -- Used as the contents of the Nkind field of the dummy Empty node
6813 -- and in some other situations to indicate an uninitialized value.
6816 -- Chars (Name1) is set to No_Name
6822 -- Used as the contents of the Nkind field of the dummy Error node.
6823 -- Has an Etype field, which gets set to Any_Type later on, to help
6824 -- error recovery (Error_Posted is also set in the Error node).
6827 -- Chars (Name1) is set to Error_Name
6828 -- Etype (Node5-Sem)
6830 --------------------------
6831 -- Node Type Definition --
6832 --------------------------
6834 -- The following is the definition of the Node_Kind type. As previously
6835 -- discussed, this is separated off to allow rearrangement of the order
6836 -- to facilitiate definition of subtype ranges. The comments show the
6837 -- subtype classes which apply to each set of node kinds. The first
6838 -- entry in the comment characterizes the following list of nodes.
6843 -- N_Representation_Clause
6847 N_Enumeration_Representation_Clause,
6849 N_Record_Representation_Clause,
6851 -- N_Representation_Clause, N_Has_Chars
6853 N_Attribute_Definition_Clause,
6859 N_Pragma_Argument_Association,
6865 -- N_Entity, N_Has_Etype, N_Has_Chars
6867 N_Defining_Character_Literal,
6868 N_Defining_Identifier,
6869 N_Defining_Operator_Symbol,
6871 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6875 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6876 -- N_Has_Chars, N_Has_Entity
6881 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6882 -- N_Has_Chars, N_Has_Entity
6884 N_Character_Literal,
6886 -- N_Binary_Op, N_Op, N_Subexpr,
6887 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6894 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6895 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6902 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6903 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6907 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6908 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6917 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6918 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6923 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6924 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6930 N_Op_Shift_Right_Arithmetic,
6932 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6933 -- N_Has_Chars, N_Has_Entity
6940 -- N_Subexpr, N_Has_Etype, N_Has_Entity
6942 N_Attribute_Reference,
6944 -- N_Subexpr, N_Has_Etype, N_Membership_Test
6949 -- N_Subexpr, N_Has_Etype
6952 N_Conditional_Expression,
6953 N_Explicit_Dereference,
6956 N_Indexed_Component,
6961 N_Procedure_Call_Statement,
6962 N_Qualified_Expression,
6964 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6966 N_Raise_Constraint_Error,
6967 N_Raise_Program_Error,
6968 N_Raise_Storage_Error,
6970 -- N_Subexpr, N_Has_Etype
6974 N_Extension_Aggregate,
6978 N_Selected_Component,
6983 N_Unchecked_Expression,
6984 N_Unchecked_Type_Conversion,
6988 N_Subtype_Indication,
6992 N_Component_Declaration,
6993 N_Entry_Declaration,
6994 N_Formal_Object_Declaration,
6995 N_Formal_Type_Declaration,
6996 N_Full_Type_Declaration,
6997 N_Incomplete_Type_Declaration,
6998 N_Loop_Parameter_Specification,
6999 N_Object_Declaration,
7000 N_Protected_Type_Declaration,
7001 N_Private_Extension_Declaration,
7002 N_Private_Type_Declaration,
7003 N_Subtype_Declaration,
7005 -- N_Subprogram_Specification, N_Declaration
7007 N_Function_Specification,
7008 N_Procedure_Specification,
7010 -- N_Access_To_Subprogram_Definition
7012 N_Access_Function_Definition,
7013 N_Access_Procedure_Definition,
7015 -- N_Later_Decl_Item
7017 N_Task_Type_Declaration,
7019 -- N_Body_Stub, N_Later_Decl_Item
7021 N_Package_Body_Stub,
7022 N_Protected_Body_Stub,
7023 N_Subprogram_Body_Stub,
7026 -- N_Generic_Instantiation, N_Later_Decl_Item
7027 -- N_Subprogram_Instantiation
7029 N_Function_Instantiation,
7030 N_Procedure_Instantiation,
7032 -- N_Generic_Instantiation, N_Later_Decl_Item
7034 N_Package_Instantiation,
7036 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7041 -- N_Later_Decl_Item, N_Proper_Body
7046 -- N_Later_Decl_Item
7048 N_Implicit_Label_Declaration,
7049 N_Package_Declaration,
7050 N_Single_Task_Declaration,
7051 N_Subprogram_Declaration,
7052 N_Use_Package_Clause,
7054 -- N_Generic_Declaration, N_Later_Decl_Item
7056 N_Generic_Package_Declaration,
7057 N_Generic_Subprogram_Declaration,
7059 -- N_Array_Type_Definition
7061 N_Constrained_Array_Definition,
7062 N_Unconstrained_Array_Definition,
7064 -- N_Renaming_Declaration
7066 N_Exception_Renaming_Declaration,
7067 N_Object_Renaming_Declaration,
7068 N_Package_Renaming_Declaration,
7069 N_Subprogram_Renaming_Declaration,
7071 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7073 N_Generic_Function_Renaming_Declaration,
7074 N_Generic_Package_Renaming_Declaration,
7075 N_Generic_Procedure_Renaming_Declaration,
7077 -- N_Statement_Other_Than_Procedure_Call
7081 N_Assignment_Statement,
7082 N_Asynchronous_Select,
7086 N_Conditional_Entry_Call,
7088 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7090 N_Delay_Relative_Statement,
7091 N_Delay_Until_Statement,
7093 -- N_Statement_Other_Than_Procedure_Call
7095 N_Entry_Call_Statement,
7101 N_Requeue_Statement,
7102 N_Return_Statement, -- renamed as N_Simple_Return_Statement in Sem_Util
7103 N_Extended_Return_Statement,
7107 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7114 N_Accept_Alternative,
7115 N_Delay_Alternative,
7117 N_Entry_Body_Formal_Part,
7119 N_Terminate_Alternative,
7121 -- N_Formal_Subprogram_Declaration
7123 N_Formal_Abstract_Subprogram_Declaration,
7124 N_Formal_Concrete_Subprogram_Declaration,
7126 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7128 N_Push_Constraint_Error_Label,
7129 N_Push_Program_Error_Label,
7130 N_Push_Storage_Error_Label,
7132 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7134 N_Pop_Constraint_Error_Label,
7135 N_Pop_Program_Error_Label,
7136 N_Pop_Storage_Error_Label,
7138 -- Other nodes (not part of any subtype class)
7141 N_Abstract_Subprogram_Declaration,
7142 N_Access_Definition,
7143 N_Access_To_Object_Definition,
7144 N_Case_Statement_Alternative,
7146 N_Compilation_Unit_Aux,
7147 N_Component_Association,
7148 N_Component_Definition,
7150 N_Derived_Type_Definition,
7151 N_Decimal_Fixed_Point_Definition,
7152 N_Defining_Program_Unit_Name,
7155 N_Digits_Constraint,
7156 N_Discriminant_Association,
7157 N_Discriminant_Specification,
7158 N_Enumeration_Type_Definition,
7160 N_Entry_Call_Alternative,
7161 N_Entry_Index_Specification,
7162 N_Exception_Declaration,
7163 N_Exception_Handler,
7164 N_Floating_Point_Definition,
7165 N_Formal_Decimal_Fixed_Point_Definition,
7166 N_Formal_Derived_Type_Definition,
7167 N_Formal_Discrete_Type_Definition,
7168 N_Formal_Floating_Point_Definition,
7169 N_Formal_Modular_Type_Definition,
7170 N_Formal_Ordinary_Fixed_Point_Definition,
7171 N_Formal_Package_Declaration,
7172 N_Formal_Private_Type_Definition,
7173 N_Formal_Signed_Integer_Type_Definition,
7175 N_Generic_Association,
7176 N_Handled_Sequence_Of_Statements,
7177 N_Index_Or_Discriminant_Constraint,
7180 N_Modular_Type_Definition,
7181 N_Number_Declaration,
7182 N_Ordinary_Fixed_Point_Definition,
7184 N_Package_Specification,
7185 N_Parameter_Association,
7186 N_Parameter_Specification,
7187 N_Protected_Definition,
7189 N_Real_Range_Specification,
7190 N_Record_Definition,
7191 N_Signed_Integer_Type_Definition,
7192 N_Single_Protected_Declaration,
7195 N_Triggering_Alternative,
7197 N_Validate_Unchecked_Conversion,
7203 for Node_Kind'Size use 8;
7204 -- The data structures in Atree assume this!
7206 ----------------------------
7207 -- Node Class Definitions --
7208 ----------------------------
7210 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7211 N_Access_Function_Definition ..
7212 N_Access_Procedure_Definition;
7214 subtype N_Array_Type_Definition is Node_Kind range
7215 N_Constrained_Array_Definition ..
7216 N_Unconstrained_Array_Definition;
7218 subtype N_Binary_Op is Node_Kind range
7220 N_Op_Shift_Right_Arithmetic;
7222 subtype N_Body_Stub is Node_Kind range
7223 N_Package_Body_Stub ..
7226 subtype N_Declaration is Node_Kind range
7227 N_Component_Declaration ..
7228 N_Procedure_Specification;
7229 -- Note: this includes all constructs normally thought of as declarations
7230 -- except those which are separately grouped as later declarations.
7232 subtype N_Delay_Statement is Node_Kind range
7233 N_Delay_Relative_Statement ..
7234 N_Delay_Until_Statement;
7236 subtype N_Direct_Name is Node_Kind range
7238 N_Character_Literal;
7240 subtype N_Entity is Node_Kind range
7241 N_Defining_Character_Literal ..
7242 N_Defining_Operator_Symbol;
7244 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7245 N_Formal_Abstract_Subprogram_Declaration ..
7246 N_Formal_Concrete_Subprogram_Declaration;
7248 subtype N_Generic_Declaration is Node_Kind range
7249 N_Generic_Package_Declaration ..
7250 N_Generic_Subprogram_Declaration;
7252 subtype N_Generic_Instantiation is Node_Kind range
7253 N_Function_Instantiation ..
7254 N_Package_Instantiation;
7256 subtype N_Generic_Renaming_Declaration is Node_Kind range
7257 N_Generic_Function_Renaming_Declaration ..
7258 N_Generic_Procedure_Renaming_Declaration;
7260 subtype N_Has_Chars is Node_Kind range
7261 N_Attribute_Definition_Clause ..
7264 subtype N_Has_Entity is Node_Kind range
7266 N_Attribute_Reference;
7267 -- Nodes that have Entity fields
7268 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7270 subtype N_Has_Etype is Node_Kind range
7272 N_Subtype_Indication;
7274 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7278 subtype N_Multiplying_Operator is Node_Kind range
7282 subtype N_Later_Decl_Item is Node_Kind range
7283 N_Task_Type_Declaration ..
7284 N_Generic_Subprogram_Declaration;
7285 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7286 -- includes only those items which can appear as later declarative
7287 -- items. This also includes N_Implicit_Label_Declaration which is
7288 -- not specifically in the grammar but may appear as a valid later
7289 -- declarative items. It does NOT include N_Pragma which can also
7290 -- appear among later declarative items. It does however include
7291 -- N_Protected_Body, which is a bit peculiar, but harmless since
7292 -- this cannot appear in Ada 83 mode anyway.
7294 subtype N_Membership_Test is Node_Kind range
7298 subtype N_Op is Node_Kind range
7302 subtype N_Op_Boolean is Node_Kind range
7305 -- Binary operators which take operands of a boolean type, and yield
7306 -- a result of a boolean type.
7308 subtype N_Op_Compare is Node_Kind range
7312 subtype N_Op_Shift is Node_Kind range
7314 N_Op_Shift_Right_Arithmetic;
7316 subtype N_Proper_Body is Node_Kind range
7320 subtype N_Push_xxx_Label is Node_Kind range
7321 N_Push_Constraint_Error_Label ..
7322 N_Push_Storage_Error_Label;
7324 subtype N_Pop_xxx_Label is Node_Kind range
7325 N_Pop_Constraint_Error_Label ..
7326 N_Pop_Storage_Error_Label;
7328 subtype N_Push_Pop_xxx_Label is Node_Kind range
7329 N_Push_Constraint_Error_Label ..
7330 N_Pop_Storage_Error_Label;
7332 subtype N_Raise_xxx_Error is Node_Kind range
7333 N_Raise_Constraint_Error ..
7334 N_Raise_Storage_Error;
7336 subtype N_Renaming_Declaration is Node_Kind range
7337 N_Exception_Renaming_Declaration ..
7338 N_Generic_Procedure_Renaming_Declaration;
7340 subtype N_Representation_Clause is Node_Kind range
7342 N_Attribute_Definition_Clause;
7344 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7345 N_Abort_Statement ..
7347 -- Note that this includes all statement types except for the cases of the
7348 -- N_Procedure_Call_Statement which is considered to be a subexpression
7349 -- (since overloading is possible, so it needs to go through the normal
7350 -- overloading resolution for expressions).
7352 subtype N_Subprogram_Instantiation is Node_Kind range
7353 N_Function_Instantiation ..
7354 N_Procedure_Instantiation;
7356 subtype N_Has_Condition is Node_Kind range
7358 N_Terminate_Alternative;
7359 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7361 subtype N_Subexpr is Node_Kind range
7363 N_Unchecked_Type_Conversion;
7364 -- Nodes with expression fields
7366 subtype N_Subprogram_Specification is Node_Kind range
7367 N_Function_Specification ..
7368 N_Procedure_Specification;
7370 subtype N_Unary_Op is Node_Kind range
7374 subtype N_Unit_Body is Node_Kind range
7378 ---------------------------
7379 -- Node Access Functions --
7380 ---------------------------
7382 -- The following functions return the contents of the indicated field of
7383 -- the node referenced by the argument, which is a Node_Id. They provide
7384 -- logical access to fields in the node which could be accessed using the
7385 -- Atree.Unchecked_Access package, but the idea is always to use these
7386 -- higher level routines which preserve strong typing. In debug mode,
7387 -- these routines check that they are being applied to an appropriate
7388 -- node, as well as checking that the node is in range.
7390 function ABE_Is_Certain
7391 (N : Node_Id) return Boolean; -- Flag18
7393 function Abort_Present
7394 (N : Node_Id) return Boolean; -- Flag15
7396 function Abortable_Part
7397 (N : Node_Id) return Node_Id; -- Node2
7399 function Abstract_Present
7400 (N : Node_Id) return Boolean; -- Flag4
7402 function Accept_Handler_Records
7403 (N : Node_Id) return List_Id; -- List5
7405 function Accept_Statement
7406 (N : Node_Id) return Node_Id; -- Node2
7408 function Access_Definition
7409 (N : Node_Id) return Node_Id; -- Node3
7411 function Access_To_Subprogram_Definition
7412 (N : Node_Id) return Node_Id; -- Node3
7414 function Access_Types_To_Process
7415 (N : Node_Id) return Elist_Id; -- Elist2
7418 (N : Node_Id) return List_Id; -- List1
7420 function Activation_Chain_Entity
7421 (N : Node_Id) return Node_Id; -- Node3
7423 function Acts_As_Spec
7424 (N : Node_Id) return Boolean; -- Flag4
7426 function Actual_Designated_Subtype
7427 (N : Node_Id) return Node_Id; -- Node4
7429 function Aggregate_Bounds
7430 (N : Node_Id) return Node_Id; -- Node3
7432 function Aliased_Present
7433 (N : Node_Id) return Boolean; -- Flag4
7436 (N : Node_Id) return Boolean; -- Flag11
7438 function All_Present
7439 (N : Node_Id) return Boolean; -- Flag15
7441 function Alternatives
7442 (N : Node_Id) return List_Id; -- List4
7444 function Ancestor_Part
7445 (N : Node_Id) return Node_Id; -- Node3
7447 function Array_Aggregate
7448 (N : Node_Id) return Node_Id; -- Node3
7450 function Assignment_OK
7451 (N : Node_Id) return Boolean; -- Flag15
7453 function Associated_Node
7454 (N : Node_Id) return Node_Id; -- Node4
7456 function At_End_Proc
7457 (N : Node_Id) return Node_Id; -- Node1
7459 function Attribute_Name
7460 (N : Node_Id) return Name_Id; -- Name2
7462 function Aux_Decls_Node
7463 (N : Node_Id) return Node_Id; -- Node5
7465 function Backwards_OK
7466 (N : Node_Id) return Boolean; -- Flag6
7468 function Bad_Is_Detected
7469 (N : Node_Id) return Boolean; -- Flag15
7472 (N : Node_Id) return Boolean; -- Flag5
7474 function Body_Required
7475 (N : Node_Id) return Boolean; -- Flag13
7477 function Body_To_Inline
7478 (N : Node_Id) return Node_Id; -- Node3
7480 function Box_Present
7481 (N : Node_Id) return Boolean; -- Flag15
7483 function Char_Literal_Value
7484 (N : Node_Id) return Uint; -- Uint2
7487 (N : Node_Id) return Name_Id; -- Name1
7489 function Check_Address_Alignment
7490 (N : Node_Id) return Boolean; -- Flag11
7492 function Choice_Parameter
7493 (N : Node_Id) return Node_Id; -- Node2
7496 (N : Node_Id) return List_Id; -- List1
7498 function Coextensions
7499 (N : Node_Id) return Elist_Id; -- Elist4
7501 function Comes_From_Extended_Return_Statement
7502 (N : Node_Id) return Boolean; -- Flag18
7504 function Compile_Time_Known_Aggregate
7505 (N : Node_Id) return Boolean; -- Flag18
7507 function Component_Associations
7508 (N : Node_Id) return List_Id; -- List2
7510 function Component_Clauses
7511 (N : Node_Id) return List_Id; -- List3
7513 function Component_Definition
7514 (N : Node_Id) return Node_Id; -- Node4
7516 function Component_Items
7517 (N : Node_Id) return List_Id; -- List3
7519 function Component_List
7520 (N : Node_Id) return Node_Id; -- Node1
7522 function Component_Name
7523 (N : Node_Id) return Node_Id; -- Node1
7526 (N : Node_Id) return Node_Id; -- Node1
7528 function Condition_Actions
7529 (N : Node_Id) return List_Id; -- List3
7531 function Config_Pragmas
7532 (N : Node_Id) return List_Id; -- List4
7534 function Constant_Present
7535 (N : Node_Id) return Boolean; -- Flag17
7538 (N : Node_Id) return Node_Id; -- Node3
7540 function Constraints
7541 (N : Node_Id) return List_Id; -- List1
7543 function Context_Installed
7544 (N : Node_Id) return Boolean; -- Flag13
7546 function Context_Items
7547 (N : Node_Id) return List_Id; -- List1
7549 function Controlling_Argument
7550 (N : Node_Id) return Node_Id; -- Node1
7552 function Conversion_OK
7553 (N : Node_Id) return Boolean; -- Flag14
7555 function Corresponding_Body
7556 (N : Node_Id) return Node_Id; -- Node5
7558 function Corresponding_Formal_Spec
7559 (N : Node_Id) return Node_Id; -- Node3
7561 function Corresponding_Generic_Association
7562 (N : Node_Id) return Node_Id; -- Node5
7564 function Corresponding_Integer_Value
7565 (N : Node_Id) return Uint; -- Uint4
7567 function Corresponding_Spec
7568 (N : Node_Id) return Node_Id; -- Node5
7570 function Corresponding_Stub
7571 (N : Node_Id) return Node_Id; -- Node3
7573 function Dcheck_Function
7574 (N : Node_Id) return Entity_Id; -- Node5
7576 function Debug_Statement
7577 (N : Node_Id) return Node_Id; -- Node3
7579 function Declarations
7580 (N : Node_Id) return List_Id; -- List2
7582 function Default_Expression
7583 (N : Node_Id) return Node_Id; -- Node5
7585 function Default_Name
7586 (N : Node_Id) return Node_Id; -- Node2
7588 function Defining_Identifier
7589 (N : Node_Id) return Entity_Id; -- Node1
7591 function Defining_Unit_Name
7592 (N : Node_Id) return Node_Id; -- Node1
7594 function Delay_Alternative
7595 (N : Node_Id) return Node_Id; -- Node4
7597 function Delay_Statement
7598 (N : Node_Id) return Node_Id; -- Node2
7600 function Delta_Expression
7601 (N : Node_Id) return Node_Id; -- Node3
7603 function Digits_Expression
7604 (N : Node_Id) return Node_Id; -- Node2
7606 function Discr_Check_Funcs_Built
7607 (N : Node_Id) return Boolean; -- Flag11
7609 function Discrete_Choices
7610 (N : Node_Id) return List_Id; -- List4
7612 function Discrete_Range
7613 (N : Node_Id) return Node_Id; -- Node4
7615 function Discrete_Subtype_Definition
7616 (N : Node_Id) return Node_Id; -- Node4
7618 function Discrete_Subtype_Definitions
7619 (N : Node_Id) return List_Id; -- List2
7621 function Discriminant_Specifications
7622 (N : Node_Id) return List_Id; -- List4
7624 function Discriminant_Type
7625 (N : Node_Id) return Node_Id; -- Node5
7627 function Do_Accessibility_Check
7628 (N : Node_Id) return Boolean; -- Flag13
7630 function Do_Discriminant_Check
7631 (N : Node_Id) return Boolean; -- Flag13
7633 function Do_Division_Check
7634 (N : Node_Id) return Boolean; -- Flag13
7636 function Do_Length_Check
7637 (N : Node_Id) return Boolean; -- Flag4
7639 function Do_Overflow_Check
7640 (N : Node_Id) return Boolean; -- Flag17
7642 function Do_Range_Check
7643 (N : Node_Id) return Boolean; -- Flag9
7645 function Do_Storage_Check
7646 (N : Node_Id) return Boolean; -- Flag17
7648 function Do_Tag_Check
7649 (N : Node_Id) return Boolean; -- Flag13
7651 function Elaborate_All_Desirable
7652 (N : Node_Id) return Boolean; -- Flag9
7654 function Elaborate_All_Present
7655 (N : Node_Id) return Boolean; -- Flag14
7657 function Elaborate_Desirable
7658 (N : Node_Id) return Boolean; -- Flag11
7660 function Elaborate_Present
7661 (N : Node_Id) return Boolean; -- Flag4
7663 function Elaboration_Boolean
7664 (N : Node_Id) return Node_Id; -- Node2
7666 function Else_Actions
7667 (N : Node_Id) return List_Id; -- List3
7669 function Else_Statements
7670 (N : Node_Id) return List_Id; -- List4
7672 function Elsif_Parts
7673 (N : Node_Id) return List_Id; -- List3
7675 function Enclosing_Variant
7676 (N : Node_Id) return Node_Id; -- Node2
7679 (N : Node_Id) return Node_Id; -- Node4
7682 (N : Node_Id) return Uint; -- Uint5
7685 (N : Node_Id) return Node_Id; -- Node4
7687 function Entity_Or_Associated_Node
7688 (N : Node_Id) return Node_Id; -- Node4
7690 function Entry_Body_Formal_Part
7691 (N : Node_Id) return Node_Id; -- Node5
7693 function Entry_Call_Alternative
7694 (N : Node_Id) return Node_Id; -- Node1
7696 function Entry_Call_Statement
7697 (N : Node_Id) return Node_Id; -- Node1
7699 function Entry_Direct_Name
7700 (N : Node_Id) return Node_Id; -- Node1
7702 function Entry_Index
7703 (N : Node_Id) return Node_Id; -- Node5
7705 function Entry_Index_Specification
7706 (N : Node_Id) return Node_Id; -- Node4
7709 (N : Node_Id) return Node_Id; -- Node5
7711 function Exception_Choices
7712 (N : Node_Id) return List_Id; -- List4
7714 function Exception_Handlers
7715 (N : Node_Id) return List_Id; -- List5
7717 function Exception_Junk
7718 (N : Node_Id) return Boolean; -- Flag8
7720 function Exception_Label
7721 (N : Node_Id) return Node_Id; -- Node5
7723 function Explicit_Actual_Parameter
7724 (N : Node_Id) return Node_Id; -- Node3
7726 function Expansion_Delayed
7727 (N : Node_Id) return Boolean; -- Flag11
7729 function Explicit_Generic_Actual_Parameter
7730 (N : Node_Id) return Node_Id; -- Node1
7733 (N : Node_Id) return Node_Id; -- Node3
7735 function Expressions
7736 (N : Node_Id) return List_Id; -- List1
7739 (N : Node_Id) return Node_Id; -- Node3
7741 function First_Inlined_Subprogram
7742 (N : Node_Id) return Entity_Id; -- Node3
7745 (N : Node_Id) return Boolean; -- Flag5
7747 function First_Named_Actual
7748 (N : Node_Id) return Node_Id; -- Node4
7750 function First_Real_Statement
7751 (N : Node_Id) return Node_Id; -- Node2
7753 function First_Subtype_Link
7754 (N : Node_Id) return Entity_Id; -- Node5
7756 function Float_Truncate
7757 (N : Node_Id) return Boolean; -- Flag11
7759 function Formal_Type_Definition
7760 (N : Node_Id) return Node_Id; -- Node3
7762 function Forwards_OK
7763 (N : Node_Id) return Boolean; -- Flag5
7765 function From_At_Mod
7766 (N : Node_Id) return Boolean; -- Flag4
7768 function From_Default
7769 (N : Node_Id) return Boolean; -- Flag6
7771 function Generic_Associations
7772 (N : Node_Id) return List_Id; -- List3
7774 function Generic_Formal_Declarations
7775 (N : Node_Id) return List_Id; -- List2
7777 function Generic_Parent
7778 (N : Node_Id) return Node_Id; -- Node5
7780 function Generic_Parent_Type
7781 (N : Node_Id) return Node_Id; -- Node4
7783 function Handled_Statement_Sequence
7784 (N : Node_Id) return Node_Id; -- Node4
7786 function Handler_List_Entry
7787 (N : Node_Id) return Node_Id; -- Node2
7789 function Has_Created_Identifier
7790 (N : Node_Id) return Boolean; -- Flag15
7792 function Has_Dynamic_Length_Check
7793 (N : Node_Id) return Boolean; -- Flag10
7795 function Has_Dynamic_Range_Check
7796 (N : Node_Id) return Boolean; -- Flag12
7798 function Has_Init_Expression
7799 (N : Node_Id) return Boolean; -- Flag14
7801 function Has_Local_Raise
7802 (N : Node_Id) return Boolean; -- Flag8
7804 function Has_No_Elaboration_Code
7805 (N : Node_Id) return Boolean; -- Flag17
7807 function Has_Priority_Pragma
7808 (N : Node_Id) return Boolean; -- Flag6
7810 function Has_Private_View
7811 (N : Node_Id) return Boolean; -- Flag11
7813 function Has_Self_Reference
7814 (N : Node_Id) return Boolean; -- Flag13
7816 function Has_Storage_Size_Pragma
7817 (N : Node_Id) return Boolean; -- Flag5
7819 function Has_Task_Info_Pragma
7820 (N : Node_Id) return Boolean; -- Flag7
7822 function Has_Task_Name_Pragma
7823 (N : Node_Id) return Boolean; -- Flag8
7825 function Has_Wide_Character
7826 (N : Node_Id) return Boolean; -- Flag11
7828 function Hidden_By_Use_Clause
7829 (N : Node_Id) return Elist_Id; -- Elist4
7832 (N : Node_Id) return Node_Id; -- Node2
7835 (N : Node_Id) return Node_Id; -- Node1
7837 function Interface_List
7838 (N : Node_Id) return List_Id; -- List2
7840 function Interface_Present
7841 (N : Node_Id) return Boolean; -- Flag16
7843 function Implicit_With
7844 (N : Node_Id) return Boolean; -- Flag16
7847 (N : Node_Id) return Boolean; -- Flag15
7849 function Includes_Infinities
7850 (N : Node_Id) return Boolean; -- Flag11
7852 function Instance_Spec
7853 (N : Node_Id) return Node_Id; -- Node5
7856 (N : Node_Id) return Uint; -- Uint3
7858 function Is_Asynchronous_Call_Block
7859 (N : Node_Id) return Boolean; -- Flag7
7861 function Is_Component_Left_Opnd
7862 (N : Node_Id) return Boolean; -- Flag13
7864 function Is_Component_Right_Opnd
7865 (N : Node_Id) return Boolean; -- Flag14
7867 function Is_Controlling_Actual
7868 (N : Node_Id) return Boolean; -- Flag16
7870 function Is_Dynamic_Coextension
7871 (N : Node_Id) return Boolean; -- Flag18
7873 function Is_Entry_Barrier_Function
7874 (N : Node_Id) return Boolean; -- Flag8
7876 function Is_Folded_In_Parser
7877 (N : Node_Id) return Boolean; -- Flag4
7879 function Is_In_Discriminant_Check
7880 (N : Node_Id) return Boolean; -- Flag11
7882 function Is_Machine_Number
7883 (N : Node_Id) return Boolean; -- Flag11
7885 function Is_Null_Loop
7886 (N : Node_Id) return Boolean; -- Flag16
7888 function Is_Overloaded
7889 (N : Node_Id) return Boolean; -- Flag5
7891 function Is_Power_Of_2_For_Shift
7892 (N : Node_Id) return Boolean; -- Flag13
7894 function Is_Protected_Subprogram_Body
7895 (N : Node_Id) return Boolean; -- Flag7
7897 function Is_Static_Coextension
7898 (N : Node_Id) return Boolean; -- Flag14
7900 function Is_Static_Expression
7901 (N : Node_Id) return Boolean; -- Flag6
7903 function Is_Subprogram_Descriptor
7904 (N : Node_Id) return Boolean; -- Flag16
7906 function Is_Task_Allocation_Block
7907 (N : Node_Id) return Boolean; -- Flag6
7909 function Is_Task_Master
7910 (N : Node_Id) return Boolean; -- Flag5
7912 function Iteration_Scheme
7913 (N : Node_Id) return Node_Id; -- Node2
7916 (N : Node_Id) return Entity_Id; -- Node1
7918 function Kill_Range_Check
7919 (N : Node_Id) return Boolean; -- Flag11
7921 function Label_Construct
7922 (N : Node_Id) return Node_Id; -- Node2
7925 (N : Node_Id) return Node_Id; -- Node2
7928 (N : Node_Id) return Node_Id; -- Node4
7931 (N : Node_Id) return Boolean; -- Flag6
7933 function Library_Unit
7934 (N : Node_Id) return Node_Id; -- Node4
7936 function Limited_View_Installed
7937 (N : Node_Id) return Boolean; -- Flag18
7939 function Limited_Present
7940 (N : Node_Id) return Boolean; -- Flag17
7943 (N : Node_Id) return List_Id; -- List1
7945 function Local_Raise_Not_OK
7946 (N : Node_Id) return Boolean; -- Flag7
7948 function Local_Raise_Statements
7949 (N : Node_Id) return Elist_Id; -- Elist1
7951 function Loop_Actions
7952 (N : Node_Id) return List_Id; -- List2
7954 function Loop_Parameter_Specification
7955 (N : Node_Id) return Node_Id; -- Node4
7958 (N : Node_Id) return Node_Id; -- Node1
7961 (N : Node_Id) return Node_Id; -- Node2
7964 (N : Node_Id) return Boolean; -- Flag5
7966 function Must_Be_Byte_Aligned
7967 (N : Node_Id) return Boolean; -- Flag14
7969 function Must_Not_Freeze
7970 (N : Node_Id) return Boolean; -- Flag8
7972 function Must_Not_Override
7973 (N : Node_Id) return Boolean; -- Flag15
7975 function Must_Override
7976 (N : Node_Id) return Boolean; -- Flag14
7979 (N : Node_Id) return Node_Id; -- Node2
7982 (N : Node_Id) return List_Id; -- List2
7984 function Next_Entity
7985 (N : Node_Id) return Node_Id; -- Node2
7987 function Next_Named_Actual
7988 (N : Node_Id) return Node_Id; -- Node4
7990 function Next_Rep_Item
7991 (N : Node_Id) return Node_Id; -- Node5
7993 function Next_Use_Clause
7994 (N : Node_Id) return Node_Id; -- Node3
7996 function No_Ctrl_Actions
7997 (N : Node_Id) return Boolean; -- Flag7
7999 function No_Elaboration_Check
8000 (N : Node_Id) return Boolean; -- Flag14
8002 function No_Entities_Ref_In_Spec
8003 (N : Node_Id) return Boolean; -- Flag8
8005 function No_Initialization
8006 (N : Node_Id) return Boolean; -- Flag13
8008 function No_Truncation
8009 (N : Node_Id) return Boolean; -- Flag17
8011 function Null_Present
8012 (N : Node_Id) return Boolean; -- Flag13
8014 function Null_Exclusion_Present
8015 (N : Node_Id) return Boolean; -- Flag11
8017 function Null_Record_Present
8018 (N : Node_Id) return Boolean; -- Flag17
8020 function Object_Definition
8021 (N : Node_Id) return Node_Id; -- Node4
8023 function Original_Discriminant
8024 (N : Node_Id) return Node_Id; -- Node2
8026 function Original_Entity
8027 (N : Node_Id) return Entity_Id; -- Node2
8029 function Others_Discrete_Choices
8030 (N : Node_Id) return List_Id; -- List1
8032 function Out_Present
8033 (N : Node_Id) return Boolean; -- Flag17
8035 function Parameter_Associations
8036 (N : Node_Id) return List_Id; -- List3
8038 function Parameter_List_Truncated
8039 (N : Node_Id) return Boolean; -- Flag17
8041 function Parameter_Specifications
8042 (N : Node_Id) return List_Id; -- List3
8044 function Parameter_Type
8045 (N : Node_Id) return Node_Id; -- Node2
8047 function Parent_Spec
8048 (N : Node_Id) return Node_Id; -- Node4
8051 (N : Node_Id) return Node_Id; -- Node2
8053 function Pragma_Argument_Associations
8054 (N : Node_Id) return List_Id; -- List2
8056 function Pragmas_After
8057 (N : Node_Id) return List_Id; -- List5
8059 function Pragmas_Before
8060 (N : Node_Id) return List_Id; -- List4
8063 (N : Node_Id) return Node_Id; -- Node3
8065 function Present_Expr
8066 (N : Node_Id) return Uint; -- Uint3
8069 (N : Node_Id) return Boolean; -- Flag6
8071 function Print_In_Hex
8072 (N : Node_Id) return Boolean; -- Flag13
8074 function Private_Declarations
8075 (N : Node_Id) return List_Id; -- List3
8077 function Private_Present
8078 (N : Node_Id) return Boolean; -- Flag15
8080 function Procedure_To_Call
8081 (N : Node_Id) return Node_Id; -- Node2
8083 function Proper_Body
8084 (N : Node_Id) return Node_Id; -- Node1
8086 function Protected_Definition
8087 (N : Node_Id) return Node_Id; -- Node3
8089 function Protected_Present
8090 (N : Node_Id) return Boolean; -- Flag6
8092 function Raises_Constraint_Error
8093 (N : Node_Id) return Boolean; -- Flag7
8095 function Range_Constraint
8096 (N : Node_Id) return Node_Id; -- Node4
8098 function Range_Expression
8099 (N : Node_Id) return Node_Id; -- Node4
8101 function Real_Range_Specification
8102 (N : Node_Id) return Node_Id; -- Node4
8105 (N : Node_Id) return Ureal; -- Ureal3
8108 (N : Node_Id) return Uint; -- Uint3
8110 function Record_Extension_Part
8111 (N : Node_Id) return Node_Id; -- Node3
8113 function Redundant_Use
8114 (N : Node_Id) return Boolean; -- Flag13
8116 function Renaming_Exception
8117 (N : Node_Id) return Node_Id; -- Node2
8119 function Result_Definition
8120 (N : Node_Id) return Node_Id; -- Node4
8122 function Return_Object_Declarations
8123 (N : Node_Id) return List_Id; -- List3
8125 function Return_Statement_Entity
8126 (N : Node_Id) return Node_Id; -- Node5
8128 function Reverse_Present
8129 (N : Node_Id) return Boolean; -- Flag15
8132 (N : Node_Id) return Node_Id; -- Node3
8134 function Rounded_Result
8135 (N : Node_Id) return Boolean; -- Flag18
8138 (N : Node_Id) return Node_Id; -- Node3
8140 function Select_Alternatives
8141 (N : Node_Id) return List_Id; -- List1
8143 function Selector_Name
8144 (N : Node_Id) return Node_Id; -- Node2
8146 function Selector_Names
8147 (N : Node_Id) return List_Id; -- List1
8149 function Shift_Count_OK
8150 (N : Node_Id) return Boolean; -- Flag4
8152 function Source_Type
8153 (N : Node_Id) return Entity_Id; -- Node1
8155 function Specification
8156 (N : Node_Id) return Node_Id; -- Node1
8159 (N : Node_Id) return List_Id; -- List3
8161 function Static_Processing_OK
8162 (N : Node_Id) return Boolean; -- Flag4
8164 function Storage_Pool
8165 (N : Node_Id) return Node_Id; -- Node1
8168 (N : Node_Id) return String_Id; -- Str3
8170 function Subtype_Indication
8171 (N : Node_Id) return Node_Id; -- Node5
8173 function Subtype_Mark
8174 (N : Node_Id) return Node_Id; -- Node4
8176 function Subtype_Marks
8177 (N : Node_Id) return List_Id; -- List2
8179 function Synchronized_Present
8180 (N : Node_Id) return Boolean; -- Flag7
8182 function Tagged_Present
8183 (N : Node_Id) return Boolean; -- Flag15
8185 function Target_Type
8186 (N : Node_Id) return Entity_Id; -- Node2
8188 function Task_Definition
8189 (N : Node_Id) return Node_Id; -- Node3
8191 function Task_Present
8192 (N : Node_Id) return Boolean; -- Flag5
8194 function Then_Actions
8195 (N : Node_Id) return List_Id; -- List2
8197 function Then_Statements
8198 (N : Node_Id) return List_Id; -- List2
8200 function Treat_Fixed_As_Integer
8201 (N : Node_Id) return Boolean; -- Flag14
8203 function Triggering_Alternative
8204 (N : Node_Id) return Node_Id; -- Node1
8206 function Triggering_Statement
8207 (N : Node_Id) return Node_Id; -- Node1
8210 (N : Node_Id) return Elist_Id; -- Elist3
8212 function Type_Definition
8213 (N : Node_Id) return Node_Id; -- Node3
8216 (N : Node_Id) return Node_Id; -- Node2
8218 function Unknown_Discriminants_Present
8219 (N : Node_Id) return Boolean; -- Flag13
8221 function Unreferenced_In_Spec
8222 (N : Node_Id) return Boolean; -- Flag7
8224 function Variant_Part
8225 (N : Node_Id) return Node_Id; -- Node4
8228 (N : Node_Id) return List_Id; -- List1
8230 function Visible_Declarations
8231 (N : Node_Id) return List_Id; -- List2
8233 function Was_Originally_Stub
8234 (N : Node_Id) return Boolean; -- Flag13
8236 function Zero_Cost_Handling
8237 (N : Node_Id) return Boolean; -- Flag5
8239 -- End functions (note used by xsinfo utility program to end processing)
8241 ----------------------------
8242 -- Node Update Procedures --
8243 ----------------------------
8245 -- These are the corresponding node update routines, which again provide
8246 -- a high level logical access with type checking. In addition to setting
8247 -- the indicated field of the node N to the given Val, in the case of
8248 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8249 -- point back to node N. This automates the setting of the parent pointer.
8251 procedure Set_ABE_Is_Certain
8252 (N : Node_Id; Val : Boolean := True); -- Flag18
8254 procedure Set_Abort_Present
8255 (N : Node_Id; Val : Boolean := True); -- Flag15
8257 procedure Set_Abortable_Part
8258 (N : Node_Id; Val : Node_Id); -- Node2
8260 procedure Set_Abstract_Present
8261 (N : Node_Id; Val : Boolean := True); -- Flag4
8263 procedure Set_Accept_Handler_Records
8264 (N : Node_Id; Val : List_Id); -- List5
8266 procedure Set_Accept_Statement
8267 (N : Node_Id; Val : Node_Id); -- Node2
8269 procedure Set_Access_Definition
8270 (N : Node_Id; Val : Node_Id); -- Node3
8272 procedure Set_Access_To_Subprogram_Definition
8273 (N : Node_Id; Val : Node_Id); -- Node3
8275 procedure Set_Access_Types_To_Process
8276 (N : Node_Id; Val : Elist_Id); -- Elist2
8278 procedure Set_Actions
8279 (N : Node_Id; Val : List_Id); -- List1
8281 procedure Set_Activation_Chain_Entity
8282 (N : Node_Id; Val : Node_Id); -- Node3
8284 procedure Set_Acts_As_Spec
8285 (N : Node_Id; Val : Boolean := True); -- Flag4
8287 procedure Set_Actual_Designated_Subtype
8288 (N : Node_Id; Val : Node_Id); -- Node4
8290 procedure Set_Aggregate_Bounds
8291 (N : Node_Id; Val : Node_Id); -- Node3
8293 procedure Set_Aliased_Present
8294 (N : Node_Id; Val : Boolean := True); -- Flag4
8296 procedure Set_All_Others
8297 (N : Node_Id; Val : Boolean := True); -- Flag11
8299 procedure Set_All_Present
8300 (N : Node_Id; Val : Boolean := True); -- Flag15
8302 procedure Set_Alternatives
8303 (N : Node_Id; Val : List_Id); -- List4
8305 procedure Set_Ancestor_Part
8306 (N : Node_Id; Val : Node_Id); -- Node3
8308 procedure Set_Array_Aggregate
8309 (N : Node_Id; Val : Node_Id); -- Node3
8311 procedure Set_Assignment_OK
8312 (N : Node_Id; Val : Boolean := True); -- Flag15
8314 procedure Set_Associated_Node
8315 (N : Node_Id; Val : Node_Id); -- Node4
8317 procedure Set_Attribute_Name
8318 (N : Node_Id; Val : Name_Id); -- Name2
8320 procedure Set_At_End_Proc
8321 (N : Node_Id; Val : Node_Id); -- Node1
8323 procedure Set_Aux_Decls_Node
8324 (N : Node_Id; Val : Node_Id); -- Node5
8326 procedure Set_Backwards_OK
8327 (N : Node_Id; Val : Boolean := True); -- Flag6
8329 procedure Set_Bad_Is_Detected
8330 (N : Node_Id; Val : Boolean := True); -- Flag15
8332 procedure Set_Body_Required
8333 (N : Node_Id; Val : Boolean := True); -- Flag13
8335 procedure Set_Body_To_Inline
8336 (N : Node_Id; Val : Node_Id); -- Node3
8338 procedure Set_Box_Present
8339 (N : Node_Id; Val : Boolean := True); -- Flag15
8341 procedure Set_By_Ref
8342 (N : Node_Id; Val : Boolean := True); -- Flag5
8344 procedure Set_Char_Literal_Value
8345 (N : Node_Id; Val : Uint); -- Uint2
8348 (N : Node_Id; Val : Name_Id); -- Name1
8350 procedure Set_Check_Address_Alignment
8351 (N : Node_Id; Val : Boolean := True); -- Flag11
8353 procedure Set_Choice_Parameter
8354 (N : Node_Id; Val : Node_Id); -- Node2
8356 procedure Set_Coextensions
8357 (N : Node_Id; Val : Elist_Id); -- Elist4
8359 procedure Set_Choices
8360 (N : Node_Id; Val : List_Id); -- List1
8362 procedure Set_Comes_From_Extended_Return_Statement
8363 (N : Node_Id; Val : Boolean := True); -- Flag18
8365 procedure Set_Compile_Time_Known_Aggregate
8366 (N : Node_Id; Val : Boolean := True); -- Flag18
8368 procedure Set_Component_Associations
8369 (N : Node_Id; Val : List_Id); -- List2
8371 procedure Set_Component_Clauses
8372 (N : Node_Id; Val : List_Id); -- List3
8374 procedure Set_Component_Definition
8375 (N : Node_Id; Val : Node_Id); -- Node4
8377 procedure Set_Component_Items
8378 (N : Node_Id; Val : List_Id); -- List3
8380 procedure Set_Component_List
8381 (N : Node_Id; Val : Node_Id); -- Node1
8383 procedure Set_Component_Name
8384 (N : Node_Id; Val : Node_Id); -- Node1
8386 procedure Set_Condition
8387 (N : Node_Id; Val : Node_Id); -- Node1
8389 procedure Set_Condition_Actions
8390 (N : Node_Id; Val : List_Id); -- List3
8392 procedure Set_Config_Pragmas
8393 (N : Node_Id; Val : List_Id); -- List4
8395 procedure Set_Constant_Present
8396 (N : Node_Id; Val : Boolean := True); -- Flag17
8398 procedure Set_Constraint
8399 (N : Node_Id; Val : Node_Id); -- Node3
8401 procedure Set_Constraints
8402 (N : Node_Id; Val : List_Id); -- List1
8404 procedure Set_Context_Installed
8405 (N : Node_Id; Val : Boolean := True); -- Flag13
8407 procedure Set_Context_Items
8408 (N : Node_Id; Val : List_Id); -- List1
8410 procedure Set_Controlling_Argument
8411 (N : Node_Id; Val : Node_Id); -- Node1
8413 procedure Set_Conversion_OK
8414 (N : Node_Id; Val : Boolean := True); -- Flag14
8416 procedure Set_Corresponding_Body
8417 (N : Node_Id; Val : Node_Id); -- Node5
8419 procedure Set_Corresponding_Formal_Spec
8420 (N : Node_Id; Val : Node_Id); -- Node3
8422 procedure Set_Corresponding_Generic_Association
8423 (N : Node_Id; Val : Node_Id); -- Node5
8425 procedure Set_Corresponding_Integer_Value
8426 (N : Node_Id; Val : Uint); -- Uint4
8428 procedure Set_Corresponding_Spec
8429 (N : Node_Id; Val : Node_Id); -- Node5
8431 procedure Set_Corresponding_Stub
8432 (N : Node_Id; Val : Node_Id); -- Node3
8434 procedure Set_Dcheck_Function
8435 (N : Node_Id; Val : Entity_Id); -- Node5
8437 procedure Set_Debug_Statement
8438 (N : Node_Id; Val : Node_Id); -- Node3
8440 procedure Set_Declarations
8441 (N : Node_Id; Val : List_Id); -- List2
8443 procedure Set_Default_Expression
8444 (N : Node_Id; Val : Node_Id); -- Node5
8446 procedure Set_Default_Name
8447 (N : Node_Id; Val : Node_Id); -- Node2
8449 procedure Set_Defining_Identifier
8450 (N : Node_Id; Val : Entity_Id); -- Node1
8452 procedure Set_Defining_Unit_Name
8453 (N : Node_Id; Val : Node_Id); -- Node1
8455 procedure Set_Delay_Alternative
8456 (N : Node_Id; Val : Node_Id); -- Node4
8458 procedure Set_Delay_Statement
8459 (N : Node_Id; Val : Node_Id); -- Node2
8461 procedure Set_Delta_Expression
8462 (N : Node_Id; Val : Node_Id); -- Node3
8464 procedure Set_Digits_Expression
8465 (N : Node_Id; Val : Node_Id); -- Node2
8467 procedure Set_Discr_Check_Funcs_Built
8468 (N : Node_Id; Val : Boolean := True); -- Flag11
8470 procedure Set_Discrete_Choices
8471 (N : Node_Id; Val : List_Id); -- List4
8473 procedure Set_Discrete_Range
8474 (N : Node_Id; Val : Node_Id); -- Node4
8476 procedure Set_Discrete_Subtype_Definition
8477 (N : Node_Id; Val : Node_Id); -- Node4
8479 procedure Set_Discrete_Subtype_Definitions
8480 (N : Node_Id; Val : List_Id); -- List2
8482 procedure Set_Discriminant_Specifications
8483 (N : Node_Id; Val : List_Id); -- List4
8485 procedure Set_Discriminant_Type
8486 (N : Node_Id; Val : Node_Id); -- Node5
8488 procedure Set_Do_Accessibility_Check
8489 (N : Node_Id; Val : Boolean := True); -- Flag13
8491 procedure Set_Do_Discriminant_Check
8492 (N : Node_Id; Val : Boolean := True); -- Flag13
8494 procedure Set_Do_Division_Check
8495 (N : Node_Id; Val : Boolean := True); -- Flag13
8497 procedure Set_Do_Length_Check
8498 (N : Node_Id; Val : Boolean := True); -- Flag4
8500 procedure Set_Do_Overflow_Check
8501 (N : Node_Id; Val : Boolean := True); -- Flag17
8503 procedure Set_Do_Range_Check
8504 (N : Node_Id; Val : Boolean := True); -- Flag9
8506 procedure Set_Do_Storage_Check
8507 (N : Node_Id; Val : Boolean := True); -- Flag17
8509 procedure Set_Do_Tag_Check
8510 (N : Node_Id; Val : Boolean := True); -- Flag13
8512 procedure Set_Elaborate_All_Desirable
8513 (N : Node_Id; Val : Boolean := True); -- Flag9
8515 procedure Set_Elaborate_All_Present
8516 (N : Node_Id; Val : Boolean := True); -- Flag14
8518 procedure Set_Elaborate_Desirable
8519 (N : Node_Id; Val : Boolean := True); -- Flag11
8521 procedure Set_Elaborate_Present
8522 (N : Node_Id; Val : Boolean := True); -- Flag4
8524 procedure Set_Elaboration_Boolean
8525 (N : Node_Id; Val : Node_Id); -- Node2
8527 procedure Set_Else_Actions
8528 (N : Node_Id; Val : List_Id); -- List3
8530 procedure Set_Else_Statements
8531 (N : Node_Id; Val : List_Id); -- List4
8533 procedure Set_Elsif_Parts
8534 (N : Node_Id; Val : List_Id); -- List3
8536 procedure Set_Enclosing_Variant
8537 (N : Node_Id; Val : Node_Id); -- Node2
8539 procedure Set_End_Label
8540 (N : Node_Id; Val : Node_Id); -- Node4
8542 procedure Set_End_Span
8543 (N : Node_Id; Val : Uint); -- Uint5
8545 procedure Set_Entity
8546 (N : Node_Id; Val : Node_Id); -- Node4
8548 procedure Set_Entry_Body_Formal_Part
8549 (N : Node_Id; Val : Node_Id); -- Node5
8551 procedure Set_Entry_Call_Alternative
8552 (N : Node_Id; Val : Node_Id); -- Node1
8554 procedure Set_Entry_Call_Statement
8555 (N : Node_Id; Val : Node_Id); -- Node1
8557 procedure Set_Entry_Direct_Name
8558 (N : Node_Id; Val : Node_Id); -- Node1
8560 procedure Set_Entry_Index
8561 (N : Node_Id; Val : Node_Id); -- Node5
8563 procedure Set_Entry_Index_Specification
8564 (N : Node_Id; Val : Node_Id); -- Node4
8567 (N : Node_Id; Val : Node_Id); -- Node5
8569 procedure Set_Exception_Choices
8570 (N : Node_Id; Val : List_Id); -- List4
8572 procedure Set_Exception_Handlers
8573 (N : Node_Id; Val : List_Id); -- List5
8575 procedure Set_Exception_Junk
8576 (N : Node_Id; Val : Boolean := True); -- Flag8
8578 procedure Set_Exception_Label
8579 (N : Node_Id; Val : Node_Id); -- Node5
8581 procedure Set_Expansion_Delayed
8582 (N : Node_Id; Val : Boolean := True); -- Flag11
8584 procedure Set_Explicit_Actual_Parameter
8585 (N : Node_Id; Val : Node_Id); -- Node3
8587 procedure Set_Explicit_Generic_Actual_Parameter
8588 (N : Node_Id; Val : Node_Id); -- Node1
8590 procedure Set_Expression
8591 (N : Node_Id; Val : Node_Id); -- Node3
8593 procedure Set_Expressions
8594 (N : Node_Id; Val : List_Id); -- List1
8596 procedure Set_First_Bit
8597 (N : Node_Id; Val : Node_Id); -- Node3
8599 procedure Set_First_Inlined_Subprogram
8600 (N : Node_Id; Val : Entity_Id); -- Node3
8602 procedure Set_First_Name
8603 (N : Node_Id; Val : Boolean := True); -- Flag5
8605 procedure Set_First_Named_Actual
8606 (N : Node_Id; Val : Node_Id); -- Node4
8608 procedure Set_First_Real_Statement
8609 (N : Node_Id; Val : Node_Id); -- Node2
8611 procedure Set_First_Subtype_Link
8612 (N : Node_Id; Val : Entity_Id); -- Node5
8614 procedure Set_Float_Truncate
8615 (N : Node_Id; Val : Boolean := True); -- Flag11
8617 procedure Set_Formal_Type_Definition
8618 (N : Node_Id; Val : Node_Id); -- Node3
8620 procedure Set_Forwards_OK
8621 (N : Node_Id; Val : Boolean := True); -- Flag5
8623 procedure Set_From_At_Mod
8624 (N : Node_Id; Val : Boolean := True); -- Flag4
8626 procedure Set_From_Default
8627 (N : Node_Id; Val : Boolean := True); -- Flag6
8629 procedure Set_Generic_Associations
8630 (N : Node_Id; Val : List_Id); -- List3
8632 procedure Set_Generic_Formal_Declarations
8633 (N : Node_Id; Val : List_Id); -- List2
8635 procedure Set_Generic_Parent
8636 (N : Node_Id; Val : Node_Id); -- Node5
8638 procedure Set_Generic_Parent_Type
8639 (N : Node_Id; Val : Node_Id); -- Node4
8641 procedure Set_Handled_Statement_Sequence
8642 (N : Node_Id; Val : Node_Id); -- Node4
8644 procedure Set_Handler_List_Entry
8645 (N : Node_Id; Val : Node_Id); -- Node2
8647 procedure Set_Has_Created_Identifier
8648 (N : Node_Id; Val : Boolean := True); -- Flag15
8650 procedure Set_Has_Dynamic_Length_Check
8651 (N : Node_Id; Val : Boolean := True); -- Flag10
8653 procedure Set_Has_Dynamic_Range_Check
8654 (N : Node_Id; Val : Boolean := True); -- Flag12
8656 procedure Set_Has_Init_Expression
8657 (N : Node_Id; Val : Boolean := True); -- Flag14
8659 procedure Set_Has_Local_Raise
8660 (N : Node_Id; Val : Boolean := True); -- Flag8
8662 procedure Set_Has_No_Elaboration_Code
8663 (N : Node_Id; Val : Boolean := True); -- Flag17
8665 procedure Set_Has_Priority_Pragma
8666 (N : Node_Id; Val : Boolean := True); -- Flag6
8668 procedure Set_Has_Private_View
8669 (N : Node_Id; Val : Boolean := True); -- Flag11
8671 procedure Set_Has_Self_Reference
8672 (N : Node_Id; Val : Boolean := True); -- Flag13
8674 procedure Set_Has_Storage_Size_Pragma
8675 (N : Node_Id; Val : Boolean := True); -- Flag5
8677 procedure Set_Has_Task_Info_Pragma
8678 (N : Node_Id; Val : Boolean := True); -- Flag7
8680 procedure Set_Has_Task_Name_Pragma
8681 (N : Node_Id; Val : Boolean := True); -- Flag8
8683 procedure Set_Has_Wide_Character
8684 (N : Node_Id; Val : Boolean := True); -- Flag11
8686 procedure Set_Hidden_By_Use_Clause
8687 (N : Node_Id; Val : Elist_Id); -- Elist4
8689 procedure Set_High_Bound
8690 (N : Node_Id; Val : Node_Id); -- Node2
8692 procedure Set_Identifier
8693 (N : Node_Id; Val : Node_Id); -- Node1
8695 procedure Set_Interface_List
8696 (N : Node_Id; Val : List_Id); -- List2
8698 procedure Set_Interface_Present
8699 (N : Node_Id; Val : Boolean := True); -- Flag16
8701 procedure Set_Implicit_With
8702 (N : Node_Id; Val : Boolean := True); -- Flag16
8704 procedure Set_In_Present
8705 (N : Node_Id; Val : Boolean := True); -- Flag15
8707 procedure Set_Includes_Infinities
8708 (N : Node_Id; Val : Boolean := True); -- Flag11
8710 procedure Set_Instance_Spec
8711 (N : Node_Id; Val : Node_Id); -- Node5
8713 procedure Set_Intval
8714 (N : Node_Id; Val : Uint); -- Uint3
8716 procedure Set_Is_Asynchronous_Call_Block
8717 (N : Node_Id; Val : Boolean := True); -- Flag7
8719 procedure Set_Is_Component_Left_Opnd
8720 (N : Node_Id; Val : Boolean := True); -- Flag13
8722 procedure Set_Is_Component_Right_Opnd
8723 (N : Node_Id; Val : Boolean := True); -- Flag14
8725 procedure Set_Is_Controlling_Actual
8726 (N : Node_Id; Val : Boolean := True); -- Flag16
8728 procedure Set_Is_Dynamic_Coextension
8729 (N : Node_Id; Val : Boolean := True); -- Flag18
8731 procedure Set_Is_Entry_Barrier_Function
8732 (N : Node_Id; Val : Boolean := True); -- Flag8
8734 procedure Set_Is_Folded_In_Parser
8735 (N : Node_Id; Val : Boolean := True); -- Flag4
8737 procedure Set_Is_In_Discriminant_Check
8738 (N : Node_Id; Val : Boolean := True); -- Flag11
8740 procedure Set_Is_Machine_Number
8741 (N : Node_Id; Val : Boolean := True); -- Flag11
8743 procedure Set_Is_Null_Loop
8744 (N : Node_Id; Val : Boolean := True); -- Flag16
8746 procedure Set_Is_Overloaded
8747 (N : Node_Id; Val : Boolean := True); -- Flag5
8749 procedure Set_Is_Power_Of_2_For_Shift
8750 (N : Node_Id; Val : Boolean := True); -- Flag13
8752 procedure Set_Is_Protected_Subprogram_Body
8753 (N : Node_Id; Val : Boolean := True); -- Flag7
8755 procedure Set_Is_Static_Coextension
8756 (N : Node_Id; Val : Boolean := True); -- Flag14
8758 procedure Set_Is_Static_Expression
8759 (N : Node_Id; Val : Boolean := True); -- Flag6
8761 procedure Set_Is_Subprogram_Descriptor
8762 (N : Node_Id; Val : Boolean := True); -- Flag16
8764 procedure Set_Is_Task_Allocation_Block
8765 (N : Node_Id; Val : Boolean := True); -- Flag6
8767 procedure Set_Is_Task_Master
8768 (N : Node_Id; Val : Boolean := True); -- Flag5
8770 procedure Set_Iteration_Scheme
8771 (N : Node_Id; Val : Node_Id); -- Node2
8774 (N : Node_Id; Val : Entity_Id); -- Node1
8776 procedure Set_Kill_Range_Check
8777 (N : Node_Id; Val : Boolean := True); -- Flag11
8779 procedure Set_Last_Bit
8780 (N : Node_Id; Val : Node_Id); -- Node4
8782 procedure Set_Last_Name
8783 (N : Node_Id; Val : Boolean := True); -- Flag6
8785 procedure Set_Library_Unit
8786 (N : Node_Id; Val : Node_Id); -- Node4
8788 procedure Set_Label_Construct
8789 (N : Node_Id; Val : Node_Id); -- Node2
8791 procedure Set_Left_Opnd
8792 (N : Node_Id; Val : Node_Id); -- Node2
8794 procedure Set_Limited_View_Installed
8795 (N : Node_Id; Val : Boolean := True); -- Flag18
8797 procedure Set_Limited_Present
8798 (N : Node_Id; Val : Boolean := True); -- Flag17
8800 procedure Set_Literals
8801 (N : Node_Id; Val : List_Id); -- List1
8803 procedure Set_Local_Raise_Not_OK
8804 (N : Node_Id; Val : Boolean := True); -- Flag7
8806 procedure Set_Local_Raise_Statements
8807 (N : Node_Id; Val : Elist_Id); -- Elist1
8809 procedure Set_Loop_Actions
8810 (N : Node_Id; Val : List_Id); -- List2
8812 procedure Set_Loop_Parameter_Specification
8813 (N : Node_Id; Val : Node_Id); -- Node4
8815 procedure Set_Low_Bound
8816 (N : Node_Id; Val : Node_Id); -- Node1
8818 procedure Set_Mod_Clause
8819 (N : Node_Id; Val : Node_Id); -- Node2
8821 procedure Set_More_Ids
8822 (N : Node_Id; Val : Boolean := True); -- Flag5
8824 procedure Set_Must_Be_Byte_Aligned
8825 (N : Node_Id; Val : Boolean := True); -- Flag14
8827 procedure Set_Must_Not_Freeze
8828 (N : Node_Id; Val : Boolean := True); -- Flag8
8830 procedure Set_Must_Not_Override
8831 (N : Node_Id; Val : Boolean := True); -- Flag15
8833 procedure Set_Must_Override
8834 (N : Node_Id; Val : Boolean := True); -- Flag14
8837 (N : Node_Id; Val : Node_Id); -- Node2
8840 (N : Node_Id; Val : List_Id); -- List2
8842 procedure Set_Next_Entity
8843 (N : Node_Id; Val : Node_Id); -- Node2
8845 procedure Set_Next_Named_Actual
8846 (N : Node_Id; Val : Node_Id); -- Node4
8848 procedure Set_Next_Rep_Item
8849 (N : Node_Id; Val : Node_Id); -- Node5
8851 procedure Set_Next_Use_Clause
8852 (N : Node_Id; Val : Node_Id); -- Node3
8854 procedure Set_No_Ctrl_Actions
8855 (N : Node_Id; Val : Boolean := True); -- Flag7
8857 procedure Set_No_Elaboration_Check
8858 (N : Node_Id; Val : Boolean := True); -- Flag14
8860 procedure Set_No_Entities_Ref_In_Spec
8861 (N : Node_Id; Val : Boolean := True); -- Flag8
8863 procedure Set_No_Initialization
8864 (N : Node_Id; Val : Boolean := True); -- Flag13
8866 procedure Set_No_Truncation
8867 (N : Node_Id; Val : Boolean := True); -- Flag17
8869 procedure Set_Null_Present
8870 (N : Node_Id; Val : Boolean := True); -- Flag13
8872 procedure Set_Null_Exclusion_Present
8873 (N : Node_Id; Val : Boolean := True); -- Flag11
8875 procedure Set_Null_Record_Present
8876 (N : Node_Id; Val : Boolean := True); -- Flag17
8878 procedure Set_Object_Definition
8879 (N : Node_Id; Val : Node_Id); -- Node4
8881 procedure Set_Original_Discriminant
8882 (N : Node_Id; Val : Node_Id); -- Node2
8884 procedure Set_Original_Entity
8885 (N : Node_Id; Val : Entity_Id); -- Node2
8887 procedure Set_Others_Discrete_Choices
8888 (N : Node_Id; Val : List_Id); -- List1
8890 procedure Set_Out_Present
8891 (N : Node_Id; Val : Boolean := True); -- Flag17
8893 procedure Set_Parameter_Associations
8894 (N : Node_Id; Val : List_Id); -- List3
8896 procedure Set_Parameter_List_Truncated
8897 (N : Node_Id; Val : Boolean := True); -- Flag17
8899 procedure Set_Parameter_Specifications
8900 (N : Node_Id; Val : List_Id); -- List3
8902 procedure Set_Parameter_Type
8903 (N : Node_Id; Val : Node_Id); -- Node2
8905 procedure Set_Parent_Spec
8906 (N : Node_Id; Val : Node_Id); -- Node4
8908 procedure Set_Position
8909 (N : Node_Id; Val : Node_Id); -- Node2
8911 procedure Set_Pragma_Argument_Associations
8912 (N : Node_Id; Val : List_Id); -- List2
8914 procedure Set_Pragmas_After
8915 (N : Node_Id; Val : List_Id); -- List5
8917 procedure Set_Pragmas_Before
8918 (N : Node_Id; Val : List_Id); -- List4
8920 procedure Set_Prefix
8921 (N : Node_Id; Val : Node_Id); -- Node3
8923 procedure Set_Present_Expr
8924 (N : Node_Id; Val : Uint); -- Uint3
8926 procedure Set_Prev_Ids
8927 (N : Node_Id; Val : Boolean := True); -- Flag6
8929 procedure Set_Print_In_Hex
8930 (N : Node_Id; Val : Boolean := True); -- Flag13
8932 procedure Set_Private_Declarations
8933 (N : Node_Id; Val : List_Id); -- List3
8935 procedure Set_Private_Present
8936 (N : Node_Id; Val : Boolean := True); -- Flag15
8938 procedure Set_Procedure_To_Call
8939 (N : Node_Id; Val : Node_Id); -- Node2
8941 procedure Set_Proper_Body
8942 (N : Node_Id; Val : Node_Id); -- Node1
8944 procedure Set_Protected_Definition
8945 (N : Node_Id; Val : Node_Id); -- Node3
8947 procedure Set_Protected_Present
8948 (N : Node_Id; Val : Boolean := True); -- Flag6
8950 procedure Set_Raises_Constraint_Error
8951 (N : Node_Id; Val : Boolean := True); -- Flag7
8953 procedure Set_Range_Constraint
8954 (N : Node_Id; Val : Node_Id); -- Node4
8956 procedure Set_Range_Expression
8957 (N : Node_Id; Val : Node_Id); -- Node4
8959 procedure Set_Real_Range_Specification
8960 (N : Node_Id; Val : Node_Id); -- Node4
8962 procedure Set_Realval
8963 (N : Node_Id; Val : Ureal); -- Ureal3
8965 procedure Set_Reason
8966 (N : Node_Id; Val : Uint); -- Uint3
8968 procedure Set_Record_Extension_Part
8969 (N : Node_Id; Val : Node_Id); -- Node3
8971 procedure Set_Redundant_Use
8972 (N : Node_Id; Val : Boolean := True); -- Flag13
8974 procedure Set_Renaming_Exception
8975 (N : Node_Id; Val : Node_Id); -- Node2
8977 procedure Set_Result_Definition
8978 (N : Node_Id; Val : Node_Id); -- Node4
8980 procedure Set_Return_Object_Declarations
8981 (N : Node_Id; Val : List_Id); -- List3
8983 procedure Set_Return_Statement_Entity
8984 (N : Node_Id; Val : Node_Id); -- Node5
8986 procedure Set_Reverse_Present
8987 (N : Node_Id; Val : Boolean := True); -- Flag15
8989 procedure Set_Right_Opnd
8990 (N : Node_Id; Val : Node_Id); -- Node3
8992 procedure Set_Rounded_Result
8993 (N : Node_Id; Val : Boolean := True); -- Flag18
8996 (N : Node_Id; Val : Node_Id); -- Node3
8998 procedure Set_Select_Alternatives
8999 (N : Node_Id; Val : List_Id); -- List1
9001 procedure Set_Selector_Name
9002 (N : Node_Id; Val : Node_Id); -- Node2
9004 procedure Set_Selector_Names
9005 (N : Node_Id; Val : List_Id); -- List1
9007 procedure Set_Shift_Count_OK
9008 (N : Node_Id; Val : Boolean := True); -- Flag4
9010 procedure Set_Source_Type
9011 (N : Node_Id; Val : Entity_Id); -- Node1
9013 procedure Set_Specification
9014 (N : Node_Id; Val : Node_Id); -- Node1
9016 procedure Set_Statements
9017 (N : Node_Id; Val : List_Id); -- List3
9019 procedure Set_Static_Processing_OK
9020 (N : Node_Id; Val : Boolean); -- Flag4
9022 procedure Set_Storage_Pool
9023 (N : Node_Id; Val : Node_Id); -- Node1
9025 procedure Set_Strval
9026 (N : Node_Id; Val : String_Id); -- Str3
9028 procedure Set_Subtype_Indication
9029 (N : Node_Id; Val : Node_Id); -- Node5
9031 procedure Set_Subtype_Mark
9032 (N : Node_Id; Val : Node_Id); -- Node4
9034 procedure Set_Subtype_Marks
9035 (N : Node_Id; Val : List_Id); -- List2
9037 procedure Set_Synchronized_Present
9038 (N : Node_Id; Val : Boolean := True); -- Flag7
9040 procedure Set_Tagged_Present
9041 (N : Node_Id; Val : Boolean := True); -- Flag15
9043 procedure Set_Target_Type
9044 (N : Node_Id; Val : Entity_Id); -- Node2
9046 procedure Set_Task_Definition
9047 (N : Node_Id; Val : Node_Id); -- Node3
9049 procedure Set_Task_Present
9050 (N : Node_Id; Val : Boolean := True); -- Flag5
9052 procedure Set_Then_Actions
9053 (N : Node_Id; Val : List_Id); -- List2
9055 procedure Set_Then_Statements
9056 (N : Node_Id; Val : List_Id); -- List2
9058 procedure Set_Treat_Fixed_As_Integer
9059 (N : Node_Id; Val : Boolean := True); -- Flag14
9061 procedure Set_Triggering_Alternative
9062 (N : Node_Id; Val : Node_Id); -- Node1
9064 procedure Set_Triggering_Statement
9065 (N : Node_Id; Val : Node_Id); -- Node1
9067 procedure Set_TSS_Elist
9068 (N : Node_Id; Val : Elist_Id); -- Elist3
9070 procedure Set_Type_Definition
9071 (N : Node_Id; Val : Node_Id); -- Node3
9074 (N : Node_Id; Val : Node_Id); -- Node2
9076 procedure Set_Unknown_Discriminants_Present
9077 (N : Node_Id; Val : Boolean := True); -- Flag13
9079 procedure Set_Unreferenced_In_Spec
9080 (N : Node_Id; Val : Boolean := True); -- Flag7
9082 procedure Set_Variant_Part
9083 (N : Node_Id; Val : Node_Id); -- Node4
9085 procedure Set_Variants
9086 (N : Node_Id; Val : List_Id); -- List1
9088 procedure Set_Visible_Declarations
9089 (N : Node_Id; Val : List_Id); -- List2
9091 procedure Set_Was_Originally_Stub
9092 (N : Node_Id; Val : Boolean := True); -- Flag13
9094 procedure Set_Zero_Cost_Handling
9095 (N : Node_Id; Val : Boolean := True); -- Flag5
9097 -------------------------
9098 -- Iterator Procedures --
9099 -------------------------
9101 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9103 procedure Next_Entity (N : in out Node_Id);
9104 procedure Next_Named_Actual (N : in out Node_Id);
9105 procedure Next_Rep_Item (N : in out Node_Id);
9106 procedure Next_Use_Clause (N : in out Node_Id);
9108 --------------------------------------
9109 -- Logical Access to End_Span Field --
9110 --------------------------------------
9112 function End_Location (N : Node_Id) return Source_Ptr;
9113 -- N is an N_If_Statement or N_Case_Statement node, and this
9114 -- function returns the location of the IF token in the END IF
9115 -- sequence by translating the value of the End_Span field.
9117 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9118 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9119 -- sets the End_Span field to correspond to the given value S. In
9120 -- other words, End_Span is set to the difference between S and
9121 -- Sloc (N), the starting location.
9123 -----------------------------
9124 -- Syntactic Parent Tables --
9125 -----------------------------
9127 -- These tables show for each node, and for each of the five fields,
9128 -- whether the corresponding field is syntactic (True) or semantic (False).
9129 -- Unused entries are also set to False.
9131 subtype Field_Num is Natural range 1 .. 5;
9133 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9135 -- Following entries can be built automatically from the sinfo sources
9136 -- using the makeisf utility (currently this program is in spitbol).
9139 (1 => True, -- Chars (Name1)
9140 2 => False, -- Original_Discriminant (Node2-Sem)
9141 3 => False, -- unused
9142 4 => False, -- Entity (Node4-Sem)
9143 5 => False), -- Etype (Node5-Sem)
9145 N_Integer_Literal =>
9146 (1 => False, -- unused
9147 2 => False, -- Original_Entity (Node2-Sem)
9148 3 => True, -- Intval (Uint3)
9149 4 => False, -- unused
9150 5 => False), -- Etype (Node5-Sem)
9153 (1 => False, -- unused
9154 2 => False, -- Original_Entity (Node2-Sem)
9155 3 => True, -- Realval (Ureal3)
9156 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9157 5 => False), -- Etype (Node5-Sem)
9159 N_Character_Literal =>
9160 (1 => True, -- Chars (Name1)
9161 2 => True, -- Char_Literal_Value (Uint2)
9162 3 => False, -- unused
9163 4 => False, -- Entity (Node4-Sem)
9164 5 => False), -- Etype (Node5-Sem)
9167 (1 => False, -- unused
9168 2 => False, -- unused
9169 3 => True, -- Strval (Str3)
9170 4 => False, -- unused
9171 5 => False), -- Etype (Node5-Sem)
9174 (1 => True, -- Chars (Name1)
9175 2 => True, -- Pragma_Argument_Associations (List2)
9176 3 => True, -- Debug_Statement (Node3)
9177 4 => False, -- Entity (Node4-Sem)
9178 5 => False), -- Next_Rep_Item (Node5-Sem)
9180 N_Pragma_Argument_Association =>
9181 (1 => True, -- Chars (Name1)
9182 2 => False, -- unused
9183 3 => True, -- Expression (Node3)
9184 4 => False, -- unused
9185 5 => False), -- unused
9187 N_Defining_Identifier =>
9188 (1 => True, -- Chars (Name1)
9189 2 => False, -- Next_Entity (Node2-Sem)
9190 3 => False, -- Scope (Node3-Sem)
9191 4 => False, -- unused
9192 5 => False), -- Etype (Node5-Sem)
9194 N_Full_Type_Declaration =>
9195 (1 => True, -- Defining_Identifier (Node1)
9196 2 => False, -- unused
9197 3 => True, -- Type_Definition (Node3)
9198 4 => True, -- Discriminant_Specifications (List4)
9199 5 => False), -- unused
9201 N_Subtype_Declaration =>
9202 (1 => True, -- Defining_Identifier (Node1)
9203 2 => False, -- unused
9204 3 => False, -- unused
9205 4 => False, -- Generic_Parent_Type (Node4-Sem)
9206 5 => True), -- Subtype_Indication (Node5)
9208 N_Subtype_Indication =>
9209 (1 => False, -- unused
9210 2 => False, -- unused
9211 3 => True, -- Constraint (Node3)
9212 4 => True, -- Subtype_Mark (Node4)
9213 5 => False), -- Etype (Node5-Sem)
9215 N_Object_Declaration =>
9216 (1 => True, -- Defining_Identifier (Node1)
9217 2 => False, -- Handler_List_Entry (Node2-Sem)
9218 3 => True, -- Expression (Node3)
9219 4 => True, -- Object_Definition (Node4)
9220 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9222 N_Number_Declaration =>
9223 (1 => True, -- Defining_Identifier (Node1)
9224 2 => False, -- unused
9225 3 => True, -- Expression (Node3)
9226 4 => False, -- unused
9227 5 => False), -- unused
9229 N_Derived_Type_Definition =>
9230 (1 => False, -- unused
9231 2 => True, -- Interface_List (List2)
9232 3 => True, -- Record_Extension_Part (Node3)
9233 4 => False, -- unused
9234 5 => True), -- Subtype_Indication (Node5)
9236 N_Range_Constraint =>
9237 (1 => False, -- unused
9238 2 => False, -- unused
9239 3 => False, -- unused
9240 4 => True, -- Range_Expression (Node4)
9241 5 => False), -- unused
9244 (1 => True, -- Low_Bound (Node1)
9245 2 => True, -- High_Bound (Node2)
9246 3 => False, -- unused
9247 4 => False, -- unused
9248 5 => False), -- Etype (Node5-Sem)
9250 N_Enumeration_Type_Definition =>
9251 (1 => True, -- Literals (List1)
9252 2 => False, -- unused
9253 3 => False, -- unused
9254 4 => True, -- End_Label (Node4)
9255 5 => False), -- unused
9257 N_Defining_Character_Literal =>
9258 (1 => True, -- Chars (Name1)
9259 2 => False, -- Next_Entity (Node2-Sem)
9260 3 => False, -- Scope (Node3-Sem)
9261 4 => False, -- unused
9262 5 => False), -- Etype (Node5-Sem)
9264 N_Signed_Integer_Type_Definition =>
9265 (1 => True, -- Low_Bound (Node1)
9266 2 => True, -- High_Bound (Node2)
9267 3 => False, -- unused
9268 4 => False, -- unused
9269 5 => False), -- unused
9271 N_Modular_Type_Definition =>
9272 (1 => False, -- unused
9273 2 => False, -- unused
9274 3 => True, -- Expression (Node3)
9275 4 => False, -- unused
9276 5 => False), -- unused
9278 N_Floating_Point_Definition =>
9279 (1 => False, -- unused
9280 2 => True, -- Digits_Expression (Node2)
9281 3 => False, -- unused
9282 4 => True, -- Real_Range_Specification (Node4)
9283 5 => False), -- unused
9285 N_Real_Range_Specification =>
9286 (1 => True, -- Low_Bound (Node1)
9287 2 => True, -- High_Bound (Node2)
9288 3 => False, -- unused
9289 4 => False, -- unused
9290 5 => False), -- unused
9292 N_Ordinary_Fixed_Point_Definition =>
9293 (1 => False, -- unused
9294 2 => False, -- unused
9295 3 => True, -- Delta_Expression (Node3)
9296 4 => True, -- Real_Range_Specification (Node4)
9297 5 => False), -- unused
9299 N_Decimal_Fixed_Point_Definition =>
9300 (1 => False, -- unused
9301 2 => True, -- Digits_Expression (Node2)
9302 3 => True, -- Delta_Expression (Node3)
9303 4 => True, -- Real_Range_Specification (Node4)
9304 5 => False), -- unused
9306 N_Digits_Constraint =>
9307 (1 => False, -- unused
9308 2 => True, -- Digits_Expression (Node2)
9309 3 => False, -- unused
9310 4 => True, -- Range_Constraint (Node4)
9311 5 => False), -- unused
9313 N_Unconstrained_Array_Definition =>
9314 (1 => False, -- unused
9315 2 => True, -- Subtype_Marks (List2)
9316 3 => False, -- unused
9317 4 => True, -- Component_Definition (Node4)
9318 5 => False), -- unused
9320 N_Constrained_Array_Definition =>
9321 (1 => False, -- unused
9322 2 => True, -- Discrete_Subtype_Definitions (List2)
9323 3 => False, -- unused
9324 4 => True, -- Component_Definition (Node4)
9325 5 => False), -- unused
9327 N_Component_Definition =>
9328 (1 => False, -- unused
9329 2 => False, -- unused
9330 3 => True, -- Access_Definition (Node3)
9331 4 => False, -- unused
9332 5 => True), -- Subtype_Indication (Node5)
9334 N_Discriminant_Specification =>
9335 (1 => True, -- Defining_Identifier (Node1)
9336 2 => False, -- unused
9337 3 => True, -- Expression (Node3)
9338 4 => False, -- unused
9339 5 => True), -- Discriminant_Type (Node5)
9341 N_Index_Or_Discriminant_Constraint =>
9342 (1 => True, -- Constraints (List1)
9343 2 => False, -- unused
9344 3 => False, -- unused
9345 4 => False, -- unused
9346 5 => False), -- unused
9348 N_Discriminant_Association =>
9349 (1 => True, -- Selector_Names (List1)
9350 2 => False, -- unused
9351 3 => True, -- Expression (Node3)
9352 4 => False, -- unused
9353 5 => False), -- unused
9355 N_Record_Definition =>
9356 (1 => True, -- Component_List (Node1)
9357 2 => True, -- Interface_List (List2)
9358 3 => False, -- unused
9359 4 => True, -- End_Label (Node4)
9360 5 => False), -- unused
9363 (1 => False, -- unused
9364 2 => False, -- unused
9365 3 => True, -- Component_Items (List3)
9366 4 => True, -- Variant_Part (Node4)
9367 5 => False), -- unused
9369 N_Component_Declaration =>
9370 (1 => True, -- Defining_Identifier (Node1)
9371 2 => False, -- unused
9372 3 => True, -- Expression (Node3)
9373 4 => True, -- Component_Definition (Node4)
9374 5 => False), -- unused
9377 (1 => True, -- Variants (List1)
9378 2 => True, -- Name (Node2)
9379 3 => False, -- unused
9380 4 => False, -- unused
9381 5 => False), -- unused
9384 (1 => True, -- Component_List (Node1)
9385 2 => False, -- Enclosing_Variant (Node2-Sem)
9386 3 => False, -- Present_Expr (Uint3-Sem)
9387 4 => True, -- Discrete_Choices (List4)
9388 5 => False), -- Dcheck_Function (Node5-Sem)
9391 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9392 2 => False, -- unused
9393 3 => False, -- unused
9394 4 => False, -- unused
9395 5 => False), -- unused
9397 N_Access_To_Object_Definition =>
9398 (1 => False, -- unused
9399 2 => False, -- unused
9400 3 => False, -- unused
9401 4 => False, -- unused
9402 5 => True), -- Subtype_Indication (Node5)
9404 N_Access_Function_Definition =>
9405 (1 => False, -- unused
9406 2 => False, -- unused
9407 3 => True, -- Parameter_Specifications (List3)
9408 4 => True, -- Result_Definition (Node4)
9409 5 => False), -- unused
9411 N_Access_Procedure_Definition =>
9412 (1 => False, -- unused
9413 2 => False, -- unused
9414 3 => True, -- Parameter_Specifications (List3)
9415 4 => False, -- unused
9416 5 => False), -- unused
9418 N_Access_Definition =>
9419 (1 => False, -- unused
9420 2 => False, -- unused
9421 3 => True, -- Access_To_Subprogram_Definition (Node3)
9422 4 => True, -- Subtype_Mark (Node4)
9423 5 => False), -- unused
9425 N_Incomplete_Type_Declaration =>
9426 (1 => True, -- Defining_Identifier (Node1)
9427 2 => False, -- unused
9428 3 => False, -- unused
9429 4 => True, -- Discriminant_Specifications (List4)
9430 5 => False), -- unused
9432 N_Explicit_Dereference =>
9433 (1 => False, -- unused
9434 2 => False, -- unused
9435 3 => True, -- Prefix (Node3)
9436 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9437 5 => False), -- Etype (Node5-Sem)
9439 N_Indexed_Component =>
9440 (1 => True, -- Expressions (List1)
9441 2 => False, -- unused
9442 3 => True, -- Prefix (Node3)
9443 4 => False, -- unused
9444 5 => False), -- Etype (Node5-Sem)
9447 (1 => False, -- unused
9448 2 => False, -- unused
9449 3 => True, -- Prefix (Node3)
9450 4 => True, -- Discrete_Range (Node4)
9451 5 => False), -- Etype (Node5-Sem)
9453 N_Selected_Component =>
9454 (1 => False, -- unused
9455 2 => True, -- Selector_Name (Node2)
9456 3 => True, -- Prefix (Node3)
9457 4 => False, -- unused
9458 5 => False), -- Etype (Node5-Sem)
9460 N_Attribute_Reference =>
9461 (1 => True, -- Expressions (List1)
9462 2 => True, -- Attribute_Name (Name2)
9463 3 => True, -- Prefix (Node3)
9464 4 => False, -- Entity (Node4-Sem)
9465 5 => False), -- Etype (Node5-Sem)
9468 (1 => True, -- Expressions (List1)
9469 2 => True, -- Component_Associations (List2)
9470 3 => False, -- Aggregate_Bounds (Node3-Sem)
9471 4 => False, -- unused
9472 5 => False), -- Etype (Node5-Sem)
9474 N_Component_Association =>
9475 (1 => True, -- Choices (List1)
9476 2 => False, -- Loop_Actions (List2-Sem)
9477 3 => True, -- Expression (Node3)
9478 4 => False, -- unused
9479 5 => False), -- unused
9481 N_Extension_Aggregate =>
9482 (1 => True, -- Expressions (List1)
9483 2 => True, -- Component_Associations (List2)
9484 3 => True, -- Ancestor_Part (Node3)
9485 4 => False, -- unused
9486 5 => False), -- Etype (Node5-Sem)
9489 (1 => False, -- unused
9490 2 => False, -- unused
9491 3 => False, -- unused
9492 4 => False, -- unused
9493 5 => False), -- Etype (Node5-Sem)
9496 (1 => False, -- Actions (List1-Sem)
9497 2 => True, -- Left_Opnd (Node2)
9498 3 => True, -- Right_Opnd (Node3)
9499 4 => False, -- unused
9500 5 => False), -- Etype (Node5-Sem)
9503 (1 => False, -- Actions (List1-Sem)
9504 2 => True, -- Left_Opnd (Node2)
9505 3 => True, -- Right_Opnd (Node3)
9506 4 => False, -- unused
9507 5 => False), -- Etype (Node5-Sem)
9510 (1 => False, -- unused
9511 2 => True, -- Left_Opnd (Node2)
9512 3 => True, -- Right_Opnd (Node3)
9513 4 => False, -- unused
9514 5 => False), -- Etype (Node5-Sem)
9517 (1 => False, -- unused
9518 2 => True, -- Left_Opnd (Node2)
9519 3 => True, -- Right_Opnd (Node3)
9520 4 => False, -- unused
9521 5 => False), -- Etype (Node5-Sem)
9524 (1 => True, -- Chars (Name1)
9525 2 => True, -- Left_Opnd (Node2)
9526 3 => True, -- Right_Opnd (Node3)
9527 4 => False, -- Entity (Node4-Sem)
9528 5 => False), -- Etype (Node5-Sem)
9531 (1 => True, -- Chars (Name1)
9532 2 => True, -- Left_Opnd (Node2)
9533 3 => True, -- Right_Opnd (Node3)
9534 4 => False, -- Entity (Node4-Sem)
9535 5 => False), -- Etype (Node5-Sem)
9538 (1 => True, -- Chars (Name1)
9539 2 => True, -- Left_Opnd (Node2)
9540 3 => True, -- Right_Opnd (Node3)
9541 4 => False, -- Entity (Node4-Sem)
9542 5 => False), -- Etype (Node5-Sem)
9545 (1 => True, -- Chars (Name1)
9546 2 => True, -- Left_Opnd (Node2)
9547 3 => True, -- Right_Opnd (Node3)
9548 4 => False, -- Entity (Node4-Sem)
9549 5 => False), -- Etype (Node5-Sem)
9552 (1 => True, -- Chars (Name1)
9553 2 => True, -- Left_Opnd (Node2)
9554 3 => True, -- Right_Opnd (Node3)
9555 4 => False, -- Entity (Node4-Sem)
9556 5 => False), -- Etype (Node5-Sem)
9559 (1 => True, -- Chars (Name1)
9560 2 => True, -- Left_Opnd (Node2)
9561 3 => True, -- Right_Opnd (Node3)
9562 4 => False, -- Entity (Node4-Sem)
9563 5 => False), -- Etype (Node5-Sem)
9566 (1 => True, -- Chars (Name1)
9567 2 => True, -- Left_Opnd (Node2)
9568 3 => True, -- Right_Opnd (Node3)
9569 4 => False, -- Entity (Node4-Sem)
9570 5 => False), -- Etype (Node5-Sem)
9573 (1 => True, -- Chars (Name1)
9574 2 => True, -- Left_Opnd (Node2)
9575 3 => True, -- Right_Opnd (Node3)
9576 4 => False, -- Entity (Node4-Sem)
9577 5 => False), -- Etype (Node5-Sem)
9580 (1 => True, -- Chars (Name1)
9581 2 => True, -- Left_Opnd (Node2)
9582 3 => True, -- Right_Opnd (Node3)
9583 4 => False, -- Entity (Node4-Sem)
9584 5 => False), -- Etype (Node5-Sem)
9587 (1 => True, -- Chars (Name1)
9588 2 => True, -- Left_Opnd (Node2)
9589 3 => True, -- Right_Opnd (Node3)
9590 4 => False, -- Entity (Node4-Sem)
9591 5 => False), -- Etype (Node5-Sem)
9594 (1 => True, -- Chars (Name1)
9595 2 => True, -- Left_Opnd (Node2)
9596 3 => True, -- Right_Opnd (Node3)
9597 4 => False, -- Entity (Node4-Sem)
9598 5 => False), -- Etype (Node5-Sem)
9601 (1 => True, -- Chars (Name1)
9602 2 => True, -- Left_Opnd (Node2)
9603 3 => True, -- Right_Opnd (Node3)
9604 4 => False, -- Entity (Node4-Sem)
9605 5 => False), -- Etype (Node5-Sem)
9608 (1 => True, -- Chars (Name1)
9609 2 => True, -- Left_Opnd (Node2)
9610 3 => True, -- Right_Opnd (Node3)
9611 4 => False, -- Entity (Node4-Sem)
9612 5 => False), -- Etype (Node5-Sem)
9615 (1 => True, -- Chars (Name1)
9616 2 => True, -- Left_Opnd (Node2)
9617 3 => True, -- Right_Opnd (Node3)
9618 4 => False, -- Entity (Node4-Sem)
9619 5 => False), -- Etype (Node5-Sem)
9622 (1 => True, -- Chars (Name1)
9623 2 => True, -- Left_Opnd (Node2)
9624 3 => True, -- Right_Opnd (Node3)
9625 4 => False, -- Entity (Node4-Sem)
9626 5 => False), -- Etype (Node5-Sem)
9629 (1 => True, -- Chars (Name1)
9630 2 => True, -- Left_Opnd (Node2)
9631 3 => True, -- Right_Opnd (Node3)
9632 4 => False, -- Entity (Node4-Sem)
9633 5 => False), -- Etype (Node5-Sem)
9636 (1 => True, -- Chars (Name1)
9637 2 => True, -- Left_Opnd (Node2)
9638 3 => True, -- Right_Opnd (Node3)
9639 4 => False, -- Entity (Node4-Sem)
9640 5 => False), -- Etype (Node5-Sem)
9643 (1 => True, -- Chars (Name1)
9644 2 => False, -- unused
9645 3 => True, -- Right_Opnd (Node3)
9646 4 => False, -- Entity (Node4-Sem)
9647 5 => False), -- Etype (Node5-Sem)
9650 (1 => True, -- Chars (Name1)
9651 2 => False, -- unused
9652 3 => True, -- Right_Opnd (Node3)
9653 4 => False, -- Entity (Node4-Sem)
9654 5 => False), -- Etype (Node5-Sem)
9657 (1 => True, -- Chars (Name1)
9658 2 => False, -- unused
9659 3 => True, -- Right_Opnd (Node3)
9660 4 => False, -- Entity (Node4-Sem)
9661 5 => False), -- Etype (Node5-Sem)
9664 (1 => True, -- Chars (Name1)
9665 2 => False, -- unused
9666 3 => True, -- Right_Opnd (Node3)
9667 4 => False, -- Entity (Node4-Sem)
9668 5 => False), -- Etype (Node5-Sem)
9670 N_Type_Conversion =>
9671 (1 => False, -- unused
9672 2 => False, -- unused
9673 3 => True, -- Expression (Node3)
9674 4 => True, -- Subtype_Mark (Node4)
9675 5 => False), -- Etype (Node5-Sem)
9677 N_Qualified_Expression =>
9678 (1 => False, -- unused
9679 2 => False, -- unused
9680 3 => True, -- Expression (Node3)
9681 4 => True, -- Subtype_Mark (Node4)
9682 5 => False), -- Etype (Node5-Sem)
9685 (1 => False, -- Storage_Pool (Node1-Sem)
9686 2 => False, -- Procedure_To_Call (Node2-Sem)
9687 3 => True, -- Expression (Node3)
9688 4 => False, -- Coextensions (Elist4-Sem)
9689 5 => False), -- Etype (Node5-Sem)
9692 (1 => False, -- unused
9693 2 => False, -- unused
9694 3 => False, -- unused
9695 4 => False, -- unused
9696 5 => False), -- unused
9699 (1 => True, -- Identifier (Node1)
9700 2 => False, -- unused
9701 3 => False, -- unused
9702 4 => False, -- unused
9703 5 => False), -- unused
9705 N_Assignment_Statement =>
9706 (1 => False, -- unused
9707 2 => True, -- Name (Node2)
9708 3 => True, -- Expression (Node3)
9709 4 => False, -- unused
9710 5 => False), -- unused
9713 (1 => True, -- Condition (Node1)
9714 2 => True, -- Then_Statements (List2)
9715 3 => True, -- Elsif_Parts (List3)
9716 4 => True, -- Else_Statements (List4)
9717 5 => True), -- End_Span (Uint5)
9720 (1 => True, -- Condition (Node1)
9721 2 => True, -- Then_Statements (List2)
9722 3 => False, -- Condition_Actions (List3-Sem)
9723 4 => False, -- unused
9724 5 => False), -- unused
9727 (1 => False, -- unused
9728 2 => False, -- unused
9729 3 => True, -- Expression (Node3)
9730 4 => True, -- Alternatives (List4)
9731 5 => True), -- End_Span (Uint5)
9733 N_Case_Statement_Alternative =>
9734 (1 => False, -- unused
9735 2 => False, -- unused
9736 3 => True, -- Statements (List3)
9737 4 => True, -- Discrete_Choices (List4)
9738 5 => False), -- unused
9741 (1 => True, -- Identifier (Node1)
9742 2 => True, -- Iteration_Scheme (Node2)
9743 3 => True, -- Statements (List3)
9744 4 => True, -- End_Label (Node4)
9745 5 => False), -- unused
9747 N_Iteration_Scheme =>
9748 (1 => True, -- Condition (Node1)
9749 2 => False, -- unused
9750 3 => False, -- Condition_Actions (List3-Sem)
9751 4 => True, -- Loop_Parameter_Specification (Node4)
9752 5 => False), -- unused
9754 N_Loop_Parameter_Specification =>
9755 (1 => True, -- Defining_Identifier (Node1)
9756 2 => False, -- unused
9757 3 => False, -- unused
9758 4 => True, -- Discrete_Subtype_Definition (Node4)
9759 5 => False), -- unused
9761 N_Block_Statement =>
9762 (1 => True, -- Identifier (Node1)
9763 2 => True, -- Declarations (List2)
9764 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9765 4 => True, -- Handled_Statement_Sequence (Node4)
9766 5 => False), -- unused
9769 (1 => True, -- Condition (Node1)
9770 2 => True, -- Name (Node2)
9771 3 => False, -- unused
9772 4 => False, -- unused
9773 5 => False), -- unused
9776 (1 => False, -- unused
9777 2 => True, -- Name (Node2)
9778 3 => False, -- unused
9779 4 => False, -- unused
9780 5 => False), -- unused
9782 N_Subprogram_Declaration =>
9783 (1 => True, -- Specification (Node1)
9784 2 => False, -- unused
9785 3 => False, -- Body_To_Inline (Node3-Sem)
9786 4 => False, -- Parent_Spec (Node4-Sem)
9787 5 => False), -- Corresponding_Body (Node5-Sem)
9789 N_Abstract_Subprogram_Declaration =>
9790 (1 => True, -- Specification (Node1)
9791 2 => False, -- unused
9792 3 => False, -- unused
9793 4 => False, -- unused
9794 5 => False), -- unused
9796 N_Function_Specification =>
9797 (1 => True, -- Defining_Unit_Name (Node1)
9798 2 => False, -- Elaboration_Boolean (Node2-Sem)
9799 3 => True, -- Parameter_Specifications (List3)
9800 4 => True, -- Result_Definition (Node4)
9801 5 => False), -- Generic_Parent (Node5-Sem)
9803 N_Procedure_Specification =>
9804 (1 => True, -- Defining_Unit_Name (Node1)
9805 2 => False, -- Elaboration_Boolean (Node2-Sem)
9806 3 => True, -- Parameter_Specifications (List3)
9807 4 => False, -- unused
9808 5 => False), -- Generic_Parent (Node5-Sem)
9811 (1 => True, -- Identifier (Node1)
9812 2 => True, -- Name (Node2)
9813 3 => False, -- unused
9814 4 => False, -- unused
9815 5 => False), -- unused
9817 N_Defining_Program_Unit_Name =>
9818 (1 => True, -- Defining_Identifier (Node1)
9819 2 => True, -- Name (Node2)
9820 3 => False, -- unused
9821 4 => False, -- unused
9822 5 => False), -- unused
9824 N_Operator_Symbol =>
9825 (1 => True, -- Chars (Name1)
9826 2 => False, -- unused
9827 3 => True, -- Strval (Str3)
9828 4 => False, -- Entity (Node4-Sem)
9829 5 => False), -- Etype (Node5-Sem)
9831 N_Defining_Operator_Symbol =>
9832 (1 => True, -- Chars (Name1)
9833 2 => False, -- Next_Entity (Node2-Sem)
9834 3 => False, -- Scope (Node3-Sem)
9835 4 => False, -- unused
9836 5 => False), -- Etype (Node5-Sem)
9838 N_Parameter_Specification =>
9839 (1 => True, -- Defining_Identifier (Node1)
9840 2 => True, -- Parameter_Type (Node2)
9841 3 => True, -- Expression (Node3)
9842 4 => False, -- unused
9843 5 => False), -- Default_Expression (Node5-Sem)
9845 N_Subprogram_Body =>
9846 (1 => True, -- Specification (Node1)
9847 2 => True, -- Declarations (List2)
9848 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9849 4 => True, -- Handled_Statement_Sequence (Node4)
9850 5 => False), -- Corresponding_Spec (Node5-Sem)
9852 N_Procedure_Call_Statement =>
9853 (1 => False, -- Controlling_Argument (Node1-Sem)
9854 2 => True, -- Name (Node2)
9855 3 => True, -- Parameter_Associations (List3)
9856 4 => False, -- First_Named_Actual (Node4-Sem)
9857 5 => False), -- Etype (Node5-Sem)
9860 (1 => False, -- Controlling_Argument (Node1-Sem)
9861 2 => True, -- Name (Node2)
9862 3 => True, -- Parameter_Associations (List3)
9863 4 => False, -- First_Named_Actual (Node4-Sem)
9864 5 => False), -- Etype (Node5-Sem)
9866 N_Parameter_Association =>
9867 (1 => False, -- unused
9868 2 => True, -- Selector_Name (Node2)
9869 3 => True, -- Explicit_Actual_Parameter (Node3)
9870 4 => False, -- Next_Named_Actual (Node4-Sem)
9871 5 => False), -- unused
9873 N_Return_Statement =>
9874 (1 => False, -- Storage_Pool (Node1-Sem)
9875 2 => False, -- Procedure_To_Call (Node2-Sem)
9876 3 => True, -- Expression (Node3)
9877 4 => False, -- unused
9878 5 => False), -- Return_Statement_Entity (Node5-Sem)
9880 N_Extended_Return_Statement =>
9881 (1 => False, -- Storage_Pool (Node1-Sem)
9882 2 => False, -- Procedure_To_Call (Node2-Sem)
9883 3 => True, -- Return_Object_Declarations (List3)
9884 4 => True, -- Handled_Statement_Sequence (Node4)
9885 5 => False), -- Return_Statement_Entity (Node5-Sem)
9887 N_Package_Declaration =>
9888 (1 => True, -- Specification (Node1)
9889 2 => False, -- unused
9890 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9891 4 => False, -- Parent_Spec (Node4-Sem)
9892 5 => False), -- Corresponding_Body (Node5-Sem)
9894 N_Package_Specification =>
9895 (1 => True, -- Defining_Unit_Name (Node1)
9896 2 => True, -- Visible_Declarations (List2)
9897 3 => True, -- Private_Declarations (List3)
9898 4 => True, -- End_Label (Node4)
9899 5 => False), -- Generic_Parent (Node5-Sem)
9902 (1 => True, -- Defining_Unit_Name (Node1)
9903 2 => True, -- Declarations (List2)
9904 3 => False, -- unused
9905 4 => True, -- Handled_Statement_Sequence (Node4)
9906 5 => False), -- Corresponding_Spec (Node5-Sem)
9908 N_Private_Type_Declaration =>
9909 (1 => True, -- Defining_Identifier (Node1)
9910 2 => False, -- unused
9911 3 => False, -- unused
9912 4 => True, -- Discriminant_Specifications (List4)
9913 5 => False), -- unused
9915 N_Private_Extension_Declaration =>
9916 (1 => True, -- Defining_Identifier (Node1)
9917 2 => True, -- Interface_List (List2)
9918 3 => False, -- unused
9919 4 => True, -- Discriminant_Specifications (List4)
9920 5 => True), -- Subtype_Indication (Node5)
9922 N_Use_Package_Clause =>
9923 (1 => False, -- unused
9924 2 => True, -- Names (List2)
9925 3 => False, -- Next_Use_Clause (Node3-Sem)
9926 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9927 5 => False), -- unused
9929 N_Use_Type_Clause =>
9930 (1 => False, -- unused
9931 2 => True, -- Subtype_Marks (List2)
9932 3 => False, -- Next_Use_Clause (Node3-Sem)
9933 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9934 5 => False), -- unused
9936 N_Object_Renaming_Declaration =>
9937 (1 => True, -- Defining_Identifier (Node1)
9938 2 => True, -- Name (Node2)
9939 3 => True, -- Access_Definition (Node3)
9940 4 => True, -- Subtype_Mark (Node4)
9941 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9943 N_Exception_Renaming_Declaration =>
9944 (1 => True, -- Defining_Identifier (Node1)
9945 2 => True, -- Name (Node2)
9946 3 => False, -- unused
9947 4 => False, -- unused
9948 5 => False), -- unused
9950 N_Package_Renaming_Declaration =>
9951 (1 => True, -- Defining_Unit_Name (Node1)
9952 2 => True, -- Name (Node2)
9953 3 => False, -- unused
9954 4 => False, -- Parent_Spec (Node4-Sem)
9955 5 => False), -- unused
9957 N_Subprogram_Renaming_Declaration =>
9958 (1 => True, -- Specification (Node1)
9959 2 => True, -- Name (Node2)
9960 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
9961 4 => False, -- Parent_Spec (Node4-Sem)
9962 5 => False), -- Corresponding_Spec (Node5-Sem)
9964 N_Generic_Package_Renaming_Declaration =>
9965 (1 => True, -- Defining_Unit_Name (Node1)
9966 2 => True, -- Name (Node2)
9967 3 => False, -- unused
9968 4 => False, -- Parent_Spec (Node4-Sem)
9969 5 => False), -- unused
9971 N_Generic_Procedure_Renaming_Declaration =>
9972 (1 => True, -- Defining_Unit_Name (Node1)
9973 2 => True, -- Name (Node2)
9974 3 => False, -- unused
9975 4 => False, -- Parent_Spec (Node4-Sem)
9976 5 => False), -- unused
9978 N_Generic_Function_Renaming_Declaration =>
9979 (1 => True, -- Defining_Unit_Name (Node1)
9980 2 => True, -- Name (Node2)
9981 3 => False, -- unused
9982 4 => False, -- Parent_Spec (Node4-Sem)
9983 5 => False), -- unused
9985 N_Task_Type_Declaration =>
9986 (1 => True, -- Defining_Identifier (Node1)
9987 2 => True, -- Interface_List (List2)
9988 3 => True, -- Task_Definition (Node3)
9989 4 => True, -- Discriminant_Specifications (List4)
9990 5 => False), -- Corresponding_Body (Node5-Sem)
9992 N_Single_Task_Declaration =>
9993 (1 => True, -- Defining_Identifier (Node1)
9994 2 => True, -- Interface_List (List2)
9995 3 => True, -- Task_Definition (Node3)
9996 4 => False, -- unused
9997 5 => False), -- unused
9999 N_Task_Definition =>
10000 (1 => False, -- unused
10001 2 => True, -- Visible_Declarations (List2)
10002 3 => True, -- Private_Declarations (List3)
10003 4 => True, -- End_Label (Node4)
10004 5 => False), -- unused
10007 (1 => True, -- Defining_Identifier (Node1)
10008 2 => True, -- Declarations (List2)
10009 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10010 4 => True, -- Handled_Statement_Sequence (Node4)
10011 5 => False), -- Corresponding_Spec (Node5-Sem)
10013 N_Protected_Type_Declaration =>
10014 (1 => True, -- Defining_Identifier (Node1)
10015 2 => True, -- Interface_List (List2)
10016 3 => True, -- Protected_Definition (Node3)
10017 4 => True, -- Discriminant_Specifications (List4)
10018 5 => False), -- Corresponding_Body (Node5-Sem)
10020 N_Single_Protected_Declaration =>
10021 (1 => True, -- Defining_Identifier (Node1)
10022 2 => True, -- Interface_List (List2)
10023 3 => True, -- Protected_Definition (Node3)
10024 4 => False, -- unused
10025 5 => False), -- unused
10027 N_Protected_Definition =>
10028 (1 => False, -- unused
10029 2 => True, -- Visible_Declarations (List2)
10030 3 => True, -- Private_Declarations (List3)
10031 4 => True, -- End_Label (Node4)
10032 5 => False), -- unused
10034 N_Protected_Body =>
10035 (1 => True, -- Defining_Identifier (Node1)
10036 2 => True, -- Declarations (List2)
10037 3 => False, -- unused
10038 4 => True, -- End_Label (Node4)
10039 5 => False), -- Corresponding_Spec (Node5-Sem)
10041 N_Entry_Declaration =>
10042 (1 => True, -- Defining_Identifier (Node1)
10043 2 => False, -- unused
10044 3 => True, -- Parameter_Specifications (List3)
10045 4 => True, -- Discrete_Subtype_Definition (Node4)
10046 5 => False), -- Corresponding_Body (Node5-Sem)
10048 N_Accept_Statement =>
10049 (1 => True, -- Entry_Direct_Name (Node1)
10050 2 => True, -- Declarations (List2)
10051 3 => True, -- Parameter_Specifications (List3)
10052 4 => True, -- Handled_Statement_Sequence (Node4)
10053 5 => True), -- Entry_Index (Node5)
10056 (1 => True, -- Defining_Identifier (Node1)
10057 2 => True, -- Declarations (List2)
10058 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10059 4 => True, -- Handled_Statement_Sequence (Node4)
10060 5 => True), -- Entry_Body_Formal_Part (Node5)
10062 N_Entry_Body_Formal_Part =>
10063 (1 => True, -- Condition (Node1)
10064 2 => False, -- unused
10065 3 => True, -- Parameter_Specifications (List3)
10066 4 => True, -- Entry_Index_Specification (Node4)
10067 5 => False), -- unused
10069 N_Entry_Index_Specification =>
10070 (1 => True, -- Defining_Identifier (Node1)
10071 2 => False, -- unused
10072 3 => False, -- unused
10073 4 => True, -- Discrete_Subtype_Definition (Node4)
10074 5 => False), -- unused
10076 N_Entry_Call_Statement =>
10077 (1 => False, -- unused
10078 2 => True, -- Name (Node2)
10079 3 => True, -- Parameter_Associations (List3)
10080 4 => False, -- First_Named_Actual (Node4-Sem)
10081 5 => False), -- unused
10083 N_Requeue_Statement =>
10084 (1 => False, -- unused
10085 2 => True, -- Name (Node2)
10086 3 => False, -- unused
10087 4 => False, -- unused
10088 5 => False), -- unused
10090 N_Delay_Until_Statement =>
10091 (1 => False, -- unused
10092 2 => False, -- unused
10093 3 => True, -- Expression (Node3)
10094 4 => False, -- unused
10095 5 => False), -- unused
10097 N_Delay_Relative_Statement =>
10098 (1 => False, -- unused
10099 2 => False, -- unused
10100 3 => True, -- Expression (Node3)
10101 4 => False, -- unused
10102 5 => False), -- unused
10104 N_Selective_Accept =>
10105 (1 => True, -- Select_Alternatives (List1)
10106 2 => False, -- unused
10107 3 => False, -- unused
10108 4 => True, -- Else_Statements (List4)
10109 5 => False), -- unused
10111 N_Accept_Alternative =>
10112 (1 => True, -- Condition (Node1)
10113 2 => True, -- Accept_Statement (Node2)
10114 3 => True, -- Statements (List3)
10115 4 => True, -- Pragmas_Before (List4)
10116 5 => False), -- Accept_Handler_Records (List5-Sem)
10118 N_Delay_Alternative =>
10119 (1 => True, -- Condition (Node1)
10120 2 => True, -- Delay_Statement (Node2)
10121 3 => True, -- Statements (List3)
10122 4 => True, -- Pragmas_Before (List4)
10123 5 => False), -- unused
10125 N_Terminate_Alternative =>
10126 (1 => True, -- Condition (Node1)
10127 2 => False, -- unused
10128 3 => False, -- unused
10129 4 => True, -- Pragmas_Before (List4)
10130 5 => True), -- Pragmas_After (List5)
10132 N_Timed_Entry_Call =>
10133 (1 => True, -- Entry_Call_Alternative (Node1)
10134 2 => False, -- unused
10135 3 => False, -- unused
10136 4 => True, -- Delay_Alternative (Node4)
10137 5 => False), -- unused
10139 N_Entry_Call_Alternative =>
10140 (1 => True, -- Entry_Call_Statement (Node1)
10141 2 => False, -- unused
10142 3 => True, -- Statements (List3)
10143 4 => True, -- Pragmas_Before (List4)
10144 5 => False), -- unused
10146 N_Conditional_Entry_Call =>
10147 (1 => True, -- Entry_Call_Alternative (Node1)
10148 2 => False, -- unused
10149 3 => False, -- unused
10150 4 => True, -- Else_Statements (List4)
10151 5 => False), -- unused
10153 N_Asynchronous_Select =>
10154 (1 => True, -- Triggering_Alternative (Node1)
10155 2 => True, -- Abortable_Part (Node2)
10156 3 => False, -- unused
10157 4 => False, -- unused
10158 5 => False), -- unused
10160 N_Triggering_Alternative =>
10161 (1 => True, -- Triggering_Statement (Node1)
10162 2 => False, -- unused
10163 3 => True, -- Statements (List3)
10164 4 => True, -- Pragmas_Before (List4)
10165 5 => False), -- unused
10167 N_Abortable_Part =>
10168 (1 => False, -- unused
10169 2 => False, -- unused
10170 3 => True, -- Statements (List3)
10171 4 => False, -- unused
10172 5 => False), -- unused
10174 N_Abort_Statement =>
10175 (1 => False, -- unused
10176 2 => True, -- Names (List2)
10177 3 => False, -- unused
10178 4 => False, -- unused
10179 5 => False), -- unused
10181 N_Compilation_Unit =>
10182 (1 => True, -- Context_Items (List1)
10183 2 => True, -- Unit (Node2)
10184 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10185 4 => False, -- Library_Unit (Node4-Sem)
10186 5 => True), -- Aux_Decls_Node (Node5)
10188 N_Compilation_Unit_Aux =>
10189 (1 => True, -- Actions (List1)
10190 2 => True, -- Declarations (List2)
10191 3 => False, -- unused
10192 4 => True, -- Config_Pragmas (List4)
10193 5 => True), -- Pragmas_After (List5)
10196 (1 => False, -- unused
10197 2 => True, -- Name (Node2)
10198 3 => False, -- unused
10199 4 => False, -- Library_Unit (Node4-Sem)
10200 5 => False), -- Corresponding_Spec (Node5-Sem)
10202 N_Subprogram_Body_Stub =>
10203 (1 => True, -- Specification (Node1)
10204 2 => False, -- unused
10205 3 => False, -- unused
10206 4 => False, -- Library_Unit (Node4-Sem)
10207 5 => False), -- Corresponding_Body (Node5-Sem)
10209 N_Package_Body_Stub =>
10210 (1 => True, -- Defining_Identifier (Node1)
10211 2 => False, -- unused
10212 3 => False, -- unused
10213 4 => False, -- Library_Unit (Node4-Sem)
10214 5 => False), -- Corresponding_Body (Node5-Sem)
10216 N_Task_Body_Stub =>
10217 (1 => True, -- Defining_Identifier (Node1)
10218 2 => False, -- unused
10219 3 => False, -- unused
10220 4 => False, -- Library_Unit (Node4-Sem)
10221 5 => False), -- Corresponding_Body (Node5-Sem)
10223 N_Protected_Body_Stub =>
10224 (1 => True, -- Defining_Identifier (Node1)
10225 2 => False, -- unused
10226 3 => False, -- unused
10227 4 => False, -- Library_Unit (Node4-Sem)
10228 5 => False), -- Corresponding_Body (Node5-Sem)
10231 (1 => True, -- Proper_Body (Node1)
10232 2 => True, -- Name (Node2)
10233 3 => False, -- Corresponding_Stub (Node3-Sem)
10234 4 => False, -- unused
10235 5 => False), -- unused
10237 N_Exception_Declaration =>
10238 (1 => True, -- Defining_Identifier (Node1)
10239 2 => False, -- unused
10240 3 => False, -- Expression (Node3-Sem)
10241 4 => False, -- unused
10242 5 => False), -- unused
10244 N_Handled_Sequence_Of_Statements =>
10245 (1 => True, -- At_End_Proc (Node1)
10246 2 => False, -- First_Real_Statement (Node2-Sem)
10247 3 => True, -- Statements (List3)
10248 4 => True, -- End_Label (Node4)
10249 5 => True), -- Exception_Handlers (List5)
10251 N_Exception_Handler =>
10252 (1 => False, -- Local_Raise_Statements (Elist1)
10253 2 => True, -- Choice_Parameter (Node2)
10254 3 => True, -- Statements (List3)
10255 4 => True, -- Exception_Choices (List4)
10256 5 => False), -- Exception_Label (Node5)
10258 N_Raise_Statement =>
10259 (1 => False, -- unused
10260 2 => True, -- Name (Node2)
10261 3 => True, -- Expression (Node3)
10262 4 => False, -- unused
10263 5 => False), -- unused
10265 N_Generic_Subprogram_Declaration =>
10266 (1 => True, -- Specification (Node1)
10267 2 => True, -- Generic_Formal_Declarations (List2)
10268 3 => False, -- unused
10269 4 => False, -- Parent_Spec (Node4-Sem)
10270 5 => False), -- Corresponding_Body (Node5-Sem)
10272 N_Generic_Package_Declaration =>
10273 (1 => True, -- Specification (Node1)
10274 2 => True, -- Generic_Formal_Declarations (List2)
10275 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10276 4 => False, -- Parent_Spec (Node4-Sem)
10277 5 => False), -- Corresponding_Body (Node5-Sem)
10279 N_Package_Instantiation =>
10280 (1 => True, -- Defining_Unit_Name (Node1)
10281 2 => True, -- Name (Node2)
10282 3 => True, -- Generic_Associations (List3)
10283 4 => False, -- Parent_Spec (Node4-Sem)
10284 5 => False), -- Instance_Spec (Node5-Sem)
10286 N_Procedure_Instantiation =>
10287 (1 => True, -- Defining_Unit_Name (Node1)
10288 2 => True, -- Name (Node2)
10289 3 => True, -- Generic_Associations (List3)
10290 4 => False, -- Parent_Spec (Node4-Sem)
10291 5 => False), -- Instance_Spec (Node5-Sem)
10293 N_Function_Instantiation =>
10294 (1 => True, -- Defining_Unit_Name (Node1)
10295 2 => True, -- Name (Node2)
10296 3 => True, -- Generic_Associations (List3)
10297 4 => False, -- Parent_Spec (Node4-Sem)
10298 5 => False), -- Instance_Spec (Node5-Sem)
10300 N_Generic_Association =>
10301 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10302 2 => True, -- Selector_Name (Node2)
10303 3 => False, -- unused
10304 4 => False, -- unused
10305 5 => False), -- unused
10307 N_Formal_Object_Declaration =>
10308 (1 => True, -- Defining_Identifier (Node1)
10309 2 => False, -- unused
10310 3 => True, -- Access_Definition (Node3)
10311 4 => True, -- Subtype_Mark (Node4)
10312 5 => True), -- Default_Expression (Node5)
10314 N_Formal_Type_Declaration =>
10315 (1 => True, -- Defining_Identifier (Node1)
10316 2 => False, -- unused
10317 3 => True, -- Formal_Type_Definition (Node3)
10318 4 => True, -- Discriminant_Specifications (List4)
10319 5 => False), -- unused
10321 N_Formal_Private_Type_Definition =>
10322 (1 => False, -- unused
10323 2 => False, -- unused
10324 3 => False, -- unused
10325 4 => False, -- unused
10326 5 => False), -- unused
10328 N_Formal_Derived_Type_Definition =>
10329 (1 => False, -- unused
10330 2 => True, -- Interface_List (List2)
10331 3 => False, -- unused
10332 4 => True, -- Subtype_Mark (Node4)
10333 5 => False), -- unused
10335 N_Formal_Discrete_Type_Definition =>
10336 (1 => False, -- unused
10337 2 => False, -- unused
10338 3 => False, -- unused
10339 4 => False, -- unused
10340 5 => False), -- unused
10342 N_Formal_Signed_Integer_Type_Definition =>
10343 (1 => False, -- unused
10344 2 => False, -- unused
10345 3 => False, -- unused
10346 4 => False, -- unused
10347 5 => False), -- unused
10349 N_Formal_Modular_Type_Definition =>
10350 (1 => False, -- unused
10351 2 => False, -- unused
10352 3 => False, -- unused
10353 4 => False, -- unused
10354 5 => False), -- unused
10356 N_Formal_Floating_Point_Definition =>
10357 (1 => False, -- unused
10358 2 => False, -- unused
10359 3 => False, -- unused
10360 4 => False, -- unused
10361 5 => False), -- unused
10363 N_Formal_Ordinary_Fixed_Point_Definition =>
10364 (1 => False, -- unused
10365 2 => False, -- unused
10366 3 => False, -- unused
10367 4 => False, -- unused
10368 5 => False), -- unused
10370 N_Formal_Decimal_Fixed_Point_Definition =>
10371 (1 => False, -- unused
10372 2 => False, -- unused
10373 3 => False, -- unused
10374 4 => False, -- unused
10375 5 => False), -- unused
10377 N_Formal_Concrete_Subprogram_Declaration =>
10378 (1 => True, -- Specification (Node1)
10379 2 => True, -- Default_Name (Node2)
10380 3 => False, -- unused
10381 4 => False, -- unused
10382 5 => False), -- unused
10384 N_Formal_Abstract_Subprogram_Declaration =>
10385 (1 => True, -- Specification (Node1)
10386 2 => True, -- Default_Name (Node2)
10387 3 => False, -- unused
10388 4 => False, -- unused
10389 5 => False), -- unused
10391 N_Formal_Package_Declaration =>
10392 (1 => True, -- Defining_Identifier (Node1)
10393 2 => True, -- Name (Node2)
10394 3 => True, -- Generic_Associations (List3)
10395 4 => False, -- unused
10396 5 => False), -- Instance_Spec (Node5-Sem)
10398 N_Attribute_Definition_Clause =>
10399 (1 => True, -- Chars (Name1)
10400 2 => True, -- Name (Node2)
10401 3 => True, -- Expression (Node3)
10402 4 => False, -- unused
10403 5 => False), -- Next_Rep_Item (Node5-Sem)
10405 N_Enumeration_Representation_Clause =>
10406 (1 => True, -- Identifier (Node1)
10407 2 => False, -- unused
10408 3 => True, -- Array_Aggregate (Node3)
10409 4 => False, -- unused
10410 5 => False), -- Next_Rep_Item (Node5-Sem)
10412 N_Record_Representation_Clause =>
10413 (1 => True, -- Identifier (Node1)
10414 2 => True, -- Mod_Clause (Node2)
10415 3 => True, -- Component_Clauses (List3)
10416 4 => False, -- unused
10417 5 => False), -- Next_Rep_Item (Node5-Sem)
10419 N_Component_Clause =>
10420 (1 => True, -- Component_Name (Node1)
10421 2 => True, -- Position (Node2)
10422 3 => True, -- First_Bit (Node3)
10423 4 => True, -- Last_Bit (Node4)
10424 5 => False), -- unused
10426 N_Code_Statement =>
10427 (1 => False, -- unused
10428 2 => False, -- unused
10429 3 => True, -- Expression (Node3)
10430 4 => False, -- unused
10431 5 => False), -- unused
10433 N_Op_Rotate_Left =>
10434 (1 => True, -- Chars (Name1)
10435 2 => True, -- Left_Opnd (Node2)
10436 3 => True, -- Right_Opnd (Node3)
10437 4 => False, -- Entity (Node4-Sem)
10438 5 => False), -- Etype (Node5-Sem)
10440 N_Op_Rotate_Right =>
10441 (1 => True, -- Chars (Name1)
10442 2 => True, -- Left_Opnd (Node2)
10443 3 => True, -- Right_Opnd (Node3)
10444 4 => False, -- Entity (Node4-Sem)
10445 5 => False), -- Etype (Node5-Sem)
10448 (1 => True, -- Chars (Name1)
10449 2 => True, -- Left_Opnd (Node2)
10450 3 => True, -- Right_Opnd (Node3)
10451 4 => False, -- Entity (Node4-Sem)
10452 5 => False), -- Etype (Node5-Sem)
10454 N_Op_Shift_Right_Arithmetic =>
10455 (1 => True, -- Chars (Name1)
10456 2 => True, -- Left_Opnd (Node2)
10457 3 => True, -- Right_Opnd (Node3)
10458 4 => False, -- Entity (Node4-Sem)
10459 5 => False), -- Etype (Node5-Sem)
10461 N_Op_Shift_Right =>
10462 (1 => True, -- Chars (Name1)
10463 2 => True, -- Left_Opnd (Node2)
10464 3 => True, -- Right_Opnd (Node3)
10465 4 => False, -- Entity (Node4-Sem)
10466 5 => False), -- Etype (Node5-Sem)
10468 N_Delta_Constraint =>
10469 (1 => False, -- unused
10470 2 => False, -- unused
10471 3 => True, -- Delta_Expression (Node3)
10472 4 => True, -- Range_Constraint (Node4)
10473 5 => False), -- unused
10476 (1 => True, -- Identifier (Node1)
10477 2 => False, -- unused
10478 3 => True, -- Expression (Node3)
10479 4 => False, -- unused
10480 5 => False), -- unused
10483 (1 => False, -- unused
10484 2 => False, -- unused
10485 3 => True, -- Expression (Node3)
10486 4 => True, -- Pragmas_Before (List4)
10487 5 => False), -- unused
10489 N_Conditional_Expression =>
10490 (1 => True, -- Expressions (List1)
10491 2 => False, -- Then_Actions (List2-Sem)
10492 3 => False, -- Else_Actions (List3-Sem)
10493 4 => False, -- unused
10494 5 => False), -- Etype (Node5-Sem)
10497 (1 => True, -- Chars (Name1)
10498 2 => True, -- Selector_Name (Node2)
10499 3 => True, -- Prefix (Node3)
10500 4 => False, -- Entity (Node4-Sem)
10501 5 => False), -- Etype (Node5-Sem)
10503 N_Free_Statement =>
10504 (1 => False, -- Storage_Pool (Node1-Sem)
10505 2 => False, -- Procedure_To_Call (Node2-Sem)
10506 3 => True, -- Expression (Node3)
10507 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10508 5 => False), -- unused
10511 (1 => True, -- Actions (List1)
10512 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10513 3 => False, -- TSS_Elist (Elist3-Sem)
10514 4 => False, -- Entity (Node4-Sem)
10515 5 => False), -- First_Subtype_Link (Node5-Sem)
10517 N_Implicit_Label_Declaration =>
10518 (1 => True, -- Defining_Identifier (Node1)
10519 2 => False, -- Label_Construct (Node2-Sem)
10520 3 => False, -- unused
10521 4 => False, -- unused
10522 5 => False), -- unused
10524 N_Itype_Reference =>
10525 (1 => False, -- Itype (Node1-Sem)
10526 2 => False, -- unused
10527 3 => False, -- unused
10528 4 => False, -- unused
10529 5 => False), -- unused
10531 N_Raise_Constraint_Error =>
10532 (1 => True, -- Condition (Node1)
10533 2 => False, -- unused
10534 3 => True, -- Reason (Uint3)
10535 4 => False, -- unused
10536 5 => False), -- Etype (Node5-Sem)
10538 N_Raise_Program_Error =>
10539 (1 => True, -- Condition (Node1)
10540 2 => False, -- unused
10541 3 => True, -- Reason (Uint3)
10542 4 => False, -- unused
10543 5 => False), -- Etype (Node5-Sem)
10545 N_Raise_Storage_Error =>
10546 (1 => True, -- Condition (Node1)
10547 2 => False, -- unused
10548 3 => True, -- Reason (Uint3)
10549 4 => False, -- unused
10550 5 => False), -- Etype (Node5-Sem)
10552 N_Push_Constraint_Error_Label =>
10553 (1 => False, -- unused
10554 2 => False, -- unused
10555 3 => False, -- unused
10556 4 => False, -- unused
10557 5 => False), -- unused
10559 N_Push_Program_Error_Label =>
10560 (1 => False, -- Exception_Label
10561 2 => False, -- unused
10562 3 => False, -- unused
10563 4 => False, -- unused
10564 5 => False), -- Exception_Label
10566 N_Push_Storage_Error_Label =>
10567 (1 => False, -- Exception_Label
10568 2 => False, -- unused
10569 3 => False, -- unused
10570 4 => False, -- unused
10571 5 => False), -- Exception_Label
10573 N_Pop_Constraint_Error_Label =>
10574 (1 => False, -- unused
10575 2 => False, -- unused
10576 3 => False, -- unused
10577 4 => False, -- unused
10578 5 => False), -- unused
10580 N_Pop_Program_Error_Label =>
10581 (1 => False, -- unused
10582 2 => False, -- unused
10583 3 => False, -- unused
10584 4 => False, -- unused
10585 5 => False), -- unused
10587 N_Pop_Storage_Error_Label =>
10588 (1 => False, -- unused
10589 2 => False, -- unused
10590 3 => False, -- unused
10591 4 => False, -- unused
10592 5 => False), -- unused
10595 (1 => False, -- unused
10596 2 => False, -- unused
10597 3 => True, -- Prefix (Node3)
10598 4 => False, -- unused
10599 5 => False), -- Etype (Node5-Sem)
10601 N_Subprogram_Info =>
10602 (1 => True, -- Identifier (Node1)
10603 2 => False, -- unused
10604 3 => False, -- unused
10605 4 => False, -- unused
10606 5 => False), -- Etype (Node5-Sem)
10608 N_Unchecked_Expression =>
10609 (1 => False, -- unused
10610 2 => False, -- unused
10611 3 => True, -- Expression (Node3)
10612 4 => False, -- unused
10613 5 => False), -- Etype (Node5-Sem)
10615 N_Unchecked_Type_Conversion =>
10616 (1 => False, -- unused
10617 2 => False, -- unused
10618 3 => True, -- Expression (Node3)
10619 4 => True, -- Subtype_Mark (Node4)
10620 5 => False), -- Etype (Node5-Sem)
10622 N_Validate_Unchecked_Conversion =>
10623 (1 => False, -- Source_Type (Node1-Sem)
10624 2 => False, -- Target_Type (Node2-Sem)
10625 3 => False, -- unused
10626 4 => False, -- unused
10627 5 => False), -- unused
10629 -- End of inserted output from makeisf program
10631 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10632 -- field for debugging purposes, they are not really syntactic fields, so
10633 -- we mark all fields as unused.
10636 (1 => False, -- unused
10637 2 => False, -- unused
10638 3 => False, -- unused
10639 4 => False, -- unused
10640 5 => False), -- unused
10643 (1 => False, -- unused
10644 2 => False, -- unused
10645 3 => False, -- unused
10646 4 => False, -- unused
10647 5 => False), -- unused
10649 N_Unused_At_Start =>
10650 (1 => False, -- unused
10651 2 => False, -- unused
10652 3 => False, -- unused
10653 4 => False, -- unused
10654 5 => False), -- unused
10657 (1 => False, -- unused
10658 2 => False, -- unused
10659 3 => False, -- unused
10660 4 => False, -- unused
10661 5 => False)); -- unused
10663 --------------------
10664 -- Inline Pragmas --
10665 --------------------
10667 pragma Inline (ABE_Is_Certain);
10668 pragma Inline (Abort_Present);
10669 pragma Inline (Abortable_Part);
10670 pragma Inline (Abstract_Present);
10671 pragma Inline (Accept_Handler_Records);
10672 pragma Inline (Accept_Statement);
10673 pragma Inline (Access_Definition);
10674 pragma Inline (Access_To_Subprogram_Definition);
10675 pragma Inline (Access_Types_To_Process);
10676 pragma Inline (Actions);
10677 pragma Inline (Activation_Chain_Entity);
10678 pragma Inline (Acts_As_Spec);
10679 pragma Inline (Actual_Designated_Subtype);
10680 pragma Inline (Aggregate_Bounds);
10681 pragma Inline (Aliased_Present);
10682 pragma Inline (All_Others);
10683 pragma Inline (All_Present);
10684 pragma Inline (Alternatives);
10685 pragma Inline (Ancestor_Part);
10686 pragma Inline (Array_Aggregate);
10687 pragma Inline (Assignment_OK);
10688 pragma Inline (Associated_Node);
10689 pragma Inline (At_End_Proc);
10690 pragma Inline (Attribute_Name);
10691 pragma Inline (Aux_Decls_Node);
10692 pragma Inline (Backwards_OK);
10693 pragma Inline (Bad_Is_Detected);
10694 pragma Inline (Body_To_Inline);
10695 pragma Inline (Body_Required);
10696 pragma Inline (By_Ref);
10697 pragma Inline (Box_Present);
10698 pragma Inline (Char_Literal_Value);
10699 pragma Inline (Chars);
10700 pragma Inline (Check_Address_Alignment);
10701 pragma Inline (Choice_Parameter);
10702 pragma Inline (Choices);
10703 pragma Inline (Coextensions);
10704 pragma Inline (Comes_From_Extended_Return_Statement);
10705 pragma Inline (Compile_Time_Known_Aggregate);
10706 pragma Inline (Component_Associations);
10707 pragma Inline (Component_Clauses);
10708 pragma Inline (Component_Definition);
10709 pragma Inline (Component_Items);
10710 pragma Inline (Component_List);
10711 pragma Inline (Component_Name);
10712 pragma Inline (Condition);
10713 pragma Inline (Condition_Actions);
10714 pragma Inline (Config_Pragmas);
10715 pragma Inline (Constant_Present);
10716 pragma Inline (Constraint);
10717 pragma Inline (Constraints);
10718 pragma Inline (Context_Installed);
10719 pragma Inline (Context_Items);
10720 pragma Inline (Controlling_Argument);
10721 pragma Inline (Conversion_OK);
10722 pragma Inline (Corresponding_Body);
10723 pragma Inline (Corresponding_Formal_Spec);
10724 pragma Inline (Corresponding_Generic_Association);
10725 pragma Inline (Corresponding_Integer_Value);
10726 pragma Inline (Corresponding_Spec);
10727 pragma Inline (Corresponding_Stub);
10728 pragma Inline (Dcheck_Function);
10729 pragma Inline (Debug_Statement);
10730 pragma Inline (Declarations);
10731 pragma Inline (Default_Expression);
10732 pragma Inline (Default_Name);
10733 pragma Inline (Defining_Identifier);
10734 pragma Inline (Defining_Unit_Name);
10735 pragma Inline (Delay_Alternative);
10736 pragma Inline (Delay_Statement);
10737 pragma Inline (Delta_Expression);
10738 pragma Inline (Digits_Expression);
10739 pragma Inline (Discr_Check_Funcs_Built);
10740 pragma Inline (Discrete_Choices);
10741 pragma Inline (Discrete_Range);
10742 pragma Inline (Discrete_Subtype_Definition);
10743 pragma Inline (Discrete_Subtype_Definitions);
10744 pragma Inline (Discriminant_Specifications);
10745 pragma Inline (Discriminant_Type);
10746 pragma Inline (Do_Accessibility_Check);
10747 pragma Inline (Do_Discriminant_Check);
10748 pragma Inline (Do_Length_Check);
10749 pragma Inline (Do_Division_Check);
10750 pragma Inline (Do_Overflow_Check);
10751 pragma Inline (Do_Range_Check);
10752 pragma Inline (Do_Storage_Check);
10753 pragma Inline (Do_Tag_Check);
10754 pragma Inline (Elaborate_Present);
10755 pragma Inline (Elaborate_All_Desirable);
10756 pragma Inline (Elaborate_All_Present);
10757 pragma Inline (Elaborate_Desirable);
10758 pragma Inline (Elaboration_Boolean);
10759 pragma Inline (Else_Actions);
10760 pragma Inline (Else_Statements);
10761 pragma Inline (Elsif_Parts);
10762 pragma Inline (Enclosing_Variant);
10763 pragma Inline (End_Label);
10764 pragma Inline (End_Span);
10765 pragma Inline (Entity);
10766 pragma Inline (Entity_Or_Associated_Node);
10767 pragma Inline (Entry_Body_Formal_Part);
10768 pragma Inline (Entry_Call_Alternative);
10769 pragma Inline (Entry_Call_Statement);
10770 pragma Inline (Entry_Direct_Name);
10771 pragma Inline (Entry_Index);
10772 pragma Inline (Entry_Index_Specification);
10773 pragma Inline (Etype);
10774 pragma Inline (Exception_Choices);
10775 pragma Inline (Exception_Handlers);
10776 pragma Inline (Exception_Junk);
10777 pragma Inline (Exception_Label);
10778 pragma Inline (Expansion_Delayed);
10779 pragma Inline (Explicit_Actual_Parameter);
10780 pragma Inline (Explicit_Generic_Actual_Parameter);
10781 pragma Inline (Expression);
10782 pragma Inline (Expressions);
10783 pragma Inline (First_Bit);
10784 pragma Inline (First_Inlined_Subprogram);
10785 pragma Inline (First_Name);
10786 pragma Inline (First_Named_Actual);
10787 pragma Inline (First_Real_Statement);
10788 pragma Inline (First_Subtype_Link);
10789 pragma Inline (Float_Truncate);
10790 pragma Inline (Formal_Type_Definition);
10791 pragma Inline (Forwards_OK);
10792 pragma Inline (From_At_Mod);
10793 pragma Inline (From_Default);
10794 pragma Inline (Generic_Associations);
10795 pragma Inline (Generic_Formal_Declarations);
10796 pragma Inline (Generic_Parent);
10797 pragma Inline (Generic_Parent_Type);
10798 pragma Inline (Handled_Statement_Sequence);
10799 pragma Inline (Handler_List_Entry);
10800 pragma Inline (Has_Created_Identifier);
10801 pragma Inline (Has_Dynamic_Length_Check);
10802 pragma Inline (Has_Dynamic_Range_Check);
10803 pragma Inline (Has_Init_Expression);
10804 pragma Inline (Has_Local_Raise);
10805 pragma Inline (Has_Self_Reference);
10806 pragma Inline (Has_No_Elaboration_Code);
10807 pragma Inline (Has_Priority_Pragma);
10808 pragma Inline (Has_Private_View);
10809 pragma Inline (Has_Storage_Size_Pragma);
10810 pragma Inline (Has_Task_Info_Pragma);
10811 pragma Inline (Has_Task_Name_Pragma);
10812 pragma Inline (Has_Wide_Character);
10813 pragma Inline (Hidden_By_Use_Clause);
10814 pragma Inline (High_Bound);
10815 pragma Inline (Identifier);
10816 pragma Inline (Implicit_With);
10817 pragma Inline (Interface_List);
10818 pragma Inline (Interface_Present);
10819 pragma Inline (Includes_Infinities);
10820 pragma Inline (In_Present);
10821 pragma Inline (Instance_Spec);
10822 pragma Inline (Intval);
10823 pragma Inline (Is_Asynchronous_Call_Block);
10824 pragma Inline (Is_Component_Left_Opnd);
10825 pragma Inline (Is_Component_Right_Opnd);
10826 pragma Inline (Is_Controlling_Actual);
10827 pragma Inline (Is_Dynamic_Coextension);
10828 pragma Inline (Is_Entry_Barrier_Function);
10829 pragma Inline (Is_Folded_In_Parser);
10830 pragma Inline (Is_In_Discriminant_Check);
10831 pragma Inline (Is_Machine_Number);
10832 pragma Inline (Is_Null_Loop);
10833 pragma Inline (Is_Overloaded);
10834 pragma Inline (Is_Power_Of_2_For_Shift);
10835 pragma Inline (Is_Protected_Subprogram_Body);
10836 pragma Inline (Is_Static_Coextension);
10837 pragma Inline (Is_Static_Expression);
10838 pragma Inline (Is_Subprogram_Descriptor);
10839 pragma Inline (Is_Task_Allocation_Block);
10840 pragma Inline (Is_Task_Master);
10841 pragma Inline (Iteration_Scheme);
10842 pragma Inline (Itype);
10843 pragma Inline (Kill_Range_Check);
10844 pragma Inline (Last_Bit);
10845 pragma Inline (Last_Name);
10846 pragma Inline (Library_Unit);
10847 pragma Inline (Label_Construct);
10848 pragma Inline (Left_Opnd);
10849 pragma Inline (Limited_View_Installed);
10850 pragma Inline (Limited_Present);
10851 pragma Inline (Literals);
10852 pragma Inline (Local_Raise_Not_OK);
10853 pragma Inline (Local_Raise_Statements);
10854 pragma Inline (Loop_Actions);
10855 pragma Inline (Loop_Parameter_Specification);
10856 pragma Inline (Low_Bound);
10857 pragma Inline (Mod_Clause);
10858 pragma Inline (More_Ids);
10859 pragma Inline (Must_Be_Byte_Aligned);
10860 pragma Inline (Must_Not_Freeze);
10861 pragma Inline (Must_Not_Override);
10862 pragma Inline (Must_Override);
10863 pragma Inline (Name);
10864 pragma Inline (Names);
10865 pragma Inline (Next_Entity);
10866 pragma Inline (Next_Named_Actual);
10867 pragma Inline (Next_Rep_Item);
10868 pragma Inline (Next_Use_Clause);
10869 pragma Inline (No_Ctrl_Actions);
10870 pragma Inline (No_Elaboration_Check);
10871 pragma Inline (No_Entities_Ref_In_Spec);
10872 pragma Inline (No_Initialization);
10873 pragma Inline (No_Truncation);
10874 pragma Inline (Null_Present);
10875 pragma Inline (Null_Exclusion_Present);
10876 pragma Inline (Null_Record_Present);
10877 pragma Inline (Object_Definition);
10878 pragma Inline (Original_Discriminant);
10879 pragma Inline (Original_Entity);
10880 pragma Inline (Others_Discrete_Choices);
10881 pragma Inline (Out_Present);
10882 pragma Inline (Parameter_Associations);
10883 pragma Inline (Parameter_Specifications);
10884 pragma Inline (Parameter_List_Truncated);
10885 pragma Inline (Parameter_Type);
10886 pragma Inline (Parent_Spec);
10887 pragma Inline (Position);
10888 pragma Inline (Pragma_Argument_Associations);
10889 pragma Inline (Pragmas_After);
10890 pragma Inline (Pragmas_Before);
10891 pragma Inline (Prefix);
10892 pragma Inline (Present_Expr);
10893 pragma Inline (Prev_Ids);
10894 pragma Inline (Print_In_Hex);
10895 pragma Inline (Private_Declarations);
10896 pragma Inline (Private_Present);
10897 pragma Inline (Procedure_To_Call);
10898 pragma Inline (Proper_Body);
10899 pragma Inline (Protected_Definition);
10900 pragma Inline (Protected_Present);
10901 pragma Inline (Raises_Constraint_Error);
10902 pragma Inline (Range_Constraint);
10903 pragma Inline (Range_Expression);
10904 pragma Inline (Real_Range_Specification);
10905 pragma Inline (Realval);
10906 pragma Inline (Reason);
10907 pragma Inline (Record_Extension_Part);
10908 pragma Inline (Redundant_Use);
10909 pragma Inline (Renaming_Exception);
10910 pragma Inline (Result_Definition);
10911 pragma Inline (Return_Object_Declarations);
10912 pragma Inline (Return_Statement_Entity);
10913 pragma Inline (Reverse_Present);
10914 pragma Inline (Right_Opnd);
10915 pragma Inline (Rounded_Result);
10916 pragma Inline (Scope);
10917 pragma Inline (Select_Alternatives);
10918 pragma Inline (Selector_Name);
10919 pragma Inline (Selector_Names);
10920 pragma Inline (Shift_Count_OK);
10921 pragma Inline (Source_Type);
10922 pragma Inline (Specification);
10923 pragma Inline (Statements);
10924 pragma Inline (Static_Processing_OK);
10925 pragma Inline (Storage_Pool);
10926 pragma Inline (Strval);
10927 pragma Inline (Subtype_Indication);
10928 pragma Inline (Subtype_Mark);
10929 pragma Inline (Subtype_Marks);
10930 pragma Inline (Synchronized_Present);
10931 pragma Inline (Tagged_Present);
10932 pragma Inline (Target_Type);
10933 pragma Inline (Task_Definition);
10934 pragma Inline (Task_Present);
10935 pragma Inline (Then_Actions);
10936 pragma Inline (Then_Statements);
10937 pragma Inline (Triggering_Alternative);
10938 pragma Inline (Triggering_Statement);
10939 pragma Inline (Treat_Fixed_As_Integer);
10940 pragma Inline (TSS_Elist);
10941 pragma Inline (Type_Definition);
10942 pragma Inline (Unit);
10943 pragma Inline (Unknown_Discriminants_Present);
10944 pragma Inline (Unreferenced_In_Spec);
10945 pragma Inline (Variant_Part);
10946 pragma Inline (Variants);
10947 pragma Inline (Visible_Declarations);
10948 pragma Inline (Was_Originally_Stub);
10949 pragma Inline (Zero_Cost_Handling);
10951 pragma Inline (Set_ABE_Is_Certain);
10952 pragma Inline (Set_Abort_Present);
10953 pragma Inline (Set_Abortable_Part);
10954 pragma Inline (Set_Abstract_Present);
10955 pragma Inline (Set_Accept_Handler_Records);
10956 pragma Inline (Set_Accept_Statement);
10957 pragma Inline (Set_Access_Definition);
10958 pragma Inline (Set_Access_To_Subprogram_Definition);
10959 pragma Inline (Set_Access_Types_To_Process);
10960 pragma Inline (Set_Actions);
10961 pragma Inline (Set_Activation_Chain_Entity);
10962 pragma Inline (Set_Acts_As_Spec);
10963 pragma Inline (Set_Actual_Designated_Subtype);
10964 pragma Inline (Set_Aggregate_Bounds);
10965 pragma Inline (Set_Aliased_Present);
10966 pragma Inline (Set_All_Others);
10967 pragma Inline (Set_All_Present);
10968 pragma Inline (Set_Alternatives);
10969 pragma Inline (Set_Ancestor_Part);
10970 pragma Inline (Set_Array_Aggregate);
10971 pragma Inline (Set_Assignment_OK);
10972 pragma Inline (Set_Associated_Node);
10973 pragma Inline (Set_At_End_Proc);
10974 pragma Inline (Set_Attribute_Name);
10975 pragma Inline (Set_Aux_Decls_Node);
10976 pragma Inline (Set_Backwards_OK);
10977 pragma Inline (Set_Bad_Is_Detected);
10978 pragma Inline (Set_Body_To_Inline);
10979 pragma Inline (Set_Body_Required);
10980 pragma Inline (Set_By_Ref);
10981 pragma Inline (Set_Box_Present);
10982 pragma Inline (Set_Char_Literal_Value);
10983 pragma Inline (Set_Chars);
10984 pragma Inline (Set_Check_Address_Alignment);
10985 pragma Inline (Set_Choice_Parameter);
10986 pragma Inline (Set_Choices);
10987 pragma Inline (Set_Coextensions);
10988 pragma Inline (Set_Comes_From_Extended_Return_Statement);
10989 pragma Inline (Set_Compile_Time_Known_Aggregate);
10990 pragma Inline (Set_Component_Associations);
10991 pragma Inline (Set_Component_Clauses);
10992 pragma Inline (Set_Component_Definition);
10993 pragma Inline (Set_Component_Items);
10994 pragma Inline (Set_Component_List);
10995 pragma Inline (Set_Component_Name);
10996 pragma Inline (Set_Condition);
10997 pragma Inline (Set_Condition_Actions);
10998 pragma Inline (Set_Config_Pragmas);
10999 pragma Inline (Set_Constant_Present);
11000 pragma Inline (Set_Constraint);
11001 pragma Inline (Set_Constraints);
11002 pragma Inline (Set_Context_Installed);
11003 pragma Inline (Set_Context_Items);
11004 pragma Inline (Set_Controlling_Argument);
11005 pragma Inline (Set_Conversion_OK);
11006 pragma Inline (Set_Corresponding_Body);
11007 pragma Inline (Set_Corresponding_Formal_Spec);
11008 pragma Inline (Set_Corresponding_Generic_Association);
11009 pragma Inline (Set_Corresponding_Integer_Value);
11010 pragma Inline (Set_Corresponding_Spec);
11011 pragma Inline (Set_Corresponding_Stub);
11012 pragma Inline (Set_Dcheck_Function);
11013 pragma Inline (Set_Debug_Statement);
11014 pragma Inline (Set_Declarations);
11015 pragma Inline (Set_Default_Expression);
11016 pragma Inline (Set_Default_Name);
11017 pragma Inline (Set_Defining_Identifier);
11018 pragma Inline (Set_Defining_Unit_Name);
11019 pragma Inline (Set_Delay_Alternative);
11020 pragma Inline (Set_Delay_Statement);
11021 pragma Inline (Set_Delta_Expression);
11022 pragma Inline (Set_Digits_Expression);
11023 pragma Inline (Set_Discr_Check_Funcs_Built);
11024 pragma Inline (Set_Discrete_Choices);
11025 pragma Inline (Set_Discrete_Range);
11026 pragma Inline (Set_Discrete_Subtype_Definition);
11027 pragma Inline (Set_Discrete_Subtype_Definitions);
11028 pragma Inline (Set_Discriminant_Specifications);
11029 pragma Inline (Set_Discriminant_Type);
11030 pragma Inline (Set_Do_Accessibility_Check);
11031 pragma Inline (Set_Do_Discriminant_Check);
11032 pragma Inline (Set_Do_Length_Check);
11033 pragma Inline (Set_Do_Division_Check);
11034 pragma Inline (Set_Do_Overflow_Check);
11035 pragma Inline (Set_Do_Range_Check);
11036 pragma Inline (Set_Do_Storage_Check);
11037 pragma Inline (Set_Do_Tag_Check);
11038 pragma Inline (Set_Elaborate_Present);
11039 pragma Inline (Set_Elaborate_All_Desirable);
11040 pragma Inline (Set_Elaborate_All_Present);
11041 pragma Inline (Set_Elaborate_Desirable);
11042 pragma Inline (Set_Elaboration_Boolean);
11043 pragma Inline (Set_Else_Actions);
11044 pragma Inline (Set_Else_Statements);
11045 pragma Inline (Set_Elsif_Parts);
11046 pragma Inline (Set_Enclosing_Variant);
11047 pragma Inline (Set_End_Label);
11048 pragma Inline (Set_End_Span);
11049 pragma Inline (Set_Entity);
11050 pragma Inline (Set_Entry_Body_Formal_Part);
11051 pragma Inline (Set_Entry_Call_Alternative);
11052 pragma Inline (Set_Entry_Call_Statement);
11053 pragma Inline (Set_Entry_Direct_Name);
11054 pragma Inline (Set_Entry_Index);
11055 pragma Inline (Set_Entry_Index_Specification);
11056 pragma Inline (Set_Etype);
11057 pragma Inline (Set_Exception_Choices);
11058 pragma Inline (Set_Exception_Handlers);
11059 pragma Inline (Set_Exception_Junk);
11060 pragma Inline (Set_Exception_Label);
11061 pragma Inline (Set_Expansion_Delayed);
11062 pragma Inline (Set_Explicit_Actual_Parameter);
11063 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11064 pragma Inline (Set_Expression);
11065 pragma Inline (Set_Expressions);
11066 pragma Inline (Set_First_Bit);
11067 pragma Inline (Set_First_Inlined_Subprogram);
11068 pragma Inline (Set_First_Name);
11069 pragma Inline (Set_First_Named_Actual);
11070 pragma Inline (Set_First_Real_Statement);
11071 pragma Inline (Set_First_Subtype_Link);
11072 pragma Inline (Set_Float_Truncate);
11073 pragma Inline (Set_Formal_Type_Definition);
11074 pragma Inline (Set_Forwards_OK);
11075 pragma Inline (Set_From_At_Mod);
11076 pragma Inline (Set_From_Default);
11077 pragma Inline (Set_Generic_Associations);
11078 pragma Inline (Set_Generic_Formal_Declarations);
11079 pragma Inline (Set_Generic_Parent);
11080 pragma Inline (Set_Generic_Parent_Type);
11081 pragma Inline (Set_Handled_Statement_Sequence);
11082 pragma Inline (Set_Handler_List_Entry);
11083 pragma Inline (Set_Has_Created_Identifier);
11084 pragma Inline (Set_Has_Dynamic_Length_Check);
11085 pragma Inline (Set_Has_Init_Expression);
11086 pragma Inline (Set_Has_Local_Raise);
11087 pragma Inline (Set_Has_Dynamic_Range_Check);
11088 pragma Inline (Set_Has_No_Elaboration_Code);
11089 pragma Inline (Set_Has_Priority_Pragma);
11090 pragma Inline (Set_Has_Private_View);
11091 pragma Inline (Set_Has_Storage_Size_Pragma);
11092 pragma Inline (Set_Has_Task_Info_Pragma);
11093 pragma Inline (Set_Has_Task_Name_Pragma);
11094 pragma Inline (Set_Has_Wide_Character);
11095 pragma Inline (Set_Hidden_By_Use_Clause);
11096 pragma Inline (Set_High_Bound);
11097 pragma Inline (Set_Identifier);
11098 pragma Inline (Set_Implicit_With);
11099 pragma Inline (Set_Includes_Infinities);
11100 pragma Inline (Set_Interface_List);
11101 pragma Inline (Set_Interface_Present);
11102 pragma Inline (Set_In_Present);
11103 pragma Inline (Set_Instance_Spec);
11104 pragma Inline (Set_Intval);
11105 pragma Inline (Set_Is_Asynchronous_Call_Block);
11106 pragma Inline (Set_Is_Component_Left_Opnd);
11107 pragma Inline (Set_Is_Component_Right_Opnd);
11108 pragma Inline (Set_Is_Controlling_Actual);
11109 pragma Inline (Set_Is_Dynamic_Coextension);
11110 pragma Inline (Set_Is_Entry_Barrier_Function);
11111 pragma Inline (Set_Is_Folded_In_Parser);
11112 pragma Inline (Set_Is_In_Discriminant_Check);
11113 pragma Inline (Set_Is_Machine_Number);
11114 pragma Inline (Set_Is_Null_Loop);
11115 pragma Inline (Set_Is_Overloaded);
11116 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11117 pragma Inline (Set_Is_Protected_Subprogram_Body);
11118 pragma Inline (Set_Has_Self_Reference);
11119 pragma Inline (Set_Is_Static_Coextension);
11120 pragma Inline (Set_Is_Static_Expression);
11121 pragma Inline (Set_Is_Subprogram_Descriptor);
11122 pragma Inline (Set_Is_Task_Allocation_Block);
11123 pragma Inline (Set_Is_Task_Master);
11124 pragma Inline (Set_Iteration_Scheme);
11125 pragma Inline (Set_Itype);
11126 pragma Inline (Set_Kill_Range_Check);
11127 pragma Inline (Set_Last_Bit);
11128 pragma Inline (Set_Last_Name);
11129 pragma Inline (Set_Library_Unit);
11130 pragma Inline (Set_Label_Construct);
11131 pragma Inline (Set_Left_Opnd);
11132 pragma Inline (Set_Limited_View_Installed);
11133 pragma Inline (Set_Limited_Present);
11134 pragma Inline (Set_Literals);
11135 pragma Inline (Set_Local_Raise_Not_OK);
11136 pragma Inline (Set_Local_Raise_Statements);
11137 pragma Inline (Set_Loop_Actions);
11138 pragma Inline (Set_Loop_Parameter_Specification);
11139 pragma Inline (Set_Low_Bound);
11140 pragma Inline (Set_Mod_Clause);
11141 pragma Inline (Set_More_Ids);
11142 pragma Inline (Set_Must_Be_Byte_Aligned);
11143 pragma Inline (Set_Must_Not_Freeze);
11144 pragma Inline (Set_Must_Not_Override);
11145 pragma Inline (Set_Must_Override);
11146 pragma Inline (Set_Name);
11147 pragma Inline (Set_Names);
11148 pragma Inline (Set_Next_Entity);
11149 pragma Inline (Set_Next_Named_Actual);
11150 pragma Inline (Set_Next_Use_Clause);
11151 pragma Inline (Set_No_Ctrl_Actions);
11152 pragma Inline (Set_No_Elaboration_Check);
11153 pragma Inline (Set_No_Entities_Ref_In_Spec);
11154 pragma Inline (Set_No_Initialization);
11155 pragma Inline (Set_No_Truncation);
11156 pragma Inline (Set_Null_Present);
11157 pragma Inline (Set_Null_Exclusion_Present);
11158 pragma Inline (Set_Null_Record_Present);
11159 pragma Inline (Set_Object_Definition);
11160 pragma Inline (Set_Original_Discriminant);
11161 pragma Inline (Set_Original_Entity);
11162 pragma Inline (Set_Others_Discrete_Choices);
11163 pragma Inline (Set_Out_Present);
11164 pragma Inline (Set_Parameter_Associations);
11165 pragma Inline (Set_Parameter_Specifications);
11166 pragma Inline (Set_Parameter_List_Truncated);
11167 pragma Inline (Set_Parameter_Type);
11168 pragma Inline (Set_Parent_Spec);
11169 pragma Inline (Set_Position);
11170 pragma Inline (Set_Pragma_Argument_Associations);
11171 pragma Inline (Set_Pragmas_After);
11172 pragma Inline (Set_Pragmas_Before);
11173 pragma Inline (Set_Prefix);
11174 pragma Inline (Set_Present_Expr);
11175 pragma Inline (Set_Prev_Ids);
11176 pragma Inline (Set_Print_In_Hex);
11177 pragma Inline (Set_Private_Declarations);
11178 pragma Inline (Set_Private_Present);
11179 pragma Inline (Set_Procedure_To_Call);
11180 pragma Inline (Set_Proper_Body);
11181 pragma Inline (Set_Protected_Definition);
11182 pragma Inline (Set_Protected_Present);
11183 pragma Inline (Set_Raises_Constraint_Error);
11184 pragma Inline (Set_Range_Constraint);
11185 pragma Inline (Set_Range_Expression);
11186 pragma Inline (Set_Real_Range_Specification);
11187 pragma Inline (Set_Realval);
11188 pragma Inline (Set_Reason);
11189 pragma Inline (Set_Record_Extension_Part);
11190 pragma Inline (Set_Redundant_Use);
11191 pragma Inline (Set_Renaming_Exception);
11192 pragma Inline (Set_Result_Definition);
11193 pragma Inline (Set_Return_Object_Declarations);
11194 pragma Inline (Set_Reverse_Present);
11195 pragma Inline (Set_Right_Opnd);
11196 pragma Inline (Set_Rounded_Result);
11197 pragma Inline (Set_Scope);
11198 pragma Inline (Set_Select_Alternatives);
11199 pragma Inline (Set_Selector_Name);
11200 pragma Inline (Set_Selector_Names);
11201 pragma Inline (Set_Shift_Count_OK);
11202 pragma Inline (Set_Source_Type);
11203 pragma Inline (Set_Specification);
11204 pragma Inline (Set_Statements);
11205 pragma Inline (Set_Static_Processing_OK);
11206 pragma Inline (Set_Storage_Pool);
11207 pragma Inline (Set_Strval);
11208 pragma Inline (Set_Subtype_Indication);
11209 pragma Inline (Set_Subtype_Mark);
11210 pragma Inline (Set_Subtype_Marks);
11211 pragma Inline (Set_Synchronized_Present);
11212 pragma Inline (Set_Tagged_Present);
11213 pragma Inline (Set_Target_Type);
11214 pragma Inline (Set_Task_Definition);
11215 pragma Inline (Set_Task_Present);
11216 pragma Inline (Set_Then_Actions);
11217 pragma Inline (Set_Then_Statements);
11218 pragma Inline (Set_Triggering_Alternative);
11219 pragma Inline (Set_Triggering_Statement);
11220 pragma Inline (Set_Treat_Fixed_As_Integer);
11221 pragma Inline (Set_TSS_Elist);
11222 pragma Inline (Set_Type_Definition);
11223 pragma Inline (Set_Unit);
11224 pragma Inline (Set_Unknown_Discriminants_Present);
11225 pragma Inline (Set_Unreferenced_In_Spec);
11226 pragma Inline (Set_Variant_Part);
11227 pragma Inline (Set_Variants);
11228 pragma Inline (Set_Visible_Declarations);
11229 pragma Inline (Set_Was_Originally_Stub);
11230 pragma Inline (Set_Zero_Cost_Handling);
11232 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11233 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11234 -- should refer to N_Simple_Return_Statement.