gimplify.c (gimplify_modify_expr_rhs): Do not do a direct assignment from the constru...
[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 design, and is
37 -- 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. This is the case if either
625 -- the operands do not overlap, or they may overlap, but if they do,
626 -- then the left operand is at a higher address than the right operand.
627 --
628 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
629 -- means that the front end could not determine that either direction is
630 -- definitely safe, and a runtime check may be required if the backend
631 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
632 -- set, it means that the front end can assure no overlap of operands.
633
634 -- Body_To_Inline (Node3-Sem)
635 -- present in subprogram declarations. Denotes analyzed but unexpanded
636 -- body of subprogram, to be used when inlining calls. Present when the
637 -- subprogram has an Inline pragma and inlining is enabled. If the
638 -- declaration is completed by a renaming_as_body, and the renamed en-
639 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
640 -- which is used directly in later calls to the original subprogram.
641
642 -- Body_Required (Flag13-Sem)
643 -- A flag that appears in the N_Compilation_Unit node indicating that
644 -- the corresponding unit requires a body. For the package case, this
645 -- indicates that a completion is required. In Ada 95, if the flag is not
646 -- set for the package case, then a body may not be present. In Ada 83,
647 -- if the flag is not set for the package case, then body is optional.
648 -- For a subprogram declaration, the flag is set except in the case where
649 -- a pragma Import or Interface applies, in which case no body is
650 -- permitted (in Ada 83 or Ada 95).
651
652 -- By_Ref (Flag5-Sem)
653 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
654 -- this flag is set when the returned expression is already allocated on
655 -- the secondary stack and thus the result is passed by reference rather
656 -- than copied another time.
657
658 -- Check_Address_Alignment (Flag11-Sem)
659 -- A flag present in N_Attribute_Definition clause for a 'Address
660 -- attribute definition. This flag is set if a dynamic check should be
661 -- generated at the freeze point for the entity to which this address
662 -- clause applies. The reason that we need this flag is that we want to
663 -- check for range checks being suppressed at the point where the
664 -- attribute definition clause is given, rather than testing this at the
665 -- freeze point.
666
667 -- Coextensions (Elist4-Sem)
668 -- Present in allocators nodes. Points to list of allocators for the
669 -- access discriminants of the allocated object.
670
671 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
672 -- Present in N_Simple_Return_Statement nodes. True if this node was
673 -- constructed as part of the N_Extended_Return_Statement expansion.
674 -- .
675
676 -- Compile_Time_Known_Aggregate (Flag18-Sem)
677 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
678 -- evaluated at compile time without raising constraint error. Such
679 -- aggregates can be passed as is to Gigi without any expansion. See
680 -- Sem_Aggr for the specific conditions under which an aggregate has this
681 -- flag set. See also the flag Static_Processing_OK.
682
683 -- Condition_Actions (List3-Sem)
684 -- This field appears in else-if nodes and in the iteration scheme node
685 -- for while loops. This field is only used during semantic processing to
686 -- temporarily hold actions inserted into the tree. In the tree passed
687 -- to gigi, the condition actions field is always set to No_List. For
688 -- details on how this field is used, see the routine Insert_Actions in
689 -- package Exp_Util, and also the expansion routines for the relevant
690 -- nodes.
691
692 -- Controlling_Argument (Node1-Sem)
693 -- This field is set in procedure and function call nodes if the call
694 -- is a dispatching call (it is Empty for a non-dispatching call). It
695 -- indicates the source of the call's controlling tag. For procedure
696 -- calls, the Controlling_Argument is one of the actuals. For function
697 -- that has a dispatching result, it is an entity in the context of the
698 -- call that can provide a tag, or else it is the tag of the root type
699 -- of the class. It can also specify a tag directly rather than being a
700 -- tagged object. The latter is needed by the implementations of AI-239
701 -- and AI-260.
702
703 -- Conversion_OK (Flag14-Sem)
704 -- A flag set on type conversion nodes to indicate that the conversion
705 -- is to be considered as being valid, even though it is the case that
706 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
707 -- Fixed_Value and Integer_Value, for internal conversions done for
708 -- fixed-point operations, and for certain conversions for calls to
709 -- initialization procedures. If Conversion_OK is set, then Etype must be
710 -- set (the analyzer assumes that Etype has been set). For the case of
711 -- fixed-point operands, it also indicates that the conversion is to be
712 -- direct conversion of the underlying integer result, with no regard to
713 -- the small operand.
714
715 -- Corresponding_Body (Node5-Sem)
716 -- This field is set in subprogram declarations, package declarations,
717 -- entry declarations of protected types, and in generic units. It
718 -- points to the defining entity for the corresponding body (NOT the
719 -- node for the body itself).
720
721 -- Corresponding_Formal_Spec (Node3-Sem)
722 -- This field is set in subprogram renaming declarations, where it points
723 -- to the defining entity for a formal subprogram in the case where the
724 -- renaming corresponds to a generic formal subprogram association in an
725 -- instantiation. The field is Empty if the renaming does not correspond
726 -- to such a formal association.
727
728 -- Corresponding_Generic_Association (Node5-Sem)
729 -- This field is defined for object declarations and object renaming
730 -- declarations. It is set for the declarations within an instance that
731 -- map generic formals to their actuals. If set, the field points to
732 -- a generic_association which is the original parent of the expression
733 -- or name appearing in the declaration. This simplifies ASIS queries.
734
735 -- Corresponding_Integer_Value (Uint4-Sem)
736 -- This field is set in real literals of fixed-point types (it is not
737 -- used for floating-point types). It contains the integer value used
738 -- to represent the fixed-point value. It is also set on the universal
739 -- real literals used to represent bounds of fixed-point base types
740 -- and their first named subtypes.
741
742 -- Corresponding_Spec (Node5-Sem)
743 -- This field is set in subprogram, package, task, and protected body
744 -- nodes, where it points to the defining entity in the corresponding
745 -- spec. The attribute is also set in N_With_Clause nodes where it points
746 -- to the defining entity for the with'ed spec, and in a subprogram
747 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
748 -- if there is no corresponding spec, as in the case of a subprogram body
749 -- that serves as its own spec.
750
751 -- Corresponding_Stub (Node3-Sem)
752 -- This field is present in an N_Subunit node. It holds the node in
753 -- the parent unit that is the stub declaration for the subunit. It is
754 -- set when analysis of the stub forces loading of the proper body. If
755 -- expansion of the proper body creates new declarative nodes, they are
756 -- inserted at the point of the corresponding_stub.
757
758 -- Dcheck_Function (Node5-Sem)
759 -- This field is present in an N_Variant node, It references the entity
760 -- for the discriminant checking function for the variant.
761
762 -- Debug_Statement (Node3)
763 -- This field is present in an N_Pragma node. It is used only for a Debug
764 -- pragma. The parameter is of the form of an expression, as required by
765 -- the pragma syntax, but is actually a procedure call. To simplify
766 -- semantic processing, the parser creates a copy of the argument
767 -- rearranged into a procedure call statement and places it in the
768 -- Debug_Statement field. Note that this field is considered syntactic
769 -- field, since it is created by the parser.
770
771 -- Default_Expression (Node5-Sem)
772 -- This field is Empty if there is no default expression. If there is a
773 -- simple default expression (one with no side effects), then this field
774 -- simply contains a copy of the Expression field (both point to the tree
775 -- for the default expression). Default_Expression is used for
776 -- conformance checking.
777
778 -- Discr_Check_Funcs_Built (Flag11-Sem)
779 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
780 -- discriminant checking functions are constructed. The purpose is to
781 -- avoid attempting to set these functions more than once.
782
783 -- Do_Accessibility_Check (Flag13-Sem)
784 -- This flag is set on N_Parameter_Specification nodes to indicate
785 -- that an accessibility check is required for the parameter. It is
786 -- not yet decided who takes care of this check (TBD ???).
787
788 -- Do_Discriminant_Check (Flag13-Sem)
789 -- This flag is set on N_Selected_Component nodes to indicate that a
790 -- discriminant check is required using the discriminant check routine
791 -- associated with the selector. The actual check is generated by the
792 -- expander when processing selected components.
793
794 -- Do_Division_Check (Flag13-Sem)
795 -- This flag is set on a division operator (/ mod rem) to indicate
796 -- that a zero divide check is required. The actual check is dealt
797 -- with by the backend (all the front end does is to set the flag).
798
799 -- Do_Length_Check (Flag4-Sem)
800 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
801 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
802 -- is required. It is not determined who deals with this flag (???).
803
804 -- Do_Overflow_Check (Flag17-Sem)
805 -- This flag is set on an operator where an overflow check is required on
806 -- the operation. The actual check is dealt with by the backend (all the
807 -- front end does is to set the flag). The other cases where this flag is
808 -- used is on a Type_Conversion node and for attribute reference nodes.
809 -- For a type conversion, it means that the conversion is from one base
810 -- type to another, and the value may not fit in the target base type.
811 -- See also the description of Do_Range_Check for this case. The only
812 -- attribute references which use this flag are Pred and Succ, where it
813 -- means that the result should be checked for going outside the base
814 -- range. Note that this flag is not set for modular types.
815
816 -- Do_Range_Check (Flag9-Sem)
817 -- This flag is set on an expression which appears in a context where a
818 -- range check is required. The target type is clear from the context.
819 -- The contexts in which this flag can appear are the following:
820
821 -- Right side of an assignment. In this case the target type is
822 -- taken from the left side of the assignment, which is referenced
823 -- by the Name of the N_Assignment_Statement node.
824
825 -- Subscript expressions in an indexed component. In this case the
826 -- target type is determined from the type of the array, which is
827 -- referenced by the Prefix of the N_Indexed_Component node.
828
829 -- Argument expression for a parameter, appearing either directly in
830 -- the Parameter_Associations list of a call or as the Expression of an
831 -- N_Parameter_Association node that appears in this list. In either
832 -- case, the check is against the type of the formal. Note that the
833 -- flag is relevant only in IN and IN OUT parameters, and will be
834 -- ignored for OUT parameters, where no check is required in the call,
835 -- and if a check is required on the return, it is generated explicitly
836 -- with a type conversion.
837
838 -- Initialization expression for the initial value in an object
839 -- declaration. In this case the Do_Range_Check flag is set on
840 -- the initialization expression, and the check is against the
841 -- range of the type of the object being declared.
842
843 -- The expression of a type conversion. In this case the range check is
844 -- against the target type of the conversion. See also the use of
845 -- Do_Overflow_Check on a type conversion. The distinction is that the
846 -- overflow check protects against a value that is outside the range of
847 -- the target base type, whereas a range check checks that the
848 -- resulting value (which is a value of the base type of the target
849 -- type), satisfies the range constraint of the target type.
850
851 -- Note: when a range check is required in contexts other than those
852 -- listed above (e.g. in a return statement), an additional type
853 -- conversion node is introduced to represent the required check.
854
855 -- Do_Storage_Check (Flag17-Sem)
856 -- This flag is set in an N_Allocator node to indicate that a storage
857 -- check is required for the allocation, or in an N_Subprogram_Body node
858 -- to indicate that a stack check is required in the subprogram prolog.
859 -- The N_Allocator case is handled by the routine that expands the call
860 -- to the runtime routine. The N_Subprogram_Body case is handled by the
861 -- backend, and all the semantics does is set the flag.
862
863 -- Do_Tag_Check (Flag13-Sem)
864 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
865 -- N_Procedure_Call_Statement, N_Type_Conversion,
866 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
867 -- node to indicate that the tag check can be suppressed. It is not
868 -- yet decided how this flag is used (TBD ???).
869
870 -- Elaborate_Present (Flag4-Sem)
871 -- This flag is set in the N_With_Clause node to indicate that pragma
872 -- Elaborate pragma appears for the with'ed units.
873
874 -- Elaborate_All_Desirable (Flag9-Sem)
875 -- This flag is set in the N_With_Clause mode to indicate that the static
876 -- elaboration processing has determined that an Elaborate_All pragma is
877 -- desirable for correct elaboration for this unit.
878
879 -- Elaborate_All_Present (Flag14-Sem)
880 -- This flag is set in the N_With_Clause node to indicate that a
881 -- pragma Elaborate_All pragma appears for the with'ed units.
882
883 -- Elaborate_Desirable (Flag11-Sem)
884 -- This flag is set in the N_With_Clause mode to indicate that the static
885 -- elaboration processing has determined that an Elaborate pragma is
886 -- desirable for correct elaboration for this unit.
887
888 -- Elaboration_Boolean (Node2-Sem)
889 -- This field is present in function and procedure specification nodes.
890 -- If set, it points to the entity for a Boolean flag that must be tested
891 -- for certain calls to check for access before elaboration. See body of
892 -- Sem_Elab for further details. This field is Empty if no elaboration
893 -- boolean is required.
894
895 -- Else_Actions (List3-Sem)
896 -- This field is present in conditional expression nodes. During code
897 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
898 -- actions at an appropriate place in the tree to get elaborated at the
899 -- right time. For conditional expressions, we have to be sure that the
900 -- actions for the Else branch are only elaborated if the condition is
901 -- False. The Else_Actions field is used as a temporary parking place for
902 -- these actions. The final tree is always rewritten to eliminate the
903 -- need for this field, so in the tree passed to Gigi, this field is
904 -- always set to No_List.
905
906 -- Enclosing_Variant (Node2-Sem)
907 -- This field is present in the N_Variant node and identifies the Node_Id
908 -- corresponding to the immediately enclosing variant when the variant is
909 -- nested, and N_Empty otherwise. Set during semantic processing of the
910 -- variant part of a record type.
911
912 -- Entity (Node4-Sem)
913 -- Appears in all direct names (identifiers, character literals, and
914 -- operator symbols), as well as expanded names, and attributes that
915 -- denote entities, such as 'Class. Points to entity for corresponding
916 -- defining occurrence. Set after name resolution. For identifiers in a
917 -- WITH list, the corresponding defining occurrence is in a separately
918 -- compiled file, and Entity must be set by the library Load procedure.
919 --
920 -- Note: During name resolution, the value in Entity may be temporarily
921 -- incorrect (e.g. during overload resolution, Entity is initially set to
922 -- the first possible correct interpretation, and then later modified if
923 -- necessary to contain the correct value after resolution).
924 --
925 -- Note: This field overlaps Associated_Node, which is used during
926 -- generic processing (see Sem_Ch12 for details). Note also that in
927 -- generic templates, this means that the Entity field does not always
928 -- point to an Entity. Since the back end is expected to ignore generic
929 -- templates, this is harmless.
930 --
931 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
932 -- It is used only for stream attributes definition clauses. In this
933 -- case, it denotes a (possibly dummy) subprogram entity that is declared
934 -- conceptually at the point of the clause. Thus the visibility of the
935 -- attribute definition clause (in the sense of 8.3(23) as amended by
936 -- AI-195) can be checked by testing the visibility of that subprogram.
937 --
938 -- Note: Normally the Entity field of an identifier points to the entity
939 -- for the corresponding defining identifier, and hence the Chars field
940 -- of an identifier will match the Chars field of the entity. However,
941 -- there is no requirement that these match, and there are obscure cases
942 -- of generated code where they do not match.
943
944 -- Entity_Or_Associated_Node (Node4-Sem)
945 -- A synonym for both Entity and Associated_Node. Used by convention in
946 -- the code when referencing this field in cases where it is not known
947 -- whether the field contains an Entity or an Associated_Node.
948
949 -- Etype (Node5-Sem)
950 -- Appears in all expression nodes, all direct names, and all entities.
951 -- Points to the entity for the related type. Set after type resolution.
952 -- Normally this is the actual subtype of the expression. However, in
953 -- certain contexts such as the right side of an assignment, subscripts,
954 -- arguments to calls, returned value in a function, initial value etc.
955 -- it is the desired target type. In the event that this is different
956 -- from the actual type, the Do_Range_Check flag will be set if a range
957 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
958 -- points to an essentially arbitrary choice from the possible set of
959 -- types.
960
961 -- Exception_Junk (Flag8-Sem)
962 -- This flag is set in a various nodes appearing in a statement sequence
963 -- to indicate that the corresponding node is an artifact of the
964 -- generated code for exception handling, and should be ignored when
965 -- analyzing the control flow of the relevant sequence of statements
966 -- (e.g. to check that it does not end with a bad return statement).
967
968 -- Exception_Label (Node5-Sem)
969 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
970 -- to be used for transforming the corresponding exception into a goto,
971 -- or contains Empty, if this exception is not to be transformed. Also
972 -- appears in N_Exception_Handler nodes, where, if set, it indicates
973 -- that there may be a local raise for the handler, so that expansion
974 -- to allow a goto is required (and this field contains the label for
975 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
976
977 -- Expansion_Delayed (Flag11-Sem)
978 -- Set on aggregates and extension aggregates that need a top-down rather
979 -- than bottom-up expansion. Typically aggregate expansion happens bottom
980 -- up. For nested aggregates the expansion is delayed until the enclosing
981 -- aggregate itself is expanded, e.g. in the context of a declaration. To
982 -- delay it we set this flag. This is done to avoid creating a temporary
983 -- for each level of a nested aggregates, and also to prevent the
984 -- premature generation of constraint checks. This is also a requirement
985 -- if we want to generate the proper attachment to the internal
986 -- finalization lists (for record with controlled components). Top down
987 -- expansion of aggregates is also used for in-place array aggregate
988 -- assignment or initialization. When the full context is known, the
989 -- target of the assignment or initialization is used to generate the
990 -- left-hand side of individual assignment to each sub-component.
991
992 -- First_Inlined_Subprogram (Node3-Sem)
993 -- Present in the N_Compilation_Unit node for the main program. Points
994 -- to a chain of entities for subprograms that are to be inlined. The
995 -- Next_Inlined_Subprogram field of these entities is used as a link
996 -- pointer with Empty marking the end of the list. This field is Empty
997 -- if there are no inlined subprograms or inlining is not active.
998
999 -- First_Named_Actual (Node4-Sem)
1000 -- Present in procedure call statement and function call nodes, and also
1001 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1002 -- named parameter where parameters are ordered by declaration order (as
1003 -- opposed to the actual order in the call which may be different due to
1004 -- named associations). Note: this field points to the explicit actual
1005 -- parameter itself, not the N_Parameter_Association node (its parent).
1006
1007 -- First_Real_Statement (Node2-Sem)
1008 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1009 -- Empty. Used only when declarations are moved into the statement part
1010 -- of a construct as a result of wrapping an AT END handler that is
1011 -- required to cover the declarations. In this case, this field is used
1012 -- to remember the location in the statements list of the first real
1013 -- statement, i.e. the statement that used to be first in the statement
1014 -- list before the declarations were prepended.
1015
1016 -- First_Subtype_Link (Node5-Sem)
1017 -- Present in N_Freeze_Entity node for an anonymous base type that is
1018 -- implicitly created by the declaration of a first subtype. It points
1019 -- to the entity for the first subtype.
1020
1021 -- Float_Truncate (Flag11-Sem)
1022 -- A flag present in type conversion nodes. This is used for float to
1023 -- integer conversions where truncation is required rather than rounding.
1024 -- Note that Gigi does not handle type conversions from real to integer
1025 -- with rounding (see Expand_N_Type_Conversion).
1026
1027 -- Forwards_OK (Flag5-Sem)
1028 -- A flag present in the N_Assignment_Statement node. It is used only
1029 -- if the type being assigned is an array type, and is set if analysis
1030 -- determines that it is definitely safe to do the copy forwards, i.e.
1031 -- starting at the lowest addressed element. This is the case if either
1032 -- the operands do not overlap, or they may overlap, but if they do,
1033 -- then the left operand is at a lower address than the right operand.
1034 --
1035 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1036 -- means that the front end could not determine that either direction is
1037 -- definitely safe, and a runtime check may be required if the backend
1038 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1039 -- set, it means that the front end can assure no overlap of operands.
1040
1041 -- From_At_End (Flag4-Sem)
1042 -- This flag is set on an N_Raise_Statement node if it corresponds to
1043 -- the reraise statement generated as the last statement of an AT END
1044 -- handler when SJLJ exception handling is active. It is used to stop
1045 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1046 -- because if the restriction is set, the reraise is not generated.
1047
1048 -- From_At_Mod (Flag4-Sem)
1049 -- This flag is set on the attribute definition clause node that is
1050 -- generated by a transformation of an at mod phrase in a record
1051 -- representation clause. This is used to give slightly different (Ada 83
1052 -- compatible) semantics to such a clause, namely it is used to specify a
1053 -- minimum acceptable alignment for the base type and all subtypes. In
1054 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1055 -- must be a multiple of the given value, and the representation clause
1056 -- is considered to be type specific instead of subtype specific.
1057
1058 -- From_Default (Flag6-Sem)
1059 -- This flag is set on the subprogram renaming declaration created in an
1060 -- instance for a formal subprogram, when the formal is declared with a
1061 -- box, and there is no explicit actual. If the flag is present, the
1062 -- declaration is treated as an implicit reference to the formal in the
1063 -- ali file.
1064
1065 -- Generic_Parent (Node5-Sem)
1066 -- Generic_Parent is defined on declaration nodes that are instances. The
1067 -- value of Generic_Parent is the generic entity from which the instance
1068 -- is obtained. Generic_Parent is also defined for the renaming
1069 -- declarations and object declarations created for the actuals in an
1070 -- instantiation. The generic parent of such a declaration is the
1071 -- corresponding generic association in the Instantiation node.
1072
1073 -- Generic_Parent_Type (Node4-Sem)
1074 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1075 -- actuals of formal private and derived types. Within the instance, the
1076 -- operations on the actual are those inherited from the parent. For a
1077 -- formal private type, the parent type is the generic type itself. The
1078 -- Generic_Parent_Type is also used in an instance to determine whether a
1079 -- private operation overrides an inherited one.
1080
1081 -- Handler_List_Entry (Node2-Sem)
1082 -- This field is present in N_Object_Declaration nodes. It is set only
1083 -- for the Handler_Record entry generated for an exception in zero cost
1084 -- exception handling mode. It references the corresponding item in the
1085 -- handler list, and is used to delete this entry if the corresponding
1086 -- handler is deleted during optimization. For further details on why
1087 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1088
1089 -- Has_No_Elaboration_Code (Flag17-Sem)
1090 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1091 -- or not elaboration code is present for this unit. It is initially set
1092 -- true for subprogram specs and bodies and for all generic units and
1093 -- false for non-generic package specs and bodies. Gigi may set the flag
1094 -- in the non-generic package case if it determines that no elaboration
1095 -- code is generated. Note that this flag is not related to the
1096 -- Is_Preelaborated status, there can be preelaborated packages that
1097 -- generate elaboration code, and non-preelaborated packages which do
1098 -- not generate elaboration code.
1099
1100 -- Has_Priority_Pragma (Flag6-Sem)
1101 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1102 -- N_Protected_Definition nodes to flag the presence of either a Priority
1103 -- or Interrupt_Priority pragma in the declaration sequence (public or
1104 -- private in the task and protected cases)
1105
1106 -- Has_Private_View (Flag11-Sem)
1107 -- A flag present in generic nodes that have an entity, to indicate that
1108 -- the node has a private type. Used to exchange private and full
1109 -- declarations if the visibility at instantiation is different from the
1110 -- visibility at generic definition.
1111
1112 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1113 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1114 -- flag the presence of a pragma Relative_Deadline.
1115
1116 -- Has_Self_Reference (Flag13-Sem)
1117 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1118 -- of the expressions contains an access attribute reference to the
1119 -- enclosing type. Such a self-reference can only appear in default-
1120 -- initialized aggregate for a record type.
1121
1122 -- Has_Storage_Size_Pragma (Flag5-Sem)
1123 -- A flag present in an N_Task_Definition node to flag the presence of a
1124 -- Storage_Size pragma.
1125
1126 -- Has_Task_Info_Pragma (Flag7-Sem)
1127 -- A flag present in an N_Task_Definition node to flag the presence of a
1128 -- Task_Info pragma. Used to detect duplicate pragmas.
1129
1130 -- Has_Task_Name_Pragma (Flag8-Sem)
1131 -- A flag present in N_Task_Definition nodes to flag the presence of a
1132 -- Task_Name pragma in the declaration sequence for the task.
1133
1134 -- Has_Wide_Character (Flag11-Sem)
1135 -- Present in string literals, set if any wide character (i.e. character
1136 -- code outside the Character range) appears in the string.
1137
1138 -- Hidden_By_Use_Clause (Elist4-Sem)
1139 -- An entity list present in use clauses that appear within
1140 -- instantiations. For the resolution of local entities, entities
1141 -- introduced by these use clauses have priority over global ones, and
1142 -- outer entities must be explicitly hidden/restored on exit.
1143
1144 -- Implicit_With (Flag16-Sem)
1145 -- This flag is set in the N_With_Clause node that is implicitly
1146 -- generated for runtime units that are loaded by the expander, and also
1147 -- for package System, if it is loaded implicitly by a use of the
1148 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1149 -- as well.
1150
1151 -- Includes_Infinities (Flag11-Sem)
1152 -- This flag is present in N_Range nodes. It is set for the range of
1153 -- unconstrained float types defined in Standard, which include not only
1154 -- the given range of values, but also legitimately can include infinite
1155 -- values. This flag is false for any float type for which an explicit
1156 -- range is given by the programmer, even if that range is identical to
1157 -- the range for Float.
1158
1159 -- Instance_Spec (Node5-Sem)
1160 -- This field is present in generic instantiation nodes, and also in
1161 -- formal package declaration nodes (formal package declarations are
1162 -- treated in a manner very similar to package instantiations). It points
1163 -- to the node for the spec of the instance, inserted as part of the
1164 -- semantic processing for instantiations in Sem_Ch12.
1165
1166 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1167 -- A flag set in a Block_Statement node to indicate that it is the
1168 -- expansion of an asynchronous entry call. Such a block needs cleanup
1169 -- handler to assure that the call is cancelled.
1170
1171 -- Is_Component_Left_Opnd (Flag13-Sem)
1172 -- Is_Component_Right_Opnd (Flag14-Sem)
1173 -- Present in concatenation nodes, to indicate that the corresponding
1174 -- operand is of the component type of the result. Used in resolving
1175 -- concatenation nodes in instances.
1176
1177 -- Is_Controlling_Actual (Flag16-Sem)
1178 -- This flag is set on in an expression that is a controlling argument in
1179 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1180 -- details of its use.
1181
1182 -- Is_Dynamic_Coextension (Flag18-Sem)
1183 -- Present in allocator nodes, to indicate that this is an allocator
1184 -- for an access discriminant of a dynamically allocated object. The
1185 -- coextension must be deallocated and finalized at the same time as
1186 -- the enclosing object.
1187
1188 -- Is_Entry_Barrier_Function (Flag8-Sem)
1189 -- This flag is set in an N_Subprogram_Body node which is the expansion
1190 -- of an entry barrier from a protected entry body. It is used for the
1191 -- circuitry checking for incorrect use of Current_Task.
1192
1193 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1194 -- This flag is set in an N_Function_Call node to indicate that the extra
1195 -- actuals to support a build-in-place style of call have been added to
1196 -- the call.
1197
1198 -- Is_In_Discriminant_Check (Flag11-Sem)
1199 -- This flag is present in a selected component, and is used to indicate
1200 -- that the reference occurs within a discriminant check. The
1201 -- significance is that optimizations based on assuming that the
1202 -- discriminant check has a correct value cannot be performed in this
1203 -- case (or the discriminant check may be optimized away!)
1204
1205 -- Is_Machine_Number (Flag11-Sem)
1206 -- This flag is set in an N_Real_Literal node to indicate that the value
1207 -- is a machine number. This avoids some unnecessary cases of converting
1208 -- real literals to machine numbers.
1209
1210 -- Is_Null_Loop (Flag16-Sem)
1211 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1212 -- can be determined to be null at compile time. This is used to remove
1213 -- the loop entirely at expansion time.
1214
1215 -- Is_Overloaded (Flag5-Sem)
1216 -- A flag present in all expression nodes. Used temporarily during
1217 -- overloading determination. The setting of this flag is not relevant
1218 -- once overloading analysis is complete.
1219
1220 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1221 -- A flag present only in N_Op_Expon nodes. It is set when the
1222 -- exponentiation is of the form 2 ** N, where the type of N is an
1223 -- unsigned integral subtype whose size does not exceed the size of
1224 -- Standard_Integer (i.e. a type that can be safely converted to
1225 -- Natural), and the exponentiation appears as the right operand of an
1226 -- integer multiplication or an integer division where the dividend is
1227 -- unsigned. It is also required that overflow checking is off for both
1228 -- the exponentiation and the multiply/divide node. If this set of
1229 -- conditions holds, and the flag is set, then the division or
1230 -- multiplication can be (and is) converted to a shift.
1231
1232 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1233 -- A flag set in a Subprogram_Body block to indicate that it is the
1234 -- implementation of a protected subprogram. Such a body needs cleanup
1235 -- handler to make sure that the associated protected object is unlocked
1236 -- when the subprogram completes.
1237
1238 -- Is_Static_Coextension (Flag14-Sem)
1239 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1240 -- of an object allocated on the stack rather than the heap.
1241
1242 -- Is_Static_Expression (Flag6-Sem)
1243 -- Indicates that an expression is a static expression (RM 4.9). See spec
1244 -- of package Sem_Eval for full details on the use of this flag.
1245
1246 -- Is_Subprogram_Descriptor (Flag16-Sem)
1247 -- Present in N_Object_Declaration, and set only for the object
1248 -- declaration generated for a subprogram descriptor in fast exception
1249 -- mode. See Exp_Ch11 for details of use.
1250
1251 -- Is_Task_Allocation_Block (Flag6-Sem)
1252 -- A flag set in a Block_Statement node to indicate that it is the
1253 -- expansion of a task allocator, or the allocator of an object
1254 -- containing tasks. Such a block requires a cleanup handler to call
1255 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1256 -- allocated but not activated when the allocator completes abnormally.
1257
1258 -- Is_Task_Master (Flag5-Sem)
1259 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1260 -- indicate that the construct is a task master (i.e. has declared tasks
1261 -- or declares an access to a task type).
1262
1263 -- Itype (Node1-Sem)
1264 -- Used in N_Itype_Reference node to reference an itype for which it is
1265 -- important to ensure that it is defined. See description of this node
1266 -- for further details.
1267
1268 -- Kill_Range_Check (Flag11-Sem)
1269 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1270 -- result should not be subjected to range checks. This is used for the
1271 -- implementation of Normalize_Scalars.
1272
1273 -- Label_Construct (Node2-Sem)
1274 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1275 -- N_Block_Statement or N_Loop_Statement node to which the label
1276 -- declaration applies. This is not currently used in the compiler
1277 -- itself, but it is useful in the implementation of ASIS queries.
1278 -- This field is left empty for the special labels generated as part
1279 -- of expanding raise statements with a local exception handler.
1280
1281 -- Library_Unit (Node4-Sem)
1282 -- In a stub node, Library_Unit points to the compilation unit node of
1283 -- the corresponding subunit.
1284 --
1285 -- In a with clause node, Library_Unit points to the spec of the with'ed
1286 -- unit.
1287 --
1288 -- In a compilation unit node, the usage depends on the unit type:
1289 --
1290 -- For a library unit body, Library_Unit points to the compilation unit
1291 -- node of the corresponding spec, unless it's a subprogram body with
1292 -- Acts_As_Spec set, in which case it points to itself.
1293 --
1294 -- For a spec, Library_Unit points to the compilation unit node of the
1295 -- corresponding body, if present. The body will be present if the spec
1296 -- is or contains generics that we needed to instantiate. Similarly, the
1297 -- body will be present if we needed it for inlining purposes. Thus, if
1298 -- we have a spec/body pair, both of which are present, they point to
1299 -- each other via Library_Unit.
1300 --
1301 -- For a subunit, Library_Unit points to the compilation unit node of
1302 -- the parent body.
1303 --
1304 -- Note that this field is not used to hold the parent pointer for child
1305 -- unit (which might in any case need to use it for some other purpose as
1306 -- described above). Instead for a child unit, implicit with's are
1307 -- generated for all parents.
1308
1309 -- Local_Raise_Statements (Elist1)
1310 -- This field is present in exception handler nodes. It is set to
1311 -- No_Elist in the normal case. If there is at least one raise statement
1312 -- which can potentially be handled as a local raise, then this field
1313 -- points to a list of raise nodes, which are calls to a routine to raise
1314 -- an exception. These are raise nodes which can be optimized into gotos
1315 -- if the handler turns out to meet the conditions which permit this
1316 -- transformation. Note that this does NOT include instances of the
1317 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1318 -- handled by the back end (using the N_Push/N_Pop mechanism).
1319
1320 -- Loop_Actions (List2-Sem)
1321 -- A list present in Component_Association nodes in array aggregates.
1322 -- Used to collect actions that must be executed within the loop because
1323 -- they may need to be evaluated anew each time through.
1324
1325 -- Limited_View_Installed (Flag18-Sem)
1326 -- Present in With_Clauses and in package specifications. If set on
1327 -- with_clause, it indicates that this clause has created the current
1328 -- limited view of the designated package. On a package specification, it
1329 -- indicates that the limited view has already been created because the
1330 -- package is mentioned in a limited_with_clause in the closure of the
1331 -- unit being compiled.
1332
1333 -- Local_Raise_Not_OK (Flag7-Sem)
1334 -- Present in N_Exception_Handler nodes. Set if the handler contains
1335 -- a construct (reraise statement, or call to subprogram in package
1336 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1337 -- for a local raise (one that could otherwise be converted to a goto).
1338
1339 -- Must_Be_Byte_Aligned (Flag14-Sem)
1340 -- This flag is present in N_Attribute_Reference nodes. It can be set
1341 -- only for the Address and Unrestricted_Access attributes. If set it
1342 -- means that the object for which the address/access is given must be on
1343 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1344 -- of the object is to be made before taking the address (this copy is in
1345 -- the current scope on the stack frame). This is used for certain cases
1346 -- of code generated by the expander that passes parameters by address.
1347 --
1348 -- The reason the copy is not made by the front end is that the back end
1349 -- has more information about type layout and may be able to (but is not
1350 -- guaranteed to) prevent making unnecessary copies.
1351
1352 -- Must_Not_Freeze (Flag8-Sem)
1353 -- A flag present in all expression nodes. Normally expressions cause
1354 -- freezing as described in the RM. If this flag is set, then this is
1355 -- inhibited. This is used by the analyzer and expander to label nodes
1356 -- that are created by semantic analysis or expansion and which must not
1357 -- cause freezing even though they normally would. This flag is also
1358 -- present in an N_Subtype_Indication node, since we also use these in
1359 -- calls to Freeze_Expression.
1360
1361 -- Next_Entity (Node2-Sem)
1362 -- Present in defining identifiers, defining character literals and
1363 -- defining operator symbols (i.e. in all entities). The entities of a
1364 -- scope are chained, and this field is used as the forward pointer for
1365 -- this list. See Einfo for further details.
1366
1367 -- Next_Named_Actual (Node4-Sem)
1368 -- Present in parameter association node. Set during semantic analysis to
1369 -- point to the next named parameter, where parameters are ordered by
1370 -- declaration order (as opposed to the actual order in the call, which
1371 -- may be different due to named associations). Not that this field
1372 -- points to the explicit actual parameter itself, not to the
1373 -- N_Parameter_Association node (its parent).
1374
1375 -- Next_Pragma (Node1-Sem)
1376 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1377 -- nodes. Currently used for two purposes:
1378 --
1379 -- Create a list of linked Check_Policy pragmas. The head of this list
1380 -- is stored in Opt.Check_Policy_List (which has further details).
1381 --
1382 -- Used by processing for Pre/Postcondition pragmas to store a list of
1383 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1384 -- details).
1385
1386 -- Next_Rep_Item (Node5-Sem)
1387 -- Present in pragma nodes and attribute definition nodes. Used to link
1388 -- representation items that apply to an entity. See description of
1389 -- First_Rep_Item field in Einfo for full details.
1390
1391 -- Next_Use_Clause (Node3-Sem)
1392 -- While use clauses are active during semantic processing, they are
1393 -- chained from the scope stack entry, using Next_Use_Clause as a link
1394 -- pointer, with Empty marking the end of the list. The head pointer is
1395 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1396 -- processing (i.e. when Gigi sees the tree, the contents of this field
1397 -- is undefined and should not be read).
1398
1399 -- No_Ctrl_Actions (Flag7-Sem)
1400 -- Present in N_Assignment_Statement to indicate that no finalize nor
1401 -- adjust should take place on this assignment even though the rhs is
1402 -- controlled. This is used in init procs and aggregate expansions where
1403 -- the generated assignments are more initialisations than real
1404 -- assignments.
1405
1406 -- No_Elaboration_Check (Flag14-Sem)
1407 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1408 -- that no elaboration check is needed on the call, because it appears in
1409 -- the context of a local Suppress pragma. This is used on calls within
1410 -- task bodies, where the actual elaboration checks are applied after
1411 -- analysis, when the local scope stack is not present.
1412
1413 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1414 -- Present in N_With_Clause nodes. Set if the with clause is on the
1415 -- package or subprogram spec where the main unit is the corresponding
1416 -- body, and no entities of the with'ed unit are referenced by the spec
1417 -- (an entity may still be referenced in the body, so this flag is used
1418 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1419 -- full details)
1420
1421 -- No_Initialization (Flag13-Sem)
1422 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1423 -- object must not be initialized (by Initialize or call to an init
1424 -- proc). This is needed for controlled aggregates. When the Object
1425 -- declaration has an expression, this flag means that this expression
1426 -- should not be taken into account (needed for in place initialization
1427 -- with aggregates).
1428
1429 -- No_Truncation (Flag17-Sem)
1430 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1431 -- only if the RM_Size of the source is greater than the RM_Size of the
1432 -- target for scalar operands. Normally in such a case we truncate some
1433 -- higher order bits of the source, and then sign/zero extend the result
1434 -- to form the output value. But if this flag is set, then we do not do
1435 -- any truncation, so for example, if an 8 bit input is converted to 5
1436 -- bit result which is in fact stored in 8 bits, then the high order
1437 -- three bits of the target result will be copied from the source. This
1438 -- is used for properly setting out of range values for use by pragmas
1439 -- Initialize_Scalars and Normalize_Scalars.
1440
1441 -- Original_Discriminant (Node2-Sem)
1442 -- Present in identifiers. Used in references to discriminants that
1443 -- appear in generic units. Because the names of the discriminants may be
1444 -- different in an instance, we use this field to recover the position of
1445 -- the discriminant in the original type, and replace it with the
1446 -- discriminant at the same position in the instantiated type.
1447
1448 -- Original_Entity (Node2-Sem)
1449 -- Present in numeric literals. Used to denote the named number that has
1450 -- been constant-folded into the given literal. If literal is from
1451 -- source, or the result of some other constant-folding operation, then
1452 -- Original_Entity is empty. This field is needed to handle properly
1453 -- named numbers in generic units, where the Associated_Node field
1454 -- interferes with the Entity field, making it impossible to preserve the
1455 -- original entity at the point of instantiation (ASIS problem).
1456
1457 -- Others_Discrete_Choices (List1-Sem)
1458 -- When a case statement or variant is analyzed, the semantic checks
1459 -- determine the actual list of choices that correspond to an others
1460 -- choice. This list is materialized for later use by the expander and
1461 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1462 -- this materialized list of choices, which is in standard format for a
1463 -- list of discrete choices, except that of course it cannot contain an
1464 -- N_Others_Choice entry.
1465
1466 -- Parameter_List_Truncated (Flag17-Sem)
1467 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1468 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1469 -- a result of a First_Optional_Parameter specification in an
1470 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1471 -- The truncation is done by the expander by removing trailing parameters
1472 -- from the argument list, in accordance with the set of rules allowing
1473 -- such parameter removal. In particular, parameters can be removed
1474 -- working from the end of the parameter list backwards up to and
1475 -- including the entry designated by First_Optional_Parameter in the
1476 -- Import pragma. Parameters can be removed if they are implicit and the
1477 -- default value is a known-at-compile-time value, including the use of
1478 -- the Null_Parameter attribute, or if explicit parameter values are
1479 -- present that match the corresponding defaults.
1480
1481 -- Parent_Spec (Node4-Sem)
1482 -- For a library unit that is a child unit spec (package or subprogram
1483 -- declaration, generic declaration or instantiation, or library level
1484 -- rename, this field points to the compilation unit node for the parent
1485 -- package specification. This field is Empty for library bodies (the
1486 -- parent spec in this case can be found from the corresponding spec).
1487
1488 -- PPC_Enabled (Flag5-Sem)
1489 -- Present in N_Pragma nodes. This flag is relevant only for precondition
1490 -- and postcondition nodes. It is true if the check corresponding to the
1491 -- pragma type is enabled at the point where the pragma appears.
1492
1493 -- Present_Expr (Uint3-Sem)
1494 -- Present in an N_Variant node. This has a meaningful value only after
1495 -- Gigi has back annotated the tree with representation information. At
1496 -- this point, it contains a reference to a gcc expression that depends
1497 -- on the values of one or more discriminants. Give a set of discriminant
1498 -- values, this expression evaluates to False (zero) if variant is not
1499 -- present, and True (non-zero) if it is present. See unit Repinfo for
1500 -- further details on gigi back annotation. This field is used during
1501 -- ASIS processing (data decomposition annex) to determine if a field is
1502 -- present or not.
1503
1504 -- Print_In_Hex (Flag13-Sem)
1505 -- Set on an N_Integer_Literal node to indicate that the value should be
1506 -- printed in hexadecimal in the sprint listing. Has no effect on
1507 -- legality or semantics of program, only on the displayed output. This
1508 -- is used to clarify output from the packed array cases.
1509
1510 -- Procedure_To_Call (Node2-Sem)
1511 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1512 -- and N_Extended_Return_Statement nodes. References the entity for the
1513 -- declaration of the procedure to be called to accomplish the required
1514 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1515 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1516 -- allocating the return value), and for the Deallocate procedure in the
1517 -- case of N_Free_Statement.
1518
1519 -- Raises_Constraint_Error (Flag7-Sem)
1520 -- Set on an expression whose evaluation will definitely fail constraint
1521 -- error check. In the case of static expressions, this flag must be set
1522 -- accurately (and if it is set, the expression is typically illegal
1523 -- unless it appears as a non-elaborated branch of a short-circuit form).
1524 -- For a non-static expression, this flag may be set whenever an
1525 -- expression (e.g. an aggregate) is known to raise constraint error. If
1526 -- set, the expression definitely will raise CE if elaborated at runtime.
1527 -- If not set, the expression may or may not raise CE. In other words, on
1528 -- static expressions, the flag is set accurately, on non-static
1529 -- expressions it is set conservatively.
1530
1531 -- Redundant_Use (Flag13-Sem)
1532 -- Present in nodes that can appear as an operand in a use clause or use
1533 -- type clause (identifiers, expanded names, attribute references). Set
1534 -- to indicate that a use is redundant (and therefore need not be undone
1535 -- on scope exit).
1536
1537 -- Renaming_Exception (Node2-Sem)
1538 -- Present in N_Exception_Declaration node. Used to point back to the
1539 -- exception renaming for an exception declared within a subprogram.
1540 -- What happens is that an exception declared in a subprogram is moved
1541 -- to the library level with a unique name, and the original exception
1542 -- becomes a renaming. This link from the library level exception to the
1543 -- renaming declaration allows registering of the proper exception name.
1544
1545 -- Return_Statement_Entity (Node5-Sem)
1546 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1547 -- Points to an E_Return_Statement representing the return statement.
1548
1549 -- Return_Object_Declarations (List3)
1550 -- Present in N_Extended_Return_Statement.
1551 -- Points to a list initially containing a single
1552 -- N_Object_Declaration representing the return object.
1553 -- We use a list (instead of just a pointer to the object decl)
1554 -- because Analyze wants to insert extra actions on this list.
1555
1556 -- Rounded_Result (Flag18-Sem)
1557 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1558 -- Used in the fixed-point cases to indicate that the result must be
1559 -- rounded as a result of the use of the 'Round attribute. Also used for
1560 -- integer N_Op_Divide nodes to indicate that the result should be
1561 -- rounded to the nearest integer (breaking ties away from zero), rather
1562 -- than truncated towards zero as usual. These rounded integer operations
1563 -- are the result of expansion of rounded fixed-point divide, conversion
1564 -- and multiplication operations.
1565
1566 -- Scope (Node3-Sem)
1567 -- Present in defining identifiers, defining character literals and
1568 -- defining operator symbols (i.e. in all entities). The entities of a
1569 -- scope all use this field to reference the corresponding scope entity.
1570 -- See Einfo for further details.
1571
1572 -- Shift_Count_OK (Flag4-Sem)
1573 -- A flag present in shift nodes to indicate that the shift count is
1574 -- known to be in range, i.e. is in the range from zero to word length
1575 -- minus one. If this flag is not set, then the shift count may be
1576 -- outside this range, i.e. larger than the word length, and the code
1577 -- must ensure that such shift counts give the appropriate result.
1578
1579 -- Source_Type (Node1-Sem)
1580 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1581 -- source type entity for the unchecked conversion instantiation
1582 -- which gigi must do size validation for.
1583
1584 -- Static_Processing_OK (Flag4-Sem)
1585 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1586 -- flag is set, the full value of the aggregate can be determined at
1587 -- compile time and the aggregate can be passed as is to the back-end.
1588 -- In this event it is irrelevant whether this flag is set or not.
1589 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1590 -- Static_Processing_OK is set, the aggregate can (but need not) be
1591 -- converted into a compile time known aggregate by the expander. See
1592 -- Sem_Aggr for the specific conditions under which an aggregate has its
1593 -- Static_Processing_OK flag set.
1594
1595 -- Storage_Pool (Node1-Sem)
1596 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1597 -- and N_Extended_Return_Statement nodes. References the entity for the
1598 -- storage pool to be used for the allocate or free call or for the
1599 -- allocation of the returned value from function. Empty indicates that
1600 -- the global default pool is to be used. Note that in the case
1601 -- of a return statement, this field is set only if the function returns
1602 -- value of a type whose size is not known at compile time on the
1603 -- secondary stack.
1604
1605 -- Suppress_Loop_Warnings (Flag17-Sem)
1606 -- Used in N_Loop_Statement node to indicate that warnings within the
1607 -- body of the loop should be suppressed. This is set when the range
1608 -- of a FOR loop is known to be null, or is probably null (loop would
1609 -- only execute if invalid values are present).
1610
1611 -- Target_Type (Node2-Sem)
1612 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1613 -- type entity for the unchecked conversion instantiation which gigi must
1614 -- do size validation for.
1615
1616 -- Then_Actions (List3-Sem)
1617 -- This field is present in conditional expression nodes. During code
1618 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1619 -- actions at an appropriate place in the tree to get elaborated at the
1620 -- right time. For conditional expressions, we have to be sure that the
1621 -- actions for the Then branch are only elaborated if the condition is
1622 -- True. The Then_Actions field is used as a temporary parking place for
1623 -- these actions. The final tree is always rewritten to eliminate the
1624 -- need for this field, so in the tree passed to Gigi, this field is
1625 -- always set to No_List.
1626
1627 -- Treat_Fixed_As_Integer (Flag14-Sem)
1628 -- This flag appears in operator nodes for divide, multiply, mod and rem
1629 -- on fixed-point operands. It indicates that the operands are to be
1630 -- treated as integer values, ignoring small values. This flag is only
1631 -- set as a result of expansion of fixed-point operations. Typically a
1632 -- fixed-point multiplication in the source generates subsidiary
1633 -- multiplication and division operations that work with the underlying
1634 -- integer values and have this flag set. Note that this flag is not
1635 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1636 -- in these cases it is always the case that fixed is treated as integer.
1637 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1638 -- leave such nodes alone, and whoever makes them must set the correct
1639 -- Etype value.
1640
1641 -- TSS_Elist (Elist3-Sem)
1642 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1643 -- entries for each TSS (type support subprogram) associated with the
1644 -- frozen type. The elements of the list are the entities for the
1645 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1646 -- if there are no type support subprograms for the type or if the freeze
1647 -- node is not for a type.
1648
1649 -- Unreferenced_In_Spec (Flag7-Sem)
1650 -- Present in N_With_Clause nodes. Set if the with clause is on the
1651 -- package or subprogram spec where the main unit is the corresponding
1652 -- body, and is not referenced by the spec (it may still be referenced by
1653 -- the body, so this flag is used to generate the proper message (see
1654 -- Sem_Util.Check_Unused_Withs for details)
1655
1656 -- Was_Originally_Stub (Flag13-Sem)
1657 -- This flag is set in the node for a proper body that replaces stub.
1658 -- During the analysis procedure, stubs in some situations get rewritten
1659 -- by the corresponding bodies, and we set this flag to remember that
1660 -- this happened. Note that it is not good enough to rely on the use of
1661 -- Original_Node here because of the case of nested instantiations where
1662 -- the substituted node can be copied.
1663
1664 -- Zero_Cost_Handling (Flag5-Sem)
1665 -- This flag is set in all handled sequence of statement and exception
1666 -- handler nodes if exceptions are to be handled using the zero-cost
1667 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1668 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1669 -- to do for such a handler is simply to put the code in the handler
1670 -- somewhere. The front end has generated all necessary labels.
1671
1672 --------------------------------------------------
1673 -- Note on Use of End_Label and End_Span Fields --
1674 --------------------------------------------------
1675
1676 -- Several constructs have end lines:
1677
1678 -- Loop Statement end loop [loop_IDENTIFIER];
1679 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1680 -- Task Definition end [task_IDENTIFIER]
1681 -- Protected Definition end [protected_IDENTIFIER]
1682 -- Protected Body end [protected_IDENTIFIER]
1683
1684 -- Block Statement end [block_IDENTIFIER];
1685 -- Subprogram Body end [DESIGNATOR];
1686 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1687 -- Task Body end [task_IDENTIFIER];
1688 -- Accept Statement end [entry_IDENTIFIER]];
1689 -- Entry Body end [entry_IDENTIFIER];
1690
1691 -- If Statement end if;
1692 -- Case Statement end case;
1693
1694 -- Record Definition end record;
1695 -- Enumeration Definition );
1696
1697 -- The End_Label and End_Span fields are used to mark the locations of
1698 -- these lines, and also keep track of the label in the case where a label
1699 -- is present.
1700
1701 -- For the first group above, the End_Label field of the corresponding node
1702 -- is used to point to the label identifier. In the case where there is no
1703 -- label in the source, the parser supplies a dummy identifier (with
1704 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1705 -- marks the location of the token following the END token.
1706
1707 -- For the second group, the use of End_Label is similar, but the End_Label
1708 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1709 -- simply because in some cases there is no room in the parent node.
1710
1711 -- For the third group, there is never any label, and instead of using
1712 -- End_Label, we use the End_Span field which gives the location of the
1713 -- token following END, relative to the starting Sloc of the construct,
1714 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1715 -- following the End_Label.
1716
1717 -- The record definition case is handled specially, we treat it as though
1718 -- it required an optional label which is never present, and so the parser
1719 -- always builds a dummy identifier with Comes From Source set False. The
1720 -- reason we do this, rather than using End_Span in this case, is that we
1721 -- want to generate a cross-ref entry for the end of a record, since it
1722 -- represents a scope for name declaration purposes.
1723
1724 -- The enumeration definition case is handled in an exactly similar manner,
1725 -- building a dummy identifier to get a cross-reference.
1726
1727 -- Note: the reason we store the difference as a Uint, instead of storing
1728 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1729 -- distinguished from other types of values, and we count on all general
1730 -- use fields being self describing. To make things easier for clients,
1731 -- note that we provide function End_Location, and procedure
1732 -- Set_End_Location to allow access to the logical value (which is the
1733 -- Source_Ptr value for the end token).
1734
1735 ---------------------
1736 -- Syntactic Nodes --
1737 ---------------------
1738
1739 ---------------------
1740 -- 2.3 Identifier --
1741 ---------------------
1742
1743 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1744 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1745
1746 -- An IDENTIFIER shall not be a reserved word
1747
1748 -- In the Ada grammar identifiers are the bottom level tokens which have
1749 -- very few semantics. Actual program identifiers are direct names. If
1750 -- we were being 100% honest with the grammar, then we would have a node
1751 -- called N_Direct_Name which would point to an identifier. However,
1752 -- that's too many extra nodes, so we just use the N_Identifier node
1753 -- directly as a direct name, and it contains the expression fields and
1754 -- Entity field that correspond to its use as a direct name. In those
1755 -- few cases where identifiers appear in contexts where they are not
1756 -- direct names (pragmas, pragma argument associations, attribute
1757 -- references and attribute definition clauses), the Chars field of the
1758 -- node contains the Name_Id for the identifier name.
1759
1760 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1761 -- cases. First, an incorrect use of a reserved word as an identifier is
1762 -- diagnosed and then treated as a normal identifier. Second, an
1763 -- attribute designator of the form of a reserved word (access, delta,
1764 -- digits, range) is treated as an identifier.
1765
1766 -- Note: The set of letters that is permitted in an identifier depends
1767 -- on the character set in use. See package Csets for full details.
1768
1769 -- N_Identifier
1770 -- Sloc points to identifier
1771 -- Chars (Name1) contains the Name_Id for the identifier
1772 -- Entity (Node4-Sem)
1773 -- Associated_Node (Node4-Sem)
1774 -- Original_Discriminant (Node2-Sem)
1775 -- Redundant_Use (Flag13-Sem)
1776 -- Has_Private_View (Flag11-Sem) (set in generic units)
1777 -- plus fields for expression
1778
1779 --------------------------
1780 -- 2.4 Numeric Literal --
1781 --------------------------
1782
1783 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1784
1785 ----------------------------
1786 -- 2.4.1 Decimal Literal --
1787 ----------------------------
1788
1789 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1790
1791 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1792
1793 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1794
1795 -- Decimal literals appear in the tree as either integer literal nodes
1796 -- or real literal nodes, depending on whether a period is present.
1797
1798 -- Note: literal nodes appear as a result of direct use of literals
1799 -- in the source program, and also as the result of evaluating
1800 -- expressions at compile time. In the latter case, it is possible
1801 -- to construct real literals that have no syntactic representation
1802 -- using the standard literal format. Such literals are listed by
1803 -- Sprint using the notation [numerator / denominator].
1804
1805 -- Note: the value of an integer literal node created by the front end
1806 -- is never outside the range of values of the base type. However, it
1807 -- can be the case that the value is outside the range of the
1808 -- particular subtype. This happens in the case of integer overflows
1809 -- with checks suppressed.
1810
1811 -- N_Integer_Literal
1812 -- Sloc points to literal
1813 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1814 -- has been constant-folded into its literal value.
1815 -- Intval (Uint3) contains integer value of literal
1816 -- plus fields for expression
1817 -- Print_In_Hex (Flag13-Sem)
1818
1819 -- N_Real_Literal
1820 -- Sloc points to literal
1821 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1822 -- has been constant-folded into its literal value.
1823 -- Realval (Ureal3) contains real value of literal
1824 -- Corresponding_Integer_Value (Uint4-Sem)
1825 -- Is_Machine_Number (Flag11-Sem)
1826 -- plus fields for expression
1827
1828 --------------------------
1829 -- 2.4.2 Based Literal --
1830 --------------------------
1831
1832 -- BASED_LITERAL ::=
1833 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1834
1835 -- BASE ::= NUMERAL
1836
1837 -- BASED_NUMERAL ::=
1838 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1839
1840 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1841
1842 -- Based literals appear in the tree as either integer literal nodes
1843 -- or real literal nodes, depending on whether a period is present.
1844
1845 ----------------------------
1846 -- 2.5 Character Literal --
1847 ----------------------------
1848
1849 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1850
1851 -- N_Character_Literal
1852 -- Sloc points to literal
1853 -- Chars (Name1) contains the Name_Id for the identifier
1854 -- Char_Literal_Value (Uint2) contains the literal value
1855 -- Entity (Node4-Sem)
1856 -- Associated_Node (Node4-Sem)
1857 -- Has_Private_View (Flag11-Sem) set in generic units.
1858 -- plus fields for expression
1859
1860 -- Note: the Entity field will be missing (set to Empty) for character
1861 -- literals whose type is Standard.Wide_Character or Standard.Character
1862 -- or a type derived from one of these two. In this case the character
1863 -- literal stands for its own coding. The reason we take this irregular
1864 -- short cut is to avoid the need to build lots of junk defining
1865 -- character literal nodes.
1866
1867 -------------------------
1868 -- 2.6 String Literal --
1869 -------------------------
1870
1871 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1872
1873 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1874 -- single GRAPHIC_CHARACTER other than a quotation mark.
1875 --
1876 -- Is_Folded_In_Parser is True if the parser created this literal by
1877 -- folding a sequence of "&" operators. For example, if the source code
1878 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1879 -- is set. This flag is needed because the parser doesn't know about
1880 -- visibility, so the folded result might be wrong, and semantic
1881 -- analysis needs to check for that.
1882
1883 -- N_String_Literal
1884 -- Sloc points to literal
1885 -- Strval (Str3) contains Id of string value
1886 -- Has_Wide_Character (Flag11-Sem)
1887 -- Is_Folded_In_Parser (Flag4)
1888 -- plus fields for expression
1889
1890 ------------------
1891 -- 2.7 Comment --
1892 ------------------
1893
1894 -- A COMMENT starts with two adjacent hyphens and extends up to the
1895 -- end of the line. A COMMENT may appear on any line of a program.
1896
1897 -- Comments are skipped by the scanner and do not appear in the tree.
1898 -- It is possible to reconstruct the position of comments with respect
1899 -- to the elements of the tree by using the source position (Sloc)
1900 -- pointers that appear in every tree node.
1901
1902 -----------------
1903 -- 2.8 Pragma --
1904 -----------------
1905
1906 -- PRAGMA ::= pragma IDENTIFIER
1907 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1908
1909 -- Note that a pragma may appear in the tree anywhere a declaration
1910 -- or a statement may appear, as well as in some other situations
1911 -- which are explicitly documented.
1912
1913 -- N_Pragma
1914 -- Sloc points to pragma identifier
1915 -- Next_Pragma (Node1-Sem)
1916 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1917 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1918 -- Pragma_Identifier (Node4)
1919 -- Next_Rep_Item (Node5-Sem)
1920 -- PPC_Enabled (Flag5-Sem)
1921
1922 -- Note: we should have a section on what pragmas are passed on to
1923 -- the back end to be processed. This section should note that pragma
1924 -- Psect_Object is always converted to Common_Object, but there are
1925 -- undoubtedly many other similar notes required ???
1926
1927 -- Note: a utility function Pragma_Name may be applied to pragma nodes
1928 -- to conveniently obtain the Chars field of the Pragma_Identifier.
1929
1930 --------------------------------------
1931 -- 2.8 Pragma Argument Association --
1932 --------------------------------------
1933
1934 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1935 -- [pragma_argument_IDENTIFIER =>] NAME
1936 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1937
1938 -- N_Pragma_Argument_Association
1939 -- Sloc points to first token in association
1940 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1941 -- Expression (Node3)
1942
1943 ------------------------
1944 -- 2.9 Reserved Word --
1945 ------------------------
1946
1947 -- Reserved words are parsed by the scanner, and returned as the
1948 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1949
1950 ----------------------------
1951 -- 3.1 Basic Declaration --
1952 ----------------------------
1953
1954 -- BASIC_DECLARATION ::=
1955 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1956 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1957 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1958 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1959 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1960 -- | GENERIC_INSTANTIATION
1961
1962 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1963 -- see further description in section on semantic nodes.
1964
1965 -- Also, in the tree that is constructed, a pragma may appear
1966 -- anywhere that a declaration may appear.
1967
1968 ------------------------------
1969 -- 3.1 Defining Identifier --
1970 ------------------------------
1971
1972 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1973
1974 -- A defining identifier is an entity, which has additional fields
1975 -- depending on the setting of the Ekind field. These additional
1976 -- fields are defined (and access subprograms declared) in package
1977 -- Einfo.
1978
1979 -- Note: N_Defining_Identifier is an extended node whose fields are
1980 -- deliberate layed out to match the layout of fields in an ordinary
1981 -- N_Identifier node allowing for easy alteration of an identifier
1982 -- node into a defining identifier node. For details, see procedure
1983 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1984
1985 -- N_Defining_Identifier
1986 -- Sloc points to identifier
1987 -- Chars (Name1) contains the Name_Id for the identifier
1988 -- Next_Entity (Node2-Sem)
1989 -- Scope (Node3-Sem)
1990 -- Etype (Node5-Sem)
1991
1992 -----------------------------
1993 -- 3.2.1 Type Declaration --
1994 -----------------------------
1995
1996 -- TYPE_DECLARATION ::=
1997 -- FULL_TYPE_DECLARATION
1998 -- | INCOMPLETE_TYPE_DECLARATION
1999 -- | PRIVATE_TYPE_DECLARATION
2000 -- | PRIVATE_EXTENSION_DECLARATION
2001
2002 ----------------------------------
2003 -- 3.2.1 Full Type Declaration --
2004 ----------------------------------
2005
2006 -- FULL_TYPE_DECLARATION ::=
2007 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2008 -- is TYPE_DEFINITION;
2009 -- | TASK_TYPE_DECLARATION
2010 -- | PROTECTED_TYPE_DECLARATION
2011
2012 -- The full type declaration node is used only for the first case. The
2013 -- second case (concurrent type declaration), is represented directly
2014 -- by a task type declaration or a protected type declaration.
2015
2016 -- N_Full_Type_Declaration
2017 -- Sloc points to TYPE
2018 -- Defining_Identifier (Node1)
2019 -- Discriminant_Specifications (List4) (set to No_List if none)
2020 -- Type_Definition (Node3)
2021 -- Discr_Check_Funcs_Built (Flag11-Sem)
2022
2023 ----------------------------
2024 -- 3.2.1 Type Definition --
2025 ----------------------------
2026
2027 -- TYPE_DEFINITION ::=
2028 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2029 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2030 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2031 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2032
2033 --------------------------------
2034 -- 3.2.2 Subtype Declaration --
2035 --------------------------------
2036
2037 -- SUBTYPE_DECLARATION ::=
2038 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2039
2040 -- The subtype indication field is set to Empty for subtypes
2041 -- declared in package Standard (Positive, Natural).
2042
2043 -- N_Subtype_Declaration
2044 -- Sloc points to SUBTYPE
2045 -- Defining_Identifier (Node1)
2046 -- Null_Exclusion_Present (Flag11)
2047 -- Subtype_Indication (Node5)
2048 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2049 -- Exception_Junk (Flag8-Sem)
2050
2051 -------------------------------
2052 -- 3.2.2 Subtype Indication --
2053 -------------------------------
2054
2055 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2056
2057 -- Note: if no constraint is present, the subtype indication appears
2058 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2059 -- node is used only if a constraint is present.
2060
2061 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2062 -- with the null-exclusion part (see AI-231), we had to introduce a new
2063 -- attribute in all the parents of subtype_indication nodes to indicate
2064 -- if the null-exclusion is present.
2065
2066 -- Note: the reason that this node has expression fields is that a
2067 -- subtype indication can appear as an operand of a membership test.
2068
2069 -- N_Subtype_Indication
2070 -- Sloc points to first token of subtype mark
2071 -- Subtype_Mark (Node4)
2072 -- Constraint (Node3)
2073 -- Etype (Node5-Sem)
2074 -- Must_Not_Freeze (Flag8-Sem)
2075
2076 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2077 -- reason for this redundancy is so that in a list of array index types,
2078 -- the Etype can be uniformly accessed to determine the subscript type.
2079 -- This means that no Itype is constructed for the actual subtype that
2080 -- is created by the subtype indication. If such an Itype is required,
2081 -- it is constructed in the context in which the indication appears.
2082
2083 -------------------------
2084 -- 3.2.2 Subtype Mark --
2085 -------------------------
2086
2087 -- SUBTYPE_MARK ::= subtype_NAME
2088
2089 -----------------------
2090 -- 3.2.2 Constraint --
2091 -----------------------
2092
2093 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2094
2095 ------------------------------
2096 -- 3.2.2 Scalar Constraint --
2097 ------------------------------
2098
2099 -- SCALAR_CONSTRAINT ::=
2100 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2101
2102 ---------------------------------
2103 -- 3.2.2 Composite Constraint --
2104 ---------------------------------
2105
2106 -- COMPOSITE_CONSTRAINT ::=
2107 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2108
2109 -------------------------------
2110 -- 3.3.1 Object Declaration --
2111 -------------------------------
2112
2113 -- OBJECT_DECLARATION ::=
2114 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2115 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2116 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2117 -- ACCESS_DEFINITION [:= EXPRESSION];
2118 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2119 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2120 -- | SINGLE_TASK_DECLARATION
2121 -- | SINGLE_PROTECTED_DECLARATION
2122
2123 -- Note: aliased is not permitted in Ada 83 mode
2124
2125 -- The N_Object_Declaration node is only for the first two cases.
2126 -- Single task declaration is handled by P_Task (9.1)
2127 -- Single protected declaration is handled by P_protected (9.5)
2128
2129 -- Although the syntax allows multiple identifiers in the list, the
2130 -- semantics is as though successive declarations were given with
2131 -- identical type definition and expression components. To simplify
2132 -- semantic processing, the parser represents a multiple declaration
2133 -- case as a sequence of single declarations, using the More_Ids and
2134 -- Prev_Ids flags to preserve the original source form as described
2135 -- in the section on "Handling of Defining Identifier Lists".
2136
2137 -- The flag Has_Init_Expression is set if an initializing expression
2138 -- is present. Normally it is set if and only if Expression contains
2139 -- a non-empty value, but there is an exception to this. When the
2140 -- initializing expression is an aggregate which requires explicit
2141 -- assignments, the Expression field gets set to Empty, but this flag
2142 -- is still set, so we don't forget we had an initializing expression.
2143
2144 -- Note: if a range check is required for the initialization
2145 -- expression then the Do_Range_Check flag is set in the Expression,
2146 -- with the check being done against the type given by the object
2147 -- definition, which is also the Etype of the defining identifier.
2148
2149 -- Note: the contents of the Expression field must be ignored (i.e.
2150 -- treated as though it were Empty) if No_Initialization is set True.
2151
2152 -- Note: the back end places some restrictions on the form of the
2153 -- Expression field. If the object being declared is Atomic, then
2154 -- the Expression may not have the form of an aggregate (since this
2155 -- might cause the back end to generate separate assignments). In this
2156 -- case the front end must generate an extra temporary and initialize
2157 -- this temporary as required (the temporary itself is not atomic).
2158
2159 -- Note: there is not node kind for object definition. Instead, the
2160 -- corresponding field holds a subtype indication, an array type
2161 -- definition, or (Ada 2005, AI-406) an access definition.
2162
2163 -- N_Object_Declaration
2164 -- Sloc points to first identifier
2165 -- Defining_Identifier (Node1)
2166 -- Aliased_Present (Flag4) set if ALIASED appears
2167 -- Constant_Present (Flag17) set if CONSTANT appears
2168 -- Null_Exclusion_Present (Flag11)
2169 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2170 -- Expression (Node3) (set to Empty if not present)
2171 -- Handler_List_Entry (Node2-Sem)
2172 -- Corresponding_Generic_Association (Node5-Sem)
2173 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2174 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2175 -- No_Initialization (Flag13-Sem)
2176 -- Assignment_OK (Flag15-Sem)
2177 -- Exception_Junk (Flag8-Sem)
2178 -- Is_Subprogram_Descriptor (Flag16-Sem)
2179 -- Has_Init_Expression (Flag14)
2180
2181 -------------------------------------
2182 -- 3.3.1 Defining Identifier List --
2183 -------------------------------------
2184
2185 -- DEFINING_IDENTIFIER_LIST ::=
2186 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2187
2188 -------------------------------
2189 -- 3.3.2 Number Declaration --
2190 -------------------------------
2191
2192 -- NUMBER_DECLARATION ::=
2193 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2194
2195 -- Although the syntax allows multiple identifiers in the list, the
2196 -- semantics is as though successive declarations were given with
2197 -- identical expressions. To simplify semantic processing, the parser
2198 -- represents a multiple declaration case as a sequence of single
2199 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2200 -- the original source form as described in the section on "Handling
2201 -- of Defining Identifier Lists".
2202
2203 -- N_Number_Declaration
2204 -- Sloc points to first identifier
2205 -- Defining_Identifier (Node1)
2206 -- Expression (Node3)
2207 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2208 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2209
2210 ----------------------------------
2211 -- 3.4 Derived Type Definition --
2212 ----------------------------------
2213
2214 -- DERIVED_TYPE_DEFINITION ::=
2215 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2216 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2217
2218 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2219 -- in Ada 83 mode
2220
2221 -- Note: a record extension part is required if ABSTRACT is present
2222
2223 -- N_Derived_Type_Definition
2224 -- Sloc points to NEW
2225 -- Abstract_Present (Flag4)
2226 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2227 -- Subtype_Indication (Node5)
2228 -- Record_Extension_Part (Node3) (set to Empty if not present)
2229 -- Limited_Present (Flag17)
2230 -- Task_Present (Flag5) set in task interfaces
2231 -- Protected_Present (Flag6) set in protected interfaces
2232 -- Synchronized_Present (Flag7) set in interfaces
2233 -- Interface_List (List2) (set to No_List if none)
2234 -- Interface_Present (Flag16) set in abstract interfaces
2235
2236 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2237 -- Interface_List, and Interface_Present are used for abstract
2238 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2239
2240 ---------------------------
2241 -- 3.5 Range Constraint --
2242 ---------------------------
2243
2244 -- RANGE_CONSTRAINT ::= range RANGE
2245
2246 -- N_Range_Constraint
2247 -- Sloc points to RANGE
2248 -- Range_Expression (Node4)
2249
2250 ----------------
2251 -- 3.5 Range --
2252 ----------------
2253
2254 -- RANGE ::=
2255 -- RANGE_ATTRIBUTE_REFERENCE
2256 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2257
2258 -- Note: the case of a range given as a range attribute reference
2259 -- appears directly in the tree as an attribute reference.
2260
2261 -- Note: the field name for a reference to a range is Range_Expression
2262 -- rather than Range, because range is a reserved keyword in Ada!
2263
2264 -- Note: the reason that this node has expression fields is that a
2265 -- range can appear as an operand of a membership test. The Etype
2266 -- field is the type of the range (we do NOT construct an implicit
2267 -- subtype to represent the range exactly).
2268
2269 -- N_Range
2270 -- Sloc points to ..
2271 -- Low_Bound (Node1)
2272 -- High_Bound (Node2)
2273 -- Includes_Infinities (Flag11)
2274 -- plus fields for expression
2275
2276 -- Note: if the range appears in a context, such as a subtype
2277 -- declaration, where range checks are required on one or both of
2278 -- the expression fields, then type conversion nodes are inserted
2279 -- to represent the required checks.
2280
2281 ----------------------------------------
2282 -- 3.5.1 Enumeration Type Definition --
2283 ----------------------------------------
2284
2285 -- ENUMERATION_TYPE_DEFINITION ::=
2286 -- (ENUMERATION_LITERAL_SPECIFICATION
2287 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2288
2289 -- Note: the Literals field in the node described below is null for
2290 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2291 -- which special processing handles these types as special cases.
2292
2293 -- N_Enumeration_Type_Definition
2294 -- Sloc points to left parenthesis
2295 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2296 -- End_Label (Node4) (set to Empty if internally generated record)
2297
2298 ----------------------------------------------
2299 -- 3.5.1 Enumeration Literal Specification --
2300 ----------------------------------------------
2301
2302 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2303 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2304
2305 ---------------------------------------
2306 -- 3.5.1 Defining Character Literal --
2307 ---------------------------------------
2308
2309 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2310
2311 -- A defining character literal is an entity, which has additional
2312 -- fields depending on the setting of the Ekind field. These
2313 -- additional fields are defined (and access subprograms declared)
2314 -- in package Einfo.
2315
2316 -- Note: N_Defining_Character_Literal is an extended node whose fields
2317 -- are deliberate layed out to match the layout of fields in an ordinary
2318 -- N_Character_Literal node allowing for easy alteration of a character
2319 -- literal node into a defining character literal node. For details, see
2320 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2321
2322 -- N_Defining_Character_Literal
2323 -- Sloc points to literal
2324 -- Chars (Name1) contains the Name_Id for the identifier
2325 -- Next_Entity (Node2-Sem)
2326 -- Scope (Node3-Sem)
2327 -- Etype (Node5-Sem)
2328
2329 ------------------------------------
2330 -- 3.5.4 Integer Type Definition --
2331 ------------------------------------
2332
2333 -- Note: there is an error in this rule in the latest version of the
2334 -- grammar, so we have retained the old rule pending clarification.
2335
2336 -- INTEGER_TYPE_DEFINITION ::=
2337 -- SIGNED_INTEGER_TYPE_DEFINITION
2338 -- | MODULAR_TYPE_DEFINITION
2339
2340 -------------------------------------------
2341 -- 3.5.4 Signed Integer Type Definition --
2342 -------------------------------------------
2343
2344 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2345 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2346
2347 -- Note: the Low_Bound and High_Bound fields are set to Empty
2348 -- for integer types defined in package Standard.
2349
2350 -- N_Signed_Integer_Type_Definition
2351 -- Sloc points to RANGE
2352 -- Low_Bound (Node1)
2353 -- High_Bound (Node2)
2354
2355 ------------------------------------
2356 -- 3.5.4 Modular Type Definition --
2357 ------------------------------------
2358
2359 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2360
2361 -- N_Modular_Type_Definition
2362 -- Sloc points to MOD
2363 -- Expression (Node3)
2364
2365 ---------------------------------
2366 -- 3.5.6 Real Type Definition --
2367 ---------------------------------
2368
2369 -- REAL_TYPE_DEFINITION ::=
2370 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2371
2372 --------------------------------------
2373 -- 3.5.7 Floating Point Definition --
2374 --------------------------------------
2375
2376 -- FLOATING_POINT_DEFINITION ::=
2377 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2378
2379 -- Note: The Digits_Expression and Real_Range_Specifications fields
2380 -- are set to Empty for floating-point types declared in Standard.
2381
2382 -- N_Floating_Point_Definition
2383 -- Sloc points to DIGITS
2384 -- Digits_Expression (Node2)
2385 -- Real_Range_Specification (Node4) (set to Empty if not present)
2386
2387 -------------------------------------
2388 -- 3.5.7 Real Range Specification --
2389 -------------------------------------
2390
2391 -- REAL_RANGE_SPECIFICATION ::=
2392 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2393
2394 -- N_Real_Range_Specification
2395 -- Sloc points to RANGE
2396 -- Low_Bound (Node1)
2397 -- High_Bound (Node2)
2398
2399 -----------------------------------
2400 -- 3.5.9 Fixed Point Definition --
2401 -----------------------------------
2402
2403 -- FIXED_POINT_DEFINITION ::=
2404 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2405
2406 --------------------------------------------
2407 -- 3.5.9 Ordinary Fixed Point Definition --
2408 --------------------------------------------
2409
2410 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2411 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2412
2413 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2414
2415 -- N_Ordinary_Fixed_Point_Definition
2416 -- Sloc points to DELTA
2417 -- Delta_Expression (Node3)
2418 -- Real_Range_Specification (Node4)
2419
2420 -------------------------------------------
2421 -- 3.5.9 Decimal Fixed Point Definition --
2422 -------------------------------------------
2423
2424 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2425 -- delta static_EXPRESSION
2426 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2427
2428 -- Note: decimal types are not permitted in Ada 83 mode
2429
2430 -- N_Decimal_Fixed_Point_Definition
2431 -- Sloc points to DELTA
2432 -- Delta_Expression (Node3)
2433 -- Digits_Expression (Node2)
2434 -- Real_Range_Specification (Node4) (set to Empty if not present)
2435
2436 ------------------------------
2437 -- 3.5.9 Digits Constraint --
2438 ------------------------------
2439
2440 -- DIGITS_CONSTRAINT ::=
2441 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2442
2443 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2444 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2445
2446 -- N_Digits_Constraint
2447 -- Sloc points to DIGITS
2448 -- Digits_Expression (Node2)
2449 -- Range_Constraint (Node4) (set to Empty if not present)
2450
2451 --------------------------------
2452 -- 3.6 Array Type Definition --
2453 --------------------------------
2454
2455 -- ARRAY_TYPE_DEFINITION ::=
2456 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2457
2458 -----------------------------------------
2459 -- 3.6 Unconstrained Array Definition --
2460 -----------------------------------------
2461
2462 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2463 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2464 -- COMPONENT_DEFINITION
2465
2466 -- Note: dimensionality of array is indicated by number of entries in
2467 -- the Subtype_Marks list, which has one entry for each dimension.
2468
2469 -- N_Unconstrained_Array_Definition
2470 -- Sloc points to ARRAY
2471 -- Subtype_Marks (List2)
2472 -- Component_Definition (Node4)
2473
2474 -----------------------------------
2475 -- 3.6 Index Subtype Definition --
2476 -----------------------------------
2477
2478 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2479
2480 -- There is no explicit node in the tree for an index subtype
2481 -- definition since the N_Unconstrained_Array_Definition node
2482 -- incorporates the type marks which appear in this context.
2483
2484 ---------------------------------------
2485 -- 3.6 Constrained Array Definition --
2486 ---------------------------------------
2487
2488 -- CONSTRAINED_ARRAY_DEFINITION ::=
2489 -- array (DISCRETE_SUBTYPE_DEFINITION
2490 -- {, DISCRETE_SUBTYPE_DEFINITION})
2491 -- of COMPONENT_DEFINITION
2492
2493 -- Note: dimensionality of array is indicated by number of entries
2494 -- in the Discrete_Subtype_Definitions list, which has one entry
2495 -- for each dimension.
2496
2497 -- N_Constrained_Array_Definition
2498 -- Sloc points to ARRAY
2499 -- Discrete_Subtype_Definitions (List2)
2500 -- Component_Definition (Node4)
2501
2502 --------------------------------------
2503 -- 3.6 Discrete Subtype Definition --
2504 --------------------------------------
2505
2506 -- DISCRETE_SUBTYPE_DEFINITION ::=
2507 -- discrete_SUBTYPE_INDICATION | RANGE
2508
2509 -------------------------------
2510 -- 3.6 Component Definition --
2511 -------------------------------
2512
2513 -- COMPONENT_DEFINITION ::=
2514 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2515
2516 -- Note: although the syntax does not permit a component definition to
2517 -- be an anonymous array (and the parser will diagnose such an attempt
2518 -- with an appropriate message), it is possible for anonymous arrays
2519 -- to appear as component definitions. The semantics and back end handle
2520 -- this case properly, and the expander in fact generates such cases.
2521 -- Access_Definition is an optional field that gives support to
2522 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2523 -- Subtype_Indication field or else the Access_Definition field.
2524
2525 -- N_Component_Definition
2526 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2527 -- Aliased_Present (Flag4)
2528 -- Null_Exclusion_Present (Flag11)
2529 -- Subtype_Indication (Node5) (set to Empty if not present)
2530 -- Access_Definition (Node3) (set to Empty if not present)
2531
2532 -----------------------------
2533 -- 3.6.1 Index Constraint --
2534 -----------------------------
2535
2536 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2537
2538 -- It is not in general possible to distinguish between discriminant
2539 -- constraints and index constraints at parse time, since a simple
2540 -- name could be either the subtype mark of a discrete range, or an
2541 -- expression in a discriminant association with no name. Either
2542 -- entry appears simply as the name, and the semantic parse must
2543 -- distinguish between the two cases. Thus we use a common tree
2544 -- node format for both of these constraint types.
2545
2546 -- See Discriminant_Constraint for format of node
2547
2548 ---------------------------
2549 -- 3.6.1 Discrete Range --
2550 ---------------------------
2551
2552 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2553
2554 ----------------------------
2555 -- 3.7 Discriminant Part --
2556 ----------------------------
2557
2558 -- DISCRIMINANT_PART ::=
2559 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2560
2561 ------------------------------------
2562 -- 3.7 Unknown Discriminant Part --
2563 ------------------------------------
2564
2565 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2566
2567 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2568
2569 -- There is no explicit node in the tree for an unknown discriminant
2570 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2571 -- parent node.
2572
2573 ----------------------------------
2574 -- 3.7 Known Discriminant Part --
2575 ----------------------------------
2576
2577 -- KNOWN_DISCRIMINANT_PART ::=
2578 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2579
2580 -------------------------------------
2581 -- 3.7 Discriminant Specification --
2582 -------------------------------------
2583
2584 -- DISCRIMINANT_SPECIFICATION ::=
2585 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2586 -- [:= DEFAULT_EXPRESSION]
2587 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2588 -- [:= DEFAULT_EXPRESSION]
2589
2590 -- Although the syntax allows multiple identifiers in the list, the
2591 -- semantics is as though successive specifications were given with
2592 -- identical type definition and expression components. To simplify
2593 -- semantic processing, the parser represents a multiple declaration
2594 -- case as a sequence of single specifications, using the More_Ids and
2595 -- Prev_Ids flags to preserve the original source form as described
2596 -- in the section on "Handling of Defining Identifier Lists".
2597
2598 -- N_Discriminant_Specification
2599 -- Sloc points to first identifier
2600 -- Defining_Identifier (Node1)
2601 -- Null_Exclusion_Present (Flag11)
2602 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2603 -- Expression (Node3) (set to Empty if no default expression)
2604 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2605 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2606
2607 -----------------------------
2608 -- 3.7 Default Expression --
2609 -----------------------------
2610
2611 -- DEFAULT_EXPRESSION ::= EXPRESSION
2612
2613 ------------------------------------
2614 -- 3.7.1 Discriminant Constraint --
2615 ------------------------------------
2616
2617 -- DISCRIMINANT_CONSTRAINT ::=
2618 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2619
2620 -- It is not in general possible to distinguish between discriminant
2621 -- constraints and index constraints at parse time, since a simple
2622 -- name could be either the subtype mark of a discrete range, or an
2623 -- expression in a discriminant association with no name. Either
2624 -- entry appears simply as the name, and the semantic parse must
2625 -- distinguish between the two cases. Thus we use a common tree
2626 -- node format for both of these constraint types.
2627
2628 -- N_Index_Or_Discriminant_Constraint
2629 -- Sloc points to left paren
2630 -- Constraints (List1) points to list of discrete ranges or
2631 -- discriminant associations
2632
2633 -------------------------------------
2634 -- 3.7.1 Discriminant Association --
2635 -------------------------------------
2636
2637 -- DISCRIMINANT_ASSOCIATION ::=
2638 -- [discriminant_SELECTOR_NAME
2639 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2640
2641 -- Note: a discriminant association that has no selector name list
2642 -- appears directly as an expression in the tree.
2643
2644 -- N_Discriminant_Association
2645 -- Sloc points to first token of discriminant association
2646 -- Selector_Names (List1) (always non-empty, since if no selector
2647 -- names are present, this node is not used, see comment above)
2648 -- Expression (Node3)
2649
2650 ---------------------------------
2651 -- 3.8 Record Type Definition --
2652 ---------------------------------
2653
2654 -- RECORD_TYPE_DEFINITION ::=
2655 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2656
2657 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2658
2659 -- There is no explicit node in the tree for a record type definition.
2660 -- Instead the flags for Tagged_Present and Limited_Present appear in
2661 -- the N_Record_Definition node for a record definition appearing in
2662 -- the context of a record type definition.
2663
2664 ----------------------------
2665 -- 3.8 Record Definition --
2666 ----------------------------
2667
2668 -- RECORD_DEFINITION ::=
2669 -- record
2670 -- COMPONENT_LIST
2671 -- end record
2672 -- | null record
2673
2674 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2675 -- flags appear only for a record definition appearing in a record
2676 -- type definition.
2677
2678 -- Note: the NULL RECORD case is not permitted in Ada 83
2679
2680 -- N_Record_Definition
2681 -- Sloc points to RECORD or NULL
2682 -- End_Label (Node4) (set to Empty if internally generated record)
2683 -- Abstract_Present (Flag4)
2684 -- Tagged_Present (Flag15)
2685 -- Limited_Present (Flag17)
2686 -- Component_List (Node1) empty in null record case
2687 -- Null_Present (Flag13) set in null record case
2688 -- Task_Present (Flag5) set in task interfaces
2689 -- Protected_Present (Flag6) set in protected interfaces
2690 -- Synchronized_Present (Flag7) set in interfaces
2691 -- Interface_Present (Flag16) set in abstract interfaces
2692 -- Interface_List (List2) (set to No_List if none)
2693
2694 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2695 -- Interface_List and Interface_Present are used for abstract
2696 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2697
2698 -------------------------
2699 -- 3.8 Component List --
2700 -------------------------
2701
2702 -- COMPONENT_LIST ::=
2703 -- COMPONENT_ITEM {COMPONENT_ITEM}
2704 -- | {COMPONENT_ITEM} VARIANT_PART
2705 -- | null;
2706
2707 -- N_Component_List
2708 -- Sloc points to first token of component list
2709 -- Component_Items (List3)
2710 -- Variant_Part (Node4) (set to Empty if no variant part)
2711 -- Null_Present (Flag13)
2712
2713 -------------------------
2714 -- 3.8 Component Item --
2715 -------------------------
2716
2717 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2718
2719 -- Note: A component item can also be a pragma, and in the tree
2720 -- that is obtained after semantic processing, a component item
2721 -- can be an N_Null node resulting from a non-recognized pragma.
2722
2723 --------------------------------
2724 -- 3.8 Component Declaration --
2725 --------------------------------
2726
2727 -- COMPONENT_DECLARATION ::=
2728 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2729 -- [:= DEFAULT_EXPRESSION]
2730
2731 -- Note: although the syntax does not permit a component definition to
2732 -- be an anonymous array (and the parser will diagnose such an attempt
2733 -- with an appropriate message), it is possible for anonymous arrays
2734 -- to appear as component definitions. The semantics and back end handle
2735 -- this case properly, and the expander in fact generates such cases.
2736
2737 -- Although the syntax allows multiple identifiers in the list, the
2738 -- semantics is as though successive declarations were given with the
2739 -- same component definition and expression components. To simplify
2740 -- semantic processing, the parser represents a multiple declaration
2741 -- case as a sequence of single declarations, using the More_Ids and
2742 -- Prev_Ids flags to preserve the original source form as described
2743 -- in the section on "Handling of Defining Identifier Lists".
2744
2745 -- N_Component_Declaration
2746 -- Sloc points to first identifier
2747 -- Defining_Identifier (Node1)
2748 -- Component_Definition (Node4)
2749 -- Expression (Node3) (set to Empty if no default expression)
2750 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2751 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2752
2753 -------------------------
2754 -- 3.8.1 Variant Part --
2755 -------------------------
2756
2757 -- VARIANT_PART ::=
2758 -- case discriminant_DIRECT_NAME is
2759 -- VARIANT
2760 -- {VARIANT}
2761 -- end case;
2762
2763 -- Note: the variants list can contain pragmas as well as variants.
2764 -- In a properly formed program there is at least one variant.
2765
2766 -- N_Variant_Part
2767 -- Sloc points to CASE
2768 -- Name (Node2)
2769 -- Variants (List1)
2770
2771 --------------------
2772 -- 3.8.1 Variant --
2773 --------------------
2774
2775 -- VARIANT ::=
2776 -- when DISCRETE_CHOICE_LIST =>
2777 -- COMPONENT_LIST
2778
2779 -- N_Variant
2780 -- Sloc points to WHEN
2781 -- Discrete_Choices (List4)
2782 -- Component_List (Node1)
2783 -- Enclosing_Variant (Node2-Sem)
2784 -- Present_Expr (Uint3-Sem)
2785 -- Dcheck_Function (Node5-Sem)
2786
2787 ---------------------------------
2788 -- 3.8.1 Discrete Choice List --
2789 ---------------------------------
2790
2791 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2792
2793 ----------------------------
2794 -- 3.8.1 Discrete Choice --
2795 ----------------------------
2796
2797 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2798
2799 -- Note: in Ada 83 mode, the expression must be a simple expression
2800
2801 -- The only choice that appears explicitly is the OTHERS choice, as
2802 -- defined here. Other cases of discrete choice (expression and
2803 -- discrete range) appear directly. This production is also used
2804 -- for the OTHERS possibility of an exception choice.
2805
2806 -- Note: in accordance with the syntax, the parser does not check that
2807 -- OTHERS appears at the end on its own in a choice list context. This
2808 -- is a semantic check.
2809
2810 -- N_Others_Choice
2811 -- Sloc points to OTHERS
2812 -- Others_Discrete_Choices (List1-Sem)
2813 -- All_Others (Flag11-Sem)
2814
2815 ----------------------------------
2816 -- 3.9.1 Record Extension Part --
2817 ----------------------------------
2818
2819 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2820
2821 -- Note: record extension parts are not permitted in Ada 83 mode
2822
2823 --------------------------------------
2824 -- 3.9.4 Interface Type Definition --
2825 --------------------------------------
2826
2827 -- INTERFACE_TYPE_DEFINITION ::=
2828 -- [limited | task | protected | synchronized]
2829 -- interface [interface_list]
2830
2831 -- Note: Interfaces are implemented with N_Record_Definition and
2832 -- N_Derived_Type_Definition nodes because most of the support
2833 -- for the analysis of abstract types has been reused to
2834 -- analyze abstract interfaces.
2835
2836 ----------------------------------
2837 -- 3.10 Access Type Definition --
2838 ----------------------------------
2839
2840 -- ACCESS_TYPE_DEFINITION ::=
2841 -- ACCESS_TO_OBJECT_DEFINITION
2842 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2843
2844 --------------------------
2845 -- 3.10 Null Exclusion --
2846 --------------------------
2847
2848 -- NULL_EXCLUSION ::= not null
2849
2850 ---------------------------------------
2851 -- 3.10 Access To Object Definition --
2852 ---------------------------------------
2853
2854 -- ACCESS_TO_OBJECT_DEFINITION ::=
2855 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2856 -- SUBTYPE_INDICATION
2857
2858 -- N_Access_To_Object_Definition
2859 -- Sloc points to ACCESS
2860 -- All_Present (Flag15)
2861 -- Null_Exclusion_Present (Flag11)
2862 -- Subtype_Indication (Node5)
2863 -- Constant_Present (Flag17)
2864
2865 -----------------------------------
2866 -- 3.10 General Access Modifier --
2867 -----------------------------------
2868
2869 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2870
2871 -- Note: general access modifiers are not permitted in Ada 83 mode
2872
2873 -- There is no explicit node in the tree for general access modifier.
2874 -- Instead the All_Present or Constant_Present flags are set in the
2875 -- parent node.
2876
2877 -------------------------------------------
2878 -- 3.10 Access To Subprogram Definition --
2879 -------------------------------------------
2880
2881 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2882 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2883 -- | [NULL_EXCLUSION] access [protected] function
2884 -- PARAMETER_AND_RESULT_PROFILE
2885
2886 -- Note: access to subprograms are not permitted in Ada 83 mode
2887
2888 -- N_Access_Function_Definition
2889 -- Sloc points to ACCESS
2890 -- Null_Exclusion_Present (Flag11)
2891 -- Null_Exclusion_In_Return_Present (Flag14)
2892 -- Protected_Present (Flag6)
2893 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2894 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2895
2896 -- N_Access_Procedure_Definition
2897 -- Sloc points to ACCESS
2898 -- Null_Exclusion_Present (Flag11)
2899 -- Protected_Present (Flag6)
2900 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2901
2902 -----------------------------
2903 -- 3.10 Access Definition --
2904 -----------------------------
2905
2906 -- ACCESS_DEFINITION ::=
2907 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2908 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2909
2910 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2911
2912 -- N_Access_Definition
2913 -- Sloc points to ACCESS
2914 -- Null_Exclusion_Present (Flag11)
2915 -- All_Present (Flag15)
2916 -- Constant_Present (Flag17)
2917 -- Subtype_Mark (Node4)
2918 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2919
2920 -----------------------------------------
2921 -- 3.10.1 Incomplete Type Declaration --
2922 -----------------------------------------
2923
2924 -- INCOMPLETE_TYPE_DECLARATION ::=
2925 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2926
2927 -- N_Incomplete_Type_Declaration
2928 -- Sloc points to TYPE
2929 -- Defining_Identifier (Node1)
2930 -- Discriminant_Specifications (List4) (set to No_List if no
2931 -- discriminant part, or if the discriminant part is an
2932 -- unknown discriminant part)
2933 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2934 -- Tagged_Present (Flag15)
2935
2936 ----------------------------
2937 -- 3.11 Declarative Part --
2938 ----------------------------
2939
2940 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2941
2942 -- Note: although the parser enforces the syntactic requirement that
2943 -- a declarative part can contain only declarations, the semantic
2944 -- processing may add statements to the list of actions in a
2945 -- declarative part, so the code generator should be prepared
2946 -- to accept a statement in this position.
2947
2948 ----------------------------
2949 -- 3.11 Declarative Item --
2950 ----------------------------
2951
2952 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2953
2954 ----------------------------------
2955 -- 3.11 Basic Declarative Item --
2956 ----------------------------------
2957
2958 -- BASIC_DECLARATIVE_ITEM ::=
2959 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2960
2961 ----------------
2962 -- 3.11 Body --
2963 ----------------
2964
2965 -- BODY ::= PROPER_BODY | BODY_STUB
2966
2967 -----------------------
2968 -- 3.11 Proper Body --
2969 -----------------------
2970
2971 -- PROPER_BODY ::=
2972 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2973
2974 ---------------
2975 -- 4.1 Name --
2976 ---------------
2977
2978 -- NAME ::=
2979 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2980 -- | INDEXED_COMPONENT | SLICE
2981 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2982 -- | TYPE_CONVERSION | FUNCTION_CALL
2983 -- | CHARACTER_LITERAL
2984
2985 ----------------------
2986 -- 4.1 Direct Name --
2987 ----------------------
2988
2989 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2990
2991 -----------------
2992 -- 4.1 Prefix --
2993 -----------------
2994
2995 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2996
2997 -------------------------------
2998 -- 4.1 Explicit Dereference --
2999 -------------------------------
3000
3001 -- EXPLICIT_DEREFERENCE ::= NAME . all
3002
3003 -- N_Explicit_Dereference
3004 -- Sloc points to ALL
3005 -- Prefix (Node3)
3006 -- Actual_Designated_Subtype (Node4-Sem)
3007 -- plus fields for expression
3008
3009 -------------------------------
3010 -- 4.1 Implicit Dereference --
3011 -------------------------------
3012
3013 -- IMPLICIT_DEREFERENCE ::= NAME
3014
3015 ------------------------------
3016 -- 4.1.1 Indexed Component --
3017 ------------------------------
3018
3019 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3020
3021 -- Note: the parser may generate this node in some situations where it
3022 -- should be a function call. The semantic pass must correct this
3023 -- misidentification (which is inevitable at the parser level).
3024
3025 -- N_Indexed_Component
3026 -- Sloc contains a copy of the Sloc value of the Prefix
3027 -- Prefix (Node3)
3028 -- Expressions (List1)
3029 -- plus fields for expression
3030
3031 -- Note: if any of the subscripts requires a range check, then the
3032 -- Do_Range_Check flag is set on the corresponding expression, with
3033 -- the index type being determined from the type of the Prefix, which
3034 -- references the array being indexed.
3035
3036 -- Note: in a fully analyzed and expanded indexed component node, and
3037 -- hence in any such node that gigi sees, if the prefix is an access
3038 -- type, then an explicit dereference operation has been inserted.
3039
3040 ------------------
3041 -- 4.1.2 Slice --
3042 ------------------
3043
3044 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3045
3046 -- Note: an implicit subtype is created to describe the resulting
3047 -- type, so that the bounds of this type are the bounds of the slice.
3048
3049 -- N_Slice
3050 -- Sloc points to first token of prefix
3051 -- Prefix (Node3)
3052 -- Discrete_Range (Node4)
3053 -- plus fields for expression
3054
3055 -------------------------------
3056 -- 4.1.3 Selected Component --
3057 -------------------------------
3058
3059 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3060
3061 -- Note: selected components that are semantically expanded names get
3062 -- changed during semantic processing into the separate N_Expanded_Name
3063 -- node. See description of this node in the section on semantic nodes.
3064
3065 -- N_Selected_Component
3066 -- Sloc points to period
3067 -- Prefix (Node3)
3068 -- Selector_Name (Node2)
3069 -- Associated_Node (Node4-Sem)
3070 -- Do_Discriminant_Check (Flag13-Sem)
3071 -- Is_In_Discriminant_Check (Flag11-Sem)
3072 -- plus fields for expression
3073
3074 --------------------------
3075 -- 4.1.3 Selector Name --
3076 --------------------------
3077
3078 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3079
3080 --------------------------------
3081 -- 4.1.4 Attribute Reference --
3082 --------------------------------
3083
3084 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3085
3086 -- Note: the syntax is quite ambiguous at this point. Consider:
3087
3088 -- A'Length (X) X is part of the attribute designator
3089 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3090 -- A'Class (X) X is the expression of a type conversion
3091
3092 -- It would be possible for the parser to distinguish these cases
3093 -- by looking at the attribute identifier. However, that would mean
3094 -- more work in introducing new implementation defined attributes,
3095 -- and also it would mean that special processing for attributes
3096 -- would be scattered around, instead of being centralized in the
3097 -- semantic routine that handles an N_Attribute_Reference node.
3098 -- Consequently, the parser in all the above cases stores the
3099 -- expression (X in these examples) as a single element list in
3100 -- in the Expressions field of the N_Attribute_Reference node.
3101
3102 -- Similarly, for attributes like Max which take two arguments,
3103 -- we store the two arguments as a two element list in the
3104 -- Expressions field. Of course it is clear at parse time that
3105 -- this case is really a function call with an attribute as the
3106 -- prefix, but it turns out to be convenient to handle the two
3107 -- argument case in a similar manner to the one argument case,
3108 -- and indeed in general the parser will accept any number of
3109 -- expressions in this position and store them as a list in the
3110 -- attribute reference node. This allows for future addition of
3111 -- attributes that take more than two arguments.
3112
3113 -- Note: named associates are not permitted in function calls where
3114 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3115 -- to skip the normal subprogram argument processing.
3116
3117 -- Note: for the attributes whose designators are technically keywords,
3118 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3119 -- the corresponding name, even though no identifier is involved.
3120
3121 -- Note: the generated code may contain stream attributes applied to
3122 -- limited types for which no stream routines exist officially. In such
3123 -- case, the result is to use the stream attribute for the underlying
3124 -- full type, or in the case of a protected type, the components
3125 -- (including any discriminants) are merely streamed in order.
3126
3127 -- See Exp_Attr for a complete description of which attributes are
3128 -- passed onto Gigi, and which are handled entirely by the front end.
3129
3130 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3131 -- a non-standard enumeration type or a nonzero/zero semantics
3132 -- boolean type, so the value is simply the stored representation.
3133
3134 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3135 -- references a subprogram that is a renaming, then the front end must
3136 -- rewrite the attribute to refer directly to the renamed entity.
3137
3138 -- Note: In generated code, the Address and Unrestricted_Access
3139 -- attributes can be applied to any expression, and the meaning is
3140 -- to create an object containing the value (the object is in the
3141 -- current stack frame), and pass the address of this value. If the
3142 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3143 -- is taken must be on a byte (storage unit) boundary, and if it is
3144 -- not (or may not be), then the generated code must create a copy
3145 -- that is byte aligned, and pass the address of this copy.
3146
3147 -- N_Attribute_Reference
3148 -- Sloc points to apostrophe
3149 -- Prefix (Node3)
3150 -- Attribute_Name (Name2) identifier name from attribute designator
3151 -- Expressions (List1) (set to No_List if no associated expressions)
3152 -- Entity (Node4-Sem) used if the attribute yields a type
3153 -- Associated_Node (Node4-Sem)
3154 -- Do_Overflow_Check (Flag17-Sem)
3155 -- Redundant_Use (Flag13-Sem)
3156 -- Must_Be_Byte_Aligned (Flag14)
3157 -- plus fields for expression
3158
3159 ---------------------------------
3160 -- 4.1.4 Attribute Designator --
3161 ---------------------------------
3162
3163 -- ATTRIBUTE_DESIGNATOR ::=
3164 -- IDENTIFIER [(static_EXPRESSION)]
3165 -- | access | delta | digits
3166
3167 -- There is no explicit node in the tree for an attribute designator.
3168 -- Instead the Attribute_Name and Expressions fields of the parent
3169 -- node (N_Attribute_Reference node) hold the information.
3170
3171 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3172 -- designator, then they are treated as identifiers internally
3173 -- rather than the keywords of the same name.
3174
3175 --------------------------------------
3176 -- 4.1.4 Range Attribute Reference --
3177 --------------------------------------
3178
3179 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3180
3181 -- A range attribute reference is represented in the tree using the
3182 -- normal N_Attribute_Reference node.
3183
3184 ---------------------------------------
3185 -- 4.1.4 Range Attribute Designator --
3186 ---------------------------------------
3187
3188 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3189
3190 -- A range attribute designator is represented in the tree using the
3191 -- normal N_Attribute_Reference node.
3192
3193 --------------------
3194 -- 4.3 Aggregate --
3195 --------------------
3196
3197 -- AGGREGATE ::=
3198 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3199
3200 -----------------------------
3201 -- 4.3.1 Record Aggregate --
3202 -----------------------------
3203
3204 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3205
3206 -- N_Aggregate
3207 -- Sloc points to left parenthesis
3208 -- Expressions (List1) (set to No_List if none or null record case)
3209 -- Component_Associations (List2) (set to No_List if none)
3210 -- Null_Record_Present (Flag17)
3211 -- Aggregate_Bounds (Node3-Sem)
3212 -- Associated_Node (Node4-Sem)
3213 -- Static_Processing_OK (Flag4-Sem)
3214 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3215 -- Expansion_Delayed (Flag11-Sem)
3216 -- Has_Self_Reference (Flag13-Sem)
3217 -- plus fields for expression
3218
3219 -- Note: this structure is used for both record and array aggregates
3220 -- since the two cases are not separable by the parser. The parser
3221 -- makes no attempt to enforce consistency here, so it is up to the
3222 -- semantic phase to make sure that the aggregate is consistent (i.e.
3223 -- that it is not a "half-and-half" case that mixes record and array
3224 -- syntax. In particular, for a record aggregate, the expressions
3225 -- field will be set if there are positional associations.
3226
3227 -- Note: N_Aggregate is not used for all aggregates; in particular,
3228 -- there is a separate node kind for extension aggregates.
3229
3230 -- Note: gigi/gcc can handle array aggregates correctly providing that
3231 -- they are entirely positional, and the array subtype involved has a
3232 -- known at compile time length and is not bit packed, or a convention
3233 -- Fortran array with more than one dimension. If these conditions
3234 -- are not met, then the front end must translate the aggregate into
3235 -- an appropriate set of assignments into a temporary.
3236
3237 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3238 -- of record aggregates, including those for packed, and rep-claused
3239 -- records, and also variant records, providing that there are no
3240 -- variable length fields whose size is not known at runtime, and
3241 -- providing that the aggregate is presented in fully named form.
3242
3243 ----------------------------------------------
3244 -- 4.3.1 Record Component Association List --
3245 ----------------------------------------------
3246
3247 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3248 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3249 -- | null record
3250
3251 -- There is no explicit node in the tree for a record component
3252 -- association list. Instead the Null_Record_Present flag is set in
3253 -- the parent node for the NULL RECORD case.
3254
3255 ------------------------------------------------------
3256 -- 4.3.1 Record Component Association (also 4.3.3) --
3257 ------------------------------------------------------
3258
3259 -- RECORD_COMPONENT_ASSOCIATION ::=
3260 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3261
3262 -- N_Component_Association
3263 -- Sloc points to first selector name
3264 -- Choices (List1)
3265 -- Loop_Actions (List2-Sem)
3266 -- Expression (Node3)
3267 -- Box_Present (Flag15)
3268
3269 -- Note: this structure is used for both record component associations
3270 -- and array component associations, since the two cases aren't always
3271 -- separable by the parser. The choices list may represent either a
3272 -- list of selector names in the record aggregate case, or a list of
3273 -- discrete choices in the array aggregate case or an N_Others_Choice
3274 -- node (which appears as a singleton list). Box_Present gives support
3275 -- to Ada 2005 (AI-287).
3276
3277 ----------------------------------
3278 -- 4.3.1 Component Choice List --
3279 ----------------------------------
3280
3281 -- COMPONENT_CHOICE_LIST ::=
3282 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3283 -- | others
3284
3285 -- The entries of a component choice list appear in the Choices list of
3286 -- the associated N_Component_Association, as either selector names, or
3287 -- as an N_Others_Choice node.
3288
3289 --------------------------------
3290 -- 4.3.2 Extension Aggregate --
3291 --------------------------------
3292
3293 -- EXTENSION_AGGREGATE ::=
3294 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3295
3296 -- Note: extension aggregates are not permitted in Ada 83 mode
3297
3298 -- N_Extension_Aggregate
3299 -- Sloc points to left parenthesis
3300 -- Ancestor_Part (Node3)
3301 -- Associated_Node (Node4-Sem)
3302 -- Expressions (List1) (set to No_List if none or null record case)
3303 -- Component_Associations (List2) (set to No_List if none)
3304 -- Null_Record_Present (Flag17)
3305 -- Expansion_Delayed (Flag11-Sem)
3306 -- Has_Self_Reference (Flag13-Sem)
3307 -- plus fields for expression
3308
3309 --------------------------
3310 -- 4.3.2 Ancestor Part --
3311 --------------------------
3312
3313 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3314
3315 ----------------------------
3316 -- 4.3.3 Array Aggregate --
3317 ----------------------------
3318
3319 -- ARRAY_AGGREGATE ::=
3320 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3321
3322 ---------------------------------------
3323 -- 4.3.3 Positional Array Aggregate --
3324 ---------------------------------------
3325
3326 -- POSITIONAL_ARRAY_AGGREGATE ::=
3327 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3328 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3329
3330 -- See Record_Aggregate (4.3.1) for node structure
3331
3332 ----------------------------------
3333 -- 4.3.3 Named Array Aggregate --
3334 ----------------------------------
3335
3336 -- NAMED_ARRAY_AGGREGATE ::=
3337 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3338
3339 -- See Record_Aggregate (4.3.1) for node structure
3340
3341 ----------------------------------------
3342 -- 4.3.3 Array Component Association --
3343 ----------------------------------------
3344
3345 -- ARRAY_COMPONENT_ASSOCIATION ::=
3346 -- DISCRETE_CHOICE_LIST => EXPRESSION
3347
3348 -- See Record_Component_Association (4.3.1) for node structure
3349
3350 --------------------------------------------------
3351 -- 4.4 Expression/Relation/Term/Factor/Primary --
3352 --------------------------------------------------
3353
3354 -- EXPRESSION ::=
3355 -- RELATION {and RELATION} | RELATION {and then RELATION}
3356 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3357 -- | RELATION {xor RELATION}
3358
3359 -- RELATION ::=
3360 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3361 -- | SIMPLE_EXPRESSION [not] in RANGE
3362 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3363
3364 -- SIMPLE_EXPRESSION ::=
3365 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3366
3367 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3368
3369 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3370
3371 -- No nodes are generated for any of these constructs. Instead, the
3372 -- node for the operator appears directly. When we refer to an
3373 -- expression in this description, we mean any of the possible
3374 -- constituent components of an expression (e.g. identifier is
3375 -- an example of an expression).
3376
3377 ------------------
3378 -- 4.4 Primary --
3379 ------------------
3380
3381 -- PRIMARY ::=
3382 -- NUMERIC_LITERAL | null
3383 -- | STRING_LITERAL | AGGREGATE
3384 -- | NAME | QUALIFIED_EXPRESSION
3385 -- | ALLOCATOR | (EXPRESSION)
3386
3387 -- Usually there is no explicit node in the tree for primary. Instead
3388 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3389 -- exceptions. First, there is an explicit node for a null primary.
3390
3391 -- N_Null
3392 -- Sloc points to NULL
3393 -- plus fields for expression
3394
3395 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3396 -- that the parser keep track of which subexpressions are enclosed
3397 -- in parentheses, and how many levels of parentheses are used. This
3398 -- information is required for optimization purposes, and also for
3399 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3400 -- conform with ((((1)))) in the body).
3401
3402 -- The parentheses are recorded by keeping a Paren_Count field in every
3403 -- subexpression node (it is actually present in all nodes, but only
3404 -- used in subexpression nodes). This count records the number of
3405 -- levels of parentheses. If the number of levels in the source exceeds
3406 -- the maximum accommodated by this count, then the count is simply left
3407 -- at the maximum value. This means that there are some pathological
3408 -- cases of failure to detect conformance failures (e.g. an expression
3409 -- with 500 levels of parens will conform with one with 501 levels),
3410 -- but we do not need to lose sleep over this.
3411
3412 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3413 -- type N_Parenthesized_Expression used to accurately record unlimited
3414 -- numbers of levels of parentheses. However, it turned out to be a
3415 -- real nuisance to have to take into account the possible presence of
3416 -- this node during semantic analysis, since basically parentheses have
3417 -- zero relevance to semantic analysis.
3418
3419 -- Note: the level of parentheses always present in things like
3420 -- aggregates does not count, only the parentheses in the primary
3421 -- (EXPRESSION) affect the setting of the Paren_Count field.
3422
3423 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3424 -- treated as though it were Empty) if No_Initialization is set True.
3425
3426 --------------------------------------
3427 -- 4.5 Short Circuit Control Forms --
3428 --------------------------------------
3429
3430 -- EXPRESSION ::=
3431 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3432
3433 -- Gigi restriction: For both these control forms, the operand and
3434 -- result types are always Standard.Boolean. The expander inserts the
3435 -- required conversion operations where needed to ensure this is the
3436 -- case.
3437
3438 -- N_And_Then
3439 -- Sloc points to AND of AND THEN
3440 -- Left_Opnd (Node2)
3441 -- Right_Opnd (Node3)
3442 -- Actions (List1-Sem)
3443 -- plus fields for expression
3444
3445 -- N_Or_Else
3446 -- Sloc points to OR of OR ELSE
3447 -- Left_Opnd (Node2)
3448 -- Right_Opnd (Node3)
3449 -- Actions (List1-Sem)
3450 -- plus fields for expression
3451
3452 -- Note: The Actions field is used to hold actions associated with
3453 -- the right hand operand. These have to be treated specially since
3454 -- they are not unconditionally executed. See Insert_Actions for a
3455 -- more detailed description of how these actions are handled.
3456
3457 ---------------------------
3458 -- 4.5 Membership Tests --
3459 ---------------------------
3460
3461 -- RELATION ::=
3462 -- SIMPLE_EXPRESSION [not] in RANGE
3463 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3464
3465 -- Note: although the grammar above allows only a range or a
3466 -- subtype mark, the parser in fact will accept any simple
3467 -- expression in place of a subtype mark. This means that the
3468 -- semantic analyzer must be prepared to deal with, and diagnose
3469 -- a simple expression other than a name for the right operand.
3470 -- This simplifies error recovery in the parser.
3471
3472 -- N_In
3473 -- Sloc points to IN
3474 -- Left_Opnd (Node2)
3475 -- Right_Opnd (Node3)
3476 -- plus fields for expression
3477
3478 -- N_Not_In
3479 -- Sloc points to NOT of NOT IN
3480 -- Left_Opnd (Node2)
3481 -- Right_Opnd (Node3)
3482 -- plus fields for expression
3483
3484 --------------------
3485 -- 4.5 Operators --
3486 --------------------
3487
3488 -- LOGICAL_OPERATOR ::= and | or | xor
3489
3490 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3491
3492 -- BINARY_ADDING_OPERATOR ::= + | - | &
3493
3494 -- UNARY_ADDING_OPERATOR ::= + | -
3495
3496 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3497
3498 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3499
3500 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3501
3502 -- x #* y
3503 -- x #/ y
3504 -- x #mod y
3505 -- x #rem y
3506
3507 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3508 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3509 -- All handling of smalls for multiplication and division is handled
3510 -- by the front end (mod and rem result only from expansion). Gigi
3511 -- thus never needs to worry about small values (for other operators
3512 -- operating on fixed-point, e.g. addition, the small value does not
3513 -- have any semantic effect anyway, these are always integer operations.
3514
3515 -- Gigi restriction: For all operators taking Boolean operands, the
3516 -- type is always Standard.Boolean. The expander inserts the required
3517 -- conversion operations where needed to ensure this is the case.
3518
3519 -- N_Op_And
3520 -- Sloc points to AND
3521 -- Do_Length_Check (Flag4-Sem)
3522 -- plus fields for binary operator
3523 -- plus fields for expression
3524
3525 -- N_Op_Or
3526 -- Sloc points to OR
3527 -- Do_Length_Check (Flag4-Sem)
3528 -- plus fields for binary operator
3529 -- plus fields for expression
3530
3531 -- N_Op_Xor
3532 -- Sloc points to XOR
3533 -- Do_Length_Check (Flag4-Sem)
3534 -- plus fields for binary operator
3535 -- plus fields for expression
3536
3537 -- N_Op_Eq
3538 -- Sloc points to =
3539 -- plus fields for binary operator
3540 -- plus fields for expression
3541
3542 -- N_Op_Ne
3543 -- Sloc points to /=
3544 -- plus fields for binary operator
3545 -- plus fields for expression
3546
3547 -- N_Op_Lt
3548 -- Sloc points to <
3549 -- plus fields for binary operator
3550 -- plus fields for expression
3551
3552 -- N_Op_Le
3553 -- Sloc points to <=
3554 -- plus fields for binary operator
3555 -- plus fields for expression
3556
3557 -- N_Op_Gt
3558 -- Sloc points to >
3559 -- plus fields for binary operator
3560 -- plus fields for expression
3561
3562 -- N_Op_Ge
3563 -- Sloc points to >=
3564 -- plus fields for binary operator
3565 -- plus fields for expression
3566
3567 -- N_Op_Add
3568 -- Sloc points to + (binary)
3569 -- plus fields for binary operator
3570 -- plus fields for expression
3571
3572 -- N_Op_Subtract
3573 -- Sloc points to - (binary)
3574 -- plus fields for binary operator
3575 -- plus fields for expression
3576
3577 -- N_Op_Concat
3578 -- Sloc points to &
3579 -- Is_Component_Left_Opnd (Flag13-Sem)
3580 -- Is_Component_Right_Opnd (Flag14-Sem)
3581 -- plus fields for binary operator
3582 -- plus fields for expression
3583
3584 -- N_Op_Multiply
3585 -- Sloc points to *
3586 -- Treat_Fixed_As_Integer (Flag14-Sem)
3587 -- Rounded_Result (Flag18-Sem)
3588 -- plus fields for binary operator
3589 -- plus fields for expression
3590
3591 -- N_Op_Divide
3592 -- Sloc points to /
3593 -- Treat_Fixed_As_Integer (Flag14-Sem)
3594 -- Do_Division_Check (Flag13-Sem)
3595 -- Rounded_Result (Flag18-Sem)
3596 -- plus fields for binary operator
3597 -- plus fields for expression
3598
3599 -- N_Op_Mod
3600 -- Sloc points to MOD
3601 -- Treat_Fixed_As_Integer (Flag14-Sem)
3602 -- Do_Division_Check (Flag13-Sem)
3603 -- plus fields for binary operator
3604 -- plus fields for expression
3605
3606 -- N_Op_Rem
3607 -- Sloc points to REM
3608 -- Treat_Fixed_As_Integer (Flag14-Sem)
3609 -- Do_Division_Check (Flag13-Sem)
3610 -- plus fields for binary operator
3611 -- plus fields for expression
3612
3613 -- N_Op_Expon
3614 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3615 -- Sloc points to **
3616 -- plus fields for binary operator
3617 -- plus fields for expression
3618
3619 -- N_Op_Plus
3620 -- Sloc points to + (unary)
3621 -- plus fields for unary operator
3622 -- plus fields for expression
3623
3624 -- N_Op_Minus
3625 -- Sloc points to - (unary)
3626 -- plus fields for unary operator
3627 -- plus fields for expression
3628
3629 -- N_Op_Abs
3630 -- Sloc points to ABS
3631 -- plus fields for unary operator
3632 -- plus fields for expression
3633
3634 -- N_Op_Not
3635 -- Sloc points to NOT
3636 -- plus fields for unary operator
3637 -- plus fields for expression
3638
3639 -- See also shift operators in section B.2
3640
3641 -- Note on fixed-point operations passed to Gigi: For adding operators,
3642 -- the semantics is to treat these simply as integer operations, with
3643 -- the small values being ignored (the bounds are already stored in
3644 -- units of small, so that constraint checking works as usual). For the
3645 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3646 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3647 -- thus treat these nodes in identical manner, ignoring small values.
3648
3649 --------------------------
3650 -- 4.6 Type Conversion --
3651 --------------------------
3652
3653 -- TYPE_CONVERSION ::=
3654 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3655
3656 -- In the (NAME) case, the name is stored as the expression
3657
3658 -- Note: the parser never generates a type conversion node, since it
3659 -- looks like an indexed component which is generated by preference.
3660 -- The semantic pass must correct this misidentification.
3661
3662 -- Gigi handles conversions that involve no change in the root type,
3663 -- and also all conversions from integer to floating-point types.
3664 -- Conversions from floating-point to integer are only handled in
3665 -- the case where Float_Truncate flag set. Other conversions from
3666 -- floating-point to integer (involving rounding) and all conversions
3667 -- involving fixed-point types are handled by the expander.
3668
3669 -- Sprint syntax if Float_Truncate set: X^(Y)
3670 -- Sprint syntax if Conversion_OK set X?(Y)
3671 -- Sprint syntax if both flags set X?^(Y)
3672
3673 -- Note: If either the operand or result type is fixed-point, Gigi will
3674 -- only see a type conversion node with Conversion_OK set. The front end
3675 -- takes care of all handling of small's for fixed-point conversions.
3676
3677 -- N_Type_Conversion
3678 -- Sloc points to first token of subtype mark
3679 -- Subtype_Mark (Node4)
3680 -- Expression (Node3)
3681 -- Do_Tag_Check (Flag13-Sem)
3682 -- Do_Length_Check (Flag4-Sem)
3683 -- Do_Overflow_Check (Flag17-Sem)
3684 -- Float_Truncate (Flag11-Sem)
3685 -- Rounded_Result (Flag18-Sem)
3686 -- Conversion_OK (Flag14-Sem)
3687 -- plus fields for expression
3688
3689 -- Note: if a range check is required, then the Do_Range_Check flag
3690 -- is set in the Expression with the check being done against the
3691 -- target type range (after the base type conversion, if any).
3692
3693 -------------------------------
3694 -- 4.7 Qualified Expression --
3695 -------------------------------
3696
3697 -- QUALIFIED_EXPRESSION ::=
3698 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3699
3700 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3701 -- the expression, so the Expression field of this node always points
3702 -- to a parenthesized expression in this case (i.e. Paren_Count will
3703 -- always be non-zero for the referenced expression if it is not an
3704 -- aggregate).
3705
3706 -- N_Qualified_Expression
3707 -- Sloc points to apostrophe
3708 -- Subtype_Mark (Node4)
3709 -- Expression (Node3) expression or aggregate
3710 -- plus fields for expression
3711
3712 --------------------
3713 -- 4.8 Allocator --
3714 --------------------
3715
3716 -- ALLOCATOR ::=
3717 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3718
3719 -- Sprint syntax (when storage pool present)
3720 -- new xxx (storage_pool = pool)
3721
3722 -- N_Allocator
3723 -- Sloc points to NEW
3724 -- Expression (Node3) subtype indication or qualified expression
3725 -- Storage_Pool (Node1-Sem)
3726 -- Procedure_To_Call (Node2-Sem)
3727 -- Coextensions (Elist4-Sem)
3728 -- Null_Exclusion_Present (Flag11)
3729 -- No_Initialization (Flag13-Sem)
3730 -- Is_Static_Coextension (Flag14-Sem)
3731 -- Do_Storage_Check (Flag17-Sem)
3732 -- Is_Dynamic_Coextension (Flag18-Sem)
3733 -- plus fields for expression
3734
3735 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3736 -- This flag has a special function in conjunction with the restriction
3737 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3738 -- is not set. This means that if a source allocator is replaced with
3739 -- a constructed allocator, the Comes_From_Source flag should be copied
3740 -- to the newly created allocator.
3741
3742 ---------------------------------
3743 -- 5.1 Sequence Of Statements --
3744 ---------------------------------
3745
3746 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3747
3748 -- Note: Although the parser will not accept a declaration as a
3749 -- statement, the semantic analyzer may insert declarations (e.g.
3750 -- declarations of implicit types needed for execution of other
3751 -- statements) into a sequence of statements, so the code generator
3752 -- should be prepared to accept a declaration where a statement is
3753 -- expected. Note also that pragmas can appear as statements.
3754
3755 --------------------
3756 -- 5.1 Statement --
3757 --------------------
3758
3759 -- STATEMENT ::=
3760 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3761
3762 -- There is no explicit node in the tree for a statement. Instead, the
3763 -- individual statement appears directly. Labels are treated as a
3764 -- kind of statement, i.e. they are linked into a statement list at
3765 -- the point they appear, so the labeled statement appears following
3766 -- the label or labels in the statement list.
3767
3768 ---------------------------
3769 -- 5.1 Simple Statement --
3770 ---------------------------
3771
3772 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3773 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3774 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3775 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3776 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3777 -- | ABORT_STATEMENT | RAISE_STATEMENT
3778 -- | CODE_STATEMENT
3779
3780 -----------------------------
3781 -- 5.1 Compound Statement --
3782 -----------------------------
3783
3784 -- COMPOUND_STATEMENT ::=
3785 -- IF_STATEMENT | CASE_STATEMENT
3786 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3787 -- | EXTENDED_RETURN_STATEMENT
3788 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3789
3790 -------------------------
3791 -- 5.1 Null Statement --
3792 -------------------------
3793
3794 -- NULL_STATEMENT ::= null;
3795
3796 -- N_Null_Statement
3797 -- Sloc points to NULL
3798
3799 ----------------
3800 -- 5.1 Label --
3801 ----------------
3802
3803 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3804
3805 -- Note that the occurrence of a label is not a defining identifier,
3806 -- but rather a referencing occurrence. The defining occurrence is
3807 -- in the implicit label declaration which occurs in the innermost
3808 -- enclosing block.
3809
3810 -- N_Label
3811 -- Sloc points to <<
3812 -- Identifier (Node1) direct name of statement identifier
3813 -- Exception_Junk (Flag8-Sem)
3814
3815 -------------------------------
3816 -- 5.1 Statement Identifier --
3817 -------------------------------
3818
3819 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
3820
3821 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3822 -- (not an OPERATOR_SYMBOL)
3823
3824 -------------------------------
3825 -- 5.2 Assignment Statement --
3826 -------------------------------
3827
3828 -- ASSIGNMENT_STATEMENT ::=
3829 -- variable_NAME := EXPRESSION;
3830
3831 -- N_Assignment_Statement
3832 -- Sloc points to :=
3833 -- Name (Node2)
3834 -- Expression (Node3)
3835 -- Do_Tag_Check (Flag13-Sem)
3836 -- Do_Length_Check (Flag4-Sem)
3837 -- Forwards_OK (Flag5-Sem)
3838 -- Backwards_OK (Flag6-Sem)
3839 -- No_Ctrl_Actions (Flag7-Sem)
3840
3841 -- Note: if a range check is required, then the Do_Range_Check flag
3842 -- is set in the Expression (right hand side), with the check being
3843 -- done against the type of the Name (left hand side).
3844
3845 -- Note: the back end places some restrictions on the form of the
3846 -- Expression field. If the object being assigned to is Atomic, then
3847 -- the Expression may not have the form of an aggregate (since this
3848 -- might cause the back end to generate separate assignments). In this
3849 -- case the front end must generate an extra temporary and initialize
3850 -- this temporary as required (the temporary itself is not atomic).
3851
3852 -----------------------
3853 -- 5.3 If Statement --
3854 -----------------------
3855
3856 -- IF_STATEMENT ::=
3857 -- if CONDITION then
3858 -- SEQUENCE_OF_STATEMENTS
3859 -- {elsif CONDITION then
3860 -- SEQUENCE_OF_STATEMENTS}
3861 -- [else
3862 -- SEQUENCE_OF_STATEMENTS]
3863 -- end if;
3864
3865 -- Gigi restriction: This expander ensures that the type of the
3866 -- Condition fields is always Standard.Boolean, even if the type
3867 -- in the source is some non-standard boolean type.
3868
3869 -- N_If_Statement
3870 -- Sloc points to IF
3871 -- Condition (Node1)
3872 -- Then_Statements (List2)
3873 -- Elsif_Parts (List3) (set to No_List if none present)
3874 -- Else_Statements (List4) (set to No_List if no else part present)
3875 -- End_Span (Uint5) (set to No_Uint if expander generated)
3876
3877 -- N_Elsif_Part
3878 -- Sloc points to ELSIF
3879 -- Condition (Node1)
3880 -- Then_Statements (List2)
3881 -- Condition_Actions (List3-Sem)
3882
3883 --------------------
3884 -- 5.3 Condition --
3885 --------------------
3886
3887 -- CONDITION ::= boolean_EXPRESSION
3888
3889 -------------------------
3890 -- 5.4 Case Statement --
3891 -------------------------
3892
3893 -- CASE_STATEMENT ::=
3894 -- case EXPRESSION is
3895 -- CASE_STATEMENT_ALTERNATIVE
3896 -- {CASE_STATEMENT_ALTERNATIVE}
3897 -- end case;
3898
3899 -- Note: the Alternatives can contain pragmas. These only occur at
3900 -- the start of the list, since any pragmas occurring after the first
3901 -- alternative are absorbed into the corresponding statement sequence.
3902
3903 -- N_Case_Statement
3904 -- Sloc points to CASE
3905 -- Expression (Node3)
3906 -- Alternatives (List4)
3907 -- End_Span (Uint5) (set to No_Uint if expander generated)
3908
3909 -------------------------------------
3910 -- 5.4 Case Statement Alternative --
3911 -------------------------------------
3912
3913 -- CASE_STATEMENT_ALTERNATIVE ::=
3914 -- when DISCRETE_CHOICE_LIST =>
3915 -- SEQUENCE_OF_STATEMENTS
3916
3917 -- N_Case_Statement_Alternative
3918 -- Sloc points to WHEN
3919 -- Discrete_Choices (List4)
3920 -- Statements (List3)
3921
3922 -------------------------
3923 -- 5.5 Loop Statement --
3924 -------------------------
3925
3926 -- LOOP_STATEMENT ::=
3927 -- [loop_STATEMENT_IDENTIFIER :]
3928 -- [ITERATION_SCHEME] loop
3929 -- SEQUENCE_OF_STATEMENTS
3930 -- end loop [loop_IDENTIFIER];
3931
3932 -- Note: The occurrence of a loop label is not a defining identifier
3933 -- but rather a referencing occurrence. The defining occurrence is in
3934 -- the implicit label declaration which occurs in the innermost
3935 -- enclosing block.
3936
3937 -- Note: there is always a loop statement identifier present in
3938 -- the tree, even if none was given in the source. In the case where
3939 -- no loop identifier is given in the source, the parser creates
3940 -- a name of the form _Loop_n, where n is a decimal integer (the
3941 -- two underlines ensure that the loop names created in this manner
3942 -- do not conflict with any user defined identifiers), and the flag
3943 -- Has_Created_Identifier is set to True. The only exception to the
3944 -- rule that all loop statement nodes have identifiers occurs for
3945 -- loops constructed by the expander, and the semantic analyzer will
3946 -- create and supply dummy loop identifiers in these cases.
3947
3948 -- N_Loop_Statement
3949 -- Sloc points to LOOP
3950 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3951 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3952 -- Statements (List3)
3953 -- End_Label (Node4)
3954 -- Has_Created_Identifier (Flag15)
3955 -- Is_Null_Loop (Flag16)
3956 -- Suppress_Loop_Warnings (Flag17)
3957
3958 --------------------------
3959 -- 5.5 Iteration Scheme --
3960 --------------------------
3961
3962 -- ITERATION_SCHEME ::=
3963 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3964
3965 -- Gigi restriction: This expander ensures that the type of the
3966 -- Condition field is always Standard.Boolean, even if the type
3967 -- in the source is some non-standard boolean type.
3968
3969 -- N_Iteration_Scheme
3970 -- Sloc points to WHILE or FOR
3971 -- Condition (Node1) (set to Empty if FOR case)
3972 -- Condition_Actions (List3-Sem)
3973 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3974
3975 ---------------------------------------
3976 -- 5.5 Loop parameter specification --
3977 ---------------------------------------
3978
3979 -- LOOP_PARAMETER_SPECIFICATION ::=
3980 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3981
3982 -- N_Loop_Parameter_Specification
3983 -- Sloc points to first identifier
3984 -- Defining_Identifier (Node1)
3985 -- Reverse_Present (Flag15)
3986 -- Discrete_Subtype_Definition (Node4)
3987
3988 --------------------------
3989 -- 5.6 Block Statement --
3990 --------------------------
3991
3992 -- BLOCK_STATEMENT ::=
3993 -- [block_STATEMENT_IDENTIFIER:]
3994 -- [declare
3995 -- DECLARATIVE_PART]
3996 -- begin
3997 -- HANDLED_SEQUENCE_OF_STATEMENTS
3998 -- end [block_IDENTIFIER];
3999
4000 -- Note that the occurrence of a block identifier is not a defining
4001 -- identifier, but rather a referencing occurrence. The defining
4002 -- occurrence is an E_Block entity declared by the implicit label
4003 -- declaration which occurs in the innermost enclosing block statement
4004 -- or body; the block identifier denotes that E_Block.
4005
4006 -- For block statements that come from source code, there is always a
4007 -- block statement identifier present in the tree, denoting an
4008 -- E_Block. In the case where no block identifier is given in the
4009 -- source, the parser creates a name of the form B_n, where n is a
4010 -- decimal integer, and the flag Has_Created_Identifier is set to
4011 -- True. Blocks constructed by the expander usually have no identifier,
4012 -- and no corresponding entity.
4013
4014 -- Note: the block statement created for an extended return statement
4015 -- has an entity, and this entity is an E_Return_Statement, rather than
4016 -- the usual E_Block.
4017
4018 -- Note: Exception_Junk is set for the wrapping blocks created during
4019 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4020
4021 -- N_Block_Statement
4022 -- Sloc points to DECLARE or BEGIN
4023 -- Identifier (Node1) block direct name (set to Empty if not present)
4024 -- Declarations (List2) (set to No_List if no DECLARE part)
4025 -- Handled_Statement_Sequence (Node4)
4026 -- Is_Task_Master (Flag5-Sem)
4027 -- Activation_Chain_Entity (Node3-Sem)
4028 -- Has_Created_Identifier (Flag15)
4029 -- Is_Task_Allocation_Block (Flag6)
4030 -- Is_Asynchronous_Call_Block (Flag7)
4031 -- Exception_Junk (Flag8-Sem)
4032
4033 -------------------------
4034 -- 5.7 Exit Statement --
4035 -------------------------
4036
4037 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4038
4039 -- Gigi restriction: This expander ensures that the type of the
4040 -- Condition field is always Standard.Boolean, even if the type
4041 -- in the source is some non-standard boolean type.
4042
4043 -- N_Exit_Statement
4044 -- Sloc points to EXIT
4045 -- Name (Node2) (set to Empty if no loop name present)
4046 -- Condition (Node1) (set to Empty if no when part present)
4047
4048 -------------------------
4049 -- 5.9 Goto Statement --
4050 -------------------------
4051
4052 -- GOTO_STATEMENT ::= goto label_NAME;
4053
4054 -- N_Goto_Statement
4055 -- Sloc points to GOTO
4056 -- Name (Node2)
4057 -- Exception_Junk (Flag8-Sem)
4058
4059 ---------------------------------
4060 -- 6.1 Subprogram Declaration --
4061 ---------------------------------
4062
4063 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4064
4065 -- N_Subprogram_Declaration
4066 -- Sloc points to FUNCTION or PROCEDURE
4067 -- Specification (Node1)
4068 -- Body_To_Inline (Node3-Sem)
4069 -- Corresponding_Body (Node5-Sem)
4070 -- Parent_Spec (Node4-Sem)
4071
4072 ------------------------------------------
4073 -- 6.1 Abstract Subprogram Declaration --
4074 ------------------------------------------
4075
4076 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4077 -- SUBPROGRAM_SPECIFICATION is abstract;
4078
4079 -- N_Abstract_Subprogram_Declaration
4080 -- Sloc points to ABSTRACT
4081 -- Specification (Node1)
4082
4083 -----------------------------------
4084 -- 6.1 Subprogram Specification --
4085 -----------------------------------
4086
4087 -- SUBPROGRAM_SPECIFICATION ::=
4088 -- [[not] overriding]
4089 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4090 -- | [[not] overriding]
4091 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4092
4093 -- Note: there are no separate nodes for the profiles, instead the
4094 -- information appears directly in the following nodes.
4095
4096 -- N_Function_Specification
4097 -- Sloc points to FUNCTION
4098 -- Defining_Unit_Name (Node1) (the designator)
4099 -- Elaboration_Boolean (Node2-Sem)
4100 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4101 -- Null_Exclusion_Present (Flag11)
4102 -- Result_Definition (Node4) for result subtype
4103 -- Generic_Parent (Node5-Sem)
4104 -- Must_Override (Flag14) set if overriding indicator present
4105 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4106
4107 -- N_Procedure_Specification
4108 -- Sloc points to PROCEDURE
4109 -- Defining_Unit_Name (Node1)
4110 -- Elaboration_Boolean (Node2-Sem)
4111 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4112 -- Generic_Parent (Node5-Sem)
4113 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4114 -- Must_Override (Flag14) set if overriding indicator present
4115 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4116
4117 -- Note: overriding indicator is an Ada 2005 feature
4118
4119 ---------------------
4120 -- 6.1 Designator --
4121 ---------------------
4122
4123 -- DESIGNATOR ::=
4124 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4125
4126 -- Designators that are simply identifiers or operator symbols appear
4127 -- directly in the tree in this form. The following node is used only
4128 -- in the case where the designator has a parent unit name component.
4129
4130 -- N_Designator
4131 -- Sloc points to period
4132 -- Name (Node2) holds the parent unit name. Note that this is always
4133 -- non-Empty, since this node is only used for the case where a
4134 -- parent library unit package name is present.
4135 -- Identifier (Node1)
4136
4137 -- Note that the identifier can also be an operator symbol here
4138
4139 ------------------------------
4140 -- 6.1 Defining Designator --
4141 ------------------------------
4142
4143 -- DEFINING_DESIGNATOR ::=
4144 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4145
4146 -------------------------------------
4147 -- 6.1 Defining Program Unit Name --
4148 -------------------------------------
4149
4150 -- DEFINING_PROGRAM_UNIT_NAME ::=
4151 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4152
4153 -- The parent unit name is present only in the case of a child unit
4154 -- name (permissible only for Ada 95 for a library level unit, i.e.
4155 -- a unit at scope level one). If no such name is present, the defining
4156 -- program unit name is represented simply as the defining identifier.
4157 -- In the child unit case, the following node is used to represent the
4158 -- child unit name.
4159
4160 -- N_Defining_Program_Unit_Name
4161 -- Sloc points to period
4162 -- Name (Node2) holds the parent unit name. Note that this is always
4163 -- non-Empty, since this node is only used for the case where a
4164 -- parent unit name is present.
4165 -- Defining_Identifier (Node1)
4166
4167 --------------------------
4168 -- 6.1 Operator Symbol --
4169 --------------------------
4170
4171 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4172
4173 -- Note: the fields of the N_Operator_Symbol node are laid out to
4174 -- match the corresponding fields of an N_Character_Literal node. This
4175 -- allows easy conversion of the operator symbol node into a character
4176 -- literal node in the case where a string constant of the form of an
4177 -- operator symbol is scanned out as such, but turns out semantically
4178 -- to be a string literal that is not an operator. For details see
4179 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4180
4181 -- N_Operator_Symbol
4182 -- Sloc points to literal
4183 -- Chars (Name1) contains the Name_Id for the operator symbol
4184 -- Strval (Str3) Id of string value. This is used if the operator
4185 -- symbol turns out to be a normal string after all.
4186 -- Entity (Node4-Sem)
4187 -- Associated_Node (Node4-Sem)
4188 -- Has_Private_View (Flag11-Sem) set in generic units.
4189 -- Etype (Node5-Sem)
4190
4191 -- Note: the Strval field may be set to No_String for generated
4192 -- operator symbols that are known not to be string literals
4193 -- semantically.
4194
4195 -----------------------------------
4196 -- 6.1 Defining Operator Symbol --
4197 -----------------------------------
4198
4199 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4200
4201 -- A defining operator symbol is an entity, which has additional
4202 -- fields depending on the setting of the Ekind field. These
4203 -- additional fields are defined (and access subprograms declared)
4204 -- in package Einfo.
4205
4206 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4207 -- are deliberately layed out to match the layout of fields in an
4208 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4209 -- an operator symbol node into a defining operator symbol node.
4210 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4211 -- for further details.
4212
4213 -- N_Defining_Operator_Symbol
4214 -- Sloc points to literal
4215 -- Chars (Name1) contains the Name_Id for the operator symbol
4216 -- Next_Entity (Node2-Sem)
4217 -- Scope (Node3-Sem)
4218 -- Etype (Node5-Sem)
4219
4220 ----------------------------
4221 -- 6.1 Parameter Profile --
4222 ----------------------------
4223
4224 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4225
4226 ---------------------------------------
4227 -- 6.1 Parameter and Result Profile --
4228 ---------------------------------------
4229
4230 -- PARAMETER_AND_RESULT_PROFILE ::=
4231 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4232 -- | [FORMAL_PART] return ACCESS_DEFINITION
4233
4234 -- There is no explicit node in the tree for a parameter and result
4235 -- profile. Instead the information appears directly in the parent.
4236
4237 ----------------------
4238 -- 6.1 Formal part --
4239 ----------------------
4240
4241 -- FORMAL_PART ::=
4242 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4243
4244 ----------------------------------
4245 -- 6.1 Parameter specification --
4246 ----------------------------------
4247
4248 -- PARAMETER_SPECIFICATION ::=
4249 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4250 -- [:= DEFAULT_EXPRESSION]
4251 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4252 -- [:= DEFAULT_EXPRESSION]
4253
4254 -- Although the syntax allows multiple identifiers in the list, the
4255 -- semantics is as though successive specifications were given with
4256 -- identical type definition and expression components. To simplify
4257 -- semantic processing, the parser represents a multiple declaration
4258 -- case as a sequence of single Specifications, using the More_Ids and
4259 -- Prev_Ids flags to preserve the original source form as described
4260 -- in the section on "Handling of Defining Identifier Lists".
4261
4262 -- N_Parameter_Specification
4263 -- Sloc points to first identifier
4264 -- Defining_Identifier (Node1)
4265 -- In_Present (Flag15)
4266 -- Out_Present (Flag17)
4267 -- Null_Exclusion_Present (Flag11)
4268 -- Parameter_Type (Node2) subtype mark or access definition
4269 -- Expression (Node3) (set to Empty if no default expression present)
4270 -- Do_Accessibility_Check (Flag13-Sem)
4271 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4272 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4273 -- Default_Expression (Node5-Sem)
4274
4275 ---------------
4276 -- 6.1 Mode --
4277 ---------------
4278
4279 -- MODE ::= [in] | in out | out
4280
4281 -- There is no explicit node in the tree for the Mode. Instead the
4282 -- In_Present and Out_Present flags are set in the parent node to
4283 -- record the presence of keywords specifying the mode.
4284
4285 --------------------------
4286 -- 6.3 Subprogram Body --
4287 --------------------------
4288
4289 -- SUBPROGRAM_BODY ::=
4290 -- SUBPROGRAM_SPECIFICATION is
4291 -- DECLARATIVE_PART
4292 -- begin
4293 -- HANDLED_SEQUENCE_OF_STATEMENTS
4294 -- end [DESIGNATOR];
4295
4296 -- N_Subprogram_Body
4297 -- Sloc points to FUNCTION or PROCEDURE
4298 -- Specification (Node1)
4299 -- Declarations (List2)
4300 -- Handled_Statement_Sequence (Node4)
4301 -- Activation_Chain_Entity (Node3-Sem)
4302 -- Corresponding_Spec (Node5-Sem)
4303 -- Acts_As_Spec (Flag4-Sem)
4304 -- Bad_Is_Detected (Flag15) used only by parser
4305 -- Do_Storage_Check (Flag17-Sem)
4306 -- Has_Priority_Pragma (Flag6-Sem)
4307 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4308 -- Is_Entry_Barrier_Function (Flag8-Sem)
4309 -- Is_Task_Master (Flag5-Sem)
4310 -- Was_Originally_Stub (Flag13-Sem)
4311 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4312
4313 -----------------------------------
4314 -- 6.4 Procedure Call Statement --
4315 -----------------------------------
4316
4317 -- PROCEDURE_CALL_STATEMENT ::=
4318 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4319
4320 -- Note: the reason that a procedure call has expression fields is
4321 -- that it semantically resembles an expression, e.g. overloading is
4322 -- allowed and a type is concocted for semantic processing purposes.
4323 -- Certain of these fields, such as Parens are not relevant, but it
4324 -- is easier to just supply all of them together!
4325
4326 -- N_Procedure_Call_Statement
4327 -- Sloc points to first token of name or prefix
4328 -- Name (Node2) stores name or prefix
4329 -- Parameter_Associations (List3) (set to No_List if no
4330 -- actual parameter part)
4331 -- First_Named_Actual (Node4-Sem)
4332 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4333 -- Do_Tag_Check (Flag13-Sem)
4334 -- No_Elaboration_Check (Flag14-Sem)
4335 -- Parameter_List_Truncated (Flag17-Sem)
4336 -- ABE_Is_Certain (Flag18-Sem)
4337 -- plus fields for expression
4338
4339 -- If any IN parameter requires a range check, then the corresponding
4340 -- argument expression has the Do_Range_Check flag set, and the range
4341 -- check is done against the formal type. Note that this argument
4342 -- expression may appear directly in the Parameter_Associations list,
4343 -- or may be a descendent of an N_Parameter_Association node that
4344 -- appears in this list.
4345
4346 ------------------------
4347 -- 6.4 Function Call --
4348 ------------------------
4349
4350 -- FUNCTION_CALL ::=
4351 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4352
4353 -- Note: the parser may generate an indexed component node or simply
4354 -- a name node instead of a function call node. The semantic pass must
4355 -- correct this misidentification.
4356
4357 -- N_Function_Call
4358 -- Sloc points to first token of name or prefix
4359 -- Name (Node2) stores name or prefix
4360 -- Parameter_Associations (List3) (set to No_List if no
4361 -- actual parameter part)
4362 -- First_Named_Actual (Node4-Sem)
4363 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4364 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4365 -- Do_Tag_Check (Flag13-Sem)
4366 -- No_Elaboration_Check (Flag14-Sem)
4367 -- Parameter_List_Truncated (Flag17-Sem)
4368 -- ABE_Is_Certain (Flag18-Sem)
4369 -- plus fields for expression
4370
4371 --------------------------------
4372 -- 6.4 Actual Parameter Part --
4373 --------------------------------
4374
4375 -- ACTUAL_PARAMETER_PART ::=
4376 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4377
4378 --------------------------------
4379 -- 6.4 Parameter Association --
4380 --------------------------------
4381
4382 -- PARAMETER_ASSOCIATION ::=
4383 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4384
4385 -- Note: the N_Parameter_Association node is built only if a formal
4386 -- parameter selector name is present, otherwise the parameter
4387 -- association appears in the tree simply as the node for the
4388 -- explicit actual parameter.
4389
4390 -- N_Parameter_Association
4391 -- Sloc points to formal parameter
4392 -- Selector_Name (Node2) (always non-Empty)
4393 -- Explicit_Actual_Parameter (Node3)
4394 -- Next_Named_Actual (Node4-Sem)
4395
4396 ---------------------------
4397 -- 6.4 Actual Parameter --
4398 ---------------------------
4399
4400 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4401
4402 ---------------------------
4403 -- 6.5 Return Statement --
4404 ---------------------------
4405
4406 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4407
4408 -- In Ada 2005, we have:
4409
4410 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4411
4412 -- EXTENDED_RETURN_STATEMENT ::=
4413 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4414 -- [:= EXPRESSION] [do
4415 -- HANDLED_SEQUENCE_OF_STATEMENTS
4416 -- end return];
4417
4418 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4419
4420 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4421 -- "return statement" is defined in 6.5 to mean a
4422 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4423
4424 -- N_Return_Statement
4425 -- Sloc points to RETURN
4426 -- Return_Statement_Entity (Node5-Sem)
4427 -- Expression (Node3) (set to Empty if no expression present)
4428 -- Storage_Pool (Node1-Sem)
4429 -- Procedure_To_Call (Node2-Sem)
4430 -- Do_Tag_Check (Flag13-Sem)
4431 -- By_Ref (Flag5-Sem)
4432 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4433
4434 -- N_Return_Statement represents a simple_return_statement, and is
4435 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4436 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4437 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4438 -- as Make_Simple_Return_Statement in Sem_Util.
4439
4440 -- Note: Return_Statement_Entity points to an E_Return_Statement
4441
4442 -- If a range check is required, then Do_Range_Check is set on the
4443 -- Expression. The check is against the return subtype of the function.
4444
4445 -- N_Extended_Return_Statement
4446 -- Sloc points to RETURN
4447 -- Return_Statement_Entity (Node5-Sem)
4448 -- Return_Object_Declarations (List3)
4449 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4450 -- Storage_Pool (Node1-Sem)
4451 -- Procedure_To_Call (Node2-Sem)
4452 -- Do_Tag_Check (Flag13-Sem)
4453 -- By_Ref (Flag5-Sem)
4454
4455 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4456 -- Note that Return_Object_Declarations is a list containing the
4457 -- N_Object_Declaration -- see comment on this field above.
4458 -- The declared object will have Is_Return_Object = True.
4459 -- There is no such syntactic category as return_object_declaration
4460 -- in the RM. Return_Object_Declarations represents this portion of
4461 -- the syntax for EXTENDED_RETURN_STATEMENT:
4462 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4463 -- [:= EXPRESSION]
4464
4465 -- There are two entities associated with an extended_return_statement:
4466 -- the Return_Statement_Entity represents the statement itself, and the
4467 -- Defining_Identifier of the Object_Declaration in
4468 -- Return_Object_Declarations represents the object being
4469 -- returned. N_Simple_Return_Statement has only the former.
4470
4471 ------------------------------
4472 -- 7.1 Package Declaration --
4473 ------------------------------
4474
4475 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4476
4477 -- Note: the activation chain entity for a package spec is used for
4478 -- all tasks declared in the package spec, or in the package body.
4479
4480 -- N_Package_Declaration
4481 -- Sloc points to PACKAGE
4482 -- Specification (Node1)
4483 -- Corresponding_Body (Node5-Sem)
4484 -- Parent_Spec (Node4-Sem)
4485 -- Activation_Chain_Entity (Node3-Sem)
4486
4487 --------------------------------
4488 -- 7.1 Package Specification --
4489 --------------------------------
4490
4491 -- PACKAGE_SPECIFICATION ::=
4492 -- package DEFINING_PROGRAM_UNIT_NAME is
4493 -- {BASIC_DECLARATIVE_ITEM}
4494 -- [private
4495 -- {BASIC_DECLARATIVE_ITEM}]
4496 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4497
4498 -- N_Package_Specification
4499 -- Sloc points to PACKAGE
4500 -- Defining_Unit_Name (Node1)
4501 -- Visible_Declarations (List2)
4502 -- Private_Declarations (List3) (set to No_List if no private
4503 -- part present)
4504 -- End_Label (Node4)
4505 -- Generic_Parent (Node5-Sem)
4506 -- Limited_View_Installed (Flag18-Sem)
4507
4508 -----------------------
4509 -- 7.1 Package Body --
4510 -----------------------
4511
4512 -- PACKAGE_BODY ::=
4513 -- package body DEFINING_PROGRAM_UNIT_NAME is
4514 -- DECLARATIVE_PART
4515 -- [begin
4516 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4517 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4518
4519 -- N_Package_Body
4520 -- Sloc points to PACKAGE
4521 -- Defining_Unit_Name (Node1)
4522 -- Declarations (List2)
4523 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4524 -- Corresponding_Spec (Node5-Sem)
4525 -- Was_Originally_Stub (Flag13-Sem)
4526
4527 -- Note: if a source level package does not contain a handled sequence
4528 -- of statements, then the parser supplies a dummy one with a null
4529 -- sequence of statements. Comes_From_Source will be False in this
4530 -- constructed sequence. The reason we need this is for the End_Label
4531 -- field in the HSS.
4532
4533 -----------------------------------
4534 -- 7.4 Private Type Declaration --
4535 -----------------------------------
4536
4537 -- PRIVATE_TYPE_DECLARATION ::=
4538 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4539 -- is [[abstract] tagged] [limited] private;
4540
4541 -- Note: TAGGED is not permitted in Ada 83 mode
4542
4543 -- N_Private_Type_Declaration
4544 -- Sloc points to TYPE
4545 -- Defining_Identifier (Node1)
4546 -- Discriminant_Specifications (List4) (set to No_List if no
4547 -- discriminant part)
4548 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4549 -- Abstract_Present (Flag4)
4550 -- Tagged_Present (Flag15)
4551 -- Limited_Present (Flag17)
4552
4553 ----------------------------------------
4554 -- 7.4 Private Extension Declaration --
4555 ----------------------------------------
4556
4557 -- PRIVATE_EXTENSION_DECLARATION ::=
4558 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4559 -- [abstract] [limited | synchronized]
4560 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4561 -- with private;
4562
4563 -- Note: LIMITED, and private extension declarations are not allowed
4564 -- in Ada 83 mode.
4565
4566 -- N_Private_Extension_Declaration
4567 -- Sloc points to TYPE
4568 -- Defining_Identifier (Node1)
4569 -- Discriminant_Specifications (List4) (set to No_List if no
4570 -- discriminant part)
4571 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4572 -- Abstract_Present (Flag4)
4573 -- Limited_Present (Flag17)
4574 -- Synchronized_Present (Flag7)
4575 -- Subtype_Indication (Node5)
4576 -- Interface_List (List2) (set to No_List if none)
4577
4578 ---------------------
4579 -- 8.4 Use Clause --
4580 ---------------------
4581
4582 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4583
4584 -----------------------------
4585 -- 8.4 Use Package Clause --
4586 -----------------------------
4587
4588 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4589
4590 -- N_Use_Package_Clause
4591 -- Sloc points to USE
4592 -- Names (List2)
4593 -- Next_Use_Clause (Node3-Sem)
4594 -- Hidden_By_Use_Clause (Elist4-Sem)
4595
4596 --------------------------
4597 -- 8.4 Use Type Clause --
4598 --------------------------
4599
4600 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4601
4602 -- Note: use type clause is not permitted in Ada 83 mode
4603
4604 -- N_Use_Type_Clause
4605 -- Sloc points to USE
4606 -- Subtype_Marks (List2)
4607 -- Next_Use_Clause (Node3-Sem)
4608 -- Hidden_By_Use_Clause (Elist4-Sem)
4609
4610 -------------------------------
4611 -- 8.5 Renaming Declaration --
4612 -------------------------------
4613
4614 -- RENAMING_DECLARATION ::=
4615 -- OBJECT_RENAMING_DECLARATION
4616 -- | EXCEPTION_RENAMING_DECLARATION
4617 -- | PACKAGE_RENAMING_DECLARATION
4618 -- | SUBPROGRAM_RENAMING_DECLARATION
4619 -- | GENERIC_RENAMING_DECLARATION
4620
4621 --------------------------------------
4622 -- 8.5 Object Renaming Declaration --
4623 --------------------------------------
4624
4625 -- OBJECT_RENAMING_DECLARATION ::=
4626 -- DEFINING_IDENTIFIER :
4627 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4628 -- | DEFINING_IDENTIFIER :
4629 -- ACCESS_DEFINITION renames object_NAME;
4630
4631 -- Note: Access_Definition is an optional field that gives support to
4632 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4633 -- Subtype_Indication field or else the Access_Definition field.
4634
4635 -- N_Object_Renaming_Declaration
4636 -- Sloc points to first identifier
4637 -- Defining_Identifier (Node1)
4638 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4639 -- Subtype_Mark (Node4) (set to Empty if not present)
4640 -- Access_Definition (Node3) (set to Empty if not present)
4641 -- Name (Node2)
4642 -- Corresponding_Generic_Association (Node5-Sem)
4643
4644 -----------------------------------------
4645 -- 8.5 Exception Renaming Declaration --
4646 -----------------------------------------
4647
4648 -- EXCEPTION_RENAMING_DECLARATION ::=
4649 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4650
4651 -- N_Exception_Renaming_Declaration
4652 -- Sloc points to first identifier
4653 -- Defining_Identifier (Node1)
4654 -- Name (Node2)
4655
4656 ---------------------------------------
4657 -- 8.5 Package Renaming Declaration --
4658 ---------------------------------------
4659
4660 -- PACKAGE_RENAMING_DECLARATION ::=
4661 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4662
4663 -- N_Package_Renaming_Declaration
4664 -- Sloc points to PACKAGE
4665 -- Defining_Unit_Name (Node1)
4666 -- Name (Node2)
4667 -- Parent_Spec (Node4-Sem)
4668
4669 ------------------------------------------
4670 -- 8.5 Subprogram Renaming Declaration --
4671 ------------------------------------------
4672
4673 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4674 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4675
4676 -- N_Subprogram_Renaming_Declaration
4677 -- Sloc points to RENAMES
4678 -- Specification (Node1)
4679 -- Name (Node2)
4680 -- Parent_Spec (Node4-Sem)
4681 -- Corresponding_Spec (Node5-Sem)
4682 -- Corresponding_Formal_Spec (Node3-Sem)
4683 -- From_Default (Flag6-Sem)
4684
4685 -----------------------------------------
4686 -- 8.5.5 Generic Renaming Declaration --
4687 -----------------------------------------
4688
4689 -- GENERIC_RENAMING_DECLARATION ::=
4690 -- generic package DEFINING_PROGRAM_UNIT_NAME
4691 -- renames generic_package_NAME
4692 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4693 -- renames generic_procedure_NAME
4694 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4695 -- renames generic_function_NAME
4696
4697 -- N_Generic_Package_Renaming_Declaration
4698 -- Sloc points to GENERIC
4699 -- Defining_Unit_Name (Node1)
4700 -- Name (Node2)
4701 -- Parent_Spec (Node4-Sem)
4702
4703 -- N_Generic_Procedure_Renaming_Declaration
4704 -- Sloc points to GENERIC
4705 -- Defining_Unit_Name (Node1)
4706 -- Name (Node2)
4707 -- Parent_Spec (Node4-Sem)
4708
4709 -- N_Generic_Function_Renaming_Declaration
4710 -- Sloc points to GENERIC
4711 -- Defining_Unit_Name (Node1)
4712 -- Name (Node2)
4713 -- Parent_Spec (Node4-Sem)
4714
4715 --------------------------------
4716 -- 9.1 Task Type Declaration --
4717 --------------------------------
4718
4719 -- TASK_TYPE_DECLARATION ::=
4720 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4721 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4722
4723 -- N_Task_Type_Declaration
4724 -- Sloc points to TASK
4725 -- Defining_Identifier (Node1)
4726 -- Discriminant_Specifications (List4) (set to No_List if no
4727 -- discriminant part)
4728 -- Interface_List (List2) (set to No_List if none)
4729 -- Task_Definition (Node3) (set to Empty if not present)
4730 -- Corresponding_Body (Node5-Sem)
4731
4732 ----------------------------------
4733 -- 9.1 Single Task Declaration --
4734 ----------------------------------
4735
4736 -- SINGLE_TASK_DECLARATION ::=
4737 -- task DEFINING_IDENTIFIER
4738 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4739
4740 -- N_Single_Task_Declaration
4741 -- Sloc points to TASK
4742 -- Defining_Identifier (Node1)
4743 -- Interface_List (List2) (set to No_List if none)
4744 -- Task_Definition (Node3) (set to Empty if not present)
4745
4746 --------------------------
4747 -- 9.1 Task Definition --
4748 --------------------------
4749
4750 -- TASK_DEFINITION ::=
4751 -- {TASK_ITEM}
4752 -- [private
4753 -- {TASK_ITEM}]
4754 -- end [task_IDENTIFIER]
4755
4756 -- Note: as a result of semantic analysis, the list of task items can
4757 -- include implicit type declarations resulting from entry families.
4758
4759 -- N_Task_Definition
4760 -- Sloc points to first token of task definition
4761 -- Visible_Declarations (List2)
4762 -- Private_Declarations (List3) (set to No_List if no private part)
4763 -- End_Label (Node4)
4764 -- Has_Priority_Pragma (Flag6-Sem)
4765 -- Has_Storage_Size_Pragma (Flag5-Sem)
4766 -- Has_Task_Info_Pragma (Flag7-Sem)
4767 -- Has_Task_Name_Pragma (Flag8-Sem)
4768 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4769
4770 --------------------
4771 -- 9.1 Task Item --
4772 --------------------
4773
4774 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4775
4776 --------------------
4777 -- 9.1 Task Body --
4778 --------------------
4779
4780 -- TASK_BODY ::=
4781 -- task body task_DEFINING_IDENTIFIER is
4782 -- DECLARATIVE_PART
4783 -- begin
4784 -- HANDLED_SEQUENCE_OF_STATEMENTS
4785 -- end [task_IDENTIFIER];
4786
4787 -- Gigi restriction: This node never appears
4788
4789 -- N_Task_Body
4790 -- Sloc points to TASK
4791 -- Defining_Identifier (Node1)
4792 -- Declarations (List2)
4793 -- Handled_Statement_Sequence (Node4)
4794 -- Is_Task_Master (Flag5-Sem)
4795 -- Activation_Chain_Entity (Node3-Sem)
4796 -- Corresponding_Spec (Node5-Sem)
4797 -- Was_Originally_Stub (Flag13-Sem)
4798
4799 -------------------------------------
4800 -- 9.4 Protected Type Declaration --
4801 -------------------------------------
4802
4803 -- PROTECTED_TYPE_DECLARATION ::=
4804 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4805 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4806
4807 -- Note: protected type declarations are not permitted in Ada 83 mode
4808
4809 -- N_Protected_Type_Declaration
4810 -- Sloc points to PROTECTED
4811 -- Defining_Identifier (Node1)
4812 -- Discriminant_Specifications (List4) (set to No_List if no
4813 -- discriminant part)
4814 -- Interface_List (List2) (set to No_List if none)
4815 -- Protected_Definition (Node3)
4816 -- Corresponding_Body (Node5-Sem)
4817
4818 ---------------------------------------
4819 -- 9.4 Single Protected Declaration --
4820 ---------------------------------------
4821
4822 -- SINGLE_PROTECTED_DECLARATION ::=
4823 -- protected DEFINING_IDENTIFIER
4824 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4825
4826 -- Note: single protected declarations are not allowed in Ada 83 mode
4827
4828 -- N_Single_Protected_Declaration
4829 -- Sloc points to PROTECTED
4830 -- Defining_Identifier (Node1)
4831 -- Interface_List (List2) (set to No_List if none)
4832 -- Protected_Definition (Node3)
4833
4834 -------------------------------
4835 -- 9.4 Protected Definition --
4836 -------------------------------
4837
4838 -- PROTECTED_DEFINITION ::=
4839 -- {PROTECTED_OPERATION_DECLARATION}
4840 -- [private
4841 -- {PROTECTED_ELEMENT_DECLARATION}]
4842 -- end [protected_IDENTIFIER]
4843
4844 -- N_Protected_Definition
4845 -- Sloc points to first token of protected definition
4846 -- Visible_Declarations (List2)
4847 -- Private_Declarations (List3) (set to No_List if no private part)
4848 -- End_Label (Node4)
4849 -- Has_Priority_Pragma (Flag6-Sem)
4850
4851 ------------------------------------------
4852 -- 9.4 Protected Operation Declaration --
4853 ------------------------------------------
4854
4855 -- PROTECTED_OPERATION_DECLARATION ::=
4856 -- SUBPROGRAM_DECLARATION
4857 -- | ENTRY_DECLARATION
4858 -- | REPRESENTATION_CLAUSE
4859
4860 ----------------------------------------
4861 -- 9.4 Protected Element Declaration --
4862 ----------------------------------------
4863
4864 -- PROTECTED_ELEMENT_DECLARATION ::=
4865 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4866
4867 -------------------------
4868 -- 9.4 Protected Body --
4869 -------------------------
4870
4871 -- PROTECTED_BODY ::=
4872 -- protected body DEFINING_IDENTIFIER is
4873 -- {PROTECTED_OPERATION_ITEM}
4874 -- end [protected_IDENTIFIER];
4875
4876 -- Note: protected bodies are not allowed in Ada 83 mode
4877
4878 -- Gigi restriction: This node never appears
4879
4880 -- N_Protected_Body
4881 -- Sloc points to PROTECTED
4882 -- Defining_Identifier (Node1)
4883 -- Declarations (List2) protected operation items (and pragmas)
4884 -- End_Label (Node4)
4885 -- Corresponding_Spec (Node5-Sem)
4886 -- Was_Originally_Stub (Flag13-Sem)
4887
4888 -----------------------------------
4889 -- 9.4 Protected Operation Item --
4890 -----------------------------------
4891
4892 -- PROTECTED_OPERATION_ITEM ::=
4893 -- SUBPROGRAM_DECLARATION
4894 -- | SUBPROGRAM_BODY
4895 -- | ENTRY_BODY
4896 -- | REPRESENTATION_CLAUSE
4897
4898 ------------------------------
4899 -- 9.5.2 Entry Declaration --
4900 ------------------------------
4901
4902 -- ENTRY_DECLARATION ::=
4903 -- [[not] overriding]
4904 -- entry DEFINING_IDENTIFIER
4905 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4906
4907 -- N_Entry_Declaration
4908 -- Sloc points to ENTRY
4909 -- Defining_Identifier (Node1)
4910 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4911 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4912 -- Corresponding_Body (Node5-Sem)
4913 -- Must_Override (Flag14) set if overriding indicator present
4914 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4915
4916 -- Note: overriding indicator is an Ada 2005 feature
4917
4918 -----------------------------
4919 -- 9.5.2 Accept statement --
4920 -----------------------------
4921
4922 -- ACCEPT_STATEMENT ::=
4923 -- accept entry_DIRECT_NAME
4924 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4925 -- HANDLED_SEQUENCE_OF_STATEMENTS
4926 -- end [entry_IDENTIFIER]];
4927
4928 -- Gigi restriction: This node never appears
4929
4930 -- Note: there are no explicit declarations allowed in an accept
4931 -- statement. However, the implicit declarations for any statement
4932 -- identifiers (labels and block/loop identifiers) are declarations
4933 -- that belong logically to the accept statement, and that is why
4934 -- there is a Declarations field in this node.
4935
4936 -- N_Accept_Statement
4937 -- Sloc points to ACCEPT
4938 -- Entry_Direct_Name (Node1)
4939 -- Entry_Index (Node5) (set to Empty if not present)
4940 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4941 -- Handled_Statement_Sequence (Node4)
4942 -- Declarations (List2) (set to No_List if no declarations)
4943
4944 ------------------------
4945 -- 9.5.2 Entry Index --
4946 ------------------------
4947
4948 -- ENTRY_INDEX ::= EXPRESSION
4949
4950 -----------------------
4951 -- 9.5.2 Entry Body --
4952 -----------------------
4953
4954 -- ENTRY_BODY ::=
4955 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4956 -- DECLARATIVE_PART
4957 -- begin
4958 -- HANDLED_SEQUENCE_OF_STATEMENTS
4959 -- end [entry_IDENTIFIER];
4960
4961 -- ENTRY_BARRIER ::= when CONDITION
4962
4963 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4964 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4965 -- too full (it would otherwise have too many fields)
4966
4967 -- Gigi restriction: This node never appears
4968
4969 -- N_Entry_Body
4970 -- Sloc points to ENTRY
4971 -- Defining_Identifier (Node1)
4972 -- Entry_Body_Formal_Part (Node5)
4973 -- Declarations (List2)
4974 -- Handled_Statement_Sequence (Node4)
4975 -- Activation_Chain_Entity (Node3-Sem)
4976
4977 -----------------------------------
4978 -- 9.5.2 Entry Body Formal Part --
4979 -----------------------------------
4980
4981 -- ENTRY_BODY_FORMAL_PART ::=
4982 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4983
4984 -- Note that an entry body formal part node is present even if it is
4985 -- empty. This reflects the grammar, in which it is the components of
4986 -- the entry body formal part that are optional, not the entry body
4987 -- formal part itself. Also this means that the barrier condition
4988 -- always has somewhere to be stored.
4989
4990 -- Gigi restriction: This node never appears
4991
4992 -- N_Entry_Body_Formal_Part
4993 -- Sloc points to first token
4994 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4995 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4996 -- Condition (Node1) from entry barrier of entry body
4997
4998 --------------------------
4999 -- 9.5.2 Entry Barrier --
5000 --------------------------
5001
5002 -- ENTRY_BARRIER ::= when CONDITION
5003
5004 --------------------------------------
5005 -- 9.5.2 Entry Index Specification --
5006 --------------------------------------
5007
5008 -- ENTRY_INDEX_SPECIFICATION ::=
5009 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5010
5011 -- Gigi restriction: This node never appears
5012
5013 -- N_Entry_Index_Specification
5014 -- Sloc points to FOR
5015 -- Defining_Identifier (Node1)
5016 -- Discrete_Subtype_Definition (Node4)
5017
5018 ---------------------------------
5019 -- 9.5.3 Entry Call Statement --
5020 ---------------------------------
5021
5022 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5023
5024 -- The parser may generate a procedure call for this construct. The
5025 -- semantic pass must correct this misidentification where needed.
5026
5027 -- Gigi restriction: This node never appears
5028
5029 -- N_Entry_Call_Statement
5030 -- Sloc points to first token of name
5031 -- Name (Node2)
5032 -- Parameter_Associations (List3) (set to No_List if no
5033 -- actual parameter part)
5034 -- First_Named_Actual (Node4-Sem)
5035
5036 ------------------------------
5037 -- 9.5.4 Requeue Statement --
5038 ------------------------------
5039
5040 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5041
5042 -- Note: requeue statements are not permitted in Ada 83 mode
5043
5044 -- Gigi restriction: This node never appears
5045
5046 -- N_Requeue_Statement
5047 -- Sloc points to REQUEUE
5048 -- Name (Node2)
5049 -- Abort_Present (Flag15)
5050
5051 --------------------------
5052 -- 9.6 Delay Statement --
5053 --------------------------
5054
5055 -- DELAY_STATEMENT ::=
5056 -- DELAY_UNTIL_STATEMENT
5057 -- | DELAY_RELATIVE_STATEMENT
5058
5059 --------------------------------
5060 -- 9.6 Delay Until Statement --
5061 --------------------------------
5062
5063 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5064
5065 -- Note: delay until statements are not permitted in Ada 83 mode
5066
5067 -- Gigi restriction: This node never appears
5068
5069 -- N_Delay_Until_Statement
5070 -- Sloc points to DELAY
5071 -- Expression (Node3)
5072
5073 -----------------------------------
5074 -- 9.6 Delay Relative Statement --
5075 -----------------------------------
5076
5077 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5078
5079 -- Gigi restriction: This node never appears
5080
5081 -- N_Delay_Relative_Statement
5082 -- Sloc points to DELAY
5083 -- Expression (Node3)
5084
5085 ---------------------------
5086 -- 9.7 Select Statement --
5087 ---------------------------
5088
5089 -- SELECT_STATEMENT ::=
5090 -- SELECTIVE_ACCEPT
5091 -- | TIMED_ENTRY_CALL
5092 -- | CONDITIONAL_ENTRY_CALL
5093 -- | ASYNCHRONOUS_SELECT
5094
5095 -----------------------------
5096 -- 9.7.1 Selective Accept --
5097 -----------------------------
5098
5099 -- SELECTIVE_ACCEPT ::=
5100 -- select
5101 -- [GUARD]
5102 -- SELECT_ALTERNATIVE
5103 -- {or
5104 -- [GUARD]
5105 -- SELECT_ALTERNATIVE}
5106 -- [else
5107 -- SEQUENCE_OF_STATEMENTS]
5108 -- end select;
5109
5110 -- Gigi restriction: This node never appears
5111
5112 -- Note: the guard expression, if present, appears in the node for
5113 -- the select alternative.
5114
5115 -- N_Selective_Accept
5116 -- Sloc points to SELECT
5117 -- Select_Alternatives (List1)
5118 -- Else_Statements (List4) (set to No_List if no else part)
5119
5120 ------------------
5121 -- 9.7.1 Guard --
5122 ------------------
5123
5124 -- GUARD ::= when CONDITION =>
5125
5126 -- As noted above, the CONDITION that is part of a GUARD is included
5127 -- in the node for the select alternative for convenience.
5128
5129 -------------------------------
5130 -- 9.7.1 Select Alternative --
5131 -------------------------------
5132
5133 -- SELECT_ALTERNATIVE ::=
5134 -- ACCEPT_ALTERNATIVE
5135 -- | DELAY_ALTERNATIVE
5136 -- | TERMINATE_ALTERNATIVE
5137
5138 -------------------------------
5139 -- 9.7.1 Accept Alternative --
5140 -------------------------------
5141
5142 -- ACCEPT_ALTERNATIVE ::=
5143 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5144
5145 -- Gigi restriction: This node never appears
5146
5147 -- N_Accept_Alternative
5148 -- Sloc points to ACCEPT
5149 -- Accept_Statement (Node2)
5150 -- Condition (Node1) from the guard (set to Empty if no guard present)
5151 -- Statements (List3) (set to Empty_List if no statements)
5152 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5153 -- Accept_Handler_Records (List5-Sem)
5154
5155 ------------------------------
5156 -- 9.7.1 Delay Alternative --
5157 ------------------------------
5158
5159 -- DELAY_ALTERNATIVE ::=
5160 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5161
5162 -- Gigi restriction: This node never appears
5163
5164 -- N_Delay_Alternative
5165 -- Sloc points to DELAY
5166 -- Delay_Statement (Node2)
5167 -- Condition (Node1) from the guard (set to Empty if no guard present)
5168 -- Statements (List3) (set to Empty_List if no statements)
5169 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5170
5171 ----------------------------------
5172 -- 9.7.1 Terminate Alternative --
5173 ----------------------------------
5174
5175 -- TERMINATE_ALTERNATIVE ::= terminate;
5176
5177 -- Gigi restriction: This node never appears
5178
5179 -- N_Terminate_Alternative
5180 -- Sloc points to TERMINATE
5181 -- Condition (Node1) from the guard (set to Empty if no guard present)
5182 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5183 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5184
5185 -----------------------------
5186 -- 9.7.2 Timed Entry Call --
5187 -----------------------------
5188
5189 -- TIMED_ENTRY_CALL ::=
5190 -- select
5191 -- ENTRY_CALL_ALTERNATIVE
5192 -- or
5193 -- DELAY_ALTERNATIVE
5194 -- end select;
5195
5196 -- Gigi restriction: This node never appears
5197
5198 -- N_Timed_Entry_Call
5199 -- Sloc points to SELECT
5200 -- Entry_Call_Alternative (Node1)
5201 -- Delay_Alternative (Node4)
5202
5203 -----------------------------------
5204 -- 9.7.2 Entry Call Alternative --
5205 -----------------------------------
5206
5207 -- ENTRY_CALL_ALTERNATIVE ::=
5208 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5209
5210 -- PROCEDURE_OR_ENTRY_CALL ::=
5211 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5212
5213 -- Gigi restriction: This node never appears
5214
5215 -- N_Entry_Call_Alternative
5216 -- Sloc points to first token of entry call statement
5217 -- Entry_Call_Statement (Node1)
5218 -- Statements (List3) (set to Empty_List if no statements)
5219 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5220
5221 -----------------------------------
5222 -- 9.7.3 Conditional Entry Call --
5223 -----------------------------------
5224
5225 -- CONDITIONAL_ENTRY_CALL ::=
5226 -- select
5227 -- ENTRY_CALL_ALTERNATIVE
5228 -- else
5229 -- SEQUENCE_OF_STATEMENTS
5230 -- end select;
5231
5232 -- Gigi restriction: This node never appears
5233
5234 -- N_Conditional_Entry_Call
5235 -- Sloc points to SELECT
5236 -- Entry_Call_Alternative (Node1)
5237 -- Else_Statements (List4)
5238
5239 --------------------------------
5240 -- 9.7.4 Asynchronous Select --
5241 --------------------------------
5242
5243 -- ASYNCHRONOUS_SELECT ::=
5244 -- select
5245 -- TRIGGERING_ALTERNATIVE
5246 -- then abort
5247 -- ABORTABLE_PART
5248 -- end select;
5249
5250 -- Note: asynchronous select is not permitted in Ada 83 mode
5251
5252 -- Gigi restriction: This node never appears
5253
5254 -- N_Asynchronous_Select
5255 -- Sloc points to SELECT
5256 -- Triggering_Alternative (Node1)
5257 -- Abortable_Part (Node2)
5258
5259 -----------------------------------
5260 -- 9.7.4 Triggering Alternative --
5261 -----------------------------------
5262
5263 -- TRIGGERING_ALTERNATIVE ::=
5264 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5265
5266 -- Gigi restriction: This node never appears
5267
5268 -- N_Triggering_Alternative
5269 -- Sloc points to first token of triggering statement
5270 -- Triggering_Statement (Node1)
5271 -- Statements (List3) (set to Empty_List if no statements)
5272 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5273
5274 ---------------------------------
5275 -- 9.7.4 Triggering Statement --
5276 ---------------------------------
5277
5278 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5279
5280 ---------------------------
5281 -- 9.7.4 Abortable Part --
5282 ---------------------------
5283
5284 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5285
5286 -- Gigi restriction: This node never appears
5287
5288 -- N_Abortable_Part
5289 -- Sloc points to ABORT
5290 -- Statements (List3)
5291
5292 --------------------------
5293 -- 9.8 Abort Statement --
5294 --------------------------
5295
5296 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5297
5298 -- Gigi restriction: This node never appears
5299
5300 -- N_Abort_Statement
5301 -- Sloc points to ABORT
5302 -- Names (List2)
5303
5304 -------------------------
5305 -- 10.1.1 Compilation --
5306 -------------------------
5307
5308 -- COMPILATION ::= {COMPILATION_UNIT}
5309
5310 -- There is no explicit node in the tree for a compilation, since in
5311 -- general the compiler is processing only a single compilation unit
5312 -- at a time. It is possible to parse multiple units in syntax check
5313 -- only mode, but the trees are discarded in that case.
5314
5315 ------------------------------
5316 -- 10.1.1 Compilation Unit --
5317 ------------------------------
5318
5319 -- COMPILATION_UNIT ::=
5320 -- CONTEXT_CLAUSE LIBRARY_ITEM
5321 -- | CONTEXT_CLAUSE SUBUNIT
5322
5323 -- The N_Compilation_Unit node itself represents the above syntax.
5324 -- However, there are two additional items not reflected in the above
5325 -- syntax. First we have the global declarations that are added by the
5326 -- code generator. These are outer level declarations (so they cannot
5327 -- be represented as being inside the units). An example is the wrapper
5328 -- subprograms that are created to do ABE checking. As always a list of
5329 -- declarations can contain actions as well (i.e. statements), and such
5330 -- statements are executed as part of the elaboration of the unit. Note
5331 -- that all such declarations are elaborated before the library unit.
5332
5333 -- Similarly, certain actions need to be elaborated at the completion
5334 -- of elaboration of the library unit (notably the statement that sets
5335 -- the Boolean flag indicating that elaboration is complete).
5336
5337 -- The third item not reflected in the syntax is pragmas that appear
5338 -- after the compilation unit. As always pragmas are a problem since
5339 -- they are not part of the formal syntax, but can be stuck into the
5340 -- source following a set of ad hoc rules, and we have to find an ad
5341 -- hoc way of sticking them into the tree. For pragmas that appear
5342 -- before the library unit, we just consider them to be part of the
5343 -- context clause, and pragmas can appear in the Context_Items list
5344 -- of the compilation unit. However, pragmas can also appear after
5345 -- the library item.
5346
5347 -- To deal with all these problems, we create an auxiliary node for
5348 -- a compilation unit, referenced from the N_Compilation_Unit node
5349 -- that contains these three items.
5350
5351 -- N_Compilation_Unit
5352 -- Sloc points to first token of defining unit name
5353 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5354 -- Context_Items (List1) context items and pragmas preceding unit
5355 -- Private_Present (Flag15) set if library unit has private keyword
5356 -- Unit (Node2) library item or subunit
5357 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5358 -- Has_No_Elaboration_Code (Flag17-Sem)
5359 -- Body_Required (Flag13-Sem) set for spec if body is required
5360 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5361 -- First_Inlined_Subprogram (Node3-Sem)
5362
5363 -- N_Compilation_Unit_Aux
5364 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5365 -- Declarations (List2) (set to No_List if no global declarations)
5366 -- Actions (List1) (set to No_List if no actions)
5367 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5368 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5369
5370 --------------------------
5371 -- 10.1.1 Library Item --
5372 --------------------------
5373
5374 -- LIBRARY_ITEM ::=
5375 -- [private] LIBRARY_UNIT_DECLARATION
5376 -- | LIBRARY_UNIT_BODY
5377 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5378
5379 -- Note: PRIVATE is not allowed in Ada 83 mode
5380
5381 -- There is no explicit node in the tree for library item, instead
5382 -- the declaration or body, and the flag for private if present,
5383 -- appear in the N_Compilation_Unit node.
5384
5385 --------------------------------------
5386 -- 10.1.1 Library Unit Declaration --
5387 --------------------------------------
5388
5389 -- LIBRARY_UNIT_DECLARATION ::=
5390 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5391 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5392
5393 -----------------------------------------------
5394 -- 10.1.1 Library Unit Renaming Declaration --
5395 -----------------------------------------------
5396
5397 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5398 -- PACKAGE_RENAMING_DECLARATION
5399 -- | GENERIC_RENAMING_DECLARATION
5400 -- | SUBPROGRAM_RENAMING_DECLARATION
5401
5402 -------------------------------
5403 -- 10.1.1 Library unit body --
5404 -------------------------------
5405
5406 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5407
5408 ------------------------------
5409 -- 10.1.1 Parent Unit Name --
5410 ------------------------------
5411
5412 -- PARENT_UNIT_NAME ::= NAME
5413
5414 ----------------------------
5415 -- 10.1.2 Context clause --
5416 ----------------------------
5417
5418 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5419
5420 -- The context clause can include pragmas, and any pragmas that appear
5421 -- before the context clause proper (i.e. all configuration pragmas,
5422 -- also appear at the front of this list).
5423
5424 --------------------------
5425 -- 10.1.2 Context_Item --
5426 --------------------------
5427
5428 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5429
5430 -------------------------
5431 -- 10.1.2 With clause --
5432 -------------------------
5433
5434 -- WITH_CLAUSE ::=
5435 -- with library_unit_NAME {,library_unit_NAME};
5436
5437 -- A separate With clause is built for each name, so that we have
5438 -- a Corresponding_Spec field for each with'ed spec. The flags
5439 -- First_Name and Last_Name are used to reconstruct the exact
5440 -- source form. When a list of names appears in one with clause,
5441 -- the first name in the list has First_Name set, and the last
5442 -- has Last_Name set. If the with clause has only one name, then
5443 -- both of the flags First_Name and Last_Name are set in this name.
5444
5445 -- Note: in the case of implicit with's that are installed by the
5446 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5447 -- set to Standard_Location, but it is incorrect to test the Sloc
5448 -- to find out if a with clause is implicit, test the flag instead.
5449
5450 -- N_With_Clause
5451 -- Sloc points to first token of library unit name
5452 -- Name (Node2)
5453 -- Library_Unit (Node4-Sem)
5454 -- Corresponding_Spec (Node5-Sem)
5455 -- First_Name (Flag5) (set to True if first name or only one name)
5456 -- Last_Name (Flag6) (set to True if last name or only one name)
5457 -- Context_Installed (Flag13-Sem)
5458 -- Elaborate_Present (Flag4-Sem)
5459 -- Elaborate_All_Present (Flag14-Sem)
5460 -- Elaborate_All_Desirable (Flag9-Sem)
5461 -- Elaborate_Desirable (Flag11-Sem)
5462 -- Private_Present (Flag15) set if with_clause has private keyword
5463 -- Implicit_With (Flag16-Sem)
5464 -- Limited_Present (Flag17) set if LIMITED is present
5465 -- Limited_View_Installed (Flag18-Sem)
5466 -- Unreferenced_In_Spec (Flag7-Sem)
5467 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5468
5469 -- Note: Limited_Present and Limited_View_Installed give support to
5470 -- Ada 2005 (AI-50217).
5471 -- Similarly, Private_Present gives support to AI-50262.
5472
5473 ----------------------
5474 -- With_Type clause --
5475 ----------------------
5476
5477 -- This is a GNAT extension, used to implement mutually recursive
5478 -- types declared in different packages.
5479 -- Note: this is now obsolete. The functionality of this construct
5480 -- is now implemented by the Ada 2005 Limited_with_Clause.
5481
5482 ---------------------
5483 -- 10.2 Body stub --
5484 ---------------------
5485
5486 -- BODY_STUB ::=
5487 -- SUBPROGRAM_BODY_STUB
5488 -- | PACKAGE_BODY_STUB
5489 -- | TASK_BODY_STUB
5490 -- | PROTECTED_BODY_STUB
5491
5492 ----------------------------------
5493 -- 10.1.3 Subprogram Body Stub --
5494 ----------------------------------
5495
5496 -- SUBPROGRAM_BODY_STUB ::=
5497 -- SUBPROGRAM_SPECIFICATION is separate;
5498
5499 -- N_Subprogram_Body_Stub
5500 -- Sloc points to FUNCTION or PROCEDURE
5501 -- Specification (Node1)
5502 -- Library_Unit (Node4-Sem) points to the subunit
5503 -- Corresponding_Body (Node5-Sem)
5504
5505 -------------------------------
5506 -- 10.1.3 Package Body Stub --
5507 -------------------------------
5508
5509 -- PACKAGE_BODY_STUB ::=
5510 -- package body DEFINING_IDENTIFIER is separate;
5511
5512 -- N_Package_Body_Stub
5513 -- Sloc points to PACKAGE
5514 -- Defining_Identifier (Node1)
5515 -- Library_Unit (Node4-Sem) points to the subunit
5516 -- Corresponding_Body (Node5-Sem)
5517
5518 ----------------------------
5519 -- 10.1.3 Task Body Stub --
5520 ----------------------------
5521
5522 -- TASK_BODY_STUB ::=
5523 -- task body DEFINING_IDENTIFIER is separate;
5524
5525 -- N_Task_Body_Stub
5526 -- Sloc points to TASK
5527 -- Defining_Identifier (Node1)
5528 -- Library_Unit (Node4-Sem) points to the subunit
5529 -- Corresponding_Body (Node5-Sem)
5530
5531 ---------------------------------
5532 -- 10.1.3 Protected Body Stub --
5533 ---------------------------------
5534
5535 -- PROTECTED_BODY_STUB ::=
5536 -- protected body DEFINING_IDENTIFIER is separate;
5537
5538 -- Note: protected body stubs are not allowed in Ada 83 mode
5539
5540 -- N_Protected_Body_Stub
5541 -- Sloc points to PROTECTED
5542 -- Defining_Identifier (Node1)
5543 -- Library_Unit (Node4-Sem) points to the subunit
5544 -- Corresponding_Body (Node5-Sem)
5545
5546 ---------------------
5547 -- 10.1.3 Subunit --
5548 ---------------------
5549
5550 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5551
5552 -- N_Subunit
5553 -- Sloc points to SEPARATE
5554 -- Name (Node2) is the name of the parent unit
5555 -- Proper_Body (Node1) is the subunit body
5556 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5557
5558 ---------------------------------
5559 -- 11.1 Exception Declaration --
5560 ---------------------------------
5561
5562 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5563
5564 -- For consistency with object declarations etc., the parser converts
5565 -- the case of multiple identifiers being declared to a series of
5566 -- declarations in which the expression is copied, using the More_Ids
5567 -- and Prev_Ids flags to remember the source form as described in the
5568 -- section on "Handling of Defining Identifier Lists".
5569
5570 -- N_Exception_Declaration
5571 -- Sloc points to EXCEPTION
5572 -- Defining_Identifier (Node1)
5573 -- Expression (Node3-Sem)
5574 -- Renaming_Exception (Node2-Sem)
5575 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5576 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5577
5578 ------------------------------------------
5579 -- 11.2 Handled Sequence Of Statements --
5580 ------------------------------------------
5581
5582 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5583 -- SEQUENCE_OF_STATEMENTS
5584 -- [exception
5585 -- EXCEPTION_HANDLER
5586 -- {EXCEPTION_HANDLER}]
5587 -- [at end
5588 -- cleanup_procedure_call (param, param, param, ...);]
5589
5590 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5591 -- used only internally currently, but is considered to be syntactic.
5592 -- At the moment, the only cleanup action allowed is a single call to
5593 -- a parameterless procedure, and the Identifier field of the node is
5594 -- the procedure to be called. Also there is a current restriction
5595 -- that exception handles and a cleanup cannot be present in the same
5596 -- frame, so at least one of Exception_Handlers or the Identifier must
5597 -- be missing.
5598
5599 -- Actually, more accurately, this restriction applies to the original
5600 -- source program. In the expanded tree, if the At_End_Proc field is
5601 -- present, then there will also be an exception handler of the form:
5602
5603 -- when all others =>
5604 -- cleanup;
5605 -- raise;
5606
5607 -- where cleanup is the procedure to be generated. The reason we do
5608 -- this is so that the front end can handle the necessary entries in
5609 -- the exception tables, and other exception handler actions required
5610 -- as part of the normal handling for exception handlers.
5611
5612 -- The AT END cleanup handler protects only the sequence of statements
5613 -- (not the associated declarations of the parent), just like exception
5614 -- handlers. The big difference is that the cleanup procedure is called
5615 -- on either a normal or an abnormal exit from the statement sequence.
5616
5617 -- Note: the list of Exception_Handlers can contain pragmas as well
5618 -- as actual handlers. In practice these pragmas can only occur at
5619 -- the start of the list, since any pragmas occurring later on will
5620 -- be included in the statement list of the corresponding handler.
5621
5622 -- Note: although in the Ada syntax, the sequence of statements in
5623 -- a handled sequence of statements can only contain statements, we
5624 -- allow free mixing of declarations and statements in the resulting
5625 -- expanded tree. This is for example used to deal with the case of
5626 -- a cleanup procedure that must handle declarations as well as the
5627 -- statements of a block.
5628
5629 -- N_Handled_Sequence_Of_Statements
5630 -- Sloc points to first token of first statement
5631 -- Statements (List3)
5632 -- End_Label (Node4) (set to Empty if expander generated)
5633 -- Exception_Handlers (List5) (set to No_List if none present)
5634 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5635 -- First_Real_Statement (Node2-Sem)
5636 -- Zero_Cost_Handling (Flag5-Sem)
5637
5638 -- Note: the parent always contains a Declarations field which contains
5639 -- declarations associated with the handled sequence of statements. This
5640 -- is true even in the case of an accept statement (see description of
5641 -- the N_Accept_Statement node).
5642
5643 -- End_Label refers to the containing construct
5644
5645 -----------------------------
5646 -- 11.2 Exception Handler --
5647 -----------------------------
5648
5649 -- EXCEPTION_HANDLER ::=
5650 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5651 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5652 -- SEQUENCE_OF_STATEMENTS
5653
5654 -- Note: choice parameter specification is not allowed in Ada 83 mode
5655
5656 -- N_Exception_Handler
5657 -- Sloc points to WHEN
5658 -- Choice_Parameter (Node2) (set to Empty if not present)
5659 -- Exception_Choices (List4)
5660 -- Statements (List3)
5661 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5662 -- Zero_Cost_Handling (Flag5-Sem)
5663 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5664 -- Local_Raise_Not_OK (Flag7-Sem)
5665 -- Has_Local_Raise (Flag8-Sem)
5666
5667 ------------------------------------------
5668 -- 11.2 Choice parameter specification --
5669 ------------------------------------------
5670
5671 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5672
5673 ----------------------------
5674 -- 11.2 Exception Choice --
5675 ----------------------------
5676
5677 -- EXCEPTION_CHOICE ::= exception_NAME | others
5678
5679 -- Except in the case of OTHERS, no explicit node appears in the tree
5680 -- for exception choice. Instead the exception name appears directly.
5681 -- An OTHERS choice is represented by a N_Others_Choice node (see
5682 -- section 3.8.1.
5683
5684 -- Note: for the exception choice created for an at end handler, the
5685 -- exception choice is an N_Others_Choice node with All_Others set.
5686
5687 ---------------------------
5688 -- 11.3 Raise Statement --
5689 ---------------------------
5690
5691 -- RAISE_STATEMENT ::= raise [exception_NAME];
5692
5693 -- In Ada 2005, we have
5694
5695 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5696
5697 -- N_Raise_Statement
5698 -- Sloc points to RAISE
5699 -- Name (Node2) (set to Empty if no exception name present)
5700 -- Expression (Node3) (set to Empty if no expression present)
5701 -- From_At_End (Flag4-Sem)
5702
5703 -------------------------------
5704 -- 12.1 Generic Declaration --
5705 -------------------------------
5706
5707 -- GENERIC_DECLARATION ::=
5708 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5709
5710 ------------------------------------------
5711 -- 12.1 Generic Subprogram Declaration --
5712 ------------------------------------------
5713
5714 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5715 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5716
5717 -- Note: Generic_Formal_Declarations can include pragmas
5718
5719 -- N_Generic_Subprogram_Declaration
5720 -- Sloc points to GENERIC
5721 -- Specification (Node1) subprogram specification
5722 -- Corresponding_Body (Node5-Sem)
5723 -- Generic_Formal_Declarations (List2) from generic formal part
5724 -- Parent_Spec (Node4-Sem)
5725
5726 ---------------------------------------
5727 -- 12.1 Generic Package Declaration --
5728 ---------------------------------------
5729
5730 -- GENERIC_PACKAGE_DECLARATION ::=
5731 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5732
5733 -- Note: when we do generics right, the Activation_Chain_Entity entry
5734 -- for this node can be removed (since the expander won't see generic
5735 -- units any more)???.
5736
5737 -- Note: Generic_Formal_Declarations can include pragmas
5738
5739 -- N_Generic_Package_Declaration
5740 -- Sloc points to GENERIC
5741 -- Specification (Node1) package specification
5742 -- Corresponding_Body (Node5-Sem)
5743 -- Generic_Formal_Declarations (List2) from generic formal part
5744 -- Parent_Spec (Node4-Sem)
5745 -- Activation_Chain_Entity (Node3-Sem)
5746
5747 -------------------------------
5748 -- 12.1 Generic Formal Part --
5749 -------------------------------
5750
5751 -- GENERIC_FORMAL_PART ::=
5752 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5753
5754 ------------------------------------------------
5755 -- 12.1 Generic Formal Parameter Declaration --
5756 ------------------------------------------------
5757
5758 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5759 -- FORMAL_OBJECT_DECLARATION
5760 -- | FORMAL_TYPE_DECLARATION
5761 -- | FORMAL_SUBPROGRAM_DECLARATION
5762 -- | FORMAL_PACKAGE_DECLARATION
5763
5764 ---------------------------------
5765 -- 12.3 Generic Instantiation --
5766 ---------------------------------
5767
5768 -- GENERIC_INSTANTIATION ::=
5769 -- package DEFINING_PROGRAM_UNIT_NAME is
5770 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5771 -- | [[not] overriding]
5772 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5773 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5774 -- | [[not] overriding]
5775 -- function DEFINING_DESIGNATOR is
5776 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5777
5778 -- N_Package_Instantiation
5779 -- Sloc points to PACKAGE
5780 -- Defining_Unit_Name (Node1)
5781 -- Name (Node2)
5782 -- Generic_Associations (List3) (set to No_List if no
5783 -- generic actual part)
5784 -- Parent_Spec (Node4-Sem)
5785 -- Instance_Spec (Node5-Sem)
5786 -- ABE_Is_Certain (Flag18-Sem)
5787
5788 -- N_Procedure_Instantiation
5789 -- Sloc points to PROCEDURE
5790 -- Defining_Unit_Name (Node1)
5791 -- Name (Node2)
5792 -- Parent_Spec (Node4-Sem)
5793 -- Generic_Associations (List3) (set to No_List if no
5794 -- generic actual part)
5795 -- Instance_Spec (Node5-Sem)
5796 -- Must_Override (Flag14) set if overriding indicator present
5797 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5798 -- ABE_Is_Certain (Flag18-Sem)
5799
5800 -- N_Function_Instantiation
5801 -- Sloc points to FUNCTION
5802 -- Defining_Unit_Name (Node1)
5803 -- Name (Node2)
5804 -- Generic_Associations (List3) (set to No_List if no
5805 -- generic actual part)
5806 -- Parent_Spec (Node4-Sem)
5807 -- Instance_Spec (Node5-Sem)
5808 -- Must_Override (Flag14) set if overriding indicator present
5809 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5810 -- ABE_Is_Certain (Flag18-Sem)
5811
5812 -- Note: overriding indicator is an Ada 2005 feature
5813
5814 -------------------------------
5815 -- 12.3 Generic Actual Part --
5816 -------------------------------
5817
5818 -- GENERIC_ACTUAL_PART ::=
5819 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5820
5821 -------------------------------
5822 -- 12.3 Generic Association --
5823 -------------------------------
5824
5825 -- GENERIC_ASSOCIATION ::=
5826 -- [generic_formal_parameter_SELECTOR_NAME =>]
5827
5828 -- Note: unlike the procedure call case, a generic association node
5829 -- is generated for every association, even if no formal parameter
5830 -- selector name is present. In this case the parser will leave the
5831 -- Selector_Name field set to Empty, to be filled in later by the
5832 -- semantic pass.
5833
5834 -- In Ada 2005, a formal may be associated with a box, if the
5835 -- association is part of the list of actuals for a formal package.
5836 -- If the association is given by OTHERS => <>, the association is
5837 -- an N_Others_Choice.
5838
5839 -- N_Generic_Association
5840 -- Sloc points to first token of generic association
5841 -- Selector_Name (Node2) (set to Empty if no formal
5842 -- parameter selector name)
5843 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5844 -- Box_Present (Flag15) (for formal_package associations with a box)
5845
5846 ---------------------------------------------
5847 -- 12.3 Explicit Generic Actual Parameter --
5848 ---------------------------------------------
5849
5850 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5851 -- EXPRESSION | variable_NAME | subprogram_NAME
5852 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5853
5854 -------------------------------------
5855 -- 12.4 Formal Object Declaration --
5856 -------------------------------------
5857
5858 -- FORMAL_OBJECT_DECLARATION ::=
5859 -- DEFINING_IDENTIFIER_LIST :
5860 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5861 -- | DEFINING_IDENTIFIER_LIST :
5862 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5863
5864 -- Although the syntax allows multiple identifiers in the list, the
5865 -- semantics is as though successive declarations were given with
5866 -- identical type definition and expression components. To simplify
5867 -- semantic processing, the parser represents a multiple declaration
5868 -- case as a sequence of single declarations, using the More_Ids and
5869 -- Prev_Ids flags to preserve the original source form as described
5870 -- in the section on "Handling of Defining Identifier Lists".
5871
5872 -- N_Formal_Object_Declaration
5873 -- Sloc points to first identifier
5874 -- Defining_Identifier (Node1)
5875 -- In_Present (Flag15)
5876 -- Out_Present (Flag17)
5877 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5878 -- Subtype_Mark (Node4) (set to Empty if not present)
5879 -- Access_Definition (Node3) (set to Empty if not present)
5880 -- Default_Expression (Node5) (set to Empty if no default expression)
5881 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5882 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5883
5884 -----------------------------------
5885 -- 12.5 Formal Type Declaration --
5886 -----------------------------------
5887
5888 -- FORMAL_TYPE_DECLARATION ::=
5889 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5890 -- is FORMAL_TYPE_DEFINITION;
5891
5892 -- N_Formal_Type_Declaration
5893 -- Sloc points to TYPE
5894 -- Defining_Identifier (Node1)
5895 -- Formal_Type_Definition (Node3)
5896 -- Discriminant_Specifications (List4) (set to No_List if no
5897 -- discriminant part)
5898 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5899
5900 ----------------------------------
5901 -- 12.5 Formal type definition --
5902 ----------------------------------
5903
5904 -- FORMAL_TYPE_DEFINITION ::=
5905 -- FORMAL_PRIVATE_TYPE_DEFINITION
5906 -- | FORMAL_DERIVED_TYPE_DEFINITION
5907 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5908 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5909 -- | FORMAL_MODULAR_TYPE_DEFINITION
5910 -- | FORMAL_FLOATING_POINT_DEFINITION
5911 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5912 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5913 -- | FORMAL_ARRAY_TYPE_DEFINITION
5914 -- | FORMAL_ACCESS_TYPE_DEFINITION
5915 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5916
5917 ---------------------------------------------
5918 -- 12.5.1 Formal Private Type Definition --
5919 ---------------------------------------------
5920
5921 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5922 -- [[abstract] tagged] [limited] private
5923
5924 -- Note: TAGGED is not allowed in Ada 83 mode
5925
5926 -- N_Formal_Private_Type_Definition
5927 -- Sloc points to PRIVATE
5928 -- Abstract_Present (Flag4)
5929 -- Tagged_Present (Flag15)
5930 -- Limited_Present (Flag17)
5931
5932 --------------------------------------------
5933 -- 12.5.1 Formal Derived Type Definition --
5934 --------------------------------------------
5935
5936 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5937 -- [abstract] [limited | synchronized]
5938 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5939 -- Note: this construct is not allowed in Ada 83 mode
5940
5941 -- N_Formal_Derived_Type_Definition
5942 -- Sloc points to NEW
5943 -- Subtype_Mark (Node4)
5944 -- Private_Present (Flag15)
5945 -- Abstract_Present (Flag4)
5946 -- Limited_Present (Flag17)
5947 -- Synchronized_Present (Flag7)
5948 -- Interface_List (List2) (set to No_List if none)
5949
5950 ---------------------------------------------
5951 -- 12.5.2 Formal Discrete Type Definition --
5952 ---------------------------------------------
5953
5954 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5955
5956 -- N_Formal_Discrete_Type_Definition
5957 -- Sloc points to (
5958
5959 ---------------------------------------------------
5960 -- 12.5.2 Formal Signed Integer Type Definition --
5961 ---------------------------------------------------
5962
5963 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5964
5965 -- N_Formal_Signed_Integer_Type_Definition
5966 -- Sloc points to RANGE
5967
5968 --------------------------------------------
5969 -- 12.5.2 Formal Modular Type Definition --
5970 --------------------------------------------
5971
5972 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5973
5974 -- N_Formal_Modular_Type_Definition
5975 -- Sloc points to MOD
5976
5977 ----------------------------------------------
5978 -- 12.5.2 Formal Floating Point Definition --
5979 ----------------------------------------------
5980
5981 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5982
5983 -- N_Formal_Floating_Point_Definition
5984 -- Sloc points to DIGITS
5985
5986 ----------------------------------------------------
5987 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5988 ----------------------------------------------------
5989
5990 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5991
5992 -- N_Formal_Ordinary_Fixed_Point_Definition
5993 -- Sloc points to DELTA
5994
5995 ---------------------------------------------------
5996 -- 12.5.2 Formal Decimal Fixed Point Definition --
5997 ---------------------------------------------------
5998
5999 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6000
6001 -- Note: formal decimal fixed point definition not allowed in Ada 83
6002
6003 -- N_Formal_Decimal_Fixed_Point_Definition
6004 -- Sloc points to DELTA
6005
6006 ------------------------------------------
6007 -- 12.5.3 Formal Array Type Definition --
6008 ------------------------------------------
6009
6010 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6011
6012 -------------------------------------------
6013 -- 12.5.4 Formal Access Type Definition --
6014 -------------------------------------------
6015
6016 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6017
6018 ----------------------------------------------
6019 -- 12.5.5 Formal Interface Type Definition --
6020 ----------------------------------------------
6021
6022 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6023
6024 -----------------------------------------
6025 -- 12.6 Formal Subprogram Declaration --
6026 -----------------------------------------
6027
6028 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6029 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6030 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6031
6032 --------------------------------------------------
6033 -- 12.6 Formal Concrete Subprogram Declaration --
6034 --------------------------------------------------
6035
6036 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6037 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6038
6039 -- N_Formal_Concrete_Subprogram_Declaration
6040 -- Sloc points to WITH
6041 -- Specification (Node1)
6042 -- Default_Name (Node2) (set to Empty if no subprogram default)
6043 -- Box_Present (Flag15)
6044
6045 -- Note: if no subprogram default is present, then Name is set
6046 -- to Empty, and Box_Present is False.
6047
6048 --------------------------------------------------
6049 -- 12.6 Formal Abstract Subprogram Declaration --
6050 --------------------------------------------------
6051
6052 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6053 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6054
6055 -- N_Formal_Abstract_Subprogram_Declaration
6056 -- Sloc points to WITH
6057 -- Specification (Node1)
6058 -- Default_Name (Node2) (set to Empty if no subprogram default)
6059 -- Box_Present (Flag15)
6060
6061 -- Note: if no subprogram default is present, then Name is set
6062 -- to Empty, and Box_Present is False.
6063
6064 ------------------------------
6065 -- 12.6 Subprogram Default --
6066 ------------------------------
6067
6068 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6069
6070 -- There is no separate node in the tree for a subprogram default.
6071 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6072 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6073 -- default name or box indication, as needed.
6074
6075 ------------------------
6076 -- 12.6 Default Name --
6077 ------------------------
6078
6079 -- DEFAULT_NAME ::= NAME
6080
6081 --------------------------------------
6082 -- 12.7 Formal Package Declaration --
6083 --------------------------------------
6084
6085 -- FORMAL_PACKAGE_DECLARATION ::=
6086 -- with package DEFINING_IDENTIFIER
6087 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6088
6089 -- Note: formal package declarations not allowed in Ada 83 mode
6090
6091 -- N_Formal_Package_Declaration
6092 -- Sloc points to WITH
6093 -- Defining_Identifier (Node1)
6094 -- Name (Node2)
6095 -- Generic_Associations (List3) (set to No_List if (<>) case or
6096 -- empty generic actual part)
6097 -- Box_Present (Flag15)
6098 -- Instance_Spec (Node5-Sem)
6099 -- ABE_Is_Certain (Flag18-Sem)
6100
6101 --------------------------------------
6102 -- 12.7 Formal Package Actual Part --
6103 --------------------------------------
6104
6105 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6106 -- ([OTHERS] => <>)
6107 -- | [GENERIC_ACTUAL_PART]
6108 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6109
6110 -- FORMAL_PACKAGE_ASSOCIATION ::=
6111 -- GENERIC_ASSOCIATION
6112 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6113
6114 -- There is no explicit node in the tree for a formal package actual
6115 -- part. Instead the information appears in the parent node (i.e. the
6116 -- formal package declaration node itself).
6117
6118 -- There is no explicit node for a formal package association. All of
6119 -- them are represented either by a generic association, possibly with
6120 -- Box_Present, or by an N_Others_Choice.
6121
6122 ---------------------------------
6123 -- 13.1 Representation clause --
6124 ---------------------------------
6125
6126 -- REPRESENTATION_CLAUSE ::=
6127 -- ATTRIBUTE_DEFINITION_CLAUSE
6128 -- | ENUMERATION_REPRESENTATION_CLAUSE
6129 -- | RECORD_REPRESENTATION_CLAUSE
6130 -- | AT_CLAUSE
6131
6132 ----------------------
6133 -- 13.1 Local Name --
6134 ----------------------
6135
6136 -- LOCAL_NAME :=
6137 -- DIRECT_NAME
6138 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6139 -- | library_unit_NAME
6140
6141 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6142 -- as an attribute reference, which has essentially the same form.
6143
6144 ---------------------------------------
6145 -- 13.3 Attribute definition clause --
6146 ---------------------------------------
6147
6148 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6149 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6150 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6151
6152 -- In Ada 83, the expression must be a simple expression and the
6153 -- local name must be a direct name.
6154
6155 -- Note: the only attribute definition clause that is processed by
6156 -- gigi is an address clause. For all other cases, the information
6157 -- is extracted by the front end and either results in setting entity
6158 -- information, e.g. Esize for the Size clause, or in appropriate
6159 -- expansion actions (e.g. in the case of Storage_Size).
6160
6161 -- For an address clause, Gigi constructs the appropriate addressing
6162 -- code. It also ensures that no aliasing optimizations are made
6163 -- for the object for which the address clause appears.
6164
6165 -- Note: for an address clause used to achieve an overlay:
6166
6167 -- A : Integer;
6168 -- B : Integer;
6169 -- for B'Address use A'Address;
6170
6171 -- the above rule means that Gigi will ensure that no optimizations
6172 -- will be made for B that would violate the implementation advice
6173 -- of RM 13.3(19). However, this advice applies only to B and not
6174 -- to A, which seems unfortunate. The GNAT front end will mark the
6175 -- object A as volatile to also prevent unwanted optimization
6176 -- assumptions based on no aliasing being made for B.
6177
6178 -- N_Attribute_Definition_Clause
6179 -- Sloc points to FOR
6180 -- Name (Node2) the local name
6181 -- Chars (Name1) the identifier name from the attribute designator
6182 -- Expression (Node3) the expression or name
6183 -- Entity (Node4-Sem)
6184 -- Next_Rep_Item (Node5-Sem)
6185 -- From_At_Mod (Flag4-Sem)
6186 -- Check_Address_Alignment (Flag11-Sem)
6187 -- Address_Warning_Posted (Flag18-Sem)
6188
6189 ---------------------------------------------
6190 -- 13.4 Enumeration representation clause --
6191 ---------------------------------------------
6192
6193 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6194 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6195
6196 -- In Ada 83, the name must be a direct name
6197
6198 -- N_Enumeration_Representation_Clause
6199 -- Sloc points to FOR
6200 -- Identifier (Node1) direct name
6201 -- Array_Aggregate (Node3)
6202 -- Next_Rep_Item (Node5-Sem)
6203
6204 ---------------------------------
6205 -- 13.4 Enumeration aggregate --
6206 ---------------------------------
6207
6208 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6209
6210 ------------------------------------------
6211 -- 13.5.1 Record representation clause --
6212 ------------------------------------------
6213
6214 -- RECORD_REPRESENTATION_CLAUSE ::=
6215 -- for first_subtype_LOCAL_NAME use
6216 -- record [MOD_CLAUSE]
6217 -- {COMPONENT_CLAUSE}
6218 -- end record;
6219
6220 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6221 -- replaced by a corresponding Alignment attribute definition clause).
6222
6223 -- Note: Component_Clauses can include pragmas
6224
6225 -- N_Record_Representation_Clause
6226 -- Sloc points to FOR
6227 -- Identifier (Node1) direct name
6228 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6229 -- Component_Clauses (List3)
6230 -- Next_Rep_Item (Node5-Sem)
6231
6232 ------------------------------
6233 -- 13.5.1 Component clause --
6234 ------------------------------
6235
6236 -- COMPONENT_CLAUSE ::=
6237 -- component_LOCAL_NAME at POSITION
6238 -- range FIRST_BIT .. LAST_BIT;
6239
6240 -- N_Component_Clause
6241 -- Sloc points to AT
6242 -- Component_Name (Node1) points to Name or Attribute_Reference
6243 -- Position (Node2)
6244 -- First_Bit (Node3)
6245 -- Last_Bit (Node4)
6246
6247 ----------------------
6248 -- 13.5.1 Position --
6249 ----------------------
6250
6251 -- POSITION ::= static_EXPRESSION
6252
6253 -----------------------
6254 -- 13.5.1 First_Bit --
6255 -----------------------
6256
6257 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6258
6259 ----------------------
6260 -- 13.5.1 Last_Bit --
6261 ----------------------
6262
6263 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6264
6265 --------------------------
6266 -- 13.8 Code statement --
6267 --------------------------
6268
6269 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6270
6271 -- Note: in GNAT, the qualified expression has the form
6272
6273 -- Asm_Insn'(Asm (...));
6274
6275 -- See package System.Machine_Code in file s-maccod.ads for details on
6276 -- the allowed parameters to Asm. There are two ways this node can
6277 -- arise, as a code statement, in which case the expression is the
6278 -- qualified expression, or as a result of the expansion of an intrinsic
6279 -- call to the Asm or Asm_Input procedure.
6280
6281 -- N_Code_Statement
6282 -- Sloc points to first token of the expression
6283 -- Expression (Node3)
6284
6285 -- Note: package Exp_Code contains an abstract functional interface
6286 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6287
6288 ------------------------
6289 -- 13.12 Restriction --
6290 ------------------------
6291
6292 -- RESTRICTION ::=
6293 -- restriction_IDENTIFIER
6294 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6295
6296 -- There is no explicit node for restrictions. Instead the restriction
6297 -- appears in normal pragma syntax as a pragma argument association,
6298 -- which has the same syntactic form.
6299
6300 --------------------------
6301 -- B.2 Shift Operators --
6302 --------------------------
6303
6304 -- Calls to the intrinsic shift functions are converted to one of
6305 -- the following shift nodes, which have the form of normal binary
6306 -- operator names. Note that for a given shift operation, one node
6307 -- covers all possible types, as for normal operators.
6308
6309 -- Note: it is perfectly permissible for the expander to generate
6310 -- shift operation nodes directly, in which case they will be analyzed
6311 -- and parsed in the usual manner.
6312
6313 -- Sprint syntax: shift-function-name!(expr, count)
6314
6315 -- Note: the Left_Opnd field holds the first argument (the value to
6316 -- be shifted). The Right_Opnd field holds the second argument (the
6317 -- shift count). The Chars field is the name of the intrinsic function.
6318
6319 -- N_Op_Rotate_Left
6320 -- Sloc points to the function name
6321 -- plus fields for binary operator
6322 -- plus fields for expression
6323 -- Shift_Count_OK (Flag4-Sem)
6324
6325 -- N_Op_Rotate_Right
6326 -- Sloc points to the function name
6327 -- plus fields for binary operator
6328 -- plus fields for expression
6329 -- Shift_Count_OK (Flag4-Sem)
6330
6331 -- N_Op_Shift_Left
6332 -- Sloc points to the function name
6333 -- plus fields for binary operator
6334 -- plus fields for expression
6335 -- Shift_Count_OK (Flag4-Sem)
6336
6337 -- N_Op_Shift_Right_Arithmetic
6338 -- Sloc points to the function name
6339 -- plus fields for binary operator
6340 -- plus fields for expression
6341 -- Shift_Count_OK (Flag4-Sem)
6342
6343 -- N_Op_Shift_Right
6344 -- Sloc points to the function name
6345 -- plus fields for binary operator
6346 -- plus fields for expression
6347 -- Shift_Count_OK (Flag4-Sem)
6348
6349 --------------------------
6350 -- Obsolescent Features --
6351 --------------------------
6352
6353 -- The syntax descriptions and tree nodes for obsolescent features are
6354 -- grouped together, corresponding to their location in appendix I in
6355 -- the RM. However, parsing and semantic analysis for these constructs
6356 -- is located in an appropriate chapter (see individual notes).
6357
6358 ---------------------------
6359 -- J.3 Delta Constraint --
6360 ---------------------------
6361
6362 -- Note: the parse routine for this construct is located in section
6363 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6364 -- where delta constraint logically belongs.
6365
6366 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6367
6368 -- N_Delta_Constraint
6369 -- Sloc points to DELTA
6370 -- Delta_Expression (Node3)
6371 -- Range_Constraint (Node4) (set to Empty if not present)
6372
6373 --------------------
6374 -- J.7 At Clause --
6375 --------------------
6376
6377 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6378
6379 -- Note: the parse routine for this construct is located in Par-Ch13,
6380 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6381 -- belongs if it were not obsolescent.
6382
6383 -- Note: in Ada 83 the expression must be a simple expression
6384
6385 -- Gigi restriction: This node never appears, it is rewritten as an
6386 -- address attribute definition clause.
6387
6388 -- N_At_Clause
6389 -- Sloc points to FOR
6390 -- Identifier (Node1)
6391 -- Expression (Node3)
6392
6393 ---------------------
6394 -- J.8 Mod clause --
6395 ---------------------
6396
6397 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6398
6399 -- Note: the parse routine for this construct is located in Par-Ch13,
6400 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6401 -- belongs if it were not obsolescent.
6402
6403 -- Note: in Ada 83, the expression must be a simple expression
6404
6405 -- Gigi restriction: this node never appears. It is replaced
6406 -- by a corresponding Alignment attribute definition clause.
6407
6408 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6409 -- its name has "clause" in it. This is rather strange, but is quite
6410 -- definitely specified. The pragmas before are collected in the
6411 -- Pragmas_Before field of the mod clause node itself, and pragmas
6412 -- after are simply swallowed up in the list of component clauses.
6413
6414 -- N_Mod_Clause
6415 -- Sloc points to AT
6416 -- Expression (Node3)
6417 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6418
6419 --------------------
6420 -- Semantic Nodes --
6421 --------------------
6422
6423 -- These semantic nodes are used to hold additional semantic information.
6424 -- They are inserted into the tree as a result of semantic processing.
6425 -- Although there are no legitimate source syntax constructions that
6426 -- correspond directly to these nodes, we need a source syntax for the
6427 -- reconstructed tree printed by Sprint, and the node descriptions here
6428 -- show this syntax.
6429
6430 ----------------------------
6431 -- Conditional Expression --
6432 ----------------------------
6433
6434 -- This node is used to represent an expression corresponding to the
6435 -- C construct (condition ? then-expression : else_expression), where
6436 -- Expressions is a three element list, whose first expression is the
6437 -- condition, and whose second and third expressions are the then and
6438 -- else expressions respectively.
6439
6440 -- Note: the Then_Actions and Else_Actions fields are always set to
6441 -- No_List in the tree passed to Gigi. These fields are used only
6442 -- for temporary processing purposes in the expander.
6443
6444 -- Sprint syntax: (if expr then expr else expr)
6445
6446 -- N_Conditional_Expression
6447 -- Sloc points to related node
6448 -- Expressions (List1)
6449 -- Then_Actions (List2-Sem)
6450 -- Else_Actions (List3-Sem)
6451 -- plus fields for expression
6452
6453 -- Note: in the case where a debug source file is generated, the Sloc
6454 -- for this node points to the IF keyword in the Sprint file output.
6455
6456 -------------------
6457 -- Expanded_Name --
6458 -------------------
6459
6460 -- The N_Expanded_Name node is used to represent a selected component
6461 -- name that has been resolved to an expanded name. The semantic phase
6462 -- replaces N_Selected_Component nodes that represent names by the use
6463 -- of this node, leaving the N_Selected_Component node used only when
6464 -- the prefix is a record or protected type.
6465
6466 -- The fields of the N_Expanded_Name node are layed out identically
6467 -- to those of the N_Selected_Component node, allowing conversion of
6468 -- an expanded name node to a selected component node to be done
6469 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6470
6471 -- There is no special sprint syntax for an expanded name
6472
6473 -- N_Expanded_Name
6474 -- Sloc points to the period
6475 -- Chars (Name1) copy of Chars field of selector name
6476 -- Prefix (Node3)
6477 -- Selector_Name (Node2)
6478 -- Entity (Node4-Sem)
6479 -- Associated_Node (Node4-Sem)
6480 -- Redundant_Use (Flag13-Sem)
6481 -- Has_Private_View (Flag11-Sem) set in generic units.
6482 -- plus fields for expression
6483
6484 --------------------
6485 -- Free Statement --
6486 --------------------
6487
6488 -- The N_Free_Statement node is generated as a result of a call to an
6489 -- instantiation of Unchecked_Deallocation. The instantiation of this
6490 -- generic is handled specially and generates this node directly.
6491
6492 -- Sprint syntax: free expression
6493
6494 -- N_Free_Statement
6495 -- Sloc is copied from the unchecked deallocation call
6496 -- Expression (Node3) argument to unchecked deallocation call
6497 -- Storage_Pool (Node1-Sem)
6498 -- Procedure_To_Call (Node2-Sem)
6499 -- Actual_Designated_Subtype (Node4-Sem)
6500
6501 -- Note: in the case where a debug source file is generated, the Sloc
6502 -- for this node points to the FREE keyword in the Sprint file output.
6503
6504 -------------------
6505 -- Freeze Entity --
6506 -------------------
6507
6508 -- This node marks the point in a declarative part at which an entity
6509 -- declared therein becomes frozen. The expander places initialization
6510 -- procedures for types at those points. Gigi uses the freezing point
6511 -- to elaborate entities that may depend on previous private types.
6512
6513 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6514 -- a full description of the use of this node.
6515
6516 -- The Entity field points back to the entity for the type (whose
6517 -- Freeze_Node field points back to this freeze node).
6518
6519 -- The Actions field contains a list of declarations and statements
6520 -- generated by the expander which are associated with the freeze
6521 -- node, and are elaborated as though the freeze node were replaced
6522 -- by this sequence of actions.
6523
6524 -- Note: the Sloc field in the freeze node references a construct
6525 -- associated with the freezing point. This is used for posting
6526 -- messages in some error/warning situations, e.g. the case where
6527 -- a primitive operation of a tagged type is declared too late.
6528
6529 -- Sprint syntax: freeze entity-name [
6530 -- freeze actions
6531 -- ]
6532
6533 -- N_Freeze_Entity
6534 -- Sloc points near freeze point (see above special note)
6535 -- Entity (Node4-Sem)
6536 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6537 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6538 -- Actions (List1) (set to No_List if no freeze actions)
6539 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6540
6541 -- The Actions field holds actions associated with the freeze. These
6542 -- actions are elaborated at the point where the type is frozen.
6543
6544 -- Note: in the case where a debug source file is generated, the Sloc
6545 -- for this node points to the FREEZE keyword in the Sprint file output.
6546
6547 --------------------------------
6548 -- Implicit Label Declaration --
6549 --------------------------------
6550
6551 -- An implicit label declaration is created for every occurrence of a
6552 -- label on a statement or a label on a block or loop. It is chained
6553 -- in the declarations of the innermost enclosing block as specified
6554 -- in RM section 5.1 (3).
6555
6556 -- The Defining_Identifier is the actual identifier for the statement
6557 -- identifier. Note that the occurrence of the label is a reference, NOT
6558 -- the defining occurrence. The defining occurrence occurs at the head
6559 -- of the innermost enclosing 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 not
6568 -- correspond directly to a source syntax construction, these nodes are
6569 -- actually created by the parser in a post pass done just after parsing
6570 -- is complete, before semantic analysis is started (see Par.Labl).
6571
6572 -- Sprint syntax: labelname : label;
6573
6574 -- N_Implicit_Label_Declaration
6575 -- Sloc points to the << of the label
6576 -- Defining_Identifier (Node1)
6577 -- Label_Construct (Node2-Sem)
6578
6579 -- Note: in the case where a debug source file is generated, the Sloc
6580 -- for this node points to the label name in the generated declaration.
6581
6582 ---------------------
6583 -- Itype_Reference --
6584 ---------------------
6585
6586 -- This node is used to create a reference to an Itype. The only purpose
6587 -- is to make sure the Itype is defined if this is the first reference.
6588
6589 -- A typical use of this node is when an Itype is to be referenced in
6590 -- two branches of an IF statement. In this case it is important that
6591 -- the first use of the Itype not be inside the conditional, since then
6592 -- it might not be defined if the other branch of the IF is taken, in
6593 -- the case where the definition generates elaboration code.
6594
6595 -- The Itype field points to the referenced Itype
6596
6597 -- Sprint syntax: reference itype-name
6598
6599 -- N_Itype_Reference
6600 -- Sloc points to the node generating the reference
6601 -- Itype (Node1-Sem)
6602
6603 -- Note: in the case where a debug source file is generated, the Sloc
6604 -- for this node points to the REFERENCE keyword in the file output.
6605
6606 ---------------------
6607 -- Raise_xxx_Error --
6608 ---------------------
6609
6610 -- One of these nodes is created during semantic analysis to replace
6611 -- a node for an expression that is determined to definitely raise
6612 -- the corresponding exception.
6613
6614 -- The N_Raise_xxx_Error node may also stand alone in place
6615 -- of a declaration or statement, in which case it simply causes
6616 -- the exception to be raised (i.e. it is equivalent to a raise
6617 -- statement that raises the corresponding exception). This use
6618 -- is distinguished by the fact that the Etype in this case is
6619 -- Standard_Void_Type, In the subexpression case, the Etype is the
6620 -- same as the type of the subexpression which it replaces.
6621
6622 -- If Condition is empty, then the raise is unconditional. If the
6623 -- Condition field is non-empty, it is a boolean expression which
6624 -- is first evaluated, and the exception is raised only if the
6625 -- value of the expression is True. In the unconditional case, the
6626 -- creation of this node is usually accompanied by a warning message
6627 -- error. The creation of this node will usually be accompanied by a
6628 -- message (unless it appears within the right operand of a short
6629 -- circuit form whose left argument is static and decisively
6630 -- eliminates elaboration of the raise operation. The condition field
6631 -- can ONLY be present when the node is used as a statement form, it
6632 -- may NOT be present in the case where the node appears within an
6633 -- expression.
6634
6635 -- The exception is generated with a message that contains the
6636 -- file name and line number, and then appended text. The Reason
6637 -- code shows the text to be added. The Reason code is an element
6638 -- of the type Types.RT_Exception_Code, and indicates both the
6639 -- message to be added, and the exception to be raised (which must
6640 -- match the node type). The value is stored by storing a Uint which
6641 -- is the Pos value of the enumeration element in this type.
6642
6643 -- Gigi restriction: This expander ensures that the type of the
6644 -- Condition field is always Standard.Boolean, even if the type
6645 -- in the source is some non-standard boolean type.
6646
6647 -- Sprint syntax: [xxx_error "msg"]
6648 -- or: [xxx_error when condition "msg"]
6649
6650 -- N_Raise_Constraint_Error
6651 -- Sloc references related construct
6652 -- Condition (Node1) (set to Empty if no condition)
6653 -- Reason (Uint3)
6654 -- plus fields for expression
6655
6656 -- N_Raise_Program_Error
6657 -- Sloc references related construct
6658 -- Condition (Node1) (set to Empty if no condition)
6659 -- Reason (Uint3)
6660 -- plus fields for expression
6661
6662 -- N_Raise_Storage_Error
6663 -- Sloc references related construct
6664 -- Condition (Node1) (set to Empty if no condition)
6665 -- Reason (Uint3)
6666 -- plus fields for expression
6667
6668 -- Note: Sloc is copied from the expression generating the exception.
6669 -- In the case where a debug source file is generated, the Sloc for
6670 -- this node points to the left bracket in the Sprint file output.
6671
6672 -- Note: the back end may be required to translate these nodes into
6673 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6674
6675 ---------------------------------------------
6676 -- Optimization of Exception Raise to Goto --
6677 ---------------------------------------------
6678
6679 -- In some cases, the front end will determine that any exception raised
6680 -- by the back end for a certain exception should be transformed into a
6681 -- goto statement.
6682
6683 -- There are three kinds of exceptions raised by the back end (note that
6684 -- for this purpose we consider gigi to be part of the back end in the
6685 -- gcc case):
6686
6687 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6688 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6689 -- 3. Other cases not specifically marked by the front end
6690
6691 -- Normally all such exceptions are translated into calls to the proper
6692 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6693 -- and the exception message.
6694
6695 -- The front end may determine that for a particular sequence of code,
6696 -- exceptions in any of these three categories for a particular builtin
6697 -- exception should result in a goto, rather than a call to Rcheck_xx.
6698 -- The exact sequence to be generated is:
6699
6700 -- Local_Raise (exception'Identity);
6701 -- goto Label
6702
6703 -- The front end marks such a sequence of code by bracketing it with
6704 -- push and pop nodes:
6705
6706 -- N_Push_xxx_Label (referencing the label)
6707 -- ...
6708 -- (code where transformation is expected for exception xxx)
6709 -- ...
6710 -- N_Pop_xxx_Label
6711
6712 -- The use of push/pop reflects the fact that such regions can properly
6713 -- nest, and one special case is a subregion in which no transformation
6714 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6715 -- Exception_Label field is Empty.
6716
6717 -- N_Push_Constraint_Error_Label
6718 -- Sloc references first statement in region covered
6719 -- Exception_Label (Node5-Sem)
6720
6721 -- N_Push_Program_Error_Label
6722 -- Sloc references first statement in region covered
6723 -- Exception_Label (Node5-Sem)
6724
6725 -- N_Push_Storage_Error_Label
6726 -- Sloc references first statement in region covered
6727 -- Exception_Label (Node5-Sem)
6728
6729 -- N_Pop_Constraint_Error_Label
6730 -- Sloc references last statement in region covered
6731
6732 -- N_Pop_Program_Error_Label
6733 -- Sloc references last statement in region covered
6734
6735 -- N_Pop_Storage_Error_Label
6736 -- Sloc references last statement in region covered
6737
6738 ---------------
6739 -- Reference --
6740 ---------------
6741
6742 -- For a number of purposes, we need to construct references to objects.
6743 -- These references are subsequently treated as normal access values.
6744 -- An example is the construction of the parameter block passed to a
6745 -- task entry. The N_Reference node is provided for this purpose. It is
6746 -- similar in effect to the use of the Unrestricted_Access attribute,
6747 -- and like Unrestricted_Access can be applied to objects which would
6748 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6749 -- objects which are not aliased, and slices). In addition it can be
6750 -- applied to composite type values as well as objects, including string
6751 -- values and aggregates.
6752
6753 -- Note: we use the Prefix field for this expression so that the
6754 -- resulting node can be treated using common code with the attribute
6755 -- nodes for the 'Access and related attributes. Logically it would make
6756 -- more sense to call it an Expression field, but then we would have to
6757 -- special case the treatment of the N_Reference node.
6758
6759 -- Sprint syntax: prefix'reference
6760
6761 -- N_Reference
6762 -- Sloc is copied from the expression
6763 -- Prefix (Node3)
6764 -- plus fields for expression
6765
6766 -- Note: in the case where a debug source file is generated, the Sloc
6767 -- for this node points to the quote in the Sprint file output.
6768
6769 ---------------------
6770 -- Subprogram_Info --
6771 ---------------------
6772
6773 -- This node generates the appropriate Subprogram_Info value for a
6774 -- given procedure. See Ada.Exceptions for further details
6775
6776 -- Sprint syntax: subprog'subprogram_info
6777
6778 -- N_Subprogram_Info
6779 -- Sloc points to the entity for the procedure
6780 -- Identifier (Node1) identifier referencing the procedure
6781 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6782
6783 -- Note: in the case where a debug source file is generated, the Sloc
6784 -- for this node points to the quote in the Sprint file output.
6785
6786 --------------------------
6787 -- Unchecked Expression --
6788 --------------------------
6789
6790 -- An unchecked expression is one that must be analyzed and resolved
6791 -- with all checks off, regardless of the current setting of scope
6792 -- suppress flags.
6793
6794 -- Sprint syntax: `(expression)
6795
6796 -- Note: this node is always removed from the tree (and replaced by
6797 -- its constituent expression) on completion of analysis, so it only
6798 -- appears in intermediate trees, and will never be seen by Gigi.
6799
6800 -- N_Unchecked_Expression
6801 -- Sloc is a copy of the Sloc of the expression
6802 -- Expression (Node3)
6803 -- plus fields for expression
6804
6805 -- Note: in the case where a debug source file is generated, the Sloc
6806 -- for this node points to the back quote in the Sprint file output.
6807
6808 -------------------------------
6809 -- Unchecked Type Conversion --
6810 -------------------------------
6811
6812 -- An unchecked type conversion node represents the semantic action
6813 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6814 -- It is generated as a result of actual use of Unchecked_Conversion
6815 -- and also the expander generates unchecked type conversion nodes
6816 -- directly for expansion of complex semantic actions.
6817
6818 -- Note: an unchecked type conversion is a variable as far as the
6819 -- semantics are concerned, which is convenient for the expander.
6820 -- This does not change what Ada source programs are legal, since
6821 -- clearly a function call to an instantiation of Unchecked_Conversion
6822 -- is not a variable in any case.
6823
6824 -- Sprint syntax: subtype-mark!(expression)
6825
6826 -- N_Unchecked_Type_Conversion
6827 -- Sloc points to related node in source
6828 -- Subtype_Mark (Node4)
6829 -- Expression (Node3)
6830 -- Kill_Range_Check (Flag11-Sem)
6831 -- No_Truncation (Flag17-Sem)
6832 -- plus fields for expression
6833
6834 -- Note: in the case where a debug source file is generated, the Sloc
6835 -- for this node points to the exclamation in the Sprint file output.
6836
6837 -----------------------------------
6838 -- Validate_Unchecked_Conversion --
6839 -----------------------------------
6840
6841 -- The front end does most of the validation of unchecked conversion,
6842 -- including checking sizes (this is done after the back end is called
6843 -- to take advantage of back-annotation of calculated sizes).
6844
6845 -- The front end also deals with specific cases that are not allowed
6846 -- e.g. involving unconstrained array types.
6847
6848 -- For the case of the standard gigi backend, this means that all
6849 -- checks are done in the front-end.
6850
6851 -- However, in the case of specialized back-ends, notably the JVM
6852 -- backend for JGNAT, additional requirements and restrictions apply
6853 -- to unchecked conversion, and these are most conveniently performed
6854 -- in the specialized back-end.
6855
6856 -- To accommodate this requirement, for such back ends, the following
6857 -- special node is generated recording an unchecked conversion that
6858 -- needs to be validated. The back end should post an appropriate
6859 -- error message if the unchecked conversion is invalid or warrants
6860 -- a special warning message.
6861
6862 -- Source_Type and Target_Type point to the entities for the two
6863 -- types involved in the unchecked conversion instantiation that
6864 -- is to be validated.
6865
6866 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6867
6868 -- N_Validate_Unchecked_Conversion
6869 -- Sloc points to instantiation (location for warning message)
6870 -- Source_Type (Node1-Sem)
6871 -- Target_Type (Node2-Sem)
6872
6873 -- Note: in the case where a debug source file is generated, the Sloc
6874 -- for this node points to the VALIDATE keyword in the file output.
6875
6876 -----------
6877 -- Empty --
6878 -----------
6879
6880 -- Used as the contents of the Nkind field of the dummy Empty node
6881 -- and in some other situations to indicate an uninitialized value.
6882
6883 -- N_Empty
6884 -- Chars (Name1) is set to No_Name
6885
6886 -----------
6887 -- Error --
6888 -----------
6889
6890 -- Used as the contents of the Nkind field of the dummy Error node.
6891 -- Has an Etype field, which gets set to Any_Type later on, to help
6892 -- error recovery (Error_Posted is also set in the Error node).
6893
6894 -- N_Error
6895 -- Chars (Name1) is set to Error_Name
6896 -- Etype (Node5-Sem)
6897
6898 --------------------------
6899 -- Node Type Definition --
6900 --------------------------
6901
6902 -- The following is the definition of the Node_Kind type. As previously
6903 -- discussed, this is separated off to allow rearrangement of the order
6904 -- to facilitate definition of subtype ranges. The comments show the
6905 -- subtype classes which apply to each set of node kinds. The first
6906 -- entry in the comment characterizes the following list of nodes.
6907
6908 type Node_Kind is (
6909 N_Unused_At_Start,
6910
6911 -- N_Representation_Clause
6912
6913 N_At_Clause,
6914 N_Component_Clause,
6915 N_Enumeration_Representation_Clause,
6916 N_Mod_Clause,
6917 N_Record_Representation_Clause,
6918
6919 -- N_Representation_Clause, N_Has_Chars
6920
6921 N_Attribute_Definition_Clause,
6922
6923 -- N_Has_Chars
6924
6925 N_Empty,
6926 N_Pragma_Argument_Association,
6927
6928 -- N_Has_Etype
6929
6930 N_Error,
6931
6932 -- N_Entity, N_Has_Etype, N_Has_Chars
6933
6934 N_Defining_Character_Literal,
6935 N_Defining_Identifier,
6936 N_Defining_Operator_Symbol,
6937
6938 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6939
6940 N_Expanded_Name,
6941
6942 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6943 -- N_Has_Chars, N_Has_Entity
6944
6945 N_Identifier,
6946 N_Operator_Symbol,
6947
6948 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6949 -- N_Has_Chars, N_Has_Entity
6950
6951 N_Character_Literal,
6952
6953 -- N_Binary_Op, N_Op, N_Subexpr,
6954 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6955
6956 N_Op_Add,
6957 N_Op_Concat,
6958 N_Op_Expon,
6959 N_Op_Subtract,
6960
6961 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6962 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6963
6964 N_Op_Divide,
6965 N_Op_Mod,
6966 N_Op_Multiply,
6967 N_Op_Rem,
6968
6969 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6970 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6971
6972 N_Op_And,
6973
6974 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6975 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6976
6977 N_Op_Eq,
6978 N_Op_Ge,
6979 N_Op_Gt,
6980 N_Op_Le,
6981 N_Op_Lt,
6982 N_Op_Ne,
6983
6984 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6985 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6986
6987 N_Op_Or,
6988 N_Op_Xor,
6989
6990 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6991 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6992
6993 N_Op_Rotate_Left,
6994 N_Op_Rotate_Right,
6995 N_Op_Shift_Left,
6996 N_Op_Shift_Right,
6997 N_Op_Shift_Right_Arithmetic,
6998
6999 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7000 -- N_Has_Chars, N_Has_Entity
7001
7002 N_Op_Abs,
7003 N_Op_Minus,
7004 N_Op_Not,
7005 N_Op_Plus,
7006
7007 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7008
7009 N_Attribute_Reference,
7010
7011 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7012
7013 N_In,
7014 N_Not_In,
7015
7016 -- N_Subexpr, N_Has_Etype
7017
7018 N_And_Then,
7019 N_Conditional_Expression,
7020 N_Explicit_Dereference,
7021 N_Function_Call,
7022 N_Indexed_Component,
7023 N_Integer_Literal,
7024 N_Null,
7025 N_Or_Else,
7026 N_Procedure_Call_Statement,
7027 N_Qualified_Expression,
7028
7029 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7030
7031 N_Raise_Constraint_Error,
7032 N_Raise_Program_Error,
7033 N_Raise_Storage_Error,
7034
7035 -- N_Subexpr, N_Has_Etype
7036
7037 N_Aggregate,
7038 N_Allocator,
7039 N_Extension_Aggregate,
7040 N_Range,
7041 N_Real_Literal,
7042 N_Reference,
7043 N_Selected_Component,
7044 N_Slice,
7045 N_String_Literal,
7046 N_Subprogram_Info,
7047 N_Type_Conversion,
7048 N_Unchecked_Expression,
7049 N_Unchecked_Type_Conversion,
7050
7051 -- N_Has_Etype
7052
7053 N_Subtype_Indication,
7054
7055 -- N_Declaration
7056
7057 N_Component_Declaration,
7058 N_Entry_Declaration,
7059 N_Formal_Object_Declaration,
7060 N_Formal_Type_Declaration,
7061 N_Full_Type_Declaration,
7062 N_Incomplete_Type_Declaration,
7063 N_Loop_Parameter_Specification,
7064 N_Object_Declaration,
7065 N_Protected_Type_Declaration,
7066 N_Private_Extension_Declaration,
7067 N_Private_Type_Declaration,
7068 N_Subtype_Declaration,
7069
7070 -- N_Subprogram_Specification, N_Declaration
7071
7072 N_Function_Specification,
7073 N_Procedure_Specification,
7074
7075 -- N_Access_To_Subprogram_Definition
7076
7077 N_Access_Function_Definition,
7078 N_Access_Procedure_Definition,
7079
7080 -- N_Later_Decl_Item
7081
7082 N_Task_Type_Declaration,
7083
7084 -- N_Body_Stub, N_Later_Decl_Item
7085
7086 N_Package_Body_Stub,
7087 N_Protected_Body_Stub,
7088 N_Subprogram_Body_Stub,
7089 N_Task_Body_Stub,
7090
7091 -- N_Generic_Instantiation, N_Later_Decl_Item
7092 -- N_Subprogram_Instantiation
7093
7094 N_Function_Instantiation,
7095 N_Procedure_Instantiation,
7096
7097 -- N_Generic_Instantiation, N_Later_Decl_Item
7098
7099 N_Package_Instantiation,
7100
7101 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7102
7103 N_Package_Body,
7104 N_Subprogram_Body,
7105
7106 -- N_Later_Decl_Item, N_Proper_Body
7107
7108 N_Protected_Body,
7109 N_Task_Body,
7110
7111 -- N_Later_Decl_Item
7112
7113 N_Implicit_Label_Declaration,
7114 N_Package_Declaration,
7115 N_Single_Task_Declaration,
7116 N_Subprogram_Declaration,
7117 N_Use_Package_Clause,
7118
7119 -- N_Generic_Declaration, N_Later_Decl_Item
7120
7121 N_Generic_Package_Declaration,
7122 N_Generic_Subprogram_Declaration,
7123
7124 -- N_Array_Type_Definition
7125
7126 N_Constrained_Array_Definition,
7127 N_Unconstrained_Array_Definition,
7128
7129 -- N_Renaming_Declaration
7130
7131 N_Exception_Renaming_Declaration,
7132 N_Object_Renaming_Declaration,
7133 N_Package_Renaming_Declaration,
7134 N_Subprogram_Renaming_Declaration,
7135
7136 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7137
7138 N_Generic_Function_Renaming_Declaration,
7139 N_Generic_Package_Renaming_Declaration,
7140 N_Generic_Procedure_Renaming_Declaration,
7141
7142 -- N_Statement_Other_Than_Procedure_Call
7143
7144 N_Abort_Statement,
7145 N_Accept_Statement,
7146 N_Assignment_Statement,
7147 N_Asynchronous_Select,
7148 N_Block_Statement,
7149 N_Case_Statement,
7150 N_Code_Statement,
7151 N_Conditional_Entry_Call,
7152
7153 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7154
7155 N_Delay_Relative_Statement,
7156 N_Delay_Until_Statement,
7157
7158 -- N_Statement_Other_Than_Procedure_Call
7159
7160 N_Entry_Call_Statement,
7161 N_Free_Statement,
7162 N_Goto_Statement,
7163 N_Loop_Statement,
7164 N_Null_Statement,
7165 N_Raise_Statement,
7166 N_Requeue_Statement,
7167 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7168 N_Extended_Return_Statement,
7169 N_Selective_Accept,
7170 N_Timed_Entry_Call,
7171
7172 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7173
7174 N_Exit_Statement,
7175 N_If_Statement,
7176
7177 -- N_Has_Condition
7178
7179 N_Accept_Alternative,
7180 N_Delay_Alternative,
7181 N_Elsif_Part,
7182 N_Entry_Body_Formal_Part,
7183 N_Iteration_Scheme,
7184 N_Terminate_Alternative,
7185
7186 -- N_Formal_Subprogram_Declaration
7187
7188 N_Formal_Abstract_Subprogram_Declaration,
7189 N_Formal_Concrete_Subprogram_Declaration,
7190
7191 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7192
7193 N_Push_Constraint_Error_Label,
7194 N_Push_Program_Error_Label,
7195 N_Push_Storage_Error_Label,
7196
7197 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7198
7199 N_Pop_Constraint_Error_Label,
7200 N_Pop_Program_Error_Label,
7201 N_Pop_Storage_Error_Label,
7202
7203 -- Other nodes (not part of any subtype class)
7204
7205 N_Abortable_Part,
7206 N_Abstract_Subprogram_Declaration,
7207 N_Access_Definition,
7208 N_Access_To_Object_Definition,
7209 N_Case_Statement_Alternative,
7210 N_Compilation_Unit,
7211 N_Compilation_Unit_Aux,
7212 N_Component_Association,
7213 N_Component_Definition,
7214 N_Component_List,
7215 N_Derived_Type_Definition,
7216 N_Decimal_Fixed_Point_Definition,
7217 N_Defining_Program_Unit_Name,
7218 N_Delta_Constraint,
7219 N_Designator,
7220 N_Digits_Constraint,
7221 N_Discriminant_Association,
7222 N_Discriminant_Specification,
7223 N_Enumeration_Type_Definition,
7224 N_Entry_Body,
7225 N_Entry_Call_Alternative,
7226 N_Entry_Index_Specification,
7227 N_Exception_Declaration,
7228 N_Exception_Handler,
7229 N_Floating_Point_Definition,
7230 N_Formal_Decimal_Fixed_Point_Definition,
7231 N_Formal_Derived_Type_Definition,
7232 N_Formal_Discrete_Type_Definition,
7233 N_Formal_Floating_Point_Definition,
7234 N_Formal_Modular_Type_Definition,
7235 N_Formal_Ordinary_Fixed_Point_Definition,
7236 N_Formal_Package_Declaration,
7237 N_Formal_Private_Type_Definition,
7238 N_Formal_Signed_Integer_Type_Definition,
7239 N_Freeze_Entity,
7240 N_Generic_Association,
7241 N_Handled_Sequence_Of_Statements,
7242 N_Index_Or_Discriminant_Constraint,
7243 N_Itype_Reference,
7244 N_Label,
7245 N_Modular_Type_Definition,
7246 N_Number_Declaration,
7247 N_Ordinary_Fixed_Point_Definition,
7248 N_Others_Choice,
7249 N_Package_Specification,
7250 N_Parameter_Association,
7251 N_Parameter_Specification,
7252 N_Pragma,
7253 N_Protected_Definition,
7254 N_Range_Constraint,
7255 N_Real_Range_Specification,
7256 N_Record_Definition,
7257 N_Signed_Integer_Type_Definition,
7258 N_Single_Protected_Declaration,
7259 N_Subunit,
7260 N_Task_Definition,
7261 N_Triggering_Alternative,
7262 N_Use_Type_Clause,
7263 N_Validate_Unchecked_Conversion,
7264 N_Variant,
7265 N_Variant_Part,
7266 N_With_Clause,
7267 N_Unused_At_End);
7268
7269 for Node_Kind'Size use 8;
7270 -- The data structures in Atree assume this!
7271
7272 ----------------------------
7273 -- Node Class Definitions --
7274 ----------------------------
7275
7276 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7277 N_Access_Function_Definition ..
7278 N_Access_Procedure_Definition;
7279
7280 subtype N_Array_Type_Definition is Node_Kind range
7281 N_Constrained_Array_Definition ..
7282 N_Unconstrained_Array_Definition;
7283
7284 subtype N_Binary_Op is Node_Kind range
7285 N_Op_Add ..
7286 N_Op_Shift_Right_Arithmetic;
7287
7288 subtype N_Body_Stub is Node_Kind range
7289 N_Package_Body_Stub ..
7290 N_Task_Body_Stub;
7291
7292 subtype N_Declaration is Node_Kind range
7293 N_Component_Declaration ..
7294 N_Procedure_Specification;
7295 -- Note: this includes all constructs normally thought of as declarations
7296 -- except those which are separately grouped as later declarations.
7297
7298 subtype N_Delay_Statement is Node_Kind range
7299 N_Delay_Relative_Statement ..
7300 N_Delay_Until_Statement;
7301
7302 subtype N_Direct_Name is Node_Kind range
7303 N_Identifier ..
7304 N_Character_Literal;
7305
7306 subtype N_Entity is Node_Kind range
7307 N_Defining_Character_Literal ..
7308 N_Defining_Operator_Symbol;
7309
7310 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7311 N_Formal_Abstract_Subprogram_Declaration ..
7312 N_Formal_Concrete_Subprogram_Declaration;
7313
7314 subtype N_Generic_Declaration is Node_Kind range
7315 N_Generic_Package_Declaration ..
7316 N_Generic_Subprogram_Declaration;
7317
7318 subtype N_Generic_Instantiation is Node_Kind range
7319 N_Function_Instantiation ..
7320 N_Package_Instantiation;
7321
7322 subtype N_Generic_Renaming_Declaration is Node_Kind range
7323 N_Generic_Function_Renaming_Declaration ..
7324 N_Generic_Procedure_Renaming_Declaration;
7325
7326 subtype N_Has_Chars is Node_Kind range
7327 N_Attribute_Definition_Clause ..
7328 N_Op_Plus;
7329
7330 subtype N_Has_Entity is Node_Kind range
7331 N_Expanded_Name ..
7332 N_Attribute_Reference;
7333 -- Nodes that have Entity fields
7334 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7335
7336 subtype N_Has_Etype is Node_Kind range
7337 N_Error ..
7338 N_Subtype_Indication;
7339
7340 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7341 N_Op_Divide ..
7342 N_Op_Rem;
7343
7344 subtype N_Multiplying_Operator is Node_Kind range
7345 N_Op_Divide ..
7346 N_Op_Rem;
7347
7348 subtype N_Later_Decl_Item is Node_Kind range
7349 N_Task_Type_Declaration ..
7350 N_Generic_Subprogram_Declaration;
7351 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7352 -- includes only those items which can appear as later declarative
7353 -- items. This also includes N_Implicit_Label_Declaration which is
7354 -- not specifically in the grammar but may appear as a valid later
7355 -- declarative items. It does NOT include N_Pragma which can also
7356 -- appear among later declarative items. It does however include
7357 -- N_Protected_Body, which is a bit peculiar, but harmless since
7358 -- this cannot appear in Ada 83 mode anyway.
7359
7360 subtype N_Membership_Test is Node_Kind range
7361 N_In ..
7362 N_Not_In;
7363
7364 subtype N_Op is Node_Kind range
7365 N_Op_Add ..
7366 N_Op_Plus;
7367
7368 subtype N_Op_Boolean is Node_Kind range
7369 N_Op_And ..
7370 N_Op_Xor;
7371 -- Binary operators which take operands of a boolean type, and yield
7372 -- a result of a boolean type.
7373
7374 subtype N_Op_Compare is Node_Kind range
7375 N_Op_Eq ..
7376 N_Op_Ne;
7377
7378 subtype N_Op_Shift is Node_Kind range
7379 N_Op_Rotate_Left ..
7380 N_Op_Shift_Right_Arithmetic;
7381
7382 subtype N_Proper_Body is Node_Kind range
7383 N_Package_Body ..
7384 N_Task_Body;
7385
7386 subtype N_Push_xxx_Label is Node_Kind range
7387 N_Push_Constraint_Error_Label ..
7388 N_Push_Storage_Error_Label;
7389
7390 subtype N_Pop_xxx_Label is Node_Kind range
7391 N_Pop_Constraint_Error_Label ..
7392 N_Pop_Storage_Error_Label;
7393
7394 subtype N_Push_Pop_xxx_Label is Node_Kind range
7395 N_Push_Constraint_Error_Label ..
7396 N_Pop_Storage_Error_Label;
7397
7398 subtype N_Raise_xxx_Error is Node_Kind range
7399 N_Raise_Constraint_Error ..
7400 N_Raise_Storage_Error;
7401
7402 subtype N_Renaming_Declaration is Node_Kind range
7403 N_Exception_Renaming_Declaration ..
7404 N_Generic_Procedure_Renaming_Declaration;
7405
7406 subtype N_Representation_Clause is Node_Kind range
7407 N_At_Clause ..
7408 N_Attribute_Definition_Clause;
7409
7410 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7411 N_Abort_Statement ..
7412 N_If_Statement;
7413 -- Note that this includes all statement types except for the cases of the
7414 -- N_Procedure_Call_Statement which is considered to be a subexpression
7415 -- (since overloading is possible, so it needs to go through the normal
7416 -- overloading resolution for expressions).
7417
7418 subtype N_Subprogram_Instantiation is Node_Kind range
7419 N_Function_Instantiation ..
7420 N_Procedure_Instantiation;
7421
7422 subtype N_Has_Condition is Node_Kind range
7423 N_Exit_Statement ..
7424 N_Terminate_Alternative;
7425 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7426
7427 subtype N_Subexpr is Node_Kind range
7428 N_Expanded_Name ..
7429 N_Unchecked_Type_Conversion;
7430 -- Nodes with expression fields
7431
7432 subtype N_Subprogram_Specification is Node_Kind range
7433 N_Function_Specification ..
7434 N_Procedure_Specification;
7435
7436 subtype N_Unary_Op is Node_Kind range
7437 N_Op_Abs ..
7438 N_Op_Plus;
7439
7440 subtype N_Unit_Body is Node_Kind range
7441 N_Package_Body ..
7442 N_Subprogram_Body;
7443
7444 ---------------------------
7445 -- Node Access Functions --
7446 ---------------------------
7447
7448 -- The following functions return the contents of the indicated field of
7449 -- the node referenced by the argument, which is a Node_Id. They provide
7450 -- logical access to fields in the node which could be accessed using the
7451 -- Atree.Unchecked_Access package, but the idea is always to use these
7452 -- higher level routines which preserve strong typing. In debug mode,
7453 -- these routines check that they are being applied to an appropriate
7454 -- node, as well as checking that the node is in range.
7455
7456 function ABE_Is_Certain
7457 (N : Node_Id) return Boolean; -- Flag18
7458
7459 function Abort_Present
7460 (N : Node_Id) return Boolean; -- Flag15
7461
7462 function Abortable_Part
7463 (N : Node_Id) return Node_Id; -- Node2
7464
7465 function Abstract_Present
7466 (N : Node_Id) return Boolean; -- Flag4
7467
7468 function Accept_Handler_Records
7469 (N : Node_Id) return List_Id; -- List5
7470
7471 function Accept_Statement
7472 (N : Node_Id) return Node_Id; -- Node2
7473
7474 function Access_Definition
7475 (N : Node_Id) return Node_Id; -- Node3
7476
7477 function Access_To_Subprogram_Definition
7478 (N : Node_Id) return Node_Id; -- Node3
7479
7480 function Access_Types_To_Process
7481 (N : Node_Id) return Elist_Id; -- Elist2
7482
7483 function Actions
7484 (N : Node_Id) return List_Id; -- List1
7485
7486 function Activation_Chain_Entity
7487 (N : Node_Id) return Node_Id; -- Node3
7488
7489 function Acts_As_Spec
7490 (N : Node_Id) return Boolean; -- Flag4
7491
7492 function Actual_Designated_Subtype
7493 (N : Node_Id) return Node_Id; -- Node4
7494
7495 function Address_Warning_Posted
7496 (N : Node_Id) return Boolean; -- Flag18
7497
7498 function Aggregate_Bounds
7499 (N : Node_Id) return Node_Id; -- Node3
7500
7501 function Aliased_Present
7502 (N : Node_Id) return Boolean; -- Flag4
7503
7504 function All_Others
7505 (N : Node_Id) return Boolean; -- Flag11
7506
7507 function All_Present
7508 (N : Node_Id) return Boolean; -- Flag15
7509
7510 function Alternatives
7511 (N : Node_Id) return List_Id; -- List4
7512
7513 function Ancestor_Part
7514 (N : Node_Id) return Node_Id; -- Node3
7515
7516 function Array_Aggregate
7517 (N : Node_Id) return Node_Id; -- Node3
7518
7519 function Assignment_OK
7520 (N : Node_Id) return Boolean; -- Flag15
7521
7522 function Associated_Node
7523 (N : Node_Id) return Node_Id; -- Node4
7524
7525 function At_End_Proc
7526 (N : Node_Id) return Node_Id; -- Node1
7527
7528 function Attribute_Name
7529 (N : Node_Id) return Name_Id; -- Name2
7530
7531 function Aux_Decls_Node
7532 (N : Node_Id) return Node_Id; -- Node5
7533
7534 function Backwards_OK
7535 (N : Node_Id) return Boolean; -- Flag6
7536
7537 function Bad_Is_Detected
7538 (N : Node_Id) return Boolean; -- Flag15
7539
7540 function By_Ref
7541 (N : Node_Id) return Boolean; -- Flag5
7542
7543 function Body_Required
7544 (N : Node_Id) return Boolean; -- Flag13
7545
7546 function Body_To_Inline
7547 (N : Node_Id) return Node_Id; -- Node3
7548
7549 function Box_Present
7550 (N : Node_Id) return Boolean; -- Flag15
7551
7552 function Char_Literal_Value
7553 (N : Node_Id) return Uint; -- Uint2
7554
7555 function Chars
7556 (N : Node_Id) return Name_Id; -- Name1
7557
7558 function Check_Address_Alignment
7559 (N : Node_Id) return Boolean; -- Flag11
7560
7561 function Choice_Parameter
7562 (N : Node_Id) return Node_Id; -- Node2
7563
7564 function Choices
7565 (N : Node_Id) return List_Id; -- List1
7566
7567 function Coextensions
7568 (N : Node_Id) return Elist_Id; -- Elist4
7569
7570 function Comes_From_Extended_Return_Statement
7571 (N : Node_Id) return Boolean; -- Flag18
7572
7573 function Compile_Time_Known_Aggregate
7574 (N : Node_Id) return Boolean; -- Flag18
7575
7576 function Component_Associations
7577 (N : Node_Id) return List_Id; -- List2
7578
7579 function Component_Clauses
7580 (N : Node_Id) return List_Id; -- List3
7581
7582 function Component_Definition
7583 (N : Node_Id) return Node_Id; -- Node4
7584
7585 function Component_Items
7586 (N : Node_Id) return List_Id; -- List3
7587
7588 function Component_List
7589 (N : Node_Id) return Node_Id; -- Node1
7590
7591 function Component_Name
7592 (N : Node_Id) return Node_Id; -- Node1
7593
7594 function Condition
7595 (N : Node_Id) return Node_Id; -- Node1
7596
7597 function Condition_Actions
7598 (N : Node_Id) return List_Id; -- List3
7599
7600 function Config_Pragmas
7601 (N : Node_Id) return List_Id; -- List4
7602
7603 function Constant_Present
7604 (N : Node_Id) return Boolean; -- Flag17
7605
7606 function Constraint
7607 (N : Node_Id) return Node_Id; -- Node3
7608
7609 function Constraints
7610 (N : Node_Id) return List_Id; -- List1
7611
7612 function Context_Installed
7613 (N : Node_Id) return Boolean; -- Flag13
7614
7615 function Context_Items
7616 (N : Node_Id) return List_Id; -- List1
7617
7618 function Controlling_Argument
7619 (N : Node_Id) return Node_Id; -- Node1
7620
7621 function Conversion_OK
7622 (N : Node_Id) return Boolean; -- Flag14
7623
7624 function Corresponding_Body
7625 (N : Node_Id) return Node_Id; -- Node5
7626
7627 function Corresponding_Formal_Spec
7628 (N : Node_Id) return Node_Id; -- Node3
7629
7630 function Corresponding_Generic_Association
7631 (N : Node_Id) return Node_Id; -- Node5
7632
7633 function Corresponding_Integer_Value
7634 (N : Node_Id) return Uint; -- Uint4
7635
7636 function Corresponding_Spec
7637 (N : Node_Id) return Node_Id; -- Node5
7638
7639 function Corresponding_Stub
7640 (N : Node_Id) return Node_Id; -- Node3
7641
7642 function Dcheck_Function
7643 (N : Node_Id) return Entity_Id; -- Node5
7644
7645 function Debug_Statement
7646 (N : Node_Id) return Node_Id; -- Node3
7647
7648 function Declarations
7649 (N : Node_Id) return List_Id; -- List2
7650
7651 function Default_Expression
7652 (N : Node_Id) return Node_Id; -- Node5
7653
7654 function Default_Name
7655 (N : Node_Id) return Node_Id; -- Node2
7656
7657 function Defining_Identifier
7658 (N : Node_Id) return Entity_Id; -- Node1
7659
7660 function Defining_Unit_Name
7661 (N : Node_Id) return Node_Id; -- Node1
7662
7663 function Delay_Alternative
7664 (N : Node_Id) return Node_Id; -- Node4
7665
7666 function Delay_Statement
7667 (N : Node_Id) return Node_Id; -- Node2
7668
7669 function Delta_Expression
7670 (N : Node_Id) return Node_Id; -- Node3
7671
7672 function Digits_Expression
7673 (N : Node_Id) return Node_Id; -- Node2
7674
7675 function Discr_Check_Funcs_Built
7676 (N : Node_Id) return Boolean; -- Flag11
7677
7678 function Discrete_Choices
7679 (N : Node_Id) return List_Id; -- List4
7680
7681 function Discrete_Range
7682 (N : Node_Id) return Node_Id; -- Node4
7683
7684 function Discrete_Subtype_Definition
7685 (N : Node_Id) return Node_Id; -- Node4
7686
7687 function Discrete_Subtype_Definitions
7688 (N : Node_Id) return List_Id; -- List2
7689
7690 function Discriminant_Specifications
7691 (N : Node_Id) return List_Id; -- List4
7692
7693 function Discriminant_Type
7694 (N : Node_Id) return Node_Id; -- Node5
7695
7696 function Do_Accessibility_Check
7697 (N : Node_Id) return Boolean; -- Flag13
7698
7699 function Do_Discriminant_Check
7700 (N : Node_Id) return Boolean; -- Flag13
7701
7702 function Do_Division_Check
7703 (N : Node_Id) return Boolean; -- Flag13
7704
7705 function Do_Length_Check
7706 (N : Node_Id) return Boolean; -- Flag4
7707
7708 function Do_Overflow_Check
7709 (N : Node_Id) return Boolean; -- Flag17
7710
7711 function Do_Range_Check
7712 (N : Node_Id) return Boolean; -- Flag9
7713
7714 function Do_Storage_Check
7715 (N : Node_Id) return Boolean; -- Flag17
7716
7717 function Do_Tag_Check
7718 (N : Node_Id) return Boolean; -- Flag13
7719
7720 function Elaborate_All_Desirable
7721 (N : Node_Id) return Boolean; -- Flag9
7722
7723 function Elaborate_All_Present
7724 (N : Node_Id) return Boolean; -- Flag14
7725
7726 function Elaborate_Desirable
7727 (N : Node_Id) return Boolean; -- Flag11
7728
7729 function Elaborate_Present
7730 (N : Node_Id) return Boolean; -- Flag4
7731
7732 function Elaboration_Boolean
7733 (N : Node_Id) return Node_Id; -- Node2
7734
7735 function Else_Actions
7736 (N : Node_Id) return List_Id; -- List3
7737
7738 function Else_Statements
7739 (N : Node_Id) return List_Id; -- List4
7740
7741 function Elsif_Parts
7742 (N : Node_Id) return List_Id; -- List3
7743
7744 function Enclosing_Variant
7745 (N : Node_Id) return Node_Id; -- Node2
7746
7747 function End_Label
7748 (N : Node_Id) return Node_Id; -- Node4
7749
7750 function End_Span
7751 (N : Node_Id) return Uint; -- Uint5
7752
7753 function Entity
7754 (N : Node_Id) return Node_Id; -- Node4
7755
7756 function Entity_Or_Associated_Node
7757 (N : Node_Id) return Node_Id; -- Node4
7758
7759 function Entry_Body_Formal_Part
7760 (N : Node_Id) return Node_Id; -- Node5
7761
7762 function Entry_Call_Alternative
7763 (N : Node_Id) return Node_Id; -- Node1
7764
7765 function Entry_Call_Statement
7766 (N : Node_Id) return Node_Id; -- Node1
7767
7768 function Entry_Direct_Name
7769 (N : Node_Id) return Node_Id; -- Node1
7770
7771 function Entry_Index
7772 (N : Node_Id) return Node_Id; -- Node5
7773
7774 function Entry_Index_Specification
7775 (N : Node_Id) return Node_Id; -- Node4
7776
7777 function Etype
7778 (N : Node_Id) return Node_Id; -- Node5
7779
7780 function Exception_Choices
7781 (N : Node_Id) return List_Id; -- List4
7782
7783 function Exception_Handlers
7784 (N : Node_Id) return List_Id; -- List5
7785
7786 function Exception_Junk
7787 (N : Node_Id) return Boolean; -- Flag8
7788
7789 function Exception_Label
7790 (N : Node_Id) return Node_Id; -- Node5
7791
7792 function Explicit_Actual_Parameter
7793 (N : Node_Id) return Node_Id; -- Node3
7794
7795 function Expansion_Delayed
7796 (N : Node_Id) return Boolean; -- Flag11
7797
7798 function Explicit_Generic_Actual_Parameter
7799 (N : Node_Id) return Node_Id; -- Node1
7800
7801 function Expression
7802 (N : Node_Id) return Node_Id; -- Node3
7803
7804 function Expressions
7805 (N : Node_Id) return List_Id; -- List1
7806
7807 function First_Bit
7808 (N : Node_Id) return Node_Id; -- Node3
7809
7810 function First_Inlined_Subprogram
7811 (N : Node_Id) return Entity_Id; -- Node3
7812
7813 function First_Name
7814 (N : Node_Id) return Boolean; -- Flag5
7815
7816 function First_Named_Actual
7817 (N : Node_Id) return Node_Id; -- Node4
7818
7819 function First_Real_Statement
7820 (N : Node_Id) return Node_Id; -- Node2
7821
7822 function First_Subtype_Link
7823 (N : Node_Id) return Entity_Id; -- Node5
7824
7825 function Float_Truncate
7826 (N : Node_Id) return Boolean; -- Flag11
7827
7828 function Formal_Type_Definition
7829 (N : Node_Id) return Node_Id; -- Node3
7830
7831 function Forwards_OK
7832 (N : Node_Id) return Boolean; -- Flag5
7833
7834 function From_At_End
7835 (N : Node_Id) return Boolean; -- Flag4
7836
7837 function From_At_Mod
7838 (N : Node_Id) return Boolean; -- Flag4
7839
7840 function From_Default
7841 (N : Node_Id) return Boolean; -- Flag6
7842
7843 function Generic_Associations
7844 (N : Node_Id) return List_Id; -- List3
7845
7846 function Generic_Formal_Declarations
7847 (N : Node_Id) return List_Id; -- List2
7848
7849 function Generic_Parent
7850 (N : Node_Id) return Node_Id; -- Node5
7851
7852 function Generic_Parent_Type
7853 (N : Node_Id) return Node_Id; -- Node4
7854
7855 function Handled_Statement_Sequence
7856 (N : Node_Id) return Node_Id; -- Node4
7857
7858 function Handler_List_Entry
7859 (N : Node_Id) return Node_Id; -- Node2
7860
7861 function Has_Created_Identifier
7862 (N : Node_Id) return Boolean; -- Flag15
7863
7864 function Has_Dynamic_Length_Check
7865 (N : Node_Id) return Boolean; -- Flag10
7866
7867 function Has_Dynamic_Range_Check
7868 (N : Node_Id) return Boolean; -- Flag12
7869
7870 function Has_Init_Expression
7871 (N : Node_Id) return Boolean; -- Flag14
7872
7873 function Has_Local_Raise
7874 (N : Node_Id) return Boolean; -- Flag8
7875
7876 function Has_No_Elaboration_Code
7877 (N : Node_Id) return Boolean; -- Flag17
7878
7879 function Has_Priority_Pragma
7880 (N : Node_Id) return Boolean; -- Flag6
7881
7882 function Has_Private_View
7883 (N : Node_Id) return Boolean; -- Flag11
7884
7885 function Has_Relative_Deadline_Pragma
7886 (N : Node_Id) return Boolean; -- Flag9
7887
7888 function Has_Self_Reference
7889 (N : Node_Id) return Boolean; -- Flag13
7890
7891 function Has_Storage_Size_Pragma
7892 (N : Node_Id) return Boolean; -- Flag5
7893
7894 function Has_Task_Info_Pragma
7895 (N : Node_Id) return Boolean; -- Flag7
7896
7897 function Has_Task_Name_Pragma
7898 (N : Node_Id) return Boolean; -- Flag8
7899
7900 function Has_Wide_Character
7901 (N : Node_Id) return Boolean; -- Flag11
7902
7903 function Hidden_By_Use_Clause
7904 (N : Node_Id) return Elist_Id; -- Elist4
7905
7906 function High_Bound
7907 (N : Node_Id) return Node_Id; -- Node2
7908
7909 function Identifier
7910 (N : Node_Id) return Node_Id; -- Node1
7911
7912 function Interface_List
7913 (N : Node_Id) return List_Id; -- List2
7914
7915 function Interface_Present
7916 (N : Node_Id) return Boolean; -- Flag16
7917
7918 function Implicit_With
7919 (N : Node_Id) return Boolean; -- Flag16
7920
7921 function In_Present
7922 (N : Node_Id) return Boolean; -- Flag15
7923
7924 function Includes_Infinities
7925 (N : Node_Id) return Boolean; -- Flag11
7926
7927 function Instance_Spec
7928 (N : Node_Id) return Node_Id; -- Node5
7929
7930 function Intval
7931 (N : Node_Id) return Uint; -- Uint3
7932
7933 function Is_Asynchronous_Call_Block
7934 (N : Node_Id) return Boolean; -- Flag7
7935
7936 function Is_Component_Left_Opnd
7937 (N : Node_Id) return Boolean; -- Flag13
7938
7939 function Is_Component_Right_Opnd
7940 (N : Node_Id) return Boolean; -- Flag14
7941
7942 function Is_Controlling_Actual
7943 (N : Node_Id) return Boolean; -- Flag16
7944
7945 function Is_Dynamic_Coextension
7946 (N : Node_Id) return Boolean; -- Flag18
7947
7948 function Is_Entry_Barrier_Function
7949 (N : Node_Id) return Boolean; -- Flag8
7950
7951 function Is_Expanded_Build_In_Place_Call
7952 (N : Node_Id) return Boolean; -- Flag11
7953
7954 function Is_Folded_In_Parser
7955 (N : Node_Id) return Boolean; -- Flag4
7956
7957 function Is_In_Discriminant_Check
7958 (N : Node_Id) return Boolean; -- Flag11
7959
7960 function Is_Machine_Number
7961 (N : Node_Id) return Boolean; -- Flag11
7962
7963 function Is_Null_Loop
7964 (N : Node_Id) return Boolean; -- Flag16
7965
7966 function Is_Overloaded
7967 (N : Node_Id) return Boolean; -- Flag5
7968
7969 function Is_Power_Of_2_For_Shift
7970 (N : Node_Id) return Boolean; -- Flag13
7971
7972 function Is_Protected_Subprogram_Body
7973 (N : Node_Id) return Boolean; -- Flag7
7974
7975 function Is_Static_Coextension
7976 (N : Node_Id) return Boolean; -- Flag14
7977
7978 function Is_Static_Expression
7979 (N : Node_Id) return Boolean; -- Flag6
7980
7981 function Is_Subprogram_Descriptor
7982 (N : Node_Id) return Boolean; -- Flag16
7983
7984 function Is_Task_Allocation_Block
7985 (N : Node_Id) return Boolean; -- Flag6
7986
7987 function Is_Task_Master
7988 (N : Node_Id) return Boolean; -- Flag5
7989
7990 function Iteration_Scheme
7991 (N : Node_Id) return Node_Id; -- Node2
7992
7993 function Itype
7994 (N : Node_Id) return Entity_Id; -- Node1
7995
7996 function Kill_Range_Check
7997 (N : Node_Id) return Boolean; -- Flag11
7998
7999 function Label_Construct
8000 (N : Node_Id) return Node_Id; -- Node2
8001
8002 function Left_Opnd
8003 (N : Node_Id) return Node_Id; -- Node2
8004
8005 function Last_Bit
8006 (N : Node_Id) return Node_Id; -- Node4
8007
8008 function Last_Name
8009 (N : Node_Id) return Boolean; -- Flag6
8010
8011 function Library_Unit
8012 (N : Node_Id) return Node_Id; -- Node4
8013
8014 function Limited_View_Installed
8015 (N : Node_Id) return Boolean; -- Flag18
8016
8017 function Limited_Present
8018 (N : Node_Id) return Boolean; -- Flag17
8019
8020 function Literals
8021 (N : Node_Id) return List_Id; -- List1
8022
8023 function Local_Raise_Not_OK
8024 (N : Node_Id) return Boolean; -- Flag7
8025
8026 function Local_Raise_Statements
8027 (N : Node_Id) return Elist_Id; -- Elist1
8028
8029 function Loop_Actions
8030 (N : Node_Id) return List_Id; -- List2
8031
8032 function Loop_Parameter_Specification
8033 (N : Node_Id) return Node_Id; -- Node4
8034
8035 function Low_Bound
8036 (N : Node_Id) return Node_Id; -- Node1
8037
8038 function Mod_Clause
8039 (N : Node_Id) return Node_Id; -- Node2
8040
8041 function More_Ids
8042 (N : Node_Id) return Boolean; -- Flag5
8043
8044 function Must_Be_Byte_Aligned
8045 (N : Node_Id) return Boolean; -- Flag14
8046
8047 function Must_Not_Freeze
8048 (N : Node_Id) return Boolean; -- Flag8
8049
8050 function Must_Not_Override
8051 (N : Node_Id) return Boolean; -- Flag15
8052
8053 function Must_Override
8054 (N : Node_Id) return Boolean; -- Flag14
8055
8056 function Name
8057 (N : Node_Id) return Node_Id; -- Node2
8058
8059 function Names
8060 (N : Node_Id) return List_Id; -- List2
8061
8062 function Next_Entity
8063 (N : Node_Id) return Node_Id; -- Node2
8064
8065 function Next_Named_Actual
8066 (N : Node_Id) return Node_Id; -- Node4
8067
8068 function Next_Pragma
8069 (N : Node_Id) return Node_Id; -- Node1
8070
8071 function Next_Rep_Item
8072 (N : Node_Id) return Node_Id; -- Node5
8073
8074 function Next_Use_Clause
8075 (N : Node_Id) return Node_Id; -- Node3
8076
8077 function No_Ctrl_Actions
8078 (N : Node_Id) return Boolean; -- Flag7
8079
8080 function No_Elaboration_Check
8081 (N : Node_Id) return Boolean; -- Flag14
8082
8083 function No_Entities_Ref_In_Spec
8084 (N : Node_Id) return Boolean; -- Flag8
8085
8086 function No_Initialization
8087 (N : Node_Id) return Boolean; -- Flag13
8088
8089 function No_Truncation
8090 (N : Node_Id) return Boolean; -- Flag17
8091
8092 function Null_Present
8093 (N : Node_Id) return Boolean; -- Flag13
8094
8095 function Null_Exclusion_Present
8096 (N : Node_Id) return Boolean; -- Flag11
8097
8098 function Null_Exclusion_In_Return_Present
8099 (N : Node_Id) return Boolean; -- Flag14
8100
8101 function Null_Record_Present
8102 (N : Node_Id) return Boolean; -- Flag17
8103
8104 function Object_Definition
8105 (N : Node_Id) return Node_Id; -- Node4
8106
8107 function Original_Discriminant
8108 (N : Node_Id) return Node_Id; -- Node2
8109
8110 function Original_Entity
8111 (N : Node_Id) return Entity_Id; -- Node2
8112
8113 function Others_Discrete_Choices
8114 (N : Node_Id) return List_Id; -- List1
8115
8116 function Out_Present
8117 (N : Node_Id) return Boolean; -- Flag17
8118
8119 function Parameter_Associations
8120 (N : Node_Id) return List_Id; -- List3
8121
8122 function Parameter_List_Truncated
8123 (N : Node_Id) return Boolean; -- Flag17
8124
8125 function Parameter_Specifications
8126 (N : Node_Id) return List_Id; -- List3
8127
8128 function Parameter_Type
8129 (N : Node_Id) return Node_Id; -- Node2
8130
8131 function Parent_Spec
8132 (N : Node_Id) return Node_Id; -- Node4
8133
8134 function PPC_Enabled
8135 (N : Node_Id) return Boolean; -- Flag5
8136
8137 function Position
8138 (N : Node_Id) return Node_Id; -- Node2
8139
8140 function Pragma_Argument_Associations
8141 (N : Node_Id) return List_Id; -- List2
8142
8143 function Pragma_Identifier
8144 (N : Node_Id) return Node_Id; -- Node4
8145
8146 function Pragmas_After
8147 (N : Node_Id) return List_Id; -- List5
8148
8149 function Pragmas_Before
8150 (N : Node_Id) return List_Id; -- List4
8151
8152 function Prefix
8153 (N : Node_Id) return Node_Id; -- Node3
8154
8155 function Present_Expr
8156 (N : Node_Id) return Uint; -- Uint3
8157
8158 function Prev_Ids
8159 (N : Node_Id) return Boolean; -- Flag6
8160
8161 function Print_In_Hex
8162 (N : Node_Id) return Boolean; -- Flag13
8163
8164 function Private_Declarations
8165 (N : Node_Id) return List_Id; -- List3
8166
8167 function Private_Present
8168 (N : Node_Id) return Boolean; -- Flag15
8169
8170 function Procedure_To_Call
8171 (N : Node_Id) return Node_Id; -- Node2
8172
8173 function Proper_Body
8174 (N : Node_Id) return Node_Id; -- Node1
8175
8176 function Protected_Definition
8177 (N : Node_Id) return Node_Id; -- Node3
8178
8179 function Protected_Present
8180 (N : Node_Id) return Boolean; -- Flag6
8181
8182 function Raises_Constraint_Error
8183 (N : Node_Id) return Boolean; -- Flag7
8184
8185 function Range_Constraint
8186 (N : Node_Id) return Node_Id; -- Node4
8187
8188 function Range_Expression
8189 (N : Node_Id) return Node_Id; -- Node4
8190
8191 function Real_Range_Specification
8192 (N : Node_Id) return Node_Id; -- Node4
8193
8194 function Realval
8195 (N : Node_Id) return Ureal; -- Ureal3
8196
8197 function Reason
8198 (N : Node_Id) return Uint; -- Uint3
8199
8200 function Record_Extension_Part
8201 (N : Node_Id) return Node_Id; -- Node3
8202
8203 function Redundant_Use
8204 (N : Node_Id) return Boolean; -- Flag13
8205
8206 function Renaming_Exception
8207 (N : Node_Id) return Node_Id; -- Node2
8208
8209 function Result_Definition
8210 (N : Node_Id) return Node_Id; -- Node4
8211
8212 function Return_Object_Declarations
8213 (N : Node_Id) return List_Id; -- List3
8214
8215 function Return_Statement_Entity
8216 (N : Node_Id) return Node_Id; -- Node5
8217
8218 function Reverse_Present
8219 (N : Node_Id) return Boolean; -- Flag15
8220
8221 function Right_Opnd
8222 (N : Node_Id) return Node_Id; -- Node3
8223
8224 function Rounded_Result
8225 (N : Node_Id) return Boolean; -- Flag18
8226
8227 function Scope
8228 (N : Node_Id) return Node_Id; -- Node3
8229
8230 function Select_Alternatives
8231 (N : Node_Id) return List_Id; -- List1
8232
8233 function Selector_Name
8234 (N : Node_Id) return Node_Id; -- Node2
8235
8236 function Selector_Names
8237 (N : Node_Id) return List_Id; -- List1
8238
8239 function Shift_Count_OK
8240 (N : Node_Id) return Boolean; -- Flag4
8241
8242 function Source_Type
8243 (N : Node_Id) return Entity_Id; -- Node1
8244
8245 function Specification
8246 (N : Node_Id) return Node_Id; -- Node1
8247
8248 function Statements
8249 (N : Node_Id) return List_Id; -- List3
8250
8251 function Static_Processing_OK
8252 (N : Node_Id) return Boolean; -- Flag4
8253
8254 function Storage_Pool
8255 (N : Node_Id) return Node_Id; -- Node1
8256
8257 function Strval
8258 (N : Node_Id) return String_Id; -- Str3
8259
8260 function Subtype_Indication
8261 (N : Node_Id) return Node_Id; -- Node5
8262
8263 function Subtype_Mark
8264 (N : Node_Id) return Node_Id; -- Node4
8265
8266 function Subtype_Marks
8267 (N : Node_Id) return List_Id; -- List2
8268
8269 function Suppress_Loop_Warnings
8270 (N : Node_Id) return Boolean; -- Flag17
8271
8272 function Synchronized_Present
8273 (N : Node_Id) return Boolean; -- Flag7
8274
8275 function Tagged_Present
8276 (N : Node_Id) return Boolean; -- Flag15
8277
8278 function Target_Type
8279 (N : Node_Id) return Entity_Id; -- Node2
8280
8281 function Task_Definition
8282 (N : Node_Id) return Node_Id; -- Node3
8283
8284 function Task_Present
8285 (N : Node_Id) return Boolean; -- Flag5
8286
8287 function Then_Actions
8288 (N : Node_Id) return List_Id; -- List2
8289
8290 function Then_Statements
8291 (N : Node_Id) return List_Id; -- List2
8292
8293 function Treat_Fixed_As_Integer
8294 (N : Node_Id) return Boolean; -- Flag14
8295
8296 function Triggering_Alternative
8297 (N : Node_Id) return Node_Id; -- Node1
8298
8299 function Triggering_Statement
8300 (N : Node_Id) return Node_Id; -- Node1
8301
8302 function TSS_Elist
8303 (N : Node_Id) return Elist_Id; -- Elist3
8304
8305 function Type_Definition
8306 (N : Node_Id) return Node_Id; -- Node3
8307
8308 function Unit
8309 (N : Node_Id) return Node_Id; -- Node2
8310
8311 function Unknown_Discriminants_Present
8312 (N : Node_Id) return Boolean; -- Flag13
8313
8314 function Unreferenced_In_Spec
8315 (N : Node_Id) return Boolean; -- Flag7
8316
8317 function Variant_Part
8318 (N : Node_Id) return Node_Id; -- Node4
8319
8320 function Variants
8321 (N : Node_Id) return List_Id; -- List1
8322
8323 function Visible_Declarations
8324 (N : Node_Id) return List_Id; -- List2
8325
8326 function Was_Originally_Stub
8327 (N : Node_Id) return Boolean; -- Flag13
8328
8329 function Zero_Cost_Handling
8330 (N : Node_Id) return Boolean; -- Flag5
8331
8332 -- End functions (note used by xsinfo utility program to end processing)
8333
8334 ----------------------------
8335 -- Node Update Procedures --
8336 ----------------------------
8337
8338 -- These are the corresponding node update routines, which again provide
8339 -- a high level logical access with type checking. In addition to setting
8340 -- the indicated field of the node N to the given Val, in the case of
8341 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8342 -- point back to node N. This automates the setting of the parent pointer.
8343
8344 procedure Set_ABE_Is_Certain
8345 (N : Node_Id; Val : Boolean := True); -- Flag18
8346
8347 procedure Set_Abort_Present
8348 (N : Node_Id; Val : Boolean := True); -- Flag15
8349
8350 procedure Set_Abortable_Part
8351 (N : Node_Id; Val : Node_Id); -- Node2
8352
8353 procedure Set_Abstract_Present
8354 (N : Node_Id; Val : Boolean := True); -- Flag4
8355
8356 procedure Set_Accept_Handler_Records
8357 (N : Node_Id; Val : List_Id); -- List5
8358
8359 procedure Set_Accept_Statement
8360 (N : Node_Id; Val : Node_Id); -- Node2
8361
8362 procedure Set_Access_Definition
8363 (N : Node_Id; Val : Node_Id); -- Node3
8364
8365 procedure Set_Access_To_Subprogram_Definition
8366 (N : Node_Id; Val : Node_Id); -- Node3
8367
8368 procedure Set_Access_Types_To_Process
8369 (N : Node_Id; Val : Elist_Id); -- Elist2
8370
8371 procedure Set_Actions
8372 (N : Node_Id; Val : List_Id); -- List1
8373
8374 procedure Set_Activation_Chain_Entity
8375 (N : Node_Id; Val : Node_Id); -- Node3
8376
8377 procedure Set_Acts_As_Spec
8378 (N : Node_Id; Val : Boolean := True); -- Flag4
8379
8380 procedure Set_Actual_Designated_Subtype
8381 (N : Node_Id; Val : Node_Id); -- Node4
8382
8383 procedure Set_Address_Warning_Posted
8384 (N : Node_Id; Val : Boolean := True); -- Flag18
8385
8386 procedure Set_Aggregate_Bounds
8387 (N : Node_Id; Val : Node_Id); -- Node3
8388
8389 procedure Set_Aliased_Present
8390 (N : Node_Id; Val : Boolean := True); -- Flag4
8391
8392 procedure Set_All_Others
8393 (N : Node_Id; Val : Boolean := True); -- Flag11
8394
8395 procedure Set_All_Present
8396 (N : Node_Id; Val : Boolean := True); -- Flag15
8397
8398 procedure Set_Alternatives
8399 (N : Node_Id; Val : List_Id); -- List4
8400
8401 procedure Set_Ancestor_Part
8402 (N : Node_Id; Val : Node_Id); -- Node3
8403
8404 procedure Set_Array_Aggregate
8405 (N : Node_Id; Val : Node_Id); -- Node3
8406
8407 procedure Set_Assignment_OK
8408 (N : Node_Id; Val : Boolean := True); -- Flag15
8409
8410 procedure Set_Associated_Node
8411 (N : Node_Id; Val : Node_Id); -- Node4
8412
8413 procedure Set_Attribute_Name
8414 (N : Node_Id; Val : Name_Id); -- Name2
8415
8416 procedure Set_At_End_Proc
8417 (N : Node_Id; Val : Node_Id); -- Node1
8418
8419 procedure Set_Aux_Decls_Node
8420 (N : Node_Id; Val : Node_Id); -- Node5
8421
8422 procedure Set_Backwards_OK
8423 (N : Node_Id; Val : Boolean := True); -- Flag6
8424
8425 procedure Set_Bad_Is_Detected
8426 (N : Node_Id; Val : Boolean := True); -- Flag15
8427
8428 procedure Set_Body_Required
8429 (N : Node_Id; Val : Boolean := True); -- Flag13
8430
8431 procedure Set_Body_To_Inline
8432 (N : Node_Id; Val : Node_Id); -- Node3
8433
8434 procedure Set_Box_Present
8435 (N : Node_Id; Val : Boolean := True); -- Flag15
8436
8437 procedure Set_By_Ref
8438 (N : Node_Id; Val : Boolean := True); -- Flag5
8439
8440 procedure Set_Char_Literal_Value
8441 (N : Node_Id; Val : Uint); -- Uint2
8442
8443 procedure Set_Chars
8444 (N : Node_Id; Val : Name_Id); -- Name1
8445
8446 procedure Set_Check_Address_Alignment
8447 (N : Node_Id; Val : Boolean := True); -- Flag11
8448
8449 procedure Set_Choice_Parameter
8450 (N : Node_Id; Val : Node_Id); -- Node2
8451
8452 procedure Set_Coextensions
8453 (N : Node_Id; Val : Elist_Id); -- Elist4
8454
8455 procedure Set_Choices
8456 (N : Node_Id; Val : List_Id); -- List1
8457
8458 procedure Set_Comes_From_Extended_Return_Statement
8459 (N : Node_Id; Val : Boolean := True); -- Flag18
8460
8461 procedure Set_Compile_Time_Known_Aggregate
8462 (N : Node_Id; Val : Boolean := True); -- Flag18
8463
8464 procedure Set_Component_Associations
8465 (N : Node_Id; Val : List_Id); -- List2
8466
8467 procedure Set_Component_Clauses
8468 (N : Node_Id; Val : List_Id); -- List3
8469
8470 procedure Set_Component_Definition
8471 (N : Node_Id; Val : Node_Id); -- Node4
8472
8473 procedure Set_Component_Items
8474 (N : Node_Id; Val : List_Id); -- List3
8475
8476 procedure Set_Component_List
8477 (N : Node_Id; Val : Node_Id); -- Node1
8478
8479 procedure Set_Component_Name
8480 (N : Node_Id; Val : Node_Id); -- Node1
8481
8482 procedure Set_Condition
8483 (N : Node_Id; Val : Node_Id); -- Node1
8484
8485 procedure Set_Condition_Actions
8486 (N : Node_Id; Val : List_Id); -- List3
8487
8488 procedure Set_Config_Pragmas
8489 (N : Node_Id; Val : List_Id); -- List4
8490
8491 procedure Set_Constant_Present
8492 (N : Node_Id; Val : Boolean := True); -- Flag17
8493
8494 procedure Set_Constraint
8495 (N : Node_Id; Val : Node_Id); -- Node3
8496
8497 procedure Set_Constraints
8498 (N : Node_Id; Val : List_Id); -- List1
8499
8500 procedure Set_Context_Installed
8501 (N : Node_Id; Val : Boolean := True); -- Flag13
8502
8503 procedure Set_Context_Items
8504 (N : Node_Id; Val : List_Id); -- List1
8505
8506 procedure Set_Controlling_Argument
8507 (N : Node_Id; Val : Node_Id); -- Node1
8508
8509 procedure Set_Conversion_OK
8510 (N : Node_Id; Val : Boolean := True); -- Flag14
8511
8512 procedure Set_Corresponding_Body
8513 (N : Node_Id; Val : Node_Id); -- Node5
8514
8515 procedure Set_Corresponding_Formal_Spec
8516 (N : Node_Id; Val : Node_Id); -- Node3
8517
8518 procedure Set_Corresponding_Generic_Association
8519 (N : Node_Id; Val : Node_Id); -- Node5
8520
8521 procedure Set_Corresponding_Integer_Value
8522 (N : Node_Id; Val : Uint); -- Uint4
8523
8524 procedure Set_Corresponding_Spec
8525 (N : Node_Id; Val : Node_Id); -- Node5
8526
8527 procedure Set_Corresponding_Stub
8528 (N : Node_Id; Val : Node_Id); -- Node3
8529
8530 procedure Set_Dcheck_Function
8531 (N : Node_Id; Val : Entity_Id); -- Node5
8532
8533 procedure Set_Debug_Statement
8534 (N : Node_Id; Val : Node_Id); -- Node3
8535
8536 procedure Set_Declarations
8537 (N : Node_Id; Val : List_Id); -- List2
8538
8539 procedure Set_Default_Expression
8540 (N : Node_Id; Val : Node_Id); -- Node5
8541
8542 procedure Set_Default_Name
8543 (N : Node_Id; Val : Node_Id); -- Node2
8544
8545 procedure Set_Defining_Identifier
8546 (N : Node_Id; Val : Entity_Id); -- Node1
8547
8548 procedure Set_Defining_Unit_Name
8549 (N : Node_Id; Val : Node_Id); -- Node1
8550
8551 procedure Set_Delay_Alternative
8552 (N : Node_Id; Val : Node_Id); -- Node4
8553
8554 procedure Set_Delay_Statement
8555 (N : Node_Id; Val : Node_Id); -- Node2
8556
8557 procedure Set_Delta_Expression
8558 (N : Node_Id; Val : Node_Id); -- Node3
8559
8560 procedure Set_Digits_Expression
8561 (N : Node_Id; Val : Node_Id); -- Node2
8562
8563 procedure Set_Discr_Check_Funcs_Built
8564 (N : Node_Id; Val : Boolean := True); -- Flag11
8565
8566 procedure Set_Discrete_Choices
8567 (N : Node_Id; Val : List_Id); -- List4
8568
8569 procedure Set_Discrete_Range
8570 (N : Node_Id; Val : Node_Id); -- Node4
8571
8572 procedure Set_Discrete_Subtype_Definition
8573 (N : Node_Id; Val : Node_Id); -- Node4
8574
8575 procedure Set_Discrete_Subtype_Definitions
8576 (N : Node_Id; Val : List_Id); -- List2
8577
8578 procedure Set_Discriminant_Specifications
8579 (N : Node_Id; Val : List_Id); -- List4
8580
8581 procedure Set_Discriminant_Type
8582 (N : Node_Id; Val : Node_Id); -- Node5
8583
8584 procedure Set_Do_Accessibility_Check
8585 (N : Node_Id; Val : Boolean := True); -- Flag13
8586
8587 procedure Set_Do_Discriminant_Check
8588 (N : Node_Id; Val : Boolean := True); -- Flag13
8589
8590 procedure Set_Do_Division_Check
8591 (N : Node_Id; Val : Boolean := True); -- Flag13
8592
8593 procedure Set_Do_Length_Check
8594 (N : Node_Id; Val : Boolean := True); -- Flag4
8595
8596 procedure Set_Do_Overflow_Check
8597 (N : Node_Id; Val : Boolean := True); -- Flag17
8598
8599 procedure Set_Do_Range_Check
8600 (N : Node_Id; Val : Boolean := True); -- Flag9
8601
8602 procedure Set_Do_Storage_Check
8603 (N : Node_Id; Val : Boolean := True); -- Flag17
8604
8605 procedure Set_Do_Tag_Check
8606 (N : Node_Id; Val : Boolean := True); -- Flag13
8607
8608 procedure Set_Elaborate_All_Desirable
8609 (N : Node_Id; Val : Boolean := True); -- Flag9
8610
8611 procedure Set_Elaborate_All_Present
8612 (N : Node_Id; Val : Boolean := True); -- Flag14
8613
8614 procedure Set_Elaborate_Desirable
8615 (N : Node_Id; Val : Boolean := True); -- Flag11
8616
8617 procedure Set_Elaborate_Present
8618 (N : Node_Id; Val : Boolean := True); -- Flag4
8619
8620 procedure Set_Elaboration_Boolean
8621 (N : Node_Id; Val : Node_Id); -- Node2
8622
8623 procedure Set_Else_Actions
8624 (N : Node_Id; Val : List_Id); -- List3
8625
8626 procedure Set_Else_Statements
8627 (N : Node_Id; Val : List_Id); -- List4
8628
8629 procedure Set_Elsif_Parts
8630 (N : Node_Id; Val : List_Id); -- List3
8631
8632 procedure Set_Enclosing_Variant
8633 (N : Node_Id; Val : Node_Id); -- Node2
8634
8635 procedure Set_End_Label
8636 (N : Node_Id; Val : Node_Id); -- Node4
8637
8638 procedure Set_End_Span
8639 (N : Node_Id; Val : Uint); -- Uint5
8640
8641 procedure Set_Entity
8642 (N : Node_Id; Val : Node_Id); -- Node4
8643
8644 procedure Set_Entry_Body_Formal_Part
8645 (N : Node_Id; Val : Node_Id); -- Node5
8646
8647 procedure Set_Entry_Call_Alternative
8648 (N : Node_Id; Val : Node_Id); -- Node1
8649
8650 procedure Set_Entry_Call_Statement
8651 (N : Node_Id; Val : Node_Id); -- Node1
8652
8653 procedure Set_Entry_Direct_Name
8654 (N : Node_Id; Val : Node_Id); -- Node1
8655
8656 procedure Set_Entry_Index
8657 (N : Node_Id; Val : Node_Id); -- Node5
8658
8659 procedure Set_Entry_Index_Specification
8660 (N : Node_Id; Val : Node_Id); -- Node4
8661
8662 procedure Set_Etype
8663 (N : Node_Id; Val : Node_Id); -- Node5
8664
8665 procedure Set_Exception_Choices
8666 (N : Node_Id; Val : List_Id); -- List4
8667
8668 procedure Set_Exception_Handlers
8669 (N : Node_Id; Val : List_Id); -- List5
8670
8671 procedure Set_Exception_Junk
8672 (N : Node_Id; Val : Boolean := True); -- Flag8
8673
8674 procedure Set_Exception_Label
8675 (N : Node_Id; Val : Node_Id); -- Node5
8676
8677 procedure Set_Expansion_Delayed
8678 (N : Node_Id; Val : Boolean := True); -- Flag11
8679
8680 procedure Set_Explicit_Actual_Parameter
8681 (N : Node_Id; Val : Node_Id); -- Node3
8682
8683 procedure Set_Explicit_Generic_Actual_Parameter
8684 (N : Node_Id; Val : Node_Id); -- Node1
8685
8686 procedure Set_Expression
8687 (N : Node_Id; Val : Node_Id); -- Node3
8688
8689 procedure Set_Expressions
8690 (N : Node_Id; Val : List_Id); -- List1
8691
8692 procedure Set_First_Bit
8693 (N : Node_Id; Val : Node_Id); -- Node3
8694
8695 procedure Set_First_Inlined_Subprogram
8696 (N : Node_Id; Val : Entity_Id); -- Node3
8697
8698 procedure Set_First_Name
8699 (N : Node_Id; Val : Boolean := True); -- Flag5
8700
8701 procedure Set_First_Named_Actual
8702 (N : Node_Id; Val : Node_Id); -- Node4
8703
8704 procedure Set_First_Real_Statement
8705 (N : Node_Id; Val : Node_Id); -- Node2
8706
8707 procedure Set_First_Subtype_Link
8708 (N : Node_Id; Val : Entity_Id); -- Node5
8709
8710 procedure Set_Float_Truncate
8711 (N : Node_Id; Val : Boolean := True); -- Flag11
8712
8713 procedure Set_Formal_Type_Definition
8714 (N : Node_Id; Val : Node_Id); -- Node3
8715
8716 procedure Set_Forwards_OK
8717 (N : Node_Id; Val : Boolean := True); -- Flag5
8718
8719 procedure Set_From_At_Mod
8720 (N : Node_Id; Val : Boolean := True); -- Flag4
8721
8722 procedure Set_From_At_End
8723 (N : Node_Id; Val : Boolean := True); -- Flag4
8724
8725 procedure Set_From_Default
8726 (N : Node_Id; Val : Boolean := True); -- Flag6
8727
8728 procedure Set_Generic_Associations
8729 (N : Node_Id; Val : List_Id); -- List3
8730
8731 procedure Set_Generic_Formal_Declarations
8732 (N : Node_Id; Val : List_Id); -- List2
8733
8734 procedure Set_Generic_Parent
8735 (N : Node_Id; Val : Node_Id); -- Node5
8736
8737 procedure Set_Generic_Parent_Type
8738 (N : Node_Id; Val : Node_Id); -- Node4
8739
8740 procedure Set_Handled_Statement_Sequence
8741 (N : Node_Id; Val : Node_Id); -- Node4
8742
8743 procedure Set_Handler_List_Entry
8744 (N : Node_Id; Val : Node_Id); -- Node2
8745
8746 procedure Set_Has_Created_Identifier
8747 (N : Node_Id; Val : Boolean := True); -- Flag15
8748
8749 procedure Set_Has_Dynamic_Length_Check
8750 (N : Node_Id; Val : Boolean := True); -- Flag10
8751
8752 procedure Set_Has_Dynamic_Range_Check
8753 (N : Node_Id; Val : Boolean := True); -- Flag12
8754
8755 procedure Set_Has_Init_Expression
8756 (N : Node_Id; Val : Boolean := True); -- Flag14
8757
8758 procedure Set_Has_Local_Raise
8759 (N : Node_Id; Val : Boolean := True); -- Flag8
8760
8761 procedure Set_Has_No_Elaboration_Code
8762 (N : Node_Id; Val : Boolean := True); -- Flag17
8763
8764 procedure Set_Has_Priority_Pragma
8765 (N : Node_Id; Val : Boolean := True); -- Flag6
8766
8767 procedure Set_Has_Private_View
8768 (N : Node_Id; Val : Boolean := True); -- Flag11
8769
8770 procedure Set_Has_Relative_Deadline_Pragma
8771 (N : Node_Id; Val : Boolean := True); -- Flag9
8772
8773 procedure Set_Has_Self_Reference
8774 (N : Node_Id; Val : Boolean := True); -- Flag13
8775
8776 procedure Set_Has_Storage_Size_Pragma
8777 (N : Node_Id; Val : Boolean := True); -- Flag5
8778
8779 procedure Set_Has_Task_Info_Pragma
8780 (N : Node_Id; Val : Boolean := True); -- Flag7
8781
8782 procedure Set_Has_Task_Name_Pragma
8783 (N : Node_Id; Val : Boolean := True); -- Flag8
8784
8785 procedure Set_Has_Wide_Character
8786 (N : Node_Id; Val : Boolean := True); -- Flag11
8787
8788 procedure Set_Hidden_By_Use_Clause
8789 (N : Node_Id; Val : Elist_Id); -- Elist4
8790
8791 procedure Set_High_Bound
8792 (N : Node_Id; Val : Node_Id); -- Node2
8793
8794 procedure Set_Identifier
8795 (N : Node_Id; Val : Node_Id); -- Node1
8796
8797 procedure Set_Interface_List
8798 (N : Node_Id; Val : List_Id); -- List2
8799
8800 procedure Set_Interface_Present
8801 (N : Node_Id; Val : Boolean := True); -- Flag16
8802
8803 procedure Set_Implicit_With
8804 (N : Node_Id; Val : Boolean := True); -- Flag16
8805
8806 procedure Set_In_Present
8807 (N : Node_Id; Val : Boolean := True); -- Flag15
8808
8809 procedure Set_Includes_Infinities
8810 (N : Node_Id; Val : Boolean := True); -- Flag11
8811
8812 procedure Set_Instance_Spec
8813 (N : Node_Id; Val : Node_Id); -- Node5
8814
8815 procedure Set_Intval
8816 (N : Node_Id; Val : Uint); -- Uint3
8817
8818 procedure Set_Is_Asynchronous_Call_Block
8819 (N : Node_Id; Val : Boolean := True); -- Flag7
8820
8821 procedure Set_Is_Component_Left_Opnd
8822 (N : Node_Id; Val : Boolean := True); -- Flag13
8823
8824 procedure Set_Is_Component_Right_Opnd
8825 (N : Node_Id; Val : Boolean := True); -- Flag14
8826
8827 procedure Set_Is_Controlling_Actual
8828 (N : Node_Id; Val : Boolean := True); -- Flag16
8829
8830 procedure Set_Is_Dynamic_Coextension
8831 (N : Node_Id; Val : Boolean := True); -- Flag18
8832
8833 procedure Set_Is_Entry_Barrier_Function
8834 (N : Node_Id; Val : Boolean := True); -- Flag8
8835
8836 procedure Set_Is_Expanded_Build_In_Place_Call
8837 (N : Node_Id; Val : Boolean := True); -- Flag11
8838
8839 procedure Set_Is_Folded_In_Parser
8840 (N : Node_Id; Val : Boolean := True); -- Flag4
8841
8842 procedure Set_Is_In_Discriminant_Check
8843 (N : Node_Id; Val : Boolean := True); -- Flag11
8844
8845 procedure Set_Is_Machine_Number
8846 (N : Node_Id; Val : Boolean := True); -- Flag11
8847
8848 procedure Set_Is_Null_Loop
8849 (N : Node_Id; Val : Boolean := True); -- Flag16
8850
8851 procedure Set_Is_Overloaded
8852 (N : Node_Id; Val : Boolean := True); -- Flag5
8853
8854 procedure Set_Is_Power_Of_2_For_Shift
8855 (N : Node_Id; Val : Boolean := True); -- Flag13
8856
8857 procedure Set_Is_Protected_Subprogram_Body
8858 (N : Node_Id; Val : Boolean := True); -- Flag7
8859
8860 procedure Set_Is_Static_Coextension
8861 (N : Node_Id; Val : Boolean := True); -- Flag14
8862
8863 procedure Set_Is_Static_Expression
8864 (N : Node_Id; Val : Boolean := True); -- Flag6
8865
8866 procedure Set_Is_Subprogram_Descriptor
8867 (N : Node_Id; Val : Boolean := True); -- Flag16
8868
8869 procedure Set_Is_Task_Allocation_Block
8870 (N : Node_Id; Val : Boolean := True); -- Flag6
8871
8872 procedure Set_Is_Task_Master
8873 (N : Node_Id; Val : Boolean := True); -- Flag5
8874
8875 procedure Set_Iteration_Scheme
8876 (N : Node_Id; Val : Node_Id); -- Node2
8877
8878 procedure Set_Itype
8879 (N : Node_Id; Val : Entity_Id); -- Node1
8880
8881 procedure Set_Kill_Range_Check
8882 (N : Node_Id; Val : Boolean := True); -- Flag11
8883
8884 procedure Set_Last_Bit
8885 (N : Node_Id; Val : Node_Id); -- Node4
8886
8887 procedure Set_Last_Name
8888 (N : Node_Id; Val : Boolean := True); -- Flag6
8889
8890 procedure Set_Library_Unit
8891 (N : Node_Id; Val : Node_Id); -- Node4
8892
8893 procedure Set_Label_Construct
8894 (N : Node_Id; Val : Node_Id); -- Node2
8895
8896 procedure Set_Left_Opnd
8897 (N : Node_Id; Val : Node_Id); -- Node2
8898
8899 procedure Set_Limited_View_Installed
8900 (N : Node_Id; Val : Boolean := True); -- Flag18
8901
8902 procedure Set_Limited_Present
8903 (N : Node_Id; Val : Boolean := True); -- Flag17
8904
8905 procedure Set_Literals
8906 (N : Node_Id; Val : List_Id); -- List1
8907
8908 procedure Set_Local_Raise_Not_OK
8909 (N : Node_Id; Val : Boolean := True); -- Flag7
8910
8911 procedure Set_Local_Raise_Statements
8912 (N : Node_Id; Val : Elist_Id); -- Elist1
8913
8914 procedure Set_Loop_Actions
8915 (N : Node_Id; Val : List_Id); -- List2
8916
8917 procedure Set_Loop_Parameter_Specification
8918 (N : Node_Id; Val : Node_Id); -- Node4
8919
8920 procedure Set_Low_Bound
8921 (N : Node_Id; Val : Node_Id); -- Node1
8922
8923 procedure Set_Mod_Clause
8924 (N : Node_Id; Val : Node_Id); -- Node2
8925
8926 procedure Set_More_Ids
8927 (N : Node_Id; Val : Boolean := True); -- Flag5
8928
8929 procedure Set_Must_Be_Byte_Aligned
8930 (N : Node_Id; Val : Boolean := True); -- Flag14
8931
8932 procedure Set_Must_Not_Freeze
8933 (N : Node_Id; Val : Boolean := True); -- Flag8
8934
8935 procedure Set_Must_Not_Override
8936 (N : Node_Id; Val : Boolean := True); -- Flag15
8937
8938 procedure Set_Must_Override
8939 (N : Node_Id; Val : Boolean := True); -- Flag14
8940
8941 procedure Set_Name
8942 (N : Node_Id; Val : Node_Id); -- Node2
8943
8944 procedure Set_Names
8945 (N : Node_Id; Val : List_Id); -- List2
8946
8947 procedure Set_Next_Entity
8948 (N : Node_Id; Val : Node_Id); -- Node2
8949
8950 procedure Set_Next_Named_Actual
8951 (N : Node_Id; Val : Node_Id); -- Node4
8952
8953 procedure Set_Next_Pragma
8954 (N : Node_Id; Val : Node_Id); -- Node1
8955
8956 procedure Set_Next_Rep_Item
8957 (N : Node_Id; Val : Node_Id); -- Node5
8958
8959 procedure Set_Next_Use_Clause
8960 (N : Node_Id; Val : Node_Id); -- Node3
8961
8962 procedure Set_No_Ctrl_Actions
8963 (N : Node_Id; Val : Boolean := True); -- Flag7
8964
8965 procedure Set_No_Elaboration_Check
8966 (N : Node_Id; Val : Boolean := True); -- Flag14
8967
8968 procedure Set_No_Entities_Ref_In_Spec
8969 (N : Node_Id; Val : Boolean := True); -- Flag8
8970
8971 procedure Set_No_Initialization
8972 (N : Node_Id; Val : Boolean := True); -- Flag13
8973
8974 procedure Set_No_Truncation
8975 (N : Node_Id; Val : Boolean := True); -- Flag17
8976
8977 procedure Set_Null_Present
8978 (N : Node_Id; Val : Boolean := True); -- Flag13
8979
8980 procedure Set_Null_Exclusion_Present
8981 (N : Node_Id; Val : Boolean := True); -- Flag11
8982
8983 procedure Set_Null_Exclusion_In_Return_Present
8984 (N : Node_Id; Val : Boolean := True); -- Flag14
8985
8986 procedure Set_Null_Record_Present
8987 (N : Node_Id; Val : Boolean := True); -- Flag17
8988
8989 procedure Set_Object_Definition
8990 (N : Node_Id; Val : Node_Id); -- Node4
8991
8992 procedure Set_Original_Discriminant
8993 (N : Node_Id; Val : Node_Id); -- Node2
8994
8995 procedure Set_Original_Entity
8996 (N : Node_Id; Val : Entity_Id); -- Node2
8997
8998 procedure Set_Others_Discrete_Choices
8999 (N : Node_Id; Val : List_Id); -- List1
9000
9001 procedure Set_Out_Present
9002 (N : Node_Id; Val : Boolean := True); -- Flag17
9003
9004 procedure Set_Parameter_Associations
9005 (N : Node_Id; Val : List_Id); -- List3
9006
9007 procedure Set_Parameter_List_Truncated
9008 (N : Node_Id; Val : Boolean := True); -- Flag17
9009
9010 procedure Set_Parameter_Specifications
9011 (N : Node_Id; Val : List_Id); -- List3
9012
9013 procedure Set_Parameter_Type
9014 (N : Node_Id; Val : Node_Id); -- Node2
9015
9016 procedure Set_Parent_Spec
9017 (N : Node_Id; Val : Node_Id); -- Node4
9018
9019 procedure Set_PPC_Enabled
9020 (N : Node_Id; Val : Boolean := True); -- Flag5
9021
9022 procedure Set_Position
9023 (N : Node_Id; Val : Node_Id); -- Node2
9024
9025 procedure Set_Pragma_Argument_Associations
9026 (N : Node_Id; Val : List_Id); -- List2
9027
9028 procedure Set_Pragma_Identifier
9029 (N : Node_Id; Val : Node_Id); -- Node4
9030
9031 procedure Set_Pragmas_After
9032 (N : Node_Id; Val : List_Id); -- List5
9033
9034 procedure Set_Pragmas_Before
9035 (N : Node_Id; Val : List_Id); -- List4
9036
9037 procedure Set_Prefix
9038 (N : Node_Id; Val : Node_Id); -- Node3
9039
9040 procedure Set_Present_Expr
9041 (N : Node_Id; Val : Uint); -- Uint3
9042
9043 procedure Set_Prev_Ids
9044 (N : Node_Id; Val : Boolean := True); -- Flag6
9045
9046 procedure Set_Print_In_Hex
9047 (N : Node_Id; Val : Boolean := True); -- Flag13
9048
9049 procedure Set_Private_Declarations
9050 (N : Node_Id; Val : List_Id); -- List3
9051
9052 procedure Set_Private_Present
9053 (N : Node_Id; Val : Boolean := True); -- Flag15
9054
9055 procedure Set_Procedure_To_Call
9056 (N : Node_Id; Val : Node_Id); -- Node2
9057
9058 procedure Set_Proper_Body
9059 (N : Node_Id; Val : Node_Id); -- Node1
9060
9061 procedure Set_Protected_Definition
9062 (N : Node_Id; Val : Node_Id); -- Node3
9063
9064 procedure Set_Protected_Present
9065 (N : Node_Id; Val : Boolean := True); -- Flag6
9066
9067 procedure Set_Raises_Constraint_Error
9068 (N : Node_Id; Val : Boolean := True); -- Flag7
9069
9070 procedure Set_Range_Constraint
9071 (N : Node_Id; Val : Node_Id); -- Node4
9072
9073 procedure Set_Range_Expression
9074 (N : Node_Id; Val : Node_Id); -- Node4
9075
9076 procedure Set_Real_Range_Specification
9077 (N : Node_Id; Val : Node_Id); -- Node4
9078
9079 procedure Set_Realval
9080 (N : Node_Id; Val : Ureal); -- Ureal3
9081
9082 procedure Set_Reason
9083 (N : Node_Id; Val : Uint); -- Uint3
9084
9085 procedure Set_Record_Extension_Part
9086 (N : Node_Id; Val : Node_Id); -- Node3
9087
9088 procedure Set_Redundant_Use
9089 (N : Node_Id; Val : Boolean := True); -- Flag13
9090
9091 procedure Set_Renaming_Exception
9092 (N : Node_Id; Val : Node_Id); -- Node2
9093
9094 procedure Set_Result_Definition
9095 (N : Node_Id; Val : Node_Id); -- Node4
9096
9097 procedure Set_Return_Object_Declarations
9098 (N : Node_Id; Val : List_Id); -- List3
9099
9100 procedure Set_Return_Statement_Entity
9101 (N : Node_Id; Val : Node_Id); -- Node5
9102
9103 procedure Set_Reverse_Present
9104 (N : Node_Id; Val : Boolean := True); -- Flag15
9105
9106 procedure Set_Right_Opnd
9107 (N : Node_Id; Val : Node_Id); -- Node3
9108
9109 procedure Set_Rounded_Result
9110 (N : Node_Id; Val : Boolean := True); -- Flag18
9111
9112 procedure Set_Scope
9113 (N : Node_Id; Val : Node_Id); -- Node3
9114
9115 procedure Set_Select_Alternatives
9116 (N : Node_Id; Val : List_Id); -- List1
9117
9118 procedure Set_Selector_Name
9119 (N : Node_Id; Val : Node_Id); -- Node2
9120
9121 procedure Set_Selector_Names
9122 (N : Node_Id; Val : List_Id); -- List1
9123
9124 procedure Set_Shift_Count_OK
9125 (N : Node_Id; Val : Boolean := True); -- Flag4
9126
9127 procedure Set_Source_Type
9128 (N : Node_Id; Val : Entity_Id); -- Node1
9129
9130 procedure Set_Specification
9131 (N : Node_Id; Val : Node_Id); -- Node1
9132
9133 procedure Set_Statements
9134 (N : Node_Id; Val : List_Id); -- List3
9135
9136 procedure Set_Static_Processing_OK
9137 (N : Node_Id; Val : Boolean); -- Flag4
9138
9139 procedure Set_Storage_Pool
9140 (N : Node_Id; Val : Node_Id); -- Node1
9141
9142 procedure Set_Strval
9143 (N : Node_Id; Val : String_Id); -- Str3
9144
9145 procedure Set_Subtype_Indication
9146 (N : Node_Id; Val : Node_Id); -- Node5
9147
9148 procedure Set_Subtype_Mark
9149 (N : Node_Id; Val : Node_Id); -- Node4
9150
9151 procedure Set_Subtype_Marks
9152 (N : Node_Id; Val : List_Id); -- List2
9153
9154 procedure Set_Suppress_Loop_Warnings
9155 (N : Node_Id; Val : Boolean := True); -- Flag17
9156
9157 procedure Set_Synchronized_Present
9158 (N : Node_Id; Val : Boolean := True); -- Flag7
9159
9160 procedure Set_Tagged_Present
9161 (N : Node_Id; Val : Boolean := True); -- Flag15
9162
9163 procedure Set_Target_Type
9164 (N : Node_Id; Val : Entity_Id); -- Node2
9165
9166 procedure Set_Task_Definition
9167 (N : Node_Id; Val : Node_Id); -- Node3
9168
9169 procedure Set_Task_Present
9170 (N : Node_Id; Val : Boolean := True); -- Flag5
9171
9172 procedure Set_Then_Actions
9173 (N : Node_Id; Val : List_Id); -- List2
9174
9175 procedure Set_Then_Statements
9176 (N : Node_Id; Val : List_Id); -- List2
9177
9178 procedure Set_Treat_Fixed_As_Integer
9179 (N : Node_Id; Val : Boolean := True); -- Flag14
9180
9181 procedure Set_Triggering_Alternative
9182 (N : Node_Id; Val : Node_Id); -- Node1
9183
9184 procedure Set_Triggering_Statement
9185 (N : Node_Id; Val : Node_Id); -- Node1
9186
9187 procedure Set_TSS_Elist
9188 (N : Node_Id; Val : Elist_Id); -- Elist3
9189
9190 procedure Set_Type_Definition
9191 (N : Node_Id; Val : Node_Id); -- Node3
9192
9193 procedure Set_Unit
9194 (N : Node_Id; Val : Node_Id); -- Node2
9195
9196 procedure Set_Unknown_Discriminants_Present
9197 (N : Node_Id; Val : Boolean := True); -- Flag13
9198
9199 procedure Set_Unreferenced_In_Spec
9200 (N : Node_Id; Val : Boolean := True); -- Flag7
9201
9202 procedure Set_Variant_Part
9203 (N : Node_Id; Val : Node_Id); -- Node4
9204
9205 procedure Set_Variants
9206 (N : Node_Id; Val : List_Id); -- List1
9207
9208 procedure Set_Visible_Declarations
9209 (N : Node_Id; Val : List_Id); -- List2
9210
9211 procedure Set_Was_Originally_Stub
9212 (N : Node_Id; Val : Boolean := True); -- Flag13
9213
9214 procedure Set_Zero_Cost_Handling
9215 (N : Node_Id; Val : Boolean := True); -- Flag5
9216
9217 -------------------------
9218 -- Iterator Procedures --
9219 -------------------------
9220
9221 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9222
9223 procedure Next_Entity (N : in out Node_Id);
9224 procedure Next_Named_Actual (N : in out Node_Id);
9225 procedure Next_Rep_Item (N : in out Node_Id);
9226 procedure Next_Use_Clause (N : in out Node_Id);
9227
9228 --------------------------------------
9229 -- Logical Access to End_Span Field --
9230 --------------------------------------
9231
9232 function End_Location (N : Node_Id) return Source_Ptr;
9233 -- N is an N_If_Statement or N_Case_Statement node, and this
9234 -- function returns the location of the IF token in the END IF
9235 -- sequence by translating the value of the End_Span field.
9236
9237 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9238 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9239 -- sets the End_Span field to correspond to the given value S. In
9240 -- other words, End_Span is set to the difference between S and
9241 -- Sloc (N), the starting location.
9242
9243 --------------------------------
9244 -- Node_Kind Membership Tests --
9245 --------------------------------
9246
9247 -- The following functions allow a convenient notation for testing whether
9248 -- a Node_Kind value matches any one of a list of possible values. In each
9249 -- case True is returned if the given T argument is equal to any of the V
9250 -- arguments. Note that there is a similar set of functions defined in
9251 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9252
9253 function Nkind_In
9254 (T : Node_Kind;
9255 V1 : Node_Kind;
9256 V2 : Node_Kind) return Boolean;
9257
9258 function Nkind_In
9259 (T : Node_Kind;
9260 V1 : Node_Kind;
9261 V2 : Node_Kind;
9262 V3 : Node_Kind) return Boolean;
9263
9264 function Nkind_In
9265 (T : Node_Kind;
9266 V1 : Node_Kind;
9267 V2 : Node_Kind;
9268 V3 : Node_Kind;
9269 V4 : Node_Kind) return Boolean;
9270
9271 function Nkind_In
9272 (T : Node_Kind;
9273 V1 : Node_Kind;
9274 V2 : Node_Kind;
9275 V3 : Node_Kind;
9276 V4 : Node_Kind;
9277 V5 : Node_Kind) return Boolean;
9278
9279 function Nkind_In
9280 (T : Node_Kind;
9281 V1 : Node_Kind;
9282 V2 : Node_Kind;
9283 V3 : Node_Kind;
9284 V4 : Node_Kind;
9285 V5 : Node_Kind;
9286 V6 : Node_Kind) return Boolean;
9287
9288 function Nkind_In
9289 (T : Node_Kind;
9290 V1 : Node_Kind;
9291 V2 : Node_Kind;
9292 V3 : Node_Kind;
9293 V4 : Node_Kind;
9294 V5 : Node_Kind;
9295 V6 : Node_Kind;
9296 V7 : Node_Kind) return Boolean;
9297
9298 function Nkind_In
9299 (T : Node_Kind;
9300 V1 : Node_Kind;
9301 V2 : Node_Kind;
9302 V3 : Node_Kind;
9303 V4 : Node_Kind;
9304 V5 : Node_Kind;
9305 V6 : Node_Kind;
9306 V7 : Node_Kind;
9307 V8 : Node_Kind) return Boolean;
9308
9309 pragma Inline (Nkind_In);
9310 -- Inline all above functions
9311
9312 -----------------------
9313 -- Utility Functions --
9314 -----------------------
9315
9316 function Pragma_Name (N : Node_Id) return Name_Id;
9317 pragma Inline (Pragma_Name);
9318 -- Convenient function to obtain Chars field of Pragma_Identifier
9319
9320 -----------------------------
9321 -- Syntactic Parent Tables --
9322 -----------------------------
9323
9324 -- These tables show for each node, and for each of the five fields,
9325 -- whether the corresponding field is syntactic (True) or semantic (False).
9326 -- Unused entries are also set to False.
9327
9328 subtype Field_Num is Natural range 1 .. 5;
9329
9330 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9331
9332 -- Following entries can be built automatically from the sinfo sources
9333 -- using the makeisf utility (currently this program is in spitbol).
9334
9335 N_Identifier =>
9336 (1 => True, -- Chars (Name1)
9337 2 => False, -- Original_Discriminant (Node2-Sem)
9338 3 => False, -- unused
9339 4 => False, -- Entity (Node4-Sem)
9340 5 => False), -- Etype (Node5-Sem)
9341
9342 N_Integer_Literal =>
9343 (1 => False, -- unused
9344 2 => False, -- Original_Entity (Node2-Sem)
9345 3 => True, -- Intval (Uint3)
9346 4 => False, -- unused
9347 5 => False), -- Etype (Node5-Sem)
9348
9349 N_Real_Literal =>
9350 (1 => False, -- unused
9351 2 => False, -- Original_Entity (Node2-Sem)
9352 3 => True, -- Realval (Ureal3)
9353 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9354 5 => False), -- Etype (Node5-Sem)
9355
9356 N_Character_Literal =>
9357 (1 => True, -- Chars (Name1)
9358 2 => True, -- Char_Literal_Value (Uint2)
9359 3 => False, -- unused
9360 4 => False, -- Entity (Node4-Sem)
9361 5 => False), -- Etype (Node5-Sem)
9362
9363 N_String_Literal =>
9364 (1 => False, -- unused
9365 2 => False, -- unused
9366 3 => True, -- Strval (Str3)
9367 4 => False, -- unused
9368 5 => False), -- Etype (Node5-Sem)
9369
9370 N_Pragma =>
9371 (1 => False, -- Next_Pragma (Node1-Sem)
9372 2 => True, -- Pragma_Argument_Associations (List2)
9373 3 => True, -- Debug_Statement (Node3)
9374 4 => True, -- Pragma_Identifier (Node4)
9375 5 => False), -- Next_Rep_Item (Node5-Sem)
9376
9377 N_Pragma_Argument_Association =>
9378 (1 => True, -- Chars (Name1)
9379 2 => False, -- unused
9380 3 => True, -- Expression (Node3)
9381 4 => False, -- unused
9382 5 => False), -- unused
9383
9384 N_Defining_Identifier =>
9385 (1 => True, -- Chars (Name1)
9386 2 => False, -- Next_Entity (Node2-Sem)
9387 3 => False, -- Scope (Node3-Sem)
9388 4 => False, -- unused
9389 5 => False), -- Etype (Node5-Sem)
9390
9391 N_Full_Type_Declaration =>
9392 (1 => True, -- Defining_Identifier (Node1)
9393 2 => False, -- unused
9394 3 => True, -- Type_Definition (Node3)
9395 4 => True, -- Discriminant_Specifications (List4)
9396 5 => False), -- unused
9397
9398 N_Subtype_Declaration =>
9399 (1 => True, -- Defining_Identifier (Node1)
9400 2 => False, -- unused
9401 3 => False, -- unused
9402 4 => False, -- Generic_Parent_Type (Node4-Sem)
9403 5 => True), -- Subtype_Indication (Node5)
9404
9405 N_Subtype_Indication =>
9406 (1 => False, -- unused
9407 2 => False, -- unused
9408 3 => True, -- Constraint (Node3)
9409 4 => True, -- Subtype_Mark (Node4)
9410 5 => False), -- Etype (Node5-Sem)
9411
9412 N_Object_Declaration =>
9413 (1 => True, -- Defining_Identifier (Node1)
9414 2 => False, -- Handler_List_Entry (Node2-Sem)
9415 3 => True, -- Expression (Node3)
9416 4 => True, -- Object_Definition (Node4)
9417 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9418
9419 N_Number_Declaration =>
9420 (1 => True, -- Defining_Identifier (Node1)
9421 2 => False, -- unused
9422 3 => True, -- Expression (Node3)
9423 4 => False, -- unused
9424 5 => False), -- unused
9425
9426 N_Derived_Type_Definition =>
9427 (1 => False, -- unused
9428 2 => True, -- Interface_List (List2)
9429 3 => True, -- Record_Extension_Part (Node3)
9430 4 => False, -- unused
9431 5 => True), -- Subtype_Indication (Node5)
9432
9433 N_Range_Constraint =>
9434 (1 => False, -- unused
9435 2 => False, -- unused
9436 3 => False, -- unused
9437 4 => True, -- Range_Expression (Node4)
9438 5 => False), -- unused
9439
9440 N_Range =>
9441 (1 => True, -- Low_Bound (Node1)
9442 2 => True, -- High_Bound (Node2)
9443 3 => False, -- unused
9444 4 => False, -- unused
9445 5 => False), -- Etype (Node5-Sem)
9446
9447 N_Enumeration_Type_Definition =>
9448 (1 => True, -- Literals (List1)
9449 2 => False, -- unused
9450 3 => False, -- unused
9451 4 => True, -- End_Label (Node4)
9452 5 => False), -- unused
9453
9454 N_Defining_Character_Literal =>
9455 (1 => True, -- Chars (Name1)
9456 2 => False, -- Next_Entity (Node2-Sem)
9457 3 => False, -- Scope (Node3-Sem)
9458 4 => False, -- unused
9459 5 => False), -- Etype (Node5-Sem)
9460
9461 N_Signed_Integer_Type_Definition =>
9462 (1 => True, -- Low_Bound (Node1)
9463 2 => True, -- High_Bound (Node2)
9464 3 => False, -- unused
9465 4 => False, -- unused
9466 5 => False), -- unused
9467
9468 N_Modular_Type_Definition =>
9469 (1 => False, -- unused
9470 2 => False, -- unused
9471 3 => True, -- Expression (Node3)
9472 4 => False, -- unused
9473 5 => False), -- unused
9474
9475 N_Floating_Point_Definition =>
9476 (1 => False, -- unused
9477 2 => True, -- Digits_Expression (Node2)
9478 3 => False, -- unused
9479 4 => True, -- Real_Range_Specification (Node4)
9480 5 => False), -- unused
9481
9482 N_Real_Range_Specification =>
9483 (1 => True, -- Low_Bound (Node1)
9484 2 => True, -- High_Bound (Node2)
9485 3 => False, -- unused
9486 4 => False, -- unused
9487 5 => False), -- unused
9488
9489 N_Ordinary_Fixed_Point_Definition =>
9490 (1 => False, -- unused
9491 2 => False, -- unused
9492 3 => True, -- Delta_Expression (Node3)
9493 4 => True, -- Real_Range_Specification (Node4)
9494 5 => False), -- unused
9495
9496 N_Decimal_Fixed_Point_Definition =>
9497 (1 => False, -- unused
9498 2 => True, -- Digits_Expression (Node2)
9499 3 => True, -- Delta_Expression (Node3)
9500 4 => True, -- Real_Range_Specification (Node4)
9501 5 => False), -- unused
9502
9503 N_Digits_Constraint =>
9504 (1 => False, -- unused
9505 2 => True, -- Digits_Expression (Node2)
9506 3 => False, -- unused
9507 4 => True, -- Range_Constraint (Node4)
9508 5 => False), -- unused
9509
9510 N_Unconstrained_Array_Definition =>
9511 (1 => False, -- unused
9512 2 => True, -- Subtype_Marks (List2)
9513 3 => False, -- unused
9514 4 => True, -- Component_Definition (Node4)
9515 5 => False), -- unused
9516
9517 N_Constrained_Array_Definition =>
9518 (1 => False, -- unused
9519 2 => True, -- Discrete_Subtype_Definitions (List2)
9520 3 => False, -- unused
9521 4 => True, -- Component_Definition (Node4)
9522 5 => False), -- unused
9523
9524 N_Component_Definition =>
9525 (1 => False, -- unused
9526 2 => False, -- unused
9527 3 => True, -- Access_Definition (Node3)
9528 4 => False, -- unused
9529 5 => True), -- Subtype_Indication (Node5)
9530
9531 N_Discriminant_Specification =>
9532 (1 => True, -- Defining_Identifier (Node1)
9533 2 => False, -- unused
9534 3 => True, -- Expression (Node3)
9535 4 => False, -- unused
9536 5 => True), -- Discriminant_Type (Node5)
9537
9538 N_Index_Or_Discriminant_Constraint =>
9539 (1 => True, -- Constraints (List1)
9540 2 => False, -- unused
9541 3 => False, -- unused
9542 4 => False, -- unused
9543 5 => False), -- unused
9544
9545 N_Discriminant_Association =>
9546 (1 => True, -- Selector_Names (List1)
9547 2 => False, -- unused
9548 3 => True, -- Expression (Node3)
9549 4 => False, -- unused
9550 5 => False), -- unused
9551
9552 N_Record_Definition =>
9553 (1 => True, -- Component_List (Node1)
9554 2 => True, -- Interface_List (List2)
9555 3 => False, -- unused
9556 4 => True, -- End_Label (Node4)
9557 5 => False), -- unused
9558
9559 N_Component_List =>
9560 (1 => False, -- unused
9561 2 => False, -- unused
9562 3 => True, -- Component_Items (List3)
9563 4 => True, -- Variant_Part (Node4)
9564 5 => False), -- unused
9565
9566 N_Component_Declaration =>
9567 (1 => True, -- Defining_Identifier (Node1)
9568 2 => False, -- unused
9569 3 => True, -- Expression (Node3)
9570 4 => True, -- Component_Definition (Node4)
9571 5 => False), -- unused
9572
9573 N_Variant_Part =>
9574 (1 => True, -- Variants (List1)
9575 2 => True, -- Name (Node2)
9576 3 => False, -- unused
9577 4 => False, -- unused
9578 5 => False), -- unused
9579
9580 N_Variant =>
9581 (1 => True, -- Component_List (Node1)
9582 2 => False, -- Enclosing_Variant (Node2-Sem)
9583 3 => False, -- Present_Expr (Uint3-Sem)
9584 4 => True, -- Discrete_Choices (List4)
9585 5 => False), -- Dcheck_Function (Node5-Sem)
9586
9587 N_Others_Choice =>
9588 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9589 2 => False, -- unused
9590 3 => False, -- unused
9591 4 => False, -- unused
9592 5 => False), -- unused
9593
9594 N_Access_To_Object_Definition =>
9595 (1 => False, -- unused
9596 2 => False, -- unused
9597 3 => False, -- unused
9598 4 => False, -- unused
9599 5 => True), -- Subtype_Indication (Node5)
9600
9601 N_Access_Function_Definition =>
9602 (1 => False, -- unused
9603 2 => False, -- unused
9604 3 => True, -- Parameter_Specifications (List3)
9605 4 => True, -- Result_Definition (Node4)
9606 5 => False), -- unused
9607
9608 N_Access_Procedure_Definition =>
9609 (1 => False, -- unused
9610 2 => False, -- unused
9611 3 => True, -- Parameter_Specifications (List3)
9612 4 => False, -- unused
9613 5 => False), -- unused
9614
9615 N_Access_Definition =>
9616 (1 => False, -- unused
9617 2 => False, -- unused
9618 3 => True, -- Access_To_Subprogram_Definition (Node3)
9619 4 => True, -- Subtype_Mark (Node4)
9620 5 => False), -- unused
9621
9622 N_Incomplete_Type_Declaration =>
9623 (1 => True, -- Defining_Identifier (Node1)
9624 2 => False, -- unused
9625 3 => False, -- unused
9626 4 => True, -- Discriminant_Specifications (List4)
9627 5 => False), -- unused
9628
9629 N_Explicit_Dereference =>
9630 (1 => False, -- unused
9631 2 => False, -- unused
9632 3 => True, -- Prefix (Node3)
9633 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9634 5 => False), -- Etype (Node5-Sem)
9635
9636 N_Indexed_Component =>
9637 (1 => True, -- Expressions (List1)
9638 2 => False, -- unused
9639 3 => True, -- Prefix (Node3)
9640 4 => False, -- unused
9641 5 => False), -- Etype (Node5-Sem)
9642
9643 N_Slice =>
9644 (1 => False, -- unused
9645 2 => False, -- unused
9646 3 => True, -- Prefix (Node3)
9647 4 => True, -- Discrete_Range (Node4)
9648 5 => False), -- Etype (Node5-Sem)
9649
9650 N_Selected_Component =>
9651 (1 => False, -- unused
9652 2 => True, -- Selector_Name (Node2)
9653 3 => True, -- Prefix (Node3)
9654 4 => False, -- unused
9655 5 => False), -- Etype (Node5-Sem)
9656
9657 N_Attribute_Reference =>
9658 (1 => True, -- Expressions (List1)
9659 2 => True, -- Attribute_Name (Name2)
9660 3 => True, -- Prefix (Node3)
9661 4 => False, -- Entity (Node4-Sem)
9662 5 => False), -- Etype (Node5-Sem)
9663
9664 N_Aggregate =>
9665 (1 => True, -- Expressions (List1)
9666 2 => True, -- Component_Associations (List2)
9667 3 => False, -- Aggregate_Bounds (Node3-Sem)
9668 4 => False, -- unused
9669 5 => False), -- Etype (Node5-Sem)
9670
9671 N_Component_Association =>
9672 (1 => True, -- Choices (List1)
9673 2 => False, -- Loop_Actions (List2-Sem)
9674 3 => True, -- Expression (Node3)
9675 4 => False, -- unused
9676 5 => False), -- unused
9677
9678 N_Extension_Aggregate =>
9679 (1 => True, -- Expressions (List1)
9680 2 => True, -- Component_Associations (List2)
9681 3 => True, -- Ancestor_Part (Node3)
9682 4 => False, -- unused
9683 5 => False), -- Etype (Node5-Sem)
9684
9685 N_Null =>
9686 (1 => False, -- unused
9687 2 => False, -- unused
9688 3 => False, -- unused
9689 4 => False, -- unused
9690 5 => False), -- Etype (Node5-Sem)
9691
9692 N_And_Then =>
9693 (1 => False, -- Actions (List1-Sem)
9694 2 => True, -- Left_Opnd (Node2)
9695 3 => True, -- Right_Opnd (Node3)
9696 4 => False, -- unused
9697 5 => False), -- Etype (Node5-Sem)
9698
9699 N_Or_Else =>
9700 (1 => False, -- Actions (List1-Sem)
9701 2 => True, -- Left_Opnd (Node2)
9702 3 => True, -- Right_Opnd (Node3)
9703 4 => False, -- unused
9704 5 => False), -- Etype (Node5-Sem)
9705
9706 N_In =>
9707 (1 => False, -- unused
9708 2 => True, -- Left_Opnd (Node2)
9709 3 => True, -- Right_Opnd (Node3)
9710 4 => False, -- unused
9711 5 => False), -- Etype (Node5-Sem)
9712
9713 N_Not_In =>
9714 (1 => False, -- unused
9715 2 => True, -- Left_Opnd (Node2)
9716 3 => True, -- Right_Opnd (Node3)
9717 4 => False, -- unused
9718 5 => False), -- Etype (Node5-Sem)
9719
9720 N_Op_And =>
9721 (1 => True, -- Chars (Name1)
9722 2 => True, -- Left_Opnd (Node2)
9723 3 => True, -- Right_Opnd (Node3)
9724 4 => False, -- Entity (Node4-Sem)
9725 5 => False), -- Etype (Node5-Sem)
9726
9727 N_Op_Or =>
9728 (1 => True, -- Chars (Name1)
9729 2 => True, -- Left_Opnd (Node2)
9730 3 => True, -- Right_Opnd (Node3)
9731 4 => False, -- Entity (Node4-Sem)
9732 5 => False), -- Etype (Node5-Sem)
9733
9734 N_Op_Xor =>
9735 (1 => True, -- Chars (Name1)
9736 2 => True, -- Left_Opnd (Node2)
9737 3 => True, -- Right_Opnd (Node3)
9738 4 => False, -- Entity (Node4-Sem)
9739 5 => False), -- Etype (Node5-Sem)
9740
9741 N_Op_Eq =>
9742 (1 => True, -- Chars (Name1)
9743 2 => True, -- Left_Opnd (Node2)
9744 3 => True, -- Right_Opnd (Node3)
9745 4 => False, -- Entity (Node4-Sem)
9746 5 => False), -- Etype (Node5-Sem)
9747
9748 N_Op_Ne =>
9749 (1 => True, -- Chars (Name1)
9750 2 => True, -- Left_Opnd (Node2)
9751 3 => True, -- Right_Opnd (Node3)
9752 4 => False, -- Entity (Node4-Sem)
9753 5 => False), -- Etype (Node5-Sem)
9754
9755 N_Op_Lt =>
9756 (1 => True, -- Chars (Name1)
9757 2 => True, -- Left_Opnd (Node2)
9758 3 => True, -- Right_Opnd (Node3)
9759 4 => False, -- Entity (Node4-Sem)
9760 5 => False), -- Etype (Node5-Sem)
9761
9762 N_Op_Le =>
9763 (1 => True, -- Chars (Name1)
9764 2 => True, -- Left_Opnd (Node2)
9765 3 => True, -- Right_Opnd (Node3)
9766 4 => False, -- Entity (Node4-Sem)
9767 5 => False), -- Etype (Node5-Sem)
9768
9769 N_Op_Gt =>
9770 (1 => True, -- Chars (Name1)
9771 2 => True, -- Left_Opnd (Node2)
9772 3 => True, -- Right_Opnd (Node3)
9773 4 => False, -- Entity (Node4-Sem)
9774 5 => False), -- Etype (Node5-Sem)
9775
9776 N_Op_Ge =>
9777 (1 => True, -- Chars (Name1)
9778 2 => True, -- Left_Opnd (Node2)
9779 3 => True, -- Right_Opnd (Node3)
9780 4 => False, -- Entity (Node4-Sem)
9781 5 => False), -- Etype (Node5-Sem)
9782
9783 N_Op_Add =>
9784 (1 => True, -- Chars (Name1)
9785 2 => True, -- Left_Opnd (Node2)
9786 3 => True, -- Right_Opnd (Node3)
9787 4 => False, -- Entity (Node4-Sem)
9788 5 => False), -- Etype (Node5-Sem)
9789
9790 N_Op_Subtract =>
9791 (1 => True, -- Chars (Name1)
9792 2 => True, -- Left_Opnd (Node2)
9793 3 => True, -- Right_Opnd (Node3)
9794 4 => False, -- Entity (Node4-Sem)
9795 5 => False), -- Etype (Node5-Sem)
9796
9797 N_Op_Concat =>
9798 (1 => True, -- Chars (Name1)
9799 2 => True, -- Left_Opnd (Node2)
9800 3 => True, -- Right_Opnd (Node3)
9801 4 => False, -- Entity (Node4-Sem)
9802 5 => False), -- Etype (Node5-Sem)
9803
9804 N_Op_Multiply =>
9805 (1 => True, -- Chars (Name1)
9806 2 => True, -- Left_Opnd (Node2)
9807 3 => True, -- Right_Opnd (Node3)
9808 4 => False, -- Entity (Node4-Sem)
9809 5 => False), -- Etype (Node5-Sem)
9810
9811 N_Op_Divide =>
9812 (1 => True, -- Chars (Name1)
9813 2 => True, -- Left_Opnd (Node2)
9814 3 => True, -- Right_Opnd (Node3)
9815 4 => False, -- Entity (Node4-Sem)
9816 5 => False), -- Etype (Node5-Sem)
9817
9818 N_Op_Mod =>
9819 (1 => True, -- Chars (Name1)
9820 2 => True, -- Left_Opnd (Node2)
9821 3 => True, -- Right_Opnd (Node3)
9822 4 => False, -- Entity (Node4-Sem)
9823 5 => False), -- Etype (Node5-Sem)
9824
9825 N_Op_Rem =>
9826 (1 => True, -- Chars (Name1)
9827 2 => True, -- Left_Opnd (Node2)
9828 3 => True, -- Right_Opnd (Node3)
9829 4 => False, -- Entity (Node4-Sem)
9830 5 => False), -- Etype (Node5-Sem)
9831
9832 N_Op_Expon =>
9833 (1 => True, -- Chars (Name1)
9834 2 => True, -- Left_Opnd (Node2)
9835 3 => True, -- Right_Opnd (Node3)
9836 4 => False, -- Entity (Node4-Sem)
9837 5 => False), -- Etype (Node5-Sem)
9838
9839 N_Op_Plus =>
9840 (1 => True, -- Chars (Name1)
9841 2 => False, -- unused
9842 3 => True, -- Right_Opnd (Node3)
9843 4 => False, -- Entity (Node4-Sem)
9844 5 => False), -- Etype (Node5-Sem)
9845
9846 N_Op_Minus =>
9847 (1 => True, -- Chars (Name1)
9848 2 => False, -- unused
9849 3 => True, -- Right_Opnd (Node3)
9850 4 => False, -- Entity (Node4-Sem)
9851 5 => False), -- Etype (Node5-Sem)
9852
9853 N_Op_Abs =>
9854 (1 => True, -- Chars (Name1)
9855 2 => False, -- unused
9856 3 => True, -- Right_Opnd (Node3)
9857 4 => False, -- Entity (Node4-Sem)
9858 5 => False), -- Etype (Node5-Sem)
9859
9860 N_Op_Not =>
9861 (1 => True, -- Chars (Name1)
9862 2 => False, -- unused
9863 3 => True, -- Right_Opnd (Node3)
9864 4 => False, -- Entity (Node4-Sem)
9865 5 => False), -- Etype (Node5-Sem)
9866
9867 N_Type_Conversion =>
9868 (1 => False, -- unused
9869 2 => False, -- unused
9870 3 => True, -- Expression (Node3)
9871 4 => True, -- Subtype_Mark (Node4)
9872 5 => False), -- Etype (Node5-Sem)
9873
9874 N_Qualified_Expression =>
9875 (1 => False, -- unused
9876 2 => False, -- unused
9877 3 => True, -- Expression (Node3)
9878 4 => True, -- Subtype_Mark (Node4)
9879 5 => False), -- Etype (Node5-Sem)
9880
9881 N_Allocator =>
9882 (1 => False, -- Storage_Pool (Node1-Sem)
9883 2 => False, -- Procedure_To_Call (Node2-Sem)
9884 3 => True, -- Expression (Node3)
9885 4 => False, -- Coextensions (Elist4-Sem)
9886 5 => False), -- Etype (Node5-Sem)
9887
9888 N_Null_Statement =>
9889 (1 => False, -- unused
9890 2 => False, -- unused
9891 3 => False, -- unused
9892 4 => False, -- unused
9893 5 => False), -- unused
9894
9895 N_Label =>
9896 (1 => True, -- Identifier (Node1)
9897 2 => False, -- unused
9898 3 => False, -- unused
9899 4 => False, -- unused
9900 5 => False), -- unused
9901
9902 N_Assignment_Statement =>
9903 (1 => False, -- unused
9904 2 => True, -- Name (Node2)
9905 3 => True, -- Expression (Node3)
9906 4 => False, -- unused
9907 5 => False), -- unused
9908
9909 N_If_Statement =>
9910 (1 => True, -- Condition (Node1)
9911 2 => True, -- Then_Statements (List2)
9912 3 => True, -- Elsif_Parts (List3)
9913 4 => True, -- Else_Statements (List4)
9914 5 => True), -- End_Span (Uint5)
9915
9916 N_Elsif_Part =>
9917 (1 => True, -- Condition (Node1)
9918 2 => True, -- Then_Statements (List2)
9919 3 => False, -- Condition_Actions (List3-Sem)
9920 4 => False, -- unused
9921 5 => False), -- unused
9922
9923 N_Case_Statement =>
9924 (1 => False, -- unused
9925 2 => False, -- unused
9926 3 => True, -- Expression (Node3)
9927 4 => True, -- Alternatives (List4)
9928 5 => True), -- End_Span (Uint5)
9929
9930 N_Case_Statement_Alternative =>
9931 (1 => False, -- unused
9932 2 => False, -- unused
9933 3 => True, -- Statements (List3)
9934 4 => True, -- Discrete_Choices (List4)
9935 5 => False), -- unused
9936
9937 N_Loop_Statement =>
9938 (1 => True, -- Identifier (Node1)
9939 2 => True, -- Iteration_Scheme (Node2)
9940 3 => True, -- Statements (List3)
9941 4 => True, -- End_Label (Node4)
9942 5 => False), -- unused
9943
9944 N_Iteration_Scheme =>
9945 (1 => True, -- Condition (Node1)
9946 2 => False, -- unused
9947 3 => False, -- Condition_Actions (List3-Sem)
9948 4 => True, -- Loop_Parameter_Specification (Node4)
9949 5 => False), -- unused
9950
9951 N_Loop_Parameter_Specification =>
9952 (1 => True, -- Defining_Identifier (Node1)
9953 2 => False, -- unused
9954 3 => False, -- unused
9955 4 => True, -- Discrete_Subtype_Definition (Node4)
9956 5 => False), -- unused
9957
9958 N_Block_Statement =>
9959 (1 => True, -- Identifier (Node1)
9960 2 => True, -- Declarations (List2)
9961 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9962 4 => True, -- Handled_Statement_Sequence (Node4)
9963 5 => False), -- unused
9964
9965 N_Exit_Statement =>
9966 (1 => True, -- Condition (Node1)
9967 2 => True, -- Name (Node2)
9968 3 => False, -- unused
9969 4 => False, -- unused
9970 5 => False), -- unused
9971
9972 N_Goto_Statement =>
9973 (1 => False, -- unused
9974 2 => True, -- Name (Node2)
9975 3 => False, -- unused
9976 4 => False, -- unused
9977 5 => False), -- unused
9978
9979 N_Subprogram_Declaration =>
9980 (1 => True, -- Specification (Node1)
9981 2 => False, -- unused
9982 3 => False, -- Body_To_Inline (Node3-Sem)
9983 4 => False, -- Parent_Spec (Node4-Sem)
9984 5 => False), -- Corresponding_Body (Node5-Sem)
9985
9986 N_Abstract_Subprogram_Declaration =>
9987 (1 => True, -- Specification (Node1)
9988 2 => False, -- unused
9989 3 => False, -- unused
9990 4 => False, -- unused
9991 5 => False), -- unused
9992
9993 N_Function_Specification =>
9994 (1 => True, -- Defining_Unit_Name (Node1)
9995 2 => False, -- Elaboration_Boolean (Node2-Sem)
9996 3 => True, -- Parameter_Specifications (List3)
9997 4 => True, -- Result_Definition (Node4)
9998 5 => False), -- Generic_Parent (Node5-Sem)
9999
10000 N_Procedure_Specification =>
10001 (1 => True, -- Defining_Unit_Name (Node1)
10002 2 => False, -- Elaboration_Boolean (Node2-Sem)
10003 3 => True, -- Parameter_Specifications (List3)
10004 4 => False, -- unused
10005 5 => False), -- Generic_Parent (Node5-Sem)
10006
10007 N_Designator =>
10008 (1 => True, -- Identifier (Node1)
10009 2 => True, -- Name (Node2)
10010 3 => False, -- unused
10011 4 => False, -- unused
10012 5 => False), -- unused
10013
10014 N_Defining_Program_Unit_Name =>
10015 (1 => True, -- Defining_Identifier (Node1)
10016 2 => True, -- Name (Node2)
10017 3 => False, -- unused
10018 4 => False, -- unused
10019 5 => False), -- unused
10020
10021 N_Operator_Symbol =>
10022 (1 => True, -- Chars (Name1)
10023 2 => False, -- unused
10024 3 => True, -- Strval (Str3)
10025 4 => False, -- Entity (Node4-Sem)
10026 5 => False), -- Etype (Node5-Sem)
10027
10028 N_Defining_Operator_Symbol =>
10029 (1 => True, -- Chars (Name1)
10030 2 => False, -- Next_Entity (Node2-Sem)
10031 3 => False, -- Scope (Node3-Sem)
10032 4 => False, -- unused
10033 5 => False), -- Etype (Node5-Sem)
10034
10035 N_Parameter_Specification =>
10036 (1 => True, -- Defining_Identifier (Node1)
10037 2 => True, -- Parameter_Type (Node2)
10038 3 => True, -- Expression (Node3)
10039 4 => False, -- unused
10040 5 => False), -- Default_Expression (Node5-Sem)
10041
10042 N_Subprogram_Body =>
10043 (1 => True, -- Specification (Node1)
10044 2 => True, -- Declarations (List2)
10045 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10046 4 => True, -- Handled_Statement_Sequence (Node4)
10047 5 => False), -- Corresponding_Spec (Node5-Sem)
10048
10049 N_Procedure_Call_Statement =>
10050 (1 => False, -- Controlling_Argument (Node1-Sem)
10051 2 => True, -- Name (Node2)
10052 3 => True, -- Parameter_Associations (List3)
10053 4 => False, -- First_Named_Actual (Node4-Sem)
10054 5 => False), -- Etype (Node5-Sem)
10055
10056 N_Function_Call =>
10057 (1 => False, -- Controlling_Argument (Node1-Sem)
10058 2 => True, -- Name (Node2)
10059 3 => True, -- Parameter_Associations (List3)
10060 4 => False, -- First_Named_Actual (Node4-Sem)
10061 5 => False), -- Etype (Node5-Sem)
10062
10063 N_Parameter_Association =>
10064 (1 => False, -- unused
10065 2 => True, -- Selector_Name (Node2)
10066 3 => True, -- Explicit_Actual_Parameter (Node3)
10067 4 => False, -- Next_Named_Actual (Node4-Sem)
10068 5 => False), -- unused
10069
10070 N_Return_Statement =>
10071 (1 => False, -- Storage_Pool (Node1-Sem)
10072 2 => False, -- Procedure_To_Call (Node2-Sem)
10073 3 => True, -- Expression (Node3)
10074 4 => False, -- unused
10075 5 => False), -- Return_Statement_Entity (Node5-Sem)
10076
10077 N_Extended_Return_Statement =>
10078 (1 => False, -- Storage_Pool (Node1-Sem)
10079 2 => False, -- Procedure_To_Call (Node2-Sem)
10080 3 => True, -- Return_Object_Declarations (List3)
10081 4 => True, -- Handled_Statement_Sequence (Node4)
10082 5 => False), -- Return_Statement_Entity (Node5-Sem)
10083
10084 N_Package_Declaration =>
10085 (1 => True, -- Specification (Node1)
10086 2 => False, -- unused
10087 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10088 4 => False, -- Parent_Spec (Node4-Sem)
10089 5 => False), -- Corresponding_Body (Node5-Sem)
10090
10091 N_Package_Specification =>
10092 (1 => True, -- Defining_Unit_Name (Node1)
10093 2 => True, -- Visible_Declarations (List2)
10094 3 => True, -- Private_Declarations (List3)
10095 4 => True, -- End_Label (Node4)
10096 5 => False), -- Generic_Parent (Node5-Sem)
10097
10098 N_Package_Body =>
10099 (1 => True, -- Defining_Unit_Name (Node1)
10100 2 => True, -- Declarations (List2)
10101 3 => False, -- unused
10102 4 => True, -- Handled_Statement_Sequence (Node4)
10103 5 => False), -- Corresponding_Spec (Node5-Sem)
10104
10105 N_Private_Type_Declaration =>
10106 (1 => True, -- Defining_Identifier (Node1)
10107 2 => False, -- unused
10108 3 => False, -- unused
10109 4 => True, -- Discriminant_Specifications (List4)
10110 5 => False), -- unused
10111
10112 N_Private_Extension_Declaration =>
10113 (1 => True, -- Defining_Identifier (Node1)
10114 2 => True, -- Interface_List (List2)
10115 3 => False, -- unused
10116 4 => True, -- Discriminant_Specifications (List4)
10117 5 => True), -- Subtype_Indication (Node5)
10118
10119 N_Use_Package_Clause =>
10120 (1 => False, -- unused
10121 2 => True, -- Names (List2)
10122 3 => False, -- Next_Use_Clause (Node3-Sem)
10123 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10124 5 => False), -- unused
10125
10126 N_Use_Type_Clause =>
10127 (1 => False, -- unused
10128 2 => True, -- Subtype_Marks (List2)
10129 3 => False, -- Next_Use_Clause (Node3-Sem)
10130 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10131 5 => False), -- unused
10132
10133 N_Object_Renaming_Declaration =>
10134 (1 => True, -- Defining_Identifier (Node1)
10135 2 => True, -- Name (Node2)
10136 3 => True, -- Access_Definition (Node3)
10137 4 => True, -- Subtype_Mark (Node4)
10138 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10139
10140 N_Exception_Renaming_Declaration =>
10141 (1 => True, -- Defining_Identifier (Node1)
10142 2 => True, -- Name (Node2)
10143 3 => False, -- unused
10144 4 => False, -- unused
10145 5 => False), -- unused
10146
10147 N_Package_Renaming_Declaration =>
10148 (1 => True, -- Defining_Unit_Name (Node1)
10149 2 => True, -- Name (Node2)
10150 3 => False, -- unused
10151 4 => False, -- Parent_Spec (Node4-Sem)
10152 5 => False), -- unused
10153
10154 N_Subprogram_Renaming_Declaration =>
10155 (1 => True, -- Specification (Node1)
10156 2 => True, -- Name (Node2)
10157 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10158 4 => False, -- Parent_Spec (Node4-Sem)
10159 5 => False), -- Corresponding_Spec (Node5-Sem)
10160
10161 N_Generic_Package_Renaming_Declaration =>
10162 (1 => True, -- Defining_Unit_Name (Node1)
10163 2 => True, -- Name (Node2)
10164 3 => False, -- unused
10165 4 => False, -- Parent_Spec (Node4-Sem)
10166 5 => False), -- unused
10167
10168 N_Generic_Procedure_Renaming_Declaration =>
10169 (1 => True, -- Defining_Unit_Name (Node1)
10170 2 => True, -- Name (Node2)
10171 3 => False, -- unused
10172 4 => False, -- Parent_Spec (Node4-Sem)
10173 5 => False), -- unused
10174
10175 N_Generic_Function_Renaming_Declaration =>
10176 (1 => True, -- Defining_Unit_Name (Node1)
10177 2 => True, -- Name (Node2)
10178 3 => False, -- unused
10179 4 => False, -- Parent_Spec (Node4-Sem)
10180 5 => False), -- unused
10181
10182 N_Task_Type_Declaration =>
10183 (1 => True, -- Defining_Identifier (Node1)
10184 2 => True, -- Interface_List (List2)
10185 3 => True, -- Task_Definition (Node3)
10186 4 => True, -- Discriminant_Specifications (List4)
10187 5 => False), -- Corresponding_Body (Node5-Sem)
10188
10189 N_Single_Task_Declaration =>
10190 (1 => True, -- Defining_Identifier (Node1)
10191 2 => True, -- Interface_List (List2)
10192 3 => True, -- Task_Definition (Node3)
10193 4 => False, -- unused
10194 5 => False), -- unused
10195
10196 N_Task_Definition =>
10197 (1 => False, -- unused
10198 2 => True, -- Visible_Declarations (List2)
10199 3 => True, -- Private_Declarations (List3)
10200 4 => True, -- End_Label (Node4)
10201 5 => False), -- unused
10202
10203 N_Task_Body =>
10204 (1 => True, -- Defining_Identifier (Node1)
10205 2 => True, -- Declarations (List2)
10206 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10207 4 => True, -- Handled_Statement_Sequence (Node4)
10208 5 => False), -- Corresponding_Spec (Node5-Sem)
10209
10210 N_Protected_Type_Declaration =>
10211 (1 => True, -- Defining_Identifier (Node1)
10212 2 => True, -- Interface_List (List2)
10213 3 => True, -- Protected_Definition (Node3)
10214 4 => True, -- Discriminant_Specifications (List4)
10215 5 => False), -- Corresponding_Body (Node5-Sem)
10216
10217 N_Single_Protected_Declaration =>
10218 (1 => True, -- Defining_Identifier (Node1)
10219 2 => True, -- Interface_List (List2)
10220 3 => True, -- Protected_Definition (Node3)
10221 4 => False, -- unused
10222 5 => False), -- unused
10223
10224 N_Protected_Definition =>
10225 (1 => False, -- unused
10226 2 => True, -- Visible_Declarations (List2)
10227 3 => True, -- Private_Declarations (List3)
10228 4 => True, -- End_Label (Node4)
10229 5 => False), -- unused
10230
10231 N_Protected_Body =>
10232 (1 => True, -- Defining_Identifier (Node1)
10233 2 => True, -- Declarations (List2)
10234 3 => False, -- unused
10235 4 => True, -- End_Label (Node4)
10236 5 => False), -- Corresponding_Spec (Node5-Sem)
10237
10238 N_Entry_Declaration =>
10239 (1 => True, -- Defining_Identifier (Node1)
10240 2 => False, -- unused
10241 3 => True, -- Parameter_Specifications (List3)
10242 4 => True, -- Discrete_Subtype_Definition (Node4)
10243 5 => False), -- Corresponding_Body (Node5-Sem)
10244
10245 N_Accept_Statement =>
10246 (1 => True, -- Entry_Direct_Name (Node1)
10247 2 => True, -- Declarations (List2)
10248 3 => True, -- Parameter_Specifications (List3)
10249 4 => True, -- Handled_Statement_Sequence (Node4)
10250 5 => True), -- Entry_Index (Node5)
10251
10252 N_Entry_Body =>
10253 (1 => True, -- Defining_Identifier (Node1)
10254 2 => True, -- Declarations (List2)
10255 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10256 4 => True, -- Handled_Statement_Sequence (Node4)
10257 5 => True), -- Entry_Body_Formal_Part (Node5)
10258
10259 N_Entry_Body_Formal_Part =>
10260 (1 => True, -- Condition (Node1)
10261 2 => False, -- unused
10262 3 => True, -- Parameter_Specifications (List3)
10263 4 => True, -- Entry_Index_Specification (Node4)
10264 5 => False), -- unused
10265
10266 N_Entry_Index_Specification =>
10267 (1 => True, -- Defining_Identifier (Node1)
10268 2 => False, -- unused
10269 3 => False, -- unused
10270 4 => True, -- Discrete_Subtype_Definition (Node4)
10271 5 => False), -- unused
10272
10273 N_Entry_Call_Statement =>
10274 (1 => False, -- unused
10275 2 => True, -- Name (Node2)
10276 3 => True, -- Parameter_Associations (List3)
10277 4 => False, -- First_Named_Actual (Node4-Sem)
10278 5 => False), -- unused
10279
10280 N_Requeue_Statement =>
10281 (1 => False, -- unused
10282 2 => True, -- Name (Node2)
10283 3 => False, -- unused
10284 4 => False, -- unused
10285 5 => False), -- unused
10286
10287 N_Delay_Until_Statement =>
10288 (1 => False, -- unused
10289 2 => False, -- unused
10290 3 => True, -- Expression (Node3)
10291 4 => False, -- unused
10292 5 => False), -- unused
10293
10294 N_Delay_Relative_Statement =>
10295 (1 => False, -- unused
10296 2 => False, -- unused
10297 3 => True, -- Expression (Node3)
10298 4 => False, -- unused
10299 5 => False), -- unused
10300
10301 N_Selective_Accept =>
10302 (1 => True, -- Select_Alternatives (List1)
10303 2 => False, -- unused
10304 3 => False, -- unused
10305 4 => True, -- Else_Statements (List4)
10306 5 => False), -- unused
10307
10308 N_Accept_Alternative =>
10309 (1 => True, -- Condition (Node1)
10310 2 => True, -- Accept_Statement (Node2)
10311 3 => True, -- Statements (List3)
10312 4 => True, -- Pragmas_Before (List4)
10313 5 => False), -- Accept_Handler_Records (List5-Sem)
10314
10315 N_Delay_Alternative =>
10316 (1 => True, -- Condition (Node1)
10317 2 => True, -- Delay_Statement (Node2)
10318 3 => True, -- Statements (List3)
10319 4 => True, -- Pragmas_Before (List4)
10320 5 => False), -- unused
10321
10322 N_Terminate_Alternative =>
10323 (1 => True, -- Condition (Node1)
10324 2 => False, -- unused
10325 3 => False, -- unused
10326 4 => True, -- Pragmas_Before (List4)
10327 5 => True), -- Pragmas_After (List5)
10328
10329 N_Timed_Entry_Call =>
10330 (1 => True, -- Entry_Call_Alternative (Node1)
10331 2 => False, -- unused
10332 3 => False, -- unused
10333 4 => True, -- Delay_Alternative (Node4)
10334 5 => False), -- unused
10335
10336 N_Entry_Call_Alternative =>
10337 (1 => True, -- Entry_Call_Statement (Node1)
10338 2 => False, -- unused
10339 3 => True, -- Statements (List3)
10340 4 => True, -- Pragmas_Before (List4)
10341 5 => False), -- unused
10342
10343 N_Conditional_Entry_Call =>
10344 (1 => True, -- Entry_Call_Alternative (Node1)
10345 2 => False, -- unused
10346 3 => False, -- unused
10347 4 => True, -- Else_Statements (List4)
10348 5 => False), -- unused
10349
10350 N_Asynchronous_Select =>
10351 (1 => True, -- Triggering_Alternative (Node1)
10352 2 => True, -- Abortable_Part (Node2)
10353 3 => False, -- unused
10354 4 => False, -- unused
10355 5 => False), -- unused
10356
10357 N_Triggering_Alternative =>
10358 (1 => True, -- Triggering_Statement (Node1)
10359 2 => False, -- unused
10360 3 => True, -- Statements (List3)
10361 4 => True, -- Pragmas_Before (List4)
10362 5 => False), -- unused
10363
10364 N_Abortable_Part =>
10365 (1 => False, -- unused
10366 2 => False, -- unused
10367 3 => True, -- Statements (List3)
10368 4 => False, -- unused
10369 5 => False), -- unused
10370
10371 N_Abort_Statement =>
10372 (1 => False, -- unused
10373 2 => True, -- Names (List2)
10374 3 => False, -- unused
10375 4 => False, -- unused
10376 5 => False), -- unused
10377
10378 N_Compilation_Unit =>
10379 (1 => True, -- Context_Items (List1)
10380 2 => True, -- Unit (Node2)
10381 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10382 4 => False, -- Library_Unit (Node4-Sem)
10383 5 => True), -- Aux_Decls_Node (Node5)
10384
10385 N_Compilation_Unit_Aux =>
10386 (1 => True, -- Actions (List1)
10387 2 => True, -- Declarations (List2)
10388 3 => False, -- unused
10389 4 => True, -- Config_Pragmas (List4)
10390 5 => True), -- Pragmas_After (List5)
10391
10392 N_With_Clause =>
10393 (1 => False, -- unused
10394 2 => True, -- Name (Node2)
10395 3 => False, -- unused
10396 4 => False, -- Library_Unit (Node4-Sem)
10397 5 => False), -- Corresponding_Spec (Node5-Sem)
10398
10399 N_Subprogram_Body_Stub =>
10400 (1 => True, -- Specification (Node1)
10401 2 => False, -- unused
10402 3 => False, -- unused
10403 4 => False, -- Library_Unit (Node4-Sem)
10404 5 => False), -- Corresponding_Body (Node5-Sem)
10405
10406 N_Package_Body_Stub =>
10407 (1 => True, -- Defining_Identifier (Node1)
10408 2 => False, -- unused
10409 3 => False, -- unused
10410 4 => False, -- Library_Unit (Node4-Sem)
10411 5 => False), -- Corresponding_Body (Node5-Sem)
10412
10413 N_Task_Body_Stub =>
10414 (1 => True, -- Defining_Identifier (Node1)
10415 2 => False, -- unused
10416 3 => False, -- unused
10417 4 => False, -- Library_Unit (Node4-Sem)
10418 5 => False), -- Corresponding_Body (Node5-Sem)
10419
10420 N_Protected_Body_Stub =>
10421 (1 => True, -- Defining_Identifier (Node1)
10422 2 => False, -- unused
10423 3 => False, -- unused
10424 4 => False, -- Library_Unit (Node4-Sem)
10425 5 => False), -- Corresponding_Body (Node5-Sem)
10426
10427 N_Subunit =>
10428 (1 => True, -- Proper_Body (Node1)
10429 2 => True, -- Name (Node2)
10430 3 => False, -- Corresponding_Stub (Node3-Sem)
10431 4 => False, -- unused
10432 5 => False), -- unused
10433
10434 N_Exception_Declaration =>
10435 (1 => True, -- Defining_Identifier (Node1)
10436 2 => False, -- unused
10437 3 => False, -- Expression (Node3-Sem)
10438 4 => False, -- unused
10439 5 => False), -- unused
10440
10441 N_Handled_Sequence_Of_Statements =>
10442 (1 => True, -- At_End_Proc (Node1)
10443 2 => False, -- First_Real_Statement (Node2-Sem)
10444 3 => True, -- Statements (List3)
10445 4 => True, -- End_Label (Node4)
10446 5 => True), -- Exception_Handlers (List5)
10447
10448 N_Exception_Handler =>
10449 (1 => False, -- Local_Raise_Statements (Elist1)
10450 2 => True, -- Choice_Parameter (Node2)
10451 3 => True, -- Statements (List3)
10452 4 => True, -- Exception_Choices (List4)
10453 5 => False), -- Exception_Label (Node5)
10454
10455 N_Raise_Statement =>
10456 (1 => False, -- unused
10457 2 => True, -- Name (Node2)
10458 3 => True, -- Expression (Node3)
10459 4 => False, -- unused
10460 5 => False), -- unused
10461
10462 N_Generic_Subprogram_Declaration =>
10463 (1 => True, -- Specification (Node1)
10464 2 => True, -- Generic_Formal_Declarations (List2)
10465 3 => False, -- unused
10466 4 => False, -- Parent_Spec (Node4-Sem)
10467 5 => False), -- Corresponding_Body (Node5-Sem)
10468
10469 N_Generic_Package_Declaration =>
10470 (1 => True, -- Specification (Node1)
10471 2 => True, -- Generic_Formal_Declarations (List2)
10472 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10473 4 => False, -- Parent_Spec (Node4-Sem)
10474 5 => False), -- Corresponding_Body (Node5-Sem)
10475
10476 N_Package_Instantiation =>
10477 (1 => True, -- Defining_Unit_Name (Node1)
10478 2 => True, -- Name (Node2)
10479 3 => True, -- Generic_Associations (List3)
10480 4 => False, -- Parent_Spec (Node4-Sem)
10481 5 => False), -- Instance_Spec (Node5-Sem)
10482
10483 N_Procedure_Instantiation =>
10484 (1 => True, -- Defining_Unit_Name (Node1)
10485 2 => True, -- Name (Node2)
10486 3 => True, -- Generic_Associations (List3)
10487 4 => False, -- Parent_Spec (Node4-Sem)
10488 5 => False), -- Instance_Spec (Node5-Sem)
10489
10490 N_Function_Instantiation =>
10491 (1 => True, -- Defining_Unit_Name (Node1)
10492 2 => True, -- Name (Node2)
10493 3 => True, -- Generic_Associations (List3)
10494 4 => False, -- Parent_Spec (Node4-Sem)
10495 5 => False), -- Instance_Spec (Node5-Sem)
10496
10497 N_Generic_Association =>
10498 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10499 2 => True, -- Selector_Name (Node2)
10500 3 => False, -- unused
10501 4 => False, -- unused
10502 5 => False), -- unused
10503
10504 N_Formal_Object_Declaration =>
10505 (1 => True, -- Defining_Identifier (Node1)
10506 2 => False, -- unused
10507 3 => True, -- Access_Definition (Node3)
10508 4 => True, -- Subtype_Mark (Node4)
10509 5 => True), -- Default_Expression (Node5)
10510
10511 N_Formal_Type_Declaration =>
10512 (1 => True, -- Defining_Identifier (Node1)
10513 2 => False, -- unused
10514 3 => True, -- Formal_Type_Definition (Node3)
10515 4 => True, -- Discriminant_Specifications (List4)
10516 5 => False), -- unused
10517
10518 N_Formal_Private_Type_Definition =>
10519 (1 => False, -- unused
10520 2 => False, -- unused
10521 3 => False, -- unused
10522 4 => False, -- unused
10523 5 => False), -- unused
10524
10525 N_Formal_Derived_Type_Definition =>
10526 (1 => False, -- unused
10527 2 => True, -- Interface_List (List2)
10528 3 => False, -- unused
10529 4 => True, -- Subtype_Mark (Node4)
10530 5 => False), -- unused
10531
10532 N_Formal_Discrete_Type_Definition =>
10533 (1 => False, -- unused
10534 2 => False, -- unused
10535 3 => False, -- unused
10536 4 => False, -- unused
10537 5 => False), -- unused
10538
10539 N_Formal_Signed_Integer_Type_Definition =>
10540 (1 => False, -- unused
10541 2 => False, -- unused
10542 3 => False, -- unused
10543 4 => False, -- unused
10544 5 => False), -- unused
10545
10546 N_Formal_Modular_Type_Definition =>
10547 (1 => False, -- unused
10548 2 => False, -- unused
10549 3 => False, -- unused
10550 4 => False, -- unused
10551 5 => False), -- unused
10552
10553 N_Formal_Floating_Point_Definition =>
10554 (1 => False, -- unused
10555 2 => False, -- unused
10556 3 => False, -- unused
10557 4 => False, -- unused
10558 5 => False), -- unused
10559
10560 N_Formal_Ordinary_Fixed_Point_Definition =>
10561 (1 => False, -- unused
10562 2 => False, -- unused
10563 3 => False, -- unused
10564 4 => False, -- unused
10565 5 => False), -- unused
10566
10567 N_Formal_Decimal_Fixed_Point_Definition =>
10568 (1 => False, -- unused
10569 2 => False, -- unused
10570 3 => False, -- unused
10571 4 => False, -- unused
10572 5 => False), -- unused
10573
10574 N_Formal_Concrete_Subprogram_Declaration =>
10575 (1 => True, -- Specification (Node1)
10576 2 => True, -- Default_Name (Node2)
10577 3 => False, -- unused
10578 4 => False, -- unused
10579 5 => False), -- unused
10580
10581 N_Formal_Abstract_Subprogram_Declaration =>
10582 (1 => True, -- Specification (Node1)
10583 2 => True, -- Default_Name (Node2)
10584 3 => False, -- unused
10585 4 => False, -- unused
10586 5 => False), -- unused
10587
10588 N_Formal_Package_Declaration =>
10589 (1 => True, -- Defining_Identifier (Node1)
10590 2 => True, -- Name (Node2)
10591 3 => True, -- Generic_Associations (List3)
10592 4 => False, -- unused
10593 5 => False), -- Instance_Spec (Node5-Sem)
10594
10595 N_Attribute_Definition_Clause =>
10596 (1 => True, -- Chars (Name1)
10597 2 => True, -- Name (Node2)
10598 3 => True, -- Expression (Node3)
10599 4 => False, -- unused
10600 5 => False), -- Next_Rep_Item (Node5-Sem)
10601
10602 N_Enumeration_Representation_Clause =>
10603 (1 => True, -- Identifier (Node1)
10604 2 => False, -- unused
10605 3 => True, -- Array_Aggregate (Node3)
10606 4 => False, -- unused
10607 5 => False), -- Next_Rep_Item (Node5-Sem)
10608
10609 N_Record_Representation_Clause =>
10610 (1 => True, -- Identifier (Node1)
10611 2 => True, -- Mod_Clause (Node2)
10612 3 => True, -- Component_Clauses (List3)
10613 4 => False, -- unused
10614 5 => False), -- Next_Rep_Item (Node5-Sem)
10615
10616 N_Component_Clause =>
10617 (1 => True, -- Component_Name (Node1)
10618 2 => True, -- Position (Node2)
10619 3 => True, -- First_Bit (Node3)
10620 4 => True, -- Last_Bit (Node4)
10621 5 => False), -- unused
10622
10623 N_Code_Statement =>
10624 (1 => False, -- unused
10625 2 => False, -- unused
10626 3 => True, -- Expression (Node3)
10627 4 => False, -- unused
10628 5 => False), -- unused
10629
10630 N_Op_Rotate_Left =>
10631 (1 => True, -- Chars (Name1)
10632 2 => True, -- Left_Opnd (Node2)
10633 3 => True, -- Right_Opnd (Node3)
10634 4 => False, -- Entity (Node4-Sem)
10635 5 => False), -- Etype (Node5-Sem)
10636
10637 N_Op_Rotate_Right =>
10638 (1 => True, -- Chars (Name1)
10639 2 => True, -- Left_Opnd (Node2)
10640 3 => True, -- Right_Opnd (Node3)
10641 4 => False, -- Entity (Node4-Sem)
10642 5 => False), -- Etype (Node5-Sem)
10643
10644 N_Op_Shift_Left =>
10645 (1 => True, -- Chars (Name1)
10646 2 => True, -- Left_Opnd (Node2)
10647 3 => True, -- Right_Opnd (Node3)
10648 4 => False, -- Entity (Node4-Sem)
10649 5 => False), -- Etype (Node5-Sem)
10650
10651 N_Op_Shift_Right_Arithmetic =>
10652 (1 => True, -- Chars (Name1)
10653 2 => True, -- Left_Opnd (Node2)
10654 3 => True, -- Right_Opnd (Node3)
10655 4 => False, -- Entity (Node4-Sem)
10656 5 => False), -- Etype (Node5-Sem)
10657
10658 N_Op_Shift_Right =>
10659 (1 => True, -- Chars (Name1)
10660 2 => True, -- Left_Opnd (Node2)
10661 3 => True, -- Right_Opnd (Node3)
10662 4 => False, -- Entity (Node4-Sem)
10663 5 => False), -- Etype (Node5-Sem)
10664
10665 N_Delta_Constraint =>
10666 (1 => False, -- unused
10667 2 => False, -- unused
10668 3 => True, -- Delta_Expression (Node3)
10669 4 => True, -- Range_Constraint (Node4)
10670 5 => False), -- unused
10671
10672 N_At_Clause =>
10673 (1 => True, -- Identifier (Node1)
10674 2 => False, -- unused
10675 3 => True, -- Expression (Node3)
10676 4 => False, -- unused
10677 5 => False), -- unused
10678
10679 N_Mod_Clause =>
10680 (1 => False, -- unused
10681 2 => False, -- unused
10682 3 => True, -- Expression (Node3)
10683 4 => True, -- Pragmas_Before (List4)
10684 5 => False), -- unused
10685
10686 N_Conditional_Expression =>
10687 (1 => True, -- Expressions (List1)
10688 2 => False, -- Then_Actions (List2-Sem)
10689 3 => False, -- Else_Actions (List3-Sem)
10690 4 => False, -- unused
10691 5 => False), -- Etype (Node5-Sem)
10692
10693 N_Expanded_Name =>
10694 (1 => True, -- Chars (Name1)
10695 2 => True, -- Selector_Name (Node2)
10696 3 => True, -- Prefix (Node3)
10697 4 => False, -- Entity (Node4-Sem)
10698 5 => False), -- Etype (Node5-Sem)
10699
10700 N_Free_Statement =>
10701 (1 => False, -- Storage_Pool (Node1-Sem)
10702 2 => False, -- Procedure_To_Call (Node2-Sem)
10703 3 => True, -- Expression (Node3)
10704 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10705 5 => False), -- unused
10706
10707 N_Freeze_Entity =>
10708 (1 => True, -- Actions (List1)
10709 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10710 3 => False, -- TSS_Elist (Elist3-Sem)
10711 4 => False, -- Entity (Node4-Sem)
10712 5 => False), -- First_Subtype_Link (Node5-Sem)
10713
10714 N_Implicit_Label_Declaration =>
10715 (1 => True, -- Defining_Identifier (Node1)
10716 2 => False, -- Label_Construct (Node2-Sem)
10717 3 => False, -- unused
10718 4 => False, -- unused
10719 5 => False), -- unused
10720
10721 N_Itype_Reference =>
10722 (1 => False, -- Itype (Node1-Sem)
10723 2 => False, -- unused
10724 3 => False, -- unused
10725 4 => False, -- unused
10726 5 => False), -- unused
10727
10728 N_Raise_Constraint_Error =>
10729 (1 => True, -- Condition (Node1)
10730 2 => False, -- unused
10731 3 => True, -- Reason (Uint3)
10732 4 => False, -- unused
10733 5 => False), -- Etype (Node5-Sem)
10734
10735 N_Raise_Program_Error =>
10736 (1 => True, -- Condition (Node1)
10737 2 => False, -- unused
10738 3 => True, -- Reason (Uint3)
10739 4 => False, -- unused
10740 5 => False), -- Etype (Node5-Sem)
10741
10742 N_Raise_Storage_Error =>
10743 (1 => True, -- Condition (Node1)
10744 2 => False, -- unused
10745 3 => True, -- Reason (Uint3)
10746 4 => False, -- unused
10747 5 => False), -- Etype (Node5-Sem)
10748
10749 N_Push_Constraint_Error_Label =>
10750 (1 => False, -- unused
10751 2 => False, -- unused
10752 3 => False, -- unused
10753 4 => False, -- unused
10754 5 => False), -- unused
10755
10756 N_Push_Program_Error_Label =>
10757 (1 => False, -- Exception_Label
10758 2 => False, -- unused
10759 3 => False, -- unused
10760 4 => False, -- unused
10761 5 => False), -- Exception_Label
10762
10763 N_Push_Storage_Error_Label =>
10764 (1 => False, -- Exception_Label
10765 2 => False, -- unused
10766 3 => False, -- unused
10767 4 => False, -- unused
10768 5 => False), -- Exception_Label
10769
10770 N_Pop_Constraint_Error_Label =>
10771 (1 => False, -- unused
10772 2 => False, -- unused
10773 3 => False, -- unused
10774 4 => False, -- unused
10775 5 => False), -- unused
10776
10777 N_Pop_Program_Error_Label =>
10778 (1 => False, -- unused
10779 2 => False, -- unused
10780 3 => False, -- unused
10781 4 => False, -- unused
10782 5 => False), -- unused
10783
10784 N_Pop_Storage_Error_Label =>
10785 (1 => False, -- unused
10786 2 => False, -- unused
10787 3 => False, -- unused
10788 4 => False, -- unused
10789 5 => False), -- unused
10790
10791 N_Reference =>
10792 (1 => False, -- unused
10793 2 => False, -- unused
10794 3 => True, -- Prefix (Node3)
10795 4 => False, -- unused
10796 5 => False), -- Etype (Node5-Sem)
10797
10798 N_Subprogram_Info =>
10799 (1 => True, -- Identifier (Node1)
10800 2 => False, -- unused
10801 3 => False, -- unused
10802 4 => False, -- unused
10803 5 => False), -- Etype (Node5-Sem)
10804
10805 N_Unchecked_Expression =>
10806 (1 => False, -- unused
10807 2 => False, -- unused
10808 3 => True, -- Expression (Node3)
10809 4 => False, -- unused
10810 5 => False), -- Etype (Node5-Sem)
10811
10812 N_Unchecked_Type_Conversion =>
10813 (1 => False, -- unused
10814 2 => False, -- unused
10815 3 => True, -- Expression (Node3)
10816 4 => True, -- Subtype_Mark (Node4)
10817 5 => False), -- Etype (Node5-Sem)
10818
10819 N_Validate_Unchecked_Conversion =>
10820 (1 => False, -- Source_Type (Node1-Sem)
10821 2 => False, -- Target_Type (Node2-Sem)
10822 3 => False, -- unused
10823 4 => False, -- unused
10824 5 => False), -- unused
10825
10826 -- End of inserted output from makeisf program
10827
10828 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10829 -- field for debugging purposes, they are not really syntactic fields, so
10830 -- we mark all fields as unused.
10831
10832 N_Empty =>
10833 (1 => False, -- unused
10834 2 => False, -- unused
10835 3 => False, -- unused
10836 4 => False, -- unused
10837 5 => False), -- unused
10838
10839 N_Error =>
10840 (1 => False, -- unused
10841 2 => False, -- unused
10842 3 => False, -- unused
10843 4 => False, -- unused
10844 5 => False), -- unused
10845
10846 N_Unused_At_Start =>
10847 (1 => False, -- unused
10848 2 => False, -- unused
10849 3 => False, -- unused
10850 4 => False, -- unused
10851 5 => False), -- unused
10852
10853 N_Unused_At_End =>
10854 (1 => False, -- unused
10855 2 => False, -- unused
10856 3 => False, -- unused
10857 4 => False, -- unused
10858 5 => False)); -- unused
10859
10860 --------------------
10861 -- Inline Pragmas --
10862 --------------------
10863
10864 pragma Inline (ABE_Is_Certain);
10865 pragma Inline (Abort_Present);
10866 pragma Inline (Abortable_Part);
10867 pragma Inline (Abstract_Present);
10868 pragma Inline (Accept_Handler_Records);
10869 pragma Inline (Accept_Statement);
10870 pragma Inline (Access_Definition);
10871 pragma Inline (Access_To_Subprogram_Definition);
10872 pragma Inline (Access_Types_To_Process);
10873 pragma Inline (Actions);
10874 pragma Inline (Activation_Chain_Entity);
10875 pragma Inline (Acts_As_Spec);
10876 pragma Inline (Actual_Designated_Subtype);
10877 pragma Inline (Address_Warning_Posted);
10878 pragma Inline (Aggregate_Bounds);
10879 pragma Inline (Aliased_Present);
10880 pragma Inline (All_Others);
10881 pragma Inline (All_Present);
10882 pragma Inline (Alternatives);
10883 pragma Inline (Ancestor_Part);
10884 pragma Inline (Array_Aggregate);
10885 pragma Inline (Assignment_OK);
10886 pragma Inline (Associated_Node);
10887 pragma Inline (At_End_Proc);
10888 pragma Inline (Attribute_Name);
10889 pragma Inline (Aux_Decls_Node);
10890 pragma Inline (Backwards_OK);
10891 pragma Inline (Bad_Is_Detected);
10892 pragma Inline (Body_To_Inline);
10893 pragma Inline (Body_Required);
10894 pragma Inline (By_Ref);
10895 pragma Inline (Box_Present);
10896 pragma Inline (Char_Literal_Value);
10897 pragma Inline (Chars);
10898 pragma Inline (Check_Address_Alignment);
10899 pragma Inline (Choice_Parameter);
10900 pragma Inline (Choices);
10901 pragma Inline (Coextensions);
10902 pragma Inline (Comes_From_Extended_Return_Statement);
10903 pragma Inline (Compile_Time_Known_Aggregate);
10904 pragma Inline (Component_Associations);
10905 pragma Inline (Component_Clauses);
10906 pragma Inline (Component_Definition);
10907 pragma Inline (Component_Items);
10908 pragma Inline (Component_List);
10909 pragma Inline (Component_Name);
10910 pragma Inline (Condition);
10911 pragma Inline (Condition_Actions);
10912 pragma Inline (Config_Pragmas);
10913 pragma Inline (Constant_Present);
10914 pragma Inline (Constraint);
10915 pragma Inline (Constraints);
10916 pragma Inline (Context_Installed);
10917 pragma Inline (Context_Items);
10918 pragma Inline (Controlling_Argument);
10919 pragma Inline (Conversion_OK);
10920 pragma Inline (Corresponding_Body);
10921 pragma Inline (Corresponding_Formal_Spec);
10922 pragma Inline (Corresponding_Generic_Association);
10923 pragma Inline (Corresponding_Integer_Value);
10924 pragma Inline (Corresponding_Spec);
10925 pragma Inline (Corresponding_Stub);
10926 pragma Inline (Dcheck_Function);
10927 pragma Inline (Debug_Statement);
10928 pragma Inline (Declarations);
10929 pragma Inline (Default_Expression);
10930 pragma Inline (Default_Name);
10931 pragma Inline (Defining_Identifier);
10932 pragma Inline (Defining_Unit_Name);
10933 pragma Inline (Delay_Alternative);
10934 pragma Inline (Delay_Statement);
10935 pragma Inline (Delta_Expression);
10936 pragma Inline (Digits_Expression);
10937 pragma Inline (Discr_Check_Funcs_Built);
10938 pragma Inline (Discrete_Choices);
10939 pragma Inline (Discrete_Range);
10940 pragma Inline (Discrete_Subtype_Definition);
10941 pragma Inline (Discrete_Subtype_Definitions);
10942 pragma Inline (Discriminant_Specifications);
10943 pragma Inline (Discriminant_Type);
10944 pragma Inline (Do_Accessibility_Check);
10945 pragma Inline (Do_Discriminant_Check);
10946 pragma Inline (Do_Length_Check);
10947 pragma Inline (Do_Division_Check);
10948 pragma Inline (Do_Overflow_Check);
10949 pragma Inline (Do_Range_Check);
10950 pragma Inline (Do_Storage_Check);
10951 pragma Inline (Do_Tag_Check);
10952 pragma Inline (Elaborate_Present);
10953 pragma Inline (Elaborate_All_Desirable);
10954 pragma Inline (Elaborate_All_Present);
10955 pragma Inline (Elaborate_Desirable);
10956 pragma Inline (Elaboration_Boolean);
10957 pragma Inline (Else_Actions);
10958 pragma Inline (Else_Statements);
10959 pragma Inline (Elsif_Parts);
10960 pragma Inline (Enclosing_Variant);
10961 pragma Inline (End_Label);
10962 pragma Inline (End_Span);
10963 pragma Inline (Entity);
10964 pragma Inline (Entity_Or_Associated_Node);
10965 pragma Inline (Entry_Body_Formal_Part);
10966 pragma Inline (Entry_Call_Alternative);
10967 pragma Inline (Entry_Call_Statement);
10968 pragma Inline (Entry_Direct_Name);
10969 pragma Inline (Entry_Index);
10970 pragma Inline (Entry_Index_Specification);
10971 pragma Inline (Etype);
10972 pragma Inline (Exception_Choices);
10973 pragma Inline (Exception_Handlers);
10974 pragma Inline (Exception_Junk);
10975 pragma Inline (Exception_Label);
10976 pragma Inline (Expansion_Delayed);
10977 pragma Inline (Explicit_Actual_Parameter);
10978 pragma Inline (Explicit_Generic_Actual_Parameter);
10979 pragma Inline (Expression);
10980 pragma Inline (Expressions);
10981 pragma Inline (First_Bit);
10982 pragma Inline (First_Inlined_Subprogram);
10983 pragma Inline (First_Name);
10984 pragma Inline (First_Named_Actual);
10985 pragma Inline (First_Real_Statement);
10986 pragma Inline (First_Subtype_Link);
10987 pragma Inline (Float_Truncate);
10988 pragma Inline (Formal_Type_Definition);
10989 pragma Inline (Forwards_OK);
10990 pragma Inline (From_At_End);
10991 pragma Inline (From_At_Mod);
10992 pragma Inline (From_Default);
10993 pragma Inline (Generic_Associations);
10994 pragma Inline (Generic_Formal_Declarations);
10995 pragma Inline (Generic_Parent);
10996 pragma Inline (Generic_Parent_Type);
10997 pragma Inline (Handled_Statement_Sequence);
10998 pragma Inline (Handler_List_Entry);
10999 pragma Inline (Has_Created_Identifier);
11000 pragma Inline (Has_Dynamic_Length_Check);
11001 pragma Inline (Has_Dynamic_Range_Check);
11002 pragma Inline (Has_Init_Expression);
11003 pragma Inline (Has_Local_Raise);
11004 pragma Inline (Has_Self_Reference);
11005 pragma Inline (Has_No_Elaboration_Code);
11006 pragma Inline (Has_Priority_Pragma);
11007 pragma Inline (Has_Private_View);
11008 pragma Inline (Has_Relative_Deadline_Pragma);
11009 pragma Inline (Has_Storage_Size_Pragma);
11010 pragma Inline (Has_Task_Info_Pragma);
11011 pragma Inline (Has_Task_Name_Pragma);
11012 pragma Inline (Has_Wide_Character);
11013 pragma Inline (Hidden_By_Use_Clause);
11014 pragma Inline (High_Bound);
11015 pragma Inline (Identifier);
11016 pragma Inline (Implicit_With);
11017 pragma Inline (Interface_List);
11018 pragma Inline (Interface_Present);
11019 pragma Inline (Includes_Infinities);
11020 pragma Inline (In_Present);
11021 pragma Inline (Instance_Spec);
11022 pragma Inline (Intval);
11023 pragma Inline (Is_Asynchronous_Call_Block);
11024 pragma Inline (Is_Component_Left_Opnd);
11025 pragma Inline (Is_Component_Right_Opnd);
11026 pragma Inline (Is_Controlling_Actual);
11027 pragma Inline (Is_Dynamic_Coextension);
11028 pragma Inline (Is_Entry_Barrier_Function);
11029 pragma Inline (Is_Expanded_Build_In_Place_Call);
11030 pragma Inline (Is_Folded_In_Parser);
11031 pragma Inline (Is_In_Discriminant_Check);
11032 pragma Inline (Is_Machine_Number);
11033 pragma Inline (Is_Null_Loop);
11034 pragma Inline (Is_Overloaded);
11035 pragma Inline (Is_Power_Of_2_For_Shift);
11036 pragma Inline (Is_Protected_Subprogram_Body);
11037 pragma Inline (Is_Static_Coextension);
11038 pragma Inline (Is_Static_Expression);
11039 pragma Inline (Is_Subprogram_Descriptor);
11040 pragma Inline (Is_Task_Allocation_Block);
11041 pragma Inline (Is_Task_Master);
11042 pragma Inline (Iteration_Scheme);
11043 pragma Inline (Itype);
11044 pragma Inline (Kill_Range_Check);
11045 pragma Inline (Last_Bit);
11046 pragma Inline (Last_Name);
11047 pragma Inline (Library_Unit);
11048 pragma Inline (Label_Construct);
11049 pragma Inline (Left_Opnd);
11050 pragma Inline (Limited_View_Installed);
11051 pragma Inline (Limited_Present);
11052 pragma Inline (Literals);
11053 pragma Inline (Local_Raise_Not_OK);
11054 pragma Inline (Local_Raise_Statements);
11055 pragma Inline (Loop_Actions);
11056 pragma Inline (Loop_Parameter_Specification);
11057 pragma Inline (Low_Bound);
11058 pragma Inline (Mod_Clause);
11059 pragma Inline (More_Ids);
11060 pragma Inline (Must_Be_Byte_Aligned);
11061 pragma Inline (Must_Not_Freeze);
11062 pragma Inline (Must_Not_Override);
11063 pragma Inline (Must_Override);
11064 pragma Inline (Name);
11065 pragma Inline (Names);
11066 pragma Inline (Next_Entity);
11067 pragma Inline (Next_Named_Actual);
11068 pragma Inline (Next_Pragma);
11069 pragma Inline (Next_Rep_Item);
11070 pragma Inline (Next_Use_Clause);
11071 pragma Inline (No_Ctrl_Actions);
11072 pragma Inline (No_Elaboration_Check);
11073 pragma Inline (No_Entities_Ref_In_Spec);
11074 pragma Inline (No_Initialization);
11075 pragma Inline (No_Truncation);
11076 pragma Inline (Null_Present);
11077 pragma Inline (Null_Exclusion_Present);
11078 pragma Inline (Null_Exclusion_In_Return_Present);
11079 pragma Inline (Null_Record_Present);
11080 pragma Inline (Object_Definition);
11081 pragma Inline (Original_Discriminant);
11082 pragma Inline (Original_Entity);
11083 pragma Inline (Others_Discrete_Choices);
11084 pragma Inline (Out_Present);
11085 pragma Inline (Parameter_Associations);
11086 pragma Inline (Parameter_Specifications);
11087 pragma Inline (Parameter_List_Truncated);
11088 pragma Inline (Parameter_Type);
11089 pragma Inline (Parent_Spec);
11090 pragma Inline (PPC_Enabled);
11091 pragma Inline (Position);
11092 pragma Inline (Pragma_Argument_Associations);
11093 pragma Inline (Pragma_Identifier);
11094 pragma Inline (Pragmas_After);
11095 pragma Inline (Pragmas_Before);
11096 pragma Inline (Prefix);
11097 pragma Inline (Present_Expr);
11098 pragma Inline (Prev_Ids);
11099 pragma Inline (Print_In_Hex);
11100 pragma Inline (Private_Declarations);
11101 pragma Inline (Private_Present);
11102 pragma Inline (Procedure_To_Call);
11103 pragma Inline (Proper_Body);
11104 pragma Inline (Protected_Definition);
11105 pragma Inline (Protected_Present);
11106 pragma Inline (Raises_Constraint_Error);
11107 pragma Inline (Range_Constraint);
11108 pragma Inline (Range_Expression);
11109 pragma Inline (Real_Range_Specification);
11110 pragma Inline (Realval);
11111 pragma Inline (Reason);
11112 pragma Inline (Record_Extension_Part);
11113 pragma Inline (Redundant_Use);
11114 pragma Inline (Renaming_Exception);
11115 pragma Inline (Result_Definition);
11116 pragma Inline (Return_Object_Declarations);
11117 pragma Inline (Return_Statement_Entity);
11118 pragma Inline (Reverse_Present);
11119 pragma Inline (Right_Opnd);
11120 pragma Inline (Rounded_Result);
11121 pragma Inline (Scope);
11122 pragma Inline (Select_Alternatives);
11123 pragma Inline (Selector_Name);
11124 pragma Inline (Selector_Names);
11125 pragma Inline (Shift_Count_OK);
11126 pragma Inline (Source_Type);
11127 pragma Inline (Specification);
11128 pragma Inline (Statements);
11129 pragma Inline (Static_Processing_OK);
11130 pragma Inline (Storage_Pool);
11131 pragma Inline (Strval);
11132 pragma Inline (Subtype_Indication);
11133 pragma Inline (Subtype_Mark);
11134 pragma Inline (Subtype_Marks);
11135 pragma Inline (Suppress_Loop_Warnings);
11136 pragma Inline (Synchronized_Present);
11137 pragma Inline (Tagged_Present);
11138 pragma Inline (Target_Type);
11139 pragma Inline (Task_Definition);
11140 pragma Inline (Task_Present);
11141 pragma Inline (Then_Actions);
11142 pragma Inline (Then_Statements);
11143 pragma Inline (Triggering_Alternative);
11144 pragma Inline (Triggering_Statement);
11145 pragma Inline (Treat_Fixed_As_Integer);
11146 pragma Inline (TSS_Elist);
11147 pragma Inline (Type_Definition);
11148 pragma Inline (Unit);
11149 pragma Inline (Unknown_Discriminants_Present);
11150 pragma Inline (Unreferenced_In_Spec);
11151 pragma Inline (Variant_Part);
11152 pragma Inline (Variants);
11153 pragma Inline (Visible_Declarations);
11154 pragma Inline (Was_Originally_Stub);
11155 pragma Inline (Zero_Cost_Handling);
11156
11157 pragma Inline (Set_ABE_Is_Certain);
11158 pragma Inline (Set_Abort_Present);
11159 pragma Inline (Set_Abortable_Part);
11160 pragma Inline (Set_Abstract_Present);
11161 pragma Inline (Set_Accept_Handler_Records);
11162 pragma Inline (Set_Accept_Statement);
11163 pragma Inline (Set_Access_Definition);
11164 pragma Inline (Set_Access_To_Subprogram_Definition);
11165 pragma Inline (Set_Access_Types_To_Process);
11166 pragma Inline (Set_Actions);
11167 pragma Inline (Set_Activation_Chain_Entity);
11168 pragma Inline (Set_Acts_As_Spec);
11169 pragma Inline (Set_Actual_Designated_Subtype);
11170 pragma Inline (Set_Address_Warning_Posted);
11171 pragma Inline (Set_Aggregate_Bounds);
11172 pragma Inline (Set_Aliased_Present);
11173 pragma Inline (Set_All_Others);
11174 pragma Inline (Set_All_Present);
11175 pragma Inline (Set_Alternatives);
11176 pragma Inline (Set_Ancestor_Part);
11177 pragma Inline (Set_Array_Aggregate);
11178 pragma Inline (Set_Assignment_OK);
11179 pragma Inline (Set_Associated_Node);
11180 pragma Inline (Set_At_End_Proc);
11181 pragma Inline (Set_Attribute_Name);
11182 pragma Inline (Set_Aux_Decls_Node);
11183 pragma Inline (Set_Backwards_OK);
11184 pragma Inline (Set_Bad_Is_Detected);
11185 pragma Inline (Set_Body_To_Inline);
11186 pragma Inline (Set_Body_Required);
11187 pragma Inline (Set_By_Ref);
11188 pragma Inline (Set_Box_Present);
11189 pragma Inline (Set_Char_Literal_Value);
11190 pragma Inline (Set_Chars);
11191 pragma Inline (Set_Check_Address_Alignment);
11192 pragma Inline (Set_Choice_Parameter);
11193 pragma Inline (Set_Choices);
11194 pragma Inline (Set_Coextensions);
11195 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11196 pragma Inline (Set_Compile_Time_Known_Aggregate);
11197 pragma Inline (Set_Component_Associations);
11198 pragma Inline (Set_Component_Clauses);
11199 pragma Inline (Set_Component_Definition);
11200 pragma Inline (Set_Component_Items);
11201 pragma Inline (Set_Component_List);
11202 pragma Inline (Set_Component_Name);
11203 pragma Inline (Set_Condition);
11204 pragma Inline (Set_Condition_Actions);
11205 pragma Inline (Set_Config_Pragmas);
11206 pragma Inline (Set_Constant_Present);
11207 pragma Inline (Set_Constraint);
11208 pragma Inline (Set_Constraints);
11209 pragma Inline (Set_Context_Installed);
11210 pragma Inline (Set_Context_Items);
11211 pragma Inline (Set_Controlling_Argument);
11212 pragma Inline (Set_Conversion_OK);
11213 pragma Inline (Set_Corresponding_Body);
11214 pragma Inline (Set_Corresponding_Formal_Spec);
11215 pragma Inline (Set_Corresponding_Generic_Association);
11216 pragma Inline (Set_Corresponding_Integer_Value);
11217 pragma Inline (Set_Corresponding_Spec);
11218 pragma Inline (Set_Corresponding_Stub);
11219 pragma Inline (Set_Dcheck_Function);
11220 pragma Inline (Set_Debug_Statement);
11221 pragma Inline (Set_Declarations);
11222 pragma Inline (Set_Default_Expression);
11223 pragma Inline (Set_Default_Name);
11224 pragma Inline (Set_Defining_Identifier);
11225 pragma Inline (Set_Defining_Unit_Name);
11226 pragma Inline (Set_Delay_Alternative);
11227 pragma Inline (Set_Delay_Statement);
11228 pragma Inline (Set_Delta_Expression);
11229 pragma Inline (Set_Digits_Expression);
11230 pragma Inline (Set_Discr_Check_Funcs_Built);
11231 pragma Inline (Set_Discrete_Choices);
11232 pragma Inline (Set_Discrete_Range);
11233 pragma Inline (Set_Discrete_Subtype_Definition);
11234 pragma Inline (Set_Discrete_Subtype_Definitions);
11235 pragma Inline (Set_Discriminant_Specifications);
11236 pragma Inline (Set_Discriminant_Type);
11237 pragma Inline (Set_Do_Accessibility_Check);
11238 pragma Inline (Set_Do_Discriminant_Check);
11239 pragma Inline (Set_Do_Length_Check);
11240 pragma Inline (Set_Do_Division_Check);
11241 pragma Inline (Set_Do_Overflow_Check);
11242 pragma Inline (Set_Do_Range_Check);
11243 pragma Inline (Set_Do_Storage_Check);
11244 pragma Inline (Set_Do_Tag_Check);
11245 pragma Inline (Set_Elaborate_Present);
11246 pragma Inline (Set_Elaborate_All_Desirable);
11247 pragma Inline (Set_Elaborate_All_Present);
11248 pragma Inline (Set_Elaborate_Desirable);
11249 pragma Inline (Set_Elaboration_Boolean);
11250 pragma Inline (Set_Else_Actions);
11251 pragma Inline (Set_Else_Statements);
11252 pragma Inline (Set_Elsif_Parts);
11253 pragma Inline (Set_Enclosing_Variant);
11254 pragma Inline (Set_End_Label);
11255 pragma Inline (Set_End_Span);
11256 pragma Inline (Set_Entity);
11257 pragma Inline (Set_Entry_Body_Formal_Part);
11258 pragma Inline (Set_Entry_Call_Alternative);
11259 pragma Inline (Set_Entry_Call_Statement);
11260 pragma Inline (Set_Entry_Direct_Name);
11261 pragma Inline (Set_Entry_Index);
11262 pragma Inline (Set_Entry_Index_Specification);
11263 pragma Inline (Set_Etype);
11264 pragma Inline (Set_Exception_Choices);
11265 pragma Inline (Set_Exception_Handlers);
11266 pragma Inline (Set_Exception_Junk);
11267 pragma Inline (Set_Exception_Label);
11268 pragma Inline (Set_Expansion_Delayed);
11269 pragma Inline (Set_Explicit_Actual_Parameter);
11270 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11271 pragma Inline (Set_Expression);
11272 pragma Inline (Set_Expressions);
11273 pragma Inline (Set_First_Bit);
11274 pragma Inline (Set_First_Inlined_Subprogram);
11275 pragma Inline (Set_First_Name);
11276 pragma Inline (Set_First_Named_Actual);
11277 pragma Inline (Set_First_Real_Statement);
11278 pragma Inline (Set_First_Subtype_Link);
11279 pragma Inline (Set_Float_Truncate);
11280 pragma Inline (Set_Formal_Type_Definition);
11281 pragma Inline (Set_Forwards_OK);
11282 pragma Inline (Set_From_At_End);
11283 pragma Inline (Set_From_At_Mod);
11284 pragma Inline (Set_From_Default);
11285 pragma Inline (Set_Generic_Associations);
11286 pragma Inline (Set_Generic_Formal_Declarations);
11287 pragma Inline (Set_Generic_Parent);
11288 pragma Inline (Set_Generic_Parent_Type);
11289 pragma Inline (Set_Handled_Statement_Sequence);
11290 pragma Inline (Set_Handler_List_Entry);
11291 pragma Inline (Set_Has_Created_Identifier);
11292 pragma Inline (Set_Has_Dynamic_Length_Check);
11293 pragma Inline (Set_Has_Init_Expression);
11294 pragma Inline (Set_Has_Local_Raise);
11295 pragma Inline (Set_Has_Dynamic_Range_Check);
11296 pragma Inline (Set_Has_No_Elaboration_Code);
11297 pragma Inline (Set_Has_Priority_Pragma);
11298 pragma Inline (Set_Has_Private_View);
11299 pragma Inline (Set_Has_Relative_Deadline_Pragma);
11300 pragma Inline (Set_Has_Storage_Size_Pragma);
11301 pragma Inline (Set_Has_Task_Info_Pragma);
11302 pragma Inline (Set_Has_Task_Name_Pragma);
11303 pragma Inline (Set_Has_Wide_Character);
11304 pragma Inline (Set_Hidden_By_Use_Clause);
11305 pragma Inline (Set_High_Bound);
11306 pragma Inline (Set_Identifier);
11307 pragma Inline (Set_Implicit_With);
11308 pragma Inline (Set_Includes_Infinities);
11309 pragma Inline (Set_Interface_List);
11310 pragma Inline (Set_Interface_Present);
11311 pragma Inline (Set_In_Present);
11312 pragma Inline (Set_Instance_Spec);
11313 pragma Inline (Set_Intval);
11314 pragma Inline (Set_Is_Asynchronous_Call_Block);
11315 pragma Inline (Set_Is_Component_Left_Opnd);
11316 pragma Inline (Set_Is_Component_Right_Opnd);
11317 pragma Inline (Set_Is_Controlling_Actual);
11318 pragma Inline (Set_Is_Dynamic_Coextension);
11319 pragma Inline (Set_Is_Entry_Barrier_Function);
11320 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11321 pragma Inline (Set_Is_Folded_In_Parser);
11322 pragma Inline (Set_Is_In_Discriminant_Check);
11323 pragma Inline (Set_Is_Machine_Number);
11324 pragma Inline (Set_Is_Null_Loop);
11325 pragma Inline (Set_Is_Overloaded);
11326 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11327 pragma Inline (Set_Is_Protected_Subprogram_Body);
11328 pragma Inline (Set_Has_Self_Reference);
11329 pragma Inline (Set_Is_Static_Coextension);
11330 pragma Inline (Set_Is_Static_Expression);
11331 pragma Inline (Set_Is_Subprogram_Descriptor);
11332 pragma Inline (Set_Is_Task_Allocation_Block);
11333 pragma Inline (Set_Is_Task_Master);
11334 pragma Inline (Set_Iteration_Scheme);
11335 pragma Inline (Set_Itype);
11336 pragma Inline (Set_Kill_Range_Check);
11337 pragma Inline (Set_Last_Bit);
11338 pragma Inline (Set_Last_Name);
11339 pragma Inline (Set_Library_Unit);
11340 pragma Inline (Set_Label_Construct);
11341 pragma Inline (Set_Left_Opnd);
11342 pragma Inline (Set_Limited_View_Installed);
11343 pragma Inline (Set_Limited_Present);
11344 pragma Inline (Set_Literals);
11345 pragma Inline (Set_Local_Raise_Not_OK);
11346 pragma Inline (Set_Local_Raise_Statements);
11347 pragma Inline (Set_Loop_Actions);
11348 pragma Inline (Set_Loop_Parameter_Specification);
11349 pragma Inline (Set_Low_Bound);
11350 pragma Inline (Set_Mod_Clause);
11351 pragma Inline (Set_More_Ids);
11352 pragma Inline (Set_Must_Be_Byte_Aligned);
11353 pragma Inline (Set_Must_Not_Freeze);
11354 pragma Inline (Set_Must_Not_Override);
11355 pragma Inline (Set_Must_Override);
11356 pragma Inline (Set_Name);
11357 pragma Inline (Set_Names);
11358 pragma Inline (Set_Next_Entity);
11359 pragma Inline (Set_Next_Named_Actual);
11360 pragma Inline (Set_Next_Pragma);
11361 pragma Inline (Set_Next_Rep_Item);
11362 pragma Inline (Set_Next_Use_Clause);
11363 pragma Inline (Set_No_Ctrl_Actions);
11364 pragma Inline (Set_No_Elaboration_Check);
11365 pragma Inline (Set_No_Entities_Ref_In_Spec);
11366 pragma Inline (Set_No_Initialization);
11367 pragma Inline (Set_No_Truncation);
11368 pragma Inline (Set_Null_Present);
11369 pragma Inline (Set_Null_Exclusion_Present);
11370 pragma Inline (Set_Null_Exclusion_In_Return_Present);
11371 pragma Inline (Set_Null_Record_Present);
11372 pragma Inline (Set_Object_Definition);
11373 pragma Inline (Set_Original_Discriminant);
11374 pragma Inline (Set_Original_Entity);
11375 pragma Inline (Set_Others_Discrete_Choices);
11376 pragma Inline (Set_Out_Present);
11377 pragma Inline (Set_Parameter_Associations);
11378 pragma Inline (Set_Parameter_Specifications);
11379 pragma Inline (Set_Parameter_List_Truncated);
11380 pragma Inline (Set_Parameter_Type);
11381 pragma Inline (Set_Parent_Spec);
11382 pragma Inline (Set_PPC_Enabled);
11383 pragma Inline (Set_Position);
11384 pragma Inline (Set_Pragma_Argument_Associations);
11385 pragma Inline (Set_Pragma_Identifier);
11386 pragma Inline (Set_Pragmas_After);
11387 pragma Inline (Set_Pragmas_Before);
11388 pragma Inline (Set_Prefix);
11389 pragma Inline (Set_Present_Expr);
11390 pragma Inline (Set_Prev_Ids);
11391 pragma Inline (Set_Print_In_Hex);
11392 pragma Inline (Set_Private_Declarations);
11393 pragma Inline (Set_Private_Present);
11394 pragma Inline (Set_Procedure_To_Call);
11395 pragma Inline (Set_Proper_Body);
11396 pragma Inline (Set_Protected_Definition);
11397 pragma Inline (Set_Protected_Present);
11398 pragma Inline (Set_Raises_Constraint_Error);
11399 pragma Inline (Set_Range_Constraint);
11400 pragma Inline (Set_Range_Expression);
11401 pragma Inline (Set_Real_Range_Specification);
11402 pragma Inline (Set_Realval);
11403 pragma Inline (Set_Reason);
11404 pragma Inline (Set_Record_Extension_Part);
11405 pragma Inline (Set_Redundant_Use);
11406 pragma Inline (Set_Renaming_Exception);
11407 pragma Inline (Set_Result_Definition);
11408 pragma Inline (Set_Return_Object_Declarations);
11409 pragma Inline (Set_Reverse_Present);
11410 pragma Inline (Set_Right_Opnd);
11411 pragma Inline (Set_Rounded_Result);
11412 pragma Inline (Set_Scope);
11413 pragma Inline (Set_Select_Alternatives);
11414 pragma Inline (Set_Selector_Name);
11415 pragma Inline (Set_Selector_Names);
11416 pragma Inline (Set_Shift_Count_OK);
11417 pragma Inline (Set_Source_Type);
11418 pragma Inline (Set_Specification);
11419 pragma Inline (Set_Statements);
11420 pragma Inline (Set_Static_Processing_OK);
11421 pragma Inline (Set_Storage_Pool);
11422 pragma Inline (Set_Strval);
11423 pragma Inline (Set_Subtype_Indication);
11424 pragma Inline (Set_Subtype_Mark);
11425 pragma Inline (Set_Subtype_Marks);
11426 pragma Inline (Set_Suppress_Loop_Warnings);
11427 pragma Inline (Set_Synchronized_Present);
11428 pragma Inline (Set_Tagged_Present);
11429 pragma Inline (Set_Target_Type);
11430 pragma Inline (Set_Task_Definition);
11431 pragma Inline (Set_Task_Present);
11432 pragma Inline (Set_Then_Actions);
11433 pragma Inline (Set_Then_Statements);
11434 pragma Inline (Set_Triggering_Alternative);
11435 pragma Inline (Set_Triggering_Statement);
11436 pragma Inline (Set_Treat_Fixed_As_Integer);
11437 pragma Inline (Set_TSS_Elist);
11438 pragma Inline (Set_Type_Definition);
11439 pragma Inline (Set_Unit);
11440 pragma Inline (Set_Unknown_Discriminants_Present);
11441 pragma Inline (Set_Unreferenced_In_Spec);
11442 pragma Inline (Set_Variant_Part);
11443 pragma Inline (Set_Variants);
11444 pragma Inline (Set_Visible_Declarations);
11445 pragma Inline (Set_Was_Originally_Stub);
11446 pragma Inline (Set_Zero_Cost_Handling);
11447
11448 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11449 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11450 -- should refer to N_Simple_Return_Statement.
11451
11452 end Sinfo;