[multiple changes]
[gcc.git] / gcc / ada / sinfo.ads
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- S I N F O --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2010, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. --
17 -- --
18 -- As a special exception under Section 7 of GPL version 3, you are granted --
19 -- additional permissions described in the GCC Runtime Library Exception, --
20 -- version 3.1, as published by the Free Software Foundation. --
21 -- --
22 -- You should have received a copy of the GNU General Public License and --
23 -- a copy of the GCC Runtime Library Exception along with this program; --
24 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
25 -- <http://www.gnu.org/licenses/>. --
26 -- --
27 -- GNAT was originally developed by the GNAT team at New York University. --
28 -- Extensive contributions were provided by Ada Core Technologies Inc. --
29 -- --
30 ------------------------------------------------------------------------------
31
32 -- This package defines the structure of the abstract syntax tree. The Tree
33 -- package provides a basic tree structure. Sinfo describes how this structure
34 -- is used to represent the syntax of an Ada program.
35
36 -- The grammar in the RM is followed very closely in the tree design, and is
37 -- repeated as part of this source file.
38
39 -- The tree contains not only the full syntactic representation of the
40 -- program, but also the results of semantic analysis. In particular, the
41 -- nodes for defining identifiers, defining character literals and defining
42 -- operator symbols, collectively referred to as entities, represent what
43 -- would normally be regarded as the symbol table information. In addition a
44 -- number of the tree nodes contain semantic information.
45
46 -- WARNING: Several files are automatically generated from this package.
47 -- See below for details.
48
49 with Namet; use Namet;
50 with Types; use Types;
51 with Uintp; use Uintp;
52 with Urealp; use Urealp;
53
54 package Sinfo is
55
56 ---------------------------------
57 -- Making Changes to This File --
58 ---------------------------------
59
60 -- If changes are made to this file, a number of related steps must be
61 -- carried out to ensure consistency. First, if a field access function is
62 -- added, it appears in these places:
63
64 -- In sinfo.ads:
65 -- The documentation associated with the field (if semantic)
66 -- The documentation associated with the node
67 -- The spec of the access function
68 -- The spec of the set procedure
69 -- The entries in Is_Syntactic_Field
70 -- The pragma Inline for the access function
71 -- The pragma Inline for the set procedure
72 -- In sinfo.adb:
73 -- The body of the access function
74 -- The body of the set procedure
75
76 -- The field chosen must be consistent in all places, and, for a node that
77 -- is a subexpression, must not overlap any of the standard expression
78 -- fields.
79
80 -- In addition, if any of the standard expression fields is changed, then
81 -- the utility program which creates the Treeprs spec (in file treeprs.ads)
82 -- must be updated appropriately, since it special cases expression fields.
83
84 -- If a new tree node is added, then the following changes are made
85
86 -- Add it to the documentation in the appropriate place
87 -- Add its fields to this documentation section
88 -- Define it in the appropriate classification in Node_Kind
89 -- In the body (sinfo), add entries to the access functions for all
90 -- its fields (except standard expression fields) to include the new
91 -- node in the checks.
92 -- Add an appropriate section to the case statement in sprint.adb
93 -- Add an appropriate section to the case statement in sem.adb
94 -- Add an appropriate section to the case statement in exp_util.adb
95 -- (Insert_Actions procedure)
96 -- For a subexpression, add an appropriate section to the case
97 -- statement in sem_eval.adb
98 -- For a subexpression, add an appropriate section to the case
99 -- statement in sem_res.adb
100
101 -- Finally, four utility programs must be run:
102
103 -- (Optional.) Run CSinfo to check that you have made the changes
104 -- consistently. It checks most of the rules given above. This utility
105 -- reads sinfo.ads and sinfo.adb and generates a report to standard
106 -- output. This step is optional because XSinfo runs CSinfo.
107
108 -- Run XSinfo to create sinfo.h, the corresponding C header. This
109 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
110 -- not need to read sinfo.adb, since the contents of the body are
111 -- algorithmically determinable from the spec.
112
113 -- Run XTreeprs to create treeprs.ads, an updated version of the module
114 -- that is used to drive the tree print routine. This utility reads (but
115 -- does not modify) treeprs.adt, the template that provides the basic
116 -- structure of the file, and then fills in the data from the comments
117 -- in sinfo.ads.
118
119 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
120 -- spec of the Nmake package which contains functions for constructing
121 -- nodes.
122
123 -- The above steps are done automatically by the build scripts when you do
124 -- a full bootstrap.
125
126 -- Note: sometime we could write a utility that actually generated the body
127 -- of sinfo from the spec instead of simply checking it, since, as noted
128 -- above, the contents of the body can be determined from the spec.
129
130 --------------------------------
131 -- Implicit Nodes in the Tree --
132 --------------------------------
133
134 -- Generally the structure of the tree very closely follows the grammar as
135 -- defined in the RM. However, certain nodes are omitted to save space and
136 -- simplify semantic processing. Two general classes of such omitted nodes
137 -- are as follows:
138
139 -- If the only possibilities for a non-terminal are one or more other
140 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
141 -- corresponding node is omitted from the tree, and the target construct
142 -- appears directly. For example, a real type definition is either
143 -- floating point definition or a fixed point definition. No explicit node
144 -- appears for real type definition. Instead either the floating point
145 -- definition or fixed point definition appears directly.
146
147 -- If a non-terminal corresponds to a list of some other non-terminal
148 -- (possibly with separating punctuation), then usually it is omitted from
149 -- the tree, and a list of components appears instead. For example,
150 -- sequence of statements does not appear explicitly in the tree. Instead
151 -- a list of statements appears directly.
152
153 -- Some additional cases of omitted nodes occur and are documented
154 -- individually. In particular, many nodes are omitted in the tree
155 -- generated for an expression.
156
157 -------------------------------------------
158 -- Handling of Defining Identifier Lists --
159 -------------------------------------------
160
161 -- In several declarative forms in the syntax, lists of defining
162 -- identifiers appear (object declarations, component declarations, number
163 -- declarations etc.)
164
165 -- The semantics of such statements are equivalent to a series of identical
166 -- declarations of single defining identifiers (except that conformance
167 -- checks require the same grouping of identifiers in the parameter case).
168
169 -- To simplify semantic processing, the parser breaks down such multiple
170 -- declaration cases into sequences of single declarations, duplicating
171 -- type and initialization information as required. The flags More_Ids and
172 -- Prev_Ids are used to record the original form of the source in the case
173 -- where the original source used a list of names, More_Ids being set on
174 -- all but the last name and Prev_Ids being set on all but the first name.
175 -- These flags are used to reconstruct the original source (e.g. in the
176 -- Sprint package), and also are included in the conformance checks, but
177 -- otherwise have no semantic significance.
178
179 -- Note: the reason that we use More_Ids and Prev_Ids rather than
180 -- First_Name and Last_Name flags is so that the flags are off in the
181 -- normal one identifier case, which minimizes tree print output.
182
183 -----------------------
184 -- Use of Node Lists --
185 -----------------------
186
187 -- With a few exceptions, if a construction of the form {non-terminal}
188 -- appears in the tree, lists are used in the corresponding tree node (see
189 -- package Nlists for handling of node lists). In this case a field of the
190 -- parent node points to a list of nodes for the non-terminal. The field
191 -- name for such fields has a plural name which always ends in "s". For
192 -- example, a case statement has a field Alternatives pointing to list of
193 -- case statement alternative nodes.
194
195 -- Only fields pointing to lists have names ending in "s", so generally the
196 -- structure is strongly typed, fields not ending in s point to single
197 -- nodes, and fields ending in s point to lists.
198
199 -- The following example shows how a traversal of a list is written. We
200 -- suppose here that Stmt points to a N_Case_Statement node which has a
201 -- list field called Alternatives:
202
203 -- Alt := First (Alternatives (Stmt));
204 -- while Present (Alt) loop
205 -- ..
206 -- -- processing for case statement alternative Alt
207 -- ..
208 -- Alt := Next (Alt);
209 -- end loop;
210
211 -- The Present function tests for Empty, which in this case signals the end
212 -- of the list. First returns Empty immediately if the list is empty.
213 -- Present is defined in Atree, First and Next are defined in Nlists.
214
215 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
216 -- contexts, which is handled as described in the previous section, and
217 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
218 -- using the First_Name and Last_Name flags, as further detailed in the
219 -- description of the N_With_Clause node.
220
221 -------------
222 -- Pragmas --
223 -------------
224
225 -- Pragmas can appear in many different context, but are not included in
226 -- the grammar. Still they must appear in the tree, so they can be properly
227 -- processed.
228
229 -- Two approaches are used. In some cases, an extra field is defined in an
230 -- appropriate node that contains a list of pragmas appearing in the
231 -- expected context. For example pragmas can appear before an
232 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
233 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
234
235 -- The other approach is to simply allow pragmas to appear in syntactic
236 -- lists where the grammar (of course) does not include the possibility.
237 -- For example, the Variants field of an N_Variant_Part node points to a
238 -- list that can contain both N_Pragma and N_Variant nodes.
239
240 -- To make processing easier in the latter case, the Nlists package
241 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
242 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
243 -- ignoring all pragmas.
244
245 -- In the case of the variants list, we can either write:
246
247 -- Variant := First (Variants (N));
248 -- while Present (Variant) loop
249 -- ...
250 -- Variant := Next (Variant);
251 -- end loop;
252
253 -- or
254
255 -- Variant := First_Non_Pragma (Variants (N));
256 -- while Present (Variant) loop
257 -- ...
258 -- Variant := Next_Non_Pragma (Variant);
259 -- end loop;
260
261 -- In the first form of the loop, Variant can either be an N_Pragma or an
262 -- N_Variant node. In the second form, Variant can only be N_Variant since
263 -- all pragmas are skipped.
264
265 ---------------------
266 -- Optional Fields --
267 ---------------------
268
269 -- Fields which correspond to a section of the syntax enclosed in square
270 -- brackets are generally omitted (and the corresponding field set to Empty
271 -- for a node, or No_List for a list). The documentation of such fields
272 -- notes these cases. One exception to this rule occurs in the case of
273 -- possibly empty statement sequences (such as the sequence of statements
274 -- in an entry call alternative). Such cases appear in the syntax rules as
275 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
276 -- statement sequences always contain an empty list (not No_List) if no
277 -- statements are present.
278
279 -- Note: the utility program that constructs the body and spec of the Nmake
280 -- package relies on the format of the comments to determine if a field
281 -- should have a default value in the corresponding make routine. The rule
282 -- is that if the first line of the description of the field contains the
283 -- string "(set to xxx if", then a default value of xxx is provided for
284 -- this field in the corresponding Make_yyy routine.
285
286 -----------------------------------
287 -- Note on Body/Spec Terminology --
288 -----------------------------------
289
290 -- In informal discussions about Ada, it is customary to refer to package
291 -- and subprogram specs and bodies. However, this is not technically
292 -- correct, what is normally referred to as a spec or specification is in
293 -- fact a package declaration or subprogram declaration. We are careful in
294 -- GNAT to use the correct terminology and in particular, the full word
295 -- specification is never used as an incorrect substitute for declaration.
296 -- The structure and terminology used in the tree also reflects the grammar
297 -- and thus uses declaration and specification in the technically correct
298 -- manner.
299
300 -- However, there are contexts in which the informal terminology is useful.
301 -- We have the word "body" to refer to the Interp_Etype declared by the
302 -- declaration of a unit body, and in some contexts we need similar term to
303 -- refer to the entity declared by the package or subprogram declaration,
304 -- and simply using declaration can be confusing since the body also has a
305 -- declaration.
306
307 -- An example of such a context is the link between the package body and
308 -- its declaration. With_Declaration is confusing, since the package body
309 -- itself is a declaration.
310
311 -- To deal with this problem, we reserve the informal term Spec, i.e. the
312 -- popular abbreviation used in this context, to refer to the entity
313 -- declared by the package or subprogram declaration. So in the above
314 -- example case, the field in the body is called With_Spec.
315
316 -- Another important context for the use of the word Spec is in error
317 -- messages, where a hyper-correct use of declaration would be confusing to
318 -- a typical Ada programmer, and even for an expert programmer can cause
319 -- confusion since the body has a declaration as well.
320
321 -- So, to summarize:
322
323 -- Declaration always refers to the syntactic entity that is called
324 -- a declaration. In particular, subprogram declaration
325 -- and package declaration are used to describe the
326 -- syntactic entity that includes the semicolon.
327
328 -- Specification always refers to the syntactic entity that is called
329 -- a specification. In particular, the terms procedure
330 -- specification, function specification, package
331 -- specification, subprogram specification always refer
332 -- to the syntactic entity that has no semicolon.
333
334 -- Spec is an informal term, used to refer to the entity
335 -- that is declared by a task declaration, protected
336 -- declaration, generic declaration, subprogram
337 -- declaration or package declaration.
338
339 -- This convention is followed throughout the GNAT documentation
340 -- both internal and external, and in all error message text.
341
342 ------------------------
343 -- Internal Use Nodes --
344 ------------------------
345
346 -- These are Node_Kind settings used in the internal implementation which
347 -- are not logically part of the specification.
348
349 -- N_Unused_At_Start
350 -- Completely unused entry at the start of the enumeration type. This
351 -- is inserted so that no legitimate value is zero, which helps to get
352 -- better debugging behavior, since zero is a likely uninitialized value).
353
354 -- N_Unused_At_End
355 -- Completely unused entry at the end of the enumeration type. This is
356 -- handy so that arrays with Node_Kind as the index type have an extra
357 -- entry at the end (see for example the use of the Pchar_Pos_Array in
358 -- Treepr, where the extra entry provides the limit value when dealing with
359 -- the last used entry in the array).
360
361 -----------------------------------------
362 -- Note on the settings of Sloc fields --
363 -----------------------------------------
364
365 -- The Sloc field of nodes that come from the source is set by the parser.
366 -- For internal nodes, and nodes generated during expansion the Sloc is
367 -- usually set in the call to the constructor for the node. In general the
368 -- Sloc value chosen for an internal node is the Sloc of the source node
369 -- whose processing is responsible for the expansion. For example, the Sloc
370 -- of an inherited primitive operation is the Sloc of the corresponding
371 -- derived type declaration.
372
373 -- For the nodes of a generic instantiation, the Sloc value is encoded to
374 -- represent both the original Sloc in the generic unit, and the Sloc of
375 -- the instantiation itself. See Sinput.ads for details.
376
377 -- Subprogram instances create two callable entities: one is the visible
378 -- subprogram instance, and the other is an anonymous subprogram nested
379 -- within a wrapper package that contains the renamings for the actuals.
380 -- Both of these entities have the Sloc of the defining entity in the
381 -- instantiation node. This simplifies some ASIS queries.
382
383 -----------------------
384 -- Field Definitions --
385 -----------------------
386
387 -- In the following node definitions, all fields, both syntactic and
388 -- semantic, are documented. The one exception is in the case of entities
389 -- (defining identifiers, character literals and operator symbols), where
390 -- the usage of the fields depends on the entity kind. Entity fields are
391 -- fully documented in the separate package Einfo.
392
393 -- In the node definitions, three common sets of fields are abbreviated to
394 -- save both space in the documentation, and also space in the string
395 -- (defined in Tree_Print_Strings) used to print trees. The following
396 -- abbreviations are used:
397
398 -- Note: the utility program that creates the Treeprs spec (in the file
399 -- xtreeprs.adb) knows about the special fields here, so it must be
400 -- modified if any change is made to these fields.
401
402 -- "plus fields for binary operator"
403 -- Chars (Name1) Name_Id for the operator
404 -- Left_Opnd (Node2) left operand expression
405 -- Right_Opnd (Node3) right operand expression
406 -- Entity (Node4-Sem) defining entity for operator
407 -- Associated_Node (Node4-Sem) for generic processing
408 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
409 -- Has_Private_View (Flag11-Sem) set in generic units.
410
411 -- "plus fields for unary operator"
412 -- Chars (Name1) Name_Id for the operator
413 -- Right_Opnd (Node3) right operand expression
414 -- Entity (Node4-Sem) defining entity for operator
415 -- Associated_Node (Node4-Sem) for generic processing
416 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
417 -- Has_Private_View (Flag11-Sem) set in generic units.
418
419 -- "plus fields for expression"
420 -- Paren_Count number of parentheses levels
421 -- Etype (Node5-Sem) type of the expression
422 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
423 -- Is_Static_Expression (Flag6-Sem) set for static expression
424 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
425 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
426 -- Do_Range_Check (Flag9-Sem) set if a range check needed
427 -- Assignment_OK (Flag15-Sem) set if modification is OK
428 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
429
430 -- Note: see under (EXPRESSION) for further details on the use of
431 -- the Paren_Count field to record the number of parentheses levels.
432
433 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
434 -- The actual definition of this type is given later (the reason for this
435 -- is that we want the descriptions ordered by logical chapter in the RM,
436 -- but the type definition is reordered to facilitate the definition of
437 -- some subtype ranges. The individual descriptions of the nodes show how
438 -- the various fields are used in each node kind, as well as providing
439 -- logical names for the fields. Functions and procedures are provided for
440 -- accessing and setting these fields using these logical names.
441
442 -----------------------
443 -- Gigi Restrictions --
444 -----------------------
445
446 -- The tree passed to Gigi is more restricted than the general tree form.
447 -- For example, as a result of expansion, most of the tasking nodes can
448 -- never appear. For each node to which either a complete or partial
449 -- restriction applies, a note entitled "Gigi restriction" appears which
450 -- documents the restriction.
451
452 -- Note that most of these restrictions apply only to trees generated when
453 -- code is being generated, since they involved expander actions that
454 -- destroy the tree.
455
456 ------------------------
457 -- Common Flag Fields --
458 ------------------------
459
460 -- The following flag fields appear in all nodes
461
462 -- Analyzed
463 -- This flag is used to indicate that a node (and all its children have
464 -- been analyzed. It is used to avoid reanalysis of a node that has
465 -- already been analyzed, both for efficiency and functional correctness
466 -- reasons.
467
468 -- Comes_From_Source
469 -- This flag is set if the node comes directly from an explicit construct
470 -- in the source. It is normally on for any nodes built by the scanner or
471 -- parser from the source program, with the exception that in a few cases
472 -- the parser adds nodes to normalize the representation (in particular
473 -- a null statement is added to a package body if there is no begin/end
474 -- initialization section.
475 --
476 -- Most nodes inserted by the analyzer or expander are not considered
477 -- as coming from source, so the flag is off for such nodes. In a few
478 -- cases, the expander constructs nodes closely equivalent to nodes
479 -- from the source program (e.g. the allocator built for build-in-place
480 -- case), and the Comes_From_Source flag is deliberately set.
481
482 -- Error_Posted
483 -- This flag is used to avoid multiple error messages being posted on or
484 -- referring to the same node. This flag is set if an error message
485 -- refers to a node or is posted on its source location, and has the
486 -- effect of inhibiting further messages involving this same node.
487
488 -- Has_Dynamic_Length_Check (Flag10-Sem)
489 -- This flag is present on all nodes. It is set to indicate that one of
490 -- the routines in unit Checks has generated a length check action which
491 -- has been inserted at the flagged node. This is used to avoid the
492 -- generation of duplicate checks.
493
494 -- Has_Dynamic_Range_Check (Flag12-Sem)
495 -- This flag is present on all nodes. It is set to indicate that one of
496 -- the routines in unit Checks has generated a range check action which
497 -- has been inserted at the flagged node. This is used to avoid the
498 -- generation of duplicate checks.
499
500 ------------------------------------
501 -- Description of Semantic Fields --
502 ------------------------------------
503
504 -- The meaning of the syntactic fields is generally clear from their names
505 -- without any further description, since the names are chosen to
506 -- correspond very closely to the syntax in the reference manual. This
507 -- section describes the usage of the semantic fields, which are used to
508 -- contain additional information determined during semantic analysis.
509
510 -- ABE_Is_Certain (Flag18-Sem)
511 -- This flag is set in an instantiation node or a call node is determined
512 -- to be sure to raise an ABE. This is used to trigger special handling
513 -- of such cases, particularly in the instantiation case where we avoid
514 -- instantiating the body if this flag is set. This flag is also present
515 -- in an N_Formal_Package_Declaration_Node since formal package
516 -- declarations are treated like instantiations, but it is always set to
517 -- False in this context.
518
519 -- Accept_Handler_Records (List5-Sem)
520 -- This field is present only in an N_Accept_Alternative node. It is used
521 -- to temporarily hold the exception handler records from an accept
522 -- statement in a selective accept. These exception handlers will
523 -- eventually be placed in the Handler_Records list of the procedure
524 -- built for this accept (see Expand_N_Selective_Accept procedure in
525 -- Exp_Ch9 for further details).
526
527 -- Access_Types_To_Process (Elist2-Sem)
528 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
529 -- Contains the list of access types which may require specific treatment
530 -- when the nature of the type completion is completely known. An example
531 -- of such treatment is the generation of the associated_final_chain.
532
533 -- Actions (List1-Sem)
534 -- This field contains a sequence of actions that are associated with the
535 -- node holding the field. See the individual node types for details of
536 -- how this field is used, as well as the description of the specific use
537 -- for a particular node type.
538
539 -- Activation_Chain_Entity (Node3-Sem)
540 -- This is used in tree nodes representing task activators (blocks,
541 -- subprogram bodies, package declarations, and task bodies). It is
542 -- initially Empty, and then gets set to point to the entity for the
543 -- declared Activation_Chain variable when the first task is declared.
544 -- When tasks are declared in the corresponding declarative region this
545 -- entity is located by name (its name is always _Chain) and the declared
546 -- tasks are added to the chain. Note that N_Extended_Return_Statement
547 -- does not have this attribute, although it does have an activation
548 -- chain. This chain is used to store the tasks temporarily, and is not
549 -- used for activating them. On successful completion of the return
550 -- statement, the tasks are moved to the caller's chain, and the caller
551 -- activates them.
552
553 -- Acts_As_Spec (Flag4-Sem)
554 -- A flag set in the N_Subprogram_Body node for a subprogram body which
555 -- is acting as its own spec, except in the case of a library level
556 -- subprogram, in which case the flag is set on the parent compilation
557 -- unit node instead (see further description in spec of Lib package).
558 -- ??? Above note about Lib is dubious since lib.ads does not mention
559 -- Acts_As_Spec at all.
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 -- Address_Warning_Posted (Flag18-Sem)
571 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
572 -- posted a warning for the address clause regarding size or alignment
573 -- issues. Used to inhibit multiple redundant messages.
574
575 -- Aggregate_Bounds (Node3-Sem)
576 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
577 -- known at compile time, this field points to an N_Range node with those
578 -- bounds. Otherwise Empty.
579
580 -- All_Others (Flag11-Sem)
581 -- Present in an N_Others_Choice node. This flag is set for an others
582 -- exception where all exceptions are to be caught, even those that are
583 -- not normally handled (in particular the tasking abort signal). This
584 -- is used for translation of the at end handler into a normal exception
585 -- handler.
586
587 -- Aspect_Cancel (Flag11-Sem)
588 -- Processing of aspect specifications typically generates pragmas and
589 -- attribute definition clauses that are inserted into the tree after
590 -- the declaration node to get the desired aspect effect. In the case
591 -- of Boolean aspects that use "=> False" to cancel the effect of an
592 -- aspect (i.e. turn if off), the generated pragma has the Aspect_Cancel
593 -- flag set to indicate that the pragma operates in the opposite sense.
594
595 -- Aspect_Rep_Item (Node2-Sem)
596 -- Present in N_Aspect_Specification nodes. Points to the corresponding
597 -- pragma/attribute definition node used to process the aspect.
598
599 -- Assignment_OK (Flag15-Sem)
600 -- This flag is set in a subexpression node for an object, indicating
601 -- that the associated object can be modified, even if this would not
602 -- normally be permissible (either by direct assignment, or by being
603 -- passed as an out or in-out parameter). This is used by the expander
604 -- for a number of purposes, including initialization of constants and
605 -- limited type objects (such as tasks), setting discriminant fields,
606 -- setting tag values, etc. N_Object_Declaration nodes also have this
607 -- flag defined. Here it is used to indicate that an initialization
608 -- expression is valid, even where it would normally not be allowed
609 -- (e.g. where the type involved is limited).
610
611 -- Associated_Node (Node4-Sem)
612 -- Present in nodes that can denote an entity: identifiers, character
613 -- literals, operator symbols, expanded names, operator nodes, and
614 -- attribute reference nodes (all these nodes have an Entity field).
615 -- This field is also present in N_Aggregate, N_Selected_Component, and
616 -- N_Extension_Aggregate nodes. This field is used in generic processing
617 -- to create links between the generic template and the generic copy.
618 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
619 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
620 -- the normal function of Entity is not required at the point where the
621 -- Associated_Node is set. Note also, that in generic templates, this
622 -- means that the Entity field does not necessarily point to an Entity.
623 -- Since the back end is expected to ignore generic templates, this is
624 -- harmless.
625
626 -- At_End_Proc (Node1)
627 -- This field is present in an N_Handled_Sequence_Of_Statements node.
628 -- It contains an identifier reference for the cleanup procedure to be
629 -- called. See description of this node for further details.
630
631 -- Backwards_OK (Flag6-Sem)
632 -- A flag present in the N_Assignment_Statement node. It is used only
633 -- if the type being assigned is an array type, and is set if analysis
634 -- determines that it is definitely safe to do the copy backwards, i.e.
635 -- starting at the highest addressed element. This is the case if either
636 -- the operands do not overlap, or they may overlap, but if they do,
637 -- then the left operand is at a higher address than the right operand.
638 --
639 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
640 -- means that the front end could not determine that either direction is
641 -- definitely safe, and a runtime check may be required if the backend
642 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
643 -- set, it means that the front end can assure no overlap of operands.
644
645 -- Body_To_Inline (Node3-Sem)
646 -- present in subprogram declarations. Denotes analyzed but unexpanded
647 -- body of subprogram, to be used when inlining calls. Present when the
648 -- subprogram has an Inline pragma and inlining is enabled. If the
649 -- declaration is completed by a renaming_as_body, and the renamed en-
650 -- tity is a subprogram, the Body_To_Inline is the name of that entity,
651 -- which is used directly in later calls to the original subprogram.
652
653 -- Body_Required (Flag13-Sem)
654 -- A flag that appears in the N_Compilation_Unit node indicating that
655 -- the corresponding unit requires a body. For the package case, this
656 -- indicates that a completion is required. In Ada 95, if the flag is not
657 -- set for the package case, then a body may not be present. In Ada 83,
658 -- if the flag is not set for the package case, then body is optional.
659 -- For a subprogram declaration, the flag is set except in the case where
660 -- a pragma Import or Interface applies, in which case no body is
661 -- permitted (in Ada 83 or Ada 95).
662
663 -- By_Ref (Flag5-Sem)
664 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
665 -- this flag is set when the returned expression is already allocated on
666 -- the secondary stack and thus the result is passed by reference rather
667 -- than copied another time.
668
669 -- Check_Address_Alignment (Flag11-Sem)
670 -- A flag present in N_Attribute_Definition clause for a 'Address
671 -- attribute definition. This flag is set if a dynamic check should be
672 -- generated at the freeze point for the entity to which this address
673 -- clause applies. The reason that we need this flag is that we want to
674 -- check for range checks being suppressed at the point where the
675 -- attribute definition clause is given, rather than testing this at the
676 -- freeze point.
677
678 -- Coextensions (Elist4-Sem)
679 -- Present in allocators nodes. Points to list of allocators for the
680 -- access discriminants of the allocated object.
681
682 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
683 -- Present in N_Simple_Return_Statement nodes. True if this node was
684 -- constructed as part of the N_Extended_Return_Statement expansion.
685
686 -- Compile_Time_Known_Aggregate (Flag18-Sem)
687 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
688 -- evaluated at compile time without raising constraint error. Such
689 -- aggregates can be passed as is to Gigi without any expansion. See
690 -- Sem_Aggr for the specific conditions under which an aggregate has this
691 -- flag set. See also the flag Static_Processing_OK.
692
693 -- Componentwise_Assignment (Flag14-Sem)
694 -- Present in N_Assignment_Statement nodes. Set for a record assignment
695 -- where all that needs doing is to expand it into component-by-component
696 -- assignments. This is used internally for the case of tagged types with
697 -- rep clauses, where we need to avoid recursion (we don't want to try to
698 -- generate a call to the primitive operation, because this is the case
699 -- where we are compiling the primitive operation). Note that when we are
700 -- expanding component assignments in this case, we never assign the _tag
701 -- field, but we recursively assign components of the parent type.
702
703 -- Condition_Actions (List3-Sem)
704 -- This field appears in else-if nodes and in the iteration scheme node
705 -- for while loops. This field is only used during semantic processing to
706 -- temporarily hold actions inserted into the tree. In the tree passed
707 -- to gigi, the condition actions field is always set to No_List. For
708 -- details on how this field is used, see the routine Insert_Actions in
709 -- package Exp_Util, and also the expansion routines for the relevant
710 -- nodes.
711
712 -- Context_Pending (Flag16-Sem)
713 -- This field appears in Compilation_Unit nodes, to indicate that the
714 -- context of the unit is being compiled. Used to detect circularities
715 -- that are not otherwise detected by the loading mechanism. Such
716 -- circularities can occur in the presence of limited and non-limited
717 -- with_clauses that mention the same units.
718
719 -- Controlling_Argument (Node1-Sem)
720 -- This field is set in procedure and function call nodes if the call
721 -- is a dispatching call (it is Empty for a non-dispatching call). It
722 -- indicates the source of the call's controlling tag. For procedure
723 -- calls, the Controlling_Argument is one of the actuals. For function
724 -- that has a dispatching result, it is an entity in the context of the
725 -- call that can provide a tag, or else it is the tag of the root type
726 -- of the class. It can also specify a tag directly rather than being a
727 -- tagged object. The latter is needed by the implementations of AI-239
728 -- and AI-260.
729
730 -- Conversion_OK (Flag14-Sem)
731 -- A flag set on type conversion nodes to indicate that the conversion
732 -- is to be considered as being valid, even though it is the case that
733 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
734 -- Fixed_Value and Integer_Value, for internal conversions done for
735 -- fixed-point operations, and for certain conversions for calls to
736 -- initialization procedures. If Conversion_OK is set, then Etype must be
737 -- set (the analyzer assumes that Etype has been set). For the case of
738 -- fixed-point operands, it also indicates that the conversion is to be
739 -- direct conversion of the underlying integer result, with no regard to
740 -- the small operand.
741
742 -- Corresponding_Body (Node5-Sem)
743 -- This field is set in subprogram declarations, package declarations,
744 -- entry declarations of protected types, and in generic units. It
745 -- points to the defining entity for the corresponding body (NOT the
746 -- node for the body itself).
747
748 -- Corresponding_Formal_Spec (Node3-Sem)
749 -- This field is set in subprogram renaming declarations, where it points
750 -- to the defining entity for a formal subprogram in the case where the
751 -- renaming corresponds to a generic formal subprogram association in an
752 -- instantiation. The field is Empty if the renaming does not correspond
753 -- to such a formal association.
754
755 -- Corresponding_Generic_Association (Node5-Sem)
756 -- This field is defined for object declarations and object renaming
757 -- declarations. It is set for the declarations within an instance that
758 -- map generic formals to their actuals. If set, the field points to
759 -- a generic_association which is the original parent of the expression
760 -- or name appearing in the declaration. This simplifies ASIS queries.
761
762 -- Corresponding_Integer_Value (Uint4-Sem)
763 -- This field is set in real literals of fixed-point types (it is not
764 -- used for floating-point types). It contains the integer value used
765 -- to represent the fixed-point value. It is also set on the universal
766 -- real literals used to represent bounds of fixed-point base types
767 -- and their first named subtypes.
768
769 -- Corresponding_Spec (Node5-Sem)
770 -- This field is set in subprogram, package, task, and protected body
771 -- nodes, where it points to the defining entity in the corresponding
772 -- spec. The attribute is also set in N_With_Clause nodes where it points
773 -- to the defining entity for the with'ed spec, and in a subprogram
774 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
775 -- if there is no corresponding spec, as in the case of a subprogram body
776 -- that serves as its own spec.
777
778 -- Corresponding_Stub (Node3-Sem)
779 -- This field is present in an N_Subunit node. It holds the node in
780 -- the parent unit that is the stub declaration for the subunit. It is
781 -- set when analysis of the stub forces loading of the proper body. If
782 -- expansion of the proper body creates new declarative nodes, they are
783 -- inserted at the point of the corresponding_stub.
784
785 -- Dcheck_Function (Node5-Sem)
786 -- This field is present in an N_Variant node, It references the entity
787 -- for the discriminant checking function for the variant.
788
789 -- Debug_Statement (Node3)
790 -- This field is present in an N_Pragma node. It is used only for a Debug
791 -- pragma. The parameter is of the form of an expression, as required by
792 -- the pragma syntax, but is actually a procedure call. To simplify
793 -- semantic processing, the parser creates a copy of the argument
794 -- rearranged into a procedure call statement and places it in the
795 -- Debug_Statement field. Note that this field is considered syntactic
796 -- field, since it is created by the parser.
797
798 -- Default_Expression (Node5-Sem)
799 -- This field is Empty if there is no default expression. If there is a
800 -- simple default expression (one with no side effects), then this field
801 -- simply contains a copy of the Expression field (both point to the tree
802 -- for the default expression). Default_Expression is used for
803 -- conformance checking.
804
805 -- Default_Storage_Pool (Node3-Sem)
806 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
807 -- copy of Opt.Default_Pool at the end of the compilation unit. See
808 -- package Opt for details. This is used for inheriting the
809 -- Default_Storage_Pool in child units.
810
811 -- Discr_Check_Funcs_Built (Flag11-Sem)
812 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
813 -- discriminant checking functions are constructed. The purpose is to
814 -- avoid attempting to set these functions more than once.
815
816 -- Do_Accessibility_Check (Flag13-Sem)
817 -- This flag is set on N_Parameter_Specification nodes to indicate
818 -- that an accessibility check is required for the parameter. It is
819 -- not yet decided who takes care of this check (TBD ???).
820
821 -- Do_Discriminant_Check (Flag13-Sem)
822 -- This flag is set on N_Selected_Component nodes to indicate that a
823 -- discriminant check is required using the discriminant check routine
824 -- associated with the selector. The actual check is generated by the
825 -- expander when processing selected components.
826
827 -- Do_Division_Check (Flag13-Sem)
828 -- This flag is set on a division operator (/ mod rem) to indicate
829 -- that a zero divide check is required. The actual check is dealt
830 -- with by the backend (all the front end does is to set the flag).
831
832 -- Do_Length_Check (Flag4-Sem)
833 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
834 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
835 -- is required. It is not determined who deals with this flag (???).
836
837 -- Do_Overflow_Check (Flag17-Sem)
838 -- This flag is set on an operator where an overflow check is required on
839 -- the operation. The actual check is dealt with by the backend (all the
840 -- front end does is to set the flag). The other cases where this flag is
841 -- used is on a Type_Conversion node and for attribute reference nodes.
842 -- For a type conversion, it means that the conversion is from one base
843 -- type to another, and the value may not fit in the target base type.
844 -- See also the description of Do_Range_Check for this case. The only
845 -- attribute references which use this flag are Pred and Succ, where it
846 -- means that the result should be checked for going outside the base
847 -- range. Note that this flag is not set for modular types.
848
849 -- Do_Range_Check (Flag9-Sem)
850 -- This flag is set on an expression which appears in a context where a
851 -- range check is required. The target type is clear from the context.
852 -- The contexts in which this flag can appear are the following:
853
854 -- Right side of an assignment. In this case the target type is
855 -- taken from the left side of the assignment, which is referenced
856 -- by the Name of the N_Assignment_Statement node.
857
858 -- Subscript expressions in an indexed component. In this case the
859 -- target type is determined from the type of the array, which is
860 -- referenced by the Prefix of the N_Indexed_Component node.
861
862 -- Argument expression for a parameter, appearing either directly in
863 -- the Parameter_Associations list of a call or as the Expression of an
864 -- N_Parameter_Association node that appears in this list. In either
865 -- case, the check is against the type of the formal. Note that the
866 -- flag is relevant only in IN and IN OUT parameters, and will be
867 -- ignored for OUT parameters, where no check is required in the call,
868 -- and if a check is required on the return, it is generated explicitly
869 -- with a type conversion.
870
871 -- Initialization expression for the initial value in an object
872 -- declaration. In this case the Do_Range_Check flag is set on
873 -- the initialization expression, and the check is against the
874 -- range of the type of the object being declared.
875
876 -- The expression of a type conversion. In this case the range check is
877 -- against the target type of the conversion. See also the use of
878 -- Do_Overflow_Check on a type conversion. The distinction is that the
879 -- overflow check protects against a value that is outside the range of
880 -- the target base type, whereas a range check checks that the
881 -- resulting value (which is a value of the base type of the target
882 -- type), satisfies the range constraint of the target type.
883
884 -- Note: when a range check is required in contexts other than those
885 -- listed above (e.g. in a return statement), an additional type
886 -- conversion node is introduced to represent the required check.
887
888 -- Do_Storage_Check (Flag17-Sem)
889 -- This flag is set in an N_Allocator node to indicate that a storage
890 -- check is required for the allocation, or in an N_Subprogram_Body node
891 -- to indicate that a stack check is required in the subprogram prolog.
892 -- The N_Allocator case is handled by the routine that expands the call
893 -- to the runtime routine. The N_Subprogram_Body case is handled by the
894 -- backend, and all the semantics does is set the flag.
895
896 -- Do_Tag_Check (Flag13-Sem)
897 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
898 -- N_Procedure_Call_Statement, N_Type_Conversion,
899 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
900 -- node to indicate that the tag check can be suppressed. It is not
901 -- yet decided how this flag is used (TBD ???).
902
903 -- Elaborate_Present (Flag4-Sem)
904 -- This flag is set in the N_With_Clause node to indicate that pragma
905 -- Elaborate pragma appears for the with'ed units.
906
907 -- Elaborate_All_Desirable (Flag9-Sem)
908 -- This flag is set in the N_With_Clause mode to indicate that the static
909 -- elaboration processing has determined that an Elaborate_All pragma is
910 -- desirable for correct elaboration for this unit.
911
912 -- Elaborate_All_Present (Flag14-Sem)
913 -- This flag is set in the N_With_Clause node to indicate that a
914 -- pragma Elaborate_All pragma appears for the with'ed units.
915
916 -- Elaborate_Desirable (Flag11-Sem)
917 -- This flag is set in the N_With_Clause mode to indicate that the static
918 -- elaboration processing has determined that an Elaborate pragma is
919 -- desirable for correct elaboration for this unit.
920
921 -- Elaboration_Boolean (Node2-Sem)
922 -- This field is present in function and procedure specification nodes.
923 -- If set, it points to the entity for a Boolean flag that must be tested
924 -- for certain calls to check for access before elaboration. See body of
925 -- Sem_Elab for further details. This field is Empty if no elaboration
926 -- boolean is required.
927
928 -- Else_Actions (List3-Sem)
929 -- This field is present in conditional expression nodes. During code
930 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
931 -- actions at an appropriate place in the tree to get elaborated at the
932 -- right time. For conditional expressions, we have to be sure that the
933 -- actions for the Else branch are only elaborated if the condition is
934 -- False. The Else_Actions field is used as a temporary parking place for
935 -- these actions. The final tree is always rewritten to eliminate the
936 -- need for this field, so in the tree passed to Gigi, this field is
937 -- always set to No_List.
938
939 -- Enclosing_Variant (Node2-Sem)
940 -- This field is present in the N_Variant node and identifies the Node_Id
941 -- corresponding to the immediately enclosing variant when the variant is
942 -- nested, and N_Empty otherwise. Set during semantic processing of the
943 -- variant part of a record type.
944
945 -- Entity (Node4-Sem)
946 -- Appears in all direct names (identifiers, character literals, and
947 -- operator symbols), as well as expanded names, and attributes that
948 -- denote entities, such as 'Class. Points to entity for corresponding
949 -- defining occurrence. Set after name resolution. For identifiers in a
950 -- WITH list, the corresponding defining occurrence is in a separately
951 -- compiled file, and Entity must be set by the library Load procedure.
952 --
953 -- Note: During name resolution, the value in Entity may be temporarily
954 -- incorrect (e.g. during overload resolution, Entity is initially set to
955 -- the first possible correct interpretation, and then later modified if
956 -- necessary to contain the correct value after resolution).
957 --
958 -- Note: This field overlaps Associated_Node, which is used during
959 -- generic processing (see Sem_Ch12 for details). Note also that in
960 -- generic templates, this means that the Entity field does not always
961 -- point to an Entity. Since the back end is expected to ignore generic
962 -- templates, this is harmless.
963 --
964 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
965 -- It is used only for stream attributes definition clauses. In this
966 -- case, it denotes a (possibly dummy) subprogram entity that is declared
967 -- conceptually at the point of the clause. Thus the visibility of the
968 -- attribute definition clause (in the sense of 8.3(23) as amended by
969 -- AI-195) can be checked by testing the visibility of that subprogram.
970 --
971 -- Note: Normally the Entity field of an identifier points to the entity
972 -- for the corresponding defining identifier, and hence the Chars field
973 -- of an identifier will match the Chars field of the entity. However,
974 -- there is no requirement that these match, and there are obscure cases
975 -- of generated code where they do not match.
976
977 -- Entity_Or_Associated_Node (Node4-Sem)
978 -- A synonym for both Entity and Associated_Node. Used by convention in
979 -- the code when referencing this field in cases where it is not known
980 -- whether the field contains an Entity or an Associated_Node.
981
982 -- Etype (Node5-Sem)
983 -- Appears in all expression nodes, all direct names, and all entities.
984 -- Points to the entity for the related type. Set after type resolution.
985 -- Normally this is the actual subtype of the expression. However, in
986 -- certain contexts such as the right side of an assignment, subscripts,
987 -- arguments to calls, returned value in a function, initial value etc.
988 -- it is the desired target type. In the event that this is different
989 -- from the actual type, the Do_Range_Check flag will be set if a range
990 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
991 -- points to an essentially arbitrary choice from the possible set of
992 -- types.
993
994 -- Exception_Junk (Flag8-Sem)
995 -- This flag is set in a various nodes appearing in a statement sequence
996 -- to indicate that the corresponding node is an artifact of the
997 -- generated code for exception handling, and should be ignored when
998 -- analyzing the control flow of the relevant sequence of statements
999 -- (e.g. to check that it does not end with a bad return statement).
1000
1001 -- Exception_Label (Node5-Sem)
1002 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1003 -- to be used for transforming the corresponding exception into a goto,
1004 -- or contains Empty, if this exception is not to be transformed. Also
1005 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1006 -- that there may be a local raise for the handler, so that expansion
1007 -- to allow a goto is required (and this field contains the label for
1008 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1009
1010 -- Expansion_Delayed (Flag11-Sem)
1011 -- Set on aggregates and extension aggregates that need a top-down rather
1012 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1013 -- up. For nested aggregates the expansion is delayed until the enclosing
1014 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1015 -- delay it we set this flag. This is done to avoid creating a temporary
1016 -- for each level of a nested aggregates, and also to prevent the
1017 -- premature generation of constraint checks. This is also a requirement
1018 -- if we want to generate the proper attachment to the internal
1019 -- finalization lists (for record with controlled components). Top down
1020 -- expansion of aggregates is also used for in-place array aggregate
1021 -- assignment or initialization. When the full context is known, the
1022 -- target of the assignment or initialization is used to generate the
1023 -- left-hand side of individual assignment to each sub-component.
1024
1025 -- First_Inlined_Subprogram (Node3-Sem)
1026 -- Present in the N_Compilation_Unit node for the main program. Points
1027 -- to a chain of entities for subprograms that are to be inlined. The
1028 -- Next_Inlined_Subprogram field of these entities is used as a link
1029 -- pointer with Empty marking the end of the list. This field is Empty
1030 -- if there are no inlined subprograms or inlining is not active.
1031
1032 -- First_Named_Actual (Node4-Sem)
1033 -- Present in procedure call statement and function call nodes, and also
1034 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1035 -- named parameter where parameters are ordered by declaration order (as
1036 -- opposed to the actual order in the call which may be different due to
1037 -- named associations). Note: this field points to the explicit actual
1038 -- parameter itself, not the N_Parameter_Association node (its parent).
1039
1040 -- First_Real_Statement (Node2-Sem)
1041 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1042 -- Empty. Used only when declarations are moved into the statement part
1043 -- of a construct as a result of wrapping an AT END handler that is
1044 -- required to cover the declarations. In this case, this field is used
1045 -- to remember the location in the statements list of the first real
1046 -- statement, i.e. the statement that used to be first in the statement
1047 -- list before the declarations were prepended.
1048
1049 -- First_Subtype_Link (Node5-Sem)
1050 -- Present in N_Freeze_Entity node for an anonymous base type that is
1051 -- implicitly created by the declaration of a first subtype. It points
1052 -- to the entity for the first subtype.
1053
1054 -- Float_Truncate (Flag11-Sem)
1055 -- A flag present in type conversion nodes. This is used for float to
1056 -- integer conversions where truncation is required rather than rounding.
1057 -- Note that Gigi does not handle type conversions from real to integer
1058 -- with rounding (see Expand_N_Type_Conversion).
1059
1060 -- Forwards_OK (Flag5-Sem)
1061 -- A flag present in the N_Assignment_Statement node. It is used only
1062 -- if the type being assigned is an array type, and is set if analysis
1063 -- determines that it is definitely safe to do the copy forwards, i.e.
1064 -- starting at the lowest addressed element. This is the case if either
1065 -- the operands do not overlap, or they may overlap, but if they do,
1066 -- then the left operand is at a lower address than the right operand.
1067 --
1068 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1069 -- means that the front end could not determine that either direction is
1070 -- definitely safe, and a runtime check may be required if the backend
1071 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1072 -- set, it means that the front end can assure no overlap of operands.
1073
1074 -- From_Aspect_Specification (Flag13-Sem)
1075 -- Processing of aspect specifications typically results in insertion in
1076 -- the tree of corresponding pragma or attribute definition clause nodes.
1077 -- These generated nodes have the From_Aspect_Specification flag set to
1078 -- indicate that they came from aspect specifications originally.
1079
1080 -- From_At_End (Flag4-Sem)
1081 -- This flag is set on an N_Raise_Statement node if it corresponds to
1082 -- the reraise statement generated as the last statement of an AT END
1083 -- handler when SJLJ exception handling is active. It is used to stop
1084 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1085 -- because if the restriction is set, the reraise is not generated.
1086
1087 -- From_At_Mod (Flag4-Sem)
1088 -- This flag is set on the attribute definition clause node that is
1089 -- generated by a transformation of an at mod phrase in a record
1090 -- representation clause. This is used to give slightly different (Ada 83
1091 -- compatible) semantics to such a clause, namely it is used to specify a
1092 -- minimum acceptable alignment for the base type and all subtypes. In
1093 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1094 -- must be a multiple of the given value, and the representation clause
1095 -- is considered to be type specific instead of subtype specific.
1096
1097 -- From_Default (Flag6-Sem)
1098 -- This flag is set on the subprogram renaming declaration created in an
1099 -- instance for a formal subprogram, when the formal is declared with a
1100 -- box, and there is no explicit actual. If the flag is present, the
1101 -- declaration is treated as an implicit reference to the formal in the
1102 -- ali file.
1103
1104 -- From_Dynamic_Predicate (Flag7-Sem)
1105 -- Set for generated pragma Predicate node if this is generated by a
1106 -- Dynamic_Predicate aspect.
1107
1108 -- From_Static_Predicate (Flag8-Sem)
1109 -- Set for generated pragma Predicate node if this is generated by a
1110 -- Static_Predicate aspect.
1111
1112 -- Generic_Parent (Node5-Sem)
1113 -- Generic_Parent is defined on declaration nodes that are instances. The
1114 -- value of Generic_Parent is the generic entity from which the instance
1115 -- is obtained. Generic_Parent is also defined for the renaming
1116 -- declarations and object declarations created for the actuals in an
1117 -- instantiation. The generic parent of such a declaration is the
1118 -- corresponding generic association in the Instantiation node.
1119
1120 -- Generic_Parent_Type (Node4-Sem)
1121 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1122 -- actuals of formal private and derived types. Within the instance, the
1123 -- operations on the actual are those inherited from the parent. For a
1124 -- formal private type, the parent type is the generic type itself. The
1125 -- Generic_Parent_Type is also used in an instance to determine whether a
1126 -- private operation overrides an inherited one.
1127
1128 -- Handler_List_Entry (Node2-Sem)
1129 -- This field is present in N_Object_Declaration nodes. It is set only
1130 -- for the Handler_Record entry generated for an exception in zero cost
1131 -- exception handling mode. It references the corresponding item in the
1132 -- handler list, and is used to delete this entry if the corresponding
1133 -- handler is deleted during optimization. For further details on why
1134 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1135
1136 -- Has_Local_Raise (Flag8-Sem)
1137 -- Present in exception handler nodes. Set if the handler can be entered
1138 -- via a local raise that gets transformed to a goto statement. This will
1139 -- always be set if Local_Raise_Statements is non-empty, but can also be
1140 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1141 -- nodes requiring generation of back end checks.
1142
1143 -- Has_No_Elaboration_Code (Flag17-Sem)
1144 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1145 -- or not elaboration code is present for this unit. It is initially set
1146 -- true for subprogram specs and bodies and for all generic units and
1147 -- false for non-generic package specs and bodies. Gigi may set the flag
1148 -- in the non-generic package case if it determines that no elaboration
1149 -- code is generated. Note that this flag is not related to the
1150 -- Is_Preelaborated status, there can be preelaborated packages that
1151 -- generate elaboration code, and non-preelaborated packages which do
1152 -- not generate elaboration code.
1153
1154 -- Has_Pragma_CPU (Flag14-Sem)
1155 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1156 -- flag the presence of a CPU pragma in the declaration sequence (public
1157 -- or private in the task case).
1158
1159 -- Has_Pragma_Suppress_All (Flag14-Sem)
1160 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1161 -- pragma appears anywhere in the unit. This accommodates the rather
1162 -- strange placement rules of other compilers (DEC permits it at the
1163 -- end of a unit, and Rational allows it as a program unit pragma). We
1164 -- allow it anywhere at all, and consider it equivalent to a pragma
1165 -- Suppress (All_Checks) appearing at the start of the configuration
1166 -- pragmas for the unit.
1167
1168 -- Has_Pragma_Priority (Flag6-Sem)
1169 -- A flag present in N_Subprogram_Body, N_Task_Definition and
1170 -- N_Protected_Definition nodes to flag the presence of either a Priority
1171 -- or Interrupt_Priority pragma in the declaration sequence (public or
1172 -- private in the task and protected cases)
1173
1174 -- Has_Private_View (Flag11-Sem)
1175 -- A flag present in generic nodes that have an entity, to indicate that
1176 -- the node has a private type. Used to exchange private and full
1177 -- declarations if the visibility at instantiation is different from the
1178 -- visibility at generic definition.
1179
1180 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1181 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1182 -- flag the presence of a pragma Relative_Deadline.
1183
1184 -- Has_Self_Reference (Flag13-Sem)
1185 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1186 -- of the expressions contains an access attribute reference to the
1187 -- enclosing type. Such a self-reference can only appear in default-
1188 -- initialized aggregate for a record type.
1189
1190 -- Has_Storage_Size_Pragma (Flag5-Sem)
1191 -- A flag present in an N_Task_Definition node to flag the presence of a
1192 -- Storage_Size pragma.
1193
1194 -- Has_Task_Info_Pragma (Flag7-Sem)
1195 -- A flag present in an N_Task_Definition node to flag the presence of a
1196 -- Task_Info pragma. Used to detect duplicate pragmas.
1197
1198 -- Has_Task_Name_Pragma (Flag8-Sem)
1199 -- A flag present in N_Task_Definition nodes to flag the presence of a
1200 -- Task_Name pragma in the declaration sequence for the task.
1201
1202 -- Has_Wide_Character (Flag11-Sem)
1203 -- Present in string literals, set if any wide character (i.e. character
1204 -- code outside the Character range but within Wide_Character range)
1205 -- appears in the string. Used to implement pragma preference rules.
1206
1207 -- Has_Wide_Wide_Character (Flag13-Sem)
1208 -- Present in string literals, set if any wide character (i.e. character
1209 -- code outside the Wide_Character range) appears in the string. Used to
1210 -- implement pragma preference rules.
1211
1212 -- Hidden_By_Use_Clause (Elist4-Sem)
1213 -- An entity list present in use clauses that appear within
1214 -- instantiations. For the resolution of local entities, entities
1215 -- introduced by these use clauses have priority over global ones, and
1216 -- outer entities must be explicitly hidden/restored on exit.
1217
1218 -- Implicit_With (Flag16-Sem)
1219 -- This flag is set in the N_With_Clause node that is implicitly
1220 -- generated for runtime units that are loaded by the expander, and also
1221 -- for package System, if it is loaded implicitly by a use of the
1222 -- 'Address or 'Tag attribute. ???There are other implicit with clauses
1223 -- as well.
1224
1225 -- Import_Interface_Present (Flag16-Sem)
1226 -- This flag is set in an Interface or Import pragma if a matching
1227 -- pragma of the other kind is also present. This is used to avoid
1228 -- generating some unwanted error messages.
1229
1230 -- Includes_Infinities (Flag11-Sem)
1231 -- This flag is present in N_Range nodes. It is set for the range of
1232 -- unconstrained float types defined in Standard, which include not only
1233 -- the given range of values, but also legitimately can include infinite
1234 -- values. This flag is false for any float type for which an explicit
1235 -- range is given by the programmer, even if that range is identical to
1236 -- the range for Float.
1237
1238 -- Inherited_Discriminant (Flag13-Sem)
1239 -- This flag is present in N_Component_Association nodes. It indicates
1240 -- that a given component association in an extension aggregate is the
1241 -- value obtained from a constraint on an ancestor. Used to prevent
1242 -- double expansion when the aggregate has expansion delayed.
1243
1244 -- Instance_Spec (Node5-Sem)
1245 -- This field is present in generic instantiation nodes, and also in
1246 -- formal package declaration nodes (formal package declarations are
1247 -- treated in a manner very similar to package instantiations). It points
1248 -- to the node for the spec of the instance, inserted as part of the
1249 -- semantic processing for instantiations in Sem_Ch12.
1250
1251 -- Is_Accessibility_Actual (Flag12-Sem)
1252 -- Present in N_Parameter_Association nodes. True if the parameter is
1253 -- an extra actual that carries the accessibility level of the actual
1254 -- for an access parameter, in a function that dispatches on result and
1255 -- is called in a dispatching context. Used to prevent a formal/actual
1256 -- mismatch when the call is rewritten as a dispatching call.
1257
1258 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1259 -- A flag set in a Block_Statement node to indicate that it is the
1260 -- expansion of an asynchronous entry call. Such a block needs cleanup
1261 -- handler to assure that the call is cancelled.
1262
1263 -- Is_Boolean_Aspect (Flag16-Sem)
1264 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1265 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1266
1267 -- Is_Component_Left_Opnd (Flag13-Sem)
1268 -- Is_Component_Right_Opnd (Flag14-Sem)
1269 -- Present in concatenation nodes, to indicate that the corresponding
1270 -- operand is of the component type of the result. Used in resolving
1271 -- concatenation nodes in instances.
1272
1273 -- Is_Delayed_Aspect (Flag14-Sem)
1274 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1275 -- come from aspect specifications, where the evaluation of the aspect
1276 -- must be delayed to the freeze point. This flag is also set True in
1277 -- the corresponding N_Aspect_Specification node.
1278
1279 -- Is_Controlling_Actual (Flag16-Sem)
1280 -- This flag is set on in an expression that is a controlling argument in
1281 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1282 -- details of its use.
1283
1284 -- Is_Dynamic_Coextension (Flag18-Sem)
1285 -- Present in allocator nodes, to indicate that this is an allocator
1286 -- for an access discriminant of a dynamically allocated object. The
1287 -- coextension must be deallocated and finalized at the same time as
1288 -- the enclosing object.
1289
1290 -- Is_Entry_Barrier_Function (Flag8-Sem)
1291 -- This flag is set in an N_Subprogram_Body node which is the expansion
1292 -- of an entry barrier from a protected entry body. It is used for the
1293 -- circuitry checking for incorrect use of Current_Task.
1294
1295 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1296 -- This flag is set in an N_Function_Call node to indicate that the extra
1297 -- actuals to support a build-in-place style of call have been added to
1298 -- the call.
1299
1300 -- Is_In_Discriminant_Check (Flag11-Sem)
1301 -- This flag is present in a selected component, and is used to indicate
1302 -- that the reference occurs within a discriminant check. The
1303 -- significance is that optimizations based on assuming that the
1304 -- discriminant check has a correct value cannot be performed in this
1305 -- case (or the discriminant check may be optimized away!)
1306
1307 -- Is_Machine_Number (Flag11-Sem)
1308 -- This flag is set in an N_Real_Literal node to indicate that the value
1309 -- is a machine number. This avoids some unnecessary cases of converting
1310 -- real literals to machine numbers.
1311
1312 -- Is_Null_Loop (Flag16-Sem)
1313 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1314 -- can be determined to be null at compile time. This is used to remove
1315 -- the loop entirely at expansion time.
1316
1317 -- Is_Overloaded (Flag5-Sem)
1318 -- A flag present in all expression nodes. Used temporarily during
1319 -- overloading determination. The setting of this flag is not relevant
1320 -- once overloading analysis is complete.
1321
1322 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1323 -- A flag present only in N_Op_Expon nodes. It is set when the
1324 -- exponentiation is of the form 2 ** N, where the type of N is an
1325 -- unsigned integral subtype whose size does not exceed the size of
1326 -- Standard_Integer (i.e. a type that can be safely converted to
1327 -- Natural), and the exponentiation appears as the right operand of an
1328 -- integer multiplication or an integer division where the dividend is
1329 -- unsigned. It is also required that overflow checking is off for both
1330 -- the exponentiation and the multiply/divide node. If this set of
1331 -- conditions holds, and the flag is set, then the division or
1332 -- multiplication can be (and is) converted to a shift.
1333
1334 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1335 -- A flag set in a Subprogram_Body block to indicate that it is the
1336 -- implementation of a protected subprogram. Such a body needs cleanup
1337 -- handler to make sure that the associated protected object is unlocked
1338 -- when the subprogram completes.
1339
1340 -- Is_Static_Coextension (Flag14-Sem)
1341 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1342 -- of an object allocated on the stack rather than the heap.
1343
1344 -- Is_Static_Expression (Flag6-Sem)
1345 -- Indicates that an expression is a static expression (RM 4.9). See spec
1346 -- of package Sem_Eval for full details on the use of this flag.
1347
1348 -- Is_Subprogram_Descriptor (Flag16-Sem)
1349 -- Present in N_Object_Declaration, and set only for the object
1350 -- declaration generated for a subprogram descriptor in fast exception
1351 -- mode. See Exp_Ch11 for details of use.
1352
1353 -- Is_Task_Allocation_Block (Flag6-Sem)
1354 -- A flag set in a Block_Statement node to indicate that it is the
1355 -- expansion of a task allocator, or the allocator of an object
1356 -- containing tasks. Such a block requires a cleanup handler to call
1357 -- Expunge_Unactivated_Tasks to complete any tasks that have been
1358 -- allocated but not activated when the allocator completes abnormally.
1359
1360 -- Is_Task_Master (Flag5-Sem)
1361 -- A flag set in a Subprogram_Body, Block_Statement or Task_Body node to
1362 -- indicate that the construct is a task master (i.e. has declared tasks
1363 -- or declares an access to a task type).
1364
1365 -- Itype (Node1-Sem)
1366 -- Used in N_Itype_Reference node to reference an itype for which it is
1367 -- important to ensure that it is defined. See description of this node
1368 -- for further details.
1369
1370 -- Kill_Range_Check (Flag11-Sem)
1371 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
1372 -- result should not be subjected to range checks. This is used for the
1373 -- implementation of Normalize_Scalars.
1374
1375 -- Label_Construct (Node2-Sem)
1376 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
1377 -- N_Block_Statement or N_Loop_Statement node to which the label
1378 -- declaration applies. This is not currently used in the compiler
1379 -- itself, but it is useful in the implementation of ASIS queries.
1380 -- This field is left empty for the special labels generated as part
1381 -- of expanding raise statements with a local exception handler.
1382
1383 -- Library_Unit (Node4-Sem)
1384 -- In a stub node, Library_Unit points to the compilation unit node of
1385 -- the corresponding subunit.
1386 --
1387 -- In a with clause node, Library_Unit points to the spec of the with'ed
1388 -- unit.
1389 --
1390 -- In a compilation unit node, the usage depends on the unit type:
1391 --
1392 -- For a library unit body, Library_Unit points to the compilation unit
1393 -- node of the corresponding spec, unless it's a subprogram body with
1394 -- Acts_As_Spec set, in which case it points to itself.
1395 --
1396 -- For a spec, Library_Unit points to the compilation unit node of the
1397 -- corresponding body, if present. The body will be present if the spec
1398 -- is or contains generics that we needed to instantiate. Similarly, the
1399 -- body will be present if we needed it for inlining purposes. Thus, if
1400 -- we have a spec/body pair, both of which are present, they point to
1401 -- each other via Library_Unit.
1402 --
1403 -- For a subunit, Library_Unit points to the compilation unit node of
1404 -- the parent body.
1405 --
1406 -- Note that this field is not used to hold the parent pointer for child
1407 -- unit (which might in any case need to use it for some other purpose as
1408 -- described above). Instead for a child unit, implicit with's are
1409 -- generated for all parents.
1410
1411 -- Local_Raise_Statements (Elist1)
1412 -- This field is present in exception handler nodes. It is set to
1413 -- No_Elist in the normal case. If there is at least one raise statement
1414 -- which can potentially be handled as a local raise, then this field
1415 -- points to a list of raise nodes, which are calls to a routine to raise
1416 -- an exception. These are raise nodes which can be optimized into gotos
1417 -- if the handler turns out to meet the conditions which permit this
1418 -- transformation. Note that this does NOT include instances of the
1419 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
1420 -- handled by the back end (using the N_Push/N_Pop mechanism).
1421
1422 -- Loop_Actions (List2-Sem)
1423 -- A list present in Component_Association nodes in array aggregates.
1424 -- Used to collect actions that must be executed within the loop because
1425 -- they may need to be evaluated anew each time through.
1426
1427 -- Limited_View_Installed (Flag18-Sem)
1428 -- Present in With_Clauses and in package specifications. If set on
1429 -- with_clause, it indicates that this clause has created the current
1430 -- limited view of the designated package. On a package specification, it
1431 -- indicates that the limited view has already been created because the
1432 -- package is mentioned in a limited_with_clause in the closure of the
1433 -- unit being compiled.
1434
1435 -- Local_Raise_Not_OK (Flag7-Sem)
1436 -- Present in N_Exception_Handler nodes. Set if the handler contains
1437 -- a construct (reraise statement, or call to subprogram in package
1438 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
1439 -- for a local raise (one that could otherwise be converted to a goto).
1440
1441 -- Must_Be_Byte_Aligned (Flag14-Sem)
1442 -- This flag is present in N_Attribute_Reference nodes. It can be set
1443 -- only for the Address and Unrestricted_Access attributes. If set it
1444 -- means that the object for which the address/access is given must be on
1445 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
1446 -- of the object is to be made before taking the address (this copy is in
1447 -- the current scope on the stack frame). This is used for certain cases
1448 -- of code generated by the expander that passes parameters by address.
1449 --
1450 -- The reason the copy is not made by the front end is that the back end
1451 -- has more information about type layout and may be able to (but is not
1452 -- guaranteed to) prevent making unnecessary copies.
1453
1454 -- Must_Not_Freeze (Flag8-Sem)
1455 -- A flag present in all expression nodes. Normally expressions cause
1456 -- freezing as described in the RM. If this flag is set, then this is
1457 -- inhibited. This is used by the analyzer and expander to label nodes
1458 -- that are created by semantic analysis or expansion and which must not
1459 -- cause freezing even though they normally would. This flag is also
1460 -- present in an N_Subtype_Indication node, since we also use these in
1461 -- calls to Freeze_Expression.
1462
1463 -- Next_Entity (Node2-Sem)
1464 -- Present in defining identifiers, defining character literals and
1465 -- defining operator symbols (i.e. in all entities). The entities of a
1466 -- scope are chained, and this field is used as the forward pointer for
1467 -- this list. See Einfo for further details.
1468
1469 -- Next_Exit_Statement (Node3-Sem)
1470 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
1471 -- chained (in reverse order of appearance) from the First_Exit_Statement
1472 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
1473 -- the next entry on this chain (Empty = end of list).
1474
1475 -- Next_Implicit_With (Node3-Sem)
1476 -- Present in N_With_Clause. Part of a chain of with_clauses generated
1477 -- in rtsfind to indicate implicit dependencies on predefined units. Used
1478 -- to prevent multiple with_clauses for the same unit in a given context.
1479 -- A postorder traversal of the tree whose nodes are units and whose
1480 -- links are with_clauses defines the order in which Inspector must
1481 -- examine a compiled unit and its full context. This ordering ensures
1482 -- that any subprogram call is examined after the subprogram declaration
1483 -- has been seen.
1484
1485 -- Next_Named_Actual (Node4-Sem)
1486 -- Present in parameter association node. Set during semantic analysis to
1487 -- point to the next named parameter, where parameters are ordered by
1488 -- declaration order (as opposed to the actual order in the call, which
1489 -- may be different due to named associations). Not that this field
1490 -- points to the explicit actual parameter itself, not to the
1491 -- N_Parameter_Association node (its parent).
1492
1493 -- Next_Pragma (Node1-Sem)
1494 -- Present in N_Pragma nodes. Used to create a linked list of pragma
1495 -- nodes. Currently used for two purposes:
1496 --
1497 -- Create a list of linked Check_Policy pragmas. The head of this list
1498 -- is stored in Opt.Check_Policy_List (which has further details).
1499 --
1500 -- Used by processing for Pre/Postcondition pragmas to store a list of
1501 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
1502 -- details).
1503
1504 -- Next_Rep_Item (Node5-Sem)
1505 -- Present in pragma nodes, attribute definition nodes, enumeration rep
1506 -- clauses, record rep clauses, aspect specification nodes. Used to link
1507 -- representation items that apply to an entity. See full description of
1508 -- First_Rep_Item field in Einfo for further details.
1509
1510 -- Next_Use_Clause (Node3-Sem)
1511 -- While use clauses are active during semantic processing, they are
1512 -- chained from the scope stack entry, using Next_Use_Clause as a link
1513 -- pointer, with Empty marking the end of the list. The head pointer is
1514 -- in the scope stack entry (First_Use_Clause). At the end of semantic
1515 -- processing (i.e. when Gigi sees the tree, the contents of this field
1516 -- is undefined and should not be read).
1517
1518 -- No_Ctrl_Actions (Flag7-Sem)
1519 -- Present in N_Assignment_Statement to indicate that no finalize nor
1520 -- adjust should take place on this assignment even though the rhs is
1521 -- controlled. This is used in init procs and aggregate expansions where
1522 -- the generated assignments are more initialisations than real
1523 -- assignments.
1524
1525 -- No_Elaboration_Check (Flag14-Sem)
1526 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
1527 -- that no elaboration check is needed on the call, because it appears in
1528 -- the context of a local Suppress pragma. This is used on calls within
1529 -- task bodies, where the actual elaboration checks are applied after
1530 -- analysis, when the local scope stack is not present.
1531
1532 -- No_Entities_Ref_In_Spec (Flag8-Sem)
1533 -- Present in N_With_Clause nodes. Set if the with clause is on the
1534 -- package or subprogram spec where the main unit is the corresponding
1535 -- body, and no entities of the with'ed unit are referenced by the spec
1536 -- (an entity may still be referenced in the body, so this flag is used
1537 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
1538 -- full details)
1539
1540 -- No_Initialization (Flag13-Sem)
1541 -- Present in N_Object_Declaration and N_Allocator to indicate that the
1542 -- object must not be initialized (by Initialize or call to an init
1543 -- proc). This is needed for controlled aggregates. When the Object
1544 -- declaration has an expression, this flag means that this expression
1545 -- should not be taken into account (needed for in place initialization
1546 -- with aggregates).
1547
1548 -- No_Truncation (Flag17-Sem)
1549 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
1550 -- only if the RM_Size of the source is greater than the RM_Size of the
1551 -- target for scalar operands. Normally in such a case we truncate some
1552 -- higher order bits of the source, and then sign/zero extend the result
1553 -- to form the output value. But if this flag is set, then we do not do
1554 -- any truncation, so for example, if an 8 bit input is converted to 5
1555 -- bit result which is in fact stored in 8 bits, then the high order
1556 -- three bits of the target result will be copied from the source. This
1557 -- is used for properly setting out of range values for use by pragmas
1558 -- Initialize_Scalars and Normalize_Scalars.
1559
1560 -- Original_Discriminant (Node2-Sem)
1561 -- Present in identifiers. Used in references to discriminants that
1562 -- appear in generic units. Because the names of the discriminants may be
1563 -- different in an instance, we use this field to recover the position of
1564 -- the discriminant in the original type, and replace it with the
1565 -- discriminant at the same position in the instantiated type.
1566
1567 -- Original_Entity (Node2-Sem)
1568 -- Present in numeric literals. Used to denote the named number that has
1569 -- been constant-folded into the given literal. If literal is from
1570 -- source, or the result of some other constant-folding operation, then
1571 -- Original_Entity is empty. This field is needed to handle properly
1572 -- named numbers in generic units, where the Associated_Node field
1573 -- interferes with the Entity field, making it impossible to preserve the
1574 -- original entity at the point of instantiation (ASIS problem).
1575
1576 -- Others_Discrete_Choices (List1-Sem)
1577 -- When a case statement or variant is analyzed, the semantic checks
1578 -- determine the actual list of choices that correspond to an others
1579 -- choice. This list is materialized for later use by the expander and
1580 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
1581 -- this materialized list of choices, which is in standard format for a
1582 -- list of discrete choices, except that of course it cannot contain an
1583 -- N_Others_Choice entry.
1584
1585 -- Parameter_List_Truncated (Flag17-Sem)
1586 -- Present in N_Function_Call and N_Procedure_Call_Statement nodes. Set
1587 -- (for OpenVMS ports of GNAT only) if the parameter list is truncated as
1588 -- a result of a First_Optional_Parameter specification in an
1589 -- Import_Function, Import_Procedure, or Import_Valued_Procedure pragma.
1590 -- The truncation is done by the expander by removing trailing parameters
1591 -- from the argument list, in accordance with the set of rules allowing
1592 -- such parameter removal. In particular, parameters can be removed
1593 -- working from the end of the parameter list backwards up to and
1594 -- including the entry designated by First_Optional_Parameter in the
1595 -- Import pragma. Parameters can be removed if they are implicit and the
1596 -- default value is a known-at-compile-time value, including the use of
1597 -- the Null_Parameter attribute, or if explicit parameter values are
1598 -- present that match the corresponding defaults.
1599
1600 -- Parent_Spec (Node4-Sem)
1601 -- For a library unit that is a child unit spec (package or subprogram
1602 -- declaration, generic declaration or instantiation, or library level
1603 -- rename, this field points to the compilation unit node for the parent
1604 -- package specification. This field is Empty for library bodies (the
1605 -- parent spec in this case can be found from the corresponding spec).
1606
1607 -- Pragma_Enabled (Flag5-Sem)
1608 -- Present in N_Pragma nodes. This flag is relevant only for pragmas
1609 -- Assert, Check, Precondition, and Postcondition. It is true if the
1610 -- check corresponding to the pragma type is enabled at the point where
1611 -- the pragma appears.
1612
1613 -- Present_Expr (Uint3-Sem)
1614 -- Present in an N_Variant node. This has a meaningful value only after
1615 -- Gigi has back annotated the tree with representation information. At
1616 -- this point, it contains a reference to a gcc expression that depends
1617 -- on the values of one or more discriminants. Give a set of discriminant
1618 -- values, this expression evaluates to False (zero) if variant is not
1619 -- present, and True (non-zero) if it is present. See unit Repinfo for
1620 -- further details on gigi back annotation. This field is used during
1621 -- ASIS processing (data decomposition annex) to determine if a field is
1622 -- present or not.
1623
1624 -- Print_In_Hex (Flag13-Sem)
1625 -- Set on an N_Integer_Literal node to indicate that the value should be
1626 -- printed in hexadecimal in the sprint listing. Has no effect on
1627 -- legality or semantics of program, only on the displayed output. This
1628 -- is used to clarify output from the packed array cases.
1629
1630 -- Procedure_To_Call (Node2-Sem)
1631 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1632 -- and N_Extended_Return_Statement nodes. References the entity for the
1633 -- declaration of the procedure to be called to accomplish the required
1634 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
1635 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
1636 -- allocating the return value), and for the Deallocate procedure in the
1637 -- case of N_Free_Statement.
1638
1639 -- Raises_Constraint_Error (Flag7-Sem)
1640 -- Set on an expression whose evaluation will definitely fail constraint
1641 -- error check. In the case of static expressions, this flag must be set
1642 -- accurately (and if it is set, the expression is typically illegal
1643 -- unless it appears as a non-elaborated branch of a short-circuit form).
1644 -- For a non-static expression, this flag may be set whenever an
1645 -- expression (e.g. an aggregate) is known to raise constraint error. If
1646 -- set, the expression definitely will raise CE if elaborated at runtime.
1647 -- If not set, the expression may or may not raise CE. In other words, on
1648 -- static expressions, the flag is set accurately, on non-static
1649 -- expressions it is set conservatively.
1650
1651 -- Redundant_Use (Flag13-Sem)
1652 -- Present in nodes that can appear as an operand in a use clause or use
1653 -- type clause (identifiers, expanded names, attribute references). Set
1654 -- to indicate that a use is redundant (and therefore need not be undone
1655 -- on scope exit).
1656
1657 -- Renaming_Exception (Node2-Sem)
1658 -- Present in N_Exception_Declaration node. Used to point back to the
1659 -- exception renaming for an exception declared within a subprogram.
1660 -- What happens is that an exception declared in a subprogram is moved
1661 -- to the library level with a unique name, and the original exception
1662 -- becomes a renaming. This link from the library level exception to the
1663 -- renaming declaration allows registering of the proper exception name.
1664
1665 -- Return_Statement_Entity (Node5-Sem)
1666 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
1667 -- Points to an E_Return_Statement representing the return statement.
1668
1669 -- Return_Object_Declarations (List3)
1670 -- Present in N_Extended_Return_Statement.
1671 -- Points to a list initially containing a single
1672 -- N_Object_Declaration representing the return object.
1673 -- We use a list (instead of just a pointer to the object decl)
1674 -- because Analyze wants to insert extra actions on this list.
1675
1676 -- Rounded_Result (Flag18-Sem)
1677 -- Present in N_Type_Conversion, N_Op_Divide and N_Op_Multiply nodes.
1678 -- Used in the fixed-point cases to indicate that the result must be
1679 -- rounded as a result of the use of the 'Round attribute. Also used for
1680 -- integer N_Op_Divide nodes to indicate that the result should be
1681 -- rounded to the nearest integer (breaking ties away from zero), rather
1682 -- than truncated towards zero as usual. These rounded integer operations
1683 -- are the result of expansion of rounded fixed-point divide, conversion
1684 -- and multiplication operations.
1685
1686 -- SCIL_Entity (Node4-Sem)
1687 -- Present in SCIL nodes. Used to reference the tagged type associated
1688 -- with the SCIL node.
1689
1690 -- SCIL_Controlling_Tag (Node5-Sem)
1691 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the
1692 -- controlling tag of a dispatching call.
1693
1694 -- SCIL_Tag_Value (Node5-Sem)
1695 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
1696 -- value that is being tested.
1697
1698 -- SCIL_Target_Prim (Node2-Sem)
1699 -- Present in N_SCIL_Dispatching_Call nodes. Used to reference the tagged
1700 -- type primitive associated with the SCIL node.
1701
1702 -- Scope (Node3-Sem)
1703 -- Present in defining identifiers, defining character literals and
1704 -- defining operator symbols (i.e. in all entities). The entities of a
1705 -- scope all use this field to reference the corresponding scope entity.
1706 -- See Einfo for further details.
1707
1708 -- Shift_Count_OK (Flag4-Sem)
1709 -- A flag present in shift nodes to indicate that the shift count is
1710 -- known to be in range, i.e. is in the range from zero to word length
1711 -- minus one. If this flag is not set, then the shift count may be
1712 -- outside this range, i.e. larger than the word length, and the code
1713 -- must ensure that such shift counts give the appropriate result.
1714
1715 -- Source_Type (Node1-Sem)
1716 -- Used in an N_Validate_Unchecked_Conversion node to point to the
1717 -- source type entity for the unchecked conversion instantiation
1718 -- which gigi must do size validation for.
1719
1720 -- Split_PPC (Flag17)
1721 -- When a Pre or Postaspect specification is processed, it is broken
1722 -- into AND THEN sections. The left most section has Split_PPC set to
1723 -- False, indicating that it is the original specification (e.g. for
1724 -- posting errors). For other sections, Split_PPC is set to True.
1725 -- This flag is set in both the N_Aspect_Specification node itself,
1726 -- and in the pragma which is generated from this node.
1727
1728 -- Static_Processing_OK (Flag4-Sem)
1729 -- Present in N_Aggregate nodes. When the Compile_Time_Known_Aggregate
1730 -- flag is set, the full value of the aggregate can be determined at
1731 -- compile time and the aggregate can be passed as is to the back-end.
1732 -- In this event it is irrelevant whether this flag is set or not.
1733 -- However, if the flag Compile_Time_Known_Aggregate is not set but
1734 -- Static_Processing_OK is set, the aggregate can (but need not) be
1735 -- converted into a compile time known aggregate by the expander. See
1736 -- Sem_Aggr for the specific conditions under which an aggregate has its
1737 -- Static_Processing_OK flag set.
1738
1739 -- Storage_Pool (Node1-Sem)
1740 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
1741 -- and N_Extended_Return_Statement nodes. References the entity for the
1742 -- storage pool to be used for the allocate or free call or for the
1743 -- allocation of the returned value from function. Empty indicates that
1744 -- the global default pool is to be used. Note that in the case
1745 -- of a return statement, this field is set only if the function returns
1746 -- value of a type whose size is not known at compile time on the
1747 -- secondary stack.
1748
1749 -- Suppress_Assignment_Checks (Flag18-Sem)
1750 -- Used in generated N_Assignment_Statement nodes to suppress predicate
1751 -- and range checks in cases where the generated code knows that the
1752 -- value being assigned is in range and satisfies any predicate. Also
1753 -- can be set in N_Object_Declaration nodes, to similarly suppress any
1754 -- checks on the initializing value.
1755
1756 -- Suppress_Loop_Warnings (Flag17-Sem)
1757 -- Used in N_Loop_Statement node to indicate that warnings within the
1758 -- body of the loop should be suppressed. This is set when the range
1759 -- of a FOR loop is known to be null, or is probably null (loop would
1760 -- only execute if invalid values are present).
1761
1762 -- Target_Type (Node2-Sem)
1763 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
1764 -- type entity for the unchecked conversion instantiation which gigi must
1765 -- do size validation for.
1766
1767 -- Then_Actions (List3-Sem)
1768 -- This field is present in conditional expression nodes. During code
1769 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1770 -- actions at an appropriate place in the tree to get elaborated at the
1771 -- right time. For conditional expressions, we have to be sure that the
1772 -- actions for the Then branch are only elaborated if the condition is
1773 -- True. The Then_Actions field is used as a temporary parking place for
1774 -- these actions. The final tree is always rewritten to eliminate the
1775 -- need for this field, so in the tree passed to Gigi, this field is
1776 -- always set to No_List.
1777
1778 -- Treat_Fixed_As_Integer (Flag14-Sem)
1779 -- This flag appears in operator nodes for divide, multiply, mod and rem
1780 -- on fixed-point operands. It indicates that the operands are to be
1781 -- treated as integer values, ignoring small values. This flag is only
1782 -- set as a result of expansion of fixed-point operations. Typically a
1783 -- fixed-point multiplication in the source generates subsidiary
1784 -- multiplication and division operations that work with the underlying
1785 -- integer values and have this flag set. Note that this flag is not
1786 -- needed on other arithmetic operations (add, neg, subtract etc.) since
1787 -- in these cases it is always the case that fixed is treated as integer.
1788 -- The Etype field MUST be set if this flag is set. The analyzer knows to
1789 -- leave such nodes alone, and whoever makes them must set the correct
1790 -- Etype value.
1791
1792 -- TSS_Elist (Elist3-Sem)
1793 -- Present in N_Freeze_Entity nodes. Holds an element list containing
1794 -- entries for each TSS (type support subprogram) associated with the
1795 -- frozen type. The elements of the list are the entities for the
1796 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
1797 -- if there are no type support subprograms for the type or if the freeze
1798 -- node is not for a type.
1799
1800 -- Unreferenced_In_Spec (Flag7-Sem)
1801 -- Present in N_With_Clause nodes. Set if the with clause is on the
1802 -- package or subprogram spec where the main unit is the corresponding
1803 -- body, and is not referenced by the spec (it may still be referenced by
1804 -- the body, so this flag is used to generate the proper message (see
1805 -- Sem_Util.Check_Unused_Withs for details)
1806
1807 -- Was_Originally_Stub (Flag13-Sem)
1808 -- This flag is set in the node for a proper body that replaces stub.
1809 -- During the analysis procedure, stubs in some situations get rewritten
1810 -- by the corresponding bodies, and we set this flag to remember that
1811 -- this happened. Note that it is not good enough to rely on the use of
1812 -- Original_Node here because of the case of nested instantiations where
1813 -- the substituted node can be copied.
1814
1815 -- Withed_Body (Node1-Sem)
1816 -- Present in N_With_Clause nodes. Set if the unit in whose context
1817 -- the with_clause appears instantiates a generic contained in the
1818 -- library unit of the with_clause and as a result loads its body.
1819 -- Used for a more precise unit traversal for CodePeer.
1820
1821 -- Zero_Cost_Handling (Flag5-Sem)
1822 -- This flag is set in all handled sequence of statement and exception
1823 -- handler nodes if exceptions are to be handled using the zero-cost
1824 -- mechanism (see Ada.Exceptions and System.Exceptions in files
1825 -- a-except.ads/adb and s-except.ads for full details). What gigi needs
1826 -- to do for such a handler is simply to put the code in the handler
1827 -- somewhere. The front end has generated all necessary labels.
1828
1829 --------------------------------------------------
1830 -- Note on Use of End_Label and End_Span Fields --
1831 --------------------------------------------------
1832
1833 -- Several constructs have end lines:
1834
1835 -- Loop Statement end loop [loop_IDENTIFIER];
1836 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
1837 -- Task Definition end [task_IDENTIFIER]
1838 -- Protected Definition end [protected_IDENTIFIER]
1839 -- Protected Body end [protected_IDENTIFIER]
1840
1841 -- Block Statement end [block_IDENTIFIER];
1842 -- Subprogram Body end [DESIGNATOR];
1843 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
1844 -- Task Body end [task_IDENTIFIER];
1845 -- Accept Statement end [entry_IDENTIFIER]];
1846 -- Entry Body end [entry_IDENTIFIER];
1847
1848 -- If Statement end if;
1849 -- Case Statement end case;
1850
1851 -- Record Definition end record;
1852 -- Enumeration Definition );
1853
1854 -- The End_Label and End_Span fields are used to mark the locations of
1855 -- these lines, and also keep track of the label in the case where a label
1856 -- is present.
1857
1858 -- For the first group above, the End_Label field of the corresponding node
1859 -- is used to point to the label identifier. In the case where there is no
1860 -- label in the source, the parser supplies a dummy identifier (with
1861 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
1862 -- marks the location of the token following the END token.
1863
1864 -- For the second group, the use of End_Label is similar, but the End_Label
1865 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
1866 -- simply because in some cases there is no room in the parent node.
1867
1868 -- For the third group, there is never any label, and instead of using
1869 -- End_Label, we use the End_Span field which gives the location of the
1870 -- token following END, relative to the starting Sloc of the construct,
1871 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
1872 -- following the End_Label.
1873
1874 -- The record definition case is handled specially, we treat it as though
1875 -- it required an optional label which is never present, and so the parser
1876 -- always builds a dummy identifier with Comes From Source set False. The
1877 -- reason we do this, rather than using End_Span in this case, is that we
1878 -- want to generate a cross-ref entry for the end of a record, since it
1879 -- represents a scope for name declaration purposes.
1880
1881 -- The enumeration definition case is handled in an exactly similar manner,
1882 -- building a dummy identifier to get a cross-reference.
1883
1884 -- Note: the reason we store the difference as a Uint, instead of storing
1885 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
1886 -- distinguished from other types of values, and we count on all general
1887 -- use fields being self describing. To make things easier for clients,
1888 -- note that we provide function End_Location, and procedure
1889 -- Set_End_Location to allow access to the logical value (which is the
1890 -- Source_Ptr value for the end token).
1891
1892 ---------------------
1893 -- Syntactic Nodes --
1894 ---------------------
1895
1896 ---------------------
1897 -- 2.3 Identifier --
1898 ---------------------
1899
1900 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
1901 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
1902
1903 -- An IDENTIFIER shall not be a reserved word
1904
1905 -- In the Ada grammar identifiers are the bottom level tokens which have
1906 -- very few semantics. Actual program identifiers are direct names. If
1907 -- we were being 100% honest with the grammar, then we would have a node
1908 -- called N_Direct_Name which would point to an identifier. However,
1909 -- that's too many extra nodes, so we just use the N_Identifier node
1910 -- directly as a direct name, and it contains the expression fields and
1911 -- Entity field that correspond to its use as a direct name. In those
1912 -- few cases where identifiers appear in contexts where they are not
1913 -- direct names (pragmas, pragma argument associations, attribute
1914 -- references and attribute definition clauses), the Chars field of the
1915 -- node contains the Name_Id for the identifier name.
1916
1917 -- Note: in GNAT, a reserved word can be treated as an identifier in two
1918 -- cases. First, an incorrect use of a reserved word as an identifier is
1919 -- diagnosed and then treated as a normal identifier. Second, an
1920 -- attribute designator of the form of a reserved word (access, delta,
1921 -- digits, range) is treated as an identifier.
1922
1923 -- Note: The set of letters that is permitted in an identifier depends
1924 -- on the character set in use. See package Csets for full details.
1925
1926 -- N_Identifier
1927 -- Sloc points to identifier
1928 -- Chars (Name1) contains the Name_Id for the identifier
1929 -- Entity (Node4-Sem)
1930 -- Associated_Node (Node4-Sem)
1931 -- Original_Discriminant (Node2-Sem)
1932 -- Redundant_Use (Flag13-Sem)
1933 -- Has_Private_View (Flag11-Sem) (set in generic units)
1934 -- plus fields for expression
1935
1936 --------------------------
1937 -- 2.4 Numeric Literal --
1938 --------------------------
1939
1940 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
1941
1942 ----------------------------
1943 -- 2.4.1 Decimal Literal --
1944 ----------------------------
1945
1946 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
1947
1948 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
1949
1950 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
1951
1952 -- Decimal literals appear in the tree as either integer literal nodes
1953 -- or real literal nodes, depending on whether a period is present.
1954
1955 -- Note: literal nodes appear as a result of direct use of literals
1956 -- in the source program, and also as the result of evaluating
1957 -- expressions at compile time. In the latter case, it is possible
1958 -- to construct real literals that have no syntactic representation
1959 -- using the standard literal format. Such literals are listed by
1960 -- Sprint using the notation [numerator / denominator].
1961
1962 -- Note: the value of an integer literal node created by the front end
1963 -- is never outside the range of values of the base type. However, it
1964 -- can be the case that the created value is outside the range of the
1965 -- particular subtype. This happens in the case of integer overflows
1966 -- with checks suppressed.
1967
1968 -- N_Integer_Literal
1969 -- Sloc points to literal
1970 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1971 -- has been constant-folded into its literal value.
1972 -- Intval (Uint3) contains integer value of literal
1973 -- plus fields for expression
1974 -- Print_In_Hex (Flag13-Sem)
1975
1976 -- N_Real_Literal
1977 -- Sloc points to literal
1978 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
1979 -- has been constant-folded into its literal value.
1980 -- Realval (Ureal3) contains real value of literal
1981 -- Corresponding_Integer_Value (Uint4-Sem)
1982 -- Is_Machine_Number (Flag11-Sem)
1983 -- plus fields for expression
1984
1985 --------------------------
1986 -- 2.4.2 Based Literal --
1987 --------------------------
1988
1989 -- BASED_LITERAL ::=
1990 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
1991
1992 -- BASE ::= NUMERAL
1993
1994 -- BASED_NUMERAL ::=
1995 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
1996
1997 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
1998
1999 -- Based literals appear in the tree as either integer literal nodes
2000 -- or real literal nodes, depending on whether a period is present.
2001
2002 ----------------------------
2003 -- 2.5 Character Literal --
2004 ----------------------------
2005
2006 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2007
2008 -- N_Character_Literal
2009 -- Sloc points to literal
2010 -- Chars (Name1) contains the Name_Id for the identifier
2011 -- Char_Literal_Value (Uint2) contains the literal value
2012 -- Entity (Node4-Sem)
2013 -- Associated_Node (Node4-Sem)
2014 -- Has_Private_View (Flag11-Sem) set in generic units.
2015 -- plus fields for expression
2016
2017 -- Note: the Entity field will be missing (set to Empty) for character
2018 -- literals whose type is Standard.Wide_Character or Standard.Character
2019 -- or a type derived from one of these two. In this case the character
2020 -- literal stands for its own coding. The reason we take this irregular
2021 -- short cut is to avoid the need to build lots of junk defining
2022 -- character literal nodes.
2023
2024 -------------------------
2025 -- 2.6 String Literal --
2026 -------------------------
2027
2028 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2029
2030 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2031 -- single GRAPHIC_CHARACTER other than a quotation mark.
2032 --
2033 -- Is_Folded_In_Parser is True if the parser created this literal by
2034 -- folding a sequence of "&" operators. For example, if the source code
2035 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2036 -- is set. This flag is needed because the parser doesn't know about
2037 -- visibility, so the folded result might be wrong, and semantic
2038 -- analysis needs to check for that.
2039
2040 -- N_String_Literal
2041 -- Sloc points to literal
2042 -- Strval (Str3) contains Id of string value
2043 -- Has_Wide_Character (Flag11-Sem)
2044 -- Has_Wide_Wide_Character (Flag13-Sem)
2045 -- Is_Folded_In_Parser (Flag4)
2046 -- plus fields for expression
2047
2048 ------------------
2049 -- 2.7 Comment --
2050 ------------------
2051
2052 -- A COMMENT starts with two adjacent hyphens and extends up to the
2053 -- end of the line. A COMMENT may appear on any line of a program.
2054
2055 -- Comments are skipped by the scanner and do not appear in the tree.
2056 -- It is possible to reconstruct the position of comments with respect
2057 -- to the elements of the tree by using the source position (Sloc)
2058 -- pointers that appear in every tree node.
2059
2060 -----------------
2061 -- 2.8 Pragma --
2062 -----------------
2063
2064 -- PRAGMA ::= pragma IDENTIFIER
2065 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2066
2067 -- Note that a pragma may appear in the tree anywhere a declaration
2068 -- or a statement may appear, as well as in some other situations
2069 -- which are explicitly documented.
2070
2071 -- N_Pragma
2072 -- Sloc points to PRAGMA
2073 -- Next_Pragma (Node1-Sem)
2074 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2075 -- Debug_Statement (Node3) (set to Empty if not Debug)
2076 -- Pragma_Identifier (Node4)
2077 -- Next_Rep_Item (Node5-Sem)
2078 -- Pragma_Enabled (Flag5-Sem)
2079 -- From_Aspect_Specification (Flag13-Sem)
2080 -- Is_Delayed_Aspect (Flag14-Sem)
2081 -- Import_Interface_Present (Flag16-Sem)
2082 -- Aspect_Cancel (Flag11-Sem)
2083 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2084 -- Class_Present (Flag6) set if from Aspect with 'Class
2085 -- From_Dynamic_Predicate (Flag7-Sem) Set if Dynamic_Predicate aspect
2086 -- From_Static_Predicate (Flag8-Sem) Set if Static_Predicate aspect
2087
2088 -- Note: we should have a section on what pragmas are passed on to
2089 -- the back end to be processed. This section should note that pragma
2090 -- Psect_Object is always converted to Common_Object, but there are
2091 -- undoubtedly many other similar notes required ???
2092
2093 -- Note: a utility function Pragma_Name may be applied to pragma nodes
2094 -- to conveniently obtain the Chars field of the Pragma_Identifier.
2095
2096 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2097 -- aspect name, as does the Pragma_Identifier. In this case if the
2098 -- pragma has a local name argument (such as pragma Inline), it is
2099 -- resolved to point to the specific entity affected by the pragma.
2100
2101 --------------------------------------
2102 -- 2.8 Pragma Argument Association --
2103 --------------------------------------
2104
2105 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2106 -- [pragma_argument_IDENTIFIER =>] NAME
2107 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2108
2109 -- N_Pragma_Argument_Association
2110 -- Sloc points to first token in association
2111 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2112 -- Expression (Node3)
2113
2114 ------------------------
2115 -- 2.9 Reserved Word --
2116 ------------------------
2117
2118 -- Reserved words are parsed by the scanner, and returned as the
2119 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2120
2121 ----------------------------
2122 -- 3.1 Basic Declaration --
2123 ----------------------------
2124
2125 -- BASIC_DECLARATION ::=
2126 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2127 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2128 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2129 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2130 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2131 -- | GENERIC_INSTANTIATION
2132
2133 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2134 -- see further description in section on semantic nodes.
2135
2136 -- Also, in the tree that is constructed, a pragma may appear
2137 -- anywhere that a declaration may appear.
2138
2139 ------------------------------
2140 -- 3.1 Defining Identifier --
2141 ------------------------------
2142
2143 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2144
2145 -- A defining identifier is an entity, which has additional fields
2146 -- depending on the setting of the Ekind field. These additional
2147 -- fields are defined (and access subprograms declared) in package
2148 -- Einfo.
2149
2150 -- Note: N_Defining_Identifier is an extended node whose fields are
2151 -- deliberate layed out to match the layout of fields in an ordinary
2152 -- N_Identifier node allowing for easy alteration of an identifier
2153 -- node into a defining identifier node. For details, see procedure
2154 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2155
2156 -- N_Defining_Identifier
2157 -- Sloc points to identifier
2158 -- Chars (Name1) contains the Name_Id for the identifier
2159 -- Next_Entity (Node2-Sem)
2160 -- Scope (Node3-Sem)
2161 -- Etype (Node5-Sem)
2162
2163 -----------------------------
2164 -- 3.2.1 Type Declaration --
2165 -----------------------------
2166
2167 -- TYPE_DECLARATION ::=
2168 -- FULL_TYPE_DECLARATION
2169 -- | INCOMPLETE_TYPE_DECLARATION
2170 -- | PRIVATE_TYPE_DECLARATION
2171 -- | PRIVATE_EXTENSION_DECLARATION
2172
2173 ----------------------------------
2174 -- 3.2.1 Full Type Declaration --
2175 ----------------------------------
2176
2177 -- FULL_TYPE_DECLARATION ::=
2178 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2179 -- is TYPE_DEFINITION
2180 -- [ASPECT_SPECIFICATIONS];
2181
2182 -- | TASK_TYPE_DECLARATION
2183 -- | PROTECTED_TYPE_DECLARATION
2184
2185 -- The full type declaration node is used only for the first case. The
2186 -- second case (concurrent type declaration), is represented directly
2187 -- by a task type declaration or a protected type declaration.
2188
2189 -- N_Full_Type_Declaration
2190 -- Sloc points to TYPE
2191 -- Defining_Identifier (Node1)
2192 -- Discriminant_Specifications (List4) (set to No_List if none)
2193 -- Type_Definition (Node3)
2194 -- Discr_Check_Funcs_Built (Flag11-Sem)
2195
2196 ----------------------------
2197 -- 3.2.1 Type Definition --
2198 ----------------------------
2199
2200 -- TYPE_DEFINITION ::=
2201 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2202 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2203 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2204 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2205
2206 --------------------------------
2207 -- 3.2.2 Subtype Declaration --
2208 --------------------------------
2209
2210 -- SUBTYPE_DECLARATION ::=
2211 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION;
2212
2213 -- The subtype indication field is set to Empty for subtypes
2214 -- declared in package Standard (Positive, Natural).
2215
2216 -- N_Subtype_Declaration
2217 -- Sloc points to SUBTYPE
2218 -- Defining_Identifier (Node1)
2219 -- Null_Exclusion_Present (Flag11)
2220 -- Subtype_Indication (Node5)
2221 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2222 -- Exception_Junk (Flag8-Sem)
2223
2224 -------------------------------
2225 -- 3.2.2 Subtype Indication --
2226 -------------------------------
2227
2228 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2229
2230 -- Note: if no constraint is present, the subtype indication appears
2231 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2232 -- node is used only if a constraint is present.
2233
2234 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2235 -- with the null-exclusion part (see AI-231), we had to introduce a new
2236 -- attribute in all the parents of subtype_indication nodes to indicate
2237 -- if the null-exclusion is present.
2238
2239 -- Note: the reason that this node has expression fields is that a
2240 -- subtype indication can appear as an operand of a membership test.
2241
2242 -- N_Subtype_Indication
2243 -- Sloc points to first token of subtype mark
2244 -- Subtype_Mark (Node4)
2245 -- Constraint (Node3)
2246 -- Etype (Node5-Sem)
2247 -- Must_Not_Freeze (Flag8-Sem)
2248
2249 -- Note: Etype is a copy of the Etype field of the Subtype_Mark. The
2250 -- reason for this redundancy is so that in a list of array index types,
2251 -- the Etype can be uniformly accessed to determine the subscript type.
2252 -- This means that no Itype is constructed for the actual subtype that
2253 -- is created by the subtype indication. If such an Itype is required,
2254 -- it is constructed in the context in which the indication appears.
2255
2256 -------------------------
2257 -- 3.2.2 Subtype Mark --
2258 -------------------------
2259
2260 -- SUBTYPE_MARK ::= subtype_NAME
2261
2262 -----------------------
2263 -- 3.2.2 Constraint --
2264 -----------------------
2265
2266 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2267
2268 ------------------------------
2269 -- 3.2.2 Scalar Constraint --
2270 ------------------------------
2271
2272 -- SCALAR_CONSTRAINT ::=
2273 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
2274
2275 ---------------------------------
2276 -- 3.2.2 Composite Constraint --
2277 ---------------------------------
2278
2279 -- COMPOSITE_CONSTRAINT ::=
2280 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
2281
2282 -------------------------------
2283 -- 3.3.1 Object Declaration --
2284 -------------------------------
2285
2286 -- OBJECT_DECLARATION ::=
2287 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2288 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
2289 -- [ASPECT_SPECIFICATIONS];
2290 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2291 -- ACCESS_DEFINITION [:= EXPRESSION]
2292 -- [ASPECT_SPECIFICATIONS];
2293 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
2294 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
2295 -- [ASPECT_SPECIFICATIONS];
2296 -- | SINGLE_TASK_DECLARATION
2297 -- | SINGLE_PROTECTED_DECLARATION
2298
2299 -- Note: aliased is not permitted in Ada 83 mode
2300
2301 -- The N_Object_Declaration node is only for the first two cases.
2302 -- Single task declaration is handled by P_Task (9.1)
2303 -- Single protected declaration is handled by P_protected (9.5)
2304
2305 -- Although the syntax allows multiple identifiers in the list, the
2306 -- semantics is as though successive declarations were given with
2307 -- identical type definition and expression components. To simplify
2308 -- semantic processing, the parser represents a multiple declaration
2309 -- case as a sequence of single declarations, using the More_Ids and
2310 -- Prev_Ids flags to preserve the original source form as described
2311 -- in the section on "Handling of Defining Identifier Lists".
2312
2313 -- The flag Has_Init_Expression is set if an initializing expression
2314 -- is present. Normally it is set if and only if Expression contains
2315 -- a non-empty value, but there is an exception to this. When the
2316 -- initializing expression is an aggregate which requires explicit
2317 -- assignments, the Expression field gets set to Empty, but this flag
2318 -- is still set, so we don't forget we had an initializing expression.
2319
2320 -- Note: if a range check is required for the initialization
2321 -- expression then the Do_Range_Check flag is set in the Expression,
2322 -- with the check being done against the type given by the object
2323 -- definition, which is also the Etype of the defining identifier.
2324
2325 -- Note: the contents of the Expression field must be ignored (i.e.
2326 -- treated as though it were Empty) if No_Initialization is set True.
2327
2328 -- Note: the back end places some restrictions on the form of the
2329 -- Expression field. If the object being declared is Atomic, then
2330 -- the Expression may not have the form of an aggregate (since this
2331 -- might cause the back end to generate separate assignments). In this
2332 -- case the front end must generate an extra temporary and initialize
2333 -- this temporary as required (the temporary itself is not atomic).
2334
2335 -- Note: there is not node kind for object definition. Instead, the
2336 -- corresponding field holds a subtype indication, an array type
2337 -- definition, or (Ada 2005, AI-406) an access definition.
2338
2339 -- N_Object_Declaration
2340 -- Sloc points to first identifier
2341 -- Defining_Identifier (Node1)
2342 -- Aliased_Present (Flag4) set if ALIASED appears
2343 -- Constant_Present (Flag17) set if CONSTANT appears
2344 -- Null_Exclusion_Present (Flag11)
2345 -- Object_Definition (Node4) subtype indic./array type def./access def.
2346 -- Expression (Node3) (set to Empty if not present)
2347 -- Handler_List_Entry (Node2-Sem)
2348 -- Corresponding_Generic_Association (Node5-Sem)
2349 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2350 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2351 -- No_Initialization (Flag13-Sem)
2352 -- Assignment_OK (Flag15-Sem)
2353 -- Exception_Junk (Flag8-Sem)
2354 -- Is_Subprogram_Descriptor (Flag16-Sem)
2355 -- Has_Init_Expression (Flag14)
2356 -- Suppress_Assignment_Checks (Flag18-Sem)
2357
2358 -------------------------------------
2359 -- 3.3.1 Defining Identifier List --
2360 -------------------------------------
2361
2362 -- DEFINING_IDENTIFIER_LIST ::=
2363 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
2364
2365 -------------------------------
2366 -- 3.3.2 Number Declaration --
2367 -------------------------------
2368
2369 -- NUMBER_DECLARATION ::=
2370 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
2371
2372 -- Although the syntax allows multiple identifiers in the list, the
2373 -- semantics is as though successive declarations were given with
2374 -- identical expressions. To simplify semantic processing, the parser
2375 -- represents a multiple declaration case as a sequence of single
2376 -- declarations, using the More_Ids and Prev_Ids flags to preserve
2377 -- the original source form as described in the section on "Handling
2378 -- of Defining Identifier Lists".
2379
2380 -- N_Number_Declaration
2381 -- Sloc points to first identifier
2382 -- Defining_Identifier (Node1)
2383 -- Expression (Node3)
2384 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2385 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2386
2387 ----------------------------------
2388 -- 3.4 Derived Type Definition --
2389 ----------------------------------
2390
2391 -- DERIVED_TYPE_DEFINITION ::=
2392 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
2393 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
2394
2395 -- Note: ABSTRACT, LIMITED and record extension part are not permitted
2396 -- in Ada 83 mode
2397
2398 -- Note: a record extension part is required if ABSTRACT is present
2399
2400 -- N_Derived_Type_Definition
2401 -- Sloc points to NEW
2402 -- Abstract_Present (Flag4)
2403 -- Null_Exclusion_Present (Flag11) (set to False if not present)
2404 -- Subtype_Indication (Node5)
2405 -- Record_Extension_Part (Node3) (set to Empty if not present)
2406 -- Limited_Present (Flag17)
2407 -- Task_Present (Flag5) set in task interfaces
2408 -- Protected_Present (Flag6) set in protected interfaces
2409 -- Synchronized_Present (Flag7) set in interfaces
2410 -- Interface_List (List2) (set to No_List if none)
2411 -- Interface_Present (Flag16) set in abstract interfaces
2412
2413 -- Note: Task_Present, Protected_Present, Synchronized_Present,
2414 -- Interface_List, and Interface_Present are used for abstract
2415 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2416
2417 ---------------------------
2418 -- 3.5 Range Constraint --
2419 ---------------------------
2420
2421 -- RANGE_CONSTRAINT ::= range RANGE
2422
2423 -- N_Range_Constraint
2424 -- Sloc points to RANGE
2425 -- Range_Expression (Node4)
2426
2427 ----------------
2428 -- 3.5 Range --
2429 ----------------
2430
2431 -- RANGE ::=
2432 -- RANGE_ATTRIBUTE_REFERENCE
2433 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
2434
2435 -- Note: the case of a range given as a range attribute reference
2436 -- appears directly in the tree as an attribute reference.
2437
2438 -- Note: the field name for a reference to a range is Range_Expression
2439 -- rather than Range, because range is a reserved keyword in Ada!
2440
2441 -- Note: the reason that this node has expression fields is that a
2442 -- range can appear as an operand of a membership test. The Etype
2443 -- field is the type of the range (we do NOT construct an implicit
2444 -- subtype to represent the range exactly).
2445
2446 -- N_Range
2447 -- Sloc points to ..
2448 -- Low_Bound (Node1)
2449 -- High_Bound (Node2)
2450 -- Includes_Infinities (Flag11)
2451 -- plus fields for expression
2452
2453 -- Note: if the range appears in a context, such as a subtype
2454 -- declaration, where range checks are required on one or both of
2455 -- the expression fields, then type conversion nodes are inserted
2456 -- to represent the required checks.
2457
2458 ----------------------------------------
2459 -- 3.5.1 Enumeration Type Definition --
2460 ----------------------------------------
2461
2462 -- ENUMERATION_TYPE_DEFINITION ::=
2463 -- (ENUMERATION_LITERAL_SPECIFICATION
2464 -- {, ENUMERATION_LITERAL_SPECIFICATION})
2465
2466 -- Note: the Literals field in the node described below is null for
2467 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
2468 -- which special processing handles these types as special cases.
2469
2470 -- N_Enumeration_Type_Definition
2471 -- Sloc points to left parenthesis
2472 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
2473 -- End_Label (Node4) (set to Empty if internally generated record)
2474
2475 ----------------------------------------------
2476 -- 3.5.1 Enumeration Literal Specification --
2477 ----------------------------------------------
2478
2479 -- ENUMERATION_LITERAL_SPECIFICATION ::=
2480 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
2481
2482 ---------------------------------------
2483 -- 3.5.1 Defining Character Literal --
2484 ---------------------------------------
2485
2486 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
2487
2488 -- A defining character literal is an entity, which has additional
2489 -- fields depending on the setting of the Ekind field. These
2490 -- additional fields are defined (and access subprograms declared)
2491 -- in package Einfo.
2492
2493 -- Note: N_Defining_Character_Literal is an extended node whose fields
2494 -- are deliberate layed out to match the layout of fields in an ordinary
2495 -- N_Character_Literal node allowing for easy alteration of a character
2496 -- literal node into a defining character literal node. For details, see
2497 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
2498
2499 -- N_Defining_Character_Literal
2500 -- Sloc points to literal
2501 -- Chars (Name1) contains the Name_Id for the identifier
2502 -- Next_Entity (Node2-Sem)
2503 -- Scope (Node3-Sem)
2504 -- Etype (Node5-Sem)
2505
2506 ------------------------------------
2507 -- 3.5.4 Integer Type Definition --
2508 ------------------------------------
2509
2510 -- Note: there is an error in this rule in the latest version of the
2511 -- grammar, so we have retained the old rule pending clarification.
2512
2513 -- INTEGER_TYPE_DEFINITION ::=
2514 -- SIGNED_INTEGER_TYPE_DEFINITION
2515 -- | MODULAR_TYPE_DEFINITION
2516
2517 -------------------------------------------
2518 -- 3.5.4 Signed Integer Type Definition --
2519 -------------------------------------------
2520
2521 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
2522 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2523
2524 -- Note: the Low_Bound and High_Bound fields are set to Empty
2525 -- for integer types defined in package Standard.
2526
2527 -- N_Signed_Integer_Type_Definition
2528 -- Sloc points to RANGE
2529 -- Low_Bound (Node1)
2530 -- High_Bound (Node2)
2531
2532 ------------------------------------
2533 -- 3.5.4 Modular Type Definition --
2534 ------------------------------------
2535
2536 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
2537
2538 -- N_Modular_Type_Definition
2539 -- Sloc points to MOD
2540 -- Expression (Node3)
2541
2542 ---------------------------------
2543 -- 3.5.6 Real Type Definition --
2544 ---------------------------------
2545
2546 -- REAL_TYPE_DEFINITION ::=
2547 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
2548
2549 --------------------------------------
2550 -- 3.5.7 Floating Point Definition --
2551 --------------------------------------
2552
2553 -- FLOATING_POINT_DEFINITION ::=
2554 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
2555
2556 -- Note: The Digits_Expression and Real_Range_Specifications fields
2557 -- are set to Empty for floating-point types declared in Standard.
2558
2559 -- N_Floating_Point_Definition
2560 -- Sloc points to DIGITS
2561 -- Digits_Expression (Node2)
2562 -- Real_Range_Specification (Node4) (set to Empty if not present)
2563
2564 -------------------------------------
2565 -- 3.5.7 Real Range Specification --
2566 -------------------------------------
2567
2568 -- REAL_RANGE_SPECIFICATION ::=
2569 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
2570
2571 -- N_Real_Range_Specification
2572 -- Sloc points to RANGE
2573 -- Low_Bound (Node1)
2574 -- High_Bound (Node2)
2575
2576 -----------------------------------
2577 -- 3.5.9 Fixed Point Definition --
2578 -----------------------------------
2579
2580 -- FIXED_POINT_DEFINITION ::=
2581 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
2582
2583 --------------------------------------------
2584 -- 3.5.9 Ordinary Fixed Point Definition --
2585 --------------------------------------------
2586
2587 -- ORDINARY_FIXED_POINT_DEFINITION ::=
2588 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
2589
2590 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2591
2592 -- N_Ordinary_Fixed_Point_Definition
2593 -- Sloc points to DELTA
2594 -- Delta_Expression (Node3)
2595 -- Real_Range_Specification (Node4)
2596
2597 -------------------------------------------
2598 -- 3.5.9 Decimal Fixed Point Definition --
2599 -------------------------------------------
2600
2601 -- DECIMAL_FIXED_POINT_DEFINITION ::=
2602 -- delta static_EXPRESSION
2603 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
2604
2605 -- Note: decimal types are not permitted in Ada 83 mode
2606
2607 -- N_Decimal_Fixed_Point_Definition
2608 -- Sloc points to DELTA
2609 -- Delta_Expression (Node3)
2610 -- Digits_Expression (Node2)
2611 -- Real_Range_Specification (Node4) (set to Empty if not present)
2612
2613 ------------------------------
2614 -- 3.5.9 Digits Constraint --
2615 ------------------------------
2616
2617 -- DIGITS_CONSTRAINT ::=
2618 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
2619
2620 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
2621 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
2622
2623 -- N_Digits_Constraint
2624 -- Sloc points to DIGITS
2625 -- Digits_Expression (Node2)
2626 -- Range_Constraint (Node4) (set to Empty if not present)
2627
2628 --------------------------------
2629 -- 3.6 Array Type Definition --
2630 --------------------------------
2631
2632 -- ARRAY_TYPE_DEFINITION ::=
2633 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
2634
2635 -----------------------------------------
2636 -- 3.6 Unconstrained Array Definition --
2637 -----------------------------------------
2638
2639 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
2640 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
2641 -- COMPONENT_DEFINITION
2642
2643 -- Note: dimensionality of array is indicated by number of entries in
2644 -- the Subtype_Marks list, which has one entry for each dimension.
2645
2646 -- N_Unconstrained_Array_Definition
2647 -- Sloc points to ARRAY
2648 -- Subtype_Marks (List2)
2649 -- Component_Definition (Node4)
2650
2651 -----------------------------------
2652 -- 3.6 Index Subtype Definition --
2653 -----------------------------------
2654
2655 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
2656
2657 -- There is no explicit node in the tree for an index subtype
2658 -- definition since the N_Unconstrained_Array_Definition node
2659 -- incorporates the type marks which appear in this context.
2660
2661 ---------------------------------------
2662 -- 3.6 Constrained Array Definition --
2663 ---------------------------------------
2664
2665 -- CONSTRAINED_ARRAY_DEFINITION ::=
2666 -- array (DISCRETE_SUBTYPE_DEFINITION
2667 -- {, DISCRETE_SUBTYPE_DEFINITION})
2668 -- of COMPONENT_DEFINITION
2669
2670 -- Note: dimensionality of array is indicated by number of entries
2671 -- in the Discrete_Subtype_Definitions list, which has one entry
2672 -- for each dimension.
2673
2674 -- N_Constrained_Array_Definition
2675 -- Sloc points to ARRAY
2676 -- Discrete_Subtype_Definitions (List2)
2677 -- Component_Definition (Node4)
2678
2679 --------------------------------------
2680 -- 3.6 Discrete Subtype Definition --
2681 --------------------------------------
2682
2683 -- DISCRETE_SUBTYPE_DEFINITION ::=
2684 -- discrete_SUBTYPE_INDICATION | RANGE
2685
2686 -------------------------------
2687 -- 3.6 Component Definition --
2688 -------------------------------
2689
2690 -- COMPONENT_DEFINITION ::=
2691 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
2692
2693 -- Note: although the syntax does not permit a component definition to
2694 -- be an anonymous array (and the parser will diagnose such an attempt
2695 -- with an appropriate message), it is possible for anonymous arrays
2696 -- to appear as component definitions. The semantics and back end handle
2697 -- this case properly, and the expander in fact generates such cases.
2698 -- Access_Definition is an optional field that gives support to
2699 -- Ada 2005 (AI-230). The parser generates nodes that have either the
2700 -- Subtype_Indication field or else the Access_Definition field.
2701
2702 -- N_Component_Definition
2703 -- Sloc points to ALIASED, ACCESS or to first token of subtype mark
2704 -- Aliased_Present (Flag4)
2705 -- Null_Exclusion_Present (Flag11)
2706 -- Subtype_Indication (Node5) (set to Empty if not present)
2707 -- Access_Definition (Node3) (set to Empty if not present)
2708
2709 -----------------------------
2710 -- 3.6.1 Index Constraint --
2711 -----------------------------
2712
2713 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
2714
2715 -- It is not in general possible to distinguish between discriminant
2716 -- constraints and index constraints at parse time, since a simple
2717 -- name could be either the subtype mark of a discrete range, or an
2718 -- expression in a discriminant association with no name. Either
2719 -- entry appears simply as the name, and the semantic parse must
2720 -- distinguish between the two cases. Thus we use a common tree
2721 -- node format for both of these constraint types.
2722
2723 -- See Discriminant_Constraint for format of node
2724
2725 ---------------------------
2726 -- 3.6.1 Discrete Range --
2727 ---------------------------
2728
2729 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
2730
2731 ----------------------------
2732 -- 3.7 Discriminant Part --
2733 ----------------------------
2734
2735 -- DISCRIMINANT_PART ::=
2736 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
2737
2738 ------------------------------------
2739 -- 3.7 Unknown Discriminant Part --
2740 ------------------------------------
2741
2742 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
2743
2744 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
2745
2746 -- There is no explicit node in the tree for an unknown discriminant
2747 -- part. Instead the Unknown_Discriminants_Present flag is set in the
2748 -- parent node.
2749
2750 ----------------------------------
2751 -- 3.7 Known Discriminant Part --
2752 ----------------------------------
2753
2754 -- KNOWN_DISCRIMINANT_PART ::=
2755 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
2756
2757 -------------------------------------
2758 -- 3.7 Discriminant Specification --
2759 -------------------------------------
2760
2761 -- DISCRIMINANT_SPECIFICATION ::=
2762 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
2763 -- [:= DEFAULT_EXPRESSION]
2764 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
2765 -- [:= DEFAULT_EXPRESSION]
2766
2767 -- Although the syntax allows multiple identifiers in the list, the
2768 -- semantics is as though successive specifications were given with
2769 -- identical type definition and expression components. To simplify
2770 -- semantic processing, the parser represents a multiple declaration
2771 -- case as a sequence of single specifications, using the More_Ids and
2772 -- Prev_Ids flags to preserve the original source form as described
2773 -- in the section on "Handling of Defining Identifier Lists".
2774
2775 -- N_Discriminant_Specification
2776 -- Sloc points to first identifier
2777 -- Defining_Identifier (Node1)
2778 -- Null_Exclusion_Present (Flag11)
2779 -- Discriminant_Type (Node5) subtype mark or access parameter definition
2780 -- Expression (Node3) (set to Empty if no default expression)
2781 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2782 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2783
2784 -----------------------------
2785 -- 3.7 Default Expression --
2786 -----------------------------
2787
2788 -- DEFAULT_EXPRESSION ::= EXPRESSION
2789
2790 ------------------------------------
2791 -- 3.7.1 Discriminant Constraint --
2792 ------------------------------------
2793
2794 -- DISCRIMINANT_CONSTRAINT ::=
2795 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
2796
2797 -- It is not in general possible to distinguish between discriminant
2798 -- constraints and index constraints at parse time, since a simple
2799 -- name could be either the subtype mark of a discrete range, or an
2800 -- expression in a discriminant association with no name. Either
2801 -- entry appears simply as the name, and the semantic parse must
2802 -- distinguish between the two cases. Thus we use a common tree
2803 -- node format for both of these constraint types.
2804
2805 -- N_Index_Or_Discriminant_Constraint
2806 -- Sloc points to left paren
2807 -- Constraints (List1) points to list of discrete ranges or
2808 -- discriminant associations
2809
2810 -------------------------------------
2811 -- 3.7.1 Discriminant Association --
2812 -------------------------------------
2813
2814 -- DISCRIMINANT_ASSOCIATION ::=
2815 -- [discriminant_SELECTOR_NAME
2816 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
2817
2818 -- Note: a discriminant association that has no selector name list
2819 -- appears directly as an expression in the tree.
2820
2821 -- N_Discriminant_Association
2822 -- Sloc points to first token of discriminant association
2823 -- Selector_Names (List1) (always non-empty, since if no selector
2824 -- names are present, this node is not used, see comment above)
2825 -- Expression (Node3)
2826
2827 ---------------------------------
2828 -- 3.8 Record Type Definition --
2829 ---------------------------------
2830
2831 -- RECORD_TYPE_DEFINITION ::=
2832 -- [[abstract] tagged] [limited] RECORD_DEFINITION
2833
2834 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
2835
2836 -- There is no explicit node in the tree for a record type definition.
2837 -- Instead the flags for Tagged_Present and Limited_Present appear in
2838 -- the N_Record_Definition node for a record definition appearing in
2839 -- the context of a record type definition.
2840
2841 ----------------------------
2842 -- 3.8 Record Definition --
2843 ----------------------------
2844
2845 -- RECORD_DEFINITION ::=
2846 -- record
2847 -- COMPONENT_LIST
2848 -- end record
2849 -- | null record
2850
2851 -- Note: the Abstract_Present, Tagged_Present and Limited_Present
2852 -- flags appear only for a record definition appearing in a record
2853 -- type definition.
2854
2855 -- Note: the NULL RECORD case is not permitted in Ada 83
2856
2857 -- N_Record_Definition
2858 -- Sloc points to RECORD or NULL
2859 -- End_Label (Node4) (set to Empty if internally generated record)
2860 -- Abstract_Present (Flag4)
2861 -- Tagged_Present (Flag15)
2862 -- Limited_Present (Flag17)
2863 -- Component_List (Node1) empty in null record case
2864 -- Null_Present (Flag13) set in null record case
2865 -- Task_Present (Flag5) set in task interfaces
2866 -- Protected_Present (Flag6) set in protected interfaces
2867 -- Synchronized_Present (Flag7) set in interfaces
2868 -- Interface_Present (Flag16) set in abstract interfaces
2869 -- Interface_List (List2) (set to No_List if none)
2870
2871 -- Note: Task_Present, Protected_Present, Synchronized _Present,
2872 -- Interface_List and Interface_Present are used for abstract
2873 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
2874
2875 -------------------------
2876 -- 3.8 Component List --
2877 -------------------------
2878
2879 -- COMPONENT_LIST ::=
2880 -- COMPONENT_ITEM {COMPONENT_ITEM}
2881 -- | {COMPONENT_ITEM} VARIANT_PART
2882 -- | null;
2883
2884 -- N_Component_List
2885 -- Sloc points to first token of component list
2886 -- Component_Items (List3)
2887 -- Variant_Part (Node4) (set to Empty if no variant part)
2888 -- Null_Present (Flag13)
2889
2890 -------------------------
2891 -- 3.8 Component Item --
2892 -------------------------
2893
2894 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
2895
2896 -- Note: A component item can also be a pragma, and in the tree
2897 -- that is obtained after semantic processing, a component item
2898 -- can be an N_Null node resulting from a non-recognized pragma.
2899
2900 --------------------------------
2901 -- 3.8 Component Declaration --
2902 --------------------------------
2903
2904 -- COMPONENT_DECLARATION ::=
2905 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
2906 -- [:= DEFAULT_EXPRESSION]
2907 -- [ASPECT_SPECIFICATIONS];
2908
2909 -- Note: although the syntax does not permit a component definition to
2910 -- be an anonymous array (and the parser will diagnose such an attempt
2911 -- with an appropriate message), it is possible for anonymous arrays
2912 -- to appear as component definitions. The semantics and back end handle
2913 -- this case properly, and the expander in fact generates such cases.
2914
2915 -- Although the syntax allows multiple identifiers in the list, the
2916 -- semantics is as though successive declarations were given with the
2917 -- same component definition and expression components. To simplify
2918 -- semantic processing, the parser represents a multiple declaration
2919 -- case as a sequence of single declarations, using the More_Ids and
2920 -- Prev_Ids flags to preserve the original source form as described
2921 -- in the section on "Handling of Defining Identifier Lists".
2922
2923 -- N_Component_Declaration
2924 -- Sloc points to first identifier
2925 -- Defining_Identifier (Node1)
2926 -- Component_Definition (Node4)
2927 -- Expression (Node3) (set to Empty if no default expression)
2928 -- More_Ids (Flag5) (set to False if no more identifiers in list)
2929 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
2930
2931 -------------------------
2932 -- 3.8.1 Variant Part --
2933 -------------------------
2934
2935 -- VARIANT_PART ::=
2936 -- case discriminant_DIRECT_NAME is
2937 -- VARIANT
2938 -- {VARIANT}
2939 -- end case;
2940
2941 -- Note: the variants list can contain pragmas as well as variants.
2942 -- In a properly formed program there is at least one variant.
2943
2944 -- N_Variant_Part
2945 -- Sloc points to CASE
2946 -- Name (Node2)
2947 -- Variants (List1)
2948
2949 --------------------
2950 -- 3.8.1 Variant --
2951 --------------------
2952
2953 -- VARIANT ::=
2954 -- when DISCRETE_CHOICE_LIST =>
2955 -- COMPONENT_LIST
2956
2957 -- N_Variant
2958 -- Sloc points to WHEN
2959 -- Discrete_Choices (List4)
2960 -- Component_List (Node1)
2961 -- Enclosing_Variant (Node2-Sem)
2962 -- Present_Expr (Uint3-Sem)
2963 -- Dcheck_Function (Node5-Sem)
2964
2965 ---------------------------------
2966 -- 3.8.1 Discrete Choice List --
2967 ---------------------------------
2968
2969 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
2970
2971 ----------------------------
2972 -- 3.8.1 Discrete Choice --
2973 ----------------------------
2974
2975 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
2976
2977 -- Note: in Ada 83 mode, the expression must be a simple expression
2978
2979 -- The only choice that appears explicitly is the OTHERS choice, as
2980 -- defined here. Other cases of discrete choice (expression and
2981 -- discrete range) appear directly. This production is also used
2982 -- for the OTHERS possibility of an exception choice.
2983
2984 -- Note: in accordance with the syntax, the parser does not check that
2985 -- OTHERS appears at the end on its own in a choice list context. This
2986 -- is a semantic check.
2987
2988 -- N_Others_Choice
2989 -- Sloc points to OTHERS
2990 -- Others_Discrete_Choices (List1-Sem)
2991 -- All_Others (Flag11-Sem)
2992
2993 ----------------------------------
2994 -- 3.9.1 Record Extension Part --
2995 ----------------------------------
2996
2997 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
2998
2999 -- Note: record extension parts are not permitted in Ada 83 mode
3000
3001 --------------------------------------
3002 -- 3.9.4 Interface Type Definition --
3003 --------------------------------------
3004
3005 -- INTERFACE_TYPE_DEFINITION ::=
3006 -- [limited | task | protected | synchronized]
3007 -- interface [interface_list]
3008
3009 -- Note: Interfaces are implemented with N_Record_Definition and
3010 -- N_Derived_Type_Definition nodes because most of the support
3011 -- for the analysis of abstract types has been reused to
3012 -- analyze abstract interfaces.
3013
3014 ----------------------------------
3015 -- 3.10 Access Type Definition --
3016 ----------------------------------
3017
3018 -- ACCESS_TYPE_DEFINITION ::=
3019 -- ACCESS_TO_OBJECT_DEFINITION
3020 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3021
3022 --------------------------
3023 -- 3.10 Null Exclusion --
3024 --------------------------
3025
3026 -- NULL_EXCLUSION ::= not null
3027
3028 ---------------------------------------
3029 -- 3.10 Access To Object Definition --
3030 ---------------------------------------
3031
3032 -- ACCESS_TO_OBJECT_DEFINITION ::=
3033 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3034 -- SUBTYPE_INDICATION
3035
3036 -- N_Access_To_Object_Definition
3037 -- Sloc points to ACCESS
3038 -- All_Present (Flag15)
3039 -- Null_Exclusion_Present (Flag11)
3040 -- Subtype_Indication (Node5)
3041 -- Constant_Present (Flag17)
3042
3043 -----------------------------------
3044 -- 3.10 General Access Modifier --
3045 -----------------------------------
3046
3047 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3048
3049 -- Note: general access modifiers are not permitted in Ada 83 mode
3050
3051 -- There is no explicit node in the tree for general access modifier.
3052 -- Instead the All_Present or Constant_Present flags are set in the
3053 -- parent node.
3054
3055 -------------------------------------------
3056 -- 3.10 Access To Subprogram Definition --
3057 -------------------------------------------
3058
3059 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3060 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3061 -- | [NULL_EXCLUSION] access [protected] function
3062 -- PARAMETER_AND_RESULT_PROFILE
3063
3064 -- Note: access to subprograms are not permitted in Ada 83 mode
3065
3066 -- N_Access_Function_Definition
3067 -- Sloc points to ACCESS
3068 -- Null_Exclusion_Present (Flag11)
3069 -- Null_Exclusion_In_Return_Present (Flag14)
3070 -- Protected_Present (Flag6)
3071 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3072 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3073
3074 -- N_Access_Procedure_Definition
3075 -- Sloc points to ACCESS
3076 -- Null_Exclusion_Present (Flag11)
3077 -- Protected_Present (Flag6)
3078 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3079
3080 -----------------------------
3081 -- 3.10 Access Definition --
3082 -----------------------------
3083
3084 -- ACCESS_DEFINITION ::=
3085 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3086 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3087
3088 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3089
3090 -- N_Access_Definition
3091 -- Sloc points to ACCESS
3092 -- Null_Exclusion_Present (Flag11)
3093 -- All_Present (Flag15)
3094 -- Constant_Present (Flag17)
3095 -- Subtype_Mark (Node4)
3096 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3097
3098 -----------------------------------------
3099 -- 3.10.1 Incomplete Type Declaration --
3100 -----------------------------------------
3101
3102 -- INCOMPLETE_TYPE_DECLARATION ::=
3103 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3104
3105 -- N_Incomplete_Type_Declaration
3106 -- Sloc points to TYPE
3107 -- Defining_Identifier (Node1)
3108 -- Discriminant_Specifications (List4) (set to No_List if no
3109 -- discriminant part, or if the discriminant part is an
3110 -- unknown discriminant part)
3111 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3112 -- Tagged_Present (Flag15)
3113
3114 ----------------------------
3115 -- 3.11 Declarative Part --
3116 ----------------------------
3117
3118 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3119
3120 -- Note: although the parser enforces the syntactic requirement that
3121 -- a declarative part can contain only declarations, the semantic
3122 -- processing may add statements to the list of actions in a
3123 -- declarative part, so the code generator should be prepared
3124 -- to accept a statement in this position.
3125
3126 ----------------------------
3127 -- 3.11 Declarative Item --
3128 ----------------------------
3129
3130 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3131
3132 ----------------------------------
3133 -- 3.11 Basic Declarative Item --
3134 ----------------------------------
3135
3136 -- BASIC_DECLARATIVE_ITEM ::=
3137 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3138
3139 ----------------
3140 -- 3.11 Body --
3141 ----------------
3142
3143 -- BODY ::= PROPER_BODY | BODY_STUB
3144
3145 -----------------------
3146 -- 3.11 Proper Body --
3147 -----------------------
3148
3149 -- PROPER_BODY ::=
3150 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3151
3152 ---------------
3153 -- 4.1 Name --
3154 ---------------
3155
3156 -- NAME ::=
3157 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3158 -- | INDEXED_COMPONENT | SLICE
3159 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3160 -- | TYPE_CONVERSION | FUNCTION_CALL
3161 -- | CHARACTER_LITERAL
3162
3163 ----------------------
3164 -- 4.1 Direct Name --
3165 ----------------------
3166
3167 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3168
3169 -----------------
3170 -- 4.1 Prefix --
3171 -----------------
3172
3173 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3174
3175 -------------------------------
3176 -- 4.1 Explicit Dereference --
3177 -------------------------------
3178
3179 -- EXPLICIT_DEREFERENCE ::= NAME . all
3180
3181 -- N_Explicit_Dereference
3182 -- Sloc points to ALL
3183 -- Prefix (Node3)
3184 -- Actual_Designated_Subtype (Node4-Sem)
3185 -- plus fields for expression
3186
3187 -------------------------------
3188 -- 4.1 Implicit Dereference --
3189 -------------------------------
3190
3191 -- IMPLICIT_DEREFERENCE ::= NAME
3192
3193 ------------------------------
3194 -- 4.1.1 Indexed Component --
3195 ------------------------------
3196
3197 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3198
3199 -- Note: the parser may generate this node in some situations where it
3200 -- should be a function call. The semantic pass must correct this
3201 -- misidentification (which is inevitable at the parser level).
3202
3203 -- N_Indexed_Component
3204 -- Sloc contains a copy of the Sloc value of the Prefix
3205 -- Prefix (Node3)
3206 -- Expressions (List1)
3207 -- plus fields for expression
3208
3209 -- Note: if any of the subscripts requires a range check, then the
3210 -- Do_Range_Check flag is set on the corresponding expression, with
3211 -- the index type being determined from the type of the Prefix, which
3212 -- references the array being indexed.
3213
3214 -- Note: in a fully analyzed and expanded indexed component node, and
3215 -- hence in any such node that gigi sees, if the prefix is an access
3216 -- type, then an explicit dereference operation has been inserted.
3217
3218 ------------------
3219 -- 4.1.2 Slice --
3220 ------------------
3221
3222 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3223
3224 -- Note: an implicit subtype is created to describe the resulting
3225 -- type, so that the bounds of this type are the bounds of the slice.
3226
3227 -- N_Slice
3228 -- Sloc points to first token of prefix
3229 -- Prefix (Node3)
3230 -- Discrete_Range (Node4)
3231 -- plus fields for expression
3232
3233 -------------------------------
3234 -- 4.1.3 Selected Component --
3235 -------------------------------
3236
3237 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3238
3239 -- Note: selected components that are semantically expanded names get
3240 -- changed during semantic processing into the separate N_Expanded_Name
3241 -- node. See description of this node in the section on semantic nodes.
3242
3243 -- N_Selected_Component
3244 -- Sloc points to period
3245 -- Prefix (Node3)
3246 -- Selector_Name (Node2)
3247 -- Associated_Node (Node4-Sem)
3248 -- Do_Discriminant_Check (Flag13-Sem)
3249 -- Is_In_Discriminant_Check (Flag11-Sem)
3250 -- plus fields for expression
3251
3252 --------------------------
3253 -- 4.1.3 Selector Name --
3254 --------------------------
3255
3256 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
3257
3258 --------------------------------
3259 -- 4.1.4 Attribute Reference --
3260 --------------------------------
3261
3262 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
3263
3264 -- Note: the syntax is quite ambiguous at this point. Consider:
3265
3266 -- A'Length (X) X is part of the attribute designator
3267 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
3268 -- A'Class (X) X is the expression of a type conversion
3269
3270 -- It would be possible for the parser to distinguish these cases
3271 -- by looking at the attribute identifier. However, that would mean
3272 -- more work in introducing new implementation defined attributes,
3273 -- and also it would mean that special processing for attributes
3274 -- would be scattered around, instead of being centralized in the
3275 -- semantic routine that handles an N_Attribute_Reference node.
3276 -- Consequently, the parser in all the above cases stores the
3277 -- expression (X in these examples) as a single element list in
3278 -- in the Expressions field of the N_Attribute_Reference node.
3279
3280 -- Similarly, for attributes like Max which take two arguments,
3281 -- we store the two arguments as a two element list in the
3282 -- Expressions field. Of course it is clear at parse time that
3283 -- this case is really a function call with an attribute as the
3284 -- prefix, but it turns out to be convenient to handle the two
3285 -- argument case in a similar manner to the one argument case,
3286 -- and indeed in general the parser will accept any number of
3287 -- expressions in this position and store them as a list in the
3288 -- attribute reference node. This allows for future addition of
3289 -- attributes that take more than two arguments.
3290
3291 -- Note: named associates are not permitted in function calls where
3292 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
3293 -- to skip the normal subprogram argument processing.
3294
3295 -- Note: for the attributes whose designators are technically keywords,
3296 -- i.e. digits, access, delta, range, the Attribute_Name field contains
3297 -- the corresponding name, even though no identifier is involved.
3298
3299 -- Note: the generated code may contain stream attributes applied to
3300 -- limited types for which no stream routines exist officially. In such
3301 -- case, the result is to use the stream attribute for the underlying
3302 -- full type, or in the case of a protected type, the components
3303 -- (including any discriminants) are merely streamed in order.
3304
3305 -- See Exp_Attr for a complete description of which attributes are
3306 -- passed onto Gigi, and which are handled entirely by the front end.
3307
3308 -- Gigi restriction: For the Pos attribute, the prefix cannot be
3309 -- a non-standard enumeration type or a nonzero/zero semantics
3310 -- boolean type, so the value is simply the stored representation.
3311
3312 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
3313 -- references a subprogram that is a renaming, then the front end must
3314 -- rewrite the attribute to refer directly to the renamed entity.
3315
3316 -- Note: In generated code, the Address and Unrestricted_Access
3317 -- attributes can be applied to any expression, and the meaning is
3318 -- to create an object containing the value (the object is in the
3319 -- current stack frame), and pass the address of this value. If the
3320 -- Must_Be_Byte_Aligned flag is set, then the object whose address
3321 -- is taken must be on a byte (storage unit) boundary, and if it is
3322 -- not (or may not be), then the generated code must create a copy
3323 -- that is byte aligned, and pass the address of this copy.
3324
3325 -- N_Attribute_Reference
3326 -- Sloc points to apostrophe
3327 -- Prefix (Node3)
3328 -- Attribute_Name (Name2) identifier name from attribute designator
3329 -- Expressions (List1) (set to No_List if no associated expressions)
3330 -- Entity (Node4-Sem) used if the attribute yields a type
3331 -- Associated_Node (Node4-Sem)
3332 -- Do_Overflow_Check (Flag17-Sem)
3333 -- Redundant_Use (Flag13-Sem)
3334 -- Must_Be_Byte_Aligned (Flag14)
3335 -- plus fields for expression
3336
3337 ---------------------------------
3338 -- 4.1.4 Attribute Designator --
3339 ---------------------------------
3340
3341 -- ATTRIBUTE_DESIGNATOR ::=
3342 -- IDENTIFIER [(static_EXPRESSION)]
3343 -- | access | delta | digits
3344
3345 -- There is no explicit node in the tree for an attribute designator.
3346 -- Instead the Attribute_Name and Expressions fields of the parent
3347 -- node (N_Attribute_Reference node) hold the information.
3348
3349 -- Note: if ACCESS, DELTA or DIGITS appears in an attribute
3350 -- designator, then they are treated as identifiers internally
3351 -- rather than the keywords of the same name.
3352
3353 --------------------------------------
3354 -- 4.1.4 Range Attribute Reference --
3355 --------------------------------------
3356
3357 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
3358
3359 -- A range attribute reference is represented in the tree using the
3360 -- normal N_Attribute_Reference node.
3361
3362 ---------------------------------------
3363 -- 4.1.4 Range Attribute Designator --
3364 ---------------------------------------
3365
3366 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
3367
3368 -- A range attribute designator is represented in the tree using the
3369 -- normal N_Attribute_Reference node.
3370
3371 --------------------
3372 -- 4.3 Aggregate --
3373 --------------------
3374
3375 -- AGGREGATE ::=
3376 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
3377
3378 -----------------------------
3379 -- 4.3.1 Record Aggregate --
3380 -----------------------------
3381
3382 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
3383
3384 -- N_Aggregate
3385 -- Sloc points to left parenthesis
3386 -- Expressions (List1) (set to No_List if none or null record case)
3387 -- Component_Associations (List2) (set to No_List if none)
3388 -- Null_Record_Present (Flag17)
3389 -- Aggregate_Bounds (Node3-Sem)
3390 -- Associated_Node (Node4-Sem)
3391 -- Static_Processing_OK (Flag4-Sem)
3392 -- Compile_Time_Known_Aggregate (Flag18-Sem)
3393 -- Expansion_Delayed (Flag11-Sem)
3394 -- Has_Self_Reference (Flag13-Sem)
3395 -- plus fields for expression
3396
3397 -- Note: this structure is used for both record and array aggregates
3398 -- since the two cases are not separable by the parser. The parser
3399 -- makes no attempt to enforce consistency here, so it is up to the
3400 -- semantic phase to make sure that the aggregate is consistent (i.e.
3401 -- that it is not a "half-and-half" case that mixes record and array
3402 -- syntax. In particular, for a record aggregate, the expressions
3403 -- field will be set if there are positional associations.
3404
3405 -- Note: N_Aggregate is not used for all aggregates; in particular,
3406 -- there is a separate node kind for extension aggregates.
3407
3408 -- Note: gigi/gcc can handle array aggregates correctly providing that
3409 -- they are entirely positional, and the array subtype involved has a
3410 -- known at compile time length and is not bit packed, or a convention
3411 -- Fortran array with more than one dimension. If these conditions
3412 -- are not met, then the front end must translate the aggregate into
3413 -- an appropriate set of assignments into a temporary.
3414
3415 -- Note: for the record aggregate case, gigi/gcc can handle all cases of
3416 -- record aggregates, including those for packed, and rep-claused
3417 -- records, and also variant records, providing that there are no
3418 -- variable length fields whose size is not known at compile time, and
3419 -- providing that the aggregate is presented in fully named form.
3420
3421 ----------------------------------------------
3422 -- 4.3.1 Record Component Association List --
3423 ----------------------------------------------
3424
3425 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
3426 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
3427 -- | null record
3428
3429 -- There is no explicit node in the tree for a record component
3430 -- association list. Instead the Null_Record_Present flag is set in
3431 -- the parent node for the NULL RECORD case.
3432
3433 ------------------------------------------------------
3434 -- 4.3.1 Record Component Association (also 4.3.3) --
3435 ------------------------------------------------------
3436
3437 -- RECORD_COMPONENT_ASSOCIATION ::=
3438 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
3439
3440 -- N_Component_Association
3441 -- Sloc points to first selector name
3442 -- Choices (List1)
3443 -- Loop_Actions (List2-Sem)
3444 -- Expression (Node3)
3445 -- Box_Present (Flag15)
3446 -- Inherited_Discriminant (Flag13)
3447
3448 -- Note: this structure is used for both record component associations
3449 -- and array component associations, since the two cases aren't always
3450 -- separable by the parser. The choices list may represent either a
3451 -- list of selector names in the record aggregate case, or a list of
3452 -- discrete choices in the array aggregate case or an N_Others_Choice
3453 -- node (which appears as a singleton list). Box_Present gives support
3454 -- to Ada 2005 (AI-287).
3455
3456 ----------------------------------
3457 -- 4.3.1 Component Choice List --
3458 ----------------------------------
3459
3460 -- COMPONENT_CHOICE_LIST ::=
3461 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
3462 -- | others
3463
3464 -- The entries of a component choice list appear in the Choices list of
3465 -- the associated N_Component_Association, as either selector names, or
3466 -- as an N_Others_Choice node.
3467
3468 --------------------------------
3469 -- 4.3.2 Extension Aggregate --
3470 --------------------------------
3471
3472 -- EXTENSION_AGGREGATE ::=
3473 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
3474
3475 -- Note: extension aggregates are not permitted in Ada 83 mode
3476
3477 -- N_Extension_Aggregate
3478 -- Sloc points to left parenthesis
3479 -- Ancestor_Part (Node3)
3480 -- Associated_Node (Node4-Sem)
3481 -- Expressions (List1) (set to No_List if none or null record case)
3482 -- Component_Associations (List2) (set to No_List if none)
3483 -- Null_Record_Present (Flag17)
3484 -- Expansion_Delayed (Flag11-Sem)
3485 -- Has_Self_Reference (Flag13-Sem)
3486 -- plus fields for expression
3487
3488 --------------------------
3489 -- 4.3.2 Ancestor Part --
3490 --------------------------
3491
3492 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
3493
3494 ----------------------------
3495 -- 4.3.3 Array Aggregate --
3496 ----------------------------
3497
3498 -- ARRAY_AGGREGATE ::=
3499 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
3500
3501 ---------------------------------------
3502 -- 4.3.3 Positional Array Aggregate --
3503 ---------------------------------------
3504
3505 -- POSITIONAL_ARRAY_AGGREGATE ::=
3506 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
3507 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
3508
3509 -- See Record_Aggregate (4.3.1) for node structure
3510
3511 ----------------------------------
3512 -- 4.3.3 Named Array Aggregate --
3513 ----------------------------------
3514
3515 -- NAMED_ARRAY_AGGREGATE ::=
3516 -- | (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
3517
3518 -- See Record_Aggregate (4.3.1) for node structure
3519
3520 ----------------------------------------
3521 -- 4.3.3 Array Component Association --
3522 ----------------------------------------
3523
3524 -- ARRAY_COMPONENT_ASSOCIATION ::=
3525 -- DISCRETE_CHOICE_LIST => EXPRESSION
3526
3527 -- See Record_Component_Association (4.3.1) for node structure
3528
3529 --------------------------------------------------
3530 -- 4.4 Expression/Relation/Term/Factor/Primary --
3531 --------------------------------------------------
3532
3533 -- EXPRESSION ::=
3534 -- RELATION {LOGICAL_OPERATOR RELATION}
3535
3536 -- CHOICE_EXPRESSION ::=
3537 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
3538
3539 -- CHOICE_RELATION ::=
3540 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
3541
3542 -- RELATION ::=
3543 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3544
3545 -- MEMBERSHIP_CHOICE_LIST ::=
3546 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3547
3548 -- MEMBERSHIP_CHOICE ::=
3549 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3550
3551 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
3552
3553 -- SIMPLE_EXPRESSION ::=
3554 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
3555
3556 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
3557
3558 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
3559
3560 -- No nodes are generated for any of these constructs. Instead, the
3561 -- node for the operator appears directly. When we refer to an
3562 -- expression in this description, we mean any of the possible
3563 -- constituent components of an expression (e.g. identifier is
3564 -- an example of an expression).
3565
3566 -- Note: the above syntax is that Ada 2012 syntax which restricts
3567 -- choice relations to simple expressions to avoid ambiguities in
3568 -- some contexts with set membership notation. It has been decided
3569 -- that in retrospect, the Ada 95 change allowing general expressions
3570 -- in this context was a mistake, so we have reverted to the above
3571 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
3572 -- expressions was there in Ada 83 from the start).
3573
3574 ------------------
3575 -- 4.4 Primary --
3576 ------------------
3577
3578 -- PRIMARY ::=
3579 -- NUMERIC_LITERAL | null
3580 -- | STRING_LITERAL | AGGREGATE
3581 -- | NAME | QUALIFIED_EXPRESSION
3582 -- | ALLOCATOR | (EXPRESSION)
3583
3584 -- Usually there is no explicit node in the tree for primary. Instead
3585 -- the constituent (e.g. AGGREGATE) appears directly. There are two
3586 -- exceptions. First, there is an explicit node for a null primary.
3587
3588 -- N_Null
3589 -- Sloc points to NULL
3590 -- plus fields for expression
3591
3592 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
3593 -- that the parser keep track of which subexpressions are enclosed
3594 -- in parentheses, and how many levels of parentheses are used. This
3595 -- information is required for optimization purposes, and also for
3596 -- some semantic checks (e.g. (((1))) in a procedure spec does not
3597 -- conform with ((((1)))) in the body).
3598
3599 -- The parentheses are recorded by keeping a Paren_Count field in every
3600 -- subexpression node (it is actually present in all nodes, but only
3601 -- used in subexpression nodes). This count records the number of
3602 -- levels of parentheses. If the number of levels in the source exceeds
3603 -- the maximum accommodated by this count, then the count is simply left
3604 -- at the maximum value. This means that there are some pathological
3605 -- cases of failure to detect conformance failures (e.g. an expression
3606 -- with 500 levels of parens will conform with one with 501 levels),
3607 -- but we do not need to lose sleep over this.
3608
3609 -- Historical note: in versions of GNAT prior to 1.75, there was a node
3610 -- type N_Parenthesized_Expression used to accurately record unlimited
3611 -- numbers of levels of parentheses. However, it turned out to be a
3612 -- real nuisance to have to take into account the possible presence of
3613 -- this node during semantic analysis, since basically parentheses have
3614 -- zero relevance to semantic analysis.
3615
3616 -- Note: the level of parentheses always present in things like
3617 -- aggregates does not count, only the parentheses in the primary
3618 -- (EXPRESSION) affect the setting of the Paren_Count field.
3619
3620 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
3621 -- treated as though it were Empty) if No_Initialization is set True.
3622
3623 --------------------------------------
3624 -- 4.5 Short Circuit Control Forms --
3625 --------------------------------------
3626
3627 -- EXPRESSION ::=
3628 -- RELATION {and then RELATION} | RELATION {or else RELATION}
3629
3630 -- Gigi restriction: For both these control forms, the operand and
3631 -- result types are always Standard.Boolean. The expander inserts the
3632 -- required conversion operations where needed to ensure this is the
3633 -- case.
3634
3635 -- N_And_Then
3636 -- Sloc points to AND of AND THEN
3637 -- Left_Opnd (Node2)
3638 -- Right_Opnd (Node3)
3639 -- Actions (List1-Sem)
3640 -- plus fields for expression
3641
3642 -- N_Or_Else
3643 -- Sloc points to OR of OR ELSE
3644 -- Left_Opnd (Node2)
3645 -- Right_Opnd (Node3)
3646 -- Actions (List1-Sem)
3647 -- plus fields for expression
3648
3649 -- Note: The Actions field is used to hold actions associated with
3650 -- the right hand operand. These have to be treated specially since
3651 -- they are not unconditionally executed. See Insert_Actions for a
3652 -- more detailed description of how these actions are handled.
3653
3654 ---------------------------
3655 -- 4.5 Membership Tests --
3656 ---------------------------
3657
3658 -- RELATION ::=
3659 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
3660
3661 -- MEMBERSHIP_CHOICE_LIST ::=
3662 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
3663
3664 -- MEMBERSHIP_CHOICE ::=
3665 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
3666
3667 -- Note: although the grammar above allows only a range or a subtype
3668 -- mark, the parser in fact will accept any simple expression in place
3669 -- of a subtype mark. This means that the semantic analyzer must be able
3670 -- to deal with, and diagnose a simple expression other than a name for
3671 -- the right operand. This simplifies error recovery in the parser.
3672
3673 -- The Alternatives field below is present only if there is more
3674 -- than one Membership_Choice present (which is legitimate only in
3675 -- Ada 2012 mode) in which case Right_Opnd is Empty, and Alternatives
3676 -- contains the list of choices. In the tree passed to the back end,
3677 -- Alternatives is always No_List, and Right_Opnd is set (i.e. the
3678 -- expansion circuitry expands out the complex set membership case
3679 -- using simple membership operations).
3680
3681 -- Should we rename Alternatives here to Membership_Choices ???
3682
3683 -- N_In
3684 -- Sloc points to IN
3685 -- Left_Opnd (Node2)
3686 -- Right_Opnd (Node3)
3687 -- Alternatives (List4) (set to No_List if only one set alternative)
3688 -- plus fields for expression
3689
3690 -- N_Not_In
3691 -- Sloc points to NOT of NOT IN
3692 -- Left_Opnd (Node2)
3693 -- Right_Opnd (Node3)
3694 -- Alternatives (List4) (set to No_List if only one set alternative)
3695 -- plus fields for expression
3696
3697 --------------------
3698 -- 4.5 Operators --
3699 --------------------
3700
3701 -- LOGICAL_OPERATOR ::= and | or | xor
3702
3703 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
3704
3705 -- BINARY_ADDING_OPERATOR ::= + | - | &
3706
3707 -- UNARY_ADDING_OPERATOR ::= + | -
3708
3709 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
3710
3711 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
3712
3713 -- Sprint syntax if Treat_Fixed_As_Integer is set:
3714
3715 -- x #* y
3716 -- x #/ y
3717 -- x #mod y
3718 -- x #rem y
3719
3720 -- Gigi restriction: For * / mod rem with fixed-point operands, Gigi
3721 -- will only be given nodes with the Treat_Fixed_As_Integer flag set.
3722 -- All handling of smalls for multiplication and division is handled
3723 -- by the front end (mod and rem result only from expansion). Gigi
3724 -- thus never needs to worry about small values (for other operators
3725 -- operating on fixed-point, e.g. addition, the small value does not
3726 -- have any semantic effect anyway, these are always integer operations.
3727
3728 -- Gigi restriction: For all operators taking Boolean operands, the
3729 -- type is always Standard.Boolean. The expander inserts the required
3730 -- conversion operations where needed to ensure this is the case.
3731
3732 -- N_Op_And
3733 -- Sloc points to AND
3734 -- Do_Length_Check (Flag4-Sem)
3735 -- plus fields for binary operator
3736 -- plus fields for expression
3737
3738 -- N_Op_Or
3739 -- Sloc points to OR
3740 -- Do_Length_Check (Flag4-Sem)
3741 -- plus fields for binary operator
3742 -- plus fields for expression
3743
3744 -- N_Op_Xor
3745 -- Sloc points to XOR
3746 -- Do_Length_Check (Flag4-Sem)
3747 -- plus fields for binary operator
3748 -- plus fields for expression
3749
3750 -- N_Op_Eq
3751 -- Sloc points to =
3752 -- plus fields for binary operator
3753 -- plus fields for expression
3754
3755 -- N_Op_Ne
3756 -- Sloc points to /=
3757 -- plus fields for binary operator
3758 -- plus fields for expression
3759
3760 -- N_Op_Lt
3761 -- Sloc points to <
3762 -- plus fields for binary operator
3763 -- plus fields for expression
3764
3765 -- N_Op_Le
3766 -- Sloc points to <=
3767 -- plus fields for binary operator
3768 -- plus fields for expression
3769
3770 -- N_Op_Gt
3771 -- Sloc points to >
3772 -- plus fields for binary operator
3773 -- plus fields for expression
3774
3775 -- N_Op_Ge
3776 -- Sloc points to >=
3777 -- plus fields for binary operator
3778 -- plus fields for expression
3779
3780 -- N_Op_Add
3781 -- Sloc points to + (binary)
3782 -- plus fields for binary operator
3783 -- plus fields for expression
3784
3785 -- N_Op_Subtract
3786 -- Sloc points to - (binary)
3787 -- plus fields for binary operator
3788 -- plus fields for expression
3789
3790 -- N_Op_Concat
3791 -- Sloc points to &
3792 -- Is_Component_Left_Opnd (Flag13-Sem)
3793 -- Is_Component_Right_Opnd (Flag14-Sem)
3794 -- plus fields for binary operator
3795 -- plus fields for expression
3796
3797 -- N_Op_Multiply
3798 -- Sloc points to *
3799 -- Treat_Fixed_As_Integer (Flag14-Sem)
3800 -- Rounded_Result (Flag18-Sem)
3801 -- plus fields for binary operator
3802 -- plus fields for expression
3803
3804 -- N_Op_Divide
3805 -- Sloc points to /
3806 -- Treat_Fixed_As_Integer (Flag14-Sem)
3807 -- Do_Division_Check (Flag13-Sem)
3808 -- Rounded_Result (Flag18-Sem)
3809 -- plus fields for binary operator
3810 -- plus fields for expression
3811
3812 -- N_Op_Mod
3813 -- Sloc points to MOD
3814 -- Treat_Fixed_As_Integer (Flag14-Sem)
3815 -- Do_Division_Check (Flag13-Sem)
3816 -- plus fields for binary operator
3817 -- plus fields for expression
3818
3819 -- N_Op_Rem
3820 -- Sloc points to REM
3821 -- Treat_Fixed_As_Integer (Flag14-Sem)
3822 -- Do_Division_Check (Flag13-Sem)
3823 -- plus fields for binary operator
3824 -- plus fields for expression
3825
3826 -- N_Op_Expon
3827 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
3828 -- Sloc points to **
3829 -- plus fields for binary operator
3830 -- plus fields for expression
3831
3832 -- N_Op_Plus
3833 -- Sloc points to + (unary)
3834 -- plus fields for unary operator
3835 -- plus fields for expression
3836
3837 -- N_Op_Minus
3838 -- Sloc points to - (unary)
3839 -- plus fields for unary operator
3840 -- plus fields for expression
3841
3842 -- N_Op_Abs
3843 -- Sloc points to ABS
3844 -- plus fields for unary operator
3845 -- plus fields for expression
3846
3847 -- N_Op_Not
3848 -- Sloc points to NOT
3849 -- plus fields for unary operator
3850 -- plus fields for expression
3851
3852 -- See also shift operators in section B.2
3853
3854 -- Note on fixed-point operations passed to Gigi: For adding operators,
3855 -- the semantics is to treat these simply as integer operations, with
3856 -- the small values being ignored (the bounds are already stored in
3857 -- units of small, so that constraint checking works as usual). For the
3858 -- case of multiply/divide/rem/mod operations, Gigi will only see fixed
3859 -- point operands if the Treat_Fixed_As_Integer flag is set and will
3860 -- thus treat these nodes in identical manner, ignoring small values.
3861
3862 ---------------------------------
3863 -- 4.5.9 Quantified Expression --
3864 ---------------------------------
3865
3866 -- QUANTIFIED_EXPRESSION ::=
3867 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
3868 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
3869 --
3870 -- QUANTIFIER ::= all | some
3871
3872 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
3873 -- is present at a time, in which case the other one is empty.
3874
3875 -- N_Quantified_Expression
3876 -- Sloc points to FOR
3877 -- Iterator_Specification (Node2)
3878 -- Loop_Parameter_Specification (Node4)
3879 -- Condition (Node1)
3880 -- All_Present (Flag15)
3881
3882 --------------------------
3883 -- 4.6 Type Conversion --
3884 --------------------------
3885
3886 -- TYPE_CONVERSION ::=
3887 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
3888
3889 -- In the (NAME) case, the name is stored as the expression
3890
3891 -- Note: the parser never generates a type conversion node, since it
3892 -- looks like an indexed component which is generated by preference.
3893 -- The semantic pass must correct this misidentification.
3894
3895 -- Gigi handles conversions that involve no change in the root type,
3896 -- and also all conversions from integer to floating-point types.
3897 -- Conversions from floating-point to integer are only handled in
3898 -- the case where Float_Truncate flag set. Other conversions from
3899 -- floating-point to integer (involving rounding) and all conversions
3900 -- involving fixed-point types are handled by the expander.
3901
3902 -- Sprint syntax if Float_Truncate set: X^(Y)
3903 -- Sprint syntax if Conversion_OK set X?(Y)
3904 -- Sprint syntax if both flags set X?^(Y)
3905
3906 -- Note: If either the operand or result type is fixed-point, Gigi will
3907 -- only see a type conversion node with Conversion_OK set. The front end
3908 -- takes care of all handling of small's for fixed-point conversions.
3909
3910 -- N_Type_Conversion
3911 -- Sloc points to first token of subtype mark
3912 -- Subtype_Mark (Node4)
3913 -- Expression (Node3)
3914 -- Do_Tag_Check (Flag13-Sem)
3915 -- Do_Length_Check (Flag4-Sem)
3916 -- Do_Overflow_Check (Flag17-Sem)
3917 -- Float_Truncate (Flag11-Sem)
3918 -- Rounded_Result (Flag18-Sem)
3919 -- Conversion_OK (Flag14-Sem)
3920 -- plus fields for expression
3921
3922 -- Note: if a range check is required, then the Do_Range_Check flag
3923 -- is set in the Expression with the check being done against the
3924 -- target type range (after the base type conversion, if any).
3925
3926 -------------------------------
3927 -- 4.7 Qualified Expression --
3928 -------------------------------
3929
3930 -- QUALIFIED_EXPRESSION ::=
3931 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
3932
3933 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
3934 -- the expression, so the Expression field of this node always points
3935 -- to a parenthesized expression in this case (i.e. Paren_Count will
3936 -- always be non-zero for the referenced expression if it is not an
3937 -- aggregate).
3938
3939 -- N_Qualified_Expression
3940 -- Sloc points to apostrophe
3941 -- Subtype_Mark (Node4)
3942 -- Expression (Node3) expression or aggregate
3943 -- plus fields for expression
3944
3945 --------------------
3946 -- 4.8 Allocator --
3947 --------------------
3948
3949 -- ALLOCATOR ::=
3950 -- new [NULL_EXCLUSION] SUBTYPE_INDICATION | new QUALIFIED_EXPRESSION
3951
3952 -- Sprint syntax (when storage pool present)
3953 -- new xxx (storage_pool = pool)
3954
3955 -- N_Allocator
3956 -- Sloc points to NEW
3957 -- Expression (Node3) subtype indication or qualified expression
3958 -- Storage_Pool (Node1-Sem)
3959 -- Procedure_To_Call (Node2-Sem)
3960 -- Coextensions (Elist4-Sem)
3961 -- Null_Exclusion_Present (Flag11)
3962 -- No_Initialization (Flag13-Sem)
3963 -- Is_Static_Coextension (Flag14-Sem)
3964 -- Do_Storage_Check (Flag17-Sem)
3965 -- Is_Dynamic_Coextension (Flag18-Sem)
3966 -- plus fields for expression
3967
3968 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
3969 -- This flag has a special function in conjunction with the restriction
3970 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
3971 -- is not set. This means that if a source allocator is replaced with
3972 -- a constructed allocator, the Comes_From_Source flag should be copied
3973 -- to the newly created allocator.
3974
3975 ---------------------------------
3976 -- 5.1 Sequence Of Statements --
3977 ---------------------------------
3978
3979 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
3980
3981 -- Note: Although the parser will not accept a declaration as a
3982 -- statement, the semantic analyzer may insert declarations (e.g.
3983 -- declarations of implicit types needed for execution of other
3984 -- statements) into a sequence of statements, so the code generator
3985 -- should be prepared to accept a declaration where a statement is
3986 -- expected. Note also that pragmas can appear as statements.
3987
3988 --------------------
3989 -- 5.1 Statement --
3990 --------------------
3991
3992 -- STATEMENT ::=
3993 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
3994
3995 -- There is no explicit node in the tree for a statement. Instead, the
3996 -- individual statement appears directly. Labels are treated as a
3997 -- kind of statement, i.e. they are linked into a statement list at
3998 -- the point they appear, so the labeled statement appears following
3999 -- the label or labels in the statement list.
4000
4001 ---------------------------
4002 -- 5.1 Simple Statement --
4003 ---------------------------
4004
4005 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4006 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4007 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4008 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4009 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4010 -- | ABORT_STATEMENT | RAISE_STATEMENT
4011 -- | CODE_STATEMENT
4012
4013 -----------------------------
4014 -- 5.1 Compound Statement --
4015 -----------------------------
4016
4017 -- COMPOUND_STATEMENT ::=
4018 -- IF_STATEMENT | CASE_STATEMENT
4019 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4020 -- | EXTENDED_RETURN_STATEMENT
4021 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4022
4023 -------------------------
4024 -- 5.1 Null Statement --
4025 -------------------------
4026
4027 -- NULL_STATEMENT ::= null;
4028
4029 -- N_Null_Statement
4030 -- Sloc points to NULL
4031
4032 ----------------
4033 -- 5.1 Label --
4034 ----------------
4035
4036 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4037
4038 -- Note that the occurrence of a label is not a defining identifier,
4039 -- but rather a referencing occurrence. The defining occurrence is
4040 -- in the implicit label declaration which occurs in the innermost
4041 -- enclosing block.
4042
4043 -- N_Label
4044 -- Sloc points to <<
4045 -- Identifier (Node1) direct name of statement identifier
4046 -- Exception_Junk (Flag8-Sem)
4047
4048 -- Note: Before Ada 2012, a label is always followed by a statement,
4049 -- and this is true in the tree even in Ada 2012 mode (the parser
4050 -- inserts a null statement marked with Comes_From_Source False).
4051
4052 -------------------------------
4053 -- 5.1 Statement Identifier --
4054 -------------------------------
4055
4056 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4057
4058 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4059 -- (not an OPERATOR_SYMBOL)
4060
4061 -------------------------------
4062 -- 5.2 Assignment Statement --
4063 -------------------------------
4064
4065 -- ASSIGNMENT_STATEMENT ::=
4066 -- variable_NAME := EXPRESSION;
4067
4068 -- N_Assignment_Statement
4069 -- Sloc points to :=
4070 -- Name (Node2)
4071 -- Expression (Node3)
4072 -- Do_Tag_Check (Flag13-Sem)
4073 -- Do_Length_Check (Flag4-Sem)
4074 -- Forwards_OK (Flag5-Sem)
4075 -- Backwards_OK (Flag6-Sem)
4076 -- No_Ctrl_Actions (Flag7-Sem)
4077 -- Componentwise_Assignment (Flag14-Sem)
4078 -- Suppress_Assignment_Checks (Flag18-Sem)
4079
4080 -- Note: if a range check is required, then the Do_Range_Check flag
4081 -- is set in the Expression (right hand side), with the check being
4082 -- done against the type of the Name (left hand side).
4083
4084 -- Note: the back end places some restrictions on the form of the
4085 -- Expression field. If the object being assigned to is Atomic, then
4086 -- the Expression may not have the form of an aggregate (since this
4087 -- might cause the back end to generate separate assignments). In this
4088 -- case the front end must generate an extra temporary and initialize
4089 -- this temporary as required (the temporary itself is not atomic).
4090
4091 -----------------------
4092 -- 5.3 If Statement --
4093 -----------------------
4094
4095 -- IF_STATEMENT ::=
4096 -- if CONDITION then
4097 -- SEQUENCE_OF_STATEMENTS
4098 -- {elsif CONDITION then
4099 -- SEQUENCE_OF_STATEMENTS}
4100 -- [else
4101 -- SEQUENCE_OF_STATEMENTS]
4102 -- end if;
4103
4104 -- Gigi restriction: This expander ensures that the type of the
4105 -- Condition fields is always Standard.Boolean, even if the type
4106 -- in the source is some non-standard boolean type.
4107
4108 -- N_If_Statement
4109 -- Sloc points to IF
4110 -- Condition (Node1)
4111 -- Then_Statements (List2)
4112 -- Elsif_Parts (List3) (set to No_List if none present)
4113 -- Else_Statements (List4) (set to No_List if no else part present)
4114 -- End_Span (Uint5) (set to No_Uint if expander generated)
4115
4116 -- N_Elsif_Part
4117 -- Sloc points to ELSIF
4118 -- Condition (Node1)
4119 -- Then_Statements (List2)
4120 -- Condition_Actions (List3-Sem)
4121
4122 --------------------
4123 -- 5.3 Condition --
4124 --------------------
4125
4126 -- CONDITION ::= boolean_EXPRESSION
4127
4128 -------------------------
4129 -- 5.4 Case Statement --
4130 -------------------------
4131
4132 -- CASE_STATEMENT ::=
4133 -- case EXPRESSION is
4134 -- CASE_STATEMENT_ALTERNATIVE
4135 -- {CASE_STATEMENT_ALTERNATIVE}
4136 -- end case;
4137
4138 -- Note: the Alternatives can contain pragmas. These only occur at
4139 -- the start of the list, since any pragmas occurring after the first
4140 -- alternative are absorbed into the corresponding statement sequence.
4141
4142 -- N_Case_Statement
4143 -- Sloc points to CASE
4144 -- Expression (Node3)
4145 -- Alternatives (List4)
4146 -- End_Span (Uint5) (set to No_Uint if expander generated)
4147
4148 -- Note: Before Ada 2012, a pragma in a statement sequence is always
4149 -- followed by a statement, and this is true in the tree even in Ada
4150 -- 2012 mode (the parser inserts a null statement marked with the flag
4151 -- Comes_From_Source False).
4152
4153 -------------------------------------
4154 -- 5.4 Case Statement Alternative --
4155 -------------------------------------
4156
4157 -- CASE_STATEMENT_ALTERNATIVE ::=
4158 -- when DISCRETE_CHOICE_LIST =>
4159 -- SEQUENCE_OF_STATEMENTS
4160
4161 -- N_Case_Statement_Alternative
4162 -- Sloc points to WHEN
4163 -- Discrete_Choices (List4)
4164 -- Statements (List3)
4165
4166 -------------------------
4167 -- 5.5 Loop Statement --
4168 -------------------------
4169
4170 -- LOOP_STATEMENT ::=
4171 -- [loop_STATEMENT_IDENTIFIER :]
4172 -- [ITERATION_SCHEME] loop
4173 -- SEQUENCE_OF_STATEMENTS
4174 -- end loop [loop_IDENTIFIER];
4175
4176 -- Note: The occurrence of a loop label is not a defining identifier
4177 -- but rather a referencing occurrence. The defining occurrence is in
4178 -- the implicit label declaration which occurs in the innermost
4179 -- enclosing block.
4180
4181 -- Note: there is always a loop statement identifier present in
4182 -- the tree, even if none was given in the source. In the case where
4183 -- no loop identifier is given in the source, the parser creates
4184 -- a name of the form _Loop_n, where n is a decimal integer (the
4185 -- two underlines ensure that the loop names created in this manner
4186 -- do not conflict with any user defined identifiers), and the flag
4187 -- Has_Created_Identifier is set to True. The only exception to the
4188 -- rule that all loop statement nodes have identifiers occurs for
4189 -- loops constructed by the expander, and the semantic analyzer will
4190 -- create and supply dummy loop identifiers in these cases.
4191
4192 -- N_Loop_Statement
4193 -- Sloc points to LOOP
4194 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
4195 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
4196 -- Statements (List3)
4197 -- End_Label (Node4)
4198 -- Has_Created_Identifier (Flag15)
4199 -- Is_Null_Loop (Flag16)
4200 -- Suppress_Loop_Warnings (Flag17)
4201
4202 -- Note: the parser fills in the Identifier field if there is an
4203 -- explicit loop identifier. Otherwise the parser leaves this field
4204 -- set to Empty, and then the semantic processing for a loop statement
4205 -- creates an identifier, setting the Has_Created_Identifier flag to
4206 -- True. So after semantic analysis, the Identifier is always set,
4207 -- referencing an identifier whose entity has an Ekind of E_Loop.
4208
4209 --------------------------
4210 -- 5.5 Iteration Scheme --
4211 --------------------------
4212
4213 -- ITERATION_SCHEME ::=
4214 -- while CONDITION
4215 -- | for LOOP_PARAMETER_SPECIFICATION
4216 -- | for ITERATOR_SPECIFICATION
4217
4218 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4219 -- is present at a time, in which case the other one is empty. Both are
4220 -- empty in the case of a WHILE loop.
4221
4222 -- Gigi restriction: This expander ensures that the type of the
4223 -- Condition field is always Standard.Boolean, even if the type
4224 -- in the source is some non-standard boolean type.
4225
4226 -- N_Iteration_Scheme
4227 -- Sloc points to WHILE or FOR
4228 -- Condition (Node1) (set to Empty if FOR case)
4229 -- Condition_Actions (List3-Sem)
4230 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
4231 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
4232
4233 ---------------------------------------
4234 -- 5.5 Loop parameter specification --
4235 ---------------------------------------
4236
4237 -- LOOP_PARAMETER_SPECIFICATION ::=
4238 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
4239
4240 -- N_Loop_Parameter_Specification
4241 -- Sloc points to first identifier
4242 -- Defining_Identifier (Node1)
4243 -- Reverse_Present (Flag15)
4244 -- Discrete_Subtype_Definition (Node4)
4245
4246 ----------------------------------
4247 -- 5.5.1 Iterator specification --
4248 ----------------------------------
4249
4250 -- ITERATOR_SPECIFICATION ::=
4251 -- DEFINING_IDENTIFIER in [reverse] NAME
4252 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
4253
4254 -- N_Iterator_Specification
4255 -- Sloc points to defining identifier
4256 -- Defining_Identifier (Node1)
4257 -- Name (Node2)
4258 -- Reverse_Present (Flag15)
4259 -- Of_Present (Flag16)
4260 -- Subtype_Indication (Node5)
4261
4262 -- Note: The Of_Present flag distinguishes the two forms
4263
4264 --------------------------
4265 -- 5.6 Block Statement --
4266 --------------------------
4267
4268 -- BLOCK_STATEMENT ::=
4269 -- [block_STATEMENT_IDENTIFIER:]
4270 -- [declare
4271 -- DECLARATIVE_PART]
4272 -- begin
4273 -- HANDLED_SEQUENCE_OF_STATEMENTS
4274 -- end [block_IDENTIFIER];
4275
4276 -- Note that the occurrence of a block identifier is not a defining
4277 -- identifier, but rather a referencing occurrence. The defining
4278 -- occurrence is an E_Block entity declared by the implicit label
4279 -- declaration which occurs in the innermost enclosing block statement
4280 -- or body; the block identifier denotes that E_Block.
4281
4282 -- For block statements that come from source code, there is always a
4283 -- block statement identifier present in the tree, denoting an
4284 -- E_Block. In the case where no block identifier is given in the
4285 -- source, the parser creates a name of the form B_n, where n is a
4286 -- decimal integer, and the flag Has_Created_Identifier is set to
4287 -- True. Blocks constructed by the expander usually have no identifier,
4288 -- and no corresponding entity.
4289
4290 -- Note: the block statement created for an extended return statement
4291 -- has an entity, and this entity is an E_Return_Statement, rather than
4292 -- the usual E_Block.
4293
4294 -- Note: Exception_Junk is set for the wrapping blocks created during
4295 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
4296
4297 -- N_Block_Statement
4298 -- Sloc points to DECLARE or BEGIN
4299 -- Identifier (Node1) block direct name (set to Empty if not present)
4300 -- Declarations (List2) (set to No_List if no DECLARE part)
4301 -- Handled_Statement_Sequence (Node4)
4302 -- Is_Task_Master (Flag5-Sem)
4303 -- Activation_Chain_Entity (Node3-Sem)
4304 -- Has_Created_Identifier (Flag15)
4305 -- Is_Task_Allocation_Block (Flag6)
4306 -- Is_Asynchronous_Call_Block (Flag7)
4307 -- Exception_Junk (Flag8-Sem)
4308
4309 -------------------------
4310 -- 5.7 Exit Statement --
4311 -------------------------
4312
4313 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
4314
4315 -- Gigi restriction: This expander ensures that the type of the
4316 -- Condition field is always Standard.Boolean, even if the type
4317 -- in the source is some non-standard boolean type.
4318
4319 -- N_Exit_Statement
4320 -- Sloc points to EXIT
4321 -- Name (Node2) (set to Empty if no loop name present)
4322 -- Condition (Node1) (set to Empty if no WHEN part present)
4323 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
4324
4325 -------------------------
4326 -- 5.9 Goto Statement --
4327 -------------------------
4328
4329 -- GOTO_STATEMENT ::= goto label_NAME;
4330
4331 -- N_Goto_Statement
4332 -- Sloc points to GOTO
4333 -- Name (Node2)
4334 -- Exception_Junk (Flag8-Sem)
4335
4336 ---------------------------------
4337 -- 6.1 Subprogram Declaration --
4338 ---------------------------------
4339
4340 -- SUBPROGRAM_DECLARATION ::=
4341 -- SUBPROGRAM_SPECIFICATION
4342 -- [ASPECT_SPECIFICATIONS];
4343
4344 -- N_Subprogram_Declaration
4345 -- Sloc points to FUNCTION or PROCEDURE
4346 -- Specification (Node1)
4347 -- Body_To_Inline (Node3-Sem)
4348 -- Corresponding_Body (Node5-Sem)
4349 -- Parent_Spec (Node4-Sem)
4350
4351 ------------------------------------------
4352 -- 6.1 Abstract Subprogram Declaration --
4353 ------------------------------------------
4354
4355 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
4356 -- SUBPROGRAM_SPECIFICATION is abstract
4357 -- [ASPECT_SPECIFICATIONS];
4358
4359 -- N_Abstract_Subprogram_Declaration
4360 -- Sloc points to ABSTRACT
4361 -- Specification (Node1)
4362
4363 -----------------------------------
4364 -- 6.1 Subprogram Specification --
4365 -----------------------------------
4366
4367 -- SUBPROGRAM_SPECIFICATION ::=
4368 -- [[not] overriding]
4369 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
4370 -- | [[not] overriding]
4371 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
4372
4373 -- Note: there are no separate nodes for the profiles, instead the
4374 -- information appears directly in the following nodes.
4375
4376 -- N_Function_Specification
4377 -- Sloc points to FUNCTION
4378 -- Defining_Unit_Name (Node1) (the designator)
4379 -- Elaboration_Boolean (Node2-Sem)
4380 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4381 -- Null_Exclusion_Present (Flag11)
4382 -- Result_Definition (Node4) for result subtype
4383 -- Generic_Parent (Node5-Sem)
4384 -- Must_Override (Flag14) set if overriding indicator present
4385 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4386
4387 -- N_Procedure_Specification
4388 -- Sloc points to PROCEDURE
4389 -- Defining_Unit_Name (Node1)
4390 -- Elaboration_Boolean (Node2-Sem)
4391 -- Parameter_Specifications (List3) (set to No_List if no formal part)
4392 -- Generic_Parent (Node5-Sem)
4393 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
4394 -- Must_Override (Flag14) set if overriding indicator present
4395 -- Must_Not_Override (Flag15) set if not_overriding indicator present
4396
4397 -- Note: overriding indicator is an Ada 2005 feature
4398
4399 ---------------------
4400 -- 6.1 Designator --
4401 ---------------------
4402
4403 -- DESIGNATOR ::=
4404 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
4405
4406 -- Designators that are simply identifiers or operator symbols appear
4407 -- directly in the tree in this form. The following node is used only
4408 -- in the case where the designator has a parent unit name component.
4409
4410 -- N_Designator
4411 -- Sloc points to period
4412 -- Name (Node2) holds the parent unit name. Note that this is always
4413 -- non-Empty, since this node is only used for the case where a
4414 -- parent library unit package name is present.
4415 -- Identifier (Node1)
4416
4417 -- Note that the identifier can also be an operator symbol here
4418
4419 ------------------------------
4420 -- 6.1 Defining Designator --
4421 ------------------------------
4422
4423 -- DEFINING_DESIGNATOR ::=
4424 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
4425
4426 -------------------------------------
4427 -- 6.1 Defining Program Unit Name --
4428 -------------------------------------
4429
4430 -- DEFINING_PROGRAM_UNIT_NAME ::=
4431 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
4432
4433 -- The parent unit name is present only in the case of a child unit
4434 -- name (permissible only for Ada 95 for a library level unit, i.e.
4435 -- a unit at scope level one). If no such name is present, the defining
4436 -- program unit name is represented simply as the defining identifier.
4437 -- In the child unit case, the following node is used to represent the
4438 -- child unit name.
4439
4440 -- N_Defining_Program_Unit_Name
4441 -- Sloc points to period
4442 -- Name (Node2) holds the parent unit name. Note that this is always
4443 -- non-Empty, since this node is only used for the case where a
4444 -- parent unit name is present.
4445 -- Defining_Identifier (Node1)
4446
4447 --------------------------
4448 -- 6.1 Operator Symbol --
4449 --------------------------
4450
4451 -- OPERATOR_SYMBOL ::= STRING_LITERAL
4452
4453 -- Note: the fields of the N_Operator_Symbol node are laid out to
4454 -- match the corresponding fields of an N_Character_Literal node. This
4455 -- allows easy conversion of the operator symbol node into a character
4456 -- literal node in the case where a string constant of the form of an
4457 -- operator symbol is scanned out as such, but turns out semantically
4458 -- to be a string literal that is not an operator. For details see
4459 -- Sinfo.CN.Change_Operator_Symbol_To_String_Literal.
4460
4461 -- N_Operator_Symbol
4462 -- Sloc points to literal
4463 -- Chars (Name1) contains the Name_Id for the operator symbol
4464 -- Strval (Str3) Id of string value. This is used if the operator
4465 -- symbol turns out to be a normal string after all.
4466 -- Entity (Node4-Sem)
4467 -- Associated_Node (Node4-Sem)
4468 -- Has_Private_View (Flag11-Sem) set in generic units.
4469 -- Etype (Node5-Sem)
4470
4471 -- Note: the Strval field may be set to No_String for generated
4472 -- operator symbols that are known not to be string literals
4473 -- semantically.
4474
4475 -----------------------------------
4476 -- 6.1 Defining Operator Symbol --
4477 -----------------------------------
4478
4479 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
4480
4481 -- A defining operator symbol is an entity, which has additional
4482 -- fields depending on the setting of the Ekind field. These
4483 -- additional fields are defined (and access subprograms declared)
4484 -- in package Einfo.
4485
4486 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
4487 -- are deliberately layed out to match the layout of fields in an
4488 -- ordinary N_Operator_Symbol node allowing for easy alteration of
4489 -- an operator symbol node into a defining operator symbol node.
4490 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
4491 -- for further details.
4492
4493 -- N_Defining_Operator_Symbol
4494 -- Sloc points to literal
4495 -- Chars (Name1) contains the Name_Id for the operator symbol
4496 -- Next_Entity (Node2-Sem)
4497 -- Scope (Node3-Sem)
4498 -- Etype (Node5-Sem)
4499
4500 ----------------------------
4501 -- 6.1 Parameter Profile --
4502 ----------------------------
4503
4504 -- PARAMETER_PROFILE ::= [FORMAL_PART]
4505
4506 ---------------------------------------
4507 -- 6.1 Parameter and Result Profile --
4508 ---------------------------------------
4509
4510 -- PARAMETER_AND_RESULT_PROFILE ::=
4511 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
4512 -- | [FORMAL_PART] return ACCESS_DEFINITION
4513
4514 -- There is no explicit node in the tree for a parameter and result
4515 -- profile. Instead the information appears directly in the parent.
4516
4517 ----------------------
4518 -- 6.1 Formal part --
4519 ----------------------
4520
4521 -- FORMAL_PART ::=
4522 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
4523
4524 ----------------------------------
4525 -- 6.1 Parameter specification --
4526 ----------------------------------
4527
4528 -- PARAMETER_SPECIFICATION ::=
4529 -- DEFINING_IDENTIFIER_LIST : MODE [NULL_EXCLUSION] SUBTYPE_MARK
4530 -- [:= DEFAULT_EXPRESSION]
4531 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
4532 -- [:= DEFAULT_EXPRESSION]
4533
4534 -- Although the syntax allows multiple identifiers in the list, the
4535 -- semantics is as though successive specifications were given with
4536 -- identical type definition and expression components. To simplify
4537 -- semantic processing, the parser represents a multiple declaration
4538 -- case as a sequence of single Specifications, using the More_Ids and
4539 -- Prev_Ids flags to preserve the original source form as described
4540 -- in the section on "Handling of Defining Identifier Lists".
4541
4542 -- N_Parameter_Specification
4543 -- Sloc points to first identifier
4544 -- Defining_Identifier (Node1)
4545 -- In_Present (Flag15)
4546 -- Out_Present (Flag17)
4547 -- Null_Exclusion_Present (Flag11)
4548 -- Parameter_Type (Node2) subtype mark or access definition
4549 -- Expression (Node3) (set to Empty if no default expression present)
4550 -- Do_Accessibility_Check (Flag13-Sem)
4551 -- More_Ids (Flag5) (set to False if no more identifiers in list)
4552 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
4553 -- Default_Expression (Node5-Sem)
4554
4555 ---------------
4556 -- 6.1 Mode --
4557 ---------------
4558
4559 -- MODE ::= [in] | in out | out
4560
4561 -- There is no explicit node in the tree for the Mode. Instead the
4562 -- In_Present and Out_Present flags are set in the parent node to
4563 -- record the presence of keywords specifying the mode.
4564
4565 --------------------------
4566 -- 6.3 Subprogram Body --
4567 --------------------------
4568
4569 -- SUBPROGRAM_BODY ::=
4570 -- SUBPROGRAM_SPECIFICATION is
4571 -- DECLARATIVE_PART
4572 -- begin
4573 -- HANDLED_SEQUENCE_OF_STATEMENTS
4574 -- end [DESIGNATOR];
4575
4576 -- N_Subprogram_Body
4577 -- Sloc points to FUNCTION or PROCEDURE
4578 -- Specification (Node1)
4579 -- Declarations (List2)
4580 -- Handled_Statement_Sequence (Node4)
4581 -- Activation_Chain_Entity (Node3-Sem)
4582 -- Corresponding_Spec (Node5-Sem)
4583 -- Acts_As_Spec (Flag4-Sem)
4584 -- Bad_Is_Detected (Flag15) used only by parser
4585 -- Do_Storage_Check (Flag17-Sem)
4586 -- Has_Pragma_Priority (Flag6-Sem)
4587 -- Is_Protected_Subprogram_Body (Flag7-Sem)
4588 -- Is_Entry_Barrier_Function (Flag8-Sem)
4589 -- Is_Task_Master (Flag5-Sem)
4590 -- Was_Originally_Stub (Flag13-Sem)
4591 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
4592 -- Has_Pragma_CPU (Flag14-Sem)
4593
4594 ------------------------------
4595 -- Parameterized Expression --
4596 ------------------------------
4597
4598 -- This is an Ada 2012 extension, we put it here for now, to be labeled
4599 -- and put in its proper section when we know exactly where that is!
4600
4601 -- PARAMETERIZED_EXPRESSION ::=
4602 -- FUNCTION SPECIFICATION IS (EXPRESSION);
4603
4604 -- N_Parameterized_Expression
4605 -- Sloc points to FUNCTION
4606 -- Specification (Node1)
4607 -- Expression (Node3)
4608
4609 -----------------------------------
4610 -- 6.4 Procedure Call Statement --
4611 -----------------------------------
4612
4613 -- PROCEDURE_CALL_STATEMENT ::=
4614 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
4615
4616 -- Note: the reason that a procedure call has expression fields is
4617 -- that it semantically resembles an expression, e.g. overloading is
4618 -- allowed and a type is concocted for semantic processing purposes.
4619 -- Certain of these fields, such as Parens are not relevant, but it
4620 -- is easier to just supply all of them together!
4621
4622 -- N_Procedure_Call_Statement
4623 -- Sloc points to first token of name or prefix
4624 -- Name (Node2) stores name or prefix
4625 -- Parameter_Associations (List3) (set to No_List if no
4626 -- actual parameter part)
4627 -- First_Named_Actual (Node4-Sem)
4628 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4629 -- Do_Tag_Check (Flag13-Sem)
4630 -- No_Elaboration_Check (Flag14-Sem)
4631 -- Parameter_List_Truncated (Flag17-Sem)
4632 -- ABE_Is_Certain (Flag18-Sem)
4633 -- plus fields for expression
4634
4635 -- If any IN parameter requires a range check, then the corresponding
4636 -- argument expression has the Do_Range_Check flag set, and the range
4637 -- check is done against the formal type. Note that this argument
4638 -- expression may appear directly in the Parameter_Associations list,
4639 -- or may be a descendent of an N_Parameter_Association node that
4640 -- appears in this list.
4641
4642 ------------------------
4643 -- 6.4 Function Call --
4644 ------------------------
4645
4646 -- FUNCTION_CALL ::=
4647 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
4648
4649 -- Note: the parser may generate an indexed component node or simply
4650 -- a name node instead of a function call node. The semantic pass must
4651 -- correct this misidentification.
4652
4653 -- N_Function_Call
4654 -- Sloc points to first token of name or prefix
4655 -- Name (Node2) stores name or prefix
4656 -- Parameter_Associations (List3) (set to No_List if no
4657 -- actual parameter part)
4658 -- First_Named_Actual (Node4-Sem)
4659 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
4660 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
4661 -- Do_Tag_Check (Flag13-Sem)
4662 -- No_Elaboration_Check (Flag14-Sem)
4663 -- Parameter_List_Truncated (Flag17-Sem)
4664 -- ABE_Is_Certain (Flag18-Sem)
4665 -- plus fields for expression
4666
4667 --------------------------------
4668 -- 6.4 Actual Parameter Part --
4669 --------------------------------
4670
4671 -- ACTUAL_PARAMETER_PART ::=
4672 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
4673
4674 --------------------------------
4675 -- 6.4 Parameter Association --
4676 --------------------------------
4677
4678 -- PARAMETER_ASSOCIATION ::=
4679 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
4680
4681 -- Note: the N_Parameter_Association node is built only if a formal
4682 -- parameter selector name is present, otherwise the parameter
4683 -- association appears in the tree simply as the node for the
4684 -- explicit actual parameter.
4685
4686 -- N_Parameter_Association
4687 -- Sloc points to formal parameter
4688 -- Selector_Name (Node2) (always non-Empty)
4689 -- Explicit_Actual_Parameter (Node3)
4690 -- Next_Named_Actual (Node4-Sem)
4691 -- Is_Accessibility_Actual (Flag13-Sem)
4692
4693 ---------------------------
4694 -- 6.4 Actual Parameter --
4695 ---------------------------
4696
4697 -- EXPLICIT_ACTUAL_PARAMETER ::= EXPRESSION | variable_NAME
4698
4699 ---------------------------
4700 -- 6.5 Return Statement --
4701 ---------------------------
4702
4703 -- RETURN_STATEMENT ::= return [EXPRESSION]; -- Ada 95
4704
4705 -- In Ada 2005, we have:
4706
4707 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
4708
4709 -- EXTENDED_RETURN_STATEMENT ::=
4710 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4711 -- [:= EXPRESSION] [do
4712 -- HANDLED_SEQUENCE_OF_STATEMENTS
4713 -- end return];
4714
4715 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
4716
4717 -- So in Ada 2005, RETURN_STATEMENT is no longer a nonterminal, but
4718 -- "return statement" is defined in 6.5 to mean a
4719 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT.
4720
4721 -- N_Return_Statement
4722 -- Sloc points to RETURN
4723 -- Return_Statement_Entity (Node5-Sem)
4724 -- Expression (Node3) (set to Empty if no expression present)
4725 -- Storage_Pool (Node1-Sem)
4726 -- Procedure_To_Call (Node2-Sem)
4727 -- Do_Tag_Check (Flag13-Sem)
4728 -- By_Ref (Flag5-Sem)
4729 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
4730
4731 -- N_Return_Statement represents a simple_return_statement, and is
4732 -- renamed to be N_Simple_Return_Statement below. Clients should refer
4733 -- to N_Simple_Return_Statement. We retain N_Return_Statement because
4734 -- that's how gigi knows it. See also renaming of Make_Return_Statement
4735 -- as Make_Simple_Return_Statement in Sem_Util.
4736
4737 -- Note: Return_Statement_Entity points to an E_Return_Statement
4738
4739 -- If a range check is required, then Do_Range_Check is set on the
4740 -- Expression. The check is against the return subtype of the function.
4741
4742 -- N_Extended_Return_Statement
4743 -- Sloc points to RETURN
4744 -- Return_Statement_Entity (Node5-Sem)
4745 -- Return_Object_Declarations (List3)
4746 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
4747 -- Storage_Pool (Node1-Sem)
4748 -- Procedure_To_Call (Node2-Sem)
4749 -- Do_Tag_Check (Flag13-Sem)
4750 -- By_Ref (Flag5-Sem)
4751
4752 -- Note: Return_Statement_Entity points to an E_Return_Statement.
4753
4754 -- Note that Return_Object_Declarations is a list containing the
4755 -- N_Object_Declaration -- see comment on this field above.
4756
4757 -- The declared object will have Is_Return_Object = True.
4758
4759 -- There is no such syntactic category as return_object_declaration
4760 -- in the RM. Return_Object_Declarations represents this portion of
4761 -- the syntax for EXTENDED_RETURN_STATEMENT:
4762 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
4763 -- [:= EXPRESSION]
4764
4765 -- There are two entities associated with an extended_return_statement:
4766 -- the Return_Statement_Entity represents the statement itself, and the
4767 -- Defining_Identifier of the Object_Declaration in
4768 -- Return_Object_Declarations represents the object being
4769 -- returned. N_Simple_Return_Statement has only the former.
4770
4771 ------------------------------
4772 -- 7.1 Package Declaration --
4773 ------------------------------
4774
4775 -- PACKAGE_DECLARATION ::=
4776 -- PACKAGE_SPECIFICATION;
4777
4778 -- Note: the activation chain entity for a package spec is used for
4779 -- all tasks declared in the package spec, or in the package body.
4780
4781 -- N_Package_Declaration
4782 -- Sloc points to PACKAGE
4783 -- Specification (Node1)
4784 -- Corresponding_Body (Node5-Sem)
4785 -- Parent_Spec (Node4-Sem)
4786 -- Activation_Chain_Entity (Node3-Sem)
4787
4788 --------------------------------
4789 -- 7.1 Package Specification --
4790 --------------------------------
4791
4792 -- PACKAGE_SPECIFICATION ::=
4793 -- package DEFINING_PROGRAM_UNIT_NAME
4794 -- [ASPECT_SPECIFICATIONS]
4795 -- is
4796 -- {BASIC_DECLARATIVE_ITEM}
4797 -- [private
4798 -- {BASIC_DECLARATIVE_ITEM}]
4799 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
4800
4801 -- N_Package_Specification
4802 -- Sloc points to PACKAGE
4803 -- Defining_Unit_Name (Node1)
4804 -- Visible_Declarations (List2)
4805 -- Private_Declarations (List3) (set to No_List if no private
4806 -- part present)
4807 -- End_Label (Node4)
4808 -- Generic_Parent (Node5-Sem)
4809 -- Limited_View_Installed (Flag18-Sem)
4810
4811 -----------------------
4812 -- 7.1 Package Body --
4813 -----------------------
4814
4815 -- PACKAGE_BODY ::=
4816 -- package body DEFINING_PROGRAM_UNIT_NAME
4817 -- [ASPECT_SPECIFICATIONS]
4818 -- is
4819 -- DECLARATIVE_PART
4820 -- [begin
4821 -- HANDLED_SEQUENCE_OF_STATEMENTS]
4822 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
4823
4824 -- N_Package_Body
4825 -- Sloc points to PACKAGE
4826 -- Defining_Unit_Name (Node1)
4827 -- Declarations (List2)
4828 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
4829 -- Corresponding_Spec (Node5-Sem)
4830 -- Was_Originally_Stub (Flag13-Sem)
4831
4832 -- Note: if a source level package does not contain a handled sequence
4833 -- of statements, then the parser supplies a dummy one with a null
4834 -- sequence of statements. Comes_From_Source will be False in this
4835 -- constructed sequence. The reason we need this is for the End_Label
4836 -- field in the HSS.
4837
4838 -----------------------------------
4839 -- 7.4 Private Type Declaration --
4840 -----------------------------------
4841
4842 -- PRIVATE_TYPE_DECLARATION ::=
4843 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
4844 -- is [[abstract] tagged] [limited] private;
4845
4846 -- Note: TAGGED is not permitted in Ada 83 mode
4847
4848 -- N_Private_Type_Declaration
4849 -- Sloc points to TYPE
4850 -- Defining_Identifier (Node1)
4851 -- Discriminant_Specifications (List4) (set to No_List if no
4852 -- discriminant part)
4853 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4854 -- Abstract_Present (Flag4)
4855 -- Tagged_Present (Flag15)
4856 -- Limited_Present (Flag17)
4857
4858 ----------------------------------------
4859 -- 7.4 Private Extension Declaration --
4860 ----------------------------------------
4861
4862 -- PRIVATE_EXTENSION_DECLARATION ::=
4863 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
4864 -- [abstract] [limited | synchronized]
4865 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
4866 -- with private;
4867
4868 -- Note: LIMITED, and private extension declarations are not allowed
4869 -- in Ada 83 mode.
4870
4871 -- N_Private_Extension_Declaration
4872 -- Sloc points to TYPE
4873 -- Defining_Identifier (Node1)
4874 -- Discriminant_Specifications (List4) (set to No_List if no
4875 -- discriminant part)
4876 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
4877 -- Abstract_Present (Flag4)
4878 -- Limited_Present (Flag17)
4879 -- Synchronized_Present (Flag7)
4880 -- Subtype_Indication (Node5)
4881 -- Interface_List (List2) (set to No_List if none)
4882
4883 ---------------------
4884 -- 8.4 Use Clause --
4885 ---------------------
4886
4887 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
4888
4889 -----------------------------
4890 -- 8.4 Use Package Clause --
4891 -----------------------------
4892
4893 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
4894
4895 -- N_Use_Package_Clause
4896 -- Sloc points to USE
4897 -- Names (List2)
4898 -- Next_Use_Clause (Node3-Sem)
4899 -- Hidden_By_Use_Clause (Elist4-Sem)
4900
4901 --------------------------
4902 -- 8.4 Use Type Clause --
4903 --------------------------
4904
4905 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
4906
4907 -- Note: use type clause is not permitted in Ada 83 mode
4908
4909 -- Note: the ALL keyword can appear only in Ada 2012 mode
4910
4911 -- N_Use_Type_Clause
4912 -- Sloc points to USE
4913 -- Subtype_Marks (List2)
4914 -- Next_Use_Clause (Node3-Sem)
4915 -- Hidden_By_Use_Clause (Elist4-Sem)
4916 -- All_Present (Flag15)
4917
4918 -------------------------------
4919 -- 8.5 Renaming Declaration --
4920 -------------------------------
4921
4922 -- RENAMING_DECLARATION ::=
4923 -- OBJECT_RENAMING_DECLARATION
4924 -- | EXCEPTION_RENAMING_DECLARATION
4925 -- | PACKAGE_RENAMING_DECLARATION
4926 -- | SUBPROGRAM_RENAMING_DECLARATION
4927 -- | GENERIC_RENAMING_DECLARATION
4928
4929 --------------------------------------
4930 -- 8.5 Object Renaming Declaration --
4931 --------------------------------------
4932
4933 -- OBJECT_RENAMING_DECLARATION ::=
4934 -- DEFINING_IDENTIFIER :
4935 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME;
4936 -- | DEFINING_IDENTIFIER :
4937 -- ACCESS_DEFINITION renames object_NAME;
4938
4939 -- Note: Access_Definition is an optional field that gives support to
4940 -- Ada 2005 (AI-230). The parser generates nodes that have either the
4941 -- Subtype_Indication field or else the Access_Definition field.
4942
4943 -- N_Object_Renaming_Declaration
4944 -- Sloc points to first identifier
4945 -- Defining_Identifier (Node1)
4946 -- Null_Exclusion_Present (Flag11) (set to False if not present)
4947 -- Subtype_Mark (Node4) (set to Empty if not present)
4948 -- Access_Definition (Node3) (set to Empty if not present)
4949 -- Name (Node2)
4950 -- Corresponding_Generic_Association (Node5-Sem)
4951
4952 -----------------------------------------
4953 -- 8.5 Exception Renaming Declaration --
4954 -----------------------------------------
4955
4956 -- EXCEPTION_RENAMING_DECLARATION ::=
4957 -- DEFINING_IDENTIFIER : exception renames exception_NAME;
4958
4959 -- N_Exception_Renaming_Declaration
4960 -- Sloc points to first identifier
4961 -- Defining_Identifier (Node1)
4962 -- Name (Node2)
4963
4964 ---------------------------------------
4965 -- 8.5 Package Renaming Declaration --
4966 ---------------------------------------
4967
4968 -- PACKAGE_RENAMING_DECLARATION ::=
4969 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME;
4970
4971 -- N_Package_Renaming_Declaration
4972 -- Sloc points to PACKAGE
4973 -- Defining_Unit_Name (Node1)
4974 -- Name (Node2)
4975 -- Parent_Spec (Node4-Sem)
4976
4977 ------------------------------------------
4978 -- 8.5 Subprogram Renaming Declaration --
4979 ------------------------------------------
4980
4981 -- SUBPROGRAM_RENAMING_DECLARATION ::=
4982 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME;
4983
4984 -- N_Subprogram_Renaming_Declaration
4985 -- Sloc points to RENAMES
4986 -- Specification (Node1)
4987 -- Name (Node2)
4988 -- Parent_Spec (Node4-Sem)
4989 -- Corresponding_Spec (Node5-Sem)
4990 -- Corresponding_Formal_Spec (Node3-Sem)
4991 -- From_Default (Flag6-Sem)
4992
4993 -----------------------------------------
4994 -- 8.5.5 Generic Renaming Declaration --
4995 -----------------------------------------
4996
4997 -- GENERIC_RENAMING_DECLARATION ::=
4998 -- generic package DEFINING_PROGRAM_UNIT_NAME
4999 -- renames generic_package_NAME
5000 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5001 -- renames generic_procedure_NAME
5002 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5003 -- renames generic_function_NAME
5004
5005 -- N_Generic_Package_Renaming_Declaration
5006 -- Sloc points to GENERIC
5007 -- Defining_Unit_Name (Node1)
5008 -- Name (Node2)
5009 -- Parent_Spec (Node4-Sem)
5010
5011 -- N_Generic_Procedure_Renaming_Declaration
5012 -- Sloc points to GENERIC
5013 -- Defining_Unit_Name (Node1)
5014 -- Name (Node2)
5015 -- Parent_Spec (Node4-Sem)
5016
5017 -- N_Generic_Function_Renaming_Declaration
5018 -- Sloc points to GENERIC
5019 -- Defining_Unit_Name (Node1)
5020 -- Name (Node2)
5021 -- Parent_Spec (Node4-Sem)
5022
5023 --------------------------------
5024 -- 9.1 Task Type Declaration --
5025 --------------------------------
5026
5027 -- TASK_TYPE_DECLARATION ::=
5028 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5029 -- [ASPECT_SPECIFICATIONS]
5030 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5031
5032 -- N_Task_Type_Declaration
5033 -- Sloc points to TASK
5034 -- Defining_Identifier (Node1)
5035 -- Discriminant_Specifications (List4) (set to No_List if no
5036 -- discriminant part)
5037 -- Interface_List (List2) (set to No_List if none)
5038 -- Task_Definition (Node3) (set to Empty if not present)
5039 -- Corresponding_Body (Node5-Sem)
5040
5041 ----------------------------------
5042 -- 9.1 Single Task Declaration --
5043 ----------------------------------
5044
5045 -- SINGLE_TASK_DECLARATION ::=
5046 -- task DEFINING_IDENTIFIER
5047 -- [ASPECT_SPECIFICATIONS]
5048 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5049
5050 -- N_Single_Task_Declaration
5051 -- Sloc points to TASK
5052 -- Defining_Identifier (Node1)
5053 -- Interface_List (List2) (set to No_List if none)
5054 -- Task_Definition (Node3) (set to Empty if not present)
5055
5056 --------------------------
5057 -- 9.1 Task Definition --
5058 --------------------------
5059
5060 -- TASK_DEFINITION ::=
5061 -- {TASK_ITEM}
5062 -- [private
5063 -- {TASK_ITEM}]
5064 -- end [task_IDENTIFIER]
5065
5066 -- Note: as a result of semantic analysis, the list of task items can
5067 -- include implicit type declarations resulting from entry families.
5068
5069 -- N_Task_Definition
5070 -- Sloc points to first token of task definition
5071 -- Visible_Declarations (List2)
5072 -- Private_Declarations (List3) (set to No_List if no private part)
5073 -- End_Label (Node4)
5074 -- Has_Pragma_Priority (Flag6-Sem)
5075 -- Has_Storage_Size_Pragma (Flag5-Sem)
5076 -- Has_Task_Info_Pragma (Flag7-Sem)
5077 -- Has_Task_Name_Pragma (Flag8-Sem)
5078 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5079 -- Has_Pragma_CPU (Flag14-Sem)
5080
5081 --------------------
5082 -- 9.1 Task Item --
5083 --------------------
5084
5085 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
5086
5087 --------------------
5088 -- 9.1 Task Body --
5089 --------------------
5090
5091 -- TASK_BODY ::=
5092 -- task body task_DEFINING_IDENTIFIER
5093 -- [ASPECT_SPECIFICATIONS]
5094 -- is
5095 -- DECLARATIVE_PART
5096 -- begin
5097 -- HANDLED_SEQUENCE_OF_STATEMENTS
5098 -- end [task_IDENTIFIER];
5099
5100 -- Gigi restriction: This node never appears
5101
5102 -- N_Task_Body
5103 -- Sloc points to TASK
5104 -- Defining_Identifier (Node1)
5105 -- Declarations (List2)
5106 -- Handled_Statement_Sequence (Node4)
5107 -- Is_Task_Master (Flag5-Sem)
5108 -- Activation_Chain_Entity (Node3-Sem)
5109 -- Corresponding_Spec (Node5-Sem)
5110 -- Was_Originally_Stub (Flag13-Sem)
5111
5112 -------------------------------------
5113 -- 9.4 Protected Type Declaration --
5114 -------------------------------------
5115
5116 -- PROTECTED_TYPE_DECLARATION ::=
5117 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5118 -- [ASPECT_SPECIFICATIONS]
5119 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5120
5121 -- Note: protected type declarations are not permitted in Ada 83 mode
5122
5123 -- N_Protected_Type_Declaration
5124 -- Sloc points to PROTECTED
5125 -- Defining_Identifier (Node1)
5126 -- Discriminant_Specifications (List4) (set to No_List if no
5127 -- discriminant part)
5128 -- Interface_List (List2) (set to No_List if none)
5129 -- Protected_Definition (Node3)
5130 -- Corresponding_Body (Node5-Sem)
5131
5132 ---------------------------------------
5133 -- 9.4 Single Protected Declaration --
5134 ---------------------------------------
5135
5136 -- SINGLE_PROTECTED_DECLARATION ::=
5137 -- protected DEFINING_IDENTIFIER
5138 -- [ASPECT_SPECIFICATIONS]
5139 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
5140
5141 -- Note: single protected declarations are not allowed in Ada 83 mode
5142
5143 -- N_Single_Protected_Declaration
5144 -- Sloc points to PROTECTED
5145 -- Defining_Identifier (Node1)
5146 -- Interface_List (List2) (set to No_List if none)
5147 -- Protected_Definition (Node3)
5148
5149 -------------------------------
5150 -- 9.4 Protected Definition --
5151 -------------------------------
5152
5153 -- PROTECTED_DEFINITION ::=
5154 -- {PROTECTED_OPERATION_DECLARATION}
5155 -- [private
5156 -- {PROTECTED_ELEMENT_DECLARATION}]
5157 -- end [protected_IDENTIFIER]
5158
5159 -- N_Protected_Definition
5160 -- Sloc points to first token of protected definition
5161 -- Visible_Declarations (List2)
5162 -- Private_Declarations (List3) (set to No_List if no private part)
5163 -- End_Label (Node4)
5164 -- Has_Pragma_Priority (Flag6-Sem)
5165
5166 ------------------------------------------
5167 -- 9.4 Protected Operation Declaration --
5168 ------------------------------------------
5169
5170 -- PROTECTED_OPERATION_DECLARATION ::=
5171 -- SUBPROGRAM_DECLARATION
5172 -- | ENTRY_DECLARATION
5173 -- | REPRESENTATION_CLAUSE
5174
5175 ----------------------------------------
5176 -- 9.4 Protected Element Declaration --
5177 ----------------------------------------
5178
5179 -- PROTECTED_ELEMENT_DECLARATION ::=
5180 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
5181
5182 -------------------------
5183 -- 9.4 Protected Body --
5184 -------------------------
5185
5186 -- PROTECTED_BODY ::=
5187 -- protected body DEFINING_IDENTIFIER
5188 -- [ASPECT_SPECIFICATIONS];
5189 -- is
5190 -- {PROTECTED_OPERATION_ITEM}
5191 -- end [protected_IDENTIFIER];
5192
5193 -- Note: protected bodies are not allowed in Ada 83 mode
5194
5195 -- Gigi restriction: This node never appears
5196
5197 -- N_Protected_Body
5198 -- Sloc points to PROTECTED
5199 -- Defining_Identifier (Node1)
5200 -- Declarations (List2) protected operation items (and pragmas)
5201 -- End_Label (Node4)
5202 -- Corresponding_Spec (Node5-Sem)
5203 -- Was_Originally_Stub (Flag13-Sem)
5204
5205 -----------------------------------
5206 -- 9.4 Protected Operation Item --
5207 -----------------------------------
5208
5209 -- PROTECTED_OPERATION_ITEM ::=
5210 -- SUBPROGRAM_DECLARATION
5211 -- | SUBPROGRAM_BODY
5212 -- | ENTRY_BODY
5213 -- | REPRESENTATION_CLAUSE
5214
5215 ------------------------------
5216 -- 9.5.2 Entry Declaration --
5217 ------------------------------
5218
5219 -- ENTRY_DECLARATION ::=
5220 -- [[not] overriding]
5221 -- entry DEFINING_IDENTIFIER
5222 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE;
5223
5224 -- N_Entry_Declaration
5225 -- Sloc points to ENTRY
5226 -- Defining_Identifier (Node1)
5227 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
5228 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5229 -- Corresponding_Body (Node5-Sem)
5230 -- Must_Override (Flag14) set if overriding indicator present
5231 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5232
5233 -- Note: overriding indicator is an Ada 2005 feature
5234
5235 -----------------------------
5236 -- 9.5.2 Accept statement --
5237 -----------------------------
5238
5239 -- ACCEPT_STATEMENT ::=
5240 -- accept entry_DIRECT_NAME
5241 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
5242 -- HANDLED_SEQUENCE_OF_STATEMENTS
5243 -- end [entry_IDENTIFIER]];
5244
5245 -- Gigi restriction: This node never appears
5246
5247 -- Note: there are no explicit declarations allowed in an accept
5248 -- statement. However, the implicit declarations for any statement
5249 -- identifiers (labels and block/loop identifiers) are declarations
5250 -- that belong logically to the accept statement, and that is why
5251 -- there is a Declarations field in this node.
5252
5253 -- N_Accept_Statement
5254 -- Sloc points to ACCEPT
5255 -- Entry_Direct_Name (Node1)
5256 -- Entry_Index (Node5) (set to Empty if not present)
5257 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5258 -- Handled_Statement_Sequence (Node4)
5259 -- Declarations (List2) (set to No_List if no declarations)
5260
5261 ------------------------
5262 -- 9.5.2 Entry Index --
5263 ------------------------
5264
5265 -- ENTRY_INDEX ::= EXPRESSION
5266
5267 -----------------------
5268 -- 9.5.2 Entry Body --
5269 -----------------------
5270
5271 -- ENTRY_BODY ::=
5272 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
5273 -- DECLARATIVE_PART
5274 -- begin
5275 -- HANDLED_SEQUENCE_OF_STATEMENTS
5276 -- end [entry_IDENTIFIER];
5277
5278 -- ENTRY_BARRIER ::= when CONDITION
5279
5280 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
5281 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
5282 -- too full (it would otherwise have too many fields)
5283
5284 -- Gigi restriction: This node never appears
5285
5286 -- N_Entry_Body
5287 -- Sloc points to ENTRY
5288 -- Defining_Identifier (Node1)
5289 -- Entry_Body_Formal_Part (Node5)
5290 -- Declarations (List2)
5291 -- Handled_Statement_Sequence (Node4)
5292 -- Activation_Chain_Entity (Node3-Sem)
5293
5294 -----------------------------------
5295 -- 9.5.2 Entry Body Formal Part --
5296 -----------------------------------
5297
5298 -- ENTRY_BODY_FORMAL_PART ::=
5299 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
5300
5301 -- Note that an entry body formal part node is present even if it is
5302 -- empty. This reflects the grammar, in which it is the components of
5303 -- the entry body formal part that are optional, not the entry body
5304 -- formal part itself. Also this means that the barrier condition
5305 -- always has somewhere to be stored.
5306
5307 -- Gigi restriction: This node never appears
5308
5309 -- N_Entry_Body_Formal_Part
5310 -- Sloc points to first token
5311 -- Entry_Index_Specification (Node4) (set to Empty if not present)
5312 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5313 -- Condition (Node1) from entry barrier of entry body
5314
5315 --------------------------
5316 -- 9.5.2 Entry Barrier --
5317 --------------------------
5318
5319 -- ENTRY_BARRIER ::= when CONDITION
5320
5321 --------------------------------------
5322 -- 9.5.2 Entry Index Specification --
5323 --------------------------------------
5324
5325 -- ENTRY_INDEX_SPECIFICATION ::=
5326 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
5327
5328 -- Gigi restriction: This node never appears
5329
5330 -- N_Entry_Index_Specification
5331 -- Sloc points to FOR
5332 -- Defining_Identifier (Node1)
5333 -- Discrete_Subtype_Definition (Node4)
5334
5335 ---------------------------------
5336 -- 9.5.3 Entry Call Statement --
5337 ---------------------------------
5338
5339 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
5340
5341 -- The parser may generate a procedure call for this construct. The
5342 -- semantic pass must correct this misidentification where needed.
5343
5344 -- Gigi restriction: This node never appears
5345
5346 -- N_Entry_Call_Statement
5347 -- Sloc points to first token of name
5348 -- Name (Node2)
5349 -- Parameter_Associations (List3) (set to No_List if no
5350 -- actual parameter part)
5351 -- First_Named_Actual (Node4-Sem)
5352
5353 ------------------------------
5354 -- 9.5.4 Requeue Statement --
5355 ------------------------------
5356
5357 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
5358
5359 -- Note: requeue statements are not permitted in Ada 83 mode
5360
5361 -- Gigi restriction: This node never appears
5362
5363 -- N_Requeue_Statement
5364 -- Sloc points to REQUEUE
5365 -- Name (Node2)
5366 -- Abort_Present (Flag15)
5367
5368 --------------------------
5369 -- 9.6 Delay Statement --
5370 --------------------------
5371
5372 -- DELAY_STATEMENT ::=
5373 -- DELAY_UNTIL_STATEMENT
5374 -- | DELAY_RELATIVE_STATEMENT
5375
5376 --------------------------------
5377 -- 9.6 Delay Until Statement --
5378 --------------------------------
5379
5380 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
5381
5382 -- Note: delay until statements are not permitted in Ada 83 mode
5383
5384 -- Gigi restriction: This node never appears
5385
5386 -- N_Delay_Until_Statement
5387 -- Sloc points to DELAY
5388 -- Expression (Node3)
5389
5390 -----------------------------------
5391 -- 9.6 Delay Relative Statement --
5392 -----------------------------------
5393
5394 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
5395
5396 -- Gigi restriction: This node never appears
5397
5398 -- N_Delay_Relative_Statement
5399 -- Sloc points to DELAY
5400 -- Expression (Node3)
5401
5402 ---------------------------
5403 -- 9.7 Select Statement --
5404 ---------------------------
5405
5406 -- SELECT_STATEMENT ::=
5407 -- SELECTIVE_ACCEPT
5408 -- | TIMED_ENTRY_CALL
5409 -- | CONDITIONAL_ENTRY_CALL
5410 -- | ASYNCHRONOUS_SELECT
5411
5412 -----------------------------
5413 -- 9.7.1 Selective Accept --
5414 -----------------------------
5415
5416 -- SELECTIVE_ACCEPT ::=
5417 -- select
5418 -- [GUARD]
5419 -- SELECT_ALTERNATIVE
5420 -- {or
5421 -- [GUARD]
5422 -- SELECT_ALTERNATIVE}
5423 -- [else
5424 -- SEQUENCE_OF_STATEMENTS]
5425 -- end select;
5426
5427 -- Gigi restriction: This node never appears
5428
5429 -- Note: the guard expression, if present, appears in the node for
5430 -- the select alternative.
5431
5432 -- N_Selective_Accept
5433 -- Sloc points to SELECT
5434 -- Select_Alternatives (List1)
5435 -- Else_Statements (List4) (set to No_List if no else part)
5436
5437 ------------------
5438 -- 9.7.1 Guard --
5439 ------------------
5440
5441 -- GUARD ::= when CONDITION =>
5442
5443 -- As noted above, the CONDITION that is part of a GUARD is included
5444 -- in the node for the select alternative for convenience.
5445
5446 -------------------------------
5447 -- 9.7.1 Select Alternative --
5448 -------------------------------
5449
5450 -- SELECT_ALTERNATIVE ::=
5451 -- ACCEPT_ALTERNATIVE
5452 -- | DELAY_ALTERNATIVE
5453 -- | TERMINATE_ALTERNATIVE
5454
5455 -------------------------------
5456 -- 9.7.1 Accept Alternative --
5457 -------------------------------
5458
5459 -- ACCEPT_ALTERNATIVE ::=
5460 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
5461
5462 -- Gigi restriction: This node never appears
5463
5464 -- N_Accept_Alternative
5465 -- Sloc points to ACCEPT
5466 -- Accept_Statement (Node2)
5467 -- Condition (Node1) from the guard (set to Empty if no guard present)
5468 -- Statements (List3) (set to Empty_List if no statements)
5469 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5470 -- Accept_Handler_Records (List5-Sem)
5471
5472 ------------------------------
5473 -- 9.7.1 Delay Alternative --
5474 ------------------------------
5475
5476 -- DELAY_ALTERNATIVE ::=
5477 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
5478
5479 -- Gigi restriction: This node never appears
5480
5481 -- N_Delay_Alternative
5482 -- Sloc points to DELAY
5483 -- Delay_Statement (Node2)
5484 -- Condition (Node1) from the guard (set to Empty if no guard present)
5485 -- Statements (List3) (set to Empty_List if no statements)
5486 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5487
5488 ----------------------------------
5489 -- 9.7.1 Terminate Alternative --
5490 ----------------------------------
5491
5492 -- TERMINATE_ALTERNATIVE ::= terminate;
5493
5494 -- Gigi restriction: This node never appears
5495
5496 -- N_Terminate_Alternative
5497 -- Sloc points to TERMINATE
5498 -- Condition (Node1) from the guard (set to Empty if no guard present)
5499 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5500 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
5501
5502 -----------------------------
5503 -- 9.7.2 Timed Entry Call --
5504 -----------------------------
5505
5506 -- TIMED_ENTRY_CALL ::=
5507 -- select
5508 -- ENTRY_CALL_ALTERNATIVE
5509 -- or
5510 -- DELAY_ALTERNATIVE
5511 -- end select;
5512
5513 -- Gigi restriction: This node never appears
5514
5515 -- N_Timed_Entry_Call
5516 -- Sloc points to SELECT
5517 -- Entry_Call_Alternative (Node1)
5518 -- Delay_Alternative (Node4)
5519
5520 -----------------------------------
5521 -- 9.7.2 Entry Call Alternative --
5522 -----------------------------------
5523
5524 -- ENTRY_CALL_ALTERNATIVE ::=
5525 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
5526
5527 -- PROCEDURE_OR_ENTRY_CALL ::=
5528 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
5529
5530 -- Gigi restriction: This node never appears
5531
5532 -- N_Entry_Call_Alternative
5533 -- Sloc points to first token of entry call statement
5534 -- Entry_Call_Statement (Node1)
5535 -- Statements (List3) (set to Empty_List if no statements)
5536 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5537
5538 -----------------------------------
5539 -- 9.7.3 Conditional Entry Call --
5540 -----------------------------------
5541
5542 -- CONDITIONAL_ENTRY_CALL ::=
5543 -- select
5544 -- ENTRY_CALL_ALTERNATIVE
5545 -- else
5546 -- SEQUENCE_OF_STATEMENTS
5547 -- end select;
5548
5549 -- Gigi restriction: This node never appears
5550
5551 -- N_Conditional_Entry_Call
5552 -- Sloc points to SELECT
5553 -- Entry_Call_Alternative (Node1)
5554 -- Else_Statements (List4)
5555
5556 --------------------------------
5557 -- 9.7.4 Asynchronous Select --
5558 --------------------------------
5559
5560 -- ASYNCHRONOUS_SELECT ::=
5561 -- select
5562 -- TRIGGERING_ALTERNATIVE
5563 -- then abort
5564 -- ABORTABLE_PART
5565 -- end select;
5566
5567 -- Note: asynchronous select is not permitted in Ada 83 mode
5568
5569 -- Gigi restriction: This node never appears
5570
5571 -- N_Asynchronous_Select
5572 -- Sloc points to SELECT
5573 -- Triggering_Alternative (Node1)
5574 -- Abortable_Part (Node2)
5575
5576 -----------------------------------
5577 -- 9.7.4 Triggering Alternative --
5578 -----------------------------------
5579
5580 -- TRIGGERING_ALTERNATIVE ::=
5581 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
5582
5583 -- Gigi restriction: This node never appears
5584
5585 -- N_Triggering_Alternative
5586 -- Sloc points to first token of triggering statement
5587 -- Triggering_Statement (Node1)
5588 -- Statements (List3) (set to Empty_List if no statements)
5589 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
5590
5591 ---------------------------------
5592 -- 9.7.4 Triggering Statement --
5593 ---------------------------------
5594
5595 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
5596
5597 ---------------------------
5598 -- 9.7.4 Abortable Part --
5599 ---------------------------
5600
5601 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
5602
5603 -- Gigi restriction: This node never appears
5604
5605 -- N_Abortable_Part
5606 -- Sloc points to ABORT
5607 -- Statements (List3)
5608
5609 --------------------------
5610 -- 9.8 Abort Statement --
5611 --------------------------
5612
5613 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
5614
5615 -- Gigi restriction: This node never appears
5616
5617 -- N_Abort_Statement
5618 -- Sloc points to ABORT
5619 -- Names (List2)
5620
5621 -------------------------
5622 -- 10.1.1 Compilation --
5623 -------------------------
5624
5625 -- COMPILATION ::= {COMPILATION_UNIT}
5626
5627 -- There is no explicit node in the tree for a compilation, since in
5628 -- general the compiler is processing only a single compilation unit
5629 -- at a time. It is possible to parse multiple units in syntax check
5630 -- only mode, but the trees are discarded in that case.
5631
5632 ------------------------------
5633 -- 10.1.1 Compilation Unit --
5634 ------------------------------
5635
5636 -- COMPILATION_UNIT ::=
5637 -- CONTEXT_CLAUSE LIBRARY_ITEM
5638 -- | CONTEXT_CLAUSE SUBUNIT
5639
5640 -- The N_Compilation_Unit node itself represents the above syntax.
5641 -- However, there are two additional items not reflected in the above
5642 -- syntax. First we have the global declarations that are added by the
5643 -- code generator. These are outer level declarations (so they cannot
5644 -- be represented as being inside the units). An example is the wrapper
5645 -- subprograms that are created to do ABE checking. As always a list of
5646 -- declarations can contain actions as well (i.e. statements), and such
5647 -- statements are executed as part of the elaboration of the unit. Note
5648 -- that all such declarations are elaborated before the library unit.
5649
5650 -- Similarly, certain actions need to be elaborated at the completion
5651 -- of elaboration of the library unit (notably the statement that sets
5652 -- the Boolean flag indicating that elaboration is complete).
5653
5654 -- The third item not reflected in the syntax is pragmas that appear
5655 -- after the compilation unit. As always pragmas are a problem since
5656 -- they are not part of the formal syntax, but can be stuck into the
5657 -- source following a set of ad hoc rules, and we have to find an ad
5658 -- hoc way of sticking them into the tree. For pragmas that appear
5659 -- before the library unit, we just consider them to be part of the
5660 -- context clause, and pragmas can appear in the Context_Items list
5661 -- of the compilation unit. However, pragmas can also appear after
5662 -- the library item.
5663
5664 -- To deal with all these problems, we create an auxiliary node for
5665 -- a compilation unit, referenced from the N_Compilation_Unit node,
5666 -- that contains these items.
5667
5668 -- N_Compilation_Unit
5669 -- Sloc points to first token of defining unit name
5670 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
5671 -- Context_Items (List1) context items and pragmas preceding unit
5672 -- Private_Present (Flag15) set if library unit has private keyword
5673 -- Unit (Node2) library item or subunit
5674 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
5675 -- Has_No_Elaboration_Code (Flag17-Sem)
5676 -- Body_Required (Flag13-Sem) set for spec if body is required
5677 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
5678 -- Context_Pending (Flag16-Sem)
5679 -- First_Inlined_Subprogram (Node3-Sem)
5680 -- Has_Pragma_Suppress_All (Flag14-Sem)
5681
5682 -- N_Compilation_Unit_Aux
5683 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
5684 -- Declarations (List2) (set to No_List if no global declarations)
5685 -- Actions (List1) (set to No_List if no actions)
5686 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
5687 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
5688 -- Default_Storage_Pool (Node3-Sem)
5689
5690 --------------------------
5691 -- 10.1.1 Library Item --
5692 --------------------------
5693
5694 -- LIBRARY_ITEM ::=
5695 -- [private] LIBRARY_UNIT_DECLARATION
5696 -- | LIBRARY_UNIT_BODY
5697 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
5698
5699 -- Note: PRIVATE is not allowed in Ada 83 mode
5700
5701 -- There is no explicit node in the tree for library item, instead
5702 -- the declaration or body, and the flag for private if present,
5703 -- appear in the N_Compilation_Unit node.
5704
5705 --------------------------------------
5706 -- 10.1.1 Library Unit Declaration --
5707 --------------------------------------
5708
5709 -- LIBRARY_UNIT_DECLARATION ::=
5710 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
5711 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
5712
5713 -----------------------------------------------
5714 -- 10.1.1 Library Unit Renaming Declaration --
5715 -----------------------------------------------
5716
5717 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
5718 -- PACKAGE_RENAMING_DECLARATION
5719 -- | GENERIC_RENAMING_DECLARATION
5720 -- | SUBPROGRAM_RENAMING_DECLARATION
5721
5722 -------------------------------
5723 -- 10.1.1 Library unit body --
5724 -------------------------------
5725
5726 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
5727
5728 ------------------------------
5729 -- 10.1.1 Parent Unit Name --
5730 ------------------------------
5731
5732 -- PARENT_UNIT_NAME ::= NAME
5733
5734 ----------------------------
5735 -- 10.1.2 Context clause --
5736 ----------------------------
5737
5738 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
5739
5740 -- The context clause can include pragmas, and any pragmas that appear
5741 -- before the context clause proper (i.e. all configuration pragmas,
5742 -- also appear at the front of this list).
5743
5744 --------------------------
5745 -- 10.1.2 Context_Item --
5746 --------------------------
5747
5748 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
5749
5750 -------------------------
5751 -- 10.1.2 With clause --
5752 -------------------------
5753
5754 -- WITH_CLAUSE ::=
5755 -- with library_unit_NAME {,library_unit_NAME};
5756
5757 -- A separate With clause is built for each name, so that we have
5758 -- a Corresponding_Spec field for each with'ed spec. The flags
5759 -- First_Name and Last_Name are used to reconstruct the exact
5760 -- source form. When a list of names appears in one with clause,
5761 -- the first name in the list has First_Name set, and the last
5762 -- has Last_Name set. If the with clause has only one name, then
5763 -- both of the flags First_Name and Last_Name are set in this name.
5764
5765 -- Note: in the case of implicit with's that are installed by the
5766 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
5767 -- set to Standard_Location, but it is incorrect to test the Sloc
5768 -- to find out if a with clause is implicit, test the flag instead.
5769
5770 -- N_With_Clause
5771 -- Sloc points to first token of library unit name
5772 -- Withed_Body (Node1-Sem)
5773 -- Name (Node2)
5774 -- Next_Implicit_With (Node3-Sem)
5775 -- Library_Unit (Node4-Sem)
5776 -- Corresponding_Spec (Node5-Sem)
5777 -- First_Name (Flag5) (set to True if first name or only one name)
5778 -- Last_Name (Flag6) (set to True if last name or only one name)
5779 -- Context_Installed (Flag13-Sem)
5780 -- Elaborate_Present (Flag4-Sem)
5781 -- Elaborate_All_Present (Flag14-Sem)
5782 -- Elaborate_All_Desirable (Flag9-Sem)
5783 -- Elaborate_Desirable (Flag11-Sem)
5784 -- Private_Present (Flag15) set if with_clause has private keyword
5785 -- Implicit_With (Flag16-Sem)
5786 -- Limited_Present (Flag17) set if LIMITED is present
5787 -- Limited_View_Installed (Flag18-Sem)
5788 -- Unreferenced_In_Spec (Flag7-Sem)
5789 -- No_Entities_Ref_In_Spec (Flag8-Sem)
5790
5791 -- Note: Limited_Present and Limited_View_Installed give support to
5792 -- Ada 2005 (AI-50217).
5793 -- Similarly, Private_Present gives support to AI-50262.
5794
5795 ----------------------
5796 -- With_Type clause --
5797 ----------------------
5798
5799 -- This is a GNAT extension, used to implement mutually recursive
5800 -- types declared in different packages.
5801 -- Note: this is now obsolete. The functionality of this construct
5802 -- is now implemented by the Ada 2005 Limited_with_Clause.
5803
5804 ---------------------
5805 -- 10.2 Body stub --
5806 ---------------------
5807
5808 -- BODY_STUB ::=
5809 -- SUBPROGRAM_BODY_STUB
5810 -- | PACKAGE_BODY_STUB
5811 -- | TASK_BODY_STUB
5812 -- | PROTECTED_BODY_STUB
5813
5814 ----------------------------------
5815 -- 10.1.3 Subprogram Body Stub --
5816 ----------------------------------
5817
5818 -- SUBPROGRAM_BODY_STUB ::=
5819 -- SUBPROGRAM_SPECIFICATION is separate;
5820
5821 -- N_Subprogram_Body_Stub
5822 -- Sloc points to FUNCTION or PROCEDURE
5823 -- Specification (Node1)
5824 -- Library_Unit (Node4-Sem) points to the subunit
5825 -- Corresponding_Body (Node5-Sem)
5826
5827 -------------------------------
5828 -- 10.1.3 Package Body Stub --
5829 -------------------------------
5830
5831 -- PACKAGE_BODY_STUB ::=
5832 -- package body DEFINING_IDENTIFIER is separate;
5833
5834 -- N_Package_Body_Stub
5835 -- Sloc points to PACKAGE
5836 -- Defining_Identifier (Node1)
5837 -- Library_Unit (Node4-Sem) points to the subunit
5838 -- Corresponding_Body (Node5-Sem)
5839
5840 ----------------------------
5841 -- 10.1.3 Task Body Stub --
5842 ----------------------------
5843
5844 -- TASK_BODY_STUB ::=
5845 -- task body DEFINING_IDENTIFIER is separate;
5846
5847 -- N_Task_Body_Stub
5848 -- Sloc points to TASK
5849 -- Defining_Identifier (Node1)
5850 -- Library_Unit (Node4-Sem) points to the subunit
5851 -- Corresponding_Body (Node5-Sem)
5852
5853 ---------------------------------
5854 -- 10.1.3 Protected Body Stub --
5855 ---------------------------------
5856
5857 -- PROTECTED_BODY_STUB ::=
5858 -- protected body DEFINING_IDENTIFIER is separate;
5859
5860 -- Note: protected body stubs are not allowed in Ada 83 mode
5861
5862 -- N_Protected_Body_Stub
5863 -- Sloc points to PROTECTED
5864 -- Defining_Identifier (Node1)
5865 -- Library_Unit (Node4-Sem) points to the subunit
5866 -- Corresponding_Body (Node5-Sem)
5867
5868 ---------------------
5869 -- 10.1.3 Subunit --
5870 ---------------------
5871
5872 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
5873
5874 -- N_Subunit
5875 -- Sloc points to SEPARATE
5876 -- Name (Node2) is the name of the parent unit
5877 -- Proper_Body (Node1) is the subunit body
5878 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
5879
5880 ---------------------------------
5881 -- 11.1 Exception Declaration --
5882 ---------------------------------
5883
5884 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
5885 -- [ASPECT_SPECIFICATIONS];
5886
5887 -- For consistency with object declarations etc., the parser converts
5888 -- the case of multiple identifiers being declared to a series of
5889 -- declarations in which the expression is copied, using the More_Ids
5890 -- and Prev_Ids flags to remember the source form as described in the
5891 -- section on "Handling of Defining Identifier Lists".
5892
5893 -- N_Exception_Declaration
5894 -- Sloc points to EXCEPTION
5895 -- Defining_Identifier (Node1)
5896 -- Expression (Node3-Sem)
5897 -- Renaming_Exception (Node2-Sem)
5898 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5899 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5900
5901 ------------------------------------------
5902 -- 11.2 Handled Sequence Of Statements --
5903 ------------------------------------------
5904
5905 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
5906 -- SEQUENCE_OF_STATEMENTS
5907 -- [exception
5908 -- EXCEPTION_HANDLER
5909 -- {EXCEPTION_HANDLER}]
5910 -- [at end
5911 -- cleanup_procedure_call (param, param, param, ...);]
5912
5913 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
5914 -- used only internally currently, but is considered to be syntactic.
5915 -- At the moment, the only cleanup action allowed is a single call to
5916 -- a parameterless procedure, and the Identifier field of the node is
5917 -- the procedure to be called. Also there is a current restriction
5918 -- that exception handles and a cleanup cannot be present in the same
5919 -- frame, so at least one of Exception_Handlers or the Identifier must
5920 -- be missing.
5921
5922 -- Actually, more accurately, this restriction applies to the original
5923 -- source program. In the expanded tree, if the At_End_Proc field is
5924 -- present, then there will also be an exception handler of the form:
5925
5926 -- when all others =>
5927 -- cleanup;
5928 -- raise;
5929
5930 -- where cleanup is the procedure to be generated. The reason we do
5931 -- this is so that the front end can handle the necessary entries in
5932 -- the exception tables, and other exception handler actions required
5933 -- as part of the normal handling for exception handlers.
5934
5935 -- The AT END cleanup handler protects only the sequence of statements
5936 -- (not the associated declarations of the parent), just like exception
5937 -- handlers. The big difference is that the cleanup procedure is called
5938 -- on either a normal or an abnormal exit from the statement sequence.
5939
5940 -- Note: the list of Exception_Handlers can contain pragmas as well
5941 -- as actual handlers. In practice these pragmas can only occur at
5942 -- the start of the list, since any pragmas occurring later on will
5943 -- be included in the statement list of the corresponding handler.
5944
5945 -- Note: although in the Ada syntax, the sequence of statements in
5946 -- a handled sequence of statements can only contain statements, we
5947 -- allow free mixing of declarations and statements in the resulting
5948 -- expanded tree. This is for example used to deal with the case of
5949 -- a cleanup procedure that must handle declarations as well as the
5950 -- statements of a block.
5951
5952 -- N_Handled_Sequence_Of_Statements
5953 -- Sloc points to first token of first statement
5954 -- Statements (List3)
5955 -- End_Label (Node4) (set to Empty if expander generated)
5956 -- Exception_Handlers (List5) (set to No_List if none present)
5957 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
5958 -- First_Real_Statement (Node2-Sem)
5959 -- Zero_Cost_Handling (Flag5-Sem)
5960
5961 -- Note: the parent always contains a Declarations field which contains
5962 -- declarations associated with the handled sequence of statements. This
5963 -- is true even in the case of an accept statement (see description of
5964 -- the N_Accept_Statement node).
5965
5966 -- End_Label refers to the containing construct
5967
5968 -----------------------------
5969 -- 11.2 Exception Handler --
5970 -----------------------------
5971
5972 -- EXCEPTION_HANDLER ::=
5973 -- when [CHOICE_PARAMETER_SPECIFICATION :]
5974 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
5975 -- SEQUENCE_OF_STATEMENTS
5976
5977 -- Note: choice parameter specification is not allowed in Ada 83 mode
5978
5979 -- N_Exception_Handler
5980 -- Sloc points to WHEN
5981 -- Choice_Parameter (Node2) (set to Empty if not present)
5982 -- Exception_Choices (List4)
5983 -- Statements (List3)
5984 -- Exception_Label (Node5-Sem) (set to Empty of not present)
5985 -- Zero_Cost_Handling (Flag5-Sem)
5986 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
5987 -- Local_Raise_Not_OK (Flag7-Sem)
5988 -- Has_Local_Raise (Flag8-Sem)
5989
5990 ------------------------------------------
5991 -- 11.2 Choice parameter specification --
5992 ------------------------------------------
5993
5994 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
5995
5996 ----------------------------
5997 -- 11.2 Exception Choice --
5998 ----------------------------
5999
6000 -- EXCEPTION_CHOICE ::= exception_NAME | others
6001
6002 -- Except in the case of OTHERS, no explicit node appears in the tree
6003 -- for exception choice. Instead the exception name appears directly.
6004 -- An OTHERS choice is represented by a N_Others_Choice node (see
6005 -- section 3.8.1.
6006
6007 -- Note: for the exception choice created for an at end handler, the
6008 -- exception choice is an N_Others_Choice node with All_Others set.
6009
6010 ---------------------------
6011 -- 11.3 Raise Statement --
6012 ---------------------------
6013
6014 -- RAISE_STATEMENT ::= raise [exception_NAME];
6015
6016 -- In Ada 2005, we have
6017
6018 -- RAISE_STATEMENT ::= raise; | raise exception_NAME [with EXPRESSION];
6019
6020 -- N_Raise_Statement
6021 -- Sloc points to RAISE
6022 -- Name (Node2) (set to Empty if no exception name present)
6023 -- Expression (Node3) (set to Empty if no expression present)
6024 -- From_At_End (Flag4-Sem)
6025
6026 -------------------------------
6027 -- 12.1 Generic Declaration --
6028 -------------------------------
6029
6030 -- GENERIC_DECLARATION ::=
6031 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
6032
6033 ------------------------------------------
6034 -- 12.1 Generic Subprogram Declaration --
6035 ------------------------------------------
6036
6037 -- GENERIC_SUBPROGRAM_DECLARATION ::=
6038 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION;
6039
6040 -- Note: Generic_Formal_Declarations can include pragmas
6041
6042 -- N_Generic_Subprogram_Declaration
6043 -- Sloc points to GENERIC
6044 -- Specification (Node1) subprogram specification
6045 -- Corresponding_Body (Node5-Sem)
6046 -- Generic_Formal_Declarations (List2) from generic formal part
6047 -- Parent_Spec (Node4-Sem)
6048
6049 ---------------------------------------
6050 -- 12.1 Generic Package Declaration --
6051 ---------------------------------------
6052
6053 -- GENERIC_PACKAGE_DECLARATION ::=
6054 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
6055 -- [ASPECT_SPECIFICATIONS];
6056
6057 -- Note: when we do generics right, the Activation_Chain_Entity entry
6058 -- for this node can be removed (since the expander won't see generic
6059 -- units any more)???.
6060
6061 -- Note: Generic_Formal_Declarations can include pragmas
6062
6063 -- N_Generic_Package_Declaration
6064 -- Sloc points to GENERIC
6065 -- Specification (Node1) package specification
6066 -- Corresponding_Body (Node5-Sem)
6067 -- Generic_Formal_Declarations (List2) from generic formal part
6068 -- Parent_Spec (Node4-Sem)
6069 -- Activation_Chain_Entity (Node3-Sem)
6070
6071 -------------------------------
6072 -- 12.1 Generic Formal Part --
6073 -------------------------------
6074
6075 -- GENERIC_FORMAL_PART ::=
6076 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
6077
6078 ------------------------------------------------
6079 -- 12.1 Generic Formal Parameter Declaration --
6080 ------------------------------------------------
6081
6082 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
6083 -- FORMAL_OBJECT_DECLARATION
6084 -- | FORMAL_TYPE_DECLARATION
6085 -- | FORMAL_SUBPROGRAM_DECLARATION
6086 -- | FORMAL_PACKAGE_DECLARATION
6087
6088 ---------------------------------
6089 -- 12.3 Generic Instantiation --
6090 ---------------------------------
6091
6092 -- GENERIC_INSTANTIATION ::=
6093 -- package DEFINING_PROGRAM_UNIT_NAME is
6094 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
6095 -- [ASPECT_SPECIFICATIONS];
6096 -- | [[not] overriding]
6097 -- procedure DEFINING_PROGRAM_UNIT_NAME is
6098 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
6099 -- [ASPECT_SPECIFICATIONS];
6100 -- | [[not] overriding]
6101 -- function DEFINING_DESIGNATOR is
6102 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
6103 -- [ASPECT_SPECIFICATIONS];
6104
6105 -- N_Package_Instantiation
6106 -- Sloc points to PACKAGE
6107 -- Defining_Unit_Name (Node1)
6108 -- Name (Node2)
6109 -- Generic_Associations (List3) (set to No_List if no
6110 -- generic actual part)
6111 -- Parent_Spec (Node4-Sem)
6112 -- Instance_Spec (Node5-Sem)
6113 -- ABE_Is_Certain (Flag18-Sem)
6114
6115 -- N_Procedure_Instantiation
6116 -- Sloc points to PROCEDURE
6117 -- Defining_Unit_Name (Node1)
6118 -- Name (Node2)
6119 -- Parent_Spec (Node4-Sem)
6120 -- Generic_Associations (List3) (set to No_List if no
6121 -- generic actual part)
6122 -- Instance_Spec (Node5-Sem)
6123 -- Must_Override (Flag14) set if overriding indicator present
6124 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6125 -- ABE_Is_Certain (Flag18-Sem)
6126
6127 -- N_Function_Instantiation
6128 -- Sloc points to FUNCTION
6129 -- Defining_Unit_Name (Node1)
6130 -- Name (Node2)
6131 -- Generic_Associations (List3) (set to No_List if no
6132 -- generic actual part)
6133 -- Parent_Spec (Node4-Sem)
6134 -- Instance_Spec (Node5-Sem)
6135 -- Must_Override (Flag14) set if overriding indicator present
6136 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6137 -- ABE_Is_Certain (Flag18-Sem)
6138
6139 -- Note: overriding indicator is an Ada 2005 feature
6140
6141 -------------------------------
6142 -- 12.3 Generic Actual Part --
6143 -------------------------------
6144
6145 -- GENERIC_ACTUAL_PART ::=
6146 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
6147
6148 -------------------------------
6149 -- 12.3 Generic Association --
6150 -------------------------------
6151
6152 -- GENERIC_ASSOCIATION ::=
6153 -- [generic_formal_parameter_SELECTOR_NAME =>]
6154
6155 -- Note: unlike the procedure call case, a generic association node
6156 -- is generated for every association, even if no formal parameter
6157 -- selector name is present. In this case the parser will leave the
6158 -- Selector_Name field set to Empty, to be filled in later by the
6159 -- semantic pass.
6160
6161 -- In Ada 2005, a formal may be associated with a box, if the
6162 -- association is part of the list of actuals for a formal package.
6163 -- If the association is given by OTHERS => <>, the association is
6164 -- an N_Others_Choice.
6165
6166 -- N_Generic_Association
6167 -- Sloc points to first token of generic association
6168 -- Selector_Name (Node2) (set to Empty if no formal
6169 -- parameter selector name)
6170 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
6171 -- Box_Present (Flag15) (for formal_package associations with a box)
6172
6173 ---------------------------------------------
6174 -- 12.3 Explicit Generic Actual Parameter --
6175 ---------------------------------------------
6176
6177 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
6178 -- EXPRESSION | variable_NAME | subprogram_NAME
6179 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
6180
6181 -------------------------------------
6182 -- 12.4 Formal Object Declaration --
6183 -------------------------------------
6184
6185 -- FORMAL_OBJECT_DECLARATION ::=
6186 -- DEFINING_IDENTIFIER_LIST :
6187 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
6188 -- [ASPECT_SPECIFICATIONS];
6189 -- | DEFINING_IDENTIFIER_LIST :
6190 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
6191 -- [ASPECT_SPECIFICATIONS];
6192
6193 -- Although the syntax allows multiple identifiers in the list, the
6194 -- semantics is as though successive declarations were given with
6195 -- identical type definition and expression components. To simplify
6196 -- semantic processing, the parser represents a multiple declaration
6197 -- case as a sequence of single declarations, using the More_Ids and
6198 -- Prev_Ids flags to preserve the original source form as described
6199 -- in the section on "Handling of Defining Identifier Lists".
6200
6201 -- N_Formal_Object_Declaration
6202 -- Sloc points to first identifier
6203 -- Defining_Identifier (Node1)
6204 -- In_Present (Flag15)
6205 -- Out_Present (Flag17)
6206 -- Null_Exclusion_Present (Flag11) (set to False if not present)
6207 -- Subtype_Mark (Node4) (set to Empty if not present)
6208 -- Access_Definition (Node3) (set to Empty if not present)
6209 -- Default_Expression (Node5) (set to Empty if no default expression)
6210 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6211 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6212
6213 -----------------------------------
6214 -- 12.5 Formal Type Declaration --
6215 -----------------------------------
6216
6217 -- FORMAL_TYPE_DECLARATION ::=
6218 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
6219 -- is FORMAL_TYPE_DEFINITION
6220 -- [ASPECT_SPECIFICATIONS];
6221
6222 -- N_Formal_Type_Declaration
6223 -- Sloc points to TYPE
6224 -- Defining_Identifier (Node1)
6225 -- Formal_Type_Definition (Node3)
6226 -- Discriminant_Specifications (List4) (set to No_List if no
6227 -- discriminant part)
6228 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
6229
6230 ----------------------------------
6231 -- 12.5 Formal type definition --
6232 ----------------------------------
6233
6234 -- FORMAL_TYPE_DEFINITION ::=
6235 -- FORMAL_PRIVATE_TYPE_DEFINITION
6236 -- | FORMAL_DERIVED_TYPE_DEFINITION
6237 -- | FORMAL_DISCRETE_TYPE_DEFINITION
6238 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
6239 -- | FORMAL_MODULAR_TYPE_DEFINITION
6240 -- | FORMAL_FLOATING_POINT_DEFINITION
6241 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
6242 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
6243 -- | FORMAL_ARRAY_TYPE_DEFINITION
6244 -- | FORMAL_ACCESS_TYPE_DEFINITION
6245 -- | FORMAL_INTERFACE_TYPE_DEFINITION
6246
6247 ---------------------------------------------
6248 -- 12.5.1 Formal Private Type Definition --
6249 ---------------------------------------------
6250
6251 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
6252 -- [[abstract] tagged] [limited] private
6253
6254 -- Note: TAGGED is not allowed in Ada 83 mode
6255
6256 -- N_Formal_Private_Type_Definition
6257 -- Sloc points to PRIVATE
6258 -- Abstract_Present (Flag4)
6259 -- Tagged_Present (Flag15)
6260 -- Limited_Present (Flag17)
6261
6262 --------------------------------------------
6263 -- 12.5.1 Formal Derived Type Definition --
6264 --------------------------------------------
6265
6266 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
6267 -- [abstract] [limited | synchronized]
6268 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
6269 -- Note: this construct is not allowed in Ada 83 mode
6270
6271 -- N_Formal_Derived_Type_Definition
6272 -- Sloc points to NEW
6273 -- Subtype_Mark (Node4)
6274 -- Private_Present (Flag15)
6275 -- Abstract_Present (Flag4)
6276 -- Limited_Present (Flag17)
6277 -- Synchronized_Present (Flag7)
6278 -- Interface_List (List2) (set to No_List if none)
6279
6280 ---------------------------------------------
6281 -- 12.5.2 Formal Discrete Type Definition --
6282 ---------------------------------------------
6283
6284 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
6285
6286 -- N_Formal_Discrete_Type_Definition
6287 -- Sloc points to (
6288
6289 ---------------------------------------------------
6290 -- 12.5.2 Formal Signed Integer Type Definition --
6291 ---------------------------------------------------
6292
6293 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
6294
6295 -- N_Formal_Signed_Integer_Type_Definition
6296 -- Sloc points to RANGE
6297
6298 --------------------------------------------
6299 -- 12.5.2 Formal Modular Type Definition --
6300 --------------------------------------------
6301
6302 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
6303
6304 -- N_Formal_Modular_Type_Definition
6305 -- Sloc points to MOD
6306
6307 ----------------------------------------------
6308 -- 12.5.2 Formal Floating Point Definition --
6309 ----------------------------------------------
6310
6311 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
6312
6313 -- N_Formal_Floating_Point_Definition
6314 -- Sloc points to DIGITS
6315
6316 ----------------------------------------------------
6317 -- 12.5.2 Formal Ordinary Fixed Point Definition --
6318 ----------------------------------------------------
6319
6320 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
6321
6322 -- N_Formal_Ordinary_Fixed_Point_Definition
6323 -- Sloc points to DELTA
6324
6325 ---------------------------------------------------
6326 -- 12.5.2 Formal Decimal Fixed Point Definition --
6327 ---------------------------------------------------
6328
6329 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
6330
6331 -- Note: formal decimal fixed point definition not allowed in Ada 83
6332
6333 -- N_Formal_Decimal_Fixed_Point_Definition
6334 -- Sloc points to DELTA
6335
6336 ------------------------------------------
6337 -- 12.5.3 Formal Array Type Definition --
6338 ------------------------------------------
6339
6340 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
6341
6342 -------------------------------------------
6343 -- 12.5.4 Formal Access Type Definition --
6344 -------------------------------------------
6345
6346 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
6347
6348 ----------------------------------------------
6349 -- 12.5.5 Formal Interface Type Definition --
6350 ----------------------------------------------
6351
6352 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
6353
6354 -----------------------------------------
6355 -- 12.6 Formal Subprogram Declaration --
6356 -----------------------------------------
6357
6358 -- FORMAL_SUBPROGRAM_DECLARATION ::=
6359 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
6360 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
6361
6362 --------------------------------------------------
6363 -- 12.6 Formal Concrete Subprogram Declaration --
6364 --------------------------------------------------
6365
6366 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
6367 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
6368 -- [ASPECT_SPECIFICATIONS];
6369
6370 -- N_Formal_Concrete_Subprogram_Declaration
6371 -- Sloc points to WITH
6372 -- Specification (Node1)
6373 -- Default_Name (Node2) (set to Empty if no subprogram default)
6374 -- Box_Present (Flag15)
6375
6376 -- Note: if no subprogram default is present, then Name is set
6377 -- to Empty, and Box_Present is False.
6378
6379 --------------------------------------------------
6380 -- 12.6 Formal Abstract Subprogram Declaration --
6381 --------------------------------------------------
6382
6383 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
6384 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
6385 -- [ASPECT_SPECIFICATIONS];
6386
6387 -- N_Formal_Abstract_Subprogram_Declaration
6388 -- Sloc points to WITH
6389 -- Specification (Node1)
6390 -- Default_Name (Node2) (set to Empty if no subprogram default)
6391 -- Box_Present (Flag15)
6392
6393 -- Note: if no subprogram default is present, then Name is set
6394 -- to Empty, and Box_Present is False.
6395
6396 ------------------------------
6397 -- 12.6 Subprogram Default --
6398 ------------------------------
6399
6400 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
6401
6402 -- There is no separate node in the tree for a subprogram default.
6403 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
6404 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
6405 -- default name or box indication, as needed.
6406
6407 ------------------------
6408 -- 12.6 Default Name --
6409 ------------------------
6410
6411 -- DEFAULT_NAME ::= NAME
6412
6413 --------------------------------------
6414 -- 12.7 Formal Package Declaration --
6415 --------------------------------------
6416
6417 -- FORMAL_PACKAGE_DECLARATION ::=
6418 -- with package DEFINING_IDENTIFIER
6419 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
6420 -- [ASPECT_SPECIFICATIONS];
6421
6422 -- Note: formal package declarations not allowed in Ada 83 mode
6423
6424 -- N_Formal_Package_Declaration
6425 -- Sloc points to WITH
6426 -- Defining_Identifier (Node1)
6427 -- Name (Node2)
6428 -- Generic_Associations (List3) (set to No_List if (<>) case or
6429 -- empty generic actual part)
6430 -- Box_Present (Flag15)
6431 -- Instance_Spec (Node5-Sem)
6432 -- ABE_Is_Certain (Flag18-Sem)
6433
6434 --------------------------------------
6435 -- 12.7 Formal Package Actual Part --
6436 --------------------------------------
6437
6438 -- FORMAL_PACKAGE_ACTUAL_PART ::=
6439 -- ([OTHERS] => <>)
6440 -- | [GENERIC_ACTUAL_PART]
6441 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
6442
6443 -- FORMAL_PACKAGE_ASSOCIATION ::=
6444 -- GENERIC_ASSOCIATION
6445 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
6446
6447 -- There is no explicit node in the tree for a formal package actual
6448 -- part. Instead the information appears in the parent node (i.e. the
6449 -- formal package declaration node itself).
6450
6451 -- There is no explicit node for a formal package association. All of
6452 -- them are represented either by a generic association, possibly with
6453 -- Box_Present, or by an N_Others_Choice.
6454
6455 ---------------------------------
6456 -- 13.1 Representation clause --
6457 ---------------------------------
6458
6459 -- REPRESENTATION_CLAUSE ::=
6460 -- ATTRIBUTE_DEFINITION_CLAUSE
6461 -- | ENUMERATION_REPRESENTATION_CLAUSE
6462 -- | RECORD_REPRESENTATION_CLAUSE
6463 -- | AT_CLAUSE
6464
6465 ----------------------
6466 -- 13.1 Local Name --
6467 ----------------------
6468
6469 -- LOCAL_NAME :=
6470 -- DIRECT_NAME
6471 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
6472 -- | library_unit_NAME
6473
6474 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
6475 -- as an attribute reference, which has essentially the same form.
6476
6477 ---------------------------------------
6478 -- 13.3 Attribute definition clause --
6479 ---------------------------------------
6480
6481 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
6482 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
6483 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
6484
6485 -- In Ada 83, the expression must be a simple expression and the
6486 -- local name must be a direct name.
6487
6488 -- Note: the only attribute definition clause that is processed by
6489 -- gigi is an address clause. For all other cases, the information
6490 -- is extracted by the front end and either results in setting entity
6491 -- information, e.g. Esize for the Size clause, or in appropriate
6492 -- expansion actions (e.g. in the case of Storage_Size).
6493
6494 -- For an address clause, Gigi constructs the appropriate addressing
6495 -- code. It also ensures that no aliasing optimizations are made
6496 -- for the object for which the address clause appears.
6497
6498 -- Note: for an address clause used to achieve an overlay:
6499
6500 -- A : Integer;
6501 -- B : Integer;
6502 -- for B'Address use A'Address;
6503
6504 -- the above rule means that Gigi will ensure that no optimizations
6505 -- will be made for B that would violate the implementation advice
6506 -- of RM 13.3(19). However, this advice applies only to B and not
6507 -- to A, which seems unfortunate. The GNAT front end will mark the
6508 -- object A as volatile to also prevent unwanted optimization
6509 -- assumptions based on no aliasing being made for B.
6510
6511 -- N_Attribute_Definition_Clause
6512 -- Sloc points to FOR
6513 -- Name (Node2) the local name
6514 -- Chars (Name1) the identifier name from the attribute designator
6515 -- Expression (Node3) the expression or name
6516 -- Entity (Node4-Sem)
6517 -- Next_Rep_Item (Node5-Sem)
6518 -- From_At_Mod (Flag4-Sem)
6519 -- Check_Address_Alignment (Flag11-Sem)
6520 -- From_Aspect_Specification (Flag13-Sem)
6521 -- Is_Delayed_Aspect (Flag14-Sem)
6522 -- Address_Warning_Posted (Flag18-Sem)
6523
6524 -- Note: if From_Aspect_Specification is set, then Sloc points to the
6525 -- aspect name, and Entity is resolved already to reference the entity
6526 -- to which the aspect applies.
6527
6528 -----------------------------------
6529 -- 13.3.1 Aspect Specifications --
6530 -----------------------------------
6531
6532 -- We modify the RM grammar here, the RM grammar is:
6533
6534 -- ASPECT_SPECIFICATION ::=
6535 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {.
6536 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
6537
6538 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6539
6540 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6541
6542 -- That's inconvenient, since there is no non-terminal name for a single
6543 -- entry in the list of aspects. So we use this grammar instead:
6544
6545 -- ASPECT_SPECIFICATIONS ::=
6546 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
6547
6548 -- ASPECT_SPECIFICATION =>
6549 -- ASPECT_MARK [=> ASPECT_DEFINITION]
6550
6551 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
6552
6553 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
6554
6555 -- See separate package Aspects for details on the incorporation of
6556 -- these nodes into the tree, and how aspect specifications for a given
6557 -- declaration node are associated with that node.
6558
6559 -- N_Aspect_Specification
6560 -- Sloc points to aspect identifier
6561 -- Identifier (Node1) aspect identifier
6562 -- Aspect_Rep_Item (Node2-Sem)
6563 -- Expression (Node3) Aspect_Definition (set to Empty if none)
6564 -- Entity (Node4-Sem) entity to which the aspect applies
6565 -- Class_Present (Flag6) Set if 'Class present
6566 -- Next_Rep_Item (Node5-Sem)
6567 -- Split_PPC (Flag17) Set if split pre/post attribute
6568 -- Is_Boolean_Aspect (Flag16-Sem)
6569 -- Is_Delayed_Aspect (Flag14-Sem)
6570
6571 -- Note: Aspect_Specification is an Ada 2012 feature
6572
6573 -- Note: The Identifier serves to identify the aspect involved (it
6574 -- is the aspect whose name corresponds to the Chars field). This
6575 -- means that the other fields of this identifier are unused, and
6576 -- in particular we use the Entity field of this identifier to save
6577 -- a copy of the expression for visibility analysis, see spec of
6578 -- Sem_Ch13 for full details of this usage.
6579
6580 -- Note: When a Pre or Post aspect specification is processed, it is
6581 -- broken into AND THEN sections. The left most section has Split_PPC
6582 -- set to False, indicating that it is the original specification (e.g.
6583 -- for posting errors). For the other sections, Split_PPC is set True.
6584
6585 ---------------------------------------------
6586 -- 13.4 Enumeration representation clause --
6587 ---------------------------------------------
6588
6589 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
6590 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
6591
6592 -- In Ada 83, the name must be a direct name
6593
6594 -- N_Enumeration_Representation_Clause
6595 -- Sloc points to FOR
6596 -- Identifier (Node1) direct name
6597 -- Array_Aggregate (Node3)
6598 -- Next_Rep_Item (Node5-Sem)
6599
6600 ---------------------------------
6601 -- 13.4 Enumeration aggregate --
6602 ---------------------------------
6603
6604 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
6605
6606 ------------------------------------------
6607 -- 13.5.1 Record representation clause --
6608 ------------------------------------------
6609
6610 -- RECORD_REPRESENTATION_CLAUSE ::=
6611 -- for first_subtype_LOCAL_NAME use
6612 -- record [MOD_CLAUSE]
6613 -- {COMPONENT_CLAUSE}
6614 -- end record;
6615
6616 -- Gigi restriction: Mod_Clause is always Empty (if present it is
6617 -- replaced by a corresponding Alignment attribute definition clause).
6618
6619 -- Note: Component_Clauses can include pragmas
6620
6621 -- N_Record_Representation_Clause
6622 -- Sloc points to FOR
6623 -- Identifier (Node1) direct name
6624 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
6625 -- Component_Clauses (List3)
6626 -- Next_Rep_Item (Node5-Sem)
6627
6628 ------------------------------
6629 -- 13.5.1 Component clause --
6630 ------------------------------
6631
6632 -- COMPONENT_CLAUSE ::=
6633 -- component_LOCAL_NAME at POSITION
6634 -- range FIRST_BIT .. LAST_BIT;
6635
6636 -- N_Component_Clause
6637 -- Sloc points to AT
6638 -- Component_Name (Node1) points to Name or Attribute_Reference
6639 -- Position (Node2)
6640 -- First_Bit (Node3)
6641 -- Last_Bit (Node4)
6642
6643 ----------------------
6644 -- 13.5.1 Position --
6645 ----------------------
6646
6647 -- POSITION ::= static_EXPRESSION
6648
6649 -----------------------
6650 -- 13.5.1 First_Bit --
6651 -----------------------
6652
6653 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
6654
6655 ----------------------
6656 -- 13.5.1 Last_Bit --
6657 ----------------------
6658
6659 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
6660
6661 --------------------------
6662 -- 13.8 Code statement --
6663 --------------------------
6664
6665 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
6666
6667 -- Note: in GNAT, the qualified expression has the form
6668
6669 -- Asm_Insn'(Asm (...));
6670
6671 -- See package System.Machine_Code in file s-maccod.ads for details on
6672 -- the allowed parameters to Asm. There are two ways this node can
6673 -- arise, as a code statement, in which case the expression is the
6674 -- qualified expression, or as a result of the expansion of an intrinsic
6675 -- call to the Asm or Asm_Input procedure.
6676
6677 -- N_Code_Statement
6678 -- Sloc points to first token of the expression
6679 -- Expression (Node3)
6680
6681 -- Note: package Exp_Code contains an abstract functional interface
6682 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
6683
6684 ------------------------
6685 -- 13.12 Restriction --
6686 ------------------------
6687
6688 -- RESTRICTION ::=
6689 -- restriction_IDENTIFIER
6690 -- | restriction_parameter_IDENTIFIER => EXPRESSION
6691
6692 -- There is no explicit node for restrictions. Instead the restriction
6693 -- appears in normal pragma syntax as a pragma argument association,
6694 -- which has the same syntactic form.
6695
6696 --------------------------
6697 -- B.2 Shift Operators --
6698 --------------------------
6699
6700 -- Calls to the intrinsic shift functions are converted to one of
6701 -- the following shift nodes, which have the form of normal binary
6702 -- operator names. Note that for a given shift operation, one node
6703 -- covers all possible types, as for normal operators.
6704
6705 -- Note: it is perfectly permissible for the expander to generate
6706 -- shift operation nodes directly, in which case they will be analyzed
6707 -- and parsed in the usual manner.
6708
6709 -- Sprint syntax: shift-function-name!(expr, count)
6710
6711 -- Note: the Left_Opnd field holds the first argument (the value to
6712 -- be shifted). The Right_Opnd field holds the second argument (the
6713 -- shift count). The Chars field is the name of the intrinsic function.
6714
6715 -- N_Op_Rotate_Left
6716 -- Sloc points to the function name
6717 -- plus fields for binary operator
6718 -- plus fields for expression
6719 -- Shift_Count_OK (Flag4-Sem)
6720
6721 -- N_Op_Rotate_Right
6722 -- Sloc points to the function name
6723 -- plus fields for binary operator
6724 -- plus fields for expression
6725 -- Shift_Count_OK (Flag4-Sem)
6726
6727 -- N_Op_Shift_Left
6728 -- Sloc points to the function name
6729 -- plus fields for binary operator
6730 -- plus fields for expression
6731 -- Shift_Count_OK (Flag4-Sem)
6732
6733 -- N_Op_Shift_Right_Arithmetic
6734 -- Sloc points to the function name
6735 -- plus fields for binary operator
6736 -- plus fields for expression
6737 -- Shift_Count_OK (Flag4-Sem)
6738
6739 -- N_Op_Shift_Right
6740 -- Sloc points to the function name
6741 -- plus fields for binary operator
6742 -- plus fields for expression
6743 -- Shift_Count_OK (Flag4-Sem)
6744
6745 --------------------------
6746 -- Obsolescent Features --
6747 --------------------------
6748
6749 -- The syntax descriptions and tree nodes for obsolescent features are
6750 -- grouped together, corresponding to their location in appendix I in
6751 -- the RM. However, parsing and semantic analysis for these constructs
6752 -- is located in an appropriate chapter (see individual notes).
6753
6754 ---------------------------
6755 -- J.3 Delta Constraint --
6756 ---------------------------
6757
6758 -- Note: the parse routine for this construct is located in section
6759 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
6760 -- where delta constraint logically belongs.
6761
6762 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
6763
6764 -- N_Delta_Constraint
6765 -- Sloc points to DELTA
6766 -- Delta_Expression (Node3)
6767 -- Range_Constraint (Node4) (set to Empty if not present)
6768
6769 --------------------
6770 -- J.7 At Clause --
6771 --------------------
6772
6773 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
6774
6775 -- Note: the parse routine for this construct is located in Par-Ch13,
6776 -- and the semantic analysis is in Sem_Ch13, where at clause logically
6777 -- belongs if it were not obsolescent.
6778
6779 -- Note: in Ada 83 the expression must be a simple expression
6780
6781 -- Gigi restriction: This node never appears, it is rewritten as an
6782 -- address attribute definition clause.
6783
6784 -- N_At_Clause
6785 -- Sloc points to FOR
6786 -- Identifier (Node1)
6787 -- Expression (Node3)
6788
6789 ---------------------
6790 -- J.8 Mod clause --
6791 ---------------------
6792
6793 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
6794
6795 -- Note: the parse routine for this construct is located in Par-Ch13,
6796 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
6797 -- belongs if it were not obsolescent.
6798
6799 -- Note: in Ada 83, the expression must be a simple expression
6800
6801 -- Gigi restriction: this node never appears. It is replaced
6802 -- by a corresponding Alignment attribute definition clause.
6803
6804 -- Note: pragmas can appear before and after the MOD_CLAUSE since
6805 -- its name has "clause" in it. This is rather strange, but is quite
6806 -- definitely specified. The pragmas before are collected in the
6807 -- Pragmas_Before field of the mod clause node itself, and pragmas
6808 -- after are simply swallowed up in the list of component clauses.
6809
6810 -- N_Mod_Clause
6811 -- Sloc points to AT
6812 -- Expression (Node3)
6813 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
6814
6815 --------------------
6816 -- Semantic Nodes --
6817 --------------------
6818
6819 -- These semantic nodes are used to hold additional semantic information.
6820 -- They are inserted into the tree as a result of semantic processing.
6821 -- Although there are no legitimate source syntax constructions that
6822 -- correspond directly to these nodes, we need a source syntax for the
6823 -- reconstructed tree printed by Sprint, and the node descriptions here
6824 -- show this syntax.
6825
6826 -- Note: Case_Expression and Conditional_Expression is in this section for
6827 -- now, since they are extensions. We will move them to their appropriate
6828 -- places when they are officially approved as extensions (and then we will
6829 -- know what the exact grammar and place in the Reference Manual is!)
6830
6831 ---------------------
6832 -- Case Expression --
6833 ---------------------
6834
6835 -- CASE_EXPRESSION ::=
6836 -- case EXPRESSION is
6837 -- CASE_EXPRESSION_ALTERNATIVE
6838 -- {CASE_EXPRESSION_ALTERNATIVE}
6839
6840 -- Note that the Alternatives cannot include pragmas (this contrasts
6841 -- with the situation of case statements where pragmas are allowed).
6842
6843 -- N_Case_Expression
6844 -- Sloc points to CASE
6845 -- Expression (Node3)
6846 -- Alternatives (List4)
6847
6848 ---------------------------------
6849 -- Case Expression Alternative --
6850 ---------------------------------
6851
6852 -- CASE_STATEMENT_ALTERNATIVE ::=
6853 -- when DISCRETE_CHOICE_LIST =>
6854 -- EXPRESSION
6855
6856 -- N_Case_Expression_Alternative
6857 -- Sloc points to WHEN
6858 -- Actions (List1)
6859 -- Discrete_Choices (List4)
6860 -- Expression (Node3)
6861
6862 -- Note: The Actions field temporarily holds any actions associated with
6863 -- evaluation of the Expression. During expansion of the case expression
6864 -- these actions are wrapped into an N_Expressions_With_Actions node
6865 -- replacing the original expression.
6866
6867 ----------------------------
6868 -- Conditional Expression --
6869 ----------------------------
6870
6871 -- This node is used to represent an expression corresponding to the
6872 -- C construct (condition ? then-expression : else_expression), where
6873 -- Expressions is a three element list, whose first expression is the
6874 -- condition, and whose second and third expressions are the then and
6875 -- else expressions respectively.
6876
6877 -- Note: the Then_Actions and Else_Actions fields are always set to
6878 -- No_List in the tree passed to Gigi. These fields are used only
6879 -- for temporary processing purposes in the expander.
6880
6881 -- The Ada language does not permit conditional expressions, however
6882 -- this is under discussion as a possible extension by the ARG, and we
6883 -- have implemented a form of this capability in GNAT under control of
6884 -- the -gnatX switch. The syntax is:
6885
6886 -- CONDITIONAL_EXPRESSION ::=
6887 -- if EXPRESSION then EXPRESSION
6888 -- {elsif EXPRESSION then EXPRESSION}
6889 -- [else EXPRESSION]
6890
6891 -- And we add the additional constructs
6892
6893 -- PRIMARY ::= ( CONDITIONAL_EXPRESSION )
6894 -- PRAGMA_ARGUMENT_ASSOCIATION ::= CONDITIONAL_EXPRESSION
6895
6896 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
6897 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
6898 -- the Is_Elsif flag is set on the inner conditional expression.
6899
6900 -- N_Conditional_Expression
6901 -- Sloc points to IF or ELSIF keyword
6902 -- Expressions (List1)
6903 -- Then_Actions (List2-Sem)
6904 -- Else_Actions (List3-Sem)
6905 -- Is_Elsif (Flag13) (set if comes from ELSIF)
6906 -- plus fields for expression
6907
6908 -------------------
6909 -- Expanded_Name --
6910 -------------------
6911
6912 -- The N_Expanded_Name node is used to represent a selected component
6913 -- name that has been resolved to an expanded name. The semantic phase
6914 -- replaces N_Selected_Component nodes that represent names by the use
6915 -- of this node, leaving the N_Selected_Component node used only when
6916 -- the prefix is a record or protected type.
6917
6918 -- The fields of the N_Expanded_Name node are layed out identically
6919 -- to those of the N_Selected_Component node, allowing conversion of
6920 -- an expanded name node to a selected component node to be done
6921 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
6922
6923 -- There is no special sprint syntax for an expanded name
6924
6925 -- N_Expanded_Name
6926 -- Sloc points to the period
6927 -- Chars (Name1) copy of Chars field of selector name
6928 -- Prefix (Node3)
6929 -- Selector_Name (Node2)
6930 -- Entity (Node4-Sem)
6931 -- Associated_Node (Node4-Sem)
6932 -- Redundant_Use (Flag13-Sem)
6933 -- Has_Private_View (Flag11-Sem) set in generic units.
6934 -- plus fields for expression
6935
6936 -----------------------------
6937 -- Expression with Actions --
6938 -----------------------------
6939
6940 -- This node is created by the analyzer/expander to handle some
6941 -- expansion cases, notably short circuit forms where there are
6942 -- actions associated with the right hand operand.
6943
6944 -- The N_Expression_With_Actions node represents an expression with
6945 -- an associated set of actions (which are executable statements and
6946 -- declarations, as might occur in a handled statement sequence).
6947
6948 -- The required semantics is that the set of actions is executed in
6949 -- the order in which it appears just before the expression is
6950 -- evaluated (and these actions must only be executed if the value
6951 -- of the expression is evaluated). The node is considered to be
6952 -- a subexpression, whose value is the value of the Expression after
6953 -- executing all the actions.
6954
6955 -- Note: if the actions contain declarations, then these declarations
6956 -- maybe referenced with in the expression. It is thus appropriate for
6957 -- the back end to create a scope that encompasses the construct (any
6958 -- declarations within the actions will definitely not be referenced
6959 -- once elaboration of the construct is completed).
6960
6961 -- Sprint syntax: do
6962 -- action;
6963 -- action;
6964 -- ...
6965 -- action;
6966 -- in expression end
6967
6968 -- N_Expression_With_Actions
6969 -- Actions (List1)
6970 -- Expression (Node3)
6971 -- plus fields for expression
6972
6973 -- Note: the actions list is always non-null, since we would
6974 -- never have created this node if there weren't some actions.
6975
6976 --------------------
6977 -- Free Statement --
6978 --------------------
6979
6980 -- The N_Free_Statement node is generated as a result of a call to an
6981 -- instantiation of Unchecked_Deallocation. The instantiation of this
6982 -- generic is handled specially and generates this node directly.
6983
6984 -- Sprint syntax: free expression
6985
6986 -- N_Free_Statement
6987 -- Sloc is copied from the unchecked deallocation call
6988 -- Expression (Node3) argument to unchecked deallocation call
6989 -- Storage_Pool (Node1-Sem)
6990 -- Procedure_To_Call (Node2-Sem)
6991 -- Actual_Designated_Subtype (Node4-Sem)
6992
6993 -- Note: in the case where a debug source file is generated, the Sloc
6994 -- for this node points to the FREE keyword in the Sprint file output.
6995
6996 -------------------
6997 -- Freeze Entity --
6998 -------------------
6999
7000 -- This node marks the point in a declarative part at which an entity
7001 -- declared therein becomes frozen. The expander places initialization
7002 -- procedures for types at those points. Gigi uses the freezing point
7003 -- to elaborate entities that may depend on previous private types.
7004
7005 -- See the section in Einfo "Delayed Freezing and Elaboration" for
7006 -- a full description of the use of this node.
7007
7008 -- The Entity field points back to the entity for the type (whose
7009 -- Freeze_Node field points back to this freeze node).
7010
7011 -- The Actions field contains a list of declarations and statements
7012 -- generated by the expander which are associated with the freeze
7013 -- node, and are elaborated as though the freeze node were replaced
7014 -- by this sequence of actions.
7015
7016 -- Note: the Sloc field in the freeze node references a construct
7017 -- associated with the freezing point. This is used for posting
7018 -- messages in some error/warning situations, e.g. the case where
7019 -- a primitive operation of a tagged type is declared too late.
7020
7021 -- Sprint syntax: freeze entity-name [
7022 -- freeze actions
7023 -- ]
7024
7025 -- N_Freeze_Entity
7026 -- Sloc points near freeze point (see above special note)
7027 -- Entity (Node4-Sem)
7028 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
7029 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
7030 -- Actions (List1) (set to No_List if no freeze actions)
7031 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
7032
7033 -- The Actions field holds actions associated with the freeze. These
7034 -- actions are elaborated at the point where the type is frozen.
7035
7036 -- Note: in the case where a debug source file is generated, the Sloc
7037 -- for this node points to the FREEZE keyword in the Sprint file output.
7038
7039 --------------------------------
7040 -- Implicit Label Declaration --
7041 --------------------------------
7042
7043 -- An implicit label declaration is created for every occurrence of a
7044 -- label on a statement or a label on a block or loop. It is chained
7045 -- in the declarations of the innermost enclosing block as specified
7046 -- in RM section 5.1 (3).
7047
7048 -- The Defining_Identifier is the actual identifier for the statement
7049 -- identifier. Note that the occurrence of the label is a reference, NOT
7050 -- the defining occurrence. The defining occurrence occurs at the head
7051 -- of the innermost enclosing block, and is represented by this node.
7052
7053 -- Note: from the grammar, this might better be called an implicit
7054 -- statement identifier declaration, but the term we choose seems
7055 -- friendlier, since at least informally statement identifiers are
7056 -- called labels in both cases (i.e. when used in labels, and when
7057 -- used as the identifiers of blocks and loops).
7058
7059 -- Note: although this is logically a semantic node, since it does not
7060 -- correspond directly to a source syntax construction, these nodes are
7061 -- actually created by the parser in a post pass done just after parsing
7062 -- is complete, before semantic analysis is started (see Par.Labl).
7063
7064 -- Sprint syntax: labelname : label;
7065
7066 -- N_Implicit_Label_Declaration
7067 -- Sloc points to the << of the label
7068 -- Defining_Identifier (Node1)
7069 -- Label_Construct (Node2-Sem)
7070
7071 -- Note: in the case where a debug source file is generated, the Sloc
7072 -- for this node points to the label name in the generated declaration.
7073
7074 ---------------------
7075 -- Itype_Reference --
7076 ---------------------
7077
7078 -- This node is used to create a reference to an Itype. The only purpose
7079 -- is to make sure the Itype is defined if this is the first reference.
7080
7081 -- A typical use of this node is when an Itype is to be referenced in
7082 -- two branches of an IF statement. In this case it is important that
7083 -- the first use of the Itype not be inside the conditional, since then
7084 -- it might not be defined if the other branch of the IF is taken, in
7085 -- the case where the definition generates elaboration code.
7086
7087 -- The Itype field points to the referenced Itype
7088
7089 -- Sprint syntax: reference itype-name
7090
7091 -- N_Itype_Reference
7092 -- Sloc points to the node generating the reference
7093 -- Itype (Node1-Sem)
7094
7095 -- Note: in the case where a debug source file is generated, the Sloc
7096 -- for this node points to the REFERENCE keyword in the file output.
7097
7098 ---------------------
7099 -- Raise_xxx_Error --
7100 ---------------------
7101
7102 -- One of these nodes is created during semantic analysis to replace
7103 -- a node for an expression that is determined to definitely raise
7104 -- the corresponding exception.
7105
7106 -- The N_Raise_xxx_Error node may also stand alone in place
7107 -- of a declaration or statement, in which case it simply causes
7108 -- the exception to be raised (i.e. it is equivalent to a raise
7109 -- statement that raises the corresponding exception). This use
7110 -- is distinguished by the fact that the Etype in this case is
7111 -- Standard_Void_Type, In the subexpression case, the Etype is the
7112 -- same as the type of the subexpression which it replaces.
7113
7114 -- If Condition is empty, then the raise is unconditional. If the
7115 -- Condition field is non-empty, it is a boolean expression which
7116 -- is first evaluated, and the exception is raised only if the
7117 -- value of the expression is True. In the unconditional case, the
7118 -- creation of this node is usually accompanied by a warning message
7119 -- error. The creation of this node will usually be accompanied by a
7120 -- message (unless it appears within the right operand of a short
7121 -- circuit form whose left argument is static and decisively
7122 -- eliminates elaboration of the raise operation. The condition field
7123 -- can ONLY be present when the node is used as a statement form, it
7124 -- may NOT be present in the case where the node appears within an
7125 -- expression.
7126
7127 -- The exception is generated with a message that contains the
7128 -- file name and line number, and then appended text. The Reason
7129 -- code shows the text to be added. The Reason code is an element
7130 -- of the type Types.RT_Exception_Code, and indicates both the
7131 -- message to be added, and the exception to be raised (which must
7132 -- match the node type). The value is stored by storing a Uint which
7133 -- is the Pos value of the enumeration element in this type.
7134
7135 -- Gigi restriction: This expander ensures that the type of the
7136 -- Condition field is always Standard.Boolean, even if the type
7137 -- in the source is some non-standard boolean type.
7138
7139 -- Sprint syntax: [xxx_error "msg"]
7140 -- or: [xxx_error when condition "msg"]
7141
7142 -- N_Raise_Constraint_Error
7143 -- Sloc references related construct
7144 -- Condition (Node1) (set to Empty if no condition)
7145 -- Reason (Uint3)
7146 -- plus fields for expression
7147
7148 -- N_Raise_Program_Error
7149 -- Sloc references related construct
7150 -- Condition (Node1) (set to Empty if no condition)
7151 -- Reason (Uint3)
7152 -- plus fields for expression
7153
7154 -- N_Raise_Storage_Error
7155 -- Sloc references related construct
7156 -- Condition (Node1) (set to Empty if no condition)
7157 -- Reason (Uint3)
7158 -- plus fields for expression
7159
7160 -- Note: Sloc is copied from the expression generating the exception.
7161 -- In the case where a debug source file is generated, the Sloc for
7162 -- this node points to the left bracket in the Sprint file output.
7163
7164 -- Note: the back end may be required to translate these nodes into
7165 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
7166
7167 ---------------------------------------------
7168 -- Optimization of Exception Raise to Goto --
7169 ---------------------------------------------
7170
7171 -- In some cases, the front end will determine that any exception raised
7172 -- by the back end for a certain exception should be transformed into a
7173 -- goto statement.
7174
7175 -- There are three kinds of exceptions raised by the back end (note that
7176 -- for this purpose we consider gigi to be part of the back end in the
7177 -- gcc case):
7178
7179 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
7180 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
7181 -- 3. Other cases not specifically marked by the front end
7182
7183 -- Normally all such exceptions are translated into calls to the proper
7184 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
7185 -- and the exception message.
7186
7187 -- The front end may determine that for a particular sequence of code,
7188 -- exceptions in any of these three categories for a particular builtin
7189 -- exception should result in a goto, rather than a call to Rcheck_xx.
7190 -- The exact sequence to be generated is:
7191
7192 -- Local_Raise (exception'Identity);
7193 -- goto Label
7194
7195 -- The front end marks such a sequence of code by bracketing it with
7196 -- push and pop nodes:
7197
7198 -- N_Push_xxx_Label (referencing the label)
7199 -- ...
7200 -- (code where transformation is expected for exception xxx)
7201 -- ...
7202 -- N_Pop_xxx_Label
7203
7204 -- The use of push/pop reflects the fact that such regions can properly
7205 -- nest, and one special case is a subregion in which no transformation
7206 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
7207 -- Exception_Label field is Empty.
7208
7209 -- N_Push_Constraint_Error_Label
7210 -- Sloc references first statement in region covered
7211 -- Exception_Label (Node5-Sem)
7212
7213 -- N_Push_Program_Error_Label
7214 -- Sloc references first statement in region covered
7215 -- Exception_Label (Node5-Sem)
7216
7217 -- N_Push_Storage_Error_Label
7218 -- Sloc references first statement in region covered
7219 -- Exception_Label (Node5-Sem)
7220
7221 -- N_Pop_Constraint_Error_Label
7222 -- Sloc references last statement in region covered
7223
7224 -- N_Pop_Program_Error_Label
7225 -- Sloc references last statement in region covered
7226
7227 -- N_Pop_Storage_Error_Label
7228 -- Sloc references last statement in region covered
7229
7230 ---------------
7231 -- Reference --
7232 ---------------
7233
7234 -- For a number of purposes, we need to construct references to objects.
7235 -- These references are subsequently treated as normal access values.
7236 -- An example is the construction of the parameter block passed to a
7237 -- task entry. The N_Reference node is provided for this purpose. It is
7238 -- similar in effect to the use of the Unrestricted_Access attribute,
7239 -- and like Unrestricted_Access can be applied to objects which would
7240 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
7241 -- objects which are not aliased, and slices). In addition it can be
7242 -- applied to composite type values as well as objects, including string
7243 -- values and aggregates.
7244
7245 -- Note: we use the Prefix field for this expression so that the
7246 -- resulting node can be treated using common code with the attribute
7247 -- nodes for the 'Access and related attributes. Logically it would make
7248 -- more sense to call it an Expression field, but then we would have to
7249 -- special case the treatment of the N_Reference node.
7250
7251 -- Sprint syntax: prefix'reference
7252
7253 -- N_Reference
7254 -- Sloc is copied from the expression
7255 -- Prefix (Node3)
7256 -- plus fields for expression
7257
7258 -- Note: in the case where a debug source file is generated, the Sloc
7259 -- for this node points to the quote in the Sprint file output.
7260
7261 -----------------
7262 -- SCIL Nodes --
7263 -----------------
7264
7265 -- SCIL nodes are special nodes added to the tree when the CodePeer
7266 -- mode is active. They help the CodePeer backend to locate nodes that
7267 -- require special processing.
7268
7269 -- Major documentation on the general design of the SCIL interface, and
7270 -- in particular detailed description of these nodes is missing and is
7271 -- to be supplied in the future, when the design has finalized ???
7272
7273 -- Meanwhile these nodes should be considered in experimental form, and
7274 -- should be ignored by all code generating back ends. ???
7275
7276 -- N_SCIL_Dispatch_Table_Tag_Init
7277 -- Sloc references a node for a tag initialization
7278 -- SCIL_Entity (Node4-Sem)
7279
7280 -- N_SCIL_Dispatching_Call
7281 -- Sloc references the node of a dispatching call
7282 -- SCIL_Target_Prim (Node2-Sem)
7283 -- SCIL_Entity (Node4-Sem)
7284 -- SCIL_Controlling_Tag (Node5-Sem)
7285
7286 -- N_SCIL_Membership_Test
7287 -- Sloc references the node of a membership test
7288 -- SCIL_Tag_Value (Node5-Sem)
7289 -- SCIL_Entity (Node4-Sem)
7290
7291 ---------------------
7292 -- Subprogram_Info --
7293 ---------------------
7294
7295 -- This node generates the appropriate Subprogram_Info value for a
7296 -- given procedure. See Ada.Exceptions for further details
7297
7298 -- Sprint syntax: subprog'subprogram_info
7299
7300 -- N_Subprogram_Info
7301 -- Sloc points to the entity for the procedure
7302 -- Identifier (Node1) identifier referencing the procedure
7303 -- Etype (Node5-Sem) type (always set to Ada.Exceptions.Code_Loc
7304
7305 -- Note: in the case where a debug source file is generated, the Sloc
7306 -- for this node points to the quote in the Sprint file output.
7307
7308 --------------------------
7309 -- Unchecked Expression --
7310 --------------------------
7311
7312 -- An unchecked expression is one that must be analyzed and resolved
7313 -- with all checks off, regardless of the current setting of scope
7314 -- suppress flags.
7315
7316 -- Sprint syntax: `(expression)
7317
7318 -- Note: this node is always removed from the tree (and replaced by
7319 -- its constituent expression) on completion of analysis, so it only
7320 -- appears in intermediate trees, and will never be seen by Gigi.
7321
7322 -- N_Unchecked_Expression
7323 -- Sloc is a copy of the Sloc of the expression
7324 -- Expression (Node3)
7325 -- plus fields for expression
7326
7327 -- Note: in the case where a debug source file is generated, the Sloc
7328 -- for this node points to the back quote in the Sprint file output.
7329
7330 -------------------------------
7331 -- Unchecked Type Conversion --
7332 -------------------------------
7333
7334 -- An unchecked type conversion node represents the semantic action
7335 -- corresponding to a call to an instantiation of Unchecked_Conversion.
7336 -- It is generated as a result of actual use of Unchecked_Conversion
7337 -- and also the expander generates unchecked type conversion nodes
7338 -- directly for expansion of complex semantic actions.
7339
7340 -- Note: an unchecked type conversion is a variable as far as the
7341 -- semantics are concerned, which is convenient for the expander.
7342 -- This does not change what Ada source programs are legal, since
7343 -- clearly a function call to an instantiation of Unchecked_Conversion
7344 -- is not a variable in any case.
7345
7346 -- Sprint syntax: subtype-mark!(expression)
7347
7348 -- N_Unchecked_Type_Conversion
7349 -- Sloc points to related node in source
7350 -- Subtype_Mark (Node4)
7351 -- Expression (Node3)
7352 -- Kill_Range_Check (Flag11-Sem)
7353 -- No_Truncation (Flag17-Sem)
7354 -- plus fields for expression
7355
7356 -- Note: in the case where a debug source file is generated, the Sloc
7357 -- for this node points to the exclamation in the Sprint file output.
7358
7359 -----------------------------------
7360 -- Validate_Unchecked_Conversion --
7361 -----------------------------------
7362
7363 -- The front end does most of the validation of unchecked conversion,
7364 -- including checking sizes (this is done after the back end is called
7365 -- to take advantage of back-annotation of calculated sizes).
7366
7367 -- The front end also deals with specific cases that are not allowed
7368 -- e.g. involving unconstrained array types.
7369
7370 -- For the case of the standard gigi backend, this means that all
7371 -- checks are done in the front-end.
7372
7373 -- However, in the case of specialized back-ends, notably the JVM
7374 -- backend for JGNAT, additional requirements and restrictions apply
7375 -- to unchecked conversion, and these are most conveniently performed
7376 -- in the specialized back-end.
7377
7378 -- To accommodate this requirement, for such back ends, the following
7379 -- special node is generated recording an unchecked conversion that
7380 -- needs to be validated. The back end should post an appropriate
7381 -- error message if the unchecked conversion is invalid or warrants
7382 -- a special warning message.
7383
7384 -- Source_Type and Target_Type point to the entities for the two
7385 -- types involved in the unchecked conversion instantiation that
7386 -- is to be validated.
7387
7388 -- Sprint syntax: validate Unchecked_Conversion (source, target);
7389
7390 -- N_Validate_Unchecked_Conversion
7391 -- Sloc points to instantiation (location for warning message)
7392 -- Source_Type (Node1-Sem)
7393 -- Target_Type (Node2-Sem)
7394
7395 -- Note: in the case where a debug source file is generated, the Sloc
7396 -- for this node points to the VALIDATE keyword in the file output.
7397
7398 -----------
7399 -- Empty --
7400 -----------
7401
7402 -- Used as the contents of the Nkind field of the dummy Empty node
7403 -- and in some other situations to indicate an uninitialized value.
7404
7405 -- N_Empty
7406 -- Chars (Name1) is set to No_Name
7407
7408 -----------
7409 -- Error --
7410 -----------
7411
7412 -- Used as the contents of the Nkind field of the dummy Error node.
7413 -- Has an Etype field, which gets set to Any_Type later on, to help
7414 -- error recovery (Error_Posted is also set in the Error node).
7415
7416 -- N_Error
7417 -- Chars (Name1) is set to Error_Name
7418 -- Etype (Node5-Sem)
7419
7420 --------------------------
7421 -- Node Type Definition --
7422 --------------------------
7423
7424 -- The following is the definition of the Node_Kind type. As previously
7425 -- discussed, this is separated off to allow rearrangement of the order to
7426 -- facilitate definition of subtype ranges. The comments show the subtype
7427 -- classes which apply to each set of node kinds. The first entry in the
7428 -- comment characterizes the following list of nodes.
7429
7430 type Node_Kind is (
7431 N_Unused_At_Start,
7432
7433 -- N_Representation_Clause
7434
7435 N_At_Clause,
7436 N_Component_Clause,
7437 N_Enumeration_Representation_Clause,
7438 N_Mod_Clause,
7439 N_Record_Representation_Clause,
7440
7441 -- N_Representation_Clause, N_Has_Chars
7442
7443 N_Attribute_Definition_Clause,
7444
7445 -- N_Has_Chars
7446
7447 N_Empty,
7448 N_Pragma_Argument_Association,
7449
7450 -- N_Has_Etype, N_Has_Chars
7451
7452 N_Error,
7453
7454 -- N_Entity, N_Has_Etype, N_Has_Chars
7455
7456 N_Defining_Character_Literal,
7457 N_Defining_Identifier,
7458 N_Defining_Operator_Symbol,
7459
7460 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
7461
7462 N_Expanded_Name,
7463
7464 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7465 -- N_Has_Chars, N_Has_Entity
7466
7467 N_Identifier,
7468 N_Operator_Symbol,
7469
7470 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
7471 -- N_Has_Chars, N_Has_Entity
7472
7473 N_Character_Literal,
7474
7475 -- N_Binary_Op, N_Op, N_Subexpr,
7476 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
7477
7478 N_Op_Add,
7479 N_Op_Concat,
7480 N_Op_Expon,
7481 N_Op_Subtract,
7482
7483 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Treat_Fixed_As_Integer
7484 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
7485
7486 N_Op_Divide,
7487 N_Op_Mod,
7488 N_Op_Multiply,
7489 N_Op_Rem,
7490
7491 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7492 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7493
7494 N_Op_And,
7495
7496 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7497 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
7498
7499 N_Op_Eq,
7500 N_Op_Ge,
7501 N_Op_Gt,
7502 N_Op_Le,
7503 N_Op_Lt,
7504 N_Op_Ne,
7505
7506 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
7507 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
7508
7509 N_Op_Or,
7510 N_Op_Xor,
7511
7512 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
7513 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
7514
7515 N_Op_Rotate_Left,
7516 N_Op_Rotate_Right,
7517 N_Op_Shift_Left,
7518 N_Op_Shift_Right,
7519 N_Op_Shift_Right_Arithmetic,
7520
7521 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
7522 -- N_Has_Chars, N_Has_Entity
7523
7524 N_Op_Abs,
7525 N_Op_Minus,
7526 N_Op_Not,
7527 N_Op_Plus,
7528
7529 -- N_Subexpr, N_Has_Etype, N_Has_Entity
7530
7531 N_Attribute_Reference,
7532
7533 -- N_Subexpr, N_Has_Etype, N_Membership_Test
7534
7535 N_In,
7536 N_Not_In,
7537
7538 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
7539
7540 N_And_Then,
7541 N_Or_Else,
7542
7543 -- N_Subexpr, N_Has_Etype
7544
7545 N_Conditional_Expression,
7546 N_Explicit_Dereference,
7547 N_Expression_With_Actions,
7548 N_Function_Call,
7549 N_Indexed_Component,
7550 N_Integer_Literal,
7551 N_Null,
7552 N_Procedure_Call_Statement,
7553 N_Qualified_Expression,
7554 N_Quantified_Expression,
7555
7556 -- N_Raise_xxx_Error, N_Subexpr, N_Has_Etype
7557
7558 N_Raise_Constraint_Error,
7559 N_Raise_Program_Error,
7560 N_Raise_Storage_Error,
7561
7562 -- N_Subexpr, N_Has_Etype
7563
7564 N_Aggregate,
7565 N_Allocator,
7566 N_Case_Expression,
7567 N_Extension_Aggregate,
7568 N_Range,
7569 N_Real_Literal,
7570 N_Reference,
7571 N_Selected_Component,
7572 N_Slice,
7573 N_String_Literal,
7574 N_Subprogram_Info,
7575 N_Type_Conversion,
7576 N_Unchecked_Expression,
7577 N_Unchecked_Type_Conversion,
7578
7579 -- N_Has_Etype
7580
7581 N_Subtype_Indication,
7582
7583 -- N_Declaration
7584
7585 N_Component_Declaration,
7586 N_Entry_Declaration,
7587 N_Formal_Object_Declaration,
7588 N_Formal_Type_Declaration,
7589 N_Full_Type_Declaration,
7590 N_Incomplete_Type_Declaration,
7591 N_Iterator_Specification,
7592 N_Loop_Parameter_Specification,
7593 N_Object_Declaration,
7594 N_Parameterized_Expression,
7595 N_Protected_Type_Declaration,
7596 N_Private_Extension_Declaration,
7597 N_Private_Type_Declaration,
7598 N_Subtype_Declaration,
7599
7600 -- N_Subprogram_Specification, N_Declaration
7601
7602 N_Function_Specification,
7603 N_Procedure_Specification,
7604
7605 -- N_Access_To_Subprogram_Definition
7606
7607 N_Access_Function_Definition,
7608 N_Access_Procedure_Definition,
7609
7610 -- N_Later_Decl_Item
7611
7612 N_Task_Type_Declaration,
7613
7614 -- N_Body_Stub, N_Later_Decl_Item
7615
7616 N_Package_Body_Stub,
7617 N_Protected_Body_Stub,
7618 N_Subprogram_Body_Stub,
7619 N_Task_Body_Stub,
7620
7621 -- N_Generic_Instantiation, N_Later_Decl_Item
7622 -- N_Subprogram_Instantiation
7623
7624 N_Function_Instantiation,
7625 N_Procedure_Instantiation,
7626
7627 -- N_Generic_Instantiation, N_Later_Decl_Item
7628
7629 N_Package_Instantiation,
7630
7631 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
7632
7633 N_Package_Body,
7634 N_Subprogram_Body,
7635
7636 -- N_Later_Decl_Item, N_Proper_Body
7637
7638 N_Protected_Body,
7639 N_Task_Body,
7640
7641 -- N_Later_Decl_Item
7642
7643 N_Implicit_Label_Declaration,
7644 N_Package_Declaration,
7645 N_Single_Task_Declaration,
7646 N_Subprogram_Declaration,
7647 N_Use_Package_Clause,
7648
7649 -- N_Generic_Declaration, N_Later_Decl_Item
7650
7651 N_Generic_Package_Declaration,
7652 N_Generic_Subprogram_Declaration,
7653
7654 -- N_Array_Type_Definition
7655
7656 N_Constrained_Array_Definition,
7657 N_Unconstrained_Array_Definition,
7658
7659 -- N_Renaming_Declaration
7660
7661 N_Exception_Renaming_Declaration,
7662 N_Object_Renaming_Declaration,
7663 N_Package_Renaming_Declaration,
7664 N_Subprogram_Renaming_Declaration,
7665
7666 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
7667
7668 N_Generic_Function_Renaming_Declaration,
7669 N_Generic_Package_Renaming_Declaration,
7670 N_Generic_Procedure_Renaming_Declaration,
7671
7672 -- N_Statement_Other_Than_Procedure_Call
7673
7674 N_Abort_Statement,
7675 N_Accept_Statement,
7676 N_Assignment_Statement,
7677 N_Asynchronous_Select,
7678 N_Block_Statement,
7679 N_Case_Statement,
7680 N_Code_Statement,
7681 N_Conditional_Entry_Call,
7682
7683 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
7684
7685 N_Delay_Relative_Statement,
7686 N_Delay_Until_Statement,
7687
7688 -- N_Statement_Other_Than_Procedure_Call
7689
7690 N_Entry_Call_Statement,
7691 N_Free_Statement,
7692 N_Goto_Statement,
7693 N_Loop_Statement,
7694 N_Null_Statement,
7695 N_Raise_Statement,
7696 N_Requeue_Statement,
7697 N_Return_Statement, -- renamed as N_Simple_Return_Statement below
7698 N_Extended_Return_Statement,
7699 N_Selective_Accept,
7700 N_Timed_Entry_Call,
7701
7702 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
7703
7704 N_Exit_Statement,
7705 N_If_Statement,
7706
7707 -- N_Has_Condition
7708
7709 N_Accept_Alternative,
7710 N_Delay_Alternative,
7711 N_Elsif_Part,
7712 N_Entry_Body_Formal_Part,
7713 N_Iteration_Scheme,
7714 N_Terminate_Alternative,
7715
7716 -- N_Formal_Subprogram_Declaration
7717
7718 N_Formal_Abstract_Subprogram_Declaration,
7719 N_Formal_Concrete_Subprogram_Declaration,
7720
7721 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
7722
7723 N_Push_Constraint_Error_Label,
7724 N_Push_Program_Error_Label,
7725 N_Push_Storage_Error_Label,
7726
7727 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
7728
7729 N_Pop_Constraint_Error_Label,
7730 N_Pop_Program_Error_Label,
7731 N_Pop_Storage_Error_Label,
7732
7733 -- SCIL nodes
7734
7735 N_SCIL_Dispatch_Table_Tag_Init,
7736 N_SCIL_Dispatching_Call,
7737 N_SCIL_Membership_Test,
7738
7739 -- Other nodes (not part of any subtype class)
7740
7741 N_Abortable_Part,
7742 N_Abstract_Subprogram_Declaration,
7743 N_Access_Definition,
7744 N_Access_To_Object_Definition,
7745 N_Aspect_Specification,
7746 N_Case_Expression_Alternative,
7747 N_Case_Statement_Alternative,
7748 N_Compilation_Unit,
7749 N_Compilation_Unit_Aux,
7750 N_Component_Association,
7751 N_Component_Definition,
7752 N_Component_List,
7753 N_Derived_Type_Definition,
7754 N_Decimal_Fixed_Point_Definition,
7755 N_Defining_Program_Unit_Name,
7756 N_Delta_Constraint,
7757 N_Designator,
7758 N_Digits_Constraint,
7759 N_Discriminant_Association,
7760 N_Discriminant_Specification,
7761 N_Enumeration_Type_Definition,
7762 N_Entry_Body,
7763 N_Entry_Call_Alternative,
7764 N_Entry_Index_Specification,
7765 N_Exception_Declaration,
7766 N_Exception_Handler,
7767 N_Floating_Point_Definition,
7768 N_Formal_Decimal_Fixed_Point_Definition,
7769 N_Formal_Derived_Type_Definition,
7770 N_Formal_Discrete_Type_Definition,
7771 N_Formal_Floating_Point_Definition,
7772 N_Formal_Modular_Type_Definition,
7773 N_Formal_Ordinary_Fixed_Point_Definition,
7774 N_Formal_Package_Declaration,
7775 N_Formal_Private_Type_Definition,
7776 N_Formal_Signed_Integer_Type_Definition,
7777 N_Freeze_Entity,
7778 N_Generic_Association,
7779 N_Handled_Sequence_Of_Statements,
7780 N_Index_Or_Discriminant_Constraint,
7781 N_Itype_Reference,
7782 N_Label,
7783 N_Modular_Type_Definition,
7784 N_Number_Declaration,
7785 N_Ordinary_Fixed_Point_Definition,
7786 N_Others_Choice,
7787 N_Package_Specification,
7788 N_Parameter_Association,
7789 N_Parameter_Specification,
7790 N_Pragma,
7791 N_Protected_Definition,
7792 N_Range_Constraint,
7793 N_Real_Range_Specification,
7794 N_Record_Definition,
7795 N_Signed_Integer_Type_Definition,
7796 N_Single_Protected_Declaration,
7797 N_Subunit,
7798 N_Task_Definition,
7799 N_Triggering_Alternative,
7800 N_Use_Type_Clause,
7801 N_Validate_Unchecked_Conversion,
7802 N_Variant,
7803 N_Variant_Part,
7804 N_With_Clause,
7805 N_Unused_At_End);
7806
7807 for Node_Kind'Size use 8;
7808 -- The data structures in Atree assume this!
7809
7810 ----------------------------
7811 -- Node Class Definitions --
7812 ----------------------------
7813
7814 subtype N_Access_To_Subprogram_Definition is Node_Kind range
7815 N_Access_Function_Definition ..
7816 N_Access_Procedure_Definition;
7817
7818 subtype N_Array_Type_Definition is Node_Kind range
7819 N_Constrained_Array_Definition ..
7820 N_Unconstrained_Array_Definition;
7821
7822 subtype N_Binary_Op is Node_Kind range
7823 N_Op_Add ..
7824 N_Op_Shift_Right_Arithmetic;
7825
7826 subtype N_Body_Stub is Node_Kind range
7827 N_Package_Body_Stub ..
7828 N_Task_Body_Stub;
7829
7830 subtype N_Declaration is Node_Kind range
7831 N_Component_Declaration ..
7832 N_Procedure_Specification;
7833 -- Note: this includes all constructs normally thought of as declarations
7834 -- except those which are separately grouped as later declarations.
7835
7836 subtype N_Delay_Statement is Node_Kind range
7837 N_Delay_Relative_Statement ..
7838 N_Delay_Until_Statement;
7839
7840 subtype N_Direct_Name is Node_Kind range
7841 N_Identifier ..
7842 N_Character_Literal;
7843
7844 subtype N_Entity is Node_Kind range
7845 N_Defining_Character_Literal ..
7846 N_Defining_Operator_Symbol;
7847
7848 subtype N_Formal_Subprogram_Declaration is Node_Kind range
7849 N_Formal_Abstract_Subprogram_Declaration ..
7850 N_Formal_Concrete_Subprogram_Declaration;
7851
7852 subtype N_Generic_Declaration is Node_Kind range
7853 N_Generic_Package_Declaration ..
7854 N_Generic_Subprogram_Declaration;
7855
7856 subtype N_Generic_Instantiation is Node_Kind range
7857 N_Function_Instantiation ..
7858 N_Package_Instantiation;
7859
7860 subtype N_Generic_Renaming_Declaration is Node_Kind range
7861 N_Generic_Function_Renaming_Declaration ..
7862 N_Generic_Procedure_Renaming_Declaration;
7863
7864 subtype N_Has_Chars is Node_Kind range
7865 N_Attribute_Definition_Clause ..
7866 N_Op_Plus;
7867
7868 subtype N_Has_Entity is Node_Kind range
7869 N_Expanded_Name ..
7870 N_Attribute_Reference;
7871 -- Nodes that have Entity fields
7872 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Aspect_Specification,
7873 -- or N_Attribute_Definition_Clause.
7874
7875 subtype N_Has_Etype is Node_Kind range
7876 N_Error ..
7877 N_Subtype_Indication;
7878
7879 subtype N_Has_Treat_Fixed_As_Integer is Node_Kind range
7880 N_Op_Divide ..
7881 N_Op_Rem;
7882
7883 subtype N_Multiplying_Operator is Node_Kind range
7884 N_Op_Divide ..
7885 N_Op_Rem;
7886
7887 subtype N_Later_Decl_Item is Node_Kind range
7888 N_Task_Type_Declaration ..
7889 N_Generic_Subprogram_Declaration;
7890 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
7891 -- only those items which can appear as later declarative items. This also
7892 -- includes N_Implicit_Label_Declaration which is not specifically in the
7893 -- grammar but may appear as a valid later declarative items. It does NOT
7894 -- include N_Pragma which can also appear among later declarative items.
7895 -- It does however include N_Protected_Body, which is a bit peculiar, but
7896 -- harmless since this cannot appear in Ada 83 mode anyway.
7897
7898 subtype N_Membership_Test is Node_Kind range
7899 N_In ..
7900 N_Not_In;
7901
7902 subtype N_Op is Node_Kind range
7903 N_Op_Add ..
7904 N_Op_Plus;
7905
7906 subtype N_Op_Boolean is Node_Kind range
7907 N_Op_And ..
7908 N_Op_Xor;
7909 -- Binary operators which take operands of a boolean type, and yield
7910 -- a result of a boolean type.
7911
7912 subtype N_Op_Compare is Node_Kind range
7913 N_Op_Eq ..
7914 N_Op_Ne;
7915
7916 subtype N_Op_Shift is Node_Kind range
7917 N_Op_Rotate_Left ..
7918 N_Op_Shift_Right_Arithmetic;
7919
7920 subtype N_Proper_Body is Node_Kind range
7921 N_Package_Body ..
7922 N_Task_Body;
7923
7924 subtype N_Push_xxx_Label is Node_Kind range
7925 N_Push_Constraint_Error_Label ..
7926 N_Push_Storage_Error_Label;
7927
7928 subtype N_Pop_xxx_Label is Node_Kind range
7929 N_Pop_Constraint_Error_Label ..
7930 N_Pop_Storage_Error_Label;
7931
7932 subtype N_Push_Pop_xxx_Label is Node_Kind range
7933 N_Push_Constraint_Error_Label ..
7934 N_Pop_Storage_Error_Label;
7935
7936 subtype N_Raise_xxx_Error is Node_Kind range
7937 N_Raise_Constraint_Error ..
7938 N_Raise_Storage_Error;
7939
7940 subtype N_Renaming_Declaration is Node_Kind range
7941 N_Exception_Renaming_Declaration ..
7942 N_Generic_Procedure_Renaming_Declaration;
7943
7944 subtype N_Representation_Clause is Node_Kind range
7945 N_At_Clause ..
7946 N_Attribute_Definition_Clause;
7947
7948 subtype N_Short_Circuit is Node_Kind range
7949 N_And_Then ..
7950 N_Or_Else;
7951
7952 subtype N_SCIL_Node is Node_Kind range
7953 N_SCIL_Dispatch_Table_Tag_Init ..
7954 N_SCIL_Membership_Test;
7955
7956 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
7957 N_Abort_Statement ..
7958 N_If_Statement;
7959 -- Note that this includes all statement types except for the cases of the
7960 -- N_Procedure_Call_Statement which is considered to be a subexpression
7961 -- (since overloading is possible, so it needs to go through the normal
7962 -- overloading resolution for expressions).
7963
7964 subtype N_Subprogram_Instantiation is Node_Kind range
7965 N_Function_Instantiation ..
7966 N_Procedure_Instantiation;
7967
7968 subtype N_Has_Condition is Node_Kind range
7969 N_Exit_Statement ..
7970 N_Terminate_Alternative;
7971 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
7972
7973 subtype N_Subexpr is Node_Kind range
7974 N_Expanded_Name ..
7975 N_Unchecked_Type_Conversion;
7976 -- Nodes with expression fields
7977
7978 subtype N_Subprogram_Specification is Node_Kind range
7979 N_Function_Specification ..
7980 N_Procedure_Specification;
7981
7982 subtype N_Unary_Op is Node_Kind range
7983 N_Op_Abs ..
7984 N_Op_Plus;
7985
7986 subtype N_Unit_Body is Node_Kind range
7987 N_Package_Body ..
7988 N_Subprogram_Body;
7989
7990 ---------------------------
7991 -- Node Access Functions --
7992 ---------------------------
7993
7994 -- The following functions return the contents of the indicated field of
7995 -- the node referenced by the argument, which is a Node_Id. They provide
7996 -- logical access to fields in the node which could be accessed using the
7997 -- Atree.Unchecked_Access package, but the idea is always to use these
7998 -- higher level routines which preserve strong typing. In debug mode,
7999 -- these routines check that they are being applied to an appropriate
8000 -- node, as well as checking that the node is in range.
8001
8002 function ABE_Is_Certain
8003 (N : Node_Id) return Boolean; -- Flag18
8004
8005 function Abort_Present
8006 (N : Node_Id) return Boolean; -- Flag15
8007
8008 function Abortable_Part
8009 (N : Node_Id) return Node_Id; -- Node2
8010
8011 function Abstract_Present
8012 (N : Node_Id) return Boolean; -- Flag4
8013
8014 function Accept_Handler_Records
8015 (N : Node_Id) return List_Id; -- List5
8016
8017 function Accept_Statement
8018 (N : Node_Id) return Node_Id; -- Node2
8019
8020 function Access_Definition
8021 (N : Node_Id) return Node_Id; -- Node3
8022
8023 function Access_To_Subprogram_Definition
8024 (N : Node_Id) return Node_Id; -- Node3
8025
8026 function Access_Types_To_Process
8027 (N : Node_Id) return Elist_Id; -- Elist2
8028
8029 function Actions
8030 (N : Node_Id) return List_Id; -- List1
8031
8032 function Activation_Chain_Entity
8033 (N : Node_Id) return Node_Id; -- Node3
8034
8035 function Acts_As_Spec
8036 (N : Node_Id) return Boolean; -- Flag4
8037
8038 function Actual_Designated_Subtype
8039 (N : Node_Id) return Node_Id; -- Node4
8040
8041 function Address_Warning_Posted
8042 (N : Node_Id) return Boolean; -- Flag18
8043
8044 function Aggregate_Bounds
8045 (N : Node_Id) return Node_Id; -- Node3
8046
8047 function Aliased_Present
8048 (N : Node_Id) return Boolean; -- Flag4
8049
8050 function All_Others
8051 (N : Node_Id) return Boolean; -- Flag11
8052
8053 function All_Present
8054 (N : Node_Id) return Boolean; -- Flag15
8055
8056 function Alternatives
8057 (N : Node_Id) return List_Id; -- List4
8058
8059 function Ancestor_Part
8060 (N : Node_Id) return Node_Id; -- Node3
8061
8062 function Array_Aggregate
8063 (N : Node_Id) return Node_Id; -- Node3
8064
8065 function Aspect_Cancel
8066 (N : Node_Id) return Boolean; -- Flag11
8067
8068 function Aspect_Rep_Item
8069 (N : Node_Id) return Node_Id; -- Node2
8070
8071 function Assignment_OK
8072 (N : Node_Id) return Boolean; -- Flag15
8073
8074 function Associated_Node
8075 (N : Node_Id) return Node_Id; -- Node4
8076
8077 function At_End_Proc
8078 (N : Node_Id) return Node_Id; -- Node1
8079
8080 function Attribute_Name
8081 (N : Node_Id) return Name_Id; -- Name2
8082
8083 function Aux_Decls_Node
8084 (N : Node_Id) return Node_Id; -- Node5
8085
8086 function Backwards_OK
8087 (N : Node_Id) return Boolean; -- Flag6
8088
8089 function Bad_Is_Detected
8090 (N : Node_Id) return Boolean; -- Flag15
8091
8092 function By_Ref
8093 (N : Node_Id) return Boolean; -- Flag5
8094
8095 function Body_Required
8096 (N : Node_Id) return Boolean; -- Flag13
8097
8098 function Body_To_Inline
8099 (N : Node_Id) return Node_Id; -- Node3
8100
8101 function Box_Present
8102 (N : Node_Id) return Boolean; -- Flag15
8103
8104 function Char_Literal_Value
8105 (N : Node_Id) return Uint; -- Uint2
8106
8107 function Chars
8108 (N : Node_Id) return Name_Id; -- Name1
8109
8110 function Check_Address_Alignment
8111 (N : Node_Id) return Boolean; -- Flag11
8112
8113 function Choice_Parameter
8114 (N : Node_Id) return Node_Id; -- Node2
8115
8116 function Choices
8117 (N : Node_Id) return List_Id; -- List1
8118
8119 function Class_Present
8120 (N : Node_Id) return Boolean; -- Flag6
8121
8122 function Coextensions
8123 (N : Node_Id) return Elist_Id; -- Elist4
8124
8125 function Comes_From_Extended_Return_Statement
8126 (N : Node_Id) return Boolean; -- Flag18
8127
8128 function Compile_Time_Known_Aggregate
8129 (N : Node_Id) return Boolean; -- Flag18
8130
8131 function Component_Associations
8132 (N : Node_Id) return List_Id; -- List2
8133
8134 function Component_Clauses
8135 (N : Node_Id) return List_Id; -- List3
8136
8137 function Component_Definition
8138 (N : Node_Id) return Node_Id; -- Node4
8139
8140 function Component_Items
8141 (N : Node_Id) return List_Id; -- List3
8142
8143 function Component_List
8144 (N : Node_Id) return Node_Id; -- Node1
8145
8146 function Component_Name
8147 (N : Node_Id) return Node_Id; -- Node1
8148
8149 function Componentwise_Assignment
8150 (N : Node_Id) return Boolean; -- Flag14
8151
8152 function Condition
8153 (N : Node_Id) return Node_Id; -- Node1
8154
8155 function Condition_Actions
8156 (N : Node_Id) return List_Id; -- List3
8157
8158 function Config_Pragmas
8159 (N : Node_Id) return List_Id; -- List4
8160
8161 function Constant_Present
8162 (N : Node_Id) return Boolean; -- Flag17
8163
8164 function Constraint
8165 (N : Node_Id) return Node_Id; -- Node3
8166
8167 function Constraints
8168 (N : Node_Id) return List_Id; -- List1
8169
8170 function Context_Installed
8171 (N : Node_Id) return Boolean; -- Flag13
8172
8173 function Context_Pending
8174 (N : Node_Id) return Boolean; -- Flag16
8175
8176 function Context_Items
8177 (N : Node_Id) return List_Id; -- List1
8178
8179 function Controlling_Argument
8180 (N : Node_Id) return Node_Id; -- Node1
8181
8182 function Conversion_OK
8183 (N : Node_Id) return Boolean; -- Flag14
8184
8185 function Corresponding_Body
8186 (N : Node_Id) return Node_Id; -- Node5
8187
8188 function Corresponding_Formal_Spec
8189 (N : Node_Id) return Node_Id; -- Node3
8190
8191 function Corresponding_Generic_Association
8192 (N : Node_Id) return Node_Id; -- Node5
8193
8194 function Corresponding_Integer_Value
8195 (N : Node_Id) return Uint; -- Uint4
8196
8197 function Corresponding_Spec
8198 (N : Node_Id) return Node_Id; -- Node5
8199
8200 function Corresponding_Stub
8201 (N : Node_Id) return Node_Id; -- Node3
8202
8203 function Dcheck_Function
8204 (N : Node_Id) return Entity_Id; -- Node5
8205
8206 function Debug_Statement
8207 (N : Node_Id) return Node_Id; -- Node3
8208
8209 function Declarations
8210 (N : Node_Id) return List_Id; -- List2
8211
8212 function Default_Expression
8213 (N : Node_Id) return Node_Id; -- Node5
8214
8215 function Default_Storage_Pool
8216 (N : Node_Id) return Node_Id; -- Node3
8217
8218 function Default_Name
8219 (N : Node_Id) return Node_Id; -- Node2
8220
8221 function Defining_Identifier
8222 (N : Node_Id) return Entity_Id; -- Node1
8223
8224 function Defining_Unit_Name
8225 (N : Node_Id) return Node_Id; -- Node1
8226
8227 function Delay_Alternative
8228 (N : Node_Id) return Node_Id; -- Node4
8229
8230 function Delay_Statement
8231 (N : Node_Id) return Node_Id; -- Node2
8232
8233 function Delta_Expression
8234 (N : Node_Id) return Node_Id; -- Node3
8235
8236 function Digits_Expression
8237 (N : Node_Id) return Node_Id; -- Node2
8238
8239 function Discr_Check_Funcs_Built
8240 (N : Node_Id) return Boolean; -- Flag11
8241
8242 function Discrete_Choices
8243 (N : Node_Id) return List_Id; -- List4
8244
8245 function Discrete_Range
8246 (N : Node_Id) return Node_Id; -- Node4
8247
8248 function Discrete_Subtype_Definition
8249 (N : Node_Id) return Node_Id; -- Node4
8250
8251 function Discrete_Subtype_Definitions
8252 (N : Node_Id) return List_Id; -- List2
8253
8254 function Discriminant_Specifications
8255 (N : Node_Id) return List_Id; -- List4
8256
8257 function Discriminant_Type
8258 (N : Node_Id) return Node_Id; -- Node5
8259
8260 function Do_Accessibility_Check
8261 (N : Node_Id) return Boolean; -- Flag13
8262
8263 function Do_Discriminant_Check
8264 (N : Node_Id) return Boolean; -- Flag13
8265
8266 function Do_Division_Check
8267 (N : Node_Id) return Boolean; -- Flag13
8268
8269 function Do_Length_Check
8270 (N : Node_Id) return Boolean; -- Flag4
8271
8272 function Do_Overflow_Check
8273 (N : Node_Id) return Boolean; -- Flag17
8274
8275 function Do_Range_Check
8276 (N : Node_Id) return Boolean; -- Flag9
8277
8278 function Do_Storage_Check
8279 (N : Node_Id) return Boolean; -- Flag17
8280
8281 function Do_Tag_Check
8282 (N : Node_Id) return Boolean; -- Flag13
8283
8284 function Elaborate_All_Desirable
8285 (N : Node_Id) return Boolean; -- Flag9
8286
8287 function Elaborate_All_Present
8288 (N : Node_Id) return Boolean; -- Flag14
8289
8290 function Elaborate_Desirable
8291 (N : Node_Id) return Boolean; -- Flag11
8292
8293 function Elaborate_Present
8294 (N : Node_Id) return Boolean; -- Flag4
8295
8296 function Elaboration_Boolean
8297 (N : Node_Id) return Node_Id; -- Node2
8298
8299 function Else_Actions
8300 (N : Node_Id) return List_Id; -- List3
8301
8302 function Else_Statements
8303 (N : Node_Id) return List_Id; -- List4
8304
8305 function Elsif_Parts
8306 (N : Node_Id) return List_Id; -- List3
8307
8308 function Enclosing_Variant
8309 (N : Node_Id) return Node_Id; -- Node2
8310
8311 function End_Label
8312 (N : Node_Id) return Node_Id; -- Node4
8313
8314 function End_Span
8315 (N : Node_Id) return Uint; -- Uint5
8316
8317 function Entity
8318 (N : Node_Id) return Node_Id; -- Node4
8319
8320 function Entity_Or_Associated_Node
8321 (N : Node_Id) return Node_Id; -- Node4
8322
8323 function Entry_Body_Formal_Part
8324 (N : Node_Id) return Node_Id; -- Node5
8325
8326 function Entry_Call_Alternative
8327 (N : Node_Id) return Node_Id; -- Node1
8328
8329 function Entry_Call_Statement
8330 (N : Node_Id) return Node_Id; -- Node1
8331
8332 function Entry_Direct_Name
8333 (N : Node_Id) return Node_Id; -- Node1
8334
8335 function Entry_Index
8336 (N : Node_Id) return Node_Id; -- Node5
8337
8338 function Entry_Index_Specification
8339 (N : Node_Id) return Node_Id; -- Node4
8340
8341 function Etype
8342 (N : Node_Id) return Node_Id; -- Node5
8343
8344 function Exception_Choices
8345 (N : Node_Id) return List_Id; -- List4
8346
8347 function Exception_Handlers
8348 (N : Node_Id) return List_Id; -- List5
8349
8350 function Exception_Junk
8351 (N : Node_Id) return Boolean; -- Flag8
8352
8353 function Exception_Label
8354 (N : Node_Id) return Node_Id; -- Node5
8355
8356 function Explicit_Actual_Parameter
8357 (N : Node_Id) return Node_Id; -- Node3
8358
8359 function Expansion_Delayed
8360 (N : Node_Id) return Boolean; -- Flag11
8361
8362 function Explicit_Generic_Actual_Parameter
8363 (N : Node_Id) return Node_Id; -- Node1
8364
8365 function Expression
8366 (N : Node_Id) return Node_Id; -- Node3
8367
8368 function Expressions
8369 (N : Node_Id) return List_Id; -- List1
8370
8371 function First_Bit
8372 (N : Node_Id) return Node_Id; -- Node3
8373
8374 function First_Inlined_Subprogram
8375 (N : Node_Id) return Entity_Id; -- Node3
8376
8377 function First_Name
8378 (N : Node_Id) return Boolean; -- Flag5
8379
8380 function First_Named_Actual
8381 (N : Node_Id) return Node_Id; -- Node4
8382
8383 function First_Real_Statement
8384 (N : Node_Id) return Node_Id; -- Node2
8385
8386 function First_Subtype_Link
8387 (N : Node_Id) return Entity_Id; -- Node5
8388
8389 function Float_Truncate
8390 (N : Node_Id) return Boolean; -- Flag11
8391
8392 function Formal_Type_Definition
8393 (N : Node_Id) return Node_Id; -- Node3
8394
8395 function Forwards_OK
8396 (N : Node_Id) return Boolean; -- Flag5
8397
8398 function From_Aspect_Specification
8399 (N : Node_Id) return Boolean; -- Flag13
8400
8401 function From_At_End
8402 (N : Node_Id) return Boolean; -- Flag4
8403
8404 function From_At_Mod
8405 (N : Node_Id) return Boolean; -- Flag4
8406
8407 function From_Default
8408 (N : Node_Id) return Boolean; -- Flag6
8409
8410 function From_Dynamic_Predicate
8411 (N : Node_Id) return Boolean; -- Flag7
8412
8413 function From_Static_Predicate
8414 (N : Node_Id) return Boolean; -- Flag8
8415
8416 function Generic_Associations
8417 (N : Node_Id) return List_Id; -- List3
8418
8419 function Generic_Formal_Declarations
8420 (N : Node_Id) return List_Id; -- List2
8421
8422 function Generic_Parent
8423 (N : Node_Id) return Node_Id; -- Node5
8424
8425 function Generic_Parent_Type
8426 (N : Node_Id) return Node_Id; -- Node4
8427
8428 function Handled_Statement_Sequence
8429 (N : Node_Id) return Node_Id; -- Node4
8430
8431 function Handler_List_Entry
8432 (N : Node_Id) return Node_Id; -- Node2
8433
8434 function Has_Created_Identifier
8435 (N : Node_Id) return Boolean; -- Flag15
8436
8437 function Has_Dynamic_Length_Check
8438 (N : Node_Id) return Boolean; -- Flag10
8439
8440 function Has_Dynamic_Range_Check
8441 (N : Node_Id) return Boolean; -- Flag12
8442
8443 function Has_Init_Expression
8444 (N : Node_Id) return Boolean; -- Flag14
8445
8446 function Has_Local_Raise
8447 (N : Node_Id) return Boolean; -- Flag8
8448
8449 function Has_No_Elaboration_Code
8450 (N : Node_Id) return Boolean; -- Flag17
8451
8452 function Has_Pragma_CPU
8453 (N : Node_Id) return Boolean; -- Flag14
8454
8455 function Has_Pragma_Priority
8456 (N : Node_Id) return Boolean; -- Flag6
8457
8458 function Has_Pragma_Suppress_All
8459 (N : Node_Id) return Boolean; -- Flag14
8460
8461 function Has_Private_View
8462 (N : Node_Id) return Boolean; -- Flag11
8463
8464 function Has_Relative_Deadline_Pragma
8465 (N : Node_Id) return Boolean; -- Flag9
8466
8467 function Has_Self_Reference
8468 (N : Node_Id) return Boolean; -- Flag13
8469
8470 function Has_Storage_Size_Pragma
8471 (N : Node_Id) return Boolean; -- Flag5
8472
8473 function Has_Task_Info_Pragma
8474 (N : Node_Id) return Boolean; -- Flag7
8475
8476 function Has_Task_Name_Pragma
8477 (N : Node_Id) return Boolean; -- Flag8
8478
8479 function Has_Wide_Character
8480 (N : Node_Id) return Boolean; -- Flag11
8481
8482 function Has_Wide_Wide_Character
8483 (N : Node_Id) return Boolean; -- Flag13
8484
8485 function Hidden_By_Use_Clause
8486 (N : Node_Id) return Elist_Id; -- Elist4
8487
8488 function High_Bound
8489 (N : Node_Id) return Node_Id; -- Node2
8490
8491 function Identifier
8492 (N : Node_Id) return Node_Id; -- Node1
8493
8494 function Interface_List
8495 (N : Node_Id) return List_Id; -- List2
8496
8497 function Interface_Present
8498 (N : Node_Id) return Boolean; -- Flag16
8499
8500 function Implicit_With
8501 (N : Node_Id) return Boolean; -- Flag16
8502
8503 function Import_Interface_Present
8504 (N : Node_Id) return Boolean; -- Flag16
8505
8506 function In_Present
8507 (N : Node_Id) return Boolean; -- Flag15
8508
8509 function Includes_Infinities
8510 (N : Node_Id) return Boolean; -- Flag11
8511
8512 function Inherited_Discriminant
8513 (N : Node_Id) return Boolean; -- Flag13
8514
8515 function Instance_Spec
8516 (N : Node_Id) return Node_Id; -- Node5
8517
8518 function Intval
8519 (N : Node_Id) return Uint; -- Uint3
8520
8521 function Is_Accessibility_Actual
8522 (N : Node_Id) return Boolean; -- Flag13
8523
8524 function Is_Asynchronous_Call_Block
8525 (N : Node_Id) return Boolean; -- Flag7
8526
8527 function Is_Boolean_Aspect
8528 (N : Node_Id) return Boolean; -- Flag16
8529
8530 function Is_Component_Left_Opnd
8531 (N : Node_Id) return Boolean; -- Flag13
8532
8533 function Is_Component_Right_Opnd
8534 (N : Node_Id) return Boolean; -- Flag14
8535
8536 function Is_Controlling_Actual
8537 (N : Node_Id) return Boolean; -- Flag16
8538
8539 function Is_Delayed_Aspect
8540 (N : Node_Id) return Boolean; -- Flag14
8541
8542 function Is_Dynamic_Coextension
8543 (N : Node_Id) return Boolean; -- Flag18
8544
8545 function Is_Elsif
8546 (N : Node_Id) return Boolean; -- Flag13
8547
8548 function Is_Entry_Barrier_Function
8549 (N : Node_Id) return Boolean; -- Flag8
8550
8551 function Is_Expanded_Build_In_Place_Call
8552 (N : Node_Id) return Boolean; -- Flag11
8553
8554 function Is_Folded_In_Parser
8555 (N : Node_Id) return Boolean; -- Flag4
8556
8557 function Is_In_Discriminant_Check
8558 (N : Node_Id) return Boolean; -- Flag11
8559
8560 function Is_Machine_Number
8561 (N : Node_Id) return Boolean; -- Flag11
8562
8563 function Is_Null_Loop
8564 (N : Node_Id) return Boolean; -- Flag16
8565
8566 function Is_Overloaded
8567 (N : Node_Id) return Boolean; -- Flag5
8568
8569 function Is_Power_Of_2_For_Shift
8570 (N : Node_Id) return Boolean; -- Flag13
8571
8572 function Is_Protected_Subprogram_Body
8573 (N : Node_Id) return Boolean; -- Flag7
8574
8575 function Is_Static_Coextension
8576 (N : Node_Id) return Boolean; -- Flag14
8577
8578 function Is_Static_Expression
8579 (N : Node_Id) return Boolean; -- Flag6
8580
8581 function Is_Subprogram_Descriptor
8582 (N : Node_Id) return Boolean; -- Flag16
8583
8584 function Is_Task_Allocation_Block
8585 (N : Node_Id) return Boolean; -- Flag6
8586
8587 function Is_Task_Master
8588 (N : Node_Id) return Boolean; -- Flag5
8589
8590 function Iteration_Scheme
8591 (N : Node_Id) return Node_Id; -- Node2
8592
8593 function Iterator_Specification
8594 (N : Node_Id) return Node_Id; -- Node2
8595
8596 function Itype
8597 (N : Node_Id) return Entity_Id; -- Node1
8598
8599 function Kill_Range_Check
8600 (N : Node_Id) return Boolean; -- Flag11
8601
8602 function Label_Construct
8603 (N : Node_Id) return Node_Id; -- Node2
8604
8605 function Left_Opnd
8606 (N : Node_Id) return Node_Id; -- Node2
8607
8608 function Last_Bit
8609 (N : Node_Id) return Node_Id; -- Node4
8610
8611 function Last_Name
8612 (N : Node_Id) return Boolean; -- Flag6
8613
8614 function Library_Unit
8615 (N : Node_Id) return Node_Id; -- Node4
8616
8617 function Limited_View_Installed
8618 (N : Node_Id) return Boolean; -- Flag18
8619
8620 function Limited_Present
8621 (N : Node_Id) return Boolean; -- Flag17
8622
8623 function Literals
8624 (N : Node_Id) return List_Id; -- List1
8625
8626 function Local_Raise_Not_OK
8627 (N : Node_Id) return Boolean; -- Flag7
8628
8629 function Local_Raise_Statements
8630 (N : Node_Id) return Elist_Id; -- Elist1
8631
8632 function Loop_Actions
8633 (N : Node_Id) return List_Id; -- List2
8634
8635 function Loop_Parameter_Specification
8636 (N : Node_Id) return Node_Id; -- Node4
8637
8638 function Low_Bound
8639 (N : Node_Id) return Node_Id; -- Node1
8640
8641 function Mod_Clause
8642 (N : Node_Id) return Node_Id; -- Node2
8643
8644 function More_Ids
8645 (N : Node_Id) return Boolean; -- Flag5
8646
8647 function Must_Be_Byte_Aligned
8648 (N : Node_Id) return Boolean; -- Flag14
8649
8650 function Must_Not_Freeze
8651 (N : Node_Id) return Boolean; -- Flag8
8652
8653 function Must_Not_Override
8654 (N : Node_Id) return Boolean; -- Flag15
8655
8656 function Must_Override
8657 (N : Node_Id) return Boolean; -- Flag14
8658
8659 function Name
8660 (N : Node_Id) return Node_Id; -- Node2
8661
8662 function Names
8663 (N : Node_Id) return List_Id; -- List2
8664
8665 function Next_Entity
8666 (N : Node_Id) return Node_Id; -- Node2
8667
8668 function Next_Exit_Statement
8669 (N : Node_Id) return Node_Id; -- Node3
8670
8671 function Next_Implicit_With
8672 (N : Node_Id) return Node_Id; -- Node3
8673
8674 function Next_Named_Actual
8675 (N : Node_Id) return Node_Id; -- Node4
8676
8677 function Next_Pragma
8678 (N : Node_Id) return Node_Id; -- Node1
8679
8680 function Next_Rep_Item
8681 (N : Node_Id) return Node_Id; -- Node5
8682
8683 function Next_Use_Clause
8684 (N : Node_Id) return Node_Id; -- Node3
8685
8686 function No_Ctrl_Actions
8687 (N : Node_Id) return Boolean; -- Flag7
8688
8689 function No_Elaboration_Check
8690 (N : Node_Id) return Boolean; -- Flag14
8691
8692 function No_Entities_Ref_In_Spec
8693 (N : Node_Id) return Boolean; -- Flag8
8694
8695 function No_Initialization
8696 (N : Node_Id) return Boolean; -- Flag13
8697
8698 function No_Truncation
8699 (N : Node_Id) return Boolean; -- Flag17
8700
8701 function Null_Present
8702 (N : Node_Id) return Boolean; -- Flag13
8703
8704 function Null_Exclusion_Present
8705 (N : Node_Id) return Boolean; -- Flag11
8706
8707 function Null_Exclusion_In_Return_Present
8708 (N : Node_Id) return Boolean; -- Flag14
8709
8710 function Null_Record_Present
8711 (N : Node_Id) return Boolean; -- Flag17
8712
8713 function Object_Definition
8714 (N : Node_Id) return Node_Id; -- Node4
8715
8716 function Of_Present
8717 (N : Node_Id) return Boolean; -- Flag16
8718
8719 function Original_Discriminant
8720 (N : Node_Id) return Node_Id; -- Node2
8721
8722 function Original_Entity
8723 (N : Node_Id) return Entity_Id; -- Node2
8724
8725 function Others_Discrete_Choices
8726 (N : Node_Id) return List_Id; -- List1
8727
8728 function Out_Present
8729 (N : Node_Id) return Boolean; -- Flag17
8730
8731 function Parameter_Associations
8732 (N : Node_Id) return List_Id; -- List3
8733
8734 function Parameter_List_Truncated
8735 (N : Node_Id) return Boolean; -- Flag17
8736
8737 function Parameter_Specifications
8738 (N : Node_Id) return List_Id; -- List3
8739
8740 function Parameter_Type
8741 (N : Node_Id) return Node_Id; -- Node2
8742
8743 function Parent_Spec
8744 (N : Node_Id) return Node_Id; -- Node4
8745
8746 function Position
8747 (N : Node_Id) return Node_Id; -- Node2
8748
8749 function Pragma_Argument_Associations
8750 (N : Node_Id) return List_Id; -- List2
8751
8752 function Pragma_Enabled
8753 (N : Node_Id) return Boolean; -- Flag5
8754
8755 function Pragma_Identifier
8756 (N : Node_Id) return Node_Id; -- Node4
8757
8758 function Pragmas_After
8759 (N : Node_Id) return List_Id; -- List5
8760
8761 function Pragmas_Before
8762 (N : Node_Id) return List_Id; -- List4
8763
8764 function Prefix
8765 (N : Node_Id) return Node_Id; -- Node3
8766
8767 function Present_Expr
8768 (N : Node_Id) return Uint; -- Uint3
8769
8770 function Prev_Ids
8771 (N : Node_Id) return Boolean; -- Flag6
8772
8773 function Print_In_Hex
8774 (N : Node_Id) return Boolean; -- Flag13
8775
8776 function Private_Declarations
8777 (N : Node_Id) return List_Id; -- List3
8778
8779 function Private_Present
8780 (N : Node_Id) return Boolean; -- Flag15
8781
8782 function Procedure_To_Call
8783 (N : Node_Id) return Node_Id; -- Node2
8784
8785 function Proper_Body
8786 (N : Node_Id) return Node_Id; -- Node1
8787
8788 function Protected_Definition
8789 (N : Node_Id) return Node_Id; -- Node3
8790
8791 function Protected_Present
8792 (N : Node_Id) return Boolean; -- Flag6
8793
8794 function Raises_Constraint_Error
8795 (N : Node_Id) return Boolean; -- Flag7
8796
8797 function Range_Constraint
8798 (N : Node_Id) return Node_Id; -- Node4
8799
8800 function Range_Expression
8801 (N : Node_Id) return Node_Id; -- Node4
8802
8803 function Real_Range_Specification
8804 (N : Node_Id) return Node_Id; -- Node4
8805
8806 function Realval
8807 (N : Node_Id) return Ureal; -- Ureal3
8808
8809 function Reason
8810 (N : Node_Id) return Uint; -- Uint3
8811
8812 function Record_Extension_Part
8813 (N : Node_Id) return Node_Id; -- Node3
8814
8815 function Redundant_Use
8816 (N : Node_Id) return Boolean; -- Flag13
8817
8818 function Renaming_Exception
8819 (N : Node_Id) return Node_Id; -- Node2
8820
8821 function Result_Definition
8822 (N : Node_Id) return Node_Id; -- Node4
8823
8824 function Return_Object_Declarations
8825 (N : Node_Id) return List_Id; -- List3
8826
8827 function Return_Statement_Entity
8828 (N : Node_Id) return Node_Id; -- Node5
8829
8830 function Reverse_Present
8831 (N : Node_Id) return Boolean; -- Flag15
8832
8833 function Right_Opnd
8834 (N : Node_Id) return Node_Id; -- Node3
8835
8836 function Rounded_Result
8837 (N : Node_Id) return Boolean; -- Flag18
8838
8839 function SCIL_Controlling_Tag
8840 (N : Node_Id) return Node_Id; -- Node5
8841
8842 function SCIL_Entity
8843 (N : Node_Id) return Node_Id; -- Node4
8844
8845 function SCIL_Tag_Value
8846 (N : Node_Id) return Node_Id; -- Node5
8847
8848 function SCIL_Target_Prim
8849 (N : Node_Id) return Node_Id; -- Node2
8850
8851 function Scope
8852 (N : Node_Id) return Node_Id; -- Node3
8853
8854 function Select_Alternatives
8855 (N : Node_Id) return List_Id; -- List1
8856
8857 function Selector_Name
8858 (N : Node_Id) return Node_Id; -- Node2
8859
8860 function Selector_Names
8861 (N : Node_Id) return List_Id; -- List1
8862
8863 function Shift_Count_OK
8864 (N : Node_Id) return Boolean; -- Flag4
8865
8866 function Source_Type
8867 (N : Node_Id) return Entity_Id; -- Node1
8868
8869 function Specification
8870 (N : Node_Id) return Node_Id; -- Node1
8871
8872 function Split_PPC
8873 (N : Node_Id) return Boolean; -- Flag17
8874
8875 function Statements
8876 (N : Node_Id) return List_Id; -- List3
8877
8878 function Static_Processing_OK
8879 (N : Node_Id) return Boolean; -- Flag4
8880
8881 function Storage_Pool
8882 (N : Node_Id) return Node_Id; -- Node1
8883
8884 function Strval
8885 (N : Node_Id) return String_Id; -- Str3
8886
8887 function Subtype_Indication
8888 (N : Node_Id) return Node_Id; -- Node5
8889
8890 function Subtype_Mark
8891 (N : Node_Id) return Node_Id; -- Node4
8892
8893 function Subtype_Marks
8894 (N : Node_Id) return List_Id; -- List2
8895
8896 function Suppress_Assignment_Checks
8897 (N : Node_Id) return Boolean; -- Flag18
8898
8899 function Suppress_Loop_Warnings
8900 (N : Node_Id) return Boolean; -- Flag17
8901
8902 function Synchronized_Present
8903 (N : Node_Id) return Boolean; -- Flag7
8904
8905 function Tagged_Present
8906 (N : Node_Id) return Boolean; -- Flag15
8907
8908 function Target_Type
8909 (N : Node_Id) return Entity_Id; -- Node2
8910
8911 function Task_Definition
8912 (N : Node_Id) return Node_Id; -- Node3
8913
8914 function Task_Present
8915 (N : Node_Id) return Boolean; -- Flag5
8916
8917 function Then_Actions
8918 (N : Node_Id) return List_Id; -- List2
8919
8920 function Then_Statements
8921 (N : Node_Id) return List_Id; -- List2
8922
8923 function Treat_Fixed_As_Integer
8924 (N : Node_Id) return Boolean; -- Flag14
8925
8926 function Triggering_Alternative
8927 (N : Node_Id) return Node_Id; -- Node1
8928
8929 function Triggering_Statement
8930 (N : Node_Id) return Node_Id; -- Node1
8931
8932 function TSS_Elist
8933 (N : Node_Id) return Elist_Id; -- Elist3
8934
8935 function Type_Definition
8936 (N : Node_Id) return Node_Id; -- Node3
8937
8938 function Unit
8939 (N : Node_Id) return Node_Id; -- Node2
8940
8941 function Unknown_Discriminants_Present
8942 (N : Node_Id) return Boolean; -- Flag13
8943
8944 function Unreferenced_In_Spec
8945 (N : Node_Id) return Boolean; -- Flag7
8946
8947 function Variant_Part
8948 (N : Node_Id) return Node_Id; -- Node4
8949
8950 function Variants
8951 (N : Node_Id) return List_Id; -- List1
8952
8953 function Visible_Declarations
8954 (N : Node_Id) return List_Id; -- List2
8955
8956 function Was_Originally_Stub
8957 (N : Node_Id) return Boolean; -- Flag13
8958
8959 function Withed_Body
8960 (N : Node_Id) return Node_Id; -- Node1
8961
8962 function Zero_Cost_Handling
8963 (N : Node_Id) return Boolean; -- Flag5
8964
8965 -- End functions (note used by xsinfo utility program to end processing)
8966
8967 ----------------------------
8968 -- Node Update Procedures --
8969 ----------------------------
8970
8971 -- These are the corresponding node update routines, which again provide
8972 -- a high level logical access with type checking. In addition to setting
8973 -- the indicated field of the node N to the given Val, in the case of
8974 -- tree pointers (List1-4), the parent pointer of the Val node is set to
8975 -- point back to node N. This automates the setting of the parent pointer.
8976
8977 procedure Set_ABE_Is_Certain
8978 (N : Node_Id; Val : Boolean := True); -- Flag18
8979
8980 procedure Set_Abort_Present
8981 (N : Node_Id; Val : Boolean := True); -- Flag15
8982
8983 procedure Set_Abortable_Part
8984 (N : Node_Id; Val : Node_Id); -- Node2
8985
8986 procedure Set_Abstract_Present
8987 (N : Node_Id; Val : Boolean := True); -- Flag4
8988
8989 procedure Set_Accept_Handler_Records
8990 (N : Node_Id; Val : List_Id); -- List5
8991
8992 procedure Set_Accept_Statement
8993 (N : Node_Id; Val : Node_Id); -- Node2
8994
8995 procedure Set_Access_Definition
8996 (N : Node_Id; Val : Node_Id); -- Node3
8997
8998 procedure Set_Access_To_Subprogram_Definition
8999 (N : Node_Id; Val : Node_Id); -- Node3
9000
9001 procedure Set_Access_Types_To_Process
9002 (N : Node_Id; Val : Elist_Id); -- Elist2
9003
9004 procedure Set_Actions
9005 (N : Node_Id; Val : List_Id); -- List1
9006
9007 procedure Set_Activation_Chain_Entity
9008 (N : Node_Id; Val : Node_Id); -- Node3
9009
9010 procedure Set_Acts_As_Spec
9011 (N : Node_Id; Val : Boolean := True); -- Flag4
9012
9013 procedure Set_Actual_Designated_Subtype
9014 (N : Node_Id; Val : Node_Id); -- Node4
9015
9016 procedure Set_Address_Warning_Posted
9017 (N : Node_Id; Val : Boolean := True); -- Flag18
9018
9019 procedure Set_Aggregate_Bounds
9020 (N : Node_Id; Val : Node_Id); -- Node3
9021
9022 procedure Set_Aliased_Present
9023 (N : Node_Id; Val : Boolean := True); -- Flag4
9024
9025 procedure Set_All_Others
9026 (N : Node_Id; Val : Boolean := True); -- Flag11
9027
9028 procedure Set_All_Present
9029 (N : Node_Id; Val : Boolean := True); -- Flag15
9030
9031 procedure Set_Alternatives
9032 (N : Node_Id; Val : List_Id); -- List4
9033
9034 procedure Set_Ancestor_Part
9035 (N : Node_Id; Val : Node_Id); -- Node3
9036
9037 procedure Set_Array_Aggregate
9038 (N : Node_Id; Val : Node_Id); -- Node3
9039
9040 procedure Set_Aspect_Cancel
9041 (N : Node_Id; Val : Boolean := True); -- Flag11
9042
9043 procedure Set_Aspect_Rep_Item
9044 (N : Node_Id; Val : Node_Id); -- Node2
9045
9046 procedure Set_Assignment_OK
9047 (N : Node_Id; Val : Boolean := True); -- Flag15
9048
9049 procedure Set_Associated_Node
9050 (N : Node_Id; Val : Node_Id); -- Node4
9051
9052 procedure Set_Attribute_Name
9053 (N : Node_Id; Val : Name_Id); -- Name2
9054
9055 procedure Set_At_End_Proc
9056 (N : Node_Id; Val : Node_Id); -- Node1
9057
9058 procedure Set_Aux_Decls_Node
9059 (N : Node_Id; Val : Node_Id); -- Node5
9060
9061 procedure Set_Backwards_OK
9062 (N : Node_Id; Val : Boolean := True); -- Flag6
9063
9064 procedure Set_Bad_Is_Detected
9065 (N : Node_Id; Val : Boolean := True); -- Flag15
9066
9067 procedure Set_Body_Required
9068 (N : Node_Id; Val : Boolean := True); -- Flag13
9069
9070 procedure Set_Body_To_Inline
9071 (N : Node_Id; Val : Node_Id); -- Node3
9072
9073 procedure Set_Box_Present
9074 (N : Node_Id; Val : Boolean := True); -- Flag15
9075
9076 procedure Set_By_Ref
9077 (N : Node_Id; Val : Boolean := True); -- Flag5
9078
9079 procedure Set_Char_Literal_Value
9080 (N : Node_Id; Val : Uint); -- Uint2
9081
9082 procedure Set_Chars
9083 (N : Node_Id; Val : Name_Id); -- Name1
9084
9085 procedure Set_Check_Address_Alignment
9086 (N : Node_Id; Val : Boolean := True); -- Flag11
9087
9088 procedure Set_Choice_Parameter
9089 (N : Node_Id; Val : Node_Id); -- Node2
9090
9091 procedure Set_Choices
9092 (N : Node_Id; Val : List_Id); -- List1
9093
9094 procedure Set_Class_Present
9095 (N : Node_Id; Val : Boolean := True); -- Flag6
9096
9097 procedure Set_Coextensions
9098 (N : Node_Id; Val : Elist_Id); -- Elist4
9099
9100 procedure Set_Comes_From_Extended_Return_Statement
9101 (N : Node_Id; Val : Boolean := True); -- Flag18
9102
9103 procedure Set_Compile_Time_Known_Aggregate
9104 (N : Node_Id; Val : Boolean := True); -- Flag18
9105
9106 procedure Set_Component_Associations
9107 (N : Node_Id; Val : List_Id); -- List2
9108
9109 procedure Set_Component_Clauses
9110 (N : Node_Id; Val : List_Id); -- List3
9111
9112 procedure Set_Component_Definition
9113 (N : Node_Id; Val : Node_Id); -- Node4
9114
9115 procedure Set_Component_Items
9116 (N : Node_Id; Val : List_Id); -- List3
9117
9118 procedure Set_Component_List
9119 (N : Node_Id; Val : Node_Id); -- Node1
9120
9121 procedure Set_Component_Name
9122 (N : Node_Id; Val : Node_Id); -- Node1
9123
9124 procedure Set_Componentwise_Assignment
9125 (N : Node_Id; Val : Boolean := True); -- Flag14
9126
9127 procedure Set_Condition
9128 (N : Node_Id; Val : Node_Id); -- Node1
9129
9130 procedure Set_Condition_Actions
9131 (N : Node_Id; Val : List_Id); -- List3
9132
9133 procedure Set_Config_Pragmas
9134 (N : Node_Id; Val : List_Id); -- List4
9135
9136 procedure Set_Constant_Present
9137 (N : Node_Id; Val : Boolean := True); -- Flag17
9138
9139 procedure Set_Constraint
9140 (N : Node_Id; Val : Node_Id); -- Node3
9141
9142 procedure Set_Constraints
9143 (N : Node_Id; Val : List_Id); -- List1
9144
9145 procedure Set_Context_Installed
9146 (N : Node_Id; Val : Boolean := True); -- Flag13
9147
9148 procedure Set_Context_Items
9149 (N : Node_Id; Val : List_Id); -- List1
9150
9151 procedure Set_Context_Pending
9152 (N : Node_Id; Val : Boolean := True); -- Flag16
9153
9154 procedure Set_Controlling_Argument
9155 (N : Node_Id; Val : Node_Id); -- Node1
9156
9157 procedure Set_Conversion_OK
9158 (N : Node_Id; Val : Boolean := True); -- Flag14
9159
9160 procedure Set_Corresponding_Body
9161 (N : Node_Id; Val : Node_Id); -- Node5
9162
9163 procedure Set_Corresponding_Formal_Spec
9164 (N : Node_Id; Val : Node_Id); -- Node3
9165
9166 procedure Set_Corresponding_Generic_Association
9167 (N : Node_Id; Val : Node_Id); -- Node5
9168
9169 procedure Set_Corresponding_Integer_Value
9170 (N : Node_Id; Val : Uint); -- Uint4
9171
9172 procedure Set_Corresponding_Spec
9173 (N : Node_Id; Val : Node_Id); -- Node5
9174
9175 procedure Set_Corresponding_Stub
9176 (N : Node_Id; Val : Node_Id); -- Node3
9177
9178 procedure Set_Dcheck_Function
9179 (N : Node_Id; Val : Entity_Id); -- Node5
9180
9181 procedure Set_Debug_Statement
9182 (N : Node_Id; Val : Node_Id); -- Node3
9183
9184 procedure Set_Declarations
9185 (N : Node_Id; Val : List_Id); -- List2
9186
9187 procedure Set_Default_Expression
9188 (N : Node_Id; Val : Node_Id); -- Node5
9189
9190 procedure Set_Default_Storage_Pool
9191 (N : Node_Id; Val : Node_Id); -- Node3
9192
9193 procedure Set_Default_Name
9194 (N : Node_Id; Val : Node_Id); -- Node2
9195
9196 procedure Set_Defining_Identifier
9197 (N : Node_Id; Val : Entity_Id); -- Node1
9198
9199 procedure Set_Defining_Unit_Name
9200 (N : Node_Id; Val : Node_Id); -- Node1
9201
9202 procedure Set_Delay_Alternative
9203 (N : Node_Id; Val : Node_Id); -- Node4
9204
9205 procedure Set_Delay_Statement
9206 (N : Node_Id; Val : Node_Id); -- Node2
9207
9208 procedure Set_Delta_Expression
9209 (N : Node_Id; Val : Node_Id); -- Node3
9210
9211 procedure Set_Digits_Expression
9212 (N : Node_Id; Val : Node_Id); -- Node2
9213
9214 procedure Set_Discr_Check_Funcs_Built
9215 (N : Node_Id; Val : Boolean := True); -- Flag11
9216
9217 procedure Set_Discrete_Choices
9218 (N : Node_Id; Val : List_Id); -- List4
9219
9220 procedure Set_Discrete_Range
9221 (N : Node_Id; Val : Node_Id); -- Node4
9222
9223 procedure Set_Discrete_Subtype_Definition
9224 (N : Node_Id; Val : Node_Id); -- Node4
9225
9226 procedure Set_Discrete_Subtype_Definitions
9227 (N : Node_Id; Val : List_Id); -- List2
9228
9229 procedure Set_Discriminant_Specifications
9230 (N : Node_Id; Val : List_Id); -- List4
9231
9232 procedure Set_Discriminant_Type
9233 (N : Node_Id; Val : Node_Id); -- Node5
9234
9235 procedure Set_Do_Accessibility_Check
9236 (N : Node_Id; Val : Boolean := True); -- Flag13
9237
9238 procedure Set_Do_Discriminant_Check
9239 (N : Node_Id; Val : Boolean := True); -- Flag13
9240
9241 procedure Set_Do_Division_Check
9242 (N : Node_Id; Val : Boolean := True); -- Flag13
9243
9244 procedure Set_Do_Length_Check
9245 (N : Node_Id; Val : Boolean := True); -- Flag4
9246
9247 procedure Set_Do_Overflow_Check
9248 (N : Node_Id; Val : Boolean := True); -- Flag17
9249
9250 procedure Set_Do_Range_Check
9251 (N : Node_Id; Val : Boolean := True); -- Flag9
9252
9253 procedure Set_Do_Storage_Check
9254 (N : Node_Id; Val : Boolean := True); -- Flag17
9255
9256 procedure Set_Do_Tag_Check
9257 (N : Node_Id; Val : Boolean := True); -- Flag13
9258
9259 procedure Set_Elaborate_All_Desirable
9260 (N : Node_Id; Val : Boolean := True); -- Flag9
9261
9262 procedure Set_Elaborate_All_Present
9263 (N : Node_Id; Val : Boolean := True); -- Flag14
9264
9265 procedure Set_Elaborate_Desirable
9266 (N : Node_Id; Val : Boolean := True); -- Flag11
9267
9268 procedure Set_Elaborate_Present
9269 (N : Node_Id; Val : Boolean := True); -- Flag4
9270
9271 procedure Set_Elaboration_Boolean
9272 (N : Node_Id; Val : Node_Id); -- Node2
9273
9274 procedure Set_Else_Actions
9275 (N : Node_Id; Val : List_Id); -- List3
9276
9277 procedure Set_Else_Statements
9278 (N : Node_Id; Val : List_Id); -- List4
9279
9280 procedure Set_Elsif_Parts
9281 (N : Node_Id; Val : List_Id); -- List3
9282
9283 procedure Set_Enclosing_Variant
9284 (N : Node_Id; Val : Node_Id); -- Node2
9285
9286 procedure Set_End_Label
9287 (N : Node_Id; Val : Node_Id); -- Node4
9288
9289 procedure Set_End_Span
9290 (N : Node_Id; Val : Uint); -- Uint5
9291
9292 procedure Set_Entity
9293 (N : Node_Id; Val : Node_Id); -- Node4
9294
9295 procedure Set_Entry_Body_Formal_Part
9296 (N : Node_Id; Val : Node_Id); -- Node5
9297
9298 procedure Set_Entry_Call_Alternative
9299 (N : Node_Id; Val : Node_Id); -- Node1
9300
9301 procedure Set_Entry_Call_Statement
9302 (N : Node_Id; Val : Node_Id); -- Node1
9303
9304 procedure Set_Entry_Direct_Name
9305 (N : Node_Id; Val : Node_Id); -- Node1
9306
9307 procedure Set_Entry_Index
9308 (N : Node_Id; Val : Node_Id); -- Node5
9309
9310 procedure Set_Entry_Index_Specification
9311 (N : Node_Id; Val : Node_Id); -- Node4
9312
9313 procedure Set_Etype
9314 (N : Node_Id; Val : Node_Id); -- Node5
9315
9316 procedure Set_Exception_Choices
9317 (N : Node_Id; Val : List_Id); -- List4
9318
9319 procedure Set_Exception_Handlers
9320 (N : Node_Id; Val : List_Id); -- List5
9321
9322 procedure Set_Exception_Junk
9323 (N : Node_Id; Val : Boolean := True); -- Flag8
9324
9325 procedure Set_Exception_Label
9326 (N : Node_Id; Val : Node_Id); -- Node5
9327
9328 procedure Set_Expansion_Delayed
9329 (N : Node_Id; Val : Boolean := True); -- Flag11
9330
9331 procedure Set_Explicit_Actual_Parameter
9332 (N : Node_Id; Val : Node_Id); -- Node3
9333
9334 procedure Set_Explicit_Generic_Actual_Parameter
9335 (N : Node_Id; Val : Node_Id); -- Node1
9336
9337 procedure Set_Expression
9338 (N : Node_Id; Val : Node_Id); -- Node3
9339
9340 procedure Set_Expressions
9341 (N : Node_Id; Val : List_Id); -- List1
9342
9343 procedure Set_First_Bit
9344 (N : Node_Id; Val : Node_Id); -- Node3
9345
9346 procedure Set_First_Inlined_Subprogram
9347 (N : Node_Id; Val : Entity_Id); -- Node3
9348
9349 procedure Set_First_Name
9350 (N : Node_Id; Val : Boolean := True); -- Flag5
9351
9352 procedure Set_First_Named_Actual
9353 (N : Node_Id; Val : Node_Id); -- Node4
9354
9355 procedure Set_First_Real_Statement
9356 (N : Node_Id; Val : Node_Id); -- Node2
9357
9358 procedure Set_First_Subtype_Link
9359 (N : Node_Id; Val : Entity_Id); -- Node5
9360
9361 procedure Set_Float_Truncate
9362 (N : Node_Id; Val : Boolean := True); -- Flag11
9363
9364 procedure Set_Formal_Type_Definition
9365 (N : Node_Id; Val : Node_Id); -- Node3
9366
9367 procedure Set_Forwards_OK
9368 (N : Node_Id; Val : Boolean := True); -- Flag5
9369
9370 procedure Set_From_At_Mod
9371 (N : Node_Id; Val : Boolean := True); -- Flag4
9372
9373 procedure Set_From_Aspect_Specification
9374 (N : Node_Id; Val : Boolean := True); -- Flag13
9375
9376 procedure Set_From_At_End
9377 (N : Node_Id; Val : Boolean := True); -- Flag4
9378
9379 procedure Set_From_Default
9380 (N : Node_Id; Val : Boolean := True); -- Flag6
9381
9382 procedure Set_From_Dynamic_Predicate
9383 (N : Node_Id; Val : Boolean := True); -- Flag7
9384
9385 procedure Set_From_Static_Predicate
9386 (N : Node_Id; Val : Boolean := True); -- Flag8
9387
9388 procedure Set_Generic_Associations
9389 (N : Node_Id; Val : List_Id); -- List3
9390
9391 procedure Set_Generic_Formal_Declarations
9392 (N : Node_Id; Val : List_Id); -- List2
9393
9394 procedure Set_Generic_Parent
9395 (N : Node_Id; Val : Node_Id); -- Node5
9396
9397 procedure Set_Generic_Parent_Type
9398 (N : Node_Id; Val : Node_Id); -- Node4
9399
9400 procedure Set_Handled_Statement_Sequence
9401 (N : Node_Id; Val : Node_Id); -- Node4
9402
9403 procedure Set_Handler_List_Entry
9404 (N : Node_Id; Val : Node_Id); -- Node2
9405
9406 procedure Set_Has_Created_Identifier
9407 (N : Node_Id; Val : Boolean := True); -- Flag15
9408
9409 procedure Set_Has_Dynamic_Length_Check
9410 (N : Node_Id; Val : Boolean := True); -- Flag10
9411
9412 procedure Set_Has_Dynamic_Range_Check
9413 (N : Node_Id; Val : Boolean := True); -- Flag12
9414
9415 procedure Set_Has_Init_Expression
9416 (N : Node_Id; Val : Boolean := True); -- Flag14
9417
9418 procedure Set_Has_Local_Raise
9419 (N : Node_Id; Val : Boolean := True); -- Flag8
9420
9421 procedure Set_Has_No_Elaboration_Code
9422 (N : Node_Id; Val : Boolean := True); -- Flag17
9423
9424 procedure Set_Has_Pragma_CPU
9425 (N : Node_Id; Val : Boolean := True); -- Flag14
9426
9427 procedure Set_Has_Pragma_Priority
9428 (N : Node_Id; Val : Boolean := True); -- Flag6
9429
9430 procedure Set_Has_Pragma_Suppress_All
9431 (N : Node_Id; Val : Boolean := True); -- Flag14
9432
9433 procedure Set_Has_Private_View
9434 (N : Node_Id; Val : Boolean := True); -- Flag11
9435
9436 procedure Set_Has_Relative_Deadline_Pragma
9437 (N : Node_Id; Val : Boolean := True); -- Flag9
9438
9439 procedure Set_Has_Self_Reference
9440 (N : Node_Id; Val : Boolean := True); -- Flag13
9441
9442 procedure Set_Has_Storage_Size_Pragma
9443 (N : Node_Id; Val : Boolean := True); -- Flag5
9444
9445 procedure Set_Has_Task_Info_Pragma
9446 (N : Node_Id; Val : Boolean := True); -- Flag7
9447
9448 procedure Set_Has_Task_Name_Pragma
9449 (N : Node_Id; Val : Boolean := True); -- Flag8
9450
9451 procedure Set_Has_Wide_Character
9452 (N : Node_Id; Val : Boolean := True); -- Flag11
9453
9454 procedure Set_Has_Wide_Wide_Character
9455 (N : Node_Id; Val : Boolean := True); -- Flag13
9456
9457 procedure Set_Hidden_By_Use_Clause
9458 (N : Node_Id; Val : Elist_Id); -- Elist4
9459
9460 procedure Set_High_Bound
9461 (N : Node_Id; Val : Node_Id); -- Node2
9462
9463 procedure Set_Identifier
9464 (N : Node_Id; Val : Node_Id); -- Node1
9465
9466 procedure Set_Interface_List
9467 (N : Node_Id; Val : List_Id); -- List2
9468
9469 procedure Set_Interface_Present
9470 (N : Node_Id; Val : Boolean := True); -- Flag16
9471
9472 procedure Set_Implicit_With
9473 (N : Node_Id; Val : Boolean := True); -- Flag16
9474
9475 procedure Set_Import_Interface_Present
9476 (N : Node_Id; Val : Boolean := True); -- Flag16
9477
9478 procedure Set_In_Present
9479 (N : Node_Id; Val : Boolean := True); -- Flag15
9480
9481 procedure Set_Includes_Infinities
9482 (N : Node_Id; Val : Boolean := True); -- Flag11
9483
9484 procedure Set_Inherited_Discriminant
9485 (N : Node_Id; Val : Boolean := True); -- Flag13
9486
9487 procedure Set_Instance_Spec
9488 (N : Node_Id; Val : Node_Id); -- Node5
9489
9490 procedure Set_Intval
9491 (N : Node_Id; Val : Uint); -- Uint3
9492
9493 procedure Set_Is_Accessibility_Actual
9494 (N : Node_Id; Val : Boolean := True); -- Flag13
9495
9496 procedure Set_Is_Asynchronous_Call_Block
9497 (N : Node_Id; Val : Boolean := True); -- Flag7
9498
9499 procedure Set_Is_Boolean_Aspect
9500 (N : Node_Id; Val : Boolean := True); -- Flag16
9501
9502 procedure Set_Is_Component_Left_Opnd
9503 (N : Node_Id; Val : Boolean := True); -- Flag13
9504
9505 procedure Set_Is_Component_Right_Opnd
9506 (N : Node_Id; Val : Boolean := True); -- Flag14
9507
9508 procedure Set_Is_Controlling_Actual
9509 (N : Node_Id; Val : Boolean := True); -- Flag16
9510
9511 procedure Set_Is_Delayed_Aspect
9512 (N : Node_Id; Val : Boolean := True); -- Flag14
9513
9514 procedure Set_Is_Dynamic_Coextension
9515 (N : Node_Id; Val : Boolean := True); -- Flag18
9516
9517 procedure Set_Is_Elsif
9518 (N : Node_Id; Val : Boolean := True); -- Flag13
9519
9520 procedure Set_Is_Entry_Barrier_Function
9521 (N : Node_Id; Val : Boolean := True); -- Flag8
9522
9523 procedure Set_Is_Expanded_Build_In_Place_Call
9524 (N : Node_Id; Val : Boolean := True); -- Flag11
9525
9526 procedure Set_Is_Folded_In_Parser
9527 (N : Node_Id; Val : Boolean := True); -- Flag4
9528
9529 procedure Set_Is_In_Discriminant_Check
9530 (N : Node_Id; Val : Boolean := True); -- Flag11
9531
9532 procedure Set_Is_Machine_Number
9533 (N : Node_Id; Val : Boolean := True); -- Flag11
9534
9535 procedure Set_Is_Null_Loop
9536 (N : Node_Id; Val : Boolean := True); -- Flag16
9537
9538 procedure Set_Is_Overloaded
9539 (N : Node_Id; Val : Boolean := True); -- Flag5
9540
9541 procedure Set_Is_Power_Of_2_For_Shift
9542 (N : Node_Id; Val : Boolean := True); -- Flag13
9543
9544 procedure Set_Is_Protected_Subprogram_Body
9545 (N : Node_Id; Val : Boolean := True); -- Flag7
9546
9547 procedure Set_Is_Static_Coextension
9548 (N : Node_Id; Val : Boolean := True); -- Flag14
9549
9550 procedure Set_Is_Static_Expression
9551 (N : Node_Id; Val : Boolean := True); -- Flag6
9552
9553 procedure Set_Is_Subprogram_Descriptor
9554 (N : Node_Id; Val : Boolean := True); -- Flag16
9555
9556 procedure Set_Is_Task_Allocation_Block
9557 (N : Node_Id; Val : Boolean := True); -- Flag6
9558
9559 procedure Set_Is_Task_Master
9560 (N : Node_Id; Val : Boolean := True); -- Flag5
9561
9562 procedure Set_Iteration_Scheme
9563 (N : Node_Id; Val : Node_Id); -- Node2
9564
9565 procedure Set_Iterator_Specification
9566 (N : Node_Id; Val : Node_Id); -- Node2
9567
9568 procedure Set_Itype
9569 (N : Node_Id; Val : Entity_Id); -- Node1
9570
9571 procedure Set_Kill_Range_Check
9572 (N : Node_Id; Val : Boolean := True); -- Flag11
9573
9574 procedure Set_Last_Bit
9575 (N : Node_Id; Val : Node_Id); -- Node4
9576
9577 procedure Set_Last_Name
9578 (N : Node_Id; Val : Boolean := True); -- Flag6
9579
9580 procedure Set_Library_Unit
9581 (N : Node_Id; Val : Node_Id); -- Node4
9582
9583 procedure Set_Label_Construct
9584 (N : Node_Id; Val : Node_Id); -- Node2
9585
9586 procedure Set_Left_Opnd
9587 (N : Node_Id; Val : Node_Id); -- Node2
9588
9589 procedure Set_Limited_View_Installed
9590 (N : Node_Id; Val : Boolean := True); -- Flag18
9591
9592 procedure Set_Limited_Present
9593 (N : Node_Id; Val : Boolean := True); -- Flag17
9594
9595 procedure Set_Literals
9596 (N : Node_Id; Val : List_Id); -- List1
9597
9598 procedure Set_Local_Raise_Not_OK
9599 (N : Node_Id; Val : Boolean := True); -- Flag7
9600
9601 procedure Set_Local_Raise_Statements
9602 (N : Node_Id; Val : Elist_Id); -- Elist1
9603
9604 procedure Set_Loop_Actions
9605 (N : Node_Id; Val : List_Id); -- List2
9606
9607 procedure Set_Loop_Parameter_Specification
9608 (N : Node_Id; Val : Node_Id); -- Node4
9609
9610 procedure Set_Low_Bound
9611 (N : Node_Id; Val : Node_Id); -- Node1
9612
9613 procedure Set_Mod_Clause
9614 (N : Node_Id; Val : Node_Id); -- Node2
9615
9616 procedure Set_More_Ids
9617 (N : Node_Id; Val : Boolean := True); -- Flag5
9618
9619 procedure Set_Must_Be_Byte_Aligned
9620 (N : Node_Id; Val : Boolean := True); -- Flag14
9621
9622 procedure Set_Must_Not_Freeze
9623 (N : Node_Id; Val : Boolean := True); -- Flag8
9624
9625 procedure Set_Must_Not_Override
9626 (N : Node_Id; Val : Boolean := True); -- Flag15
9627
9628 procedure Set_Must_Override
9629 (N : Node_Id; Val : Boolean := True); -- Flag14
9630
9631 procedure Set_Name
9632 (N : Node_Id; Val : Node_Id); -- Node2
9633
9634 procedure Set_Names
9635 (N : Node_Id; Val : List_Id); -- List2
9636
9637 procedure Set_Next_Entity
9638 (N : Node_Id; Val : Node_Id); -- Node2
9639
9640 procedure Set_Next_Exit_Statement
9641 (N : Node_Id; Val : Node_Id); -- Node3
9642
9643 procedure Set_Next_Implicit_With
9644 (N : Node_Id; Val : Node_Id); -- Node3
9645
9646 procedure Set_Next_Named_Actual
9647 (N : Node_Id; Val : Node_Id); -- Node4
9648
9649 procedure Set_Next_Pragma
9650 (N : Node_Id; Val : Node_Id); -- Node1
9651
9652 procedure Set_Next_Rep_Item
9653 (N : Node_Id; Val : Node_Id); -- Node5
9654
9655 procedure Set_Next_Use_Clause
9656 (N : Node_Id; Val : Node_Id); -- Node3
9657
9658 procedure Set_No_Ctrl_Actions
9659 (N : Node_Id; Val : Boolean := True); -- Flag7
9660
9661 procedure Set_No_Elaboration_Check
9662 (N : Node_Id; Val : Boolean := True); -- Flag14
9663
9664 procedure Set_No_Entities_Ref_In_Spec
9665 (N : Node_Id; Val : Boolean := True); -- Flag8
9666
9667 procedure Set_No_Initialization
9668 (N : Node_Id; Val : Boolean := True); -- Flag13
9669
9670 procedure Set_No_Truncation
9671 (N : Node_Id; Val : Boolean := True); -- Flag17
9672
9673 procedure Set_Null_Present
9674 (N : Node_Id; Val : Boolean := True); -- Flag13
9675
9676 procedure Set_Null_Exclusion_Present
9677 (N : Node_Id; Val : Boolean := True); -- Flag11
9678
9679 procedure Set_Null_Exclusion_In_Return_Present
9680 (N : Node_Id; Val : Boolean := True); -- Flag14
9681
9682 procedure Set_Null_Record_Present
9683 (N : Node_Id; Val : Boolean := True); -- Flag17
9684
9685 procedure Set_Object_Definition
9686 (N : Node_Id; Val : Node_Id); -- Node4
9687
9688 procedure Set_Of_Present
9689 (N : Node_Id; Val : Boolean := True); -- Flag16
9690
9691 procedure Set_Original_Discriminant
9692 (N : Node_Id; Val : Node_Id); -- Node2
9693
9694 procedure Set_Original_Entity
9695 (N : Node_Id; Val : Entity_Id); -- Node2
9696
9697 procedure Set_Others_Discrete_Choices
9698 (N : Node_Id; Val : List_Id); -- List1
9699
9700 procedure Set_Out_Present
9701 (N : Node_Id; Val : Boolean := True); -- Flag17
9702
9703 procedure Set_Parameter_Associations
9704 (N : Node_Id; Val : List_Id); -- List3
9705
9706 procedure Set_Parameter_List_Truncated
9707 (N : Node_Id; Val : Boolean := True); -- Flag17
9708
9709 procedure Set_Parameter_Specifications
9710 (N : Node_Id; Val : List_Id); -- List3
9711
9712 procedure Set_Parameter_Type
9713 (N : Node_Id; Val : Node_Id); -- Node2
9714
9715 procedure Set_Parent_Spec
9716 (N : Node_Id; Val : Node_Id); -- Node4
9717
9718 procedure Set_Position
9719 (N : Node_Id; Val : Node_Id); -- Node2
9720
9721 procedure Set_Pragma_Argument_Associations
9722 (N : Node_Id; Val : List_Id); -- List2
9723
9724 procedure Set_Pragma_Enabled
9725 (N : Node_Id; Val : Boolean := True); -- Flag5
9726
9727 procedure Set_Pragma_Identifier
9728 (N : Node_Id; Val : Node_Id); -- Node4
9729
9730 procedure Set_Pragmas_After
9731 (N : Node_Id; Val : List_Id); -- List5
9732
9733 procedure Set_Pragmas_Before
9734 (N : Node_Id; Val : List_Id); -- List4
9735
9736 procedure Set_Prefix
9737 (N : Node_Id; Val : Node_Id); -- Node3
9738
9739 procedure Set_Present_Expr
9740 (N : Node_Id; Val : Uint); -- Uint3
9741
9742 procedure Set_Prev_Ids
9743 (N : Node_Id; Val : Boolean := True); -- Flag6
9744
9745 procedure Set_Print_In_Hex
9746 (N : Node_Id; Val : Boolean := True); -- Flag13
9747
9748 procedure Set_Private_Declarations
9749 (N : Node_Id; Val : List_Id); -- List3
9750
9751 procedure Set_Private_Present
9752 (N : Node_Id; Val : Boolean := True); -- Flag15
9753
9754 procedure Set_Procedure_To_Call
9755 (N : Node_Id; Val : Node_Id); -- Node2
9756
9757 procedure Set_Proper_Body
9758 (N : Node_Id; Val : Node_Id); -- Node1
9759
9760 procedure Set_Protected_Definition
9761 (N : Node_Id; Val : Node_Id); -- Node3
9762
9763 procedure Set_Protected_Present
9764 (N : Node_Id; Val : Boolean := True); -- Flag6
9765
9766 procedure Set_Raises_Constraint_Error
9767 (N : Node_Id; Val : Boolean := True); -- Flag7
9768
9769 procedure Set_Range_Constraint
9770 (N : Node_Id; Val : Node_Id); -- Node4
9771
9772 procedure Set_Range_Expression
9773 (N : Node_Id; Val : Node_Id); -- Node4
9774
9775 procedure Set_Real_Range_Specification
9776 (N : Node_Id; Val : Node_Id); -- Node4
9777
9778 procedure Set_Realval
9779 (N : Node_Id; Val : Ureal); -- Ureal3
9780
9781 procedure Set_Reason
9782 (N : Node_Id; Val : Uint); -- Uint3
9783
9784 procedure Set_Record_Extension_Part
9785 (N : Node_Id; Val : Node_Id); -- Node3
9786
9787 procedure Set_Redundant_Use
9788 (N : Node_Id; Val : Boolean := True); -- Flag13
9789
9790 procedure Set_Renaming_Exception
9791 (N : Node_Id; Val : Node_Id); -- Node2
9792
9793 procedure Set_Result_Definition
9794 (N : Node_Id; Val : Node_Id); -- Node4
9795
9796 procedure Set_Return_Object_Declarations
9797 (N : Node_Id; Val : List_Id); -- List3
9798
9799 procedure Set_Return_Statement_Entity
9800 (N : Node_Id; Val : Node_Id); -- Node5
9801
9802 procedure Set_Reverse_Present
9803 (N : Node_Id; Val : Boolean := True); -- Flag15
9804
9805 procedure Set_Right_Opnd
9806 (N : Node_Id; Val : Node_Id); -- Node3
9807
9808 procedure Set_Rounded_Result
9809 (N : Node_Id; Val : Boolean := True); -- Flag18
9810
9811 procedure Set_SCIL_Controlling_Tag
9812 (N : Node_Id; Val : Node_Id); -- Node5
9813
9814 procedure Set_SCIL_Entity
9815 (N : Node_Id; Val : Node_Id); -- Node4
9816
9817 procedure Set_SCIL_Tag_Value
9818 (N : Node_Id; Val : Node_Id); -- Node5
9819
9820 procedure Set_SCIL_Target_Prim
9821 (N : Node_Id; Val : Node_Id); -- Node2
9822
9823 procedure Set_Scope
9824 (N : Node_Id; Val : Node_Id); -- Node3
9825
9826 procedure Set_Select_Alternatives
9827 (N : Node_Id; Val : List_Id); -- List1
9828
9829 procedure Set_Selector_Name
9830 (N : Node_Id; Val : Node_Id); -- Node2
9831
9832 procedure Set_Selector_Names
9833 (N : Node_Id; Val : List_Id); -- List1
9834
9835 procedure Set_Shift_Count_OK
9836 (N : Node_Id; Val : Boolean := True); -- Flag4
9837
9838 procedure Set_Source_Type
9839 (N : Node_Id; Val : Entity_Id); -- Node1
9840
9841 procedure Set_Specification
9842 (N : Node_Id; Val : Node_Id); -- Node1
9843
9844 procedure Set_Split_PPC
9845 (N : Node_Id; Val : Boolean); -- Flag17
9846
9847 procedure Set_Statements
9848 (N : Node_Id; Val : List_Id); -- List3
9849
9850 procedure Set_Static_Processing_OK
9851 (N : Node_Id; Val : Boolean); -- Flag4
9852
9853 procedure Set_Storage_Pool
9854 (N : Node_Id; Val : Node_Id); -- Node1
9855
9856 procedure Set_Strval
9857 (N : Node_Id; Val : String_Id); -- Str3
9858
9859 procedure Set_Subtype_Indication
9860 (N : Node_Id; Val : Node_Id); -- Node5
9861
9862 procedure Set_Subtype_Mark
9863 (N : Node_Id; Val : Node_Id); -- Node4
9864
9865 procedure Set_Subtype_Marks
9866 (N : Node_Id; Val : List_Id); -- List2
9867
9868 procedure Set_Suppress_Assignment_Checks
9869 (N : Node_Id; Val : Boolean := True); -- Flag18
9870
9871 procedure Set_Suppress_Loop_Warnings
9872 (N : Node_Id; Val : Boolean := True); -- Flag17
9873
9874 procedure Set_Synchronized_Present
9875 (N : Node_Id; Val : Boolean := True); -- Flag7
9876
9877 procedure Set_Tagged_Present
9878 (N : Node_Id; Val : Boolean := True); -- Flag15
9879
9880 procedure Set_Target_Type
9881 (N : Node_Id; Val : Entity_Id); -- Node2
9882
9883 procedure Set_Task_Definition
9884 (N : Node_Id; Val : Node_Id); -- Node3
9885
9886 procedure Set_Task_Present
9887 (N : Node_Id; Val : Boolean := True); -- Flag5
9888
9889 procedure Set_Then_Actions
9890 (N : Node_Id; Val : List_Id); -- List2
9891
9892 procedure Set_Then_Statements
9893 (N : Node_Id; Val : List_Id); -- List2
9894
9895 procedure Set_Treat_Fixed_As_Integer
9896 (N : Node_Id; Val : Boolean := True); -- Flag14
9897
9898 procedure Set_Triggering_Alternative
9899 (N : Node_Id; Val : Node_Id); -- Node1
9900
9901 procedure Set_Triggering_Statement
9902 (N : Node_Id; Val : Node_Id); -- Node1
9903
9904 procedure Set_TSS_Elist
9905 (N : Node_Id; Val : Elist_Id); -- Elist3
9906
9907 procedure Set_Type_Definition
9908 (N : Node_Id; Val : Node_Id); -- Node3
9909
9910 procedure Set_Unit
9911 (N : Node_Id; Val : Node_Id); -- Node2
9912
9913 procedure Set_Unknown_Discriminants_Present
9914 (N : Node_Id; Val : Boolean := True); -- Flag13
9915
9916 procedure Set_Unreferenced_In_Spec
9917 (N : Node_Id; Val : Boolean := True); -- Flag7
9918
9919 procedure Set_Variant_Part
9920 (N : Node_Id; Val : Node_Id); -- Node4
9921
9922 procedure Set_Variants
9923 (N : Node_Id; Val : List_Id); -- List1
9924
9925 procedure Set_Visible_Declarations
9926 (N : Node_Id; Val : List_Id); -- List2
9927
9928 procedure Set_Was_Originally_Stub
9929 (N : Node_Id; Val : Boolean := True); -- Flag13
9930
9931 procedure Set_Withed_Body
9932 (N : Node_Id; Val : Node_Id); -- Node1
9933
9934 procedure Set_Zero_Cost_Handling
9935 (N : Node_Id; Val : Boolean := True); -- Flag5
9936
9937 -------------------------
9938 -- Iterator Procedures --
9939 -------------------------
9940
9941 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
9942
9943 procedure Next_Entity (N : in out Node_Id);
9944 procedure Next_Named_Actual (N : in out Node_Id);
9945 procedure Next_Rep_Item (N : in out Node_Id);
9946 procedure Next_Use_Clause (N : in out Node_Id);
9947
9948 -------------------------------------------
9949 -- Miscellaneous Tree Access Subprograms --
9950 -------------------------------------------
9951
9952 function End_Location (N : Node_Id) return Source_Ptr;
9953 -- N is an N_If_Statement or N_Case_Statement node, and this function
9954 -- returns the location of the IF token in the END IF sequence by
9955 -- translating the value of the End_Span field.
9956
9957 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
9958 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
9959 -- the End_Span field to correspond to the given value S. In other words,
9960 -- End_Span is set to the difference between S and Sloc (N), the starting
9961 -- location.
9962
9963 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
9964 -- Given an argument to a pragma Arg, this function returns the expression
9965 -- for the argument. This is Arg itself, or, in the case where Arg is a
9966 -- pragma argument association node, the expression from this node.
9967
9968 --------------------------------
9969 -- Node_Kind Membership Tests --
9970 --------------------------------
9971
9972 -- The following functions allow a convenient notation for testing whether
9973 -- a Node_Kind value matches any one of a list of possible values. In each
9974 -- case True is returned if the given T argument is equal to any of the V
9975 -- arguments. Note that there is a similar set of functions defined in
9976 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
9977
9978 function Nkind_In
9979 (T : Node_Kind;
9980 V1 : Node_Kind;
9981 V2 : Node_Kind) return Boolean;
9982
9983 function Nkind_In
9984 (T : Node_Kind;
9985 V1 : Node_Kind;
9986 V2 : Node_Kind;
9987 V3 : Node_Kind) return Boolean;
9988
9989 function Nkind_In
9990 (T : Node_Kind;
9991 V1 : Node_Kind;
9992 V2 : Node_Kind;
9993 V3 : Node_Kind;
9994 V4 : Node_Kind) return Boolean;
9995
9996 function Nkind_In
9997 (T : Node_Kind;
9998 V1 : Node_Kind;
9999 V2 : Node_Kind;
10000 V3 : Node_Kind;
10001 V4 : Node_Kind;
10002 V5 : Node_Kind) return Boolean;
10003
10004 function Nkind_In
10005 (T : Node_Kind;
10006 V1 : Node_Kind;
10007 V2 : Node_Kind;
10008 V3 : Node_Kind;
10009 V4 : Node_Kind;
10010 V5 : Node_Kind;
10011 V6 : Node_Kind) return Boolean;
10012
10013 function Nkind_In
10014 (T : Node_Kind;
10015 V1 : Node_Kind;
10016 V2 : Node_Kind;
10017 V3 : Node_Kind;
10018 V4 : Node_Kind;
10019 V5 : Node_Kind;
10020 V6 : Node_Kind;
10021 V7 : Node_Kind) return Boolean;
10022
10023 function Nkind_In
10024 (T : Node_Kind;
10025 V1 : Node_Kind;
10026 V2 : Node_Kind;
10027 V3 : Node_Kind;
10028 V4 : Node_Kind;
10029 V5 : Node_Kind;
10030 V6 : Node_Kind;
10031 V7 : Node_Kind;
10032 V8 : Node_Kind) return Boolean;
10033
10034 function Nkind_In
10035 (T : Node_Kind;
10036 V1 : Node_Kind;
10037 V2 : Node_Kind;
10038 V3 : Node_Kind;
10039 V4 : Node_Kind;
10040 V5 : Node_Kind;
10041 V6 : Node_Kind;
10042 V7 : Node_Kind;
10043 V8 : Node_Kind;
10044 V9 : Node_Kind) return Boolean;
10045
10046 pragma Inline (Nkind_In);
10047 -- Inline all above functions
10048
10049 -----------------------
10050 -- Utility Functions --
10051 -----------------------
10052
10053 function Pragma_Name (N : Node_Id) return Name_Id;
10054 pragma Inline (Pragma_Name);
10055 -- Convenient function to obtain Chars field of Pragma_Identifier
10056
10057 -----------------------------
10058 -- Syntactic Parent Tables --
10059 -----------------------------
10060
10061 -- These tables show for each node, and for each of the five fields,
10062 -- whether the corresponding field is syntactic (True) or semantic (False).
10063 -- Unused entries are also set to False.
10064
10065 subtype Field_Num is Natural range 1 .. 5;
10066
10067 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
10068
10069 -- Following entries can be built automatically from the sinfo sources
10070 -- using the makeisf utility (currently this program is in spitbol).
10071
10072 N_Identifier =>
10073 (1 => True, -- Chars (Name1)
10074 2 => False, -- Original_Discriminant (Node2-Sem)
10075 3 => False, -- unused
10076 4 => False, -- Entity (Node4-Sem)
10077 5 => False), -- Etype (Node5-Sem)
10078
10079 N_Integer_Literal =>
10080 (1 => False, -- unused
10081 2 => False, -- Original_Entity (Node2-Sem)
10082 3 => True, -- Intval (Uint3)
10083 4 => False, -- unused
10084 5 => False), -- Etype (Node5-Sem)
10085
10086 N_Real_Literal =>
10087 (1 => False, -- unused
10088 2 => False, -- Original_Entity (Node2-Sem)
10089 3 => True, -- Realval (Ureal3)
10090 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
10091 5 => False), -- Etype (Node5-Sem)
10092
10093 N_Character_Literal =>
10094 (1 => True, -- Chars (Name1)
10095 2 => True, -- Char_Literal_Value (Uint2)
10096 3 => False, -- unused
10097 4 => False, -- Entity (Node4-Sem)
10098 5 => False), -- Etype (Node5-Sem)
10099
10100 N_String_Literal =>
10101 (1 => False, -- unused
10102 2 => False, -- unused
10103 3 => True, -- Strval (Str3)
10104 4 => False, -- unused
10105 5 => False), -- Etype (Node5-Sem)
10106
10107 N_Pragma =>
10108 (1 => False, -- Next_Pragma (Node1-Sem)
10109 2 => True, -- Pragma_Argument_Associations (List2)
10110 3 => True, -- Debug_Statement (Node3)
10111 4 => True, -- Pragma_Identifier (Node4)
10112 5 => False), -- Next_Rep_Item (Node5-Sem)
10113
10114 N_Pragma_Argument_Association =>
10115 (1 => True, -- Chars (Name1)
10116 2 => False, -- unused
10117 3 => True, -- Expression (Node3)
10118 4 => False, -- unused
10119 5 => False), -- unused
10120
10121 N_Defining_Identifier =>
10122 (1 => True, -- Chars (Name1)
10123 2 => False, -- Next_Entity (Node2-Sem)
10124 3 => False, -- Scope (Node3-Sem)
10125 4 => False, -- unused
10126 5 => False), -- Etype (Node5-Sem)
10127
10128 N_Full_Type_Declaration =>
10129 (1 => True, -- Defining_Identifier (Node1)
10130 2 => False, -- unused
10131 3 => True, -- Type_Definition (Node3)
10132 4 => True, -- Discriminant_Specifications (List4)
10133 5 => False), -- unused
10134
10135 N_Subtype_Declaration =>
10136 (1 => True, -- Defining_Identifier (Node1)
10137 2 => False, -- unused
10138 3 => False, -- unused
10139 4 => False, -- Generic_Parent_Type (Node4-Sem)
10140 5 => True), -- Subtype_Indication (Node5)
10141
10142 N_Subtype_Indication =>
10143 (1 => False, -- unused
10144 2 => False, -- unused
10145 3 => True, -- Constraint (Node3)
10146 4 => True, -- Subtype_Mark (Node4)
10147 5 => False), -- Etype (Node5-Sem)
10148
10149 N_Object_Declaration =>
10150 (1 => True, -- Defining_Identifier (Node1)
10151 2 => False, -- Handler_List_Entry (Node2-Sem)
10152 3 => True, -- Expression (Node3)
10153 4 => True, -- Object_Definition (Node4)
10154 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10155
10156 N_Number_Declaration =>
10157 (1 => True, -- Defining_Identifier (Node1)
10158 2 => False, -- unused
10159 3 => True, -- Expression (Node3)
10160 4 => False, -- unused
10161 5 => False), -- unused
10162
10163 N_Derived_Type_Definition =>
10164 (1 => False, -- unused
10165 2 => True, -- Interface_List (List2)
10166 3 => True, -- Record_Extension_Part (Node3)
10167 4 => False, -- unused
10168 5 => True), -- Subtype_Indication (Node5)
10169
10170 N_Range_Constraint =>
10171 (1 => False, -- unused
10172 2 => False, -- unused
10173 3 => False, -- unused
10174 4 => True, -- Range_Expression (Node4)
10175 5 => False), -- unused
10176
10177 N_Range =>
10178 (1 => True, -- Low_Bound (Node1)
10179 2 => True, -- High_Bound (Node2)
10180 3 => False, -- unused
10181 4 => False, -- unused
10182 5 => False), -- Etype (Node5-Sem)
10183
10184 N_Enumeration_Type_Definition =>
10185 (1 => True, -- Literals (List1)
10186 2 => False, -- unused
10187 3 => False, -- unused
10188 4 => True, -- End_Label (Node4)
10189 5 => False), -- unused
10190
10191 N_Defining_Character_Literal =>
10192 (1 => True, -- Chars (Name1)
10193 2 => False, -- Next_Entity (Node2-Sem)
10194 3 => False, -- Scope (Node3-Sem)
10195 4 => False, -- unused
10196 5 => False), -- Etype (Node5-Sem)
10197
10198 N_Signed_Integer_Type_Definition =>
10199 (1 => True, -- Low_Bound (Node1)
10200 2 => True, -- High_Bound (Node2)
10201 3 => False, -- unused
10202 4 => False, -- unused
10203 5 => False), -- unused
10204
10205 N_Modular_Type_Definition =>
10206 (1 => False, -- unused
10207 2 => False, -- unused
10208 3 => True, -- Expression (Node3)
10209 4 => False, -- unused
10210 5 => False), -- unused
10211
10212 N_Floating_Point_Definition =>
10213 (1 => False, -- unused
10214 2 => True, -- Digits_Expression (Node2)
10215 3 => False, -- unused
10216 4 => True, -- Real_Range_Specification (Node4)
10217 5 => False), -- unused
10218
10219 N_Real_Range_Specification =>
10220 (1 => True, -- Low_Bound (Node1)
10221 2 => True, -- High_Bound (Node2)
10222 3 => False, -- unused
10223 4 => False, -- unused
10224 5 => False), -- unused
10225
10226 N_Ordinary_Fixed_Point_Definition =>
10227 (1 => False, -- unused
10228 2 => False, -- unused
10229 3 => True, -- Delta_Expression (Node3)
10230 4 => True, -- Real_Range_Specification (Node4)
10231 5 => False), -- unused
10232
10233 N_Decimal_Fixed_Point_Definition =>
10234 (1 => False, -- unused
10235 2 => True, -- Digits_Expression (Node2)
10236 3 => True, -- Delta_Expression (Node3)
10237 4 => True, -- Real_Range_Specification (Node4)
10238 5 => False), -- unused
10239
10240 N_Digits_Constraint =>
10241 (1 => False, -- unused
10242 2 => True, -- Digits_Expression (Node2)
10243 3 => False, -- unused
10244 4 => True, -- Range_Constraint (Node4)
10245 5 => False), -- unused
10246
10247 N_Unconstrained_Array_Definition =>
10248 (1 => False, -- unused
10249 2 => True, -- Subtype_Marks (List2)
10250 3 => False, -- unused
10251 4 => True, -- Component_Definition (Node4)
10252 5 => False), -- unused
10253
10254 N_Constrained_Array_Definition =>
10255 (1 => False, -- unused
10256 2 => True, -- Discrete_Subtype_Definitions (List2)
10257 3 => False, -- unused
10258 4 => True, -- Component_Definition (Node4)
10259 5 => False), -- unused
10260
10261 N_Component_Definition =>
10262 (1 => False, -- unused
10263 2 => False, -- unused
10264 3 => True, -- Access_Definition (Node3)
10265 4 => False, -- unused
10266 5 => True), -- Subtype_Indication (Node5)
10267
10268 N_Discriminant_Specification =>
10269 (1 => True, -- Defining_Identifier (Node1)
10270 2 => False, -- unused
10271 3 => True, -- Expression (Node3)
10272 4 => False, -- unused
10273 5 => True), -- Discriminant_Type (Node5)
10274
10275 N_Index_Or_Discriminant_Constraint =>
10276 (1 => True, -- Constraints (List1)
10277 2 => False, -- unused
10278 3 => False, -- unused
10279 4 => False, -- unused
10280 5 => False), -- unused
10281
10282 N_Discriminant_Association =>
10283 (1 => True, -- Selector_Names (List1)
10284 2 => False, -- unused
10285 3 => True, -- Expression (Node3)
10286 4 => False, -- unused
10287 5 => False), -- unused
10288
10289 N_Record_Definition =>
10290 (1 => True, -- Component_List (Node1)
10291 2 => True, -- Interface_List (List2)
10292 3 => False, -- unused
10293 4 => True, -- End_Label (Node4)
10294 5 => False), -- unused
10295
10296 N_Component_List =>
10297 (1 => False, -- unused
10298 2 => False, -- unused
10299 3 => True, -- Component_Items (List3)
10300 4 => True, -- Variant_Part (Node4)
10301 5 => False), -- unused
10302
10303 N_Component_Declaration =>
10304 (1 => True, -- Defining_Identifier (Node1)
10305 2 => False, -- unused
10306 3 => True, -- Expression (Node3)
10307 4 => True, -- Component_Definition (Node4)
10308 5 => False), -- unused
10309
10310 N_Variant_Part =>
10311 (1 => True, -- Variants (List1)
10312 2 => True, -- Name (Node2)
10313 3 => False, -- unused
10314 4 => False, -- unused
10315 5 => False), -- unused
10316
10317 N_Variant =>
10318 (1 => True, -- Component_List (Node1)
10319 2 => False, -- Enclosing_Variant (Node2-Sem)
10320 3 => False, -- Present_Expr (Uint3-Sem)
10321 4 => True, -- Discrete_Choices (List4)
10322 5 => False), -- Dcheck_Function (Node5-Sem)
10323
10324 N_Others_Choice =>
10325 (1 => False, -- Others_Discrete_Choices (List1-Sem)
10326 2 => False, -- unused
10327 3 => False, -- unused
10328 4 => False, -- unused
10329 5 => False), -- unused
10330
10331 N_Access_To_Object_Definition =>
10332 (1 => False, -- unused
10333 2 => False, -- unused
10334 3 => False, -- unused
10335 4 => False, -- unused
10336 5 => True), -- Subtype_Indication (Node5)
10337
10338 N_Access_Function_Definition =>
10339 (1 => False, -- unused
10340 2 => False, -- unused
10341 3 => True, -- Parameter_Specifications (List3)
10342 4 => True, -- Result_Definition (Node4)
10343 5 => False), -- unused
10344
10345 N_Access_Procedure_Definition =>
10346 (1 => False, -- unused
10347 2 => False, -- unused
10348 3 => True, -- Parameter_Specifications (List3)
10349 4 => False, -- unused
10350 5 => False), -- unused
10351
10352 N_Access_Definition =>
10353 (1 => False, -- unused
10354 2 => False, -- unused
10355 3 => True, -- Access_To_Subprogram_Definition (Node3)
10356 4 => True, -- Subtype_Mark (Node4)
10357 5 => False), -- unused
10358
10359 N_Incomplete_Type_Declaration =>
10360 (1 => True, -- Defining_Identifier (Node1)
10361 2 => False, -- unused
10362 3 => False, -- unused
10363 4 => True, -- Discriminant_Specifications (List4)
10364 5 => False), -- unused
10365
10366 N_Explicit_Dereference =>
10367 (1 => False, -- unused
10368 2 => False, -- unused
10369 3 => True, -- Prefix (Node3)
10370 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
10371 5 => False), -- Etype (Node5-Sem)
10372
10373 N_Indexed_Component =>
10374 (1 => True, -- Expressions (List1)
10375 2 => False, -- unused
10376 3 => True, -- Prefix (Node3)
10377 4 => False, -- unused
10378 5 => False), -- Etype (Node5-Sem)
10379
10380 N_Slice =>
10381 (1 => False, -- unused
10382 2 => False, -- unused
10383 3 => True, -- Prefix (Node3)
10384 4 => True, -- Discrete_Range (Node4)
10385 5 => False), -- Etype (Node5-Sem)
10386
10387 N_Selected_Component =>
10388 (1 => False, -- unused
10389 2 => True, -- Selector_Name (Node2)
10390 3 => True, -- Prefix (Node3)
10391 4 => False, -- unused
10392 5 => False), -- Etype (Node5-Sem)
10393
10394 N_Attribute_Reference =>
10395 (1 => True, -- Expressions (List1)
10396 2 => True, -- Attribute_Name (Name2)
10397 3 => True, -- Prefix (Node3)
10398 4 => False, -- Entity (Node4-Sem)
10399 5 => False), -- Etype (Node5-Sem)
10400
10401 N_Aggregate =>
10402 (1 => True, -- Expressions (List1)
10403 2 => True, -- Component_Associations (List2)
10404 3 => False, -- Aggregate_Bounds (Node3-Sem)
10405 4 => False, -- unused
10406 5 => False), -- Etype (Node5-Sem)
10407
10408 N_Component_Association =>
10409 (1 => True, -- Choices (List1)
10410 2 => False, -- Loop_Actions (List2-Sem)
10411 3 => True, -- Expression (Node3)
10412 4 => False, -- unused
10413 5 => False), -- unused
10414
10415 N_Extension_Aggregate =>
10416 (1 => True, -- Expressions (List1)
10417 2 => True, -- Component_Associations (List2)
10418 3 => True, -- Ancestor_Part (Node3)
10419 4 => False, -- unused
10420 5 => False), -- Etype (Node5-Sem)
10421
10422 N_Null =>
10423 (1 => False, -- unused
10424 2 => False, -- unused
10425 3 => False, -- unused
10426 4 => False, -- unused
10427 5 => False), -- Etype (Node5-Sem)
10428
10429 N_And_Then =>
10430 (1 => False, -- Actions (List1-Sem)
10431 2 => True, -- Left_Opnd (Node2)
10432 3 => True, -- Right_Opnd (Node3)
10433 4 => False, -- unused
10434 5 => False), -- Etype (Node5-Sem)
10435
10436 N_Or_Else =>
10437 (1 => False, -- Actions (List1-Sem)
10438 2 => True, -- Left_Opnd (Node2)
10439 3 => True, -- Right_Opnd (Node3)
10440 4 => False, -- unused
10441 5 => False), -- Etype (Node5-Sem)
10442
10443 N_In =>
10444 (1 => False, -- unused
10445 2 => True, -- Left_Opnd (Node2)
10446 3 => True, -- Right_Opnd (Node3)
10447 4 => True, -- Alternatives (List4)
10448 5 => False), -- Etype (Node5-Sem)
10449
10450 N_Not_In =>
10451 (1 => False, -- unused
10452 2 => True, -- Left_Opnd (Node2)
10453 3 => True, -- Right_Opnd (Node3)
10454 4 => True, -- Alternatives (List4)
10455 5 => False), -- Etype (Node5-Sem)
10456
10457 N_Op_And =>
10458 (1 => True, -- Chars (Name1)
10459 2 => True, -- Left_Opnd (Node2)
10460 3 => True, -- Right_Opnd (Node3)
10461 4 => False, -- Entity (Node4-Sem)
10462 5 => False), -- Etype (Node5-Sem)
10463
10464 N_Op_Or =>
10465 (1 => True, -- Chars (Name1)
10466 2 => True, -- Left_Opnd (Node2)
10467 3 => True, -- Right_Opnd (Node3)
10468 4 => False, -- Entity (Node4-Sem)
10469 5 => False), -- Etype (Node5-Sem)
10470
10471 N_Op_Xor =>
10472 (1 => True, -- Chars (Name1)
10473 2 => True, -- Left_Opnd (Node2)
10474 3 => True, -- Right_Opnd (Node3)
10475 4 => False, -- Entity (Node4-Sem)
10476 5 => False), -- Etype (Node5-Sem)
10477
10478 N_Op_Eq =>
10479 (1 => True, -- Chars (Name1)
10480 2 => True, -- Left_Opnd (Node2)
10481 3 => True, -- Right_Opnd (Node3)
10482 4 => False, -- Entity (Node4-Sem)
10483 5 => False), -- Etype (Node5-Sem)
10484
10485 N_Op_Ne =>
10486 (1 => True, -- Chars (Name1)
10487 2 => True, -- Left_Opnd (Node2)
10488 3 => True, -- Right_Opnd (Node3)
10489 4 => False, -- Entity (Node4-Sem)
10490 5 => False), -- Etype (Node5-Sem)
10491
10492 N_Op_Lt =>
10493 (1 => True, -- Chars (Name1)
10494 2 => True, -- Left_Opnd (Node2)
10495 3 => True, -- Right_Opnd (Node3)
10496 4 => False, -- Entity (Node4-Sem)
10497 5 => False), -- Etype (Node5-Sem)
10498
10499 N_Op_Le =>
10500 (1 => True, -- Chars (Name1)
10501 2 => True, -- Left_Opnd (Node2)
10502 3 => True, -- Right_Opnd (Node3)
10503 4 => False, -- Entity (Node4-Sem)
10504 5 => False), -- Etype (Node5-Sem)
10505
10506 N_Op_Gt =>
10507 (1 => True, -- Chars (Name1)
10508 2 => True, -- Left_Opnd (Node2)
10509 3 => True, -- Right_Opnd (Node3)
10510 4 => False, -- Entity (Node4-Sem)
10511 5 => False), -- Etype (Node5-Sem)
10512
10513 N_Op_Ge =>
10514 (1 => True, -- Chars (Name1)
10515 2 => True, -- Left_Opnd (Node2)
10516 3 => True, -- Right_Opnd (Node3)
10517 4 => False, -- Entity (Node4-Sem)
10518 5 => False), -- Etype (Node5-Sem)
10519
10520 N_Op_Add =>
10521 (1 => True, -- Chars (Name1)
10522 2 => True, -- Left_Opnd (Node2)
10523 3 => True, -- Right_Opnd (Node3)
10524 4 => False, -- Entity (Node4-Sem)
10525 5 => False), -- Etype (Node5-Sem)
10526
10527 N_Op_Subtract =>
10528 (1 => True, -- Chars (Name1)
10529 2 => True, -- Left_Opnd (Node2)
10530 3 => True, -- Right_Opnd (Node3)
10531 4 => False, -- Entity (Node4-Sem)
10532 5 => False), -- Etype (Node5-Sem)
10533
10534 N_Op_Concat =>
10535 (1 => True, -- Chars (Name1)
10536 2 => True, -- Left_Opnd (Node2)
10537 3 => True, -- Right_Opnd (Node3)
10538 4 => False, -- Entity (Node4-Sem)
10539 5 => False), -- Etype (Node5-Sem)
10540
10541 N_Op_Multiply =>
10542 (1 => True, -- Chars (Name1)
10543 2 => True, -- Left_Opnd (Node2)
10544 3 => True, -- Right_Opnd (Node3)
10545 4 => False, -- Entity (Node4-Sem)
10546 5 => False), -- Etype (Node5-Sem)
10547
10548 N_Op_Divide =>
10549 (1 => True, -- Chars (Name1)
10550 2 => True, -- Left_Opnd (Node2)
10551 3 => True, -- Right_Opnd (Node3)
10552 4 => False, -- Entity (Node4-Sem)
10553 5 => False), -- Etype (Node5-Sem)
10554
10555 N_Op_Mod =>
10556 (1 => True, -- Chars (Name1)
10557 2 => True, -- Left_Opnd (Node2)
10558 3 => True, -- Right_Opnd (Node3)
10559 4 => False, -- Entity (Node4-Sem)
10560 5 => False), -- Etype (Node5-Sem)
10561
10562 N_Op_Rem =>
10563 (1 => True, -- Chars (Name1)
10564 2 => True, -- Left_Opnd (Node2)
10565 3 => True, -- Right_Opnd (Node3)
10566 4 => False, -- Entity (Node4-Sem)
10567 5 => False), -- Etype (Node5-Sem)
10568
10569 N_Op_Expon =>
10570 (1 => True, -- Chars (Name1)
10571 2 => True, -- Left_Opnd (Node2)
10572 3 => True, -- Right_Opnd (Node3)
10573 4 => False, -- Entity (Node4-Sem)
10574 5 => False), -- Etype (Node5-Sem)
10575
10576 N_Op_Plus =>
10577 (1 => True, -- Chars (Name1)
10578 2 => False, -- unused
10579 3 => True, -- Right_Opnd (Node3)
10580 4 => False, -- Entity (Node4-Sem)
10581 5 => False), -- Etype (Node5-Sem)
10582
10583 N_Op_Minus =>
10584 (1 => True, -- Chars (Name1)
10585 2 => False, -- unused
10586 3 => True, -- Right_Opnd (Node3)
10587 4 => False, -- Entity (Node4-Sem)
10588 5 => False), -- Etype (Node5-Sem)
10589
10590 N_Op_Abs =>
10591 (1 => True, -- Chars (Name1)
10592 2 => False, -- unused
10593 3 => True, -- Right_Opnd (Node3)
10594 4 => False, -- Entity (Node4-Sem)
10595 5 => False), -- Etype (Node5-Sem)
10596
10597 N_Op_Not =>
10598 (1 => True, -- Chars (Name1)
10599 2 => False, -- unused
10600 3 => True, -- Right_Opnd (Node3)
10601 4 => False, -- Entity (Node4-Sem)
10602 5 => False), -- Etype (Node5-Sem)
10603
10604 N_Type_Conversion =>
10605 (1 => False, -- unused
10606 2 => False, -- unused
10607 3 => True, -- Expression (Node3)
10608 4 => True, -- Subtype_Mark (Node4)
10609 5 => False), -- Etype (Node5-Sem)
10610
10611 N_Qualified_Expression =>
10612 (1 => False, -- unused
10613 2 => False, -- unused
10614 3 => True, -- Expression (Node3)
10615 4 => True, -- Subtype_Mark (Node4)
10616 5 => False), -- Etype (Node5-Sem)
10617
10618 N_Quantified_Expression =>
10619 (1 => True, -- Condition (Node1)
10620 2 => True, -- Iterator_Specification
10621 3 => False, -- unused
10622 4 => True, -- Loop_Parameter_Specification (Node4)
10623 5 => False), -- Etype (Node5-Sem)
10624
10625 N_Allocator =>
10626 (1 => False, -- Storage_Pool (Node1-Sem)
10627 2 => False, -- Procedure_To_Call (Node2-Sem)
10628 3 => True, -- Expression (Node3)
10629 4 => False, -- Coextensions (Elist4-Sem)
10630 5 => False), -- Etype (Node5-Sem)
10631
10632 N_Null_Statement =>
10633 (1 => False, -- unused
10634 2 => False, -- unused
10635 3 => False, -- unused
10636 4 => False, -- unused
10637 5 => False), -- unused
10638
10639 N_Label =>
10640 (1 => True, -- Identifier (Node1)
10641 2 => False, -- unused
10642 3 => False, -- unused
10643 4 => False, -- unused
10644 5 => False), -- unused
10645
10646 N_Assignment_Statement =>
10647 (1 => False, -- unused
10648 2 => True, -- Name (Node2)
10649 3 => True, -- Expression (Node3)
10650 4 => False, -- unused
10651 5 => False), -- unused
10652
10653 N_If_Statement =>
10654 (1 => True, -- Condition (Node1)
10655 2 => True, -- Then_Statements (List2)
10656 3 => True, -- Elsif_Parts (List3)
10657 4 => True, -- Else_Statements (List4)
10658 5 => True), -- End_Span (Uint5)
10659
10660 N_Elsif_Part =>
10661 (1 => True, -- Condition (Node1)
10662 2 => True, -- Then_Statements (List2)
10663 3 => False, -- Condition_Actions (List3-Sem)
10664 4 => False, -- unused
10665 5 => False), -- unused
10666
10667 N_Case_Expression =>
10668 (1 => False, -- unused
10669 2 => False, -- unused
10670 3 => True, -- Expression (Node3)
10671 4 => True, -- Alternatives (List4)
10672 5 => False), -- unused
10673
10674 N_Case_Expression_Alternative =>
10675 (1 => False, -- Actions (List1-Sem)
10676 2 => False, -- unused
10677 3 => True, -- Statements (List3)
10678 4 => True, -- Expression (Node4)
10679 5 => False), -- unused
10680
10681 N_Case_Statement =>
10682 (1 => False, -- unused
10683 2 => False, -- unused
10684 3 => True, -- Expression (Node3)
10685 4 => True, -- Alternatives (List4)
10686 5 => True), -- End_Span (Uint5)
10687
10688 N_Case_Statement_Alternative =>
10689 (1 => False, -- unused
10690 2 => False, -- unused
10691 3 => True, -- Statements (List3)
10692 4 => True, -- Discrete_Choices (List4)
10693 5 => False), -- unused
10694
10695 N_Loop_Statement =>
10696 (1 => True, -- Identifier (Node1)
10697 2 => True, -- Iteration_Scheme (Node2)
10698 3 => True, -- Statements (List3)
10699 4 => True, -- End_Label (Node4)
10700 5 => False), -- unused
10701
10702 N_Iteration_Scheme =>
10703 (1 => True, -- Condition (Node1)
10704 2 => True, -- Iterator_Specification (Node2)
10705 3 => False, -- Condition_Actions (List3-Sem)
10706 4 => True, -- Loop_Parameter_Specification (Node4)
10707 5 => False), -- unused
10708
10709 N_Loop_Parameter_Specification =>
10710 (1 => True, -- Defining_Identifier (Node1)
10711 2 => False, -- unused
10712 3 => False, -- unused
10713 4 => True, -- Discrete_Subtype_Definition (Node4)
10714 5 => False), -- unused
10715
10716 N_Iterator_Specification =>
10717 (1 => True, -- Defining_Identifier (Node1)
10718 2 => True, -- Name (Node2)
10719 3 => False, -- Unused
10720 4 => False, -- Unused
10721 5 => True), -- Subtype_Indication (Node5)
10722
10723 N_Block_Statement =>
10724 (1 => True, -- Identifier (Node1)
10725 2 => True, -- Declarations (List2)
10726 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10727 4 => True, -- Handled_Statement_Sequence (Node4)
10728 5 => False), -- unused
10729
10730 N_Exit_Statement =>
10731 (1 => True, -- Condition (Node1)
10732 2 => True, -- Name (Node2)
10733 3 => False, -- unused
10734 4 => False, -- unused
10735 5 => False), -- unused
10736
10737 N_Goto_Statement =>
10738 (1 => False, -- unused
10739 2 => True, -- Name (Node2)
10740 3 => False, -- unused
10741 4 => False, -- unused
10742 5 => False), -- unused
10743
10744 N_Subprogram_Declaration =>
10745 (1 => True, -- Specification (Node1)
10746 2 => False, -- unused
10747 3 => False, -- Body_To_Inline (Node3-Sem)
10748 4 => False, -- Parent_Spec (Node4-Sem)
10749 5 => False), -- Corresponding_Body (Node5-Sem)
10750
10751 N_Abstract_Subprogram_Declaration =>
10752 (1 => True, -- Specification (Node1)
10753 2 => False, -- unused
10754 3 => False, -- unused
10755 4 => False, -- unused
10756 5 => False), -- unused
10757
10758 N_Function_Specification =>
10759 (1 => True, -- Defining_Unit_Name (Node1)
10760 2 => False, -- Elaboration_Boolean (Node2-Sem)
10761 3 => True, -- Parameter_Specifications (List3)
10762 4 => True, -- Result_Definition (Node4)
10763 5 => False), -- Generic_Parent (Node5-Sem)
10764
10765 N_Procedure_Specification =>
10766 (1 => True, -- Defining_Unit_Name (Node1)
10767 2 => False, -- Elaboration_Boolean (Node2-Sem)
10768 3 => True, -- Parameter_Specifications (List3)
10769 4 => False, -- unused
10770 5 => False), -- Generic_Parent (Node5-Sem)
10771
10772 N_Designator =>
10773 (1 => True, -- Identifier (Node1)
10774 2 => True, -- Name (Node2)
10775 3 => False, -- unused
10776 4 => False, -- unused
10777 5 => False), -- unused
10778
10779 N_Defining_Program_Unit_Name =>
10780 (1 => True, -- Defining_Identifier (Node1)
10781 2 => True, -- Name (Node2)
10782 3 => False, -- unused
10783 4 => False, -- unused
10784 5 => False), -- unused
10785
10786 N_Operator_Symbol =>
10787 (1 => True, -- Chars (Name1)
10788 2 => False, -- unused
10789 3 => True, -- Strval (Str3)
10790 4 => False, -- Entity (Node4-Sem)
10791 5 => False), -- Etype (Node5-Sem)
10792
10793 N_Defining_Operator_Symbol =>
10794 (1 => True, -- Chars (Name1)
10795 2 => False, -- Next_Entity (Node2-Sem)
10796 3 => False, -- Scope (Node3-Sem)
10797 4 => False, -- unused
10798 5 => False), -- Etype (Node5-Sem)
10799
10800 N_Parameter_Specification =>
10801 (1 => True, -- Defining_Identifier (Node1)
10802 2 => True, -- Parameter_Type (Node2)
10803 3 => True, -- Expression (Node3)
10804 4 => False, -- unused
10805 5 => False), -- Default_Expression (Node5-Sem)
10806
10807 N_Subprogram_Body =>
10808 (1 => True, -- Specification (Node1)
10809 2 => True, -- Declarations (List2)
10810 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10811 4 => True, -- Handled_Statement_Sequence (Node4)
10812 5 => False), -- Corresponding_Spec (Node5-Sem)
10813
10814 N_Parameterized_Expression =>
10815 (1 => True, -- Specification (Node1)
10816 2 => False, -- unused
10817 3 => True, -- Expression (Node3)
10818 4 => False, -- unused
10819 5 => False), -- unused
10820
10821 N_Procedure_Call_Statement =>
10822 (1 => False, -- Controlling_Argument (Node1-Sem)
10823 2 => True, -- Name (Node2)
10824 3 => True, -- Parameter_Associations (List3)
10825 4 => False, -- First_Named_Actual (Node4-Sem)
10826 5 => False), -- Etype (Node5-Sem)
10827
10828 N_Function_Call =>
10829 (1 => False, -- Controlling_Argument (Node1-Sem)
10830 2 => True, -- Name (Node2)
10831 3 => True, -- Parameter_Associations (List3)
10832 4 => False, -- First_Named_Actual (Node4-Sem)
10833 5 => False), -- Etype (Node5-Sem)
10834
10835 N_Parameter_Association =>
10836 (1 => False, -- unused
10837 2 => True, -- Selector_Name (Node2)
10838 3 => True, -- Explicit_Actual_Parameter (Node3)
10839 4 => False, -- Next_Named_Actual (Node4-Sem)
10840 5 => False), -- unused
10841
10842 N_Return_Statement =>
10843 (1 => False, -- Storage_Pool (Node1-Sem)
10844 2 => False, -- Procedure_To_Call (Node2-Sem)
10845 3 => True, -- Expression (Node3)
10846 4 => False, -- unused
10847 5 => False), -- Return_Statement_Entity (Node5-Sem)
10848
10849 N_Extended_Return_Statement =>
10850 (1 => False, -- Storage_Pool (Node1-Sem)
10851 2 => False, -- Procedure_To_Call (Node2-Sem)
10852 3 => True, -- Return_Object_Declarations (List3)
10853 4 => True, -- Handled_Statement_Sequence (Node4)
10854 5 => False), -- Return_Statement_Entity (Node5-Sem)
10855
10856 N_Package_Declaration =>
10857 (1 => True, -- Specification (Node1)
10858 2 => False, -- unused
10859 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10860 4 => False, -- Parent_Spec (Node4-Sem)
10861 5 => False), -- Corresponding_Body (Node5-Sem)
10862
10863 N_Package_Specification =>
10864 (1 => True, -- Defining_Unit_Name (Node1)
10865 2 => True, -- Visible_Declarations (List2)
10866 3 => True, -- Private_Declarations (List3)
10867 4 => True, -- End_Label (Node4)
10868 5 => False), -- Generic_Parent (Node5-Sem)
10869
10870 N_Package_Body =>
10871 (1 => True, -- Defining_Unit_Name (Node1)
10872 2 => True, -- Declarations (List2)
10873 3 => False, -- unused
10874 4 => True, -- Handled_Statement_Sequence (Node4)
10875 5 => False), -- Corresponding_Spec (Node5-Sem)
10876
10877 N_Private_Type_Declaration =>
10878 (1 => True, -- Defining_Identifier (Node1)
10879 2 => False, -- unused
10880 3 => False, -- unused
10881 4 => True, -- Discriminant_Specifications (List4)
10882 5 => False), -- unused
10883
10884 N_Private_Extension_Declaration =>
10885 (1 => True, -- Defining_Identifier (Node1)
10886 2 => True, -- Interface_List (List2)
10887 3 => False, -- unused
10888 4 => True, -- Discriminant_Specifications (List4)
10889 5 => True), -- Subtype_Indication (Node5)
10890
10891 N_Use_Package_Clause =>
10892 (1 => False, -- unused
10893 2 => True, -- Names (List2)
10894 3 => False, -- Next_Use_Clause (Node3-Sem)
10895 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10896 5 => False), -- unused
10897
10898 N_Use_Type_Clause =>
10899 (1 => False, -- unused
10900 2 => True, -- Subtype_Marks (List2)
10901 3 => False, -- Next_Use_Clause (Node3-Sem)
10902 4 => False, -- Hidden_By_Use_Clause (Elist4-Sem)
10903 5 => False), -- unused
10904
10905 N_Object_Renaming_Declaration =>
10906 (1 => True, -- Defining_Identifier (Node1)
10907 2 => True, -- Name (Node2)
10908 3 => True, -- Access_Definition (Node3)
10909 4 => True, -- Subtype_Mark (Node4)
10910 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
10911
10912 N_Exception_Renaming_Declaration =>
10913 (1 => True, -- Defining_Identifier (Node1)
10914 2 => True, -- Name (Node2)
10915 3 => False, -- unused
10916 4 => False, -- unused
10917 5 => False), -- unused
10918
10919 N_Package_Renaming_Declaration =>
10920 (1 => True, -- Defining_Unit_Name (Node1)
10921 2 => True, -- Name (Node2)
10922 3 => False, -- unused
10923 4 => False, -- Parent_Spec (Node4-Sem)
10924 5 => False), -- unused
10925
10926 N_Subprogram_Renaming_Declaration =>
10927 (1 => True, -- Specification (Node1)
10928 2 => True, -- Name (Node2)
10929 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
10930 4 => False, -- Parent_Spec (Node4-Sem)
10931 5 => False), -- Corresponding_Spec (Node5-Sem)
10932
10933 N_Generic_Package_Renaming_Declaration =>
10934 (1 => True, -- Defining_Unit_Name (Node1)
10935 2 => True, -- Name (Node2)
10936 3 => False, -- unused
10937 4 => False, -- Parent_Spec (Node4-Sem)
10938 5 => False), -- unused
10939
10940 N_Generic_Procedure_Renaming_Declaration =>
10941 (1 => True, -- Defining_Unit_Name (Node1)
10942 2 => True, -- Name (Node2)
10943 3 => False, -- unused
10944 4 => False, -- Parent_Spec (Node4-Sem)
10945 5 => False), -- unused
10946
10947 N_Generic_Function_Renaming_Declaration =>
10948 (1 => True, -- Defining_Unit_Name (Node1)
10949 2 => True, -- Name (Node2)
10950 3 => False, -- unused
10951 4 => False, -- Parent_Spec (Node4-Sem)
10952 5 => False), -- unused
10953
10954 N_Task_Type_Declaration =>
10955 (1 => True, -- Defining_Identifier (Node1)
10956 2 => True, -- Interface_List (List2)
10957 3 => True, -- Task_Definition (Node3)
10958 4 => True, -- Discriminant_Specifications (List4)
10959 5 => False), -- Corresponding_Body (Node5-Sem)
10960
10961 N_Single_Task_Declaration =>
10962 (1 => True, -- Defining_Identifier (Node1)
10963 2 => True, -- Interface_List (List2)
10964 3 => True, -- Task_Definition (Node3)
10965 4 => False, -- unused
10966 5 => False), -- unused
10967
10968 N_Task_Definition =>
10969 (1 => False, -- unused
10970 2 => True, -- Visible_Declarations (List2)
10971 3 => True, -- Private_Declarations (List3)
10972 4 => True, -- End_Label (Node4)
10973 5 => False), -- unused
10974
10975 N_Task_Body =>
10976 (1 => True, -- Defining_Identifier (Node1)
10977 2 => True, -- Declarations (List2)
10978 3 => False, -- Activation_Chain_Entity (Node3-Sem)
10979 4 => True, -- Handled_Statement_Sequence (Node4)
10980 5 => False), -- Corresponding_Spec (Node5-Sem)
10981
10982 N_Protected_Type_Declaration =>
10983 (1 => True, -- Defining_Identifier (Node1)
10984 2 => True, -- Interface_List (List2)
10985 3 => True, -- Protected_Definition (Node3)
10986 4 => True, -- Discriminant_Specifications (List4)
10987 5 => False), -- Corresponding_Body (Node5-Sem)
10988
10989 N_Single_Protected_Declaration =>
10990 (1 => True, -- Defining_Identifier (Node1)
10991 2 => True, -- Interface_List (List2)
10992 3 => True, -- Protected_Definition (Node3)
10993 4 => False, -- unused
10994 5 => False), -- unused
10995
10996 N_Protected_Definition =>
10997 (1 => False, -- unused
10998 2 => True, -- Visible_Declarations (List2)
10999 3 => True, -- Private_Declarations (List3)
11000 4 => True, -- End_Label (Node4)
11001 5 => False), -- unused
11002
11003 N_Protected_Body =>
11004 (1 => True, -- Defining_Identifier (Node1)
11005 2 => True, -- Declarations (List2)
11006 3 => False, -- unused
11007 4 => True, -- End_Label (Node4)
11008 5 => False), -- Corresponding_Spec (Node5-Sem)
11009
11010 N_Entry_Declaration =>
11011 (1 => True, -- Defining_Identifier (Node1)
11012 2 => False, -- unused
11013 3 => True, -- Parameter_Specifications (List3)
11014 4 => True, -- Discrete_Subtype_Definition (Node4)
11015 5 => False), -- Corresponding_Body (Node5-Sem)
11016
11017 N_Accept_Statement =>
11018 (1 => True, -- Entry_Direct_Name (Node1)
11019 2 => True, -- Declarations (List2)
11020 3 => True, -- Parameter_Specifications (List3)
11021 4 => True, -- Handled_Statement_Sequence (Node4)
11022 5 => True), -- Entry_Index (Node5)
11023
11024 N_Entry_Body =>
11025 (1 => True, -- Defining_Identifier (Node1)
11026 2 => True, -- Declarations (List2)
11027 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11028 4 => True, -- Handled_Statement_Sequence (Node4)
11029 5 => True), -- Entry_Body_Formal_Part (Node5)
11030
11031 N_Entry_Body_Formal_Part =>
11032 (1 => True, -- Condition (Node1)
11033 2 => False, -- unused
11034 3 => True, -- Parameter_Specifications (List3)
11035 4 => True, -- Entry_Index_Specification (Node4)
11036 5 => False), -- unused
11037
11038 N_Entry_Index_Specification =>
11039 (1 => True, -- Defining_Identifier (Node1)
11040 2 => False, -- unused
11041 3 => False, -- unused
11042 4 => True, -- Discrete_Subtype_Definition (Node4)
11043 5 => False), -- unused
11044
11045 N_Entry_Call_Statement =>
11046 (1 => False, -- unused
11047 2 => True, -- Name (Node2)
11048 3 => True, -- Parameter_Associations (List3)
11049 4 => False, -- First_Named_Actual (Node4-Sem)
11050 5 => False), -- unused
11051
11052 N_Requeue_Statement =>
11053 (1 => False, -- unused
11054 2 => True, -- Name (Node2)
11055 3 => False, -- unused
11056 4 => False, -- unused
11057 5 => False), -- unused
11058
11059 N_Delay_Until_Statement =>
11060 (1 => False, -- unused
11061 2 => False, -- unused
11062 3 => True, -- Expression (Node3)
11063 4 => False, -- unused
11064 5 => False), -- unused
11065
11066 N_Delay_Relative_Statement =>
11067 (1 => False, -- unused
11068 2 => False, -- unused
11069 3 => True, -- Expression (Node3)
11070 4 => False, -- unused
11071 5 => False), -- unused
11072
11073 N_Selective_Accept =>
11074 (1 => True, -- Select_Alternatives (List1)
11075 2 => False, -- unused
11076 3 => False, -- unused
11077 4 => True, -- Else_Statements (List4)
11078 5 => False), -- unused
11079
11080 N_Accept_Alternative =>
11081 (1 => True, -- Condition (Node1)
11082 2 => True, -- Accept_Statement (Node2)
11083 3 => True, -- Statements (List3)
11084 4 => True, -- Pragmas_Before (List4)
11085 5 => False), -- Accept_Handler_Records (List5-Sem)
11086
11087 N_Delay_Alternative =>
11088 (1 => True, -- Condition (Node1)
11089 2 => True, -- Delay_Statement (Node2)
11090 3 => True, -- Statements (List3)
11091 4 => True, -- Pragmas_Before (List4)
11092 5 => False), -- unused
11093
11094 N_Terminate_Alternative =>
11095 (1 => True, -- Condition (Node1)
11096 2 => False, -- unused
11097 3 => False, -- unused
11098 4 => True, -- Pragmas_Before (List4)
11099 5 => True), -- Pragmas_After (List5)
11100
11101 N_Timed_Entry_Call =>
11102 (1 => True, -- Entry_Call_Alternative (Node1)
11103 2 => False, -- unused
11104 3 => False, -- unused
11105 4 => True, -- Delay_Alternative (Node4)
11106 5 => False), -- unused
11107
11108 N_Entry_Call_Alternative =>
11109 (1 => True, -- Entry_Call_Statement (Node1)
11110 2 => False, -- unused
11111 3 => True, -- Statements (List3)
11112 4 => True, -- Pragmas_Before (List4)
11113 5 => False), -- unused
11114
11115 N_Conditional_Entry_Call =>
11116 (1 => True, -- Entry_Call_Alternative (Node1)
11117 2 => False, -- unused
11118 3 => False, -- unused
11119 4 => True, -- Else_Statements (List4)
11120 5 => False), -- unused
11121
11122 N_Asynchronous_Select =>
11123 (1 => True, -- Triggering_Alternative (Node1)
11124 2 => True, -- Abortable_Part (Node2)
11125 3 => False, -- unused
11126 4 => False, -- unused
11127 5 => False), -- unused
11128
11129 N_Triggering_Alternative =>
11130 (1 => True, -- Triggering_Statement (Node1)
11131 2 => False, -- unused
11132 3 => True, -- Statements (List3)
11133 4 => True, -- Pragmas_Before (List4)
11134 5 => False), -- unused
11135
11136 N_Abortable_Part =>
11137 (1 => False, -- unused
11138 2 => False, -- unused
11139 3 => True, -- Statements (List3)
11140 4 => False, -- unused
11141 5 => False), -- unused
11142
11143 N_Abort_Statement =>
11144 (1 => False, -- unused
11145 2 => True, -- Names (List2)
11146 3 => False, -- unused
11147 4 => False, -- unused
11148 5 => False), -- unused
11149
11150 N_Compilation_Unit =>
11151 (1 => True, -- Context_Items (List1)
11152 2 => True, -- Unit (Node2)
11153 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
11154 4 => False, -- Library_Unit (Node4-Sem)
11155 5 => True), -- Aux_Decls_Node (Node5)
11156
11157 N_Compilation_Unit_Aux =>
11158 (1 => True, -- Actions (List1)
11159 2 => True, -- Declarations (List2)
11160 3 => False, -- Default_Storage_Pool (Node3)
11161 4 => True, -- Config_Pragmas (List4)
11162 5 => True), -- Pragmas_After (List5)
11163
11164 N_With_Clause =>
11165 (1 => False, -- unused
11166 2 => True, -- Name (Node2)
11167 3 => False, -- unused
11168 4 => False, -- Library_Unit (Node4-Sem)
11169 5 => False), -- Corresponding_Spec (Node5-Sem)
11170
11171 N_Subprogram_Body_Stub =>
11172 (1 => True, -- Specification (Node1)
11173 2 => False, -- unused
11174 3 => False, -- unused
11175 4 => False, -- Library_Unit (Node4-Sem)
11176 5 => False), -- Corresponding_Body (Node5-Sem)
11177
11178 N_Package_Body_Stub =>
11179 (1 => True, -- Defining_Identifier (Node1)
11180 2 => False, -- unused
11181 3 => False, -- unused
11182 4 => False, -- Library_Unit (Node4-Sem)
11183 5 => False), -- Corresponding_Body (Node5-Sem)
11184
11185 N_Task_Body_Stub =>
11186 (1 => True, -- Defining_Identifier (Node1)
11187 2 => False, -- unused
11188 3 => False, -- unused
11189 4 => False, -- Library_Unit (Node4-Sem)
11190 5 => False), -- Corresponding_Body (Node5-Sem)
11191
11192 N_Protected_Body_Stub =>
11193 (1 => True, -- Defining_Identifier (Node1)
11194 2 => False, -- unused
11195 3 => False, -- unused
11196 4 => False, -- Library_Unit (Node4-Sem)
11197 5 => False), -- Corresponding_Body (Node5-Sem)
11198
11199 N_Subunit =>
11200 (1 => True, -- Proper_Body (Node1)
11201 2 => True, -- Name (Node2)
11202 3 => False, -- Corresponding_Stub (Node3-Sem)
11203 4 => False, -- unused
11204 5 => False), -- unused
11205
11206 N_Exception_Declaration =>
11207 (1 => True, -- Defining_Identifier (Node1)
11208 2 => False, -- unused
11209 3 => False, -- Expression (Node3-Sem)
11210 4 => False, -- unused
11211 5 => False), -- unused
11212
11213 N_Handled_Sequence_Of_Statements =>
11214 (1 => True, -- At_End_Proc (Node1)
11215 2 => False, -- First_Real_Statement (Node2-Sem)
11216 3 => True, -- Statements (List3)
11217 4 => True, -- End_Label (Node4)
11218 5 => True), -- Exception_Handlers (List5)
11219
11220 N_Exception_Handler =>
11221 (1 => False, -- Local_Raise_Statements (Elist1)
11222 2 => True, -- Choice_Parameter (Node2)
11223 3 => True, -- Statements (List3)
11224 4 => True, -- Exception_Choices (List4)
11225 5 => False), -- Exception_Label (Node5)
11226
11227 N_Raise_Statement =>
11228 (1 => False, -- unused
11229 2 => True, -- Name (Node2)
11230 3 => True, -- Expression (Node3)
11231 4 => False, -- unused
11232 5 => False), -- unused
11233
11234 N_Generic_Subprogram_Declaration =>
11235 (1 => True, -- Specification (Node1)
11236 2 => True, -- Generic_Formal_Declarations (List2)
11237 3 => False, -- unused
11238 4 => False, -- Parent_Spec (Node4-Sem)
11239 5 => False), -- Corresponding_Body (Node5-Sem)
11240
11241 N_Generic_Package_Declaration =>
11242 (1 => True, -- Specification (Node1)
11243 2 => True, -- Generic_Formal_Declarations (List2)
11244 3 => False, -- Activation_Chain_Entity (Node3-Sem)
11245 4 => False, -- Parent_Spec (Node4-Sem)
11246 5 => False), -- Corresponding_Body (Node5-Sem)
11247
11248 N_Package_Instantiation =>
11249 (1 => True, -- Defining_Unit_Name (Node1)
11250 2 => True, -- Name (Node2)
11251 3 => True, -- Generic_Associations (List3)
11252 4 => False, -- Parent_Spec (Node4-Sem)
11253 5 => False), -- Instance_Spec (Node5-Sem)
11254
11255 N_Procedure_Instantiation =>
11256 (1 => True, -- Defining_Unit_Name (Node1)
11257 2 => True, -- Name (Node2)
11258 3 => True, -- Generic_Associations (List3)
11259 4 => False, -- Parent_Spec (Node4-Sem)
11260 5 => False), -- Instance_Spec (Node5-Sem)
11261
11262 N_Function_Instantiation =>
11263 (1 => True, -- Defining_Unit_Name (Node1)
11264 2 => True, -- Name (Node2)
11265 3 => True, -- Generic_Associations (List3)
11266 4 => False, -- Parent_Spec (Node4-Sem)
11267 5 => False), -- Instance_Spec (Node5-Sem)
11268
11269 N_Generic_Association =>
11270 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
11271 2 => True, -- Selector_Name (Node2)
11272 3 => False, -- unused
11273 4 => False, -- unused
11274 5 => False), -- unused
11275
11276 N_Formal_Object_Declaration =>
11277 (1 => True, -- Defining_Identifier (Node1)
11278 2 => False, -- unused
11279 3 => True, -- Access_Definition (Node3)
11280 4 => True, -- Subtype_Mark (Node4)
11281 5 => True), -- Default_Expression (Node5)
11282
11283 N_Formal_Type_Declaration =>
11284 (1 => True, -- Defining_Identifier (Node1)
11285 2 => False, -- unused
11286 3 => True, -- Formal_Type_Definition (Node3)
11287 4 => True, -- Discriminant_Specifications (List4)
11288 5 => False), -- unused
11289
11290 N_Formal_Private_Type_Definition =>
11291 (1 => False, -- unused
11292 2 => False, -- unused
11293 3 => False, -- unused
11294 4 => False, -- unused
11295 5 => False), -- unused
11296
11297 N_Formal_Derived_Type_Definition =>
11298 (1 => False, -- unused
11299 2 => True, -- Interface_List (List2)
11300 3 => False, -- unused
11301 4 => True, -- Subtype_Mark (Node4)
11302 5 => False), -- unused
11303
11304 N_Formal_Discrete_Type_Definition =>
11305 (1 => False, -- unused
11306 2 => False, -- unused
11307 3 => False, -- unused
11308 4 => False, -- unused
11309 5 => False), -- unused
11310
11311 N_Formal_Signed_Integer_Type_Definition =>
11312 (1 => False, -- unused
11313 2 => False, -- unused
11314 3 => False, -- unused
11315 4 => False, -- unused
11316 5 => False), -- unused
11317
11318 N_Formal_Modular_Type_Definition =>
11319 (1 => False, -- unused
11320 2 => False, -- unused
11321 3 => False, -- unused
11322 4 => False, -- unused
11323 5 => False), -- unused
11324
11325 N_Formal_Floating_Point_Definition =>
11326 (1 => False, -- unused
11327 2 => False, -- unused
11328 3 => False, -- unused
11329 4 => False, -- unused
11330 5 => False), -- unused
11331
11332 N_Formal_Ordinary_Fixed_Point_Definition =>
11333 (1 => False, -- unused
11334 2 => False, -- unused
11335 3 => False, -- unused
11336 4 => False, -- unused
11337 5 => False), -- unused
11338
11339 N_Formal_Decimal_Fixed_Point_Definition =>
11340 (1 => False, -- unused
11341 2 => False, -- unused
11342 3 => False, -- unused
11343 4 => False, -- unused
11344 5 => False), -- unused
11345
11346 N_Formal_Concrete_Subprogram_Declaration =>
11347 (1 => True, -- Specification (Node1)
11348 2 => True, -- Default_Name (Node2)
11349 3 => False, -- unused
11350 4 => False, -- unused
11351 5 => False), -- unused
11352
11353 N_Formal_Abstract_Subprogram_Declaration =>
11354 (1 => True, -- Specification (Node1)
11355 2 => True, -- Default_Name (Node2)
11356 3 => False, -- unused
11357 4 => False, -- unused
11358 5 => False), -- unused
11359
11360 N_Formal_Package_Declaration =>
11361 (1 => True, -- Defining_Identifier (Node1)
11362 2 => True, -- Name (Node2)
11363 3 => True, -- Generic_Associations (List3)
11364 4 => False, -- unused
11365 5 => False), -- Instance_Spec (Node5-Sem)
11366
11367 N_Attribute_Definition_Clause =>
11368 (1 => True, -- Chars (Name1)
11369 2 => True, -- Name (Node2)
11370 3 => True, -- Expression (Node3)
11371 4 => False, -- unused
11372 5 => False), -- Next_Rep_Item (Node5-Sem)
11373
11374 N_Aspect_Specification =>
11375 (1 => True, -- Identifier (Node1)
11376 2 => False, -- Aspect_Rep_Item (Node2-Sem)
11377 3 => True, -- Expression (Node3)
11378 4 => False, -- Entity (Node4-Sem)
11379 5 => False), -- Next_Rep_Item (Node5-Sem)
11380
11381 N_Enumeration_Representation_Clause =>
11382 (1 => True, -- Identifier (Node1)
11383 2 => False, -- unused
11384 3 => True, -- Array_Aggregate (Node3)
11385 4 => False, -- unused
11386 5 => False), -- Next_Rep_Item (Node5-Sem)
11387
11388 N_Record_Representation_Clause =>
11389 (1 => True, -- Identifier (Node1)
11390 2 => True, -- Mod_Clause (Node2)
11391 3 => True, -- Component_Clauses (List3)
11392 4 => False, -- unused
11393 5 => False), -- Next_Rep_Item (Node5-Sem)
11394
11395 N_Component_Clause =>
11396 (1 => True, -- Component_Name (Node1)
11397 2 => True, -- Position (Node2)
11398 3 => True, -- First_Bit (Node3)
11399 4 => True, -- Last_Bit (Node4)
11400 5 => False), -- unused
11401
11402 N_Code_Statement =>
11403 (1 => False, -- unused
11404 2 => False, -- unused
11405 3 => True, -- Expression (Node3)
11406 4 => False, -- unused
11407 5 => False), -- unused
11408
11409 N_Op_Rotate_Left =>
11410 (1 => True, -- Chars (Name1)
11411 2 => True, -- Left_Opnd (Node2)
11412 3 => True, -- Right_Opnd (Node3)
11413 4 => False, -- Entity (Node4-Sem)
11414 5 => False), -- Etype (Node5-Sem)
11415
11416 N_Op_Rotate_Right =>
11417 (1 => True, -- Chars (Name1)
11418 2 => True, -- Left_Opnd (Node2)
11419 3 => True, -- Right_Opnd (Node3)
11420 4 => False, -- Entity (Node4-Sem)
11421 5 => False), -- Etype (Node5-Sem)
11422
11423 N_Op_Shift_Left =>
11424 (1 => True, -- Chars (Name1)
11425 2 => True, -- Left_Opnd (Node2)
11426 3 => True, -- Right_Opnd (Node3)
11427 4 => False, -- Entity (Node4-Sem)
11428 5 => False), -- Etype (Node5-Sem)
11429
11430 N_Op_Shift_Right_Arithmetic =>
11431 (1 => True, -- Chars (Name1)
11432 2 => True, -- Left_Opnd (Node2)
11433 3 => True, -- Right_Opnd (Node3)
11434 4 => False, -- Entity (Node4-Sem)
11435 5 => False), -- Etype (Node5-Sem)
11436
11437 N_Op_Shift_Right =>
11438 (1 => True, -- Chars (Name1)
11439 2 => True, -- Left_Opnd (Node2)
11440 3 => True, -- Right_Opnd (Node3)
11441 4 => False, -- Entity (Node4-Sem)
11442 5 => False), -- Etype (Node5-Sem)
11443
11444 N_Delta_Constraint =>
11445 (1 => False, -- unused
11446 2 => False, -- unused
11447 3 => True, -- Delta_Expression (Node3)
11448 4 => True, -- Range_Constraint (Node4)
11449 5 => False), -- unused
11450
11451 N_At_Clause =>
11452 (1 => True, -- Identifier (Node1)
11453 2 => False, -- unused
11454 3 => True, -- Expression (Node3)
11455 4 => False, -- unused
11456 5 => False), -- unused
11457
11458 N_Mod_Clause =>
11459 (1 => False, -- unused
11460 2 => False, -- unused
11461 3 => True, -- Expression (Node3)
11462 4 => True, -- Pragmas_Before (List4)
11463 5 => False), -- unused
11464
11465 N_Conditional_Expression =>
11466 (1 => True, -- Expressions (List1)
11467 2 => False, -- Then_Actions (List2-Sem)
11468 3 => False, -- Else_Actions (List3-Sem)
11469 4 => False, -- unused
11470 5 => False), -- Etype (Node5-Sem)
11471
11472 N_Expanded_Name =>
11473 (1 => True, -- Chars (Name1)
11474 2 => True, -- Selector_Name (Node2)
11475 3 => True, -- Prefix (Node3)
11476 4 => False, -- Entity (Node4-Sem)
11477 5 => False), -- Etype (Node5-Sem)
11478
11479 N_Expression_With_Actions =>
11480 (1 => True, -- Actions (List1)
11481 2 => False, -- unused
11482 3 => True, -- Expression (Node3)
11483 4 => False, -- unused
11484 5 => False), -- unused
11485
11486 N_Free_Statement =>
11487 (1 => False, -- Storage_Pool (Node1-Sem)
11488 2 => False, -- Procedure_To_Call (Node2-Sem)
11489 3 => True, -- Expression (Node3)
11490 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11491 5 => False), -- unused
11492
11493 N_Freeze_Entity =>
11494 (1 => True, -- Actions (List1)
11495 2 => False, -- Access_Types_To_Process (Elist2-Sem)
11496 3 => False, -- TSS_Elist (Elist3-Sem)
11497 4 => False, -- Entity (Node4-Sem)
11498 5 => False), -- First_Subtype_Link (Node5-Sem)
11499
11500 N_Implicit_Label_Declaration =>
11501 (1 => True, -- Defining_Identifier (Node1)
11502 2 => False, -- Label_Construct (Node2-Sem)
11503 3 => False, -- unused
11504 4 => False, -- unused
11505 5 => False), -- unused
11506
11507 N_Itype_Reference =>
11508 (1 => False, -- Itype (Node1-Sem)
11509 2 => False, -- unused
11510 3 => False, -- unused
11511 4 => False, -- unused
11512 5 => False), -- unused
11513
11514 N_Raise_Constraint_Error =>
11515 (1 => True, -- Condition (Node1)
11516 2 => False, -- unused
11517 3 => True, -- Reason (Uint3)
11518 4 => False, -- unused
11519 5 => False), -- Etype (Node5-Sem)
11520
11521 N_Raise_Program_Error =>
11522 (1 => True, -- Condition (Node1)
11523 2 => False, -- unused
11524 3 => True, -- Reason (Uint3)
11525 4 => False, -- unused
11526 5 => False), -- Etype (Node5-Sem)
11527
11528 N_Raise_Storage_Error =>
11529 (1 => True, -- Condition (Node1)
11530 2 => False, -- unused
11531 3 => True, -- Reason (Uint3)
11532 4 => False, -- unused
11533 5 => False), -- Etype (Node5-Sem)
11534
11535 N_Push_Constraint_Error_Label =>
11536 (1 => False, -- unused
11537 2 => False, -- unused
11538 3 => False, -- unused
11539 4 => False, -- unused
11540 5 => False), -- unused
11541
11542 N_Push_Program_Error_Label =>
11543 (1 => False, -- Exception_Label
11544 2 => False, -- unused
11545 3 => False, -- unused
11546 4 => False, -- unused
11547 5 => False), -- Exception_Label
11548
11549 N_Push_Storage_Error_Label =>
11550 (1 => False, -- Exception_Label
11551 2 => False, -- unused
11552 3 => False, -- unused
11553 4 => False, -- unused
11554 5 => False), -- Exception_Label
11555
11556 N_Pop_Constraint_Error_Label =>
11557 (1 => False, -- unused
11558 2 => False, -- unused
11559 3 => False, -- unused
11560 4 => False, -- unused
11561 5 => False), -- unused
11562
11563 N_Pop_Program_Error_Label =>
11564 (1 => False, -- unused
11565 2 => False, -- unused
11566 3 => False, -- unused
11567 4 => False, -- unused
11568 5 => False), -- unused
11569
11570 N_Pop_Storage_Error_Label =>
11571 (1 => False, -- unused
11572 2 => False, -- unused
11573 3 => False, -- unused
11574 4 => False, -- unused
11575 5 => False), -- unused
11576
11577 N_Reference =>
11578 (1 => False, -- unused
11579 2 => False, -- unused
11580 3 => True, -- Prefix (Node3)
11581 4 => False, -- unused
11582 5 => False), -- Etype (Node5-Sem)
11583
11584 N_Subprogram_Info =>
11585 (1 => True, -- Identifier (Node1)
11586 2 => False, -- unused
11587 3 => False, -- unused
11588 4 => False, -- unused
11589 5 => False), -- Etype (Node5-Sem)
11590
11591 N_Unchecked_Expression =>
11592 (1 => False, -- unused
11593 2 => False, -- unused
11594 3 => True, -- Expression (Node3)
11595 4 => False, -- unused
11596 5 => False), -- Etype (Node5-Sem)
11597
11598 N_Unchecked_Type_Conversion =>
11599 (1 => False, -- unused
11600 2 => False, -- unused
11601 3 => True, -- Expression (Node3)
11602 4 => True, -- Subtype_Mark (Node4)
11603 5 => False), -- Etype (Node5-Sem)
11604
11605 N_Validate_Unchecked_Conversion =>
11606 (1 => False, -- Source_Type (Node1-Sem)
11607 2 => False, -- Target_Type (Node2-Sem)
11608 3 => False, -- unused
11609 4 => False, -- unused
11610 5 => False), -- unused
11611
11612 -- Entries for SCIL nodes
11613
11614 N_SCIL_Dispatch_Table_Tag_Init =>
11615 (1 => False, -- unused
11616 2 => False, -- unused
11617 3 => False, -- unused
11618 4 => False, -- SCIL_Entity (Node4-Sem)
11619 5 => False), -- unused
11620
11621 N_SCIL_Dispatching_Call =>
11622 (1 => False, -- unused
11623 2 => False, -- SCIL_Target_Prim (Node2-Sem)
11624 3 => False, -- unused
11625 4 => False, -- SCIL_Entity (Node4-Sem)
11626 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
11627
11628 N_SCIL_Membership_Test =>
11629 (1 => False, -- unused
11630 2 => False, -- unused
11631 3 => False, -- unused
11632 4 => False, -- SCIL_Entity (Node4-Sem)
11633 5 => False), -- SCIL_Tag_Value (Node5-Sem)
11634
11635 -- Entries for Empty, Error and Unused. Even thought these have a Chars
11636 -- field for debugging purposes, they are not really syntactic fields, so
11637 -- we mark all fields as unused.
11638
11639 N_Empty =>
11640 (1 => False, -- unused
11641 2 => False, -- unused
11642 3 => False, -- unused
11643 4 => False, -- unused
11644 5 => False), -- unused
11645
11646 N_Error =>
11647 (1 => False, -- unused
11648 2 => False, -- unused
11649 3 => False, -- unused
11650 4 => False, -- unused
11651 5 => False), -- unused
11652
11653 N_Unused_At_Start =>
11654 (1 => False, -- unused
11655 2 => False, -- unused
11656 3 => False, -- unused
11657 4 => False, -- unused
11658 5 => False), -- unused
11659
11660 N_Unused_At_End =>
11661 (1 => False, -- unused
11662 2 => False, -- unused
11663 3 => False, -- unused
11664 4 => False, -- unused
11665 5 => False)); -- unused
11666
11667 --------------------
11668 -- Inline Pragmas --
11669 --------------------
11670
11671 pragma Inline (ABE_Is_Certain);
11672 pragma Inline (Abort_Present);
11673 pragma Inline (Abortable_Part);
11674 pragma Inline (Abstract_Present);
11675 pragma Inline (Accept_Handler_Records);
11676 pragma Inline (Accept_Statement);
11677 pragma Inline (Access_Definition);
11678 pragma Inline (Access_To_Subprogram_Definition);
11679 pragma Inline (Access_Types_To_Process);
11680 pragma Inline (Actions);
11681 pragma Inline (Activation_Chain_Entity);
11682 pragma Inline (Acts_As_Spec);
11683 pragma Inline (Actual_Designated_Subtype);
11684 pragma Inline (Address_Warning_Posted);
11685 pragma Inline (Aggregate_Bounds);
11686 pragma Inline (Aliased_Present);
11687 pragma Inline (All_Others);
11688 pragma Inline (All_Present);
11689 pragma Inline (Alternatives);
11690 pragma Inline (Ancestor_Part);
11691 pragma Inline (Array_Aggregate);
11692 pragma Inline (Aspect_Cancel);
11693 pragma Inline (Aspect_Rep_Item);
11694 pragma Inline (Assignment_OK);
11695 pragma Inline (Associated_Node);
11696 pragma Inline (At_End_Proc);
11697 pragma Inline (Attribute_Name);
11698 pragma Inline (Aux_Decls_Node);
11699 pragma Inline (Backwards_OK);
11700 pragma Inline (Bad_Is_Detected);
11701 pragma Inline (Body_To_Inline);
11702 pragma Inline (Body_Required);
11703 pragma Inline (By_Ref);
11704 pragma Inline (Box_Present);
11705 pragma Inline (Char_Literal_Value);
11706 pragma Inline (Chars);
11707 pragma Inline (Check_Address_Alignment);
11708 pragma Inline (Choice_Parameter);
11709 pragma Inline (Choices);
11710 pragma Inline (Class_Present);
11711 pragma Inline (Coextensions);
11712 pragma Inline (Comes_From_Extended_Return_Statement);
11713 pragma Inline (Compile_Time_Known_Aggregate);
11714 pragma Inline (Component_Associations);
11715 pragma Inline (Component_Clauses);
11716 pragma Inline (Component_Definition);
11717 pragma Inline (Component_Items);
11718 pragma Inline (Component_List);
11719 pragma Inline (Component_Name);
11720 pragma Inline (Componentwise_Assignment);
11721 pragma Inline (Condition);
11722 pragma Inline (Condition_Actions);
11723 pragma Inline (Config_Pragmas);
11724 pragma Inline (Constant_Present);
11725 pragma Inline (Constraint);
11726 pragma Inline (Constraints);
11727 pragma Inline (Context_Installed);
11728 pragma Inline (Context_Items);
11729 pragma Inline (Context_Pending);
11730 pragma Inline (Controlling_Argument);
11731 pragma Inline (Conversion_OK);
11732 pragma Inline (Corresponding_Body);
11733 pragma Inline (Corresponding_Formal_Spec);
11734 pragma Inline (Corresponding_Generic_Association);
11735 pragma Inline (Corresponding_Integer_Value);
11736 pragma Inline (Corresponding_Spec);
11737 pragma Inline (Corresponding_Stub);
11738 pragma Inline (Dcheck_Function);
11739 pragma Inline (Debug_Statement);
11740 pragma Inline (Declarations);
11741 pragma Inline (Default_Expression);
11742 pragma Inline (Default_Storage_Pool);
11743 pragma Inline (Default_Name);
11744 pragma Inline (Defining_Identifier);
11745 pragma Inline (Defining_Unit_Name);
11746 pragma Inline (Delay_Alternative);
11747 pragma Inline (Delay_Statement);
11748 pragma Inline (Delta_Expression);
11749 pragma Inline (Digits_Expression);
11750 pragma Inline (Discr_Check_Funcs_Built);
11751 pragma Inline (Discrete_Choices);
11752 pragma Inline (Discrete_Range);
11753 pragma Inline (Discrete_Subtype_Definition);
11754 pragma Inline (Discrete_Subtype_Definitions);
11755 pragma Inline (Discriminant_Specifications);
11756 pragma Inline (Discriminant_Type);
11757 pragma Inline (Do_Accessibility_Check);
11758 pragma Inline (Do_Discriminant_Check);
11759 pragma Inline (Do_Length_Check);
11760 pragma Inline (Do_Division_Check);
11761 pragma Inline (Do_Overflow_Check);
11762 pragma Inline (Do_Range_Check);
11763 pragma Inline (Do_Storage_Check);
11764 pragma Inline (Do_Tag_Check);
11765 pragma Inline (Elaborate_Present);
11766 pragma Inline (Elaborate_All_Desirable);
11767 pragma Inline (Elaborate_All_Present);
11768 pragma Inline (Elaborate_Desirable);
11769 pragma Inline (Elaboration_Boolean);
11770 pragma Inline (Else_Actions);
11771 pragma Inline (Else_Statements);
11772 pragma Inline (Elsif_Parts);
11773 pragma Inline (Enclosing_Variant);
11774 pragma Inline (End_Label);
11775 pragma Inline (End_Span);
11776 pragma Inline (Entity);
11777 pragma Inline (Entity_Or_Associated_Node);
11778 pragma Inline (Entry_Body_Formal_Part);
11779 pragma Inline (Entry_Call_Alternative);
11780 pragma Inline (Entry_Call_Statement);
11781 pragma Inline (Entry_Direct_Name);
11782 pragma Inline (Entry_Index);
11783 pragma Inline (Entry_Index_Specification);
11784 pragma Inline (Etype);
11785 pragma Inline (Exception_Choices);
11786 pragma Inline (Exception_Handlers);
11787 pragma Inline (Exception_Junk);
11788 pragma Inline (Exception_Label);
11789 pragma Inline (Expansion_Delayed);
11790 pragma Inline (Explicit_Actual_Parameter);
11791 pragma Inline (Explicit_Generic_Actual_Parameter);
11792 pragma Inline (Expression);
11793 pragma Inline (Expressions);
11794 pragma Inline (First_Bit);
11795 pragma Inline (First_Inlined_Subprogram);
11796 pragma Inline (First_Name);
11797 pragma Inline (First_Named_Actual);
11798 pragma Inline (First_Real_Statement);
11799 pragma Inline (First_Subtype_Link);
11800 pragma Inline (Float_Truncate);
11801 pragma Inline (Formal_Type_Definition);
11802 pragma Inline (Forwards_OK);
11803 pragma Inline (From_Aspect_Specification);
11804 pragma Inline (From_At_End);
11805 pragma Inline (From_At_Mod);
11806 pragma Inline (From_Default);
11807 pragma Inline (From_Dynamic_Predicate);
11808 pragma Inline (From_Static_Predicate);
11809 pragma Inline (Generic_Associations);
11810 pragma Inline (Generic_Formal_Declarations);
11811 pragma Inline (Generic_Parent);
11812 pragma Inline (Generic_Parent_Type);
11813 pragma Inline (Handled_Statement_Sequence);
11814 pragma Inline (Handler_List_Entry);
11815 pragma Inline (Has_Created_Identifier);
11816 pragma Inline (Has_Dynamic_Length_Check);
11817 pragma Inline (Has_Dynamic_Range_Check);
11818 pragma Inline (Has_Init_Expression);
11819 pragma Inline (Has_Local_Raise);
11820 pragma Inline (Has_Self_Reference);
11821 pragma Inline (Has_No_Elaboration_Code);
11822 pragma Inline (Has_Pragma_CPU);
11823 pragma Inline (Has_Pragma_Priority);
11824 pragma Inline (Has_Pragma_Suppress_All);
11825 pragma Inline (Has_Private_View);
11826 pragma Inline (Has_Relative_Deadline_Pragma);
11827 pragma Inline (Has_Storage_Size_Pragma);
11828 pragma Inline (Has_Task_Info_Pragma);
11829 pragma Inline (Has_Task_Name_Pragma);
11830 pragma Inline (Has_Wide_Character);
11831 pragma Inline (Has_Wide_Wide_Character);
11832 pragma Inline (Hidden_By_Use_Clause);
11833 pragma Inline (High_Bound);
11834 pragma Inline (Identifier);
11835 pragma Inline (Implicit_With);
11836 pragma Inline (Interface_List);
11837 pragma Inline (Interface_Present);
11838 pragma Inline (Includes_Infinities);
11839 pragma Inline (Import_Interface_Present);
11840 pragma Inline (In_Present);
11841 pragma Inline (Inherited_Discriminant);
11842 pragma Inline (Instance_Spec);
11843 pragma Inline (Intval);
11844 pragma Inline (Iterator_Specification);
11845 pragma Inline (Is_Accessibility_Actual);
11846 pragma Inline (Is_Asynchronous_Call_Block);
11847 pragma Inline (Is_Boolean_Aspect);
11848 pragma Inline (Is_Component_Left_Opnd);
11849 pragma Inline (Is_Component_Right_Opnd);
11850 pragma Inline (Is_Controlling_Actual);
11851 pragma Inline (Is_Delayed_Aspect);
11852 pragma Inline (Is_Dynamic_Coextension);
11853 pragma Inline (Is_Elsif);
11854 pragma Inline (Is_Entry_Barrier_Function);
11855 pragma Inline (Is_Expanded_Build_In_Place_Call);
11856 pragma Inline (Is_Folded_In_Parser);
11857 pragma Inline (Is_In_Discriminant_Check);
11858 pragma Inline (Is_Machine_Number);
11859 pragma Inline (Is_Null_Loop);
11860 pragma Inline (Is_Overloaded);
11861 pragma Inline (Is_Power_Of_2_For_Shift);
11862 pragma Inline (Is_Protected_Subprogram_Body);
11863 pragma Inline (Is_Static_Coextension);
11864 pragma Inline (Is_Static_Expression);
11865 pragma Inline (Is_Subprogram_Descriptor);
11866 pragma Inline (Is_Task_Allocation_Block);
11867 pragma Inline (Is_Task_Master);
11868 pragma Inline (Iteration_Scheme);
11869 pragma Inline (Itype);
11870 pragma Inline (Kill_Range_Check);
11871 pragma Inline (Last_Bit);
11872 pragma Inline (Last_Name);
11873 pragma Inline (Library_Unit);
11874 pragma Inline (Label_Construct);
11875 pragma Inline (Left_Opnd);
11876 pragma Inline (Limited_View_Installed);
11877 pragma Inline (Limited_Present);
11878 pragma Inline (Literals);
11879 pragma Inline (Local_Raise_Not_OK);
11880 pragma Inline (Local_Raise_Statements);
11881 pragma Inline (Loop_Actions);
11882 pragma Inline (Loop_Parameter_Specification);
11883 pragma Inline (Low_Bound);
11884 pragma Inline (Mod_Clause);
11885 pragma Inline (More_Ids);
11886 pragma Inline (Must_Be_Byte_Aligned);
11887 pragma Inline (Must_Not_Freeze);
11888 pragma Inline (Must_Not_Override);
11889 pragma Inline (Must_Override);
11890 pragma Inline (Name);
11891 pragma Inline (Names);
11892 pragma Inline (Next_Entity);
11893 pragma Inline (Next_Exit_Statement);
11894 pragma Inline (Next_Implicit_With);
11895 pragma Inline (Next_Named_Actual);
11896 pragma Inline (Next_Pragma);
11897 pragma Inline (Next_Rep_Item);
11898 pragma Inline (Next_Use_Clause);
11899 pragma Inline (No_Ctrl_Actions);
11900 pragma Inline (No_Elaboration_Check);
11901 pragma Inline (No_Entities_Ref_In_Spec);
11902 pragma Inline (No_Initialization);
11903 pragma Inline (No_Truncation);
11904 pragma Inline (Null_Present);
11905 pragma Inline (Null_Exclusion_Present);
11906 pragma Inline (Null_Exclusion_In_Return_Present);
11907 pragma Inline (Null_Record_Present);
11908 pragma Inline (Object_Definition);
11909 pragma Inline (Of_Present);
11910 pragma Inline (Original_Discriminant);
11911 pragma Inline (Original_Entity);
11912 pragma Inline (Others_Discrete_Choices);
11913 pragma Inline (Out_Present);
11914 pragma Inline (Parameter_Associations);
11915 pragma Inline (Parameter_Specifications);
11916 pragma Inline (Parameter_List_Truncated);
11917 pragma Inline (Parameter_Type);
11918 pragma Inline (Parent_Spec);
11919 pragma Inline (Position);
11920 pragma Inline (Pragma_Argument_Associations);
11921 pragma Inline (Pragma_Enabled);
11922 pragma Inline (Pragma_Identifier);
11923 pragma Inline (Pragmas_After);
11924 pragma Inline (Pragmas_Before);
11925 pragma Inline (Prefix);
11926 pragma Inline (Present_Expr);
11927 pragma Inline (Prev_Ids);
11928 pragma Inline (Print_In_Hex);
11929 pragma Inline (Private_Declarations);
11930 pragma Inline (Private_Present);
11931 pragma Inline (Procedure_To_Call);
11932 pragma Inline (Proper_Body);
11933 pragma Inline (Protected_Definition);
11934 pragma Inline (Protected_Present);
11935 pragma Inline (Raises_Constraint_Error);
11936 pragma Inline (Range_Constraint);
11937 pragma Inline (Range_Expression);
11938 pragma Inline (Real_Range_Specification);
11939 pragma Inline (Realval);
11940 pragma Inline (Reason);
11941 pragma Inline (Record_Extension_Part);
11942 pragma Inline (Redundant_Use);
11943 pragma Inline (Renaming_Exception);
11944 pragma Inline (Result_Definition);
11945 pragma Inline (Return_Object_Declarations);
11946 pragma Inline (Return_Statement_Entity);
11947 pragma Inline (Reverse_Present);
11948 pragma Inline (Right_Opnd);
11949 pragma Inline (Rounded_Result);
11950 pragma Inline (SCIL_Controlling_Tag);
11951 pragma Inline (SCIL_Entity);
11952 pragma Inline (SCIL_Tag_Value);
11953 pragma Inline (SCIL_Target_Prim);
11954 pragma Inline (Scope);
11955 pragma Inline (Select_Alternatives);
11956 pragma Inline (Selector_Name);
11957 pragma Inline (Selector_Names);
11958 pragma Inline (Shift_Count_OK);
11959 pragma Inline (Source_Type);
11960 pragma Inline (Specification);
11961 pragma Inline (Split_PPC);
11962 pragma Inline (Statements);
11963 pragma Inline (Static_Processing_OK);
11964 pragma Inline (Storage_Pool);
11965 pragma Inline (Strval);
11966 pragma Inline (Subtype_Indication);
11967 pragma Inline (Subtype_Mark);
11968 pragma Inline (Subtype_Marks);
11969 pragma Inline (Suppress_Assignment_Checks);
11970 pragma Inline (Suppress_Loop_Warnings);
11971 pragma Inline (Synchronized_Present);
11972 pragma Inline (Tagged_Present);
11973 pragma Inline (Target_Type);
11974 pragma Inline (Task_Definition);
11975 pragma Inline (Task_Present);
11976 pragma Inline (Then_Actions);
11977 pragma Inline (Then_Statements);
11978 pragma Inline (Triggering_Alternative);
11979 pragma Inline (Triggering_Statement);
11980 pragma Inline (Treat_Fixed_As_Integer);
11981 pragma Inline (TSS_Elist);
11982 pragma Inline (Type_Definition);
11983 pragma Inline (Unit);
11984 pragma Inline (Unknown_Discriminants_Present);
11985 pragma Inline (Unreferenced_In_Spec);
11986 pragma Inline (Variant_Part);
11987 pragma Inline (Variants);
11988 pragma Inline (Visible_Declarations);
11989 pragma Inline (Was_Originally_Stub);
11990 pragma Inline (Withed_Body);
11991 pragma Inline (Zero_Cost_Handling);
11992
11993 pragma Inline (Set_ABE_Is_Certain);
11994 pragma Inline (Set_Abort_Present);
11995 pragma Inline (Set_Abortable_Part);
11996 pragma Inline (Set_Abstract_Present);
11997 pragma Inline (Set_Accept_Handler_Records);
11998 pragma Inline (Set_Accept_Statement);
11999 pragma Inline (Set_Access_Definition);
12000 pragma Inline (Set_Access_To_Subprogram_Definition);
12001 pragma Inline (Set_Access_Types_To_Process);
12002 pragma Inline (Set_Actions);
12003 pragma Inline (Set_Activation_Chain_Entity);
12004 pragma Inline (Set_Acts_As_Spec);
12005 pragma Inline (Set_Actual_Designated_Subtype);
12006 pragma Inline (Set_Address_Warning_Posted);
12007 pragma Inline (Set_Aggregate_Bounds);
12008 pragma Inline (Set_Aliased_Present);
12009 pragma Inline (Set_All_Others);
12010 pragma Inline (Set_All_Present);
12011 pragma Inline (Set_Alternatives);
12012 pragma Inline (Set_Ancestor_Part);
12013 pragma Inline (Set_Array_Aggregate);
12014 pragma Inline (Set_Aspect_Cancel);
12015 pragma Inline (Set_Aspect_Rep_Item);
12016 pragma Inline (Set_Assignment_OK);
12017 pragma Inline (Set_Associated_Node);
12018 pragma Inline (Set_At_End_Proc);
12019 pragma Inline (Set_Attribute_Name);
12020 pragma Inline (Set_Aux_Decls_Node);
12021 pragma Inline (Set_Backwards_OK);
12022 pragma Inline (Set_Bad_Is_Detected);
12023 pragma Inline (Set_Body_To_Inline);
12024 pragma Inline (Set_Body_Required);
12025 pragma Inline (Set_By_Ref);
12026 pragma Inline (Set_Box_Present);
12027 pragma Inline (Set_Char_Literal_Value);
12028 pragma Inline (Set_Chars);
12029 pragma Inline (Set_Check_Address_Alignment);
12030 pragma Inline (Set_Choice_Parameter);
12031 pragma Inline (Set_Choices);
12032 pragma Inline (Set_Class_Present);
12033 pragma Inline (Set_Coextensions);
12034 pragma Inline (Set_Comes_From_Extended_Return_Statement);
12035 pragma Inline (Set_Compile_Time_Known_Aggregate);
12036 pragma Inline (Set_Component_Associations);
12037 pragma Inline (Set_Component_Clauses);
12038 pragma Inline (Set_Component_Definition);
12039 pragma Inline (Set_Component_Items);
12040 pragma Inline (Set_Component_List);
12041 pragma Inline (Set_Component_Name);
12042 pragma Inline (Set_Componentwise_Assignment);
12043 pragma Inline (Set_Condition);
12044 pragma Inline (Set_Condition_Actions);
12045 pragma Inline (Set_Config_Pragmas);
12046 pragma Inline (Set_Constant_Present);
12047 pragma Inline (Set_Constraint);
12048 pragma Inline (Set_Constraints);
12049 pragma Inline (Set_Context_Installed);
12050 pragma Inline (Set_Context_Items);
12051 pragma Inline (Set_Context_Pending);
12052 pragma Inline (Set_Controlling_Argument);
12053 pragma Inline (Set_Conversion_OK);
12054 pragma Inline (Set_Corresponding_Body);
12055 pragma Inline (Set_Corresponding_Formal_Spec);
12056 pragma Inline (Set_Corresponding_Generic_Association);
12057 pragma Inline (Set_Corresponding_Integer_Value);
12058 pragma Inline (Set_Corresponding_Spec);
12059 pragma Inline (Set_Corresponding_Stub);
12060 pragma Inline (Set_Dcheck_Function);
12061 pragma Inline (Set_Debug_Statement);
12062 pragma Inline (Set_Declarations);
12063 pragma Inline (Set_Default_Expression);
12064 pragma Inline (Set_Default_Storage_Pool);
12065 pragma Inline (Set_Default_Name);
12066 pragma Inline (Set_Defining_Identifier);
12067 pragma Inline (Set_Defining_Unit_Name);
12068 pragma Inline (Set_Delay_Alternative);
12069 pragma Inline (Set_Delay_Statement);
12070 pragma Inline (Set_Delta_Expression);
12071 pragma Inline (Set_Digits_Expression);
12072 pragma Inline (Set_Discr_Check_Funcs_Built);
12073 pragma Inline (Set_Discrete_Choices);
12074 pragma Inline (Set_Discrete_Range);
12075 pragma Inline (Set_Discrete_Subtype_Definition);
12076 pragma Inline (Set_Discrete_Subtype_Definitions);
12077 pragma Inline (Set_Discriminant_Specifications);
12078 pragma Inline (Set_Discriminant_Type);
12079 pragma Inline (Set_Do_Accessibility_Check);
12080 pragma Inline (Set_Do_Discriminant_Check);
12081 pragma Inline (Set_Do_Length_Check);
12082 pragma Inline (Set_Do_Division_Check);
12083 pragma Inline (Set_Do_Overflow_Check);
12084 pragma Inline (Set_Do_Range_Check);
12085 pragma Inline (Set_Do_Storage_Check);
12086 pragma Inline (Set_Do_Tag_Check);
12087 pragma Inline (Set_Elaborate_Present);
12088 pragma Inline (Set_Elaborate_All_Desirable);
12089 pragma Inline (Set_Elaborate_All_Present);
12090 pragma Inline (Set_Elaborate_Desirable);
12091 pragma Inline (Set_Elaboration_Boolean);
12092 pragma Inline (Set_Else_Actions);
12093 pragma Inline (Set_Else_Statements);
12094 pragma Inline (Set_Elsif_Parts);
12095 pragma Inline (Set_Enclosing_Variant);
12096 pragma Inline (Set_End_Label);
12097 pragma Inline (Set_End_Span);
12098 pragma Inline (Set_Entity);
12099 pragma Inline (Set_Entry_Body_Formal_Part);
12100 pragma Inline (Set_Entry_Call_Alternative);
12101 pragma Inline (Set_Entry_Call_Statement);
12102 pragma Inline (Set_Entry_Direct_Name);
12103 pragma Inline (Set_Entry_Index);
12104 pragma Inline (Set_Entry_Index_Specification);
12105 pragma Inline (Set_Etype);
12106 pragma Inline (Set_Exception_Choices);
12107 pragma Inline (Set_Exception_Handlers);
12108 pragma Inline (Set_Exception_Junk);
12109 pragma Inline (Set_Exception_Label);
12110 pragma Inline (Set_Expansion_Delayed);
12111 pragma Inline (Set_Explicit_Actual_Parameter);
12112 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
12113 pragma Inline (Set_Expression);
12114 pragma Inline (Set_Expressions);
12115 pragma Inline (Set_First_Bit);
12116 pragma Inline (Set_First_Inlined_Subprogram);
12117 pragma Inline (Set_First_Name);
12118 pragma Inline (Set_First_Named_Actual);
12119 pragma Inline (Set_First_Real_Statement);
12120 pragma Inline (Set_First_Subtype_Link);
12121 pragma Inline (Set_Float_Truncate);
12122 pragma Inline (Set_Formal_Type_Definition);
12123 pragma Inline (Set_Forwards_OK);
12124 pragma Inline (Set_From_Aspect_Specification);
12125 pragma Inline (Set_From_At_End);
12126 pragma Inline (Set_From_At_Mod);
12127 pragma Inline (Set_From_Default);
12128 pragma Inline (Set_From_Dynamic_Predicate);
12129 pragma Inline (Set_From_Static_Predicate);
12130 pragma Inline (Set_Generic_Associations);
12131 pragma Inline (Set_Generic_Formal_Declarations);
12132 pragma Inline (Set_Generic_Parent);
12133 pragma Inline (Set_Generic_Parent_Type);
12134 pragma Inline (Set_Handled_Statement_Sequence);
12135 pragma Inline (Set_Handler_List_Entry);
12136 pragma Inline (Set_Has_Created_Identifier);
12137 pragma Inline (Set_Has_Dynamic_Length_Check);
12138 pragma Inline (Set_Has_Init_Expression);
12139 pragma Inline (Set_Has_Local_Raise);
12140 pragma Inline (Set_Has_Dynamic_Range_Check);
12141 pragma Inline (Set_Has_No_Elaboration_Code);
12142 pragma Inline (Set_Has_Pragma_CPU);
12143 pragma Inline (Set_Has_Pragma_Priority);
12144 pragma Inline (Set_Has_Pragma_Suppress_All);
12145 pragma Inline (Set_Has_Private_View);
12146 pragma Inline (Set_Has_Relative_Deadline_Pragma);
12147 pragma Inline (Set_Has_Storage_Size_Pragma);
12148 pragma Inline (Set_Has_Task_Info_Pragma);
12149 pragma Inline (Set_Has_Task_Name_Pragma);
12150 pragma Inline (Set_Has_Wide_Character);
12151 pragma Inline (Set_Has_Wide_Wide_Character);
12152 pragma Inline (Set_Hidden_By_Use_Clause);
12153 pragma Inline (Set_High_Bound);
12154 pragma Inline (Set_Identifier);
12155 pragma Inline (Set_Implicit_With);
12156 pragma Inline (Set_Includes_Infinities);
12157 pragma Inline (Set_Interface_List);
12158 pragma Inline (Set_Interface_Present);
12159 pragma Inline (Set_Import_Interface_Present);
12160 pragma Inline (Set_In_Present);
12161 pragma Inline (Set_Inherited_Discriminant);
12162 pragma Inline (Set_Instance_Spec);
12163 pragma Inline (Set_Intval);
12164 pragma Inline (Set_Iterator_Specification);
12165 pragma Inline (Set_Is_Accessibility_Actual);
12166 pragma Inline (Set_Is_Asynchronous_Call_Block);
12167 pragma Inline (Set_Is_Boolean_Aspect);
12168 pragma Inline (Set_Is_Component_Left_Opnd);
12169 pragma Inline (Set_Is_Component_Right_Opnd);
12170 pragma Inline (Set_Is_Controlling_Actual);
12171 pragma Inline (Set_Is_Delayed_Aspect);
12172 pragma Inline (Set_Is_Dynamic_Coextension);
12173 pragma Inline (Set_Is_Elsif);
12174 pragma Inline (Set_Is_Entry_Barrier_Function);
12175 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
12176 pragma Inline (Set_Is_Folded_In_Parser);
12177 pragma Inline (Set_Is_In_Discriminant_Check);
12178 pragma Inline (Set_Is_Machine_Number);
12179 pragma Inline (Set_Is_Null_Loop);
12180 pragma Inline (Set_Is_Overloaded);
12181 pragma Inline (Set_Is_Power_Of_2_For_Shift);
12182 pragma Inline (Set_Is_Protected_Subprogram_Body);
12183 pragma Inline (Set_Has_Self_Reference);
12184 pragma Inline (Set_Is_Static_Coextension);
12185 pragma Inline (Set_Is_Static_Expression);
12186 pragma Inline (Set_Is_Subprogram_Descriptor);
12187 pragma Inline (Set_Is_Task_Allocation_Block);
12188 pragma Inline (Set_Is_Task_Master);
12189 pragma Inline (Set_Iteration_Scheme);
12190 pragma Inline (Set_Itype);
12191 pragma Inline (Set_Kill_Range_Check);
12192 pragma Inline (Set_Last_Bit);
12193 pragma Inline (Set_Last_Name);
12194 pragma Inline (Set_Library_Unit);
12195 pragma Inline (Set_Label_Construct);
12196 pragma Inline (Set_Left_Opnd);
12197 pragma Inline (Set_Limited_View_Installed);
12198 pragma Inline (Set_Limited_Present);
12199 pragma Inline (Set_Literals);
12200 pragma Inline (Set_Local_Raise_Not_OK);
12201 pragma Inline (Set_Local_Raise_Statements);
12202 pragma Inline (Set_Loop_Actions);
12203 pragma Inline (Set_Loop_Parameter_Specification);
12204 pragma Inline (Set_Low_Bound);
12205 pragma Inline (Set_Mod_Clause);
12206 pragma Inline (Set_More_Ids);
12207 pragma Inline (Set_Must_Be_Byte_Aligned);
12208 pragma Inline (Set_Must_Not_Freeze);
12209 pragma Inline (Set_Must_Not_Override);
12210 pragma Inline (Set_Must_Override);
12211 pragma Inline (Set_Name);
12212 pragma Inline (Set_Names);
12213 pragma Inline (Set_Next_Entity);
12214 pragma Inline (Set_Next_Exit_Statement);
12215 pragma Inline (Set_Next_Implicit_With);
12216 pragma Inline (Set_Next_Named_Actual);
12217 pragma Inline (Set_Next_Pragma);
12218 pragma Inline (Set_Next_Rep_Item);
12219 pragma Inline (Set_Next_Use_Clause);
12220 pragma Inline (Set_No_Ctrl_Actions);
12221 pragma Inline (Set_No_Elaboration_Check);
12222 pragma Inline (Set_No_Entities_Ref_In_Spec);
12223 pragma Inline (Set_No_Initialization);
12224 pragma Inline (Set_No_Truncation);
12225 pragma Inline (Set_Null_Present);
12226 pragma Inline (Set_Null_Exclusion_Present);
12227 pragma Inline (Set_Null_Exclusion_In_Return_Present);
12228 pragma Inline (Set_Null_Record_Present);
12229 pragma Inline (Set_Object_Definition);
12230 pragma Inline (Set_Of_Present);
12231 pragma Inline (Set_Original_Discriminant);
12232 pragma Inline (Set_Original_Entity);
12233 pragma Inline (Set_Others_Discrete_Choices);
12234 pragma Inline (Set_Out_Present);
12235 pragma Inline (Set_Parameter_Associations);
12236 pragma Inline (Set_Parameter_Specifications);
12237 pragma Inline (Set_Parameter_List_Truncated);
12238 pragma Inline (Set_Parameter_Type);
12239 pragma Inline (Set_Parent_Spec);
12240 pragma Inline (Set_Position);
12241 pragma Inline (Set_Pragma_Argument_Associations);
12242 pragma Inline (Set_Pragma_Enabled);
12243 pragma Inline (Set_Pragma_Identifier);
12244 pragma Inline (Set_Pragmas_After);
12245 pragma Inline (Set_Pragmas_Before);
12246 pragma Inline (Set_Prefix);
12247 pragma Inline (Set_Present_Expr);
12248 pragma Inline (Set_Prev_Ids);
12249 pragma Inline (Set_Print_In_Hex);
12250 pragma Inline (Set_Private_Declarations);
12251 pragma Inline (Set_Private_Present);
12252 pragma Inline (Set_Procedure_To_Call);
12253 pragma Inline (Set_Proper_Body);
12254 pragma Inline (Set_Protected_Definition);
12255 pragma Inline (Set_Protected_Present);
12256 pragma Inline (Set_Raises_Constraint_Error);
12257 pragma Inline (Set_Range_Constraint);
12258 pragma Inline (Set_Range_Expression);
12259 pragma Inline (Set_Real_Range_Specification);
12260 pragma Inline (Set_Realval);
12261 pragma Inline (Set_Reason);
12262 pragma Inline (Set_Record_Extension_Part);
12263 pragma Inline (Set_Redundant_Use);
12264 pragma Inline (Set_Renaming_Exception);
12265 pragma Inline (Set_Result_Definition);
12266 pragma Inline (Set_Return_Object_Declarations);
12267 pragma Inline (Set_Reverse_Present);
12268 pragma Inline (Set_Right_Opnd);
12269 pragma Inline (Set_Rounded_Result);
12270 pragma Inline (Set_SCIL_Controlling_Tag);
12271 pragma Inline (Set_SCIL_Entity);
12272 pragma Inline (Set_SCIL_Tag_Value);
12273 pragma Inline (Set_SCIL_Target_Prim);
12274 pragma Inline (Set_Scope);
12275 pragma Inline (Set_Select_Alternatives);
12276 pragma Inline (Set_Selector_Name);
12277 pragma Inline (Set_Selector_Names);
12278 pragma Inline (Set_Shift_Count_OK);
12279 pragma Inline (Set_Source_Type);
12280 pragma Inline (Set_Specification);
12281 pragma Inline (Set_Split_PPC);
12282 pragma Inline (Set_Statements);
12283 pragma Inline (Set_Static_Processing_OK);
12284 pragma Inline (Set_Storage_Pool);
12285 pragma Inline (Set_Strval);
12286 pragma Inline (Set_Subtype_Indication);
12287 pragma Inline (Set_Subtype_Mark);
12288 pragma Inline (Set_Subtype_Marks);
12289 pragma Inline (Set_Suppress_Assignment_Checks);
12290 pragma Inline (Set_Suppress_Loop_Warnings);
12291 pragma Inline (Set_Synchronized_Present);
12292 pragma Inline (Set_Tagged_Present);
12293 pragma Inline (Set_Target_Type);
12294 pragma Inline (Set_Task_Definition);
12295 pragma Inline (Set_Task_Present);
12296 pragma Inline (Set_Then_Actions);
12297 pragma Inline (Set_Then_Statements);
12298 pragma Inline (Set_Triggering_Alternative);
12299 pragma Inline (Set_Triggering_Statement);
12300 pragma Inline (Set_Treat_Fixed_As_Integer);
12301 pragma Inline (Set_TSS_Elist);
12302 pragma Inline (Set_Type_Definition);
12303 pragma Inline (Set_Unit);
12304 pragma Inline (Set_Unknown_Discriminants_Present);
12305 pragma Inline (Set_Unreferenced_In_Spec);
12306 pragma Inline (Set_Variant_Part);
12307 pragma Inline (Set_Variants);
12308 pragma Inline (Set_Visible_Declarations);
12309 pragma Inline (Set_Was_Originally_Stub);
12310 pragma Inline (Set_Withed_Body);
12311 pragma Inline (Set_Zero_Cost_Handling);
12312
12313 N_Simple_Return_Statement : constant Node_Kind := N_Return_Statement;
12314 -- Rename N_Return_Statement to be N_Simple_Return_Statement. Clients
12315 -- should refer to N_Simple_Return_Statement.
12316
12317 end Sinfo;