2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
[official-gcc.git] / gcc / ada / sinfo.ads
blob560d6c24b95d2777bcda6234371647b833e09c90
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2012, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
54 package Sinfo is
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
84 -- If a new tree node is added, then the following changes are made
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- In the body (sinfo), add entries to the access functions for all
90 -- its fields (except standard expression fields) to include the new
91 -- node in the checks.
92 -- Add an appropriate section to the case statement in sprint.adb
93 -- Add an appropriate section to the case statement in sem.adb
94 -- Add an appropriate section to the case statement in exp_util.adb
95 -- (Insert_Actions procedure)
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_eval.adb
98 -- For a subexpression, add an appropriate section to the case
99 -- statement in sem_res.adb
101 -- Finally, four utility programs must be run:
103 -- (Optional.) Run CSinfo to check that you have made the changes
104 -- consistently. It checks most of the rules given above. This utility
105 -- reads sinfo.ads and sinfo.adb and generates a report to standard
106 -- output. This step is optional because XSinfo runs CSinfo.
108 -- Run XSinfo to create sinfo.h, the corresponding C header. This
109 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
110 -- not need to read sinfo.adb, since the contents of the body are
111 -- algorithmically determinable from the spec.
113 -- Run XTreeprs to create treeprs.ads, an updated version of the module
114 -- that is used to drive the tree print routine. This utility reads (but
115 -- does not modify) treeprs.adt, the template that provides the basic
116 -- structure of the file, and then fills in the data from the comments
117 -- in sinfo.ads.
119 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
120 -- spec of the Nmake package which contains functions for constructing
121 -- nodes.
123 -- The above steps are done automatically by the build scripts when you do
124 -- a full bootstrap.
126 -- Note: sometime we could write a utility that actually generated the body
127 -- of sinfo from the spec instead of simply checking it, since, as noted
128 -- above, the contents of the body can be determined from the spec.
130 --------------------------------
131 -- Implicit Nodes in the Tree --
132 --------------------------------
134 -- Generally the structure of the tree very closely follows the grammar as
135 -- defined in the RM. However, certain nodes are omitted to save space and
136 -- simplify semantic processing. Two general classes of such omitted nodes
137 -- are as follows:
139 -- If the only possibilities for a non-terminal are one or more other
140 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
141 -- corresponding node is omitted from the tree, and the target construct
142 -- appears directly. For example, a real type definition is either
143 -- floating point definition or a fixed point definition. No explicit node
144 -- appears for real type definition. Instead either the floating point
145 -- definition or fixed point definition appears directly.
147 -- If a non-terminal corresponds to a list of some other non-terminal
148 -- (possibly with separating punctuation), then usually it is omitted from
149 -- the tree, and a list of components appears instead. For example,
150 -- sequence of statements does not appear explicitly in the tree. Instead
151 -- a list of statements appears directly.
153 -- Some additional cases of omitted nodes occur and are documented
154 -- individually. In particular, many nodes are omitted in the tree
155 -- generated for an expression.
157 -------------------------------------------
158 -- Handling of Defining Identifier Lists --
159 -------------------------------------------
161 -- In several declarative forms in the syntax, lists of defining
162 -- identifiers appear (object declarations, component declarations, number
163 -- declarations etc.)
165 -- The semantics of such statements are equivalent to a series of identical
166 -- declarations of single defining identifiers (except that conformance
167 -- checks require the same grouping of identifiers in the parameter case).
169 -- To simplify semantic processing, the parser breaks down such multiple
170 -- declaration cases into sequences of single declarations, duplicating
171 -- type and initialization information as required. The flags More_Ids and
172 -- Prev_Ids are used to record the original form of the source in the case
173 -- where the original source used a list of names, More_Ids being set on
174 -- all but the last name and Prev_Ids being set on all but the first name.
175 -- These flags are used to reconstruct the original source (e.g. in the
176 -- Sprint package), and also are included in the conformance checks, but
177 -- otherwise have no semantic significance.
179 -- Note: the reason that we use More_Ids and Prev_Ids rather than
180 -- First_Name and Last_Name flags is so that the flags are off in the
181 -- normal one identifier case, which minimizes tree print output.
183 -----------------------
184 -- Use of Node Lists --
185 -----------------------
187 -- With a few exceptions, if a construction of the form {non-terminal}
188 -- appears in the tree, lists are used in the corresponding tree node (see
189 -- package Nlists for handling of node lists). In this case a field of the
190 -- parent node points to a list of nodes for the non-terminal. The field
191 -- name for such fields has a plural name which always ends in "s". For
192 -- example, a case statement has a field Alternatives pointing to list of
193 -- case statement alternative nodes.
195 -- Only fields pointing to lists have names ending in "s", so generally the
196 -- structure is strongly typed, fields not ending in s point to single
197 -- nodes, and fields ending in s point to lists.
199 -- The following example shows how a traversal of a list is written. We
200 -- suppose here that Stmt points to a N_Case_Statement node which has a
201 -- list field called Alternatives:
203 -- Alt := First (Alternatives (Stmt));
204 -- while Present (Alt) loop
205 -- ..
206 -- -- processing for case statement alternative Alt
207 -- ..
208 -- Alt := Next (Alt);
209 -- end loop;
211 -- The Present function tests for Empty, which in this case signals the end
212 -- of the list. First returns Empty immediately if the list is empty.
213 -- Present is defined in Atree, First and Next are defined in Nlists.
215 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216 -- contexts, which is handled as described in the previous section, and
217 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218 -- using the First_Name and Last_Name flags, as further detailed in the
219 -- description of the N_With_Clause node.
221 -------------
222 -- Pragmas --
223 -------------
225 -- Pragmas can appear in many different context, but are not included in
226 -- the grammar. Still they must appear in the tree, so they can be properly
227 -- processed.
229 -- Two approaches are used. In some cases, an extra field is defined in an
230 -- appropriate node that contains a list of pragmas appearing in the
231 -- expected context. For example pragmas can appear before an
232 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
235 -- The other approach is to simply allow pragmas to appear in syntactic
236 -- lists where the grammar (of course) does not include the possibility.
237 -- For example, the Variants field of an N_Variant_Part node points to a
238 -- list that can contain both N_Pragma and N_Variant nodes.
240 -- To make processing easier in the latter case, the Nlists package
241 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243 -- ignoring all pragmas.
245 -- In the case of the variants list, we can either write:
247 -- Variant := First (Variants (N));
248 -- while Present (Variant) loop
249 -- ...
250 -- Variant := Next (Variant);
251 -- end loop;
253 -- or
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
257 -- ...
258 -- Variant := Next_Non_Pragma (Variant);
259 -- end loop;
261 -- In the first form of the loop, Variant can either be an N_Pragma or an
262 -- N_Variant node. In the second form, Variant can only be N_Variant since
263 -- all pragmas are skipped.
265 ---------------------
266 -- Optional Fields --
267 ---------------------
269 -- Fields which correspond to a section of the syntax enclosed in square
270 -- brackets are generally omitted (and the corresponding field set to Empty
271 -- for a node, or No_List for a list). The documentation of such fields
272 -- notes these cases. One exception to this rule occurs in the case of
273 -- possibly empty statement sequences (such as the sequence of statements
274 -- in an entry call alternative). Such cases appear in the syntax rules as
275 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276 -- statement sequences always contain an empty list (not No_List) if no
277 -- statements are present.
279 -- Note: the utility program that constructs the body and spec of the Nmake
280 -- package relies on the format of the comments to determine if a field
281 -- should have a default value in the corresponding make routine. The rule
282 -- is that if the first line of the description of the field contains the
283 -- string "(set to xxx if", then a default value of xxx is provided for
284 -- this field in the corresponding Make_yyy routine.
286 -----------------------------------
287 -- Note on Body/Spec Terminology --
288 -----------------------------------
290 -- In informal discussions about Ada, it is customary to refer to package
291 -- and subprogram specs and bodies. However, this is not technically
292 -- correct, what is normally referred to as a spec or specification is in
293 -- fact a package declaration or subprogram declaration. We are careful in
294 -- GNAT to use the correct terminology and in particular, the full word
295 -- specification is never used as an incorrect substitute for declaration.
296 -- The structure and terminology used in the tree also reflects the grammar
297 -- and thus uses declaration and specification in the technically correct
298 -- manner.
300 -- However, there are contexts in which the informal terminology is useful.
301 -- We have the word "body" to refer to the Interp_Etype declared by the
302 -- declaration of a unit body, and in some contexts we need similar term to
303 -- refer to the entity declared by the package or subprogram declaration,
304 -- and simply using declaration can be confusing since the body also has a
305 -- declaration.
307 -- An example of such a context is the link between the package body and
308 -- its declaration. With_Declaration is confusing, since the package body
309 -- itself is a declaration.
311 -- To deal with this problem, we reserve the informal term Spec, i.e. the
312 -- popular abbreviation used in this context, to refer to the entity
313 -- declared by the package or subprogram declaration. So in the above
314 -- example case, the field in the body is called With_Spec.
316 -- Another important context for the use of the word Spec is in error
317 -- messages, where a hyper-correct use of declaration would be confusing to
318 -- a typical Ada programmer, and even for an expert programmer can cause
319 -- confusion since the body has a declaration as well.
321 -- So, to summarize:
323 -- Declaration always refers to the syntactic entity that is called
324 -- a declaration. In particular, subprogram declaration
325 -- and package declaration are used to describe the
326 -- syntactic entity that includes the semicolon.
328 -- Specification always refers to the syntactic entity that is called
329 -- a specification. In particular, the terms procedure
330 -- specification, function specification, package
331 -- specification, subprogram specification always refer
332 -- to the syntactic entity that has no semicolon.
334 -- Spec is an informal term, used to refer to the entity
335 -- that is declared by a task declaration, protected
336 -- declaration, generic declaration, subprogram
337 -- declaration or package declaration.
339 -- This convention is followed throughout the GNAT documentation
340 -- both internal and external, and in all error message text.
342 ------------------------
343 -- Internal Use Nodes --
344 ------------------------
346 -- These are Node_Kind settings used in the internal implementation which
347 -- are not logically part of the specification.
349 -- N_Unused_At_Start
350 -- Completely unused entry at the start of the enumeration type. This
351 -- is inserted so that no legitimate value is zero, which helps to get
352 -- better debugging behavior, since zero is a likely uninitialized value).
354 -- N_Unused_At_End
355 -- Completely unused entry at the end of the enumeration type. This is
356 -- handy so that arrays with Node_Kind as the index type have an extra
357 -- entry at the end (see for example the use of the Pchar_Pos_Array in
358 -- Treepr, where the extra entry provides the limit value when dealing with
359 -- the last used entry in the array).
361 -----------------------------------------
362 -- Note on the settings of Sloc fields --
363 -----------------------------------------
365 -- The Sloc field of nodes that come from the source is set by the parser.
366 -- For internal nodes, and nodes generated during expansion the Sloc is
367 -- usually set in the call to the constructor for the node. In general the
368 -- Sloc value chosen for an internal node is the Sloc of the source node
369 -- whose processing is responsible for the expansion. For example, the Sloc
370 -- of an inherited primitive operation is the Sloc of the corresponding
371 -- derived type declaration.
373 -- For the nodes of a generic instantiation, the Sloc value is encoded to
374 -- represent both the original Sloc in the generic unit, and the Sloc of
375 -- the instantiation itself. See Sinput.ads for details.
377 -- Subprogram instances create two callable entities: one is the visible
378 -- subprogram instance, and the other is an anonymous subprogram nested
379 -- within a wrapper package that contains the renamings for the actuals.
380 -- Both of these entities have the Sloc of the defining entity in the
381 -- instantiation node. This simplifies some ASIS queries.
383 -----------------------
384 -- Field Definitions --
385 -----------------------
387 -- In the following node definitions, all fields, both syntactic and
388 -- semantic, are documented. The one exception is in the case of entities
389 -- (defining identifiers, character literals and operator symbols), where
390 -- the usage of the fields depends on the entity kind. Entity fields are
391 -- fully documented in the separate package Einfo.
393 -- In the node definitions, three common sets of fields are abbreviated to
394 -- save both space in the documentation, and also space in the string
395 -- (defined in Tree_Print_Strings) used to print trees. The following
396 -- abbreviations are used:
398 -- Note: the utility program that creates the Treeprs spec (in the file
399 -- xtreeprs.adb) knows about the special fields here, so it must be
400 -- modified if any change is made to these fields.
402 -- "plus fields for binary operator"
403 -- Chars (Name1) Name_Id for the operator
404 -- Left_Opnd (Node2) left operand expression
405 -- Right_Opnd (Node3) right operand expression
406 -- Entity (Node4-Sem) defining entity for operator
407 -- Associated_Node (Node4-Sem) for generic processing
408 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
409 -- Has_Private_View (Flag11-Sem) set in generic units.
411 -- "plus fields for unary operator"
412 -- Chars (Name1) Name_Id for the operator
413 -- Right_Opnd (Node3) right operand expression
414 -- Entity (Node4-Sem) defining entity for operator
415 -- Associated_Node (Node4-Sem) for generic processing
416 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
417 -- Has_Private_View (Flag11-Sem) set in generic units.
419 -- "plus fields for expression"
420 -- Paren_Count number of parentheses levels
421 -- Etype (Node5-Sem) type of the expression
422 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
423 -- Is_Static_Expression (Flag6-Sem) set for static expression
424 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
425 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
426 -- Do_Range_Check (Flag9-Sem) set if a range check needed
427 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
428 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
429 -- Assignment_OK (Flag15-Sem) set if modification is OK
430 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
432 -- Note: see under (EXPRESSION) for further details on the use of
433 -- the Paren_Count field to record the number of parentheses levels.
435 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
436 -- The actual definition of this type is given later (the reason for this
437 -- is that we want the descriptions ordered by logical chapter in the RM,
438 -- but the type definition is reordered to facilitate the definition of
439 -- some subtype ranges. The individual descriptions of the nodes show how
440 -- the various fields are used in each node kind, as well as providing
441 -- logical names for the fields. Functions and procedures are provided for
442 -- accessing and setting these fields using these logical names.
444 -----------------------
445 -- Gigi Restrictions --
446 -----------------------
448 -- The tree passed to Gigi is more restricted than the general tree form.
449 -- For example, as a result of expansion, most of the tasking nodes can
450 -- never appear. For each node to which either a complete or partial
451 -- restriction applies, a note entitled "Gigi restriction" appears which
452 -- documents the restriction.
454 -- Note that most of these restrictions apply only to trees generated when
455 -- code is being generated, since they involved expander actions that
456 -- destroy the tree.
458 ------------------------
459 -- Common Flag Fields --
460 ------------------------
462 -- The following flag fields appear in all nodes
464 -- Analyzed
465 -- This flag is used to indicate that a node (and all its children have
466 -- been analyzed. It is used to avoid reanalysis of a node that has
467 -- already been analyzed, both for efficiency and functional correctness
468 -- reasons.
470 -- Comes_From_Source
471 -- This flag is set if the node comes directly from an explicit construct
472 -- in the source. It is normally on for any nodes built by the scanner or
473 -- parser from the source program, with the exception that in a few cases
474 -- the parser adds nodes to normalize the representation (in particular
475 -- a null statement is added to a package body if there is no begin/end
476 -- initialization section.
478 -- Most nodes inserted by the analyzer or expander are not considered
479 -- as coming from source, so the flag is off for such nodes. In a few
480 -- cases, the expander constructs nodes closely equivalent to nodes
481 -- from the source program (e.g. the allocator built for build-in-place
482 -- case), and the Comes_From_Source flag is deliberately set.
484 -- Error_Posted
485 -- This flag is used to avoid multiple error messages being posted on or
486 -- referring to the same node. This flag is set if an error message
487 -- refers to a node or is posted on its source location, and has the
488 -- effect of inhibiting further messages involving this same node.
490 ------------------------------------
491 -- Description of Semantic Fields --
492 ------------------------------------
494 -- The meaning of the syntactic fields is generally clear from their names
495 -- without any further description, since the names are chosen to
496 -- correspond very closely to the syntax in the reference manual. This
497 -- section describes the usage of the semantic fields, which are used to
498 -- contain additional information determined during semantic analysis.
500 -- ABE_Is_Certain (Flag18-Sem)
501 -- This flag is set in an instantiation node or a call node is determined
502 -- to be sure to raise an ABE. This is used to trigger special handling
503 -- of such cases, particularly in the instantiation case where we avoid
504 -- instantiating the body if this flag is set. This flag is also present
505 -- in an N_Formal_Package_Declaration_Node since formal package
506 -- declarations are treated like instantiations, but it is always set to
507 -- False in this context.
509 -- Accept_Handler_Records (List5-Sem)
510 -- This field is present only in an N_Accept_Alternative node. It is used
511 -- to temporarily hold the exception handler records from an accept
512 -- statement in a selective accept. These exception handlers will
513 -- eventually be placed in the Handler_Records list of the procedure
514 -- built for this accept (see Expand_N_Selective_Accept procedure in
515 -- Exp_Ch9 for further details).
517 -- Access_Types_To_Process (Elist2-Sem)
518 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
519 -- Contains the list of access types which may require specific treatment
520 -- when the nature of the type completion is completely known. An example
521 -- of such treatment is the generation of the associated_final_chain.
523 -- Actions (List1-Sem)
524 -- This field contains a sequence of actions that are associated with the
525 -- node holding the field. See the individual node types for details of
526 -- how this field is used, as well as the description of the specific use
527 -- for a particular node type.
529 -- Activation_Chain_Entity (Node3-Sem)
530 -- This is used in tree nodes representing task activators (blocks,
531 -- subprogram bodies, package declarations, and task bodies). It is
532 -- initially Empty, and then gets set to point to the entity for the
533 -- declared Activation_Chain variable when the first task is declared.
534 -- When tasks are declared in the corresponding declarative region this
535 -- entity is located by name (its name is always _Chain) and the declared
536 -- tasks are added to the chain. Note that N_Extended_Return_Statement
537 -- does not have this attribute, although it does have an activation
538 -- chain. This chain is used to store the tasks temporarily, and is not
539 -- used for activating them. On successful completion of the return
540 -- statement, the tasks are moved to the caller's chain, and the caller
541 -- activates them.
543 -- Acts_As_Spec (Flag4-Sem)
544 -- A flag set in the N_Subprogram_Body node for a subprogram body which
545 -- is acting as its own spec, except in the case of a library level
546 -- subprogram, in which case the flag is set on the parent compilation
547 -- unit node instead (see further description in spec of Lib package).
548 -- ??? Above note about Lib is dubious since lib.ads does not mention
549 -- Acts_As_Spec at all.
551 -- Actual_Designated_Subtype (Node4-Sem)
552 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
553 -- needs to known the dynamic constrained subtype of the designated
554 -- object, this attribute is set to that type. This is done for
555 -- N_Free_Statements for access-to-classwide types and access to
556 -- unconstrained packed array types, and for N_Explicit_Dereference when
557 -- the designated type is an unconstrained packed array and the
558 -- dereference is the prefix of a 'Size attribute reference.
560 -- Address_Warning_Posted (Flag18-Sem)
561 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
562 -- posted a warning for the address clause regarding size or alignment
563 -- issues. Used to inhibit multiple redundant messages.
565 -- Aggregate_Bounds (Node3-Sem)
566 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
567 -- known at compile time, this field points to an N_Range node with those
568 -- bounds. Otherwise Empty.
570 -- All_Others (Flag11-Sem)
571 -- Present in an N_Others_Choice node. This flag is set for an others
572 -- exception where all exceptions are to be caught, even those that are
573 -- not normally handled (in particular the tasking abort signal). This
574 -- is used for translation of the at end handler into a normal exception
575 -- handler.
577 -- Aspect_Rep_Item (Node2-Sem)
578 -- Present in N_Aspect_Specification nodes. Points to the corresponding
579 -- pragma/attribute definition node used to process the aspect.
581 -- Assignment_OK (Flag15-Sem)
582 -- This flag is set in a subexpression node for an object, indicating
583 -- that the associated object can be modified, even if this would not
584 -- normally be permissible (either by direct assignment, or by being
585 -- passed as an out or in-out parameter). This is used by the expander
586 -- for a number of purposes, including initialization of constants and
587 -- limited type objects (such as tasks), setting discriminant fields,
588 -- setting tag values, etc. N_Object_Declaration nodes also have this
589 -- flag defined. Here it is used to indicate that an initialization
590 -- expression is valid, even where it would normally not be allowed
591 -- (e.g. where the type involved is limited).
593 -- Associated_Node (Node4-Sem)
594 -- Present in nodes that can denote an entity: identifiers, character
595 -- literals, operator symbols, expanded names, operator nodes, and
596 -- attribute reference nodes (all these nodes have an Entity field).
597 -- This field is also present in N_Aggregate, N_Selected_Component, and
598 -- N_Extension_Aggregate nodes. This field is used in generic processing
599 -- to create links between the generic template and the generic copy.
600 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
601 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
602 -- the normal function of Entity is not required at the point where the
603 -- Associated_Node is set. Note also, that in generic templates, this
604 -- means that the Entity field does not necessarily point to an Entity.
605 -- Since the back end is expected to ignore generic templates, this is
606 -- harmless.
608 -- Atomic_Sync_Required (Flag14-Sem)
609 -- This flag is set on a node for which atomic synchronization is
610 -- required for the corresponding reference or modification.
612 -- At_End_Proc (Node1)
613 -- This field is present in an N_Handled_Sequence_Of_Statements node.
614 -- It contains an identifier reference for the cleanup procedure to be
615 -- called. See description of this node for further details.
617 -- Backwards_OK (Flag6-Sem)
618 -- A flag present in the N_Assignment_Statement node. It is used only
619 -- if the type being assigned is an array type, and is set if analysis
620 -- determines that it is definitely safe to do the copy backwards, i.e.
621 -- starting at the highest addressed element. This is the case if either
622 -- the operands do not overlap, or they may overlap, but if they do,
623 -- then the left operand is at a higher address than the right operand.
625 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
626 -- means that the front end could not determine that either direction is
627 -- definitely safe, and a runtime check may be required if the backend
628 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
629 -- set, it means that the front end can assure no overlap of operands.
631 -- Body_To_Inline (Node3-Sem)
632 -- present in subprogram declarations. Denotes analyzed but unexpanded
633 -- body of subprogram, to be used when inlining calls. Present when the
634 -- subprogram has an Inline pragma and inlining is enabled. If the
635 -- declaration is completed by a renaming_as_body, and the renamed en-
636 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
637 -- which is used directly in later calls to the original subprogram.
639 -- Body_Required (Flag13-Sem)
640 -- A flag that appears in the N_Compilation_Unit node indicating that
641 -- the corresponding unit requires a body. For the package case, this
642 -- indicates that a completion is required. In Ada 95, if the flag is not
643 -- set for the package case, then a body may not be present. In Ada 83,
644 -- if the flag is not set for the package case, then body is optional.
645 -- For a subprogram declaration, the flag is set except in the case where
646 -- a pragma Import or Interface applies, in which case no body is
647 -- permitted (in Ada 83 or Ada 95).
649 -- By_Ref (Flag5-Sem)
650 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
651 -- this flag is set when the returned expression is already allocated on
652 -- the secondary stack and thus the result is passed by reference rather
653 -- than copied another time.
655 -- Check_Address_Alignment (Flag11-Sem)
656 -- A flag present in N_Attribute_Definition clause for a 'Address
657 -- attribute definition. This flag is set if a dynamic check should be
658 -- generated at the freeze point for the entity to which this address
659 -- clause applies. The reason that we need this flag is that we want to
660 -- check for range checks being suppressed at the point where the
661 -- attribute definition clause is given, rather than testing this at the
662 -- freeze point.
664 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
665 -- Present in N_Simple_Return_Statement nodes. True if this node was
666 -- constructed as part of the N_Extended_Return_Statement expansion.
668 -- Compile_Time_Known_Aggregate (Flag18-Sem)
669 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
670 -- evaluated at compile time without raising constraint error. Such
671 -- aggregates can be passed as is to Gigi without any expansion. See
672 -- Exp_Aggr for the specific conditions under which an aggregate has this
673 -- flag set.
675 -- Componentwise_Assignment (Flag14-Sem)
676 -- Present in N_Assignment_Statement nodes. Set for a record assignment
677 -- where all that needs doing is to expand it into component-by-component
678 -- assignments. This is used internally for the case of tagged types with
679 -- rep clauses, where we need to avoid recursion (we don't want to try to
680 -- generate a call to the primitive operation, because this is the case
681 -- where we are compiling the primitive operation). Note that when we are
682 -- expanding component assignments in this case, we never assign the _tag
683 -- field, but we recursively assign components of the parent type.
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
689 -- to 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
692 -- nodes.
694 -- Context_Pending (Flag16-Sem)
695 -- This field appears in Compilation_Unit nodes, to indicate that the
696 -- context of the unit is being compiled. Used to detect circularities
697 -- that are not otherwise detected by the loading mechanism. Such
698 -- circularities can occur in the presence of limited and non-limited
699 -- with_clauses that mention the same units.
701 -- Controlling_Argument (Node1-Sem)
702 -- This field is set in procedure and function call nodes if the call
703 -- is a dispatching call (it is Empty for a non-dispatching call). It
704 -- indicates the source of the call's controlling tag. For procedure
705 -- calls, the Controlling_Argument is one of the actuals. For function
706 -- that has a dispatching result, it is an entity in the context of the
707 -- call that can provide a tag, or else it is the tag of the root type
708 -- of the class. It can also specify a tag directly rather than being a
709 -- tagged object. The latter is needed by the implementations of AI-239
710 -- and AI-260.
712 -- Conversion_OK (Flag14-Sem)
713 -- A flag set on type conversion nodes to indicate that the conversion
714 -- is to be considered as being valid, even though it is the case that
715 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
716 -- Fixed_Value and Integer_Value, for internal conversions done for
717 -- fixed-point operations, and for certain conversions for calls to
718 -- initialization procedures. If Conversion_OK is set, then Etype must be
719 -- set (the analyzer assumes that Etype has been set). For the case of
720 -- fixed-point operands, it also indicates that the conversion is to be
721 -- direct conversion of the underlying integer result, with no regard to
722 -- the small operand.
724 -- Corresponding_Aspect (Node3-Sem)
725 -- Present in N_Pragma node. Used to point back to the source aspect from
726 -- the corresponding pragma. This field is Empty for source pragmas.
728 -- Corresponding_Body (Node5-Sem)
729 -- This field is set in subprogram declarations, package declarations,
730 -- entry declarations of protected types, and in generic units. It points
731 -- to the defining entity for the corresponding body (NOT the node for
732 -- the body itself).
734 -- Corresponding_Formal_Spec (Node3-Sem)
735 -- This field is set in subprogram renaming declarations, where it points
736 -- to the defining entity for a formal subprogram in the case where the
737 -- renaming corresponds to a generic formal subprogram association in an
738 -- instantiation. The field is Empty if the renaming does not correspond
739 -- to such a formal association.
741 -- Corresponding_Generic_Association (Node5-Sem)
742 -- This field is defined for object declarations and object renaming
743 -- declarations. It is set for the declarations within an instance that
744 -- map generic formals to their actuals. If set, the field points to
745 -- a generic_association which is the original parent of the expression
746 -- or name appearing in the declaration. This simplifies ASIS queries.
748 -- Corresponding_Integer_Value (Uint4-Sem)
749 -- This field is set in real literals of fixed-point types (it is not
750 -- used for floating-point types). It contains the integer value used
751 -- to represent the fixed-point value. It is also set on the universal
752 -- real literals used to represent bounds of fixed-point base types
753 -- and their first named subtypes.
755 -- Corresponding_Spec (Node5-Sem)
756 -- This field is set in subprogram, package, task, and protected body
757 -- nodes, where it points to the defining entity in the corresponding
758 -- spec. The attribute is also set in N_With_Clause nodes where it points
759 -- to the defining entity for the with'ed spec, and in a subprogram
760 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
761 -- if there is no corresponding spec, as in the case of a subprogram body
762 -- that serves as its own spec.
764 -- In Ada 2012, Corresponding_Spec is set on expression functions that
765 -- complete a subprogram declaration.
767 -- Corresponding_Stub (Node3-Sem)
768 -- This field is present in an N_Subunit node. It holds the node in
769 -- the parent unit that is the stub declaration for the subunit. It is
770 -- set when analysis of the stub forces loading of the proper body. If
771 -- expansion of the proper body creates new declarative nodes, they are
772 -- inserted at the point of the corresponding_stub.
774 -- Dcheck_Function (Node5-Sem)
775 -- This field is present in an N_Variant node, It references the entity
776 -- for the discriminant checking function for the variant.
778 -- Default_Expression (Node5-Sem)
779 -- This field is Empty if there is no default expression. If there is a
780 -- simple default expression (one with no side effects), then this field
781 -- simply contains a copy of the Expression field (both point to the tree
782 -- for the default expression). Default_Expression is used for
783 -- conformance checking.
785 -- Default_Storage_Pool (Node3-Sem)
786 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
787 -- copy of Opt.Default_Pool at the end of the compilation unit. See
788 -- package Opt for details. This is used for inheriting the
789 -- Default_Storage_Pool in child units.
791 -- Discr_Check_Funcs_Built (Flag11-Sem)
792 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
793 -- discriminant checking functions are constructed. The purpose is to
794 -- avoid attempting to set these functions more than once.
796 -- Do_Accessibility_Check (Flag13-Sem)
797 -- This flag is set on N_Parameter_Specification nodes to indicate
798 -- that an accessibility check is required for the parameter. It is
799 -- not yet decided who takes care of this check (TBD ???).
801 -- Do_Discriminant_Check (Flag13-Sem)
802 -- This flag is set on N_Selected_Component nodes to indicate that a
803 -- discriminant check is required using the discriminant check routine
804 -- associated with the selector. The actual check is generated by the
805 -- expander when processing selected components.
807 -- Do_Division_Check (Flag13-Sem)
808 -- This flag is set on a division operator (/ mod rem) to indicate
809 -- that a zero divide check is required. The actual check is dealt
810 -- with by the backend (all the front end does is to set the flag).
812 -- Do_Length_Check (Flag4-Sem)
813 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
814 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
815 -- is required. It is not determined who deals with this flag (???).
817 -- Do_Overflow_Check (Flag17-Sem)
818 -- This flag is set on an operator where an overflow check is required on
819 -- the operation. The actual check is dealt with by the backend (all the
820 -- front end does is to set the flag). The other cases where this flag is
821 -- used is on a Type_Conversion node and for attribute reference nodes.
822 -- For a type conversion, it means that the conversion is from one base
823 -- type to another, and the value may not fit in the target base type.
824 -- See also the description of Do_Range_Check for this case. The only
825 -- attribute references which use this flag are Pred and Succ, where it
826 -- means that the result should be checked for going outside the base
827 -- range. Note that this flag is not set for modular types.
829 -- Do_Range_Check (Flag9-Sem)
830 -- This flag is set on an expression which appears in a context where a
831 -- range check is required. The target type is clear from the context.
832 -- The contexts in which this flag can appear are the following:
834 -- Right side of an assignment. In this case the target type is
835 -- taken from the left side of the assignment, which is referenced
836 -- by the Name of the N_Assignment_Statement node.
838 -- Subscript expressions in an indexed component. In this case the
839 -- target type is determined from the type of the array, which is
840 -- referenced by the Prefix of the N_Indexed_Component node.
842 -- Argument expression for a parameter, appearing either directly in
843 -- the Parameter_Associations list of a call or as the Expression of an
844 -- N_Parameter_Association node that appears in this list. In either
845 -- case, the check is against the type of the formal. Note that the
846 -- flag is relevant only in IN and IN OUT parameters, and will be
847 -- ignored for OUT parameters, where no check is required in the call,
848 -- and if a check is required on the return, it is generated explicitly
849 -- with a type conversion.
851 -- Initialization expression for the initial value in an object
852 -- declaration. In this case the Do_Range_Check flag is set on
853 -- the initialization expression, and the check is against the
854 -- range of the type of the object being declared.
856 -- The expression of a type conversion. In this case the range check is
857 -- against the target type of the conversion. See also the use of
858 -- Do_Overflow_Check on a type conversion. The distinction is that the
859 -- overflow check protects against a value that is outside the range of
860 -- the target base type, whereas a range check checks that the
861 -- resulting value (which is a value of the base type of the target
862 -- type), satisfies the range constraint of the target type.
864 -- Note: when a range check is required in contexts other than those
865 -- listed above (e.g. in a return statement), an additional type
866 -- conversion node is introduced to represent the required check.
868 -- Do_Storage_Check (Flag17-Sem)
869 -- This flag is set in an N_Allocator node to indicate that a storage
870 -- check is required for the allocation, or in an N_Subprogram_Body node
871 -- to indicate that a stack check is required in the subprogram prolog.
872 -- The N_Allocator case is handled by the routine that expands the call
873 -- to the runtime routine. The N_Subprogram_Body case is handled by the
874 -- backend, and all the semantics does is set the flag.
876 -- Do_Tag_Check (Flag13-Sem)
877 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
878 -- N_Procedure_Call_Statement, N_Type_Conversion,
879 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
880 -- node to indicate that the tag check can be suppressed. It is not
881 -- yet decided how this flag is used (TBD ???).
883 -- Elaborate_Present (Flag4-Sem)
884 -- This flag is set in the N_With_Clause node to indicate that pragma
885 -- Elaborate pragma appears for the with'ed units.
887 -- Elaborate_All_Desirable (Flag9-Sem)
888 -- This flag is set in the N_With_Clause mode to indicate that the static
889 -- elaboration processing has determined that an Elaborate_All pragma is
890 -- desirable for correct elaboration for this unit.
892 -- Elaborate_All_Present (Flag14-Sem)
893 -- This flag is set in the N_With_Clause node to indicate that a
894 -- pragma Elaborate_All pragma appears for the with'ed units.
896 -- Elaborate_Desirable (Flag11-Sem)
897 -- This flag is set in the N_With_Clause mode to indicate that the static
898 -- elaboration processing has determined that an Elaborate pragma is
899 -- desirable for correct elaboration for this unit.
901 -- Elaboration_Boolean (Node2-Sem)
902 -- This field is present in function and procedure specification nodes.
903 -- If set, it points to the entity for a Boolean flag that must be tested
904 -- for certain calls to check for access before elaboration. See body of
905 -- Sem_Elab for further details. This field is Empty if no elaboration
906 -- boolean is required.
908 -- Else_Actions (List3-Sem)
909 -- This field is present in conditional expression nodes. During code
910 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
911 -- actions at an appropriate place in the tree to get elaborated at the
912 -- right time. For conditional expressions, we have to be sure that the
913 -- actions for the Else branch are only elaborated if the condition is
914 -- False. The Else_Actions field is used as a temporary parking place for
915 -- these actions. The final tree is always rewritten to eliminate the
916 -- need for this field, so in the tree passed to Gigi, this field is
917 -- always set to No_List.
919 -- Enclosing_Variant (Node2-Sem)
920 -- This field is present in the N_Variant node and identifies the Node_Id
921 -- corresponding to the immediately enclosing variant when the variant is
922 -- nested, and N_Empty otherwise. Set during semantic processing of the
923 -- variant part of a record type.
925 -- Entity (Node4-Sem)
926 -- Appears in all direct names (identifiers, character literals, and
927 -- operator symbols), as well as expanded names, and attributes that
928 -- denote entities, such as 'Class. Points to entity for corresponding
929 -- defining occurrence. Set after name resolution. For identifiers in a
930 -- WITH list, the corresponding defining occurrence is in a separately
931 -- compiled file, and Entity must be set by the library Load procedure.
933 -- Note: During name resolution, the value in Entity may be temporarily
934 -- incorrect (e.g. during overload resolution, Entity is initially set to
935 -- the first possible correct interpretation, and then later modified if
936 -- necessary to contain the correct value after resolution).
938 -- Note: This field overlaps Associated_Node, which is used during
939 -- generic processing (see Sem_Ch12 for details). Note also that in
940 -- generic templates, this means that the Entity field does not always
941 -- point to an Entity. Since the back end is expected to ignore generic
942 -- templates, this is harmless.
944 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
945 -- It is used only for stream attributes definition clauses. In this
946 -- case, it denotes a (possibly dummy) subprogram entity that is declared
947 -- conceptually at the point of the clause. Thus the visibility of the
948 -- attribute definition clause (in the sense of 8.3(23) as amended by
949 -- AI-195) can be checked by testing the visibility of that subprogram.
951 -- Note: Normally the Entity field of an identifier points to the entity
952 -- for the corresponding defining identifier, and hence the Chars field
953 -- of an identifier will match the Chars field of the entity. However,
954 -- there is no requirement that these match, and there are obscure cases
955 -- of generated code where they do not match.
957 -- Note: Ada 2012 aspect specifications require additional links between
958 -- identifiers and various attributes. These attributes can be of
959 -- arbitrary types, and the entity field of identifiers that denote
960 -- aspects must be used to store arbitrary expressions for later semantic
961 -- checks. See section on aspect specifications for details.
963 -- Entity_Or_Associated_Node (Node4-Sem)
964 -- A synonym for both Entity and Associated_Node. Used by convention in
965 -- the code when referencing this field in cases where it is not known
966 -- whether the field contains an Entity or an Associated_Node.
968 -- Etype (Node5-Sem)
969 -- Appears in all expression nodes, all direct names, and all entities.
970 -- Points to the entity for the related type. Set after type resolution.
971 -- Normally this is the actual subtype of the expression. However, in
972 -- certain contexts such as the right side of an assignment, subscripts,
973 -- arguments to calls, returned value in a function, initial value etc.
974 -- it is the desired target type. In the event that this is different
975 -- from the actual type, the Do_Range_Check flag will be set if a range
976 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
977 -- points to an essentially arbitrary choice from the possible set of
978 -- types.
980 -- Exception_Junk (Flag8-Sem)
981 -- This flag is set in a various nodes appearing in a statement sequence
982 -- to indicate that the corresponding node is an artifact of the
983 -- generated code for exception handling, and should be ignored when
984 -- analyzing the control flow of the relevant sequence of statements
985 -- (e.g. to check that it does not end with a bad return statement).
987 -- Exception_Label (Node5-Sem)
988 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
989 -- to be used for transforming the corresponding exception into a goto,
990 -- or contains Empty, if this exception is not to be transformed. Also
991 -- appears in N_Exception_Handler nodes, where, if set, it indicates
992 -- that there may be a local raise for the handler, so that expansion
993 -- to allow a goto is required (and this field contains the label for
994 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
996 -- Expansion_Delayed (Flag11-Sem)
997 -- Set on aggregates and extension aggregates that need a top-down rather
998 -- than bottom-up expansion. Typically aggregate expansion happens bottom
999 -- up. For nested aggregates the expansion is delayed until the enclosing
1000 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1001 -- delay it we set this flag. This is done to avoid creating a temporary
1002 -- for each level of a nested aggregates, and also to prevent the
1003 -- premature generation of constraint checks. This is also a requirement
1004 -- if we want to generate the proper attachment to the internal
1005 -- finalization lists (for record with controlled components). Top down
1006 -- expansion of aggregates is also used for in-place array aggregate
1007 -- assignment or initialization. When the full context is known, the
1008 -- target of the assignment or initialization is used to generate the
1009 -- left-hand side of individual assignment to each sub-component.
1011 -- First_Inlined_Subprogram (Node3-Sem)
1012 -- Present in the N_Compilation_Unit node for the main program. Points
1013 -- to a chain of entities for subprograms that are to be inlined. The
1014 -- Next_Inlined_Subprogram field of these entities is used as a link
1015 -- pointer with Empty marking the end of the list. This field is Empty
1016 -- if there are no inlined subprograms or inlining is not active.
1018 -- First_Named_Actual (Node4-Sem)
1019 -- Present in procedure call statement and function call nodes, and also
1020 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1021 -- named parameter where parameters are ordered by declaration order (as
1022 -- opposed to the actual order in the call which may be different due to
1023 -- named associations). Note: this field points to the explicit actual
1024 -- parameter itself, not the N_Parameter_Association node (its parent).
1026 -- First_Real_Statement (Node2-Sem)
1027 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1028 -- Empty. Used only when declarations are moved into the statement part
1029 -- of a construct as a result of wrapping an AT END handler that is
1030 -- required to cover the declarations. In this case, this field is used
1031 -- to remember the location in the statements list of the first real
1032 -- statement, i.e. the statement that used to be first in the statement
1033 -- list before the declarations were prepended.
1035 -- First_Subtype_Link (Node5-Sem)
1036 -- Present in N_Freeze_Entity node for an anonymous base type that is
1037 -- implicitly created by the declaration of a first subtype. It points
1038 -- to the entity for the first subtype.
1040 -- Float_Truncate (Flag11-Sem)
1041 -- A flag present in type conversion nodes. This is used for float to
1042 -- integer conversions where truncation is required rather than rounding.
1043 -- Note that Gigi does not handle type conversions from real to integer
1044 -- with rounding (see Expand_N_Type_Conversion).
1046 -- Forwards_OK (Flag5-Sem)
1047 -- A flag present in the N_Assignment_Statement node. It is used only
1048 -- if the type being assigned is an array type, and is set if analysis
1049 -- determines that it is definitely safe to do the copy forwards, i.e.
1050 -- starting at the lowest addressed element. This is the case if either
1051 -- the operands do not overlap, or they may overlap, but if they do,
1052 -- then the left operand is at a lower address than the right operand.
1054 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1055 -- means that the front end could not determine that either direction is
1056 -- definitely safe, and a runtime check may be required if the backend
1057 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1058 -- set, it means that the front end can assure no overlap of operands.
1060 -- From_Aspect_Specification (Flag13-Sem)
1061 -- Processing of aspect specifications typically results in insertion in
1062 -- the tree of corresponding pragma or attribute definition clause nodes.
1063 -- These generated nodes have the From_Aspect_Specification flag set to
1064 -- indicate that they came from aspect specifications originally.
1066 -- From_At_End (Flag4-Sem)
1067 -- This flag is set on an N_Raise_Statement node if it corresponds to
1068 -- the reraise statement generated as the last statement of an AT END
1069 -- handler when SJLJ exception handling is active. It is used to stop
1070 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1071 -- because if the restriction is set, the reraise is not generated.
1073 -- From_At_Mod (Flag4-Sem)
1074 -- This flag is set on the attribute definition clause node that is
1075 -- generated by a transformation of an at mod phrase in a record
1076 -- representation clause. This is used to give slightly different (Ada 83
1077 -- compatible) semantics to such a clause, namely it is used to specify a
1078 -- minimum acceptable alignment for the base type and all subtypes. In
1079 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1080 -- must be a multiple of the given value, and the representation clause
1081 -- is considered to be type specific instead of subtype specific.
1083 -- From_Default (Flag6-Sem)
1084 -- This flag is set on the subprogram renaming declaration created in an
1085 -- instance for a formal subprogram, when the formal is declared with a
1086 -- box, and there is no explicit actual. If the flag is present, the
1087 -- declaration is treated as an implicit reference to the formal in the
1088 -- ali file.
1090 -- Generic_Parent (Node5-Sem)
1091 -- Generic_Parent is defined on declaration nodes that are instances. The
1092 -- value of Generic_Parent is the generic entity from which the instance
1093 -- is obtained. Generic_Parent is also defined for the renaming
1094 -- declarations and object declarations created for the actuals in an
1095 -- instantiation. The generic parent of such a declaration is the
1096 -- corresponding generic association in the Instantiation node.
1098 -- Generic_Parent_Type (Node4-Sem)
1099 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1100 -- actuals of formal private and derived types. Within the instance, the
1101 -- operations on the actual are those inherited from the parent. For a
1102 -- formal private type, the parent type is the generic type itself. The
1103 -- Generic_Parent_Type is also used in an instance to determine whether a
1104 -- private operation overrides an inherited one.
1106 -- Handler_List_Entry (Node2-Sem)
1107 -- This field is present in N_Object_Declaration nodes. It is set only
1108 -- for the Handler_Record entry generated for an exception in zero cost
1109 -- exception handling mode. It references the corresponding item in the
1110 -- handler list, and is used to delete this entry if the corresponding
1111 -- handler is deleted during optimization. For further details on why
1112 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1114 -- Has_Dereference_Action (Flag13-Sem)
1115 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1116 -- indicate that the expansion has aready produced a call to primitive
1117 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1118 -- Such dereference actions are produced for debugging purposes.
1120 -- Has_Dynamic_Length_Check (Flag10-Sem)
1121 -- This flag is present in all expression nodes. It is set to indicate
1122 -- that one of the routines in unit Checks has generated a length check
1123 -- action which has been inserted at the flagged node. This is used to
1124 -- avoid the generation of duplicate checks.
1126 -- Has_Dynamic_Range_Check (Flag12-Sem)
1127 -- This flag is present in N_Subtype_Declaration nodes and on all
1128 -- expression nodes. It is set to indicate that one of the routines in
1129 -- unit Checks has generated a range check action which has been inserted
1130 -- at the flagged node. This is used to avoid the generation of duplicate
1131 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1132 -- it mean in that context???
1134 -- Has_Local_Raise (Flag8-Sem)
1135 -- Present in exception handler nodes. Set if the handler can be entered
1136 -- via a local raise that gets transformed to a goto statement. This will
1137 -- always be set if Local_Raise_Statements is non-empty, but can also be
1138 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1139 -- nodes requiring generation of back end checks.
1141 -- Has_No_Elaboration_Code (Flag17-Sem)
1142 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1143 -- or not elaboration code is present for this unit. It is initially set
1144 -- true for subprogram specs and bodies and for all generic units and
1145 -- false for non-generic package specs and bodies. Gigi may set the flag
1146 -- in the non-generic package case if it determines that no elaboration
1147 -- code is generated. Note that this flag is not related to the
1148 -- Is_Preelaborated status, there can be preelaborated packages that
1149 -- generate elaboration code, and non-preelaborated packages which do
1150 -- not generate elaboration code.
1152 -- Has_Pragma_Suppress_All (Flag14-Sem)
1153 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1154 -- pragma appears anywhere in the unit. This accommodates the rather
1155 -- strange placement rules of other compilers (DEC permits it at the
1156 -- end of a unit, and Rational allows it as a program unit pragma). We
1157 -- allow it anywhere at all, and consider it equivalent to a pragma
1158 -- Suppress (All_Checks) appearing at the start of the configuration
1159 -- pragmas for the unit.
1161 -- Has_Private_View (Flag11-Sem)
1162 -- A flag present in generic nodes that have an entity, to indicate that
1163 -- the node has a private type. Used to exchange private and full
1164 -- declarations if the visibility at instantiation is different from the
1165 -- visibility at generic definition.
1167 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1168 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1169 -- flag the presence of a pragma Relative_Deadline.
1171 -- Has_Self_Reference (Flag13-Sem)
1172 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1173 -- of the expressions contains an access attribute reference to the
1174 -- enclosing type. Such a self-reference can only appear in default-
1175 -- initialized aggregate for a record type.
1177 -- Has_Storage_Size_Pragma (Flag5-Sem)
1178 -- A flag present in an N_Task_Definition node to flag the presence of a
1179 -- Storage_Size pragma.
1181 -- Has_Wide_Character (Flag11-Sem)
1182 -- Present in string literals, set if any wide character (i.e. character
1183 -- code outside the Character range but within Wide_Character range)
1184 -- appears in the string. Used to implement pragma preference rules.
1186 -- Has_Wide_Wide_Character (Flag13-Sem)
1187 -- Present in string literals, set if any wide character (i.e. character
1188 -- code outside the Wide_Character range) appears in the string. Used to
1189 -- implement pragma preference rules.
1191 -- Header_Size_Added (Flag11-Sem)
1192 -- Present in N_Attribute_Reference nodes, set only for attribute
1193 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1194 -- hidden list header used by the runtime finalization support has been
1195 -- added to the size of the prefix. The flag also prevents the infinite
1196 -- expansion of the same attribute in the said context.
1198 -- Hidden_By_Use_Clause (Elist4-Sem)
1199 -- An entity list present in use clauses that appear within
1200 -- instantiations. For the resolution of local entities, entities
1201 -- introduced by these use clauses have priority over global ones, and
1202 -- outer entities must be explicitly hidden/restored on exit.
1204 -- Implicit_With (Flag16-Sem)
1205 -- This flag is set in the N_With_Clause node that is implicitly
1206 -- generated for runtime units that are loaded by the expander, and also
1207 -- for package System, if it is loaded implicitly by a use of the
1208 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1209 -- as well.
1211 -- Implicit_With_From_Instantiation (Flag12-Sem)
1212 -- Set in N_With_Clause nodes from generic instantiations.
1214 -- Import_Interface_Present (Flag16-Sem)
1215 -- This flag is set in an Interface or Import pragma if a matching
1216 -- pragma of the other kind is also present. This is used to avoid
1217 -- generating some unwanted error messages.
1219 -- Includes_Infinities (Flag11-Sem)
1220 -- This flag is present in N_Range nodes. It is set for the range of
1221 -- unconstrained float types defined in Standard, which include not only
1222 -- the given range of values, but also legitimately can include infinite
1223 -- values. This flag is false for any float type for which an explicit
1224 -- range is given by the programmer, even if that range is identical to
1225 -- the range for Float.
1227 -- Inherited_Discriminant (Flag13-Sem)
1228 -- This flag is present in N_Component_Association nodes. It indicates
1229 -- that a given component association in an extension aggregate is the
1230 -- value obtained from a constraint on an ancestor. Used to prevent
1231 -- double expansion when the aggregate has expansion delayed.
1233 -- Instance_Spec (Node5-Sem)
1234 -- This field is present in generic instantiation nodes, and also in
1235 -- formal package declaration nodes (formal package declarations are
1236 -- treated in a manner very similar to package instantiations). It points
1237 -- to the node for the spec of the instance, inserted as part of the
1238 -- semantic processing for instantiations in Sem_Ch12.
1240 -- Is_Accessibility_Actual (Flag13-Sem)
1241 -- Present in N_Parameter_Association nodes. True if the parameter is
1242 -- an extra actual that carries the accessibility level of the actual
1243 -- for an access parameter, in a function that dispatches on result and
1244 -- is called in a dispatching context. Used to prevent a formal/actual
1245 -- mismatch when the call is rewritten as a dispatching call.
1247 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1248 -- A flag set in a Block_Statement node to indicate that it is the
1249 -- expansion of an asynchronous entry call. Such a block needs cleanup
1250 -- handler to assure that the call is cancelled.
1252 -- Is_Boolean_Aspect (Flag16-Sem)
1253 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1254 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1256 -- Is_Component_Left_Opnd (Flag13-Sem)
1257 -- Is_Component_Right_Opnd (Flag14-Sem)
1258 -- Present in concatenation nodes, to indicate that the corresponding
1259 -- operand is of the component type of the result. Used in resolving
1260 -- concatenation nodes in instances.
1262 -- Is_Delayed_Aspect (Flag14-Sem)
1263 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1264 -- come from aspect specifications, where the evaluation of the aspect
1265 -- must be delayed to the freeze point. This flag is also set True in
1266 -- the corresponding N_Aspect_Specification node.
1268 -- Is_Controlling_Actual (Flag16-Sem)
1269 -- This flag is set on in an expression that is a controlling argument in
1270 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1271 -- details of its use.
1273 -- Is_Dynamic_Coextension (Flag18-Sem)
1274 -- Present in allocator nodes, to indicate that this is an allocator
1275 -- for an access discriminant of a dynamically allocated object. The
1276 -- coextension must be deallocated and finalized at the same time as
1277 -- the enclosing object.
1279 -- Is_Entry_Barrier_Function (Flag8-Sem)
1280 -- This flag is set in an N_Subprogram_Body node which is the expansion
1281 -- of an entry barrier from a protected entry body. It is used for the
1282 -- circuitry checking for incorrect use of Current_Task.
1284 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1285 -- This flag is set in an N_Function_Call node to indicate that the extra
1286 -- actuals to support a build-in-place style of call have been added to
1287 -- the call.
1289 -- Is_Finalization_Wrapper (Flag9-Sem);
1290 -- This flag is present in N_Block_Statement nodes. It is set when the
1291 -- block acts as a wrapper of a handled construct which has controlled
1292 -- objects. The wrapper prevents interference between exception handlers
1293 -- and At_End handlers.
1295 -- Is_In_Discriminant_Check (Flag11-Sem)
1296 -- This flag is present in a selected component, and is used to indicate
1297 -- that the reference occurs within a discriminant check. The
1298 -- significance is that optimizations based on assuming that the
1299 -- discriminant check has a correct value cannot be performed in this
1300 -- case (or the discriminant check may be optimized away!)
1302 -- Is_Machine_Number (Flag11-Sem)
1303 -- This flag is set in an N_Real_Literal node to indicate that the value
1304 -- is a machine number. This avoids some unnecessary cases of converting
1305 -- real literals to machine numbers.
1307 -- Is_Null_Loop (Flag16-Sem)
1308 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1309 -- can be determined to be null at compile time. This is used to remove
1310 -- the loop entirely at expansion time.
1312 -- Is_Overloaded (Flag5-Sem)
1313 -- A flag present in all expression nodes. Used temporarily during
1314 -- overloading determination. The setting of this flag is not relevant
1315 -- once overloading analysis is complete.
1317 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1318 -- A flag present only in N_Op_Expon nodes. It is set when the
1319 -- exponentiation is of the form 2 ** N, where the type of N is an
1320 -- unsigned integral subtype whose size does not exceed the size of
1321 -- Standard_Integer (i.e. a type that can be safely converted to
1322 -- Natural), and the exponentiation appears as the right operand of an
1323 -- integer multiplication or an integer division where the dividend is
1324 -- unsigned. It is also required that overflow checking is off for both
1325 -- the exponentiation and the multiply/divide node. If this set of
1326 -- conditions holds, and the flag is set, then the division or
1327 -- multiplication can be (and is) converted to a shift.
1329 -- Is_Prefixed_Call (Flag17-Sem)
1330 -- This flag is set in a selected component within a generic unit, if
1331 -- it resolves to a prefixed call to a primitive operation. The flag
1332 -- is used to prevent accidental overloadings in an instance, when a
1333 -- primitive operation and a private record component may be homographs.
1335 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1336 -- A flag set in a Subprogram_Body block to indicate that it is the
1337 -- implementation of a protected subprogram. Such a body needs cleanup
1338 -- handler to make sure that the associated protected object is unlocked
1339 -- when the subprogram completes.
1341 -- Is_Static_Coextension (Flag14-Sem)
1342 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1343 -- of an object allocated on the stack rather than the heap.
1345 -- Is_Static_Expression (Flag6-Sem)
1346 -- Indicates that an expression is a static expression (RM 4.9). See spec
1347 -- of package Sem_Eval for full details on the use of this flag.
1349 -- Is_Subprogram_Descriptor (Flag16-Sem)
1350 -- Present in N_Object_Declaration, and set only for the object
1351 -- declaration generated for a subprogram descriptor in fast exception
1352 -- mode. See Exp_Ch11 for details of use.
1354 -- Is_Task_Allocation_Block (Flag6-Sem)
1355 -- A flag set in a Block_Statement node to indicate that it is the
1356 -- expansion of a task allocator, or the allocator of an object
1357 -- containing tasks. Such a block requires a cleanup handler to call
1358 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1359 -- allocated but not activated when the allocator completes abnormally.
1361 -- Is_Task_Master (Flag5-Sem)
1362 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1363 -- indicate that the construct is a task master (i.e. has declared tasks
1364 -- or declares an access to a task type).
1366 -- Itype (Node1-Sem)
1367 -- Used in N_Itype_Reference node to reference an itype for which it is
1368 -- important to ensure that it is defined. See description of this node
1369 -- for further details.
1371 -- Kill_Range_Check (Flag11-Sem)
1372 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1373 -- result should not be subjected to range checks. This is used for the
1374 -- implementation of Normalize_Scalars.
1376 -- Label_Construct (Node2-Sem)
1377 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1378 -- N_Block_Statement or N_Loop_Statement node to which the label
1379 -- declaration applies. This is not currently used in the compiler
1380 -- itself, but it is useful in the implementation of ASIS queries.
1381 -- This field is left empty for the special labels generated as part
1382 -- of expanding raise statements with a local exception handler.
1384 -- Library_Unit (Node4-Sem)
1385 -- In a stub node, Library_Unit points to the compilation unit node of
1386 -- the corresponding subunit.
1388 -- In a with clause node, Library_Unit points to the spec of the with'ed
1389 -- unit.
1391 -- In a compilation unit node, the usage depends on the unit type:
1393 -- For a library unit body, Library_Unit points to the compilation unit
1394 -- node of the corresponding spec, unless it's a subprogram body with
1395 -- Acts_As_Spec set, in which case it points to itself.
1397 -- For a spec, Library_Unit points to the compilation unit node of the
1398 -- corresponding body, if present. The body will be present if the spec
1399 -- is or contains generics that we needed to instantiate. Similarly, the
1400 -- body will be present if we needed it for inlining purposes. Thus, if
1401 -- we have a spec/body pair, both of which are present, they point to
1402 -- each other via Library_Unit.
1404 -- For a subunit, Library_Unit points to the compilation unit node of
1405 -- the parent body.
1407 -- Note that this field is not used to hold the parent pointer for child
1408 -- unit (which might in any case need to use it for some other purpose as
1409 -- described above). Instead for a child unit, implicit with's are
1410 -- generated for all parents.
1412 -- Local_Raise_Statements (Elist1)
1413 -- This field is present in exception handler nodes. It is set to
1414 -- No_Elist in the normal case. If there is at least one raise statement
1415 -- which can potentially be handled as a local raise, then this field
1416 -- points to a list of raise nodes, which are calls to a routine to raise
1417 -- an exception. These are raise nodes which can be optimized into gotos
1418 -- if the handler turns out to meet the conditions which permit this
1419 -- transformation. Note that this does NOT include instances of the
1420 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1421 -- handled by the back end (using the N_Push/N_Pop mechanism).
1423 -- Loop_Actions (List2-Sem)
1424 -- A list present in Component_Association nodes in array aggregates.
1425 -- Used to collect actions that must be executed within the loop because
1426 -- they may need to be evaluated anew each time through.
1428 -- Limited_View_Installed (Flag18-Sem)
1429 -- Present in With_Clauses and in package specifications. If set on
1430 -- with_clause, it indicates that this clause has created the current
1431 -- limited view of the designated package. On a package specification, it
1432 -- indicates that the limited view has already been created because the
1433 -- package is mentioned in a limited_with_clause in the closure of the
1434 -- unit being compiled.
1436 -- Local_Raise_Not_OK (Flag7-Sem)
1437 -- Present in N_Exception_Handler nodes. Set if the handler contains
1438 -- a construct (reraise statement, or call to subprogram in package
1439 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1440 -- for a local raise (one that could otherwise be converted to a goto).
1442 -- Must_Be_Byte_Aligned (Flag14-Sem)
1443 -- This flag is present in N_Attribute_Reference nodes. It can be set
1444 -- only for the Address and Unrestricted_Access attributes. If set it
1445 -- means that the object for which the address/access is given must be on
1446 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1447 -- of the object is to be made before taking the address (this copy is in
1448 -- the current scope on the stack frame). This is used for certain cases
1449 -- of code generated by the expander that passes parameters by address.
1451 -- The reason the copy is not made by the front end is that the back end
1452 -- has more information about type layout and may be able to (but is not
1453 -- guaranteed to) prevent making unnecessary copies.
1455 -- Must_Not_Freeze (Flag8-Sem)
1456 -- A flag present in all expression nodes. Normally expressions cause
1457 -- freezing as described in the RM. If this flag is set, then this is
1458 -- inhibited. This is used by the analyzer and expander to label nodes
1459 -- that are created by semantic analysis or expansion and which must not
1460 -- cause freezing even though they normally would. This flag is also
1461 -- present in an N_Subtype_Indication node, since we also use these in
1462 -- calls to Freeze_Expression.
1464 -- Next_Entity (Node2-Sem)
1465 -- Present in defining identifiers, defining character literals and
1466 -- defining operator symbols (i.e. in all entities). The entities of a
1467 -- scope are chained, and this field is used as the forward pointer for
1468 -- this list. See Einfo for further details.
1470 -- Next_Exit_Statement (Node3-Sem)
1471 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1472 -- chained (in reverse order of appearance) from the First_Exit_Statement
1473 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1474 -- the next entry on this chain (Empty = end of list).
1476 -- Next_Implicit_With (Node3-Sem)
1477 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1478 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1479 -- to prevent multiple with_clauses for the same unit in a given context.
1480 -- A postorder traversal of the tree whose nodes are units and whose
1481 -- links are with_clauses defines the order in which Inspector must
1482 -- examine a compiled unit and its full context. This ordering ensures
1483 -- that any subprogram call is examined after the subprogram declaration
1484 -- has been seen.
1486 -- Next_Named_Actual (Node4-Sem)
1487 -- Present in parameter association node. Set during semantic analysis to
1488 -- point to the next named parameter, where parameters are ordered by
1489 -- declaration order (as opposed to the actual order in the call, which
1490 -- may be different due to named associations). Not that this field
1491 -- points to the explicit actual parameter itself, not to the
1492 -- N_Parameter_Association node (its parent).
1494 -- Next_Pragma (Node1-Sem)
1495 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1496 -- nodes. Currently used for two purposes:
1498 -- Create a list of linked Check_Policy pragmas. The head of this list
1499 -- is stored in Opt.Check_Policy_List (which has further details).
1501 -- Used by processing for Pre/Postcondition pragmas to store a list of
1502 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1503 -- details).
1505 -- Next_Rep_Item (Node5-Sem)
1506 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1507 -- clauses, record rep clauses, aspect specification nodes. Used to link
1508 -- representation items that apply to an entity. See full description of
1509 -- First_Rep_Item field in Einfo for further details.
1511 -- Next_Use_Clause (Node3-Sem)
1512 -- While use clauses are active during semantic processing, they are
1513 -- chained from the scope stack entry, using Next_Use_Clause as a link
1514 -- pointer, with Empty marking the end of the list. The head pointer is
1515 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1516 -- processing (i.e. when Gigi sees the tree, the contents of this field
1517 -- is undefined and should not be read).
1519 -- No_Ctrl_Actions (Flag7-Sem)
1520 -- Present in N_Assignment_Statement to indicate that no finalize nor
1521 -- adjust should take place on this assignment even though the rhs is
1522 -- controlled. This is used in init procs and aggregate expansions where
1523 -- the generated assignments are more initialisations than real
1524 -- assignments.
1526 -- No_Elaboration_Check (Flag14-Sem)
1527 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1528 -- that no elaboration check is needed on the call, because it appears in
1529 -- the context of a local Suppress pragma. This is used on calls within
1530 -- task bodies, where the actual elaboration checks are applied after
1531 -- analysis, when the local scope stack is not present.
1533 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1534 -- Present in N_With_Clause nodes. Set if the with clause is on the
1535 -- package or subprogram spec where the main unit is the corresponding
1536 -- body, and no entities of the with'ed unit are referenced by the spec
1537 -- (an entity may still be referenced in the body, so this flag is used
1538 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1539 -- full details)
1541 -- No_Initialization (Flag13-Sem)
1542 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1543 -- object must not be initialized (by Initialize or call to an init
1544 -- proc). This is needed for controlled aggregates. When the Object
1545 -- declaration has an expression, this flag means that this expression
1546 -- should not be taken into account (needed for in place initialization
1547 -- with aggregates).
1549 -- No_Truncation (Flag17-Sem)
1550 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1551 -- only if the RM_Size of the source is greater than the RM_Size of the
1552 -- target for scalar operands. Normally in such a case we truncate some
1553 -- higher order bits of the source, and then sign/zero extend the result
1554 -- to form the output value. But if this flag is set, then we do not do
1555 -- any truncation, so for example, if an 8 bit input is converted to 5
1556 -- bit result which is in fact stored in 8 bits, then the high order
1557 -- three bits of the target result will be copied from the source. This
1558 -- is used for properly setting out of range values for use by pragmas
1559 -- Initialize_Scalars and Normalize_Scalars.
1561 -- Original_Discriminant (Node2-Sem)
1562 -- Present in identifiers. Used in references to discriminants that
1563 -- appear in generic units. Because the names of the discriminants may be
1564 -- different in an instance, we use this field to recover the position of
1565 -- the discriminant in the original type, and replace it with the
1566 -- discriminant at the same position in the instantiated type.
1568 -- Original_Entity (Node2-Sem)
1569 -- Present in numeric literals. Used to denote the named number that has
1570 -- been constant-folded into the given literal. If literal is from
1571 -- source, or the result of some other constant-folding operation, then
1572 -- Original_Entity is empty. This field is needed to handle properly
1573 -- named numbers in generic units, where the Associated_Node field
1574 -- interferes with the Entity field, making it impossible to preserve the
1575 -- original entity at the point of instantiation (ASIS problem).
1577 -- Others_Discrete_Choices (List1-Sem)
1578 -- When a case statement or variant is analyzed, the semantic checks
1579 -- determine the actual list of choices that correspond to an others
1580 -- choice. This list is materialized for later use by the expander and
1581 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1582 -- this materialized list of choices, which is in standard format for a
1583 -- list of discrete choices, except that of course it cannot contain an
1584 -- N_Others_Choice entry.
1586 -- Parameter_List_Truncated (Flag17-Sem)
1587 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1588 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1589 -- a result of a First_Optional_Parameter specification in an
1590 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1591 -- The truncation is done by the expander by removing trailing parameters
1592 -- from the argument list, in accordance with the set of rules allowing
1593 -- such parameter removal. In particular, parameters can be removed
1594 -- working from the end of the parameter list backwards up to and
1595 -- including the entry designated by First_Optional_Parameter in the
1596 -- Import pragma. Parameters can be removed if they are implicit and the
1597 -- default value is a known-at-compile-time value, including the use of
1598 -- the Null_Parameter attribute, or if explicit parameter values are
1599 -- present that match the corresponding defaults.
1601 -- Parent_Spec (Node4-Sem)
1602 -- For a library unit that is a child unit spec (package or subprogram
1603 -- declaration, generic declaration or instantiation, or library level
1604 -- rename, this field points to the compilation unit node for the parent
1605 -- package specification. This field is Empty for library bodies (the
1606 -- parent spec in this case can be found from the corresponding spec).
1608 -- Premature_Use (Node5-Sem)
1609 -- Present in N_Incomplete_Type_Declaration node. Used for improved
1610 -- error diagnostics: if there is a premature usage of an incomplete
1611 -- type, a subsequently generated error message indicates the position
1612 -- of its full declaration.
1614 -- Present_Expr (Uint3-Sem)
1615 -- Present in an N_Variant node. This has a meaningful value only after
1616 -- Gigi has back annotated the tree with representation information. At
1617 -- this point, it contains a reference to a gcc expression that depends
1618 -- on the values of one or more discriminants. Give a set of discriminant
1619 -- values, this expression evaluates to False (zero) if variant is not
1620 -- present, and True (non-zero) if it is present. See unit Repinfo for
1621 -- further details on gigi back annotation. This field is used during
1622 -- ASIS processing (data decomposition annex) to determine if a field is
1623 -- present or not.
1625 -- Print_In_Hex (Flag13-Sem)
1626 -- Set on an N_Integer_Literal node to indicate that the value should be
1627 -- printed in hexadecimal in the sprint listing. Has no effect on
1628 -- legality or semantics of program, only on the displayed output. This
1629 -- is used to clarify output from the packed array cases.
1631 -- Procedure_To_Call (Node2-Sem)
1632 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1633 -- and N_Extended_Return_Statement nodes. References the entity for the
1634 -- declaration of the procedure to be called to accomplish the required
1635 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1636 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1637 -- allocating the return value), and for the Deallocate procedure in the
1638 -- case of N_Free_Statement.
1640 -- Raises_Constraint_Error (Flag7-Sem)
1641 -- Set on an expression whose evaluation will definitely fail constraint
1642 -- error check. In the case of static expressions, this flag must be set
1643 -- accurately (and if it is set, the expression is typically illegal
1644 -- unless it appears as a non-elaborated branch of a short-circuit form).
1645 -- For a non-static expression, this flag may be set whenever an
1646 -- expression (e.g. an aggregate) is known to raise constraint error. If
1647 -- set, the expression definitely will raise CE if elaborated at runtime.
1648 -- If not set, the expression may or may not raise CE. In other words, on
1649 -- static expressions, the flag is set accurately, on non-static
1650 -- expressions it is set conservatively.
1652 -- Redundant_Use (Flag13-Sem)
1653 -- Present in nodes that can appear as an operand in a use clause or use
1654 -- type clause (identifiers, expanded names, attribute references). Set
1655 -- to indicate that a use is redundant (and therefore need not be undone
1656 -- on scope exit).
1658 -- Renaming_Exception (Node2-Sem)
1659 -- Present in N_Exception_Declaration node. Used to point back to the
1660 -- exception renaming for an exception declared within a subprogram.
1661 -- What happens is that an exception declared in a subprogram is moved
1662 -- to the library level with a unique name, and the original exception
1663 -- becomes a renaming. This link from the library level exception to the
1664 -- renaming declaration allows registering of the proper exception name.
1666 -- Return_Statement_Entity (Node5-Sem)
1667 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1668 -- Points to an E_Return_Statement representing the return statement.
1670 -- Return_Object_Declarations (List3)
1671 -- Present in N_Extended_Return_Statement. Points to a list initially
1672 -- containing a single N_Object_Declaration representing the return
1673 -- object. We use a list (instead of just a pointer to the object decl)
1674 -- because Analyze wants to insert extra actions on this list.
1676 -- Rounded_Result (Flag18-Sem)
1677 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1678 -- Used in the fixed-point cases to indicate that the result must be
1679 -- rounded as a result of the use of the 'Round attribute. Also used for
1680 -- integer N_Op_Divide nodes to indicate that the result should be
1681 -- rounded to the nearest integer (breaking ties away from zero), rather
1682 -- than truncated towards zero as usual. These rounded integer operations
1683 -- are the result of expansion of rounded fixed-point divide, conversion
1684 -- and multiplication operations.
1686 -- SCIL_Entity (Node4-Sem)
1687 -- Present in SCIL nodes. Used to reference the tagged type associated
1688 -- with the SCIL node.
1690 -- SCIL_Controlling_Tag (Node5-Sem)
1691 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1692 -- controlling tag of a dispatching call.
1694 -- SCIL_Tag_Value (Node5-Sem)
1695 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1696 -- value that is being tested.
1698 -- SCIL_Target_Prim (Node2-Sem)
1699 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1700 -- type primitive associated with the SCIL node.
1702 -- Scope (Node3-Sem)
1703 -- Present in defining identifiers, defining character literals and
1704 -- defining operator symbols (i.e. in all entities). The entities of a
1705 -- scope all use this field to reference the corresponding scope entity.
1706 -- See Einfo for further details.
1708 -- Shift_Count_OK (Flag4-Sem)
1709 -- A flag present in shift nodes to indicate that the shift count is
1710 -- known to be in range, i.e. is in the range from zero to word length
1711 -- minus one. If this flag is not set, then the shift count may be
1712 -- outside this range, i.e. larger than the word length, and the code
1713 -- must ensure that such shift counts give the appropriate result.
1715 -- Source_Type (Node1-Sem)
1716 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1717 -- source type entity for the unchecked conversion instantiation
1718 -- which gigi must do size validation for.
1720 -- Split_PPC (Flag17)
1721 -- When a Pre or Post aspect specification is processed, it is broken
1722 -- into AND THEN sections. The left most section has Split_PPC set to
1723 -- False, indicating that it is the original specification (e.g. for
1724 -- posting errors). For other sections, Split_PPC is set to True.
1725 -- This flag is set in both the N_Aspect_Specification node itself,
1726 -- and in the pragma which is generated from this node.
1728 -- Storage_Pool (Node1-Sem)
1729 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1730 -- and N_Extended_Return_Statement nodes. References the entity for the
1731 -- storage pool to be used for the allocate or free call or for the
1732 -- allocation of the returned value from function. Empty indicates that
1733 -- the global default pool is to be used. Note that in the case
1734 -- of a return statement, this field is set only if the function returns
1735 -- value of a type whose size is not known at compile time on the
1736 -- secondary stack.
1738 -- Suppress_Assignment_Checks (Flag18-Sem)
1739 -- Used in generated N_Assignment_Statement nodes to suppress predicate
1740 -- and range checks in cases where the generated code knows that the
1741 -- value being assigned is in range and satisfies any predicate. Also
1742 -- can be set in N_Object_Declaration nodes, to similarly suppress any
1743 -- checks on the initializing value.
1745 -- Suppress_Loop_Warnings (Flag17-Sem)
1746 -- Used in N_Loop_Statement node to indicate that warnings within the
1747 -- body of the loop should be suppressed. This is set when the range
1748 -- of a FOR loop is known to be null, or is probably null (loop would
1749 -- only execute if invalid values are present).
1751 -- Target_Type (Node2-Sem)
1752 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1753 -- type entity for the unchecked conversion instantiation which gigi must
1754 -- do size validation for.
1756 -- Then_Actions (List3-Sem)
1757 -- This field is present in conditional expression nodes. During code
1758 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1759 -- actions at an appropriate place in the tree to get elaborated at the
1760 -- right time. For conditional expressions, we have to be sure that the
1761 -- actions for the Then branch are only elaborated if the condition is
1762 -- True. The Then_Actions field is used as a temporary parking place for
1763 -- these actions. The final tree is always rewritten to eliminate the
1764 -- need for this field, so in the tree passed to Gigi, this field is
1765 -- always set to No_List.
1767 -- Treat_Fixed_As_Integer (Flag14-Sem)
1768 -- This flag appears in operator nodes for divide, multiply, mod and rem
1769 -- on fixed-point operands. It indicates that the operands are to be
1770 -- treated as integer values, ignoring small values. This flag is only
1771 -- set as a result of expansion of fixed-point operations. Typically a
1772 -- fixed-point multiplication in the source generates subsidiary
1773 -- multiplication and division operations that work with the underlying
1774 -- integer values and have this flag set. Note that this flag is not
1775 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1776 -- in these cases it is always the case that fixed is treated as integer.
1777 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1778 -- leave such nodes alone, and whoever makes them must set the correct
1779 -- Etype value.
1781 -- TSS_Elist (Elist3-Sem)
1782 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1783 -- entries for each TSS (type support subprogram) associated with the
1784 -- frozen type. The elements of the list are the entities for the
1785 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1786 -- if there are no type support subprograms for the type or if the freeze
1787 -- node is not for a type.
1789 -- Unreferenced_In_Spec (Flag7-Sem)
1790 -- Present in N_With_Clause nodes. Set if the with clause is on the
1791 -- package or subprogram spec where the main unit is the corresponding
1792 -- body, and is not referenced by the spec (it may still be referenced by
1793 -- the body, so this flag is used to generate the proper message (see
1794 -- Sem_Util.Check_Unused_Withs for details)
1796 -- Used_Operations (Elist5-Sem)
1797 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
1798 -- are made potentially use-visible by the clause. Simplifies processing
1799 -- on exit from the scope of the use_type_clause, in particular in the
1800 -- case of Use_All_Type, when those operations several scopes.
1802 -- Was_Originally_Stub (Flag13-Sem)
1803 -- This flag is set in the node for a proper body that replaces stub.
1804 -- During the analysis procedure, stubs in some situations get rewritten
1805 -- by the corresponding bodies, and we set this flag to remember that
1806 -- this happened. Note that it is not good enough to rely on the use of
1807 -- Original_Node here because of the case of nested instantiations where
1808 -- the substituted node can be copied.
1810 -- Withed_Body (Node1-Sem)
1811 -- Present in N_With_Clause nodes. Set if the unit in whose context
1812 -- the with_clause appears instantiates a generic contained in the
1813 -- library unit of the with_clause and as a result loads its body.
1814 -- Used for a more precise unit traversal for CodePeer.
1816 --------------------------------------------------
1817 -- Note on Use of End_Label and End_Span Fields --
1818 --------------------------------------------------
1820 -- Several constructs have end lines:
1822 -- Loop Statement end loop [loop_IDENTIFIER];
1823 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1824 -- Task Definition end [task_IDENTIFIER]
1825 -- Protected Definition end [protected_IDENTIFIER]
1826 -- Protected Body end [protected_IDENTIFIER]
1828 -- Block Statement end [block_IDENTIFIER];
1829 -- Subprogram Body end [DESIGNATOR];
1830 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1831 -- Task Body end [task_IDENTIFIER];
1832 -- Accept Statement end [entry_IDENTIFIER]];
1833 -- Entry Body end [entry_IDENTIFIER];
1835 -- If Statement end if;
1836 -- Case Statement end case;
1838 -- Record Definition end record;
1839 -- Enumeration Definition );
1841 -- The End_Label and End_Span fields are used to mark the locations of
1842 -- these lines, and also keep track of the label in the case where a label
1843 -- is present.
1845 -- For the first group above, the End_Label field of the corresponding node
1846 -- is used to point to the label identifier. In the case where there is no
1847 -- label in the source, the parser supplies a dummy identifier (with
1848 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1849 -- marks the location of the token following the END token.
1851 -- For the second group, the use of End_Label is similar, but the End_Label
1852 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1853 -- simply because in some cases there is no room in the parent node.
1855 -- For the third group, there is never any label, and instead of using
1856 -- End_Label, we use the End_Span field which gives the location of the
1857 -- token following END, relative to the starting Sloc of the construct,
1858 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1859 -- following the End_Label.
1861 -- The record definition case is handled specially, we treat it as though
1862 -- it required an optional label which is never present, and so the parser
1863 -- always builds a dummy identifier with Comes From Source set False. The
1864 -- reason we do this, rather than using End_Span in this case, is that we
1865 -- want to generate a cross-ref entry for the end of a record, since it
1866 -- represents a scope for name declaration purposes.
1868 -- The enumeration definition case is handled in an exactly similar manner,
1869 -- building a dummy identifier to get a cross-reference.
1871 -- Note: the reason we store the difference as a Uint, instead of storing
1872 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1873 -- distinguished from other types of values, and we count on all general
1874 -- use fields being self describing. To make things easier for clients,
1875 -- note that we provide function End_Location, and procedure
1876 -- Set_End_Location to allow access to the logical value (which is the
1877 -- Source_Ptr value for the end token).
1879 ---------------------
1880 -- Syntactic Nodes --
1881 ---------------------
1883 ---------------------
1884 -- 2.3 Identifier --
1885 ---------------------
1887 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1888 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1890 -- An IDENTIFIER shall not be a reserved word
1892 -- In the Ada grammar identifiers are the bottom level tokens which have
1893 -- very few semantics. Actual program identifiers are direct names. If
1894 -- we were being 100% honest with the grammar, then we would have a node
1895 -- called N_Direct_Name which would point to an identifier. However,
1896 -- that's too many extra nodes, so we just use the N_Identifier node
1897 -- directly as a direct name, and it contains the expression fields and
1898 -- Entity field that correspond to its use as a direct name. In those
1899 -- few cases where identifiers appear in contexts where they are not
1900 -- direct names (pragmas, pragma argument associations, attribute
1901 -- references and attribute definition clauses), the Chars field of the
1902 -- node contains the Name_Id for the identifier name.
1904 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1905 -- cases. First, an incorrect use of a reserved word as an identifier is
1906 -- diagnosed and then treated as a normal identifier. Second, an
1907 -- attribute designator of the form of a reserved word (access, delta,
1908 -- digits, range) is treated as an identifier.
1910 -- Note: The set of letters that is permitted in an identifier depends
1911 -- on the character set in use. See package Csets for full details.
1913 -- N_Identifier
1914 -- Sloc points to identifier
1915 -- Chars (Name1) contains the Name_Id for the identifier
1916 -- Entity (Node4-Sem)
1917 -- Associated_Node (Node4-Sem)
1918 -- Original_Discriminant (Node2-Sem)
1919 -- Redundant_Use (Flag13-Sem)
1920 -- Atomic_Sync_Required (Flag14-Sem)
1921 -- Has_Private_View (Flag11-Sem) (set in generic units)
1922 -- plus fields for expression
1924 --------------------------
1925 -- 2.4 Numeric Literal --
1926 --------------------------
1928 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1930 ----------------------------
1931 -- 2.4.1 Decimal Literal --
1932 ----------------------------
1934 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1936 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1938 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1940 -- Decimal literals appear in the tree as either integer literal nodes
1941 -- or real literal nodes, depending on whether a period is present.
1943 -- Note: literal nodes appear as a result of direct use of literals
1944 -- in the source program, and also as the result of evaluating
1945 -- expressions at compile time. In the latter case, it is possible
1946 -- to construct real literals that have no syntactic representation
1947 -- using the standard literal format. Such literals are listed by
1948 -- Sprint using the notation [numerator / denominator].
1950 -- Note: the value of an integer literal node created by the front end
1951 -- is never outside the range of values of the base type. However, it
1952 -- can be the case that the created value is outside the range of the
1953 -- particular subtype. This happens in the case of integer overflows
1954 -- with checks suppressed.
1956 -- N_Integer_Literal
1957 -- Sloc points to literal
1958 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1959 -- has been constant-folded into its literal value.
1960 -- Intval (Uint3) contains integer value of literal
1961 -- plus fields for expression
1962 -- Print_In_Hex (Flag13-Sem)
1964 -- N_Real_Literal
1965 -- Sloc points to literal
1966 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1967 -- has been constant-folded into its literal value.
1968 -- Realval (Ureal3) contains real value of literal
1969 -- Corresponding_Integer_Value (Uint4-Sem)
1970 -- Is_Machine_Number (Flag11-Sem)
1971 -- plus fields for expression
1973 --------------------------
1974 -- 2.4.2 Based Literal --
1975 --------------------------
1977 -- BASED_LITERAL ::=
1978 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1980 -- BASE ::= NUMERAL
1982 -- BASED_NUMERAL ::=
1983 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1985 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1987 -- Based literals appear in the tree as either integer literal nodes
1988 -- or real literal nodes, depending on whether a period is present.
1990 ----------------------------
1991 -- 2.5 Character Literal --
1992 ----------------------------
1994 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1996 -- N_Character_Literal
1997 -- Sloc points to literal
1998 -- Chars (Name1) contains the Name_Id for the identifier
1999 -- Char_Literal_Value (Uint2) contains the literal value
2000 -- Entity (Node4-Sem)
2001 -- Associated_Node (Node4-Sem)
2002 -- Has_Private_View (Flag11-Sem) set in generic units.
2003 -- plus fields for expression
2005 -- Note: the Entity field will be missing (set to Empty) for character
2006 -- literals whose type is Standard.Wide_Character or Standard.Character
2007 -- or a type derived from one of these two. In this case the character
2008 -- literal stands for its own coding. The reason we take this irregular
2009 -- short cut is to avoid the need to build lots of junk defining
2010 -- character literal nodes.
2012 -------------------------
2013 -- 2.6 String Literal --
2014 -------------------------
2016 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2018 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2019 -- single GRAPHIC_CHARACTER other than a quotation mark.
2021 -- Is_Folded_In_Parser is True if the parser created this literal by
2022 -- folding a sequence of "&" operators. For example, if the source code
2023 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2024 -- is set. This flag is needed because the parser doesn't know about
2025 -- visibility, so the folded result might be wrong, and semantic
2026 -- analysis needs to check for that.
2028 -- N_String_Literal
2029 -- Sloc points to literal
2030 -- Strval (Str3) contains Id of string value
2031 -- Has_Wide_Character (Flag11-Sem)
2032 -- Has_Wide_Wide_Character (Flag13-Sem)
2033 -- Is_Folded_In_Parser (Flag4)
2034 -- plus fields for expression
2036 ------------------
2037 -- 2.7 Comment --
2038 ------------------
2040 -- A COMMENT starts with two adjacent hyphens and extends up to the
2041 -- end of the line. A COMMENT may appear on any line of a program.
2043 -- Comments are skipped by the scanner and do not appear in the tree.
2044 -- It is possible to reconstruct the position of comments with respect
2045 -- to the elements of the tree by using the source position (Sloc)
2046 -- pointers that appear in every tree node.
2048 -----------------
2049 -- 2.8 Pragma --
2050 -----------------
2052 -- PRAGMA ::= pragma IDENTIFIER
2053 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2055 -- Note that a pragma may appear in the tree anywhere a declaration
2056 -- or a statement may appear, as well as in some other situations
2057 -- which are explicitly documented.
2059 -- N_Pragma
2060 -- Sloc points to PRAGMA
2061 -- Next_Pragma (Node1-Sem)
2062 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2063 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2064 -- Pragma_Identifier (Node4)
2065 -- Next_Rep_Item (Node5-Sem)
2066 -- From_Aspect_Specification (Flag13-Sem)
2067 -- Is_Delayed_Aspect (Flag14-Sem)
2068 -- Import_Interface_Present (Flag16-Sem)
2069 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2070 -- Class_Present (Flag6) set if from Aspect with 'Class
2072 -- Note: we should have a section on what pragmas are passed on to
2073 -- the back end to be processed. This section should note that pragma
2074 -- Psect_Object is always converted to Common_Object, but there are
2075 -- undoubtedly many other similar notes required ???
2077 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2078 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2080 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2081 -- aspect name, as does the Pragma_Identifier. In this case if the
2082 -- pragma has a local name argument (such as pragma Inline), it is
2083 -- resolved to point to the specific entity affected by the pragma.
2085 --------------------------------------
2086 -- 2.8 Pragma Argument Association --
2087 --------------------------------------
2089 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2090 -- [pragma_argument_IDENTIFIER =>] NAME
2091 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2093 -- N_Pragma_Argument_Association
2094 -- Sloc points to first token in association
2095 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2096 -- Expression (Node3)
2098 ------------------------
2099 -- 2.9 Reserved Word --
2100 ------------------------
2102 -- Reserved words are parsed by the scanner, and returned as the
2103 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2105 ----------------------------
2106 -- 3.1 Basic Declaration --
2107 ----------------------------
2109 -- BASIC_DECLARATION ::=
2110 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2111 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2112 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2113 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2114 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2115 -- | GENERIC_INSTANTIATION
2117 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2118 -- see further description in section on semantic nodes.
2120 -- Also, in the tree that is constructed, a pragma may appear
2121 -- anywhere that a declaration may appear.
2123 ------------------------------
2124 -- 3.1 Defining Identifier --
2125 ------------------------------
2127 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2129 -- A defining identifier is an entity, which has additional fields
2130 -- depending on the setting of the Ekind field. These additional
2131 -- fields are defined (and access subprograms declared) in package
2132 -- Einfo.
2134 -- Note: N_Defining_Identifier is an extended node whose fields are
2135 -- deliberate layed out to match the layout of fields in an ordinary
2136 -- N_Identifier node allowing for easy alteration of an identifier
2137 -- node into a defining identifier node. For details, see procedure
2138 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2140 -- N_Defining_Identifier
2141 -- Sloc points to identifier
2142 -- Chars (Name1) contains the Name_Id for the identifier
2143 -- Next_Entity (Node2-Sem)
2144 -- Scope (Node3-Sem)
2145 -- Etype (Node5-Sem)
2147 -----------------------------
2148 -- 3.2.1 Type Declaration --
2149 -----------------------------
2151 -- TYPE_DECLARATION ::=
2152 -- FULL_TYPE_DECLARATION
2153 -- | INCOMPLETE_TYPE_DECLARATION
2154 -- | PRIVATE_TYPE_DECLARATION
2155 -- | PRIVATE_EXTENSION_DECLARATION
2157 ----------------------------------
2158 -- 3.2.1 Full Type Declaration --
2159 ----------------------------------
2161 -- FULL_TYPE_DECLARATION ::=
2162 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2163 -- is TYPE_DEFINITION
2164 -- [ASPECT_SPECIFICATIONS];
2165 -- | TASK_TYPE_DECLARATION
2166 -- | PROTECTED_TYPE_DECLARATION
2168 -- The full type declaration node is used only for the first case. The
2169 -- second case (concurrent type declaration), is represented directly
2170 -- by a task type declaration or a protected type declaration.
2172 -- N_Full_Type_Declaration
2173 -- Sloc points to TYPE
2174 -- Defining_Identifier (Node1)
2175 -- Discriminant_Specifications (List4) (set to No_List if none)
2176 -- Type_Definition (Node3)
2177 -- Discr_Check_Funcs_Built (Flag11-Sem)
2179 ----------------------------
2180 -- 3.2.1 Type Definition --
2181 ----------------------------
2183 -- TYPE_DEFINITION ::=
2184 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2185 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2186 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2187 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2189 --------------------------------
2190 -- 3.2.2 Subtype Declaration --
2191 --------------------------------
2193 -- SUBTYPE_DECLARATION ::=
2194 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2195 -- [ASPECT_SPECIFICATIONS];
2197 -- The subtype indication field is set to Empty for subtypes
2198 -- declared in package Standard (Positive, Natural).
2200 -- N_Subtype_Declaration
2201 -- Sloc points to SUBTYPE
2202 -- Defining_Identifier (Node1)
2203 -- Null_Exclusion_Present (Flag11)
2204 -- Subtype_Indication (Node5)
2205 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2206 -- Exception_Junk (Flag8-Sem)
2207 -- Has_Dynamic_Range_Check (Flag12-Sem)
2209 -------------------------------
2210 -- 3.2.2 Subtype Indication --
2211 -------------------------------
2213 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2215 -- Note: if no constraint is present, the subtype indication appears
2216 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2217 -- node is used only if a constraint is present.
2219 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2220 -- with the null-exclusion part (see AI-231), we had to introduce a new
2221 -- attribute in all the parents of subtype_indication nodes to indicate
2222 -- if the null-exclusion is present.
2224 -- Note: the reason that this node has expression fields is that a
2225 -- subtype indication can appear as an operand of a membership test.
2227 -- N_Subtype_Indication
2228 -- Sloc points to first token of subtype mark
2229 -- Subtype_Mark (Node4)
2230 -- Constraint (Node3)
2231 -- Etype (Node5-Sem)
2232 -- Must_Not_Freeze (Flag8-Sem)
2234 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2235 -- reason for this redundancy is so that in a list of array index types,
2236 -- the Etype can be uniformly accessed to determine the subscript type.
2237 -- This means that no Itype is constructed for the actual subtype that
2238 -- is created by the subtype indication. If such an Itype is required,
2239 -- it is constructed in the context in which the indication appears.
2241 -------------------------
2242 -- 3.2.2 Subtype Mark --
2243 -------------------------
2245 -- SUBTYPE_MARK ::= subtype_NAME
2247 -----------------------
2248 -- 3.2.2 Constraint --
2249 -----------------------
2251 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2253 ------------------------------
2254 -- 3.2.2 Scalar Constraint --
2255 ------------------------------
2257 -- SCALAR_CONSTRAINT ::=
2258 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2260 ---------------------------------
2261 -- 3.2.2 Composite Constraint --
2262 ---------------------------------
2264 -- COMPOSITE_CONSTRAINT ::=
2265 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2267 -------------------------------
2268 -- 3.3.1 Object Declaration --
2269 -------------------------------
2271 -- OBJECT_DECLARATION ::=
2272 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2273 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2274 -- [ASPECT_SPECIFICATIONS];
2275 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2276 -- ACCESS_DEFINITION [:= EXPRESSION]
2277 -- [ASPECT_SPECIFICATIONS];
2278 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2279 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2280 -- [ASPECT_SPECIFICATIONS];
2281 -- | SINGLE_TASK_DECLARATION
2282 -- | SINGLE_PROTECTED_DECLARATION
2284 -- Note: aliased is not permitted in Ada 83 mode
2286 -- The N_Object_Declaration node is only for the first two cases.
2287 -- Single task declaration is handled by P_Task (9.1)
2288 -- Single protected declaration is handled by P_protected (9.5)
2290 -- Although the syntax allows multiple identifiers in the list, the
2291 -- semantics is as though successive declarations were given with
2292 -- identical type definition and expression components. To simplify
2293 -- semantic processing, the parser represents a multiple declaration
2294 -- case as a sequence of single declarations, using the More_Ids and
2295 -- Prev_Ids flags to preserve the original source form as described
2296 -- in the section on "Handling of Defining Identifier Lists".
2298 -- The flag Has_Init_Expression is set if an initializing expression
2299 -- is present. Normally it is set if and only if Expression contains
2300 -- a non-empty value, but there is an exception to this. When the
2301 -- initializing expression is an aggregate which requires explicit
2302 -- assignments, the Expression field gets set to Empty, but this flag
2303 -- is still set, so we don't forget we had an initializing expression.
2305 -- Note: if a range check is required for the initialization
2306 -- expression then the Do_Range_Check flag is set in the Expression,
2307 -- with the check being done against the type given by the object
2308 -- definition, which is also the Etype of the defining identifier.
2310 -- Note: the contents of the Expression field must be ignored (i.e.
2311 -- treated as though it were Empty) if No_Initialization is set True.
2313 -- Note: the back end places some restrictions on the form of the
2314 -- Expression field. If the object being declared is Atomic, then
2315 -- the Expression may not have the form of an aggregate (since this
2316 -- might cause the back end to generate separate assignments). In this
2317 -- case the front end must generate an extra temporary and initialize
2318 -- this temporary as required (the temporary itself is not atomic).
2320 -- Note: there is not node kind for object definition. Instead, the
2321 -- corresponding field holds a subtype indication, an array type
2322 -- definition, or (Ada 2005, AI-406) an access definition.
2324 -- N_Object_Declaration
2325 -- Sloc points to first identifier
2326 -- Defining_Identifier (Node1)
2327 -- Aliased_Present (Flag4)
2328 -- Constant_Present (Flag17) set if CONSTANT appears
2329 -- Null_Exclusion_Present (Flag11)
2330 -- Object_Definition (Node4) subtype indic./array type def./access def.
2331 -- Expression (Node3) (set to Empty if not present)
2332 -- Handler_List_Entry (Node2-Sem)
2333 -- Corresponding_Generic_Association (Node5-Sem)
2334 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2335 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2336 -- No_Initialization (Flag13-Sem)
2337 -- Assignment_OK (Flag15-Sem)
2338 -- Exception_Junk (Flag8-Sem)
2339 -- Is_Subprogram_Descriptor (Flag16-Sem)
2340 -- Has_Init_Expression (Flag14)
2341 -- Suppress_Assignment_Checks (Flag18-Sem)
2343 -------------------------------------
2344 -- 3.3.1 Defining Identifier List --
2345 -------------------------------------
2347 -- DEFINING_IDENTIFIER_LIST ::=
2348 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2350 -------------------------------
2351 -- 3.3.2 Number Declaration --
2352 -------------------------------
2354 -- NUMBER_DECLARATION ::=
2355 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2357 -- Although the syntax allows multiple identifiers in the list, the
2358 -- semantics is as though successive declarations were given with
2359 -- identical expressions. To simplify semantic processing, the parser
2360 -- represents a multiple declaration case as a sequence of single
2361 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2362 -- the original source form as described in the section on "Handling
2363 -- of Defining Identifier Lists".
2365 -- N_Number_Declaration
2366 -- Sloc points to first identifier
2367 -- Defining_Identifier (Node1)
2368 -- Expression (Node3)
2369 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2370 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2372 ----------------------------------
2373 -- 3.4 Derived Type Definition --
2374 ----------------------------------
2376 -- DERIVED_TYPE_DEFINITION ::=
2377 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2378 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2380 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2381 -- in Ada 83 mode
2383 -- Note: a record extension part is required if ABSTRACT is present
2385 -- N_Derived_Type_Definition
2386 -- Sloc points to NEW
2387 -- Abstract_Present (Flag4)
2388 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2389 -- Subtype_Indication (Node5)
2390 -- Record_Extension_Part (Node3) (set to Empty if not present)
2391 -- Limited_Present (Flag17)
2392 -- Task_Present (Flag5) set in task interfaces
2393 -- Protected_Present (Flag6) set in protected interfaces
2394 -- Synchronized_Present (Flag7) set in interfaces
2395 -- Interface_List (List2) (set to No_List if none)
2396 -- Interface_Present (Flag16) set in abstract interfaces
2398 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2399 -- Interface_List, and Interface_Present are used for abstract
2400 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2402 ---------------------------
2403 -- 3.5 Range Constraint --
2404 ---------------------------
2406 -- RANGE_CONSTRAINT ::= range RANGE
2408 -- N_Range_Constraint
2409 -- Sloc points to RANGE
2410 -- Range_Expression (Node4)
2412 ----------------
2413 -- 3.5 Range --
2414 ----------------
2416 -- RANGE ::=
2417 -- RANGE_ATTRIBUTE_REFERENCE
2418 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2420 -- Note: the case of a range given as a range attribute reference
2421 -- appears directly in the tree as an attribute reference.
2423 -- Note: the field name for a reference to a range is Range_Expression
2424 -- rather than Range, because range is a reserved keyword in Ada!
2426 -- Note: the reason that this node has expression fields is that a
2427 -- range can appear as an operand of a membership test. The Etype
2428 -- field is the type of the range (we do NOT construct an implicit
2429 -- subtype to represent the range exactly).
2431 -- N_Range
2432 -- Sloc points to ..
2433 -- Low_Bound (Node1)
2434 -- High_Bound (Node2)
2435 -- Includes_Infinities (Flag11)
2436 -- plus fields for expression
2438 -- Note: if the range appears in a context, such as a subtype
2439 -- declaration, where range checks are required on one or both of
2440 -- the expression fields, then type conversion nodes are inserted
2441 -- to represent the required checks.
2443 ----------------------------------------
2444 -- 3.5.1 Enumeration Type Definition --
2445 ----------------------------------------
2447 -- ENUMERATION_TYPE_DEFINITION ::=
2448 -- (ENUMERATION_LITERAL_SPECIFICATION
2449 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2451 -- Note: the Literals field in the node described below is null for
2452 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2453 -- which special processing handles these types as special cases.
2455 -- N_Enumeration_Type_Definition
2456 -- Sloc points to left parenthesis
2457 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2458 -- End_Label (Node4) (set to Empty if internally generated record)
2460 ----------------------------------------------
2461 -- 3.5.1 Enumeration Literal Specification --
2462 ----------------------------------------------
2464 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2465 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2467 ---------------------------------------
2468 -- 3.5.1 Defining Character Literal --
2469 ---------------------------------------
2471 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2473 -- A defining character literal is an entity, which has additional
2474 -- fields depending on the setting of the Ekind field. These
2475 -- additional fields are defined (and access subprograms declared)
2476 -- in package Einfo.
2478 -- Note: N_Defining_Character_Literal is an extended node whose fields
2479 -- are deliberate layed out to match the layout of fields in an ordinary
2480 -- N_Character_Literal node allowing for easy alteration of a character
2481 -- literal node into a defining character literal node. For details, see
2482 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2484 -- N_Defining_Character_Literal
2485 -- Sloc points to literal
2486 -- Chars (Name1) contains the Name_Id for the identifier
2487 -- Next_Entity (Node2-Sem)
2488 -- Scope (Node3-Sem)
2489 -- Etype (Node5-Sem)
2491 ------------------------------------
2492 -- 3.5.4 Integer Type Definition --
2493 ------------------------------------
2495 -- Note: there is an error in this rule in the latest version of the
2496 -- grammar, so we have retained the old rule pending clarification.
2498 -- INTEGER_TYPE_DEFINITION ::=
2499 -- SIGNED_INTEGER_TYPE_DEFINITION
2500 -- | MODULAR_TYPE_DEFINITION
2502 -------------------------------------------
2503 -- 3.5.4 Signed Integer Type Definition --
2504 -------------------------------------------
2506 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2507 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2509 -- Note: the Low_Bound and High_Bound fields are set to Empty
2510 -- for integer types defined in package Standard.
2512 -- N_Signed_Integer_Type_Definition
2513 -- Sloc points to RANGE
2514 -- Low_Bound (Node1)
2515 -- High_Bound (Node2)
2517 ------------------------------------
2518 -- 3.5.4 Modular Type Definition --
2519 ------------------------------------
2521 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2523 -- N_Modular_Type_Definition
2524 -- Sloc points to MOD
2525 -- Expression (Node3)
2527 ---------------------------------
2528 -- 3.5.6 Real Type Definition --
2529 ---------------------------------
2531 -- REAL_TYPE_DEFINITION ::=
2532 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2534 --------------------------------------
2535 -- 3.5.7 Floating Point Definition --
2536 --------------------------------------
2538 -- FLOATING_POINT_DEFINITION ::=
2539 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2541 -- Note: The Digits_Expression and Real_Range_Specifications fields
2542 -- are set to Empty for floating-point types declared in Standard.
2544 -- N_Floating_Point_Definition
2545 -- Sloc points to DIGITS
2546 -- Digits_Expression (Node2)
2547 -- Real_Range_Specification (Node4) (set to Empty if not present)
2549 -------------------------------------
2550 -- 3.5.7 Real Range Specification --
2551 -------------------------------------
2553 -- REAL_RANGE_SPECIFICATION ::=
2554 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2556 -- N_Real_Range_Specification
2557 -- Sloc points to RANGE
2558 -- Low_Bound (Node1)
2559 -- High_Bound (Node2)
2561 -----------------------------------
2562 -- 3.5.9 Fixed Point Definition --
2563 -----------------------------------
2565 -- FIXED_POINT_DEFINITION ::=
2566 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2568 --------------------------------------------
2569 -- 3.5.9 Ordinary Fixed Point Definition --
2570 --------------------------------------------
2572 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2573 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2575 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2577 -- N_Ordinary_Fixed_Point_Definition
2578 -- Sloc points to DELTA
2579 -- Delta_Expression (Node3)
2580 -- Real_Range_Specification (Node4)
2582 -------------------------------------------
2583 -- 3.5.9 Decimal Fixed Point Definition --
2584 -------------------------------------------
2586 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2587 -- delta static_EXPRESSION
2588 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2590 -- Note: decimal types are not permitted in Ada 83 mode
2592 -- N_Decimal_Fixed_Point_Definition
2593 -- Sloc points to DELTA
2594 -- Delta_Expression (Node3)
2595 -- Digits_Expression (Node2)
2596 -- Real_Range_Specification (Node4) (set to Empty if not present)
2598 ------------------------------
2599 -- 3.5.9 Digits Constraint --
2600 ------------------------------
2602 -- DIGITS_CONSTRAINT ::=
2603 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2605 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2606 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2608 -- N_Digits_Constraint
2609 -- Sloc points to DIGITS
2610 -- Digits_Expression (Node2)
2611 -- Range_Constraint (Node4) (set to Empty if not present)
2613 --------------------------------
2614 -- 3.6 Array Type Definition --
2615 --------------------------------
2617 -- ARRAY_TYPE_DEFINITION ::=
2618 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2620 -----------------------------------------
2621 -- 3.6 Unconstrained Array Definition --
2622 -----------------------------------------
2624 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2625 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2626 -- COMPONENT_DEFINITION
2628 -- Note: dimensionality of array is indicated by number of entries in
2629 -- the Subtype_Marks list, which has one entry for each dimension.
2631 -- N_Unconstrained_Array_Definition
2632 -- Sloc points to ARRAY
2633 -- Subtype_Marks (List2)
2634 -- Component_Definition (Node4)
2636 -----------------------------------
2637 -- 3.6 Index Subtype Definition --
2638 -----------------------------------
2640 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2642 -- There is no explicit node in the tree for an index subtype
2643 -- definition since the N_Unconstrained_Array_Definition node
2644 -- incorporates the type marks which appear in this context.
2646 ---------------------------------------
2647 -- 3.6 Constrained Array Definition --
2648 ---------------------------------------
2650 -- CONSTRAINED_ARRAY_DEFINITION ::=
2651 -- array (DISCRETE_SUBTYPE_DEFINITION
2652 -- {, DISCRETE_SUBTYPE_DEFINITION})
2653 -- of COMPONENT_DEFINITION
2655 -- Note: dimensionality of array is indicated by number of entries
2656 -- in the Discrete_Subtype_Definitions list, which has one entry
2657 -- for each dimension.
2659 -- N_Constrained_Array_Definition
2660 -- Sloc points to ARRAY
2661 -- Discrete_Subtype_Definitions (List2)
2662 -- Component_Definition (Node4)
2664 --------------------------------------
2665 -- 3.6 Discrete Subtype Definition --
2666 --------------------------------------
2668 -- DISCRETE_SUBTYPE_DEFINITION ::=
2669 -- discrete_SUBTYPE_INDICATION | RANGE
2671 -------------------------------
2672 -- 3.6 Component Definition --
2673 -------------------------------
2675 -- COMPONENT_DEFINITION ::=
2676 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2678 -- Note: although the syntax does not permit a component definition to
2679 -- be an anonymous array (and the parser will diagnose such an attempt
2680 -- with an appropriate message), it is possible for anonymous arrays
2681 -- to appear as component definitions. The semantics and back end handle
2682 -- this case properly, and the expander in fact generates such cases.
2683 -- Access_Definition is an optional field that gives support to
2684 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2685 -- Subtype_Indication field or else the Access_Definition field.
2687 -- N_Component_Definition
2688 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2689 -- Aliased_Present (Flag4)
2690 -- Null_Exclusion_Present (Flag11)
2691 -- Subtype_Indication (Node5) (set to Empty if not present)
2692 -- Access_Definition (Node3) (set to Empty if not present)
2694 -----------------------------
2695 -- 3.6.1 Index Constraint --
2696 -----------------------------
2698 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2700 -- It is not in general possible to distinguish between discriminant
2701 -- constraints and index constraints at parse time, since a simple
2702 -- name could be either the subtype mark of a discrete range, or an
2703 -- expression in a discriminant association with no name. Either
2704 -- entry appears simply as the name, and the semantic parse must
2705 -- distinguish between the two cases. Thus we use a common tree
2706 -- node format for both of these constraint types.
2708 -- See Discriminant_Constraint for format of node
2710 ---------------------------
2711 -- 3.6.1 Discrete Range --
2712 ---------------------------
2714 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2716 ----------------------------
2717 -- 3.7 Discriminant Part --
2718 ----------------------------
2720 -- DISCRIMINANT_PART ::=
2721 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2723 ------------------------------------
2724 -- 3.7 Unknown Discriminant Part --
2725 ------------------------------------
2727 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2729 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2731 -- There is no explicit node in the tree for an unknown discriminant
2732 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2733 -- parent node.
2735 ----------------------------------
2736 -- 3.7 Known Discriminant Part --
2737 ----------------------------------
2739 -- KNOWN_DISCRIMINANT_PART ::=
2740 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2742 -------------------------------------
2743 -- 3.7 Discriminant Specification --
2744 -------------------------------------
2746 -- DISCRIMINANT_SPECIFICATION ::=
2747 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2748 -- [:= DEFAULT_EXPRESSION]
2749 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2750 -- [:= DEFAULT_EXPRESSION]
2752 -- Although the syntax allows multiple identifiers in the list, the
2753 -- semantics is as though successive specifications were given with
2754 -- identical type definition and expression components. To simplify
2755 -- semantic processing, the parser represents a multiple declaration
2756 -- case as a sequence of single specifications, using the More_Ids and
2757 -- Prev_Ids flags to preserve the original source form as described
2758 -- in the section on "Handling of Defining Identifier Lists".
2760 -- N_Discriminant_Specification
2761 -- Sloc points to first identifier
2762 -- Defining_Identifier (Node1)
2763 -- Null_Exclusion_Present (Flag11)
2764 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2765 -- Expression (Node3) (set to Empty if no default expression)
2766 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2767 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2769 -----------------------------
2770 -- 3.7 Default Expression --
2771 -----------------------------
2773 -- DEFAULT_EXPRESSION ::= EXPRESSION
2775 ------------------------------------
2776 -- 3.7.1 Discriminant Constraint --
2777 ------------------------------------
2779 -- DISCRIMINANT_CONSTRAINT ::=
2780 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2782 -- It is not in general possible to distinguish between discriminant
2783 -- constraints and index constraints at parse time, since a simple
2784 -- name could be either the subtype mark of a discrete range, or an
2785 -- expression in a discriminant association with no name. Either
2786 -- entry appears simply as the name, and the semantic parse must
2787 -- distinguish between the two cases. Thus we use a common tree
2788 -- node format for both of these constraint types.
2790 -- N_Index_Or_Discriminant_Constraint
2791 -- Sloc points to left paren
2792 -- Constraints (List1) points to list of discrete ranges or
2793 -- discriminant associations
2795 -------------------------------------
2796 -- 3.7.1 Discriminant Association --
2797 -------------------------------------
2799 -- DISCRIMINANT_ASSOCIATION ::=
2800 -- [discriminant_SELECTOR_NAME
2801 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2803 -- Note: a discriminant association that has no selector name list
2804 -- appears directly as an expression in the tree.
2806 -- N_Discriminant_Association
2807 -- Sloc points to first token of discriminant association
2808 -- Selector_Names (List1) (always non-empty, since if no selector
2809 -- names are present, this node is not used, see comment above)
2810 -- Expression (Node3)
2812 ---------------------------------
2813 -- 3.8 Record Type Definition --
2814 ---------------------------------
2816 -- RECORD_TYPE_DEFINITION ::=
2817 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2819 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2821 -- There is no explicit node in the tree for a record type definition.
2822 -- Instead the flags for Tagged_Present and Limited_Present appear in
2823 -- the N_Record_Definition node for a record definition appearing in
2824 -- the context of a record type definition.
2826 ----------------------------
2827 -- 3.8 Record Definition --
2828 ----------------------------
2830 -- RECORD_DEFINITION ::=
2831 -- record
2832 -- COMPONENT_LIST
2833 -- end record
2834 -- | null record
2836 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2837 -- flags appear only for a record definition appearing in a record
2838 -- type definition.
2840 -- Note: the NULL RECORD case is not permitted in Ada 83
2842 -- N_Record_Definition
2843 -- Sloc points to RECORD or NULL
2844 -- End_Label (Node4) (set to Empty if internally generated record)
2845 -- Abstract_Present (Flag4)
2846 -- Tagged_Present (Flag15)
2847 -- Limited_Present (Flag17)
2848 -- Component_List (Node1) empty in null record case
2849 -- Null_Present (Flag13) set in null record case
2850 -- Task_Present (Flag5) set in task interfaces
2851 -- Protected_Present (Flag6) set in protected interfaces
2852 -- Synchronized_Present (Flag7) set in interfaces
2853 -- Interface_Present (Flag16) set in abstract interfaces
2854 -- Interface_List (List2) (set to No_List if none)
2856 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2857 -- Interface_List and Interface_Present are used for abstract
2858 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2860 -------------------------
2861 -- 3.8 Component List --
2862 -------------------------
2864 -- COMPONENT_LIST ::=
2865 -- COMPONENT_ITEM {COMPONENT_ITEM}
2866 -- | {COMPONENT_ITEM} VARIANT_PART
2867 -- | null;
2869 -- N_Component_List
2870 -- Sloc points to first token of component list
2871 -- Component_Items (List3)
2872 -- Variant_Part (Node4) (set to Empty if no variant part)
2873 -- Null_Present (Flag13)
2875 -------------------------
2876 -- 3.8 Component Item --
2877 -------------------------
2879 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2881 -- Note: A component item can also be a pragma, and in the tree
2882 -- that is obtained after semantic processing, a component item
2883 -- can be an N_Null node resulting from a non-recognized pragma.
2885 --------------------------------
2886 -- 3.8 Component Declaration --
2887 --------------------------------
2889 -- COMPONENT_DECLARATION ::=
2890 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2891 -- [:= DEFAULT_EXPRESSION]
2892 -- [ASPECT_SPECIFICATIONS];
2894 -- Note: although the syntax does not permit a component definition to
2895 -- be an anonymous array (and the parser will diagnose such an attempt
2896 -- with an appropriate message), it is possible for anonymous arrays
2897 -- to appear as component definitions. The semantics and back end handle
2898 -- this case properly, and the expander in fact generates such cases.
2900 -- Although the syntax allows multiple identifiers in the list, the
2901 -- semantics is as though successive declarations were given with the
2902 -- same component definition and expression components. To simplify
2903 -- semantic processing, the parser represents a multiple declaration
2904 -- case as a sequence of single declarations, using the More_Ids and
2905 -- Prev_Ids flags to preserve the original source form as described
2906 -- in the section on "Handling of Defining Identifier Lists".
2908 -- N_Component_Declaration
2909 -- Sloc points to first identifier
2910 -- Defining_Identifier (Node1)
2911 -- Component_Definition (Node4)
2912 -- Expression (Node3) (set to Empty if no default expression)
2913 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2914 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2916 -------------------------
2917 -- 3.8.1 Variant Part --
2918 -------------------------
2920 -- VARIANT_PART ::=
2921 -- case discriminant_DIRECT_NAME is
2922 -- VARIANT
2923 -- {VARIANT}
2924 -- end case;
2926 -- Note: the variants list can contain pragmas as well as variants.
2927 -- In a properly formed program there is at least one variant.
2929 -- N_Variant_Part
2930 -- Sloc points to CASE
2931 -- Name (Node2)
2932 -- Variants (List1)
2934 --------------------
2935 -- 3.8.1 Variant --
2936 --------------------
2938 -- VARIANT ::=
2939 -- when DISCRETE_CHOICE_LIST =>
2940 -- COMPONENT_LIST
2942 -- N_Variant
2943 -- Sloc points to WHEN
2944 -- Discrete_Choices (List4)
2945 -- Component_List (Node1)
2946 -- Enclosing_Variant (Node2-Sem)
2947 -- Present_Expr (Uint3-Sem)
2948 -- Dcheck_Function (Node5-Sem)
2950 ---------------------------------
2951 -- 3.8.1 Discrete Choice List --
2952 ---------------------------------
2954 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2956 ----------------------------
2957 -- 3.8.1 Discrete Choice --
2958 ----------------------------
2960 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2962 -- Note: in Ada 83 mode, the expression must be a simple expression
2964 -- The only choice that appears explicitly is the OTHERS choice, as
2965 -- defined here. Other cases of discrete choice (expression and
2966 -- discrete range) appear directly. This production is also used
2967 -- for the OTHERS possibility of an exception choice.
2969 -- Note: in accordance with the syntax, the parser does not check that
2970 -- OTHERS appears at the end on its own in a choice list context. This
2971 -- is a semantic check.
2973 -- N_Others_Choice
2974 -- Sloc points to OTHERS
2975 -- Others_Discrete_Choices (List1-Sem)
2976 -- All_Others (Flag11-Sem)
2978 ----------------------------------
2979 -- 3.9.1 Record Extension Part --
2980 ----------------------------------
2982 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2984 -- Note: record extension parts are not permitted in Ada 83 mode
2986 --------------------------------------
2987 -- 3.9.4 Interface Type Definition --
2988 --------------------------------------
2990 -- INTERFACE_TYPE_DEFINITION ::=
2991 -- [limited | task | protected | synchronized]
2992 -- interface [interface_list]
2994 -- Note: Interfaces are implemented with N_Record_Definition and
2995 -- N_Derived_Type_Definition nodes because most of the support
2996 -- for the analysis of abstract types has been reused to
2997 -- analyze abstract interfaces.
2999 ----------------------------------
3000 -- 3.10 Access Type Definition --
3001 ----------------------------------
3003 -- ACCESS_TYPE_DEFINITION ::=
3004 -- ACCESS_TO_OBJECT_DEFINITION
3005 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3007 --------------------------
3008 -- 3.10 Null Exclusion --
3009 --------------------------
3011 -- NULL_EXCLUSION ::= not null
3013 ---------------------------------------
3014 -- 3.10 Access To Object Definition --
3015 ---------------------------------------
3017 -- ACCESS_TO_OBJECT_DEFINITION ::=
3018 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3019 -- SUBTYPE_INDICATION
3021 -- N_Access_To_Object_Definition
3022 -- Sloc points to ACCESS
3023 -- All_Present (Flag15)
3024 -- Null_Exclusion_Present (Flag11)
3025 -- Subtype_Indication (Node5)
3026 -- Constant_Present (Flag17)
3028 -----------------------------------
3029 -- 3.10 General Access Modifier --
3030 -----------------------------------
3032 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3034 -- Note: general access modifiers are not permitted in Ada 83 mode
3036 -- There is no explicit node in the tree for general access modifier.
3037 -- Instead the All_Present or Constant_Present flags are set in the
3038 -- parent node.
3040 -------------------------------------------
3041 -- 3.10 Access To Subprogram Definition --
3042 -------------------------------------------
3044 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3045 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3046 -- | [NULL_EXCLUSION] access [protected] function
3047 -- PARAMETER_AND_RESULT_PROFILE
3049 -- Note: access to subprograms are not permitted in Ada 83 mode
3051 -- N_Access_Function_Definition
3052 -- Sloc points to ACCESS
3053 -- Null_Exclusion_Present (Flag11)
3054 -- Null_Exclusion_In_Return_Present (Flag14)
3055 -- Protected_Present (Flag6)
3056 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3057 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3059 -- N_Access_Procedure_Definition
3060 -- Sloc points to ACCESS
3061 -- Null_Exclusion_Present (Flag11)
3062 -- Protected_Present (Flag6)
3063 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3065 -----------------------------
3066 -- 3.10 Access Definition --
3067 -----------------------------
3069 -- ACCESS_DEFINITION ::=
3070 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3071 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3073 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3075 -- N_Access_Definition
3076 -- Sloc points to ACCESS
3077 -- Null_Exclusion_Present (Flag11)
3078 -- All_Present (Flag15)
3079 -- Constant_Present (Flag17)
3080 -- Subtype_Mark (Node4)
3081 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3083 -----------------------------------------
3084 -- 3.10.1 Incomplete Type Declaration --
3085 -----------------------------------------
3087 -- INCOMPLETE_TYPE_DECLARATION ::=
3088 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3090 -- N_Incomplete_Type_Declaration
3091 -- Sloc points to TYPE
3092 -- Defining_Identifier (Node1)
3093 -- Discriminant_Specifications (List4) (set to No_List if no
3094 -- discriminant part, or if the discriminant part is an
3095 -- unknown discriminant part)
3096 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3097 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3098 -- Tagged_Present (Flag15)
3100 ----------------------------
3101 -- 3.11 Declarative Part --
3102 ----------------------------
3104 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3106 -- Note: although the parser enforces the syntactic requirement that
3107 -- a declarative part can contain only declarations, the semantic
3108 -- processing may add statements to the list of actions in a
3109 -- declarative part, so the code generator should be prepared
3110 -- to accept a statement in this position.
3112 ----------------------------
3113 -- 3.11 Declarative Item --
3114 ----------------------------
3116 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3118 ----------------------------------
3119 -- 3.11 Basic Declarative Item --
3120 ----------------------------------
3122 -- BASIC_DECLARATIVE_ITEM ::=
3123 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3125 ----------------
3126 -- 3.11 Body --
3127 ----------------
3129 -- BODY ::= PROPER_BODY | BODY_STUB
3131 -----------------------
3132 -- 3.11 Proper Body --
3133 -----------------------
3135 -- PROPER_BODY ::=
3136 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3138 ---------------
3139 -- 4.1 Name --
3140 ---------------
3142 -- NAME ::=
3143 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3144 -- | INDEXED_COMPONENT | SLICE
3145 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3146 -- | TYPE_CONVERSION | FUNCTION_CALL
3147 -- | CHARACTER_LITERAL
3149 ----------------------
3150 -- 4.1 Direct Name --
3151 ----------------------
3153 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3155 -----------------
3156 -- 4.1 Prefix --
3157 -----------------
3159 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3161 -------------------------------
3162 -- 4.1 Explicit Dereference --
3163 -------------------------------
3165 -- EXPLICIT_DEREFERENCE ::= NAME . all
3167 -- N_Explicit_Dereference
3168 -- Sloc points to ALL
3169 -- Prefix (Node3)
3170 -- Actual_Designated_Subtype (Node4-Sem)
3171 -- Atomic_Sync_Required (Flag14-Sem)
3172 -- Has_Dereference_Action (Flag13-Sem)
3173 -- plus fields for expression
3175 -------------------------------
3176 -- 4.1 Implicit Dereference --
3177 -------------------------------
3179 -- IMPLICIT_DEREFERENCE ::= NAME
3181 ------------------------------
3182 -- 4.1.1 Indexed Component --
3183 ------------------------------
3185 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3187 -- Note: the parser may generate this node in some situations where it
3188 -- should be a function call. The semantic pass must correct this
3189 -- misidentification (which is inevitable at the parser level).
3191 -- N_Indexed_Component
3192 -- Sloc contains a copy of the Sloc value of the Prefix
3193 -- Prefix (Node3)
3194 -- Expressions (List1)
3195 -- Atomic_Sync_Required (Flag14-Sem)
3196 -- plus fields for expression
3198 -- Note: if any of the subscripts requires a range check, then the
3199 -- Do_Range_Check flag is set on the corresponding expression, with
3200 -- the index type being determined from the type of the Prefix, which
3201 -- references the array being indexed.
3203 -- Note: in a fully analyzed and expanded indexed component node, and
3204 -- hence in any such node that gigi sees, if the prefix is an access
3205 -- type, then an explicit dereference operation has been inserted.
3207 ------------------
3208 -- 4.1.2 Slice --
3209 ------------------
3211 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3213 -- Note: an implicit subtype is created to describe the resulting
3214 -- type, so that the bounds of this type are the bounds of the slice.
3216 -- N_Slice
3217 -- Sloc points to first token of prefix
3218 -- Prefix (Node3)
3219 -- Discrete_Range (Node4)
3220 -- plus fields for expression
3222 -------------------------------
3223 -- 4.1.3 Selected Component --
3224 -------------------------------
3226 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3228 -- Note: selected components that are semantically expanded names get
3229 -- changed during semantic processing into the separate N_Expanded_Name
3230 -- node. See description of this node in the section on semantic nodes.
3232 -- N_Selected_Component
3233 -- Sloc points to period
3234 -- Prefix (Node3)
3235 -- Selector_Name (Node2)
3236 -- Associated_Node (Node4-Sem)
3237 -- Do_Discriminant_Check (Flag13-Sem)
3238 -- Is_In_Discriminant_Check (Flag11-Sem)
3239 -- Is_Prefixed_Call (Flag17-Sem)
3240 -- Atomic_Sync_Required (Flag14-Sem)
3241 -- plus fields for expression
3243 --------------------------
3244 -- 4.1.3 Selector Name --
3245 --------------------------
3247 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3249 --------------------------------
3250 -- 4.1.4 Attribute Reference --
3251 --------------------------------
3253 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3255 -- Note: the syntax is quite ambiguous at this point. Consider:
3257 -- A'Length (X) X is part of the attribute designator
3258 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3259 -- A'Class (X) X is the expression of a type conversion
3261 -- It would be possible for the parser to distinguish these cases
3262 -- by looking at the attribute identifier. However, that would mean
3263 -- more work in introducing new implementation defined attributes,
3264 -- and also it would mean that special processing for attributes
3265 -- would be scattered around, instead of being centralized in the
3266 -- semantic routine that handles an N_Attribute_Reference node.
3267 -- Consequently, the parser in all the above cases stores the
3268 -- expression (X in these examples) as a single element list in
3269 -- in the Expressions field of the N_Attribute_Reference node.
3271 -- Similarly, for attributes like Max which take two arguments,
3272 -- we store the two arguments as a two element list in the
3273 -- Expressions field. Of course it is clear at parse time that
3274 -- this case is really a function call with an attribute as the
3275 -- prefix, but it turns out to be convenient to handle the two
3276 -- argument case in a similar manner to the one argument case,
3277 -- and indeed in general the parser will accept any number of
3278 -- expressions in this position and store them as a list in the
3279 -- attribute reference node. This allows for future addition of
3280 -- attributes that take more than two arguments.
3282 -- Note: named associates are not permitted in function calls where
3283 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3284 -- to skip the normal subprogram argument processing.
3286 -- Note: for the attributes whose designators are technically keywords,
3287 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3288 -- the corresponding name, even though no identifier is involved.
3290 -- Note: the generated code may contain stream attributes applied to
3291 -- limited types for which no stream routines exist officially. In such
3292 -- case, the result is to use the stream attribute for the underlying
3293 -- full type, or in the case of a protected type, the components
3294 -- (including any discriminants) are merely streamed in order.
3296 -- See Exp_Attr for a complete description of which attributes are
3297 -- passed onto Gigi, and which are handled entirely by the front end.
3299 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3300 -- a non-standard enumeration type or a nonzero/zero semantics
3301 -- boolean type, so the value is simply the stored representation.
3303 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3304 -- references a subprogram that is a renaming, then the front end must
3305 -- rewrite the attribute to refer directly to the renamed entity.
3307 -- Note: In generated code, the Address and Unrestricted_Access
3308 -- attributes can be applied to any expression, and the meaning is
3309 -- to create an object containing the value (the object is in the
3310 -- current stack frame), and pass the address of this value. If the
3311 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3312 -- is taken must be on a byte (storage unit) boundary, and if it is
3313 -- not (or may not be), then the generated code must create a copy
3314 -- that is byte aligned, and pass the address of this copy.
3316 -- N_Attribute_Reference
3317 -- Sloc points to apostrophe
3318 -- Prefix (Node3)
3319 -- Attribute_Name (Name2) identifier name from attribute designator
3320 -- Expressions (List1) (set to No_List if no associated expressions)
3321 -- Entity (Node4-Sem) used if the attribute yields a type
3322 -- Associated_Node (Node4-Sem)
3323 -- Do_Overflow_Check (Flag17-Sem)
3324 -- Header_Size_Added (Flag11-Sem)
3325 -- Redundant_Use (Flag13-Sem)
3326 -- Must_Be_Byte_Aligned (Flag14)
3327 -- plus fields for expression
3329 ---------------------------------
3330 -- 4.1.4 Attribute Designator --
3331 ---------------------------------
3333 -- ATTRIBUTE_DESIGNATOR ::=
3334 -- IDENTIFIER [(static_EXPRESSION)]
3335 -- | access | delta | digits
3337 -- There is no explicit node in the tree for an attribute designator.
3338 -- Instead the Attribute_Name and Expressions fields of the parent
3339 -- node (N_Attribute_Reference node) hold the information.
3341 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3342 -- designator, then they are treated as identifiers internally
3343 -- rather than the keywords of the same name.
3345 --------------------------------------
3346 -- 4.1.4 Range Attribute Reference --
3347 --------------------------------------
3349 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3351 -- A range attribute reference is represented in the tree using the
3352 -- normal N_Attribute_Reference node.
3354 ---------------------------------------
3355 -- 4.1.4 Range Attribute Designator --
3356 ---------------------------------------
3358 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3360 -- A range attribute designator is represented in the tree using the
3361 -- normal N_Attribute_Reference node.
3363 --------------------
3364 -- 4.3 Aggregate --
3365 --------------------
3367 -- AGGREGATE ::=
3368 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3370 -----------------------------
3371 -- 4.3.1 Record Aggregate --
3372 -----------------------------
3374 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3376 -- N_Aggregate
3377 -- Sloc points to left parenthesis
3378 -- Expressions (List1) (set to No_List if none or null record case)
3379 -- Component_Associations (List2) (set to No_List if none)
3380 -- Null_Record_Present (Flag17)
3381 -- Aggregate_Bounds (Node3-Sem)
3382 -- Associated_Node (Node4-Sem)
3383 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3384 -- Expansion_Delayed (Flag11-Sem)
3385 -- Has_Self_Reference (Flag13-Sem)
3386 -- plus fields for expression
3388 -- Note: this structure is used for both record and array aggregates
3389 -- since the two cases are not separable by the parser. The parser
3390 -- makes no attempt to enforce consistency here, so it is up to the
3391 -- semantic phase to make sure that the aggregate is consistent (i.e.
3392 -- that it is not a "half-and-half" case that mixes record and array
3393 -- syntax. In particular, for a record aggregate, the expressions
3394 -- field will be set if there are positional associations.
3396 -- Note: N_Aggregate is not used for all aggregates; in particular,
3397 -- there is a separate node kind for extension aggregates.
3399 -- Note: gigi/gcc can handle array aggregates correctly providing that
3400 -- they are entirely positional, and the array subtype involved has a
3401 -- known at compile time length and is not bit packed, or a convention
3402 -- Fortran array with more than one dimension. If these conditions
3403 -- are not met, then the front end must translate the aggregate into
3404 -- an appropriate set of assignments into a temporary.
3406 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3407 -- record aggregates, including those for packed, and rep-claused
3408 -- records, and also variant records, providing that there are no
3409 -- variable length fields whose size is not known at compile time, and
3410 -- providing that the aggregate is presented in fully named form.
3412 ----------------------------------------------
3413 -- 4.3.1 Record Component Association List --
3414 ----------------------------------------------
3416 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3417 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3418 -- | null record
3420 -- There is no explicit node in the tree for a record component
3421 -- association list. Instead the Null_Record_Present flag is set in
3422 -- the parent node for the NULL RECORD case.
3424 ------------------------------------------------------
3425 -- 4.3.1 Record Component Association (also 4.3.3) --
3426 ------------------------------------------------------
3428 -- RECORD_COMPONENT_ASSOCIATION ::=
3429 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3431 -- N_Component_Association
3432 -- Sloc points to first selector name
3433 -- Choices (List1)
3434 -- Loop_Actions (List2-Sem)
3435 -- Expression (Node3)
3436 -- Box_Present (Flag15)
3437 -- Inherited_Discriminant (Flag13)
3439 -- Note: this structure is used for both record component associations
3440 -- and array component associations, since the two cases aren't always
3441 -- separable by the parser. The choices list may represent either a
3442 -- list of selector names in the record aggregate case, or a list of
3443 -- discrete choices in the array aggregate case or an N_Others_Choice
3444 -- node (which appears as a singleton list). Box_Present gives support
3445 -- to Ada 2005 (AI-287).
3447 ----------------------------------
3448 -- 4.3.1 Component Choice List --
3449 ----------------------------------
3451 -- COMPONENT_CHOICE_LIST ::=
3452 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3453 -- | others
3455 -- The entries of a component choice list appear in the Choices list of
3456 -- the associated N_Component_Association, as either selector names, or
3457 -- as an N_Others_Choice node.
3459 --------------------------------
3460 -- 4.3.2 Extension Aggregate --
3461 --------------------------------
3463 -- EXTENSION_AGGREGATE ::=
3464 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3466 -- Note: extension aggregates are not permitted in Ada 83 mode
3468 -- N_Extension_Aggregate
3469 -- Sloc points to left parenthesis
3470 -- Ancestor_Part (Node3)
3471 -- Associated_Node (Node4-Sem)
3472 -- Expressions (List1) (set to No_List if none or null record case)
3473 -- Component_Associations (List2) (set to No_List if none)
3474 -- Null_Record_Present (Flag17)
3475 -- Expansion_Delayed (Flag11-Sem)
3476 -- Has_Self_Reference (Flag13-Sem)
3477 -- plus fields for expression
3479 --------------------------
3480 -- 4.3.2 Ancestor Part --
3481 --------------------------
3483 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3485 ----------------------------
3486 -- 4.3.3 Array Aggregate --
3487 ----------------------------
3489 -- ARRAY_AGGREGATE ::=
3490 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3492 ---------------------------------------
3493 -- 4.3.3 Positional Array Aggregate --
3494 ---------------------------------------
3496 -- POSITIONAL_ARRAY_AGGREGATE ::=
3497 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3498 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3500 -- See Record_Aggregate (4.3.1) for node structure
3502 ----------------------------------
3503 -- 4.3.3 Named Array Aggregate --
3504 ----------------------------------
3506 -- NAMED_ARRAY_AGGREGATE ::=
3507 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3509 -- See Record_Aggregate (4.3.1) for node structure
3511 ----------------------------------------
3512 -- 4.3.3 Array Component Association --
3513 ----------------------------------------
3515 -- ARRAY_COMPONENT_ASSOCIATION ::=
3516 -- DISCRETE_CHOICE_LIST => EXPRESSION
3518 -- See Record_Component_Association (4.3.1) for node structure
3520 --------------------------------------------------
3521 -- 4.4 Expression/Relation/Term/Factor/Primary --
3522 --------------------------------------------------
3524 -- EXPRESSION ::=
3525 -- RELATION {LOGICAL_OPERATOR RELATION}
3527 -- CHOICE_EXPRESSION ::=
3528 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3530 -- CHOICE_RELATION ::=
3531 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3533 -- RELATION ::=
3534 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3536 -- MEMBERSHIP_CHOICE_LIST ::=
3537 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3539 -- MEMBERSHIP_CHOICE ::=
3540 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3542 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3544 -- SIMPLE_EXPRESSION ::=
3545 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3547 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3549 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3551 -- No nodes are generated for any of these constructs. Instead, the
3552 -- node for the operator appears directly. When we refer to an
3553 -- expression in this description, we mean any of the possible
3554 -- constituent components of an expression (e.g. identifier is
3555 -- an example of an expression).
3557 -- Note: the above syntax is that Ada 2012 syntax which restricts
3558 -- choice relations to simple expressions to avoid ambiguities in
3559 -- some contexts with set membership notation. It has been decided
3560 -- that in retrospect, the Ada 95 change allowing general expressions
3561 -- in this context was a mistake, so we have reverted to the above
3562 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3563 -- expressions was there in Ada 83 from the start).
3565 ------------------
3566 -- 4.4 Primary --
3567 ------------------
3569 -- PRIMARY ::=
3570 -- NUMERIC_LITERAL | null
3571 -- | STRING_LITERAL | AGGREGATE
3572 -- | NAME | QUALIFIED_EXPRESSION
3573 -- | ALLOCATOR | (EXPRESSION)
3575 -- Usually there is no explicit node in the tree for primary. Instead
3576 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3577 -- exceptions. First, there is an explicit node for a null primary.
3579 -- N_Null
3580 -- Sloc points to NULL
3581 -- plus fields for expression
3583 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3584 -- that the parser keep track of which subexpressions are enclosed
3585 -- in parentheses, and how many levels of parentheses are used. This
3586 -- information is required for optimization purposes, and also for
3587 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3588 -- conform with ((((1)))) in the body).
3590 -- The parentheses are recorded by keeping a Paren_Count field in every
3591 -- subexpression node (it is actually present in all nodes, but only
3592 -- used in subexpression nodes). This count records the number of
3593 -- levels of parentheses. If the number of levels in the source exceeds
3594 -- the maximum accommodated by this count, then the count is simply left
3595 -- at the maximum value. This means that there are some pathological
3596 -- cases of failure to detect conformance failures (e.g. an expression
3597 -- with 500 levels of parens will conform with one with 501 levels),
3598 -- but we do not need to lose sleep over this.
3600 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3601 -- type N_Parenthesized_Expression used to accurately record unlimited
3602 -- numbers of levels of parentheses. However, it turned out to be a
3603 -- real nuisance to have to take into account the possible presence of
3604 -- this node during semantic analysis, since basically parentheses have
3605 -- zero relevance to semantic analysis.
3607 -- Note: the level of parentheses always present in things like
3608 -- aggregates does not count, only the parentheses in the primary
3609 -- (EXPRESSION) affect the setting of the Paren_Count field.
3611 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3612 -- treated as though it were Empty) if No_Initialization is set True.
3614 --------------------------------------
3615 -- 4.5 Short Circuit Control Forms --
3616 --------------------------------------
3618 -- EXPRESSION ::=
3619 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3621 -- Gigi restriction: For both these control forms, the operand and
3622 -- result types are always Standard.Boolean. The expander inserts the
3623 -- required conversion operations where needed to ensure this is the
3624 -- case.
3626 -- N_And_Then
3627 -- Sloc points to AND of AND THEN
3628 -- Left_Opnd (Node2)
3629 -- Right_Opnd (Node3)
3630 -- Actions (List1-Sem)
3631 -- plus fields for expression
3633 -- N_Or_Else
3634 -- Sloc points to OR of OR ELSE
3635 -- Left_Opnd (Node2)
3636 -- Right_Opnd (Node3)
3637 -- Actions (List1-Sem)
3638 -- plus fields for expression
3640 -- Note: The Actions field is used to hold actions associated with
3641 -- the right hand operand. These have to be treated specially since
3642 -- they are not unconditionally executed. See Insert_Actions for a
3643 -- more detailed description of how these actions are handled.
3645 ---------------------------
3646 -- 4.5 Membership Tests --
3647 ---------------------------
3649 -- RELATION ::=
3650 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3652 -- MEMBERSHIP_CHOICE_LIST ::=
3653 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3655 -- MEMBERSHIP_CHOICE ::=
3656 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3658 -- Note: although the grammar above allows only a range or a subtype
3659 -- mark, the parser in fact will accept any simple expression in place
3660 -- of a subtype mark. This means that the semantic analyzer must be able
3661 -- to deal with, and diagnose a simple expression other than a name for
3662 -- the right operand. This simplifies error recovery in the parser.
3664 -- The Alternatives field below is present only if there is more
3665 -- than one Membership_Choice present (which is legitimate only in
3666 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3667 -- contains the list of choices. In the tree passed to the back end,
3668 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3669 -- expansion circuitry expands out the complex set membership case
3670 -- using simple membership operations).
3672 -- Should we rename Alternatives here to Membership_Choices ???
3674 -- N_In
3675 -- Sloc points to IN
3676 -- Left_Opnd (Node2)
3677 -- Right_Opnd (Node3)
3678 -- Alternatives (List4) (set to No_List if only one set alternative)
3679 -- plus fields for expression
3681 -- N_Not_In
3682 -- Sloc points to NOT of NOT IN
3683 -- Left_Opnd (Node2)
3684 -- Right_Opnd (Node3)
3685 -- Alternatives (List4) (set to No_List if only one set alternative)
3686 -- plus fields for expression
3688 --------------------
3689 -- 4.5 Operators --
3690 --------------------
3692 -- LOGICAL_OPERATOR ::= and | or | xor
3694 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3696 -- BINARY_ADDING_OPERATOR ::= + | - | &
3698 -- UNARY_ADDING_OPERATOR ::= + | -
3700 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3702 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3704 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3706 -- x #* y
3707 -- x #/ y
3708 -- x #mod y
3709 -- x #rem y
3711 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3712 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3713 -- All handling of smalls for multiplication and division is handled
3714 -- by the front end (mod and rem result only from expansion). Gigi
3715 -- thus never needs to worry about small values (for other operators
3716 -- operating on fixed-point, e.g. addition, the small value does not
3717 -- have any semantic effect anyway, these are always integer operations.
3719 -- Gigi restriction: For all operators taking Boolean operands, the
3720 -- type is always Standard.Boolean. The expander inserts the required
3721 -- conversion operations where needed to ensure this is the case.
3723 -- N_Op_And
3724 -- Sloc points to AND
3725 -- Do_Length_Check (Flag4-Sem)
3726 -- plus fields for binary operator
3727 -- plus fields for expression
3729 -- N_Op_Or
3730 -- Sloc points to OR
3731 -- Do_Length_Check (Flag4-Sem)
3732 -- plus fields for binary operator
3733 -- plus fields for expression
3735 -- N_Op_Xor
3736 -- Sloc points to XOR
3737 -- Do_Length_Check (Flag4-Sem)
3738 -- plus fields for binary operator
3739 -- plus fields for expression
3741 -- N_Op_Eq
3742 -- Sloc points to =
3743 -- plus fields for binary operator
3744 -- plus fields for expression
3746 -- N_Op_Ne
3747 -- Sloc points to /=
3748 -- plus fields for binary operator
3749 -- plus fields for expression
3751 -- N_Op_Lt
3752 -- Sloc points to <
3753 -- plus fields for binary operator
3754 -- plus fields for expression
3756 -- N_Op_Le
3757 -- Sloc points to <=
3758 -- plus fields for binary operator
3759 -- plus fields for expression
3761 -- N_Op_Gt
3762 -- Sloc points to >
3763 -- plus fields for binary operator
3764 -- plus fields for expression
3766 -- N_Op_Ge
3767 -- Sloc points to >=
3768 -- plus fields for binary operator
3769 -- plus fields for expression
3771 -- N_Op_Add
3772 -- Sloc points to + (binary)
3773 -- plus fields for binary operator
3774 -- plus fields for expression
3776 -- N_Op_Subtract
3777 -- Sloc points to - (binary)
3778 -- plus fields for binary operator
3779 -- plus fields for expression
3781 -- N_Op_Concat
3782 -- Sloc points to &
3783 -- Is_Component_Left_Opnd (Flag13-Sem)
3784 -- Is_Component_Right_Opnd (Flag14-Sem)
3785 -- plus fields for binary operator
3786 -- plus fields for expression
3788 -- N_Op_Multiply
3789 -- Sloc points to *
3790 -- Treat_Fixed_As_Integer (Flag14-Sem)
3791 -- Rounded_Result (Flag18-Sem)
3792 -- plus fields for binary operator
3793 -- plus fields for expression
3795 -- N_Op_Divide
3796 -- Sloc points to /
3797 -- Treat_Fixed_As_Integer (Flag14-Sem)
3798 -- Do_Division_Check (Flag13-Sem)
3799 -- Rounded_Result (Flag18-Sem)
3800 -- plus fields for binary operator
3801 -- plus fields for expression
3803 -- N_Op_Mod
3804 -- Sloc points to MOD
3805 -- Treat_Fixed_As_Integer (Flag14-Sem)
3806 -- Do_Division_Check (Flag13-Sem)
3807 -- plus fields for binary operator
3808 -- plus fields for expression
3810 -- N_Op_Rem
3811 -- Sloc points to REM
3812 -- Treat_Fixed_As_Integer (Flag14-Sem)
3813 -- Do_Division_Check (Flag13-Sem)
3814 -- plus fields for binary operator
3815 -- plus fields for expression
3817 -- N_Op_Expon
3818 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3819 -- Sloc points to **
3820 -- plus fields for binary operator
3821 -- plus fields for expression
3823 -- N_Op_Plus
3824 -- Sloc points to + (unary)
3825 -- plus fields for unary operator
3826 -- plus fields for expression
3828 -- N_Op_Minus
3829 -- Sloc points to - (unary)
3830 -- plus fields for unary operator
3831 -- plus fields for expression
3833 -- N_Op_Abs
3834 -- Sloc points to ABS
3835 -- plus fields for unary operator
3836 -- plus fields for expression
3838 -- N_Op_Not
3839 -- Sloc points to NOT
3840 -- plus fields for unary operator
3841 -- plus fields for expression
3843 -- See also shift operators in section B.2
3845 -- Note on fixed-point operations passed to Gigi: For adding operators,
3846 -- the semantics is to treat these simply as integer operations, with
3847 -- the small values being ignored (the bounds are already stored in
3848 -- units of small, so that constraint checking works as usual). For the
3849 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3850 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3851 -- thus treat these nodes in identical manner, ignoring small values.
3853 ---------------------------------
3854 -- 4.5.9 Quantified Expression --
3855 ---------------------------------
3857 -- QUANTIFIED_EXPRESSION ::=
3858 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
3859 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
3861 -- QUANTIFIER ::= all | some
3863 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
3864 -- is present at a time, in which case the other one is empty.
3866 -- N_Quantified_Expression
3867 -- Sloc points to FOR
3868 -- Iterator_Specification (Node2)
3869 -- Loop_Parameter_Specification (Node4)
3870 -- Condition (Node1)
3871 -- All_Present (Flag15)
3873 --------------------------
3874 -- 4.6 Type Conversion --
3875 --------------------------
3877 -- TYPE_CONVERSION ::=
3878 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3880 -- In the (NAME) case, the name is stored as the expression
3882 -- Note: the parser never generates a type conversion node, since it
3883 -- looks like an indexed component which is generated by preference.
3884 -- The semantic pass must correct this misidentification.
3886 -- Gigi handles conversions that involve no change in the root type,
3887 -- and also all conversions from integer to floating-point types.
3888 -- Conversions from floating-point to integer are only handled in
3889 -- the case where Float_Truncate flag set. Other conversions from
3890 -- floating-point to integer (involving rounding) and all conversions
3891 -- involving fixed-point types are handled by the expander.
3893 -- Sprint syntax if Float_Truncate set: X^(Y)
3894 -- Sprint syntax if Conversion_OK set X?(Y)
3895 -- Sprint syntax if both flags set X?^(Y)
3897 -- Note: If either the operand or result type is fixed-point, Gigi will
3898 -- only see a type conversion node with Conversion_OK set. The front end
3899 -- takes care of all handling of small's for fixed-point conversions.
3901 -- N_Type_Conversion
3902 -- Sloc points to first token of subtype mark
3903 -- Subtype_Mark (Node4)
3904 -- Expression (Node3)
3905 -- Do_Tag_Check (Flag13-Sem)
3906 -- Do_Length_Check (Flag4-Sem)
3907 -- Do_Overflow_Check (Flag17-Sem)
3908 -- Float_Truncate (Flag11-Sem)
3909 -- Rounded_Result (Flag18-Sem)
3910 -- Conversion_OK (Flag14-Sem)
3911 -- plus fields for expression
3913 -- Note: if a range check is required, then the Do_Range_Check flag
3914 -- is set in the Expression with the check being done against the
3915 -- target type range (after the base type conversion, if any).
3917 -------------------------------
3918 -- 4.7 Qualified Expression --
3919 -------------------------------
3921 -- QUALIFIED_EXPRESSION ::=
3922 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3924 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3925 -- the expression, so the Expression field of this node always points
3926 -- to a parenthesized expression in this case (i.e. Paren_Count will
3927 -- always be non-zero for the referenced expression if it is not an
3928 -- aggregate).
3930 -- N_Qualified_Expression
3931 -- Sloc points to apostrophe
3932 -- Subtype_Mark (Node4)
3933 -- Expression (Node3) expression or aggregate
3934 -- plus fields for expression
3936 --------------------
3937 -- 4.8 Allocator --
3938 --------------------
3940 -- ALLOCATOR ::=
3941 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
3942 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
3944 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
3946 -- Sprint syntax (when storage pool present)
3947 -- new xxx (storage_pool = pool)
3948 -- or
3949 -- new (subpool) xxx (storage_pool = pool)
3951 -- N_Allocator
3952 -- Sloc points to NEW
3953 -- Expression (Node3) subtype indication or qualified expression
3954 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
3955 -- Storage_Pool (Node1-Sem)
3956 -- Procedure_To_Call (Node2-Sem)
3957 -- Null_Exclusion_Present (Flag11)
3958 -- No_Initialization (Flag13-Sem)
3959 -- Is_Static_Coextension (Flag14-Sem)
3960 -- Do_Storage_Check (Flag17-Sem)
3961 -- Is_Dynamic_Coextension (Flag18-Sem)
3962 -- plus fields for expression
3964 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3965 -- This flag has a special function in conjunction with the restriction
3966 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3967 -- is not set. This means that if a source allocator is replaced with
3968 -- a constructed allocator, the Comes_From_Source flag should be copied
3969 -- to the newly created allocator.
3971 ---------------------------------
3972 -- 5.1 Sequence Of Statements --
3973 ---------------------------------
3975 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3977 -- Note: Although the parser will not accept a declaration as a
3978 -- statement, the semantic analyzer may insert declarations (e.g.
3979 -- declarations of implicit types needed for execution of other
3980 -- statements) into a sequence of statements, so the code generator
3981 -- should be prepared to accept a declaration where a statement is
3982 -- expected. Note also that pragmas can appear as statements.
3984 --------------------
3985 -- 5.1 Statement --
3986 --------------------
3988 -- STATEMENT ::=
3989 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3991 -- There is no explicit node in the tree for a statement. Instead, the
3992 -- individual statement appears directly. Labels are treated as a
3993 -- kind of statement, i.e. they are linked into a statement list at
3994 -- the point they appear, so the labeled statement appears following
3995 -- the label or labels in the statement list.
3997 ---------------------------
3998 -- 5.1 Simple Statement --
3999 ---------------------------
4001 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4002 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4003 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4004 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4005 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4006 -- | ABORT_STATEMENT | RAISE_STATEMENT
4007 -- | CODE_STATEMENT
4009 -----------------------------
4010 -- 5.1 Compound Statement --
4011 -----------------------------
4013 -- COMPOUND_STATEMENT ::=
4014 -- IF_STATEMENT | CASE_STATEMENT
4015 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4016 -- | EXTENDED_RETURN_STATEMENT
4017 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4019 -------------------------
4020 -- 5.1 Null Statement --
4021 -------------------------
4023 -- NULL_STATEMENT ::= null;
4025 -- N_Null_Statement
4026 -- Sloc points to NULL
4028 ----------------
4029 -- 5.1 Label --
4030 ----------------
4032 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4034 -- Note that the occurrence of a label is not a defining identifier,
4035 -- but rather a referencing occurrence. The defining occurrence is
4036 -- in the implicit label declaration which occurs in the innermost
4037 -- enclosing block.
4039 -- N_Label
4040 -- Sloc points to <<
4041 -- Identifier (Node1) direct name of statement identifier
4042 -- Exception_Junk (Flag8-Sem)
4044 -- Note: Before Ada 2012, a label is always followed by a statement,
4045 -- and this is true in the tree even in Ada 2012 mode (the parser
4046 -- inserts a null statement marked with Comes_From_Source False).
4048 -------------------------------
4049 -- 5.1 Statement Identifier --
4050 -------------------------------
4052 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4054 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4055 -- (not an OPERATOR_SYMBOL)
4057 -------------------------------
4058 -- 5.2 Assignment Statement --
4059 -------------------------------
4061 -- ASSIGNMENT_STATEMENT ::=
4062 -- variable_NAME := EXPRESSION;
4064 -- N_Assignment_Statement
4065 -- Sloc points to :=
4066 -- Name (Node2)
4067 -- Expression (Node3)
4068 -- Do_Tag_Check (Flag13-Sem)
4069 -- Do_Length_Check (Flag4-Sem)
4070 -- Forwards_OK (Flag5-Sem)
4071 -- Backwards_OK (Flag6-Sem)
4072 -- No_Ctrl_Actions (Flag7-Sem)
4073 -- Componentwise_Assignment (Flag14-Sem)
4074 -- Suppress_Assignment_Checks (Flag18-Sem)
4076 -- Note: if a range check is required, then the Do_Range_Check flag
4077 -- is set in the Expression (right hand side), with the check being
4078 -- done against the type of the Name (left hand side).
4080 -- Note: the back end places some restrictions on the form of the
4081 -- Expression field. If the object being assigned to is Atomic, then
4082 -- the Expression may not have the form of an aggregate (since this
4083 -- might cause the back end to generate separate assignments). In this
4084 -- case the front end must generate an extra temporary and initialize
4085 -- this temporary as required (the temporary itself is not atomic).
4087 -----------------------
4088 -- 5.3 If Statement --
4089 -----------------------
4091 -- IF_STATEMENT ::=
4092 -- if CONDITION then
4093 -- SEQUENCE_OF_STATEMENTS
4094 -- {elsif CONDITION then
4095 -- SEQUENCE_OF_STATEMENTS}
4096 -- [else
4097 -- SEQUENCE_OF_STATEMENTS]
4098 -- end if;
4100 -- Gigi restriction: This expander ensures that the type of the
4101 -- Condition fields is always Standard.Boolean, even if the type
4102 -- in the source is some non-standard boolean type.
4104 -- N_If_Statement
4105 -- Sloc points to IF
4106 -- Condition (Node1)
4107 -- Then_Statements (List2)
4108 -- Elsif_Parts (List3) (set to No_List if none present)
4109 -- Else_Statements (List4) (set to No_List if no else part present)
4110 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4112 -- N_Elsif_Part
4113 -- Sloc points to ELSIF
4114 -- Condition (Node1)
4115 -- Then_Statements (List2)
4116 -- Condition_Actions (List3-Sem)
4118 --------------------
4119 -- 5.3 Condition --
4120 --------------------
4122 -- CONDITION ::= boolean_EXPRESSION
4124 -------------------------
4125 -- 5.4 Case Statement --
4126 -------------------------
4128 -- CASE_STATEMENT ::=
4129 -- case EXPRESSION is
4130 -- CASE_STATEMENT_ALTERNATIVE
4131 -- {CASE_STATEMENT_ALTERNATIVE}
4132 -- end case;
4134 -- Note: the Alternatives can contain pragmas. These only occur at
4135 -- the start of the list, since any pragmas occurring after the first
4136 -- alternative are absorbed into the corresponding statement sequence.
4138 -- N_Case_Statement
4139 -- Sloc points to CASE
4140 -- Expression (Node3)
4141 -- Alternatives (List4)
4142 -- End_Span (Uint5) (set to Uint_0 if expander generated)
4144 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4145 -- followed by a statement, and this is true in the tree even in Ada
4146 -- 2012 mode (the parser inserts a null statement marked with the flag
4147 -- Comes_From_Source False).
4149 -------------------------------------
4150 -- 5.4 Case Statement Alternative --
4151 -------------------------------------
4153 -- CASE_STATEMENT_ALTERNATIVE ::=
4154 -- when DISCRETE_CHOICE_LIST =>
4155 -- SEQUENCE_OF_STATEMENTS
4157 -- N_Case_Statement_Alternative
4158 -- Sloc points to WHEN
4159 -- Discrete_Choices (List4)
4160 -- Statements (List3)
4162 -------------------------
4163 -- 5.5 Loop Statement --
4164 -------------------------
4166 -- LOOP_STATEMENT ::=
4167 -- [loop_STATEMENT_IDENTIFIER :]
4168 -- [ITERATION_SCHEME] loop
4169 -- SEQUENCE_OF_STATEMENTS
4170 -- end loop [loop_IDENTIFIER];
4172 -- Note: The occurrence of a loop label is not a defining identifier
4173 -- but rather a referencing occurrence. The defining occurrence is in
4174 -- the implicit label declaration which occurs in the innermost
4175 -- enclosing block.
4177 -- Note: there is always a loop statement identifier present in
4178 -- the tree, even if none was given in the source. In the case where
4179 -- no loop identifier is given in the source, the parser creates
4180 -- a name of the form _Loop_n, where n is a decimal integer (the
4181 -- two underlines ensure that the loop names created in this manner
4182 -- do not conflict with any user defined identifiers), and the flag
4183 -- Has_Created_Identifier is set to True. The only exception to the
4184 -- rule that all loop statement nodes have identifiers occurs for
4185 -- loops constructed by the expander, and the semantic analyzer will
4186 -- create and supply dummy loop identifiers in these cases.
4188 -- N_Loop_Statement
4189 -- Sloc points to LOOP
4190 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4191 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4192 -- Statements (List3)
4193 -- End_Label (Node4)
4194 -- Has_Created_Identifier (Flag15)
4195 -- Is_Null_Loop (Flag16)
4196 -- Suppress_Loop_Warnings (Flag17)
4198 -- Note: the parser fills in the Identifier field if there is an
4199 -- explicit loop identifier. Otherwise the parser leaves this field
4200 -- set to Empty, and then the semantic processing for a loop statement
4201 -- creates an identifier, setting the Has_Created_Identifier flag to
4202 -- True. So after semantic analysis, the Identifier is always set,
4203 -- referencing an identifier whose entity has an Ekind of E_Loop.
4205 ---------------------------
4206 -- 5.5 Iteration Scheme --
4207 ---------------------------
4209 -- ITERATION_SCHEME ::=
4210 -- while CONDITION
4211 -- | for LOOP_PARAMETER_SPECIFICATION
4212 -- | for ITERATOR_SPECIFICATION
4214 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4215 -- is present at a time, in which case the other one is empty. Both are
4216 -- empty in the case of a WHILE loop.
4218 -- Gigi restriction: This expander ensures that the type of the
4219 -- Condition field is always Standard.Boolean, even if the type
4220 -- in the source is some non-standard boolean type.
4222 -- N_Iteration_Scheme
4223 -- Sloc points to WHILE or FOR
4224 -- Condition (Node1) (set to Empty if FOR case)
4225 -- Condition_Actions (List3-Sem)
4226 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4227 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4229 ---------------------------------------
4230 -- 5.5 Loop Parameter Specification --
4231 ---------------------------------------
4233 -- LOOP_PARAMETER_SPECIFICATION ::=
4234 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4236 -- N_Loop_Parameter_Specification
4237 -- Sloc points to first identifier
4238 -- Defining_Identifier (Node1)
4239 -- Reverse_Present (Flag15)
4240 -- Discrete_Subtype_Definition (Node4)
4242 -----------------------------------
4243 -- 5.5.1 Iterator Specification --
4244 -----------------------------------
4246 -- ITERATOR_SPECIFICATION ::=
4247 -- DEFINING_IDENTIFIER in [reverse] NAME
4248 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4250 -- N_Iterator_Specification
4251 -- Sloc points to defining identifier
4252 -- Defining_Identifier (Node1)
4253 -- Name (Node2)
4254 -- Reverse_Present (Flag15)
4255 -- Of_Present (Flag16)
4256 -- Subtype_Indication (Node5)
4258 -- Note: The Of_Present flag distinguishes the two forms
4260 --------------------------
4261 -- 5.6 Block Statement --
4262 --------------------------
4264 -- BLOCK_STATEMENT ::=
4265 -- [block_STATEMENT_IDENTIFIER:]
4266 -- [declare
4267 -- DECLARATIVE_PART]
4268 -- begin
4269 -- HANDLED_SEQUENCE_OF_STATEMENTS
4270 -- end [block_IDENTIFIER];
4272 -- Note that the occurrence of a block identifier is not a defining
4273 -- identifier, but rather a referencing occurrence. The defining
4274 -- occurrence is an E_Block entity declared by the implicit label
4275 -- declaration which occurs in the innermost enclosing block statement
4276 -- or body; the block identifier denotes that E_Block.
4278 -- For block statements that come from source code, there is always a
4279 -- block statement identifier present in the tree, denoting an
4280 -- E_Block. In the case where no block identifier is given in the
4281 -- source, the parser creates a name of the form B_n, where n is a
4282 -- decimal integer, and the flag Has_Created_Identifier is set to
4283 -- True. Blocks constructed by the expander usually have no identifier,
4284 -- and no corresponding entity.
4286 -- Note: the block statement created for an extended return statement
4287 -- has an entity, and this entity is an E_Return_Statement, rather than
4288 -- the usual E_Block.
4290 -- Note: Exception_Junk is set for the wrapping blocks created during
4291 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4293 -- N_Block_Statement
4294 -- Sloc points to DECLARE or BEGIN
4295 -- Identifier (Node1) block direct name (set to Empty if not present)
4296 -- Declarations (List2) (set to No_List if no DECLARE part)
4297 -- Handled_Statement_Sequence (Node4)
4298 -- Is_Task_Master (Flag5-Sem)
4299 -- Activation_Chain_Entity (Node3-Sem)
4300 -- Has_Created_Identifier (Flag15)
4301 -- Is_Task_Allocation_Block (Flag6)
4302 -- Is_Asynchronous_Call_Block (Flag7)
4303 -- Exception_Junk (Flag8-Sem)
4304 -- Is_Finalization_Wrapper (Flag9-Sem)
4306 -------------------------
4307 -- 5.7 Exit Statement --
4308 -------------------------
4310 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4312 -- Gigi restriction: This expander ensures that the type of the
4313 -- Condition field is always Standard.Boolean, even if the type
4314 -- in the source is some non-standard boolean type.
4316 -- N_Exit_Statement
4317 -- Sloc points to EXIT
4318 -- Name (Node2) (set to Empty if no loop name present)
4319 -- Condition (Node1) (set to Empty if no WHEN part present)
4320 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4322 -------------------------
4323 -- 5.9 Goto Statement --
4324 -------------------------
4326 -- GOTO_STATEMENT ::= goto label_NAME;
4328 -- N_Goto_Statement
4329 -- Sloc points to GOTO
4330 -- Name (Node2)
4331 -- Exception_Junk (Flag8-Sem)
4333 ---------------------------------
4334 -- 6.1 Subprogram Declaration --
4335 ---------------------------------
4337 -- SUBPROGRAM_DECLARATION ::=
4338 -- SUBPROGRAM_SPECIFICATION
4339 -- [ASPECT_SPECIFICATIONS];
4341 -- N_Subprogram_Declaration
4342 -- Sloc points to FUNCTION or PROCEDURE
4343 -- Specification (Node1)
4344 -- Body_To_Inline (Node3-Sem)
4345 -- Corresponding_Body (Node5-Sem)
4346 -- Parent_Spec (Node4-Sem)
4348 ------------------------------------------
4349 -- 6.1 Abstract Subprogram Declaration --
4350 ------------------------------------------
4352 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4353 -- SUBPROGRAM_SPECIFICATION is abstract
4354 -- [ASPECT_SPECIFICATIONS];
4356 -- N_Abstract_Subprogram_Declaration
4357 -- Sloc points to ABSTRACT
4358 -- Specification (Node1)
4360 -----------------------------------
4361 -- 6.1 Subprogram Specification --
4362 -----------------------------------
4364 -- SUBPROGRAM_SPECIFICATION ::=
4365 -- [[not] overriding]
4366 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4367 -- | [[not] overriding]
4368 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4370 -- Note: there are no separate nodes for the profiles, instead the
4371 -- information appears directly in the following nodes.
4373 -- N_Function_Specification
4374 -- Sloc points to FUNCTION
4375 -- Defining_Unit_Name (Node1) (the designator)
4376 -- Elaboration_Boolean (Node2-Sem)
4377 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4378 -- Null_Exclusion_Present (Flag11)
4379 -- Result_Definition (Node4) for result subtype
4380 -- Generic_Parent (Node5-Sem)
4381 -- Must_Override (Flag14) set if overriding indicator present
4382 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4384 -- N_Procedure_Specification
4385 -- Sloc points to PROCEDURE
4386 -- Defining_Unit_Name (Node1)
4387 -- Elaboration_Boolean (Node2-Sem)
4388 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4389 -- Generic_Parent (Node5-Sem)
4390 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4391 -- Must_Override (Flag14) set if overriding indicator present
4392 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4394 -- Note: overriding indicator is an Ada 2005 feature
4396 ---------------------
4397 -- 6.1 Designator --
4398 ---------------------
4400 -- DESIGNATOR ::=
4401 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4403 -- Designators that are simply identifiers or operator symbols appear
4404 -- directly in the tree in this form. The following node is used only
4405 -- in the case where the designator has a parent unit name component.
4407 -- N_Designator
4408 -- Sloc points to period
4409 -- Name (Node2) holds the parent unit name. Note that this is always
4410 -- non-Empty, since this node is only used for the case where a
4411 -- parent library unit package name is present.
4412 -- Identifier (Node1)
4414 -- Note that the identifier can also be an operator symbol here
4416 ------------------------------
4417 -- 6.1 Defining Designator --
4418 ------------------------------
4420 -- DEFINING_DESIGNATOR ::=
4421 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4423 -------------------------------------
4424 -- 6.1 Defining Program Unit Name --
4425 -------------------------------------
4427 -- DEFINING_PROGRAM_UNIT_NAME ::=
4428 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4430 -- The parent unit name is present only in the case of a child unit
4431 -- name (permissible only for Ada 95 for a library level unit, i.e.
4432 -- a unit at scope level one). If no such name is present, the defining
4433 -- program unit name is represented simply as the defining identifier.
4434 -- In the child unit case, the following node is used to represent the
4435 -- child unit name.
4437 -- N_Defining_Program_Unit_Name
4438 -- Sloc points to period
4439 -- Name (Node2) holds the parent unit name. Note that this is always
4440 -- non-Empty, since this node is only used for the case where a
4441 -- parent unit name is present.
4442 -- Defining_Identifier (Node1)
4444 --------------------------
4445 -- 6.1 Operator Symbol --
4446 --------------------------
4448 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4450 -- Note: the fields of the N_Operator_Symbol node are laid out to
4451 -- match the corresponding fields of an N_Character_Literal node. This
4452 -- allows easy conversion of the operator symbol node into a character
4453 -- literal node in the case where a string constant of the form of an
4454 -- operator symbol is scanned out as such, but turns out semantically
4455 -- to be a string literal that is not an operator. For details see
4456 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4458 -- N_Operator_Symbol
4459 -- Sloc points to literal
4460 -- Chars (Name1) contains the Name_Id for the operator symbol
4461 -- Strval (Str3) Id of string value. This is used if the operator
4462 -- symbol turns out to be a normal string after all.
4463 -- Entity (Node4-Sem)
4464 -- Associated_Node (Node4-Sem)
4465 -- Has_Private_View (Flag11-Sem) set in generic units.
4466 -- Etype (Node5-Sem)
4468 -- Note: the Strval field may be set to No_String for generated
4469 -- operator symbols that are known not to be string literals
4470 -- semantically.
4472 -----------------------------------
4473 -- 6.1 Defining Operator Symbol --
4474 -----------------------------------
4476 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4478 -- A defining operator symbol is an entity, which has additional
4479 -- fields depending on the setting of the Ekind field. These
4480 -- additional fields are defined (and access subprograms declared)
4481 -- in package Einfo.
4483 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4484 -- are deliberately layed out to match the layout of fields in an
4485 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4486 -- an operator symbol node into a defining operator symbol node.
4487 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4488 -- for further details.
4490 -- N_Defining_Operator_Symbol
4491 -- Sloc points to literal
4492 -- Chars (Name1) contains the Name_Id for the operator symbol
4493 -- Next_Entity (Node2-Sem)
4494 -- Scope (Node3-Sem)
4495 -- Etype (Node5-Sem)
4497 ----------------------------
4498 -- 6.1 Parameter Profile --
4499 ----------------------------
4501 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4503 ---------------------------------------
4504 -- 6.1 Parameter and Result Profile --
4505 ---------------------------------------
4507 -- PARAMETER_AND_RESULT_PROFILE ::=
4508 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4509 -- | [FORMAL_PART] return ACCESS_DEFINITION
4511 -- There is no explicit node in the tree for a parameter and result
4512 -- profile. Instead the information appears directly in the parent.
4514 ----------------------
4515 -- 6.1 Formal Part --
4516 ----------------------
4518 -- FORMAL_PART ::=
4519 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4521 ----------------------------------
4522 -- 6.1 Parameter Specification --
4523 ----------------------------------
4525 -- PARAMETER_SPECIFICATION ::=
4526 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
4527 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
4528 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4529 -- [:= DEFAULT_EXPRESSION]
4531 -- Although the syntax allows multiple identifiers in the list, the
4532 -- semantics is as though successive specifications were given with
4533 -- identical type definition and expression components. To simplify
4534 -- semantic processing, the parser represents a multiple declaration
4535 -- case as a sequence of single Specifications, using the More_Ids and
4536 -- Prev_Ids flags to preserve the original source form as described
4537 -- in the section on "Handling of Defining Identifier Lists".
4539 -- ALIASED can only be present in Ada 2012 mode
4541 -- N_Parameter_Specification
4542 -- Sloc points to first identifier
4543 -- Defining_Identifier (Node1)
4544 -- Aliased_Present (Flag4)
4545 -- In_Present (Flag15)
4546 -- Out_Present (Flag17)
4547 -- Null_Exclusion_Present (Flag11)
4548 -- Parameter_Type (Node2) subtype mark or access definition
4549 -- Expression (Node3) (set to Empty if no default expression present)
4550 -- Do_Accessibility_Check (Flag13-Sem)
4551 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4552 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4553 -- Default_Expression (Node5-Sem)
4555 ---------------
4556 -- 6.1 Mode --
4557 ---------------
4559 -- MODE ::= [in] | in out | out
4561 -- There is no explicit node in the tree for the Mode. Instead the
4562 -- In_Present and Out_Present flags are set in the parent node to
4563 -- record the presence of keywords specifying the mode.
4565 --------------------------
4566 -- 6.3 Subprogram Body --
4567 --------------------------
4569 -- SUBPROGRAM_BODY ::=
4570 -- SUBPROGRAM_SPECIFICATION is
4571 -- DECLARATIVE_PART
4572 -- begin
4573 -- HANDLED_SEQUENCE_OF_STATEMENTS
4574 -- end [DESIGNATOR];
4576 -- N_Subprogram_Body
4577 -- Sloc points to FUNCTION or PROCEDURE
4578 -- Specification (Node1)
4579 -- Declarations (List2)
4580 -- Handled_Statement_Sequence (Node4)
4581 -- Activation_Chain_Entity (Node3-Sem)
4582 -- Corresponding_Spec (Node5-Sem)
4583 -- Acts_As_Spec (Flag4-Sem)
4584 -- Bad_Is_Detected (Flag15) used only by parser
4585 -- Do_Storage_Check (Flag17-Sem)
4586 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4587 -- Is_Entry_Barrier_Function (Flag8-Sem)
4588 -- Is_Task_Master (Flag5-Sem)
4589 -- Was_Originally_Stub (Flag13-Sem)
4590 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4592 -------------------------
4593 -- Expression Function --
4594 -------------------------
4596 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4597 -- and put in its proper section when we know exactly where that is!
4599 -- EXPRESSION_FUNCTION ::=
4600 -- FUNCTION SPECIFICATION IS (EXPRESSION);
4602 -- N_Expression_Function
4603 -- Sloc points to FUNCTION
4604 -- Specification (Node1)
4605 -- Expression (Node3)
4606 -- Corresponding_Spec (Node5-Sem)
4608 -----------------------------------
4609 -- 6.4 Procedure Call Statement --
4610 -----------------------------------
4612 -- PROCEDURE_CALL_STATEMENT ::=
4613 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4615 -- Note: the reason that a procedure call has expression fields is
4616 -- that it semantically resembles an expression, e.g. overloading is
4617 -- allowed and a type is concocted for semantic processing purposes.
4618 -- Certain of these fields, such as Parens are not relevant, but it
4619 -- is easier to just supply all of them together!
4621 -- N_Procedure_Call_Statement
4622 -- Sloc points to first token of name or prefix
4623 -- Name (Node2) stores name or prefix
4624 -- Parameter_Associations (List3) (set to No_List if no
4625 -- actual parameter part)
4626 -- First_Named_Actual (Node4-Sem)
4627 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4628 -- Do_Tag_Check (Flag13-Sem)
4629 -- No_Elaboration_Check (Flag14-Sem)
4630 -- Parameter_List_Truncated (Flag17-Sem)
4631 -- ABE_Is_Certain (Flag18-Sem)
4632 -- plus fields for expression
4634 -- If any IN parameter requires a range check, then the corresponding
4635 -- argument expression has the Do_Range_Check flag set, and the range
4636 -- check is done against the formal type. Note that this argument
4637 -- expression may appear directly in the Parameter_Associations list,
4638 -- or may be a descendent of an N_Parameter_Association node that
4639 -- appears in this list.
4641 ------------------------
4642 -- 6.4 Function Call --
4643 ------------------------
4645 -- FUNCTION_CALL ::=
4646 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4648 -- Note: the parser may generate an indexed component node or simply
4649 -- a name node instead of a function call node. The semantic pass must
4650 -- correct this misidentification.
4652 -- N_Function_Call
4653 -- Sloc points to first token of name or prefix
4654 -- Name (Node2) stores name or prefix
4655 -- Parameter_Associations (List3) (set to No_List if no
4656 -- actual parameter part)
4657 -- First_Named_Actual (Node4-Sem)
4658 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4659 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4660 -- Do_Tag_Check (Flag13-Sem)
4661 -- No_Elaboration_Check (Flag14-Sem)
4662 -- Parameter_List_Truncated (Flag17-Sem)
4663 -- ABE_Is_Certain (Flag18-Sem)
4664 -- plus fields for expression
4666 --------------------------------
4667 -- 6.4 Actual Parameter Part --
4668 --------------------------------
4670 -- ACTUAL_PARAMETER_PART ::=
4671 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4673 --------------------------------
4674 -- 6.4 Parameter Association --
4675 --------------------------------
4677 -- PARAMETER_ASSOCIATION ::=
4678 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4680 -- Note: the N_Parameter_Association node is built only if a formal
4681 -- parameter selector name is present, otherwise the parameter
4682 -- association appears in the tree simply as the node for the
4683 -- explicit actual parameter.
4685 -- N_Parameter_Association
4686 -- Sloc points to formal parameter
4687 -- Selector_Name (Node2) (always non-Empty)
4688 -- Explicit_Actual_Parameter (Node3)
4689 -- Next_Named_Actual (Node4-Sem)
4690 -- Is_Accessibility_Actual (Flag13-Sem)
4692 ---------------------------
4693 -- 6.4 Actual Parameter --
4694 ---------------------------
4696 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4698 ---------------------------
4699 -- 6.5 Return Statement --
4700 ---------------------------
4702 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4704 -- In Ada 2005, we have:
4706 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4708 -- EXTENDED_RETURN_STATEMENT ::=
4709 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4710 -- [:= EXPRESSION] [do
4711 -- HANDLED_SEQUENCE_OF_STATEMENTS
4712 -- end return];
4714 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4716 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4717 -- "return statement" is defined in 6.5 to mean a
4718 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4720 -- N_Return_Statement
4721 -- Sloc points to RETURN
4722 -- Return_Statement_Entity (Node5-Sem)
4723 -- Expression (Node3) (set to Empty if no expression present)
4724 -- Storage_Pool (Node1-Sem)
4725 -- Procedure_To_Call (Node2-Sem)
4726 -- Do_Tag_Check (Flag13-Sem)
4727 -- By_Ref (Flag5-Sem)
4728 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4730 -- N_Return_Statement represents a simple_return_statement, and is
4731 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4732 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4733 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4734 -- as Make_Simple_Return_Statement in Sem_Util.
4736 -- Note: Return_Statement_Entity points to an E_Return_Statement
4738 -- If a range check is required, then Do_Range_Check is set on the
4739 -- Expression. The check is against the return subtype of the function.
4741 -- N_Extended_Return_Statement
4742 -- Sloc points to RETURN
4743 -- Return_Statement_Entity (Node5-Sem)
4744 -- Return_Object_Declarations (List3)
4745 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4746 -- Storage_Pool (Node1-Sem)
4747 -- Procedure_To_Call (Node2-Sem)
4748 -- Do_Tag_Check (Flag13-Sem)
4749 -- By_Ref (Flag5-Sem)
4751 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4753 -- Note that Return_Object_Declarations is a list containing the
4754 -- N_Object_Declaration -- see comment on this field above.
4756 -- The declared object will have Is_Return_Object = True.
4758 -- There is no such syntactic category as return_object_declaration
4759 -- in the RM. Return_Object_Declarations represents this portion of
4760 -- the syntax for EXTENDED_RETURN_STATEMENT:
4761 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4762 -- [:= EXPRESSION]
4764 -- There are two entities associated with an extended_return_statement:
4765 -- the Return_Statement_Entity represents the statement itself, and the
4766 -- Defining_Identifier of the Object_Declaration in
4767 -- Return_Object_Declarations represents the object being
4768 -- returned. N_Simple_Return_Statement has only the former.
4770 ------------------------------
4771 -- 7.1 Package Declaration --
4772 ------------------------------
4774 -- PACKAGE_DECLARATION ::=
4775 -- PACKAGE_SPECIFICATION;
4777 -- Note: the activation chain entity for a package spec is used for
4778 -- all tasks declared in the package spec, or in the package body.
4780 -- N_Package_Declaration
4781 -- Sloc points to PACKAGE
4782 -- Specification (Node1)
4783 -- Corresponding_Body (Node5-Sem)
4784 -- Parent_Spec (Node4-Sem)
4785 -- Activation_Chain_Entity (Node3-Sem)
4787 --------------------------------
4788 -- 7.1 Package Specification --
4789 --------------------------------
4791 -- PACKAGE_SPECIFICATION ::=
4792 -- package DEFINING_PROGRAM_UNIT_NAME
4793 -- [ASPECT_SPECIFICATIONS]
4794 -- is
4795 -- {BASIC_DECLARATIVE_ITEM}
4796 -- [private
4797 -- {BASIC_DECLARATIVE_ITEM}]
4798 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4800 -- N_Package_Specification
4801 -- Sloc points to PACKAGE
4802 -- Defining_Unit_Name (Node1)
4803 -- Visible_Declarations (List2)
4804 -- Private_Declarations (List3) (set to No_List if no private
4805 -- part present)
4806 -- End_Label (Node4)
4807 -- Generic_Parent (Node5-Sem)
4808 -- Limited_View_Installed (Flag18-Sem)
4810 -----------------------
4811 -- 7.1 Package Body --
4812 -----------------------
4814 -- PACKAGE_BODY ::=
4815 -- package body DEFINING_PROGRAM_UNIT_NAME
4816 -- [ASPECT_SPECIFICATIONS]
4817 -- is
4818 -- DECLARATIVE_PART
4819 -- [begin
4820 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4821 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4823 -- N_Package_Body
4824 -- Sloc points to PACKAGE
4825 -- Defining_Unit_Name (Node1)
4826 -- Declarations (List2)
4827 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4828 -- Corresponding_Spec (Node5-Sem)
4829 -- Was_Originally_Stub (Flag13-Sem)
4831 -- Note: if a source level package does not contain a handled sequence
4832 -- of statements, then the parser supplies a dummy one with a null
4833 -- sequence of statements. Comes_From_Source will be False in this
4834 -- constructed sequence. The reason we need this is for the End_Label
4835 -- field in the HSS.
4837 -----------------------------------
4838 -- 7.4 Private Type Declaration --
4839 -----------------------------------
4841 -- PRIVATE_TYPE_DECLARATION ::=
4842 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4843 -- is [[abstract] tagged] [limited] private;
4845 -- Note: TAGGED is not permitted in Ada 83 mode
4847 -- N_Private_Type_Declaration
4848 -- Sloc points to TYPE
4849 -- Defining_Identifier (Node1)
4850 -- Discriminant_Specifications (List4) (set to No_List if no
4851 -- discriminant part)
4852 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4853 -- Abstract_Present (Flag4)
4854 -- Tagged_Present (Flag15)
4855 -- Limited_Present (Flag17)
4857 ----------------------------------------
4858 -- 7.4 Private Extension Declaration --
4859 ----------------------------------------
4861 -- PRIVATE_EXTENSION_DECLARATION ::=
4862 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4863 -- [abstract] [limited | synchronized]
4864 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4865 -- with private;
4867 -- Note: LIMITED, and private extension declarations are not allowed
4868 -- in Ada 83 mode.
4870 -- N_Private_Extension_Declaration
4871 -- Sloc points to TYPE
4872 -- Defining_Identifier (Node1)
4873 -- Discriminant_Specifications (List4) (set to No_List if no
4874 -- discriminant part)
4875 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4876 -- Abstract_Present (Flag4)
4877 -- Limited_Present (Flag17)
4878 -- Synchronized_Present (Flag7)
4879 -- Subtype_Indication (Node5)
4880 -- Interface_List (List2) (set to No_List if none)
4882 ---------------------
4883 -- 8.4 Use Clause --
4884 ---------------------
4886 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4888 -----------------------------
4889 -- 8.4 Use Package Clause --
4890 -----------------------------
4892 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4894 -- N_Use_Package_Clause
4895 -- Sloc points to USE
4896 -- Names (List2)
4897 -- Next_Use_Clause (Node3-Sem)
4898 -- Hidden_By_Use_Clause (Elist4-Sem)
4900 --------------------------
4901 -- 8.4 Use Type Clause --
4902 --------------------------
4904 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4906 -- Note: use type clause is not permitted in Ada 83 mode
4908 -- Note: the ALL keyword can appear only in Ada 2012 mode
4910 -- N_Use_Type_Clause
4911 -- Sloc points to USE
4912 -- Subtype_Marks (List2)
4913 -- Next_Use_Clause (Node3-Sem)
4914 -- Hidden_By_Use_Clause (Elist4-Sem)
4915 -- Used_Operations (Elist5-Sem)
4916 -- All_Present (Flag15)
4918 -------------------------------
4919 -- 8.5 Renaming Declaration --
4920 -------------------------------
4922 -- RENAMING_DECLARATION ::=
4923 -- OBJECT_RENAMING_DECLARATION
4924 -- | EXCEPTION_RENAMING_DECLARATION
4925 -- | PACKAGE_RENAMING_DECLARATION
4926 -- | SUBPROGRAM_RENAMING_DECLARATION
4927 -- | GENERIC_RENAMING_DECLARATION
4929 --------------------------------------
4930 -- 8.5 Object Renaming Declaration --
4931 --------------------------------------
4933 -- OBJECT_RENAMING_DECLARATION ::=
4934 -- DEFINING_IDENTIFIER :
4935 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4936 -- | DEFINING_IDENTIFIER :
4937 -- ACCESS_DEFINITION renames object_NAME;
4939 -- Note: Access_Definition is an optional field that gives support to
4940 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4941 -- Subtype_Indication field or else the Access_Definition field.
4943 -- N_Object_Renaming_Declaration
4944 -- Sloc points to first identifier
4945 -- Defining_Identifier (Node1)
4946 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4947 -- Subtype_Mark (Node4) (set to Empty if not present)
4948 -- Access_Definition (Node3) (set to Empty if not present)
4949 -- Name (Node2)
4950 -- Corresponding_Generic_Association (Node5-Sem)
4952 -----------------------------------------
4953 -- 8.5 Exception Renaming Declaration --
4954 -----------------------------------------
4956 -- EXCEPTION_RENAMING_DECLARATION ::=
4957 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4959 -- N_Exception_Renaming_Declaration
4960 -- Sloc points to first identifier
4961 -- Defining_Identifier (Node1)
4962 -- Name (Node2)
4964 ---------------------------------------
4965 -- 8.5 Package Renaming Declaration --
4966 ---------------------------------------
4968 -- PACKAGE_RENAMING_DECLARATION ::=
4969 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4971 -- N_Package_Renaming_Declaration
4972 -- Sloc points to PACKAGE
4973 -- Defining_Unit_Name (Node1)
4974 -- Name (Node2)
4975 -- Parent_Spec (Node4-Sem)
4977 ------------------------------------------
4978 -- 8.5 Subprogram Renaming Declaration --
4979 ------------------------------------------
4981 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4982 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4984 -- N_Subprogram_Renaming_Declaration
4985 -- Sloc points to RENAMES
4986 -- Specification (Node1)
4987 -- Name (Node2)
4988 -- Parent_Spec (Node4-Sem)
4989 -- Corresponding_Spec (Node5-Sem)
4990 -- Corresponding_Formal_Spec (Node3-Sem)
4991 -- From_Default (Flag6-Sem)
4993 -----------------------------------------
4994 -- 8.5.5 Generic Renaming Declaration --
4995 -----------------------------------------
4997 -- GENERIC_RENAMING_DECLARATION ::=
4998 -- generic package DEFINING_PROGRAM_UNIT_NAME
4999 -- renames generic_package_NAME
5000 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5001 -- renames generic_procedure_NAME
5002 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5003 -- renames generic_function_NAME
5005 -- N_Generic_Package_Renaming_Declaration
5006 -- Sloc points to GENERIC
5007 -- Defining_Unit_Name (Node1)
5008 -- Name (Node2)
5009 -- Parent_Spec (Node4-Sem)
5011 -- N_Generic_Procedure_Renaming_Declaration
5012 -- Sloc points to GENERIC
5013 -- Defining_Unit_Name (Node1)
5014 -- Name (Node2)
5015 -- Parent_Spec (Node4-Sem)
5017 -- N_Generic_Function_Renaming_Declaration
5018 -- Sloc points to GENERIC
5019 -- Defining_Unit_Name (Node1)
5020 -- Name (Node2)
5021 -- Parent_Spec (Node4-Sem)
5023 --------------------------------
5024 -- 9.1 Task Type Declaration --
5025 --------------------------------
5027 -- TASK_TYPE_DECLARATION ::=
5028 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5029 -- [ASPECT_SPECIFICATIONS]
5030 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5032 -- N_Task_Type_Declaration
5033 -- Sloc points to TASK
5034 -- Defining_Identifier (Node1)
5035 -- Discriminant_Specifications (List4) (set to No_List if no
5036 -- discriminant part)
5037 -- Interface_List (List2) (set to No_List if none)
5038 -- Task_Definition (Node3) (set to Empty if not present)
5039 -- Corresponding_Body (Node5-Sem)
5041 ----------------------------------
5042 -- 9.1 Single Task Declaration --
5043 ----------------------------------
5045 -- SINGLE_TASK_DECLARATION ::=
5046 -- task DEFINING_IDENTIFIER
5047 -- [ASPECT_SPECIFICATIONS]
5048 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5050 -- N_Single_Task_Declaration
5051 -- Sloc points to TASK
5052 -- Defining_Identifier (Node1)
5053 -- Interface_List (List2) (set to No_List if none)
5054 -- Task_Definition (Node3) (set to Empty if not present)
5056 --------------------------
5057 -- 9.1 Task Definition --
5058 --------------------------
5060 -- TASK_DEFINITION ::=
5061 -- {TASK_ITEM}
5062 -- [private
5063 -- {TASK_ITEM}]
5064 -- end [task_IDENTIFIER]
5066 -- Note: as a result of semantic analysis, the list of task items can
5067 -- include implicit type declarations resulting from entry families.
5069 -- N_Task_Definition
5070 -- Sloc points to first token of task definition
5071 -- Visible_Declarations (List2)
5072 -- Private_Declarations (List3) (set to No_List if no private part)
5073 -- End_Label (Node4)
5074 -- Has_Storage_Size_Pragma (Flag5-Sem)
5075 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5077 --------------------
5078 -- 9.1 Task Item --
5079 --------------------
5081 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5083 --------------------
5084 -- 9.1 Task Body --
5085 --------------------
5087 -- TASK_BODY ::=
5088 -- task body task_DEFINING_IDENTIFIER
5089 -- [ASPECT_SPECIFICATIONS]
5090 -- is
5091 -- DECLARATIVE_PART
5092 -- begin
5093 -- HANDLED_SEQUENCE_OF_STATEMENTS
5094 -- end [task_IDENTIFIER];
5096 -- Gigi restriction: This node never appears
5098 -- N_Task_Body
5099 -- Sloc points to TASK
5100 -- Defining_Identifier (Node1)
5101 -- Declarations (List2)
5102 -- Handled_Statement_Sequence (Node4)
5103 -- Is_Task_Master (Flag5-Sem)
5104 -- Activation_Chain_Entity (Node3-Sem)
5105 -- Corresponding_Spec (Node5-Sem)
5106 -- Was_Originally_Stub (Flag13-Sem)
5108 -------------------------------------
5109 -- 9.4 Protected Type Declaration --
5110 -------------------------------------
5112 -- PROTECTED_TYPE_DECLARATION ::=
5113 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5114 -- [ASPECT_SPECIFICATIONS]
5115 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5117 -- Note: protected type declarations are not permitted in Ada 83 mode
5119 -- N_Protected_Type_Declaration
5120 -- Sloc points to PROTECTED
5121 -- Defining_Identifier (Node1)
5122 -- Discriminant_Specifications (List4) (set to No_List if no
5123 -- discriminant part)
5124 -- Interface_List (List2) (set to No_List if none)
5125 -- Protected_Definition (Node3)
5126 -- Corresponding_Body (Node5-Sem)
5128 ---------------------------------------
5129 -- 9.4 Single Protected Declaration --
5130 ---------------------------------------
5132 -- SINGLE_PROTECTED_DECLARATION ::=
5133 -- protected DEFINING_IDENTIFIER
5134 -- [ASPECT_SPECIFICATIONS]
5135 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5137 -- Note: single protected declarations are not allowed in Ada 83 mode
5139 -- N_Single_Protected_Declaration
5140 -- Sloc points to PROTECTED
5141 -- Defining_Identifier (Node1)
5142 -- Interface_List (List2) (set to No_List if none)
5143 -- Protected_Definition (Node3)
5145 -------------------------------
5146 -- 9.4 Protected Definition --
5147 -------------------------------
5149 -- PROTECTED_DEFINITION ::=
5150 -- {PROTECTED_OPERATION_DECLARATION}
5151 -- [private
5152 -- {PROTECTED_ELEMENT_DECLARATION}]
5153 -- end [protected_IDENTIFIER]
5155 -- N_Protected_Definition
5156 -- Sloc points to first token of protected definition
5157 -- Visible_Declarations (List2)
5158 -- Private_Declarations (List3) (set to No_List if no private part)
5159 -- End_Label (Node4)
5161 ------------------------------------------
5162 -- 9.4 Protected Operation Declaration --
5163 ------------------------------------------
5165 -- PROTECTED_OPERATION_DECLARATION ::=
5166 -- SUBPROGRAM_DECLARATION
5167 -- | ENTRY_DECLARATION
5168 -- | REPRESENTATION_CLAUSE
5170 ----------------------------------------
5171 -- 9.4 Protected Element Declaration --
5172 ----------------------------------------
5174 -- PROTECTED_ELEMENT_DECLARATION ::=
5175 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5177 -------------------------
5178 -- 9.4 Protected Body --
5179 -------------------------
5181 -- PROTECTED_BODY ::=
5182 -- protected body DEFINING_IDENTIFIER
5183 -- [ASPECT_SPECIFICATIONS];
5184 -- is
5185 -- {PROTECTED_OPERATION_ITEM}
5186 -- end [protected_IDENTIFIER];
5188 -- Note: protected bodies are not allowed in Ada 83 mode
5190 -- Gigi restriction: This node never appears
5192 -- N_Protected_Body
5193 -- Sloc points to PROTECTED
5194 -- Defining_Identifier (Node1)
5195 -- Declarations (List2) protected operation items (and pragmas)
5196 -- End_Label (Node4)
5197 -- Corresponding_Spec (Node5-Sem)
5198 -- Was_Originally_Stub (Flag13-Sem)
5200 -----------------------------------
5201 -- 9.4 Protected Operation Item --
5202 -----------------------------------
5204 -- PROTECTED_OPERATION_ITEM ::=
5205 -- SUBPROGRAM_DECLARATION
5206 -- | SUBPROGRAM_BODY
5207 -- | ENTRY_BODY
5208 -- | REPRESENTATION_CLAUSE
5210 ------------------------------
5211 -- 9.5.2 Entry Declaration --
5212 ------------------------------
5214 -- ENTRY_DECLARATION ::=
5215 -- [[not] overriding]
5216 -- entry DEFINING_IDENTIFIER
5217 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5219 -- N_Entry_Declaration
5220 -- Sloc points to ENTRY
5221 -- Defining_Identifier (Node1)
5222 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5223 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5224 -- Corresponding_Body (Node5-Sem)
5225 -- Must_Override (Flag14) set if overriding indicator present
5226 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5228 -- Note: overriding indicator is an Ada 2005 feature
5230 -----------------------------
5231 -- 9.5.2 Accept statement --
5232 -----------------------------
5234 -- ACCEPT_STATEMENT ::=
5235 -- accept entry_DIRECT_NAME
5236 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5237 -- HANDLED_SEQUENCE_OF_STATEMENTS
5238 -- end [entry_IDENTIFIER]];
5240 -- Gigi restriction: This node never appears
5242 -- Note: there are no explicit declarations allowed in an accept
5243 -- statement. However, the implicit declarations for any statement
5244 -- identifiers (labels and block/loop identifiers) are declarations
5245 -- that belong logically to the accept statement, and that is why
5246 -- there is a Declarations field in this node.
5248 -- N_Accept_Statement
5249 -- Sloc points to ACCEPT
5250 -- Entry_Direct_Name (Node1)
5251 -- Entry_Index (Node5) (set to Empty if not present)
5252 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5253 -- Handled_Statement_Sequence (Node4)
5254 -- Declarations (List2) (set to No_List if no declarations)
5256 ------------------------
5257 -- 9.5.2 Entry Index --
5258 ------------------------
5260 -- ENTRY_INDEX ::= EXPRESSION
5262 -----------------------
5263 -- 9.5.2 Entry Body --
5264 -----------------------
5266 -- ENTRY_BODY ::=
5267 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5268 -- DECLARATIVE_PART
5269 -- begin
5270 -- HANDLED_SEQUENCE_OF_STATEMENTS
5271 -- end [entry_IDENTIFIER];
5273 -- ENTRY_BARRIER ::= when CONDITION
5275 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5276 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5277 -- too full (it would otherwise have too many fields)
5279 -- Gigi restriction: This node never appears
5281 -- N_Entry_Body
5282 -- Sloc points to ENTRY
5283 -- Defining_Identifier (Node1)
5284 -- Entry_Body_Formal_Part (Node5)
5285 -- Declarations (List2)
5286 -- Handled_Statement_Sequence (Node4)
5287 -- Activation_Chain_Entity (Node3-Sem)
5289 -----------------------------------
5290 -- 9.5.2 Entry Body Formal Part --
5291 -----------------------------------
5293 -- ENTRY_BODY_FORMAL_PART ::=
5294 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5296 -- Note that an entry body formal part node is present even if it is
5297 -- empty. This reflects the grammar, in which it is the components of
5298 -- the entry body formal part that are optional, not the entry body
5299 -- formal part itself. Also this means that the barrier condition
5300 -- always has somewhere to be stored.
5302 -- Gigi restriction: This node never appears
5304 -- N_Entry_Body_Formal_Part
5305 -- Sloc points to first token
5306 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5307 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5308 -- Condition (Node1) from entry barrier of entry body
5310 --------------------------
5311 -- 9.5.2 Entry Barrier --
5312 --------------------------
5314 -- ENTRY_BARRIER ::= when CONDITION
5316 --------------------------------------
5317 -- 9.5.2 Entry Index Specification --
5318 --------------------------------------
5320 -- ENTRY_INDEX_SPECIFICATION ::=
5321 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5323 -- Gigi restriction: This node never appears
5325 -- N_Entry_Index_Specification
5326 -- Sloc points to FOR
5327 -- Defining_Identifier (Node1)
5328 -- Discrete_Subtype_Definition (Node4)
5330 ---------------------------------
5331 -- 9.5.3 Entry Call Statement --
5332 ---------------------------------
5334 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5336 -- The parser may generate a procedure call for this construct. The
5337 -- semantic pass must correct this misidentification where needed.
5339 -- Gigi restriction: This node never appears
5341 -- N_Entry_Call_Statement
5342 -- Sloc points to first token of name
5343 -- Name (Node2)
5344 -- Parameter_Associations (List3) (set to No_List if no
5345 -- actual parameter part)
5346 -- First_Named_Actual (Node4-Sem)
5348 ------------------------------
5349 -- 9.5.4 Requeue Statement --
5350 ------------------------------
5352 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5354 -- Note: requeue statements are not permitted in Ada 83 mode
5356 -- Gigi restriction: This node never appears
5358 -- N_Requeue_Statement
5359 -- Sloc points to REQUEUE
5360 -- Name (Node2)
5361 -- Abort_Present (Flag15)
5363 --------------------------
5364 -- 9.6 Delay Statement --
5365 --------------------------
5367 -- DELAY_STATEMENT ::=
5368 -- DELAY_UNTIL_STATEMENT
5369 -- | DELAY_RELATIVE_STATEMENT
5371 --------------------------------
5372 -- 9.6 Delay Until Statement --
5373 --------------------------------
5375 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5377 -- Note: delay until statements are not permitted in Ada 83 mode
5379 -- Gigi restriction: This node never appears
5381 -- N_Delay_Until_Statement
5382 -- Sloc points to DELAY
5383 -- Expression (Node3)
5385 -----------------------------------
5386 -- 9.6 Delay Relative Statement --
5387 -----------------------------------
5389 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5391 -- Gigi restriction: This node never appears
5393 -- N_Delay_Relative_Statement
5394 -- Sloc points to DELAY
5395 -- Expression (Node3)
5397 ---------------------------
5398 -- 9.7 Select Statement --
5399 ---------------------------
5401 -- SELECT_STATEMENT ::=
5402 -- SELECTIVE_ACCEPT
5403 -- | TIMED_ENTRY_CALL
5404 -- | CONDITIONAL_ENTRY_CALL
5405 -- | ASYNCHRONOUS_SELECT
5407 -----------------------------
5408 -- 9.7.1 Selective Accept --
5409 -----------------------------
5411 -- SELECTIVE_ACCEPT ::=
5412 -- select
5413 -- [GUARD]
5414 -- SELECT_ALTERNATIVE
5415 -- {or
5416 -- [GUARD]
5417 -- SELECT_ALTERNATIVE}
5418 -- [else
5419 -- SEQUENCE_OF_STATEMENTS]
5420 -- end select;
5422 -- Gigi restriction: This node never appears
5424 -- Note: the guard expression, if present, appears in the node for
5425 -- the select alternative.
5427 -- N_Selective_Accept
5428 -- Sloc points to SELECT
5429 -- Select_Alternatives (List1)
5430 -- Else_Statements (List4) (set to No_List if no else part)
5432 ------------------
5433 -- 9.7.1 Guard --
5434 ------------------
5436 -- GUARD ::= when CONDITION =>
5438 -- As noted above, the CONDITION that is part of a GUARD is included
5439 -- in the node for the select alternative for convenience.
5441 -------------------------------
5442 -- 9.7.1 Select Alternative --
5443 -------------------------------
5445 -- SELECT_ALTERNATIVE ::=
5446 -- ACCEPT_ALTERNATIVE
5447 -- | DELAY_ALTERNATIVE
5448 -- | TERMINATE_ALTERNATIVE
5450 -------------------------------
5451 -- 9.7.1 Accept Alternative --
5452 -------------------------------
5454 -- ACCEPT_ALTERNATIVE ::=
5455 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5457 -- Gigi restriction: This node never appears
5459 -- N_Accept_Alternative
5460 -- Sloc points to ACCEPT
5461 -- Accept_Statement (Node2)
5462 -- Condition (Node1) from the guard (set to Empty if no guard present)
5463 -- Statements (List3) (set to Empty_List if no statements)
5464 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5465 -- Accept_Handler_Records (List5-Sem)
5467 ------------------------------
5468 -- 9.7.1 Delay Alternative --
5469 ------------------------------
5471 -- DELAY_ALTERNATIVE ::=
5472 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5474 -- Gigi restriction: This node never appears
5476 -- N_Delay_Alternative
5477 -- Sloc points to DELAY
5478 -- Delay_Statement (Node2)
5479 -- Condition (Node1) from the guard (set to Empty if no guard present)
5480 -- Statements (List3) (set to Empty_List if no statements)
5481 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5483 ----------------------------------
5484 -- 9.7.1 Terminate Alternative --
5485 ----------------------------------
5487 -- TERMINATE_ALTERNATIVE ::= terminate;
5489 -- Gigi restriction: This node never appears
5491 -- N_Terminate_Alternative
5492 -- Sloc points to TERMINATE
5493 -- Condition (Node1) from the guard (set to Empty if no guard present)
5494 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5495 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5497 -----------------------------
5498 -- 9.7.2 Timed Entry Call --
5499 -----------------------------
5501 -- TIMED_ENTRY_CALL ::=
5502 -- select
5503 -- ENTRY_CALL_ALTERNATIVE
5504 -- or
5505 -- DELAY_ALTERNATIVE
5506 -- end select;
5508 -- Gigi restriction: This node never appears
5510 -- N_Timed_Entry_Call
5511 -- Sloc points to SELECT
5512 -- Entry_Call_Alternative (Node1)
5513 -- Delay_Alternative (Node4)
5515 -----------------------------------
5516 -- 9.7.2 Entry Call Alternative --
5517 -----------------------------------
5519 -- ENTRY_CALL_ALTERNATIVE ::=
5520 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5522 -- PROCEDURE_OR_ENTRY_CALL ::=
5523 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5525 -- Gigi restriction: This node never appears
5527 -- N_Entry_Call_Alternative
5528 -- Sloc points to first token of entry call statement
5529 -- Entry_Call_Statement (Node1)
5530 -- Statements (List3) (set to Empty_List if no statements)
5531 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5533 -----------------------------------
5534 -- 9.7.3 Conditional Entry Call --
5535 -----------------------------------
5537 -- CONDITIONAL_ENTRY_CALL ::=
5538 -- select
5539 -- ENTRY_CALL_ALTERNATIVE
5540 -- else
5541 -- SEQUENCE_OF_STATEMENTS
5542 -- end select;
5544 -- Gigi restriction: This node never appears
5546 -- N_Conditional_Entry_Call
5547 -- Sloc points to SELECT
5548 -- Entry_Call_Alternative (Node1)
5549 -- Else_Statements (List4)
5551 --------------------------------
5552 -- 9.7.4 Asynchronous Select --
5553 --------------------------------
5555 -- ASYNCHRONOUS_SELECT ::=
5556 -- select
5557 -- TRIGGERING_ALTERNATIVE
5558 -- then abort
5559 -- ABORTABLE_PART
5560 -- end select;
5562 -- Note: asynchronous select is not permitted in Ada 83 mode
5564 -- Gigi restriction: This node never appears
5566 -- N_Asynchronous_Select
5567 -- Sloc points to SELECT
5568 -- Triggering_Alternative (Node1)
5569 -- Abortable_Part (Node2)
5571 -----------------------------------
5572 -- 9.7.4 Triggering Alternative --
5573 -----------------------------------
5575 -- TRIGGERING_ALTERNATIVE ::=
5576 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5578 -- Gigi restriction: This node never appears
5580 -- N_Triggering_Alternative
5581 -- Sloc points to first token of triggering statement
5582 -- Triggering_Statement (Node1)
5583 -- Statements (List3) (set to Empty_List if no statements)
5584 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5586 ---------------------------------
5587 -- 9.7.4 Triggering Statement --
5588 ---------------------------------
5590 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5592 ---------------------------
5593 -- 9.7.4 Abortable Part --
5594 ---------------------------
5596 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5598 -- Gigi restriction: This node never appears
5600 -- N_Abortable_Part
5601 -- Sloc points to ABORT
5602 -- Statements (List3)
5604 --------------------------
5605 -- 9.8 Abort Statement --
5606 --------------------------
5608 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5610 -- Gigi restriction: This node never appears
5612 -- N_Abort_Statement
5613 -- Sloc points to ABORT
5614 -- Names (List2)
5616 -------------------------
5617 -- 10.1.1 Compilation --
5618 -------------------------
5620 -- COMPILATION ::= {COMPILATION_UNIT}
5622 -- There is no explicit node in the tree for a compilation, since in
5623 -- general the compiler is processing only a single compilation unit
5624 -- at a time. It is possible to parse multiple units in syntax check
5625 -- only mode, but the trees are discarded in that case.
5627 ------------------------------
5628 -- 10.1.1 Compilation Unit --
5629 ------------------------------
5631 -- COMPILATION_UNIT ::=
5632 -- CONTEXT_CLAUSE LIBRARY_ITEM
5633 -- | CONTEXT_CLAUSE SUBUNIT
5635 -- The N_Compilation_Unit node itself represents the above syntax.
5636 -- However, there are two additional items not reflected in the above
5637 -- syntax. First we have the global declarations that are added by the
5638 -- code generator. These are outer level declarations (so they cannot
5639 -- be represented as being inside the units). An example is the wrapper
5640 -- subprograms that are created to do ABE checking. As always a list of
5641 -- declarations can contain actions as well (i.e. statements), and such
5642 -- statements are executed as part of the elaboration of the unit. Note
5643 -- that all such declarations are elaborated before the library unit.
5645 -- Similarly, certain actions need to be elaborated at the completion
5646 -- of elaboration of the library unit (notably the statement that sets
5647 -- the Boolean flag indicating that elaboration is complete).
5649 -- The third item not reflected in the syntax is pragmas that appear
5650 -- after the compilation unit. As always pragmas are a problem since
5651 -- they are not part of the formal syntax, but can be stuck into the
5652 -- source following a set of ad hoc rules, and we have to find an ad
5653 -- hoc way of sticking them into the tree. For pragmas that appear
5654 -- before the library unit, we just consider them to be part of the
5655 -- context clause, and pragmas can appear in the Context_Items list
5656 -- of the compilation unit. However, pragmas can also appear after
5657 -- the library item.
5659 -- To deal with all these problems, we create an auxiliary node for
5660 -- a compilation unit, referenced from the N_Compilation_Unit node,
5661 -- that contains these items.
5663 -- N_Compilation_Unit
5664 -- Sloc points to first token of defining unit name
5665 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5666 -- Context_Items (List1) context items and pragmas preceding unit
5667 -- Private_Present (Flag15) set if library unit has private keyword
5668 -- Unit (Node2) library item or subunit
5669 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5670 -- Has_No_Elaboration_Code (Flag17-Sem)
5671 -- Body_Required (Flag13-Sem) set for spec if body is required
5672 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5673 -- Context_Pending (Flag16-Sem)
5674 -- First_Inlined_Subprogram (Node3-Sem)
5675 -- Has_Pragma_Suppress_All (Flag14-Sem)
5677 -- N_Compilation_Unit_Aux
5678 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5679 -- Declarations (List2) (set to No_List if no global declarations)
5680 -- Actions (List1) (set to No_List if no actions)
5681 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5682 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5683 -- Default_Storage_Pool (Node3-Sem)
5685 --------------------------
5686 -- 10.1.1 Library Item --
5687 --------------------------
5689 -- LIBRARY_ITEM ::=
5690 -- [private] LIBRARY_UNIT_DECLARATION
5691 -- | LIBRARY_UNIT_BODY
5692 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5694 -- Note: PRIVATE is not allowed in Ada 83 mode
5696 -- There is no explicit node in the tree for library item, instead
5697 -- the declaration or body, and the flag for private if present,
5698 -- appear in the N_Compilation_Unit node.
5700 --------------------------------------
5701 -- 10.1.1 Library Unit Declaration --
5702 --------------------------------------
5704 -- LIBRARY_UNIT_DECLARATION ::=
5705 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5706 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5708 -----------------------------------------------
5709 -- 10.1.1 Library Unit Renaming Declaration --
5710 -----------------------------------------------
5712 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5713 -- PACKAGE_RENAMING_DECLARATION
5714 -- | GENERIC_RENAMING_DECLARATION
5715 -- | SUBPROGRAM_RENAMING_DECLARATION
5717 -------------------------------
5718 -- 10.1.1 Library unit body --
5719 -------------------------------
5721 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5723 ------------------------------
5724 -- 10.1.1 Parent Unit Name --
5725 ------------------------------
5727 -- PARENT_UNIT_NAME ::= NAME
5729 ----------------------------
5730 -- 10.1.2 Context clause --
5731 ----------------------------
5733 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5735 -- The context clause can include pragmas, and any pragmas that appear
5736 -- before the context clause proper (i.e. all configuration pragmas,
5737 -- also appear at the front of this list).
5739 --------------------------
5740 -- 10.1.2 Context_Item --
5741 --------------------------
5743 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5745 -------------------------
5746 -- 10.1.2 With clause --
5747 -------------------------
5749 -- WITH_CLAUSE ::=
5750 -- with library_unit_NAME {,library_unit_NAME};
5752 -- A separate With clause is built for each name, so that we have
5753 -- a Corresponding_Spec field for each with'ed spec. The flags
5754 -- First_Name and Last_Name are used to reconstruct the exact
5755 -- source form. When a list of names appears in one with clause,
5756 -- the first name in the list has First_Name set, and the last
5757 -- has Last_Name set. If the with clause has only one name, then
5758 -- both of the flags First_Name and Last_Name are set in this name.
5760 -- Note: in the case of implicit with's that are installed by the
5761 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5762 -- set to Standard_Location, but it is incorrect to test the Sloc
5763 -- to find out if a with clause is implicit, test the flag instead.
5765 -- N_With_Clause
5766 -- Sloc points to first token of library unit name
5767 -- Withed_Body (Node1-Sem)
5768 -- Name (Node2)
5769 -- Next_Implicit_With (Node3-Sem)
5770 -- Library_Unit (Node4-Sem)
5771 -- Corresponding_Spec (Node5-Sem)
5772 -- First_Name (Flag5) (set to True if first name or only one name)
5773 -- Last_Name (Flag6) (set to True if last name or only one name)
5774 -- Context_Installed (Flag13-Sem)
5775 -- Elaborate_Present (Flag4-Sem)
5776 -- Elaborate_All_Present (Flag14-Sem)
5777 -- Elaborate_All_Desirable (Flag9-Sem)
5778 -- Elaborate_Desirable (Flag11-Sem)
5779 -- Private_Present (Flag15) set if with_clause has private keyword
5780 -- Implicit_With (Flag16-Sem)
5781 -- Implicit_With_From_Instantiation (Flag12-Sem)
5782 -- Limited_Present (Flag17) set if LIMITED is present
5783 -- Limited_View_Installed (Flag18-Sem)
5784 -- Unreferenced_In_Spec (Flag7-Sem)
5785 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5787 -- Note: Limited_Present and Limited_View_Installed are used to support
5788 -- the implementation of Ada 2005 (AI-50217).
5790 -- Similarly, Private_Present is used to support the implementation of
5791 -- Ada 2005 (AI-50262).
5793 ----------------------
5794 -- With_Type clause --
5795 ----------------------
5797 -- This is a GNAT extension, used to implement mutually recursive
5798 -- types declared in different packages.
5800 -- Note: this is now obsolete. The functionality of this construct
5801 -- is now implemented by the Ada 2005 limited_with_clause.
5803 ---------------------
5804 -- 10.2 Body stub --
5805 ---------------------
5807 -- BODY_STUB ::=
5808 -- SUBPROGRAM_BODY_STUB
5809 -- | PACKAGE_BODY_STUB
5810 -- | TASK_BODY_STUB
5811 -- | PROTECTED_BODY_STUB
5813 ----------------------------------
5814 -- 10.1.3 Subprogram Body Stub --
5815 ----------------------------------
5817 -- SUBPROGRAM_BODY_STUB ::=
5818 -- SUBPROGRAM_SPECIFICATION is separate;
5820 -- N_Subprogram_Body_Stub
5821 -- Sloc points to FUNCTION or PROCEDURE
5822 -- Specification (Node1)
5823 -- Library_Unit (Node4-Sem) points to the subunit
5824 -- Corresponding_Body (Node5-Sem)
5826 -------------------------------
5827 -- 10.1.3 Package Body Stub --
5828 -------------------------------
5830 -- PACKAGE_BODY_STUB ::=
5831 -- package body DEFINING_IDENTIFIER is separate;
5833 -- N_Package_Body_Stub
5834 -- Sloc points to PACKAGE
5835 -- Defining_Identifier (Node1)
5836 -- Library_Unit (Node4-Sem) points to the subunit
5837 -- Corresponding_Body (Node5-Sem)
5839 ----------------------------
5840 -- 10.1.3 Task Body Stub --
5841 ----------------------------
5843 -- TASK_BODY_STUB ::=
5844 -- task body DEFINING_IDENTIFIER is separate;
5846 -- N_Task_Body_Stub
5847 -- Sloc points to TASK
5848 -- Defining_Identifier (Node1)
5849 -- Library_Unit (Node4-Sem) points to the subunit
5850 -- Corresponding_Body (Node5-Sem)
5852 ---------------------------------
5853 -- 10.1.3 Protected Body Stub --
5854 ---------------------------------
5856 -- PROTECTED_BODY_STUB ::=
5857 -- protected body DEFINING_IDENTIFIER is separate;
5859 -- Note: protected body stubs are not allowed in Ada 83 mode
5861 -- N_Protected_Body_Stub
5862 -- Sloc points to PROTECTED
5863 -- Defining_Identifier (Node1)
5864 -- Library_Unit (Node4-Sem) points to the subunit
5865 -- Corresponding_Body (Node5-Sem)
5867 ---------------------
5868 -- 10.1.3 Subunit --
5869 ---------------------
5871 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5873 -- N_Subunit
5874 -- Sloc points to SEPARATE
5875 -- Name (Node2) is the name of the parent unit
5876 -- Proper_Body (Node1) is the subunit body
5877 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5879 ---------------------------------
5880 -- 11.1 Exception Declaration --
5881 ---------------------------------
5883 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5884 -- [ASPECT_SPECIFICATIONS];
5886 -- For consistency with object declarations etc., the parser converts
5887 -- the case of multiple identifiers being declared to a series of
5888 -- declarations in which the expression is copied, using the More_Ids
5889 -- and Prev_Ids flags to remember the source form as described in the
5890 -- section on "Handling of Defining Identifier Lists".
5892 -- N_Exception_Declaration
5893 -- Sloc points to EXCEPTION
5894 -- Defining_Identifier (Node1)
5895 -- Expression (Node3-Sem)
5896 -- Renaming_Exception (Node2-Sem)
5897 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5898 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5900 ------------------------------------------
5901 -- 11.2 Handled Sequence Of Statements --
5902 ------------------------------------------
5904 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5905 -- SEQUENCE_OF_STATEMENTS
5906 -- [exception
5907 -- EXCEPTION_HANDLER
5908 -- {EXCEPTION_HANDLER}]
5909 -- [at end
5910 -- cleanup_procedure_call (param, param, param, ...);]
5912 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5913 -- used only internally currently, but is considered to be syntactic.
5914 -- At the moment, the only cleanup action allowed is a single call to
5915 -- a parameterless procedure, and the Identifier field of the node is
5916 -- the procedure to be called. The cleanup action occurs whenever the
5917 -- sequence of statements is left for any reason. The possible reasons
5918 -- are:
5919 -- 1. reaching the end of the sequence
5920 -- 2. exit, return, or goto
5921 -- 3. exception or abort
5922 -- For some back ends, such as gcc with ZCX, "at end" is implemented
5923 -- entirely in the back end. In this case, a handled sequence of
5924 -- statements with an "at end" cannot also have exception handlers.
5925 -- For other back ends, such as gcc with SJLJ and .NET, the
5926 -- implementation is split between the front end and back end; the front
5927 -- end implements 3, and the back end implements 1 and 2. In this case,
5928 -- if there is an "at end", the front end inserts the appropriate
5929 -- exception handler, and this handler takes precedence over "at end"
5930 -- in case of exception.
5932 -- The inserted exception handler is of the form:
5934 -- when all others =>
5935 -- cleanup;
5936 -- raise;
5938 -- where cleanup is the procedure to be called. The reason we do this is
5939 -- so that the front end can handle the necessary entries in the
5940 -- exception tables, and other exception handler actions required as
5941 -- part of the normal handling for exception handlers.
5943 -- The AT END cleanup handler protects only the sequence of statements
5944 -- (not the associated declarations of the parent), just like exception
5945 -- handlers. The big difference is that the cleanup procedure is called
5946 -- on either a normal or an abnormal exit from the statement sequence.
5948 -- Note: the list of Exception_Handlers can contain pragmas as well
5949 -- as actual handlers. In practice these pragmas can only occur at
5950 -- the start of the list, since any pragmas occurring later on will
5951 -- be included in the statement list of the corresponding handler.
5953 -- Note: although in the Ada syntax, the sequence of statements in
5954 -- a handled sequence of statements can only contain statements, we
5955 -- allow free mixing of declarations and statements in the resulting
5956 -- expanded tree. This is for example used to deal with the case of
5957 -- a cleanup procedure that must handle declarations as well as the
5958 -- statements of a block.
5960 -- N_Handled_Sequence_Of_Statements
5961 -- Sloc points to first token of first statement
5962 -- Statements (List3)
5963 -- End_Label (Node4) (set to Empty if expander generated)
5964 -- Exception_Handlers (List5) (set to No_List if none present)
5965 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5966 -- First_Real_Statement (Node2-Sem)
5968 -- Note: the parent always contains a Declarations field which contains
5969 -- declarations associated with the handled sequence of statements. This
5970 -- is true even in the case of an accept statement (see description of
5971 -- the N_Accept_Statement node).
5973 -- End_Label refers to the containing construct
5975 -----------------------------
5976 -- 11.2 Exception Handler --
5977 -----------------------------
5979 -- EXCEPTION_HANDLER ::=
5980 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5981 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5982 -- SEQUENCE_OF_STATEMENTS
5984 -- Note: choice parameter specification is not allowed in Ada 83 mode
5986 -- N_Exception_Handler
5987 -- Sloc points to WHEN
5988 -- Choice_Parameter (Node2) (set to Empty if not present)
5989 -- Exception_Choices (List4)
5990 -- Statements (List3)
5991 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5992 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5993 -- Local_Raise_Not_OK (Flag7-Sem)
5994 -- Has_Local_Raise (Flag8-Sem)
5996 ------------------------------------------
5997 -- 11.2 Choice parameter specification --
5998 ------------------------------------------
6000 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6002 ----------------------------
6003 -- 11.2 Exception Choice --
6004 ----------------------------
6006 -- EXCEPTION_CHOICE ::= exception_NAME | others
6008 -- Except in the case of OTHERS, no explicit node appears in the tree
6009 -- for exception choice. Instead the exception name appears directly.
6010 -- An OTHERS choice is represented by a N_Others_Choice node (see
6011 -- section 3.8.1.
6013 -- Note: for the exception choice created for an at end handler, the
6014 -- exception choice is an N_Others_Choice node with All_Others set.
6016 ---------------------------
6017 -- 11.3 Raise Statement --
6018 ---------------------------
6020 -- RAISE_STATEMENT ::= raise [exception_NAME];
6022 -- In Ada 2005, we have
6024 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
6026 -- N_Raise_Statement
6027 -- Sloc points to RAISE
6028 -- Name (Node2) (set to Empty if no exception name present)
6029 -- Expression (Node3) (set to Empty if no expression present)
6030 -- From_At_End (Flag4-Sem)
6032 -------------------------------
6033 -- 12.1 Generic Declaration --
6034 -------------------------------
6036 -- GENERIC_DECLARATION ::=
6037 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6039 ------------------------------------------
6040 -- 12.1 Generic Subprogram Declaration --
6041 ------------------------------------------
6043 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6044 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
6046 -- Note: Generic_Formal_Declarations can include pragmas
6048 -- N_Generic_Subprogram_Declaration
6049 -- Sloc points to GENERIC
6050 -- Specification (Node1) subprogram specification
6051 -- Corresponding_Body (Node5-Sem)
6052 -- Generic_Formal_Declarations (List2) from generic formal part
6053 -- Parent_Spec (Node4-Sem)
6055 ---------------------------------------
6056 -- 12.1 Generic Package Declaration --
6057 ---------------------------------------
6059 -- GENERIC_PACKAGE_DECLARATION ::=
6060 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6061 -- [ASPECT_SPECIFICATIONS];
6063 -- Note: when we do generics right, the Activation_Chain_Entity entry
6064 -- for this node can be removed (since the expander won't see generic
6065 -- units any more)???.
6067 -- Note: Generic_Formal_Declarations can include pragmas
6069 -- N_Generic_Package_Declaration
6070 -- Sloc points to GENERIC
6071 -- Specification (Node1) package specification
6072 -- Corresponding_Body (Node5-Sem)
6073 -- Generic_Formal_Declarations (List2) from generic formal part
6074 -- Parent_Spec (Node4-Sem)
6075 -- Activation_Chain_Entity (Node3-Sem)
6077 -------------------------------
6078 -- 12.1 Generic Formal Part --
6079 -------------------------------
6081 -- GENERIC_FORMAL_PART ::=
6082 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6084 ------------------------------------------------
6085 -- 12.1 Generic Formal Parameter Declaration --
6086 ------------------------------------------------
6088 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6089 -- FORMAL_OBJECT_DECLARATION
6090 -- | FORMAL_TYPE_DECLARATION
6091 -- | FORMAL_SUBPROGRAM_DECLARATION
6092 -- | FORMAL_PACKAGE_DECLARATION
6094 ---------------------------------
6095 -- 12.3 Generic Instantiation --
6096 ---------------------------------
6098 -- GENERIC_INSTANTIATION ::=
6099 -- package DEFINING_PROGRAM_UNIT_NAME is
6100 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6101 -- [ASPECT_SPECIFICATIONS];
6102 -- | [[not] overriding]
6103 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6104 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6105 -- [ASPECT_SPECIFICATIONS];
6106 -- | [[not] overriding]
6107 -- function DEFINING_DESIGNATOR is
6108 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6109 -- [ASPECT_SPECIFICATIONS];
6111 -- N_Package_Instantiation
6112 -- Sloc points to PACKAGE
6113 -- Defining_Unit_Name (Node1)
6114 -- Name (Node2)
6115 -- Generic_Associations (List3) (set to No_List if no
6116 -- generic actual part)
6117 -- Parent_Spec (Node4-Sem)
6118 -- Instance_Spec (Node5-Sem)
6119 -- ABE_Is_Certain (Flag18-Sem)
6121 -- N_Procedure_Instantiation
6122 -- Sloc points to PROCEDURE
6123 -- Defining_Unit_Name (Node1)
6124 -- Name (Node2)
6125 -- Parent_Spec (Node4-Sem)
6126 -- Generic_Associations (List3) (set to No_List if no
6127 -- generic actual part)
6128 -- Instance_Spec (Node5-Sem)
6129 -- Must_Override (Flag14) set if overriding indicator present
6130 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6131 -- ABE_Is_Certain (Flag18-Sem)
6133 -- N_Function_Instantiation
6134 -- Sloc points to FUNCTION
6135 -- Defining_Unit_Name (Node1)
6136 -- Name (Node2)
6137 -- Generic_Associations (List3) (set to No_List if no
6138 -- generic actual part)
6139 -- Parent_Spec (Node4-Sem)
6140 -- Instance_Spec (Node5-Sem)
6141 -- Must_Override (Flag14) set if overriding indicator present
6142 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6143 -- ABE_Is_Certain (Flag18-Sem)
6145 -- Note: overriding indicator is an Ada 2005 feature
6147 -------------------------------
6148 -- 12.3 Generic Actual Part --
6149 -------------------------------
6151 -- GENERIC_ACTUAL_PART ::=
6152 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6154 -------------------------------
6155 -- 12.3 Generic Association --
6156 -------------------------------
6158 -- GENERIC_ASSOCIATION ::=
6159 -- [generic_formal_parameter_SELECTOR_NAME =>]
6161 -- Note: unlike the procedure call case, a generic association node
6162 -- is generated for every association, even if no formal parameter
6163 -- selector name is present. In this case the parser will leave the
6164 -- Selector_Name field set to Empty, to be filled in later by the
6165 -- semantic pass.
6167 -- In Ada 2005, a formal may be associated with a box, if the
6168 -- association is part of the list of actuals for a formal package.
6169 -- If the association is given by OTHERS => <>, the association is
6170 -- an N_Others_Choice.
6172 -- N_Generic_Association
6173 -- Sloc points to first token of generic association
6174 -- Selector_Name (Node2) (set to Empty if no formal
6175 -- parameter selector name)
6176 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6177 -- Box_Present (Flag15) (for formal_package associations with a box)
6179 ---------------------------------------------
6180 -- 12.3 Explicit Generic Actual Parameter --
6181 ---------------------------------------------
6183 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6184 -- EXPRESSION | variable_NAME | subprogram_NAME
6185 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6187 -------------------------------------
6188 -- 12.4 Formal Object Declaration --
6189 -------------------------------------
6191 -- FORMAL_OBJECT_DECLARATION ::=
6192 -- DEFINING_IDENTIFIER_LIST :
6193 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6194 -- [ASPECT_SPECIFICATIONS];
6195 -- | DEFINING_IDENTIFIER_LIST :
6196 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6197 -- [ASPECT_SPECIFICATIONS];
6199 -- Although the syntax allows multiple identifiers in the list, the
6200 -- semantics is as though successive declarations were given with
6201 -- identical type definition and expression components. To simplify
6202 -- semantic processing, the parser represents a multiple declaration
6203 -- case as a sequence of single declarations, using the More_Ids and
6204 -- Prev_Ids flags to preserve the original source form as described
6205 -- in the section on "Handling of Defining Identifier Lists".
6207 -- N_Formal_Object_Declaration
6208 -- Sloc points to first identifier
6209 -- Defining_Identifier (Node1)
6210 -- In_Present (Flag15)
6211 -- Out_Present (Flag17)
6212 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6213 -- Subtype_Mark (Node4) (set to Empty if not present)
6214 -- Access_Definition (Node3) (set to Empty if not present)
6215 -- Default_Expression (Node5) (set to Empty if no default expression)
6216 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6217 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6219 -----------------------------------
6220 -- 12.5 Formal Type Declaration --
6221 -----------------------------------
6223 -- FORMAL_TYPE_DECLARATION ::=
6224 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6225 -- is FORMAL_TYPE_DEFINITION
6226 -- [ASPECT_SPECIFICATIONS];
6227 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
6229 -- N_Formal_Type_Declaration
6230 -- Sloc points to TYPE
6231 -- Defining_Identifier (Node1)
6232 -- Formal_Type_Definition (Node3)
6233 -- Discriminant_Specifications (List4) (set to No_List if no
6234 -- discriminant part)
6235 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6237 ----------------------------------
6238 -- 12.5 Formal type definition --
6239 ----------------------------------
6241 -- FORMAL_TYPE_DEFINITION ::=
6242 -- FORMAL_PRIVATE_TYPE_DEFINITION
6243 -- | FORMAL_DERIVED_TYPE_DEFINITION
6244 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6245 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6246 -- | FORMAL_MODULAR_TYPE_DEFINITION
6247 -- | FORMAL_FLOATING_POINT_DEFINITION
6248 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6249 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6250 -- | FORMAL_ARRAY_TYPE_DEFINITION
6251 -- | FORMAL_ACCESS_TYPE_DEFINITION
6252 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6253 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
6255 -- The Ada 2012 syntax introduces two new non-terminals:
6256 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
6257 -- the latter category. Here we introduce an incomplete type definition
6258 -- in order to preserve as much as possible the existing structure.
6260 ---------------------------------------------
6261 -- 12.5.1 Formal Private Type Definition --
6262 ---------------------------------------------
6264 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6265 -- [[abstract] tagged] [limited] private
6267 -- Note: TAGGED is not allowed in Ada 83 mode
6269 -- N_Formal_Private_Type_Definition
6270 -- Sloc points to PRIVATE
6271 -- Abstract_Present (Flag4)
6272 -- Tagged_Present (Flag15)
6273 -- Limited_Present (Flag17)
6275 --------------------------------------------
6276 -- 12.5.1 Formal Derived Type Definition --
6277 --------------------------------------------
6279 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6280 -- [abstract] [limited | synchronized]
6281 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6282 -- Note: this construct is not allowed in Ada 83 mode
6284 -- N_Formal_Derived_Type_Definition
6285 -- Sloc points to NEW
6286 -- Subtype_Mark (Node4)
6287 -- Private_Present (Flag15)
6288 -- Abstract_Present (Flag4)
6289 -- Limited_Present (Flag17)
6290 -- Synchronized_Present (Flag7)
6291 -- Interface_List (List2) (set to No_List if none)
6293 -----------------------------------------------
6294 -- 12.5.1 Formal Incomplete Type Definition --
6295 -----------------------------------------------
6297 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
6299 -- N_Formal_Incomplete_Type_Definition
6300 -- Sloc points to identifier of parent
6301 -- Tagged_Present (Flag15)
6303 ---------------------------------------------
6304 -- 12.5.2 Formal Discrete Type Definition --
6305 ---------------------------------------------
6307 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6309 -- N_Formal_Discrete_Type_Definition
6310 -- Sloc points to (
6312 ---------------------------------------------------
6313 -- 12.5.2 Formal Signed Integer Type Definition --
6314 ---------------------------------------------------
6316 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6318 -- N_Formal_Signed_Integer_Type_Definition
6319 -- Sloc points to RANGE
6321 --------------------------------------------
6322 -- 12.5.2 Formal Modular Type Definition --
6323 --------------------------------------------
6325 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6327 -- N_Formal_Modular_Type_Definition
6328 -- Sloc points to MOD
6330 ----------------------------------------------
6331 -- 12.5.2 Formal Floating Point Definition --
6332 ----------------------------------------------
6334 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6336 -- N_Formal_Floating_Point_Definition
6337 -- Sloc points to DIGITS
6339 ----------------------------------------------------
6340 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6341 ----------------------------------------------------
6343 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6345 -- N_Formal_Ordinary_Fixed_Point_Definition
6346 -- Sloc points to DELTA
6348 ---------------------------------------------------
6349 -- 12.5.2 Formal Decimal Fixed Point Definition --
6350 ---------------------------------------------------
6352 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6354 -- Note: formal decimal fixed point definition not allowed in Ada 83
6356 -- N_Formal_Decimal_Fixed_Point_Definition
6357 -- Sloc points to DELTA
6359 ------------------------------------------
6360 -- 12.5.3 Formal Array Type Definition --
6361 ------------------------------------------
6363 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6365 -------------------------------------------
6366 -- 12.5.4 Formal Access Type Definition --
6367 -------------------------------------------
6369 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6371 ----------------------------------------------
6372 -- 12.5.5 Formal Interface Type Definition --
6373 ----------------------------------------------
6375 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6377 -----------------------------------------
6378 -- 12.6 Formal Subprogram Declaration --
6379 -----------------------------------------
6381 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6382 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6383 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6385 --------------------------------------------------
6386 -- 12.6 Formal Concrete Subprogram Declaration --
6387 --------------------------------------------------
6389 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6390 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6391 -- [ASPECT_SPECIFICATIONS];
6393 -- N_Formal_Concrete_Subprogram_Declaration
6394 -- Sloc points to WITH
6395 -- Specification (Node1)
6396 -- Default_Name (Node2) (set to Empty if no subprogram default)
6397 -- Box_Present (Flag15)
6399 -- Note: if no subprogram default is present, then Name is set
6400 -- to Empty, and Box_Present is False.
6402 --------------------------------------------------
6403 -- 12.6 Formal Abstract Subprogram Declaration --
6404 --------------------------------------------------
6406 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6407 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6408 -- [ASPECT_SPECIFICATIONS];
6410 -- N_Formal_Abstract_Subprogram_Declaration
6411 -- Sloc points to WITH
6412 -- Specification (Node1)
6413 -- Default_Name (Node2) (set to Empty if no subprogram default)
6414 -- Box_Present (Flag15)
6416 -- Note: if no subprogram default is present, then Name is set
6417 -- to Empty, and Box_Present is False.
6419 ------------------------------
6420 -- 12.6 Subprogram Default --
6421 ------------------------------
6423 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6425 -- There is no separate node in the tree for a subprogram default.
6426 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6427 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6428 -- default name or box indication, as needed.
6430 ------------------------
6431 -- 12.6 Default Name --
6432 ------------------------
6434 -- DEFAULT_NAME ::= NAME
6436 --------------------------------------
6437 -- 12.7 Formal Package Declaration --
6438 --------------------------------------
6440 -- FORMAL_PACKAGE_DECLARATION ::=
6441 -- with package DEFINING_IDENTIFIER
6442 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6443 -- [ASPECT_SPECIFICATIONS];
6445 -- Note: formal package declarations not allowed in Ada 83 mode
6447 -- N_Formal_Package_Declaration
6448 -- Sloc points to WITH
6449 -- Defining_Identifier (Node1)
6450 -- Name (Node2)
6451 -- Generic_Associations (List3) (set to No_List if (<>) case or
6452 -- empty generic actual part)
6453 -- Box_Present (Flag15)
6454 -- Instance_Spec (Node5-Sem)
6455 -- ABE_Is_Certain (Flag18-Sem)
6457 --------------------------------------
6458 -- 12.7 Formal Package Actual Part --
6459 --------------------------------------
6461 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6462 -- ([OTHERS] => <>)
6463 -- | [GENERIC_ACTUAL_PART]
6464 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6466 -- FORMAL_PACKAGE_ASSOCIATION ::=
6467 -- GENERIC_ASSOCIATION
6468 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6470 -- There is no explicit node in the tree for a formal package actual
6471 -- part. Instead the information appears in the parent node (i.e. the
6472 -- formal package declaration node itself).
6474 -- There is no explicit node for a formal package association. All of
6475 -- them are represented either by a generic association, possibly with
6476 -- Box_Present, or by an N_Others_Choice.
6478 ---------------------------------
6479 -- 13.1 Representation clause --
6480 ---------------------------------
6482 -- REPRESENTATION_CLAUSE ::=
6483 -- ATTRIBUTE_DEFINITION_CLAUSE
6484 -- | ENUMERATION_REPRESENTATION_CLAUSE
6485 -- | RECORD_REPRESENTATION_CLAUSE
6486 -- | AT_CLAUSE
6488 ----------------------
6489 -- 13.1 Local Name --
6490 ----------------------
6492 -- LOCAL_NAME :=
6493 -- DIRECT_NAME
6494 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6495 -- | library_unit_NAME
6497 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6498 -- as an attribute reference, which has essentially the same form.
6500 ---------------------------------------
6501 -- 13.3 Attribute definition clause --
6502 ---------------------------------------
6504 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6505 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6506 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6508 -- In Ada 83, the expression must be a simple expression and the
6509 -- local name must be a direct name.
6511 -- Note: the only attribute definition clause that is processed by
6512 -- gigi is an address clause. For all other cases, the information
6513 -- is extracted by the front end and either results in setting entity
6514 -- information, e.g. Esize for the Size clause, or in appropriate
6515 -- expansion actions (e.g. in the case of Storage_Size).
6517 -- For an address clause, Gigi constructs the appropriate addressing
6518 -- code. It also ensures that no aliasing optimizations are made
6519 -- for the object for which the address clause appears.
6521 -- Note: for an address clause used to achieve an overlay:
6523 -- A : Integer;
6524 -- B : Integer;
6525 -- for B'Address use A'Address;
6527 -- the above rule means that Gigi will ensure that no optimizations
6528 -- will be made for B that would violate the implementation advice
6529 -- of RM 13.3(19). However, this advice applies only to B and not
6530 -- to A, which seems unfortunate. The GNAT front end will mark the
6531 -- object A as volatile to also prevent unwanted optimization
6532 -- assumptions based on no aliasing being made for B.
6534 -- N_Attribute_Definition_Clause
6535 -- Sloc points to FOR
6536 -- Name (Node2) the local name
6537 -- Chars (Name1) the identifier name from the attribute designator
6538 -- Expression (Node3) the expression or name
6539 -- Entity (Node4-Sem)
6540 -- Next_Rep_Item (Node5-Sem)
6541 -- From_At_Mod (Flag4-Sem)
6542 -- Check_Address_Alignment (Flag11-Sem)
6543 -- From_Aspect_Specification (Flag13-Sem)
6544 -- Is_Delayed_Aspect (Flag14-Sem)
6545 -- Address_Warning_Posted (Flag18-Sem)
6547 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6548 -- aspect name, and Entity is resolved already to reference the entity
6549 -- to which the aspect applies.
6551 -----------------------------------
6552 -- 13.3.1 Aspect Specifications --
6553 -----------------------------------
6555 -- We modify the RM grammar here, the RM grammar is:
6557 -- ASPECT_SPECIFICATION ::=
6558 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
6559 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6561 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6563 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6565 -- That's inconvenient, since there is no non-terminal name for a single
6566 -- entry in the list of aspects. So we use this grammar instead:
6568 -- ASPECT_SPECIFICATIONS ::=
6569 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6571 -- ASPECT_SPECIFICATION =>
6572 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6574 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6576 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6578 -- See separate package Aspects for details on the incorporation of
6579 -- these nodes into the tree, and how aspect specifications for a given
6580 -- declaration node are associated with that node.
6582 -- N_Aspect_Specification
6583 -- Sloc points to aspect identifier
6584 -- Identifier (Node1) aspect identifier
6585 -- Aspect_Rep_Item (Node2-Sem)
6586 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6587 -- Entity (Node4-Sem) entity to which the aspect applies
6588 -- Class_Present (Flag6) Set if 'Class present
6589 -- Next_Rep_Item (Node5-Sem)
6590 -- Split_PPC (Flag17) Set if split pre/post attribute
6591 -- Is_Boolean_Aspect (Flag16-Sem)
6592 -- Is_Delayed_Aspect (Flag14-Sem)
6594 -- Note: Aspect_Specification is an Ada 2012 feature
6596 -- Note: The Identifier serves to identify the aspect involved (it
6597 -- is the aspect whose name corresponds to the Chars field). This
6598 -- means that the other fields of this identifier are unused, and
6599 -- in particular we use the Entity field of this identifier to save
6600 -- a copy of the expression for visibility analysis, see spec of
6601 -- Sem_Ch13 for full details of this usage.
6603 -- Note: When a Pre or Post aspect specification is processed, it is
6604 -- broken into AND THEN sections. The left most section has Split_PPC
6605 -- set to False, indicating that it is the original specification (e.g.
6606 -- for posting errors). For the other sections, Split_PPC is set True.
6608 ---------------------------------------------
6609 -- 13.4 Enumeration representation clause --
6610 ---------------------------------------------
6612 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6613 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6615 -- In Ada 83, the name must be a direct name
6617 -- N_Enumeration_Representation_Clause
6618 -- Sloc points to FOR
6619 -- Identifier (Node1) direct name
6620 -- Array_Aggregate (Node3)
6621 -- Next_Rep_Item (Node5-Sem)
6623 ---------------------------------
6624 -- 13.4 Enumeration aggregate --
6625 ---------------------------------
6627 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6629 ------------------------------------------
6630 -- 13.5.1 Record representation clause --
6631 ------------------------------------------
6633 -- RECORD_REPRESENTATION_CLAUSE ::=
6634 -- for first_subtype_LOCAL_NAME use
6635 -- record [MOD_CLAUSE]
6636 -- {COMPONENT_CLAUSE}
6637 -- end record;
6639 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6640 -- replaced by a corresponding Alignment attribute definition clause).
6642 -- Note: Component_Clauses can include pragmas
6644 -- N_Record_Representation_Clause
6645 -- Sloc points to FOR
6646 -- Identifier (Node1) direct name
6647 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6648 -- Component_Clauses (List3)
6649 -- Next_Rep_Item (Node5-Sem)
6651 ------------------------------
6652 -- 13.5.1 Component clause --
6653 ------------------------------
6655 -- COMPONENT_CLAUSE ::=
6656 -- component_LOCAL_NAME at POSITION
6657 -- range FIRST_BIT .. LAST_BIT;
6659 -- N_Component_Clause
6660 -- Sloc points to AT
6661 -- Component_Name (Node1) points to Name or Attribute_Reference
6662 -- Position (Node2)
6663 -- First_Bit (Node3)
6664 -- Last_Bit (Node4)
6666 ----------------------
6667 -- 13.5.1 Position --
6668 ----------------------
6670 -- POSITION ::= static_EXPRESSION
6672 -----------------------
6673 -- 13.5.1 First_Bit --
6674 -----------------------
6676 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6678 ----------------------
6679 -- 13.5.1 Last_Bit --
6680 ----------------------
6682 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6684 --------------------------
6685 -- 13.8 Code statement --
6686 --------------------------
6688 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6690 -- Note: in GNAT, the qualified expression has the form
6692 -- Asm_Insn'(Asm (...));
6694 -- See package System.Machine_Code in file s-maccod.ads for details on
6695 -- the allowed parameters to Asm. There are two ways this node can
6696 -- arise, as a code statement, in which case the expression is the
6697 -- qualified expression, or as a result of the expansion of an intrinsic
6698 -- call to the Asm or Asm_Input procedure.
6700 -- N_Code_Statement
6701 -- Sloc points to first token of the expression
6702 -- Expression (Node3)
6704 -- Note: package Exp_Code contains an abstract functional interface
6705 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6707 ------------------------
6708 -- 13.12 Restriction --
6709 ------------------------
6711 -- RESTRICTION ::=
6712 -- restriction_IDENTIFIER
6713 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6715 -- There is no explicit node for restrictions. Instead the restriction
6716 -- appears in normal pragma syntax as a pragma argument association,
6717 -- which has the same syntactic form.
6719 --------------------------
6720 -- B.2 Shift Operators --
6721 --------------------------
6723 -- Calls to the intrinsic shift functions are converted to one of
6724 -- the following shift nodes, which have the form of normal binary
6725 -- operator names. Note that for a given shift operation, one node
6726 -- covers all possible types, as for normal operators.
6728 -- Note: it is perfectly permissible for the expander to generate
6729 -- shift operation nodes directly, in which case they will be analyzed
6730 -- and parsed in the usual manner.
6732 -- Sprint syntax: shift-function-name!(expr, count)
6734 -- Note: the Left_Opnd field holds the first argument (the value to
6735 -- be shifted). The Right_Opnd field holds the second argument (the
6736 -- shift count). The Chars field is the name of the intrinsic function.
6738 -- N_Op_Rotate_Left
6739 -- Sloc points to the function name
6740 -- plus fields for binary operator
6741 -- plus fields for expression
6742 -- Shift_Count_OK (Flag4-Sem)
6744 -- N_Op_Rotate_Right
6745 -- Sloc points to the function name
6746 -- plus fields for binary operator
6747 -- plus fields for expression
6748 -- Shift_Count_OK (Flag4-Sem)
6750 -- N_Op_Shift_Left
6751 -- Sloc points to the function name
6752 -- plus fields for binary operator
6753 -- plus fields for expression
6754 -- Shift_Count_OK (Flag4-Sem)
6756 -- N_Op_Shift_Right_Arithmetic
6757 -- Sloc points to the function name
6758 -- plus fields for binary operator
6759 -- plus fields for expression
6760 -- Shift_Count_OK (Flag4-Sem)
6762 -- N_Op_Shift_Right
6763 -- Sloc points to the function name
6764 -- plus fields for binary operator
6765 -- plus fields for expression
6766 -- Shift_Count_OK (Flag4-Sem)
6768 --------------------------
6769 -- Obsolescent Features --
6770 --------------------------
6772 -- The syntax descriptions and tree nodes for obsolescent features are
6773 -- grouped together, corresponding to their location in appendix I in
6774 -- the RM. However, parsing and semantic analysis for these constructs
6775 -- is located in an appropriate chapter (see individual notes).
6777 ---------------------------
6778 -- J.3 Delta Constraint --
6779 ---------------------------
6781 -- Note: the parse routine for this construct is located in section
6782 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6783 -- where delta constraint logically belongs.
6785 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6787 -- N_Delta_Constraint
6788 -- Sloc points to DELTA
6789 -- Delta_Expression (Node3)
6790 -- Range_Constraint (Node4) (set to Empty if not present)
6792 --------------------
6793 -- J.7 At Clause --
6794 --------------------
6796 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6798 -- Note: the parse routine for this construct is located in Par-Ch13,
6799 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6800 -- belongs if it were not obsolescent.
6802 -- Note: in Ada 83 the expression must be a simple expression
6804 -- Gigi restriction: This node never appears, it is rewritten as an
6805 -- address attribute definition clause.
6807 -- N_At_Clause
6808 -- Sloc points to FOR
6809 -- Identifier (Node1)
6810 -- Expression (Node3)
6812 ---------------------
6813 -- J.8 Mod clause --
6814 ---------------------
6816 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6818 -- Note: the parse routine for this construct is located in Par-Ch13,
6819 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6820 -- belongs if it were not obsolescent.
6822 -- Note: in Ada 83, the expression must be a simple expression
6824 -- Gigi restriction: this node never appears. It is replaced
6825 -- by a corresponding Alignment attribute definition clause.
6827 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6828 -- its name has "clause" in it. This is rather strange, but is quite
6829 -- definitely specified. The pragmas before are collected in the
6830 -- Pragmas_Before field of the mod clause node itself, and pragmas
6831 -- after are simply swallowed up in the list of component clauses.
6833 -- N_Mod_Clause
6834 -- Sloc points to AT
6835 -- Expression (Node3)
6836 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6838 --------------------
6839 -- Semantic Nodes --
6840 --------------------
6842 -- These semantic nodes are used to hold additional semantic information.
6843 -- They are inserted into the tree as a result of semantic processing.
6844 -- Although there are no legitimate source syntax constructions that
6845 -- correspond directly to these nodes, we need a source syntax for the
6846 -- reconstructed tree printed by Sprint, and the node descriptions here
6847 -- show this syntax.
6849 -- Note: Case_Expression and Conditional_Expression is in this section for
6850 -- now, since they are extensions. We will move them to their appropriate
6851 -- places when they are officially approved as extensions (and then we will
6852 -- know what the exact grammar and place in the Reference Manual is!)
6854 ---------------------
6855 -- Case Expression --
6856 ---------------------
6858 -- CASE_EXPRESSION ::=
6859 -- case EXPRESSION is
6860 -- CASE_EXPRESSION_ALTERNATIVE
6861 -- {CASE_EXPRESSION_ALTERNATIVE}
6863 -- Note that the Alternatives cannot include pragmas (this contrasts
6864 -- with the situation of case statements where pragmas are allowed).
6866 -- N_Case_Expression
6867 -- Sloc points to CASE
6868 -- Expression (Node3)
6869 -- Alternatives (List4)
6871 ---------------------------------
6872 -- Case Expression Alternative --
6873 ---------------------------------
6875 -- CASE_STATEMENT_ALTERNATIVE ::=
6876 -- when DISCRETE_CHOICE_LIST =>
6877 -- EXPRESSION
6879 -- N_Case_Expression_Alternative
6880 -- Sloc points to WHEN
6881 -- Actions (List1)
6882 -- Discrete_Choices (List4)
6883 -- Expression (Node3)
6885 -- Note: The Actions field temporarily holds any actions associated with
6886 -- evaluation of the Expression. During expansion of the case expression
6887 -- these actions are wrapped into an N_Expressions_With_Actions node
6888 -- replacing the original expression.
6890 ----------------------------
6891 -- Conditional Expression --
6892 ----------------------------
6894 -- This node is used to represent an expression corresponding to the
6895 -- C construct (condition ? then-expression : else_expression), where
6896 -- Expressions is a three element list, whose first expression is the
6897 -- condition, and whose second and third expressions are the then and
6898 -- else expressions respectively.
6900 -- Note: the Then_Actions and Else_Actions fields are always set to
6901 -- No_List in the tree passed to Gigi. These fields are used only
6902 -- for temporary processing purposes in the expander.
6904 -- The Ada language does not permit conditional expressions, however
6905 -- this is under discussion as a possible extension by the ARG, and we
6906 -- have implemented a form of this capability in GNAT under control of
6907 -- the -gnatX switch. The syntax is:
6909 -- CONDITIONAL_EXPRESSION ::=
6910 -- if EXPRESSION then EXPRESSION
6911 -- {elsif EXPRESSION then EXPRESSION}
6912 -- [else EXPRESSION]
6914 -- And we add the additional constructs
6916 -- PRIMARY ::= ( CONDITIONAL_EXPRESSION )
6917 -- PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6919 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6920 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6921 -- the Is_Elsif flag is set on the inner conditional expression.
6923 -- N_Conditional_Expression
6924 -- Sloc points to IF or ELSIF keyword
6925 -- Expressions (List1)
6926 -- Then_Actions (List2-Sem)
6927 -- Else_Actions (List3-Sem)
6928 -- Is_Elsif (Flag13) (set if comes from ELSIF)
6929 -- plus fields for expression
6931 --------------
6932 -- Contract --
6933 --------------
6935 -- This node is used to hold the various parts of an entry or subprogram
6936 -- contract, consisting in pre- and postconditions on the one hand, and
6937 -- test-cases on the other hand.
6939 -- It is referenced from an entry, a subprogram or a generic subprogram
6940 -- entity.
6942 -- Sprint syntax: <none> as the node should not appear in the tree, but
6943 -- only attached to an entry or [generic] subprogram
6944 -- entity.
6946 -- N_Contract
6947 -- Sloc points to the subprogram's name
6948 -- Spec_PPC_List (Node1) (set to Empty if none)
6949 -- Spec_CTC_List (Node2) (set to Empty if none)
6951 -- Spec_PPC_List points to a list of Precondition and Postcondition
6952 -- pragma nodes for preconditions and postconditions declared in the
6953 -- spec of the entry/subprogram. The last pragma encountered is at the
6954 -- head of this list, so it is in reverse order of textual appearance.
6955 -- Note that this includes precondition/postcondition pragmas generated
6956 -- to correspond to Pre/Post aspects.
6958 -- Spec_CTC_List points to a list of Contract_Case and Test_Case pragma
6959 -- nodes for contract-cases and test-cases declared in the spec of the
6960 -- entry/subprogram. The last pragma encountered is at the head of this
6961 -- list, so it is in reverse order of textual appearance. Note that
6962 -- this includes contract-case and test-case pragmas generated from
6963 -- Contract_Case and Test_Case aspects.
6965 -------------------
6966 -- Expanded_Name --
6967 -------------------
6969 -- The N_Expanded_Name node is used to represent a selected component
6970 -- name that has been resolved to an expanded name. The semantic phase
6971 -- replaces N_Selected_Component nodes that represent names by the use
6972 -- of this node, leaving the N_Selected_Component node used only when
6973 -- the prefix is a record or protected type.
6975 -- The fields of the N_Expanded_Name node are layed out identically
6976 -- to those of the N_Selected_Component node, allowing conversion of
6977 -- an expanded name node to a selected component node to be done
6978 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6980 -- There is no special sprint syntax for an expanded name
6982 -- N_Expanded_Name
6983 -- Sloc points to the period
6984 -- Chars (Name1) copy of Chars field of selector name
6985 -- Prefix (Node3)
6986 -- Selector_Name (Node2)
6987 -- Entity (Node4-Sem)
6988 -- Associated_Node (Node4-Sem)
6989 -- Has_Private_View (Flag11-Sem) set in generic units.
6990 -- Redundant_Use (Flag13-Sem)
6991 -- Atomic_Sync_Required (Flag14-Sem)
6992 -- plus fields for expression
6994 -----------------------------
6995 -- Expression with Actions --
6996 -----------------------------
6998 -- This node is created by the analyzer/expander to handle some
6999 -- expansion cases, notably short circuit forms where there are
7000 -- actions associated with the right-hand side operand.
7002 -- The N_Expression_With_Actions node represents an expression with
7003 -- an associated set of actions (which are executable statements and
7004 -- declarations, as might occur in a handled statement sequence).
7006 -- The required semantics is that the set of actions is executed in
7007 -- the order in which it appears just before the expression is
7008 -- evaluated (and these actions must only be executed if the value
7009 -- of the expression is evaluated). The node is considered to be
7010 -- a subexpression, whose value is the value of the Expression after
7011 -- executing all the actions.
7013 -- Note: if the actions contain declarations, then these declarations
7014 -- may be referenced within the expression. It is thus appropriate for
7015 -- the back-end to create a scope that encompasses the construct (any
7016 -- declarations within the actions will definitely not be referenced
7017 -- once elaboration of the construct is completed).
7019 -- Sprint syntax: do
7020 -- action;
7021 -- action;
7022 -- ...
7023 -- action;
7024 -- in expression end
7026 -- N_Expression_With_Actions
7027 -- Actions (List1)
7028 -- Expression (Node3)
7029 -- plus fields for expression
7031 -- Note: the actions list is always non-null, since we would
7032 -- never have created this node if there weren't some actions.
7034 --------------------
7035 -- Free Statement --
7036 --------------------
7038 -- The N_Free_Statement node is generated as a result of a call to an
7039 -- instantiation of Unchecked_Deallocation. The instantiation of this
7040 -- generic is handled specially and generates this node directly.
7042 -- Sprint syntax: free expression
7044 -- N_Free_Statement
7045 -- Sloc is copied from the unchecked deallocation call
7046 -- Expression (Node3) argument to unchecked deallocation call
7047 -- Storage_Pool (Node1-Sem)
7048 -- Procedure_To_Call (Node2-Sem)
7049 -- Actual_Designated_Subtype (Node4-Sem)
7051 -- Note: in the case where a debug source file is generated, the Sloc
7052 -- for this node points to the FREE keyword in the Sprint file output.
7054 -------------------
7055 -- Freeze Entity --
7056 -------------------
7058 -- This node marks the point in a declarative part at which an entity
7059 -- declared therein becomes frozen. The expander places initialization
7060 -- procedures for types at those points. Gigi uses the freezing point
7061 -- to elaborate entities that may depend on previous private types.
7063 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7064 -- a full description of the use of this node.
7066 -- The Entity field points back to the entity for the type (whose
7067 -- Freeze_Node field points back to this freeze node).
7069 -- The Actions field contains a list of declarations and statements
7070 -- generated by the expander which are associated with the freeze
7071 -- node, and are elaborated as though the freeze node were replaced
7072 -- by this sequence of actions.
7074 -- Note: the Sloc field in the freeze node references a construct
7075 -- associated with the freezing point. This is used for posting
7076 -- messages in some error/warning situations, e.g. the case where
7077 -- a primitive operation of a tagged type is declared too late.
7079 -- Sprint syntax: freeze entity-name [
7080 -- freeze actions
7081 -- ]
7083 -- N_Freeze_Entity
7084 -- Sloc points near freeze point (see above special note)
7085 -- Entity (Node4-Sem)
7086 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7087 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7088 -- Actions (List1) (set to No_List if no freeze actions)
7089 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7091 -- The Actions field holds actions associated with the freeze. These
7092 -- actions are elaborated at the point where the type is frozen.
7094 -- Note: in the case where a debug source file is generated, the Sloc
7095 -- for this node points to the FREEZE keyword in the Sprint file output.
7097 --------------------------------
7098 -- Implicit Label Declaration --
7099 --------------------------------
7101 -- An implicit label declaration is created for every occurrence of a
7102 -- label on a statement or a label on a block or loop. It is chained
7103 -- in the declarations of the innermost enclosing block as specified
7104 -- in RM section 5.1 (3).
7106 -- The Defining_Identifier is the actual identifier for the statement
7107 -- identifier. Note that the occurrence of the label is a reference, NOT
7108 -- the defining occurrence. The defining occurrence occurs at the head
7109 -- of the innermost enclosing block, and is represented by this node.
7111 -- Note: from the grammar, this might better be called an implicit
7112 -- statement identifier declaration, but the term we choose seems
7113 -- friendlier, since at least informally statement identifiers are
7114 -- called labels in both cases (i.e. when used in labels, and when
7115 -- used as the identifiers of blocks and loops).
7117 -- Note: although this is logically a semantic node, since it does not
7118 -- correspond directly to a source syntax construction, these nodes are
7119 -- actually created by the parser in a post pass done just after parsing
7120 -- is complete, before semantic analysis is started (see Par.Labl).
7122 -- Sprint syntax: labelname : label;
7124 -- N_Implicit_Label_Declaration
7125 -- Sloc points to the << of the label
7126 -- Defining_Identifier (Node1)
7127 -- Label_Construct (Node2-Sem)
7129 -- Note: in the case where a debug source file is generated, the Sloc
7130 -- for this node points to the label name in the generated declaration.
7132 ---------------------
7133 -- Itype_Reference --
7134 ---------------------
7136 -- This node is used to create a reference to an Itype. The only purpose
7137 -- is to make sure the Itype is defined if this is the first reference.
7139 -- A typical use of this node is when an Itype is to be referenced in
7140 -- two branches of an IF statement. In this case it is important that
7141 -- the first use of the Itype not be inside the conditional, since then
7142 -- it might not be defined if the other branch of the IF is taken, in
7143 -- the case where the definition generates elaboration code.
7145 -- The Itype field points to the referenced Itype
7147 -- Sprint syntax: reference itype-name
7149 -- N_Itype_Reference
7150 -- Sloc points to the node generating the reference
7151 -- Itype (Node1-Sem)
7153 -- Note: in the case where a debug source file is generated, the Sloc
7154 -- for this node points to the REFERENCE keyword in the file output.
7156 ---------------------
7157 -- Raise_xxx_Error --
7158 ---------------------
7160 -- One of these nodes is created during semantic analysis to replace
7161 -- a node for an expression that is determined to definitely raise
7162 -- the corresponding exception.
7164 -- The N_Raise_xxx_Error node may also stand alone in place
7165 -- of a declaration or statement, in which case it simply causes
7166 -- the exception to be raised (i.e. it is equivalent to a raise
7167 -- statement that raises the corresponding exception). This use
7168 -- is distinguished by the fact that the Etype in this case is
7169 -- Standard_Void_Type, In the subexpression case, the Etype is the
7170 -- same as the type of the subexpression which it replaces.
7172 -- If Condition is empty, then the raise is unconditional. If the
7173 -- Condition field is non-empty, it is a boolean expression which
7174 -- is first evaluated, and the exception is raised only if the
7175 -- value of the expression is True. In the unconditional case, the
7176 -- creation of this node is usually accompanied by a warning message
7177 -- error. The creation of this node will usually be accompanied by a
7178 -- message (unless it appears within the right operand of a short
7179 -- circuit form whose left argument is static and decisively
7180 -- eliminates elaboration of the raise operation. The condition field
7181 -- can ONLY be present when the node is used as a statement form, it
7182 -- may NOT be present in the case where the node appears within an
7183 -- expression.
7185 -- The exception is generated with a message that contains the
7186 -- file name and line number, and then appended text. The Reason
7187 -- code shows the text to be added. The Reason code is an element
7188 -- of the type Types.RT_Exception_Code, and indicates both the
7189 -- message to be added, and the exception to be raised (which must
7190 -- match the node type). The value is stored by storing a Uint which
7191 -- is the Pos value of the enumeration element in this type.
7193 -- Gigi restriction: This expander ensures that the type of the
7194 -- Condition field is always Standard.Boolean, even if the type
7195 -- in the source is some non-standard boolean type.
7197 -- Sprint syntax: [xxx_error "msg"]
7198 -- or: [xxx_error when condition "msg"]
7200 -- N_Raise_Constraint_Error
7201 -- Sloc references related construct
7202 -- Condition (Node1) (set to Empty if no condition)
7203 -- Reason (Uint3)
7204 -- plus fields for expression
7206 -- N_Raise_Program_Error
7207 -- Sloc references related construct
7208 -- Condition (Node1) (set to Empty if no condition)
7209 -- Reason (Uint3)
7210 -- plus fields for expression
7212 -- N_Raise_Storage_Error
7213 -- Sloc references related construct
7214 -- Condition (Node1) (set to Empty if no condition)
7215 -- Reason (Uint3)
7216 -- plus fields for expression
7218 -- Note: Sloc is copied from the expression generating the exception.
7219 -- In the case where a debug source file is generated, the Sloc for
7220 -- this node points to the left bracket in the Sprint file output.
7222 -- Note: the back end may be required to translate these nodes into
7223 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7225 ---------------------------------------------
7226 -- Optimization of Exception Raise to Goto --
7227 ---------------------------------------------
7229 -- In some cases, the front end will determine that any exception raised
7230 -- by the back end for a certain exception should be transformed into a
7231 -- goto statement.
7233 -- There are three kinds of exceptions raised by the back end (note that
7234 -- for this purpose we consider gigi to be part of the back end in the
7235 -- gcc case):
7237 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7238 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7239 -- 3. Other cases not specifically marked by the front end
7241 -- Normally all such exceptions are translated into calls to the proper
7242 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7243 -- and the exception message.
7245 -- The front end may determine that for a particular sequence of code,
7246 -- exceptions in any of these three categories for a particular builtin
7247 -- exception should result in a goto, rather than a call to Rcheck_xx.
7248 -- The exact sequence to be generated is:
7250 -- Local_Raise (exception'Identity);
7251 -- goto Label
7253 -- The front end marks such a sequence of code by bracketing it with
7254 -- push and pop nodes:
7256 -- N_Push_xxx_Label (referencing the label)
7257 -- ...
7258 -- (code where transformation is expected for exception xxx)
7259 -- ...
7260 -- N_Pop_xxx_Label
7262 -- The use of push/pop reflects the fact that such regions can properly
7263 -- nest, and one special case is a subregion in which no transformation
7264 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7265 -- Exception_Label field is Empty.
7267 -- N_Push_Constraint_Error_Label
7268 -- Sloc references first statement in region covered
7269 -- Exception_Label (Node5-Sem)
7271 -- N_Push_Program_Error_Label
7272 -- Sloc references first statement in region covered
7273 -- Exception_Label (Node5-Sem)
7275 -- N_Push_Storage_Error_Label
7276 -- Sloc references first statement in region covered
7277 -- Exception_Label (Node5-Sem)
7279 -- N_Pop_Constraint_Error_Label
7280 -- Sloc references last statement in region covered
7282 -- N_Pop_Program_Error_Label
7283 -- Sloc references last statement in region covered
7285 -- N_Pop_Storage_Error_Label
7286 -- Sloc references last statement in region covered
7288 ---------------
7289 -- Reference --
7290 ---------------
7292 -- For a number of purposes, we need to construct references to objects.
7293 -- These references are subsequently treated as normal access values.
7294 -- An example is the construction of the parameter block passed to a
7295 -- task entry. The N_Reference node is provided for this purpose. It is
7296 -- similar in effect to the use of the Unrestricted_Access attribute,
7297 -- and like Unrestricted_Access can be applied to objects which would
7298 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7299 -- objects which are not aliased, and slices). In addition it can be
7300 -- applied to composite type values as well as objects, including string
7301 -- values and aggregates.
7303 -- Note: we use the Prefix field for this expression so that the
7304 -- resulting node can be treated using common code with the attribute
7305 -- nodes for the 'Access and related attributes. Logically it would make
7306 -- more sense to call it an Expression field, but then we would have to
7307 -- special case the treatment of the N_Reference node.
7309 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
7310 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
7311 -- a temporary initialized to a N_Reference node in order to eliminate
7312 -- superfluous access checks.
7314 -- Sprint syntax: prefix'reference
7316 -- N_Reference
7317 -- Sloc is copied from the expression
7318 -- Prefix (Node3)
7319 -- plus fields for expression
7321 -- Note: in the case where a debug source file is generated, the Sloc
7322 -- for this node points to the quote in the Sprint file output.
7324 -----------------
7325 -- SCIL Nodes --
7326 -----------------
7328 -- SCIL nodes are special nodes added to the tree when the CodePeer
7329 -- mode is active. They help the CodePeer backend to locate nodes that
7330 -- require special processing.
7332 -- Major documentation on the general design of the SCIL interface, and
7333 -- in particular detailed description of these nodes is missing and is
7334 -- to be supplied in the future, when the design has finalized ???
7336 -- Meanwhile these nodes should be considered in experimental form, and
7337 -- should be ignored by all code generating back ends. ???
7339 -- N_SCIL_Dispatch_Table_Tag_Init
7340 -- Sloc references a node for a tag initialization
7341 -- SCIL_Entity (Node4-Sem)
7343 -- N_SCIL_Dispatching_Call
7344 -- Sloc references the node of a dispatching call
7345 -- SCIL_Target_Prim (Node2-Sem)
7346 -- SCIL_Entity (Node4-Sem)
7347 -- SCIL_Controlling_Tag (Node5-Sem)
7349 -- N_SCIL_Membership_Test
7350 -- Sloc references the node of a membership test
7351 -- SCIL_Tag_Value (Node5-Sem)
7352 -- SCIL_Entity (Node4-Sem)
7354 ---------------------
7355 -- Subprogram_Info --
7356 ---------------------
7358 -- This node generates the appropriate Subprogram_Info value for a
7359 -- given procedure. See Ada.Exceptions for further details
7361 -- Sprint syntax: subprog'subprogram_info
7363 -- N_Subprogram_Info
7364 -- Sloc points to the entity for the procedure
7365 -- Identifier (Node1) identifier referencing the procedure
7366 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7368 -- Note: in the case where a debug source file is generated, the Sloc
7369 -- for this node points to the quote in the Sprint file output.
7371 --------------------------
7372 -- Unchecked Expression --
7373 --------------------------
7375 -- An unchecked expression is one that must be analyzed and resolved
7376 -- with all checks off, regardless of the current setting of scope
7377 -- suppress flags.
7379 -- Sprint syntax: `(expression)
7381 -- Note: this node is always removed from the tree (and replaced by
7382 -- its constituent expression) on completion of analysis, so it only
7383 -- appears in intermediate trees, and will never be seen by Gigi.
7385 -- N_Unchecked_Expression
7386 -- Sloc is a copy of the Sloc of the expression
7387 -- Expression (Node3)
7388 -- plus fields for expression
7390 -- Note: in the case where a debug source file is generated, the Sloc
7391 -- for this node points to the back quote in the Sprint file output.
7393 -------------------------------
7394 -- Unchecked Type Conversion --
7395 -------------------------------
7397 -- An unchecked type conversion node represents the semantic action
7398 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7399 -- It is generated as a result of actual use of Unchecked_Conversion
7400 -- and also the expander generates unchecked type conversion nodes
7401 -- directly for expansion of complex semantic actions.
7403 -- Note: an unchecked type conversion is a variable as far as the
7404 -- semantics are concerned, which is convenient for the expander.
7405 -- This does not change what Ada source programs are legal, since
7406 -- clearly a function call to an instantiation of Unchecked_Conversion
7407 -- is not a variable in any case.
7409 -- Sprint syntax: subtype-mark!(expression)
7411 -- N_Unchecked_Type_Conversion
7412 -- Sloc points to related node in source
7413 -- Subtype_Mark (Node4)
7414 -- Expression (Node3)
7415 -- Kill_Range_Check (Flag11-Sem)
7416 -- No_Truncation (Flag17-Sem)
7417 -- plus fields for expression
7419 -- Note: in the case where a debug source file is generated, the Sloc
7420 -- for this node points to the exclamation in the Sprint file output.
7422 -----------------------------------
7423 -- Validate_Unchecked_Conversion --
7424 -----------------------------------
7426 -- The front end does most of the validation of unchecked conversion,
7427 -- including checking sizes (this is done after the back end is called
7428 -- to take advantage of back-annotation of calculated sizes).
7430 -- The front end also deals with specific cases that are not allowed
7431 -- e.g. involving unconstrained array types.
7433 -- For the case of the standard gigi backend, this means that all
7434 -- checks are done in the front-end.
7436 -- However, in the case of specialized back-ends, notably the JVM
7437 -- backend for JGNAT, additional requirements and restrictions apply
7438 -- to unchecked conversion, and these are most conveniently performed
7439 -- in the specialized back-end.
7441 -- To accommodate this requirement, for such back ends, the following
7442 -- special node is generated recording an unchecked conversion that
7443 -- needs to be validated. The back end should post an appropriate
7444 -- error message if the unchecked conversion is invalid or warrants
7445 -- a special warning message.
7447 -- Source_Type and Target_Type point to the entities for the two
7448 -- types involved in the unchecked conversion instantiation that
7449 -- is to be validated.
7451 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7453 -- N_Validate_Unchecked_Conversion
7454 -- Sloc points to instantiation (location for warning message)
7455 -- Source_Type (Node1-Sem)
7456 -- Target_Type (Node2-Sem)
7458 -- Note: in the case where a debug source file is generated, the Sloc
7459 -- for this node points to the VALIDATE keyword in the file output.
7461 -----------
7462 -- Empty --
7463 -----------
7465 -- Used as the contents of the Nkind field of the dummy Empty node
7466 -- and in some other situations to indicate an uninitialized value.
7468 -- N_Empty
7469 -- Chars (Name1) is set to No_Name
7471 -----------
7472 -- Error --
7473 -----------
7475 -- Used as the contents of the Nkind field of the dummy Error node.
7476 -- Has an Etype field, which gets set to Any_Type later on, to help
7477 -- error recovery (Error_Posted is also set in the Error node).
7479 -- N_Error
7480 -- Chars (Name1) is set to Error_Name
7481 -- Etype (Node5-Sem)
7483 --------------------------
7484 -- Node Type Definition --
7485 --------------------------
7487 -- The following is the definition of the Node_Kind type. As previously
7488 -- discussed, this is separated off to allow rearrangement of the order to
7489 -- facilitate definition of subtype ranges. The comments show the subtype
7490 -- classes which apply to each set of node kinds. The first entry in the
7491 -- comment characterizes the following list of nodes.
7493 type Node_Kind is (
7494 N_Unused_At_Start,
7496 -- N_Representation_Clause
7498 N_At_Clause,
7499 N_Component_Clause,
7500 N_Enumeration_Representation_Clause,
7501 N_Mod_Clause,
7502 N_Record_Representation_Clause,
7504 -- N_Representation_Clause, N_Has_Chars
7506 N_Attribute_Definition_Clause,
7508 -- N_Has_Chars
7510 N_Empty,
7511 N_Pragma_Argument_Association,
7513 -- N_Has_Etype, N_Has_Chars
7515 -- Note: of course N_Error does not really have Etype or Chars fields,
7516 -- and any attempt to access these fields in N_Error will cause an
7517 -- error, but historically this always has been positioned so that an
7518 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
7519 -- Most likely this makes coding easier somewhere but still seems
7520 -- undesirable. To be investigated some time ???
7522 N_Error,
7524 -- N_Entity, N_Has_Etype, N_Has_Chars
7526 N_Defining_Character_Literal,
7527 N_Defining_Identifier,
7528 N_Defining_Operator_Symbol,
7530 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7532 N_Expanded_Name,
7534 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7535 -- N_Has_Chars, N_Has_Entity
7537 N_Identifier,
7538 N_Operator_Symbol,
7540 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7541 -- N_Has_Chars, N_Has_Entity
7543 N_Character_Literal,
7545 -- N_Binary_Op, N_Op, N_Subexpr,
7546 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7548 N_Op_Add,
7549 N_Op_Concat,
7550 N_Op_Expon,
7551 N_Op_Subtract,
7553 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7554 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7556 N_Op_Divide,
7557 N_Op_Mod,
7558 N_Op_Multiply,
7559 N_Op_Rem,
7561 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7562 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7564 N_Op_And,
7566 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7567 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7569 N_Op_Eq,
7570 N_Op_Ge,
7571 N_Op_Gt,
7572 N_Op_Le,
7573 N_Op_Lt,
7574 N_Op_Ne,
7576 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7577 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7579 N_Op_Or,
7580 N_Op_Xor,
7582 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7583 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7585 N_Op_Rotate_Left,
7586 N_Op_Rotate_Right,
7587 N_Op_Shift_Left,
7588 N_Op_Shift_Right,
7589 N_Op_Shift_Right_Arithmetic,
7591 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7592 -- N_Has_Chars, N_Has_Entity
7594 N_Op_Abs,
7595 N_Op_Minus,
7596 N_Op_Not,
7597 N_Op_Plus,
7599 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7601 N_Attribute_Reference,
7603 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7605 N_In,
7606 N_Not_In,
7608 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7610 N_And_Then,
7611 N_Or_Else,
7613 -- N_Subexpr, N_Has_Etype
7615 N_Conditional_Expression,
7616 N_Explicit_Dereference,
7617 N_Expression_With_Actions,
7619 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
7621 N_Function_Call,
7622 N_Procedure_Call_Statement,
7624 -- N_Subexpr, N_Has_Etype
7626 N_Indexed_Component,
7627 N_Integer_Literal,
7628 N_Null,
7629 N_Qualified_Expression,
7630 N_Quantified_Expression,
7632 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7634 N_Raise_Constraint_Error,
7635 N_Raise_Program_Error,
7636 N_Raise_Storage_Error,
7638 -- N_Subexpr, N_Has_Etype
7640 N_Aggregate,
7641 N_Allocator,
7642 N_Case_Expression,
7643 N_Extension_Aggregate,
7644 N_Range,
7645 N_Real_Literal,
7646 N_Reference,
7647 N_Selected_Component,
7648 N_Slice,
7649 N_String_Literal,
7650 N_Subprogram_Info,
7651 N_Type_Conversion,
7652 N_Unchecked_Expression,
7653 N_Unchecked_Type_Conversion,
7655 -- N_Has_Etype
7657 N_Subtype_Indication,
7659 -- N_Declaration
7661 N_Component_Declaration,
7662 N_Entry_Declaration,
7663 N_Expression_Function,
7664 N_Formal_Object_Declaration,
7665 N_Formal_Type_Declaration,
7666 N_Full_Type_Declaration,
7667 N_Incomplete_Type_Declaration,
7668 N_Iterator_Specification,
7669 N_Loop_Parameter_Specification,
7670 N_Object_Declaration,
7671 N_Protected_Type_Declaration,
7672 N_Private_Extension_Declaration,
7673 N_Private_Type_Declaration,
7674 N_Subtype_Declaration,
7676 -- N_Subprogram_Specification, N_Declaration
7678 N_Function_Specification,
7679 N_Procedure_Specification,
7681 -- N_Access_To_Subprogram_Definition
7683 N_Access_Function_Definition,
7684 N_Access_Procedure_Definition,
7686 -- N_Later_Decl_Item
7688 N_Task_Type_Declaration,
7690 -- N_Body_Stub, N_Later_Decl_Item
7692 N_Package_Body_Stub,
7693 N_Protected_Body_Stub,
7694 N_Subprogram_Body_Stub,
7695 N_Task_Body_Stub,
7697 -- N_Generic_Instantiation, N_Later_Decl_Item
7698 -- N_Subprogram_Instantiation
7700 N_Function_Instantiation,
7701 N_Procedure_Instantiation,
7703 -- N_Generic_Instantiation, N_Later_Decl_Item
7705 N_Package_Instantiation,
7707 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7709 N_Package_Body,
7710 N_Subprogram_Body,
7712 -- N_Later_Decl_Item, N_Proper_Body
7714 N_Protected_Body,
7715 N_Task_Body,
7717 -- N_Later_Decl_Item
7719 N_Implicit_Label_Declaration,
7720 N_Package_Declaration,
7721 N_Single_Task_Declaration,
7722 N_Subprogram_Declaration,
7723 N_Use_Package_Clause,
7725 -- N_Generic_Declaration, N_Later_Decl_Item
7727 N_Generic_Package_Declaration,
7728 N_Generic_Subprogram_Declaration,
7730 -- N_Array_Type_Definition
7732 N_Constrained_Array_Definition,
7733 N_Unconstrained_Array_Definition,
7735 -- N_Renaming_Declaration
7737 N_Exception_Renaming_Declaration,
7738 N_Object_Renaming_Declaration,
7739 N_Package_Renaming_Declaration,
7740 N_Subprogram_Renaming_Declaration,
7742 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7744 N_Generic_Function_Renaming_Declaration,
7745 N_Generic_Package_Renaming_Declaration,
7746 N_Generic_Procedure_Renaming_Declaration,
7748 -- N_Statement_Other_Than_Procedure_Call
7750 N_Abort_Statement,
7751 N_Accept_Statement,
7752 N_Assignment_Statement,
7753 N_Asynchronous_Select,
7754 N_Block_Statement,
7755 N_Case_Statement,
7756 N_Code_Statement,
7757 N_Conditional_Entry_Call,
7759 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
7761 N_Delay_Relative_Statement,
7762 N_Delay_Until_Statement,
7764 -- N_Statement_Other_Than_Procedure_Call
7766 N_Entry_Call_Statement,
7767 N_Free_Statement,
7768 N_Goto_Statement,
7769 N_Loop_Statement,
7770 N_Null_Statement,
7771 N_Raise_Statement,
7772 N_Requeue_Statement,
7773 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7774 N_Extended_Return_Statement,
7775 N_Selective_Accept,
7776 N_Timed_Entry_Call,
7778 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7780 N_Exit_Statement,
7781 N_If_Statement,
7783 -- N_Has_Condition
7785 N_Accept_Alternative,
7786 N_Delay_Alternative,
7787 N_Elsif_Part,
7788 N_Entry_Body_Formal_Part,
7789 N_Iteration_Scheme,
7790 N_Terminate_Alternative,
7792 -- N_Formal_Subprogram_Declaration
7794 N_Formal_Abstract_Subprogram_Declaration,
7795 N_Formal_Concrete_Subprogram_Declaration,
7797 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7799 N_Push_Constraint_Error_Label,
7800 N_Push_Program_Error_Label,
7801 N_Push_Storage_Error_Label,
7803 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7805 N_Pop_Constraint_Error_Label,
7806 N_Pop_Program_Error_Label,
7807 N_Pop_Storage_Error_Label,
7809 -- SCIL nodes
7811 N_SCIL_Dispatch_Table_Tag_Init,
7812 N_SCIL_Dispatching_Call,
7813 N_SCIL_Membership_Test,
7815 -- Other nodes (not part of any subtype class)
7817 N_Abortable_Part,
7818 N_Abstract_Subprogram_Declaration,
7819 N_Access_Definition,
7820 N_Access_To_Object_Definition,
7821 N_Aspect_Specification,
7822 N_Case_Expression_Alternative,
7823 N_Case_Statement_Alternative,
7824 N_Compilation_Unit,
7825 N_Compilation_Unit_Aux,
7826 N_Component_Association,
7827 N_Component_Definition,
7828 N_Component_List,
7829 N_Contract,
7830 N_Derived_Type_Definition,
7831 N_Decimal_Fixed_Point_Definition,
7832 N_Defining_Program_Unit_Name,
7833 N_Delta_Constraint,
7834 N_Designator,
7835 N_Digits_Constraint,
7836 N_Discriminant_Association,
7837 N_Discriminant_Specification,
7838 N_Enumeration_Type_Definition,
7839 N_Entry_Body,
7840 N_Entry_Call_Alternative,
7841 N_Entry_Index_Specification,
7842 N_Exception_Declaration,
7843 N_Exception_Handler,
7844 N_Floating_Point_Definition,
7845 N_Formal_Decimal_Fixed_Point_Definition,
7846 N_Formal_Derived_Type_Definition,
7847 N_Formal_Discrete_Type_Definition,
7848 N_Formal_Floating_Point_Definition,
7849 N_Formal_Modular_Type_Definition,
7850 N_Formal_Ordinary_Fixed_Point_Definition,
7851 N_Formal_Package_Declaration,
7852 N_Formal_Private_Type_Definition,
7853 N_Formal_Incomplete_Type_Definition,
7854 N_Formal_Signed_Integer_Type_Definition,
7855 N_Freeze_Entity,
7856 N_Generic_Association,
7857 N_Handled_Sequence_Of_Statements,
7858 N_Index_Or_Discriminant_Constraint,
7859 N_Itype_Reference,
7860 N_Label,
7861 N_Modular_Type_Definition,
7862 N_Number_Declaration,
7863 N_Ordinary_Fixed_Point_Definition,
7864 N_Others_Choice,
7865 N_Package_Specification,
7866 N_Parameter_Association,
7867 N_Parameter_Specification,
7868 N_Pragma,
7869 N_Protected_Definition,
7870 N_Range_Constraint,
7871 N_Real_Range_Specification,
7872 N_Record_Definition,
7873 N_Signed_Integer_Type_Definition,
7874 N_Single_Protected_Declaration,
7875 N_Subunit,
7876 N_Task_Definition,
7877 N_Triggering_Alternative,
7878 N_Use_Type_Clause,
7879 N_Validate_Unchecked_Conversion,
7880 N_Variant,
7881 N_Variant_Part,
7882 N_With_Clause,
7883 N_Unused_At_End);
7885 for Node_Kind'Size use 8;
7886 -- The data structures in Atree assume this!
7888 ----------------------------
7889 -- Node Class Definitions --
7890 ----------------------------
7892 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7893 N_Access_Function_Definition ..
7894 N_Access_Procedure_Definition;
7896 subtype N_Array_Type_Definition is Node_Kind range
7897 N_Constrained_Array_Definition ..
7898 N_Unconstrained_Array_Definition;
7900 subtype N_Binary_Op is Node_Kind range
7901 N_Op_Add ..
7902 N_Op_Shift_Right_Arithmetic;
7904 subtype N_Body_Stub is Node_Kind range
7905 N_Package_Body_Stub ..
7906 N_Task_Body_Stub;
7908 subtype N_Declaration is Node_Kind range
7909 N_Component_Declaration ..
7910 N_Procedure_Specification;
7911 -- Note: this includes all constructs normally thought of as declarations
7912 -- except those which are separately grouped as later declarations.
7914 subtype N_Delay_Statement is Node_Kind range
7915 N_Delay_Relative_Statement ..
7916 N_Delay_Until_Statement;
7918 subtype N_Direct_Name is Node_Kind range
7919 N_Identifier ..
7920 N_Character_Literal;
7922 subtype N_Entity is Node_Kind range
7923 N_Defining_Character_Literal ..
7924 N_Defining_Operator_Symbol;
7926 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7927 N_Formal_Abstract_Subprogram_Declaration ..
7928 N_Formal_Concrete_Subprogram_Declaration;
7930 subtype N_Generic_Declaration is Node_Kind range
7931 N_Generic_Package_Declaration ..
7932 N_Generic_Subprogram_Declaration;
7934 subtype N_Generic_Instantiation is Node_Kind range
7935 N_Function_Instantiation ..
7936 N_Package_Instantiation;
7938 subtype N_Generic_Renaming_Declaration is Node_Kind range
7939 N_Generic_Function_Renaming_Declaration ..
7940 N_Generic_Procedure_Renaming_Declaration;
7942 subtype N_Has_Chars is Node_Kind range
7943 N_Attribute_Definition_Clause ..
7944 N_Op_Plus;
7946 subtype N_Has_Entity is Node_Kind range
7947 N_Expanded_Name ..
7948 N_Attribute_Reference;
7949 -- Nodes that have Entity fields
7950 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7951 -- or N_Attribute_Definition_Clause.
7953 subtype N_Has_Etype is Node_Kind range
7954 N_Error ..
7955 N_Subtype_Indication;
7957 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7958 N_Op_Divide ..
7959 N_Op_Rem;
7961 subtype N_Multiplying_Operator is Node_Kind range
7962 N_Op_Divide ..
7963 N_Op_Rem;
7965 subtype N_Later_Decl_Item is Node_Kind range
7966 N_Task_Type_Declaration ..
7967 N_Generic_Subprogram_Declaration;
7968 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7969 -- only those items which can appear as later declarative items. This also
7970 -- includes N_Implicit_Label_Declaration which is not specifically in the
7971 -- grammar but may appear as a valid later declarative items. It does NOT
7972 -- include N_Pragma which can also appear among later declarative items.
7973 -- It does however include N_Protected_Body, which is a bit peculiar, but
7974 -- harmless since this cannot appear in Ada 83 mode anyway.
7976 subtype N_Membership_Test is Node_Kind range
7977 N_In ..
7978 N_Not_In;
7980 subtype N_Op is Node_Kind range
7981 N_Op_Add ..
7982 N_Op_Plus;
7984 subtype N_Op_Boolean is Node_Kind range
7985 N_Op_And ..
7986 N_Op_Xor;
7987 -- Binary operators which take operands of a boolean type, and yield
7988 -- a result of a boolean type.
7990 subtype N_Op_Compare is Node_Kind range
7991 N_Op_Eq ..
7992 N_Op_Ne;
7994 subtype N_Op_Shift is Node_Kind range
7995 N_Op_Rotate_Left ..
7996 N_Op_Shift_Right_Arithmetic;
7998 subtype N_Proper_Body is Node_Kind range
7999 N_Package_Body ..
8000 N_Task_Body;
8002 subtype N_Push_xxx_Label is Node_Kind range
8003 N_Push_Constraint_Error_Label ..
8004 N_Push_Storage_Error_Label;
8006 subtype N_Pop_xxx_Label is Node_Kind range
8007 N_Pop_Constraint_Error_Label ..
8008 N_Pop_Storage_Error_Label;
8010 subtype N_Push_Pop_xxx_Label is Node_Kind range
8011 N_Push_Constraint_Error_Label ..
8012 N_Pop_Storage_Error_Label;
8014 subtype N_Raise_xxx_Error is Node_Kind range
8015 N_Raise_Constraint_Error ..
8016 N_Raise_Storage_Error;
8018 subtype N_Renaming_Declaration is Node_Kind range
8019 N_Exception_Renaming_Declaration ..
8020 N_Generic_Procedure_Renaming_Declaration;
8022 subtype N_Representation_Clause is Node_Kind range
8023 N_At_Clause ..
8024 N_Attribute_Definition_Clause;
8026 subtype N_Short_Circuit is Node_Kind range
8027 N_And_Then ..
8028 N_Or_Else;
8030 subtype N_SCIL_Node is Node_Kind range
8031 N_SCIL_Dispatch_Table_Tag_Init ..
8032 N_SCIL_Membership_Test;
8034 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
8035 N_Abort_Statement ..
8036 N_If_Statement;
8037 -- Note that this includes all statement types except for the cases of the
8038 -- N_Procedure_Call_Statement which is considered to be a subexpression
8039 -- (since overloading is possible, so it needs to go through the normal
8040 -- overloading resolution for expressions).
8042 subtype N_Subprogram_Call is Node_Kind range
8043 N_Function_Call ..
8044 N_Procedure_Call_Statement;
8046 subtype N_Subprogram_Instantiation is Node_Kind range
8047 N_Function_Instantiation ..
8048 N_Procedure_Instantiation;
8050 subtype N_Has_Condition is Node_Kind range
8051 N_Exit_Statement ..
8052 N_Terminate_Alternative;
8053 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
8055 subtype N_Subexpr is Node_Kind range
8056 N_Expanded_Name ..
8057 N_Unchecked_Type_Conversion;
8058 -- Nodes with expression fields
8060 subtype N_Subprogram_Specification is Node_Kind range
8061 N_Function_Specification ..
8062 N_Procedure_Specification;
8064 subtype N_Unary_Op is Node_Kind range
8065 N_Op_Abs ..
8066 N_Op_Plus;
8068 subtype N_Unit_Body is Node_Kind range
8069 N_Package_Body ..
8070 N_Subprogram_Body;
8072 ---------------------------
8073 -- Node Access Functions --
8074 ---------------------------
8076 -- The following functions return the contents of the indicated field of
8077 -- the node referenced by the argument, which is a Node_Id. They provide
8078 -- logical access to fields in the node which could be accessed using the
8079 -- Atree.Unchecked_Access package, but the idea is always to use these
8080 -- higher level routines which preserve strong typing. In debug mode,
8081 -- these routines check that they are being applied to an appropriate
8082 -- node, as well as checking that the node is in range.
8084 function ABE_Is_Certain
8085 (N : Node_Id) return Boolean; -- Flag18
8087 function Abort_Present
8088 (N : Node_Id) return Boolean; -- Flag15
8090 function Abortable_Part
8091 (N : Node_Id) return Node_Id; -- Node2
8093 function Abstract_Present
8094 (N : Node_Id) return Boolean; -- Flag4
8096 function Accept_Handler_Records
8097 (N : Node_Id) return List_Id; -- List5
8099 function Accept_Statement
8100 (N : Node_Id) return Node_Id; -- Node2
8102 function Access_Definition
8103 (N : Node_Id) return Node_Id; -- Node3
8105 function Access_To_Subprogram_Definition
8106 (N : Node_Id) return Node_Id; -- Node3
8108 function Access_Types_To_Process
8109 (N : Node_Id) return Elist_Id; -- Elist2
8111 function Actions
8112 (N : Node_Id) return List_Id; -- List1
8114 function Activation_Chain_Entity
8115 (N : Node_Id) return Node_Id; -- Node3
8117 function Acts_As_Spec
8118 (N : Node_Id) return Boolean; -- Flag4
8120 function Actual_Designated_Subtype
8121 (N : Node_Id) return Node_Id; -- Node4
8123 function Address_Warning_Posted
8124 (N : Node_Id) return Boolean; -- Flag18
8126 function Aggregate_Bounds
8127 (N : Node_Id) return Node_Id; -- Node3
8129 function Aliased_Present
8130 (N : Node_Id) return Boolean; -- Flag4
8132 function All_Others
8133 (N : Node_Id) return Boolean; -- Flag11
8135 function All_Present
8136 (N : Node_Id) return Boolean; -- Flag15
8138 function Alternatives
8139 (N : Node_Id) return List_Id; -- List4
8141 function Ancestor_Part
8142 (N : Node_Id) return Node_Id; -- Node3
8144 function Atomic_Sync_Required
8145 (N : Node_Id) return Boolean; -- Flag14
8147 function Array_Aggregate
8148 (N : Node_Id) return Node_Id; -- Node3
8150 function Aspect_Rep_Item
8151 (N : Node_Id) return Node_Id; -- Node2
8153 function Assignment_OK
8154 (N : Node_Id) return Boolean; -- Flag15
8156 function Associated_Node
8157 (N : Node_Id) return Node_Id; -- Node4
8159 function At_End_Proc
8160 (N : Node_Id) return Node_Id; -- Node1
8162 function Attribute_Name
8163 (N : Node_Id) return Name_Id; -- Name2
8165 function Aux_Decls_Node
8166 (N : Node_Id) return Node_Id; -- Node5
8168 function Backwards_OK
8169 (N : Node_Id) return Boolean; -- Flag6
8171 function Bad_Is_Detected
8172 (N : Node_Id) return Boolean; -- Flag15
8174 function By_Ref
8175 (N : Node_Id) return Boolean; -- Flag5
8177 function Body_Required
8178 (N : Node_Id) return Boolean; -- Flag13
8180 function Body_To_Inline
8181 (N : Node_Id) return Node_Id; -- Node3
8183 function Box_Present
8184 (N : Node_Id) return Boolean; -- Flag15
8186 function Char_Literal_Value
8187 (N : Node_Id) return Uint; -- Uint2
8189 function Chars
8190 (N : Node_Id) return Name_Id; -- Name1
8192 function Check_Address_Alignment
8193 (N : Node_Id) return Boolean; -- Flag11
8195 function Choice_Parameter
8196 (N : Node_Id) return Node_Id; -- Node2
8198 function Choices
8199 (N : Node_Id) return List_Id; -- List1
8201 function Class_Present
8202 (N : Node_Id) return Boolean; -- Flag6
8204 function Comes_From_Extended_Return_Statement
8205 (N : Node_Id) return Boolean; -- Flag18
8207 function Compile_Time_Known_Aggregate
8208 (N : Node_Id) return Boolean; -- Flag18
8210 function Component_Associations
8211 (N : Node_Id) return List_Id; -- List2
8213 function Component_Clauses
8214 (N : Node_Id) return List_Id; -- List3
8216 function Component_Definition
8217 (N : Node_Id) return Node_Id; -- Node4
8219 function Component_Items
8220 (N : Node_Id) return List_Id; -- List3
8222 function Component_List
8223 (N : Node_Id) return Node_Id; -- Node1
8225 function Component_Name
8226 (N : Node_Id) return Node_Id; -- Node1
8228 function Componentwise_Assignment
8229 (N : Node_Id) return Boolean; -- Flag14
8231 function Condition
8232 (N : Node_Id) return Node_Id; -- Node1
8234 function Condition_Actions
8235 (N : Node_Id) return List_Id; -- List3
8237 function Config_Pragmas
8238 (N : Node_Id) return List_Id; -- List4
8240 function Constant_Present
8241 (N : Node_Id) return Boolean; -- Flag17
8243 function Constraint
8244 (N : Node_Id) return Node_Id; -- Node3
8246 function Constraints
8247 (N : Node_Id) return List_Id; -- List1
8249 function Context_Installed
8250 (N : Node_Id) return Boolean; -- Flag13
8252 function Context_Pending
8253 (N : Node_Id) return Boolean; -- Flag16
8255 function Context_Items
8256 (N : Node_Id) return List_Id; -- List1
8258 function Controlling_Argument
8259 (N : Node_Id) return Node_Id; -- Node1
8261 function Conversion_OK
8262 (N : Node_Id) return Boolean; -- Flag14
8264 function Corresponding_Aspect
8265 (N : Node_Id) return Node_Id; -- Node3
8267 function Corresponding_Body
8268 (N : Node_Id) return Node_Id; -- Node5
8270 function Corresponding_Formal_Spec
8271 (N : Node_Id) return Node_Id; -- Node3
8273 function Corresponding_Generic_Association
8274 (N : Node_Id) return Node_Id; -- Node5
8276 function Corresponding_Integer_Value
8277 (N : Node_Id) return Uint; -- Uint4
8279 function Corresponding_Spec
8280 (N : Node_Id) return Node_Id; -- Node5
8282 function Corresponding_Stub
8283 (N : Node_Id) return Node_Id; -- Node3
8285 function Dcheck_Function
8286 (N : Node_Id) return Entity_Id; -- Node5
8288 function Declarations
8289 (N : Node_Id) return List_Id; -- List2
8291 function Default_Expression
8292 (N : Node_Id) return Node_Id; -- Node5
8294 function Default_Storage_Pool
8295 (N : Node_Id) return Node_Id; -- Node3
8297 function Default_Name
8298 (N : Node_Id) return Node_Id; -- Node2
8300 function Defining_Identifier
8301 (N : Node_Id) return Entity_Id; -- Node1
8303 function Defining_Unit_Name
8304 (N : Node_Id) return Node_Id; -- Node1
8306 function Delay_Alternative
8307 (N : Node_Id) return Node_Id; -- Node4
8309 function Delay_Statement
8310 (N : Node_Id) return Node_Id; -- Node2
8312 function Delta_Expression
8313 (N : Node_Id) return Node_Id; -- Node3
8315 function Digits_Expression
8316 (N : Node_Id) return Node_Id; -- Node2
8318 function Discr_Check_Funcs_Built
8319 (N : Node_Id) return Boolean; -- Flag11
8321 function Discrete_Choices
8322 (N : Node_Id) return List_Id; -- List4
8324 function Discrete_Range
8325 (N : Node_Id) return Node_Id; -- Node4
8327 function Discrete_Subtype_Definition
8328 (N : Node_Id) return Node_Id; -- Node4
8330 function Discrete_Subtype_Definitions
8331 (N : Node_Id) return List_Id; -- List2
8333 function Discriminant_Specifications
8334 (N : Node_Id) return List_Id; -- List4
8336 function Discriminant_Type
8337 (N : Node_Id) return Node_Id; -- Node5
8339 function Do_Accessibility_Check
8340 (N : Node_Id) return Boolean; -- Flag13
8342 function Do_Discriminant_Check
8343 (N : Node_Id) return Boolean; -- Flag13
8345 function Do_Division_Check
8346 (N : Node_Id) return Boolean; -- Flag13
8348 function Do_Length_Check
8349 (N : Node_Id) return Boolean; -- Flag4
8351 function Do_Overflow_Check
8352 (N : Node_Id) return Boolean; -- Flag17
8354 function Do_Range_Check
8355 (N : Node_Id) return Boolean; -- Flag9
8357 function Do_Storage_Check
8358 (N : Node_Id) return Boolean; -- Flag17
8360 function Do_Tag_Check
8361 (N : Node_Id) return Boolean; -- Flag13
8363 function Elaborate_All_Desirable
8364 (N : Node_Id) return Boolean; -- Flag9
8366 function Elaborate_All_Present
8367 (N : Node_Id) return Boolean; -- Flag14
8369 function Elaborate_Desirable
8370 (N : Node_Id) return Boolean; -- Flag11
8372 function Elaborate_Present
8373 (N : Node_Id) return Boolean; -- Flag4
8375 function Elaboration_Boolean
8376 (N : Node_Id) return Node_Id; -- Node2
8378 function Else_Actions
8379 (N : Node_Id) return List_Id; -- List3
8381 function Else_Statements
8382 (N : Node_Id) return List_Id; -- List4
8384 function Elsif_Parts
8385 (N : Node_Id) return List_Id; -- List3
8387 function Enclosing_Variant
8388 (N : Node_Id) return Node_Id; -- Node2
8390 function End_Label
8391 (N : Node_Id) return Node_Id; -- Node4
8393 function End_Span
8394 (N : Node_Id) return Uint; -- Uint5
8396 function Entity
8397 (N : Node_Id) return Node_Id; -- Node4
8399 function Entity_Or_Associated_Node
8400 (N : Node_Id) return Node_Id; -- Node4
8402 function Entry_Body_Formal_Part
8403 (N : Node_Id) return Node_Id; -- Node5
8405 function Entry_Call_Alternative
8406 (N : Node_Id) return Node_Id; -- Node1
8408 function Entry_Call_Statement
8409 (N : Node_Id) return Node_Id; -- Node1
8411 function Entry_Direct_Name
8412 (N : Node_Id) return Node_Id; -- Node1
8414 function Entry_Index
8415 (N : Node_Id) return Node_Id; -- Node5
8417 function Entry_Index_Specification
8418 (N : Node_Id) return Node_Id; -- Node4
8420 function Etype
8421 (N : Node_Id) return Node_Id; -- Node5
8423 function Exception_Choices
8424 (N : Node_Id) return List_Id; -- List4
8426 function Exception_Handlers
8427 (N : Node_Id) return List_Id; -- List5
8429 function Exception_Junk
8430 (N : Node_Id) return Boolean; -- Flag8
8432 function Exception_Label
8433 (N : Node_Id) return Node_Id; -- Node5
8435 function Explicit_Actual_Parameter
8436 (N : Node_Id) return Node_Id; -- Node3
8438 function Expansion_Delayed
8439 (N : Node_Id) return Boolean; -- Flag11
8441 function Explicit_Generic_Actual_Parameter
8442 (N : Node_Id) return Node_Id; -- Node1
8444 function Expression
8445 (N : Node_Id) return Node_Id; -- Node3
8447 function Expressions
8448 (N : Node_Id) return List_Id; -- List1
8450 function First_Bit
8451 (N : Node_Id) return Node_Id; -- Node3
8453 function First_Inlined_Subprogram
8454 (N : Node_Id) return Entity_Id; -- Node3
8456 function First_Name
8457 (N : Node_Id) return Boolean; -- Flag5
8459 function First_Named_Actual
8460 (N : Node_Id) return Node_Id; -- Node4
8462 function First_Real_Statement
8463 (N : Node_Id) return Node_Id; -- Node2
8465 function First_Subtype_Link
8466 (N : Node_Id) return Entity_Id; -- Node5
8468 function Float_Truncate
8469 (N : Node_Id) return Boolean; -- Flag11
8471 function Formal_Type_Definition
8472 (N : Node_Id) return Node_Id; -- Node3
8474 function Forwards_OK
8475 (N : Node_Id) return Boolean; -- Flag5
8477 function From_Aspect_Specification
8478 (N : Node_Id) return Boolean; -- Flag13
8480 function From_At_End
8481 (N : Node_Id) return Boolean; -- Flag4
8483 function From_At_Mod
8484 (N : Node_Id) return Boolean; -- Flag4
8486 function From_Default
8487 (N : Node_Id) return Boolean; -- Flag6
8489 function Generic_Associations
8490 (N : Node_Id) return List_Id; -- List3
8492 function Generic_Formal_Declarations
8493 (N : Node_Id) return List_Id; -- List2
8495 function Generic_Parent
8496 (N : Node_Id) return Node_Id; -- Node5
8498 function Generic_Parent_Type
8499 (N : Node_Id) return Node_Id; -- Node4
8501 function Handled_Statement_Sequence
8502 (N : Node_Id) return Node_Id; -- Node4
8504 function Handler_List_Entry
8505 (N : Node_Id) return Node_Id; -- Node2
8507 function Has_Created_Identifier
8508 (N : Node_Id) return Boolean; -- Flag15
8510 function Has_Dereference_Action
8511 (N : Node_Id) return Boolean; -- Flag13
8513 function Has_Dynamic_Length_Check
8514 (N : Node_Id) return Boolean; -- Flag10
8516 function Has_Dynamic_Range_Check
8517 (N : Node_Id) return Boolean; -- Flag12
8519 function Has_Init_Expression
8520 (N : Node_Id) return Boolean; -- Flag14
8522 function Has_Local_Raise
8523 (N : Node_Id) return Boolean; -- Flag8
8525 function Has_No_Elaboration_Code
8526 (N : Node_Id) return Boolean; -- Flag17
8528 function Has_Pragma_Suppress_All
8529 (N : Node_Id) return Boolean; -- Flag14
8531 function Has_Private_View
8532 (N : Node_Id) return Boolean; -- Flag11
8534 function Has_Relative_Deadline_Pragma
8535 (N : Node_Id) return Boolean; -- Flag9
8537 function Has_Self_Reference
8538 (N : Node_Id) return Boolean; -- Flag13
8540 function Has_Storage_Size_Pragma
8541 (N : Node_Id) return Boolean; -- Flag5
8543 function Has_Wide_Character
8544 (N : Node_Id) return Boolean; -- Flag11
8546 function Has_Wide_Wide_Character
8547 (N : Node_Id) return Boolean; -- Flag13
8549 function Header_Size_Added
8550 (N : Node_Id) return Boolean; -- Flag11
8552 function Hidden_By_Use_Clause
8553 (N : Node_Id) return Elist_Id; -- Elist4
8555 function High_Bound
8556 (N : Node_Id) return Node_Id; -- Node2
8558 function Identifier
8559 (N : Node_Id) return Node_Id; -- Node1
8561 function Interface_List
8562 (N : Node_Id) return List_Id; -- List2
8564 function Interface_Present
8565 (N : Node_Id) return Boolean; -- Flag16
8567 function Implicit_With
8568 (N : Node_Id) return Boolean; -- Flag16
8570 function Implicit_With_From_Instantiation
8571 (N : Node_Id) return Boolean; -- Flag12
8573 function Import_Interface_Present
8574 (N : Node_Id) return Boolean; -- Flag16
8576 function In_Present
8577 (N : Node_Id) return Boolean; -- Flag15
8579 function Includes_Infinities
8580 (N : Node_Id) return Boolean; -- Flag11
8582 function Inherited_Discriminant
8583 (N : Node_Id) return Boolean; -- Flag13
8585 function Instance_Spec
8586 (N : Node_Id) return Node_Id; -- Node5
8588 function Intval
8589 (N : Node_Id) return Uint; -- Uint3
8591 function Is_Accessibility_Actual
8592 (N : Node_Id) return Boolean; -- Flag13
8594 function Is_Asynchronous_Call_Block
8595 (N : Node_Id) return Boolean; -- Flag7
8597 function Is_Boolean_Aspect
8598 (N : Node_Id) return Boolean; -- Flag16
8600 function Is_Component_Left_Opnd
8601 (N : Node_Id) return Boolean; -- Flag13
8603 function Is_Component_Right_Opnd
8604 (N : Node_Id) return Boolean; -- Flag14
8606 function Is_Controlling_Actual
8607 (N : Node_Id) return Boolean; -- Flag16
8609 function Is_Delayed_Aspect
8610 (N : Node_Id) return Boolean; -- Flag14
8612 function Is_Dynamic_Coextension
8613 (N : Node_Id) return Boolean; -- Flag18
8615 function Is_Elsif
8616 (N : Node_Id) return Boolean; -- Flag13
8618 function Is_Entry_Barrier_Function
8619 (N : Node_Id) return Boolean; -- Flag8
8621 function Is_Expanded_Build_In_Place_Call
8622 (N : Node_Id) return Boolean; -- Flag11
8624 function Is_Finalization_Wrapper
8625 (N : Node_Id) return Boolean; -- Flag9
8627 function Is_Folded_In_Parser
8628 (N : Node_Id) return Boolean; -- Flag4
8630 function Is_In_Discriminant_Check
8631 (N : Node_Id) return Boolean; -- Flag11
8633 function Is_Machine_Number
8634 (N : Node_Id) return Boolean; -- Flag11
8636 function Is_Null_Loop
8637 (N : Node_Id) return Boolean; -- Flag16
8639 function Is_Overloaded
8640 (N : Node_Id) return Boolean; -- Flag5
8642 function Is_Power_Of_2_For_Shift
8643 (N : Node_Id) return Boolean; -- Flag13
8645 function Is_Prefixed_Call
8646 (N : Node_Id) return Boolean; -- Flag17
8648 function Is_Protected_Subprogram_Body
8649 (N : Node_Id) return Boolean; -- Flag7
8651 function Is_Static_Coextension
8652 (N : Node_Id) return Boolean; -- Flag14
8654 function Is_Static_Expression
8655 (N : Node_Id) return Boolean; -- Flag6
8657 function Is_Subprogram_Descriptor
8658 (N : Node_Id) return Boolean; -- Flag16
8660 function Is_Task_Allocation_Block
8661 (N : Node_Id) return Boolean; -- Flag6
8663 function Is_Task_Master
8664 (N : Node_Id) return Boolean; -- Flag5
8666 function Iteration_Scheme
8667 (N : Node_Id) return Node_Id; -- Node2
8669 function Iterator_Specification
8670 (N : Node_Id) return Node_Id; -- Node2
8672 function Itype
8673 (N : Node_Id) return Entity_Id; -- Node1
8675 function Kill_Range_Check
8676 (N : Node_Id) return Boolean; -- Flag11
8678 function Label_Construct
8679 (N : Node_Id) return Node_Id; -- Node2
8681 function Left_Opnd
8682 (N : Node_Id) return Node_Id; -- Node2
8684 function Last_Bit
8685 (N : Node_Id) return Node_Id; -- Node4
8687 function Last_Name
8688 (N : Node_Id) return Boolean; -- Flag6
8690 function Library_Unit
8691 (N : Node_Id) return Node_Id; -- Node4
8693 function Limited_View_Installed
8694 (N : Node_Id) return Boolean; -- Flag18
8696 function Limited_Present
8697 (N : Node_Id) return Boolean; -- Flag17
8699 function Literals
8700 (N : Node_Id) return List_Id; -- List1
8702 function Local_Raise_Not_OK
8703 (N : Node_Id) return Boolean; -- Flag7
8705 function Local_Raise_Statements
8706 (N : Node_Id) return Elist_Id; -- Elist1
8708 function Loop_Actions
8709 (N : Node_Id) return List_Id; -- List2
8711 function Loop_Parameter_Specification
8712 (N : Node_Id) return Node_Id; -- Node4
8714 function Low_Bound
8715 (N : Node_Id) return Node_Id; -- Node1
8717 function Mod_Clause
8718 (N : Node_Id) return Node_Id; -- Node2
8720 function More_Ids
8721 (N : Node_Id) return Boolean; -- Flag5
8723 function Must_Be_Byte_Aligned
8724 (N : Node_Id) return Boolean; -- Flag14
8726 function Must_Not_Freeze
8727 (N : Node_Id) return Boolean; -- Flag8
8729 function Must_Not_Override
8730 (N : Node_Id) return Boolean; -- Flag15
8732 function Must_Override
8733 (N : Node_Id) return Boolean; -- Flag14
8735 function Name
8736 (N : Node_Id) return Node_Id; -- Node2
8738 function Names
8739 (N : Node_Id) return List_Id; -- List2
8741 function Next_Entity
8742 (N : Node_Id) return Node_Id; -- Node2
8744 function Next_Exit_Statement
8745 (N : Node_Id) return Node_Id; -- Node3
8747 function Next_Implicit_With
8748 (N : Node_Id) return Node_Id; -- Node3
8750 function Next_Named_Actual
8751 (N : Node_Id) return Node_Id; -- Node4
8753 function Next_Pragma
8754 (N : Node_Id) return Node_Id; -- Node1
8756 function Next_Rep_Item
8757 (N : Node_Id) return Node_Id; -- Node5
8759 function Next_Use_Clause
8760 (N : Node_Id) return Node_Id; -- Node3
8762 function No_Ctrl_Actions
8763 (N : Node_Id) return Boolean; -- Flag7
8765 function No_Elaboration_Check
8766 (N : Node_Id) return Boolean; -- Flag14
8768 function No_Entities_Ref_In_Spec
8769 (N : Node_Id) return Boolean; -- Flag8
8771 function No_Initialization
8772 (N : Node_Id) return Boolean; -- Flag13
8774 function No_Truncation
8775 (N : Node_Id) return Boolean; -- Flag17
8777 function Null_Present
8778 (N : Node_Id) return Boolean; -- Flag13
8780 function Null_Exclusion_Present
8781 (N : Node_Id) return Boolean; -- Flag11
8783 function Null_Exclusion_In_Return_Present
8784 (N : Node_Id) return Boolean; -- Flag14
8786 function Null_Record_Present
8787 (N : Node_Id) return Boolean; -- Flag17
8789 function Object_Definition
8790 (N : Node_Id) return Node_Id; -- Node4
8792 function Of_Present
8793 (N : Node_Id) return Boolean; -- Flag16
8795 function Original_Discriminant
8796 (N : Node_Id) return Node_Id; -- Node2
8798 function Original_Entity
8799 (N : Node_Id) return Entity_Id; -- Node2
8801 function Others_Discrete_Choices
8802 (N : Node_Id) return List_Id; -- List1
8804 function Out_Present
8805 (N : Node_Id) return Boolean; -- Flag17
8807 function Parameter_Associations
8808 (N : Node_Id) return List_Id; -- List3
8810 function Parameter_List_Truncated
8811 (N : Node_Id) return Boolean; -- Flag17
8813 function Parameter_Specifications
8814 (N : Node_Id) return List_Id; -- List3
8816 function Parameter_Type
8817 (N : Node_Id) return Node_Id; -- Node2
8819 function Parent_Spec
8820 (N : Node_Id) return Node_Id; -- Node4
8822 function Position
8823 (N : Node_Id) return Node_Id; -- Node2
8825 function Pragma_Argument_Associations
8826 (N : Node_Id) return List_Id; -- List2
8828 function Pragma_Identifier
8829 (N : Node_Id) return Node_Id; -- Node4
8831 function Pragmas_After
8832 (N : Node_Id) return List_Id; -- List5
8834 function Pragmas_Before
8835 (N : Node_Id) return List_Id; -- List4
8837 function Prefix
8838 (N : Node_Id) return Node_Id; -- Node3
8840 function Premature_Use
8841 (N : Node_Id) return Node_Id; -- Node5
8843 function Present_Expr
8844 (N : Node_Id) return Uint; -- Uint3
8846 function Prev_Ids
8847 (N : Node_Id) return Boolean; -- Flag6
8849 function Print_In_Hex
8850 (N : Node_Id) return Boolean; -- Flag13
8852 function Private_Declarations
8853 (N : Node_Id) return List_Id; -- List3
8855 function Private_Present
8856 (N : Node_Id) return Boolean; -- Flag15
8858 function Procedure_To_Call
8859 (N : Node_Id) return Node_Id; -- Node2
8861 function Proper_Body
8862 (N : Node_Id) return Node_Id; -- Node1
8864 function Protected_Definition
8865 (N : Node_Id) return Node_Id; -- Node3
8867 function Protected_Present
8868 (N : Node_Id) return Boolean; -- Flag6
8870 function Raises_Constraint_Error
8871 (N : Node_Id) return Boolean; -- Flag7
8873 function Range_Constraint
8874 (N : Node_Id) return Node_Id; -- Node4
8876 function Range_Expression
8877 (N : Node_Id) return Node_Id; -- Node4
8879 function Real_Range_Specification
8880 (N : Node_Id) return Node_Id; -- Node4
8882 function Realval
8883 (N : Node_Id) return Ureal; -- Ureal3
8885 function Reason
8886 (N : Node_Id) return Uint; -- Uint3
8888 function Record_Extension_Part
8889 (N : Node_Id) return Node_Id; -- Node3
8891 function Redundant_Use
8892 (N : Node_Id) return Boolean; -- Flag13
8894 function Renaming_Exception
8895 (N : Node_Id) return Node_Id; -- Node2
8897 function Result_Definition
8898 (N : Node_Id) return Node_Id; -- Node4
8900 function Return_Object_Declarations
8901 (N : Node_Id) return List_Id; -- List3
8903 function Return_Statement_Entity
8904 (N : Node_Id) return Node_Id; -- Node5
8906 function Reverse_Present
8907 (N : Node_Id) return Boolean; -- Flag15
8909 function Right_Opnd
8910 (N : Node_Id) return Node_Id; -- Node3
8912 function Rounded_Result
8913 (N : Node_Id) return Boolean; -- Flag18
8915 function SCIL_Controlling_Tag
8916 (N : Node_Id) return Node_Id; -- Node5
8918 function SCIL_Entity
8919 (N : Node_Id) return Node_Id; -- Node4
8921 function SCIL_Tag_Value
8922 (N : Node_Id) return Node_Id; -- Node5
8924 function SCIL_Target_Prim
8925 (N : Node_Id) return Node_Id; -- Node2
8927 function Scope
8928 (N : Node_Id) return Node_Id; -- Node3
8930 function Select_Alternatives
8931 (N : Node_Id) return List_Id; -- List1
8933 function Selector_Name
8934 (N : Node_Id) return Node_Id; -- Node2
8936 function Selector_Names
8937 (N : Node_Id) return List_Id; -- List1
8939 function Shift_Count_OK
8940 (N : Node_Id) return Boolean; -- Flag4
8942 function Source_Type
8943 (N : Node_Id) return Entity_Id; -- Node1
8945 function Spec_PPC_List
8946 (N : Node_Id) return Node_Id; -- Node1
8948 function Spec_CTC_List
8949 (N : Node_Id) return Node_Id; -- Node2
8951 function Specification
8952 (N : Node_Id) return Node_Id; -- Node1
8954 function Split_PPC
8955 (N : Node_Id) return Boolean; -- Flag17
8957 function Statements
8958 (N : Node_Id) return List_Id; -- List3
8960 function Storage_Pool
8961 (N : Node_Id) return Node_Id; -- Node1
8963 function Subpool_Handle_Name
8964 (N : Node_Id) return Node_Id; -- Node4
8966 function Strval
8967 (N : Node_Id) return String_Id; -- Str3
8969 function Subtype_Indication
8970 (N : Node_Id) return Node_Id; -- Node5
8972 function Subtype_Mark
8973 (N : Node_Id) return Node_Id; -- Node4
8975 function Subtype_Marks
8976 (N : Node_Id) return List_Id; -- List2
8978 function Suppress_Assignment_Checks
8979 (N : Node_Id) return Boolean; -- Flag18
8981 function Suppress_Loop_Warnings
8982 (N : Node_Id) return Boolean; -- Flag17
8984 function Synchronized_Present
8985 (N : Node_Id) return Boolean; -- Flag7
8987 function Tagged_Present
8988 (N : Node_Id) return Boolean; -- Flag15
8990 function Target_Type
8991 (N : Node_Id) return Entity_Id; -- Node2
8993 function Task_Definition
8994 (N : Node_Id) return Node_Id; -- Node3
8996 function Task_Present
8997 (N : Node_Id) return Boolean; -- Flag5
8999 function Then_Actions
9000 (N : Node_Id) return List_Id; -- List2
9002 function Then_Statements
9003 (N : Node_Id) return List_Id; -- List2
9005 function Treat_Fixed_As_Integer
9006 (N : Node_Id) return Boolean; -- Flag14
9008 function Triggering_Alternative
9009 (N : Node_Id) return Node_Id; -- Node1
9011 function Triggering_Statement
9012 (N : Node_Id) return Node_Id; -- Node1
9014 function TSS_Elist
9015 (N : Node_Id) return Elist_Id; -- Elist3
9017 function Type_Definition
9018 (N : Node_Id) return Node_Id; -- Node3
9020 function Unit
9021 (N : Node_Id) return Node_Id; -- Node2
9023 function Unknown_Discriminants_Present
9024 (N : Node_Id) return Boolean; -- Flag13
9026 function Unreferenced_In_Spec
9027 (N : Node_Id) return Boolean; -- Flag7
9029 function Variant_Part
9030 (N : Node_Id) return Node_Id; -- Node4
9032 function Variants
9033 (N : Node_Id) return List_Id; -- List1
9035 function Visible_Declarations
9036 (N : Node_Id) return List_Id; -- List2
9038 function Used_Operations
9039 (N : Node_Id) return Elist_Id; -- Elist5
9041 function Was_Originally_Stub
9042 (N : Node_Id) return Boolean; -- Flag13
9044 function Withed_Body
9045 (N : Node_Id) return Node_Id; -- Node1
9047 -- End functions (note used by xsinfo utility program to end processing)
9049 ----------------------------
9050 -- Node Update Procedures --
9051 ----------------------------
9053 -- These are the corresponding node update routines, which again provide
9054 -- a high level logical access with type checking. In addition to setting
9055 -- the indicated field of the node N to the given Val, in the case of
9056 -- tree pointers (List1-4), the parent pointer of the Val node is set to
9057 -- point back to node N. This automates the setting of the parent pointer.
9059 procedure Set_ABE_Is_Certain
9060 (N : Node_Id; Val : Boolean := True); -- Flag18
9062 procedure Set_Abort_Present
9063 (N : Node_Id; Val : Boolean := True); -- Flag15
9065 procedure Set_Abortable_Part
9066 (N : Node_Id; Val : Node_Id); -- Node2
9068 procedure Set_Abstract_Present
9069 (N : Node_Id; Val : Boolean := True); -- Flag4
9071 procedure Set_Accept_Handler_Records
9072 (N : Node_Id; Val : List_Id); -- List5
9074 procedure Set_Accept_Statement
9075 (N : Node_Id; Val : Node_Id); -- Node2
9077 procedure Set_Access_Definition
9078 (N : Node_Id; Val : Node_Id); -- Node3
9080 procedure Set_Access_To_Subprogram_Definition
9081 (N : Node_Id; Val : Node_Id); -- Node3
9083 procedure Set_Access_Types_To_Process
9084 (N : Node_Id; Val : Elist_Id); -- Elist2
9086 procedure Set_Actions
9087 (N : Node_Id; Val : List_Id); -- List1
9089 procedure Set_Activation_Chain_Entity
9090 (N : Node_Id; Val : Node_Id); -- Node3
9092 procedure Set_Acts_As_Spec
9093 (N : Node_Id; Val : Boolean := True); -- Flag4
9095 procedure Set_Actual_Designated_Subtype
9096 (N : Node_Id; Val : Node_Id); -- Node4
9098 procedure Set_Address_Warning_Posted
9099 (N : Node_Id; Val : Boolean := True); -- Flag18
9101 procedure Set_Aggregate_Bounds
9102 (N : Node_Id; Val : Node_Id); -- Node3
9104 procedure Set_Aliased_Present
9105 (N : Node_Id; Val : Boolean := True); -- Flag4
9107 procedure Set_All_Others
9108 (N : Node_Id; Val : Boolean := True); -- Flag11
9110 procedure Set_All_Present
9111 (N : Node_Id; Val : Boolean := True); -- Flag15
9113 procedure Set_Alternatives
9114 (N : Node_Id; Val : List_Id); -- List4
9116 procedure Set_Ancestor_Part
9117 (N : Node_Id; Val : Node_Id); -- Node3
9119 procedure Set_Atomic_Sync_Required
9120 (N : Node_Id; Val : Boolean := True); -- Flag14
9122 procedure Set_Array_Aggregate
9123 (N : Node_Id; Val : Node_Id); -- Node3
9125 procedure Set_Aspect_Rep_Item
9126 (N : Node_Id; Val : Node_Id); -- Node2
9128 procedure Set_Assignment_OK
9129 (N : Node_Id; Val : Boolean := True); -- Flag15
9131 procedure Set_Associated_Node
9132 (N : Node_Id; Val : Node_Id); -- Node4
9134 procedure Set_Attribute_Name
9135 (N : Node_Id; Val : Name_Id); -- Name2
9137 procedure Set_At_End_Proc
9138 (N : Node_Id; Val : Node_Id); -- Node1
9140 procedure Set_Aux_Decls_Node
9141 (N : Node_Id; Val : Node_Id); -- Node5
9143 procedure Set_Backwards_OK
9144 (N : Node_Id; Val : Boolean := True); -- Flag6
9146 procedure Set_Bad_Is_Detected
9147 (N : Node_Id; Val : Boolean := True); -- Flag15
9149 procedure Set_Body_Required
9150 (N : Node_Id; Val : Boolean := True); -- Flag13
9152 procedure Set_Body_To_Inline
9153 (N : Node_Id; Val : Node_Id); -- Node3
9155 procedure Set_Box_Present
9156 (N : Node_Id; Val : Boolean := True); -- Flag15
9158 procedure Set_By_Ref
9159 (N : Node_Id; Val : Boolean := True); -- Flag5
9161 procedure Set_Char_Literal_Value
9162 (N : Node_Id; Val : Uint); -- Uint2
9164 procedure Set_Chars
9165 (N : Node_Id; Val : Name_Id); -- Name1
9167 procedure Set_Check_Address_Alignment
9168 (N : Node_Id; Val : Boolean := True); -- Flag11
9170 procedure Set_Choice_Parameter
9171 (N : Node_Id; Val : Node_Id); -- Node2
9173 procedure Set_Choices
9174 (N : Node_Id; Val : List_Id); -- List1
9176 procedure Set_Class_Present
9177 (N : Node_Id; Val : Boolean := True); -- Flag6
9179 procedure Set_Comes_From_Extended_Return_Statement
9180 (N : Node_Id; Val : Boolean := True); -- Flag18
9182 procedure Set_Compile_Time_Known_Aggregate
9183 (N : Node_Id; Val : Boolean := True); -- Flag18
9185 procedure Set_Component_Associations
9186 (N : Node_Id; Val : List_Id); -- List2
9188 procedure Set_Component_Clauses
9189 (N : Node_Id; Val : List_Id); -- List3
9191 procedure Set_Component_Definition
9192 (N : Node_Id; Val : Node_Id); -- Node4
9194 procedure Set_Component_Items
9195 (N : Node_Id; Val : List_Id); -- List3
9197 procedure Set_Component_List
9198 (N : Node_Id; Val : Node_Id); -- Node1
9200 procedure Set_Component_Name
9201 (N : Node_Id; Val : Node_Id); -- Node1
9203 procedure Set_Componentwise_Assignment
9204 (N : Node_Id; Val : Boolean := True); -- Flag14
9206 procedure Set_Condition
9207 (N : Node_Id; Val : Node_Id); -- Node1
9209 procedure Set_Condition_Actions
9210 (N : Node_Id; Val : List_Id); -- List3
9212 procedure Set_Config_Pragmas
9213 (N : Node_Id; Val : List_Id); -- List4
9215 procedure Set_Constant_Present
9216 (N : Node_Id; Val : Boolean := True); -- Flag17
9218 procedure Set_Constraint
9219 (N : Node_Id; Val : Node_Id); -- Node3
9221 procedure Set_Constraints
9222 (N : Node_Id; Val : List_Id); -- List1
9224 procedure Set_Context_Installed
9225 (N : Node_Id; Val : Boolean := True); -- Flag13
9227 procedure Set_Context_Items
9228 (N : Node_Id; Val : List_Id); -- List1
9230 procedure Set_Context_Pending
9231 (N : Node_Id; Val : Boolean := True); -- Flag16
9233 procedure Set_Controlling_Argument
9234 (N : Node_Id; Val : Node_Id); -- Node1
9236 procedure Set_Conversion_OK
9237 (N : Node_Id; Val : Boolean := True); -- Flag14
9239 procedure Set_Corresponding_Aspect
9240 (N : Node_Id; Val : Node_Id); -- Node3
9242 procedure Set_Corresponding_Body
9243 (N : Node_Id; Val : Node_Id); -- Node5
9245 procedure Set_Corresponding_Formal_Spec
9246 (N : Node_Id; Val : Node_Id); -- Node3
9248 procedure Set_Corresponding_Generic_Association
9249 (N : Node_Id; Val : Node_Id); -- Node5
9251 procedure Set_Corresponding_Integer_Value
9252 (N : Node_Id; Val : Uint); -- Uint4
9254 procedure Set_Corresponding_Spec
9255 (N : Node_Id; Val : Node_Id); -- Node5
9257 procedure Set_Corresponding_Stub
9258 (N : Node_Id; Val : Node_Id); -- Node3
9260 procedure Set_Dcheck_Function
9261 (N : Node_Id; Val : Entity_Id); -- Node5
9263 procedure Set_Declarations
9264 (N : Node_Id; Val : List_Id); -- List2
9266 procedure Set_Default_Expression
9267 (N : Node_Id; Val : Node_Id); -- Node5
9269 procedure Set_Default_Storage_Pool
9270 (N : Node_Id; Val : Node_Id); -- Node3
9272 procedure Set_Default_Name
9273 (N : Node_Id; Val : Node_Id); -- Node2
9275 procedure Set_Defining_Identifier
9276 (N : Node_Id; Val : Entity_Id); -- Node1
9278 procedure Set_Defining_Unit_Name
9279 (N : Node_Id; Val : Node_Id); -- Node1
9281 procedure Set_Delay_Alternative
9282 (N : Node_Id; Val : Node_Id); -- Node4
9284 procedure Set_Delay_Statement
9285 (N : Node_Id; Val : Node_Id); -- Node2
9287 procedure Set_Delta_Expression
9288 (N : Node_Id; Val : Node_Id); -- Node3
9290 procedure Set_Digits_Expression
9291 (N : Node_Id; Val : Node_Id); -- Node2
9293 procedure Set_Discr_Check_Funcs_Built
9294 (N : Node_Id; Val : Boolean := True); -- Flag11
9296 procedure Set_Discrete_Choices
9297 (N : Node_Id; Val : List_Id); -- List4
9299 procedure Set_Discrete_Range
9300 (N : Node_Id; Val : Node_Id); -- Node4
9302 procedure Set_Discrete_Subtype_Definition
9303 (N : Node_Id; Val : Node_Id); -- Node4
9305 procedure Set_Discrete_Subtype_Definitions
9306 (N : Node_Id; Val : List_Id); -- List2
9308 procedure Set_Discriminant_Specifications
9309 (N : Node_Id; Val : List_Id); -- List4
9311 procedure Set_Discriminant_Type
9312 (N : Node_Id; Val : Node_Id); -- Node5
9314 procedure Set_Do_Accessibility_Check
9315 (N : Node_Id; Val : Boolean := True); -- Flag13
9317 procedure Set_Do_Discriminant_Check
9318 (N : Node_Id; Val : Boolean := True); -- Flag13
9320 procedure Set_Do_Division_Check
9321 (N : Node_Id; Val : Boolean := True); -- Flag13
9323 procedure Set_Do_Length_Check
9324 (N : Node_Id; Val : Boolean := True); -- Flag4
9326 procedure Set_Do_Overflow_Check
9327 (N : Node_Id; Val : Boolean := True); -- Flag17
9329 procedure Set_Do_Range_Check
9330 (N : Node_Id; Val : Boolean := True); -- Flag9
9332 procedure Set_Do_Storage_Check
9333 (N : Node_Id; Val : Boolean := True); -- Flag17
9335 procedure Set_Do_Tag_Check
9336 (N : Node_Id; Val : Boolean := True); -- Flag13
9338 procedure Set_Elaborate_All_Desirable
9339 (N : Node_Id; Val : Boolean := True); -- Flag9
9341 procedure Set_Elaborate_All_Present
9342 (N : Node_Id; Val : Boolean := True); -- Flag14
9344 procedure Set_Elaborate_Desirable
9345 (N : Node_Id; Val : Boolean := True); -- Flag11
9347 procedure Set_Elaborate_Present
9348 (N : Node_Id; Val : Boolean := True); -- Flag4
9350 procedure Set_Elaboration_Boolean
9351 (N : Node_Id; Val : Node_Id); -- Node2
9353 procedure Set_Else_Actions
9354 (N : Node_Id; Val : List_Id); -- List3
9356 procedure Set_Else_Statements
9357 (N : Node_Id; Val : List_Id); -- List4
9359 procedure Set_Elsif_Parts
9360 (N : Node_Id; Val : List_Id); -- List3
9362 procedure Set_Enclosing_Variant
9363 (N : Node_Id; Val : Node_Id); -- Node2
9365 procedure Set_End_Label
9366 (N : Node_Id; Val : Node_Id); -- Node4
9368 procedure Set_End_Span
9369 (N : Node_Id; Val : Uint); -- Uint5
9371 procedure Set_Entity
9372 (N : Node_Id; Val : Node_Id); -- Node4
9374 procedure Set_Entry_Body_Formal_Part
9375 (N : Node_Id; Val : Node_Id); -- Node5
9377 procedure Set_Entry_Call_Alternative
9378 (N : Node_Id; Val : Node_Id); -- Node1
9380 procedure Set_Entry_Call_Statement
9381 (N : Node_Id; Val : Node_Id); -- Node1
9383 procedure Set_Entry_Direct_Name
9384 (N : Node_Id; Val : Node_Id); -- Node1
9386 procedure Set_Entry_Index
9387 (N : Node_Id; Val : Node_Id); -- Node5
9389 procedure Set_Entry_Index_Specification
9390 (N : Node_Id; Val : Node_Id); -- Node4
9392 procedure Set_Etype
9393 (N : Node_Id; Val : Node_Id); -- Node5
9395 procedure Set_Exception_Choices
9396 (N : Node_Id; Val : List_Id); -- List4
9398 procedure Set_Exception_Handlers
9399 (N : Node_Id; Val : List_Id); -- List5
9401 procedure Set_Exception_Junk
9402 (N : Node_Id; Val : Boolean := True); -- Flag8
9404 procedure Set_Exception_Label
9405 (N : Node_Id; Val : Node_Id); -- Node5
9407 procedure Set_Expansion_Delayed
9408 (N : Node_Id; Val : Boolean := True); -- Flag11
9410 procedure Set_Explicit_Actual_Parameter
9411 (N : Node_Id; Val : Node_Id); -- Node3
9413 procedure Set_Explicit_Generic_Actual_Parameter
9414 (N : Node_Id; Val : Node_Id); -- Node1
9416 procedure Set_Expression
9417 (N : Node_Id; Val : Node_Id); -- Node3
9419 procedure Set_Expressions
9420 (N : Node_Id; Val : List_Id); -- List1
9422 procedure Set_First_Bit
9423 (N : Node_Id; Val : Node_Id); -- Node3
9425 procedure Set_First_Inlined_Subprogram
9426 (N : Node_Id; Val : Entity_Id); -- Node3
9428 procedure Set_First_Name
9429 (N : Node_Id; Val : Boolean := True); -- Flag5
9431 procedure Set_First_Named_Actual
9432 (N : Node_Id; Val : Node_Id); -- Node4
9434 procedure Set_First_Real_Statement
9435 (N : Node_Id; Val : Node_Id); -- Node2
9437 procedure Set_First_Subtype_Link
9438 (N : Node_Id; Val : Entity_Id); -- Node5
9440 procedure Set_Float_Truncate
9441 (N : Node_Id; Val : Boolean := True); -- Flag11
9443 procedure Set_Formal_Type_Definition
9444 (N : Node_Id; Val : Node_Id); -- Node3
9446 procedure Set_Forwards_OK
9447 (N : Node_Id; Val : Boolean := True); -- Flag5
9449 procedure Set_From_At_Mod
9450 (N : Node_Id; Val : Boolean := True); -- Flag4
9452 procedure Set_From_Aspect_Specification
9453 (N : Node_Id; Val : Boolean := True); -- Flag13
9455 procedure Set_From_At_End
9456 (N : Node_Id; Val : Boolean := True); -- Flag4
9458 procedure Set_From_Default
9459 (N : Node_Id; Val : Boolean := True); -- Flag6
9461 procedure Set_Generic_Associations
9462 (N : Node_Id; Val : List_Id); -- List3
9464 procedure Set_Generic_Formal_Declarations
9465 (N : Node_Id; Val : List_Id); -- List2
9467 procedure Set_Generic_Parent
9468 (N : Node_Id; Val : Node_Id); -- Node5
9470 procedure Set_Generic_Parent_Type
9471 (N : Node_Id; Val : Node_Id); -- Node4
9473 procedure Set_Handled_Statement_Sequence
9474 (N : Node_Id; Val : Node_Id); -- Node4
9476 procedure Set_Handler_List_Entry
9477 (N : Node_Id; Val : Node_Id); -- Node2
9479 procedure Set_Has_Created_Identifier
9480 (N : Node_Id; Val : Boolean := True); -- Flag15
9482 procedure Set_Has_Dereference_Action
9483 (N : Node_Id; Val : Boolean := True); -- Flag13
9485 procedure Set_Has_Dynamic_Length_Check
9486 (N : Node_Id; Val : Boolean := True); -- Flag10
9488 procedure Set_Has_Dynamic_Range_Check
9489 (N : Node_Id; Val : Boolean := True); -- Flag12
9491 procedure Set_Has_Init_Expression
9492 (N : Node_Id; Val : Boolean := True); -- Flag14
9494 procedure Set_Has_Local_Raise
9495 (N : Node_Id; Val : Boolean := True); -- Flag8
9497 procedure Set_Has_No_Elaboration_Code
9498 (N : Node_Id; Val : Boolean := True); -- Flag17
9500 procedure Set_Has_Pragma_Suppress_All
9501 (N : Node_Id; Val : Boolean := True); -- Flag14
9503 procedure Set_Has_Private_View
9504 (N : Node_Id; Val : Boolean := True); -- Flag11
9506 procedure Set_Has_Relative_Deadline_Pragma
9507 (N : Node_Id; Val : Boolean := True); -- Flag9
9509 procedure Set_Has_Self_Reference
9510 (N : Node_Id; Val : Boolean := True); -- Flag13
9512 procedure Set_Has_Storage_Size_Pragma
9513 (N : Node_Id; Val : Boolean := True); -- Flag5
9515 procedure Set_Has_Wide_Character
9516 (N : Node_Id; Val : Boolean := True); -- Flag11
9518 procedure Set_Has_Wide_Wide_Character
9519 (N : Node_Id; Val : Boolean := True); -- Flag13
9521 procedure Set_Header_Size_Added
9522 (N : Node_Id; Val : Boolean := True); -- Flag11
9524 procedure Set_Hidden_By_Use_Clause
9525 (N : Node_Id; Val : Elist_Id); -- Elist4
9527 procedure Set_High_Bound
9528 (N : Node_Id; Val : Node_Id); -- Node2
9530 procedure Set_Identifier
9531 (N : Node_Id; Val : Node_Id); -- Node1
9533 procedure Set_Interface_List
9534 (N : Node_Id; Val : List_Id); -- List2
9536 procedure Set_Interface_Present
9537 (N : Node_Id; Val : Boolean := True); -- Flag16
9539 procedure Set_Implicit_With
9540 (N : Node_Id; Val : Boolean := True); -- Flag16
9542 procedure Set_Implicit_With_From_Instantiation
9543 (N : Node_Id; Val : Boolean := True); -- Flag12
9545 procedure Set_Import_Interface_Present
9546 (N : Node_Id; Val : Boolean := True); -- Flag16
9548 procedure Set_In_Present
9549 (N : Node_Id; Val : Boolean := True); -- Flag15
9551 procedure Set_Includes_Infinities
9552 (N : Node_Id; Val : Boolean := True); -- Flag11
9554 procedure Set_Inherited_Discriminant
9555 (N : Node_Id; Val : Boolean := True); -- Flag13
9557 procedure Set_Instance_Spec
9558 (N : Node_Id; Val : Node_Id); -- Node5
9560 procedure Set_Intval
9561 (N : Node_Id; Val : Uint); -- Uint3
9563 procedure Set_Is_Accessibility_Actual
9564 (N : Node_Id; Val : Boolean := True); -- Flag13
9566 procedure Set_Is_Asynchronous_Call_Block
9567 (N : Node_Id; Val : Boolean := True); -- Flag7
9569 procedure Set_Is_Boolean_Aspect
9570 (N : Node_Id; Val : Boolean := True); -- Flag16
9572 procedure Set_Is_Component_Left_Opnd
9573 (N : Node_Id; Val : Boolean := True); -- Flag13
9575 procedure Set_Is_Component_Right_Opnd
9576 (N : Node_Id; Val : Boolean := True); -- Flag14
9578 procedure Set_Is_Controlling_Actual
9579 (N : Node_Id; Val : Boolean := True); -- Flag16
9581 procedure Set_Is_Delayed_Aspect
9582 (N : Node_Id; Val : Boolean := True); -- Flag14
9584 procedure Set_Is_Dynamic_Coextension
9585 (N : Node_Id; Val : Boolean := True); -- Flag18
9587 procedure Set_Is_Elsif
9588 (N : Node_Id; Val : Boolean := True); -- Flag13
9590 procedure Set_Is_Entry_Barrier_Function
9591 (N : Node_Id; Val : Boolean := True); -- Flag8
9593 procedure Set_Is_Expanded_Build_In_Place_Call
9594 (N : Node_Id; Val : Boolean := True); -- Flag11
9596 procedure Set_Is_Finalization_Wrapper
9597 (N : Node_Id; Val : Boolean := True); -- Flag9
9599 procedure Set_Is_Folded_In_Parser
9600 (N : Node_Id; Val : Boolean := True); -- Flag4
9602 procedure Set_Is_In_Discriminant_Check
9603 (N : Node_Id; Val : Boolean := True); -- Flag11
9605 procedure Set_Is_Machine_Number
9606 (N : Node_Id; Val : Boolean := True); -- Flag11
9608 procedure Set_Is_Null_Loop
9609 (N : Node_Id; Val : Boolean := True); -- Flag16
9611 procedure Set_Is_Overloaded
9612 (N : Node_Id; Val : Boolean := True); -- Flag5
9614 procedure Set_Is_Power_Of_2_For_Shift
9615 (N : Node_Id; Val : Boolean := True); -- Flag13
9617 procedure Set_Is_Prefixed_Call
9618 (N : Node_Id; Val : Boolean := True); -- Flag17
9620 procedure Set_Is_Protected_Subprogram_Body
9621 (N : Node_Id; Val : Boolean := True); -- Flag7
9623 procedure Set_Is_Static_Coextension
9624 (N : Node_Id; Val : Boolean := True); -- Flag14
9626 procedure Set_Is_Static_Expression
9627 (N : Node_Id; Val : Boolean := True); -- Flag6
9629 procedure Set_Is_Subprogram_Descriptor
9630 (N : Node_Id; Val : Boolean := True); -- Flag16
9632 procedure Set_Is_Task_Allocation_Block
9633 (N : Node_Id; Val : Boolean := True); -- Flag6
9635 procedure Set_Is_Task_Master
9636 (N : Node_Id; Val : Boolean := True); -- Flag5
9638 procedure Set_Iteration_Scheme
9639 (N : Node_Id; Val : Node_Id); -- Node2
9641 procedure Set_Iterator_Specification
9642 (N : Node_Id; Val : Node_Id); -- Node2
9644 procedure Set_Itype
9645 (N : Node_Id; Val : Entity_Id); -- Node1
9647 procedure Set_Kill_Range_Check
9648 (N : Node_Id; Val : Boolean := True); -- Flag11
9650 procedure Set_Last_Bit
9651 (N : Node_Id; Val : Node_Id); -- Node4
9653 procedure Set_Last_Name
9654 (N : Node_Id; Val : Boolean := True); -- Flag6
9656 procedure Set_Library_Unit
9657 (N : Node_Id; Val : Node_Id); -- Node4
9659 procedure Set_Label_Construct
9660 (N : Node_Id; Val : Node_Id); -- Node2
9662 procedure Set_Left_Opnd
9663 (N : Node_Id; Val : Node_Id); -- Node2
9665 procedure Set_Limited_View_Installed
9666 (N : Node_Id; Val : Boolean := True); -- Flag18
9668 procedure Set_Limited_Present
9669 (N : Node_Id; Val : Boolean := True); -- Flag17
9671 procedure Set_Literals
9672 (N : Node_Id; Val : List_Id); -- List1
9674 procedure Set_Local_Raise_Not_OK
9675 (N : Node_Id; Val : Boolean := True); -- Flag7
9677 procedure Set_Local_Raise_Statements
9678 (N : Node_Id; Val : Elist_Id); -- Elist1
9680 procedure Set_Loop_Actions
9681 (N : Node_Id; Val : List_Id); -- List2
9683 procedure Set_Loop_Parameter_Specification
9684 (N : Node_Id; Val : Node_Id); -- Node4
9686 procedure Set_Low_Bound
9687 (N : Node_Id; Val : Node_Id); -- Node1
9689 procedure Set_Mod_Clause
9690 (N : Node_Id; Val : Node_Id); -- Node2
9692 procedure Set_More_Ids
9693 (N : Node_Id; Val : Boolean := True); -- Flag5
9695 procedure Set_Must_Be_Byte_Aligned
9696 (N : Node_Id; Val : Boolean := True); -- Flag14
9698 procedure Set_Must_Not_Freeze
9699 (N : Node_Id; Val : Boolean := True); -- Flag8
9701 procedure Set_Must_Not_Override
9702 (N : Node_Id; Val : Boolean := True); -- Flag15
9704 procedure Set_Must_Override
9705 (N : Node_Id; Val : Boolean := True); -- Flag14
9707 procedure Set_Name
9708 (N : Node_Id; Val : Node_Id); -- Node2
9710 procedure Set_Names
9711 (N : Node_Id; Val : List_Id); -- List2
9713 procedure Set_Next_Entity
9714 (N : Node_Id; Val : Node_Id); -- Node2
9716 procedure Set_Next_Exit_Statement
9717 (N : Node_Id; Val : Node_Id); -- Node3
9719 procedure Set_Next_Implicit_With
9720 (N : Node_Id; Val : Node_Id); -- Node3
9722 procedure Set_Next_Named_Actual
9723 (N : Node_Id; Val : Node_Id); -- Node4
9725 procedure Set_Next_Pragma
9726 (N : Node_Id; Val : Node_Id); -- Node1
9728 procedure Set_Next_Rep_Item
9729 (N : Node_Id; Val : Node_Id); -- Node5
9731 procedure Set_Next_Use_Clause
9732 (N : Node_Id; Val : Node_Id); -- Node3
9734 procedure Set_No_Ctrl_Actions
9735 (N : Node_Id; Val : Boolean := True); -- Flag7
9737 procedure Set_No_Elaboration_Check
9738 (N : Node_Id; Val : Boolean := True); -- Flag14
9740 procedure Set_No_Entities_Ref_In_Spec
9741 (N : Node_Id; Val : Boolean := True); -- Flag8
9743 procedure Set_No_Initialization
9744 (N : Node_Id; Val : Boolean := True); -- Flag13
9746 procedure Set_No_Truncation
9747 (N : Node_Id; Val : Boolean := True); -- Flag17
9749 procedure Set_Null_Present
9750 (N : Node_Id; Val : Boolean := True); -- Flag13
9752 procedure Set_Null_Exclusion_Present
9753 (N : Node_Id; Val : Boolean := True); -- Flag11
9755 procedure Set_Null_Exclusion_In_Return_Present
9756 (N : Node_Id; Val : Boolean := True); -- Flag14
9758 procedure Set_Null_Record_Present
9759 (N : Node_Id; Val : Boolean := True); -- Flag17
9761 procedure Set_Object_Definition
9762 (N : Node_Id; Val : Node_Id); -- Node4
9764 procedure Set_Of_Present
9765 (N : Node_Id; Val : Boolean := True); -- Flag16
9767 procedure Set_Original_Discriminant
9768 (N : Node_Id; Val : Node_Id); -- Node2
9770 procedure Set_Original_Entity
9771 (N : Node_Id; Val : Entity_Id); -- Node2
9773 procedure Set_Others_Discrete_Choices
9774 (N : Node_Id; Val : List_Id); -- List1
9776 procedure Set_Out_Present
9777 (N : Node_Id; Val : Boolean := True); -- Flag17
9779 procedure Set_Parameter_Associations
9780 (N : Node_Id; Val : List_Id); -- List3
9782 procedure Set_Parameter_List_Truncated
9783 (N : Node_Id; Val : Boolean := True); -- Flag17
9785 procedure Set_Parameter_Specifications
9786 (N : Node_Id; Val : List_Id); -- List3
9788 procedure Set_Parameter_Type
9789 (N : Node_Id; Val : Node_Id); -- Node2
9791 procedure Set_Parent_Spec
9792 (N : Node_Id; Val : Node_Id); -- Node4
9794 procedure Set_Position
9795 (N : Node_Id; Val : Node_Id); -- Node2
9797 procedure Set_Pragma_Argument_Associations
9798 (N : Node_Id; Val : List_Id); -- List2
9800 procedure Set_Pragma_Identifier
9801 (N : Node_Id; Val : Node_Id); -- Node4
9803 procedure Set_Pragmas_After
9804 (N : Node_Id; Val : List_Id); -- List5
9806 procedure Set_Pragmas_Before
9807 (N : Node_Id; Val : List_Id); -- List4
9809 procedure Set_Prefix
9810 (N : Node_Id; Val : Node_Id); -- Node3
9812 procedure Set_Premature_Use
9813 (N : Node_Id; Val : Node_Id); -- Node5
9815 procedure Set_Present_Expr
9816 (N : Node_Id; Val : Uint); -- Uint3
9818 procedure Set_Prev_Ids
9819 (N : Node_Id; Val : Boolean := True); -- Flag6
9821 procedure Set_Print_In_Hex
9822 (N : Node_Id; Val : Boolean := True); -- Flag13
9824 procedure Set_Private_Declarations
9825 (N : Node_Id; Val : List_Id); -- List3
9827 procedure Set_Private_Present
9828 (N : Node_Id; Val : Boolean := True); -- Flag15
9830 procedure Set_Procedure_To_Call
9831 (N : Node_Id; Val : Node_Id); -- Node2
9833 procedure Set_Proper_Body
9834 (N : Node_Id; Val : Node_Id); -- Node1
9836 procedure Set_Protected_Definition
9837 (N : Node_Id; Val : Node_Id); -- Node3
9839 procedure Set_Protected_Present
9840 (N : Node_Id; Val : Boolean := True); -- Flag6
9842 procedure Set_Raises_Constraint_Error
9843 (N : Node_Id; Val : Boolean := True); -- Flag7
9845 procedure Set_Range_Constraint
9846 (N : Node_Id; Val : Node_Id); -- Node4
9848 procedure Set_Range_Expression
9849 (N : Node_Id; Val : Node_Id); -- Node4
9851 procedure Set_Real_Range_Specification
9852 (N : Node_Id; Val : Node_Id); -- Node4
9854 procedure Set_Realval
9855 (N : Node_Id; Val : Ureal); -- Ureal3
9857 procedure Set_Reason
9858 (N : Node_Id; Val : Uint); -- Uint3
9860 procedure Set_Record_Extension_Part
9861 (N : Node_Id; Val : Node_Id); -- Node3
9863 procedure Set_Redundant_Use
9864 (N : Node_Id; Val : Boolean := True); -- Flag13
9866 procedure Set_Renaming_Exception
9867 (N : Node_Id; Val : Node_Id); -- Node2
9869 procedure Set_Result_Definition
9870 (N : Node_Id; Val : Node_Id); -- Node4
9872 procedure Set_Return_Object_Declarations
9873 (N : Node_Id; Val : List_Id); -- List3
9875 procedure Set_Return_Statement_Entity
9876 (N : Node_Id; Val : Node_Id); -- Node5
9878 procedure Set_Reverse_Present
9879 (N : Node_Id; Val : Boolean := True); -- Flag15
9881 procedure Set_Right_Opnd
9882 (N : Node_Id; Val : Node_Id); -- Node3
9884 procedure Set_Rounded_Result
9885 (N : Node_Id; Val : Boolean := True); -- Flag18
9887 procedure Set_SCIL_Controlling_Tag
9888 (N : Node_Id; Val : Node_Id); -- Node5
9890 procedure Set_SCIL_Entity
9891 (N : Node_Id; Val : Node_Id); -- Node4
9893 procedure Set_SCIL_Tag_Value
9894 (N : Node_Id; Val : Node_Id); -- Node5
9896 procedure Set_SCIL_Target_Prim
9897 (N : Node_Id; Val : Node_Id); -- Node2
9899 procedure Set_Scope
9900 (N : Node_Id; Val : Node_Id); -- Node3
9902 procedure Set_Select_Alternatives
9903 (N : Node_Id; Val : List_Id); -- List1
9905 procedure Set_Selector_Name
9906 (N : Node_Id; Val : Node_Id); -- Node2
9908 procedure Set_Selector_Names
9909 (N : Node_Id; Val : List_Id); -- List1
9911 procedure Set_Shift_Count_OK
9912 (N : Node_Id; Val : Boolean := True); -- Flag4
9914 procedure Set_Source_Type
9915 (N : Node_Id; Val : Entity_Id); -- Node1
9917 procedure Set_Spec_PPC_List
9918 (N : Node_Id; Val : Node_Id); -- Node1
9920 procedure Set_Spec_CTC_List
9921 (N : Node_Id; Val : Node_Id); -- Node2
9923 procedure Set_Specification
9924 (N : Node_Id; Val : Node_Id); -- Node1
9926 procedure Set_Split_PPC
9927 (N : Node_Id; Val : Boolean); -- Flag17
9929 procedure Set_Statements
9930 (N : Node_Id; Val : List_Id); -- List3
9932 procedure Set_Storage_Pool
9933 (N : Node_Id; Val : Node_Id); -- Node1
9935 procedure Set_Subpool_Handle_Name
9936 (N : Node_Id; Val : Node_Id); -- Node4
9938 procedure Set_Strval
9939 (N : Node_Id; Val : String_Id); -- Str3
9941 procedure Set_Subtype_Indication
9942 (N : Node_Id; Val : Node_Id); -- Node5
9944 procedure Set_Subtype_Mark
9945 (N : Node_Id; Val : Node_Id); -- Node4
9947 procedure Set_Subtype_Marks
9948 (N : Node_Id; Val : List_Id); -- List2
9950 procedure Set_Suppress_Assignment_Checks
9951 (N : Node_Id; Val : Boolean := True); -- Flag18
9953 procedure Set_Suppress_Loop_Warnings
9954 (N : Node_Id; Val : Boolean := True); -- Flag17
9956 procedure Set_Synchronized_Present
9957 (N : Node_Id; Val : Boolean := True); -- Flag7
9959 procedure Set_Tagged_Present
9960 (N : Node_Id; Val : Boolean := True); -- Flag15
9962 procedure Set_Target_Type
9963 (N : Node_Id; Val : Entity_Id); -- Node2
9965 procedure Set_Task_Definition
9966 (N : Node_Id; Val : Node_Id); -- Node3
9968 procedure Set_Task_Present
9969 (N : Node_Id; Val : Boolean := True); -- Flag5
9971 procedure Set_Then_Actions
9972 (N : Node_Id; Val : List_Id); -- List2
9974 procedure Set_Then_Statements
9975 (N : Node_Id; Val : List_Id); -- List2
9977 procedure Set_Treat_Fixed_As_Integer
9978 (N : Node_Id; Val : Boolean := True); -- Flag14
9980 procedure Set_Triggering_Alternative
9981 (N : Node_Id; Val : Node_Id); -- Node1
9983 procedure Set_Triggering_Statement
9984 (N : Node_Id; Val : Node_Id); -- Node1
9986 procedure Set_TSS_Elist
9987 (N : Node_Id; Val : Elist_Id); -- Elist3
9989 procedure Set_Type_Definition
9990 (N : Node_Id; Val : Node_Id); -- Node3
9992 procedure Set_Unit
9993 (N : Node_Id; Val : Node_Id); -- Node2
9995 procedure Set_Unknown_Discriminants_Present
9996 (N : Node_Id; Val : Boolean := True); -- Flag13
9998 procedure Set_Unreferenced_In_Spec
9999 (N : Node_Id; Val : Boolean := True); -- Flag7
10001 procedure Set_Variant_Part
10002 (N : Node_Id; Val : Node_Id); -- Node4
10004 procedure Set_Variants
10005 (N : Node_Id; Val : List_Id); -- List1
10007 procedure Set_Visible_Declarations
10008 (N : Node_Id; Val : List_Id); -- List2
10010 procedure Set_Used_Operations
10011 (N : Node_Id; Val : Elist_Id); -- Elist5
10013 procedure Set_Was_Originally_Stub
10014 (N : Node_Id; Val : Boolean := True); -- Flag13
10016 procedure Set_Withed_Body
10017 (N : Node_Id; Val : Node_Id); -- Node1
10019 -------------------------
10020 -- Iterator Procedures --
10021 -------------------------
10023 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
10025 procedure Next_Entity (N : in out Node_Id);
10026 procedure Next_Named_Actual (N : in out Node_Id);
10027 procedure Next_Rep_Item (N : in out Node_Id);
10028 procedure Next_Use_Clause (N : in out Node_Id);
10030 -------------------------------------------
10031 -- Miscellaneous Tree Access Subprograms --
10032 -------------------------------------------
10034 function End_Location (N : Node_Id) return Source_Ptr;
10035 -- N is an N_If_Statement or N_Case_Statement node, and this function
10036 -- returns the location of the IF token in the END IF sequence by
10037 -- translating the value of the End_Span field.
10039 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
10040 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
10041 -- the End_Span field to correspond to the given value S. In other words,
10042 -- End_Span is set to the difference between S and Sloc (N), the starting
10043 -- location.
10045 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
10046 -- Given an argument to a pragma Arg, this function returns the expression
10047 -- for the argument. This is Arg itself, or, in the case where Arg is a
10048 -- pragma argument association node, the expression from this node.
10050 --------------------------------
10051 -- Node_Kind Membership Tests --
10052 --------------------------------
10054 -- The following functions allow a convenient notation for testing whether
10055 -- a Node_Kind value matches any one of a list of possible values. In each
10056 -- case True is returned if the given T argument is equal to any of the V
10057 -- arguments. Note that there is a similar set of functions defined in
10058 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
10060 function Nkind_In
10061 (T : Node_Kind;
10062 V1 : Node_Kind;
10063 V2 : Node_Kind) return Boolean;
10065 function Nkind_In
10066 (T : Node_Kind;
10067 V1 : Node_Kind;
10068 V2 : Node_Kind;
10069 V3 : Node_Kind) return Boolean;
10071 function Nkind_In
10072 (T : Node_Kind;
10073 V1 : Node_Kind;
10074 V2 : Node_Kind;
10075 V3 : Node_Kind;
10076 V4 : Node_Kind) return Boolean;
10078 function Nkind_In
10079 (T : Node_Kind;
10080 V1 : Node_Kind;
10081 V2 : Node_Kind;
10082 V3 : Node_Kind;
10083 V4 : Node_Kind;
10084 V5 : Node_Kind) return Boolean;
10086 function Nkind_In
10087 (T : Node_Kind;
10088 V1 : Node_Kind;
10089 V2 : Node_Kind;
10090 V3 : Node_Kind;
10091 V4 : Node_Kind;
10092 V5 : Node_Kind;
10093 V6 : Node_Kind) return Boolean;
10095 function Nkind_In
10096 (T : Node_Kind;
10097 V1 : Node_Kind;
10098 V2 : Node_Kind;
10099 V3 : Node_Kind;
10100 V4 : Node_Kind;
10101 V5 : Node_Kind;
10102 V6 : Node_Kind;
10103 V7 : Node_Kind) return Boolean;
10105 function Nkind_In
10106 (T : Node_Kind;
10107 V1 : Node_Kind;
10108 V2 : Node_Kind;
10109 V3 : Node_Kind;
10110 V4 : Node_Kind;
10111 V5 : Node_Kind;
10112 V6 : Node_Kind;
10113 V7 : Node_Kind;
10114 V8 : Node_Kind) return Boolean;
10116 function Nkind_In
10117 (T : Node_Kind;
10118 V1 : Node_Kind;
10119 V2 : Node_Kind;
10120 V3 : Node_Kind;
10121 V4 : Node_Kind;
10122 V5 : Node_Kind;
10123 V6 : Node_Kind;
10124 V7 : Node_Kind;
10125 V8 : Node_Kind;
10126 V9 : Node_Kind) return Boolean;
10128 pragma Inline (Nkind_In);
10129 -- Inline all above functions
10131 -----------------------
10132 -- Utility Functions --
10133 -----------------------
10135 function Pragma_Name (N : Node_Id) return Name_Id;
10136 pragma Inline (Pragma_Name);
10137 -- Convenient function to obtain Chars field of Pragma_Identifier
10139 -----------------------------
10140 -- Syntactic Parent Tables --
10141 -----------------------------
10143 -- These tables show for each node, and for each of the five fields,
10144 -- whether the corresponding field is syntactic (True) or semantic (False).
10145 -- Unused entries are also set to False.
10147 subtype Field_Num is Natural range 1 .. 5;
10149 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10151 -- Following entries can be built automatically from the sinfo sources
10152 -- using the makeisf utility (currently this program is in spitbol).
10154 N_Identifier =>
10155 (1 => True, -- Chars (Name1)
10156 2 => False, -- Original_Discriminant (Node2-Sem)
10157 3 => False, -- unused
10158 4 => False, -- Entity (Node4-Sem)
10159 5 => False), -- Etype (Node5-Sem)
10161 N_Integer_Literal =>
10162 (1 => False, -- unused
10163 2 => False, -- Original_Entity (Node2-Sem)
10164 3 => True, -- Intval (Uint3)
10165 4 => False, -- unused
10166 5 => False), -- Etype (Node5-Sem)
10168 N_Real_Literal =>
10169 (1 => False, -- unused
10170 2 => False, -- Original_Entity (Node2-Sem)
10171 3 => True, -- Realval (Ureal3)
10172 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10173 5 => False), -- Etype (Node5-Sem)
10175 N_Character_Literal =>
10176 (1 => True, -- Chars (Name1)
10177 2 => True, -- Char_Literal_Value (Uint2)
10178 3 => False, -- unused
10179 4 => False, -- Entity (Node4-Sem)
10180 5 => False), -- Etype (Node5-Sem)
10182 N_String_Literal =>
10183 (1 => False, -- unused
10184 2 => False, -- unused
10185 3 => True, -- Strval (Str3)
10186 4 => False, -- unused
10187 5 => False), -- Etype (Node5-Sem)
10189 N_Pragma =>
10190 (1 => False, -- Next_Pragma (Node1-Sem)
10191 2 => True, -- Pragma_Argument_Associations (List2)
10192 3 => False, -- unused
10193 4 => True, -- Pragma_Identifier (Node4)
10194 5 => False), -- Next_Rep_Item (Node5-Sem)
10196 N_Pragma_Argument_Association =>
10197 (1 => True, -- Chars (Name1)
10198 2 => False, -- unused
10199 3 => True, -- Expression (Node3)
10200 4 => False, -- unused
10201 5 => False), -- unused
10203 N_Defining_Identifier =>
10204 (1 => True, -- Chars (Name1)
10205 2 => False, -- Next_Entity (Node2-Sem)
10206 3 => False, -- Scope (Node3-Sem)
10207 4 => False, -- unused
10208 5 => False), -- Etype (Node5-Sem)
10210 N_Full_Type_Declaration =>
10211 (1 => True, -- Defining_Identifier (Node1)
10212 2 => False, -- unused
10213 3 => True, -- Type_Definition (Node3)
10214 4 => True, -- Discriminant_Specifications (List4)
10215 5 => False), -- unused
10217 N_Subtype_Declaration =>
10218 (1 => True, -- Defining_Identifier (Node1)
10219 2 => False, -- unused
10220 3 => False, -- unused
10221 4 => False, -- Generic_Parent_Type (Node4-Sem)
10222 5 => True), -- Subtype_Indication (Node5)
10224 N_Subtype_Indication =>
10225 (1 => False, -- unused
10226 2 => False, -- unused
10227 3 => True, -- Constraint (Node3)
10228 4 => True, -- Subtype_Mark (Node4)
10229 5 => False), -- Etype (Node5-Sem)
10231 N_Object_Declaration =>
10232 (1 => True, -- Defining_Identifier (Node1)
10233 2 => False, -- Handler_List_Entry (Node2-Sem)
10234 3 => True, -- Expression (Node3)
10235 4 => True, -- Object_Definition (Node4)
10236 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10238 N_Number_Declaration =>
10239 (1 => True, -- Defining_Identifier (Node1)
10240 2 => False, -- unused
10241 3 => True, -- Expression (Node3)
10242 4 => False, -- unused
10243 5 => False), -- unused
10245 N_Derived_Type_Definition =>
10246 (1 => False, -- unused
10247 2 => True, -- Interface_List (List2)
10248 3 => True, -- Record_Extension_Part (Node3)
10249 4 => False, -- unused
10250 5 => True), -- Subtype_Indication (Node5)
10252 N_Range_Constraint =>
10253 (1 => False, -- unused
10254 2 => False, -- unused
10255 3 => False, -- unused
10256 4 => True, -- Range_Expression (Node4)
10257 5 => False), -- unused
10259 N_Range =>
10260 (1 => True, -- Low_Bound (Node1)
10261 2 => True, -- High_Bound (Node2)
10262 3 => False, -- unused
10263 4 => False, -- unused
10264 5 => False), -- Etype (Node5-Sem)
10266 N_Enumeration_Type_Definition =>
10267 (1 => True, -- Literals (List1)
10268 2 => False, -- unused
10269 3 => False, -- unused
10270 4 => True, -- End_Label (Node4)
10271 5 => False), -- unused
10273 N_Defining_Character_Literal =>
10274 (1 => True, -- Chars (Name1)
10275 2 => False, -- Next_Entity (Node2-Sem)
10276 3 => False, -- Scope (Node3-Sem)
10277 4 => False, -- unused
10278 5 => False), -- Etype (Node5-Sem)
10280 N_Signed_Integer_Type_Definition =>
10281 (1 => True, -- Low_Bound (Node1)
10282 2 => True, -- High_Bound (Node2)
10283 3 => False, -- unused
10284 4 => False, -- unused
10285 5 => False), -- unused
10287 N_Modular_Type_Definition =>
10288 (1 => False, -- unused
10289 2 => False, -- unused
10290 3 => True, -- Expression (Node3)
10291 4 => False, -- unused
10292 5 => False), -- unused
10294 N_Floating_Point_Definition =>
10295 (1 => False, -- unused
10296 2 => True, -- Digits_Expression (Node2)
10297 3 => False, -- unused
10298 4 => True, -- Real_Range_Specification (Node4)
10299 5 => False), -- unused
10301 N_Real_Range_Specification =>
10302 (1 => True, -- Low_Bound (Node1)
10303 2 => True, -- High_Bound (Node2)
10304 3 => False, -- unused
10305 4 => False, -- unused
10306 5 => False), -- unused
10308 N_Ordinary_Fixed_Point_Definition =>
10309 (1 => False, -- unused
10310 2 => False, -- unused
10311 3 => True, -- Delta_Expression (Node3)
10312 4 => True, -- Real_Range_Specification (Node4)
10313 5 => False), -- unused
10315 N_Decimal_Fixed_Point_Definition =>
10316 (1 => False, -- unused
10317 2 => True, -- Digits_Expression (Node2)
10318 3 => True, -- Delta_Expression (Node3)
10319 4 => True, -- Real_Range_Specification (Node4)
10320 5 => False), -- unused
10322 N_Digits_Constraint =>
10323 (1 => False, -- unused
10324 2 => True, -- Digits_Expression (Node2)
10325 3 => False, -- unused
10326 4 => True, -- Range_Constraint (Node4)
10327 5 => False), -- unused
10329 N_Unconstrained_Array_Definition =>
10330 (1 => False, -- unused
10331 2 => True, -- Subtype_Marks (List2)
10332 3 => False, -- unused
10333 4 => True, -- Component_Definition (Node4)
10334 5 => False), -- unused
10336 N_Constrained_Array_Definition =>
10337 (1 => False, -- unused
10338 2 => True, -- Discrete_Subtype_Definitions (List2)
10339 3 => False, -- unused
10340 4 => True, -- Component_Definition (Node4)
10341 5 => False), -- unused
10343 N_Component_Definition =>
10344 (1 => False, -- unused
10345 2 => False, -- unused
10346 3 => True, -- Access_Definition (Node3)
10347 4 => False, -- unused
10348 5 => True), -- Subtype_Indication (Node5)
10350 N_Discriminant_Specification =>
10351 (1 => True, -- Defining_Identifier (Node1)
10352 2 => False, -- unused
10353 3 => True, -- Expression (Node3)
10354 4 => False, -- unused
10355 5 => True), -- Discriminant_Type (Node5)
10357 N_Index_Or_Discriminant_Constraint =>
10358 (1 => True, -- Constraints (List1)
10359 2 => False, -- unused
10360 3 => False, -- unused
10361 4 => False, -- unused
10362 5 => False), -- unused
10364 N_Discriminant_Association =>
10365 (1 => True, -- Selector_Names (List1)
10366 2 => False, -- unused
10367 3 => True, -- Expression (Node3)
10368 4 => False, -- unused
10369 5 => False), -- unused
10371 N_Record_Definition =>
10372 (1 => True, -- Component_List (Node1)
10373 2 => True, -- Interface_List (List2)
10374 3 => False, -- unused
10375 4 => True, -- End_Label (Node4)
10376 5 => False), -- unused
10378 N_Component_List =>
10379 (1 => False, -- unused
10380 2 => False, -- unused
10381 3 => True, -- Component_Items (List3)
10382 4 => True, -- Variant_Part (Node4)
10383 5 => False), -- unused
10385 N_Component_Declaration =>
10386 (1 => True, -- Defining_Identifier (Node1)
10387 2 => False, -- unused
10388 3 => True, -- Expression (Node3)
10389 4 => True, -- Component_Definition (Node4)
10390 5 => False), -- unused
10392 N_Variant_Part =>
10393 (1 => True, -- Variants (List1)
10394 2 => True, -- Name (Node2)
10395 3 => False, -- unused
10396 4 => False, -- unused
10397 5 => False), -- unused
10399 N_Variant =>
10400 (1 => True, -- Component_List (Node1)
10401 2 => False, -- Enclosing_Variant (Node2-Sem)
10402 3 => False, -- Present_Expr (Uint3-Sem)
10403 4 => True, -- Discrete_Choices (List4)
10404 5 => False), -- Dcheck_Function (Node5-Sem)
10406 N_Others_Choice =>
10407 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10408 2 => False, -- unused
10409 3 => False, -- unused
10410 4 => False, -- unused
10411 5 => False), -- unused
10413 N_Access_To_Object_Definition =>
10414 (1 => False, -- unused
10415 2 => False, -- unused
10416 3 => False, -- unused
10417 4 => False, -- unused
10418 5 => True), -- Subtype_Indication (Node5)
10420 N_Access_Function_Definition =>
10421 (1 => False, -- unused
10422 2 => False, -- unused
10423 3 => True, -- Parameter_Specifications (List3)
10424 4 => True, -- Result_Definition (Node4)
10425 5 => False), -- unused
10427 N_Access_Procedure_Definition =>
10428 (1 => False, -- unused
10429 2 => False, -- unused
10430 3 => True, -- Parameter_Specifications (List3)
10431 4 => False, -- unused
10432 5 => False), -- unused
10434 N_Access_Definition =>
10435 (1 => False, -- unused
10436 2 => False, -- unused
10437 3 => True, -- Access_To_Subprogram_Definition (Node3)
10438 4 => True, -- Subtype_Mark (Node4)
10439 5 => False), -- unused
10441 N_Incomplete_Type_Declaration =>
10442 (1 => True, -- Defining_Identifier (Node1)
10443 2 => False, -- unused
10444 3 => False, -- unused
10445 4 => True, -- Discriminant_Specifications (List4)
10446 5 => False), -- Premature_Use
10448 N_Explicit_Dereference =>
10449 (1 => False, -- unused
10450 2 => False, -- unused
10451 3 => True, -- Prefix (Node3)
10452 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10453 5 => False), -- Etype (Node5-Sem)
10455 N_Indexed_Component =>
10456 (1 => True, -- Expressions (List1)
10457 2 => False, -- unused
10458 3 => True, -- Prefix (Node3)
10459 4 => False, -- unused
10460 5 => False), -- Etype (Node5-Sem)
10462 N_Slice =>
10463 (1 => False, -- unused
10464 2 => False, -- unused
10465 3 => True, -- Prefix (Node3)
10466 4 => True, -- Discrete_Range (Node4)
10467 5 => False), -- Etype (Node5-Sem)
10469 N_Selected_Component =>
10470 (1 => False, -- unused
10471 2 => True, -- Selector_Name (Node2)
10472 3 => True, -- Prefix (Node3)
10473 4 => False, -- unused
10474 5 => False), -- Etype (Node5-Sem)
10476 N_Attribute_Reference =>
10477 (1 => True, -- Expressions (List1)
10478 2 => True, -- Attribute_Name (Name2)
10479 3 => True, -- Prefix (Node3)
10480 4 => False, -- Entity (Node4-Sem)
10481 5 => False), -- Etype (Node5-Sem)
10483 N_Aggregate =>
10484 (1 => True, -- Expressions (List1)
10485 2 => True, -- Component_Associations (List2)
10486 3 => False, -- Aggregate_Bounds (Node3-Sem)
10487 4 => False, -- unused
10488 5 => False), -- Etype (Node5-Sem)
10490 N_Component_Association =>
10491 (1 => True, -- Choices (List1)
10492 2 => False, -- Loop_Actions (List2-Sem)
10493 3 => True, -- Expression (Node3)
10494 4 => False, -- unused
10495 5 => False), -- unused
10497 N_Extension_Aggregate =>
10498 (1 => True, -- Expressions (List1)
10499 2 => True, -- Component_Associations (List2)
10500 3 => True, -- Ancestor_Part (Node3)
10501 4 => False, -- unused
10502 5 => False), -- Etype (Node5-Sem)
10504 N_Null =>
10505 (1 => False, -- unused
10506 2 => False, -- unused
10507 3 => False, -- unused
10508 4 => False, -- unused
10509 5 => False), -- Etype (Node5-Sem)
10511 N_And_Then =>
10512 (1 => False, -- Actions (List1-Sem)
10513 2 => True, -- Left_Opnd (Node2)
10514 3 => True, -- Right_Opnd (Node3)
10515 4 => False, -- unused
10516 5 => False), -- Etype (Node5-Sem)
10518 N_Or_Else =>
10519 (1 => False, -- Actions (List1-Sem)
10520 2 => True, -- Left_Opnd (Node2)
10521 3 => True, -- Right_Opnd (Node3)
10522 4 => False, -- unused
10523 5 => False), -- Etype (Node5-Sem)
10525 N_In =>
10526 (1 => False, -- unused
10527 2 => True, -- Left_Opnd (Node2)
10528 3 => True, -- Right_Opnd (Node3)
10529 4 => True, -- Alternatives (List4)
10530 5 => False), -- Etype (Node5-Sem)
10532 N_Not_In =>
10533 (1 => False, -- unused
10534 2 => True, -- Left_Opnd (Node2)
10535 3 => True, -- Right_Opnd (Node3)
10536 4 => True, -- Alternatives (List4)
10537 5 => False), -- Etype (Node5-Sem)
10539 N_Op_And =>
10540 (1 => True, -- Chars (Name1)
10541 2 => True, -- Left_Opnd (Node2)
10542 3 => True, -- Right_Opnd (Node3)
10543 4 => False, -- Entity (Node4-Sem)
10544 5 => False), -- Etype (Node5-Sem)
10546 N_Op_Or =>
10547 (1 => True, -- Chars (Name1)
10548 2 => True, -- Left_Opnd (Node2)
10549 3 => True, -- Right_Opnd (Node3)
10550 4 => False, -- Entity (Node4-Sem)
10551 5 => False), -- Etype (Node5-Sem)
10553 N_Op_Xor =>
10554 (1 => True, -- Chars (Name1)
10555 2 => True, -- Left_Opnd (Node2)
10556 3 => True, -- Right_Opnd (Node3)
10557 4 => False, -- Entity (Node4-Sem)
10558 5 => False), -- Etype (Node5-Sem)
10560 N_Op_Eq =>
10561 (1 => True, -- Chars (Name1)
10562 2 => True, -- Left_Opnd (Node2)
10563 3 => True, -- Right_Opnd (Node3)
10564 4 => False, -- Entity (Node4-Sem)
10565 5 => False), -- Etype (Node5-Sem)
10567 N_Op_Ne =>
10568 (1 => True, -- Chars (Name1)
10569 2 => True, -- Left_Opnd (Node2)
10570 3 => True, -- Right_Opnd (Node3)
10571 4 => False, -- Entity (Node4-Sem)
10572 5 => False), -- Etype (Node5-Sem)
10574 N_Op_Lt =>
10575 (1 => True, -- Chars (Name1)
10576 2 => True, -- Left_Opnd (Node2)
10577 3 => True, -- Right_Opnd (Node3)
10578 4 => False, -- Entity (Node4-Sem)
10579 5 => False), -- Etype (Node5-Sem)
10581 N_Op_Le =>
10582 (1 => True, -- Chars (Name1)
10583 2 => True, -- Left_Opnd (Node2)
10584 3 => True, -- Right_Opnd (Node3)
10585 4 => False, -- Entity (Node4-Sem)
10586 5 => False), -- Etype (Node5-Sem)
10588 N_Op_Gt =>
10589 (1 => True, -- Chars (Name1)
10590 2 => True, -- Left_Opnd (Node2)
10591 3 => True, -- Right_Opnd (Node3)
10592 4 => False, -- Entity (Node4-Sem)
10593 5 => False), -- Etype (Node5-Sem)
10595 N_Op_Ge =>
10596 (1 => True, -- Chars (Name1)
10597 2 => True, -- Left_Opnd (Node2)
10598 3 => True, -- Right_Opnd (Node3)
10599 4 => False, -- Entity (Node4-Sem)
10600 5 => False), -- Etype (Node5-Sem)
10602 N_Op_Add =>
10603 (1 => True, -- Chars (Name1)
10604 2 => True, -- Left_Opnd (Node2)
10605 3 => True, -- Right_Opnd (Node3)
10606 4 => False, -- Entity (Node4-Sem)
10607 5 => False), -- Etype (Node5-Sem)
10609 N_Op_Subtract =>
10610 (1 => True, -- Chars (Name1)
10611 2 => True, -- Left_Opnd (Node2)
10612 3 => True, -- Right_Opnd (Node3)
10613 4 => False, -- Entity (Node4-Sem)
10614 5 => False), -- Etype (Node5-Sem)
10616 N_Op_Concat =>
10617 (1 => True, -- Chars (Name1)
10618 2 => True, -- Left_Opnd (Node2)
10619 3 => True, -- Right_Opnd (Node3)
10620 4 => False, -- Entity (Node4-Sem)
10621 5 => False), -- Etype (Node5-Sem)
10623 N_Op_Multiply =>
10624 (1 => True, -- Chars (Name1)
10625 2 => True, -- Left_Opnd (Node2)
10626 3 => True, -- Right_Opnd (Node3)
10627 4 => False, -- Entity (Node4-Sem)
10628 5 => False), -- Etype (Node5-Sem)
10630 N_Op_Divide =>
10631 (1 => True, -- Chars (Name1)
10632 2 => True, -- Left_Opnd (Node2)
10633 3 => True, -- Right_Opnd (Node3)
10634 4 => False, -- Entity (Node4-Sem)
10635 5 => False), -- Etype (Node5-Sem)
10637 N_Op_Mod =>
10638 (1 => True, -- Chars (Name1)
10639 2 => True, -- Left_Opnd (Node2)
10640 3 => True, -- Right_Opnd (Node3)
10641 4 => False, -- Entity (Node4-Sem)
10642 5 => False), -- Etype (Node5-Sem)
10644 N_Op_Rem =>
10645 (1 => True, -- Chars (Name1)
10646 2 => True, -- Left_Opnd (Node2)
10647 3 => True, -- Right_Opnd (Node3)
10648 4 => False, -- Entity (Node4-Sem)
10649 5 => False), -- Etype (Node5-Sem)
10651 N_Op_Expon =>
10652 (1 => True, -- Chars (Name1)
10653 2 => True, -- Left_Opnd (Node2)
10654 3 => True, -- Right_Opnd (Node3)
10655 4 => False, -- Entity (Node4-Sem)
10656 5 => False), -- Etype (Node5-Sem)
10658 N_Op_Plus =>
10659 (1 => True, -- Chars (Name1)
10660 2 => False, -- unused
10661 3 => True, -- Right_Opnd (Node3)
10662 4 => False, -- Entity (Node4-Sem)
10663 5 => False), -- Etype (Node5-Sem)
10665 N_Op_Minus =>
10666 (1 => True, -- Chars (Name1)
10667 2 => False, -- unused
10668 3 => True, -- Right_Opnd (Node3)
10669 4 => False, -- Entity (Node4-Sem)
10670 5 => False), -- Etype (Node5-Sem)
10672 N_Op_Abs =>
10673 (1 => True, -- Chars (Name1)
10674 2 => False, -- unused
10675 3 => True, -- Right_Opnd (Node3)
10676 4 => False, -- Entity (Node4-Sem)
10677 5 => False), -- Etype (Node5-Sem)
10679 N_Op_Not =>
10680 (1 => True, -- Chars (Name1)
10681 2 => False, -- unused
10682 3 => True, -- Right_Opnd (Node3)
10683 4 => False, -- Entity (Node4-Sem)
10684 5 => False), -- Etype (Node5-Sem)
10686 N_Type_Conversion =>
10687 (1 => False, -- unused
10688 2 => False, -- unused
10689 3 => True, -- Expression (Node3)
10690 4 => True, -- Subtype_Mark (Node4)
10691 5 => False), -- Etype (Node5-Sem)
10693 N_Qualified_Expression =>
10694 (1 => False, -- unused
10695 2 => False, -- unused
10696 3 => True, -- Expression (Node3)
10697 4 => True, -- Subtype_Mark (Node4)
10698 5 => False), -- Etype (Node5-Sem)
10700 N_Quantified_Expression =>
10701 (1 => True, -- Condition (Node1)
10702 2 => True, -- Iterator_Specification
10703 3 => False, -- unused
10704 4 => True, -- Loop_Parameter_Specification (Node4)
10705 5 => False), -- Etype (Node5-Sem)
10707 N_Allocator =>
10708 (1 => False, -- Storage_Pool (Node1-Sem)
10709 2 => False, -- Procedure_To_Call (Node2-Sem)
10710 3 => True, -- Expression (Node3)
10711 4 => True, -- Subpool_Handle_Name (Node4)
10712 5 => False), -- Etype (Node5-Sem)
10714 N_Null_Statement =>
10715 (1 => False, -- unused
10716 2 => False, -- unused
10717 3 => False, -- unused
10718 4 => False, -- unused
10719 5 => False), -- unused
10721 N_Label =>
10722 (1 => True, -- Identifier (Node1)
10723 2 => False, -- unused
10724 3 => False, -- unused
10725 4 => False, -- unused
10726 5 => False), -- unused
10728 N_Assignment_Statement =>
10729 (1 => False, -- unused
10730 2 => True, -- Name (Node2)
10731 3 => True, -- Expression (Node3)
10732 4 => False, -- unused
10733 5 => False), -- unused
10735 N_If_Statement =>
10736 (1 => True, -- Condition (Node1)
10737 2 => True, -- Then_Statements (List2)
10738 3 => True, -- Elsif_Parts (List3)
10739 4 => True, -- Else_Statements (List4)
10740 5 => True), -- End_Span (Uint5)
10742 N_Elsif_Part =>
10743 (1 => True, -- Condition (Node1)
10744 2 => True, -- Then_Statements (List2)
10745 3 => False, -- Condition_Actions (List3-Sem)
10746 4 => False, -- unused
10747 5 => False), -- unused
10749 N_Case_Expression =>
10750 (1 => False, -- unused
10751 2 => False, -- unused
10752 3 => True, -- Expression (Node3)
10753 4 => True, -- Alternatives (List4)
10754 5 => False), -- unused
10756 N_Case_Expression_Alternative =>
10757 (1 => False, -- Actions (List1-Sem)
10758 2 => False, -- unused
10759 3 => True, -- Statements (List3)
10760 4 => True, -- Expression (Node4)
10761 5 => False), -- unused
10763 N_Case_Statement =>
10764 (1 => False, -- unused
10765 2 => False, -- unused
10766 3 => True, -- Expression (Node3)
10767 4 => True, -- Alternatives (List4)
10768 5 => True), -- End_Span (Uint5)
10770 N_Case_Statement_Alternative =>
10771 (1 => False, -- unused
10772 2 => False, -- unused
10773 3 => True, -- Statements (List3)
10774 4 => True, -- Discrete_Choices (List4)
10775 5 => False), -- unused
10777 N_Loop_Statement =>
10778 (1 => True, -- Identifier (Node1)
10779 2 => True, -- Iteration_Scheme (Node2)
10780 3 => True, -- Statements (List3)
10781 4 => True, -- End_Label (Node4)
10782 5 => False), -- unused
10784 N_Iteration_Scheme =>
10785 (1 => True, -- Condition (Node1)
10786 2 => True, -- Iterator_Specification (Node2)
10787 3 => False, -- Condition_Actions (List3-Sem)
10788 4 => True, -- Loop_Parameter_Specification (Node4)
10789 5 => False), -- unused
10791 N_Loop_Parameter_Specification =>
10792 (1 => True, -- Defining_Identifier (Node1)
10793 2 => False, -- unused
10794 3 => False, -- unused
10795 4 => True, -- Discrete_Subtype_Definition (Node4)
10796 5 => False), -- unused
10798 N_Iterator_Specification =>
10799 (1 => True, -- Defining_Identifier (Node1)
10800 2 => True, -- Name (Node2)
10801 3 => False, -- Unused
10802 4 => False, -- Unused
10803 5 => True), -- Subtype_Indication (Node5)
10805 N_Block_Statement =>
10806 (1 => True, -- Identifier (Node1)
10807 2 => True, -- Declarations (List2)
10808 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10809 4 => True, -- Handled_Statement_Sequence (Node4)
10810 5 => False), -- unused
10812 N_Exit_Statement =>
10813 (1 => True, -- Condition (Node1)
10814 2 => True, -- Name (Node2)
10815 3 => False, -- unused
10816 4 => False, -- unused
10817 5 => False), -- unused
10819 N_Goto_Statement =>
10820 (1 => False, -- unused
10821 2 => True, -- Name (Node2)
10822 3 => False, -- unused
10823 4 => False, -- unused
10824 5 => False), -- unused
10826 N_Subprogram_Declaration =>
10827 (1 => True, -- Specification (Node1)
10828 2 => False, -- unused
10829 3 => False, -- Body_To_Inline (Node3-Sem)
10830 4 => False, -- Parent_Spec (Node4-Sem)
10831 5 => False), -- Corresponding_Body (Node5-Sem)
10833 N_Abstract_Subprogram_Declaration =>
10834 (1 => True, -- Specification (Node1)
10835 2 => False, -- unused
10836 3 => False, -- unused
10837 4 => False, -- unused
10838 5 => False), -- unused
10840 N_Function_Specification =>
10841 (1 => True, -- Defining_Unit_Name (Node1)
10842 2 => False, -- Elaboration_Boolean (Node2-Sem)
10843 3 => True, -- Parameter_Specifications (List3)
10844 4 => True, -- Result_Definition (Node4)
10845 5 => False), -- Generic_Parent (Node5-Sem)
10847 N_Procedure_Specification =>
10848 (1 => True, -- Defining_Unit_Name (Node1)
10849 2 => False, -- Elaboration_Boolean (Node2-Sem)
10850 3 => True, -- Parameter_Specifications (List3)
10851 4 => False, -- unused
10852 5 => False), -- Generic_Parent (Node5-Sem)
10854 N_Designator =>
10855 (1 => True, -- Identifier (Node1)
10856 2 => True, -- Name (Node2)
10857 3 => False, -- unused
10858 4 => False, -- unused
10859 5 => False), -- unused
10861 N_Defining_Program_Unit_Name =>
10862 (1 => True, -- Defining_Identifier (Node1)
10863 2 => True, -- Name (Node2)
10864 3 => False, -- unused
10865 4 => False, -- unused
10866 5 => False), -- unused
10868 N_Operator_Symbol =>
10869 (1 => True, -- Chars (Name1)
10870 2 => False, -- unused
10871 3 => True, -- Strval (Str3)
10872 4 => False, -- Entity (Node4-Sem)
10873 5 => False), -- Etype (Node5-Sem)
10875 N_Defining_Operator_Symbol =>
10876 (1 => True, -- Chars (Name1)
10877 2 => False, -- Next_Entity (Node2-Sem)
10878 3 => False, -- Scope (Node3-Sem)
10879 4 => False, -- unused
10880 5 => False), -- Etype (Node5-Sem)
10882 N_Parameter_Specification =>
10883 (1 => True, -- Defining_Identifier (Node1)
10884 2 => True, -- Parameter_Type (Node2)
10885 3 => True, -- Expression (Node3)
10886 4 => False, -- unused
10887 5 => False), -- Default_Expression (Node5-Sem)
10889 N_Subprogram_Body =>
10890 (1 => True, -- Specification (Node1)
10891 2 => True, -- Declarations (List2)
10892 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10893 4 => True, -- Handled_Statement_Sequence (Node4)
10894 5 => False), -- Corresponding_Spec (Node5-Sem)
10896 N_Expression_Function =>
10897 (1 => True, -- Specification (Node1)
10898 2 => False, -- unused
10899 3 => True, -- Expression (Node3)
10900 4 => False, -- unused
10901 5 => False), -- unused
10903 N_Procedure_Call_Statement =>
10904 (1 => False, -- Controlling_Argument (Node1-Sem)
10905 2 => True, -- Name (Node2)
10906 3 => True, -- Parameter_Associations (List3)
10907 4 => False, -- First_Named_Actual (Node4-Sem)
10908 5 => False), -- Etype (Node5-Sem)
10910 N_Function_Call =>
10911 (1 => False, -- Controlling_Argument (Node1-Sem)
10912 2 => True, -- Name (Node2)
10913 3 => True, -- Parameter_Associations (List3)
10914 4 => False, -- First_Named_Actual (Node4-Sem)
10915 5 => False), -- Etype (Node5-Sem)
10917 N_Parameter_Association =>
10918 (1 => False, -- unused
10919 2 => True, -- Selector_Name (Node2)
10920 3 => True, -- Explicit_Actual_Parameter (Node3)
10921 4 => False, -- Next_Named_Actual (Node4-Sem)
10922 5 => False), -- unused
10924 N_Return_Statement =>
10925 (1 => False, -- Storage_Pool (Node1-Sem)
10926 2 => False, -- Procedure_To_Call (Node2-Sem)
10927 3 => True, -- Expression (Node3)
10928 4 => False, -- unused
10929 5 => False), -- Return_Statement_Entity (Node5-Sem)
10931 N_Extended_Return_Statement =>
10932 (1 => False, -- Storage_Pool (Node1-Sem)
10933 2 => False, -- Procedure_To_Call (Node2-Sem)
10934 3 => True, -- Return_Object_Declarations (List3)
10935 4 => True, -- Handled_Statement_Sequence (Node4)
10936 5 => False), -- Return_Statement_Entity (Node5-Sem)
10938 N_Package_Declaration =>
10939 (1 => True, -- Specification (Node1)
10940 2 => False, -- unused
10941 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10942 4 => False, -- Parent_Spec (Node4-Sem)
10943 5 => False), -- Corresponding_Body (Node5-Sem)
10945 N_Package_Specification =>
10946 (1 => True, -- Defining_Unit_Name (Node1)
10947 2 => True, -- Visible_Declarations (List2)
10948 3 => True, -- Private_Declarations (List3)
10949 4 => True, -- End_Label (Node4)
10950 5 => False), -- Generic_Parent (Node5-Sem)
10952 N_Package_Body =>
10953 (1 => True, -- Defining_Unit_Name (Node1)
10954 2 => True, -- Declarations (List2)
10955 3 => False, -- unused
10956 4 => True, -- Handled_Statement_Sequence (Node4)
10957 5 => False), -- Corresponding_Spec (Node5-Sem)
10959 N_Private_Type_Declaration =>
10960 (1 => True, -- Defining_Identifier (Node1)
10961 2 => False, -- unused
10962 3 => False, -- unused
10963 4 => True, -- Discriminant_Specifications (List4)
10964 5 => False), -- unused
10966 N_Private_Extension_Declaration =>
10967 (1 => True, -- Defining_Identifier (Node1)
10968 2 => True, -- Interface_List (List2)
10969 3 => False, -- unused
10970 4 => True, -- Discriminant_Specifications (List4)
10971 5 => True), -- Subtype_Indication (Node5)
10973 N_Use_Package_Clause =>
10974 (1 => False, -- unused
10975 2 => True, -- Names (List2)
10976 3 => False, -- Next_Use_Clause (Node3-Sem)
10977 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10978 5 => False), -- unused
10980 N_Use_Type_Clause =>
10981 (1 => False, -- unused
10982 2 => True, -- Subtype_Marks (List2)
10983 3 => False, -- Next_Use_Clause (Node3-Sem)
10984 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10985 5 => False), -- unused
10987 N_Object_Renaming_Declaration =>
10988 (1 => True, -- Defining_Identifier (Node1)
10989 2 => True, -- Name (Node2)
10990 3 => True, -- Access_Definition (Node3)
10991 4 => True, -- Subtype_Mark (Node4)
10992 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10994 N_Exception_Renaming_Declaration =>
10995 (1 => True, -- Defining_Identifier (Node1)
10996 2 => True, -- Name (Node2)
10997 3 => False, -- unused
10998 4 => False, -- unused
10999 5 => False), -- unused
11001 N_Package_Renaming_Declaration =>
11002 (1 => True, -- Defining_Unit_Name (Node1)
11003 2 => True, -- Name (Node2)
11004 3 => False, -- unused
11005 4 => False, -- Parent_Spec (Node4-Sem)
11006 5 => False), -- unused
11008 N_Subprogram_Renaming_Declaration =>
11009 (1 => True, -- Specification (Node1)
11010 2 => True, -- Name (Node2)
11011 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
11012 4 => False, -- Parent_Spec (Node4-Sem)
11013 5 => False), -- Corresponding_Spec (Node5-Sem)
11015 N_Generic_Package_Renaming_Declaration =>
11016 (1 => True, -- Defining_Unit_Name (Node1)
11017 2 => True, -- Name (Node2)
11018 3 => False, -- unused
11019 4 => False, -- Parent_Spec (Node4-Sem)
11020 5 => False), -- unused
11022 N_Generic_Procedure_Renaming_Declaration =>
11023 (1 => True, -- Defining_Unit_Name (Node1)
11024 2 => True, -- Name (Node2)
11025 3 => False, -- unused
11026 4 => False, -- Parent_Spec (Node4-Sem)
11027 5 => False), -- unused
11029 N_Generic_Function_Renaming_Declaration =>
11030 (1 => True, -- Defining_Unit_Name (Node1)
11031 2 => True, -- Name (Node2)
11032 3 => False, -- unused
11033 4 => False, -- Parent_Spec (Node4-Sem)
11034 5 => False), -- unused
11036 N_Task_Type_Declaration =>
11037 (1 => True, -- Defining_Identifier (Node1)
11038 2 => True, -- Interface_List (List2)
11039 3 => True, -- Task_Definition (Node3)
11040 4 => True, -- Discriminant_Specifications (List4)
11041 5 => False), -- Corresponding_Body (Node5-Sem)
11043 N_Single_Task_Declaration =>
11044 (1 => True, -- Defining_Identifier (Node1)
11045 2 => True, -- Interface_List (List2)
11046 3 => True, -- Task_Definition (Node3)
11047 4 => False, -- unused
11048 5 => False), -- unused
11050 N_Task_Definition =>
11051 (1 => False, -- unused
11052 2 => True, -- Visible_Declarations (List2)
11053 3 => True, -- Private_Declarations (List3)
11054 4 => True, -- End_Label (Node4)
11055 5 => False), -- unused
11057 N_Task_Body =>
11058 (1 => True, -- Defining_Identifier (Node1)
11059 2 => True, -- Declarations (List2)
11060 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11061 4 => True, -- Handled_Statement_Sequence (Node4)
11062 5 => False), -- Corresponding_Spec (Node5-Sem)
11064 N_Protected_Type_Declaration =>
11065 (1 => True, -- Defining_Identifier (Node1)
11066 2 => True, -- Interface_List (List2)
11067 3 => True, -- Protected_Definition (Node3)
11068 4 => True, -- Discriminant_Specifications (List4)
11069 5 => False), -- Corresponding_Body (Node5-Sem)
11071 N_Single_Protected_Declaration =>
11072 (1 => True, -- Defining_Identifier (Node1)
11073 2 => True, -- Interface_List (List2)
11074 3 => True, -- Protected_Definition (Node3)
11075 4 => False, -- unused
11076 5 => False), -- unused
11078 N_Protected_Definition =>
11079 (1 => False, -- unused
11080 2 => True, -- Visible_Declarations (List2)
11081 3 => True, -- Private_Declarations (List3)
11082 4 => True, -- End_Label (Node4)
11083 5 => False), -- unused
11085 N_Protected_Body =>
11086 (1 => True, -- Defining_Identifier (Node1)
11087 2 => True, -- Declarations (List2)
11088 3 => False, -- unused
11089 4 => True, -- End_Label (Node4)
11090 5 => False), -- Corresponding_Spec (Node5-Sem)
11092 N_Entry_Declaration =>
11093 (1 => True, -- Defining_Identifier (Node1)
11094 2 => False, -- unused
11095 3 => True, -- Parameter_Specifications (List3)
11096 4 => True, -- Discrete_Subtype_Definition (Node4)
11097 5 => False), -- Corresponding_Body (Node5-Sem)
11099 N_Accept_Statement =>
11100 (1 => True, -- Entry_Direct_Name (Node1)
11101 2 => True, -- Declarations (List2)
11102 3 => True, -- Parameter_Specifications (List3)
11103 4 => True, -- Handled_Statement_Sequence (Node4)
11104 5 => True), -- Entry_Index (Node5)
11106 N_Entry_Body =>
11107 (1 => True, -- Defining_Identifier (Node1)
11108 2 => True, -- Declarations (List2)
11109 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11110 4 => True, -- Handled_Statement_Sequence (Node4)
11111 5 => True), -- Entry_Body_Formal_Part (Node5)
11113 N_Entry_Body_Formal_Part =>
11114 (1 => True, -- Condition (Node1)
11115 2 => False, -- unused
11116 3 => True, -- Parameter_Specifications (List3)
11117 4 => True, -- Entry_Index_Specification (Node4)
11118 5 => False), -- unused
11120 N_Entry_Index_Specification =>
11121 (1 => True, -- Defining_Identifier (Node1)
11122 2 => False, -- unused
11123 3 => False, -- unused
11124 4 => True, -- Discrete_Subtype_Definition (Node4)
11125 5 => False), -- unused
11127 N_Entry_Call_Statement =>
11128 (1 => False, -- unused
11129 2 => True, -- Name (Node2)
11130 3 => True, -- Parameter_Associations (List3)
11131 4 => False, -- First_Named_Actual (Node4-Sem)
11132 5 => False), -- unused
11134 N_Requeue_Statement =>
11135 (1 => False, -- unused
11136 2 => True, -- Name (Node2)
11137 3 => False, -- unused
11138 4 => False, -- unused
11139 5 => False), -- unused
11141 N_Delay_Until_Statement =>
11142 (1 => False, -- unused
11143 2 => False, -- unused
11144 3 => True, -- Expression (Node3)
11145 4 => False, -- unused
11146 5 => False), -- unused
11148 N_Delay_Relative_Statement =>
11149 (1 => False, -- unused
11150 2 => False, -- unused
11151 3 => True, -- Expression (Node3)
11152 4 => False, -- unused
11153 5 => False), -- unused
11155 N_Selective_Accept =>
11156 (1 => True, -- Select_Alternatives (List1)
11157 2 => False, -- unused
11158 3 => False, -- unused
11159 4 => True, -- Else_Statements (List4)
11160 5 => False), -- unused
11162 N_Accept_Alternative =>
11163 (1 => True, -- Condition (Node1)
11164 2 => True, -- Accept_Statement (Node2)
11165 3 => True, -- Statements (List3)
11166 4 => True, -- Pragmas_Before (List4)
11167 5 => False), -- Accept_Handler_Records (List5-Sem)
11169 N_Delay_Alternative =>
11170 (1 => True, -- Condition (Node1)
11171 2 => True, -- Delay_Statement (Node2)
11172 3 => True, -- Statements (List3)
11173 4 => True, -- Pragmas_Before (List4)
11174 5 => False), -- unused
11176 N_Terminate_Alternative =>
11177 (1 => True, -- Condition (Node1)
11178 2 => False, -- unused
11179 3 => False, -- unused
11180 4 => True, -- Pragmas_Before (List4)
11181 5 => True), -- Pragmas_After (List5)
11183 N_Timed_Entry_Call =>
11184 (1 => True, -- Entry_Call_Alternative (Node1)
11185 2 => False, -- unused
11186 3 => False, -- unused
11187 4 => True, -- Delay_Alternative (Node4)
11188 5 => False), -- unused
11190 N_Entry_Call_Alternative =>
11191 (1 => True, -- Entry_Call_Statement (Node1)
11192 2 => False, -- unused
11193 3 => True, -- Statements (List3)
11194 4 => True, -- Pragmas_Before (List4)
11195 5 => False), -- unused
11197 N_Conditional_Entry_Call =>
11198 (1 => True, -- Entry_Call_Alternative (Node1)
11199 2 => False, -- unused
11200 3 => False, -- unused
11201 4 => True, -- Else_Statements (List4)
11202 5 => False), -- unused
11204 N_Asynchronous_Select =>
11205 (1 => True, -- Triggering_Alternative (Node1)
11206 2 => True, -- Abortable_Part (Node2)
11207 3 => False, -- unused
11208 4 => False, -- unused
11209 5 => False), -- unused
11211 N_Triggering_Alternative =>
11212 (1 => True, -- Triggering_Statement (Node1)
11213 2 => False, -- unused
11214 3 => True, -- Statements (List3)
11215 4 => True, -- Pragmas_Before (List4)
11216 5 => False), -- unused
11218 N_Abortable_Part =>
11219 (1 => False, -- unused
11220 2 => False, -- unused
11221 3 => True, -- Statements (List3)
11222 4 => False, -- unused
11223 5 => False), -- unused
11225 N_Abort_Statement =>
11226 (1 => False, -- unused
11227 2 => True, -- Names (List2)
11228 3 => False, -- unused
11229 4 => False, -- unused
11230 5 => False), -- unused
11232 N_Compilation_Unit =>
11233 (1 => True, -- Context_Items (List1)
11234 2 => True, -- Unit (Node2)
11235 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11236 4 => False, -- Library_Unit (Node4-Sem)
11237 5 => True), -- Aux_Decls_Node (Node5)
11239 N_Compilation_Unit_Aux =>
11240 (1 => True, -- Actions (List1)
11241 2 => True, -- Declarations (List2)
11242 3 => False, -- Default_Storage_Pool (Node3)
11243 4 => True, -- Config_Pragmas (List4)
11244 5 => True), -- Pragmas_After (List5)
11246 N_With_Clause =>
11247 (1 => False, -- unused
11248 2 => True, -- Name (Node2)
11249 3 => False, -- unused
11250 4 => False, -- Library_Unit (Node4-Sem)
11251 5 => False), -- Corresponding_Spec (Node5-Sem)
11253 N_Subprogram_Body_Stub =>
11254 (1 => True, -- Specification (Node1)
11255 2 => False, -- unused
11256 3 => False, -- unused
11257 4 => False, -- Library_Unit (Node4-Sem)
11258 5 => False), -- Corresponding_Body (Node5-Sem)
11260 N_Package_Body_Stub =>
11261 (1 => True, -- Defining_Identifier (Node1)
11262 2 => False, -- unused
11263 3 => False, -- unused
11264 4 => False, -- Library_Unit (Node4-Sem)
11265 5 => False), -- Corresponding_Body (Node5-Sem)
11267 N_Task_Body_Stub =>
11268 (1 => True, -- Defining_Identifier (Node1)
11269 2 => False, -- unused
11270 3 => False, -- unused
11271 4 => False, -- Library_Unit (Node4-Sem)
11272 5 => False), -- Corresponding_Body (Node5-Sem)
11274 N_Protected_Body_Stub =>
11275 (1 => True, -- Defining_Identifier (Node1)
11276 2 => False, -- unused
11277 3 => False, -- unused
11278 4 => False, -- Library_Unit (Node4-Sem)
11279 5 => False), -- Corresponding_Body (Node5-Sem)
11281 N_Subunit =>
11282 (1 => True, -- Proper_Body (Node1)
11283 2 => True, -- Name (Node2)
11284 3 => False, -- Corresponding_Stub (Node3-Sem)
11285 4 => False, -- unused
11286 5 => False), -- unused
11288 N_Exception_Declaration =>
11289 (1 => True, -- Defining_Identifier (Node1)
11290 2 => False, -- unused
11291 3 => False, -- Expression (Node3-Sem)
11292 4 => False, -- unused
11293 5 => False), -- unused
11295 N_Handled_Sequence_Of_Statements =>
11296 (1 => True, -- At_End_Proc (Node1)
11297 2 => False, -- First_Real_Statement (Node2-Sem)
11298 3 => True, -- Statements (List3)
11299 4 => True, -- End_Label (Node4)
11300 5 => True), -- Exception_Handlers (List5)
11302 N_Exception_Handler =>
11303 (1 => False, -- Local_Raise_Statements (Elist1)
11304 2 => True, -- Choice_Parameter (Node2)
11305 3 => True, -- Statements (List3)
11306 4 => True, -- Exception_Choices (List4)
11307 5 => False), -- Exception_Label (Node5)
11309 N_Raise_Statement =>
11310 (1 => False, -- unused
11311 2 => True, -- Name (Node2)
11312 3 => True, -- Expression (Node3)
11313 4 => False, -- unused
11314 5 => False), -- unused
11316 N_Generic_Subprogram_Declaration =>
11317 (1 => True, -- Specification (Node1)
11318 2 => True, -- Generic_Formal_Declarations (List2)
11319 3 => False, -- unused
11320 4 => False, -- Parent_Spec (Node4-Sem)
11321 5 => False), -- Corresponding_Body (Node5-Sem)
11323 N_Generic_Package_Declaration =>
11324 (1 => True, -- Specification (Node1)
11325 2 => True, -- Generic_Formal_Declarations (List2)
11326 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11327 4 => False, -- Parent_Spec (Node4-Sem)
11328 5 => False), -- Corresponding_Body (Node5-Sem)
11330 N_Package_Instantiation =>
11331 (1 => True, -- Defining_Unit_Name (Node1)
11332 2 => True, -- Name (Node2)
11333 3 => True, -- Generic_Associations (List3)
11334 4 => False, -- Parent_Spec (Node4-Sem)
11335 5 => False), -- Instance_Spec (Node5-Sem)
11337 N_Procedure_Instantiation =>
11338 (1 => True, -- Defining_Unit_Name (Node1)
11339 2 => True, -- Name (Node2)
11340 3 => True, -- Generic_Associations (List3)
11341 4 => False, -- Parent_Spec (Node4-Sem)
11342 5 => False), -- Instance_Spec (Node5-Sem)
11344 N_Function_Instantiation =>
11345 (1 => True, -- Defining_Unit_Name (Node1)
11346 2 => True, -- Name (Node2)
11347 3 => True, -- Generic_Associations (List3)
11348 4 => False, -- Parent_Spec (Node4-Sem)
11349 5 => False), -- Instance_Spec (Node5-Sem)
11351 N_Generic_Association =>
11352 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11353 2 => True, -- Selector_Name (Node2)
11354 3 => False, -- unused
11355 4 => False, -- unused
11356 5 => False), -- unused
11358 N_Formal_Object_Declaration =>
11359 (1 => True, -- Defining_Identifier (Node1)
11360 2 => False, -- unused
11361 3 => True, -- Access_Definition (Node3)
11362 4 => True, -- Subtype_Mark (Node4)
11363 5 => True), -- Default_Expression (Node5)
11365 N_Formal_Type_Declaration =>
11366 (1 => True, -- Defining_Identifier (Node1)
11367 2 => False, -- unused
11368 3 => True, -- Formal_Type_Definition (Node3)
11369 4 => True, -- Discriminant_Specifications (List4)
11370 5 => False), -- unused
11372 N_Formal_Private_Type_Definition =>
11373 (1 => False, -- unused
11374 2 => False, -- unused
11375 3 => False, -- unused
11376 4 => False, -- unused
11377 5 => False), -- unused
11379 N_Formal_Incomplete_Type_Definition =>
11380 (1 => False, -- unused
11381 2 => False, -- unused
11382 3 => False, -- unused
11383 4 => False, -- unused
11384 5 => False), -- unused
11386 N_Formal_Derived_Type_Definition =>
11387 (1 => False, -- unused
11388 2 => True, -- Interface_List (List2)
11389 3 => False, -- unused
11390 4 => True, -- Subtype_Mark (Node4)
11391 5 => False), -- unused
11393 N_Formal_Discrete_Type_Definition =>
11394 (1 => False, -- unused
11395 2 => False, -- unused
11396 3 => False, -- unused
11397 4 => False, -- unused
11398 5 => False), -- unused
11400 N_Formal_Signed_Integer_Type_Definition =>
11401 (1 => False, -- unused
11402 2 => False, -- unused
11403 3 => False, -- unused
11404 4 => False, -- unused
11405 5 => False), -- unused
11407 N_Formal_Modular_Type_Definition =>
11408 (1 => False, -- unused
11409 2 => False, -- unused
11410 3 => False, -- unused
11411 4 => False, -- unused
11412 5 => False), -- unused
11414 N_Formal_Floating_Point_Definition =>
11415 (1 => False, -- unused
11416 2 => False, -- unused
11417 3 => False, -- unused
11418 4 => False, -- unused
11419 5 => False), -- unused
11421 N_Formal_Ordinary_Fixed_Point_Definition =>
11422 (1 => False, -- unused
11423 2 => False, -- unused
11424 3 => False, -- unused
11425 4 => False, -- unused
11426 5 => False), -- unused
11428 N_Formal_Decimal_Fixed_Point_Definition =>
11429 (1 => False, -- unused
11430 2 => False, -- unused
11431 3 => False, -- unused
11432 4 => False, -- unused
11433 5 => False), -- unused
11435 N_Formal_Concrete_Subprogram_Declaration =>
11436 (1 => True, -- Specification (Node1)
11437 2 => True, -- Default_Name (Node2)
11438 3 => False, -- unused
11439 4 => False, -- unused
11440 5 => False), -- unused
11442 N_Formal_Abstract_Subprogram_Declaration =>
11443 (1 => True, -- Specification (Node1)
11444 2 => True, -- Default_Name (Node2)
11445 3 => False, -- unused
11446 4 => False, -- unused
11447 5 => False), -- unused
11449 N_Formal_Package_Declaration =>
11450 (1 => True, -- Defining_Identifier (Node1)
11451 2 => True, -- Name (Node2)
11452 3 => True, -- Generic_Associations (List3)
11453 4 => False, -- unused
11454 5 => False), -- Instance_Spec (Node5-Sem)
11456 N_Attribute_Definition_Clause =>
11457 (1 => True, -- Chars (Name1)
11458 2 => True, -- Name (Node2)
11459 3 => True, -- Expression (Node3)
11460 4 => False, -- unused
11461 5 => False), -- Next_Rep_Item (Node5-Sem)
11463 N_Aspect_Specification =>
11464 (1 => True, -- Identifier (Node1)
11465 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11466 3 => True, -- Expression (Node3)
11467 4 => False, -- Entity (Node4-Sem)
11468 5 => False), -- Next_Rep_Item (Node5-Sem)
11470 N_Enumeration_Representation_Clause =>
11471 (1 => True, -- Identifier (Node1)
11472 2 => False, -- unused
11473 3 => True, -- Array_Aggregate (Node3)
11474 4 => False, -- unused
11475 5 => False), -- Next_Rep_Item (Node5-Sem)
11477 N_Record_Representation_Clause =>
11478 (1 => True, -- Identifier (Node1)
11479 2 => True, -- Mod_Clause (Node2)
11480 3 => True, -- Component_Clauses (List3)
11481 4 => False, -- unused
11482 5 => False), -- Next_Rep_Item (Node5-Sem)
11484 N_Component_Clause =>
11485 (1 => True, -- Component_Name (Node1)
11486 2 => True, -- Position (Node2)
11487 3 => True, -- First_Bit (Node3)
11488 4 => True, -- Last_Bit (Node4)
11489 5 => False), -- unused
11491 N_Code_Statement =>
11492 (1 => False, -- unused
11493 2 => False, -- unused
11494 3 => True, -- Expression (Node3)
11495 4 => False, -- unused
11496 5 => False), -- unused
11498 N_Op_Rotate_Left =>
11499 (1 => True, -- Chars (Name1)
11500 2 => True, -- Left_Opnd (Node2)
11501 3 => True, -- Right_Opnd (Node3)
11502 4 => False, -- Entity (Node4-Sem)
11503 5 => False), -- Etype (Node5-Sem)
11505 N_Op_Rotate_Right =>
11506 (1 => True, -- Chars (Name1)
11507 2 => True, -- Left_Opnd (Node2)
11508 3 => True, -- Right_Opnd (Node3)
11509 4 => False, -- Entity (Node4-Sem)
11510 5 => False), -- Etype (Node5-Sem)
11512 N_Op_Shift_Left =>
11513 (1 => True, -- Chars (Name1)
11514 2 => True, -- Left_Opnd (Node2)
11515 3 => True, -- Right_Opnd (Node3)
11516 4 => False, -- Entity (Node4-Sem)
11517 5 => False), -- Etype (Node5-Sem)
11519 N_Op_Shift_Right_Arithmetic =>
11520 (1 => True, -- Chars (Name1)
11521 2 => True, -- Left_Opnd (Node2)
11522 3 => True, -- Right_Opnd (Node3)
11523 4 => False, -- Entity (Node4-Sem)
11524 5 => False), -- Etype (Node5-Sem)
11526 N_Op_Shift_Right =>
11527 (1 => True, -- Chars (Name1)
11528 2 => True, -- Left_Opnd (Node2)
11529 3 => True, -- Right_Opnd (Node3)
11530 4 => False, -- Entity (Node4-Sem)
11531 5 => False), -- Etype (Node5-Sem)
11533 N_Delta_Constraint =>
11534 (1 => False, -- unused
11535 2 => False, -- unused
11536 3 => True, -- Delta_Expression (Node3)
11537 4 => True, -- Range_Constraint (Node4)
11538 5 => False), -- unused
11540 N_At_Clause =>
11541 (1 => True, -- Identifier (Node1)
11542 2 => False, -- unused
11543 3 => True, -- Expression (Node3)
11544 4 => False, -- unused
11545 5 => False), -- unused
11547 N_Mod_Clause =>
11548 (1 => False, -- unused
11549 2 => False, -- unused
11550 3 => True, -- Expression (Node3)
11551 4 => True, -- Pragmas_Before (List4)
11552 5 => False), -- unused
11554 N_Conditional_Expression =>
11555 (1 => True, -- Expressions (List1)
11556 2 => False, -- Then_Actions (List2-Sem)
11557 3 => False, -- Else_Actions (List3-Sem)
11558 4 => False, -- unused
11559 5 => False), -- Etype (Node5-Sem)
11561 N_Contract =>
11562 (1 => False, -- Spec_PPC_List (Node1)
11563 2 => False, -- Spec_CTC_List (Node2)
11564 3 => False, -- unused
11565 4 => False, -- unused
11566 5 => False), -- unused
11568 N_Expanded_Name =>
11569 (1 => True, -- Chars (Name1)
11570 2 => True, -- Selector_Name (Node2)
11571 3 => True, -- Prefix (Node3)
11572 4 => False, -- Entity (Node4-Sem)
11573 5 => False), -- Etype (Node5-Sem)
11575 N_Expression_With_Actions =>
11576 (1 => True, -- Actions (List1)
11577 2 => False, -- unused
11578 3 => True, -- Expression (Node3)
11579 4 => False, -- unused
11580 5 => False), -- unused
11582 N_Free_Statement =>
11583 (1 => False, -- Storage_Pool (Node1-Sem)
11584 2 => False, -- Procedure_To_Call (Node2-Sem)
11585 3 => True, -- Expression (Node3)
11586 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11587 5 => False), -- unused
11589 N_Freeze_Entity =>
11590 (1 => True, -- Actions (List1)
11591 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11592 3 => False, -- TSS_Elist (Elist3-Sem)
11593 4 => False, -- Entity (Node4-Sem)
11594 5 => False), -- First_Subtype_Link (Node5-Sem)
11596 N_Implicit_Label_Declaration =>
11597 (1 => True, -- Defining_Identifier (Node1)
11598 2 => False, -- Label_Construct (Node2-Sem)
11599 3 => False, -- unused
11600 4 => False, -- unused
11601 5 => False), -- unused
11603 N_Itype_Reference =>
11604 (1 => False, -- Itype (Node1-Sem)
11605 2 => False, -- unused
11606 3 => False, -- unused
11607 4 => False, -- unused
11608 5 => False), -- unused
11610 N_Raise_Constraint_Error =>
11611 (1 => True, -- Condition (Node1)
11612 2 => False, -- unused
11613 3 => True, -- Reason (Uint3)
11614 4 => False, -- unused
11615 5 => False), -- Etype (Node5-Sem)
11617 N_Raise_Program_Error =>
11618 (1 => True, -- Condition (Node1)
11619 2 => False, -- unused
11620 3 => True, -- Reason (Uint3)
11621 4 => False, -- unused
11622 5 => False), -- Etype (Node5-Sem)
11624 N_Raise_Storage_Error =>
11625 (1 => True, -- Condition (Node1)
11626 2 => False, -- unused
11627 3 => True, -- Reason (Uint3)
11628 4 => False, -- unused
11629 5 => False), -- Etype (Node5-Sem)
11631 N_Push_Constraint_Error_Label =>
11632 (1 => False, -- unused
11633 2 => False, -- unused
11634 3 => False, -- unused
11635 4 => False, -- unused
11636 5 => False), -- unused
11638 N_Push_Program_Error_Label =>
11639 (1 => False, -- Exception_Label
11640 2 => False, -- unused
11641 3 => False, -- unused
11642 4 => False, -- unused
11643 5 => False), -- Exception_Label
11645 N_Push_Storage_Error_Label =>
11646 (1 => False, -- Exception_Label
11647 2 => False, -- unused
11648 3 => False, -- unused
11649 4 => False, -- unused
11650 5 => False), -- Exception_Label
11652 N_Pop_Constraint_Error_Label =>
11653 (1 => False, -- unused
11654 2 => False, -- unused
11655 3 => False, -- unused
11656 4 => False, -- unused
11657 5 => False), -- unused
11659 N_Pop_Program_Error_Label =>
11660 (1 => False, -- unused
11661 2 => False, -- unused
11662 3 => False, -- unused
11663 4 => False, -- unused
11664 5 => False), -- unused
11666 N_Pop_Storage_Error_Label =>
11667 (1 => False, -- unused
11668 2 => False, -- unused
11669 3 => False, -- unused
11670 4 => False, -- unused
11671 5 => False), -- unused
11673 N_Reference =>
11674 (1 => False, -- unused
11675 2 => False, -- unused
11676 3 => True, -- Prefix (Node3)
11677 4 => False, -- unused
11678 5 => False), -- Etype (Node5-Sem)
11680 N_Subprogram_Info =>
11681 (1 => True, -- Identifier (Node1)
11682 2 => False, -- unused
11683 3 => False, -- unused
11684 4 => False, -- unused
11685 5 => False), -- Etype (Node5-Sem)
11687 N_Unchecked_Expression =>
11688 (1 => False, -- unused
11689 2 => False, -- unused
11690 3 => True, -- Expression (Node3)
11691 4 => False, -- unused
11692 5 => False), -- Etype (Node5-Sem)
11694 N_Unchecked_Type_Conversion =>
11695 (1 => False, -- unused
11696 2 => False, -- unused
11697 3 => True, -- Expression (Node3)
11698 4 => True, -- Subtype_Mark (Node4)
11699 5 => False), -- Etype (Node5-Sem)
11701 N_Validate_Unchecked_Conversion =>
11702 (1 => False, -- Source_Type (Node1-Sem)
11703 2 => False, -- Target_Type (Node2-Sem)
11704 3 => False, -- unused
11705 4 => False, -- unused
11706 5 => False), -- unused
11708 -- Entries for SCIL nodes
11710 N_SCIL_Dispatch_Table_Tag_Init =>
11711 (1 => False, -- unused
11712 2 => False, -- unused
11713 3 => False, -- unused
11714 4 => False, -- SCIL_Entity (Node4-Sem)
11715 5 => False), -- unused
11717 N_SCIL_Dispatching_Call =>
11718 (1 => False, -- unused
11719 2 => False, -- SCIL_Target_Prim (Node2-Sem)
11720 3 => False, -- unused
11721 4 => False, -- SCIL_Entity (Node4-Sem)
11722 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
11724 N_SCIL_Membership_Test =>
11725 (1 => False, -- unused
11726 2 => False, -- unused
11727 3 => False, -- unused
11728 4 => False, -- SCIL_Entity (Node4-Sem)
11729 5 => False), -- SCIL_Tag_Value (Node5-Sem)
11731 -- Entries for Empty, Error and Unused. Even thought these have a Chars
11732 -- field for debugging purposes, they are not really syntactic fields, so
11733 -- we mark all fields as unused.
11735 N_Empty =>
11736 (1 => False, -- unused
11737 2 => False, -- unused
11738 3 => False, -- unused
11739 4 => False, -- unused
11740 5 => False), -- unused
11742 N_Error =>
11743 (1 => False, -- unused
11744 2 => False, -- unused
11745 3 => False, -- unused
11746 4 => False, -- unused
11747 5 => False), -- unused
11749 N_Unused_At_Start =>
11750 (1 => False, -- unused
11751 2 => False, -- unused
11752 3 => False, -- unused
11753 4 => False, -- unused
11754 5 => False), -- unused
11756 N_Unused_At_End =>
11757 (1 => False, -- unused
11758 2 => False, -- unused
11759 3 => False, -- unused
11760 4 => False, -- unused
11761 5 => False)); -- unused
11763 --------------------
11764 -- Inline Pragmas --
11765 --------------------
11767 pragma Inline (ABE_Is_Certain);
11768 pragma Inline (Abort_Present);
11769 pragma Inline (Abortable_Part);
11770 pragma Inline (Abstract_Present);
11771 pragma Inline (Accept_Handler_Records);
11772 pragma Inline (Accept_Statement);
11773 pragma Inline (Access_Definition);
11774 pragma Inline (Access_To_Subprogram_Definition);
11775 pragma Inline (Access_Types_To_Process);
11776 pragma Inline (Actions);
11777 pragma Inline (Activation_Chain_Entity);
11778 pragma Inline (Acts_As_Spec);
11779 pragma Inline (Actual_Designated_Subtype);
11780 pragma Inline (Address_Warning_Posted);
11781 pragma Inline (Aggregate_Bounds);
11782 pragma Inline (Aliased_Present);
11783 pragma Inline (All_Others);
11784 pragma Inline (All_Present);
11785 pragma Inline (Alternatives);
11786 pragma Inline (Ancestor_Part);
11787 pragma Inline (Atomic_Sync_Required);
11788 pragma Inline (Array_Aggregate);
11789 pragma Inline (Aspect_Rep_Item);
11790 pragma Inline (Assignment_OK);
11791 pragma Inline (Associated_Node);
11792 pragma Inline (At_End_Proc);
11793 pragma Inline (Attribute_Name);
11794 pragma Inline (Aux_Decls_Node);
11795 pragma Inline (Backwards_OK);
11796 pragma Inline (Bad_Is_Detected);
11797 pragma Inline (Body_To_Inline);
11798 pragma Inline (Body_Required);
11799 pragma Inline (By_Ref);
11800 pragma Inline (Box_Present);
11801 pragma Inline (Char_Literal_Value);
11802 pragma Inline (Chars);
11803 pragma Inline (Check_Address_Alignment);
11804 pragma Inline (Choice_Parameter);
11805 pragma Inline (Choices);
11806 pragma Inline (Class_Present);
11807 pragma Inline (Comes_From_Extended_Return_Statement);
11808 pragma Inline (Compile_Time_Known_Aggregate);
11809 pragma Inline (Component_Associations);
11810 pragma Inline (Component_Clauses);
11811 pragma Inline (Component_Definition);
11812 pragma Inline (Component_Items);
11813 pragma Inline (Component_List);
11814 pragma Inline (Component_Name);
11815 pragma Inline (Componentwise_Assignment);
11816 pragma Inline (Condition);
11817 pragma Inline (Condition_Actions);
11818 pragma Inline (Config_Pragmas);
11819 pragma Inline (Constant_Present);
11820 pragma Inline (Constraint);
11821 pragma Inline (Constraints);
11822 pragma Inline (Context_Installed);
11823 pragma Inline (Context_Items);
11824 pragma Inline (Context_Pending);
11825 pragma Inline (Controlling_Argument);
11826 pragma Inline (Conversion_OK);
11827 pragma Inline (Corresponding_Aspect);
11828 pragma Inline (Corresponding_Body);
11829 pragma Inline (Corresponding_Formal_Spec);
11830 pragma Inline (Corresponding_Generic_Association);
11831 pragma Inline (Corresponding_Integer_Value);
11832 pragma Inline (Corresponding_Spec);
11833 pragma Inline (Corresponding_Stub);
11834 pragma Inline (Dcheck_Function);
11835 pragma Inline (Declarations);
11836 pragma Inline (Default_Expression);
11837 pragma Inline (Default_Storage_Pool);
11838 pragma Inline (Default_Name);
11839 pragma Inline (Defining_Identifier);
11840 pragma Inline (Defining_Unit_Name);
11841 pragma Inline (Delay_Alternative);
11842 pragma Inline (Delay_Statement);
11843 pragma Inline (Delta_Expression);
11844 pragma Inline (Digits_Expression);
11845 pragma Inline (Discr_Check_Funcs_Built);
11846 pragma Inline (Discrete_Choices);
11847 pragma Inline (Discrete_Range);
11848 pragma Inline (Discrete_Subtype_Definition);
11849 pragma Inline (Discrete_Subtype_Definitions);
11850 pragma Inline (Discriminant_Specifications);
11851 pragma Inline (Discriminant_Type);
11852 pragma Inline (Do_Accessibility_Check);
11853 pragma Inline (Do_Discriminant_Check);
11854 pragma Inline (Do_Length_Check);
11855 pragma Inline (Do_Division_Check);
11856 pragma Inline (Do_Overflow_Check);
11857 pragma Inline (Do_Range_Check);
11858 pragma Inline (Do_Storage_Check);
11859 pragma Inline (Do_Tag_Check);
11860 pragma Inline (Elaborate_Present);
11861 pragma Inline (Elaborate_All_Desirable);
11862 pragma Inline (Elaborate_All_Present);
11863 pragma Inline (Elaborate_Desirable);
11864 pragma Inline (Elaboration_Boolean);
11865 pragma Inline (Else_Actions);
11866 pragma Inline (Else_Statements);
11867 pragma Inline (Elsif_Parts);
11868 pragma Inline (Enclosing_Variant);
11869 pragma Inline (End_Label);
11870 pragma Inline (End_Span);
11871 pragma Inline (Entity);
11872 pragma Inline (Entity_Or_Associated_Node);
11873 pragma Inline (Entry_Body_Formal_Part);
11874 pragma Inline (Entry_Call_Alternative);
11875 pragma Inline (Entry_Call_Statement);
11876 pragma Inline (Entry_Direct_Name);
11877 pragma Inline (Entry_Index);
11878 pragma Inline (Entry_Index_Specification);
11879 pragma Inline (Etype);
11880 pragma Inline (Exception_Choices);
11881 pragma Inline (Exception_Handlers);
11882 pragma Inline (Exception_Junk);
11883 pragma Inline (Exception_Label);
11884 pragma Inline (Expansion_Delayed);
11885 pragma Inline (Explicit_Actual_Parameter);
11886 pragma Inline (Explicit_Generic_Actual_Parameter);
11887 pragma Inline (Expression);
11888 pragma Inline (Expressions);
11889 pragma Inline (First_Bit);
11890 pragma Inline (First_Inlined_Subprogram);
11891 pragma Inline (First_Name);
11892 pragma Inline (First_Named_Actual);
11893 pragma Inline (First_Real_Statement);
11894 pragma Inline (First_Subtype_Link);
11895 pragma Inline (Float_Truncate);
11896 pragma Inline (Formal_Type_Definition);
11897 pragma Inline (Forwards_OK);
11898 pragma Inline (From_Aspect_Specification);
11899 pragma Inline (From_At_End);
11900 pragma Inline (From_At_Mod);
11901 pragma Inline (From_Default);
11902 pragma Inline (Generic_Associations);
11903 pragma Inline (Generic_Formal_Declarations);
11904 pragma Inline (Generic_Parent);
11905 pragma Inline (Generic_Parent_Type);
11906 pragma Inline (Handled_Statement_Sequence);
11907 pragma Inline (Handler_List_Entry);
11908 pragma Inline (Has_Created_Identifier);
11909 pragma Inline (Has_Dereference_Action);
11910 pragma Inline (Has_Dynamic_Length_Check);
11911 pragma Inline (Has_Dynamic_Range_Check);
11912 pragma Inline (Has_Init_Expression);
11913 pragma Inline (Has_Local_Raise);
11914 pragma Inline (Has_Self_Reference);
11915 pragma Inline (Has_No_Elaboration_Code);
11916 pragma Inline (Has_Pragma_Suppress_All);
11917 pragma Inline (Has_Private_View);
11918 pragma Inline (Has_Relative_Deadline_Pragma);
11919 pragma Inline (Has_Storage_Size_Pragma);
11920 pragma Inline (Has_Wide_Character);
11921 pragma Inline (Has_Wide_Wide_Character);
11922 pragma Inline (Header_Size_Added);
11923 pragma Inline (Hidden_By_Use_Clause);
11924 pragma Inline (High_Bound);
11925 pragma Inline (Identifier);
11926 pragma Inline (Implicit_With);
11927 pragma Inline (Implicit_With_From_Instantiation);
11928 pragma Inline (Interface_List);
11929 pragma Inline (Interface_Present);
11930 pragma Inline (Includes_Infinities);
11931 pragma Inline (Import_Interface_Present);
11932 pragma Inline (In_Present);
11933 pragma Inline (Inherited_Discriminant);
11934 pragma Inline (Instance_Spec);
11935 pragma Inline (Intval);
11936 pragma Inline (Iterator_Specification);
11937 pragma Inline (Is_Accessibility_Actual);
11938 pragma Inline (Is_Asynchronous_Call_Block);
11939 pragma Inline (Is_Boolean_Aspect);
11940 pragma Inline (Is_Component_Left_Opnd);
11941 pragma Inline (Is_Component_Right_Opnd);
11942 pragma Inline (Is_Controlling_Actual);
11943 pragma Inline (Is_Delayed_Aspect);
11944 pragma Inline (Is_Dynamic_Coextension);
11945 pragma Inline (Is_Elsif);
11946 pragma Inline (Is_Entry_Barrier_Function);
11947 pragma Inline (Is_Expanded_Build_In_Place_Call);
11948 pragma Inline (Is_Finalization_Wrapper);
11949 pragma Inline (Is_Folded_In_Parser);
11950 pragma Inline (Is_In_Discriminant_Check);
11951 pragma Inline (Is_Machine_Number);
11952 pragma Inline (Is_Null_Loop);
11953 pragma Inline (Is_Overloaded);
11954 pragma Inline (Is_Power_Of_2_For_Shift);
11955 pragma Inline (Is_Prefixed_Call);
11956 pragma Inline (Is_Protected_Subprogram_Body);
11957 pragma Inline (Is_Static_Coextension);
11958 pragma Inline (Is_Static_Expression);
11959 pragma Inline (Is_Subprogram_Descriptor);
11960 pragma Inline (Is_Task_Allocation_Block);
11961 pragma Inline (Is_Task_Master);
11962 pragma Inline (Iteration_Scheme);
11963 pragma Inline (Itype);
11964 pragma Inline (Kill_Range_Check);
11965 pragma Inline (Last_Bit);
11966 pragma Inline (Last_Name);
11967 pragma Inline (Library_Unit);
11968 pragma Inline (Label_Construct);
11969 pragma Inline (Left_Opnd);
11970 pragma Inline (Limited_View_Installed);
11971 pragma Inline (Limited_Present);
11972 pragma Inline (Literals);
11973 pragma Inline (Local_Raise_Not_OK);
11974 pragma Inline (Local_Raise_Statements);
11975 pragma Inline (Loop_Actions);
11976 pragma Inline (Loop_Parameter_Specification);
11977 pragma Inline (Low_Bound);
11978 pragma Inline (Mod_Clause);
11979 pragma Inline (More_Ids);
11980 pragma Inline (Must_Be_Byte_Aligned);
11981 pragma Inline (Must_Not_Freeze);
11982 pragma Inline (Must_Not_Override);
11983 pragma Inline (Must_Override);
11984 pragma Inline (Name);
11985 pragma Inline (Names);
11986 pragma Inline (Next_Entity);
11987 pragma Inline (Next_Exit_Statement);
11988 pragma Inline (Next_Implicit_With);
11989 pragma Inline (Next_Named_Actual);
11990 pragma Inline (Next_Pragma);
11991 pragma Inline (Next_Rep_Item);
11992 pragma Inline (Next_Use_Clause);
11993 pragma Inline (No_Ctrl_Actions);
11994 pragma Inline (No_Elaboration_Check);
11995 pragma Inline (No_Entities_Ref_In_Spec);
11996 pragma Inline (No_Initialization);
11997 pragma Inline (No_Truncation);
11998 pragma Inline (Null_Present);
11999 pragma Inline (Null_Exclusion_Present);
12000 pragma Inline (Null_Exclusion_In_Return_Present);
12001 pragma Inline (Null_Record_Present);
12002 pragma Inline (Object_Definition);
12003 pragma Inline (Of_Present);
12004 pragma Inline (Original_Discriminant);
12005 pragma Inline (Original_Entity);
12006 pragma Inline (Others_Discrete_Choices);
12007 pragma Inline (Out_Present);
12008 pragma Inline (Parameter_Associations);
12009 pragma Inline (Parameter_Specifications);
12010 pragma Inline (Parameter_List_Truncated);
12011 pragma Inline (Parameter_Type);
12012 pragma Inline (Parent_Spec);
12013 pragma Inline (Position);
12014 pragma Inline (Pragma_Argument_Associations);
12015 pragma Inline (Pragma_Identifier);
12016 pragma Inline (Pragmas_After);
12017 pragma Inline (Pragmas_Before);
12018 pragma Inline (Prefix);
12019 pragma Inline (Premature_Use);
12020 pragma Inline (Present_Expr);
12021 pragma Inline (Prev_Ids);
12022 pragma Inline (Print_In_Hex);
12023 pragma Inline (Private_Declarations);
12024 pragma Inline (Private_Present);
12025 pragma Inline (Procedure_To_Call);
12026 pragma Inline (Proper_Body);
12027 pragma Inline (Protected_Definition);
12028 pragma Inline (Protected_Present);
12029 pragma Inline (Raises_Constraint_Error);
12030 pragma Inline (Range_Constraint);
12031 pragma Inline (Range_Expression);
12032 pragma Inline (Real_Range_Specification);
12033 pragma Inline (Realval);
12034 pragma Inline (Reason);
12035 pragma Inline (Record_Extension_Part);
12036 pragma Inline (Redundant_Use);
12037 pragma Inline (Renaming_Exception);
12038 pragma Inline (Result_Definition);
12039 pragma Inline (Return_Object_Declarations);
12040 pragma Inline (Return_Statement_Entity);
12041 pragma Inline (Reverse_Present);
12042 pragma Inline (Right_Opnd);
12043 pragma Inline (Rounded_Result);
12044 pragma Inline (SCIL_Controlling_Tag);
12045 pragma Inline (SCIL_Entity);
12046 pragma Inline (SCIL_Tag_Value);
12047 pragma Inline (SCIL_Target_Prim);
12048 pragma Inline (Scope);
12049 pragma Inline (Select_Alternatives);
12050 pragma Inline (Selector_Name);
12051 pragma Inline (Selector_Names);
12052 pragma Inline (Shift_Count_OK);
12053 pragma Inline (Source_Type);
12054 pragma Inline (Spec_PPC_List);
12055 pragma Inline (Spec_CTC_List);
12056 pragma Inline (Specification);
12057 pragma Inline (Split_PPC);
12058 pragma Inline (Statements);
12059 pragma Inline (Storage_Pool);
12060 pragma Inline (Subpool_Handle_Name);
12061 pragma Inline (Strval);
12062 pragma Inline (Subtype_Indication);
12063 pragma Inline (Subtype_Mark);
12064 pragma Inline (Subtype_Marks);
12065 pragma Inline (Suppress_Assignment_Checks);
12066 pragma Inline (Suppress_Loop_Warnings);
12067 pragma Inline (Synchronized_Present);
12068 pragma Inline (Tagged_Present);
12069 pragma Inline (Target_Type);
12070 pragma Inline (Task_Definition);
12071 pragma Inline (Task_Present);
12072 pragma Inline (Then_Actions);
12073 pragma Inline (Then_Statements);
12074 pragma Inline (Triggering_Alternative);
12075 pragma Inline (Triggering_Statement);
12076 pragma Inline (Treat_Fixed_As_Integer);
12077 pragma Inline (TSS_Elist);
12078 pragma Inline (Type_Definition);
12079 pragma Inline (Unit);
12080 pragma Inline (Unknown_Discriminants_Present);
12081 pragma Inline (Unreferenced_In_Spec);
12082 pragma Inline (Variant_Part);
12083 pragma Inline (Variants);
12084 pragma Inline (Visible_Declarations);
12085 pragma Inline (Used_Operations);
12086 pragma Inline (Was_Originally_Stub);
12087 pragma Inline (Withed_Body);
12089 pragma Inline (Set_ABE_Is_Certain);
12090 pragma Inline (Set_Abort_Present);
12091 pragma Inline (Set_Abortable_Part);
12092 pragma Inline (Set_Abstract_Present);
12093 pragma Inline (Set_Accept_Handler_Records);
12094 pragma Inline (Set_Accept_Statement);
12095 pragma Inline (Set_Access_Definition);
12096 pragma Inline (Set_Access_To_Subprogram_Definition);
12097 pragma Inline (Set_Access_Types_To_Process);
12098 pragma Inline (Set_Actions);
12099 pragma Inline (Set_Activation_Chain_Entity);
12100 pragma Inline (Set_Acts_As_Spec);
12101 pragma Inline (Set_Actual_Designated_Subtype);
12102 pragma Inline (Set_Address_Warning_Posted);
12103 pragma Inline (Set_Aggregate_Bounds);
12104 pragma Inline (Set_Aliased_Present);
12105 pragma Inline (Set_All_Others);
12106 pragma Inline (Set_All_Present);
12107 pragma Inline (Set_Alternatives);
12108 pragma Inline (Set_Ancestor_Part);
12109 pragma Inline (Set_Atomic_Sync_Required);
12110 pragma Inline (Set_Array_Aggregate);
12111 pragma Inline (Set_Aspect_Rep_Item);
12112 pragma Inline (Set_Assignment_OK);
12113 pragma Inline (Set_Associated_Node);
12114 pragma Inline (Set_At_End_Proc);
12115 pragma Inline (Set_Attribute_Name);
12116 pragma Inline (Set_Aux_Decls_Node);
12117 pragma Inline (Set_Backwards_OK);
12118 pragma Inline (Set_Bad_Is_Detected);
12119 pragma Inline (Set_Body_To_Inline);
12120 pragma Inline (Set_Body_Required);
12121 pragma Inline (Set_By_Ref);
12122 pragma Inline (Set_Box_Present);
12123 pragma Inline (Set_Char_Literal_Value);
12124 pragma Inline (Set_Chars);
12125 pragma Inline (Set_Check_Address_Alignment);
12126 pragma Inline (Set_Choice_Parameter);
12127 pragma Inline (Set_Choices);
12128 pragma Inline (Set_Class_Present);
12129 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12130 pragma Inline (Set_Compile_Time_Known_Aggregate);
12131 pragma Inline (Set_Component_Associations);
12132 pragma Inline (Set_Component_Clauses);
12133 pragma Inline (Set_Component_Definition);
12134 pragma Inline (Set_Component_Items);
12135 pragma Inline (Set_Component_List);
12136 pragma Inline (Set_Component_Name);
12137 pragma Inline (Set_Componentwise_Assignment);
12138 pragma Inline (Set_Condition);
12139 pragma Inline (Set_Condition_Actions);
12140 pragma Inline (Set_Config_Pragmas);
12141 pragma Inline (Set_Constant_Present);
12142 pragma Inline (Set_Constraint);
12143 pragma Inline (Set_Constraints);
12144 pragma Inline (Set_Context_Installed);
12145 pragma Inline (Set_Context_Items);
12146 pragma Inline (Set_Context_Pending);
12147 pragma Inline (Set_Controlling_Argument);
12148 pragma Inline (Set_Conversion_OK);
12149 pragma Inline (Set_Corresponding_Aspect);
12150 pragma Inline (Set_Corresponding_Body);
12151 pragma Inline (Set_Corresponding_Formal_Spec);
12152 pragma Inline (Set_Corresponding_Generic_Association);
12153 pragma Inline (Set_Corresponding_Integer_Value);
12154 pragma Inline (Set_Corresponding_Spec);
12155 pragma Inline (Set_Corresponding_Stub);
12156 pragma Inline (Set_Dcheck_Function);
12157 pragma Inline (Set_Declarations);
12158 pragma Inline (Set_Default_Expression);
12159 pragma Inline (Set_Default_Storage_Pool);
12160 pragma Inline (Set_Default_Name);
12161 pragma Inline (Set_Defining_Identifier);
12162 pragma Inline (Set_Defining_Unit_Name);
12163 pragma Inline (Set_Delay_Alternative);
12164 pragma Inline (Set_Delay_Statement);
12165 pragma Inline (Set_Delta_Expression);
12166 pragma Inline (Set_Digits_Expression);
12167 pragma Inline (Set_Discr_Check_Funcs_Built);
12168 pragma Inline (Set_Discrete_Choices);
12169 pragma Inline (Set_Discrete_Range);
12170 pragma Inline (Set_Discrete_Subtype_Definition);
12171 pragma Inline (Set_Discrete_Subtype_Definitions);
12172 pragma Inline (Set_Discriminant_Specifications);
12173 pragma Inline (Set_Discriminant_Type);
12174 pragma Inline (Set_Do_Accessibility_Check);
12175 pragma Inline (Set_Do_Discriminant_Check);
12176 pragma Inline (Set_Do_Length_Check);
12177 pragma Inline (Set_Do_Division_Check);
12178 pragma Inline (Set_Do_Overflow_Check);
12179 pragma Inline (Set_Do_Range_Check);
12180 pragma Inline (Set_Do_Storage_Check);
12181 pragma Inline (Set_Do_Tag_Check);
12182 pragma Inline (Set_Elaborate_Present);
12183 pragma Inline (Set_Elaborate_All_Desirable);
12184 pragma Inline (Set_Elaborate_All_Present);
12185 pragma Inline (Set_Elaborate_Desirable);
12186 pragma Inline (Set_Elaboration_Boolean);
12187 pragma Inline (Set_Else_Actions);
12188 pragma Inline (Set_Else_Statements);
12189 pragma Inline (Set_Elsif_Parts);
12190 pragma Inline (Set_Enclosing_Variant);
12191 pragma Inline (Set_End_Label);
12192 pragma Inline (Set_End_Span);
12193 pragma Inline (Set_Entity);
12194 pragma Inline (Set_Entry_Body_Formal_Part);
12195 pragma Inline (Set_Entry_Call_Alternative);
12196 pragma Inline (Set_Entry_Call_Statement);
12197 pragma Inline (Set_Entry_Direct_Name);
12198 pragma Inline (Set_Entry_Index);
12199 pragma Inline (Set_Entry_Index_Specification);
12200 pragma Inline (Set_Etype);
12201 pragma Inline (Set_Exception_Choices);
12202 pragma Inline (Set_Exception_Handlers);
12203 pragma Inline (Set_Exception_Junk);
12204 pragma Inline (Set_Exception_Label);
12205 pragma Inline (Set_Expansion_Delayed);
12206 pragma Inline (Set_Explicit_Actual_Parameter);
12207 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12208 pragma Inline (Set_Expression);
12209 pragma Inline (Set_Expressions);
12210 pragma Inline (Set_First_Bit);
12211 pragma Inline (Set_First_Inlined_Subprogram);
12212 pragma Inline (Set_First_Name);
12213 pragma Inline (Set_First_Named_Actual);
12214 pragma Inline (Set_First_Real_Statement);
12215 pragma Inline (Set_First_Subtype_Link);
12216 pragma Inline (Set_Float_Truncate);
12217 pragma Inline (Set_Formal_Type_Definition);
12218 pragma Inline (Set_Forwards_OK);
12219 pragma Inline (Set_From_Aspect_Specification);
12220 pragma Inline (Set_From_At_End);
12221 pragma Inline (Set_From_At_Mod);
12222 pragma Inline (Set_From_Default);
12223 pragma Inline (Set_Generic_Associations);
12224 pragma Inline (Set_Generic_Formal_Declarations);
12225 pragma Inline (Set_Generic_Parent);
12226 pragma Inline (Set_Generic_Parent_Type);
12227 pragma Inline (Set_Handled_Statement_Sequence);
12228 pragma Inline (Set_Handler_List_Entry);
12229 pragma Inline (Set_Has_Created_Identifier);
12230 pragma Inline (Set_Has_Dereference_Action);
12231 pragma Inline (Set_Has_Dynamic_Length_Check);
12232 pragma Inline (Set_Has_Init_Expression);
12233 pragma Inline (Set_Has_Local_Raise);
12234 pragma Inline (Set_Has_Dynamic_Range_Check);
12235 pragma Inline (Set_Has_No_Elaboration_Code);
12236 pragma Inline (Set_Has_Pragma_Suppress_All);
12237 pragma Inline (Set_Has_Private_View);
12238 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12239 pragma Inline (Set_Has_Storage_Size_Pragma);
12240 pragma Inline (Set_Has_Wide_Character);
12241 pragma Inline (Set_Has_Wide_Wide_Character);
12242 pragma Inline (Set_Header_Size_Added);
12243 pragma Inline (Set_Hidden_By_Use_Clause);
12244 pragma Inline (Set_High_Bound);
12245 pragma Inline (Set_Identifier);
12246 pragma Inline (Set_Implicit_With);
12247 pragma Inline (Set_Includes_Infinities);
12248 pragma Inline (Set_Interface_List);
12249 pragma Inline (Set_Interface_Present);
12250 pragma Inline (Set_Import_Interface_Present);
12251 pragma Inline (Set_In_Present);
12252 pragma Inline (Set_Inherited_Discriminant);
12253 pragma Inline (Set_Instance_Spec);
12254 pragma Inline (Set_Intval);
12255 pragma Inline (Set_Iterator_Specification);
12256 pragma Inline (Set_Is_Accessibility_Actual);
12257 pragma Inline (Set_Is_Asynchronous_Call_Block);
12258 pragma Inline (Set_Is_Boolean_Aspect);
12259 pragma Inline (Set_Is_Component_Left_Opnd);
12260 pragma Inline (Set_Is_Component_Right_Opnd);
12261 pragma Inline (Set_Is_Controlling_Actual);
12262 pragma Inline (Set_Is_Delayed_Aspect);
12263 pragma Inline (Set_Is_Dynamic_Coextension);
12264 pragma Inline (Set_Is_Elsif);
12265 pragma Inline (Set_Is_Entry_Barrier_Function);
12266 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12267 pragma Inline (Set_Is_Finalization_Wrapper);
12268 pragma Inline (Set_Is_Folded_In_Parser);
12269 pragma Inline (Set_Is_In_Discriminant_Check);
12270 pragma Inline (Set_Is_Machine_Number);
12271 pragma Inline (Set_Is_Null_Loop);
12272 pragma Inline (Set_Is_Overloaded);
12273 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12274 pragma Inline (Set_Is_Prefixed_Call);
12275 pragma Inline (Set_Is_Protected_Subprogram_Body);
12276 pragma Inline (Set_Has_Self_Reference);
12277 pragma Inline (Set_Is_Static_Coextension);
12278 pragma Inline (Set_Is_Static_Expression);
12279 pragma Inline (Set_Is_Subprogram_Descriptor);
12280 pragma Inline (Set_Is_Task_Allocation_Block);
12281 pragma Inline (Set_Is_Task_Master);
12282 pragma Inline (Set_Iteration_Scheme);
12283 pragma Inline (Set_Itype);
12284 pragma Inline (Set_Kill_Range_Check);
12285 pragma Inline (Set_Last_Bit);
12286 pragma Inline (Set_Last_Name);
12287 pragma Inline (Set_Library_Unit);
12288 pragma Inline (Set_Label_Construct);
12289 pragma Inline (Set_Left_Opnd);
12290 pragma Inline (Set_Limited_View_Installed);
12291 pragma Inline (Set_Limited_Present);
12292 pragma Inline (Set_Literals);
12293 pragma Inline (Set_Local_Raise_Not_OK);
12294 pragma Inline (Set_Local_Raise_Statements);
12295 pragma Inline (Set_Loop_Actions);
12296 pragma Inline (Set_Loop_Parameter_Specification);
12297 pragma Inline (Set_Low_Bound);
12298 pragma Inline (Set_Mod_Clause);
12299 pragma Inline (Set_More_Ids);
12300 pragma Inline (Set_Must_Be_Byte_Aligned);
12301 pragma Inline (Set_Must_Not_Freeze);
12302 pragma Inline (Set_Must_Not_Override);
12303 pragma Inline (Set_Must_Override);
12304 pragma Inline (Set_Name);
12305 pragma Inline (Set_Names);
12306 pragma Inline (Set_Next_Entity);
12307 pragma Inline (Set_Next_Exit_Statement);
12308 pragma Inline (Set_Next_Implicit_With);
12309 pragma Inline (Set_Next_Named_Actual);
12310 pragma Inline (Set_Next_Pragma);
12311 pragma Inline (Set_Next_Rep_Item);
12312 pragma Inline (Set_Next_Use_Clause);
12313 pragma Inline (Set_No_Ctrl_Actions);
12314 pragma Inline (Set_No_Elaboration_Check);
12315 pragma Inline (Set_No_Entities_Ref_In_Spec);
12316 pragma Inline (Set_No_Initialization);
12317 pragma Inline (Set_No_Truncation);
12318 pragma Inline (Set_Null_Present);
12319 pragma Inline (Set_Null_Exclusion_Present);
12320 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12321 pragma Inline (Set_Null_Record_Present);
12322 pragma Inline (Set_Object_Definition);
12323 pragma Inline (Set_Of_Present);
12324 pragma Inline (Set_Original_Discriminant);
12325 pragma Inline (Set_Original_Entity);
12326 pragma Inline (Set_Others_Discrete_Choices);
12327 pragma Inline (Set_Out_Present);
12328 pragma Inline (Set_Parameter_Associations);
12329 pragma Inline (Set_Parameter_Specifications);
12330 pragma Inline (Set_Parameter_List_Truncated);
12331 pragma Inline (Set_Parameter_Type);
12332 pragma Inline (Set_Parent_Spec);
12333 pragma Inline (Set_Position);
12334 pragma Inline (Set_Pragma_Argument_Associations);
12335 pragma Inline (Set_Pragma_Identifier);
12336 pragma Inline (Set_Pragmas_After);
12337 pragma Inline (Set_Pragmas_Before);
12338 pragma Inline (Set_Prefix);
12339 pragma Inline (Set_Premature_Use);
12340 pragma Inline (Set_Present_Expr);
12341 pragma Inline (Set_Prev_Ids);
12342 pragma Inline (Set_Print_In_Hex);
12343 pragma Inline (Set_Private_Declarations);
12344 pragma Inline (Set_Private_Present);
12345 pragma Inline (Set_Procedure_To_Call);
12346 pragma Inline (Set_Proper_Body);
12347 pragma Inline (Set_Protected_Definition);
12348 pragma Inline (Set_Protected_Present);
12349 pragma Inline (Set_Raises_Constraint_Error);
12350 pragma Inline (Set_Range_Constraint);
12351 pragma Inline (Set_Range_Expression);
12352 pragma Inline (Set_Real_Range_Specification);
12353 pragma Inline (Set_Realval);
12354 pragma Inline (Set_Reason);
12355 pragma Inline (Set_Record_Extension_Part);
12356 pragma Inline (Set_Redundant_Use);
12357 pragma Inline (Set_Renaming_Exception);
12358 pragma Inline (Set_Result_Definition);
12359 pragma Inline (Set_Return_Object_Declarations);
12360 pragma Inline (Set_Reverse_Present);
12361 pragma Inline (Set_Right_Opnd);
12362 pragma Inline (Set_Rounded_Result);
12363 pragma Inline (Set_SCIL_Controlling_Tag);
12364 pragma Inline (Set_SCIL_Entity);
12365 pragma Inline (Set_SCIL_Tag_Value);
12366 pragma Inline (Set_SCIL_Target_Prim);
12367 pragma Inline (Set_Scope);
12368 pragma Inline (Set_Select_Alternatives);
12369 pragma Inline (Set_Selector_Name);
12370 pragma Inline (Set_Selector_Names);
12371 pragma Inline (Set_Shift_Count_OK);
12372 pragma Inline (Set_Source_Type);
12373 pragma Inline (Set_Spec_PPC_List);
12374 pragma Inline (Set_Spec_CTC_List);
12375 pragma Inline (Set_Specification);
12376 pragma Inline (Set_Split_PPC);
12377 pragma Inline (Set_Statements);
12378 pragma Inline (Set_Storage_Pool);
12379 pragma Inline (Set_Subpool_Handle_Name);
12380 pragma Inline (Set_Strval);
12381 pragma Inline (Set_Subtype_Indication);
12382 pragma Inline (Set_Subtype_Mark);
12383 pragma Inline (Set_Subtype_Marks);
12384 pragma Inline (Set_Suppress_Assignment_Checks);
12385 pragma Inline (Set_Suppress_Loop_Warnings);
12386 pragma Inline (Set_Synchronized_Present);
12387 pragma Inline (Set_Tagged_Present);
12388 pragma Inline (Set_Target_Type);
12389 pragma Inline (Set_Task_Definition);
12390 pragma Inline (Set_Task_Present);
12391 pragma Inline (Set_Then_Actions);
12392 pragma Inline (Set_Then_Statements);
12393 pragma Inline (Set_Triggering_Alternative);
12394 pragma Inline (Set_Triggering_Statement);
12395 pragma Inline (Set_Treat_Fixed_As_Integer);
12396 pragma Inline (Set_TSS_Elist);
12397 pragma Inline (Set_Type_Definition);
12398 pragma Inline (Set_Unit);
12399 pragma Inline (Set_Unknown_Discriminants_Present);
12400 pragma Inline (Set_Unreferenced_In_Spec);
12401 pragma Inline (Set_Variant_Part);
12402 pragma Inline (Set_Variants);
12403 pragma Inline (Set_Visible_Declarations);
12404 pragma Inline (Set_Used_Operations);
12405 pragma Inline (Set_Was_Originally_Stub);
12406 pragma Inline (Set_Withed_Body);
12408 --------------
12409 -- Synonyms --
12410 --------------
12412 -- These synonyms are to aid in transition, they should eventually be
12413 -- removed when all remaining references to the obsolete name are gone.
12415 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12416 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12417 -- should refer to N_Simple_Return_Statement.
12419 N_Parameterized_Expression : constant Node_Kind := N_Expression_Function;
12420 -- Old name for expression functions (used during Ada 2012 transition)
12422 end Sinfo;