sinfo.ads, sinfo.adb (Coextensions): New element list for allocators...
[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-2006, 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 Types; use Types;
52 with Uintp; use Uintp;
53 with Urealp; use Urealp;
54
55 package Sinfo is
56
57 ---------------------------------
58 -- Making Changes to This File --
59 ---------------------------------
60
61 -- If changes are made to this file, a number of related steps must be
62 -- carried out to ensure consistency. First, if a field access function is
63 -- added, it appears in seven places:
64
65 -- The documentation associated with the node
66 -- The spec of the access function in sinfo.ads
67 -- The body of the access function in sinfo.adb
68 -- The pragma Inline at the end of sinfo.ads for the access function
69 -- The spec of the set procedure in sinfo.ads
70 -- The body of the set procedure in sinfo.adb
71 -- The pragma Inline at the end of sinfo.ads for the set procedure
72
73 -- The field chosen must be consistent in all places, and, for a node that
74 -- is a subexpression, must not overlap any of the standard expression
75 -- fields.
76
77 -- In addition, if any of the standard expression fields is changed, then
78 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
79 -- must be updated appropriately, since it special cases expression fields.
80
81 -- If a new tree node is added, then the following changes are made
82
83 -- Add it to the documentation in the appropriate place
84 -- Add its fields to this documentation section
85 -- Define it in the appropriate classification in Node_Kind
86 -- In the body (sinfo), add entries to the access functions for all
87 -- its fields (except standard expression fields) to include the new
88 -- node in the checks.
89 -- Add an appropriate section to the case statement in sprint.adb
90 -- Add an appropriate section to the case statement in sem.adb
91 -- Add an appropriate section to the case statement in exp_util.adb
92 -- (Insert_Actions procedure)
93 -- For a subexpression, add an appropriate section to the case
94 -- statement in sem_eval.adb
95 -- For a subexpression, add an appropriate section to the case
96 -- statement in sem_res.adb
97
98 -- Finally, four utility programs must be run:
99
100 -- Run CSinfo to check that you have made the changes consistently. It
101 -- checks most of the rules given above, with clear error messages. This
102 -- utility reads sinfo.ads and sinfo.adb and generates a report to
103 -- standard output.
104
105 -- Run XSinfo to create sinfo.h, the corresponding C header. This
106 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
107 -- not need to read sinfo.adb, since the contents of the body are
108 -- algorithmically determinable from the spec.
109
110 -- Run XTreeprs to create treeprs.ads, an updated version of the module
111 -- that is used to drive the tree print routine. This utility reads (but
112 -- does not modify) treeprs.adt, the template that provides the basic
113 -- structure of the file, and then fills in the data from the comments
114 -- in sinfo.ads.
115
116 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
117 -- spec of the Nmake package which contains functions for constructing
118 -- nodes.
119
120 -- All of the above steps except CSinfo are done automatically by the
121 -- build scripts when you do a full bootstrap.
122
123 -- Note: sometime we could write a utility that actually generated the body
124 -- of sinfo from the spec instead of simply checking it, since, as noted
125 -- above, the contents of the body can be determined from the spec.
126
127 --------------------------------
128 -- Implicit Nodes in the Tree --
129 --------------------------------
130
131 -- Generally the structure of the tree very closely follows the grammar as
132 -- defined in the RM. However, certain nodes are omitted to save space and
133 -- simplify semantic processing. Two general classes of such omitted nodes
134 -- are as follows:
135
136 -- If the only possibilities for a non-terminal are one or more other
137 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
138 -- corresponding node is omitted from the tree, and the target construct
139 -- appears directly. For example, a real type definition is either
140 -- floating point definition or a fixed point definition. No explicit node
141 -- appears for real type definition. Instead either the floating point
142 -- definition or fixed point definition appears directly.
143
144 -- If a non-terminal corresponds to a list of some other non-terminal
145 -- (possibly with separating punctuation), then usually it is omitted from
146 -- the tree, and a list of components appears instead. For example,
147 -- sequence of statements does not appear explicitly in the tree. Instead
148 -- a list of statements appears directly.
149
150 -- Some additional cases of omitted nodes occur and are documented
151 -- individually. In particular, many nodes are omitted in the tree
152 -- generated for an expression.
153
154 -------------------------------------------
155 -- Handling of Defining Identifier Lists --
156 -------------------------------------------
157
158 -- In several declarative forms in the syntax, lists of defining
159 -- identifiers appear (object declarations, component declarations, number
160 -- declarations etc.)
161
162 -- The semantics of such statements are equivalent to a series of identical
163 -- declarations of single defining identifiers (except that conformance
164 -- checks require the same grouping of identifiers in the parameter case).
165
166 -- To simplify semantic processing, the parser breaks down such multiple
167 -- declaration cases into sequences of single declarations, duplicating
168 -- type and initialization information as required. The flags More_Ids and
169 -- Prev_Ids are used to record the original form of the source in the case
170 -- where the original source used a list of names, More_Ids being set on
171 -- all but the last name and Prev_Ids being set on all but the first name.
172 -- These flags are used to reconstruct the original source (e.g. in the
173 -- Sprint package), and also are included in the conformance checks, but
174 -- otherwise have no semantic significance.
175
176 -- Note: the reason that we use More_Ids and Prev_Ids rather than
177 -- First_Name and Last_Name flags is so that the flags are off in the
178 -- normal one identifier case, which minimizes tree print output.
179
180 -----------------------
181 -- Use of Node Lists --
182 -----------------------
183
184 -- With a few exceptions, if a construction of the form {non-terminal}
185 -- appears in the tree, lists are used in the corresponding tree node (see
186 -- package Nlists for handling of node lists). In this case a field of the
187 -- parent node points to a list of nodes for the non-terminal. The field
188 -- name for such fields has a plural name which always ends in "s". For
189 -- example, a case statement has a field Alternatives pointing to list of
190 -- case statement alternative nodes.
191
192 -- Only fields pointing to lists have names ending in "s", so generally the
193 -- structure is strongly typed, fields not ending in s point to single
194 -- nodes, and fields ending in s point to lists.
195
196 -- The following example shows how a traversal of a list is written. We
197 -- suppose here that Stmt points to a N_Case_Statement node which has a
198 -- list field called Alternatives:
199
200 -- Alt := First (Alternatives (Stmt));
201 -- while Present (Alt) loop
202 -- ..
203 -- -- processing for case statement alternative Alt
204 -- ..
205 -- Alt := Next (Alt);
206 -- end loop;
207
208 -- The Present function tests for Empty, which in this case signals the end
209 -- of the list. First returns Empty immediately if the list is empty.
210 -- Present is defined in Atree, First and Next are defined in Nlists.
211
212 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
213 -- contexts, which is handled as described in the previous section, and
214 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
215 -- using the First_Name and Last_Name flags, as further detailed in the
216 -- description of the N_With_Clause node.
217
218 -------------
219 -- Pragmas --
220 -------------
221
222 -- Pragmas can appear in many different context, but are not included in
223 -- the grammar. Still they must appear in the tree, so they can be properly
224 -- processed.
225
226 -- Two approaches are used. In some cases, an extra field is defined in an
227 -- appropriate node that contains a list of pragmas appearing in the
228 -- expected context. For example pragmas can appear before an
229 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
230 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
231
232 -- The other approach is to simply allow pragmas to appear in syntactic
233 -- lists where the grammar (of course) does not include the possibility.
234 -- For example, the Variants field of an N_Variant_Part node points to a
235 -- list that can contain both N_Pragma and N_Variant nodes.
236
237 -- To make processing easier in the latter case, the Nlists package
238 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
239 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
240 -- ignoring all pragmas.
241
242 -- In the case of the variants list, we can either write:
243
244 -- Variant := First (Variants (N));
245 -- while Present (Variant) loop
246 -- ...
247 -- Variant := Next (Variant);
248 -- end loop;
249
250 -- or
251
252 -- Variant := First_Non_Pragma (Variants (N));
253 -- while Present (Variant) loop
254 -- ...
255 -- Variant := Next_Non_Pragma (Variant);
256 -- end loop;
257
258 -- In the first form of the loop, Variant can either be an N_Pragma or an
259 -- N_Variant node. In the second form, Variant can only be N_Variant since
260 -- all pragmas are skipped.
261
262 ---------------------
263 -- Optional Fields --
264 ---------------------
265
266 -- Fields which correspond to a section of the syntax enclosed in square
267 -- brackets are generally omitted (and the corresponding field set to Empty
268 -- for a node, or No_List for a list). The documentation of such fields
269 -- notes these cases. One exception to this rule occurs in the case of
270 -- possibly empty statement sequences (such as the sequence of statements
271 -- in an entry call alternative). Such cases appear in the syntax rules as
272 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
273 -- statement sequences always contain an empty list (not No_List) if no
274 -- statements are present.
275
276 -- Note: the utility program that constructs the body and spec of the Nmake
277 -- package relies on the format of the comments to determine if a field
278 -- should have a default value in the corresponding make routine. The rule
279 -- is that if the first line of the description of the field contains the
280 -- string "(set to xxx if", then a default value of xxx is provided for
281 -- this field in the corresponding Make_yyy routine.
282
283 -----------------------------------
284 -- Note on Body/Spec Terminology --
285 -----------------------------------
286
287 -- In informal discussions about Ada, it is customary to refer to package
288 -- and subprogram specs and bodies. However, this is not technically
289 -- correct, what is normally referred to as a spec or specification is in
290 -- fact a package declaration or subprogram declaration. We are careful in
291 -- GNAT to use the correct terminology and in particular, the full word
292 -- specification is never used as an incorrect substitute for declaration.
293 -- The structure and terminology used in the tree also reflects the grammar
294 -- and thus uses declaration and specification in the technically correct
295 -- manner.
296
297 -- However, there are contexts in which the informal terminology is useful.
298 -- We have the word "body" to refer to the Interp_Etype declared by the
299 -- declaration of a unit body, and in some contexts we need similar term to
300 -- refer to the entity declared by the package or subprogram declaration,
301 -- and simply using declaration can be confusing since the body also has a
302 -- declaration.
303
304 -- An example of such a context is the link between the package body and
305 -- its declaration. With_Declaration is confusing, since the package body
306 -- itself is a declaration.
307
308 -- To deal with this problem, we reserve the informal term Spec, i.e. the
309 -- popular abbreviation used in this context, to refer to the entity
310 -- declared by the package or subprogram declaration. So in the above
311 -- example case, the field in the body is called With_Spec.
312
313 -- Another important context for the use of the word Spec is in error
314 -- messages, where a hyper-correct use of declaration would be confusing to
315 -- a typical Ada programmer, and even for an expert programmer can cause
316 -- confusion since the body has a declaration as well.
317
318 -- So, to summarize:
319
320 -- Declaration always refers to the syntactic entity that is called
321 -- a declaration. In particular, subprogram declaration
322 -- and package declaration are used to describe the
323 -- syntactic entity that includes the semicolon.
324
325 -- Specification always refers to the syntactic entity that is called
326 -- a specification. In particular, the terms procedure
327 -- specification, function specification, package
328 -- specification, subprogram specification always refer
329 -- to the syntactic entity that has no semicolon.
330
331 -- Spec is an informal term, used to refer to the entity
332 -- that is declared by a task declaration, protected
333 -- declaration, generic declaration, subprogram
334 -- declaration or package declaration.
335
336 -- This convention is followed throughout the GNAT documentation
337 -- both internal and external, and in all error message text.
338
339 ------------------------
340 -- Internal Use Nodes --
341 ------------------------
342
343 -- These are Node_Kind settings used in the internal implementation which
344 -- are not logically part of the specification.
345
346 -- N_Unused_At_Start
347 -- Completely unused entry at the start of the enumeration type. This
348 -- is inserted so that no legitimate value is zero, which helps to get
349 -- better debugging behavior, since zero is a likely uninitialized value).
350
351 -- N_Unused_At_End
352 -- Completely unused entry at the end of the enumeration type. This is
353 -- handy so that arrays with Node_Kind as the index type have an extra
354 -- entry at the end (see for example the use of the Pchar_Pos_Array in
355 -- Treepr, where the extra entry provides the limit value when dealing with
356 -- the last used entry in the array).
357
358 -----------------------------------------
359 -- Note on the settings of Sloc fields --
360 -----------------------------------------
361
362 -- The Sloc field of nodes that come from the source is set by the parser.
363 -- For internal nodes, and nodes generated during expansion the Sloc is
364 -- usually set in the call to the constructor for the node. In general the
365 -- Sloc value chosen for an internal node is the Sloc of the source node
366 -- whose processing is responsible for the expansion. For example, the Sloc
367 -- of an inherited primitive operation is the Sloc of the corresponding
368 -- derived type declaration.
369
370 -- For the nodes of a generic instantiation, the Sloc value is encoded to
371 -- represent both the original Sloc in the generic unit, and the Sloc of
372 -- the instantiation itself. See Sinput.ads for details.
373
374 -- Subprogram instances create two callable entities: one is the visible
375 -- subprogram instance, and the other is an anonymous subprogram nested
376 -- within a wrapper package that contains the renamings for the actuals.
377 -- Both of these entities have the Sloc of the defining entity in the
378 -- instantiation node. This simplifies some ASIS queries.
379
380 -----------------------
381 -- Field Definitions --
382 -----------------------
383
384 -- In the following node definitions, all fields, both syntactic and
385 -- semantic, are documented. The one exception is in the case of entities
386 -- (defining indentifiers, character literals and operator symbols), where
387 -- the usage of the fields depends on the entity kind. Entity fields are
388 -- fully documented in the separate package Einfo.
389
390 -- In the node definitions, three common sets of fields are abbreviated to
391 -- save both space in the documentation, and also space in the string
392 -- (defined in Tree_Print_Strings) used to print trees. The following
393 -- abbreviations are used:
394
395 -- Note: the utility program that creates the Treeprs spec (in the file
396 -- xtreeprs.adb) knows about the special fields here, so it must be
397 -- modified if any change is made to these fields.
398
399 -- "plus fields for binary operator"
400 -- Chars (Name1) Name_Id for the operator
401 -- Left_Opnd (Node2) left operand expression
402 -- Right_Opnd (Node3) right operand expression
403 -- Entity (Node4-Sem) defining entity for operator
404 -- Associated_Node (Node4-Sem) for generic processing
405 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
406 -- Has_Private_View (Flag11-Sem) set in generic units.
407
408 -- "plus fields for unary operator"
409 -- Chars (Name1) Name_Id for the operator
410 -- Right_Opnd (Node3) right operand expression
411 -- Entity (Node4-Sem) defining entity for operator
412 -- Associated_Node (Node4-Sem) for generic processing
413 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
414 -- Has_Private_View (Flag11-Sem) set in generic units.
415
416 -- "plus fields for expression"
417 -- Paren_Count number of parentheses levels
418 -- Etype (Node5-Sem) type of the expression
419 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
420 -- Is_Static_Expression (Flag6-Sem) set for static expression
421 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
422 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
423 -- Do_Range_Check (Flag9-Sem) set if a range check needed
424 -- Assignment_OK (Flag15-Sem) set if modification is OK
425 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
426
427 -- Note: see under (EXPRESSION) for further details on the use of
428 -- the Paren_Count field to record the number of parentheses levels.
429
430 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
431 -- The actual definition of this type is given later (the reason for this
432 -- is that we want the descriptions ordered by logical chapter in the RM,
433 -- but the type definition is reordered to facilitate the definition of
434 -- some subtype ranges. The individual descriptions of the nodes show how
435 -- the various fields are used in each node kind, as well as providing
436 -- logical names for the fields. Functions and procedures are provided for
437 -- accessing and setting these fields using these logical names.
438
439 -----------------------
440 -- Gigi Restrictions --
441 -----------------------
442
443 -- The tree passed to Gigi is more restricted than the general tree form.
444 -- For example, as a result of expansion, most of the tasking nodes can
445 -- never appear. For each node to which either a complete or partial
446 -- restriction applies, a note entitled "Gigi restriction" appears which
447 -- documents the restriction.
448
449 -- Note that most of these restrictions apply only to trees generated when
450 -- code is being generated, since they involved expander actions that
451 -- destroy the tree.
452
453 ------------------------
454 -- Common Flag Fields --
455 ------------------------
456
457 -- The following flag fields appear in all nodes
458
459 -- Analyzed (Flag1)
460 -- This flag is used to indicate that a node (and all its children have
461 -- been analyzed. It is used to avoid reanalysis of a node that has
462 -- already been analyzed, both for efficiency and functional correctness
463 -- reasons.
464
465 -- Coextensions (Elist4-Sem)
466 -- Present in allocators nodes. Points to list of allocators for the
467 -- access discriminants of the allocated object,
468
469 -- Comes_From_Source (Flag2)
470 -- This flag is on for any nodes built by the scanner or parser from the
471 -- source program, and off for any nodes built by the analyzer or
472 -- expander. It indicates that a node comes from the original source.
473 -- This flag is defined in Atree.
474
475 -- Error_Posted (Flag3)
476 -- This flag is used to avoid multiple error messages being posted on or
477 -- referring to the same node. This flag is set if an error message
478 -- refers to a node or is posted on its source location, and has the
479 -- effect of inhibiting further messages involving this same node.
480
481 -- Local_Raise_Statements (Elist1)
482 -- This field is present in exception handler nodes. It is set to
483 -- No_Elist in the normal case. If there is at least one raise statement
484 -- which can potentially be handled as a local raise, then this field
485 -- points to a list of raise nodes, which are calls to a routine to raise
486 -- an exception. These are raise nodes which can be optimized into gotos
487 -- if the handler turns out to meet the conditions which permit this
488 -- transformation.
489
490 -- Has_Dynamic_Length_Check (Flag10-Sem)
491 -- This flag is present on all nodes. It is set to indicate that one of
492 -- the routines in unit Checks has generated a length check action which
493 -- has been inserted at the flagged node. This is used to avoid the
494 -- generation of duplicate checks.
495
496 -- Has_Dynamic_Range_Check (Flag12-Sem)
497 -- This flag is present on all nodes. It is set to indicate that one of
498 -- the routines in unit Checks has generated a range check action which
499 -- has been inserted at the flagged node. This is used to avoid the
500 -- generation of duplicate checks.
501
502 ------------------------------------
503 -- Description of Semantic Fields --
504 ------------------------------------
505
506 -- The meaning of the syntactic fields is generally clear from their names
507 -- without any further description, since the names are chosen to
508 -- correspond very closely to the syntax in the reference manual. This
509 -- section describes the usage of the semantic fields, which are used to
510 -- contain additional information determined during semantic analysis.
511
512 -- ABE_Is_Certain (Flag18-Sem)
513 -- This flag is set in an instantiation node or a call node is determined
514 -- to be sure to raise an ABE. This is used to trigger special handling
515 -- of such cases, particularly in the instantiation case where we avoid
516 -- instantiating the body if this flag is set. This flag is also present
517 -- in an N_Formal_Package_Declaration_Node since formal package
518 -- declarations are treated like instantiations, but it is always set to
519 -- False in this context.
520
521 -- Accept_Handler_Records (List5-Sem)
522 -- This field is present only in an N_Accept_Alternative node. It is used
523 -- to temporarily hold the exception handler records from an accept
524 -- statement in a selective accept. These exception handlers will
525 -- eventually be placed in the Handler_Records list of the procedure
526 -- built for this accept (see Expand_N_Selective_Accept procedure in
527 -- Exp_Ch9 for further details).
528
529 -- Access_Types_To_Process (Elist2-Sem)
530 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
531 -- Contains the list of access types which may require specific treatment
532 -- when the nature of the type completion is completely known. An example
533 -- of such treatement is the generation of the associated_final_chain.
534
535 -- Actions (List1-Sem)
536 -- This field contains a sequence of actions that are associated with the
537 -- node holding the field. See the individual node types for details of
538 -- how this field is used, as well as the description of the specific use
539 -- for a particular node type.
540
541 -- Activation_Chain_Entity (Node3-Sem)
542 -- This is used in tree nodes representing task activators (blocks,
543 -- subprogram bodies, package declarations, and task bodies). It is
544 -- initially Empty, and then gets set to point to the entity for the
545 -- declared Activation_Chain variable when the first task is declared.
546 -- When tasks are declared in the corresponding declarative region this
547 -- entity is located by name (its name is always _Chain) and the declared
548 -- tasks are added to the chain. Note that N_Extended_Return_Statement
549 -- does not have this attribute, although it does have an activation
550 -- chain. This chain is used to store the tasks temporarily, and is not
551 -- used for activating them. On successful completion of the return
552 -- statement, the tasks are moved to the caller's chain, and the caller
553 -- activates them.
554
555 -- Acts_As_Spec (Flag4-Sem)
556 -- A flag set in the N_Subprogram_Body node for a subprogram body which
557 -- is acting as its own spec. This flag also appears in the compilation
558 -- unit node at the library level for such a subprogram (see further
559 -- description in spec of Lib package).
560
561 -- Actual_Designated_Subtype (Node4-Sem)
562 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
563 -- needs to known the dynamic constrained subtype of the designated
564 -- object, this attribute is set to that type. This is done for
565 -- N_Free_Statements for access-to-classwide types and access to
566 -- unconstrained packed array types, and for N_Explicit_Dereference when
567 -- the designated type is an unconstrained packed array and the
568 -- dereference is the prefix of a 'Size attribute reference.
569
570 -- Aggregate_Bounds (Node3-Sem)
571 -- Present in array N_Aggregate nodes. If the aggregate contains
572 -- component associations this field points to an N_Range node whose
573 -- bounds give the lowest and highest discrete choice values. If the
574 -- named aggregate contains a dynamic or null choice this field is empty.
575 -- If the aggregate contains positional elements this field points to an
576 -- N_Integer_Literal node giving the number of positional elements. Note
577 -- that if the aggregate contains positional elements and an other choice
578 -- the N_Integer_Literal only accounts for the number of positional
579 -- elements.
580
581 -- All_Others (Flag11-Sem)
582 -- Present in an N_Others_Choice node. This flag is set in the case of an
583 -- others exception where all exceptions are to be caught, even those
584 -- that are not normally handled (in particular the tasking abort
585 -- signal). This is used for translation of the at end handler into a
586 -- normal exception handler.
587
588 -- Assignment_OK (Flag15-Sem)
589 -- This flag is set in a subexpression node for an object, indicating
590 -- that the associated object can be modified, even if this would not
591 -- normally be permissible (either by direct assignment, or by being
592 -- passed as an out or in-out parameter). This is used by the expander
593 -- for a number of purposes, including initialzation of constants and
594 -- limited type objects (such as tasks), setting discriminant fields,
595 -- setting tag values, etc. N_Object_Declaration nodes also have this
596 -- flag defined. Here it is used to indicate that an initialization
597 -- expression is valid, even where it would normally not be allowed (e.g.
598 -- where the type involved is limited).
599
600 -- Associated_Node (Node4-Sem)
601 -- Present in nodes that can denote an entity: identifiers, character
602 -- literals, operator symbols, expanded names, operator nodes, and
603 -- attribute reference nodes (all these nodes have an Entity field). This
604 -- field is also present in N_Aggregate, N_Selected_Component, and
605 -- N_Extension_Aggregate nodes. This field is used in generic processing
606 -- to create links between the generic template and the generic copy. See
607 -- Sem_Ch12.Get_Associated_Node for full details. Note that this field
608 -- overlaps Entity, which is fine, since, as explained in Sem_Ch12, the
609 -- normal function of Entity is not required at the point where the
610 -- Associated_Node is set. Note also, that in generic templates, this
611 -- means that the Entity field does not necessarily point to an Entity.
612 -- Since the back end is expected to ignore generic templates, this is
613 -- harmless.
614
615 -- At_End_Proc (Node1)
616 -- This field is present in an N_Handled_Sequence_Of_Statements node. It
617 -- contains an identifier reference for the cleanup procedure to be
618 -- called. See description of this node for further details.
619
620 -- Backwards_OK (Flag6-Sem)
621 -- A flag present in the N_Assignment_Statement node. It is used only if
622 -- the type being assigned is an array type, and is set if analysis
623 -- determines that it is definitely safe to do the copy backwards, i.e.
624 -- starting at the highest addressed element. Note that if neither of the
625 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
626 -- could not determine that either direction is definitely safe, and a
627 -- runtime check is required.
628
629 -- Body_To_Inline (Node3-Sem)
630 -- present in subprogram declarations. Denotes analyzed but unexpanded
631 -- body of subprogram, to be used when inlining calls. Present when the
632 -- subprogram has an Inline pragma and inlining is enabled. If the
633 -- declaration is completed by a renaming_as_body, and the renamed en-
634 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
635 -- which is used directly in later calls to the original subprogram.
636
637 -- Body_Required (Flag13-Sem)
638 -- A flag that appears in the N_Compilation_Unit node indicating that the
639 -- corresponding unit requires a body. For the package case, this
640 -- indicates that a completion is required. In Ada 95, if the flag is not
641 -- set for the package case, then a body may not be present. In Ada 83,
642 -- if the flag is not set for the package case, then body is optional.
643 -- For a subprogram declaration, the flag is set except in the case where
644 -- a pragma Import or Interface applies, in which case no body is
645 -- permitted (in Ada 83 or Ada 95).
646
647 -- By_Ref (Flag5-Sem)
648 -- A flag present in N_Return_Statement and
649 -- N_Extended_Return_Statement.
650 -- It is set when the returned expression is already allocated on the
651 -- secondary stack and thus the result is passed by reference rather
652 -- than copied another time.
653
654 -- Check_Address_Alignment (Flag11-Sem)
655 -- A flag present in N_Attribute_Definition clause for a 'Address
656 -- attribute definition. This flag is set if a dynamic check should be
657 -- generated at the freeze point for the entity to which this address
658 -- clause applies. The reason that we need this flag is that we want to
659 -- check for range checks being suppressed at the point where the
660 -- attribute definition clause is given, rather than testing this at the
661 -- freeze point.
662
663 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
664 -- Present in N_Return_Statement nodes. True if this node was
665 -- constructed as part of the expansion of an
666 -- N_Extended_Return_Statement.
667
668 -- Compile_Time_Known_Aggregate (Flag18-Sem)
669 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
670 -- evaluated at compile time without raising constraint error. Such
671 -- aggregates can be passed as is to Gigi without any expansion. See
672 -- Sem_Aggr for the specific conditions under which an aggregate has this
673 -- flag set. See also the flag Static_Processing_OK.
674
675 -- Condition_Actions (List3-Sem)
676 -- This field appears in else-if nodes and in the iteration scheme node
677 -- for while loops. This field is only used during semantic processing to
678 -- temporarily hold actions inserted into the tree. In the tree passed to
679 -- gigi, the condition actions field is always set to No_List. For
680 -- details on how this field is used, see the routine Insert_Actions in
681 -- package Exp_Util, and also the expansion routines for the relevant
682 -- nodes.
683
684 -- Controlling_Argument (Node1-Sem)
685 -- This field is set in procedure and function call nodes if the call is
686 -- a dispatching call (it is Empty for a non-dispatching call). It
687 -- indicates the source of the call's controlling tag. For procedure
688 -- calls, the Controlling_Argument is one of the actuals. For function
689 -- that has a dispatching result, it is an entity in the context of the
690 -- call that can provide a tag, or else it is the tag of the root type of
691 -- the class. It can also specify a tag directly rather than being a
692 -- tagged object. The latter is needed by the implementations of AI-239
693 -- and AI-260.
694
695 -- Conversion_OK (Flag14-Sem)
696 -- A flag set on type conversion nodes to indicate that the conversion is
697 -- to be considered as being valid, even though it is the case that the
698 -- conversion is not valid Ada. This is used for Enum_Rep, Fixed_Value
699 -- and Integer_Value attributes, for internal conversions done for
700 -- fixed-point operations, and for certain conversions for calls to
701 -- initialization procedures. If Conversion_OK is set, then Etype must be
702 -- set (the analyzer assumes that Etype has been set). For the case of
703 -- fixed-point operands, it also indicates that the conversion is to be
704 -- direct conversion of the underlying integer result, with no regard to
705 -- the small operand.
706
707 -- Corresponding_Body (Node5-Sem)
708 -- This field is set in subprogram declarations, package declarations,
709 -- entry declarations of protected types, and in generic units. It
710 -- points to the defining entity for the corresponding body (NOT the
711 -- node for the body itself).
712
713 -- Corresponding_Formal_Spec (Node3-Sem)
714 -- This field is set in subprogram renaming declarations, where it points
715 -- to the defining entity for a formal subprogram in the case where the
716 -- renaming corresponds to a generic formal subprogram association in an
717 -- instantiation. The field is Empty if the renaming does not correspond
718 -- to such a formal association.
719
720 -- Corresponding_Generic_Association (Node5-Sem)
721 -- This field is defined for object declarations and object renaming
722 -- declarations. It is set for the declarations within an instance that
723 -- map generic formals to their actuals. If set, the field points to
724 -- a generic_association which is the original parent of the expression
725 -- or name appearing in the declaration. This simplifies ASIS queries.
726
727 -- Corresponding_Integer_Value (Uint4-Sem)
728 -- This field is set in real literals of fixed-point types (it is not
729 -- used for floating-point types). It contains the integer value used
730 -- to represent the fixed-point value. It is also set on the universal
731 -- real literals used to represent bounds of fixed-point base types
732 -- and their first named subtypes.
733
734 -- Corresponding_Spec (Node5-Sem)
735 -- This field is set in subprogram, package, task, and protected body
736 -- nodes, where it points to the defining entity in the corresponding
737 -- spec. The attribute is also set in N_With_Clause nodes, where it
738 -- points to the defining entity for the with'ed spec, and in a
739 -- subprogram renaming declaration when it is a Renaming_As_Body. The
740 -- field is Empty if there is no corresponding spec, as in the case of a
741 -- subprogram body that serves as its own spec.
742
743 -- Corresponding_Stub (Node3-Sem)
744 -- This field is present in an N_Subunit node. It holds the node in
745 -- the parent unit that is the stub declaration for the subunit. it is
746 -- set when analysis of the stub forces loading of the proper body. If
747 -- expansion of the proper body creates new declarative nodes, they are
748 -- inserted at the point of the corresponding_stub.
749
750 -- Dcheck_Function (Node5-Sem)
751 -- This field is present in an N_Variant node, It references the entity
752 -- for the discriminant checking function for the variant.
753
754 -- Debug_Statement (Node3)
755 -- This field is present in an N_Pragma node. It is used only for a Debug
756 -- pragma. The parameter is of the form of an expression, as required by
757 -- the pragma syntax, but is actually a procedure call. To simplify
758 -- semantic processing, the parser creates a copy of the argument
759 -- rearranged into a procedure call statement and places it in the
760 -- Debug_Statement field. Note that this field is considered syntactic
761 -- field, since it is created by the parser.
762
763 -- Default_Expression (Node5-Sem)
764 -- This field is Empty if there is no default expression. If there is a
765 -- simple default expression (one with no side effects), then this field
766 -- simply contains a copy of the Expression field (both point to the tree
767 -- for the default expression). Default_Expression is used for
768 -- conformance checking.
769
770 -- Delay_Finalize_Attach (Flag14-Sem)
771 -- This flag is present in an N_Object_Declaration node. If it is set,
772 -- then in the case of a controlled type being declared and initialized,
773 -- the normal code for attaching the result to the appropriate local
774 -- finalization list is suppressed. This is used for functions that
775 -- return controlled types without using the secondary stack, where it is
776 -- the caller who must do the attachment.
777
778 -- Discr_Check_Funcs_Built (Flag11-Sem)
779 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
780 -- discriminant checking functions are constructed. The purpose is to
781 -- avoid attempting to set these functions more than once.
782
783 -- Do_Accessibility_Check (Flag13-Sem)
784 -- This flag is set on N_Parameter_Specification nodes to indicate
785 -- that an accessibility check is required for the parameter. It is
786 -- not yet decided who takes care of this check (TBD ???).
787
788 -- Do_Discriminant_Check (Flag13-Sem)
789 -- This flag is set on N_Selected_Component nodes to indicate that a
790 -- discriminant check is required using the discriminant check routine
791 -- associated with the selector. The actual check is generated by the
792 -- expander when processing selected components.
793
794 -- Do_Division_Check (Flag13-Sem)
795 -- This flag is set on a division operator (/ mod rem) to indicate
796 -- that a zero divide check is required. The actual check is dealt
797 -- with by the backend (all the front end does is to set the flag).
798
799 -- Do_Length_Check (Flag4-Sem)
800 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
801 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
802 -- is required. It is not determined who deals with this flag (???).
803
804 -- Do_Overflow_Check (Flag17-Sem)
805 -- This flag is set on an operator where an overflow check is required on
806 -- the operation. The actual check is dealt with by the backend (all the
807 -- front end does is to set the flag). The other cases where this flag is
808 -- used is on a Type_Conversion node and for attribute reference nodes.
809 -- For a type conversion, it means that the conversion is from one base
810 -- type to another, and the value may not fit in the target base type.
811 -- See also the description of Do_Range_Check for this case. The only
812 -- attribute references which use this flag are Pred and Succ, where it
813 -- means that the result should be checked for going outside the base
814 -- range.
815
816 -- Do_Range_Check (Flag9-Sem)
817 -- This flag is set on an expression which appears in a context where
818 -- a range check is required. The target type is clear from the
819 -- context. The contexts in which this flag can appear are limited to
820 -- the following.
821
822 -- Right side of an assignment. In this case the target type is
823 -- taken from the left side of the assignment, which is referenced
824 -- by the Name of the N_Assignment_Statement node.
825
826 -- Subscript expressions in an indexed component. In this case the
827 -- target type is determined from the type of the array, which is
828 -- referenced by the Prefix of the N_Indexed_Component node.
829
830 -- Argument expression for a parameter, appearing either directly in
831 -- the Parameter_Associations list of a call or as the Expression of an
832 -- N_Parameter_Association node that appears in this list. In either
833 -- case, the check is against the type of the formal. Note that the
834 -- flag is relevant only in IN and IN OUT parameters, and will be
835 -- ignored for OUT parameters, where no check is required in the call,
836 -- and if a check is required on the return, it is generated explicitly
837 -- with a type conversion.
838
839 -- Initialization expression for the initial value in an object
840 -- declaration. In this case the Do_Range_Check flag is set on
841 -- the initialization expression, and the check is against the
842 -- range of the type of the object being declared.
843
844 -- The expression of a type conversion. In this case the range check is
845 -- against the target type of the conversion. See also the use of
846 -- Do_Overflow_Check on a type conversion. The distinction is that the
847 -- overflow check protects against a value that is outside the range of
848 -- the target base type, whereas a range check checks that the
849 -- resulting value (which is a value of the base type of the target
850 -- type), satisfies the range constraint of the target type.
851
852 -- Note: when a range check is required in contexts other than those
853 -- listed above (e.g. in a return statement), an additional type
854 -- conversion node is introduced to represent the required check.
855
856 -- Do_Storage_Check (Flag17-Sem)
857 -- This flag is set in an N_Allocator node to indicate that a storage
858 -- check is required for the allocation, or in an N_Subprogram_Body node
859 -- to indicate that a stack check is required in the subprogram prolog.
860 -- The N_Allocator case is handled by the routine that expands the call
861 -- to the runtime routine. The N_Subprogram_Body case is handled by the
862 -- backend, and all the semantics does is set the flag.
863
864 -- Do_Tag_Check (Flag13-Sem)
865 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
866 -- N_Procedure_Call_Statement, N_Type_Conversion,
867 -- N_Return_Statement, or N_Extended_Return_Statement
868 -- node to indicate that the tag check can be suppressed. It is not
869 -- yet decided how this flag is used (TBD ???).
870
871 -- Elaborate_Present (Flag4-Sem)
872 -- This flag is set in the N_With_Clause node to indicate that pragma
873 -- Elaborate pragma appears for the with'ed units.
874
875 -- Elaborate_All_Desirable (Flag9-Sem)
876 -- This flag is set in the N_With_Clause mode to indicate that the static
877 -- elaboration processing has determined that an Elaborate_All pragma is
878 -- desirable for correct elaboration for this unit.
879
880 -- Elaborate_All_Present (Flag14-Sem)
881 -- This flag is set in the N_With_Clause node to indicate that a
882 -- pragma Elaborate_All pragma appears for the with'ed units.
883
884 -- Elaborate_Desirable (Flag11-Sem)
885 -- This flag is set in the N_With_Clause mode to indicate that the static
886 -- elaboration processing has determined that an Elaborate pragma is
887 -- desirable for correct elaboration for this unit.
888
889 -- Elaboration_Boolean (Node2-Sem)
890 -- This field is present in function and procedure specification
891 -- nodes. If set, it points to the entity for a Boolean flag that
892 -- must be tested for certain calls to check for access before
893 -- elaboration. See body of Sem_Elab for further details. This
894 -- field is Empty if no elaboration boolean is required.
895
896 -- Else_Actions (List3-Sem)
897 -- This field is present in conditional expression nodes. During code
898 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
899 -- actions at an appropriate place in the tree to get elaborated at the
900 -- right time. For conditional expressions, we have to be sure that the
901 -- actions for the Else branch are only elaborated if the condition is
902 -- False. The Else_Actions field is used as a temporary parking place for
903 -- these actions. The final tree is always rewritten to eliminate the
904 -- need for this field, so in the tree passed to Gigi, this field is
905 -- always set to No_List.
906
907 -- Enclosing_Variant (Node2-Sem)
908 -- This field is present in the N_Variant node and identifies the
909 -- Node_Id corresponding to the immediately enclosing variant when
910 -- the variant is nested, and N_Empty otherwise. Set during semantic
911 -- processing of the variant part of a record type.
912
913 -- Entity (Node4-Sem)
914 -- Appears in all direct names (identifier, character literal, operator
915 -- symbol), as well as expanded names, and attributes that denote
916 -- entities, such as 'Class. Points to the entity for the corresponding
917 -- defining occurrence. Set after name resolution. In the case of
918 -- identifiers in a WITH list, the corresponding defining occurrence is
919 -- in a separately compiled file, and this pointer must be set using the
920 -- library Load procedure. Note that during name resolution, the value in
921 -- Entity may be temporarily incorrect (e.g. during overload resolution,
922 -- Entity is initially set to the first possible correct interpretation,
923 -- and then later modified if necessary to contain the correct value
924 -- after resolution). Note that this field overlaps Associated_Node,
925 -- which is used during generic processing (see Sem_Ch12 for details).
926 -- Note also that in generic templates, this means that the Entity field
927 -- does not always point to an Entity. Since the back end is expected to
928 -- ignore generic templates, this is harmless. Note that this field also
929 -- appears in N_Attribute_Definition_Clause nodes. It is used only for
930 -- stream attributes definition clauses. In this case, it denotes a
931 -- (possibly dummy) subprogram entity that is conceptually declared at
932 -- the point of the clause. Thus the visibility of the attribute
933 -- definition clause (in the sense of 8.3(23) as amended by AI-195) can
934 -- be checked by testing the visibility of that subprogram.
935
936 -- Entity_Or_Associated_Node (Node4-Sem)
937 -- A synonym for both Entity and Associated_Node. Used by convention in
938 -- the code when referencing this field in cases where it is not known
939 -- whether the field contains an Entity or an Associated_Node.
940
941 -- Etype (Node5-Sem)
942 -- Appears in all expression nodes, all direct names, and all entities.
943 -- Points to the entity for the related type. Set after type resolution.
944 -- Normally this is the actual subtype of the expression. However, in
945 -- certain contexts such as the right side of an assignment, subscripts,
946 -- arguments to calls, returned value in a function, initial value etc.
947 -- it is the desired target type. In the event that this is different
948 -- from the actual type, the Do_Range_Check flag will be set if a range
949 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
950 -- points to an essentially arbitrary choice from the possible set of
951 -- types.
952
953 -- Exception_Junk (Flag7-Sem)
954 -- This flag is set in a various nodes appearing in a statement sequence
955 -- to indicate that the corresponding node is an artifact of the
956 -- generated code for exception handling, and should be ignored when
957 -- analyzing the control flow of the relevant sequence of statements
958 -- (e.g. to check that it does not end with a bad return statement).
959
960 -- Exception_Label (Node5-Sem)
961 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
962 -- to be used for transforming the corresponding exception into a goto,
963 -- or contains Empty, if this exception is not to be transformed. Also
964 -- appears in N_Exception_Handler nodes, where, if set, it indicates
965 -- that there may be a local raise for the handler, so that expansion
966 -- to allow a goto is required (and this field contains the label for
967 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
968
969 -- Expansion_Delayed (Flag11-Sem)
970 -- Set on aggregates and extension aggregates that need a top-down rather
971 -- than bottom up expansion. Typically aggregate expansion happens bottom
972 -- up. For nested aggregates the expansion is delayed until the enclosing
973 -- aggregate itself is expanded, e.g. in the context of a declaration. To
974 -- delay it we set this flag. This is done to avoid creating a temporary
975 -- for each level of a nested aggregates, and also to prevent the
976 -- premature generation of constraint checks. This is also a requirement
977 -- if we want to generate the proper attachment to the internal
978 -- finalization lists (for record with controlled components). Top down
979 -- expansion of aggregates is also used for in-place array aggregate
980 -- assignment or initialization. When the full context is known, the
981 -- target of the assignment or initialization is used to generate the
982 -- left-hand side of individual assignment to each sub-component.
983
984 -- First_Inlined_Subprogram (Node3-Sem)
985 -- Present in the N_Compilation_Unit node for the main program. Points to
986 -- a chain of entities for subprograms that are to be inlined. The
987 -- Next_Inlined_Subprogram field of these entities is used as a link
988 -- pointer with Empty marking the end of the list. This field is Empty if
989 -- there are no inlined subprograms or inlining is not active.
990
991 -- First_Named_Actual (Node4-Sem)
992 -- Present in procedure call statement and function call nodes, and also
993 -- in Intrinsic nodes. Set during semantic analysis to point to the first
994 -- named parameter where parameters are ordered by declaration order (as
995 -- opposed to the actual order in the call which may be different due to
996 -- named associations). Note: this field points to the explicit actual
997 -- parameter itself, not the N_Parameter_Association node (its parent).
998
999 -- First_Real_Statement (Node2-Sem)
1000 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1001 -- Empty. Used only when declarations are moved into the statement part
1002 -- of a construct as a result of wrapping an AT END handler that is
1003 -- required to cover the declarations. In this case, this field is used
1004 -- to remember the location in the statements list of the first real
1005 -- statement, i.e. the statement that used to be first in the statement
1006 -- list before the declarations were prepended.
1007
1008 -- First_Subtype_Link (Node5-Sem)
1009 -- Present in N_Freeze_Entity node for an anonymous base type that is
1010 -- implicitly created by the declaration of a first subtype. It points to
1011 -- the entity for the first subtype.
1012
1013 -- Float_Truncate (Flag11-Sem)
1014 -- A flag present in type conversion nodes. This is used for float to
1015 -- integer conversions where truncation is required rather than rounding.
1016 -- Note that Gigi does not handle type conversions from real to integer
1017 -- with rounding (see Expand_N_Type_Conversion).
1018
1019 -- Forwards_OK (Flag5-Sem)
1020 -- A flag present in the N_Assignment_Statement node. It is used only if
1021 -- the type being assigned is an array type, and is set if analysis
1022 -- determines that it is definitely safe to do the copy forwards, i.e.
1023 -- starting at the lowest addressed element. Note that if neither of the
1024 -- flags Forwards_OK or Backwards_OK is set, it means that the front end
1025 -- could not determine that either direction is definitely safe, and a
1026 -- runtime check is required.
1027
1028 -- From_At_Mod (Flag4-Sem)
1029 -- This flag is set on the attribute definition clause node that is
1030 -- generated by a transformation of an at mod phrase in a record
1031 -- representation clause. This is used to give slightly different (Ada 83
1032 -- compatible) semantics to such a clause, namely it is used to specify a
1033 -- minimum acceptable alignment for the base type and all subtypes. In
1034 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1035 -- must be a multiple of the given value, and the representation clause
1036 -- is considered to be type specific instead of subtype specific.
1037
1038 -- From_Default (Flag6-Sem)
1039 -- This flag is set on the subprogram renaming declaration created in an
1040 -- instance for a formal subprogram, when the formal is declared with a
1041 -- box, and there is no explicit actual. If the flag is present, the
1042 -- declaration is treated as an implicit reference to the formal in the
1043 -- ali file.
1044
1045 -- Generic_Parent (Node5-Sem)
1046 -- Generic_Parent is defined on declaration nodes that are instances. The
1047 -- value of Generic_Parent is the generic entity from which the instance
1048 -- is obtained. Generic_Parent is also defined for the renaming
1049 -- declarations and object declarations created for the actuals in an
1050 -- instantiation. The generic parent of such a declaration is the
1051 -- corresponding generic association in the Instantiation node.
1052
1053 -- Generic_Parent_Type (Node4-Sem)
1054 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1055 -- actuals of formal private and derived types. Within the instance, the
1056 -- operations on the actual are those inherited from the parent. For a
1057 -- formal private type, the parent type is the generic type itself. The
1058 -- Generic_Parent_Type is also used in an instance to determine whether a
1059 -- private operation overrides an inherited one.
1060
1061 -- Handler_List_Entry (Node2-Sem)
1062 -- This field is present in N_Object_Declaration nodes. It is set only
1063 -- for the Handler_Record entry generated for an exception in zero cost
1064 -- exception handling mode. It references the corresponding item in the
1065 -- handler list, and is used to delete this entry if the corresponding
1066 -- handler is deleted during optimization. For further details on why
1067 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1068
1069 -- Has_No_Elaboration_Code (Flag17-Sem)
1070 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1071 -- or not elaboration code is present for this unit. It is initially set
1072 -- true for subprogram specs and bodies and for all generic units and
1073 -- false for non-generic package specs and bodies. Gigi may set the flag
1074 -- in the non-generic package case if it determines that no elaboration
1075 -- code is generated. Note that this flag is not related to the
1076 -- Is_Preelaborated status, there can be preelaborated packages that
1077 -- generate elaboration code, and non- preelaborated packages which do
1078 -- not generate elaboration code.
1079
1080 -- Has_Priority_Pragma (Flag6-Sem)
1081 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1082 -- N_Protected_Definition nodes to flag the presence of either a Priority
1083 -- or Interrupt_Priority pragma in the declaration sequence (public or
1084 -- private in the task and protected cases)
1085
1086 -- Has_Private_View (Flag11-Sem)
1087 -- A flag present in generic nodes that have an entity, to indicate that
1088 -- the node has a private type. Used to exchange private and full
1089 -- declarations if the visibility at instantiation is different from the
1090 -- visibility at generic definition.
1091
1092 -- Has_Self_Reference (Flag13-Sem)
1093 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1094 -- of the expressions contains an access attribute reference to the
1095 -- enclosing type. Such a self-reference can only appear in default-
1096 -- initialized aggregate for a record type.
1097
1098 -- Has_Storage_Size_Pragma (Flag5-Sem)
1099 -- A flag present in an N_Task_Definition node to flag the presence of a
1100 -- Storage_Size pragma.
1101
1102 -- Has_Task_Info_Pragma (Flag7-Sem)
1103 -- A flag present in an N_Task_Definition node to flag the presence of a
1104 -- Task_Info pragma. Used to detect duplicate pragmas.
1105
1106 -- Has_Task_Name_Pragma (Flag8-Sem)
1107 -- A flag present in N_Task_Definition nodes to flag the presence of a
1108 -- Task_Name pragma in the declaration sequence for the task.
1109
1110 -- Has_Wide_Character (Flag11-Sem)
1111 -- Present in string literals, set if any wide character (i.e. character
1112 -- code outside the Character range) appears in the string.
1113
1114 -- Hidden_By_Use_Clause (Elist4-Sem)
1115 -- An entity list present in use clauses that appear within
1116 -- instantiations. For the resolution of local entities, entities
1117 -- introduced by these use clauses have priority over global ones, and
1118 -- outer entities must be explicitly hidden/restored on exit.
1119
1120 -- Implicit_With (Flag16-Sem)
1121 -- This flag is set in the N_With_Clause node that is implicitly
1122 -- generated for runtime units that are loaded by the expander, and also
1123 -- for package System, if it is loaded implicitly by a use of the
1124 -- 'Address or 'Tag attribute.
1125
1126 -- Includes_Infinities (Flag11-Sem)
1127 -- This flag is present in N_Range nodes. It is set for the range of
1128 -- unconstrained float types defined in Standard, which include not only
1129 -- the given range of values, but also legtitimately can include infinite
1130 -- values. This flag is false for any float type for which an explicit
1131 -- range is given by the programmer, even if that range is identical to
1132 -- the range for Float.
1133
1134 -- Instance_Spec (Node5-Sem)
1135 -- This field is present in generic instantiation nodes, and also in
1136 -- formal package declaration nodes (formal package declarations are
1137 -- treated in a manner very similar to package instantiations). It points
1138 -- to the node for the spec of the instance, inserted as part of the
1139 -- semantic processing for instantiations in Sem_Ch12.
1140
1141 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1142 -- A flag set in a Block_Statement node to indicate that it is the
1143 -- expansion of an asynchronous entry call. Such a block needs cleanup
1144 -- handler to assure that the call is cancelled.
1145
1146 -- Is_Coextension (Flag18-Sem)
1147 -- Present in allocator nodes, to indicate that this is an allocator
1148 -- for an access discriminant of a dynamically allocated object. The
1149 -- coextension must be deallocated and finalized at the same time as
1150 -- the enclosing object.
1151
1152 -- Is_Component_Left_Opnd (Flag13-Sem)
1153 -- Is_Component_Right_Opnd (Flag14-Sem)
1154 -- Present in concatenation nodes, to indicate that the corresponding
1155 -- operand is of the component type of the result. Used in resolving
1156 -- concatenation nodes in instances.
1157
1158 -- Is_Controlling_Actual (Flag16-Sem)
1159 -- This flag is set on in an expression that is a controlling argument in
1160 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1161 -- details of its use.
1162
1163 -- Is_Entry_Barrier_Function (Flag8-Sem)
1164 -- This flag is set in an N_Subprogram_Body node which is the expansion
1165 -- of an entry barrier from a protected entry body. It is used for the
1166 -- circuitry checking for incorrect use of Current_Task.
1167
1168 -- Is_In_Discriminant_Check (Flag11-Sem)
1169 -- This flag is present in a selected component, and is used to indicate
1170 -- that the reference occurs within a discriminant check. The
1171 -- significance is that optimizations based on assuming that the
1172 -- discriminant check has a correct value cannot be performed in this
1173 -- case (or the disriminant check may be optimized away!)
1174
1175 -- Is_Machine_Number (Flag11-Sem)
1176 -- This flag is set in an N_Real_Literal node to indicate that the value
1177 -- is a machine number. This avoids some unnecessary cases of converting
1178 -- real literals to machine numbers.
1179
1180 -- Is_Null_Loop (Flag16-Sem)
1181 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1182 -- can be determined to be null at compile time. This is used to suppress
1183 -- any warnings that would otherwise be issued inside the loop since they
1184 -- are probably not useful.
1185
1186 -- Is_Overloaded (Flag5-Sem)
1187 -- A flag present in all expression nodes. Used temporarily during
1188 -- overloading determination. The setting of this flag is not relevant
1189 -- once overloading analysis is complete.
1190
1191 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1192 -- A flag present only in N_Op_Expon nodes. It is set when the
1193 -- exponentiation is of the forma 2 ** N, where the type of N is an
1194 -- unsigned integral subtype whose size does not exceed the size of
1195 -- Standard_Integer (i.e. a type that can be safely converted to
1196 -- Natural), and the exponentiation appears as the right operand of an
1197 -- integer multiplication or an integer division where the dividend is
1198 -- unsigned. It is also required that overflow checking is off for both
1199 -- the exponentiation and the multiply/divide node. If this set of
1200 -- conditions holds, and the flag is set, then the division or
1201 -- multiplication can be (and is) converted to a shift.
1202
1203 -- Is_Overloaded (Flag5-Sem)
1204 -- A flag present in all expression nodes. Used temporarily during
1205 -- overloading determination. The setting of this flag is not relevant
1206 -- once overloading analysis is complete.
1207
1208 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1209 -- A flag set in a Subprogram_Body block to indicate that it is the
1210 -- implemenation of a protected subprogram. Such a body needs cleanup
1211 -- handler to make sure that the associated protected object is unlocked
1212 -- when the subprogram completes.
1213
1214 -- Is_Static_Expression (Flag6-Sem)
1215 -- Indicates that an expression is a static expression (RM 4.9). See spec
1216 -- of package Sem_Eval for full details on the use of this flag.
1217
1218 -- Is_Subprogram_Descriptor (Flag16-Sem)
1219 -- Present in N_Object_Declaration, and set only for the object
1220 -- declaration generated for a subprogram descriptor in fast exception
1221 -- mode. See Exp_Ch11 for details of use.
1222
1223 -- Is_Task_Allocation_Block (Flag6-Sem)
1224 -- A flag set in a Block_Statement node to indicate that it is the
1225 -- expansion of a task allocator, or the allocator of an object
1226 -- containing tasks. Such a block requires a cleanup handler to call
1227 -- Expunge_Unactivted_Tasks to complete any tasks that have been
1228 -- allocated but not activated when the allocator completes abnormally.
1229
1230 -- Is_Task_Master (Flag5-Sem)
1231 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1232 -- indicate that the construct is a task master (i.e. has declared tasks
1233 -- or declares an access to a task type).
1234
1235 -- Itype (Node1-Sem)
1236 -- Used in N_Itype_Reference node to reference an itype for which it is
1237 -- important to ensure that it is defined. See description of this node
1238 -- for further details.
1239
1240 -- Kill_Range_Check (Flag11-Sem)
1241 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1242 -- result should not be subjected to range checks. This is used for the
1243 -- implementation of Normalize_Scalars.
1244
1245 -- Label_Construct (Node2-Sem)
1246 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1247 -- N_Block_Statement or N_Loop_Statement node to which the label
1248 -- declaration applies. This is not currently used in the compiler
1249 -- itself, but it is useful in the implementation of ASIS queries.
1250 -- This field is left empty for the special labels generated as part
1251 -- of expanding raise statements with a local exception handler.
1252
1253 -- Library_Unit (Node4-Sem)
1254 -- In a stub node, Library_Unit points to the compilation unit node of
1255 -- the corresponding subunit.
1256 --
1257 -- In a with clause node, Library_Unit points to the spec of the with'ed
1258 -- unit.
1259 --
1260 -- In a compilation unit node, the usage depends on the unit type:
1261 --
1262 -- For a subprogram body, Library_Unit points to the compilation unit
1263 -- node of the corresponding spec, unless Acts_As_Spec is set, in which
1264 -- case it points to itself.
1265 --
1266 -- For a package body, Library_Unit points to the compilation unit of
1267 -- the corresponding package spec.
1268 --
1269 -- For a subprogram spec to which pragma Inline applies, Library_Unit
1270 -- points to the compilation unit node of the corresponding body, if
1271 -- inlining is active.
1272 --
1273 -- For a generic declaration, Library_Unit points to the compilation
1274 -- unit node of the corresponding generic body.
1275 --
1276 -- For a subunit, Library_Unit points to the compilation unit node of
1277 -- the parent body.
1278 --
1279 -- Note that this field is not used to hold the parent pointer for child
1280 -- unit (which might in any case need to use it for some other purpose as
1281 -- described above). Instead for a child unit, implicit with's are
1282 -- generated for all parents.
1283
1284 -- Loop_Actions (List2-Sem)
1285 -- A list present in Component_Association nodes in array aggregates.
1286 -- Used to collect actions that must be executed within the loop because
1287 -- they may need to be evaluated anew each time through.
1288
1289 -- Limited_View_Installed (Flag18-Sem)
1290 -- Present in With_Clauses and in package specifications. If set on
1291 -- with_clause, it indicates that this clause has created the current
1292 -- limited view of the designated package. On a package specification, it
1293 -- indicates that the limited view has already been created because the
1294 -- package is mentioned in a limited_with_clause in the closure of the
1295 -- unit being compiled.
1296
1297 -- Local_Raise_Not_OK (Flag7-Sem)
1298 -- Present in N_Exception_Handler nodes. Set if the handler contains
1299 -- a construct (reraise statement, or call to subprogram in package
1300 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1301 -- for a local raise (one that could otherwise be converted to a goto).
1302
1303 -- Must_Be_Byte_Aligned (Flag14-Sem)
1304 -- This flag is present in N_Attribute_Reference nodes. It can be set
1305 -- only for the Address and Unrestricted_Access attributes. If set it
1306 -- means that the object for which the address/access is given must be on
1307 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1308 -- of the object is to be made before taking the address (this copy is in
1309 -- the current scope on the stack frame). This is used for certain cases
1310 -- of code generated by the expander that passes parameters by address.
1311 --
1312 -- The reason the copy is not made by the front end is that the back end
1313 -- has more information about type layout and may be able to (but is not
1314 -- guaranteed to) prevent making unnecessary copies.
1315
1316 -- Must_Not_Freeze (Flag8-Sem)
1317 -- A flag present in all expression nodes. Normally expressions cause
1318 -- freezing as described in the RM. If this flag is set, then this is
1319 -- inhibited. This is used by the analyzer and expander to label nodes
1320 -- that are created by semantic analysis or expansion and which must not
1321 -- cause freezing even though they normally would. This flag is also
1322 -- present in an N_Subtype_Indication node, since we also use these in
1323 -- calls to Freeze_Expression.
1324
1325 -- Next_Entity (Node2-Sem)
1326 -- Present in defining identifiers, defining character literals and
1327 -- defining operator symbols (i.e. in all entities). The entities of a
1328 -- scope are chained, and this field is used as the forward pointer for
1329 -- this list. See Einfo for further details.
1330
1331 -- Next_Named_Actual (Node4-Sem)
1332 -- Present in parameter association node. Set during semantic analysis to
1333 -- point to the next named parameter, where parameters are ordered by
1334 -- declaration order (as opposed to the actual order in the call, which
1335 -- may be different due to named associations). Not that this field
1336 -- points to the explicit actual parameter itself, not to the
1337 -- N_Parameter_Association node (its parent).
1338
1339 -- Next_Rep_Item (Node5-Sem)
1340 -- Present in pragma nodes and attribute definition nodes. Used to link
1341 -- representation items that apply to an entity. See description of
1342 -- First_Rep_Item field in Einfo for full details.
1343
1344 -- Next_Use_Clause (Node3-Sem)
1345 -- While use clauses are active during semantic processing, they are
1346 -- chained from the scope stack entry, using Next_Use_Clause as a link
1347 -- pointer, with Empty marking the end of the list. The head pointer is
1348 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1349 -- processing (i.e. when Gigi sees the tree, the contents of this field
1350 -- is undefined and should not be read).
1351
1352 -- No_Ctrl_Actions (Flag7-Sem)
1353 -- Present in N_Assignment_Statement to indicate that no finalize nor nor
1354 -- adjust should take place on this assignment eventhough the rhs is
1355 -- controlled. This is used in init procs and aggregate expansions where
1356 -- the generated assignments are more initialisations than real
1357 -- assignments.
1358
1359 -- No_Elaboration_Check (Flag14-Sem)
1360 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1361 -- that no elaboration check is needed on the call, because it appears in
1362 -- the context of a local Suppress pragma. This is used on calls within
1363 -- task bodies, where the actual elaboration checks are applied after
1364 -- analysis, when the local scope stack is not present.
1365
1366 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1367 -- Present in N_With_Clause nodes. Set if the with clause is on the
1368 -- package or subprogram spec where the main unit is the corresponding
1369 -- body, and no entities of the with'ed unit are referenced by the spec
1370 -- (an entity may still be referenced in the body, so this flag is used
1371 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1372 -- full details)
1373
1374 -- No_Initialization (Flag13-Sem)
1375 -- Present in N_Object_Declaration & N_Allocator to indicate that the
1376 -- object must not be initialized (by Initialize or call to an init
1377 -- proc). This is needed for controlled aggregates. When the Object
1378 -- declaration has an expression, this flag means that this expression
1379 -- should not be taken into account (needed for in place initialization
1380 -- with aggregates)
1381
1382 -- No_Truncation (Flag17-Sem)
1383 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1384 -- only if the RM_Size of the source is greater than the RM_Size of the
1385 -- target for scalar operands. Normally in such a case we truncate some
1386 -- higher order bits of the source, and then sign/zero extend the result
1387 -- to form the output value. But if this flag is set, then we do not do
1388 -- any truncation, so for example, if an 8 bit input is converted to 5
1389 -- bit result which is in fact stored in 8 bits, then the high order
1390 -- three bits of the target result will be copied from the source. This
1391 -- is used for properly setting out of range values for use by pragmas
1392 -- Initialize_Scalars and Normalize_Scalars.
1393
1394 -- Original_Discriminant (Node2-Sem)
1395 -- Present in identifiers. Used in references to discriminants that
1396 -- appear in generic units. Because the names of the discriminants may be
1397 -- different in an instance, we use this field to recover the position of
1398 -- the discriminant in the original type, and replace it with the
1399 -- discriminant at the same position in the instantiated type.
1400
1401 -- Original_Entity (Node2-Sem)
1402 -- Present in numeric literals. Used to denote the named number that has
1403 -- been constant-folded into the given literal. If literal is from
1404 -- source, or the result of some other constant-folding operation, then
1405 -- Original_Entity is empty. This field is needed to handle properly
1406 -- named numbers in generic units, where the Associated_Node field
1407 -- interferes with the Entity field, making it impossible to preserve the
1408 -- original entity at the point of instantiation (ASIS problem).
1409
1410 -- Others_Discrete_Choices (List1-Sem)
1411 -- When a case statement or variant is analyzed, the semantic checks
1412 -- determine the actual list of choices that correspond to an others
1413 -- choice. This list is materialized for later use by the expander and
1414 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1415 -- this materialized list of choices, which is in standard format for a
1416 -- list of discrete choices, except that of course it cannot contain an
1417 -- N_Others_Choice entry.
1418
1419 -- Parameter_List_Truncated (Flag17-Sem)
1420 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1421 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1422 -- a result of a First_Optional_Parameter specification in an
1423 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1424 -- The truncation is done by the expander by removing trailing parameters
1425 -- from the argument list, in accordance with the set of rules allowing
1426 -- such parameter removal. In particular, parameters can be removed
1427 -- working from the end of the parameter list backwards up to and
1428 -- including the entry designated by First_Optional_Parameter in the
1429 -- Import pragma. Parameters can be removed if they are implicit and the
1430 -- default value is a known-at-compile-time value, including the use of
1431 -- the Null_Parameter attribute, or if explicit parameter values are
1432 -- present that match the corresponding defaults.
1433
1434 -- Parent_Spec (Node4-Sem)
1435 -- For a library unit that is a child unit spec (package or subprogram
1436 -- declaration, generic declaration or instantiation, or library level
1437 -- rename, this field points to the compilation unit node for the parent
1438 -- package specification. This field is Empty for library bodies (the
1439 -- parent spec in this case can be found from the corresponding spec).
1440
1441 -- Present_Expr (Uint3-Sem)
1442 -- Present in an N_Variant node. This has a meaningful value only after
1443 -- Gigi has back annotated the tree with representation information. At
1444 -- this point, it contains a reference to a gcc expression that depends
1445 -- on the values of one or more discriminants. Give a set of discriminant
1446 -- values, this expression evaluates to False (zero) if variant is not
1447 -- present, and True (non-zero) if it is present. See unit Repinfo for
1448 -- further details on gigi back annotation. This field is used during
1449 -- ASIS processing (data decomposition annex) to determine if a field is
1450 -- present or not.
1451
1452 -- Print_In_Hex (Flag13-Sem)
1453 -- Set on an N_Integer_Literal node to indicate that the value should be
1454 -- printed in hexadecimal in the sprint listing. Has no effect on
1455 -- legality or semantics of program, only on the displayed output. This
1456 -- is used to clarify output from the packed array cases.
1457
1458 -- Procedure_To_Call (Node2-Sem)
1459 -- Present in N_Allocator, N_Free_Statement, N_Return_Statement,
1460 -- and N_Extended_Return_Statement nodes. References the entity for the
1461 -- declaration of the procedure to be called to accomplish the required
1462 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1463 -- and N_Return_Statement and N_Extended_Return_Statement (for
1464 -- allocating the return value), and for the Deallocate procedure in the
1465 -- case of N_Free_Statement.
1466
1467 -- Raises_Constraint_Error (Flag7-Sem)
1468 -- Set on an expression whose evaluation will definitely fail constraint
1469 -- error check. In the case of static expressions, this flag must be set
1470 -- accurately (and if it is set, the expression is typically illegal
1471 -- unless it appears as a non-elaborated branch of a short-circuit form).
1472 -- For a non-static expression, this flag may be set whenever an
1473 -- expression (e.g. an aggregate) is known to raise constraint error. If
1474 -- set, the expression definitely will raise CE if elaborated at runtime.
1475 -- If not set, the expression may or may not raise CE. In other words, on
1476 -- static expressions, the flag is set accurately, on non-static
1477 -- expressions it is set conservatively.
1478
1479 -- Redundant_Use (Flag13-Sem)
1480 -- Present in nodes that can appear as an operand in a use clause or use
1481 -- type clause (identifiers, expanded names, attribute references). Set
1482 -- to indicate that a use is redundant (and therefore need not be undone
1483 -- on scope exit).
1484
1485 -- Return_Statement_Entity (Node5-Sem)
1486 -- Present in N_Return_Statement and N_Extended_Return_Statement.
1487 -- Points to an E_Return_Statement representing the return statement.
1488
1489 -- Return_Object_Declarations (List3)
1490 -- Present in N_Extended_Return_Statement.
1491 -- Points to a list initially containing a single
1492 -- N_Object_Declaration representing the return object.
1493 -- We use a list (instead of just a pointer to the object decl)
1494 -- because Analyze wants to insert extra actions on this list.
1495
1496 -- Rounded_Result (Flag18-Sem)
1497 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1498 -- Used in the fixed-point cases to indicate that the result must be
1499 -- rounded as a result of the use of the 'Round attribute. Also used for
1500 -- integer N_Op_Divide nodes to indicate that the result should be
1501 -- rounded to the nearest integer (breaking ties away from zero), rather
1502 -- than truncated towards zero as usual. These rounded integer operations
1503 -- are the result of expansion of rounded fixed-point divide, conversion
1504 -- and multiplication operations.
1505
1506 -- Scope (Node3-Sem)
1507 -- Present in defining identifiers, defining character literals and
1508 -- defining operator symbols (i.e. in all entities). The entities of a
1509 -- scope all use this field to reference the corresponding scope entity.
1510 -- See Einfo for further details.
1511
1512 -- Shift_Count_OK (Flag4-Sem)
1513 -- A flag present in shift nodes to indicate that the shift count is
1514 -- known to be in range, i.e. is in the range from zero to word length
1515 -- minus one. If this flag is not set, then the shift count may be
1516 -- outside this range, i.e. larger than the word length, and the code
1517 -- must ensure that such shift counts give the appropriate result.
1518
1519 -- Source_Type (Node1-Sem)
1520 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1521 -- source type entity for the unchecked conversion instantiation
1522 -- which gigi must do size validation for.
1523
1524 -- Static_Processing_OK (Flag4-Sem)
1525 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1526 -- flag is set, the full value of the aggregate can be determined at
1527 -- compile time and the aggregate can be passed as is to the back-end.
1528 -- In this event it is irrelevant whether this flag is set or not.
1529 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1530 -- Static_Processing_OK is set, the aggregate can (but need not) be
1531 -- converted into a compile time known aggregate by the expander. See
1532 -- Sem_Aggr for the specific conditions under which an aggregate has its
1533 -- Static_Processing_OK flag set.
1534
1535 -- Storage_Pool (Node1-Sem)
1536 -- Present in N_Allocator, N_Free_Statement, N_Return_Statement, and
1537 -- N_Extended_Return_Statement nodes. References the entity for the
1538 -- storage pool to be used for the allocate or free call or for the
1539 -- allocation of the returned value from function. Empty indicates that
1540 -- the global default default pool is to be used. Note that in the case
1541 -- of a return statement, this field is set only if the function returns
1542 -- value of a type whose size is not known at compile time on the
1543 -- secondary stack.
1544
1545 -- Target_Type (Node2-Sem)
1546 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1547 -- type entity for the unchecked conversion instantiation which gigi must
1548 -- do size validation for.
1549
1550 -- Then_Actions (List3-Sem)
1551 -- This field is present in conditional expression nodes. During code
1552 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1553 -- actions at an appropriate place in the tree to get elaborated at the
1554 -- right time. For conditional expressions, we have to be sure that the
1555 -- actions for the Then branch are only elaborated if the condition is
1556 -- True. The Then_Actions field is used as a temporary parking place for
1557 -- these actions. The final tree is always rewritten to eliminate the
1558 -- need for this field, so in the tree passed to Gigi, this field is
1559 -- always set to No_List.
1560
1561 -- Treat_Fixed_As_Integer (Flag14-Sem)
1562 -- This flag appears in operator nodes for divide, multiply, mod and rem
1563 -- on fixed-point operands. It indicates that the operands are to be
1564 -- treated as integer values, ignoring small values. This flag is only
1565 -- set as a result of expansion of fixed-point operations. Typically a
1566 -- fixed-point multplication in the source generates subsidiary
1567 -- multiplication and division operations that work with the underlying
1568 -- integer values and have this flag set. Note that this flag is not
1569 -- needed on other arithmetic operations (add, neg, subtract etc) since
1570 -- in these cases it is always the case that fixed is treated as integer.
1571 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1572 -- leave such nodes alone, and whoever makes them must set the correct
1573 -- Etype value.
1574
1575 -- TSS_Elist (Elist3-Sem)
1576 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1577 -- entries for each TSS (type support subprogram) associated with the
1578 -- frozen type. The elements of the list are the entities for the
1579 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1580 -- if there are no type support subprograms for the type or if the freeze
1581 -- node is not for a type.
1582
1583 -- Unreferenced_In_Spec (Flag7-Sem)
1584 -- Present in N_With_Clause nodes. Set if the with clause is on the
1585 -- package or subprogram spec where the main unit is the corresponding
1586 -- body, and is not referenced by the spec (it may still be referenced by
1587 -- the body, so this flag is used to generate the proper message (see
1588 -- Sem_Util.Check_Unused_Withs for details)
1589
1590 -- Was_Originally_Stub (Flag13-Sem)
1591 -- This flag is set in the node for a proper body that replaces stub.
1592 -- During the analysis procedure, stubs in some situations get rewritten
1593 -- by the corresponding bodies, and we set this flag to remember that
1594 -- this happened. Note that it is not good enough to rely on the use of
1595 -- Original_Node here because of the case of nested instantiations where
1596 -- the substituted node can be copied.
1597
1598 -- Zero_Cost_Handling (Flag5-Sem)
1599 -- This flag is set in all handled sequence of statement and exception
1600 -- handler nodes if eceptions are to be handled using the zero-cost
1601 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1602 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1603 -- to do for such a handler is simply to put the code in the handler
1604 -- somewhere. The front end has generated all necessary labels.
1605
1606 --------------------------------------------------
1607 -- Note on Use of End_Label and End_Span Fields --
1608 --------------------------------------------------
1609
1610 -- Several constructs have end lines:
1611
1612 -- Loop Statement end loop [loop_IDENTIFIER];
1613 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1614 -- Task Definition end [task_IDENTIFIER]
1615 -- Protected Definition end [protected_IDENTIFIER]
1616 -- Protected Body end [protected_IDENTIFIER]
1617
1618 -- Block Statement end [block_IDENTIFIER];
1619 -- Subprogram Body end [DESIGNATOR];
1620 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1621 -- Task Body end [task_IDENTIFIER];
1622 -- Accept Statement end [entry_IDENTIFIER]];
1623 -- Entry Body end [entry_IDENTIFIER];
1624
1625 -- If Statement end if;
1626 -- Case Statement end case;
1627
1628 -- Record Definition end record;
1629 -- Enumeration Definition );
1630
1631 -- The End_Label and End_Span fields are used to mark the locations of
1632 -- these lines, and also keep track of the label in the case where a label
1633 -- is present.
1634
1635 -- For the first group above, the End_Label field of the corresponding node
1636 -- is used to point to the label identifier. In the case where there is no
1637 -- label in the source, the parser supplies a dummy identifier (with
1638 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1639 -- marks the location of the token following the END token.
1640
1641 -- For the second group, the use of End_Label is similar, but the End_Label
1642 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1643 -- simply because in some cases there is no room in the parent node.
1644
1645 -- For the third group, there is never any label, and instead of using
1646 -- End_Label, we use the End_Span field which gives the location of the
1647 -- token following END, relative to the starting Sloc of the construct,
1648 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1649 -- following the End_Label.
1650
1651 -- The record definition case is handled specially, we treat it as though
1652 -- it required an optional label which is never present, and so the parser
1653 -- always builds a dummy identifier with Comes From Source set False. The
1654 -- reason we do this, rather than using End_Span in this case, is that we
1655 -- want to generate a cross-ref entry for the end of a record, since it
1656 -- represents a scope for name declaration purposes.
1657
1658 -- The enumeration definition case is handled in an exactly similar manner,
1659 -- building a dummy identifier to get a cross-reference.
1660
1661 -- Note: the reason we store the difference as a Uint, instead of storing
1662 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1663 -- distinguished from other types of values, and we count on all general
1664 -- use fields being self describing. To make things easier for clients,
1665 -- note that we provide function End_Location, and procedure
1666 -- Set_End_Location to allow access to the logical value (which is the
1667 -- Source_Ptr value for the end token).
1668
1669 ---------------------
1670 -- Syntactic Nodes --
1671 ---------------------
1672
1673 ---------------------
1674 -- 2.3 Identifier --
1675 ---------------------
1676
1677 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1678 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1679
1680 -- An IDENTIFIER shall not be a reserved word
1681
1682 -- In the Ada grammar identifiers are the bottom level tokens which have
1683 -- very few semantics. Actual program identifiers are direct names. If
1684 -- we were being 100% honest with the grammar, then we would have a node
1685 -- called N_Direct_Name which would point to an identifier. However,
1686 -- that's too many extra nodes, so we just use the N_Identifier node
1687 -- directly as a direct name, and it contains the expression fields and
1688 -- Entity field that correspond to its use as a direct name. In those
1689 -- few cases where identifiers appear in contexts where they are not
1690 -- direct names (pragmas, pragma argument associations, attribute
1691 -- references and attribute definition clauses), the Chars field of the
1692 -- node contains the Name_Id for the identifier name.
1693
1694 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1695 -- cases. First, an incorrect use of a reserved word as an identifier is
1696 -- diagnosed and then treated as a normal identifier. Second, an
1697 -- attribute designator of the form of a reserved word (access, delta,
1698 -- digits, range) is treated as an identifier.
1699
1700 -- Note: The set of letters that is permitted in an identifier depends
1701 -- on the character set in use. See package Csets for full details.
1702
1703 -- N_Identifier
1704 -- Sloc points to identifier
1705 -- Chars (Name1) contains the Name_Id for the identifier
1706 -- Entity (Node4-Sem)
1707 -- Associated_Node (Node4-Sem)
1708 -- Original_Discriminant (Node2-Sem)
1709 -- Redundant_Use (Flag13-Sem)
1710 -- Has_Private_View (Flag11-Sem) (set in generic units)
1711 -- plus fields for expression
1712
1713 --------------------------
1714 -- 2.4 Numeric Literal --
1715 --------------------------
1716
1717 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1718
1719 ----------------------------
1720 -- 2.4.1 Decimal Literal --
1721 ----------------------------
1722
1723 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1724
1725 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1726
1727 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1728
1729 -- Decimal literals appear in the tree as either integer literal nodes
1730 -- or real literal nodes, depending on whether a period is present.
1731
1732 -- Note: literal nodes appear as a result of direct use of literals
1733 -- in the source program, and also as the result of evaluating
1734 -- expressions at compile time. In the latter case, it is possible
1735 -- to construct real literals that have no syntactic representation
1736 -- using the standard literal format. Such literals are listed by
1737 -- Sprint using the notation [numerator / denominator].
1738
1739 -- Note: the value of an integer literal node created by the front end
1740 -- is never outside the range of values of the base type. However, it
1741 -- can be the case that the value is outside the range of the
1742 -- particular subtype. This happens in the case of integer overflows
1743 -- with checks suppressed.
1744
1745 -- N_Integer_Literal
1746 -- Sloc points to literal
1747 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1748 -- has been constant-folded into its literal value.
1749 -- Intval (Uint3) contains integer value of literal
1750 -- plus fields for expression
1751 -- Print_In_Hex (Flag13-Sem)
1752
1753 -- N_Real_Literal
1754 -- Sloc points to literal
1755 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1756 -- has been constant-folded into its literal value.
1757 -- Realval (Ureal3) contains real value of literal
1758 -- Corresponding_Integer_Value (Uint4-Sem)
1759 -- Is_Machine_Number (Flag11-Sem)
1760 -- plus fields for expression
1761
1762 --------------------------
1763 -- 2.4.2 Based Literal --
1764 --------------------------
1765
1766 -- BASED_LITERAL ::=
1767 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1768
1769 -- BASE ::= NUMERAL
1770
1771 -- BASED_NUMERAL ::=
1772 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1773
1774 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1775
1776 -- Based literals appear in the tree as either integer literal nodes
1777 -- or real literal nodes, depending on whether a period is present.
1778
1779 ----------------------------
1780 -- 2.5 Character Literal --
1781 ----------------------------
1782
1783 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
1784
1785 -- N_Character_Literal
1786 -- Sloc points to literal
1787 -- Chars (Name1) contains the Name_Id for the identifier
1788 -- Char_Literal_Value (Uint2) contains the literal value
1789 -- Entity (Node4-Sem)
1790 -- Associated_Node (Node4-Sem)
1791 -- Has_Private_View (Flag11-Sem) set in generic units.
1792 -- plus fields for expression
1793
1794 -- Note: the Entity field will be missing (set to Empty) for character
1795 -- literals whose type is Standard.Wide_Character or Standard.Character
1796 -- or a type derived from one of these two. In this case the character
1797 -- literal stands for its own coding. The reason we take this irregular
1798 -- short cut is to avoid the need to build lots of junk defining
1799 -- character literal nodes.
1800
1801 -------------------------
1802 -- 2.6 String Literal --
1803 -------------------------
1804
1805 -- STRING LITERAL ::= "{STRING_ELEMENT}"
1806
1807 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
1808 -- single GRAPHIC_CHARACTER other than a quotation mark.
1809
1810 -- N_String_Literal
1811 -- Sloc points to literal
1812 -- Strval (Str3) contains Id of string value
1813 -- Has_Wide_Character (Flag11-Sem)
1814 -- plus fields for expression
1815
1816 ------------------
1817 -- 2.7 Comment --
1818 ------------------
1819
1820 -- A COMMENT starts with two adjacent hyphens and extends up to the
1821 -- end of the line. A COMMENT may appear on any line of a program.
1822
1823 -- Comments are skipped by the scanner and do not appear in the tree.
1824 -- It is possible to reconstruct the position of comments with respect
1825 -- to the elements of the tree by using the source position (Sloc)
1826 -- pointers that appear in every tree node.
1827
1828 -----------------
1829 -- 2.8 Pragma --
1830 -----------------
1831
1832 -- PRAGMA ::= pragma IDENTIFIER
1833 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
1834
1835 -- Note that a pragma may appear in the tree anywhere a declaration
1836 -- or a statement may appear, as well as in some other situations
1837 -- which are explicitly documented.
1838
1839 -- N_Pragma
1840 -- Sloc points to PRAGMA
1841 -- Chars (Name1) identifier name from pragma identifier
1842 -- Pragma_Argument_Associations (List2) (set to No_List if none)
1843 -- Debug_Statement (Node3) (set to Empty if not Debug, Assert)
1844 -- Next_Rep_Item (Node5-Sem)
1845
1846 -- Note: we should have a section on what pragmas are passed on to
1847 -- the back end to be processed. This section should note that pragma
1848 -- Psect_Object is always converted to Common_Object, but there are
1849 -- undoubtedly many other similar notes required ???
1850
1851 --------------------------------------
1852 -- 2.8 Pragma Argument Association --
1853 --------------------------------------
1854
1855 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
1856 -- [pragma_argument_IDENTIFIER =>] NAME
1857 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
1858
1859 -- N_Pragma_Argument_Association
1860 -- Sloc points to first token in association
1861 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
1862 -- Expression (Node3)
1863
1864 ------------------------
1865 -- 2.9 Reserved Word --
1866 ------------------------
1867
1868 -- Reserved words are parsed by the scanner, and returned as the
1869 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
1870
1871 ----------------------------
1872 -- 3.1 Basic Declaration --
1873 ----------------------------
1874
1875 -- BASIC_DECLARATION ::=
1876 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
1877 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
1878 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
1879 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
1880 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
1881 -- | GENERIC_INSTANTIATION
1882
1883 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
1884 -- see further description in section on semantic nodes.
1885
1886 -- Also, in the tree that is constructed, a pragma may appear
1887 -- anywhere that a declaration may appear.
1888
1889 ------------------------------
1890 -- 3.1 Defining Identifier --
1891 ------------------------------
1892
1893 -- DEFINING_IDENTIFIER ::= IDENTIFIER
1894
1895 -- A defining identifier is an entity, which has additional fields
1896 -- depending on the setting of the Ekind field. These additional
1897 -- fields are defined (and access subprograms declared) in package
1898 -- Einfo.
1899
1900 -- Note: N_Defining_Identifier is an extended node whose fields are
1901 -- deliberate layed out to match the layout of fields in an ordinary
1902 -- N_Identifier node allowing for easy alteration of an identifier
1903 -- node into a defining identifier node. For details, see procedure
1904 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
1905
1906 -- N_Defining_Identifier
1907 -- Sloc points to identifier
1908 -- Chars (Name1) contains the Name_Id for the identifier
1909 -- Next_Entity (Node2-Sem)
1910 -- Scope (Node3-Sem)
1911 -- Etype (Node5-Sem)
1912
1913 -----------------------------
1914 -- 3.2.1 Type Declaration --
1915 -----------------------------
1916
1917 -- TYPE_DECLARATION ::=
1918 -- FULL_TYPE_DECLARATION
1919 -- | INCOMPLETE_TYPE_DECLARATION
1920 -- | PRIVATE_TYPE_DECLARATION
1921 -- | PRIVATE_EXTENSION_DECLARATION
1922
1923 ----------------------------------
1924 -- 3.2.1 Full Type Declaration --
1925 ----------------------------------
1926
1927 -- FULL_TYPE_DECLARATION ::=
1928 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
1929 -- is TYPE_DEFINITION;
1930 -- | TASK_TYPE_DECLARATION
1931 -- | PROTECTED_TYPE_DECLARATION
1932
1933 -- The full type declaration node is used only for the first case. The
1934 -- second case (concurrent type declaration), is represented directly
1935 -- by a task type declaration or a protected type declaration.
1936
1937 -- N_Full_Type_Declaration
1938 -- Sloc points to TYPE
1939 -- Defining_Identifier (Node1)
1940 -- Discriminant_Specifications (List4) (set to No_List if none)
1941 -- Type_Definition (Node3)
1942 -- Discr_Check_Funcs_Built (Flag11-Sem)
1943
1944 ----------------------------
1945 -- 3.2.1 Type Definition --
1946 ----------------------------
1947
1948 -- TYPE_DEFINITION ::=
1949 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
1950 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
1951 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
1952 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
1953
1954 --------------------------------
1955 -- 3.2.2 Subtype Declaration --
1956 --------------------------------
1957
1958 -- SUBTYPE_DECLARATION ::=
1959 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
1960
1961 -- The subtype indication field is set to Empty for subtypes
1962 -- declared in package Standard (Positive, Natural).
1963
1964 -- N_Subtype_Declaration
1965 -- Sloc points to SUBTYPE
1966 -- Defining_Identifier (Node1)
1967 -- Null_Exclusion_Present (Flag11)
1968 -- Subtype_Indication (Node5)
1969 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
1970 -- Exception_Junk (Flag7-Sem)
1971
1972 -------------------------------
1973 -- 3.2.2 Subtype Indication --
1974 -------------------------------
1975
1976 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
1977
1978 -- Note: if no constraint is present, the subtype indication appears
1979 -- directly in the tree as a subtype mark. The N_Subtype_Indication
1980 -- node is used only if a constraint is present.
1981
1982 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
1983 -- with the null-exclusion part (see AI-231), we had to introduce a new
1984 -- attribute in all the parents of subtype_indication nodes to indicate
1985 -- if the null-exclusion is present.
1986
1987 -- Note: the reason that this node has expression fields is that a
1988 -- subtype indication can appear as an operand of a membership test.
1989
1990 -- N_Subtype_Indication
1991 -- Sloc points to first token of subtype mark
1992 -- Subtype_Mark (Node4)
1993 -- Constraint (Node3)
1994 -- Etype (Node5-Sem)
1995 -- Must_Not_Freeze (Flag8-Sem)
1996
1997 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
1998 -- reason for this redundancy is so that in a list of array index types,
1999 -- the Etype can be uniformly accessed to determine the subscript type.
2000 -- This means that no Itype is constructed for the actual subtype that
2001 -- is created by the subtype indication. If such an Itype is required,
2002 -- it is constructed in the context in which the indication appears.
2003
2004 -------------------------
2005 -- 3.2.2 Subtype Mark --
2006 -------------------------
2007
2008 -- SUBTYPE_MARK ::= subtype_NAME
2009
2010 -----------------------
2011 -- 3.2.2 Constraint --
2012 -----------------------
2013
2014 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2015
2016 ------------------------------
2017 -- 3.2.2 Scalar Constraint --
2018 ------------------------------
2019
2020 -- SCALAR_CONSTRAINT ::=
2021 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2022
2023 ---------------------------------
2024 -- 3.2.2 Composite Constraint --
2025 ---------------------------------
2026
2027 -- COMPOSITE_CONSTRAINT ::=
2028 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2029
2030 -------------------------------
2031 -- 3.3.1 Object Declaration --
2032 -------------------------------
2033
2034 -- OBJECT_DECLARATION ::=
2035 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2036 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION];
2037 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2038 -- ACCESS_DEFINITION [:= EXPRESSION];
2039 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2040 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION];
2041 -- | SINGLE_TASK_DECLARATION
2042 -- | SINGLE_PROTECTED_DECLARATION
2043
2044 -- Note: aliased is not permitted in Ada 83 mode
2045
2046 -- The N_Object_Declaration node is only for the first two cases.
2047 -- Single task declaration is handled by P_Task (9.1)
2048 -- Single protected declaration is handled by P_protected (9.5)
2049
2050 -- Although the syntax allows multiple identifiers in the list, the
2051 -- semantics is as though successive declarations were given with
2052 -- identical type definition and expression components. To simplify
2053 -- semantic processing, the parser represents a multiple declaration
2054 -- case as a sequence of single declarations, using the More_Ids and
2055 -- Prev_Ids flags to preserve the original source form as described
2056 -- in the section on "Handling of Defining Identifier Lists".
2057
2058 -- Note: if a range check is required for the initialization
2059 -- expression then the Do_Range_Check flag is set in the Expression,
2060 -- with the check being done against the type given by the object
2061 -- definition, which is also the Etype of the defining identifier.
2062
2063 -- Note: the contents of the Expression field must be ignored (i.e.
2064 -- treated as though it were Empty) if No_Initialization is set True.
2065
2066 -- Note: the back end places some restrictions on the form of the
2067 -- Expression field. If the object being declared is Atomic, then
2068 -- the Expression may not have the form of an aggregate (since this
2069 -- might cause the back end to generate separate assignments). It
2070 -- also cannot be a reference to an object marked as a true constant
2071 -- (Is_True_Constant flag set), where the object is itself initalized
2072 -- with an aggregate. If necessary the front end must generate an
2073 -- extra temporary (with Is_True_Constant set False), and initialize
2074 -- this temporary as required (the temporary itself is not atomic).
2075
2076 -- Note: there is not node kind for object definition. Instead, the
2077 -- corresponding field holds a subtype indication, an array type
2078 -- definition, or (Ada 2005, AI-406) an access definition.
2079
2080 -- N_Object_Declaration
2081 -- Sloc points to first identifier
2082 -- Defining_Identifier (Node1)
2083 -- Aliased_Present (Flag4) set if ALIASED appears
2084 -- Constant_Present (Flag17) set if CONSTANT appears
2085 -- Null_Exclusion_Present (Flag11)
2086 -- Object_Definition (Node4) subtype indic./array type def./ access def.
2087 -- Expression (Node3) (set to Empty if not present)
2088 -- Handler_List_Entry (Node2-Sem)
2089 -- Corresponding_Generic_Association (Node5-Sem)
2090 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2091 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2092 -- No_Initialization (Flag13-Sem)
2093 -- Assignment_OK (Flag15-Sem)
2094 -- Exception_Junk (Flag7-Sem)
2095 -- Delay_Finalize_Attach (Flag14-Sem)
2096 -- Is_Subprogram_Descriptor (Flag16-Sem)
2097
2098 -------------------------------------
2099 -- 3.3.1 Defining Identifier List --
2100 -------------------------------------
2101
2102 -- DEFINING_IDENTIFIER_LIST ::=
2103 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2104
2105 -------------------------------
2106 -- 3.3.2 Number Declaration --
2107 -------------------------------
2108
2109 -- NUMBER_DECLARATION ::=
2110 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2111
2112 -- Although the syntax allows multiple identifiers in the list, the
2113 -- semantics is as though successive declarations were given with
2114 -- identical expressions. To simplify semantic processing, the parser
2115 -- represents a multiple declaration case as a sequence of single
2116 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2117 -- the original source form as described in the section on "Handling
2118 -- of Defining Identifier Lists".
2119
2120 -- N_Number_Declaration
2121 -- Sloc points to first identifier
2122 -- Defining_Identifier (Node1)
2123 -- Expression (Node3)
2124 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2125 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2126
2127 ----------------------------------
2128 -- 3.4 Derived Type Definition --
2129 ----------------------------------
2130
2131 -- DERIVED_TYPE_DEFINITION ::=
2132 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2133 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2134
2135 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2136 -- in Ada 83 mode
2137
2138 -- Note: a record extension part is required if ABSTRACT is present
2139
2140 -- N_Derived_Type_Definition
2141 -- Sloc points to NEW
2142 -- Abstract_Present (Flag4)
2143 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2144 -- Subtype_Indication (Node5)
2145 -- Record_Extension_Part (Node3) (set to Empty if not present)
2146 -- Limited_Present (Flag17)
2147 -- Task_Present (Flag5) set in task interfaces
2148 -- Protected_Present (Flag6) set in protected interfaces
2149 -- Synchronized_Present (Flag7) set in interfaces
2150 -- Interface_List (List2) (set to No_List if none)
2151 -- Interface_Present (Flag16) set in abstract interfaces
2152
2153 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2154 -- Interface_List, and Interface_Present are used for abstract
2155 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2156
2157 ---------------------------
2158 -- 3.5 Range Constraint --
2159 ---------------------------
2160
2161 -- RANGE_CONSTRAINT ::= range RANGE
2162
2163 -- N_Range_Constraint
2164 -- Sloc points to RANGE
2165 -- Range_Expression (Node4)
2166
2167 ----------------
2168 -- 3.5 Range --
2169 ----------------
2170
2171 -- RANGE ::=
2172 -- RANGE_ATTRIBUTE_REFERENCE
2173 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2174
2175 -- Note: the case of a range given as a range attribute reference
2176 -- appears directly in the tree as an attribute reference.
2177
2178 -- Note: the field name for a reference to a range is Range_Expression
2179 -- rather than Range, because range is a reserved keyword in Ada!
2180
2181 -- Note: the reason that this node has expression fields is that a
2182 -- range can appear as an operand of a membership test. The Etype
2183 -- field is the type of the range (we do NOT construct an implicit
2184 -- subtype to represent the range exactly).
2185
2186 -- N_Range
2187 -- Sloc points to ..
2188 -- Low_Bound (Node1)
2189 -- High_Bound (Node2)
2190 -- Includes_Infinities (Flag11)
2191 -- plus fields for expression
2192
2193 -- Note: if the range appears in a context, such as a subtype
2194 -- declaration, where range checks are required on one or both of
2195 -- the expression fields, then type conversion nodes are inserted
2196 -- to represent the required checks.
2197
2198 ----------------------------------------
2199 -- 3.5.1 Enumeration Type Definition --
2200 ----------------------------------------
2201
2202 -- ENUMERATION_TYPE_DEFINITION ::=
2203 -- (ENUMERATION_LITERAL_SPECIFICATION
2204 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2205
2206 -- Note: the Literals field in the node described below is null for
2207 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2208 -- which special processing handles these types as special cases.
2209
2210 -- N_Enumeration_Type_Definition
2211 -- Sloc points to left parenthesis
2212 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2213 -- End_Label (Node4) (set to Empty if internally generated record)
2214
2215 ----------------------------------------------
2216 -- 3.5.1 Enumeration Literal Specification --
2217 ----------------------------------------------
2218
2219 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2220 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2221
2222 ---------------------------------------
2223 -- 3.5.1 Defining Character Literal --
2224 ---------------------------------------
2225
2226 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2227
2228 -- A defining character literal is an entity, which has additional
2229 -- fields depending on the setting of the Ekind field. These
2230 -- additional fields are defined (and access subprograms declared)
2231 -- in package Einfo.
2232
2233 -- Note: N_Defining_Character_Literal is an extended node whose fields
2234 -- are deliberate layed out to match the layout of fields in an ordinary
2235 -- N_Character_Literal node allowing for easy alteration of a character
2236 -- literal node into a defining character literal node. For details, see
2237 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2238
2239 -- N_Defining_Character_Literal
2240 -- Sloc points to literal
2241 -- Chars (Name1) contains the Name_Id for the identifier
2242 -- Next_Entity (Node2-Sem)
2243 -- Scope (Node3-Sem)
2244 -- Etype (Node5-Sem)
2245
2246 ------------------------------------
2247 -- 3.5.4 Integer Type Definition --
2248 ------------------------------------
2249
2250 -- Note: there is an error in this rule in the latest version of the
2251 -- grammar, so we have retained the old rule pending clarification.
2252
2253 -- INTEGER_TYPE_DEFINITION ::=
2254 -- SIGNED_INTEGER_TYPE_DEFINITION
2255 -- | MODULAR_TYPE_DEFINITION
2256
2257 -------------------------------------------
2258 -- 3.5.4 Signed Integer Type Definition --
2259 -------------------------------------------
2260
2261 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2262 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2263
2264 -- Note: the Low_Bound and High_Bound fields are set to Empty
2265 -- for integer types defined in package Standard.
2266
2267 -- N_Signed_Integer_Type_Definition
2268 -- Sloc points to RANGE
2269 -- Low_Bound (Node1)
2270 -- High_Bound (Node2)
2271
2272 ------------------------------------
2273 -- 3.5.4 Modular Type Definition --
2274 ------------------------------------
2275
2276 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2277
2278 -- N_Modular_Type_Definition
2279 -- Sloc points to MOD
2280 -- Expression (Node3)
2281
2282 ---------------------------------
2283 -- 3.5.6 Real Type Definition --
2284 ---------------------------------
2285
2286 -- REAL_TYPE_DEFINITION ::=
2287 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2288
2289 --------------------------------------
2290 -- 3.5.7 Floating Point Definition --
2291 --------------------------------------
2292
2293 -- FLOATING_POINT_DEFINITION ::=
2294 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2295
2296 -- Note: The Digits_Expression and Real_Range_Specifications fields
2297 -- are set to Empty for floating-point types declared in Standard.
2298
2299 -- N_Floating_Point_Definition
2300 -- Sloc points to DIGITS
2301 -- Digits_Expression (Node2)
2302 -- Real_Range_Specification (Node4) (set to Empty if not present)
2303
2304 -------------------------------------
2305 -- 3.5.7 Real Range Specification --
2306 -------------------------------------
2307
2308 -- REAL_RANGE_SPECIFICATION ::=
2309 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2310
2311 -- N_Real_Range_Specification
2312 -- Sloc points to RANGE
2313 -- Low_Bound (Node1)
2314 -- High_Bound (Node2)
2315
2316 -----------------------------------
2317 -- 3.5.9 Fixed Point Definition --
2318 -----------------------------------
2319
2320 -- FIXED_POINT_DEFINITION ::=
2321 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2322
2323 --------------------------------------------
2324 -- 3.5.9 Ordinary Fixed Point Definition --
2325 --------------------------------------------
2326
2327 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2328 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2329
2330 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2331
2332 -- N_Ordinary_Fixed_Point_Definition
2333 -- Sloc points to DELTA
2334 -- Delta_Expression (Node3)
2335 -- Real_Range_Specification (Node4)
2336
2337 -------------------------------------------
2338 -- 3.5.9 Decimal Fixed Point Definition --
2339 -------------------------------------------
2340
2341 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2342 -- delta static_EXPRESSION
2343 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2344
2345 -- Note: decimal types are not permitted in Ada 83 mode
2346
2347 -- N_Decimal_Fixed_Point_Definition
2348 -- Sloc points to DELTA
2349 -- Delta_Expression (Node3)
2350 -- Digits_Expression (Node2)
2351 -- Real_Range_Specification (Node4) (set to Empty if not present)
2352
2353 ------------------------------
2354 -- 3.5.9 Digits Constraint --
2355 ------------------------------
2356
2357 -- DIGITS_CONSTRAINT ::=
2358 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2359
2360 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2361 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2362
2363 -- N_Digits_Constraint
2364 -- Sloc points to DIGITS
2365 -- Digits_Expression (Node2)
2366 -- Range_Constraint (Node4) (set to Empty if not present)
2367
2368 --------------------------------
2369 -- 3.6 Array Type Definition --
2370 --------------------------------
2371
2372 -- ARRAY_TYPE_DEFINITION ::=
2373 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2374
2375 -----------------------------------------
2376 -- 3.6 Unconstrained Array Definition --
2377 -----------------------------------------
2378
2379 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2380 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2381 -- COMPONENT_DEFINITION
2382
2383 -- Note: dimensionality of array is indicated by number of entries in
2384 -- the Subtype_Marks list, which has one entry for each dimension.
2385
2386 -- N_Unconstrained_Array_Definition
2387 -- Sloc points to ARRAY
2388 -- Subtype_Marks (List2)
2389 -- Component_Definition (Node4)
2390
2391 -----------------------------------
2392 -- 3.6 Index Subtype Definition --
2393 -----------------------------------
2394
2395 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2396
2397 -- There is no explicit node in the tree for an index subtype
2398 -- definition since the N_Unconstrained_Array_Definition node
2399 -- incorporates the type marks which appear in this context.
2400
2401 ---------------------------------------
2402 -- 3.6 Constrained Array Definition --
2403 ---------------------------------------
2404
2405 -- CONSTRAINED_ARRAY_DEFINITION ::=
2406 -- array (DISCRETE_SUBTYPE_DEFINITION
2407 -- {, DISCRETE_SUBTYPE_DEFINITION})
2408 -- of COMPONENT_DEFINITION
2409
2410 -- Note: dimensionality of array is indicated by number of entries
2411 -- in the Discrete_Subtype_Definitions list, which has one entry
2412 -- for each dimension.
2413
2414 -- N_Constrained_Array_Definition
2415 -- Sloc points to ARRAY
2416 -- Discrete_Subtype_Definitions (List2)
2417 -- Component_Definition (Node4)
2418
2419 --------------------------------------
2420 -- 3.6 Discrete Subtype Definition --
2421 --------------------------------------
2422
2423 -- DISCRETE_SUBTYPE_DEFINITION ::=
2424 -- discrete_SUBTYPE_INDICATION | RANGE
2425
2426 -------------------------------
2427 -- 3.6 Component Definition --
2428 -------------------------------
2429
2430 -- COMPONENT_DEFINITION ::=
2431 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2432
2433 -- Note: although the syntax does not permit a component definition to
2434 -- be an anonymous array (and the parser will diagnose such an attempt
2435 -- with an appropriate message), it is possible for anonymous arrays
2436 -- to appear as component definitions. The semantics and back end handle
2437 -- this case properly, and the expander in fact generates such cases.
2438 -- Access_Definition is an optional field that gives support to
2439 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2440 -- Subtype_Indication field or else the Access_Definition field.
2441
2442 -- N_Component_Definition
2443 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2444 -- Aliased_Present (Flag4)
2445 -- Null_Exclusion_Present (Flag11)
2446 -- Subtype_Indication (Node5) (set to Empty if not present)
2447 -- Access_Definition (Node3) (set to Empty if not present)
2448
2449 -----------------------------
2450 -- 3.6.1 Index Constraint --
2451 -----------------------------
2452
2453 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2454
2455 -- It is not in general possible to distinguish between discriminant
2456 -- constraints and index constraints at parse time, since a simple
2457 -- name could be either the subtype mark of a discrete range, or an
2458 -- expression in a discriminant association with no name. Either
2459 -- entry appears simply as the name, and the semantic parse must
2460 -- distinguish between the two cases. Thus we use a common tree
2461 -- node format for both of these constraint types.
2462
2463 -- See Discriminant_Constraint for format of node
2464
2465 ---------------------------
2466 -- 3.6.1 Discrete Range --
2467 ---------------------------
2468
2469 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2470
2471 ----------------------------
2472 -- 3.7 Discriminant Part --
2473 ----------------------------
2474
2475 -- DISCRIMINANT_PART ::=
2476 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2477
2478 ------------------------------------
2479 -- 3.7 Unknown Discriminant Part --
2480 ------------------------------------
2481
2482 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2483
2484 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2485
2486 -- There is no explicit node in the tree for an unknown discriminant
2487 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2488 -- parent node.
2489
2490 ----------------------------------
2491 -- 3.7 Known Discriminant Part --
2492 ----------------------------------
2493
2494 -- KNOWN_DISCRIMINANT_PART ::=
2495 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2496
2497 -------------------------------------
2498 -- 3.7 Discriminant Specification --
2499 -------------------------------------
2500
2501 -- DISCRIMINANT_SPECIFICATION ::=
2502 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2503 -- [:= DEFAULT_EXPRESSION]
2504 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2505 -- [:= DEFAULT_EXPRESSION]
2506
2507 -- Although the syntax allows multiple identifiers in the list, the
2508 -- semantics is as though successive specifications were given with
2509 -- identical type definition and expression components. To simplify
2510 -- semantic processing, the parser represents a multiple declaration
2511 -- case as a sequence of single specifications, using the More_Ids and
2512 -- Prev_Ids flags to preserve the original source form as described
2513 -- in the section on "Handling of Defining Identifier Lists".
2514
2515 -- N_Discriminant_Specification
2516 -- Sloc points to first identifier
2517 -- Defining_Identifier (Node1)
2518 -- Null_Exclusion_Present (Flag11)
2519 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2520 -- Expression (Node3) (set to Empty if no default expression)
2521 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2522 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2523
2524 -----------------------------
2525 -- 3.7 Default Expression --
2526 -----------------------------
2527
2528 -- DEFAULT_EXPRESSION ::= EXPRESSION
2529
2530 ------------------------------------
2531 -- 3.7.1 Discriminant Constraint --
2532 ------------------------------------
2533
2534 -- DISCRIMINANT_CONSTRAINT ::=
2535 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2536
2537 -- It is not in general possible to distinguish between discriminant
2538 -- constraints and index constraints at parse time, since a simple
2539 -- name could be either the subtype mark of a discrete range, or an
2540 -- expression in a discriminant association with no name. Either
2541 -- entry appears simply as the name, and the semantic parse must
2542 -- distinguish between the two cases. Thus we use a common tree
2543 -- node format for both of these constraint types.
2544
2545 -- N_Index_Or_Discriminant_Constraint
2546 -- Sloc points to left paren
2547 -- Constraints (List1) points to list of discrete ranges or
2548 -- discriminant associations
2549
2550 -------------------------------------
2551 -- 3.7.1 Discriminant Association --
2552 -------------------------------------
2553
2554 -- DISCRIMINANT_ASSOCIATION ::=
2555 -- [discriminant_SELECTOR_NAME
2556 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2557
2558 -- Note: a discriminant association that has no selector name list
2559 -- appears directly as an expression in the tree.
2560
2561 -- N_Discriminant_Association
2562 -- Sloc points to first token of discriminant association
2563 -- Selector_Names (List1) (always non-empty, since if no selector
2564 -- names are present, this node is not used, see comment above)
2565 -- Expression (Node3)
2566
2567 ---------------------------------
2568 -- 3.8 Record Type Definition --
2569 ---------------------------------
2570
2571 -- RECORD_TYPE_DEFINITION ::=
2572 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2573
2574 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2575
2576 -- There is no explicit node in the tree for a record type definition.
2577 -- Instead the flags for Tagged_Present and Limited_Present appear in
2578 -- the N_Record_Definition node for a record definition appearing in
2579 -- the context of a record type definition.
2580
2581 ----------------------------
2582 -- 3.8 Record Definition --
2583 ----------------------------
2584
2585 -- RECORD_DEFINITION ::=
2586 -- record
2587 -- COMPONENT_LIST
2588 -- end record
2589 -- | null record
2590
2591 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2592 -- flags appear only for a record definition appearing in a record
2593 -- type definition.
2594
2595 -- Note: the NULL RECORD case is not permitted in Ada 83
2596
2597 -- N_Record_Definition
2598 -- Sloc points to RECORD or NULL
2599 -- End_Label (Node4) (set to Empty if internally generated record)
2600 -- Abstract_Present (Flag4)
2601 -- Tagged_Present (Flag15)
2602 -- Limited_Present (Flag17)
2603 -- Component_List (Node1) empty in null record case
2604 -- Null_Present (Flag13) set in null record case
2605 -- Task_Present (Flag5) set in task interfaces
2606 -- Protected_Present (Flag6) set in protected interfaces
2607 -- Synchronized_Present (Flag7) set in interfaces
2608 -- Interface_Present (Flag16) set in abstract interfaces
2609 -- Interface_List (List2) (set to No_List if none)
2610
2611 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2612 -- Interface_List and Interface_Present are used for abstract
2613 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2614
2615 -------------------------
2616 -- 3.8 Component List --
2617 -------------------------
2618
2619 -- COMPONENT_LIST ::=
2620 -- COMPONENT_ITEM {COMPONENT_ITEM}
2621 -- | {COMPONENT_ITEM} VARIANT_PART
2622 -- | null;
2623
2624 -- N_Component_List
2625 -- Sloc points to first token of component list
2626 -- Component_Items (List3)
2627 -- Variant_Part (Node4) (set to Empty if no variant part)
2628 -- Null_Present (Flag13)
2629
2630 -------------------------
2631 -- 3.8 Component Item --
2632 -------------------------
2633
2634 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2635
2636 -- Note: A component item can also be a pragma, and in the tree
2637 -- that is obtained after semantic processing, a component item
2638 -- can be an N_Null node resulting from a non-recognized pragma.
2639
2640 --------------------------------
2641 -- 3.8 Component Declaration --
2642 --------------------------------
2643
2644 -- COMPONENT_DECLARATION ::=
2645 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2646 -- [:= DEFAULT_EXPRESSION]
2647
2648 -- Note: although the syntax does not permit a component definition to
2649 -- be an anonymous array (and the parser will diagnose such an attempt
2650 -- with an appropriate message), it is possible for anonymous arrays
2651 -- to appear as component definitions. The semantics and back end handle
2652 -- this case properly, and the expander in fact generates such cases.
2653
2654 -- Although the syntax allows multiple identifiers in the list, the
2655 -- semantics is as though successive declarations were given with the
2656 -- same component definition and expression components. To simplify
2657 -- semantic processing, the parser represents a multiple declaration
2658 -- case as a sequence of single declarations, using the More_Ids and
2659 -- Prev_Ids flags to preserve the original source form as described
2660 -- in the section on "Handling of Defining Identifier Lists".
2661
2662 -- N_Component_Declaration
2663 -- Sloc points to first identifier
2664 -- Defining_Identifier (Node1)
2665 -- Component_Definition (Node4)
2666 -- Expression (Node3) (set to Empty if no default expression)
2667 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2668 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2669
2670 -------------------------
2671 -- 3.8.1 Variant Part --
2672 -------------------------
2673
2674 -- VARIANT_PART ::=
2675 -- case discriminant_DIRECT_NAME is
2676 -- VARIANT
2677 -- {VARIANT}
2678 -- end case;
2679
2680 -- Note: the variants list can contain pragmas as well as variants.
2681 -- In a properly formed program there is at least one variant.
2682
2683 -- N_Variant_Part
2684 -- Sloc points to CASE
2685 -- Name (Node2)
2686 -- Variants (List1)
2687
2688 --------------------
2689 -- 3.8.1 Variant --
2690 --------------------
2691
2692 -- VARIANT ::=
2693 -- when DISCRETE_CHOICE_LIST =>
2694 -- COMPONENT_LIST
2695
2696 -- N_Variant
2697 -- Sloc points to WHEN
2698 -- Discrete_Choices (List4)
2699 -- Component_List (Node1)
2700 -- Enclosing_Variant (Node2-Sem)
2701 -- Present_Expr (Uint3-Sem)
2702 -- Dcheck_Function (Node5-Sem)
2703
2704 ---------------------------------
2705 -- 3.8.1 Discrete Choice List --
2706 ---------------------------------
2707
2708 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2709
2710 ----------------------------
2711 -- 3.8.1 Discrete Choice --
2712 ----------------------------
2713
2714 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2715
2716 -- Note: in Ada 83 mode, the expression must be a simple expression
2717
2718 -- The only choice that appears explicitly is the OTHERS choice, as
2719 -- defined here. Other cases of discrete choice (expression and
2720 -- discrete range) appear directly. This production is also used
2721 -- for the OTHERS possibility of an exception choice.
2722
2723 -- Note: in accordance with the syntax, the parser does not check that
2724 -- OTHERS appears at the end on its own in a choice list context. This
2725 -- is a semantic check.
2726
2727 -- N_Others_Choice
2728 -- Sloc points to OTHERS
2729 -- Others_Discrete_Choices (List1-Sem)
2730 -- All_Others (Flag11-Sem)
2731
2732 ----------------------------------
2733 -- 3.9.1 Record Extension Part --
2734 ----------------------------------
2735
2736 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2737
2738 -- Note: record extension parts are not permitted in Ada 83 mode
2739
2740 --------------------------------------
2741 -- 3.9.4 Interface Type Definition --
2742 --------------------------------------
2743
2744 -- INTERFACE_TYPE_DEFINITION ::=
2745 -- [limited | task | protected | synchronized]
2746 -- interface [interface_list]
2747
2748 -- Note: Interfaces are implemented with N_Record_Definition and
2749 -- N_Derived_Type_Definition nodes because most of the support
2750 -- for the analysis of abstract types has been reused to
2751 -- analyze abstract interfaces.
2752
2753 ----------------------------------
2754 -- 3.10 Access Type Definition --
2755 ----------------------------------
2756
2757 -- ACCESS_TYPE_DEFINITION ::=
2758 -- ACCESS_TO_OBJECT_DEFINITION
2759 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2760
2761 --------------------------
2762 -- 3.10 Null Exclusion --
2763 --------------------------
2764
2765 -- NULL_EXCLUSION ::= not null
2766
2767 ---------------------------------------
2768 -- 3.10 Access To Object Definition --
2769 ---------------------------------------
2770
2771 -- ACCESS_TO_OBJECT_DEFINITION ::=
2772 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
2773 -- SUBTYPE_INDICATION
2774
2775 -- N_Access_To_Object_Definition
2776 -- Sloc points to ACCESS
2777 -- All_Present (Flag15)
2778 -- Null_Exclusion_Present (Flag11)
2779 -- Subtype_Indication (Node5)
2780 -- Constant_Present (Flag17)
2781
2782 -----------------------------------
2783 -- 3.10 General Access Modifier --
2784 -----------------------------------
2785
2786 -- GENERAL_ACCESS_MODIFIER ::= all | constant
2787
2788 -- Note: general access modifiers are not permitted in Ada 83 mode
2789
2790 -- There is no explicit node in the tree for general access modifier.
2791 -- Instead the All_Present or Constant_Present flags are set in the
2792 -- parent node.
2793
2794 -------------------------------------------
2795 -- 3.10 Access To Subprogram Definition --
2796 -------------------------------------------
2797
2798 -- ACCESS_TO_SUBPROGRAM_DEFINITION
2799 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
2800 -- | [NULL_EXCLUSION] access [protected] function
2801 -- PARAMETER_AND_RESULT_PROFILE
2802
2803 -- Note: access to subprograms are not permitted in Ada 83 mode
2804
2805 -- N_Access_Function_Definition
2806 -- Sloc points to ACCESS
2807 -- Null_Exclusion_Present (Flag11)
2808 -- Protected_Present (Flag6)
2809 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2810 -- Result_Definition (Node4) result subtype (subtype mark or access def)
2811
2812 -- N_Access_Procedure_Definition
2813 -- Sloc points to ACCESS
2814 -- Null_Exclusion_Present (Flag11)
2815 -- Protected_Present (Flag6)
2816 -- Parameter_Specifications (List3) (set to No_List if no formal part)
2817
2818 -----------------------------
2819 -- 3.10 Access Definition --
2820 -----------------------------
2821
2822 -- ACCESS_DEFINITION ::=
2823 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
2824 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
2825
2826 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
2827
2828 -- N_Access_Definition
2829 -- Sloc points to ACCESS
2830 -- Null_Exclusion_Present (Flag11)
2831 -- All_Present (Flag15)
2832 -- Constant_Present (Flag17)
2833 -- Subtype_Mark (Node4)
2834 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
2835
2836 -----------------------------------------
2837 -- 3.10.1 Incomplete Type Declaration --
2838 -----------------------------------------
2839
2840 -- INCOMPLETE_TYPE_DECLARATION ::=
2841 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2842
2843 -- N_Incomplete_Type_Declaration
2844 -- Sloc points to TYPE
2845 -- Defining_Identifier (Node1)
2846 -- Discriminant_Specifications (List4) (set to No_List if no
2847 -- discriminant part, or if the discriminant part is an
2848 -- unknown discriminant part)
2849 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
2850 -- Tagged_Present (Flag15)
2851
2852 ----------------------------
2853 -- 3.11 Declarative Part --
2854 ----------------------------
2855
2856 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
2857
2858 -- Note: although the parser enforces the syntactic requirement that
2859 -- a declarative part can contain only declarations, the semantic
2860 -- processing may add statements to the list of actions in a
2861 -- declarative part, so the code generator should be prepared
2862 -- to accept a statement in this position.
2863
2864 ----------------------------
2865 -- 3.11 Declarative Item --
2866 ----------------------------
2867
2868 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
2869
2870 ----------------------------------
2871 -- 3.11 Basic Declarative Item --
2872 ----------------------------------
2873
2874 -- BASIC_DECLARATIVE_ITEM ::=
2875 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
2876
2877 ----------------
2878 -- 3.11 Body --
2879 ----------------
2880
2881 -- BODY ::= PROPER_BODY | BODY_STUB
2882
2883 -----------------------
2884 -- 3.11 Proper Body --
2885 -----------------------
2886
2887 -- PROPER_BODY ::=
2888 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
2889
2890 ---------------
2891 -- 4.1 Name --
2892 ---------------
2893
2894 -- NAME ::=
2895 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
2896 -- | INDEXED_COMPONENT | SLICE
2897 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
2898 -- | TYPE_CONVERSION | FUNCTION_CALL
2899 -- | CHARACTER_LITERAL
2900
2901 ----------------------
2902 -- 4.1 Direct Name --
2903 ----------------------
2904
2905 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
2906
2907 -----------------
2908 -- 4.1 Prefix --
2909 -----------------
2910
2911 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
2912
2913 -------------------------------
2914 -- 4.1 Explicit Dereference --
2915 -------------------------------
2916
2917 -- EXPLICIT_DEREFERENCE ::= NAME . all
2918
2919 -- N_Explicit_Dereference
2920 -- Sloc points to ALL
2921 -- Prefix (Node3)
2922 -- Actual_Designated_Subtype (Node4-Sem)
2923 -- plus fields for expression
2924
2925 -------------------------------
2926 -- 4.1 Implicit Dereference --
2927 -------------------------------
2928
2929 -- IMPLICIT_DEREFERENCE ::= NAME
2930
2931 ------------------------------
2932 -- 4.1.1 Indexed Component --
2933 ------------------------------
2934
2935 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
2936
2937 -- Note: the parser may generate this node in some situations where it
2938 -- should be a function call. The semantic pass must correct this
2939 -- misidentification (which is inevitable at the parser level).
2940
2941 -- N_Indexed_Component
2942 -- Sloc contains a copy of the Sloc value of the Prefix
2943 -- Prefix (Node3)
2944 -- Expressions (List1)
2945 -- plus fields for expression
2946
2947 -- Note: if any of the subscripts requires a range check, then the
2948 -- Do_Range_Check flag is set on the corresponding expression, with
2949 -- the index type being determined from the type of the Prefix, which
2950 -- references the array being indexed.
2951
2952 -- Note: in a fully analyzed and expanded indexed component node, and
2953 -- hence in any such node that gigi sees, if the prefix is an access
2954 -- type, then an explicit dereference operation has been inserted.
2955
2956 ------------------
2957 -- 4.1.2 Slice --
2958 ------------------
2959
2960 -- SLICE ::= PREFIX (DISCRETE_RANGE)
2961
2962 -- Note: an implicit subtype is created to describe the resulting
2963 -- type, so that the bounds of this type are the bounds of the slice.
2964
2965 -- N_Slice
2966 -- Sloc points to first token of prefix
2967 -- Prefix (Node3)
2968 -- Discrete_Range (Node4)
2969 -- plus fields for expression
2970
2971 -------------------------------
2972 -- 4.1.3 Selected Component --
2973 -------------------------------
2974
2975 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
2976
2977 -- Note: selected components that are semantically expanded names get
2978 -- changed during semantic processing into the separate N_Expanded_Name
2979 -- node. See description of this node in the section on semantic nodes.
2980
2981 -- N_Selected_Component
2982 -- Sloc points to period
2983 -- Prefix (Node3)
2984 -- Selector_Name (Node2)
2985 -- Associated_Node (Node4-Sem)
2986 -- Do_Discriminant_Check (Flag13-Sem)
2987 -- Is_In_Discriminant_Check (Flag11-Sem)
2988 -- plus fields for expression
2989
2990 --------------------------
2991 -- 4.1.3 Selector Name --
2992 --------------------------
2993
2994 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
2995
2996 --------------------------------
2997 -- 4.1.4 Attribute Reference --
2998 --------------------------------
2999
3000 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3001
3002 -- Note: the syntax is quite ambiguous at this point. Consider:
3003
3004 -- A'Length (X) X is part of the attribute designator
3005 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3006 -- A'Class (X) X is the expression of a type conversion
3007
3008 -- It would be possible for the parser to distinguish these cases
3009 -- by looking at the attribute identifier. However, that would mean
3010 -- more work in introducing new implementation defined attributes,
3011 -- and also it would mean that special processing for attributes
3012 -- would be scattered around, instead of being centralized in the
3013 -- semantic routine that handles an N_Attribute_Reference node.
3014 -- Consequently, the parser in all the above cases stores the
3015 -- expression (X in these examples) as a single element list in
3016 -- in the Expressions field of the N_Attribute_Reference node.
3017
3018 -- Similarly, for attributes like Max which take two arguments,
3019 -- we store the two arguments as a two element list in the
3020 -- Expressions field. Of course it is clear at parse time that
3021 -- this case is really a function call with an attribute as the
3022 -- prefix, but it turns out to be convenient to handle the two
3023 -- argument case in a similar manner to the one argument case,
3024 -- and indeed in general the parser will accept any number of
3025 -- expressions in this position and store them as a list in the
3026 -- attribute reference node. This allows for future addition of
3027 -- attributes that take more than two arguments.
3028
3029 -- Note: named associates are not permitted in function calls where
3030 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3031 -- to skip the normal subprogram argument processing.
3032
3033 -- Note: for the attributes whose designators are technically keywords,
3034 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3035 -- the corresponding name, even though no identifier is involved.
3036
3037 -- Note: the generated code may contain stream attributes applied to
3038 -- limited types for which no stream routines exist officially. In such
3039 -- case, the result is to use the stream attribute for the underlying
3040 -- full type, or in the case of a protected type, the components
3041 -- (including any disriminants) are merely streamed in order.
3042
3043 -- See Exp_Attr for a complete description of which attributes are
3044 -- passed onto Gigi, and which are handled entirely by the front end.
3045
3046 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3047 -- a non-standard enumeration type or a nonzero/zero semantics
3048 -- boolean type, so the value is simply the stored representation.
3049
3050 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3051 -- references a subprogram that is a renaming, then the front end must
3052 -- rewrite the attribute to refer directly to the renamed entity.
3053
3054 -- Note: In generated code, the Address and Unrestricted_Access
3055 -- attributes can be applied to any expression, and the meaning is
3056 -- to create an object containing the value (the object is in the
3057 -- current stack frame), and pass the address of this value. If the
3058 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3059 -- is taken must be on a byte (storage unit) boundary, and if it is
3060 -- not (or may not be), then the generated code must create a copy
3061 -- that is byte aligned, and pass the address of this copy.
3062
3063 -- N_Attribute_Reference
3064 -- Sloc points to apostrophe
3065 -- Prefix (Node3)
3066 -- Attribute_Name (Name2) identifier name from attribute designator
3067 -- Expressions (List1) (set to No_List if no associated expressions)
3068 -- Entity (Node4-Sem) used if the attribute yields a type
3069 -- Associated_Node (Node4-Sem)
3070 -- Do_Overflow_Check (Flag17-Sem)
3071 -- Redundant_Use (Flag13-Sem)
3072 -- Must_Be_Byte_Aligned (Flag14)
3073 -- plus fields for expression
3074
3075 ---------------------------------
3076 -- 4.1.4 Attribute Designator --
3077 ---------------------------------
3078
3079 -- ATTRIBUTE_DESIGNATOR ::=
3080 -- IDENTIFIER [(static_EXPRESSION)]
3081 -- | access | delta | digits
3082
3083 -- There is no explicit node in the tree for an attribute designator.
3084 -- Instead the Attribute_Name and Expressions fields of the parent
3085 -- node (N_Attribute_Reference node) hold the information.
3086
3087 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3088 -- designator, then they are treated as identifiers internally
3089 -- rather than the keywords of the same name.
3090
3091 --------------------------------------
3092 -- 4.1.4 Range Attribute Reference --
3093 --------------------------------------
3094
3095 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3096
3097 -- A range attribute reference is represented in the tree using the
3098 -- normal N_Attribute_Reference node.
3099
3100 ---------------------------------------
3101 -- 4.1.4 Range Attribute Designator --
3102 ---------------------------------------
3103
3104 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3105
3106 -- A range attribute designator is represented in the tree using the
3107 -- normal N_Attribute_Reference node.
3108
3109 --------------------
3110 -- 4.3 Aggregate --
3111 --------------------
3112
3113 -- AGGREGATE ::=
3114 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3115
3116 -----------------------------
3117 -- 4.3.1 Record Aggregate --
3118 -----------------------------
3119
3120 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3121
3122 -- N_Aggregate
3123 -- Sloc points to left parenthesis
3124 -- Expressions (List1) (set to No_List if none or null record case)
3125 -- Component_Associations (List2) (set to No_List if none)
3126 -- Null_Record_Present (Flag17)
3127 -- Aggregate_Bounds (Node3-Sem)
3128 -- Associated_Node (Node4-Sem)
3129 -- Static_Processing_OK (Flag4-Sem)
3130 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3131 -- Expansion_Delayed (Flag11-Sem)
3132 -- Has_Self_Reference (Flag13-Sem)
3133 -- plus fields for expression
3134
3135 -- Note: this structure is used for both record and array aggregates
3136 -- since the two cases are not separable by the parser. The parser
3137 -- makes no attempt to enforce consistency here, so it is up to the
3138 -- semantic phase to make sure that the aggregate is consistent (i.e.
3139 -- that it is not a "half-and-half" case that mixes record and array
3140 -- syntax. In particular, for a record aggregate, the expressions
3141 -- field will be set if there are positional associations.
3142
3143 -- Note: N_Aggregate is not used for all aggregates; in particular,
3144 -- there is a separate node kind for extension aggregates.
3145
3146 -- Note: gigi/gcc can handle array aggregates correctly providing that
3147 -- they are entirely positional, and the array subtype involved has a
3148 -- known at compile time length and is not bit packed, or a convention
3149 -- Fortran array with more than one dimension. If these conditions
3150 -- are not met, then the front end must translate the aggregate into
3151 -- an appropriate set of assignments into a temporary.
3152
3153 -- Note: for the record aggregate case, gigi/gcc can handle all cases
3154 -- of record aggregates, including those for packed, and rep-claused
3155 -- records, and also variant records, providing that there are no
3156 -- variable length fields whose size is not known at runtime, and
3157 -- providing that the aggregate is presented in fully named form.
3158
3159 ----------------------------------------------
3160 -- 4.3.1 Record Component Association List --
3161 ----------------------------------------------
3162
3163 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3164 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3165 -- | null record
3166
3167 -- There is no explicit node in the tree for a record component
3168 -- association list. Instead the Null_Record_Present flag is set in
3169 -- the parent node for the NULL RECORD case.
3170
3171 ------------------------------------------------------
3172 -- 4.3.1 Record Component Association (also 4.3.3) --
3173 ------------------------------------------------------
3174
3175 -- RECORD_COMPONENT_ASSOCIATION ::=
3176 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3177
3178 -- N_Component_Association
3179 -- Sloc points to first selector name
3180 -- Choices (List1)
3181 -- Loop_Actions (List2-Sem)
3182 -- Expression (Node3)
3183 -- Box_Present (Flag15)
3184
3185 -- Note: this structure is used for both record component associations
3186 -- and array component associations, since the two cases aren't always
3187 -- separable by the parser. The choices list may represent either a
3188 -- list of selector names in the record aggregate case, or a list of
3189 -- discrete choices in the array aggregate case or an N_Others_Choice
3190 -- node (which appears as a singleton list). Box_Present gives support
3191 -- to Ada 2005 (AI-287).
3192
3193 -----------------------------------
3194 -- 4.3.1 Commponent Choice List --
3195 -----------------------------------
3196
3197 -- COMPONENT_CHOICE_LIST ::=
3198 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3199 -- | others
3200
3201 -- The entries of a component choice list appear in the Choices list
3202 -- of the associated N_Component_Association, as either selector
3203 -- names, or as an N_Others_Choice node.
3204
3205 --------------------------------
3206 -- 4.3.2 Extension Aggregate --
3207 --------------------------------
3208
3209 -- EXTENSION_AGGREGATE ::=
3210 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3211
3212 -- Note: extension aggregates are not permitted in Ada 83 mode
3213
3214 -- N_Extension_Aggregate
3215 -- Sloc points to left parenthesis
3216 -- Ancestor_Part (Node3)
3217 -- Associated_Node (Node4-Sem)
3218 -- Expressions (List1) (set to No_List if none or null record case)
3219 -- Component_Associations (List2) (set to No_List if none)
3220 -- Null_Record_Present (Flag17)
3221 -- Expansion_Delayed (Flag11-Sem)
3222 -- Has_Self_Reference (Flag13-Sem)
3223 -- plus fields for expression
3224
3225 --------------------------
3226 -- 4.3.2 Ancestor Part --
3227 --------------------------
3228
3229 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3230
3231 ----------------------------
3232 -- 4.3.3 Array Aggregate --
3233 ----------------------------
3234
3235 -- ARRAY_AGGREGATE ::=
3236 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3237
3238 ---------------------------------------
3239 -- 4.3.3 Positional Array Aggregate --
3240 ---------------------------------------
3241
3242 -- POSITIONAL_ARRAY_AGGREGATE ::=
3243 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3244 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3245
3246 -- See Record_Aggregate (4.3.1) for node structure
3247
3248 ----------------------------------
3249 -- 4.3.3 Named Array Aggregate --
3250 ----------------------------------
3251
3252 -- NAMED_ARRAY_AGGREGATE ::=
3253 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3254
3255 -- See Record_Aggregate (4.3.1) for node structure
3256
3257 ----------------------------------------
3258 -- 4.3.3 Array Component Association --
3259 ----------------------------------------
3260
3261 -- ARRAY_COMPONENT_ASSOCIATION ::=
3262 -- DISCRETE_CHOICE_LIST => EXPRESSION
3263
3264 -- See Record_Component_Association (4.3.1) for node structure
3265
3266 --------------------------------------------------
3267 -- 4.4 Expression/Relation/Term/Factor/Primary --
3268 --------------------------------------------------
3269
3270 -- EXPRESSION ::=
3271 -- RELATION {and RELATION} | RELATION {and then RELATION}
3272 -- | RELATION {or RELATION} | RELATION {or else RELATION}
3273 -- | RELATION {xor RELATION}
3274
3275 -- RELATION ::=
3276 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3277 -- | SIMPLE_EXPRESSION [not] in RANGE
3278 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3279
3280 -- SIMPLE_EXPRESSION ::=
3281 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3282
3283 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3284
3285 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3286
3287 -- No nodes are generated for any of these constructs. Instead, the
3288 -- node for the operator appears directly. When we refer to an
3289 -- expression in this description, we mean any of the possible
3290 -- consistuent components of an expression (e.g. identifier is
3291 -- an example of an expression).
3292
3293 ------------------
3294 -- 4.4 Primary --
3295 ------------------
3296
3297 -- PRIMARY ::=
3298 -- NUMERIC_LITERAL | null
3299 -- | STRING_LITERAL | AGGREGATE
3300 -- | NAME | QUALIFIED_EXPRESSION
3301 -- | ALLOCATOR | (EXPRESSION)
3302
3303 -- Usually there is no explicit node in the tree for primary. Instead
3304 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3305 -- exceptions. First, there is an explicit node for a null primary.
3306
3307 -- N_Null
3308 -- Sloc points to NULL
3309 -- plus fields for expression
3310
3311 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3312 -- that the parser keep track of which subexpressions are enclosed
3313 -- in parentheses, and how many levels of parentheses are used. This
3314 -- information is required for optimization purposes, and also for
3315 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3316 -- conform with ((((1)))) in the body).
3317
3318 -- The parentheses are recorded by keeping a Paren_Count field in every
3319 -- subexpression node (it is actually present in all nodes, but only
3320 -- used in subexpression nodes). This count records the number of
3321 -- levels of parentheses. If the number of levels in the source exceeds
3322 -- the maximum accomodated by this count, then the count is simply left
3323 -- at the maximum value. This means that there are some pathalogical
3324 -- cases of failure to detect conformance failures (e.g. an expression
3325 -- with 500 levels of parens will conform with one with 501 levels),
3326 -- but we do not need to lose sleep over this.
3327
3328 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3329 -- type N_Parenthesized_Expression used to accurately record unlimited
3330 -- numbers of levels of parentheses. However, it turned out to be a
3331 -- real nuisance to have to take into account the possible presence of
3332 -- this node during semantic analysis, since basically parentheses have
3333 -- zero relevance to semantic analysis.
3334
3335 -- Note: the level of parentheses always present in things like
3336 -- aggregates does not count, only the parentheses in the primary
3337 -- (EXPRESSION) affect the setting of the Paren_Count field.
3338
3339 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3340 -- treated as though it were Empty) if No_Initialization is set True.
3341
3342 --------------------------------------
3343 -- 4.5 Short Circuit Control Forms --
3344 --------------------------------------
3345
3346 -- EXPRESSION ::=
3347 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3348
3349 -- Gigi restriction: For both these control forms, the operand and
3350 -- result types are always Standard.Boolean. The expander inserts the
3351 -- required conversion operations where needed to ensure this is the
3352 -- case.
3353
3354 -- N_And_Then
3355 -- Sloc points to AND of AND THEN
3356 -- Left_Opnd (Node2)
3357 -- Right_Opnd (Node3)
3358 -- Actions (List1-Sem)
3359 -- plus fields for expression
3360
3361 -- N_Or_Else
3362 -- Sloc points to OR of OR ELSE
3363 -- Left_Opnd (Node2)
3364 -- Right_Opnd (Node3)
3365 -- Actions (List1-Sem)
3366 -- plus fields for expression
3367
3368 -- Note: The Actions field is used to hold actions associated with
3369 -- the right hand operand. These have to be treated specially since
3370 -- they are not unconditionally executed. See Insert_Actions for a
3371 -- more detailed description of how these actions are handled.
3372
3373 ---------------------------
3374 -- 4.5 Membership Tests --
3375 ---------------------------
3376
3377 -- RELATION ::=
3378 -- SIMPLE_EXPRESSION [not] in RANGE
3379 -- | SIMPLE_EXPRESSION [not] in SUBTYPE_MARK
3380
3381 -- Note: although the grammar above allows only a range or a
3382 -- subtype mark, the parser in fact will accept any simple
3383 -- expression in place of a subtype mark. This means that the
3384 -- semantic analyzer must be prepared to deal with, and diagnose
3385 -- a simple expression other than a name for the right operand.
3386 -- This simplifies error recovery in the parser.
3387
3388 -- N_In
3389 -- Sloc points to IN
3390 -- Left_Opnd (Node2)
3391 -- Right_Opnd (Node3)
3392 -- plus fields for expression
3393
3394 -- N_Not_In
3395 -- Sloc points to NOT of NOT IN
3396 -- Left_Opnd (Node2)
3397 -- Right_Opnd (Node3)
3398 -- plus fields for expression
3399
3400 --------------------
3401 -- 4.5 Operators --
3402 --------------------
3403
3404 -- LOGICAL_OPERATOR ::= and | or | xor
3405
3406 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3407
3408 -- BINARY_ADDING_OPERATOR ::= + | - | &
3409
3410 -- UNARY_ADDING_OPERATOR ::= + | -
3411
3412 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3413
3414 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3415
3416 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3417
3418 -- x #* y
3419 -- x #/ y
3420 -- x #mod y
3421 -- x #rem y
3422
3423 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3424 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3425 -- All handling of smalls for multiplication and division is handled
3426 -- by the front end (mod and rem result only from expansion). Gigi
3427 -- thus never needs to worry about small values (for other operators
3428 -- operating on fixed-point, e.g. addition, the small value does not
3429 -- have any semantic effect anyway, these are always integer operations.
3430
3431 -- Gigi restriction: For all operators taking Boolean operands, the
3432 -- type is always Standard.Boolean. The expander inserts the required
3433 -- conversion operations where needed to ensure this is the case.
3434
3435 -- N_Op_And
3436 -- Sloc points to AND
3437 -- Do_Length_Check (Flag4-Sem)
3438 -- plus fields for binary operator
3439 -- plus fields for expression
3440
3441 -- N_Op_Or
3442 -- Sloc points to OR
3443 -- Do_Length_Check (Flag4-Sem)
3444 -- plus fields for binary operator
3445 -- plus fields for expression
3446
3447 -- N_Op_Xor
3448 -- Sloc points to XOR
3449 -- Do_Length_Check (Flag4-Sem)
3450 -- plus fields for binary operator
3451 -- plus fields for expression
3452
3453 -- N_Op_Eq
3454 -- Sloc points to =
3455 -- plus fields for binary operator
3456 -- plus fields for expression
3457
3458 -- N_Op_Ne
3459 -- Sloc points to /=
3460 -- plus fields for binary operator
3461 -- plus fields for expression
3462
3463 -- N_Op_Lt
3464 -- Sloc points to <
3465 -- plus fields for binary operator
3466 -- plus fields for expression
3467
3468 -- N_Op_Le
3469 -- Sloc points to <=
3470 -- plus fields for binary operator
3471 -- plus fields for expression
3472
3473 -- N_Op_Gt
3474 -- Sloc points to >
3475 -- plus fields for binary operator
3476 -- plus fields for expression
3477
3478 -- N_Op_Ge
3479 -- Sloc points to >=
3480 -- plus fields for binary operator
3481 -- plus fields for expression
3482
3483 -- N_Op_Add
3484 -- Sloc points to + (binary)
3485 -- plus fields for binary operator
3486 -- plus fields for expression
3487
3488 -- N_Op_Subtract
3489 -- Sloc points to - (binary)
3490 -- plus fields for binary operator
3491 -- plus fields for expression
3492
3493 -- N_Op_Concat
3494 -- Sloc points to &
3495 -- Is_Component_Left_Opnd (Flag13-Sem)
3496 -- Is_Component_Right_Opnd (Flag14-Sem)
3497 -- plus fields for binary operator
3498 -- plus fields for expression
3499
3500 -- N_Op_Multiply
3501 -- Sloc points to *
3502 -- Treat_Fixed_As_Integer (Flag14-Sem)
3503 -- Rounded_Result (Flag18-Sem)
3504 -- plus fields for binary operator
3505 -- plus fields for expression
3506
3507 -- N_Op_Divide
3508 -- Sloc points to /
3509 -- Treat_Fixed_As_Integer (Flag14-Sem)
3510 -- Do_Division_Check (Flag13-Sem)
3511 -- Rounded_Result (Flag18-Sem)
3512 -- plus fields for binary operator
3513 -- plus fields for expression
3514
3515 -- N_Op_Mod
3516 -- Sloc points to MOD
3517 -- Treat_Fixed_As_Integer (Flag14-Sem)
3518 -- Do_Division_Check (Flag13-Sem)
3519 -- plus fields for binary operator
3520 -- plus fields for expression
3521
3522 -- N_Op_Rem
3523 -- Sloc points to REM
3524 -- Treat_Fixed_As_Integer (Flag14-Sem)
3525 -- Do_Division_Check (Flag13-Sem)
3526 -- plus fields for binary operator
3527 -- plus fields for expression
3528
3529 -- N_Op_Expon
3530 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3531 -- Sloc points to **
3532 -- plus fields for binary operator
3533 -- plus fields for expression
3534
3535 -- N_Op_Plus
3536 -- Sloc points to + (unary)
3537 -- plus fields for unary operator
3538 -- plus fields for expression
3539
3540 -- N_Op_Minus
3541 -- Sloc points to - (unary)
3542 -- plus fields for unary operator
3543 -- plus fields for expression
3544
3545 -- N_Op_Abs
3546 -- Sloc points to ABS
3547 -- plus fields for unary operator
3548 -- plus fields for expression
3549
3550 -- N_Op_Not
3551 -- Sloc points to NOT
3552 -- plus fields for unary operator
3553 -- plus fields for expression
3554
3555 -- See also shift operators in section B.2
3556
3557 -- Note on fixed-point operations passed to Gigi: For adding operators,
3558 -- the semantics is to treat these simply as integer operations, with
3559 -- the small values being ignored (the bounds are already stored in
3560 -- units of small, so that constraint checking works as usual). For the
3561 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3562 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3563 -- thus treat these nodes in identical manner, ignoring small values.
3564
3565 --------------------------
3566 -- 4.6 Type Conversion --
3567 --------------------------
3568
3569 -- TYPE_CONVERSION ::=
3570 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3571
3572 -- In the (NAME) case, the name is stored as the expression
3573
3574 -- Note: the parser never generates a type conversion node, since it
3575 -- looks like an indexed component which is generated by preference.
3576 -- The semantic pass must correct this misidentification.
3577
3578 -- Gigi handles conversions that involve no change in the root type,
3579 -- and also all conversions from integer to floating-point types.
3580 -- Conversions from floating-point to integer are only handled in
3581 -- the case where Float_Truncate flag set. Other conversions from
3582 -- floating-point to integer (involving rounding) and all conversions
3583 -- involving fixed-point types are handled by the expander.
3584
3585 -- Sprint syntax if Float_Truncate set: X^(Y)
3586 -- Sprint syntax if Conversion_OK set X?(Y)
3587 -- Sprint syntax if both flags set X?^(Y)
3588
3589 -- Note: If either the operand or result type is fixed-point, Gigi will
3590 -- only see a type conversion node with Conversion_OK set. The front end
3591 -- takes care of all handling of small's for fixed-point conversions.
3592
3593 -- N_Type_Conversion
3594 -- Sloc points to first token of subtype mark
3595 -- Subtype_Mark (Node4)
3596 -- Expression (Node3)
3597 -- Do_Tag_Check (Flag13-Sem)
3598 -- Do_Length_Check (Flag4-Sem)
3599 -- Do_Overflow_Check (Flag17-Sem)
3600 -- Float_Truncate (Flag11-Sem)
3601 -- Rounded_Result (Flag18-Sem)
3602 -- Conversion_OK (Flag14-Sem)
3603 -- plus fields for expression
3604
3605 -- Note: if a range check is required, then the Do_Range_Check flag
3606 -- is set in the Expression with the check being done against the
3607 -- target type range (after the base type conversion, if any).
3608
3609 -------------------------------
3610 -- 4.7 Qualified Expression --
3611 -------------------------------
3612
3613 -- QUALIFIED_EXPRESSION ::=
3614 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3615
3616 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3617 -- the expression, so the Expression field of this node always points
3618 -- to a parenthesized expression in this case (i.e. Paren_Count will
3619 -- always be non-zero for the referenced expression if it is not an
3620 -- aggregate).
3621
3622 -- N_Qualified_Expression
3623 -- Sloc points to apostrophe
3624 -- Subtype_Mark (Node4)
3625 -- Expression (Node3) expression or aggregate
3626 -- plus fields for expression
3627
3628 --------------------
3629 -- 4.8 Allocator --
3630 --------------------
3631
3632 -- ALLOCATOR ::=
3633 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3634
3635 -- Sprint syntax (when storage pool present)
3636 -- new xxx (storage_pool = pool)
3637
3638 -- N_Allocator
3639 -- Sloc points to NEW
3640 -- Expression (Node3) subtype indication or qualified expression
3641 -- Null_Exclusion_Present (Flag11)
3642 -- Storage_Pool (Node1-Sem)
3643 -- Procedure_To_Call (Node2-Sem)
3644 -- Coextensions (Elist4-Sem)
3645 -- No_Initialization (Flag13-Sem)
3646 -- Do_Storage_Check (Flag17-Sem)
3647 -- Is_Coextension (Flag18-Sem)
3648 -- plus fields for expression
3649
3650 ---------------------------------
3651 -- 5.1 Sequence Of Statements --
3652 ---------------------------------
3653
3654 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3655
3656 -- Note: Although the parser will not accept a declaration as a
3657 -- statement, the semantic analyzer may insert declarations (e.g.
3658 -- declarations of implicit types needed for execution of other
3659 -- statements) into a sequence of statements, so the code genmerator
3660 -- should be prepared to accept a declaration where a statement is
3661 -- expected. Note also that pragmas can appear as statements.
3662
3663 --------------------
3664 -- 5.1 Statement --
3665 --------------------
3666
3667 -- STATEMENT ::=
3668 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3669
3670 -- There is no explicit node in the tree for a statement. Instead, the
3671 -- individual statement appears directly. Labels are treated as a
3672 -- kind of statement, i.e. they are linked into a statement list at
3673 -- the point they appear, so the labeled statement appears following
3674 -- the label or labels in the statement list.
3675
3676 ---------------------------
3677 -- 5.1 Simple Statement --
3678 ---------------------------
3679
3680 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
3681 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
3682 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
3683 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
3684 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
3685 -- | ABORT_STATEMENT | RAISE_STATEMENT
3686 -- | CODE_STATEMENT
3687
3688 -----------------------------
3689 -- 5.1 Compound Statement --
3690 -----------------------------
3691
3692 -- COMPOUND_STATEMENT ::=
3693 -- IF_STATEMENT | CASE_STATEMENT
3694 -- | LOOP_STATEMENT | BLOCK_STATEMENT
3695 -- | EXTENDED_RETURN_STATEMENT
3696 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
3697
3698 -------------------------
3699 -- 5.1 Null Statement --
3700 -------------------------
3701
3702 -- NULL_STATEMENT ::= null;
3703
3704 -- N_Null_Statement
3705 -- Sloc points to NULL
3706
3707 ----------------
3708 -- 5.1 Label --
3709 ----------------
3710
3711 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
3712
3713 -- Note that the occurrence of a label is not a defining identifier,
3714 -- but rather a referencing occurrence. The defining occurrence is
3715 -- in the implicit label declaration which occurs in the innermost
3716 -- enclosing block.
3717
3718 -- N_Label
3719 -- Sloc points to <<
3720 -- Identifier (Node1) direct name of statement identifier
3721 -- Exception_Junk (Flag7-Sem)
3722
3723 -------------------------------
3724 -- 5.1 Statement Identifier --
3725 -------------------------------
3726
3727 -- STATEMENT_INDENTIFIER ::= DIRECT_NAME
3728
3729 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
3730 -- (not an OPERATOR_SYMBOL)
3731
3732 -------------------------------
3733 -- 5.2 Assignment Statement --
3734 -------------------------------
3735
3736 -- ASSIGNMENT_STATEMENT ::=
3737 -- variable_NAME := EXPRESSION;
3738
3739 -- N_Assignment_Statement
3740 -- Sloc points to :=
3741 -- Name (Node2)
3742 -- Expression (Node3)
3743 -- Do_Tag_Check (Flag13-Sem)
3744 -- Do_Length_Check (Flag4-Sem)
3745 -- Forwards_OK (Flag5-Sem)
3746 -- Backwards_OK (Flag6-Sem)
3747 -- No_Ctrl_Actions (Flag7-Sem)
3748
3749 -- Note: if a range check is required, then the Do_Range_Check flag
3750 -- is set in the Expression (right hand side), with the check being
3751 -- done against the type of the Name (left hand side).
3752
3753 -- Note: the back end places some restrictions on the form of the
3754 -- Expression field. If the object being assigned to is Atomic, then
3755 -- the Expression may not have the form of an aggregate (since this
3756 -- might cause the back end to generate separate assignments). It
3757 -- also cannot be a reference to an object marked as a true constant
3758 -- (Is_True_Constant flag set), where the object is itself initalized
3759 -- with an aggregate. If necessary the front end must generate an
3760 -- extra temporary (with Is_True_Constant set False), and initialize
3761 -- this temporary as required (the temporary itself is not atomic).
3762
3763 -----------------------
3764 -- 5.3 If Statement --
3765 -----------------------
3766
3767 -- IF_STATEMENT ::=
3768 -- if CONDITION then
3769 -- SEQUENCE_OF_STATEMENTS
3770 -- {elsif CONDITION then
3771 -- SEQUENCE_OF_STATEMENTS}
3772 -- [else
3773 -- SEQUENCE_OF_STATEMENTS]
3774 -- end if;
3775
3776 -- Gigi restriction: This expander ensures that the type of the
3777 -- Condition fields is always Standard.Boolean, even if the type
3778 -- in the source is some non-standard boolean type.
3779
3780 -- N_If_Statement
3781 -- Sloc points to IF
3782 -- Condition (Node1)
3783 -- Then_Statements (List2)
3784 -- Elsif_Parts (List3) (set to No_List if none present)
3785 -- Else_Statements (List4) (set to No_List if no else part present)
3786 -- End_Span (Uint5) (set to No_Uint if expander generated)
3787
3788 -- N_Elsif_Part
3789 -- Sloc points to ELSIF
3790 -- Condition (Node1)
3791 -- Then_Statements (List2)
3792 -- Condition_Actions (List3-Sem)
3793
3794 --------------------
3795 -- 5.3 Condition --
3796 --------------------
3797
3798 -- CONDITION ::= boolean_EXPRESSION
3799
3800 -------------------------
3801 -- 5.4 Case Statement --
3802 -------------------------
3803
3804 -- CASE_STATEMENT ::=
3805 -- case EXPRESSION is
3806 -- CASE_STATEMENT_ALTERNATIVE
3807 -- {CASE_STATEMENT_ALTERNATIVE}
3808 -- end case;
3809
3810 -- Note: the Alternatives can contain pragmas. These only occur at
3811 -- the start of the list, since any pragmas occurring after the first
3812 -- alternative are absorbed into the corresponding statement sequence.
3813
3814 -- N_Case_Statement
3815 -- Sloc points to CASE
3816 -- Expression (Node3)
3817 -- Alternatives (List4)
3818 -- End_Span (Uint5) (set to No_Uint if expander generated)
3819
3820 -------------------------------------
3821 -- 5.4 Case Statement Alternative --
3822 -------------------------------------
3823
3824 -- CASE_STATEMENT_ALTERNATIVE ::=
3825 -- when DISCRETE_CHOICE_LIST =>
3826 -- SEQUENCE_OF_STATEMENTS
3827
3828 -- N_Case_Statement_Alternative
3829 -- Sloc points to WHEN
3830 -- Discrete_Choices (List4)
3831 -- Statements (List3)
3832
3833 -------------------------
3834 -- 5.5 Loop Statement --
3835 -------------------------
3836
3837 -- LOOP_STATEMENT ::=
3838 -- [loop_STATEMENT_IDENTIFIER :]
3839 -- [ITERATION_SCHEME] loop
3840 -- SEQUENCE_OF_STATEMENTS
3841 -- end loop [loop_IDENTIFIER];
3842
3843 -- Note: The occurrence of a loop label is not a defining identifier
3844 -- but rather a referencing occurrence. The defining occurrence is in
3845 -- the implicit label declaration which occurs in the innermost
3846 -- enclosing block.
3847
3848 -- Note: there is always a loop statement identifier present in
3849 -- the tree, even if none was given in the source. In the case where
3850 -- no loop identifier is given in the source, the parser creates
3851 -- a name of the form _Loop_n, where n is a decimal integer (the
3852 -- two underlines ensure that the loop names created in this manner
3853 -- do not conflict with any user defined identifiers), and the flag
3854 -- Has_Created_Identifier is set to True. The only exception to the
3855 -- rule that all loop statement nodes have identifiers occurs for
3856 -- loops constructed by the expander, and the semantic analyzer will
3857 -- create and supply dummy loop identifiers in these cases.
3858
3859 -- N_Loop_Statement
3860 -- Sloc points to LOOP
3861 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
3862 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
3863 -- Statements (List3)
3864 -- End_Label (Node4)
3865 -- Has_Created_Identifier (Flag15)
3866 -- Is_Null_Loop (Flag16)
3867
3868 --------------------------
3869 -- 5.5 Iteration Scheme --
3870 --------------------------
3871
3872 -- ITERATION_SCHEME ::=
3873 -- while CONDITION | for LOOP_PARAMETER_SPECIFICATION
3874
3875 -- Gigi restriction: This expander ensures that the type of the
3876 -- Condition field is always Standard.Boolean, even if the type
3877 -- in the source is some non-standard boolean type.
3878
3879 -- N_Iteration_Scheme
3880 -- Sloc points to WHILE or FOR
3881 -- Condition (Node1) (set to Empty if FOR case)
3882 -- Condition_Actions (List3-Sem)
3883 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
3884
3885 ---------------------------------------
3886 -- 5.5 Loop parameter specification --
3887 ---------------------------------------
3888
3889 -- LOOP_PARAMETER_SPECIFICATION ::=
3890 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
3891
3892 -- N_Loop_Parameter_Specification
3893 -- Sloc points to first identifier
3894 -- Defining_Identifier (Node1)
3895 -- Reverse_Present (Flag15)
3896 -- Discrete_Subtype_Definition (Node4)
3897
3898 --------------------------
3899 -- 5.6 Block Statement --
3900 --------------------------
3901
3902 -- BLOCK_STATEMENT ::=
3903 -- [block_STATEMENT_IDENTIFIER:]
3904 -- [declare
3905 -- DECLARATIVE_PART]
3906 -- begin
3907 -- HANDLED_SEQUENCE_OF_STATEMENTS
3908 -- end [block_IDENTIFIER];
3909
3910 -- Note that the occurrence of a block identifier is not a defining
3911 -- identifier, but rather a referencing occurrence. The defining
3912 -- occurrence is an E_Block entity declared by the implicit label
3913 -- declaration which occurs in the innermost enclosing block statement
3914 -- or body; the block identifier denotes that E_Block.
3915
3916 -- For block statements that come from source code, there is always a
3917 -- block statement identifier present in the tree, denoting an
3918 -- E_Block. In the case where no block identifier is given in the
3919 -- source, the parser creates a name of the form B_n, where n is a
3920 -- decimal integer, and the flag Has_Created_Identifier is set to
3921 -- True. Blocks constructed by the expander usually have no identifier,
3922 -- and no corresponding entity.
3923
3924 -- Note well: the block statement created for an extended return
3925 -- statement has an entity, and this entity is an E_Return_Statement,
3926 -- rather than the usual E_Block.
3927
3928 -- N_Block_Statement
3929 -- Sloc points to DECLARE or BEGIN
3930 -- Identifier (Node1) block direct name (set to Empty if not present)
3931 -- Declarations (List2) (set to No_List if no DECLARE part)
3932 -- Handled_Statement_Sequence (Node4)
3933 -- Is_Task_Master (Flag5-Sem)
3934 -- Activation_Chain_Entity (Node3-Sem)
3935 -- Has_Created_Identifier (Flag15)
3936 -- Is_Task_Allocation_Block (Flag6)
3937 -- Is_Asynchronous_Call_Block (Flag7)
3938
3939 -------------------------
3940 -- 5.7 Exit Statement --
3941 -------------------------
3942
3943 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
3944
3945 -- Gigi restriction: This expander ensures that the type of the
3946 -- Condition field is always Standard.Boolean, even if the type
3947 -- in the source is some non-standard boolean type.
3948
3949 -- N_Exit_Statement
3950 -- Sloc points to EXIT
3951 -- Name (Node2) (set to Empty if no loop name present)
3952 -- Condition (Node1) (set to Empty if no when part present)
3953
3954 -------------------------
3955 -- 5.9 Goto Statement --
3956 -------------------------
3957
3958 -- GOTO_STATEMENT ::= goto label_NAME;
3959
3960 -- N_Goto_Statement
3961 -- Sloc points to GOTO
3962 -- Name (Node2)
3963 -- Exception_Junk (Flag7-Sem)
3964
3965 ---------------------------------
3966 -- 6.1 Subprogram Declaration --
3967 ---------------------------------
3968
3969 -- SUBPROGRAM_DECLARATION ::= SUBPROGRAM_SPECIFICATION;
3970
3971 -- N_Subprogram_Declaration
3972 -- Sloc points to FUNCTION or PROCEDURE
3973 -- Specification (Node1)
3974 -- Body_To_Inline (Node3-Sem)
3975 -- Corresponding_Body (Node5-Sem)
3976 -- Parent_Spec (Node4-Sem)
3977
3978 ------------------------------------------
3979 -- 6.1 Abstract Subprogram Declaration --
3980 ------------------------------------------
3981
3982 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
3983 -- SUBPROGRAM_SPECIFICATION is abstract;
3984
3985 -- N_Abstract_Subprogram_Declaration
3986 -- Sloc points to ABSTRACT
3987 -- Specification (Node1)
3988
3989 -----------------------------------
3990 -- 6.1 Subprogram Specification --
3991 -----------------------------------
3992
3993 -- SUBPROGRAM_SPECIFICATION ::=
3994 -- [[not] overriding]
3995 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
3996 -- | [[not] overriding]
3997 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
3998
3999 -- Note: there are no separate nodes for the profiles, instead the
4000 -- information appears directly in the following nodes.
4001
4002 -- N_Function_Specification
4003 -- Sloc points to FUNCTION
4004 -- Defining_Unit_Name (Node1) (the designator)
4005 -- Elaboration_Boolean (Node2-Sem)
4006 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4007 -- Null_Exclusion_Present (Flag11)
4008 -- Result_Definition (Node4) for result subtype
4009 -- Generic_Parent (Node5-Sem)
4010 -- Must_Override (Flag14) set if overriding indicator present
4011 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4012
4013 -- N_Procedure_Specification
4014 -- Sloc points to PROCEDURE
4015 -- Defining_Unit_Name (Node1)
4016 -- Elaboration_Boolean (Node2-Sem)
4017 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4018 -- Generic_Parent (Node5-Sem)
4019 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4020 -- Must_Override (Flag14) set if overriding indicator present
4021 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4022
4023 -- Note: overriding indicator is an Ada 2005 feature
4024
4025 ---------------------
4026 -- 6.1 Designator --
4027 ---------------------
4028
4029 -- DESIGNATOR ::=
4030 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4031
4032 -- Designators that are simply identifiers or operator symbols appear
4033 -- directly in the tree in this form. The following node is used only
4034 -- in the case where the designator has a parent unit name component.
4035
4036 -- N_Designator
4037 -- Sloc points to period
4038 -- Name (Node2) holds the parent unit name. Note that this is always
4039 -- non-Empty, since this node is only used for the case where a
4040 -- parent library unit package name is present.
4041 -- Identifier (Node1)
4042
4043 -- Note that the identifier can also be an operator symbol here
4044
4045 ------------------------------
4046 -- 6.1 Defining Designator --
4047 ------------------------------
4048
4049 -- DEFINING_DESIGNATOR ::=
4050 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4051
4052 -------------------------------------
4053 -- 6.1 Defining Program Unit Name --
4054 -------------------------------------
4055
4056 -- DEFINING_PROGRAM_UNIT_NAME ::=
4057 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4058
4059 -- The parent unit name is present only in the case of a child unit
4060 -- name (permissible only for Ada 95 for a library level unit, i.e.
4061 -- a unit at scope level one). If no such name is present, the defining
4062 -- program unit name is represented simply as the defining identifier.
4063 -- In the child unit case, the following node is used to represent the
4064 -- child unit name.
4065
4066 -- N_Defining_Program_Unit_Name
4067 -- Sloc points to period
4068 -- Name (Node2) holds the parent unit name. Note that this is always
4069 -- non-Empty, since this node is only used for the case where a
4070 -- parent unit name is present.
4071 -- Defining_Identifier (Node1)
4072
4073 --------------------------
4074 -- 6.1 Operator Symbol --
4075 --------------------------
4076
4077 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4078
4079 -- Note: the fields of the N_Operator_Symbol node are laid out to
4080 -- match the corresponding fields of an N_Character_Literal node. This
4081 -- allows easy conversion of the operator symbol node into a character
4082 -- literal node in the case where a string constant of the form of an
4083 -- operator symbol is scanned out as such, but turns out semantically
4084 -- to be a string literal that is not an operator. For details see
4085 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4086
4087 -- N_Operator_Symbol
4088 -- Sloc points to literal
4089 -- Chars (Name1) contains the Name_Id for the operator symbol
4090 -- Strval (Str3) Id of string value. This is used if the operator
4091 -- symbol turns out to be a normal string after all.
4092 -- Entity (Node4-Sem)
4093 -- Associated_Node (Node4-Sem)
4094 -- Has_Private_View (Flag11-Sem) set in generic units.
4095 -- Etype (Node5-Sem)
4096
4097 -- Note: the Strval field may be set to No_String for generated
4098 -- operator symbols that are known not to be string literals
4099 -- semantically.
4100
4101 -----------------------------------
4102 -- 6.1 Defining Operator Symbol --
4103 -----------------------------------
4104
4105 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4106
4107 -- A defining operator symbol is an entity, which has additional
4108 -- fields depending on the setting of the Ekind field. These
4109 -- additional fields are defined (and access subprograms declared)
4110 -- in package Einfo.
4111
4112 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4113 -- are deliberately layed out to match the layout of fields in an
4114 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4115 -- an operator symbol node into a defining operator symbol node.
4116 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4117 -- for further details.
4118
4119 -- N_Defining_Operator_Symbol
4120 -- Sloc points to literal
4121 -- Chars (Name1) contains the Name_Id for the operator symbol
4122 -- Next_Entity (Node2-Sem)
4123 -- Scope (Node3-Sem)
4124 -- Etype (Node5-Sem)
4125
4126 ----------------------------
4127 -- 6.1 Parameter Profile --
4128 ----------------------------
4129
4130 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4131
4132 ---------------------------------------
4133 -- 6.1 Parameter and Result Profile --
4134 ---------------------------------------
4135
4136 -- PARAMETER_AND_RESULT_PROFILE ::=
4137 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4138 -- | [FORMAL_PART] return ACCESS_DEFINITION
4139
4140 -- There is no explicit node in the tree for a parameter and result
4141 -- profile. Instead the information appears directly in the parent.
4142
4143 ----------------------
4144 -- 6.1 Formal part --
4145 ----------------------
4146
4147 -- FORMAL_PART ::=
4148 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4149
4150 ----------------------------------
4151 -- 6.1 Parameter specification --
4152 ----------------------------------
4153
4154 -- PARAMETER_SPECIFICATION ::=
4155 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4156 -- [:= DEFAULT_EXPRESSION]
4157 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4158 -- [:= DEFAULT_EXPRESSION]
4159
4160 -- Although the syntax allows multiple identifiers in the list, the
4161 -- semantics is as though successive specifications were given with
4162 -- identical type definition and expression components. To simplify
4163 -- semantic processing, the parser represents a multiple declaration
4164 -- case as a sequence of single Specifications, using the More_Ids and
4165 -- Prev_Ids flags to preserve the original source form as described
4166 -- in the section on "Handling of Defining Identifier Lists".
4167
4168 -- N_Parameter_Specification
4169 -- Sloc points to first identifier
4170 -- Defining_Identifier (Node1)
4171 -- In_Present (Flag15)
4172 -- Out_Present (Flag17)
4173 -- Null_Exclusion_Present (Flag11)
4174 -- Parameter_Type (Node2) subtype mark or access definition
4175 -- Expression (Node3) (set to Empty if no default expression present)
4176 -- Do_Accessibility_Check (Flag13-Sem)
4177 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4178 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4179 -- Default_Expression (Node5-Sem)
4180
4181 ---------------
4182 -- 6.1 Mode --
4183 ---------------
4184
4185 -- MODE ::= [in] | in out | out
4186
4187 -- There is no explicit node in the tree for the Mode. Instead the
4188 -- In_Present and Out_Present flags are set in the parent node to
4189 -- record the presence of keywords specifying the mode.
4190
4191 --------------------------
4192 -- 6.3 Subprogram Body --
4193 --------------------------
4194
4195 -- SUBPROGRAM_BODY ::=
4196 -- SUBPROGRAM_SPECIFICATION is
4197 -- DECLARATIVE_PART
4198 -- begin
4199 -- HANDLED_SEQUENCE_OF_STATEMENTS
4200 -- end [DESIGNATOR];
4201
4202 -- N_Subprogram_Body
4203 -- Sloc points to FUNCTION or PROCEDURE
4204 -- Specification (Node1)
4205 -- Declarations (List2)
4206 -- Handled_Statement_Sequence (Node4)
4207 -- Activation_Chain_Entity (Node3-Sem)
4208 -- Corresponding_Spec (Node5-Sem)
4209 -- Acts_As_Spec (Flag4-Sem)
4210 -- Bad_Is_Detected (Flag15) used only by parser
4211 -- Do_Storage_Check (Flag17-Sem)
4212 -- Has_Priority_Pragma (Flag6-Sem)
4213 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4214 -- Is_Entry_Barrier_Function (Flag8-Sem)
4215 -- Is_Task_Master (Flag5-Sem)
4216 -- Was_Originally_Stub (Flag13-Sem)
4217
4218 -----------------------------------
4219 -- 6.4 Procedure Call Statement --
4220 -----------------------------------
4221
4222 -- PROCEDURE_CALL_STATEMENT ::=
4223 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4224
4225 -- Note: the reason that a procedure call has expression fields is
4226 -- that it semantically resembles an expression, e.g. overloading is
4227 -- allowed and a type is concocted for semantic processing purposes.
4228 -- Certain of these fields, such as Parens are not relevant, but it
4229 -- is easier to just supply all of them together!
4230
4231 -- N_Procedure_Call_Statement
4232 -- Sloc points to first token of name or prefix
4233 -- Name (Node2) stores name or prefix
4234 -- Parameter_Associations (List3) (set to No_List if no
4235 -- actual parameter part)
4236 -- First_Named_Actual (Node4-Sem)
4237 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4238 -- Do_Tag_Check (Flag13-Sem)
4239 -- No_Elaboration_Check (Flag14-Sem)
4240 -- Parameter_List_Truncated (Flag17-Sem)
4241 -- ABE_Is_Certain (Flag18-Sem)
4242 -- plus fields for expression
4243
4244 -- If any IN parameter requires a range check, then the corresponding
4245 -- argument expression has the Do_Range_Check flag set, and the range
4246 -- check is done against the formal type. Note that this argument
4247 -- expression may appear directly in the Parameter_Associations list,
4248 -- or may be a descendent of an N_Parameter_Association node that
4249 -- appears in this list.
4250
4251 ------------------------
4252 -- 6.4 Function Call --
4253 ------------------------
4254
4255 -- FUNCTION_CALL ::=
4256 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4257
4258 -- Note: the parser may generate an indexed component node or simply
4259 -- a name node instead of a function call node. The semantic pass must
4260 -- correct this misidentification.
4261
4262 -- N_Function_Call
4263 -- Sloc points to first token of name or prefix
4264 -- Name (Node2) stores name or prefix
4265 -- Parameter_Associations (List3) (set to No_List if no
4266 -- actual parameter part)
4267 -- First_Named_Actual (Node4-Sem)
4268 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4269 -- Do_Tag_Check (Flag13-Sem)
4270 -- No_Elaboration_Check (Flag14-Sem)
4271 -- Parameter_List_Truncated (Flag17-Sem)
4272 -- ABE_Is_Certain (Flag18-Sem)
4273 -- plus fields for expression
4274
4275 --------------------------------
4276 -- 6.4 Actual Parameter Part --
4277 --------------------------------
4278
4279 -- ACTUAL_PARAMETER_PART ::=
4280 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4281
4282 --------------------------------
4283 -- 6.4 Parameter Association --
4284 --------------------------------
4285
4286 -- PARAMETER_ASSOCIATION ::=
4287 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4288
4289 -- Note: the N_Parameter_Association node is built only if a formal
4290 -- parameter selector name is present, otherwise the parameter
4291 -- association appears in the tree simply as the node for the
4292 -- explicit actual parameter.
4293
4294 -- N_Parameter_Association
4295 -- Sloc points to formal parameter
4296 -- Selector_Name (Node2) (always non-Empty)
4297 -- Explicit_Actual_Parameter (Node3)
4298 -- Next_Named_Actual (Node4-Sem)
4299
4300 ---------------------------
4301 -- 6.4 Actual Parameter --
4302 ---------------------------
4303
4304 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4305
4306 ---------------------------
4307 -- 6.5 Return Statement --
4308 ---------------------------
4309
4310 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4311
4312 -- In Ada 2005, we have:
4313
4314 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4315
4316 -- EXTENDED_RETURN_STATEMENT ::=
4317 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4318 -- [:= EXPRESSION] [do
4319 -- HANDLED_SEQUENCE_OF_STATEMENTS
4320 -- end return];
4321
4322 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4323
4324 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal
4325
4326 -- N_Return_Statement
4327 -- Sloc points to RETURN
4328 -- Return_Statement_Entity (Node5-Sem)
4329 -- Expression (Node3) (set to Empty if no expression present)
4330 -- Storage_Pool (Node1-Sem)
4331 -- Procedure_To_Call (Node2-Sem)
4332 -- Do_Tag_Check (Flag13-Sem)
4333 -- By_Ref (Flag5-Sem)
4334 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4335
4336 -- ???N_Return_Statement represents a simple_return_statement,
4337 -- and should be renamed to N_Simple_Return_Statement.
4338
4339 -- Note: Return_Statement_Entity points to an E_Return_Statement
4340
4341 -- If a range check is required, then Do_Range_Check is set on the
4342 -- Expression. The check is against the return subtype of the function.
4343
4344 -- N_Extended_Return_Statement
4345 -- Sloc points to RETURN
4346 -- Return_Statement_Entity (Node5-Sem)
4347 -- Return_Object_Declarations (List3)
4348 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4349 -- Storage_Pool (Node1-Sem)
4350 -- Procedure_To_Call (Node2-Sem)
4351 -- Do_Tag_Check (Flag13-Sem)
4352 -- By_Ref (Flag5-Sem)
4353
4354 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4355 -- Note that Return_Object_Declarations is a list containing the
4356 -- N_Object_Declaration -- see comment on this field above.
4357 -- The declared object will have Is_Return_Object = True.
4358 -- There is no such syntactic category as return_object_declaration
4359 -- in the RM. Return_Object_Declarations represents this portion of
4360 -- the syntax for EXTENDED_RETURN_STATEMENT:
4361 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4362 -- [:= EXPRESSION]
4363
4364 -- There are two entities associated with an extended_return_statement:
4365 -- the Return_Statement_Entity represents the statement itself, and the
4366 -- Defining_Identifier of the Object_Declaration in
4367 -- Return_Object_Declarations represents the object being
4368 -- returned. N_Return_Statement has only the former.
4369
4370 ------------------------------
4371 -- 7.1 Package Declaration --
4372 ------------------------------
4373
4374 -- PACKAGE_DECLARATION ::= PACKAGE_SPECIFICATION;
4375
4376 -- Note: the activation chain entity for a package spec is used for
4377 -- all tasks declared in the package spec, or in the package body.
4378
4379 -- N_Package_Declaration
4380 -- Sloc points to PACKAGE
4381 -- Specification (Node1)
4382 -- Corresponding_Body (Node5-Sem)
4383 -- Parent_Spec (Node4-Sem)
4384 -- Activation_Chain_Entity (Node3-Sem)
4385
4386 --------------------------------
4387 -- 7.1 Package Specification --
4388 --------------------------------
4389
4390 -- PACKAGE_SPECIFICATION ::=
4391 -- package DEFINING_PROGRAM_UNIT_NAME is
4392 -- {BASIC_DECLARATIVE_ITEM}
4393 -- [private
4394 -- {BASIC_DECLARATIVE_ITEM}]
4395 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4396
4397 -- N_Package_Specification
4398 -- Sloc points to PACKAGE
4399 -- Defining_Unit_Name (Node1)
4400 -- Visible_Declarations (List2)
4401 -- Private_Declarations (List3) (set to No_List if no private
4402 -- part present)
4403 -- End_Label (Node4)
4404 -- Generic_Parent (Node5-Sem)
4405 -- Limited_View_Installed (Flag18-Sem)
4406
4407 -----------------------
4408 -- 7.1 Package Body --
4409 -----------------------
4410
4411 -- PACKAGE_BODY ::=
4412 -- package body DEFINING_PROGRAM_UNIT_NAME is
4413 -- DECLARATIVE_PART
4414 -- [begin
4415 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4416 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4417
4418 -- N_Package_Body
4419 -- Sloc points to PACKAGE
4420 -- Defining_Unit_Name (Node1)
4421 -- Declarations (List2)
4422 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4423 -- Corresponding_Spec (Node5-Sem)
4424 -- Was_Originally_Stub (Flag13-Sem)
4425
4426 -- Note: if a source level package does not contain a handled sequence
4427 -- of statements, then the parser supplies a dummy one with a null
4428 -- sequence of statements. Comes_From_Source will be False in this
4429 -- constructed sequence. The reason we need this is for the End_Label
4430 -- field in the HSS.
4431
4432 -----------------------------------
4433 -- 7.4 Private Type Declaration --
4434 -----------------------------------
4435
4436 -- PRIVATE_TYPE_DECLARATION ::=
4437 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4438 -- is [[abstract] tagged] [limited] private;
4439
4440 -- Note: TAGGED is not permitted in Ada 83 mode
4441
4442 -- N_Private_Type_Declaration
4443 -- Sloc points to TYPE
4444 -- Defining_Identifier (Node1)
4445 -- Discriminant_Specifications (List4) (set to No_List if no
4446 -- discriminant part)
4447 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4448 -- Abstract_Present (Flag4)
4449 -- Tagged_Present (Flag15)
4450 -- Limited_Present (Flag17)
4451
4452 ----------------------------------------
4453 -- 7.4 Private Extension Declaration --
4454 ----------------------------------------
4455
4456 -- PRIVATE_EXTENSION_DECLARATION ::=
4457 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4458 -- [abstract] [limited | synchronized]
4459 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4460 -- with private;
4461
4462 -- Note: LIMITED, and private extension declarations are not allowed
4463 -- in Ada 83 mode.
4464
4465 -- N_Private_Extension_Declaration
4466 -- Sloc points to TYPE
4467 -- Defining_Identifier (Node1)
4468 -- Discriminant_Specifications (List4) (set to No_List if no
4469 -- discriminant part)
4470 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4471 -- Abstract_Present (Flag4)
4472 -- Limited_Present (Flag17)
4473 -- Synchronized_Present (Flag7)
4474 -- Subtype_Indication (Node5)
4475 -- Interface_List (List2) (set to No_List if none)
4476
4477 ---------------------
4478 -- 8.4 Use Clause --
4479 ---------------------
4480
4481 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4482
4483 -----------------------------
4484 -- 8.4 Use Package Clause --
4485 -----------------------------
4486
4487 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4488
4489 -- N_Use_Package_Clause
4490 -- Sloc points to USE
4491 -- Names (List2)
4492 -- Next_Use_Clause (Node3-Sem)
4493 -- Hidden_By_Use_Clause (Elist4-Sem)
4494
4495 --------------------------
4496 -- 8.4 Use Type Clause --
4497 --------------------------
4498
4499 -- USE_TYPE_CLAUSE ::= use type SUBTYPE_MARK {, SUBTYPE_MARK};
4500
4501 -- Note: use type clause is not permitted in Ada 83 mode
4502
4503 -- N_Use_Type_Clause
4504 -- Sloc points to USE
4505 -- Subtype_Marks (List2)
4506 -- Next_Use_Clause (Node3-Sem)
4507 -- Hidden_By_Use_Clause (Elist4-Sem)
4508
4509 -------------------------------
4510 -- 8.5 Renaming Declaration --
4511 -------------------------------
4512
4513 -- RENAMING_DECLARATION ::=
4514 -- OBJECT_RENAMING_DECLARATION
4515 -- | EXCEPTION_RENAMING_DECLARATION
4516 -- | PACKAGE_RENAMING_DECLARATION
4517 -- | SUBPROGRAM_RENAMING_DECLARATION
4518 -- | GENERIC_RENAMING_DECLARATION
4519
4520 --------------------------------------
4521 -- 8.5 Object Renaming Declaration --
4522 --------------------------------------
4523
4524 -- OBJECT_RENAMING_DECLARATION ::=
4525 -- DEFINING_IDENTIFIER :
4526 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4527 -- | DEFINING_IDENTIFIER :
4528 -- ACCESS_DEFINITION renames object_NAME;
4529
4530 -- Note: Access_Definition is an optional field that gives support to
4531 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4532 -- Subtype_Indication field or else the Access_Definition field.
4533
4534 -- N_Object_Renaming_Declaration
4535 -- Sloc points to first identifier
4536 -- Defining_Identifier (Node1)
4537 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4538 -- Subtype_Mark (Node4) (set to Empty if not present)
4539 -- Access_Definition (Node3) (set to Empty if not present)
4540 -- Name (Node2)
4541 -- Corresponding_Generic_Association (Node5-Sem)
4542
4543 -----------------------------------------
4544 -- 8.5 Exception Renaming Declaration --
4545 -----------------------------------------
4546
4547 -- EXCEPTION_RENAMING_DECLARATION ::=
4548 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4549
4550 -- N_Exception_Renaming_Declaration
4551 -- Sloc points to first identifier
4552 -- Defining_Identifier (Node1)
4553 -- Name (Node2)
4554
4555 ---------------------------------------
4556 -- 8.5 Package Renaming Declaration --
4557 ---------------------------------------
4558
4559 -- PACKAGE_RENAMING_DECLARATION ::=
4560 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4561
4562 -- N_Package_Renaming_Declaration
4563 -- Sloc points to PACKAGE
4564 -- Defining_Unit_Name (Node1)
4565 -- Name (Node2)
4566 -- Parent_Spec (Node4-Sem)
4567
4568 ------------------------------------------
4569 -- 8.5 Subprogram Renaming Declaration --
4570 ------------------------------------------
4571
4572 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4573 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4574
4575 -- N_Subprogram_Renaming_Declaration
4576 -- Sloc points to RENAMES
4577 -- Specification (Node1)
4578 -- Name (Node2)
4579 -- Parent_Spec (Node4-Sem)
4580 -- Corresponding_Spec (Node5-Sem)
4581 -- Corresponding_Formal_Spec (Node3-Sem)
4582 -- From_Default (Flag6-Sem)
4583
4584 -----------------------------------------
4585 -- 8.5.5 Generic Renaming Declaration --
4586 -----------------------------------------
4587
4588 -- GENERIC_RENAMING_DECLARATION ::=
4589 -- generic package DEFINING_PROGRAM_UNIT_NAME
4590 -- renames generic_package_NAME
4591 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
4592 -- renames generic_procedure_NAME
4593 -- | generic function DEFINING_PROGRAM_UNIT_NAME
4594 -- renames generic_function_NAME
4595
4596 -- N_Generic_Package_Renaming_Declaration
4597 -- Sloc points to GENERIC
4598 -- Defining_Unit_Name (Node1)
4599 -- Name (Node2)
4600 -- Parent_Spec (Node4-Sem)
4601
4602 -- N_Generic_Procedure_Renaming_Declaration
4603 -- Sloc points to GENERIC
4604 -- Defining_Unit_Name (Node1)
4605 -- Name (Node2)
4606 -- Parent_Spec (Node4-Sem)
4607
4608 -- N_Generic_Function_Renaming_Declaration
4609 -- Sloc points to GENERIC
4610 -- Defining_Unit_Name (Node1)
4611 -- Name (Node2)
4612 -- Parent_Spec (Node4-Sem)
4613
4614 --------------------------------
4615 -- 9.1 Task Type Declaration --
4616 --------------------------------
4617
4618 -- TASK_TYPE_DECLARATION ::=
4619 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4620 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4621
4622 -- N_Task_Type_Declaration
4623 -- Sloc points to TASK
4624 -- Defining_Identifier (Node1)
4625 -- Discriminant_Specifications (List4) (set to No_List if no
4626 -- discriminant part)
4627 -- Interface_List (List2) (set to No_List if none)
4628 -- Task_Definition (Node3) (set to Empty if not present)
4629 -- Corresponding_Body (Node5-Sem)
4630
4631 ----------------------------------
4632 -- 9.1 Single Task Declaration --
4633 ----------------------------------
4634
4635 -- SINGLE_TASK_DECLARATION ::=
4636 -- task DEFINING_IDENTIFIER
4637 -- [is [new INTERFACE_LIST with] TASK_DEFINITITION];
4638
4639 -- N_Single_Task_Declaration
4640 -- Sloc points to TASK
4641 -- Defining_Identifier (Node1)
4642 -- Interface_List (List2) (set to No_List if none)
4643 -- Task_Definition (Node3) (set to Empty if not present)
4644
4645 --------------------------
4646 -- 9.1 Task Definition --
4647 --------------------------
4648
4649 -- TASK_DEFINITION ::=
4650 -- {TASK_ITEM}
4651 -- [private
4652 -- {TASK_ITEM}]
4653 -- end [task_IDENTIFIER]
4654
4655 -- Note: as a result of semantic analysis, the list of task items can
4656 -- include implicit type declarations resulting from entry families.
4657
4658 -- N_Task_Definition
4659 -- Sloc points to first token of task definition
4660 -- Visible_Declarations (List2)
4661 -- Private_Declarations (List3) (set to No_List if no private part)
4662 -- End_Label (Node4)
4663 -- Has_Priority_Pragma (Flag6-Sem)
4664 -- Has_Storage_Size_Pragma (Flag5-Sem)
4665 -- Has_Task_Info_Pragma (Flag7-Sem)
4666 -- Has_Task_Name_Pragma (Flag8-Sem)
4667
4668 --------------------
4669 -- 9.1 Task Item --
4670 --------------------
4671
4672 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
4673
4674 --------------------
4675 -- 9.1 Task Body --
4676 --------------------
4677
4678 -- TASK_BODY ::=
4679 -- task body task_DEFINING_IDENTIFIER is
4680 -- DECLARATIVE_PART
4681 -- begin
4682 -- HANDLED_SEQUENCE_OF_STATEMENTS
4683 -- end [task_IDENTIFIER];
4684
4685 -- Gigi restriction: This node never appears
4686
4687 -- N_Task_Body
4688 -- Sloc points to TASK
4689 -- Defining_Identifier (Node1)
4690 -- Declarations (List2)
4691 -- Handled_Statement_Sequence (Node4)
4692 -- Is_Task_Master (Flag5-Sem)
4693 -- Activation_Chain_Entity (Node3-Sem)
4694 -- Corresponding_Spec (Node5-Sem)
4695 -- Was_Originally_Stub (Flag13-Sem)
4696
4697 -------------------------------------
4698 -- 9.4 Protected Type Declaration --
4699 -------------------------------------
4700
4701 -- PROTECTED_TYPE_DECLARATION ::=
4702 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
4703 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4704
4705 -- Note: protected type declarations are not permitted in Ada 83 mode
4706
4707 -- N_Protected_Type_Declaration
4708 -- Sloc points to PROTECTED
4709 -- Defining_Identifier (Node1)
4710 -- Discriminant_Specifications (List4) (set to No_List if no
4711 -- discriminant part)
4712 -- Interface_List (List2) (set to No_List if none)
4713 -- Protected_Definition (Node3)
4714 -- Corresponding_Body (Node5-Sem)
4715
4716 ---------------------------------------
4717 -- 9.4 Single Protected Declaration --
4718 ---------------------------------------
4719
4720 -- SINGLE_PROTECTED_DECLARATION ::=
4721 -- protected DEFINING_IDENTIFIER
4722 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
4723
4724 -- Note: single protected declarations are not allowed in Ada 83 mode
4725
4726 -- N_Single_Protected_Declaration
4727 -- Sloc points to PROTECTED
4728 -- Defining_Identifier (Node1)
4729 -- Interface_List (List2) (set to No_List if none)
4730 -- Protected_Definition (Node3)
4731
4732 -------------------------------
4733 -- 9.4 Protected Definition --
4734 -------------------------------
4735
4736 -- PROTECTED_DEFINITION ::=
4737 -- {PROTECTED_OPERATION_DECLARATION}
4738 -- [private
4739 -- {PROTECTED_ELEMENT_DECLARATION}]
4740 -- end [protected_IDENTIFIER]
4741
4742 -- N_Protected_Definition
4743 -- Sloc points to first token of protected definition
4744 -- Visible_Declarations (List2)
4745 -- Private_Declarations (List3) (set to No_List if no private part)
4746 -- End_Label (Node4)
4747 -- Has_Priority_Pragma (Flag6-Sem)
4748
4749 ------------------------------------------
4750 -- 9.4 Protected Operation Declaration --
4751 ------------------------------------------
4752
4753 -- PROTECTED_OPERATION_DECLARATION ::=
4754 -- SUBPROGRAM_DECLARATION
4755 -- | ENTRY_DECLARATION
4756 -- | REPRESENTATION_CLAUSE
4757
4758 ----------------------------------------
4759 -- 9.4 Protected Element Declaration --
4760 ----------------------------------------
4761
4762 -- PROTECTED_ELEMENT_DECLARATION ::=
4763 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
4764
4765 -------------------------
4766 -- 9.4 Protected Body --
4767 -------------------------
4768
4769 -- PROTECTED_BODY ::=
4770 -- protected body DEFINING_IDENTIFIER is
4771 -- {PROTECTED_OPERATION_ITEM}
4772 -- end [protected_IDENTIFIER];
4773
4774 -- Note: protected bodies are not allowed in Ada 83 mode
4775
4776 -- Gigi restriction: This node never appears
4777
4778 -- N_Protected_Body
4779 -- Sloc points to PROTECTED
4780 -- Defining_Identifier (Node1)
4781 -- Declarations (List2) protected operation items (and pragmas)
4782 -- End_Label (Node4)
4783 -- Corresponding_Spec (Node5-Sem)
4784 -- Was_Originally_Stub (Flag13-Sem)
4785
4786 -----------------------------------
4787 -- 9.4 Protected Operation Item --
4788 -----------------------------------
4789
4790 -- PROTECTED_OPERATION_ITEM ::=
4791 -- SUBPROGRAM_DECLARATION
4792 -- | SUBPROGRAM_BODY
4793 -- | ENTRY_BODY
4794 -- | REPRESENTATION_CLAUSE
4795
4796 ------------------------------
4797 -- 9.5.2 Entry Declaration --
4798 ------------------------------
4799
4800 -- ENTRY_DECLARATION ::=
4801 -- [[not] overriding]
4802 -- entry DEFINING_IDENTIFIER
4803 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
4804
4805 -- N_Entry_Declaration
4806 -- Sloc points to ENTRY
4807 -- Defining_Identifier (Node1)
4808 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
4809 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4810 -- Corresponding_Body (Node5-Sem)
4811 -- Must_Override (Flag14) set if overriding indicator present
4812 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4813
4814 -- Note: overriding indicator is an Ada 2005 feature
4815
4816 -----------------------------
4817 -- 9.5.2 Accept statement --
4818 -----------------------------
4819
4820 -- ACCEPT_STATEMENT ::=
4821 -- accept entry_DIRECT_NAME
4822 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
4823 -- HANDLED_SEQUENCE_OF_STATEMENTS
4824 -- end [entry_IDENTIFIER]];
4825
4826 -- Gigi restriction: This node never appears
4827
4828 -- Note: there are no explicit declarations allowed in an accept
4829 -- statement. However, the implicit declarations for any statement
4830 -- identifiers (labels and block/loop identifiers) are declarations
4831 -- that belong logically to the accept statement, and that is why
4832 -- there is a Declarations field in this node.
4833
4834 -- N_Accept_Statement
4835 -- Sloc points to ACCEPT
4836 -- Entry_Direct_Name (Node1)
4837 -- Entry_Index (Node5) (set to Empty if not present)
4838 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4839 -- Handled_Statement_Sequence (Node4)
4840 -- Declarations (List2) (set to No_List if no declarations)
4841
4842 ------------------------
4843 -- 9.5.2 Entry Index --
4844 ------------------------
4845
4846 -- ENTRY_INDEX ::= EXPRESSION
4847
4848 -----------------------
4849 -- 9.5.2 Entry Body --
4850 -----------------------
4851
4852 -- ENTRY_BODY ::=
4853 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
4854 -- DECLARATIVE_PART
4855 -- begin
4856 -- HANDLED_SEQUENCE_OF_STATEMENTS
4857 -- end [entry_IDENTIFIER];
4858
4859 -- ENTRY_BARRIER ::= when CONDITION
4860
4861 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
4862 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
4863 -- too full (it would otherwise have too many fields)
4864
4865 -- Gigi restriction: This node never appears
4866
4867 -- N_Entry_Body
4868 -- Sloc points to ENTRY
4869 -- Defining_Identifier (Node1)
4870 -- Entry_Body_Formal_Part (Node5)
4871 -- Declarations (List2)
4872 -- Handled_Statement_Sequence (Node4)
4873 -- Activation_Chain_Entity (Node3-Sem)
4874
4875 -----------------------------------
4876 -- 9.5.2 Entry Body Formal Part --
4877 -----------------------------------
4878
4879 -- ENTRY_BODY_FORMAL_PART ::=
4880 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
4881
4882 -- Note that an entry body formal part node is present even if it is
4883 -- empty. This reflects the grammar, in which it is the components of
4884 -- the entry body formal part that are optional, not the entry body
4885 -- formal part itself. Also this means that the barrier condition
4886 -- always has somewhere to be stored.
4887
4888 -- Gigi restriction: This node never appears
4889
4890 -- N_Entry_Body_Formal_Part
4891 -- Sloc points to first token
4892 -- Entry_Index_Specification (Node4) (set to Empty if not present)
4893 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4894 -- Condition (Node1) from entry barrier of entry body
4895
4896 --------------------------
4897 -- 9.5.2 Entry Barrier --
4898 --------------------------
4899
4900 -- ENTRY_BARRIER ::= when CONDITION
4901
4902 --------------------------------------
4903 -- 9.5.2 Entry Index Specification --
4904 --------------------------------------
4905
4906 -- ENTRY_INDEX_SPECIFICATION ::=
4907 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
4908
4909 -- Gigi restriction: This node never appears
4910
4911 -- N_Entry_Index_Specification
4912 -- Sloc points to FOR
4913 -- Defining_Identifier (Node1)
4914 -- Discrete_Subtype_Definition (Node4)
4915
4916 ---------------------------------
4917 -- 9.5.3 Entry Call Statement --
4918 ---------------------------------
4919
4920 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
4921
4922 -- The parser may generate a procedure call for this construct. The
4923 -- semantic pass must correct this misidentification where needed.
4924
4925 -- Gigi restriction: This node never appears
4926
4927 -- N_Entry_Call_Statement
4928 -- Sloc points to first token of name
4929 -- Name (Node2)
4930 -- Parameter_Associations (List3) (set to No_List if no
4931 -- actual parameter part)
4932 -- First_Named_Actual (Node4-Sem)
4933
4934 ------------------------------
4935 -- 9.5.4 Requeue Statement --
4936 ------------------------------
4937
4938 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
4939
4940 -- Note: requeue statements are not permitted in Ada 83 mode
4941
4942 -- Gigi restriction: This node never appears
4943
4944 -- N_Requeue_Statement
4945 -- Sloc points to REQUEUE
4946 -- Name (Node2)
4947 -- Abort_Present (Flag15)
4948
4949 --------------------------
4950 -- 9.6 Delay Statement --
4951 --------------------------
4952
4953 -- DELAY_STATEMENT ::=
4954 -- DELAY_UNTIL_STATEMENT
4955 -- | DELAY_RELATIVE_STATEMENT
4956
4957 --------------------------------
4958 -- 9.6 Delay Until Statement --
4959 --------------------------------
4960
4961 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
4962
4963 -- Note: delay until statements are not permitted in Ada 83 mode
4964
4965 -- Gigi restriction: This node never appears
4966
4967 -- N_Delay_Until_Statement
4968 -- Sloc points to DELAY
4969 -- Expression (Node3)
4970
4971 -----------------------------------
4972 -- 9.6 Delay Relative Statement --
4973 -----------------------------------
4974
4975 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
4976
4977 -- Gigi restriction: This node never appears
4978
4979 -- N_Delay_Relative_Statement
4980 -- Sloc points to DELAY
4981 -- Expression (Node3)
4982
4983 ---------------------------
4984 -- 9.7 Select Statement --
4985 ---------------------------
4986
4987 -- SELECT_STATEMENT ::=
4988 -- SELECTIVE_ACCEPT
4989 -- | TIMED_ENTRY_CALL
4990 -- | CONDITIONAL_ENTRY_CALL
4991 -- | ASYNCHRONOUS_SELECT
4992
4993 -----------------------------
4994 -- 9.7.1 Selective Accept --
4995 -----------------------------
4996
4997 -- SELECTIVE_ACCEPT ::=
4998 -- select
4999 -- [GUARD]
5000 -- SELECT_ALTERNATIVE
5001 -- {or
5002 -- [GUARD]
5003 -- SELECT_ALTERNATIVE}
5004 -- [else
5005 -- SEQUENCE_OF_STATEMENTS]
5006 -- end select;
5007
5008 -- Gigi restriction: This node never appears
5009
5010 -- Note: the guard expression, if present, appears in the node for
5011 -- the select alternative.
5012
5013 -- N_Selective_Accept
5014 -- Sloc points to SELECT
5015 -- Select_Alternatives (List1)
5016 -- Else_Statements (List4) (set to No_List if no else part)
5017
5018 ------------------
5019 -- 9.7.1 Guard --
5020 ------------------
5021
5022 -- GUARD ::= when CONDITION =>
5023
5024 -- As noted above, the CONDITION that is part of a GUARD is included
5025 -- in the node for the select alernative for convenience.
5026
5027 -------------------------------
5028 -- 9.7.1 Select Alternative --
5029 -------------------------------
5030
5031 -- SELECT_ALTERNATIVE ::=
5032 -- ACCEPT_ALTERNATIVE
5033 -- | DELAY_ALTERNATIVE
5034 -- | TERMINATE_ALTERNATIVE
5035
5036 -------------------------------
5037 -- 9.7.1 Accept Alternative --
5038 -------------------------------
5039
5040 -- ACCEPT_ALTERNATIVE ::=
5041 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5042
5043 -- Gigi restriction: This node never appears
5044
5045 -- N_Accept_Alternative
5046 -- Sloc points to ACCEPT
5047 -- Accept_Statement (Node2)
5048 -- Condition (Node1) from the guard (set to Empty if no guard present)
5049 -- Statements (List3) (set to Empty_List if no statements)
5050 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5051 -- Accept_Handler_Records (List5-Sem)
5052
5053 ------------------------------
5054 -- 9.7.1 Delay Alternative --
5055 ------------------------------
5056
5057 -- DELAY_ALTERNATIVE ::=
5058 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5059
5060 -- Gigi restriction: This node never appears
5061
5062 -- N_Delay_Alternative
5063 -- Sloc points to DELAY
5064 -- Delay_Statement (Node2)
5065 -- Condition (Node1) from the guard (set to Empty if no guard present)
5066 -- Statements (List3) (set to Empty_List if no statements)
5067 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5068
5069 ----------------------------------
5070 -- 9.7.1 Terminate Alternative --
5071 ----------------------------------
5072
5073 -- TERMINATE_ALTERNATIVE ::= terminate;
5074
5075 -- Gigi restriction: This node never appears
5076
5077 -- N_Terminate_Alternative
5078 -- Sloc points to TERMINATE
5079 -- Condition (Node1) from the guard (set to Empty if no guard present)
5080 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5081 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5082
5083 -----------------------------
5084 -- 9.7.2 Timed Entry Call --
5085 -----------------------------
5086
5087 -- TIMED_ENTRY_CALL ::=
5088 -- select
5089 -- ENTRY_CALL_ALTERNATIVE
5090 -- or
5091 -- DELAY_ALTERNATIVE
5092 -- end select;
5093
5094 -- Gigi restriction: This node never appears
5095
5096 -- N_Timed_Entry_Call
5097 -- Sloc points to SELECT
5098 -- Entry_Call_Alternative (Node1)
5099 -- Delay_Alternative (Node4)
5100
5101 -----------------------------------
5102 -- 9.7.2 Entry Call Alternative --
5103 -----------------------------------
5104
5105 -- ENTRY_CALL_ALTERNATIVE ::=
5106 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5107
5108 -- PROCEDURE_OR_ENTRY_CALL ::=
5109 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5110
5111 -- Gigi restriction: This node never appears
5112
5113 -- N_Entry_Call_Alternative
5114 -- Sloc points to first token of entry call statement
5115 -- Entry_Call_Statement (Node1)
5116 -- Statements (List3) (set to Empty_List if no statements)
5117 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5118
5119 -----------------------------------
5120 -- 9.7.3 Conditional Entry Call --
5121 -----------------------------------
5122
5123 -- CONDITIONAL_ENTRY_CALL ::=
5124 -- select
5125 -- ENTRY_CALL_ALTERNATIVE
5126 -- else
5127 -- SEQUENCE_OF_STATEMENTS
5128 -- end select;
5129
5130 -- Gigi restriction: This node never appears
5131
5132 -- N_Conditional_Entry_Call
5133 -- Sloc points to SELECT
5134 -- Entry_Call_Alternative (Node1)
5135 -- Else_Statements (List4)
5136
5137 --------------------------------
5138 -- 9.7.4 Asynchronous Select --
5139 --------------------------------
5140
5141 -- ASYNCHRONOUS_SELECT ::=
5142 -- select
5143 -- TRIGGERING_ALTERNATIVE
5144 -- then abort
5145 -- ABORTABLE_PART
5146 -- end select;
5147
5148 -- Note: asynchronous select is not permitted in Ada 83 mode
5149
5150 -- Gigi restriction: This node never appears
5151
5152 -- N_Asynchronous_Select
5153 -- Sloc points to SELECT
5154 -- Triggering_Alternative (Node1)
5155 -- Abortable_Part (Node2)
5156
5157 -----------------------------------
5158 -- 9.7.4 Triggering Alternative --
5159 -----------------------------------
5160
5161 -- TRIGGERING_ALTERNATIVE ::=
5162 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5163
5164 -- Gigi restriction: This node never appears
5165
5166 -- N_Triggering_Alternative
5167 -- Sloc points to first token of triggering statement
5168 -- Triggering_Statement (Node1)
5169 -- Statements (List3) (set to Empty_List if no statements)
5170 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5171
5172 ---------------------------------
5173 -- 9.7.4 Triggering Statement --
5174 ---------------------------------
5175
5176 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5177
5178 ---------------------------
5179 -- 9.7.4 Abortable Part --
5180 ---------------------------
5181
5182 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5183
5184 -- Gigi restriction: This node never appears
5185
5186 -- N_Abortable_Part
5187 -- Sloc points to ABORT
5188 -- Statements (List3)
5189
5190 --------------------------
5191 -- 9.8 Abort Statement --
5192 --------------------------
5193
5194 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5195
5196 -- Gigi restriction: This node never appears
5197
5198 -- N_Abort_Statement
5199 -- Sloc points to ABORT
5200 -- Names (List2)
5201
5202 -------------------------
5203 -- 10.1.1 Compilation --
5204 -------------------------
5205
5206 -- COMPILATION ::= {COMPILATION_UNIT}
5207
5208 -- There is no explicit node in the tree for a compilation, since in
5209 -- general the compiler is processing only a single compilation unit
5210 -- at a time. It is possible to parse multiple units in syntax check
5211 -- only mode, but they the trees are discarded in any case.
5212
5213 ------------------------------
5214 -- 10.1.1 Compilation Unit --
5215 ------------------------------
5216
5217 -- COMPILATION_UNIT ::=
5218 -- CONTEXT_CLAUSE LIBRARY_ITEM
5219 -- | CONTEXT_CLAUSE SUBUNIT
5220
5221 -- The N_Compilation_Unit node itself respresents the above syntax.
5222 -- However, there are two additional items not reflected in the above
5223 -- syntax. First we have the global declarations that are added by the
5224 -- code generator. These are outer level declarations (so they cannot
5225 -- be represented as being inside the units). An example is the wrapper
5226 -- subprograms that are created to do ABE checking. As always a list of
5227 -- declarations can contain actions as well (i.e. statements), and such
5228 -- statements are executed as part of the elaboration of the unit. Note
5229 -- that all such declarations are elaborated before the library unit.
5230
5231 -- Similarly, certain actions need to be elaborated at the completion
5232 -- of elaboration of the library unit (notably the statement that sets
5233 -- the Boolean flag indicating that elaboration is complete).
5234
5235 -- The third item not reflected in the syntax is pragmas that appear
5236 -- after the compilation unit. As always pragmas are a problem since
5237 -- they are not part of the formal syntax, but can be stuck into the
5238 -- source following a set of ad hoc rules, and we have to find an ad
5239 -- hoc way of sticking them into the tree. For pragmas that appear
5240 -- before the library unit, we just consider them to be part of the
5241 -- context clause, and pragmas can appear in the Context_Items list
5242 -- of the compilation unit. However, pragmas can also appear after
5243 -- the library item.
5244
5245 -- To deal with all these problems, we create an auxiliary node for
5246 -- a compilation unit, referenced from the N_Compilation_Unit node
5247 -- that contains these three items.
5248
5249 -- N_Compilation_Unit
5250 -- Sloc points to first token of defining unit name
5251 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5252 -- Context_Items (List1) context items and pragmas preceding unit
5253 -- Private_Present (Flag15) set if library unit has private keyword
5254 -- Unit (Node2) library item or subunit
5255 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5256 -- Has_No_Elaboration_Code (Flag17-Sem)
5257 -- Body_Required (Flag13-Sem) set for spec if body is required
5258 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5259 -- First_Inlined_Subprogram (Node3-Sem)
5260
5261 -- N_Compilation_Unit_Aux
5262 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5263 -- Declarations (List2) (set to No_List if no global declarations)
5264 -- Actions (List1) (set to No_List if no actions)
5265 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5266 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5267
5268 --------------------------
5269 -- 10.1.1 Library Item --
5270 --------------------------
5271
5272 -- LIBRARY_ITEM ::=
5273 -- [private] LIBRARY_UNIT_DECLARATION
5274 -- | LIBRARY_UNIT_BODY
5275 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5276
5277 -- Note: PRIVATE is not allowed in Ada 83 mode
5278
5279 -- There is no explicit node in the tree for library item, instead
5280 -- the declaration or body, and the flag for private if present,
5281 -- appear in the N_Compilation_Unit clause.
5282
5283 ----------------------------------------
5284 -- 10.1.1 Library Unit Declararation --
5285 ----------------------------------------
5286
5287 -- LIBRARY_UNIT_DECLARATION ::=
5288 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5289 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5290
5291 -------------------------------------------------
5292 -- 10.1.1 Library Unit Renaming Declararation --
5293 -------------------------------------------------
5294
5295 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5296 -- PACKAGE_RENAMING_DECLARATION
5297 -- | GENERIC_RENAMING_DECLARATION
5298 -- | SUBPROGRAM_RENAMING_DECLARATION
5299
5300 -------------------------------
5301 -- 10.1.1 Library unit body --
5302 -------------------------------
5303
5304 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5305
5306 ------------------------------
5307 -- 10.1.1 Parent Unit Name --
5308 ------------------------------
5309
5310 -- PARENT_UNIT_NAME ::= NAME
5311
5312 ----------------------------
5313 -- 10.1.2 Context clause --
5314 ----------------------------
5315
5316 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5317
5318 -- The context clause can include pragmas, and any pragmas that appear
5319 -- before the context clause proper (i.e. all configuration pragmas,
5320 -- also appear at the front of this list).
5321
5322 --------------------------
5323 -- 10.1.2 Context_Item --
5324 --------------------------
5325
5326 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5327
5328 -------------------------
5329 -- 10.1.2 With clause --
5330 -------------------------
5331
5332 -- WITH_CLAUSE ::=
5333 -- with library_unit_NAME {,library_unit_NAME};
5334
5335 -- A separate With clause is built for each name, so that we have
5336 -- a Corresponding_Spec field for each with'ed spec. The flags
5337 -- First_Name and Last_Name are used to reconstruct the exact
5338 -- source form. When a list of names appears in one with clause,
5339 -- the first name in the list has First_Name set, and the last
5340 -- has Last_Name set. If the with clause has only one name, then
5341 -- both of the flags First_Name and Last_Name are set in this name.
5342
5343 -- Note: in the case of implicit with's that are installed by the
5344 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5345 -- set to Standard_Location, but it is incorrect to test the Sloc
5346 -- to find out if a with clause is implicit, test the flag instead.
5347
5348 -- N_With_Clause
5349 -- Sloc points to first token of library unit name
5350 -- Name (Node2)
5351 -- Library_Unit (Node4-Sem)
5352 -- Corresponding_Spec (Node5-Sem)
5353 -- First_Name (Flag5) (set to True if first name or only one name)
5354 -- Last_Name (Flag6) (set to True if last name or only one name)
5355 -- Context_Installed (Flag13-Sem)
5356 -- Elaborate_Present (Flag4-Sem)
5357 -- Elaborate_All_Present (Flag14-Sem)
5358 -- Elaborate_All_Desirable (Flag9-Sem)
5359 -- Elaborate_Desirable (Flag11-Sem)
5360 -- Private_Present (Flag15) set if with_clause has private keyword
5361 -- Implicit_With (Flag16-Sem)
5362 -- Limited_Present (Flag17) set if LIMITED is present
5363 -- Limited_View_Installed (Flag18-Sem)
5364 -- Unreferenced_In_Spec (Flag7-Sem)
5365 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5366
5367 -- Note: Limited_Present and Limited_View_Installed give support to
5368 -- Ada 2005 (AI-50217).
5369 -- Similarly, Private_Present gives support to AI-50262.
5370
5371 ----------------------
5372 -- With_Type clause --
5373 ----------------------
5374
5375 -- This is a GNAT extension, used to implement mutually recursive
5376 -- types declared in different packages.
5377
5378 -- WITH_TYPE_CLAUSE ::=
5379 -- with type type_NAME is access | with type type_NAME is tagged
5380
5381 -- N_With_Type_Clause
5382 -- Sloc points to first token of type name
5383 -- Name (Node2)
5384 -- Tagged_Present (Flag15)
5385
5386 ---------------------
5387 -- 10.2 Body stub --
5388 ---------------------
5389
5390 -- BODY_STUB ::=
5391 -- SUBPROGRAM_BODY_STUB
5392 -- | PACKAGE_BODY_STUB
5393 -- | TASK_BODY_STUB
5394 -- | PROTECTED_BODY_STUB
5395
5396 ----------------------------------
5397 -- 10.1.3 Subprogram Body Stub --
5398 ----------------------------------
5399
5400 -- SUBPROGRAM_BODY_STUB ::=
5401 -- SUBPROGRAM_SPECIFICATION is separate;
5402
5403 -- N_Subprogram_Body_Stub
5404 -- Sloc points to FUNCTION or PROCEDURE
5405 -- Specification (Node1)
5406 -- Library_Unit (Node4-Sem) points to the subunit
5407 -- Corresponding_Body (Node5-Sem)
5408
5409 -------------------------------
5410 -- 10.1.3 Package Body Stub --
5411 -------------------------------
5412
5413 -- PACKAGE_BODY_STUB ::=
5414 -- package body DEFINING_IDENTIFIER is separate;
5415
5416 -- N_Package_Body_Stub
5417 -- Sloc points to PACKAGE
5418 -- Defining_Identifier (Node1)
5419 -- Library_Unit (Node4-Sem) points to the subunit
5420 -- Corresponding_Body (Node5-Sem)
5421
5422 ----------------------------
5423 -- 10.1.3 Task Body Stub --
5424 ----------------------------
5425
5426 -- TASK_BODY_STUB ::=
5427 -- task body DEFINING_IDENTIFIER is separate;
5428
5429 -- N_Task_Body_Stub
5430 -- Sloc points to TASK
5431 -- Defining_Identifier (Node1)
5432 -- Library_Unit (Node4-Sem) points to the subunit
5433 -- Corresponding_Body (Node5-Sem)
5434
5435 ---------------------------------
5436 -- 10.1.3 Protected Body Stub --
5437 ---------------------------------
5438
5439 -- PROTECTED_BODY_STUB ::=
5440 -- protected body DEFINING_IDENTIFIER is separate;
5441
5442 -- Note: protected body stubs are not allowed in Ada 83 mode
5443
5444 -- N_Protected_Body_Stub
5445 -- Sloc points to PROTECTED
5446 -- Defining_Identifier (Node1)
5447 -- Library_Unit (Node4-Sem) points to the subunit
5448 -- Corresponding_Body (Node5-Sem)
5449
5450 ---------------------
5451 -- 10.1.3 Subunit --
5452 ---------------------
5453
5454 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5455
5456 -- N_Subunit
5457 -- Sloc points to SEPARATE
5458 -- Name (Node2) is the name of the parent unit
5459 -- Proper_Body (Node1) is the subunit body
5460 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5461
5462 ---------------------------------
5463 -- 11.1 Exception Declaration --
5464 ---------------------------------
5465
5466 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception;
5467
5468 -- For consistency with object declarations etc, the parser converts
5469 -- the case of multiple identifiers being declared to a series of
5470 -- declarations in which the expression is copied, using the More_Ids
5471 -- and Prev_Ids flags to remember the souce form as described in the
5472 -- section on "Handling of Defining Identifier Lists".
5473
5474 -- N_Exception_Declaration
5475 -- Sloc points to EXCEPTION
5476 -- Defining_Identifier (Node1)
5477 -- Expression (Node3-Sem)
5478 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5479 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5480
5481 ------------------------------------------
5482 -- 11.2 Handled Sequence Of Statements --
5483 ------------------------------------------
5484
5485 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5486 -- SEQUENCE_OF_STATEMENTS
5487 -- [exception
5488 -- EXCEPTION_HANDLER
5489 -- {EXCEPTION_HANDLER}]
5490 -- [at end
5491 -- cleanup_procedure_call (param, param, param, ...);]
5492
5493 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5494 -- used only internally currently, but is considered to be syntactic.
5495 -- At the moment, the only cleanup action allowed is a single call to
5496 -- a parameterless procedure, and the Identifier field of the node is
5497 -- the procedure to be called. Also there is a current restriction
5498 -- that exception handles and a cleanup cannot be present in the same
5499 -- frame, so at least one of Exception_Handlers or the Identifier must
5500 -- be missing.
5501
5502 -- Actually, more accurately, this restriction applies to the original
5503 -- source program. In the expanded tree, if the At_End_Proc field is
5504 -- present, then there will also be an exception handler of the form:
5505
5506 -- when all others =>
5507 -- cleanup;
5508 -- raise;
5509
5510 -- where cleanup is the procedure to be generated. The reason we do
5511 -- this is so that the front end can handle the necessary entries in
5512 -- the exception tables, and other exception handler actions required
5513 -- as part of the normal handling for exception handlers.
5514
5515 -- The AT END cleanup handler protects only the sequence of statements
5516 -- (not the associated declarations of the parent), just like exception
5517 -- handlers. The big difference is that the cleanup procedure is called
5518 -- on either a normal or an abnormal exit from the statement sequence.
5519
5520 -- Note: the list of Exception_Handlers can contain pragmas as well
5521 -- as actual handlers. In practice these pragmas can only occur at
5522 -- the start of the list, since any pragmas occurring later on will
5523 -- be included in the statement list of the corresponding handler.
5524
5525 -- Note: although in the Ada syntax, the sequence of statements in
5526 -- a handled sequence of statements can only contain statements, we
5527 -- allow free mixing of declarations and statements in the resulting
5528 -- expanded tree. This is for example used to deal with the case of
5529 -- a cleanup procedure that must handle declarations as well as the
5530 -- statements of a block.
5531
5532 -- N_Handled_Sequence_Of_Statements
5533 -- Sloc points to first token of first statement
5534 -- Statements (List3)
5535 -- End_Label (Node4) (set to Empty if expander generated)
5536 -- Exception_Handlers (List5) (set to No_List if none present)
5537 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5538 -- First_Real_Statement (Node2-Sem)
5539 -- Zero_Cost_Handling (Flag5-Sem)
5540
5541 -- Note: the parent always contains a Declarations field which contains
5542 -- declarations associated with the handled sequence of statements. This
5543 -- is true even in the case of an accept statement (see description of
5544 -- the N_Accept_Statement node).
5545
5546 -- End_Label refers to the containing construct
5547
5548 -----------------------------
5549 -- 11.2 Exception Handler --
5550 -----------------------------
5551
5552 -- EXCEPTION_HANDLER ::=
5553 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5554 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5555 -- SEQUENCE_OF_STATEMENTS
5556
5557 -- Note: choice parameter specification is not allowed in Ada 83 mode
5558
5559 -- N_Exception_Handler
5560 -- Sloc points to WHEN
5561 -- Choice_Parameter (Node2) (set to Empty if not present)
5562 -- Exception_Choices (List4)
5563 -- Statements (List3)
5564 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5565 -- Zero_Cost_Handling (Flag5-Sem)
5566 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5567 -- Local_Raise_Not_OK (Flag7-Sem)
5568
5569 ------------------------------------------
5570 -- 11.2 Choice parameter specification --
5571 ------------------------------------------
5572
5573 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5574
5575 ----------------------------
5576 -- 11.2 Exception Choice --
5577 ----------------------------
5578
5579 -- EXCEPTION_CHOICE ::= exception_NAME | others
5580
5581 -- Except in the case of OTHERS, no explicit node appears in the tree
5582 -- for exception choice. Instead the exception name appears directly.
5583 -- An OTHERS choice is represented by a N_Others_Choice node (see
5584 -- section 3.8.1.
5585
5586 -- Note: for the exception choice created for an at end handler, the
5587 -- exception choice is an N_Others_Choice node with All_Others set.
5588
5589 ---------------------------
5590 -- 11.3 Raise Statement --
5591 ---------------------------
5592
5593 -- RAISE_STATEMENT ::= raise [exception_NAME];
5594
5595 -- In Ada 2005, we have
5596
5597 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
5598
5599 -- N_Raise_Statement
5600 -- Sloc points to RAISE
5601 -- Name (Node2) (set to Empty if no exception name present)
5602 -- Expression (Node3) (set to Empty if no expression present)
5603
5604 -------------------------------
5605 -- 12.1 Generic Declaration --
5606 -------------------------------
5607
5608 -- GENERIC_DECLARATION ::=
5609 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
5610
5611 ------------------------------------------
5612 -- 12.1 Generic Subprogram Declaration --
5613 ------------------------------------------
5614
5615 -- GENERIC_SUBPROGRAM_DECLARATION ::=
5616 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
5617
5618 -- Note: Generic_Formal_Declarations can include pragmas
5619
5620 -- N_Generic_Subprogram_Declaration
5621 -- Sloc points to GENERIC
5622 -- Specification (Node1) subprogram specification
5623 -- Corresponding_Body (Node5-Sem)
5624 -- Generic_Formal_Declarations (List2) from generic formal part
5625 -- Parent_Spec (Node4-Sem)
5626
5627 ---------------------------------------
5628 -- 12.1 Generic Package Declaration --
5629 ---------------------------------------
5630
5631 -- GENERIC_PACKAGE_DECLARATION ::=
5632 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION;
5633
5634 -- Note: when we do generics right, the Activation_Chain_Entity entry
5635 -- for this node can be removed (since the expander won't see generic
5636 -- units any more)???.
5637
5638 -- Note: Generic_Formal_Declarations can include pragmas
5639
5640 -- N_Generic_Package_Declaration
5641 -- Sloc points to GENERIC
5642 -- Specification (Node1) package specification
5643 -- Corresponding_Body (Node5-Sem)
5644 -- Generic_Formal_Declarations (List2) from generic formal part
5645 -- Parent_Spec (Node4-Sem)
5646 -- Activation_Chain_Entity (Node3-Sem)
5647
5648 -------------------------------
5649 -- 12.1 Generic Formal Part --
5650 -------------------------------
5651
5652 -- GENERIC_FORMAL_PART ::=
5653 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
5654
5655 ------------------------------------------------
5656 -- 12.1 Generic Formal Parameter Declaration --
5657 ------------------------------------------------
5658
5659 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
5660 -- FORMAL_OBJECT_DECLARATION
5661 -- | FORMAL_TYPE_DECLARATION
5662 -- | FORMAL_SUBPROGRAM_DECLARATION
5663 -- | FORMAL_PACKAGE_DECLARATION
5664
5665 ---------------------------------
5666 -- 12.3 Generic Instantiation --
5667 ---------------------------------
5668
5669 -- GENERIC_INSTANTIATION ::=
5670 -- package DEFINING_PROGRAM_UNIT_NAME is
5671 -- new generic_package_NAME [GENERIC_ACTUAL_PART];
5672 -- | [[not] overriding]
5673 -- procedure DEFINING_PROGRAM_UNIT_NAME is
5674 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART];
5675 -- | [[not] overriding]
5676 -- function DEFINING_DESIGNATOR is
5677 -- new generic_function_NAME [GENERIC_ACTUAL_PART];
5678
5679 -- N_Package_Instantiation
5680 -- Sloc points to PACKAGE
5681 -- Defining_Unit_Name (Node1)
5682 -- Name (Node2)
5683 -- Generic_Associations (List3) (set to No_List if no
5684 -- generic actual part)
5685 -- Parent_Spec (Node4-Sem)
5686 -- Instance_Spec (Node5-Sem)
5687 -- ABE_Is_Certain (Flag18-Sem)
5688
5689 -- N_Procedure_Instantiation
5690 -- Sloc points to PROCEDURE
5691 -- Defining_Unit_Name (Node1)
5692 -- Name (Node2)
5693 -- Parent_Spec (Node4-Sem)
5694 -- Generic_Associations (List3) (set to No_List if no
5695 -- generic actual part)
5696 -- Instance_Spec (Node5-Sem)
5697 -- Must_Override (Flag14) set if overriding indicator present
5698 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5699 -- ABE_Is_Certain (Flag18-Sem)
5700
5701 -- N_Function_Instantiation
5702 -- Sloc points to FUNCTION
5703 -- Defining_Unit_Name (Node1)
5704 -- Name (Node2)
5705 -- Generic_Associations (List3) (set to No_List if no
5706 -- generic actual part)
5707 -- Parent_Spec (Node4-Sem)
5708 -- Instance_Spec (Node5-Sem)
5709 -- Must_Override (Flag14) set if overriding indicator present
5710 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5711 -- ABE_Is_Certain (Flag18-Sem)
5712
5713 -- Note: overriding indicator is an Ada 2005 feature
5714
5715 ------------------------------
5716 -- 12.3 Generic Actual Part --
5717 ------------------------------
5718
5719 -- GENERIC_ACTUAL_PART ::=
5720 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
5721
5722 -------------------------------
5723 -- 12.3 Generic Association --
5724 -------------------------------
5725
5726 -- GENERIC_ASSOCIATION ::=
5727 -- [generic_formal_parameter_SELECTOR_NAME =>]
5728
5729 -- Note: unlike the procedure call case, a generic association node
5730 -- is generated for every association, even if no formal is present.
5731 -- In this case the parser will leave the Selector_Name field set
5732 -- to Empty, to be filled in later by the semantic pass.
5733
5734 -- In Ada 2005, a formal may be associated with a box, if the
5735 -- association is part of the list of actuals for a formal package.
5736 -- If the association is given by OTHERS => <>, the association is
5737 -- an N_Others_Choice.
5738
5739 -- N_Generic_Association
5740 -- Sloc points to first token of generic association
5741 -- Selector_Name (Node2) (set to Empty if no formal
5742 -- parameter selector name)
5743 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
5744 -- Box_Present (Flag15) (for formal_package associations with a box)
5745
5746 ---------------------------------------------
5747 -- 12.3 Explicit Generic Actual Parameter --
5748 ---------------------------------------------
5749
5750 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
5751 -- EXPRESSION | variable_NAME | subprogram_NAME
5752 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
5753
5754 -------------------------------------
5755 -- 12.4 Formal Object Declaration --
5756 -------------------------------------
5757
5758 -- FORMAL_OBJECT_DECLARATION ::=
5759 -- DEFINING_IDENTIFIER_LIST :
5760 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION];
5761 -- | DEFINING_IDENTIFIER_LIST :
5762 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION];
5763
5764 -- Although the syntax allows multiple identifiers in the list, the
5765 -- semantics is as though successive declarations were given with
5766 -- identical type definition and expression components. To simplify
5767 -- semantic processing, the parser represents a multiple declaration
5768 -- case as a sequence of single declarations, using the More_Ids and
5769 -- Prev_Ids flags to preserve the original source form as described
5770 -- in the section on "Handling of Defining Identifier Lists".
5771
5772 -- N_Formal_Object_Declaration
5773 -- Sloc points to first identifier
5774 -- Defining_Identifier (Node1)
5775 -- In_Present (Flag15)
5776 -- Out_Present (Flag17)
5777 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5778 -- Subtype_Mark (Node4) (set to Empty if not present)
5779 -- Access_Definition (Node3) (set to Empty if not present)
5780 -- Default_Expression (Node5) (set to Empty if no default expression)
5781 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5782 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5783
5784 -----------------------------------
5785 -- 12.5 Formal Type Declaration --
5786 -----------------------------------
5787
5788 -- FORMAL_TYPE_DECLARATION ::=
5789 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5790 -- is FORMAL_TYPE_DEFINITION;
5791
5792 -- N_Formal_Type_Declaration
5793 -- Sloc points to TYPE
5794 -- Defining_Identifier (Node1)
5795 -- Formal_Type_Definition (Node3)
5796 -- Discriminant_Specifications (List4) (set to No_List if no
5797 -- discriminant part)
5798 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5799
5800 ----------------------------------
5801 -- 12.5 Formal type definition --
5802 ----------------------------------
5803
5804 -- FORMAL_TYPE_DEFINITION ::=
5805 -- FORMAL_PRIVATE_TYPE_DEFINITION
5806 -- | FORMAL_DERIVED_TYPE_DEFINITION
5807 -- | FORMAL_DISCRETE_TYPE_DEFINITION
5808 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
5809 -- | FORMAL_MODULAR_TYPE_DEFINITION
5810 -- | FORMAL_FLOATING_POINT_DEFINITION
5811 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
5812 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
5813 -- | FORMAL_ARRAY_TYPE_DEFINITION
5814 -- | FORMAL_ACCESS_TYPE_DEFINITION
5815 -- | FORMAL_INTERFACE_TYPE_DEFINITION
5816
5817 ---------------------------------------------
5818 -- 12.5.1 Formal Private Type Definition --
5819 ---------------------------------------------
5820
5821 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
5822 -- [[abstract] tagged] [limited] private
5823
5824 -- Note: TAGGED is not allowed in Ada 83 mode
5825
5826 -- N_Formal_Private_Type_Definition
5827 -- Sloc points to PRIVATE
5828 -- Abstract_Present (Flag4)
5829 -- Tagged_Present (Flag15)
5830 -- Limited_Present (Flag17)
5831
5832 --------------------------------------------
5833 -- 12.5.1 Formal Derived Type Definition --
5834 --------------------------------------------
5835
5836 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
5837 -- [abstract] [limited | synchronized]
5838 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
5839 -- Note: this construct is not allowed in Ada 83 mode
5840
5841 -- N_Formal_Derived_Type_Definition
5842 -- Sloc points to NEW
5843 -- Subtype_Mark (Node4)
5844 -- Private_Present (Flag15)
5845 -- Abstract_Present (Flag4)
5846 -- Limited_Present (Flag17)
5847 -- Synchronized_Present (Flag7)
5848 -- Interface_List (List2) (set to No_List if none)
5849
5850 ---------------------------------------------
5851 -- 12.5.2 Formal Discrete Type Definition --
5852 ---------------------------------------------
5853
5854 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
5855
5856 -- N_Formal_Discrete_Type_Definition
5857 -- Sloc points to (
5858
5859 ---------------------------------------------------
5860 -- 12.5.2 Formal Signed Integer Type Definition --
5861 ---------------------------------------------------
5862
5863 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
5864
5865 -- N_Formal_Signed_Integer_Type_Definition
5866 -- Sloc points to RANGE
5867
5868 --------------------------------------------
5869 -- 12.5.2 Formal Modular Type Definition --
5870 --------------------------------------------
5871
5872 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
5873
5874 -- N_Formal_Modular_Type_Definition
5875 -- Sloc points to MOD
5876
5877 ----------------------------------------------
5878 -- 12.5.2 Formal Floating Point Definition --
5879 ----------------------------------------------
5880
5881 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
5882
5883 -- N_Formal_Floating_Point_Definition
5884 -- Sloc points to DIGITS
5885
5886 ----------------------------------------------------
5887 -- 12.5.2 Formal Ordinary Fixed Point Definition --
5888 ----------------------------------------------------
5889
5890 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
5891
5892 -- N_Formal_Ordinary_Fixed_Point_Definition
5893 -- Sloc points to DELTA
5894
5895 ---------------------------------------------------
5896 -- 12.5.2 Formal Decimal Fixed Point Definition --
5897 ---------------------------------------------------
5898
5899 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
5900
5901 -- Note: formal decimal fixed point definition not allowed in Ada 83
5902
5903 -- N_Formal_Decimal_Fixed_Point_Definition
5904 -- Sloc points to DELTA
5905
5906 ------------------------------------------
5907 -- 12.5.3 Formal Array Type Definition --
5908 ------------------------------------------
5909
5910 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
5911
5912 -------------------------------------------
5913 -- 12.5.4 Formal Access Type Definition --
5914 -------------------------------------------
5915
5916 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
5917
5918 ----------------------------------------------
5919 -- 12.5.5 Formal Interface Type Definition --
5920 ----------------------------------------------
5921
5922 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
5923
5924 -----------------------------------------
5925 -- 12.6 Formal Subprogram Declaration --
5926 -----------------------------------------
5927
5928 -- FORMAL_SUBPROGRAM_DECLARATION ::=
5929 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
5930 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
5931
5932 --------------------------------------------------
5933 -- 12.6 Formal Concrete Subprogram Declaration --
5934 --------------------------------------------------
5935
5936 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
5937 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT];
5938
5939 -- N_Formal_Concrete_Subprogram_Declaration
5940 -- Sloc points to WITH
5941 -- Specification (Node1)
5942 -- Default_Name (Node2) (set to Empty if no subprogram default)
5943 -- Box_Present (Flag15)
5944
5945 -- Note: if no subprogram default is present, then Name is set
5946 -- to Empty, and Box_Present is False.
5947
5948 --------------------------------------------------
5949 -- 12.6 Formal Abstract Subprogram Declaration --
5950 --------------------------------------------------
5951
5952 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
5953 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT];
5954
5955 -- N_Formal_Abstract_Subprogram_Declaration
5956 -- Sloc points to WITH
5957 -- Specification (Node1)
5958 -- Default_Name (Node2) (set to Empty if no subprogram default)
5959 -- Box_Present (Flag15)
5960
5961 -- Note: if no subprogram default is present, then Name is set
5962 -- to Empty, and Box_Present is False.
5963
5964 ------------------------------
5965 -- 12.6 Subprogram Default --
5966 ------------------------------
5967
5968 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
5969
5970 -- There is no separate node in the tree for a subprogram default.
5971 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
5972 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
5973 -- default name or box indication, as needed.
5974
5975 ------------------------
5976 -- 12.6 Default Name --
5977 ------------------------
5978
5979 -- DEFAULT_NAME ::= NAME
5980
5981 --------------------------------------
5982 -- 12.7 Formal Package Declaration --
5983 --------------------------------------
5984
5985 -- FORMAL_PACKAGE_DECLARATION ::=
5986 -- with package DEFINING_IDENTIFIER
5987 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART;
5988
5989 -- Note: formal package declarations not allowed in Ada 83 mode
5990
5991 -- N_Formal_Package_Declaration
5992 -- Sloc points to WITH
5993 -- Defining_Identifier (Node1)
5994 -- Name (Node2)
5995 -- Generic_Associations (List3) (set to No_List if (<>) case or
5996 -- empty generic actual part)
5997 -- Box_Present (Flag15)
5998 -- Instance_Spec (Node5-Sem)
5999 -- ABE_Is_Certain (Flag18-Sem)
6000
6001 --------------------------------------
6002 -- 12.7 Formal Package Actual Part --
6003 --------------------------------------
6004
6005 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6006 -- ([OTHERS] => <>)
6007 -- | [GENERIC_ACTUAL_PART]
6008 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6009
6010 -- FORMAL_PACKAGE_ASSOCIATION ::=
6011 -- GENERIC_ASSOCIATION
6012 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6013
6014 -- There is no explicit node in the tree for a formal package actual
6015 -- part. Instead the information appears in the parent node (i.e. the
6016 -- formal package declaration node itself).
6017
6018 -- There is no explicit node for a formal package association. All of
6019 -- them are represented either by a generic association, possibly with
6020 -- Box_Present, or by an N_Others_Choice.
6021
6022 ---------------------------------
6023 -- 13.1 Representation clause --
6024 ---------------------------------
6025
6026 -- REPRESENTATION_CLAUSE ::=
6027 -- ATTRIBUTE_DEFINITION_CLAUSE
6028 -- | ENUMERATION_REPRESENTATION_CLAUSE
6029 -- | RECORD_REPRESENTATION_CLAUSE
6030 -- | AT_CLAUSE
6031
6032 ----------------------
6033 -- 13.1 Local Name --
6034 ----------------------
6035
6036 -- LOCAL_NAME :=
6037 -- DIRECT_NAME
6038 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6039 -- | library_unit_NAME
6040
6041 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6042 -- as an attribute reference, which has essentially the same form.
6043
6044 ---------------------------------------
6045 -- 13.3 Attribute definition clause --
6046 ---------------------------------------
6047
6048 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6049 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6050 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6051
6052 -- In Ada 83, the expression must be a simple expression and the
6053 -- local name must be a direct name.
6054
6055 -- Note: the only attribute definition clause that is processed by
6056 -- gigi is an address clause. For all other cases, the information
6057 -- is extracted by the front end and either results in setting entity
6058 -- information, e.g. Esize for the Size clause, or in appropriate
6059 -- expansion actions (e.g. in the case of Storage_Size).
6060
6061 -- For an address clause, Gigi constructs the appropriate addressing
6062 -- code. It also ensures that no aliasing optimizations are made
6063 -- for the object for which the address clause appears.
6064
6065 -- Note: for an address clause used to achieve an overlay:
6066
6067 -- A : Integer;
6068 -- B : Integer;
6069 -- for B'Address use A'Address;
6070
6071 -- the above rule means that Gigi will ensure that no optimizations
6072 -- will be made for B that would violate the implementation advice
6073 -- of RM 13.3(19). However, this advice applies only to B and not
6074 -- to A, which seems unfortunate. The GNAT front end will mark the
6075 -- object A as volatile to also prevent unwanted optimization
6076 -- assumptions based on no aliasing being made for B.
6077
6078 -- N_Attribute_Definition_Clause
6079 -- Sloc points to FOR
6080 -- Name (Node2) the local name
6081 -- Chars (Name1) the identifier name from the attribute designator
6082 -- Expression (Node3) the expression or name
6083 -- Entity (Node4-Sem)
6084 -- Next_Rep_Item (Node5-Sem)
6085 -- From_At_Mod (Flag4-Sem)
6086 -- Check_Address_Alignment (Flag11-Sem)
6087
6088 ---------------------------------------------
6089 -- 13.4 Enumeration representation clause --
6090 ---------------------------------------------
6091
6092 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6093 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6094
6095 -- In Ada 83, the name must be a direct name
6096
6097 -- N_Enumeration_Representation_Clause
6098 -- Sloc points to FOR
6099 -- Identifier (Node1) direct name
6100 -- Array_Aggregate (Node3)
6101 -- Next_Rep_Item (Node5-Sem)
6102
6103 ---------------------------------
6104 -- 13.4 Enumeration aggregate --
6105 ---------------------------------
6106
6107 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6108
6109 ------------------------------------------
6110 -- 13.5.1 Record representation clause --
6111 ------------------------------------------
6112
6113 -- RECORD_REPRESENTATION_CLAUSE ::=
6114 -- for first_subtype_LOCAL_NAME use
6115 -- record [MOD_CLAUSE]
6116 -- {COMPONENT_CLAUSE}
6117 -- end record;
6118
6119 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6120 -- replaced by a corresponding Alignment attribute definition clause).
6121
6122 -- Note: Component_Clauses can include pragmas
6123
6124 -- N_Record_Representation_Clause
6125 -- Sloc points to FOR
6126 -- Identifier (Node1) direct name
6127 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6128 -- Component_Clauses (List3)
6129 -- Next_Rep_Item (Node5-Sem)
6130
6131 ------------------------------
6132 -- 13.5.1 Component clause --
6133 ------------------------------
6134
6135 -- COMPONENT_CLAUSE ::=
6136 -- component_LOCAL_NAME at POSITION
6137 -- range FIRST_BIT .. LAST_BIT;
6138
6139 -- N_Component_Clause
6140 -- Sloc points to AT
6141 -- Component_Name (Node1) points to Name or Attribute_Reference
6142 -- Position (Node2)
6143 -- First_Bit (Node3)
6144 -- Last_Bit (Node4)
6145
6146 ----------------------
6147 -- 13.5.1 Position --
6148 ----------------------
6149
6150 -- POSITION ::= static_EXPRESSION
6151
6152 -----------------------
6153 -- 13.5.1 First_Bit --
6154 -----------------------
6155
6156 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6157
6158 ----------------------
6159 -- 13.5.1 Last_Bit --
6160 ----------------------
6161
6162 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6163
6164 --------------------------
6165 -- 13.8 Code statement --
6166 --------------------------
6167
6168 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6169
6170 -- Note: in GNAT, the qualified expression has the form
6171
6172 -- Asm_Insn'(Asm (...));
6173
6174 -- See package System.Machine_Code in file s-maccod.ads for details on
6175 -- the allowed parameters to Asm. There are two ways this node can
6176 -- arise, as a code statement, in which case the expression is the
6177 -- qualified expression, or as a result of the expansion of an intrinsic
6178 -- call to the Asm or Asm_Input procedure.
6179
6180 -- N_Code_Statement
6181 -- Sloc points to first token of the expression
6182 -- Expression (Node3)
6183
6184 -- Note: package Exp_Code contains an abstract functional interface
6185 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6186
6187 ------------------------
6188 -- 13.12 Restriction --
6189 ------------------------
6190
6191 -- RESTRICTION ::=
6192 -- restriction_IDENTIFIER
6193 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6194
6195 -- There is no explicit node for restrictions. Instead the restriction
6196 -- appears in normal pragma syntax as a pragma argument association,
6197 -- which has the same syntactic form.
6198
6199 --------------------------
6200 -- B.2 Shift Operators --
6201 --------------------------
6202
6203 -- Calls to the intrinsic shift functions are converted to one of
6204 -- the following shift nodes, which have the form of normal binary
6205 -- operator names. Note that for a given shift operation, one node
6206 -- covers all possible types, as for normal operators.
6207
6208 -- Note: it is perfectly permissible for the expander to generate
6209 -- shift operation nodes directly, in which case they will be analyzed
6210 -- and parsed in the usual manner.
6211
6212 -- Sprint syntax: shift-function-name!(expr, count)
6213
6214 -- Note: the Left_Opnd field holds the first argument (the value to
6215 -- be shifted). The Right_Opnd field holds the second argument (the
6216 -- shift count). The Chars field is the name of the intrinsic function.
6217
6218 -- N_Op_Rotate_Left
6219 -- Sloc points to the function name
6220 -- plus fields for binary operator
6221 -- plus fields for expression
6222 -- Shift_Count_OK (Flag4-Sem)
6223
6224 -- N_Op_Rotate_Right
6225 -- Sloc points to the function name
6226 -- plus fields for binary operator
6227 -- plus fields for expression
6228 -- Shift_Count_OK (Flag4-Sem)
6229
6230 -- N_Op_Shift_Left
6231 -- Sloc points to the function name
6232 -- plus fields for binary operator
6233 -- plus fields for expression
6234 -- Shift_Count_OK (Flag4-Sem)
6235
6236 -- N_Op_Shift_Right_Arithmetic
6237 -- Sloc points to the function name
6238 -- plus fields for binary operator
6239 -- plus fields for expression
6240 -- Shift_Count_OK (Flag4-Sem)
6241
6242 -- N_Op_Shift_Right
6243 -- Sloc points to the function name
6244 -- plus fields for binary operator
6245 -- plus fields for expression
6246 -- Shift_Count_OK (Flag4-Sem)
6247
6248 --------------------------
6249 -- Obsolescent Features --
6250 --------------------------
6251
6252 -- The syntax descriptions and tree nodes for obsolescent features are
6253 -- grouped together, corresponding to their location in appendix I in
6254 -- the RM. However, parsing and semantic analysis for these constructs
6255 -- is located in an appropriate chapter (see individual notes).
6256
6257 ---------------------------
6258 -- J.3 Delta Constraint --
6259 ---------------------------
6260
6261 -- Note: the parse routine for this construct is located in section
6262 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6263 -- where delta constraint logically belongs.
6264
6265 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6266
6267 -- N_Delta_Constraint
6268 -- Sloc points to DELTA
6269 -- Delta_Expression (Node3)
6270 -- Range_Constraint (Node4) (set to Empty if not present)
6271
6272 --------------------
6273 -- J.7 At Clause --
6274 --------------------
6275
6276 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6277
6278 -- Note: the parse routine for this construct is located in Par-Ch13,
6279 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6280 -- belongs if it were not obsolescent.
6281
6282 -- Note: in Ada 83 the expression must be a simple expression
6283
6284 -- Gigi restriction: This node never appears, it is rewritten as an
6285 -- address attribute definition clause.
6286
6287 -- N_At_Clause
6288 -- Sloc points to FOR
6289 -- Identifier (Node1)
6290 -- Expression (Node3)
6291
6292 ---------------------
6293 -- J.8 Mod clause --
6294 ---------------------
6295
6296 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6297
6298 -- Note: the parse routine for this construct is located in Par-Ch13,
6299 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6300 -- belongs if it were not obsolescent.
6301
6302 -- Note: in Ada 83, the expression must be a simple expression
6303
6304 -- Gigi restriction: this node never appears. It is replaced
6305 -- by a corresponding Alignment attribute definition clause.
6306
6307 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6308 -- its name has "clause" in it. This is rather strange, but is quite
6309 -- definitely specified. The pragmas before are collected in the
6310 -- Pragmas_Before field of the mod clause node itself, and pragmas
6311 -- after are simply swallowed up in the list of component clauses.
6312
6313 -- N_Mod_Clause
6314 -- Sloc points to AT
6315 -- Expression (Node3)
6316 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6317
6318 --------------------
6319 -- Semantic Nodes --
6320 --------------------
6321
6322 -- These semantic nodes are used to hold additional semantic information.
6323 -- They are inserted into the tree as a result of semantic processing.
6324 -- Although there are no legitimate source syntax constructions that
6325 -- correspond directly to these nodes, we need a source syntax for the
6326 -- reconstructed tree printed by Sprint, and the node descriptions here
6327 -- show this syntax.
6328
6329 ----------------------------
6330 -- Conditional Expression --
6331 ----------------------------
6332
6333 -- This node is used to represent an expression corresponding to the
6334 -- C construct (condition ? then-expression : else_expression), where
6335 -- Expressions is a three element list, whose first expression is the
6336 -- condition, and whose second and third expressions are the then and
6337 -- else expressions respectively.
6338
6339 -- Note: the Then_Actions and Else_Actions fields are always set to
6340 -- No_List in the tree passed to Gigi. These fields are used only
6341 -- for temporary processing purposes in the expander.
6342
6343 -- Sprint syntax: (if expr then expr else expr)
6344
6345 -- N_Conditional_Expression
6346 -- Sloc points to related node
6347 -- Expressions (List1)
6348 -- Then_Actions (List2-Sem)
6349 -- Else_Actions (List3-Sem)
6350 -- plus fields for expression
6351
6352 -- Note: in the case where a debug source file is generated, the Sloc
6353 -- for this node points to the IF keyword in the Sprint file output.
6354
6355 -------------------
6356 -- Expanded_Name --
6357 -------------------
6358
6359 -- The N_Expanded_Name node is used to represent a selected component
6360 -- name that has been resolved to an expanded name. The semantic phase
6361 -- replaces N_Selected_Component nodes that represent names by the use
6362 -- of this node, leaving the N_Selected_Component node used only when
6363 -- the prefix is a record or protected type.
6364
6365 -- The fields of the N_Expanded_Name node are layed out identically
6366 -- to those of the N_Selected_Component node, allowing conversion of
6367 -- an expanded name node to a selected component node to be done
6368 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6369
6370 -- There is no special sprint syntax for an expanded name
6371
6372 -- N_Expanded_Name
6373 -- Sloc points to the period
6374 -- Chars (Name1) copy of Chars field of selector name
6375 -- Prefix (Node3)
6376 -- Selector_Name (Node2)
6377 -- Entity (Node4-Sem)
6378 -- Associated_Node (Node4-Sem)
6379 -- Redundant_Use (Flag13-Sem)
6380 -- Has_Private_View (Flag11-Sem) set in generic units.
6381 -- plus fields for expression
6382
6383 --------------------
6384 -- Free Statement --
6385 --------------------
6386
6387 -- The N_Free_Statement node is generated as a result of a call to an
6388 -- instantiation of Unchecked_Deallocation. The instantiation of this
6389 -- generic is handled specially and generates this node directly.
6390
6391 -- Sprint syntax: free expression
6392
6393 -- N_Free_Statement
6394 -- Sloc is copied from the unchecked deallocation call
6395 -- Expression (Node3) argument to unchecked deallocation call
6396 -- Storage_Pool (Node1-Sem)
6397 -- Procedure_To_Call (Node2-Sem)
6398 -- Actual_Designated_Subtype (Node4-Sem)
6399
6400 -- Note: in the case where a debug source file is generated, the Sloc
6401 -- for this node points to the FREE keyword in the Sprint file output.
6402
6403 -------------------
6404 -- Freeze Entity --
6405 -------------------
6406
6407 -- This node marks the point in a declarative part at which an entity
6408 -- declared therein becomes frozen. The expander places initialization
6409 -- procedures for types at those points. Gigi uses the freezing point
6410 -- to elaborate entities that may depend on previous private types.
6411
6412 -- See the section in Einfo "Delayed Freezing and Elaboration" for
6413 -- a full description of the use of this node.
6414
6415 -- The Entity field points back to the entity for the type (whose
6416 -- Freeze_Node field points back to this freeze node).
6417
6418 -- The Actions field contains a list of declarations and statements
6419 -- generated by the expander which are associated with the freeze
6420 -- node, and are elaborated as though the freeze node were replaced
6421 -- by this sequence of actions.
6422
6423 -- Note: the Sloc field in the freeze node references a construct
6424 -- associated with the freezing point. This is used for posting
6425 -- messages in some error/warning situations, e.g. the case where
6426 -- a primitive operation of a tagged type is declared too late.
6427
6428 -- Sprint syntax: freeze entity-name [
6429 -- freeze actions
6430 -- ]
6431
6432 -- N_Freeze_Entity
6433 -- Sloc points near freeze point (see above special note)
6434 -- Entity (Node4-Sem)
6435 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
6436 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
6437 -- Actions (List1) (set to No_List if no freeze actions)
6438 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
6439
6440 -- The Actions field holds actions associated with the freeze. These
6441 -- actions are elaborated at the point where the type is frozen.
6442
6443 -- Note: in the case where a debug source file is generated, the Sloc
6444 -- for this node points to the FREEZE keyword in the Sprint file output.
6445
6446 --------------------------------
6447 -- Implicit Label Declaration --
6448 --------------------------------
6449
6450 -- An implicit label declaration is created for every occurrence of a
6451 -- label on a statement or a label on a block or loop. It is chained
6452 -- in the declarations of the innermost enclosing block as specified
6453 -- in RM section 5.1 (3).
6454
6455 -- The Defining_Identifier is the actual identifier for the
6456 -- statement identifier. Note that the occurrence of the label
6457 -- is a reference, NOT the defining occurrence. The defining
6458 -- occurrence occurs at the head of the innermost enclosing
6459 -- block, and is represented by this node.
6460
6461 -- Note: from the grammar, this might better be called an implicit
6462 -- statement identifier declaration, but the term we choose seems
6463 -- friendlier, since at least informally statement identifiers are
6464 -- called labels in both cases (i.e. when used in labels, and when
6465 -- used as the identifiers of blocks and loops).
6466
6467 -- Note: although this is logically a semantic node, since it does
6468 -- not correspond directly to a source syntax construction, these
6469 -- nodes are actually created by the parser in a post pass done just
6470 -- after parsing is complete, before semantic analysis is started (see
6471 -- the Par.Labl subunit in file par-labl.adb).
6472
6473 -- Sprint syntax: labelname : label;
6474
6475 -- N_Implicit_Label_Declaration
6476 -- Sloc points to the << of the label
6477 -- Defining_Identifier (Node1)
6478 -- Label_Construct (Node2-Sem)
6479
6480 -- Note: in the case where a debug source file is generated, the Sloc
6481 -- for this node points to the label name in the generated declaration.
6482
6483 ---------------------
6484 -- Itype_Reference --
6485 ---------------------
6486
6487 -- This node is used to create a reference to an Itype. The only
6488 -- purpose is to make sure that the Itype is defined if this is the
6489 -- first reference.
6490
6491 -- A typical use of this node is when an Itype is to be referenced in
6492 -- two branches of an if statement. In this case it is important that
6493 -- the first use of the Itype not be inside the conditional, since
6494 -- then it might not be defined if the wrong branch of the if is
6495 -- taken in the case where the definition generates elaboration code.
6496
6497 -- The Itype field points to the referenced Itype
6498
6499 -- sprint syntax: reference itype-name
6500
6501 -- N_Itype_Reference
6502 -- Sloc points to the node generating the reference
6503 -- Itype (Node1-Sem)
6504
6505 -- Note: in the case where a debug source file is generated, the Sloc
6506 -- for this node points to the REFERENCE keyword in the file output.
6507
6508 ---------------------
6509 -- Raise_xxx_Error --
6510 ---------------------
6511
6512 -- One of these nodes is created during semantic analysis to replace
6513 -- a node for an expression that is determined to definitely raise
6514 -- the corresponding exception.
6515
6516 -- The N_Raise_xxx_Error node may also stand alone in place
6517 -- of a declaration or statement, in which case it simply causes
6518 -- the exception to be raised (i.e. it is equivalent to a raise
6519 -- statement that raises the corresponding exception). This use
6520 -- is distinguished by the fact that the Etype in this case is
6521 -- Standard_Void_Type, In the subexprssion case, the Etype is the
6522 -- same as the type of the subexpression which it replaces.
6523
6524 -- If Condition is empty, then the raise is unconditional. If the
6525 -- Condition field is non-empty, it is a boolean expression which
6526 -- is first evaluated, and the exception is raised only if the
6527 -- value of the expression is True. In the unconditional case, the
6528 -- creation of this node is usually accompanied by a warning message
6529 -- error. The creation of this node will usually be accompanied by a
6530 -- message (unless it appears within the right operand of a short
6531 -- circuit form whose left argument is static and decisively
6532 -- eliminates elaboration of the raise operation. The condition field
6533 -- can ONLY be present when the node is used as a statement form, it
6534 -- may NOT be present in the case where the node appears within an
6535 -- expression.
6536
6537 -- The exception is generated with a message that contains the
6538 -- file name and line number, and then appended text. The Reason
6539 -- code shows the text to be added. The Reason code is an element
6540 -- of the type Types.RT_Exception_Code, and indicates both the
6541 -- message to be added, and the exception to be raised (which must
6542 -- match the node type). The value is stored by storing a Uint which
6543 -- is the Pos value of the enumeration element in this type.
6544
6545 -- Gigi restriction: This expander ensures that the type of the
6546 -- Condition field is always Standard.Boolean, even if the type
6547 -- in the source is some non-standard boolean type.
6548
6549 -- Sprint syntax: [xxx_error "msg"]
6550 -- or: [xxx_error when condition "msg"]
6551
6552 -- N_Raise_Constraint_Error
6553 -- Sloc references related construct
6554 -- Condition (Node1) (set to Empty if no condition)
6555 -- Reason (Uint3)
6556 -- plus fields for expression
6557
6558 -- N_Raise_Program_Error
6559 -- Sloc references related construct
6560 -- Condition (Node1) (set to Empty if no condition)
6561 -- Reason (Uint3)
6562 -- plus fields for expression
6563
6564 -- N_Raise_Storage_Error
6565 -- Sloc references related construct
6566 -- Condition (Node1) (set to Empty if no condition)
6567 -- Reason (Uint3)
6568 -- plus fields for expression
6569
6570 -- Note: Sloc is copied from the expression generating the exception.
6571 -- In the case where a debug source file is generated, the Sloc for
6572 -- this node points to the left bracket in the Sprint file output.
6573
6574 -- Note: the back end may be required to translate these nodes into
6575 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
6576
6577 ---------------------------------------------
6578 -- Optimization of Exception Raise to Goto --
6579 ---------------------------------------------
6580
6581 -- In some cases, the front end will determine that any exception raised
6582 -- by the back end for a certain exception should be transformed into a
6583 -- goto statement.
6584
6585 -- There are three kinds of exceptions raised by the back end (note that
6586 -- for this purpose we consider gigi to be part of the back end in the
6587 -- gcc case):
6588
6589 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
6590 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
6591 -- 3. Other cases not specifically marked by the front end
6592
6593 -- Normally all such exceptions are translated into calls to the proper
6594 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
6595 -- and the exception message.
6596
6597 -- The front end may determine that for a particular sequence of code,
6598 -- exceptions in any of these three categories for a particular builtin
6599 -- exception should result in a goto, rather than a call to Rcheck_xx.
6600 -- The exact sequence to be generated is:
6601
6602 -- Local_Raise (exception'Identity);
6603 -- goto Label
6604
6605 -- The front end marks such a sequence of code by bracketing it with
6606 -- push and pop nodes:
6607
6608 -- N_Push_xxx_Label (referencing the label)
6609 -- ...
6610 -- (code where transformation is expected for exception xxx)
6611 -- ...
6612 -- N_Pop_xxx_Label
6613
6614 -- The use of push/pop reflects the fact that such regions can properly
6615 -- nest, and one special case is a subregion in which no transformation
6616 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
6617 -- Exception_Label field is Empty.
6618
6619 -- N_Push_Constraint_Error_Label
6620 -- Sloc references first statement in region covered
6621 -- Exception_Label (Node5-Sem)
6622
6623 -- N_Push_Program_Error_Label
6624 -- Sloc references first statement in region covered
6625 -- Exception_Label (Node5-Sem)
6626
6627 -- N_Push_Storage_Error_Label
6628 -- Sloc references first statement in region covered
6629 -- Exception_Label (Node5-Sem)
6630
6631 -- N_Pop_Constraint_Error_Label
6632 -- Sloc references last statement in region covered
6633
6634 -- N_Pop_Program_Error_Label
6635 -- Sloc references last statement in region covered
6636
6637 -- N_Pop_Storage_Error_Label
6638 -- Sloc references last statement in region covered
6639
6640 ---------------
6641 -- Reference --
6642 ---------------
6643
6644 -- For a number of purposes, we need to construct references to objects.
6645 -- These references are subsequently treated as normal access values.
6646 -- An example is the construction of the parameter block passed to a
6647 -- task entry. The N_Reference node is provided for this purpose. It is
6648 -- similar in effect to the use of the Unrestricted_Access attribute,
6649 -- and like Unrestricted_Access can be applied to objects which would
6650 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
6651 -- objects which are not aliased, and slices). In addition it can be
6652 -- applied to composite type values as well as objects, including string
6653 -- values and aggregates.
6654
6655 -- Note: we use the Prefix field for this expression so that the
6656 -- resulting node can be treated using common code with the attribute
6657 -- nodes for the 'Access and related attributes. Logically it would make
6658 -- more sense to call it an Expression field, but then we would have to
6659 -- special case the treatment of the N_Reference node.
6660
6661 -- Sprint syntax: prefix'reference
6662
6663 -- N_Reference
6664 -- Sloc is copied from the expression
6665 -- Prefix (Node3)
6666 -- plus fields for expression
6667
6668 -- Note: in the case where a debug source file is generated, the Sloc
6669 -- for this node points to the quote in the Sprint file output.
6670
6671 ---------------------
6672 -- Subprogram_Info --
6673 ---------------------
6674
6675 -- This node generates the appropriate Subprogram_Info value for a
6676 -- given procedure. See Ada.Exceptions for further details
6677
6678 -- Sprint syntax: subprog'subprogram_info
6679
6680 -- N_Subprogram_Info
6681 -- Sloc points to the entity for the procedure
6682 -- Identifier (Node1) identifier referencing the procedure
6683 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
6684
6685 -- Note: in the case where a debug source file is generated, the Sloc
6686 -- for this node points to the quote in the Sprint file output.
6687
6688 --------------------------
6689 -- Unchecked Expression --
6690 --------------------------
6691
6692 -- An unchecked expression is one that must be analyzed and resolved
6693 -- with all checks off, regardless of the current setting of scope
6694 -- suppress flags.
6695
6696 -- Sprint syntax: `(expression)
6697
6698 -- Note: this node is always removed from the tree (and replaced by
6699 -- its constituent expression) on completion of analysis, so it only
6700 -- appears in intermediate trees, and will never be seen by Gigi.
6701
6702 -- N_Unchecked_Expression
6703 -- Sloc is a copy of the Sloc of the expression
6704 -- Expression (Node3)
6705 -- plus fields for expression
6706
6707 -- Note: in the case where a debug source file is generated, the Sloc
6708 -- for this node points to the back quote in the Sprint file output.
6709
6710 -------------------------------
6711 -- Unchecked Type Conversion --
6712 -------------------------------
6713
6714 -- An unchecked type conversion node represents the semantic action
6715 -- corresponding to a call to an instantiation of Unchecked_Conversion.
6716 -- It is generated as a result of actual use of Unchecked_Conversion
6717 -- and also the expander generates unchecked type conversion nodes
6718 -- directly for expansion of complex semantic actions.
6719
6720 -- Note: an unchecked type conversion is a variable as far as the
6721 -- semantics are concerned, which is convenient for the expander.
6722 -- This does not change what Ada source programs are legal, since
6723 -- clearly a function call to an instantiation of Unchecked_Conversion
6724 -- is not a variable in any case.
6725
6726 -- Sprint syntax: subtype-mark!(expression)
6727
6728 -- N_Unchecked_Type_Conversion
6729 -- Sloc points to related node in source
6730 -- Subtype_Mark (Node4)
6731 -- Expression (Node3)
6732 -- Kill_Range_Check (Flag11-Sem)
6733 -- No_Truncation (Flag17-Sem)
6734 -- plus fields for expression
6735
6736 -- Note: in the case where a debug source file is generated, the Sloc
6737 -- for this node points to the exclamation in the Sprint file output.
6738
6739 -----------------------------------
6740 -- Validate_Unchecked_Conversion --
6741 -----------------------------------
6742
6743 -- The front end does most of the validation of unchecked conversion,
6744 -- including checking sizes (this is done after the back end is called
6745 -- to take advantage of back-annotation of calculated sizes).
6746
6747 -- The front end also deals with specific cases that are not allowed
6748 -- e.g. involving unconstrained array types.
6749
6750 -- For the case of the standard gigi backend, this means that all
6751 -- checks are done in the front-end.
6752
6753 -- However, in the case of specialized back-ends, notably the JVM
6754 -- backend for JGNAT, additional requirements and restrictions apply
6755 -- to unchecked conversion, and these are most conveniently performed
6756 -- in the specialized back-end.
6757
6758 -- To accommodate this requirement, for such back ends, the following
6759 -- special node is generated recording an unchecked conversion that
6760 -- needs to be validated. The back end should post an appropriate
6761 -- error message if the unchecked conversion is invalid or warrants
6762 -- a special warning message.
6763
6764 -- Source_Type and Target_Type point to the entities for the two
6765 -- types involved in the unchecked conversion instantiation that
6766 -- is to be validated.
6767
6768 -- Sprint syntax: validate Unchecked_Conversion (source, target);
6769
6770 -- N_Validate_Unchecked_Conversion
6771 -- Sloc points to instantiation (location for warning message)
6772 -- Source_Type (Node1-Sem)
6773 -- Target_Type (Node2-Sem)
6774
6775 -- Note: in the case where a debug source file is generated, the Sloc
6776 -- for this node points to the VALIDATE keyword in the file output.
6777
6778 -----------
6779 -- Empty --
6780 -----------
6781
6782 -- Used as the contents of the Nkind field of the dummy Empty node
6783 -- and in some other situations to indicate an uninitialized value.
6784
6785 -- N_Empty
6786 -- Chars (Name1) is set to No_Name
6787
6788 -----------
6789 -- Error --
6790 -----------
6791
6792 -- Used as the contents of the Nkind field of the dummy Error node.
6793 -- Has an Etype field, which gets set to Any_Type later on, to help
6794 -- error recovery (Error_Posted is also set in the Error node).
6795
6796 -- N_Error
6797 -- Chars (Name1) is set to Error_Name
6798 -- Etype (Node5-Sem)
6799
6800 --------------------------
6801 -- Node Type Definition --
6802 --------------------------
6803
6804 -- The following is the definition of the Node_Kind type. As previously
6805 -- discussed, this is separated off to allow rearrangement of the order
6806 -- to facilitiate definition of subtype ranges. The comments show the
6807 -- subtype classes which apply to each set of node kinds. The first
6808 -- entry in the comment characterizes the following list of nodes.
6809
6810 type Node_Kind is (
6811 N_Unused_At_Start,
6812
6813 -- N_Representation_Clause
6814
6815 N_At_Clause,
6816 N_Component_Clause,
6817 N_Enumeration_Representation_Clause,
6818 N_Mod_Clause,
6819 N_Record_Representation_Clause,
6820
6821 -- N_Representation_Clause, N_Has_Chars
6822
6823 N_Attribute_Definition_Clause,
6824
6825 -- N_Has_Chars
6826
6827 N_Empty,
6828 N_Pragma,
6829 N_Pragma_Argument_Association,
6830
6831 -- N_Has_Etype
6832
6833 N_Error,
6834
6835 -- N_Entity, N_Has_Etype, N_Has_Chars
6836
6837 N_Defining_Character_Literal,
6838 N_Defining_Identifier,
6839 N_Defining_Operator_Symbol,
6840
6841 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
6842
6843 N_Expanded_Name,
6844
6845 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6846 -- N_Has_Chars, N_Has_Entity
6847
6848 N_Identifier,
6849 N_Operator_Symbol,
6850
6851 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
6852 -- N_Has_Chars, N_Has_Entity
6853
6854 N_Character_Literal,
6855
6856 -- N_Binary_Op, N_Op, N_Subexpr,
6857 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
6858
6859 N_Op_Add,
6860 N_Op_Concat,
6861 N_Op_Expon,
6862 N_Op_Subtract,
6863
6864 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
6865 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
6866
6867 N_Op_Divide,
6868 N_Op_Mod,
6869 N_Op_Multiply,
6870 N_Op_Rem,
6871
6872 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6873 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6874
6875 N_Op_And,
6876
6877 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6878 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
6879
6880 N_Op_Eq,
6881 N_Op_Ge,
6882 N_Op_Gt,
6883 N_Op_Le,
6884 N_Op_Lt,
6885 N_Op_Ne,
6886
6887 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
6888 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
6889
6890 N_Op_Or,
6891 N_Op_Xor,
6892
6893 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
6894 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
6895
6896 N_Op_Rotate_Left,
6897 N_Op_Rotate_Right,
6898 N_Op_Shift_Left,
6899 N_Op_Shift_Right,
6900 N_Op_Shift_Right_Arithmetic,
6901
6902 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
6903 -- N_Has_Chars, N_Has_Entity
6904
6905 N_Op_Abs,
6906 N_Op_Minus,
6907 N_Op_Not,
6908 N_Op_Plus,
6909
6910 -- N_Subexpr, N_Has_Etype, N_Has_Entity
6911
6912 N_Attribute_Reference,
6913
6914 -- N_Subexpr, N_Has_Etype, N_Membership_Test
6915
6916 N_In,
6917 N_Not_In,
6918
6919 -- N_Subexpr, N_Has_Etype
6920
6921 N_And_Then,
6922 N_Conditional_Expression,
6923 N_Explicit_Dereference,
6924 N_Function_Call,
6925
6926 N_Indexed_Component,
6927 N_Integer_Literal,
6928
6929 N_Null,
6930 N_Or_Else,
6931 N_Procedure_Call_Statement,
6932 N_Qualified_Expression,
6933
6934 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
6935
6936 N_Raise_Constraint_Error,
6937 N_Raise_Program_Error,
6938 N_Raise_Storage_Error,
6939
6940 -- N_Subexpr, N_Has_Etype
6941
6942 N_Aggregate,
6943 N_Allocator,
6944 N_Extension_Aggregate,
6945 N_Range,
6946 N_Real_Literal,
6947 N_Reference,
6948 N_Selected_Component,
6949 N_Slice,
6950 N_String_Literal,
6951 N_Subprogram_Info,
6952 N_Type_Conversion,
6953 N_Unchecked_Expression,
6954 N_Unchecked_Type_Conversion,
6955
6956 -- N_Has_Etype
6957
6958 N_Subtype_Indication,
6959
6960 -- N_Declaration
6961
6962 N_Component_Declaration,
6963 N_Entry_Declaration,
6964 N_Formal_Object_Declaration,
6965 N_Formal_Type_Declaration,
6966 N_Full_Type_Declaration,
6967 N_Incomplete_Type_Declaration,
6968 N_Loop_Parameter_Specification,
6969 N_Object_Declaration,
6970 N_Protected_Type_Declaration,
6971 N_Private_Extension_Declaration,
6972 N_Private_Type_Declaration,
6973 N_Subtype_Declaration,
6974
6975 -- N_Subprogram_Specification, N_Declaration
6976
6977 N_Function_Specification,
6978 N_Procedure_Specification,
6979
6980 -- N_Access_To_Subprogram_Definition
6981
6982 N_Access_Function_Definition,
6983 N_Access_Procedure_Definition,
6984
6985 -- N_Later_Decl_Item
6986
6987 N_Task_Type_Declaration,
6988
6989 -- N_Body_Stub, N_Later_Decl_Item
6990
6991 N_Package_Body_Stub,
6992 N_Protected_Body_Stub,
6993 N_Subprogram_Body_Stub,
6994 N_Task_Body_Stub,
6995
6996 -- N_Generic_Instantiation, N_Later_Decl_Item
6997 -- N_Subprogram_Instantiation
6998
6999 N_Function_Instantiation,
7000 N_Procedure_Instantiation,
7001
7002 -- N_Generic_Instantiation, N_Later_Decl_Item
7003
7004 N_Package_Instantiation,
7005
7006 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7007
7008 N_Package_Body,
7009 N_Subprogram_Body,
7010
7011 -- N_Later_Decl_Item, N_Proper_Body
7012
7013 N_Protected_Body,
7014 N_Task_Body,
7015
7016 -- N_Later_Decl_Item
7017
7018 N_Implicit_Label_Declaration,
7019 N_Package_Declaration,
7020 N_Single_Task_Declaration,
7021 N_Subprogram_Declaration,
7022 N_Use_Package_Clause,
7023
7024 -- N_Generic_Declaration, N_Later_Decl_Item
7025
7026 N_Generic_Package_Declaration,
7027 N_Generic_Subprogram_Declaration,
7028
7029 -- N_Array_Type_Definition
7030
7031 N_Constrained_Array_Definition,
7032 N_Unconstrained_Array_Definition,
7033
7034 -- N_Renaming_Declaration
7035
7036 N_Exception_Renaming_Declaration,
7037 N_Object_Renaming_Declaration,
7038 N_Package_Renaming_Declaration,
7039 N_Subprogram_Renaming_Declaration,
7040
7041 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7042
7043 N_Generic_Function_Renaming_Declaration,
7044 N_Generic_Package_Renaming_Declaration,
7045 N_Generic_Procedure_Renaming_Declaration,
7046
7047 -- N_Statement_Other_Than_Procedure_Call
7048
7049 N_Abort_Statement,
7050 N_Accept_Statement,
7051 N_Assignment_Statement,
7052 N_Asynchronous_Select,
7053 N_Block_Statement,
7054 N_Case_Statement,
7055 N_Code_Statement,
7056 N_Conditional_Entry_Call,
7057
7058 -- N_Statement_Other_Than_Procedure_Call. N_Delay_Statement
7059
7060 N_Delay_Relative_Statement,
7061 N_Delay_Until_Statement,
7062
7063 -- N_Statement_Other_Than_Procedure_Call
7064
7065 N_Entry_Call_Statement,
7066 N_Free_Statement,
7067 N_Goto_Statement,
7068 N_Loop_Statement,
7069 N_Null_Statement,
7070 N_Raise_Statement,
7071 N_Requeue_Statement,
7072 N_Return_Statement,
7073 N_Extended_Return_Statement,
7074 N_Selective_Accept,
7075 N_Timed_Entry_Call,
7076
7077 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7078
7079 N_Exit_Statement,
7080 N_If_Statement,
7081
7082 -- N_Has_Condition
7083
7084 N_Accept_Alternative,
7085 N_Delay_Alternative,
7086 N_Elsif_Part,
7087 N_Entry_Body_Formal_Part,
7088 N_Iteration_Scheme,
7089 N_Terminate_Alternative,
7090
7091 -- N_Formal_Subprogram_Declaration
7092
7093 N_Formal_Abstract_Subprogram_Declaration,
7094 N_Formal_Concrete_Subprogram_Declaration,
7095
7096 -- N_Push_xxx_Label
7097
7098 N_Push_Constraint_Error_Label,
7099 N_Push_Program_Error_Label,
7100 N_Push_Storage_Error_Label,
7101
7102 -- N_Pop_xxx_Label
7103
7104 N_Pop_Constraint_Error_Label,
7105 N_Pop_Program_Error_Label,
7106 N_Pop_Storage_Error_Label,
7107
7108 -- Other nodes (not part of any subtype class)
7109
7110 N_Abortable_Part,
7111 N_Abstract_Subprogram_Declaration,
7112 N_Access_Definition,
7113 N_Access_To_Object_Definition,
7114 N_Case_Statement_Alternative,
7115 N_Compilation_Unit,
7116 N_Compilation_Unit_Aux,
7117 N_Component_Association,
7118 N_Component_Definition,
7119 N_Component_List,
7120 N_Derived_Type_Definition,
7121 N_Decimal_Fixed_Point_Definition,
7122 N_Defining_Program_Unit_Name,
7123 N_Delta_Constraint,
7124 N_Designator,
7125 N_Digits_Constraint,
7126 N_Discriminant_Association,
7127 N_Discriminant_Specification,
7128 N_Enumeration_Type_Definition,
7129 N_Entry_Body,
7130 N_Entry_Call_Alternative,
7131 N_Entry_Index_Specification,
7132 N_Exception_Declaration,
7133 N_Exception_Handler,
7134 N_Floating_Point_Definition,
7135 N_Formal_Decimal_Fixed_Point_Definition,
7136 N_Formal_Derived_Type_Definition,
7137 N_Formal_Discrete_Type_Definition,
7138 N_Formal_Floating_Point_Definition,
7139 N_Formal_Modular_Type_Definition,
7140 N_Formal_Ordinary_Fixed_Point_Definition,
7141 N_Formal_Package_Declaration,
7142 N_Formal_Private_Type_Definition,
7143 N_Formal_Signed_Integer_Type_Definition,
7144 N_Freeze_Entity,
7145 N_Generic_Association,
7146 N_Handled_Sequence_Of_Statements,
7147 N_Index_Or_Discriminant_Constraint,
7148 N_Itype_Reference,
7149 N_Label,
7150 N_Modular_Type_Definition,
7151 N_Number_Declaration,
7152 N_Ordinary_Fixed_Point_Definition,
7153 N_Others_Choice,
7154 N_Package_Specification,
7155 N_Parameter_Association,
7156 N_Parameter_Specification,
7157 N_Protected_Definition,
7158 N_Range_Constraint,
7159 N_Real_Range_Specification,
7160 N_Record_Definition,
7161 N_Signed_Integer_Type_Definition,
7162 N_Single_Protected_Declaration,
7163 N_Subunit,
7164 N_Task_Definition,
7165 N_Triggering_Alternative,
7166 N_Use_Type_Clause,
7167 N_Validate_Unchecked_Conversion,
7168 N_Variant,
7169 N_Variant_Part,
7170 N_With_Clause,
7171 N_With_Type_Clause,
7172 N_Unused_At_End);
7173
7174 for Node_Kind'Size use 8;
7175 -- The data structures in Atree assume this!
7176
7177 ----------------------------
7178 -- Node Class Definitions --
7179 ----------------------------
7180
7181 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7182 N_Access_Function_Definition ..
7183 N_Access_Procedure_Definition;
7184
7185 subtype N_Array_Type_Definition is Node_Kind range
7186 N_Constrained_Array_Definition ..
7187 N_Unconstrained_Array_Definition;
7188
7189 subtype N_Binary_Op is Node_Kind range
7190 N_Op_Add ..
7191 N_Op_Shift_Right_Arithmetic;
7192
7193 subtype N_Body_Stub is Node_Kind range
7194 N_Package_Body_Stub ..
7195 N_Task_Body_Stub;
7196
7197 subtype N_Declaration is Node_Kind range
7198 N_Component_Declaration ..
7199 N_Procedure_Specification;
7200 -- Note: this includes all constructs normally thought of as declarations
7201 -- except those which are separately grouped as later declarations.
7202
7203 subtype N_Delay_Statement is Node_Kind range
7204 N_Delay_Relative_Statement ..
7205 N_Delay_Until_Statement;
7206
7207 subtype N_Direct_Name is Node_Kind range
7208 N_Identifier ..
7209 N_Character_Literal;
7210
7211 subtype N_Entity is Node_Kind range
7212 N_Defining_Character_Literal ..
7213 N_Defining_Operator_Symbol;
7214
7215 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7216 N_Formal_Abstract_Subprogram_Declaration ..
7217 N_Formal_Concrete_Subprogram_Declaration;
7218
7219 subtype N_Generic_Declaration is Node_Kind range
7220 N_Generic_Package_Declaration ..
7221 N_Generic_Subprogram_Declaration;
7222
7223 subtype N_Generic_Instantiation is Node_Kind range
7224 N_Function_Instantiation ..
7225 N_Package_Instantiation;
7226
7227 subtype N_Generic_Renaming_Declaration is Node_Kind range
7228 N_Generic_Function_Renaming_Declaration ..
7229 N_Generic_Procedure_Renaming_Declaration;
7230
7231 subtype N_Has_Chars is Node_Kind range
7232 N_Attribute_Definition_Clause ..
7233 N_Op_Plus;
7234
7235 subtype N_Has_Entity is Node_Kind range
7236 N_Expanded_Name ..
7237 N_Attribute_Reference;
7238 -- Nodes that have Entity fields
7239 -- Warning: DOES NOT INCLUDE N_Freeze_Entity!
7240
7241 subtype N_Has_Etype is Node_Kind range
7242 N_Error ..
7243 N_Subtype_Indication;
7244
7245 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7246 N_Op_Divide ..
7247 N_Op_Rem;
7248
7249 subtype N_Multiplying_Operator is Node_Kind range
7250 N_Op_Divide ..
7251 N_Op_Rem;
7252
7253 subtype N_Later_Decl_Item is Node_Kind range
7254 N_Task_Type_Declaration ..
7255 N_Generic_Subprogram_Declaration;
7256 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and
7257 -- includes only those items which can appear as later declarative
7258 -- items. This also includes N_Implicit_Label_Declaration which is
7259 -- not specifically in the grammar but may appear as a valid later
7260 -- declarative items. It does NOT include N_Pragma which can also
7261 -- appear among later declarative items. It does however include
7262 -- N_Protected_Body, which is a bit peculiar, but harmless since
7263 -- this cannot appear in Ada 83 mode anyway.
7264
7265 subtype N_Membership_Test is Node_Kind range
7266 N_In ..
7267 N_Not_In;
7268
7269 subtype N_Op is Node_Kind range
7270 N_Op_Add ..
7271 N_Op_Plus;
7272
7273 subtype N_Op_Boolean is Node_Kind range
7274 N_Op_And ..
7275 N_Op_Xor;
7276 -- Binary operators which take operands of a boolean type, and yield
7277 -- a result of a boolean type.
7278
7279 subtype N_Op_Compare is Node_Kind range
7280 N_Op_Eq ..
7281 N_Op_Ne;
7282
7283 subtype N_Op_Shift is Node_Kind range
7284 N_Op_Rotate_Left ..
7285 N_Op_Shift_Right_Arithmetic;
7286
7287 subtype N_Proper_Body is Node_Kind range
7288 N_Package_Body ..
7289 N_Task_Body;
7290
7291 subtype N_Push_xxx_Label is Node_Kind range
7292 N_Push_Constraint_Error_Label ..
7293 N_Push_Storage_Error_Label;
7294
7295 subtype N_Pop_xxx_Label is Node_Kind range
7296 N_Pop_Constraint_Error_Label ..
7297 N_Pop_Storage_Error_Label;
7298
7299 subtype N_Raise_xxx_Error is Node_Kind range
7300 N_Raise_Constraint_Error ..
7301 N_Raise_Storage_Error;
7302
7303 subtype N_Renaming_Declaration is Node_Kind range
7304 N_Exception_Renaming_Declaration ..
7305 N_Generic_Procedure_Renaming_Declaration;
7306
7307 subtype N_Representation_Clause is Node_Kind range
7308 N_At_Clause ..
7309 N_Attribute_Definition_Clause;
7310
7311 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7312 N_Abort_Statement ..
7313 N_If_Statement;
7314 -- Note that this includes all statement types except for the cases of the
7315 -- N_Procedure_Call_Statement which is considered to be a subexpression
7316 -- (since overloading is possible, so it needs to go through the normal
7317 -- overloading resolution for expressions).
7318
7319 subtype N_Subprogram_Instantiation is Node_Kind range
7320 N_Function_Instantiation ..
7321 N_Procedure_Instantiation;
7322
7323 subtype N_Has_Condition is Node_Kind range
7324 N_Exit_Statement ..
7325 N_Terminate_Alternative;
7326 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7327
7328 subtype N_Subexpr is Node_Kind range
7329 N_Expanded_Name ..
7330 N_Unchecked_Type_Conversion;
7331 -- Nodes with expression fields
7332
7333 subtype N_Subprogram_Specification is Node_Kind range
7334 N_Function_Specification ..
7335 N_Procedure_Specification;
7336
7337 subtype N_Unary_Op is Node_Kind range
7338 N_Op_Abs ..
7339 N_Op_Plus;
7340
7341 subtype N_Unit_Body is Node_Kind range
7342 N_Package_Body ..
7343 N_Subprogram_Body;
7344
7345 ---------------------------
7346 -- Node Access Functions --
7347 ---------------------------
7348
7349 -- The following functions return the contents of the indicated field of
7350 -- the node referenced by the argument, which is a Node_Id. They provide
7351 -- logical access to fields in the node which could be accessed using the
7352 -- Atree.Unchecked_Access package, but the idea is always to use these
7353 -- higher level routines which preserve strong typing. In debug mode,
7354 -- these routines check that they are being applied to an appropriate
7355 -- node, as well as checking that the node is in range.
7356
7357 function ABE_Is_Certain
7358 (N : Node_Id) return Boolean; -- Flag18
7359
7360 function Abort_Present
7361 (N : Node_Id) return Boolean; -- Flag15
7362
7363 function Abortable_Part
7364 (N : Node_Id) return Node_Id; -- Node2
7365
7366 function Abstract_Present
7367 (N : Node_Id) return Boolean; -- Flag4
7368
7369 function Accept_Handler_Records
7370 (N : Node_Id) return List_Id; -- List5
7371
7372 function Accept_Statement
7373 (N : Node_Id) return Node_Id; -- Node2
7374
7375 function Access_Definition
7376 (N : Node_Id) return Node_Id; -- Node3
7377
7378 function Access_To_Subprogram_Definition
7379 (N : Node_Id) return Node_Id; -- Node3
7380
7381 function Access_Types_To_Process
7382 (N : Node_Id) return Elist_Id; -- Elist2
7383
7384 function Actions
7385 (N : Node_Id) return List_Id; -- List1
7386
7387 function Activation_Chain_Entity
7388 (N : Node_Id) return Node_Id; -- Node3
7389
7390 function Acts_As_Spec
7391 (N : Node_Id) return Boolean; -- Flag4
7392
7393 function Actual_Designated_Subtype
7394 (N : Node_Id) return Node_Id; -- Node4
7395
7396 function Aggregate_Bounds
7397 (N : Node_Id) return Node_Id; -- Node3
7398
7399 function Aliased_Present
7400 (N : Node_Id) return Boolean; -- Flag4
7401
7402 function All_Others
7403 (N : Node_Id) return Boolean; -- Flag11
7404
7405 function All_Present
7406 (N : Node_Id) return Boolean; -- Flag15
7407
7408 function Alternatives
7409 (N : Node_Id) return List_Id; -- List4
7410
7411 function Ancestor_Part
7412 (N : Node_Id) return Node_Id; -- Node3
7413
7414 function Array_Aggregate
7415 (N : Node_Id) return Node_Id; -- Node3
7416
7417 function Assignment_OK
7418 (N : Node_Id) return Boolean; -- Flag15
7419
7420 function Associated_Node
7421 (N : Node_Id) return Node_Id; -- Node4
7422
7423 function At_End_Proc
7424 (N : Node_Id) return Node_Id; -- Node1
7425
7426 function Attribute_Name
7427 (N : Node_Id) return Name_Id; -- Name2
7428
7429 function Aux_Decls_Node
7430 (N : Node_Id) return Node_Id; -- Node5
7431
7432 function Backwards_OK
7433 (N : Node_Id) return Boolean; -- Flag6
7434
7435 function Bad_Is_Detected
7436 (N : Node_Id) return Boolean; -- Flag15
7437
7438 function By_Ref
7439 (N : Node_Id) return Boolean; -- Flag5
7440
7441 function Body_Required
7442 (N : Node_Id) return Boolean; -- Flag13
7443
7444 function Body_To_Inline
7445 (N : Node_Id) return Node_Id; -- Node3
7446
7447 function Box_Present
7448 (N : Node_Id) return Boolean; -- Flag15
7449
7450 function Char_Literal_Value
7451 (N : Node_Id) return Uint; -- Uint2
7452
7453 function Chars
7454 (N : Node_Id) return Name_Id; -- Name1
7455
7456 function Check_Address_Alignment
7457 (N : Node_Id) return Boolean; -- Flag11
7458
7459 function Choice_Parameter
7460 (N : Node_Id) return Node_Id; -- Node2
7461
7462 function Choices
7463 (N : Node_Id) return List_Id; -- List1
7464
7465 function Coextensions
7466 (N : Node_Id) return Elist_Id; -- Elist4
7467
7468 function Comes_From_Extended_Return_Statement
7469 (N : Node_Id) return Boolean; -- Flag18
7470
7471 function Compile_Time_Known_Aggregate
7472 (N : Node_Id) return Boolean; -- Flag18
7473
7474 function Component_Associations
7475 (N : Node_Id) return List_Id; -- List2
7476
7477 function Component_Clauses
7478 (N : Node_Id) return List_Id; -- List3
7479
7480 function Component_Definition
7481 (N : Node_Id) return Node_Id; -- Node4
7482
7483 function Component_Items
7484 (N : Node_Id) return List_Id; -- List3
7485
7486 function Component_List
7487 (N : Node_Id) return Node_Id; -- Node1
7488
7489 function Component_Name
7490 (N : Node_Id) return Node_Id; -- Node1
7491
7492 function Condition
7493 (N : Node_Id) return Node_Id; -- Node1
7494
7495 function Condition_Actions
7496 (N : Node_Id) return List_Id; -- List3
7497
7498 function Config_Pragmas
7499 (N : Node_Id) return List_Id; -- List4
7500
7501 function Constant_Present
7502 (N : Node_Id) return Boolean; -- Flag17
7503
7504 function Constraint
7505 (N : Node_Id) return Node_Id; -- Node3
7506
7507 function Constraints
7508 (N : Node_Id) return List_Id; -- List1
7509
7510 function Context_Installed
7511 (N : Node_Id) return Boolean; -- Flag13
7512
7513 function Context_Items
7514 (N : Node_Id) return List_Id; -- List1
7515
7516 function Controlling_Argument
7517 (N : Node_Id) return Node_Id; -- Node1
7518
7519 function Conversion_OK
7520 (N : Node_Id) return Boolean; -- Flag14
7521
7522 function Corresponding_Body
7523 (N : Node_Id) return Node_Id; -- Node5
7524
7525 function Corresponding_Formal_Spec
7526 (N : Node_Id) return Node_Id; -- Node3
7527
7528 function Corresponding_Generic_Association
7529 (N : Node_Id) return Node_Id; -- Node5
7530
7531 function Corresponding_Integer_Value
7532 (N : Node_Id) return Uint; -- Uint4
7533
7534 function Corresponding_Spec
7535 (N : Node_Id) return Node_Id; -- Node5
7536
7537 function Corresponding_Stub
7538 (N : Node_Id) return Node_Id; -- Node3
7539
7540 function Dcheck_Function
7541 (N : Node_Id) return Entity_Id; -- Node5
7542
7543 function Debug_Statement
7544 (N : Node_Id) return Node_Id; -- Node3
7545
7546 function Declarations
7547 (N : Node_Id) return List_Id; -- List2
7548
7549 function Default_Expression
7550 (N : Node_Id) return Node_Id; -- Node5
7551
7552 function Default_Name
7553 (N : Node_Id) return Node_Id; -- Node2
7554
7555 function Defining_Identifier
7556 (N : Node_Id) return Entity_Id; -- Node1
7557
7558 function Defining_Unit_Name
7559 (N : Node_Id) return Node_Id; -- Node1
7560
7561 function Delay_Alternative
7562 (N : Node_Id) return Node_Id; -- Node4
7563
7564 function Delay_Finalize_Attach
7565 (N : Node_Id) return Boolean; -- Flag14
7566
7567 function Delay_Statement
7568 (N : Node_Id) return Node_Id; -- Node2
7569
7570 function Delta_Expression
7571 (N : Node_Id) return Node_Id; -- Node3
7572
7573 function Digits_Expression
7574 (N : Node_Id) return Node_Id; -- Node2
7575
7576 function Discr_Check_Funcs_Built
7577 (N : Node_Id) return Boolean; -- Flag11
7578
7579 function Discrete_Choices
7580 (N : Node_Id) return List_Id; -- List4
7581
7582 function Discrete_Range
7583 (N : Node_Id) return Node_Id; -- Node4
7584
7585 function Discrete_Subtype_Definition
7586 (N : Node_Id) return Node_Id; -- Node4
7587
7588 function Discrete_Subtype_Definitions
7589 (N : Node_Id) return List_Id; -- List2
7590
7591 function Discriminant_Specifications
7592 (N : Node_Id) return List_Id; -- List4
7593
7594 function Discriminant_Type
7595 (N : Node_Id) return Node_Id; -- Node5
7596
7597 function Do_Accessibility_Check
7598 (N : Node_Id) return Boolean; -- Flag13
7599
7600 function Do_Discriminant_Check
7601 (N : Node_Id) return Boolean; -- Flag13
7602
7603 function Do_Division_Check
7604 (N : Node_Id) return Boolean; -- Flag13
7605
7606 function Do_Length_Check
7607 (N : Node_Id) return Boolean; -- Flag4
7608
7609 function Do_Overflow_Check
7610 (N : Node_Id) return Boolean; -- Flag17
7611
7612 function Do_Range_Check
7613 (N : Node_Id) return Boolean; -- Flag9
7614
7615 function Do_Storage_Check
7616 (N : Node_Id) return Boolean; -- Flag17
7617
7618 function Do_Tag_Check
7619 (N : Node_Id) return Boolean; -- Flag13
7620
7621 function Elaborate_All_Desirable
7622 (N : Node_Id) return Boolean; -- Flag9
7623
7624 function Elaborate_All_Present
7625 (N : Node_Id) return Boolean; -- Flag14
7626
7627 function Elaborate_Desirable
7628 (N : Node_Id) return Boolean; -- Flag11
7629
7630 function Elaborate_Present
7631 (N : Node_Id) return Boolean; -- Flag4
7632
7633 function Elaboration_Boolean
7634 (N : Node_Id) return Node_Id; -- Node2
7635
7636 function Else_Actions
7637 (N : Node_Id) return List_Id; -- List3
7638
7639 function Else_Statements
7640 (N : Node_Id) return List_Id; -- List4
7641
7642 function Elsif_Parts
7643 (N : Node_Id) return List_Id; -- List3
7644
7645 function Enclosing_Variant
7646 (N : Node_Id) return Node_Id; -- Node2
7647
7648 function End_Label
7649 (N : Node_Id) return Node_Id; -- Node4
7650
7651 function End_Span
7652 (N : Node_Id) return Uint; -- Uint5
7653
7654 function Entity
7655 (N : Node_Id) return Node_Id; -- Node4
7656
7657 function Entity_Or_Associated_Node
7658 (N : Node_Id) return Node_Id; -- Node4
7659
7660 function Entry_Body_Formal_Part
7661 (N : Node_Id) return Node_Id; -- Node5
7662
7663 function Entry_Call_Alternative
7664 (N : Node_Id) return Node_Id; -- Node1
7665
7666 function Entry_Call_Statement
7667 (N : Node_Id) return Node_Id; -- Node1
7668
7669 function Entry_Direct_Name
7670 (N : Node_Id) return Node_Id; -- Node1
7671
7672 function Entry_Index
7673 (N : Node_Id) return Node_Id; -- Node5
7674
7675 function Entry_Index_Specification
7676 (N : Node_Id) return Node_Id; -- Node4
7677
7678 function Etype
7679 (N : Node_Id) return Node_Id; -- Node5
7680
7681 function Exception_Choices
7682 (N : Node_Id) return List_Id; -- List4
7683
7684 function Exception_Handlers
7685 (N : Node_Id) return List_Id; -- List5
7686
7687 function Exception_Junk
7688 (N : Node_Id) return Boolean; -- Flag7
7689
7690 function Exception_Label
7691 (N : Node_Id) return Node_Id; -- Node5
7692
7693 function Explicit_Actual_Parameter
7694 (N : Node_Id) return Node_Id; -- Node3
7695
7696 function Expansion_Delayed
7697 (N : Node_Id) return Boolean; -- Flag11
7698
7699 function Explicit_Generic_Actual_Parameter
7700 (N : Node_Id) return Node_Id; -- Node1
7701
7702 function Expression
7703 (N : Node_Id) return Node_Id; -- Node3
7704
7705 function Expressions
7706 (N : Node_Id) return List_Id; -- List1
7707
7708 function First_Bit
7709 (N : Node_Id) return Node_Id; -- Node3
7710
7711 function First_Inlined_Subprogram
7712 (N : Node_Id) return Entity_Id; -- Node3
7713
7714 function First_Name
7715 (N : Node_Id) return Boolean; -- Flag5
7716
7717 function First_Named_Actual
7718 (N : Node_Id) return Node_Id; -- Node4
7719
7720 function First_Real_Statement
7721 (N : Node_Id) return Node_Id; -- Node2
7722
7723 function First_Subtype_Link
7724 (N : Node_Id) return Entity_Id; -- Node5
7725
7726 function Float_Truncate
7727 (N : Node_Id) return Boolean; -- Flag11
7728
7729 function Formal_Type_Definition
7730 (N : Node_Id) return Node_Id; -- Node3
7731
7732 function Forwards_OK
7733 (N : Node_Id) return Boolean; -- Flag5
7734
7735 function From_At_Mod
7736 (N : Node_Id) return Boolean; -- Flag4
7737
7738 function From_Default
7739 (N : Node_Id) return Boolean; -- Flag6
7740
7741 function Generic_Associations
7742 (N : Node_Id) return List_Id; -- List3
7743
7744 function Generic_Formal_Declarations
7745 (N : Node_Id) return List_Id; -- List2
7746
7747 function Generic_Parent
7748 (N : Node_Id) return Node_Id; -- Node5
7749
7750 function Generic_Parent_Type
7751 (N : Node_Id) return Node_Id; -- Node4
7752
7753 function Handled_Statement_Sequence
7754 (N : Node_Id) return Node_Id; -- Node4
7755
7756 function Handler_List_Entry
7757 (N : Node_Id) return Node_Id; -- Node2
7758
7759 function Has_Created_Identifier
7760 (N : Node_Id) return Boolean; -- Flag15
7761
7762 function Has_Dynamic_Length_Check
7763 (N : Node_Id) return Boolean; -- Flag10
7764
7765 function Has_Dynamic_Range_Check
7766 (N : Node_Id) return Boolean; -- Flag12
7767
7768 function Has_No_Elaboration_Code
7769 (N : Node_Id) return Boolean; -- Flag17
7770
7771 function Has_Priority_Pragma
7772 (N : Node_Id) return Boolean; -- Flag6
7773
7774 function Has_Private_View
7775 (N : Node_Id) return Boolean; -- Flag11
7776
7777 function Has_Self_Reference
7778 (N : Node_Id) return Boolean; -- Flag13
7779
7780 function Has_Storage_Size_Pragma
7781 (N : Node_Id) return Boolean; -- Flag5
7782
7783 function Has_Task_Info_Pragma
7784 (N : Node_Id) return Boolean; -- Flag7
7785
7786 function Has_Task_Name_Pragma
7787 (N : Node_Id) return Boolean; -- Flag8
7788
7789 function Has_Wide_Character
7790 (N : Node_Id) return Boolean; -- Flag11
7791
7792 function Hidden_By_Use_Clause
7793 (N : Node_Id) return Elist_Id; -- Elist4
7794
7795 function High_Bound
7796 (N : Node_Id) return Node_Id; -- Node2
7797
7798 function Identifier
7799 (N : Node_Id) return Node_Id; -- Node1
7800
7801 function Interface_List
7802 (N : Node_Id) return List_Id; -- List2
7803
7804 function Interface_Present
7805 (N : Node_Id) return Boolean; -- Flag16
7806
7807 function Implicit_With
7808 (N : Node_Id) return Boolean; -- Flag16
7809
7810 function In_Present
7811 (N : Node_Id) return Boolean; -- Flag15
7812
7813 function Includes_Infinities
7814 (N : Node_Id) return Boolean; -- Flag11
7815
7816 function Instance_Spec
7817 (N : Node_Id) return Node_Id; -- Node5
7818
7819 function Intval
7820 (N : Node_Id) return Uint; -- Uint3
7821
7822 function Is_Asynchronous_Call_Block
7823 (N : Node_Id) return Boolean; -- Flag7
7824
7825 function Is_Coextension
7826 (N : Node_Id) return Boolean; -- Flag18
7827
7828 function Is_Component_Left_Opnd
7829 (N : Node_Id) return Boolean; -- Flag13
7830
7831 function Is_Component_Right_Opnd
7832 (N : Node_Id) return Boolean; -- Flag14
7833
7834 function Is_Controlling_Actual
7835 (N : Node_Id) return Boolean; -- Flag16
7836
7837 function Is_Entry_Barrier_Function
7838 (N : Node_Id) return Boolean; -- Flag8
7839
7840 function Is_In_Discriminant_Check
7841 (N : Node_Id) return Boolean; -- Flag11
7842
7843 function Is_Machine_Number
7844 (N : Node_Id) return Boolean; -- Flag11
7845
7846 function Is_Null_Loop
7847 (N : Node_Id) return Boolean; -- Flag16
7848
7849 function Is_Overloaded
7850 (N : Node_Id) return Boolean; -- Flag5
7851
7852 function Is_Power_Of_2_For_Shift
7853 (N : Node_Id) return Boolean; -- Flag13
7854
7855 function Is_Protected_Subprogram_Body
7856 (N : Node_Id) return Boolean; -- Flag7
7857
7858 function Is_Static_Expression
7859 (N : Node_Id) return Boolean; -- Flag6
7860
7861 function Is_Subprogram_Descriptor
7862 (N : Node_Id) return Boolean; -- Flag16
7863
7864 function Is_Task_Allocation_Block
7865 (N : Node_Id) return Boolean; -- Flag6
7866
7867 function Is_Task_Master
7868 (N : Node_Id) return Boolean; -- Flag5
7869
7870 function Iteration_Scheme
7871 (N : Node_Id) return Node_Id; -- Node2
7872
7873 function Itype
7874 (N : Node_Id) return Entity_Id; -- Node1
7875
7876 function Kill_Range_Check
7877 (N : Node_Id) return Boolean; -- Flag11
7878
7879 function Label_Construct
7880 (N : Node_Id) return Node_Id; -- Node2
7881
7882 function Left_Opnd
7883 (N : Node_Id) return Node_Id; -- Node2
7884
7885 function Last_Bit
7886 (N : Node_Id) return Node_Id; -- Node4
7887
7888 function Last_Name
7889 (N : Node_Id) return Boolean; -- Flag6
7890
7891 function Library_Unit
7892 (N : Node_Id) return Node_Id; -- Node4
7893
7894 function Limited_View_Installed
7895 (N : Node_Id) return Boolean; -- Flag18
7896
7897 function Limited_Present
7898 (N : Node_Id) return Boolean; -- Flag17
7899
7900 function Literals
7901 (N : Node_Id) return List_Id; -- List1
7902
7903 function Local_Raise_Not_OK
7904 (N : Node_Id) return Boolean; -- Flag7
7905
7906 function Local_Raise_Statements
7907 (N : Node_Id) return Elist_Id; -- Elist1
7908
7909 function Loop_Actions
7910 (N : Node_Id) return List_Id; -- List2
7911
7912 function Loop_Parameter_Specification
7913 (N : Node_Id) return Node_Id; -- Node4
7914
7915 function Low_Bound
7916 (N : Node_Id) return Node_Id; -- Node1
7917
7918 function Mod_Clause
7919 (N : Node_Id) return Node_Id; -- Node2
7920
7921 function More_Ids
7922 (N : Node_Id) return Boolean; -- Flag5
7923
7924 function Must_Be_Byte_Aligned
7925 (N : Node_Id) return Boolean; -- Flag14
7926
7927 function Must_Not_Freeze
7928 (N : Node_Id) return Boolean; -- Flag8
7929
7930 function Must_Not_Override
7931 (N : Node_Id) return Boolean; -- Flag15
7932
7933 function Must_Override
7934 (N : Node_Id) return Boolean; -- Flag14
7935
7936 function Name
7937 (N : Node_Id) return Node_Id; -- Node2
7938
7939 function Names
7940 (N : Node_Id) return List_Id; -- List2
7941
7942 function Next_Entity
7943 (N : Node_Id) return Node_Id; -- Node2
7944
7945 function Next_Named_Actual
7946 (N : Node_Id) return Node_Id; -- Node4
7947
7948 function Next_Rep_Item
7949 (N : Node_Id) return Node_Id; -- Node5
7950
7951 function Next_Use_Clause
7952 (N : Node_Id) return Node_Id; -- Node3
7953
7954 function No_Ctrl_Actions
7955 (N : Node_Id) return Boolean; -- Flag7
7956
7957 function No_Elaboration_Check
7958 (N : Node_Id) return Boolean; -- Flag14
7959
7960 function No_Entities_Ref_In_Spec
7961 (N : Node_Id) return Boolean; -- Flag8
7962
7963 function No_Initialization
7964 (N : Node_Id) return Boolean; -- Flag13
7965
7966 function No_Truncation
7967 (N : Node_Id) return Boolean; -- Flag17
7968
7969 function Null_Present
7970 (N : Node_Id) return Boolean; -- Flag13
7971
7972 function Null_Exclusion_Present
7973 (N : Node_Id) return Boolean; -- Flag11
7974
7975 function Null_Record_Present
7976 (N : Node_Id) return Boolean; -- Flag17
7977
7978 function Object_Definition
7979 (N : Node_Id) return Node_Id; -- Node4
7980
7981 function Original_Discriminant
7982 (N : Node_Id) return Node_Id; -- Node2
7983
7984 function Original_Entity
7985 (N : Node_Id) return Entity_Id; -- Node2
7986
7987 function Others_Discrete_Choices
7988 (N : Node_Id) return List_Id; -- List1
7989
7990 function Out_Present
7991 (N : Node_Id) return Boolean; -- Flag17
7992
7993 function Parameter_Associations
7994 (N : Node_Id) return List_Id; -- List3
7995
7996 function Parameter_List_Truncated
7997 (N : Node_Id) return Boolean; -- Flag17
7998
7999 function Parameter_Specifications
8000 (N : Node_Id) return List_Id; -- List3
8001
8002 function Parameter_Type
8003 (N : Node_Id) return Node_Id; -- Node2
8004
8005 function Parent_Spec
8006 (N : Node_Id) return Node_Id; -- Node4
8007
8008 function Position
8009 (N : Node_Id) return Node_Id; -- Node2
8010
8011 function Pragma_Argument_Associations
8012 (N : Node_Id) return List_Id; -- List2
8013
8014 function Pragmas_After
8015 (N : Node_Id) return List_Id; -- List5
8016
8017 function Pragmas_Before
8018 (N : Node_Id) return List_Id; -- List4
8019
8020 function Prefix
8021 (N : Node_Id) return Node_Id; -- Node3
8022
8023 function Present_Expr
8024 (N : Node_Id) return Uint; -- Uint3
8025
8026 function Prev_Ids
8027 (N : Node_Id) return Boolean; -- Flag6
8028
8029 function Print_In_Hex
8030 (N : Node_Id) return Boolean; -- Flag13
8031
8032 function Private_Declarations
8033 (N : Node_Id) return List_Id; -- List3
8034
8035 function Private_Present
8036 (N : Node_Id) return Boolean; -- Flag15
8037
8038 function Procedure_To_Call
8039 (N : Node_Id) return Node_Id; -- Node2
8040
8041 function Proper_Body
8042 (N : Node_Id) return Node_Id; -- Node1
8043
8044 function Protected_Definition
8045 (N : Node_Id) return Node_Id; -- Node3
8046
8047 function Protected_Present
8048 (N : Node_Id) return Boolean; -- Flag6
8049
8050 function Raises_Constraint_Error
8051 (N : Node_Id) return Boolean; -- Flag7
8052
8053 function Range_Constraint
8054 (N : Node_Id) return Node_Id; -- Node4
8055
8056 function Range_Expression
8057 (N : Node_Id) return Node_Id; -- Node4
8058
8059 function Real_Range_Specification
8060 (N : Node_Id) return Node_Id; -- Node4
8061
8062 function Realval
8063 (N : Node_Id) return Ureal; -- Ureal3
8064
8065 function Reason
8066 (N : Node_Id) return Uint; -- Uint3
8067
8068 function Record_Extension_Part
8069 (N : Node_Id) return Node_Id; -- Node3
8070
8071 function Redundant_Use
8072 (N : Node_Id) return Boolean; -- Flag13
8073
8074 function Result_Definition
8075 (N : Node_Id) return Node_Id; -- Node4
8076
8077 function Return_Object_Declarations
8078 (N : Node_Id) return List_Id; -- List3
8079
8080 function Return_Statement_Entity
8081 (N : Node_Id) return Node_Id; -- Node5
8082
8083 function Reverse_Present
8084 (N : Node_Id) return Boolean; -- Flag15
8085
8086 function Right_Opnd
8087 (N : Node_Id) return Node_Id; -- Node3
8088
8089 function Rounded_Result
8090 (N : Node_Id) return Boolean; -- Flag18
8091
8092 function Scope
8093 (N : Node_Id) return Node_Id; -- Node3
8094
8095 function Select_Alternatives
8096 (N : Node_Id) return List_Id; -- List1
8097
8098 function Selector_Name
8099 (N : Node_Id) return Node_Id; -- Node2
8100
8101 function Selector_Names
8102 (N : Node_Id) return List_Id; -- List1
8103
8104 function Shift_Count_OK
8105 (N : Node_Id) return Boolean; -- Flag4
8106
8107 function Source_Type
8108 (N : Node_Id) return Entity_Id; -- Node1
8109
8110 function Specification
8111 (N : Node_Id) return Node_Id; -- Node1
8112
8113 function Statements
8114 (N : Node_Id) return List_Id; -- List3
8115
8116 function Static_Processing_OK
8117 (N : Node_Id) return Boolean; -- Flag4
8118
8119 function Storage_Pool
8120 (N : Node_Id) return Node_Id; -- Node1
8121
8122 function Strval
8123 (N : Node_Id) return String_Id; -- Str3
8124
8125 function Subtype_Indication
8126 (N : Node_Id) return Node_Id; -- Node5
8127
8128 function Subtype_Mark
8129 (N : Node_Id) return Node_Id; -- Node4
8130
8131 function Subtype_Marks
8132 (N : Node_Id) return List_Id; -- List2
8133
8134 function Synchronized_Present
8135 (N : Node_Id) return Boolean; -- Flag7
8136
8137 function Tagged_Present
8138 (N : Node_Id) return Boolean; -- Flag15
8139
8140 function Target_Type
8141 (N : Node_Id) return Entity_Id; -- Node2
8142
8143 function Task_Definition
8144 (N : Node_Id) return Node_Id; -- Node3
8145
8146 function Task_Present
8147 (N : Node_Id) return Boolean; -- Flag5
8148
8149 function Then_Actions
8150 (N : Node_Id) return List_Id; -- List2
8151
8152 function Then_Statements
8153 (N : Node_Id) return List_Id; -- List2
8154
8155 function Treat_Fixed_As_Integer
8156 (N : Node_Id) return Boolean; -- Flag14
8157
8158 function Triggering_Alternative
8159 (N : Node_Id) return Node_Id; -- Node1
8160
8161 function Triggering_Statement
8162 (N : Node_Id) return Node_Id; -- Node1
8163
8164 function TSS_Elist
8165 (N : Node_Id) return Elist_Id; -- Elist3
8166
8167 function Type_Definition
8168 (N : Node_Id) return Node_Id; -- Node3
8169
8170 function Unit
8171 (N : Node_Id) return Node_Id; -- Node2
8172
8173 function Unknown_Discriminants_Present
8174 (N : Node_Id) return Boolean; -- Flag13
8175
8176 function Unreferenced_In_Spec
8177 (N : Node_Id) return Boolean; -- Flag7
8178
8179 function Variant_Part
8180 (N : Node_Id) return Node_Id; -- Node4
8181
8182 function Variants
8183 (N : Node_Id) return List_Id; -- List1
8184
8185 function Visible_Declarations
8186 (N : Node_Id) return List_Id; -- List2
8187
8188 function Was_Originally_Stub
8189 (N : Node_Id) return Boolean; -- Flag13
8190
8191 function Zero_Cost_Handling
8192 (N : Node_Id) return Boolean; -- Flag5
8193
8194 -- End functions (note used by xsinfo utility program to end processing)
8195
8196 ----------------------------
8197 -- Node Update Procedures --
8198 ----------------------------
8199
8200 -- These are the corresponding node update routines, which again provide
8201 -- a high level logical access with type checking. In addition to setting
8202 -- the indicated field of the node N to the given Val, in the case of
8203 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8204 -- point back to node N. This automates the setting of the parent pointer.
8205
8206 procedure Set_ABE_Is_Certain
8207 (N : Node_Id; Val : Boolean := True); -- Flag18
8208
8209 procedure Set_Abort_Present
8210 (N : Node_Id; Val : Boolean := True); -- Flag15
8211
8212 procedure Set_Abortable_Part
8213 (N : Node_Id; Val : Node_Id); -- Node2
8214
8215 procedure Set_Abstract_Present
8216 (N : Node_Id; Val : Boolean := True); -- Flag4
8217
8218 procedure Set_Accept_Handler_Records
8219 (N : Node_Id; Val : List_Id); -- List5
8220
8221 procedure Set_Accept_Statement
8222 (N : Node_Id; Val : Node_Id); -- Node2
8223
8224 procedure Set_Access_Definition
8225 (N : Node_Id; Val : Node_Id); -- Node3
8226
8227 procedure Set_Access_To_Subprogram_Definition
8228 (N : Node_Id; Val : Node_Id); -- Node3
8229
8230 procedure Set_Access_Types_To_Process
8231 (N : Node_Id; Val : Elist_Id); -- Elist2
8232
8233 procedure Set_Actions
8234 (N : Node_Id; Val : List_Id); -- List1
8235
8236 procedure Set_Activation_Chain_Entity
8237 (N : Node_Id; Val : Node_Id); -- Node3
8238
8239 procedure Set_Acts_As_Spec
8240 (N : Node_Id; Val : Boolean := True); -- Flag4
8241
8242 procedure Set_Actual_Designated_Subtype
8243 (N : Node_Id; Val : Node_Id); -- Node4
8244
8245 procedure Set_Aggregate_Bounds
8246 (N : Node_Id; Val : Node_Id); -- Node3
8247
8248 procedure Set_Aliased_Present
8249 (N : Node_Id; Val : Boolean := True); -- Flag4
8250
8251 procedure Set_All_Others
8252 (N : Node_Id; Val : Boolean := True); -- Flag11
8253
8254 procedure Set_All_Present
8255 (N : Node_Id; Val : Boolean := True); -- Flag15
8256
8257 procedure Set_Alternatives
8258 (N : Node_Id; Val : List_Id); -- List4
8259
8260 procedure Set_Ancestor_Part
8261 (N : Node_Id; Val : Node_Id); -- Node3
8262
8263 procedure Set_Array_Aggregate
8264 (N : Node_Id; Val : Node_Id); -- Node3
8265
8266 procedure Set_Assignment_OK
8267 (N : Node_Id; Val : Boolean := True); -- Flag15
8268
8269 procedure Set_Associated_Node
8270 (N : Node_Id; Val : Node_Id); -- Node4
8271
8272 procedure Set_Attribute_Name
8273 (N : Node_Id; Val : Name_Id); -- Name2
8274
8275 procedure Set_At_End_Proc
8276 (N : Node_Id; Val : Node_Id); -- Node1
8277
8278 procedure Set_Aux_Decls_Node
8279 (N : Node_Id; Val : Node_Id); -- Node5
8280
8281 procedure Set_Backwards_OK
8282 (N : Node_Id; Val : Boolean := True); -- Flag6
8283
8284 procedure Set_Bad_Is_Detected
8285 (N : Node_Id; Val : Boolean := True); -- Flag15
8286
8287 procedure Set_Body_Required
8288 (N : Node_Id; Val : Boolean := True); -- Flag13
8289
8290 procedure Set_Body_To_Inline
8291 (N : Node_Id; Val : Node_Id); -- Node3
8292
8293 procedure Set_Box_Present
8294 (N : Node_Id; Val : Boolean := True); -- Flag15
8295
8296 procedure Set_By_Ref
8297 (N : Node_Id; Val : Boolean := True); -- Flag5
8298
8299 procedure Set_Char_Literal_Value
8300 (N : Node_Id; Val : Uint); -- Uint2
8301
8302 procedure Set_Chars
8303 (N : Node_Id; Val : Name_Id); -- Name1
8304
8305 procedure Set_Check_Address_Alignment
8306 (N : Node_Id; Val : Boolean := True); -- Flag11
8307
8308 procedure Set_Choice_Parameter
8309 (N : Node_Id; Val : Node_Id); -- Node2
8310
8311 procedure Set_Coextensions
8312 (N : Node_Id; Val : Elist_Id); -- Elist4
8313
8314 procedure Set_Choices
8315 (N : Node_Id; Val : List_Id); -- List1
8316
8317 procedure Set_Comes_From_Extended_Return_Statement
8318 (N : Node_Id; Val : Boolean := True); -- Flag18
8319
8320 procedure Set_Compile_Time_Known_Aggregate
8321 (N : Node_Id; Val : Boolean := True); -- Flag18
8322
8323 procedure Set_Component_Associations
8324 (N : Node_Id; Val : List_Id); -- List2
8325
8326 procedure Set_Component_Clauses
8327 (N : Node_Id; Val : List_Id); -- List3
8328
8329 procedure Set_Component_Definition
8330 (N : Node_Id; Val : Node_Id); -- Node4
8331
8332 procedure Set_Component_Items
8333 (N : Node_Id; Val : List_Id); -- List3
8334
8335 procedure Set_Component_List
8336 (N : Node_Id; Val : Node_Id); -- Node1
8337
8338 procedure Set_Component_Name
8339 (N : Node_Id; Val : Node_Id); -- Node1
8340
8341 procedure Set_Condition
8342 (N : Node_Id; Val : Node_Id); -- Node1
8343
8344 procedure Set_Condition_Actions
8345 (N : Node_Id; Val : List_Id); -- List3
8346
8347 procedure Set_Config_Pragmas
8348 (N : Node_Id; Val : List_Id); -- List4
8349
8350 procedure Set_Constant_Present
8351 (N : Node_Id; Val : Boolean := True); -- Flag17
8352
8353 procedure Set_Constraint
8354 (N : Node_Id; Val : Node_Id); -- Node3
8355
8356 procedure Set_Constraints
8357 (N : Node_Id; Val : List_Id); -- List1
8358
8359 procedure Set_Context_Installed
8360 (N : Node_Id; Val : Boolean := True); -- Flag13
8361
8362 procedure Set_Context_Items
8363 (N : Node_Id; Val : List_Id); -- List1
8364
8365 procedure Set_Controlling_Argument
8366 (N : Node_Id; Val : Node_Id); -- Node1
8367
8368 procedure Set_Conversion_OK
8369 (N : Node_Id; Val : Boolean := True); -- Flag14
8370
8371 procedure Set_Corresponding_Body
8372 (N : Node_Id; Val : Node_Id); -- Node5
8373
8374 procedure Set_Corresponding_Formal_Spec
8375 (N : Node_Id; Val : Node_Id); -- Node3
8376
8377 procedure Set_Corresponding_Generic_Association
8378 (N : Node_Id; Val : Node_Id); -- Node5
8379
8380 procedure Set_Corresponding_Integer_Value
8381 (N : Node_Id; Val : Uint); -- Uint4
8382
8383 procedure Set_Corresponding_Spec
8384 (N : Node_Id; Val : Node_Id); -- Node5
8385
8386 procedure Set_Corresponding_Stub
8387 (N : Node_Id; Val : Node_Id); -- Node3
8388
8389 procedure Set_Dcheck_Function
8390 (N : Node_Id; Val : Entity_Id); -- Node5
8391
8392 procedure Set_Debug_Statement
8393 (N : Node_Id; Val : Node_Id); -- Node3
8394
8395 procedure Set_Declarations
8396 (N : Node_Id; Val : List_Id); -- List2
8397
8398 procedure Set_Default_Expression
8399 (N : Node_Id; Val : Node_Id); -- Node5
8400
8401 procedure Set_Default_Name
8402 (N : Node_Id; Val : Node_Id); -- Node2
8403
8404 procedure Set_Defining_Identifier
8405 (N : Node_Id; Val : Entity_Id); -- Node1
8406
8407 procedure Set_Defining_Unit_Name
8408 (N : Node_Id; Val : Node_Id); -- Node1
8409
8410 procedure Set_Delay_Alternative
8411 (N : Node_Id; Val : Node_Id); -- Node4
8412
8413 procedure Set_Delay_Finalize_Attach
8414 (N : Node_Id; Val : Boolean := True); -- Flag14
8415
8416 procedure Set_Delay_Statement
8417 (N : Node_Id; Val : Node_Id); -- Node2
8418
8419 procedure Set_Delta_Expression
8420 (N : Node_Id; Val : Node_Id); -- Node3
8421
8422 procedure Set_Digits_Expression
8423 (N : Node_Id; Val : Node_Id); -- Node2
8424
8425 procedure Set_Discr_Check_Funcs_Built
8426 (N : Node_Id; Val : Boolean := True); -- Flag11
8427
8428 procedure Set_Discrete_Choices
8429 (N : Node_Id; Val : List_Id); -- List4
8430
8431 procedure Set_Discrete_Range
8432 (N : Node_Id; Val : Node_Id); -- Node4
8433
8434 procedure Set_Discrete_Subtype_Definition
8435 (N : Node_Id; Val : Node_Id); -- Node4
8436
8437 procedure Set_Discrete_Subtype_Definitions
8438 (N : Node_Id; Val : List_Id); -- List2
8439
8440 procedure Set_Discriminant_Specifications
8441 (N : Node_Id; Val : List_Id); -- List4
8442
8443 procedure Set_Discriminant_Type
8444 (N : Node_Id; Val : Node_Id); -- Node5
8445
8446 procedure Set_Do_Accessibility_Check
8447 (N : Node_Id; Val : Boolean := True); -- Flag13
8448
8449 procedure Set_Do_Discriminant_Check
8450 (N : Node_Id; Val : Boolean := True); -- Flag13
8451
8452 procedure Set_Do_Division_Check
8453 (N : Node_Id; Val : Boolean := True); -- Flag13
8454
8455 procedure Set_Do_Length_Check
8456 (N : Node_Id; Val : Boolean := True); -- Flag4
8457
8458 procedure Set_Do_Overflow_Check
8459 (N : Node_Id; Val : Boolean := True); -- Flag17
8460
8461 procedure Set_Do_Range_Check
8462 (N : Node_Id; Val : Boolean := True); -- Flag9
8463
8464 procedure Set_Do_Storage_Check
8465 (N : Node_Id; Val : Boolean := True); -- Flag17
8466
8467 procedure Set_Do_Tag_Check
8468 (N : Node_Id; Val : Boolean := True); -- Flag13
8469
8470 procedure Set_Elaborate_All_Desirable
8471 (N : Node_Id; Val : Boolean := True); -- Flag9
8472
8473 procedure Set_Elaborate_All_Present
8474 (N : Node_Id; Val : Boolean := True); -- Flag14
8475
8476 procedure Set_Elaborate_Desirable
8477 (N : Node_Id; Val : Boolean := True); -- Flag11
8478
8479 procedure Set_Elaborate_Present
8480 (N : Node_Id; Val : Boolean := True); -- Flag4
8481
8482 procedure Set_Elaboration_Boolean
8483 (N : Node_Id; Val : Node_Id); -- Node2
8484
8485 procedure Set_Else_Actions
8486 (N : Node_Id; Val : List_Id); -- List3
8487
8488 procedure Set_Else_Statements
8489 (N : Node_Id; Val : List_Id); -- List4
8490
8491 procedure Set_Elsif_Parts
8492 (N : Node_Id; Val : List_Id); -- List3
8493
8494 procedure Set_Enclosing_Variant
8495 (N : Node_Id; Val : Node_Id); -- Node2
8496
8497 procedure Set_End_Label
8498 (N : Node_Id; Val : Node_Id); -- Node4
8499
8500 procedure Set_End_Span
8501 (N : Node_Id; Val : Uint); -- Uint5
8502
8503 procedure Set_Entity
8504 (N : Node_Id; Val : Node_Id); -- Node4
8505
8506 procedure Set_Entry_Body_Formal_Part
8507 (N : Node_Id; Val : Node_Id); -- Node5
8508
8509 procedure Set_Entry_Call_Alternative
8510 (N : Node_Id; Val : Node_Id); -- Node1
8511
8512 procedure Set_Entry_Call_Statement
8513 (N : Node_Id; Val : Node_Id); -- Node1
8514
8515 procedure Set_Entry_Direct_Name
8516 (N : Node_Id; Val : Node_Id); -- Node1
8517
8518 procedure Set_Entry_Index
8519 (N : Node_Id; Val : Node_Id); -- Node5
8520
8521 procedure Set_Entry_Index_Specification
8522 (N : Node_Id; Val : Node_Id); -- Node4
8523
8524 procedure Set_Etype
8525 (N : Node_Id; Val : Node_Id); -- Node5
8526
8527 procedure Set_Exception_Choices
8528 (N : Node_Id; Val : List_Id); -- List4
8529
8530 procedure Set_Exception_Handlers
8531 (N : Node_Id; Val : List_Id); -- List5
8532
8533 procedure Set_Exception_Junk
8534 (N : Node_Id; Val : Boolean := True); -- Flag7
8535
8536 procedure Set_Exception_Label
8537 (N : Node_Id; Val : Node_Id); -- Node5
8538
8539 procedure Set_Expansion_Delayed
8540 (N : Node_Id; Val : Boolean := True); -- Flag11
8541
8542 procedure Set_Explicit_Actual_Parameter
8543 (N : Node_Id; Val : Node_Id); -- Node3
8544
8545 procedure Set_Explicit_Generic_Actual_Parameter
8546 (N : Node_Id; Val : Node_Id); -- Node1
8547
8548 procedure Set_Expression
8549 (N : Node_Id; Val : Node_Id); -- Node3
8550
8551 procedure Set_Expressions
8552 (N : Node_Id; Val : List_Id); -- List1
8553
8554 procedure Set_First_Bit
8555 (N : Node_Id; Val : Node_Id); -- Node3
8556
8557 procedure Set_First_Inlined_Subprogram
8558 (N : Node_Id; Val : Entity_Id); -- Node3
8559
8560 procedure Set_First_Name
8561 (N : Node_Id; Val : Boolean := True); -- Flag5
8562
8563 procedure Set_First_Named_Actual
8564 (N : Node_Id; Val : Node_Id); -- Node4
8565
8566 procedure Set_First_Real_Statement
8567 (N : Node_Id; Val : Node_Id); -- Node2
8568
8569 procedure Set_First_Subtype_Link
8570 (N : Node_Id; Val : Entity_Id); -- Node5
8571
8572 procedure Set_Float_Truncate
8573 (N : Node_Id; Val : Boolean := True); -- Flag11
8574
8575 procedure Set_Formal_Type_Definition
8576 (N : Node_Id; Val : Node_Id); -- Node3
8577
8578 procedure Set_Forwards_OK
8579 (N : Node_Id; Val : Boolean := True); -- Flag5
8580
8581 procedure Set_From_At_Mod
8582 (N : Node_Id; Val : Boolean := True); -- Flag4
8583
8584 procedure Set_From_Default
8585 (N : Node_Id; Val : Boolean := True); -- Flag6
8586
8587 procedure Set_Generic_Associations
8588 (N : Node_Id; Val : List_Id); -- List3
8589
8590 procedure Set_Generic_Formal_Declarations
8591 (N : Node_Id; Val : List_Id); -- List2
8592
8593 procedure Set_Generic_Parent
8594 (N : Node_Id; Val : Node_Id); -- Node5
8595
8596 procedure Set_Generic_Parent_Type
8597 (N : Node_Id; Val : Node_Id); -- Node4
8598
8599 procedure Set_Handled_Statement_Sequence
8600 (N : Node_Id; Val : Node_Id); -- Node4
8601
8602 procedure Set_Handler_List_Entry
8603 (N : Node_Id; Val : Node_Id); -- Node2
8604
8605 procedure Set_Has_Created_Identifier
8606 (N : Node_Id; Val : Boolean := True); -- Flag15
8607
8608 procedure Set_Has_Dynamic_Length_Check
8609 (N : Node_Id; Val : Boolean := True); -- Flag10
8610
8611 procedure Set_Has_Dynamic_Range_Check
8612 (N : Node_Id; Val : Boolean := True); -- Flag12
8613
8614 procedure Set_Has_No_Elaboration_Code
8615 (N : Node_Id; Val : Boolean := True); -- Flag17
8616
8617 procedure Set_Has_Priority_Pragma
8618 (N : Node_Id; Val : Boolean := True); -- Flag6
8619
8620 procedure Set_Has_Private_View
8621 (N : Node_Id; Val : Boolean := True); -- Flag11
8622
8623 procedure Set_Has_Self_Reference
8624 (N : Node_Id; Val : Boolean := True); -- Flag13
8625
8626 procedure Set_Has_Storage_Size_Pragma
8627 (N : Node_Id; Val : Boolean := True); -- Flag5
8628
8629 procedure Set_Has_Task_Info_Pragma
8630 (N : Node_Id; Val : Boolean := True); -- Flag7
8631
8632 procedure Set_Has_Task_Name_Pragma
8633 (N : Node_Id; Val : Boolean := True); -- Flag8
8634
8635 procedure Set_Has_Wide_Character
8636 (N : Node_Id; Val : Boolean := True); -- Flag11
8637
8638 procedure Set_Hidden_By_Use_Clause
8639 (N : Node_Id; Val : Elist_Id); -- Elist4
8640
8641 procedure Set_High_Bound
8642 (N : Node_Id; Val : Node_Id); -- Node2
8643
8644 procedure Set_Identifier
8645 (N : Node_Id; Val : Node_Id); -- Node1
8646
8647 procedure Set_Interface_List
8648 (N : Node_Id; Val : List_Id); -- List2
8649
8650 procedure Set_Interface_Present
8651 (N : Node_Id; Val : Boolean := True); -- Flag16
8652
8653 procedure Set_Implicit_With
8654 (N : Node_Id; Val : Boolean := True); -- Flag16
8655
8656 procedure Set_In_Present
8657 (N : Node_Id; Val : Boolean := True); -- Flag15
8658
8659 procedure Set_Includes_Infinities
8660 (N : Node_Id; Val : Boolean := True); -- Flag11
8661
8662 procedure Set_Instance_Spec
8663 (N : Node_Id; Val : Node_Id); -- Node5
8664
8665 procedure Set_Intval
8666 (N : Node_Id; Val : Uint); -- Uint3
8667
8668 procedure Set_Is_Asynchronous_Call_Block
8669 (N : Node_Id; Val : Boolean := True); -- Flag7
8670
8671 procedure Set_Is_Coextension
8672 (N : Node_Id; Val : Boolean := True); -- Flag18
8673
8674 procedure Set_Is_Component_Left_Opnd
8675 (N : Node_Id; Val : Boolean := True); -- Flag13
8676
8677 procedure Set_Is_Component_Right_Opnd
8678 (N : Node_Id; Val : Boolean := True); -- Flag14
8679
8680 procedure Set_Is_Controlling_Actual
8681 (N : Node_Id; Val : Boolean := True); -- Flag16
8682
8683 procedure Set_Is_Entry_Barrier_Function
8684 (N : Node_Id; Val : Boolean := True); -- Flag8
8685
8686 procedure Set_Is_In_Discriminant_Check
8687 (N : Node_Id; Val : Boolean := True); -- Flag11
8688
8689 procedure Set_Is_Machine_Number
8690 (N : Node_Id; Val : Boolean := True); -- Flag11
8691
8692 procedure Set_Is_Null_Loop
8693 (N : Node_Id; Val : Boolean := True); -- Flag16
8694
8695 procedure Set_Is_Overloaded
8696 (N : Node_Id; Val : Boolean := True); -- Flag5
8697
8698 procedure Set_Is_Power_Of_2_For_Shift
8699 (N : Node_Id; Val : Boolean := True); -- Flag13
8700
8701 procedure Set_Is_Protected_Subprogram_Body
8702 (N : Node_Id; Val : Boolean := True); -- Flag7
8703
8704 procedure Set_Is_Static_Expression
8705 (N : Node_Id; Val : Boolean := True); -- Flag6
8706
8707 procedure Set_Is_Subprogram_Descriptor
8708 (N : Node_Id; Val : Boolean := True); -- Flag16
8709
8710 procedure Set_Is_Task_Allocation_Block
8711 (N : Node_Id; Val : Boolean := True); -- Flag6
8712
8713 procedure Set_Is_Task_Master
8714 (N : Node_Id; Val : Boolean := True); -- Flag5
8715
8716 procedure Set_Iteration_Scheme
8717 (N : Node_Id; Val : Node_Id); -- Node2
8718
8719 procedure Set_Itype
8720 (N : Node_Id; Val : Entity_Id); -- Node1
8721
8722 procedure Set_Kill_Range_Check
8723 (N : Node_Id; Val : Boolean := True); -- Flag11
8724
8725 procedure Set_Last_Bit
8726 (N : Node_Id; Val : Node_Id); -- Node4
8727
8728 procedure Set_Last_Name
8729 (N : Node_Id; Val : Boolean := True); -- Flag6
8730
8731 procedure Set_Library_Unit
8732 (N : Node_Id; Val : Node_Id); -- Node4
8733
8734 procedure Set_Label_Construct
8735 (N : Node_Id; Val : Node_Id); -- Node2
8736
8737 procedure Set_Left_Opnd
8738 (N : Node_Id; Val : Node_Id); -- Node2
8739
8740 procedure Set_Limited_View_Installed
8741 (N : Node_Id; Val : Boolean := True); -- Flag18
8742
8743 procedure Set_Limited_Present
8744 (N : Node_Id; Val : Boolean := True); -- Flag17
8745
8746 procedure Set_Literals
8747 (N : Node_Id; Val : List_Id); -- List1
8748
8749 procedure Set_Local_Raise_Not_OK
8750 (N : Node_Id; Val : Boolean := True); -- Flag7
8751
8752 procedure Set_Local_Raise_Statements
8753 (N : Node_Id; Val : Elist_Id); -- Elist1
8754
8755 procedure Set_Loop_Actions
8756 (N : Node_Id; Val : List_Id); -- List2
8757
8758 procedure Set_Loop_Parameter_Specification
8759 (N : Node_Id; Val : Node_Id); -- Node4
8760
8761 procedure Set_Low_Bound
8762 (N : Node_Id; Val : Node_Id); -- Node1
8763
8764 procedure Set_Mod_Clause
8765 (N : Node_Id; Val : Node_Id); -- Node2
8766
8767 procedure Set_More_Ids
8768 (N : Node_Id; Val : Boolean := True); -- Flag5
8769
8770 procedure Set_Must_Be_Byte_Aligned
8771 (N : Node_Id; Val : Boolean := True); -- Flag14
8772
8773 procedure Set_Must_Not_Freeze
8774 (N : Node_Id; Val : Boolean := True); -- Flag8
8775
8776 procedure Set_Must_Not_Override
8777 (N : Node_Id; Val : Boolean := True); -- Flag15
8778
8779 procedure Set_Must_Override
8780 (N : Node_Id; Val : Boolean := True); -- Flag14
8781
8782 procedure Set_Name
8783 (N : Node_Id; Val : Node_Id); -- Node2
8784
8785 procedure Set_Names
8786 (N : Node_Id; Val : List_Id); -- List2
8787
8788 procedure Set_Next_Entity
8789 (N : Node_Id; Val : Node_Id); -- Node2
8790
8791 procedure Set_Next_Named_Actual
8792 (N : Node_Id; Val : Node_Id); -- Node4
8793
8794 procedure Set_Next_Rep_Item
8795 (N : Node_Id; Val : Node_Id); -- Node5
8796
8797 procedure Set_Next_Use_Clause
8798 (N : Node_Id; Val : Node_Id); -- Node3
8799
8800 procedure Set_No_Ctrl_Actions
8801 (N : Node_Id; Val : Boolean := True); -- Flag7
8802
8803 procedure Set_No_Elaboration_Check
8804 (N : Node_Id; Val : Boolean := True); -- Flag14
8805
8806 procedure Set_No_Entities_Ref_In_Spec
8807 (N : Node_Id; Val : Boolean := True); -- Flag8
8808
8809 procedure Set_No_Initialization
8810 (N : Node_Id; Val : Boolean := True); -- Flag13
8811
8812 procedure Set_No_Truncation
8813 (N : Node_Id; Val : Boolean := True); -- Flag17
8814
8815 procedure Set_Null_Present
8816 (N : Node_Id; Val : Boolean := True); -- Flag13
8817
8818 procedure Set_Null_Exclusion_Present
8819 (N : Node_Id; Val : Boolean := True); -- Flag11
8820
8821 procedure Set_Null_Record_Present
8822 (N : Node_Id; Val : Boolean := True); -- Flag17
8823
8824 procedure Set_Object_Definition
8825 (N : Node_Id; Val : Node_Id); -- Node4
8826
8827 procedure Set_Original_Discriminant
8828 (N : Node_Id; Val : Node_Id); -- Node2
8829
8830 procedure Set_Original_Entity
8831 (N : Node_Id; Val : Entity_Id); -- Node2
8832
8833 procedure Set_Others_Discrete_Choices
8834 (N : Node_Id; Val : List_Id); -- List1
8835
8836 procedure Set_Out_Present
8837 (N : Node_Id; Val : Boolean := True); -- Flag17
8838
8839 procedure Set_Parameter_Associations
8840 (N : Node_Id; Val : List_Id); -- List3
8841
8842 procedure Set_Parameter_List_Truncated
8843 (N : Node_Id; Val : Boolean := True); -- Flag17
8844
8845 procedure Set_Parameter_Specifications
8846 (N : Node_Id; Val : List_Id); -- List3
8847
8848 procedure Set_Parameter_Type
8849 (N : Node_Id; Val : Node_Id); -- Node2
8850
8851 procedure Set_Parent_Spec
8852 (N : Node_Id; Val : Node_Id); -- Node4
8853
8854 procedure Set_Position
8855 (N : Node_Id; Val : Node_Id); -- Node2
8856
8857 procedure Set_Pragma_Argument_Associations
8858 (N : Node_Id; Val : List_Id); -- List2
8859
8860 procedure Set_Pragmas_After
8861 (N : Node_Id; Val : List_Id); -- List5
8862
8863 procedure Set_Pragmas_Before
8864 (N : Node_Id; Val : List_Id); -- List4
8865
8866 procedure Set_Prefix
8867 (N : Node_Id; Val : Node_Id); -- Node3
8868
8869 procedure Set_Present_Expr
8870 (N : Node_Id; Val : Uint); -- Uint3
8871
8872 procedure Set_Prev_Ids
8873 (N : Node_Id; Val : Boolean := True); -- Flag6
8874
8875 procedure Set_Print_In_Hex
8876 (N : Node_Id; Val : Boolean := True); -- Flag13
8877
8878 procedure Set_Private_Declarations
8879 (N : Node_Id; Val : List_Id); -- List3
8880
8881 procedure Set_Private_Present
8882 (N : Node_Id; Val : Boolean := True); -- Flag15
8883
8884 procedure Set_Procedure_To_Call
8885 (N : Node_Id; Val : Node_Id); -- Node2
8886
8887 procedure Set_Proper_Body
8888 (N : Node_Id; Val : Node_Id); -- Node1
8889
8890 procedure Set_Protected_Definition
8891 (N : Node_Id; Val : Node_Id); -- Node3
8892
8893 procedure Set_Protected_Present
8894 (N : Node_Id; Val : Boolean := True); -- Flag6
8895
8896 procedure Set_Raises_Constraint_Error
8897 (N : Node_Id; Val : Boolean := True); -- Flag7
8898
8899 procedure Set_Range_Constraint
8900 (N : Node_Id; Val : Node_Id); -- Node4
8901
8902 procedure Set_Range_Expression
8903 (N : Node_Id; Val : Node_Id); -- Node4
8904
8905 procedure Set_Real_Range_Specification
8906 (N : Node_Id; Val : Node_Id); -- Node4
8907
8908 procedure Set_Realval
8909 (N : Node_Id; Val : Ureal); -- Ureal3
8910
8911 procedure Set_Reason
8912 (N : Node_Id; Val : Uint); -- Uint3
8913
8914 procedure Set_Record_Extension_Part
8915 (N : Node_Id; Val : Node_Id); -- Node3
8916
8917 procedure Set_Redundant_Use
8918 (N : Node_Id; Val : Boolean := True); -- Flag13
8919
8920 procedure Set_Result_Definition
8921 (N : Node_Id; Val : Node_Id); -- Node4
8922
8923 procedure Set_Return_Object_Declarations
8924 (N : Node_Id; Val : List_Id); -- List3
8925
8926 procedure Set_Return_Statement_Entity
8927 (N : Node_Id; Val : Node_Id); -- Node5
8928
8929 procedure Set_Reverse_Present
8930 (N : Node_Id; Val : Boolean := True); -- Flag15
8931
8932 procedure Set_Right_Opnd
8933 (N : Node_Id; Val : Node_Id); -- Node3
8934
8935 procedure Set_Rounded_Result
8936 (N : Node_Id; Val : Boolean := True); -- Flag18
8937
8938 procedure Set_Scope
8939 (N : Node_Id; Val : Node_Id); -- Node3
8940
8941 procedure Set_Select_Alternatives
8942 (N : Node_Id; Val : List_Id); -- List1
8943
8944 procedure Set_Selector_Name
8945 (N : Node_Id; Val : Node_Id); -- Node2
8946
8947 procedure Set_Selector_Names
8948 (N : Node_Id; Val : List_Id); -- List1
8949
8950 procedure Set_Shift_Count_OK
8951 (N : Node_Id; Val : Boolean := True); -- Flag4
8952
8953 procedure Set_Source_Type
8954 (N : Node_Id; Val : Entity_Id); -- Node1
8955
8956 procedure Set_Specification
8957 (N : Node_Id; Val : Node_Id); -- Node1
8958
8959 procedure Set_Statements
8960 (N : Node_Id; Val : List_Id); -- List3
8961
8962 procedure Set_Static_Processing_OK
8963 (N : Node_Id; Val : Boolean); -- Flag4
8964
8965 procedure Set_Storage_Pool
8966 (N : Node_Id; Val : Node_Id); -- Node1
8967
8968 procedure Set_Strval
8969 (N : Node_Id; Val : String_Id); -- Str3
8970
8971 procedure Set_Subtype_Indication
8972 (N : Node_Id; Val : Node_Id); -- Node5
8973
8974 procedure Set_Subtype_Mark
8975 (N : Node_Id; Val : Node_Id); -- Node4
8976
8977 procedure Set_Subtype_Marks
8978 (N : Node_Id; Val : List_Id); -- List2
8979
8980 procedure Set_Synchronized_Present
8981 (N : Node_Id; Val : Boolean := True); -- Flag7
8982
8983 procedure Set_Tagged_Present
8984 (N : Node_Id; Val : Boolean := True); -- Flag15
8985
8986 procedure Set_Target_Type
8987 (N : Node_Id; Val : Entity_Id); -- Node2
8988
8989 procedure Set_Task_Definition
8990 (N : Node_Id; Val : Node_Id); -- Node3
8991
8992 procedure Set_Task_Present
8993 (N : Node_Id; Val : Boolean := True); -- Flag5
8994
8995 procedure Set_Then_Actions
8996 (N : Node_Id; Val : List_Id); -- List2
8997
8998 procedure Set_Then_Statements
8999 (N : Node_Id; Val : List_Id); -- List2
9000
9001 procedure Set_Treat_Fixed_As_Integer
9002 (N : Node_Id; Val : Boolean := True); -- Flag14
9003
9004 procedure Set_Triggering_Alternative
9005 (N : Node_Id; Val : Node_Id); -- Node1
9006
9007 procedure Set_Triggering_Statement
9008 (N : Node_Id; Val : Node_Id); -- Node1
9009
9010 procedure Set_TSS_Elist
9011 (N : Node_Id; Val : Elist_Id); -- Elist3
9012
9013 procedure Set_Type_Definition
9014 (N : Node_Id; Val : Node_Id); -- Node3
9015
9016 procedure Set_Unit
9017 (N : Node_Id; Val : Node_Id); -- Node2
9018
9019 procedure Set_Unknown_Discriminants_Present
9020 (N : Node_Id; Val : Boolean := True); -- Flag13
9021
9022 procedure Set_Unreferenced_In_Spec
9023 (N : Node_Id; Val : Boolean := True); -- Flag7
9024
9025 procedure Set_Variant_Part
9026 (N : Node_Id; Val : Node_Id); -- Node4
9027
9028 procedure Set_Variants
9029 (N : Node_Id; Val : List_Id); -- List1
9030
9031 procedure Set_Visible_Declarations
9032 (N : Node_Id; Val : List_Id); -- List2
9033
9034 procedure Set_Was_Originally_Stub
9035 (N : Node_Id; Val : Boolean := True); -- Flag13
9036
9037 procedure Set_Zero_Cost_Handling
9038 (N : Node_Id; Val : Boolean := True); -- Flag5
9039
9040 -------------------------
9041 -- Iterator Procedures --
9042 -------------------------
9043
9044 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9045
9046 procedure Next_Entity (N : in out Node_Id);
9047 procedure Next_Named_Actual (N : in out Node_Id);
9048 procedure Next_Rep_Item (N : in out Node_Id);
9049 procedure Next_Use_Clause (N : in out Node_Id);
9050
9051 --------------------------------------
9052 -- Logical Access to End_Span Field --
9053 --------------------------------------
9054
9055 function End_Location (N : Node_Id) return Source_Ptr;
9056 -- N is an N_If_Statement or N_Case_Statement node, and this
9057 -- function returns the location of the IF token in the END IF
9058 -- sequence by translating the value of the End_Span field.
9059
9060 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9061 -- N is an N_If_Statement or N_Case_Statement node. This procedure
9062 -- sets the End_Span field to correspond to the given value S. In
9063 -- other words, End_Span is set to the difference between S and
9064 -- Sloc (N), the starting location.
9065
9066 -----------------------------
9067 -- Syntactic Parent Tables --
9068 -----------------------------
9069
9070 -- These tables show for each node, and for each of the five fields,
9071 -- whether the corresponding field is syntactic (True) or semantic (False).
9072 -- Unused entries are also set to False.
9073
9074 subtype Field_Num is Natural range 1 .. 5;
9075
9076 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
9077
9078 -- Following entries can be built automatically from the sinfo sources
9079 -- using the makeisf utility (currently this program is in spitbol).
9080
9081 N_Identifier =>
9082 (1 => True, -- Chars (Name1)
9083 2 => False, -- Original_Discriminant (Node2-Sem)
9084 3 => False, -- unused
9085 4 => False, -- Entity (Node4-Sem)
9086 5 => False), -- Etype (Node5-Sem)
9087
9088 N_Integer_Literal =>
9089 (1 => False, -- unused
9090 2 => False, -- Original_Entity (Node2-Sem)
9091 3 => True, -- Intval (Uint3)
9092 4 => False, -- unused
9093 5 => False), -- Etype (Node5-Sem)
9094
9095 N_Real_Literal =>
9096 (1 => False, -- unused
9097 2 => False, -- Original_Entity (Node2-Sem)
9098 3 => True, -- Realval (Ureal3)
9099 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
9100 5 => False), -- Etype (Node5-Sem)
9101
9102 N_Character_Literal =>
9103 (1 => True, -- Chars (Name1)
9104 2 => True, -- Char_Literal_Value (Uint2)
9105 3 => False, -- unused
9106 4 => False, -- Entity (Node4-Sem)
9107 5 => False), -- Etype (Node5-Sem)
9108
9109 N_String_Literal =>
9110 (1 => False, -- unused
9111 2 => False, -- unused
9112 3 => True, -- Strval (Str3)
9113 4 => False, -- unused
9114 5 => False), -- Etype (Node5-Sem)
9115
9116 N_Pragma =>
9117 (1 => True, -- Chars (Name1)
9118 2 => True, -- Pragma_Argument_Associations (List2)
9119 3 => True, -- Debug_Statement (Node3)
9120 4 => False, -- Entity (Node4-Sem)
9121 5 => False), -- Next_Rep_Item (Node5-Sem)
9122
9123 N_Pragma_Argument_Association =>
9124 (1 => True, -- Chars (Name1)
9125 2 => False, -- unused
9126 3 => True, -- Expression (Node3)
9127 4 => False, -- unused
9128 5 => False), -- unused
9129
9130 N_Defining_Identifier =>
9131 (1 => True, -- Chars (Name1)
9132 2 => False, -- Next_Entity (Node2-Sem)
9133 3 => False, -- Scope (Node3-Sem)
9134 4 => False, -- unused
9135 5 => False), -- Etype (Node5-Sem)
9136
9137 N_Full_Type_Declaration =>
9138 (1 => True, -- Defining_Identifier (Node1)
9139 2 => False, -- unused
9140 3 => True, -- Type_Definition (Node3)
9141 4 => True, -- Discriminant_Specifications (List4)
9142 5 => False), -- unused
9143
9144 N_Subtype_Declaration =>
9145 (1 => True, -- Defining_Identifier (Node1)
9146 2 => False, -- unused
9147 3 => False, -- unused
9148 4 => False, -- Generic_Parent_Type (Node4-Sem)
9149 5 => True), -- Subtype_Indication (Node5)
9150
9151 N_Subtype_Indication =>
9152 (1 => False, -- unused
9153 2 => False, -- unused
9154 3 => True, -- Constraint (Node3)
9155 4 => True, -- Subtype_Mark (Node4)
9156 5 => False), -- Etype (Node5-Sem)
9157
9158 N_Object_Declaration =>
9159 (1 => True, -- Defining_Identifier (Node1)
9160 2 => False, -- Handler_List_Entry (Node2-Sem)
9161 3 => True, -- Expression (Node3)
9162 4 => True, -- Object_Definition (Node4)
9163 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9164
9165 N_Number_Declaration =>
9166 (1 => True, -- Defining_Identifier (Node1)
9167 2 => False, -- unused
9168 3 => True, -- Expression (Node3)
9169 4 => False, -- unused
9170 5 => False), -- unused
9171
9172 N_Derived_Type_Definition =>
9173 (1 => False, -- unused
9174 2 => True, -- Interface_List (List2)
9175 3 => True, -- Record_Extension_Part (Node3)
9176 4 => False, -- unused
9177 5 => True), -- Subtype_Indication (Node5)
9178
9179 N_Range_Constraint =>
9180 (1 => False, -- unused
9181 2 => False, -- unused
9182 3 => False, -- unused
9183 4 => True, -- Range_Expression (Node4)
9184 5 => False), -- unused
9185
9186 N_Range =>
9187 (1 => True, -- Low_Bound (Node1)
9188 2 => True, -- High_Bound (Node2)
9189 3 => False, -- unused
9190 4 => False, -- unused
9191 5 => False), -- Etype (Node5-Sem)
9192
9193 N_Enumeration_Type_Definition =>
9194 (1 => True, -- Literals (List1)
9195 2 => False, -- unused
9196 3 => False, -- unused
9197 4 => True, -- End_Label (Node4)
9198 5 => False), -- unused
9199
9200 N_Defining_Character_Literal =>
9201 (1 => True, -- Chars (Name1)
9202 2 => False, -- Next_Entity (Node2-Sem)
9203 3 => False, -- Scope (Node3-Sem)
9204 4 => False, -- unused
9205 5 => False), -- Etype (Node5-Sem)
9206
9207 N_Signed_Integer_Type_Definition =>
9208 (1 => True, -- Low_Bound (Node1)
9209 2 => True, -- High_Bound (Node2)
9210 3 => False, -- unused
9211 4 => False, -- unused
9212 5 => False), -- unused
9213
9214 N_Modular_Type_Definition =>
9215 (1 => False, -- unused
9216 2 => False, -- unused
9217 3 => True, -- Expression (Node3)
9218 4 => False, -- unused
9219 5 => False), -- unused
9220
9221 N_Floating_Point_Definition =>
9222 (1 => False, -- unused
9223 2 => True, -- Digits_Expression (Node2)
9224 3 => False, -- unused
9225 4 => True, -- Real_Range_Specification (Node4)
9226 5 => False), -- unused
9227
9228 N_Real_Range_Specification =>
9229 (1 => True, -- Low_Bound (Node1)
9230 2 => True, -- High_Bound (Node2)
9231 3 => False, -- unused
9232 4 => False, -- unused
9233 5 => False), -- unused
9234
9235 N_Ordinary_Fixed_Point_Definition =>
9236 (1 => False, -- unused
9237 2 => False, -- unused
9238 3 => True, -- Delta_Expression (Node3)
9239 4 => True, -- Real_Range_Specification (Node4)
9240 5 => False), -- unused
9241
9242 N_Decimal_Fixed_Point_Definition =>
9243 (1 => False, -- unused
9244 2 => True, -- Digits_Expression (Node2)
9245 3 => True, -- Delta_Expression (Node3)
9246 4 => True, -- Real_Range_Specification (Node4)
9247 5 => False), -- unused
9248
9249 N_Digits_Constraint =>
9250 (1 => False, -- unused
9251 2 => True, -- Digits_Expression (Node2)
9252 3 => False, -- unused
9253 4 => True, -- Range_Constraint (Node4)
9254 5 => False), -- unused
9255
9256 N_Unconstrained_Array_Definition =>
9257 (1 => False, -- unused
9258 2 => True, -- Subtype_Marks (List2)
9259 3 => False, -- unused
9260 4 => True, -- Component_Definition (Node4)
9261 5 => False), -- unused
9262
9263 N_Constrained_Array_Definition =>
9264 (1 => False, -- unused
9265 2 => True, -- Discrete_Subtype_Definitions (List2)
9266 3 => False, -- unused
9267 4 => True, -- Component_Definition (Node4)
9268 5 => False), -- unused
9269
9270 N_Component_Definition =>
9271 (1 => False, -- unused
9272 2 => False, -- unused
9273 3 => True, -- Access_Definition (Node3)
9274 4 => False, -- unused
9275 5 => True), -- Subtype_Indication (Node5)
9276
9277 N_Discriminant_Specification =>
9278 (1 => True, -- Defining_Identifier (Node1)
9279 2 => False, -- unused
9280 3 => True, -- Expression (Node3)
9281 4 => False, -- unused
9282 5 => True), -- Discriminant_Type (Node5)
9283
9284 N_Index_Or_Discriminant_Constraint =>
9285 (1 => True, -- Constraints (List1)
9286 2 => False, -- unused
9287 3 => False, -- unused
9288 4 => False, -- unused
9289 5 => False), -- unused
9290
9291 N_Discriminant_Association =>
9292 (1 => True, -- Selector_Names (List1)
9293 2 => False, -- unused
9294 3 => True, -- Expression (Node3)
9295 4 => False, -- unused
9296 5 => False), -- unused
9297
9298 N_Record_Definition =>
9299 (1 => True, -- Component_List (Node1)
9300 2 => True, -- Interface_List (List2)
9301 3 => False, -- unused
9302 4 => True, -- End_Label (Node4)
9303 5 => False), -- unused
9304
9305 N_Component_List =>
9306 (1 => False, -- unused
9307 2 => False, -- unused
9308 3 => True, -- Component_Items (List3)
9309 4 => True, -- Variant_Part (Node4)
9310 5 => False), -- unused
9311
9312 N_Component_Declaration =>
9313 (1 => True, -- Defining_Identifier (Node1)
9314 2 => False, -- unused
9315 3 => True, -- Expression (Node3)
9316 4 => True, -- Component_Definition (Node4)
9317 5 => False), -- unused
9318
9319 N_Variant_Part =>
9320 (1 => True, -- Variants (List1)
9321 2 => True, -- Name (Node2)
9322 3 => False, -- unused
9323 4 => False, -- unused
9324 5 => False), -- unused
9325
9326 N_Variant =>
9327 (1 => True, -- Component_List (Node1)
9328 2 => False, -- Enclosing_Variant (Node2-Sem)
9329 3 => False, -- Present_Expr (Uint3-Sem)
9330 4 => True, -- Discrete_Choices (List4)
9331 5 => False), -- Dcheck_Function (Node5-Sem)
9332
9333 N_Others_Choice =>
9334 (1 => False, -- Others_Discrete_Choices (List1-Sem)
9335 2 => False, -- unused
9336 3 => False, -- unused
9337 4 => False, -- unused
9338 5 => False), -- unused
9339
9340 N_Access_To_Object_Definition =>
9341 (1 => False, -- unused
9342 2 => False, -- unused
9343 3 => False, -- unused
9344 4 => False, -- unused
9345 5 => True), -- Subtype_Indication (Node5)
9346
9347 N_Access_Function_Definition =>
9348 (1 => False, -- unused
9349 2 => False, -- unused
9350 3 => True, -- Parameter_Specifications (List3)
9351 4 => True, -- Result_Definition (Node4)
9352 5 => False), -- unused
9353
9354 N_Access_Procedure_Definition =>
9355 (1 => False, -- unused
9356 2 => False, -- unused
9357 3 => True, -- Parameter_Specifications (List3)
9358 4 => False, -- unused
9359 5 => False), -- unused
9360
9361 N_Access_Definition =>
9362 (1 => False, -- unused
9363 2 => False, -- unused
9364 3 => True, -- Access_To_Subprogram_Definition (Node3)
9365 4 => True, -- Subtype_Mark (Node4)
9366 5 => False), -- unused
9367
9368 N_Incomplete_Type_Declaration =>
9369 (1 => True, -- Defining_Identifier (Node1)
9370 2 => False, -- unused
9371 3 => False, -- unused
9372 4 => True, -- Discriminant_Specifications (List4)
9373 5 => False), -- unused
9374
9375 N_Explicit_Dereference =>
9376 (1 => False, -- unused
9377 2 => False, -- unused
9378 3 => True, -- Prefix (Node3)
9379 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
9380 5 => False), -- Etype (Node5-Sem)
9381
9382 N_Indexed_Component =>
9383 (1 => True, -- Expressions (List1)
9384 2 => False, -- unused
9385 3 => True, -- Prefix (Node3)
9386 4 => False, -- unused
9387 5 => False), -- Etype (Node5-Sem)
9388
9389 N_Slice =>
9390 (1 => False, -- unused
9391 2 => False, -- unused
9392 3 => True, -- Prefix (Node3)
9393 4 => True, -- Discrete_Range (Node4)
9394 5 => False), -- Etype (Node5-Sem)
9395
9396 N_Selected_Component =>
9397 (1 => False, -- unused
9398 2 => True, -- Selector_Name (Node2)
9399 3 => True, -- Prefix (Node3)
9400 4 => False, -- unused
9401 5 => False), -- Etype (Node5-Sem)
9402
9403 N_Attribute_Reference =>
9404 (1 => True, -- Expressions (List1)
9405 2 => True, -- Attribute_Name (Name2)
9406 3 => True, -- Prefix (Node3)
9407 4 => False, -- Entity (Node4-Sem)
9408 5 => False), -- Etype (Node5-Sem)
9409
9410 N_Aggregate =>
9411 (1 => True, -- Expressions (List1)
9412 2 => True, -- Component_Associations (List2)
9413 3 => False, -- Aggregate_Bounds (Node3-Sem)
9414 4 => False, -- unused
9415 5 => False), -- Etype (Node5-Sem)
9416
9417 N_Component_Association =>
9418 (1 => True, -- Choices (List1)
9419 2 => False, -- Loop_Actions (List2-Sem)
9420 3 => True, -- Expression (Node3)
9421 4 => False, -- unused
9422 5 => False), -- unused
9423
9424 N_Extension_Aggregate =>
9425 (1 => True, -- Expressions (List1)
9426 2 => True, -- Component_Associations (List2)
9427 3 => True, -- Ancestor_Part (Node3)
9428 4 => False, -- unused
9429 5 => False), -- Etype (Node5-Sem)
9430
9431 N_Null =>
9432 (1 => False, -- unused
9433 2 => False, -- unused
9434 3 => False, -- unused
9435 4 => False, -- unused
9436 5 => False), -- Etype (Node5-Sem)
9437
9438 N_And_Then =>
9439 (1 => False, -- Actions (List1-Sem)
9440 2 => True, -- Left_Opnd (Node2)
9441 3 => True, -- Right_Opnd (Node3)
9442 4 => False, -- unused
9443 5 => False), -- Etype (Node5-Sem)
9444
9445 N_Or_Else =>
9446 (1 => False, -- Actions (List1-Sem)
9447 2 => True, -- Left_Opnd (Node2)
9448 3 => True, -- Right_Opnd (Node3)
9449 4 => False, -- unused
9450 5 => False), -- Etype (Node5-Sem)
9451
9452 N_In =>
9453 (1 => False, -- unused
9454 2 => True, -- Left_Opnd (Node2)
9455 3 => True, -- Right_Opnd (Node3)
9456 4 => False, -- unused
9457 5 => False), -- Etype (Node5-Sem)
9458
9459 N_Not_In =>
9460 (1 => False, -- unused
9461 2 => True, -- Left_Opnd (Node2)
9462 3 => True, -- Right_Opnd (Node3)
9463 4 => False, -- unused
9464 5 => False), -- Etype (Node5-Sem)
9465
9466 N_Op_And =>
9467 (1 => True, -- Chars (Name1)
9468 2 => True, -- Left_Opnd (Node2)
9469 3 => True, -- Right_Opnd (Node3)
9470 4 => False, -- Entity (Node4-Sem)
9471 5 => False), -- Etype (Node5-Sem)
9472
9473 N_Op_Or =>
9474 (1 => True, -- Chars (Name1)
9475 2 => True, -- Left_Opnd (Node2)
9476 3 => True, -- Right_Opnd (Node3)
9477 4 => False, -- Entity (Node4-Sem)
9478 5 => False), -- Etype (Node5-Sem)
9479
9480 N_Op_Xor =>
9481 (1 => True, -- Chars (Name1)
9482 2 => True, -- Left_Opnd (Node2)
9483 3 => True, -- Right_Opnd (Node3)
9484 4 => False, -- Entity (Node4-Sem)
9485 5 => False), -- Etype (Node5-Sem)
9486
9487 N_Op_Eq =>
9488 (1 => True, -- Chars (Name1)
9489 2 => True, -- Left_Opnd (Node2)
9490 3 => True, -- Right_Opnd (Node3)
9491 4 => False, -- Entity (Node4-Sem)
9492 5 => False), -- Etype (Node5-Sem)
9493
9494 N_Op_Ne =>
9495 (1 => True, -- Chars (Name1)
9496 2 => True, -- Left_Opnd (Node2)
9497 3 => True, -- Right_Opnd (Node3)
9498 4 => False, -- Entity (Node4-Sem)
9499 5 => False), -- Etype (Node5-Sem)
9500
9501 N_Op_Lt =>
9502 (1 => True, -- Chars (Name1)
9503 2 => True, -- Left_Opnd (Node2)
9504 3 => True, -- Right_Opnd (Node3)
9505 4 => False, -- Entity (Node4-Sem)
9506 5 => False), -- Etype (Node5-Sem)
9507
9508 N_Op_Le =>
9509 (1 => True, -- Chars (Name1)
9510 2 => True, -- Left_Opnd (Node2)
9511 3 => True, -- Right_Opnd (Node3)
9512 4 => False, -- Entity (Node4-Sem)
9513 5 => False), -- Etype (Node5-Sem)
9514
9515 N_Op_Gt =>
9516 (1 => True, -- Chars (Name1)
9517 2 => True, -- Left_Opnd (Node2)
9518 3 => True, -- Right_Opnd (Node3)
9519 4 => False, -- Entity (Node4-Sem)
9520 5 => False), -- Etype (Node5-Sem)
9521
9522 N_Op_Ge =>
9523 (1 => True, -- Chars (Name1)
9524 2 => True, -- Left_Opnd (Node2)
9525 3 => True, -- Right_Opnd (Node3)
9526 4 => False, -- Entity (Node4-Sem)
9527 5 => False), -- Etype (Node5-Sem)
9528
9529 N_Op_Add =>
9530 (1 => True, -- Chars (Name1)
9531 2 => True, -- Left_Opnd (Node2)
9532 3 => True, -- Right_Opnd (Node3)
9533 4 => False, -- Entity (Node4-Sem)
9534 5 => False), -- Etype (Node5-Sem)
9535
9536 N_Op_Subtract =>
9537 (1 => True, -- Chars (Name1)
9538 2 => True, -- Left_Opnd (Node2)
9539 3 => True, -- Right_Opnd (Node3)
9540 4 => False, -- Entity (Node4-Sem)
9541 5 => False), -- Etype (Node5-Sem)
9542
9543 N_Op_Concat =>
9544 (1 => True, -- Chars (Name1)
9545 2 => True, -- Left_Opnd (Node2)
9546 3 => True, -- Right_Opnd (Node3)
9547 4 => False, -- Entity (Node4-Sem)
9548 5 => False), -- Etype (Node5-Sem)
9549
9550 N_Op_Multiply =>
9551 (1 => True, -- Chars (Name1)
9552 2 => True, -- Left_Opnd (Node2)
9553 3 => True, -- Right_Opnd (Node3)
9554 4 => False, -- Entity (Node4-Sem)
9555 5 => False), -- Etype (Node5-Sem)
9556
9557 N_Op_Divide =>
9558 (1 => True, -- Chars (Name1)
9559 2 => True, -- Left_Opnd (Node2)
9560 3 => True, -- Right_Opnd (Node3)
9561 4 => False, -- Entity (Node4-Sem)
9562 5 => False), -- Etype (Node5-Sem)
9563
9564 N_Op_Mod =>
9565 (1 => True, -- Chars (Name1)
9566 2 => True, -- Left_Opnd (Node2)
9567 3 => True, -- Right_Opnd (Node3)
9568 4 => False, -- Entity (Node4-Sem)
9569 5 => False), -- Etype (Node5-Sem)
9570
9571 N_Op_Rem =>
9572 (1 => True, -- Chars (Name1)
9573 2 => True, -- Left_Opnd (Node2)
9574 3 => True, -- Right_Opnd (Node3)
9575 4 => False, -- Entity (Node4-Sem)
9576 5 => False), -- Etype (Node5-Sem)
9577
9578 N_Op_Expon =>
9579 (1 => True, -- Chars (Name1)
9580 2 => True, -- Left_Opnd (Node2)
9581 3 => True, -- Right_Opnd (Node3)
9582 4 => False, -- Entity (Node4-Sem)
9583 5 => False), -- Etype (Node5-Sem)
9584
9585 N_Op_Plus =>
9586 (1 => True, -- Chars (Name1)
9587 2 => False, -- unused
9588 3 => True, -- Right_Opnd (Node3)
9589 4 => False, -- Entity (Node4-Sem)
9590 5 => False), -- Etype (Node5-Sem)
9591
9592 N_Op_Minus =>
9593 (1 => True, -- Chars (Name1)
9594 2 => False, -- unused
9595 3 => True, -- Right_Opnd (Node3)
9596 4 => False, -- Entity (Node4-Sem)
9597 5 => False), -- Etype (Node5-Sem)
9598
9599 N_Op_Abs =>
9600 (1 => True, -- Chars (Name1)
9601 2 => False, -- unused
9602 3 => True, -- Right_Opnd (Node3)
9603 4 => False, -- Entity (Node4-Sem)
9604 5 => False), -- Etype (Node5-Sem)
9605
9606 N_Op_Not =>
9607 (1 => True, -- Chars (Name1)
9608 2 => False, -- unused
9609 3 => True, -- Right_Opnd (Node3)
9610 4 => False, -- Entity (Node4-Sem)
9611 5 => False), -- Etype (Node5-Sem)
9612
9613 N_Type_Conversion =>
9614 (1 => False, -- unused
9615 2 => False, -- unused
9616 3 => True, -- Expression (Node3)
9617 4 => True, -- Subtype_Mark (Node4)
9618 5 => False), -- Etype (Node5-Sem)
9619
9620 N_Qualified_Expression =>
9621 (1 => False, -- unused
9622 2 => False, -- unused
9623 3 => True, -- Expression (Node3)
9624 4 => True, -- Subtype_Mark (Node4)
9625 5 => False), -- Etype (Node5-Sem)
9626
9627 N_Allocator =>
9628 (1 => False, -- Storage_Pool (Node1-Sem)
9629 2 => False, -- Procedure_To_Call (Node2-Sem)
9630 3 => True, -- Expression (Node3)
9631 4 => False, -- Coextensions (Elist4-Sem)
9632 5 => False), -- Etype (Node5-Sem)
9633
9634 N_Null_Statement =>
9635 (1 => False, -- unused
9636 2 => False, -- unused
9637 3 => False, -- unused
9638 4 => False, -- unused
9639 5 => False), -- unused
9640
9641 N_Label =>
9642 (1 => True, -- Identifier (Node1)
9643 2 => False, -- unused
9644 3 => False, -- unused
9645 4 => False, -- unused
9646 5 => False), -- unused
9647
9648 N_Assignment_Statement =>
9649 (1 => False, -- unused
9650 2 => True, -- Name (Node2)
9651 3 => True, -- Expression (Node3)
9652 4 => False, -- unused
9653 5 => False), -- unused
9654
9655 N_If_Statement =>
9656 (1 => True, -- Condition (Node1)
9657 2 => True, -- Then_Statements (List2)
9658 3 => True, -- Elsif_Parts (List3)
9659 4 => True, -- Else_Statements (List4)
9660 5 => True), -- End_Span (Uint5)
9661
9662 N_Elsif_Part =>
9663 (1 => True, -- Condition (Node1)
9664 2 => True, -- Then_Statements (List2)
9665 3 => False, -- Condition_Actions (List3-Sem)
9666 4 => False, -- unused
9667 5 => False), -- unused
9668
9669 N_Case_Statement =>
9670 (1 => False, -- unused
9671 2 => False, -- unused
9672 3 => True, -- Expression (Node3)
9673 4 => True, -- Alternatives (List4)
9674 5 => True), -- End_Span (Uint5)
9675
9676 N_Case_Statement_Alternative =>
9677 (1 => False, -- unused
9678 2 => False, -- unused
9679 3 => True, -- Statements (List3)
9680 4 => True, -- Discrete_Choices (List4)
9681 5 => False), -- unused
9682
9683 N_Loop_Statement =>
9684 (1 => True, -- Identifier (Node1)
9685 2 => True, -- Iteration_Scheme (Node2)
9686 3 => True, -- Statements (List3)
9687 4 => True, -- End_Label (Node4)
9688 5 => False), -- unused
9689
9690 N_Iteration_Scheme =>
9691 (1 => True, -- Condition (Node1)
9692 2 => False, -- unused
9693 3 => False, -- Condition_Actions (List3-Sem)
9694 4 => True, -- Loop_Parameter_Specification (Node4)
9695 5 => False), -- unused
9696
9697 N_Loop_Parameter_Specification =>
9698 (1 => True, -- Defining_Identifier (Node1)
9699 2 => False, -- unused
9700 3 => False, -- unused
9701 4 => True, -- Discrete_Subtype_Definition (Node4)
9702 5 => False), -- unused
9703
9704 N_Block_Statement =>
9705 (1 => True, -- Identifier (Node1)
9706 2 => True, -- Declarations (List2)
9707 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9708 4 => True, -- Handled_Statement_Sequence (Node4)
9709 5 => False), -- unused
9710
9711 N_Exit_Statement =>
9712 (1 => True, -- Condition (Node1)
9713 2 => True, -- Name (Node2)
9714 3 => False, -- unused
9715 4 => False, -- unused
9716 5 => False), -- unused
9717
9718 N_Goto_Statement =>
9719 (1 => False, -- unused
9720 2 => True, -- Name (Node2)
9721 3 => False, -- unused
9722 4 => False, -- unused
9723 5 => False), -- unused
9724
9725 N_Subprogram_Declaration =>
9726 (1 => True, -- Specification (Node1)
9727 2 => False, -- unused
9728 3 => False, -- Body_To_Inline (Node3-Sem)
9729 4 => False, -- Parent_Spec (Node4-Sem)
9730 5 => False), -- Corresponding_Body (Node5-Sem)
9731
9732 N_Abstract_Subprogram_Declaration =>
9733 (1 => True, -- Specification (Node1)
9734 2 => False, -- unused
9735 3 => False, -- unused
9736 4 => False, -- unused
9737 5 => False), -- unused
9738
9739 N_Function_Specification =>
9740 (1 => True, -- Defining_Unit_Name (Node1)
9741 2 => False, -- Elaboration_Boolean (Node2-Sem)
9742 3 => True, -- Parameter_Specifications (List3)
9743 4 => True, -- Result_Definition (Node4)
9744 5 => False), -- Generic_Parent (Node5-Sem)
9745
9746 N_Procedure_Specification =>
9747 (1 => True, -- Defining_Unit_Name (Node1)
9748 2 => False, -- Elaboration_Boolean (Node2-Sem)
9749 3 => True, -- Parameter_Specifications (List3)
9750 4 => False, -- unused
9751 5 => False), -- Generic_Parent (Node5-Sem)
9752
9753 N_Designator =>
9754 (1 => True, -- Identifier (Node1)
9755 2 => True, -- Name (Node2)
9756 3 => False, -- unused
9757 4 => False, -- unused
9758 5 => False), -- unused
9759
9760 N_Defining_Program_Unit_Name =>
9761 (1 => True, -- Defining_Identifier (Node1)
9762 2 => True, -- Name (Node2)
9763 3 => False, -- unused
9764 4 => False, -- unused
9765 5 => False), -- unused
9766
9767 N_Operator_Symbol =>
9768 (1 => True, -- Chars (Name1)
9769 2 => False, -- unused
9770 3 => True, -- Strval (Str3)
9771 4 => False, -- Entity (Node4-Sem)
9772 5 => False), -- Etype (Node5-Sem)
9773
9774 N_Defining_Operator_Symbol =>
9775 (1 => True, -- Chars (Name1)
9776 2 => False, -- Next_Entity (Node2-Sem)
9777 3 => False, -- Scope (Node3-Sem)
9778 4 => False, -- unused
9779 5 => False), -- Etype (Node5-Sem)
9780
9781 N_Parameter_Specification =>
9782 (1 => True, -- Defining_Identifier (Node1)
9783 2 => True, -- Parameter_Type (Node2)
9784 3 => True, -- Expression (Node3)
9785 4 => False, -- unused
9786 5 => False), -- Default_Expression (Node5-Sem)
9787
9788 N_Subprogram_Body =>
9789 (1 => True, -- Specification (Node1)
9790 2 => True, -- Declarations (List2)
9791 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9792 4 => True, -- Handled_Statement_Sequence (Node4)
9793 5 => False), -- Corresponding_Spec (Node5-Sem)
9794
9795 N_Procedure_Call_Statement =>
9796 (1 => False, -- Controlling_Argument (Node1-Sem)
9797 2 => True, -- Name (Node2)
9798 3 => True, -- Parameter_Associations (List3)
9799 4 => False, -- First_Named_Actual (Node4-Sem)
9800 5 => False), -- Etype (Node5-Sem)
9801
9802 N_Function_Call =>
9803 (1 => False, -- Controlling_Argument (Node1-Sem)
9804 2 => True, -- Name (Node2)
9805 3 => True, -- Parameter_Associations (List3)
9806 4 => False, -- First_Named_Actual (Node4-Sem)
9807 5 => False), -- Etype (Node5-Sem)
9808
9809 N_Parameter_Association =>
9810 (1 => False, -- unused
9811 2 => True, -- Selector_Name (Node2)
9812 3 => True, -- Explicit_Actual_Parameter (Node3)
9813 4 => False, -- Next_Named_Actual (Node4-Sem)
9814 5 => False), -- unused
9815
9816 N_Return_Statement =>
9817 (1 => False, -- Storage_Pool (Node1-Sem)
9818 2 => False, -- Procedure_To_Call (Node2-Sem)
9819 3 => True, -- Expression (Node3)
9820 4 => False, -- unused
9821 5 => False), -- Return_Statement_Entity (Node5-Sem)
9822
9823 N_Extended_Return_Statement =>
9824 (1 => False, -- Storage_Pool (Node1-Sem)
9825 2 => False, -- Procedure_To_Call (Node2-Sem)
9826 3 => True, -- Return_Object_Declarations (List3)
9827 4 => True, -- Handled_Statement_Sequence (Node4)
9828 5 => False), -- Return_Statement_Entity (Node5-Sem)
9829
9830 N_Package_Declaration =>
9831 (1 => True, -- Specification (Node1)
9832 2 => False, -- unused
9833 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9834 4 => False, -- Parent_Spec (Node4-Sem)
9835 5 => False), -- Corresponding_Body (Node5-Sem)
9836
9837 N_Package_Specification =>
9838 (1 => True, -- Defining_Unit_Name (Node1)
9839 2 => True, -- Visible_Declarations (List2)
9840 3 => True, -- Private_Declarations (List3)
9841 4 => True, -- End_Label (Node4)
9842 5 => False), -- Generic_Parent (Node5-Sem)
9843
9844 N_Package_Body =>
9845 (1 => True, -- Defining_Unit_Name (Node1)
9846 2 => True, -- Declarations (List2)
9847 3 => False, -- unused
9848 4 => True, -- Handled_Statement_Sequence (Node4)
9849 5 => False), -- Corresponding_Spec (Node5-Sem)
9850
9851 N_Private_Type_Declaration =>
9852 (1 => True, -- Defining_Identifier (Node1)
9853 2 => False, -- unused
9854 3 => False, -- unused
9855 4 => True, -- Discriminant_Specifications (List4)
9856 5 => False), -- unused
9857
9858 N_Private_Extension_Declaration =>
9859 (1 => True, -- Defining_Identifier (Node1)
9860 2 => True, -- Interface_List (List2)
9861 3 => False, -- unused
9862 4 => True, -- Discriminant_Specifications (List4)
9863 5 => True), -- Subtype_Indication (Node5)
9864
9865 N_Use_Package_Clause =>
9866 (1 => False, -- unused
9867 2 => True, -- Names (List2)
9868 3 => False, -- Next_Use_Clause (Node3-Sem)
9869 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9870 5 => False), -- unused
9871
9872 N_Use_Type_Clause =>
9873 (1 => False, -- unused
9874 2 => True, -- Subtype_Marks (List2)
9875 3 => False, -- Next_Use_Clause (Node3-Sem)
9876 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
9877 5 => False), -- unused
9878
9879 N_Object_Renaming_Declaration =>
9880 (1 => True, -- Defining_Identifier (Node1)
9881 2 => True, -- Name (Node2)
9882 3 => True, -- Access_Definition (Node3)
9883 4 => True, -- Subtype_Mark (Node4)
9884 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
9885
9886 N_Exception_Renaming_Declaration =>
9887 (1 => True, -- Defining_Identifier (Node1)
9888 2 => True, -- Name (Node2)
9889 3 => False, -- unused
9890 4 => False, -- unused
9891 5 => False), -- unused
9892
9893 N_Package_Renaming_Declaration =>
9894 (1 => True, -- Defining_Unit_Name (Node1)
9895 2 => True, -- Name (Node2)
9896 3 => False, -- unused
9897 4 => False, -- Parent_Spec (Node4-Sem)
9898 5 => False), -- unused
9899
9900 N_Subprogram_Renaming_Declaration =>
9901 (1 => True, -- Specification (Node1)
9902 2 => True, -- Name (Node2)
9903 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
9904 4 => False, -- Parent_Spec (Node4-Sem)
9905 5 => False), -- Corresponding_Spec (Node5-Sem)
9906
9907 N_Generic_Package_Renaming_Declaration =>
9908 (1 => True, -- Defining_Unit_Name (Node1)
9909 2 => True, -- Name (Node2)
9910 3 => False, -- unused
9911 4 => False, -- Parent_Spec (Node4-Sem)
9912 5 => False), -- unused
9913
9914 N_Generic_Procedure_Renaming_Declaration =>
9915 (1 => True, -- Defining_Unit_Name (Node1)
9916 2 => True, -- Name (Node2)
9917 3 => False, -- unused
9918 4 => False, -- Parent_Spec (Node4-Sem)
9919 5 => False), -- unused
9920
9921 N_Generic_Function_Renaming_Declaration =>
9922 (1 => True, -- Defining_Unit_Name (Node1)
9923 2 => True, -- Name (Node2)
9924 3 => False, -- unused
9925 4 => False, -- Parent_Spec (Node4-Sem)
9926 5 => False), -- unused
9927
9928 N_Task_Type_Declaration =>
9929 (1 => True, -- Defining_Identifier (Node1)
9930 2 => True, -- Interface_List (List2)
9931 3 => True, -- Task_Definition (Node3)
9932 4 => True, -- Discriminant_Specifications (List4)
9933 5 => False), -- Corresponding_Body (Node5-Sem)
9934
9935 N_Single_Task_Declaration =>
9936 (1 => True, -- Defining_Identifier (Node1)
9937 2 => True, -- Interface_List (List2)
9938 3 => True, -- Task_Definition (Node3)
9939 4 => False, -- unused
9940 5 => False), -- unused
9941
9942 N_Task_Definition =>
9943 (1 => False, -- unused
9944 2 => True, -- Visible_Declarations (List2)
9945 3 => True, -- Private_Declarations (List3)
9946 4 => True, -- End_Label (Node4)
9947 5 => False), -- unused
9948
9949 N_Task_Body =>
9950 (1 => True, -- Defining_Identifier (Node1)
9951 2 => True, -- Declarations (List2)
9952 3 => False, -- Activation_Chain_Entity (Node3-Sem)
9953 4 => True, -- Handled_Statement_Sequence (Node4)
9954 5 => False), -- Corresponding_Spec (Node5-Sem)
9955
9956 N_Protected_Type_Declaration =>
9957 (1 => True, -- Defining_Identifier (Node1)
9958 2 => True, -- Interface_List (List2)
9959 3 => True, -- Protected_Definition (Node3)
9960 4 => True, -- Discriminant_Specifications (List4)
9961 5 => False), -- Corresponding_Body (Node5-Sem)
9962
9963 N_Single_Protected_Declaration =>
9964 (1 => True, -- Defining_Identifier (Node1)
9965 2 => True, -- Interface_List (List2)
9966 3 => True, -- Protected_Definition (Node3)
9967 4 => False, -- unused
9968 5 => False), -- unused
9969
9970 N_Protected_Definition =>
9971 (1 => False, -- unused
9972 2 => True, -- Visible_Declarations (List2)
9973 3 => True, -- Private_Declarations (List3)
9974 4 => True, -- End_Label (Node4)
9975 5 => False), -- unused
9976
9977 N_Protected_Body =>
9978 (1 => True, -- Defining_Identifier (Node1)
9979 2 => True, -- Declarations (List2)
9980 3 => False, -- unused
9981 4 => True, -- End_Label (Node4)
9982 5 => False), -- Corresponding_Spec (Node5-Sem)
9983
9984 N_Entry_Declaration =>
9985 (1 => True, -- Defining_Identifier (Node1)
9986 2 => False, -- unused
9987 3 => True, -- Parameter_Specifications (List3)
9988 4 => True, -- Discrete_Subtype_Definition (Node4)
9989 5 => False), -- Corresponding_Body (Node5-Sem)
9990
9991 N_Accept_Statement =>
9992 (1 => True, -- Entry_Direct_Name (Node1)
9993 2 => True, -- Declarations (List2)
9994 3 => True, -- Parameter_Specifications (List3)
9995 4 => True, -- Handled_Statement_Sequence (Node4)
9996 5 => True), -- Entry_Index (Node5)
9997
9998 N_Entry_Body =>
9999 (1 => True, -- Defining_Identifier (Node1)
10000 2 => True, -- Declarations (List2)
10001 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10002 4 => True, -- Handled_Statement_Sequence (Node4)
10003 5 => True), -- Entry_Body_Formal_Part (Node5)
10004
10005 N_Entry_Body_Formal_Part =>
10006 (1 => True, -- Condition (Node1)
10007 2 => False, -- unused
10008 3 => True, -- Parameter_Specifications (List3)
10009 4 => True, -- Entry_Index_Specification (Node4)
10010 5 => False), -- unused
10011
10012 N_Entry_Index_Specification =>
10013 (1 => True, -- Defining_Identifier (Node1)
10014 2 => False, -- unused
10015 3 => False, -- unused
10016 4 => True, -- Discrete_Subtype_Definition (Node4)
10017 5 => False), -- unused
10018
10019 N_Entry_Call_Statement =>
10020 (1 => False, -- unused
10021 2 => True, -- Name (Node2)
10022 3 => True, -- Parameter_Associations (List3)
10023 4 => False, -- First_Named_Actual (Node4-Sem)
10024 5 => False), -- unused
10025
10026 N_Requeue_Statement =>
10027 (1 => False, -- unused
10028 2 => True, -- Name (Node2)
10029 3 => False, -- unused
10030 4 => False, -- unused
10031 5 => False), -- unused
10032
10033 N_Delay_Until_Statement =>
10034 (1 => False, -- unused
10035 2 => False, -- unused
10036 3 => True, -- Expression (Node3)
10037 4 => False, -- unused
10038 5 => False), -- unused
10039
10040 N_Delay_Relative_Statement =>
10041 (1 => False, -- unused
10042 2 => False, -- unused
10043 3 => True, -- Expression (Node3)
10044 4 => False, -- unused
10045 5 => False), -- unused
10046
10047 N_Selective_Accept =>
10048 (1 => True, -- Select_Alternatives (List1)
10049 2 => False, -- unused
10050 3 => False, -- unused
10051 4 => True, -- Else_Statements (List4)
10052 5 => False), -- unused
10053
10054 N_Accept_Alternative =>
10055 (1 => True, -- Condition (Node1)
10056 2 => True, -- Accept_Statement (Node2)
10057 3 => True, -- Statements (List3)
10058 4 => True, -- Pragmas_Before (List4)
10059 5 => False), -- Accept_Handler_Records (List5-Sem)
10060
10061 N_Delay_Alternative =>
10062 (1 => True, -- Condition (Node1)
10063 2 => True, -- Delay_Statement (Node2)
10064 3 => True, -- Statements (List3)
10065 4 => True, -- Pragmas_Before (List4)
10066 5 => False), -- unused
10067
10068 N_Terminate_Alternative =>
10069 (1 => True, -- Condition (Node1)
10070 2 => False, -- unused
10071 3 => False, -- unused
10072 4 => True, -- Pragmas_Before (List4)
10073 5 => True), -- Pragmas_After (List5)
10074
10075 N_Timed_Entry_Call =>
10076 (1 => True, -- Entry_Call_Alternative (Node1)
10077 2 => False, -- unused
10078 3 => False, -- unused
10079 4 => True, -- Delay_Alternative (Node4)
10080 5 => False), -- unused
10081
10082 N_Entry_Call_Alternative =>
10083 (1 => True, -- Entry_Call_Statement (Node1)
10084 2 => False, -- unused
10085 3 => True, -- Statements (List3)
10086 4 => True, -- Pragmas_Before (List4)
10087 5 => False), -- unused
10088
10089 N_Conditional_Entry_Call =>
10090 (1 => True, -- Entry_Call_Alternative (Node1)
10091 2 => False, -- unused
10092 3 => False, -- unused
10093 4 => True, -- Else_Statements (List4)
10094 5 => False), -- unused
10095
10096 N_Asynchronous_Select =>
10097 (1 => True, -- Triggering_Alternative (Node1)
10098 2 => True, -- Abortable_Part (Node2)
10099 3 => False, -- unused
10100 4 => False, -- unused
10101 5 => False), -- unused
10102
10103 N_Triggering_Alternative =>
10104 (1 => True, -- Triggering_Statement (Node1)
10105 2 => False, -- unused
10106 3 => True, -- Statements (List3)
10107 4 => True, -- Pragmas_Before (List4)
10108 5 => False), -- unused
10109
10110 N_Abortable_Part =>
10111 (1 => False, -- unused
10112 2 => False, -- unused
10113 3 => True, -- Statements (List3)
10114 4 => False, -- unused
10115 5 => False), -- unused
10116
10117 N_Abort_Statement =>
10118 (1 => False, -- unused
10119 2 => True, -- Names (List2)
10120 3 => False, -- unused
10121 4 => False, -- unused
10122 5 => False), -- unused
10123
10124 N_Compilation_Unit =>
10125 (1 => True, -- Context_Items (List1)
10126 2 => True, -- Unit (Node2)
10127 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
10128 4 => False, -- Library_Unit (Node4-Sem)
10129 5 => True), -- Aux_Decls_Node (Node5)
10130
10131 N_Compilation_Unit_Aux =>
10132 (1 => True, -- Actions (List1)
10133 2 => True, -- Declarations (List2)
10134 3 => False, -- unused
10135 4 => True, -- Config_Pragmas (List4)
10136 5 => True), -- Pragmas_After (List5)
10137
10138 N_With_Clause =>
10139 (1 => False, -- unused
10140 2 => True, -- Name (Node2)
10141 3 => False, -- unused
10142 4 => False, -- Library_Unit (Node4-Sem)
10143 5 => False), -- Corresponding_Spec (Node5-Sem)
10144
10145 N_With_Type_Clause =>
10146 (1 => False, -- unused
10147 2 => True, -- Name (Node2)
10148 3 => False, -- unused
10149 4 => False, -- unused
10150 5 => False), -- unused
10151
10152 N_Subprogram_Body_Stub =>
10153 (1 => True, -- Specification (Node1)
10154 2 => False, -- unused
10155 3 => False, -- unused
10156 4 => False, -- Library_Unit (Node4-Sem)
10157 5 => False), -- Corresponding_Body (Node5-Sem)
10158
10159 N_Package_Body_Stub =>
10160 (1 => True, -- Defining_Identifier (Node1)
10161 2 => False, -- unused
10162 3 => False, -- unused
10163 4 => False, -- Library_Unit (Node4-Sem)
10164 5 => False), -- Corresponding_Body (Node5-Sem)
10165
10166 N_Task_Body_Stub =>
10167 (1 => True, -- Defining_Identifier (Node1)
10168 2 => False, -- unused
10169 3 => False, -- unused
10170 4 => False, -- Library_Unit (Node4-Sem)
10171 5 => False), -- Corresponding_Body (Node5-Sem)
10172
10173 N_Protected_Body_Stub =>
10174 (1 => True, -- Defining_Identifier (Node1)
10175 2 => False, -- unused
10176 3 => False, -- unused
10177 4 => False, -- Library_Unit (Node4-Sem)
10178 5 => False), -- Corresponding_Body (Node5-Sem)
10179
10180 N_Subunit =>
10181 (1 => True, -- Proper_Body (Node1)
10182 2 => True, -- Name (Node2)
10183 3 => False, -- Corresponding_Stub (Node3-Sem)
10184 4 => False, -- unused
10185 5 => False), -- unused
10186
10187 N_Exception_Declaration =>
10188 (1 => True, -- Defining_Identifier (Node1)
10189 2 => False, -- unused
10190 3 => False, -- Expression (Node3-Sem)
10191 4 => False, -- unused
10192 5 => False), -- unused
10193
10194 N_Handled_Sequence_Of_Statements =>
10195 (1 => True, -- At_End_Proc (Node1)
10196 2 => False, -- First_Real_Statement (Node2-Sem)
10197 3 => True, -- Statements (List3)
10198 4 => True, -- End_Label (Node4)
10199 5 => True), -- Exception_Handlers (List5)
10200
10201 N_Exception_Handler =>
10202 (1 => False, -- Local_Raise_Statements (Elist1)
10203 2 => True, -- Choice_Parameter (Node2)
10204 3 => True, -- Statements (List3)
10205 4 => True, -- Exception_Choices (List4)
10206 5 => False), -- Exception_Label (Node5)
10207
10208 N_Raise_Statement =>
10209 (1 => False, -- unused
10210 2 => True, -- Name (Node2)
10211 3 => True, -- Expression (Node3)
10212 4 => False, -- unused
10213 5 => False), -- unused
10214
10215 N_Generic_Subprogram_Declaration =>
10216 (1 => True, -- Specification (Node1)
10217 2 => True, -- Generic_Formal_Declarations (List2)
10218 3 => False, -- unused
10219 4 => False, -- Parent_Spec (Node4-Sem)
10220 5 => False), -- Corresponding_Body (Node5-Sem)
10221
10222 N_Generic_Package_Declaration =>
10223 (1 => True, -- Specification (Node1)
10224 2 => True, -- Generic_Formal_Declarations (List2)
10225 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10226 4 => False, -- Parent_Spec (Node4-Sem)
10227 5 => False), -- Corresponding_Body (Node5-Sem)
10228
10229 N_Package_Instantiation =>
10230 (1 => True, -- Defining_Unit_Name (Node1)
10231 2 => True, -- Name (Node2)
10232 3 => True, -- Generic_Associations (List3)
10233 4 => False, -- Parent_Spec (Node4-Sem)
10234 5 => False), -- Instance_Spec (Node5-Sem)
10235
10236 N_Procedure_Instantiation =>
10237 (1 => True, -- Defining_Unit_Name (Node1)
10238 2 => True, -- Name (Node2)
10239 3 => True, -- Generic_Associations (List3)
10240 4 => False, -- Parent_Spec (Node4-Sem)
10241 5 => False), -- Instance_Spec (Node5-Sem)
10242
10243 N_Function_Instantiation =>
10244 (1 => True, -- Defining_Unit_Name (Node1)
10245 2 => True, -- Name (Node2)
10246 3 => True, -- Generic_Associations (List3)
10247 4 => False, -- Parent_Spec (Node4-Sem)
10248 5 => False), -- Instance_Spec (Node5-Sem)
10249
10250 N_Generic_Association =>
10251 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
10252 2 => True, -- Selector_Name (Node2)
10253 3 => False, -- unused
10254 4 => False, -- unused
10255 5 => False), -- unused
10256
10257 N_Formal_Object_Declaration =>
10258 (1 => True, -- Defining_Identifier (Node1)
10259 2 => False, -- unused
10260 3 => True, -- Access_Definition (Node3)
10261 4 => True, -- Subtype_Mark (Node4)
10262 5 => True), -- Default_Expression (Node5)
10263
10264 N_Formal_Type_Declaration =>
10265 (1 => True, -- Defining_Identifier (Node1)
10266 2 => False, -- unused
10267 3 => True, -- Formal_Type_Definition (Node3)
10268 4 => True, -- Discriminant_Specifications (List4)
10269 5 => False), -- unused
10270
10271 N_Formal_Private_Type_Definition =>
10272 (1 => False, -- unused
10273 2 => False, -- unused
10274 3 => False, -- unused
10275 4 => False, -- unused
10276 5 => False), -- unused
10277
10278 N_Formal_Derived_Type_Definition =>
10279 (1 => False, -- unused
10280 2 => True, -- Interface_List (List2)
10281 3 => False, -- unused
10282 4 => True, -- Subtype_Mark (Node4)
10283 5 => False), -- unused
10284
10285 N_Formal_Discrete_Type_Definition =>
10286 (1 => False, -- unused
10287 2 => False, -- unused
10288 3 => False, -- unused
10289 4 => False, -- unused
10290 5 => False), -- unused
10291
10292 N_Formal_Signed_Integer_Type_Definition =>
10293 (1 => False, -- unused
10294 2 => False, -- unused
10295 3 => False, -- unused
10296 4 => False, -- unused
10297 5 => False), -- unused
10298
10299 N_Formal_Modular_Type_Definition =>
10300 (1 => False, -- unused
10301 2 => False, -- unused
10302 3 => False, -- unused
10303 4 => False, -- unused
10304 5 => False), -- unused
10305
10306 N_Formal_Floating_Point_Definition =>
10307 (1 => False, -- unused
10308 2 => False, -- unused
10309 3 => False, -- unused
10310 4 => False, -- unused
10311 5 => False), -- unused
10312
10313 N_Formal_Ordinary_Fixed_Point_Definition =>
10314 (1 => False, -- unused
10315 2 => False, -- unused
10316 3 => False, -- unused
10317 4 => False, -- unused
10318 5 => False), -- unused
10319
10320 N_Formal_Decimal_Fixed_Point_Definition =>
10321 (1 => False, -- unused
10322 2 => False, -- unused
10323 3 => False, -- unused
10324 4 => False, -- unused
10325 5 => False), -- unused
10326
10327 N_Formal_Concrete_Subprogram_Declaration =>
10328 (1 => True, -- Specification (Node1)
10329 2 => True, -- Default_Name (Node2)
10330 3 => False, -- unused
10331 4 => False, -- unused
10332 5 => False), -- unused
10333
10334 N_Formal_Abstract_Subprogram_Declaration =>
10335 (1 => True, -- Specification (Node1)
10336 2 => True, -- Default_Name (Node2)
10337 3 => False, -- unused
10338 4 => False, -- unused
10339 5 => False), -- unused
10340
10341 N_Formal_Package_Declaration =>
10342 (1 => True, -- Defining_Identifier (Node1)
10343 2 => True, -- Name (Node2)
10344 3 => True, -- Generic_Associations (List3)
10345 4 => False, -- unused
10346 5 => False), -- Instance_Spec (Node5-Sem)
10347
10348 N_Attribute_Definition_Clause =>
10349 (1 => True, -- Chars (Name1)
10350 2 => True, -- Name (Node2)
10351 3 => True, -- Expression (Node3)
10352 4 => False, -- unused
10353 5 => False), -- Next_Rep_Item (Node5-Sem)
10354
10355 N_Enumeration_Representation_Clause =>
10356 (1 => True, -- Identifier (Node1)
10357 2 => False, -- unused
10358 3 => True, -- Array_Aggregate (Node3)
10359 4 => False, -- unused
10360 5 => False), -- Next_Rep_Item (Node5-Sem)
10361
10362 N_Record_Representation_Clause =>
10363 (1 => True, -- Identifier (Node1)
10364 2 => True, -- Mod_Clause (Node2)
10365 3 => True, -- Component_Clauses (List3)
10366 4 => False, -- unused
10367 5 => False), -- Next_Rep_Item (Node5-Sem)
10368
10369 N_Component_Clause =>
10370 (1 => True, -- Component_Name (Node1)
10371 2 => True, -- Position (Node2)
10372 3 => True, -- First_Bit (Node3)
10373 4 => True, -- Last_Bit (Node4)
10374 5 => False), -- unused
10375
10376 N_Code_Statement =>
10377 (1 => False, -- unused
10378 2 => False, -- unused
10379 3 => True, -- Expression (Node3)
10380 4 => False, -- unused
10381 5 => False), -- unused
10382
10383 N_Op_Rotate_Left =>
10384 (1 => True, -- Chars (Name1)
10385 2 => True, -- Left_Opnd (Node2)
10386 3 => True, -- Right_Opnd (Node3)
10387 4 => False, -- Entity (Node4-Sem)
10388 5 => False), -- Etype (Node5-Sem)
10389
10390 N_Op_Rotate_Right =>
10391 (1 => True, -- Chars (Name1)
10392 2 => True, -- Left_Opnd (Node2)
10393 3 => True, -- Right_Opnd (Node3)
10394 4 => False, -- Entity (Node4-Sem)
10395 5 => False), -- Etype (Node5-Sem)
10396
10397 N_Op_Shift_Left =>
10398 (1 => True, -- Chars (Name1)
10399 2 => True, -- Left_Opnd (Node2)
10400 3 => True, -- Right_Opnd (Node3)
10401 4 => False, -- Entity (Node4-Sem)
10402 5 => False), -- Etype (Node5-Sem)
10403
10404 N_Op_Shift_Right_Arithmetic =>
10405 (1 => True, -- Chars (Name1)
10406 2 => True, -- Left_Opnd (Node2)
10407 3 => True, -- Right_Opnd (Node3)
10408 4 => False, -- Entity (Node4-Sem)
10409 5 => False), -- Etype (Node5-Sem)
10410
10411 N_Op_Shift_Right =>
10412 (1 => True, -- Chars (Name1)
10413 2 => True, -- Left_Opnd (Node2)
10414 3 => True, -- Right_Opnd (Node3)
10415 4 => False, -- Entity (Node4-Sem)
10416 5 => False), -- Etype (Node5-Sem)
10417
10418 N_Delta_Constraint =>
10419 (1 => False, -- unused
10420 2 => False, -- unused
10421 3 => True, -- Delta_Expression (Node3)
10422 4 => True, -- Range_Constraint (Node4)
10423 5 => False), -- unused
10424
10425 N_At_Clause =>
10426 (1 => True, -- Identifier (Node1)
10427 2 => False, -- unused
10428 3 => True, -- Expression (Node3)
10429 4 => False, -- unused
10430 5 => False), -- unused
10431
10432 N_Mod_Clause =>
10433 (1 => False, -- unused
10434 2 => False, -- unused
10435 3 => True, -- Expression (Node3)
10436 4 => True, -- Pragmas_Before (List4)
10437 5 => False), -- unused
10438
10439 N_Conditional_Expression =>
10440 (1 => True, -- Expressions (List1)
10441 2 => False, -- Then_Actions (List2-Sem)
10442 3 => False, -- Else_Actions (List3-Sem)
10443 4 => False, -- unused
10444 5 => False), -- Etype (Node5-Sem)
10445
10446 N_Expanded_Name =>
10447 (1 => True, -- Chars (Name1)
10448 2 => True, -- Selector_Name (Node2)
10449 3 => True, -- Prefix (Node3)
10450 4 => False, -- Entity (Node4-Sem)
10451 5 => False), -- Etype (Node5-Sem)
10452
10453 N_Free_Statement =>
10454 (1 => False, -- Storage_Pool (Node1-Sem)
10455 2 => False, -- Procedure_To_Call (Node2-Sem)
10456 3 => True, -- Expression (Node3)
10457 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10458 5 => False), -- unused
10459
10460 N_Freeze_Entity =>
10461 (1 => True, -- Actions (List1)
10462 2 => False, -- Access_Types_To_Process (Elist2-Sem)
10463 3 => False, -- TSS_Elist (Elist3-Sem)
10464 4 => False, -- Entity (Node4-Sem)
10465 5 => False), -- First_Subtype_Link (Node5-Sem)
10466
10467 N_Implicit_Label_Declaration =>
10468 (1 => True, -- Defining_Identifier (Node1)
10469 2 => False, -- Label_Construct (Node2-Sem)
10470 3 => False, -- unused
10471 4 => False, -- unused
10472 5 => False), -- unused
10473
10474 N_Itype_Reference =>
10475 (1 => False, -- Itype (Node1-Sem)
10476 2 => False, -- unused
10477 3 => False, -- unused
10478 4 => False, -- unused
10479 5 => False), -- unused
10480
10481 N_Raise_Constraint_Error =>
10482 (1 => True, -- Condition (Node1)
10483 2 => False, -- unused
10484 3 => True, -- Reason (Uint3)
10485 4 => False, -- unused
10486 5 => False), -- Etype (Node5-Sem)
10487
10488 N_Raise_Program_Error =>
10489 (1 => True, -- Condition (Node1)
10490 2 => False, -- unused
10491 3 => True, -- Reason (Uint3)
10492 4 => False, -- unused
10493 5 => False), -- Etype (Node5-Sem)
10494
10495 N_Raise_Storage_Error =>
10496 (1 => True, -- Condition (Node1)
10497 2 => False, -- unused
10498 3 => True, -- Reason (Uint3)
10499 4 => False, -- unused
10500 5 => False), -- Etype (Node5-Sem)
10501
10502 N_Push_Constraint_Error_Label =>
10503 (1 => False, -- unused
10504 2 => False, -- unused
10505 3 => False, -- unused
10506 4 => False, -- unused
10507 5 => False), -- unused
10508
10509 N_Push_Program_Error_Label =>
10510 (1 => False, -- Exception_Label
10511 2 => False, -- unused
10512 3 => False, -- unused
10513 4 => False, -- unused
10514 5 => False), -- Exception_Label
10515
10516 N_Push_Storage_Error_Label =>
10517 (1 => False, -- Exception_Label
10518 2 => False, -- unused
10519 3 => False, -- unused
10520 4 => False, -- unused
10521 5 => False), -- Exception_Label
10522
10523 N_Pop_Constraint_Error_Label =>
10524 (1 => False, -- unused
10525 2 => False, -- unused
10526 3 => False, -- unused
10527 4 => False, -- unused
10528 5 => False), -- unused
10529
10530 N_Pop_Program_Error_Label =>
10531 (1 => False, -- unused
10532 2 => False, -- unused
10533 3 => False, -- unused
10534 4 => False, -- unused
10535 5 => False), -- unused
10536
10537 N_Pop_Storage_Error_Label =>
10538 (1 => False, -- unused
10539 2 => False, -- unused
10540 3 => False, -- unused
10541 4 => False, -- unused
10542 5 => False), -- unused
10543
10544 N_Reference =>
10545 (1 => False, -- unused
10546 2 => False, -- unused
10547 3 => True, -- Prefix (Node3)
10548 4 => False, -- unused
10549 5 => False), -- Etype (Node5-Sem)
10550
10551 N_Subprogram_Info =>
10552 (1 => True, -- Identifier (Node1)
10553 2 => False, -- unused
10554 3 => False, -- unused
10555 4 => False, -- unused
10556 5 => False), -- Etype (Node5-Sem)
10557
10558 N_Unchecked_Expression =>
10559 (1 => False, -- unused
10560 2 => False, -- unused
10561 3 => True, -- Expression (Node3)
10562 4 => False, -- unused
10563 5 => False), -- Etype (Node5-Sem)
10564
10565 N_Unchecked_Type_Conversion =>
10566 (1 => False, -- unused
10567 2 => False, -- unused
10568 3 => True, -- Expression (Node3)
10569 4 => True, -- Subtype_Mark (Node4)
10570 5 => False), -- Etype (Node5-Sem)
10571
10572 N_Validate_Unchecked_Conversion =>
10573 (1 => False, -- Source_Type (Node1-Sem)
10574 2 => False, -- Target_Type (Node2-Sem)
10575 3 => False, -- unused
10576 4 => False, -- unused
10577 5 => False), -- unused
10578
10579 -- End of inserted output from makeisf program
10580
10581 -- Entries for Empty, Error and Unused. Even thought these have a Chars
10582 -- field for debugging purposes, they are not really syntactic fields, so
10583 -- we mark all fields as unused.
10584
10585 N_Empty =>
10586 (1 => False, -- unused
10587 2 => False, -- unused
10588 3 => False, -- unused
10589 4 => False, -- unused
10590 5 => False), -- unused
10591
10592 N_Error =>
10593 (1 => False, -- unused
10594 2 => False, -- unused
10595 3 => False, -- unused
10596 4 => False, -- unused
10597 5 => False), -- unused
10598
10599 N_Unused_At_Start =>
10600 (1 => False, -- unused
10601 2 => False, -- unused
10602 3 => False, -- unused
10603 4 => False, -- unused
10604 5 => False), -- unused
10605
10606 N_Unused_At_End =>
10607 (1 => False, -- unused
10608 2 => False, -- unused
10609 3 => False, -- unused
10610 4 => False, -- unused
10611 5 => False)); -- unused
10612
10613 --------------------
10614 -- Inline Pragmas --
10615 --------------------
10616
10617 pragma Inline (ABE_Is_Certain);
10618 pragma Inline (Abort_Present);
10619 pragma Inline (Abortable_Part);
10620 pragma Inline (Abstract_Present);
10621 pragma Inline (Accept_Handler_Records);
10622 pragma Inline (Accept_Statement);
10623 pragma Inline (Access_Definition);
10624 pragma Inline (Access_To_Subprogram_Definition);
10625 pragma Inline (Access_Types_To_Process);
10626 pragma Inline (Actions);
10627 pragma Inline (Activation_Chain_Entity);
10628 pragma Inline (Acts_As_Spec);
10629 pragma Inline (Actual_Designated_Subtype);
10630 pragma Inline (Aggregate_Bounds);
10631 pragma Inline (Aliased_Present);
10632 pragma Inline (All_Others);
10633 pragma Inline (All_Present);
10634 pragma Inline (Alternatives);
10635 pragma Inline (Ancestor_Part);
10636 pragma Inline (Array_Aggregate);
10637 pragma Inline (Assignment_OK);
10638 pragma Inline (Associated_Node);
10639 pragma Inline (At_End_Proc);
10640 pragma Inline (Attribute_Name);
10641 pragma Inline (Aux_Decls_Node);
10642 pragma Inline (Backwards_OK);
10643 pragma Inline (Bad_Is_Detected);
10644 pragma Inline (Body_To_Inline);
10645 pragma Inline (Body_Required);
10646 pragma Inline (By_Ref);
10647 pragma Inline (Box_Present);
10648 pragma Inline (Char_Literal_Value);
10649 pragma Inline (Chars);
10650 pragma Inline (Check_Address_Alignment);
10651 pragma Inline (Choice_Parameter);
10652 pragma Inline (Choices);
10653 pragma Inline (Coextensions);
10654 pragma Inline (Comes_From_Extended_Return_Statement);
10655 pragma Inline (Compile_Time_Known_Aggregate);
10656 pragma Inline (Component_Associations);
10657 pragma Inline (Component_Clauses);
10658 pragma Inline (Component_Definition);
10659 pragma Inline (Component_Items);
10660 pragma Inline (Component_List);
10661 pragma Inline (Component_Name);
10662 pragma Inline (Condition);
10663 pragma Inline (Condition_Actions);
10664 pragma Inline (Config_Pragmas);
10665 pragma Inline (Constant_Present);
10666 pragma Inline (Constraint);
10667 pragma Inline (Constraints);
10668 pragma Inline (Context_Installed);
10669 pragma Inline (Context_Items);
10670 pragma Inline (Controlling_Argument);
10671 pragma Inline (Conversion_OK);
10672 pragma Inline (Corresponding_Body);
10673 pragma Inline (Corresponding_Formal_Spec);
10674 pragma Inline (Corresponding_Generic_Association);
10675 pragma Inline (Corresponding_Integer_Value);
10676 pragma Inline (Corresponding_Spec);
10677 pragma Inline (Corresponding_Stub);
10678 pragma Inline (Dcheck_Function);
10679 pragma Inline (Debug_Statement);
10680 pragma Inline (Declarations);
10681 pragma Inline (Default_Expression);
10682 pragma Inline (Default_Name);
10683 pragma Inline (Defining_Identifier);
10684 pragma Inline (Defining_Unit_Name);
10685 pragma Inline (Delay_Alternative);
10686 pragma Inline (Delay_Finalize_Attach);
10687 pragma Inline (Delay_Statement);
10688 pragma Inline (Delta_Expression);
10689 pragma Inline (Digits_Expression);
10690 pragma Inline (Discr_Check_Funcs_Built);
10691 pragma Inline (Discrete_Choices);
10692 pragma Inline (Discrete_Range);
10693 pragma Inline (Discrete_Subtype_Definition);
10694 pragma Inline (Discrete_Subtype_Definitions);
10695 pragma Inline (Discriminant_Specifications);
10696 pragma Inline (Discriminant_Type);
10697 pragma Inline (Do_Accessibility_Check);
10698 pragma Inline (Do_Discriminant_Check);
10699 pragma Inline (Do_Length_Check);
10700 pragma Inline (Do_Division_Check);
10701 pragma Inline (Do_Overflow_Check);
10702 pragma Inline (Do_Range_Check);
10703 pragma Inline (Do_Storage_Check);
10704 pragma Inline (Do_Tag_Check);
10705 pragma Inline (Elaborate_Present);
10706 pragma Inline (Elaborate_All_Desirable);
10707 pragma Inline (Elaborate_All_Present);
10708 pragma Inline (Elaborate_Desirable);
10709 pragma Inline (Elaboration_Boolean);
10710 pragma Inline (Else_Actions);
10711 pragma Inline (Else_Statements);
10712 pragma Inline (Elsif_Parts);
10713 pragma Inline (Enclosing_Variant);
10714 pragma Inline (End_Label);
10715 pragma Inline (End_Span);
10716 pragma Inline (Entity);
10717 pragma Inline (Entity_Or_Associated_Node);
10718 pragma Inline (Entry_Body_Formal_Part);
10719 pragma Inline (Entry_Call_Alternative);
10720 pragma Inline (Entry_Call_Statement);
10721 pragma Inline (Entry_Direct_Name);
10722 pragma Inline (Entry_Index);
10723 pragma Inline (Entry_Index_Specification);
10724 pragma Inline (Etype);
10725 pragma Inline (Exception_Choices);
10726 pragma Inline (Exception_Handlers);
10727 pragma Inline (Exception_Junk);
10728 pragma Inline (Exception_Label);
10729 pragma Inline (Expansion_Delayed);
10730 pragma Inline (Explicit_Actual_Parameter);
10731 pragma Inline (Explicit_Generic_Actual_Parameter);
10732 pragma Inline (Expression);
10733 pragma Inline (Expressions);
10734 pragma Inline (First_Bit);
10735 pragma Inline (First_Inlined_Subprogram);
10736 pragma Inline (First_Name);
10737 pragma Inline (First_Named_Actual);
10738 pragma Inline (First_Real_Statement);
10739 pragma Inline (First_Subtype_Link);
10740 pragma Inline (Float_Truncate);
10741 pragma Inline (Formal_Type_Definition);
10742 pragma Inline (Forwards_OK);
10743 pragma Inline (From_At_Mod);
10744 pragma Inline (From_Default);
10745 pragma Inline (Generic_Associations);
10746 pragma Inline (Generic_Formal_Declarations);
10747 pragma Inline (Generic_Parent);
10748 pragma Inline (Generic_Parent_Type);
10749 pragma Inline (Handled_Statement_Sequence);
10750 pragma Inline (Handler_List_Entry);
10751 pragma Inline (Has_Created_Identifier);
10752 pragma Inline (Has_Dynamic_Length_Check);
10753 pragma Inline (Has_Dynamic_Range_Check);
10754 pragma Inline (Has_Self_Reference);
10755 pragma Inline (Has_No_Elaboration_Code);
10756 pragma Inline (Has_Priority_Pragma);
10757 pragma Inline (Has_Private_View);
10758 pragma Inline (Has_Storage_Size_Pragma);
10759 pragma Inline (Has_Task_Info_Pragma);
10760 pragma Inline (Has_Task_Name_Pragma);
10761 pragma Inline (Has_Wide_Character);
10762 pragma Inline (Hidden_By_Use_Clause);
10763 pragma Inline (High_Bound);
10764 pragma Inline (Identifier);
10765 pragma Inline (Implicit_With);
10766 pragma Inline (Interface_List);
10767 pragma Inline (Interface_Present);
10768 pragma Inline (Includes_Infinities);
10769 pragma Inline (In_Present);
10770 pragma Inline (Instance_Spec);
10771 pragma Inline (Intval);
10772 pragma Inline (Is_Asynchronous_Call_Block);
10773 pragma Inline (Is_Coextension);
10774 pragma Inline (Is_Component_Left_Opnd);
10775 pragma Inline (Is_Component_Right_Opnd);
10776 pragma Inline (Is_Controlling_Actual);
10777 pragma Inline (Is_Entry_Barrier_Function);
10778 pragma Inline (Is_In_Discriminant_Check);
10779 pragma Inline (Is_Machine_Number);
10780 pragma Inline (Is_Null_Loop);
10781 pragma Inline (Is_Overloaded);
10782 pragma Inline (Is_Power_Of_2_For_Shift);
10783 pragma Inline (Is_Protected_Subprogram_Body);
10784 pragma Inline (Is_Static_Expression);
10785 pragma Inline (Is_Subprogram_Descriptor);
10786 pragma Inline (Is_Task_Allocation_Block);
10787 pragma Inline (Is_Task_Master);
10788 pragma Inline (Iteration_Scheme);
10789 pragma Inline (Itype);
10790 pragma Inline (Kill_Range_Check);
10791 pragma Inline (Last_Bit);
10792 pragma Inline (Last_Name);
10793 pragma Inline (Library_Unit);
10794 pragma Inline (Label_Construct);
10795 pragma Inline (Left_Opnd);
10796 pragma Inline (Limited_View_Installed);
10797 pragma Inline (Limited_Present);
10798 pragma Inline (Literals);
10799 pragma Inline (Local_Raise_Not_OK);
10800 pragma Inline (Local_Raise_Statements);
10801 pragma Inline (Loop_Actions);
10802 pragma Inline (Loop_Parameter_Specification);
10803 pragma Inline (Low_Bound);
10804 pragma Inline (Mod_Clause);
10805 pragma Inline (More_Ids);
10806 pragma Inline (Must_Be_Byte_Aligned);
10807 pragma Inline (Must_Not_Freeze);
10808 pragma Inline (Must_Not_Override);
10809 pragma Inline (Must_Override);
10810 pragma Inline (Name);
10811 pragma Inline (Names);
10812 pragma Inline (Next_Entity);
10813 pragma Inline (Next_Named_Actual);
10814 pragma Inline (Next_Rep_Item);
10815 pragma Inline (Next_Use_Clause);
10816 pragma Inline (No_Ctrl_Actions);
10817 pragma Inline (No_Elaboration_Check);
10818 pragma Inline (No_Entities_Ref_In_Spec);
10819 pragma Inline (No_Initialization);
10820 pragma Inline (No_Truncation);
10821 pragma Inline (Null_Present);
10822 pragma Inline (Null_Exclusion_Present);
10823 pragma Inline (Null_Record_Present);
10824 pragma Inline (Object_Definition);
10825 pragma Inline (Original_Discriminant);
10826 pragma Inline (Original_Entity);
10827 pragma Inline (Others_Discrete_Choices);
10828 pragma Inline (Out_Present);
10829 pragma Inline (Parameter_Associations);
10830 pragma Inline (Parameter_Specifications);
10831 pragma Inline (Parameter_List_Truncated);
10832 pragma Inline (Parameter_Type);
10833 pragma Inline (Parent_Spec);
10834 pragma Inline (Position);
10835 pragma Inline (Pragma_Argument_Associations);
10836 pragma Inline (Pragmas_After);
10837 pragma Inline (Pragmas_Before);
10838 pragma Inline (Prefix);
10839 pragma Inline (Present_Expr);
10840 pragma Inline (Prev_Ids);
10841 pragma Inline (Print_In_Hex);
10842 pragma Inline (Private_Declarations);
10843 pragma Inline (Private_Present);
10844 pragma Inline (Procedure_To_Call);
10845 pragma Inline (Proper_Body);
10846 pragma Inline (Protected_Definition);
10847 pragma Inline (Protected_Present);
10848 pragma Inline (Raises_Constraint_Error);
10849 pragma Inline (Range_Constraint);
10850 pragma Inline (Range_Expression);
10851 pragma Inline (Real_Range_Specification);
10852 pragma Inline (Realval);
10853 pragma Inline (Reason);
10854 pragma Inline (Record_Extension_Part);
10855 pragma Inline (Redundant_Use);
10856 pragma Inline (Result_Definition);
10857 pragma Inline (Return_Object_Declarations);
10858 pragma Inline (Return_Statement_Entity);
10859 pragma Inline (Reverse_Present);
10860 pragma Inline (Right_Opnd);
10861 pragma Inline (Rounded_Result);
10862 pragma Inline (Scope);
10863 pragma Inline (Select_Alternatives);
10864 pragma Inline (Selector_Name);
10865 pragma Inline (Selector_Names);
10866 pragma Inline (Shift_Count_OK);
10867 pragma Inline (Source_Type);
10868 pragma Inline (Specification);
10869 pragma Inline (Statements);
10870 pragma Inline (Static_Processing_OK);
10871 pragma Inline (Storage_Pool);
10872 pragma Inline (Strval);
10873 pragma Inline (Subtype_Indication);
10874 pragma Inline (Subtype_Mark);
10875 pragma Inline (Subtype_Marks);
10876 pragma Inline (Synchronized_Present);
10877 pragma Inline (Tagged_Present);
10878 pragma Inline (Target_Type);
10879 pragma Inline (Task_Definition);
10880 pragma Inline (Task_Present);
10881 pragma Inline (Then_Actions);
10882 pragma Inline (Then_Statements);
10883 pragma Inline (Triggering_Alternative);
10884 pragma Inline (Triggering_Statement);
10885 pragma Inline (Treat_Fixed_As_Integer);
10886 pragma Inline (TSS_Elist);
10887 pragma Inline (Type_Definition);
10888 pragma Inline (Unit);
10889 pragma Inline (Unknown_Discriminants_Present);
10890 pragma Inline (Unreferenced_In_Spec);
10891 pragma Inline (Variant_Part);
10892 pragma Inline (Variants);
10893 pragma Inline (Visible_Declarations);
10894 pragma Inline (Was_Originally_Stub);
10895 pragma Inline (Zero_Cost_Handling);
10896
10897 pragma Inline (Set_ABE_Is_Certain);
10898 pragma Inline (Set_Abort_Present);
10899 pragma Inline (Set_Abortable_Part);
10900 pragma Inline (Set_Abstract_Present);
10901 pragma Inline (Set_Accept_Handler_Records);
10902 pragma Inline (Set_Accept_Statement);
10903 pragma Inline (Set_Access_Definition);
10904 pragma Inline (Set_Access_To_Subprogram_Definition);
10905 pragma Inline (Set_Access_Types_To_Process);
10906 pragma Inline (Set_Actions);
10907 pragma Inline (Set_Activation_Chain_Entity);
10908 pragma Inline (Set_Acts_As_Spec);
10909 pragma Inline (Set_Actual_Designated_Subtype);
10910 pragma Inline (Set_Aggregate_Bounds);
10911 pragma Inline (Set_Aliased_Present);
10912 pragma Inline (Set_All_Others);
10913 pragma Inline (Set_All_Present);
10914 pragma Inline (Set_Alternatives);
10915 pragma Inline (Set_Ancestor_Part);
10916 pragma Inline (Set_Array_Aggregate);
10917 pragma Inline (Set_Assignment_OK);
10918 pragma Inline (Set_Associated_Node);
10919 pragma Inline (Set_At_End_Proc);
10920 pragma Inline (Set_Attribute_Name);
10921 pragma Inline (Set_Aux_Decls_Node);
10922 pragma Inline (Set_Backwards_OK);
10923 pragma Inline (Set_Bad_Is_Detected);
10924 pragma Inline (Set_Body_To_Inline);
10925 pragma Inline (Set_Body_Required);
10926 pragma Inline (Set_By_Ref);
10927 pragma Inline (Set_Box_Present);
10928 pragma Inline (Set_Char_Literal_Value);
10929 pragma Inline (Set_Chars);
10930 pragma Inline (Set_Check_Address_Alignment);
10931 pragma Inline (Set_Choice_Parameter);
10932 pragma Inline (Set_Choices);
10933 pragma Inline (Set_Coextensions);
10934 pragma Inline (Set_Comes_From_Extended_Return_Statement);
10935 pragma Inline (Set_Compile_Time_Known_Aggregate);
10936 pragma Inline (Set_Component_Associations);
10937 pragma Inline (Set_Component_Clauses);
10938 pragma Inline (Set_Component_Definition);
10939 pragma Inline (Set_Component_Items);
10940 pragma Inline (Set_Component_List);
10941 pragma Inline (Set_Component_Name);
10942 pragma Inline (Set_Condition);
10943 pragma Inline (Set_Condition_Actions);
10944 pragma Inline (Set_Config_Pragmas);
10945 pragma Inline (Set_Constant_Present);
10946 pragma Inline (Set_Constraint);
10947 pragma Inline (Set_Constraints);
10948 pragma Inline (Set_Context_Installed);
10949 pragma Inline (Set_Context_Items);
10950 pragma Inline (Set_Controlling_Argument);
10951 pragma Inline (Set_Conversion_OK);
10952 pragma Inline (Set_Corresponding_Body);
10953 pragma Inline (Set_Corresponding_Formal_Spec);
10954 pragma Inline (Set_Corresponding_Generic_Association);
10955 pragma Inline (Set_Corresponding_Integer_Value);
10956 pragma Inline (Set_Corresponding_Spec);
10957 pragma Inline (Set_Corresponding_Stub);
10958 pragma Inline (Set_Dcheck_Function);
10959 pragma Inline (Set_Debug_Statement);
10960 pragma Inline (Set_Declarations);
10961 pragma Inline (Set_Default_Expression);
10962 pragma Inline (Set_Default_Name);
10963 pragma Inline (Set_Defining_Identifier);
10964 pragma Inline (Set_Defining_Unit_Name);
10965 pragma Inline (Set_Delay_Alternative);
10966 pragma Inline (Set_Delay_Finalize_Attach);
10967 pragma Inline (Set_Delay_Statement);
10968 pragma Inline (Set_Delta_Expression);
10969 pragma Inline (Set_Digits_Expression);
10970 pragma Inline (Set_Discr_Check_Funcs_Built);
10971 pragma Inline (Set_Discrete_Choices);
10972 pragma Inline (Set_Discrete_Range);
10973 pragma Inline (Set_Discrete_Subtype_Definition);
10974 pragma Inline (Set_Discrete_Subtype_Definitions);
10975 pragma Inline (Set_Discriminant_Specifications);
10976 pragma Inline (Set_Discriminant_Type);
10977 pragma Inline (Set_Do_Accessibility_Check);
10978 pragma Inline (Set_Do_Discriminant_Check);
10979 pragma Inline (Set_Do_Length_Check);
10980 pragma Inline (Set_Do_Division_Check);
10981 pragma Inline (Set_Do_Overflow_Check);
10982 pragma Inline (Set_Do_Range_Check);
10983 pragma Inline (Set_Do_Storage_Check);
10984 pragma Inline (Set_Do_Tag_Check);
10985 pragma Inline (Set_Elaborate_Present);
10986 pragma Inline (Set_Elaborate_All_Desirable);
10987 pragma Inline (Set_Elaborate_All_Present);
10988 pragma Inline (Set_Elaborate_Desirable);
10989 pragma Inline (Set_Elaboration_Boolean);
10990 pragma Inline (Set_Else_Actions);
10991 pragma Inline (Set_Else_Statements);
10992 pragma Inline (Set_Elsif_Parts);
10993 pragma Inline (Set_Enclosing_Variant);
10994 pragma Inline (Set_End_Label);
10995 pragma Inline (Set_End_Span);
10996 pragma Inline (Set_Entity);
10997 pragma Inline (Set_Entry_Body_Formal_Part);
10998 pragma Inline (Set_Entry_Call_Alternative);
10999 pragma Inline (Set_Entry_Call_Statement);
11000 pragma Inline (Set_Entry_Direct_Name);
11001 pragma Inline (Set_Entry_Index);
11002 pragma Inline (Set_Entry_Index_Specification);
11003 pragma Inline (Set_Etype);
11004 pragma Inline (Set_Exception_Choices);
11005 pragma Inline (Set_Exception_Handlers);
11006 pragma Inline (Set_Exception_Junk);
11007 pragma Inline (Set_Exception_Label);
11008 pragma Inline (Set_Expansion_Delayed);
11009 pragma Inline (Set_Explicit_Actual_Parameter);
11010 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
11011 pragma Inline (Set_Expression);
11012 pragma Inline (Set_Expressions);
11013 pragma Inline (Set_First_Bit);
11014 pragma Inline (Set_First_Inlined_Subprogram);
11015 pragma Inline (Set_First_Name);
11016 pragma Inline (Set_First_Named_Actual);
11017 pragma Inline (Set_First_Real_Statement);
11018 pragma Inline (Set_First_Subtype_Link);
11019 pragma Inline (Set_Float_Truncate);
11020 pragma Inline (Set_Formal_Type_Definition);
11021 pragma Inline (Set_Forwards_OK);
11022 pragma Inline (Set_From_At_Mod);
11023 pragma Inline (Set_From_Default);
11024 pragma Inline (Set_Generic_Associations);
11025 pragma Inline (Set_Generic_Formal_Declarations);
11026 pragma Inline (Set_Generic_Parent);
11027 pragma Inline (Set_Generic_Parent_Type);
11028 pragma Inline (Set_Handled_Statement_Sequence);
11029 pragma Inline (Set_Handler_List_Entry);
11030 pragma Inline (Set_Has_Created_Identifier);
11031 pragma Inline (Set_Has_Dynamic_Length_Check);
11032 pragma Inline (Set_Has_Dynamic_Range_Check);
11033 pragma Inline (Set_Has_No_Elaboration_Code);
11034 pragma Inline (Set_Has_Priority_Pragma);
11035 pragma Inline (Set_Has_Private_View);
11036 pragma Inline (Set_Has_Storage_Size_Pragma);
11037 pragma Inline (Set_Has_Task_Info_Pragma);
11038 pragma Inline (Set_Has_Task_Name_Pragma);
11039 pragma Inline (Set_Has_Wide_Character);
11040 pragma Inline (Set_Hidden_By_Use_Clause);
11041 pragma Inline (Set_High_Bound);
11042 pragma Inline (Set_Identifier);
11043 pragma Inline (Set_Implicit_With);
11044 pragma Inline (Set_Includes_Infinities);
11045 pragma Inline (Set_Interface_List);
11046 pragma Inline (Set_Interface_Present);
11047 pragma Inline (Set_In_Present);
11048 pragma Inline (Set_Instance_Spec);
11049 pragma Inline (Set_Intval);
11050 pragma Inline (Set_Is_Asynchronous_Call_Block);
11051 pragma Inline (Set_Is_Coextension);
11052 pragma Inline (Set_Is_Component_Left_Opnd);
11053 pragma Inline (Set_Is_Component_Right_Opnd);
11054 pragma Inline (Set_Is_Controlling_Actual);
11055 pragma Inline (Set_Is_Entry_Barrier_Function);
11056 pragma Inline (Set_Is_In_Discriminant_Check);
11057 pragma Inline (Set_Is_Machine_Number);
11058 pragma Inline (Set_Is_Null_Loop);
11059 pragma Inline (Set_Is_Overloaded);
11060 pragma Inline (Set_Is_Power_Of_2_For_Shift);
11061 pragma Inline (Set_Is_Protected_Subprogram_Body);
11062 pragma Inline (Set_Has_Self_Reference);
11063 pragma Inline (Set_Is_Static_Expression);
11064 pragma Inline (Set_Is_Subprogram_Descriptor);
11065 pragma Inline (Set_Is_Task_Allocation_Block);
11066 pragma Inline (Set_Is_Task_Master);
11067 pragma Inline (Set_Iteration_Scheme);
11068 pragma Inline (Set_Itype);
11069 pragma Inline (Set_Kill_Range_Check);
11070 pragma Inline (Set_Last_Bit);
11071 pragma Inline (Set_Last_Name);
11072 pragma Inline (Set_Library_Unit);
11073 pragma Inline (Set_Label_Construct);
11074 pragma Inline (Set_Left_Opnd);
11075 pragma Inline (Set_Limited_View_Installed);
11076 pragma Inline (Set_Limited_Present);
11077 pragma Inline (Set_Literals);
11078 pragma Inline (Set_Local_Raise_Not_OK);
11079 pragma Inline (Set_Local_Raise_Statements);
11080 pragma Inline (Set_Loop_Actions);
11081 pragma Inline (Set_Loop_Parameter_Specification);
11082 pragma Inline (Set_Low_Bound);
11083 pragma Inline (Set_Mod_Clause);
11084 pragma Inline (Set_More_Ids);
11085 pragma Inline (Set_Must_Be_Byte_Aligned);
11086 pragma Inline (Set_Must_Not_Freeze);
11087 pragma Inline (Set_Must_Not_Override);
11088 pragma Inline (Set_Must_Override);
11089 pragma Inline (Set_Name);
11090 pragma Inline (Set_Names);
11091 pragma Inline (Set_Next_Entity);
11092 pragma Inline (Set_Next_Named_Actual);
11093 pragma Inline (Set_Next_Use_Clause);
11094 pragma Inline (Set_No_Ctrl_Actions);
11095 pragma Inline (Set_No_Elaboration_Check);
11096 pragma Inline (Set_No_Entities_Ref_In_Spec);
11097 pragma Inline (Set_No_Initialization);
11098 pragma Inline (Set_No_Truncation);
11099 pragma Inline (Set_Null_Present);
11100 pragma Inline (Set_Null_Exclusion_Present);
11101 pragma Inline (Set_Null_Record_Present);
11102 pragma Inline (Set_Object_Definition);
11103 pragma Inline (Set_Original_Discriminant);
11104 pragma Inline (Set_Original_Entity);
11105 pragma Inline (Set_Others_Discrete_Choices);
11106 pragma Inline (Set_Out_Present);
11107 pragma Inline (Set_Parameter_Associations);
11108 pragma Inline (Set_Parameter_Specifications);
11109 pragma Inline (Set_Parameter_List_Truncated);
11110 pragma Inline (Set_Parameter_Type);
11111 pragma Inline (Set_Parent_Spec);
11112 pragma Inline (Set_Position);
11113 pragma Inline (Set_Pragma_Argument_Associations);
11114 pragma Inline (Set_Pragmas_After);
11115 pragma Inline (Set_Pragmas_Before);
11116 pragma Inline (Set_Prefix);
11117 pragma Inline (Set_Present_Expr);
11118 pragma Inline (Set_Prev_Ids);
11119 pragma Inline (Set_Print_In_Hex);
11120 pragma Inline (Set_Private_Declarations);
11121 pragma Inline (Set_Private_Present);
11122 pragma Inline (Set_Procedure_To_Call);
11123 pragma Inline (Set_Proper_Body);
11124 pragma Inline (Set_Protected_Definition);
11125 pragma Inline (Set_Protected_Present);
11126 pragma Inline (Set_Raises_Constraint_Error);
11127 pragma Inline (Set_Range_Constraint);
11128 pragma Inline (Set_Range_Expression);
11129 pragma Inline (Set_Real_Range_Specification);
11130 pragma Inline (Set_Realval);
11131 pragma Inline (Set_Reason);
11132 pragma Inline (Set_Record_Extension_Part);
11133 pragma Inline (Set_Redundant_Use);
11134 pragma Inline (Set_Result_Definition);
11135 pragma Inline (Set_Return_Object_Declarations);
11136 pragma Inline (Set_Reverse_Present);
11137 pragma Inline (Set_Right_Opnd);
11138 pragma Inline (Set_Rounded_Result);
11139 pragma Inline (Set_Scope);
11140 pragma Inline (Set_Select_Alternatives);
11141 pragma Inline (Set_Selector_Name);
11142 pragma Inline (Set_Selector_Names);
11143 pragma Inline (Set_Shift_Count_OK);
11144 pragma Inline (Set_Source_Type);
11145 pragma Inline (Set_Specification);
11146 pragma Inline (Set_Statements);
11147 pragma Inline (Set_Static_Processing_OK);
11148 pragma Inline (Set_Storage_Pool);
11149 pragma Inline (Set_Strval);
11150 pragma Inline (Set_Subtype_Indication);
11151 pragma Inline (Set_Subtype_Mark);
11152 pragma Inline (Set_Subtype_Marks);
11153 pragma Inline (Set_Synchronized_Present);
11154 pragma Inline (Set_Tagged_Present);
11155 pragma Inline (Set_Target_Type);
11156 pragma Inline (Set_Task_Definition);
11157 pragma Inline (Set_Task_Present);
11158 pragma Inline (Set_Then_Actions);
11159 pragma Inline (Set_Then_Statements);
11160 pragma Inline (Set_Triggering_Alternative);
11161 pragma Inline (Set_Triggering_Statement);
11162 pragma Inline (Set_Treat_Fixed_As_Integer);
11163 pragma Inline (Set_TSS_Elist);
11164 pragma Inline (Set_Type_Definition);
11165 pragma Inline (Set_Unit);
11166 pragma Inline (Set_Unknown_Discriminants_Present);
11167 pragma Inline (Set_Unreferenced_In_Spec);
11168 pragma Inline (Set_Variant_Part);
11169 pragma Inline (Set_Variants);
11170 pragma Inline (Set_Visible_Declarations);
11171 pragma Inline (Set_Was_Originally_Stub);
11172 pragma Inline (Set_Zero_Cost_Handling);
11173
11174 end Sinfo;