checks.adb (Determine_Range): Add Assume_Valid parameter
[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-2008, 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 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
21 -- --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
28 -- --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
31 -- --
32 ------------------------------------------------------------------------------
33
34 -- This package defines the structure of the abstract syntax tree. The Tree
35 -- package provides a basic tree structure. Sinfo describes how this structure
36 -- is used to represent the syntax of an Ada program.
37
38 -- The grammar in the RM is followed very closely in the tree
39 -- design, and is repeated as part of this source file.
40
41 -- The tree contains not only the full syntactic representation of the
42 -- program, but also the results of semantic analysis. In particular, the
43 -- nodes for defining identifiers, defining character literals and defining
44 -- operator symbols, collectively referred to as entities, represent what
45 -- would normally be regarded as the symbol table information. In addition a
46 -- number of the tree nodes contain semantic information.
47
48 -- WARNING: Several files are automatically generated from this package.
49 -- See below for details.
50
51 with Namet; use Namet;
52 with Types; use Types;
53 with Uintp; use Uintp;
54 with Urealp; use Urealp;
55
56 package Sinfo is
57
58 ---------------------------------
59 -- Making Changes to This File --
60 ---------------------------------
61
62 -- If changes are made to this file, a number of related steps must be
63 -- carried out to ensure consistency. First, if a field access function is
64 -- added, it appears in seven places:
65
66 -- The documentation associated with the node
67 -- The spec of the access function in sinfo.ads
68 -- The body of the access function in sinfo.adb
69 -- The pragma Inline at the end of sinfo.ads for the access function
70 -- The spec of the set procedure in sinfo.ads
71 -- The body of the set procedure in sinfo.adb
72 -- The pragma Inline at the end of sinfo.ads for the set procedure
73
74 -- The field chosen must be consistent in all places, and, for a node that
75 -- is a subexpression, must not overlap any of the standard expression
76 -- fields.
77
78 -- In addition, if any of the standard expression fields is changed, then
79 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
80 -- must be updated appropriately, since it special cases expression fields.
81
82 -- If a new tree node is added, then the following changes are made
83
84 -- Add it to the documentation in the appropriate place
85 -- Add its fields to this documentation section
86 -- Define it in the appropriate classification in Node_Kind
87 -- In the body (sinfo), add entries to the access functions for all
88 -- its fields (except standard expression fields) to include the new
89 -- node in the checks.
90 -- Add an appropriate section to the case statement in sprint.adb
91 -- Add an appropriate section to the case statement in sem.adb
92 -- Add an appropriate section to the case statement in exp_util.adb
93 -- (Insert_Actions procedure)
94 -- For a subexpression, add an appropriate section to the case
95 -- statement in sem_eval.adb
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_res.adb
98
99 -- Finally, four utility programs must be run:
100
101 -- Run CSinfo to check that you have made the changes consistently. It
102 -- checks most of the rules given above, with clear error messages. This
103 -- utility reads sinfo.ads and sinfo.adb and generates a report to
104 -- standard output.
105
106 -- Run XSinfo to create sinfo.h, the corresponding C header. This
107 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
108 -- not need to read sinfo.adb, since the contents of the body are
109 -- algorithmically determinable from the spec.
110
111 -- Run XTreeprs to create treeprs.ads, an updated version of the module
112 -- that is used to drive the tree print routine. This utility reads (but
113 -- does not modify) treeprs.adt, the template that provides the basic
114 -- structure of the file, and then fills in the data from the comments
115 -- in sinfo.ads.
116
117 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
118 -- spec of the Nmake package which contains functions for constructing
119 -- nodes.
120
121 -- All of the above steps except CSinfo are done automatically by the
122 -- build scripts when you do a full bootstrap.
123
124 -- Note: sometime we could write a utility that actually generated the body
125 -- of sinfo from the spec instead of simply checking it, since, as noted
126 -- above, the contents of the body can be determined from the spec.
127
128 --------------------------------
129 -- Implicit Nodes in the Tree --
130 --------------------------------
131
132 -- Generally the structure of the tree very closely follows the grammar as
133 -- defined in the RM. However, certain nodes are omitted to save space and
134 -- simplify semantic processing. Two general classes of such omitted nodes
135 -- are as follows:
136
137 -- If the only possibilities for a non-terminal are one or more other
138 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
139 -- corresponding node is omitted from the tree, and the target construct
140 -- appears directly. For example, a real type definition is either
141 -- floating point definition or a fixed point definition. No explicit node
142 -- appears for real type definition. Instead either the floating point
143 -- definition or fixed point definition appears directly.
144
145 -- If a non-terminal corresponds to a list of some other non-terminal
146 -- (possibly with separating punctuation), then usually it is omitted from
147 -- the tree, and a list of components appears instead. For example,
148 -- sequence of statements does not appear explicitly in the tree. Instead
149 -- a list of statements appears directly.
150
151 -- Some additional cases of omitted nodes occur and are documented
152 -- individually. In particular, many nodes are omitted in the tree
153 -- generated for an expression.
154
155 -------------------------------------------
156 -- Handling of Defining Identifier Lists --
157 -------------------------------------------
158
159 -- In several declarative forms in the syntax, lists of defining
160 -- identifiers appear (object declarations, component declarations, number
161 -- declarations etc.)
162
163 -- The semantics of such statements are equivalent to a series of identical
164 -- declarations of single defining identifiers (except that conformance
165 -- checks require the same grouping of identifiers in the parameter case).
166
167 -- To simplify semantic processing, the parser breaks down such multiple
168 -- declaration cases into sequences of single declarations, duplicating
169 -- type and initialization information as required. The flags More_Ids and
170 -- Prev_Ids are used to record the original form of the source in the case
171 -- where the original source used a list of names, More_Ids being set on
172 -- all but the last name and Prev_Ids being set on all but the first name.
173 -- These flags are used to reconstruct the original source (e.g. in the
174 -- Sprint package), and also are included in the conformance checks, but
175 -- otherwise have no semantic significance.
176
177 -- Note: the reason that we use More_Ids and Prev_Ids rather than
178 -- First_Name and Last_Name flags is so that the flags are off in the
179 -- normal one identifier case, which minimizes tree print output.
180
181 -----------------------
182 -- Use of Node Lists --
183 -----------------------
184
185 -- With a few exceptions, if a construction of the form {non-terminal}
186 -- appears in the tree, lists are used in the corresponding tree node (see
187 -- package Nlists for handling of node lists). In this case a field of the
188 -- parent node points to a list of nodes for the non-terminal. The field
189 -- name for such fields has a plural name which always ends in "s". For
190 -- example, a case statement has a field Alternatives pointing to list of
191 -- case statement alternative nodes.
192
193 -- Only fields pointing to lists have names ending in "s", so generally the
194 -- structure is strongly typed, fields not ending in s point to single
195 -- nodes, and fields ending in s point to lists.
196
197 -- The following example shows how a traversal of a list is written. We
198 -- suppose here that Stmt points to a N_Case_Statement node which has a
199 -- list field called Alternatives:
200
201 -- Alt := First (Alternatives (Stmt));
202 -- while Present (Alt) loop
203 -- ..
204 -- -- processing for case statement alternative Alt
205 -- ..
206 -- Alt := Next (Alt);
207 -- end loop;
208
209 -- The Present function tests for Empty, which in this case signals the end
210 -- of the list. First returns Empty immediately if the list is empty.
211 -- Present is defined in Atree, First and Next are defined in Nlists.
212
213 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
214 -- contexts, which is handled as described in the previous section, and
215 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
216 -- using the First_Name and Last_Name flags, as further detailed in the
217 -- description of the N_With_Clause node.
218
219 -------------
220 -- Pragmas --
221 -------------
222
223 -- Pragmas can appear in many different context, but are not included in
224 -- the grammar. Still they must appear in the tree, so they can be properly
225 -- processed.
226
227 -- Two approaches are used. In some cases, an extra field is defined in an
228 -- appropriate node that contains a list of pragmas appearing in the
229 -- expected context. For example pragmas can appear before an
230 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
231 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
232
233 -- The other approach is to simply allow pragmas to appear in syntactic
234 -- lists where the grammar (of course) does not include the possibility.
235 -- For example, the Variants field of an N_Variant_Part node points to a
236 -- list that can contain both N_Pragma and N_Variant nodes.
237
238 -- To make processing easier in the latter case, the Nlists package
239 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
240 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
241 -- ignoring all pragmas.
242
243 -- In the case of the variants list, we can either write:
244
245 -- Variant := First (Variants (N));
246 -- while Present (Variant) loop
247 -- ...
248 -- Variant := Next (Variant);
249 -- end loop;
250
251 -- or
252
253 -- Variant := First_Non_Pragma (Variants (N));
254 -- while Present (Variant) loop
255 -- ...
256 -- Variant := Next_Non_Pragma (Variant);
257 -- end loop;
258
259 -- In the first form of the loop, Variant can either be an N_Pragma or an
260 -- N_Variant node. In the second form, Variant can only be N_Variant since
261 -- all pragmas are skipped.
262
263 ---------------------
264 -- Optional Fields --
265 ---------------------
266
267 -- Fields which correspond to a section of the syntax enclosed in square
268 -- brackets are generally omitted (and the corresponding field set to Empty
269 -- for a node, or No_List for a list). The documentation of such fields
270 -- notes these cases. One exception to this rule occurs in the case of
271 -- possibly empty statement sequences (such as the sequence of statements
272 -- in an entry call alternative). Such cases appear in the syntax rules as
273 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
274 -- statement sequences always contain an empty list (not No_List) if no
275 -- statements are present.
276
277 -- Note: the utility program that constructs the body and spec of the Nmake
278 -- package relies on the format of the comments to determine if a field
279 -- should have a default value in the corresponding make routine. The rule
280 -- is that if the first line of the description of the field contains the
281 -- string "(set to xxx if", then a default value of xxx is provided for
282 -- this field in the corresponding Make_yyy routine.
283
284 -----------------------------------
285 -- Note on Body/Spec Terminology --
286 -----------------------------------
287
288 -- In informal discussions about Ada, it is customary to refer to package
289 -- and subprogram specs and bodies. However, this is not technically
290 -- correct, what is normally referred to as a spec or specification is in
291 -- fact a package declaration or subprogram declaration. We are careful in
292 -- GNAT to use the correct terminology and in particular, the full word
293 -- specification is never used as an incorrect substitute for declaration.
294 -- The structure and terminology used in the tree also reflects the grammar
295 -- and thus uses declaration and specification in the technically correct
296 -- manner.
297
298 -- However, there are contexts in which the informal terminology is useful.
299 -- We have the word "body" to refer to the Interp_Etype declared by the
300 -- declaration of a unit body, and in some contexts we need similar term to
301 -- refer to the entity declared by the package or subprogram declaration,
302 -- and simply using declaration can be confusing since the body also has a
303 -- declaration.
304
305 -- An example of such a context is the link between the package body and
306 -- its declaration. With_Declaration is confusing, since the package body
307 -- itself is a declaration.
308
309 -- To deal with this problem, we reserve the informal term Spec, i.e. the
310 -- popular abbreviation used in this context, to refer to the entity
311 -- declared by the package or subprogram declaration. So in the above
312 -- example case, the field in the body is called With_Spec.
313
314 -- Another important context for the use of the word Spec is in error
315 -- messages, where a hyper-correct use of declaration would be confusing to
316 -- a typical Ada programmer, and even for an expert programmer can cause
317 -- confusion since the body has a declaration as well.
318
319 -- So, to summarize:
320
321 -- Declaration always refers to the syntactic entity that is called
322 -- a declaration. In particular, subprogram declaration
323 -- and package declaration are used to describe the
324 -- syntactic entity that includes the semicolon.
325
326 -- Specification always refers to the syntactic entity that is called
327 -- a specification. In particular, the terms procedure
328 -- specification, function specification, package
329 -- specification, subprogram specification always refer
330 -- to the syntactic entity that has no semicolon.
331
332 -- Spec is an informal term, used to refer to the entity
333 -- that is declared by a task declaration, protected
334 -- declaration, generic declaration, subprogram
335 -- declaration or package declaration.
336
337 -- This convention is followed throughout the GNAT documentation
338 -- both internal and external, and in all error message text.
339
340 ------------------------
341 -- Internal Use Nodes --
342 ------------------------
343
344 -- These are Node_Kind settings used in the internal implementation which
345 -- are not logically part of the specification.
346
347 -- N_Unused_At_Start
348 -- Completely unused entry at the start of the enumeration type. This
349 -- is inserted so that no legitimate value is zero, which helps to get
350 -- better debugging behavior, since zero is a likely uninitialized value).
351
352 -- N_Unused_At_End
353 -- Completely unused entry at the end of the enumeration type. This is
354 -- handy so that arrays with Node_Kind as the index type have an extra
355 -- entry at the end (see for example the use of the Pchar_Pos_Array in
356 -- Treepr, where the extra entry provides the limit value when dealing with
357 -- the last used entry in the array).
358
359 -----------------------------------------
360 -- Note on the settings of Sloc fields --
361 -----------------------------------------
362
363 -- The Sloc field of nodes that come from the source is set by the parser.
364 -- For internal nodes, and nodes generated during expansion the Sloc is
365 -- usually set in the call to the constructor for the node. In general the
366 -- Sloc value chosen for an internal node is the Sloc of the source node
367 -- whose processing is responsible for the expansion. For example, the Sloc
368 -- of an inherited primitive operation is the Sloc of the corresponding
369 -- derived type declaration.
370
371 -- For the nodes of a generic instantiation, the Sloc value is encoded to
372 -- represent both the original Sloc in the generic unit, and the Sloc of
373 -- the instantiation itself. See Sinput.ads for details.
374
375 -- Subprogram instances create two callable entities: one is the visible
376 -- subprogram instance, and the other is an anonymous subprogram nested
377 -- within a wrapper package that contains the renamings for the actuals.
378 -- Both of these entities have the Sloc of the defining entity in the
379 -- instantiation node. This simplifies some ASIS queries.
380
381 -----------------------
382 -- Field Definitions --
383 -----------------------
384
385 -- In the following node definitions, all fields, both syntactic and
386 -- semantic, are documented. The one exception is in the case of entities
387 -- (defining identifiers, character literals and operator symbols), where
388 -- the usage of the fields depends on the entity kind. Entity fields are
389 -- fully documented in the separate package Einfo.
390
391 -- In the node definitions, three common sets of fields are abbreviated to
392 -- save both space in the documentation, and also space in the string
393 -- (defined in Tree_Print_Strings) used to print trees. The following
394 -- abbreviations are used:
395
396 -- Note: the utility program that creates the Treeprs spec (in the file
397 -- xtreeprs.adb) knows about the special fields here, so it must be
398 -- modified if any change is made to these fields.
399
400 -- "plus fields for binary operator"
401 -- Chars (Name1) Name_Id for the operator
402 -- Left_Opnd (Node2) left operand expression
403 -- Right_Opnd (Node3) right operand expression
404 -- Entity (Node4-Sem) defining entity for operator
405 -- Associated_Node (Node4-Sem) for generic processing
406 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
407 -- Has_Private_View (Flag11-Sem) set in generic units.
408
409 -- "plus fields for unary operator"
410 -- Chars (Name1) Name_Id for the operator
411 -- Right_Opnd (Node3) right operand expression
412 -- Entity (Node4-Sem) defining entity for operator
413 -- Associated_Node (Node4-Sem) for generic processing
414 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
415 -- Has_Private_View (Flag11-Sem) set in generic units.
416
417 -- "plus fields for expression"
418 -- Paren_Count number of parentheses levels
419 -- Etype (Node5-Sem) type of the expression
420 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
421 -- Is_Static_Expression (Flag6-Sem) set for static expression
422 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
423 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
424 -- Do_Range_Check (Flag9-Sem) set if a range check needed
425 -- Assignment_OK (Flag15-Sem) set if modification is OK
426 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
427
428 -- Note: see under (EXPRESSION) for further details on the use of
429 -- the Paren_Count field to record the number of parentheses levels.
430
431 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
432 -- The actual definition of this type is given later (the reason for this
433 -- is that we want the descriptions ordered by logical chapter in the RM,
434 -- but the type definition is reordered to facilitate the definition of
435 -- some subtype ranges. The individual descriptions of the nodes show how
436 -- the various fields are used in each node kind, as well as providing
437 -- logical names for the fields. Functions and procedures are provided for
438 -- accessing and setting these fields using these logical names.
439
440 -----------------------
441 -- Gigi Restrictions --
442 -----------------------
443
444 -- The tree passed to Gigi is more restricted than the general tree form.
445 -- For example, as a result of expansion, most of the tasking nodes can
446 -- never appear. For each node to which either a complete or partial
447 -- restriction applies, a note entitled "Gigi restriction" appears which
448 -- documents the restriction.
449
450 -- Note that most of these restrictions apply only to trees generated when
451 -- code is being generated, since they involved expander actions that
452 -- destroy the tree.
453
454 ------------------------
455 -- Common Flag Fields --
456 ------------------------
457
458 -- The following flag fields appear in all nodes
459
460 -- Analyzed (Flag1)
461 -- This flag is used to indicate that a node (and all its children have
462 -- been analyzed. It is used to avoid reanalysis of a node that has
463 -- already been analyzed, both for efficiency and functional correctness
464 -- reasons.
465
466 -- Comes_From_Source (Flag2)
467 -- This flag is on for any nodes built by the scanner or parser from the
468 -- source program, and off for any nodes built by the analyzer or
469 -- expander. It indicates that a node comes from the original source.
470 -- This flag is defined in Atree.
471
472 -- Error_Posted (Flag3)
473 -- This flag is used to avoid multiple error messages being posted on or
474 -- referring to the same node. This flag is set if an error message
475 -- refers to a node or is posted on its source location, and has the
476 -- effect of inhibiting further messages involving this same node.
477
478 -- Has_Dynamic_Length_Check (Flag10-Sem)
479 -- This flag is present on all nodes. It is set to indicate that one of
480 -- the routines in unit Checks has generated a length check action which
481 -- has been inserted at the flagged node. This is used to avoid the
482 -- generation of duplicate checks.
483
484 -- Has_Dynamic_Range_Check (Flag12-Sem)
485 -- This flag is present on all nodes. It is set to indicate that one of
486 -- the routines in unit Checks has generated a range check action which
487 -- has been inserted at the flagged node. This is used to avoid the
488 -- generation of duplicate checks.
489
490 -- Has_Local_Raise (Flag8-Sem)
491 -- Present in exception handler nodes. Set if the handler can be entered
492 -- via a local raise that gets transformed to a goto statement. This will
493 -- always be set if Local_Raise_Statements is non-empty, but can also be
494 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
495 -- nodes requiring generation of back end checks.
496
497 ------------------------------------
498 -- Description of Semantic Fields --
499 ------------------------------------
500
501 -- The meaning of the syntactic fields is generally clear from their names
502 -- without any further description, since the names are chosen to
503 -- correspond very closely to the syntax in the reference manual. This
504 -- section describes the usage of the semantic fields, which are used to
505 -- contain additional information determined during semantic analysis.
506
507 -- ABE_Is_Certain (Flag18-Sem)
508 -- This flag is set in an instantiation node or a call node is determined
509 -- to be sure to raise an ABE. This is used to trigger special handling
510 -- of such cases, particularly in the instantiation case where we avoid
511 -- instantiating the body if this flag is set. This flag is also present
512 -- in an N_Formal_Package_Declaration_Node since formal package
513 -- declarations are treated like instantiations, but it is always set to
514 -- False in this context.
515
516 -- Accept_Handler_Records (List5-Sem)
517 -- This field is present only in an N_Accept_Alternative node. It is used
518 -- to temporarily hold the exception handler records from an accept
519 -- statement in a selective accept. These exception handlers will
520 -- eventually be placed in the Handler_Records list of the procedure
521 -- built for this accept (see Expand_N_Selective_Accept procedure in
522 -- Exp_Ch9 for further details).
523
524 -- Access_Types_To_Process (Elist2-Sem)
525 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
526 -- Contains the list of access types which may require specific treatment
527 -- when the nature of the type completion is completely known. An example
528 -- of such treatment is the generation of the associated_final_chain.
529
530 -- Actions (List1-Sem)
531 -- This field contains a sequence of actions that are associated with the
532 -- node holding the field. See the individual node types for details of
533 -- how this field is used, as well as the description of the specific use
534 -- for a particular node type.
535
536 -- Activation_Chain_Entity (Node3-Sem)
537 -- This is used in tree nodes representing task activators (blocks,
538 -- subprogram bodies, package declarations, and task bodies). It is
539 -- initially Empty, and then gets set to point to the entity for the
540 -- declared Activation_Chain variable when the first task is declared.
541 -- When tasks are declared in the corresponding declarative region this
542 -- entity is located by name (its name is always _Chain) and the declared
543 -- tasks are added to the chain. Note that N_Extended_Return_Statement
544 -- does not have this attribute, although it does have an activation
545 -- chain. This chain is used to store the tasks temporarily, and is not
546 -- used for activating them. On successful completion of the return
547 -- statement, the tasks are moved to the caller's chain, and the caller
548 -- activates them.
549
550 -- Acts_As_Spec (Flag4-Sem)
551 -- A flag set in the N_Subprogram_Body node for a subprogram body which
552 -- is acting as its own spec, except in the case of a library level
553 -- subprogram, in which case the flag is set on the parent compilation
554 -- unit node instead (see further description in spec of Lib package).
555 -- ??? Above note about Lib is dubious since lib.ads does not mention
556 -- Acts_As_Spec at all.
557
558 -- Actual_Designated_Subtype (Node4-Sem)
559 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
560 -- needs to known the dynamic constrained subtype of the designated
561 -- object, this attribute is set to that type. This is done for
562 -- N_Free_Statements for access-to-classwide types and access to
563 -- unconstrained packed array types, and for N_Explicit_Dereference when
564 -- the designated type is an unconstrained packed array and the
565 -- dereference is the prefix of a 'Size attribute reference.
566
567 -- Address_Warning_Posted (Flag18-Sem)
568 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
569 -- posted a warning for the address clause regarding size or alignment
570 -- issues. Used to inhibit multiple redundant messages.
571
572 -- Aggregate_Bounds (Node3-Sem)
573 -- Present in array N_Aggregate nodes. If the aggregate contains
574 -- component associations this field points to an N_Range node whose
575 -- bounds give the lowest and highest discrete choice values. If the
576 -- named aggregate contains a dynamic or null choice this field is empty.
577 -- If the aggregate contains positional elements this field points to an
578 -- N_Integer_Literal node giving the number of positional elements. Note
579 -- that if the aggregate contains positional elements and an other choice
580 -- the N_Integer_Literal only accounts for the number of positional
581 -- elements.
582
583 -- All_Others (Flag11-Sem)
584 -- Present in an N_Others_Choice node. This flag is set for an others
585 -- exception where all exceptions are to be caught, even those that are
586 -- not normally handled (in particular the tasking abort signal). This
587 -- is used for translation of the at end handler into a normal exception
588 -- handler.
589
590 -- Assignment_OK (Flag15-Sem)
591 -- This flag is set in a subexpression node for an object, indicating
592 -- that the associated object can be modified, even if this would not
593 -- normally be permissible (either by direct assignment, or by being
594 -- passed as an out or in-out parameter). This is used by the expander
595 -- for a number of purposes, including initialization of constants and
596 -- limited type objects (such as tasks), setting discriminant fields,
597 -- setting tag values, etc. N_Object_Declaration nodes also have this
598 -- flag defined. Here it is used to indicate that an initialization
599 -- expression is valid, even where it would normally not be allowed
600 -- (e.g. where the type involved is limited).
601
602 -- Associated_Node (Node4-Sem)
603 -- Present in nodes that can denote an entity: identifiers, character
604 -- literals, operator symbols, expanded names, operator nodes, and
605 -- attribute reference nodes (all these nodes have an Entity field).
606 -- This field is also present in N_Aggregate, N_Selected_Component, and
607 -- N_Extension_Aggregate nodes. This field is used in generic processing
608 -- to create links between the generic template and the generic copy.
609 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
610 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
611 -- the normal function of Entity is not required at the point where the
612 -- Associated_Node is set. Note also, that in generic templates, this
613 -- means that the Entity field does not necessarily point to an Entity.
614 -- Since the back end is expected to ignore generic templates, this is
615 -- harmless.
616
617 -- At_End_Proc (Node1)
618 -- This field is present in an N_Handled_Sequence_Of_Statements node.
619 -- It contains an identifier reference for the cleanup procedure to be
620 -- called. See description of this node for further details.
621
622 -- Backwards_OK (Flag6-Sem)
623 -- A flag present in the N_Assignment_Statement node. It is used only
624 -- if the type being assigned is an array type, and is set if analysis
625 -- determines that it is definitely safe to do the copy backwards, i.e.
626 -- starting at the highest addressed element. Note that if neither of the
627 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
628 -- could not determine that either direction is definitely safe, and a
629 -- runtime check may be required if the backend cannot figure it out.
630
631 -- Body_To_Inline (Node3-Sem)
632 -- present in subprogram declarations. Denotes analyzed but unexpanded
633 -- body of subprogram, to be used when inlining calls. Present when the
634 -- subprogram has an Inline pragma and inlining is enabled. If the
635 -- declaration is completed by a renaming_as_body, and the renamed en-
636 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
637 -- which is used directly in later calls to the original subprogram.
638
639 -- Body_Required (Flag13-Sem)
640 -- A flag that appears in the N_Compilation_Unit node indicating that
641 -- the corresponding unit requires a body. For the package case, this
642 -- indicates that a completion is required. In Ada 95, if the flag is not
643 -- set for the package case, then a body may not be present. In Ada 83,
644 -- if the flag is not set for the package case, then body is optional.
645 -- For a subprogram declaration, the flag is set except in the case where
646 -- a pragma Import or Interface applies, in which case no body is
647 -- permitted (in Ada 83 or Ada 95).
648
649 -- By_Ref (Flag5-Sem)
650 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
651 -- this flag is set when the returned expression is already allocated on
652 -- the secondary stack and thus the result is passed by reference rather
653 -- than copied another time.
654
655 -- Check_Address_Alignment (Flag11-Sem)
656 -- A flag present in N_Attribute_Definition clause for a 'Address
657 -- attribute definition. This flag is set if a dynamic check should be
658 -- generated at the freeze point for the entity to which this address
659 -- clause applies. The reason that we need this flag is that we want to
660 -- check for range checks being suppressed at the point where the
661 -- attribute definition clause is given, rather than testing this at the
662 -- freeze point.
663
664 -- Coextensions (Elist4-Sem)
665 -- Present in allocators nodes. Points to list of allocators for the
666 -- access discriminants of the allocated object.
667
668 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
669 -- Present in N_Simple_Return_Statement nodes. True if this node was
670 -- constructed as part of the N_Extended_Return_Statement expansion.
671 -- .
672
673 -- Compile_Time_Known_Aggregate (Flag18-Sem)
674 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
675 -- evaluated at compile time without raising constraint error. Such
676 -- aggregates can be passed as is to Gigi without any expansion. See
677 -- Sem_Aggr for the specific conditions under which an aggregate has this
678 -- flag set. See also the flag Static_Processing_OK.
679
680 -- Condition_Actions (List3-Sem)
681 -- This field appears in else-if nodes and in the iteration scheme node
682 -- for while loops. This field is only used during semantic processing to
683 -- temporarily hold actions inserted into the tree. In the tree passed
684 -- to gigi, the condition actions field is always set to No_List. For
685 -- details on how this field is used, see the routine Insert_Actions in
686 -- package Exp_Util, and also the expansion routines for the relevant
687 -- nodes.
688
689 -- Controlling_Argument (Node1-Sem)
690 -- This field is set in procedure and function call nodes if the call
691 -- is a dispatching call (it is Empty for a non-dispatching call). It
692 -- indicates the source of the call's controlling tag. For procedure
693 -- calls, the Controlling_Argument is one of the actuals. For function
694 -- that has a dispatching result, it is an entity in the context of the
695 -- call that can provide a tag, or else it is the tag of the root type
696 -- of the class. It can also specify a tag directly rather than being a
697 -- tagged object. The latter is needed by the implementations of AI-239
698 -- and AI-260.
699
700 -- Conversion_OK (Flag14-Sem)
701 -- A flag set on type conversion nodes to indicate that the conversion
702 -- is to be considered as being valid, even though it is the case that
703 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
704 -- Fixed_Value and Integer_Value, for internal conversions done for
705 -- fixed-point operations, and for certain conversions for calls to
706 -- initialization procedures. If Conversion_OK is set, then Etype must be
707 -- set (the analyzer assumes that Etype has been set). For the case of
708 -- fixed-point operands, it also indicates that the conversion is to be
709 -- direct conversion of the underlying integer result, with no regard to
710 -- the small operand.
711
712 -- Corresponding_Body (Node5-Sem)
713 -- This field is set in subprogram declarations, package declarations,
714 -- entry declarations of protected types, and in generic units. It
715 -- points to the defining entity for the corresponding body (NOT the
716 -- node for the body itself).
717
718 -- Corresponding_Formal_Spec (Node3-Sem)
719 -- This field is set in subprogram renaming declarations, where it points
720 -- to the defining entity for a formal subprogram in the case where the
721 -- renaming corresponds to a generic formal subprogram association in an
722 -- instantiation. The field is Empty if the renaming does not correspond
723 -- to such a formal association.
724
725 -- Corresponding_Generic_Association (Node5-Sem)
726 -- This field is defined for object declarations and object renaming
727 -- declarations. It is set for the declarations within an instance that
728 -- map generic formals to their actuals. If set, the field points to
729 -- a generic_association which is the original parent of the expression
730 -- or name appearing in the declaration. This simplifies ASIS queries.
731
732 -- Corresponding_Integer_Value (Uint4-Sem)
733 -- This field is set in real literals of fixed-point types (it is not
734 -- used for floating-point types). It contains the integer value used
735 -- to represent the fixed-point value. It is also set on the universal
736 -- real literals used to represent bounds of fixed-point base types
737 -- and their first named subtypes.
738
739 -- Corresponding_Spec (Node5-Sem)
740 -- This field is set in subprogram, package, task, and protected body
741 -- nodes, where it points to the defining entity in the corresponding
742 -- spec. The attribute is also set in N_With_Clause nodes where it points
743 -- to the defining entity for the with'ed spec, and in a subprogram
744 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
745 -- if there is no corresponding spec, as in the case of a subprogram body
746 -- that serves as its own spec.
747
748 -- Corresponding_Stub (Node3-Sem)
749 -- This field is present in an N_Subunit node. It holds the node in
750 -- the parent unit that is the stub declaration for the subunit. It is
751 -- set when analysis of the stub forces loading of the proper body. If
752 -- expansion of the proper body creates new declarative nodes, they are
753 -- inserted at the point of the corresponding_stub.
754
755 -- Dcheck_Function (Node5-Sem)
756 -- This field is present in an N_Variant node, It references the entity
757 -- for the discriminant checking function for the variant.
758
759 -- Debug_Statement (Node3)
760 -- This field is present in an N_Pragma node. It is used only for a Debug
761 -- pragma. The parameter is of the form of an expression, as required by
762 -- the pragma syntax, but is actually a procedure call. To simplify
763 -- semantic processing, the parser creates a copy of the argument
764 -- rearranged into a procedure call statement and places it in the
765 -- Debug_Statement field. Note that this field is considered syntactic
766 -- field, since it is created by the parser.
767
768 -- Default_Expression (Node5-Sem)
769 -- This field is Empty if there is no default expression. If there is a
770 -- simple default expression (one with no side effects), then this field
771 -- simply contains a copy of the Expression field (both point to the tree
772 -- for the default expression). Default_Expression is used for
773 -- conformance checking.
774
775 -- Discr_Check_Funcs_Built (Flag11-Sem)
776 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
777 -- discriminant checking functions are constructed. The purpose is to
778 -- avoid attempting to set these functions more than once.
779
780 -- Do_Accessibility_Check (Flag13-Sem)
781 -- This flag is set on N_Parameter_Specification nodes to indicate
782 -- that an accessibility check is required for the parameter. It is
783 -- not yet decided who takes care of this check (TBD ???).
784
785 -- Do_Discriminant_Check (Flag13-Sem)
786 -- This flag is set on N_Selected_Component nodes to indicate that a
787 -- discriminant check is required using the discriminant check routine
788 -- associated with the selector. The actual check is generated by the
789 -- expander when processing selected components.
790
791 -- Do_Division_Check (Flag13-Sem)
792 -- This flag is set on a division operator (/ mod rem) to indicate
793 -- that a zero divide check is required. The actual check is dealt
794 -- with by the backend (all the front end does is to set the flag).
795
796 -- Do_Length_Check (Flag4-Sem)
797 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
798 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
799 -- is required. It is not determined who deals with this flag (???).
800
801 -- Do_Overflow_Check (Flag17-Sem)
802 -- This flag is set on an operator where an overflow check is required on
803 -- the operation. The actual check is dealt with by the backend (all the
804 -- front end does is to set the flag). The other cases where this flag is
805 -- used is on a Type_Conversion node and for attribute reference nodes.
806 -- For a type conversion, it means that the conversion is from one base
807 -- type to another, and the value may not fit in the target base type.
808 -- See also the description of Do_Range_Check for this case. The only
809 -- attribute references which use this flag are Pred and Succ, where it
810 -- means that the result should be checked for going outside the base
811 -- range.
812
813 -- Do_Range_Check (Flag9-Sem)
814 -- This flag is set on an expression which appears in a context where a
815 -- range check is required. The target type is clear from the context.
816 -- The contexts in which this flag can appear are the following:
817
818 -- Right side of an assignment. In this case the target type is
819 -- taken from the left side of the assignment, which is referenced
820 -- by the Name of the N_Assignment_Statement node.
821
822 -- Subscript expressions in an indexed component. In this case the
823 -- target type is determined from the type of the array, which is
824 -- referenced by the Prefix of the N_Indexed_Component node.
825
826 -- Argument expression for a parameter, appearing either directly in
827 -- the Parameter_Associations list of a call or as the Expression of an
828 -- N_Parameter_Association node that appears in this list. In either
829 -- case, the check is against the type of the formal. Note that the
830 -- flag is relevant only in IN and IN OUT parameters, and will be
831 -- ignored for OUT parameters, where no check is required in the call,
832 -- and if a check is required on the return, it is generated explicitly
833 -- with a type conversion.
834
835 -- Initialization expression for the initial value in an object
836 -- declaration. In this case the Do_Range_Check flag is set on
837 -- the initialization expression, and the check is against the
838 -- range of the type of the object being declared.
839
840 -- The expression of a type conversion. In this case the range check is
841 -- against the target type of the conversion. See also the use of
842 -- Do_Overflow_Check on a type conversion. The distinction is that the
843 -- overflow check protects against a value that is outside the range of
844 -- the target base type, whereas a range check checks that the
845 -- resulting value (which is a value of the base type of the target
846 -- type), satisfies the range constraint of the target type.
847
848 -- Note: when a range check is required in contexts other than those
849 -- listed above (e.g. in a return statement), an additional type
850 -- conversion node is introduced to represent the required check.
851
852 -- Do_Storage_Check (Flag17-Sem)
853 -- This flag is set in an N_Allocator node to indicate that a storage
854 -- check is required for the allocation, or in an N_Subprogram_Body node
855 -- to indicate that a stack check is required in the subprogram prolog.
856 -- The N_Allocator case is handled by the routine that expands the call
857 -- to the runtime routine. The N_Subprogram_Body case is handled by the
858 -- backend, and all the semantics does is set the flag.
859
860 -- Do_Tag_Check (Flag13-Sem)
861 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
862 -- N_Procedure_Call_Statement, N_Type_Conversion,
863 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
864 -- node to indicate that the tag check can be suppressed. It is not
865 -- yet decided how this flag is used (TBD ???).
866
867 -- Elaborate_Present (Flag4-Sem)
868 -- This flag is set in the N_With_Clause node to indicate that pragma
869 -- Elaborate pragma appears for the with'ed units.
870
871 -- Elaborate_All_Desirable (Flag9-Sem)
872 -- This flag is set in the N_With_Clause mode to indicate that the static
873 -- elaboration processing has determined that an Elaborate_All pragma is
874 -- desirable for correct elaboration for this unit.
875
876 -- Elaborate_All_Present (Flag14-Sem)
877 -- This flag is set in the N_With_Clause node to indicate that a
878 -- pragma Elaborate_All pragma appears for the with'ed units.
879
880 -- Elaborate_Desirable (Flag11-Sem)
881 -- This flag is set in the N_With_Clause mode to indicate that the static
882 -- elaboration processing has determined that an Elaborate pragma is
883 -- desirable for correct elaboration for this unit.
884
885 -- Elaboration_Boolean (Node2-Sem)
886 -- This field is present in function and procedure specification nodes.
887 -- If set, it points to the entity for a Boolean flag that must be tested
888 -- for certain calls to check for access before elaboration. See body of
889 -- Sem_Elab for further details. This field is Empty if no elaboration
890 -- boolean is required.
891
892 -- Else_Actions (List3-Sem)
893 -- This field is present in conditional expression nodes. During code
894 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
895 -- actions at an appropriate place in the tree to get elaborated at the
896 -- right time. For conditional expressions, we have to be sure that the
897 -- actions for the Else branch are only elaborated if the condition is
898 -- False. The Else_Actions field is used as a temporary parking place for
899 -- these actions. The final tree is always rewritten to eliminate the
900 -- need for this field, so in the tree passed to Gigi, this field is
901 -- always set to No_List.
902
903 -- Enclosing_Variant (Node2-Sem)
904 -- This field is present in the N_Variant node and identifies the Node_Id
905 -- corresponding to the immediately enclosing variant when the variant is
906 -- nested, and N_Empty otherwise. Set during semantic processing of the
907 -- variant part of a record type.
908
909 -- Entity (Node4-Sem)
910 -- Appears in all direct names (identifiers, character literals, and
911 -- operator symbols), as well as expanded names, and attributes that
912 -- denote entities, such as 'Class. Points to entity for corresponding
913 -- defining occurrence. Set after name resolution. For identifiers in a
914 -- WITH list, the corresponding defining occurrence is in a separately
915 -- compiled file, and Entity must be set by the library Load procedure.
916 --
917 -- Note: During name resolution, the value in Entity may be temporarily
918 -- incorrect (e.g. during overload resolution, Entity is initially set to
919 -- the first possible correct interpretation, and then later modified if
920 -- necessary to contain the correct value after resolution).
921 --
922 -- Note: This field overlaps Associated_Node, which is used during
923 -- generic processing (see Sem_Ch12 for details). Note also that in
924 -- generic templates, this means that the Entity field does not always
925 -- point to an Entity. Since the back end is expected to ignore generic
926 -- templates, this is harmless.
927 --
928 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
929 -- It is used only for stream attributes definition clauses. In this
930 -- case, it denotes a (possibly dummy) subprogram entity that is declared
931 -- conceptually at the point of the clause. Thus the visibility of the
932 -- attribute definition clause (in the sense of 8.3(23) as amended by
933 -- AI-195) can be checked by testing the visibility of that subprogram.
934 --
935 -- Note: Normally the Entity field of an identifier points to the entity
936 -- for the corresponding defining identifier, and hence the Chars field
937 -- of an identifier will match the Chars field of the entity. However,
938 -- there is no requirement that these match, and there are obscure cases
939 -- of generated code where they do not match.
940
941 -- Entity_Or_Associated_Node (Node4-Sem)
942 -- A synonym for both Entity and Associated_Node. Used by convention in
943 -- the code when referencing this field in cases where it is not known
944 -- whether the field contains an Entity or an Associated_Node.
945
946 -- Etype (Node5-Sem)
947 -- Appears in all expression nodes, all direct names, and all entities.
948 -- Points to the entity for the related type. Set after type resolution.
949 -- Normally this is the actual subtype of the expression. However, in
950 -- certain contexts such as the right side of an assignment, subscripts,
951 -- arguments to calls, returned value in a function, initial value etc.
952 -- it is the desired target type. In the event that this is different
953 -- from the actual type, the Do_Range_Check flag will be set if a range
954 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
955 -- points to an essentially arbitrary choice from the possible set of
956 -- types.
957
958 -- Exception_Junk (Flag8-Sem)
959 -- This flag is set in a various nodes appearing in a statement sequence
960 -- to indicate that the corresponding node is an artifact of the
961 -- generated code for exception handling, and should be ignored when
962 -- analyzing the control flow of the relevant sequence of statements
963 -- (e.g. to check that it does not end with a bad return statement).
964
965 -- Exception_Label (Node5-Sem)
966 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
967 -- to be used for transforming the corresponding exception into a goto,
968 -- or contains Empty, if this exception is not to be transformed. Also
969 -- appears in N_Exception_Handler nodes, where, if set, it indicates
970 -- that there may be a local raise for the handler, so that expansion
971 -- to allow a goto is required (and this field contains the label for
972 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
973
974 -- Expansion_Delayed (Flag11-Sem)
975 -- Set on aggregates and extension aggregates that need a top-down rather
976 -- than bottom up expansion. Typically aggregate expansion happens bottom
977 -- up. For nested aggregates the expansion is delayed until the enclosing
978 -- aggregate itself is expanded, e.g. in the context of a declaration. To
979 -- delay it we set this flag. This is done to avoid creating a temporary
980 -- for each level of a nested aggregates, and also to prevent the
981 -- premature generation of constraint checks. This is also a requirement
982 -- if we want to generate the proper attachment to the internal
983 -- finalization lists (for record with controlled components). Top down
984 -- expansion of aggregates is also used for in-place array aggregate
985 -- assignment or initialization. When the full context is known, the
986 -- target of the assignment or initialization is used to generate the
987 -- left-hand side of individual assignment to each sub-component.
988
989 -- First_Inlined_Subprogram (Node3-Sem)
990 -- Present in the N_Compilation_Unit node for the main program. Points
991 -- to a chain of entities for subprograms that are to be inlined. The
992 -- Next_Inlined_Subprogram field of these entities is used as a link
993 -- pointer with Empty marking the end of the list. This field is Empty
994 -- if there are no inlined subprograms or inlining is not active.
995
996 -- First_Named_Actual (Node4-Sem)
997 -- Present in procedure call statement and function call nodes, and also
998 -- in Intrinsic nodes. Set during semantic analysis to point to the first
999 -- named parameter where parameters are ordered by declaration order (as
1000 -- opposed to the actual order in the call which may be different due to
1001 -- named associations). Note: this field points to the explicit actual
1002 -- parameter itself, not the N_Parameter_Association node (its parent).
1003
1004 -- First_Real_Statement (Node2-Sem)
1005 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1006 -- Empty. Used only when declarations are moved into the statement part
1007 -- of a construct as a result of wrapping an AT END handler that is
1008 -- required to cover the declarations. In this case, this field is used
1009 -- to remember the location in the statements list of the first real
1010 -- statement, i.e. the statement that used to be first in the statement
1011 -- list before the declarations were prepended.
1012
1013 -- First_Subtype_Link (Node5-Sem)
1014 -- Present in N_Freeze_Entity node for an anonymous base type that is
1015 -- implicitly created by the declaration of a first subtype. It points
1016 -- to the entity for the first subtype.
1017
1018 -- Float_Truncate (Flag11-Sem)
1019 -- A flag present in type conversion nodes. This is used for float to
1020 -- integer conversions where truncation is required rather than rounding.
1021 -- Note that Gigi does not handle type conversions from real to integer
1022 -- with rounding (see Expand_N_Type_Conversion).
1023
1024 -- Forwards_OK (Flag5-Sem)
1025 -- A flag present in the N_Assignment_Statement node. It is used only
1026 -- if the type being assigned is an array type, and is set if analysis
1027 -- determines that it is definitely safe to do the copy forwards, i.e.
1028 -- starting at the lowest addressed element. Note that if neither of the
1029 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1030 -- could not determine that either direction is definitely safe, and a
1031 -- runtime check is required.
1032
1033 -- From_At_End (Flag4-Sem)
1034 -- This flag is set on an N_Raise_Statement node if it corresponds to
1035 -- the reraise statement generated as the last statement of an AT END
1036 -- handler when SJLJ exception handling is active. It is used to stop
1037 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1038 -- because if the restriction is set, the reraise is not generated.
1039
1040 -- From_At_Mod (Flag4-Sem)
1041 -- This flag is set on the attribute definition clause node that is
1042 -- generated by a transformation of an at mod phrase in a record
1043 -- representation clause. This is used to give slightly different (Ada 83
1044 -- compatible) semantics to such a clause, namely it is used to specify a
1045 -- minimum acceptable alignment for the base type and all subtypes. In
1046 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1047 -- must be a multiple of the given value, and the representation clause
1048 -- is considered to be type specific instead of subtype specific.
1049
1050 -- From_Default (Flag6-Sem)
1051 -- This flag is set on the subprogram renaming declaration created in an
1052 -- instance for a formal subprogram, when the formal is declared with a
1053 -- box, and there is no explicit actual. If the flag is present, the
1054 -- declaration is treated as an implicit reference to the formal in the
1055 -- ali file.
1056
1057 -- Generic_Parent (Node5-Sem)
1058 -- Generic_Parent is defined on declaration nodes that are instances. The
1059 -- value of Generic_Parent is the generic entity from which the instance
1060 -- is obtained. Generic_Parent is also defined for the renaming
1061 -- declarations and object declarations created for the actuals in an
1062 -- instantiation. The generic parent of such a declaration is the
1063 -- corresponding generic association in the Instantiation node.
1064
1065 -- Generic_Parent_Type (Node4-Sem)
1066 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1067 -- actuals of formal private and derived types. Within the instance, the
1068 -- operations on the actual are those inherited from the parent. For a
1069 -- formal private type, the parent type is the generic type itself. The
1070 -- Generic_Parent_Type is also used in an instance to determine whether a
1071 -- private operation overrides an inherited one.
1072
1073 -- Handler_List_Entry (Node2-Sem)
1074 -- This field is present in N_Object_Declaration nodes. It is set only
1075 -- for the Handler_Record entry generated for an exception in zero cost
1076 -- exception handling mode. It references the corresponding item in the
1077 -- handler list, and is used to delete this entry if the corresponding
1078 -- handler is deleted during optimization. For further details on why
1079 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1080
1081 -- Has_No_Elaboration_Code (Flag17-Sem)
1082 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1083 -- or not elaboration code is present for this unit. It is initially set
1084 -- true for subprogram specs and bodies and for all generic units and
1085 -- false for non-generic package specs and bodies. Gigi may set the flag
1086 -- in the non-generic package case if it determines that no elaboration
1087 -- code is generated. Note that this flag is not related to the
1088 -- Is_Preelaborated status, there can be preelaborated packages that
1089 -- generate elaboration code, and non-preelaborated packages which do
1090 -- not generate elaboration code.
1091
1092 -- Has_Priority_Pragma (Flag6-Sem)
1093 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1094 -- N_Protected_Definition nodes to flag the presence of either a Priority
1095 -- or Interrupt_Priority pragma in the declaration sequence (public or
1096 -- private in the task and protected cases)
1097
1098 -- Has_Private_View (Flag11-Sem)
1099 -- A flag present in generic nodes that have an entity, to indicate that
1100 -- the node has a private type. Used to exchange private and full
1101 -- declarations if the visibility at instantiation is different from the
1102 -- visibility at generic definition.
1103
1104 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1105 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1106 -- flag the presence of a pragma Relative_Deadline.
1107
1108 -- Has_Self_Reference (Flag13-Sem)
1109 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1110 -- of the expressions contains an access attribute reference to the
1111 -- enclosing type. Such a self-reference can only appear in default-
1112 -- initialized aggregate for a record type.
1113
1114 -- Has_Storage_Size_Pragma (Flag5-Sem)
1115 -- A flag present in an N_Task_Definition node to flag the presence of a
1116 -- Storage_Size pragma.
1117
1118 -- Has_Task_Info_Pragma (Flag7-Sem)
1119 -- A flag present in an N_Task_Definition node to flag the presence of a
1120 -- Task_Info pragma. Used to detect duplicate pragmas.
1121
1122 -- Has_Task_Name_Pragma (Flag8-Sem)
1123 -- A flag present in N_Task_Definition nodes to flag the presence of a
1124 -- Task_Name pragma in the declaration sequence for the task.
1125
1126 -- Has_Wide_Character (Flag11-Sem)
1127 -- Present in string literals, set if any wide character (i.e. character
1128 -- code outside the Character range) appears in the string.
1129
1130 -- Hidden_By_Use_Clause (Elist4-Sem)
1131 -- An entity list present in use clauses that appear within
1132 -- instantiations. For the resolution of local entities, entities
1133 -- introduced by these use clauses have priority over global ones, and
1134 -- outer entities must be explicitly hidden/restored on exit.
1135
1136 -- Implicit_With (Flag16-Sem)
1137 -- This flag is set in the N_With_Clause node that is implicitly
1138 -- generated for runtime units that are loaded by the expander, and also
1139 -- for package System, if it is loaded implicitly by a use of the
1140 -- 'Address or 'Tag attribute.
1141
1142 -- Includes_Infinities (Flag11-Sem)
1143 -- This flag is present in N_Range nodes. It is set for the range of
1144 -- unconstrained float types defined in Standard, which include not only
1145 -- the given range of values, but also legitimately can include infinite
1146 -- values. This flag is false for any float type for which an explicit
1147 -- range is given by the programmer, even if that range is identical to
1148 -- the range for Float.
1149
1150 -- Instance_Spec (Node5-Sem)
1151 -- This field is present in generic instantiation nodes, and also in
1152 -- formal package declaration nodes (formal package declarations are
1153 -- treated in a manner very similar to package instantiations). It points
1154 -- to the node for the spec of the instance, inserted as part of the
1155 -- semantic processing for instantiations in Sem_Ch12.
1156
1157 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1158 -- A flag set in a Block_Statement node to indicate that it is the
1159 -- expansion of an asynchronous entry call. Such a block needs cleanup
1160 -- handler to assure that the call is cancelled.
1161
1162 -- Is_Component_Left_Opnd (Flag13-Sem)
1163 -- Is_Component_Right_Opnd (Flag14-Sem)
1164 -- Present in concatenation nodes, to indicate that the corresponding
1165 -- operand is of the component type of the result. Used in resolving
1166 -- concatenation nodes in instances.
1167
1168 -- Is_Controlling_Actual (Flag16-Sem)
1169 -- This flag is set on in an expression that is a controlling argument in
1170 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1171 -- details of its use.
1172
1173 -- Is_Dynamic_Coextension (Flag18-Sem)
1174 -- Present in allocator nodes, to indicate that this is an allocator
1175 -- for an access discriminant of a dynamically allocated object. The
1176 -- coextension must be deallocated and finalized at the same time as
1177 -- the enclosing object.
1178
1179 -- Is_Entry_Barrier_Function (Flag8-Sem)
1180 -- This flag is set in an N_Subprogram_Body node which is the expansion
1181 -- of an entry barrier from a protected entry body. It is used for the
1182 -- circuitry checking for incorrect use of Current_Task.
1183
1184 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1185 -- This flag is set in an N_Function_Call node to indicate that the extra
1186 -- actuals to support a build-in-place style of call have been added to
1187 -- the call.
1188
1189 -- Is_In_Discriminant_Check (Flag11-Sem)
1190 -- This flag is present in a selected component, and is used to indicate
1191 -- that the reference occurs within a discriminant check. The
1192 -- significance is that optimizations based on assuming that the
1193 -- discriminant check has a correct value cannot be performed in this
1194 -- case (or the discriminant check may be optimized away!)
1195
1196 -- Is_Machine_Number (Flag11-Sem)
1197 -- This flag is set in an N_Real_Literal node to indicate that the value
1198 -- is a machine number. This avoids some unnecessary cases of converting
1199 -- real literals to machine numbers.
1200
1201 -- Is_Null_Loop (Flag16-Sem)
1202 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1203 -- can be determined to be null at compile time. This is used to remove
1204 -- the loop entirely at expansion time.
1205
1206 -- Is_Overloaded (Flag5-Sem)
1207 -- A flag present in all expression nodes. Used temporarily during
1208 -- overloading determination. The setting of this flag is not relevant
1209 -- once overloading analysis is complete.
1210
1211 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1212 -- A flag present only in N_Op_Expon nodes. It is set when the
1213 -- exponentiation is of the form 2 ** N, where the type of N is an
1214 -- unsigned integral subtype whose size does not exceed the size of
1215 -- Standard_Integer (i.e. a type that can be safely converted to
1216 -- Natural), and the exponentiation appears as the right operand of an
1217 -- integer multiplication or an integer division where the dividend is
1218 -- unsigned. It is also required that overflow checking is off for both
1219 -- the exponentiation and the multiply/divide node. If this set of
1220 -- conditions holds, and the flag is set, then the division or
1221 -- multiplication can be (and is) converted to a shift.
1222
1223 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1224 -- A flag set in a Subprogram_Body block to indicate that it is the
1225 -- implementation of a protected subprogram. Such a body needs cleanup
1226 -- handler to make sure that the associated protected object is unlocked
1227 -- when the subprogram completes.
1228
1229 -- Is_Static_Coextension (Flag14-Sem)
1230 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1231 -- of an object allocated on the stack rather than the heap.
1232
1233 -- Is_Static_Expression (Flag6-Sem)
1234 -- Indicates that an expression is a static expression (RM 4.9). See spec
1235 -- of package Sem_Eval for full details on the use of this flag.
1236
1237 -- Is_Subprogram_Descriptor (Flag16-Sem)
1238 -- Present in N_Object_Declaration, and set only for the object
1239 -- declaration generated for a subprogram descriptor in fast exception
1240 -- mode. See Exp_Ch11 for details of use.
1241
1242 -- Is_Task_Allocation_Block (Flag6-Sem)
1243 -- A flag set in a Block_Statement node to indicate that it is the
1244 -- expansion of a task allocator, or the allocator of an object
1245 -- containing tasks. Such a block requires a cleanup handler to call
1246 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1247 -- allocated but not activated when the allocator completes abnormally.
1248
1249 -- Is_Task_Master (Flag5-Sem)
1250 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1251 -- indicate that the construct is a task master (i.e. has declared tasks
1252 -- or declares an access to a task type).
1253
1254 -- Itype (Node1-Sem)
1255 -- Used in N_Itype_Reference node to reference an itype for which it is
1256 -- important to ensure that it is defined. See description of this node
1257 -- for further details.
1258
1259 -- Kill_Range_Check (Flag11-Sem)
1260 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1261 -- result should not be subjected to range checks. This is used for the
1262 -- implementation of Normalize_Scalars.
1263
1264 -- Label_Construct (Node2-Sem)
1265 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1266 -- N_Block_Statement or N_Loop_Statement node to which the label
1267 -- declaration applies. This is not currently used in the compiler
1268 -- itself, but it is useful in the implementation of ASIS queries.
1269 -- This field is left empty for the special labels generated as part
1270 -- of expanding raise statements with a local exception handler.
1271
1272 -- Library_Unit (Node4-Sem)
1273 -- In a stub node, Library_Unit points to the compilation unit node of
1274 -- the corresponding subunit.
1275 --
1276 -- In a with clause node, Library_Unit points to the spec of the with'ed
1277 -- unit.
1278 --
1279 -- In a compilation unit node, the usage depends on the unit type:
1280 --
1281 -- For a subprogram body, Library_Unit points to the compilation unit
1282 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1283 -- case it points to itself.
1284 --
1285 -- For a package body, Library_Unit points to the compilation unit of
1286 -- the corresponding package spec.
1287 --
1288 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1289 -- points to the compilation unit node of the corresponding body, if
1290 -- inlining is active.
1291 --
1292 -- For a generic declaration, Library_Unit points to the compilation
1293 -- unit node of the corresponding generic body.
1294 --
1295 -- For a subunit, Library_Unit points to the compilation unit node of
1296 -- the parent body.
1297 --
1298 -- Note that this field is not used to hold the parent pointer for child
1299 -- unit (which might in any case need to use it for some other purpose as
1300 -- described above). Instead for a child unit, implicit with's are
1301 -- generated for all parents.
1302
1303 -- Local_Raise_Statements (Elist1)
1304 -- This field is present in exception handler nodes. It is set to
1305 -- No_Elist in the normal case. If there is at least one raise statement
1306 -- which can potentially be handled as a local raise, then this field
1307 -- points to a list of raise nodes, which are calls to a routine to raise
1308 -- an exception. These are raise nodes which can be optimized into gotos
1309 -- if the handler turns out to meet the conditions which permit this
1310 -- transformation. Note that this does NOT include instances of the
1311 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1312 -- handled by the back end (using the N_Push/N_Pop mechanism).
1313
1314 -- Loop_Actions (List2-Sem)
1315 -- A list present in Component_Association nodes in array aggregates.
1316 -- Used to collect actions that must be executed within the loop because
1317 -- they may need to be evaluated anew each time through.
1318
1319 -- Limited_View_Installed (Flag18-Sem)
1320 -- Present in With_Clauses and in package specifications. If set on
1321 -- with_clause, it indicates that this clause has created the current
1322 -- limited view of the designated package. On a package specification, it
1323 -- indicates that the limited view has already been created because the
1324 -- package is mentioned in a limited_with_clause in the closure of the
1325 -- unit being compiled.
1326
1327 -- Local_Raise_Not_OK (Flag7-Sem)
1328 -- Present in N_Exception_Handler nodes. Set if the handler contains
1329 -- a construct (reraise statement, or call to subprogram in package
1330 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1331 -- for a local raise (one that could otherwise be converted to a goto).
1332
1333 -- Must_Be_Byte_Aligned (Flag14-Sem)
1334 -- This flag is present in N_Attribute_Reference nodes. It can be set
1335 -- only for the Address and Unrestricted_Access attributes. If set it
1336 -- means that the object for which the address/access is given must be on
1337 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1338 -- of the object is to be made before taking the address (this copy is in
1339 -- the current scope on the stack frame). This is used for certain cases
1340 -- of code generated by the expander that passes parameters by address.
1341 --
1342 -- The reason the copy is not made by the front end is that the back end
1343 -- has more information about type layout and may be able to (but is not
1344 -- guaranteed to) prevent making unnecessary copies.
1345
1346 -- Must_Not_Freeze (Flag8-Sem)
1347 -- A flag present in all expression nodes. Normally expressions cause
1348 -- freezing as described in the RM. If this flag is set, then this is
1349 -- inhibited. This is used by the analyzer and expander to label nodes
1350 -- that are created by semantic analysis or expansion and which must not
1351 -- cause freezing even though they normally would. This flag is also
1352 -- present in an N_Subtype_Indication node, since we also use these in
1353 -- calls to Freeze_Expression.
1354
1355 -- Next_Entity (Node2-Sem)
1356 -- Present in defining identifiers, defining character literals and
1357 -- defining operator symbols (i.e. in all entities). The entities of a
1358 -- scope are chained, and this field is used as the forward pointer for
1359 -- this list. See Einfo for further details.
1360
1361 -- Next_Named_Actual (Node4-Sem)
1362 -- Present in parameter association node. Set during semantic analysis to
1363 -- point to the next named parameter, where parameters are ordered by
1364 -- declaration order (as opposed to the actual order in the call, which
1365 -- may be different due to named associations). Not that this field
1366 -- points to the explicit actual parameter itself, not to the
1367 -- N_Parameter_Association node (its parent).
1368
1369 -- Next_Pragma (Node1-Sem)
1370 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1371 -- nodes. Currently used for two purposes:
1372 --
1373 -- Create a list of linked Check_Policy pragmas. The head of this list
1374 -- is stored in Opt.Check_Policy_List (which has further details).
1375 --
1376 -- Used by processing for Pre/Postcondition pragmas to store a list of
1377 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1378 -- details).
1379
1380 -- Next_Rep_Item (Node5-Sem)
1381 -- Present in pragma nodes and attribute definition nodes. Used to link
1382 -- representation items that apply to an entity. See description of
1383 -- First_Rep_Item field in Einfo for full details.
1384
1385 -- Next_Use_Clause (Node3-Sem)
1386 -- While use clauses are active during semantic processing, they are
1387 -- chained from the scope stack entry, using Next_Use_Clause as a link
1388 -- pointer, with Empty marking the end of the list. The head pointer is
1389 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1390 -- processing (i.e. when Gigi sees the tree, the contents of this field
1391 -- is undefined and should not be read).
1392
1393 -- No_Ctrl_Actions (Flag7-Sem)
1394 -- Present in N_Assignment_Statement to indicate that no finalize nor
1395 -- adjust should take place on this assignment even though the rhs is
1396 -- controlled. This is used in init procs and aggregate expansions where
1397 -- the generated assignments are more initialisations than real
1398 -- assignments.
1399
1400 -- No_Elaboration_Check (Flag14-Sem)
1401 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1402 -- that no elaboration check is needed on the call, because it appears in
1403 -- the context of a local Suppress pragma. This is used on calls within
1404 -- task bodies, where the actual elaboration checks are applied after
1405 -- analysis, when the local scope stack is not present.
1406
1407 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1408 -- Present in N_With_Clause nodes. Set if the with clause is on the
1409 -- package or subprogram spec where the main unit is the corresponding
1410 -- body, and no entities of the with'ed unit are referenced by the spec
1411 -- (an entity may still be referenced in the body, so this flag is used
1412 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1413 -- full details)
1414
1415 -- No_Initialization (Flag13-Sem)
1416 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1417 -- object must not be initialized (by Initialize or call to an init
1418 -- proc). This is needed for controlled aggregates. When the Object
1419 -- declaration has an expression, this flag means that this expression
1420 -- should not be taken into account (needed for in place initialization
1421 -- with aggregates).
1422
1423 -- No_Truncation (Flag17-Sem)
1424 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1425 -- only if the RM_Size of the source is greater than the RM_Size of the
1426 -- target for scalar operands. Normally in such a case we truncate some
1427 -- higher order bits of the source, and then sign/zero extend the result
1428 -- to form the output value. But if this flag is set, then we do not do
1429 -- any truncation, so for example, if an 8 bit input is converted to 5
1430 -- bit result which is in fact stored in 8 bits, then the high order
1431 -- three bits of the target result will be copied from the source. This
1432 -- is used for properly setting out of range values for use by pragmas
1433 -- Initialize_Scalars and Normalize_Scalars.
1434
1435 -- Original_Discriminant (Node2-Sem)
1436 -- Present in identifiers. Used in references to discriminants that
1437 -- appear in generic units. Because the names of the discriminants may be
1438 -- different in an instance, we use this field to recover the position of
1439 -- the discriminant in the original type, and replace it with the
1440 -- discriminant at the same position in the instantiated type.
1441
1442 -- Original_Entity (Node2-Sem)
1443 -- Present in numeric literals. Used to denote the named number that has
1444 -- been constant-folded into the given literal. If literal is from
1445 -- source, or the result of some other constant-folding operation, then
1446 -- Original_Entity is empty. This field is needed to handle properly
1447 -- named numbers in generic units, where the Associated_Node field
1448 -- interferes with the Entity field, making it impossible to preserve the
1449 -- original entity at the point of instantiation (ASIS problem).
1450
1451 -- Others_Discrete_Choices (List1-Sem)
1452 -- When a case statement or variant is analyzed, the semantic checks
1453 -- determine the actual list of choices that correspond to an others
1454 -- choice. This list is materialized for later use by the expander and
1455 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1456 -- this materialized list of choices, which is in standard format for a
1457 -- list of discrete choices, except that of course it cannot contain an
1458 -- N_Others_Choice entry.
1459
1460 -- Parameter_List_Truncated (Flag17-Sem)
1461 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1462 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1463 -- a result of a First_Optional_Parameter specification in an
1464 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1465 -- The truncation is done by the expander by removing trailing parameters
1466 -- from the argument list, in accordance with the set of rules allowing
1467 -- such parameter removal. In particular, parameters can be removed
1468 -- working from the end of the parameter list backwards up to and
1469 -- including the entry designated by First_Optional_Parameter in the
1470 -- Import pragma. Parameters can be removed if they are implicit and the
1471 -- default value is a known-at-compile-time value, including the use of
1472 -- the Null_Parameter attribute, or if explicit parameter values are
1473 -- present that match the corresponding defaults.
1474
1475 -- Parent_Spec (Node4-Sem)
1476 -- For a library unit that is a child unit spec (package or subprogram
1477 -- declaration, generic declaration or instantiation, or library level
1478 -- rename, this field points to the compilation unit node for the parent
1479 -- package specification. This field is Empty for library bodies (the
1480 -- parent spec in this case can be found from the corresponding spec).
1481
1482 -- PPC_Enabled (Flag5-Sem)
1483 -- Present in N_Pragma nodes. This flag is relevant only for precondition
1484 -- and postcondition nodes. It is true if the check corresponding to the
1485 -- pragma type is enabled at the point where the pragma appears.
1486
1487 -- Present_Expr (Uint3-Sem)
1488 -- Present in an N_Variant node. This has a meaningful value only after
1489 -- Gigi has back annotated the tree with representation information. At
1490 -- this point, it contains a reference to a gcc expression that depends
1491 -- on the values of one or more discriminants. Give a set of discriminant
1492 -- values, this expression evaluates to False (zero) if variant is not
1493 -- present, and True (non-zero) if it is present. See unit Repinfo for
1494 -- further details on gigi back annotation. This field is used during
1495 -- ASIS processing (data decomposition annex) to determine if a field is
1496 -- present or not.
1497
1498 -- Print_In_Hex (Flag13-Sem)
1499 -- Set on an N_Integer_Literal node to indicate that the value should be
1500 -- printed in hexadecimal in the sprint listing. Has no effect on
1501 -- legality or semantics of program, only on the displayed output. This
1502 -- is used to clarify output from the packed array cases.
1503
1504 -- Procedure_To_Call (Node2-Sem)
1505 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1506 -- and N_Extended_Return_Statement nodes. References the entity for the
1507 -- declaration of the procedure to be called to accomplish the required
1508 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1509 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1510 -- allocating the return value), and for the Deallocate procedure in the
1511 -- case of N_Free_Statement.
1512
1513 -- Raises_Constraint_Error (Flag7-Sem)
1514 -- Set on an expression whose evaluation will definitely fail constraint
1515 -- error check. In the case of static expressions, this flag must be set
1516 -- accurately (and if it is set, the expression is typically illegal
1517 -- unless it appears as a non-elaborated branch of a short-circuit form).
1518 -- For a non-static expression, this flag may be set whenever an
1519 -- expression (e.g. an aggregate) is known to raise constraint error. If
1520 -- set, the expression definitely will raise CE if elaborated at runtime.
1521 -- If not set, the expression may or may not raise CE. In other words, on
1522 -- static expressions, the flag is set accurately, on non-static
1523 -- expressions it is set conservatively.
1524
1525 -- Redundant_Use (Flag13-Sem)
1526 -- Present in nodes that can appear as an operand in a use clause or use
1527 -- type clause (identifiers, expanded names, attribute references). Set
1528 -- to indicate that a use is redundant (and therefore need not be undone
1529 -- on scope exit).
1530
1531 -- Renaming_Exception (Node2-Sem)
1532 -- Present in N_Exception_Declaration node. Used to point back to the
1533 -- exception renaming for an exception declared within a subprogram.
1534 -- What happens is that an exception declared in a subprogram is moved
1535 -- to the library level with a unique name, and the original exception
1536 -- becomes a renaming. This link from the library level exception to the
1537 -- renaming declaration allows registering of the proper exception name.
1538
1539 -- Return_Statement_Entity (Node5-Sem)
1540 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1541 -- Points to an E_Return_Statement representing the return statement.
1542
1543 -- Return_Object_Declarations (List3)
1544 -- Present in N_Extended_Return_Statement.
1545 -- Points to a list initially containing a single
1546 -- N_Object_Declaration representing the return object.
1547 -- We use a list (instead of just a pointer to the object decl)
1548 -- because Analyze wants to insert extra actions on this list.
1549
1550 -- Rounded_Result (Flag18-Sem)
1551 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1552 -- Used in the fixed-point cases to indicate that the result must be
1553 -- rounded as a result of the use of the 'Round attribute. Also used for
1554 -- integer N_Op_Divide nodes to indicate that the result should be
1555 -- rounded to the nearest integer (breaking ties away from zero), rather
1556 -- than truncated towards zero as usual. These rounded integer operations
1557 -- are the result of expansion of rounded fixed-point divide, conversion
1558 -- and multiplication operations.
1559
1560 -- Scope (Node3-Sem)
1561 -- Present in defining identifiers, defining character literals and
1562 -- defining operator symbols (i.e. in all entities). The entities of a
1563 -- scope all use this field to reference the corresponding scope entity.
1564 -- See Einfo for further details.
1565
1566 -- Shift_Count_OK (Flag4-Sem)
1567 -- A flag present in shift nodes to indicate that the shift count is
1568 -- known to be in range, i.e. is in the range from zero to word length
1569 -- minus one. If this flag is not set, then the shift count may be
1570 -- outside this range, i.e. larger than the word length, and the code
1571 -- must ensure that such shift counts give the appropriate result.
1572
1573 -- Source_Type (Node1-Sem)
1574 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1575 -- source type entity for the unchecked conversion instantiation
1576 -- which gigi must do size validation for.
1577
1578 -- Static_Processing_OK (Flag4-Sem)
1579 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1580 -- flag is set, the full value of the aggregate can be determined at
1581 -- compile time and the aggregate can be passed as is to the back-end.
1582 -- In this event it is irrelevant whether this flag is set or not.
1583 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1584 -- Static_Processing_OK is set, the aggregate can (but need not) be
1585 -- converted into a compile time known aggregate by the expander. See
1586 -- Sem_Aggr for the specific conditions under which an aggregate has its
1587 -- Static_Processing_OK flag set.
1588
1589 -- Storage_Pool (Node1-Sem)
1590 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1591 -- and N_Extended_Return_Statement nodes. References the entity for the
1592 -- storage pool to be used for the allocate or free call or for the
1593 -- allocation of the returned value from function. Empty indicates that
1594 -- the global default pool is to be used. Note that in the case
1595 -- of a return statement, this field is set only if the function returns
1596 -- value of a type whose size is not known at compile time on the
1597 -- secondary stack.
1598
1599 -- Suppress_Loop_Warnings (Flag17-Sem)
1600 -- Used in N_Loop_Statement node to indicate that warnings within the
1601 -- body of the loop should be suppressed. This is set when the range
1602 -- of a FOR loop is known to be null, or is probably null (loop would
1603 -- only execute if invalid values are present).
1604
1605 -- Target_Type (Node2-Sem)
1606 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1607 -- type entity for the unchecked conversion instantiation which gigi must
1608 -- do size validation for.
1609
1610 -- Then_Actions (List3-Sem)
1611 -- This field is present in conditional expression nodes. During code
1612 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1613 -- actions at an appropriate place in the tree to get elaborated at the
1614 -- right time. For conditional expressions, we have to be sure that the
1615 -- actions for the Then branch are only elaborated if the condition is
1616 -- True. The Then_Actions field is used as a temporary parking place for
1617 -- these actions. The final tree is always rewritten to eliminate the
1618 -- need for this field, so in the tree passed to Gigi, this field is
1619 -- always set to No_List.
1620
1621 -- Treat_Fixed_As_Integer (Flag14-Sem)
1622 -- This flag appears in operator nodes for divide, multiply, mod and rem
1623 -- on fixed-point operands. It indicates that the operands are to be
1624 -- treated as integer values, ignoring small values. This flag is only
1625 -- set as a result of expansion of fixed-point operations. Typically a
1626 -- fixed-point multiplication in the source generates subsidiary
1627 -- multiplication and division operations that work with the underlying
1628 -- integer values and have this flag set. Note that this flag is not
1629 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1630 -- in these cases it is always the case that fixed is treated as integer.
1631 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1632 -- leave such nodes alone, and whoever makes them must set the correct
1633 -- Etype value.
1634
1635 -- TSS_Elist (Elist3-Sem)
1636 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1637 -- entries for each TSS (type support subprogram) associated with the
1638 -- frozen type. The elements of the list are the entities for the
1639 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1640 -- if there are no type support subprograms for the type or if the freeze
1641 -- node is not for a type.
1642
1643 -- Unreferenced_In_Spec (Flag7-Sem)
1644 -- Present in N_With_Clause nodes. Set if the with clause is on the
1645 -- package or subprogram spec where the main unit is the corresponding
1646 -- body, and is not referenced by the spec (it may still be referenced by
1647 -- the body, so this flag is used to generate the proper message (see
1648 -- Sem_Util.Check_Unused_Withs for details)
1649
1650 -- Was_Originally_Stub (Flag13-Sem)
1651 -- This flag is set in the node for a proper body that replaces stub.
1652 -- During the analysis procedure, stubs in some situations get rewritten
1653 -- by the corresponding bodies, and we set this flag to remember that
1654 -- this happened. Note that it is not good enough to rely on the use of
1655 -- Original_Node here because of the case of nested instantiations where
1656 -- the substituted node can be copied.
1657
1658 -- Zero_Cost_Handling (Flag5-Sem)
1659 -- This flag is set in all handled sequence of statement and exception
1660 -- handler nodes if exceptions are to be handled using the zero-cost
1661 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1662 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1663 -- to do for such a handler is simply to put the code in the handler
1664 -- somewhere. The front end has generated all necessary labels.
1665
1666 --------------------------------------------------
1667 -- Note on Use of End_Label and End_Span Fields --
1668 --------------------------------------------------
1669
1670 -- Several constructs have end lines:
1671
1672 -- Loop Statement end loop [loop_IDENTIFIER];
1673 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1674 -- Task Definition end [task_IDENTIFIER]
1675 -- Protected Definition end [protected_IDENTIFIER]
1676 -- Protected Body end [protected_IDENTIFIER]
1677
1678 -- Block Statement end [block_IDENTIFIER];
1679 -- Subprogram Body end [DESIGNATOR];
1680 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1681 -- Task Body end [task_IDENTIFIER];
1682 -- Accept Statement end [entry_IDENTIFIER]];
1683 -- Entry Body end [entry_IDENTIFIER];
1684
1685 -- If Statement end if;
1686 -- Case Statement end case;
1687
1688 -- Record Definition end record;
1689 -- Enumeration Definition );
1690
1691 -- The End_Label and End_Span fields are used to mark the locations of
1692 -- these lines, and also keep track of the label in the case where a label
1693 -- is present.
1694
1695 -- For the first group above, the End_Label field of the corresponding node
1696 -- is used to point to the label identifier. In the case where there is no
1697 -- label in the source, the parser supplies a dummy identifier (with
1698 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1699 -- marks the location of the token following the END token.
1700
1701 -- For the second group, the use of End_Label is similar, but the End_Label
1702 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1703 -- simply because in some cases there is no room in the parent node.
1704
1705 -- For the third group, there is never any label, and instead of using
1706 -- End_Label, we use the End_Span field which gives the location of the
1707 -- token following END, relative to the starting Sloc of the construct,
1708 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1709 -- following the End_Label.
1710
1711 -- The record definition case is handled specially, we treat it as though
1712 -- it required an optional label which is never present, and so the parser
1713 -- always builds a dummy identifier with Comes From Source set False. The
1714 -- reason we do this, rather than using End_Span in this case, is that we
1715 -- want to generate a cross-ref entry for the end of a record, since it
1716 -- represents a scope for name declaration purposes.
1717
1718 -- The enumeration definition case is handled in an exactly similar manner,
1719 -- building a dummy identifier to get a cross-reference.
1720
1721 -- Note: the reason we store the difference as a Uint, instead of storing
1722 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1723 -- distinguished from other types of values, and we count on all general
1724 -- use fields being self describing. To make things easier for clients,
1725 -- note that we provide function End_Location, and procedure
1726 -- Set_End_Location to allow access to the logical value (which is the
1727 -- Source_Ptr value for the end token).
1728
1729 ---------------------
1730 -- Syntactic Nodes --
1731 ---------------------
1732
1733 ---------------------
1734 -- 2.3 Identifier --
1735 ---------------------
1736
1737 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1738 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1739
1740 -- An IDENTIFIER shall not be a reserved word
1741
1742 -- In the Ada grammar identifiers are the bottom level tokens which have
1743 -- very few semantics. Actual program identifiers are direct names. If
1744 -- we were being 100% honest with the grammar, then we would have a node
1745 -- called N_Direct_Name which would point to an identifier. However,
1746 -- that's too many extra nodes, so we just use the N_Identifier node
1747 -- directly as a direct name, and it contains the expression fields and
1748 -- Entity field that correspond to its use as a direct name. In those
1749 -- few cases where identifiers appear in contexts where they are not
1750 -- direct names (pragmas, pragma argument associations, attribute
1751 -- references and attribute definition clauses), the Chars field of the
1752 -- node contains the Name_Id for the identifier name.
1753
1754 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1755 -- cases. First, an incorrect use of a reserved word as an identifier is
1756 -- diagnosed and then treated as a normal identifier. Second, an
1757 -- attribute designator of the form of a reserved word (access, delta,
1758 -- digits, range) is treated as an identifier.
1759
1760 -- Note: The set of letters that is permitted in an identifier depends
1761 -- on the character set in use. See package Csets for full details.
1762
1763 -- N_Identifier
1764 -- Sloc points to identifier
1765 -- Chars (Name1) contains the Name_Id for the identifier
1766 -- Entity (Node4-Sem)
1767 -- Associated_Node (Node4-Sem)
1768 -- Original_Discriminant (Node2-Sem)
1769 -- Redundant_Use (Flag13-Sem)
1770 -- Has_Private_View (Flag11-Sem) (set in generic units)
1771 -- plus fields for expression
1772
1773 --------------------------
1774 -- 2.4 Numeric Literal --
1775 --------------------------
1776
1777 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1778
1779 ----------------------------
1780 -- 2.4.1 Decimal Literal --
1781 ----------------------------
1782
1783 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1784
1785 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1786
1787 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1788
1789 -- Decimal literals appear in the tree as either integer literal nodes
1790 -- or real literal nodes, depending on whether a period is present.
1791
1792 -- Note: literal nodes appear as a result of direct use of literals
1793 -- in the source program, and also as the result of evaluating
1794 -- expressions at compile time. In the latter case, it is possible
1795 -- to construct real literals that have no syntactic representation
1796 -- using the standard literal format. Such literals are listed by
1797 -- Sprint using the notation [numerator / denominator].
1798
1799 -- Note: the value of an integer literal node created by the front end
1800 -- is never outside the range of values of the base type. However, it
1801 -- can be the case that the value is outside the range of the
1802 -- particular subtype. This happens in the case of integer overflows
1803 -- with checks suppressed.
1804
1805 -- N_Integer_Literal
1806 -- Sloc points to literal
1807 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1808 -- has been constant-folded into its literal value.
1809 -- Intval (Uint3) contains integer value of literal
1810 -- plus fields for expression
1811 -- Print_In_Hex (Flag13-Sem)
1812
1813 -- N_Real_Literal
1814 -- Sloc points to literal
1815 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1816 -- has been constant-folded into its literal value.
1817 -- Realval (Ureal3) contains real value of literal
1818 -- Corresponding_Integer_Value (Uint4-Sem)
1819 -- Is_Machine_Number (Flag11-Sem)
1820 -- plus fields for expression
1821
1822 --------------------------
1823 -- 2.4.2 Based Literal --
1824 --------------------------
1825
1826 -- BASED_LITERAL ::=
1827 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1828
1829 -- BASE ::= NUMERAL
1830
1831 -- BASED_NUMERAL ::=
1832 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1833
1834 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1835
1836 -- Based literals appear in the tree as either integer literal nodes
1837 -- or real literal nodes, depending on whether a period is present.
1838
1839 ----------------------------
1840 -- 2.5 Character Literal --
1841 ----------------------------
1842
1843 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1844
1845 -- N_Character_Literal
1846 -- Sloc points to literal
1847 -- Chars (Name1) contains the Name_Id for the identifier
1848 -- Char_Literal_Value (Uint2) contains the literal value
1849 -- Entity (Node4-Sem)
1850 -- Associated_Node (Node4-Sem)
1851 -- Has_Private_View (Flag11-Sem) set in generic units.
1852 -- plus fields for expression
1853
1854 -- Note: the Entity field will be missing (set to Empty) for character
1855 -- literals whose type is Standard.Wide_Character or Standard.Character
1856 -- or a type derived from one of these two. In this case the character
1857 -- literal stands for its own coding. The reason we take this irregular
1858 -- short cut is to avoid the need to build lots of junk defining
1859 -- character literal nodes.
1860
1861 -------------------------
1862 -- 2.6 String Literal --
1863 -------------------------
1864
1865 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1866
1867 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1868 -- single GRAPHIC_CHARACTER other than a quotation mark.
1869 --
1870 -- Is_Folded_In_Parser is True if the parser created this literal by
1871 -- folding a sequence of "&" operators. For example, if the source code
1872 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
1873 -- is set. This flag is needed because the parser doesn't know about
1874 -- visibility, so the folded result might be wrong, and semantic
1875 -- analysis needs to check for that.
1876
1877 -- N_String_Literal
1878 -- Sloc points to literal
1879 -- Strval (Str3) contains Id of string value
1880 -- Has_Wide_Character (Flag11-Sem)
1881 -- Is_Folded_In_Parser (Flag4)
1882 -- plus fields for expression
1883
1884 ------------------
1885 -- 2.7 Comment --
1886 ------------------
1887
1888 -- A COMMENT starts with two adjacent hyphens and extends up to the
1889 -- end of the line. A COMMENT may appear on any line of a program.
1890
1891 -- Comments are skipped by the scanner and do not appear in the tree.
1892 -- It is possible to reconstruct the position of comments with respect
1893 -- to the elements of the tree by using the source position (Sloc)
1894 -- pointers that appear in every tree node.
1895
1896 -----------------
1897 -- 2.8 Pragma --
1898 -----------------
1899
1900 -- PRAGMA ::= pragma IDENTIFIER
1901 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1902
1903 -- Note that a pragma may appear in the tree anywhere a declaration
1904 -- or a statement may appear, as well as in some other situations
1905 -- which are explicitly documented.
1906
1907 -- N_Pragma
1908 -- Sloc points to pragma identifier
1909 -- Next_Pragma (Node1-Sem)
1910 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1911 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1912 -- Pragma_Identifier (Node4)
1913 -- Next_Rep_Item (Node5-Sem)
1914 -- PPC_Enabled (Flag5-Sem)
1915
1916 -- Note: we should have a section on what pragmas are passed on to
1917 -- the back end to be processed. This section should note that pragma
1918 -- Psect_Object is always converted to Common_Object, but there are
1919 -- undoubtedly many other similar notes required ???
1920
1921 -- Note: a utility function Pragma_Name may be applied to pragma nodes
1922 -- to conveniently obtain the Chars field of the Pragma_Identifier.
1923
1924 --------------------------------------
1925 -- 2.8 Pragma Argument Association --
1926 --------------------------------------
1927
1928 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1929 -- [pragma_argument_IDENTIFIER =>] NAME
1930 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1931
1932 -- N_Pragma_Argument_Association
1933 -- Sloc points to first token in association
1934 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1935 -- Expression (Node3)
1936
1937 ------------------------
1938 -- 2.9 Reserved Word --
1939 ------------------------
1940
1941 -- Reserved words are parsed by the scanner, and returned as the
1942 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1943
1944 ----------------------------
1945 -- 3.1 Basic Declaration --
1946 ----------------------------
1947
1948 -- BASIC_DECLARATION ::=
1949 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1950 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1951 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1952 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1953 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1954 -- | GENERIC_INSTANTIATION
1955
1956 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1957 -- see further description in section on semantic nodes.
1958
1959 -- Also, in the tree that is constructed, a pragma may appear
1960 -- anywhere that a declaration may appear.
1961
1962 ------------------------------
1963 -- 3.1 Defining Identifier --
1964 ------------------------------
1965
1966 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1967
1968 -- A defining identifier is an entity, which has additional fields
1969 -- depending on the setting of the Ekind field. These additional
1970 -- fields are defined (and access subprograms declared) in package
1971 -- Einfo.
1972
1973 -- Note: N_Defining_Identifier is an extended node whose fields are
1974 -- deliberate layed out to match the layout of fields in an ordinary
1975 -- N_Identifier node allowing for easy alteration of an identifier
1976 -- node into a defining identifier node. For details, see procedure
1977 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1978
1979 -- N_Defining_Identifier
1980 -- Sloc points to identifier
1981 -- Chars (Name1) contains the Name_Id for the identifier
1982 -- Next_Entity (Node2-Sem)
1983 -- Scope (Node3-Sem)
1984 -- Etype (Node5-Sem)
1985
1986 -----------------------------
1987 -- 3.2.1 Type Declaration --
1988 -----------------------------
1989
1990 -- TYPE_DECLARATION ::=
1991 -- FULL_TYPE_DECLARATION
1992 -- | INCOMPLETE_TYPE_DECLARATION
1993 -- | PRIVATE_TYPE_DECLARATION
1994 -- | PRIVATE_EXTENSION_DECLARATION
1995
1996 ----------------------------------
1997 -- 3.2.1 Full Type Declaration --
1998 ----------------------------------
1999
2000 -- FULL_TYPE_DECLARATION ::=
2001 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2002 -- is TYPE_DEFINITION;
2003 -- | TASK_TYPE_DECLARATION
2004 -- | PROTECTED_TYPE_DECLARATION
2005
2006 -- The full type declaration node is used only for the first case. The
2007 -- second case (concurrent type declaration), is represented directly
2008 -- by a task type declaration or a protected type declaration.
2009
2010 -- N_Full_Type_Declaration
2011 -- Sloc points to TYPE
2012 -- Defining_Identifier (Node1)
2013 -- Discriminant_Specifications (List4) (set to No_List if none)
2014 -- Type_Definition (Node3)
2015 -- Discr_Check_Funcs_Built (Flag11-Sem)
2016
2017 ----------------------------
2018 -- 3.2.1 Type Definition --
2019 ----------------------------
2020
2021 -- TYPE_DEFINITION ::=
2022 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2023 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2024 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2025 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2026
2027 --------------------------------
2028 -- 3.2.2 Subtype Declaration --
2029 --------------------------------
2030
2031 -- SUBTYPE_DECLARATION ::=
2032 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2033
2034 -- The subtype indication field is set to Empty for subtypes
2035 -- declared in package Standard (Positive, Natural).
2036
2037 -- N_Subtype_Declaration
2038 -- Sloc points to SUBTYPE
2039 -- Defining_Identifier (Node1)
2040 -- Null_Exclusion_Present (Flag11)
2041 -- Subtype_Indication (Node5)
2042 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2043 -- Exception_Junk (Flag8-Sem)
2044
2045 -------------------------------
2046 -- 3.2.2 Subtype Indication --
2047 -------------------------------
2048
2049 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2050
2051 -- Note: if no constraint is present, the subtype indication appears
2052 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2053 -- node is used only if a constraint is present.
2054
2055 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2056 -- with the null-exclusion part (see AI-231), we had to introduce a new
2057 -- attribute in all the parents of subtype_indication nodes to indicate
2058 -- if the null-exclusion is present.
2059
2060 -- Note: the reason that this node has expression fields is that a
2061 -- subtype indication can appear as an operand of a membership test.
2062
2063 -- N_Subtype_Indication
2064 -- Sloc points to first token of subtype mark
2065 -- Subtype_Mark (Node4)
2066 -- Constraint (Node3)
2067 -- Etype (Node5-Sem)
2068 -- Must_Not_Freeze (Flag8-Sem)
2069
2070 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2071 -- reason for this redundancy is so that in a list of array index types,
2072 -- the Etype can be uniformly accessed to determine the subscript type.
2073 -- This means that no Itype is constructed for the actual subtype that
2074 -- is created by the subtype indication. If such an Itype is required,
2075 -- it is constructed in the context in which the indication appears.
2076
2077 -------------------------
2078 -- 3.2.2 Subtype Mark --
2079 -------------------------
2080
2081 -- SUBTYPE_MARK ::= subtype_NAME
2082
2083 -----------------------
2084 -- 3.2.2 Constraint --
2085 -----------------------
2086
2087 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2088
2089 ------------------------------
2090 -- 3.2.2 Scalar Constraint --
2091 ------------------------------
2092
2093 -- SCALAR_CONSTRAINT ::=
2094 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2095
2096 ---------------------------------
2097 -- 3.2.2 Composite Constraint --
2098 ---------------------------------
2099
2100 -- COMPOSITE_CONSTRAINT ::=
2101 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2102
2103 -------------------------------
2104 -- 3.3.1 Object Declaration --
2105 -------------------------------
2106
2107 -- OBJECT_DECLARATION ::=
2108 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2109 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2110 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2111 -- ACCESS_DEFINITION [:= EXPRESSION];
2112 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2113 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2114 -- | SINGLE_TASK_DECLARATION
2115 -- | SINGLE_PROTECTED_DECLARATION
2116
2117 -- Note: aliased is not permitted in Ada 83 mode
2118
2119 -- The N_Object_Declaration node is only for the first two cases.
2120 -- Single task declaration is handled by P_Task (9.1)
2121 -- Single protected declaration is handled by P_protected (9.5)
2122
2123 -- Although the syntax allows multiple identifiers in the list, the
2124 -- semantics is as though successive declarations were given with
2125 -- identical type definition and expression components. To simplify
2126 -- semantic processing, the parser represents a multiple declaration
2127 -- case as a sequence of single declarations, using the More_Ids and
2128 -- Prev_Ids flags to preserve the original source form as described
2129 -- in the section on "Handling of Defining Identifier Lists".
2130
2131 -- The flag Has_Init_Expression is set if an initializing expression
2132 -- is present. Normally it is set if and only if Expression contains
2133 -- a non-empty value, but there is an exception to this. When the
2134 -- initializing expression is an aggregate which requires explicit
2135 -- assignments, the Expression field gets set to Empty, but this flag
2136 -- is still set, so we don't forget we had an initializing expression.
2137
2138 -- Note: if a range check is required for the initialization
2139 -- expression then the Do_Range_Check flag is set in the Expression,
2140 -- with the check being done against the type given by the object
2141 -- definition, which is also the Etype of the defining identifier.
2142
2143 -- Note: the contents of the Expression field must be ignored (i.e.
2144 -- treated as though it were Empty) if No_Initialization is set True.
2145
2146 -- Note: the back end places some restrictions on the form of the
2147 -- Expression field. If the object being declared is Atomic, then
2148 -- the Expression may not have the form of an aggregate (since this
2149 -- might cause the back end to generate separate assignments). It
2150 -- also cannot be a reference to an object marked as a true constant
2151 -- (Is_True_Constant flag set), where the object is itself initialized
2152 -- with an aggregate. If necessary the front end must generate an
2153 -- extra temporary (with Is_True_Constant set False), and initialize
2154 -- this temporary as required (the temporary itself is not atomic).
2155
2156 -- Note: there is not node kind for object definition. Instead, the
2157 -- corresponding field holds a subtype indication, an array type
2158 -- definition, or (Ada 2005, AI-406) an access definition.
2159
2160 -- N_Object_Declaration
2161 -- Sloc points to first identifier
2162 -- Defining_Identifier (Node1)
2163 -- Aliased_Present (Flag4) set if ALIASED appears
2164 -- Constant_Present (Flag17) set if CONSTANT appears
2165 -- Null_Exclusion_Present (Flag11)
2166 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2167 -- Expression (Node3) (set to Empty if not present)
2168 -- Handler_List_Entry (Node2-Sem)
2169 -- Corresponding_Generic_Association (Node5-Sem)
2170 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2171 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2172 -- No_Initialization (Flag13-Sem)
2173 -- Assignment_OK (Flag15-Sem)
2174 -- Exception_Junk (Flag8-Sem)
2175 -- Is_Subprogram_Descriptor (Flag16-Sem)
2176 -- Has_Init_Expression (Flag14)
2177
2178 -------------------------------------
2179 -- 3.3.1 Defining Identifier List --
2180 -------------------------------------
2181
2182 -- DEFINING_IDENTIFIER_LIST ::=
2183 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2184
2185 -------------------------------
2186 -- 3.3.2 Number Declaration --
2187 -------------------------------
2188
2189 -- NUMBER_DECLARATION ::=
2190 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2191
2192 -- Although the syntax allows multiple identifiers in the list, the
2193 -- semantics is as though successive declarations were given with
2194 -- identical expressions. To simplify semantic processing, the parser
2195 -- represents a multiple declaration case as a sequence of single
2196 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2197 -- the original source form as described in the section on "Handling
2198 -- of Defining Identifier Lists".
2199
2200 -- N_Number_Declaration
2201 -- Sloc points to first identifier
2202 -- Defining_Identifier (Node1)
2203 -- Expression (Node3)
2204 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2205 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2206
2207 ----------------------------------
2208 -- 3.4 Derived Type Definition --
2209 ----------------------------------
2210
2211 -- DERIVED_TYPE_DEFINITION ::=
2212 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2213 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2214
2215 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2216 -- in Ada 83 mode
2217
2218 -- Note: a record extension part is required if ABSTRACT is present
2219
2220 -- N_Derived_Type_Definition
2221 -- Sloc points to NEW
2222 -- Abstract_Present (Flag4)
2223 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2224 -- Subtype_Indication (Node5)
2225 -- Record_Extension_Part (Node3) (set to Empty if not present)
2226 -- Limited_Present (Flag17)
2227 -- Task_Present (Flag5) set in task interfaces
2228 -- Protected_Present (Flag6) set in protected interfaces
2229 -- Synchronized_Present (Flag7) set in interfaces
2230 -- Interface_List (List2) (set to No_List if none)
2231 -- Interface_Present (Flag16) set in abstract interfaces
2232
2233 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2234 -- Interface_List, and Interface_Present are used for abstract
2235 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2236
2237 ---------------------------
2238 -- 3.5 Range Constraint --
2239 ---------------------------
2240
2241 -- RANGE_CONSTRAINT ::= range RANGE
2242
2243 -- N_Range_Constraint
2244 -- Sloc points to RANGE
2245 -- Range_Expression (Node4)
2246
2247 ----------------
2248 -- 3.5 Range --
2249 ----------------
2250
2251 -- RANGE ::=
2252 -- RANGE_ATTRIBUTE_REFERENCE
2253 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2254
2255 -- Note: the case of a range given as a range attribute reference
2256 -- appears directly in the tree as an attribute reference.
2257
2258 -- Note: the field name for a reference to a range is Range_Expression
2259 -- rather than Range, because range is a reserved keyword in Ada!
2260
2261 -- Note: the reason that this node has expression fields is that a
2262 -- range can appear as an operand of a membership test. The Etype
2263 -- field is the type of the range (we do NOT construct an implicit
2264 -- subtype to represent the range exactly).
2265
2266 -- N_Range
2267 -- Sloc points to ..
2268 -- Low_Bound (Node1)
2269 -- High_Bound (Node2)
2270 -- Includes_Infinities (Flag11)
2271 -- plus fields for expression
2272
2273 -- Note: if the range appears in a context, such as a subtype
2274 -- declaration, where range checks are required on one or both of
2275 -- the expression fields, then type conversion nodes are inserted
2276 -- to represent the required checks.
2277
2278 ----------------------------------------
2279 -- 3.5.1 Enumeration Type Definition --
2280 ----------------------------------------
2281
2282 -- ENUMERATION_TYPE_DEFINITION ::=
2283 -- (ENUMERATION_LITERAL_SPECIFICATION
2284 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2285
2286 -- Note: the Literals field in the node described below is null for
2287 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2288 -- which special processing handles these types as special cases.
2289
2290 -- N_Enumeration_Type_Definition
2291 -- Sloc points to left parenthesis
2292 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2293 -- End_Label (Node4) (set to Empty if internally generated record)
2294
2295 ----------------------------------------------
2296 -- 3.5.1 Enumeration Literal Specification --
2297 ----------------------------------------------
2298
2299 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2300 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2301
2302 ---------------------------------------
2303 -- 3.5.1 Defining Character Literal --
2304 ---------------------------------------
2305
2306 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2307
2308 -- A defining character literal is an entity, which has additional
2309 -- fields depending on the setting of the Ekind field. These
2310 -- additional fields are defined (and access subprograms declared)
2311 -- in package Einfo.
2312
2313 -- Note: N_Defining_Character_Literal is an extended node whose fields
2314 -- are deliberate layed out to match the layout of fields in an ordinary
2315 -- N_Character_Literal node allowing for easy alteration of a character
2316 -- literal node into a defining character literal node. For details, see
2317 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2318
2319 -- N_Defining_Character_Literal
2320 -- Sloc points to literal
2321 -- Chars (Name1) contains the Name_Id for the identifier
2322 -- Next_Entity (Node2-Sem)
2323 -- Scope (Node3-Sem)
2324 -- Etype (Node5-Sem)
2325
2326 ------------------------------------
2327 -- 3.5.4 Integer Type Definition --
2328 ------------------------------------
2329
2330 -- Note: there is an error in this rule in the latest version of the
2331 -- grammar, so we have retained the old rule pending clarification.
2332
2333 -- INTEGER_TYPE_DEFINITION ::=
2334 -- SIGNED_INTEGER_TYPE_DEFINITION
2335 -- | MODULAR_TYPE_DEFINITION
2336
2337 -------------------------------------------
2338 -- 3.5.4 Signed Integer Type Definition --
2339 -------------------------------------------
2340
2341 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2342 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2343
2344 -- Note: the Low_Bound and High_Bound fields are set to Empty
2345 -- for integer types defined in package Standard.
2346
2347 -- N_Signed_Integer_Type_Definition
2348 -- Sloc points to RANGE
2349 -- Low_Bound (Node1)
2350 -- High_Bound (Node2)
2351
2352 ------------------------------------
2353 -- 3.5.4 Modular Type Definition --
2354 ------------------------------------
2355
2356 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2357
2358 -- N_Modular_Type_Definition
2359 -- Sloc points to MOD
2360 -- Expression (Node3)
2361
2362 ---------------------------------
2363 -- 3.5.6 Real Type Definition --
2364 ---------------------------------
2365
2366 -- REAL_TYPE_DEFINITION ::=
2367 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2368
2369 --------------------------------------
2370 -- 3.5.7 Floating Point Definition --
2371 --------------------------------------
2372
2373 -- FLOATING_POINT_DEFINITION ::=
2374 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2375
2376 -- Note: The Digits_Expression and Real_Range_Specifications fields
2377 -- are set to Empty for floating-point types declared in Standard.
2378
2379 -- N_Floating_Point_Definition
2380 -- Sloc points to DIGITS
2381 -- Digits_Expression (Node2)
2382 -- Real_Range_Specification (Node4) (set to Empty if not present)
2383
2384 -------------------------------------
2385 -- 3.5.7 Real Range Specification --
2386 -------------------------------------
2387
2388 -- REAL_RANGE_SPECIFICATION ::=
2389 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2390
2391 -- N_Real_Range_Specification
2392 -- Sloc points to RANGE
2393 -- Low_Bound (Node1)
2394 -- High_Bound (Node2)
2395
2396 -----------------------------------
2397 -- 3.5.9 Fixed Point Definition --
2398 -----------------------------------
2399
2400 -- FIXED_POINT_DEFINITION ::=
2401 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2402
2403 --------------------------------------------
2404 -- 3.5.9 Ordinary Fixed Point Definition --
2405 --------------------------------------------
2406
2407 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2408 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2409
2410 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2411
2412 -- N_Ordinary_Fixed_Point_Definition
2413 -- Sloc points to DELTA
2414 -- Delta_Expression (Node3)
2415 -- Real_Range_Specification (Node4)
2416
2417 -------------------------------------------
2418 -- 3.5.9 Decimal Fixed Point Definition --
2419 -------------------------------------------
2420
2421 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2422 -- delta static_EXPRESSION
2423 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2424
2425 -- Note: decimal types are not permitted in Ada 83 mode
2426
2427 -- N_Decimal_Fixed_Point_Definition
2428 -- Sloc points to DELTA
2429 -- Delta_Expression (Node3)
2430 -- Digits_Expression (Node2)
2431 -- Real_Range_Specification (Node4) (set to Empty if not present)
2432
2433 ------------------------------
2434 -- 3.5.9 Digits Constraint --
2435 ------------------------------
2436
2437 -- DIGITS_CONSTRAINT ::=
2438 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2439
2440 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2441 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2442
2443 -- N_Digits_Constraint
2444 -- Sloc points to DIGITS
2445 -- Digits_Expression (Node2)
2446 -- Range_Constraint (Node4) (set to Empty if not present)
2447
2448 --------------------------------
2449 -- 3.6 Array Type Definition --
2450 --------------------------------
2451
2452 -- ARRAY_TYPE_DEFINITION ::=
2453 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2454
2455 -----------------------------------------
2456 -- 3.6 Unconstrained Array Definition --
2457 -----------------------------------------
2458
2459 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2460 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2461 -- COMPONENT_DEFINITION
2462
2463 -- Note: dimensionality of array is indicated by number of entries in
2464 -- the Subtype_Marks list, which has one entry for each dimension.
2465
2466 -- N_Unconstrained_Array_Definition
2467 -- Sloc points to ARRAY
2468 -- Subtype_Marks (List2)
2469 -- Component_Definition (Node4)
2470
2471 -----------------------------------
2472 -- 3.6 Index Subtype Definition --
2473 -----------------------------------
2474
2475 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2476
2477 -- There is no explicit node in the tree for an index subtype
2478 -- definition since the N_Unconstrained_Array_Definition node
2479 -- incorporates the type marks which appear in this context.
2480
2481 ---------------------------------------
2482 -- 3.6 Constrained Array Definition --
2483 ---------------------------------------
2484
2485 -- CONSTRAINED_ARRAY_DEFINITION ::=
2486 -- array (DISCRETE_SUBTYPE_DEFINITION
2487 -- {, DISCRETE_SUBTYPE_DEFINITION})
2488 -- of COMPONENT_DEFINITION
2489
2490 -- Note: dimensionality of array is indicated by number of entries
2491 -- in the Discrete_Subtype_Definitions list, which has one entry
2492 -- for each dimension.
2493
2494 -- N_Constrained_Array_Definition
2495 -- Sloc points to ARRAY
2496 -- Discrete_Subtype_Definitions (List2)
2497 -- Component_Definition (Node4)
2498
2499 --------------------------------------
2500 -- 3.6 Discrete Subtype Definition --
2501 --------------------------------------
2502
2503 -- DISCRETE_SUBTYPE_DEFINITION ::=
2504 -- discrete_SUBTYPE_INDICATION | RANGE
2505
2506 -------------------------------
2507 -- 3.6 Component Definition --
2508 -------------------------------
2509
2510 -- COMPONENT_DEFINITION ::=
2511 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2512
2513 -- Note: although the syntax does not permit a component definition to
2514 -- be an anonymous array (and the parser will diagnose such an attempt
2515 -- with an appropriate message), it is possible for anonymous arrays
2516 -- to appear as component definitions. The semantics and back end handle
2517 -- this case properly, and the expander in fact generates such cases.
2518 -- Access_Definition is an optional field that gives support to
2519 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2520 -- Subtype_Indication field or else the Access_Definition field.
2521
2522 -- N_Component_Definition
2523 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2524 -- Aliased_Present (Flag4)
2525 -- Null_Exclusion_Present (Flag11)
2526 -- Subtype_Indication (Node5) (set to Empty if not present)
2527 -- Access_Definition (Node3) (set to Empty if not present)
2528
2529 -----------------------------
2530 -- 3.6.1 Index Constraint --
2531 -----------------------------
2532
2533 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2534
2535 -- It is not in general possible to distinguish between discriminant
2536 -- constraints and index constraints at parse time, since a simple
2537 -- name could be either the subtype mark of a discrete range, or an
2538 -- expression in a discriminant association with no name. Either
2539 -- entry appears simply as the name, and the semantic parse must
2540 -- distinguish between the two cases. Thus we use a common tree
2541 -- node format for both of these constraint types.
2542
2543 -- See Discriminant_Constraint for format of node
2544
2545 ---------------------------
2546 -- 3.6.1 Discrete Range --
2547 ---------------------------
2548
2549 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2550
2551 ----------------------------
2552 -- 3.7 Discriminant Part --
2553 ----------------------------
2554
2555 -- DISCRIMINANT_PART ::=
2556 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2557
2558 ------------------------------------
2559 -- 3.7 Unknown Discriminant Part --
2560 ------------------------------------
2561
2562 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2563
2564 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2565
2566 -- There is no explicit node in the tree for an unknown discriminant
2567 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2568 -- parent node.
2569
2570 ----------------------------------
2571 -- 3.7 Known Discriminant Part --
2572 ----------------------------------
2573
2574 -- KNOWN_DISCRIMINANT_PART ::=
2575 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2576
2577 -------------------------------------
2578 -- 3.7 Discriminant Specification --
2579 -------------------------------------
2580
2581 -- DISCRIMINANT_SPECIFICATION ::=
2582 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2583 -- [:= DEFAULT_EXPRESSION]
2584 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2585 -- [:= DEFAULT_EXPRESSION]
2586
2587 -- Although the syntax allows multiple identifiers in the list, the
2588 -- semantics is as though successive specifications were given with
2589 -- identical type definition and expression components. To simplify
2590 -- semantic processing, the parser represents a multiple declaration
2591 -- case as a sequence of single specifications, using the More_Ids and
2592 -- Prev_Ids flags to preserve the original source form as described
2593 -- in the section on "Handling of Defining Identifier Lists".
2594
2595 -- N_Discriminant_Specification
2596 -- Sloc points to first identifier
2597 -- Defining_Identifier (Node1)
2598 -- Null_Exclusion_Present (Flag11)
2599 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2600 -- Expression (Node3) (set to Empty if no default expression)
2601 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2602 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2603
2604 -----------------------------
2605 -- 3.7 Default Expression --
2606 -----------------------------
2607
2608 -- DEFAULT_EXPRESSION ::= EXPRESSION
2609
2610 ------------------------------------
2611 -- 3.7.1 Discriminant Constraint --
2612 ------------------------------------
2613
2614 -- DISCRIMINANT_CONSTRAINT ::=
2615 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2616
2617 -- It is not in general possible to distinguish between discriminant
2618 -- constraints and index constraints at parse time, since a simple
2619 -- name could be either the subtype mark of a discrete range, or an
2620 -- expression in a discriminant association with no name. Either
2621 -- entry appears simply as the name, and the semantic parse must
2622 -- distinguish between the two cases. Thus we use a common tree
2623 -- node format for both of these constraint types.
2624
2625 -- N_Index_Or_Discriminant_Constraint
2626 -- Sloc points to left paren
2627 -- Constraints (List1) points to list of discrete ranges or
2628 -- discriminant associations
2629
2630 -------------------------------------
2631 -- 3.7.1 Discriminant Association --
2632 -------------------------------------
2633
2634 -- DISCRIMINANT_ASSOCIATION ::=
2635 -- [discriminant_SELECTOR_NAME
2636 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2637
2638 -- Note: a discriminant association that has no selector name list
2639 -- appears directly as an expression in the tree.
2640
2641 -- N_Discriminant_Association
2642 -- Sloc points to first token of discriminant association
2643 -- Selector_Names (List1) (always non-empty, since if no selector
2644 -- names are present, this node is not used, see comment above)
2645 -- Expression (Node3)
2646
2647 ---------------------------------
2648 -- 3.8 Record Type Definition --
2649 ---------------------------------
2650
2651 -- RECORD_TYPE_DEFINITION ::=
2652 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2653
2654 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2655
2656 -- There is no explicit node in the tree for a record type definition.
2657 -- Instead the flags for Tagged_Present and Limited_Present appear in
2658 -- the N_Record_Definition node for a record definition appearing in
2659 -- the context of a record type definition.
2660
2661 ----------------------------
2662 -- 3.8 Record Definition --
2663 ----------------------------
2664
2665 -- RECORD_DEFINITION ::=
2666 -- record
2667 -- COMPONENT_LIST
2668 -- end record
2669 -- | null record
2670
2671 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2672 -- flags appear only for a record definition appearing in a record
2673 -- type definition.
2674
2675 -- Note: the NULL RECORD case is not permitted in Ada 83
2676
2677 -- N_Record_Definition
2678 -- Sloc points to RECORD or NULL
2679 -- End_Label (Node4) (set to Empty if internally generated record)
2680 -- Abstract_Present (Flag4)
2681 -- Tagged_Present (Flag15)
2682 -- Limited_Present (Flag17)
2683 -- Component_List (Node1) empty in null record case
2684 -- Null_Present (Flag13) set in null record case
2685 -- Task_Present (Flag5) set in task interfaces
2686 -- Protected_Present (Flag6) set in protected interfaces
2687 -- Synchronized_Present (Flag7) set in interfaces
2688 -- Interface_Present (Flag16) set in abstract interfaces
2689 -- Interface_List (List2) (set to No_List if none)
2690
2691 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2692 -- Interface_List and Interface_Present are used for abstract
2693 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2694
2695 -------------------------
2696 -- 3.8 Component List --
2697 -------------------------
2698
2699 -- COMPONENT_LIST ::=
2700 -- COMPONENT_ITEM {COMPONENT_ITEM}
2701 -- | {COMPONENT_ITEM} VARIANT_PART
2702 -- | null;
2703
2704 -- N_Component_List
2705 -- Sloc points to first token of component list
2706 -- Component_Items (List3)
2707 -- Variant_Part (Node4) (set to Empty if no variant part)
2708 -- Null_Present (Flag13)
2709
2710 -------------------------
2711 -- 3.8 Component Item --
2712 -------------------------
2713
2714 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2715
2716 -- Note: A component item can also be a pragma, and in the tree
2717 -- that is obtained after semantic processing, a component item
2718 -- can be an N_Null node resulting from a non-recognized pragma.
2719
2720 --------------------------------
2721 -- 3.8 Component Declaration --
2722 --------------------------------
2723
2724 -- COMPONENT_DECLARATION ::=
2725 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2726 -- [:= DEFAULT_EXPRESSION]
2727
2728 -- Note: although the syntax does not permit a component definition to
2729 -- be an anonymous array (and the parser will diagnose such an attempt
2730 -- with an appropriate message), it is possible for anonymous arrays
2731 -- to appear as component definitions. The semantics and back end handle
2732 -- this case properly, and the expander in fact generates such cases.
2733
2734 -- Although the syntax allows multiple identifiers in the list, the
2735 -- semantics is as though successive declarations were given with the
2736 -- same component definition and expression components. To simplify
2737 -- semantic processing, the parser represents a multiple declaration
2738 -- case as a sequence of single declarations, using the More_Ids and
2739 -- Prev_Ids flags to preserve the original source form as described
2740 -- in the section on "Handling of Defining Identifier Lists".
2741
2742 -- N_Component_Declaration
2743 -- Sloc points to first identifier
2744 -- Defining_Identifier (Node1)
2745 -- Component_Definition (Node4)
2746 -- Expression (Node3) (set to Empty if no default expression)
2747 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2748 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2749
2750 -------------------------
2751 -- 3.8.1 Variant Part --
2752 -------------------------
2753
2754 -- VARIANT_PART ::=
2755 -- case discriminant_DIRECT_NAME is
2756 -- VARIANT
2757 -- {VARIANT}
2758 -- end case;
2759
2760 -- Note: the variants list can contain pragmas as well as variants.
2761 -- In a properly formed program there is at least one variant.
2762
2763 -- N_Variant_Part
2764 -- Sloc points to CASE
2765 -- Name (Node2)
2766 -- Variants (List1)
2767
2768 --------------------
2769 -- 3.8.1 Variant --
2770 --------------------
2771
2772 -- VARIANT ::=
2773 -- when DISCRETE_CHOICE_LIST =>
2774 -- COMPONENT_LIST
2775
2776 -- N_Variant
2777 -- Sloc points to WHEN
2778 -- Discrete_Choices (List4)
2779 -- Component_List (Node1)
2780 -- Enclosing_Variant (Node2-Sem)
2781 -- Present_Expr (Uint3-Sem)
2782 -- Dcheck_Function (Node5-Sem)
2783
2784 ---------------------------------
2785 -- 3.8.1 Discrete Choice List --
2786 ---------------------------------
2787
2788 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2789
2790 ----------------------------
2791 -- 3.8.1 Discrete Choice --
2792 ----------------------------
2793
2794 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2795
2796 -- Note: in Ada 83 mode, the expression must be a simple expression
2797
2798 -- The only choice that appears explicitly is the OTHERS choice, as
2799 -- defined here. Other cases of discrete choice (expression and
2800 -- discrete range) appear directly. This production is also used
2801 -- for the OTHERS possibility of an exception choice.
2802
2803 -- Note: in accordance with the syntax, the parser does not check that
2804 -- OTHERS appears at the end on its own in a choice list context. This
2805 -- is a semantic check.
2806
2807 -- N_Others_Choice
2808 -- Sloc points to OTHERS
2809 -- Others_Discrete_Choices (List1-Sem)
2810 -- All_Others (Flag11-Sem)
2811
2812 ----------------------------------
2813 -- 3.9.1 Record Extension Part --
2814 ----------------------------------
2815
2816 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2817
2818 -- Note: record extension parts are not permitted in Ada 83 mode
2819
2820 --------------------------------------
2821 -- 3.9.4 Interface Type Definition --
2822 --------------------------------------
2823
2824 -- INTERFACE_TYPE_DEFINITION ::=
2825 -- [limited | task | protected | synchronized]
2826 -- interface [interface_list]
2827
2828 -- Note: Interfaces are implemented with N_Record_Definition and
2829 -- N_Derived_Type_Definition nodes because most of the support
2830 -- for the analysis of abstract types has been reused to
2831 -- analyze abstract interfaces.
2832
2833 ----------------------------------
2834 -- 3.10 Access Type Definition --
2835 ----------------------------------
2836
2837 -- ACCESS_TYPE_DEFINITION ::=
2838 -- ACCESS_TO_OBJECT_DEFINITION
2839 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2840
2841 --------------------------
2842 -- 3.10 Null Exclusion --
2843 --------------------------
2844
2845 -- NULL_EXCLUSION ::= not null
2846
2847 ---------------------------------------
2848 -- 3.10 Access To Object Definition --
2849 ---------------------------------------
2850
2851 -- ACCESS_TO_OBJECT_DEFINITION ::=
2852 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2853 -- SUBTYPE_INDICATION
2854
2855 -- N_Access_To_Object_Definition
2856 -- Sloc points to ACCESS
2857 -- All_Present (Flag15)
2858 -- Null_Exclusion_Present (Flag11)
2859 -- Subtype_Indication (Node5)
2860 -- Constant_Present (Flag17)
2861
2862 -----------------------------------
2863 -- 3.10 General Access Modifier --
2864 -----------------------------------
2865
2866 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2867
2868 -- Note: general access modifiers are not permitted in Ada 83 mode
2869
2870 -- There is no explicit node in the tree for general access modifier.
2871 -- Instead the All_Present or Constant_Present flags are set in the
2872 -- parent node.
2873
2874 -------------------------------------------
2875 -- 3.10 Access To Subprogram Definition --
2876 -------------------------------------------
2877
2878 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2879 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2880 -- | [NULL_EXCLUSION] access [protected] function
2881 -- PARAMETER_AND_RESULT_PROFILE
2882
2883 -- Note: access to subprograms are not permitted in Ada 83 mode
2884
2885 -- N_Access_Function_Definition
2886 -- Sloc points to ACCESS
2887 -- Null_Exclusion_Present (Flag11)
2888 -- Protected_Present (Flag6)
2889 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2890 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2891
2892 -- N_Access_Procedure_Definition
2893 -- Sloc points to ACCESS
2894 -- Null_Exclusion_Present (Flag11)
2895 -- Protected_Present (Flag6)
2896 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2897
2898 -----------------------------
2899 -- 3.10 Access Definition --
2900 -----------------------------
2901
2902 -- ACCESS_DEFINITION ::=
2903 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2904 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2905
2906 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2907
2908 -- N_Access_Definition
2909 -- Sloc points to ACCESS
2910 -- Null_Exclusion_Present (Flag11)
2911 -- All_Present (Flag15)
2912 -- Constant_Present (Flag17)
2913 -- Subtype_Mark (Node4)
2914 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2915
2916 -----------------------------------------
2917 -- 3.10.1 Incomplete Type Declaration --
2918 -----------------------------------------
2919
2920 -- INCOMPLETE_TYPE_DECLARATION ::=
2921 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2922
2923 -- N_Incomplete_Type_Declaration
2924 -- Sloc points to TYPE
2925 -- Defining_Identifier (Node1)
2926 -- Discriminant_Specifications (List4) (set to No_List if no
2927 -- discriminant part, or if the discriminant part is an
2928 -- unknown discriminant part)
2929 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2930 -- Tagged_Present (Flag15)
2931
2932 ----------------------------
2933 -- 3.11 Declarative Part --
2934 ----------------------------
2935
2936 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2937
2938 -- Note: although the parser enforces the syntactic requirement that
2939 -- a declarative part can contain only declarations, the semantic
2940 -- processing may add statements to the list of actions in a
2941 -- declarative part, so the code generator should be prepared
2942 -- to accept a statement in this position.
2943
2944 ----------------------------
2945 -- 3.11 Declarative Item --
2946 ----------------------------
2947
2948 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2949
2950 ----------------------------------
2951 -- 3.11 Basic Declarative Item --
2952 ----------------------------------
2953
2954 -- BASIC_DECLARATIVE_ITEM ::=
2955 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2956
2957 ----------------
2958 -- 3.11 Body --
2959 ----------------
2960
2961 -- BODY ::= PROPER_BODY | BODY_STUB
2962
2963 -----------------------
2964 -- 3.11 Proper Body --
2965 -----------------------
2966
2967 -- PROPER_BODY ::=
2968 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2969
2970 ---------------
2971 -- 4.1 Name --
2972 ---------------
2973
2974 -- NAME ::=
2975 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2976 -- | INDEXED_COMPONENT | SLICE
2977 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2978 -- | TYPE_CONVERSION | FUNCTION_CALL
2979 -- | CHARACTER_LITERAL
2980
2981 ----------------------
2982 -- 4.1 Direct Name --
2983 ----------------------
2984
2985 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2986
2987 -----------------
2988 -- 4.1 Prefix --
2989 -----------------
2990
2991 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2992
2993 -------------------------------
2994 -- 4.1 Explicit Dereference --
2995 -------------------------------
2996
2997 -- EXPLICIT_DEREFERENCE ::= NAME . all
2998
2999 -- N_Explicit_Dereference
3000 -- Sloc points to ALL
3001 -- Prefix (Node3)
3002 -- Actual_Designated_Subtype (Node4-Sem)
3003 -- plus fields for expression
3004
3005 -------------------------------
3006 -- 4.1 Implicit Dereference --
3007 -------------------------------
3008
3009 -- IMPLICIT_DEREFERENCE ::= NAME
3010
3011 ------------------------------
3012 -- 4.1.1 Indexed Component --
3013 ------------------------------
3014
3015 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3016
3017 -- Note: the parser may generate this node in some situations where it
3018 -- should be a function call. The semantic pass must correct this
3019 -- misidentification (which is inevitable at the parser level).
3020
3021 -- N_Indexed_Component
3022 -- Sloc contains a copy of the Sloc value of the Prefix
3023 -- Prefix (Node3)
3024 -- Expressions (List1)
3025 -- plus fields for expression
3026
3027 -- Note: if any of the subscripts requires a range check, then the
3028 -- Do_Range_Check flag is set on the corresponding expression, with
3029 -- the index type being determined from the type of the Prefix, which
3030 -- references the array being indexed.
3031
3032 -- Note: in a fully analyzed and expanded indexed component node, and
3033 -- hence in any such node that gigi sees, if the prefix is an access
3034 -- type, then an explicit dereference operation has been inserted.
3035
3036 ------------------
3037 -- 4.1.2 Slice --
3038 ------------------
3039
3040 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3041
3042 -- Note: an implicit subtype is created to describe the resulting
3043 -- type, so that the bounds of this type are the bounds of the slice.
3044
3045 -- N_Slice
3046 -- Sloc points to first token of prefix
3047 -- Prefix (Node3)
3048 -- Discrete_Range (Node4)
3049 -- plus fields for expression
3050
3051 -------------------------------
3052 -- 4.1.3 Selected Component --
3053 -------------------------------
3054
3055 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3056
3057 -- Note: selected components that are semantically expanded names get
3058 -- changed during semantic processing into the separate N_Expanded_Name
3059 -- node. See description of this node in the section on semantic nodes.
3060
3061 -- N_Selected_Component
3062 -- Sloc points to period
3063 -- Prefix (Node3)
3064 -- Selector_Name (Node2)
3065 -- Associated_Node (Node4-Sem)
3066 -- Do_Discriminant_Check (Flag13-Sem)
3067 -- Is_In_Discriminant_Check (Flag11-Sem)
3068 -- plus fields for expression
3069
3070 --------------------------
3071 -- 4.1.3 Selector Name --
3072 --------------------------
3073
3074 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3075
3076 --------------------------------
3077 -- 4.1.4 Attribute Reference --
3078 --------------------------------
3079
3080 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3081
3082 -- Note: the syntax is quite ambiguous at this point. Consider:
3083
3084 -- A'Length (X) X is part of the attribute designator
3085 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3086 -- A'Class (X) X is the expression of a type conversion
3087
3088 -- It would be possible for the parser to distinguish these cases
3089 -- by looking at the attribute identifier. However, that would mean
3090 -- more work in introducing new implementation defined attributes,
3091 -- and also it would mean that special processing for attributes
3092 -- would be scattered around, instead of being centralized in the
3093 -- semantic routine that handles an N_Attribute_Reference node.
3094 -- Consequently, the parser in all the above cases stores the
3095 -- expression (X in these examples) as a single element list in
3096 -- in the Expressions field of the N_Attribute_Reference node.
3097
3098 -- Similarly, for attributes like Max which take two arguments,
3099 -- we store the two arguments as a two element list in the
3100 -- Expressions field. Of course it is clear at parse time that
3101 -- this case is really a function call with an attribute as the
3102 -- prefix, but it turns out to be convenient to handle the two
3103 -- argument case in a similar manner to the one argument case,
3104 -- and indeed in general the parser will accept any number of
3105 -- expressions in this position and store them as a list in the
3106 -- attribute reference node. This allows for future addition of
3107 -- attributes that take more than two arguments.
3108
3109 -- Note: named associates are not permitted in function calls where
3110 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3111 -- to skip the normal subprogram argument processing.
3112
3113 -- Note: for the attributes whose designators are technically keywords,
3114 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3115 -- the corresponding name, even though no identifier is involved.
3116
3117 -- Note: the generated code may contain stream attributes applied to
3118 -- limited types for which no stream routines exist officially. In such
3119 -- case, the result is to use the stream attribute for the underlying
3120 -- full type, or in the case of a protected type, the components
3121 -- (including any discriminants) are merely streamed in order.
3122
3123 -- See Exp_Attr for a complete description of which attributes are
3124 -- passed onto Gigi, and which are handled entirely by the front end.
3125
3126 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3127 -- a non-standard enumeration type or a nonzero/zero semantics
3128 -- boolean type, so the value is simply the stored representation.
3129
3130 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3131 -- references a subprogram that is a renaming, then the front end must
3132 -- rewrite the attribute to refer directly to the renamed entity.
3133
3134 -- Note: In generated code, the Address and Unrestricted_Access
3135 -- attributes can be applied to any expression, and the meaning is
3136 -- to create an object containing the value (the object is in the
3137 -- current stack frame), and pass the address of this value. If the
3138 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3139 -- is taken must be on a byte (storage unit) boundary, and if it is
3140 -- not (or may not be), then the generated code must create a copy
3141 -- that is byte aligned, and pass the address of this copy.
3142
3143 -- N_Attribute_Reference
3144 -- Sloc points to apostrophe
3145 -- Prefix (Node3)
3146 -- Attribute_Name (Name2) identifier name from attribute designator
3147 -- Expressions (List1) (set to No_List if no associated expressions)
3148 -- Entity (Node4-Sem) used if the attribute yields a type
3149 -- Associated_Node (Node4-Sem)
3150 -- Do_Overflow_Check (Flag17-Sem)
3151 -- Redundant_Use (Flag13-Sem)
3152 -- Must_Be_Byte_Aligned (Flag14)
3153 -- plus fields for expression
3154
3155 ---------------------------------
3156 -- 4.1.4 Attribute Designator --
3157 ---------------------------------
3158
3159 -- ATTRIBUTE_DESIGNATOR ::=
3160 -- IDENTIFIER [(static_EXPRESSION)]
3161 -- | access | delta | digits
3162
3163 -- There is no explicit node in the tree for an attribute designator.
3164 -- Instead the Attribute_Name and Expressions fields of the parent
3165 -- node (N_Attribute_Reference node) hold the information.
3166
3167 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3168 -- designator, then they are treated as identifiers internally
3169 -- rather than the keywords of the same name.
3170
3171 --------------------------------------
3172 -- 4.1.4 Range Attribute Reference --
3173 --------------------------------------
3174
3175 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3176
3177 -- A range attribute reference is represented in the tree using the
3178 -- normal N_Attribute_Reference node.
3179
3180 ---------------------------------------
3181 -- 4.1.4 Range Attribute Designator --
3182 ---------------------------------------
3183
3184 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3185
3186 -- A range attribute designator is represented in the tree using the
3187 -- normal N_Attribute_Reference node.
3188
3189 --------------------
3190 -- 4.3 Aggregate --
3191 --------------------
3192
3193 -- AGGREGATE ::=
3194 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3195
3196 -----------------------------
3197 -- 4.3.1 Record Aggregate --
3198 -----------------------------
3199
3200 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3201
3202 -- N_Aggregate
3203 -- Sloc points to left parenthesis
3204 -- Expressions (List1) (set to No_List if none or null record case)
3205 -- Component_Associations (List2) (set to No_List if none)
3206 -- Null_Record_Present (Flag17)
3207 -- Aggregate_Bounds (Node3-Sem)
3208 -- Associated_Node (Node4-Sem)
3209 -- Static_Processing_OK (Flag4-Sem)
3210 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3211 -- Expansion_Delayed (Flag11-Sem)
3212 -- Has_Self_Reference (Flag13-Sem)
3213 -- plus fields for expression
3214
3215 -- Note: this structure is used for both record and array aggregates
3216 -- since the two cases are not separable by the parser. The parser
3217 -- makes no attempt to enforce consistency here, so it is up to the
3218 -- semantic phase to make sure that the aggregate is consistent (i.e.
3219 -- that it is not a "half-and-half" case that mixes record and array
3220 -- syntax. In particular, for a record aggregate, the expressions
3221 -- field will be set if there are positional associations.
3222
3223 -- Note: N_Aggregate is not used for all aggregates; in particular,
3224 -- there is a separate node kind for extension aggregates.
3225
3226 -- Note: gigi/gcc can handle array aggregates correctly providing that
3227 -- they are entirely positional, and the array subtype involved has a
3228 -- known at compile time length and is not bit packed, or a convention
3229 -- Fortran array with more than one dimension. If these conditions
3230 -- are not met, then the front end must translate the aggregate into
3231 -- an appropriate set of assignments into a temporary.
3232
3233 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3234 -- of record aggregates, including those for packed, and rep-claused
3235 -- records, and also variant records, providing that there are no
3236 -- variable length fields whose size is not known at runtime, and
3237 -- providing that the aggregate is presented in fully named form.
3238
3239 ----------------------------------------------
3240 -- 4.3.1 Record Component Association List --
3241 ----------------------------------------------
3242
3243 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3244 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3245 -- | null record
3246
3247 -- There is no explicit node in the tree for a record component
3248 -- association list. Instead the Null_Record_Present flag is set in
3249 -- the parent node for the NULL RECORD case.
3250
3251 ------------------------------------------------------
3252 -- 4.3.1 Record Component Association (also 4.3.3) --
3253 ------------------------------------------------------
3254
3255 -- RECORD_COMPONENT_ASSOCIATION ::=
3256 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3257
3258 -- N_Component_Association
3259 -- Sloc points to first selector name
3260 -- Choices (List1)
3261 -- Loop_Actions (List2-Sem)
3262 -- Expression (Node3)
3263 -- Box_Present (Flag15)
3264
3265 -- Note: this structure is used for both record component associations
3266 -- and array component associations, since the two cases aren't always
3267 -- separable by the parser. The choices list may represent either a
3268 -- list of selector names in the record aggregate case, or a list of
3269 -- discrete choices in the array aggregate case or an N_Others_Choice
3270 -- node (which appears as a singleton list). Box_Present gives support
3271 -- to Ada 2005 (AI-287).
3272
3273 ----------------------------------
3274 -- 4.3.1 Component Choice List --
3275 ----------------------------------
3276
3277 -- COMPONENT_CHOICE_LIST ::=
3278 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3279 -- | others
3280
3281 -- The entries of a component choice list appear in the Choices list of
3282 -- the associated N_Component_Association, as either selector names, or
3283 -- as an N_Others_Choice node.
3284
3285 --------------------------------
3286 -- 4.3.2 Extension Aggregate --
3287 --------------------------------
3288
3289 -- EXTENSION_AGGREGATE ::=
3290 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3291
3292 -- Note: extension aggregates are not permitted in Ada 83 mode
3293
3294 -- N_Extension_Aggregate
3295 -- Sloc points to left parenthesis
3296 -- Ancestor_Part (Node3)
3297 -- Associated_Node (Node4-Sem)
3298 -- Expressions (List1) (set to No_List if none or null record case)
3299 -- Component_Associations (List2) (set to No_List if none)
3300 -- Null_Record_Present (Flag17)
3301 -- Expansion_Delayed (Flag11-Sem)
3302 -- Has_Self_Reference (Flag13-Sem)
3303 -- plus fields for expression
3304
3305 --------------------------
3306 -- 4.3.2 Ancestor Part --
3307 --------------------------
3308
3309 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3310
3311 ----------------------------
3312 -- 4.3.3 Array Aggregate --
3313 ----------------------------
3314
3315 -- ARRAY_AGGREGATE ::=
3316 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3317
3318 ---------------------------------------
3319 -- 4.3.3 Positional Array Aggregate --
3320 ---------------------------------------
3321
3322 -- POSITIONAL_ARRAY_AGGREGATE ::=
3323 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3324 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3325
3326 -- See Record_Aggregate (4.3.1) for node structure
3327
3328 ----------------------------------
3329 -- 4.3.3 Named Array Aggregate --
3330 ----------------------------------
3331
3332 -- NAMED_ARRAY_AGGREGATE ::=
3333 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3334
3335 -- See Record_Aggregate (4.3.1) for node structure
3336
3337 ----------------------------------------
3338 -- 4.3.3 Array Component Association --
3339 ----------------------------------------
3340
3341 -- ARRAY_COMPONENT_ASSOCIATION ::=
3342 -- DISCRETE_CHOICE_LIST => EXPRESSION
3343
3344 -- See Record_Component_Association (4.3.1) for node structure
3345
3346 --------------------------------------------------
3347 -- 4.4 Expression/Relation/Term/Factor/Primary --
3348 --------------------------------------------------
3349
3350 -- EXPRESSION ::=
3351 -- RELATION {and RELATION} | RELATION {and then RELATION}
3352 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3353 -- | RELATION {xor RELATION}
3354
3355 -- RELATION ::=
3356 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3357 -- | SIMPLE_EXPRESSION [not] in RANGE
3358 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3359
3360 -- SIMPLE_EXPRESSION ::=
3361 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3362
3363 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3364
3365 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3366
3367 -- No nodes are generated for any of these constructs. Instead, the
3368 -- node for the operator appears directly. When we refer to an
3369 -- expression in this description, we mean any of the possible
3370 -- constituent components of an expression (e.g. identifier is
3371 -- an example of an expression).
3372
3373 ------------------
3374 -- 4.4 Primary --
3375 ------------------
3376
3377 -- PRIMARY ::=
3378 -- NUMERIC_LITERAL | null
3379 -- | STRING_LITERAL | AGGREGATE
3380 -- | NAME | QUALIFIED_EXPRESSION
3381 -- | ALLOCATOR | (EXPRESSION)
3382
3383 -- Usually there is no explicit node in the tree for primary. Instead
3384 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3385 -- exceptions. First, there is an explicit node for a null primary.
3386
3387 -- N_Null
3388 -- Sloc points to NULL
3389 -- plus fields for expression
3390
3391 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3392 -- that the parser keep track of which subexpressions are enclosed
3393 -- in parentheses, and how many levels of parentheses are used. This
3394 -- information is required for optimization purposes, and also for
3395 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3396 -- conform with ((((1)))) in the body).
3397
3398 -- The parentheses are recorded by keeping a Paren_Count field in every
3399 -- subexpression node (it is actually present in all nodes, but only
3400 -- used in subexpression nodes). This count records the number of
3401 -- levels of parentheses. If the number of levels in the source exceeds
3402 -- the maximum accommodated by this count, then the count is simply left
3403 -- at the maximum value. This means that there are some pathological
3404 -- cases of failure to detect conformance failures (e.g. an expression
3405 -- with 500 levels of parens will conform with one with 501 levels),
3406 -- but we do not need to lose sleep over this.
3407
3408 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3409 -- type N_Parenthesized_Expression used to accurately record unlimited
3410 -- numbers of levels of parentheses. However, it turned out to be a
3411 -- real nuisance to have to take into account the possible presence of
3412 -- this node during semantic analysis, since basically parentheses have
3413 -- zero relevance to semantic analysis.
3414
3415 -- Note: the level of parentheses always present in things like
3416 -- aggregates does not count, only the parentheses in the primary
3417 -- (EXPRESSION) affect the setting of the Paren_Count field.
3418
3419 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3420 -- treated as though it were Empty) if No_Initialization is set True.
3421
3422 --------------------------------------
3423 -- 4.5 Short Circuit Control Forms --
3424 --------------------------------------
3425
3426 -- EXPRESSION ::=
3427 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3428
3429 -- Gigi restriction: For both these control forms, the operand and
3430 -- result types are always Standard.Boolean. The expander inserts the
3431 -- required conversion operations where needed to ensure this is the
3432 -- case.
3433
3434 -- N_And_Then
3435 -- Sloc points to AND of AND THEN
3436 -- Left_Opnd (Node2)
3437 -- Right_Opnd (Node3)
3438 -- Actions (List1-Sem)
3439 -- plus fields for expression
3440
3441 -- N_Or_Else
3442 -- Sloc points to OR of OR ELSE
3443 -- Left_Opnd (Node2)
3444 -- Right_Opnd (Node3)
3445 -- Actions (List1-Sem)
3446 -- plus fields for expression
3447
3448 -- Note: The Actions field is used to hold actions associated with
3449 -- the right hand operand. These have to be treated specially since
3450 -- they are not unconditionally executed. See Insert_Actions for a
3451 -- more detailed description of how these actions are handled.
3452
3453 ---------------------------
3454 -- 4.5 Membership Tests --
3455 ---------------------------
3456
3457 -- RELATION ::=
3458 -- SIMPLE_EXPRESSION [not] in RANGE
3459 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3460
3461 -- Note: although the grammar above allows only a range or a
3462 -- subtype mark, the parser in fact will accept any simple
3463 -- expression in place of a subtype mark. This means that the
3464 -- semantic analyzer must be prepared to deal with, and diagnose
3465 -- a simple expression other than a name for the right operand.
3466 -- This simplifies error recovery in the parser.
3467
3468 -- N_In
3469 -- Sloc points to IN
3470 -- Left_Opnd (Node2)
3471 -- Right_Opnd (Node3)
3472 -- plus fields for expression
3473
3474 -- N_Not_In
3475 -- Sloc points to NOT of NOT IN
3476 -- Left_Opnd (Node2)
3477 -- Right_Opnd (Node3)
3478 -- plus fields for expression
3479
3480 --------------------
3481 -- 4.5 Operators --
3482 --------------------
3483
3484 -- LOGICAL_OPERATOR ::= and | or | xor
3485
3486 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3487
3488 -- BINARY_ADDING_OPERATOR ::= + | - | &
3489
3490 -- UNARY_ADDING_OPERATOR ::= + | -
3491
3492 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3493
3494 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3495
3496 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3497
3498 -- x #* y
3499 -- x #/ y
3500 -- x #mod y
3501 -- x #rem y
3502
3503 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3504 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3505 -- All handling of smalls for multiplication and division is handled
3506 -- by the front end (mod and rem result only from expansion). Gigi
3507 -- thus never needs to worry about small values (for other operators
3508 -- operating on fixed-point, e.g. addition, the small value does not
3509 -- have any semantic effect anyway, these are always integer operations.
3510
3511 -- Gigi restriction: For all operators taking Boolean operands, the
3512 -- type is always Standard.Boolean. The expander inserts the required
3513 -- conversion operations where needed to ensure this is the case.
3514
3515 -- N_Op_And
3516 -- Sloc points to AND
3517 -- Do_Length_Check (Flag4-Sem)
3518 -- plus fields for binary operator
3519 -- plus fields for expression
3520
3521 -- N_Op_Or
3522 -- Sloc points to OR
3523 -- Do_Length_Check (Flag4-Sem)
3524 -- plus fields for binary operator
3525 -- plus fields for expression
3526
3527 -- N_Op_Xor
3528 -- Sloc points to XOR
3529 -- Do_Length_Check (Flag4-Sem)
3530 -- plus fields for binary operator
3531 -- plus fields for expression
3532
3533 -- N_Op_Eq
3534 -- Sloc points to =
3535 -- plus fields for binary operator
3536 -- plus fields for expression
3537
3538 -- N_Op_Ne
3539 -- Sloc points to /=
3540 -- plus fields for binary operator
3541 -- plus fields for expression
3542
3543 -- N_Op_Lt
3544 -- Sloc points to <
3545 -- plus fields for binary operator
3546 -- plus fields for expression
3547
3548 -- N_Op_Le
3549 -- Sloc points to <=
3550 -- plus fields for binary operator
3551 -- plus fields for expression
3552
3553 -- N_Op_Gt
3554 -- Sloc points to >
3555 -- plus fields for binary operator
3556 -- plus fields for expression
3557
3558 -- N_Op_Ge
3559 -- Sloc points to >=
3560 -- plus fields for binary operator
3561 -- plus fields for expression
3562
3563 -- N_Op_Add
3564 -- Sloc points to + (binary)
3565 -- plus fields for binary operator
3566 -- plus fields for expression
3567
3568 -- N_Op_Subtract
3569 -- Sloc points to - (binary)
3570 -- plus fields for binary operator
3571 -- plus fields for expression
3572
3573 -- N_Op_Concat
3574 -- Sloc points to &
3575 -- Is_Component_Left_Opnd (Flag13-Sem)
3576 -- Is_Component_Right_Opnd (Flag14-Sem)
3577 -- plus fields for binary operator
3578 -- plus fields for expression
3579
3580 -- N_Op_Multiply
3581 -- Sloc points to *
3582 -- Treat_Fixed_As_Integer (Flag14-Sem)
3583 -- Rounded_Result (Flag18-Sem)
3584 -- plus fields for binary operator
3585 -- plus fields for expression
3586
3587 -- N_Op_Divide
3588 -- Sloc points to /
3589 -- Treat_Fixed_As_Integer (Flag14-Sem)
3590 -- Do_Division_Check (Flag13-Sem)
3591 -- Rounded_Result (Flag18-Sem)
3592 -- plus fields for binary operator
3593 -- plus fields for expression
3594
3595 -- N_Op_Mod
3596 -- Sloc points to MOD
3597 -- Treat_Fixed_As_Integer (Flag14-Sem)
3598 -- Do_Division_Check (Flag13-Sem)
3599 -- plus fields for binary operator
3600 -- plus fields for expression
3601
3602 -- N_Op_Rem
3603 -- Sloc points to REM
3604 -- Treat_Fixed_As_Integer (Flag14-Sem)
3605 -- Do_Division_Check (Flag13-Sem)
3606 -- plus fields for binary operator
3607 -- plus fields for expression
3608
3609 -- N_Op_Expon
3610 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3611 -- Sloc points to **
3612 -- plus fields for binary operator
3613 -- plus fields for expression
3614
3615 -- N_Op_Plus
3616 -- Sloc points to + (unary)
3617 -- plus fields for unary operator
3618 -- plus fields for expression
3619
3620 -- N_Op_Minus
3621 -- Sloc points to - (unary)
3622 -- plus fields for unary operator
3623 -- plus fields for expression
3624
3625 -- N_Op_Abs
3626 -- Sloc points to ABS
3627 -- plus fields for unary operator
3628 -- plus fields for expression
3629
3630 -- N_Op_Not
3631 -- Sloc points to NOT
3632 -- plus fields for unary operator
3633 -- plus fields for expression
3634
3635 -- See also shift operators in section B.2
3636
3637 -- Note on fixed-point operations passed to Gigi: For adding operators,
3638 -- the semantics is to treat these simply as integer operations, with
3639 -- the small values being ignored (the bounds are already stored in
3640 -- units of small, so that constraint checking works as usual). For the
3641 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3642 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3643 -- thus treat these nodes in identical manner, ignoring small values.
3644
3645 --------------------------
3646 -- 4.6 Type Conversion --
3647 --------------------------
3648
3649 -- TYPE_CONVERSION ::=
3650 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3651
3652 -- In the (NAME) case, the name is stored as the expression
3653
3654 -- Note: the parser never generates a type conversion node, since it
3655 -- looks like an indexed component which is generated by preference.
3656 -- The semantic pass must correct this misidentification.
3657
3658 -- Gigi handles conversions that involve no change in the root type,
3659 -- and also all conversions from integer to floating-point types.
3660 -- Conversions from floating-point to integer are only handled in
3661 -- the case where Float_Truncate flag set. Other conversions from
3662 -- floating-point to integer (involving rounding) and all conversions
3663 -- involving fixed-point types are handled by the expander.
3664
3665 -- Sprint syntax if Float_Truncate set: X^(Y)
3666 -- Sprint syntax if Conversion_OK set X?(Y)
3667 -- Sprint syntax if both flags set X?^(Y)
3668
3669 -- Note: If either the operand or result type is fixed-point, Gigi will
3670 -- only see a type conversion node with Conversion_OK set. The front end
3671 -- takes care of all handling of small's for fixed-point conversions.
3672
3673 -- N_Type_Conversion
3674 -- Sloc points to first token of subtype mark
3675 -- Subtype_Mark (Node4)
3676 -- Expression (Node3)
3677 -- Do_Tag_Check (Flag13-Sem)
3678 -- Do_Length_Check (Flag4-Sem)
3679 -- Do_Overflow_Check (Flag17-Sem)
3680 -- Float_Truncate (Flag11-Sem)
3681 -- Rounded_Result (Flag18-Sem)
3682 -- Conversion_OK (Flag14-Sem)
3683 -- plus fields for expression
3684
3685 -- Note: if a range check is required, then the Do_Range_Check flag
3686 -- is set in the Expression with the check being done against the
3687 -- target type range (after the base type conversion, if any).
3688
3689 -------------------------------
3690 -- 4.7 Qualified Expression --
3691 -------------------------------
3692
3693 -- QUALIFIED_EXPRESSION ::=
3694 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3695
3696 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3697 -- the expression, so the Expression field of this node always points
3698 -- to a parenthesized expression in this case (i.e. Paren_Count will
3699 -- always be non-zero for the referenced expression if it is not an
3700 -- aggregate).
3701
3702 -- N_Qualified_Expression
3703 -- Sloc points to apostrophe
3704 -- Subtype_Mark (Node4)
3705 -- Expression (Node3) expression or aggregate
3706 -- plus fields for expression
3707
3708 --------------------
3709 -- 4.8 Allocator --
3710 --------------------
3711
3712 -- ALLOCATOR ::=
3713 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3714
3715 -- Sprint syntax (when storage pool present)
3716 -- new xxx (storage_pool = pool)
3717
3718 -- N_Allocator
3719 -- Sloc points to NEW
3720 -- Expression (Node3) subtype indication or qualified expression
3721 -- Storage_Pool (Node1-Sem)
3722 -- Procedure_To_Call (Node2-Sem)
3723 -- Coextensions (Elist4-Sem)
3724 -- Null_Exclusion_Present (Flag11)
3725 -- No_Initialization (Flag13-Sem)
3726 -- Is_Static_Coextension (Flag14-Sem)
3727 -- Do_Storage_Check (Flag17-Sem)
3728 -- Is_Dynamic_Coextension (Flag18-Sem)
3729 -- plus fields for expression
3730
3731 ---------------------------------
3732 -- 5.1 Sequence Of Statements --
3733 ---------------------------------
3734
3735 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3736
3737 -- Note: Although the parser will not accept a declaration as a
3738 -- statement, the semantic analyzer may insert declarations (e.g.
3739 -- declarations of implicit types needed for execution of other
3740 -- statements) into a sequence of statements, so the code generator
3741 -- should be prepared to accept a declaration where a statement is
3742 -- expected. Note also that pragmas can appear as statements.
3743
3744 --------------------
3745 -- 5.1 Statement --
3746 --------------------
3747
3748 -- STATEMENT ::=
3749 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3750
3751 -- There is no explicit node in the tree for a statement. Instead, the
3752 -- individual statement appears directly. Labels are treated as a
3753 -- kind of statement, i.e. they are linked into a statement list at
3754 -- the point they appear, so the labeled statement appears following
3755 -- the label or labels in the statement list.
3756
3757 ---------------------------
3758 -- 5.1 Simple Statement --
3759 ---------------------------
3760
3761 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3762 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3763 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3764 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3765 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3766 -- | ABORT_STATEMENT | RAISE_STATEMENT
3767 -- | CODE_STATEMENT
3768
3769 -----------------------------
3770 -- 5.1 Compound Statement --
3771 -----------------------------
3772
3773 -- COMPOUND_STATEMENT ::=
3774 -- IF_STATEMENT | CASE_STATEMENT
3775 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3776 -- | EXTENDED_RETURN_STATEMENT
3777 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3778
3779 -------------------------
3780 -- 5.1 Null Statement --
3781 -------------------------
3782
3783 -- NULL_STATEMENT ::= null;
3784
3785 -- N_Null_Statement
3786 -- Sloc points to NULL
3787
3788 ----------------
3789 -- 5.1 Label --
3790 ----------------
3791
3792 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3793
3794 -- Note that the occurrence of a label is not a defining identifier,
3795 -- but rather a referencing occurrence. The defining occurrence is
3796 -- in the implicit label declaration which occurs in the innermost
3797 -- enclosing block.
3798
3799 -- N_Label
3800 -- Sloc points to <<
3801 -- Identifier (Node1) direct name of statement identifier
3802 -- Exception_Junk (Flag8-Sem)
3803
3804 -------------------------------
3805 -- 5.1 Statement Identifier --
3806 -------------------------------
3807
3808 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
3809
3810 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3811 -- (not an OPERATOR_SYMBOL)
3812
3813 -------------------------------
3814 -- 5.2 Assignment Statement --
3815 -------------------------------
3816
3817 -- ASSIGNMENT_STATEMENT ::=
3818 -- variable_NAME := EXPRESSION;
3819
3820 -- N_Assignment_Statement
3821 -- Sloc points to :=
3822 -- Name (Node2)
3823 -- Expression (Node3)
3824 -- Do_Tag_Check (Flag13-Sem)
3825 -- Do_Length_Check (Flag4-Sem)
3826 -- Forwards_OK (Flag5-Sem)
3827 -- Backwards_OK (Flag6-Sem)
3828 -- No_Ctrl_Actions (Flag7-Sem)
3829
3830 -- Note: if a range check is required, then the Do_Range_Check flag
3831 -- is set in the Expression (right hand side), with the check being
3832 -- done against the type of the Name (left hand side).
3833
3834 -- Note: the back end places some restrictions on the form of the
3835 -- Expression field. If the object being assigned to is Atomic, then
3836 -- the Expression may not have the form of an aggregate (since this
3837 -- might cause the back end to generate separate assignments). It
3838 -- also cannot be a reference to an object marked as a true constant
3839 -- (Is_True_Constant flag set), where the object is itself initialized
3840 -- with an aggregate. If necessary the front end must generate an
3841 -- extra temporary (with Is_True_Constant set False), and initialize
3842 -- this temporary as required (the temporary itself is not atomic).
3843
3844 -----------------------
3845 -- 5.3 If Statement --
3846 -----------------------
3847
3848 -- IF_STATEMENT ::=
3849 -- if CONDITION then
3850 -- SEQUENCE_OF_STATEMENTS
3851 -- {elsif CONDITION then
3852 -- SEQUENCE_OF_STATEMENTS}
3853 -- [else
3854 -- SEQUENCE_OF_STATEMENTS]
3855 -- end if;
3856
3857 -- Gigi restriction: This expander ensures that the type of the
3858 -- Condition fields is always Standard.Boolean, even if the type
3859 -- in the source is some non-standard boolean type.
3860
3861 -- N_If_Statement
3862 -- Sloc points to IF
3863 -- Condition (Node1)
3864 -- Then_Statements (List2)
3865 -- Elsif_Parts (List3) (set to No_List if none present)
3866 -- Else_Statements (List4) (set to No_List if no else part present)
3867 -- End_Span (Uint5) (set to No_Uint if expander generated)
3868
3869 -- N_Elsif_Part
3870 -- Sloc points to ELSIF
3871 -- Condition (Node1)
3872 -- Then_Statements (List2)
3873 -- Condition_Actions (List3-Sem)
3874
3875 --------------------
3876 -- 5.3 Condition --
3877 --------------------
3878
3879 -- CONDITION ::= boolean_EXPRESSION
3880
3881 -------------------------
3882 -- 5.4 Case Statement --
3883 -------------------------
3884
3885 -- CASE_STATEMENT ::=
3886 -- case EXPRESSION is
3887 -- CASE_STATEMENT_ALTERNATIVE
3888 -- {CASE_STATEMENT_ALTERNATIVE}
3889 -- end case;
3890
3891 -- Note: the Alternatives can contain pragmas. These only occur at
3892 -- the start of the list, since any pragmas occurring after the first
3893 -- alternative are absorbed into the corresponding statement sequence.
3894
3895 -- N_Case_Statement
3896 -- Sloc points to CASE
3897 -- Expression (Node3)
3898 -- Alternatives (List4)
3899 -- End_Span (Uint5) (set to No_Uint if expander generated)
3900
3901 -------------------------------------
3902 -- 5.4 Case Statement Alternative --
3903 -------------------------------------
3904
3905 -- CASE_STATEMENT_ALTERNATIVE ::=
3906 -- when DISCRETE_CHOICE_LIST =>
3907 -- SEQUENCE_OF_STATEMENTS
3908
3909 -- N_Case_Statement_Alternative
3910 -- Sloc points to WHEN
3911 -- Discrete_Choices (List4)
3912 -- Statements (List3)
3913
3914 -------------------------
3915 -- 5.5 Loop Statement --
3916 -------------------------
3917
3918 -- LOOP_STATEMENT ::=
3919 -- [loop_STATEMENT_IDENTIFIER :]
3920 -- [ITERATION_SCHEME] loop
3921 -- SEQUENCE_OF_STATEMENTS
3922 -- end loop [loop_IDENTIFIER];
3923
3924 -- Note: The occurrence of a loop label is not a defining identifier
3925 -- but rather a referencing occurrence. The defining occurrence is in
3926 -- the implicit label declaration which occurs in the innermost
3927 -- enclosing block.
3928
3929 -- Note: there is always a loop statement identifier present in
3930 -- the tree, even if none was given in the source. In the case where
3931 -- no loop identifier is given in the source, the parser creates
3932 -- a name of the form _Loop_n, where n is a decimal integer (the
3933 -- two underlines ensure that the loop names created in this manner
3934 -- do not conflict with any user defined identifiers), and the flag
3935 -- Has_Created_Identifier is set to True. The only exception to the
3936 -- rule that all loop statement nodes have identifiers occurs for
3937 -- loops constructed by the expander, and the semantic analyzer will
3938 -- create and supply dummy loop identifiers in these cases.
3939
3940 -- N_Loop_Statement
3941 -- Sloc points to LOOP
3942 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3943 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3944 -- Statements (List3)
3945 -- End_Label (Node4)
3946 -- Has_Created_Identifier (Flag15)
3947 -- Is_Null_Loop (Flag16)
3948 -- Suppress_Loop_Warnings (Flag17)
3949
3950 --------------------------
3951 -- 5.5 Iteration Scheme --
3952 --------------------------
3953
3954 -- ITERATION_SCHEME ::=
3955 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3956
3957 -- Gigi restriction: This expander ensures that the type of the
3958 -- Condition field is always Standard.Boolean, even if the type
3959 -- in the source is some non-standard boolean type.
3960
3961 -- N_Iteration_Scheme
3962 -- Sloc points to WHILE or FOR
3963 -- Condition (Node1) (set to Empty if FOR case)
3964 -- Condition_Actions (List3-Sem)
3965 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3966
3967 ---------------------------------------
3968 -- 5.5 Loop parameter specification --
3969 ---------------------------------------
3970
3971 -- LOOP_PARAMETER_SPECIFICATION ::=
3972 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3973
3974 -- N_Loop_Parameter_Specification
3975 -- Sloc points to first identifier
3976 -- Defining_Identifier (Node1)
3977 -- Reverse_Present (Flag15)
3978 -- Discrete_Subtype_Definition (Node4)
3979
3980 --------------------------
3981 -- 5.6 Block Statement --
3982 --------------------------
3983
3984 -- BLOCK_STATEMENT ::=
3985 -- [block_STATEMENT_IDENTIFIER:]
3986 -- [declare
3987 -- DECLARATIVE_PART]
3988 -- begin
3989 -- HANDLED_SEQUENCE_OF_STATEMENTS
3990 -- end [block_IDENTIFIER];
3991
3992 -- Note that the occurrence of a block identifier is not a defining
3993 -- identifier, but rather a referencing occurrence. The defining
3994 -- occurrence is an E_Block entity declared by the implicit label
3995 -- declaration which occurs in the innermost enclosing block statement
3996 -- or body; the block identifier denotes that E_Block.
3997
3998 -- For block statements that come from source code, there is always a
3999 -- block statement identifier present in the tree, denoting an
4000 -- E_Block. In the case where no block identifier is given in the
4001 -- source, the parser creates a name of the form B_n, where n is a
4002 -- decimal integer, and the flag Has_Created_Identifier is set to
4003 -- True. Blocks constructed by the expander usually have no identifier,
4004 -- and no corresponding entity.
4005
4006 -- Note: the block statement created for an extended return statement
4007 -- has an entity, and this entity is an E_Return_Statement, rather than
4008 -- the usual E_Block.
4009
4010 -- Note: Exception_Junk is set for the wrapping blocks created during
4011 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4012
4013 -- N_Block_Statement
4014 -- Sloc points to DECLARE or BEGIN
4015 -- Identifier (Node1) block direct name (set to Empty if not present)
4016 -- Declarations (List2) (set to No_List if no DECLARE part)
4017 -- Handled_Statement_Sequence (Node4)
4018 -- Is_Task_Master (Flag5-Sem)
4019 -- Activation_Chain_Entity (Node3-Sem)
4020 -- Has_Created_Identifier (Flag15)
4021 -- Is_Task_Allocation_Block (Flag6)
4022 -- Is_Asynchronous_Call_Block (Flag7)
4023 -- Exception_Junk (Flag8-Sem)
4024
4025 -------------------------
4026 -- 5.7 Exit Statement --
4027 -------------------------
4028
4029 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4030
4031 -- Gigi restriction: This expander ensures that the type of the
4032 -- Condition field is always Standard.Boolean, even if the type
4033 -- in the source is some non-standard boolean type.
4034
4035 -- N_Exit_Statement
4036 -- Sloc points to EXIT
4037 -- Name (Node2) (set to Empty if no loop name present)
4038 -- Condition (Node1) (set to Empty if no when part present)
4039
4040 -------------------------
4041 -- 5.9 Goto Statement --
4042 -------------------------
4043
4044 -- GOTO_STATEMENT ::= goto label_NAME;
4045
4046 -- N_Goto_Statement
4047 -- Sloc points to GOTO
4048 -- Name (Node2)
4049 -- Exception_Junk (Flag8-Sem)
4050
4051 ---------------------------------
4052 -- 6.1 Subprogram Declaration --
4053 ---------------------------------
4054
4055 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
4056
4057 -- N_Subprogram_Declaration
4058 -- Sloc points to FUNCTION or PROCEDURE
4059 -- Specification (Node1)
4060 -- Body_To_Inline (Node3-Sem)
4061 -- Corresponding_Body (Node5-Sem)
4062 -- Parent_Spec (Node4-Sem)
4063
4064 ------------------------------------------
4065 -- 6.1 Abstract Subprogram Declaration --
4066 ------------------------------------------
4067
4068 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4069 -- SUBPROGRAM_SPECIFICATION is abstract;
4070
4071 -- N_Abstract_Subprogram_Declaration
4072 -- Sloc points to ABSTRACT
4073 -- Specification (Node1)
4074
4075 -----------------------------------
4076 -- 6.1 Subprogram Specification --
4077 -----------------------------------
4078
4079 -- SUBPROGRAM_SPECIFICATION ::=
4080 -- [[not] overriding]
4081 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4082 -- | [[not] overriding]
4083 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4084
4085 -- Note: there are no separate nodes for the profiles, instead the
4086 -- information appears directly in the following nodes.
4087
4088 -- N_Function_Specification
4089 -- Sloc points to FUNCTION
4090 -- Defining_Unit_Name (Node1) (the designator)
4091 -- Elaboration_Boolean (Node2-Sem)
4092 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4093 -- Null_Exclusion_Present (Flag11)
4094 -- Result_Definition (Node4) for result subtype
4095 -- Generic_Parent (Node5-Sem)
4096 -- Must_Override (Flag14) set if overriding indicator present
4097 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4098
4099 -- N_Procedure_Specification
4100 -- Sloc points to PROCEDURE
4101 -- Defining_Unit_Name (Node1)
4102 -- Elaboration_Boolean (Node2-Sem)
4103 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4104 -- Generic_Parent (Node5-Sem)
4105 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4106 -- Must_Override (Flag14) set if overriding indicator present
4107 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4108
4109 -- Note: overriding indicator is an Ada 2005 feature
4110
4111 ---------------------
4112 -- 6.1 Designator --
4113 ---------------------
4114
4115 -- DESIGNATOR ::=
4116 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4117
4118 -- Designators that are simply identifiers or operator symbols appear
4119 -- directly in the tree in this form. The following node is used only
4120 -- in the case where the designator has a parent unit name component.
4121
4122 -- N_Designator
4123 -- Sloc points to period
4124 -- Name (Node2) holds the parent unit name. Note that this is always
4125 -- non-Empty, since this node is only used for the case where a
4126 -- parent library unit package name is present.
4127 -- Identifier (Node1)
4128
4129 -- Note that the identifier can also be an operator symbol here
4130
4131 ------------------------------
4132 -- 6.1 Defining Designator --
4133 ------------------------------
4134
4135 -- DEFINING_DESIGNATOR ::=
4136 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4137
4138 -------------------------------------
4139 -- 6.1 Defining Program Unit Name --
4140 -------------------------------------
4141
4142 -- DEFINING_PROGRAM_UNIT_NAME ::=
4143 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4144
4145 -- The parent unit name is present only in the case of a child unit
4146 -- name (permissible only for Ada 95 for a library level unit, i.e.
4147 -- a unit at scope level one). If no such name is present, the defining
4148 -- program unit name is represented simply as the defining identifier.
4149 -- In the child unit case, the following node is used to represent the
4150 -- child unit name.
4151
4152 -- N_Defining_Program_Unit_Name
4153 -- Sloc points to period
4154 -- Name (Node2) holds the parent unit name. Note that this is always
4155 -- non-Empty, since this node is only used for the case where a
4156 -- parent unit name is present.
4157 -- Defining_Identifier (Node1)
4158
4159 --------------------------
4160 -- 6.1 Operator Symbol --
4161 --------------------------
4162
4163 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4164
4165 -- Note: the fields of the N_Operator_Symbol node are laid out to
4166 -- match the corresponding fields of an N_Character_Literal node. This
4167 -- allows easy conversion of the operator symbol node into a character
4168 -- literal node in the case where a string constant of the form of an
4169 -- operator symbol is scanned out as such, but turns out semantically
4170 -- to be a string literal that is not an operator. For details see
4171 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4172
4173 -- N_Operator_Symbol
4174 -- Sloc points to literal
4175 -- Chars (Name1) contains the Name_Id for the operator symbol
4176 -- Strval (Str3) Id of string value. This is used if the operator
4177 -- symbol turns out to be a normal string after all.
4178 -- Entity (Node4-Sem)
4179 -- Associated_Node (Node4-Sem)
4180 -- Has_Private_View (Flag11-Sem) set in generic units.
4181 -- Etype (Node5-Sem)
4182
4183 -- Note: the Strval field may be set to No_String for generated
4184 -- operator symbols that are known not to be string literals
4185 -- semantically.
4186
4187 -----------------------------------
4188 -- 6.1 Defining Operator Symbol --
4189 -----------------------------------
4190
4191 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4192
4193 -- A defining operator symbol is an entity, which has additional
4194 -- fields depending on the setting of the Ekind field. These
4195 -- additional fields are defined (and access subprograms declared)
4196 -- in package Einfo.
4197
4198 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4199 -- are deliberately layed out to match the layout of fields in an
4200 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4201 -- an operator symbol node into a defining operator symbol node.
4202 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4203 -- for further details.
4204
4205 -- N_Defining_Operator_Symbol
4206 -- Sloc points to literal
4207 -- Chars (Name1) contains the Name_Id for the operator symbol
4208 -- Next_Entity (Node2-Sem)
4209 -- Scope (Node3-Sem)
4210 -- Etype (Node5-Sem)
4211
4212 ----------------------------
4213 -- 6.1 Parameter Profile --
4214 ----------------------------
4215
4216 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4217
4218 ---------------------------------------
4219 -- 6.1 Parameter and Result Profile --
4220 ---------------------------------------
4221
4222 -- PARAMETER_AND_RESULT_PROFILE ::=
4223 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4224 -- | [FORMAL_PART] return ACCESS_DEFINITION
4225
4226 -- There is no explicit node in the tree for a parameter and result
4227 -- profile. Instead the information appears directly in the parent.
4228
4229 ----------------------
4230 -- 6.1 Formal part --
4231 ----------------------
4232
4233 -- FORMAL_PART ::=
4234 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4235
4236 ----------------------------------
4237 -- 6.1 Parameter specification --
4238 ----------------------------------
4239
4240 -- PARAMETER_SPECIFICATION ::=
4241 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4242 -- [:= DEFAULT_EXPRESSION]
4243 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4244 -- [:= DEFAULT_EXPRESSION]
4245
4246 -- Although the syntax allows multiple identifiers in the list, the
4247 -- semantics is as though successive specifications were given with
4248 -- identical type definition and expression components. To simplify
4249 -- semantic processing, the parser represents a multiple declaration
4250 -- case as a sequence of single Specifications, using the More_Ids and
4251 -- Prev_Ids flags to preserve the original source form as described
4252 -- in the section on "Handling of Defining Identifier Lists".
4253
4254 -- N_Parameter_Specification
4255 -- Sloc points to first identifier
4256 -- Defining_Identifier (Node1)
4257 -- In_Present (Flag15)
4258 -- Out_Present (Flag17)
4259 -- Null_Exclusion_Present (Flag11)
4260 -- Parameter_Type (Node2) subtype mark or access definition
4261 -- Expression (Node3) (set to Empty if no default expression present)
4262 -- Do_Accessibility_Check (Flag13-Sem)
4263 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4264 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4265 -- Default_Expression (Node5-Sem)
4266
4267 ---------------
4268 -- 6.1 Mode --
4269 ---------------
4270
4271 -- MODE ::= [in] | in out | out
4272
4273 -- There is no explicit node in the tree for the Mode. Instead the
4274 -- In_Present and Out_Present flags are set in the parent node to
4275 -- record the presence of keywords specifying the mode.
4276
4277 --------------------------
4278 -- 6.3 Subprogram Body --
4279 --------------------------
4280
4281 -- SUBPROGRAM_BODY ::=
4282 -- SUBPROGRAM_SPECIFICATION is
4283 -- DECLARATIVE_PART
4284 -- begin
4285 -- HANDLED_SEQUENCE_OF_STATEMENTS
4286 -- end [DESIGNATOR];
4287
4288 -- N_Subprogram_Body
4289 -- Sloc points to FUNCTION or PROCEDURE
4290 -- Specification (Node1)
4291 -- Declarations (List2)
4292 -- Handled_Statement_Sequence (Node4)
4293 -- Activation_Chain_Entity (Node3-Sem)
4294 -- Corresponding_Spec (Node5-Sem)
4295 -- Acts_As_Spec (Flag4-Sem)
4296 -- Bad_Is_Detected (Flag15) used only by parser
4297 -- Do_Storage_Check (Flag17-Sem)
4298 -- Has_Priority_Pragma (Flag6-Sem)
4299 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4300 -- Is_Entry_Barrier_Function (Flag8-Sem)
4301 -- Is_Task_Master (Flag5-Sem)
4302 -- Was_Originally_Stub (Flag13-Sem)
4303 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4304
4305 -----------------------------------
4306 -- 6.4 Procedure Call Statement --
4307 -----------------------------------
4308
4309 -- PROCEDURE_CALL_STATEMENT ::=
4310 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4311
4312 -- Note: the reason that a procedure call has expression fields is
4313 -- that it semantically resembles an expression, e.g. overloading is
4314 -- allowed and a type is concocted for semantic processing purposes.
4315 -- Certain of these fields, such as Parens are not relevant, but it
4316 -- is easier to just supply all of them together!
4317
4318 -- N_Procedure_Call_Statement
4319 -- Sloc points to first token of name or prefix
4320 -- Name (Node2) stores name or prefix
4321 -- Parameter_Associations (List3) (set to No_List if no
4322 -- actual parameter part)
4323 -- First_Named_Actual (Node4-Sem)
4324 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4325 -- Do_Tag_Check (Flag13-Sem)
4326 -- No_Elaboration_Check (Flag14-Sem)
4327 -- Parameter_List_Truncated (Flag17-Sem)
4328 -- ABE_Is_Certain (Flag18-Sem)
4329 -- plus fields for expression
4330
4331 -- If any IN parameter requires a range check, then the corresponding
4332 -- argument expression has the Do_Range_Check flag set, and the range
4333 -- check is done against the formal type. Note that this argument
4334 -- expression may appear directly in the Parameter_Associations list,
4335 -- or may be a descendent of an N_Parameter_Association node that
4336 -- appears in this list.
4337
4338 ------------------------
4339 -- 6.4 Function Call --
4340 ------------------------
4341
4342 -- FUNCTION_CALL ::=
4343 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4344
4345 -- Note: the parser may generate an indexed component node or simply
4346 -- a name node instead of a function call node. The semantic pass must
4347 -- correct this misidentification.
4348
4349 -- N_Function_Call
4350 -- Sloc points to first token of name or prefix
4351 -- Name (Node2) stores name or prefix
4352 -- Parameter_Associations (List3) (set to No_List if no
4353 -- actual parameter part)
4354 -- First_Named_Actual (Node4-Sem)
4355 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4356 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4357 -- Do_Tag_Check (Flag13-Sem)
4358 -- No_Elaboration_Check (Flag14-Sem)
4359 -- Parameter_List_Truncated (Flag17-Sem)
4360 -- ABE_Is_Certain (Flag18-Sem)
4361 -- plus fields for expression
4362
4363 --------------------------------
4364 -- 6.4 Actual Parameter Part --
4365 --------------------------------
4366
4367 -- ACTUAL_PARAMETER_PART ::=
4368 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4369
4370 --------------------------------
4371 -- 6.4 Parameter Association --
4372 --------------------------------
4373
4374 -- PARAMETER_ASSOCIATION ::=
4375 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4376
4377 -- Note: the N_Parameter_Association node is built only if a formal
4378 -- parameter selector name is present, otherwise the parameter
4379 -- association appears in the tree simply as the node for the
4380 -- explicit actual parameter.
4381
4382 -- N_Parameter_Association
4383 -- Sloc points to formal parameter
4384 -- Selector_Name (Node2) (always non-Empty)
4385 -- Explicit_Actual_Parameter (Node3)
4386 -- Next_Named_Actual (Node4-Sem)
4387
4388 ---------------------------
4389 -- 6.4 Actual Parameter --
4390 ---------------------------
4391
4392 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4393
4394 ---------------------------
4395 -- 6.5 Return Statement --
4396 ---------------------------
4397
4398 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4399
4400 -- In Ada 2005, we have:
4401
4402 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4403
4404 -- EXTENDED_RETURN_STATEMENT ::=
4405 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4406 -- [:= EXPRESSION] [do
4407 -- HANDLED_SEQUENCE_OF_STATEMENTS
4408 -- end return];
4409
4410 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4411
4412 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4413 -- "return statement" is defined in 6.5 to mean a
4414 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4415
4416 -- N_Return_Statement
4417 -- Sloc points to RETURN
4418 -- Return_Statement_Entity (Node5-Sem)
4419 -- Expression (Node3) (set to Empty if no expression present)
4420 -- Storage_Pool (Node1-Sem)
4421 -- Procedure_To_Call (Node2-Sem)
4422 -- Do_Tag_Check (Flag13-Sem)
4423 -- By_Ref (Flag5-Sem)
4424 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4425
4426 -- N_Return_Statement represents a simple_return_statement, and is
4427 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4428 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4429 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4430 -- as Make_Simple_Return_Statement in Sem_Util.
4431
4432 -- Note: Return_Statement_Entity points to an E_Return_Statement
4433
4434 -- If a range check is required, then Do_Range_Check is set on the
4435 -- Expression. The check is against the return subtype of the function.
4436
4437 -- N_Extended_Return_Statement
4438 -- Sloc points to RETURN
4439 -- Return_Statement_Entity (Node5-Sem)
4440 -- Return_Object_Declarations (List3)
4441 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4442 -- Storage_Pool (Node1-Sem)
4443 -- Procedure_To_Call (Node2-Sem)
4444 -- Do_Tag_Check (Flag13-Sem)
4445 -- By_Ref (Flag5-Sem)
4446
4447 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4448 -- Note that Return_Object_Declarations is a list containing the
4449 -- N_Object_Declaration -- see comment on this field above.
4450 -- The declared object will have Is_Return_Object = True.
4451 -- There is no such syntactic category as return_object_declaration
4452 -- in the RM. Return_Object_Declarations represents this portion of
4453 -- the syntax for EXTENDED_RETURN_STATEMENT:
4454 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4455 -- [:= EXPRESSION]
4456
4457 -- There are two entities associated with an extended_return_statement:
4458 -- the Return_Statement_Entity represents the statement itself, and the
4459 -- Defining_Identifier of the Object_Declaration in
4460 -- Return_Object_Declarations represents the object being
4461 -- returned. N_Simple_Return_Statement has only the former.
4462
4463 ------------------------------
4464 -- 7.1 Package Declaration --
4465 ------------------------------
4466
4467 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4468
4469 -- Note: the activation chain entity for a package spec is used for
4470 -- all tasks declared in the package spec, or in the package body.
4471
4472 -- N_Package_Declaration
4473 -- Sloc points to PACKAGE
4474 -- Specification (Node1)
4475 -- Corresponding_Body (Node5-Sem)
4476 -- Parent_Spec (Node4-Sem)
4477 -- Activation_Chain_Entity (Node3-Sem)
4478
4479 --------------------------------
4480 -- 7.1 Package Specification --
4481 --------------------------------
4482
4483 -- PACKAGE_SPECIFICATION ::=
4484 -- package DEFINING_PROGRAM_UNIT_NAME is
4485 -- {BASIC_DECLARATIVE_ITEM}
4486 -- [private
4487 -- {BASIC_DECLARATIVE_ITEM}]
4488 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4489
4490 -- N_Package_Specification
4491 -- Sloc points to PACKAGE
4492 -- Defining_Unit_Name (Node1)
4493 -- Visible_Declarations (List2)
4494 -- Private_Declarations (List3) (set to No_List if no private
4495 -- part present)
4496 -- End_Label (Node4)
4497 -- Generic_Parent (Node5-Sem)
4498 -- Limited_View_Installed (Flag18-Sem)
4499
4500 -----------------------
4501 -- 7.1 Package Body --
4502 -----------------------
4503
4504 -- PACKAGE_BODY ::=
4505 -- package body DEFINING_PROGRAM_UNIT_NAME is
4506 -- DECLARATIVE_PART
4507 -- [begin
4508 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4509 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4510
4511 -- N_Package_Body
4512 -- Sloc points to PACKAGE
4513 -- Defining_Unit_Name (Node1)
4514 -- Declarations (List2)
4515 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4516 -- Corresponding_Spec (Node5-Sem)
4517 -- Was_Originally_Stub (Flag13-Sem)
4518
4519 -- Note: if a source level package does not contain a handled sequence
4520 -- of statements, then the parser supplies a dummy one with a null
4521 -- sequence of statements. Comes_From_Source will be False in this
4522 -- constructed sequence. The reason we need this is for the End_Label
4523 -- field in the HSS.
4524
4525 -----------------------------------
4526 -- 7.4 Private Type Declaration --
4527 -----------------------------------
4528
4529 -- PRIVATE_TYPE_DECLARATION ::=
4530 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4531 -- is [[abstract] tagged] [limited] private;
4532
4533 -- Note: TAGGED is not permitted in Ada 83 mode
4534
4535 -- N_Private_Type_Declaration
4536 -- Sloc points to TYPE
4537 -- Defining_Identifier (Node1)
4538 -- Discriminant_Specifications (List4) (set to No_List if no
4539 -- discriminant part)
4540 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4541 -- Abstract_Present (Flag4)
4542 -- Tagged_Present (Flag15)
4543 -- Limited_Present (Flag17)
4544
4545 ----------------------------------------
4546 -- 7.4 Private Extension Declaration --
4547 ----------------------------------------
4548
4549 -- PRIVATE_EXTENSION_DECLARATION ::=
4550 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4551 -- [abstract] [limited | synchronized]
4552 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4553 -- with private;
4554
4555 -- Note: LIMITED, and private extension declarations are not allowed
4556 -- in Ada 83 mode.
4557
4558 -- N_Private_Extension_Declaration
4559 -- Sloc points to TYPE
4560 -- Defining_Identifier (Node1)
4561 -- Discriminant_Specifications (List4) (set to No_List if no
4562 -- discriminant part)
4563 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4564 -- Abstract_Present (Flag4)
4565 -- Limited_Present (Flag17)
4566 -- Synchronized_Present (Flag7)
4567 -- Subtype_Indication (Node5)
4568 -- Interface_List (List2) (set to No_List if none)
4569
4570 ---------------------
4571 -- 8.4 Use Clause --
4572 ---------------------
4573
4574 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4575
4576 -----------------------------
4577 -- 8.4 Use Package Clause --
4578 -----------------------------
4579
4580 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4581
4582 -- N_Use_Package_Clause
4583 -- Sloc points to USE
4584 -- Names (List2)
4585 -- Next_Use_Clause (Node3-Sem)
4586 -- Hidden_By_Use_Clause (Elist4-Sem)
4587
4588 --------------------------
4589 -- 8.4 Use Type Clause --
4590 --------------------------
4591
4592 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4593
4594 -- Note: use type clause is not permitted in Ada 83 mode
4595
4596 -- N_Use_Type_Clause
4597 -- Sloc points to USE
4598 -- Subtype_Marks (List2)
4599 -- Next_Use_Clause (Node3-Sem)
4600 -- Hidden_By_Use_Clause (Elist4-Sem)
4601
4602 -------------------------------
4603 -- 8.5 Renaming Declaration --
4604 -------------------------------
4605
4606 -- RENAMING_DECLARATION ::=
4607 -- OBJECT_RENAMING_DECLARATION
4608 -- | EXCEPTION_RENAMING_DECLARATION
4609 -- | PACKAGE_RENAMING_DECLARATION
4610 -- | SUBPROGRAM_RENAMING_DECLARATION
4611 -- | GENERIC_RENAMING_DECLARATION
4612
4613 --------------------------------------
4614 -- 8.5 Object Renaming Declaration --
4615 --------------------------------------
4616
4617 -- OBJECT_RENAMING_DECLARATION ::=
4618 -- DEFINING_IDENTIFIER :
4619 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4620 -- | DEFINING_IDENTIFIER :
4621 -- ACCESS_DEFINITION renames object_NAME;
4622
4623 -- Note: Access_Definition is an optional field that gives support to
4624 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4625 -- Subtype_Indication field or else the Access_Definition field.
4626
4627 -- N_Object_Renaming_Declaration
4628 -- Sloc points to first identifier
4629 -- Defining_Identifier (Node1)
4630 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4631 -- Subtype_Mark (Node4) (set to Empty if not present)
4632 -- Access_Definition (Node3) (set to Empty if not present)
4633 -- Name (Node2)
4634 -- Corresponding_Generic_Association (Node5-Sem)
4635
4636 -----------------------------------------
4637 -- 8.5 Exception Renaming Declaration --
4638 -----------------------------------------
4639
4640 -- EXCEPTION_RENAMING_DECLARATION ::=
4641 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4642
4643 -- N_Exception_Renaming_Declaration
4644 -- Sloc points to first identifier
4645 -- Defining_Identifier (Node1)
4646 -- Name (Node2)
4647
4648 ---------------------------------------
4649 -- 8.5 Package Renaming Declaration --
4650 ---------------------------------------
4651
4652 -- PACKAGE_RENAMING_DECLARATION ::=
4653 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4654
4655 -- N_Package_Renaming_Declaration
4656 -- Sloc points to PACKAGE
4657 -- Defining_Unit_Name (Node1)
4658 -- Name (Node2)
4659 -- Parent_Spec (Node4-Sem)
4660
4661 ------------------------------------------
4662 -- 8.5 Subprogram Renaming Declaration --
4663 ------------------------------------------
4664
4665 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4666 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4667
4668 -- N_Subprogram_Renaming_Declaration
4669 -- Sloc points to RENAMES
4670 -- Specification (Node1)
4671 -- Name (Node2)
4672 -- Parent_Spec (Node4-Sem)
4673 -- Corresponding_Spec (Node5-Sem)
4674 -- Corresponding_Formal_Spec (Node3-Sem)
4675 -- From_Default (Flag6-Sem)
4676
4677 -----------------------------------------
4678 -- 8.5.5 Generic Renaming Declaration --
4679 -----------------------------------------
4680
4681 -- GENERIC_RENAMING_DECLARATION ::=
4682 -- generic package DEFINING_PROGRAM_UNIT_NAME
4683 -- renames generic_package_NAME
4684 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4685 -- renames generic_procedure_NAME
4686 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4687 -- renames generic_function_NAME
4688
4689 -- N_Generic_Package_Renaming_Declaration
4690 -- Sloc points to GENERIC
4691 -- Defining_Unit_Name (Node1)
4692 -- Name (Node2)
4693 -- Parent_Spec (Node4-Sem)
4694
4695 -- N_Generic_Procedure_Renaming_Declaration
4696 -- Sloc points to GENERIC
4697 -- Defining_Unit_Name (Node1)
4698 -- Name (Node2)
4699 -- Parent_Spec (Node4-Sem)
4700
4701 -- N_Generic_Function_Renaming_Declaration
4702 -- Sloc points to GENERIC
4703 -- Defining_Unit_Name (Node1)
4704 -- Name (Node2)
4705 -- Parent_Spec (Node4-Sem)
4706
4707 --------------------------------
4708 -- 9.1 Task Type Declaration --
4709 --------------------------------
4710
4711 -- TASK_TYPE_DECLARATION ::=
4712 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4713 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4714
4715 -- N_Task_Type_Declaration
4716 -- Sloc points to TASK
4717 -- Defining_Identifier (Node1)
4718 -- Discriminant_Specifications (List4) (set to No_List if no
4719 -- discriminant part)
4720 -- Interface_List (List2) (set to No_List if none)
4721 -- Task_Definition (Node3) (set to Empty if not present)
4722 -- Corresponding_Body (Node5-Sem)
4723
4724 ----------------------------------
4725 -- 9.1 Single Task Declaration --
4726 ----------------------------------
4727
4728 -- SINGLE_TASK_DECLARATION ::=
4729 -- task DEFINING_IDENTIFIER
4730 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
4731
4732 -- N_Single_Task_Declaration
4733 -- Sloc points to TASK
4734 -- Defining_Identifier (Node1)
4735 -- Interface_List (List2) (set to No_List if none)
4736 -- Task_Definition (Node3) (set to Empty if not present)
4737
4738 --------------------------
4739 -- 9.1 Task Definition --
4740 --------------------------
4741
4742 -- TASK_DEFINITION ::=
4743 -- {TASK_ITEM}
4744 -- [private
4745 -- {TASK_ITEM}]
4746 -- end [task_IDENTIFIER]
4747
4748 -- Note: as a result of semantic analysis, the list of task items can
4749 -- include implicit type declarations resulting from entry families.
4750
4751 -- N_Task_Definition
4752 -- Sloc points to first token of task definition
4753 -- Visible_Declarations (List2)
4754 -- Private_Declarations (List3) (set to No_List if no private part)
4755 -- End_Label (Node4)
4756 -- Has_Priority_Pragma (Flag6-Sem)
4757 -- Has_Storage_Size_Pragma (Flag5-Sem)
4758 -- Has_Task_Info_Pragma (Flag7-Sem)
4759 -- Has_Task_Name_Pragma (Flag8-Sem)
4760 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4761
4762 --------------------
4763 -- 9.1 Task Item --
4764 --------------------
4765
4766 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4767
4768 --------------------
4769 -- 9.1 Task Body --
4770 --------------------
4771
4772 -- TASK_BODY ::=
4773 -- task body task_DEFINING_IDENTIFIER is
4774 -- DECLARATIVE_PART
4775 -- begin
4776 -- HANDLED_SEQUENCE_OF_STATEMENTS
4777 -- end [task_IDENTIFIER];
4778
4779 -- Gigi restriction: This node never appears
4780
4781 -- N_Task_Body
4782 -- Sloc points to TASK
4783 -- Defining_Identifier (Node1)
4784 -- Declarations (List2)
4785 -- Handled_Statement_Sequence (Node4)
4786 -- Is_Task_Master (Flag5-Sem)
4787 -- Activation_Chain_Entity (Node3-Sem)
4788 -- Corresponding_Spec (Node5-Sem)
4789 -- Was_Originally_Stub (Flag13-Sem)
4790
4791 -------------------------------------
4792 -- 9.4 Protected Type Declaration --
4793 -------------------------------------
4794
4795 -- PROTECTED_TYPE_DECLARATION ::=
4796 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4797 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4798
4799 -- Note: protected type declarations are not permitted in Ada 83 mode
4800
4801 -- N_Protected_Type_Declaration
4802 -- Sloc points to PROTECTED
4803 -- Defining_Identifier (Node1)
4804 -- Discriminant_Specifications (List4) (set to No_List if no
4805 -- discriminant part)
4806 -- Interface_List (List2) (set to No_List if none)
4807 -- Protected_Definition (Node3)
4808 -- Corresponding_Body (Node5-Sem)
4809
4810 ---------------------------------------
4811 -- 9.4 Single Protected Declaration --
4812 ---------------------------------------
4813
4814 -- SINGLE_PROTECTED_DECLARATION ::=
4815 -- protected DEFINING_IDENTIFIER
4816 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4817
4818 -- Note: single protected declarations are not allowed in Ada 83 mode
4819
4820 -- N_Single_Protected_Declaration
4821 -- Sloc points to PROTECTED
4822 -- Defining_Identifier (Node1)
4823 -- Interface_List (List2) (set to No_List if none)
4824 -- Protected_Definition (Node3)
4825
4826 -------------------------------
4827 -- 9.4 Protected Definition --
4828 -------------------------------
4829
4830 -- PROTECTED_DEFINITION ::=
4831 -- {PROTECTED_OPERATION_DECLARATION}
4832 -- [private
4833 -- {PROTECTED_ELEMENT_DECLARATION}]
4834 -- end [protected_IDENTIFIER]
4835
4836 -- N_Protected_Definition
4837 -- Sloc points to first token of protected definition
4838 -- Visible_Declarations (List2)
4839 -- Private_Declarations (List3) (set to No_List if no private part)
4840 -- End_Label (Node4)
4841 -- Has_Priority_Pragma (Flag6-Sem)
4842
4843 ------------------------------------------
4844 -- 9.4 Protected Operation Declaration --
4845 ------------------------------------------
4846
4847 -- PROTECTED_OPERATION_DECLARATION ::=
4848 -- SUBPROGRAM_DECLARATION
4849 -- | ENTRY_DECLARATION
4850 -- | REPRESENTATION_CLAUSE
4851
4852 ----------------------------------------
4853 -- 9.4 Protected Element Declaration --
4854 ----------------------------------------
4855
4856 -- PROTECTED_ELEMENT_DECLARATION ::=
4857 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4858
4859 -------------------------
4860 -- 9.4 Protected Body --
4861 -------------------------
4862
4863 -- PROTECTED_BODY ::=
4864 -- protected body DEFINING_IDENTIFIER is
4865 -- {PROTECTED_OPERATION_ITEM}
4866 -- end [protected_IDENTIFIER];
4867
4868 -- Note: protected bodies are not allowed in Ada 83 mode
4869
4870 -- Gigi restriction: This node never appears
4871
4872 -- N_Protected_Body
4873 -- Sloc points to PROTECTED
4874 -- Defining_Identifier (Node1)
4875 -- Declarations (List2) protected operation items (and pragmas)
4876 -- End_Label (Node4)
4877 -- Corresponding_Spec (Node5-Sem)
4878 -- Was_Originally_Stub (Flag13-Sem)
4879
4880 -----------------------------------
4881 -- 9.4 Protected Operation Item --
4882 -----------------------------------
4883
4884 -- PROTECTED_OPERATION_ITEM ::=
4885 -- SUBPROGRAM_DECLARATION
4886 -- | SUBPROGRAM_BODY
4887 -- | ENTRY_BODY
4888 -- | REPRESENTATION_CLAUSE
4889
4890 ------------------------------
4891 -- 9.5.2 Entry Declaration --
4892 ------------------------------
4893
4894 -- ENTRY_DECLARATION ::=
4895 -- [[not] overriding]
4896 -- entry DEFINING_IDENTIFIER
4897 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4898
4899 -- N_Entry_Declaration
4900 -- Sloc points to ENTRY
4901 -- Defining_Identifier (Node1)
4902 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4903 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4904 -- Corresponding_Body (Node5-Sem)
4905 -- Must_Override (Flag14) set if overriding indicator present
4906 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4907
4908 -- Note: overriding indicator is an Ada 2005 feature
4909
4910 -----------------------------
4911 -- 9.5.2 Accept statement --
4912 -----------------------------
4913
4914 -- ACCEPT_STATEMENT ::=
4915 -- accept entry_DIRECT_NAME
4916 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4917 -- HANDLED_SEQUENCE_OF_STATEMENTS
4918 -- end [entry_IDENTIFIER]];
4919
4920 -- Gigi restriction: This node never appears
4921
4922 -- Note: there are no explicit declarations allowed in an accept
4923 -- statement. However, the implicit declarations for any statement
4924 -- identifiers (labels and block/loop identifiers) are declarations
4925 -- that belong logically to the accept statement, and that is why
4926 -- there is a Declarations field in this node.
4927
4928 -- N_Accept_Statement
4929 -- Sloc points to ACCEPT
4930 -- Entry_Direct_Name (Node1)
4931 -- Entry_Index (Node5) (set to Empty if not present)
4932 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4933 -- Handled_Statement_Sequence (Node4)
4934 -- Declarations (List2) (set to No_List if no declarations)
4935
4936 ------------------------
4937 -- 9.5.2 Entry Index --
4938 ------------------------
4939
4940 -- ENTRY_INDEX ::= EXPRESSION
4941
4942 -----------------------
4943 -- 9.5.2 Entry Body --
4944 -----------------------
4945
4946 -- ENTRY_BODY ::=
4947 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4948 -- DECLARATIVE_PART
4949 -- begin
4950 -- HANDLED_SEQUENCE_OF_STATEMENTS
4951 -- end [entry_IDENTIFIER];
4952
4953 -- ENTRY_BARRIER ::= when CONDITION
4954
4955 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4956 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4957 -- too full (it would otherwise have too many fields)
4958
4959 -- Gigi restriction: This node never appears
4960
4961 -- N_Entry_Body
4962 -- Sloc points to ENTRY
4963 -- Defining_Identifier (Node1)
4964 -- Entry_Body_Formal_Part (Node5)
4965 -- Declarations (List2)
4966 -- Handled_Statement_Sequence (Node4)
4967 -- Activation_Chain_Entity (Node3-Sem)
4968
4969 -----------------------------------
4970 -- 9.5.2 Entry Body Formal Part --
4971 -----------------------------------
4972
4973 -- ENTRY_BODY_FORMAL_PART ::=
4974 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4975
4976 -- Note that an entry body formal part node is present even if it is
4977 -- empty. This reflects the grammar, in which it is the components of
4978 -- the entry body formal part that are optional, not the entry body
4979 -- formal part itself. Also this means that the barrier condition
4980 -- always has somewhere to be stored.
4981
4982 -- Gigi restriction: This node never appears
4983
4984 -- N_Entry_Body_Formal_Part
4985 -- Sloc points to first token
4986 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4987 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4988 -- Condition (Node1) from entry barrier of entry body
4989
4990 --------------------------
4991 -- 9.5.2 Entry Barrier --
4992 --------------------------
4993
4994 -- ENTRY_BARRIER ::= when CONDITION
4995
4996 --------------------------------------
4997 -- 9.5.2 Entry Index Specification --
4998 --------------------------------------
4999
5000 -- ENTRY_INDEX_SPECIFICATION ::=
5001 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5002
5003 -- Gigi restriction: This node never appears
5004
5005 -- N_Entry_Index_Specification
5006 -- Sloc points to FOR
5007 -- Defining_Identifier (Node1)
5008 -- Discrete_Subtype_Definition (Node4)
5009
5010 ---------------------------------
5011 -- 9.5.3 Entry Call Statement --
5012 ---------------------------------
5013
5014 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5015
5016 -- The parser may generate a procedure call for this construct. The
5017 -- semantic pass must correct this misidentification where needed.
5018
5019 -- Gigi restriction: This node never appears
5020
5021 -- N_Entry_Call_Statement
5022 -- Sloc points to first token of name
5023 -- Name (Node2)
5024 -- Parameter_Associations (List3) (set to No_List if no
5025 -- actual parameter part)
5026 -- First_Named_Actual (Node4-Sem)
5027
5028 ------------------------------
5029 -- 9.5.4 Requeue Statement --
5030 ------------------------------
5031
5032 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5033
5034 -- Note: requeue statements are not permitted in Ada 83 mode
5035
5036 -- Gigi restriction: This node never appears
5037
5038 -- N_Requeue_Statement
5039 -- Sloc points to REQUEUE
5040 -- Name (Node2)
5041 -- Abort_Present (Flag15)
5042
5043 --------------------------
5044 -- 9.6 Delay Statement --
5045 --------------------------
5046
5047 -- DELAY_STATEMENT ::=
5048 -- DELAY_UNTIL_STATEMENT
5049 -- | DELAY_RELATIVE_STATEMENT
5050
5051 --------------------------------
5052 -- 9.6 Delay Until Statement --
5053 --------------------------------
5054
5055 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5056
5057 -- Note: delay until statements are not permitted in Ada 83 mode
5058
5059 -- Gigi restriction: This node never appears
5060
5061 -- N_Delay_Until_Statement
5062 -- Sloc points to DELAY
5063 -- Expression (Node3)
5064
5065 -----------------------------------
5066 -- 9.6 Delay Relative Statement --
5067 -----------------------------------
5068
5069 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5070
5071 -- Gigi restriction: This node never appears
5072
5073 -- N_Delay_Relative_Statement
5074 -- Sloc points to DELAY
5075 -- Expression (Node3)
5076
5077 ---------------------------
5078 -- 9.7 Select Statement --
5079 ---------------------------
5080
5081 -- SELECT_STATEMENT ::=
5082 -- SELECTIVE_ACCEPT
5083 -- | TIMED_ENTRY_CALL
5084 -- | CONDITIONAL_ENTRY_CALL
5085 -- | ASYNCHRONOUS_SELECT
5086
5087 -----------------------------
5088 -- 9.7.1 Selective Accept --
5089 -----------------------------
5090
5091 -- SELECTIVE_ACCEPT ::=
5092 -- select
5093 -- [GUARD]
5094 -- SELECT_ALTERNATIVE
5095 -- {or
5096 -- [GUARD]
5097 -- SELECT_ALTERNATIVE}
5098 -- [else
5099 -- SEQUENCE_OF_STATEMENTS]
5100 -- end select;
5101
5102 -- Gigi restriction: This node never appears
5103
5104 -- Note: the guard expression, if present, appears in the node for
5105 -- the select alternative.
5106
5107 -- N_Selective_Accept
5108 -- Sloc points to SELECT
5109 -- Select_Alternatives (List1)
5110 -- Else_Statements (List4) (set to No_List if no else part)
5111
5112 ------------------
5113 -- 9.7.1 Guard --
5114 ------------------
5115
5116 -- GUARD ::= when CONDITION =>
5117
5118 -- As noted above, the CONDITION that is part of a GUARD is included
5119 -- in the node for the select alternative for convenience.
5120
5121 -------------------------------
5122 -- 9.7.1 Select Alternative --
5123 -------------------------------
5124
5125 -- SELECT_ALTERNATIVE ::=
5126 -- ACCEPT_ALTERNATIVE
5127 -- | DELAY_ALTERNATIVE
5128 -- | TERMINATE_ALTERNATIVE
5129
5130 -------------------------------
5131 -- 9.7.1 Accept Alternative --
5132 -------------------------------
5133
5134 -- ACCEPT_ALTERNATIVE ::=
5135 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5136
5137 -- Gigi restriction: This node never appears
5138
5139 -- N_Accept_Alternative
5140 -- Sloc points to ACCEPT
5141 -- Accept_Statement (Node2)
5142 -- Condition (Node1) from the guard (set to Empty if no guard present)
5143 -- Statements (List3) (set to Empty_List if no statements)
5144 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5145 -- Accept_Handler_Records (List5-Sem)
5146
5147 ------------------------------
5148 -- 9.7.1 Delay Alternative --
5149 ------------------------------
5150
5151 -- DELAY_ALTERNATIVE ::=
5152 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5153
5154 -- Gigi restriction: This node never appears
5155
5156 -- N_Delay_Alternative
5157 -- Sloc points to DELAY
5158 -- Delay_Statement (Node2)
5159 -- Condition (Node1) from the guard (set to Empty if no guard present)
5160 -- Statements (List3) (set to Empty_List if no statements)
5161 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5162
5163 ----------------------------------
5164 -- 9.7.1 Terminate Alternative --
5165 ----------------------------------
5166
5167 -- TERMINATE_ALTERNATIVE ::= terminate;
5168
5169 -- Gigi restriction: This node never appears
5170
5171 -- N_Terminate_Alternative
5172 -- Sloc points to TERMINATE
5173 -- Condition (Node1) from the guard (set to Empty if no guard present)
5174 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5175 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5176
5177 -----------------------------
5178 -- 9.7.2 Timed Entry Call --
5179 -----------------------------
5180
5181 -- TIMED_ENTRY_CALL ::=
5182 -- select
5183 -- ENTRY_CALL_ALTERNATIVE
5184 -- or
5185 -- DELAY_ALTERNATIVE
5186 -- end select;
5187
5188 -- Gigi restriction: This node never appears
5189
5190 -- N_Timed_Entry_Call
5191 -- Sloc points to SELECT
5192 -- Entry_Call_Alternative (Node1)
5193 -- Delay_Alternative (Node4)
5194
5195 -----------------------------------
5196 -- 9.7.2 Entry Call Alternative --
5197 -----------------------------------
5198
5199 -- ENTRY_CALL_ALTERNATIVE ::=
5200 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5201
5202 -- PROCEDURE_OR_ENTRY_CALL ::=
5203 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5204
5205 -- Gigi restriction: This node never appears
5206
5207 -- N_Entry_Call_Alternative
5208 -- Sloc points to first token of entry call statement
5209 -- Entry_Call_Statement (Node1)
5210 -- Statements (List3) (set to Empty_List if no statements)
5211 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5212
5213 -----------------------------------
5214 -- 9.7.3 Conditional Entry Call --
5215 -----------------------------------
5216
5217 -- CONDITIONAL_ENTRY_CALL ::=
5218 -- select
5219 -- ENTRY_CALL_ALTERNATIVE
5220 -- else
5221 -- SEQUENCE_OF_STATEMENTS
5222 -- end select;
5223
5224 -- Gigi restriction: This node never appears
5225
5226 -- N_Conditional_Entry_Call
5227 -- Sloc points to SELECT
5228 -- Entry_Call_Alternative (Node1)
5229 -- Else_Statements (List4)
5230
5231 --------------------------------
5232 -- 9.7.4 Asynchronous Select --
5233 --------------------------------
5234
5235 -- ASYNCHRONOUS_SELECT ::=
5236 -- select
5237 -- TRIGGERING_ALTERNATIVE
5238 -- then abort
5239 -- ABORTABLE_PART
5240 -- end select;
5241
5242 -- Note: asynchronous select is not permitted in Ada 83 mode
5243
5244 -- Gigi restriction: This node never appears
5245
5246 -- N_Asynchronous_Select
5247 -- Sloc points to SELECT
5248 -- Triggering_Alternative (Node1)
5249 -- Abortable_Part (Node2)
5250
5251 -----------------------------------
5252 -- 9.7.4 Triggering Alternative --
5253 -----------------------------------
5254
5255 -- TRIGGERING_ALTERNATIVE ::=
5256 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5257
5258 -- Gigi restriction: This node never appears
5259
5260 -- N_Triggering_Alternative
5261 -- Sloc points to first token of triggering statement
5262 -- Triggering_Statement (Node1)
5263 -- Statements (List3) (set to Empty_List if no statements)
5264 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5265
5266 ---------------------------------
5267 -- 9.7.4 Triggering Statement --
5268 ---------------------------------
5269
5270 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5271
5272 ---------------------------
5273 -- 9.7.4 Abortable Part --
5274 ---------------------------
5275
5276 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5277
5278 -- Gigi restriction: This node never appears
5279
5280 -- N_Abortable_Part
5281 -- Sloc points to ABORT
5282 -- Statements (List3)
5283
5284 --------------------------
5285 -- 9.8 Abort Statement --
5286 --------------------------
5287
5288 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5289
5290 -- Gigi restriction: This node never appears
5291
5292 -- N_Abort_Statement
5293 -- Sloc points to ABORT
5294 -- Names (List2)
5295
5296 -------------------------
5297 -- 10.1.1 Compilation --
5298 -------------------------
5299
5300 -- COMPILATION ::= {COMPILATION_UNIT}
5301
5302 -- There is no explicit node in the tree for a compilation, since in
5303 -- general the compiler is processing only a single compilation unit
5304 -- at a time. It is possible to parse multiple units in syntax check
5305 -- only mode, but they the trees are discarded in any case.
5306
5307 ------------------------------
5308 -- 10.1.1 Compilation Unit --
5309 ------------------------------
5310
5311 -- COMPILATION_UNIT ::=
5312 -- CONTEXT_CLAUSE LIBRARY_ITEM
5313 -- | CONTEXT_CLAUSE SUBUNIT
5314
5315 -- The N_Compilation_Unit node itself represents the above syntax.
5316 -- However, there are two additional items not reflected in the above
5317 -- syntax. First we have the global declarations that are added by the
5318 -- code generator. These are outer level declarations (so they cannot
5319 -- be represented as being inside the units). An example is the wrapper
5320 -- subprograms that are created to do ABE checking. As always a list of
5321 -- declarations can contain actions as well (i.e. statements), and such
5322 -- statements are executed as part of the elaboration of the unit. Note
5323 -- that all such declarations are elaborated before the library unit.
5324
5325 -- Similarly, certain actions need to be elaborated at the completion
5326 -- of elaboration of the library unit (notably the statement that sets
5327 -- the Boolean flag indicating that elaboration is complete).
5328
5329 -- The third item not reflected in the syntax is pragmas that appear
5330 -- after the compilation unit. As always pragmas are a problem since
5331 -- they are not part of the formal syntax, but can be stuck into the
5332 -- source following a set of ad hoc rules, and we have to find an ad
5333 -- hoc way of sticking them into the tree. For pragmas that appear
5334 -- before the library unit, we just consider them to be part of the
5335 -- context clause, and pragmas can appear in the Context_Items list
5336 -- of the compilation unit. However, pragmas can also appear after
5337 -- the library item.
5338
5339 -- To deal with all these problems, we create an auxiliary node for
5340 -- a compilation unit, referenced from the N_Compilation_Unit node
5341 -- that contains these three items.
5342
5343 -- N_Compilation_Unit
5344 -- Sloc points to first token of defining unit name
5345 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5346 -- Context_Items (List1) context items and pragmas preceding unit
5347 -- Private_Present (Flag15) set if library unit has private keyword
5348 -- Unit (Node2) library item or subunit
5349 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5350 -- Has_No_Elaboration_Code (Flag17-Sem)
5351 -- Body_Required (Flag13-Sem) set for spec if body is required
5352 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5353 -- First_Inlined_Subprogram (Node3-Sem)
5354
5355 -- N_Compilation_Unit_Aux
5356 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5357 -- Declarations (List2) (set to No_List if no global declarations)
5358 -- Actions (List1) (set to No_List if no actions)
5359 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5360 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5361
5362 --------------------------
5363 -- 10.1.1 Library Item --
5364 --------------------------
5365
5366 -- LIBRARY_ITEM ::=
5367 -- [private] LIBRARY_UNIT_DECLARATION
5368 -- | LIBRARY_UNIT_BODY
5369 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5370
5371 -- Note: PRIVATE is not allowed in Ada 83 mode
5372
5373 -- There is no explicit node in the tree for library item, instead
5374 -- the declaration or body, and the flag for private if present,
5375 -- appear in the N_Compilation_Unit clause.
5376
5377 --------------------------------------
5378 -- 10.1.1 Library Unit Declaration --
5379 --------------------------------------
5380
5381 -- LIBRARY_UNIT_DECLARATION ::=
5382 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5383 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5384
5385 -----------------------------------------------
5386 -- 10.1.1 Library Unit Renaming Declaration --
5387 -----------------------------------------------
5388
5389 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5390 -- PACKAGE_RENAMING_DECLARATION
5391 -- | GENERIC_RENAMING_DECLARATION
5392 -- | SUBPROGRAM_RENAMING_DECLARATION
5393
5394 -------------------------------
5395 -- 10.1.1 Library unit body --
5396 -------------------------------
5397
5398 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5399
5400 ------------------------------
5401 -- 10.1.1 Parent Unit Name --
5402 ------------------------------
5403
5404 -- PARENT_UNIT_NAME ::= NAME
5405
5406 ----------------------------
5407 -- 10.1.2 Context clause --
5408 ----------------------------
5409
5410 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5411
5412 -- The context clause can include pragmas, and any pragmas that appear
5413 -- before the context clause proper (i.e. all configuration pragmas,
5414 -- also appear at the front of this list).
5415
5416 --------------------------
5417 -- 10.1.2 Context_Item --
5418 --------------------------
5419
5420 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5421
5422 -------------------------
5423 -- 10.1.2 With clause --
5424 -------------------------
5425
5426 -- WITH_CLAUSE ::=
5427 -- with library_unit_NAME {,library_unit_NAME};
5428
5429 -- A separate With clause is built for each name, so that we have
5430 -- a Corresponding_Spec field for each with'ed spec. The flags
5431 -- First_Name and Last_Name are used to reconstruct the exact
5432 -- source form. When a list of names appears in one with clause,
5433 -- the first name in the list has First_Name set, and the last
5434 -- has Last_Name set. If the with clause has only one name, then
5435 -- both of the flags First_Name and Last_Name are set in this name.
5436
5437 -- Note: in the case of implicit with's that are installed by the
5438 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5439 -- set to Standard_Location, but it is incorrect to test the Sloc
5440 -- to find out if a with clause is implicit, test the flag instead.
5441
5442 -- N_With_Clause
5443 -- Sloc points to first token of library unit name
5444 -- Name (Node2)
5445 -- Library_Unit (Node4-Sem)
5446 -- Corresponding_Spec (Node5-Sem)
5447 -- First_Name (Flag5) (set to True if first name or only one name)
5448 -- Last_Name (Flag6) (set to True if last name or only one name)
5449 -- Context_Installed (Flag13-Sem)
5450 -- Elaborate_Present (Flag4-Sem)
5451 -- Elaborate_All_Present (Flag14-Sem)
5452 -- Elaborate_All_Desirable (Flag9-Sem)
5453 -- Elaborate_Desirable (Flag11-Sem)
5454 -- Private_Present (Flag15) set if with_clause has private keyword
5455 -- Implicit_With (Flag16-Sem)
5456 -- Limited_Present (Flag17) set if LIMITED is present
5457 -- Limited_View_Installed (Flag18-Sem)
5458 -- Unreferenced_In_Spec (Flag7-Sem)
5459 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5460
5461 -- Note: Limited_Present and Limited_View_Installed give support to
5462 -- Ada 2005 (AI-50217).
5463 -- Similarly, Private_Present gives support to AI-50262.
5464
5465 ----------------------
5466 -- With_Type clause --
5467 ----------------------
5468
5469 -- This is a GNAT extension, used to implement mutually recursive
5470 -- types declared in different packages.
5471 -- Note: this is now obsolete. The functionality of this construct
5472 -- is now implemented by the Ada 2005 Limited_with_Clause.
5473
5474 ---------------------
5475 -- 10.2 Body stub --
5476 ---------------------
5477
5478 -- BODY_STUB ::=
5479 -- SUBPROGRAM_BODY_STUB
5480 -- | PACKAGE_BODY_STUB
5481 -- | TASK_BODY_STUB
5482 -- | PROTECTED_BODY_STUB
5483
5484 ----------------------------------
5485 -- 10.1.3 Subprogram Body Stub --
5486 ----------------------------------
5487
5488 -- SUBPROGRAM_BODY_STUB ::=
5489 -- SUBPROGRAM_SPECIFICATION is separate;
5490
5491 -- N_Subprogram_Body_Stub
5492 -- Sloc points to FUNCTION or PROCEDURE
5493 -- Specification (Node1)
5494 -- Library_Unit (Node4-Sem) points to the subunit
5495 -- Corresponding_Body (Node5-Sem)
5496
5497 -------------------------------
5498 -- 10.1.3 Package Body Stub --
5499 -------------------------------
5500
5501 -- PACKAGE_BODY_STUB ::=
5502 -- package body DEFINING_IDENTIFIER is separate;
5503
5504 -- N_Package_Body_Stub
5505 -- Sloc points to PACKAGE
5506 -- Defining_Identifier (Node1)
5507 -- Library_Unit (Node4-Sem) points to the subunit
5508 -- Corresponding_Body (Node5-Sem)
5509
5510 ----------------------------
5511 -- 10.1.3 Task Body Stub --
5512 ----------------------------
5513
5514 -- TASK_BODY_STUB ::=
5515 -- task body DEFINING_IDENTIFIER is separate;
5516
5517 -- N_Task_Body_Stub
5518 -- Sloc points to TASK
5519 -- Defining_Identifier (Node1)
5520 -- Library_Unit (Node4-Sem) points to the subunit
5521 -- Corresponding_Body (Node5-Sem)
5522
5523 ---------------------------------
5524 -- 10.1.3 Protected Body Stub --
5525 ---------------------------------
5526
5527 -- PROTECTED_BODY_STUB ::=
5528 -- protected body DEFINING_IDENTIFIER is separate;
5529
5530 -- Note: protected body stubs are not allowed in Ada 83 mode
5531
5532 -- N_Protected_Body_Stub
5533 -- Sloc points to PROTECTED
5534 -- Defining_Identifier (Node1)
5535 -- Library_Unit (Node4-Sem) points to the subunit
5536 -- Corresponding_Body (Node5-Sem)
5537
5538 ---------------------
5539 -- 10.1.3 Subunit --
5540 ---------------------
5541
5542 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5543
5544 -- N_Subunit
5545 -- Sloc points to SEPARATE
5546 -- Name (Node2) is the name of the parent unit
5547 -- Proper_Body (Node1) is the subunit body
5548 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5549
5550 ---------------------------------
5551 -- 11.1 Exception Declaration --
5552 ---------------------------------
5553
5554 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5555
5556 -- For consistency with object declarations etc., the parser converts
5557 -- the case of multiple identifiers being declared to a series of
5558 -- declarations in which the expression is copied, using the More_Ids
5559 -- and Prev_Ids flags to remember the source form as described in the
5560 -- section on "Handling of Defining Identifier Lists".
5561
5562 -- N_Exception_Declaration
5563 -- Sloc points to EXCEPTION
5564 -- Defining_Identifier (Node1)
5565 -- Expression (Node3-Sem)
5566 -- Renaming_Exception (Node2-Sem)
5567 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5568 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5569
5570 ------------------------------------------
5571 -- 11.2 Handled Sequence Of Statements --
5572 ------------------------------------------
5573
5574 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5575 -- SEQUENCE_OF_STATEMENTS
5576 -- [exception
5577 -- EXCEPTION_HANDLER
5578 -- {EXCEPTION_HANDLER}]
5579 -- [at end
5580 -- cleanup_procedure_call (param, param, param, ...);]
5581
5582 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5583 -- used only internally currently, but is considered to be syntactic.
5584 -- At the moment, the only cleanup action allowed is a single call to
5585 -- a parameterless procedure, and the Identifier field of the node is
5586 -- the procedure to be called. Also there is a current restriction
5587 -- that exception handles and a cleanup cannot be present in the same
5588 -- frame, so at least one of Exception_Handlers or the Identifier must
5589 -- be missing.
5590
5591 -- Actually, more accurately, this restriction applies to the original
5592 -- source program. In the expanded tree, if the At_End_Proc field is
5593 -- present, then there will also be an exception handler of the form:
5594
5595 -- when all others =>
5596 -- cleanup;
5597 -- raise;
5598
5599 -- where cleanup is the procedure to be generated. The reason we do
5600 -- this is so that the front end can handle the necessary entries in
5601 -- the exception tables, and other exception handler actions required
5602 -- as part of the normal handling for exception handlers.
5603
5604 -- The AT END cleanup handler protects only the sequence of statements
5605 -- (not the associated declarations of the parent), just like exception
5606 -- handlers. The big difference is that the cleanup procedure is called
5607 -- on either a normal or an abnormal exit from the statement sequence.
5608
5609 -- Note: the list of Exception_Handlers can contain pragmas as well
5610 -- as actual handlers. In practice these pragmas can only occur at
5611 -- the start of the list, since any pragmas occurring later on will
5612 -- be included in the statement list of the corresponding handler.
5613
5614 -- Note: although in the Ada syntax, the sequence of statements in
5615 -- a handled sequence of statements can only contain statements, we
5616 -- allow free mixing of declarations and statements in the resulting
5617 -- expanded tree. This is for example used to deal with the case of
5618 -- a cleanup procedure that must handle declarations as well as the
5619 -- statements of a block.
5620
5621 -- N_Handled_Sequence_Of_Statements
5622 -- Sloc points to first token of first statement
5623 -- Statements (List3)
5624 -- End_Label (Node4) (set to Empty if expander generated)
5625 -- Exception_Handlers (List5) (set to No_List if none present)
5626 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5627 -- First_Real_Statement (Node2-Sem)
5628 -- Zero_Cost_Handling (Flag5-Sem)
5629
5630 -- Note: the parent always contains a Declarations field which contains
5631 -- declarations associated with the handled sequence of statements. This
5632 -- is true even in the case of an accept statement (see description of
5633 -- the N_Accept_Statement node).
5634
5635 -- End_Label refers to the containing construct
5636
5637 -----------------------------
5638 -- 11.2 Exception Handler --
5639 -----------------------------
5640
5641 -- EXCEPTION_HANDLER ::=
5642 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5643 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5644 -- SEQUENCE_OF_STATEMENTS
5645
5646 -- Note: choice parameter specification is not allowed in Ada 83 mode
5647
5648 -- N_Exception_Handler
5649 -- Sloc points to WHEN
5650 -- Choice_Parameter (Node2) (set to Empty if not present)
5651 -- Exception_Choices (List4)
5652 -- Statements (List3)
5653 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5654 -- Zero_Cost_Handling (Flag5-Sem)
5655 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5656 -- Local_Raise_Not_OK (Flag7-Sem)
5657 -- Has_Local_Raise (Flag8-Sem)
5658
5659 ------------------------------------------
5660 -- 11.2 Choice parameter specification --
5661 ------------------------------------------
5662
5663 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5664
5665 ----------------------------
5666 -- 11.2 Exception Choice --
5667 ----------------------------
5668
5669 -- EXCEPTION_CHOICE ::= exception_NAME | others
5670
5671 -- Except in the case of OTHERS, no explicit node appears in the tree
5672 -- for exception choice. Instead the exception name appears directly.
5673 -- An OTHERS choice is represented by a N_Others_Choice node (see
5674 -- section 3.8.1.
5675
5676 -- Note: for the exception choice created for an at end handler, the
5677 -- exception choice is an N_Others_Choice node with All_Others set.
5678
5679 ---------------------------
5680 -- 11.3 Raise Statement --
5681 ---------------------------
5682
5683 -- RAISE_STATEMENT ::= raise [exception_NAME];
5684
5685 -- In Ada 2005, we have
5686
5687 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5688
5689 -- N_Raise_Statement
5690 -- Sloc points to RAISE
5691 -- Name (Node2) (set to Empty if no exception name present)
5692 -- Expression (Node3) (set to Empty if no expression present)
5693 -- From_At_End (Flag4-Sem)
5694
5695 -------------------------------
5696 -- 12.1 Generic Declaration --
5697 -------------------------------
5698
5699 -- GENERIC_DECLARATION ::=
5700 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5701
5702 ------------------------------------------
5703 -- 12.1 Generic Subprogram Declaration --
5704 ------------------------------------------
5705
5706 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5707 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5708
5709 -- Note: Generic_Formal_Declarations can include pragmas
5710
5711 -- N_Generic_Subprogram_Declaration
5712 -- Sloc points to GENERIC
5713 -- Specification (Node1) subprogram specification
5714 -- Corresponding_Body (Node5-Sem)
5715 -- Generic_Formal_Declarations (List2) from generic formal part
5716 -- Parent_Spec (Node4-Sem)
5717
5718 ---------------------------------------
5719 -- 12.1 Generic Package Declaration --
5720 ---------------------------------------
5721
5722 -- GENERIC_PACKAGE_DECLARATION ::=
5723 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5724
5725 -- Note: when we do generics right, the Activation_Chain_Entity entry
5726 -- for this node can be removed (since the expander won't see generic
5727 -- units any more)???.
5728
5729 -- Note: Generic_Formal_Declarations can include pragmas
5730
5731 -- N_Generic_Package_Declaration
5732 -- Sloc points to GENERIC
5733 -- Specification (Node1) package specification
5734 -- Corresponding_Body (Node5-Sem)
5735 -- Generic_Formal_Declarations (List2) from generic formal part
5736 -- Parent_Spec (Node4-Sem)
5737 -- Activation_Chain_Entity (Node3-Sem)
5738
5739 -------------------------------
5740 -- 12.1 Generic Formal Part --
5741 -------------------------------
5742
5743 -- GENERIC_FORMAL_PART ::=
5744 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5745
5746 ------------------------------------------------
5747 -- 12.1 Generic Formal Parameter Declaration --
5748 ------------------------------------------------
5749
5750 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5751 -- FORMAL_OBJECT_DECLARATION
5752 -- | FORMAL_TYPE_DECLARATION
5753 -- | FORMAL_SUBPROGRAM_DECLARATION
5754 -- | FORMAL_PACKAGE_DECLARATION
5755
5756 ---------------------------------
5757 -- 12.3 Generic Instantiation --
5758 ---------------------------------
5759
5760 -- GENERIC_INSTANTIATION ::=
5761 -- package DEFINING_PROGRAM_UNIT_NAME is
5762 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5763 -- | [[not] overriding]
5764 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5765 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5766 -- | [[not] overriding]
5767 -- function DEFINING_DESIGNATOR is
5768 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5769
5770 -- N_Package_Instantiation
5771 -- Sloc points to PACKAGE
5772 -- Defining_Unit_Name (Node1)
5773 -- Name (Node2)
5774 -- Generic_Associations (List3) (set to No_List if no
5775 -- generic actual part)
5776 -- Parent_Spec (Node4-Sem)
5777 -- Instance_Spec (Node5-Sem)
5778 -- ABE_Is_Certain (Flag18-Sem)
5779
5780 -- N_Procedure_Instantiation
5781 -- Sloc points to PROCEDURE
5782 -- Defining_Unit_Name (Node1)
5783 -- Name (Node2)
5784 -- Parent_Spec (Node4-Sem)
5785 -- Generic_Associations (List3) (set to No_List if no
5786 -- generic actual part)
5787 -- Instance_Spec (Node5-Sem)
5788 -- Must_Override (Flag14) set if overriding indicator present
5789 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5790 -- ABE_Is_Certain (Flag18-Sem)
5791
5792 -- N_Function_Instantiation
5793 -- Sloc points to FUNCTION
5794 -- Defining_Unit_Name (Node1)
5795 -- Name (Node2)
5796 -- Generic_Associations (List3) (set to No_List if no
5797 -- generic actual part)
5798 -- Parent_Spec (Node4-Sem)
5799 -- Instance_Spec (Node5-Sem)
5800 -- Must_Override (Flag14) set if overriding indicator present
5801 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5802 -- ABE_Is_Certain (Flag18-Sem)
5803
5804 -- Note: overriding indicator is an Ada 2005 feature
5805
5806 -------------------------------
5807 -- 12.3 Generic Actual Part --
5808 -------------------------------
5809
5810 -- GENERIC_ACTUAL_PART ::=
5811 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5812
5813 -------------------------------
5814 -- 12.3 Generic Association --
5815 -------------------------------
5816
5817 -- GENERIC_ASSOCIATION ::=
5818 -- [generic_formal_parameter_SELECTOR_NAME =>]
5819
5820 -- Note: unlike the procedure call case, a generic association node
5821 -- is generated for every association, even if no formal parameter
5822 -- selector name is present. In this case the parser will leave the
5823 -- Selector_Name field set to Empty, to be filled in later by the
5824 -- semantic pass.
5825
5826 -- In Ada 2005, a formal may be associated with a box, if the
5827 -- association is part of the list of actuals for a formal package.
5828 -- If the association is given by OTHERS => <>, the association is
5829 -- an N_Others_Choice.
5830
5831 -- N_Generic_Association
5832 -- Sloc points to first token of generic association
5833 -- Selector_Name (Node2) (set to Empty if no formal
5834 -- parameter selector name)
5835 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5836 -- Box_Present (Flag15) (for formal_package associations with a box)
5837
5838 ---------------------------------------------
5839 -- 12.3 Explicit Generic Actual Parameter --
5840 ---------------------------------------------
5841
5842 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5843 -- EXPRESSION | variable_NAME | subprogram_NAME
5844 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5845
5846 -------------------------------------
5847 -- 12.4 Formal Object Declaration --
5848 -------------------------------------
5849
5850 -- FORMAL_OBJECT_DECLARATION ::=
5851 -- DEFINING_IDENTIFIER_LIST :
5852 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5853 -- | DEFINING_IDENTIFIER_LIST :
5854 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5855
5856 -- Although the syntax allows multiple identifiers in the list, the
5857 -- semantics is as though successive declarations were given with
5858 -- identical type definition and expression components. To simplify
5859 -- semantic processing, the parser represents a multiple declaration
5860 -- case as a sequence of single declarations, using the More_Ids and
5861 -- Prev_Ids flags to preserve the original source form as described
5862 -- in the section on "Handling of Defining Identifier Lists".
5863
5864 -- N_Formal_Object_Declaration
5865 -- Sloc points to first identifier
5866 -- Defining_Identifier (Node1)
5867 -- In_Present (Flag15)
5868 -- Out_Present (Flag17)
5869 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5870 -- Subtype_Mark (Node4) (set to Empty if not present)
5871 -- Access_Definition (Node3) (set to Empty if not present)
5872 -- Default_Expression (Node5) (set to Empty if no default expression)
5873 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5874 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5875
5876 -----------------------------------
5877 -- 12.5 Formal Type Declaration --
5878 -----------------------------------
5879
5880 -- FORMAL_TYPE_DECLARATION ::=
5881 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5882 -- is FORMAL_TYPE_DEFINITION;
5883
5884 -- N_Formal_Type_Declaration
5885 -- Sloc points to TYPE
5886 -- Defining_Identifier (Node1)
5887 -- Formal_Type_Definition (Node3)
5888 -- Discriminant_Specifications (List4) (set to No_List if no
5889 -- discriminant part)
5890 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5891
5892 ----------------------------------
5893 -- 12.5 Formal type definition --
5894 ----------------------------------
5895
5896 -- FORMAL_TYPE_DEFINITION ::=
5897 -- FORMAL_PRIVATE_TYPE_DEFINITION
5898 -- | FORMAL_DERIVED_TYPE_DEFINITION
5899 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5900 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5901 -- | FORMAL_MODULAR_TYPE_DEFINITION
5902 -- | FORMAL_FLOATING_POINT_DEFINITION
5903 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5904 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5905 -- | FORMAL_ARRAY_TYPE_DEFINITION
5906 -- | FORMAL_ACCESS_TYPE_DEFINITION
5907 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5908
5909 ---------------------------------------------
5910 -- 12.5.1 Formal Private Type Definition --
5911 ---------------------------------------------
5912
5913 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5914 -- [[abstract] tagged] [limited] private
5915
5916 -- Note: TAGGED is not allowed in Ada 83 mode
5917
5918 -- N_Formal_Private_Type_Definition
5919 -- Sloc points to PRIVATE
5920 -- Abstract_Present (Flag4)
5921 -- Tagged_Present (Flag15)
5922 -- Limited_Present (Flag17)
5923
5924 --------------------------------------------
5925 -- 12.5.1 Formal Derived Type Definition --
5926 --------------------------------------------
5927
5928 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5929 -- [abstract] [limited | synchronized]
5930 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5931 -- Note: this construct is not allowed in Ada 83 mode
5932
5933 -- N_Formal_Derived_Type_Definition
5934 -- Sloc points to NEW
5935 -- Subtype_Mark (Node4)
5936 -- Private_Present (Flag15)
5937 -- Abstract_Present (Flag4)
5938 -- Limited_Present (Flag17)
5939 -- Synchronized_Present (Flag7)
5940 -- Interface_List (List2) (set to No_List if none)
5941
5942 ---------------------------------------------
5943 -- 12.5.2 Formal Discrete Type Definition --
5944 ---------------------------------------------
5945
5946 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5947
5948 -- N_Formal_Discrete_Type_Definition
5949 -- Sloc points to (
5950
5951 ---------------------------------------------------
5952 -- 12.5.2 Formal Signed Integer Type Definition --
5953 ---------------------------------------------------
5954
5955 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5956
5957 -- N_Formal_Signed_Integer_Type_Definition
5958 -- Sloc points to RANGE
5959
5960 --------------------------------------------
5961 -- 12.5.2 Formal Modular Type Definition --
5962 --------------------------------------------
5963
5964 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5965
5966 -- N_Formal_Modular_Type_Definition
5967 -- Sloc points to MOD
5968
5969 ----------------------------------------------
5970 -- 12.5.2 Formal Floating Point Definition --
5971 ----------------------------------------------
5972
5973 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5974
5975 -- N_Formal_Floating_Point_Definition
5976 -- Sloc points to DIGITS
5977
5978 ----------------------------------------------------
5979 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5980 ----------------------------------------------------
5981
5982 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5983
5984 -- N_Formal_Ordinary_Fixed_Point_Definition
5985 -- Sloc points to DELTA
5986
5987 ---------------------------------------------------
5988 -- 12.5.2 Formal Decimal Fixed Point Definition --
5989 ---------------------------------------------------
5990
5991 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5992
5993 -- Note: formal decimal fixed point definition not allowed in Ada 83
5994
5995 -- N_Formal_Decimal_Fixed_Point_Definition
5996 -- Sloc points to DELTA
5997
5998 ------------------------------------------
5999 -- 12.5.3 Formal Array Type Definition --
6000 ------------------------------------------
6001
6002 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6003
6004 -------------------------------------------
6005 -- 12.5.4 Formal Access Type Definition --
6006 -------------------------------------------
6007
6008 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6009
6010 ----------------------------------------------
6011 -- 12.5.5 Formal Interface Type Definition --
6012 ----------------------------------------------
6013
6014 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6015
6016 -----------------------------------------
6017 -- 12.6 Formal Subprogram Declaration --
6018 -----------------------------------------
6019
6020 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6021 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6022 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6023
6024 --------------------------------------------------
6025 -- 12.6 Formal Concrete Subprogram Declaration --
6026 --------------------------------------------------
6027
6028 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6029 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
6030
6031 -- N_Formal_Concrete_Subprogram_Declaration
6032 -- Sloc points to WITH
6033 -- Specification (Node1)
6034 -- Default_Name (Node2) (set to Empty if no subprogram default)
6035 -- Box_Present (Flag15)
6036
6037 -- Note: if no subprogram default is present, then Name is set
6038 -- to Empty, and Box_Present is False.
6039
6040 --------------------------------------------------
6041 -- 12.6 Formal Abstract Subprogram Declaration --
6042 --------------------------------------------------
6043
6044 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6045 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
6046
6047 -- N_Formal_Abstract_Subprogram_Declaration
6048 -- Sloc points to WITH
6049 -- Specification (Node1)
6050 -- Default_Name (Node2) (set to Empty if no subprogram default)
6051 -- Box_Present (Flag15)
6052
6053 -- Note: if no subprogram default is present, then Name is set
6054 -- to Empty, and Box_Present is False.
6055
6056 ------------------------------
6057 -- 12.6 Subprogram Default --
6058 ------------------------------
6059
6060 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6061
6062 -- There is no separate node in the tree for a subprogram default.
6063 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6064 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6065 -- default name or box indication, as needed.
6066
6067 ------------------------
6068 -- 12.6 Default Name --
6069 ------------------------
6070
6071 -- DEFAULT_NAME ::= NAME
6072
6073 --------------------------------------
6074 -- 12.7 Formal Package Declaration --
6075 --------------------------------------
6076
6077 -- FORMAL_PACKAGE_DECLARATION ::=
6078 -- with package DEFINING_IDENTIFIER
6079 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
6080
6081 -- Note: formal package declarations not allowed in Ada 83 mode
6082
6083 -- N_Formal_Package_Declaration
6084 -- Sloc points to WITH
6085 -- Defining_Identifier (Node1)
6086 -- Name (Node2)
6087 -- Generic_Associations (List3) (set to No_List if (<>) case or
6088 -- empty generic actual part)
6089 -- Box_Present (Flag15)
6090 -- Instance_Spec (Node5-Sem)
6091 -- ABE_Is_Certain (Flag18-Sem)
6092
6093 --------------------------------------
6094 -- 12.7 Formal Package Actual Part --
6095 --------------------------------------
6096
6097 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6098 -- ([OTHERS] => <>)
6099 -- | [GENERIC_ACTUAL_PART]
6100 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6101
6102 -- FORMAL_PACKAGE_ASSOCIATION ::=
6103 -- GENERIC_ASSOCIATION
6104 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6105
6106 -- There is no explicit node in the tree for a formal package actual
6107 -- part. Instead the information appears in the parent node (i.e. the
6108 -- formal package declaration node itself).
6109
6110 -- There is no explicit node for a formal package association. All of
6111 -- them are represented either by a generic association, possibly with
6112 -- Box_Present, or by an N_Others_Choice.
6113
6114 ---------------------------------
6115 -- 13.1 Representation clause --
6116 ---------------------------------
6117
6118 -- REPRESENTATION_CLAUSE ::=
6119 -- ATTRIBUTE_DEFINITION_CLAUSE
6120 -- | ENUMERATION_REPRESENTATION_CLAUSE
6121 -- | RECORD_REPRESENTATION_CLAUSE
6122 -- | AT_CLAUSE
6123
6124 ----------------------
6125 -- 13.1 Local Name --
6126 ----------------------
6127
6128 -- LOCAL_NAME :=
6129 -- DIRECT_NAME
6130 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6131 -- | library_unit_NAME
6132
6133 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6134 -- as an attribute reference, which has essentially the same form.
6135
6136 ---------------------------------------
6137 -- 13.3 Attribute definition clause --
6138 ---------------------------------------
6139
6140 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6141 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6142 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6143
6144 -- In Ada 83, the expression must be a simple expression and the
6145 -- local name must be a direct name.
6146
6147 -- Note: the only attribute definition clause that is processed by
6148 -- gigi is an address clause. For all other cases, the information
6149 -- is extracted by the front end and either results in setting entity
6150 -- information, e.g. Esize for the Size clause, or in appropriate
6151 -- expansion actions (e.g. in the case of Storage_Size).
6152
6153 -- For an address clause, Gigi constructs the appropriate addressing
6154 -- code. It also ensures that no aliasing optimizations are made
6155 -- for the object for which the address clause appears.
6156
6157 -- Note: for an address clause used to achieve an overlay:
6158
6159 -- A : Integer;
6160 -- B : Integer;
6161 -- for B'Address use A'Address;
6162
6163 -- the above rule means that Gigi will ensure that no optimizations
6164 -- will be made for B that would violate the implementation advice
6165 -- of RM 13.3(19). However, this advice applies only to B and not
6166 -- to A, which seems unfortunate. The GNAT front end will mark the
6167 -- object A as volatile to also prevent unwanted optimization
6168 -- assumptions based on no aliasing being made for B.
6169
6170 -- N_Attribute_Definition_Clause
6171 -- Sloc points to FOR
6172 -- Name (Node2) the local name
6173 -- Chars (Name1) the identifier name from the attribute designator
6174 -- Expression (Node3) the expression or name
6175 -- Entity (Node4-Sem)
6176 -- Next_Rep_Item (Node5-Sem)
6177 -- From_At_Mod (Flag4-Sem)
6178 -- Check_Address_Alignment (Flag11-Sem)
6179 -- Address_Warning_Posted (Flag18-Sem)
6180
6181 ---------------------------------------------
6182 -- 13.4 Enumeration representation clause --
6183 ---------------------------------------------
6184
6185 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6186 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6187
6188 -- In Ada 83, the name must be a direct name
6189
6190 -- N_Enumeration_Representation_Clause
6191 -- Sloc points to FOR
6192 -- Identifier (Node1) direct name
6193 -- Array_Aggregate (Node3)
6194 -- Next_Rep_Item (Node5-Sem)
6195
6196 ---------------------------------
6197 -- 13.4 Enumeration aggregate --
6198 ---------------------------------
6199
6200 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6201
6202 ------------------------------------------
6203 -- 13.5.1 Record representation clause --
6204 ------------------------------------------
6205
6206 -- RECORD_REPRESENTATION_CLAUSE ::=
6207 -- for first_subtype_LOCAL_NAME use
6208 -- record [MOD_CLAUSE]
6209 -- {COMPONENT_CLAUSE}
6210 -- end record;
6211
6212 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6213 -- replaced by a corresponding Alignment attribute definition clause).
6214
6215 -- Note: Component_Clauses can include pragmas
6216
6217 -- N_Record_Representation_Clause
6218 -- Sloc points to FOR
6219 -- Identifier (Node1) direct name
6220 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6221 -- Component_Clauses (List3)
6222 -- Next_Rep_Item (Node5-Sem)
6223
6224 ------------------------------
6225 -- 13.5.1 Component clause --
6226 ------------------------------
6227
6228 -- COMPONENT_CLAUSE ::=
6229 -- component_LOCAL_NAME at POSITION
6230 -- range FIRST_BIT .. LAST_BIT;
6231
6232 -- N_Component_Clause
6233 -- Sloc points to AT
6234 -- Component_Name (Node1) points to Name or Attribute_Reference
6235 -- Position (Node2)
6236 -- First_Bit (Node3)
6237 -- Last_Bit (Node4)
6238
6239 ----------------------
6240 -- 13.5.1 Position --
6241 ----------------------
6242
6243 -- POSITION ::= static_EXPRESSION
6244
6245 -----------------------
6246 -- 13.5.1 First_Bit --
6247 -----------------------
6248
6249 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6250
6251 ----------------------
6252 -- 13.5.1 Last_Bit --
6253 ----------------------
6254
6255 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6256
6257 --------------------------
6258 -- 13.8 Code statement --
6259 --------------------------
6260
6261 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6262
6263 -- Note: in GNAT, the qualified expression has the form
6264
6265 -- Asm_Insn'(Asm (...));
6266
6267 -- See package System.Machine_Code in file s-maccod.ads for details on
6268 -- the allowed parameters to Asm. There are two ways this node can
6269 -- arise, as a code statement, in which case the expression is the
6270 -- qualified expression, or as a result of the expansion of an intrinsic
6271 -- call to the Asm or Asm_Input procedure.
6272
6273 -- N_Code_Statement
6274 -- Sloc points to first token of the expression
6275 -- Expression (Node3)
6276
6277 -- Note: package Exp_Code contains an abstract functional interface
6278 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6279
6280 ------------------------
6281 -- 13.12 Restriction --
6282 ------------------------
6283
6284 -- RESTRICTION ::=
6285 -- restriction_IDENTIFIER
6286 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6287
6288 -- There is no explicit node for restrictions. Instead the restriction
6289 -- appears in normal pragma syntax as a pragma argument association,
6290 -- which has the same syntactic form.
6291
6292 --------------------------
6293 -- B.2 Shift Operators --
6294 --------------------------
6295
6296 -- Calls to the intrinsic shift functions are converted to one of
6297 -- the following shift nodes, which have the form of normal binary
6298 -- operator names. Note that for a given shift operation, one node
6299 -- covers all possible types, as for normal operators.
6300
6301 -- Note: it is perfectly permissible for the expander to generate
6302 -- shift operation nodes directly, in which case they will be analyzed
6303 -- and parsed in the usual manner.
6304
6305 -- Sprint syntax: shift-function-name!(expr, count)
6306
6307 -- Note: the Left_Opnd field holds the first argument (the value to
6308 -- be shifted). The Right_Opnd field holds the second argument (the
6309 -- shift count). The Chars field is the name of the intrinsic function.
6310
6311 -- N_Op_Rotate_Left
6312 -- Sloc points to the function name
6313 -- plus fields for binary operator
6314 -- plus fields for expression
6315 -- Shift_Count_OK (Flag4-Sem)
6316
6317 -- N_Op_Rotate_Right
6318 -- Sloc points to the function name
6319 -- plus fields for binary operator
6320 -- plus fields for expression
6321 -- Shift_Count_OK (Flag4-Sem)
6322
6323 -- N_Op_Shift_Left
6324 -- Sloc points to the function name
6325 -- plus fields for binary operator
6326 -- plus fields for expression
6327 -- Shift_Count_OK (Flag4-Sem)
6328
6329 -- N_Op_Shift_Right_Arithmetic
6330 -- Sloc points to the function name
6331 -- plus fields for binary operator
6332 -- plus fields for expression
6333 -- Shift_Count_OK (Flag4-Sem)
6334
6335 -- N_Op_Shift_Right
6336 -- Sloc points to the function name
6337 -- plus fields for binary operator
6338 -- plus fields for expression
6339 -- Shift_Count_OK (Flag4-Sem)
6340
6341 --------------------------
6342 -- Obsolescent Features --
6343 --------------------------
6344
6345 -- The syntax descriptions and tree nodes for obsolescent features are
6346 -- grouped together, corresponding to their location in appendix I in
6347 -- the RM. However, parsing and semantic analysis for these constructs
6348 -- is located in an appropriate chapter (see individual notes).
6349
6350 ---------------------------
6351 -- J.3 Delta Constraint --
6352 ---------------------------
6353
6354 -- Note: the parse routine for this construct is located in section
6355 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6356 -- where delta constraint logically belongs.
6357
6358 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6359
6360 -- N_Delta_Constraint
6361 -- Sloc points to DELTA
6362 -- Delta_Expression (Node3)
6363 -- Range_Constraint (Node4) (set to Empty if not present)
6364
6365 --------------------
6366 -- J.7 At Clause --
6367 --------------------
6368
6369 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6370
6371 -- Note: the parse routine for this construct is located in Par-Ch13,
6372 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6373 -- belongs if it were not obsolescent.
6374
6375 -- Note: in Ada 83 the expression must be a simple expression
6376
6377 -- Gigi restriction: This node never appears, it is rewritten as an
6378 -- address attribute definition clause.
6379
6380 -- N_At_Clause
6381 -- Sloc points to FOR
6382 -- Identifier (Node1)
6383 -- Expression (Node3)
6384
6385 ---------------------
6386 -- J.8 Mod clause --
6387 ---------------------
6388
6389 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6390
6391 -- Note: the parse routine for this construct is located in Par-Ch13,
6392 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6393 -- belongs if it were not obsolescent.
6394
6395 -- Note: in Ada 83, the expression must be a simple expression
6396
6397 -- Gigi restriction: this node never appears. It is replaced
6398 -- by a corresponding Alignment attribute definition clause.
6399
6400 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6401 -- its name has "clause" in it. This is rather strange, but is quite
6402 -- definitely specified. The pragmas before are collected in the
6403 -- Pragmas_Before field of the mod clause node itself, and pragmas
6404 -- after are simply swallowed up in the list of component clauses.
6405
6406 -- N_Mod_Clause
6407 -- Sloc points to AT
6408 -- Expression (Node3)
6409 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6410
6411 --------------------
6412 -- Semantic Nodes --
6413 --------------------
6414
6415 -- These semantic nodes are used to hold additional semantic information.
6416 -- They are inserted into the tree as a result of semantic processing.
6417 -- Although there are no legitimate source syntax constructions that
6418 -- correspond directly to these nodes, we need a source syntax for the
6419 -- reconstructed tree printed by Sprint, and the node descriptions here
6420 -- show this syntax.
6421
6422 ----------------------------
6423 -- Conditional Expression --
6424 ----------------------------
6425
6426 -- This node is used to represent an expression corresponding to the
6427 -- C construct (condition ? then-expression : else_expression), where
6428 -- Expressions is a three element list, whose first expression is the
6429 -- condition, and whose second and third expressions are the then and
6430 -- else expressions respectively.
6431
6432 -- Note: the Then_Actions and Else_Actions fields are always set to
6433 -- No_List in the tree passed to Gigi. These fields are used only
6434 -- for temporary processing purposes in the expander.
6435
6436 -- Sprint syntax: (if expr then expr else expr)
6437
6438 -- N_Conditional_Expression
6439 -- Sloc points to related node
6440 -- Expressions (List1)
6441 -- Then_Actions (List2-Sem)
6442 -- Else_Actions (List3-Sem)
6443 -- plus fields for expression
6444
6445 -- Note: in the case where a debug source file is generated, the Sloc
6446 -- for this node points to the IF keyword in the Sprint file output.
6447
6448 -------------------
6449 -- Expanded_Name --
6450 -------------------
6451
6452 -- The N_Expanded_Name node is used to represent a selected component
6453 -- name that has been resolved to an expanded name. The semantic phase
6454 -- replaces N_Selected_Component nodes that represent names by the use
6455 -- of this node, leaving the N_Selected_Component node used only when
6456 -- the prefix is a record or protected type.
6457
6458 -- The fields of the N_Expanded_Name node are layed out identically
6459 -- to those of the N_Selected_Component node, allowing conversion of
6460 -- an expanded name node to a selected component node to be done
6461 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6462
6463 -- There is no special sprint syntax for an expanded name
6464
6465 -- N_Expanded_Name
6466 -- Sloc points to the period
6467 -- Chars (Name1) copy of Chars field of selector name
6468 -- Prefix (Node3)
6469 -- Selector_Name (Node2)
6470 -- Entity (Node4-Sem)
6471 -- Associated_Node (Node4-Sem)
6472 -- Redundant_Use (Flag13-Sem)
6473 -- Has_Private_View (Flag11-Sem) set in generic units.
6474 -- plus fields for expression
6475
6476 --------------------
6477 -- Free Statement --
6478 --------------------
6479
6480 -- The N_Free_Statement node is generated as a result of a call to an
6481 -- instantiation of Unchecked_Deallocation. The instantiation of this
6482 -- generic is handled specially and generates this node directly.
6483
6484 -- Sprint syntax: free expression
6485
6486 -- N_Free_Statement
6487 -- Sloc is copied from the unchecked deallocation call
6488 -- Expression (Node3) argument to unchecked deallocation call
6489 -- Storage_Pool (Node1-Sem)
6490 -- Procedure_To_Call (Node2-Sem)
6491 -- Actual_Designated_Subtype (Node4-Sem)
6492
6493 -- Note: in the case where a debug source file is generated, the Sloc
6494 -- for this node points to the FREE keyword in the Sprint file output.
6495
6496 -------------------
6497 -- Freeze Entity --
6498 -------------------
6499
6500 -- This node marks the point in a declarative part at which an entity
6501 -- declared therein becomes frozen. The expander places initialization
6502 -- procedures for types at those points. Gigi uses the freezing point
6503 -- to elaborate entities that may depend on previous private types.
6504
6505 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6506 -- a full description of the use of this node.
6507
6508 -- The Entity field points back to the entity for the type (whose
6509 -- Freeze_Node field points back to this freeze node).
6510
6511 -- The Actions field contains a list of declarations and statements
6512 -- generated by the expander which are associated with the freeze
6513 -- node, and are elaborated as though the freeze node were replaced
6514 -- by this sequence of actions.
6515
6516 -- Note: the Sloc field in the freeze node references a construct
6517 -- associated with the freezing point. This is used for posting
6518 -- messages in some error/warning situations, e.g. the case where
6519 -- a primitive operation of a tagged type is declared too late.
6520
6521 -- Sprint syntax: freeze entity-name [
6522 -- freeze actions
6523 -- ]
6524
6525 -- N_Freeze_Entity
6526 -- Sloc points near freeze point (see above special note)
6527 -- Entity (Node4-Sem)
6528 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6529 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6530 -- Actions (List1) (set to No_List if no freeze actions)
6531 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6532
6533 -- The Actions field holds actions associated with the freeze. These
6534 -- actions are elaborated at the point where the type is frozen.
6535
6536 -- Note: in the case where a debug source file is generated, the Sloc
6537 -- for this node points to the FREEZE keyword in the Sprint file output.
6538
6539 --------------------------------
6540 -- Implicit Label Declaration --
6541 --------------------------------
6542
6543 -- An implicit label declaration is created for every occurrence of a
6544 -- label on a statement or a label on a block or loop. It is chained
6545 -- in the declarations of the innermost enclosing block as specified
6546 -- in RM section 5.1 (3).
6547
6548 -- The Defining_Identifier is the actual identifier for the
6549 -- statement identifier. Note that the occurrence of the label
6550 -- is a reference, NOT the defining occurrence. The defining
6551 -- occurrence occurs at the head of the innermost enclosing
6552 -- block, and is represented by this node.
6553
6554 -- Note: from the grammar, this might better be called an implicit
6555 -- statement identifier declaration, but the term we choose seems
6556 -- friendlier, since at least informally statement identifiers are
6557 -- called labels in both cases (i.e. when used in labels, and when
6558 -- used as the identifiers of blocks and loops).
6559
6560 -- Note: although this is logically a semantic node, since it does
6561 -- not correspond directly to a source syntax construction, these
6562 -- nodes are actually created by the parser in a post pass done just
6563 -- after parsing is complete, before semantic analysis is started (see
6564 -- the Par.Labl subunit in file par-labl.adb).
6565
6566 -- Sprint syntax: labelname : label;
6567
6568 -- N_Implicit_Label_Declaration
6569 -- Sloc points to the << of the label
6570 -- Defining_Identifier (Node1)
6571 -- Label_Construct (Node2-Sem)
6572
6573 -- Note: in the case where a debug source file is generated, the Sloc
6574 -- for this node points to the label name in the generated declaration.
6575
6576 ---------------------
6577 -- Itype_Reference --
6578 ---------------------
6579
6580 -- This node is used to create a reference to an Itype. The only
6581 -- purpose is to make sure that the Itype is defined if this is the
6582 -- first reference.
6583
6584 -- A typical use of this node is when an Itype is to be referenced in
6585 -- two branches of an if statement. In this case it is important that
6586 -- the first use of the Itype not be inside the conditional, since
6587 -- then it might not be defined if the wrong branch of the if is
6588 -- taken in the case where the definition generates elaboration code.
6589
6590 -- The Itype field points to the referenced Itype
6591
6592 -- sprint syntax: reference itype-name
6593
6594 -- N_Itype_Reference
6595 -- Sloc points to the node generating the reference
6596 -- Itype (Node1-Sem)
6597
6598 -- Note: in the case where a debug source file is generated, the Sloc
6599 -- for this node points to the REFERENCE keyword in the file output.
6600
6601 ---------------------
6602 -- Raise_xxx_Error --
6603 ---------------------
6604
6605 -- One of these nodes is created during semantic analysis to replace
6606 -- a node for an expression that is determined to definitely raise
6607 -- the corresponding exception.
6608
6609 -- The N_Raise_xxx_Error node may also stand alone in place
6610 -- of a declaration or statement, in which case it simply causes
6611 -- the exception to be raised (i.e. it is equivalent to a raise
6612 -- statement that raises the corresponding exception). This use
6613 -- is distinguished by the fact that the Etype in this case is
6614 -- Standard_Void_Type, In the subexpression case, the Etype is the
6615 -- same as the type of the subexpression which it replaces.
6616
6617 -- If Condition is empty, then the raise is unconditional. If the
6618 -- Condition field is non-empty, it is a boolean expression which
6619 -- is first evaluated, and the exception is raised only if the
6620 -- value of the expression is True. In the unconditional case, the
6621 -- creation of this node is usually accompanied by a warning message
6622 -- error. The creation of this node will usually be accompanied by a
6623 -- message (unless it appears within the right operand of a short
6624 -- circuit form whose left argument is static and decisively
6625 -- eliminates elaboration of the raise operation. The condition field
6626 -- can ONLY be present when the node is used as a statement form, it
6627 -- may NOT be present in the case where the node appears within an
6628 -- expression.
6629
6630 -- The exception is generated with a message that contains the
6631 -- file name and line number, and then appended text. The Reason
6632 -- code shows the text to be added. The Reason code is an element
6633 -- of the type Types.RT_Exception_Code, and indicates both the
6634 -- message to be added, and the exception to be raised (which must
6635 -- match the node type). The value is stored by storing a Uint which
6636 -- is the Pos value of the enumeration element in this type.
6637
6638 -- Gigi restriction: This expander ensures that the type of the
6639 -- Condition field is always Standard.Boolean, even if the type
6640 -- in the source is some non-standard boolean type.
6641
6642 -- Sprint syntax: [xxx_error "msg"]
6643 -- or: [xxx_error when condition "msg"]
6644
6645 -- N_Raise_Constraint_Error
6646 -- Sloc references related construct
6647 -- Condition (Node1) (set to Empty if no condition)
6648 -- Reason (Uint3)
6649 -- plus fields for expression
6650
6651 -- N_Raise_Program_Error
6652 -- Sloc references related construct
6653 -- Condition (Node1) (set to Empty if no condition)
6654 -- Reason (Uint3)
6655 -- plus fields for expression
6656
6657 -- N_Raise_Storage_Error
6658 -- Sloc references related construct
6659 -- Condition (Node1) (set to Empty if no condition)
6660 -- Reason (Uint3)
6661 -- plus fields for expression
6662
6663 -- Note: Sloc is copied from the expression generating the exception.
6664 -- In the case where a debug source file is generated, the Sloc for
6665 -- this node points to the left bracket in the Sprint file output.
6666
6667 -- Note: the back end may be required to translate these nodes into
6668 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6669
6670 ---------------------------------------------
6671 -- Optimization of Exception Raise to Goto --
6672 ---------------------------------------------
6673
6674 -- In some cases, the front end will determine that any exception raised
6675 -- by the back end for a certain exception should be transformed into a
6676 -- goto statement.
6677
6678 -- There are three kinds of exceptions raised by the back end (note that
6679 -- for this purpose we consider gigi to be part of the back end in the
6680 -- gcc case):
6681
6682 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6683 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6684 -- 3. Other cases not specifically marked by the front end
6685
6686 -- Normally all such exceptions are translated into calls to the proper
6687 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6688 -- and the exception message.
6689
6690 -- The front end may determine that for a particular sequence of code,
6691 -- exceptions in any of these three categories for a particular builtin
6692 -- exception should result in a goto, rather than a call to Rcheck_xx.
6693 -- The exact sequence to be generated is:
6694
6695 -- Local_Raise (exception'Identity);
6696 -- goto Label
6697
6698 -- The front end marks such a sequence of code by bracketing it with
6699 -- push and pop nodes:
6700
6701 -- N_Push_xxx_Label (referencing the label)
6702 -- ...
6703 -- (code where transformation is expected for exception xxx)
6704 -- ...
6705 -- N_Pop_xxx_Label
6706
6707 -- The use of push/pop reflects the fact that such regions can properly
6708 -- nest, and one special case is a subregion in which no transformation
6709 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6710 -- Exception_Label field is Empty.
6711
6712 -- N_Push_Constraint_Error_Label
6713 -- Sloc references first statement in region covered
6714 -- Exception_Label (Node5-Sem)
6715
6716 -- N_Push_Program_Error_Label
6717 -- Sloc references first statement in region covered
6718 -- Exception_Label (Node5-Sem)
6719
6720 -- N_Push_Storage_Error_Label
6721 -- Sloc references first statement in region covered
6722 -- Exception_Label (Node5-Sem)
6723
6724 -- N_Pop_Constraint_Error_Label
6725 -- Sloc references last statement in region covered
6726
6727 -- N_Pop_Program_Error_Label
6728 -- Sloc references last statement in region covered
6729
6730 -- N_Pop_Storage_Error_Label
6731 -- Sloc references last statement in region covered
6732
6733 ---------------
6734 -- Reference --
6735 ---------------
6736
6737 -- For a number of purposes, we need to construct references to objects.
6738 -- These references are subsequently treated as normal access values.
6739 -- An example is the construction of the parameter block passed to a
6740 -- task entry. The N_Reference node is provided for this purpose. It is
6741 -- similar in effect to the use of the Unrestricted_Access attribute,
6742 -- and like Unrestricted_Access can be applied to objects which would
6743 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6744 -- objects which are not aliased, and slices). In addition it can be
6745 -- applied to composite type values as well as objects, including string
6746 -- values and aggregates.
6747
6748 -- Note: we use the Prefix field for this expression so that the
6749 -- resulting node can be treated using common code with the attribute
6750 -- nodes for the 'Access and related attributes. Logically it would make
6751 -- more sense to call it an Expression field, but then we would have to
6752 -- special case the treatment of the N_Reference node.
6753
6754 -- Sprint syntax: prefix'reference
6755
6756 -- N_Reference
6757 -- Sloc is copied from the expression
6758 -- Prefix (Node3)
6759 -- plus fields for expression
6760
6761 -- Note: in the case where a debug source file is generated, the Sloc
6762 -- for this node points to the quote in the Sprint file output.
6763
6764 ---------------------
6765 -- Subprogram_Info --
6766 ---------------------
6767
6768 -- This node generates the appropriate Subprogram_Info value for a
6769 -- given procedure. See Ada.Exceptions for further details
6770
6771 -- Sprint syntax: subprog'subprogram_info
6772
6773 -- N_Subprogram_Info
6774 -- Sloc points to the entity for the procedure
6775 -- Identifier (Node1) identifier referencing the procedure
6776 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6777
6778 -- Note: in the case where a debug source file is generated, the Sloc
6779 -- for this node points to the quote in the Sprint file output.
6780
6781 --------------------------
6782 -- Unchecked Expression --
6783 --------------------------
6784
6785 -- An unchecked expression is one that must be analyzed and resolved
6786 -- with all checks off, regardless of the current setting of scope
6787 -- suppress flags.
6788
6789 -- Sprint syntax: `(expression)
6790
6791 -- Note: this node is always removed from the tree (and replaced by
6792 -- its constituent expression) on completion of analysis, so it only
6793 -- appears in intermediate trees, and will never be seen by Gigi.
6794
6795 -- N_Unchecked_Expression
6796 -- Sloc is a copy of the Sloc of the expression
6797 -- Expression (Node3)
6798 -- plus fields for expression
6799
6800 -- Note: in the case where a debug source file is generated, the Sloc
6801 -- for this node points to the back quote in the Sprint file output.
6802
6803 -------------------------------
6804 -- Unchecked Type Conversion --
6805 -------------------------------
6806
6807 -- An unchecked type conversion node represents the semantic action
6808 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6809 -- It is generated as a result of actual use of Unchecked_Conversion
6810 -- and also the expander generates unchecked type conversion nodes
6811 -- directly for expansion of complex semantic actions.
6812
6813 -- Note: an unchecked type conversion is a variable as far as the
6814 -- semantics are concerned, which is convenient for the expander.
6815 -- This does not change what Ada source programs are legal, since
6816 -- clearly a function call to an instantiation of Unchecked_Conversion
6817 -- is not a variable in any case.
6818
6819 -- Sprint syntax: subtype-mark!(expression)
6820
6821 -- N_Unchecked_Type_Conversion
6822 -- Sloc points to related node in source
6823 -- Subtype_Mark (Node4)
6824 -- Expression (Node3)
6825 -- Kill_Range_Check (Flag11-Sem)
6826 -- No_Truncation (Flag17-Sem)
6827 -- plus fields for expression
6828
6829 -- Note: in the case where a debug source file is generated, the Sloc
6830 -- for this node points to the exclamation in the Sprint file output.
6831
6832 -----------------------------------
6833 -- Validate_Unchecked_Conversion --
6834 -----------------------------------
6835
6836 -- The front end does most of the validation of unchecked conversion,
6837 -- including checking sizes (this is done after the back end is called
6838 -- to take advantage of back-annotation of calculated sizes).
6839
6840 -- The front end also deals with specific cases that are not allowed
6841 -- e.g. involving unconstrained array types.
6842
6843 -- For the case of the standard gigi backend, this means that all
6844 -- checks are done in the front-end.
6845
6846 -- However, in the case of specialized back-ends, notably the JVM
6847 -- backend for JGNAT, additional requirements and restrictions apply
6848 -- to unchecked conversion, and these are most conveniently performed
6849 -- in the specialized back-end.
6850
6851 -- To accommodate this requirement, for such back ends, the following
6852 -- special node is generated recording an unchecked conversion that
6853 -- needs to be validated. The back end should post an appropriate
6854 -- error message if the unchecked conversion is invalid or warrants
6855 -- a special warning message.
6856
6857 -- Source_Type and Target_Type point to the entities for the two
6858 -- types involved in the unchecked conversion instantiation that
6859 -- is to be validated.
6860
6861 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6862
6863 -- N_Validate_Unchecked_Conversion
6864 -- Sloc points to instantiation (location for warning message)
6865 -- Source_Type (Node1-Sem)
6866 -- Target_Type (Node2-Sem)
6867
6868 -- Note: in the case where a debug source file is generated, the Sloc
6869 -- for this node points to the VALIDATE keyword in the file output.
6870
6871 -----------
6872 -- Empty --
6873 -----------
6874
6875 -- Used as the contents of the Nkind field of the dummy Empty node
6876 -- and in some other situations to indicate an uninitialized value.
6877
6878 -- N_Empty
6879 -- Chars (Name1) is set to No_Name
6880
6881 -----------
6882 -- Error --
6883 -----------
6884
6885 -- Used as the contents of the Nkind field of the dummy Error node.
6886 -- Has an Etype field, which gets set to Any_Type later on, to help
6887 -- error recovery (Error_Posted is also set in the Error node).
6888
6889 -- N_Error
6890 -- Chars (Name1) is set to Error_Name
6891 -- Etype (Node5-Sem)
6892
6893 --------------------------
6894 -- Node Type Definition --
6895 --------------------------
6896
6897 -- The following is the definition of the Node_Kind type. As previously
6898 -- discussed, this is separated off to allow rearrangement of the order
6899 -- to facilitate definition of subtype ranges. The comments show the
6900 -- subtype classes which apply to each set of node kinds. The first
6901 -- entry in the comment characterizes the following list of nodes.
6902
6903 type Node_Kind is (
6904 N_Unused_At_Start,
6905
6906 -- N_Representation_Clause
6907
6908 N_At_Clause,
6909 N_Component_Clause,
6910 N_Enumeration_Representation_Clause,
6911 N_Mod_Clause,
6912 N_Record_Representation_Clause,
6913
6914 -- N_Representation_Clause, N_Has_Chars
6915
6916 N_Attribute_Definition_Clause,
6917
6918 -- N_Has_Chars
6919
6920 N_Empty,
6921 N_Pragma_Argument_Association,
6922
6923 -- N_Has_Etype
6924
6925 N_Error,
6926
6927 -- N_Entity, N_Has_Etype, N_Has_Chars
6928
6929 N_Defining_Character_Literal,
6930 N_Defining_Identifier,
6931 N_Defining_Operator_Symbol,
6932
6933 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6934
6935 N_Expanded_Name,
6936
6937 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6938 -- N_Has_Chars, N_Has_Entity
6939
6940 N_Identifier,
6941 N_Operator_Symbol,
6942
6943 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6944 -- N_Has_Chars, N_Has_Entity
6945
6946 N_Character_Literal,
6947
6948 -- N_Binary_Op, N_Op, N_Subexpr,
6949 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6950
6951 N_Op_Add,
6952 N_Op_Concat,
6953 N_Op_Expon,
6954 N_Op_Subtract,
6955
6956 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6957 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6958
6959 N_Op_Divide,
6960 N_Op_Mod,
6961 N_Op_Multiply,
6962 N_Op_Rem,
6963
6964 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6965 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6966
6967 N_Op_And,
6968
6969 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6970 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6971
6972 N_Op_Eq,
6973 N_Op_Ge,
6974 N_Op_Gt,
6975 N_Op_Le,
6976 N_Op_Lt,
6977 N_Op_Ne,
6978
6979 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6980 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6981
6982 N_Op_Or,
6983 N_Op_Xor,
6984
6985 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6986 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6987
6988 N_Op_Rotate_Left,
6989 N_Op_Rotate_Right,
6990 N_Op_Shift_Left,
6991 N_Op_Shift_Right,
6992 N_Op_Shift_Right_Arithmetic,
6993
6994 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6995 -- N_Has_Chars, N_Has_Entity
6996
6997 N_Op_Abs,
6998 N_Op_Minus,
6999 N_Op_Not,
7000 N_Op_Plus,
7001
7002 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7003
7004 N_Attribute_Reference,
7005
7006 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7007
7008 N_In,
7009 N_Not_In,
7010
7011 -- N_Subexpr, N_Has_Etype
7012
7013 N_And_Then,
7014 N_Conditional_Expression,
7015 N_Explicit_Dereference,
7016 N_Function_Call,
7017 N_Indexed_Component,
7018 N_Integer_Literal,
7019 N_Null,
7020 N_Or_Else,
7021 N_Procedure_Call_Statement,
7022 N_Qualified_Expression,
7023
7024 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7025
7026 N_Raise_Constraint_Error,
7027 N_Raise_Program_Error,
7028 N_Raise_Storage_Error,
7029
7030 -- N_Subexpr, N_Has_Etype
7031
7032 N_Aggregate,
7033 N_Allocator,
7034 N_Extension_Aggregate,
7035 N_Range,
7036 N_Real_Literal,
7037 N_Reference,
7038 N_Selected_Component,
7039 N_Slice,
7040 N_String_Literal,
7041 N_Subprogram_Info,
7042 N_Type_Conversion,
7043 N_Unchecked_Expression,
7044 N_Unchecked_Type_Conversion,
7045
7046 -- N_Has_Etype
7047
7048 N_Subtype_Indication,
7049
7050 -- N_Declaration
7051
7052 N_Component_Declaration,
7053 N_Entry_Declaration,
7054 N_Formal_Object_Declaration,
7055 N_Formal_Type_Declaration,
7056 N_Full_Type_Declaration,
7057 N_Incomplete_Type_Declaration,
7058 N_Loop_Parameter_Specification,
7059 N_Object_Declaration,
7060 N_Protected_Type_Declaration,
7061 N_Private_Extension_Declaration,
7062 N_Private_Type_Declaration,
7063 N_Subtype_Declaration,
7064
7065 -- N_Subprogram_Specification, N_Declaration
7066
7067 N_Function_Specification,
7068 N_Procedure_Specification,
7069
7070 -- N_Access_To_Subprogram_Definition
7071
7072 N_Access_Function_Definition,
7073 N_Access_Procedure_Definition,
7074
7075 -- N_Later_Decl_Item
7076
7077 N_Task_Type_Declaration,
7078
7079 -- N_Body_Stub, N_Later_Decl_Item
7080
7081 N_Package_Body_Stub,
7082 N_Protected_Body_Stub,
7083 N_Subprogram_Body_Stub,
7084 N_Task_Body_Stub,
7085
7086 -- N_Generic_Instantiation, N_Later_Decl_Item
7087 -- N_Subprogram_Instantiation
7088
7089 N_Function_Instantiation,
7090 N_Procedure_Instantiation,
7091
7092 -- N_Generic_Instantiation, N_Later_Decl_Item
7093
7094 N_Package_Instantiation,
7095
7096 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7097
7098 N_Package_Body,
7099 N_Subprogram_Body,
7100
7101 -- N_Later_Decl_Item, N_Proper_Body
7102
7103 N_Protected_Body,
7104 N_Task_Body,
7105
7106 -- N_Later_Decl_Item
7107
7108 N_Implicit_Label_Declaration,
7109 N_Package_Declaration,
7110 N_Single_Task_Declaration,
7111 N_Subprogram_Declaration,
7112 N_Use_Package_Clause,
7113
7114 -- N_Generic_Declaration, N_Later_Decl_Item
7115
7116 N_Generic_Package_Declaration,
7117 N_Generic_Subprogram_Declaration,
7118
7119 -- N_Array_Type_Definition
7120
7121 N_Constrained_Array_Definition,
7122 N_Unconstrained_Array_Definition,
7123
7124 -- N_Renaming_Declaration
7125
7126 N_Exception_Renaming_Declaration,
7127 N_Object_Renaming_Declaration,
7128 N_Package_Renaming_Declaration,
7129 N_Subprogram_Renaming_Declaration,
7130
7131 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7132
7133 N_Generic_Function_Renaming_Declaration,
7134 N_Generic_Package_Renaming_Declaration,
7135 N_Generic_Procedure_Renaming_Declaration,
7136
7137 -- N_Statement_Other_Than_Procedure_Call
7138
7139 N_Abort_Statement,
7140 N_Accept_Statement,
7141 N_Assignment_Statement,
7142 N_Asynchronous_Select,
7143 N_Block_Statement,
7144 N_Case_Statement,
7145 N_Code_Statement,
7146 N_Conditional_Entry_Call,
7147
7148 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7149
7150 N_Delay_Relative_Statement,
7151 N_Delay_Until_Statement,
7152
7153 -- N_Statement_Other_Than_Procedure_Call
7154
7155 N_Entry_Call_Statement,
7156 N_Free_Statement,
7157 N_Goto_Statement,
7158 N_Loop_Statement,
7159 N_Null_Statement,
7160 N_Raise_Statement,
7161 N_Requeue_Statement,
7162 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7163 N_Extended_Return_Statement,
7164 N_Selective_Accept,
7165 N_Timed_Entry_Call,
7166
7167 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7168
7169 N_Exit_Statement,
7170 N_If_Statement,
7171
7172 -- N_Has_Condition
7173
7174 N_Accept_Alternative,
7175 N_Delay_Alternative,
7176 N_Elsif_Part,
7177 N_Entry_Body_Formal_Part,
7178 N_Iteration_Scheme,
7179 N_Terminate_Alternative,
7180
7181 -- N_Formal_Subprogram_Declaration
7182
7183 N_Formal_Abstract_Subprogram_Declaration,
7184 N_Formal_Concrete_Subprogram_Declaration,
7185
7186 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7187
7188 N_Push_Constraint_Error_Label,
7189 N_Push_Program_Error_Label,
7190 N_Push_Storage_Error_Label,
7191
7192 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7193
7194 N_Pop_Constraint_Error_Label,
7195 N_Pop_Program_Error_Label,
7196 N_Pop_Storage_Error_Label,
7197
7198 -- Other nodes (not part of any subtype class)
7199
7200 N_Abortable_Part,
7201 N_Abstract_Subprogram_Declaration,
7202 N_Access_Definition,
7203 N_Access_To_Object_Definition,
7204 N_Case_Statement_Alternative,
7205 N_Compilation_Unit,
7206 N_Compilation_Unit_Aux,
7207 N_Component_Association,
7208 N_Component_Definition,
7209 N_Component_List,
7210 N_Derived_Type_Definition,
7211 N_Decimal_Fixed_Point_Definition,
7212 N_Defining_Program_Unit_Name,
7213 N_Delta_Constraint,
7214 N_Designator,
7215 N_Digits_Constraint,
7216 N_Discriminant_Association,
7217 N_Discriminant_Specification,
7218 N_Enumeration_Type_Definition,
7219 N_Entry_Body,
7220 N_Entry_Call_Alternative,
7221 N_Entry_Index_Specification,
7222 N_Exception_Declaration,
7223 N_Exception_Handler,
7224 N_Floating_Point_Definition,
7225 N_Formal_Decimal_Fixed_Point_Definition,
7226 N_Formal_Derived_Type_Definition,
7227 N_Formal_Discrete_Type_Definition,
7228 N_Formal_Floating_Point_Definition,
7229 N_Formal_Modular_Type_Definition,
7230 N_Formal_Ordinary_Fixed_Point_Definition,
7231 N_Formal_Package_Declaration,
7232 N_Formal_Private_Type_Definition,
7233 N_Formal_Signed_Integer_Type_Definition,
7234 N_Freeze_Entity,
7235 N_Generic_Association,
7236 N_Handled_Sequence_Of_Statements,
7237 N_Index_Or_Discriminant_Constraint,
7238 N_Itype_Reference,
7239 N_Label,
7240 N_Modular_Type_Definition,
7241 N_Number_Declaration,
7242 N_Ordinary_Fixed_Point_Definition,
7243 N_Others_Choice,
7244 N_Package_Specification,
7245 N_Parameter_Association,
7246 N_Parameter_Specification,
7247 N_Pragma,
7248 N_Protected_Definition,
7249 N_Range_Constraint,
7250 N_Real_Range_Specification,
7251 N_Record_Definition,
7252 N_Signed_Integer_Type_Definition,
7253 N_Single_Protected_Declaration,
7254 N_Subunit,
7255 N_Task_Definition,
7256 N_Triggering_Alternative,
7257 N_Use_Type_Clause,
7258 N_Validate_Unchecked_Conversion,
7259 N_Variant,
7260 N_Variant_Part,
7261 N_With_Clause,
7262 N_Unused_At_End);
7263
7264 for Node_Kind'Size use 8;
7265 -- The data structures in Atree assume this!
7266
7267 ----------------------------
7268 -- Node Class Definitions --
7269 ----------------------------
7270
7271 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7272 N_Access_Function_Definition ..
7273 N_Access_Procedure_Definition;
7274
7275 subtype N_Array_Type_Definition is Node_Kind range
7276 N_Constrained_Array_Definition ..
7277 N_Unconstrained_Array_Definition;
7278
7279 subtype N_Binary_Op is Node_Kind range
7280 N_Op_Add ..
7281 N_Op_Shift_Right_Arithmetic;
7282
7283 subtype N_Body_Stub is Node_Kind range
7284 N_Package_Body_Stub ..
7285 N_Task_Body_Stub;
7286
7287 subtype N_Declaration is Node_Kind range
7288 N_Component_Declaration ..
7289 N_Procedure_Specification;
7290 -- Note: this includes all constructs normally thought of as declarations
7291 -- except those which are separately grouped as later declarations.
7292
7293 subtype N_Delay_Statement is Node_Kind range
7294 N_Delay_Relative_Statement ..
7295 N_Delay_Until_Statement;
7296
7297 subtype N_Direct_Name is Node_Kind range
7298 N_Identifier ..
7299 N_Character_Literal;
7300
7301 subtype N_Entity is Node_Kind range
7302 N_Defining_Character_Literal ..
7303 N_Defining_Operator_Symbol;
7304
7305 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7306 N_Formal_Abstract_Subprogram_Declaration ..
7307 N_Formal_Concrete_Subprogram_Declaration;
7308
7309 subtype N_Generic_Declaration is Node_Kind range
7310 N_Generic_Package_Declaration ..
7311 N_Generic_Subprogram_Declaration;
7312
7313 subtype N_Generic_Instantiation is Node_Kind range
7314 N_Function_Instantiation ..
7315 N_Package_Instantiation;
7316
7317 subtype N_Generic_Renaming_Declaration is Node_Kind range
7318 N_Generic_Function_Renaming_Declaration ..
7319 N_Generic_Procedure_Renaming_Declaration;
7320
7321 subtype N_Has_Chars is Node_Kind range
7322 N_Attribute_Definition_Clause ..
7323 N_Op_Plus;
7324
7325 subtype N_Has_Entity is Node_Kind range
7326 N_Expanded_Name ..
7327 N_Attribute_Reference;
7328 -- Nodes that have Entity fields
7329 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7330
7331 subtype N_Has_Etype is Node_Kind range
7332 N_Error ..
7333 N_Subtype_Indication;
7334
7335 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7336 N_Op_Divide ..
7337 N_Op_Rem;
7338
7339 subtype N_Multiplying_Operator is Node_Kind range
7340 N_Op_Divide ..
7341 N_Op_Rem;
7342
7343 subtype N_Later_Decl_Item is Node_Kind range
7344 N_Task_Type_Declaration ..
7345 N_Generic_Subprogram_Declaration;
7346 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7347 -- includes only those items which can appear as later declarative
7348 -- items. This also includes N_Implicit_Label_Declaration which is
7349 -- not specifically in the grammar but may appear as a valid later
7350 -- declarative items. It does NOT include N_Pragma which can also
7351 -- appear among later declarative items. It does however include
7352 -- N_Protected_Body, which is a bit peculiar, but harmless since
7353 -- this cannot appear in Ada 83 mode anyway.
7354
7355 subtype N_Membership_Test is Node_Kind range
7356 N_In ..
7357 N_Not_In;
7358
7359 subtype N_Op is Node_Kind range
7360 N_Op_Add ..
7361 N_Op_Plus;
7362
7363 subtype N_Op_Boolean is Node_Kind range
7364 N_Op_And ..
7365 N_Op_Xor;
7366 -- Binary operators which take operands of a boolean type, and yield
7367 -- a result of a boolean type.
7368
7369 subtype N_Op_Compare is Node_Kind range
7370 N_Op_Eq ..
7371 N_Op_Ne;
7372
7373 subtype N_Op_Shift is Node_Kind range
7374 N_Op_Rotate_Left ..
7375 N_Op_Shift_Right_Arithmetic;
7376
7377 subtype N_Proper_Body is Node_Kind range
7378 N_Package_Body ..
7379 N_Task_Body;
7380
7381 subtype N_Push_xxx_Label is Node_Kind range
7382 N_Push_Constraint_Error_Label ..
7383 N_Push_Storage_Error_Label;
7384
7385 subtype N_Pop_xxx_Label is Node_Kind range
7386 N_Pop_Constraint_Error_Label ..
7387 N_Pop_Storage_Error_Label;
7388
7389 subtype N_Push_Pop_xxx_Label is Node_Kind range
7390 N_Push_Constraint_Error_Label ..
7391 N_Pop_Storage_Error_Label;
7392
7393 subtype N_Raise_xxx_Error is Node_Kind range
7394 N_Raise_Constraint_Error ..
7395 N_Raise_Storage_Error;
7396
7397 subtype N_Renaming_Declaration is Node_Kind range
7398 N_Exception_Renaming_Declaration ..
7399 N_Generic_Procedure_Renaming_Declaration;
7400
7401 subtype N_Representation_Clause is Node_Kind range
7402 N_At_Clause ..
7403 N_Attribute_Definition_Clause;
7404
7405 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7406 N_Abort_Statement ..
7407 N_If_Statement;
7408 -- Note that this includes all statement types except for the cases of the
7409 -- N_Procedure_Call_Statement which is considered to be a subexpression
7410 -- (since overloading is possible, so it needs to go through the normal
7411 -- overloading resolution for expressions).
7412
7413 subtype N_Subprogram_Instantiation is Node_Kind range
7414 N_Function_Instantiation ..
7415 N_Procedure_Instantiation;
7416
7417 subtype N_Has_Condition is Node_Kind range
7418 N_Exit_Statement ..
7419 N_Terminate_Alternative;
7420 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7421
7422 subtype N_Subexpr is Node_Kind range
7423 N_Expanded_Name ..
7424 N_Unchecked_Type_Conversion;
7425 -- Nodes with expression fields
7426
7427 subtype N_Subprogram_Specification is Node_Kind range
7428 N_Function_Specification ..
7429 N_Procedure_Specification;
7430
7431 subtype N_Unary_Op is Node_Kind range
7432 N_Op_Abs ..
7433 N_Op_Plus;
7434
7435 subtype N_Unit_Body is Node_Kind range
7436 N_Package_Body ..
7437 N_Subprogram_Body;
7438
7439 ---------------------------
7440 -- Node Access Functions --
7441 ---------------------------
7442
7443 -- The following functions return the contents of the indicated field of
7444 -- the node referenced by the argument, which is a Node_Id. They provide
7445 -- logical access to fields in the node which could be accessed using the
7446 -- Atree.Unchecked_Access package, but the idea is always to use these
7447 -- higher level routines which preserve strong typing. In debug mode,
7448 -- these routines check that they are being applied to an appropriate
7449 -- node, as well as checking that the node is in range.
7450
7451 function ABE_Is_Certain
7452 (N : Node_Id) return Boolean; -- Flag18
7453
7454 function Abort_Present
7455 (N : Node_Id) return Boolean; -- Flag15
7456
7457 function Abortable_Part
7458 (N : Node_Id) return Node_Id; -- Node2
7459
7460 function Abstract_Present
7461 (N : Node_Id) return Boolean; -- Flag4
7462
7463 function Accept_Handler_Records
7464 (N : Node_Id) return List_Id; -- List5
7465
7466 function Accept_Statement
7467 (N : Node_Id) return Node_Id; -- Node2
7468
7469 function Access_Definition
7470 (N : Node_Id) return Node_Id; -- Node3
7471
7472 function Access_To_Subprogram_Definition
7473 (N : Node_Id) return Node_Id; -- Node3
7474
7475 function Access_Types_To_Process
7476 (N : Node_Id) return Elist_Id; -- Elist2
7477
7478 function Actions
7479 (N : Node_Id) return List_Id; -- List1
7480
7481 function Activation_Chain_Entity
7482 (N : Node_Id) return Node_Id; -- Node3
7483
7484 function Acts_As_Spec
7485 (N : Node_Id) return Boolean; -- Flag4
7486
7487 function Actual_Designated_Subtype
7488 (N : Node_Id) return Node_Id; -- Node4
7489
7490 function Address_Warning_Posted
7491 (N : Node_Id) return Boolean; -- Flag18
7492
7493 function Aggregate_Bounds
7494 (N : Node_Id) return Node_Id; -- Node3
7495
7496 function Aliased_Present
7497 (N : Node_Id) return Boolean; -- Flag4
7498
7499 function All_Others
7500 (N : Node_Id) return Boolean; -- Flag11
7501
7502 function All_Present
7503 (N : Node_Id) return Boolean; -- Flag15
7504
7505 function Alternatives
7506 (N : Node_Id) return List_Id; -- List4
7507
7508 function Ancestor_Part
7509 (N : Node_Id) return Node_Id; -- Node3
7510
7511 function Array_Aggregate
7512 (N : Node_Id) return Node_Id; -- Node3
7513
7514 function Assignment_OK
7515 (N : Node_Id) return Boolean; -- Flag15
7516
7517 function Associated_Node
7518 (N : Node_Id) return Node_Id; -- Node4
7519
7520 function At_End_Proc
7521 (N : Node_Id) return Node_Id; -- Node1
7522
7523 function Attribute_Name
7524 (N : Node_Id) return Name_Id; -- Name2
7525
7526 function Aux_Decls_Node
7527 (N : Node_Id) return Node_Id; -- Node5
7528
7529 function Backwards_OK
7530 (N : Node_Id) return Boolean; -- Flag6
7531
7532 function Bad_Is_Detected
7533 (N : Node_Id) return Boolean; -- Flag15
7534
7535 function By_Ref
7536 (N : Node_Id) return Boolean; -- Flag5
7537
7538 function Body_Required
7539 (N : Node_Id) return Boolean; -- Flag13
7540
7541 function Body_To_Inline
7542 (N : Node_Id) return Node_Id; -- Node3
7543
7544 function Box_Present
7545 (N : Node_Id) return Boolean; -- Flag15
7546
7547 function Char_Literal_Value
7548 (N : Node_Id) return Uint; -- Uint2
7549
7550 function Chars
7551 (N : Node_Id) return Name_Id; -- Name1
7552
7553 function Check_Address_Alignment
7554 (N : Node_Id) return Boolean; -- Flag11
7555
7556 function Choice_Parameter
7557 (N : Node_Id) return Node_Id; -- Node2
7558
7559 function Choices
7560 (N : Node_Id) return List_Id; -- List1
7561
7562 function Coextensions
7563 (N : Node_Id) return Elist_Id; -- Elist4
7564
7565 function Comes_From_Extended_Return_Statement
7566 (N : Node_Id) return Boolean; -- Flag18
7567
7568 function Compile_Time_Known_Aggregate
7569 (N : Node_Id) return Boolean; -- Flag18
7570
7571 function Component_Associations
7572 (N : Node_Id) return List_Id; -- List2
7573
7574 function Component_Clauses
7575 (N : Node_Id) return List_Id; -- List3
7576
7577 function Component_Definition
7578 (N : Node_Id) return Node_Id; -- Node4
7579
7580 function Component_Items
7581 (N : Node_Id) return List_Id; -- List3
7582
7583 function Component_List
7584 (N : Node_Id) return Node_Id; -- Node1
7585
7586 function Component_Name
7587 (N : Node_Id) return Node_Id; -- Node1
7588
7589 function Condition
7590 (N : Node_Id) return Node_Id; -- Node1
7591
7592 function Condition_Actions
7593 (N : Node_Id) return List_Id; -- List3
7594
7595 function Config_Pragmas
7596 (N : Node_Id) return List_Id; -- List4
7597
7598 function Constant_Present
7599 (N : Node_Id) return Boolean; -- Flag17
7600
7601 function Constraint
7602 (N : Node_Id) return Node_Id; -- Node3
7603
7604 function Constraints
7605 (N : Node_Id) return List_Id; -- List1
7606
7607 function Context_Installed
7608 (N : Node_Id) return Boolean; -- Flag13
7609
7610 function Context_Items
7611 (N : Node_Id) return List_Id; -- List1
7612
7613 function Controlling_Argument
7614 (N : Node_Id) return Node_Id; -- Node1
7615
7616 function Conversion_OK
7617 (N : Node_Id) return Boolean; -- Flag14
7618
7619 function Corresponding_Body
7620 (N : Node_Id) return Node_Id; -- Node5
7621
7622 function Corresponding_Formal_Spec
7623 (N : Node_Id) return Node_Id; -- Node3
7624
7625 function Corresponding_Generic_Association
7626 (N : Node_Id) return Node_Id; -- Node5
7627
7628 function Corresponding_Integer_Value
7629 (N : Node_Id) return Uint; -- Uint4
7630
7631 function Corresponding_Spec
7632 (N : Node_Id) return Node_Id; -- Node5
7633
7634 function Corresponding_Stub
7635 (N : Node_Id) return Node_Id; -- Node3
7636
7637 function Dcheck_Function
7638 (N : Node_Id) return Entity_Id; -- Node5
7639
7640 function Debug_Statement
7641 (N : Node_Id) return Node_Id; -- Node3
7642
7643 function Declarations
7644 (N : Node_Id) return List_Id; -- List2
7645
7646 function Default_Expression
7647 (N : Node_Id) return Node_Id; -- Node5
7648
7649 function Default_Name
7650 (N : Node_Id) return Node_Id; -- Node2
7651
7652 function Defining_Identifier
7653 (N : Node_Id) return Entity_Id; -- Node1
7654
7655 function Defining_Unit_Name
7656 (N : Node_Id) return Node_Id; -- Node1
7657
7658 function Delay_Alternative
7659 (N : Node_Id) return Node_Id; -- Node4
7660
7661 function Delay_Statement
7662 (N : Node_Id) return Node_Id; -- Node2
7663
7664 function Delta_Expression
7665 (N : Node_Id) return Node_Id; -- Node3
7666
7667 function Digits_Expression
7668 (N : Node_Id) return Node_Id; -- Node2
7669
7670 function Discr_Check_Funcs_Built
7671 (N : Node_Id) return Boolean; -- Flag11
7672
7673 function Discrete_Choices
7674 (N : Node_Id) return List_Id; -- List4
7675
7676 function Discrete_Range
7677 (N : Node_Id) return Node_Id; -- Node4
7678
7679 function Discrete_Subtype_Definition
7680 (N : Node_Id) return Node_Id; -- Node4
7681
7682 function Discrete_Subtype_Definitions
7683 (N : Node_Id) return List_Id; -- List2
7684
7685 function Discriminant_Specifications
7686 (N : Node_Id) return List_Id; -- List4
7687
7688 function Discriminant_Type
7689 (N : Node_Id) return Node_Id; -- Node5
7690
7691 function Do_Accessibility_Check
7692 (N : Node_Id) return Boolean; -- Flag13
7693
7694 function Do_Discriminant_Check
7695 (N : Node_Id) return Boolean; -- Flag13
7696
7697 function Do_Division_Check
7698 (N : Node_Id) return Boolean; -- Flag13
7699
7700 function Do_Length_Check
7701 (N : Node_Id) return Boolean; -- Flag4
7702
7703 function Do_Overflow_Check
7704 (N : Node_Id) return Boolean; -- Flag17
7705
7706 function Do_Range_Check
7707 (N : Node_Id) return Boolean; -- Flag9
7708
7709 function Do_Storage_Check
7710 (N : Node_Id) return Boolean; -- Flag17
7711
7712 function Do_Tag_Check
7713 (N : Node_Id) return Boolean; -- Flag13
7714
7715 function Elaborate_All_Desirable
7716 (N : Node_Id) return Boolean; -- Flag9
7717
7718 function Elaborate_All_Present
7719 (N : Node_Id) return Boolean; -- Flag14
7720
7721 function Elaborate_Desirable
7722 (N : Node_Id) return Boolean; -- Flag11
7723
7724 function Elaborate_Present
7725 (N : Node_Id) return Boolean; -- Flag4
7726
7727 function Elaboration_Boolean
7728 (N : Node_Id) return Node_Id; -- Node2
7729
7730 function Else_Actions
7731 (N : Node_Id) return List_Id; -- List3
7732
7733 function Else_Statements
7734 (N : Node_Id) return List_Id; -- List4
7735
7736 function Elsif_Parts
7737 (N : Node_Id) return List_Id; -- List3
7738
7739 function Enclosing_Variant
7740 (N : Node_Id) return Node_Id; -- Node2
7741
7742 function End_Label
7743 (N : Node_Id) return Node_Id; -- Node4
7744
7745 function End_Span
7746 (N : Node_Id) return Uint; -- Uint5
7747
7748 function Entity
7749 (N : Node_Id) return Node_Id; -- Node4
7750
7751 function Entity_Or_Associated_Node
7752 (N : Node_Id) return Node_Id; -- Node4
7753
7754 function Entry_Body_Formal_Part
7755 (N : Node_Id) return Node_Id; -- Node5
7756
7757 function Entry_Call_Alternative
7758 (N : Node_Id) return Node_Id; -- Node1
7759
7760 function Entry_Call_Statement
7761 (N : Node_Id) return Node_Id; -- Node1
7762
7763 function Entry_Direct_Name
7764 (N : Node_Id) return Node_Id; -- Node1
7765
7766 function Entry_Index
7767 (N : Node_Id) return Node_Id; -- Node5
7768
7769 function Entry_Index_Specification
7770 (N : Node_Id) return Node_Id; -- Node4
7771
7772 function Etype
7773 (N : Node_Id) return Node_Id; -- Node5
7774
7775 function Exception_Choices
7776 (N : Node_Id) return List_Id; -- List4
7777
7778 function Exception_Handlers
7779 (N : Node_Id) return List_Id; -- List5
7780
7781 function Exception_Junk
7782 (N : Node_Id) return Boolean; -- Flag8
7783
7784 function Exception_Label
7785 (N : Node_Id) return Node_Id; -- Node5
7786
7787 function Explicit_Actual_Parameter
7788 (N : Node_Id) return Node_Id; -- Node3
7789
7790 function Expansion_Delayed
7791 (N : Node_Id) return Boolean; -- Flag11
7792
7793 function Explicit_Generic_Actual_Parameter
7794 (N : Node_Id) return Node_Id; -- Node1
7795
7796 function Expression
7797 (N : Node_Id) return Node_Id; -- Node3
7798
7799 function Expressions
7800 (N : Node_Id) return List_Id; -- List1
7801
7802 function First_Bit
7803 (N : Node_Id) return Node_Id; -- Node3
7804
7805 function First_Inlined_Subprogram
7806 (N : Node_Id) return Entity_Id; -- Node3
7807
7808 function First_Name
7809 (N : Node_Id) return Boolean; -- Flag5
7810
7811 function First_Named_Actual
7812 (N : Node_Id) return Node_Id; -- Node4
7813
7814 function First_Real_Statement
7815 (N : Node_Id) return Node_Id; -- Node2
7816
7817 function First_Subtype_Link
7818 (N : Node_Id) return Entity_Id; -- Node5
7819
7820 function Float_Truncate
7821 (N : Node_Id) return Boolean; -- Flag11
7822
7823 function Formal_Type_Definition
7824 (N : Node_Id) return Node_Id; -- Node3
7825
7826 function Forwards_OK
7827 (N : Node_Id) return Boolean; -- Flag5
7828
7829 function From_At_End
7830 (N : Node_Id) return Boolean; -- Flag4
7831
7832 function From_At_Mod
7833 (N : Node_Id) return Boolean; -- Flag4
7834
7835 function From_Default
7836 (N : Node_Id) return Boolean; -- Flag6
7837
7838 function Generic_Associations
7839 (N : Node_Id) return List_Id; -- List3
7840
7841 function Generic_Formal_Declarations
7842 (N : Node_Id) return List_Id; -- List2
7843
7844 function Generic_Parent
7845 (N : Node_Id) return Node_Id; -- Node5
7846
7847 function Generic_Parent_Type
7848 (N : Node_Id) return Node_Id; -- Node4
7849
7850 function Handled_Statement_Sequence
7851 (N : Node_Id) return Node_Id; -- Node4
7852
7853 function Handler_List_Entry
7854 (N : Node_Id) return Node_Id; -- Node2
7855
7856 function Has_Created_Identifier
7857 (N : Node_Id) return Boolean; -- Flag15
7858
7859 function Has_Dynamic_Length_Check
7860 (N : Node_Id) return Boolean; -- Flag10
7861
7862 function Has_Dynamic_Range_Check
7863 (N : Node_Id) return Boolean; -- Flag12
7864
7865 function Has_Init_Expression
7866 (N : Node_Id) return Boolean; -- Flag14
7867
7868 function Has_Local_Raise
7869 (N : Node_Id) return Boolean; -- Flag8
7870
7871 function Has_No_Elaboration_Code
7872 (N : Node_Id) return Boolean; -- Flag17
7873
7874 function Has_Priority_Pragma
7875 (N : Node_Id) return Boolean; -- Flag6
7876
7877 function Has_Private_View
7878 (N : Node_Id) return Boolean; -- Flag11
7879
7880 function Has_Relative_Deadline_Pragma
7881 (N : Node_Id) return Boolean; -- Flag9
7882
7883 function Has_Self_Reference
7884 (N : Node_Id) return Boolean; -- Flag13
7885
7886 function Has_Storage_Size_Pragma
7887 (N : Node_Id) return Boolean; -- Flag5
7888
7889 function Has_Task_Info_Pragma
7890 (N : Node_Id) return Boolean; -- Flag7
7891
7892 function Has_Task_Name_Pragma
7893 (N : Node_Id) return Boolean; -- Flag8
7894
7895 function Has_Wide_Character
7896 (N : Node_Id) return Boolean; -- Flag11
7897
7898 function Hidden_By_Use_Clause
7899 (N : Node_Id) return Elist_Id; -- Elist4
7900
7901 function High_Bound
7902 (N : Node_Id) return Node_Id; -- Node2
7903
7904 function Identifier
7905 (N : Node_Id) return Node_Id; -- Node1
7906
7907 function Interface_List
7908 (N : Node_Id) return List_Id; -- List2
7909
7910 function Interface_Present
7911 (N : Node_Id) return Boolean; -- Flag16
7912
7913 function Implicit_With
7914 (N : Node_Id) return Boolean; -- Flag16
7915
7916 function In_Present
7917 (N : Node_Id) return Boolean; -- Flag15
7918
7919 function Includes_Infinities
7920 (N : Node_Id) return Boolean; -- Flag11
7921
7922 function Instance_Spec
7923 (N : Node_Id) return Node_Id; -- Node5
7924
7925 function Intval
7926 (N : Node_Id) return Uint; -- Uint3
7927
7928 function Is_Asynchronous_Call_Block
7929 (N : Node_Id) return Boolean; -- Flag7
7930
7931 function Is_Component_Left_Opnd
7932 (N : Node_Id) return Boolean; -- Flag13
7933
7934 function Is_Component_Right_Opnd
7935 (N : Node_Id) return Boolean; -- Flag14
7936
7937 function Is_Controlling_Actual
7938 (N : Node_Id) return Boolean; -- Flag16
7939
7940 function Is_Dynamic_Coextension
7941 (N : Node_Id) return Boolean; -- Flag18
7942
7943 function Is_Entry_Barrier_Function
7944 (N : Node_Id) return Boolean; -- Flag8
7945
7946 function Is_Expanded_Build_In_Place_Call
7947 (N : Node_Id) return Boolean; -- Flag11
7948
7949 function Is_Folded_In_Parser
7950 (N : Node_Id) return Boolean; -- Flag4
7951
7952 function Is_In_Discriminant_Check
7953 (N : Node_Id) return Boolean; -- Flag11
7954
7955 function Is_Machine_Number
7956 (N : Node_Id) return Boolean; -- Flag11
7957
7958 function Is_Null_Loop
7959 (N : Node_Id) return Boolean; -- Flag16
7960
7961 function Is_Overloaded
7962 (N : Node_Id) return Boolean; -- Flag5
7963
7964 function Is_Power_Of_2_For_Shift
7965 (N : Node_Id) return Boolean; -- Flag13
7966
7967 function Is_Protected_Subprogram_Body
7968 (N : Node_Id) return Boolean; -- Flag7
7969
7970 function Is_Static_Coextension
7971 (N : Node_Id) return Boolean; -- Flag14
7972
7973 function Is_Static_Expression
7974 (N : Node_Id) return Boolean; -- Flag6
7975
7976 function Is_Subprogram_Descriptor
7977 (N : Node_Id) return Boolean; -- Flag16
7978
7979 function Is_Task_Allocation_Block
7980 (N : Node_Id) return Boolean; -- Flag6
7981
7982 function Is_Task_Master
7983 (N : Node_Id) return Boolean; -- Flag5
7984
7985 function Iteration_Scheme
7986 (N : Node_Id) return Node_Id; -- Node2
7987
7988 function Itype
7989 (N : Node_Id) return Entity_Id; -- Node1
7990
7991 function Kill_Range_Check
7992 (N : Node_Id) return Boolean; -- Flag11
7993
7994 function Label_Construct
7995 (N : Node_Id) return Node_Id; -- Node2
7996
7997 function Left_Opnd
7998 (N : Node_Id) return Node_Id; -- Node2
7999
8000 function Last_Bit
8001 (N : Node_Id) return Node_Id; -- Node4
8002
8003 function Last_Name
8004 (N : Node_Id) return Boolean; -- Flag6
8005
8006 function Library_Unit
8007 (N : Node_Id) return Node_Id; -- Node4
8008
8009 function Limited_View_Installed
8010 (N : Node_Id) return Boolean; -- Flag18
8011
8012 function Limited_Present
8013 (N : Node_Id) return Boolean; -- Flag17
8014
8015 function Literals
8016 (N : Node_Id) return List_Id; -- List1
8017
8018 function Local_Raise_Not_OK
8019 (N : Node_Id) return Boolean; -- Flag7
8020
8021 function Local_Raise_Statements
8022 (N : Node_Id) return Elist_Id; -- Elist1
8023
8024 function Loop_Actions
8025 (N : Node_Id) return List_Id; -- List2
8026
8027 function Loop_Parameter_Specification
8028 (N : Node_Id) return Node_Id; -- Node4
8029
8030 function Low_Bound
8031 (N : Node_Id) return Node_Id; -- Node1
8032
8033 function Mod_Clause
8034 (N : Node_Id) return Node_Id; -- Node2
8035
8036 function More_Ids
8037 (N : Node_Id) return Boolean; -- Flag5
8038
8039 function Must_Be_Byte_Aligned
8040 (N : Node_Id) return Boolean; -- Flag14
8041
8042 function Must_Not_Freeze
8043 (N : Node_Id) return Boolean; -- Flag8
8044
8045 function Must_Not_Override
8046 (N : Node_Id) return Boolean; -- Flag15
8047
8048 function Must_Override
8049 (N : Node_Id) return Boolean; -- Flag14
8050
8051 function Name
8052 (N : Node_Id) return Node_Id; -- Node2
8053
8054 function Names
8055 (N : Node_Id) return List_Id; -- List2
8056
8057 function Next_Entity
8058 (N : Node_Id) return Node_Id; -- Node2
8059
8060 function Next_Named_Actual
8061 (N : Node_Id) return Node_Id; -- Node4
8062
8063 function Next_Pragma
8064 (N : Node_Id) return Node_Id; -- Node1
8065
8066 function Next_Rep_Item
8067 (N : Node_Id) return Node_Id; -- Node5
8068
8069 function Next_Use_Clause
8070 (N : Node_Id) return Node_Id; -- Node3
8071
8072 function No_Ctrl_Actions
8073 (N : Node_Id) return Boolean; -- Flag7
8074
8075 function No_Elaboration_Check
8076 (N : Node_Id) return Boolean; -- Flag14
8077
8078 function No_Entities_Ref_In_Spec
8079 (N : Node_Id) return Boolean; -- Flag8
8080
8081 function No_Initialization
8082 (N : Node_Id) return Boolean; -- Flag13
8083
8084 function No_Truncation
8085 (N : Node_Id) return Boolean; -- Flag17
8086
8087 function Null_Present
8088 (N : Node_Id) return Boolean; -- Flag13
8089
8090 function Null_Exclusion_Present
8091 (N : Node_Id) return Boolean; -- Flag11
8092
8093 function Null_Record_Present
8094 (N : Node_Id) return Boolean; -- Flag17
8095
8096 function Object_Definition
8097 (N : Node_Id) return Node_Id; -- Node4
8098
8099 function Original_Discriminant
8100 (N : Node_Id) return Node_Id; -- Node2
8101
8102 function Original_Entity
8103 (N : Node_Id) return Entity_Id; -- Node2
8104
8105 function Others_Discrete_Choices
8106 (N : Node_Id) return List_Id; -- List1
8107
8108 function Out_Present
8109 (N : Node_Id) return Boolean; -- Flag17
8110
8111 function Parameter_Associations
8112 (N : Node_Id) return List_Id; -- List3
8113
8114 function Parameter_List_Truncated
8115 (N : Node_Id) return Boolean; -- Flag17
8116
8117 function Parameter_Specifications
8118 (N : Node_Id) return List_Id; -- List3
8119
8120 function Parameter_Type
8121 (N : Node_Id) return Node_Id; -- Node2
8122
8123 function Parent_Spec
8124 (N : Node_Id) return Node_Id; -- Node4
8125
8126 function PPC_Enabled
8127 (N : Node_Id) return Boolean; -- Flag5
8128
8129 function Position
8130 (N : Node_Id) return Node_Id; -- Node2
8131
8132 function Pragma_Argument_Associations
8133 (N : Node_Id) return List_Id; -- List2
8134
8135 function Pragma_Identifier
8136 (N : Node_Id) return Node_Id; -- Node4
8137
8138 function Pragmas_After
8139 (N : Node_Id) return List_Id; -- List5
8140
8141 function Pragmas_Before
8142 (N : Node_Id) return List_Id; -- List4
8143
8144 function Prefix
8145 (N : Node_Id) return Node_Id; -- Node3
8146
8147 function Present_Expr
8148 (N : Node_Id) return Uint; -- Uint3
8149
8150 function Prev_Ids
8151 (N : Node_Id) return Boolean; -- Flag6
8152
8153 function Print_In_Hex
8154 (N : Node_Id) return Boolean; -- Flag13
8155
8156 function Private_Declarations
8157 (N : Node_Id) return List_Id; -- List3
8158
8159 function Private_Present
8160 (N : Node_Id) return Boolean; -- Flag15
8161
8162 function Procedure_To_Call
8163 (N : Node_Id) return Node_Id; -- Node2
8164
8165 function Proper_Body
8166 (N : Node_Id) return Node_Id; -- Node1
8167
8168 function Protected_Definition
8169 (N : Node_Id) return Node_Id; -- Node3
8170
8171 function Protected_Present
8172 (N : Node_Id) return Boolean; -- Flag6
8173
8174 function Raises_Constraint_Error
8175 (N : Node_Id) return Boolean; -- Flag7
8176
8177 function Range_Constraint
8178 (N : Node_Id) return Node_Id; -- Node4
8179
8180 function Range_Expression
8181 (N : Node_Id) return Node_Id; -- Node4
8182
8183 function Real_Range_Specification
8184 (N : Node_Id) return Node_Id; -- Node4
8185
8186 function Realval
8187 (N : Node_Id) return Ureal; -- Ureal3
8188
8189 function Reason
8190 (N : Node_Id) return Uint; -- Uint3
8191
8192 function Record_Extension_Part
8193 (N : Node_Id) return Node_Id; -- Node3
8194
8195 function Redundant_Use
8196 (N : Node_Id) return Boolean; -- Flag13
8197
8198 function Renaming_Exception
8199 (N : Node_Id) return Node_Id; -- Node2
8200
8201 function Result_Definition
8202 (N : Node_Id) return Node_Id; -- Node4
8203
8204 function Return_Object_Declarations
8205 (N : Node_Id) return List_Id; -- List3
8206
8207 function Return_Statement_Entity
8208 (N : Node_Id) return Node_Id; -- Node5
8209
8210 function Reverse_Present
8211 (N : Node_Id) return Boolean; -- Flag15
8212
8213 function Right_Opnd
8214 (N : Node_Id) return Node_Id; -- Node3
8215
8216 function Rounded_Result
8217 (N : Node_Id) return Boolean; -- Flag18
8218
8219 function Scope
8220 (N : Node_Id) return Node_Id; -- Node3
8221
8222 function Select_Alternatives
8223 (N : Node_Id) return List_Id; -- List1
8224
8225 function Selector_Name
8226 (N : Node_Id) return Node_Id; -- Node2
8227
8228 function Selector_Names
8229 (N : Node_Id) return List_Id; -- List1
8230
8231 function Shift_Count_OK
8232 (N : Node_Id) return Boolean; -- Flag4
8233
8234 function Source_Type
8235 (N : Node_Id) return Entity_Id; -- Node1
8236
8237 function Specification
8238 (N : Node_Id) return Node_Id; -- Node1
8239
8240 function Statements
8241 (N : Node_Id) return List_Id; -- List3
8242
8243 function Static_Processing_OK
8244 (N : Node_Id) return Boolean; -- Flag4
8245
8246 function Storage_Pool
8247 (N : Node_Id) return Node_Id; -- Node1
8248
8249 function Strval
8250 (N : Node_Id) return String_Id; -- Str3
8251
8252 function Subtype_Indication
8253 (N : Node_Id) return Node_Id; -- Node5
8254
8255 function Subtype_Mark
8256 (N : Node_Id) return Node_Id; -- Node4
8257
8258 function Subtype_Marks
8259 (N : Node_Id) return List_Id; -- List2
8260
8261 function Suppress_Loop_Warnings
8262 (N : Node_Id) return Boolean; -- Flag17
8263
8264 function Synchronized_Present
8265 (N : Node_Id) return Boolean; -- Flag7
8266
8267 function Tagged_Present
8268 (N : Node_Id) return Boolean; -- Flag15
8269
8270 function Target_Type
8271 (N : Node_Id) return Entity_Id; -- Node2
8272
8273 function Task_Definition
8274 (N : Node_Id) return Node_Id; -- Node3
8275
8276 function Task_Present
8277 (N : Node_Id) return Boolean; -- Flag5
8278
8279 function Then_Actions
8280 (N : Node_Id) return List_Id; -- List2
8281
8282 function Then_Statements
8283 (N : Node_Id) return List_Id; -- List2
8284
8285 function Treat_Fixed_As_Integer
8286 (N : Node_Id) return Boolean; -- Flag14
8287
8288 function Triggering_Alternative
8289 (N : Node_Id) return Node_Id; -- Node1
8290
8291 function Triggering_Statement
8292 (N : Node_Id) return Node_Id; -- Node1
8293
8294 function TSS_Elist
8295 (N : Node_Id) return Elist_Id; -- Elist3
8296
8297 function Type_Definition
8298 (N : Node_Id) return Node_Id; -- Node3
8299
8300 function Unit
8301 (N : Node_Id) return Node_Id; -- Node2
8302
8303 function Unknown_Discriminants_Present
8304 (N : Node_Id) return Boolean; -- Flag13
8305
8306 function Unreferenced_In_Spec
8307 (N : Node_Id) return Boolean; -- Flag7
8308
8309 function Variant_Part
8310 (N : Node_Id) return Node_Id; -- Node4
8311
8312 function Variants
8313 (N : Node_Id) return List_Id; -- List1
8314
8315 function Visible_Declarations
8316 (N : Node_Id) return List_Id; -- List2
8317
8318 function Was_Originally_Stub
8319 (N : Node_Id) return Boolean; -- Flag13
8320
8321 function Zero_Cost_Handling
8322 (N : Node_Id) return Boolean; -- Flag5
8323
8324 -- End functions (note used by xsinfo utility program to end processing)
8325
8326 ----------------------------
8327 -- Node Update Procedures --
8328 ----------------------------
8329
8330 -- These are the corresponding node update routines, which again provide
8331 -- a high level logical access with type checking. In addition to setting
8332 -- the indicated field of the node N to the given Val, in the case of
8333 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8334 -- point back to node N. This automates the setting of the parent pointer.
8335
8336 procedure Set_ABE_Is_Certain
8337 (N : Node_Id; Val : Boolean := True); -- Flag18
8338
8339 procedure Set_Abort_Present
8340 (N : Node_Id; Val : Boolean := True); -- Flag15
8341
8342 procedure Set_Abortable_Part
8343 (N : Node_Id; Val : Node_Id); -- Node2
8344
8345 procedure Set_Abstract_Present
8346 (N : Node_Id; Val : Boolean := True); -- Flag4
8347
8348 procedure Set_Accept_Handler_Records
8349 (N : Node_Id; Val : List_Id); -- List5
8350
8351 procedure Set_Accept_Statement
8352 (N : Node_Id; Val : Node_Id); -- Node2
8353
8354 procedure Set_Access_Definition
8355 (N : Node_Id; Val : Node_Id); -- Node3
8356
8357 procedure Set_Access_To_Subprogram_Definition
8358 (N : Node_Id; Val : Node_Id); -- Node3
8359
8360 procedure Set_Access_Types_To_Process
8361 (N : Node_Id; Val : Elist_Id); -- Elist2
8362
8363 procedure Set_Actions
8364 (N : Node_Id; Val : List_Id); -- List1
8365
8366 procedure Set_Activation_Chain_Entity
8367 (N : Node_Id; Val : Node_Id); -- Node3
8368
8369 procedure Set_Acts_As_Spec
8370 (N : Node_Id; Val : Boolean := True); -- Flag4
8371
8372 procedure Set_Actual_Designated_Subtype
8373 (N : Node_Id; Val : Node_Id); -- Node4
8374
8375 procedure Set_Address_Warning_Posted
8376 (N : Node_Id; Val : Boolean := True); -- Flag18
8377
8378 procedure Set_Aggregate_Bounds
8379 (N : Node_Id; Val : Node_Id); -- Node3
8380
8381 procedure Set_Aliased_Present
8382 (N : Node_Id; Val : Boolean := True); -- Flag4
8383
8384 procedure Set_All_Others
8385 (N : Node_Id; Val : Boolean := True); -- Flag11
8386
8387 procedure Set_All_Present
8388 (N : Node_Id; Val : Boolean := True); -- Flag15
8389
8390 procedure Set_Alternatives
8391 (N : Node_Id; Val : List_Id); -- List4
8392
8393 procedure Set_Ancestor_Part
8394 (N : Node_Id; Val : Node_Id); -- Node3
8395
8396 procedure Set_Array_Aggregate
8397 (N : Node_Id; Val : Node_Id); -- Node3
8398
8399 procedure Set_Assignment_OK
8400 (N : Node_Id; Val : Boolean := True); -- Flag15
8401
8402 procedure Set_Associated_Node
8403 (N : Node_Id; Val : Node_Id); -- Node4
8404
8405 procedure Set_Attribute_Name
8406 (N : Node_Id; Val : Name_Id); -- Name2
8407
8408 procedure Set_At_End_Proc
8409 (N : Node_Id; Val : Node_Id); -- Node1
8410
8411 procedure Set_Aux_Decls_Node
8412 (N : Node_Id; Val : Node_Id); -- Node5
8413
8414 procedure Set_Backwards_OK
8415 (N : Node_Id; Val : Boolean := True); -- Flag6
8416
8417 procedure Set_Bad_Is_Detected
8418 (N : Node_Id; Val : Boolean := True); -- Flag15
8419
8420 procedure Set_Body_Required
8421 (N : Node_Id; Val : Boolean := True); -- Flag13
8422
8423 procedure Set_Body_To_Inline
8424 (N : Node_Id; Val : Node_Id); -- Node3
8425
8426 procedure Set_Box_Present
8427 (N : Node_Id; Val : Boolean := True); -- Flag15
8428
8429 procedure Set_By_Ref
8430 (N : Node_Id; Val : Boolean := True); -- Flag5
8431
8432 procedure Set_Char_Literal_Value
8433 (N : Node_Id; Val : Uint); -- Uint2
8434
8435 procedure Set_Chars
8436 (N : Node_Id; Val : Name_Id); -- Name1
8437
8438 procedure Set_Check_Address_Alignment
8439 (N : Node_Id; Val : Boolean := True); -- Flag11
8440
8441 procedure Set_Choice_Parameter
8442 (N : Node_Id; Val : Node_Id); -- Node2
8443
8444 procedure Set_Coextensions
8445 (N : Node_Id; Val : Elist_Id); -- Elist4
8446
8447 procedure Set_Choices
8448 (N : Node_Id; Val : List_Id); -- List1
8449
8450 procedure Set_Comes_From_Extended_Return_Statement
8451 (N : Node_Id; Val : Boolean := True); -- Flag18
8452
8453 procedure Set_Compile_Time_Known_Aggregate
8454 (N : Node_Id; Val : Boolean := True); -- Flag18
8455
8456 procedure Set_Component_Associations
8457 (N : Node_Id; Val : List_Id); -- List2
8458
8459 procedure Set_Component_Clauses
8460 (N : Node_Id; Val : List_Id); -- List3
8461
8462 procedure Set_Component_Definition
8463 (N : Node_Id; Val : Node_Id); -- Node4
8464
8465 procedure Set_Component_Items
8466 (N : Node_Id; Val : List_Id); -- List3
8467
8468 procedure Set_Component_List
8469 (N : Node_Id; Val : Node_Id); -- Node1
8470
8471 procedure Set_Component_Name
8472 (N : Node_Id; Val : Node_Id); -- Node1
8473
8474 procedure Set_Condition
8475 (N : Node_Id; Val : Node_Id); -- Node1
8476
8477 procedure Set_Condition_Actions
8478 (N : Node_Id; Val : List_Id); -- List3
8479
8480 procedure Set_Config_Pragmas
8481 (N : Node_Id; Val : List_Id); -- List4
8482
8483 procedure Set_Constant_Present
8484 (N : Node_Id; Val : Boolean := True); -- Flag17
8485
8486 procedure Set_Constraint
8487 (N : Node_Id; Val : Node_Id); -- Node3
8488
8489 procedure Set_Constraints
8490 (N : Node_Id; Val : List_Id); -- List1
8491
8492 procedure Set_Context_Installed
8493 (N : Node_Id; Val : Boolean := True); -- Flag13
8494
8495 procedure Set_Context_Items
8496 (N : Node_Id; Val : List_Id); -- List1
8497
8498 procedure Set_Controlling_Argument
8499 (N : Node_Id; Val : Node_Id); -- Node1
8500
8501 procedure Set_Conversion_OK
8502 (N : Node_Id; Val : Boolean := True); -- Flag14
8503
8504 procedure Set_Corresponding_Body
8505 (N : Node_Id; Val : Node_Id); -- Node5
8506
8507 procedure Set_Corresponding_Formal_Spec
8508 (N : Node_Id; Val : Node_Id); -- Node3
8509
8510 procedure Set_Corresponding_Generic_Association
8511 (N : Node_Id; Val : Node_Id); -- Node5
8512
8513 procedure Set_Corresponding_Integer_Value
8514 (N : Node_Id; Val : Uint); -- Uint4
8515
8516 procedure Set_Corresponding_Spec
8517 (N : Node_Id; Val : Node_Id); -- Node5
8518
8519 procedure Set_Corresponding_Stub
8520 (N : Node_Id; Val : Node_Id); -- Node3
8521
8522 procedure Set_Dcheck_Function
8523 (N : Node_Id; Val : Entity_Id); -- Node5
8524
8525 procedure Set_Debug_Statement
8526 (N : Node_Id; Val : Node_Id); -- Node3
8527
8528 procedure Set_Declarations
8529 (N : Node_Id; Val : List_Id); -- List2
8530
8531 procedure Set_Default_Expression
8532 (N : Node_Id; Val : Node_Id); -- Node5
8533
8534 procedure Set_Default_Name
8535 (N : Node_Id; Val : Node_Id); -- Node2
8536
8537 procedure Set_Defining_Identifier
8538 (N : Node_Id; Val : Entity_Id); -- Node1
8539
8540 procedure Set_Defining_Unit_Name
8541 (N : Node_Id; Val : Node_Id); -- Node1
8542
8543 procedure Set_Delay_Alternative
8544 (N : Node_Id; Val : Node_Id); -- Node4
8545
8546 procedure Set_Delay_Statement
8547 (N : Node_Id; Val : Node_Id); -- Node2
8548
8549 procedure Set_Delta_Expression
8550 (N : Node_Id; Val : Node_Id); -- Node3
8551
8552 procedure Set_Digits_Expression
8553 (N : Node_Id; Val : Node_Id); -- Node2
8554
8555 procedure Set_Discr_Check_Funcs_Built
8556 (N : Node_Id; Val : Boolean := True); -- Flag11
8557
8558 procedure Set_Discrete_Choices
8559 (N : Node_Id; Val : List_Id); -- List4
8560
8561 procedure Set_Discrete_Range
8562 (N : Node_Id; Val : Node_Id); -- Node4
8563
8564 procedure Set_Discrete_Subtype_Definition
8565 (N : Node_Id; Val : Node_Id); -- Node4
8566
8567 procedure Set_Discrete_Subtype_Definitions
8568 (N : Node_Id; Val : List_Id); -- List2
8569
8570 procedure Set_Discriminant_Specifications
8571 (N : Node_Id; Val : List_Id); -- List4
8572
8573 procedure Set_Discriminant_Type
8574 (N : Node_Id; Val : Node_Id); -- Node5
8575
8576 procedure Set_Do_Accessibility_Check
8577 (N : Node_Id; Val : Boolean := True); -- Flag13
8578
8579 procedure Set_Do_Discriminant_Check
8580 (N : Node_Id; Val : Boolean := True); -- Flag13
8581
8582 procedure Set_Do_Division_Check
8583 (N : Node_Id; Val : Boolean := True); -- Flag13
8584
8585 procedure Set_Do_Length_Check
8586 (N : Node_Id; Val : Boolean := True); -- Flag4
8587
8588 procedure Set_Do_Overflow_Check
8589 (N : Node_Id; Val : Boolean := True); -- Flag17
8590
8591 procedure Set_Do_Range_Check
8592 (N : Node_Id; Val : Boolean := True); -- Flag9
8593
8594 procedure Set_Do_Storage_Check
8595 (N : Node_Id; Val : Boolean := True); -- Flag17
8596
8597 procedure Set_Do_Tag_Check
8598 (N : Node_Id; Val : Boolean := True); -- Flag13
8599
8600 procedure Set_Elaborate_All_Desirable
8601 (N : Node_Id; Val : Boolean := True); -- Flag9
8602
8603 procedure Set_Elaborate_All_Present
8604 (N : Node_Id; Val : Boolean := True); -- Flag14
8605
8606 procedure Set_Elaborate_Desirable
8607 (N : Node_Id; Val : Boolean := True); -- Flag11
8608
8609 procedure Set_Elaborate_Present
8610 (N : Node_Id; Val : Boolean := True); -- Flag4
8611
8612 procedure Set_Elaboration_Boolean
8613 (N : Node_Id; Val : Node_Id); -- Node2
8614
8615 procedure Set_Else_Actions
8616 (N : Node_Id; Val : List_Id); -- List3
8617
8618 procedure Set_Else_Statements
8619 (N : Node_Id; Val : List_Id); -- List4
8620
8621 procedure Set_Elsif_Parts
8622 (N : Node_Id; Val : List_Id); -- List3
8623
8624 procedure Set_Enclosing_Variant
8625 (N : Node_Id; Val : Node_Id); -- Node2
8626
8627 procedure Set_End_Label
8628 (N : Node_Id; Val : Node_Id); -- Node4
8629
8630 procedure Set_End_Span
8631 (N : Node_Id; Val : Uint); -- Uint5
8632
8633 procedure Set_Entity
8634 (N : Node_Id; Val : Node_Id); -- Node4
8635
8636 procedure Set_Entry_Body_Formal_Part
8637 (N : Node_Id; Val : Node_Id); -- Node5
8638
8639 procedure Set_Entry_Call_Alternative
8640 (N : Node_Id; Val : Node_Id); -- Node1
8641
8642 procedure Set_Entry_Call_Statement
8643 (N : Node_Id; Val : Node_Id); -- Node1
8644
8645 procedure Set_Entry_Direct_Name
8646 (N : Node_Id; Val : Node_Id); -- Node1
8647
8648 procedure Set_Entry_Index
8649 (N : Node_Id; Val : Node_Id); -- Node5
8650
8651 procedure Set_Entry_Index_Specification
8652 (N : Node_Id; Val : Node_Id); -- Node4
8653
8654 procedure Set_Etype
8655 (N : Node_Id; Val : Node_Id); -- Node5
8656
8657 procedure Set_Exception_Choices
8658 (N : Node_Id; Val : List_Id); -- List4
8659
8660 procedure Set_Exception_Handlers
8661 (N : Node_Id; Val : List_Id); -- List5
8662
8663 procedure Set_Exception_Junk
8664 (N : Node_Id; Val : Boolean := True); -- Flag8
8665
8666 procedure Set_Exception_Label
8667 (N : Node_Id; Val : Node_Id); -- Node5
8668
8669 procedure Set_Expansion_Delayed
8670 (N : Node_Id; Val : Boolean := True); -- Flag11
8671
8672 procedure Set_Explicit_Actual_Parameter
8673 (N : Node_Id; Val : Node_Id); -- Node3
8674
8675 procedure Set_Explicit_Generic_Actual_Parameter
8676 (N : Node_Id; Val : Node_Id); -- Node1
8677
8678 procedure Set_Expression
8679 (N : Node_Id; Val : Node_Id); -- Node3
8680
8681 procedure Set_Expressions
8682 (N : Node_Id; Val : List_Id); -- List1
8683
8684 procedure Set_First_Bit
8685 (N : Node_Id; Val : Node_Id); -- Node3
8686
8687 procedure Set_First_Inlined_Subprogram
8688 (N : Node_Id; Val : Entity_Id); -- Node3
8689
8690 procedure Set_First_Name
8691 (N : Node_Id; Val : Boolean := True); -- Flag5
8692
8693 procedure Set_First_Named_Actual
8694 (N : Node_Id; Val : Node_Id); -- Node4
8695
8696 procedure Set_First_Real_Statement
8697 (N : Node_Id; Val : Node_Id); -- Node2
8698
8699 procedure Set_First_Subtype_Link
8700 (N : Node_Id; Val : Entity_Id); -- Node5
8701
8702 procedure Set_Float_Truncate
8703 (N : Node_Id; Val : Boolean := True); -- Flag11
8704
8705 procedure Set_Formal_Type_Definition
8706 (N : Node_Id; Val : Node_Id); -- Node3
8707
8708 procedure Set_Forwards_OK
8709 (N : Node_Id; Val : Boolean := True); -- Flag5
8710
8711 procedure Set_From_At_Mod
8712 (N : Node_Id; Val : Boolean := True); -- Flag4
8713
8714 procedure Set_From_At_End
8715 (N : Node_Id; Val : Boolean := True); -- Flag4
8716
8717 procedure Set_From_Default
8718 (N : Node_Id; Val : Boolean := True); -- Flag6
8719
8720 procedure Set_Generic_Associations
8721 (N : Node_Id; Val : List_Id); -- List3
8722
8723 procedure Set_Generic_Formal_Declarations
8724 (N : Node_Id; Val : List_Id); -- List2
8725
8726 procedure Set_Generic_Parent
8727 (N : Node_Id; Val : Node_Id); -- Node5
8728
8729 procedure Set_Generic_Parent_Type
8730 (N : Node_Id; Val : Node_Id); -- Node4
8731
8732 procedure Set_Handled_Statement_Sequence
8733 (N : Node_Id; Val : Node_Id); -- Node4
8734
8735 procedure Set_Handler_List_Entry
8736 (N : Node_Id; Val : Node_Id); -- Node2
8737
8738 procedure Set_Has_Created_Identifier
8739 (N : Node_Id; Val : Boolean := True); -- Flag15
8740
8741 procedure Set_Has_Dynamic_Length_Check
8742 (N : Node_Id; Val : Boolean := True); -- Flag10
8743
8744 procedure Set_Has_Dynamic_Range_Check
8745 (N : Node_Id; Val : Boolean := True); -- Flag12
8746
8747 procedure Set_Has_Init_Expression
8748 (N : Node_Id; Val : Boolean := True); -- Flag14
8749
8750 procedure Set_Has_Local_Raise
8751 (N : Node_Id; Val : Boolean := True); -- Flag8
8752
8753 procedure Set_Has_No_Elaboration_Code
8754 (N : Node_Id; Val : Boolean := True); -- Flag17
8755
8756 procedure Set_Has_Priority_Pragma
8757 (N : Node_Id; Val : Boolean := True); -- Flag6
8758
8759 procedure Set_Has_Private_View
8760 (N : Node_Id; Val : Boolean := True); -- Flag11
8761
8762 procedure Set_Has_Relative_Deadline_Pragma
8763 (N : Node_Id; Val : Boolean := True); -- Flag9
8764
8765 procedure Set_Has_Self_Reference
8766 (N : Node_Id; Val : Boolean := True); -- Flag13
8767
8768 procedure Set_Has_Storage_Size_Pragma
8769 (N : Node_Id; Val : Boolean := True); -- Flag5
8770
8771 procedure Set_Has_Task_Info_Pragma
8772 (N : Node_Id; Val : Boolean := True); -- Flag7
8773
8774 procedure Set_Has_Task_Name_Pragma
8775 (N : Node_Id; Val : Boolean := True); -- Flag8
8776
8777 procedure Set_Has_Wide_Character
8778 (N : Node_Id; Val : Boolean := True); -- Flag11
8779
8780 procedure Set_Hidden_By_Use_Clause
8781 (N : Node_Id; Val : Elist_Id); -- Elist4
8782
8783 procedure Set_High_Bound
8784 (N : Node_Id; Val : Node_Id); -- Node2
8785
8786 procedure Set_Identifier
8787 (N : Node_Id; Val : Node_Id); -- Node1
8788
8789 procedure Set_Interface_List
8790 (N : Node_Id; Val : List_Id); -- List2
8791
8792 procedure Set_Interface_Present
8793 (N : Node_Id; Val : Boolean := True); -- Flag16
8794
8795 procedure Set_Implicit_With
8796 (N : Node_Id; Val : Boolean := True); -- Flag16
8797
8798 procedure Set_In_Present
8799 (N : Node_Id; Val : Boolean := True); -- Flag15
8800
8801 procedure Set_Includes_Infinities
8802 (N : Node_Id; Val : Boolean := True); -- Flag11
8803
8804 procedure Set_Instance_Spec
8805 (N : Node_Id; Val : Node_Id); -- Node5
8806
8807 procedure Set_Intval
8808 (N : Node_Id; Val : Uint); -- Uint3
8809
8810 procedure Set_Is_Asynchronous_Call_Block
8811 (N : Node_Id; Val : Boolean := True); -- Flag7
8812
8813 procedure Set_Is_Component_Left_Opnd
8814 (N : Node_Id; Val : Boolean := True); -- Flag13
8815
8816 procedure Set_Is_Component_Right_Opnd
8817 (N : Node_Id; Val : Boolean := True); -- Flag14
8818
8819 procedure Set_Is_Controlling_Actual
8820 (N : Node_Id; Val : Boolean := True); -- Flag16
8821
8822 procedure Set_Is_Dynamic_Coextension
8823 (N : Node_Id; Val : Boolean := True); -- Flag18
8824
8825 procedure Set_Is_Entry_Barrier_Function
8826 (N : Node_Id; Val : Boolean := True); -- Flag8
8827
8828 procedure Set_Is_Expanded_Build_In_Place_Call
8829 (N : Node_Id; Val : Boolean := True); -- Flag11
8830
8831 procedure Set_Is_Folded_In_Parser
8832 (N : Node_Id; Val : Boolean := True); -- Flag4
8833
8834 procedure Set_Is_In_Discriminant_Check
8835 (N : Node_Id; Val : Boolean := True); -- Flag11
8836
8837 procedure Set_Is_Machine_Number
8838 (N : Node_Id; Val : Boolean := True); -- Flag11
8839
8840 procedure Set_Is_Null_Loop
8841 (N : Node_Id; Val : Boolean := True); -- Flag16
8842
8843 procedure Set_Is_Overloaded
8844 (N : Node_Id; Val : Boolean := True); -- Flag5
8845
8846 procedure Set_Is_Power_Of_2_For_Shift
8847 (N : Node_Id; Val : Boolean := True); -- Flag13
8848
8849 procedure Set_Is_Protected_Subprogram_Body
8850 (N : Node_Id; Val : Boolean := True); -- Flag7
8851
8852 procedure Set_Is_Static_Coextension
8853 (N : Node_Id; Val : Boolean := True); -- Flag14
8854
8855 procedure Set_Is_Static_Expression
8856 (N : Node_Id; Val : Boolean := True); -- Flag6
8857
8858 procedure Set_Is_Subprogram_Descriptor
8859 (N : Node_Id; Val : Boolean := True); -- Flag16
8860
8861 procedure Set_Is_Task_Allocation_Block
8862 (N : Node_Id; Val : Boolean := True); -- Flag6
8863
8864 procedure Set_Is_Task_Master
8865 (N : Node_Id; Val : Boolean := True); -- Flag5
8866
8867 procedure Set_Iteration_Scheme
8868 (N : Node_Id; Val : Node_Id); -- Node2
8869
8870 procedure Set_Itype
8871 (N : Node_Id; Val : Entity_Id); -- Node1
8872
8873 procedure Set_Kill_Range_Check
8874 (N : Node_Id; Val : Boolean := True); -- Flag11
8875
8876 procedure Set_Last_Bit
8877 (N : Node_Id; Val : Node_Id); -- Node4
8878
8879 procedure Set_Last_Name
8880 (N : Node_Id; Val : Boolean := True); -- Flag6
8881
8882 procedure Set_Library_Unit
8883 (N : Node_Id; Val : Node_Id); -- Node4
8884
8885 procedure Set_Label_Construct
8886 (N : Node_Id; Val : Node_Id); -- Node2
8887
8888 procedure Set_Left_Opnd
8889 (N : Node_Id; Val : Node_Id); -- Node2
8890
8891 procedure Set_Limited_View_Installed
8892 (N : Node_Id; Val : Boolean := True); -- Flag18
8893
8894 procedure Set_Limited_Present
8895 (N : Node_Id; Val : Boolean := True); -- Flag17
8896
8897 procedure Set_Literals
8898 (N : Node_Id; Val : List_Id); -- List1
8899
8900 procedure Set_Local_Raise_Not_OK
8901 (N : Node_Id; Val : Boolean := True); -- Flag7
8902
8903 procedure Set_Local_Raise_Statements
8904 (N : Node_Id; Val : Elist_Id); -- Elist1
8905
8906 procedure Set_Loop_Actions
8907 (N : Node_Id; Val : List_Id); -- List2
8908
8909 procedure Set_Loop_Parameter_Specification
8910 (N : Node_Id; Val : Node_Id); -- Node4
8911
8912 procedure Set_Low_Bound
8913 (N : Node_Id; Val : Node_Id); -- Node1
8914
8915 procedure Set_Mod_Clause
8916 (N : Node_Id; Val : Node_Id); -- Node2
8917
8918 procedure Set_More_Ids
8919 (N : Node_Id; Val : Boolean := True); -- Flag5
8920
8921 procedure Set_Must_Be_Byte_Aligned
8922 (N : Node_Id; Val : Boolean := True); -- Flag14
8923
8924 procedure Set_Must_Not_Freeze
8925 (N : Node_Id; Val : Boolean := True); -- Flag8
8926
8927 procedure Set_Must_Not_Override
8928 (N : Node_Id; Val : Boolean := True); -- Flag15
8929
8930 procedure Set_Must_Override
8931 (N : Node_Id; Val : Boolean := True); -- Flag14
8932
8933 procedure Set_Name
8934 (N : Node_Id; Val : Node_Id); -- Node2
8935
8936 procedure Set_Names
8937 (N : Node_Id; Val : List_Id); -- List2
8938
8939 procedure Set_Next_Entity
8940 (N : Node_Id; Val : Node_Id); -- Node2
8941
8942 procedure Set_Next_Named_Actual
8943 (N : Node_Id; Val : Node_Id); -- Node4
8944
8945 procedure Set_Next_Pragma
8946 (N : Node_Id; Val : Node_Id); -- Node1
8947
8948 procedure Set_Next_Rep_Item
8949 (N : Node_Id; Val : Node_Id); -- Node5
8950
8951 procedure Set_Next_Use_Clause
8952 (N : Node_Id; Val : Node_Id); -- Node3
8953
8954 procedure Set_No_Ctrl_Actions
8955 (N : Node_Id; Val : Boolean := True); -- Flag7
8956
8957 procedure Set_No_Elaboration_Check
8958 (N : Node_Id; Val : Boolean := True); -- Flag14
8959
8960 procedure Set_No_Entities_Ref_In_Spec
8961 (N : Node_Id; Val : Boolean := True); -- Flag8
8962
8963 procedure Set_No_Initialization
8964 (N : Node_Id; Val : Boolean := True); -- Flag13
8965
8966 procedure Set_No_Truncation
8967 (N : Node_Id; Val : Boolean := True); -- Flag17
8968
8969 procedure Set_Null_Present
8970 (N : Node_Id; Val : Boolean := True); -- Flag13
8971
8972 procedure Set_Null_Exclusion_Present
8973 (N : Node_Id; Val : Boolean := True); -- Flag11
8974
8975 procedure Set_Null_Record_Present
8976 (N : Node_Id; Val : Boolean := True); -- Flag17
8977
8978 procedure Set_Object_Definition
8979 (N : Node_Id; Val : Node_Id); -- Node4
8980
8981 procedure Set_Original_Discriminant
8982 (N : Node_Id; Val : Node_Id); -- Node2
8983
8984 procedure Set_Original_Entity
8985 (N : Node_Id; Val : Entity_Id); -- Node2
8986
8987 procedure Set_Others_Discrete_Choices
8988 (N : Node_Id; Val : List_Id); -- List1
8989
8990 procedure Set_Out_Present
8991 (N : Node_Id; Val : Boolean := True); -- Flag17
8992
8993 procedure Set_Parameter_Associations
8994 (N : Node_Id; Val : List_Id); -- List3
8995
8996 procedure Set_Parameter_List_Truncated
8997 (N : Node_Id; Val : Boolean := True); -- Flag17
8998
8999 procedure Set_Parameter_Specifications
9000 (N : Node_Id; Val : List_Id); -- List3
9001
9002 procedure Set_Parameter_Type
9003 (N : Node_Id; Val : Node_Id); -- Node2
9004
9005 procedure Set_Parent_Spec
9006 (N : Node_Id; Val : Node_Id); -- Node4
9007
9008 procedure Set_PPC_Enabled
9009 (N : Node_Id; Val : Boolean := True); -- Flag5
9010
9011 procedure Set_Position
9012 (N : Node_Id; Val : Node_Id); -- Node2
9013
9014 procedure Set_Pragma_Argument_Associations
9015 (N : Node_Id; Val : List_Id); -- List2
9016
9017 procedure Set_Pragma_Identifier
9018 (N : Node_Id; Val : Node_Id); -- Node4
9019
9020 procedure Set_Pragmas_After
9021 (N : Node_Id; Val : List_Id); -- List5
9022
9023 procedure Set_Pragmas_Before
9024 (N : Node_Id; Val : List_Id); -- List4
9025
9026 procedure Set_Prefix
9027 (N : Node_Id; Val : Node_Id); -- Node3
9028
9029 procedure Set_Present_Expr
9030 (N : Node_Id; Val : Uint); -- Uint3
9031
9032 procedure Set_Prev_Ids
9033 (N : Node_Id; Val : Boolean := True); -- Flag6
9034
9035 procedure Set_Print_In_Hex
9036 (N : Node_Id; Val : Boolean := True); -- Flag13
9037
9038 procedure Set_Private_Declarations
9039 (N : Node_Id; Val : List_Id); -- List3
9040
9041 procedure Set_Private_Present
9042 (N : Node_Id; Val : Boolean := True); -- Flag15
9043
9044 procedure Set_Procedure_To_Call
9045 (N : Node_Id; Val : Node_Id); -- Node2
9046
9047 procedure Set_Proper_Body
9048 (N : Node_Id; Val : Node_Id); -- Node1
9049
9050 procedure Set_Protected_Definition
9051 (N : Node_Id; Val : Node_Id); -- Node3
9052
9053 procedure Set_Protected_Present
9054 (N : Node_Id; Val : Boolean := True); -- Flag6
9055
9056 procedure Set_Raises_Constraint_Error
9057 (N : Node_Id; Val : Boolean := True); -- Flag7
9058
9059 procedure Set_Range_Constraint
9060 (N : Node_Id; Val : Node_Id); -- Node4
9061
9062 procedure Set_Range_Expression
9063 (N : Node_Id; Val : Node_Id); -- Node4
9064
9065 procedure Set_Real_Range_Specification
9066 (N : Node_Id; Val : Node_Id); -- Node4
9067
9068 procedure Set_Realval
9069 (N : Node_Id; Val : Ureal); -- Ureal3
9070
9071 procedure Set_Reason
9072 (N : Node_Id; Val : Uint); -- Uint3
9073
9074 procedure Set_Record_Extension_Part
9075 (N : Node_Id; Val : Node_Id); -- Node3
9076
9077 procedure Set_Redundant_Use
9078 (N : Node_Id; Val : Boolean := True); -- Flag13
9079
9080 procedure Set_Renaming_Exception
9081 (N : Node_Id; Val : Node_Id); -- Node2
9082
9083 procedure Set_Result_Definition
9084 (N : Node_Id; Val : Node_Id); -- Node4
9085
9086 procedure Set_Return_Object_Declarations
9087 (N : Node_Id; Val : List_Id); -- List3
9088
9089 procedure Set_Return_Statement_Entity
9090 (N : Node_Id; Val : Node_Id); -- Node5
9091
9092 procedure Set_Reverse_Present
9093 (N : Node_Id; Val : Boolean := True); -- Flag15
9094
9095 procedure Set_Right_Opnd
9096 (N : Node_Id; Val : Node_Id); -- Node3
9097
9098 procedure Set_Rounded_Result
9099 (N : Node_Id; Val : Boolean := True); -- Flag18
9100
9101 procedure Set_Scope
9102 (N : Node_Id; Val : Node_Id); -- Node3
9103
9104 procedure Set_Select_Alternatives
9105 (N : Node_Id; Val : List_Id); -- List1
9106
9107 procedure Set_Selector_Name
9108 (N : Node_Id; Val : Node_Id); -- Node2
9109
9110 procedure Set_Selector_Names
9111 (N : Node_Id; Val : List_Id); -- List1
9112
9113 procedure Set_Shift_Count_OK
9114 (N : Node_Id; Val : Boolean := True); -- Flag4
9115
9116 procedure Set_Source_Type
9117 (N : Node_Id; Val : Entity_Id); -- Node1
9118
9119 procedure Set_Specification
9120 (N : Node_Id; Val : Node_Id); -- Node1
9121
9122 procedure Set_Statements
9123 (N : Node_Id; Val : List_Id); -- List3
9124
9125 procedure Set_Static_Processing_OK
9126 (N : Node_Id; Val : Boolean); -- Flag4
9127
9128 procedure Set_Storage_Pool
9129 (N : Node_Id; Val : Node_Id); -- Node1
9130
9131 procedure Set_Strval
9132 (N : Node_Id; Val : String_Id); -- Str3
9133
9134 procedure Set_Subtype_Indication
9135 (N : Node_Id; Val : Node_Id); -- Node5
9136
9137 procedure Set_Subtype_Mark
9138 (N : Node_Id; Val : Node_Id); -- Node4
9139
9140 procedure Set_Subtype_Marks
9141 (N : Node_Id; Val : List_Id); -- List2
9142
9143 procedure Set_Suppress_Loop_Warnings
9144 (N : Node_Id; Val : Boolean := True); -- Flag17
9145
9146 procedure Set_Synchronized_Present
9147 (N : Node_Id; Val : Boolean := True); -- Flag7
9148
9149 procedure Set_Tagged_Present
9150 (N : Node_Id; Val : Boolean := True); -- Flag15
9151
9152 procedure Set_Target_Type
9153 (N : Node_Id; Val : Entity_Id); -- Node2
9154
9155 procedure Set_Task_Definition
9156 (N : Node_Id; Val : Node_Id); -- Node3
9157
9158 procedure Set_Task_Present
9159 (N : Node_Id; Val : Boolean := True); -- Flag5
9160
9161 procedure Set_Then_Actions
9162 (N : Node_Id; Val : List_Id); -- List2
9163
9164 procedure Set_Then_Statements
9165 (N : Node_Id; Val : List_Id); -- List2
9166
9167 procedure Set_Treat_Fixed_As_Integer
9168 (N : Node_Id; Val : Boolean := True); -- Flag14
9169
9170 procedure Set_Triggering_Alternative
9171 (N : Node_Id; Val : Node_Id); -- Node1
9172
9173 procedure Set_Triggering_Statement
9174 (N : Node_Id; Val : Node_Id); -- Node1
9175
9176 procedure Set_TSS_Elist
9177 (N : Node_Id; Val : Elist_Id); -- Elist3
9178
9179 procedure Set_Type_Definition
9180 (N : Node_Id; Val : Node_Id); -- Node3
9181
9182 procedure Set_Unit
9183 (N : Node_Id; Val : Node_Id); -- Node2
9184
9185 procedure Set_Unknown_Discriminants_Present
9186 (N : Node_Id; Val : Boolean := True); -- Flag13
9187
9188 procedure Set_Unreferenced_In_Spec
9189 (N : Node_Id; Val : Boolean := True); -- Flag7
9190
9191 procedure Set_Variant_Part
9192 (N : Node_Id; Val : Node_Id); -- Node4
9193
9194 procedure Set_Variants
9195 (N : Node_Id; Val : List_Id); -- List1
9196
9197 procedure Set_Visible_Declarations
9198 (N : Node_Id; Val : List_Id); -- List2
9199
9200 procedure Set_Was_Originally_Stub
9201 (N : Node_Id; Val : Boolean := True); -- Flag13
9202
9203 procedure Set_Zero_Cost_Handling
9204 (N : Node_Id; Val : Boolean := True); -- Flag5
9205
9206 -------------------------
9207 -- Iterator Procedures --
9208 -------------------------
9209
9210 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9211
9212 procedure Next_Entity (N : in out Node_Id);
9213 procedure Next_Named_Actual (N : in out Node_Id);
9214 procedure Next_Rep_Item (N : in out Node_Id);
9215 procedure Next_Use_Clause (N : in out Node_Id);
9216
9217 --------------------------------------
9218 -- Logical Access to End_Span Field --
9219 --------------------------------------
9220
9221 function End_Location (N : Node_Id) return Source_Ptr;
9222 -- N is an N_If_Statement or N_Case_Statement node, and this
9223 -- function returns the location of the IF token in the END IF
9224 -- sequence by translating the value of the End_Span field.
9225
9226 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9227 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9228 -- sets the End_Span field to correspond to the given value S. In
9229 -- other words, End_Span is set to the difference between S and
9230 -- Sloc (N), the starting location.
9231
9232 --------------------------------
9233 -- Node_Kind Membership Tests --
9234 --------------------------------
9235
9236 -- The following functions allow a convenient notation for testing whether
9237 -- a Node_Kind value matches any one of a list of possible values. In each
9238 -- case True is returned if the given T argument is equal to any of the V
9239 -- arguments. Note that there is a similar set of functions defined in
9240 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9241
9242 function Nkind_In
9243 (T : Node_Kind;
9244 V1 : Node_Kind;
9245 V2 : Node_Kind) return Boolean;
9246
9247 function Nkind_In
9248 (T : Node_Kind;
9249 V1 : Node_Kind;
9250 V2 : Node_Kind;
9251 V3 : Node_Kind) return Boolean;
9252
9253 function Nkind_In
9254 (T : Node_Kind;
9255 V1 : Node_Kind;
9256 V2 : Node_Kind;
9257 V3 : Node_Kind;
9258 V4 : Node_Kind) return Boolean;
9259
9260 function Nkind_In
9261 (T : Node_Kind;
9262 V1 : Node_Kind;
9263 V2 : Node_Kind;
9264 V3 : Node_Kind;
9265 V4 : Node_Kind;
9266 V5 : Node_Kind) return Boolean;
9267
9268 function Nkind_In
9269 (T : Node_Kind;
9270 V1 : Node_Kind;
9271 V2 : Node_Kind;
9272 V3 : Node_Kind;
9273 V4 : Node_Kind;
9274 V5 : Node_Kind;
9275 V6 : Node_Kind) return Boolean;
9276
9277 function Nkind_In
9278 (T : Node_Kind;
9279 V1 : Node_Kind;
9280 V2 : Node_Kind;
9281 V3 : Node_Kind;
9282 V4 : Node_Kind;
9283 V5 : Node_Kind;
9284 V6 : Node_Kind;
9285 V7 : Node_Kind) return Boolean;
9286
9287 function Nkind_In
9288 (T : Node_Kind;
9289 V1 : Node_Kind;
9290 V2 : Node_Kind;
9291 V3 : Node_Kind;
9292 V4 : Node_Kind;
9293 V5 : Node_Kind;
9294 V6 : Node_Kind;
9295 V7 : Node_Kind;
9296 V8 : Node_Kind) return Boolean;
9297
9298 pragma Inline (Nkind_In);
9299 -- Inline all above functions
9300
9301 -----------------------
9302 -- Utility Functions --
9303 -----------------------
9304
9305 function Pragma_Name (N : Node_Id) return Name_Id;
9306 pragma Inline (Pragma_Name);
9307 -- Convenient function to obtain Chars field of Pragma_Identifier
9308
9309 -----------------------------
9310 -- Syntactic Parent Tables --
9311 -----------------------------
9312
9313 -- These tables show for each node, and for each of the five fields,
9314 -- whether the corresponding field is syntactic (True) or semantic (False).
9315 -- Unused entries are also set to False.
9316
9317 subtype Field_Num is Natural range 1 .. 5;
9318
9319 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9320
9321 -- Following entries can be built automatically from the sinfo sources
9322 -- using the makeisf utility (currently this program is in spitbol).
9323
9324 N_Identifier =>
9325 (1 => True, -- Chars (Name1)
9326 2 => False, -- Original_Discriminant (Node2-Sem)
9327 3 => False, -- unused
9328 4 => False, -- Entity (Node4-Sem)
9329 5 => False), -- Etype (Node5-Sem)
9330
9331 N_Integer_Literal =>
9332 (1 => False, -- unused
9333 2 => False, -- Original_Entity (Node2-Sem)
9334 3 => True, -- Intval (Uint3)
9335 4 => False, -- unused
9336 5 => False), -- Etype (Node5-Sem)
9337
9338 N_Real_Literal =>
9339 (1 => False, -- unused
9340 2 => False, -- Original_Entity (Node2-Sem)
9341 3 => True, -- Realval (Ureal3)
9342 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9343 5 => False), -- Etype (Node5-Sem)
9344
9345 N_Character_Literal =>
9346 (1 => True, -- Chars (Name1)
9347 2 => True, -- Char_Literal_Value (Uint2)
9348 3 => False, -- unused
9349 4 => False, -- Entity (Node4-Sem)
9350 5 => False), -- Etype (Node5-Sem)
9351
9352 N_String_Literal =>
9353 (1 => False, -- unused
9354 2 => False, -- unused
9355 3 => True, -- Strval (Str3)
9356 4 => False, -- unused
9357 5 => False), -- Etype (Node5-Sem)
9358
9359 N_Pragma =>
9360 (1 => False, -- Next_Pragma (Node1-Sem)
9361 2 => True, -- Pragma_Argument_Associations (List2)
9362 3 => True, -- Debug_Statement (Node3)
9363 4 => True, -- Pragma_Identifier (Node4)
9364 5 => False), -- Next_Rep_Item (Node5-Sem)
9365
9366 N_Pragma_Argument_Association =>
9367 (1 => True, -- Chars (Name1)
9368 2 => False, -- unused
9369 3 => True, -- Expression (Node3)
9370 4 => False, -- unused
9371 5 => False), -- unused
9372
9373 N_Defining_Identifier =>
9374 (1 => True, -- Chars (Name1)
9375 2 => False, -- Next_Entity (Node2-Sem)
9376 3 => False, -- Scope (Node3-Sem)
9377 4 => False, -- unused
9378 5 => False), -- Etype (Node5-Sem)
9379
9380 N_Full_Type_Declaration =>
9381 (1 => True, -- Defining_Identifier (Node1)
9382 2 => False, -- unused
9383 3 => True, -- Type_Definition (Node3)
9384 4 => True, -- Discriminant_Specifications (List4)
9385 5 => False), -- unused
9386
9387 N_Subtype_Declaration =>
9388 (1 => True, -- Defining_Identifier (Node1)
9389 2 => False, -- unused
9390 3 => False, -- unused
9391 4 => False, -- Generic_Parent_Type (Node4-Sem)
9392 5 => True), -- Subtype_Indication (Node5)
9393
9394 N_Subtype_Indication =>
9395 (1 => False, -- unused
9396 2 => False, -- unused
9397 3 => True, -- Constraint (Node3)
9398 4 => True, -- Subtype_Mark (Node4)
9399 5 => False), -- Etype (Node5-Sem)
9400
9401 N_Object_Declaration =>
9402 (1 => True, -- Defining_Identifier (Node1)
9403 2 => False, -- Handler_List_Entry (Node2-Sem)
9404 3 => True, -- Expression (Node3)
9405 4 => True, -- Object_Definition (Node4)
9406 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9407
9408 N_Number_Declaration =>
9409 (1 => True, -- Defining_Identifier (Node1)
9410 2 => False, -- unused
9411 3 => True, -- Expression (Node3)
9412 4 => False, -- unused
9413 5 => False), -- unused
9414
9415 N_Derived_Type_Definition =>
9416 (1 => False, -- unused
9417 2 => True, -- Interface_List (List2)
9418 3 => True, -- Record_Extension_Part (Node3)
9419 4 => False, -- unused
9420 5 => True), -- Subtype_Indication (Node5)
9421
9422 N_Range_Constraint =>
9423 (1 => False, -- unused
9424 2 => False, -- unused
9425 3 => False, -- unused
9426 4 => True, -- Range_Expression (Node4)
9427 5 => False), -- unused
9428
9429 N_Range =>
9430 (1 => True, -- Low_Bound (Node1)
9431 2 => True, -- High_Bound (Node2)
9432 3 => False, -- unused
9433 4 => False, -- unused
9434 5 => False), -- Etype (Node5-Sem)
9435
9436 N_Enumeration_Type_Definition =>
9437 (1 => True, -- Literals (List1)
9438 2 => False, -- unused
9439 3 => False, -- unused
9440 4 => True, -- End_Label (Node4)
9441 5 => False), -- unused
9442
9443 N_Defining_Character_Literal =>
9444 (1 => True, -- Chars (Name1)
9445 2 => False, -- Next_Entity (Node2-Sem)
9446 3 => False, -- Scope (Node3-Sem)
9447 4 => False, -- unused
9448 5 => False), -- Etype (Node5-Sem)
9449
9450 N_Signed_Integer_Type_Definition =>
9451 (1 => True, -- Low_Bound (Node1)
9452 2 => True, -- High_Bound (Node2)
9453 3 => False, -- unused
9454 4 => False, -- unused
9455 5 => False), -- unused
9456
9457 N_Modular_Type_Definition =>
9458 (1 => False, -- unused
9459 2 => False, -- unused
9460 3 => True, -- Expression (Node3)
9461 4 => False, -- unused
9462 5 => False), -- unused
9463
9464 N_Floating_Point_Definition =>
9465 (1 => False, -- unused
9466 2 => True, -- Digits_Expression (Node2)
9467 3 => False, -- unused
9468 4 => True, -- Real_Range_Specification (Node4)
9469 5 => False), -- unused
9470
9471 N_Real_Range_Specification =>
9472 (1 => True, -- Low_Bound (Node1)
9473 2 => True, -- High_Bound (Node2)
9474 3 => False, -- unused
9475 4 => False, -- unused
9476 5 => False), -- unused
9477
9478 N_Ordinary_Fixed_Point_Definition =>
9479 (1 => False, -- unused
9480 2 => False, -- unused
9481 3 => True, -- Delta_Expression (Node3)
9482 4 => True, -- Real_Range_Specification (Node4)
9483 5 => False), -- unused
9484
9485 N_Decimal_Fixed_Point_Definition =>
9486 (1 => False, -- unused
9487 2 => True, -- Digits_Expression (Node2)
9488 3 => True, -- Delta_Expression (Node3)
9489 4 => True, -- Real_Range_Specification (Node4)
9490 5 => False), -- unused
9491
9492 N_Digits_Constraint =>
9493 (1 => False, -- unused
9494 2 => True, -- Digits_Expression (Node2)
9495 3 => False, -- unused
9496 4 => True, -- Range_Constraint (Node4)
9497 5 => False), -- unused
9498
9499 N_Unconstrained_Array_Definition =>
9500 (1 => False, -- unused
9501 2 => True, -- Subtype_Marks (List2)
9502 3 => False, -- unused
9503 4 => True, -- Component_Definition (Node4)
9504 5 => False), -- unused
9505
9506 N_Constrained_Array_Definition =>
9507 (1 => False, -- unused
9508 2 => True, -- Discrete_Subtype_Definitions (List2)
9509 3 => False, -- unused
9510 4 => True, -- Component_Definition (Node4)
9511 5 => False), -- unused
9512
9513 N_Component_Definition =>
9514 (1 => False, -- unused
9515 2 => False, -- unused
9516 3 => True, -- Access_Definition (Node3)
9517 4 => False, -- unused
9518 5 => True), -- Subtype_Indication (Node5)
9519
9520 N_Discriminant_Specification =>
9521 (1 => True, -- Defining_Identifier (Node1)
9522 2 => False, -- unused
9523 3 => True, -- Expression (Node3)
9524 4 => False, -- unused
9525 5 => True), -- Discriminant_Type (Node5)
9526
9527 N_Index_Or_Discriminant_Constraint =>
9528 (1 => True, -- Constraints (List1)
9529 2 => False, -- unused
9530 3 => False, -- unused
9531 4 => False, -- unused
9532 5 => False), -- unused
9533
9534 N_Discriminant_Association =>
9535 (1 => True, -- Selector_Names (List1)
9536 2 => False, -- unused
9537 3 => True, -- Expression (Node3)
9538 4 => False, -- unused
9539 5 => False), -- unused
9540
9541 N_Record_Definition =>
9542 (1 => True, -- Component_List (Node1)
9543 2 => True, -- Interface_List (List2)
9544 3 => False, -- unused
9545 4 => True, -- End_Label (Node4)
9546 5 => False), -- unused
9547
9548 N_Component_List =>
9549 (1 => False, -- unused
9550 2 => False, -- unused
9551 3 => True, -- Component_Items (List3)
9552 4 => True, -- Variant_Part (Node4)
9553 5 => False), -- unused
9554
9555 N_Component_Declaration =>
9556 (1 => True, -- Defining_Identifier (Node1)
9557 2 => False, -- unused
9558 3 => True, -- Expression (Node3)
9559 4 => True, -- Component_Definition (Node4)
9560 5 => False), -- unused
9561
9562 N_Variant_Part =>
9563 (1 => True, -- Variants (List1)
9564 2 => True, -- Name (Node2)
9565 3 => False, -- unused
9566 4 => False, -- unused
9567 5 => False), -- unused
9568
9569 N_Variant =>
9570 (1 => True, -- Component_List (Node1)
9571 2 => False, -- Enclosing_Variant (Node2-Sem)
9572 3 => False, -- Present_Expr (Uint3-Sem)
9573 4 => True, -- Discrete_Choices (List4)
9574 5 => False), -- Dcheck_Function (Node5-Sem)
9575
9576 N_Others_Choice =>
9577 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9578 2 => False, -- unused
9579 3 => False, -- unused
9580 4 => False, -- unused
9581 5 => False), -- unused
9582
9583 N_Access_To_Object_Definition =>
9584 (1 => False, -- unused
9585 2 => False, -- unused
9586 3 => False, -- unused
9587 4 => False, -- unused
9588 5 => True), -- Subtype_Indication (Node5)
9589
9590 N_Access_Function_Definition =>
9591 (1 => False, -- unused
9592 2 => False, -- unused
9593 3 => True, -- Parameter_Specifications (List3)
9594 4 => True, -- Result_Definition (Node4)
9595 5 => False), -- unused
9596
9597 N_Access_Procedure_Definition =>
9598 (1 => False, -- unused
9599 2 => False, -- unused
9600 3 => True, -- Parameter_Specifications (List3)
9601 4 => False, -- unused
9602 5 => False), -- unused
9603
9604 N_Access_Definition =>
9605 (1 => False, -- unused
9606 2 => False, -- unused
9607 3 => True, -- Access_To_Subprogram_Definition (Node3)
9608 4 => True, -- Subtype_Mark (Node4)
9609 5 => False), -- unused
9610
9611 N_Incomplete_Type_Declaration =>
9612 (1 => True, -- Defining_Identifier (Node1)
9613 2 => False, -- unused
9614 3 => False, -- unused
9615 4 => True, -- Discriminant_Specifications (List4)
9616 5 => False), -- unused
9617
9618 N_Explicit_Dereference =>
9619 (1 => False, -- unused
9620 2 => False, -- unused
9621 3 => True, -- Prefix (Node3)
9622 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9623 5 => False), -- Etype (Node5-Sem)
9624
9625 N_Indexed_Component =>
9626 (1 => True, -- Expressions (List1)
9627 2 => False, -- unused
9628 3 => True, -- Prefix (Node3)
9629 4 => False, -- unused
9630 5 => False), -- Etype (Node5-Sem)
9631
9632 N_Slice =>
9633 (1 => False, -- unused
9634 2 => False, -- unused
9635 3 => True, -- Prefix (Node3)
9636 4 => True, -- Discrete_Range (Node4)
9637 5 => False), -- Etype (Node5-Sem)
9638
9639 N_Selected_Component =>
9640 (1 => False, -- unused
9641 2 => True, -- Selector_Name (Node2)
9642 3 => True, -- Prefix (Node3)
9643 4 => False, -- unused
9644 5 => False), -- Etype (Node5-Sem)
9645
9646 N_Attribute_Reference =>
9647 (1 => True, -- Expressions (List1)
9648 2 => True, -- Attribute_Name (Name2)
9649 3 => True, -- Prefix (Node3)
9650 4 => False, -- Entity (Node4-Sem)
9651 5 => False), -- Etype (Node5-Sem)
9652
9653 N_Aggregate =>
9654 (1 => True, -- Expressions (List1)
9655 2 => True, -- Component_Associations (List2)
9656 3 => False, -- Aggregate_Bounds (Node3-Sem)
9657 4 => False, -- unused
9658 5 => False), -- Etype (Node5-Sem)
9659
9660 N_Component_Association =>
9661 (1 => True, -- Choices (List1)
9662 2 => False, -- Loop_Actions (List2-Sem)
9663 3 => True, -- Expression (Node3)
9664 4 => False, -- unused
9665 5 => False), -- unused
9666
9667 N_Extension_Aggregate =>
9668 (1 => True, -- Expressions (List1)
9669 2 => True, -- Component_Associations (List2)
9670 3 => True, -- Ancestor_Part (Node3)
9671 4 => False, -- unused
9672 5 => False), -- Etype (Node5-Sem)
9673
9674 N_Null =>
9675 (1 => False, -- unused
9676 2 => False, -- unused
9677 3 => False, -- unused
9678 4 => False, -- unused
9679 5 => False), -- Etype (Node5-Sem)
9680
9681 N_And_Then =>
9682 (1 => False, -- Actions (List1-Sem)
9683 2 => True, -- Left_Opnd (Node2)
9684 3 => True, -- Right_Opnd (Node3)
9685 4 => False, -- unused
9686 5 => False), -- Etype (Node5-Sem)
9687
9688 N_Or_Else =>
9689 (1 => False, -- Actions (List1-Sem)
9690 2 => True, -- Left_Opnd (Node2)
9691 3 => True, -- Right_Opnd (Node3)
9692 4 => False, -- unused
9693 5 => False), -- Etype (Node5-Sem)
9694
9695 N_In =>
9696 (1 => False, -- unused
9697 2 => True, -- Left_Opnd (Node2)
9698 3 => True, -- Right_Opnd (Node3)
9699 4 => False, -- unused
9700 5 => False), -- Etype (Node5-Sem)
9701
9702 N_Not_In =>
9703 (1 => False, -- unused
9704 2 => True, -- Left_Opnd (Node2)
9705 3 => True, -- Right_Opnd (Node3)
9706 4 => False, -- unused
9707 5 => False), -- Etype (Node5-Sem)
9708
9709 N_Op_And =>
9710 (1 => True, -- Chars (Name1)
9711 2 => True, -- Left_Opnd (Node2)
9712 3 => True, -- Right_Opnd (Node3)
9713 4 => False, -- Entity (Node4-Sem)
9714 5 => False), -- Etype (Node5-Sem)
9715
9716 N_Op_Or =>
9717 (1 => True, -- Chars (Name1)
9718 2 => True, -- Left_Opnd (Node2)
9719 3 => True, -- Right_Opnd (Node3)
9720 4 => False, -- Entity (Node4-Sem)
9721 5 => False), -- Etype (Node5-Sem)
9722
9723 N_Op_Xor =>
9724 (1 => True, -- Chars (Name1)
9725 2 => True, -- Left_Opnd (Node2)
9726 3 => True, -- Right_Opnd (Node3)
9727 4 => False, -- Entity (Node4-Sem)
9728 5 => False), -- Etype (Node5-Sem)
9729
9730 N_Op_Eq =>
9731 (1 => True, -- Chars (Name1)
9732 2 => True, -- Left_Opnd (Node2)
9733 3 => True, -- Right_Opnd (Node3)
9734 4 => False, -- Entity (Node4-Sem)
9735 5 => False), -- Etype (Node5-Sem)
9736
9737 N_Op_Ne =>
9738 (1 => True, -- Chars (Name1)
9739 2 => True, -- Left_Opnd (Node2)
9740 3 => True, -- Right_Opnd (Node3)
9741 4 => False, -- Entity (Node4-Sem)
9742 5 => False), -- Etype (Node5-Sem)
9743
9744 N_Op_Lt =>
9745 (1 => True, -- Chars (Name1)
9746 2 => True, -- Left_Opnd (Node2)
9747 3 => True, -- Right_Opnd (Node3)
9748 4 => False, -- Entity (Node4-Sem)
9749 5 => False), -- Etype (Node5-Sem)
9750
9751 N_Op_Le =>
9752 (1 => True, -- Chars (Name1)
9753 2 => True, -- Left_Opnd (Node2)
9754 3 => True, -- Right_Opnd (Node3)
9755 4 => False, -- Entity (Node4-Sem)
9756 5 => False), -- Etype (Node5-Sem)
9757
9758 N_Op_Gt =>
9759 (1 => True, -- Chars (Name1)
9760 2 => True, -- Left_Opnd (Node2)
9761 3 => True, -- Right_Opnd (Node3)
9762 4 => False, -- Entity (Node4-Sem)
9763 5 => False), -- Etype (Node5-Sem)
9764
9765 N_Op_Ge =>
9766 (1 => True, -- Chars (Name1)
9767 2 => True, -- Left_Opnd (Node2)
9768 3 => True, -- Right_Opnd (Node3)
9769 4 => False, -- Entity (Node4-Sem)
9770 5 => False), -- Etype (Node5-Sem)
9771
9772 N_Op_Add =>
9773 (1 => True, -- Chars (Name1)
9774 2 => True, -- Left_Opnd (Node2)
9775 3 => True, -- Right_Opnd (Node3)
9776 4 => False, -- Entity (Node4-Sem)
9777 5 => False), -- Etype (Node5-Sem)
9778
9779 N_Op_Subtract =>
9780 (1 => True, -- Chars (Name1)
9781 2 => True, -- Left_Opnd (Node2)
9782 3 => True, -- Right_Opnd (Node3)
9783 4 => False, -- Entity (Node4-Sem)
9784 5 => False), -- Etype (Node5-Sem)
9785
9786 N_Op_Concat =>
9787 (1 => True, -- Chars (Name1)
9788 2 => True, -- Left_Opnd (Node2)
9789 3 => True, -- Right_Opnd (Node3)
9790 4 => False, -- Entity (Node4-Sem)
9791 5 => False), -- Etype (Node5-Sem)
9792
9793 N_Op_Multiply =>
9794 (1 => True, -- Chars (Name1)
9795 2 => True, -- Left_Opnd (Node2)
9796 3 => True, -- Right_Opnd (Node3)
9797 4 => False, -- Entity (Node4-Sem)
9798 5 => False), -- Etype (Node5-Sem)
9799
9800 N_Op_Divide =>
9801 (1 => True, -- Chars (Name1)
9802 2 => True, -- Left_Opnd (Node2)
9803 3 => True, -- Right_Opnd (Node3)
9804 4 => False, -- Entity (Node4-Sem)
9805 5 => False), -- Etype (Node5-Sem)
9806
9807 N_Op_Mod =>
9808 (1 => True, -- Chars (Name1)
9809 2 => True, -- Left_Opnd (Node2)
9810 3 => True, -- Right_Opnd (Node3)
9811 4 => False, -- Entity (Node4-Sem)
9812 5 => False), -- Etype (Node5-Sem)
9813
9814 N_Op_Rem =>
9815 (1 => True, -- Chars (Name1)
9816 2 => True, -- Left_Opnd (Node2)
9817 3 => True, -- Right_Opnd (Node3)
9818 4 => False, -- Entity (Node4-Sem)
9819 5 => False), -- Etype (Node5-Sem)
9820
9821 N_Op_Expon =>
9822 (1 => True, -- Chars (Name1)
9823 2 => True, -- Left_Opnd (Node2)
9824 3 => True, -- Right_Opnd (Node3)
9825 4 => False, -- Entity (Node4-Sem)
9826 5 => False), -- Etype (Node5-Sem)
9827
9828 N_Op_Plus =>
9829 (1 => True, -- Chars (Name1)
9830 2 => False, -- unused
9831 3 => True, -- Right_Opnd (Node3)
9832 4 => False, -- Entity (Node4-Sem)
9833 5 => False), -- Etype (Node5-Sem)
9834
9835 N_Op_Minus =>
9836 (1 => True, -- Chars (Name1)
9837 2 => False, -- unused
9838 3 => True, -- Right_Opnd (Node3)
9839 4 => False, -- Entity (Node4-Sem)
9840 5 => False), -- Etype (Node5-Sem)
9841
9842 N_Op_Abs =>
9843 (1 => True, -- Chars (Name1)
9844 2 => False, -- unused
9845 3 => True, -- Right_Opnd (Node3)
9846 4 => False, -- Entity (Node4-Sem)
9847 5 => False), -- Etype (Node5-Sem)
9848
9849 N_Op_Not =>
9850 (1 => True, -- Chars (Name1)
9851 2 => False, -- unused
9852 3 => True, -- Right_Opnd (Node3)
9853 4 => False, -- Entity (Node4-Sem)
9854 5 => False), -- Etype (Node5-Sem)
9855
9856 N_Type_Conversion =>
9857 (1 => False, -- unused
9858 2 => False, -- unused
9859 3 => True, -- Expression (Node3)
9860 4 => True, -- Subtype_Mark (Node4)
9861 5 => False), -- Etype (Node5-Sem)
9862
9863 N_Qualified_Expression =>
9864 (1 => False, -- unused
9865 2 => False, -- unused
9866 3 => True, -- Expression (Node3)
9867 4 => True, -- Subtype_Mark (Node4)
9868 5 => False), -- Etype (Node5-Sem)
9869
9870 N_Allocator =>
9871 (1 => False, -- Storage_Pool (Node1-Sem)
9872 2 => False, -- Procedure_To_Call (Node2-Sem)
9873 3 => True, -- Expression (Node3)
9874 4 => False, -- Coextensions (Elist4-Sem)
9875 5 => False), -- Etype (Node5-Sem)
9876
9877 N_Null_Statement =>
9878 (1 => False, -- unused
9879 2 => False, -- unused
9880 3 => False, -- unused
9881 4 => False, -- unused
9882 5 => False), -- unused
9883
9884 N_Label =>
9885 (1 => True, -- Identifier (Node1)
9886 2 => False, -- unused
9887 3 => False, -- unused
9888 4 => False, -- unused
9889 5 => False), -- unused
9890
9891 N_Assignment_Statement =>
9892 (1 => False, -- unused
9893 2 => True, -- Name (Node2)
9894 3 => True, -- Expression (Node3)
9895 4 => False, -- unused
9896 5 => False), -- unused
9897
9898 N_If_Statement =>
9899 (1 => True, -- Condition (Node1)
9900 2 => True, -- Then_Statements (List2)
9901 3 => True, -- Elsif_Parts (List3)
9902 4 => True, -- Else_Statements (List4)
9903 5 => True), -- End_Span (Uint5)
9904
9905 N_Elsif_Part =>
9906 (1 => True, -- Condition (Node1)
9907 2 => True, -- Then_Statements (List2)
9908 3 => False, -- Condition_Actions (List3-Sem)
9909 4 => False, -- unused
9910 5 => False), -- unused
9911
9912 N_Case_Statement =>
9913 (1 => False, -- unused
9914 2 => False, -- unused
9915 3 => True, -- Expression (Node3)
9916 4 => True, -- Alternatives (List4)
9917 5 => True), -- End_Span (Uint5)
9918
9919 N_Case_Statement_Alternative =>
9920 (1 => False, -- unused
9921 2 => False, -- unused
9922 3 => True, -- Statements (List3)
9923 4 => True, -- Discrete_Choices (List4)
9924 5 => False), -- unused
9925
9926 N_Loop_Statement =>
9927 (1 => True, -- Identifier (Node1)
9928 2 => True, -- Iteration_Scheme (Node2)
9929 3 => True, -- Statements (List3)
9930 4 => True, -- End_Label (Node4)
9931 5 => False), -- unused
9932
9933 N_Iteration_Scheme =>
9934 (1 => True, -- Condition (Node1)
9935 2 => False, -- unused
9936 3 => False, -- Condition_Actions (List3-Sem)
9937 4 => True, -- Loop_Parameter_Specification (Node4)
9938 5 => False), -- unused
9939
9940 N_Loop_Parameter_Specification =>
9941 (1 => True, -- Defining_Identifier (Node1)
9942 2 => False, -- unused
9943 3 => False, -- unused
9944 4 => True, -- Discrete_Subtype_Definition (Node4)
9945 5 => False), -- unused
9946
9947 N_Block_Statement =>
9948 (1 => True, -- Identifier (Node1)
9949 2 => True, -- Declarations (List2)
9950 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9951 4 => True, -- Handled_Statement_Sequence (Node4)
9952 5 => False), -- unused
9953
9954 N_Exit_Statement =>
9955 (1 => True, -- Condition (Node1)
9956 2 => True, -- Name (Node2)
9957 3 => False, -- unused
9958 4 => False, -- unused
9959 5 => False), -- unused
9960
9961 N_Goto_Statement =>
9962 (1 => False, -- unused
9963 2 => True, -- Name (Node2)
9964 3 => False, -- unused
9965 4 => False, -- unused
9966 5 => False), -- unused
9967
9968 N_Subprogram_Declaration =>
9969 (1 => True, -- Specification (Node1)
9970 2 => False, -- unused
9971 3 => False, -- Body_To_Inline (Node3-Sem)
9972 4 => False, -- Parent_Spec (Node4-Sem)
9973 5 => False), -- Corresponding_Body (Node5-Sem)
9974
9975 N_Abstract_Subprogram_Declaration =>
9976 (1 => True, -- Specification (Node1)
9977 2 => False, -- unused
9978 3 => False, -- unused
9979 4 => False, -- unused
9980 5 => False), -- unused
9981
9982 N_Function_Specification =>
9983 (1 => True, -- Defining_Unit_Name (Node1)
9984 2 => False, -- Elaboration_Boolean (Node2-Sem)
9985 3 => True, -- Parameter_Specifications (List3)
9986 4 => True, -- Result_Definition (Node4)
9987 5 => False), -- Generic_Parent (Node5-Sem)
9988
9989 N_Procedure_Specification =>
9990 (1 => True, -- Defining_Unit_Name (Node1)
9991 2 => False, -- Elaboration_Boolean (Node2-Sem)
9992 3 => True, -- Parameter_Specifications (List3)
9993 4 => False, -- unused
9994 5 => False), -- Generic_Parent (Node5-Sem)
9995
9996 N_Designator =>
9997 (1 => True, -- Identifier (Node1)
9998 2 => True, -- Name (Node2)
9999 3 => False, -- unused
10000 4 => False, -- unused
10001 5 => False), -- unused
10002
10003 N_Defining_Program_Unit_Name =>
10004 (1 => True, -- Defining_Identifier (Node1)
10005 2 => True, -- Name (Node2)
10006 3 => False, -- unused
10007 4 => False, -- unused
10008 5 => False), -- unused
10009
10010 N_Operator_Symbol =>
10011 (1 => True, -- Chars (Name1)
10012 2 => False, -- unused
10013 3 => True, -- Strval (Str3)
10014 4 => False, -- Entity (Node4-Sem)
10015 5 => False), -- Etype (Node5-Sem)
10016
10017 N_Defining_Operator_Symbol =>
10018 (1 => True, -- Chars (Name1)
10019 2 => False, -- Next_Entity (Node2-Sem)
10020 3 => False, -- Scope (Node3-Sem)
10021 4 => False, -- unused
10022 5 => False), -- Etype (Node5-Sem)
10023
10024 N_Parameter_Specification =>
10025 (1 => True, -- Defining_Identifier (Node1)
10026 2 => True, -- Parameter_Type (Node2)
10027 3 => True, -- Expression (Node3)
10028 4 => False, -- unused
10029 5 => False), -- Default_Expression (Node5-Sem)
10030
10031 N_Subprogram_Body =>
10032 (1 => True, -- Specification (Node1)
10033 2 => True, -- Declarations (List2)
10034 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10035 4 => True, -- Handled_Statement_Sequence (Node4)
10036 5 => False), -- Corresponding_Spec (Node5-Sem)
10037
10038 N_Procedure_Call_Statement =>
10039 (1 => False, -- Controlling_Argument (Node1-Sem)
10040 2 => True, -- Name (Node2)
10041 3 => True, -- Parameter_Associations (List3)
10042 4 => False, -- First_Named_Actual (Node4-Sem)
10043 5 => False), -- Etype (Node5-Sem)
10044
10045 N_Function_Call =>
10046 (1 => False, -- Controlling_Argument (Node1-Sem)
10047 2 => True, -- Name (Node2)
10048 3 => True, -- Parameter_Associations (List3)
10049 4 => False, -- First_Named_Actual (Node4-Sem)
10050 5 => False), -- Etype (Node5-Sem)
10051
10052 N_Parameter_Association =>
10053 (1 => False, -- unused
10054 2 => True, -- Selector_Name (Node2)
10055 3 => True, -- Explicit_Actual_Parameter (Node3)
10056 4 => False, -- Next_Named_Actual (Node4-Sem)
10057 5 => False), -- unused
10058
10059 N_Return_Statement =>
10060 (1 => False, -- Storage_Pool (Node1-Sem)
10061 2 => False, -- Procedure_To_Call (Node2-Sem)
10062 3 => True, -- Expression (Node3)
10063 4 => False, -- unused
10064 5 => False), -- Return_Statement_Entity (Node5-Sem)
10065
10066 N_Extended_Return_Statement =>
10067 (1 => False, -- Storage_Pool (Node1-Sem)
10068 2 => False, -- Procedure_To_Call (Node2-Sem)
10069 3 => True, -- Return_Object_Declarations (List3)
10070 4 => True, -- Handled_Statement_Sequence (Node4)
10071 5 => False), -- Return_Statement_Entity (Node5-Sem)
10072
10073 N_Package_Declaration =>
10074 (1 => True, -- Specification (Node1)
10075 2 => False, -- unused
10076 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10077 4 => False, -- Parent_Spec (Node4-Sem)
10078 5 => False), -- Corresponding_Body (Node5-Sem)
10079
10080 N_Package_Specification =>
10081 (1 => True, -- Defining_Unit_Name (Node1)
10082 2 => True, -- Visible_Declarations (List2)
10083 3 => True, -- Private_Declarations (List3)
10084 4 => True, -- End_Label (Node4)
10085 5 => False), -- Generic_Parent (Node5-Sem)
10086
10087 N_Package_Body =>
10088 (1 => True, -- Defining_Unit_Name (Node1)
10089 2 => True, -- Declarations (List2)
10090 3 => False, -- unused
10091 4 => True, -- Handled_Statement_Sequence (Node4)
10092 5 => False), -- Corresponding_Spec (Node5-Sem)
10093
10094 N_Private_Type_Declaration =>
10095 (1 => True, -- Defining_Identifier (Node1)
10096 2 => False, -- unused
10097 3 => False, -- unused
10098 4 => True, -- Discriminant_Specifications (List4)
10099 5 => False), -- unused
10100
10101 N_Private_Extension_Declaration =>
10102 (1 => True, -- Defining_Identifier (Node1)
10103 2 => True, -- Interface_List (List2)
10104 3 => False, -- unused
10105 4 => True, -- Discriminant_Specifications (List4)
10106 5 => True), -- Subtype_Indication (Node5)
10107
10108 N_Use_Package_Clause =>
10109 (1 => False, -- unused
10110 2 => True, -- Names (List2)
10111 3 => False, -- Next_Use_Clause (Node3-Sem)
10112 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10113 5 => False), -- unused
10114
10115 N_Use_Type_Clause =>
10116 (1 => False, -- unused
10117 2 => True, -- Subtype_Marks (List2)
10118 3 => False, -- Next_Use_Clause (Node3-Sem)
10119 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10120 5 => False), -- unused
10121
10122 N_Object_Renaming_Declaration =>
10123 (1 => True, -- Defining_Identifier (Node1)
10124 2 => True, -- Name (Node2)
10125 3 => True, -- Access_Definition (Node3)
10126 4 => True, -- Subtype_Mark (Node4)
10127 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10128
10129 N_Exception_Renaming_Declaration =>
10130 (1 => True, -- Defining_Identifier (Node1)
10131 2 => True, -- Name (Node2)
10132 3 => False, -- unused
10133 4 => False, -- unused
10134 5 => False), -- unused
10135
10136 N_Package_Renaming_Declaration =>
10137 (1 => True, -- Defining_Unit_Name (Node1)
10138 2 => True, -- Name (Node2)
10139 3 => False, -- unused
10140 4 => False, -- Parent_Spec (Node4-Sem)
10141 5 => False), -- unused
10142
10143 N_Subprogram_Renaming_Declaration =>
10144 (1 => True, -- Specification (Node1)
10145 2 => True, -- Name (Node2)
10146 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10147 4 => False, -- Parent_Spec (Node4-Sem)
10148 5 => False), -- Corresponding_Spec (Node5-Sem)
10149
10150 N_Generic_Package_Renaming_Declaration =>
10151 (1 => True, -- Defining_Unit_Name (Node1)
10152 2 => True, -- Name (Node2)
10153 3 => False, -- unused
10154 4 => False, -- Parent_Spec (Node4-Sem)
10155 5 => False), -- unused
10156
10157 N_Generic_Procedure_Renaming_Declaration =>
10158 (1 => True, -- Defining_Unit_Name (Node1)
10159 2 => True, -- Name (Node2)
10160 3 => False, -- unused
10161 4 => False, -- Parent_Spec (Node4-Sem)
10162 5 => False), -- unused
10163
10164 N_Generic_Function_Renaming_Declaration =>
10165 (1 => True, -- Defining_Unit_Name (Node1)
10166 2 => True, -- Name (Node2)
10167 3 => False, -- unused
10168 4 => False, -- Parent_Spec (Node4-Sem)
10169 5 => False), -- unused
10170
10171 N_Task_Type_Declaration =>
10172 (1 => True, -- Defining_Identifier (Node1)
10173 2 => True, -- Interface_List (List2)
10174 3 => True, -- Task_Definition (Node3)
10175 4 => True, -- Discriminant_Specifications (List4)
10176 5 => False), -- Corresponding_Body (Node5-Sem)
10177
10178 N_Single_Task_Declaration =>
10179 (1 => True, -- Defining_Identifier (Node1)
10180 2 => True, -- Interface_List (List2)
10181 3 => True, -- Task_Definition (Node3)
10182 4 => False, -- unused
10183 5 => False), -- unused
10184
10185 N_Task_Definition =>
10186 (1 => False, -- unused
10187 2 => True, -- Visible_Declarations (List2)
10188 3 => True, -- Private_Declarations (List3)
10189 4 => True, -- End_Label (Node4)
10190 5 => False), -- unused
10191
10192 N_Task_Body =>
10193 (1 => True, -- Defining_Identifier (Node1)
10194 2 => True, -- Declarations (List2)
10195 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10196 4 => True, -- Handled_Statement_Sequence (Node4)
10197 5 => False), -- Corresponding_Spec (Node5-Sem)
10198
10199 N_Protected_Type_Declaration =>
10200 (1 => True, -- Defining_Identifier (Node1)
10201 2 => True, -- Interface_List (List2)
10202 3 => True, -- Protected_Definition (Node3)
10203 4 => True, -- Discriminant_Specifications (List4)
10204 5 => False), -- Corresponding_Body (Node5-Sem)
10205
10206 N_Single_Protected_Declaration =>
10207 (1 => True, -- Defining_Identifier (Node1)
10208 2 => True, -- Interface_List (List2)
10209 3 => True, -- Protected_Definition (Node3)
10210 4 => False, -- unused
10211 5 => False), -- unused
10212
10213 N_Protected_Definition =>
10214 (1 => False, -- unused
10215 2 => True, -- Visible_Declarations (List2)
10216 3 => True, -- Private_Declarations (List3)
10217 4 => True, -- End_Label (Node4)
10218 5 => False), -- unused
10219
10220 N_Protected_Body =>
10221 (1 => True, -- Defining_Identifier (Node1)
10222 2 => True, -- Declarations (List2)
10223 3 => False, -- unused
10224 4 => True, -- End_Label (Node4)
10225 5 => False), -- Corresponding_Spec (Node5-Sem)
10226
10227 N_Entry_Declaration =>
10228 (1 => True, -- Defining_Identifier (Node1)
10229 2 => False, -- unused
10230 3 => True, -- Parameter_Specifications (List3)
10231 4 => True, -- Discrete_Subtype_Definition (Node4)
10232 5 => False), -- Corresponding_Body (Node5-Sem)
10233
10234 N_Accept_Statement =>
10235 (1 => True, -- Entry_Direct_Name (Node1)
10236 2 => True, -- Declarations (List2)
10237 3 => True, -- Parameter_Specifications (List3)
10238 4 => True, -- Handled_Statement_Sequence (Node4)
10239 5 => True), -- Entry_Index (Node5)
10240
10241 N_Entry_Body =>
10242 (1 => True, -- Defining_Identifier (Node1)
10243 2 => True, -- Declarations (List2)
10244 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10245 4 => True, -- Handled_Statement_Sequence (Node4)
10246 5 => True), -- Entry_Body_Formal_Part (Node5)
10247
10248 N_Entry_Body_Formal_Part =>
10249 (1 => True, -- Condition (Node1)
10250 2 => False, -- unused
10251 3 => True, -- Parameter_Specifications (List3)
10252 4 => True, -- Entry_Index_Specification (Node4)
10253 5 => False), -- unused
10254
10255 N_Entry_Index_Specification =>
10256 (1 => True, -- Defining_Identifier (Node1)
10257 2 => False, -- unused
10258 3 => False, -- unused
10259 4 => True, -- Discrete_Subtype_Definition (Node4)
10260 5 => False), -- unused
10261
10262 N_Entry_Call_Statement =>
10263 (1 => False, -- unused
10264 2 => True, -- Name (Node2)
10265 3 => True, -- Parameter_Associations (List3)
10266 4 => False, -- First_Named_Actual (Node4-Sem)
10267 5 => False), -- unused
10268
10269 N_Requeue_Statement =>
10270 (1 => False, -- unused
10271 2 => True, -- Name (Node2)
10272 3 => False, -- unused
10273 4 => False, -- unused
10274 5 => False), -- unused
10275
10276 N_Delay_Until_Statement =>
10277 (1 => False, -- unused
10278 2 => False, -- unused
10279 3 => True, -- Expression (Node3)
10280 4 => False, -- unused
10281 5 => False), -- unused
10282
10283 N_Delay_Relative_Statement =>
10284 (1 => False, -- unused
10285 2 => False, -- unused
10286 3 => True, -- Expression (Node3)
10287 4 => False, -- unused
10288 5 => False), -- unused
10289
10290 N_Selective_Accept =>
10291 (1 => True, -- Select_Alternatives (List1)
10292 2 => False, -- unused
10293 3 => False, -- unused
10294 4 => True, -- Else_Statements (List4)
10295 5 => False), -- unused
10296
10297 N_Accept_Alternative =>
10298 (1 => True, -- Condition (Node1)
10299 2 => True, -- Accept_Statement (Node2)
10300 3 => True, -- Statements (List3)
10301 4 => True, -- Pragmas_Before (List4)
10302 5 => False), -- Accept_Handler_Records (List5-Sem)
10303
10304 N_Delay_Alternative =>
10305 (1 => True, -- Condition (Node1)
10306 2 => True, -- Delay_Statement (Node2)
10307 3 => True, -- Statements (List3)
10308 4 => True, -- Pragmas_Before (List4)
10309 5 => False), -- unused
10310
10311 N_Terminate_Alternative =>
10312 (1 => True, -- Condition (Node1)
10313 2 => False, -- unused
10314 3 => False, -- unused
10315 4 => True, -- Pragmas_Before (List4)
10316 5 => True), -- Pragmas_After (List5)
10317
10318 N_Timed_Entry_Call =>
10319 (1 => True, -- Entry_Call_Alternative (Node1)
10320 2 => False, -- unused
10321 3 => False, -- unused
10322 4 => True, -- Delay_Alternative (Node4)
10323 5 => False), -- unused
10324
10325 N_Entry_Call_Alternative =>
10326 (1 => True, -- Entry_Call_Statement (Node1)
10327 2 => False, -- unused
10328 3 => True, -- Statements (List3)
10329 4 => True, -- Pragmas_Before (List4)
10330 5 => False), -- unused
10331
10332 N_Conditional_Entry_Call =>
10333 (1 => True, -- Entry_Call_Alternative (Node1)
10334 2 => False, -- unused
10335 3 => False, -- unused
10336 4 => True, -- Else_Statements (List4)
10337 5 => False), -- unused
10338
10339 N_Asynchronous_Select =>
10340 (1 => True, -- Triggering_Alternative (Node1)
10341 2 => True, -- Abortable_Part (Node2)
10342 3 => False, -- unused
10343 4 => False, -- unused
10344 5 => False), -- unused
10345
10346 N_Triggering_Alternative =>
10347 (1 => True, -- Triggering_Statement (Node1)
10348 2 => False, -- unused
10349 3 => True, -- Statements (List3)
10350 4 => True, -- Pragmas_Before (List4)
10351 5 => False), -- unused
10352
10353 N_Abortable_Part =>
10354 (1 => False, -- unused
10355 2 => False, -- unused
10356 3 => True, -- Statements (List3)
10357 4 => False, -- unused
10358 5 => False), -- unused
10359
10360 N_Abort_Statement =>
10361 (1 => False, -- unused
10362 2 => True, -- Names (List2)
10363 3 => False, -- unused
10364 4 => False, -- unused
10365 5 => False), -- unused
10366
10367 N_Compilation_Unit =>
10368 (1 => True, -- Context_Items (List1)
10369 2 => True, -- Unit (Node2)
10370 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10371 4 => False, -- Library_Unit (Node4-Sem)
10372 5 => True), -- Aux_Decls_Node (Node5)
10373
10374 N_Compilation_Unit_Aux =>
10375 (1 => True, -- Actions (List1)
10376 2 => True, -- Declarations (List2)
10377 3 => False, -- unused
10378 4 => True, -- Config_Pragmas (List4)
10379 5 => True), -- Pragmas_After (List5)
10380
10381 N_With_Clause =>
10382 (1 => False, -- unused
10383 2 => True, -- Name (Node2)
10384 3 => False, -- unused
10385 4 => False, -- Library_Unit (Node4-Sem)
10386 5 => False), -- Corresponding_Spec (Node5-Sem)
10387
10388 N_Subprogram_Body_Stub =>
10389 (1 => True, -- Specification (Node1)
10390 2 => False, -- unused
10391 3 => False, -- unused
10392 4 => False, -- Library_Unit (Node4-Sem)
10393 5 => False), -- Corresponding_Body (Node5-Sem)
10394
10395 N_Package_Body_Stub =>
10396 (1 => True, -- Defining_Identifier (Node1)
10397 2 => False, -- unused
10398 3 => False, -- unused
10399 4 => False, -- Library_Unit (Node4-Sem)
10400 5 => False), -- Corresponding_Body (Node5-Sem)
10401
10402 N_Task_Body_Stub =>
10403 (1 => True, -- Defining_Identifier (Node1)
10404 2 => False, -- unused
10405 3 => False, -- unused
10406 4 => False, -- Library_Unit (Node4-Sem)
10407 5 => False), -- Corresponding_Body (Node5-Sem)
10408
10409 N_Protected_Body_Stub =>
10410 (1 => True, -- Defining_Identifier (Node1)
10411 2 => False, -- unused
10412 3 => False, -- unused
10413 4 => False, -- Library_Unit (Node4-Sem)
10414 5 => False), -- Corresponding_Body (Node5-Sem)
10415
10416 N_Subunit =>
10417 (1 => True, -- Proper_Body (Node1)
10418 2 => True, -- Name (Node2)
10419 3 => False, -- Corresponding_Stub (Node3-Sem)
10420 4 => False, -- unused
10421 5 => False), -- unused
10422
10423 N_Exception_Declaration =>
10424 (1 => True, -- Defining_Identifier (Node1)
10425 2 => False, -- unused
10426 3 => False, -- Expression (Node3-Sem)
10427 4 => False, -- unused
10428 5 => False), -- unused
10429
10430 N_Handled_Sequence_Of_Statements =>
10431 (1 => True, -- At_End_Proc (Node1)
10432 2 => False, -- First_Real_Statement (Node2-Sem)
10433 3 => True, -- Statements (List3)
10434 4 => True, -- End_Label (Node4)
10435 5 => True), -- Exception_Handlers (List5)
10436
10437 N_Exception_Handler =>
10438 (1 => False, -- Local_Raise_Statements (Elist1)
10439 2 => True, -- Choice_Parameter (Node2)
10440 3 => True, -- Statements (List3)
10441 4 => True, -- Exception_Choices (List4)
10442 5 => False), -- Exception_Label (Node5)
10443
10444 N_Raise_Statement =>
10445 (1 => False, -- unused
10446 2 => True, -- Name (Node2)
10447 3 => True, -- Expression (Node3)
10448 4 => False, -- unused
10449 5 => False), -- unused
10450
10451 N_Generic_Subprogram_Declaration =>
10452 (1 => True, -- Specification (Node1)
10453 2 => True, -- Generic_Formal_Declarations (List2)
10454 3 => False, -- unused
10455 4 => False, -- Parent_Spec (Node4-Sem)
10456 5 => False), -- Corresponding_Body (Node5-Sem)
10457
10458 N_Generic_Package_Declaration =>
10459 (1 => True, -- Specification (Node1)
10460 2 => True, -- Generic_Formal_Declarations (List2)
10461 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10462 4 => False, -- Parent_Spec (Node4-Sem)
10463 5 => False), -- Corresponding_Body (Node5-Sem)
10464
10465 N_Package_Instantiation =>
10466 (1 => True, -- Defining_Unit_Name (Node1)
10467 2 => True, -- Name (Node2)
10468 3 => True, -- Generic_Associations (List3)
10469 4 => False, -- Parent_Spec (Node4-Sem)
10470 5 => False), -- Instance_Spec (Node5-Sem)
10471
10472 N_Procedure_Instantiation =>
10473 (1 => True, -- Defining_Unit_Name (Node1)
10474 2 => True, -- Name (Node2)
10475 3 => True, -- Generic_Associations (List3)
10476 4 => False, -- Parent_Spec (Node4-Sem)
10477 5 => False), -- Instance_Spec (Node5-Sem)
10478
10479 N_Function_Instantiation =>
10480 (1 => True, -- Defining_Unit_Name (Node1)
10481 2 => True, -- Name (Node2)
10482 3 => True, -- Generic_Associations (List3)
10483 4 => False, -- Parent_Spec (Node4-Sem)
10484 5 => False), -- Instance_Spec (Node5-Sem)
10485
10486 N_Generic_Association =>
10487 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10488 2 => True, -- Selector_Name (Node2)
10489 3 => False, -- unused
10490 4 => False, -- unused
10491 5 => False), -- unused
10492
10493 N_Formal_Object_Declaration =>
10494 (1 => True, -- Defining_Identifier (Node1)
10495 2 => False, -- unused
10496 3 => True, -- Access_Definition (Node3)
10497 4 => True, -- Subtype_Mark (Node4)
10498 5 => True), -- Default_Expression (Node5)
10499
10500 N_Formal_Type_Declaration =>
10501 (1 => True, -- Defining_Identifier (Node1)
10502 2 => False, -- unused
10503 3 => True, -- Formal_Type_Definition (Node3)
10504 4 => True, -- Discriminant_Specifications (List4)
10505 5 => False), -- unused
10506
10507 N_Formal_Private_Type_Definition =>
10508 (1 => False, -- unused
10509 2 => False, -- unused
10510 3 => False, -- unused
10511 4 => False, -- unused
10512 5 => False), -- unused
10513
10514 N_Formal_Derived_Type_Definition =>
10515 (1 => False, -- unused
10516 2 => True, -- Interface_List (List2)
10517 3 => False, -- unused
10518 4 => True, -- Subtype_Mark (Node4)
10519 5 => False), -- unused
10520
10521 N_Formal_Discrete_Type_Definition =>
10522 (1 => False, -- unused
10523 2 => False, -- unused
10524 3 => False, -- unused
10525 4 => False, -- unused
10526 5 => False), -- unused
10527
10528 N_Formal_Signed_Integer_Type_Definition =>
10529 (1 => False, -- unused
10530 2 => False, -- unused
10531 3 => False, -- unused
10532 4 => False, -- unused
10533 5 => False), -- unused
10534
10535 N_Formal_Modular_Type_Definition =>
10536 (1 => False, -- unused
10537 2 => False, -- unused
10538 3 => False, -- unused
10539 4 => False, -- unused
10540 5 => False), -- unused
10541
10542 N_Formal_Floating_Point_Definition =>
10543 (1 => False, -- unused
10544 2 => False, -- unused
10545 3 => False, -- unused
10546 4 => False, -- unused
10547 5 => False), -- unused
10548
10549 N_Formal_Ordinary_Fixed_Point_Definition =>
10550 (1 => False, -- unused
10551 2 => False, -- unused
10552 3 => False, -- unused
10553 4 => False, -- unused
10554 5 => False), -- unused
10555
10556 N_Formal_Decimal_Fixed_Point_Definition =>
10557 (1 => False, -- unused
10558 2 => False, -- unused
10559 3 => False, -- unused
10560 4 => False, -- unused
10561 5 => False), -- unused
10562
10563 N_Formal_Concrete_Subprogram_Declaration =>
10564 (1 => True, -- Specification (Node1)
10565 2 => True, -- Default_Name (Node2)
10566 3 => False, -- unused
10567 4 => False, -- unused
10568 5 => False), -- unused
10569
10570 N_Formal_Abstract_Subprogram_Declaration =>
10571 (1 => True, -- Specification (Node1)
10572 2 => True, -- Default_Name (Node2)
10573 3 => False, -- unused
10574 4 => False, -- unused
10575 5 => False), -- unused
10576
10577 N_Formal_Package_Declaration =>
10578 (1 => True, -- Defining_Identifier (Node1)
10579 2 => True, -- Name (Node2)
10580 3 => True, -- Generic_Associations (List3)
10581 4 => False, -- unused
10582 5 => False), -- Instance_Spec (Node5-Sem)
10583
10584 N_Attribute_Definition_Clause =>
10585 (1 => True, -- Chars (Name1)
10586 2 => True, -- Name (Node2)
10587 3 => True, -- Expression (Node3)
10588 4 => False, -- unused
10589 5 => False), -- Next_Rep_Item (Node5-Sem)
10590
10591 N_Enumeration_Representation_Clause =>
10592 (1 => True, -- Identifier (Node1)
10593 2 => False, -- unused
10594 3 => True, -- Array_Aggregate (Node3)
10595 4 => False, -- unused
10596 5 => False), -- Next_Rep_Item (Node5-Sem)
10597
10598 N_Record_Representation_Clause =>
10599 (1 => True, -- Identifier (Node1)
10600 2 => True, -- Mod_Clause (Node2)
10601 3 => True, -- Component_Clauses (List3)
10602 4 => False, -- unused
10603 5 => False), -- Next_Rep_Item (Node5-Sem)
10604
10605 N_Component_Clause =>
10606 (1 => True, -- Component_Name (Node1)
10607 2 => True, -- Position (Node2)
10608 3 => True, -- First_Bit (Node3)
10609 4 => True, -- Last_Bit (Node4)
10610 5 => False), -- unused
10611
10612 N_Code_Statement =>
10613 (1 => False, -- unused
10614 2 => False, -- unused
10615 3 => True, -- Expression (Node3)
10616 4 => False, -- unused
10617 5 => False), -- unused
10618
10619 N_Op_Rotate_Left =>
10620 (1 => True, -- Chars (Name1)
10621 2 => True, -- Left_Opnd (Node2)
10622 3 => True, -- Right_Opnd (Node3)
10623 4 => False, -- Entity (Node4-Sem)
10624 5 => False), -- Etype (Node5-Sem)
10625
10626 N_Op_Rotate_Right =>
10627 (1 => True, -- Chars (Name1)
10628 2 => True, -- Left_Opnd (Node2)
10629 3 => True, -- Right_Opnd (Node3)
10630 4 => False, -- Entity (Node4-Sem)
10631 5 => False), -- Etype (Node5-Sem)
10632
10633 N_Op_Shift_Left =>
10634 (1 => True, -- Chars (Name1)
10635 2 => True, -- Left_Opnd (Node2)
10636 3 => True, -- Right_Opnd (Node3)
10637 4 => False, -- Entity (Node4-Sem)
10638 5 => False), -- Etype (Node5-Sem)
10639
10640 N_Op_Shift_Right_Arithmetic =>
10641 (1 => True, -- Chars (Name1)
10642 2 => True, -- Left_Opnd (Node2)
10643 3 => True, -- Right_Opnd (Node3)
10644 4 => False, -- Entity (Node4-Sem)
10645 5 => False), -- Etype (Node5-Sem)
10646
10647 N_Op_Shift_Right =>
10648 (1 => True, -- Chars (Name1)
10649 2 => True, -- Left_Opnd (Node2)
10650 3 => True, -- Right_Opnd (Node3)
10651 4 => False, -- Entity (Node4-Sem)
10652 5 => False), -- Etype (Node5-Sem)
10653
10654 N_Delta_Constraint =>
10655 (1 => False, -- unused
10656 2 => False, -- unused
10657 3 => True, -- Delta_Expression (Node3)
10658 4 => True, -- Range_Constraint (Node4)
10659 5 => False), -- unused
10660
10661 N_At_Clause =>
10662 (1 => True, -- Identifier (Node1)
10663 2 => False, -- unused
10664 3 => True, -- Expression (Node3)
10665 4 => False, -- unused
10666 5 => False), -- unused
10667
10668 N_Mod_Clause =>
10669 (1 => False, -- unused
10670 2 => False, -- unused
10671 3 => True, -- Expression (Node3)
10672 4 => True, -- Pragmas_Before (List4)
10673 5 => False), -- unused
10674
10675 N_Conditional_Expression =>
10676 (1 => True, -- Expressions (List1)
10677 2 => False, -- Then_Actions (List2-Sem)
10678 3 => False, -- Else_Actions (List3-Sem)
10679 4 => False, -- unused
10680 5 => False), -- Etype (Node5-Sem)
10681
10682 N_Expanded_Name =>
10683 (1 => True, -- Chars (Name1)
10684 2 => True, -- Selector_Name (Node2)
10685 3 => True, -- Prefix (Node3)
10686 4 => False, -- Entity (Node4-Sem)
10687 5 => False), -- Etype (Node5-Sem)
10688
10689 N_Free_Statement =>
10690 (1 => False, -- Storage_Pool (Node1-Sem)
10691 2 => False, -- Procedure_To_Call (Node2-Sem)
10692 3 => True, -- Expression (Node3)
10693 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10694 5 => False), -- unused
10695
10696 N_Freeze_Entity =>
10697 (1 => True, -- Actions (List1)
10698 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10699 3 => False, -- TSS_Elist (Elist3-Sem)
10700 4 => False, -- Entity (Node4-Sem)
10701 5 => False), -- First_Subtype_Link (Node5-Sem)
10702
10703 N_Implicit_Label_Declaration =>
10704 (1 => True, -- Defining_Identifier (Node1)
10705 2 => False, -- Label_Construct (Node2-Sem)
10706 3 => False, -- unused
10707 4 => False, -- unused
10708 5 => False), -- unused
10709
10710 N_Itype_Reference =>
10711 (1 => False, -- Itype (Node1-Sem)
10712 2 => False, -- unused
10713 3 => False, -- unused
10714 4 => False, -- unused
10715 5 => False), -- unused
10716
10717 N_Raise_Constraint_Error =>
10718 (1 => True, -- Condition (Node1)
10719 2 => False, -- unused
10720 3 => True, -- Reason (Uint3)
10721 4 => False, -- unused
10722 5 => False), -- Etype (Node5-Sem)
10723
10724 N_Raise_Program_Error =>
10725 (1 => True, -- Condition (Node1)
10726 2 => False, -- unused
10727 3 => True, -- Reason (Uint3)
10728 4 => False, -- unused
10729 5 => False), -- Etype (Node5-Sem)
10730
10731 N_Raise_Storage_Error =>
10732 (1 => True, -- Condition (Node1)
10733 2 => False, -- unused
10734 3 => True, -- Reason (Uint3)
10735 4 => False, -- unused
10736 5 => False), -- Etype (Node5-Sem)
10737
10738 N_Push_Constraint_Error_Label =>
10739 (1 => False, -- unused
10740 2 => False, -- unused
10741 3 => False, -- unused
10742 4 => False, -- unused
10743 5 => False), -- unused
10744
10745 N_Push_Program_Error_Label =>
10746 (1 => False, -- Exception_Label
10747 2 => False, -- unused
10748 3 => False, -- unused
10749 4 => False, -- unused
10750 5 => False), -- Exception_Label
10751
10752 N_Push_Storage_Error_Label =>
10753 (1 => False, -- Exception_Label
10754 2 => False, -- unused
10755 3 => False, -- unused
10756 4 => False, -- unused
10757 5 => False), -- Exception_Label
10758
10759 N_Pop_Constraint_Error_Label =>
10760 (1 => False, -- unused
10761 2 => False, -- unused
10762 3 => False, -- unused
10763 4 => False, -- unused
10764 5 => False), -- unused
10765
10766 N_Pop_Program_Error_Label =>
10767 (1 => False, -- unused
10768 2 => False, -- unused
10769 3 => False, -- unused
10770 4 => False, -- unused
10771 5 => False), -- unused
10772
10773 N_Pop_Storage_Error_Label =>
10774 (1 => False, -- unused
10775 2 => False, -- unused
10776 3 => False, -- unused
10777 4 => False, -- unused
10778 5 => False), -- unused
10779
10780 N_Reference =>
10781 (1 => False, -- unused
10782 2 => False, -- unused
10783 3 => True, -- Prefix (Node3)
10784 4 => False, -- unused
10785 5 => False), -- Etype (Node5-Sem)
10786
10787 N_Subprogram_Info =>
10788 (1 => True, -- Identifier (Node1)
10789 2 => False, -- unused
10790 3 => False, -- unused
10791 4 => False, -- unused
10792 5 => False), -- Etype (Node5-Sem)
10793
10794 N_Unchecked_Expression =>
10795 (1 => False, -- unused
10796 2 => False, -- unused
10797 3 => True, -- Expression (Node3)
10798 4 => False, -- unused
10799 5 => False), -- Etype (Node5-Sem)
10800
10801 N_Unchecked_Type_Conversion =>
10802 (1 => False, -- unused
10803 2 => False, -- unused
10804 3 => True, -- Expression (Node3)
10805 4 => True, -- Subtype_Mark (Node4)
10806 5 => False), -- Etype (Node5-Sem)
10807
10808 N_Validate_Unchecked_Conversion =>
10809 (1 => False, -- Source_Type (Node1-Sem)
10810 2 => False, -- Target_Type (Node2-Sem)
10811 3 => False, -- unused
10812 4 => False, -- unused
10813 5 => False), -- unused
10814
10815 -- End of inserted output from makeisf program
10816
10817 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10818 -- field for debugging purposes, they are not really syntactic fields, so
10819 -- we mark all fields as unused.
10820
10821 N_Empty =>
10822 (1 => False, -- unused
10823 2 => False, -- unused
10824 3 => False, -- unused
10825 4 => False, -- unused
10826 5 => False), -- unused
10827
10828 N_Error =>
10829 (1 => False, -- unused
10830 2 => False, -- unused
10831 3 => False, -- unused
10832 4 => False, -- unused
10833 5 => False), -- unused
10834
10835 N_Unused_At_Start =>
10836 (1 => False, -- unused
10837 2 => False, -- unused
10838 3 => False, -- unused
10839 4 => False, -- unused
10840 5 => False), -- unused
10841
10842 N_Unused_At_End =>
10843 (1 => False, -- unused
10844 2 => False, -- unused
10845 3 => False, -- unused
10846 4 => False, -- unused
10847 5 => False)); -- unused
10848
10849 --------------------
10850 -- Inline Pragmas --
10851 --------------------
10852
10853 pragma Inline (ABE_Is_Certain);
10854 pragma Inline (Abort_Present);
10855 pragma Inline (Abortable_Part);
10856 pragma Inline (Abstract_Present);
10857 pragma Inline (Accept_Handler_Records);
10858 pragma Inline (Accept_Statement);
10859 pragma Inline (Access_Definition);
10860 pragma Inline (Access_To_Subprogram_Definition);
10861 pragma Inline (Access_Types_To_Process);
10862 pragma Inline (Actions);
10863 pragma Inline (Activation_Chain_Entity);
10864 pragma Inline (Acts_As_Spec);
10865 pragma Inline (Actual_Designated_Subtype);
10866 pragma Inline (Address_Warning_Posted);
10867 pragma Inline (Aggregate_Bounds);
10868 pragma Inline (Aliased_Present);
10869 pragma Inline (All_Others);
10870 pragma Inline (All_Present);
10871 pragma Inline (Alternatives);
10872 pragma Inline (Ancestor_Part);
10873 pragma Inline (Array_Aggregate);
10874 pragma Inline (Assignment_OK);
10875 pragma Inline (Associated_Node);
10876 pragma Inline (At_End_Proc);
10877 pragma Inline (Attribute_Name);
10878 pragma Inline (Aux_Decls_Node);
10879 pragma Inline (Backwards_OK);
10880 pragma Inline (Bad_Is_Detected);
10881 pragma Inline (Body_To_Inline);
10882 pragma Inline (Body_Required);
10883 pragma Inline (By_Ref);
10884 pragma Inline (Box_Present);
10885 pragma Inline (Char_Literal_Value);
10886 pragma Inline (Chars);
10887 pragma Inline (Check_Address_Alignment);
10888 pragma Inline (Choice_Parameter);
10889 pragma Inline (Choices);
10890 pragma Inline (Coextensions);
10891 pragma Inline (Comes_From_Extended_Return_Statement);
10892 pragma Inline (Compile_Time_Known_Aggregate);
10893 pragma Inline (Component_Associations);
10894 pragma Inline (Component_Clauses);
10895 pragma Inline (Component_Definition);
10896 pragma Inline (Component_Items);
10897 pragma Inline (Component_List);
10898 pragma Inline (Component_Name);
10899 pragma Inline (Condition);
10900 pragma Inline (Condition_Actions);
10901 pragma Inline (Config_Pragmas);
10902 pragma Inline (Constant_Present);
10903 pragma Inline (Constraint);
10904 pragma Inline (Constraints);
10905 pragma Inline (Context_Installed);
10906 pragma Inline (Context_Items);
10907 pragma Inline (Controlling_Argument);
10908 pragma Inline (Conversion_OK);
10909 pragma Inline (Corresponding_Body);
10910 pragma Inline (Corresponding_Formal_Spec);
10911 pragma Inline (Corresponding_Generic_Association);
10912 pragma Inline (Corresponding_Integer_Value);
10913 pragma Inline (Corresponding_Spec);
10914 pragma Inline (Corresponding_Stub);
10915 pragma Inline (Dcheck_Function);
10916 pragma Inline (Debug_Statement);
10917 pragma Inline (Declarations);
10918 pragma Inline (Default_Expression);
10919 pragma Inline (Default_Name);
10920 pragma Inline (Defining_Identifier);
10921 pragma Inline (Defining_Unit_Name);
10922 pragma Inline (Delay_Alternative);
10923 pragma Inline (Delay_Statement);
10924 pragma Inline (Delta_Expression);
10925 pragma Inline (Digits_Expression);
10926 pragma Inline (Discr_Check_Funcs_Built);
10927 pragma Inline (Discrete_Choices);
10928 pragma Inline (Discrete_Range);
10929 pragma Inline (Discrete_Subtype_Definition);
10930 pragma Inline (Discrete_Subtype_Definitions);
10931 pragma Inline (Discriminant_Specifications);
10932 pragma Inline (Discriminant_Type);
10933 pragma Inline (Do_Accessibility_Check);
10934 pragma Inline (Do_Discriminant_Check);
10935 pragma Inline (Do_Length_Check);
10936 pragma Inline (Do_Division_Check);
10937 pragma Inline (Do_Overflow_Check);
10938 pragma Inline (Do_Range_Check);
10939 pragma Inline (Do_Storage_Check);
10940 pragma Inline (Do_Tag_Check);
10941 pragma Inline (Elaborate_Present);
10942 pragma Inline (Elaborate_All_Desirable);
10943 pragma Inline (Elaborate_All_Present);
10944 pragma Inline (Elaborate_Desirable);
10945 pragma Inline (Elaboration_Boolean);
10946 pragma Inline (Else_Actions);
10947 pragma Inline (Else_Statements);
10948 pragma Inline (Elsif_Parts);
10949 pragma Inline (Enclosing_Variant);
10950 pragma Inline (End_Label);
10951 pragma Inline (End_Span);
10952 pragma Inline (Entity);
10953 pragma Inline (Entity_Or_Associated_Node);
10954 pragma Inline (Entry_Body_Formal_Part);
10955 pragma Inline (Entry_Call_Alternative);
10956 pragma Inline (Entry_Call_Statement);
10957 pragma Inline (Entry_Direct_Name);
10958 pragma Inline (Entry_Index);
10959 pragma Inline (Entry_Index_Specification);
10960 pragma Inline (Etype);
10961 pragma Inline (Exception_Choices);
10962 pragma Inline (Exception_Handlers);
10963 pragma Inline (Exception_Junk);
10964 pragma Inline (Exception_Label);
10965 pragma Inline (Expansion_Delayed);
10966 pragma Inline (Explicit_Actual_Parameter);
10967 pragma Inline (Explicit_Generic_Actual_Parameter);
10968 pragma Inline (Expression);
10969 pragma Inline (Expressions);
10970 pragma Inline (First_Bit);
10971 pragma Inline (First_Inlined_Subprogram);
10972 pragma Inline (First_Name);
10973 pragma Inline (First_Named_Actual);
10974 pragma Inline (First_Real_Statement);
10975 pragma Inline (First_Subtype_Link);
10976 pragma Inline (Float_Truncate);
10977 pragma Inline (Formal_Type_Definition);
10978 pragma Inline (Forwards_OK);
10979 pragma Inline (From_At_End);
10980 pragma Inline (From_At_Mod);
10981 pragma Inline (From_Default);
10982 pragma Inline (Generic_Associations);
10983 pragma Inline (Generic_Formal_Declarations);
10984 pragma Inline (Generic_Parent);
10985 pragma Inline (Generic_Parent_Type);
10986 pragma Inline (Handled_Statement_Sequence);
10987 pragma Inline (Handler_List_Entry);
10988 pragma Inline (Has_Created_Identifier);
10989 pragma Inline (Has_Dynamic_Length_Check);
10990 pragma Inline (Has_Dynamic_Range_Check);
10991 pragma Inline (Has_Init_Expression);
10992 pragma Inline (Has_Local_Raise);
10993 pragma Inline (Has_Self_Reference);
10994 pragma Inline (Has_No_Elaboration_Code);
10995 pragma Inline (Has_Priority_Pragma);
10996 pragma Inline (Has_Private_View);
10997 pragma Inline (Has_Relative_Deadline_Pragma);
10998 pragma Inline (Has_Storage_Size_Pragma);
10999 pragma Inline (Has_Task_Info_Pragma);
11000 pragma Inline (Has_Task_Name_Pragma);
11001 pragma Inline (Has_Wide_Character);
11002 pragma Inline (Hidden_By_Use_Clause);
11003 pragma Inline (High_Bound);
11004 pragma Inline (Identifier);
11005 pragma Inline (Implicit_With);
11006 pragma Inline (Interface_List);
11007 pragma Inline (Interface_Present);
11008 pragma Inline (Includes_Infinities);
11009 pragma Inline (In_Present);
11010 pragma Inline (Instance_Spec);
11011 pragma Inline (Intval);
11012 pragma Inline (Is_Asynchronous_Call_Block);
11013 pragma Inline (Is_Component_Left_Opnd);
11014 pragma Inline (Is_Component_Right_Opnd);
11015 pragma Inline (Is_Controlling_Actual);
11016 pragma Inline (Is_Dynamic_Coextension);
11017 pragma Inline (Is_Entry_Barrier_Function);
11018 pragma Inline (Is_Expanded_Build_In_Place_Call);
11019 pragma Inline (Is_Folded_In_Parser);
11020 pragma Inline (Is_In_Discriminant_Check);
11021 pragma Inline (Is_Machine_Number);
11022 pragma Inline (Is_Null_Loop);
11023 pragma Inline (Is_Overloaded);
11024 pragma Inline (Is_Power_Of_2_For_Shift);
11025 pragma Inline (Is_Protected_Subprogram_Body);
11026 pragma Inline (Is_Static_Coextension);
11027 pragma Inline (Is_Static_Expression);
11028 pragma Inline (Is_Subprogram_Descriptor);
11029 pragma Inline (Is_Task_Allocation_Block);
11030 pragma Inline (Is_Task_Master);
11031 pragma Inline (Iteration_Scheme);
11032 pragma Inline (Itype);
11033 pragma Inline (Kill_Range_Check);
11034 pragma Inline (Last_Bit);
11035 pragma Inline (Last_Name);
11036 pragma Inline (Library_Unit);
11037 pragma Inline (Label_Construct);
11038 pragma Inline (Left_Opnd);
11039 pragma Inline (Limited_View_Installed);
11040 pragma Inline (Limited_Present);
11041 pragma Inline (Literals);
11042 pragma Inline (Local_Raise_Not_OK);
11043 pragma Inline (Local_Raise_Statements);
11044 pragma Inline (Loop_Actions);
11045 pragma Inline (Loop_Parameter_Specification);
11046 pragma Inline (Low_Bound);
11047 pragma Inline (Mod_Clause);
11048 pragma Inline (More_Ids);
11049 pragma Inline (Must_Be_Byte_Aligned);
11050 pragma Inline (Must_Not_Freeze);
11051 pragma Inline (Must_Not_Override);
11052 pragma Inline (Must_Override);
11053 pragma Inline (Name);
11054 pragma Inline (Names);
11055 pragma Inline (Next_Entity);
11056 pragma Inline (Next_Named_Actual);
11057 pragma Inline (Next_Pragma);
11058 pragma Inline (Next_Rep_Item);
11059 pragma Inline (Next_Use_Clause);
11060 pragma Inline (No_Ctrl_Actions);
11061 pragma Inline (No_Elaboration_Check);
11062 pragma Inline (No_Entities_Ref_In_Spec);
11063 pragma Inline (No_Initialization);
11064 pragma Inline (No_Truncation);
11065 pragma Inline (Null_Present);
11066 pragma Inline (Null_Exclusion_Present);
11067 pragma Inline (Null_Record_Present);
11068 pragma Inline (Object_Definition);
11069 pragma Inline (Original_Discriminant);
11070 pragma Inline (Original_Entity);
11071 pragma Inline (Others_Discrete_Choices);
11072 pragma Inline (Out_Present);
11073 pragma Inline (Parameter_Associations);
11074 pragma Inline (Parameter_Specifications);
11075 pragma Inline (Parameter_List_Truncated);
11076 pragma Inline (Parameter_Type);
11077 pragma Inline (Parent_Spec);
11078 pragma Inline (PPC_Enabled);
11079 pragma Inline (Position);
11080 pragma Inline (Pragma_Argument_Associations);
11081 pragma Inline (Pragma_Identifier);
11082 pragma Inline (Pragmas_After);
11083 pragma Inline (Pragmas_Before);
11084 pragma Inline (Prefix);
11085 pragma Inline (Present_Expr);
11086 pragma Inline (Prev_Ids);
11087 pragma Inline (Print_In_Hex);
11088 pragma Inline (Private_Declarations);
11089 pragma Inline (Private_Present);
11090 pragma Inline (Procedure_To_Call);
11091 pragma Inline (Proper_Body);
11092 pragma Inline (Protected_Definition);
11093 pragma Inline (Protected_Present);
11094 pragma Inline (Raises_Constraint_Error);
11095 pragma Inline (Range_Constraint);
11096 pragma Inline (Range_Expression);
11097 pragma Inline (Real_Range_Specification);
11098 pragma Inline (Realval);
11099 pragma Inline (Reason);
11100 pragma Inline (Record_Extension_Part);
11101 pragma Inline (Redundant_Use);
11102 pragma Inline (Renaming_Exception);
11103 pragma Inline (Result_Definition);
11104 pragma Inline (Return_Object_Declarations);
11105 pragma Inline (Return_Statement_Entity);
11106 pragma Inline (Reverse_Present);
11107 pragma Inline (Right_Opnd);
11108 pragma Inline (Rounded_Result);
11109 pragma Inline (Scope);
11110 pragma Inline (Select_Alternatives);
11111 pragma Inline (Selector_Name);
11112 pragma Inline (Selector_Names);
11113 pragma Inline (Shift_Count_OK);
11114 pragma Inline (Source_Type);
11115 pragma Inline (Specification);
11116 pragma Inline (Statements);
11117 pragma Inline (Static_Processing_OK);
11118 pragma Inline (Storage_Pool);
11119 pragma Inline (Strval);
11120 pragma Inline (Subtype_Indication);
11121 pragma Inline (Subtype_Mark);
11122 pragma Inline (Subtype_Marks);
11123 pragma Inline (Suppress_Loop_Warnings);
11124 pragma Inline (Synchronized_Present);
11125 pragma Inline (Tagged_Present);
11126 pragma Inline (Target_Type);
11127 pragma Inline (Task_Definition);
11128 pragma Inline (Task_Present);
11129 pragma Inline (Then_Actions);
11130 pragma Inline (Then_Statements);
11131 pragma Inline (Triggering_Alternative);
11132 pragma Inline (Triggering_Statement);
11133 pragma Inline (Treat_Fixed_As_Integer);
11134 pragma Inline (TSS_Elist);
11135 pragma Inline (Type_Definition);
11136 pragma Inline (Unit);
11137 pragma Inline (Unknown_Discriminants_Present);
11138 pragma Inline (Unreferenced_In_Spec);
11139 pragma Inline (Variant_Part);
11140 pragma Inline (Variants);
11141 pragma Inline (Visible_Declarations);
11142 pragma Inline (Was_Originally_Stub);
11143 pragma Inline (Zero_Cost_Handling);
11144
11145 pragma Inline (Set_ABE_Is_Certain);
11146 pragma Inline (Set_Abort_Present);
11147 pragma Inline (Set_Abortable_Part);
11148 pragma Inline (Set_Abstract_Present);
11149 pragma Inline (Set_Accept_Handler_Records);
11150 pragma Inline (Set_Accept_Statement);
11151 pragma Inline (Set_Access_Definition);
11152 pragma Inline (Set_Access_To_Subprogram_Definition);
11153 pragma Inline (Set_Access_Types_To_Process);
11154 pragma Inline (Set_Actions);
11155 pragma Inline (Set_Activation_Chain_Entity);
11156 pragma Inline (Set_Acts_As_Spec);
11157 pragma Inline (Set_Actual_Designated_Subtype);
11158 pragma Inline (Set_Address_Warning_Posted);
11159 pragma Inline (Set_Aggregate_Bounds);
11160 pragma Inline (Set_Aliased_Present);
11161 pragma Inline (Set_All_Others);
11162 pragma Inline (Set_All_Present);
11163 pragma Inline (Set_Alternatives);
11164 pragma Inline (Set_Ancestor_Part);
11165 pragma Inline (Set_Array_Aggregate);
11166 pragma Inline (Set_Assignment_OK);
11167 pragma Inline (Set_Associated_Node);
11168 pragma Inline (Set_At_End_Proc);
11169 pragma Inline (Set_Attribute_Name);
11170 pragma Inline (Set_Aux_Decls_Node);
11171 pragma Inline (Set_Backwards_OK);
11172 pragma Inline (Set_Bad_Is_Detected);
11173 pragma Inline (Set_Body_To_Inline);
11174 pragma Inline (Set_Body_Required);
11175 pragma Inline (Set_By_Ref);
11176 pragma Inline (Set_Box_Present);
11177 pragma Inline (Set_Char_Literal_Value);
11178 pragma Inline (Set_Chars);
11179 pragma Inline (Set_Check_Address_Alignment);
11180 pragma Inline (Set_Choice_Parameter);
11181 pragma Inline (Set_Choices);
11182 pragma Inline (Set_Coextensions);
11183 pragma Inline (Set_Comes_From_Extended_Return_Statement);
11184 pragma Inline (Set_Compile_Time_Known_Aggregate);
11185 pragma Inline (Set_Component_Associations);
11186 pragma Inline (Set_Component_Clauses);
11187 pragma Inline (Set_Component_Definition);
11188 pragma Inline (Set_Component_Items);
11189 pragma Inline (Set_Component_List);
11190 pragma Inline (Set_Component_Name);
11191 pragma Inline (Set_Condition);
11192 pragma Inline (Set_Condition_Actions);
11193 pragma Inline (Set_Config_Pragmas);
11194 pragma Inline (Set_Constant_Present);
11195 pragma Inline (Set_Constraint);
11196 pragma Inline (Set_Constraints);
11197 pragma Inline (Set_Context_Installed);
11198 pragma Inline (Set_Context_Items);
11199 pragma Inline (Set_Controlling_Argument);
11200 pragma Inline (Set_Conversion_OK);
11201 pragma Inline (Set_Corresponding_Body);
11202 pragma Inline (Set_Corresponding_Formal_Spec);
11203 pragma Inline (Set_Corresponding_Generic_Association);
11204 pragma Inline (Set_Corresponding_Integer_Value);
11205 pragma Inline (Set_Corresponding_Spec);
11206 pragma Inline (Set_Corresponding_Stub);
11207 pragma Inline (Set_Dcheck_Function);
11208 pragma Inline (Set_Debug_Statement);
11209 pragma Inline (Set_Declarations);
11210 pragma Inline (Set_Default_Expression);
11211 pragma Inline (Set_Default_Name);
11212 pragma Inline (Set_Defining_Identifier);
11213 pragma Inline (Set_Defining_Unit_Name);
11214 pragma Inline (Set_Delay_Alternative);
11215 pragma Inline (Set_Delay_Statement);
11216 pragma Inline (Set_Delta_Expression);
11217 pragma Inline (Set_Digits_Expression);
11218 pragma Inline (Set_Discr_Check_Funcs_Built);
11219 pragma Inline (Set_Discrete_Choices);
11220 pragma Inline (Set_Discrete_Range);
11221 pragma Inline (Set_Discrete_Subtype_Definition);
11222 pragma Inline (Set_Discrete_Subtype_Definitions);
11223 pragma Inline (Set_Discriminant_Specifications);
11224 pragma Inline (Set_Discriminant_Type);
11225 pragma Inline (Set_Do_Accessibility_Check);
11226 pragma Inline (Set_Do_Discriminant_Check);
11227 pragma Inline (Set_Do_Length_Check);
11228 pragma Inline (Set_Do_Division_Check);
11229 pragma Inline (Set_Do_Overflow_Check);
11230 pragma Inline (Set_Do_Range_Check);
11231 pragma Inline (Set_Do_Storage_Check);
11232 pragma Inline (Set_Do_Tag_Check);
11233 pragma Inline (Set_Elaborate_Present);
11234 pragma Inline (Set_Elaborate_All_Desirable);
11235 pragma Inline (Set_Elaborate_All_Present);
11236 pragma Inline (Set_Elaborate_Desirable);
11237 pragma Inline (Set_Elaboration_Boolean);
11238 pragma Inline (Set_Else_Actions);
11239 pragma Inline (Set_Else_Statements);
11240 pragma Inline (Set_Elsif_Parts);
11241 pragma Inline (Set_Enclosing_Variant);
11242 pragma Inline (Set_End_Label);
11243 pragma Inline (Set_End_Span);
11244 pragma Inline (Set_Entity);
11245 pragma Inline (Set_Entry_Body_Formal_Part);
11246 pragma Inline (Set_Entry_Call_Alternative);
11247 pragma Inline (Set_Entry_Call_Statement);
11248 pragma Inline (Set_Entry_Direct_Name);
11249 pragma Inline (Set_Entry_Index);
11250 pragma Inline (Set_Entry_Index_Specification);
11251 pragma Inline (Set_Etype);
11252 pragma Inline (Set_Exception_Choices);
11253 pragma Inline (Set_Exception_Handlers);
11254 pragma Inline (Set_Exception_Junk);
11255 pragma Inline (Set_Exception_Label);
11256 pragma Inline (Set_Expansion_Delayed);
11257 pragma Inline (Set_Explicit_Actual_Parameter);
11258 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11259 pragma Inline (Set_Expression);
11260 pragma Inline (Set_Expressions);
11261 pragma Inline (Set_First_Bit);
11262 pragma Inline (Set_First_Inlined_Subprogram);
11263 pragma Inline (Set_First_Name);
11264 pragma Inline (Set_First_Named_Actual);
11265 pragma Inline (Set_First_Real_Statement);
11266 pragma Inline (Set_First_Subtype_Link);
11267 pragma Inline (Set_Float_Truncate);
11268 pragma Inline (Set_Formal_Type_Definition);
11269 pragma Inline (Set_Forwards_OK);
11270 pragma Inline (Set_From_At_End);
11271 pragma Inline (Set_From_At_Mod);
11272 pragma Inline (Set_From_Default);
11273 pragma Inline (Set_Generic_Associations);
11274 pragma Inline (Set_Generic_Formal_Declarations);
11275 pragma Inline (Set_Generic_Parent);
11276 pragma Inline (Set_Generic_Parent_Type);
11277 pragma Inline (Set_Handled_Statement_Sequence);
11278 pragma Inline (Set_Handler_List_Entry);
11279 pragma Inline (Set_Has_Created_Identifier);
11280 pragma Inline (Set_Has_Dynamic_Length_Check);
11281 pragma Inline (Set_Has_Init_Expression);
11282 pragma Inline (Set_Has_Local_Raise);
11283 pragma Inline (Set_Has_Dynamic_Range_Check);
11284 pragma Inline (Set_Has_No_Elaboration_Code);
11285 pragma Inline (Set_Has_Priority_Pragma);
11286 pragma Inline (Set_Has_Private_View);
11287 pragma Inline (Set_Has_Relative_Deadline_Pragma);
11288 pragma Inline (Set_Has_Storage_Size_Pragma);
11289 pragma Inline (Set_Has_Task_Info_Pragma);
11290 pragma Inline (Set_Has_Task_Name_Pragma);
11291 pragma Inline (Set_Has_Wide_Character);
11292 pragma Inline (Set_Hidden_By_Use_Clause);
11293 pragma Inline (Set_High_Bound);
11294 pragma Inline (Set_Identifier);
11295 pragma Inline (Set_Implicit_With);
11296 pragma Inline (Set_Includes_Infinities);
11297 pragma Inline (Set_Interface_List);
11298 pragma Inline (Set_Interface_Present);
11299 pragma Inline (Set_In_Present);
11300 pragma Inline (Set_Instance_Spec);
11301 pragma Inline (Set_Intval);
11302 pragma Inline (Set_Is_Asynchronous_Call_Block);
11303 pragma Inline (Set_Is_Component_Left_Opnd);
11304 pragma Inline (Set_Is_Component_Right_Opnd);
11305 pragma Inline (Set_Is_Controlling_Actual);
11306 pragma Inline (Set_Is_Dynamic_Coextension);
11307 pragma Inline (Set_Is_Entry_Barrier_Function);
11308 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
11309 pragma Inline (Set_Is_Folded_In_Parser);
11310 pragma Inline (Set_Is_In_Discriminant_Check);
11311 pragma Inline (Set_Is_Machine_Number);
11312 pragma Inline (Set_Is_Null_Loop);
11313 pragma Inline (Set_Is_Overloaded);
11314 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11315 pragma Inline (Set_Is_Protected_Subprogram_Body);
11316 pragma Inline (Set_Has_Self_Reference);
11317 pragma Inline (Set_Is_Static_Coextension);
11318 pragma Inline (Set_Is_Static_Expression);
11319 pragma Inline (Set_Is_Subprogram_Descriptor);
11320 pragma Inline (Set_Is_Task_Allocation_Block);
11321 pragma Inline (Set_Is_Task_Master);
11322 pragma Inline (Set_Iteration_Scheme);
11323 pragma Inline (Set_Itype);
11324 pragma Inline (Set_Kill_Range_Check);
11325 pragma Inline (Set_Last_Bit);
11326 pragma Inline (Set_Last_Name);
11327 pragma Inline (Set_Library_Unit);
11328 pragma Inline (Set_Label_Construct);
11329 pragma Inline (Set_Left_Opnd);
11330 pragma Inline (Set_Limited_View_Installed);
11331 pragma Inline (Set_Limited_Present);
11332 pragma Inline (Set_Literals);
11333 pragma Inline (Set_Local_Raise_Not_OK);
11334 pragma Inline (Set_Local_Raise_Statements);
11335 pragma Inline (Set_Loop_Actions);
11336 pragma Inline (Set_Loop_Parameter_Specification);
11337 pragma Inline (Set_Low_Bound);
11338 pragma Inline (Set_Mod_Clause);
11339 pragma Inline (Set_More_Ids);
11340 pragma Inline (Set_Must_Be_Byte_Aligned);
11341 pragma Inline (Set_Must_Not_Freeze);
11342 pragma Inline (Set_Must_Not_Override);
11343 pragma Inline (Set_Must_Override);
11344 pragma Inline (Set_Name);
11345 pragma Inline (Set_Names);
11346 pragma Inline (Set_Next_Entity);
11347 pragma Inline (Set_Next_Named_Actual);
11348 pragma Inline (Set_Next_Pragma);
11349 pragma Inline (Set_Next_Rep_Item);
11350 pragma Inline (Set_Next_Use_Clause);
11351 pragma Inline (Set_No_Ctrl_Actions);
11352 pragma Inline (Set_No_Elaboration_Check);
11353 pragma Inline (Set_No_Entities_Ref_In_Spec);
11354 pragma Inline (Set_No_Initialization);
11355 pragma Inline (Set_No_Truncation);
11356 pragma Inline (Set_Null_Present);
11357 pragma Inline (Set_Null_Exclusion_Present);
11358 pragma Inline (Set_Null_Record_Present);
11359 pragma Inline (Set_Object_Definition);
11360 pragma Inline (Set_Original_Discriminant);
11361 pragma Inline (Set_Original_Entity);
11362 pragma Inline (Set_Others_Discrete_Choices);
11363 pragma Inline (Set_Out_Present);
11364 pragma Inline (Set_Parameter_Associations);
11365 pragma Inline (Set_Parameter_Specifications);
11366 pragma Inline (Set_Parameter_List_Truncated);
11367 pragma Inline (Set_Parameter_Type);
11368 pragma Inline (Set_Parent_Spec);
11369 pragma Inline (Set_PPC_Enabled);
11370 pragma Inline (Set_Position);
11371 pragma Inline (Set_Pragma_Argument_Associations);
11372 pragma Inline (Set_Pragma_Identifier);
11373 pragma Inline (Set_Pragmas_After);
11374 pragma Inline (Set_Pragmas_Before);
11375 pragma Inline (Set_Prefix);
11376 pragma Inline (Set_Present_Expr);
11377 pragma Inline (Set_Prev_Ids);
11378 pragma Inline (Set_Print_In_Hex);
11379 pragma Inline (Set_Private_Declarations);
11380 pragma Inline (Set_Private_Present);
11381 pragma Inline (Set_Procedure_To_Call);
11382 pragma Inline (Set_Proper_Body);
11383 pragma Inline (Set_Protected_Definition);
11384 pragma Inline (Set_Protected_Present);
11385 pragma Inline (Set_Raises_Constraint_Error);
11386 pragma Inline (Set_Range_Constraint);
11387 pragma Inline (Set_Range_Expression);
11388 pragma Inline (Set_Real_Range_Specification);
11389 pragma Inline (Set_Realval);
11390 pragma Inline (Set_Reason);
11391 pragma Inline (Set_Record_Extension_Part);
11392 pragma Inline (Set_Redundant_Use);
11393 pragma Inline (Set_Renaming_Exception);
11394 pragma Inline (Set_Result_Definition);
11395 pragma Inline (Set_Return_Object_Declarations);
11396 pragma Inline (Set_Reverse_Present);
11397 pragma Inline (Set_Right_Opnd);
11398 pragma Inline (Set_Rounded_Result);
11399 pragma Inline (Set_Scope);
11400 pragma Inline (Set_Select_Alternatives);
11401 pragma Inline (Set_Selector_Name);
11402 pragma Inline (Set_Selector_Names);
11403 pragma Inline (Set_Shift_Count_OK);
11404 pragma Inline (Set_Source_Type);
11405 pragma Inline (Set_Specification);
11406 pragma Inline (Set_Statements);
11407 pragma Inline (Set_Static_Processing_OK);
11408 pragma Inline (Set_Storage_Pool);
11409 pragma Inline (Set_Strval);
11410 pragma Inline (Set_Subtype_Indication);
11411 pragma Inline (Set_Subtype_Mark);
11412 pragma Inline (Set_Subtype_Marks);
11413 pragma Inline (Set_Suppress_Loop_Warnings);
11414 pragma Inline (Set_Synchronized_Present);
11415 pragma Inline (Set_Tagged_Present);
11416 pragma Inline (Set_Target_Type);
11417 pragma Inline (Set_Task_Definition);
11418 pragma Inline (Set_Task_Present);
11419 pragma Inline (Set_Then_Actions);
11420 pragma Inline (Set_Then_Statements);
11421 pragma Inline (Set_Triggering_Alternative);
11422 pragma Inline (Set_Triggering_Statement);
11423 pragma Inline (Set_Treat_Fixed_As_Integer);
11424 pragma Inline (Set_TSS_Elist);
11425 pragma Inline (Set_Type_Definition);
11426 pragma Inline (Set_Unit);
11427 pragma Inline (Set_Unknown_Discriminants_Present);
11428 pragma Inline (Set_Unreferenced_In_Spec);
11429 pragma Inline (Set_Variant_Part);
11430 pragma Inline (Set_Variants);
11431 pragma Inline (Set_Visible_Declarations);
11432 pragma Inline (Set_Was_Originally_Stub);
11433 pragma Inline (Set_Zero_Cost_Handling);
11434
11435 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
11436 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
11437 -- should refer to N_Simple_Return_Statement.
11438
11439 end Sinfo;