[multiple changes]
[gcc.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2009, 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 ------------------------------------------------------------------------------
31
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.
35
36 -- The grammar in the RM is followed very closely in the tree
37 -- design, and is repeated as part of this source file.
38
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.
45
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
48
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
59
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 seven places:
63
64 -- The documentation associated with the node
65 -- The spec of the access function in sinfo.ads
66 -- The body of the access function in sinfo.adb
67 -- The pragma Inline at the end of sinfo.ads for the access function
68 -- The spec of the set procedure in sinfo.ads
69 -- The body of the set procedure in sinfo.adb
70 -- The pragma Inline at the end of sinfo.ads for the set procedure
71
72 -- The field chosen must be consistent in all places, and, for a node that
73 -- is a subexpression, must not overlap any of the standard expression
74 -- fields.
75
76 -- In addition, if any of the standard expression fields is changed, then
77 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
78 -- must be updated appropriately, since it special cases expression fields.
79
80 -- If a new tree node is added, then the following changes are made
81
82 -- Add it to the documentation in the appropriate place
83 -- Add its fields to this documentation section
84 -- Define it in the appropriate classification in Node_Kind
85 -- In the body (sinfo), add entries to the access functions for all
86 -- its fields (except standard expression fields) to include the new
87 -- node in the checks.
88 -- Add an appropriate section to the case statement in sprint.adb
89 -- Add an appropriate section to the case statement in sem.adb
90 -- Add an appropriate section to the case statement in exp_util.adb
91 -- (Insert_Actions procedure)
92 -- For a subexpression, add an appropriate section to the case
93 -- statement in sem_eval.adb
94 -- For a subexpression, add an appropriate section to the case
95 -- statement in sem_res.adb
96
97 -- Finally, four utility programs must be run:
98
99 -- Run CSinfo to check that you have made the changes consistently. It
100 -- checks most of the rules given above, with clear error messages. This
101 -- utility reads sinfo.ads and sinfo.adb and generates a report to
102 -- standard output.
103
104 -- Run XSinfo to create sinfo.h, the corresponding C header. This
105 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
106 -- not need to read sinfo.adb, since the contents of the body are
107 -- algorithmically determinable from the spec.
108
109 -- Run XTreeprs to create treeprs.ads, an updated version of the module
110 -- that is used to drive the tree print routine. This utility reads (but
111 -- does not modify) treeprs.adt, the template that provides the basic
112 -- structure of the file, and then fills in the data from the comments
113 -- in sinfo.ads.
114
115 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
116 -- spec of the Nmake package which contains functions for constructing
117 -- nodes.
118
119 -- All of the above steps except CSinfo are done automatically by the
120 -- build scripts when you do a full bootstrap.
121
122 -- Note: sometime we could write a utility that actually generated the body
123 -- of sinfo from the spec instead of simply checking it, since, as noted
124 -- above, the contents of the body can be determined from the spec.
125
126 --------------------------------
127 -- Implicit Nodes in the Tree --
128 --------------------------------
129
130 -- Generally the structure of the tree very closely follows the grammar as
131 -- defined in the RM. However, certain nodes are omitted to save space and
132 -- simplify semantic processing. Two general classes of such omitted nodes
133 -- are as follows:
134
135 -- If the only possibilities for a non-terminal are one or more other
136 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
137 -- corresponding node is omitted from the tree, and the target construct
138 -- appears directly. For example, a real type definition is either
139 -- floating point definition or a fixed point definition. No explicit node
140 -- appears for real type definition. Instead either the floating point
141 -- definition or fixed point definition appears directly.
142
143 -- If a non-terminal corresponds to a list of some other non-terminal
144 -- (possibly with separating punctuation), then usually it is omitted from
145 -- the tree, and a list of components appears instead. For example,
146 -- sequence of statements does not appear explicitly in the tree. Instead
147 -- a list of statements appears directly.
148
149 -- Some additional cases of omitted nodes occur and are documented
150 -- individually. In particular, many nodes are omitted in the tree
151 -- generated for an expression.
152
153 -------------------------------------------
154 -- Handling of Defining Identifier Lists --
155 -------------------------------------------
156
157 -- In several declarative forms in the syntax, lists of defining
158 -- identifiers appear (object declarations, component declarations, number
159 -- declarations etc.)
160
161 -- The semantics of such statements are equivalent to a series of identical
162 -- declarations of single defining identifiers (except that conformance
163 -- checks require the same grouping of identifiers in the parameter case).
164
165 -- To simplify semantic processing, the parser breaks down such multiple
166 -- declaration cases into sequences of single declarations, duplicating
167 -- type and initialization information as required. The flags More_Ids and
168 -- Prev_Ids are used to record the original form of the source in the case
169 -- where the original source used a list of names, More_Ids being set on
170 -- all but the last name and Prev_Ids being set on all but the first name.
171 -- These flags are used to reconstruct the original source (e.g. in the
172 -- Sprint package), and also are included in the conformance checks, but
173 -- otherwise have no semantic significance.
174
175 -- Note: the reason that we use More_Ids and Prev_Ids rather than
176 -- First_Name and Last_Name flags is so that the flags are off in the
177 -- normal one identifier case, which minimizes tree print output.
178
179 -----------------------
180 -- Use of Node Lists --
181 -----------------------
182
183 -- With a few exceptions, if a construction of the form {non-terminal}
184 -- appears in the tree, lists are used in the corresponding tree node (see
185 -- package Nlists for handling of node lists). In this case a field of the
186 -- parent node points to a list of nodes for the non-terminal. The field
187 -- name for such fields has a plural name which always ends in "s". For
188 -- example, a case statement has a field Alternatives pointing to list of
189 -- case statement alternative nodes.
190
191 -- Only fields pointing to lists have names ending in "s", so generally the
192 -- structure is strongly typed, fields not ending in s point to single
193 -- nodes, and fields ending in s point to lists.
194
195 -- The following example shows how a traversal of a list is written. We
196 -- suppose here that Stmt points to a N_Case_Statement node which has a
197 -- list field called Alternatives:
198
199 -- Alt := First (Alternatives (Stmt));
200 -- while Present (Alt) loop
201 -- ..
202 -- -- processing for case statement alternative Alt
203 -- ..
204 -- Alt := Next (Alt);
205 -- end loop;
206
207 -- The Present function tests for Empty, which in this case signals the end
208 -- of the list. First returns Empty immediately if the list is empty.
209 -- Present is defined in Atree, First and Next are defined in Nlists.
210
211 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
212 -- contexts, which is handled as described in the previous section, and
213 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
214 -- using the First_Name and Last_Name flags, as further detailed in the
215 -- description of the N_With_Clause node.
216
217 -------------
218 -- Pragmas --
219 -------------
220
221 -- Pragmas can appear in many different context, but are not included in
222 -- the grammar. Still they must appear in the tree, so they can be properly
223 -- processed.
224
225 -- Two approaches are used. In some cases, an extra field is defined in an
226 -- appropriate node that contains a list of pragmas appearing in the
227 -- expected context. For example pragmas can appear before an
228 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
229 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
230
231 -- The other approach is to simply allow pragmas to appear in syntactic
232 -- lists where the grammar (of course) does not include the possibility.
233 -- For example, the Variants field of an N_Variant_Part node points to a
234 -- list that can contain both N_Pragma and N_Variant nodes.
235
236 -- To make processing easier in the latter case, the Nlists package
237 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
238 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
239 -- ignoring all pragmas.
240
241 -- In the case of the variants list, we can either write:
242
243 -- Variant := First (Variants (N));
244 -- while Present (Variant) loop
245 -- ...
246 -- Variant := Next (Variant);
247 -- end loop;
248
249 -- or
250
251 -- Variant := First_Non_Pragma (Variants (N));
252 -- while Present (Variant) loop
253 -- ...
254 -- Variant := Next_Non_Pragma (Variant);
255 -- end loop;
256
257 -- In the first form of the loop, Variant can either be an N_Pragma or an
258 -- N_Variant node. In the second form, Variant can only be N_Variant since
259 -- all pragmas are skipped.
260
261 ---------------------
262 -- Optional Fields --
263 ---------------------
264
265 -- Fields which correspond to a section of the syntax enclosed in square
266 -- brackets are generally omitted (and the corresponding field set to Empty
267 -- for a node, or No_List for a list). The documentation of such fields
268 -- notes these cases. One exception to this rule occurs in the case of
269 -- possibly empty statement sequences (such as the sequence of statements
270 -- in an entry call alternative). Such cases appear in the syntax rules as
271 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
272 -- statement sequences always contain an empty list (not No_List) if no
273 -- statements are present.
274
275 -- Note: the utility program that constructs the body and spec of the Nmake
276 -- package relies on the format of the comments to determine if a field
277 -- should have a default value in the corresponding make routine. The rule
278 -- is that if the first line of the description of the field contains the
279 -- string "(set to xxx if", then a default value of xxx is provided for
280 -- this field in the corresponding Make_yyy routine.
281
282 -----------------------------------
283 -- Note on Body/Spec Terminology --
284 -----------------------------------
285
286 -- In informal discussions about Ada, it is customary to refer to package
287 -- and subprogram specs and bodies. However, this is not technically
288 -- correct, what is normally referred to as a spec or specification is in
289 -- fact a package declaration or subprogram declaration. We are careful in
290 -- GNAT to use the correct terminology and in particular, the full word
291 -- specification is never used as an incorrect substitute for declaration.
292 -- The structure and terminology used in the tree also reflects the grammar
293 -- and thus uses declaration and specification in the technically correct
294 -- manner.
295
296 -- However, there are contexts in which the informal terminology is useful.
297 -- We have the word "body" to refer to the Interp_Etype declared by the
298 -- declaration of a unit body, and in some contexts we need similar term to
299 -- refer to the entity declared by the package or subprogram declaration,
300 -- and simply using declaration can be confusing since the body also has a
301 -- declaration.
302
303 -- An example of such a context is the link between the package body and
304 -- its declaration. With_Declaration is confusing, since the package body
305 -- itself is a declaration.
306
307 -- To deal with this problem, we reserve the informal term Spec, i.e. the
308 -- popular abbreviation used in this context, to refer to the entity
309 -- declared by the package or subprogram declaration. So in the above
310 -- example case, the field in the body is called With_Spec.
311
312 -- Another important context for the use of the word Spec is in error
313 -- messages, where a hyper-correct use of declaration would be confusing to
314 -- a typical Ada programmer, and even for an expert programmer can cause
315 -- confusion since the body has a declaration as well.
316
317 -- So, to summarize:
318
319 -- Declaration always refers to the syntactic entity that is called
320 -- a declaration. In particular, subprogram declaration
321 -- and package declaration are used to describe the
322 -- syntactic entity that includes the semicolon.
323
324 -- Specification always refers to the syntactic entity that is called
325 -- a specification. In particular, the terms procedure
326 -- specification, function specification, package
327 -- specification, subprogram specification always refer
328 -- to the syntactic entity that has no semicolon.
329
330 -- Spec is an informal term, used to refer to the entity
331 -- that is declared by a task declaration, protected
332 -- declaration, generic declaration, subprogram
333 -- declaration or package declaration.
334
335 -- This convention is followed throughout the GNAT documentation
336 -- both internal and external, and in all error message text.
337
338 ------------------------
339 -- Internal Use Nodes --
340 ------------------------
341
342 -- These are Node_Kind settings used in the internal implementation which
343 -- are not logically part of the specification.
344
345 -- N_Unused_At_Start
346 -- Completely unused entry at the start of the enumeration type. This
347 -- is inserted so that no legitimate value is zero, which helps to get
348 -- better debugging behavior, since zero is a likely uninitialized value).
349
350 -- N_Unused_At_End
351 -- Completely unused entry at the end of the enumeration type. This is
352 -- handy so that arrays with Node_Kind as the index type have an extra
353 -- entry at the end (see for example the use of the Pchar_Pos_Array in
354 -- Treepr, where the extra entry provides the limit value when dealing with
355 -- the last used entry in the array).
356
357 -----------------------------------------
358 -- Note on the settings of Sloc fields --
359 -----------------------------------------
360
361 -- The Sloc field of nodes that come from the source is set by the parser.
362 -- For internal nodes, and nodes generated during expansion the Sloc is
363 -- usually set in the call to the constructor for the node. In general the
364 -- Sloc value chosen for an internal node is the Sloc of the source node
365 -- whose processing is responsible for the expansion. For example, the Sloc
366 -- of an inherited primitive operation is the Sloc of the corresponding
367 -- derived type declaration.
368
369 -- For the nodes of a generic instantiation, the Sloc value is encoded to
370 -- represent both the original Sloc in the generic unit, and the Sloc of
371 -- the instantiation itself. See Sinput.ads for details.
372
373 -- Subprogram instances create two callable entities: one is the visible
374 -- subprogram instance, and the other is an anonymous subprogram nested
375 -- within a wrapper package that contains the renamings for the actuals.
376 -- Both of these entities have the Sloc of the defining entity in the
377 -- instantiation node. This simplifies some ASIS queries.
378
379 -----------------------
380 -- Field Definitions --
381 -----------------------
382
383 -- In the following node definitions, all fields, both syntactic and
384 -- semantic, are documented. The one exception is in the case of entities
385 -- (defining identifiers, character literals and operator symbols), where
386 -- the usage of the fields depends on the entity kind. Entity fields are
387 -- fully documented in the separate package Einfo.
388
389 -- In the node definitions, three common sets of fields are abbreviated to
390 -- save both space in the documentation, and also space in the string
391 -- (defined in Tree_Print_Strings) used to print trees. The following
392 -- abbreviations are used:
393
394 -- Note: the utility program that creates the Treeprs spec (in the file
395 -- xtreeprs.adb) knows about the special fields here, so it must be
396 -- modified if any change is made to these fields.
397
398 -- "plus fields for binary operator"
399 -- Chars (Name1) Name_Id for the operator
400 -- Left_Opnd (Node2) left operand expression
401 -- Right_Opnd (Node3) right operand expression
402 -- Entity (Node4-Sem) defining entity for operator
403 -- Associated_Node (Node4-Sem) for generic processing
404 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
405 -- Has_Private_View (Flag11-Sem) set in generic units.
406
407 -- "plus fields for unary operator"
408 -- Chars (Name1) Name_Id for the operator
409 -- Right_Opnd (Node3) right operand expression
410 -- Entity (Node4-Sem) defining entity for operator
411 -- Associated_Node (Node4-Sem) for generic processing
412 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
413 -- Has_Private_View (Flag11-Sem) set in generic units.
414
415 -- "plus fields for expression"
416 -- Paren_Count number of parentheses levels
417 -- Etype (Node5-Sem) type of the expression
418 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
419 -- Is_Static_Expression (Flag6-Sem) set for static expression
420 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
421 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
422 -- Do_Range_Check (Flag9-Sem) set if a range check needed
423 -- Assignment_OK (Flag15-Sem) set if modification is OK
424 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
425
426 -- Note: see under (EXPRESSION) for further details on the use of
427 -- the Paren_Count field to record the number of parentheses levels.
428
429 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
430 -- The actual definition of this type is given later (the reason for this
431 -- is that we want the descriptions ordered by logical chapter in the RM,
432 -- but the type definition is reordered to facilitate the definition of
433 -- some subtype ranges. The individual descriptions of the nodes show how
434 -- the various fields are used in each node kind, as well as providing
435 -- logical names for the fields. Functions and procedures are provided for
436 -- accessing and setting these fields using these logical names.
437
438 -----------------------
439 -- Gigi Restrictions --
440 -----------------------
441
442 -- The tree passed to Gigi is more restricted than the general tree form.
443 -- For example, as a result of expansion, most of the tasking nodes can
444 -- never appear. For each node to which either a complete or partial
445 -- restriction applies, a note entitled "Gigi restriction" appears which
446 -- documents the restriction.
447
448 -- Note that most of these restrictions apply only to trees generated when
449 -- code is being generated, since they involved expander actions that
450 -- destroy the tree.
451
452 ------------------------
453 -- Common Flag Fields --
454 ------------------------
455
456 -- The following flag fields appear in all nodes
457
458 -- Analyzed (Flag1)
459 -- This flag is used to indicate that a node (and all its children have
460 -- been analyzed. It is used to avoid reanalysis of a node that has
461 -- already been analyzed, both for efficiency and functional correctness
462 -- reasons.
463
464 -- Comes_From_Source (Flag2)
465 -- This flag is on for any nodes built by the scanner or parser from the
466 -- source program, and off for any nodes built by the analyzer or
467 -- expander. It indicates that a node comes from the original source.
468 -- This flag is defined in Atree.
469
470 -- Error_Posted (Flag3)
471 -- This flag is used to avoid multiple error messages being posted on or
472 -- referring to the same node. This flag is set if an error message
473 -- refers to a node or is posted on its source location, and has the
474 -- effect of inhibiting further messages involving this same node.
475
476 -- Has_Dynamic_Length_Check (Flag10-Sem)
477 -- This flag is present on all nodes. It is set to indicate that one of
478 -- the routines in unit Checks has generated a length check action which
479 -- has been inserted at the flagged node. This is used to avoid the
480 -- generation of duplicate checks.
481
482 -- Has_Dynamic_Range_Check (Flag12-Sem)
483 -- This flag is present on all nodes. It is set to indicate that one of
484 -- the routines in unit Checks has generated a range check action which
485 -- has been inserted at the flagged node. This is used to avoid the
486 -- generation of duplicate checks.
487
488 -- Has_Local_Raise (Flag8-Sem)
489 -- Present in exception handler nodes. Set if the handler can be entered
490 -- via a local raise that gets transformed to a goto statement. This will
491 -- always be set if Local_Raise_Statements is non-empty, but can also be
492 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
493 -- nodes requiring generation of back end checks.
494
495 ------------------------------------
496 -- Description of Semantic Fields --
497 ------------------------------------
498
499 -- The meaning of the syntactic fields is generally clear from their names
500 -- without any further description, since the names are chosen to
501 -- correspond very closely to the syntax in the reference manual. This
502 -- section describes the usage of the semantic fields, which are used to
503 -- contain additional information determined during semantic analysis.
504
505 -- ABE_Is_Certain (Flag18-Sem)
506 -- This flag is set in an instantiation node or a call node is determined
507 -- to be sure to raise an ABE. This is used to trigger special handling
508 -- of such cases, particularly in the instantiation case where we avoid
509 -- instantiating the body if this flag is set. This flag is also present
510 -- in an N_Formal_Package_Declaration_Node since formal package
511 -- declarations are treated like instantiations, but it is always set to
512 -- False in this context.
513
514 -- Accept_Handler_Records (List5-Sem)
515 -- This field is present only in an N_Accept_Alternative node. It is used
516 -- to temporarily hold the exception handler records from an accept
517 -- statement in a selective accept. These exception handlers will
518 -- eventually be placed in the Handler_Records list of the procedure
519 -- built for this accept (see Expand_N_Selective_Accept procedure in
520 -- Exp_Ch9 for further details).
521
522 -- Access_Types_To_Process (Elist2-Sem)
523 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
524 -- Contains the list of access types which may require specific treatment
525 -- when the nature of the type completion is completely known. An example
526 -- of such treatment is the generation of the associated_final_chain.
527
528 -- Actions (List1-Sem)
529 -- This field contains a sequence of actions that are associated with the
530 -- node holding the field. See the individual node types for details of
531 -- how this field is used, as well as the description of the specific use
532 -- for a particular node type.
533
534 -- Activation_Chain_Entity (Node3-Sem)
535 -- This is used in tree nodes representing task activators (blocks,
536 -- subprogram bodies, package declarations, and task bodies). It is
537 -- initially Empty, and then gets set to point to the entity for the
538 -- declared Activation_Chain variable when the first task is declared.
539 -- When tasks are declared in the corresponding declarative region this
540 -- entity is located by name (its name is always _Chain) and the declared
541 -- tasks are added to the chain. Note that N_Extended_Return_Statement
542 -- does not have this attribute, although it does have an activation
543 -- chain. This chain is used to store the tasks temporarily, and is not
544 -- used for activating them. On successful completion of the return
545 -- statement, the tasks are moved to the caller's chain, and the caller
546 -- activates them.
547
548 -- Acts_As_Spec (Flag4-Sem)
549 -- A flag set in the N_Subprogram_Body node for a subprogram body which
550 -- is acting as its own spec, except in the case of a library level
551 -- subprogram, in which case the flag is set on the parent compilation
552 -- unit node instead (see further description in spec of Lib package).
553 -- ??? Above note about Lib is dubious since lib.ads does not mention
554 -- Acts_As_Spec at all.
555
556 -- Actual_Designated_Subtype (Node4-Sem)
557 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
558 -- needs to known the dynamic constrained subtype of the designated
559 -- object, this attribute is set to that type. This is done for
560 -- N_Free_Statements for access-to-classwide types and access to
561 -- unconstrained packed array types, and for N_Explicit_Dereference when
562 -- the designated type is an unconstrained packed array and the
563 -- dereference is the prefix of a 'Size attribute reference.
564
565 -- Address_Warning_Posted (Flag18-Sem)
566 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
567 -- posted a warning for the address clause regarding size or alignment
568 -- issues. Used to inhibit multiple redundant messages.
569
570 -- Aggregate_Bounds (Node3-Sem)
571 -- Present in array N_Aggregate nodes. If the aggregate contains
572 -- component associations this field points to an N_Range node whose
573 -- bounds give the lowest and highest discrete choice values. If the
574 -- named aggregate contains a dynamic or null choice this field is empty.
575 -- If the aggregate contains positional elements this field points to an
576 -- N_Integer_Literal node giving the number of positional elements. Note
577 -- that if the aggregate contains positional elements and an other choice
578 -- the N_Integer_Literal only accounts for the number of positional
579 -- elements.
580
581 -- All_Others (Flag11-Sem)
582 -- Present in an N_Others_Choice node. This flag is set for an others
583 -- exception where all exceptions are to be caught, even those that are
584 -- not normally handled (in particular the tasking abort signal). This
585 -- is used for translation of the at end handler into a normal exception
586 -- handler.
587
588 -- Assignment_OK (Flag15-Sem)
589 -- This flag is set in a subexpression node for an object, indicating
590 -- that the associated object can be modified, even if this would not
591 -- normally be permissible (either by direct assignment, or by being
592 -- passed as an out or in-out parameter). This is used by the expander
593 -- for a number of purposes, including initialization of constants and
594 -- limited type objects (such as tasks), setting discriminant fields,
595 -- setting tag values, etc. N_Object_Declaration nodes also have this
596 -- flag defined. Here it is used to indicate that an initialization
597 -- expression is valid, even where it would normally not be allowed
598 -- (e.g. where the type involved is limited).
599
600 -- Associated_Node (Node4-Sem)
601 -- Present in nodes that can denote an entity: identifiers, character
602 -- literals, operator symbols, expanded names, operator nodes, and
603 -- attribute reference nodes (all these nodes have an Entity field).
604 -- This field is also present in N_Aggregate, N_Selected_Component, and
605 -- N_Extension_Aggregate nodes. This field is used in generic processing
606 -- to create links between the generic template and the generic copy.
607 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
608 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
609 -- the normal function of Entity is not required at the point where the
610 -- Associated_Node is set. Note also, that in generic templates, this
611 -- means that the Entity field does not necessarily point to an Entity.
612 -- Since the back end is expected to ignore generic templates, this is
613 -- harmless.
614
615 -- At_End_Proc (Node1)
616 -- This field is present in an N_Handled_Sequence_Of_Statements node.
617 -- It contains an identifier reference for the cleanup procedure to be
618 -- called. See description of this node for further details.
619
620 -- Backwards_OK (Flag6-Sem)
621 -- A flag present in the N_Assignment_Statement node. It is used only
622 -- if the type being assigned is an array type, and is set if analysis
623 -- determines that it is definitely safe to do the copy backwards, i.e.
624 -- starting at the highest addressed element. Note that if neither of the
625 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
626 -- could not determine that either direction is definitely safe, and a
627 -- runtime check may be required if the backend cannot figure it out.
628
629 -- Body_To_Inline (Node3-Sem)
630 -- present in subprogram declarations. Denotes analyzed but unexpanded
631 -- body of subprogram, to be used when inlining calls. Present when the
632 -- subprogram has an Inline pragma and inlining is enabled. If the
633 -- declaration is completed by a renaming_as_body, and the renamed en-
634 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
635 -- which is used directly in later calls to the original subprogram.
636
637 -- Body_Required (Flag13-Sem)
638 -- A flag that appears in the N_Compilation_Unit node indicating that
639 -- the corresponding unit requires a body. For the package case, this
640 -- indicates that a completion is required. In Ada 95, if the flag is not
641 -- set for the package case, then a body may not be present. In Ada 83,
642 -- if the flag is not set for the package case, then body is optional.
643 -- For a subprogram declaration, the flag is set except in the case where
644 -- a pragma Import or Interface applies, in which case no body is
645 -- permitted (in Ada 83 or Ada 95).
646
647 -- By_Ref (Flag5-Sem)
648 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
649 -- this flag is set when the returned expression is already allocated on
650 -- the secondary stack and thus the result is passed by reference rather
651 -- than copied another time.
652
653 -- Check_Address_Alignment (Flag11-Sem)
654 -- A flag present in N_Attribute_Definition clause for a 'Address
655 -- attribute definition. This flag is set if a dynamic check should be
656 -- generated at the freeze point for the entity to which this address
657 -- clause applies. The reason that we need this flag is that we want to
658 -- check for range checks being suppressed at the point where the
659 -- attribute definition clause is given, rather than testing this at the
660 -- freeze point.
661
662 -- Coextensions (Elist4-Sem)
663 -- Present in allocators nodes. Points to list of allocators for the
664 -- access discriminants of the allocated object.
665
666 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
667 -- Present in N_Simple_Return_Statement nodes. True if this node was
668 -- constructed as part of the N_Extended_Return_Statement expansion.
669 -- .
670
671 -- Compile_Time_Known_Aggregate (Flag18-Sem)
672 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
673 -- evaluated at compile time without raising constraint error. Such
674 -- aggregates can be passed as is to Gigi without any expansion. See
675 -- Sem_Aggr for the specific conditions under which an aggregate has this
676 -- flag set. See also the flag Static_Processing_OK.
677
678 -- Condition_Actions (List3-Sem)
679 -- This field appears in else-if nodes and in the iteration scheme node
680 -- for while loops. This field is only used during semantic processing to
681 -- temporarily hold actions inserted into the tree. In the tree passed
682 -- to gigi, the condition actions field is always set to No_List. For
683 -- details on how this field is used, see the routine Insert_Actions in
684 -- package Exp_Util, and also the expansion routines for the relevant
685 -- nodes.
686
687 -- Controlling_Argument (Node1-Sem)
688 -- This field is set in procedure and function call nodes if the call
689 -- is a dispatching call (it is Empty for a non-dispatching call). It
690 -- indicates the source of the call's controlling tag. For procedure
691 -- calls, the Controlling_Argument is one of the actuals. For function
692 -- that has a dispatching result, it is an entity in the context of the
693 -- call that can provide a tag, or else it is the tag of the root type
694 -- of the class. It can also specify a tag directly rather than being a
695 -- tagged object. The latter is needed by the implementations of AI-239
696 -- and AI-260.
697
698 -- Conversion_OK (Flag14-Sem)
699 -- A flag set on type conversion nodes to indicate that the conversion
700 -- is to be considered as being valid, even though it is the case that
701 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
702 -- Fixed_Value and Integer_Value, for internal conversions done for
703 -- fixed-point operations, and for certain conversions for calls to
704 -- initialization procedures. If Conversion_OK is set, then Etype must be
705 -- set (the analyzer assumes that Etype has been set). For the case of
706 -- fixed-point operands, it also indicates that the conversion is to be
707 -- direct conversion of the underlying integer result, with no regard to
708 -- the small operand.
709
710 -- Corresponding_Body (Node5-Sem)
711 -- This field is set in subprogram declarations, package declarations,
712 -- entry declarations of protected types, and in generic units. It
713 -- points to the defining entity for the corresponding body (NOT the
714 -- node for the body itself).
715
716 -- Corresponding_Formal_Spec (Node3-Sem)
717 -- This field is set in subprogram renaming declarations, where it points
718 -- to the defining entity for a formal subprogram in the case where the
719 -- renaming corresponds to a generic formal subprogram association in an
720 -- instantiation. The field is Empty if the renaming does not correspond
721 -- to such a formal association.
722
723 -- Corresponding_Generic_Association (Node5-Sem)
724 -- This field is defined for object declarations and object renaming
725 -- declarations. It is set for the declarations within an instance that
726 -- map generic formals to their actuals. If set, the field points to
727 -- a generic_association which is the original parent of the expression
728 -- or name appearing in the declaration. This simplifies ASIS queries.
729
730 -- Corresponding_Integer_Value (Uint4-Sem)
731 -- This field is set in real literals of fixed-point types (it is not
732 -- used for floating-point types). It contains the integer value used
733 -- to represent the fixed-point value. It is also set on the universal
734 -- real literals used to represent bounds of fixed-point base types
735 -- and their first named subtypes.
736
737 -- Corresponding_Spec (Node5-Sem)
738 -- This field is set in subprogram, package, task, and protected body
739 -- nodes, where it points to the defining entity in the corresponding
740 -- spec. The attribute is also set in N_With_Clause nodes where it points
741 -- to the defining entity for the with'ed spec, and in a subprogram
742 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
743 -- if there is no corresponding spec, as in the case of a subprogram body
744 -- that serves as its own spec.
745
746 -- Corresponding_Stub (Node3-Sem)
747 -- This field is present in an N_Subunit node. It holds the node in
748 -- the parent unit that is the stub declaration for the subunit. It is
749 -- set when analysis of the stub forces loading of the proper body. If
750 -- expansion of the proper body creates new declarative nodes, they are
751 -- inserted at the point of the corresponding_stub.
752
753 -- Dcheck_Function (Node5-Sem)
754 -- This field is present in an N_Variant node, It references the entity
755 -- for the discriminant checking function for the variant.
756
757 -- Debug_Statement (Node3)
758 -- This field is present in an N_Pragma node. It is used only for a Debug
759 -- pragma. The parameter is of the form of an expression, as required by
760 -- the pragma syntax, but is actually a procedure call. To simplify
761 -- semantic processing, the parser creates a copy of the argument
762 -- rearranged into a procedure call statement and places it in the
763 -- Debug_Statement field. Note that this field is considered syntactic
764 -- field, since it is created by the parser.
765
766 -- Default_Expression (Node5-Sem)
767 -- This field is Empty if there is no default expression. If there is a
768 -- simple default expression (one with no side effects), then this field
769 -- simply contains a copy of the Expression field (both point to the tree
770 -- for the default expression). Default_Expression is used for
771 -- conformance checking.
772
773 -- Discr_Check_Funcs_Built (Flag11-Sem)
774 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
775 -- discriminant checking functions are constructed. The purpose is to
776 -- avoid attempting to set these functions more than once.
777
778 -- Do_Accessibility_Check (Flag13-Sem)
779 -- This flag is set on N_Parameter_Specification nodes to indicate
780 -- that an accessibility check is required for the parameter. It is
781 -- not yet decided who takes care of this check (TBD ???).
782
783 -- Do_Discriminant_Check (Flag13-Sem)
784 -- This flag is set on N_Selected_Component nodes to indicate that a
785 -- discriminant check is required using the discriminant check routine
786 -- associated with the selector. The actual check is generated by the
787 -- expander when processing selected components.
788
789 -- Do_Division_Check (Flag13-Sem)
790 -- This flag is set on a division operator (/ mod rem) to indicate
791 -- that a zero divide check is required. The actual check is dealt
792 -- with by the backend (all the front end does is to set the flag).
793
794 -- Do_Length_Check (Flag4-Sem)
795 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
796 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
797 -- is required. It is not determined who deals with this flag (???).
798
799 -- Do_Overflow_Check (Flag17-Sem)
800 -- This flag is set on an operator where an overflow check is required on
801 -- the operation. The actual check is dealt with by the backend (all the
802 -- front end does is to set the flag). The other cases where this flag is
803 -- used is on a Type_Conversion node and for attribute reference nodes.
804 -- For a type conversion, it means that the conversion is from one base
805 -- type to another, and the value may not fit in the target base type.
806 -- See also the description of Do_Range_Check for this case. The only
807 -- attribute references which use this flag are Pred and Succ, where it
808 -- means that the result should be checked for going outside the base
809 -- range. Note that this flag is not set for modular types.
810
811 -- Do_Range_Check (Flag9-Sem)
812 -- This flag is set on an expression which appears in a context where a
813 -- range check is required. The target type is clear from the context.
814 -- The contexts in which this flag can appear are the following:
815
816 -- Right side of an assignment. In this case the target type is
817 -- taken from the left side of the assignment, which is referenced
818 -- by the Name of the N_Assignment_Statement node.
819
820 -- Subscript expressions in an indexed component. In this case the
821 -- target type is determined from the type of the array, which is
822 -- referenced by the Prefix of the N_Indexed_Component node.
823
824 -- Argument expression for a parameter, appearing either directly in
825 -- the Parameter_Associations list of a call or as the Expression of an
826 -- N_Parameter_Association node that appears in this list. In either
827 -- case, the check is against the type of the formal. Note that the
828 -- flag is relevant only in IN and IN OUT parameters, and will be
829 -- ignored for OUT parameters, where no check is required in the call,
830 -- and if a check is required on the return, it is generated explicitly
831 -- with a type conversion.
832
833 -- Initialization expression for the initial value in an object
834 -- declaration. In this case the Do_Range_Check flag is set on
835 -- the initialization expression, and the check is against the
836 -- range of the type of the object being declared.
837
838 -- The expression of a type conversion. In this case the range check is
839 -- against the target type of the conversion. See also the use of
840 -- Do_Overflow_Check on a type conversion. The distinction is that the
841 -- overflow check protects against a value that is outside the range of
842 -- the target base type, whereas a range check checks that the
843 -- resulting value (which is a value of the base type of the target
844 -- type), satisfies the range constraint of the target type.
845
846 -- Note: when a range check is required in contexts other than those
847 -- listed above (e.g. in a return statement), an additional type
848 -- conversion node is introduced to represent the required check.
849
850 -- Do_Storage_Check (Flag17-Sem)
851 -- This flag is set in an N_Allocator node to indicate that a storage
852 -- check is required for the allocation, or in an N_Subprogram_Body node
853 -- to indicate that a stack check is required in the subprogram prolog.
854 -- The N_Allocator case is handled by the routine that expands the call
855 -- to the runtime routine. The N_Subprogram_Body case is handled by the
856 -- backend, and all the semantics does is set the flag.
857
858 -- Do_Tag_Check (Flag13-Sem)
859 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
860 -- N_Procedure_Call_Statement, N_Type_Conversion,
861 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
862 -- node to indicate that the tag check can be suppressed. It is not
863 -- yet decided how this flag is used (TBD ???).
864
865 -- Elaborate_Present (Flag4-Sem)
866 -- This flag is set in the N_With_Clause node to indicate that pragma
867 -- Elaborate pragma appears for the with'ed units.
868
869 -- Elaborate_All_Desirable (Flag9-Sem)
870 -- This flag is set in the N_With_Clause mode to indicate that the static
871 -- elaboration processing has determined that an Elaborate_All pragma is
872 -- desirable for correct elaboration for this unit.
873
874 -- Elaborate_All_Present (Flag14-Sem)
875 -- This flag is set in the N_With_Clause node to indicate that a
876 -- pragma Elaborate_All pragma appears for the with'ed units.
877
878 -- Elaborate_Desirable (Flag11-Sem)
879 -- This flag is set in the N_With_Clause mode to indicate that the static
880 -- elaboration processing has determined that an Elaborate pragma is
881 -- desirable for correct elaboration for this unit.
882
883 -- Elaboration_Boolean (Node2-Sem)
884 -- This field is present in function and procedure specification nodes.
885 -- If set, it points to the entity for a Boolean flag that must be tested
886 -- for certain calls to check for access before elaboration. See body of
887 -- Sem_Elab for further details. This field is Empty if no elaboration
888 -- boolean is required.
889
890 -- Else_Actions (List3-Sem)
891 -- This field is present in conditional expression nodes. During code
892 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
893 -- actions at an appropriate place in the tree to get elaborated at the
894 -- right time. For conditional expressions, we have to be sure that the
895 -- actions for the Else branch are only elaborated if the condition is
896 -- False. The Else_Actions field is used as a temporary parking place for
897 -- these actions. The final tree is always rewritten to eliminate the
898 -- need for this field, so in the tree passed to Gigi, this field is
899 -- always set to No_List.
900
901 -- Enclosing_Variant (Node2-Sem)
902 -- This field is present in the N_Variant node and identifies the Node_Id
903 -- corresponding to the immediately enclosing variant when the variant is
904 -- nested, and N_Empty otherwise. Set during semantic processing of the
905 -- variant part of a record type.
906
907 -- Entity (Node4-Sem)
908 -- Appears in all direct names (identifiers, character literals, and
909 -- operator symbols), as well as expanded names, and attributes that
910 -- denote entities, such as 'Class. Points to entity for corresponding
911 -- defining occurrence. Set after name resolution. For identifiers in a
912 -- WITH list, the corresponding defining occurrence is in a separately
913 -- compiled file, and Entity must be set by the library Load procedure.
914 --
915 -- Note: During name resolution, the value in Entity may be temporarily
916 -- incorrect (e.g. during overload resolution, Entity is initially set to
917 -- the first possible correct interpretation, and then later modified if
918 -- necessary to contain the correct value after resolution).
919 --
920 -- Note: This field overlaps Associated_Node, which is used during
921 -- generic processing (see Sem_Ch12 for details). Note also that in
922 -- generic templates, this means that the Entity field does not always
923 -- point to an Entity. Since the back end is expected to ignore generic
924 -- templates, this is harmless.
925 --
926 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
927 -- It is used only for stream attributes definition clauses. In this
928 -- case, it denotes a (possibly dummy) subprogram entity that is declared
929 -- conceptually at the point of the clause. Thus the visibility of the
930 -- attribute definition clause (in the sense of 8.3(23) as amended by
931 -- AI-195) can be checked by testing the visibility of that subprogram.
932 --
933 -- Note: Normally the Entity field of an identifier points to the entity
934 -- for the corresponding defining identifier, and hence the Chars field
935 -- of an identifier will match the Chars field of the entity. However,
936 -- there is no requirement that these match, and there are obscure cases
937 -- of generated code where they do not match.
938
939 -- Entity_Or_Associated_Node (Node4-Sem)
940 -- A synonym for both Entity and Associated_Node. Used by convention in
941 -- the code when referencing this field in cases where it is not known
942 -- whether the field contains an Entity or an Associated_Node.
943
944 -- Etype (Node5-Sem)
945 -- Appears in all expression nodes, all direct names, and all entities.
946 -- Points to the entity for the related type. Set after type resolution.
947 -- Normally this is the actual subtype of the expression. However, in
948 -- certain contexts such as the right side of an assignment, subscripts,
949 -- arguments to calls, returned value in a function, initial value etc.
950 -- it is the desired target type. In the event that this is different
951 -- from the actual type, the Do_Range_Check flag will be set if a range
952 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
953 -- points to an essentially arbitrary choice from the possible set of
954 -- types.
955
956 -- Exception_Junk (Flag8-Sem)
957 -- This flag is set in a various nodes appearing in a statement sequence
958 -- to indicate that the corresponding node is an artifact of the
959 -- generated code for exception handling, and should be ignored when
960 -- analyzing the control flow of the relevant sequence of statements
961 -- (e.g. to check that it does not end with a bad return statement).
962
963 -- Exception_Label (Node5-Sem)
964 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
965 -- to be used for transforming the corresponding exception into a goto,
966 -- or contains Empty, if this exception is not to be transformed. Also
967 -- appears in N_Exception_Handler nodes, where, if set, it indicates
968 -- that there may be a local raise for the handler, so that expansion
969 -- to allow a goto is required (and this field contains the label for
970 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
971
972 -- Expansion_Delayed (Flag11-Sem)
973 -- Set on aggregates and extension aggregates that need a top-down rather
974 -- than bottom up expansion. Typically aggregate expansion happens bottom
975 -- up. For nested aggregates the expansion is delayed until the enclosing
976 -- aggregate itself is expanded, e.g. in the context of a declaration. To
977 -- delay it we set this flag. This is done to avoid creating a temporary
978 -- for each level of a nested aggregates, and also to prevent the
979 -- premature generation of constraint checks. This is also a requirement
980 -- if we want to generate the proper attachment to the internal
981 -- finalization lists (for record with controlled components). Top down
982 -- expansion of aggregates is also used for in-place array aggregate
983 -- assignment or initialization. When the full context is known, the
984 -- target of the assignment or initialization is used to generate the
985 -- left-hand side of individual assignment to each sub-component.
986
987 -- First_Inlined_Subprogram (Node3-Sem)
988 -- Present in the N_Compilation_Unit node for the main program. Points
989 -- to a chain of entities for subprograms that are to be inlined. The
990 -- Next_Inlined_Subprogram field of these entities is used as a link
991 -- pointer with Empty marking the end of the list. This field is Empty
992 -- if there are no inlined subprograms or inlining is not active.
993
994 -- First_Named_Actual (Node4-Sem)
995 -- Present in procedure call statement and function call nodes, and also
996 -- in Intrinsic nodes. Set during semantic analysis to point to the first
997 -- named parameter where parameters are ordered by declaration order (as
998 -- opposed to the actual order in the call which may be different due to
999 -- named associations). Note: this field points to the explicit actual
1000 -- parameter itself, not the N_Parameter_Association node (its parent).
1001
1002 -- First_Real_Statement (Node2-Sem)
1003 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1004 -- Empty. Used only when declarations are moved into the statement part
1005 -- of a construct as a result of wrapping an AT END handler that is
1006 -- required to cover the declarations. In this case, this field is used
1007 -- to remember the location in the statements list of the first real
1008 -- statement, i.e. the statement that used to be first in the statement
1009 -- list before the declarations were prepended.
1010
1011 -- First_Subtype_Link (Node5-Sem)
1012 -- Present in N_Freeze_Entity node for an anonymous base type that is
1013 -- implicitly created by the declaration of a first subtype. It points
1014 -- to the entity for the first subtype.
1015
1016 -- Float_Truncate (Flag11-Sem)
1017 -- A flag present in type conversion nodes. This is used for float to
1018 -- integer conversions where truncation is required rather than rounding.
1019 -- Note that Gigi does not handle type conversions from real to integer
1020 -- with rounding (see Expand_N_Type_Conversion).
1021
1022 -- Forwards_OK (Flag5-Sem)
1023 -- A flag present in the N_Assignment_Statement node. It is used only
1024 -- if the type being assigned is an array type, and is set if analysis
1025 -- determines that it is definitely safe to do the copy forwards, i.e.
1026 -- starting at the lowest addressed element. Note that if neither of the
1027 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1028 -- could not determine that either direction is definitely safe, and a
1029 -- runtime check is required.
1030
1031 -- From_At_End (Flag4-Sem)
1032 -- This flag is set on an N_Raise_Statement node if it corresponds to
1033 -- the reraise statement generated as the last statement of an AT END
1034 -- handler when SJLJ exception handling is active. It is used to stop
1035 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1036 -- because if the restriction is set, the reraise is not generated.
1037
1038 -- From_At_Mod (Flag4-Sem)
1039 -- This flag is set on the attribute definition clause node that is
1040 -- generated by a transformation of an at mod phrase in a record
1041 -- representation clause. This is used to give slightly different (Ada 83
1042 -- compatible) semantics to such a clause, namely it is used to specify a
1043 -- minimum acceptable alignment for the base type and all subtypes. In
1044 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1045 -- must be a multiple of the given value, and the representation clause
1046 -- is considered to be type specific instead of subtype specific.
1047
1048 -- From_Default (Flag6-Sem)
1049 -- This flag is set on the subprogram renaming declaration created in an
1050 -- instance for a formal subprogram, when the formal is declared with a
1051 -- box, and there is no explicit actual. If the flag is present, the
1052 -- declaration is treated as an implicit reference to the formal in the
1053 -- ali file.
1054
1055 -- Generic_Parent (Node5-Sem)
1056 -- Generic_Parent is defined on declaration nodes that are instances. The
1057 -- value of Generic_Parent is the generic entity from which the instance
1058 -- is obtained. Generic_Parent is also defined for the renaming
1059 -- declarations and object declarations created for the actuals in an
1060 -- instantiation. The generic parent of such a declaration is the
1061 -- corresponding generic association in the Instantiation node.
1062
1063 -- Generic_Parent_Type (Node4-Sem)
1064 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1065 -- actuals of formal private and derived types. Within the instance, the
1066 -- operations on the actual are those inherited from the parent. For a
1067 -- formal private type, the parent type is the generic type itself. The
1068 -- Generic_Parent_Type is also used in an instance to determine whether a
1069 -- private operation overrides an inherited one.
1070
1071 -- Handler_List_Entry (Node2-Sem)
1072 -- This field is present in N_Object_Declaration nodes. It is set only
1073 -- for the Handler_Record entry generated for an exception in zero cost
1074 -- exception handling mode. It references the corresponding item in the
1075 -- handler list, and is used to delete this entry if the corresponding
1076 -- handler is deleted during optimization. For further details on why
1077 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1078
1079 -- Has_No_Elaboration_Code (Flag17-Sem)
1080 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1081 -- or not elaboration code is present for this unit. It is initially set
1082 -- true for subprogram specs and bodies and for all generic units and
1083 -- false for non-generic package specs and bodies. Gigi may set the flag
1084 -- in the non-generic package case if it determines that no elaboration
1085 -- code is generated. Note that this flag is not related to the
1086 -- Is_Preelaborated status, there can be preelaborated packages that
1087 -- generate elaboration code, and non-preelaborated packages which do
1088 -- not generate elaboration code.
1089
1090 -- Has_Priority_Pragma (Flag6-Sem)
1091 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1092 -- N_Protected_Definition nodes to flag the presence of either a Priority
1093 -- or Interrupt_Priority pragma in the declaration sequence (public or
1094 -- private in the task and protected cases)
1095
1096 -- Has_Private_View (Flag11-Sem)
1097 -- A flag present in generic nodes that have an entity, to indicate that
1098 -- the node has a private type. Used to exchange private and full
1099 -- declarations if the visibility at instantiation is different from the
1100 -- visibility at generic definition.
1101
1102 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1103 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1104 -- flag the presence of a pragma Relative_Deadline.
1105
1106 -- Has_Self_Reference (Flag13-Sem)
1107 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1108 -- of the expressions contains an access attribute reference to the
1109 -- enclosing type. Such a self-reference can only appear in default-
1110 -- initialized aggregate for a record type.
1111
1112 -- Has_Storage_Size_Pragma (Flag5-Sem)
1113 -- A flag present in an N_Task_Definition node to flag the presence of a
1114 -- Storage_Size pragma.
1115
1116 -- Has_Task_Info_Pragma (Flag7-Sem)
1117 -- A flag present in an N_Task_Definition node to flag the presence of a
1118 -- Task_Info pragma. Used to detect duplicate pragmas.
1119
1120 -- Has_Task_Name_Pragma (Flag8-Sem)
1121 -- A flag present in N_Task_Definition nodes to flag the presence of a
1122 -- Task_Name pragma in the declaration sequence for the task.
1123
1124 -- Has_Wide_Character (Flag11-Sem)
1125 -- Present in string literals, set if any wide character (i.e. character
1126 -- code outside the Character range) appears in the string.
1127
1128 -- Hidden_By_Use_Clause (Elist4-Sem)
1129 -- An entity list present in use clauses that appear within
1130 -- instantiations. For the resolution of local entities, entities
1131 -- introduced by these use clauses have priority over global ones, and
1132 -- outer entities must be explicitly hidden/restored on exit.
1133
1134 -- Implicit_With (Flag16-Sem)
1135 -- This flag is set in the N_With_Clause node that is implicitly
1136 -- generated for runtime units that are loaded by the expander, and also
1137 -- for package System, if it is loaded implicitly by a use of the
1138 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1139 -- as well.
1140
1141 -- Includes_Infinities (Flag11-Sem)
1142 -- This flag is present in N_Range nodes. It is set for the range of
1143 -- unconstrained float types defined in Standard, which include not only
1144 -- the given range of values, but also legitimately can include infinite
1145 -- values. This flag is false for any float type for which an explicit
1146 -- range is given by the programmer, even if that range is identical to
1147 -- the range for Float.
1148
1149 -- Instance_Spec (Node5-Sem)
1150 -- This field is present in generic instantiation nodes, and also in
1151 -- formal package declaration nodes (formal package declarations are
1152 -- treated in a manner very similar to package instantiations). It points
1153 -- to the node for the spec of the instance, inserted as part of the
1154 -- semantic processing for instantiations in Sem_Ch12.
1155
1156 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1157 -- A flag set in a Block_Statement node to indicate that it is the
1158 -- expansion of an asynchronous entry call. Such a block needs cleanup
1159 -- handler to assure that the call is cancelled.
1160
1161 -- Is_Component_Left_Opnd (Flag13-Sem)
1162 -- Is_Component_Right_Opnd (Flag14-Sem)
1163 -- Present in concatenation nodes, to indicate that the corresponding
1164 -- operand is of the component type of the result. Used in resolving
1165 -- concatenation nodes in instances.
1166
1167 -- Is_Controlling_Actual (Flag16-Sem)
1168 -- This flag is set on in an expression that is a controlling argument in
1169 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1170 -- details of its use.
1171
1172 -- Is_Dynamic_Coextension (Flag18-Sem)
1173 -- Present in allocator nodes, to indicate that this is an allocator
1174 -- for an access discriminant of a dynamically allocated object. The
1175 -- coextension must be deallocated and finalized at the same time as
1176 -- the enclosing object.
1177
1178 -- Is_Entry_Barrier_Function (Flag8-Sem)
1179 -- This flag is set in an N_Subprogram_Body node which is the expansion
1180 -- of an entry barrier from a protected entry body. It is used for the
1181 -- circuitry checking for incorrect use of Current_Task.
1182
1183 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1184 -- This flag is set in an N_Function_Call node to indicate that the extra
1185 -- actuals to support a build-in-place style of call have been added to
1186 -- the call.
1187
1188 -- Is_In_Discriminant_Check (Flag11-Sem)
1189 -- This flag is present in a selected component, and is used to indicate
1190 -- that the reference occurs within a discriminant check. The
1191 -- significance is that optimizations based on assuming that the
1192 -- discriminant check has a correct value cannot be performed in this
1193 -- case (or the discriminant check may be optimized away!)
1194
1195 -- Is_Machine_Number (Flag11-Sem)
1196 -- This flag is set in an N_Real_Literal node to indicate that the value
1197 -- is a machine number. This avoids some unnecessary cases of converting
1198 -- real literals to machine numbers.
1199
1200 -- Is_Null_Loop (Flag16-Sem)
1201 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1202 -- can be determined to be null at compile time. This is used to remove
1203 -- the loop entirely at expansion time.
1204
1205 -- Is_Overloaded (Flag5-Sem)
1206 -- A flag present in all expression nodes. Used temporarily during
1207 -- overloading determination. The setting of this flag is not relevant
1208 -- once overloading analysis is complete.
1209
1210 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1211 -- A flag present only in N_Op_Expon nodes. It is set when the
1212 -- exponentiation is of the form 2 ** N, where the type of N is an
1213 -- unsigned integral subtype whose size does not exceed the size of
1214 -- Standard_Integer (i.e. a type that can be safely converted to
1215 -- Natural), and the exponentiation appears as the right operand of an
1216 -- integer multiplication or an integer division where the dividend is
1217 -- unsigned. It is also required that overflow checking is off for both
1218 -- the exponentiation and the multiply/divide node. If this set of
1219 -- conditions holds, and the flag is set, then the division or
1220 -- multiplication can be (and is) converted to a shift.
1221
1222 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1223 -- A flag set in a Subprogram_Body block to indicate that it is the
1224 -- implementation of a protected subprogram. Such a body needs cleanup
1225 -- handler to make sure that the associated protected object is unlocked
1226 -- when the subprogram completes.
1227
1228 -- Is_Static_Coextension (Flag14-Sem)
1229 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1230 -- of an object allocated on the stack rather than the heap.
1231
1232 -- Is_Static_Expression (Flag6-Sem)
1233 -- Indicates that an expression is a static expression (RM 4.9). See spec
1234 -- of package Sem_Eval for full details on the use of this flag.
1235
1236 -- Is_Subprogram_Descriptor (Flag16-Sem)
1237 -- Present in N_Object_Declaration, and set only for the object
1238 -- declaration generated for a subprogram descriptor in fast exception
1239 -- mode. See Exp_Ch11 for details of use.
1240
1241 -- Is_Task_Allocation_Block (Flag6-Sem)
1242 -- A flag set in a Block_Statement node to indicate that it is the
1243 -- expansion of a task allocator, or the allocator of an object
1244 -- containing tasks. Such a block requires a cleanup handler to call
1245 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1246 -- allocated but not activated when the allocator completes abnormally.
1247
1248 -- Is_Task_Master (Flag5-Sem)
1249 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1250 -- indicate that the construct is a task master (i.e. has declared tasks
1251 -- or declares an access to a task type).
1252
1253 -- Itype (Node1-Sem)
1254 -- Used in N_Itype_Reference node to reference an itype for which it is
1255 -- important to ensure that it is defined. See description of this node
1256 -- for further details.
1257
1258 -- Kill_Range_Check (Flag11-Sem)
1259 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1260 -- result should not be subjected to range checks. This is used for the
1261 -- implementation of Normalize_Scalars.
1262
1263 -- Label_Construct (Node2-Sem)
1264 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1265 -- N_Block_Statement or N_Loop_Statement node to which the label
1266 -- declaration applies. This is not currently used in the compiler
1267 -- itself, but it is useful in the implementation of ASIS queries.
1268 -- This field is left empty for the special labels generated as part
1269 -- of expanding raise statements with a local exception handler.
1270
1271 -- Library_Unit (Node4-Sem)
1272 -- In a stub node, Library_Unit points to the compilation unit node of
1273 -- the corresponding subunit.
1274 --
1275 -- In a with clause node, Library_Unit points to the spec of the with'ed
1276 -- unit.
1277 --
1278 -- In a compilation unit node, the usage depends on the unit type:
1279 --
1280 -- For a subprogram body, Library_Unit points to the compilation unit
1281 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1282 -- case it points to itself.
1283 --
1284 -- For a package body, Library_Unit points to the compilation unit of
1285 -- the corresponding package spec.
1286 --
1287 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1288 -- points to the compilation unit node of the corresponding body, if
1289 -- inlining is active.
1290 --
1291 -- For a generic declaration, Library_Unit points to the compilation
1292 -- unit node of the corresponding generic body.
1293 --
1294 -- For a subunit, Library_Unit points to the compilation unit node of
1295 -- the parent body.
1296 --
1297 -- Note that this field is not used to hold the parent pointer for child
1298 -- unit (which might in any case need to use it for some other purpose as
1299 -- described above). Instead for a child unit, implicit with's are
1300 -- generated for all parents.
1301
1302 -- Local_Raise_Statements (Elist1)
1303 -- This field is present in exception handler nodes. It is set to
1304 -- No_Elist in the normal case. If there is at least one raise statement
1305 -- which can potentially be handled as a local raise, then this field
1306 -- points to a list of raise nodes, which are calls to a routine to raise
1307 -- an exception. These are raise nodes which can be optimized into gotos
1308 -- if the handler turns out to meet the conditions which permit this
1309 -- transformation. Note that this does NOT include instances of the
1310 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1311 -- handled by the back end (using the N_Push/N_Pop mechanism).
1312
1313 -- Loop_Actions (List2-Sem)
1314 -- A list present in Component_Association nodes in array aggregates.
1315 -- Used to collect actions that must be executed within the loop because
1316 -- they may need to be evaluated anew each time through.
1317
1318 -- Limited_View_Installed (Flag18-Sem)
1319 -- Present in With_Clauses and in package specifications. If set on
1320 -- with_clause, it indicates that this clause has created the current
1321 -- limited view of the designated package. On a package specification, it
1322 -- indicates that the limited view has already been created because the
1323 -- package is mentioned in a limited_with_clause in the closure of the
1324 -- unit being compiled.
1325
1326 -- Local_Raise_Not_OK (Flag7-Sem)
1327 -- Present in N_Exception_Handler nodes. Set if the handler contains
1328 -- a construct (reraise statement, or call to subprogram in package
1329 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1330 -- for a local raise (one that could otherwise be converted to a goto).
1331
1332 -- Must_Be_Byte_Aligned (Flag14-Sem)
1333 -- This flag is present in N_Attribute_Reference nodes. It can be set
1334 -- only for the Address and Unrestricted_Access attributes. If set it
1335 -- means that the object for which the address/access is given must be on
1336 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1337 -- of the object is to be made before taking the address (this copy is in
1338 -- the current scope on the stack frame). This is used for certain cases
1339 -- of code generated by the expander that passes parameters by address.
1340 --
1341 -- The reason the copy is not made by the front end is that the back end
1342 -- has more information about type layout and may be able to (but is not
1343 -- guaranteed to) prevent making unnecessary copies.
1344
1345 -- Must_Not_Freeze (Flag8-Sem)
1346 -- A flag present in all expression nodes. Normally expressions cause
1347 -- freezing as described in the RM. If this flag is set, then this is
1348 -- inhibited. This is used by the analyzer and expander to label nodes
1349 -- that are created by semantic analysis or expansion and which must not
1350 -- cause freezing even though they normally would. This flag is also
1351 -- present in an N_Subtype_Indication node, since we also use these in
1352 -- calls to Freeze_Expression.
1353
1354 -- Next_Entity (Node2-Sem)
1355 -- Present in defining identifiers, defining character literals and
1356 -- defining operator symbols (i.e. in all entities). The entities of a
1357 -- scope are chained, and this field is used as the forward pointer for
1358 -- this list. See Einfo for further details.
1359
1360 -- Next_Named_Actual (Node4-Sem)
1361 -- Present in parameter association node. Set during semantic analysis to
1362 -- point to the next named parameter, where parameters are ordered by
1363 -- declaration order (as opposed to the actual order in the call, which
1364 -- may be different due to named associations). Not that this field
1365 -- points to the explicit actual parameter itself, not to the
1366 -- N_Parameter_Association node (its parent).
1367
1368 -- Next_Pragma (Node1-Sem)
1369 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1370 -- nodes. Currently used for two purposes:
1371 --
1372 -- Create a list of linked Check_Policy pragmas. The head of this list
1373 -- is stored in Opt.Check_Policy_List (which has further details).
1374 --
1375 -- Used by processing for Pre/Postcondition pragmas to store a list of
1376 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1377 -- details).
1378
1379 -- Next_Rep_Item (Node5-Sem)
1380 -- Present in pragma nodes and attribute definition nodes. Used to link
1381 -- representation items that apply to an entity. See description of
1382 -- First_Rep_Item field in Einfo for full details.
1383
1384 -- Next_Use_Clause (Node3-Sem)
1385 -- While use clauses are active during semantic processing, they are
1386 -- chained from the scope stack entry, using Next_Use_Clause as a link
1387 -- pointer, with Empty marking the end of the list. The head pointer is
1388 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1389 -- processing (i.e. when Gigi sees the tree, the contents of this field
1390 -- is undefined and should not be read).
1391
1392 -- No_Ctrl_Actions (Flag7-Sem)
1393 -- Present in N_Assignment_Statement to indicate that no finalize nor
1394 -- adjust should take place on this assignment even though the rhs is
1395 -- controlled. This is used in init procs and aggregate expansions where
1396 -- the generated assignments are more initialisations than real
1397 -- assignments.
1398
1399 -- No_Elaboration_Check (Flag14-Sem)
1400 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1401 -- that no elaboration check is needed on the call, because it appears in
1402 -- the context of a local Suppress pragma. This is used on calls within
1403 -- task bodies, where the actual elaboration checks are applied after
1404 -- analysis, when the local scope stack is not present.
1405
1406 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1407 -- Present in N_With_Clause nodes. Set if the with clause is on the
1408 -- package or subprogram spec where the main unit is the corresponding
1409 -- body, and no entities of the with'ed unit are referenced by the spec
1410 -- (an entity may still be referenced in the body, so this flag is used
1411 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1412 -- full details)
1413
1414 -- No_Initialization (Flag13-Sem)
1415 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1416 -- object must not be initialized (by Initialize or call to an init
1417 -- proc). This is needed for controlled aggregates. When the Object
1418 -- declaration has an expression, this flag means that this expression
1419 -- should not be taken into account (needed for in place initialization
1420 -- with aggregates).
1421
1422 -- No_Truncation (Flag17-Sem)
1423 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1424 -- only if the RM_Size of the source is greater than the RM_Size of the
1425 -- target for scalar operands. Normally in such a case we truncate some
1426 -- higher order bits of the source, and then sign/zero extend the result
1427 -- to form the output value. But if this flag is set, then we do not do
1428 -- any truncation, so for example, if an 8 bit input is converted to 5
1429 -- bit result which is in fact stored in 8 bits, then the high order
1430 -- three bits of the target result will be copied from the source. This
1431 -- is used for properly setting out of range values for use by pragmas
1432 -- Initialize_Scalars and Normalize_Scalars.
1433
1434 -- Original_Discriminant (Node2-Sem)
1435 -- Present in identifiers. Used in references to discriminants that
1436 -- appear in generic units. Because the names of the discriminants may be
1437 -- different in an instance, we use this field to recover the position of
1438 -- the discriminant in the original type, and replace it with the
1439 -- discriminant at the same position in the instantiated type.
1440
1441 -- Original_Entity (Node2-Sem)
1442 -- Present in numeric literals. Used to denote the named number that has
1443 -- been constant-folded into the given literal. If literal is from
1444 -- source, or the result of some other constant-folding operation, then
1445 -- Original_Entity is empty. This field is needed to handle properly
1446 -- named numbers in generic units, where the Associated_Node field
1447 -- interferes with the Entity field, making it impossible to preserve the
1448 -- original entity at the point of instantiation (ASIS problem).
1449
1450 -- Others_Discrete_Choices (List1-Sem)
1451 -- When a case statement or variant is analyzed, the semantic checks
1452 -- determine the actual list of choices that correspond to an others
1453 -- choice. This list is materialized for later use by the expander and
1454 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1455 -- this materialized list of choices, which is in standard format for a
1456 -- list of discrete choices, except that of course it cannot contain an
1457 -- N_Others_Choice entry.
1458
1459 -- Parameter_List_Truncated (Flag17-Sem)
1460 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1461 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1462 -- a result of a First_Optional_Parameter specification in an
1463 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1464 -- The truncation is done by the expander by removing trailing parameters
1465 -- from the argument list, in accordance with the set of rules allowing
1466 -- such parameter removal. In particular, parameters can be removed
1467 -- working from the end of the parameter list backwards up to and
1468 -- including the entry designated by First_Optional_Parameter in the
1469 -- Import pragma. Parameters can be removed if they are implicit and the
1470 -- default value is a known-at-compile-time value, including the use of
1471 -- the Null_Parameter attribute, or if explicit parameter values are
1472 -- present that match the corresponding defaults.
1473
1474 -- Parent_Spec (Node4-Sem)
1475 -- For a library unit that is a child unit spec (package or subprogram
1476 -- declaration, generic declaration or instantiation, or library level
1477 -- rename, this field points to the compilation unit node for the parent
1478 -- package specification. This field is Empty for library bodies (the
1479 -- parent spec in this case can be found from the corresponding spec).
1480
1481 -- PPC_Enabled (Flag5-Sem)
1482 -- Present in N_Pragma nodes. This flag is relevant only for precondition
1483 -- and postcondition nodes. It is true if the check corresponding to the
1484 -- pragma type is enabled at the point where the pragma appears.
1485
1486 -- Present_Expr (Uint3-Sem)
1487 -- Present in an N_Variant node. This has a meaningful value only after
1488 -- Gigi has back annotated the tree with representation information. At
1489 -- this point, it contains a reference to a gcc expression that depends
1490 -- on the values of one or more discriminants. Give a set of discriminant
1491 -- values, this expression evaluates to False (zero) if variant is not
1492 -- present, and True (non-zero) if it is present. See unit Repinfo for
1493 -- further details on gigi back annotation. This field is used during
1494 -- ASIS processing (data decomposition annex) to determine if a field is
1495 -- present or not.
1496
1497 -- Print_In_Hex (Flag13-Sem)
1498 -- Set on an N_Integer_Literal node to indicate that the value should be
1499 -- printed in hexadecimal in the sprint listing. Has no effect on
1500 -- legality or semantics of program, only on the displayed output. This
1501 -- is used to clarify output from the packed array cases.
1502
1503 -- Procedure_To_Call (Node2-Sem)
1504 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1505 -- and N_Extended_Return_Statement nodes. References the entity for the
1506 -- declaration of the procedure to be called to accomplish the required
1507 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1508 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1509 -- allocating the return value), and for the Deallocate procedure in the
1510 -- case of N_Free_Statement.
1511
1512 -- Raises_Constraint_Error (Flag7-Sem)
1513 -- Set on an expression whose evaluation will definitely fail constraint
1514 -- error check. In the case of static expressions, this flag must be set
1515 -- accurately (and if it is set, the expression is typically illegal
1516 -- unless it appears as a non-elaborated branch of a short-circuit form).
1517 -- For a non-static expression, this flag may be set whenever an
1518 -- expression (e.g. an aggregate) is known to raise constraint error. If
1519 -- set, the expression definitely will raise CE if elaborated at runtime.
1520 -- If not set, the expression may or may not raise CE. In other words, on
1521 -- static expressions, the flag is set accurately, on non-static
1522 -- expressions it is set conservatively.
1523
1524 -- Redundant_Use (Flag13-Sem)
1525 -- Present in nodes that can appear as an operand in a use clause or use
1526 -- type clause (identifiers, expanded names, attribute references). Set
1527 -- to indicate that a use is redundant (and therefore need not be undone
1528 -- on scope exit).
1529
1530 -- Renaming_Exception (Node2-Sem)
1531 -- Present in N_Exception_Declaration node. Used to point back to the
1532 -- exception renaming for an exception declared within a subprogram.
1533 -- What happens is that an exception declared in a subprogram is moved
1534 -- to the library level with a unique name, and the original exception
1535 -- becomes a renaming. This link from the library level exception to the
1536 -- renaming declaration allows registering of the proper exception name.
1537
1538 -- Return_Statement_Entity (Node5-Sem)
1539 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1540 -- Points to an E_Return_Statement representing the return statement.
1541
1542 -- Return_Object_Declarations (List3)
1543 -- Present in N_Extended_Return_Statement.
1544 -- Points to a list initially containing a single
1545 -- N_Object_Declaration representing the return object.
1546 -- We use a list (instead of just a pointer to the object decl)
1547 -- because Analyze wants to insert extra actions on this list.
1548
1549 -- Rounded_Result (Flag18-Sem)
1550 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1551 -- Used in the fixed-point cases to indicate that the result must be
1552 -- rounded as a result of the use of the 'Round attribute. Also used for
1553 -- integer N_Op_Divide nodes to indicate that the result should be
1554 -- rounded to the nearest integer (breaking ties away from zero), rather
1555 -- than truncated towards zero as usual. These rounded integer operations
1556 -- are the result of expansion of rounded fixed-point divide, conversion
1557 -- and multiplication operations.
1558
1559 -- Scope (Node3-Sem)
1560 -- Present in defining identifiers, defining character literals and
1561 -- defining operator symbols (i.e. in all entities). The entities of a
1562 -- scope all use this field to reference the corresponding scope entity.
1563 -- See Einfo for further details.
1564
1565 -- Shift_Count_OK (Flag4-Sem)
1566 -- A flag present in shift nodes to indicate that the shift count is
1567 -- known to be in range, i.e. is in the range from zero to word length
1568 -- minus one. If this flag is not set, then the shift count may be
1569 -- outside this range, i.e. larger than the word length, and the code
1570 -- must ensure that such shift counts give the appropriate result.
1571
1572 -- Source_Type (Node1-Sem)
1573 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1574 -- source type entity for the unchecked conversion instantiation
1575 -- which gigi must do size validation for.
1576
1577 -- Static_Processing_OK (Flag4-Sem)
1578 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1579 -- flag is set, the full value of the aggregate can be determined at
1580 -- compile time and the aggregate can be passed as is to the back-end.
1581 -- In this event it is irrelevant whether this flag is set or not.
1582 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1583 -- Static_Processing_OK is set, the aggregate can (but need not) be
1584 -- converted into a compile time known aggregate by the expander. See
1585 -- Sem_Aggr for the specific conditions under which an aggregate has its
1586 -- Static_Processing_OK flag set.
1587
1588 -- Storage_Pool (Node1-Sem)
1589 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1590 -- and N_Extended_Return_Statement nodes. References the entity for the
1591 -- storage pool to be used for the allocate or free call or for the
1592 -- allocation of the returned value from function. Empty indicates that
1593 -- the global default pool is to be used. Note that in the case
1594 -- of a return statement, this field is set only if the function returns
1595 -- value of a type whose size is not known at compile time on the
1596 -- secondary stack.
1597
1598 -- Suppress_Loop_Warnings (Flag17-Sem)
1599 -- Used in N_Loop_Statement node to indicate that warnings within the
1600 -- body of the loop should be suppressed. This is set when the range
1601 -- of a FOR loop is known to be null, or is probably null (loop would
1602 -- only execute if invalid values are present).
1603
1604 -- Target_Type (Node2-Sem)
1605 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1606 -- type entity for the unchecked conversion instantiation which gigi must
1607 -- do size validation for.
1608
1609 -- Then_Actions (List3-Sem)
1610 -- This field is present in conditional expression nodes. During code
1611 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1612 -- actions at an appropriate place in the tree to get elaborated at the
1613 -- right time. For conditional expressions, we have to be sure that the
1614 -- actions for the Then branch are only elaborated if the condition is
1615 -- True. The Then_Actions field is used as a temporary parking place for
1616 -- these actions. The final tree is always rewritten to eliminate the
1617 -- need for this field, so in the tree passed to Gigi, this field is
1618 -- always set to No_List.
1619
1620 -- Treat_Fixed_As_Integer (Flag14-Sem)
1621 -- This flag appears in operator nodes for divide, multiply, mod and rem
1622 -- on fixed-point operands. It indicates that the operands are to be
1623 -- treated as integer values, ignoring small values. This flag is only
1624 -- set as a result of expansion of fixed-point operations. Typically a
1625 -- fixed-point multiplication in the source generates subsidiary
1626 -- multiplication and division operations that work with the underlying
1627 -- integer values and have this flag set. Note that this flag is not
1628 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1629 -- in these cases it is always the case that fixed is treated as integer.
1630 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1631 -- leave such nodes alone, and whoever makes them must set the correct
1632 -- Etype value.
1633
1634 -- TSS_Elist (Elist3-Sem)
1635 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1636 -- entries for each TSS (type support subprogram) associated with the
1637 -- frozen type. The elements of the list are the entities for the
1638 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1639 -- if there are no type support subprograms for the type or if the freeze
1640 -- node is not for a type.
1641
1642 -- Unreferenced_In_Spec (Flag7-Sem)
1643 -- Present in N_With_Clause nodes. Set if the with clause is on the
1644 -- package or subprogram spec where the main unit is the corresponding
1645 -- body, and is not referenced by the spec (it may still be referenced by
1646 -- the body, so this flag is used to generate the proper message (see
1647 -- Sem_Util.Check_Unused_Withs for details)
1648
1649 -- Was_Originally_Stub (Flag13-Sem)
1650 -- This flag is set in the node for a proper body that replaces stub.
1651 -- During the analysis procedure, stubs in some situations get rewritten
1652 -- by the corresponding bodies, and we set this flag to remember that
1653 -- this happened. Note that it is not good enough to rely on the use of
1654 -- Original_Node here because of the case of nested instantiations where
1655 -- the substituted node can be copied.
1656
1657 -- Zero_Cost_Handling (Flag5-Sem)
1658 -- This flag is set in all handled sequence of statement and exception
1659 -- handler nodes if exceptions are to be handled using the zero-cost
1660 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1661 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1662 -- to do for such a handler is simply to put the code in the handler
1663 -- somewhere. The front end has generated all necessary labels.
1664
1665 --------------------------------------------------
1666 -- Note on Use of End_Label and End_Span Fields --
1667 --------------------------------------------------
1668
1669 -- Several constructs have end lines:
1670
1671 -- Loop Statement end loop [loop_IDENTIFIER];
1672 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1673 -- Task Definition end [task_IDENTIFIER]
1674 -- Protected Definition end [protected_IDENTIFIER]
1675 -- Protected Body end [protected_IDENTIFIER]
1676
1677 -- Block Statement end [block_IDENTIFIER];
1678 -- Subprogram Body end [DESIGNATOR];
1679 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1680 -- Task Body end [task_IDENTIFIER];
1681 -- Accept Statement end [entry_IDENTIFIER]];
1682 -- Entry Body end [entry_IDENTIFIER];
1683
1684 -- If Statement end if;
1685 -- Case Statement end case;
1686
1687 -- Record Definition end record;
1688 -- Enumeration Definition );
1689
1690 -- The End_Label and End_Span fields are used to mark the locations of
1691 -- these lines, and also keep track of the label in the case where a label
1692 -- is present.
1693
1694 -- For the first group above, the End_Label field of the corresponding node
1695 -- is used to point to the label identifier. In the case where there is no
1696 -- label in the source, the parser supplies a dummy identifier (with
1697 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1698 -- marks the location of the token following the END token.
1699
1700 -- For the second group, the use of End_Label is similar, but the End_Label
1701 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1702 -- simply because in some cases there is no room in the parent node.
1703
1704 -- For the third group, there is never any label, and instead of using
1705 -- End_Label, we use the End_Span field which gives the location of the
1706 -- token following END, relative to the starting Sloc of the construct,
1707 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1708 -- following the End_Label.
1709
1710 -- The record definition case is handled specially, we treat it as though
1711 -- it required an optional label which is never present, and so the parser
1712 -- always builds a dummy identifier with Comes From Source set False. The
1713 -- reason we do this, rather than using End_Span in this case, is that we
1714 -- want to generate a cross-ref entry for the end of a record, since it
1715 -- represents a scope for name declaration purposes.
1716
1717 -- The enumeration definition case is handled in an exactly similar manner,
1718 -- building a dummy identifier to get a cross-reference.
1719
1720 -- Note: the reason we store the difference as a Uint, instead of storing
1721 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1722 -- distinguished from other types of values, and we count on all general
1723 -- use fields being self describing. To make things easier for clients,
1724 -- note that we provide function End_Location, and procedure
1725 -- Set_End_Location to allow access to the logical value (which is the
1726 -- Source_Ptr value for the end token).
1727
1728 ---------------------
1729 -- Syntactic Nodes --
1730 ---------------------
1731
1732 ---------------------
1733 -- 2.3 Identifier --
1734 ---------------------
1735
1736 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1737 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1738
1739 -- An IDENTIFIER shall not be a reserved word
1740
1741 -- In the Ada grammar identifiers are the bottom level tokens which have
1742 -- very few semantics. Actual program identifiers are direct names. If
1743 -- we were being 100% honest with the grammar, then we would have a node
1744 -- called N_Direct_Name which would point to an identifier. However,
1745 -- that's too many extra nodes, so we just use the N_Identifier node
1746 -- directly as a direct name, and it contains the expression fields and
1747 -- Entity field that correspond to its use as a direct name. In those
1748 -- few cases where identifiers appear in contexts where they are not
1749 -- direct names (pragmas, pragma argument associations, attribute
1750 -- references and attribute definition clauses), the Chars field of the
1751 -- node contains the Name_Id for the identifier name.
1752
1753 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1754 -- cases. First, an incorrect use of a reserved word as an identifier is
1755 -- diagnosed and then treated as a normal identifier. Second, an
1756 -- attribute designator of the form of a reserved word (access, delta,
1757 -- digits, range) is treated as an identifier.
1758
1759 -- Note: The set of letters that is permitted in an identifier depends
1760 -- on the character set in use. See package Csets for full details.
1761
1762 -- N_Identifier
1763 -- Sloc points to identifier
1764 -- Chars (Name1) contains the Name_Id for the identifier
1765 -- Entity (Node4-Sem)
1766 -- Associated_Node (Node4-Sem)
1767 -- Original_Discriminant (Node2-Sem)
1768 -- Redundant_Use (Flag13-Sem)
1769 -- Has_Private_View (Flag11-Sem) (set in generic units)
1770 -- plus fields for expression
1771
1772 --------------------------
1773 -- 2.4 Numeric Literal --
1774 --------------------------
1775
1776 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1777
1778 ----------------------------
1779 -- 2.4.1 Decimal Literal --
1780 ----------------------------
1781
1782 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1783
1784 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1785
1786 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1787
1788 -- Decimal literals appear in the tree as either integer literal nodes
1789 -- or real literal nodes, depending on whether a period is present.
1790
1791 -- Note: literal nodes appear as a result of direct use of literals
1792 -- in the source program, and also as the result of evaluating
1793 -- expressions at compile time. In the latter case, it is possible
1794 -- to construct real literals that have no syntactic representation
1795 -- using the standard literal format. Such literals are listed by
1796 -- Sprint using the notation [numerator / denominator].
1797
1798 -- Note: the value of an integer literal node created by the front end
1799 -- is never outside the range of values of the base type. However, it
1800 -- can be the case that the value is outside the range of the
1801 -- particular subtype. This happens in the case of integer overflows
1802 -- with checks suppressed.
1803
1804 -- N_Integer_Literal
1805 -- Sloc points to literal
1806 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1807 -- has been constant-folded into its literal value.
1808 -- Intval (Uint3) contains integer value of literal
1809 -- plus fields for expression
1810 -- Print_In_Hex (Flag13-Sem)
1811
1812 -- N_Real_Literal
1813 -- Sloc points to literal
1814 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1815 -- has been constant-folded into its literal value.
1816 -- Realval (Ureal3) contains real value of literal
1817 -- Corresponding_Integer_Value (Uint4-Sem)
1818 -- Is_Machine_Number (Flag11-Sem)
1819 -- plus fields for expression
1820
1821 --------------------------
1822 -- 2.4.2 Based Literal --
1823 --------------------------
1824
1825 -- BASED_LITERAL ::=
1826 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1827
1828 -- BASE ::= NUMERAL
1829
1830 -- BASED_NUMERAL ::=
1831 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1832
1833 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1834
1835 -- Based literals appear in the tree as either integer literal nodes
1836 -- or real literal nodes, depending on whether a period is present.
1837
1838 ----------------------------
1839 -- 2.5 Character Literal --
1840 ----------------------------
1841
1842 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1843
1844 -- N_Character_Literal
1845 -- Sloc points to literal
1846 -- Chars (Name1) contains the Name_Id for the identifier
1847 -- Char_Literal_Value (Uint2) contains the literal value
1848 -- Entity (Node4-Sem)
1849 -- Associated_Node (Node4-Sem)
1850 -- Has_Private_View (Flag11-Sem) set in generic units.
1851 -- plus fields for expression
1852
1853 -- Note: the Entity field will be missing (set to Empty) for character
1854 -- literals whose type is Standard.Wide_Character or Standard.Character
1855 -- or a type derived from one of these two. In this case the character
1856 -- literal stands for its own coding. The reason we take this irregular
1857 -- short cut is to avoid the need to build lots of junk defining
1858 -- character literal nodes.
1859
1860 -------------------------
1861 -- 2.6 String Literal --
1862 -------------------------
1863
1864 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1865
1866 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1867 -- single GRAPHIC_CHARACTER other than a quotation mark.
1868 --
1869 -- Is_Folded_In_Parser is True if the parser created this literal by
1870 -- folding a sequence of "&" operators. For example, if the source code
1871 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1872 -- is set. This flag is needed because the parser doesn't know about
1873 -- visibility, so the folded result might be wrong, and semantic
1874 -- analysis needs to check for that.
1875
1876 -- N_String_Literal
1877 -- Sloc points to literal
1878 -- Strval (Str3) contains Id of string value
1879 -- Has_Wide_Character (Flag11-Sem)
1880 -- Is_Folded_In_Parser (Flag4)
1881 -- plus fields for expression
1882
1883 ------------------
1884 -- 2.7 Comment --
1885 ------------------
1886
1887 -- A COMMENT starts with two adjacent hyphens and extends up to the
1888 -- end of the line. A COMMENT may appear on any line of a program.
1889
1890 -- Comments are skipped by the scanner and do not appear in the tree.
1891 -- It is possible to reconstruct the position of comments with respect
1892 -- to the elements of the tree by using the source position (Sloc)
1893 -- pointers that appear in every tree node.
1894
1895 -----------------
1896 -- 2.8 Pragma --
1897 -----------------
1898
1899 -- PRAGMA ::= pragma IDENTIFIER
1900 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1901
1902 -- Note that a pragma may appear in the tree anywhere a declaration
1903 -- or a statement may appear, as well as in some other situations
1904 -- which are explicitly documented.
1905
1906 -- N_Pragma
1907 -- Sloc points to pragma identifier
1908 -- Next_Pragma (Node1-Sem)
1909 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1910 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1911 -- Pragma_Identifier (Node4)
1912 -- Next_Rep_Item (Node5-Sem)
1913 -- PPC_Enabled (Flag5-Sem)
1914
1915 -- Note: we should have a section on what pragmas are passed on to
1916 -- the back end to be processed. This section should note that pragma
1917 -- Psect_Object is always converted to Common_Object, but there are
1918 -- undoubtedly many other similar notes required ???
1919
1920 -- Note: a utility function Pragma_Name may be applied to pragma nodes
1921 -- to conveniently obtain the Chars field of the Pragma_Identifier.
1922
1923 --------------------------------------
1924 -- 2.8 Pragma Argument Association --
1925 --------------------------------------
1926
1927 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1928 -- [pragma_argument_IDENTIFIER =>] NAME
1929 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1930
1931 -- N_Pragma_Argument_Association
1932 -- Sloc points to first token in association
1933 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1934 -- Expression (Node3)
1935
1936 ------------------------
1937 -- 2.9 Reserved Word --
1938 ------------------------
1939
1940 -- Reserved words are parsed by the scanner, and returned as the
1941 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1942
1943 ----------------------------
1944 -- 3.1 Basic Declaration --
1945 ----------------------------
1946
1947 -- BASIC_DECLARATION ::=
1948 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1949 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1950 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1951 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1952 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1953 -- | GENERIC_INSTANTIATION
1954
1955 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1956 -- see further description in section on semantic nodes.
1957
1958 -- Also, in the tree that is constructed, a pragma may appear
1959 -- anywhere that a declaration may appear.
1960
1961 ------------------------------
1962 -- 3.1 Defining Identifier --
1963 ------------------------------
1964
1965 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1966
1967 -- A defining identifier is an entity, which has additional fields
1968 -- depending on the setting of the Ekind field. These additional
1969 -- fields are defined (and access subprograms declared) in package
1970 -- Einfo.
1971
1972 -- Note: N_Defining_Identifier is an extended node whose fields are
1973 -- deliberate layed out to match the layout of fields in an ordinary
1974 -- N_Identifier node allowing for easy alteration of an identifier
1975 -- node into a defining identifier node. For details, see procedure
1976 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1977
1978 -- N_Defining_Identifier
1979 -- Sloc points to identifier
1980 -- Chars (Name1) contains the Name_Id for the identifier
1981 -- Next_Entity (Node2-Sem)
1982 -- Scope (Node3-Sem)
1983 -- Etype (Node5-Sem)
1984
1985 -----------------------------
1986 -- 3.2.1 Type Declaration --
1987 -----------------------------
1988
1989 -- TYPE_DECLARATION ::=
1990 -- FULL_TYPE_DECLARATION
1991 -- | INCOMPLETE_TYPE_DECLARATION
1992 -- | PRIVATE_TYPE_DECLARATION
1993 -- | PRIVATE_EXTENSION_DECLARATION
1994
1995 ----------------------------------
1996 -- 3.2.1 Full Type Declaration --
1997 ----------------------------------
1998
1999 -- FULL_TYPE_DECLARATION ::=
2000 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2001 -- is TYPE_DEFINITION;
2002 -- | TASK_TYPE_DECLARATION
2003 -- | PROTECTED_TYPE_DECLARATION
2004
2005 -- The full type declaration node is used only for the first case. The
2006 -- second case (concurrent type declaration), is represented directly
2007 -- by a task type declaration or a protected type declaration.
2008
2009 -- N_Full_Type_Declaration
2010 -- Sloc points to TYPE
2011 -- Defining_Identifier (Node1)
2012 -- Discriminant_Specifications (List4) (set to No_List if none)
2013 -- Type_Definition (Node3)
2014 -- Discr_Check_Funcs_Built (Flag11-Sem)
2015
2016 ----------------------------
2017 -- 3.2.1 Type Definition --
2018 ----------------------------
2019
2020 -- TYPE_DEFINITION ::=
2021 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2022 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2023 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2024 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2025
2026 --------------------------------
2027 -- 3.2.2 Subtype Declaration --
2028 --------------------------------
2029
2030 -- SUBTYPE_DECLARATION ::=
2031 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2032
2033 -- The subtype indication field is set to Empty for subtypes
2034 -- declared in package Standard (Positive, Natural).
2035
2036 -- N_Subtype_Declaration
2037 -- Sloc points to SUBTYPE
2038 -- Defining_Identifier (Node1)
2039 -- Null_Exclusion_Present (Flag11)
2040 -- Subtype_Indication (Node5)
2041 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2042 -- Exception_Junk (Flag8-Sem)
2043
2044 -------------------------------
2045 -- 3.2.2 Subtype Indication --
2046 -------------------------------
2047
2048 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2049
2050 -- Note: if no constraint is present, the subtype indication appears
2051 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2052 -- node is used only if a constraint is present.
2053
2054 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2055 -- with the null-exclusion part (see AI-231), we had to introduce a new
2056 -- attribute in all the parents of subtype_indication nodes to indicate
2057 -- if the null-exclusion is present.
2058
2059 -- Note: the reason that this node has expression fields is that a
2060 -- subtype indication can appear as an operand of a membership test.
2061
2062 -- N_Subtype_Indication
2063 -- Sloc points to first token of subtype mark
2064 -- Subtype_Mark (Node4)
2065 -- Constraint (Node3)
2066 -- Etype (Node5-Sem)
2067 -- Must_Not_Freeze (Flag8-Sem)
2068
2069 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2070 -- reason for this redundancy is so that in a list of array index types,
2071 -- the Etype can be uniformly accessed to determine the subscript type.
2072 -- This means that no Itype is constructed for the actual subtype that
2073 -- is created by the subtype indication. If such an Itype is required,
2074 -- it is constructed in the context in which the indication appears.
2075
2076 -------------------------
2077 -- 3.2.2 Subtype Mark --
2078 -------------------------
2079
2080 -- SUBTYPE_MARK ::= subtype_NAME
2081
2082 -----------------------
2083 -- 3.2.2 Constraint --
2084 -----------------------
2085
2086 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2087
2088 ------------------------------
2089 -- 3.2.2 Scalar Constraint --
2090 ------------------------------
2091
2092 -- SCALAR_CONSTRAINT ::=
2093 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2094
2095 ---------------------------------
2096 -- 3.2.2 Composite Constraint --
2097 ---------------------------------
2098
2099 -- COMPOSITE_CONSTRAINT ::=
2100 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2101
2102 -------------------------------
2103 -- 3.3.1 Object Declaration --
2104 -------------------------------
2105
2106 -- OBJECT_DECLARATION ::=
2107 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2108 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2109 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2110 -- ACCESS_DEFINITION [:= EXPRESSION];
2111 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2112 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2113 -- | SINGLE_TASK_DECLARATION
2114 -- | SINGLE_PROTECTED_DECLARATION
2115
2116 -- Note: aliased is not permitted in Ada 83 mode
2117
2118 -- The N_Object_Declaration node is only for the first two cases.
2119 -- Single task declaration is handled by P_Task (9.1)
2120 -- Single protected declaration is handled by P_protected (9.5)
2121
2122 -- Although the syntax allows multiple identifiers in the list, the
2123 -- semantics is as though successive declarations were given with
2124 -- identical type definition and expression components. To simplify
2125 -- semantic processing, the parser represents a multiple declaration
2126 -- case as a sequence of single declarations, using the More_Ids and
2127 -- Prev_Ids flags to preserve the original source form as described
2128 -- in the section on "Handling of Defining Identifier Lists".
2129
2130 -- The flag Has_Init_Expression is set if an initializing expression
2131 -- is present. Normally it is set if and only if Expression contains
2132 -- a non-empty value, but there is an exception to this. When the
2133 -- initializing expression is an aggregate which requires explicit
2134 -- assignments, the Expression field gets set to Empty, but this flag
2135 -- is still set, so we don't forget we had an initializing expression.
2136
2137 -- Note: if a range check is required for the initialization
2138 -- expression then the Do_Range_Check flag is set in the Expression,
2139 -- with the check being done against the type given by the object
2140 -- definition, which is also the Etype of the defining identifier.
2141
2142 -- Note: the contents of the Expression field must be ignored (i.e.
2143 -- treated as though it were Empty) if No_Initialization is set True.
2144
2145 -- Note: the back end places some restrictions on the form of the
2146 -- Expression field. If the object being declared is Atomic, then
2147 -- the Expression may not have the form of an aggregate (since this
2148 -- might cause the back end to generate separate assignments). It
2149 -- also cannot be a reference to an object marked as a true constant
2150 -- (Is_True_Constant flag set), where the object is itself initialized
2151 -- with an aggregate. If necessary the front end must generate an
2152 -- extra temporary (with Is_True_Constant set False), and initialize
2153 -- this temporary as required (the temporary itself is not atomic).
2154
2155 -- Note: there is not node kind for object definition. Instead, the
2156 -- corresponding field holds a subtype indication, an array type
2157 -- definition, or (Ada 2005, AI-406) an access definition.
2158
2159 -- N_Object_Declaration
2160 -- Sloc points to first identifier
2161 -- Defining_Identifier (Node1)
2162 -- Aliased_Present (Flag4) set if ALIASED appears
2163 -- Constant_Present (Flag17) set if CONSTANT appears
2164 -- Null_Exclusion_Present (Flag11)
2165 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2166 -- Expression (Node3) (set to Empty if not present)
2167 -- Handler_List_Entry (Node2-Sem)
2168 -- Corresponding_Generic_Association (Node5-Sem)
2169 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2170 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2171 -- No_Initialization (Flag13-Sem)
2172 -- Assignment_OK (Flag15-Sem)
2173 -- Exception_Junk (Flag8-Sem)
2174 -- Is_Subprogram_Descriptor (Flag16-Sem)
2175 -- Has_Init_Expression (Flag14)
2176
2177 -------------------------------------
2178 -- 3.3.1 Defining Identifier List --
2179 -------------------------------------
2180
2181 -- DEFINING_IDENTIFIER_LIST ::=
2182 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2183
2184 -------------------------------
2185 -- 3.3.2 Number Declaration --
2186 -------------------------------
2187
2188 -- NUMBER_DECLARATION ::=
2189 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2190
2191 -- Although the syntax allows multiple identifiers in the list, the
2192 -- semantics is as though successive declarations were given with
2193 -- identical expressions. To simplify semantic processing, the parser
2194 -- represents a multiple declaration case as a sequence of single
2195 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2196 -- the original source form as described in the section on "Handling
2197 -- of Defining Identifier Lists".
2198
2199 -- N_Number_Declaration
2200 -- Sloc points to first identifier
2201 -- Defining_Identifier (Node1)
2202 -- Expression (Node3)
2203 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2204 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2205
2206 ----------------------------------
2207 -- 3.4 Derived Type Definition --
2208 ----------------------------------
2209
2210 -- DERIVED_TYPE_DEFINITION ::=
2211 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2212 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2213
2214 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2215 -- in Ada 83 mode
2216
2217 -- Note: a record extension part is required if ABSTRACT is present
2218
2219 -- N_Derived_Type_Definition
2220 -- Sloc points to NEW
2221 -- Abstract_Present (Flag4)
2222 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2223 -- Subtype_Indication (Node5)
2224 -- Record_Extension_Part (Node3) (set to Empty if not present)
2225 -- Limited_Present (Flag17)
2226 -- Task_Present (Flag5) set in task interfaces
2227 -- Protected_Present (Flag6) set in protected interfaces
2228 -- Synchronized_Present (Flag7) set in interfaces
2229 -- Interface_List (List2) (set to No_List if none)
2230 -- Interface_Present (Flag16) set in abstract interfaces
2231
2232 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2233 -- Interface_List, and Interface_Present are used for abstract
2234 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2235
2236 ---------------------------
2237 -- 3.5 Range Constraint --
2238 ---------------------------
2239
2240 -- RANGE_CONSTRAINT ::= range RANGE
2241
2242 -- N_Range_Constraint
2243 -- Sloc points to RANGE
2244 -- Range_Expression (Node4)
2245
2246 ----------------
2247 -- 3.5 Range --
2248 ----------------
2249
2250 -- RANGE ::=
2251 -- RANGE_ATTRIBUTE_REFERENCE
2252 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2253
2254 -- Note: the case of a range given as a range attribute reference
2255 -- appears directly in the tree as an attribute reference.
2256
2257 -- Note: the field name for a reference to a range is Range_Expression
2258 -- rather than Range, because range is a reserved keyword in Ada!
2259
2260 -- Note: the reason that this node has expression fields is that a
2261 -- range can appear as an operand of a membership test. The Etype
2262 -- field is the type of the range (we do NOT construct an implicit
2263 -- subtype to represent the range exactly).
2264
2265 -- N_Range
2266 -- Sloc points to ..
2267 -- Low_Bound (Node1)
2268 -- High_Bound (Node2)
2269 -- Includes_Infinities (Flag11)
2270 -- plus fields for expression
2271
2272 -- Note: if the range appears in a context, such as a subtype
2273 -- declaration, where range checks are required on one or both of
2274 -- the expression fields, then type conversion nodes are inserted
2275 -- to represent the required checks.
2276
2277 ----------------------------------------
2278 -- 3.5.1 Enumeration Type Definition --
2279 ----------------------------------------
2280
2281 -- ENUMERATION_TYPE_DEFINITION ::=
2282 -- (ENUMERATION_LITERAL_SPECIFICATION
2283 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2284
2285 -- Note: the Literals field in the node described below is null for
2286 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2287 -- which special processing handles these types as special cases.
2288
2289 -- N_Enumeration_Type_Definition
2290 -- Sloc points to left parenthesis
2291 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2292 -- End_Label (Node4) (set to Empty if internally generated record)
2293
2294 ----------------------------------------------
2295 -- 3.5.1 Enumeration Literal Specification --
2296 ----------------------------------------------
2297
2298 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2299 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2300
2301 ---------------------------------------
2302 -- 3.5.1 Defining Character Literal --
2303 ---------------------------------------
2304
2305 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2306
2307 -- A defining character literal is an entity, which has additional
2308 -- fields depending on the setting of the Ekind field. These
2309 -- additional fields are defined (and access subprograms declared)
2310 -- in package Einfo.
2311
2312 -- Note: N_Defining_Character_Literal is an extended node whose fields
2313 -- are deliberate layed out to match the layout of fields in an ordinary
2314 -- N_Character_Literal node allowing for easy alteration of a character
2315 -- literal node into a defining character literal node. For details, see
2316 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2317
2318 -- N_Defining_Character_Literal
2319 -- Sloc points to literal
2320 -- Chars (Name1) contains the Name_Id for the identifier
2321 -- Next_Entity (Node2-Sem)
2322 -- Scope (Node3-Sem)
2323 -- Etype (Node5-Sem)
2324
2325 ------------------------------------
2326 -- 3.5.4 Integer Type Definition --
2327 ------------------------------------
2328
2329 -- Note: there is an error in this rule in the latest version of the
2330 -- grammar, so we have retained the old rule pending clarification.
2331
2332 -- INTEGER_TYPE_DEFINITION ::=
2333 -- SIGNED_INTEGER_TYPE_DEFINITION
2334 -- | MODULAR_TYPE_DEFINITION
2335
2336 -------------------------------------------
2337 -- 3.5.4 Signed Integer Type Definition --
2338 -------------------------------------------
2339
2340 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2341 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2342
2343 -- Note: the Low_Bound and High_Bound fields are set to Empty
2344 -- for integer types defined in package Standard.
2345
2346 -- N_Signed_Integer_Type_Definition
2347 -- Sloc points to RANGE
2348 -- Low_Bound (Node1)
2349 -- High_Bound (Node2)
2350
2351 ------------------------------------
2352 -- 3.5.4 Modular Type Definition --
2353 ------------------------------------
2354
2355 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2356
2357 -- N_Modular_Type_Definition
2358 -- Sloc points to MOD
2359 -- Expression (Node3)
2360
2361 ---------------------------------
2362 -- 3.5.6 Real Type Definition --
2363 ---------------------------------
2364
2365 -- REAL_TYPE_DEFINITION ::=
2366 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2367
2368 --------------------------------------
2369 -- 3.5.7 Floating Point Definition --
2370 --------------------------------------
2371
2372 -- FLOATING_POINT_DEFINITION ::=
2373 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2374
2375 -- Note: The Digits_Expression and Real_Range_Specifications fields
2376 -- are set to Empty for floating-point types declared in Standard.
2377
2378 -- N_Floating_Point_Definition
2379 -- Sloc points to DIGITS
2380 -- Digits_Expression (Node2)
2381 -- Real_Range_Specification (Node4) (set to Empty if not present)
2382
2383 -------------------------------------
2384 -- 3.5.7 Real Range Specification --
2385 -------------------------------------
2386
2387 -- REAL_RANGE_SPECIFICATION ::=
2388 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2389
2390 -- N_Real_Range_Specification
2391 -- Sloc points to RANGE
2392 -- Low_Bound (Node1)
2393 -- High_Bound (Node2)
2394
2395 -----------------------------------
2396 -- 3.5.9 Fixed Point Definition --
2397 -----------------------------------
2398
2399 -- FIXED_POINT_DEFINITION ::=
2400 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2401
2402 --------------------------------------------
2403 -- 3.5.9 Ordinary Fixed Point Definition --
2404 --------------------------------------------
2405
2406 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2407 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2408
2409 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2410
2411 -- N_Ordinary_Fixed_Point_Definition
2412 -- Sloc points to DELTA
2413 -- Delta_Expression (Node3)
2414 -- Real_Range_Specification (Node4)
2415
2416 -------------------------------------------
2417 -- 3.5.9 Decimal Fixed Point Definition --
2418 -------------------------------------------
2419
2420 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2421 -- delta static_EXPRESSION
2422 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2423
2424 -- Note: decimal types are not permitted in Ada 83 mode
2425
2426 -- N_Decimal_Fixed_Point_Definition
2427 -- Sloc points to DELTA
2428 -- Delta_Expression (Node3)
2429 -- Digits_Expression (Node2)
2430 -- Real_Range_Specification (Node4) (set to Empty if not present)
2431
2432 ------------------------------
2433 -- 3.5.9 Digits Constraint --
2434 ------------------------------
2435
2436 -- DIGITS_CONSTRAINT ::=
2437 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2438
2439 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2440 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2441
2442 -- N_Digits_Constraint
2443 -- Sloc points to DIGITS
2444 -- Digits_Expression (Node2)
2445 -- Range_Constraint (Node4) (set to Empty if not present)
2446
2447 --------------------------------
2448 -- 3.6 Array Type Definition --
2449 --------------------------------
2450
2451 -- ARRAY_TYPE_DEFINITION ::=
2452 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2453
2454 -----------------------------------------
2455 -- 3.6 Unconstrained Array Definition --
2456 -----------------------------------------
2457
2458 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2459 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2460 -- COMPONENT_DEFINITION
2461
2462 -- Note: dimensionality of array is indicated by number of entries in
2463 -- the Subtype_Marks list, which has one entry for each dimension.
2464
2465 -- N_Unconstrained_Array_Definition
2466 -- Sloc points to ARRAY
2467 -- Subtype_Marks (List2)
2468 -- Component_Definition (Node4)
2469
2470 -----------------------------------
2471 -- 3.6 Index Subtype Definition --
2472 -----------------------------------
2473
2474 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2475
2476 -- There is no explicit node in the tree for an index subtype
2477 -- definition since the N_Unconstrained_Array_Definition node
2478 -- incorporates the type marks which appear in this context.
2479
2480 ---------------------------------------
2481 -- 3.6 Constrained Array Definition --
2482 ---------------------------------------
2483
2484 -- CONSTRAINED_ARRAY_DEFINITION ::=
2485 -- array (DISCRETE_SUBTYPE_DEFINITION
2486 -- {, DISCRETE_SUBTYPE_DEFINITION})
2487 -- of COMPONENT_DEFINITION
2488
2489 -- Note: dimensionality of array is indicated by number of entries
2490 -- in the Discrete_Subtype_Definitions list, which has one entry
2491 -- for each dimension.
2492
2493 -- N_Constrained_Array_Definition
2494 -- Sloc points to ARRAY
2495 -- Discrete_Subtype_Definitions (List2)
2496 -- Component_Definition (Node4)
2497
2498 --------------------------------------
2499 -- 3.6 Discrete Subtype Definition --
2500 --------------------------------------
2501
2502 -- DISCRETE_SUBTYPE_DEFINITION ::=
2503 -- discrete_SUBTYPE_INDICATION | RANGE
2504
2505 -------------------------------
2506 -- 3.6 Component Definition --
2507 -------------------------------
2508
2509 -- COMPONENT_DEFINITION ::=
2510 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2511
2512 -- Note: although the syntax does not permit a component definition to
2513 -- be an anonymous array (and the parser will diagnose such an attempt
2514 -- with an appropriate message), it is possible for anonymous arrays
2515 -- to appear as component definitions. The semantics and back end handle
2516 -- this case properly, and the expander in fact generates such cases.
2517 -- Access_Definition is an optional field that gives support to
2518 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2519 -- Subtype_Indication field or else the Access_Definition field.
2520
2521 -- N_Component_Definition
2522 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2523 -- Aliased_Present (Flag4)
2524 -- Null_Exclusion_Present (Flag11)
2525 -- Subtype_Indication (Node5) (set to Empty if not present)
2526 -- Access_Definition (Node3) (set to Empty if not present)
2527
2528 -----------------------------
2529 -- 3.6.1 Index Constraint --
2530 -----------------------------
2531
2532 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2533
2534 -- It is not in general possible to distinguish between discriminant
2535 -- constraints and index constraints at parse time, since a simple
2536 -- name could be either the subtype mark of a discrete range, or an
2537 -- expression in a discriminant association with no name. Either
2538 -- entry appears simply as the name, and the semantic parse must
2539 -- distinguish between the two cases. Thus we use a common tree
2540 -- node format for both of these constraint types.
2541
2542 -- See Discriminant_Constraint for format of node
2543
2544 ---------------------------
2545 -- 3.6.1 Discrete Range --
2546 ---------------------------
2547
2548 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2549
2550 ----------------------------
2551 -- 3.7 Discriminant Part --
2552 ----------------------------
2553
2554 -- DISCRIMINANT_PART ::=
2555 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2556
2557 ------------------------------------
2558 -- 3.7 Unknown Discriminant Part --
2559 ------------------------------------
2560
2561 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2562
2563 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2564
2565 -- There is no explicit node in the tree for an unknown discriminant
2566 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2567 -- parent node.
2568
2569 ----------------------------------
2570 -- 3.7 Known Discriminant Part --
2571 ----------------------------------
2572
2573 -- KNOWN_DISCRIMINANT_PART ::=
2574 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2575
2576 -------------------------------------
2577 -- 3.7 Discriminant Specification --
2578 -------------------------------------
2579
2580 -- DISCRIMINANT_SPECIFICATION ::=
2581 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2582 -- [:= DEFAULT_EXPRESSION]
2583 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2584 -- [:= DEFAULT_EXPRESSION]
2585
2586 -- Although the syntax allows multiple identifiers in the list, the
2587 -- semantics is as though successive specifications were given with
2588 -- identical type definition and expression components. To simplify
2589 -- semantic processing, the parser represents a multiple declaration
2590 -- case as a sequence of single specifications, using the More_Ids and
2591 -- Prev_Ids flags to preserve the original source form as described
2592 -- in the section on "Handling of Defining Identifier Lists".
2593
2594 -- N_Discriminant_Specification
2595 -- Sloc points to first identifier
2596 -- Defining_Identifier (Node1)
2597 -- Null_Exclusion_Present (Flag11)
2598 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2599 -- Expression (Node3) (set to Empty if no default expression)
2600 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2601 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2602
2603 -----------------------------
2604 -- 3.7 Default Expression --
2605 -----------------------------
2606
2607 -- DEFAULT_EXPRESSION ::= EXPRESSION
2608
2609 ------------------------------------
2610 -- 3.7.1 Discriminant Constraint --
2611 ------------------------------------
2612
2613 -- DISCRIMINANT_CONSTRAINT ::=
2614 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2615
2616 -- It is not in general possible to distinguish between discriminant
2617 -- constraints and index constraints at parse time, since a simple
2618 -- name could be either the subtype mark of a discrete range, or an
2619 -- expression in a discriminant association with no name. Either
2620 -- entry appears simply as the name, and the semantic parse must
2621 -- distinguish between the two cases. Thus we use a common tree
2622 -- node format for both of these constraint types.
2623
2624 -- N_Index_Or_Discriminant_Constraint
2625 -- Sloc points to left paren
2626 -- Constraints (List1) points to list of discrete ranges or
2627 -- discriminant associations
2628
2629 -------------------------------------
2630 -- 3.7.1 Discriminant Association --
2631 -------------------------------------
2632
2633 -- DISCRIMINANT_ASSOCIATION ::=
2634 -- [discriminant_SELECTOR_NAME
2635 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2636
2637 -- Note: a discriminant association that has no selector name list
2638 -- appears directly as an expression in the tree.
2639
2640 -- N_Discriminant_Association
2641 -- Sloc points to first token of discriminant association
2642 -- Selector_Names (List1) (always non-empty, since if no selector
2643 -- names are present, this node is not used, see comment above)
2644 -- Expression (Node3)
2645
2646 ---------------------------------
2647 -- 3.8 Record Type Definition --
2648 ---------------------------------
2649
2650 -- RECORD_TYPE_DEFINITION ::=
2651 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2652
2653 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2654
2655 -- There is no explicit node in the tree for a record type definition.
2656 -- Instead the flags for Tagged_Present and Limited_Present appear in
2657 -- the N_Record_Definition node for a record definition appearing in
2658 -- the context of a record type definition.
2659
2660 ----------------------------
2661 -- 3.8 Record Definition --
2662 ----------------------------
2663
2664 -- RECORD_DEFINITION ::=
2665 -- record
2666 -- COMPONENT_LIST
2667 -- end record
2668 -- | null record
2669
2670 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2671 -- flags appear only for a record definition appearing in a record
2672 -- type definition.
2673
2674 -- Note: the NULL RECORD case is not permitted in Ada 83
2675
2676 -- N_Record_Definition
2677 -- Sloc points to RECORD or NULL
2678 -- End_Label (Node4) (set to Empty if internally generated record)
2679 -- Abstract_Present (Flag4)
2680 -- Tagged_Present (Flag15)
2681 -- Limited_Present (Flag17)
2682 -- Component_List (Node1) empty in null record case
2683 -- Null_Present (Flag13) set in null record case
2684 -- Task_Present (Flag5) set in task interfaces
2685 -- Protected_Present (Flag6) set in protected interfaces
2686 -- Synchronized_Present (Flag7) set in interfaces
2687 -- Interface_Present (Flag16) set in abstract interfaces
2688 -- Interface_List (List2) (set to No_List if none)
2689
2690 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2691 -- Interface_List and Interface_Present are used for abstract
2692 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2693
2694 -------------------------
2695 -- 3.8 Component List --
2696 -------------------------
2697
2698 -- COMPONENT_LIST ::=
2699 -- COMPONENT_ITEM {COMPONENT_ITEM}
2700 -- | {COMPONENT_ITEM} VARIANT_PART
2701 -- | null;
2702
2703 -- N_Component_List
2704 -- Sloc points to first token of component list
2705 -- Component_Items (List3)
2706 -- Variant_Part (Node4) (set to Empty if no variant part)
2707 -- Null_Present (Flag13)
2708
2709 -------------------------
2710 -- 3.8 Component Item --
2711 -------------------------
2712
2713 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2714
2715 -- Note: A component item can also be a pragma, and in the tree
2716 -- that is obtained after semantic processing, a component item
2717 -- can be an N_Null node resulting from a non-recognized pragma.
2718
2719 --------------------------------
2720 -- 3.8 Component Declaration --
2721 --------------------------------
2722
2723 -- COMPONENT_DECLARATION ::=
2724 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2725 -- [:= DEFAULT_EXPRESSION]
2726
2727 -- Note: although the syntax does not permit a component definition to
2728 -- be an anonymous array (and the parser will diagnose such an attempt
2729 -- with an appropriate message), it is possible for anonymous arrays
2730 -- to appear as component definitions. The semantics and back end handle
2731 -- this case properly, and the expander in fact generates such cases.
2732
2733 -- Although the syntax allows multiple identifiers in the list, the
2734 -- semantics is as though successive declarations were given with the
2735 -- same component definition and expression components. To simplify
2736 -- semantic processing, the parser represents a multiple declaration
2737 -- case as a sequence of single declarations, using the More_Ids and
2738 -- Prev_Ids flags to preserve the original source form as described
2739 -- in the section on "Handling of Defining Identifier Lists".
2740
2741 -- N_Component_Declaration
2742 -- Sloc points to first identifier
2743 -- Defining_Identifier (Node1)
2744 -- Component_Definition (Node4)
2745 -- Expression (Node3) (set to Empty if no default expression)
2746 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2747 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2748
2749 -------------------------
2750 -- 3.8.1 Variant Part --
2751 -------------------------
2752
2753 -- VARIANT_PART ::=
2754 -- case discriminant_DIRECT_NAME is
2755 -- VARIANT
2756 -- {VARIANT}
2757 -- end case;
2758
2759 -- Note: the variants list can contain pragmas as well as variants.
2760 -- In a properly formed program there is at least one variant.
2761
2762 -- N_Variant_Part
2763 -- Sloc points to CASE
2764 -- Name (Node2)
2765 -- Variants (List1)
2766
2767 --------------------
2768 -- 3.8.1 Variant --
2769 --------------------
2770
2771 -- VARIANT ::=
2772 -- when DISCRETE_CHOICE_LIST =>
2773 -- COMPONENT_LIST
2774
2775 -- N_Variant
2776 -- Sloc points to WHEN
2777 -- Discrete_Choices (List4)
2778 -- Component_List (Node1)
2779 -- Enclosing_Variant (Node2-Sem)
2780 -- Present_Expr (Uint3-Sem)
2781 -- Dcheck_Function (Node5-Sem)
2782
2783 ---------------------------------
2784 -- 3.8.1 Discrete Choice List --
2785 ---------------------------------
2786
2787 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2788
2789 ----------------------------
2790 -- 3.8.1 Discrete Choice --
2791 ----------------------------
2792
2793 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2794
2795 -- Note: in Ada 83 mode, the expression must be a simple expression
2796
2797 -- The only choice that appears explicitly is the OTHERS choice, as
2798 -- defined here. Other cases of discrete choice (expression and
2799 -- discrete range) appear directly. This production is also used
2800 -- for the OTHERS possibility of an exception choice.
2801
2802 -- Note: in accordance with the syntax, the parser does not check that
2803 -- OTHERS appears at the end on its own in a choice list context. This
2804 -- is a semantic check.
2805
2806 -- N_Others_Choice
2807 -- Sloc points to OTHERS
2808 -- Others_Discrete_Choices (List1-Sem)
2809 -- All_Others (Flag11-Sem)
2810
2811 ----------------------------------
2812 -- 3.9.1 Record Extension Part --
2813 ----------------------------------
2814
2815 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2816
2817 -- Note: record extension parts are not permitted in Ada 83 mode
2818
2819 --------------------------------------
2820 -- 3.9.4 Interface Type Definition --
2821 --------------------------------------
2822
2823 -- INTERFACE_TYPE_DEFINITION ::=
2824 -- [limited | task | protected | synchronized]
2825 -- interface [interface_list]
2826
2827 -- Note: Interfaces are implemented with N_Record_Definition and
2828 -- N_Derived_Type_Definition nodes because most of the support
2829 -- for the analysis of abstract types has been reused to
2830 -- analyze abstract interfaces.
2831
2832 ----------------------------------
2833 -- 3.10 Access Type Definition --
2834 ----------------------------------
2835
2836 -- ACCESS_TYPE_DEFINITION ::=
2837 -- ACCESS_TO_OBJECT_DEFINITION
2838 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2839
2840 --------------------------
2841 -- 3.10 Null Exclusion --
2842 --------------------------
2843
2844 -- NULL_EXCLUSION ::= not null
2845
2846 ---------------------------------------
2847 -- 3.10 Access To Object Definition --
2848 ---------------------------------------
2849
2850 -- ACCESS_TO_OBJECT_DEFINITION ::=
2851 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2852 -- SUBTYPE_INDICATION
2853
2854 -- N_Access_To_Object_Definition
2855 -- Sloc points to ACCESS
2856 -- All_Present (Flag15)
2857 -- Null_Exclusion_Present (Flag11)
2858 -- Subtype_Indication (Node5)
2859 -- Constant_Present (Flag17)
2860
2861 -----------------------------------
2862 -- 3.10 General Access Modifier --
2863 -----------------------------------
2864
2865 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2866
2867 -- Note: general access modifiers are not permitted in Ada 83 mode
2868
2869 -- There is no explicit node in the tree for general access modifier.
2870 -- Instead the All_Present or Constant_Present flags are set in the
2871 -- parent node.
2872
2873 -------------------------------------------
2874 -- 3.10 Access To Subprogram Definition --
2875 -------------------------------------------
2876
2877 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2878 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2879 -- | [NULL_EXCLUSION] access [protected] function
2880 -- PARAMETER_AND_RESULT_PROFILE
2881
2882 -- Note: access to subprograms are not permitted in Ada 83 mode
2883
2884 -- N_Access_Function_Definition
2885 -- Sloc points to ACCESS
2886 -- Null_Exclusion_Present (Flag11)
2887 -- Null_Exclusion_In_Return_Present (Flag14)
2888 -- Protected_Present (Flag6)
2889 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2890 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2891
2892 -- N_Access_Procedure_Definition
2893 -- Sloc points to ACCESS
2894 -- Null_Exclusion_Present (Flag11)
2895 -- Protected_Present (Flag6)
2896 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2897
2898 -----------------------------
2899 -- 3.10 Access Definition --
2900 -----------------------------
2901
2902 -- ACCESS_DEFINITION ::=
2903 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2904 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2905
2906 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2907
2908 -- N_Access_Definition
2909 -- Sloc points to ACCESS
2910 -- Null_Exclusion_Present (Flag11)
2911 -- All_Present (Flag15)
2912 -- Constant_Present (Flag17)
2913 -- Subtype_Mark (Node4)
2914 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2915
2916 -----------------------------------------
2917 -- 3.10.1 Incomplete Type Declaration --
2918 -----------------------------------------
2919
2920 -- INCOMPLETE_TYPE_DECLARATION ::=
2921 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2922
2923 -- N_Incomplete_Type_Declaration
2924 -- Sloc points to TYPE
2925 -- Defining_Identifier (Node1)
2926 -- Discriminant_Specifications (List4) (set to No_List if no
2927 -- discriminant part, or if the discriminant part is an
2928 -- unknown discriminant part)
2929 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2930 -- Tagged_Present (Flag15)
2931
2932 ----------------------------
2933 -- 3.11 Declarative Part --
2934 ----------------------------
2935
2936 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2937
2938 -- Note: although the parser enforces the syntactic requirement that
2939 -- a declarative part can contain only declarations, the semantic
2940 -- processing may add statements to the list of actions in a
2941 -- declarative part, so the code generator should be prepared
2942 -- to accept a statement in this position.
2943
2944 ----------------------------
2945 -- 3.11 Declarative Item --
2946 ----------------------------
2947
2948 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2949
2950 ----------------------------------
2951 -- 3.11 Basic Declarative Item --
2952 ----------------------------------
2953
2954 -- BASIC_DECLARATIVE_ITEM ::=
2955 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2956
2957 ----------------
2958 -- 3.11 Body --
2959 ----------------
2960
2961 -- BODY ::= PROPER_BODY | BODY_STUB
2962
2963 -----------------------
2964 -- 3.11 Proper Body --
2965 -----------------------
2966
2967 -- PROPER_BODY ::=
2968 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2969
2970 ---------------
2971 -- 4.1 Name --
2972 ---------------
2973
2974 -- NAME ::=
2975 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2976 -- | INDEXED_COMPONENT | SLICE
2977 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2978 -- | TYPE_CONVERSION | FUNCTION_CALL
2979 -- | CHARACTER_LITERAL
2980
2981 ----------------------
2982 -- 4.1 Direct Name --
2983 ----------------------
2984
2985 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2986
2987 -----------------
2988 -- 4.1 Prefix --
2989 -----------------
2990
2991 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2992
2993 -------------------------------
2994 -- 4.1 Explicit Dereference --
2995 -------------------------------
2996
2997 -- EXPLICIT_DEREFERENCE ::= NAME . all
2998
2999 -- N_Explicit_Dereference
3000 -- Sloc points to ALL
3001 -- Prefix (Node3)
3002 -- Actual_Designated_Subtype (Node4-Sem)
3003 -- plus fields for expression
3004
3005 -------------------------------
3006 -- 4.1 Implicit Dereference --
3007 -------------------------------
3008
3009 -- IMPLICIT_DEREFERENCE ::= NAME
3010
3011 ------------------------------
3012 -- 4.1.1 Indexed Component --
3013 ------------------------------
3014
3015 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3016
3017 -- Note: the parser may generate this node in some situations where it
3018 -- should be a function call. The semantic pass must correct this
3019 -- misidentification (which is inevitable at the parser level).
3020
3021 -- N_Indexed_Component
3022 -- Sloc contains a copy of the Sloc value of the Prefix
3023 -- Prefix (Node3)
3024 -- Expressions (List1)
3025 -- plus fields for expression
3026
3027 -- Note: if any of the subscripts requires a range check, then the
3028 -- Do_Range_Check flag is set on the corresponding expression, with
3029 -- the index type being determined from the type of the Prefix, which
3030 -- references the array being indexed.
3031
3032 -- Note: in a fully analyzed and expanded indexed component node, and
3033 -- hence in any such node that gigi sees, if the prefix is an access
3034 -- type, then an explicit dereference operation has been inserted.
3035
3036 ------------------
3037 -- 4.1.2 Slice --
3038 ------------------
3039
3040 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3041
3042 -- Note: an implicit subtype is created to describe the resulting
3043 -- type, so that the bounds of this type are the bounds of the slice.
3044
3045 -- N_Slice
3046 -- Sloc points to first token of prefix
3047 -- Prefix (Node3)
3048 -- Discrete_Range (Node4)
3049 -- plus fields for expression
3050
3051 -------------------------------
3052 -- 4.1.3 Selected Component --
3053 -------------------------------
3054
3055 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3056
3057 -- Note: selected components that are semantically expanded names get
3058 -- changed during semantic processing into the separate N_Expanded_Name
3059 -- node. See description of this node in the section on semantic nodes.
3060
3061 -- N_Selected_Component
3062 -- Sloc points to period
3063 -- Prefix (Node3)
3064 -- Selector_Name (Node2)
3065 -- Associated_Node (Node4-Sem)
3066 -- Do_Discriminant_Check (Flag13-Sem)
3067 -- Is_In_Discriminant_Check (Flag11-Sem)
3068 -- plus fields for expression
3069
3070 --------------------------
3071 -- 4.1.3 Selector Name --
3072 --------------------------
3073
3074 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3075
3076 --------------------------------
3077 -- 4.1.4 Attribute Reference --
3078 --------------------------------
3079
3080 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3081
3082 -- Note: the syntax is quite ambiguous at this point. Consider:
3083
3084 -- A'Length (X) X is part of the attribute designator
3085 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3086 -- A'Class (X) X is the expression of a type conversion
3087
3088 -- It would be possible for the parser to distinguish these cases
3089 -- by looking at the attribute identifier. However, that would mean
3090 -- more work in introducing new implementation defined attributes,
3091 -- and also it would mean that special processing for attributes
3092 -- would be scattered around, instead of being centralized in the
3093 -- semantic routine that handles an N_Attribute_Reference node.
3094 -- Consequently, the parser in all the above cases stores the
3095 -- expression (X in these examples) as a single element list in
3096 -- in the Expressions field of the N_Attribute_Reference node.
3097
3098 -- Similarly, for attributes like Max which take two arguments,
3099 -- we store the two arguments as a two element list in the
3100 -- Expressions field. Of course it is clear at parse time that
3101 -- this case is really a function call with an attribute as the
3102 -- prefix, but it turns out to be convenient to handle the two
3103 -- argument case in a similar manner to the one argument case,
3104 -- and indeed in general the parser will accept any number of
3105 -- expressions in this position and store them as a list in the
3106 -- attribute reference node. This allows for future addition of
3107 -- attributes that take more than two arguments.
3108
3109 -- Note: named associates are not permitted in function calls where
3110 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3111 -- to skip the normal subprogram argument processing.
3112
3113 -- Note: for the attributes whose designators are technically keywords,
3114 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3115 -- the corresponding name, even though no identifier is involved.
3116
3117 -- Note: the generated code may contain stream attributes applied to
3118 -- limited types for which no stream routines exist officially. In such
3119 -- case, the result is to use the stream attribute for the underlying
3120 -- full type, or in the case of a protected type, the components
3121 -- (including any discriminants) are merely streamed in order.
3122
3123 -- See Exp_Attr for a complete description of which attributes are
3124 -- passed onto Gigi, and which are handled entirely by the front end.
3125
3126 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3127 -- a non-standard enumeration type or a nonzero/zero semantics
3128 -- boolean type, so the value is simply the stored representation.
3129
3130 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3131 -- references a subprogram that is a renaming, then the front end must
3132 -- rewrite the attribute to refer directly to the renamed entity.
3133
3134 -- Note: In generated code, the Address and Unrestricted_Access
3135 -- attributes can be applied to any expression, and the meaning is
3136 -- to create an object containing the value (the object is in the
3137 -- current stack frame), and pass the address of this value. If the
3138 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3139 -- is taken must be on a byte (storage unit) boundary, and if it is
3140 -- not (or may not be), then the generated code must create a copy
3141 -- that is byte aligned, and pass the address of this copy.
3142
3143 -- N_Attribute_Reference
3144 -- Sloc points to apostrophe
3145 -- Prefix (Node3)
3146 -- Attribute_Name (Name2) identifier name from attribute designator
3147 -- Expressions (List1) (set to No_List if no associated expressions)
3148 -- Entity (Node4-Sem) used if the attribute yields a type
3149 -- Associated_Node (Node4-Sem)
3150 -- Do_Overflow_Check (Flag17-Sem)
3151 -- Redundant_Use (Flag13-Sem)
3152 -- Must_Be_Byte_Aligned (Flag14)
3153 -- plus fields for expression
3154
3155 ---------------------------------
3156 -- 4.1.4 Attribute Designator --
3157 ---------------------------------
3158
3159 -- ATTRIBUTE_DESIGNATOR ::=
3160 -- IDENTIFIER [(static_EXPRESSION)]
3161 -- | access | delta | digits
3162
3163 -- There is no explicit node in the tree for an attribute designator.
3164 -- Instead the Attribute_Name and Expressions fields of the parent
3165 -- node (N_Attribute_Reference node) hold the information.
3166
3167 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3168 -- designator, then they are treated as identifiers internally
3169 -- rather than the keywords of the same name.
3170
3171 --------------------------------------
3172 -- 4.1.4 Range Attribute Reference --
3173 --------------------------------------
3174
3175 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3176
3177 -- A range attribute reference is represented in the tree using the
3178 -- normal N_Attribute_Reference node.
3179
3180 ---------------------------------------
3181 -- 4.1.4 Range Attribute Designator --
3182 ---------------------------------------
3183
3184 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3185
3186 -- A range attribute designator is represented in the tree using the
3187 -- normal N_Attribute_Reference node.
3188
3189 --------------------
3190 -- 4.3 Aggregate --
3191 --------------------
3192
3193 -- AGGREGATE ::=
3194 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3195
3196 -----------------------------
3197 -- 4.3.1 Record Aggregate --
3198 -----------------------------
3199
3200 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3201
3202 -- N_Aggregate
3203 -- Sloc points to left parenthesis
3204 -- Expressions (List1) (set to No_List if none or null record case)
3205 -- Component_Associations (List2) (set to No_List if none)
3206 -- Null_Record_Present (Flag17)
3207 -- Aggregate_Bounds (Node3-Sem)
3208 -- Associated_Node (Node4-Sem)
3209 -- Static_Processing_OK (Flag4-Sem)
3210 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3211 -- Expansion_Delayed (Flag11-Sem)
3212 -- Has_Self_Reference (Flag13-Sem)
3213 -- plus fields for expression
3214
3215 -- Note: this structure is used for both record and array aggregates
3216 -- since the two cases are not separable by the parser. The parser
3217 -- makes no attempt to enforce consistency here, so it is up to the
3218 -- semantic phase to make sure that the aggregate is consistent (i.e.
3219 -- that it is not a "half-and-half" case that mixes record and array
3220 -- syntax. In particular, for a record aggregate, the expressions
3221 -- field will be set if there are positional associations.
3222
3223 -- Note: N_Aggregate is not used for all aggregates; in particular,
3224 -- there is a separate node kind for extension aggregates.
3225
3226 -- Note: gigi/gcc can handle array aggregates correctly providing that
3227 -- they are entirely positional, and the array subtype involved has a
3228 -- known at compile time length and is not bit packed, or a convention
3229 -- Fortran array with more than one dimension. If these conditions
3230 -- are not met, then the front end must translate the aggregate into
3231 -- an appropriate set of assignments into a temporary.
3232
3233 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3234 -- of record aggregates, including those for packed, and rep-claused
3235 -- records, and also variant records, providing that there are no
3236 -- variable length fields whose size is not known at runtime, and
3237 -- providing that the aggregate is presented in fully named form.
3238
3239 ----------------------------------------------
3240 -- 4.3.1 Record Component Association List --
3241 ----------------------------------------------
3242
3243 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3244 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3245 -- | null record
3246
3247 -- There is no explicit node in the tree for a record component
3248 -- association list. Instead the Null_Record_Present flag is set in
3249 -- the parent node for the NULL RECORD case.
3250
3251 ------------------------------------------------------
3252 -- 4.3.1 Record Component Association (also 4.3.3) --
3253 ------------------------------------------------------
3254
3255 -- RECORD_COMPONENT_ASSOCIATION ::=
3256 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3257
3258 -- N_Component_Association
3259 -- Sloc points to first selector name
3260 -- Choices (List1)
3261 -- Loop_Actions (List2-Sem)
3262 -- Expression (Node3)
3263 -- Box_Present (Flag15)
3264
3265 -- Note: this structure is used for both record component associations
3266 -- and array component associations, since the two cases aren't always
3267 -- separable by the parser. The choices list may represent either a
3268 -- list of selector names in the record aggregate case, or a list of
3269 -- discrete choices in the array aggregate case or an N_Others_Choice
3270 -- node (which appears as a singleton list). Box_Present gives support
3271 -- to Ada 2005 (AI-287).
3272
3273 ----------------------------------
3274 -- 4.3.1 Component Choice List --
3275 ----------------------------------
3276
3277 -- COMPONENT_CHOICE_LIST ::=
3278 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3279 -- | others
3280
3281 -- The entries of a component choice list appear in the Choices list of
3282 -- the associated N_Component_Association, as either selector names, or
3283 -- as an N_Others_Choice node.
3284
3285 --------------------------------
3286 -- 4.3.2 Extension Aggregate --
3287 --------------------------------
3288
3289 -- EXTENSION_AGGREGATE ::=
3290 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3291
3292 -- Note: extension aggregates are not permitted in Ada 83 mode
3293
3294 -- N_Extension_Aggregate
3295 -- Sloc points to left parenthesis
3296 -- Ancestor_Part (Node3)
3297 -- Associated_Node (Node4-Sem)
3298 -- Expressions (List1) (set to No_List if none or null record case)
3299 -- Component_Associations (List2) (set to No_List if none)
3300 -- Null_Record_Present (Flag17)
3301 -- Expansion_Delayed (Flag11-Sem)
3302 -- Has_Self_Reference (Flag13-Sem)
3303 -- plus fields for expression
3304
3305 --------------------------
3306 -- 4.3.2 Ancestor Part --
3307 --------------------------
3308
3309 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3310
3311 ----------------------------
3312 -- 4.3.3 Array Aggregate --
3313 ----------------------------
3314
3315 -- ARRAY_AGGREGATE ::=
3316 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3317
3318 ---------------------------------------
3319 -- 4.3.3 Positional Array Aggregate --
3320 ---------------------------------------
3321
3322 -- POSITIONAL_ARRAY_AGGREGATE ::=
3323 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3324 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3325
3326 -- See Record_Aggregate (4.3.1) for node structure
3327
3328 ----------------------------------
3329 -- 4.3.3 Named Array Aggregate --
3330 ----------------------------------
3331
3332 -- NAMED_ARRAY_AGGREGATE ::=
3333 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3334
3335 -- See Record_Aggregate (4.3.1) for node structure
3336
3337 ----------------------------------------
3338 -- 4.3.3 Array Component Association --
3339 ----------------------------------------
3340
3341 -- ARRAY_COMPONENT_ASSOCIATION ::=
3342 -- DISCRETE_CHOICE_LIST => EXPRESSION
3343
3344 -- See Record_Component_Association (4.3.1) for node structure
3345
3346 --------------------------------------------------
3347 -- 4.4 Expression/Relation/Term/Factor/Primary --
3348 --------------------------------------------------
3349
3350 -- EXPRESSION ::=
3351 -- RELATION {and RELATION} | RELATION {and then RELATION}
3352 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3353 -- | RELATION {xor RELATION}
3354
3355 -- RELATION ::=
3356 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3357 -- | SIMPLE_EXPRESSION [not] in RANGE
3358 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3359
3360 -- SIMPLE_EXPRESSION ::=
3361 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3362
3363 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3364
3365 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3366
3367 -- No nodes are generated for any of these constructs. Instead, the
3368 -- node for the operator appears directly. When we refer to an
3369 -- expression in this description, we mean any of the possible
3370 -- constituent components of an expression (e.g. identifier is
3371 -- an example of an expression).
3372
3373 ------------------
3374 -- 4.4 Primary --
3375 ------------------
3376
3377 -- PRIMARY ::=
3378 -- NUMERIC_LITERAL | null
3379 -- | STRING_LITERAL | AGGREGATE
3380 -- | NAME | QUALIFIED_EXPRESSION
3381 -- | ALLOCATOR | (EXPRESSION)
3382
3383 -- Usually there is no explicit node in the tree for primary. Instead
3384 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3385 -- exceptions. First, there is an explicit node for a null primary.
3386
3387 -- N_Null
3388 -- Sloc points to NULL
3389 -- plus fields for expression
3390
3391 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3392 -- that the parser keep track of which subexpressions are enclosed
3393 -- in parentheses, and how many levels of parentheses are used. This
3394 -- information is required for optimization purposes, and also for
3395 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3396 -- conform with ((((1)))) in the body).
3397
3398 -- The parentheses are recorded by keeping a Paren_Count field in every
3399 -- subexpression node (it is actually present in all nodes, but only
3400 -- used in subexpression nodes). This count records the number of
3401 -- levels of parentheses. If the number of levels in the source exceeds
3402 -- the maximum accommodated by this count, then the count is simply left
3403 -- at the maximum value. This means that there are some pathological
3404 -- cases of failure to detect conformance failures (e.g. an expression
3405 -- with 500 levels of parens will conform with one with 501 levels),
3406 -- but we do not need to lose sleep over this.
3407
3408 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3409 -- type N_Parenthesized_Expression used to accurately record unlimited
3410 -- numbers of levels of parentheses. However, it turned out to be a
3411 -- real nuisance to have to take into account the possible presence of
3412 -- this node during semantic analysis, since basically parentheses have
3413 -- zero relevance to semantic analysis.
3414
3415 -- Note: the level of parentheses always present in things like
3416 -- aggregates does not count, only the parentheses in the primary
3417 -- (EXPRESSION) affect the setting of the Paren_Count field.
3418
3419 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3420 -- treated as though it were Empty) if No_Initialization is set True.
3421
3422 --------------------------------------
3423 -- 4.5 Short Circuit Control Forms --
3424 --------------------------------------
3425
3426 -- EXPRESSION ::=
3427 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3428
3429 -- Gigi restriction: For both these control forms, the operand and
3430 -- result types are always Standard.Boolean. The expander inserts the
3431 -- required conversion operations where needed to ensure this is the
3432 -- case.
3433
3434 -- N_And_Then
3435 -- Sloc points to AND of AND THEN
3436 -- Left_Opnd (Node2)
3437 -- Right_Opnd (Node3)
3438 -- Actions (List1-Sem)
3439 -- plus fields for expression
3440
3441 -- N_Or_Else
3442 -- Sloc points to OR of OR ELSE
3443 -- Left_Opnd (Node2)
3444 -- Right_Opnd (Node3)
3445 -- Actions (List1-Sem)
3446 -- plus fields for expression
3447
3448 -- Note: The Actions field is used to hold actions associated with
3449 -- the right hand operand. These have to be treated specially since
3450 -- they are not unconditionally executed. See Insert_Actions for a
3451 -- more detailed description of how these actions are handled.
3452
3453 ---------------------------
3454 -- 4.5 Membership Tests --
3455 ---------------------------
3456
3457 -- RELATION ::=
3458 -- SIMPLE_EXPRESSION [not] in RANGE
3459 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3460
3461 -- Note: although the grammar above allows only a range or a
3462 -- subtype mark, the parser in fact will accept any simple
3463 -- expression in place of a subtype mark. This means that the
3464 -- semantic analyzer must be prepared to deal with, and diagnose
3465 -- a simple expression other than a name for the right operand.
3466 -- This simplifies error recovery in the parser.
3467
3468 -- N_In
3469 -- Sloc points to IN
3470 -- Left_Opnd (Node2)
3471 -- Right_Opnd (Node3)
3472 -- plus fields for expression
3473
3474 -- N_Not_In
3475 -- Sloc points to NOT of NOT IN
3476 -- Left_Opnd (Node2)
3477 -- Right_Opnd (Node3)
3478 -- plus fields for expression
3479
3480 --------------------
3481 -- 4.5 Operators --
3482 --------------------
3483
3484 -- LOGICAL_OPERATOR ::= and | or | xor
3485
3486 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3487
3488 -- BINARY_ADDING_OPERATOR ::= + | - | &
3489
3490 -- UNARY_ADDING_OPERATOR ::= + | -
3491
3492 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3493
3494 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3495
3496 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3497
3498 -- x #* y
3499 -- x #/ y
3500 -- x #mod y
3501 -- x #rem y
3502
3503 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3504 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3505 -- All handling of smalls for multiplication and division is handled
3506 -- by the front end (mod and rem result only from expansion). Gigi
3507 -- thus never needs to worry about small values (for other operators
3508 -- operating on fixed-point, e.g. addition, the small value does not
3509 -- have any semantic effect anyway, these are always integer operations.
3510
3511 -- Gigi restriction: For all operators taking Boolean operands, the
3512 -- type is always Standard.Boolean. The expander inserts the required
3513 -- conversion operations where needed to ensure this is the case.
3514
3515 -- N_Op_And
3516 -- Sloc points to AND
3517 -- Do_Length_Check (Flag4-Sem)
3518 -- plus fields for binary operator
3519 -- plus fields for expression
3520
3521 -- N_Op_Or
3522 -- Sloc points to OR
3523 -- Do_Length_Check (Flag4-Sem)
3524 -- plus fields for binary operator
3525 -- plus fields for expression
3526
3527 -- N_Op_Xor
3528 -- Sloc points to XOR
3529 -- Do_Length_Check (Flag4-Sem)
3530 -- plus fields for binary operator
3531 -- plus fields for expression
3532
3533 -- N_Op_Eq
3534 -- Sloc points to =
3535 -- plus fields for binary operator
3536 -- plus fields for expression
3537
3538 -- N_Op_Ne
3539 -- Sloc points to /=
3540 -- plus fields for binary operator
3541 -- plus fields for expression
3542
3543 -- N_Op_Lt
3544 -- Sloc points to <
3545 -- plus fields for binary operator
3546 -- plus fields for expression
3547
3548 -- N_Op_Le
3549 -- Sloc points to <=
3550 -- plus fields for binary operator
3551 -- plus fields for expression
3552
3553 -- N_Op_Gt
3554 -- Sloc points to >
3555 -- plus fields for binary operator
3556 -- plus fields for expression
3557
3558 -- N_Op_Ge
3559 -- Sloc points to >=
3560 -- plus fields for binary operator
3561 -- plus fields for expression
3562
3563 -- N_Op_Add
3564 -- Sloc points to + (binary)
3565 -- plus fields for binary operator
3566 -- plus fields for expression
3567
3568 -- N_Op_Subtract
3569 -- Sloc points to - (binary)
3570 -- plus fields for binary operator
3571 -- plus fields for expression
3572
3573 -- N_Op_Concat
3574 -- Sloc points to &
3575 -- Is_Component_Left_Opnd (Flag13-Sem)
3576 -- Is_Component_Right_Opnd (Flag14-Sem)
3577 -- plus fields for binary operator
3578 -- plus fields for expression
3579
3580 -- N_Op_Multiply
3581 -- Sloc points to *
3582 -- Treat_Fixed_As_Integer (Flag14-Sem)
3583 -- Rounded_Result (Flag18-Sem)
3584 -- plus fields for binary operator
3585 -- plus fields for expression
3586
3587 -- N_Op_Divide
3588 -- Sloc points to /
3589 -- Treat_Fixed_As_Integer (Flag14-Sem)
3590 -- Do_Division_Check (Flag13-Sem)
3591 -- Rounded_Result (Flag18-Sem)
3592 -- plus fields for binary operator
3593 -- plus fields for expression
3594
3595 -- N_Op_Mod
3596 -- Sloc points to MOD
3597 -- Treat_Fixed_As_Integer (Flag14-Sem)
3598 -- Do_Division_Check (Flag13-Sem)
3599 -- plus fields for binary operator
3600 -- plus fields for expression
3601
3602 -- N_Op_Rem
3603 -- Sloc points to REM
3604 -- Treat_Fixed_As_Integer (Flag14-Sem)
3605 -- Do_Division_Check (Flag13-Sem)
3606 -- plus fields for binary operator
3607 -- plus fields for expression
3608
3609 -- N_Op_Expon
3610 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3611 -- Sloc points to **
3612 -- plus fields for binary operator
3613 -- plus fields for expression
3614
3615 -- N_Op_Plus
3616 -- Sloc points to + (unary)
3617 -- plus fields for unary operator
3618 -- plus fields for expression
3619
3620 -- N_Op_Minus
3621 -- Sloc points to - (unary)
3622 -- plus fields for unary operator
3623 -- plus fields for expression
3624
3625 -- N_Op_Abs
3626 -- Sloc points to ABS
3627 -- plus fields for unary operator
3628 -- plus fields for expression
3629
3630 -- N_Op_Not
3631 -- Sloc points to NOT
3632 -- plus fields for unary operator
3633 -- plus fields for expression
3634
3635 -- See also shift operators in section B.2
3636
3637 -- Note on fixed-point operations passed to Gigi: For adding operators,
3638 -- the semantics is to treat these simply as integer operations, with
3639 -- the small values being ignored (the bounds are already stored in
3640 -- units of small, so that constraint checking works as usual). For the
3641 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3642 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3643 -- thus treat these nodes in identical manner, ignoring small values.
3644
3645 --------------------------
3646 -- 4.6 Type Conversion --
3647 --------------------------
3648
3649 -- TYPE_CONVERSION ::=
3650 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3651
3652 -- In the (NAME) case, the name is stored as the expression
3653
3654 -- Note: the parser never generates a type conversion node, since it
3655 -- looks like an indexed component which is generated by preference.
3656 -- The semantic pass must correct this misidentification.
3657
3658 -- Gigi handles conversions that involve no change in the root type,
3659 -- and also all conversions from integer to floating-point types.
3660 -- Conversions from floating-point to integer are only handled in
3661 -- the case where Float_Truncate flag set. Other conversions from
3662 -- floating-point to integer (involving rounding) and all conversions
3663 -- involving fixed-point types are handled by the expander.
3664
3665 -- Sprint syntax if Float_Truncate set: X^(Y)
3666 -- Sprint syntax if Conversion_OK set X?(Y)
3667 -- Sprint syntax if both flags set X?^(Y)
3668
3669 -- Note: If either the operand or result type is fixed-point, Gigi will
3670 -- only see a type conversion node with Conversion_OK set. The front end
3671 -- takes care of all handling of small's for fixed-point conversions.
3672
3673 -- N_Type_Conversion
3674 -- Sloc points to first token of subtype mark
3675 -- Subtype_Mark (Node4)
3676 -- Expression (Node3)
3677 -- Do_Tag_Check (Flag13-Sem)
3678 -- Do_Length_Check (Flag4-Sem)
3679 -- Do_Overflow_Check (Flag17-Sem)
3680 -- Float_Truncate (Flag11-Sem)
3681 -- Rounded_Result (Flag18-Sem)
3682 -- Conversion_OK (Flag14-Sem)
3683 -- plus fields for expression
3684
3685 -- Note: if a range check is required, then the Do_Range_Check flag
3686 -- is set in the Expression with the check being done against the
3687 -- target type range (after the base type conversion, if any).
3688
3689 -------------------------------
3690 -- 4.7 Qualified Expression --
3691 -------------------------------
3692
3693 -- QUALIFIED_EXPRESSION ::=
3694 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3695
3696 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3697 -- the expression, so the Expression field of this node always points
3698 -- to a parenthesized expression in this case (i.e. Paren_Count will
3699 -- always be non-zero for the referenced expression if it is not an
3700 -- aggregate).
3701
3702 -- N_Qualified_Expression
3703 -- Sloc points to apostrophe
3704 -- Subtype_Mark (Node4)
3705 -- Expression (Node3) expression or aggregate
3706 -- plus fields for expression
3707
3708 --------------------
3709 -- 4.8 Allocator --
3710 --------------------
3711
3712 -- ALLOCATOR ::=
3713 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3714
3715 -- Sprint syntax (when storage pool present)
3716 -- new xxx (storage_pool = pool)
3717
3718 -- N_Allocator
3719 -- Sloc points to NEW
3720 -- Expression (Node3) subtype indication or qualified expression
3721 -- Storage_Pool (Node1-Sem)
3722 -- Procedure_To_Call (Node2-Sem)
3723 -- Coextensions (Elist4-Sem)
3724 -- Null_Exclusion_Present (Flag11)
3725 -- No_Initialization (Flag13-Sem)
3726 -- Is_Static_Coextension (Flag14-Sem)
3727 -- Do_Storage_Check (Flag17-Sem)
3728 -- Is_Dynamic_Coextension (Flag18-Sem)
3729 -- plus fields for expression
3730
3731 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3732 -- This flag has a special function in conjunction with the restriction
3733 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3734 -- is not set. This means that if a source allocator is replaced with
3735 -- a constructed allocator, the Comes_From_Source flag should be copied
3736 -- to the newly created allocator.
3737
3738 ---------------------------------
3739 -- 5.1 Sequence Of Statements --
3740 ---------------------------------
3741
3742 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3743
3744 -- Note: Although the parser will not accept a declaration as a
3745 -- statement, the semantic analyzer may insert declarations (e.g.
3746 -- declarations of implicit types needed for execution of other
3747 -- statements) into a sequence of statements, so the code generator
3748 -- should be prepared to accept a declaration where a statement is
3749 -- expected. Note also that pragmas can appear as statements.
3750
3751 --------------------
3752 -- 5.1 Statement --
3753 --------------------
3754
3755 -- STATEMENT ::=
3756 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3757
3758 -- There is no explicit node in the tree for a statement. Instead, the
3759 -- individual statement appears directly. Labels are treated as a
3760 -- kind of statement, i.e. they are linked into a statement list at
3761 -- the point they appear, so the labeled statement appears following
3762 -- the label or labels in the statement list.
3763
3764 ---------------------------
3765 -- 5.1 Simple Statement --
3766 ---------------------------
3767
3768 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3769 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3770 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3771 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3772 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3773 -- | ABORT_STATEMENT | RAISE_STATEMENT
3774 -- | CODE_STATEMENT
3775
3776 -----------------------------
3777 -- 5.1 Compound Statement --
3778 -----------------------------
3779
3780 -- COMPOUND_STATEMENT ::=
3781 -- IF_STATEMENT | CASE_STATEMENT
3782 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3783 -- | EXTENDED_RETURN_STATEMENT
3784 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3785
3786 -------------------------
3787 -- 5.1 Null Statement --
3788 -------------------------
3789
3790 -- NULL_STATEMENT ::= null;
3791
3792 -- N_Null_Statement
3793 -- Sloc points to NULL
3794
3795 ----------------
3796 -- 5.1 Label --
3797 ----------------
3798
3799 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3800
3801 -- Note that the occurrence of a label is not a defining identifier,
3802 -- but rather a referencing occurrence. The defining occurrence is
3803 -- in the implicit label declaration which occurs in the innermost
3804 -- enclosing block.
3805
3806 -- N_Label
3807 -- Sloc points to <<
3808 -- Identifier (Node1) direct name of statement identifier
3809 -- Exception_Junk (Flag8-Sem)
3810
3811 -------------------------------
3812 -- 5.1 Statement Identifier --
3813 -------------------------------
3814
3815 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
3816
3817 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3818 -- (not an OPERATOR_SYMBOL)
3819
3820 -------------------------------
3821 -- 5.2 Assignment Statement --
3822 -------------------------------
3823
3824 -- ASSIGNMENT_STATEMENT ::=
3825 -- variable_NAME := EXPRESSION;
3826
3827 -- N_Assignment_Statement
3828 -- Sloc points to :=
3829 -- Name (Node2)
3830 -- Expression (Node3)
3831 -- Do_Tag_Check (Flag13-Sem)
3832 -- Do_Length_Check (Flag4-Sem)
3833 -- Forwards_OK (Flag5-Sem)
3834 -- Backwards_OK (Flag6-Sem)
3835 -- No_Ctrl_Actions (Flag7-Sem)
3836
3837 -- Note: if a range check is required, then the Do_Range_Check flag
3838 -- is set in the Expression (right hand side), with the check being
3839 -- done against the type of the Name (left hand side).
3840
3841 -- Note: the back end places some restrictions on the form of the
3842 -- Expression field. If the object being assigned to is Atomic, then
3843 -- the Expression may not have the form of an aggregate (since this
3844 -- might cause the back end to generate separate assignments). It
3845 -- also cannot be a reference to an object marked as a true constant
3846 -- (Is_True_Constant flag set), where the object is itself initialized
3847 -- with an aggregate. If necessary the front end must generate an
3848 -- extra temporary (with Is_True_Constant set False), and initialize
3849 -- this temporary as required (the temporary itself is not atomic).
3850
3851 -----------------------
3852 -- 5.3 If Statement --
3853 -----------------------
3854
3855 -- IF_STATEMENT ::=
3856 -- if CONDITION then
3857 -- SEQUENCE_OF_STATEMENTS
3858 -- {elsif CONDITION then
3859 -- SEQUENCE_OF_STATEMENTS}
3860 -- [else
3861 -- SEQUENCE_OF_STATEMENTS]
3862 -- end if;
3863
3864 -- Gigi restriction: This expander ensures that the type of the
3865 -- Condition fields is always Standard.Boolean, even if the type
3866 -- in the source is some non-standard boolean type.
3867
3868 -- N_If_Statement
3869 -- Sloc points to IF
3870 -- Condition (Node1)
3871 -- Then_Statements (List2)
3872 -- Elsif_Parts (List3) (set to No_List if none present)
3873 -- Else_Statements (List4) (set to No_List if no else part present)
3874 -- End_Span (Uint5) (set to No_Uint if expander generated)
3875
3876 -- N_Elsif_Part
3877 -- Sloc points to ELSIF
3878 -- Condition (Node1)
3879 -- Then_Statements (List2)
3880 -- Condition_Actions (List3-Sem)
3881
3882 --------------------
3883 -- 5.3 Condition --
3884 --------------------
3885
3886 -- CONDITION ::= boolean_EXPRESSION
3887
3888 -------------------------
3889 -- 5.4 Case Statement --
3890 -------------------------
3891
3892 -- CASE_STATEMENT ::=
3893 -- case EXPRESSION is
3894 -- CASE_STATEMENT_ALTERNATIVE
3895 -- {CASE_STATEMENT_ALTERNATIVE}
3896 -- end case;
3897
3898 -- Note: the Alternatives can contain pragmas. These only occur at
3899 -- the start of the list, since any pragmas occurring after the first
3900 -- alternative are absorbed into the corresponding statement sequence.
3901
3902 -- N_Case_Statement
3903 -- Sloc points to CASE
3904 -- Expression (Node3)
3905 -- Alternatives (List4)
3906 -- End_Span (Uint5) (set to No_Uint if expander generated)
3907
3908 -------------------------------------
3909 -- 5.4 Case Statement Alternative --
3910 -------------------------------------
3911
3912 -- CASE_STATEMENT_ALTERNATIVE ::=
3913 -- when DISCRETE_CHOICE_LIST =>
3914 -- SEQUENCE_OF_STATEMENTS
3915
3916 -- N_Case_Statement_Alternative
3917 -- Sloc points to WHEN
3918 -- Discrete_Choices (List4)
3919 -- Statements (List3)
3920
3921 -------------------------
3922 -- 5.5 Loop Statement --
3923 -------------------------
3924
3925 -- LOOP_STATEMENT ::=
3926 -- [loop_STATEMENT_IDENTIFIER :]
3927 -- [ITERATION_SCHEME] loop
3928 -- SEQUENCE_OF_STATEMENTS
3929 -- end loop [loop_IDENTIFIER];
3930
3931 -- Note: The occurrence of a loop label is not a defining identifier
3932 -- but rather a referencing occurrence. The defining occurrence is in
3933 -- the implicit label declaration which occurs in the innermost
3934 -- enclosing block.
3935
3936 -- Note: there is always a loop statement identifier present in
3937 -- the tree, even if none was given in the source. In the case where
3938 -- no loop identifier is given in the source, the parser creates
3939 -- a name of the form _Loop_n, where n is a decimal integer (the
3940 -- two underlines ensure that the loop names created in this manner
3941 -- do not conflict with any user defined identifiers), and the flag
3942 -- Has_Created_Identifier is set to True. The only exception to the
3943 -- rule that all loop statement nodes have identifiers occurs for
3944 -- loops constructed by the expander, and the semantic analyzer will
3945 -- create and supply dummy loop identifiers in these cases.
3946
3947 -- N_Loop_Statement
3948 -- Sloc points to LOOP
3949 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3950 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3951 -- Statements (List3)
3952 -- End_Label (Node4)
3953 -- Has_Created_Identifier (Flag15)
3954 -- Is_Null_Loop (Flag16)
3955 -- Suppress_Loop_Warnings (Flag17)
3956
3957 --------------------------
3958 -- 5.5 Iteration Scheme --
3959 --------------------------
3960
3961 -- ITERATION_SCHEME ::=
3962 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3963
3964 -- Gigi restriction: This expander ensures that the type of the
3965 -- Condition field is always Standard.Boolean, even if the type
3966 -- in the source is some non-standard boolean type.
3967
3968 -- N_Iteration_Scheme
3969 -- Sloc points to WHILE or FOR
3970 -- Condition (Node1) (set to Empty if FOR case)
3971 -- Condition_Actions (List3-Sem)
3972 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3973
3974 ---------------------------------------
3975 -- 5.5 Loop parameter specification --
3976 ---------------------------------------
3977
3978 -- LOOP_PARAMETER_SPECIFICATION ::=
3979 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3980
3981 -- N_Loop_Parameter_Specification
3982 -- Sloc points to first identifier
3983 -- Defining_Identifier (Node1)
3984 -- Reverse_Present (Flag15)
3985 -- Discrete_Subtype_Definition (Node4)
3986
3987 --------------------------
3988 -- 5.6 Block Statement --
3989 --------------------------
3990
3991 -- BLOCK_STATEMENT ::=
3992 -- [block_STATEMENT_IDENTIFIER:]
3993 -- [declare
3994 -- DECLARATIVE_PART]
3995 -- begin
3996 -- HANDLED_SEQUENCE_OF_STATEMENTS
3997 -- end [block_IDENTIFIER];
3998
3999 -- Note that the occurrence of a block identifier is not a defining
4000 -- identifier, but rather a referencing occurrence. The defining
4001 -- occurrence is an E_Block entity declared by the implicit label
4002 -- declaration which occurs in the innermost enclosing block statement
4003 -- or body; the block identifier denotes that E_Block.
4004
4005 -- For block statements that come from source code, there is always a
4006 -- block statement identifier present in the tree, denoting an
4007 -- E_Block. In the case where no block identifier is given in the
4008 -- source, the parser creates a name of the form B_n, where n is a
4009 -- decimal integer, and the flag Has_Created_Identifier is set to
4010 -- True. Blocks constructed by the expander usually have no identifier,
4011 -- and no corresponding entity.
4012
4013 -- Note: the block statement created for an extended return statement
4014 -- has an entity, and this entity is an E_Return_Statement, rather than
4015 -- the usual E_Block.
4016
4017 -- Note: Exception_Junk is set for the wrapping blocks created during
4018 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4019
4020 -- N_Block_Statement
4021 -- Sloc points to DECLARE or BEGIN
4022 -- Identifier (Node1) block direct name (set to Empty if not present)
4023 -- Declarations (List2) (set to No_List if no DECLARE part)
4024 -- Handled_Statement_Sequence (Node4)
4025 -- Is_Task_Master (Flag5-Sem)
4026 -- Activation_Chain_Entity (Node3-Sem)
4027 -- Has_Created_Identifier (Flag15)
4028 -- Is_Task_Allocation_Block (Flag6)
4029 -- Is_Asynchronous_Call_Block (Flag7)
4030 -- Exception_Junk (Flag8-Sem)
4031
4032 -------------------------
4033 -- 5.7 Exit Statement --
4034 -------------------------
4035
4036 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4037
4038 -- Gigi restriction: This expander ensures that the type of the
4039 -- Condition field is always Standard.Boolean, even if the type
4040 -- in the source is some non-standard boolean type.
4041
4042 -- N_Exit_Statement
4043 -- Sloc points to EXIT
4044 -- Name (Node2) (set to Empty if no loop name present)
4045 -- Condition (Node1) (set to Empty if no when part present)
4046
4047 -------------------------
4048 -- 5.9 Goto Statement --
4049 -------------------------
4050
4051 -- GOTO_STATEMENT ::= goto label_NAME;
4052
4053 -- N_Goto_Statement
4054 -- Sloc points to GOTO
4055 -- Name (Node2)
4056 -- Exception_Junk (Flag8-Sem)
4057
4058 ---------------------------------
4059 -- 6.1 Subprogram Declaration --
4060 ---------------------------------
4061
4062 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4063
4064 -- N_Subprogram_Declaration
4065 -- Sloc points to FUNCTION or PROCEDURE
4066 -- Specification (Node1)
4067 -- Body_To_Inline (Node3-Sem)
4068 -- Corresponding_Body (Node5-Sem)
4069 -- Parent_Spec (Node4-Sem)
4070
4071 ------------------------------------------
4072 -- 6.1 Abstract Subprogram Declaration --
4073 ------------------------------------------
4074
4075 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4076 -- SUBPROGRAM_SPECIFICATION is abstract;
4077
4078 -- N_Abstract_Subprogram_Declaration
4079 -- Sloc points to ABSTRACT
4080 -- Specification (Node1)
4081
4082 -----------------------------------
4083 -- 6.1 Subprogram Specification --
4084 -----------------------------------
4085
4086 -- SUBPROGRAM_SPECIFICATION ::=
4087 -- [[not] overriding]
4088 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4089 -- | [[not] overriding]
4090 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4091
4092 -- Note: there are no separate nodes for the profiles, instead the
4093 -- information appears directly in the following nodes.
4094
4095 -- N_Function_Specification
4096 -- Sloc points to FUNCTION
4097 -- Defining_Unit_Name (Node1) (the designator)
4098 -- Elaboration_Boolean (Node2-Sem)
4099 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4100 -- Null_Exclusion_Present (Flag11)
4101 -- Result_Definition (Node4) for result subtype
4102 -- Generic_Parent (Node5-Sem)
4103 -- Must_Override (Flag14) set if overriding indicator present
4104 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4105
4106 -- N_Procedure_Specification
4107 -- Sloc points to PROCEDURE
4108 -- Defining_Unit_Name (Node1)
4109 -- Elaboration_Boolean (Node2-Sem)
4110 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4111 -- Generic_Parent (Node5-Sem)
4112 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4113 -- Must_Override (Flag14) set if overriding indicator present
4114 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4115
4116 -- Note: overriding indicator is an Ada 2005 feature
4117
4118 ---------------------
4119 -- 6.1 Designator --
4120 ---------------------
4121
4122 -- DESIGNATOR ::=
4123 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4124
4125 -- Designators that are simply identifiers or operator symbols appear
4126 -- directly in the tree in this form. The following node is used only
4127 -- in the case where the designator has a parent unit name component.
4128
4129 -- N_Designator
4130 -- Sloc points to period
4131 -- Name (Node2) holds the parent unit name. Note that this is always
4132 -- non-Empty, since this node is only used for the case where a
4133 -- parent library unit package name is present.
4134 -- Identifier (Node1)
4135
4136 -- Note that the identifier can also be an operator symbol here
4137
4138 ------------------------------
4139 -- 6.1 Defining Designator --
4140 ------------------------------
4141
4142 -- DEFINING_DESIGNATOR ::=
4143 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4144
4145 -------------------------------------
4146 -- 6.1 Defining Program Unit Name --
4147 -------------------------------------
4148
4149 -- DEFINING_PROGRAM_UNIT_NAME ::=
4150 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4151
4152 -- The parent unit name is present only in the case of a child unit
4153 -- name (permissible only for Ada 95 for a library level unit, i.e.
4154 -- a unit at scope level one). If no such name is present, the defining
4155 -- program unit name is represented simply as the defining identifier.
4156 -- In the child unit case, the following node is used to represent the
4157 -- child unit name.
4158
4159 -- N_Defining_Program_Unit_Name
4160 -- Sloc points to period
4161 -- Name (Node2) holds the parent unit name. Note that this is always
4162 -- non-Empty, since this node is only used for the case where a
4163 -- parent unit name is present.
4164 -- Defining_Identifier (Node1)
4165
4166 --------------------------
4167 -- 6.1 Operator Symbol --
4168 --------------------------
4169
4170 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4171
4172 -- Note: the fields of the N_Operator_Symbol node are laid out to
4173 -- match the corresponding fields of an N_Character_Literal node. This
4174 -- allows easy conversion of the operator symbol node into a character
4175 -- literal node in the case where a string constant of the form of an
4176 -- operator symbol is scanned out as such, but turns out semantically
4177 -- to be a string literal that is not an operator. For details see
4178 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4179
4180 -- N_Operator_Symbol
4181 -- Sloc points to literal
4182 -- Chars (Name1) contains the Name_Id for the operator symbol
4183 -- Strval (Str3) Id of string value. This is used if the operator
4184 -- symbol turns out to be a normal string after all.
4185 -- Entity (Node4-Sem)
4186 -- Associated_Node (Node4-Sem)
4187 -- Has_Private_View (Flag11-Sem) set in generic units.
4188 -- Etype (Node5-Sem)
4189
4190 -- Note: the Strval field may be set to No_String for generated
4191 -- operator symbols that are known not to be string literals
4192 -- semantically.
4193
4194 -----------------------------------
4195 -- 6.1 Defining Operator Symbol --
4196 -----------------------------------
4197
4198 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4199
4200 -- A defining operator symbol is an entity, which has additional
4201 -- fields depending on the setting of the Ekind field. These
4202 -- additional fields are defined (and access subprograms declared)
4203 -- in package Einfo.
4204
4205 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4206 -- are deliberately layed out to match the layout of fields in an
4207 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4208 -- an operator symbol node into a defining operator symbol node.
4209 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4210 -- for further details.
4211
4212 -- N_Defining_Operator_Symbol
4213 -- Sloc points to literal
4214 -- Chars (Name1) contains the Name_Id for the operator symbol
4215 -- Next_Entity (Node2-Sem)
4216 -- Scope (Node3-Sem)
4217 -- Etype (Node5-Sem)
4218
4219 ----------------------------
4220 -- 6.1 Parameter Profile --
4221 ----------------------------
4222
4223 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4224
4225 ---------------------------------------
4226 -- 6.1 Parameter and Result Profile --
4227 ---------------------------------------
4228
4229 -- PARAMETER_AND_RESULT_PROFILE ::=
4230 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4231 -- | [FORMAL_PART] return ACCESS_DEFINITION
4232
4233 -- There is no explicit node in the tree for a parameter and result
4234 -- profile. Instead the information appears directly in the parent.
4235
4236 ----------------------
4237 -- 6.1 Formal part --
4238 ----------------------
4239
4240 -- FORMAL_PART ::=
4241 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4242
4243 ----------------------------------
4244 -- 6.1 Parameter specification --
4245 ----------------------------------
4246
4247 -- PARAMETER_SPECIFICATION ::=
4248 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4249 -- [:= DEFAULT_EXPRESSION]
4250 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4251 -- [:= DEFAULT_EXPRESSION]
4252
4253 -- Although the syntax allows multiple identifiers in the list, the
4254 -- semantics is as though successive specifications were given with
4255 -- identical type definition and expression components. To simplify
4256 -- semantic processing, the parser represents a multiple declaration
4257 -- case as a sequence of single Specifications, using the More_Ids and
4258 -- Prev_Ids flags to preserve the original source form as described
4259 -- in the section on "Handling of Defining Identifier Lists".
4260
4261 -- N_Parameter_Specification
4262 -- Sloc points to first identifier
4263 -- Defining_Identifier (Node1)
4264 -- In_Present (Flag15)
4265 -- Out_Present (Flag17)
4266 -- Null_Exclusion_Present (Flag11)
4267 -- Parameter_Type (Node2) subtype mark or access definition
4268 -- Expression (Node3) (set to Empty if no default expression present)
4269 -- Do_Accessibility_Check (Flag13-Sem)
4270 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4271 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4272 -- Default_Expression (Node5-Sem)
4273
4274 ---------------
4275 -- 6.1 Mode --
4276 ---------------
4277
4278 -- MODE ::= [in] | in out | out
4279
4280 -- There is no explicit node in the tree for the Mode. Instead the
4281 -- In_Present and Out_Present flags are set in the parent node to
4282 -- record the presence of keywords specifying the mode.
4283
4284 --------------------------
4285 -- 6.3 Subprogram Body --
4286 --------------------------
4287
4288 -- SUBPROGRAM_BODY ::=
4289 -- SUBPROGRAM_SPECIFICATION is
4290 -- DECLARATIVE_PART
4291 -- begin
4292 -- HANDLED_SEQUENCE_OF_STATEMENTS
4293 -- end [DESIGNATOR];
4294
4295 -- N_Subprogram_Body
4296 -- Sloc points to FUNCTION or PROCEDURE
4297 -- Specification (Node1)
4298 -- Declarations (List2)
4299 -- Handled_Statement_Sequence (Node4)
4300 -- Activation_Chain_Entity (Node3-Sem)
4301 -- Corresponding_Spec (Node5-Sem)
4302 -- Acts_As_Spec (Flag4-Sem)
4303 -- Bad_Is_Detected (Flag15) used only by parser
4304 -- Do_Storage_Check (Flag17-Sem)
4305 -- Has_Priority_Pragma (Flag6-Sem)
4306 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4307 -- Is_Entry_Barrier_Function (Flag8-Sem)
4308 -- Is_Task_Master (Flag5-Sem)
4309 -- Was_Originally_Stub (Flag13-Sem)
4310 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4311
4312 -----------------------------------
4313 -- 6.4 Procedure Call Statement --
4314 -----------------------------------
4315
4316 -- PROCEDURE_CALL_STATEMENT ::=
4317 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4318
4319 -- Note: the reason that a procedure call has expression fields is
4320 -- that it semantically resembles an expression, e.g. overloading is
4321 -- allowed and a type is concocted for semantic processing purposes.
4322 -- Certain of these fields, such as Parens are not relevant, but it
4323 -- is easier to just supply all of them together!
4324
4325 -- N_Procedure_Call_Statement
4326 -- Sloc points to first token of name or prefix
4327 -- Name (Node2) stores name or prefix
4328 -- Parameter_Associations (List3) (set to No_List if no
4329 -- actual parameter part)
4330 -- First_Named_Actual (Node4-Sem)
4331 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4332 -- Do_Tag_Check (Flag13-Sem)
4333 -- No_Elaboration_Check (Flag14-Sem)
4334 -- Parameter_List_Truncated (Flag17-Sem)
4335 -- ABE_Is_Certain (Flag18-Sem)
4336 -- plus fields for expression
4337
4338 -- If any IN parameter requires a range check, then the corresponding
4339 -- argument expression has the Do_Range_Check flag set, and the range
4340 -- check is done against the formal type. Note that this argument
4341 -- expression may appear directly in the Parameter_Associations list,
4342 -- or may be a descendent of an N_Parameter_Association node that
4343 -- appears in this list.
4344
4345 ------------------------
4346 -- 6.4 Function Call --
4347 ------------------------
4348
4349 -- FUNCTION_CALL ::=
4350 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4351
4352 -- Note: the parser may generate an indexed component node or simply
4353 -- a name node instead of a function call node. The semantic pass must
4354 -- correct this misidentification.
4355
4356 -- N_Function_Call
4357 -- Sloc points to first token of name or prefix
4358 -- Name (Node2) stores name or prefix
4359 -- Parameter_Associations (List3) (set to No_List if no
4360 -- actual parameter part)
4361 -- First_Named_Actual (Node4-Sem)
4362 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4363 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4364 -- Do_Tag_Check (Flag13-Sem)
4365 -- No_Elaboration_Check (Flag14-Sem)
4366 -- Parameter_List_Truncated (Flag17-Sem)
4367 -- ABE_Is_Certain (Flag18-Sem)
4368 -- plus fields for expression
4369
4370 --------------------------------
4371 -- 6.4 Actual Parameter Part --
4372 --------------------------------
4373
4374 -- ACTUAL_PARAMETER_PART ::=
4375 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4376
4377 --------------------------------
4378 -- 6.4 Parameter Association --
4379 --------------------------------
4380
4381 -- PARAMETER_ASSOCIATION ::=
4382 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4383
4384 -- Note: the N_Parameter_Association node is built only if a formal
4385 -- parameter selector name is present, otherwise the parameter
4386 -- association appears in the tree simply as the node for the
4387 -- explicit actual parameter.
4388
4389 -- N_Parameter_Association
4390 -- Sloc points to formal parameter
4391 -- Selector_Name (Node2) (always non-Empty)
4392 -- Explicit_Actual_Parameter (Node3)
4393 -- Next_Named_Actual (Node4-Sem)
4394
4395 ---------------------------
4396 -- 6.4 Actual Parameter --
4397 ---------------------------
4398
4399 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4400
4401 ---------------------------
4402 -- 6.5 Return Statement --
4403 ---------------------------
4404
4405 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4406
4407 -- In Ada 2005, we have:
4408
4409 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4410
4411 -- EXTENDED_RETURN_STATEMENT ::=
4412 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4413 -- [:= EXPRESSION] [do
4414 -- HANDLED_SEQUENCE_OF_STATEMENTS
4415 -- end return];
4416
4417 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4418
4419 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4420 -- "return statement" is defined in 6.5 to mean a
4421 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4422
4423 -- N_Return_Statement
4424 -- Sloc points to RETURN
4425 -- Return_Statement_Entity (Node5-Sem)
4426 -- Expression (Node3) (set to Empty if no expression present)
4427 -- Storage_Pool (Node1-Sem)
4428 -- Procedure_To_Call (Node2-Sem)
4429 -- Do_Tag_Check (Flag13-Sem)
4430 -- By_Ref (Flag5-Sem)
4431 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4432
4433 -- N_Return_Statement represents a simple_return_statement, and is
4434 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4435 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4436 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4437 -- as Make_Simple_Return_Statement in Sem_Util.
4438
4439 -- Note: Return_Statement_Entity points to an E_Return_Statement
4440
4441 -- If a range check is required, then Do_Range_Check is set on the
4442 -- Expression. The check is against the return subtype of the function.
4443
4444 -- N_Extended_Return_Statement
4445 -- Sloc points to RETURN
4446 -- Return_Statement_Entity (Node5-Sem)
4447 -- Return_Object_Declarations (List3)
4448 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4449 -- Storage_Pool (Node1-Sem)
4450 -- Procedure_To_Call (Node2-Sem)
4451 -- Do_Tag_Check (Flag13-Sem)
4452 -- By_Ref (Flag5-Sem)
4453
4454 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4455 -- Note that Return_Object_Declarations is a list containing the
4456 -- N_Object_Declaration -- see comment on this field above.
4457 -- The declared object will have Is_Return_Object = True.
4458 -- There is no such syntactic category as return_object_declaration
4459 -- in the RM. Return_Object_Declarations represents this portion of
4460 -- the syntax for EXTENDED_RETURN_STATEMENT:
4461 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4462 -- [:= EXPRESSION]
4463
4464 -- There are two entities associated with an extended_return_statement:
4465 -- the Return_Statement_Entity represents the statement itself, and the
4466 -- Defining_Identifier of the Object_Declaration in
4467 -- Return_Object_Declarations represents the object being
4468 -- returned. N_Simple_Return_Statement has only the former.
4469
4470 ------------------------------
4471 -- 7.1 Package Declaration --
4472 ------------------------------
4473
4474 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4475
4476 -- Note: the activation chain entity for a package spec is used for
4477 -- all tasks declared in the package spec, or in the package body.
4478
4479 -- N_Package_Declaration
4480 -- Sloc points to PACKAGE
4481 -- Specification (Node1)
4482 -- Corresponding_Body (Node5-Sem)
4483 -- Parent_Spec (Node4-Sem)
4484 -- Activation_Chain_Entity (Node3-Sem)
4485
4486 --------------------------------
4487 -- 7.1 Package Specification --
4488 --------------------------------
4489
4490 -- PACKAGE_SPECIFICATION ::=
4491 -- package DEFINING_PROGRAM_UNIT_NAME is
4492 -- {BASIC_DECLARATIVE_ITEM}
4493 -- [private
4494 -- {BASIC_DECLARATIVE_ITEM}]
4495 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4496
4497 -- N_Package_Specification
4498 -- Sloc points to PACKAGE
4499 -- Defining_Unit_Name (Node1)
4500 -- Visible_Declarations (List2)
4501 -- Private_Declarations (List3) (set to No_List if no private
4502 -- part present)
4503 -- End_Label (Node4)
4504 -- Generic_Parent (Node5-Sem)
4505 -- Limited_View_Installed (Flag18-Sem)
4506
4507 -----------------------
4508 -- 7.1 Package Body --
4509 -----------------------
4510
4511 -- PACKAGE_BODY ::=
4512 -- package body DEFINING_PROGRAM_UNIT_NAME is
4513 -- DECLARATIVE_PART
4514 -- [begin
4515 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4516 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4517
4518 -- N_Package_Body
4519 -- Sloc points to PACKAGE
4520 -- Defining_Unit_Name (Node1)
4521 -- Declarations (List2)
4522 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4523 -- Corresponding_Spec (Node5-Sem)
4524 -- Was_Originally_Stub (Flag13-Sem)
4525
4526 -- Note: if a source level package does not contain a handled sequence
4527 -- of statements, then the parser supplies a dummy one with a null
4528 -- sequence of statements. Comes_From_Source will be False in this
4529 -- constructed sequence. The reason we need this is for the End_Label
4530 -- field in the HSS.
4531
4532 -----------------------------------
4533 -- 7.4 Private Type Declaration --
4534 -----------------------------------
4535
4536 -- PRIVATE_TYPE_DECLARATION ::=
4537 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4538 -- is [[abstract] tagged] [limited] private;
4539
4540 -- Note: TAGGED is not permitted in Ada 83 mode
4541
4542 -- N_Private_Type_Declaration
4543 -- Sloc points to TYPE
4544 -- Defining_Identifier (Node1)
4545 -- Discriminant_Specifications (List4) (set to No_List if no
4546 -- discriminant part)
4547 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4548 -- Abstract_Present (Flag4)
4549 -- Tagged_Present (Flag15)
4550 -- Limited_Present (Flag17)
4551
4552 ----------------------------------------
4553 -- 7.4 Private Extension Declaration --
4554 ----------------------------------------
4555
4556 -- PRIVATE_EXTENSION_DECLARATION ::=
4557 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4558 -- [abstract] [limited | synchronized]
4559 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4560 -- with private;
4561
4562 -- Note: LIMITED, and private extension declarations are not allowed
4563 -- in Ada 83 mode.
4564
4565 -- N_Private_Extension_Declaration
4566 -- Sloc points to TYPE
4567 -- Defining_Identifier (Node1)
4568 -- Discriminant_Specifications (List4) (set to No_List if no
4569 -- discriminant part)
4570 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4571 -- Abstract_Present (Flag4)
4572 -- Limited_Present (Flag17)
4573 -- Synchronized_Present (Flag7)
4574 -- Subtype_Indication (Node5)
4575 -- Interface_List (List2) (set to No_List if none)
4576
4577 ---------------------
4578 -- 8.4 Use Clause --
4579 ---------------------
4580
4581 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4582
4583 -----------------------------
4584 -- 8.4 Use Package Clause --
4585 -----------------------------
4586
4587 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4588
4589 -- N_Use_Package_Clause
4590 -- Sloc points to USE
4591 -- Names (List2)
4592 -- Next_Use_Clause (Node3-Sem)
4593 -- Hidden_By_Use_Clause (Elist4-Sem)
4594
4595 --------------------------
4596 -- 8.4 Use Type Clause --
4597 --------------------------
4598
4599 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4600
4601 -- Note: use type clause is not permitted in Ada 83 mode
4602
4603 -- N_Use_Type_Clause
4604 -- Sloc points to USE
4605 -- Subtype_Marks (List2)
4606 -- Next_Use_Clause (Node3-Sem)
4607 -- Hidden_By_Use_Clause (Elist4-Sem)
4608
4609 -------------------------------
4610 -- 8.5 Renaming Declaration --
4611 -------------------------------
4612
4613 -- RENAMING_DECLARATION ::=
4614 -- OBJECT_RENAMING_DECLARATION
4615 -- | EXCEPTION_RENAMING_DECLARATION
4616 -- | PACKAGE_RENAMING_DECLARATION
4617 -- | SUBPROGRAM_RENAMING_DECLARATION
4618 -- | GENERIC_RENAMING_DECLARATION
4619
4620 --------------------------------------
4621 -- 8.5 Object Renaming Declaration --
4622 --------------------------------------
4623
4624 -- OBJECT_RENAMING_DECLARATION ::=
4625 -- DEFINING_IDENTIFIER :
4626 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4627 -- | DEFINING_IDENTIFIER :
4628 -- ACCESS_DEFINITION renames object_NAME;
4629
4630 -- Note: Access_Definition is an optional field that gives support to
4631 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4632 -- Subtype_Indication field or else the Access_Definition field.
4633
4634 -- N_Object_Renaming_Declaration
4635 -- Sloc points to first identifier
4636 -- Defining_Identifier (Node1)
4637 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4638 -- Subtype_Mark (Node4) (set to Empty if not present)
4639 -- Access_Definition (Node3) (set to Empty if not present)
4640 -- Name (Node2)
4641 -- Corresponding_Generic_Association (Node5-Sem)
4642
4643 -----------------------------------------
4644 -- 8.5 Exception Renaming Declaration --
4645 -----------------------------------------
4646
4647 -- EXCEPTION_RENAMING_DECLARATION ::=
4648 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4649
4650 -- N_Exception_Renaming_Declaration
4651 -- Sloc points to first identifier
4652 -- Defining_Identifier (Node1)
4653 -- Name (Node2)
4654
4655 ---------------------------------------
4656 -- 8.5 Package Renaming Declaration --
4657 ---------------------------------------
4658
4659 -- PACKAGE_RENAMING_DECLARATION ::=
4660 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4661
4662 -- N_Package_Renaming_Declaration
4663 -- Sloc points to PACKAGE
4664 -- Defining_Unit_Name (Node1)
4665 -- Name (Node2)
4666 -- Parent_Spec (Node4-Sem)
4667
4668 ------------------------------------------
4669 -- 8.5 Subprogram Renaming Declaration --
4670 ------------------------------------------
4671
4672 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4673 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4674
4675 -- N_Subprogram_Renaming_Declaration
4676 -- Sloc points to RENAMES
4677 -- Specification (Node1)
4678 -- Name (Node2)
4679 -- Parent_Spec (Node4-Sem)
4680 -- Corresponding_Spec (Node5-Sem)
4681 -- Corresponding_Formal_Spec (Node3-Sem)
4682 -- From_Default (Flag6-Sem)
4683
4684 -----------------------------------------
4685 -- 8.5.5 Generic Renaming Declaration --
4686 -----------------------------------------
4687
4688 -- GENERIC_RENAMING_DECLARATION ::=
4689 -- generic package DEFINING_PROGRAM_UNIT_NAME
4690 -- renames generic_package_NAME
4691 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4692 -- renames generic_procedure_NAME
4693 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4694 -- renames generic_function_NAME
4695
4696 -- N_Generic_Package_Renaming_Declaration
4697 -- Sloc points to GENERIC
4698 -- Defining_Unit_Name (Node1)
4699 -- Name (Node2)
4700 -- Parent_Spec (Node4-Sem)
4701
4702 -- N_Generic_Procedure_Renaming_Declaration
4703 -- Sloc points to GENERIC
4704 -- Defining_Unit_Name (Node1)
4705 -- Name (Node2)
4706 -- Parent_Spec (Node4-Sem)
4707
4708 -- N_Generic_Function_Renaming_Declaration
4709 -- Sloc points to GENERIC
4710 -- Defining_Unit_Name (Node1)
4711 -- Name (Node2)
4712 -- Parent_Spec (Node4-Sem)
4713
4714 --------------------------------
4715 -- 9.1 Task Type Declaration --
4716 --------------------------------
4717
4718 -- TASK_TYPE_DECLARATION ::=
4719 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4720 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4721
4722 -- N_Task_Type_Declaration
4723 -- Sloc points to TASK
4724 -- Defining_Identifier (Node1)
4725 -- Discriminant_Specifications (List4) (set to No_List if no
4726 -- discriminant part)
4727 -- Interface_List (List2) (set to No_List if none)
4728 -- Task_Definition (Node3) (set to Empty if not present)
4729 -- Corresponding_Body (Node5-Sem)
4730
4731 ----------------------------------
4732 -- 9.1 Single Task Declaration --
4733 ----------------------------------
4734
4735 -- SINGLE_TASK_DECLARATION ::=
4736 -- task DEFINING_IDENTIFIER
4737 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4738
4739 -- N_Single_Task_Declaration
4740 -- Sloc points to TASK
4741 -- Defining_Identifier (Node1)
4742 -- Interface_List (List2) (set to No_List if none)
4743 -- Task_Definition (Node3) (set to Empty if not present)
4744
4745 --------------------------
4746 -- 9.1 Task Definition --
4747 --------------------------
4748
4749 -- TASK_DEFINITION ::=
4750 -- {TASK_ITEM}
4751 -- [private
4752 -- {TASK_ITEM}]
4753 -- end [task_IDENTIFIER]
4754
4755 -- Note: as a result of semantic analysis, the list of task items can
4756 -- include implicit type declarations resulting from entry families.
4757
4758 -- N_Task_Definition
4759 -- Sloc points to first token of task definition
4760 -- Visible_Declarations (List2)
4761 -- Private_Declarations (List3) (set to No_List if no private part)
4762 -- End_Label (Node4)
4763 -- Has_Priority_Pragma (Flag6-Sem)
4764 -- Has_Storage_Size_Pragma (Flag5-Sem)
4765 -- Has_Task_Info_Pragma (Flag7-Sem)
4766 -- Has_Task_Name_Pragma (Flag8-Sem)
4767 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4768
4769 --------------------
4770 -- 9.1 Task Item --
4771 --------------------
4772
4773 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4774
4775 --------------------
4776 -- 9.1 Task Body --
4777 --------------------
4778
4779 -- TASK_BODY ::=
4780 -- task body task_DEFINING_IDENTIFIER is
4781 -- DECLARATIVE_PART
4782 -- begin
4783 -- HANDLED_SEQUENCE_OF_STATEMENTS
4784 -- end [task_IDENTIFIER];
4785
4786 -- Gigi restriction: This node never appears
4787
4788 -- N_Task_Body
4789 -- Sloc points to TASK
4790 -- Defining_Identifier (Node1)
4791 -- Declarations (List2)
4792 -- Handled_Statement_Sequence (Node4)
4793 -- Is_Task_Master (Flag5-Sem)
4794 -- Activation_Chain_Entity (Node3-Sem)
4795 -- Corresponding_Spec (Node5-Sem)
4796 -- Was_Originally_Stub (Flag13-Sem)
4797
4798 -------------------------------------
4799 -- 9.4 Protected Type Declaration --
4800 -------------------------------------
4801
4802 -- PROTECTED_TYPE_DECLARATION ::=
4803 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4804 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4805
4806 -- Note: protected type declarations are not permitted in Ada 83 mode
4807
4808 -- N_Protected_Type_Declaration
4809 -- Sloc points to PROTECTED
4810 -- Defining_Identifier (Node1)
4811 -- Discriminant_Specifications (List4) (set to No_List if no
4812 -- discriminant part)
4813 -- Interface_List (List2) (set to No_List if none)
4814 -- Protected_Definition (Node3)
4815 -- Corresponding_Body (Node5-Sem)
4816
4817 ---------------------------------------
4818 -- 9.4 Single Protected Declaration --
4819 ---------------------------------------
4820
4821 -- SINGLE_PROTECTED_DECLARATION ::=
4822 -- protected DEFINING_IDENTIFIER
4823 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4824
4825 -- Note: single protected declarations are not allowed in Ada 83 mode
4826
4827 -- N_Single_Protected_Declaration
4828 -- Sloc points to PROTECTED
4829 -- Defining_Identifier (Node1)
4830 -- Interface_List (List2) (set to No_List if none)
4831 -- Protected_Definition (Node3)
4832
4833 -------------------------------
4834 -- 9.4 Protected Definition --
4835 -------------------------------
4836
4837 -- PROTECTED_DEFINITION ::=
4838 -- {PROTECTED_OPERATION_DECLARATION}
4839 -- [private
4840 -- {PROTECTED_ELEMENT_DECLARATION}]
4841 -- end [protected_IDENTIFIER]
4842
4843 -- N_Protected_Definition
4844 -- Sloc points to first token of protected definition
4845 -- Visible_Declarations (List2)
4846 -- Private_Declarations (List3) (set to No_List if no private part)
4847 -- End_Label (Node4)
4848 -- Has_Priority_Pragma (Flag6-Sem)
4849
4850 ------------------------------------------
4851 -- 9.4 Protected Operation Declaration --
4852 ------------------------------------------
4853
4854 -- PROTECTED_OPERATION_DECLARATION ::=
4855 -- SUBPROGRAM_DECLARATION
4856 -- | ENTRY_DECLARATION
4857 -- | REPRESENTATION_CLAUSE
4858
4859 ----------------------------------------
4860 -- 9.4 Protected Element Declaration --
4861 ----------------------------------------
4862
4863 -- PROTECTED_ELEMENT_DECLARATION ::=
4864 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4865
4866 -------------------------
4867 -- 9.4 Protected Body --
4868 -------------------------
4869
4870 -- PROTECTED_BODY ::=
4871 -- protected body DEFINING_IDENTIFIER is
4872 -- {PROTECTED_OPERATION_ITEM}
4873 -- end [protected_IDENTIFIER];
4874
4875 -- Note: protected bodies are not allowed in Ada 83 mode
4876
4877 -- Gigi restriction: This node never appears
4878
4879 -- N_Protected_Body
4880 -- Sloc points to PROTECTED
4881 -- Defining_Identifier (Node1)
4882 -- Declarations (List2) protected operation items (and pragmas)
4883 -- End_Label (Node4)
4884 -- Corresponding_Spec (Node5-Sem)
4885 -- Was_Originally_Stub (Flag13-Sem)
4886
4887 -----------------------------------
4888 -- 9.4 Protected Operation Item --
4889 -----------------------------------
4890
4891 -- PROTECTED_OPERATION_ITEM ::=
4892 -- SUBPROGRAM_DECLARATION
4893 -- | SUBPROGRAM_BODY
4894 -- | ENTRY_BODY
4895 -- | REPRESENTATION_CLAUSE
4896
4897 ------------------------------
4898 -- 9.5.2 Entry Declaration --
4899 ------------------------------
4900
4901 -- ENTRY_DECLARATION ::=
4902 -- [[not] overriding]
4903 -- entry DEFINING_IDENTIFIER
4904 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4905
4906 -- N_Entry_Declaration
4907 -- Sloc points to ENTRY
4908 -- Defining_Identifier (Node1)
4909 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4910 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4911 -- Corresponding_Body (Node5-Sem)
4912 -- Must_Override (Flag14) set if overriding indicator present
4913 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4914
4915 -- Note: overriding indicator is an Ada 2005 feature
4916
4917 -----------------------------
4918 -- 9.5.2 Accept statement --
4919 -----------------------------
4920
4921 -- ACCEPT_STATEMENT ::=
4922 -- accept entry_DIRECT_NAME
4923 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4924 -- HANDLED_SEQUENCE_OF_STATEMENTS
4925 -- end [entry_IDENTIFIER]];
4926
4927 -- Gigi restriction: This node never appears
4928
4929 -- Note: there are no explicit declarations allowed in an accept
4930 -- statement. However, the implicit declarations for any statement
4931 -- identifiers (labels and block/loop identifiers) are declarations
4932 -- that belong logically to the accept statement, and that is why
4933 -- there is a Declarations field in this node.
4934
4935 -- N_Accept_Statement
4936 -- Sloc points to ACCEPT
4937 -- Entry_Direct_Name (Node1)
4938 -- Entry_Index (Node5) (set to Empty if not present)
4939 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4940 -- Handled_Statement_Sequence (Node4)
4941 -- Declarations (List2) (set to No_List if no declarations)
4942
4943 ------------------------
4944 -- 9.5.2 Entry Index --
4945 ------------------------
4946
4947 -- ENTRY_INDEX ::= EXPRESSION
4948
4949 -----------------------
4950 -- 9.5.2 Entry Body --
4951 -----------------------
4952
4953 -- ENTRY_BODY ::=
4954 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4955 -- DECLARATIVE_PART
4956 -- begin
4957 -- HANDLED_SEQUENCE_OF_STATEMENTS
4958 -- end [entry_IDENTIFIER];
4959
4960 -- ENTRY_BARRIER ::= when CONDITION
4961
4962 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4963 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4964 -- too full (it would otherwise have too many fields)
4965
4966 -- Gigi restriction: This node never appears
4967
4968 -- N_Entry_Body
4969 -- Sloc points to ENTRY
4970 -- Defining_Identifier (Node1)
4971 -- Entry_Body_Formal_Part (Node5)
4972 -- Declarations (List2)
4973 -- Handled_Statement_Sequence (Node4)
4974 -- Activation_Chain_Entity (Node3-Sem)
4975
4976 -----------------------------------
4977 -- 9.5.2 Entry Body Formal Part --
4978 -----------------------------------
4979
4980 -- ENTRY_BODY_FORMAL_PART ::=
4981 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4982
4983 -- Note that an entry body formal part node is present even if it is
4984 -- empty. This reflects the grammar, in which it is the components of
4985 -- the entry body formal part that are optional, not the entry body
4986 -- formal part itself. Also this means that the barrier condition
4987 -- always has somewhere to be stored.
4988
4989 -- Gigi restriction: This node never appears
4990
4991 -- N_Entry_Body_Formal_Part
4992 -- Sloc points to first token
4993 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4994 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4995 -- Condition (Node1) from entry barrier of entry body
4996
4997 --------------------------
4998 -- 9.5.2 Entry Barrier --
4999 --------------------------
5000
5001 -- ENTRY_BARRIER ::= when CONDITION
5002
5003 --------------------------------------
5004 -- 9.5.2 Entry Index Specification --
5005 --------------------------------------
5006
5007 -- ENTRY_INDEX_SPECIFICATION ::=
5008 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5009
5010 -- Gigi restriction: This node never appears
5011
5012 -- N_Entry_Index_Specification
5013 -- Sloc points to FOR
5014 -- Defining_Identifier (Node1)
5015 -- Discrete_Subtype_Definition (Node4)
5016
5017 ---------------------------------
5018 -- 9.5.3 Entry Call Statement --
5019 ---------------------------------
5020
5021 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5022
5023 -- The parser may generate a procedure call for this construct. The
5024 -- semantic pass must correct this misidentification where needed.
5025
5026 -- Gigi restriction: This node never appears
5027
5028 -- N_Entry_Call_Statement
5029 -- Sloc points to first token of name
5030 -- Name (Node2)
5031 -- Parameter_Associations (List3) (set to No_List if no
5032 -- actual parameter part)
5033 -- First_Named_Actual (Node4-Sem)
5034
5035 ------------------------------
5036 -- 9.5.4 Requeue Statement --
5037 ------------------------------
5038
5039 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5040
5041 -- Note: requeue statements are not permitted in Ada 83 mode
5042
5043 -- Gigi restriction: This node never appears
5044
5045 -- N_Requeue_Statement
5046 -- Sloc points to REQUEUE
5047 -- Name (Node2)
5048 -- Abort_Present (Flag15)
5049
5050 --------------------------
5051 -- 9.6 Delay Statement --
5052 --------------------------
5053
5054 -- DELAY_STATEMENT ::=
5055 -- DELAY_UNTIL_STATEMENT
5056 -- | DELAY_RELATIVE_STATEMENT
5057
5058 --------------------------------
5059 -- 9.6 Delay Until Statement --
5060 --------------------------------
5061
5062 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5063
5064 -- Note: delay until statements are not permitted in Ada 83 mode
5065
5066 -- Gigi restriction: This node never appears
5067
5068 -- N_Delay_Until_Statement
5069 -- Sloc points to DELAY
5070 -- Expression (Node3)
5071
5072 -----------------------------------
5073 -- 9.6 Delay Relative Statement --
5074 -----------------------------------
5075
5076 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5077
5078 -- Gigi restriction: This node never appears
5079
5080 -- N_Delay_Relative_Statement
5081 -- Sloc points to DELAY
5082 -- Expression (Node3)
5083
5084 ---------------------------
5085 -- 9.7 Select Statement --
5086 ---------------------------
5087
5088 -- SELECT_STATEMENT ::=
5089 -- SELECTIVE_ACCEPT
5090 -- | TIMED_ENTRY_CALL
5091 -- | CONDITIONAL_ENTRY_CALL
5092 -- | ASYNCHRONOUS_SELECT
5093
5094 -----------------------------
5095 -- 9.7.1 Selective Accept --
5096 -----------------------------
5097
5098 -- SELECTIVE_ACCEPT ::=
5099 -- select
5100 -- [GUARD]
5101 -- SELECT_ALTERNATIVE
5102 -- {or
5103 -- [GUARD]
5104 -- SELECT_ALTERNATIVE}
5105 -- [else
5106 -- SEQUENCE_OF_STATEMENTS]
5107 -- end select;
5108
5109 -- Gigi restriction: This node never appears
5110
5111 -- Note: the guard expression, if present, appears in the node for
5112 -- the select alternative.
5113
5114 -- N_Selective_Accept
5115 -- Sloc points to SELECT
5116 -- Select_Alternatives (List1)
5117 -- Else_Statements (List4) (set to No_List if no else part)
5118
5119 ------------------
5120 -- 9.7.1 Guard --
5121 ------------------
5122
5123 -- GUARD ::= when CONDITION =>
5124
5125 -- As noted above, the CONDITION that is part of a GUARD is included
5126 -- in the node for the select alternative for convenience.
5127
5128 -------------------------------
5129 -- 9.7.1 Select Alternative --
5130 -------------------------------
5131
5132 -- SELECT_ALTERNATIVE ::=
5133 -- ACCEPT_ALTERNATIVE
5134 -- | DELAY_ALTERNATIVE
5135 -- | TERMINATE_ALTERNATIVE
5136
5137 -------------------------------
5138 -- 9.7.1 Accept Alternative --
5139 -------------------------------
5140
5141 -- ACCEPT_ALTERNATIVE ::=
5142 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5143
5144 -- Gigi restriction: This node never appears
5145
5146 -- N_Accept_Alternative
5147 -- Sloc points to ACCEPT
5148 -- Accept_Statement (Node2)
5149 -- Condition (Node1) from the guard (set to Empty if no guard present)
5150 -- Statements (List3) (set to Empty_List if no statements)
5151 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5152 -- Accept_Handler_Records (List5-Sem)
5153
5154 ------------------------------
5155 -- 9.7.1 Delay Alternative --
5156 ------------------------------
5157
5158 -- DELAY_ALTERNATIVE ::=
5159 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5160
5161 -- Gigi restriction: This node never appears
5162
5163 -- N_Delay_Alternative
5164 -- Sloc points to DELAY
5165 -- Delay_Statement (Node2)
5166 -- Condition (Node1) from the guard (set to Empty if no guard present)
5167 -- Statements (List3) (set to Empty_List if no statements)
5168 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5169
5170 ----------------------------------
5171 -- 9.7.1 Terminate Alternative --
5172 ----------------------------------
5173
5174 -- TERMINATE_ALTERNATIVE ::= terminate;
5175
5176 -- Gigi restriction: This node never appears
5177
5178 -- N_Terminate_Alternative
5179 -- Sloc points to TERMINATE
5180 -- Condition (Node1) from the guard (set to Empty if no guard present)
5181 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5182 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5183
5184 -----------------------------
5185 -- 9.7.2 Timed Entry Call --
5186 -----------------------------
5187
5188 -- TIMED_ENTRY_CALL ::=
5189 -- select
5190 -- ENTRY_CALL_ALTERNATIVE
5191 -- or
5192 -- DELAY_ALTERNATIVE
5193 -- end select;
5194
5195 -- Gigi restriction: This node never appears
5196
5197 -- N_Timed_Entry_Call
5198 -- Sloc points to SELECT
5199 -- Entry_Call_Alternative (Node1)
5200 -- Delay_Alternative (Node4)
5201
5202 -----------------------------------
5203 -- 9.7.2 Entry Call Alternative --
5204 -----------------------------------
5205
5206 -- ENTRY_CALL_ALTERNATIVE ::=
5207 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5208
5209 -- PROCEDURE_OR_ENTRY_CALL ::=
5210 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5211
5212 -- Gigi restriction: This node never appears
5213
5214 -- N_Entry_Call_Alternative
5215 -- Sloc points to first token of entry call statement
5216 -- Entry_Call_Statement (Node1)
5217 -- Statements (List3) (set to Empty_List if no statements)
5218 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5219
5220 -----------------------------------
5221 -- 9.7.3 Conditional Entry Call --
5222 -----------------------------------
5223
5224 -- CONDITIONAL_ENTRY_CALL ::=
5225 -- select
5226 -- ENTRY_CALL_ALTERNATIVE
5227 -- else
5228 -- SEQUENCE_OF_STATEMENTS
5229 -- end select;
5230
5231 -- Gigi restriction: This node never appears
5232
5233 -- N_Conditional_Entry_Call
5234 -- Sloc points to SELECT
5235 -- Entry_Call_Alternative (Node1)
5236 -- Else_Statements (List4)
5237
5238 --------------------------------
5239 -- 9.7.4 Asynchronous Select --
5240 --------------------------------
5241
5242 -- ASYNCHRONOUS_SELECT ::=
5243 -- select
5244 -- TRIGGERING_ALTERNATIVE
5245 -- then abort
5246 -- ABORTABLE_PART
5247 -- end select;
5248
5249 -- Note: asynchronous select is not permitted in Ada 83 mode
5250
5251 -- Gigi restriction: This node never appears
5252
5253 -- N_Asynchronous_Select
5254 -- Sloc points to SELECT
5255 -- Triggering_Alternative (Node1)
5256 -- Abortable_Part (Node2)
5257
5258 -----------------------------------
5259 -- 9.7.4 Triggering Alternative --
5260 -----------------------------------
5261
5262 -- TRIGGERING_ALTERNATIVE ::=
5263 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5264
5265 -- Gigi restriction: This node never appears
5266
5267 -- N_Triggering_Alternative
5268 -- Sloc points to first token of triggering statement
5269 -- Triggering_Statement (Node1)
5270 -- Statements (List3) (set to Empty_List if no statements)
5271 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5272
5273 ---------------------------------
5274 -- 9.7.4 Triggering Statement --
5275 ---------------------------------
5276
5277 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5278
5279 ---------------------------
5280 -- 9.7.4 Abortable Part --
5281 ---------------------------
5282
5283 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5284
5285 -- Gigi restriction: This node never appears
5286
5287 -- N_Abortable_Part
5288 -- Sloc points to ABORT
5289 -- Statements (List3)
5290
5291 --------------------------
5292 -- 9.8 Abort Statement --
5293 --------------------------
5294
5295 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5296
5297 -- Gigi restriction: This node never appears
5298
5299 -- N_Abort_Statement
5300 -- Sloc points to ABORT
5301 -- Names (List2)
5302
5303 -------------------------
5304 -- 10.1.1 Compilation --
5305 -------------------------
5306
5307 -- COMPILATION ::= {COMPILATION_UNIT}
5308
5309 -- There is no explicit node in the tree for a compilation, since in
5310 -- general the compiler is processing only a single compilation unit
5311 -- at a time. It is possible to parse multiple units in syntax check
5312 -- only mode, but they the trees are discarded in any case.
5313
5314 ------------------------------
5315 -- 10.1.1 Compilation Unit --
5316 ------------------------------
5317
5318 -- COMPILATION_UNIT ::=
5319 -- CONTEXT_CLAUSE LIBRARY_ITEM
5320 -- | CONTEXT_CLAUSE SUBUNIT
5321
5322 -- The N_Compilation_Unit node itself represents the above syntax.
5323 -- However, there are two additional items not reflected in the above
5324 -- syntax. First we have the global declarations that are added by the
5325 -- code generator. These are outer level declarations (so they cannot
5326 -- be represented as being inside the units). An example is the wrapper
5327 -- subprograms that are created to do ABE checking. As always a list of
5328 -- declarations can contain actions as well (i.e. statements), and such
5329 -- statements are executed as part of the elaboration of the unit. Note
5330 -- that all such declarations are elaborated before the library unit.
5331
5332 -- Similarly, certain actions need to be elaborated at the completion
5333 -- of elaboration of the library unit (notably the statement that sets
5334 -- the Boolean flag indicating that elaboration is complete).
5335
5336 -- The third item not reflected in the syntax is pragmas that appear
5337 -- after the compilation unit. As always pragmas are a problem since
5338 -- they are not part of the formal syntax, but can be stuck into the
5339 -- source following a set of ad hoc rules, and we have to find an ad
5340 -- hoc way of sticking them into the tree. For pragmas that appear
5341 -- before the library unit, we just consider them to be part of the
5342 -- context clause, and pragmas can appear in the Context_Items list
5343 -- of the compilation unit. However, pragmas can also appear after
5344 -- the library item.
5345
5346 -- To deal with all these problems, we create an auxiliary node for
5347 -- a compilation unit, referenced from the N_Compilation_Unit node
5348 -- that contains these three items.
5349
5350 -- N_Compilation_Unit
5351 -- Sloc points to first token of defining unit name
5352 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5353 -- Context_Items (List1) context items and pragmas preceding unit
5354 -- Private_Present (Flag15) set if library unit has private keyword
5355 -- Unit (Node2) library item or subunit
5356 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5357 -- Has_No_Elaboration_Code (Flag17-Sem)
5358 -- Body_Required (Flag13-Sem) set for spec if body is required
5359 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5360 -- First_Inlined_Subprogram (Node3-Sem)
5361
5362 -- N_Compilation_Unit_Aux
5363 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5364 -- Declarations (List2) (set to No_List if no global declarations)
5365 -- Actions (List1) (set to No_List if no actions)
5366 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5367 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5368
5369 --------------------------
5370 -- 10.1.1 Library Item --
5371 --------------------------
5372
5373 -- LIBRARY_ITEM ::=
5374 -- [private] LIBRARY_UNIT_DECLARATION
5375 -- | LIBRARY_UNIT_BODY
5376 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5377
5378 -- Note: PRIVATE is not allowed in Ada 83 mode
5379
5380 -- There is no explicit node in the tree for library item, instead
5381 -- the declaration or body, and the flag for private if present,
5382 -- appear in the N_Compilation_Unit clause.
5383
5384 --------------------------------------
5385 -- 10.1.1 Library Unit Declaration --
5386 --------------------------------------
5387
5388 -- LIBRARY_UNIT_DECLARATION ::=
5389 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5390 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5391
5392 -----------------------------------------------
5393 -- 10.1.1 Library Unit Renaming Declaration --
5394 -----------------------------------------------
5395
5396 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5397 -- PACKAGE_RENAMING_DECLARATION
5398 -- | GENERIC_RENAMING_DECLARATION
5399 -- | SUBPROGRAM_RENAMING_DECLARATION
5400
5401 -------------------------------
5402 -- 10.1.1 Library unit body --
5403 -------------------------------
5404
5405 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5406
5407 ------------------------------
5408 -- 10.1.1 Parent Unit Name --
5409 ------------------------------
5410
5411 -- PARENT_UNIT_NAME ::= NAME
5412
5413 ----------------------------
5414 -- 10.1.2 Context clause --
5415 ----------------------------
5416
5417 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5418
5419 -- The context clause can include pragmas, and any pragmas that appear
5420 -- before the context clause proper (i.e. all configuration pragmas,
5421 -- also appear at the front of this list).
5422
5423 --------------------------
5424 -- 10.1.2 Context_Item --
5425 --------------------------
5426
5427 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5428
5429 -------------------------
5430 -- 10.1.2 With clause --
5431 -------------------------
5432
5433 -- WITH_CLAUSE ::=
5434 -- with library_unit_NAME {,library_unit_NAME};
5435
5436 -- A separate With clause is built for each name, so that we have
5437 -- a Corresponding_Spec field for each with'ed spec. The flags
5438 -- First_Name and Last_Name are used to reconstruct the exact
5439 -- source form. When a list of names appears in one with clause,
5440 -- the first name in the list has First_Name set, and the last
5441 -- has Last_Name set. If the with clause has only one name, then
5442 -- both of the flags First_Name and Last_Name are set in this name.
5443
5444 -- Note: in the case of implicit with's that are installed by the
5445 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5446 -- set to Standard_Location, but it is incorrect to test the Sloc
5447 -- to find out if a with clause is implicit, test the flag instead.
5448
5449 -- N_With_Clause
5450 -- Sloc points to first token of library unit name
5451 -- Name (Node2)
5452 -- Library_Unit (Node4-Sem)
5453 -- Corresponding_Spec (Node5-Sem)
5454 -- First_Name (Flag5) (set to True if first name or only one name)
5455 -- Last_Name (Flag6) (set to True if last name or only one name)
5456 -- Context_Installed (Flag13-Sem)
5457 -- Elaborate_Present (Flag4-Sem)
5458 -- Elaborate_All_Present (Flag14-Sem)
5459 -- Elaborate_All_Desirable (Flag9-Sem)
5460 -- Elaborate_Desirable (Flag11-Sem)
5461 -- Private_Present (Flag15) set if with_clause has private keyword
5462 -- Implicit_With (Flag16-Sem)
5463 -- Limited_Present (Flag17) set if LIMITED is present
5464 -- Limited_View_Installed (Flag18-Sem)
5465 -- Unreferenced_In_Spec (Flag7-Sem)
5466 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5467
5468 -- Note: Limited_Present and Limited_View_Installed give support to
5469 -- Ada 2005 (AI-50217).
5470 -- Similarly, Private_Present gives support to AI-50262.
5471
5472 ----------------------
5473 -- With_Type clause --
5474 ----------------------
5475
5476 -- This is a GNAT extension, used to implement mutually recursive
5477 -- types declared in different packages.
5478 -- Note: this is now obsolete. The functionality of this construct
5479 -- is now implemented by the Ada 2005 Limited_with_Clause.
5480
5481 ---------------------
5482 -- 10.2 Body stub --
5483 ---------------------
5484
5485 -- BODY_STUB ::=
5486 -- SUBPROGRAM_BODY_STUB
5487 -- | PACKAGE_BODY_STUB
5488 -- | TASK_BODY_STUB
5489 -- | PROTECTED_BODY_STUB
5490
5491 ----------------------------------
5492 -- 10.1.3 Subprogram Body Stub --
5493 ----------------------------------
5494
5495 -- SUBPROGRAM_BODY_STUB ::=
5496 -- SUBPROGRAM_SPECIFICATION is separate;
5497
5498 -- N_Subprogram_Body_Stub
5499 -- Sloc points to FUNCTION or PROCEDURE
5500 -- Specification (Node1)
5501 -- Library_Unit (Node4-Sem) points to the subunit
5502 -- Corresponding_Body (Node5-Sem)
5503
5504 -------------------------------
5505 -- 10.1.3 Package Body Stub --
5506 -------------------------------
5507
5508 -- PACKAGE_BODY_STUB ::=
5509 -- package body DEFINING_IDENTIFIER is separate;
5510
5511 -- N_Package_Body_Stub
5512 -- Sloc points to PACKAGE
5513 -- Defining_Identifier (Node1)
5514 -- Library_Unit (Node4-Sem) points to the subunit
5515 -- Corresponding_Body (Node5-Sem)
5516
5517 ----------------------------
5518 -- 10.1.3 Task Body Stub --
5519 ----------------------------
5520
5521 -- TASK_BODY_STUB ::=
5522 -- task body DEFINING_IDENTIFIER is separate;
5523
5524 -- N_Task_Body_Stub
5525 -- Sloc points to TASK
5526 -- Defining_Identifier (Node1)
5527 -- Library_Unit (Node4-Sem) points to the subunit
5528 -- Corresponding_Body (Node5-Sem)
5529
5530 ---------------------------------
5531 -- 10.1.3 Protected Body Stub --
5532 ---------------------------------
5533
5534 -- PROTECTED_BODY_STUB ::=
5535 -- protected body DEFINING_IDENTIFIER is separate;
5536
5537 -- Note: protected body stubs are not allowed in Ada 83 mode
5538
5539 -- N_Protected_Body_Stub
5540 -- Sloc points to PROTECTED
5541 -- Defining_Identifier (Node1)
5542 -- Library_Unit (Node4-Sem) points to the subunit
5543 -- Corresponding_Body (Node5-Sem)
5544
5545 ---------------------
5546 -- 10.1.3 Subunit --
5547 ---------------------
5548
5549 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5550
5551 -- N_Subunit
5552 -- Sloc points to SEPARATE
5553 -- Name (Node2) is the name of the parent unit
5554 -- Proper_Body (Node1) is the subunit body
5555 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5556
5557 ---------------------------------
5558 -- 11.1 Exception Declaration --
5559 ---------------------------------
5560
5561 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5562
5563 -- For consistency with object declarations etc., the parser converts
5564 -- the case of multiple identifiers being declared to a series of
5565 -- declarations in which the expression is copied, using the More_Ids
5566 -- and Prev_Ids flags to remember the source form as described in the
5567 -- section on "Handling of Defining Identifier Lists".
5568
5569 -- N_Exception_Declaration
5570 -- Sloc points to EXCEPTION
5571 -- Defining_Identifier (Node1)
5572 -- Expression (Node3-Sem)
5573 -- Renaming_Exception (Node2-Sem)
5574 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5575 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5576
5577 ------------------------------------------
5578 -- 11.2 Handled Sequence Of Statements --
5579 ------------------------------------------
5580
5581 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5582 -- SEQUENCE_OF_STATEMENTS
5583 -- [exception
5584 -- EXCEPTION_HANDLER
5585 -- {EXCEPTION_HANDLER}]
5586 -- [at end
5587 -- cleanup_procedure_call (param, param, param, ...);]
5588
5589 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5590 -- used only internally currently, but is considered to be syntactic.
5591 -- At the moment, the only cleanup action allowed is a single call to
5592 -- a parameterless procedure, and the Identifier field of the node is
5593 -- the procedure to be called. Also there is a current restriction
5594 -- that exception handles and a cleanup cannot be present in the same
5595 -- frame, so at least one of Exception_Handlers or the Identifier must
5596 -- be missing.
5597
5598 -- Actually, more accurately, this restriction applies to the original
5599 -- source program. In the expanded tree, if the At_End_Proc field is
5600 -- present, then there will also be an exception handler of the form:
5601
5602 -- when all others =>
5603 -- cleanup;
5604 -- raise;
5605
5606 -- where cleanup is the procedure to be generated. The reason we do
5607 -- this is so that the front end can handle the necessary entries in
5608 -- the exception tables, and other exception handler actions required
5609 -- as part of the normal handling for exception handlers.
5610
5611 -- The AT END cleanup handler protects only the sequence of statements
5612 -- (not the associated declarations of the parent), just like exception
5613 -- handlers. The big difference is that the cleanup procedure is called
5614 -- on either a normal or an abnormal exit from the statement sequence.
5615
5616 -- Note: the list of Exception_Handlers can contain pragmas as well
5617 -- as actual handlers. In practice these pragmas can only occur at
5618 -- the start of the list, since any pragmas occurring later on will
5619 -- be included in the statement list of the corresponding handler.
5620
5621 -- Note: although in the Ada syntax, the sequence of statements in
5622 -- a handled sequence of statements can only contain statements, we
5623 -- allow free mixing of declarations and statements in the resulting
5624 -- expanded tree. This is for example used to deal with the case of
5625 -- a cleanup procedure that must handle declarations as well as the
5626 -- statements of a block.
5627
5628 -- N_Handled_Sequence_Of_Statements
5629 -- Sloc points to first token of first statement
5630 -- Statements (List3)
5631 -- End_Label (Node4) (set to Empty if expander generated)
5632 -- Exception_Handlers (List5) (set to No_List if none present)
5633 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5634 -- First_Real_Statement (Node2-Sem)
5635 -- Zero_Cost_Handling (Flag5-Sem)
5636
5637 -- Note: the parent always contains a Declarations field which contains
5638 -- declarations associated with the handled sequence of statements. This
5639 -- is true even in the case of an accept statement (see description of
5640 -- the N_Accept_Statement node).
5641
5642 -- End_Label refers to the containing construct
5643
5644 -----------------------------
5645 -- 11.2 Exception Handler --
5646 -----------------------------
5647
5648 -- EXCEPTION_HANDLER ::=
5649 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5650 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5651 -- SEQUENCE_OF_STATEMENTS
5652
5653 -- Note: choice parameter specification is not allowed in Ada 83 mode
5654
5655 -- N_Exception_Handler
5656 -- Sloc points to WHEN
5657 -- Choice_Parameter (Node2) (set to Empty if not present)
5658 -- Exception_Choices (List4)
5659 -- Statements (List3)
5660 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5661 -- Zero_Cost_Handling (Flag5-Sem)
5662 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5663 -- Local_Raise_Not_OK (Flag7-Sem)
5664 -- Has_Local_Raise (Flag8-Sem)
5665
5666 ------------------------------------------
5667 -- 11.2 Choice parameter specification --
5668 ------------------------------------------
5669
5670 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5671
5672 ----------------------------
5673 -- 11.2 Exception Choice --
5674 ----------------------------
5675
5676 -- EXCEPTION_CHOICE ::= exception_NAME | others
5677
5678 -- Except in the case of OTHERS, no explicit node appears in the tree
5679 -- for exception choice. Instead the exception name appears directly.
5680 -- An OTHERS choice is represented by a N_Others_Choice node (see
5681 -- section 3.8.1.
5682
5683 -- Note: for the exception choice created for an at end handler, the
5684 -- exception choice is an N_Others_Choice node with All_Others set.
5685
5686 ---------------------------
5687 -- 11.3 Raise Statement --
5688 ---------------------------
5689
5690 -- RAISE_STATEMENT ::= raise [exception_NAME];
5691
5692 -- In Ada 2005, we have
5693
5694 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5695
5696 -- N_Raise_Statement
5697 -- Sloc points to RAISE
5698 -- Name (Node2) (set to Empty if no exception name present)
5699 -- Expression (Node3) (set to Empty if no expression present)
5700 -- From_At_End (Flag4-Sem)
5701
5702 -------------------------------
5703 -- 12.1 Generic Declaration --
5704 -------------------------------
5705
5706 -- GENERIC_DECLARATION ::=
5707 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5708
5709 ------------------------------------------
5710 -- 12.1 Generic Subprogram Declaration --
5711 ------------------------------------------
5712
5713 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5714 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5715
5716 -- Note: Generic_Formal_Declarations can include pragmas
5717
5718 -- N_Generic_Subprogram_Declaration
5719 -- Sloc points to GENERIC
5720 -- Specification (Node1) subprogram specification
5721 -- Corresponding_Body (Node5-Sem)
5722 -- Generic_Formal_Declarations (List2) from generic formal part
5723 -- Parent_Spec (Node4-Sem)
5724
5725 ---------------------------------------
5726 -- 12.1 Generic Package Declaration --
5727 ---------------------------------------
5728
5729 -- GENERIC_PACKAGE_DECLARATION ::=
5730 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5731
5732 -- Note: when we do generics right, the Activation_Chain_Entity entry
5733 -- for this node can be removed (since the expander won't see generic
5734 -- units any more)???.
5735
5736 -- Note: Generic_Formal_Declarations can include pragmas
5737
5738 -- N_Generic_Package_Declaration
5739 -- Sloc points to GENERIC
5740 -- Specification (Node1) package specification
5741 -- Corresponding_Body (Node5-Sem)
5742 -- Generic_Formal_Declarations (List2) from generic formal part
5743 -- Parent_Spec (Node4-Sem)
5744 -- Activation_Chain_Entity (Node3-Sem)
5745
5746 -------------------------------
5747 -- 12.1 Generic Formal Part --
5748 -------------------------------
5749
5750 -- GENERIC_FORMAL_PART ::=
5751 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5752
5753 ------------------------------------------------
5754 -- 12.1 Generic Formal Parameter Declaration --
5755 ------------------------------------------------
5756
5757 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5758 -- FORMAL_OBJECT_DECLARATION
5759 -- | FORMAL_TYPE_DECLARATION
5760 -- | FORMAL_SUBPROGRAM_DECLARATION
5761 -- | FORMAL_PACKAGE_DECLARATION
5762
5763 ---------------------------------
5764 -- 12.3 Generic Instantiation --
5765 ---------------------------------
5766
5767 -- GENERIC_INSTANTIATION ::=
5768 -- package DEFINING_PROGRAM_UNIT_NAME is
5769 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5770 -- | [[not] overriding]
5771 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5772 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5773 -- | [[not] overriding]
5774 -- function DEFINING_DESIGNATOR is
5775 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5776
5777 -- N_Package_Instantiation
5778 -- Sloc points to PACKAGE
5779 -- Defining_Unit_Name (Node1)
5780 -- Name (Node2)
5781 -- Generic_Associations (List3) (set to No_List if no
5782 -- generic actual part)
5783 -- Parent_Spec (Node4-Sem)
5784 -- Instance_Spec (Node5-Sem)
5785 -- ABE_Is_Certain (Flag18-Sem)
5786
5787 -- N_Procedure_Instantiation
5788 -- Sloc points to PROCEDURE
5789 -- Defining_Unit_Name (Node1)
5790 -- Name (Node2)
5791 -- Parent_Spec (Node4-Sem)
5792 -- Generic_Associations (List3) (set to No_List if no
5793 -- generic actual part)
5794 -- Instance_Spec (Node5-Sem)
5795 -- Must_Override (Flag14) set if overriding indicator present
5796 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5797 -- ABE_Is_Certain (Flag18-Sem)
5798
5799 -- N_Function_Instantiation
5800 -- Sloc points to FUNCTION
5801 -- Defining_Unit_Name (Node1)
5802 -- Name (Node2)
5803 -- Generic_Associations (List3) (set to No_List if no
5804 -- generic actual part)
5805 -- Parent_Spec (Node4-Sem)
5806 -- Instance_Spec (Node5-Sem)
5807 -- Must_Override (Flag14) set if overriding indicator present
5808 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5809 -- ABE_Is_Certain (Flag18-Sem)
5810
5811 -- Note: overriding indicator is an Ada 2005 feature
5812
5813 -------------------------------
5814 -- 12.3 Generic Actual Part --
5815 -------------------------------
5816
5817 -- GENERIC_ACTUAL_PART ::=
5818 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5819
5820 -------------------------------
5821 -- 12.3 Generic Association --
5822 -------------------------------
5823
5824 -- GENERIC_ASSOCIATION ::=
5825 -- [generic_formal_parameter_SELECTOR_NAME =>]
5826
5827 -- Note: unlike the procedure call case, a generic association node
5828 -- is generated for every association, even if no formal parameter
5829 -- selector name is present. In this case the parser will leave the
5830 -- Selector_Name field set to Empty, to be filled in later by the
5831 -- semantic pass.
5832
5833 -- In Ada 2005, a formal may be associated with a box, if the
5834 -- association is part of the list of actuals for a formal package.
5835 -- If the association is given by OTHERS => <>, the association is
5836 -- an N_Others_Choice.
5837
5838 -- N_Generic_Association
5839 -- Sloc points to first token of generic association
5840 -- Selector_Name (Node2) (set to Empty if no formal
5841 -- parameter selector name)
5842 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5843 -- Box_Present (Flag15) (for formal_package associations with a box)
5844
5845 ---------------------------------------------
5846 -- 12.3 Explicit Generic Actual Parameter --
5847 ---------------------------------------------
5848
5849 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5850 -- EXPRESSION | variable_NAME | subprogram_NAME
5851 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5852
5853 -------------------------------------
5854 -- 12.4 Formal Object Declaration --
5855 -------------------------------------
5856
5857 -- FORMAL_OBJECT_DECLARATION ::=
5858 -- DEFINING_IDENTIFIER_LIST :
5859 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5860 -- | DEFINING_IDENTIFIER_LIST :
5861 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5862
5863 -- Although the syntax allows multiple identifiers in the list, the
5864 -- semantics is as though successive declarations were given with
5865 -- identical type definition and expression components. To simplify
5866 -- semantic processing, the parser represents a multiple declaration
5867 -- case as a sequence of single declarations, using the More_Ids and
5868 -- Prev_Ids flags to preserve the original source form as described
5869 -- in the section on "Handling of Defining Identifier Lists".
5870
5871 -- N_Formal_Object_Declaration
5872 -- Sloc points to first identifier
5873 -- Defining_Identifier (Node1)
5874 -- In_Present (Flag15)
5875 -- Out_Present (Flag17)
5876 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5877 -- Subtype_Mark (Node4) (set to Empty if not present)
5878 -- Access_Definition (Node3) (set to Empty if not present)
5879 -- Default_Expression (Node5) (set to Empty if no default expression)
5880 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5881 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5882
5883 -----------------------------------
5884 -- 12.5 Formal Type Declaration --
5885 -----------------------------------
5886
5887 -- FORMAL_TYPE_DECLARATION ::=
5888 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5889 -- is FORMAL_TYPE_DEFINITION;
5890
5891 -- N_Formal_Type_Declaration
5892 -- Sloc points to TYPE
5893 -- Defining_Identifier (Node1)
5894 -- Formal_Type_Definition (Node3)
5895 -- Discriminant_Specifications (List4) (set to No_List if no
5896 -- discriminant part)
5897 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5898
5899 ----------------------------------
5900 -- 12.5 Formal type definition --
5901 ----------------------------------
5902
5903 -- FORMAL_TYPE_DEFINITION ::=
5904 -- FORMAL_PRIVATE_TYPE_DEFINITION
5905 -- | FORMAL_DERIVED_TYPE_DEFINITION
5906 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5907 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5908 -- | FORMAL_MODULAR_TYPE_DEFINITION
5909 -- | FORMAL_FLOATING_POINT_DEFINITION
5910 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5911 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5912 -- | FORMAL_ARRAY_TYPE_DEFINITION
5913 -- | FORMAL_ACCESS_TYPE_DEFINITION
5914 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5915
5916 ---------------------------------------------
5917 -- 12.5.1 Formal Private Type Definition --
5918 ---------------------------------------------
5919
5920 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5921 -- [[abstract] tagged] [limited] private
5922
5923 -- Note: TAGGED is not allowed in Ada 83 mode
5924
5925 -- N_Formal_Private_Type_Definition
5926 -- Sloc points to PRIVATE
5927 -- Abstract_Present (Flag4)
5928 -- Tagged_Present (Flag15)
5929 -- Limited_Present (Flag17)
5930
5931 --------------------------------------------
5932 -- 12.5.1 Formal Derived Type Definition --
5933 --------------------------------------------
5934
5935 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5936 -- [abstract] [limited | synchronized]
5937 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5938 -- Note: this construct is not allowed in Ada 83 mode
5939
5940 -- N_Formal_Derived_Type_Definition
5941 -- Sloc points to NEW
5942 -- Subtype_Mark (Node4)
5943 -- Private_Present (Flag15)
5944 -- Abstract_Present (Flag4)
5945 -- Limited_Present (Flag17)
5946 -- Synchronized_Present (Flag7)
5947 -- Interface_List (List2) (set to No_List if none)
5948
5949 ---------------------------------------------
5950 -- 12.5.2 Formal Discrete Type Definition --
5951 ---------------------------------------------
5952
5953 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5954
5955 -- N_Formal_Discrete_Type_Definition
5956 -- Sloc points to (
5957
5958 ---------------------------------------------------
5959 -- 12.5.2 Formal Signed Integer Type Definition --
5960 ---------------------------------------------------
5961
5962 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5963
5964 -- N_Formal_Signed_Integer_Type_Definition
5965 -- Sloc points to RANGE
5966
5967 --------------------------------------------
5968 -- 12.5.2 Formal Modular Type Definition --
5969 --------------------------------------------
5970
5971 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5972
5973 -- N_Formal_Modular_Type_Definition
5974 -- Sloc points to MOD
5975
5976 ----------------------------------------------
5977 -- 12.5.2 Formal Floating Point Definition --
5978 ----------------------------------------------
5979
5980 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5981
5982 -- N_Formal_Floating_Point_Definition
5983 -- Sloc points to DIGITS
5984
5985 ----------------------------------------------------
5986 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5987 ----------------------------------------------------
5988
5989 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5990
5991 -- N_Formal_Ordinary_Fixed_Point_Definition
5992 -- Sloc points to DELTA
5993
5994 ---------------------------------------------------
5995 -- 12.5.2 Formal Decimal Fixed Point Definition --
5996 ---------------------------------------------------
5997
5998 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5999
6000 -- Note: formal decimal fixed point definition not allowed in Ada 83
6001
6002 -- N_Formal_Decimal_Fixed_Point_Definition
6003 -- Sloc points to DELTA
6004
6005 ------------------------------------------
6006 -- 12.5.3 Formal Array Type Definition --
6007 ------------------------------------------
6008
6009 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6010
6011 -------------------------------------------
6012 -- 12.5.4 Formal Access Type Definition --
6013 -------------------------------------------
6014
6015 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6016
6017 ----------------------------------------------
6018 -- 12.5.5 Formal Interface Type Definition --
6019 ----------------------------------------------
6020
6021 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6022
6023 -----------------------------------------
6024 -- 12.6 Formal Subprogram Declaration --
6025 -----------------------------------------
6026
6027 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6028 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6029 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6030
6031 --------------------------------------------------
6032 -- 12.6 Formal Concrete Subprogram Declaration --
6033 --------------------------------------------------
6034
6035 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6036 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6037
6038 -- N_Formal_Concrete_Subprogram_Declaration
6039 -- Sloc points to WITH
6040 -- Specification (Node1)
6041 -- Default_Name (Node2) (set to Empty if no subprogram default)
6042 -- Box_Present (Flag15)
6043
6044 -- Note: if no subprogram default is present, then Name is set
6045 -- to Empty, and Box_Present is False.
6046
6047 --------------------------------------------------
6048 -- 12.6 Formal Abstract Subprogram Declaration --
6049 --------------------------------------------------
6050
6051 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6052 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6053
6054 -- N_Formal_Abstract_Subprogram_Declaration
6055 -- Sloc points to WITH
6056 -- Specification (Node1)
6057 -- Default_Name (Node2) (set to Empty if no subprogram default)
6058 -- Box_Present (Flag15)
6059
6060 -- Note: if no subprogram default is present, then Name is set
6061 -- to Empty, and Box_Present is False.
6062
6063 ------------------------------
6064 -- 12.6 Subprogram Default --
6065 ------------------------------
6066
6067 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6068
6069 -- There is no separate node in the tree for a subprogram default.
6070 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6071 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6072 -- default name or box indication, as needed.
6073
6074 ------------------------
6075 -- 12.6 Default Name --
6076 ------------------------
6077
6078 -- DEFAULT_NAME ::= NAME
6079
6080 --------------------------------------
6081 -- 12.7 Formal Package Declaration --
6082 --------------------------------------
6083
6084 -- FORMAL_PACKAGE_DECLARATION ::=
6085 -- with package DEFINING_IDENTIFIER
6086 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6087
6088 -- Note: formal package declarations not allowed in Ada 83 mode
6089
6090 -- N_Formal_Package_Declaration
6091 -- Sloc points to WITH
6092 -- Defining_Identifier (Node1)
6093 -- Name (Node2)
6094 -- Generic_Associations (List3) (set to No_List if (<>) case or
6095 -- empty generic actual part)
6096 -- Box_Present (Flag15)
6097 -- Instance_Spec (Node5-Sem)
6098 -- ABE_Is_Certain (Flag18-Sem)
6099
6100 --------------------------------------
6101 -- 12.7 Formal Package Actual Part --
6102 --------------------------------------
6103
6104 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6105 -- ([OTHERS] => <>)
6106 -- | [GENERIC_ACTUAL_PART]
6107 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6108
6109 -- FORMAL_PACKAGE_ASSOCIATION ::=
6110 -- GENERIC_ASSOCIATION
6111 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6112
6113 -- There is no explicit node in the tree for a formal package actual
6114 -- part. Instead the information appears in the parent node (i.e. the
6115 -- formal package declaration node itself).
6116
6117 -- There is no explicit node for a formal package association. All of
6118 -- them are represented either by a generic association, possibly with
6119 -- Box_Present, or by an N_Others_Choice.
6120
6121 ---------------------------------
6122 -- 13.1 Representation clause --
6123 ---------------------------------
6124
6125 -- REPRESENTATION_CLAUSE ::=
6126 -- ATTRIBUTE_DEFINITION_CLAUSE
6127 -- | ENUMERATION_REPRESENTATION_CLAUSE
6128 -- | RECORD_REPRESENTATION_CLAUSE
6129 -- | AT_CLAUSE
6130
6131 ----------------------
6132 -- 13.1 Local Name --
6133 ----------------------
6134
6135 -- LOCAL_NAME :=
6136 -- DIRECT_NAME
6137 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6138 -- | library_unit_NAME
6139
6140 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6141 -- as an attribute reference, which has essentially the same form.
6142
6143 ---------------------------------------
6144 -- 13.3 Attribute definition clause --
6145 ---------------------------------------
6146
6147 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6148 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6149 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6150
6151 -- In Ada 83, the expression must be a simple expression and the
6152 -- local name must be a direct name.
6153
6154 -- Note: the only attribute definition clause that is processed by
6155 -- gigi is an address clause. For all other cases, the information
6156 -- is extracted by the front end and either results in setting entity
6157 -- information, e.g. Esize for the Size clause, or in appropriate
6158 -- expansion actions (e.g. in the case of Storage_Size).
6159
6160 -- For an address clause, Gigi constructs the appropriate addressing
6161 -- code. It also ensures that no aliasing optimizations are made
6162 -- for the object for which the address clause appears.
6163
6164 -- Note: for an address clause used to achieve an overlay:
6165
6166 -- A : Integer;
6167 -- B : Integer;
6168 -- for B'Address use A'Address;
6169
6170 -- the above rule means that Gigi will ensure that no optimizations
6171 -- will be made for B that would violate the implementation advice
6172 -- of RM 13.3(19). However, this advice applies only to B and not
6173 -- to A, which seems unfortunate. The GNAT front end will mark the
6174 -- object A as volatile to also prevent unwanted optimization
6175 -- assumptions based on no aliasing being made for B.
6176
6177 -- N_Attribute_Definition_Clause
6178 -- Sloc points to FOR
6179 -- Name (Node2) the local name
6180 -- Chars (Name1) the identifier name from the attribute designator
6181 -- Expression (Node3) the expression or name
6182 -- Entity (Node4-Sem)
6183 -- Next_Rep_Item (Node5-Sem)
6184 -- From_At_Mod (Flag4-Sem)
6185 -- Check_Address_Alignment (Flag11-Sem)
6186 -- Address_Warning_Posted (Flag18-Sem)
6187
6188 ---------------------------------------------
6189 -- 13.4 Enumeration representation clause --
6190 ---------------------------------------------
6191
6192 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6193 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6194
6195 -- In Ada 83, the name must be a direct name
6196
6197 -- N_Enumeration_Representation_Clause
6198 -- Sloc points to FOR
6199 -- Identifier (Node1) direct name
6200 -- Array_Aggregate (Node3)
6201 -- Next_Rep_Item (Node5-Sem)
6202
6203 ---------------------------------
6204 -- 13.4 Enumeration aggregate --
6205 ---------------------------------
6206
6207 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6208
6209 ------------------------------------------
6210 -- 13.5.1 Record representation clause --
6211 ------------------------------------------
6212
6213 -- RECORD_REPRESENTATION_CLAUSE ::=
6214 -- for first_subtype_LOCAL_NAME use
6215 -- record [MOD_CLAUSE]
6216 -- {COMPONENT_CLAUSE}
6217 -- end record;
6218
6219 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6220 -- replaced by a corresponding Alignment attribute definition clause).
6221
6222 -- Note: Component_Clauses can include pragmas
6223
6224 -- N_Record_Representation_Clause
6225 -- Sloc points to FOR
6226 -- Identifier (Node1) direct name
6227 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6228 -- Component_Clauses (List3)
6229 -- Next_Rep_Item (Node5-Sem)
6230
6231 ------------------------------
6232 -- 13.5.1 Component clause --
6233 ------------------------------
6234
6235 -- COMPONENT_CLAUSE ::=
6236 -- component_LOCAL_NAME at POSITION
6237 -- range FIRST_BIT .. LAST_BIT;
6238
6239 -- N_Component_Clause
6240 -- Sloc points to AT
6241 -- Component_Name (Node1) points to Name or Attribute_Reference
6242 -- Position (Node2)
6243 -- First_Bit (Node3)
6244 -- Last_Bit (Node4)
6245
6246 ----------------------
6247 -- 13.5.1 Position --
6248 ----------------------
6249
6250 -- POSITION ::= static_EXPRESSION
6251
6252 -----------------------
6253 -- 13.5.1 First_Bit --
6254 -----------------------
6255
6256 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6257
6258 ----------------------
6259 -- 13.5.1 Last_Bit --
6260 ----------------------
6261
6262 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6263
6264 --------------------------
6265 -- 13.8 Code statement --
6266 --------------------------
6267
6268 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6269
6270 -- Note: in GNAT, the qualified expression has the form
6271
6272 -- Asm_Insn'(Asm (...));
6273
6274 -- See package System.Machine_Code in file s-maccod.ads for details on
6275 -- the allowed parameters to Asm. There are two ways this node can
6276 -- arise, as a code statement, in which case the expression is the
6277 -- qualified expression, or as a result of the expansion of an intrinsic
6278 -- call to the Asm or Asm_Input procedure.
6279
6280 -- N_Code_Statement
6281 -- Sloc points to first token of the expression
6282 -- Expression (Node3)
6283
6284 -- Note: package Exp_Code contains an abstract functional interface
6285 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6286
6287 ------------------------
6288 -- 13.12 Restriction --
6289 ------------------------
6290
6291 -- RESTRICTION ::=
6292 -- restriction_IDENTIFIER
6293 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6294
6295 -- There is no explicit node for restrictions. Instead the restriction
6296 -- appears in normal pragma syntax as a pragma argument association,
6297 -- which has the same syntactic form.
6298
6299 --------------------------
6300 -- B.2 Shift Operators --
6301 --------------------------
6302
6303 -- Calls to the intrinsic shift functions are converted to one of
6304 -- the following shift nodes, which have the form of normal binary
6305 -- operator names. Note that for a given shift operation, one node
6306 -- covers all possible types, as for normal operators.
6307
6308 -- Note: it is perfectly permissible for the expander to generate
6309 -- shift operation nodes directly, in which case they will be analyzed
6310 -- and parsed in the usual manner.
6311
6312 -- Sprint syntax: shift-function-name!(expr, count)
6313
6314 -- Note: the Left_Opnd field holds the first argument (the value to
6315 -- be shifted). The Right_Opnd field holds the second argument (the
6316 -- shift count). The Chars field is the name of the intrinsic function.
6317
6318 -- N_Op_Rotate_Left
6319 -- Sloc points to the function name
6320 -- plus fields for binary operator
6321 -- plus fields for expression
6322 -- Shift_Count_OK (Flag4-Sem)
6323
6324 -- N_Op_Rotate_Right
6325 -- Sloc points to the function name
6326 -- plus fields for binary operator
6327 -- plus fields for expression
6328 -- Shift_Count_OK (Flag4-Sem)
6329
6330 -- N_Op_Shift_Left
6331 -- Sloc points to the function name
6332 -- plus fields for binary operator
6333 -- plus fields for expression
6334 -- Shift_Count_OK (Flag4-Sem)
6335
6336 -- N_Op_Shift_Right_Arithmetic
6337 -- Sloc points to the function name
6338 -- plus fields for binary operator
6339 -- plus fields for expression
6340 -- Shift_Count_OK (Flag4-Sem)
6341
6342 -- N_Op_Shift_Right
6343 -- Sloc points to the function name
6344 -- plus fields for binary operator
6345 -- plus fields for expression
6346 -- Shift_Count_OK (Flag4-Sem)
6347
6348 --------------------------
6349 -- Obsolescent Features --
6350 --------------------------
6351
6352 -- The syntax descriptions and tree nodes for obsolescent features are
6353 -- grouped together, corresponding to their location in appendix I in
6354 -- the RM. However, parsing and semantic analysis for these constructs
6355 -- is located in an appropriate chapter (see individual notes).
6356
6357 ---------------------------
6358 -- J.3 Delta Constraint --
6359 ---------------------------
6360
6361 -- Note: the parse routine for this construct is located in section
6362 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6363 -- where delta constraint logically belongs.
6364
6365 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6366
6367 -- N_Delta_Constraint
6368 -- Sloc points to DELTA
6369 -- Delta_Expression (Node3)
6370 -- Range_Constraint (Node4) (set to Empty if not present)
6371
6372 --------------------
6373 -- J.7 At Clause --
6374 --------------------
6375
6376 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6377
6378 -- Note: the parse routine for this construct is located in Par-Ch13,
6379 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6380 -- belongs if it were not obsolescent.
6381
6382 -- Note: in Ada 83 the expression must be a simple expression
6383
6384 -- Gigi restriction: This node never appears, it is rewritten as an
6385 -- address attribute definition clause.
6386
6387 -- N_At_Clause
6388 -- Sloc points to FOR
6389 -- Identifier (Node1)
6390 -- Expression (Node3)
6391
6392 ---------------------
6393 -- J.8 Mod clause --
6394 ---------------------
6395
6396 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6397
6398 -- Note: the parse routine for this construct is located in Par-Ch13,
6399 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6400 -- belongs if it were not obsolescent.
6401
6402 -- Note: in Ada 83, the expression must be a simple expression
6403
6404 -- Gigi restriction: this node never appears. It is replaced
6405 -- by a corresponding Alignment attribute definition clause.
6406
6407 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6408 -- its name has "clause" in it. This is rather strange, but is quite
6409 -- definitely specified. The pragmas before are collected in the
6410 -- Pragmas_Before field of the mod clause node itself, and pragmas
6411 -- after are simply swallowed up in the list of component clauses.
6412
6413 -- N_Mod_Clause
6414 -- Sloc points to AT
6415 -- Expression (Node3)
6416 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6417
6418 --------------------
6419 -- Semantic Nodes --
6420 --------------------
6421
6422 -- These semantic nodes are used to hold additional semantic information.
6423 -- They are inserted into the tree as a result of semantic processing.
6424 -- Although there are no legitimate source syntax constructions that
6425 -- correspond directly to these nodes, we need a source syntax for the
6426 -- reconstructed tree printed by Sprint, and the node descriptions here
6427 -- show this syntax.
6428
6429 ----------------------------
6430 -- Conditional Expression --
6431 ----------------------------
6432
6433 -- This node is used to represent an expression corresponding to the
6434 -- C construct (condition ? then-expression : else_expression), where
6435 -- Expressions is a three element list, whose first expression is the
6436 -- condition, and whose second and third expressions are the then and
6437 -- else expressions respectively.
6438
6439 -- Note: the Then_Actions and Else_Actions fields are always set to
6440 -- No_List in the tree passed to Gigi. These fields are used only
6441 -- for temporary processing purposes in the expander.
6442
6443 -- Sprint syntax: (if expr then expr else expr)
6444
6445 -- N_Conditional_Expression
6446 -- Sloc points to related node
6447 -- Expressions (List1)
6448 -- Then_Actions (List2-Sem)
6449 -- Else_Actions (List3-Sem)
6450 -- plus fields for expression
6451
6452 -- Note: in the case where a debug source file is generated, the Sloc
6453 -- for this node points to the IF keyword in the Sprint file output.
6454
6455 -------------------
6456 -- Expanded_Name --
6457 -------------------
6458
6459 -- The N_Expanded_Name node is used to represent a selected component
6460 -- name that has been resolved to an expanded name. The semantic phase
6461 -- replaces N_Selected_Component nodes that represent names by the use
6462 -- of this node, leaving the N_Selected_Component node used only when
6463 -- the prefix is a record or protected type.
6464
6465 -- The fields of the N_Expanded_Name node are layed out identically
6466 -- to those of the N_Selected_Component node, allowing conversion of
6467 -- an expanded name node to a selected component node to be done
6468 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6469
6470 -- There is no special sprint syntax for an expanded name
6471
6472 -- N_Expanded_Name
6473 -- Sloc points to the period
6474 -- Chars (Name1) copy of Chars field of selector name
6475 -- Prefix (Node3)
6476 -- Selector_Name (Node2)
6477 -- Entity (Node4-Sem)
6478 -- Associated_Node (Node4-Sem)
6479 -- Redundant_Use (Flag13-Sem)
6480 -- Has_Private_View (Flag11-Sem) set in generic units.
6481 -- plus fields for expression
6482
6483 --------------------
6484 -- Free Statement --
6485 --------------------
6486
6487 -- The N_Free_Statement node is generated as a result of a call to an
6488 -- instantiation of Unchecked_Deallocation. The instantiation of this
6489 -- generic is handled specially and generates this node directly.
6490
6491 -- Sprint syntax: free expression
6492
6493 -- N_Free_Statement
6494 -- Sloc is copied from the unchecked deallocation call
6495 -- Expression (Node3) argument to unchecked deallocation call
6496 -- Storage_Pool (Node1-Sem)
6497 -- Procedure_To_Call (Node2-Sem)
6498 -- Actual_Designated_Subtype (Node4-Sem)
6499
6500 -- Note: in the case where a debug source file is generated, the Sloc
6501 -- for this node points to the FREE keyword in the Sprint file output.
6502
6503 -------------------
6504 -- Freeze Entity --
6505 -------------------
6506
6507 -- This node marks the point in a declarative part at which an entity
6508 -- declared therein becomes frozen. The expander places initialization
6509 -- procedures for types at those points. Gigi uses the freezing point
6510 -- to elaborate entities that may depend on previous private types.
6511
6512 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6513 -- a full description of the use of this node.
6514
6515 -- The Entity field points back to the entity for the type (whose
6516 -- Freeze_Node field points back to this freeze node).
6517
6518 -- The Actions field contains a list of declarations and statements
6519 -- generated by the expander which are associated with the freeze
6520 -- node, and are elaborated as though the freeze node were replaced
6521 -- by this sequence of actions.
6522
6523 -- Note: the Sloc field in the freeze node references a construct
6524 -- associated with the freezing point. This is used for posting
6525 -- messages in some error/warning situations, e.g. the case where
6526 -- a primitive operation of a tagged type is declared too late.
6527
6528 -- Sprint syntax: freeze entity-name [
6529 -- freeze actions
6530 -- ]
6531
6532 -- N_Freeze_Entity
6533 -- Sloc points near freeze point (see above special note)
6534 -- Entity (Node4-Sem)
6535 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6536 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6537 -- Actions (List1) (set to No_List if no freeze actions)
6538 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6539
6540 -- The Actions field holds actions associated with the freeze. These
6541 -- actions are elaborated at the point where the type is frozen.
6542
6543 -- Note: in the case where a debug source file is generated, the Sloc
6544 -- for this node points to the FREEZE keyword in the Sprint file output.
6545
6546 --------------------------------
6547 -- Implicit Label Declaration --
6548 --------------------------------
6549
6550 -- An implicit label declaration is created for every occurrence of a
6551 -- label on a statement or a label on a block or loop. It is chained
6552 -- in the declarations of the innermost enclosing block as specified
6553 -- in RM section 5.1 (3).
6554
6555 -- The Defining_Identifier is the actual identifier for the
6556 -- statement identifier. Note that the occurrence of the label
6557 -- is a reference, NOT the defining occurrence. The defining
6558 -- occurrence occurs at the head of the innermost enclosing
6559 -- block, and is represented by this node.
6560
6561 -- Note: from the grammar, this might better be called an implicit
6562 -- statement identifier declaration, but the term we choose seems
6563 -- friendlier, since at least informally statement identifiers are
6564 -- called labels in both cases (i.e. when used in labels, and when
6565 -- used as the identifiers of blocks and loops).
6566
6567 -- Note: although this is logically a semantic node, since it does
6568 -- not correspond directly to a source syntax construction, these
6569 -- nodes are actually created by the parser in a post pass done just
6570 -- after parsing is complete, before semantic analysis is started (see
6571 -- the Par.Labl subunit in file par-labl.adb).
6572
6573 -- Sprint syntax: labelname : label;
6574
6575 -- N_Implicit_Label_Declaration
6576 -- Sloc points to the << of the label
6577 -- Defining_Identifier (Node1)
6578 -- Label_Construct (Node2-Sem)
6579
6580 -- Note: in the case where a debug source file is generated, the Sloc
6581 -- for this node points to the label name in the generated declaration.
6582
6583 ---------------------
6584 -- Itype_Reference --
6585 ---------------------
6586
6587 -- This node is used to create a reference to an Itype. The only
6588 -- purpose is to make sure that the Itype is defined if this is the
6589 -- first reference.
6590
6591 -- A typical use of this node is when an Itype is to be referenced in
6592 -- two branches of an if statement. In this case it is important that
6593 -- the first use of the Itype not be inside the conditional, since
6594 -- then it might not be defined if the wrong branch of the if is
6595 -- taken in the case where the definition generates elaboration code.
6596
6597 -- The Itype field points to the referenced Itype
6598
6599 -- sprint syntax: reference itype-name
6600
6601 -- N_Itype_Reference
6602 -- Sloc points to the node generating the reference
6603 -- Itype (Node1-Sem)
6604
6605 -- Note: in the case where a debug source file is generated, the Sloc
6606 -- for this node points to the REFERENCE keyword in the file output.
6607
6608 ---------------------
6609 -- Raise_xxx_Error --
6610 ---------------------
6611
6612 -- One of these nodes is created during semantic analysis to replace
6613 -- a node for an expression that is determined to definitely raise
6614 -- the corresponding exception.
6615
6616 -- The N_Raise_xxx_Error node may also stand alone in place
6617 -- of a declaration or statement, in which case it simply causes
6618 -- the exception to be raised (i.e. it is equivalent to a raise
6619 -- statement that raises the corresponding exception). This use
6620 -- is distinguished by the fact that the Etype in this case is
6621 -- Standard_Void_Type, In the subexpression case, the Etype is the
6622 -- same as the type of the subexpression which it replaces.
6623
6624 -- If Condition is empty, then the raise is unconditional. If the
6625 -- Condition field is non-empty, it is a boolean expression which
6626 -- is first evaluated, and the exception is raised only if the
6627 -- value of the expression is True. In the unconditional case, the
6628 -- creation of this node is usually accompanied by a warning message
6629 -- error. The creation of this node will usually be accompanied by a
6630 -- message (unless it appears within the right operand of a short
6631 -- circuit form whose left argument is static and decisively
6632 -- eliminates elaboration of the raise operation. The condition field
6633 -- can ONLY be present when the node is used as a statement form, it
6634 -- may NOT be present in the case where the node appears within an
6635 -- expression.
6636
6637 -- The exception is generated with a message that contains the
6638 -- file name and line number, and then appended text. The Reason
6639 -- code shows the text to be added. The Reason code is an element
6640 -- of the type Types.RT_Exception_Code, and indicates both the
6641 -- message to be added, and the exception to be raised (which must
6642 -- match the node type). The value is stored by storing a Uint which
6643 -- is the Pos value of the enumeration element in this type.
6644
6645 -- Gigi restriction: This expander ensures that the type of the
6646 -- Condition field is always Standard.Boolean, even if the type
6647 -- in the source is some non-standard boolean type.
6648
6649 -- Sprint syntax: [xxx_error "msg"]
6650 -- or: [xxx_error when condition "msg"]
6651
6652 -- N_Raise_Constraint_Error
6653 -- Sloc references related construct
6654 -- Condition (Node1) (set to Empty if no condition)
6655 -- Reason (Uint3)
6656 -- plus fields for expression
6657
6658 -- N_Raise_Program_Error
6659 -- Sloc references related construct
6660 -- Condition (Node1) (set to Empty if no condition)
6661 -- Reason (Uint3)
6662 -- plus fields for expression
6663
6664 -- N_Raise_Storage_Error
6665 -- Sloc references related construct
6666 -- Condition (Node1) (set to Empty if no condition)
6667 -- Reason (Uint3)
6668 -- plus fields for expression
6669
6670 -- Note: Sloc is copied from the expression generating the exception.
6671 -- In the case where a debug source file is generated, the Sloc for
6672 -- this node points to the left bracket in the Sprint file output.
6673
6674 -- Note: the back end may be required to translate these nodes into
6675 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6676
6677 ---------------------------------------------
6678 -- Optimization of Exception Raise to Goto --
6679 ---------------------------------------------
6680
6681 -- In some cases, the front end will determine that any exception raised
6682 -- by the back end for a certain exception should be transformed into a
6683 -- goto statement.
6684
6685 -- There are three kinds of exceptions raised by the back end (note that
6686 -- for this purpose we consider gigi to be part of the back end in the
6687 -- gcc case):
6688
6689 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6690 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6691 -- 3. Other cases not specifically marked by the front end
6692
6693 -- Normally all such exceptions are translated into calls to the proper
6694 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6695 -- and the exception message.
6696
6697 -- The front end may determine that for a particular sequence of code,
6698 -- exceptions in any of these three categories for a particular builtin
6699 -- exception should result in a goto, rather than a call to Rcheck_xx.
6700 -- The exact sequence to be generated is:
6701
6702 -- Local_Raise (exception'Identity);
6703 -- goto Label
6704
6705 -- The front end marks such a sequence of code by bracketing it with
6706 -- push and pop nodes:
6707
6708 -- N_Push_xxx_Label (referencing the label)
6709 -- ...
6710 -- (code where transformation is expected for exception xxx)
6711 -- ...
6712 -- N_Pop_xxx_Label
6713
6714 -- The use of push/pop reflects the fact that such regions can properly
6715 -- nest, and one special case is a subregion in which no transformation
6716 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6717 -- Exception_Label field is Empty.
6718
6719 -- N_Push_Constraint_Error_Label
6720 -- Sloc references first statement in region covered
6721 -- Exception_Label (Node5-Sem)
6722
6723 -- N_Push_Program_Error_Label
6724 -- Sloc references first statement in region covered
6725 -- Exception_Label (Node5-Sem)
6726
6727 -- N_Push_Storage_Error_Label
6728 -- Sloc references first statement in region covered
6729 -- Exception_Label (Node5-Sem)
6730
6731 -- N_Pop_Constraint_Error_Label
6732 -- Sloc references last statement in region covered
6733
6734 -- N_Pop_Program_Error_Label
6735 -- Sloc references last statement in region covered
6736
6737 -- N_Pop_Storage_Error_Label
6738 -- Sloc references last statement in region covered
6739
6740 ---------------
6741 -- Reference --
6742 ---------------
6743
6744 -- For a number of purposes, we need to construct references to objects.
6745 -- These references are subsequently treated as normal access values.
6746 -- An example is the construction of the parameter block passed to a
6747 -- task entry. The N_Reference node is provided for this purpose. It is
6748 -- similar in effect to the use of the Unrestricted_Access attribute,
6749 -- and like Unrestricted_Access can be applied to objects which would
6750 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6751 -- objects which are not aliased, and slices). In addition it can be
6752 -- applied to composite type values as well as objects, including string
6753 -- values and aggregates.
6754
6755 -- Note: we use the Prefix field for this expression so that the
6756 -- resulting node can be treated using common code with the attribute
6757 -- nodes for the 'Access and related attributes. Logically it would make
6758 -- more sense to call it an Expression field, but then we would have to
6759 -- special case the treatment of the N_Reference node.
6760
6761 -- Sprint syntax: prefix'reference
6762
6763 -- N_Reference
6764 -- Sloc is copied from the expression
6765 -- Prefix (Node3)
6766 -- plus fields for expression
6767
6768 -- Note: in the case where a debug source file is generated, the Sloc
6769 -- for this node points to the quote in the Sprint file output.
6770
6771 ---------------------
6772 -- Subprogram_Info --
6773 ---------------------
6774
6775 -- This node generates the appropriate Subprogram_Info value for a
6776 -- given procedure. See Ada.Exceptions for further details
6777
6778 -- Sprint syntax: subprog'subprogram_info
6779
6780 -- N_Subprogram_Info
6781 -- Sloc points to the entity for the procedure
6782 -- Identifier (Node1) identifier referencing the procedure
6783 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6784
6785 -- Note: in the case where a debug source file is generated, the Sloc
6786 -- for this node points to the quote in the Sprint file output.
6787
6788 --------------------------
6789 -- Unchecked Expression --
6790 --------------------------
6791
6792 -- An unchecked expression is one that must be analyzed and resolved
6793 -- with all checks off, regardless of the current setting of scope
6794 -- suppress flags.
6795
6796 -- Sprint syntax: `(expression)
6797
6798 -- Note: this node is always removed from the tree (and replaced by
6799 -- its constituent expression) on completion of analysis, so it only
6800 -- appears in intermediate trees, and will never be seen by Gigi.
6801
6802 -- N_Unchecked_Expression
6803 -- Sloc is a copy of the Sloc of the expression
6804 -- Expression (Node3)
6805 -- plus fields for expression
6806
6807 -- Note: in the case where a debug source file is generated, the Sloc
6808 -- for this node points to the back quote in the Sprint file output.
6809
6810 -------------------------------
6811 -- Unchecked Type Conversion --
6812 -------------------------------
6813
6814 -- An unchecked type conversion node represents the semantic action
6815 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6816 -- It is generated as a result of actual use of Unchecked_Conversion
6817 -- and also the expander generates unchecked type conversion nodes
6818 -- directly for expansion of complex semantic actions.
6819
6820 -- Note: an unchecked type conversion is a variable as far as the
6821 -- semantics are concerned, which is convenient for the expander.
6822 -- This does not change what Ada source programs are legal, since
6823 -- clearly a function call to an instantiation of Unchecked_Conversion
6824 -- is not a variable in any case.
6825
6826 -- Sprint syntax: subtype-mark!(expression)
6827
6828 -- N_Unchecked_Type_Conversion
6829 -- Sloc points to related node in source
6830 -- Subtype_Mark (Node4)
6831 -- Expression (Node3)
6832 -- Kill_Range_Check (Flag11-Sem)
6833 -- No_Truncation (Flag17-Sem)
6834 -- plus fields for expression
6835
6836 -- Note: in the case where a debug source file is generated, the Sloc
6837 -- for this node points to the exclamation in the Sprint file output.
6838
6839 -----------------------------------
6840 -- Validate_Unchecked_Conversion --
6841 -----------------------------------
6842
6843 -- The front end does most of the validation of unchecked conversion,
6844 -- including checking sizes (this is done after the back end is called
6845 -- to take advantage of back-annotation of calculated sizes).
6846
6847 -- The front end also deals with specific cases that are not allowed
6848 -- e.g. involving unconstrained array types.
6849
6850 -- For the case of the standard gigi backend, this means that all
6851 -- checks are done in the front-end.
6852
6853 -- However, in the case of specialized back-ends, notably the JVM
6854 -- backend for JGNAT, additional requirements and restrictions apply
6855 -- to unchecked conversion, and these are most conveniently performed
6856 -- in the specialized back-end.
6857
6858 -- To accommodate this requirement, for such back ends, the following
6859 -- special node is generated recording an unchecked conversion that
6860 -- needs to be validated. The back end should post an appropriate
6861 -- error message if the unchecked conversion is invalid or warrants
6862 -- a special warning message.
6863
6864 -- Source_Type and Target_Type point to the entities for the two
6865 -- types involved in the unchecked conversion instantiation that
6866 -- is to be validated.
6867
6868 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6869
6870 -- N_Validate_Unchecked_Conversion
6871 -- Sloc points to instantiation (location for warning message)
6872 -- Source_Type (Node1-Sem)
6873 -- Target_Type (Node2-Sem)
6874
6875 -- Note: in the case where a debug source file is generated, the Sloc
6876 -- for this node points to the VALIDATE keyword in the file output.
6877
6878 -----------
6879 -- Empty --
6880 -----------
6881
6882 -- Used as the contents of the Nkind field of the dummy Empty node
6883 -- and in some other situations to indicate an uninitialized value.
6884
6885 -- N_Empty
6886 -- Chars (Name1) is set to No_Name
6887
6888 -----------
6889 -- Error --
6890 -----------
6891
6892 -- Used as the contents of the Nkind field of the dummy Error node.
6893 -- Has an Etype field, which gets set to Any_Type later on, to help
6894 -- error recovery (Error_Posted is also set in the Error node).
6895
6896 -- N_Error
6897 -- Chars (Name1) is set to Error_Name
6898 -- Etype (Node5-Sem)
6899
6900 --------------------------
6901 -- Node Type Definition --
6902 --------------------------
6903
6904 -- The following is the definition of the Node_Kind type. As previously
6905 -- discussed, this is separated off to allow rearrangement of the order
6906 -- to facilitate definition of subtype ranges. The comments show the
6907 -- subtype classes which apply to each set of node kinds. The first
6908 -- entry in the comment characterizes the following list of nodes.
6909
6910 type Node_Kind is (
6911 N_Unused_At_Start,
6912
6913 -- N_Representation_Clause
6914
6915 N_At_Clause,
6916 N_Component_Clause,
6917 N_Enumeration_Representation_Clause,
6918 N_Mod_Clause,
6919 N_Record_Representation_Clause,
6920
6921 -- N_Representation_Clause, N_Has_Chars
6922
6923 N_Attribute_Definition_Clause,
6924
6925 -- N_Has_Chars
6926
6927 N_Empty,
6928 N_Pragma_Argument_Association,
6929
6930 -- N_Has_Etype
6931
6932 N_Error,
6933
6934 -- N_Entity, N_Has_Etype, N_Has_Chars
6935
6936 N_Defining_Character_Literal,
6937 N_Defining_Identifier,
6938 N_Defining_Operator_Symbol,
6939
6940 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6941
6942 N_Expanded_Name,
6943
6944 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6945 -- N_Has_Chars, N_Has_Entity
6946
6947 N_Identifier,
6948 N_Operator_Symbol,
6949
6950 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6951 -- N_Has_Chars, N_Has_Entity
6952
6953 N_Character_Literal,
6954
6955 -- N_Binary_Op, N_Op, N_Subexpr,
6956 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6957
6958 N_Op_Add,
6959 N_Op_Concat,
6960 N_Op_Expon,
6961 N_Op_Subtract,
6962
6963 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6964 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6965
6966 N_Op_Divide,
6967 N_Op_Mod,
6968 N_Op_Multiply,
6969 N_Op_Rem,
6970
6971 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6972 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6973
6974 N_Op_And,
6975
6976 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6977 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6978
6979 N_Op_Eq,
6980 N_Op_Ge,
6981 N_Op_Gt,
6982 N_Op_Le,
6983 N_Op_Lt,
6984 N_Op_Ne,
6985
6986 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6987 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6988
6989 N_Op_Or,
6990 N_Op_Xor,
6991
6992 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6993 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6994
6995 N_Op_Rotate_Left,
6996 N_Op_Rotate_Right,
6997 N_Op_Shift_Left,
6998 N_Op_Shift_Right,
6999 N_Op_Shift_Right_Arithmetic,
7000
7001 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7002 -- N_Has_Chars, N_Has_Entity
7003
7004 N_Op_Abs,
7005 N_Op_Minus,
7006 N_Op_Not,
7007 N_Op_Plus,
7008
7009 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7010
7011 N_Attribute_Reference,
7012
7013 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7014
7015 N_In,
7016 N_Not_In,
7017
7018 -- N_Subexpr, N_Has_Etype
7019
7020 N_And_Then,
7021 N_Conditional_Expression,
7022 N_Explicit_Dereference,
7023 N_Function_Call,
7024 N_Indexed_Component,
7025 N_Integer_Literal,
7026 N_Null,
7027 N_Or_Else,
7028 N_Procedure_Call_Statement,
7029 N_Qualified_Expression,
7030
7031 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7032
7033 N_Raise_Constraint_Error,
7034 N_Raise_Program_Error,
7035 N_Raise_Storage_Error,
7036
7037 -- N_Subexpr, N_Has_Etype
7038
7039 N_Aggregate,
7040 N_Allocator,
7041 N_Extension_Aggregate,
7042 N_Range,
7043 N_Real_Literal,
7044 N_Reference,
7045 N_Selected_Component,
7046 N_Slice,
7047 N_String_Literal,
7048 N_Subprogram_Info,
7049 N_Type_Conversion,
7050 N_Unchecked_Expression,
7051 N_Unchecked_Type_Conversion,
7052
7053 -- N_Has_Etype
7054
7055 N_Subtype_Indication,
7056
7057 -- N_Declaration
7058
7059 N_Component_Declaration,
7060 N_Entry_Declaration,
7061 N_Formal_Object_Declaration,
7062 N_Formal_Type_Declaration,
7063 N_Full_Type_Declaration,
7064 N_Incomplete_Type_Declaration,
7065 N_Loop_Parameter_Specification,
7066 N_Object_Declaration,
7067 N_Protected_Type_Declaration,
7068 N_Private_Extension_Declaration,
7069 N_Private_Type_Declaration,
7070 N_Subtype_Declaration,
7071
7072 -- N_Subprogram_Specification, N_Declaration
7073
7074 N_Function_Specification,
7075 N_Procedure_Specification,
7076
7077 -- N_Access_To_Subprogram_Definition
7078
7079 N_Access_Function_Definition,
7080 N_Access_Procedure_Definition,
7081
7082 -- N_Later_Decl_Item
7083
7084 N_Task_Type_Declaration,
7085
7086 -- N_Body_Stub, N_Later_Decl_Item
7087
7088 N_Package_Body_Stub,
7089 N_Protected_Body_Stub,
7090 N_Subprogram_Body_Stub,
7091 N_Task_Body_Stub,
7092
7093 -- N_Generic_Instantiation, N_Later_Decl_Item
7094 -- N_Subprogram_Instantiation
7095
7096 N_Function_Instantiation,
7097 N_Procedure_Instantiation,
7098
7099 -- N_Generic_Instantiation, N_Later_Decl_Item
7100
7101 N_Package_Instantiation,
7102
7103 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7104
7105 N_Package_Body,
7106 N_Subprogram_Body,
7107
7108 -- N_Later_Decl_Item, N_Proper_Body
7109
7110 N_Protected_Body,
7111 N_Task_Body,
7112
7113 -- N_Later_Decl_Item
7114
7115 N_Implicit_Label_Declaration,
7116 N_Package_Declaration,
7117 N_Single_Task_Declaration,
7118 N_Subprogram_Declaration,
7119 N_Use_Package_Clause,
7120
7121 -- N_Generic_Declaration, N_Later_Decl_Item
7122
7123 N_Generic_Package_Declaration,
7124 N_Generic_Subprogram_Declaration,
7125
7126 -- N_Array_Type_Definition
7127
7128 N_Constrained_Array_Definition,
7129 N_Unconstrained_Array_Definition,
7130
7131 -- N_Renaming_Declaration
7132
7133 N_Exception_Renaming_Declaration,
7134 N_Object_Renaming_Declaration,
7135 N_Package_Renaming_Declaration,
7136 N_Subprogram_Renaming_Declaration,
7137
7138 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7139
7140 N_Generic_Function_Renaming_Declaration,
7141 N_Generic_Package_Renaming_Declaration,
7142 N_Generic_Procedure_Renaming_Declaration,
7143
7144 -- N_Statement_Other_Than_Procedure_Call
7145
7146 N_Abort_Statement,
7147 N_Accept_Statement,
7148 N_Assignment_Statement,
7149 N_Asynchronous_Select,
7150 N_Block_Statement,
7151 N_Case_Statement,
7152 N_Code_Statement,
7153 N_Conditional_Entry_Call,
7154
7155 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7156
7157 N_Delay_Relative_Statement,
7158 N_Delay_Until_Statement,
7159
7160 -- N_Statement_Other_Than_Procedure_Call
7161
7162 N_Entry_Call_Statement,
7163 N_Free_Statement,
7164 N_Goto_Statement,
7165 N_Loop_Statement,
7166 N_Null_Statement,
7167 N_Raise_Statement,
7168 N_Requeue_Statement,
7169 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7170 N_Extended_Return_Statement,
7171 N_Selective_Accept,
7172 N_Timed_Entry_Call,
7173
7174 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7175
7176 N_Exit_Statement,
7177 N_If_Statement,
7178
7179 -- N_Has_Condition
7180
7181 N_Accept_Alternative,
7182 N_Delay_Alternative,
7183 N_Elsif_Part,
7184 N_Entry_Body_Formal_Part,
7185 N_Iteration_Scheme,
7186 N_Terminate_Alternative,
7187
7188 -- N_Formal_Subprogram_Declaration
7189
7190 N_Formal_Abstract_Subprogram_Declaration,
7191 N_Formal_Concrete_Subprogram_Declaration,
7192
7193 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7194
7195 N_Push_Constraint_Error_Label,
7196 N_Push_Program_Error_Label,
7197 N_Push_Storage_Error_Label,
7198
7199 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7200
7201 N_Pop_Constraint_Error_Label,
7202 N_Pop_Program_Error_Label,
7203 N_Pop_Storage_Error_Label,
7204
7205 -- Other nodes (not part of any subtype class)
7206
7207 N_Abortable_Part,
7208 N_Abstract_Subprogram_Declaration,
7209 N_Access_Definition,
7210 N_Access_To_Object_Definition,
7211 N_Case_Statement_Alternative,
7212 N_Compilation_Unit,
7213 N_Compilation_Unit_Aux,
7214 N_Component_Association,
7215 N_Component_Definition,
7216 N_Component_List,
7217 N_Derived_Type_Definition,
7218 N_Decimal_Fixed_Point_Definition,
7219 N_Defining_Program_Unit_Name,
7220 N_Delta_Constraint,
7221 N_Designator,
7222 N_Digits_Constraint,
7223 N_Discriminant_Association,
7224 N_Discriminant_Specification,
7225 N_Enumeration_Type_Definition,
7226 N_Entry_Body,
7227 N_Entry_Call_Alternative,
7228 N_Entry_Index_Specification,
7229 N_Exception_Declaration,
7230 N_Exception_Handler,
7231 N_Floating_Point_Definition,
7232 N_Formal_Decimal_Fixed_Point_Definition,
7233 N_Formal_Derived_Type_Definition,
7234 N_Formal_Discrete_Type_Definition,
7235 N_Formal_Floating_Point_Definition,
7236 N_Formal_Modular_Type_Definition,
7237 N_Formal_Ordinary_Fixed_Point_Definition,
7238 N_Formal_Package_Declaration,
7239 N_Formal_Private_Type_Definition,
7240 N_Formal_Signed_Integer_Type_Definition,
7241 N_Freeze_Entity,
7242 N_Generic_Association,
7243 N_Handled_Sequence_Of_Statements,
7244 N_Index_Or_Discriminant_Constraint,
7245 N_Itype_Reference,
7246 N_Label,
7247 N_Modular_Type_Definition,
7248 N_Number_Declaration,
7249 N_Ordinary_Fixed_Point_Definition,
7250 N_Others_Choice,
7251 N_Package_Specification,
7252 N_Parameter_Association,
7253 N_Parameter_Specification,
7254 N_Pragma,
7255 N_Protected_Definition,
7256 N_Range_Constraint,
7257 N_Real_Range_Specification,
7258 N_Record_Definition,
7259 N_Signed_Integer_Type_Definition,
7260 N_Single_Protected_Declaration,
7261 N_Subunit,
7262 N_Task_Definition,
7263 N_Triggering_Alternative,
7264 N_Use_Type_Clause,
7265 N_Validate_Unchecked_Conversion,
7266 N_Variant,
7267 N_Variant_Part,
7268 N_With_Clause,
7269 N_Unused_At_End);
7270
7271 for Node_Kind'Size use 8;
7272 -- The data structures in Atree assume this!
7273
7274 ----------------------------
7275 -- Node Class Definitions --
7276 ----------------------------
7277
7278 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7279 N_Access_Function_Definition ..
7280 N_Access_Procedure_Definition;
7281
7282 subtype N_Array_Type_Definition is Node_Kind range
7283 N_Constrained_Array_Definition ..
7284 N_Unconstrained_Array_Definition;
7285
7286 subtype N_Binary_Op is Node_Kind range
7287 N_Op_Add ..
7288 N_Op_Shift_Right_Arithmetic;
7289
7290 subtype N_Body_Stub is Node_Kind range
7291 N_Package_Body_Stub ..
7292 N_Task_Body_Stub;
7293
7294 subtype N_Declaration is Node_Kind range
7295 N_Component_Declaration ..
7296 N_Procedure_Specification;
7297 -- Note: this includes all constructs normally thought of as declarations
7298 -- except those which are separately grouped as later declarations.
7299
7300 subtype N_Delay_Statement is Node_Kind range
7301 N_Delay_Relative_Statement ..
7302 N_Delay_Until_Statement;
7303
7304 subtype N_Direct_Name is Node_Kind range
7305 N_Identifier ..
7306 N_Character_Literal;
7307
7308 subtype N_Entity is Node_Kind range
7309 N_Defining_Character_Literal ..
7310 N_Defining_Operator_Symbol;
7311
7312 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7313 N_Formal_Abstract_Subprogram_Declaration ..
7314 N_Formal_Concrete_Subprogram_Declaration;
7315
7316 subtype N_Generic_Declaration is Node_Kind range
7317 N_Generic_Package_Declaration ..
7318 N_Generic_Subprogram_Declaration;
7319
7320 subtype N_Generic_Instantiation is Node_Kind range
7321 N_Function_Instantiation ..
7322 N_Package_Instantiation;
7323
7324 subtype N_Generic_Renaming_Declaration is Node_Kind range
7325 N_Generic_Function_Renaming_Declaration ..
7326 N_Generic_Procedure_Renaming_Declaration;
7327
7328 subtype N_Has_Chars is Node_Kind range
7329 N_Attribute_Definition_Clause ..
7330 N_Op_Plus;
7331
7332 subtype N_Has_Entity is Node_Kind range
7333 N_Expanded_Name ..
7334 N_Attribute_Reference;
7335 -- Nodes that have Entity fields
7336 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7337
7338 subtype N_Has_Etype is Node_Kind range
7339 N_Error ..
7340 N_Subtype_Indication;
7341
7342 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7343 N_Op_Divide ..
7344 N_Op_Rem;
7345
7346 subtype N_Multiplying_Operator is Node_Kind range
7347 N_Op_Divide ..
7348 N_Op_Rem;
7349
7350 subtype N_Later_Decl_Item is Node_Kind range
7351 N_Task_Type_Declaration ..
7352 N_Generic_Subprogram_Declaration;
7353 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7354 -- includes only those items which can appear as later declarative
7355 -- items. This also includes N_Implicit_Label_Declaration which is
7356 -- not specifically in the grammar but may appear as a valid later
7357 -- declarative items. It does NOT include N_Pragma which can also
7358 -- appear among later declarative items. It does however include
7359 -- N_Protected_Body, which is a bit peculiar, but harmless since
7360 -- this cannot appear in Ada 83 mode anyway.
7361
7362 subtype N_Membership_Test is Node_Kind range
7363 N_In ..
7364 N_Not_In;
7365
7366 subtype N_Op is Node_Kind range
7367 N_Op_Add ..
7368 N_Op_Plus;
7369
7370 subtype N_Op_Boolean is Node_Kind range
7371 N_Op_And ..
7372 N_Op_Xor;
7373 -- Binary operators which take operands of a boolean type, and yield
7374 -- a result of a boolean type.
7375
7376 subtype N_Op_Compare is Node_Kind range
7377 N_Op_Eq ..
7378 N_Op_Ne;
7379
7380 subtype N_Op_Shift is Node_Kind range
7381 N_Op_Rotate_Left ..
7382 N_Op_Shift_Right_Arithmetic;
7383
7384 subtype N_Proper_Body is Node_Kind range
7385 N_Package_Body ..
7386 N_Task_Body;
7387
7388 subtype N_Push_xxx_Label is Node_Kind range
7389 N_Push_Constraint_Error_Label ..
7390 N_Push_Storage_Error_Label;
7391
7392 subtype N_Pop_xxx_Label is Node_Kind range
7393 N_Pop_Constraint_Error_Label ..
7394 N_Pop_Storage_Error_Label;
7395
7396 subtype N_Push_Pop_xxx_Label is Node_Kind range
7397 N_Push_Constraint_Error_Label ..
7398 N_Pop_Storage_Error_Label;
7399
7400 subtype N_Raise_xxx_Error is Node_Kind range
7401 N_Raise_Constraint_Error ..
7402 N_Raise_Storage_Error;
7403
7404 subtype N_Renaming_Declaration is Node_Kind range
7405 N_Exception_Renaming_Declaration ..
7406 N_Generic_Procedure_Renaming_Declaration;
7407
7408 subtype N_Representation_Clause is Node_Kind range
7409 N_At_Clause ..
7410 N_Attribute_Definition_Clause;
7411
7412 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7413 N_Abort_Statement ..
7414 N_If_Statement;
7415 -- Note that this includes all statement types except for the cases of the
7416 -- N_Procedure_Call_Statement which is considered to be a subexpression
7417 -- (since overloading is possible, so it needs to go through the normal
7418 -- overloading resolution for expressions).
7419
7420 subtype N_Subprogram_Instantiation is Node_Kind range
7421 N_Function_Instantiation ..
7422 N_Procedure_Instantiation;
7423
7424 subtype N_Has_Condition is Node_Kind range
7425 N_Exit_Statement ..
7426 N_Terminate_Alternative;
7427 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7428
7429 subtype N_Subexpr is Node_Kind range
7430 N_Expanded_Name ..
7431 N_Unchecked_Type_Conversion;
7432 -- Nodes with expression fields
7433
7434 subtype N_Subprogram_Specification is Node_Kind range
7435 N_Function_Specification ..
7436 N_Procedure_Specification;
7437
7438 subtype N_Unary_Op is Node_Kind range
7439 N_Op_Abs ..
7440 N_Op_Plus;
7441
7442 subtype N_Unit_Body is Node_Kind range
7443 N_Package_Body ..
7444 N_Subprogram_Body;
7445
7446 ---------------------------
7447 -- Node Access Functions --
7448 ---------------------------
7449
7450 -- The following functions return the contents of the indicated field of
7451 -- the node referenced by the argument, which is a Node_Id. They provide
7452 -- logical access to fields in the node which could be accessed using the
7453 -- Atree.Unchecked_Access package, but the idea is always to use these
7454 -- higher level routines which preserve strong typing. In debug mode,
7455 -- these routines check that they are being applied to an appropriate
7456 -- node, as well as checking that the node is in range.
7457
7458 function ABE_Is_Certain
7459 (N : Node_Id) return Boolean; -- Flag18
7460
7461 function Abort_Present
7462 (N : Node_Id) return Boolean; -- Flag15
7463
7464 function Abortable_Part
7465 (N : Node_Id) return Node_Id; -- Node2
7466
7467 function Abstract_Present
7468 (N : Node_Id) return Boolean; -- Flag4
7469
7470 function Accept_Handler_Records
7471 (N : Node_Id) return List_Id; -- List5
7472
7473 function Accept_Statement
7474 (N : Node_Id) return Node_Id; -- Node2
7475
7476 function Access_Definition
7477 (N : Node_Id) return Node_Id; -- Node3
7478
7479 function Access_To_Subprogram_Definition
7480 (N : Node_Id) return Node_Id; -- Node3
7481
7482 function Access_Types_To_Process
7483 (N : Node_Id) return Elist_Id; -- Elist2
7484
7485 function Actions
7486 (N : Node_Id) return List_Id; -- List1
7487
7488 function Activation_Chain_Entity
7489 (N : Node_Id) return Node_Id; -- Node3
7490
7491 function Acts_As_Spec
7492 (N : Node_Id) return Boolean; -- Flag4
7493
7494 function Actual_Designated_Subtype
7495 (N : Node_Id) return Node_Id; -- Node4
7496
7497 function Address_Warning_Posted
7498 (N : Node_Id) return Boolean; -- Flag18
7499
7500 function Aggregate_Bounds
7501 (N : Node_Id) return Node_Id; -- Node3
7502
7503 function Aliased_Present
7504 (N : Node_Id) return Boolean; -- Flag4
7505
7506 function All_Others
7507 (N : Node_Id) return Boolean; -- Flag11
7508
7509 function All_Present
7510 (N : Node_Id) return Boolean; -- Flag15
7511
7512 function Alternatives
7513 (N : Node_Id) return List_Id; -- List4
7514
7515 function Ancestor_Part
7516 (N : Node_Id) return Node_Id; -- Node3
7517
7518 function Array_Aggregate
7519 (N : Node_Id) return Node_Id; -- Node3
7520
7521 function Assignment_OK
7522 (N : Node_Id) return Boolean; -- Flag15
7523
7524 function Associated_Node
7525 (N : Node_Id) return Node_Id; -- Node4
7526
7527 function At_End_Proc
7528 (N : Node_Id) return Node_Id; -- Node1
7529
7530 function Attribute_Name
7531 (N : Node_Id) return Name_Id; -- Name2
7532
7533 function Aux_Decls_Node
7534 (N : Node_Id) return Node_Id; -- Node5
7535
7536 function Backwards_OK
7537 (N : Node_Id) return Boolean; -- Flag6
7538
7539 function Bad_Is_Detected
7540 (N : Node_Id) return Boolean; -- Flag15
7541
7542 function By_Ref
7543 (N : Node_Id) return Boolean; -- Flag5
7544
7545 function Body_Required
7546 (N : Node_Id) return Boolean; -- Flag13
7547
7548 function Body_To_Inline
7549 (N : Node_Id) return Node_Id; -- Node3
7550
7551 function Box_Present
7552 (N : Node_Id) return Boolean; -- Flag15
7553
7554 function Char_Literal_Value
7555 (N : Node_Id) return Uint; -- Uint2
7556
7557 function Chars
7558 (N : Node_Id) return Name_Id; -- Name1
7559
7560 function Check_Address_Alignment
7561 (N : Node_Id) return Boolean; -- Flag11
7562
7563 function Choice_Parameter
7564 (N : Node_Id) return Node_Id; -- Node2
7565
7566 function Choices
7567 (N : Node_Id) return List_Id; -- List1
7568
7569 function Coextensions
7570 (N : Node_Id) return Elist_Id; -- Elist4
7571
7572 function Comes_From_Extended_Return_Statement
7573 (N : Node_Id) return Boolean; -- Flag18
7574
7575 function Compile_Time_Known_Aggregate
7576 (N : Node_Id) return Boolean; -- Flag18
7577
7578 function Component_Associations
7579 (N : Node_Id) return List_Id; -- List2
7580
7581 function Component_Clauses
7582 (N : Node_Id) return List_Id; -- List3
7583
7584 function Component_Definition
7585 (N : Node_Id) return Node_Id; -- Node4
7586
7587 function Component_Items
7588 (N : Node_Id) return List_Id; -- List3
7589
7590 function Component_List
7591 (N : Node_Id) return Node_Id; -- Node1
7592
7593 function Component_Name
7594 (N : Node_Id) return Node_Id; -- Node1
7595
7596 function Condition
7597 (N : Node_Id) return Node_Id; -- Node1
7598
7599 function Condition_Actions
7600 (N : Node_Id) return List_Id; -- List3
7601
7602 function Config_Pragmas
7603 (N : Node_Id) return List_Id; -- List4
7604
7605 function Constant_Present
7606 (N : Node_Id) return Boolean; -- Flag17
7607
7608 function Constraint
7609 (N : Node_Id) return Node_Id; -- Node3
7610
7611 function Constraints
7612 (N : Node_Id) return List_Id; -- List1
7613
7614 function Context_Installed
7615 (N : Node_Id) return Boolean; -- Flag13
7616
7617 function Context_Items
7618 (N : Node_Id) return List_Id; -- List1
7619
7620 function Controlling_Argument
7621 (N : Node_Id) return Node_Id; -- Node1
7622
7623 function Conversion_OK
7624 (N : Node_Id) return Boolean; -- Flag14
7625
7626 function Corresponding_Body
7627 (N : Node_Id) return Node_Id; -- Node5
7628
7629 function Corresponding_Formal_Spec
7630 (N : Node_Id) return Node_Id; -- Node3
7631
7632 function Corresponding_Generic_Association
7633 (N : Node_Id) return Node_Id; -- Node5
7634
7635 function Corresponding_Integer_Value
7636 (N : Node_Id) return Uint; -- Uint4
7637
7638 function Corresponding_Spec
7639 (N : Node_Id) return Node_Id; -- Node5
7640
7641 function Corresponding_Stub
7642 (N : Node_Id) return Node_Id; -- Node3
7643
7644 function Dcheck_Function
7645 (N : Node_Id) return Entity_Id; -- Node5
7646
7647 function Debug_Statement
7648 (N : Node_Id) return Node_Id; -- Node3
7649
7650 function Declarations
7651 (N : Node_Id) return List_Id; -- List2
7652
7653 function Default_Expression
7654 (N : Node_Id) return Node_Id; -- Node5
7655
7656 function Default_Name
7657 (N : Node_Id) return Node_Id; -- Node2
7658
7659 function Defining_Identifier
7660 (N : Node_Id) return Entity_Id; -- Node1
7661
7662 function Defining_Unit_Name
7663 (N : Node_Id) return Node_Id; -- Node1
7664
7665 function Delay_Alternative
7666 (N : Node_Id) return Node_Id; -- Node4
7667
7668 function Delay_Statement
7669 (N : Node_Id) return Node_Id; -- Node2
7670
7671 function Delta_Expression
7672 (N : Node_Id) return Node_Id; -- Node3
7673
7674 function Digits_Expression
7675 (N : Node_Id) return Node_Id; -- Node2
7676
7677 function Discr_Check_Funcs_Built
7678 (N : Node_Id) return Boolean; -- Flag11
7679
7680 function Discrete_Choices
7681 (N : Node_Id) return List_Id; -- List4
7682
7683 function Discrete_Range
7684 (N : Node_Id) return Node_Id; -- Node4
7685
7686 function Discrete_Subtype_Definition
7687 (N : Node_Id) return Node_Id; -- Node4
7688
7689 function Discrete_Subtype_Definitions
7690 (N : Node_Id) return List_Id; -- List2
7691
7692 function Discriminant_Specifications
7693 (N : Node_Id) return List_Id; -- List4
7694
7695 function Discriminant_Type
7696 (N : Node_Id) return Node_Id; -- Node5
7697
7698 function Do_Accessibility_Check
7699 (N : Node_Id) return Boolean; -- Flag13
7700
7701 function Do_Discriminant_Check
7702 (N : Node_Id) return Boolean; -- Flag13
7703
7704 function Do_Division_Check
7705 (N : Node_Id) return Boolean; -- Flag13
7706
7707 function Do_Length_Check
7708 (N : Node_Id) return Boolean; -- Flag4
7709
7710 function Do_Overflow_Check
7711 (N : Node_Id) return Boolean; -- Flag17
7712
7713 function Do_Range_Check
7714 (N : Node_Id) return Boolean; -- Flag9
7715
7716 function Do_Storage_Check
7717 (N : Node_Id) return Boolean; -- Flag17
7718
7719 function Do_Tag_Check
7720 (N : Node_Id) return Boolean; -- Flag13
7721
7722 function Elaborate_All_Desirable
7723 (N : Node_Id) return Boolean; -- Flag9
7724
7725 function Elaborate_All_Present
7726 (N : Node_Id) return Boolean; -- Flag14
7727
7728 function Elaborate_Desirable
7729 (N : Node_Id) return Boolean; -- Flag11
7730
7731 function Elaborate_Present
7732 (N : Node_Id) return Boolean; -- Flag4
7733
7734 function Elaboration_Boolean
7735 (N : Node_Id) return Node_Id; -- Node2
7736
7737 function Else_Actions
7738 (N : Node_Id) return List_Id; -- List3
7739
7740 function Else_Statements
7741 (N : Node_Id) return List_Id; -- List4
7742
7743 function Elsif_Parts
7744 (N : Node_Id) return List_Id; -- List3
7745
7746 function Enclosing_Variant
7747 (N : Node_Id) return Node_Id; -- Node2
7748
7749 function End_Label
7750 (N : Node_Id) return Node_Id; -- Node4
7751
7752 function End_Span
7753 (N : Node_Id) return Uint; -- Uint5
7754
7755 function Entity
7756 (N : Node_Id) return Node_Id; -- Node4
7757
7758 function Entity_Or_Associated_Node
7759 (N : Node_Id) return Node_Id; -- Node4
7760
7761 function Entry_Body_Formal_Part
7762 (N : Node_Id) return Node_Id; -- Node5
7763
7764 function Entry_Call_Alternative
7765 (N : Node_Id) return Node_Id; -- Node1
7766
7767 function Entry_Call_Statement
7768 (N : Node_Id) return Node_Id; -- Node1
7769
7770 function Entry_Direct_Name
7771 (N : Node_Id) return Node_Id; -- Node1
7772
7773 function Entry_Index
7774 (N : Node_Id) return Node_Id; -- Node5
7775
7776 function Entry_Index_Specification
7777 (N : Node_Id) return Node_Id; -- Node4
7778
7779 function Etype
7780 (N : Node_Id) return Node_Id; -- Node5
7781
7782 function Exception_Choices
7783 (N : Node_Id) return List_Id; -- List4
7784
7785 function Exception_Handlers
7786 (N : Node_Id) return List_Id; -- List5
7787
7788 function Exception_Junk
7789 (N : Node_Id) return Boolean; -- Flag8
7790
7791 function Exception_Label
7792 (N : Node_Id) return Node_Id; -- Node5
7793
7794 function Explicit_Actual_Parameter
7795 (N : Node_Id) return Node_Id; -- Node3
7796
7797 function Expansion_Delayed
7798 (N : Node_Id) return Boolean; -- Flag11
7799
7800 function Explicit_Generic_Actual_Parameter
7801 (N : Node_Id) return Node_Id; -- Node1
7802
7803 function Expression
7804 (N : Node_Id) return Node_Id; -- Node3
7805
7806 function Expressions
7807 (N : Node_Id) return List_Id; -- List1
7808
7809 function First_Bit
7810 (N : Node_Id) return Node_Id; -- Node3
7811
7812 function First_Inlined_Subprogram
7813 (N : Node_Id) return Entity_Id; -- Node3
7814
7815 function First_Name
7816 (N : Node_Id) return Boolean; -- Flag5
7817
7818 function First_Named_Actual
7819 (N : Node_Id) return Node_Id; -- Node4
7820
7821 function First_Real_Statement
7822 (N : Node_Id) return Node_Id; -- Node2
7823
7824 function First_Subtype_Link
7825 (N : Node_Id) return Entity_Id; -- Node5
7826
7827 function Float_Truncate
7828 (N : Node_Id) return Boolean; -- Flag11
7829
7830 function Formal_Type_Definition
7831 (N : Node_Id) return Node_Id; -- Node3
7832
7833 function Forwards_OK
7834 (N : Node_Id) return Boolean; -- Flag5
7835
7836 function From_At_End
7837 (N : Node_Id) return Boolean; -- Flag4
7838
7839 function From_At_Mod
7840 (N : Node_Id) return Boolean; -- Flag4
7841
7842 function From_Default
7843 (N : Node_Id) return Boolean; -- Flag6
7844
7845 function Generic_Associations
7846 (N : Node_Id) return List_Id; -- List3
7847
7848 function Generic_Formal_Declarations
7849 (N : Node_Id) return List_Id; -- List2
7850
7851 function Generic_Parent
7852 (N : Node_Id) return Node_Id; -- Node5
7853
7854 function Generic_Parent_Type
7855 (N : Node_Id) return Node_Id; -- Node4
7856
7857 function Handled_Statement_Sequence
7858 (N : Node_Id) return Node_Id; -- Node4
7859
7860 function Handler_List_Entry
7861 (N : Node_Id) return Node_Id; -- Node2
7862
7863 function Has_Created_Identifier
7864 (N : Node_Id) return Boolean; -- Flag15
7865
7866 function Has_Dynamic_Length_Check
7867 (N : Node_Id) return Boolean; -- Flag10
7868
7869 function Has_Dynamic_Range_Check
7870 (N : Node_Id) return Boolean; -- Flag12
7871
7872 function Has_Init_Expression
7873 (N : Node_Id) return Boolean; -- Flag14
7874
7875 function Has_Local_Raise
7876 (N : Node_Id) return Boolean; -- Flag8
7877
7878 function Has_No_Elaboration_Code
7879 (N : Node_Id) return Boolean; -- Flag17
7880
7881 function Has_Priority_Pragma
7882 (N : Node_Id) return Boolean; -- Flag6
7883
7884 function Has_Private_View
7885 (N : Node_Id) return Boolean; -- Flag11
7886
7887 function Has_Relative_Deadline_Pragma
7888 (N : Node_Id) return Boolean; -- Flag9
7889
7890 function Has_Self_Reference
7891 (N : Node_Id) return Boolean; -- Flag13
7892
7893 function Has_Storage_Size_Pragma
7894 (N : Node_Id) return Boolean; -- Flag5
7895
7896 function Has_Task_Info_Pragma
7897 (N : Node_Id) return Boolean; -- Flag7
7898
7899 function Has_Task_Name_Pragma
7900 (N : Node_Id) return Boolean; -- Flag8
7901
7902 function Has_Wide_Character
7903 (N : Node_Id) return Boolean; -- Flag11
7904
7905 function Hidden_By_Use_Clause
7906 (N : Node_Id) return Elist_Id; -- Elist4
7907
7908 function High_Bound
7909 (N : Node_Id) return Node_Id; -- Node2
7910
7911 function Identifier
7912 (N : Node_Id) return Node_Id; -- Node1
7913
7914 function Interface_List
7915 (N : Node_Id) return List_Id; -- List2
7916
7917 function Interface_Present
7918 (N : Node_Id) return Boolean; -- Flag16
7919
7920 function Implicit_With
7921 (N : Node_Id) return Boolean; -- Flag16
7922
7923 function In_Present
7924 (N : Node_Id) return Boolean; -- Flag15
7925
7926 function Includes_Infinities
7927 (N : Node_Id) return Boolean; -- Flag11
7928
7929 function Instance_Spec
7930 (N : Node_Id) return Node_Id; -- Node5
7931
7932 function Intval
7933 (N : Node_Id) return Uint; -- Uint3
7934
7935 function Is_Asynchronous_Call_Block
7936 (N : Node_Id) return Boolean; -- Flag7
7937
7938 function Is_Component_Left_Opnd
7939 (N : Node_Id) return Boolean; -- Flag13
7940
7941 function Is_Component_Right_Opnd
7942 (N : Node_Id) return Boolean; -- Flag14
7943
7944 function Is_Controlling_Actual
7945 (N : Node_Id) return Boolean; -- Flag16
7946
7947 function Is_Dynamic_Coextension
7948 (N : Node_Id) return Boolean; -- Flag18
7949
7950 function Is_Entry_Barrier_Function
7951 (N : Node_Id) return Boolean; -- Flag8
7952
7953 function Is_Expanded_Build_In_Place_Call
7954 (N : Node_Id) return Boolean; -- Flag11
7955
7956 function Is_Folded_In_Parser
7957 (N : Node_Id) return Boolean; -- Flag4
7958
7959 function Is_In_Discriminant_Check
7960 (N : Node_Id) return Boolean; -- Flag11
7961
7962 function Is_Machine_Number
7963 (N : Node_Id) return Boolean; -- Flag11
7964
7965 function Is_Null_Loop
7966 (N : Node_Id) return Boolean; -- Flag16
7967
7968 function Is_Overloaded
7969 (N : Node_Id) return Boolean; -- Flag5
7970
7971 function Is_Power_Of_2_For_Shift
7972 (N : Node_Id) return Boolean; -- Flag13
7973
7974 function Is_Protected_Subprogram_Body
7975 (N : Node_Id) return Boolean; -- Flag7
7976
7977 function Is_Static_Coextension
7978 (N : Node_Id) return Boolean; -- Flag14
7979
7980 function Is_Static_Expression
7981 (N : Node_Id) return Boolean; -- Flag6
7982
7983 function Is_Subprogram_Descriptor
7984 (N : Node_Id) return Boolean; -- Flag16
7985
7986 function Is_Task_Allocation_Block
7987 (N : Node_Id) return Boolean; -- Flag6
7988
7989 function Is_Task_Master
7990 (N : Node_Id) return Boolean; -- Flag5
7991
7992 function Iteration_Scheme
7993 (N : Node_Id) return Node_Id; -- Node2
7994
7995 function Itype
7996 (N : Node_Id) return Entity_Id; -- Node1
7997
7998 function Kill_Range_Check
7999 (N : Node_Id) return Boolean; -- Flag11
8000
8001 function Label_Construct
8002 (N : Node_Id) return Node_Id; -- Node2
8003
8004 function Left_Opnd
8005 (N : Node_Id) return Node_Id; -- Node2
8006
8007 function Last_Bit
8008 (N : Node_Id) return Node_Id; -- Node4
8009
8010 function Last_Name
8011 (N : Node_Id) return Boolean; -- Flag6
8012
8013 function Library_Unit
8014 (N : Node_Id) return Node_Id; -- Node4
8015
8016 function Limited_View_Installed
8017 (N : Node_Id) return Boolean; -- Flag18
8018
8019 function Limited_Present
8020 (N : Node_Id) return Boolean; -- Flag17
8021
8022 function Literals
8023 (N : Node_Id) return List_Id; -- List1
8024
8025 function Local_Raise_Not_OK
8026 (N : Node_Id) return Boolean; -- Flag7
8027
8028 function Local_Raise_Statements
8029 (N : Node_Id) return Elist_Id; -- Elist1
8030
8031 function Loop_Actions
8032 (N : Node_Id) return List_Id; -- List2
8033
8034 function Loop_Parameter_Specification
8035 (N : Node_Id) return Node_Id; -- Node4
8036
8037 function Low_Bound
8038 (N : Node_Id) return Node_Id; -- Node1
8039
8040 function Mod_Clause
8041 (N : Node_Id) return Node_Id; -- Node2
8042
8043 function More_Ids
8044 (N : Node_Id) return Boolean; -- Flag5
8045
8046 function Must_Be_Byte_Aligned
8047 (N : Node_Id) return Boolean; -- Flag14
8048
8049 function Must_Not_Freeze
8050 (N : Node_Id) return Boolean; -- Flag8
8051
8052 function Must_Not_Override
8053 (N : Node_Id) return Boolean; -- Flag15
8054
8055 function Must_Override
8056 (N : Node_Id) return Boolean; -- Flag14
8057
8058 function Name
8059 (N : Node_Id) return Node_Id; -- Node2
8060
8061 function Names
8062 (N : Node_Id) return List_Id; -- List2
8063
8064 function Next_Entity
8065 (N : Node_Id) return Node_Id; -- Node2
8066
8067 function Next_Named_Actual
8068 (N : Node_Id) return Node_Id; -- Node4
8069
8070 function Next_Pragma
8071 (N : Node_Id) return Node_Id; -- Node1
8072
8073 function Next_Rep_Item
8074 (N : Node_Id) return Node_Id; -- Node5
8075
8076 function Next_Use_Clause
8077 (N : Node_Id) return Node_Id; -- Node3
8078
8079 function No_Ctrl_Actions
8080 (N : Node_Id) return Boolean; -- Flag7
8081
8082 function No_Elaboration_Check
8083 (N : Node_Id) return Boolean; -- Flag14
8084
8085 function No_Entities_Ref_In_Spec
8086 (N : Node_Id) return Boolean; -- Flag8
8087
8088 function No_Initialization
8089 (N : Node_Id) return Boolean; -- Flag13
8090
8091 function No_Truncation
8092 (N : Node_Id) return Boolean; -- Flag17
8093
8094 function Null_Present
8095 (N : Node_Id) return Boolean; -- Flag13
8096
8097 function Null_Exclusion_Present
8098 (N : Node_Id) return Boolean; -- Flag11
8099
8100 function Null_Exclusion_In_Return_Present
8101 (N : Node_Id) return Boolean; -- Flag14
8102
8103 function Null_Record_Present
8104 (N : Node_Id) return Boolean; -- Flag17
8105
8106 function Object_Definition
8107 (N : Node_Id) return Node_Id; -- Node4
8108
8109 function Original_Discriminant
8110 (N : Node_Id) return Node_Id; -- Node2
8111
8112 function Original_Entity
8113 (N : Node_Id) return Entity_Id; -- Node2
8114
8115 function Others_Discrete_Choices
8116 (N : Node_Id) return List_Id; -- List1
8117
8118 function Out_Present
8119 (N : Node_Id) return Boolean; -- Flag17
8120
8121 function Parameter_Associations
8122 (N : Node_Id) return List_Id; -- List3
8123
8124 function Parameter_List_Truncated
8125 (N : Node_Id) return Boolean; -- Flag17
8126
8127 function Parameter_Specifications
8128 (N : Node_Id) return List_Id; -- List3
8129
8130 function Parameter_Type
8131 (N : Node_Id) return Node_Id; -- Node2
8132
8133 function Parent_Spec
8134 (N : Node_Id) return Node_Id; -- Node4
8135
8136 function PPC_Enabled
8137 (N : Node_Id) return Boolean; -- Flag5
8138
8139 function Position
8140 (N : Node_Id) return Node_Id; -- Node2
8141
8142 function Pragma_Argument_Associations
8143 (N : Node_Id) return List_Id; -- List2
8144
8145 function Pragma_Identifier
8146 (N : Node_Id) return Node_Id; -- Node4
8147
8148 function Pragmas_After
8149 (N : Node_Id) return List_Id; -- List5
8150
8151 function Pragmas_Before
8152 (N : Node_Id) return List_Id; -- List4
8153
8154 function Prefix
8155 (N : Node_Id) return Node_Id; -- Node3
8156
8157 function Present_Expr
8158 (N : Node_Id) return Uint; -- Uint3
8159
8160 function Prev_Ids
8161 (N : Node_Id) return Boolean; -- Flag6
8162
8163 function Print_In_Hex
8164 (N : Node_Id) return Boolean; -- Flag13
8165
8166 function Private_Declarations
8167 (N : Node_Id) return List_Id; -- List3
8168
8169 function Private_Present
8170 (N : Node_Id) return Boolean; -- Flag15
8171
8172 function Procedure_To_Call
8173 (N : Node_Id) return Node_Id; -- Node2
8174
8175 function Proper_Body
8176 (N : Node_Id) return Node_Id; -- Node1
8177
8178 function Protected_Definition
8179 (N : Node_Id) return Node_Id; -- Node3
8180
8181 function Protected_Present
8182 (N : Node_Id) return Boolean; -- Flag6
8183
8184 function Raises_Constraint_Error
8185 (N : Node_Id) return Boolean; -- Flag7
8186
8187 function Range_Constraint
8188 (N : Node_Id) return Node_Id; -- Node4
8189
8190 function Range_Expression
8191 (N : Node_Id) return Node_Id; -- Node4
8192
8193 function Real_Range_Specification
8194 (N : Node_Id) return Node_Id; -- Node4
8195
8196 function Realval
8197 (N : Node_Id) return Ureal; -- Ureal3
8198
8199 function Reason
8200 (N : Node_Id) return Uint; -- Uint3
8201
8202 function Record_Extension_Part
8203 (N : Node_Id) return Node_Id; -- Node3
8204
8205 function Redundant_Use
8206 (N : Node_Id) return Boolean; -- Flag13
8207
8208 function Renaming_Exception
8209 (N : Node_Id) return Node_Id; -- Node2
8210
8211 function Result_Definition
8212 (N : Node_Id) return Node_Id; -- Node4
8213
8214 function Return_Object_Declarations
8215 (N : Node_Id) return List_Id; -- List3
8216
8217 function Return_Statement_Entity
8218 (N : Node_Id) return Node_Id; -- Node5
8219
8220 function Reverse_Present
8221 (N : Node_Id) return Boolean; -- Flag15
8222
8223 function Right_Opnd
8224 (N : Node_Id) return Node_Id; -- Node3
8225
8226 function Rounded_Result
8227 (N : Node_Id) return Boolean; -- Flag18
8228
8229 function Scope
8230 (N : Node_Id) return Node_Id; -- Node3
8231
8232 function Select_Alternatives
8233 (N : Node_Id) return List_Id; -- List1
8234
8235 function Selector_Name
8236 (N : Node_Id) return Node_Id; -- Node2
8237
8238 function Selector_Names
8239 (N : Node_Id) return List_Id; -- List1
8240
8241 function Shift_Count_OK
8242 (N : Node_Id) return Boolean; -- Flag4
8243
8244 function Source_Type
8245 (N : Node_Id) return Entity_Id; -- Node1
8246
8247 function Specification
8248 (N : Node_Id) return Node_Id; -- Node1
8249
8250 function Statements
8251 (N : Node_Id) return List_Id; -- List3
8252
8253 function Static_Processing_OK
8254 (N : Node_Id) return Boolean; -- Flag4
8255
8256 function Storage_Pool
8257 (N : Node_Id) return Node_Id; -- Node1
8258
8259 function Strval
8260 (N : Node_Id) return String_Id; -- Str3
8261
8262 function Subtype_Indication
8263 (N : Node_Id) return Node_Id; -- Node5
8264
8265 function Subtype_Mark
8266 (N : Node_Id) return Node_Id; -- Node4
8267
8268 function Subtype_Marks
8269 (N : Node_Id) return List_Id; -- List2
8270
8271 function Suppress_Loop_Warnings
8272 (N : Node_Id) return Boolean; -- Flag17
8273
8274 function Synchronized_Present
8275 (N : Node_Id) return Boolean; -- Flag7
8276
8277 function Tagged_Present
8278 (N : Node_Id) return Boolean; -- Flag15
8279
8280 function Target_Type
8281 (N : Node_Id) return Entity_Id; -- Node2
8282
8283 function Task_Definition
8284 (N : Node_Id) return Node_Id; -- Node3
8285
8286 function Task_Present
8287 (N : Node_Id) return Boolean; -- Flag5
8288
8289 function Then_Actions
8290 (N : Node_Id) return List_Id; -- List2
8291
8292 function Then_Statements
8293 (N : Node_Id) return List_Id; -- List2
8294
8295 function Treat_Fixed_As_Integer
8296 (N : Node_Id) return Boolean; -- Flag14
8297
8298 function Triggering_Alternative
8299 (N : Node_Id) return Node_Id; -- Node1
8300
8301 function Triggering_Statement
8302 (N : Node_Id) return Node_Id; -- Node1
8303
8304 function TSS_Elist
8305 (N : Node_Id) return Elist_Id; -- Elist3
8306
8307 function Type_Definition
8308 (N : Node_Id) return Node_Id; -- Node3
8309
8310 function Unit
8311 (N : Node_Id) return Node_Id; -- Node2
8312
8313 function Unknown_Discriminants_Present
8314 (N : Node_Id) return Boolean; -- Flag13
8315
8316 function Unreferenced_In_Spec
8317 (N : Node_Id) return Boolean; -- Flag7
8318
8319 function Variant_Part
8320 (N : Node_Id) return Node_Id; -- Node4
8321
8322 function Variants
8323 (N : Node_Id) return List_Id; -- List1
8324
8325 function Visible_Declarations
8326 (N : Node_Id) return List_Id; -- List2
8327
8328 function Was_Originally_Stub
8329 (N : Node_Id) return Boolean; -- Flag13
8330
8331 function Zero_Cost_Handling
8332 (N : Node_Id) return Boolean; -- Flag5
8333
8334 -- End functions (note used by xsinfo utility program to end processing)
8335
8336 ----------------------------
8337 -- Node Update Procedures --
8338 ----------------------------
8339
8340 -- These are the corresponding node update routines, which again provide
8341 -- a high level logical access with type checking. In addition to setting
8342 -- the indicated field of the node N to the given Val, in the case of
8343 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8344 -- point back to node N. This automates the setting of the parent pointer.
8345
8346 procedure Set_ABE_Is_Certain
8347 (N : Node_Id; Val : Boolean := True); -- Flag18
8348
8349 procedure Set_Abort_Present
8350 (N : Node_Id; Val : Boolean := True); -- Flag15
8351
8352 procedure Set_Abortable_Part
8353 (N : Node_Id; Val : Node_Id); -- Node2
8354
8355 procedure Set_Abstract_Present
8356 (N : Node_Id; Val : Boolean := True); -- Flag4
8357
8358 procedure Set_Accept_Handler_Records
8359 (N : Node_Id; Val : List_Id); -- List5
8360
8361 procedure Set_Accept_Statement
8362 (N : Node_Id; Val : Node_Id); -- Node2
8363
8364 procedure Set_Access_Definition
8365 (N : Node_Id; Val : Node_Id); -- Node3
8366
8367 procedure Set_Access_To_Subprogram_Definition
8368 (N : Node_Id; Val : Node_Id); -- Node3
8369
8370 procedure Set_Access_Types_To_Process
8371 (N : Node_Id; Val : Elist_Id); -- Elist2
8372
8373 procedure Set_Actions
8374 (N : Node_Id; Val : List_Id); -- List1
8375
8376 procedure Set_Activation_Chain_Entity
8377 (N : Node_Id; Val : Node_Id); -- Node3
8378
8379 procedure Set_Acts_As_Spec
8380 (N : Node_Id; Val : Boolean := True); -- Flag4
8381
8382 procedure Set_Actual_Designated_Subtype
8383 (N : Node_Id; Val : Node_Id); -- Node4
8384
8385 procedure Set_Address_Warning_Posted
8386 (N : Node_Id; Val : Boolean := True); -- Flag18
8387
8388 procedure Set_Aggregate_Bounds
8389 (N : Node_Id; Val : Node_Id); -- Node3
8390
8391 procedure Set_Aliased_Present
8392 (N : Node_Id; Val : Boolean := True); -- Flag4
8393
8394 procedure Set_All_Others
8395 (N : Node_Id; Val : Boolean := True); -- Flag11
8396
8397 procedure Set_All_Present
8398 (N : Node_Id; Val : Boolean := True); -- Flag15
8399
8400 procedure Set_Alternatives
8401 (N : Node_Id; Val : List_Id); -- List4
8402
8403 procedure Set_Ancestor_Part
8404 (N : Node_Id; Val : Node_Id); -- Node3
8405
8406 procedure Set_Array_Aggregate
8407 (N : Node_Id; Val : Node_Id); -- Node3
8408
8409 procedure Set_Assignment_OK
8410 (N : Node_Id; Val : Boolean := True); -- Flag15
8411
8412 procedure Set_Associated_Node
8413 (N : Node_Id; Val : Node_Id); -- Node4
8414
8415 procedure Set_Attribute_Name
8416 (N : Node_Id; Val : Name_Id); -- Name2
8417
8418 procedure Set_At_End_Proc
8419 (N : Node_Id; Val : Node_Id); -- Node1
8420
8421 procedure Set_Aux_Decls_Node
8422 (N : Node_Id; Val : Node_Id); -- Node5
8423
8424 procedure Set_Backwards_OK
8425 (N : Node_Id; Val : Boolean := True); -- Flag6
8426
8427 procedure Set_Bad_Is_Detected
8428 (N : Node_Id; Val : Boolean := True); -- Flag15
8429
8430 procedure Set_Body_Required
8431 (N : Node_Id; Val : Boolean := True); -- Flag13
8432
8433 procedure Set_Body_To_Inline
8434 (N : Node_Id; Val : Node_Id); -- Node3
8435
8436 procedure Set_Box_Present
8437 (N : Node_Id; Val : Boolean := True); -- Flag15
8438
8439 procedure Set_By_Ref
8440 (N : Node_Id; Val : Boolean := True); -- Flag5
8441
8442 procedure Set_Char_Literal_Value
8443 (N : Node_Id; Val : Uint); -- Uint2
8444
8445 procedure Set_Chars
8446 (N : Node_Id; Val : Name_Id); -- Name1
8447
8448 procedure Set_Check_Address_Alignment
8449 (N : Node_Id; Val : Boolean := True); -- Flag11
8450
8451 procedure Set_Choice_Parameter
8452 (N : Node_Id; Val : Node_Id); -- Node2
8453
8454 procedure Set_Coextensions
8455 (N : Node_Id; Val : Elist_Id); -- Elist4
8456
8457 procedure Set_Choices
8458 (N : Node_Id; Val : List_Id); -- List1
8459
8460 procedure Set_Comes_From_Extended_Return_Statement
8461 (N : Node_Id; Val : Boolean := True); -- Flag18
8462
8463 procedure Set_Compile_Time_Known_Aggregate
8464 (N : Node_Id; Val : Boolean := True); -- Flag18
8465
8466 procedure Set_Component_Associations
8467 (N : Node_Id; Val : List_Id); -- List2
8468
8469 procedure Set_Component_Clauses
8470 (N : Node_Id; Val : List_Id); -- List3
8471
8472 procedure Set_Component_Definition
8473 (N : Node_Id; Val : Node_Id); -- Node4
8474
8475 procedure Set_Component_Items
8476 (N : Node_Id; Val : List_Id); -- List3
8477
8478 procedure Set_Component_List
8479 (N : Node_Id; Val : Node_Id); -- Node1
8480
8481 procedure Set_Component_Name
8482 (N : Node_Id; Val : Node_Id); -- Node1
8483
8484 procedure Set_Condition
8485 (N : Node_Id; Val : Node_Id); -- Node1
8486
8487 procedure Set_Condition_Actions
8488 (N : Node_Id; Val : List_Id); -- List3
8489
8490 procedure Set_Config_Pragmas
8491 (N : Node_Id; Val : List_Id); -- List4
8492
8493 procedure Set_Constant_Present
8494 (N : Node_Id; Val : Boolean := True); -- Flag17
8495
8496 procedure Set_Constraint
8497 (N : Node_Id; Val : Node_Id); -- Node3
8498
8499 procedure Set_Constraints
8500 (N : Node_Id; Val : List_Id); -- List1
8501
8502 procedure Set_Context_Installed
8503 (N : Node_Id; Val : Boolean := True); -- Flag13
8504
8505 procedure Set_Context_Items
8506 (N : Node_Id; Val : List_Id); -- List1
8507
8508 procedure Set_Controlling_Argument
8509 (N : Node_Id; Val : Node_Id); -- Node1
8510
8511 procedure Set_Conversion_OK
8512 (N : Node_Id; Val : Boolean := True); -- Flag14
8513
8514 procedure Set_Corresponding_Body
8515 (N : Node_Id; Val : Node_Id); -- Node5
8516
8517 procedure Set_Corresponding_Formal_Spec
8518 (N : Node_Id; Val : Node_Id); -- Node3
8519
8520 procedure Set_Corresponding_Generic_Association
8521 (N : Node_Id; Val : Node_Id); -- Node5
8522
8523 procedure Set_Corresponding_Integer_Value
8524 (N : Node_Id; Val : Uint); -- Uint4
8525
8526 procedure Set_Corresponding_Spec
8527 (N : Node_Id; Val : Node_Id); -- Node5
8528
8529 procedure Set_Corresponding_Stub
8530 (N : Node_Id; Val : Node_Id); -- Node3
8531
8532 procedure Set_Dcheck_Function
8533 (N : Node_Id; Val : Entity_Id); -- Node5
8534
8535 procedure Set_Debug_Statement
8536 (N : Node_Id; Val : Node_Id); -- Node3
8537
8538 procedure Set_Declarations
8539 (N : Node_Id; Val : List_Id); -- List2
8540
8541 procedure Set_Default_Expression
8542 (N : Node_Id; Val : Node_Id); -- Node5
8543
8544 procedure Set_Default_Name
8545 (N : Node_Id; Val : Node_Id); -- Node2
8546
8547 procedure Set_Defining_Identifier
8548 (N : Node_Id; Val : Entity_Id); -- Node1
8549
8550 procedure Set_Defining_Unit_Name
8551 (N : Node_Id; Val : Node_Id); -- Node1
8552
8553 procedure Set_Delay_Alternative
8554 (N : Node_Id; Val : Node_Id); -- Node4
8555
8556 procedure Set_Delay_Statement
8557 (N : Node_Id; Val : Node_Id); -- Node2
8558
8559 procedure Set_Delta_Expression
8560 (N : Node_Id; Val : Node_Id); -- Node3
8561
8562 procedure Set_Digits_Expression
8563 (N : Node_Id; Val : Node_Id); -- Node2
8564
8565 procedure Set_Discr_Check_Funcs_Built
8566 (N : Node_Id; Val : Boolean := True); -- Flag11
8567
8568 procedure Set_Discrete_Choices
8569 (N : Node_Id; Val : List_Id); -- List4
8570
8571 procedure Set_Discrete_Range
8572 (N : Node_Id; Val : Node_Id); -- Node4
8573
8574 procedure Set_Discrete_Subtype_Definition
8575 (N : Node_Id; Val : Node_Id); -- Node4
8576
8577 procedure Set_Discrete_Subtype_Definitions
8578 (N : Node_Id; Val : List_Id); -- List2
8579
8580 procedure Set_Discriminant_Specifications
8581 (N : Node_Id; Val : List_Id); -- List4
8582
8583 procedure Set_Discriminant_Type
8584 (N : Node_Id; Val : Node_Id); -- Node5
8585
8586 procedure Set_Do_Accessibility_Check
8587 (N : Node_Id; Val : Boolean := True); -- Flag13
8588
8589 procedure Set_Do_Discriminant_Check
8590 (N : Node_Id; Val : Boolean := True); -- Flag13
8591
8592 procedure Set_Do_Division_Check
8593 (N : Node_Id; Val : Boolean := True); -- Flag13
8594
8595 procedure Set_Do_Length_Check
8596 (N : Node_Id; Val : Boolean := True); -- Flag4
8597
8598 procedure Set_Do_Overflow_Check
8599 (N : Node_Id; Val : Boolean := True); -- Flag17
8600
8601 procedure Set_Do_Range_Check
8602 (N : Node_Id; Val : Boolean := True); -- Flag9
8603
8604 procedure Set_Do_Storage_Check
8605 (N : Node_Id; Val : Boolean := True); -- Flag17
8606
8607 procedure Set_Do_Tag_Check
8608 (N : Node_Id; Val : Boolean := True); -- Flag13
8609
8610 procedure Set_Elaborate_All_Desirable
8611 (N : Node_Id; Val : Boolean := True); -- Flag9
8612
8613 procedure Set_Elaborate_All_Present
8614 (N : Node_Id; Val : Boolean := True); -- Flag14
8615
8616 procedure Set_Elaborate_Desirable
8617 (N : Node_Id; Val : Boolean := True); -- Flag11
8618
8619 procedure Set_Elaborate_Present
8620 (N : Node_Id; Val : Boolean := True); -- Flag4
8621
8622 procedure Set_Elaboration_Boolean
8623 (N : Node_Id; Val : Node_Id); -- Node2
8624
8625 procedure Set_Else_Actions
8626 (N : Node_Id; Val : List_Id); -- List3
8627
8628 procedure Set_Else_Statements
8629 (N : Node_Id; Val : List_Id); -- List4
8630
8631 procedure Set_Elsif_Parts
8632 (N : Node_Id; Val : List_Id); -- List3
8633
8634 procedure Set_Enclosing_Variant
8635 (N : Node_Id; Val : Node_Id); -- Node2
8636
8637 procedure Set_End_Label
8638 (N : Node_Id; Val : Node_Id); -- Node4
8639
8640 procedure Set_End_Span
8641 (N : Node_Id; Val : Uint); -- Uint5
8642
8643 procedure Set_Entity
8644 (N : Node_Id; Val : Node_Id); -- Node4
8645
8646 procedure Set_Entry_Body_Formal_Part
8647 (N : Node_Id; Val : Node_Id); -- Node5
8648
8649 procedure Set_Entry_Call_Alternative
8650 (N : Node_Id; Val : Node_Id); -- Node1
8651
8652 procedure Set_Entry_Call_Statement
8653 (N : Node_Id; Val : Node_Id); -- Node1
8654
8655 procedure Set_Entry_Direct_Name
8656 (N : Node_Id; Val : Node_Id); -- Node1
8657
8658 procedure Set_Entry_Index
8659 (N : Node_Id; Val : Node_Id); -- Node5
8660
8661 procedure Set_Entry_Index_Specification
8662 (N : Node_Id; Val : Node_Id); -- Node4
8663
8664 procedure Set_Etype
8665 (N : Node_Id; Val : Node_Id); -- Node5
8666
8667 procedure Set_Exception_Choices
8668 (N : Node_Id; Val : List_Id); -- List4
8669
8670 procedure Set_Exception_Handlers
8671 (N : Node_Id; Val : List_Id); -- List5
8672
8673 procedure Set_Exception_Junk
8674 (N : Node_Id; Val : Boolean := True); -- Flag8
8675
8676 procedure Set_Exception_Label
8677 (N : Node_Id; Val : Node_Id); -- Node5
8678
8679 procedure Set_Expansion_Delayed
8680 (N : Node_Id; Val : Boolean := True); -- Flag11
8681
8682 procedure Set_Explicit_Actual_Parameter
8683 (N : Node_Id; Val : Node_Id); -- Node3
8684
8685 procedure Set_Explicit_Generic_Actual_Parameter
8686 (N : Node_Id; Val : Node_Id); -- Node1
8687
8688 procedure Set_Expression
8689 (N : Node_Id; Val : Node_Id); -- Node3
8690
8691 procedure Set_Expressions
8692 (N : Node_Id; Val : List_Id); -- List1
8693
8694 procedure Set_First_Bit
8695 (N : Node_Id; Val : Node_Id); -- Node3
8696
8697 procedure Set_First_Inlined_Subprogram
8698 (N : Node_Id; Val : Entity_Id); -- Node3
8699
8700 procedure Set_First_Name
8701 (N : Node_Id; Val : Boolean := True); -- Flag5
8702
8703 procedure Set_First_Named_Actual
8704 (N : Node_Id; Val : Node_Id); -- Node4
8705
8706 procedure Set_First_Real_Statement
8707 (N : Node_Id; Val : Node_Id); -- Node2
8708
8709 procedure Set_First_Subtype_Link
8710 (N : Node_Id; Val : Entity_Id); -- Node5
8711
8712 procedure Set_Float_Truncate
8713 (N : Node_Id; Val : Boolean := True); -- Flag11
8714
8715 procedure Set_Formal_Type_Definition
8716 (N : Node_Id; Val : Node_Id); -- Node3
8717
8718 procedure Set_Forwards_OK
8719 (N : Node_Id; Val : Boolean := True); -- Flag5
8720
8721 procedure Set_From_At_Mod
8722 (N : Node_Id; Val : Boolean := True); -- Flag4
8723
8724 procedure Set_From_At_End
8725 (N : Node_Id; Val : Boolean := True); -- Flag4
8726
8727 procedure Set_From_Default
8728 (N : Node_Id; Val : Boolean := True); -- Flag6
8729
8730 procedure Set_Generic_Associations
8731 (N : Node_Id; Val : List_Id); -- List3
8732
8733 procedure Set_Generic_Formal_Declarations
8734 (N : Node_Id; Val : List_Id); -- List2
8735
8736 procedure Set_Generic_Parent
8737 (N : Node_Id; Val : Node_Id); -- Node5
8738
8739 procedure Set_Generic_Parent_Type
8740 (N : Node_Id; Val : Node_Id); -- Node4
8741
8742 procedure Set_Handled_Statement_Sequence
8743 (N : Node_Id; Val : Node_Id); -- Node4
8744
8745 procedure Set_Handler_List_Entry
8746 (N : Node_Id; Val : Node_Id); -- Node2
8747
8748 procedure Set_Has_Created_Identifier
8749 (N : Node_Id; Val : Boolean := True); -- Flag15
8750
8751 procedure Set_Has_Dynamic_Length_Check
8752 (N : Node_Id; Val : Boolean := True); -- Flag10
8753
8754 procedure Set_Has_Dynamic_Range_Check
8755 (N : Node_Id; Val : Boolean := True); -- Flag12
8756
8757 procedure Set_Has_Init_Expression
8758 (N : Node_Id; Val : Boolean := True); -- Flag14
8759
8760 procedure Set_Has_Local_Raise
8761 (N : Node_Id; Val : Boolean := True); -- Flag8
8762
8763 procedure Set_Has_No_Elaboration_Code
8764 (N : Node_Id; Val : Boolean := True); -- Flag17
8765
8766 procedure Set_Has_Priority_Pragma
8767 (N : Node_Id; Val : Boolean := True); -- Flag6
8768
8769 procedure Set_Has_Private_View
8770 (N : Node_Id; Val : Boolean := True); -- Flag11
8771
8772 procedure Set_Has_Relative_Deadline_Pragma
8773 (N : Node_Id; Val : Boolean := True); -- Flag9
8774
8775 procedure Set_Has_Self_Reference
8776 (N : Node_Id; Val : Boolean := True); -- Flag13
8777
8778 procedure Set_Has_Storage_Size_Pragma
8779 (N : Node_Id; Val : Boolean := True); -- Flag5
8780
8781 procedure Set_Has_Task_Info_Pragma
8782 (N : Node_Id; Val : Boolean := True); -- Flag7
8783
8784 procedure Set_Has_Task_Name_Pragma
8785 (N : Node_Id; Val : Boolean := True); -- Flag8
8786
8787 procedure Set_Has_Wide_Character
8788 (N : Node_Id; Val : Boolean := True); -- Flag11
8789
8790 procedure Set_Hidden_By_Use_Clause
8791 (N : Node_Id; Val : Elist_Id); -- Elist4
8792
8793 procedure Set_High_Bound
8794 (N : Node_Id; Val : Node_Id); -- Node2
8795
8796 procedure Set_Identifier
8797 (N : Node_Id; Val : Node_Id); -- Node1
8798
8799 procedure Set_Interface_List
8800 (N : Node_Id; Val : List_Id); -- List2
8801
8802 procedure Set_Interface_Present
8803 (N : Node_Id; Val : Boolean := True); -- Flag16
8804
8805 procedure Set_Implicit_With
8806 (N : Node_Id; Val : Boolean := True); -- Flag16
8807
8808 procedure Set_In_Present
8809 (N : Node_Id; Val : Boolean := True); -- Flag15
8810
8811 procedure Set_Includes_Infinities
8812 (N : Node_Id; Val : Boolean := True); -- Flag11
8813
8814 procedure Set_Instance_Spec
8815 (N : Node_Id; Val : Node_Id); -- Node5
8816
8817 procedure Set_Intval
8818 (N : Node_Id; Val : Uint); -- Uint3
8819
8820 procedure Set_Is_Asynchronous_Call_Block
8821 (N : Node_Id; Val : Boolean := True); -- Flag7
8822
8823 procedure Set_Is_Component_Left_Opnd
8824 (N : Node_Id; Val : Boolean := True); -- Flag13
8825
8826 procedure Set_Is_Component_Right_Opnd
8827 (N : Node_Id; Val : Boolean := True); -- Flag14
8828
8829 procedure Set_Is_Controlling_Actual
8830 (N : Node_Id; Val : Boolean := True); -- Flag16
8831
8832 procedure Set_Is_Dynamic_Coextension
8833 (N : Node_Id; Val : Boolean := True); -- Flag18
8834
8835 procedure Set_Is_Entry_Barrier_Function
8836 (N : Node_Id; Val : Boolean := True); -- Flag8
8837
8838 procedure Set_Is_Expanded_Build_In_Place_Call
8839 (N : Node_Id; Val : Boolean := True); -- Flag11
8840
8841 procedure Set_Is_Folded_In_Parser
8842 (N : Node_Id; Val : Boolean := True); -- Flag4
8843
8844 procedure Set_Is_In_Discriminant_Check
8845 (N : Node_Id; Val : Boolean := True); -- Flag11
8846
8847 procedure Set_Is_Machine_Number
8848 (N : Node_Id; Val : Boolean := True); -- Flag11
8849
8850 procedure Set_Is_Null_Loop
8851 (N : Node_Id; Val : Boolean := True); -- Flag16
8852
8853 procedure Set_Is_Overloaded
8854 (N : Node_Id; Val : Boolean := True); -- Flag5
8855
8856 procedure Set_Is_Power_Of_2_For_Shift
8857 (N : Node_Id; Val : Boolean := True); -- Flag13
8858
8859 procedure Set_Is_Protected_Subprogram_Body
8860 (N : Node_Id; Val : Boolean := True); -- Flag7
8861
8862 procedure Set_Is_Static_Coextension
8863 (N : Node_Id; Val : Boolean := True); -- Flag14
8864
8865 procedure Set_Is_Static_Expression
8866 (N : Node_Id; Val : Boolean := True); -- Flag6
8867
8868 procedure Set_Is_Subprogram_Descriptor
8869 (N : Node_Id; Val : Boolean := True); -- Flag16
8870
8871 procedure Set_Is_Task_Allocation_Block
8872 (N : Node_Id; Val : Boolean := True); -- Flag6
8873
8874 procedure Set_Is_Task_Master
8875 (N : Node_Id; Val : Boolean := True); -- Flag5
8876
8877 procedure Set_Iteration_Scheme
8878 (N : Node_Id; Val : Node_Id); -- Node2
8879
8880 procedure Set_Itype
8881 (N : Node_Id; Val : Entity_Id); -- Node1
8882
8883 procedure Set_Kill_Range_Check
8884 (N : Node_Id; Val : Boolean := True); -- Flag11
8885
8886 procedure Set_Last_Bit
8887 (N : Node_Id; Val : Node_Id); -- Node4
8888
8889 procedure Set_Last_Name
8890 (N : Node_Id; Val : Boolean := True); -- Flag6
8891
8892 procedure Set_Library_Unit
8893 (N : Node_Id; Val : Node_Id); -- Node4
8894
8895 procedure Set_Label_Construct
8896 (N : Node_Id; Val : Node_Id); -- Node2
8897
8898 procedure Set_Left_Opnd
8899 (N : Node_Id; Val : Node_Id); -- Node2
8900
8901 procedure Set_Limited_View_Installed
8902 (N : Node_Id; Val : Boolean := True); -- Flag18
8903
8904 procedure Set_Limited_Present
8905 (N : Node_Id; Val : Boolean := True); -- Flag17
8906
8907 procedure Set_Literals
8908 (N : Node_Id; Val : List_Id); -- List1
8909
8910 procedure Set_Local_Raise_Not_OK
8911 (N : Node_Id; Val : Boolean := True); -- Flag7
8912
8913 procedure Set_Local_Raise_Statements
8914 (N : Node_Id; Val : Elist_Id); -- Elist1
8915
8916 procedure Set_Loop_Actions
8917 (N : Node_Id; Val : List_Id); -- List2
8918
8919 procedure Set_Loop_Parameter_Specification
8920 (N : Node_Id; Val : Node_Id); -- Node4
8921
8922 procedure Set_Low_Bound
8923 (N : Node_Id; Val : Node_Id); -- Node1
8924
8925 procedure Set_Mod_Clause
8926 (N : Node_Id; Val : Node_Id); -- Node2
8927
8928 procedure Set_More_Ids
8929 (N : Node_Id; Val : Boolean := True); -- Flag5
8930
8931 procedure Set_Must_Be_Byte_Aligned
8932 (N : Node_Id; Val : Boolean := True); -- Flag14
8933
8934 procedure Set_Must_Not_Freeze
8935 (N : Node_Id; Val : Boolean := True); -- Flag8
8936
8937 procedure Set_Must_Not_Override
8938 (N : Node_Id; Val : Boolean := True); -- Flag15
8939
8940 procedure Set_Must_Override
8941 (N : Node_Id; Val : Boolean := True); -- Flag14
8942
8943 procedure Set_Name
8944 (N : Node_Id; Val : Node_Id); -- Node2
8945
8946 procedure Set_Names
8947 (N : Node_Id; Val : List_Id); -- List2
8948
8949 procedure Set_Next_Entity
8950 (N : Node_Id; Val : Node_Id); -- Node2
8951
8952 procedure Set_Next_Named_Actual
8953 (N : Node_Id; Val : Node_Id); -- Node4
8954
8955 procedure Set_Next_Pragma
8956 (N : Node_Id; Val : Node_Id); -- Node1
8957
8958 procedure Set_Next_Rep_Item
8959 (N : Node_Id; Val : Node_Id); -- Node5
8960
8961 procedure Set_Next_Use_Clause
8962 (N : Node_Id; Val : Node_Id); -- Node3
8963
8964 procedure Set_No_Ctrl_Actions
8965 (N : Node_Id; Val : Boolean := True); -- Flag7
8966
8967 procedure Set_No_Elaboration_Check
8968 (N : Node_Id; Val : Boolean := True); -- Flag14
8969
8970 procedure Set_No_Entities_Ref_In_Spec
8971 (N : Node_Id; Val : Boolean := True); -- Flag8
8972
8973 procedure Set_No_Initialization
8974 (N : Node_Id; Val : Boolean := True); -- Flag13
8975
8976 procedure Set_No_Truncation
8977 (N : Node_Id; Val : Boolean := True); -- Flag17
8978
8979 procedure Set_Null_Present
8980 (N : Node_Id; Val : Boolean := True); -- Flag13
8981
8982 procedure Set_Null_Exclusion_Present
8983 (N : Node_Id; Val : Boolean := True); -- Flag11
8984
8985 procedure Set_Null_Exclusion_In_Return_Present
8986 (N : Node_Id; Val : Boolean := True); -- Flag14
8987
8988 procedure Set_Null_Record_Present
8989 (N : Node_Id; Val : Boolean := True); -- Flag17
8990
8991 procedure Set_Object_Definition
8992 (N : Node_Id; Val : Node_Id); -- Node4
8993
8994 procedure Set_Original_Discriminant
8995 (N : Node_Id; Val : Node_Id); -- Node2
8996
8997 procedure Set_Original_Entity
8998 (N : Node_Id; Val : Entity_Id); -- Node2
8999
9000 procedure Set_Others_Discrete_Choices
9001 (N : Node_Id; Val : List_Id); -- List1
9002
9003 procedure Set_Out_Present
9004 (N : Node_Id; Val : Boolean := True); -- Flag17
9005
9006 procedure Set_Parameter_Associations
9007 (N : Node_Id; Val : List_Id); -- List3
9008
9009 procedure Set_Parameter_List_Truncated
9010 (N : Node_Id; Val : Boolean := True); -- Flag17
9011
9012 procedure Set_Parameter_Specifications
9013 (N : Node_Id; Val : List_Id); -- List3
9014
9015 procedure Set_Parameter_Type
9016 (N : Node_Id; Val : Node_Id); -- Node2
9017
9018 procedure Set_Parent_Spec
9019 (N : Node_Id; Val : Node_Id); -- Node4
9020
9021 procedure Set_PPC_Enabled
9022 (N : Node_Id; Val : Boolean := True); -- Flag5
9023
9024 procedure Set_Position
9025 (N : Node_Id; Val : Node_Id); -- Node2
9026
9027 procedure Set_Pragma_Argument_Associations
9028 (N : Node_Id; Val : List_Id); -- List2
9029
9030 procedure Set_Pragma_Identifier
9031 (N : Node_Id; Val : Node_Id); -- Node4
9032
9033 procedure Set_Pragmas_After
9034 (N : Node_Id; Val : List_Id); -- List5
9035
9036 procedure Set_Pragmas_Before
9037 (N : Node_Id; Val : List_Id); -- List4
9038
9039 procedure Set_Prefix
9040 (N : Node_Id; Val : Node_Id); -- Node3
9041
9042 procedure Set_Present_Expr
9043 (N : Node_Id; Val : Uint); -- Uint3
9044
9045 procedure Set_Prev_Ids
9046 (N : Node_Id; Val : Boolean := True); -- Flag6
9047
9048 procedure Set_Print_In_Hex
9049 (N : Node_Id; Val : Boolean := True); -- Flag13
9050
9051 procedure Set_Private_Declarations
9052 (N : Node_Id; Val : List_Id); -- List3
9053
9054 procedure Set_Private_Present
9055 (N : Node_Id; Val : Boolean := True); -- Flag15
9056
9057 procedure Set_Procedure_To_Call
9058 (N : Node_Id; Val : Node_Id); -- Node2
9059
9060 procedure Set_Proper_Body
9061 (N : Node_Id; Val : Node_Id); -- Node1
9062
9063 procedure Set_Protected_Definition
9064 (N : Node_Id; Val : Node_Id); -- Node3
9065
9066 procedure Set_Protected_Present
9067 (N : Node_Id; Val : Boolean := True); -- Flag6
9068
9069 procedure Set_Raises_Constraint_Error
9070 (N : Node_Id; Val : Boolean := True); -- Flag7
9071
9072 procedure Set_Range_Constraint
9073 (N : Node_Id; Val : Node_Id); -- Node4
9074
9075 procedure Set_Range_Expression
9076 (N : Node_Id; Val : Node_Id); -- Node4
9077
9078 procedure Set_Real_Range_Specification
9079 (N : Node_Id; Val : Node_Id); -- Node4
9080
9081 procedure Set_Realval
9082 (N : Node_Id; Val : Ureal); -- Ureal3
9083
9084 procedure Set_Reason
9085 (N : Node_Id; Val : Uint); -- Uint3
9086
9087 procedure Set_Record_Extension_Part
9088 (N : Node_Id; Val : Node_Id); -- Node3
9089
9090 procedure Set_Redundant_Use
9091 (N : Node_Id; Val : Boolean := True); -- Flag13
9092
9093 procedure Set_Renaming_Exception
9094 (N : Node_Id; Val : Node_Id); -- Node2
9095
9096 procedure Set_Result_Definition
9097 (N : Node_Id; Val : Node_Id); -- Node4
9098
9099 procedure Set_Return_Object_Declarations
9100 (N : Node_Id; Val : List_Id); -- List3
9101
9102 procedure Set_Return_Statement_Entity
9103 (N : Node_Id; Val : Node_Id); -- Node5
9104
9105 procedure Set_Reverse_Present
9106 (N : Node_Id; Val : Boolean := True); -- Flag15
9107
9108 procedure Set_Right_Opnd
9109 (N : Node_Id; Val : Node_Id); -- Node3
9110
9111 procedure Set_Rounded_Result
9112 (N : Node_Id; Val : Boolean := True); -- Flag18
9113
9114 procedure Set_Scope
9115 (N : Node_Id; Val : Node_Id); -- Node3
9116
9117 procedure Set_Select_Alternatives
9118 (N : Node_Id; Val : List_Id); -- List1
9119
9120 procedure Set_Selector_Name
9121 (N : Node_Id; Val : Node_Id); -- Node2
9122
9123 procedure Set_Selector_Names
9124 (N : Node_Id; Val : List_Id); -- List1
9125
9126 procedure Set_Shift_Count_OK
9127 (N : Node_Id; Val : Boolean := True); -- Flag4
9128
9129 procedure Set_Source_Type
9130 (N : Node_Id; Val : Entity_Id); -- Node1
9131
9132 procedure Set_Specification
9133 (N : Node_Id; Val : Node_Id); -- Node1
9134
9135 procedure Set_Statements
9136 (N : Node_Id; Val : List_Id); -- List3
9137
9138 procedure Set_Static_Processing_OK
9139 (N : Node_Id; Val : Boolean); -- Flag4
9140
9141 procedure Set_Storage_Pool
9142 (N : Node_Id; Val : Node_Id); -- Node1
9143
9144 procedure Set_Strval
9145 (N : Node_Id; Val : String_Id); -- Str3
9146
9147 procedure Set_Subtype_Indication
9148 (N : Node_Id; Val : Node_Id); -- Node5
9149
9150 procedure Set_Subtype_Mark
9151 (N : Node_Id; Val : Node_Id); -- Node4
9152
9153 procedure Set_Subtype_Marks
9154 (N : Node_Id; Val : List_Id); -- List2
9155
9156 procedure Set_Suppress_Loop_Warnings
9157 (N : Node_Id; Val : Boolean := True); -- Flag17
9158
9159 procedure Set_Synchronized_Present
9160 (N : Node_Id; Val : Boolean := True); -- Flag7
9161
9162 procedure Set_Tagged_Present
9163 (N : Node_Id; Val : Boolean := True); -- Flag15
9164
9165 procedure Set_Target_Type
9166 (N : Node_Id; Val : Entity_Id); -- Node2
9167
9168 procedure Set_Task_Definition
9169 (N : Node_Id; Val : Node_Id); -- Node3
9170
9171 procedure Set_Task_Present
9172 (N : Node_Id; Val : Boolean := True); -- Flag5
9173
9174 procedure Set_Then_Actions
9175 (N : Node_Id; Val : List_Id); -- List2
9176
9177 procedure Set_Then_Statements
9178 (N : Node_Id; Val : List_Id); -- List2
9179
9180 procedure Set_Treat_Fixed_As_Integer
9181 (N : Node_Id; Val : Boolean := True); -- Flag14
9182
9183 procedure Set_Triggering_Alternative
9184 (N : Node_Id; Val : Node_Id); -- Node1
9185
9186 procedure Set_Triggering_Statement
9187 (N : Node_Id; Val : Node_Id); -- Node1
9188
9189 procedure Set_TSS_Elist
9190 (N : Node_Id; Val : Elist_Id); -- Elist3
9191
9192 procedure Set_Type_Definition
9193 (N : Node_Id; Val : Node_Id); -- Node3
9194
9195 procedure Set_Unit
9196 (N : Node_Id; Val : Node_Id); -- Node2
9197
9198 procedure Set_Unknown_Discriminants_Present
9199 (N : Node_Id; Val : Boolean := True); -- Flag13
9200
9201 procedure Set_Unreferenced_In_Spec
9202 (N : Node_Id; Val : Boolean := True); -- Flag7
9203
9204 procedure Set_Variant_Part
9205 (N : Node_Id; Val : Node_Id); -- Node4
9206
9207 procedure Set_Variants
9208 (N : Node_Id; Val : List_Id); -- List1
9209
9210 procedure Set_Visible_Declarations
9211 (N : Node_Id; Val : List_Id); -- List2
9212
9213 procedure Set_Was_Originally_Stub
9214 (N : Node_Id; Val : Boolean := True); -- Flag13
9215
9216 procedure Set_Zero_Cost_Handling
9217 (N : Node_Id; Val : Boolean := True); -- Flag5
9218
9219 -------------------------
9220 -- Iterator Procedures --
9221 -------------------------
9222
9223 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9224
9225 procedure Next_Entity (N : in out Node_Id);
9226 procedure Next_Named_Actual (N : in out Node_Id);
9227 procedure Next_Rep_Item (N : in out Node_Id);
9228 procedure Next_Use_Clause (N : in out Node_Id);
9229
9230 --------------------------------------
9231 -- Logical Access to End_Span Field --
9232 --------------------------------------
9233
9234 function End_Location (N : Node_Id) return Source_Ptr;
9235 -- N is an N_If_Statement or N_Case_Statement node, and this
9236 -- function returns the location of the IF token in the END IF
9237 -- sequence by translating the value of the End_Span field.
9238
9239 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9240 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9241 -- sets the End_Span field to correspond to the given value S. In
9242 -- other words, End_Span is set to the difference between S and
9243 -- Sloc (N), the starting location.
9244
9245 --------------------------------
9246 -- Node_Kind Membership Tests --
9247 --------------------------------
9248
9249 -- The following functions allow a convenient notation for testing whether
9250 -- a Node_Kind value matches any one of a list of possible values. In each
9251 -- case True is returned if the given T argument is equal to any of the V
9252 -- arguments. Note that there is a similar set of functions defined in
9253 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9254
9255 function Nkind_In
9256 (T : Node_Kind;
9257 V1 : Node_Kind;
9258 V2 : Node_Kind) return Boolean;
9259
9260 function Nkind_In
9261 (T : Node_Kind;
9262 V1 : Node_Kind;
9263 V2 : Node_Kind;
9264 V3 : Node_Kind) return Boolean;
9265
9266 function Nkind_In
9267 (T : Node_Kind;
9268 V1 : Node_Kind;
9269 V2 : Node_Kind;
9270 V3 : Node_Kind;
9271 V4 : Node_Kind) return Boolean;
9272
9273 function Nkind_In
9274 (T : Node_Kind;
9275 V1 : Node_Kind;
9276 V2 : Node_Kind;
9277 V3 : Node_Kind;
9278 V4 : Node_Kind;
9279 V5 : Node_Kind) return Boolean;
9280
9281 function Nkind_In
9282 (T : Node_Kind;
9283 V1 : Node_Kind;
9284 V2 : Node_Kind;
9285 V3 : Node_Kind;
9286 V4 : Node_Kind;
9287 V5 : Node_Kind;
9288 V6 : Node_Kind) return Boolean;
9289
9290 function Nkind_In
9291 (T : Node_Kind;
9292 V1 : Node_Kind;
9293 V2 : Node_Kind;
9294 V3 : Node_Kind;
9295 V4 : Node_Kind;
9296 V5 : Node_Kind;
9297 V6 : Node_Kind;
9298 V7 : Node_Kind) return Boolean;
9299
9300 function Nkind_In
9301 (T : Node_Kind;
9302 V1 : Node_Kind;
9303 V2 : Node_Kind;
9304 V3 : Node_Kind;
9305 V4 : Node_Kind;
9306 V5 : Node_Kind;
9307 V6 : Node_Kind;
9308 V7 : Node_Kind;
9309 V8 : Node_Kind) return Boolean;
9310
9311 pragma Inline (Nkind_In);
9312 -- Inline all above functions
9313
9314 -----------------------
9315 -- Utility Functions --
9316 -----------------------
9317
9318 function Pragma_Name (N : Node_Id) return Name_Id;
9319 pragma Inline (Pragma_Name);
9320 -- Convenient function to obtain Chars field of Pragma_Identifier
9321
9322 -----------------------------
9323 -- Syntactic Parent Tables --
9324 -----------------------------
9325
9326 -- These tables show for each node, and for each of the five fields,
9327 -- whether the corresponding field is syntactic (True) or semantic (False).
9328 -- Unused entries are also set to False.
9329
9330 subtype Field_Num is Natural range 1 .. 5;
9331
9332 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9333
9334 -- Following entries can be built automatically from the sinfo sources
9335 -- using the makeisf utility (currently this program is in spitbol).
9336
9337 N_Identifier =>
9338 (1 => True, -- Chars (Name1)
9339 2 => False, -- Original_Discriminant (Node2-Sem)
9340 3 => False, -- unused
9341 4 => False, -- Entity (Node4-Sem)
9342 5 => False), -- Etype (Node5-Sem)
9343
9344 N_Integer_Literal =>
9345 (1 => False, -- unused
9346 2 => False, -- Original_Entity (Node2-Sem)
9347 3 => True, -- Intval (Uint3)
9348 4 => False, -- unused
9349 5 => False), -- Etype (Node5-Sem)
9350
9351 N_Real_Literal =>
9352 (1 => False, -- unused
9353 2 => False, -- Original_Entity (Node2-Sem)
9354 3 => True, -- Realval (Ureal3)
9355 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9356 5 => False), -- Etype (Node5-Sem)
9357
9358 N_Character_Literal =>
9359 (1 => True, -- Chars (Name1)
9360 2 => True, -- Char_Literal_Value (Uint2)
9361 3 => False, -- unused
9362 4 => False, -- Entity (Node4-Sem)
9363 5 => False), -- Etype (Node5-Sem)
9364
9365 N_String_Literal =>
9366 (1 => False, -- unused
9367 2 => False, -- unused
9368 3 => True, -- Strval (Str3)
9369 4 => False, -- unused
9370 5 => False), -- Etype (Node5-Sem)
9371
9372 N_Pragma =>
9373 (1 => False, -- Next_Pragma (Node1-Sem)
9374 2 => True, -- Pragma_Argument_Associations (List2)
9375 3 => True, -- Debug_Statement (Node3)
9376 4 => True, -- Pragma_Identifier (Node4)
9377 5 => False), -- Next_Rep_Item (Node5-Sem)
9378
9379 N_Pragma_Argument_Association =>
9380 (1 => True, -- Chars (Name1)
9381 2 => False, -- unused
9382 3 => True, -- Expression (Node3)
9383 4 => False, -- unused
9384 5 => False), -- unused
9385
9386 N_Defining_Identifier =>
9387 (1 => True, -- Chars (Name1)
9388 2 => False, -- Next_Entity (Node2-Sem)
9389 3 => False, -- Scope (Node3-Sem)
9390 4 => False, -- unused
9391 5 => False), -- Etype (Node5-Sem)
9392
9393 N_Full_Type_Declaration =>
9394 (1 => True, -- Defining_Identifier (Node1)
9395 2 => False, -- unused
9396 3 => True, -- Type_Definition (Node3)
9397 4 => True, -- Discriminant_Specifications (List4)
9398 5 => False), -- unused
9399
9400 N_Subtype_Declaration =>
9401 (1 => True, -- Defining_Identifier (Node1)
9402 2 => False, -- unused
9403 3 => False, -- unused
9404 4 => False, -- Generic_Parent_Type (Node4-Sem)
9405 5 => True), -- Subtype_Indication (Node5)
9406
9407 N_Subtype_Indication =>
9408 (1 => False, -- unused
9409 2 => False, -- unused
9410 3 => True, -- Constraint (Node3)
9411 4 => True, -- Subtype_Mark (Node4)
9412 5 => False), -- Etype (Node5-Sem)
9413
9414 N_Object_Declaration =>
9415 (1 => True, -- Defining_Identifier (Node1)
9416 2 => False, -- Handler_List_Entry (Node2-Sem)
9417 3 => True, -- Expression (Node3)
9418 4 => True, -- Object_Definition (Node4)
9419 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9420
9421 N_Number_Declaration =>
9422 (1 => True, -- Defining_Identifier (Node1)
9423 2 => False, -- unused
9424 3 => True, -- Expression (Node3)
9425 4 => False, -- unused
9426 5 => False), -- unused
9427
9428 N_Derived_Type_Definition =>
9429 (1 => False, -- unused
9430 2 => True, -- Interface_List (List2)
9431 3 => True, -- Record_Extension_Part (Node3)
9432 4 => False, -- unused
9433 5 => True), -- Subtype_Indication (Node5)
9434
9435 N_Range_Constraint =>
9436 (1 => False, -- unused
9437 2 => False, -- unused
9438 3 => False, -- unused
9439 4 => True, -- Range_Expression (Node4)
9440 5 => False), -- unused
9441
9442 N_Range =>
9443 (1 => True, -- Low_Bound (Node1)
9444 2 => True, -- High_Bound (Node2)
9445 3 => False, -- unused
9446 4 => False, -- unused
9447 5 => False), -- Etype (Node5-Sem)
9448
9449 N_Enumeration_Type_Definition =>
9450 (1 => True, -- Literals (List1)
9451 2 => False, -- unused
9452 3 => False, -- unused
9453 4 => True, -- End_Label (Node4)
9454 5 => False), -- unused
9455
9456 N_Defining_Character_Literal =>
9457 (1 => True, -- Chars (Name1)
9458 2 => False, -- Next_Entity (Node2-Sem)
9459 3 => False, -- Scope (Node3-Sem)
9460 4 => False, -- unused
9461 5 => False), -- Etype (Node5-Sem)
9462
9463 N_Signed_Integer_Type_Definition =>
9464 (1 => True, -- Low_Bound (Node1)
9465 2 => True, -- High_Bound (Node2)
9466 3 => False, -- unused
9467 4 => False, -- unused
9468 5 => False), -- unused
9469
9470 N_Modular_Type_Definition =>
9471 (1 => False, -- unused
9472 2 => False, -- unused
9473 3 => True, -- Expression (Node3)
9474 4 => False, -- unused
9475 5 => False), -- unused
9476
9477 N_Floating_Point_Definition =>
9478 (1 => False, -- unused
9479 2 => True, -- Digits_Expression (Node2)
9480 3 => False, -- unused
9481 4 => True, -- Real_Range_Specification (Node4)
9482 5 => False), -- unused
9483
9484 N_Real_Range_Specification =>
9485 (1 => True, -- Low_Bound (Node1)
9486 2 => True, -- High_Bound (Node2)
9487 3 => False, -- unused
9488 4 => False, -- unused
9489 5 => False), -- unused
9490
9491 N_Ordinary_Fixed_Point_Definition =>
9492 (1 => False, -- unused
9493 2 => False, -- unused
9494 3 => True, -- Delta_Expression (Node3)
9495 4 => True, -- Real_Range_Specification (Node4)
9496 5 => False), -- unused
9497
9498 N_Decimal_Fixed_Point_Definition =>
9499 (1 => False, -- unused
9500 2 => True, -- Digits_Expression (Node2)
9501 3 => True, -- Delta_Expression (Node3)
9502 4 => True, -- Real_Range_Specification (Node4)
9503 5 => False), -- unused
9504
9505 N_Digits_Constraint =>
9506 (1 => False, -- unused
9507 2 => True, -- Digits_Expression (Node2)
9508 3 => False, -- unused
9509 4 => True, -- Range_Constraint (Node4)
9510 5 => False), -- unused
9511
9512 N_Unconstrained_Array_Definition =>
9513 (1 => False, -- unused
9514 2 => True, -- Subtype_Marks (List2)
9515 3 => False, -- unused
9516 4 => True, -- Component_Definition (Node4)
9517 5 => False), -- unused
9518
9519 N_Constrained_Array_Definition =>
9520 (1 => False, -- unused
9521 2 => True, -- Discrete_Subtype_Definitions (List2)
9522 3 => False, -- unused
9523 4 => True, -- Component_Definition (Node4)
9524 5 => False), -- unused
9525
9526 N_Component_Definition =>
9527 (1 => False, -- unused
9528 2 => False, -- unused
9529 3 => True, -- Access_Definition (Node3)
9530 4 => False, -- unused
9531 5 => True), -- Subtype_Indication (Node5)
9532
9533 N_Discriminant_Specification =>
9534 (1 => True, -- Defining_Identifier (Node1)
9535 2 => False, -- unused
9536 3 => True, -- Expression (Node3)
9537 4 => False, -- unused
9538 5 => True), -- Discriminant_Type (Node5)
9539
9540 N_Index_Or_Discriminant_Constraint =>
9541 (1 => True, -- Constraints (List1)
9542 2 => False, -- unused
9543 3 => False, -- unused
9544 4 => False, -- unused
9545 5 => False), -- unused
9546
9547 N_Discriminant_Association =>
9548 (1 => True, -- Selector_Names (List1)
9549 2 => False, -- unused
9550 3 => True, -- Expression (Node3)
9551 4 => False, -- unused
9552 5 => False), -- unused
9553
9554 N_Record_Definition =>
9555 (1 => True, -- Component_List (Node1)
9556 2 => True, -- Interface_List (List2)
9557 3 => False, -- unused
9558 4 => True, -- End_Label (Node4)
9559 5 => False), -- unused
9560
9561 N_Component_List =>
9562 (1 => False, -- unused
9563 2 => False, -- unused
9564 3 => True, -- Component_Items (List3)
9565 4 => True, -- Variant_Part (Node4)
9566 5 => False), -- unused
9567
9568 N_Component_Declaration =>
9569 (1 => True, -- Defining_Identifier (Node1)
9570 2 => False, -- unused
9571 3 => True, -- Expression (Node3)
9572 4 => True, -- Component_Definition (Node4)
9573 5 => False), -- unused
9574
9575 N_Variant_Part =>
9576 (1 => True, -- Variants (List1)
9577 2 => True, -- Name (Node2)
9578 3 => False, -- unused
9579 4 => False, -- unused
9580 5 => False), -- unused
9581
9582 N_Variant =>
9583 (1 => True, -- Component_List (Node1)
9584 2 => False, -- Enclosing_Variant (Node2-Sem)
9585 3 => False, -- Present_Expr (Uint3-Sem)
9586 4 => True, -- Discrete_Choices (List4)
9587 5 => False), -- Dcheck_Function (Node5-Sem)
9588
9589 N_Others_Choice =>
9590 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9591 2 => False, -- unused
9592 3 => False, -- unused
9593 4 => False, -- unused
9594 5 => False), -- unused
9595
9596 N_Access_To_Object_Definition =>
9597 (1 => False, -- unused
9598 2 => False, -- unused
9599 3 => False, -- unused
9600 4 => False, -- unused
9601 5 => True), -- Subtype_Indication (Node5)
9602
9603 N_Access_Function_Definition =>
9604 (1 => False, -- unused
9605 2 => False, -- unused
9606 3 => True, -- Parameter_Specifications (List3)
9607 4 => True, -- Result_Definition (Node4)
9608 5 => False), -- unused
9609
9610 N_Access_Procedure_Definition =>
9611 (1 => False, -- unused
9612 2 => False, -- unused
9613 3 => True, -- Parameter_Specifications (List3)
9614 4 => False, -- unused
9615 5 => False), -- unused
9616
9617 N_Access_Definition =>
9618 (1 => False, -- unused
9619 2 => False, -- unused
9620 3 => True, -- Access_To_Subprogram_Definition (Node3)
9621 4 => True, -- Subtype_Mark (Node4)
9622 5 => False), -- unused
9623
9624 N_Incomplete_Type_Declaration =>
9625 (1 => True, -- Defining_Identifier (Node1)
9626 2 => False, -- unused
9627 3 => False, -- unused
9628 4 => True, -- Discriminant_Specifications (List4)
9629 5 => False), -- unused
9630
9631 N_Explicit_Dereference =>
9632 (1 => False, -- unused
9633 2 => False, -- unused
9634 3 => True, -- Prefix (Node3)
9635 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9636 5 => False), -- Etype (Node5-Sem)
9637
9638 N_Indexed_Component =>
9639 (1 => True, -- Expressions (List1)
9640 2 => False, -- unused
9641 3 => True, -- Prefix (Node3)
9642 4 => False, -- unused
9643 5 => False), -- Etype (Node5-Sem)
9644
9645 N_Slice =>
9646 (1 => False, -- unused
9647 2 => False, -- unused
9648 3 => True, -- Prefix (Node3)
9649 4 => True, -- Discrete_Range (Node4)
9650 5 => False), -- Etype (Node5-Sem)
9651
9652 N_Selected_Component =>
9653 (1 => False, -- unused
9654 2 => True, -- Selector_Name (Node2)
9655 3 => True, -- Prefix (Node3)
9656 4 => False, -- unused
9657 5 => False), -- Etype (Node5-Sem)
9658
9659 N_Attribute_Reference =>
9660 (1 => True, -- Expressions (List1)
9661 2 => True, -- Attribute_Name (Name2)
9662 3 => True, -- Prefix (Node3)
9663 4 => False, -- Entity (Node4-Sem)
9664 5 => False), -- Etype (Node5-Sem)
9665
9666 N_Aggregate =>
9667 (1 => True, -- Expressions (List1)
9668 2 => True, -- Component_Associations (List2)
9669 3 => False, -- Aggregate_Bounds (Node3-Sem)
9670 4 => False, -- unused
9671 5 => False), -- Etype (Node5-Sem)
9672
9673 N_Component_Association =>
9674 (1 => True, -- Choices (List1)
9675 2 => False, -- Loop_Actions (List2-Sem)
9676 3 => True, -- Expression (Node3)
9677 4 => False, -- unused
9678 5 => False), -- unused
9679
9680 N_Extension_Aggregate =>
9681 (1 => True, -- Expressions (List1)
9682 2 => True, -- Component_Associations (List2)
9683 3 => True, -- Ancestor_Part (Node3)
9684 4 => False, -- unused
9685 5 => False), -- Etype (Node5-Sem)
9686
9687 N_Null =>
9688 (1 => False, -- unused
9689 2 => False, -- unused
9690 3 => False, -- unused
9691 4 => False, -- unused
9692 5 => False), -- Etype (Node5-Sem)
9693
9694 N_And_Then =>
9695 (1 => False, -- Actions (List1-Sem)
9696 2 => True, -- Left_Opnd (Node2)
9697 3 => True, -- Right_Opnd (Node3)
9698 4 => False, -- unused
9699 5 => False), -- Etype (Node5-Sem)
9700
9701 N_Or_Else =>
9702 (1 => False, -- Actions (List1-Sem)
9703 2 => True, -- Left_Opnd (Node2)
9704 3 => True, -- Right_Opnd (Node3)
9705 4 => False, -- unused
9706 5 => False), -- Etype (Node5-Sem)
9707
9708 N_In =>
9709 (1 => False, -- unused
9710 2 => True, -- Left_Opnd (Node2)
9711 3 => True, -- Right_Opnd (Node3)
9712 4 => False, -- unused
9713 5 => False), -- Etype (Node5-Sem)
9714
9715 N_Not_In =>
9716 (1 => False, -- unused
9717 2 => True, -- Left_Opnd (Node2)
9718 3 => True, -- Right_Opnd (Node3)
9719 4 => False, -- unused
9720 5 => False), -- Etype (Node5-Sem)
9721
9722 N_Op_And =>
9723 (1 => True, -- Chars (Name1)
9724 2 => True, -- Left_Opnd (Node2)
9725 3 => True, -- Right_Opnd (Node3)
9726 4 => False, -- Entity (Node4-Sem)
9727 5 => False), -- Etype (Node5-Sem)
9728
9729 N_Op_Or =>
9730 (1 => True, -- Chars (Name1)
9731 2 => True, -- Left_Opnd (Node2)
9732 3 => True, -- Right_Opnd (Node3)
9733 4 => False, -- Entity (Node4-Sem)
9734 5 => False), -- Etype (Node5-Sem)
9735
9736 N_Op_Xor =>
9737 (1 => True, -- Chars (Name1)
9738 2 => True, -- Left_Opnd (Node2)
9739 3 => True, -- Right_Opnd (Node3)
9740 4 => False, -- Entity (Node4-Sem)
9741 5 => False), -- Etype (Node5-Sem)
9742
9743 N_Op_Eq =>
9744 (1 => True, -- Chars (Name1)
9745 2 => True, -- Left_Opnd (Node2)
9746 3 => True, -- Right_Opnd (Node3)
9747 4 => False, -- Entity (Node4-Sem)
9748 5 => False), -- Etype (Node5-Sem)
9749
9750 N_Op_Ne =>
9751 (1 => True, -- Chars (Name1)
9752 2 => True, -- Left_Opnd (Node2)
9753 3 => True, -- Right_Opnd (Node3)
9754 4 => False, -- Entity (Node4-Sem)
9755 5 => False), -- Etype (Node5-Sem)
9756
9757 N_Op_Lt =>
9758 (1 => True, -- Chars (Name1)
9759 2 => True, -- Left_Opnd (Node2)
9760 3 => True, -- Right_Opnd (Node3)
9761 4 => False, -- Entity (Node4-Sem)
9762 5 => False), -- Etype (Node5-Sem)
9763
9764 N_Op_Le =>
9765 (1 => True, -- Chars (Name1)
9766 2 => True, -- Left_Opnd (Node2)
9767 3 => True, -- Right_Opnd (Node3)
9768 4 => False, -- Entity (Node4-Sem)
9769 5 => False), -- Etype (Node5-Sem)
9770
9771 N_Op_Gt =>
9772 (1 => True, -- Chars (Name1)
9773 2 => True, -- Left_Opnd (Node2)
9774 3 => True, -- Right_Opnd (Node3)
9775 4 => False, -- Entity (Node4-Sem)
9776 5 => False), -- Etype (Node5-Sem)
9777
9778 N_Op_Ge =>
9779 (1 => True, -- Chars (Name1)
9780 2 => True, -- Left_Opnd (Node2)
9781 3 => True, -- Right_Opnd (Node3)
9782 4 => False, -- Entity (Node4-Sem)
9783 5 => False), -- Etype (Node5-Sem)
9784
9785 N_Op_Add =>
9786 (1 => True, -- Chars (Name1)
9787 2 => True, -- Left_Opnd (Node2)
9788 3 => True, -- Right_Opnd (Node3)
9789 4 => False, -- Entity (Node4-Sem)
9790 5 => False), -- Etype (Node5-Sem)
9791
9792 N_Op_Subtract =>
9793 (1 => True, -- Chars (Name1)
9794 2 => True, -- Left_Opnd (Node2)
9795 3 => True, -- Right_Opnd (Node3)
9796 4 => False, -- Entity (Node4-Sem)
9797 5 => False), -- Etype (Node5-Sem)
9798
9799 N_Op_Concat =>
9800 (1 => True, -- Chars (Name1)
9801 2 => True, -- Left_Opnd (Node2)
9802 3 => True, -- Right_Opnd (Node3)
9803 4 => False, -- Entity (Node4-Sem)
9804 5 => False), -- Etype (Node5-Sem)
9805
9806 N_Op_Multiply =>
9807 (1 => True, -- Chars (Name1)
9808 2 => True, -- Left_Opnd (Node2)
9809 3 => True, -- Right_Opnd (Node3)
9810 4 => False, -- Entity (Node4-Sem)
9811 5 => False), -- Etype (Node5-Sem)
9812
9813 N_Op_Divide =>
9814 (1 => True, -- Chars (Name1)
9815 2 => True, -- Left_Opnd (Node2)
9816 3 => True, -- Right_Opnd (Node3)
9817 4 => False, -- Entity (Node4-Sem)
9818 5 => False), -- Etype (Node5-Sem)
9819
9820 N_Op_Mod =>
9821 (1 => True, -- Chars (Name1)
9822 2 => True, -- Left_Opnd (Node2)
9823 3 => True, -- Right_Opnd (Node3)
9824 4 => False, -- Entity (Node4-Sem)
9825 5 => False), -- Etype (Node5-Sem)
9826
9827 N_Op_Rem =>
9828 (1 => True, -- Chars (Name1)
9829 2 => True, -- Left_Opnd (Node2)
9830 3 => True, -- Right_Opnd (Node3)
9831 4 => False, -- Entity (Node4-Sem)
9832 5 => False), -- Etype (Node5-Sem)
9833
9834 N_Op_Expon =>
9835 (1 => True, -- Chars (Name1)
9836 2 => True, -- Left_Opnd (Node2)
9837 3 => True, -- Right_Opnd (Node3)
9838 4 => False, -- Entity (Node4-Sem)
9839 5 => False), -- Etype (Node5-Sem)
9840
9841 N_Op_Plus =>
9842 (1 => True, -- Chars (Name1)
9843 2 => False, -- unused
9844 3 => True, -- Right_Opnd (Node3)
9845 4 => False, -- Entity (Node4-Sem)
9846 5 => False), -- Etype (Node5-Sem)
9847
9848 N_Op_Minus =>
9849 (1 => True, -- Chars (Name1)
9850 2 => False, -- unused
9851 3 => True, -- Right_Opnd (Node3)
9852 4 => False, -- Entity (Node4-Sem)
9853 5 => False), -- Etype (Node5-Sem)
9854
9855 N_Op_Abs =>
9856 (1 => True, -- Chars (Name1)
9857 2 => False, -- unused
9858 3 => True, -- Right_Opnd (Node3)
9859 4 => False, -- Entity (Node4-Sem)
9860 5 => False), -- Etype (Node5-Sem)
9861
9862 N_Op_Not =>
9863 (1 => True, -- Chars (Name1)
9864 2 => False, -- unused
9865 3 => True, -- Right_Opnd (Node3)
9866 4 => False, -- Entity (Node4-Sem)
9867 5 => False), -- Etype (Node5-Sem)
9868
9869 N_Type_Conversion =>
9870 (1 => False, -- unused
9871 2 => False, -- unused
9872 3 => True, -- Expression (Node3)
9873 4 => True, -- Subtype_Mark (Node4)
9874 5 => False), -- Etype (Node5-Sem)
9875
9876 N_Qualified_Expression =>
9877 (1 => False, -- unused
9878 2 => False, -- unused
9879 3 => True, -- Expression (Node3)
9880 4 => True, -- Subtype_Mark (Node4)
9881 5 => False), -- Etype (Node5-Sem)
9882
9883 N_Allocator =>
9884 (1 => False, -- Storage_Pool (Node1-Sem)
9885 2 => False, -- Procedure_To_Call (Node2-Sem)
9886 3 => True, -- Expression (Node3)
9887 4 => False, -- Coextensions (Elist4-Sem)
9888 5 => False), -- Etype (Node5-Sem)
9889
9890 N_Null_Statement =>
9891 (1 => False, -- unused
9892 2 => False, -- unused
9893 3 => False, -- unused
9894 4 => False, -- unused
9895 5 => False), -- unused
9896
9897 N_Label =>
9898 (1 => True, -- Identifier (Node1)
9899 2 => False, -- unused
9900 3 => False, -- unused
9901 4 => False, -- unused
9902 5 => False), -- unused
9903
9904 N_Assignment_Statement =>
9905 (1 => False, -- unused
9906 2 => True, -- Name (Node2)
9907 3 => True, -- Expression (Node3)
9908 4 => False, -- unused
9909 5 => False), -- unused
9910
9911 N_If_Statement =>
9912 (1 => True, -- Condition (Node1)
9913 2 => True, -- Then_Statements (List2)
9914 3 => True, -- Elsif_Parts (List3)
9915 4 => True, -- Else_Statements (List4)
9916 5 => True), -- End_Span (Uint5)
9917
9918 N_Elsif_Part =>
9919 (1 => True, -- Condition (Node1)
9920 2 => True, -- Then_Statements (List2)
9921 3 => False, -- Condition_Actions (List3-Sem)
9922 4 => False, -- unused
9923 5 => False), -- unused
9924
9925 N_Case_Statement =>
9926 (1 => False, -- unused
9927 2 => False, -- unused
9928 3 => True, -- Expression (Node3)
9929 4 => True, -- Alternatives (List4)
9930 5 => True), -- End_Span (Uint5)
9931
9932 N_Case_Statement_Alternative =>
9933 (1 => False, -- unused
9934 2 => False, -- unused
9935 3 => True, -- Statements (List3)
9936 4 => True, -- Discrete_Choices (List4)
9937 5 => False), -- unused
9938
9939 N_Loop_Statement =>
9940 (1 => True, -- Identifier (Node1)
9941 2 => True, -- Iteration_Scheme (Node2)
9942 3 => True, -- Statements (List3)
9943 4 => True, -- End_Label (Node4)
9944 5 => False), -- unused
9945
9946 N_Iteration_Scheme =>
9947 (1 => True, -- Condition (Node1)
9948 2 => False, -- unused
9949 3 => False, -- Condition_Actions (List3-Sem)
9950 4 => True, -- Loop_Parameter_Specification (Node4)
9951 5 => False), -- unused
9952
9953 N_Loop_Parameter_Specification =>
9954 (1 => True, -- Defining_Identifier (Node1)
9955 2 => False, -- unused
9956 3 => False, -- unused
9957 4 => True, -- Discrete_Subtype_Definition (Node4)
9958 5 => False), -- unused
9959
9960 N_Block_Statement =>
9961 (1 => True, -- Identifier (Node1)
9962 2 => True, -- Declarations (List2)
9963 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9964 4 => True, -- Handled_Statement_Sequence (Node4)
9965 5 => False), -- unused
9966
9967 N_Exit_Statement =>
9968 (1 => True, -- Condition (Node1)
9969 2 => True, -- Name (Node2)
9970 3 => False, -- unused
9971 4 => False, -- unused
9972 5 => False), -- unused
9973
9974 N_Goto_Statement =>
9975 (1 => False, -- unused
9976 2 => True, -- Name (Node2)
9977 3 => False, -- unused
9978 4 => False, -- unused
9979 5 => False), -- unused
9980
9981 N_Subprogram_Declaration =>
9982 (1 => True, -- Specification (Node1)
9983 2 => False, -- unused
9984 3 => False, -- Body_To_Inline (Node3-Sem)
9985 4 => False, -- Parent_Spec (Node4-Sem)
9986 5 => False), -- Corresponding_Body (Node5-Sem)
9987
9988 N_Abstract_Subprogram_Declaration =>
9989 (1 => True, -- Specification (Node1)
9990 2 => False, -- unused
9991 3 => False, -- unused
9992 4 => False, -- unused
9993 5 => False), -- unused
9994
9995 N_Function_Specification =>
9996 (1 => True, -- Defining_Unit_Name (Node1)
9997 2 => False, -- Elaboration_Boolean (Node2-Sem)
9998 3 => True, -- Parameter_Specifications (List3)
9999 4 => True, -- Result_Definition (Node4)
10000 5 => False), -- Generic_Parent (Node5-Sem)
10001
10002 N_Procedure_Specification =>
10003 (1 => True, -- Defining_Unit_Name (Node1)
10004 2 => False, -- Elaboration_Boolean (Node2-Sem)
10005 3 => True, -- Parameter_Specifications (List3)
10006 4 => False, -- unused
10007 5 => False), -- Generic_Parent (Node5-Sem)
10008
10009 N_Designator =>
10010 (1 => True, -- Identifier (Node1)
10011 2 => True, -- Name (Node2)
10012 3 => False, -- unused
10013 4 => False, -- unused
10014 5 => False), -- unused
10015
10016 N_Defining_Program_Unit_Name =>
10017 (1 => True, -- Defining_Identifier (Node1)
10018 2 => True, -- Name (Node2)
10019 3 => False, -- unused
10020 4 => False, -- unused
10021 5 => False), -- unused
10022
10023 N_Operator_Symbol =>
10024 (1 => True, -- Chars (Name1)
10025 2 => False, -- unused
10026 3 => True, -- Strval (Str3)
10027 4 => False, -- Entity (Node4-Sem)
10028 5 => False), -- Etype (Node5-Sem)
10029
10030 N_Defining_Operator_Symbol =>
10031 (1 => True, -- Chars (Name1)
10032 2 => False, -- Next_Entity (Node2-Sem)
10033 3 => False, -- Scope (Node3-Sem)
10034 4 => False, -- unused
10035 5 => False), -- Etype (Node5-Sem)
10036
10037 N_Parameter_Specification =>
10038 (1 => True, -- Defining_Identifier (Node1)
10039 2 => True, -- Parameter_Type (Node2)
10040 3 => True, -- Expression (Node3)
10041 4 => False, -- unused
10042 5 => False), -- Default_Expression (Node5-Sem)
10043
10044 N_Subprogram_Body =>
10045 (1 => True, -- Specification (Node1)
10046 2 => True, -- Declarations (List2)
10047 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10048 4 => True, -- Handled_Statement_Sequence (Node4)
10049 5 => False), -- Corresponding_Spec (Node5-Sem)
10050
10051 N_Procedure_Call_Statement =>
10052 (1 => False, -- Controlling_Argument (Node1-Sem)
10053 2 => True, -- Name (Node2)
10054 3 => True, -- Parameter_Associations (List3)
10055 4 => False, -- First_Named_Actual (Node4-Sem)
10056 5 => False), -- Etype (Node5-Sem)
10057
10058 N_Function_Call =>
10059 (1 => False, -- Controlling_Argument (Node1-Sem)
10060 2 => True, -- Name (Node2)
10061 3 => True, -- Parameter_Associations (List3)
10062 4 => False, -- First_Named_Actual (Node4-Sem)
10063 5 => False), -- Etype (Node5-Sem)
10064
10065 N_Parameter_Association =>
10066 (1 => False, -- unused
10067 2 => True, -- Selector_Name (Node2)
10068 3 => True, -- Explicit_Actual_Parameter (Node3)
10069 4 => False, -- Next_Named_Actual (Node4-Sem)
10070 5 => False), -- unused
10071
10072 N_Return_Statement =>
10073 (1 => False, -- Storage_Pool (Node1-Sem)
10074 2 => False, -- Procedure_To_Call (Node2-Sem)
10075 3 => True, -- Expression (Node3)
10076 4 => False, -- unused
10077 5 => False), -- Return_Statement_Entity (Node5-Sem)
10078
10079 N_Extended_Return_Statement =>
10080 (1 => False, -- Storage_Pool (Node1-Sem)
10081 2 => False, -- Procedure_To_Call (Node2-Sem)
10082 3 => True, -- Return_Object_Declarations (List3)
10083 4 => True, -- Handled_Statement_Sequence (Node4)
10084 5 => False), -- Return_Statement_Entity (Node5-Sem)
10085
10086 N_Package_Declaration =>
10087 (1 => True, -- Specification (Node1)
10088 2 => False, -- unused
10089 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10090 4 => False, -- Parent_Spec (Node4-Sem)
10091 5 => False), -- Corresponding_Body (Node5-Sem)
10092
10093 N_Package_Specification =>
10094 (1 => True, -- Defining_Unit_Name (Node1)
10095 2 => True, -- Visible_Declarations (List2)
10096 3 => True, -- Private_Declarations (List3)
10097 4 => True, -- End_Label (Node4)
10098 5 => False), -- Generic_Parent (Node5-Sem)
10099
10100 N_Package_Body =>
10101 (1 => True, -- Defining_Unit_Name (Node1)
10102 2 => True, -- Declarations (List2)
10103 3 => False, -- unused
10104 4 => True, -- Handled_Statement_Sequence (Node4)
10105 5 => False), -- Corresponding_Spec (Node5-Sem)
10106
10107 N_Private_Type_Declaration =>
10108 (1 => True, -- Defining_Identifier (Node1)
10109 2 => False, -- unused
10110 3 => False, -- unused
10111 4 => True, -- Discriminant_Specifications (List4)
10112 5 => False), -- unused
10113
10114 N_Private_Extension_Declaration =>
10115 (1 => True, -- Defining_Identifier (Node1)
10116 2 => True, -- Interface_List (List2)
10117 3 => False, -- unused
10118 4 => True, -- Discriminant_Specifications (List4)
10119 5 => True), -- Subtype_Indication (Node5)
10120
10121 N_Use_Package_Clause =>
10122 (1 => False, -- unused
10123 2 => True, -- Names (List2)
10124 3 => False, -- Next_Use_Clause (Node3-Sem)
10125 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10126 5 => False), -- unused
10127
10128 N_Use_Type_Clause =>
10129 (1 => False, -- unused
10130 2 => True, -- Subtype_Marks (List2)
10131 3 => False, -- Next_Use_Clause (Node3-Sem)
10132 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10133 5 => False), -- unused
10134
10135 N_Object_Renaming_Declaration =>
10136 (1 => True, -- Defining_Identifier (Node1)
10137 2 => True, -- Name (Node2)
10138 3 => True, -- Access_Definition (Node3)
10139 4 => True, -- Subtype_Mark (Node4)
10140 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10141
10142 N_Exception_Renaming_Declaration =>
10143 (1 => True, -- Defining_Identifier (Node1)
10144 2 => True, -- Name (Node2)
10145 3 => False, -- unused
10146 4 => False, -- unused
10147 5 => False), -- unused
10148
10149 N_Package_Renaming_Declaration =>
10150 (1 => True, -- Defining_Unit_Name (Node1)
10151 2 => True, -- Name (Node2)
10152 3 => False, -- unused
10153 4 => False, -- Parent_Spec (Node4-Sem)
10154 5 => False), -- unused
10155
10156 N_Subprogram_Renaming_Declaration =>
10157 (1 => True, -- Specification (Node1)
10158 2 => True, -- Name (Node2)
10159 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10160 4 => False, -- Parent_Spec (Node4-Sem)
10161 5 => False), -- Corresponding_Spec (Node5-Sem)
10162
10163 N_Generic_Package_Renaming_Declaration =>
10164 (1 => True, -- Defining_Unit_Name (Node1)
10165 2 => True, -- Name (Node2)
10166 3 => False, -- unused
10167 4 => False, -- Parent_Spec (Node4-Sem)
10168 5 => False), -- unused
10169
10170 N_Generic_Procedure_Renaming_Declaration =>
10171 (1 => True, -- Defining_Unit_Name (Node1)
10172 2 => True, -- Name (Node2)
10173 3 => False, -- unused
10174 4 => False, -- Parent_Spec (Node4-Sem)
10175 5 => False), -- unused
10176
10177 N_Generic_Function_Renaming_Declaration =>
10178 (1 => True, -- Defining_Unit_Name (Node1)
10179 2 => True, -- Name (Node2)
10180 3 => False, -- unused
10181 4 => False, -- Parent_Spec (Node4-Sem)
10182 5 => False), -- unused
10183
10184 N_Task_Type_Declaration =>
10185 (1 => True, -- Defining_Identifier (Node1)
10186 2 => True, -- Interface_List (List2)
10187 3 => True, -- Task_Definition (Node3)
10188 4 => True, -- Discriminant_Specifications (List4)
10189 5 => False), -- Corresponding_Body (Node5-Sem)
10190
10191 N_Single_Task_Declaration =>
10192 (1 => True, -- Defining_Identifier (Node1)
10193 2 => True, -- Interface_List (List2)
10194 3 => True, -- Task_Definition (Node3)
10195 4 => False, -- unused
10196 5 => False), -- unused
10197
10198 N_Task_Definition =>
10199 (1 => False, -- unused
10200 2 => True, -- Visible_Declarations (List2)
10201 3 => True, -- Private_Declarations (List3)
10202 4 => True, -- End_Label (Node4)
10203 5 => False), -- unused
10204
10205 N_Task_Body =>
10206 (1 => True, -- Defining_Identifier (Node1)
10207 2 => True, -- Declarations (List2)
10208 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10209 4 => True, -- Handled_Statement_Sequence (Node4)
10210 5 => False), -- Corresponding_Spec (Node5-Sem)
10211
10212 N_Protected_Type_Declaration =>
10213 (1 => True, -- Defining_Identifier (Node1)
10214 2 => True, -- Interface_List (List2)
10215 3 => True, -- Protected_Definition (Node3)
10216 4 => True, -- Discriminant_Specifications (List4)
10217 5 => False), -- Corresponding_Body (Node5-Sem)
10218
10219 N_Single_Protected_Declaration =>
10220 (1 => True, -- Defining_Identifier (Node1)
10221 2 => True, -- Interface_List (List2)
10222 3 => True, -- Protected_Definition (Node3)
10223 4 => False, -- unused
10224 5 => False), -- unused
10225
10226 N_Protected_Definition =>
10227 (1 => False, -- unused
10228 2 => True, -- Visible_Declarations (List2)
10229 3 => True, -- Private_Declarations (List3)
10230 4 => True, -- End_Label (Node4)
10231 5 => False), -- unused
10232
10233 N_Protected_Body =>
10234 (1 => True, -- Defining_Identifier (Node1)
10235 2 => True, -- Declarations (List2)
10236 3 => False, -- unused
10237 4 => True, -- End_Label (Node4)
10238 5 => False), -- Corresponding_Spec (Node5-Sem)
10239
10240 N_Entry_Declaration =>
10241 (1 => True, -- Defining_Identifier (Node1)
10242 2 => False, -- unused
10243 3 => True, -- Parameter_Specifications (List3)
10244 4 => True, -- Discrete_Subtype_Definition (Node4)
10245 5 => False), -- Corresponding_Body (Node5-Sem)
10246
10247 N_Accept_Statement =>
10248 (1 => True, -- Entry_Direct_Name (Node1)
10249 2 => True, -- Declarations (List2)
10250 3 => True, -- Parameter_Specifications (List3)
10251 4 => True, -- Handled_Statement_Sequence (Node4)
10252 5 => True), -- Entry_Index (Node5)
10253
10254 N_Entry_Body =>
10255 (1 => True, -- Defining_Identifier (Node1)
10256 2 => True, -- Declarations (List2)
10257 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10258 4 => True, -- Handled_Statement_Sequence (Node4)
10259 5 => True), -- Entry_Body_Formal_Part (Node5)
10260
10261 N_Entry_Body_Formal_Part =>
10262 (1 => True, -- Condition (Node1)
10263 2 => False, -- unused
10264 3 => True, -- Parameter_Specifications (List3)
10265 4 => True, -- Entry_Index_Specification (Node4)
10266 5 => False), -- unused
10267
10268 N_Entry_Index_Specification =>
10269 (1 => True, -- Defining_Identifier (Node1)
10270 2 => False, -- unused
10271 3 => False, -- unused
10272 4 => True, -- Discrete_Subtype_Definition (Node4)
10273 5 => False), -- unused
10274
10275 N_Entry_Call_Statement =>
10276 (1 => False, -- unused
10277 2 => True, -- Name (Node2)
10278 3 => True, -- Parameter_Associations (List3)
10279 4 => False, -- First_Named_Actual (Node4-Sem)
10280 5 => False), -- unused
10281
10282 N_Requeue_Statement =>
10283 (1 => False, -- unused
10284 2 => True, -- Name (Node2)
10285 3 => False, -- unused
10286 4 => False, -- unused
10287 5 => False), -- unused
10288
10289 N_Delay_Until_Statement =>
10290 (1 => False, -- unused
10291 2 => False, -- unused
10292 3 => True, -- Expression (Node3)
10293 4 => False, -- unused
10294 5 => False), -- unused
10295
10296 N_Delay_Relative_Statement =>
10297 (1 => False, -- unused
10298 2 => False, -- unused
10299 3 => True, -- Expression (Node3)
10300 4 => False, -- unused
10301 5 => False), -- unused
10302
10303 N_Selective_Accept =>
10304 (1 => True, -- Select_Alternatives (List1)
10305 2 => False, -- unused
10306 3 => False, -- unused
10307 4 => True, -- Else_Statements (List4)
10308 5 => False), -- unused
10309
10310 N_Accept_Alternative =>
10311 (1 => True, -- Condition (Node1)
10312 2 => True, -- Accept_Statement (Node2)
10313 3 => True, -- Statements (List3)
10314 4 => True, -- Pragmas_Before (List4)
10315 5 => False), -- Accept_Handler_Records (List5-Sem)
10316
10317 N_Delay_Alternative =>
10318 (1 => True, -- Condition (Node1)
10319 2 => True, -- Delay_Statement (Node2)
10320 3 => True, -- Statements (List3)
10321 4 => True, -- Pragmas_Before (List4)
10322 5 => False), -- unused
10323
10324 N_Terminate_Alternative =>
10325 (1 => True, -- Condition (Node1)
10326 2 => False, -- unused
10327 3 => False, -- unused
10328 4 => True, -- Pragmas_Before (List4)
10329 5 => True), -- Pragmas_After (List5)
10330
10331 N_Timed_Entry_Call =>
10332 (1 => True, -- Entry_Call_Alternative (Node1)
10333 2 => False, -- unused
10334 3 => False, -- unused
10335 4 => True, -- Delay_Alternative (Node4)
10336 5 => False), -- unused
10337
10338 N_Entry_Call_Alternative =>
10339 (1 => True, -- Entry_Call_Statement (Node1)
10340 2 => False, -- unused
10341 3 => True, -- Statements (List3)
10342 4 => True, -- Pragmas_Before (List4)
10343 5 => False), -- unused
10344
10345 N_Conditional_Entry_Call =>
10346 (1 => True, -- Entry_Call_Alternative (Node1)
10347 2 => False, -- unused
10348 3 => False, -- unused
10349 4 => True, -- Else_Statements (List4)
10350 5 => False), -- unused
10351
10352 N_Asynchronous_Select =>
10353 (1 => True, -- Triggering_Alternative (Node1)
10354 2 => True, -- Abortable_Part (Node2)
10355 3 => False, -- unused
10356 4 => False, -- unused
10357 5 => False), -- unused
10358
10359 N_Triggering_Alternative =>
10360 (1 => True, -- Triggering_Statement (Node1)
10361 2 => False, -- unused
10362 3 => True, -- Statements (List3)
10363 4 => True, -- Pragmas_Before (List4)
10364 5 => False), -- unused
10365
10366 N_Abortable_Part =>
10367 (1 => False, -- unused
10368 2 => False, -- unused
10369 3 => True, -- Statements (List3)
10370 4 => False, -- unused
10371 5 => False), -- unused
10372
10373 N_Abort_Statement =>
10374 (1 => False, -- unused
10375 2 => True, -- Names (List2)
10376 3 => False, -- unused
10377 4 => False, -- unused
10378 5 => False), -- unused
10379
10380 N_Compilation_Unit =>
10381 (1 => True, -- Context_Items (List1)
10382 2 => True, -- Unit (Node2)
10383 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10384 4 => False, -- Library_Unit (Node4-Sem)
10385 5 => True), -- Aux_Decls_Node (Node5)
10386
10387 N_Compilation_Unit_Aux =>
10388 (1 => True, -- Actions (List1)
10389 2 => True, -- Declarations (List2)
10390 3 => False, -- unused
10391 4 => True, -- Config_Pragmas (List4)
10392 5 => True), -- Pragmas_After (List5)
10393
10394 N_With_Clause =>
10395 (1 => False, -- unused
10396 2 => True, -- Name (Node2)
10397 3 => False, -- unused
10398 4 => False, -- Library_Unit (Node4-Sem)
10399 5 => False), -- Corresponding_Spec (Node5-Sem)
10400
10401 N_Subprogram_Body_Stub =>
10402 (1 => True, -- Specification (Node1)
10403 2 => False, -- unused
10404 3 => False, -- unused
10405 4 => False, -- Library_Unit (Node4-Sem)
10406 5 => False), -- Corresponding_Body (Node5-Sem)
10407
10408 N_Package_Body_Stub =>
10409 (1 => True, -- Defining_Identifier (Node1)
10410 2 => False, -- unused
10411 3 => False, -- unused
10412 4 => False, -- Library_Unit (Node4-Sem)
10413 5 => False), -- Corresponding_Body (Node5-Sem)
10414
10415 N_Task_Body_Stub =>
10416 (1 => True, -- Defining_Identifier (Node1)
10417 2 => False, -- unused
10418 3 => False, -- unused
10419 4 => False, -- Library_Unit (Node4-Sem)
10420 5 => False), -- Corresponding_Body (Node5-Sem)
10421
10422 N_Protected_Body_Stub =>
10423 (1 => True, -- Defining_Identifier (Node1)
10424 2 => False, -- unused
10425 3 => False, -- unused
10426 4 => False, -- Library_Unit (Node4-Sem)
10427 5 => False), -- Corresponding_Body (Node5-Sem)
10428
10429 N_Subunit =>
10430 (1 => True, -- Proper_Body (Node1)
10431 2 => True, -- Name (Node2)
10432 3 => False, -- Corresponding_Stub (Node3-Sem)
10433 4 => False, -- unused
10434 5 => False), -- unused
10435
10436 N_Exception_Declaration =>
10437 (1 => True, -- Defining_Identifier (Node1)
10438 2 => False, -- unused
10439 3 => False, -- Expression (Node3-Sem)
10440 4 => False, -- unused
10441 5 => False), -- unused
10442
10443 N_Handled_Sequence_Of_Statements =>
10444 (1 => True, -- At_End_Proc (Node1)
10445 2 => False, -- First_Real_Statement (Node2-Sem)
10446 3 => True, -- Statements (List3)
10447 4 => True, -- End_Label (Node4)
10448 5 => True), -- Exception_Handlers (List5)
10449
10450 N_Exception_Handler =>
10451 (1 => False, -- Local_Raise_Statements (Elist1)
10452 2 => True, -- Choice_Parameter (Node2)
10453 3 => True, -- Statements (List3)
10454 4 => True, -- Exception_Choices (List4)
10455 5 => False), -- Exception_Label (Node5)
10456
10457 N_Raise_Statement =>
10458 (1 => False, -- unused
10459 2 => True, -- Name (Node2)
10460 3 => True, -- Expression (Node3)
10461 4 => False, -- unused
10462 5 => False), -- unused
10463
10464 N_Generic_Subprogram_Declaration =>
10465 (1 => True, -- Specification (Node1)
10466 2 => True, -- Generic_Formal_Declarations (List2)
10467 3 => False, -- unused
10468 4 => False, -- Parent_Spec (Node4-Sem)
10469 5 => False), -- Corresponding_Body (Node5-Sem)
10470
10471 N_Generic_Package_Declaration =>
10472 (1 => True, -- Specification (Node1)
10473 2 => True, -- Generic_Formal_Declarations (List2)
10474 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10475 4 => False, -- Parent_Spec (Node4-Sem)
10476 5 => False), -- Corresponding_Body (Node5-Sem)
10477
10478 N_Package_Instantiation =>
10479 (1 => True, -- Defining_Unit_Name (Node1)
10480 2 => True, -- Name (Node2)
10481 3 => True, -- Generic_Associations (List3)
10482 4 => False, -- Parent_Spec (Node4-Sem)
10483 5 => False), -- Instance_Spec (Node5-Sem)
10484
10485 N_Procedure_Instantiation =>
10486 (1 => True, -- Defining_Unit_Name (Node1)
10487 2 => True, -- Name (Node2)
10488 3 => True, -- Generic_Associations (List3)
10489 4 => False, -- Parent_Spec (Node4-Sem)
10490 5 => False), -- Instance_Spec (Node5-Sem)
10491
10492 N_Function_Instantiation =>
10493 (1 => True, -- Defining_Unit_Name (Node1)
10494 2 => True, -- Name (Node2)
10495 3 => True, -- Generic_Associations (List3)
10496 4 => False, -- Parent_Spec (Node4-Sem)
10497 5 => False), -- Instance_Spec (Node5-Sem)
10498
10499 N_Generic_Association =>
10500 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10501 2 => True, -- Selector_Name (Node2)
10502 3 => False, -- unused
10503 4 => False, -- unused
10504 5 => False), -- unused
10505
10506 N_Formal_Object_Declaration =>
10507 (1 => True, -- Defining_Identifier (Node1)
10508 2 => False, -- unused
10509 3 => True, -- Access_Definition (Node3)
10510 4 => True, -- Subtype_Mark (Node4)
10511 5 => True), -- Default_Expression (Node5)
10512
10513 N_Formal_Type_Declaration =>
10514 (1 => True, -- Defining_Identifier (Node1)
10515 2 => False, -- unused
10516 3 => True, -- Formal_Type_Definition (Node3)
10517 4 => True, -- Discriminant_Specifications (List4)
10518 5 => False), -- unused
10519
10520 N_Formal_Private_Type_Definition =>
10521 (1 => False, -- unused
10522 2 => False, -- unused
10523 3 => False, -- unused
10524 4 => False, -- unused
10525 5 => False), -- unused
10526
10527 N_Formal_Derived_Type_Definition =>
10528 (1 => False, -- unused
10529 2 => True, -- Interface_List (List2)
10530 3 => False, -- unused
10531 4 => True, -- Subtype_Mark (Node4)
10532 5 => False), -- unused
10533
10534 N_Formal_Discrete_Type_Definition =>
10535 (1 => False, -- unused
10536 2 => False, -- unused
10537 3 => False, -- unused
10538 4 => False, -- unused
10539 5 => False), -- unused
10540
10541 N_Formal_Signed_Integer_Type_Definition =>
10542 (1 => False, -- unused
10543 2 => False, -- unused
10544 3 => False, -- unused
10545 4 => False, -- unused
10546 5 => False), -- unused
10547
10548 N_Formal_Modular_Type_Definition =>
10549 (1 => False, -- unused
10550 2 => False, -- unused
10551 3 => False, -- unused
10552 4 => False, -- unused
10553 5 => False), -- unused
10554
10555 N_Formal_Floating_Point_Definition =>
10556 (1 => False, -- unused
10557 2 => False, -- unused
10558 3 => False, -- unused
10559 4 => False, -- unused
10560 5 => False), -- unused
10561
10562 N_Formal_Ordinary_Fixed_Point_Definition =>
10563 (1 => False, -- unused
10564 2 => False, -- unused
10565 3 => False, -- unused
10566 4 => False, -- unused
10567 5 => False), -- unused
10568
10569 N_Formal_Decimal_Fixed_Point_Definition =>
10570 (1 => False, -- unused
10571 2 => False, -- unused
10572 3 => False, -- unused
10573 4 => False, -- unused
10574 5 => False), -- unused
10575
10576 N_Formal_Concrete_Subprogram_Declaration =>
10577 (1 => True, -- Specification (Node1)
10578 2 => True, -- Default_Name (Node2)
10579 3 => False, -- unused
10580 4 => False, -- unused
10581 5 => False), -- unused
10582
10583 N_Formal_Abstract_Subprogram_Declaration =>
10584 (1 => True, -- Specification (Node1)
10585 2 => True, -- Default_Name (Node2)
10586 3 => False, -- unused
10587 4 => False, -- unused
10588 5 => False), -- unused
10589
10590 N_Formal_Package_Declaration =>
10591 (1 => True, -- Defining_Identifier (Node1)
10592 2 => True, -- Name (Node2)
10593 3 => True, -- Generic_Associations (List3)
10594 4 => False, -- unused
10595 5 => False), -- Instance_Spec (Node5-Sem)
10596
10597 N_Attribute_Definition_Clause =>
10598 (1 => True, -- Chars (Name1)
10599 2 => True, -- Name (Node2)
10600 3 => True, -- Expression (Node3)
10601 4 => False, -- unused
10602 5 => False), -- Next_Rep_Item (Node5-Sem)
10603
10604 N_Enumeration_Representation_Clause =>
10605 (1 => True, -- Identifier (Node1)
10606 2 => False, -- unused
10607 3 => True, -- Array_Aggregate (Node3)
10608 4 => False, -- unused
10609 5 => False), -- Next_Rep_Item (Node5-Sem)
10610
10611 N_Record_Representation_Clause =>
10612 (1 => True, -- Identifier (Node1)
10613 2 => True, -- Mod_Clause (Node2)
10614 3 => True, -- Component_Clauses (List3)
10615 4 => False, -- unused
10616 5 => False), -- Next_Rep_Item (Node5-Sem)
10617
10618 N_Component_Clause =>
10619 (1 => True, -- Component_Name (Node1)
10620 2 => True, -- Position (Node2)
10621 3 => True, -- First_Bit (Node3)
10622 4 => True, -- Last_Bit (Node4)
10623 5 => False), -- unused
10624
10625 N_Code_Statement =>
10626 (1 => False, -- unused
10627 2 => False, -- unused
10628 3 => True, -- Expression (Node3)
10629 4 => False, -- unused
10630 5 => False), -- unused
10631
10632 N_Op_Rotate_Left =>
10633 (1 => True, -- Chars (Name1)
10634 2 => True, -- Left_Opnd (Node2)
10635 3 => True, -- Right_Opnd (Node3)
10636 4 => False, -- Entity (Node4-Sem)
10637 5 => False), -- Etype (Node5-Sem)
10638
10639 N_Op_Rotate_Right =>
10640 (1 => True, -- Chars (Name1)
10641 2 => True, -- Left_Opnd (Node2)
10642 3 => True, -- Right_Opnd (Node3)
10643 4 => False, -- Entity (Node4-Sem)
10644 5 => False), -- Etype (Node5-Sem)
10645
10646 N_Op_Shift_Left =>
10647 (1 => True, -- Chars (Name1)
10648 2 => True, -- Left_Opnd (Node2)
10649 3 => True, -- Right_Opnd (Node3)
10650 4 => False, -- Entity (Node4-Sem)
10651 5 => False), -- Etype (Node5-Sem)
10652
10653 N_Op_Shift_Right_Arithmetic =>
10654 (1 => True, -- Chars (Name1)
10655 2 => True, -- Left_Opnd (Node2)
10656 3 => True, -- Right_Opnd (Node3)
10657 4 => False, -- Entity (Node4-Sem)
10658 5 => False), -- Etype (Node5-Sem)
10659
10660 N_Op_Shift_Right =>
10661 (1 => True, -- Chars (Name1)
10662 2 => True, -- Left_Opnd (Node2)
10663 3 => True, -- Right_Opnd (Node3)
10664 4 => False, -- Entity (Node4-Sem)
10665 5 => False), -- Etype (Node5-Sem)
10666
10667 N_Delta_Constraint =>
10668 (1 => False, -- unused
10669 2 => False, -- unused
10670 3 => True, -- Delta_Expression (Node3)
10671 4 => True, -- Range_Constraint (Node4)
10672 5 => False), -- unused
10673
10674 N_At_Clause =>
10675 (1 => True, -- Identifier (Node1)
10676 2 => False, -- unused
10677 3 => True, -- Expression (Node3)
10678 4 => False, -- unused
10679 5 => False), -- unused
10680
10681 N_Mod_Clause =>
10682 (1 => False, -- unused
10683 2 => False, -- unused
10684 3 => True, -- Expression (Node3)
10685 4 => True, -- Pragmas_Before (List4)
10686 5 => False), -- unused
10687
10688 N_Conditional_Expression =>
10689 (1 => True, -- Expressions (List1)
10690 2 => False, -- Then_Actions (List2-Sem)
10691 3 => False, -- Else_Actions (List3-Sem)
10692 4 => False, -- unused
10693 5 => False), -- Etype (Node5-Sem)
10694
10695 N_Expanded_Name =>
10696 (1 => True, -- Chars (Name1)
10697 2 => True, -- Selector_Name (Node2)
10698 3 => True, -- Prefix (Node3)
10699 4 => False, -- Entity (Node4-Sem)
10700 5 => False), -- Etype (Node5-Sem)
10701
10702 N_Free_Statement =>
10703 (1 => False, -- Storage_Pool (Node1-Sem)
10704 2 => False, -- Procedure_To_Call (Node2-Sem)
10705 3 => True, -- Expression (Node3)
10706 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10707 5 => False), -- unused
10708
10709 N_Freeze_Entity =>
10710 (1 => True, -- Actions (List1)
10711 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10712 3 => False, -- TSS_Elist (Elist3-Sem)
10713 4 => False, -- Entity (Node4-Sem)
10714 5 => False), -- First_Subtype_Link (Node5-Sem)
10715
10716 N_Implicit_Label_Declaration =>
10717 (1 => True, -- Defining_Identifier (Node1)
10718 2 => False, -- Label_Construct (Node2-Sem)
10719 3 => False, -- unused
10720 4 => False, -- unused
10721 5 => False), -- unused
10722
10723 N_Itype_Reference =>
10724 (1 => False, -- Itype (Node1-Sem)
10725 2 => False, -- unused
10726 3 => False, -- unused
10727 4 => False, -- unused
10728 5 => False), -- unused
10729
10730 N_Raise_Constraint_Error =>
10731 (1 => True, -- Condition (Node1)
10732 2 => False, -- unused
10733 3 => True, -- Reason (Uint3)
10734 4 => False, -- unused
10735 5 => False), -- Etype (Node5-Sem)
10736
10737 N_Raise_Program_Error =>
10738 (1 => True, -- Condition (Node1)
10739 2 => False, -- unused
10740 3 => True, -- Reason (Uint3)
10741 4 => False, -- unused
10742 5 => False), -- Etype (Node5-Sem)
10743
10744 N_Raise_Storage_Error =>
10745 (1 => True, -- Condition (Node1)
10746 2 => False, -- unused
10747 3 => True, -- Reason (Uint3)
10748 4 => False, -- unused
10749 5 => False), -- Etype (Node5-Sem)
10750
10751 N_Push_Constraint_Error_Label =>
10752 (1 => False, -- unused
10753 2 => False, -- unused
10754 3 => False, -- unused
10755 4 => False, -- unused
10756 5 => False), -- unused
10757
10758 N_Push_Program_Error_Label =>
10759 (1 => False, -- Exception_Label
10760 2 => False, -- unused
10761 3 => False, -- unused
10762 4 => False, -- unused
10763 5 => False), -- Exception_Label
10764
10765 N_Push_Storage_Error_Label =>
10766 (1 => False, -- Exception_Label
10767 2 => False, -- unused
10768 3 => False, -- unused
10769 4 => False, -- unused
10770 5 => False), -- Exception_Label
10771
10772 N_Pop_Constraint_Error_Label =>
10773 (1 => False, -- unused
10774 2 => False, -- unused
10775 3 => False, -- unused
10776 4 => False, -- unused
10777 5 => False), -- unused
10778
10779 N_Pop_Program_Error_Label =>
10780 (1 => False, -- unused
10781 2 => False, -- unused
10782 3 => False, -- unused
10783 4 => False, -- unused
10784 5 => False), -- unused
10785
10786 N_Pop_Storage_Error_Label =>
10787 (1 => False, -- unused
10788 2 => False, -- unused
10789 3 => False, -- unused
10790 4 => False, -- unused
10791 5 => False), -- unused
10792
10793 N_Reference =>
10794 (1 => False, -- unused
10795 2 => False, -- unused
10796 3 => True, -- Prefix (Node3)
10797 4 => False, -- unused
10798 5 => False), -- Etype (Node5-Sem)
10799
10800 N_Subprogram_Info =>
10801 (1 => True, -- Identifier (Node1)
10802 2 => False, -- unused
10803 3 => False, -- unused
10804 4 => False, -- unused
10805 5 => False), -- Etype (Node5-Sem)
10806
10807 N_Unchecked_Expression =>
10808 (1 => False, -- unused
10809 2 => False, -- unused
10810 3 => True, -- Expression (Node3)
10811 4 => False, -- unused
10812 5 => False), -- Etype (Node5-Sem)
10813
10814 N_Unchecked_Type_Conversion =>
10815 (1 => False, -- unused
10816 2 => False, -- unused
10817 3 => True, -- Expression (Node3)
10818 4 => True, -- Subtype_Mark (Node4)
10819 5 => False), -- Etype (Node5-Sem)
10820
10821 N_Validate_Unchecked_Conversion =>
10822 (1 => False, -- Source_Type (Node1-Sem)
10823 2 => False, -- Target_Type (Node2-Sem)
10824 3 => False, -- unused
10825 4 => False, -- unused
10826 5 => False), -- unused
10827
10828 -- End of inserted output from makeisf program
10829
10830 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10831 -- field for debugging purposes, they are not really syntactic fields, so
10832 -- we mark all fields as unused.
10833
10834 N_Empty =>
10835 (1 => False, -- unused
10836 2 => False, -- unused
10837 3 => False, -- unused
10838 4 => False, -- unused
10839 5 => False), -- unused
10840
10841 N_Error =>
10842 (1 => False, -- unused
10843 2 => False, -- unused
10844 3 => False, -- unused
10845 4 => False, -- unused
10846 5 => False), -- unused
10847
10848 N_Unused_At_Start =>
10849 (1 => False, -- unused
10850 2 => False, -- unused
10851 3 => False, -- unused
10852 4 => False, -- unused
10853 5 => False), -- unused
10854
10855 N_Unused_At_End =>
10856 (1 => False, -- unused
10857 2 => False, -- unused
10858 3 => False, -- unused
10859 4 => False, -- unused
10860 5 => False)); -- unused
10861
10862 --------------------
10863 -- Inline Pragmas --
10864 --------------------
10865
10866 pragma Inline (ABE_Is_Certain);
10867 pragma Inline (Abort_Present);
10868 pragma Inline (Abortable_Part);
10869 pragma Inline (Abstract_Present);
10870 pragma Inline (Accept_Handler_Records);
10871 pragma Inline (Accept_Statement);
10872 pragma Inline (Access_Definition);
10873 pragma Inline (Access_To_Subprogram_Definition);
10874 pragma Inline (Access_Types_To_Process);
10875 pragma Inline (Actions);
10876 pragma Inline (Activation_Chain_Entity);
10877 pragma Inline (Acts_As_Spec);
10878 pragma Inline (Actual_Designated_Subtype);
10879 pragma Inline (Address_Warning_Posted);
10880 pragma Inline (Aggregate_Bounds);
10881 pragma Inline (Aliased_Present);
10882 pragma Inline (All_Others);
10883 pragma Inline (All_Present);
10884 pragma Inline (Alternatives);
10885 pragma Inline (Ancestor_Part);
10886 pragma Inline (Array_Aggregate);
10887 pragma Inline (Assignment_OK);
10888 pragma Inline (Associated_Node);
10889 pragma Inline (At_End_Proc);
10890 pragma Inline (Attribute_Name);
10891 pragma Inline (Aux_Decls_Node);
10892 pragma Inline (Backwards_OK);
10893 pragma Inline (Bad_Is_Detected);
10894 pragma Inline (Body_To_Inline);
10895 pragma Inline (Body_Required);
10896 pragma Inline (By_Ref);
10897 pragma Inline (Box_Present);
10898 pragma Inline (Char_Literal_Value);
10899 pragma Inline (Chars);
10900 pragma Inline (Check_Address_Alignment);
10901 pragma Inline (Choice_Parameter);
10902 pragma Inline (Choices);
10903 pragma Inline (Coextensions);
10904 pragma Inline (Comes_From_Extended_Return_Statement);
10905 pragma Inline (Compile_Time_Known_Aggregate);
10906 pragma Inline (Component_Associations);
10907 pragma Inline (Component_Clauses);
10908 pragma Inline (Component_Definition);
10909 pragma Inline (Component_Items);
10910 pragma Inline (Component_List);
10911 pragma Inline (Component_Name);
10912 pragma Inline (Condition);
10913 pragma Inline (Condition_Actions);
10914 pragma Inline (Config_Pragmas);
10915 pragma Inline (Constant_Present);
10916 pragma Inline (Constraint);
10917 pragma Inline (Constraints);
10918 pragma Inline (Context_Installed);
10919 pragma Inline (Context_Items);
10920 pragma Inline (Controlling_Argument);
10921 pragma Inline (Conversion_OK);
10922 pragma Inline (Corresponding_Body);
10923 pragma Inline (Corresponding_Formal_Spec);
10924 pragma Inline (Corresponding_Generic_Association);
10925 pragma Inline (Corresponding_Integer_Value);
10926 pragma Inline (Corresponding_Spec);
10927 pragma Inline (Corresponding_Stub);
10928 pragma Inline (Dcheck_Function);
10929 pragma Inline (Debug_Statement);
10930 pragma Inline (Declarations);
10931 pragma Inline (Default_Expression);
10932 pragma Inline (Default_Name);
10933 pragma Inline (Defining_Identifier);
10934 pragma Inline (Defining_Unit_Name);
10935 pragma Inline (Delay_Alternative);
10936 pragma Inline (Delay_Statement);
10937 pragma Inline (Delta_Expression);
10938 pragma Inline (Digits_Expression);
10939 pragma Inline (Discr_Check_Funcs_Built);
10940 pragma Inline (Discrete_Choices);
10941 pragma Inline (Discrete_Range);
10942 pragma Inline (Discrete_Subtype_Definition);
10943 pragma Inline (Discrete_Subtype_Definitions);
10944 pragma Inline (Discriminant_Specifications);
10945 pragma Inline (Discriminant_Type);
10946 pragma Inline (Do_Accessibility_Check);
10947 pragma Inline (Do_Discriminant_Check);
10948 pragma Inline (Do_Length_Check);
10949 pragma Inline (Do_Division_Check);
10950 pragma Inline (Do_Overflow_Check);
10951 pragma Inline (Do_Range_Check);
10952 pragma Inline (Do_Storage_Check);
10953 pragma Inline (Do_Tag_Check);
10954 pragma Inline (Elaborate_Present);
10955 pragma Inline (Elaborate_All_Desirable);
10956 pragma Inline (Elaborate_All_Present);
10957 pragma Inline (Elaborate_Desirable);
10958 pragma Inline (Elaboration_Boolean);
10959 pragma Inline (Else_Actions);
10960 pragma Inline (Else_Statements);
10961 pragma Inline (Elsif_Parts);
10962 pragma Inline (Enclosing_Variant);
10963 pragma Inline (End_Label);
10964 pragma Inline (End_Span);
10965 pragma Inline (Entity);
10966 pragma Inline (Entity_Or_Associated_Node);
10967 pragma Inline (Entry_Body_Formal_Part);
10968 pragma Inline (Entry_Call_Alternative);
10969 pragma Inline (Entry_Call_Statement);
10970 pragma Inline (Entry_Direct_Name);
10971 pragma Inline (Entry_Index);
10972 pragma Inline (Entry_Index_Specification);
10973 pragma Inline (Etype);
10974 pragma Inline (Exception_Choices);
10975 pragma Inline (Exception_Handlers);
10976 pragma Inline (Exception_Junk);
10977 pragma Inline (Exception_Label);
10978 pragma Inline (Expansion_Delayed);
10979 pragma Inline (Explicit_Actual_Parameter);
10980 pragma Inline (Explicit_Generic_Actual_Parameter);
10981 pragma Inline (Expression);
10982 pragma Inline (Expressions);
10983 pragma Inline (First_Bit);
10984 pragma Inline (First_Inlined_Subprogram);
10985 pragma Inline (First_Name);
10986 pragma Inline (First_Named_Actual);
10987 pragma Inline (First_Real_Statement);
10988 pragma Inline (First_Subtype_Link);
10989 pragma Inline (Float_Truncate);
10990 pragma Inline (Formal_Type_Definition);
10991 pragma Inline (Forwards_OK);
10992 pragma Inline (From_At_End);
10993 pragma Inline (From_At_Mod);
10994 pragma Inline (From_Default);
10995 pragma Inline (Generic_Associations);
10996 pragma Inline (Generic_Formal_Declarations);
10997 pragma Inline (Generic_Parent);
10998 pragma Inline (Generic_Parent_Type);
10999 pragma Inline (Handled_Statement_Sequence);
11000 pragma Inline (Handler_List_Entry);
11001 pragma Inline (Has_Created_Identifier);
11002 pragma Inline (Has_Dynamic_Length_Check);
11003 pragma Inline (Has_Dynamic_Range_Check);
11004 pragma Inline (Has_Init_Expression);
11005 pragma Inline (Has_Local_Raise);
11006 pragma Inline (Has_Self_Reference);
11007 pragma Inline (Has_No_Elaboration_Code);
11008 pragma Inline (Has_Priority_Pragma);
11009 pragma Inline (Has_Private_View);
11010 pragma Inline (Has_Relative_Deadline_Pragma);
11011 pragma Inline (Has_Storage_Size_Pragma);
11012 pragma Inline (Has_Task_Info_Pragma);
11013 pragma Inline (Has_Task_Name_Pragma);
11014 pragma Inline (Has_Wide_Character);
11015 pragma Inline (Hidden_By_Use_Clause);
11016 pragma Inline (High_Bound);
11017 pragma Inline (Identifier);
11018 pragma Inline (Implicit_With);
11019 pragma Inline (Interface_List);
11020 pragma Inline (Interface_Present);
11021 pragma Inline (Includes_Infinities);
11022 pragma Inline (In_Present);
11023 pragma Inline (Instance_Spec);
11024 pragma Inline (Intval);
11025 pragma Inline (Is_Asynchronous_Call_Block);
11026 pragma Inline (Is_Component_Left_Opnd);
11027 pragma Inline (Is_Component_Right_Opnd);
11028 pragma Inline (Is_Controlling_Actual);
11029 pragma Inline (Is_Dynamic_Coextension);
11030 pragma Inline (Is_Entry_Barrier_Function);
11031 pragma Inline (Is_Expanded_Build_In_Place_Call);
11032 pragma Inline (Is_Folded_In_Parser);
11033 pragma Inline (Is_In_Discriminant_Check);
11034 pragma Inline (Is_Machine_Number);
11035 pragma Inline (Is_Null_Loop);
11036 pragma Inline (Is_Overloaded);
11037 pragma Inline (Is_Power_Of_2_For_Shift);
11038 pragma Inline (Is_Protected_Subprogram_Body);
11039 pragma Inline (Is_Static_Coextension);
11040 pragma Inline (Is_Static_Expression);
11041 pragma Inline (Is_Subprogram_Descriptor);
11042 pragma Inline (Is_Task_Allocation_Block);
11043 pragma Inline (Is_Task_Master);
11044 pragma Inline (Iteration_Scheme);
11045 pragma Inline (Itype);
11046 pragma Inline (Kill_Range_Check);
11047 pragma Inline (Last_Bit);
11048 pragma Inline (Last_Name);
11049 pragma Inline (Library_Unit);
11050 pragma Inline (Label_Construct);
11051 pragma Inline (Left_Opnd);
11052 pragma Inline (Limited_View_Installed);
11053 pragma Inline (Limited_Present);
11054 pragma Inline (Literals);
11055 pragma Inline (Local_Raise_Not_OK);
11056 pragma Inline (Local_Raise_Statements);
11057 pragma Inline (Loop_Actions);
11058 pragma Inline (Loop_Parameter_Specification);
11059 pragma Inline (Low_Bound);
11060 pragma Inline (Mod_Clause);
11061 pragma Inline (More_Ids);
11062 pragma Inline (Must_Be_Byte_Aligned);
11063 pragma Inline (Must_Not_Freeze);
11064 pragma Inline (Must_Not_Override);
11065 pragma Inline (Must_Override);
11066 pragma Inline (Name);
11067 pragma Inline (Names);
11068 pragma Inline (Next_Entity);
11069 pragma Inline (Next_Named_Actual);
11070 pragma Inline (Next_Pragma);
11071 pragma Inline (Next_Rep_Item);
11072 pragma Inline (Next_Use_Clause);
11073 pragma Inline (No_Ctrl_Actions);
11074 pragma Inline (No_Elaboration_Check);
11075 pragma Inline (No_Entities_Ref_In_Spec);
11076 pragma Inline (No_Initialization);
11077 pragma Inline (No_Truncation);
11078 pragma Inline (Null_Present);
11079 pragma Inline (Null_Exclusion_Present);
11080 pragma Inline (Null_Exclusion_In_Return_Present);
11081 pragma Inline (Null_Record_Present);
11082 pragma Inline (Object_Definition);
11083 pragma Inline (Original_Discriminant);
11084 pragma Inline (Original_Entity);
11085 pragma Inline (Others_Discrete_Choices);
11086 pragma Inline (Out_Present);
11087 pragma Inline (Parameter_Associations);
11088 pragma Inline (Parameter_Specifications);
11089 pragma Inline (Parameter_List_Truncated);
11090 pragma Inline (Parameter_Type);
11091 pragma Inline (Parent_Spec);
11092 pragma Inline (PPC_Enabled);
11093 pragma Inline (Position);
11094 pragma Inline (Pragma_Argument_Associations);
11095 pragma Inline (Pragma_Identifier);
11096 pragma Inline (Pragmas_After);
11097 pragma Inline (Pragmas_Before);
11098 pragma Inline (Prefix);
11099 pragma Inline (Present_Expr);
11100 pragma Inline (Prev_Ids);
11101 pragma Inline (Print_In_Hex);
11102 pragma Inline (Private_Declarations);
11103 pragma Inline (Private_Present);
11104 pragma Inline (Procedure_To_Call);
11105 pragma Inline (Proper_Body);
11106 pragma Inline (Protected_Definition);
11107 pragma Inline (Protected_Present);
11108 pragma Inline (Raises_Constraint_Error);
11109 pragma Inline (Range_Constraint);
11110 pragma Inline (Range_Expression);
11111 pragma Inline (Real_Range_Specification);
11112 pragma Inline (Realval);
11113 pragma Inline (Reason);
11114 pragma Inline (Record_Extension_Part);
11115 pragma Inline (Redundant_Use);
11116 pragma Inline (Renaming_Exception);
11117 pragma Inline (Result_Definition);
11118 pragma Inline (Return_Object_Declarations);
11119 pragma Inline (Return_Statement_Entity);
11120 pragma Inline (Reverse_Present);
11121 pragma Inline (Right_Opnd);
11122 pragma Inline (Rounded_Result);
11123 pragma Inline (Scope);
11124 pragma Inline (Select_Alternatives);
11125 pragma Inline (Selector_Name);
11126 pragma Inline (Selector_Names);
11127 pragma Inline (Shift_Count_OK);
11128 pragma Inline (Source_Type);
11129 pragma Inline (Specification);
11130 pragma Inline (Statements);
11131 pragma Inline (Static_Processing_OK);
11132 pragma Inline (Storage_Pool);
11133 pragma Inline (Strval);
11134 pragma Inline (Subtype_Indication);
11135 pragma Inline (Subtype_Mark);
11136 pragma Inline (Subtype_Marks);
11137 pragma Inline (Suppress_Loop_Warnings);
11138 pragma Inline (Synchronized_Present);
11139 pragma Inline (Tagged_Present);
11140 pragma Inline (Target_Type);
11141 pragma Inline (Task_Definition);
11142 pragma Inline (Task_Present);
11143 pragma Inline (Then_Actions);
11144 pragma Inline (Then_Statements);
11145 pragma Inline (Triggering_Alternative);
11146 pragma Inline (Triggering_Statement);
11147 pragma Inline (Treat_Fixed_As_Integer);
11148 pragma Inline (TSS_Elist);
11149 pragma Inline (Type_Definition);
11150 pragma Inline (Unit);
11151 pragma Inline (Unknown_Discriminants_Present);
11152 pragma Inline (Unreferenced_In_Spec);
11153 pragma Inline (Variant_Part);
11154 pragma Inline (Variants);
11155 pragma Inline (Visible_Declarations);
11156 pragma Inline (Was_Originally_Stub);
11157 pragma Inline (Zero_Cost_Handling);
11158
11159 pragma Inline (Set_ABE_Is_Certain);
11160 pragma Inline (Set_Abort_Present);
11161 pragma Inline (Set_Abortable_Part);
11162 pragma Inline (Set_Abstract_Present);
11163 pragma Inline (Set_Accept_Handler_Records);
11164 pragma Inline (Set_Accept_Statement);
11165 pragma Inline (Set_Access_Definition);
11166 pragma Inline (Set_Access_To_Subprogram_Definition);
11167 pragma Inline (Set_Access_Types_To_Process);
11168 pragma Inline (Set_Actions);
11169 pragma Inline (Set_Activation_Chain_Entity);
11170 pragma Inline (Set_Acts_As_Spec);
11171 pragma Inline (Set_Actual_Designated_Subtype);
11172 pragma Inline (Set_Address_Warning_Posted);
11173 pragma Inline (Set_Aggregate_Bounds);
11174 pragma Inline (Set_Aliased_Present);
11175 pragma Inline (Set_All_Others);
11176 pragma Inline (Set_All_Present);
11177 pragma Inline (Set_Alternatives);
11178 pragma Inline (Set_Ancestor_Part);
11179 pragma Inline (Set_Array_Aggregate);
11180 pragma Inline (Set_Assignment_OK);
11181 pragma Inline (Set_Associated_Node);
11182 pragma Inline (Set_At_End_Proc);
11183 pragma Inline (Set_Attribute_Name);
11184 pragma Inline (Set_Aux_Decls_Node);
11185 pragma Inline (Set_Backwards_OK);
11186 pragma Inline (Set_Bad_Is_Detected);
11187 pragma Inline (Set_Body_To_Inline);
11188 pragma Inline (Set_Body_Required);
11189 pragma Inline (Set_By_Ref);
11190 pragma Inline (Set_Box_Present);
11191 pragma Inline (Set_Char_Literal_Value);
11192 pragma Inline (Set_Chars);
11193 pragma Inline (Set_Check_Address_Alignment);
11194 pragma Inline (Set_Choice_Parameter);
11195 pragma Inline (Set_Choices);
11196 pragma Inline (Set_Coextensions);
11197 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11198 pragma Inline (Set_Compile_Time_Known_Aggregate);
11199 pragma Inline (Set_Component_Associations);
11200 pragma Inline (Set_Component_Clauses);
11201 pragma Inline (Set_Component_Definition);
11202 pragma Inline (Set_Component_Items);
11203 pragma Inline (Set_Component_List);
11204 pragma Inline (Set_Component_Name);
11205 pragma Inline (Set_Condition);
11206 pragma Inline (Set_Condition_Actions);
11207 pragma Inline (Set_Config_Pragmas);
11208 pragma Inline (Set_Constant_Present);
11209 pragma Inline (Set_Constraint);
11210 pragma Inline (Set_Constraints);
11211 pragma Inline (Set_Context_Installed);
11212 pragma Inline (Set_Context_Items);
11213 pragma Inline (Set_Controlling_Argument);
11214 pragma Inline (Set_Conversion_OK);
11215 pragma Inline (Set_Corresponding_Body);
11216 pragma Inline (Set_Corresponding_Formal_Spec);
11217 pragma Inline (Set_Corresponding_Generic_Association);
11218 pragma Inline (Set_Corresponding_Integer_Value);
11219 pragma Inline (Set_Corresponding_Spec);
11220 pragma Inline (Set_Corresponding_Stub);
11221 pragma Inline (Set_Dcheck_Function);
11222 pragma Inline (Set_Debug_Statement);
11223 pragma Inline (Set_Declarations);
11224 pragma Inline (Set_Default_Expression);
11225 pragma Inline (Set_Default_Name);
11226 pragma Inline (Set_Defining_Identifier);
11227 pragma Inline (Set_Defining_Unit_Name);
11228 pragma Inline (Set_Delay_Alternative);
11229 pragma Inline (Set_Delay_Statement);
11230 pragma Inline (Set_Delta_Expression);
11231 pragma Inline (Set_Digits_Expression);
11232 pragma Inline (Set_Discr_Check_Funcs_Built);
11233 pragma Inline (Set_Discrete_Choices);
11234 pragma Inline (Set_Discrete_Range);
11235 pragma Inline (Set_Discrete_Subtype_Definition);
11236 pragma Inline (Set_Discrete_Subtype_Definitions);
11237 pragma Inline (Set_Discriminant_Specifications);
11238 pragma Inline (Set_Discriminant_Type);
11239 pragma Inline (Set_Do_Accessibility_Check);
11240 pragma Inline (Set_Do_Discriminant_Check);
11241 pragma Inline (Set_Do_Length_Check);
11242 pragma Inline (Set_Do_Division_Check);
11243 pragma Inline (Set_Do_Overflow_Check);
11244 pragma Inline (Set_Do_Range_Check);
11245 pragma Inline (Set_Do_Storage_Check);
11246 pragma Inline (Set_Do_Tag_Check);
11247 pragma Inline (Set_Elaborate_Present);
11248 pragma Inline (Set_Elaborate_All_Desirable);
11249 pragma Inline (Set_Elaborate_All_Present);
11250 pragma Inline (Set_Elaborate_Desirable);
11251 pragma Inline (Set_Elaboration_Boolean);
11252 pragma Inline (Set_Else_Actions);
11253 pragma Inline (Set_Else_Statements);
11254 pragma Inline (Set_Elsif_Parts);
11255 pragma Inline (Set_Enclosing_Variant);
11256 pragma Inline (Set_End_Label);
11257 pragma Inline (Set_End_Span);
11258 pragma Inline (Set_Entity);
11259 pragma Inline (Set_Entry_Body_Formal_Part);
11260 pragma Inline (Set_Entry_Call_Alternative);
11261 pragma Inline (Set_Entry_Call_Statement);
11262 pragma Inline (Set_Entry_Direct_Name);
11263 pragma Inline (Set_Entry_Index);
11264 pragma Inline (Set_Entry_Index_Specification);
11265 pragma Inline (Set_Etype);
11266 pragma Inline (Set_Exception_Choices);
11267 pragma Inline (Set_Exception_Handlers);
11268 pragma Inline (Set_Exception_Junk);
11269 pragma Inline (Set_Exception_Label);
11270 pragma Inline (Set_Expansion_Delayed);
11271 pragma Inline (Set_Explicit_Actual_Parameter);
11272 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11273 pragma Inline (Set_Expression);
11274 pragma Inline (Set_Expressions);
11275 pragma Inline (Set_First_Bit);
11276 pragma Inline (Set_First_Inlined_Subprogram);
11277 pragma Inline (Set_First_Name);
11278 pragma Inline (Set_First_Named_Actual);
11279 pragma Inline (Set_First_Real_Statement);
11280 pragma Inline (Set_First_Subtype_Link);
11281 pragma Inline (Set_Float_Truncate);
11282 pragma Inline (Set_Formal_Type_Definition);
11283 pragma Inline (Set_Forwards_OK);
11284 pragma Inline (Set_From_At_End);
11285 pragma Inline (Set_From_At_Mod);
11286 pragma Inline (Set_From_Default);
11287 pragma Inline (Set_Generic_Associations);
11288 pragma Inline (Set_Generic_Formal_Declarations);
11289 pragma Inline (Set_Generic_Parent);
11290 pragma Inline (Set_Generic_Parent_Type);
11291 pragma Inline (Set_Handled_Statement_Sequence);
11292 pragma Inline (Set_Handler_List_Entry);
11293 pragma Inline (Set_Has_Created_Identifier);
11294 pragma Inline (Set_Has_Dynamic_Length_Check);
11295 pragma Inline (Set_Has_Init_Expression);
11296 pragma Inline (Set_Has_Local_Raise);
11297 pragma Inline (Set_Has_Dynamic_Range_Check);
11298 pragma Inline (Set_Has_No_Elaboration_Code);
11299 pragma Inline (Set_Has_Priority_Pragma);
11300 pragma Inline (Set_Has_Private_View);
11301 pragma Inline (Set_Has_Relative_Deadline_Pragma);
11302 pragma Inline (Set_Has_Storage_Size_Pragma);
11303 pragma Inline (Set_Has_Task_Info_Pragma);
11304 pragma Inline (Set_Has_Task_Name_Pragma);
11305 pragma Inline (Set_Has_Wide_Character);
11306 pragma Inline (Set_Hidden_By_Use_Clause);
11307 pragma Inline (Set_High_Bound);
11308 pragma Inline (Set_Identifier);
11309 pragma Inline (Set_Implicit_With);
11310 pragma Inline (Set_Includes_Infinities);
11311 pragma Inline (Set_Interface_List);
11312 pragma Inline (Set_Interface_Present);
11313 pragma Inline (Set_In_Present);
11314 pragma Inline (Set_Instance_Spec);
11315 pragma Inline (Set_Intval);
11316 pragma Inline (Set_Is_Asynchronous_Call_Block);
11317 pragma Inline (Set_Is_Component_Left_Opnd);
11318 pragma Inline (Set_Is_Component_Right_Opnd);
11319 pragma Inline (Set_Is_Controlling_Actual);
11320 pragma Inline (Set_Is_Dynamic_Coextension);
11321 pragma Inline (Set_Is_Entry_Barrier_Function);
11322 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11323 pragma Inline (Set_Is_Folded_In_Parser);
11324 pragma Inline (Set_Is_In_Discriminant_Check);
11325 pragma Inline (Set_Is_Machine_Number);
11326 pragma Inline (Set_Is_Null_Loop);
11327 pragma Inline (Set_Is_Overloaded);
11328 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11329 pragma Inline (Set_Is_Protected_Subprogram_Body);
11330 pragma Inline (Set_Has_Self_Reference);
11331 pragma Inline (Set_Is_Static_Coextension);
11332 pragma Inline (Set_Is_Static_Expression);
11333 pragma Inline (Set_Is_Subprogram_Descriptor);
11334 pragma Inline (Set_Is_Task_Allocation_Block);
11335 pragma Inline (Set_Is_Task_Master);
11336 pragma Inline (Set_Iteration_Scheme);
11337 pragma Inline (Set_Itype);
11338 pragma Inline (Set_Kill_Range_Check);
11339 pragma Inline (Set_Last_Bit);
11340 pragma Inline (Set_Last_Name);
11341 pragma Inline (Set_Library_Unit);
11342 pragma Inline (Set_Label_Construct);
11343 pragma Inline (Set_Left_Opnd);
11344 pragma Inline (Set_Limited_View_Installed);
11345 pragma Inline (Set_Limited_Present);
11346 pragma Inline (Set_Literals);
11347 pragma Inline (Set_Local_Raise_Not_OK);
11348 pragma Inline (Set_Local_Raise_Statements);
11349 pragma Inline (Set_Loop_Actions);
11350 pragma Inline (Set_Loop_Parameter_Specification);
11351 pragma Inline (Set_Low_Bound);
11352 pragma Inline (Set_Mod_Clause);
11353 pragma Inline (Set_More_Ids);
11354 pragma Inline (Set_Must_Be_Byte_Aligned);
11355 pragma Inline (Set_Must_Not_Freeze);
11356 pragma Inline (Set_Must_Not_Override);
11357 pragma Inline (Set_Must_Override);
11358 pragma Inline (Set_Name);
11359 pragma Inline (Set_Names);
11360 pragma Inline (Set_Next_Entity);
11361 pragma Inline (Set_Next_Named_Actual);
11362 pragma Inline (Set_Next_Pragma);
11363 pragma Inline (Set_Next_Rep_Item);
11364 pragma Inline (Set_Next_Use_Clause);
11365 pragma Inline (Set_No_Ctrl_Actions);
11366 pragma Inline (Set_No_Elaboration_Check);
11367 pragma Inline (Set_No_Entities_Ref_In_Spec);
11368 pragma Inline (Set_No_Initialization);
11369 pragma Inline (Set_No_Truncation);
11370 pragma Inline (Set_Null_Present);
11371 pragma Inline (Set_Null_Exclusion_Present);
11372 pragma Inline (Set_Null_Exclusion_In_Return_Present);
11373 pragma Inline (Set_Null_Record_Present);
11374 pragma Inline (Set_Object_Definition);
11375 pragma Inline (Set_Original_Discriminant);
11376 pragma Inline (Set_Original_Entity);
11377 pragma Inline (Set_Others_Discrete_Choices);
11378 pragma Inline (Set_Out_Present);
11379 pragma Inline (Set_Parameter_Associations);
11380 pragma Inline (Set_Parameter_Specifications);
11381 pragma Inline (Set_Parameter_List_Truncated);
11382 pragma Inline (Set_Parameter_Type);
11383 pragma Inline (Set_Parent_Spec);
11384 pragma Inline (Set_PPC_Enabled);
11385 pragma Inline (Set_Position);
11386 pragma Inline (Set_Pragma_Argument_Associations);
11387 pragma Inline (Set_Pragma_Identifier);
11388 pragma Inline (Set_Pragmas_After);
11389 pragma Inline (Set_Pragmas_Before);
11390 pragma Inline (Set_Prefix);
11391 pragma Inline (Set_Present_Expr);
11392 pragma Inline (Set_Prev_Ids);
11393 pragma Inline (Set_Print_In_Hex);
11394 pragma Inline (Set_Private_Declarations);
11395 pragma Inline (Set_Private_Present);
11396 pragma Inline (Set_Procedure_To_Call);
11397 pragma Inline (Set_Proper_Body);
11398 pragma Inline (Set_Protected_Definition);
11399 pragma Inline (Set_Protected_Present);
11400 pragma Inline (Set_Raises_Constraint_Error);
11401 pragma Inline (Set_Range_Constraint);
11402 pragma Inline (Set_Range_Expression);
11403 pragma Inline (Set_Real_Range_Specification);
11404 pragma Inline (Set_Realval);
11405 pragma Inline (Set_Reason);
11406 pragma Inline (Set_Record_Extension_Part);
11407 pragma Inline (Set_Redundant_Use);
11408 pragma Inline (Set_Renaming_Exception);
11409 pragma Inline (Set_Result_Definition);
11410 pragma Inline (Set_Return_Object_Declarations);
11411 pragma Inline (Set_Reverse_Present);
11412 pragma Inline (Set_Right_Opnd);
11413 pragma Inline (Set_Rounded_Result);
11414 pragma Inline (Set_Scope);
11415 pragma Inline (Set_Select_Alternatives);
11416 pragma Inline (Set_Selector_Name);
11417 pragma Inline (Set_Selector_Names);
11418 pragma Inline (Set_Shift_Count_OK);
11419 pragma Inline (Set_Source_Type);
11420 pragma Inline (Set_Specification);
11421 pragma Inline (Set_Statements);
11422 pragma Inline (Set_Static_Processing_OK);
11423 pragma Inline (Set_Storage_Pool);
11424 pragma Inline (Set_Strval);
11425 pragma Inline (Set_Subtype_Indication);
11426 pragma Inline (Set_Subtype_Mark);
11427 pragma Inline (Set_Subtype_Marks);
11428 pragma Inline (Set_Suppress_Loop_Warnings);
11429 pragma Inline (Set_Synchronized_Present);
11430 pragma Inline (Set_Tagged_Present);
11431 pragma Inline (Set_Target_Type);
11432 pragma Inline (Set_Task_Definition);
11433 pragma Inline (Set_Task_Present);
11434 pragma Inline (Set_Then_Actions);
11435 pragma Inline (Set_Then_Statements);
11436 pragma Inline (Set_Triggering_Alternative);
11437 pragma Inline (Set_Triggering_Statement);
11438 pragma Inline (Set_Treat_Fixed_As_Integer);
11439 pragma Inline (Set_TSS_Elist);
11440 pragma Inline (Set_Type_Definition);
11441 pragma Inline (Set_Unit);
11442 pragma Inline (Set_Unknown_Discriminants_Present);
11443 pragma Inline (Set_Unreferenced_In_Spec);
11444 pragma Inline (Set_Variant_Part);
11445 pragma Inline (Set_Variants);
11446 pragma Inline (Set_Visible_Declarations);
11447 pragma Inline (Set_Was_Originally_Stub);
11448 pragma Inline (Set_Zero_Cost_Handling);
11449
11450 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11451 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11452 -- should refer to N_Simple_Return_Statement.
11453
11454 end Sinfo;