]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/sinfo.ads
78ac00bb2693ae2cced6415b522ccfab1bc106b0
[thirdparty/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-2019, 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 -- Add an entry in Is_Syntactic_Field
90 -- In the body (sinfo), add entries to the access functions for all
91 -- its fields (except standard expression fields) to include the new
92 -- node in the checks.
93 -- Add an appropriate section to the case statement in sprint.adb
94 -- Add an appropriate section to the case statement in sem.adb
95 -- Add an appropriate section to the case statement in exp_util.adb
96 -- (Insert_Actions procedure)
97 -- For a subexpression, add an appropriate section to the case
98 -- statement in sem_eval.adb
99 -- For a subexpression, add an appropriate section to the case
100 -- statement in sem_res.adb
101
102 -- All back ends must be made aware of the new node kind.
103
104 -- Finally, four utility programs must be run:
105
106 -- (Optional.) Run CSinfo to check that you have made the changes
107 -- consistently. It checks most of the rules given above. This utility
108 -- reads sinfo.ads and sinfo.adb and generates a report to standard
109 -- output. This step is optional because XSinfo runs CSinfo.
110
111 -- Run XSinfo to create sinfo.h, the corresponding C header. This
112 -- utility reads sinfo.ads and generates sinfo.h. Note that it does
113 -- not need to read sinfo.adb, since the contents of the body are
114 -- algorithmically determinable from the spec.
115
116 -- Run XTreeprs to create treeprs.ads, an updated version of the module
117 -- that is used to drive the tree print routine. This utility reads (but
118 -- does not modify) treeprs.adt, the template that provides the basic
119 -- structure of the file, and then fills in the data from the comments
120 -- in sinfo.ads.
121
122 -- Run XNmake to create nmake.ads and nmake.adb, the package body and
123 -- spec of the Nmake package which contains functions for constructing
124 -- nodes.
125
126 -- The above steps are done automatically by the build scripts when you do
127 -- a full bootstrap.
128
129 -- Note: sometime we could write a utility that actually generated the body
130 -- of sinfo from the spec instead of simply checking it, since, as noted
131 -- above, the contents of the body can be determined from the spec.
132
133 --------------------------------
134 -- Implicit Nodes in the Tree --
135 --------------------------------
136
137 -- Generally the structure of the tree very closely follows the grammar as
138 -- defined in the RM. However, certain nodes are omitted to save space and
139 -- simplify semantic processing. Two general classes of such omitted nodes
140 -- are as follows:
141
142 -- If the only possibilities for a non-terminal are one or more other
143 -- non-terminals (i.e. the rule is a "skinny" rule), then usually the
144 -- corresponding node is omitted from the tree, and the target construct
145 -- appears directly. For example, a real type definition is either
146 -- floating point definition or a fixed point definition. No explicit node
147 -- appears for real type definition. Instead either the floating point
148 -- definition or fixed point definition appears directly.
149
150 -- If a non-terminal corresponds to a list of some other non-terminal
151 -- (possibly with separating punctuation), then usually it is omitted from
152 -- the tree, and a list of components appears instead. For example,
153 -- sequence of statements does not appear explicitly in the tree. Instead
154 -- a list of statements appears directly.
155
156 -- Some additional cases of omitted nodes occur and are documented
157 -- individually. In particular, many nodes are omitted in the tree
158 -- generated for an expression.
159
160 -------------------------------------------
161 -- Handling of Defining Identifier Lists --
162 -------------------------------------------
163
164 -- In several declarative forms in the syntax, lists of defining
165 -- identifiers appear (object declarations, component declarations, number
166 -- declarations etc.)
167
168 -- The semantics of such statements are equivalent to a series of identical
169 -- declarations of single defining identifiers (except that conformance
170 -- checks require the same grouping of identifiers in the parameter case).
171
172 -- To simplify semantic processing, the parser breaks down such multiple
173 -- declaration cases into sequences of single declarations, duplicating
174 -- type and initialization information as required. The flags More_Ids and
175 -- Prev_Ids are used to record the original form of the source in the case
176 -- where the original source used a list of names, More_Ids being set on
177 -- all but the last name and Prev_Ids being set on all but the first name.
178 -- These flags are used to reconstruct the original source (e.g. in the
179 -- Sprint package), and also are included in the conformance checks, but
180 -- otherwise have no semantic significance.
181
182 -- Note: the reason that we use More_Ids and Prev_Ids rather than
183 -- First_Name and Last_Name flags is so that the flags are off in the
184 -- normal one identifier case, which minimizes tree print output.
185
186 -----------------------
187 -- Use of Node Lists --
188 -----------------------
189
190 -- With a few exceptions, if a construction of the form {non-terminal}
191 -- appears in the tree, lists are used in the corresponding tree node (see
192 -- package Nlists for handling of node lists). In this case a field of the
193 -- parent node points to a list of nodes for the non-terminal. The field
194 -- name for such fields has a plural name which always ends in "s". For
195 -- example, a case statement has a field Alternatives pointing to list of
196 -- case statement alternative nodes.
197
198 -- Only fields pointing to lists have names ending in "s", so generally the
199 -- structure is strongly typed, fields not ending in s point to single
200 -- nodes, and fields ending in s point to lists.
201
202 -- The following example shows how a traversal of a list is written. We
203 -- suppose here that Stmt points to a N_Case_Statement node which has a
204 -- list field called Alternatives:
205
206 -- Alt := First (Alternatives (Stmt));
207 -- while Present (Alt) loop
208 -- ..
209 -- -- processing for case statement alternative Alt
210 -- ..
211 -- Alt := Next (Alt);
212 -- end loop;
213
214 -- The Present function tests for Empty, which in this case signals the end
215 -- of the list. First returns Empty immediately if the list is empty.
216 -- Present is defined in Atree; First and Next are defined in Nlists.
217
218 -- The exceptions to this rule occur with {DEFINING_IDENTIFIERS} in all
219 -- contexts, which is handled as described in the previous section, and
220 -- with {,library_unit_NAME} in the N_With_Clause mode, which is handled
221 -- using the First_Name and Last_Name flags, as further detailed in the
222 -- description of the N_With_Clause node.
223
224 -------------
225 -- Pragmas --
226 -------------
227
228 -- Pragmas can appear in many different context, but are not included in
229 -- the grammar. Still they must appear in the tree, so they can be properly
230 -- processed.
231
232 -- Two approaches are used. In some cases, an extra field is defined in an
233 -- appropriate node that contains a list of pragmas appearing in the
234 -- expected context. For example pragmas can appear before an
235 -- Accept_Alternative in a Selective_Accept_Statement, and these pragmas
236 -- appear in the Pragmas_Before field of the N_Accept_Alternative node.
237
238 -- The other approach is to simply allow pragmas to appear in syntactic
239 -- lists where the grammar (of course) does not include the possibility.
240 -- For example, the Variants field of an N_Variant_Part node points to a
241 -- list that can contain both N_Pragma and N_Variant nodes.
242
243 -- To make processing easier in the latter case, the Nlists package
244 -- provides a set of routines (First_Non_Pragma, Last_Non_Pragma,
245 -- Next_Non_Pragma, Prev_Non_Pragma) that allow such lists to be handled
246 -- ignoring all pragmas.
247
248 -- In the case of the variants list, we can either write:
249
250 -- Variant := First (Variants (N));
251 -- while Present (Variant) loop
252 -- ...
253 -- Variant := Next (Variant);
254 -- end loop;
255
256 -- or
257
258 -- Variant := First_Non_Pragma (Variants (N));
259 -- while Present (Variant) loop
260 -- ...
261 -- Variant := Next_Non_Pragma (Variant);
262 -- end loop;
263
264 -- In the first form of the loop, Variant can either be an N_Pragma or an
265 -- N_Variant node. In the second form, Variant can only be N_Variant since
266 -- all pragmas are skipped.
267
268 ---------------------
269 -- Optional Fields --
270 ---------------------
271
272 -- Fields which correspond to a section of the syntax enclosed in square
273 -- brackets are generally omitted (and the corresponding field set to Empty
274 -- for a node, or No_List for a list). The documentation of such fields
275 -- notes these cases. One exception to this rule occurs in the case of
276 -- possibly empty statement sequences (such as the sequence of statements
277 -- in an entry call alternative). Such cases appear in the syntax rules as
278 -- [SEQUENCE_OF_STATEMENTS] and the fields corresponding to such optional
279 -- statement sequences always contain an empty list (not No_List) if no
280 -- statements are present.
281
282 -- Note: the utility program that constructs the body and spec of the Nmake
283 -- package relies on the format of the comments to determine if a field
284 -- should have a default value in the corresponding make routine. The rule
285 -- is that if the first line of the description of the field contains the
286 -- string "(set to xxx if", then a default value of xxx is provided for
287 -- this field in the corresponding Make_yyy routine.
288
289 -----------------------------------
290 -- Note on Body/Spec Terminology --
291 -----------------------------------
292
293 -- In informal discussions about Ada, it is customary to refer to package
294 -- and subprogram specs and bodies. However, this is not technically
295 -- correct, what is normally referred to as a spec or specification is in
296 -- fact a package declaration or subprogram declaration. We are careful in
297 -- GNAT to use the correct terminology and in particular, the full word
298 -- specification is never used as an incorrect substitute for declaration.
299 -- The structure and terminology used in the tree also reflects the grammar
300 -- and thus uses declaration and specification in the technically correct
301 -- manner.
302
303 -- However, there are contexts in which the informal terminology is useful.
304 -- We have the word "body" to refer to the Interp_Etype declared by the
305 -- declaration of a unit body, and in some contexts we need similar term to
306 -- refer to the entity declared by the package or subprogram declaration,
307 -- and simply using declaration can be confusing since the body also has a
308 -- declaration.
309
310 -- An example of such a context is the link between the package body and
311 -- its declaration. With_Declaration is confusing, since the package body
312 -- itself is a declaration.
313
314 -- To deal with this problem, we reserve the informal term Spec, i.e. the
315 -- popular abbreviation used in this context, to refer to the entity
316 -- declared by the package or subprogram declaration. So in the above
317 -- example case, the field in the body is called With_Spec.
318
319 -- Another important context for the use of the word Spec is in error
320 -- messages, where a hyper-correct use of declaration would be confusing to
321 -- a typical Ada programmer, and even for an expert programmer can cause
322 -- confusion since the body has a declaration as well.
323
324 -- So, to summarize:
325
326 -- Declaration always refers to the syntactic entity that is called
327 -- a declaration. In particular, subprogram declaration
328 -- and package declaration are used to describe the
329 -- syntactic entity that includes the semicolon.
330
331 -- Specification always refers to the syntactic entity that is called
332 -- a specification. In particular, the terms procedure
333 -- specification, function specification, package
334 -- specification, subprogram specification always refer
335 -- to the syntactic entity that has no semicolon.
336
337 -- Spec is an informal term, used to refer to the entity
338 -- that is declared by a task declaration, protected
339 -- declaration, generic declaration, subprogram
340 -- declaration or package declaration.
341
342 -- This convention is followed throughout the GNAT documentation
343 -- both internal and external, and in all error message text.
344
345 ------------------------
346 -- Internal Use Nodes --
347 ------------------------
348
349 -- These are Node_Kind settings used in the internal implementation which
350 -- are not logically part of the specification.
351
352 -- N_Unused_At_Start
353 -- Completely unused entry at the start of the enumeration type. This
354 -- is inserted so that no legitimate value is zero, which helps to get
355 -- better debugging behavior, since zero is a likely uninitialized value).
356
357 -- N_Unused_At_End
358 -- Completely unused entry at the end of the enumeration type. This is
359 -- handy so that arrays with Node_Kind as the index type have an extra
360 -- entry at the end (see for example the use of the Pchar_Pos_Array in
361 -- Treepr, where the extra entry provides the limit value when dealing with
362 -- the last used entry in the array).
363
364 -----------------------------------------
365 -- Note on the settings of Sloc fields --
366 -----------------------------------------
367
368 -- The Sloc field of nodes that come from the source is set by the parser.
369 -- For internal nodes, and nodes generated during expansion the Sloc is
370 -- usually set in the call to the constructor for the node. In general the
371 -- Sloc value chosen for an internal node is the Sloc of the source node
372 -- whose processing is responsible for the expansion. For example, the Sloc
373 -- of an inherited primitive operation is the Sloc of the corresponding
374 -- derived type declaration.
375
376 -- For the nodes of a generic instantiation, the Sloc value is encoded to
377 -- represent both the original Sloc in the generic unit, and the Sloc of
378 -- the instantiation itself. See Sinput.ads for details.
379
380 -- Subprogram instances create two callable entities: one is the visible
381 -- subprogram instance, and the other is an anonymous subprogram nested
382 -- within a wrapper package that contains the renamings for the actuals.
383 -- Both of these entities have the Sloc of the defining entity in the
384 -- instantiation node. This simplifies some ASIS queries.
385
386 -----------------------
387 -- Field Definitions --
388 -----------------------
389
390 -- In the following node definitions, all fields, both syntactic and
391 -- semantic, are documented. The one exception is in the case of entities
392 -- (defining identifiers, character literals, and operator symbols), where
393 -- the usage of the fields depends on the entity kind. Entity fields are
394 -- fully documented in the separate package Einfo.
395
396 -- In the node definitions, three common sets of fields are abbreviated to
397 -- save both space in the documentation, and also space in the string
398 -- (defined in Tree_Print_Strings) used to print trees. The following
399 -- abbreviations are used:
400
401 -- Note: the utility program that creates the Treeprs spec (in the file
402 -- xtreeprs.adb) knows about the special fields here, so it must be
403 -- modified if any change is made to these fields.
404
405 -- "plus fields for binary operator"
406 -- Chars (Name1) Name_Id for the operator
407 -- Left_Opnd (Node2) left operand expression
408 -- Right_Opnd (Node3) right operand expression
409 -- Entity (Node4-Sem) defining entity for operator
410 -- Associated_Node (Node4-Sem) for generic processing
411 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
412 -- Has_Private_View (Flag11-Sem) set in generic units.
413
414 -- "plus fields for unary operator"
415 -- Chars (Name1) Name_Id for the operator
416 -- Right_Opnd (Node3) right operand expression
417 -- Entity (Node4-Sem) defining entity for operator
418 -- Associated_Node (Node4-Sem) for generic processing
419 -- Do_Overflow_Check (Flag17-Sem) set if overflow check needed
420 -- Has_Private_View (Flag11-Sem) set in generic units.
421
422 -- "plus fields for expression"
423 -- Paren_Count number of parentheses levels
424 -- Etype (Node5-Sem) type of the expression
425 -- Is_Overloaded (Flag5-Sem) >1 type interpretation exists
426 -- Is_Static_Expression (Flag6-Sem) set for static expression
427 -- Raises_Constraint_Error (Flag7-Sem) evaluation raises CE
428 -- Must_Not_Freeze (Flag8-Sem) set if must not freeze
429 -- Do_Range_Check (Flag9-Sem) set if a range check needed
430 -- Has_Dynamic_Length_Check (Flag10-Sem) set if length check inserted
431 -- Has_Dynamic_Range_Check (Flag12-Sem) set if range check inserted
432 -- Assignment_OK (Flag15-Sem) set if modification is OK
433 -- Is_Controlling_Actual (Flag16-Sem) set for controlling argument
434
435 -- Note: see under (EXPRESSION) for further details on the use of
436 -- the Paren_Count field to record the number of parentheses levels.
437
438 -- Node_Kind is the type used in the Nkind field to indicate the node kind.
439 -- The actual definition of this type is given later (the reason for this
440 -- is that we want the descriptions ordered by logical chapter in the RM,
441 -- but the type definition is reordered to facilitate the definition of
442 -- some subtype ranges. The individual descriptions of the nodes show how
443 -- the various fields are used in each node kind, as well as providing
444 -- logical names for the fields. Functions and procedures are provided for
445 -- accessing and setting these fields using these logical names.
446
447 -----------------------
448 -- Gigi Restrictions --
449 -----------------------
450
451 -- The tree passed to Gigi is more restricted than the general tree form.
452 -- For example, as a result of expansion, most of the tasking nodes can
453 -- never appear. For each node to which either a complete or partial
454 -- restriction applies, a note entitled "Gigi restriction" appears which
455 -- documents the restriction.
456
457 -- Note that most of these restrictions apply only to trees generated when
458 -- code is being generated, since they involved expander actions that
459 -- destroy the tree.
460
461 ---------------
462 -- ASIS Mode --
463 ---------------
464
465 -- When a file is compiled in ASIS mode (-gnatct), expansion is skipped,
466 -- and the analysis must generate a tree in a form that meets all ASIS
467 -- requirements.
468
469 -- ASIS must be able to recover the original tree that corresponds to the
470 -- source. It relies heavily on Original_Node for this purpose, which as
471 -- described in Atree, records the history when a node is rewritten. ASIS
472 -- uses Original_Node to recover the original node before the Rewrite.
473
474 -- At least in ASIS mode (not really important in non-ASIS mode), when
475 -- N1 is rewritten as N2:
476
477 -- The subtree rooted by the original node N1 should be fully decorated,
478 -- i.e. all semantic fields noted in sinfo.ads should be set properly
479 -- and any referenced entities should be complete (with exceptions for
480 -- representation information, noted below).
481
482 -- For all the direct descendants of N1 (original node) their Parent
483 -- links should point not to N1, but to N2 (rewriting node).
484
485 -- The Parent links of rewritten nodes (N1 in this example) are set in
486 -- some cases (to point to the rewritten parent), but in other cases
487 -- they are set to Empty. This needs sorting out ??? It would be much
488 -- cleaner if they could always be set in the original node ???
489
490 -- There are a few cases when ASIS has to use not the original, but the
491 -- rewritten tree structures. This happens when because of some important
492 -- technical reasons it is impossible or very hard to have the original
493 -- structure properly decorated by semantic information, and the rewritten
494 -- structure fully reproduces the original source. Below is the (incomplete
495 -- for the moment???) list of such exceptions:
496 --
497 -- Generic specifications and generic bodies
498 -- Function calls that use prefixed notation (Operand.Operation [(...)])
499
500 -- Representation Information
501
502 -- For the purposes of the data description annex, the representation
503 -- information for source declared entities must be complete in the
504 -- ASIS tree.
505
506 -- This requires that the front end call the back end (gigi/gcc) in
507 -- a special "back annotate only" mode to obtain information on layout
508 -- from the back end.
509
510 -- For the purposes of this special "back annotate only" mode, the
511 -- requirements that would normally need to be met to generate code
512 -- are relaxed as follows:
513
514 -- Anonymous types need not have full representation information (e.g.
515 -- sizes need not be set for types where the front end would normally
516 -- set the sizes), since anonymous types can be ignored in this mode.
517
518 -- In this mode, gigi will see at least fragments of a fully annotated
519 -- unexpanded tree. This means that it will encounter nodes it does
520 -- not normally handle (such as stubs, task bodies etc). It should
521 -- simply ignore these nodes, since they are not relevant to the task
522 -- of back annotating representation information.
523
524 -- Some other ASIS-specific issues are covered in specific comments in
525 -- sections for particular nodes or flags.
526
527 ----------------
528 -- Ghost Mode --
529 ----------------
530
531 -- The SPARK RM 6.9 defines two classes of constructs - Ghost entities and
532 -- Ghost statements. The intent of the feature is to treat Ghost constructs
533 -- as non-existent when Ghost assertion policy Ignore is in effect.
534 --
535 -- The corresponding nodes which map to Ghost constructs are:
536 --
537 -- Ghost entities
538 -- Declaration nodes
539 -- N_Package_Body
540 -- N_Subprogram_Body
541 --
542 -- Ghost statements
543 -- N_Assignment_Statement
544 -- N_Procedure_Call_Statement
545 -- N_Pragma
546 --
547 -- In addition, the compiler treats instantiations as Ghost entities
548 --
549 -- To achieve the removal of ignored Ghost constructs, the compiler relies
550 -- on global variables Ghost_Mode and Ignored_Ghost_Region, which comprise
551 -- a mechanism called "Ghost regions".
552 --
553 -- The values of Ghost_Mode are as follows:
554 --
555 -- 1. Check - All static semantics as defined in SPARK RM 6.9 are in
556 -- effect. The Ghost region has mode Check.
557 --
558 -- 2. Ignore - Same as Check, ignored Ghost code is not present in ALI
559 -- files, object files, and the final executable. The Ghost region
560 -- has mode Ignore.
561 --
562 -- 3. None - No Ghost region is in effect
563 --
564 -- The value of Ignored_Ghost_Region captures the node which initiates an
565 -- ignored Ghost region.
566 --
567 -- A Ghost region is a compiler operating mode, similar to Check_Syntax,
568 -- however a region is much more finely grained and depends on the policy
569 -- in effect. The region starts prior to the analysis of a Ghost construct
570 -- and ends immediately after its expansion. The region is established as
571 -- follows:
572 --
573 -- 1. Declarations - Prior to analysis, if the declaration is subject to
574 -- pragma Ghost.
575 --
576 -- 2. Renaming declarations - Same as 1) or when the renamed entity is
577 -- Ghost.
578 --
579 -- 3. Completing declarations - Same as 1) or when the declaration is
580 -- partially analyzed and the declaration completes a Ghost entity.
581 --
582 -- 4. N_Package_Body, N_Subprogram_Body - Same as 1) or when the body is
583 -- partially analyzed and completes a Ghost entity.
584 --
585 -- 5. N_Assignment_Statement - After the left hand side is analyzed and
586 -- references a Ghost entity.
587 --
588 -- 6. N_Procedure_Call_Statement - After the name is analyzed and denotes
589 -- a Ghost procedure.
590 --
591 -- 7. N_Pragma - During analysis, when the related entity is Ghost or the
592 -- pragma encloses a Ghost entity.
593 --
594 -- 8. Instantiations - Save as 1) or when the instantiation is partially
595 -- analyzed and the generic template is Ghost.
596 --
597 -- The following routines install a new Ghost region:
598 --
599 -- Install_Ghost_Region
600 -- Mark_And_Set_Ghost_xxx
601 -- Set_Ghost_Mode
602 --
603 -- The following routine ends a Ghost region:
604 --
605 -- Restore_Ghost_Region
606 --
607 -- A region may be reinstalled similarly to scopes for decoupled expansion
608 -- such as the generation of dispatch tables or the creation of a predicate
609 -- function.
610 --
611 -- If the mode of a Ghost region is Ignore, any newly created nodes as well
612 -- as source entities are marked as ignored Ghost. In additon, the marking
613 -- process signals all enclosing scopes that an ignored Ghost node resides
614 -- within. The compilation unit where the node resides is also added to an
615 -- auxiliary table for post processing.
616 --
617 -- After the analysis and expansion of all compilation units takes place
618 -- as well as the instantiation of all inlined [generic] bodies, the GNAT
619 -- driver initiates a separate pass which removes all ignored Ghost nodes
620 -- from all units stored in the auxiliary table.
621
622 --------------------
623 -- GNATprove Mode --
624 --------------------
625
626 -- When a file is compiled in GNATprove mode (-gnatd.F), a very light
627 -- expansion is performed and the analysis must generate a tree in a
628 -- form that meets additional requirements.
629
630 -- This light expansion does two transformations of the tree that cannot
631 -- be postponed till after semantic analysis:
632
633 -- 1. Replace object renamings by renamed object. This requires the
634 -- introduction of temporaries at the point of the renaming, which
635 -- must be properly analyzed.
636
637 -- 2. Fully qualify entity names. This is needed to generate suitable
638 -- local effects and call-graphs in ALI files, with the completely
639 -- qualified names (in particular the suffix to distinguish homonyms).
640
641 -- The tree after this light expansion should be fully analyzed
642 -- semantically, which sometimes requires the insertion of semantic
643 -- preanalysis, for example for subprogram contracts and pragma
644 -- check/assert. In particular, all expression must have their proper type,
645 -- and semantic links should be set between tree nodes (partial to full
646 -- view, etc.) Some kinds of nodes should be either absent, or can be
647 -- ignored by the formal verification backend:
648
649 -- N_Object_Renaming_Declaration: can be ignored safely
650 -- N_Expression_Function: absent (rewritten)
651 -- N_Expression_With_Actions: absent (not generated)
652
653 -- SPARK cross-references are generated from the regular cross-references
654 -- (used for browsing and code understanding) and additional references
655 -- collected during semantic analysis, in particular on all dereferences.
656 -- These SPARK cross-references are output in a separate section of ALI
657 -- files, as described in spark_xrefs.adb. They are the basis for the
658 -- computation of data dependences in GNATprove. This implies that all
659 -- cross-references should be generated in this mode, even those that would
660 -- not make sense from a user point-of-view, and that cross-references that
661 -- do not lead to data dependences for subprograms can be safely ignored.
662
663 -- GNATprove relies on the following front end behaviors:
664
665 -- 1. The first declarations in the list of visible declarations of
666 -- a package declaration for a generic instance, up to the first
667 -- declaration which comes from source, should correspond to
668 -- the "mappings nodes" between formal and actual generic parameters.
669
670 -- 2. In addition pragma Debug statements are removed from the tree
671 -- (rewritten to NULL stmt), since they should be ignored in formal
672 -- verification.
673
674 -- 3. An error is also issued for missing subunits, similar to the
675 -- warning issued when generating code, to avoid formal verification
676 -- of a partial unit.
677
678 -- 4. Unconstrained types are not replaced by constrained types whose
679 -- bounds are generated from an expression: Expand_Subtype_From_Expr
680 -- should be a no-op.
681
682 -- 5. Errors (instead of warnings) are issued on compile-time-known
683 -- constraint errors even though such cases do not correspond to
684 -- illegalities in the Ada RM (this is simply another case where
685 -- GNATprove implements a subset of the full language).
686 --
687 -- However, there are a few exceptions to this rule for cases where
688 -- we want to allow the GNATprove analysis to proceed (e.g. range
689 -- checks on empty ranges, which typically appear in deactivated
690 -- code in a particular configuration).
691
692 -- 6. Subtypes should match in the AST, even after a generic is
693 -- instantiated. In particular, GNATprove relies on the fact that,
694 -- on a selected component, the type of the selected component is
695 -- the type of the corresponding component in the prefix of the
696 -- selected component.
697 --
698 -- Note that, in some cases, we know that this rule is broken by the
699 -- frontend. In particular, if the selected component is a packed
700 -- array depending on a discriminant of a unconstrained formal object
701 -- parameter of a generic.
702
703 ----------------
704 -- SPARK Mode --
705 ----------------
706
707 -- The SPARK RM 1.6.5 defines a mode of operation called "SPARK mode" which
708 -- starts a scope where the SPARK language semantics are either On, Off, or
709 -- Auto, where Auto leaves the choice to the tools. A SPARK mode may be
710 -- specified by means of an aspect or a pragma.
711
712 -- The following entities may be subject to a SPARK mode. Entities marked
713 -- with * may possess two differente SPARK modes.
714
715 -- E_Entry
716 -- E_Entry_Family
717 -- E_Function
718 -- E_Generic_Function
719 -- E_Generic_Package *
720 -- E_Generic_Procedure
721 -- E_Operator
722 -- E_Package *
723 -- E_Package_Body *
724 -- E_Procedure
725 -- E_Protected_Body
726 -- E_Protected_Subtype
727 -- E_Protected_Type *
728 -- E_Subprogram_Body
729 -- E_Task_Body
730 -- E_Task_Subtype
731 -- E_Task_Type *
732 -- E_Variable
733
734 -- In order to manage SPARK scopes, the compiler relies on global variables
735 -- SPARK_Mode and SPARK_Mode_Pragma and a mechanism called "SPARK regions."
736 -- Routines Install_SPARK_Mode and Set_SPARK_Mode create a new SPARK region
737 -- and routine Restore_SPARK_Mode ends a SPARK region. A region may be
738 -- reinstalled similarly to scopes.
739
740 -----------------------
741 -- Check Flag Fields --
742 -----------------------
743
744 -- The following flag fields appear in expression nodes:
745
746 -- Do_Division_Check
747 -- Do_Overflow_Check
748 -- Do_Range_Check
749
750 -- These three flags are always set by the front end during semantic
751 -- analysis, on expression nodes that may trigger the corresponding
752 -- check. The front end then inserts or not the check during expansion. In
753 -- particular, these flags should also be correctly set in ASIS mode and
754 -- GNATprove mode. As a special case, the front end does not insert a
755 -- Do_Division_Check flag on float exponentiation expressions, for the case
756 -- where the value is 0.0 and the exponent is negative, although this case
757 -- does lead to a division check failure. As another special case,
758 -- the front end does not insert a Do_Range_Check on an allocator where
759 -- the designated type is scalar, and the designated type is more
760 -- constrained than the type of the initialized allocator value or the type
761 -- of the default value for an uninitialized allocator.
762
763 -- Note that the expander always takes care of the Do_Range_Check case, so
764 -- this flag will never be set in the expanded tree passed to the back end.
765 -- For the other two flags, the check can be generated either by the back
766 -- end or by the front end, depending on the setting of a target parameter.
767
768 -- Note that this accounts for all nodes that trigger the corresponding
769 -- checks, except for range checks on subtype_indications, which may be
770 -- required to check that a range_constraint is compatible with the given
771 -- subtype (RM 3.2.2(11)).
772
773 -- The following flag fields appear in various nodes:
774
775 -- Do_Accessibility_Check
776 -- Do_Discriminant_Check
777 -- Do_Length_Check
778 -- Do_Storage_Check
779 -- Do_Tag_Check
780
781 -- These flags are used in some specific cases by the front end, either
782 -- during semantic analysis or during expansion, and cannot be expected
783 -- to be set on all nodes that trigger the corresponding check.
784
785 ------------------------
786 -- Common Flag Fields --
787 ------------------------
788
789 -- The following flag fields appear in all nodes:
790
791 -- Analyzed
792 -- This flag is used to indicate that a node (and all its children) have
793 -- been analyzed. It is used to avoid reanalysis of a node that has
794 -- already been analyzed, both for efficiency and functional correctness
795 -- reasons.
796
797 -- Comes_From_Source
798 -- This flag is set if the node comes directly from an explicit construct
799 -- in the source. It is normally on for any nodes built by the scanner or
800 -- parser from the source program, with the exception that in a few cases
801 -- the parser adds nodes to normalize the representation (in particular
802 -- a null statement is added to a package body if there is no begin/end
803 -- initialization section.
804 --
805 -- Most nodes inserted by the analyzer or expander are not considered
806 -- as coming from source, so the flag is off for such nodes. In a few
807 -- cases, the expander constructs nodes closely equivalent to nodes
808 -- from the source program (e.g. the allocator built for build-in-place
809 -- case), and the Comes_From_Source flag is deliberately set.
810
811 -- Error_Posted
812 -- This flag is used to avoid multiple error messages being posted on or
813 -- referring to the same node. This flag is set if an error message
814 -- refers to a node or is posted on its source location, and has the
815 -- effect of inhibiting further messages involving this same node.
816
817 -----------------------
818 -- Modify_Tree_For_C --
819 -----------------------
820
821 -- If the flag Opt.Modify_Tree_For_C is set True, then the tree is modified
822 -- in ways that help match the semantics better with C, easing the task of
823 -- interfacing to C code generators (other than GCC, where the work is done
824 -- in gigi, and there is no point in changing that), and also making life
825 -- easier for Cprint in generating C source code.
826
827 -- The current modifications implemented are as follows:
828
829 -- N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic nodes
830 -- are eliminated from the tree (since these operations do not exist in
831 -- C), and the operations are rewritten in terms of logical shifts and
832 -- other logical operations that do exist in C. See Exp_Ch4 expansion
833 -- routines for these operators for details of the transformations made.
834
835 -- The right operand of N_Op_Shift_Right and N_Op_Shift_Left is always
836 -- less than the word size (since other values are not well-defined in
837 -- C). This is done using an explicit test if necessary.
838
839 -- Min and Max attributes are expanded into equivalent if expressions,
840 -- dealing properly with side effect issues.
841
842 -- Mod for signed integer types is expanded into equivalent expressions
843 -- using Rem (which is % in C) and other C-available operators.
844
845 -- Functions returning bounded arrays are transformed into procedures
846 -- with an extra out parameter, and the calls updated accordingly.
847
848 -- Aggregates are only kept unexpanded for object declarations, otherwise
849 -- they are systematically expanded into loops (for arrays) and
850 -- individual assignments (for records).
851
852 -- Unconstrained array types are handled by means of fat pointers.
853
854 -- Postconditions are inlined by the frontend since their body may have
855 -- references to itypes defined in the enclosing subprogram.
856
857 ------------------------------------
858 -- Description of Semantic Fields --
859 ------------------------------------
860
861 -- The meaning of the syntactic fields is generally clear from their names
862 -- without any further description, since the names are chosen to
863 -- correspond very closely to the syntax in the reference manual. This
864 -- section describes the usage of the semantic fields, which are used to
865 -- contain additional information determined during semantic analysis.
866
867 -- Accept_Handler_Records (List5-Sem)
868 -- This field is present only in an N_Accept_Alternative node. It is used
869 -- to temporarily hold the exception handler records from an accept
870 -- statement in a selective accept. These exception handlers will
871 -- eventually be placed in the Handler_Records list of the procedure
872 -- built for this accept (see Expand_N_Selective_Accept procedure in
873 -- Exp_Ch9 for further details).
874
875 -- Access_Types_To_Process (Elist2-Sem)
876 -- Present in N_Freeze_Entity nodes for Incomplete or private types.
877 -- Contains the list of access types which may require specific treatment
878 -- when the nature of the type completion is completely known. An example
879 -- of such treatment is the generation of the associated_final_chain.
880
881 -- Actions (List1-Sem)
882 -- This field contains a sequence of actions that are associated with the
883 -- node holding the field. See the individual node types for details of
884 -- how this field is used, as well as the description of the specific use
885 -- for a particular node type.
886
887 -- Activation_Chain_Entity (Node3-Sem)
888 -- This is used in tree nodes representing task activators (blocks,
889 -- subprogram bodies, package declarations, and task bodies). It is
890 -- initially Empty, and then gets set to point to the entity for the
891 -- declared Activation_Chain variable when the first task is declared.
892 -- When tasks are declared in the corresponding declarative region this
893 -- entity is located by name (its name is always _Chain) and the declared
894 -- tasks are added to the chain. Note that N_Extended_Return_Statement
895 -- does not have this attribute, although it does have an activation
896 -- chain. This chain is used to store the tasks temporarily, and is not
897 -- used for activating them. On successful completion of the return
898 -- statement, the tasks are moved to the caller's chain, and the caller
899 -- activates them.
900
901 -- Acts_As_Spec (Flag4-Sem)
902 -- A flag set in the N_Subprogram_Body node for a subprogram body which
903 -- is acting as its own spec. In the case of a library-level subprogram
904 -- the flag is set as well on the parent compilation unit node.
905
906 -- Actual_Designated_Subtype (Node4-Sem)
907 -- Present in N_Free_Statement and N_Explicit_Dereference nodes. If gigi
908 -- needs to known the dynamic constrained subtype of the designated
909 -- object, this attribute is set to that type. This is done for
910 -- N_Free_Statements for access-to-classwide types and access to
911 -- unconstrained packed array types, and for N_Explicit_Dereference when
912 -- the designated type is an unconstrained packed array and the
913 -- dereference is the prefix of a 'Size attribute reference.
914
915 -- Address_Warning_Posted (Flag18-Sem)
916 -- Present in N_Attribute_Definition nodes. Set to indicate that we have
917 -- posted a warning for the address clause regarding size or alignment
918 -- issues. Used to inhibit multiple redundant messages.
919
920 -- Aggregate_Bounds (Node3-Sem)
921 -- Present in array N_Aggregate nodes. If the bounds of the aggregate are
922 -- known at compile time, this field points to an N_Range node with those
923 -- bounds. Otherwise Empty.
924
925 -- Alloc_For_BIP_Return (Flag1-Sem)
926 -- Present in N_Allocator nodes. True if the allocator is one of those
927 -- generated for a build-in-place return statement.
928
929 -- All_Others (Flag11-Sem)
930 -- Present in an N_Others_Choice node. This flag is set for an others
931 -- exception where all exceptions are to be caught, even those that are
932 -- not normally handled (in particular the tasking abort signal). This
933 -- is used for translation of the at end handler into a normal exception
934 -- handler.
935
936 -- Aspect_On_Partial_View (Flag18)
937 -- Present on an N_Aspect_Specification node. For an aspect that applies
938 -- to a type entity, indicates whether the specification appears on the
939 -- partial view of a private type or extension. Undefined for aspects
940 -- that apply to other entities.
941
942 -- Aspect_Rep_Item (Node2-Sem)
943 -- Present in N_Aspect_Specification nodes. Points to the corresponding
944 -- pragma/attribute definition node used to process the aspect.
945
946 -- Assignment_OK (Flag15-Sem)
947 -- This flag is set in a subexpression node for an object, indicating
948 -- that the associated object can be modified, even if this would not
949 -- normally be permissible (either by direct assignment, or by being
950 -- passed as an out or in-out parameter). This is used by the expander
951 -- for a number of purposes, including initialization of constants and
952 -- limited type objects (such as tasks), setting discriminant fields,
953 -- setting tag values, etc. N_Object_Declaration nodes also have this
954 -- flag defined. Here it is used to indicate that an initialization
955 -- expression is valid, even where it would normally not be allowed
956 -- (e.g. where the type involved is limited). It is also used to stop
957 -- a Force_Evaluation call for an unchecked conversion, but this usage
958 -- is unclear and not documented ???
959
960 -- Associated_Node (Node4-Sem)
961 -- Present in nodes that can denote an entity: identifiers, character
962 -- literals, operator symbols, expanded names, operator nodes, and
963 -- attribute reference nodes (all these nodes have an Entity field).
964 -- This field is also present in N_Aggregate, N_Selected_Component, and
965 -- N_Extension_Aggregate nodes. This field is used in generic processing
966 -- to create links between the generic template and the generic copy.
967 -- See Sem_Ch12.Get_Associated_Node for full details. Note that this
968 -- field overlaps Entity, which is fine, since, as explained in Sem_Ch12,
969 -- the normal function of Entity is not required at the point where the
970 -- Associated_Node is set. Note also, that in generic templates, this
971 -- means that the Entity field does not necessarily point to an Entity.
972 -- Since the back end is expected to ignore generic templates, this is
973 -- harmless.
974
975 -- Atomic_Sync_Required (Flag14-Sem)
976 -- This flag is set on a node for which atomic synchronization is
977 -- required for the corresponding reference or modification.
978
979 -- At_End_Proc (Node1)
980 -- This field is present in an N_Handled_Sequence_Of_Statements node.
981 -- It contains an identifier reference for the cleanup procedure to be
982 -- called. See description of this node for further details.
983
984 -- Backwards_OK (Flag6-Sem)
985 -- A flag present in the N_Assignment_Statement node. It is used only
986 -- if the type being assigned is an array type, and is set if analysis
987 -- determines that it is definitely safe to do the copy backwards, i.e.
988 -- starting at the highest addressed element. This is the case if either
989 -- the operands do not overlap, or they may overlap, but if they do,
990 -- then the left operand is at a higher address than the right operand.
991 --
992 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
993 -- means that the front end could not determine that either direction is
994 -- definitely safe, and a runtime check may be required if the backend
995 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
996 -- set, it means that the front end can assure no overlap of operands.
997
998 -- Body_To_Inline (Node3-Sem)
999 -- Present in subprogram declarations. Denotes analyzed but unexpanded
1000 -- body of subprogram, to be used when inlining calls. Present when the
1001 -- subprogram has an Inline pragma and inlining is enabled. If the
1002 -- declaration is completed by a renaming_as_body, and the renamed entity
1003 -- is a subprogram, the Body_To_Inline is the name of that entity, which
1004 -- is used directly in later calls to the original subprogram.
1005
1006 -- Body_Required (Flag13-Sem)
1007 -- A flag that appears in the N_Compilation_Unit node indicating that
1008 -- the corresponding unit requires a body. For the package case, this
1009 -- indicates that a completion is required. In Ada 95, if the flag is not
1010 -- set for the package case, then a body may not be present. In Ada 83,
1011 -- if the flag is not set for the package case, then body is optional.
1012 -- For a subprogram declaration, the flag is set except in the case where
1013 -- a pragma Import or Interface applies, in which case no body is
1014 -- permitted (in Ada 83 or Ada 95).
1015
1016 -- By_Ref (Flag5-Sem)
1017 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement,
1018 -- this flag is set when the returned expression is already allocated on
1019 -- the secondary stack and thus the result is passed by reference rather
1020 -- than copied another time.
1021
1022 -- Cleanup_Actions (List5-Sem)
1023 -- Present in block statements created for transient blocks, contains
1024 -- additional cleanup actions carried over from the transient scope.
1025
1026 -- Check_Address_Alignment (Flag11-Sem)
1027 -- A flag present in N_Attribute_Definition clause for a 'Address
1028 -- attribute definition. This flag is set if a dynamic check should be
1029 -- generated at the freeze point for the entity to which this address
1030 -- clause applies. The reason that we need this flag is that we want to
1031 -- check for range checks being suppressed at the point where the
1032 -- attribute definition clause is given, rather than testing this at the
1033 -- freeze point.
1034
1035 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
1036 -- Present in N_Simple_Return_Statement nodes. True if this node was
1037 -- constructed as part of the N_Extended_Return_Statement expansion.
1038
1039 -- Compile_Time_Known_Aggregate (Flag18-Sem)
1040 -- Present in N_Aggregate nodes. Set for aggregates which can be fully
1041 -- evaluated at compile time without raising constraint error. Such
1042 -- aggregates can be passed as is to the back end without any expansion.
1043 -- See Exp_Aggr for specific conditions under which this flag gets set.
1044
1045 -- Componentwise_Assignment (Flag14-Sem)
1046 -- Present in N_Assignment_Statement nodes. Set for a record assignment
1047 -- where all that needs doing is to expand it into component-by-component
1048 -- assignments. This is used internally for the case of tagged types with
1049 -- rep clauses, where we need to avoid recursion (we don't want to try to
1050 -- generate a call to the primitive operation, because this is the case
1051 -- where we are compiling the primitive operation). Note that when we are
1052 -- expanding component assignments in this case, we never assign the _tag
1053 -- field, but we recursively assign components of the parent type.
1054
1055 -- Condition_Actions (List3-Sem)
1056 -- This field appears in else-if nodes and in the iteration scheme node
1057 -- for while loops. This field is only used during semantic processing to
1058 -- temporarily hold actions inserted into the tree. In the tree passed
1059 -- to gigi, the condition actions field is always set to No_List. For
1060 -- details on how this field is used, see the routine Insert_Actions in
1061 -- package Exp_Util, and also the expansion routines for the relevant
1062 -- nodes.
1063
1064 -- Context_Pending (Flag16-Sem)
1065 -- This field appears in Compilation_Unit nodes, to indicate that the
1066 -- context of the unit is being compiled. Used to detect circularities
1067 -- that are not otherwise detected by the loading mechanism. Such
1068 -- circularities can occur in the presence of limited and non-limited
1069 -- with_clauses that mention the same units.
1070
1071 -- Controlling_Argument (Node1-Sem)
1072 -- This field is set in procedure and function call nodes if the call
1073 -- is a dispatching call (it is Empty for a non-dispatching call). It
1074 -- indicates the source of the call's controlling tag. For procedure
1075 -- calls, the Controlling_Argument is one of the actuals. For function
1076 -- that has a dispatching result, it is an entity in the context of the
1077 -- call that can provide a tag, or else it is the tag of the root type
1078 -- of the class. It can also specify a tag directly rather than being a
1079 -- tagged object. The latter is needed by the implementations of AI-239
1080 -- and AI-260.
1081
1082 -- Conversion_OK (Flag14-Sem)
1083 -- A flag set on type conversion nodes to indicate that the conversion
1084 -- is to be considered as being valid, even though it is the case that
1085 -- the conversion is not valid Ada. This is used for attributes Enum_Rep,
1086 -- Fixed_Value and Integer_Value, for internal conversions done for
1087 -- fixed-point operations, and for certain conversions for calls to
1088 -- initialization procedures. If Conversion_OK is set, then Etype must be
1089 -- set (the analyzer assumes that Etype has been set). For the case of
1090 -- fixed-point operands, it also indicates that the conversion is to be
1091 -- direct conversion of the underlying integer result, with no regard to
1092 -- the small operand.
1093
1094 -- Convert_To_Return_False (Flag13-Sem)
1095 -- Present in N_Raise_Expression nodes that appear in the body of the
1096 -- special predicateM function used to test a predicate in the context
1097 -- of a membership test, where raise expression results in returning a
1098 -- value of False rather than raising an exception.
1099
1100 -- Corresponding_Aspect (Node3-Sem)
1101 -- Present in N_Pragma node. Used to point back to the source aspect from
1102 -- the corresponding pragma. This field is Empty for source pragmas.
1103
1104 -- Corresponding_Body (Node5-Sem)
1105 -- This field is set in subprogram declarations, package declarations,
1106 -- entry declarations of protected types, and in generic units. It points
1107 -- to the defining entity for the corresponding body (NOT the node for
1108 -- the body itself).
1109
1110 -- Corresponding_Formal_Spec (Node3-Sem)
1111 -- This field is set in subprogram renaming declarations, where it points
1112 -- to the defining entity for a formal subprogram in the case where the
1113 -- renaming corresponds to a generic formal subprogram association in an
1114 -- instantiation. The field is Empty if the renaming does not correspond
1115 -- to such a formal association.
1116
1117 -- Corresponding_Generic_Association (Node5-Sem)
1118 -- This field is defined for object declarations and object renaming
1119 -- declarations. It is set for the declarations within an instance that
1120 -- map generic formals to their actuals. If set, the field points either
1121 -- to a copy of a default expression for an actual of mode IN or to a
1122 -- generic_association which is the original parent of the expression or
1123 -- name appearing in the declaration. This simplifies ASIS and GNATprove
1124 -- queries.
1125
1126 -- Corresponding_Integer_Value (Uint4-Sem)
1127 -- This field is set in real literals of fixed-point types (it is not
1128 -- used for floating-point types). It contains the integer value used
1129 -- to represent the fixed-point value. It is also set on the universal
1130 -- real literals used to represent bounds of fixed-point base types
1131 -- and their first named subtypes.
1132
1133 -- Corresponding_Spec (Node5-Sem)
1134 -- This field is set in subprogram, package, task, and protected body
1135 -- nodes, where it points to the defining entity in the corresponding
1136 -- spec. The attribute is also set in N_With_Clause nodes where it points
1137 -- to the defining entity for the with'ed spec, and in a subprogram
1138 -- renaming declaration when it is a Renaming_As_Body. The field is Empty
1139 -- if there is no corresponding spec, as in the case of a subprogram body
1140 -- that serves as its own spec.
1141 --
1142 -- In Ada 2012, Corresponding_Spec is set on expression functions that
1143 -- complete a subprogram declaration.
1144
1145 -- Corresponding_Spec_Of_Stub (Node2-Sem)
1146 -- This field is present in subprogram, package, task, and protected body
1147 -- stubs where it points to the corresponding spec of the stub. Due to
1148 -- clashes in the structure of nodes, we cannot use Corresponding_Spec.
1149
1150 -- Corresponding_Stub (Node3-Sem)
1151 -- This field is present in an N_Subunit node. It holds the node in
1152 -- the parent unit that is the stub declaration for the subunit. It is
1153 -- set when analysis of the stub forces loading of the proper body. If
1154 -- expansion of the proper body creates new declarative nodes, they are
1155 -- inserted at the point of the corresponding_stub.
1156
1157 -- Dcheck_Function (Node5-Sem)
1158 -- This field is present in an N_Variant node, It references the entity
1159 -- for the discriminant checking function for the variant.
1160
1161 -- Default_Expression (Node5-Sem)
1162 -- This field is Empty if there is no default expression. If there is a
1163 -- simple default expression (one with no side effects), then this field
1164 -- simply contains a copy of the Expression field (both point to the tree
1165 -- for the default expression). Default_Expression is used for
1166 -- conformance checking.
1167
1168 -- Default_Storage_Pool (Node3-Sem)
1169 -- This field is present in N_Compilation_Unit_Aux nodes. It is set to a
1170 -- copy of Opt.Default_Pool at the end of the compilation unit. See
1171 -- package Opt for details. This is used for inheriting the
1172 -- Default_Storage_Pool in child units.
1173
1174 -- Discr_Check_Funcs_Built (Flag11-Sem)
1175 -- This flag is present in N_Full_Type_Declaration nodes. It is set when
1176 -- discriminant checking functions are constructed. The purpose is to
1177 -- avoid attempting to set these functions more than once.
1178
1179 -- Do_Accessibility_Check (Flag13-Sem)
1180 -- This flag is set on N_Parameter_Specification nodes to indicate
1181 -- that an accessibility check is required for the parameter. It is
1182 -- not yet decided who takes care of this check (TBD ???).
1183
1184 -- Do_Discriminant_Check (Flag3-Sem)
1185 -- This flag is set on N_Selected_Component nodes to indicate that a
1186 -- discriminant check is required using the discriminant check routine
1187 -- associated with the selector. The actual check is generated by the
1188 -- expander when processing selected components. In the case of
1189 -- Unchecked_Union, the flag is also set, but no discriminant check
1190 -- routine is associated with the selector, and the expander does not
1191 -- generate a check. This flag is also present in assignment statements
1192 -- (and set if the assignment requires a discriminant check), and in type
1193 -- conversion nodes (and set if the conversion requires a check).
1194
1195 -- Do_Division_Check (Flag13-Sem)
1196 -- This flag is set on a division operator (/ mod rem) to indicate that
1197 -- a zero divide check is required. The actual check is either dealt with
1198 -- by the back end if Backend_Divide_Checks is set to true, or by the
1199 -- front end itself if it is set to false.
1200
1201 -- Do_Length_Check (Flag4-Sem)
1202 -- This flag is set in an N_Assignment_Statement, N_Op_And, N_Op_Or,
1203 -- N_Op_Xor, or N_Type_Conversion node to indicate that a length check
1204 -- is required. It is not determined who deals with this flag (???).
1205
1206 -- Do_Overflow_Check (Flag17-Sem)
1207 -- This flag is set on an operator where an overflow check is required on
1208 -- the operation. The actual check is either dealt with by the back end
1209 -- if Backend_Overflow_Checks is set to true, or by the front end itself
1210 -- if it is set to false. The other cases where this flag is used is on a
1211 -- Type_Conversion node as well on if and case expression nodes.
1212 -- For a type conversion, it means that the conversion is from one base
1213 -- type to another, and the value may not fit in the target base type.
1214 -- See also the description of Do_Range_Check for this case. This flag is
1215 -- also set on if and case expression nodes if we are operating in either
1216 -- MINIMIZED or ELIMINATED overflow checking mode (to make sure that we
1217 -- properly process overflow checking for dependent expressions).
1218
1219 -- Do_Range_Check (Flag9-Sem)
1220 -- This flag is set on an expression which appears in a context where a
1221 -- range check is required. The target type is clear from the context.
1222 -- The contexts in which this flag can appear are the following:
1223
1224 -- Right side of an assignment. In this case the target type is taken
1225 -- from the left side of the assignment, which is referenced by the
1226 -- Name of the N_Assignment_Statement node.
1227
1228 -- Subscript expressions in an indexed component. In this case the
1229 -- target type is determined from the type of the array, which is
1230 -- referenced by the Prefix of the N_Indexed_Component node.
1231
1232 -- Argument expression for a parameter, appearing either directly in
1233 -- the Parameter_Associations list of a call or as the Expression of an
1234 -- N_Parameter_Association node that appears in this list. In either
1235 -- case, the check is against the type of the formal. Note that the
1236 -- flag is relevant only in IN and IN OUT parameters, and will be
1237 -- ignored for OUT parameters, where no check is required in the call,
1238 -- and if a check is required on the return, it is generated explicitly
1239 -- with a type conversion.
1240
1241 -- Initialization expression for the initial value in an object
1242 -- declaration. In this case the Do_Range_Check flag is set on
1243 -- the initialization expression, and the check is against the
1244 -- range of the type of the object being declared. This includes the
1245 -- cases of expressions providing default discriminant values, and
1246 -- expressions used to initialize record components.
1247
1248 -- The expression of a type conversion. In this case the range check is
1249 -- against the target type of the conversion. See also the use of
1250 -- Do_Overflow_Check on a type conversion. The distinction is that the
1251 -- overflow check protects against a value that is outside the range of
1252 -- the target base type, whereas a range check checks that the
1253 -- resulting value (which is a value of the base type of the target
1254 -- type), satisfies the range constraint of the target type.
1255
1256 -- Note: when a range check is required in contexts other than those
1257 -- listed above (e.g. in a return statement), an additional type
1258 -- conversion node is introduced to represent the required check.
1259
1260 -- Do_Storage_Check (Flag17-Sem)
1261 -- This flag is set in an N_Allocator node to indicate that a storage
1262 -- check is required for the allocation, or in an N_Subprogram_Body node
1263 -- to indicate that a stack check is required in the subprogram prologue.
1264 -- The N_Allocator case is handled by the routine that expands the call
1265 -- to the runtime routine. The N_Subprogram_Body case is handled by the
1266 -- backend, and all the semantics does is set the flag.
1267
1268 -- Do_Tag_Check (Flag13-Sem)
1269 -- This flag is set on an N_Assignment_Statement, N_Function_Call,
1270 -- N_Procedure_Call_Statement, N_Type_Conversion,
1271 -- N_Simple_Return_Statement, or N_Extended_Return_Statement
1272 -- node to indicate that the tag check can be suppressed. It is not
1273 -- yet decided how this flag is used (TBD ???).
1274
1275 -- Elaborate_Present (Flag4-Sem)
1276 -- This flag is set in the N_With_Clause node to indicate that pragma
1277 -- Elaborate pragma appears for the with'ed units.
1278
1279 -- Elaborate_All_Desirable (Flag9-Sem)
1280 -- This flag is set in the N_With_Clause mode to indicate that the static
1281 -- elaboration processing has determined that an Elaborate_All pragma is
1282 -- desirable for correct elaboration for this unit.
1283
1284 -- Elaborate_All_Present (Flag14-Sem)
1285 -- This flag is set in the N_With_Clause node to indicate that a
1286 -- pragma Elaborate_All pragma appears for the with'ed units.
1287
1288 -- Elaborate_Desirable (Flag11-Sem)
1289 -- This flag is set in the N_With_Clause mode to indicate that the static
1290 -- elaboration processing has determined that an Elaborate pragma is
1291 -- desirable for correct elaboration for this unit.
1292
1293 -- Else_Actions (List3-Sem)
1294 -- This field is present in if expression nodes. During code
1295 -- expansion we use the Insert_Actions procedure (in Exp_Util) to insert
1296 -- actions at an appropriate place in the tree to get elaborated at the
1297 -- right time. For if expressions, we have to be sure that the actions
1298 -- for the Else branch are only elaborated if the condition is False.
1299 -- The Else_Actions field is used as a temporary parking place for
1300 -- these actions. The final tree is always rewritten to eliminate the
1301 -- need for this field, so in the tree passed to Gigi, this field is
1302 -- always set to No_List.
1303
1304 -- Enclosing_Variant (Node2-Sem)
1305 -- This field is present in the N_Variant node and identifies the Node_Id
1306 -- corresponding to the immediately enclosing variant when the variant is
1307 -- nested, and N_Empty otherwise. Set during semantic processing of the
1308 -- variant part of a record type.
1309
1310 -- Entity (Node4-Sem)
1311 -- Appears in all direct names (identifiers, character literals, and
1312 -- operator symbols), as well as expanded names, and attributes that
1313 -- denote entities, such as 'Class. Points to entity for corresponding
1314 -- defining occurrence. Set after name resolution. For identifiers in a
1315 -- WITH list, the corresponding defining occurrence is in a separately
1316 -- compiled file, and Entity must be set by the library Load procedure.
1317 --
1318 -- Note: During name resolution, the value in Entity may be temporarily
1319 -- incorrect (e.g. during overload resolution, Entity is initially set to
1320 -- the first possible correct interpretation, and then later modified if
1321 -- necessary to contain the correct value after resolution).
1322 --
1323 -- Note: This field overlaps Associated_Node, which is used during
1324 -- generic processing (see Sem_Ch12 for details). Note also that in
1325 -- generic templates, this means that the Entity field does not always
1326 -- point to an Entity. Since the back end is expected to ignore generic
1327 -- templates, this is harmless.
1328 --
1329 -- Note: This field also appears in N_Attribute_Definition_Clause nodes.
1330 -- It is used only for stream attributes definition clauses. In this
1331 -- case, it denotes a (possibly dummy) subprogram entity that is declared
1332 -- conceptually at the point of the clause. Thus the visibility of the
1333 -- attribute definition clause (in the sense of 8.3(23) as amended by
1334 -- AI-195) can be checked by testing the visibility of that subprogram.
1335 --
1336 -- Note: Normally the Entity field of an identifier points to the entity
1337 -- for the corresponding defining identifier, and hence the Chars field
1338 -- of an identifier will match the Chars field of the entity. However,
1339 -- there is no requirement that these match, and there are obscure cases
1340 -- of generated code where they do not match.
1341
1342 -- Note: Ada 2012 aspect specifications require additional links between
1343 -- identifiers and various attributes. These attributes can be of
1344 -- arbitrary types, and the entity field of identifiers that denote
1345 -- aspects must be used to store arbitrary expressions for later semantic
1346 -- checks. See section on aspect specifications for details.
1347
1348 -- Entity_Or_Associated_Node (Node4-Sem)
1349 -- A synonym for both Entity and Associated_Node. Used by convention in
1350 -- the code when referencing this field in cases where it is not known
1351 -- whether the field contains an Entity or an Associated_Node.
1352
1353 -- Etype (Node5-Sem)
1354 -- Appears in all expression nodes, all direct names, and all entities.
1355 -- Points to the entity for the related type. Set after type resolution.
1356 -- Normally this is the actual subtype of the expression. However, in
1357 -- certain contexts such as the right side of an assignment, subscripts,
1358 -- arguments to calls, returned value in a function, initial value etc.
1359 -- it is the desired target type. In the event that this is different
1360 -- from the actual type, the Do_Range_Check flag will be set if a range
1361 -- check is required. Note: if the Is_Overloaded flag is set, then Etype
1362 -- points to an essentially arbitrary choice from the possible set of
1363 -- types.
1364
1365 -- Exception_Junk (Flag8-Sem)
1366 -- This flag is set in a various nodes appearing in a statement sequence
1367 -- to indicate that the corresponding node is an artifact of the
1368 -- generated code for exception handling, and should be ignored when
1369 -- analyzing the control flow of the relevant sequence of statements
1370 -- (e.g. to check that it does not end with a bad return statement).
1371
1372 -- Exception_Label (Node5-Sem)
1373 -- Appears in N_Push_xxx_Label nodes. Points to the entity of the label
1374 -- to be used for transforming the corresponding exception into a goto,
1375 -- or contains Empty, if this exception is not to be transformed. Also
1376 -- appears in N_Exception_Handler nodes, where, if set, it indicates
1377 -- that there may be a local raise for the handler, so that expansion
1378 -- to allow a goto is required (and this field contains the label for
1379 -- this goto). See Exp_Ch11.Expand_Local_Exception_Handlers for details.
1380
1381 -- Expansion_Delayed (Flag11-Sem)
1382 -- Set on aggregates and extension aggregates that need a top-down rather
1383 -- than bottom-up expansion. Typically aggregate expansion happens bottom
1384 -- up. For nested aggregates the expansion is delayed until the enclosing
1385 -- aggregate itself is expanded, e.g. in the context of a declaration. To
1386 -- delay it we set this flag. This is done to avoid creating a temporary
1387 -- for each level of a nested aggregate, and also to prevent the
1388 -- premature generation of constraint checks. This is also a requirement
1389 -- if we want to generate the proper attachment to the internal????
1390 -- finalization lists (for record with controlled components). Top down
1391 -- expansion of aggregates is also used for in-place array aggregate
1392 -- assignment or initialization. When the full context is known, the
1393 -- target of the assignment or initialization is used to generate the
1394 -- left-hand side of individual assignment to each sub-component.
1395
1396 -- Expression_Copy (Node2-Sem)
1397 -- Present in N_Pragma_Argument_Association nodes. Contains a copy of the
1398 -- original expression. This field is best used to store pragma-dependent
1399 -- modifications performed on the original expression such as replacement
1400 -- of the current type instance or substitutions of primitives.
1401
1402 -- First_Inlined_Subprogram (Node3-Sem)
1403 -- Present in the N_Compilation_Unit node for the main program. Points
1404 -- to a chain of entities for subprograms that are to be inlined. The
1405 -- Next_Inlined_Subprogram field of these entities is used as a link
1406 -- pointer with Empty marking the end of the list. This field is Empty
1407 -- if there are no inlined subprograms or inlining is not active.
1408
1409 -- First_Named_Actual (Node4-Sem)
1410 -- Present in procedure call statement and function call nodes, and also
1411 -- in Intrinsic nodes. Set during semantic analysis to point to the first
1412 -- named parameter where parameters are ordered by declaration order (as
1413 -- opposed to the actual order in the call which may be different due to
1414 -- named associations). Note: this field points to the explicit actual
1415 -- parameter itself, not the N_Parameter_Association node (its parent).
1416
1417 -- First_Real_Statement (Node2-Sem)
1418 -- Present in N_Handled_Sequence_Of_Statements node. Normally set to
1419 -- Empty. Used only when declarations are moved into the statement part
1420 -- of a construct as a result of wrapping an AT END handler that is
1421 -- required to cover the declarations. In this case, this field is used
1422 -- to remember the location in the statements list of the first real
1423 -- statement, i.e. the statement that used to be first in the statement
1424 -- list before the declarations were prepended.
1425
1426 -- First_Subtype_Link (Node5-Sem)
1427 -- Present in N_Freeze_Entity node for an anonymous base type that is
1428 -- implicitly created by the declaration of a first subtype. It points
1429 -- to the entity for the first subtype.
1430
1431 -- Float_Truncate (Flag11-Sem)
1432 -- A flag present in type conversion nodes. This is used for float to
1433 -- integer conversions where truncation is required rather than rounding.
1434
1435 -- Forwards_OK (Flag5-Sem)
1436 -- A flag present in the N_Assignment_Statement node. It is used only
1437 -- if the type being assigned is an array type, and is set if analysis
1438 -- determines that it is definitely safe to do the copy forwards, i.e.
1439 -- starting at the lowest addressed element. This is the case if either
1440 -- the operands do not overlap, or they may overlap, but if they do,
1441 -- then the left operand is at a lower address than the right operand.
1442 --
1443 -- Note: If neither of the flags Forwards_OK or Backwards_OK is set, it
1444 -- means that the front end could not determine that either direction is
1445 -- definitely safe, and a runtime check may be required if the backend
1446 -- cannot figure it out. If both flags Forwards_OK and Backwards_OK are
1447 -- set, it means that the front end can assure no overlap of operands.
1448
1449 -- From_Aspect_Specification (Flag13-Sem)
1450 -- Processing of aspect specifications typically results in insertion in
1451 -- the tree of corresponding pragma or attribute definition clause nodes.
1452 -- These generated nodes have the From_Aspect_Specification flag set to
1453 -- indicate that they came from aspect specifications originally.
1454
1455 -- From_At_End (Flag4-Sem)
1456 -- This flag is set on an N_Raise_Statement node if it corresponds to
1457 -- the reraise statement generated as the last statement of an AT END
1458 -- handler when SJLJ exception handling is active. It is used to stop
1459 -- a bogus violation of restriction (No_Exception_Propagation), bogus
1460 -- because if the restriction is set, the reraise is not generated.
1461
1462 -- From_At_Mod (Flag4-Sem)
1463 -- This flag is set on the attribute definition clause node that is
1464 -- generated by a transformation of an at mod phrase in a record
1465 -- representation clause. This is used to give slightly different (Ada 83
1466 -- compatible) semantics to such a clause, namely it is used to specify a
1467 -- minimum acceptable alignment for the base type and all subtypes. In
1468 -- Ada 95 terms, the actual alignment of the base type and all subtypes
1469 -- must be a multiple of the given value, and the representation clause
1470 -- is considered to be type specific instead of subtype specific.
1471
1472 -- From_Conditional_Expression (Flag1-Sem)
1473 -- This flag is set on if and case statements generated by the expansion
1474 -- of if and case expressions respectively. The flag is used to suppress
1475 -- any finalization of controlled objects found within these statements.
1476
1477 -- From_Default (Flag6-Sem)
1478 -- This flag is set on the subprogram renaming declaration created in an
1479 -- instance for a formal subprogram, when the formal is declared with a
1480 -- box, and there is no explicit actual. If the flag is present, the
1481 -- declaration is treated as an implicit reference to the formal in the
1482 -- ali file.
1483
1484 -- Generalized_Indexing (Node4-Sem)
1485 -- Present in N_Indexed_Component nodes. Set for Indexed_Component nodes
1486 -- that are Ada 2012 container indexing operations. The value of the
1487 -- attribute is a function call (possibly dereferenced) that corresponds
1488 -- to the proper expansion of the source indexing operation. Before
1489 -- expansion, the source node is rewritten as the resolved generalized
1490 -- indexing. In ASIS mode, the expansion does not take place, so that
1491 -- the source is preserved and properly annotated with types.
1492
1493 -- Generic_Parent (Node5-Sem)
1494 -- Generic_Parent is defined on declaration nodes that are instances. The
1495 -- value of Generic_Parent is the generic entity from which the instance
1496 -- is obtained.
1497
1498 -- Generic_Parent_Type (Node4-Sem)
1499 -- Generic_Parent_Type is defined on Subtype_Declaration nodes for the
1500 -- actuals of formal private and derived types. Within the instance, the
1501 -- operations on the actual are those inherited from the parent. For a
1502 -- formal private type, the parent type is the generic type itself. The
1503 -- Generic_Parent_Type is also used in an instance to determine whether a
1504 -- private operation overrides an inherited one.
1505
1506 -- Handler_List_Entry (Node2-Sem)
1507 -- This field is present in N_Object_Declaration nodes. It is set only
1508 -- for the Handler_Record entry generated for an exception in zero cost
1509 -- exception handling mode. It references the corresponding item in the
1510 -- handler list, and is used to delete this entry if the corresponding
1511 -- handler is deleted during optimization. For further details on why
1512 -- this is required, see Exp_Ch11.Remove_Handler_Entries.
1513
1514 -- Has_Dereference_Action (Flag13-Sem)
1515 -- This flag is present in N_Explicit_Dereference nodes. It is set to
1516 -- indicate that the expansion has aready produced a call to primitive
1517 -- Dereference of a System.Checked_Pools.Checked_Pool implementation.
1518 -- Such dereference actions are produced for debugging purposes.
1519
1520 -- Has_Dynamic_Length_Check (Flag10-Sem)
1521 -- This flag is present in all expression nodes. It is set to indicate
1522 -- that one of the routines in unit Checks has generated a length check
1523 -- action which has been inserted at the flagged node. This is used to
1524 -- avoid the generation of duplicate checks.
1525
1526 -- Has_Dynamic_Range_Check (Flag12-Sem)
1527 -- This flag is present in N_Subtype_Declaration nodes and on all
1528 -- expression nodes. It is set to indicate that one of the routines in
1529 -- unit Checks has generated a range check action which has been inserted
1530 -- at the flagged node. This is used to avoid the generation of duplicate
1531 -- checks. Why does this occur on N_Subtype_Declaration nodes, what does
1532 -- it mean in that context???
1533
1534 -- Has_Local_Raise (Flag8-Sem)
1535 -- Present in exception handler nodes. Set if the handler can be entered
1536 -- via a local raise that gets transformed to a goto statement. This will
1537 -- always be set if Local_Raise_Statements is non-empty, but can also be
1538 -- set as a result of generation of N_Raise_xxx nodes, or flags set in
1539 -- nodes requiring generation of back end checks.
1540
1541 -- Has_No_Elaboration_Code (Flag17-Sem)
1542 -- A flag that appears in the N_Compilation_Unit node to indicate whether
1543 -- or not elaboration code is present for this unit. It is initially set
1544 -- true for subprogram specs and bodies and for all generic units and
1545 -- false for non-generic package specs and bodies. Gigi may set the flag
1546 -- in the non-generic package case if it determines that no elaboration
1547 -- code is generated. Note that this flag is not related to the
1548 -- Is_Preelaborated status, there can be preelaborated packages that
1549 -- generate elaboration code, and non-preelaborated packages which do
1550 -- not generate elaboration code.
1551
1552 -- Has_Pragma_Suppress_All (Flag14-Sem)
1553 -- This flag is set in an N_Compilation_Unit node if the Suppress_All
1554 -- pragma appears anywhere in the unit. This accommodates the rather
1555 -- strange placement rules of other compilers (DEC permits it at the
1556 -- end of a unit, and Rational allows it as a program unit pragma). We
1557 -- allow it anywhere at all, and consider it equivalent to a pragma
1558 -- Suppress (All_Checks) appearing at the start of the configuration
1559 -- pragmas for the unit.
1560
1561 -- Has_Private_View (Flag11-Sem)
1562 -- A flag present in generic nodes that have an entity, to indicate that
1563 -- the node has a private type. Used to exchange private and full
1564 -- declarations if the visibility at instantiation is different from the
1565 -- visibility at generic definition.
1566
1567 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
1568 -- A flag present in N_Subprogram_Body and N_Task_Definition nodes to
1569 -- flag the presence of a pragma Relative_Deadline.
1570
1571 -- Has_Self_Reference (Flag13-Sem)
1572 -- Present in N_Aggregate and N_Extension_Aggregate. Indicates that one
1573 -- of the expressions contains an access attribute reference to the
1574 -- enclosing type. Such a self-reference can only appear in default-
1575 -- initialized aggregate for a record type.
1576
1577 -- Has_SP_Choice (Flag15-Sem)
1578 -- Present in all nodes containing a Discrete_Choices field (N_Variant,
1579 -- N_Case_Expression_Alternative, N_Case_Statement_Alternative). Set to
1580 -- True if the Discrete_Choices list has at least one occurrence of a
1581 -- statically predicated subtype.
1582
1583 -- Has_Storage_Size_Pragma (Flag5-Sem)
1584 -- A flag present in an N_Task_Definition node to flag the presence of a
1585 -- Storage_Size pragma.
1586
1587 -- Has_Target_Names (Flag8-Sem)
1588 -- Present in assignment statements. Indicates that the RHS contains
1589 -- target names (see AI12-0125-3) and must be expanded accordingly.
1590
1591 -- Has_Wide_Character (Flag11-Sem)
1592 -- Present in string literals, set if any wide character (i.e. character
1593 -- code outside the Character range but within Wide_Character range)
1594 -- appears in the string. Used to implement pragma preference rules.
1595
1596 -- Has_Wide_Wide_Character (Flag13-Sem)
1597 -- Present in string literals, set if any wide character (i.e. character
1598 -- code outside the Wide_Character range) appears in the string. Used to
1599 -- implement pragma preference rules.
1600
1601 -- Header_Size_Added (Flag11-Sem)
1602 -- Present in N_Attribute_Reference nodes, set only for attribute
1603 -- Max_Size_In_Storage_Elements. The flag indicates that the size of the
1604 -- hidden list header used by the runtime finalization support has been
1605 -- added to the size of the prefix. The flag also prevents the infinite
1606 -- expansion of the same attribute in the said context.
1607
1608 -- Hidden_By_Use_Clause (Elist5-Sem)
1609 -- An entity list present in use clauses that appear within
1610 -- instantiations. For the resolution of local entities, entities
1611 -- introduced by these use clauses have priority over global ones,
1612 -- and outer entities must be explicitly hidden/restored on exit.
1613
1614 -- Implicit_With (Flag16-Sem)
1615 -- Present in N_With_Clause nodes. The flag indicates that the clause
1616 -- does not comes from source and introduces an implicit dependency on
1617 -- a particular unit. Such implicit with clauses are generated by:
1618 --
1619 -- * ABE mechanism - The static elaboration model of both the default
1620 -- and the legacy ABE mechanism use with clauses to encode implicit
1621 -- Elaborate[_All] pragmas.
1622 --
1623 -- * Analysis - A with clause for child unit A.B.C is equivalent to
1624 -- a series of clauses that with A, A.B, and A.B.C. Manipulation of
1625 -- contexts utilizes implicit with clauses to emulate the visibility
1626 -- of a particular unit.
1627 --
1628 -- * RTSfind - The compiler generates code which references entities
1629 -- from the runtime.
1630
1631 -- Import_Interface_Present (Flag16-Sem)
1632 -- This flag is set in an Interface or Import pragma if a matching
1633 -- pragma of the other kind is also present. This is used to avoid
1634 -- generating some unwanted error messages.
1635
1636 -- Includes_Infinities (Flag11-Sem)
1637 -- This flag is present in N_Range nodes. It is set for the range of
1638 -- unconstrained float types defined in Standard, which include not only
1639 -- the given range of values, but also legitimately can include infinite
1640 -- values. This flag is false for any float type for which an explicit
1641 -- range is given by the programmer, even if that range is identical to
1642 -- the range for Float.
1643
1644 -- Incomplete_View (Node2-Sem)
1645 -- Present in full type declarations that are completions of incomplete
1646 -- type declarations. Denotes the corresponding incomplete type
1647 -- declaration. Used to simplify the retrieval of primitive operations
1648 -- that may be declared between the partial and the full view of an
1649 -- untagged type.
1650
1651 -- Inherited_Discriminant (Flag13-Sem)
1652 -- This flag is present in N_Component_Association nodes. It indicates
1653 -- that a given component association in an extension aggregate is the
1654 -- value obtained from a constraint on an ancestor. Used to prevent
1655 -- double expansion when the aggregate has expansion delayed.
1656
1657 -- Instance_Spec (Node5-Sem)
1658 -- This field is present in generic instantiation nodes, and also in
1659 -- formal package declaration nodes (formal package declarations are
1660 -- treated in a manner very similar to package instantiations). It points
1661 -- to the node for the spec of the instance, inserted as part of the
1662 -- semantic processing for instantiations in Sem_Ch12.
1663
1664 -- Is_Abort_Block (Flag4-Sem)
1665 -- Present in N_Block_Statement nodes. True if the block protects a list
1666 -- of statements with an Abort_Defer / Abort_Undefer_Direct pair.
1667
1668 -- Is_Accessibility_Actual (Flag13-Sem)
1669 -- Present in N_Parameter_Association nodes. True if the parameter is
1670 -- an extra actual that carries the accessibility level of the actual
1671 -- for an access parameter, in a function that dispatches on result and
1672 -- is called in a dispatching context. Used to prevent a formal/actual
1673 -- mismatch when the call is rewritten as a dispatching call.
1674
1675 -- Is_Analyzed_Pragma (Flag5-Sem)
1676 -- Present in N_Pragma nodes. Set for delayed pragmas that require a two
1677 -- step analysis. The initial step is peformed by routine Analyze_Pragma
1678 -- and verifies the overall legality of the pragma. The second step takes
1679 -- place in the various Analyze_xxx_In_Decl_Part routines which perform
1680 -- full analysis. The flag prevents the reanalysis of a delayed pragma.
1681
1682 -- Is_Asynchronous_Call_Block (Flag7-Sem)
1683 -- A flag set in a Block_Statement node to indicate that it is the
1684 -- expansion of an asynchronous entry call. Such a block needs cleanup
1685 -- handler to assure that the call is cancelled.
1686
1687 -- Is_Boolean_Aspect (Flag16-Sem)
1688 -- Present in N_Aspect_Specification node. Set if the aspect is for a
1689 -- boolean aspect (i.e. Aspect_Id is in Boolean_Aspect subtype).
1690
1691 -- Is_Checked (Flag11-Sem)
1692 -- Present in N_Aspect_Specification and N_Pragma nodes. Set for an
1693 -- assertion aspect or pragma, or check pragma for an assertion, that
1694 -- is to be checked at run time. If either Is_Checked or Is_Ignored
1695 -- is set (they cannot both be set), then this means that the status of
1696 -- the pragma has been checked at the appropriate point and should not
1697 -- be further modified (in some cases these flags are copied when a
1698 -- pragma is rewritten).
1699
1700 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
1701 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1702 -- related to a checked Ghost entity or encloses a checked Ghost entity.
1703 -- This flag has no relation to Is_Checked.
1704
1705 -- Is_Component_Left_Opnd (Flag13-Sem)
1706 -- Is_Component_Right_Opnd (Flag14-Sem)
1707 -- Present in concatenation nodes, to indicate that the corresponding
1708 -- operand is of the component type of the result. Used in resolving
1709 -- concatenation nodes in instances.
1710
1711 -- Is_Controlling_Actual (Flag16-Sem)
1712 -- This flag is set on an expression that is a controlling argument in
1713 -- a dispatching call. It is off in all other cases. See Sem_Disp for
1714 -- details of its use.
1715
1716 -- Is_Declaration_Level_Node (Flag5-Sem)
1717 -- Present in call marker and instantiation nodes. Set when the constuct
1718 -- appears within the declarations of a block statement, an entry body,
1719 -- a subprogram body, or a task body. The flag aids the ABE Processing
1720 -- phase to catch certain forms of guaranteed ABEs.
1721
1722 -- Is_Delayed_Aspect (Flag14-Sem)
1723 -- Present in N_Pragma and N_Attribute_Definition_Clause nodes which
1724 -- come from aspect specifications, where the evaluation of the aspect
1725 -- must be delayed to the freeze point. This flag is also set True in
1726 -- the corresponding N_Aspect_Specification node.
1727
1728 -- Is_Disabled (Flag15-Sem)
1729 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1730 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1731 -- a Debug_Policy pragma that resulted in totally disabling the flagged
1732 -- aspect or policy as a result of using the GNAT-defined policy DISABLE.
1733 -- If this flag is set, the aspect or policy is not analyzed for semantic
1734 -- correctness, so any expressions etc will not be marked as analyzed.
1735
1736 -- Is_Dispatching_Call (Flag6-Sem)
1737 -- Present in call marker nodes. Set when the related call which prompted
1738 -- the creation of the marker is dispatching.
1739
1740 -- Is_Dynamic_Coextension (Flag18-Sem)
1741 -- Present in allocator nodes, to indicate that this is an allocator
1742 -- for an access discriminant of a dynamically allocated object. The
1743 -- coextension must be deallocated and finalized at the same time as
1744 -- the enclosing object. The partner flag Is_Static_Coextension must
1745 -- be cleared before setting this flag to True.
1746
1747 -- Is_Effective_Use_Clause (Flag1-Sem)
1748 -- Present in both N_Use_Type_Clause and N_Use_Package_Clause to indicate
1749 -- a use clause is "used" in the current source.
1750
1751 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
1752 -- Present in the following nodes:
1753 --
1754 -- assignment statement
1755 -- attribute reference
1756 -- call marker
1757 -- entry call statement
1758 -- expanded name
1759 -- function call
1760 -- function instantiation
1761 -- identifier
1762 -- package instantiation
1763 -- procedure call statement
1764 -- procedure instantiation
1765 -- requeue statement
1766 -- variable reference marker
1767 --
1768 -- Set when the node appears within a context which allows the generation
1769 -- of run-time ABE checks. This flag detemines whether the ABE Processing
1770 -- phase generates conditional ABE checks and guaranteed ABE failures.
1771
1772 -- Is_Elaboration_Code (Flag9-Sem)
1773 -- Present in assignment statements. Set for an assignment which updates
1774 -- the elaboration flag of a package or subprogram when the corresponding
1775 -- body is successfully elaborated.
1776
1777 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
1778 -- Present in the following nodes:
1779 --
1780 -- attribute reference
1781 -- call marker
1782 -- entry call statement
1783 -- expanded name
1784 -- function call
1785 -- function instantiation
1786 -- identifier
1787 -- package instantiation
1788 -- procedure call statement
1789 -- procedure instantiation
1790 -- requeue statement
1791 -- variable reference marker
1792 --
1793 -- Set when the node appears within a context where elaboration warnings
1794 -- are enabled. This flag determines whether the ABE processing phase
1795 -- generates diagnostics on various elaboration issues.
1796
1797 -- Is_Entry_Barrier_Function (Flag8-Sem)
1798 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
1799 -- nodes which emulate the barrier function of a protected entry body.
1800 -- The flag is used when checking for incorrect use of Current_Task.
1801
1802 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
1803 -- This flag is set in an N_Function_Call node to indicate that the extra
1804 -- actuals to support a build-in-place style of call have been added to
1805 -- the call.
1806
1807 -- Is_Expanded_Contract (Flag1-Sem)
1808 -- Present in N_Contract nodes. Set if the contract has already undergone
1809 -- expansion activities.
1810
1811 -- Is_Finalization_Wrapper (Flag9-Sem)
1812 -- This flag is present in N_Block_Statement nodes. It is set when the
1813 -- block acts as a wrapper of a handled construct which has controlled
1814 -- objects. The wrapper prevents interference between exception handlers
1815 -- and At_End handlers.
1816
1817 -- Is_Generic_Contract_Pragma (Flag2-Sem)
1818 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1819 -- a source construct, applies to a generic unit or its body, and denotes
1820 -- one of the following contract-related annotations:
1821 -- Abstract_State
1822 -- Contract_Cases
1823 -- Depends
1824 -- Extensions_Visible
1825 -- Global
1826 -- Initial_Condition
1827 -- Initializes
1828 -- Post
1829 -- Post_Class
1830 -- Postcondition
1831 -- Pre
1832 -- Pre_Class
1833 -- Precondition
1834 -- Refined_Depends
1835 -- Refined_Global
1836 -- Refined_Post
1837 -- Refined_State
1838 -- Test_Case
1839
1840 -- Is_Homogeneous_Aggregate (Flag14)
1841 -- A flag set on an Ada 2020 aggregate that uses square brackets as
1842 -- delimiters, and thus denotes an array or container aggregate, or
1843 -- the prefix of a reduction attribute.
1844
1845 -- Is_Ignored (Flag9-Sem)
1846 -- A flag set in an N_Aspect_Specification or N_Pragma node if there was
1847 -- a Check_Policy or Assertion_Policy (or in the case of a Debug_Pragma)
1848 -- a Debug_Policy pragma that specified a policy of IGNORE, DISABLE, or
1849 -- OFF, for the pragma/aspect. If there was a Policy pragma specifying
1850 -- a Policy of ON or CHECK, then this flag is reset. If no Policy pragma
1851 -- gives a policy for the aspect or pragma, then there are two cases. For
1852 -- an assertion aspect or pragma (one of the assertion kinds allowed in
1853 -- an Assertion_Policy pragma), then Is_Ignored is set if assertions are
1854 -- ignored because of the absence of a -gnata switch. For any other
1855 -- aspects or pragmas, the flag is off. If this flag is set, the
1856 -- aspect/pragma is fully analyzed and checked for other syntactic
1857 -- and semantic errors, but it does not have any semantic effect.
1858
1859 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
1860 -- This flag is present in N_Pragma nodes. It is set when the pragma is
1861 -- related to an ignored Ghost entity or encloses ignored Ghost entity.
1862 -- This flag has no relation to Is_Ignored.
1863
1864 -- Is_In_Discriminant_Check (Flag11-Sem)
1865 -- This flag is present in a selected component, and is used to indicate
1866 -- that the reference occurs within a discriminant check. The
1867 -- significance is that optimizations based on assuming that the
1868 -- discriminant check has a correct value cannot be performed in this
1869 -- case (or the discriminant check may be optimized away).
1870
1871 -- Is_Inherited_Pragma (Flag4-Sem)
1872 -- This flag is set in an N_Pragma node that appears in a N_Contract node
1873 -- to indicate that the pragma has been inherited from a parent context.
1874
1875 -- Is_Initialization_Block (Flag1-Sem)
1876 -- Defined in block nodes. Set when the block statement was created by
1877 -- the finalization machinery to wrap initialization statements. This
1878 -- flag aids the ABE Processing phase to suppress the diagnostics of
1879 -- finalization actions in initialization contexts.
1880
1881 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
1882 -- NOTE: this flag is shared between the legacy ABE mechanism and the
1883 -- default ABE mechanism.
1884 --
1885 -- Present in the following nodes:
1886 --
1887 -- call marker
1888 -- formal package declaration
1889 -- function call
1890 -- function instantiation
1891 -- package instantiation
1892 -- procedure call statement
1893 -- procedure instantiation
1894 --
1895 -- Set when the elaboration or evaluation of the scenario results in
1896 -- a guaranteed ABE. The flag is used to suppress the instantiation of
1897 -- generic bodies because gigi cannot handle certain forms of premature
1898 -- instantiation, as well as to prevent the reexamination of the node by
1899 -- the ABE Processing phase.
1900
1901 -- Is_Machine_Number (Flag11-Sem)
1902 -- This flag is set in an N_Real_Literal node to indicate that the value
1903 -- is a machine number. This avoids some unnecessary cases of converting
1904 -- real literals to machine numbers.
1905
1906 -- Is_Null_Loop (Flag16-Sem)
1907 -- This flag is set in an N_Loop_Statement node if the corresponding loop
1908 -- can be determined to be null at compile time. This is used to remove
1909 -- the loop entirely at expansion time.
1910
1911 -- Is_OpenAcc_Environment (Flag13-Sem)
1912 -- This flag is set in an N_Loop_Statement node if it contains an
1913 -- Acc_Data, Acc_Parallel or Add_Kernels pragma.
1914
1915 -- Is_OpenAcc_Loop (Flag14-Sem)
1916 -- This flag is set in an N_Loop_Statement node if it contains an
1917 -- OpenAcc_Loop pragma.
1918
1919 -- Is_Overloaded (Flag5-Sem)
1920 -- A flag present in all expression nodes. Used temporarily during
1921 -- overloading determination. The setting of this flag is not relevant
1922 -- once overloading analysis is complete.
1923
1924 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
1925 -- A flag present only in N_Op_Expon nodes. It is set when the
1926 -- exponentiation is of the form 2 ** N, where the type of N is an
1927 -- unsigned integral subtype whose size does not exceed the size of
1928 -- Standard_Integer (i.e. a type that can be safely converted to
1929 -- Natural), and the exponentiation appears as the right operand of an
1930 -- integer multiplication or an integer division where the dividend is
1931 -- unsigned. It is also required that overflow checking is off for both
1932 -- the exponentiation and the multiply/divide node. If this set of
1933 -- conditions holds, and the flag is set, then the division or
1934 -- multiplication can be (and is) converted to a shift.
1935
1936 -- Is_Prefixed_Call (Flag17-Sem)
1937 -- This flag is set in a selected component within a generic unit, if
1938 -- it resolves to a prefixed call to a primitive operation. The flag
1939 -- is used to prevent accidental overloadings in an instance, when a
1940 -- primitive operation and a private record component may be homographs.
1941
1942 -- Is_Protected_Subprogram_Body (Flag7-Sem)
1943 -- A flag set in a Subprogram_Body block to indicate that it is the
1944 -- implementation of a protected subprogram. Such a body needs cleanup
1945 -- handler to make sure that the associated protected object is unlocked
1946 -- when the subprogram completes.
1947
1948 -- Is_Qualified_Universal_Literal (Flag4-Sem)
1949 -- Present in N_Qualified_Expression nodes. Set when the qualification is
1950 -- converting a universal literal to a specific type. Such qualifiers aid
1951 -- the resolution of accidental overloading of binary or unary operators
1952 -- which may occur in instances.
1953
1954 -- Is_Read (Flag4-Sem)
1955 -- Present in variable reference markers. Set when the original variable
1956 -- reference constitues a read of the variable.
1957
1958 -- Is_Source_Call (Flag4-Sem)
1959 -- Present in call marker nodes. Set when the related call came from
1960 -- source.
1961
1962 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
1963 -- Present in the following nodes:
1964 --
1965 -- assignment statement
1966 -- attribute reference
1967 -- call marker
1968 -- entry call statement
1969 -- expanded name
1970 -- function call
1971 -- function instantiation
1972 -- identifier
1973 -- package instantiation
1974 -- procedure call statement
1975 -- procedure instantiation
1976 -- requeue statement
1977 -- variable reference marker
1978 --
1979 -- Set when the node appears within a context subject to SPARK_Mode On.
1980 -- This flag determines when the SPARK model of elaboration be activated
1981 -- by the ABE Processing phase.
1982
1983 -- Is_Static_Coextension (Flag14-Sem)
1984 -- Present in N_Allocator nodes. Set if the allocator is a coextension
1985 -- of an object allocated on the stack rather than the heap. The partner
1986 -- flag Is_Dynamic_Coextension must be cleared before setting this flag
1987 -- to True.
1988
1989 -- Is_Static_Expression (Flag6-Sem)
1990 -- Indicates that an expression is a static expression according to the
1991 -- rules in RM-4.9. See Sem_Eval for details.
1992
1993 -- Is_Subprogram_Descriptor (Flag16-Sem)
1994 -- Present in N_Object_Declaration, and set only for the object
1995 -- declaration generated for a subprogram descriptor in fast exception
1996 -- mode. See Exp_Ch11 for details of use.
1997
1998 -- Is_Task_Allocation_Block (Flag6-Sem)
1999 -- A flag set in a Block_Statement node to indicate that it is the
2000 -- expansion of a task allocator, or the allocator of an object
2001 -- containing tasks. Such a block requires a cleanup handler to call
2002 -- Expunge_Unactivated_Tasks to complete any tasks that have been
2003 -- allocated but not activated when the allocator completes abnormally.
2004
2005 -- Is_Task_Body_Procedure (Flag1-Sem)
2006 -- This flag is set on N_Subprogram_Declaration and N_Subprogram_Body
2007 -- nodes which emulate the body of a task unit.
2008
2009 -- Is_Task_Master (Flag5-Sem)
2010 -- A flag set in a Subprogram_Body, Block_Statement, or Task_Body node to
2011 -- indicate that the construct is a task master (i.e. has declared tasks
2012 -- or declares an access to a task type).
2013
2014 -- Is_Write (Flag5-Sem)
2015 -- Present in variable reference markers. Set when the original variable
2016 -- reference constitues a write of the variable.
2017
2018 -- Itype (Node1-Sem)
2019 -- Used in N_Itype_Reference node to reference an itype for which it is
2020 -- important to ensure that it is defined. See description of this node
2021 -- for further details.
2022
2023 -- Kill_Range_Check (Flag11-Sem)
2024 -- Used in an N_Unchecked_Type_Conversion node to indicate that the
2025 -- result should not be subjected to range checks. This is used for the
2026 -- implementation of Normalize_Scalars.
2027
2028 -- Label_Construct (Node2-Sem)
2029 -- Used in an N_Implicit_Label_Declaration node. Refers to an N_Label,
2030 -- N_Block_Statement or N_Loop_Statement node to which the label
2031 -- declaration applies. This attribute is used both in the compiler and
2032 -- in the implementation of ASIS queries. The field is left empty for the
2033 -- special labels generated as part of expanding raise statements with a
2034 -- local exception handler.
2035
2036 -- Library_Unit (Node4-Sem)
2037 -- In a stub node, Library_Unit points to the compilation unit node of
2038 -- the corresponding subunit.
2039 --
2040 -- In a with clause node, Library_Unit points to the spec of the with'ed
2041 -- unit.
2042 --
2043 -- In a compilation unit node, the usage depends on the unit type:
2044 --
2045 -- For a library unit body, Library_Unit points to the compilation unit
2046 -- node of the corresponding spec, unless it's a subprogram body with
2047 -- Acts_As_Spec set, in which case it points to itself.
2048 --
2049 -- For a spec, Library_Unit points to the compilation unit node of the
2050 -- corresponding body, if present. The body will be present if the spec
2051 -- is or contains generics that we needed to instantiate. Similarly, the
2052 -- body will be present if we needed it for inlining purposes. Thus, if
2053 -- we have a spec/body pair, both of which are present, they point to
2054 -- each other via Library_Unit.
2055 --
2056 -- For a subunit, Library_Unit points to the compilation unit node of
2057 -- the parent body.
2058 -- ??? not (always) true, in (at least some, maybe all?) cases it points
2059 -- to the corresponding spec for the parent body.
2060 --
2061 -- Note that this field is not used to hold the parent pointer for child
2062 -- unit (which might in any case need to use it for some other purpose as
2063 -- described above). Instead for a child unit, implicit with's are
2064 -- generated for all parents.
2065
2066 -- Local_Raise_Statements (Elist1)
2067 -- This field is present in exception handler nodes. It is set to
2068 -- No_Elist in the normal case. If there is at least one raise statement
2069 -- which can potentially be handled as a local raise, then this field
2070 -- points to a list of raise nodes, which are calls to a routine to raise
2071 -- an exception. These are raise nodes which can be optimized into gotos
2072 -- if the handler turns out to meet the conditions which permit this
2073 -- transformation. Note that this does NOT include instances of the
2074 -- N_Raise_xxx_Error nodes since the transformation of these nodes is
2075 -- handled by the back end (using the N_Push/N_Pop mechanism).
2076
2077 -- Loop_Actions (List2-Sem)
2078 -- A list present in Component_Association nodes in array aggregates.
2079 -- Used to collect actions that must be executed within the loop because
2080 -- they may need to be evaluated anew each time through.
2081
2082 -- Limited_View_Installed (Flag18-Sem)
2083 -- Present in With_Clauses and in package specifications. If set on
2084 -- with_clause, it indicates that this clause has created the current
2085 -- limited view of the designated package. On a package specification, it
2086 -- indicates that the limited view has already been created because the
2087 -- package is mentioned in a limited_with_clause in the closure of the
2088 -- unit being compiled.
2089
2090 -- Local_Raise_Not_OK (Flag7-Sem)
2091 -- Present in N_Exception_Handler nodes. Set if the handler contains
2092 -- a construct (reraise statement, or call to subprogram in package
2093 -- GNAT.Current_Exception) that makes the handler unsuitable as a target
2094 -- for a local raise (one that could otherwise be converted to a goto).
2095
2096 -- Must_Be_Byte_Aligned (Flag14-Sem)
2097 -- This flag is present in N_Attribute_Reference nodes. It can be set
2098 -- only for the Address and Unrestricted_Access attributes. If set it
2099 -- means that the object for which the address/access is given must be on
2100 -- a byte (more accurately a storage unit) boundary. If necessary, a copy
2101 -- of the object is to be made before taking the address (this copy is in
2102 -- the current scope on the stack frame). This is used for certain cases
2103 -- of code generated by the expander that passes parameters by address.
2104 --
2105 -- The reason the copy is not made by the front end is that the back end
2106 -- has more information about type layout and may be able to (but is not
2107 -- guaranteed to) prevent making unnecessary copies.
2108
2109 -- Must_Not_Freeze (Flag8-Sem)
2110 -- A flag present in all expression nodes. Normally expressions cause
2111 -- freezing as described in the RM. If this flag is set, then this is
2112 -- inhibited. This is used by the analyzer and expander to label nodes
2113 -- that are created by semantic analysis or expansion and which must not
2114 -- cause freezing even though they normally would. This flag is also
2115 -- present in an N_Subtype_Indication node, since we also use these in
2116 -- calls to Freeze_Expression.
2117
2118 -- Next_Entity (Node2-Sem)
2119 -- Present in defining identifiers, defining character literals, and
2120 -- defining operator symbols (i.e. in all entities). The entities of a
2121 -- scope are chained, and this field is used as the forward pointer for
2122 -- this list. See Einfo for further details.
2123
2124 -- Next_Exit_Statement (Node3-Sem)
2125 -- Present in N_Exit_Statement nodes. The exit statements for a loop are
2126 -- chained (in reverse order of appearance) from the First_Exit_Statement
2127 -- field of the E_Loop entity for the loop. Next_Exit_Statement points to
2128 -- the next entry on this chain (Empty = end of list).
2129
2130 -- Next_Implicit_With (Node3-Sem)
2131 -- Present in N_With_Clause. Part of a chain of with_clauses generated
2132 -- in rtsfind to indicate implicit dependencies on predefined units. Used
2133 -- to prevent multiple with_clauses for the same unit in a given context.
2134 -- A postorder traversal of the tree whose nodes are units and whose
2135 -- links are with_clauses defines the order in which CodePeer must
2136 -- examine a compiled unit and its full context. This ordering ensures
2137 -- that any subprogram call is examined after the subprogram declaration
2138 -- has been seen.
2139
2140 -- Next_Named_Actual (Node4-Sem)
2141 -- Present in parameter association nodes. Set during semantic analysis
2142 -- to point to the next named parameter, where parameters are ordered by
2143 -- declaration order (as opposed to the actual order in the call, which
2144 -- may be different due to named associations). Not that this field
2145 -- points to the explicit actual parameter itself, not to the
2146 -- N_Parameter_Association node (its parent).
2147
2148 -- Next_Pragma (Node1-Sem)
2149 -- Present in N_Pragma nodes. Used to create a linked list of pragma
2150 -- nodes. Currently used for two purposes:
2151 --
2152 -- Create a list of linked Check_Policy pragmas. The head of this list
2153 -- is stored in Opt.Check_Policy_List (which has further details).
2154 --
2155 -- Used by processing for Pre/Postcondition pragmas to store a list of
2156 -- pragmas associated with the spec of a subprogram (see Sem_Prag for
2157 -- details).
2158 --
2159 -- Used by processing for pragma SPARK_Mode to store multiple pragmas
2160 -- the apply to the same construct. These are visible/private mode for
2161 -- a package spec and declarative/statement mode for package body.
2162
2163 -- Next_Rep_Item (Node5-Sem)
2164 -- Present in pragma nodes, attribute definition nodes, enumeration rep
2165 -- clauses, record rep clauses, aspect specification nodes. Used to link
2166 -- representation items that apply to an entity. See full description of
2167 -- First_Rep_Item field in Einfo for further details.
2168
2169 -- Next_Use_Clause (Node3-Sem)
2170 -- While use clauses are active during semantic processing, they are
2171 -- chained from the scope stack entry, using Next_Use_Clause as a link
2172 -- pointer, with Empty marking the end of the list. The head pointer is
2173 -- in the scope stack entry (First_Use_Clause). At the end of semantic
2174 -- processing (i.e. when Gigi sees the tree, the contents of this field
2175 -- is undefined and should not be read).
2176
2177 -- No_Ctrl_Actions (Flag7-Sem)
2178 -- Present in N_Assignment_Statement to indicate that no Finalize nor
2179 -- Adjust should take place on this assignment even though the RHS is
2180 -- controlled. Also indicates that the primitive _assign should not be
2181 -- used for a tagged assignment. This is used in init procs and aggregate
2182 -- expansions where the generated assignments are initializations, not
2183 -- real assignments.
2184
2185 -- No_Elaboration_Check (Flag4-Sem)
2186 -- NOTE: this flag is relevant only for the legacy ABE mechanism and
2187 -- should not be used outside of that context.
2188 --
2189 -- Present in N_Function_Call and N_Procedure_Call_Statement. Indicates
2190 -- that no elaboration check is needed on the call, because it appears in
2191 -- the context of a local Suppress pragma. This is used on calls within
2192 -- task bodies, where the actual elaboration checks are applied after
2193 -- analysis, when the local scope stack is not present
2194
2195 -- No_Entities_Ref_In_Spec (Flag8-Sem)
2196 -- Present in N_With_Clause nodes. Set if the with clause is on the
2197 -- package or subprogram spec where the main unit is the corresponding
2198 -- body, and no entities of the with'ed unit are referenced by the spec
2199 -- (an entity may still be referenced in the body, so this flag is used
2200 -- to generate the proper message (see Sem_Util.Check_Unused_Withs for
2201 -- full details).
2202
2203 -- No_Initialization (Flag13-Sem)
2204 -- Present in N_Object_Declaration and N_Allocator to indicate that the
2205 -- object must not be initialized (by Initialize or call to an init
2206 -- proc). This is needed for controlled aggregates. When the Object
2207 -- declaration has an expression, this flag means that this expression
2208 -- should not be taken into account (needed for in place initialization
2209 -- with aggregates, and for object with an address clause, which are
2210 -- initialized with an assignment at freeze time).
2211
2212 -- No_Minimize_Eliminate (Flag17-Sem)
2213 -- This flag is present in membership operator nodes (N_In/N_Not_In).
2214 -- It is used to indicate that processing for extended overflow checking
2215 -- modes is not required (this is used to prevent infinite recursion).
2216
2217 -- No_Side_Effect_Removal (Flag17-Sem)
2218 -- Present in N_Function_Call nodes. Set when a function call does not
2219 -- require side effect removal. This attribute suppresses the generation
2220 -- of a temporary to capture the result of the function which eventually
2221 -- replaces the function call.
2222
2223 -- No_Truncation (Flag17-Sem)
2224 -- Present in N_Unchecked_Type_Conversion node. This flag has an effect
2225 -- only if the RM_Size of the source is greater than the RM_Size of the
2226 -- target for scalar operands. Normally in such a case we truncate some
2227 -- higher order bits of the source, and then sign/zero extend the result
2228 -- to form the output value. But if this flag is set, then we do not do
2229 -- any truncation, so for example, if an 8 bit input is converted to 5
2230 -- bit result which is in fact stored in 8 bits, then the high order
2231 -- three bits of the target result will be copied from the source. This
2232 -- is used for properly setting out of range values for use by pragmas
2233 -- Initialize_Scalars and Normalize_Scalars.
2234
2235 -- Null_Excluding_Subtype (Flag16)
2236 -- Present in N_Access_To_Object_Definition. Indicates that the subtype
2237 -- indication carries a null-exclusion indicator, which is distinct from
2238 -- the null-exclusion indicator that may precede the access keyword.
2239
2240 -- Original_Discriminant (Node2-Sem)
2241 -- Present in identifiers. Used in references to discriminants that
2242 -- appear in generic units. Because the names of the discriminants may be
2243 -- different in an instance, we use this field to recover the position of
2244 -- the discriminant in the original type, and replace it with the
2245 -- discriminant at the same position in the instantiated type.
2246
2247 -- Original_Entity (Node2-Sem)
2248 -- Present in numeric literals. Used to denote the named number that has
2249 -- been constant-folded into the given literal. If literal is from
2250 -- source, or the result of some other constant-folding operation, then
2251 -- Original_Entity is empty. This field is needed to handle properly
2252 -- named numbers in generic units, where the Associated_Node field
2253 -- interferes with the Entity field, making it impossible to preserve the
2254 -- original entity at the point of instantiation (ASIS problem).
2255
2256 -- Others_Discrete_Choices (List1-Sem)
2257 -- When a case statement or variant is analyzed, the semantic checks
2258 -- determine the actual list of choices that correspond to an others
2259 -- choice. This list is materialized for later use by the expander and
2260 -- the Others_Discrete_Choices field of an N_Others_Choice node points to
2261 -- this materialized list of choices, which is in standard format for a
2262 -- list of discrete choices, except that of course it cannot contain an
2263 -- N_Others_Choice entry.
2264
2265 -- Parent_Spec (Node4-Sem)
2266 -- For a library unit that is a child unit spec (package or subprogram
2267 -- declaration, generic declaration or instantiation, or library level
2268 -- rename) this field points to the compilation unit node for the parent
2269 -- package specification. This field is Empty for library bodies (the
2270 -- parent spec in this case can be found from the corresponding spec).
2271
2272 -- Parent_With (Flag1-Sem)
2273 -- Present in N_With_Clause nodes. The flag indicates that the clause
2274 -- was generated for an ancestor unit to provide proper visibility. A
2275 -- with clause for child unit A.B.C produces two implicit parent with
2276 -- clauses for A and A.B.
2277
2278 -- Premature_Use (Node5-Sem)
2279 -- Present in N_Incomplete_Type_Declaration node. Used for improved
2280 -- error diagnostics: if there is a premature usage of an incomplete
2281 -- type, a subsequently generated error message indicates the position
2282 -- of its full declaration.
2283
2284 -- Present_Expr (Uint3-Sem)
2285 -- Present in an N_Variant node. This has a meaningful value only after
2286 -- Gigi has back annotated the tree with representation information. At
2287 -- this point, it contains a reference to a gcc expression that depends
2288 -- on the values of one or more discriminants. Give a set of discriminant
2289 -- values, this expression evaluates to False (zero) if variant is not
2290 -- present, and True (non-zero) if it is present. See unit Repinfo for
2291 -- further details on gigi back annotation. This field is used during
2292 -- ASIS processing (data decomposition annex) to determine if a field is
2293 -- present or not.
2294
2295 -- Prev_Use_Clause (Node1-Sem)
2296 -- Present in both N_Use_Package_Clause and N_Use_Type_Clause. Used in
2297 -- detection of ineffective use clauses by allowing a chain of related
2298 -- clauses together to avoid traversing the current scope stack.
2299
2300 -- Print_In_Hex (Flag13-Sem)
2301 -- Set on an N_Integer_Literal node to indicate that the value should be
2302 -- printed in hexadecimal in the sprint listing. Has no effect on
2303 -- legality or semantics of program, only on the displayed output. This
2304 -- is used to clarify output from the packed array cases.
2305
2306 -- Procedure_To_Call (Node2-Sem)
2307 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2308 -- and N_Extended_Return_Statement nodes. References the entity for the
2309 -- declaration of the procedure to be called to accomplish the required
2310 -- operation (i.e. for the Allocate procedure in the case of N_Allocator
2311 -- and N_Simple_Return_Statement and N_Extended_Return_Statement (for
2312 -- allocating the return value), and for the Deallocate procedure in the
2313 -- case of N_Free_Statement.
2314
2315 -- Raises_Constraint_Error (Flag7-Sem)
2316 -- Set on an expression whose evaluation will definitely fail constraint
2317 -- error check. See Sem_Eval for details.
2318
2319 -- Redundant_Use (Flag13-Sem)
2320 -- Present in nodes that can appear as an operand in a use clause or use
2321 -- type clause (identifiers, expanded names, attribute references). Set
2322 -- to indicate that a use is redundant (and therefore need not be undone
2323 -- on scope exit).
2324
2325 -- Renaming_Exception (Node2-Sem)
2326 -- Present in N_Exception_Declaration node. Used to point back to the
2327 -- exception renaming for an exception declared within a subprogram.
2328 -- What happens is that an exception declared in a subprogram is moved
2329 -- to the library level with a unique name, and the original exception
2330 -- becomes a renaming. This link from the library level exception to the
2331 -- renaming declaration allows registering of the proper exception name.
2332
2333 -- Return_Statement_Entity (Node5-Sem)
2334 -- Present in N_Simple_Return_Statement and N_Extended_Return_Statement.
2335 -- Points to an E_Return_Statement representing the return statement.
2336
2337 -- Return_Object_Declarations (List3)
2338 -- Present in N_Extended_Return_Statement. Points to a list initially
2339 -- containing a single N_Object_Declaration representing the return
2340 -- object. We use a list (instead of just a pointer to the object decl)
2341 -- because Analyze wants to insert extra actions on this list, before the
2342 -- N_Object_Declaration, which always remains last on the list.
2343
2344 -- Rounded_Result (Flag18-Sem)
2345 -- Present in N_Type_Conversion, N_Op_Divide, and N_Op_Multiply nodes.
2346 -- Used in the fixed-point cases to indicate that the result must be
2347 -- rounded as a result of the use of the 'Round attribute. Also used for
2348 -- integer N_Op_Divide nodes to indicate that the result should be
2349 -- rounded to the nearest integer (breaking ties away from zero), rather
2350 -- than truncated towards zero as usual. These rounded integer operations
2351 -- are the result of expansion of rounded fixed-point divide, conversion
2352 -- and multiplication operations.
2353
2354 -- Save_Invocation_Graph_Of_Body (Flag1-Sem)
2355 -- Present in compilation unit nodes. Set when the elaboration mechanism
2356 -- must record all invocation constructs and invocation relations within
2357 -- the body of the compilation unit.
2358 --
2359 -- SCIL_Entity (Node4-Sem)
2360 -- Present in SCIL nodes. References the specific tagged type associated
2361 -- with the SCIL node (for an N_SCIL_Dispatching_Call node, this is
2362 -- the controlling type of the call; for an N_SCIL_Membership_Test node
2363 -- generated as part of testing membership in T'Class, this is T; for an
2364 -- N_SCIL_Dispatch_Table_Tag_Init node, this is the type being declared).
2365
2366 -- SCIL_Controlling_Tag (Node5-Sem)
2367 -- Present in N_SCIL_Dispatching_Call nodes. References the controlling
2368 -- tag of a dispatching call. This is usually an N_Selected_Component
2369 -- node (for a _tag component), but may be an N_Object_Declaration or
2370 -- N_Parameter_Specification node in some cases (e.g., for a call to
2371 -- a classwide streaming operation or a call to an instance of
2372 -- Ada.Tags.Generic_Dispatching_Constructor).
2373
2374 -- SCIL_Tag_Value (Node5-Sem)
2375 -- Present in N_SCIL_Membership_Test nodes. Used to reference the tag
2376 -- of the value that is being tested.
2377
2378 -- SCIL_Target_Prim (Node2-Sem)
2379 -- Present in N_SCIL_Dispatching_Call nodes. References the primitive
2380 -- operation named (statically) in a dispatching call.
2381
2382 -- Scope (Node3-Sem)
2383 -- Present in defining identifiers, defining character literals, and
2384 -- defining operator symbols (i.e. in all entities). The entities of a
2385 -- scope all use this field to reference the corresponding scope entity.
2386 -- See Einfo for further details.
2387
2388 -- Shift_Count_OK (Flag4-Sem)
2389 -- A flag present in shift nodes to indicate that the shift count is
2390 -- known to be in range, i.e. is in the range from zero to word length
2391 -- minus one. If this flag is not set, then the shift count may be
2392 -- outside this range, i.e. larger than the word length, and the code
2393 -- must ensure that such shift counts give the appropriate result.
2394
2395 -- Source_Type (Node1-Sem)
2396 -- Used in an N_Validate_Unchecked_Conversion node to point to the
2397 -- source type entity for the unchecked conversion instantiation
2398 -- which gigi must do size validation for.
2399
2400 -- Split_PPC (Flag17)
2401 -- When a Pre or Post aspect specification is processed, it is broken
2402 -- into AND THEN sections. The leftmost section has Split_PPC set to
2403 -- False, indicating that it is the original specification (e.g. for
2404 -- posting errors). For other sections, Split_PPC is set to True.
2405 -- This flag is set in both the N_Aspect_Specification node itself,
2406 -- and in the pragma which is generated from this node.
2407
2408 -- Storage_Pool (Node1-Sem)
2409 -- Present in N_Allocator, N_Free_Statement, N_Simple_Return_Statement,
2410 -- and N_Extended_Return_Statement nodes. References the entity for the
2411 -- storage pool to be used for the allocate or free call or for the
2412 -- allocation of the returned value from function. Empty indicates that
2413 -- the global default pool is to be used. Note that in the case
2414 -- of a return statement, this field is set only if the function returns
2415 -- value of a type whose size is not known at compile time on the
2416 -- secondary stack.
2417
2418 -- Suppress_Assignment_Checks (Flag18-Sem)
2419 -- Used in generated N_Assignment_Statement nodes to suppress predicate
2420 -- and range checks in cases where the generated code knows that the
2421 -- value being assigned is in range and satisfies any predicate. Also
2422 -- can be set in N_Object_Declaration nodes, to similarly suppress any
2423 -- checks on the initializing value. In assignment statements it also
2424 -- suppresses access checks in the generated code for out- and in-out
2425 -- parameters in entry calls.
2426
2427 -- Suppress_Loop_Warnings (Flag17-Sem)
2428 -- Used in N_Loop_Statement node to indicate that warnings within the
2429 -- body of the loop should be suppressed. This is set when the range
2430 -- of a FOR loop is known to be null, or is probably null (loop would
2431 -- only execute if invalid values are present).
2432
2433 -- Target (Node1-Sem)
2434 -- Present in call and variable reference marker nodes. References the
2435 -- entity of the original entity, operator, or subprogram being invoked,
2436 -- or the original variable being read or written.
2437
2438 -- Target_Type (Node2-Sem)
2439 -- Used in an N_Validate_Unchecked_Conversion node to point to the target
2440 -- type entity for the unchecked conversion instantiation which gigi must
2441 -- do size validation for.
2442
2443 -- Then_Actions (List3-Sem)
2444 -- This field is present in if expression nodes. During code expansion
2445 -- we use the Insert_Actions procedure (in Exp_Util) to insert actions
2446 -- at an appropriate place in the tree to get elaborated at the right
2447 -- time. For if expressions, we have to be sure that the actions for
2448 -- for the Then branch are only elaborated if the condition is True.
2449 -- The Then_Actions field is used as a temporary parking place for
2450 -- these actions. The final tree is always rewritten to eliminate the
2451 -- need for this field, so in the tree passed to Gigi, this field is
2452 -- always set to No_List.
2453
2454 -- TSS_Elist (Elist3-Sem)
2455 -- Present in N_Freeze_Entity nodes. Holds an element list containing
2456 -- entries for each TSS (type support subprogram) associated with the
2457 -- frozen type. The elements of the list are the entities for the
2458 -- subprograms (see package Exp_TSS for further details). Set to No_Elist
2459 -- if there are no type support subprograms for the type or if the freeze
2460 -- node is not for a type.
2461
2462 -- Uneval_Old_Accept (Flag7-Sem)
2463 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'A'
2464 -- (accept) at the point where the pragma is encountered (including the
2465 -- case of a pragma generated from an aspect specification). It is this
2466 -- setting that is relevant, rather than the setting at the point where
2467 -- a contract is finally analyzed after the delay till the freeze point.
2468
2469 -- Uneval_Old_Warn (Flag18-Sem)
2470 -- Present in N_Pragma nodes. Set True if Opt.Uneval_Old is set to 'W'
2471 -- (warn) at the point where the pragma is encountered (including the
2472 -- case of a pragma generated from an aspect specification). It is this
2473 -- setting that is relevant, rather than the setting at the point where
2474 -- a contract is finally analyzed after the delay till the freeze point.
2475
2476 -- Unreferenced_In_Spec (Flag7-Sem)
2477 -- Present in N_With_Clause nodes. Set if the with clause is on the
2478 -- package or subprogram spec where the main unit is the corresponding
2479 -- body, and is not referenced by the spec (it may still be referenced by
2480 -- the body, so this flag is used to generate the proper message (see
2481 -- Sem_Util.Check_Unused_Withs for details)
2482
2483 -- Uninitialized_Variable (Node3-Sem)
2484 -- Present in N_Formal_Private_Type_Definition and in N_Private_
2485 -- Extension_Declarations. Indicates that a variable in a generic unit
2486 -- whose type is a formal private or derived type is read without being
2487 -- initialized. Used to warn if the corresponding actual type is not
2488 -- a fully initialized type.
2489
2490 -- Used_Operations (Elist2-Sem)
2491 -- Present in N_Use_Type_Clause nodes. Holds the list of operations that
2492 -- are made potentially use-visible by the clause. Simplifies processing
2493 -- on exit from the scope of the use_type_clause, in particular in the
2494 -- case of Use_All_Type, when those operations several scopes.
2495
2496 -- Was_Attribute_Reference (Flag2-Sem)
2497 -- Present in N_Subprogram_Body. Set to True if the original source is an
2498 -- attribute reference which is an actual in a generic instantiation. The
2499 -- instantiation prologue renames these attributes, and expansion later
2500 -- converts them into subprogram bodies.
2501
2502 -- Was_Expression_Function (Flag18-Sem)
2503 -- Present in N_Subprogram_Body. True if the original source had an
2504 -- N_Expression_Function, which was converted to the N_Subprogram_Body
2505 -- by Analyze_Expression_Function. This is needed by ASIS to correctly
2506 -- recreate the expression function (for the instance body) when the
2507 -- completion of a generic function declaration is an expression
2508 -- function.
2509
2510 -- Was_Originally_Stub (Flag13-Sem)
2511 -- This flag is set in the node for a proper body that replaces stub.
2512 -- During the analysis procedure, stubs in some situations get rewritten
2513 -- by the corresponding bodies, and we set this flag to remember that
2514 -- this happened. Note that it is not good enough to rely on the use of
2515 -- Original_Node here because of the case of nested instantiations where
2516 -- the substituted node can be copied.
2517
2518 --------------------------------------------------
2519 -- Note on Use of End_Label and End_Span Fields --
2520 --------------------------------------------------
2521
2522 -- Several constructs have end lines:
2523
2524 -- Loop Statement end loop [loop_IDENTIFIER];
2525 -- Package Specification end [[PARENT_UNIT_NAME .] IDENTIFIER]
2526 -- Task Definition end [task_IDENTIFIER]
2527 -- Protected Definition end [protected_IDENTIFIER]
2528 -- Protected Body end [protected_IDENTIFIER]
2529
2530 -- Block Statement end [block_IDENTIFIER];
2531 -- Subprogram Body end [DESIGNATOR];
2532 -- Package Body end [[PARENT_UNIT_NAME .] IDENTIFIER];
2533 -- Task Body end [task_IDENTIFIER];
2534 -- Accept Statement end [entry_IDENTIFIER]];
2535 -- Entry Body end [entry_IDENTIFIER];
2536
2537 -- If Statement end if;
2538 -- Case Statement end case;
2539
2540 -- Record Definition end record;
2541 -- Enumeration Definition );
2542
2543 -- The End_Label and End_Span fields are used to mark the locations of
2544 -- these lines, and also keep track of the label in the case where a label
2545 -- is present.
2546
2547 -- For the first group above, the End_Label field of the corresponding node
2548 -- is used to point to the label identifier. In the case where there is no
2549 -- label in the source, the parser supplies a dummy identifier (with
2550 -- Comes_From_Source set to False), and the Sloc of this dummy identifier
2551 -- marks the location of the token following the END token.
2552
2553 -- For the second group, the use of End_Label is similar, but the End_Label
2554 -- is found in the N_Handled_Sequence_Of_Statements node. This is done
2555 -- simply because in some cases there is no room in the parent node.
2556
2557 -- For the third group, there is never any label, and instead of using
2558 -- End_Label, we use the End_Span field which gives the location of the
2559 -- token following END, relative to the starting Sloc of the construct,
2560 -- i.e. add Sloc (Node) + End_Span (Node) to get the Sloc of the IF or CASE
2561 -- following the End_Label.
2562
2563 -- The record definition case is handled specially, we treat it as though
2564 -- it required an optional label which is never present, and so the parser
2565 -- always builds a dummy identifier with Comes From Source set False. The
2566 -- reason we do this, rather than using End_Span in this case, is that we
2567 -- want to generate a cross-ref entry for the end of a record, since it
2568 -- represents a scope for name declaration purposes.
2569
2570 -- The enumeration definition case is handled in an exactly similar manner,
2571 -- building a dummy identifier to get a cross-reference.
2572
2573 -- Note: the reason we store the difference as a Uint, instead of storing
2574 -- the Source_Ptr value directly, is that Source_Ptr values cannot be
2575 -- distinguished from other types of values, and we count on all general
2576 -- use fields being self describing. To make things easier for clients,
2577 -- note that we provide function End_Location, and procedure
2578 -- Set_End_Location to allow access to the logical value (which is the
2579 -- Source_Ptr value for the end token).
2580
2581 ---------------------
2582 -- Syntactic Nodes --
2583 ---------------------
2584
2585 ---------------------
2586 -- 2.3 Identifier --
2587 ---------------------
2588
2589 -- IDENTIFIER ::= IDENTIFIER_LETTER {[UNDERLINE] LETTER_OR_DIGIT}
2590 -- LETTER_OR_DIGIT ::= IDENTIFIER_LETTER | DIGIT
2591
2592 -- An IDENTIFIER shall not be a reserved word
2593
2594 -- In the Ada grammar identifiers are the bottom level tokens which have
2595 -- very few semantics. Actual program identifiers are direct names. If
2596 -- we were being 100% honest with the grammar, then we would have a node
2597 -- called N_Direct_Name which would point to an identifier. However,
2598 -- that's too many extra nodes, so we just use the N_Identifier node
2599 -- directly as a direct name, and it contains the expression fields and
2600 -- Entity field that correspond to its use as a direct name. In those
2601 -- few cases where identifiers appear in contexts where they are not
2602 -- direct names (pragmas, pragma argument associations, attribute
2603 -- references and attribute definition clauses), the Chars field of the
2604 -- node contains the Name_Id for the identifier name.
2605
2606 -- Note: in GNAT, a reserved word can be treated as an identifier in two
2607 -- cases. First, an incorrect use of a reserved word as an identifier is
2608 -- diagnosed and then treated as a normal identifier. Second, an
2609 -- attribute designator of the form of a reserved word (access, delta,
2610 -- digits, range) is treated as an identifier.
2611
2612 -- Note: The set of letters that is permitted in an identifier depends
2613 -- on the character set in use. See package Csets for full details.
2614
2615 -- N_Identifier
2616 -- Sloc points to identifier
2617 -- Chars (Name1) contains the Name_Id for the identifier
2618 -- Entity (Node4-Sem)
2619 -- Associated_Node (Node4-Sem)
2620 -- Original_Discriminant (Node2-Sem)
2621 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
2622 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
2623 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
2624 -- Has_Private_View (Flag11-Sem) (set in generic units)
2625 -- Redundant_Use (Flag13-Sem)
2626 -- Atomic_Sync_Required (Flag14-Sem)
2627 -- plus fields for expression
2628
2629 --------------------------
2630 -- 2.4 Numeric Literal --
2631 --------------------------
2632
2633 -- NUMERIC_LITERAL ::= DECIMAL_LITERAL | BASED_LITERAL
2634
2635 ----------------------------
2636 -- 2.4.1 Decimal Literal --
2637 ----------------------------
2638
2639 -- DECIMAL_LITERAL ::= NUMERAL [.NUMERAL] [EXPONENT]
2640
2641 -- NUMERAL ::= DIGIT {[UNDERLINE] DIGIT}
2642
2643 -- EXPONENT ::= E [+] NUMERAL | E - NUMERAL
2644
2645 -- Decimal literals appear in the tree as either integer literal nodes
2646 -- or real literal nodes, depending on whether a period is present.
2647
2648 -- Note: literal nodes appear as a result of direct use of literals
2649 -- in the source program, and also as the result of evaluating
2650 -- expressions at compile time. In the latter case, it is possible
2651 -- to construct real literals that have no syntactic representation
2652 -- using the standard literal format. Such literals are listed by
2653 -- Sprint using the notation [numerator / denominator].
2654
2655 -- Note: the value of an integer literal node created by the front end
2656 -- is never outside the range of values of the base type. However, it
2657 -- can be the case that the created value is outside the range of the
2658 -- particular subtype. This happens in the case of integer overflows
2659 -- with checks suppressed.
2660
2661 -- N_Integer_Literal
2662 -- Sloc points to literal
2663 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2664 -- has been constant-folded into its literal value.
2665 -- Intval (Uint3) contains integer value of literal
2666 -- Print_In_Hex (Flag13-Sem)
2667 -- plus fields for expression
2668
2669 -- N_Real_Literal
2670 -- Sloc points to literal
2671 -- Original_Entity (Node2-Sem) If not Empty, holds Named_Number that
2672 -- has been constant-folded into its literal value.
2673 -- Realval (Ureal3) contains real value of literal
2674 -- Corresponding_Integer_Value (Uint4-Sem)
2675 -- Is_Machine_Number (Flag11-Sem)
2676 -- plus fields for expression
2677
2678 --------------------------
2679 -- 2.4.2 Based Literal --
2680 --------------------------
2681
2682 -- BASED_LITERAL ::=
2683 -- BASE # BASED_NUMERAL [.BASED_NUMERAL] # [EXPONENT]
2684
2685 -- BASE ::= NUMERAL
2686
2687 -- BASED_NUMERAL ::=
2688 -- EXTENDED_DIGIT {[UNDERLINE] EXTENDED_DIGIT}
2689
2690 -- EXTENDED_DIGIT ::= DIGIT | A | B | C | D | E | F
2691
2692 -- Based literals appear in the tree as either integer literal nodes
2693 -- or real literal nodes, depending on whether a period is present.
2694
2695 ----------------------------
2696 -- 2.5 Character Literal --
2697 ----------------------------
2698
2699 -- CHARACTER_LITERAL ::= ' GRAPHIC_CHARACTER '
2700
2701 -- N_Character_Literal
2702 -- Sloc points to literal
2703 -- Chars (Name1) contains the Name_Id for the identifier
2704 -- Char_Literal_Value (Uint2) contains the literal value
2705 -- Entity (Node4-Sem)
2706 -- Associated_Node (Node4-Sem)
2707 -- Has_Private_View (Flag11-Sem) set in generic units.
2708 -- plus fields for expression
2709
2710 -- Note: the Entity field will be missing (set to Empty) for character
2711 -- literals whose type is Standard.Wide_Character or Standard.Character
2712 -- or a type derived from one of these two. In this case the character
2713 -- literal stands for its own coding. The reason we take this irregular
2714 -- short cut is to avoid the need to build lots of junk defining
2715 -- character literal nodes.
2716
2717 -------------------------
2718 -- 2.6 String Literal --
2719 -------------------------
2720
2721 -- STRING LITERAL ::= "{STRING_ELEMENT}"
2722
2723 -- A STRING_ELEMENT is either a pair of quotation marks ("), or a
2724 -- single GRAPHIC_CHARACTER other than a quotation mark.
2725 --
2726 -- Is_Folded_In_Parser is True if the parser created this literal by
2727 -- folding a sequence of "&" operators. For example, if the source code
2728 -- says "aaa" & "bbb" & "ccc", and this produces "aaabbbccc", the flag
2729 -- is set. This flag is needed because the parser doesn't know about
2730 -- visibility, so the folded result might be wrong, and semantic
2731 -- analysis needs to check for that.
2732
2733 -- N_String_Literal
2734 -- Sloc points to literal
2735 -- Strval (Str3) contains Id of string value
2736 -- Has_Wide_Character (Flag11-Sem)
2737 -- Has_Wide_Wide_Character (Flag13-Sem)
2738 -- Is_Folded_In_Parser (Flag4)
2739 -- plus fields for expression
2740
2741 ------------------
2742 -- 2.7 Comment --
2743 ------------------
2744
2745 -- A COMMENT starts with two adjacent hyphens and extends up to the
2746 -- end of the line. A COMMENT may appear on any line of a program.
2747
2748 -- Comments are skipped by the scanner and do not appear in the tree.
2749 -- It is possible to reconstruct the position of comments with respect
2750 -- to the elements of the tree by using the source position (Sloc)
2751 -- pointers that appear in every tree node.
2752
2753 -----------------
2754 -- 2.8 Pragma --
2755 -----------------
2756
2757 -- PRAGMA ::= pragma IDENTIFIER
2758 -- [(PRAGMA_ARGUMENT_ASSOCIATION {, PRAGMA_ARGUMENT_ASSOCIATION})];
2759
2760 -- Note that a pragma may appear in the tree anywhere a declaration
2761 -- or a statement may appear, as well as in some other situations
2762 -- which are explicitly documented.
2763
2764 -- N_Pragma
2765 -- Sloc points to PRAGMA
2766 -- Next_Pragma (Node1-Sem)
2767 -- Pragma_Argument_Associations (List2) (set to No_List if none)
2768 -- Corresponding_Aspect (Node3-Sem) (set to Empty if not present)
2769 -- Pragma_Identifier (Node4)
2770 -- Next_Rep_Item (Node5-Sem)
2771 -- Is_Generic_Contract_Pragma (Flag2-Sem)
2772 -- Is_Checked_Ghost_Pragma (Flag3-Sem)
2773 -- Is_Inherited_Pragma (Flag4-Sem)
2774 -- Is_Analyzed_Pragma (Flag5-Sem)
2775 -- Class_Present (Flag6) set if from Aspect with 'Class
2776 -- Uneval_Old_Accept (Flag7-Sem)
2777 -- Is_Ignored_Ghost_Pragma (Flag8-Sem)
2778 -- Is_Ignored (Flag9-Sem)
2779 -- Is_Checked (Flag11-Sem)
2780 -- From_Aspect_Specification (Flag13-Sem)
2781 -- Is_Delayed_Aspect (Flag14-Sem)
2782 -- Is_Disabled (Flag15-Sem)
2783 -- Import_Interface_Present (Flag16-Sem)
2784 -- Split_PPC (Flag17) set if corresponding aspect had Split_PPC set
2785 -- Uneval_Old_Warn (Flag18-Sem)
2786
2787 -- Note: we should have a section on what pragmas are passed on to
2788 -- the back end to be processed. This section should note that pragma
2789 -- Psect_Object is always converted to Common_Object, but there are
2790 -- undoubtedly many other similar notes required ???
2791
2792 -- Note: utility functions Pragma_Name_Unmapped and Pragma_Name may be
2793 -- applied to pragma nodes to obtain the Chars or its mapped version.
2794
2795 -- Note: if From_Aspect_Specification is set, then Sloc points to the
2796 -- aspect name, as does the Pragma_Identifier. In this case if the
2797 -- pragma has a local name argument (such as pragma Inline), it is
2798 -- resolved to point to the specific entity affected by the pragma.
2799
2800 --------------------------------------
2801 -- 2.8 Pragma Argument Association --
2802 --------------------------------------
2803
2804 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2805 -- [pragma_argument_IDENTIFIER =>] NAME
2806 -- | [pragma_argument_IDENTIFIER =>] EXPRESSION
2807
2808 -- In Ada 2012, there are two more possibilities:
2809
2810 -- PRAGMA_ARGUMENT_ASSOCIATION ::=
2811 -- [pragma_argument_ASPECT_MARK =>] NAME
2812 -- | [pragma_argument_ASPECT_MARK =>] EXPRESSION
2813
2814 -- where the interesting allowed cases (which do not fit the syntax of
2815 -- the first alternative above) are
2816
2817 -- ASPECT_MARK => Pre'Class |
2818 -- Post'Class |
2819 -- Type_Invariant'Class |
2820 -- Invariant'Class
2821
2822 -- We allow this special usage in all Ada modes, but it would be a
2823 -- pain to allow these aspects to pervade the pragma syntax, and the
2824 -- representation of pragma nodes internally. So what we do is to
2825 -- replace these ASPECT_MARK forms with identifiers whose name is one
2826 -- of the special internal names _Pre, _Post, or _Type_Invariant.
2827
2828 -- We do a similar replacement of these Aspect_Mark forms in the
2829 -- Expression of a pragma argument association for the cases of
2830 -- the first arguments of any Check pragmas and Check_Policy pragmas
2831
2832 -- N_Pragma_Argument_Association
2833 -- Sloc points to first token in association
2834 -- Chars (Name1) (set to No_Name if no pragma argument identifier)
2835 -- Expression_Copy (Node2-Sem)
2836 -- Expression (Node3)
2837
2838 ------------------------
2839 -- 2.9 Reserved Word --
2840 ------------------------
2841
2842 -- Reserved words are parsed by the scanner, and returned as the
2843 -- corresponding token types (e.g. PACKAGE is returned as Tok_Package)
2844
2845 ----------------------------
2846 -- 3.1 Basic Declaration --
2847 ----------------------------
2848
2849 -- BASIC_DECLARATION ::=
2850 -- TYPE_DECLARATION | SUBTYPE_DECLARATION
2851 -- | OBJECT_DECLARATION | NUMBER_DECLARATION
2852 -- | SUBPROGRAM_DECLARATION | ABSTRACT_SUBPROGRAM_DECLARATION
2853 -- | PACKAGE_DECLARATION | RENAMING_DECLARATION
2854 -- | EXCEPTION_DECLARATION | GENERIC_DECLARATION
2855 -- | GENERIC_INSTANTIATION
2856
2857 -- Basic declaration also includes IMPLICIT_LABEL_DECLARATION
2858 -- see further description in section on semantic nodes.
2859
2860 -- Also, in the tree that is constructed, a pragma may appear
2861 -- anywhere that a declaration may appear.
2862
2863 ------------------------------
2864 -- 3.1 Defining Identifier --
2865 ------------------------------
2866
2867 -- DEFINING_IDENTIFIER ::= IDENTIFIER
2868
2869 -- A defining identifier is an entity, which has additional fields
2870 -- depending on the setting of the Ekind field. These additional
2871 -- fields are defined (and access subprograms declared) in package
2872 -- Einfo.
2873
2874 -- Note: N_Defining_Identifier is an extended node whose fields are
2875 -- deliberately laid out to match the layout of fields in an ordinary
2876 -- N_Identifier node allowing for easy alteration of an identifier
2877 -- node into a defining identifier node. For details, see procedure
2878 -- Sinfo.CN.Change_Identifier_To_Defining_Identifier.
2879
2880 -- N_Defining_Identifier
2881 -- Sloc points to identifier
2882 -- Chars (Name1) contains the Name_Id for the identifier
2883 -- Next_Entity (Node2-Sem)
2884 -- Scope (Node3-Sem)
2885 -- Etype (Node5-Sem)
2886
2887 -----------------------------
2888 -- 3.2.1 Type Declaration --
2889 -----------------------------
2890
2891 -- TYPE_DECLARATION ::=
2892 -- FULL_TYPE_DECLARATION
2893 -- | INCOMPLETE_TYPE_DECLARATION
2894 -- | PRIVATE_TYPE_DECLARATION
2895 -- | PRIVATE_EXTENSION_DECLARATION
2896
2897 ----------------------------------
2898 -- 3.2.1 Full Type Declaration --
2899 ----------------------------------
2900
2901 -- FULL_TYPE_DECLARATION ::=
2902 -- type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
2903 -- is TYPE_DEFINITION
2904 -- [ASPECT_SPECIFICATIONS];
2905 -- | TASK_TYPE_DECLARATION
2906 -- | PROTECTED_TYPE_DECLARATION
2907
2908 -- The full type declaration node is used only for the first case. The
2909 -- second case (concurrent type declaration), is represented directly
2910 -- by a task type declaration or a protected type declaration.
2911
2912 -- N_Full_Type_Declaration
2913 -- Sloc points to TYPE
2914 -- Defining_Identifier (Node1)
2915 -- Incomplete_View (Node2-Sem)
2916 -- Discriminant_Specifications (List4) (set to No_List if none)
2917 -- Type_Definition (Node3)
2918 -- Discr_Check_Funcs_Built (Flag11-Sem)
2919
2920 ----------------------------
2921 -- 3.2.1 Type Definition --
2922 ----------------------------
2923
2924 -- TYPE_DEFINITION ::=
2925 -- ENUMERATION_TYPE_DEFINITION | INTEGER_TYPE_DEFINITION
2926 -- | REAL_TYPE_DEFINITION | ARRAY_TYPE_DEFINITION
2927 -- | RECORD_TYPE_DEFINITION | ACCESS_TYPE_DEFINITION
2928 -- | DERIVED_TYPE_DEFINITION | INTERFACE_TYPE_DEFINITION
2929
2930 --------------------------------
2931 -- 3.2.2 Subtype Declaration --
2932 --------------------------------
2933
2934 -- SUBTYPE_DECLARATION ::=
2935 -- subtype DEFINING_IDENTIFIER is [NULL_EXCLUSION] SUBTYPE_INDICATION
2936 -- [ASPECT_SPECIFICATIONS];
2937
2938 -- The subtype indication field is set to Empty for subtypes
2939 -- declared in package Standard (Positive, Natural).
2940
2941 -- N_Subtype_Declaration
2942 -- Sloc points to SUBTYPE
2943 -- Defining_Identifier (Node1)
2944 -- Null_Exclusion_Present (Flag11)
2945 -- Subtype_Indication (Node5)
2946 -- Generic_Parent_Type (Node4-Sem) (set for an actual derived type).
2947 -- Exception_Junk (Flag8-Sem)
2948 -- Has_Dynamic_Range_Check (Flag12-Sem)
2949
2950 -------------------------------
2951 -- 3.2.2 Subtype Indication --
2952 -------------------------------
2953
2954 -- SUBTYPE_INDICATION ::= SUBTYPE_MARK [CONSTRAINT]
2955
2956 -- Note: if no constraint is present, the subtype indication appears
2957 -- directly in the tree as a subtype mark. The N_Subtype_Indication
2958 -- node is used only if a constraint is present.
2959
2960 -- Note: [For Ada 2005 (AI-231)]: Because Ada 2005 extends this rule
2961 -- with the null-exclusion part (see AI-231), we had to introduce a new
2962 -- attribute in all the parents of subtype_indication nodes to indicate
2963 -- if the null-exclusion is present.
2964
2965 -- Note: the reason that this node has expression fields is that a
2966 -- subtype indication can appear as an operand of a membership test.
2967
2968 -- N_Subtype_Indication
2969 -- Sloc points to first token of subtype mark
2970 -- Subtype_Mark (Node4)
2971 -- Constraint (Node3)
2972 -- Etype (Node5-Sem)
2973 -- Must_Not_Freeze (Flag8-Sem)
2974
2975 -- Note: Depending on context, the Etype is either the entity of the
2976 -- Subtype_Mark field, or it is an itype constructed to reify the
2977 -- subtype indication. In particular, such itypes are created for a
2978 -- subtype indication that appears in an array type declaration. This
2979 -- simplifies constraint checking in indexed components.
2980
2981 -- For subtype indications that appear in scalar type and subtype
2982 -- declarations, the Etype is the entity of the subtype mark.
2983
2984 -------------------------
2985 -- 3.2.2 Subtype Mark --
2986 -------------------------
2987
2988 -- SUBTYPE_MARK ::= subtype_NAME
2989
2990 -----------------------
2991 -- 3.2.2 Constraint --
2992 -----------------------
2993
2994 -- CONSTRAINT ::= SCALAR_CONSTRAINT | COMPOSITE_CONSTRAINT
2995
2996 ------------------------------
2997 -- 3.2.2 Scalar Constraint --
2998 ------------------------------
2999
3000 -- SCALAR_CONSTRAINT ::=
3001 -- RANGE_CONSTRAINT | DIGITS_CONSTRAINT | DELTA_CONSTRAINT
3002
3003 ---------------------------------
3004 -- 3.2.2 Composite Constraint --
3005 ---------------------------------
3006
3007 -- COMPOSITE_CONSTRAINT ::=
3008 -- INDEX_CONSTRAINT | DISCRIMINANT_CONSTRAINT
3009
3010 -------------------------------
3011 -- 3.3.1 Object Declaration --
3012 -------------------------------
3013
3014 -- OBJECT_DECLARATION ::=
3015 -- DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3016 -- [NULL_EXCLUSION] SUBTYPE_INDICATION [:= EXPRESSION]
3017 -- [ASPECT_SPECIFICATIONS];
3018 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3019 -- ACCESS_DEFINITION [:= EXPRESSION]
3020 -- [ASPECT_SPECIFICATIONS];
3021 -- | DEFINING_IDENTIFIER_LIST : [aliased] [constant]
3022 -- ARRAY_TYPE_DEFINITION [:= EXPRESSION]
3023 -- [ASPECT_SPECIFICATIONS];
3024 -- | SINGLE_TASK_DECLARATION
3025 -- | SINGLE_PROTECTED_DECLARATION
3026
3027 -- Note: aliased is not permitted in Ada 83 mode
3028
3029 -- The N_Object_Declaration node is only for the first three cases.
3030 -- Single task declaration is handled by P_Task (9.1)
3031 -- Single protected declaration is handled by P_protected (9.5)
3032
3033 -- Although the syntax allows multiple identifiers in the list, the
3034 -- semantics is as though successive declarations were given with
3035 -- identical type definition and expression components. To simplify
3036 -- semantic processing, the parser represents a multiple declaration
3037 -- case as a sequence of single declarations, using the More_Ids and
3038 -- Prev_Ids flags to preserve the original source form as described
3039 -- in the section on "Handling of Defining Identifier Lists".
3040
3041 -- The flag Has_Init_Expression is set if an initializing expression
3042 -- is present. Normally it is set if and only if Expression contains
3043 -- a non-empty value, but there is an exception to this. When the
3044 -- initializing expression is an aggregate which requires explicit
3045 -- assignments, the Expression field gets set to Empty, but this flag
3046 -- is still set, so we don't forget we had an initializing expression.
3047
3048 -- Note: if a range check is required for the initialization
3049 -- expression then the Do_Range_Check flag is set in the Expression,
3050 -- with the check being done against the type given by the object
3051 -- definition, which is also the Etype of the defining identifier.
3052
3053 -- Note: the contents of the Expression field must be ignored (i.e.
3054 -- treated as though it were Empty) if No_Initialization is set True.
3055
3056 -- Note: the back end places some restrictions on the form of the
3057 -- Expression field. If the object being declared is Atomic, then
3058 -- the Expression may not have the form of an aggregate (since this
3059 -- might cause the back end to generate separate assignments). In this
3060 -- case the front end must generate an extra temporary and initialize
3061 -- this temporary as required (the temporary itself is not atomic).
3062
3063 -- Note: there is no node kind for object definition. Instead, the
3064 -- corresponding field holds a subtype indication, an array type
3065 -- definition, or (Ada 2005, AI-406) an access definition.
3066
3067 -- N_Object_Declaration
3068 -- Sloc points to first identifier
3069 -- Defining_Identifier (Node1)
3070 -- Aliased_Present (Flag4)
3071 -- Constant_Present (Flag17) set if CONSTANT appears
3072 -- Null_Exclusion_Present (Flag11)
3073 -- Object_Definition (Node4) subtype indic./array type def./access def.
3074 -- Expression (Node3) (set to Empty if not present)
3075 -- Handler_List_Entry (Node2-Sem)
3076 -- Corresponding_Generic_Association (Node5-Sem)
3077 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3078 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3079 -- No_Initialization (Flag13-Sem)
3080 -- Assignment_OK (Flag15-Sem)
3081 -- Exception_Junk (Flag8-Sem)
3082 -- Is_Subprogram_Descriptor (Flag16-Sem)
3083 -- Has_Init_Expression (Flag14)
3084 -- Suppress_Assignment_Checks (Flag18-Sem)
3085
3086 -------------------------------------
3087 -- 3.3.1 Defining Identifier List --
3088 -------------------------------------
3089
3090 -- DEFINING_IDENTIFIER_LIST ::=
3091 -- DEFINING_IDENTIFIER {, DEFINING_IDENTIFIER}
3092
3093 -------------------------------
3094 -- 3.3.2 Number Declaration --
3095 -------------------------------
3096
3097 -- NUMBER_DECLARATION ::=
3098 -- DEFINING_IDENTIFIER_LIST : constant := static_EXPRESSION;
3099
3100 -- Although the syntax allows multiple identifiers in the list, the
3101 -- semantics is as though successive declarations were given with
3102 -- identical expressions. To simplify semantic processing, the parser
3103 -- represents a multiple declaration case as a sequence of single
3104 -- declarations, using the More_Ids and Prev_Ids flags to preserve
3105 -- the original source form as described in the section on "Handling
3106 -- of Defining Identifier Lists".
3107
3108 -- N_Number_Declaration
3109 -- Sloc points to first identifier
3110 -- Defining_Identifier (Node1)
3111 -- Expression (Node3)
3112 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3113 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3114
3115 ----------------------------------
3116 -- 3.4 Derived Type Definition --
3117 ----------------------------------
3118
3119 -- DERIVED_TYPE_DEFINITION ::=
3120 -- [abstract] [limited] new [NULL_EXCLUSION] parent_SUBTYPE_INDICATION
3121 -- [[and INTERFACE_LIST] RECORD_EXTENSION_PART]
3122
3123 -- Note: ABSTRACT, LIMITED, and record extension part are not permitted
3124 -- in Ada 83 mode.
3125
3126 -- Note: a record extension part is required if ABSTRACT is present
3127
3128 -- N_Derived_Type_Definition
3129 -- Sloc points to NEW
3130 -- Abstract_Present (Flag4)
3131 -- Null_Exclusion_Present (Flag11) (set to False if not present)
3132 -- Subtype_Indication (Node5)
3133 -- Record_Extension_Part (Node3) (set to Empty if not present)
3134 -- Limited_Present (Flag17)
3135 -- Task_Present (Flag5) set in task interfaces
3136 -- Protected_Present (Flag6) set in protected interfaces
3137 -- Synchronized_Present (Flag7) set in interfaces
3138 -- Interface_List (List2) (set to No_List if none)
3139 -- Interface_Present (Flag16) set in abstract interfaces
3140
3141 -- Note: Task_Present, Protected_Present, Synchronized_Present,
3142 -- Interface_List, and Interface_Present are used for abstract
3143 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3144
3145 ---------------------------
3146 -- 3.5 Range Constraint --
3147 ---------------------------
3148
3149 -- RANGE_CONSTRAINT ::= range RANGE
3150
3151 -- N_Range_Constraint
3152 -- Sloc points to RANGE
3153 -- Range_Expression (Node4)
3154
3155 ----------------
3156 -- 3.5 Range --
3157 ----------------
3158
3159 -- RANGE ::=
3160 -- RANGE_ATTRIBUTE_REFERENCE
3161 -- | SIMPLE_EXPRESSION .. SIMPLE_EXPRESSION
3162
3163 -- Note: the case of a range given as a range attribute reference
3164 -- appears directly in the tree as an attribute reference.
3165
3166 -- Note: the field name for a reference to a range is Range_Expression
3167 -- rather than Range, because range is a reserved keyword in Ada.
3168
3169 -- Note: the reason that this node has expression fields is that a
3170 -- range can appear as an operand of a membership test. The Etype
3171 -- field is the type of the range (we do NOT construct an implicit
3172 -- subtype to represent the range exactly).
3173
3174 -- N_Range
3175 -- Sloc points to ..
3176 -- Low_Bound (Node1)
3177 -- High_Bound (Node2)
3178 -- Includes_Infinities (Flag11)
3179 -- plus fields for expression
3180
3181 -- Note: if the range appears in a context, such as a subtype
3182 -- declaration, where range checks are required on one or both of
3183 -- the expression fields, then type conversion nodes are inserted
3184 -- to represent the required checks.
3185
3186 ----------------------------------------
3187 -- 3.5.1 Enumeration Type Definition --
3188 ----------------------------------------
3189
3190 -- ENUMERATION_TYPE_DEFINITION ::=
3191 -- (ENUMERATION_LITERAL_SPECIFICATION
3192 -- {, ENUMERATION_LITERAL_SPECIFICATION})
3193
3194 -- Note: the Literals field in the node described below is null for
3195 -- the case of the standard types CHARACTER and WIDE_CHARACTER, for
3196 -- which special processing handles these types as special cases.
3197
3198 -- N_Enumeration_Type_Definition
3199 -- Sloc points to left parenthesis
3200 -- Literals (List1) (Empty for CHARACTER or WIDE_CHARACTER)
3201 -- End_Label (Node4) (set to Empty if internally generated record)
3202
3203 ----------------------------------------------
3204 -- 3.5.1 Enumeration Literal Specification --
3205 ----------------------------------------------
3206
3207 -- ENUMERATION_LITERAL_SPECIFICATION ::=
3208 -- DEFINING_IDENTIFIER | DEFINING_CHARACTER_LITERAL
3209
3210 ---------------------------------------
3211 -- 3.5.1 Defining Character Literal --
3212 ---------------------------------------
3213
3214 -- DEFINING_CHARACTER_LITERAL ::= CHARACTER_LITERAL
3215
3216 -- A defining character literal is an entity, which has additional
3217 -- fields depending on the setting of the Ekind field. These
3218 -- additional fields are defined (and access subprograms declared)
3219 -- in package Einfo.
3220
3221 -- Note: N_Defining_Character_Literal is an extended node whose fields
3222 -- are deliberately laid out to match layout of fields in an ordinary
3223 -- N_Character_Literal node, allowing for easy alteration of a character
3224 -- literal node into a defining character literal node. For details, see
3225 -- Sinfo.CN.Change_Character_Literal_To_Defining_Character_Literal.
3226
3227 -- N_Defining_Character_Literal
3228 -- Sloc points to literal
3229 -- Chars (Name1) contains the Name_Id for the identifier
3230 -- Next_Entity (Node2-Sem)
3231 -- Scope (Node3-Sem)
3232 -- Etype (Node5-Sem)
3233
3234 ------------------------------------
3235 -- 3.5.4 Integer Type Definition --
3236 ------------------------------------
3237
3238 -- Note: there is an error in this rule in the latest version of the
3239 -- grammar, so we have retained the old rule pending clarification.
3240
3241 -- INTEGER_TYPE_DEFINITION ::=
3242 -- SIGNED_INTEGER_TYPE_DEFINITION
3243 -- | MODULAR_TYPE_DEFINITION
3244
3245 -------------------------------------------
3246 -- 3.5.4 Signed Integer Type Definition --
3247 -------------------------------------------
3248
3249 -- SIGNED_INTEGER_TYPE_DEFINITION ::=
3250 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3251
3252 -- Note: the Low_Bound and High_Bound fields are set to Empty
3253 -- for integer types defined in package Standard.
3254
3255 -- N_Signed_Integer_Type_Definition
3256 -- Sloc points to RANGE
3257 -- Low_Bound (Node1)
3258 -- High_Bound (Node2)
3259
3260 ------------------------------------
3261 -- 3.5.4 Modular Type Definition --
3262 ------------------------------------
3263
3264 -- MODULAR_TYPE_DEFINITION ::= mod static_EXPRESSION
3265
3266 -- N_Modular_Type_Definition
3267 -- Sloc points to MOD
3268 -- Expression (Node3)
3269
3270 ---------------------------------
3271 -- 3.5.6 Real Type Definition --
3272 ---------------------------------
3273
3274 -- REAL_TYPE_DEFINITION ::=
3275 -- FLOATING_POINT_DEFINITION | FIXED_POINT_DEFINITION
3276
3277 --------------------------------------
3278 -- 3.5.7 Floating Point Definition --
3279 --------------------------------------
3280
3281 -- FLOATING_POINT_DEFINITION ::=
3282 -- digits static_SIMPLE_EXPRESSION [REAL_RANGE_SPECIFICATION]
3283
3284 -- Note: The Digits_Expression and Real_Range_Specifications fields
3285 -- are set to Empty for floating-point types declared in Standard.
3286
3287 -- N_Floating_Point_Definition
3288 -- Sloc points to DIGITS
3289 -- Digits_Expression (Node2)
3290 -- Real_Range_Specification (Node4) (set to Empty if not present)
3291
3292 -------------------------------------
3293 -- 3.5.7 Real Range Specification --
3294 -------------------------------------
3295
3296 -- REAL_RANGE_SPECIFICATION ::=
3297 -- range static_SIMPLE_EXPRESSION .. static_SIMPLE_EXPRESSION
3298
3299 -- N_Real_Range_Specification
3300 -- Sloc points to RANGE
3301 -- Low_Bound (Node1)
3302 -- High_Bound (Node2)
3303
3304 -----------------------------------
3305 -- 3.5.9 Fixed Point Definition --
3306 -----------------------------------
3307
3308 -- FIXED_POINT_DEFINITION ::=
3309 -- ORDINARY_FIXED_POINT_DEFINITION | DECIMAL_FIXED_POINT_DEFINITION
3310
3311 --------------------------------------------
3312 -- 3.5.9 Ordinary Fixed Point Definition --
3313 --------------------------------------------
3314
3315 -- ORDINARY_FIXED_POINT_DEFINITION ::=
3316 -- delta static_EXPRESSION REAL_RANGE_SPECIFICATION
3317
3318 -- Note: In Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3319
3320 -- N_Ordinary_Fixed_Point_Definition
3321 -- Sloc points to DELTA
3322 -- Delta_Expression (Node3)
3323 -- Real_Range_Specification (Node4)
3324
3325 -------------------------------------------
3326 -- 3.5.9 Decimal Fixed Point Definition --
3327 -------------------------------------------
3328
3329 -- DECIMAL_FIXED_POINT_DEFINITION ::=
3330 -- delta static_EXPRESSION
3331 -- digits static_EXPRESSION [REAL_RANGE_SPECIFICATION]
3332
3333 -- Note: decimal types are not permitted in Ada 83 mode
3334
3335 -- N_Decimal_Fixed_Point_Definition
3336 -- Sloc points to DELTA
3337 -- Delta_Expression (Node3)
3338 -- Digits_Expression (Node2)
3339 -- Real_Range_Specification (Node4) (set to Empty if not present)
3340
3341 ------------------------------
3342 -- 3.5.9 Digits Constraint --
3343 ------------------------------
3344
3345 -- DIGITS_CONSTRAINT ::=
3346 -- digits static_EXPRESSION [RANGE_CONSTRAINT]
3347
3348 -- Note: in Ada 83, the EXPRESSION must be a SIMPLE_EXPRESSION
3349 -- Note: in Ada 95, reduced accuracy subtypes are obsolescent
3350
3351 -- N_Digits_Constraint
3352 -- Sloc points to DIGITS
3353 -- Digits_Expression (Node2)
3354 -- Range_Constraint (Node4) (set to Empty if not present)
3355
3356 --------------------------------
3357 -- 3.6 Array Type Definition --
3358 --------------------------------
3359
3360 -- ARRAY_TYPE_DEFINITION ::=
3361 -- UNCONSTRAINED_ARRAY_DEFINITION | CONSTRAINED_ARRAY_DEFINITION
3362
3363 -----------------------------------------
3364 -- 3.6 Unconstrained Array Definition --
3365 -----------------------------------------
3366
3367 -- UNCONSTRAINED_ARRAY_DEFINITION ::=
3368 -- array (INDEX_SUBTYPE_DEFINITION {, INDEX_SUBTYPE_DEFINITION}) of
3369 -- COMPONENT_DEFINITION
3370
3371 -- Note: dimensionality of array is indicated by number of entries in
3372 -- the Subtype_Marks list, which has one entry for each dimension.
3373
3374 -- N_Unconstrained_Array_Definition
3375 -- Sloc points to ARRAY
3376 -- Subtype_Marks (List2)
3377 -- Component_Definition (Node4)
3378
3379 -----------------------------------
3380 -- 3.6 Index Subtype Definition --
3381 -----------------------------------
3382
3383 -- INDEX_SUBTYPE_DEFINITION ::= SUBTYPE_MARK range <>
3384
3385 -- There is no explicit node in the tree for an index subtype
3386 -- definition since the N_Unconstrained_Array_Definition node
3387 -- incorporates the type marks which appear in this context.
3388
3389 ---------------------------------------
3390 -- 3.6 Constrained Array Definition --
3391 ---------------------------------------
3392
3393 -- CONSTRAINED_ARRAY_DEFINITION ::=
3394 -- array (DISCRETE_SUBTYPE_DEFINITION
3395 -- {, DISCRETE_SUBTYPE_DEFINITION})
3396 -- of COMPONENT_DEFINITION
3397
3398 -- Note: dimensionality of array is indicated by number of entries
3399 -- in the Discrete_Subtype_Definitions list, which has one entry
3400 -- for each dimension.
3401
3402 -- N_Constrained_Array_Definition
3403 -- Sloc points to ARRAY
3404 -- Discrete_Subtype_Definitions (List2)
3405 -- Component_Definition (Node4)
3406
3407 -- Note: although the language allows the full syntax for discrete
3408 -- subtype definitions (i.e. a discrete subtype indication or a range),
3409 -- in the generated tree, we always rewrite these as N_Range nodes.
3410
3411 --------------------------------------
3412 -- 3.6 Discrete Subtype Definition --
3413 --------------------------------------
3414
3415 -- DISCRETE_SUBTYPE_DEFINITION ::=
3416 -- discrete_SUBTYPE_INDICATION | RANGE
3417
3418 -------------------------------
3419 -- 3.6 Component Definition --
3420 -------------------------------
3421
3422 -- COMPONENT_DEFINITION ::=
3423 -- [aliased] [NULL_EXCLUSION] SUBTYPE_INDICATION | ACCESS_DEFINITION
3424
3425 -- Note: although the syntax does not permit a component definition to
3426 -- be an anonymous array (and the parser will diagnose such an attempt
3427 -- with an appropriate message), it is possible for anonymous arrays
3428 -- to appear as component definitions. The semantics and back end handle
3429 -- this case properly, and the expander in fact generates such cases.
3430 -- Access_Definition is an optional field that gives support to
3431 -- Ada 2005 (AI-230). The parser generates nodes that have either the
3432 -- Subtype_Indication field or else the Access_Definition field.
3433
3434 -- N_Component_Definition
3435 -- Sloc points to ALIASED, ACCESS, or to first token of subtype mark
3436 -- Aliased_Present (Flag4)
3437 -- Null_Exclusion_Present (Flag11)
3438 -- Subtype_Indication (Node5) (set to Empty if not present)
3439 -- Access_Definition (Node3) (set to Empty if not present)
3440
3441 -----------------------------
3442 -- 3.6.1 Index Constraint --
3443 -----------------------------
3444
3445 -- INDEX_CONSTRAINT ::= (DISCRETE_RANGE {, DISCRETE_RANGE})
3446
3447 -- It is not in general possible to distinguish between discriminant
3448 -- constraints and index constraints at parse time, since a simple
3449 -- name could be either the subtype mark of a discrete range, or an
3450 -- expression in a discriminant association with no name. Either
3451 -- entry appears simply as the name, and the semantic parse must
3452 -- distinguish between the two cases. Thus we use a common tree
3453 -- node format for both of these constraint types.
3454
3455 -- See Discriminant_Constraint for format of node
3456
3457 ---------------------------
3458 -- 3.6.1 Discrete Range --
3459 ---------------------------
3460
3461 -- DISCRETE_RANGE ::= discrete_SUBTYPE_INDICATION | RANGE
3462
3463 ----------------------------
3464 -- 3.7 Discriminant Part --
3465 ----------------------------
3466
3467 -- DISCRIMINANT_PART ::=
3468 -- UNKNOWN_DISCRIMINANT_PART | KNOWN_DISCRIMINANT_PART
3469
3470 ------------------------------------
3471 -- 3.7 Unknown Discriminant Part --
3472 ------------------------------------
3473
3474 -- UNKNOWN_DISCRIMINANT_PART ::= (<>)
3475
3476 -- Note: unknown discriminant parts are not permitted in Ada 83 mode
3477
3478 -- There is no explicit node in the tree for an unknown discriminant
3479 -- part. Instead the Unknown_Discriminants_Present flag is set in the
3480 -- parent node.
3481
3482 ----------------------------------
3483 -- 3.7 Known Discriminant Part --
3484 ----------------------------------
3485
3486 -- KNOWN_DISCRIMINANT_PART ::=
3487 -- (DISCRIMINANT_SPECIFICATION {; DISCRIMINANT_SPECIFICATION})
3488
3489 -------------------------------------
3490 -- 3.7 Discriminant Specification --
3491 -------------------------------------
3492
3493 -- DISCRIMINANT_SPECIFICATION ::=
3494 -- DEFINING_IDENTIFIER_LIST : [NULL_EXCLUSION] SUBTYPE_MARK
3495 -- [:= DEFAULT_EXPRESSION]
3496 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
3497 -- [:= DEFAULT_EXPRESSION]
3498
3499 -- Although the syntax allows multiple identifiers in the list, the
3500 -- semantics is as though successive specifications were given with
3501 -- identical type definition and expression components. To simplify
3502 -- semantic processing, the parser represents a multiple declaration
3503 -- case as a sequence of single specifications, using the More_Ids and
3504 -- Prev_Ids flags to preserve the original source form as described
3505 -- in the section on "Handling of Defining Identifier Lists".
3506
3507 -- N_Discriminant_Specification
3508 -- Sloc points to first identifier
3509 -- Defining_Identifier (Node1)
3510 -- Null_Exclusion_Present (Flag11)
3511 -- Discriminant_Type (Node5) subtype mark or access parameter definition
3512 -- Expression (Node3) (set to Empty if no default expression)
3513 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3514 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3515
3516 -----------------------------
3517 -- 3.7 Default Expression --
3518 -----------------------------
3519
3520 -- DEFAULT_EXPRESSION ::= EXPRESSION
3521
3522 ------------------------------------
3523 -- 3.7.1 Discriminant Constraint --
3524 ------------------------------------
3525
3526 -- DISCRIMINANT_CONSTRAINT ::=
3527 -- (DISCRIMINANT_ASSOCIATION {, DISCRIMINANT_ASSOCIATION})
3528
3529 -- It is not in general possible to distinguish between discriminant
3530 -- constraints and index constraints at parse time, since a simple
3531 -- name could be either the subtype mark of a discrete range, or an
3532 -- expression in a discriminant association with no name. Either
3533 -- entry appears simply as the name, and the semantic parse must
3534 -- distinguish between the two cases. Thus we use a common tree
3535 -- node format for both of these constraint types.
3536
3537 -- N_Index_Or_Discriminant_Constraint
3538 -- Sloc points to left paren
3539 -- Constraints (List1) points to list of discrete ranges or
3540 -- discriminant associations
3541
3542 -------------------------------------
3543 -- 3.7.1 Discriminant Association --
3544 -------------------------------------
3545
3546 -- DISCRIMINANT_ASSOCIATION ::=
3547 -- [discriminant_SELECTOR_NAME
3548 -- {| discriminant_SELECTOR_NAME} =>] EXPRESSION
3549
3550 -- Note: a discriminant association that has no selector name list
3551 -- appears directly as an expression in the tree.
3552
3553 -- N_Discriminant_Association
3554 -- Sloc points to first token of discriminant association
3555 -- Selector_Names (List1) (always non-empty, since if no selector
3556 -- names are present, this node is not used, see comment above)
3557 -- Expression (Node3)
3558
3559 ---------------------------------
3560 -- 3.8 Record Type Definition --
3561 ---------------------------------
3562
3563 -- RECORD_TYPE_DEFINITION ::=
3564 -- [[abstract] tagged] [limited] RECORD_DEFINITION
3565
3566 -- Note: ABSTRACT, TAGGED, LIMITED are not permitted in Ada 83 mode
3567
3568 -- There is no explicit node in the tree for a record type definition.
3569 -- Instead the flags for Tagged_Present and Limited_Present appear in
3570 -- the N_Record_Definition node for a record definition appearing in
3571 -- the context of a record type definition.
3572
3573 ----------------------------
3574 -- 3.8 Record Definition --
3575 ----------------------------
3576
3577 -- RECORD_DEFINITION ::=
3578 -- record
3579 -- COMPONENT_LIST
3580 -- end record
3581 -- | null record
3582
3583 -- Note: the Abstract_Present, Tagged_Present, and Limited_Present
3584 -- flags appear only for a record definition appearing in a record
3585 -- type definition.
3586
3587 -- Note: the NULL RECORD case is not permitted in Ada 83
3588
3589 -- N_Record_Definition
3590 -- Sloc points to RECORD or NULL
3591 -- End_Label (Node4) (set to Empty if internally generated record)
3592 -- Abstract_Present (Flag4)
3593 -- Tagged_Present (Flag15)
3594 -- Limited_Present (Flag17)
3595 -- Component_List (Node1) empty in null record case
3596 -- Null_Present (Flag13) set in null record case
3597 -- Task_Present (Flag5) set in task interfaces
3598 -- Protected_Present (Flag6) set in protected interfaces
3599 -- Synchronized_Present (Flag7) set in interfaces
3600 -- Interface_Present (Flag16) set in abstract interfaces
3601 -- Interface_List (List2) (set to No_List if none)
3602
3603 -- Note: Task_Present, Protected_Present, Synchronized _Present,
3604 -- Interface_List and Interface_Present are used for abstract
3605 -- interfaces (see comments for INTERFACE_TYPE_DEFINITION).
3606
3607 -------------------------
3608 -- 3.8 Component List --
3609 -------------------------
3610
3611 -- COMPONENT_LIST ::=
3612 -- COMPONENT_ITEM {COMPONENT_ITEM}
3613 -- | {COMPONENT_ITEM} VARIANT_PART
3614 -- | null;
3615
3616 -- N_Component_List
3617 -- Sloc points to first token of component list
3618 -- Component_Items (List3)
3619 -- Variant_Part (Node4) (set to Empty if no variant part)
3620 -- Null_Present (Flag13)
3621
3622 -------------------------
3623 -- 3.8 Component Item --
3624 -------------------------
3625
3626 -- COMPONENT_ITEM ::= COMPONENT_DECLARATION | REPRESENTATION_CLAUSE
3627
3628 -- Note: A component item can also be a pragma, and in the tree
3629 -- that is obtained after semantic processing, a component item
3630 -- can be an N_Null node resulting from a non-recognized pragma.
3631
3632 --------------------------------
3633 -- 3.8 Component Declaration --
3634 --------------------------------
3635
3636 -- COMPONENT_DECLARATION ::=
3637 -- DEFINING_IDENTIFIER_LIST : COMPONENT_DEFINITION
3638 -- [:= DEFAULT_EXPRESSION]
3639 -- [ASPECT_SPECIFICATIONS];
3640
3641 -- Note: although the syntax does not permit a component definition to
3642 -- be an anonymous array (and the parser will diagnose such an attempt
3643 -- with an appropriate message), it is possible for anonymous arrays
3644 -- to appear as component definitions. The semantics and back end handle
3645 -- this case properly, and the expander in fact generates such cases.
3646
3647 -- Although the syntax allows multiple identifiers in the list, the
3648 -- semantics is as though successive declarations were given with the
3649 -- same component definition and expression components. To simplify
3650 -- semantic processing, the parser represents a multiple declaration
3651 -- case as a sequence of single declarations, using the More_Ids and
3652 -- Prev_Ids flags to preserve the original source form as described
3653 -- in the section on "Handling of Defining Identifier Lists".
3654
3655 -- N_Component_Declaration
3656 -- Sloc points to first identifier
3657 -- Defining_Identifier (Node1)
3658 -- Component_Definition (Node4)
3659 -- Expression (Node3) (set to Empty if no default expression)
3660 -- More_Ids (Flag5) (set to False if no more identifiers in list)
3661 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
3662
3663 -------------------------
3664 -- 3.8.1 Variant Part --
3665 -------------------------
3666
3667 -- VARIANT_PART ::=
3668 -- case discriminant_DIRECT_NAME is
3669 -- VARIANT {VARIANT}
3670 -- end case;
3671
3672 -- Note: the variants list can contain pragmas as well as variants.
3673 -- In a properly formed program there is at least one variant.
3674
3675 -- N_Variant_Part
3676 -- Sloc points to CASE
3677 -- Name (Node2)
3678 -- Variants (List1)
3679
3680 --------------------
3681 -- 3.8.1 Variant --
3682 --------------------
3683
3684 -- VARIANT ::=
3685 -- when DISCRETE_CHOICE_LIST =>
3686 -- COMPONENT_LIST
3687
3688 -- N_Variant
3689 -- Sloc points to WHEN
3690 -- Discrete_Choices (List4)
3691 -- Component_List (Node1)
3692 -- Enclosing_Variant (Node2-Sem)
3693 -- Present_Expr (Uint3-Sem)
3694 -- Dcheck_Function (Node5-Sem)
3695 -- Has_SP_Choice (Flag15-Sem)
3696
3697 -- Note: in the list of Discrete_Choices, the tree passed to the back
3698 -- end does not have choice entries corresponding to names of statically
3699 -- predicated subtypes. Such entries are always expanded out to the list
3700 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
3701 -- mode also has this expansion, but done with a proper Rewrite call on
3702 -- the N_Variant node so that ASIS can properly retrieve the original.
3703
3704 ---------------------------------
3705 -- 3.8.1 Discrete Choice List --
3706 ---------------------------------
3707
3708 -- DISCRETE_CHOICE_LIST ::= DISCRETE_CHOICE {| DISCRETE_CHOICE}
3709
3710 ----------------------------
3711 -- 3.8.1 Discrete Choice --
3712 ----------------------------
3713
3714 -- DISCRETE_CHOICE ::= EXPRESSION | DISCRETE_RANGE | others
3715
3716 -- Note: in Ada 83 mode, the expression must be a simple expression
3717
3718 -- The only choice that appears explicitly is the OTHERS choice, as
3719 -- defined here. Other cases of discrete choice (expression and
3720 -- discrete range) appear directly. This production is also used
3721 -- for the OTHERS possibility of an exception choice.
3722
3723 -- Note: in accordance with the syntax, the parser does not check that
3724 -- OTHERS appears at the end on its own in a choice list context. This
3725 -- is a semantic check.
3726
3727 -- N_Others_Choice
3728 -- Sloc points to OTHERS
3729 -- Others_Discrete_Choices (List1-Sem)
3730 -- All_Others (Flag11-Sem)
3731
3732 ----------------------------------
3733 -- 3.9.1 Record Extension Part --
3734 ----------------------------------
3735
3736 -- RECORD_EXTENSION_PART ::= with RECORD_DEFINITION
3737
3738 -- Note: record extension parts are not permitted in Ada 83 mode
3739
3740 --------------------------------------
3741 -- 3.9.4 Interface Type Definition --
3742 --------------------------------------
3743
3744 -- INTERFACE_TYPE_DEFINITION ::=
3745 -- [limited | task | protected | synchronized]
3746 -- interface [interface_list]
3747
3748 -- Note: Interfaces are implemented with N_Record_Definition and
3749 -- N_Derived_Type_Definition nodes because most of the support
3750 -- for the analysis of abstract types has been reused to
3751 -- analyze abstract interfaces.
3752
3753 ----------------------------------
3754 -- 3.10 Access Type Definition --
3755 ----------------------------------
3756
3757 -- ACCESS_TYPE_DEFINITION ::=
3758 -- ACCESS_TO_OBJECT_DEFINITION
3759 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3760
3761 --------------------------
3762 -- 3.10 Null Exclusion --
3763 --------------------------
3764
3765 -- NULL_EXCLUSION ::= not null
3766
3767 ---------------------------------------
3768 -- 3.10 Access To Object Definition --
3769 ---------------------------------------
3770
3771 -- ACCESS_TO_OBJECT_DEFINITION ::=
3772 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER]
3773 -- SUBTYPE_INDICATION
3774
3775 -- N_Access_To_Object_Definition
3776 -- Sloc points to ACCESS
3777 -- All_Present (Flag15)
3778 -- Null_Exclusion_Present (Flag11)
3779 -- Null_Excluding_Subtype (Flag16)
3780 -- Subtype_Indication (Node5)
3781 -- Constant_Present (Flag17)
3782
3783 -----------------------------------
3784 -- 3.10 General Access Modifier --
3785 -----------------------------------
3786
3787 -- GENERAL_ACCESS_MODIFIER ::= all | constant
3788
3789 -- Note: general access modifiers are not permitted in Ada 83 mode
3790
3791 -- There is no explicit node in the tree for general access modifier.
3792 -- Instead the All_Present or Constant_Present flags are set in the
3793 -- parent node.
3794
3795 -------------------------------------------
3796 -- 3.10 Access To Subprogram Definition --
3797 -------------------------------------------
3798
3799 -- ACCESS_TO_SUBPROGRAM_DEFINITION
3800 -- [NULL_EXCLUSION] access [protected] procedure PARAMETER_PROFILE
3801 -- | [NULL_EXCLUSION] access [protected] function
3802 -- PARAMETER_AND_RESULT_PROFILE
3803
3804 -- Note: access to subprograms are not permitted in Ada 83 mode
3805
3806 -- N_Access_Function_Definition
3807 -- Sloc points to ACCESS
3808 -- Null_Exclusion_Present (Flag11)
3809 -- Null_Exclusion_In_Return_Present (Flag14)
3810 -- Protected_Present (Flag6)
3811 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3812 -- Result_Definition (Node4) result subtype (subtype mark or access def)
3813
3814 -- N_Access_Procedure_Definition
3815 -- Sloc points to ACCESS
3816 -- Null_Exclusion_Present (Flag11)
3817 -- Protected_Present (Flag6)
3818 -- Parameter_Specifications (List3) (set to No_List if no formal part)
3819
3820 -----------------------------
3821 -- 3.10 Access Definition --
3822 -----------------------------
3823
3824 -- ACCESS_DEFINITION ::=
3825 -- [NULL_EXCLUSION] access [GENERAL_ACCESS_MODIFIER] SUBTYPE_MARK
3826 -- | ACCESS_TO_SUBPROGRAM_DEFINITION
3827
3828 -- Note: access to subprograms are an Ada 2005 (AI-254) extension
3829
3830 -- N_Access_Definition
3831 -- Sloc points to ACCESS
3832 -- Null_Exclusion_Present (Flag11)
3833 -- All_Present (Flag15)
3834 -- Constant_Present (Flag17)
3835 -- Subtype_Mark (Node4)
3836 -- Access_To_Subprogram_Definition (Node3) (set to Empty if not present)
3837
3838 -----------------------------------------
3839 -- 3.10.1 Incomplete Type Declaration --
3840 -----------------------------------------
3841
3842 -- INCOMPLETE_TYPE_DECLARATION ::=
3843 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
3844
3845 -- N_Incomplete_Type_Declaration
3846 -- Sloc points to TYPE
3847 -- Defining_Identifier (Node1)
3848 -- Discriminant_Specifications (List4) (set to No_List if no
3849 -- discriminant part, or if the discriminant part is an
3850 -- unknown discriminant part)
3851 -- Premature_Use (Node5-Sem) used for improved diagnostics.
3852 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
3853 -- Tagged_Present (Flag15)
3854
3855 ----------------------------
3856 -- 3.11 Declarative Part --
3857 ----------------------------
3858
3859 -- DECLARATIVE_PART ::= {DECLARATIVE_ITEM}
3860
3861 -- Note: although the parser enforces the syntactic requirement that
3862 -- a declarative part can contain only declarations, the semantic
3863 -- processing may add statements to the list of actions in a
3864 -- declarative part, so the code generator should be prepared
3865 -- to accept a statement in this position.
3866
3867 ----------------------------
3868 -- 3.11 Declarative Item --
3869 ----------------------------
3870
3871 -- DECLARATIVE_ITEM ::= BASIC_DECLARATIVE_ITEM | BODY
3872
3873 ----------------------------------
3874 -- 3.11 Basic Declarative Item --
3875 ----------------------------------
3876
3877 -- BASIC_DECLARATIVE_ITEM ::=
3878 -- BASIC_DECLARATION | REPRESENTATION_CLAUSE | USE_CLAUSE
3879
3880 ----------------
3881 -- 3.11 Body --
3882 ----------------
3883
3884 -- BODY ::= PROPER_BODY | BODY_STUB
3885
3886 -----------------------
3887 -- 3.11 Proper Body --
3888 -----------------------
3889
3890 -- PROPER_BODY ::=
3891 -- SUBPROGRAM_BODY | PACKAGE_BODY | TASK_BODY | PROTECTED_BODY
3892
3893 ---------------
3894 -- 4.1 Name --
3895 ---------------
3896
3897 -- NAME ::=
3898 -- DIRECT_NAME | EXPLICIT_DEREFERENCE
3899 -- | INDEXED_COMPONENT | SLICE
3900 -- | SELECTED_COMPONENT | ATTRIBUTE_REFERENCE
3901 -- | TYPE_CONVERSION | FUNCTION_CALL
3902 -- | CHARACTER_LITERAL
3903
3904 ----------------------
3905 -- 4.1 Direct Name --
3906 ----------------------
3907
3908 -- DIRECT_NAME ::= IDENTIFIER | OPERATOR_SYMBOL
3909
3910 -----------------
3911 -- 4.1 Prefix --
3912 -----------------
3913
3914 -- PREFIX ::= NAME | IMPLICIT_DEREFERENCE
3915
3916 -------------------------------
3917 -- 4.1 Explicit Dereference --
3918 -------------------------------
3919
3920 -- EXPLICIT_DEREFERENCE ::= NAME . all
3921
3922 -- N_Explicit_Dereference
3923 -- Sloc points to ALL
3924 -- Prefix (Node3)
3925 -- Actual_Designated_Subtype (Node4-Sem)
3926 -- Has_Dereference_Action (Flag13-Sem)
3927 -- Atomic_Sync_Required (Flag14-Sem)
3928 -- plus fields for expression
3929
3930 -------------------------------
3931 -- 4.1 Implicit Dereference --
3932 -------------------------------
3933
3934 -- IMPLICIT_DEREFERENCE ::= NAME
3935
3936 ------------------------------
3937 -- 4.1.1 Indexed Component --
3938 ------------------------------
3939
3940 -- INDEXED_COMPONENT ::= PREFIX (EXPRESSION {, EXPRESSION})
3941
3942 -- Note: the parser may generate this node in some situations where it
3943 -- should be a function call. The semantic pass must correct this
3944 -- misidentification (which is inevitable at the parser level).
3945
3946 -- N_Indexed_Component
3947 -- Sloc contains a copy of the Sloc value of the Prefix
3948 -- Prefix (Node3)
3949 -- Expressions (List1)
3950 -- Generalized_Indexing (Node4-Sem)
3951 -- Atomic_Sync_Required (Flag14-Sem)
3952 -- plus fields for expression
3953
3954 -- Note: if any of the subscripts requires a range check, then the
3955 -- Do_Range_Check flag is set on the corresponding expression, with
3956 -- the index type being determined from the type of the Prefix, which
3957 -- references the array being indexed.
3958
3959 -- Note: in a fully analyzed and expanded indexed component node, and
3960 -- hence in any such node that gigi sees, if the prefix is an access
3961 -- type, then an explicit dereference operation has been inserted.
3962
3963 ------------------
3964 -- 4.1.2 Slice --
3965 ------------------
3966
3967 -- SLICE ::= PREFIX (DISCRETE_RANGE)
3968
3969 -- Note: an implicit subtype is created to describe the resulting
3970 -- type, so that the bounds of this type are the bounds of the slice.
3971
3972 -- N_Slice
3973 -- Sloc points to first token of prefix
3974 -- Prefix (Node3)
3975 -- Discrete_Range (Node4)
3976 -- plus fields for expression
3977
3978 -------------------------------
3979 -- 4.1.3 Selected Component --
3980 -------------------------------
3981
3982 -- SELECTED_COMPONENT ::= PREFIX . SELECTOR_NAME
3983
3984 -- Note: selected components that are semantically expanded names get
3985 -- changed during semantic processing into the separate N_Expanded_Name
3986 -- node. See description of this node in the section on semantic nodes.
3987
3988 -- N_Selected_Component
3989 -- Sloc points to the period
3990 -- Prefix (Node3)
3991 -- Selector_Name (Node2)
3992 -- Associated_Node (Node4-Sem)
3993 -- Do_Discriminant_Check (Flag3-Sem)
3994 -- Is_In_Discriminant_Check (Flag11-Sem)
3995 -- Atomic_Sync_Required (Flag14-Sem)
3996 -- Is_Prefixed_Call (Flag17-Sem)
3997 -- plus fields for expression
3998
3999 --------------------------
4000 -- 4.1.3 Selector Name --
4001 --------------------------
4002
4003 -- SELECTOR_NAME ::= IDENTIFIER | CHARACTER_LITERAL | OPERATOR_SYMBOL
4004
4005 --------------------------------
4006 -- 4.1.4 Attribute Reference --
4007 --------------------------------
4008
4009 -- ATTRIBUTE_REFERENCE ::= PREFIX ' ATTRIBUTE_DESIGNATOR
4010
4011 -- Note: the syntax is quite ambiguous at this point. Consider:
4012
4013 -- A'Length (X) X is part of the attribute designator
4014 -- A'Pos (X) X is an explicit actual parameter of function A'Pos
4015 -- A'Class (X) X is the expression of a type conversion
4016
4017 -- It would be possible for the parser to distinguish these cases
4018 -- by looking at the attribute identifier. However, that would mean
4019 -- more work in introducing new implementation defined attributes,
4020 -- and also it would mean that special processing for attributes
4021 -- would be scattered around, instead of being centralized in the
4022 -- semantic routine that handles an N_Attribute_Reference node.
4023 -- Consequently, the parser in all the above cases stores the
4024 -- expression (X in these examples) as a single element list in
4025 -- in the Expressions field of the N_Attribute_Reference node.
4026
4027 -- Similarly, for attributes like Max which take two arguments,
4028 -- we store the two arguments as a two element list in the
4029 -- Expressions field. Of course it is clear at parse time that
4030 -- this case is really a function call with an attribute as the
4031 -- prefix, but it turns out to be convenient to handle the two
4032 -- argument case in a similar manner to the one argument case,
4033 -- and indeed in general the parser will accept any number of
4034 -- expressions in this position and store them as a list in the
4035 -- attribute reference node. This allows for future addition of
4036 -- attributes that take more than two arguments.
4037
4038 -- Note: named associates are not permitted in function calls where
4039 -- the function is an attribute (see RM 6.4(3)) so it is legitimate
4040 -- to skip the normal subprogram argument processing.
4041
4042 -- Note: for the attributes whose designators are technically keywords,
4043 -- i.e. digits, access, delta, range, the Attribute_Name field contains
4044 -- the corresponding name, even though no identifier is involved.
4045
4046 -- Note: the generated code may contain stream attributes applied to
4047 -- limited types for which no stream routines exist officially. In such
4048 -- case, the result is to use the stream attribute for the underlying
4049 -- full type, or in the case of a protected type, the components
4050 -- (including any discriminants) are merely streamed in order.
4051
4052 -- See Exp_Attr for a complete description of which attributes are
4053 -- passed onto Gigi, and which are handled entirely by the front end.
4054
4055 -- Gigi restriction: For the Pos attribute, the prefix cannot be
4056 -- a non-standard enumeration type or a nonzero/zero semantics
4057 -- boolean type, so the value is simply the stored representation.
4058
4059 -- Gigi requirement: For the Mechanism_Code attribute, if the prefix
4060 -- references a subprogram that is a renaming, then the front end must
4061 -- rewrite the attribute to refer directly to the renamed entity.
4062
4063 -- Note: syntactically the prefix of an attribute reference must be a
4064 -- name, and this (somewhat artificial) requirement is enforced by the
4065 -- parser. However, for many attributes, such as 'Valid, it is quite
4066 -- reasonable to apply the attribute to any value, and hence to any
4067 -- expression. Internally in the tree, the prefix is an expression which
4068 -- does not have to be a name, and this is handled fine by the semantic
4069 -- analysis and expansion, and back ends. This arises for the case of
4070 -- attribute references built by the expander (e.g. 'Valid for the case
4071 -- of an implicit validity check).
4072
4073 -- Note: In generated code, the Address and Unrestricted_Access
4074 -- attributes can be applied to any expression, and the meaning is
4075 -- to create an object containing the value (the object is in the
4076 -- current stack frame), and pass the address of this value. If the
4077 -- Must_Be_Byte_Aligned flag is set, then the object whose address
4078 -- is taken must be on a byte (storage unit) boundary, and if it is
4079 -- not (or may not be), then the generated code must create a copy
4080 -- that is byte aligned, and pass the address of this copy.
4081
4082 -- N_Attribute_Reference
4083 -- Sloc points to apostrophe
4084 -- Prefix (Node3) (general expression, see note above)
4085 -- Attribute_Name (Name2) identifier name from attribute designator
4086 -- Expressions (List1) (set to No_List if no associated expressions)
4087 -- Entity (Node4-Sem) used if the attribute yields a type
4088 -- Associated_Node (Node4-Sem)
4089 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4090 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4091 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
4092 -- Header_Size_Added (Flag11-Sem)
4093 -- Redundant_Use (Flag13-Sem)
4094 -- Must_Be_Byte_Aligned (Flag14-Sem)
4095 -- plus fields for expression
4096
4097 -- Note: in Modify_Tree_For_C mode, Max and Min attributes are expanded
4098 -- into equivalent if expressions, properly taking care of side effects.
4099
4100 ---------------------------------
4101 -- 4.1.4 Attribute Designator --
4102 ---------------------------------
4103
4104 -- ATTRIBUTE_DESIGNATOR ::=
4105 -- IDENTIFIER [(static_EXPRESSION)]
4106 -- | access | delta | digits
4107
4108 -- There is no explicit node in the tree for an attribute designator.
4109 -- Instead the Attribute_Name and Expressions fields of the parent
4110 -- node (N_Attribute_Reference node) hold the information.
4111
4112 -- Note: if ACCESS, DELTA, or DIGITS appears in an attribute
4113 -- designator, then they are treated as identifiers internally
4114 -- rather than the keywords of the same name.
4115
4116 --------------------------------------
4117 -- 4.1.4 Range Attribute Reference --
4118 --------------------------------------
4119
4120 -- RANGE_ATTRIBUTE_REFERENCE ::= PREFIX ' RANGE_ATTRIBUTE_DESIGNATOR
4121
4122 -- A range attribute reference is represented in the tree using the
4123 -- normal N_Attribute_Reference node.
4124
4125 ---------------------------------------
4126 -- 4.1.4 Range Attribute Designator --
4127 ---------------------------------------
4128
4129 -- RANGE_ATTRIBUTE_DESIGNATOR ::= Range [(static_EXPRESSION)]
4130
4131 -- A range attribute designator is represented in the tree using the
4132 -- normal N_Attribute_Reference node.
4133
4134 --------------------
4135 -- 4.3 Aggregate --
4136 --------------------
4137
4138 -- AGGREGATE ::=
4139 -- RECORD_AGGREGATE | EXTENSION_AGGREGATE | ARRAY_AGGREGATE
4140
4141 -----------------------------
4142 -- 4.3.1 Record Aggregate --
4143 -----------------------------
4144
4145 -- RECORD_AGGREGATE ::= (RECORD_COMPONENT_ASSOCIATION_LIST)
4146
4147 -- N_Aggregate
4148 -- Sloc points to left parenthesis
4149 -- Expressions (List1) (set to No_List if none or null record case)
4150 -- Component_Associations (List2) (set to No_List if none)
4151 -- Null_Record_Present (Flag17)
4152 -- Aggregate_Bounds (Node3-Sem)
4153 -- Associated_Node (Node4-Sem)
4154 -- Compile_Time_Known_Aggregate (Flag18-Sem)
4155 -- Expansion_Delayed (Flag11-Sem)
4156 -- Has_Self_Reference (Flag13-Sem)
4157 -- Is_Homogeneous_Aggregate (Flag14)
4158 -- plus fields for expression
4159
4160 -- Note: this structure is used for both record and array aggregates
4161 -- since the two cases are not separable by the parser. The parser
4162 -- makes no attempt to enforce consistency here, so it is up to the
4163 -- semantic phase to make sure that the aggregate is consistent (i.e.
4164 -- that it is not a "half-and-half" case that mixes record and array
4165 -- syntax). In particular, for a record aggregate, the expressions
4166 -- field will be set if there are positional associations.
4167
4168 -- Note: N_Aggregate is not used for all aggregates; in particular,
4169 -- there is a separate node kind for extension aggregates.
4170
4171 -- Note: gigi/gcc can handle array aggregates correctly providing that
4172 -- they are entirely positional, and the array subtype involved has a
4173 -- known at compile time length and is not bit packed, or a convention
4174 -- Fortran array with more than one dimension. If these conditions
4175 -- are not met, then the front end must translate the aggregate into
4176 -- an appropriate set of assignments into a temporary.
4177
4178 -- Note: for the record aggregate case, gigi/gcc can handle most cases
4179 -- of record aggregates, including those for packed, and rep-claused
4180 -- records, and also variant records, providing that there are no
4181 -- variable length fields whose size is not known at compile time,
4182 -- and providing that the aggregate is presented in fully named form.
4183
4184 -- The other situation in which array aggregates and record aggregates
4185 -- cannot be passed to the back end is if assignment to one or more
4186 -- components itself needs expansion, e.g. in the case of an assignment
4187 -- of an object of a controlled type. In such cases, the front end
4188 -- must expand the aggregate to a series of assignments, and apply
4189 -- the required expansion to the individual assignment statements.
4190
4191 ----------------------------------------------
4192 -- 4.3.1 Record Component Association List --
4193 ----------------------------------------------
4194
4195 -- RECORD_COMPONENT_ASSOCIATION_LIST ::=
4196 -- RECORD_COMPONENT_ASSOCIATION {, RECORD_COMPONENT_ASSOCIATION}
4197 -- | null record
4198
4199 -- There is no explicit node in the tree for a record component
4200 -- association list. Instead the Null_Record_Present flag is set in
4201 -- the parent node for the NULL RECORD case.
4202
4203 ------------------------------------------------------
4204 -- 4.3.1 Record Component Association (also 4.3.3) --
4205 ------------------------------------------------------
4206
4207 -- RECORD_COMPONENT_ASSOCIATION ::=
4208 -- [COMPONENT_CHOICE_LIST =>] EXPRESSION
4209
4210 -- N_Component_Association
4211 -- Sloc points to first selector name
4212 -- Choices (List1)
4213 -- Loop_Actions (List2-Sem)
4214 -- Expression (Node3) (empty if Box_Present)
4215 -- Box_Present (Flag15)
4216 -- Inherited_Discriminant (Flag13)
4217
4218 -- Note: this structure is used for both record component associations
4219 -- and array component associations, since the two cases aren't always
4220 -- separable by the parser. The choices list may represent either a
4221 -- list of selector names in the record aggregate case, or a list of
4222 -- discrete choices in the array aggregate case or an N_Others_Choice
4223 -- node (which appears as a singleton list). Box_Present gives support
4224 -- to Ada 2005 (AI-287).
4225
4226 ----------------------------------
4227 -- 4.3.1 Component Choice List --
4228 ----------------------------------
4229
4230 -- COMPONENT_CHOICE_LIST ::=
4231 -- component_SELECTOR_NAME {| component_SELECTOR_NAME}
4232 -- | others
4233
4234 -- The entries of a component choice list appear in the Choices list of
4235 -- the associated N_Component_Association, as either selector names, or
4236 -- as an N_Others_Choice node.
4237
4238 --------------------------------
4239 -- 4.3.2 Extension Aggregate --
4240 --------------------------------
4241
4242 -- EXTENSION_AGGREGATE ::=
4243 -- (ANCESTOR_PART with RECORD_COMPONENT_ASSOCIATION_LIST)
4244
4245 -- Note: extension aggregates are not permitted in Ada 83 mode
4246
4247 -- N_Extension_Aggregate
4248 -- Sloc points to left parenthesis
4249 -- Ancestor_Part (Node3)
4250 -- Associated_Node (Node4-Sem)
4251 -- Expressions (List1) (set to No_List if none or null record case)
4252 -- Component_Associations (List2) (set to No_List if none)
4253 -- Null_Record_Present (Flag17)
4254 -- Expansion_Delayed (Flag11-Sem)
4255 -- Has_Self_Reference (Flag13-Sem)
4256 -- plus fields for expression
4257
4258 --------------------------
4259 -- 4.3.2 Ancestor Part --
4260 --------------------------
4261
4262 -- ANCESTOR_PART ::= EXPRESSION | SUBTYPE_MARK
4263
4264 ----------------------------
4265 -- 4.3.3 Array Aggregate --
4266 ----------------------------
4267
4268 -- ARRAY_AGGREGATE ::=
4269 -- POSITIONAL_ARRAY_AGGREGATE | NAMED_ARRAY_AGGREGATE
4270
4271 ---------------------------------------
4272 -- 4.3.3 Positional Array Aggregate --
4273 ---------------------------------------
4274
4275 -- POSITIONAL_ARRAY_AGGREGATE ::=
4276 -- (EXPRESSION, EXPRESSION {, EXPRESSION})
4277 -- | (EXPRESSION {, EXPRESSION}, others => EXPRESSION)
4278
4279 -- See Record_Aggregate (4.3.1) for node structure
4280
4281 ----------------------------------
4282 -- 4.3.3 Named Array Aggregate --
4283 ----------------------------------
4284
4285 -- NAMED_ARRAY_AGGREGATE ::=
4286 -- (ARRAY_COMPONENT_ASSOCIATION {, ARRAY_COMPONENT_ASSOCIATION})
4287
4288 -- See Record_Aggregate (4.3.1) for node structure
4289
4290 ----------------------------------------
4291 -- 4.3.3 Array Component Association --
4292 ----------------------------------------
4293
4294 -- ARRAY_COMPONENT_ASSOCIATION ::=
4295 -- DISCRETE_CHOICE_LIST => EXPRESSION
4296 -- | ITERATED_COMPONENT_ASSOCIATION
4297
4298 -- See Record_Component_Association (4.3.1) for node structure
4299 -- The iterated_component_association is introduced into the
4300 -- Corrigendum of Ada_2012 by AI12-061.
4301
4302 ------------------------------------------
4303 -- 4.3.3 Iterated component Association --
4304 ------------------------------------------
4305
4306 -- ITERATED_COMPONENT_ASSOCIATION ::=
4307 -- for DEFINING_IDENTIFIER in DISCRETE_CHOICE_LIST => EXPRESSION
4308
4309 -- N_Iterated_Component_Association
4310 -- Sloc points to FOR
4311 -- Defining_Identifier (Node1)
4312 -- Loop_Actions (List2-Sem)
4313 -- Expression (Node3)
4314 -- Discrete_Choices (List4)
4315 -- Box_Present (Flag15)
4316
4317 -- Note that Box_Present is always False, but it is intentionally added
4318 -- for completeness.
4319
4320 ----------------------------
4321 -- 4.3.4 Delta Aggregate --
4322 ----------------------------
4323
4324 -- N_Delta_Aggregate
4325 -- Sloc points to left parenthesis
4326 -- Expression (Node3)
4327 -- Component_Associations (List2)
4328
4329 --------------------------------------------------
4330 -- 4.4 Expression/Relation/Term/Factor/Primary --
4331 --------------------------------------------------
4332
4333 -- EXPRESSION ::=
4334 -- RELATION {LOGICAL_OPERATOR RELATION}
4335
4336 -- CHOICE_EXPRESSION ::=
4337 -- CHOICE_RELATION {LOGICAL_OPERATOR CHOICE_RELATION}
4338
4339 -- CHOICE_RELATION ::=
4340 -- SIMPLE_EXPRESSION [RELATIONAL_OPERATOR SIMPLE_EXPRESSION]
4341
4342 -- RELATION ::=
4343 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4344 -- | RAISE_EXPRESSION
4345
4346 -- MEMBERSHIP_CHOICE_LIST ::=
4347 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4348
4349 -- MEMBERSHIP_CHOICE ::=
4350 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4351
4352 -- LOGICAL_OPERATOR ::= and | and then | or | or else | xor
4353
4354 -- SIMPLE_EXPRESSION ::=
4355 -- [UNARY_ADDING_OPERATOR] TERM {BINARY_ADDING_OPERATOR TERM}
4356
4357 -- TERM ::= FACTOR {MULTIPLYING_OPERATOR FACTOR}
4358
4359 -- FACTOR ::= PRIMARY [** PRIMARY] | abs PRIMARY | not PRIMARY
4360
4361 -- No nodes are generated for any of these constructs. Instead, the
4362 -- node for the operator appears directly. When we refer to an
4363 -- expression in this description, we mean any of the possible
4364 -- constituent components of an expression (e.g. identifier is
4365 -- an example of an expression).
4366
4367 -- Note: the above syntax is that Ada 2012 syntax which restricts
4368 -- choice relations to simple expressions to avoid ambiguities in
4369 -- some contexts with set membership notation. It has been decided
4370 -- that in retrospect, the Ada 95 change allowing general expressions
4371 -- in this context was a mistake, so we have reverted to the above
4372 -- syntax in Ada 95 and Ada 2005 modes (the restriction to simple
4373 -- expressions was there in Ada 83 from the start).
4374
4375 ------------------
4376 -- 4.4 Primary --
4377 ------------------
4378
4379 -- PRIMARY ::=
4380 -- NUMERIC_LITERAL | null
4381 -- | STRING_LITERAL | AGGREGATE
4382 -- | NAME | QUALIFIED_EXPRESSION
4383 -- | ALLOCATOR | (EXPRESSION)
4384
4385 -- Usually there is no explicit node in the tree for primary. Instead
4386 -- the constituent (e.g. AGGREGATE) appears directly. There are two
4387 -- exceptions. First, there is an explicit node for a null primary.
4388
4389 -- N_Null
4390 -- Sloc points to NULL
4391 -- plus fields for expression
4392
4393 -- Second, the case of (EXPRESSION) is handled specially. Ada requires
4394 -- that the parser keep track of which subexpressions are enclosed
4395 -- in parentheses, and how many levels of parentheses are used. This
4396 -- information is required for optimization purposes, and also for
4397 -- some semantic checks (e.g. (((1))) in a procedure spec does not
4398 -- conform with ((((1)))) in the body).
4399
4400 -- The parentheses are recorded by keeping a Paren_Count field in every
4401 -- subexpression node (it is actually present in all nodes, but only
4402 -- used in subexpression nodes). This count records the number of
4403 -- levels of parentheses. If the number of levels in the source exceeds
4404 -- the maximum accommodated by this count, then the count is simply left
4405 -- at the maximum value. This means that there are some pathological
4406 -- cases of failure to detect conformance failures (e.g. an expression
4407 -- with 500 levels of parens will conform with one with 501 levels),
4408 -- but we do not need to lose sleep over this.
4409
4410 -- Historical note: in versions of GNAT prior to 1.75, there was a node
4411 -- type N_Parenthesized_Expression used to accurately record unlimited
4412 -- numbers of levels of parentheses. However, it turned out to be a
4413 -- real nuisance to have to take into account the possible presence of
4414 -- this node during semantic analysis, since basically parentheses have
4415 -- zero relevance to semantic analysis.
4416
4417 -- Note: the level of parentheses always present in things like
4418 -- aggregates does not count, only the parentheses in the primary
4419 -- (EXPRESSION) affect the setting of the Paren_Count field.
4420
4421 -- 2nd Note: the contents of the Expression field must be ignored (i.e.
4422 -- treated as though it were Empty) if No_Initialization is set True.
4423
4424 --------------------------------------
4425 -- 4.5 Short-Circuit Control Forms --
4426 --------------------------------------
4427
4428 -- EXPRESSION ::=
4429 -- RELATION {and then RELATION} | RELATION {or else RELATION}
4430
4431 -- Gigi restriction: For both these control forms, the operand and
4432 -- result types are always Standard.Boolean. The expander inserts the
4433 -- required conversion operations where needed to ensure this is the
4434 -- case.
4435
4436 -- N_And_Then
4437 -- Sloc points to AND of AND THEN
4438 -- Left_Opnd (Node2)
4439 -- Right_Opnd (Node3)
4440 -- Actions (List1-Sem)
4441 -- plus fields for expression
4442
4443 -- N_Or_Else
4444 -- Sloc points to OR of OR ELSE
4445 -- Left_Opnd (Node2)
4446 -- Right_Opnd (Node3)
4447 -- Actions (List1-Sem)
4448 -- plus fields for expression
4449
4450 -- Note: The Actions field is used to hold actions associated with
4451 -- the right hand operand. These have to be treated specially since
4452 -- they are not unconditionally executed. See Insert_Actions for a
4453 -- more detailed description of how these actions are handled.
4454
4455 ---------------------------
4456 -- 4.5 Membership Tests --
4457 ---------------------------
4458
4459 -- RELATION ::=
4460 -- SIMPLE_EXPRESSION [not] in MEMBERSHIP_CHOICE_LIST
4461
4462 -- MEMBERSHIP_CHOICE_LIST ::=
4463 -- MEMBERSHIP_CHOICE {'|' MEMBERSHIP CHOICE}
4464
4465 -- MEMBERSHIP_CHOICE ::=
4466 -- CHOICE_EXPRESSION | RANGE | SUBTYPE_MARK
4467
4468 -- Note: although the grammar above allows only a range or a subtype
4469 -- mark, the parser in fact will accept any simple expression in place
4470 -- of a subtype mark. This means that the semantic analyzer must be able
4471 -- to deal with, and diagnose a simple expression other than a name for
4472 -- the right operand. This simplifies error recovery in the parser.
4473
4474 -- The Alternatives field below is present only if there is more than
4475 -- one Membership_Choice present (which is legitimate only in Ada 2012
4476 -- mode) in which case Right_Opnd is Empty, and Alternatives contains
4477 -- the list of choices. In the tree passed to the back end, Alternatives
4478 -- is always No_List, and Right_Opnd is set (i.e. the expansion circuit
4479 -- expands out the complex set membership case using simple membership
4480 -- and equality operations).
4481
4482 -- Should we rename Alternatives here to Membership_Choices ???
4483
4484 -- N_In
4485 -- Sloc points to IN
4486 -- Left_Opnd (Node2)
4487 -- Right_Opnd (Node3)
4488 -- Alternatives (List4) (set to No_List if only one set alternative)
4489 -- No_Minimize_Eliminate (Flag17)
4490 -- plus fields for expression
4491
4492 -- N_Not_In
4493 -- Sloc points to NOT of NOT IN
4494 -- Left_Opnd (Node2)
4495 -- Right_Opnd (Node3)
4496 -- Alternatives (List4) (set to No_List if only one set alternative)
4497 -- No_Minimize_Eliminate (Flag17)
4498 -- plus fields for expression
4499
4500 --------------------
4501 -- 4.5 Operators --
4502 --------------------
4503
4504 -- LOGICAL_OPERATOR ::= and | or | xor
4505
4506 -- RELATIONAL_OPERATOR ::= = | /= | < | <= | > | >=
4507
4508 -- BINARY_ADDING_OPERATOR ::= + | - | &
4509
4510 -- UNARY_ADDING_OPERATOR ::= + | -
4511
4512 -- MULTIPLYING_OPERATOR ::= * | / | mod | rem
4513
4514 -- HIGHEST_PRECEDENCE_OPERATOR ::= ** | abs | not
4515
4516 -- Gigi restriction: Gigi will never be given * / mod rem nodes with
4517 -- fixed-point operands. All handling of smalls for multiplication and
4518 -- division is handled by the front end (mod and rem result only from
4519 -- expansion). Gigi thus never needs to worry about small values (for
4520 -- other operators operating on fixed-point, e.g. addition, the small
4521 -- value does not have any semantic effect anyway, these are always
4522 -- integer operations.
4523
4524 -- Gigi restriction: For all operators taking Boolean operands, the
4525 -- type is always Standard.Boolean. The expander inserts the required
4526 -- conversion operations where needed to ensure this is the case.
4527
4528 -- N_Op_And
4529 -- Sloc points to AND
4530 -- Do_Length_Check (Flag4-Sem)
4531 -- plus fields for binary operator
4532 -- plus fields for expression
4533
4534 -- N_Op_Or
4535 -- Sloc points to OR
4536 -- Do_Length_Check (Flag4-Sem)
4537 -- plus fields for binary operator
4538 -- plus fields for expression
4539
4540 -- N_Op_Xor
4541 -- Sloc points to XOR
4542 -- Do_Length_Check (Flag4-Sem)
4543 -- plus fields for binary operator
4544 -- plus fields for expression
4545
4546 -- N_Op_Eq
4547 -- Sloc points to =
4548 -- plus fields for binary operator
4549 -- plus fields for expression
4550
4551 -- N_Op_Ne
4552 -- Sloc points to /=
4553 -- plus fields for binary operator
4554 -- plus fields for expression
4555
4556 -- N_Op_Lt
4557 -- Sloc points to <
4558 -- plus fields for binary operator
4559 -- plus fields for expression
4560
4561 -- N_Op_Le
4562 -- Sloc points to <=
4563 -- plus fields for binary operator
4564 -- plus fields for expression
4565
4566 -- N_Op_Gt
4567 -- Sloc points to >
4568 -- plus fields for binary operator
4569 -- plus fields for expression
4570
4571 -- N_Op_Ge
4572 -- Sloc points to >=
4573 -- plus fields for binary operator
4574 -- plus fields for expression
4575
4576 -- N_Op_Add
4577 -- Sloc points to + (binary)
4578 -- plus fields for binary operator
4579 -- plus fields for expression
4580
4581 -- N_Op_Subtract
4582 -- Sloc points to - (binary)
4583 -- plus fields for binary operator
4584 -- plus fields for expression
4585
4586 -- N_Op_Concat
4587 -- Sloc points to &
4588 -- Is_Component_Left_Opnd (Flag13-Sem)
4589 -- Is_Component_Right_Opnd (Flag14-Sem)
4590 -- plus fields for binary operator
4591 -- plus fields for expression
4592
4593 -- N_Op_Multiply
4594 -- Sloc points to *
4595 -- Rounded_Result (Flag18-Sem)
4596 -- plus fields for binary operator
4597 -- plus fields for expression
4598
4599 -- N_Op_Divide
4600 -- Sloc points to /
4601 -- Do_Division_Check (Flag13-Sem)
4602 -- Rounded_Result (Flag18-Sem)
4603 -- plus fields for binary operator
4604 -- plus fields for expression
4605
4606 -- N_Op_Mod
4607 -- Sloc points to MOD
4608 -- Do_Division_Check (Flag13-Sem)
4609 -- plus fields for binary operator
4610 -- plus fields for expression
4611
4612 -- N_Op_Rem
4613 -- Sloc points to REM
4614 -- Do_Division_Check (Flag13-Sem)
4615 -- plus fields for binary operator
4616 -- plus fields for expression
4617
4618 -- N_Op_Expon
4619 -- Sloc points to **
4620 -- Is_Power_Of_2_For_Shift (Flag13-Sem)
4621 -- plus fields for binary operator
4622 -- plus fields for expression
4623
4624 -- N_Op_Plus
4625 -- Sloc points to + (unary)
4626 -- plus fields for unary operator
4627 -- plus fields for expression
4628
4629 -- N_Op_Minus
4630 -- Sloc points to - (unary)
4631 -- plus fields for unary operator
4632 -- plus fields for expression
4633
4634 -- N_Op_Abs
4635 -- Sloc points to ABS
4636 -- plus fields for unary operator
4637 -- plus fields for expression
4638
4639 -- N_Op_Not
4640 -- Sloc points to NOT
4641 -- plus fields for unary operator
4642 -- plus fields for expression
4643
4644 -- See also shift operators in section B.2
4645
4646 -- Note on fixed-point operations passed to Gigi: For adding operators,
4647 -- the semantics is to treat these simply as integer operations, with
4648 -- the small values being ignored (the bounds are already stored in
4649 -- units of small, so that constraint checking works as usual). For the
4650 -- case of multiply/divide/rem/mod operations, Gigi will never see them.
4651
4652 -- Note on equality/inequality tests for records. In the expanded tree,
4653 -- record comparisons are always expanded to be a series of component
4654 -- comparisons, so the back end will never see an equality or inequality
4655 -- operation with operands of a record type.
4656
4657 -- Note on overflow handling: When the overflow checking mode is set to
4658 -- MINIMIZED or ELIMINATED, nodes for signed arithmetic operations may
4659 -- be modified to use a larger type for the operands and result. In
4660 -- the case where the computed range exceeds that of Long_Long_Integer,
4661 -- and we are running in ELIMINATED mode, the operator node will be
4662 -- changed to be a call to the appropriate routine in System.Bignums.
4663
4664 -- Note: In Modify_Tree_For_C mode, we do not generate an N_Op_Mod node
4665 -- for signed integer types (since there is no equivalent operator in
4666 -- C). Instead we rewrite such an operation in terms of REM (which is
4667 -- % in C) and other C-available operators.
4668
4669 ------------------------------------
4670 -- 4.5.7 Conditional Expressions --
4671 ------------------------------------
4672
4673 -- CONDITIONAL_EXPRESSION ::= IF_EXPRESSION | CASE_EXPRESSION
4674
4675 --------------------------
4676 -- 4.5.7 If Expression --
4677 --------------------------
4678
4679 -- IF_EXPRESSION ::=
4680 -- if CONDITION then DEPENDENT_EXPRESSION
4681 -- {elsif CONDITION then DEPENDENT_EXPRESSION}
4682 -- [else DEPENDENT_EXPRESSION]
4683
4684 -- DEPENDENT_EXPRESSION ::= EXPRESSION
4685
4686 -- Note: if we have (IF x1 THEN x2 ELSIF x3 THEN x4 ELSE x5) then it
4687 -- is represented as (IF x1 THEN x2 ELSE (IF x3 THEN x4 ELSE x5)) and
4688 -- the Is_Elsif flag is set on the inner if expression.
4689
4690 -- N_If_Expression
4691 -- Sloc points to IF or ELSIF keyword
4692 -- Expressions (List1)
4693 -- Then_Actions (List2-Sem)
4694 -- Else_Actions (List3-Sem)
4695 -- Is_Elsif (Flag13) (set if comes from ELSIF)
4696 -- Do_Overflow_Check (Flag17-Sem)
4697 -- plus fields for expression
4698
4699 -- Expressions here is a three-element list, whose first element is the
4700 -- condition, the second element is the dependent expression after THEN
4701 -- and the third element is the dependent expression after the ELSE
4702 -- (explicitly set to True if missing).
4703
4704 -- Note: the Then_Actions and Else_Actions fields are always set to
4705 -- No_List in the tree passed to the back end. These are used only
4706 -- for temporary processing purposes in the expander. Even though they
4707 -- are semantic fields, their parent pointers are set because analysis
4708 -- of actions nodes in those lists may generate additional actions that
4709 -- need to know their insertion point (for example for the creation of
4710 -- transient scopes).
4711
4712 -- Note: in the tree passed to the back end, if the result type is
4713 -- an unconstrained array, the if expression can only appears in the
4714 -- initializing expression of an object declaration (this avoids the
4715 -- back end having to create a variable length temporary on the fly).
4716
4717 ----------------------------
4718 -- 4.5.7 Case Expression --
4719 ----------------------------
4720
4721 -- CASE_EXPRESSION ::=
4722 -- case SELECTING_EXPRESSION is
4723 -- CASE_EXPRESSION_ALTERNATIVE
4724 -- {,CASE_EXPRESSION_ALTERNATIVE}
4725
4726 -- Note that the Alternatives cannot include pragmas (this contrasts
4727 -- with the situation of case statements where pragmas are allowed).
4728
4729 -- N_Case_Expression
4730 -- Sloc points to CASE
4731 -- Expression (Node3) (the selecting expression)
4732 -- Alternatives (List4) (the case expression alternatives)
4733 -- Do_Overflow_Check (Flag17-Sem)
4734
4735 ----------------------------------------
4736 -- 4.5.7 Case Expression Alternative --
4737 ----------------------------------------
4738
4739 -- CASE_EXPRESSION_ALTERNATIVE ::=
4740 -- when DISCRETE_CHOICE_LIST =>
4741 -- DEPENDENT_EXPRESSION
4742
4743 -- N_Case_Expression_Alternative
4744 -- Sloc points to WHEN
4745 -- Actions (List1)
4746 -- Discrete_Choices (List4)
4747 -- Expression (Node3)
4748 -- Has_SP_Choice (Flag15-Sem)
4749
4750 -- Note: The Actions field temporarily holds any actions associated with
4751 -- evaluation of the Expression. During expansion of the case expression
4752 -- these actions are wrapped into an N_Expressions_With_Actions node
4753 -- replacing the original expression.
4754
4755 -- Note: this node never appears in the tree passed to the back end,
4756 -- since the expander converts case expressions into case statements.
4757
4758 ---------------------------------
4759 -- 4.5.8 Quantified Expression --
4760 ---------------------------------
4761
4762 -- QUANTIFIED_EXPRESSION ::=
4763 -- for QUANTIFIER LOOP_PARAMETER_SPECIFICATION => PREDICATE
4764 -- | for QUANTIFIER ITERATOR_SPECIFICATION => PREDICATE
4765 --
4766 -- QUANTIFIER ::= all | some
4767
4768 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
4769 -- is present at a time, in which case the other one is empty.
4770
4771 -- N_Quantified_Expression
4772 -- Sloc points to FOR
4773 -- Iterator_Specification (Node2)
4774 -- Loop_Parameter_Specification (Node4)
4775 -- Condition (Node1)
4776 -- All_Present (Flag15)
4777
4778 --------------------------
4779 -- 4.6 Type Conversion --
4780 --------------------------
4781
4782 -- TYPE_CONVERSION ::=
4783 -- SUBTYPE_MARK (EXPRESSION) | SUBTYPE_MARK (NAME)
4784
4785 -- In the (NAME) case, the name is stored as the expression
4786
4787 -- Note: the parser never generates a type conversion node, since it
4788 -- looks like an indexed component which is generated by preference.
4789 -- The semantic pass must correct this misidentification.
4790
4791 -- Gigi handles conversions that involve no change in the root type,
4792 -- and also all conversions from integer to floating-point types.
4793 -- Conversions from floating-point to integer are only handled in
4794 -- the case where Float_Truncate flag set. Other conversions from
4795 -- floating-point to integer (involving rounding) and all conversions
4796 -- involving fixed-point types are handled by the expander.
4797
4798 -- Sprint syntax if Float_Truncate set: X^(Y)
4799 -- Sprint syntax if Conversion_OK set X?(Y)
4800 -- Sprint syntax if both flags set X?^(Y)
4801
4802 -- Note: If either the operand or result type is fixed-point, Gigi will
4803 -- only see a type conversion node with Conversion_OK set. The front end
4804 -- takes care of all handling of small's for fixed-point conversions.
4805
4806 -- N_Type_Conversion
4807 -- Sloc points to first token of subtype mark
4808 -- Subtype_Mark (Node4)
4809 -- Expression (Node3)
4810 -- Do_Discriminant_Check (Flag3-Sem)
4811 -- Do_Length_Check (Flag4-Sem)
4812 -- Float_Truncate (Flag11-Sem)
4813 -- Do_Tag_Check (Flag13-Sem)
4814 -- Conversion_OK (Flag14-Sem)
4815 -- Do_Overflow_Check (Flag17-Sem)
4816 -- Rounded_Result (Flag18-Sem)
4817 -- plus fields for expression
4818
4819 -- Note: if a range check is required, then the Do_Range_Check flag
4820 -- is set in the Expression with the check being done against the
4821 -- target type range (after the base type conversion, if any).
4822
4823 -------------------------------
4824 -- 4.7 Qualified Expression --
4825 -------------------------------
4826
4827 -- QUALIFIED_EXPRESSION ::=
4828 -- SUBTYPE_MARK ' (EXPRESSION) | SUBTYPE_MARK ' AGGREGATE
4829
4830 -- Note: the parentheses in the (EXPRESSION) case are deemed to enclose
4831 -- the expression, so the Expression field of this node always points
4832 -- to a parenthesized expression in this case (i.e. Paren_Count will
4833 -- always be non-zero for the referenced expression if it is not an
4834 -- aggregate).
4835
4836 -- N_Qualified_Expression
4837 -- Sloc points to apostrophe
4838 -- Subtype_Mark (Node4)
4839 -- Expression (Node3) expression or aggregate
4840 -- Is_Qualified_Universal_Literal (Flag4-Sem)
4841 -- plus fields for expression
4842
4843 --------------------
4844 -- 4.8 Allocator --
4845 --------------------
4846
4847 -- ALLOCATOR ::=
4848 -- new [SUBPOOL_SPECIFICATION] SUBTYPE_INDICATION
4849 -- | new [SUBPOOL_SPECIFICATION] QUALIFIED_EXPRESSION
4850 --
4851 -- SUBPOOL_SPECIFICATION ::= (subpool_handle_NAME)
4852
4853 -- Sprint syntax (when storage pool present)
4854 -- new xxx (storage_pool = pool)
4855 -- or
4856 -- new (subpool) xxx (storage_pool = pool)
4857
4858 -- N_Allocator
4859 -- Sloc points to NEW
4860 -- Expression (Node3) subtype indication or qualified expression
4861 -- Subpool_Handle_Name (Node4) (set to Empty if not present)
4862 -- Storage_Pool (Node1-Sem)
4863 -- Procedure_To_Call (Node2-Sem)
4864 -- Alloc_For_BIP_Return (Flag1-Sem)
4865 -- Null_Exclusion_Present (Flag11)
4866 -- No_Initialization (Flag13-Sem)
4867 -- Is_Static_Coextension (Flag14-Sem)
4868 -- Do_Storage_Check (Flag17-Sem)
4869 -- Is_Dynamic_Coextension (Flag18-Sem)
4870 -- plus fields for expression
4871
4872 -- Note: like all nodes, the N_Allocator has the Comes_From_Source flag.
4873 -- This flag has a special function in conjunction with the restriction
4874 -- No_Implicit_Heap_Allocations, which will be triggered if this flag
4875 -- is not set. This means that if a source allocator is replaced with
4876 -- a constructed allocator, the Comes_From_Source flag should be copied
4877 -- to the newly created allocator.
4878
4879 ---------------------------------
4880 -- 5.1 Sequence Of Statements --
4881 ---------------------------------
4882
4883 -- SEQUENCE_OF_STATEMENTS ::= STATEMENT {STATEMENT}
4884
4885 -- Note: Although the parser will not accept a declaration as a
4886 -- statement, the semantic analyzer may insert declarations (e.g.
4887 -- declarations of implicit types needed for execution of other
4888 -- statements) into a sequence of statements, so the code generator
4889 -- should be prepared to accept a declaration where a statement is
4890 -- expected. Note also that pragmas can appear as statements.
4891
4892 --------------------
4893 -- 5.1 Statement --
4894 --------------------
4895
4896 -- STATEMENT ::=
4897 -- {LABEL} SIMPLE_STATEMENT | {LABEL} COMPOUND_STATEMENT
4898
4899 -- There is no explicit node in the tree for a statement. Instead, the
4900 -- individual statement appears directly. Labels are treated as a
4901 -- kind of statement, i.e. they are linked into a statement list at
4902 -- the point they appear, so the labeled statement appears following
4903 -- the label or labels in the statement list.
4904
4905 ---------------------------
4906 -- 5.1 Simple Statement --
4907 ---------------------------
4908
4909 -- SIMPLE_STATEMENT ::= NULL_STATEMENT
4910 -- | ASSIGNMENT_STATEMENT | EXIT_STATEMENT
4911 -- | GOTO_STATEMENT | PROCEDURE_CALL_STATEMENT
4912 -- | SIMPLE_RETURN_STATEMENT | ENTRY_CALL_STATEMENT
4913 -- | REQUEUE_STATEMENT | DELAY_STATEMENT
4914 -- | ABORT_STATEMENT | RAISE_STATEMENT
4915 -- | CODE_STATEMENT
4916
4917 -----------------------------
4918 -- 5.1 Compound Statement --
4919 -----------------------------
4920
4921 -- COMPOUND_STATEMENT ::=
4922 -- IF_STATEMENT | CASE_STATEMENT
4923 -- | LOOP_STATEMENT | BLOCK_STATEMENT
4924 -- | EXTENDED_RETURN_STATEMENT
4925 -- | ACCEPT_STATEMENT | SELECT_STATEMENT
4926
4927 -------------------------
4928 -- 5.1 Null Statement --
4929 -------------------------
4930
4931 -- NULL_STATEMENT ::= null;
4932
4933 -- N_Null_Statement
4934 -- Sloc points to NULL
4935
4936 ----------------
4937 -- 5.1 Label --
4938 ----------------
4939
4940 -- LABEL ::= <<label_STATEMENT_IDENTIFIER>>
4941
4942 -- Note that the occurrence of a label is not a defining identifier,
4943 -- but rather a referencing occurrence. The defining occurrence is
4944 -- in the implicit label declaration which occurs in the innermost
4945 -- enclosing block.
4946
4947 -- N_Label
4948 -- Sloc points to <<
4949 -- Identifier (Node1) direct name of statement identifier
4950 -- Exception_Junk (Flag8-Sem)
4951
4952 -- Note: Before Ada 2012, a label is always followed by a statement,
4953 -- and this is true in the tree even in Ada 2012 mode (the parser
4954 -- inserts a null statement marked with Comes_From_Source False).
4955
4956 -------------------------------
4957 -- 5.1 Statement Identifier --
4958 -------------------------------
4959
4960 -- STATEMENT_IDENTIFIER ::= DIRECT_NAME
4961
4962 -- The IDENTIFIER of a STATEMENT_IDENTIFIER shall be an identifier
4963 -- (not an OPERATOR_SYMBOL)
4964
4965 -------------------------------
4966 -- 5.2 Assignment Statement --
4967 -------------------------------
4968
4969 -- ASSIGNMENT_STATEMENT ::=
4970 -- variable_NAME := EXPRESSION;
4971
4972 -- N_Assignment_Statement
4973 -- Sloc points to :=
4974 -- Name (Node2)
4975 -- Expression (Node3)
4976 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
4977 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
4978 -- Do_Discriminant_Check (Flag3-Sem)
4979 -- Do_Length_Check (Flag4-Sem)
4980 -- Forwards_OK (Flag5-Sem)
4981 -- Backwards_OK (Flag6-Sem)
4982 -- No_Ctrl_Actions (Flag7-Sem)
4983 -- Has_Target_Names (Flag8-Sem)
4984 -- Is_Elaboration_Code (Flag9-Sem)
4985 -- Do_Tag_Check (Flag13-Sem)
4986 -- Componentwise_Assignment (Flag14-Sem)
4987 -- Suppress_Assignment_Checks (Flag18-Sem)
4988
4989 -- Note: if a range check is required, then the Do_Range_Check flag
4990 -- is set in the Expression (right hand side), with the check being
4991 -- done against the type of the Name (left hand side).
4992
4993 -- Note: the back end places some restrictions on the form of the
4994 -- Expression field. If the object being assigned to is Atomic, then
4995 -- the Expression may not have the form of an aggregate (since this
4996 -- might cause the back end to generate separate assignments). In this
4997 -- case the front end must generate an extra temporary and initialize
4998 -- this temporary as required (the temporary itself is not atomic).
4999
5000 ------------------
5001 -- Target_Name --
5002 ------------------
5003
5004 -- N_Target_Name
5005 -- Sloc points to @
5006 -- Etype (Node5-Sem)
5007
5008 -- Note (Ada 2020): node is used during analysis as a placeholder for
5009 -- the value of the LHS of the enclosing assignment statement. Node is
5010 -- eventually rewritten together with enclosing assignment, and backends
5011 -- are not aware of it.
5012
5013 -----------------------
5014 -- 5.3 If Statement --
5015 -----------------------
5016
5017 -- IF_STATEMENT ::=
5018 -- if CONDITION then
5019 -- SEQUENCE_OF_STATEMENTS
5020 -- {elsif CONDITION then
5021 -- SEQUENCE_OF_STATEMENTS}
5022 -- [else
5023 -- SEQUENCE_OF_STATEMENTS]
5024 -- end if;
5025
5026 -- Gigi restriction: This expander ensures that the type of the
5027 -- Condition fields is always Standard.Boolean, even if the type
5028 -- in the source is some non-standard boolean type.
5029
5030 -- N_If_Statement
5031 -- Sloc points to IF
5032 -- Condition (Node1)
5033 -- Then_Statements (List2)
5034 -- Elsif_Parts (List3) (set to No_List if none present)
5035 -- Else_Statements (List4) (set to No_List if no else part present)
5036 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5037 -- From_Conditional_Expression (Flag1-Sem)
5038
5039 -- N_Elsif_Part
5040 -- Sloc points to ELSIF
5041 -- Condition (Node1)
5042 -- Then_Statements (List2)
5043 -- Condition_Actions (List3-Sem)
5044
5045 --------------------
5046 -- 5.3 Condition --
5047 --------------------
5048
5049 -- CONDITION ::= boolean_EXPRESSION
5050
5051 -------------------------
5052 -- 5.4 Case Statement --
5053 -------------------------
5054
5055 -- CASE_STATEMENT ::=
5056 -- case EXPRESSION is
5057 -- CASE_STATEMENT_ALTERNATIVE
5058 -- {CASE_STATEMENT_ALTERNATIVE}
5059 -- end case;
5060
5061 -- Note: the Alternatives can contain pragmas. These only occur at
5062 -- the start of the list, since any pragmas occurring after the first
5063 -- alternative are absorbed into the corresponding statement sequence.
5064
5065 -- N_Case_Statement
5066 -- Sloc points to CASE
5067 -- Expression (Node3)
5068 -- Alternatives (List4)
5069 -- End_Span (Uint5) (set to Uint_0 if expander generated)
5070 -- From_Conditional_Expression (Flag1-Sem)
5071
5072 -- Note: Before Ada 2012, a pragma in a statement sequence is always
5073 -- followed by a statement, and this is true in the tree even in Ada
5074 -- 2012 mode (the parser inserts a null statement marked with the flag
5075 -- Comes_From_Source False).
5076
5077 -------------------------------------
5078 -- 5.4 Case Statement Alternative --
5079 -------------------------------------
5080
5081 -- CASE_STATEMENT_ALTERNATIVE ::=
5082 -- when DISCRETE_CHOICE_LIST =>
5083 -- SEQUENCE_OF_STATEMENTS
5084
5085 -- N_Case_Statement_Alternative
5086 -- Sloc points to WHEN
5087 -- Discrete_Choices (List4)
5088 -- Statements (List3)
5089 -- Has_SP_Choice (Flag15-Sem)
5090
5091 -- Note: in the list of Discrete_Choices, the tree passed to the back
5092 -- end does not have choice entries corresponding to names of statically
5093 -- predicated subtypes. Such entries are always expanded out to the list
5094 -- of equivalent values or ranges. The ASIS tree generated in -gnatct
5095 -- mode does not have this expansion, and has the original choices.
5096
5097 -------------------------
5098 -- 5.5 Loop Statement --
5099 -------------------------
5100
5101 -- LOOP_STATEMENT ::=
5102 -- [loop_STATEMENT_IDENTIFIER :]
5103 -- [ITERATION_SCHEME] loop
5104 -- SEQUENCE_OF_STATEMENTS
5105 -- end loop [loop_IDENTIFIER];
5106
5107 -- Note: The occurrence of a loop label is not a defining identifier
5108 -- but rather a referencing occurrence. The defining occurrence is in
5109 -- the implicit label declaration which occurs in the innermost
5110 -- enclosing block.
5111
5112 -- Note: there is always a loop statement identifier present in the
5113 -- tree, even if none was given in the source. In the case where no loop
5114 -- identifier is given in the source, the parser creates a name of the
5115 -- form _Loop_n, where n is a decimal integer (the two underlines ensure
5116 -- that the loop names created in this manner do not conflict with any
5117 -- user defined identifiers), and the flag Has_Created_Identifier is set
5118 -- to True. The only exception to the rule that all loop statement nodes
5119 -- have identifiers occurs for loops constructed by the expander, and
5120 -- the semantic analyzer will create and supply dummy loop identifiers
5121 -- in these cases.
5122
5123 -- N_Loop_Statement
5124 -- Sloc points to LOOP
5125 -- Identifier (Node1) loop identifier (set to Empty if no identifier)
5126 -- Iteration_Scheme (Node2) (set to Empty if no iteration scheme)
5127 -- Statements (List3)
5128 -- End_Label (Node4)
5129 -- Is_OpenAcc_Environment (Flag13-Sem)
5130 -- Is_OpenAcc_Loop (Flag14-Sem)
5131 -- Has_Created_Identifier (Flag15)
5132 -- Is_Null_Loop (Flag16)
5133 -- Suppress_Loop_Warnings (Flag17)
5134
5135 -- Note: the parser fills in the Identifier field if there is an
5136 -- explicit loop identifier. Otherwise the parser leaves this field
5137 -- set to Empty, and then the semantic processing for a loop statement
5138 -- creates an identifier, setting the Has_Created_Identifier flag to
5139 -- True. So after semantic analysis, the Identifier is always set,
5140 -- referencing an identifier whose entity has an Ekind of E_Loop.
5141
5142 ---------------------------
5143 -- 5.5 Iteration Scheme --
5144 ---------------------------
5145
5146 -- ITERATION_SCHEME ::=
5147 -- while CONDITION
5148 -- | for LOOP_PARAMETER_SPECIFICATION
5149 -- | for ITERATOR_SPECIFICATION
5150
5151 -- At most one of (Iterator_Specification, Loop_Parameter_Specification)
5152 -- is present at a time, in which case the other one is empty. Both are
5153 -- empty in the case of a WHILE loop.
5154
5155 -- Gigi restriction: The expander ensures that the type of the Condition
5156 -- field is always Standard.Boolean, even if the type in the source is
5157 -- some non-standard boolean type.
5158
5159 -- N_Iteration_Scheme
5160 -- Sloc points to WHILE or FOR
5161 -- Condition (Node1) (set to Empty if FOR case)
5162 -- Condition_Actions (List3-Sem)
5163 -- Iterator_Specification (Node2) (set to Empty if WHILE case)
5164 -- Loop_Parameter_Specification (Node4) (set to Empty if WHILE case)
5165
5166 ---------------------------------------
5167 -- 5.5 Loop Parameter Specification --
5168 ---------------------------------------
5169
5170 -- LOOP_PARAMETER_SPECIFICATION ::=
5171 -- DEFINING_IDENTIFIER in [reverse] DISCRETE_SUBTYPE_DEFINITION
5172
5173 -- N_Loop_Parameter_Specification
5174 -- Sloc points to first identifier
5175 -- Defining_Identifier (Node1)
5176 -- Reverse_Present (Flag15)
5177 -- Discrete_Subtype_Definition (Node4)
5178
5179 -----------------------------------
5180 -- 5.5.1 Iterator Specification --
5181 -----------------------------------
5182
5183 -- ITERATOR_SPECIFICATION ::=
5184 -- DEFINING_IDENTIFIER in [reverse] NAME
5185 -- | DEFINING_IDENTIFIER [: SUBTYPE_INDICATION] of [reverse] NAME
5186
5187 -- N_Iterator_Specification
5188 -- Sloc points to defining identifier
5189 -- Defining_Identifier (Node1)
5190 -- Name (Node2)
5191 -- Reverse_Present (Flag15)
5192 -- Of_Present (Flag16)
5193 -- Subtype_Indication (Node5)
5194
5195 -- Note: The Of_Present flag distinguishes the two forms
5196
5197 --------------------------
5198 -- 5.6 Block Statement --
5199 --------------------------
5200
5201 -- BLOCK_STATEMENT ::=
5202 -- [block_STATEMENT_IDENTIFIER:]
5203 -- [declare
5204 -- DECLARATIVE_PART]
5205 -- begin
5206 -- HANDLED_SEQUENCE_OF_STATEMENTS
5207 -- end [block_IDENTIFIER];
5208
5209 -- Note that the occurrence of a block identifier is not a defining
5210 -- identifier, but rather a referencing occurrence. The defining
5211 -- occurrence is an E_Block entity declared by the implicit label
5212 -- declaration which occurs in the innermost enclosing block statement
5213 -- or body; the block identifier denotes that E_Block.
5214
5215 -- For block statements that come from source code, there is always a
5216 -- block statement identifier present in the tree, denoting an E_Block.
5217 -- In the case where no block identifier is given in the source,
5218 -- the parser creates a name of the form B_n, where n is a decimal
5219 -- integer, and the flag Has_Created_Identifier is set to True. Blocks
5220 -- constructed by the expander usually have no identifier, and no
5221 -- corresponding entity.
5222
5223 -- Note: the block statement created for an extended return statement
5224 -- has an entity, and this entity is an E_Return_Statement, rather than
5225 -- the usual E_Block.
5226
5227 -- Note: Exception_Junk is set for the wrapping blocks created during
5228 -- local raise optimization (Exp_Ch11.Expand_Local_Exception_Handlers).
5229
5230 -- Note: from a control flow viewpoint, a block statement defines an
5231 -- extended basic block, i.e. the entry of the block dominates every
5232 -- statement in the sequence. When generating new statements with
5233 -- exception handlers in the expander at the end of a sequence that
5234 -- comes from source code, it can be necessary to wrap them all in a
5235 -- block statement in order to expose the implicit control flow to
5236 -- gigi and thus prevent it from issuing bogus control flow warnings.
5237
5238 -- N_Block_Statement
5239 -- Sloc points to DECLARE or BEGIN
5240 -- Identifier (Node1) block direct name (set to Empty if not present)
5241 -- Declarations (List2) (set to No_List if no DECLARE part)
5242 -- Handled_Statement_Sequence (Node4)
5243 -- Activation_Chain_Entity (Node3-Sem)
5244 -- Cleanup_Actions (List5-Sem)
5245 -- Has_Created_Identifier (Flag15)
5246 -- Is_Asynchronous_Call_Block (Flag7)
5247 -- Is_Task_Allocation_Block (Flag6)
5248 -- Exception_Junk (Flag8-Sem)
5249 -- Is_Abort_Block (Flag4-Sem)
5250 -- Is_Finalization_Wrapper (Flag9-Sem)
5251 -- Is_Initialization_Block (Flag1-Sem)
5252 -- Is_Task_Master (Flag5-Sem)
5253
5254 -------------------------
5255 -- 5.7 Exit Statement --
5256 -------------------------
5257
5258 -- EXIT_STATEMENT ::= exit [loop_NAME] [when CONDITION];
5259
5260 -- Gigi restriction: The expander ensures that the type of the Condition
5261 -- field is always Standard.Boolean, even if the type in the source is
5262 -- some non-standard boolean type.
5263
5264 -- N_Exit_Statement
5265 -- Sloc points to EXIT
5266 -- Name (Node2) (set to Empty if no loop name present)
5267 -- Condition (Node1) (set to Empty if no WHEN part present)
5268 -- Next_Exit_Statement (Node3-Sem): Next exit on chain
5269
5270 -------------------------
5271 -- 5.9 Goto Statement --
5272 -------------------------
5273
5274 -- GOTO_STATEMENT ::= goto label_NAME;
5275
5276 -- N_Goto_Statement
5277 -- Sloc points to GOTO
5278 -- Name (Node2)
5279 -- Exception_Junk (Flag8-Sem)
5280
5281 ---------------------------------
5282 -- 6.1 Subprogram Declaration --
5283 ---------------------------------
5284
5285 -- SUBPROGRAM_DECLARATION ::=
5286 -- SUBPROGRAM_SPECIFICATION
5287 -- [ASPECT_SPECIFICATIONS];
5288
5289 -- N_Subprogram_Declaration
5290 -- Sloc points to FUNCTION or PROCEDURE
5291 -- Specification (Node1)
5292 -- Body_To_Inline (Node3-Sem)
5293 -- Corresponding_Body (Node5-Sem)
5294 -- Parent_Spec (Node4-Sem)
5295 -- Is_Entry_Barrier_Function (Flag8-Sem)
5296 -- Is_Task_Body_Procedure (Flag1-Sem)
5297
5298 ------------------------------------------
5299 -- 6.1 Abstract Subprogram Declaration --
5300 ------------------------------------------
5301
5302 -- ABSTRACT_SUBPROGRAM_DECLARATION ::=
5303 -- SUBPROGRAM_SPECIFICATION is abstract
5304 -- [ASPECT_SPECIFICATIONS];
5305
5306 -- N_Abstract_Subprogram_Declaration
5307 -- Sloc points to ABSTRACT
5308 -- Specification (Node1)
5309
5310 -----------------------------------
5311 -- 6.1 Subprogram Specification --
5312 -----------------------------------
5313
5314 -- SUBPROGRAM_SPECIFICATION ::=
5315 -- [[not] overriding]
5316 -- procedure DEFINING_PROGRAM_UNIT_NAME PARAMETER_PROFILE
5317 -- | [[not] overriding]
5318 -- function DEFINING_DESIGNATOR PARAMETER_AND_RESULT_PROFILE
5319
5320 -- Note: there are no separate nodes for the profiles, instead the
5321 -- information appears directly in the following nodes.
5322
5323 -- N_Function_Specification
5324 -- Sloc points to FUNCTION
5325 -- Defining_Unit_Name (Node1) (the designator)
5326 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5327 -- Null_Exclusion_Present (Flag11)
5328 -- Result_Definition (Node4) for result subtype
5329 -- Generic_Parent (Node5-Sem)
5330 -- Must_Override (Flag14) set if overriding indicator present
5331 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5332
5333 -- N_Procedure_Specification
5334 -- Sloc points to PROCEDURE
5335 -- Defining_Unit_Name (Node1)
5336 -- Null_Statement (Node2-Sem) NULL statement for body, if Null_Present
5337 -- Parameter_Specifications (List3) (set to No_List if no formal part)
5338 -- Generic_Parent (Node5-Sem)
5339 -- Null_Present (Flag13) set for null procedure case (Ada 2005 feature)
5340 -- Must_Override (Flag14) set if overriding indicator present
5341 -- Must_Not_Override (Flag15) set if not_overriding indicator present
5342
5343 -- Note: overriding indicator is an Ada 2005 feature
5344
5345 ---------------------
5346 -- 6.1 Designator --
5347 ---------------------
5348
5349 -- DESIGNATOR ::=
5350 -- [PARENT_UNIT_NAME .] IDENTIFIER | OPERATOR_SYMBOL
5351
5352 -- Designators that are simply identifiers or operator symbols appear
5353 -- directly in the tree in this form. The following node is used only
5354 -- in the case where the designator has a parent unit name component.
5355
5356 -- N_Designator
5357 -- Sloc points to period
5358 -- Name (Node2) holds the parent unit name
5359 -- Identifier (Node1)
5360
5361 -- Note: Name is always non-Empty, since this node is only used for the
5362 -- case where a parent library unit package name is present.
5363
5364 -- Note that the identifier can also be an operator symbol here
5365
5366 ------------------------------
5367 -- 6.1 Defining Designator --
5368 ------------------------------
5369
5370 -- DEFINING_DESIGNATOR ::=
5371 -- DEFINING_PROGRAM_UNIT_NAME | DEFINING_OPERATOR_SYMBOL
5372
5373 -------------------------------------
5374 -- 6.1 Defining Program Unit Name --
5375 -------------------------------------
5376
5377 -- DEFINING_PROGRAM_UNIT_NAME ::=
5378 -- [PARENT_UNIT_NAME .] DEFINING_IDENTIFIER
5379
5380 -- The parent unit name is present only in the case of a child unit name
5381 -- (permissible only for Ada 95 for a library level unit, i.e. a unit
5382 -- at scope level one). If no such name is present, the defining program
5383 -- unit name is represented simply as the defining identifier. In the
5384 -- child unit case, the following node is used to represent the child
5385 -- unit name.
5386
5387 -- N_Defining_Program_Unit_Name
5388 -- Sloc points to period
5389 -- Name (Node2) holds the parent unit name
5390 -- Defining_Identifier (Node1)
5391
5392 -- Note: Name is always non-Empty, since this node is only used for the
5393 -- case where a parent unit name is present.
5394
5395 --------------------------
5396 -- 6.1 Operator Symbol --
5397 --------------------------
5398
5399 -- OPERATOR_SYMBOL ::= STRING_LITERAL
5400
5401 -- Note: the fields of the N_Operator_Symbol node are laid out to match
5402 -- the corresponding fields of an N_Character_Literal node. This allows
5403 -- easy conversion of the operator symbol node into a character literal
5404 -- node in the case where a string constant of the form of an operator
5405 -- symbol is scanned out as such, but turns out semantically to be a
5406 -- string literal that is not an operator. For details see Sinfo.CN.
5407 -- Change_Operator_Symbol_To_String_Literal.
5408
5409 -- N_Operator_Symbol
5410 -- Sloc points to literal
5411 -- Chars (Name1) contains the Name_Id for the operator symbol
5412 -- Strval (Str3) Id of string value. This is used if the operator
5413 -- symbol turns out to be a normal string after all.
5414 -- Entity (Node4-Sem)
5415 -- Associated_Node (Node4-Sem)
5416 -- Etype (Node5-Sem)
5417 -- Has_Private_View (Flag11-Sem) set in generic units
5418
5419 -- Note: the Strval field may be set to No_String for generated
5420 -- operator symbols that are known not to be string literals
5421 -- semantically.
5422
5423 -----------------------------------
5424 -- 6.1 Defining Operator Symbol --
5425 -----------------------------------
5426
5427 -- DEFINING_OPERATOR_SYMBOL ::= OPERATOR_SYMBOL
5428
5429 -- A defining operator symbol is an entity, which has additional
5430 -- fields depending on the setting of the Ekind field. These
5431 -- additional fields are defined (and access subprograms declared)
5432 -- in package Einfo.
5433
5434 -- Note: N_Defining_Operator_Symbol is an extended node whose fields
5435 -- are deliberately laid out to match the layout of fields in an
5436 -- ordinary N_Operator_Symbol node allowing for easy alteration of
5437 -- an operator symbol node into a defining operator symbol node.
5438 -- See Sinfo.CN.Change_Operator_Symbol_To_Defining_Operator_Symbol
5439 -- for further details.
5440
5441 -- N_Defining_Operator_Symbol
5442 -- Sloc points to literal
5443 -- Chars (Name1) contains the Name_Id for the operator symbol
5444 -- Next_Entity (Node2-Sem)
5445 -- Scope (Node3-Sem)
5446 -- Etype (Node5-Sem)
5447
5448 ----------------------------
5449 -- 6.1 Parameter Profile --
5450 ----------------------------
5451
5452 -- PARAMETER_PROFILE ::= [FORMAL_PART]
5453
5454 ---------------------------------------
5455 -- 6.1 Parameter and Result Profile --
5456 ---------------------------------------
5457
5458 -- PARAMETER_AND_RESULT_PROFILE ::=
5459 -- [FORMAL_PART] return [NULL_EXCLUSION] SUBTYPE_MARK
5460 -- | [FORMAL_PART] return ACCESS_DEFINITION
5461
5462 -- There is no explicit node in the tree for a parameter and result
5463 -- profile. Instead the information appears directly in the parent.
5464
5465 ----------------------
5466 -- 6.1 Formal Part --
5467 ----------------------
5468
5469 -- FORMAL_PART ::=
5470 -- (PARAMETER_SPECIFICATION {; PARAMETER_SPECIFICATION})
5471
5472 ----------------------------------
5473 -- 6.1 Parameter Specification --
5474 ----------------------------------
5475
5476 -- PARAMETER_SPECIFICATION ::=
5477 -- DEFINING_IDENTIFIER_LIST : [ALIASED] MODE [NULL_EXCLUSION]
5478 -- SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
5479 -- | DEFINING_IDENTIFIER_LIST : ACCESS_DEFINITION
5480 -- [:= DEFAULT_EXPRESSION]
5481
5482 -- Although the syntax allows multiple identifiers in the list, the
5483 -- semantics is as though successive specifications were given with
5484 -- identical type definition and expression components. To simplify
5485 -- semantic processing, the parser represents a multiple declaration
5486 -- case as a sequence of single Specifications, using the More_Ids and
5487 -- Prev_Ids flags to preserve the original source form as described
5488 -- in the section on "Handling of Defining Identifier Lists".
5489
5490 -- ALIASED can only be present in Ada 2012 mode
5491
5492 -- N_Parameter_Specification
5493 -- Sloc points to first identifier
5494 -- Defining_Identifier (Node1)
5495 -- Aliased_Present (Flag4)
5496 -- In_Present (Flag15)
5497 -- Out_Present (Flag17)
5498 -- Null_Exclusion_Present (Flag11)
5499 -- Parameter_Type (Node2) subtype mark or access definition
5500 -- Expression (Node3) (set to Empty if no default expression present)
5501 -- Do_Accessibility_Check (Flag13-Sem)
5502 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5503 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5504 -- Default_Expression (Node5-Sem)
5505
5506 ---------------
5507 -- 6.1 Mode --
5508 ---------------
5509
5510 -- MODE ::= [in] | in out | out
5511
5512 -- There is no explicit node in the tree for the Mode. Instead the
5513 -- In_Present and Out_Present flags are set in the parent node to
5514 -- record the presence of keywords specifying the mode.
5515
5516 --------------------------
5517 -- 6.3 Subprogram Body --
5518 --------------------------
5519
5520 -- SUBPROGRAM_BODY ::=
5521 -- SUBPROGRAM_SPECIFICATION [ASPECT_SPECIFICATIONS] is
5522 -- DECLARATIVE_PART
5523 -- begin
5524 -- HANDLED_SEQUENCE_OF_STATEMENTS
5525 -- end [DESIGNATOR];
5526
5527 -- N_Subprogram_Body
5528 -- Sloc points to FUNCTION or PROCEDURE
5529 -- Specification (Node1)
5530 -- Declarations (List2)
5531 -- Handled_Statement_Sequence (Node4)
5532 -- Activation_Chain_Entity (Node3-Sem)
5533 -- Corresponding_Spec (Node5-Sem)
5534 -- Acts_As_Spec (Flag4-Sem)
5535 -- Bad_Is_Detected (Flag15) used only by parser
5536 -- Do_Storage_Check (Flag17-Sem)
5537 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
5538 -- Is_Entry_Barrier_Function (Flag8-Sem)
5539 -- Is_Protected_Subprogram_Body (Flag7-Sem)
5540 -- Is_Task_Body_Procedure (Flag1-Sem)
5541 -- Is_Task_Master (Flag5-Sem)
5542 -- Was_Attribute_Reference (Flag2-Sem)
5543 -- Was_Expression_Function (Flag18-Sem)
5544 -- Was_Originally_Stub (Flag13-Sem)
5545
5546 -----------------------------------
5547 -- 6.4 Procedure Call Statement --
5548 -----------------------------------
5549
5550 -- PROCEDURE_CALL_STATEMENT ::=
5551 -- procedure_NAME; | procedure_PREFIX ACTUAL_PARAMETER_PART;
5552
5553 -- Note: the reason that a procedure call has expression fields is that
5554 -- it semantically resembles an expression, e.g. overloading is allowed
5555 -- and a type is concocted for semantic processing purposes. Certain of
5556 -- these fields, such as Parens are not relevant, but it is easier to
5557 -- just supply all of them together.
5558
5559 -- N_Procedure_Call_Statement
5560 -- Sloc points to first token of name or prefix
5561 -- Name (Node2) stores name or prefix
5562 -- Parameter_Associations (List3) (set to No_List if no
5563 -- actual parameter part)
5564 -- First_Named_Actual (Node4-Sem)
5565 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5566 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5567 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5568 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5569 -- No_Elaboration_Check (Flag4-Sem)
5570 -- Do_Tag_Check (Flag13-Sem)
5571 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5572 -- plus fields for expression
5573
5574 -- If any IN parameter requires a range check, then the corresponding
5575 -- argument expression has the Do_Range_Check flag set, and the range
5576 -- check is done against the formal type. Note that this argument
5577 -- expression may appear directly in the Parameter_Associations list,
5578 -- or may be a descendant of an N_Parameter_Association node that
5579 -- appears in this list.
5580
5581 ------------------------
5582 -- 6.4 Function Call --
5583 ------------------------
5584
5585 -- FUNCTION_CALL ::=
5586 -- function_NAME | function_PREFIX ACTUAL_PARAMETER_PART
5587
5588 -- Note: the parser may generate an indexed component node or simply
5589 -- a name node instead of a function call node. The semantic pass must
5590 -- correct this misidentification.
5591
5592 -- N_Function_Call
5593 -- Sloc points to first token of name or prefix
5594 -- Name (Node2) stores name or prefix
5595 -- Parameter_Associations (List3) (set to No_List if no
5596 -- actual parameter part)
5597 -- First_Named_Actual (Node4-Sem)
5598 -- Controlling_Argument (Node1-Sem) (set to Empty if not dispatching)
5599 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
5600 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
5601 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
5602 -- No_Elaboration_Check (Flag4-Sem)
5603 -- Is_Expanded_Build_In_Place_Call (Flag11-Sem)
5604 -- Do_Tag_Check (Flag13-Sem)
5605 -- No_Side_Effect_Removal (Flag17-Sem)
5606 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
5607 -- plus fields for expression
5608
5609 --------------------------------
5610 -- 6.4 Actual Parameter Part --
5611 --------------------------------
5612
5613 -- ACTUAL_PARAMETER_PART ::=
5614 -- (PARAMETER_ASSOCIATION {,PARAMETER_ASSOCIATION})
5615
5616 --------------------------------
5617 -- 6.4 Parameter Association --
5618 --------------------------------
5619
5620 -- PARAMETER_ASSOCIATION ::=
5621 -- [formal_parameter_SELECTOR_NAME =>] EXPLICIT_ACTUAL_PARAMETER
5622
5623 -- Note: the N_Parameter_Association node is built only if a formal
5624 -- parameter selector name is present, otherwise the parameter
5625 -- association appears in the tree simply as the node for the
5626 -- explicit actual parameter.
5627
5628 -- N_Parameter_Association
5629 -- Sloc points to formal parameter
5630 -- Selector_Name (Node2) (always non-Empty)
5631 -- Explicit_Actual_Parameter (Node3)
5632 -- Next_Named_Actual (Node4-Sem)
5633 -- Is_Accessibility_Actual (Flag13-Sem)
5634
5635 ---------------------------
5636 -- 6.4 Actual Parameter --
5637 ---------------------------
5638
5639 -- EXPLICIT_ACTUAL_PARAMETER ::=
5640 -- EXPRESSION | variable_NAME | REDUCTION_EXPRESSION_PARAMETER
5641
5642 ---------------------------
5643 -- 6.5 Return Statement --
5644 ---------------------------
5645
5646 -- SIMPLE_RETURN_STATEMENT ::= return [EXPRESSION];
5647
5648 -- EXTENDED_RETURN_STATEMENT ::=
5649 -- return DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5650 -- [:= EXPRESSION] [do
5651 -- HANDLED_SEQUENCE_OF_STATEMENTS
5652 -- end return];
5653
5654 -- RETURN_SUBTYPE_INDICATION ::= SUBTYPE_INDICATION | ACCESS_DEFINITION
5655
5656 -- The term "return statement" is defined in 6.5 to mean either a
5657 -- SIMPLE_RETURN_STATEMENT or an EXTENDED_RETURN_STATEMENT. We avoid
5658 -- the use of this term, since it used to mean someting else in earlier
5659 -- versions of Ada.
5660
5661 -- N_Simple_Return_Statement
5662 -- Sloc points to RETURN
5663 -- Return_Statement_Entity (Node5-Sem)
5664 -- Expression (Node3) (set to Empty if no expression present)
5665 -- Storage_Pool (Node1-Sem)
5666 -- Procedure_To_Call (Node2-Sem)
5667 -- Do_Tag_Check (Flag13-Sem)
5668 -- By_Ref (Flag5-Sem)
5669 -- Comes_From_Extended_Return_Statement (Flag18-Sem)
5670
5671 -- Note: Return_Statement_Entity points to an E_Return_Statement
5672
5673 -- If a range check is required, then Do_Range_Check is set on the
5674 -- Expression. The check is against the return subtype of the function.
5675
5676 -- N_Extended_Return_Statement
5677 -- Sloc points to RETURN
5678 -- Return_Statement_Entity (Node5-Sem)
5679 -- Return_Object_Declarations (List3)
5680 -- Handled_Statement_Sequence (Node4) (set to Empty if not present)
5681 -- Storage_Pool (Node1-Sem)
5682 -- Procedure_To_Call (Node2-Sem)
5683 -- Do_Tag_Check (Flag13-Sem)
5684 -- By_Ref (Flag5-Sem)
5685
5686 -- Note: Return_Statement_Entity points to an E_Return_Statement.
5687
5688 -- Note that Return_Object_Declarations is a list containing the
5689 -- N_Object_Declaration -- see comment on this field above.
5690
5691 -- The declared object will have Is_Return_Object = True.
5692
5693 -- There is no such syntactic category as return_object_declaration
5694 -- in the RM. Return_Object_Declarations represents this portion of
5695 -- the syntax for EXTENDED_RETURN_STATEMENT:
5696 -- DEFINING_IDENTIFIER : [aliased] RETURN_SUBTYPE_INDICATION
5697 -- [:= EXPRESSION]
5698
5699 -- There are two entities associated with an extended_return_statement:
5700 -- the Return_Statement_Entity represents the statement itself,
5701 -- and the Defining_Identifier of the Object_Declaration in
5702 -- Return_Object_Declarations represents the object being
5703 -- returned. N_Simple_Return_Statement has only the former.
5704
5705 ------------------------------
5706 -- 6.8 Expression Function --
5707 ------------------------------
5708
5709 -- EXPRESSION_FUNCTION ::=
5710 -- FUNCTION SPECIFICATION IS (EXPRESSION)
5711 -- [ASPECT_SPECIFICATIONS];
5712
5713 -- N_Expression_Function
5714 -- Sloc points to FUNCTION
5715 -- Specification (Node1)
5716 -- Expression (Node3)
5717 -- Corresponding_Spec (Node5-Sem)
5718
5719 ------------------------------
5720 -- 7.1 Package Declaration --
5721 ------------------------------
5722
5723 -- PACKAGE_DECLARATION ::=
5724 -- PACKAGE_SPECIFICATION;
5725
5726 -- Note: the activation chain entity for a package spec is used for
5727 -- all tasks declared in the package spec, or in the package body.
5728
5729 -- N_Package_Declaration
5730 -- Sloc points to PACKAGE
5731 -- Specification (Node1)
5732 -- Corresponding_Body (Node5-Sem)
5733 -- Parent_Spec (Node4-Sem)
5734 -- Activation_Chain_Entity (Node3-Sem)
5735
5736 --------------------------------
5737 -- 7.1 Package Specification --
5738 --------------------------------
5739
5740 -- PACKAGE_SPECIFICATION ::=
5741 -- package DEFINING_PROGRAM_UNIT_NAME
5742 -- [ASPECT_SPECIFICATIONS]
5743 -- is
5744 -- {BASIC_DECLARATIVE_ITEM}
5745 -- [private
5746 -- {BASIC_DECLARATIVE_ITEM}]
5747 -- end [[PARENT_UNIT_NAME .] IDENTIFIER]
5748
5749 -- N_Package_Specification
5750 -- Sloc points to PACKAGE
5751 -- Defining_Unit_Name (Node1)
5752 -- Visible_Declarations (List2)
5753 -- Private_Declarations (List3) (set to No_List if no private
5754 -- part present)
5755 -- End_Label (Node4)
5756 -- Generic_Parent (Node5-Sem)
5757 -- Limited_View_Installed (Flag18-Sem)
5758
5759 -----------------------
5760 -- 7.1 Package Body --
5761 -----------------------
5762
5763 -- PACKAGE_BODY ::=
5764 -- package body DEFINING_PROGRAM_UNIT_NAME
5765 -- [ASPECT_SPECIFICATIONS]
5766 -- is
5767 -- DECLARATIVE_PART
5768 -- [begin
5769 -- HANDLED_SEQUENCE_OF_STATEMENTS]
5770 -- end [[PARENT_UNIT_NAME .] IDENTIFIER];
5771
5772 -- N_Package_Body
5773 -- Sloc points to PACKAGE
5774 -- Defining_Unit_Name (Node1)
5775 -- Declarations (List2)
5776 -- Handled_Statement_Sequence (Node4) (set to Empty if no HSS present)
5777 -- Corresponding_Spec (Node5-Sem)
5778 -- Was_Originally_Stub (Flag13-Sem)
5779
5780 -- Note: if a source level package does not contain a handled sequence
5781 -- of statements, then the parser supplies a dummy one with a null
5782 -- sequence of statements. Comes_From_Source will be False in this
5783 -- constructed sequence. The reason we need this is for the End_Label
5784 -- field in the HSS.
5785
5786 -----------------------------------
5787 -- 7.4 Private Type Declaration --
5788 -----------------------------------
5789
5790 -- PRIVATE_TYPE_DECLARATION ::=
5791 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
5792 -- is [[abstract] tagged] [limited] private
5793 -- [ASPECT_SPECIFICATIONS];
5794
5795 -- Note: TAGGED is not permitted in Ada 83 mode
5796
5797 -- N_Private_Type_Declaration
5798 -- Sloc points to TYPE
5799 -- Defining_Identifier (Node1)
5800 -- Discriminant_Specifications (List4) (set to No_List if no
5801 -- discriminant part)
5802 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5803 -- Abstract_Present (Flag4)
5804 -- Tagged_Present (Flag15)
5805 -- Limited_Present (Flag17)
5806
5807 ----------------------------------------
5808 -- 7.4 Private Extension Declaration --
5809 ----------------------------------------
5810
5811 -- PRIVATE_EXTENSION_DECLARATION ::=
5812 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART] is
5813 -- [abstract] [limited | synchronized]
5814 -- new ancestor_SUBTYPE_INDICATION [and INTERFACE_LIST]
5815 -- with private [ASPECT_SPECIFICATIONS];
5816
5817 -- Note: LIMITED, and private extension declarations are not allowed
5818 -- in Ada 83 mode.
5819
5820 -- N_Private_Extension_Declaration
5821 -- Sloc points to TYPE
5822 -- Defining_Identifier (Node1)
5823 -- Uninitialized_Variable (Node3-Sem)
5824 -- Discriminant_Specifications (List4) (set to No_List if no
5825 -- discriminant part)
5826 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
5827 -- Abstract_Present (Flag4)
5828 -- Limited_Present (Flag17)
5829 -- Synchronized_Present (Flag7)
5830 -- Subtype_Indication (Node5)
5831 -- Interface_List (List2) (set to No_List if none)
5832
5833 ---------------------
5834 -- 8.4 Use Clause --
5835 ---------------------
5836
5837 -- USE_CLAUSE ::= USE_PACKAGE_CLAUSE | USE_TYPE_CLAUSE
5838
5839 -----------------------------
5840 -- 8.4 Use Package Clause --
5841 -----------------------------
5842
5843 -- USE_PACKAGE_CLAUSE ::= use package_NAME {, package_NAME};
5844
5845 -- N_Use_Package_Clause
5846 -- Sloc points to USE
5847 -- Prev_Use_Clause (Node1-Sem)
5848 -- Name (Node2)
5849 -- Next_Use_Clause (Node3-Sem)
5850 -- Associated_Node (Node4-Sem)
5851 -- Hidden_By_Use_Clause (Elist5-Sem)
5852 -- Is_Effective_Use_Clause (Flag1)
5853 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5854 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5855
5856 --------------------------
5857 -- 8.4 Use Type Clause --
5858 --------------------------
5859
5860 -- USE_TYPE_CLAUSE ::= use [ALL] type SUBTYPE_MARK {, SUBTYPE_MARK};
5861
5862 -- Note: use type clause is not permitted in Ada 83 mode
5863
5864 -- Note: the ALL keyword can appear only in Ada 2012 mode
5865
5866 -- N_Use_Type_Clause
5867 -- Sloc points to USE
5868 -- Prev_Use_Clause (Node1-Sem)
5869 -- Used_Operations (Elist2-Sem)
5870 -- Next_Use_Clause (Node3-Sem)
5871 -- Subtype_Mark (Node4)
5872 -- Hidden_By_Use_Clause (Elist5-Sem)
5873 -- Is_Effective_Use_Clause (Flag1)
5874 -- More_Ids (Flag5) (set to False if no more identifiers in list)
5875 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
5876 -- All_Present (Flag15)
5877
5878 -------------------------------
5879 -- 8.5 Renaming Declaration --
5880 -------------------------------
5881
5882 -- RENAMING_DECLARATION ::=
5883 -- OBJECT_RENAMING_DECLARATION
5884 -- | EXCEPTION_RENAMING_DECLARATION
5885 -- | PACKAGE_RENAMING_DECLARATION
5886 -- | SUBPROGRAM_RENAMING_DECLARATION
5887 -- | GENERIC_RENAMING_DECLARATION
5888
5889 --------------------------------------
5890 -- 8.5 Object Renaming Declaration --
5891 --------------------------------------
5892
5893 -- OBJECT_RENAMING_DECLARATION ::=
5894 -- DEFINING_IDENTIFIER :
5895 -- [NULL_EXCLUSION] SUBTYPE_MARK renames object_NAME
5896 -- [ASPECT_SPECIFICATIONS];
5897 -- | DEFINING_IDENTIFIER :
5898 -- ACCESS_DEFINITION renames object_NAME
5899 -- [ASPECT_SPECIFICATIONS];
5900
5901 -- Note: Access_Definition is an optional field that gives support to
5902 -- Ada 2005 (AI-230). The parser generates nodes that have either the
5903 -- Subtype_Indication field or else the Access_Definition field.
5904
5905 -- N_Object_Renaming_Declaration
5906 -- Sloc points to first identifier
5907 -- Defining_Identifier (Node1)
5908 -- Null_Exclusion_Present (Flag11) (set to False if not present)
5909 -- Subtype_Mark (Node4) (set to Empty if not present)
5910 -- Access_Definition (Node3) (set to Empty if not present)
5911 -- Name (Node2)
5912 -- Corresponding_Generic_Association (Node5-Sem)
5913
5914 -----------------------------------------
5915 -- 8.5 Exception Renaming Declaration --
5916 -----------------------------------------
5917
5918 -- EXCEPTION_RENAMING_DECLARATION ::=
5919 -- DEFINING_IDENTIFIER : exception renames exception_NAME
5920 -- [ASPECT_SPECIFICATIONS];
5921
5922 -- N_Exception_Renaming_Declaration
5923 -- Sloc points to first identifier
5924 -- Defining_Identifier (Node1)
5925 -- Name (Node2)
5926
5927 ---------------------------------------
5928 -- 8.5 Package Renaming Declaration --
5929 ---------------------------------------
5930
5931 -- PACKAGE_RENAMING_DECLARATION ::=
5932 -- package DEFINING_PROGRAM_UNIT_NAME renames package_NAME
5933 -- [ASPECT_SPECIFICATIONS];
5934
5935 -- N_Package_Renaming_Declaration
5936 -- Sloc points to PACKAGE
5937 -- Defining_Unit_Name (Node1)
5938 -- Name (Node2)
5939 -- Parent_Spec (Node4-Sem)
5940
5941 ------------------------------------------
5942 -- 8.5 Subprogram Renaming Declaration --
5943 ------------------------------------------
5944
5945 -- SUBPROGRAM_RENAMING_DECLARATION ::=
5946 -- SUBPROGRAM_SPECIFICATION renames callable_entity_NAME
5947 -- [ASPECT_SPECIFICATIONS];
5948
5949 -- N_Subprogram_Renaming_Declaration
5950 -- Sloc points to RENAMES
5951 -- Specification (Node1)
5952 -- Name (Node2)
5953 -- Parent_Spec (Node4-Sem)
5954 -- Corresponding_Spec (Node5-Sem)
5955 -- Corresponding_Formal_Spec (Node3-Sem)
5956 -- From_Default (Flag6-Sem)
5957
5958 -----------------------------------------
5959 -- 8.5.5 Generic Renaming Declaration --
5960 -----------------------------------------
5961
5962 -- GENERIC_RENAMING_DECLARATION ::=
5963 -- generic package DEFINING_PROGRAM_UNIT_NAME
5964 -- renames generic_package_NAME
5965 -- [ASPECT_SPECIFICATIONS];
5966 -- | generic procedure DEFINING_PROGRAM_UNIT_NAME
5967 -- renames generic_procedure_NAME
5968 -- [ASPECT_SPECIFICATIONS];
5969 -- | generic function DEFINING_PROGRAM_UNIT_NAME
5970 -- renames generic_function_NAME
5971 -- [ASPECT_SPECIFICATIONS];
5972
5973 -- N_Generic_Package_Renaming_Declaration
5974 -- Sloc points to GENERIC
5975 -- Defining_Unit_Name (Node1)
5976 -- Name (Node2)
5977 -- Parent_Spec (Node4-Sem)
5978
5979 -- N_Generic_Procedure_Renaming_Declaration
5980 -- Sloc points to GENERIC
5981 -- Defining_Unit_Name (Node1)
5982 -- Name (Node2)
5983 -- Parent_Spec (Node4-Sem)
5984
5985 -- N_Generic_Function_Renaming_Declaration
5986 -- Sloc points to GENERIC
5987 -- Defining_Unit_Name (Node1)
5988 -- Name (Node2)
5989 -- Parent_Spec (Node4-Sem)
5990
5991 --------------------------------
5992 -- 9.1 Task Type Declaration --
5993 --------------------------------
5994
5995 -- TASK_TYPE_DECLARATION ::=
5996 -- task type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
5997 -- [ASPECT_SPECIFICATIONS]
5998 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
5999
6000 -- N_Task_Type_Declaration
6001 -- Sloc points to TASK
6002 -- Defining_Identifier (Node1)
6003 -- Discriminant_Specifications (List4) (set to No_List if no
6004 -- discriminant part)
6005 -- Interface_List (List2) (set to No_List if none)
6006 -- Task_Definition (Node3) (set to Empty if not present)
6007 -- Corresponding_Body (Node5-Sem)
6008
6009 ----------------------------------
6010 -- 9.1 Single Task Declaration --
6011 ----------------------------------
6012
6013 -- SINGLE_TASK_DECLARATION ::=
6014 -- task DEFINING_IDENTIFIER
6015 -- [ASPECT_SPECIFICATIONS]
6016 -- [is [new INTERFACE_LIST with] TASK_DEFINITION];
6017
6018 -- N_Single_Task_Declaration
6019 -- Sloc points to TASK
6020 -- Defining_Identifier (Node1)
6021 -- Interface_List (List2) (set to No_List if none)
6022 -- Task_Definition (Node3) (set to Empty if not present)
6023
6024 --------------------------
6025 -- 9.1 Task Definition --
6026 --------------------------
6027
6028 -- TASK_DEFINITION ::=
6029 -- {TASK_ITEM}
6030 -- [private
6031 -- {TASK_ITEM}]
6032 -- end [task_IDENTIFIER]
6033
6034 -- Note: as a result of semantic analysis, the list of task items can
6035 -- include implicit type declarations resulting from entry families.
6036
6037 -- N_Task_Definition
6038 -- Sloc points to first token of task definition
6039 -- Visible_Declarations (List2)
6040 -- Private_Declarations (List3) (set to No_List if no private part)
6041 -- End_Label (Node4)
6042 -- Has_Storage_Size_Pragma (Flag5-Sem)
6043 -- Has_Relative_Deadline_Pragma (Flag9-Sem)
6044
6045 --------------------
6046 -- 9.1 Task Item --
6047 --------------------
6048
6049 -- TASK_ITEM ::= ENTRY_DECLARATION | REPRESENTATION_CLAUSE
6050
6051 --------------------
6052 -- 9.1 Task Body --
6053 --------------------
6054
6055 -- TASK_BODY ::=
6056 -- task body task_DEFINING_IDENTIFIER
6057 -- [ASPECT_SPECIFICATIONS]
6058 -- is
6059 -- DECLARATIVE_PART
6060 -- begin
6061 -- HANDLED_SEQUENCE_OF_STATEMENTS
6062 -- end [task_IDENTIFIER];
6063
6064 -- Gigi restriction: This node never appears
6065
6066 -- N_Task_Body
6067 -- Sloc points to TASK
6068 -- Defining_Identifier (Node1)
6069 -- Declarations (List2)
6070 -- Handled_Statement_Sequence (Node4)
6071 -- Is_Task_Master (Flag5-Sem)
6072 -- Activation_Chain_Entity (Node3-Sem)
6073 -- Corresponding_Spec (Node5-Sem)
6074 -- Was_Originally_Stub (Flag13-Sem)
6075
6076 -------------------------------------
6077 -- 9.4 Protected Type Declaration --
6078 -------------------------------------
6079
6080 -- PROTECTED_TYPE_DECLARATION ::=
6081 -- protected type DEFINING_IDENTIFIER [KNOWN_DISCRIMINANT_PART]
6082 -- [ASPECT_SPECIFICATIONS]
6083 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6084
6085 -- Note: protected type declarations are not permitted in Ada 83 mode
6086
6087 -- N_Protected_Type_Declaration
6088 -- Sloc points to PROTECTED
6089 -- Defining_Identifier (Node1)
6090 -- Discriminant_Specifications (List4) (set to No_List if no
6091 -- discriminant part)
6092 -- Interface_List (List2) (set to No_List if none)
6093 -- Protected_Definition (Node3)
6094 -- Corresponding_Body (Node5-Sem)
6095
6096 ---------------------------------------
6097 -- 9.4 Single Protected Declaration --
6098 ---------------------------------------
6099
6100 -- SINGLE_PROTECTED_DECLARATION ::=
6101 -- protected DEFINING_IDENTIFIER
6102 -- [ASPECT_SPECIFICATIONS]
6103 -- is [new INTERFACE_LIST with] PROTECTED_DEFINITION;
6104
6105 -- Note: single protected declarations are not allowed in Ada 83 mode
6106
6107 -- N_Single_Protected_Declaration
6108 -- Sloc points to PROTECTED
6109 -- Defining_Identifier (Node1)
6110 -- Interface_List (List2) (set to No_List if none)
6111 -- Protected_Definition (Node3)
6112
6113 -------------------------------
6114 -- 9.4 Protected Definition --
6115 -------------------------------
6116
6117 -- PROTECTED_DEFINITION ::=
6118 -- {PROTECTED_OPERATION_DECLARATION}
6119 -- [private
6120 -- {PROTECTED_ELEMENT_DECLARATION}]
6121 -- end [protected_IDENTIFIER]
6122
6123 -- N_Protected_Definition
6124 -- Sloc points to first token of protected definition
6125 -- Visible_Declarations (List2)
6126 -- Private_Declarations (List3) (set to No_List if no private part)
6127 -- End_Label (Node4)
6128
6129 ------------------------------------------
6130 -- 9.4 Protected Operation Declaration --
6131 ------------------------------------------
6132
6133 -- PROTECTED_OPERATION_DECLARATION ::=
6134 -- SUBPROGRAM_DECLARATION
6135 -- | ENTRY_DECLARATION
6136 -- | REPRESENTATION_CLAUSE
6137
6138 ----------------------------------------
6139 -- 9.4 Protected Element Declaration --
6140 ----------------------------------------
6141
6142 -- PROTECTED_ELEMENT_DECLARATION ::=
6143 -- PROTECTED_OPERATION_DECLARATION | COMPONENT_DECLARATION
6144
6145 -------------------------
6146 -- 9.4 Protected Body --
6147 -------------------------
6148
6149 -- PROTECTED_BODY ::=
6150 -- protected body DEFINING_IDENTIFIER
6151 -- [ASPECT_SPECIFICATIONS];
6152 -- is
6153 -- {PROTECTED_OPERATION_ITEM}
6154 -- end [protected_IDENTIFIER];
6155
6156 -- Note: protected bodies are not allowed in Ada 83 mode
6157
6158 -- Gigi restriction: This node never appears
6159
6160 -- N_Protected_Body
6161 -- Sloc points to PROTECTED
6162 -- Defining_Identifier (Node1)
6163 -- Declarations (List2) protected operation items (and pragmas)
6164 -- End_Label (Node4)
6165 -- Corresponding_Spec (Node5-Sem)
6166 -- Was_Originally_Stub (Flag13-Sem)
6167
6168 -----------------------------------
6169 -- 9.4 Protected Operation Item --
6170 -----------------------------------
6171
6172 -- PROTECTED_OPERATION_ITEM ::=
6173 -- SUBPROGRAM_DECLARATION
6174 -- | SUBPROGRAM_BODY
6175 -- | ENTRY_BODY
6176 -- | REPRESENTATION_CLAUSE
6177
6178 ------------------------------
6179 -- 9.5.2 Entry Declaration --
6180 ------------------------------
6181
6182 -- ENTRY_DECLARATION ::=
6183 -- [[not] overriding]
6184 -- entry DEFINING_IDENTIFIER
6185 -- [(DISCRETE_SUBTYPE_DEFINITION)] PARAMETER_PROFILE
6186 -- [ASPECT_SPECIFICATIONS];
6187
6188 -- N_Entry_Declaration
6189 -- Sloc points to ENTRY
6190 -- Defining_Identifier (Node1)
6191 -- Discrete_Subtype_Definition (Node4) (set to Empty if not present)
6192 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6193 -- Corresponding_Body (Node5-Sem)
6194 -- Must_Override (Flag14) set if overriding indicator present
6195 -- Must_Not_Override (Flag15) set if not_overriding indicator present
6196
6197 -- Note: overriding indicator is an Ada 2005 feature
6198
6199 -----------------------------
6200 -- 9.5.2 Accept statement --
6201 -----------------------------
6202
6203 -- ACCEPT_STATEMENT ::=
6204 -- accept entry_DIRECT_NAME
6205 -- [(ENTRY_INDEX)] PARAMETER_PROFILE [do
6206 -- HANDLED_SEQUENCE_OF_STATEMENTS
6207 -- end [entry_IDENTIFIER]];
6208
6209 -- Gigi restriction: This node never appears
6210
6211 -- Note: there are no explicit declarations allowed in an accept
6212 -- statement. However, the implicit declarations for any statement
6213 -- identifiers (labels and block/loop identifiers) are declarations
6214 -- that belong logically to the accept statement, and that is why
6215 -- there is a Declarations field in this node.
6216
6217 -- N_Accept_Statement
6218 -- Sloc points to ACCEPT
6219 -- Entry_Direct_Name (Node1)
6220 -- Entry_Index (Node5) (set to Empty if not present)
6221 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6222 -- Handled_Statement_Sequence (Node4)
6223 -- Declarations (List2) (set to No_List if no declarations)
6224
6225 ------------------------
6226 -- 9.5.2 Entry Index --
6227 ------------------------
6228
6229 -- ENTRY_INDEX ::= EXPRESSION
6230
6231 -----------------------
6232 -- 9.5.2 Entry Body --
6233 -----------------------
6234
6235 -- ENTRY_BODY ::=
6236 -- entry DEFINING_IDENTIFIER ENTRY_BODY_FORMAL_PART ENTRY_BARRIER is
6237 -- DECLARATIVE_PART
6238 -- begin
6239 -- HANDLED_SEQUENCE_OF_STATEMENTS
6240 -- end [entry_IDENTIFIER];
6241
6242 -- ENTRY_BARRIER ::= when CONDITION
6243
6244 -- Note: we store the CONDITION of the ENTRY_BARRIER in the node for
6245 -- the ENTRY_BODY_FORMAL_PART to avoid the N_Entry_Body node getting
6246 -- too full (it would otherwise have too many fields)
6247
6248 -- Gigi restriction: This node never appears
6249
6250 -- N_Entry_Body
6251 -- Sloc points to ENTRY
6252 -- Defining_Identifier (Node1)
6253 -- Entry_Body_Formal_Part (Node5)
6254 -- Declarations (List2)
6255 -- Handled_Statement_Sequence (Node4)
6256 -- Activation_Chain_Entity (Node3-Sem)
6257
6258 -----------------------------------
6259 -- 9.5.2 Entry Body Formal Part --
6260 -----------------------------------
6261
6262 -- ENTRY_BODY_FORMAL_PART ::=
6263 -- [(ENTRY_INDEX_SPECIFICATION)] PARAMETER_PROFILE
6264
6265 -- Note that an entry body formal part node is present even if it is
6266 -- empty. This reflects the grammar, in which it is the components of
6267 -- the entry body formal part that are optional, not the entry body
6268 -- formal part itself. Also this means that the barrier condition
6269 -- always has somewhere to be stored.
6270
6271 -- Gigi restriction: This node never appears
6272
6273 -- N_Entry_Body_Formal_Part
6274 -- Sloc points to first token
6275 -- Entry_Index_Specification (Node4) (set to Empty if not present)
6276 -- Parameter_Specifications (List3) (set to No_List if no formal part)
6277 -- Condition (Node1) from entry barrier of entry body
6278
6279 --------------------------
6280 -- 9.5.2 Entry Barrier --
6281 --------------------------
6282
6283 -- ENTRY_BARRIER ::= when CONDITION
6284
6285 --------------------------------------
6286 -- 9.5.2 Entry Index Specification --
6287 --------------------------------------
6288
6289 -- ENTRY_INDEX_SPECIFICATION ::=
6290 -- for DEFINING_IDENTIFIER in DISCRETE_SUBTYPE_DEFINITION
6291
6292 -- Gigi restriction: This node never appears
6293
6294 -- N_Entry_Index_Specification
6295 -- Sloc points to FOR
6296 -- Defining_Identifier (Node1)
6297 -- Discrete_Subtype_Definition (Node4)
6298
6299 ---------------------------------
6300 -- 9.5.3 Entry Call Statement --
6301 ---------------------------------
6302
6303 -- ENTRY_CALL_STATEMENT ::= entry_NAME [ACTUAL_PARAMETER_PART];
6304
6305 -- The parser may generate a procedure call for this construct. The
6306 -- semantic pass must correct this misidentification where needed.
6307
6308 -- Gigi restriction: This node never appears
6309
6310 -- N_Entry_Call_Statement
6311 -- Sloc points to first token of name
6312 -- Name (Node2)
6313 -- Parameter_Associations (List3) (set to No_List if no
6314 -- actual parameter part)
6315 -- First_Named_Actual (Node4-Sem)
6316 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6317 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6318 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6319
6320 ------------------------------
6321 -- 9.5.4 Requeue Statement --
6322 ------------------------------
6323
6324 -- REQUEUE_STATEMENT ::= requeue entry_NAME [with abort];
6325
6326 -- Note: requeue statements are not permitted in Ada 83 mode
6327
6328 -- Gigi restriction: This node never appears
6329
6330 -- N_Requeue_Statement
6331 -- Sloc points to REQUEUE
6332 -- Name (Node2)
6333 -- Abort_Present (Flag15)
6334 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
6335 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
6336 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
6337
6338 --------------------------
6339 -- 9.6 Delay Statement --
6340 --------------------------
6341
6342 -- DELAY_STATEMENT ::=
6343 -- DELAY_UNTIL_STATEMENT
6344 -- | DELAY_RELATIVE_STATEMENT
6345
6346 --------------------------------
6347 -- 9.6 Delay Until Statement --
6348 --------------------------------
6349
6350 -- DELAY_UNTIL_STATEMENT ::= delay until delay_EXPRESSION;
6351
6352 -- Note: delay until statements are not permitted in Ada 83 mode
6353
6354 -- Gigi restriction: This node never appears
6355
6356 -- N_Delay_Until_Statement
6357 -- Sloc points to DELAY
6358 -- Expression (Node3)
6359
6360 -----------------------------------
6361 -- 9.6 Delay Relative Statement --
6362 -----------------------------------
6363
6364 -- DELAY_RELATIVE_STATEMENT ::= delay delay_EXPRESSION;
6365
6366 -- Gigi restriction: This node never appears
6367
6368 -- N_Delay_Relative_Statement
6369 -- Sloc points to DELAY
6370 -- Expression (Node3)
6371
6372 ---------------------------
6373 -- 9.7 Select Statement --
6374 ---------------------------
6375
6376 -- SELECT_STATEMENT ::=
6377 -- SELECTIVE_ACCEPT
6378 -- | TIMED_ENTRY_CALL
6379 -- | CONDITIONAL_ENTRY_CALL
6380 -- | ASYNCHRONOUS_SELECT
6381
6382 -----------------------------
6383 -- 9.7.1 Selective Accept --
6384 -----------------------------
6385
6386 -- SELECTIVE_ACCEPT ::=
6387 -- select
6388 -- [GUARD]
6389 -- SELECT_ALTERNATIVE
6390 -- {or
6391 -- [GUARD]
6392 -- SELECT_ALTERNATIVE}
6393 -- [else
6394 -- SEQUENCE_OF_STATEMENTS]
6395 -- end select;
6396
6397 -- Gigi restriction: This node never appears
6398
6399 -- Note: the guard expression, if present, appears in the node for
6400 -- the select alternative.
6401
6402 -- N_Selective_Accept
6403 -- Sloc points to SELECT
6404 -- Select_Alternatives (List1)
6405 -- Else_Statements (List4) (set to No_List if no else part)
6406
6407 ------------------
6408 -- 9.7.1 Guard --
6409 ------------------
6410
6411 -- GUARD ::= when CONDITION =>
6412
6413 -- As noted above, the CONDITION that is part of a GUARD is included
6414 -- in the node for the select alternative for convenience.
6415
6416 -------------------------------
6417 -- 9.7.1 Select Alternative --
6418 -------------------------------
6419
6420 -- SELECT_ALTERNATIVE ::=
6421 -- ACCEPT_ALTERNATIVE
6422 -- | DELAY_ALTERNATIVE
6423 -- | TERMINATE_ALTERNATIVE
6424
6425 -------------------------------
6426 -- 9.7.1 Accept Alternative --
6427 -------------------------------
6428
6429 -- ACCEPT_ALTERNATIVE ::=
6430 -- ACCEPT_STATEMENT [SEQUENCE_OF_STATEMENTS]
6431
6432 -- Gigi restriction: This node never appears
6433
6434 -- N_Accept_Alternative
6435 -- Sloc points to ACCEPT
6436 -- Accept_Statement (Node2)
6437 -- Condition (Node1) from the guard (set to Empty if no guard present)
6438 -- Statements (List3) (set to Empty_List if no statements)
6439 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6440 -- Accept_Handler_Records (List5-Sem)
6441
6442 ------------------------------
6443 -- 9.7.1 Delay Alternative --
6444 ------------------------------
6445
6446 -- DELAY_ALTERNATIVE ::=
6447 -- DELAY_STATEMENT [SEQUENCE_OF_STATEMENTS]
6448
6449 -- Gigi restriction: This node never appears
6450
6451 -- N_Delay_Alternative
6452 -- Sloc points to DELAY
6453 -- Delay_Statement (Node2)
6454 -- Condition (Node1) from the guard (set to Empty if no guard present)
6455 -- Statements (List3) (set to Empty_List if no statements)
6456 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6457
6458 ----------------------------------
6459 -- 9.7.1 Terminate Alternative --
6460 ----------------------------------
6461
6462 -- TERMINATE_ALTERNATIVE ::= terminate;
6463
6464 -- Gigi restriction: This node never appears
6465
6466 -- N_Terminate_Alternative
6467 -- Sloc points to TERMINATE
6468 -- Condition (Node1) from the guard (set to Empty if no guard present)
6469 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6470 -- Pragmas_After (List5) pragmas after alt (set to No_List if none)
6471
6472 -----------------------------
6473 -- 9.7.2 Timed Entry Call --
6474 -----------------------------
6475
6476 -- TIMED_ENTRY_CALL ::=
6477 -- select
6478 -- ENTRY_CALL_ALTERNATIVE
6479 -- or
6480 -- DELAY_ALTERNATIVE
6481 -- end select;
6482
6483 -- Gigi restriction: This node never appears
6484
6485 -- N_Timed_Entry_Call
6486 -- Sloc points to SELECT
6487 -- Entry_Call_Alternative (Node1)
6488 -- Delay_Alternative (Node4)
6489
6490 -----------------------------------
6491 -- 9.7.2 Entry Call Alternative --
6492 -----------------------------------
6493
6494 -- ENTRY_CALL_ALTERNATIVE ::=
6495 -- PROCEDURE_OR_ENTRY_CALL [SEQUENCE_OF_STATEMENTS]
6496
6497 -- PROCEDURE_OR_ENTRY_CALL ::=
6498 -- PROCEDURE_CALL_STATEMENT | ENTRY_CALL_STATEMENT
6499
6500 -- Gigi restriction: This node never appears
6501
6502 -- N_Entry_Call_Alternative
6503 -- Sloc points to first token of entry call statement
6504 -- Entry_Call_Statement (Node1)
6505 -- Statements (List3) (set to Empty_List if no statements)
6506 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6507
6508 -----------------------------------
6509 -- 9.7.3 Conditional Entry Call --
6510 -----------------------------------
6511
6512 -- CONDITIONAL_ENTRY_CALL ::=
6513 -- select
6514 -- ENTRY_CALL_ALTERNATIVE
6515 -- else
6516 -- SEQUENCE_OF_STATEMENTS
6517 -- end select;
6518
6519 -- Gigi restriction: This node never appears
6520
6521 -- N_Conditional_Entry_Call
6522 -- Sloc points to SELECT
6523 -- Entry_Call_Alternative (Node1)
6524 -- Else_Statements (List4)
6525
6526 --------------------------------
6527 -- 9.7.4 Asynchronous Select --
6528 --------------------------------
6529
6530 -- ASYNCHRONOUS_SELECT ::=
6531 -- select
6532 -- TRIGGERING_ALTERNATIVE
6533 -- then abort
6534 -- ABORTABLE_PART
6535 -- end select;
6536
6537 -- Note: asynchronous select is not permitted in Ada 83 mode
6538
6539 -- Gigi restriction: This node never appears
6540
6541 -- N_Asynchronous_Select
6542 -- Sloc points to SELECT
6543 -- Triggering_Alternative (Node1)
6544 -- Abortable_Part (Node2)
6545
6546 -----------------------------------
6547 -- 9.7.4 Triggering Alternative --
6548 -----------------------------------
6549
6550 -- TRIGGERING_ALTERNATIVE ::=
6551 -- TRIGGERING_STATEMENT [SEQUENCE_OF_STATEMENTS]
6552
6553 -- Gigi restriction: This node never appears
6554
6555 -- N_Triggering_Alternative
6556 -- Sloc points to first token of triggering statement
6557 -- Triggering_Statement (Node1)
6558 -- Statements (List3) (set to Empty_List if no statements)
6559 -- Pragmas_Before (List4) pragmas before alt (set to No_List if none)
6560
6561 ---------------------------------
6562 -- 9.7.4 Triggering Statement --
6563 ---------------------------------
6564
6565 -- TRIGGERING_STATEMENT ::= PROCEDURE_OR_ENTRY_CALL | DELAY_STATEMENT
6566
6567 ---------------------------
6568 -- 9.7.4 Abortable Part --
6569 ---------------------------
6570
6571 -- ABORTABLE_PART ::= SEQUENCE_OF_STATEMENTS
6572
6573 -- Gigi restriction: This node never appears
6574
6575 -- N_Abortable_Part
6576 -- Sloc points to ABORT
6577 -- Statements (List3)
6578
6579 --------------------------
6580 -- 9.8 Abort Statement --
6581 --------------------------
6582
6583 -- ABORT_STATEMENT ::= abort task_NAME {, task_NAME};
6584
6585 -- Gigi restriction: This node never appears
6586
6587 -- N_Abort_Statement
6588 -- Sloc points to ABORT
6589 -- Names (List2)
6590
6591 -------------------------
6592 -- 10.1.1 Compilation --
6593 -------------------------
6594
6595 -- COMPILATION ::= {COMPILATION_UNIT}
6596
6597 -- There is no explicit node in the tree for a compilation, since in
6598 -- general the compiler is processing only a single compilation unit
6599 -- at a time. It is possible to parse multiple units in syntax check
6600 -- only mode, but the trees are discarded in that case.
6601
6602 ------------------------------
6603 -- 10.1.1 Compilation Unit --
6604 ------------------------------
6605
6606 -- COMPILATION_UNIT ::=
6607 -- CONTEXT_CLAUSE LIBRARY_ITEM
6608 -- | CONTEXT_CLAUSE SUBUNIT
6609
6610 -- The N_Compilation_Unit node itself represents the above syntax.
6611 -- However, there are two additional items not reflected in the above
6612 -- syntax. First we have the global declarations that are added by the
6613 -- code generator. These are outer level declarations (so they cannot
6614 -- be represented as being inside the units). An example is the wrapper
6615 -- subprograms that are created to do ABE checking. As always a list of
6616 -- declarations can contain actions as well (i.e. statements), and such
6617 -- statements are executed as part of the elaboration of the unit. Note
6618 -- that all such declarations are elaborated before the library unit.
6619
6620 -- Similarly, certain actions need to be elaborated at the completion
6621 -- of elaboration of the library unit (notably the statement that sets
6622 -- the Boolean flag indicating that elaboration is complete).
6623
6624 -- The third item not reflected in the syntax is pragmas that appear
6625 -- after the compilation unit. As always pragmas are a problem since
6626 -- they are not part of the formal syntax, but can be stuck into the
6627 -- source following a set of ad hoc rules, and we have to find an ad
6628 -- hoc way of sticking them into the tree. For pragmas that appear
6629 -- before the library unit, we just consider them to be part of the
6630 -- context clause, and pragmas can appear in the Context_Items list
6631 -- of the compilation unit. However, pragmas can also appear after
6632 -- the library item.
6633
6634 -- To deal with all these problems, we create an auxiliary node for
6635 -- a compilation unit, referenced from the N_Compilation_Unit node,
6636 -- that contains these items.
6637
6638 -- N_Compilation_Unit
6639 -- Sloc points to first token of defining unit name
6640 -- Context_Items (List1) context items and pragmas preceding unit
6641 -- Private_Present (Flag15) set if library unit has private keyword
6642 -- Unit (Node2) library item or subunit
6643 -- Aux_Decls_Node (Node5) points to the N_Compilation_Unit_Aux node
6644 -- First_Inlined_Subprogram (Node3-Sem)
6645 -- Library_Unit (Node4-Sem) corresponding/parent spec/body
6646 -- Save_Invocation_Graph_Of_Body (Flag1-Sem)
6647 -- Acts_As_Spec (Flag4-Sem) flag for subprogram body with no spec
6648 -- Body_Required (Flag13-Sem) set for spec if body is required
6649 -- Has_Pragma_Suppress_All (Flag14-Sem)
6650 -- Context_Pending (Flag16-Sem)
6651 -- Has_No_Elaboration_Code (Flag17-Sem)
6652
6653 -- N_Compilation_Unit_Aux
6654 -- Sloc is a copy of the Sloc from the N_Compilation_Unit node
6655 -- Declarations (List2) (set to No_List if no global declarations)
6656 -- Actions (List1) (set to No_List if no actions)
6657 -- Pragmas_After (List5) pragmas after unit (set to No_List if none)
6658 -- Config_Pragmas (List4) config pragmas (set to Empty_List if none)
6659 -- Default_Storage_Pool (Node3-Sem)
6660
6661 --------------------------
6662 -- 10.1.1 Library Item --
6663 --------------------------
6664
6665 -- LIBRARY_ITEM ::=
6666 -- [private] LIBRARY_UNIT_DECLARATION
6667 -- | LIBRARY_UNIT_BODY
6668 -- | [private] LIBRARY_UNIT_RENAMING_DECLARATION
6669
6670 -- Note: PRIVATE is not allowed in Ada 83 mode
6671
6672 -- There is no explicit node in the tree for library item, instead
6673 -- the declaration or body, and the flag for private if present,
6674 -- appear in the N_Compilation_Unit node.
6675
6676 --------------------------------------
6677 -- 10.1.1 Library Unit Declaration --
6678 --------------------------------------
6679
6680 -- LIBRARY_UNIT_DECLARATION ::=
6681 -- SUBPROGRAM_DECLARATION | PACKAGE_DECLARATION
6682 -- | GENERIC_DECLARATION | GENERIC_INSTANTIATION
6683
6684 -----------------------------------------------
6685 -- 10.1.1 Library Unit Renaming Declaration --
6686 -----------------------------------------------
6687
6688 -- LIBRARY_UNIT_RENAMING_DECLARATION ::=
6689 -- PACKAGE_RENAMING_DECLARATION
6690 -- | GENERIC_RENAMING_DECLARATION
6691 -- | SUBPROGRAM_RENAMING_DECLARATION
6692
6693 -------------------------------
6694 -- 10.1.1 Library unit body --
6695 -------------------------------
6696
6697 -- LIBRARY_UNIT_BODY ::= SUBPROGRAM_BODY | PACKAGE_BODY
6698
6699 ------------------------------
6700 -- 10.1.1 Parent Unit Name --
6701 ------------------------------
6702
6703 -- PARENT_UNIT_NAME ::= NAME
6704
6705 ----------------------------
6706 -- 10.1.2 Context clause --
6707 ----------------------------
6708
6709 -- CONTEXT_CLAUSE ::= {CONTEXT_ITEM}
6710
6711 -- The context clause can include pragmas, and any pragmas that appear
6712 -- before the context clause proper (i.e. all configuration pragmas,
6713 -- also appear at the front of this list).
6714
6715 --------------------------
6716 -- 10.1.2 Context_Item --
6717 --------------------------
6718
6719 -- CONTEXT_ITEM ::= WITH_CLAUSE | USE_CLAUSE | WITH_TYPE_CLAUSE
6720
6721 -------------------------
6722 -- 10.1.2 With clause --
6723 -------------------------
6724
6725 -- WITH_CLAUSE ::=
6726 -- with library_unit_NAME {,library_unit_NAME};
6727
6728 -- A separate With clause is built for each name, so that we have
6729 -- a Corresponding_Spec field for each with'ed spec. The flags
6730 -- First_Name and Last_Name are used to reconstruct the exact
6731 -- source form. When a list of names appears in one with clause,
6732 -- the first name in the list has First_Name set, and the last
6733 -- has Last_Name set. If the with clause has only one name, then
6734 -- both of the flags First_Name and Last_Name are set in this name.
6735
6736 -- Note: in the case of implicit with's that are installed by the
6737 -- Rtsfind routine, Implicit_With is set, and the Sloc is typically
6738 -- set to Standard_Location, but it is incorrect to test the Sloc
6739 -- to find out if a with clause is implicit, test the flag instead.
6740
6741 -- N_With_Clause
6742 -- Sloc points to first token of library unit name
6743 -- Name (Node2)
6744 -- Private_Present (Flag15) set if with_clause has private keyword
6745 -- Limited_Present (Flag17) set if LIMITED is present
6746 -- Next_Implicit_With (Node3-Sem)
6747 -- Library_Unit (Node4-Sem)
6748 -- Corresponding_Spec (Node5-Sem)
6749 -- First_Name (Flag5) (set to True if first name or only one name)
6750 -- Last_Name (Flag6) (set to True if last name or only one name)
6751 -- Context_Installed (Flag13-Sem)
6752 -- Elaborate_Present (Flag4-Sem)
6753 -- Elaborate_All_Present (Flag14-Sem)
6754 -- Elaborate_All_Desirable (Flag9-Sem)
6755 -- Elaborate_Desirable (Flag11-Sem)
6756 -- Implicit_With (Flag16-Sem)
6757 -- Limited_View_Installed (Flag18-Sem)
6758 -- Parent_With (Flag1-Sem)
6759 -- Unreferenced_In_Spec (Flag7-Sem)
6760 -- No_Entities_Ref_In_Spec (Flag8-Sem)
6761
6762 -- Note: Limited_Present and Limited_View_Installed are used to support
6763 -- the implementation of Ada 2005 (AI-50217).
6764
6765 -- Similarly, Private_Present is used to support the implementation of
6766 -- Ada 2005 (AI-50262).
6767
6768 -- Note: if the WITH clause refers to a standard library unit, then a
6769 -- limited with clause is changed into a normal with clause, because we
6770 -- are not prepared to deal with limited with in the context of Rtsfind.
6771 -- So in this case, the Limited_Present flag will be False in the final
6772 -- tree. However, we do NOT do this transformation in ASIS mode, so for
6773 -- ASIS the flag will remain set in this situation.
6774
6775 ----------------------
6776 -- With_Type clause --
6777 ----------------------
6778
6779 -- This is a GNAT extension, used to implement mutually recursive
6780 -- types declared in different packages.
6781
6782 -- Note: this is now obsolete. The functionality of this construct
6783 -- is now implemented by the Ada 2005 limited_with_clause.
6784
6785 ---------------------
6786 -- 10.2 Body stub --
6787 ---------------------
6788
6789 -- BODY_STUB ::=
6790 -- SUBPROGRAM_BODY_STUB
6791 -- | PACKAGE_BODY_STUB
6792 -- | TASK_BODY_STUB
6793 -- | PROTECTED_BODY_STUB
6794
6795 ----------------------------------
6796 -- 10.1.3 Subprogram Body Stub --
6797 ----------------------------------
6798
6799 -- SUBPROGRAM_BODY_STUB ::=
6800 -- SUBPROGRAM_SPECIFICATION is separate
6801 -- [ASPECT_SPECIFICATION];
6802
6803 -- N_Subprogram_Body_Stub
6804 -- Sloc points to FUNCTION or PROCEDURE
6805 -- Specification (Node1)
6806 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6807 -- Library_Unit (Node4-Sem) points to the subunit
6808 -- Corresponding_Body (Node5-Sem)
6809
6810 -------------------------------
6811 -- 10.1.3 Package Body Stub --
6812 -------------------------------
6813
6814 -- PACKAGE_BODY_STUB ::=
6815 -- package body DEFINING_IDENTIFIER is separate
6816 -- [ASPECT_SPECIFICATION];
6817
6818 -- N_Package_Body_Stub
6819 -- Sloc points to PACKAGE
6820 -- Defining_Identifier (Node1)
6821 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6822 -- Library_Unit (Node4-Sem) points to the subunit
6823 -- Corresponding_Body (Node5-Sem)
6824
6825 ----------------------------
6826 -- 10.1.3 Task Body Stub --
6827 ----------------------------
6828
6829 -- TASK_BODY_STUB ::=
6830 -- task body DEFINING_IDENTIFIER is separate
6831 -- [ASPECT_SPECIFICATION];
6832
6833 -- N_Task_Body_Stub
6834 -- Sloc points to TASK
6835 -- Defining_Identifier (Node1)
6836 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6837 -- Library_Unit (Node4-Sem) points to the subunit
6838 -- Corresponding_Body (Node5-Sem)
6839
6840 ---------------------------------
6841 -- 10.1.3 Protected Body Stub --
6842 ---------------------------------
6843
6844 -- PROTECTED_BODY_STUB ::=
6845 -- protected body DEFINING_IDENTIFIER is separate
6846 -- [ASPECT_SPECIFICATION];
6847
6848 -- Note: protected body stubs are not allowed in Ada 83 mode
6849
6850 -- N_Protected_Body_Stub
6851 -- Sloc points to PROTECTED
6852 -- Defining_Identifier (Node1)
6853 -- Corresponding_Spec_Of_Stub (Node2-Sem)
6854 -- Library_Unit (Node4-Sem) points to the subunit
6855 -- Corresponding_Body (Node5-Sem)
6856
6857 ---------------------
6858 -- 10.1.3 Subunit --
6859 ---------------------
6860
6861 -- SUBUNIT ::= separate (PARENT_UNIT_NAME) PROPER_BODY
6862
6863 -- N_Subunit
6864 -- Sloc points to SEPARATE
6865 -- Name (Node2) is the name of the parent unit
6866 -- Proper_Body (Node1) is the subunit body
6867 -- Corresponding_Stub (Node3-Sem) is the stub declaration for the unit.
6868
6869 ---------------------------------
6870 -- 11.1 Exception Declaration --
6871 ---------------------------------
6872
6873 -- EXCEPTION_DECLARATION ::= DEFINING_IDENTIFIER_LIST : exception
6874 -- [ASPECT_SPECIFICATIONS];
6875
6876 -- For consistency with object declarations etc., the parser converts
6877 -- the case of multiple identifiers being declared to a series of
6878 -- declarations in which the expression is copied, using the More_Ids
6879 -- and Prev_Ids flags to remember the source form as described in the
6880 -- section on "Handling of Defining Identifier Lists".
6881
6882 -- N_Exception_Declaration
6883 -- Sloc points to EXCEPTION
6884 -- Defining_Identifier (Node1)
6885 -- Expression (Node3-Sem)
6886 -- Renaming_Exception (Node2-Sem)
6887 -- More_Ids (Flag5) (set to False if no more identifiers in list)
6888 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
6889
6890 ------------------------------------------
6891 -- 11.2 Handled Sequence Of Statements --
6892 ------------------------------------------
6893
6894 -- HANDLED_SEQUENCE_OF_STATEMENTS ::=
6895 -- SEQUENCE_OF_STATEMENTS
6896 -- [exception
6897 -- EXCEPTION_HANDLER
6898 -- {EXCEPTION_HANDLER}]
6899 -- [at end
6900 -- cleanup_procedure_call (param, param, param, ...);]
6901
6902 -- The AT END phrase is a GNAT extension to provide for cleanups. It is
6903 -- used only internally currently, but is considered to be syntactic.
6904 -- At the moment, the only cleanup action allowed is a single call to
6905 -- a parameterless procedure, and the Identifier field of the node is
6906 -- the procedure to be called. The cleanup action occurs whenever the
6907 -- sequence of statements is left for any reason. The possible reasons
6908 -- are:
6909 -- 1. reaching the end of the sequence
6910 -- 2. exit, return, or goto
6911 -- 3. exception or abort
6912 -- For some back ends, such as gcc with ZCX, "at end" is implemented
6913 -- entirely in the back end. In this case, a handled sequence of
6914 -- statements with an "at end" cannot also have exception handlers.
6915 -- For other back ends, such as gcc with front-end SJLJ, the
6916 -- implementation is split between the front end and back end; the front
6917 -- end implements 3, and the back end implements 1 and 2. In this case,
6918 -- if there is an "at end", the front end inserts the appropriate
6919 -- exception handler, and this handler takes precedence over "at end"
6920 -- in case of exception.
6921
6922 -- The inserted exception handler is of the form:
6923
6924 -- when all others =>
6925 -- cleanup;
6926 -- raise;
6927
6928 -- where cleanup is the procedure to be called. The reason we do this is
6929 -- so that the front end can handle the necessary entries in the
6930 -- exception tables, and other exception handler actions required as
6931 -- part of the normal handling for exception handlers.
6932
6933 -- The AT END cleanup handler protects only the sequence of statements
6934 -- (not the associated declarations of the parent), just like exception
6935 -- handlers. The big difference is that the cleanup procedure is called
6936 -- on either a normal or an abnormal exit from the statement sequence.
6937
6938 -- Note: the list of Exception_Handlers can contain pragmas as well
6939 -- as actual handlers. In practice these pragmas can only occur at
6940 -- the start of the list, since any pragmas occurring later on will
6941 -- be included in the statement list of the corresponding handler.
6942
6943 -- Note: although in the Ada syntax, the sequence of statements in
6944 -- a handled sequence of statements can only contain statements, we
6945 -- allow free mixing of declarations and statements in the resulting
6946 -- expanded tree. This is for example used to deal with the case of
6947 -- a cleanup procedure that must handle declarations as well as the
6948 -- statements of a block.
6949
6950 -- Note: the cleanup_procedure_call does not go through the common
6951 -- processing for calls, which in particular means that it will not be
6952 -- automatically inlined in all cases, even though the procedure to be
6953 -- called is marked inline. More specifically, if the procedure comes
6954 -- from another unit than the main source unit, for example a run-time
6955 -- unit, then it needs to be manually added to the list of bodies to be
6956 -- inlined by invoking Add_Inlined_Body on it.
6957
6958 -- N_Handled_Sequence_Of_Statements
6959 -- Sloc points to first token of first statement
6960 -- Statements (List3)
6961 -- End_Label (Node4) (set to Empty if expander generated)
6962 -- Exception_Handlers (List5) (set to No_List if none present)
6963 -- At_End_Proc (Node1) (set to Empty if no clean up procedure)
6964 -- First_Real_Statement (Node2-Sem)
6965
6966 -- Note: the parent always contains a Declarations field which contains
6967 -- declarations associated with the handled sequence of statements. This
6968 -- is true even in the case of an accept statement (see description of
6969 -- the N_Accept_Statement node).
6970
6971 -- End_Label refers to the containing construct
6972
6973 -----------------------------
6974 -- 11.2 Exception Handler --
6975 -----------------------------
6976
6977 -- EXCEPTION_HANDLER ::=
6978 -- when [CHOICE_PARAMETER_SPECIFICATION :]
6979 -- EXCEPTION_CHOICE {| EXCEPTION_CHOICE} =>
6980 -- SEQUENCE_OF_STATEMENTS
6981
6982 -- Note: choice parameter specification is not allowed in Ada 83 mode
6983
6984 -- N_Exception_Handler
6985 -- Sloc points to WHEN
6986 -- Choice_Parameter (Node2) (set to Empty if not present)
6987 -- Exception_Choices (List4)
6988 -- Statements (List3)
6989 -- Exception_Label (Node5-Sem) (set to Empty of not present)
6990 -- Local_Raise_Statements (Elist1-Sem) (set to No_Elist if not present)
6991 -- Local_Raise_Not_OK (Flag7-Sem)
6992 -- Has_Local_Raise (Flag8-Sem)
6993
6994 ------------------------------------------
6995 -- 11.2 Choice parameter specification --
6996 ------------------------------------------
6997
6998 -- CHOICE_PARAMETER_SPECIFICATION ::= DEFINING_IDENTIFIER
6999
7000 ----------------------------
7001 -- 11.2 Exception Choice --
7002 ----------------------------
7003
7004 -- EXCEPTION_CHOICE ::= exception_NAME | others
7005
7006 -- Except in the case of OTHERS, no explicit node appears in the tree
7007 -- for exception choice. Instead the exception name appears directly.
7008 -- An OTHERS choice is represented by a N_Others_Choice node (see
7009 -- section 3.8.1.
7010
7011 -- Note: for the exception choice created for an at end handler, the
7012 -- exception choice is an N_Others_Choice node with All_Others set.
7013
7014 ---------------------------
7015 -- 11.3 Raise Statement --
7016 ---------------------------
7017
7018 -- RAISE_STATEMENT ::= raise [exception_NAME];
7019
7020 -- In Ada 2005, we have
7021
7022 -- RAISE_STATEMENT ::=
7023 -- raise; | raise exception_NAME [with string_EXPRESSION];
7024
7025 -- N_Raise_Statement
7026 -- Sloc points to RAISE
7027 -- Name (Node2) (set to Empty if no exception name present)
7028 -- Expression (Node3) (set to Empty if no expression present)
7029 -- From_At_End (Flag4-Sem)
7030
7031 ----------------------------
7032 -- 11.3 Raise Expression --
7033 ----------------------------
7034
7035 -- RAISE_EXPRESSION ::= raise exception_NAME [with string_EXPRESSION]
7036
7037 -- N_Raise_Expression
7038 -- Sloc points to RAISE
7039 -- Name (Node2) (always present)
7040 -- Expression (Node3) (set to Empty if no expression present)
7041 -- Convert_To_Return_False (Flag13-Sem)
7042 -- plus fields for expression
7043
7044 -------------------------------
7045 -- 12.1 Generic Declaration --
7046 -------------------------------
7047
7048 -- GENERIC_DECLARATION ::=
7049 -- GENERIC_SUBPROGRAM_DECLARATION | GENERIC_PACKAGE_DECLARATION
7050
7051 ------------------------------------------
7052 -- 12.1 Generic Subprogram Declaration --
7053 ------------------------------------------
7054
7055 -- GENERIC_SUBPROGRAM_DECLARATION ::=
7056 -- GENERIC_FORMAL_PART SUBPROGRAM_SPECIFICATION
7057 -- [ASPECT_SPECIFICATIONS];
7058
7059 -- Note: Generic_Formal_Declarations can include pragmas
7060
7061 -- N_Generic_Subprogram_Declaration
7062 -- Sloc points to GENERIC
7063 -- Specification (Node1) subprogram specification
7064 -- Corresponding_Body (Node5-Sem)
7065 -- Generic_Formal_Declarations (List2) from generic formal part
7066 -- Parent_Spec (Node4-Sem)
7067
7068 ---------------------------------------
7069 -- 12.1 Generic Package Declaration --
7070 ---------------------------------------
7071
7072 -- GENERIC_PACKAGE_DECLARATION ::=
7073 -- GENERIC_FORMAL_PART PACKAGE_SPECIFICATION
7074 -- [ASPECT_SPECIFICATIONS];
7075
7076 -- Note: when we do generics right, the Activation_Chain_Entity entry
7077 -- for this node can be removed (since the expander won't see generic
7078 -- units any more)???.
7079
7080 -- Note: Generic_Formal_Declarations can include pragmas
7081
7082 -- N_Generic_Package_Declaration
7083 -- Sloc points to GENERIC
7084 -- Specification (Node1) package specification
7085 -- Corresponding_Body (Node5-Sem)
7086 -- Generic_Formal_Declarations (List2) from generic formal part
7087 -- Parent_Spec (Node4-Sem)
7088 -- Activation_Chain_Entity (Node3-Sem)
7089
7090 -------------------------------
7091 -- 12.1 Generic Formal Part --
7092 -------------------------------
7093
7094 -- GENERIC_FORMAL_PART ::=
7095 -- generic {GENERIC_FORMAL_PARAMETER_DECLARATION | USE_CLAUSE}
7096
7097 ------------------------------------------------
7098 -- 12.1 Generic Formal Parameter Declaration --
7099 ------------------------------------------------
7100
7101 -- GENERIC_FORMAL_PARAMETER_DECLARATION ::=
7102 -- FORMAL_OBJECT_DECLARATION
7103 -- | FORMAL_TYPE_DECLARATION
7104 -- | FORMAL_SUBPROGRAM_DECLARATION
7105 -- | FORMAL_PACKAGE_DECLARATION
7106
7107 ---------------------------------
7108 -- 12.3 Generic Instantiation --
7109 ---------------------------------
7110
7111 -- GENERIC_INSTANTIATION ::=
7112 -- package DEFINING_PROGRAM_UNIT_NAME is
7113 -- new generic_package_NAME [GENERIC_ACTUAL_PART]
7114 -- [ASPECT_SPECIFICATIONS];
7115 -- | [[not] overriding]
7116 -- procedure DEFINING_PROGRAM_UNIT_NAME is
7117 -- new generic_procedure_NAME [GENERIC_ACTUAL_PART]
7118 -- [ASPECT_SPECIFICATIONS];
7119 -- | [[not] overriding]
7120 -- function DEFINING_DESIGNATOR is
7121 -- new generic_function_NAME [GENERIC_ACTUAL_PART]
7122 -- [ASPECT_SPECIFICATIONS];
7123
7124 -- N_Package_Instantiation
7125 -- Sloc points to PACKAGE
7126 -- Defining_Unit_Name (Node1)
7127 -- Name (Node2)
7128 -- Generic_Associations (List3) (set to No_List if no
7129 -- generic actual part)
7130 -- Parent_Spec (Node4-Sem)
7131 -- Instance_Spec (Node5-Sem)
7132 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7133 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7134 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7135 -- Is_Declaration_Level_Node (Flag5-Sem)
7136 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7137
7138 -- N_Procedure_Instantiation
7139 -- Sloc points to PROCEDURE
7140 -- Defining_Unit_Name (Node1)
7141 -- Name (Node2)
7142 -- Parent_Spec (Node4-Sem)
7143 -- Generic_Associations (List3) (set to No_List if no
7144 -- generic actual part)
7145 -- Instance_Spec (Node5-Sem)
7146 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7147 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7148 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7149 -- Is_Declaration_Level_Node (Flag5-Sem)
7150 -- Must_Override (Flag14) set if overriding indicator present
7151 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7152 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7153
7154 -- N_Function_Instantiation
7155 -- Sloc points to FUNCTION
7156 -- Defining_Unit_Name (Node1)
7157 -- Name (Node2)
7158 -- Generic_Associations (List3) (set to No_List if no
7159 -- generic actual part)
7160 -- Parent_Spec (Node4-Sem)
7161 -- Instance_Spec (Node5-Sem)
7162 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7163 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7164 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7165 -- Is_Declaration_Level_Node (Flag5-Sem)
7166 -- Must_Override (Flag14) set if overriding indicator present
7167 -- Must_Not_Override (Flag15) set if not_overriding indicator present
7168 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7169
7170 -- Note: overriding indicator is an Ada 2005 feature
7171
7172 -------------------------------
7173 -- 12.3 Generic Actual Part --
7174 -------------------------------
7175
7176 -- GENERIC_ACTUAL_PART ::=
7177 -- (GENERIC_ASSOCIATION {, GENERIC_ASSOCIATION})
7178
7179 -------------------------------
7180 -- 12.3 Generic Association --
7181 -------------------------------
7182
7183 -- GENERIC_ASSOCIATION ::=
7184 -- [generic_formal_parameter_SELECTOR_NAME =>]
7185
7186 -- Note: unlike the procedure call case, a generic association node
7187 -- is generated for every association, even if no formal parameter
7188 -- selector name is present. In this case the parser will leave the
7189 -- Selector_Name field set to Empty, to be filled in later by the
7190 -- semantic pass.
7191
7192 -- In Ada 2005, a formal may be associated with a box, if the
7193 -- association is part of the list of actuals for a formal package.
7194 -- If the association is given by OTHERS => <>, the association is
7195 -- an N_Others_Choice.
7196
7197 -- N_Generic_Association
7198 -- Sloc points to first token of generic association
7199 -- Selector_Name (Node2) (set to Empty if no formal
7200 -- parameter selector name)
7201 -- Explicit_Generic_Actual_Parameter (Node1) (Empty if box present)
7202 -- Box_Present (Flag15) (for formal_package associations with a box)
7203
7204 ---------------------------------------------
7205 -- 12.3 Explicit Generic Actual Parameter --
7206 ---------------------------------------------
7207
7208 -- EXPLICIT_GENERIC_ACTUAL_PARAMETER ::=
7209 -- EXPRESSION | variable_NAME | subprogram_NAME
7210 -- | entry_NAME | SUBTYPE_MARK | package_instance_NAME
7211
7212 -------------------------------------
7213 -- 12.4 Formal Object Declaration --
7214 -------------------------------------
7215
7216 -- FORMAL_OBJECT_DECLARATION ::=
7217 -- DEFINING_IDENTIFIER_LIST :
7218 -- MODE [NULL_EXCLUSION] SUBTYPE_MARK [:= DEFAULT_EXPRESSION]
7219 -- [ASPECT_SPECIFICATIONS];
7220 -- | DEFINING_IDENTIFIER_LIST :
7221 -- MODE ACCESS_DEFINITION [:= DEFAULT_EXPRESSION]
7222 -- [ASPECT_SPECIFICATIONS];
7223
7224 -- Although the syntax allows multiple identifiers in the list, the
7225 -- semantics is as though successive declarations were given with
7226 -- identical type definition and expression components. To simplify
7227 -- semantic processing, the parser represents a multiple declaration
7228 -- case as a sequence of single declarations, using the More_Ids and
7229 -- Prev_Ids flags to preserve the original source form as described
7230 -- in the section on "Handling of Defining Identifier Lists".
7231
7232 -- N_Formal_Object_Declaration
7233 -- Sloc points to first identifier
7234 -- Defining_Identifier (Node1)
7235 -- In_Present (Flag15)
7236 -- Out_Present (Flag17)
7237 -- Null_Exclusion_Present (Flag11) (set to False if not present)
7238 -- Subtype_Mark (Node4) (set to Empty if not present)
7239 -- Access_Definition (Node3) (set to Empty if not present)
7240 -- Default_Expression (Node5) (set to Empty if no default expression)
7241 -- More_Ids (Flag5) (set to False if no more identifiers in list)
7242 -- Prev_Ids (Flag6) (set to False if no previous identifiers in list)
7243
7244 -----------------------------------
7245 -- 12.5 Formal Type Declaration --
7246 -----------------------------------
7247
7248 -- FORMAL_TYPE_DECLARATION ::=
7249 -- type DEFINING_IDENTIFIER [DISCRIMINANT_PART]
7250 -- is FORMAL_TYPE_DEFINITION
7251 -- [ASPECT_SPECIFICATIONS];
7252 -- | type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [is tagged]
7253
7254 -- N_Formal_Type_Declaration
7255 -- Sloc points to TYPE
7256 -- Defining_Identifier (Node1)
7257 -- Formal_Type_Definition (Node3)
7258 -- Discriminant_Specifications (List4) (set to No_List if no
7259 -- discriminant part)
7260 -- Unknown_Discriminants_Present (Flag13) set if (<>) discriminant
7261
7262 ----------------------------------
7263 -- 12.5 Formal type definition --
7264 ----------------------------------
7265
7266 -- FORMAL_TYPE_DEFINITION ::=
7267 -- FORMAL_PRIVATE_TYPE_DEFINITION
7268 -- | FORMAL_DERIVED_TYPE_DEFINITION
7269 -- | FORMAL_DISCRETE_TYPE_DEFINITION
7270 -- | FORMAL_SIGNED_INTEGER_TYPE_DEFINITION
7271 -- | FORMAL_MODULAR_TYPE_DEFINITION
7272 -- | FORMAL_FLOATING_POINT_DEFINITION
7273 -- | FORMAL_ORDINARY_FIXED_POINT_DEFINITION
7274 -- | FORMAL_DECIMAL_FIXED_POINT_DEFINITION
7275 -- | FORMAL_ARRAY_TYPE_DEFINITION
7276 -- | FORMAL_ACCESS_TYPE_DEFINITION
7277 -- | FORMAL_INTERFACE_TYPE_DEFINITION
7278 -- | FORMAL_INCOMPLETE_TYPE_DEFINITION
7279
7280 -- The Ada 2012 syntax introduces two new non-terminals:
7281 -- Formal_{Complete,Incomplete}_Type_Declaration just to introduce
7282 -- the latter category. Here we introduce an incomplete type definition
7283 -- in order to preserve as much as possible the existing structure.
7284
7285 ---------------------------------------------
7286 -- 12.5.1 Formal Private Type Definition --
7287 ---------------------------------------------
7288
7289 -- FORMAL_PRIVATE_TYPE_DEFINITION ::=
7290 -- [[abstract] tagged] [limited] private
7291
7292 -- Note: TAGGED is not allowed in Ada 83 mode
7293
7294 -- N_Formal_Private_Type_Definition
7295 -- Sloc points to PRIVATE
7296 -- Uninitialized_Variable (Node3-Sem)
7297 -- Abstract_Present (Flag4)
7298 -- Tagged_Present (Flag15)
7299 -- Limited_Present (Flag17)
7300
7301 --------------------------------------------
7302 -- 12.5.1 Formal Derived Type Definition --
7303 --------------------------------------------
7304
7305 -- FORMAL_DERIVED_TYPE_DEFINITION ::=
7306 -- [abstract] [limited | synchronized]
7307 -- new SUBTYPE_MARK [[and INTERFACE_LIST] with private]
7308 -- Note: this construct is not allowed in Ada 83 mode
7309
7310 -- N_Formal_Derived_Type_Definition
7311 -- Sloc points to NEW
7312 -- Subtype_Mark (Node4)
7313 -- Private_Present (Flag15)
7314 -- Abstract_Present (Flag4)
7315 -- Limited_Present (Flag17)
7316 -- Synchronized_Present (Flag7)
7317 -- Interface_List (List2) (set to No_List if none)
7318
7319 -----------------------------------------------
7320 -- 12.5.1 Formal Incomplete Type Definition --
7321 -----------------------------------------------
7322
7323 -- FORMAL_INCOMPLETE_TYPE_DEFINITION ::= [tagged]
7324
7325 -- N_Formal_Incomplete_Type_Definition
7326 -- Sloc points to identifier of parent
7327 -- Tagged_Present (Flag15)
7328
7329 ---------------------------------------------
7330 -- 12.5.2 Formal Discrete Type Definition --
7331 ---------------------------------------------
7332
7333 -- FORMAL_DISCRETE_TYPE_DEFINITION ::= (<>)
7334
7335 -- N_Formal_Discrete_Type_Definition
7336 -- Sloc points to (
7337
7338 ---------------------------------------------------
7339 -- 12.5.2 Formal Signed Integer Type Definition --
7340 ---------------------------------------------------
7341
7342 -- FORMAL_SIGNED_INTEGER_TYPE_DEFINITION ::= range <>
7343
7344 -- N_Formal_Signed_Integer_Type_Definition
7345 -- Sloc points to RANGE
7346
7347 --------------------------------------------
7348 -- 12.5.2 Formal Modular Type Definition --
7349 --------------------------------------------
7350
7351 -- FORMAL_MODULAR_TYPE_DEFINITION ::= mod <>
7352
7353 -- N_Formal_Modular_Type_Definition
7354 -- Sloc points to MOD
7355
7356 ----------------------------------------------
7357 -- 12.5.2 Formal Floating Point Definition --
7358 ----------------------------------------------
7359
7360 -- FORMAL_FLOATING_POINT_DEFINITION ::= digits <>
7361
7362 -- N_Formal_Floating_Point_Definition
7363 -- Sloc points to DIGITS
7364
7365 ----------------------------------------------------
7366 -- 12.5.2 Formal Ordinary Fixed Point Definition --
7367 ----------------------------------------------------
7368
7369 -- FORMAL_ORDINARY_FIXED_POINT_DEFINITION ::= delta <>
7370
7371 -- N_Formal_Ordinary_Fixed_Point_Definition
7372 -- Sloc points to DELTA
7373
7374 ---------------------------------------------------
7375 -- 12.5.2 Formal Decimal Fixed Point Definition --
7376 ---------------------------------------------------
7377
7378 -- FORMAL_DECIMAL_FIXED_POINT_DEFINITION ::= delta <> digits <>
7379
7380 -- Note: formal decimal fixed point definition not allowed in Ada 83
7381
7382 -- N_Formal_Decimal_Fixed_Point_Definition
7383 -- Sloc points to DELTA
7384
7385 ------------------------------------------
7386 -- 12.5.3 Formal Array Type Definition --
7387 ------------------------------------------
7388
7389 -- FORMAL_ARRAY_TYPE_DEFINITION ::= ARRAY_TYPE_DEFINITION
7390
7391 -------------------------------------------
7392 -- 12.5.4 Formal Access Type Definition --
7393 -------------------------------------------
7394
7395 -- FORMAL_ACCESS_TYPE_DEFINITION ::= ACCESS_TYPE_DEFINITION
7396
7397 ----------------------------------------------
7398 -- 12.5.5 Formal Interface Type Definition --
7399 ----------------------------------------------
7400
7401 -- FORMAL_INTERFACE_TYPE_DEFINITION ::= INTERFACE_TYPE_DEFINITION
7402
7403 -----------------------------------------
7404 -- 12.6 Formal Subprogram Declaration --
7405 -----------------------------------------
7406
7407 -- FORMAL_SUBPROGRAM_DECLARATION ::=
7408 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION
7409 -- | FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION
7410
7411 --------------------------------------------------
7412 -- 12.6 Formal Concrete Subprogram Declaration --
7413 --------------------------------------------------
7414
7415 -- FORMAL_CONCRETE_SUBPROGRAM_DECLARATION ::=
7416 -- with SUBPROGRAM_SPECIFICATION [is SUBPROGRAM_DEFAULT]
7417 -- [ASPECT_SPECIFICATIONS];
7418
7419 -- N_Formal_Concrete_Subprogram_Declaration
7420 -- Sloc points to WITH
7421 -- Specification (Node1)
7422 -- Default_Name (Node2) (set to Empty if no subprogram default)
7423 -- Box_Present (Flag15)
7424
7425 -- Note: if no subprogram default is present, then Name is set
7426 -- to Empty, and Box_Present is False.
7427
7428 --------------------------------------------------
7429 -- 12.6 Formal Abstract Subprogram Declaration --
7430 --------------------------------------------------
7431
7432 -- FORMAL_ABSTRACT_SUBPROGRAM_DECLARATION ::=
7433 -- with SUBPROGRAM_SPECIFICATION is abstract [SUBPROGRAM_DEFAULT]
7434 -- [ASPECT_SPECIFICATIONS];
7435
7436 -- N_Formal_Abstract_Subprogram_Declaration
7437 -- Sloc points to WITH
7438 -- Specification (Node1)
7439 -- Default_Name (Node2) (set to Empty if no subprogram default)
7440 -- Box_Present (Flag15)
7441
7442 -- Note: if no subprogram default is present, then Name is set
7443 -- to Empty, and Box_Present is False.
7444
7445 ------------------------------
7446 -- 12.6 Subprogram Default --
7447 ------------------------------
7448
7449 -- SUBPROGRAM_DEFAULT ::= DEFAULT_NAME | <>
7450
7451 -- There is no separate node in the tree for a subprogram default.
7452 -- Instead the parent (N_Formal_Concrete_Subprogram_Declaration
7453 -- or N_Formal_Abstract_Subprogram_Declaration) node contains the
7454 -- default name or box indication, as needed.
7455
7456 ------------------------
7457 -- 12.6 Default Name --
7458 ------------------------
7459
7460 -- DEFAULT_NAME ::= NAME
7461
7462 --------------------------------------
7463 -- 12.7 Formal Package Declaration --
7464 --------------------------------------
7465
7466 -- FORMAL_PACKAGE_DECLARATION ::=
7467 -- with package DEFINING_IDENTIFIER
7468 -- is new generic_package_NAME FORMAL_PACKAGE_ACTUAL_PART
7469 -- [ASPECT_SPECIFICATIONS];
7470
7471 -- Note: formal package declarations not allowed in Ada 83 mode
7472
7473 -- N_Formal_Package_Declaration
7474 -- Sloc points to WITH
7475 -- Defining_Identifier (Node1)
7476 -- Name (Node2)
7477 -- Generic_Associations (List3) (set to No_List if (<>) case or
7478 -- empty generic actual part)
7479 -- Box_Present (Flag15)
7480 -- Instance_Spec (Node5-Sem)
7481 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7482
7483 --------------------------------------
7484 -- 12.7 Formal Package Actual Part --
7485 --------------------------------------
7486
7487 -- FORMAL_PACKAGE_ACTUAL_PART ::=
7488 -- ([OTHERS] => <>)
7489 -- | [GENERIC_ACTUAL_PART]
7490 -- (FORMAL_PACKAGE_ASSOCIATION {. FORMAL_PACKAGE_ASSOCIATION}
7491
7492 -- FORMAL_PACKAGE_ASSOCIATION ::=
7493 -- GENERIC_ASSOCIATION
7494 -- | GENERIC_FORMAL_PARAMETER_SELECTOR_NAME => <>
7495
7496 -- There is no explicit node in the tree for a formal package actual
7497 -- part. Instead the information appears in the parent node (i.e. the
7498 -- formal package declaration node itself).
7499
7500 -- There is no explicit node for a formal package association. All of
7501 -- them are represented either by a generic association, possibly with
7502 -- Box_Present, or by an N_Others_Choice.
7503
7504 ---------------------------------
7505 -- 13.1 Representation clause --
7506 ---------------------------------
7507
7508 -- REPRESENTATION_CLAUSE ::=
7509 -- ATTRIBUTE_DEFINITION_CLAUSE
7510 -- | ENUMERATION_REPRESENTATION_CLAUSE
7511 -- | RECORD_REPRESENTATION_CLAUSE
7512 -- | AT_CLAUSE
7513
7514 ----------------------
7515 -- 13.1 Local Name --
7516 ----------------------
7517
7518 -- LOCAL_NAME :=
7519 -- DIRECT_NAME
7520 -- | DIRECT_NAME'ATTRIBUTE_DESIGNATOR
7521 -- | library_unit_NAME
7522
7523 -- The construct DIRECT_NAME'ATTRIBUTE_DESIGNATOR appears in the tree
7524 -- as an attribute reference, which has essentially the same form.
7525
7526 ---------------------------------------
7527 -- 13.3 Attribute definition clause --
7528 ---------------------------------------
7529
7530 -- ATTRIBUTE_DEFINITION_CLAUSE ::=
7531 -- for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use EXPRESSION;
7532 -- | for LOCAL_NAME'ATTRIBUTE_DESIGNATOR use NAME;
7533
7534 -- In Ada 83, the expression must be a simple expression and the
7535 -- local name must be a direct name.
7536
7537 -- Note: the only attribute definition clause that is processed by
7538 -- gigi is an address clause. For all other cases, the information
7539 -- is extracted by the front end and either results in setting entity
7540 -- information, e.g. Esize for the Size clause, or in appropriate
7541 -- expansion actions (e.g. in the case of Storage_Size).
7542
7543 -- For an address clause, Gigi constructs the appropriate addressing
7544 -- code. It also ensures that no aliasing optimizations are made
7545 -- for the object for which the address clause appears.
7546
7547 -- Note: for an address clause used to achieve an overlay:
7548
7549 -- A : Integer;
7550 -- B : Integer;
7551 -- for B'Address use A'Address;
7552
7553 -- the above rule means that Gigi will ensure that no optimizations
7554 -- will be made for B that would violate the implementation advice
7555 -- of RM 13.3(19). However, this advice applies only to B and not
7556 -- to A, which seems unfortunate. The GNAT front end will mark the
7557 -- object A as volatile to also prevent unwanted optimization
7558 -- assumptions based on no aliasing being made for B.
7559
7560 -- N_Attribute_Definition_Clause
7561 -- Sloc points to FOR
7562 -- Name (Node2) the local name
7563 -- Chars (Name1) the identifier name from the attribute designator
7564 -- Expression (Node3) the expression or name
7565 -- Entity (Node4-Sem)
7566 -- Next_Rep_Item (Node5-Sem)
7567 -- From_At_Mod (Flag4-Sem)
7568 -- Check_Address_Alignment (Flag11-Sem)
7569 -- From_Aspect_Specification (Flag13-Sem)
7570 -- Is_Delayed_Aspect (Flag14-Sem)
7571 -- Address_Warning_Posted (Flag18-Sem)
7572
7573 -- Note: if From_Aspect_Specification is set, then Sloc points to the
7574 -- aspect name, and Entity is resolved already to reference the entity
7575 -- to which the aspect applies.
7576
7577 -----------------------------------
7578 -- 13.3.1 Aspect Specifications --
7579 -----------------------------------
7580
7581 -- We modify the RM grammar here, the RM grammar is:
7582
7583 -- ASPECT_SPECIFICATION ::=
7584 -- with ASPECT_MARK [=> ASPECT_DEFINITION] {,
7585 -- ASPECT_MARK [=> ASPECT_DEFINITION] }
7586
7587 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7588
7589 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7590
7591 -- That's inconvenient, since there is no non-terminal name for a single
7592 -- entry in the list of aspects. So we use this grammar instead:
7593
7594 -- ASPECT_SPECIFICATIONS ::=
7595 -- with ASPECT_SPECIFICATION {, ASPECT_SPECIFICATION}
7596
7597 -- ASPECT_SPECIFICATION =>
7598 -- ASPECT_MARK [=> ASPECT_DEFINITION]
7599
7600 -- ASPECT_MARK ::= aspect_IDENTIFIER['Class]
7601
7602 -- ASPECT_DEFINITION ::= NAME | EXPRESSION
7603
7604 -- Note that for Annotate, the ASPECT_DEFINITION is a pure positional
7605 -- aggregate with the elements of the aggregate corresponding to the
7606 -- successive arguments of the corresponding pragma.
7607
7608 -- See separate package Aspects for details on the incorporation of
7609 -- these nodes into the tree, and how aspect specifications for a given
7610 -- declaration node are associated with that node.
7611
7612 -- N_Aspect_Specification
7613 -- Sloc points to aspect identifier
7614 -- Identifier (Node1) aspect identifier
7615 -- Aspect_Rep_Item (Node2-Sem)
7616 -- Expression (Node3) Aspect_Definition (set to Empty if none)
7617 -- Entity (Node4-Sem) entity to which the aspect applies
7618 -- Next_Rep_Item (Node5-Sem)
7619 -- Class_Present (Flag6) Set if 'Class present
7620 -- Is_Ignored (Flag9-Sem)
7621 -- Is_Checked (Flag11-Sem)
7622 -- Is_Delayed_Aspect (Flag14-Sem)
7623 -- Is_Disabled (Flag15-Sem)
7624 -- Is_Boolean_Aspect (Flag16-Sem)
7625 -- Split_PPC (Flag17) Set if split pre/post attribute
7626 -- Aspect_On_Partial_View (Flag18-Sem)
7627
7628 -- Note: Aspect_Specification is an Ada 2012 feature
7629
7630 -- Note: The Identifier serves to identify the aspect involved (it
7631 -- is the aspect whose name corresponds to the Chars field). This
7632 -- means that the other fields of this identifier are unused, and
7633 -- in particular we use the Entity field of this identifier to save
7634 -- a copy of the expression for visibility analysis, see spec of
7635 -- Sem_Ch13 for full details of this usage.
7636
7637 -- In the case of aspects of the form xxx'Class, the aspect identifier
7638 -- is for xxx, and Class_Present is set to True.
7639
7640 -- Note: When a Pre or Post aspect specification is processed, it is
7641 -- broken into AND THEN sections. The left most section has Split_PPC
7642 -- set to False, indicating that it is the original specification (e.g.
7643 -- for posting errors). For the other sections, Split_PPC is set True.
7644
7645 ---------------------------------------------
7646 -- 13.4 Enumeration representation clause --
7647 ---------------------------------------------
7648
7649 -- ENUMERATION_REPRESENTATION_CLAUSE ::=
7650 -- for first_subtype_LOCAL_NAME use ENUMERATION_AGGREGATE;
7651
7652 -- In Ada 83, the name must be a direct name
7653
7654 -- N_Enumeration_Representation_Clause
7655 -- Sloc points to FOR
7656 -- Identifier (Node1) direct name
7657 -- Array_Aggregate (Node3)
7658 -- Next_Rep_Item (Node5-Sem)
7659
7660 ---------------------------------
7661 -- 13.4 Enumeration aggregate --
7662 ---------------------------------
7663
7664 -- ENUMERATION_AGGREGATE ::= ARRAY_AGGREGATE
7665
7666 ------------------------------------------
7667 -- 13.5.1 Record representation clause --
7668 ------------------------------------------
7669
7670 -- RECORD_REPRESENTATION_CLAUSE ::=
7671 -- for first_subtype_LOCAL_NAME use
7672 -- record [MOD_CLAUSE]
7673 -- {COMPONENT_CLAUSE}
7674 -- end record;
7675
7676 -- Gigi restriction: Mod_Clause is always Empty (if present it is
7677 -- replaced by a corresponding Alignment attribute definition clause).
7678
7679 -- Note: Component_Clauses can include pragmas
7680
7681 -- N_Record_Representation_Clause
7682 -- Sloc points to FOR
7683 -- Identifier (Node1) direct name
7684 -- Mod_Clause (Node2) (set to Empty if no mod clause present)
7685 -- Component_Clauses (List3)
7686 -- Next_Rep_Item (Node5-Sem)
7687
7688 ------------------------------
7689 -- 13.5.1 Component clause --
7690 ------------------------------
7691
7692 -- COMPONENT_CLAUSE ::=
7693 -- component_LOCAL_NAME at POSITION
7694 -- range FIRST_BIT .. LAST_BIT;
7695
7696 -- N_Component_Clause
7697 -- Sloc points to AT
7698 -- Component_Name (Node1) points to Name or Attribute_Reference
7699 -- Position (Node2)
7700 -- First_Bit (Node3)
7701 -- Last_Bit (Node4)
7702
7703 ----------------------
7704 -- 13.5.1 Position --
7705 ----------------------
7706
7707 -- POSITION ::= static_EXPRESSION
7708
7709 -----------------------
7710 -- 13.5.1 First_Bit --
7711 -----------------------
7712
7713 -- FIRST_BIT ::= static_SIMPLE_EXPRESSION
7714
7715 ----------------------
7716 -- 13.5.1 Last_Bit --
7717 ----------------------
7718
7719 -- LAST_BIT ::= static_SIMPLE_EXPRESSION
7720
7721 --------------------------
7722 -- 13.8 Code statement --
7723 --------------------------
7724
7725 -- CODE_STATEMENT ::= QUALIFIED_EXPRESSION;
7726
7727 -- Note: in GNAT, the qualified expression has the form
7728
7729 -- Asm_Insn'(Asm (...));
7730
7731 -- See package System.Machine_Code in file s-maccod.ads for details on
7732 -- the allowed parameters to Asm. There are two ways this node can
7733 -- arise, as a code statement, in which case the expression is the
7734 -- qualified expression, or as a result of the expansion of an intrinsic
7735 -- call to the Asm or Asm_Input procedure.
7736
7737 -- N_Code_Statement
7738 -- Sloc points to first token of the expression
7739 -- Expression (Node3)
7740
7741 -- Note: package Exp_Code contains an abstract functional interface
7742 -- for use by Gigi in accessing the data from N_Code_Statement nodes.
7743
7744 ------------------------
7745 -- 13.12 Restriction --
7746 ------------------------
7747
7748 -- RESTRICTION ::=
7749 -- restriction_IDENTIFIER
7750 -- | restriction_parameter_IDENTIFIER => EXPRESSION
7751
7752 -- There is no explicit node for restrictions. Instead the restriction
7753 -- appears in normal pragma syntax as a pragma argument association,
7754 -- which has the same syntactic form.
7755
7756 --------------------------
7757 -- B.2 Shift Operators --
7758 --------------------------
7759
7760 -- Calls to the intrinsic shift functions are converted to one of
7761 -- the following shift nodes, which have the form of normal binary
7762 -- operator names. Note that for a given shift operation, one node
7763 -- covers all possible types, as for normal operators.
7764
7765 -- Note: it is perfectly permissible for the expander to generate
7766 -- shift operation nodes directly, in which case they will be analyzed
7767 -- and parsed in the usual manner.
7768
7769 -- Sprint syntax: shift-function-name!(expr, count)
7770
7771 -- Note: the Left_Opnd field holds the first argument (the value to
7772 -- be shifted). The Right_Opnd field holds the second argument (the
7773 -- shift count). The Chars field is the name of the intrinsic function.
7774
7775 -- N_Op_Rotate_Left
7776 -- Sloc points to the function name
7777 -- plus fields for binary operator
7778 -- plus fields for expression
7779 -- Shift_Count_OK (Flag4-Sem)
7780
7781 -- N_Op_Rotate_Right
7782 -- Sloc points to the function name
7783 -- plus fields for binary operator
7784 -- plus fields for expression
7785 -- Shift_Count_OK (Flag4-Sem)
7786
7787 -- N_Op_Shift_Left
7788 -- Sloc points to the function name
7789 -- plus fields for binary operator
7790 -- plus fields for expression
7791 -- Shift_Count_OK (Flag4-Sem)
7792
7793 -- N_Op_Shift_Right_Arithmetic
7794 -- Sloc points to the function name
7795 -- plus fields for binary operator
7796 -- plus fields for expression
7797 -- Shift_Count_OK (Flag4-Sem)
7798
7799 -- N_Op_Shift_Right
7800 -- Sloc points to the function name
7801 -- plus fields for binary operator
7802 -- plus fields for expression
7803 -- Shift_Count_OK (Flag4-Sem)
7804
7805 -- Note: N_Op_Rotate_Left, N_Op_Rotate_Right, N_Shift_Right_Arithmetic
7806 -- never appear in the expanded tree if Modify_Tree_For_C mode is set.
7807
7808 -- Note: For N_Op_Shift_Left and N_Op_Shift_Right, the right operand is
7809 -- always less than the word size if Modify_Tree_For_C mode is set.
7810
7811 --------------------------
7812 -- Obsolescent Features --
7813 --------------------------
7814
7815 -- The syntax descriptions and tree nodes for obsolescent features are
7816 -- grouped together, corresponding to their location in appendix I in
7817 -- the RM. However, parsing and semantic analysis for these constructs
7818 -- is located in an appropriate chapter (see individual notes).
7819
7820 ---------------------------
7821 -- J.3 Delta Constraint --
7822 ---------------------------
7823
7824 -- Note: the parse routine for this construct is located in section
7825 -- 3.5.9 of Par-Ch3, and semantic analysis is in Sem_Ch3, which is
7826 -- where delta constraint logically belongs.
7827
7828 -- DELTA_CONSTRAINT ::= DELTA static_EXPRESSION [RANGE_CONSTRAINT]
7829
7830 -- N_Delta_Constraint
7831 -- Sloc points to DELTA
7832 -- Delta_Expression (Node3)
7833 -- Range_Constraint (Node4) (set to Empty if not present)
7834
7835 --------------------
7836 -- J.7 At Clause --
7837 --------------------
7838
7839 -- AT_CLAUSE ::= for DIRECT_NAME use at EXPRESSION;
7840
7841 -- Note: the parse routine for this construct is located in Par-Ch13,
7842 -- and the semantic analysis is in Sem_Ch13, where at clause logically
7843 -- belongs if it were not obsolescent.
7844
7845 -- Note: in Ada 83 the expression must be a simple expression
7846
7847 -- Gigi restriction: This node never appears, it is rewritten as an
7848 -- address attribute definition clause.
7849
7850 -- N_At_Clause
7851 -- Sloc points to FOR
7852 -- Identifier (Node1)
7853 -- Expression (Node3)
7854
7855 ---------------------
7856 -- J.8 Mod clause --
7857 ---------------------
7858
7859 -- MOD_CLAUSE ::= at mod static_EXPRESSION;
7860
7861 -- Note: the parse routine for this construct is located in Par-Ch13,
7862 -- and the semantic analysis is in Sem_Ch13, where mod clause logically
7863 -- belongs if it were not obsolescent.
7864
7865 -- Note: in Ada 83, the expression must be a simple expression
7866
7867 -- Gigi restriction: this node never appears. It is replaced
7868 -- by a corresponding Alignment attribute definition clause.
7869
7870 -- Note: pragmas can appear before and after the MOD_CLAUSE since
7871 -- its name has "clause" in it. This is rather strange, but is quite
7872 -- definitely specified. The pragmas before are collected in the
7873 -- Pragmas_Before field of the mod clause node itself, and pragmas
7874 -- after are simply swallowed up in the list of component clauses.
7875
7876 -- N_Mod_Clause
7877 -- Sloc points to AT
7878 -- Expression (Node3)
7879 -- Pragmas_Before (List4) Pragmas before mod clause (No_List if none)
7880
7881 --------------------
7882 -- Semantic Nodes --
7883 --------------------
7884
7885 -- These semantic nodes are used to hold additional semantic information.
7886 -- They are inserted into the tree as a result of semantic processing.
7887 -- Although there are no legitimate source syntax constructions that
7888 -- correspond directly to these nodes, we need a source syntax for the
7889 -- reconstructed tree printed by Sprint, and the node descriptions here
7890 -- show this syntax.
7891
7892 -----------------
7893 -- Call_Marker --
7894 -----------------
7895
7896 -- This node is created during the analysis/resolution of entry calls,
7897 -- requeues, and subprogram calls. It performs several functions:
7898
7899 -- * Call markers provide a uniform model for handling calls by the
7900 -- ABE mechanism, regardless of whether expansion took place.
7901
7902 -- * The call marker captures the target of the related call along
7903 -- with other attributes which are either unavailabe or expensive
7904 -- to recompute once analysis, resolution, and expansion are over.
7905
7906 -- * The call marker aids the ABE Processing phase by signaling the
7907 -- presence of a call in case the original call was transformed by
7908 -- expansion.
7909
7910 -- * The call marker acts as a reference point for the insertion of
7911 -- run-time conditional ABE checks or guaranteed ABE failures.
7912
7913 -- Sprint syntax: #target#
7914
7915 -- The Sprint syntax shown above is not enabled by default
7916
7917 -- N_Call_Marker
7918 -- Sloc points to Sloc of original call
7919 -- Target (Node1-Sem)
7920 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
7921 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
7922 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
7923 -- Is_Source_Call (Flag4-Sem)
7924 -- Is_Declaration_Level_Node (Flag5-Sem)
7925 -- Is_Dispatching_Call (Flag6-Sem)
7926 -- Is_Known_Guaranteed_ABE (Flag18-Sem)
7927
7928 ------------------------
7929 -- Compound Statement --
7930 ------------------------
7931
7932 -- This node is created by the analyzer/expander to handle some
7933 -- expansion cases where a sequence of actions needs to be captured
7934 -- within a single node (which acts as a container and allows the
7935 -- entire list of actions to be moved around as a whole) appearing
7936 -- in a sequence of statements.
7937
7938 -- This is the statement counterpart to the expression node
7939 -- N_Expression_With_Actions.
7940
7941 -- The required semantics is that the set of actions is executed in
7942 -- the order in which it appears, as though they appeared by themselves
7943 -- in the enclosing list of declarations or statements. Unlike what
7944 -- happens when using an N_Block_Statement, no new scope is introduced.
7945
7946 -- Note: for the time being, this is used only as a transient
7947 -- representation during expansion, and all compound statement nodes
7948 -- must be exploded back to their constituent statements before handing
7949 -- the tree to the back end.
7950
7951 -- Sprint syntax: do
7952 -- action;
7953 -- action;
7954 -- ...
7955 -- action;
7956 -- end;
7957
7958 -- N_Compound_Statement
7959 -- Actions (List1)
7960
7961 --------------
7962 -- Contract --
7963 --------------
7964
7965 -- This node is used to hold the various parts of an entry, subprogram
7966 -- [body] or package [body] contract, in particular:
7967 -- Abstract states declared by a package declaration
7968 -- Contract cases that apply to a subprogram
7969 -- Dependency relations of inputs and output of a subprogram
7970 -- Global annotations classifying data as input or output
7971 -- Initialization sequences for a package declaration
7972 -- Pre- and postconditions that apply to a subprogram
7973
7974 -- The node appears in an entry and [generic] subprogram [body] entity.
7975
7976 -- Sprint syntax: <none> as the node should not appear in the tree, but
7977 -- only attached to an entry or [generic] subprogram
7978 -- entity.
7979
7980 -- N_Contract
7981 -- Sloc points to the subprogram's name
7982 -- Pre_Post_Conditions (Node1-Sem) (set to Empty if none)
7983 -- Contract_Test_Cases (Node2-Sem) (set to Empty if none)
7984 -- Classifications (Node3-Sem) (set to Empty if none)
7985 -- Is_Expanded_Contract (Flag1-Sem)
7986
7987 -- Pre_Post_Conditions contains a collection of pragmas that correspond
7988 -- to pre- and postconditions associated with an entry or a subprogram
7989 -- [body or stub]. The pragmas can either come from source or be the
7990 -- byproduct of aspect expansion. Currently the following pragmas appear
7991 -- in this list:
7992 -- Post
7993 -- Postcondition
7994 -- Pre
7995 -- Precondition
7996 -- Refined_Post
7997 -- The ordering in the list is in LIFO fashion.
7998
7999 -- Note that there might be multiple preconditions or postconditions
8000 -- in this list, either because they come from separate pragmas in the
8001 -- source, or because a Pre (resp. Post) aspect specification has been
8002 -- broken into AND THEN sections. See Split_PPC for details.
8003
8004 -- In GNATprove mode, the inherited classwide pre- and postconditions
8005 -- (suitably specialized for the specific type of the overriding
8006 -- operation) are also in this list.
8007
8008 -- Contract_Test_Cases contains a collection of pragmas that correspond
8009 -- to aspects/pragmas Contract_Cases and Test_Case. The ordering in the
8010 -- list is in LIFO fashion.
8011
8012 -- Classifications contains pragmas that either declare, categorize, or
8013 -- establish dependencies between subprogram or package inputs and
8014 -- outputs. Currently the following pragmas appear in this list:
8015 -- Abstract_States
8016 -- Async_Readers
8017 -- Async_Writers
8018 -- Constant_After_Elaboration
8019 -- Depends
8020 -- Effective_Reads
8021 -- Effective_Writes
8022 -- Extensions_Visible
8023 -- Global
8024 -- Initial_Condition
8025 -- Initializes
8026 -- Part_Of
8027 -- Refined_Depends
8028 -- Refined_Global
8029 -- Refined_States
8030 -- Volatile_Function
8031 -- The ordering is in LIFO fashion.
8032
8033 -------------------
8034 -- Expanded Name --
8035 -------------------
8036
8037 -- The N_Expanded_Name node is used to represent a selected component
8038 -- name that has been resolved to an expanded name. The semantic phase
8039 -- replaces N_Selected_Component nodes that represent names by the use
8040 -- of this node, leaving the N_Selected_Component node used only when
8041 -- the prefix is a record or protected type.
8042
8043 -- The fields of the N_Expanded_Name node are laid out identically
8044 -- to those of the N_Selected_Component node, allowing conversion of
8045 -- an expanded name node to a selected component node to be done
8046 -- easily, see Sinfo.CN.Change_Selected_Component_To_Expanded_Name.
8047
8048 -- There is no special sprint syntax for an expanded name
8049
8050 -- N_Expanded_Name
8051 -- Sloc points to the period
8052 -- Chars (Name1) copy of Chars field of selector name
8053 -- Prefix (Node3)
8054 -- Selector_Name (Node2)
8055 -- Entity (Node4-Sem)
8056 -- Associated_Node (Node4-Sem)
8057 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8058 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8059 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
8060 -- Has_Private_View (Flag11-Sem) set in generic units
8061 -- Redundant_Use (Flag13-Sem)
8062 -- Atomic_Sync_Required (Flag14-Sem)
8063 -- plus fields for expression
8064
8065 -----------------------------
8066 -- Expression With Actions --
8067 -----------------------------
8068
8069 -- This node is created by the analyzer/expander to handle some
8070 -- expansion cases, notably short-circuit forms where there are
8071 -- actions associated with the right-hand side operand.
8072
8073 -- The N_Expression_With_Actions node represents an expression with
8074 -- an associated set of actions (which are executable statements and
8075 -- declarations, as might occur in a handled statement sequence).
8076
8077 -- The required semantics is that the set of actions is executed in
8078 -- the order in which it appears just before the expression is
8079 -- evaluated (and these actions must only be executed if the value
8080 -- of the expression is evaluated). The node is considered to be
8081 -- a subexpression, whose value is the value of the Expression after
8082 -- executing all the actions.
8083
8084 -- If the actions contain declarations, then these declarations may
8085 -- be referenced within the expression. However note that there is
8086 -- no proper scope associated with the expression-with-action, so the
8087 -- back-end will elaborate them in the context of the enclosing scope.
8088
8089 -- Sprint syntax: do
8090 -- action;
8091 -- action;
8092 -- ...
8093 -- action;
8094 -- in expression end
8095
8096 -- N_Expression_With_Actions
8097 -- Actions (List1)
8098 -- Expression (Node3)
8099 -- plus fields for expression
8100
8101 -- Note: In the final generated tree presented to the code generator,
8102 -- the actions list is always non-null, since there is no point in this
8103 -- node if the actions are Empty. During semantic analysis there are
8104 -- cases where it is convenient to temporarily generate an empty actions
8105 -- list. This arises in cases where we create such an empty actions
8106 -- list, and it may or may not end up being a place where additional
8107 -- actions are inserted. The expander removes such empty cases after
8108 -- the expression of the node is fully analyzed and expanded, at which
8109 -- point it is safe to remove it, since no more actions can be inserted.
8110
8111 -- Note: In Modify_Tree_For_C, we never generate any declarations in
8112 -- the action list, which can contain only non-declarative statements.
8113
8114 --------------------
8115 -- Free Statement --
8116 --------------------
8117
8118 -- The N_Free_Statement node is generated as a result of a call to an
8119 -- instantiation of Unchecked_Deallocation. The instantiation of this
8120 -- generic is handled specially and generates this node directly.
8121
8122 -- Sprint syntax: free expression
8123
8124 -- N_Free_Statement
8125 -- Sloc is copied from the unchecked deallocation call
8126 -- Expression (Node3) argument to unchecked deallocation call
8127 -- Storage_Pool (Node1-Sem)
8128 -- Procedure_To_Call (Node2-Sem)
8129 -- Actual_Designated_Subtype (Node4-Sem)
8130
8131 -- Note: in the case where a debug source file is generated, the Sloc
8132 -- for this node points to the FREE keyword in the Sprint file output.
8133
8134 -------------------
8135 -- Freeze Entity --
8136 -------------------
8137
8138 -- This node marks the point in a declarative part at which an entity
8139 -- declared therein becomes frozen. The expander places initialization
8140 -- procedures for types at those points. Gigi uses the freezing point
8141 -- to elaborate entities that may depend on previous private types.
8142
8143 -- See the section in Einfo "Delayed Freezing and Elaboration" for
8144 -- a full description of the use of this node.
8145
8146 -- The Entity field points back to the entity for the type (whose
8147 -- Freeze_Node field points back to this freeze node).
8148
8149 -- The Actions field contains a list of declarations and statements
8150 -- generated by the expander which are associated with the freeze
8151 -- node, and are elaborated as though the freeze node were replaced
8152 -- by this sequence of actions.
8153
8154 -- Note: the Sloc field in the freeze node references a construct
8155 -- associated with the freezing point. This is used for posting
8156 -- messages in some error/warning situations, e.g. the case where
8157 -- a primitive operation of a tagged type is declared too late.
8158
8159 -- Sprint syntax: freeze entity-name [
8160 -- freeze actions
8161 -- ]
8162
8163 -- N_Freeze_Entity
8164 -- Sloc points near freeze point (see above special note)
8165 -- Entity (Node4-Sem)
8166 -- Access_Types_To_Process (Elist2-Sem) (set to No_Elist if none)
8167 -- TSS_Elist (Elist3-Sem) (set to No_Elist if no associated TSS's)
8168 -- Actions (List1) (set to No_List if no freeze actions)
8169 -- First_Subtype_Link (Node5-Sem) (set to Empty if no link)
8170
8171 -- The Actions field holds actions associated with the freeze. These
8172 -- actions are elaborated at the point where the type is frozen.
8173
8174 -- Note: in the case where a debug source file is generated, the Sloc
8175 -- for this node points to the FREEZE keyword in the Sprint file output.
8176
8177 ---------------------------
8178 -- Freeze Generic Entity --
8179 ---------------------------
8180
8181 -- The freeze point of an entity indicates the point at which the
8182 -- information needed to generate code for the entity is complete.
8183 -- The freeze node for an entity triggers expander activities, such as
8184 -- build initialization procedures, and backend activities, such as
8185 -- completing the elaboration of packages.
8186
8187 -- For entities declared within a generic unit, for which no code is
8188 -- generated, the freeze point is not equally meaningful. However, in
8189 -- Ada 2012 several semantic checks on declarations must be delayed to
8190 -- the freeze point, and we need to include such a mark in the tree to
8191 -- trigger these checks. The Freeze_Generic_Entity node plays no other
8192 -- role, and is ignored by the expander and the back-end.
8193
8194 -- Sprint syntax: freeze_generic entity-name
8195
8196 -- N_Freeze_Generic_Entity
8197 -- Sloc points near freeze point
8198 -- Entity (Node4-Sem)
8199
8200 --------------------------------
8201 -- Implicit Label Declaration --
8202 --------------------------------
8203
8204 -- An implicit label declaration is created for every occurrence of a
8205 -- label on a statement or a label on a block or loop. It is chained
8206 -- in the declarations of the innermost enclosing block as specified
8207 -- in RM section 5.1 (3).
8208
8209 -- The Defining_Identifier is the actual identifier for the statement
8210 -- identifier. Note that the occurrence of the label is a reference, NOT
8211 -- the defining occurrence. The defining occurrence occurs at the head
8212 -- of the innermost enclosing block, and is represented by this node.
8213
8214 -- Note: from the grammar, this might better be called an implicit
8215 -- statement identifier declaration, but the term we choose seems
8216 -- friendlier, since at least informally statement identifiers are
8217 -- called labels in both cases (i.e. when used in labels, and when
8218 -- used as the identifiers of blocks and loops).
8219
8220 -- Note: although this is logically a semantic node, since it does not
8221 -- correspond directly to a source syntax construction, these nodes are
8222 -- actually created by the parser in a post pass done just after parsing
8223 -- is complete, before semantic analysis is started (see Par.Labl).
8224
8225 -- Sprint syntax: labelname : label;
8226
8227 -- N_Implicit_Label_Declaration
8228 -- Sloc points to the << token for a statement identifier, or to the
8229 -- LOOP, DECLARE, or BEGIN token for a loop or block identifier
8230 -- Defining_Identifier (Node1)
8231 -- Label_Construct (Node2-Sem)
8232
8233 -- Note: in the case where a debug source file is generated, the Sloc
8234 -- for this node points to the label name in the generated declaration.
8235
8236 ---------------------
8237 -- Itype Reference --
8238 ---------------------
8239
8240 -- This node is used to create a reference to an Itype. The only purpose
8241 -- is to make sure the Itype is defined if this is the first reference.
8242
8243 -- A typical use of this node is when an Itype is to be referenced in
8244 -- two branches of an IF statement. In this case it is important that
8245 -- the first use of the Itype not be inside the conditional, since then
8246 -- it might not be defined if the other branch of the IF is taken, in
8247 -- the case where the definition generates elaboration code.
8248
8249 -- The Itype field points to the referenced Itype
8250
8251 -- Sprint syntax: reference itype-name
8252
8253 -- N_Itype_Reference
8254 -- Sloc points to the node generating the reference
8255 -- Itype (Node1-Sem)
8256
8257 -- Note: in the case where a debug source file is generated, the Sloc
8258 -- for this node points to the REFERENCE keyword in the file output.
8259
8260 ---------------------
8261 -- Raise xxx Error --
8262 ---------------------
8263
8264 -- One of these nodes is created during semantic analysis to replace
8265 -- a node for an expression that is determined to definitely raise
8266 -- the corresponding exception.
8267
8268 -- The N_Raise_xxx_Error node may also stand alone in place
8269 -- of a declaration or statement, in which case it simply causes
8270 -- the exception to be raised (i.e. it is equivalent to a raise
8271 -- statement that raises the corresponding exception). This use
8272 -- is distinguished by the fact that the Etype in this case is
8273 -- Standard_Void_Type; in the subexpression case, the Etype is the
8274 -- same as the type of the subexpression which it replaces.
8275
8276 -- If Condition is empty, then the raise is unconditional. If the
8277 -- Condition field is non-empty, it is a boolean expression which is
8278 -- first evaluated, and the exception is raised only if the value of the
8279 -- expression is True. In the unconditional case, the creation of this
8280 -- node is usually accompanied by a warning message (unless it appears
8281 -- within the right operand of a short-circuit form whose left argument
8282 -- is static and decisively eliminates elaboration of the raise
8283 -- operation). The condition field can ONLY be present when the node is
8284 -- used as a statement form; it must NOT be present in the case where
8285 -- the node appears within an expression.
8286
8287 -- The exception is generated with a message that contains the
8288 -- file name and line number, and then appended text. The Reason
8289 -- code shows the text to be added. The Reason code is an element
8290 -- of the type Types.RT_Exception_Code, and indicates both the
8291 -- message to be added, and the exception to be raised (which must
8292 -- match the node type). The value is stored by storing a Uint which
8293 -- is the Pos value of the enumeration element in this type.
8294
8295 -- Gigi restriction: This expander ensures that the type of the
8296 -- Condition field is always Standard.Boolean, even if the type
8297 -- in the source is some non-standard boolean type.
8298
8299 -- Sprint syntax: [xxx_error "msg"]
8300 -- or: [xxx_error when condition "msg"]
8301
8302 -- N_Raise_Constraint_Error
8303 -- Sloc references related construct
8304 -- Condition (Node1) (set to Empty if no condition)
8305 -- Reason (Uint3)
8306 -- plus fields for expression
8307
8308 -- N_Raise_Program_Error
8309 -- Sloc references related construct
8310 -- Condition (Node1) (set to Empty if no condition)
8311 -- Reason (Uint3)
8312 -- plus fields for expression
8313
8314 -- N_Raise_Storage_Error
8315 -- Sloc references related construct
8316 -- Condition (Node1) (set to Empty if no condition)
8317 -- Reason (Uint3)
8318 -- plus fields for expression
8319
8320 -- Note: Sloc is copied from the expression generating the exception.
8321 -- In the case where a debug source file is generated, the Sloc for
8322 -- this node points to the left bracket in the Sprint file output.
8323
8324 -- Note: the back end may be required to translate these nodes into
8325 -- appropriate goto statements. See description of N_Push/Pop_xxx_Label.
8326
8327 ---------------------------------------------
8328 -- Optimization of Exception Raise to Goto --
8329 ---------------------------------------------
8330
8331 -- In some cases, the front end will determine that any exception raised
8332 -- by the back end for a certain exception should be transformed into a
8333 -- goto statement.
8334
8335 -- There are three kinds of exceptions raised by the back end (note that
8336 -- for this purpose we consider gigi to be part of the back end in the
8337 -- gcc case):
8338
8339 -- 1. Exceptions resulting from N_Raise_xxx_Error nodes
8340 -- 2. Exceptions from checks triggered by Do_xxx_Check flags
8341 -- 3. Other cases not specifically marked by the front end
8342
8343 -- Normally all such exceptions are translated into calls to the proper
8344 -- Rcheck_xx procedure, where xx encodes both the exception to be raised
8345 -- and the exception message.
8346
8347 -- The front end may determine that for a particular sequence of code,
8348 -- exceptions in any of these three categories for a particular builtin
8349 -- exception should result in a goto, rather than a call to Rcheck_xx.
8350 -- The exact sequence to be generated is:
8351
8352 -- Local_Raise (exception'Identity);
8353 -- goto Label
8354
8355 -- The front end marks such a sequence of code by bracketing it with
8356 -- push and pop nodes:
8357
8358 -- N_Push_xxx_Label (referencing the label)
8359 -- ...
8360 -- (code where transformation is expected for exception xxx)
8361 -- ...
8362 -- N_Pop_xxx_Label
8363
8364 -- The use of push/pop reflects the fact that such regions can properly
8365 -- nest, and one special case is a subregion in which no transformation
8366 -- is allowed. Such a region is marked by a N_Push_xxx_Label node whose
8367 -- Exception_Label field is Empty.
8368
8369 -- N_Push_Constraint_Error_Label
8370 -- Sloc references first statement in region covered
8371 -- Exception_Label (Node5-Sem)
8372
8373 -- N_Push_Program_Error_Label
8374 -- Sloc references first statement in region covered
8375 -- Exception_Label (Node5-Sem)
8376
8377 -- N_Push_Storage_Error_Label
8378 -- Sloc references first statement in region covered
8379 -- Exception_Label (Node5-Sem)
8380
8381 -- N_Pop_Constraint_Error_Label
8382 -- Sloc references last statement in region covered
8383
8384 -- N_Pop_Program_Error_Label
8385 -- Sloc references last statement in region covered
8386
8387 -- N_Pop_Storage_Error_Label
8388 -- Sloc references last statement in region covered
8389
8390 ---------------
8391 -- Reference --
8392 ---------------
8393
8394 -- For a number of purposes, we need to construct references to objects.
8395 -- These references are subsequently treated as normal access values.
8396 -- An example is the construction of the parameter block passed to a
8397 -- task entry. The N_Reference node is provided for this purpose. It is
8398 -- similar in effect to the use of the Unrestricted_Access attribute,
8399 -- and like Unrestricted_Access can be applied to objects which would
8400 -- not be valid prefixes for the Unchecked_Access attribute (e.g.
8401 -- objects which are not aliased, and slices). In addition it can be
8402 -- applied to composite type values as well as objects, including string
8403 -- values and aggregates.
8404
8405 -- Note: we use the Prefix field for this expression so that the
8406 -- resulting node can be treated using common code with the attribute
8407 -- nodes for the 'Access and related attributes. Logically it would make
8408 -- more sense to call it an Expression field, but then we would have to
8409 -- special case the treatment of the N_Reference node.
8410
8411 -- Note: evaluating a N_Reference node is guaranteed to yield a non-null
8412 -- value at run time. Therefore, it is valid to set Is_Known_Non_Null on
8413 -- a temporary initialized to a N_Reference node in order to eliminate
8414 -- superfluous access checks.
8415
8416 -- Sprint syntax: prefix'reference
8417
8418 -- N_Reference
8419 -- Sloc is copied from the expression
8420 -- Prefix (Node3)
8421 -- plus fields for expression
8422
8423 -- Note: in the case where a debug source file is generated, the Sloc
8424 -- for this node points to the quote in the Sprint file output.
8425
8426 ----------------
8427 -- SCIL Nodes --
8428 ----------------
8429
8430 -- SCIL nodes are special nodes added to the tree when the CodePeer mode
8431 -- is active. They are only generated if SCIL generation is enabled.
8432 -- A standard tree-walk will not encounter these nodes even if they
8433 -- are present; these nodes are only accessible via the function
8434 -- SCIL_LL.Get_SCIL_Node. These nodes have no associated dynamic
8435 -- semantics.
8436
8437 -- Sprint syntax: [ <node kind> ]
8438 -- No semantic field values are displayed.
8439
8440 -- N_SCIL_Dispatch_Table_Tag_Init
8441 -- Sloc references a node for a tag initialization
8442 -- SCIL_Entity (Node4-Sem)
8443 --
8444 -- An N_SCIL_Dispatch_Table_Tag_Init node may be associated (via
8445 -- Get_SCIL_Node) with the N_Object_Declaration node corresponding to
8446 -- the declaration of the dispatch table for a tagged type.
8447
8448 -- N_SCIL_Dispatching_Call
8449 -- Sloc references the node of a dispatching call
8450 -- SCIL_Target_Prim (Node2-Sem)
8451 -- SCIL_Entity (Node4-Sem)
8452 -- SCIL_Controlling_Tag (Node5-Sem)
8453 --
8454 -- An N_Scil_Dispatching call node may be associated (via Get_SCIL_Node)
8455 -- with the N_Procedure_Call_Statement or N_Function_Call node (or a
8456 -- rewriting thereof) corresponding to a dispatching call.
8457
8458 -- N_SCIL_Membership_Test
8459 -- Sloc references the node of a membership test
8460 -- SCIL_Tag_Value (Node5-Sem)
8461 -- SCIL_Entity (Node4-Sem)
8462 --
8463 -- An N_Scil_Membership_Test node may be associated (via Get_SCIL_Node)
8464 -- with the N_In node (or a rewriting thereof) corresponding to a
8465 -- classwide membership test.
8466
8467 --------------------------
8468 -- Unchecked Expression --
8469 --------------------------
8470
8471 -- An unchecked expression is one that must be analyzed and resolved
8472 -- with all checks off, regardless of the current setting of scope
8473 -- suppress flags.
8474
8475 -- Sprint syntax: `(expression)
8476
8477 -- Note: this node is always removed from the tree (and replaced by
8478 -- its constituent expression) on completion of analysis, so it only
8479 -- appears in intermediate trees, and will never be seen by Gigi.
8480
8481 -- N_Unchecked_Expression
8482 -- Sloc is a copy of the Sloc of the expression
8483 -- Expression (Node3)
8484 -- plus fields for expression
8485
8486 -- Note: in the case where a debug source file is generated, the Sloc
8487 -- for this node points to the back quote in the Sprint file output.
8488
8489 -------------------------------
8490 -- Unchecked Type Conversion --
8491 -------------------------------
8492
8493 -- An unchecked type conversion node represents the semantic action
8494 -- corresponding to a call to an instantiation of Unchecked_Conversion.
8495 -- It is generated as a result of actual use of Unchecked_Conversion
8496 -- and also the expander generates unchecked type conversion nodes
8497 -- directly for expansion of complex semantic actions.
8498
8499 -- Note: an unchecked type conversion is a variable as far as the
8500 -- semantics are concerned, which is convenient for the expander.
8501 -- This does not change what Ada source programs are legal, since
8502 -- clearly a function call to an instantiation of Unchecked_Conversion
8503 -- is not a variable in any case.
8504
8505 -- Sprint syntax: subtype-mark!(expression)
8506
8507 -- N_Unchecked_Type_Conversion
8508 -- Sloc points to related node in source
8509 -- Subtype_Mark (Node4)
8510 -- Expression (Node3)
8511 -- Kill_Range_Check (Flag11-Sem)
8512 -- No_Truncation (Flag17-Sem)
8513 -- plus fields for expression
8514
8515 -- Note: in the case where a debug source file is generated, the Sloc
8516 -- for this node points to the exclamation in the Sprint file output.
8517
8518 -----------------------------------
8519 -- Validate_Unchecked_Conversion --
8520 -----------------------------------
8521
8522 -- The front end does most of the validation of unchecked conversion,
8523 -- including checking sizes (this is done after the back end is called
8524 -- to take advantage of back-annotation of calculated sizes).
8525
8526 -- The front end also deals with specific cases that are not allowed
8527 -- e.g. involving unconstrained array types.
8528
8529 -- For the case of the standard gigi backend, this means that all
8530 -- checks are done in the front end.
8531
8532 -- However, in the case of specialized back-ends, in particular the JVM
8533 -- backend in the past, additional requirements and restrictions may
8534 -- apply to unchecked conversion, and these are most conveniently
8535 -- performed in the specialized back-end.
8536
8537 -- To accommodate this requirement, for such back ends, the following
8538 -- special node is generated recording an unchecked conversion that
8539 -- needs to be validated. The back end should post an appropriate
8540 -- error message if the unchecked conversion is invalid or warrants
8541 -- a special warning message.
8542
8543 -- Source_Type and Target_Type point to the entities for the two
8544 -- types involved in the unchecked conversion instantiation that
8545 -- is to be validated.
8546
8547 -- Sprint syntax: validate Unchecked_Conversion (source, target);
8548
8549 -- N_Validate_Unchecked_Conversion
8550 -- Sloc points to instantiation (location for warning message)
8551 -- Source_Type (Node1-Sem)
8552 -- Target_Type (Node2-Sem)
8553
8554 -- Note: in the case where a debug source file is generated, the Sloc
8555 -- for this node points to the VALIDATE keyword in the file output.
8556
8557 -------------------------------
8558 -- Variable_Reference_Marker --
8559 -------------------------------
8560
8561 -- This node is created during the analysis of direct or expanded names,
8562 -- and the resolution of entry and subprogram calls. It performs several
8563 -- functions:
8564
8565 -- * Variable reference markers provide a uniform model for handling
8566 -- variable references by the ABE mechanism, regardless of whether
8567 -- expansion took place.
8568
8569 -- * The variable reference marker captures the entity of the variable
8570 -- being read or written.
8571
8572 -- * The variable reference markers aid the ABE Processing phase by
8573 -- signaling the presence of a call in case the original variable
8574 -- reference was transformed by expansion.
8575
8576 -- Sprint syntax: r#target# -- for a read
8577 -- rw#target# -- for a read/write
8578 -- w#target# -- for a write
8579
8580 -- The Sprint syntax shown above is not enabled by default
8581
8582 -- N_Variable_Reference_Marker
8583 -- Sloc points to Sloc of original variable reference
8584 -- Target (Node1-Sem)
8585 -- Is_Elaboration_Checks_OK_Node (Flag1-Sem)
8586 -- Is_SPARK_Mode_On_Node (Flag2-Sem)
8587 -- Is_Elaboration_Warnings_OK_Node (Flag3-Sem)
8588 -- Is_Read (Flag4-Sem)
8589 -- Is_Write (Flag5-Sem)
8590
8591 -----------
8592 -- Empty --
8593 -----------
8594
8595 -- Used as the contents of the Nkind field of the dummy Empty node and in
8596 -- some other situations to indicate an uninitialized value.
8597
8598 -- N_Empty
8599 -- Chars (Name1) is set to No_Name
8600
8601 -----------
8602 -- Error --
8603 -----------
8604
8605 -- Used as the contents of the Nkind field of the dummy Error node.
8606 -- Has an Etype field, which gets set to Any_Type later on, to help
8607 -- error recovery (Error_Posted is also set in the Error node).
8608
8609 -- N_Error
8610 -- Chars (Name1) is set to Error_Name
8611 -- Etype (Node5-Sem)
8612
8613 --------------------------
8614 -- Node Type Definition --
8615 --------------------------
8616
8617 -- The following is the definition of the Node_Kind type. As previously
8618 -- discussed, this is separated off to allow rearrangement of the order to
8619 -- facilitate definition of subtype ranges. The comments show the subtype
8620 -- classes which apply to each set of node kinds. The first entry in the
8621 -- comment characterizes the following list of nodes.
8622
8623 type Node_Kind is (
8624 N_Unused_At_Start,
8625
8626 -- N_Representation_Clause
8627
8628 N_At_Clause,
8629 N_Component_Clause,
8630 N_Enumeration_Representation_Clause,
8631 N_Mod_Clause,
8632 N_Record_Representation_Clause,
8633
8634 -- N_Representation_Clause, N_Has_Chars
8635
8636 N_Attribute_Definition_Clause,
8637
8638 -- N_Has_Chars
8639
8640 N_Empty,
8641 N_Pragma_Argument_Association,
8642
8643 -- N_Has_Etype, N_Has_Chars
8644
8645 -- Note: of course N_Error does not really have Etype or Chars fields,
8646 -- and any attempt to access these fields in N_Error will cause an
8647 -- error, but historically this always has been positioned so that an
8648 -- "in N_Has_Chars" or "in N_Has_Etype" test yields true for N_Error.
8649 -- Most likely this makes coding easier somewhere but still seems
8650 -- undesirable. To be investigated some time ???
8651
8652 N_Error,
8653
8654 -- N_Entity, N_Has_Etype, N_Has_Chars
8655
8656 N_Defining_Character_Literal,
8657 N_Defining_Identifier,
8658 N_Defining_Operator_Symbol,
8659
8660 -- N_Subexpr, N_Has_Etype, N_Has_Chars, N_Has_Entity
8661
8662 N_Expanded_Name,
8663
8664 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8665 -- N_Has_Chars, N_Has_Entity
8666
8667 N_Identifier,
8668 N_Operator_Symbol,
8669
8670 -- N_Direct_Name, N_Subexpr, N_Has_Etype,
8671 -- N_Has_Chars, N_Has_Entity
8672
8673 N_Character_Literal,
8674
8675 -- N_Binary_Op, N_Op, N_Subexpr,
8676 -- N_Has_Etype, N_Has_Chars, N_Has_Entity
8677
8678 N_Op_Add,
8679 N_Op_Concat,
8680 N_Op_Expon,
8681 N_Op_Subtract,
8682
8683 -- N_Binary_Op, N_Op, N_Subexpr,
8684 -- N_Has_Etype, N_Has_Chars, N_Has_Entity, N_Multiplying_Operator
8685
8686 N_Op_Divide,
8687 N_Op_Mod,
8688 N_Op_Multiply,
8689 N_Op_Rem,
8690
8691 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8692 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8693
8694 N_Op_And,
8695
8696 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8697 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean, N_Op_Compare
8698
8699 N_Op_Eq,
8700 N_Op_Ge,
8701 N_Op_Gt,
8702 N_Op_Le,
8703 N_Op_Lt,
8704 N_Op_Ne,
8705
8706 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype
8707 -- N_Has_Entity, N_Has_Chars, N_Op_Boolean
8708
8709 N_Op_Or,
8710 N_Op_Xor,
8711
8712 -- N_Binary_Op, N_Op, N_Subexpr, N_Has_Etype,
8713 -- N_Op_Shift, N_Has_Chars, N_Has_Entity
8714
8715 N_Op_Rotate_Left,
8716 N_Op_Rotate_Right,
8717 N_Op_Shift_Left,
8718 N_Op_Shift_Right,
8719 N_Op_Shift_Right_Arithmetic,
8720
8721 -- N_Unary_Op, N_Op, N_Subexpr, N_Has_Etype,
8722 -- N_Has_Chars, N_Has_Entity
8723
8724 N_Op_Abs,
8725 N_Op_Minus,
8726 N_Op_Not,
8727 N_Op_Plus,
8728
8729 -- N_Subexpr, N_Has_Etype, N_Has_Entity
8730
8731 N_Attribute_Reference,
8732
8733 -- N_Subexpr, N_Has_Etype, N_Membership_Test
8734
8735 N_In,
8736 N_Not_In,
8737
8738 -- N_Subexpr, N_Has_Etype, N_Short_Circuit
8739
8740 N_And_Then,
8741 N_Or_Else,
8742
8743 -- N_Subexpr, N_Has_Etype, N_Subprogram_Call
8744
8745 N_Function_Call,
8746 N_Procedure_Call_Statement,
8747
8748 -- N_Subexpr, N_Has_Etype, N_Raise_xxx_Error
8749
8750 N_Raise_Constraint_Error,
8751 N_Raise_Program_Error,
8752 N_Raise_Storage_Error,
8753
8754 -- N_Subexpr, N_Has_Etype, N_Numeric_Or_String_Literal
8755
8756 N_Integer_Literal,
8757 N_Real_Literal,
8758 N_String_Literal,
8759
8760 -- N_Subexpr, N_Has_Etype
8761
8762 N_Explicit_Dereference,
8763 N_Expression_With_Actions,
8764 N_If_Expression,
8765 N_Indexed_Component,
8766 N_Null,
8767 N_Qualified_Expression,
8768 N_Quantified_Expression,
8769 N_Aggregate,
8770 N_Allocator,
8771 N_Case_Expression,
8772 N_Delta_Aggregate,
8773 N_Extension_Aggregate,
8774 N_Raise_Expression,
8775 N_Range,
8776 N_Reference,
8777 N_Selected_Component,
8778 N_Slice,
8779 N_Target_Name,
8780 N_Type_Conversion,
8781 N_Unchecked_Expression,
8782 N_Unchecked_Type_Conversion,
8783
8784 -- N_Has_Etype
8785
8786 N_Subtype_Indication,
8787
8788 -- N_Declaration
8789
8790 N_Component_Declaration,
8791 N_Entry_Declaration,
8792 N_Expression_Function,
8793 N_Formal_Object_Declaration,
8794 N_Formal_Type_Declaration,
8795 N_Full_Type_Declaration,
8796 N_Incomplete_Type_Declaration,
8797 N_Iterator_Specification,
8798 N_Loop_Parameter_Specification,
8799 N_Object_Declaration,
8800 N_Protected_Type_Declaration,
8801 N_Private_Extension_Declaration,
8802 N_Private_Type_Declaration,
8803 N_Subtype_Declaration,
8804
8805 -- N_Subprogram_Specification, N_Declaration
8806
8807 N_Function_Specification,
8808 N_Procedure_Specification,
8809
8810 -- N_Access_To_Subprogram_Definition
8811
8812 N_Access_Function_Definition,
8813 N_Access_Procedure_Definition,
8814
8815 -- N_Later_Decl_Item
8816
8817 N_Task_Type_Declaration,
8818
8819 -- N_Body_Stub, N_Later_Decl_Item
8820
8821 N_Package_Body_Stub,
8822 N_Protected_Body_Stub,
8823 N_Subprogram_Body_Stub,
8824 N_Task_Body_Stub,
8825
8826 -- N_Generic_Instantiation, N_Later_Decl_Item
8827 -- N_Subprogram_Instantiation
8828
8829 N_Function_Instantiation,
8830 N_Procedure_Instantiation,
8831
8832 -- N_Generic_Instantiation, N_Later_Decl_Item
8833
8834 N_Package_Instantiation,
8835
8836 -- N_Unit_Body, N_Later_Decl_Item, N_Proper_Body
8837
8838 N_Package_Body,
8839 N_Subprogram_Body,
8840
8841 -- N_Later_Decl_Item, N_Proper_Body
8842
8843 N_Protected_Body,
8844 N_Task_Body,
8845
8846 -- N_Later_Decl_Item
8847
8848 N_Implicit_Label_Declaration,
8849 N_Package_Declaration,
8850 N_Single_Task_Declaration,
8851 N_Subprogram_Declaration,
8852 N_Use_Package_Clause,
8853
8854 -- N_Generic_Declaration, N_Later_Decl_Item
8855
8856 N_Generic_Package_Declaration,
8857 N_Generic_Subprogram_Declaration,
8858
8859 -- N_Array_Type_Definition
8860
8861 N_Constrained_Array_Definition,
8862 N_Unconstrained_Array_Definition,
8863
8864 -- N_Renaming_Declaration
8865
8866 N_Exception_Renaming_Declaration,
8867 N_Object_Renaming_Declaration,
8868 N_Package_Renaming_Declaration,
8869 N_Subprogram_Renaming_Declaration,
8870
8871 -- N_Generic_Renaming_Declaration, N_Renaming_Declaration
8872
8873 N_Generic_Function_Renaming_Declaration,
8874 N_Generic_Package_Renaming_Declaration,
8875 N_Generic_Procedure_Renaming_Declaration,
8876
8877 -- N_Statement_Other_Than_Procedure_Call
8878
8879 N_Abort_Statement,
8880 N_Accept_Statement,
8881 N_Assignment_Statement,
8882 N_Asynchronous_Select,
8883 N_Block_Statement,
8884 N_Case_Statement,
8885 N_Code_Statement,
8886 N_Compound_Statement,
8887 N_Conditional_Entry_Call,
8888
8889 -- N_Statement_Other_Than_Procedure_Call, N_Delay_Statement
8890
8891 N_Delay_Relative_Statement,
8892 N_Delay_Until_Statement,
8893
8894 -- N_Statement_Other_Than_Procedure_Call
8895
8896 N_Entry_Call_Statement,
8897 N_Free_Statement,
8898 N_Goto_Statement,
8899 N_Loop_Statement,
8900 N_Null_Statement,
8901 N_Raise_Statement,
8902 N_Requeue_Statement,
8903 N_Simple_Return_Statement,
8904 N_Extended_Return_Statement,
8905 N_Selective_Accept,
8906 N_Timed_Entry_Call,
8907
8908 -- N_Statement_Other_Than_Procedure_Call, N_Has_Condition
8909
8910 N_Exit_Statement,
8911 N_If_Statement,
8912
8913 -- N_Has_Condition
8914
8915 N_Accept_Alternative,
8916 N_Delay_Alternative,
8917 N_Elsif_Part,
8918 N_Entry_Body_Formal_Part,
8919 N_Iteration_Scheme,
8920 N_Terminate_Alternative,
8921
8922 -- N_Formal_Subprogram_Declaration
8923
8924 N_Formal_Abstract_Subprogram_Declaration,
8925 N_Formal_Concrete_Subprogram_Declaration,
8926
8927 -- N_Push_xxx_Label, N_Push_Pop_xxx_Label
8928
8929 N_Push_Constraint_Error_Label,
8930 N_Push_Program_Error_Label,
8931 N_Push_Storage_Error_Label,
8932
8933 -- N_Pop_xxx_Label, N_Push_Pop_xxx_Label
8934
8935 N_Pop_Constraint_Error_Label,
8936 N_Pop_Program_Error_Label,
8937 N_Pop_Storage_Error_Label,
8938
8939 -- SCIL nodes
8940
8941 N_SCIL_Dispatch_Table_Tag_Init,
8942 N_SCIL_Dispatching_Call,
8943 N_SCIL_Membership_Test,
8944
8945 -- Other nodes (not part of any subtype class)
8946
8947 N_Abortable_Part,
8948 N_Abstract_Subprogram_Declaration,
8949 N_Access_Definition,
8950 N_Access_To_Object_Definition,
8951 N_Aspect_Specification,
8952 N_Call_Marker,
8953 N_Case_Expression_Alternative,
8954 N_Case_Statement_Alternative,
8955 N_Compilation_Unit,
8956 N_Compilation_Unit_Aux,
8957 N_Component_Association,
8958 N_Component_Definition,
8959 N_Component_List,
8960 N_Contract,
8961 N_Derived_Type_Definition,
8962 N_Decimal_Fixed_Point_Definition,
8963 N_Defining_Program_Unit_Name,
8964 N_Delta_Constraint,
8965 N_Designator,
8966 N_Digits_Constraint,
8967 N_Discriminant_Association,
8968 N_Discriminant_Specification,
8969 N_Enumeration_Type_Definition,
8970 N_Entry_Body,
8971 N_Entry_Call_Alternative,
8972 N_Entry_Index_Specification,
8973 N_Exception_Declaration,
8974 N_Exception_Handler,
8975 N_Floating_Point_Definition,
8976 N_Formal_Decimal_Fixed_Point_Definition,
8977 N_Formal_Derived_Type_Definition,
8978 N_Formal_Discrete_Type_Definition,
8979 N_Formal_Floating_Point_Definition,
8980 N_Formal_Modular_Type_Definition,
8981 N_Formal_Ordinary_Fixed_Point_Definition,
8982 N_Formal_Package_Declaration,
8983 N_Formal_Private_Type_Definition,
8984 N_Formal_Incomplete_Type_Definition,
8985 N_Formal_Signed_Integer_Type_Definition,
8986 N_Freeze_Entity,
8987 N_Freeze_Generic_Entity,
8988 N_Generic_Association,
8989 N_Handled_Sequence_Of_Statements,
8990 N_Index_Or_Discriminant_Constraint,
8991 N_Iterated_Component_Association,
8992 N_Itype_Reference,
8993 N_Label,
8994 N_Modular_Type_Definition,
8995 N_Number_Declaration,
8996 N_Ordinary_Fixed_Point_Definition,
8997 N_Others_Choice,
8998 N_Package_Specification,
8999 N_Parameter_Association,
9000 N_Parameter_Specification,
9001 N_Pragma,
9002 N_Protected_Definition,
9003 N_Range_Constraint,
9004 N_Real_Range_Specification,
9005 N_Record_Definition,
9006 N_Signed_Integer_Type_Definition,
9007 N_Single_Protected_Declaration,
9008 N_Subunit,
9009 N_Task_Definition,
9010 N_Triggering_Alternative,
9011 N_Use_Type_Clause,
9012 N_Validate_Unchecked_Conversion,
9013 N_Variable_Reference_Marker,
9014 N_Variant,
9015 N_Variant_Part,
9016 N_With_Clause,
9017 N_Unused_At_End);
9018
9019 for Node_Kind'Size use 8;
9020 -- The data structures in Atree assume this
9021
9022 ----------------------------
9023 -- Node Class Definitions --
9024 ----------------------------
9025
9026 subtype N_Access_To_Subprogram_Definition is Node_Kind range
9027 N_Access_Function_Definition ..
9028 N_Access_Procedure_Definition;
9029
9030 subtype N_Array_Type_Definition is Node_Kind range
9031 N_Constrained_Array_Definition ..
9032 N_Unconstrained_Array_Definition;
9033
9034 subtype N_Binary_Op is Node_Kind range
9035 N_Op_Add ..
9036 N_Op_Shift_Right_Arithmetic;
9037
9038 subtype N_Body_Stub is Node_Kind range
9039 N_Package_Body_Stub ..
9040 N_Task_Body_Stub;
9041
9042 subtype N_Declaration is Node_Kind range
9043 N_Component_Declaration ..
9044 N_Procedure_Specification;
9045 -- Note: this includes all constructs normally thought of as declarations
9046 -- except those which are separately grouped as later declarations.
9047
9048 subtype N_Delay_Statement is Node_Kind range
9049 N_Delay_Relative_Statement ..
9050 N_Delay_Until_Statement;
9051
9052 subtype N_Direct_Name is Node_Kind range
9053 N_Identifier ..
9054 N_Character_Literal;
9055
9056 subtype N_Entity is Node_Kind range
9057 N_Defining_Character_Literal ..
9058 N_Defining_Operator_Symbol;
9059
9060 subtype N_Formal_Subprogram_Declaration is Node_Kind range
9061 N_Formal_Abstract_Subprogram_Declaration ..
9062 N_Formal_Concrete_Subprogram_Declaration;
9063
9064 subtype N_Generic_Declaration is Node_Kind range
9065 N_Generic_Package_Declaration ..
9066 N_Generic_Subprogram_Declaration;
9067
9068 subtype N_Generic_Instantiation is Node_Kind range
9069 N_Function_Instantiation ..
9070 N_Package_Instantiation;
9071
9072 subtype N_Generic_Renaming_Declaration is Node_Kind range
9073 N_Generic_Function_Renaming_Declaration ..
9074 N_Generic_Procedure_Renaming_Declaration;
9075
9076 subtype N_Has_Chars is Node_Kind range
9077 N_Attribute_Definition_Clause ..
9078 N_Op_Plus;
9079
9080 subtype N_Has_Entity is Node_Kind range
9081 N_Expanded_Name ..
9082 N_Attribute_Reference;
9083 -- Nodes that have Entity fields
9084 -- Warning: DOES NOT INCLUDE N_Freeze_Entity, N_Freeze_Generic_Entity,
9085 -- N_Aspect_Specification, or N_Attribute_Definition_Clause.
9086
9087 subtype N_Has_Etype is Node_Kind range
9088 N_Error ..
9089 N_Subtype_Indication;
9090
9091 subtype N_Multiplying_Operator is Node_Kind range
9092 N_Op_Divide ..
9093 N_Op_Rem;
9094
9095 subtype N_Later_Decl_Item is Node_Kind range
9096 N_Task_Type_Declaration ..
9097 N_Generic_Subprogram_Declaration;
9098 -- Note: this is Ada 83 relevant only (see Ada 83 RM 3.9 (2)) and includes
9099 -- only those items which can appear as later declarative items. This also
9100 -- includes N_Implicit_Label_Declaration which is not specifically in the
9101 -- grammar but may appear as a valid later declarative items. It does NOT
9102 -- include N_Pragma which can also appear among later declarative items.
9103 -- It does however include N_Protected_Body, which is a bit peculiar, but
9104 -- harmless since this cannot appear in Ada 83 mode anyway.
9105
9106 subtype N_Membership_Test is Node_Kind range
9107 N_In ..
9108 N_Not_In;
9109
9110 subtype N_Numeric_Or_String_Literal is Node_Kind range
9111 N_Integer_Literal ..
9112 N_String_Literal;
9113
9114 subtype N_Op is Node_Kind range
9115 N_Op_Add ..
9116 N_Op_Plus;
9117
9118 subtype N_Op_Boolean is Node_Kind range
9119 N_Op_And ..
9120 N_Op_Xor;
9121 -- Binary operators which take operands of a boolean type, and yield
9122 -- a result of a boolean type.
9123
9124 subtype N_Op_Compare is Node_Kind range
9125 N_Op_Eq ..
9126 N_Op_Ne;
9127
9128 subtype N_Op_Shift is Node_Kind range
9129 N_Op_Rotate_Left ..
9130 N_Op_Shift_Right_Arithmetic;
9131
9132 subtype N_Proper_Body is Node_Kind range
9133 N_Package_Body ..
9134 N_Task_Body;
9135
9136 subtype N_Push_xxx_Label is Node_Kind range
9137 N_Push_Constraint_Error_Label ..
9138 N_Push_Storage_Error_Label;
9139
9140 subtype N_Pop_xxx_Label is Node_Kind range
9141 N_Pop_Constraint_Error_Label ..
9142 N_Pop_Storage_Error_Label;
9143
9144 subtype N_Push_Pop_xxx_Label is Node_Kind range
9145 N_Push_Constraint_Error_Label ..
9146 N_Pop_Storage_Error_Label;
9147
9148 subtype N_Raise_xxx_Error is Node_Kind range
9149 N_Raise_Constraint_Error ..
9150 N_Raise_Storage_Error;
9151
9152 subtype N_Renaming_Declaration is Node_Kind range
9153 N_Exception_Renaming_Declaration ..
9154 N_Generic_Procedure_Renaming_Declaration;
9155
9156 subtype N_Representation_Clause is Node_Kind range
9157 N_At_Clause ..
9158 N_Attribute_Definition_Clause;
9159
9160 subtype N_Short_Circuit is Node_Kind range
9161 N_And_Then ..
9162 N_Or_Else;
9163
9164 subtype N_SCIL_Node is Node_Kind range
9165 N_SCIL_Dispatch_Table_Tag_Init ..
9166 N_SCIL_Membership_Test;
9167
9168 subtype N_Statement_Other_Than_Procedure_Call is Node_Kind range
9169 N_Abort_Statement ..
9170 N_If_Statement;
9171 -- Note that this includes all statement types except for the cases of the
9172 -- N_Procedure_Call_Statement which is considered to be a subexpression
9173 -- (since overloading is possible, so it needs to go through the normal
9174 -- overloading resolution for expressions).
9175
9176 subtype N_Subprogram_Call is Node_Kind range
9177 N_Function_Call ..
9178 N_Procedure_Call_Statement;
9179
9180 subtype N_Subprogram_Instantiation is Node_Kind range
9181 N_Function_Instantiation ..
9182 N_Procedure_Instantiation;
9183
9184 subtype N_Has_Condition is Node_Kind range
9185 N_Exit_Statement ..
9186 N_Terminate_Alternative;
9187 -- Nodes with condition fields (does not include N_Raise_xxx_Error)
9188
9189 subtype N_Subexpr is Node_Kind range
9190 N_Expanded_Name ..
9191 N_Unchecked_Type_Conversion;
9192 -- Nodes with expression fields
9193
9194 subtype N_Subprogram_Specification is Node_Kind range
9195 N_Function_Specification ..
9196 N_Procedure_Specification;
9197
9198 subtype N_Unary_Op is Node_Kind range
9199 N_Op_Abs ..
9200 N_Op_Plus;
9201
9202 subtype N_Unit_Body is Node_Kind range
9203 N_Package_Body ..
9204 N_Subprogram_Body;
9205
9206 ---------------------------
9207 -- Node Access Functions --
9208 ---------------------------
9209
9210 -- The following functions return the contents of the indicated field of
9211 -- the node referenced by the argument, which is a Node_Id. They provide
9212 -- logical access to fields in the node which could be accessed using the
9213 -- Atree.Unchecked_Access package, but the idea is always to use these
9214 -- higher level routines which preserve strong typing. In debug mode,
9215 -- these routines check that they are being applied to an appropriate
9216 -- node, as well as checking that the node is in range.
9217
9218 function Abort_Present
9219 (N : Node_Id) return Boolean; -- Flag15
9220
9221 function Abortable_Part
9222 (N : Node_Id) return Node_Id; -- Node2
9223
9224 function Abstract_Present
9225 (N : Node_Id) return Boolean; -- Flag4
9226
9227 function Accept_Handler_Records
9228 (N : Node_Id) return List_Id; -- List5
9229
9230 function Accept_Statement
9231 (N : Node_Id) return Node_Id; -- Node2
9232
9233 function Access_Definition
9234 (N : Node_Id) return Node_Id; -- Node3
9235
9236 function Access_To_Subprogram_Definition
9237 (N : Node_Id) return Node_Id; -- Node3
9238
9239 function Access_Types_To_Process
9240 (N : Node_Id) return Elist_Id; -- Elist2
9241
9242 function Actions
9243 (N : Node_Id) return List_Id; -- List1
9244
9245 function Activation_Chain_Entity
9246 (N : Node_Id) return Node_Id; -- Node3
9247
9248 function Acts_As_Spec
9249 (N : Node_Id) return Boolean; -- Flag4
9250
9251 function Actual_Designated_Subtype
9252 (N : Node_Id) return Node_Id; -- Node4
9253
9254 function Address_Warning_Posted
9255 (N : Node_Id) return Boolean; -- Flag18
9256
9257 function Aggregate_Bounds
9258 (N : Node_Id) return Node_Id; -- Node3
9259
9260 function Aliased_Present
9261 (N : Node_Id) return Boolean; -- Flag4
9262
9263 function Alloc_For_BIP_Return
9264 (N : Node_Id) return Boolean; -- Flag1
9265
9266 function All_Others
9267 (N : Node_Id) return Boolean; -- Flag11
9268
9269 function All_Present
9270 (N : Node_Id) return Boolean; -- Flag15
9271
9272 function Alternatives
9273 (N : Node_Id) return List_Id; -- List4
9274
9275 function Ancestor_Part
9276 (N : Node_Id) return Node_Id; -- Node3
9277
9278 function Atomic_Sync_Required
9279 (N : Node_Id) return Boolean; -- Flag14
9280
9281 function Array_Aggregate
9282 (N : Node_Id) return Node_Id; -- Node3
9283
9284 function Aspect_On_Partial_View
9285 (N : Node_Id) return Boolean; -- Flag18
9286
9287 function Aspect_Rep_Item
9288 (N : Node_Id) return Node_Id; -- Node2
9289
9290 function Assignment_OK
9291 (N : Node_Id) return Boolean; -- Flag15
9292
9293 function Associated_Node
9294 (N : Node_Id) return Node_Id; -- Node4
9295
9296 function At_End_Proc
9297 (N : Node_Id) return Node_Id; -- Node1
9298
9299 function Attribute_Name
9300 (N : Node_Id) return Name_Id; -- Name2
9301
9302 function Aux_Decls_Node
9303 (N : Node_Id) return Node_Id; -- Node5
9304
9305 function Backwards_OK
9306 (N : Node_Id) return Boolean; -- Flag6
9307
9308 function Bad_Is_Detected
9309 (N : Node_Id) return Boolean; -- Flag15
9310
9311 function By_Ref
9312 (N : Node_Id) return Boolean; -- Flag5
9313
9314 function Body_Required
9315 (N : Node_Id) return Boolean; -- Flag13
9316
9317 function Body_To_Inline
9318 (N : Node_Id) return Node_Id; -- Node3
9319
9320 function Box_Present
9321 (N : Node_Id) return Boolean; -- Flag15
9322
9323 function Char_Literal_Value
9324 (N : Node_Id) return Uint; -- Uint2
9325
9326 function Chars
9327 (N : Node_Id) return Name_Id; -- Name1
9328
9329 function Check_Address_Alignment
9330 (N : Node_Id) return Boolean; -- Flag11
9331
9332 function Choice_Parameter
9333 (N : Node_Id) return Node_Id; -- Node2
9334
9335 function Choices
9336 (N : Node_Id) return List_Id; -- List1
9337
9338 function Class_Present
9339 (N : Node_Id) return Boolean; -- Flag6
9340
9341 function Classifications
9342 (N : Node_Id) return Node_Id; -- Node3
9343
9344 function Cleanup_Actions
9345 (N : Node_Id) return List_Id; -- List5
9346
9347 function Comes_From_Extended_Return_Statement
9348 (N : Node_Id) return Boolean; -- Flag18
9349
9350 function Compile_Time_Known_Aggregate
9351 (N : Node_Id) return Boolean; -- Flag18
9352
9353 function Component_Associations
9354 (N : Node_Id) return List_Id; -- List2
9355
9356 function Component_Clauses
9357 (N : Node_Id) return List_Id; -- List3
9358
9359 function Component_Definition
9360 (N : Node_Id) return Node_Id; -- Node4
9361
9362 function Component_Items
9363 (N : Node_Id) return List_Id; -- List3
9364
9365 function Component_List
9366 (N : Node_Id) return Node_Id; -- Node1
9367
9368 function Component_Name
9369 (N : Node_Id) return Node_Id; -- Node1
9370
9371 function Componentwise_Assignment
9372 (N : Node_Id) return Boolean; -- Flag14
9373
9374 function Condition
9375 (N : Node_Id) return Node_Id; -- Node1
9376
9377 function Condition_Actions
9378 (N : Node_Id) return List_Id; -- List3
9379
9380 function Config_Pragmas
9381 (N : Node_Id) return List_Id; -- List4
9382
9383 function Constant_Present
9384 (N : Node_Id) return Boolean; -- Flag17
9385
9386 function Constraint
9387 (N : Node_Id) return Node_Id; -- Node3
9388
9389 function Constraints
9390 (N : Node_Id) return List_Id; -- List1
9391
9392 function Context_Installed
9393 (N : Node_Id) return Boolean; -- Flag13
9394
9395 function Context_Pending
9396 (N : Node_Id) return Boolean; -- Flag16
9397
9398 function Context_Items
9399 (N : Node_Id) return List_Id; -- List1
9400
9401 function Contract_Test_Cases
9402 (N : Node_Id) return Node_Id; -- Node2
9403
9404 function Controlling_Argument
9405 (N : Node_Id) return Node_Id; -- Node1
9406
9407 function Conversion_OK
9408 (N : Node_Id) return Boolean; -- Flag14
9409
9410 function Convert_To_Return_False
9411 (N : Node_Id) return Boolean; -- Flag13
9412
9413 function Corresponding_Aspect
9414 (N : Node_Id) return Node_Id; -- Node3
9415
9416 function Corresponding_Body
9417 (N : Node_Id) return Node_Id; -- Node5
9418
9419 function Corresponding_Formal_Spec
9420 (N : Node_Id) return Node_Id; -- Node3
9421
9422 function Corresponding_Generic_Association
9423 (N : Node_Id) return Node_Id; -- Node5
9424
9425 function Corresponding_Integer_Value
9426 (N : Node_Id) return Uint; -- Uint4
9427
9428 function Corresponding_Spec
9429 (N : Node_Id) return Entity_Id; -- Node5
9430
9431 function Corresponding_Spec_Of_Stub
9432 (N : Node_Id) return Node_Id; -- Node2
9433
9434 function Corresponding_Stub
9435 (N : Node_Id) return Node_Id; -- Node3
9436
9437 function Dcheck_Function
9438 (N : Node_Id) return Entity_Id; -- Node5
9439
9440 function Declarations
9441 (N : Node_Id) return List_Id; -- List2
9442
9443 function Default_Expression
9444 (N : Node_Id) return Node_Id; -- Node5
9445
9446 function Default_Storage_Pool
9447 (N : Node_Id) return Node_Id; -- Node3
9448
9449 function Default_Name
9450 (N : Node_Id) return Node_Id; -- Node2
9451
9452 function Defining_Identifier
9453 (N : Node_Id) return Entity_Id; -- Node1
9454
9455 function Defining_Unit_Name
9456 (N : Node_Id) return Node_Id; -- Node1
9457
9458 function Delay_Alternative
9459 (N : Node_Id) return Node_Id; -- Node4
9460
9461 function Delay_Statement
9462 (N : Node_Id) return Node_Id; -- Node2
9463
9464 function Delta_Expression
9465 (N : Node_Id) return Node_Id; -- Node3
9466
9467 function Digits_Expression
9468 (N : Node_Id) return Node_Id; -- Node2
9469
9470 function Discr_Check_Funcs_Built
9471 (N : Node_Id) return Boolean; -- Flag11
9472
9473 function Discrete_Choices
9474 (N : Node_Id) return List_Id; -- List4
9475
9476 function Discrete_Range
9477 (N : Node_Id) return Node_Id; -- Node4
9478
9479 function Discrete_Subtype_Definition
9480 (N : Node_Id) return Node_Id; -- Node4
9481
9482 function Discrete_Subtype_Definitions
9483 (N : Node_Id) return List_Id; -- List2
9484
9485 function Discriminant_Specifications
9486 (N : Node_Id) return List_Id; -- List4
9487
9488 function Discriminant_Type
9489 (N : Node_Id) return Node_Id; -- Node5
9490
9491 function Do_Accessibility_Check
9492 (N : Node_Id) return Boolean; -- Flag13
9493
9494 function Do_Discriminant_Check
9495 (N : Node_Id) return Boolean; -- Flag3
9496
9497 function Do_Division_Check
9498 (N : Node_Id) return Boolean; -- Flag13
9499
9500 function Do_Length_Check
9501 (N : Node_Id) return Boolean; -- Flag4
9502
9503 function Do_Overflow_Check
9504 (N : Node_Id) return Boolean; -- Flag17
9505
9506 function Do_Range_Check
9507 (N : Node_Id) return Boolean; -- Flag9
9508
9509 function Do_Storage_Check
9510 (N : Node_Id) return Boolean; -- Flag17
9511
9512 function Do_Tag_Check
9513 (N : Node_Id) return Boolean; -- Flag13
9514
9515 function Elaborate_All_Desirable
9516 (N : Node_Id) return Boolean; -- Flag9
9517
9518 function Elaborate_All_Present
9519 (N : Node_Id) return Boolean; -- Flag14
9520
9521 function Elaborate_Desirable
9522 (N : Node_Id) return Boolean; -- Flag11
9523
9524 function Elaborate_Present
9525 (N : Node_Id) return Boolean; -- Flag4
9526
9527 function Else_Actions
9528 (N : Node_Id) return List_Id; -- List3
9529
9530 function Else_Statements
9531 (N : Node_Id) return List_Id; -- List4
9532
9533 function Elsif_Parts
9534 (N : Node_Id) return List_Id; -- List3
9535
9536 function Enclosing_Variant
9537 (N : Node_Id) return Node_Id; -- Node2
9538
9539 function End_Label
9540 (N : Node_Id) return Node_Id; -- Node4
9541
9542 function End_Span
9543 (N : Node_Id) return Uint; -- Uint5
9544
9545 function Entity
9546 (N : Node_Id) return Node_Id; -- Node4
9547
9548 function Entity_Or_Associated_Node
9549 (N : Node_Id) return Node_Id; -- Node4
9550
9551 function Entry_Body_Formal_Part
9552 (N : Node_Id) return Node_Id; -- Node5
9553
9554 function Entry_Call_Alternative
9555 (N : Node_Id) return Node_Id; -- Node1
9556
9557 function Entry_Call_Statement
9558 (N : Node_Id) return Node_Id; -- Node1
9559
9560 function Entry_Direct_Name
9561 (N : Node_Id) return Node_Id; -- Node1
9562
9563 function Entry_Index
9564 (N : Node_Id) return Node_Id; -- Node5
9565
9566 function Entry_Index_Specification
9567 (N : Node_Id) return Node_Id; -- Node4
9568
9569 function Etype
9570 (N : Node_Id) return Node_Id; -- Node5
9571
9572 function Exception_Choices
9573 (N : Node_Id) return List_Id; -- List4
9574
9575 function Exception_Handlers
9576 (N : Node_Id) return List_Id; -- List5
9577
9578 function Exception_Junk
9579 (N : Node_Id) return Boolean; -- Flag8
9580
9581 function Exception_Label
9582 (N : Node_Id) return Node_Id; -- Node5
9583
9584 function Explicit_Actual_Parameter
9585 (N : Node_Id) return Node_Id; -- Node3
9586
9587 function Expansion_Delayed
9588 (N : Node_Id) return Boolean; -- Flag11
9589
9590 function Explicit_Generic_Actual_Parameter
9591 (N : Node_Id) return Node_Id; -- Node1
9592
9593 function Expression
9594 (N : Node_Id) return Node_Id; -- Node3
9595
9596 function Expression_Copy
9597 (N : Node_Id) return Node_Id; -- Node2
9598
9599 function Expressions
9600 (N : Node_Id) return List_Id; -- List1
9601
9602 function First_Bit
9603 (N : Node_Id) return Node_Id; -- Node3
9604
9605 function First_Inlined_Subprogram
9606 (N : Node_Id) return Entity_Id; -- Node3
9607
9608 function First_Name
9609 (N : Node_Id) return Boolean; -- Flag5
9610
9611 function First_Named_Actual
9612 (N : Node_Id) return Node_Id; -- Node4
9613
9614 function First_Real_Statement
9615 (N : Node_Id) return Node_Id; -- Node2
9616
9617 function First_Subtype_Link
9618 (N : Node_Id) return Entity_Id; -- Node5
9619
9620 function Float_Truncate
9621 (N : Node_Id) return Boolean; -- Flag11
9622
9623 function Formal_Type_Definition
9624 (N : Node_Id) return Node_Id; -- Node3
9625
9626 function Forwards_OK
9627 (N : Node_Id) return Boolean; -- Flag5
9628
9629 function From_Aspect_Specification
9630 (N : Node_Id) return Boolean; -- Flag13
9631
9632 function From_At_End
9633 (N : Node_Id) return Boolean; -- Flag4
9634
9635 function From_At_Mod
9636 (N : Node_Id) return Boolean; -- Flag4
9637
9638 function From_Conditional_Expression
9639 (N : Node_Id) return Boolean; -- Flag1
9640
9641 function From_Default
9642 (N : Node_Id) return Boolean; -- Flag6
9643
9644 function Generalized_Indexing
9645 (N : Node_Id) return Node_Id; -- Node4
9646
9647 function Generic_Associations
9648 (N : Node_Id) return List_Id; -- List3
9649
9650 function Generic_Formal_Declarations
9651 (N : Node_Id) return List_Id; -- List2
9652
9653 function Generic_Parent
9654 (N : Node_Id) return Node_Id; -- Node5
9655
9656 function Generic_Parent_Type
9657 (N : Node_Id) return Node_Id; -- Node4
9658
9659 function Handled_Statement_Sequence
9660 (N : Node_Id) return Node_Id; -- Node4
9661
9662 function Handler_List_Entry
9663 (N : Node_Id) return Node_Id; -- Node2
9664
9665 function Has_Created_Identifier
9666 (N : Node_Id) return Boolean; -- Flag15
9667
9668 function Has_Dereference_Action
9669 (N : Node_Id) return Boolean; -- Flag13
9670
9671 function Has_Dynamic_Length_Check
9672 (N : Node_Id) return Boolean; -- Flag10
9673
9674 function Has_Dynamic_Range_Check
9675 (N : Node_Id) return Boolean; -- Flag12
9676
9677 function Has_Init_Expression
9678 (N : Node_Id) return Boolean; -- Flag14
9679
9680 function Has_Local_Raise
9681 (N : Node_Id) return Boolean; -- Flag8
9682
9683 function Has_No_Elaboration_Code
9684 (N : Node_Id) return Boolean; -- Flag17
9685
9686 function Has_Pragma_Suppress_All
9687 (N : Node_Id) return Boolean; -- Flag14
9688
9689 function Has_Private_View
9690 (N : Node_Id) return Boolean; -- Flag11
9691
9692 function Has_Relative_Deadline_Pragma
9693 (N : Node_Id) return Boolean; -- Flag9
9694
9695 function Has_Self_Reference
9696 (N : Node_Id) return Boolean; -- Flag13
9697
9698 function Has_SP_Choice
9699 (N : Node_Id) return Boolean; -- Flag15
9700
9701 function Has_Storage_Size_Pragma
9702 (N : Node_Id) return Boolean; -- Flag5
9703
9704 function Has_Target_Names
9705 (N : Node_Id) return Boolean; -- Flag8
9706
9707 function Has_Wide_Character
9708 (N : Node_Id) return Boolean; -- Flag11
9709
9710 function Has_Wide_Wide_Character
9711 (N : Node_Id) return Boolean; -- Flag13
9712
9713 function Header_Size_Added
9714 (N : Node_Id) return Boolean; -- Flag11
9715
9716 function Hidden_By_Use_Clause
9717 (N : Node_Id) return Elist_Id; -- Elist5
9718
9719 function High_Bound
9720 (N : Node_Id) return Node_Id; -- Node2
9721
9722 function Identifier
9723 (N : Node_Id) return Node_Id; -- Node1
9724
9725 function Interface_List
9726 (N : Node_Id) return List_Id; -- List2
9727
9728 function Interface_Present
9729 (N : Node_Id) return Boolean; -- Flag16
9730
9731 function Implicit_With
9732 (N : Node_Id) return Boolean; -- Flag16
9733
9734 function Import_Interface_Present
9735 (N : Node_Id) return Boolean; -- Flag16
9736
9737 function In_Present
9738 (N : Node_Id) return Boolean; -- Flag15
9739
9740 function Includes_Infinities
9741 (N : Node_Id) return Boolean; -- Flag11
9742
9743 function Incomplete_View
9744 (N : Node_Id) return Node_Id; -- Node2
9745
9746 function Inherited_Discriminant
9747 (N : Node_Id) return Boolean; -- Flag13
9748
9749 function Instance_Spec
9750 (N : Node_Id) return Node_Id; -- Node5
9751
9752 function Intval
9753 (N : Node_Id) return Uint; -- Uint3
9754
9755 function Is_Abort_Block
9756 (N : Node_Id) return Boolean; -- Flag4
9757
9758 function Is_Accessibility_Actual
9759 (N : Node_Id) return Boolean; -- Flag13
9760
9761 function Is_Analyzed_Pragma
9762 (N : Node_Id) return Boolean; -- Flag5
9763
9764 function Is_Asynchronous_Call_Block
9765 (N : Node_Id) return Boolean; -- Flag7
9766
9767 function Is_Boolean_Aspect
9768 (N : Node_Id) return Boolean; -- Flag16
9769
9770 function Is_Checked
9771 (N : Node_Id) return Boolean; -- Flag11
9772
9773 function Is_Checked_Ghost_Pragma
9774 (N : Node_Id) return Boolean; -- Flag3
9775
9776 function Is_Component_Left_Opnd
9777 (N : Node_Id) return Boolean; -- Flag13
9778
9779 function Is_Component_Right_Opnd
9780 (N : Node_Id) return Boolean; -- Flag14
9781
9782 function Is_Controlling_Actual
9783 (N : Node_Id) return Boolean; -- Flag16
9784
9785 function Is_Declaration_Level_Node
9786 (N : Node_Id) return Boolean; -- Flag5
9787
9788 function Is_Delayed_Aspect
9789 (N : Node_Id) return Boolean; -- Flag14
9790
9791 function Is_Disabled
9792 (N : Node_Id) return Boolean; -- Flag15
9793
9794 function Is_Dispatching_Call
9795 (N : Node_Id) return Boolean; -- Flag6
9796
9797 function Is_Dynamic_Coextension
9798 (N : Node_Id) return Boolean; -- Flag18
9799
9800 function Is_Effective_Use_Clause
9801 (N : Node_Id) return Boolean; -- Flag1
9802
9803 function Is_Elaboration_Checks_OK_Node
9804 (N : Node_Id) return Boolean; -- Flag1
9805
9806 function Is_Elaboration_Code
9807 (N : Node_Id) return Boolean; -- Flag9
9808
9809 function Is_Elaboration_Warnings_OK_Node
9810 (N : Node_Id) return Boolean; -- Flag3
9811
9812 function Is_Elsif
9813 (N : Node_Id) return Boolean; -- Flag13
9814
9815 function Is_Entry_Barrier_Function
9816 (N : Node_Id) return Boolean; -- Flag8
9817
9818 function Is_Expanded_Build_In_Place_Call
9819 (N : Node_Id) return Boolean; -- Flag11
9820
9821 function Is_Expanded_Contract
9822 (N : Node_Id) return Boolean; -- Flag1
9823
9824 function Is_Finalization_Wrapper
9825 (N : Node_Id) return Boolean; -- Flag9
9826
9827 function Is_Folded_In_Parser
9828 (N : Node_Id) return Boolean; -- Flag4
9829
9830 function Is_Generic_Contract_Pragma
9831 (N : Node_Id) return Boolean; -- Flag2
9832
9833 function Is_Homogeneous_Aggregate
9834 (N : Node_Id) return Boolean; -- Flag14
9835
9836 function Is_Ignored
9837 (N : Node_Id) return Boolean; -- Flag9
9838
9839 function Is_Ignored_Ghost_Pragma
9840 (N : Node_Id) return Boolean; -- Flag8
9841
9842 function Is_In_Discriminant_Check
9843 (N : Node_Id) return Boolean; -- Flag11
9844
9845 function Is_Inherited_Pragma
9846 (N : Node_Id) return Boolean; -- Flag4
9847
9848 function Is_Initialization_Block
9849 (N : Node_Id) return Boolean; -- Flag1
9850
9851 function Is_Known_Guaranteed_ABE
9852 (N : Node_Id) return Boolean; -- Flag18
9853
9854 function Is_Machine_Number
9855 (N : Node_Id) return Boolean; -- Flag11
9856
9857 function Is_Null_Loop
9858 (N : Node_Id) return Boolean; -- Flag16
9859
9860 function Is_OpenAcc_Environment
9861 (N : Node_Id) return Boolean; -- Flag13
9862
9863 function Is_OpenAcc_Loop
9864 (N : Node_Id) return Boolean; -- Flag14
9865
9866 function Is_Overloaded
9867 (N : Node_Id) return Boolean; -- Flag5
9868
9869 function Is_Power_Of_2_For_Shift
9870 (N : Node_Id) return Boolean; -- Flag13
9871
9872 function Is_Prefixed_Call
9873 (N : Node_Id) return Boolean; -- Flag17
9874
9875 function Is_Protected_Subprogram_Body
9876 (N : Node_Id) return Boolean; -- Flag7
9877
9878 function Is_Qualified_Universal_Literal
9879 (N : Node_Id) return Boolean; -- Flag4
9880
9881 function Is_Read
9882 (N : Node_Id) return Boolean; -- Flag4
9883
9884 function Is_Source_Call
9885 (N : Node_Id) return Boolean; -- Flag4
9886
9887 function Is_SPARK_Mode_On_Node
9888 (N : Node_Id) return Boolean; -- Flag2
9889
9890 function Is_Static_Coextension
9891 (N : Node_Id) return Boolean; -- Flag14
9892
9893 function Is_Static_Expression
9894 (N : Node_Id) return Boolean; -- Flag6
9895
9896 function Is_Subprogram_Descriptor
9897 (N : Node_Id) return Boolean; -- Flag16
9898
9899 function Is_Task_Allocation_Block
9900 (N : Node_Id) return Boolean; -- Flag6
9901
9902 function Is_Task_Body_Procedure
9903 (N : Node_Id) return Boolean; -- Flag1
9904
9905 function Is_Task_Master
9906 (N : Node_Id) return Boolean; -- Flag5
9907
9908 function Is_Write
9909 (N : Node_Id) return Boolean; -- Flag5
9910
9911 function Iteration_Scheme
9912 (N : Node_Id) return Node_Id; -- Node2
9913
9914 function Iterator_Specification
9915 (N : Node_Id) return Node_Id; -- Node2
9916
9917 function Itype
9918 (N : Node_Id) return Entity_Id; -- Node1
9919
9920 function Kill_Range_Check
9921 (N : Node_Id) return Boolean; -- Flag11
9922
9923 function Label_Construct
9924 (N : Node_Id) return Node_Id; -- Node2
9925
9926 function Left_Opnd
9927 (N : Node_Id) return Node_Id; -- Node2
9928
9929 function Last_Bit
9930 (N : Node_Id) return Node_Id; -- Node4
9931
9932 function Last_Name
9933 (N : Node_Id) return Boolean; -- Flag6
9934
9935 function Library_Unit
9936 (N : Node_Id) return Node_Id; -- Node4
9937
9938 function Limited_View_Installed
9939 (N : Node_Id) return Boolean; -- Flag18
9940
9941 function Limited_Present
9942 (N : Node_Id) return Boolean; -- Flag17
9943
9944 function Literals
9945 (N : Node_Id) return List_Id; -- List1
9946
9947 function Local_Raise_Not_OK
9948 (N : Node_Id) return Boolean; -- Flag7
9949
9950 function Local_Raise_Statements
9951 (N : Node_Id) return Elist_Id; -- Elist1
9952
9953 function Loop_Actions
9954 (N : Node_Id) return List_Id; -- List2
9955
9956 function Loop_Parameter_Specification
9957 (N : Node_Id) return Node_Id; -- Node4
9958
9959 function Low_Bound
9960 (N : Node_Id) return Node_Id; -- Node1
9961
9962 function Mod_Clause
9963 (N : Node_Id) return Node_Id; -- Node2
9964
9965 function More_Ids
9966 (N : Node_Id) return Boolean; -- Flag5
9967
9968 function Must_Be_Byte_Aligned
9969 (N : Node_Id) return Boolean; -- Flag14
9970
9971 function Must_Not_Freeze
9972 (N : Node_Id) return Boolean; -- Flag8
9973
9974 function Must_Not_Override
9975 (N : Node_Id) return Boolean; -- Flag15
9976
9977 function Must_Override
9978 (N : Node_Id) return Boolean; -- Flag14
9979
9980 function Name
9981 (N : Node_Id) return Node_Id; -- Node2
9982
9983 function Names
9984 (N : Node_Id) return List_Id; -- List2
9985
9986 function Next_Entity
9987 (N : Node_Id) return Node_Id; -- Node2
9988
9989 function Next_Exit_Statement
9990 (N : Node_Id) return Node_Id; -- Node3
9991
9992 function Next_Implicit_With
9993 (N : Node_Id) return Node_Id; -- Node3
9994
9995 function Next_Named_Actual
9996 (N : Node_Id) return Node_Id; -- Node4
9997
9998 function Next_Pragma
9999 (N : Node_Id) return Node_Id; -- Node1
10000
10001 function Next_Rep_Item
10002 (N : Node_Id) return Node_Id; -- Node5
10003
10004 function Next_Use_Clause
10005 (N : Node_Id) return Node_Id; -- Node3
10006
10007 function No_Ctrl_Actions
10008 (N : Node_Id) return Boolean; -- Flag7
10009
10010 function No_Elaboration_Check
10011 (N : Node_Id) return Boolean; -- Flag4
10012
10013 function No_Entities_Ref_In_Spec
10014 (N : Node_Id) return Boolean; -- Flag8
10015
10016 function No_Initialization
10017 (N : Node_Id) return Boolean; -- Flag13
10018
10019 function No_Minimize_Eliminate
10020 (N : Node_Id) return Boolean; -- Flag17
10021
10022 function No_Side_Effect_Removal
10023 (N : Node_Id) return Boolean; -- Flag17
10024
10025 function No_Truncation
10026 (N : Node_Id) return Boolean; -- Flag17
10027
10028 function Null_Excluding_Subtype
10029 (N : Node_Id) return Boolean; -- Flag16
10030
10031 function Null_Exclusion_Present
10032 (N : Node_Id) return Boolean; -- Flag11
10033
10034 function Null_Exclusion_In_Return_Present
10035 (N : Node_Id) return Boolean; -- Flag14
10036
10037 function Null_Present
10038 (N : Node_Id) return Boolean; -- Flag13
10039
10040 function Null_Record_Present
10041 (N : Node_Id) return Boolean; -- Flag17
10042
10043 function Null_Statement
10044 (N : Node_Id) return Node_Id; -- Node2
10045
10046 function Object_Definition
10047 (N : Node_Id) return Node_Id; -- Node4
10048
10049 function Of_Present
10050 (N : Node_Id) return Boolean; -- Flag16
10051
10052 function Original_Discriminant
10053 (N : Node_Id) return Node_Id; -- Node2
10054
10055 function Original_Entity
10056 (N : Node_Id) return Entity_Id; -- Node2
10057
10058 function Others_Discrete_Choices
10059 (N : Node_Id) return List_Id; -- List1
10060
10061 function Out_Present
10062 (N : Node_Id) return Boolean; -- Flag17
10063
10064 function Parameter_Associations
10065 (N : Node_Id) return List_Id; -- List3
10066
10067 function Parameter_Specifications
10068 (N : Node_Id) return List_Id; -- List3
10069
10070 function Parameter_Type
10071 (N : Node_Id) return Node_Id; -- Node2
10072
10073 function Parent_Spec
10074 (N : Node_Id) return Node_Id; -- Node4
10075
10076 function Parent_With
10077 (N : Node_Id) return Boolean; -- Flag1
10078
10079 function Position
10080 (N : Node_Id) return Node_Id; -- Node2
10081
10082 function Pragma_Argument_Associations
10083 (N : Node_Id) return List_Id; -- List2
10084
10085 function Pragma_Identifier
10086 (N : Node_Id) return Node_Id; -- Node4
10087
10088 function Pragmas_After
10089 (N : Node_Id) return List_Id; -- List5
10090
10091 function Pragmas_Before
10092 (N : Node_Id) return List_Id; -- List4
10093
10094 function Pre_Post_Conditions
10095 (N : Node_Id) return Node_Id; -- Node1
10096
10097 function Prefix
10098 (N : Node_Id) return Node_Id; -- Node3
10099
10100 function Premature_Use
10101 (N : Node_Id) return Node_Id; -- Node5
10102
10103 function Present_Expr
10104 (N : Node_Id) return Uint; -- Uint3
10105
10106 function Prev_Ids
10107 (N : Node_Id) return Boolean; -- Flag6
10108
10109 function Prev_Use_Clause
10110 (N : Node_Id) return Node_Id; -- Node1
10111
10112 function Print_In_Hex
10113 (N : Node_Id) return Boolean; -- Flag13
10114
10115 function Private_Declarations
10116 (N : Node_Id) return List_Id; -- List3
10117
10118 function Private_Present
10119 (N : Node_Id) return Boolean; -- Flag15
10120
10121 function Procedure_To_Call
10122 (N : Node_Id) return Node_Id; -- Node2
10123
10124 function Proper_Body
10125 (N : Node_Id) return Node_Id; -- Node1
10126
10127 function Protected_Definition
10128 (N : Node_Id) return Node_Id; -- Node3
10129
10130 function Protected_Present
10131 (N : Node_Id) return Boolean; -- Flag6
10132
10133 function Raises_Constraint_Error
10134 (N : Node_Id) return Boolean; -- Flag7
10135
10136 function Range_Constraint
10137 (N : Node_Id) return Node_Id; -- Node4
10138
10139 function Range_Expression
10140 (N : Node_Id) return Node_Id; -- Node4
10141
10142 function Real_Range_Specification
10143 (N : Node_Id) return Node_Id; -- Node4
10144
10145 function Realval
10146 (N : Node_Id) return Ureal; -- Ureal3
10147
10148 function Reason
10149 (N : Node_Id) return Uint; -- Uint3
10150
10151 function Record_Extension_Part
10152 (N : Node_Id) return Node_Id; -- Node3
10153
10154 function Redundant_Use
10155 (N : Node_Id) return Boolean; -- Flag13
10156
10157 function Renaming_Exception
10158 (N : Node_Id) return Node_Id; -- Node2
10159
10160 function Result_Definition
10161 (N : Node_Id) return Node_Id; -- Node4
10162
10163 function Return_Object_Declarations
10164 (N : Node_Id) return List_Id; -- List3
10165
10166 function Return_Statement_Entity
10167 (N : Node_Id) return Node_Id; -- Node5
10168
10169 function Reverse_Present
10170 (N : Node_Id) return Boolean; -- Flag15
10171
10172 function Right_Opnd
10173 (N : Node_Id) return Node_Id; -- Node3
10174
10175 function Rounded_Result
10176 (N : Node_Id) return Boolean; -- Flag18
10177
10178 function Save_Invocation_Graph_Of_Body
10179 (N : Node_Id) return Boolean; -- Flag1
10180
10181 function SCIL_Controlling_Tag
10182 (N : Node_Id) return Node_Id; -- Node5
10183
10184 function SCIL_Entity
10185 (N : Node_Id) return Node_Id; -- Node4
10186
10187 function SCIL_Tag_Value
10188 (N : Node_Id) return Node_Id; -- Node5
10189
10190 function SCIL_Target_Prim
10191 (N : Node_Id) return Node_Id; -- Node2
10192
10193 function Scope
10194 (N : Node_Id) return Node_Id; -- Node3
10195
10196 function Select_Alternatives
10197 (N : Node_Id) return List_Id; -- List1
10198
10199 function Selector_Name
10200 (N : Node_Id) return Node_Id; -- Node2
10201
10202 function Selector_Names
10203 (N : Node_Id) return List_Id; -- List1
10204
10205 function Shift_Count_OK
10206 (N : Node_Id) return Boolean; -- Flag4
10207
10208 function Source_Type
10209 (N : Node_Id) return Entity_Id; -- Node1
10210
10211 function Specification
10212 (N : Node_Id) return Node_Id; -- Node1
10213
10214 function Split_PPC
10215 (N : Node_Id) return Boolean; -- Flag17
10216
10217 function Statements
10218 (N : Node_Id) return List_Id; -- List3
10219
10220 function Storage_Pool
10221 (N : Node_Id) return Node_Id; -- Node1
10222
10223 function Subpool_Handle_Name
10224 (N : Node_Id) return Node_Id; -- Node4
10225
10226 function Strval
10227 (N : Node_Id) return String_Id; -- Str3
10228
10229 function Subtype_Indication
10230 (N : Node_Id) return Node_Id; -- Node5
10231
10232 function Subtype_Mark
10233 (N : Node_Id) return Node_Id; -- Node4
10234
10235 function Subtype_Marks
10236 (N : Node_Id) return List_Id; -- List2
10237
10238 function Suppress_Assignment_Checks
10239 (N : Node_Id) return Boolean; -- Flag18
10240
10241 function Suppress_Loop_Warnings
10242 (N : Node_Id) return Boolean; -- Flag17
10243
10244 function Synchronized_Present
10245 (N : Node_Id) return Boolean; -- Flag7
10246
10247 function Tagged_Present
10248 (N : Node_Id) return Boolean; -- Flag15
10249
10250 function Target
10251 (N : Node_Id) return Entity_Id; -- Node1
10252
10253 function Target_Type
10254 (N : Node_Id) return Entity_Id; -- Node2
10255
10256 function Task_Definition
10257 (N : Node_Id) return Node_Id; -- Node3
10258
10259 function Task_Present
10260 (N : Node_Id) return Boolean; -- Flag5
10261
10262 function Then_Actions
10263 (N : Node_Id) return List_Id; -- List2
10264
10265 function Then_Statements
10266 (N : Node_Id) return List_Id; -- List2
10267
10268 function Triggering_Alternative
10269 (N : Node_Id) return Node_Id; -- Node1
10270
10271 function Triggering_Statement
10272 (N : Node_Id) return Node_Id; -- Node1
10273
10274 function TSS_Elist
10275 (N : Node_Id) return Elist_Id; -- Elist3
10276
10277 function Type_Definition
10278 (N : Node_Id) return Node_Id; -- Node3
10279
10280 function Uneval_Old_Accept
10281 (N : Node_Id) return Boolean; -- Flag7
10282
10283 function Uneval_Old_Warn
10284 (N : Node_Id) return Boolean; -- Flag18
10285
10286 function Unit
10287 (N : Node_Id) return Node_Id; -- Node2
10288
10289 function Unknown_Discriminants_Present
10290 (N : Node_Id) return Boolean; -- Flag13
10291
10292 function Unreferenced_In_Spec
10293 (N : Node_Id) return Boolean; -- Flag7
10294
10295 function Variant_Part
10296 (N : Node_Id) return Node_Id; -- Node4
10297
10298 function Variants
10299 (N : Node_Id) return List_Id; -- List1
10300
10301 function Visible_Declarations
10302 (N : Node_Id) return List_Id; -- List2
10303
10304 function Uninitialized_Variable
10305 (N : Node_Id) return Node_Id; -- Node3
10306
10307 function Used_Operations
10308 (N : Node_Id) return Elist_Id; -- Elist2
10309
10310 function Was_Attribute_Reference
10311 (N : Node_Id) return Boolean; -- Flag2
10312
10313 function Was_Expression_Function
10314 (N : Node_Id) return Boolean; -- Flag18
10315
10316 function Was_Originally_Stub
10317 (N : Node_Id) return Boolean; -- Flag13
10318
10319 -- End functions (note used by xsinfo utility program to end processing)
10320
10321 ----------------------------
10322 -- Node Update Procedures --
10323 ----------------------------
10324
10325 -- These are the corresponding node update routines, which again provide
10326 -- a high level logical access with type checking. In addition to setting
10327 -- the indicated field of the node N to the given Val, in the case of
10328 -- tree pointers (List1-4), the parent pointer of the Val node is set to
10329 -- point back to node N. This automates the setting of the parent pointer.
10330
10331 -- WARNING: There is a matching C declaration of a few subprograms in fe.h
10332
10333 procedure Set_Abort_Present
10334 (N : Node_Id; Val : Boolean := True); -- Flag15
10335
10336 procedure Set_Abortable_Part
10337 (N : Node_Id; Val : Node_Id); -- Node2
10338
10339 procedure Set_Abstract_Present
10340 (N : Node_Id; Val : Boolean := True); -- Flag4
10341
10342 procedure Set_Accept_Handler_Records
10343 (N : Node_Id; Val : List_Id); -- List5
10344
10345 procedure Set_Accept_Statement
10346 (N : Node_Id; Val : Node_Id); -- Node2
10347
10348 procedure Set_Access_Definition
10349 (N : Node_Id; Val : Node_Id); -- Node3
10350
10351 procedure Set_Access_To_Subprogram_Definition
10352 (N : Node_Id; Val : Node_Id); -- Node3
10353
10354 procedure Set_Access_Types_To_Process
10355 (N : Node_Id; Val : Elist_Id); -- Elist2
10356
10357 procedure Set_Actions
10358 (N : Node_Id; Val : List_Id); -- List1
10359
10360 procedure Set_Activation_Chain_Entity
10361 (N : Node_Id; Val : Node_Id); -- Node3
10362
10363 procedure Set_Acts_As_Spec
10364 (N : Node_Id; Val : Boolean := True); -- Flag4
10365
10366 procedure Set_Actual_Designated_Subtype
10367 (N : Node_Id; Val : Node_Id); -- Node4
10368
10369 procedure Set_Address_Warning_Posted
10370 (N : Node_Id; Val : Boolean := True); -- Flag18
10371
10372 procedure Set_Aggregate_Bounds
10373 (N : Node_Id; Val : Node_Id); -- Node3
10374
10375 procedure Set_Aliased_Present
10376 (N : Node_Id; Val : Boolean := True); -- Flag4
10377
10378 procedure Set_Alloc_For_BIP_Return
10379 (N : Node_Id; Val : Boolean := True); -- Flag1
10380
10381 procedure Set_All_Others
10382 (N : Node_Id; Val : Boolean := True); -- Flag11
10383
10384 procedure Set_All_Present
10385 (N : Node_Id; Val : Boolean := True); -- Flag15
10386
10387 procedure Set_Alternatives
10388 (N : Node_Id; Val : List_Id); -- List4
10389
10390 procedure Set_Ancestor_Part
10391 (N : Node_Id; Val : Node_Id); -- Node3
10392
10393 procedure Set_Atomic_Sync_Required
10394 (N : Node_Id; Val : Boolean := True); -- Flag14
10395
10396 procedure Set_Array_Aggregate
10397 (N : Node_Id; Val : Node_Id); -- Node3
10398
10399 procedure Set_Aspect_On_Partial_View
10400 (N : Node_Id; Val : Boolean := True); -- Flag18
10401
10402 procedure Set_Aspect_Rep_Item
10403 (N : Node_Id; Val : Node_Id); -- Node2
10404
10405 procedure Set_Assignment_OK
10406 (N : Node_Id; Val : Boolean := True); -- Flag15
10407
10408 procedure Set_Associated_Node
10409 (N : Node_Id; Val : Node_Id); -- Node4
10410
10411 procedure Set_Attribute_Name
10412 (N : Node_Id; Val : Name_Id); -- Name2
10413
10414 procedure Set_At_End_Proc
10415 (N : Node_Id; Val : Node_Id); -- Node1
10416
10417 procedure Set_Aux_Decls_Node
10418 (N : Node_Id; Val : Node_Id); -- Node5
10419
10420 procedure Set_Backwards_OK
10421 (N : Node_Id; Val : Boolean := True); -- Flag6
10422
10423 procedure Set_Bad_Is_Detected
10424 (N : Node_Id; Val : Boolean := True); -- Flag15
10425
10426 procedure Set_Body_Required
10427 (N : Node_Id; Val : Boolean := True); -- Flag13
10428
10429 procedure Set_Body_To_Inline
10430 (N : Node_Id; Val : Node_Id); -- Node3
10431
10432 procedure Set_Box_Present
10433 (N : Node_Id; Val : Boolean := True); -- Flag15
10434
10435 procedure Set_By_Ref
10436 (N : Node_Id; Val : Boolean := True); -- Flag5
10437
10438 procedure Set_Char_Literal_Value
10439 (N : Node_Id; Val : Uint); -- Uint2
10440
10441 procedure Set_Chars
10442 (N : Node_Id; Val : Name_Id); -- Name1
10443
10444 procedure Set_Check_Address_Alignment
10445 (N : Node_Id; Val : Boolean := True); -- Flag11
10446
10447 procedure Set_Choice_Parameter
10448 (N : Node_Id; Val : Node_Id); -- Node2
10449
10450 procedure Set_Choices
10451 (N : Node_Id; Val : List_Id); -- List1
10452
10453 procedure Set_Class_Present
10454 (N : Node_Id; Val : Boolean := True); -- Flag6
10455
10456 procedure Set_Classifications
10457 (N : Node_Id; Val : Node_Id); -- Node3
10458
10459 procedure Set_Cleanup_Actions
10460 (N : Node_Id; Val : List_Id); -- List5
10461
10462 procedure Set_Comes_From_Extended_Return_Statement
10463 (N : Node_Id; Val : Boolean := True); -- Flag18
10464
10465 procedure Set_Compile_Time_Known_Aggregate
10466 (N : Node_Id; Val : Boolean := True); -- Flag18
10467
10468 procedure Set_Component_Associations
10469 (N : Node_Id; Val : List_Id); -- List2
10470
10471 procedure Set_Component_Clauses
10472 (N : Node_Id; Val : List_Id); -- List3
10473
10474 procedure Set_Component_Definition
10475 (N : Node_Id; Val : Node_Id); -- Node4
10476
10477 procedure Set_Component_Items
10478 (N : Node_Id; Val : List_Id); -- List3
10479
10480 procedure Set_Component_List
10481 (N : Node_Id; Val : Node_Id); -- Node1
10482
10483 procedure Set_Component_Name
10484 (N : Node_Id; Val : Node_Id); -- Node1
10485
10486 procedure Set_Componentwise_Assignment
10487 (N : Node_Id; Val : Boolean := True); -- Flag14
10488
10489 procedure Set_Condition
10490 (N : Node_Id; Val : Node_Id); -- Node1
10491
10492 procedure Set_Condition_Actions
10493 (N : Node_Id; Val : List_Id); -- List3
10494
10495 procedure Set_Config_Pragmas
10496 (N : Node_Id; Val : List_Id); -- List4
10497
10498 procedure Set_Constant_Present
10499 (N : Node_Id; Val : Boolean := True); -- Flag17
10500
10501 procedure Set_Constraint
10502 (N : Node_Id; Val : Node_Id); -- Node3
10503
10504 procedure Set_Constraints
10505 (N : Node_Id; Val : List_Id); -- List1
10506
10507 procedure Set_Context_Installed
10508 (N : Node_Id; Val : Boolean := True); -- Flag13
10509
10510 procedure Set_Context_Items
10511 (N : Node_Id; Val : List_Id); -- List1
10512
10513 procedure Set_Context_Pending
10514 (N : Node_Id; Val : Boolean := True); -- Flag16
10515
10516 procedure Set_Contract_Test_Cases
10517 (N : Node_Id; Val : Node_Id); -- Node2
10518
10519 procedure Set_Controlling_Argument
10520 (N : Node_Id; Val : Node_Id); -- Node1
10521
10522 procedure Set_Conversion_OK
10523 (N : Node_Id; Val : Boolean := True); -- Flag14
10524
10525 procedure Set_Convert_To_Return_False
10526 (N : Node_Id; Val : Boolean := True); -- Flag13
10527
10528 procedure Set_Corresponding_Aspect
10529 (N : Node_Id; Val : Node_Id); -- Node3
10530
10531 procedure Set_Corresponding_Body
10532 (N : Node_Id; Val : Node_Id); -- Node5
10533
10534 procedure Set_Corresponding_Formal_Spec
10535 (N : Node_Id; Val : Node_Id); -- Node3
10536
10537 procedure Set_Corresponding_Generic_Association
10538 (N : Node_Id; Val : Node_Id); -- Node5
10539
10540 procedure Set_Corresponding_Integer_Value
10541 (N : Node_Id; Val : Uint); -- Uint4
10542
10543 procedure Set_Corresponding_Spec
10544 (N : Node_Id; Val : Entity_Id); -- Node5
10545
10546 procedure Set_Corresponding_Spec_Of_Stub
10547 (N : Node_Id; Val : Node_Id); -- Node2
10548
10549 procedure Set_Corresponding_Stub
10550 (N : Node_Id; Val : Node_Id); -- Node3
10551
10552 procedure Set_Dcheck_Function
10553 (N : Node_Id; Val : Entity_Id); -- Node5
10554
10555 procedure Set_Declarations
10556 (N : Node_Id; Val : List_Id); -- List2
10557
10558 procedure Set_Default_Expression
10559 (N : Node_Id; Val : Node_Id); -- Node5
10560
10561 procedure Set_Default_Storage_Pool
10562 (N : Node_Id; Val : Node_Id); -- Node3
10563
10564 procedure Set_Default_Name
10565 (N : Node_Id; Val : Node_Id); -- Node2
10566
10567 procedure Set_Defining_Identifier
10568 (N : Node_Id; Val : Entity_Id); -- Node1
10569
10570 procedure Set_Defining_Unit_Name
10571 (N : Node_Id; Val : Node_Id); -- Node1
10572
10573 procedure Set_Delay_Alternative
10574 (N : Node_Id; Val : Node_Id); -- Node4
10575
10576 procedure Set_Delay_Statement
10577 (N : Node_Id; Val : Node_Id); -- Node2
10578
10579 procedure Set_Delta_Expression
10580 (N : Node_Id; Val : Node_Id); -- Node3
10581
10582 procedure Set_Digits_Expression
10583 (N : Node_Id; Val : Node_Id); -- Node2
10584
10585 procedure Set_Discr_Check_Funcs_Built
10586 (N : Node_Id; Val : Boolean := True); -- Flag11
10587
10588 procedure Set_Discrete_Choices
10589 (N : Node_Id; Val : List_Id); -- List4
10590
10591 procedure Set_Discrete_Range
10592 (N : Node_Id; Val : Node_Id); -- Node4
10593
10594 procedure Set_Discrete_Subtype_Definition
10595 (N : Node_Id; Val : Node_Id); -- Node4
10596
10597 procedure Set_Discrete_Subtype_Definitions
10598 (N : Node_Id; Val : List_Id); -- List2
10599
10600 procedure Set_Discriminant_Specifications
10601 (N : Node_Id; Val : List_Id); -- List4
10602
10603 procedure Set_Discriminant_Type
10604 (N : Node_Id; Val : Node_Id); -- Node5
10605
10606 procedure Set_Do_Accessibility_Check
10607 (N : Node_Id; Val : Boolean := True); -- Flag13
10608
10609 procedure Set_Do_Discriminant_Check
10610 (N : Node_Id; Val : Boolean := True); -- Flag3
10611
10612 procedure Set_Do_Division_Check
10613 (N : Node_Id; Val : Boolean := True); -- Flag13
10614
10615 procedure Set_Do_Length_Check
10616 (N : Node_Id; Val : Boolean := True); -- Flag4
10617
10618 procedure Set_Do_Overflow_Check
10619 (N : Node_Id; Val : Boolean := True); -- Flag17
10620
10621 procedure Set_Do_Range_Check
10622 (N : Node_Id; Val : Boolean := True); -- Flag9
10623
10624 procedure Set_Do_Storage_Check
10625 (N : Node_Id; Val : Boolean := True); -- Flag17
10626
10627 procedure Set_Do_Tag_Check
10628 (N : Node_Id; Val : Boolean := True); -- Flag13
10629
10630 procedure Set_Elaborate_All_Desirable
10631 (N : Node_Id; Val : Boolean := True); -- Flag9
10632
10633 procedure Set_Elaborate_All_Present
10634 (N : Node_Id; Val : Boolean := True); -- Flag14
10635
10636 procedure Set_Elaborate_Desirable
10637 (N : Node_Id; Val : Boolean := True); -- Flag11
10638
10639 procedure Set_Elaborate_Present
10640 (N : Node_Id; Val : Boolean := True); -- Flag4
10641
10642 procedure Set_Else_Actions
10643 (N : Node_Id; Val : List_Id); -- List3
10644
10645 procedure Set_Else_Statements
10646 (N : Node_Id; Val : List_Id); -- List4
10647
10648 procedure Set_Elsif_Parts
10649 (N : Node_Id; Val : List_Id); -- List3
10650
10651 procedure Set_Enclosing_Variant
10652 (N : Node_Id; Val : Node_Id); -- Node2
10653
10654 procedure Set_End_Label
10655 (N : Node_Id; Val : Node_Id); -- Node4
10656
10657 procedure Set_End_Span
10658 (N : Node_Id; Val : Uint); -- Uint5
10659
10660 procedure Set_Entity
10661 (N : Node_Id; Val : Node_Id); -- Node4
10662
10663 procedure Set_Entry_Body_Formal_Part
10664 (N : Node_Id; Val : Node_Id); -- Node5
10665
10666 procedure Set_Entry_Call_Alternative
10667 (N : Node_Id; Val : Node_Id); -- Node1
10668
10669 procedure Set_Entry_Call_Statement
10670 (N : Node_Id; Val : Node_Id); -- Node1
10671
10672 procedure Set_Entry_Direct_Name
10673 (N : Node_Id; Val : Node_Id); -- Node1
10674
10675 procedure Set_Entry_Index
10676 (N : Node_Id; Val : Node_Id); -- Node5
10677
10678 procedure Set_Entry_Index_Specification
10679 (N : Node_Id; Val : Node_Id); -- Node4
10680
10681 procedure Set_Etype
10682 (N : Node_Id; Val : Node_Id); -- Node5
10683
10684 procedure Set_Exception_Choices
10685 (N : Node_Id; Val : List_Id); -- List4
10686
10687 procedure Set_Exception_Handlers
10688 (N : Node_Id; Val : List_Id); -- List5
10689
10690 procedure Set_Exception_Junk
10691 (N : Node_Id; Val : Boolean := True); -- Flag8
10692
10693 procedure Set_Exception_Label
10694 (N : Node_Id; Val : Node_Id); -- Node5
10695
10696 procedure Set_Expansion_Delayed
10697 (N : Node_Id; Val : Boolean := True); -- Flag11
10698
10699 procedure Set_Explicit_Actual_Parameter
10700 (N : Node_Id; Val : Node_Id); -- Node3
10701
10702 procedure Set_Explicit_Generic_Actual_Parameter
10703 (N : Node_Id; Val : Node_Id); -- Node1
10704
10705 procedure Set_Expression
10706 (N : Node_Id; Val : Node_Id); -- Node3
10707
10708 procedure Set_Expression_Copy
10709 (N : Node_Id; Val : Node_Id); -- Node2
10710
10711 procedure Set_Expressions
10712 (N : Node_Id; Val : List_Id); -- List1
10713
10714 procedure Set_First_Bit
10715 (N : Node_Id; Val : Node_Id); -- Node3
10716
10717 procedure Set_First_Inlined_Subprogram
10718 (N : Node_Id; Val : Entity_Id); -- Node3
10719
10720 procedure Set_First_Name
10721 (N : Node_Id; Val : Boolean := True); -- Flag5
10722
10723 procedure Set_First_Named_Actual
10724 (N : Node_Id; Val : Node_Id); -- Node4
10725
10726 procedure Set_First_Real_Statement
10727 (N : Node_Id; Val : Node_Id); -- Node2
10728
10729 procedure Set_First_Subtype_Link
10730 (N : Node_Id; Val : Entity_Id); -- Node5
10731
10732 procedure Set_Float_Truncate
10733 (N : Node_Id; Val : Boolean := True); -- Flag11
10734
10735 procedure Set_Formal_Type_Definition
10736 (N : Node_Id; Val : Node_Id); -- Node3
10737
10738 procedure Set_Forwards_OK
10739 (N : Node_Id; Val : Boolean := True); -- Flag5
10740
10741 procedure Set_From_Aspect_Specification
10742 (N : Node_Id; Val : Boolean := True); -- Flag13
10743
10744 procedure Set_From_At_End
10745 (N : Node_Id; Val : Boolean := True); -- Flag4
10746
10747 procedure Set_From_At_Mod
10748 (N : Node_Id; Val : Boolean := True); -- Flag4
10749
10750 procedure Set_From_Conditional_Expression
10751 (N : Node_Id; Val : Boolean := True); -- Flag1
10752
10753 procedure Set_From_Default
10754 (N : Node_Id; Val : Boolean := True); -- Flag6
10755
10756 procedure Set_Generalized_Indexing
10757 (N : Node_Id; Val : Node_Id); -- Node4
10758
10759 procedure Set_Generic_Associations
10760 (N : Node_Id; Val : List_Id); -- List3
10761
10762 procedure Set_Generic_Formal_Declarations
10763 (N : Node_Id; Val : List_Id); -- List2
10764
10765 procedure Set_Generic_Parent
10766 (N : Node_Id; Val : Node_Id); -- Node5
10767
10768 procedure Set_Generic_Parent_Type
10769 (N : Node_Id; Val : Node_Id); -- Node4
10770
10771 procedure Set_Handled_Statement_Sequence
10772 (N : Node_Id; Val : Node_Id); -- Node4
10773
10774 procedure Set_Handler_List_Entry
10775 (N : Node_Id; Val : Node_Id); -- Node2
10776
10777 procedure Set_Has_Created_Identifier
10778 (N : Node_Id; Val : Boolean := True); -- Flag15
10779
10780 procedure Set_Has_Dereference_Action
10781 (N : Node_Id; Val : Boolean := True); -- Flag13
10782
10783 procedure Set_Has_Dynamic_Length_Check
10784 (N : Node_Id; Val : Boolean := True); -- Flag10
10785
10786 procedure Set_Has_Dynamic_Range_Check
10787 (N : Node_Id; Val : Boolean := True); -- Flag12
10788
10789 procedure Set_Has_Init_Expression
10790 (N : Node_Id; Val : Boolean := True); -- Flag14
10791
10792 procedure Set_Has_Local_Raise
10793 (N : Node_Id; Val : Boolean := True); -- Flag8
10794
10795 procedure Set_Has_No_Elaboration_Code
10796 (N : Node_Id; Val : Boolean := True); -- Flag17
10797
10798 procedure Set_Has_Pragma_Suppress_All
10799 (N : Node_Id; Val : Boolean := True); -- Flag14
10800
10801 procedure Set_Has_Private_View
10802 (N : Node_Id; Val : Boolean := True); -- Flag11
10803
10804 procedure Set_Has_Relative_Deadline_Pragma
10805 (N : Node_Id; Val : Boolean := True); -- Flag9
10806
10807 procedure Set_Has_Self_Reference
10808 (N : Node_Id; Val : Boolean := True); -- Flag13
10809
10810 procedure Set_Has_SP_Choice
10811 (N : Node_Id; Val : Boolean := True); -- Flag15
10812
10813 procedure Set_Has_Storage_Size_Pragma
10814 (N : Node_Id; Val : Boolean := True); -- Flag5
10815
10816 procedure Set_Has_Target_Names
10817 (N : Node_Id; Val : Boolean := True); -- Flag8
10818
10819 procedure Set_Has_Wide_Character
10820 (N : Node_Id; Val : Boolean := True); -- Flag11
10821
10822 procedure Set_Has_Wide_Wide_Character
10823 (N : Node_Id; Val : Boolean := True); -- Flag13
10824
10825 procedure Set_Header_Size_Added
10826 (N : Node_Id; Val : Boolean := True); -- Flag11
10827
10828 procedure Set_Hidden_By_Use_Clause
10829 (N : Node_Id; Val : Elist_Id); -- Elist5
10830
10831 procedure Set_High_Bound
10832 (N : Node_Id; Val : Node_Id); -- Node2
10833
10834 procedure Set_Identifier
10835 (N : Node_Id; Val : Node_Id); -- Node1
10836
10837 procedure Set_Interface_List
10838 (N : Node_Id; Val : List_Id); -- List2
10839
10840 procedure Set_Interface_Present
10841 (N : Node_Id; Val : Boolean := True); -- Flag16
10842
10843 procedure Set_Implicit_With
10844 (N : Node_Id; Val : Boolean := True); -- Flag16
10845
10846 procedure Set_Import_Interface_Present
10847 (N : Node_Id; Val : Boolean := True); -- Flag16
10848
10849 procedure Set_In_Present
10850 (N : Node_Id; Val : Boolean := True); -- Flag15
10851
10852 procedure Set_Includes_Infinities
10853 (N : Node_Id; Val : Boolean := True); -- Flag11
10854
10855 procedure Set_Incomplete_View
10856 (N : Node_Id; Val : Node_Id); -- Node2
10857
10858 procedure Set_Inherited_Discriminant
10859 (N : Node_Id; Val : Boolean := True); -- Flag13
10860
10861 procedure Set_Instance_Spec
10862 (N : Node_Id; Val : Node_Id); -- Node5
10863
10864 procedure Set_Intval
10865 (N : Node_Id; Val : Uint); -- Uint3
10866
10867 procedure Set_Is_Abort_Block
10868 (N : Node_Id; Val : Boolean := True); -- Flag4
10869
10870 procedure Set_Is_Accessibility_Actual
10871 (N : Node_Id; Val : Boolean := True); -- Flag13
10872
10873 procedure Set_Is_Analyzed_Pragma
10874 (N : Node_Id; Val : Boolean := True); -- Flag5
10875
10876 procedure Set_Is_Asynchronous_Call_Block
10877 (N : Node_Id; Val : Boolean := True); -- Flag7
10878
10879 procedure Set_Is_Boolean_Aspect
10880 (N : Node_Id; Val : Boolean := True); -- Flag16
10881
10882 procedure Set_Is_Checked
10883 (N : Node_Id; Val : Boolean := True); -- Flag11
10884
10885 procedure Set_Is_Checked_Ghost_Pragma
10886 (N : Node_Id; Val : Boolean := True); -- Flag3
10887
10888 procedure Set_Is_Component_Left_Opnd
10889 (N : Node_Id; Val : Boolean := True); -- Flag13
10890
10891 procedure Set_Is_Component_Right_Opnd
10892 (N : Node_Id; Val : Boolean := True); -- Flag14
10893
10894 procedure Set_Is_Controlling_Actual
10895 (N : Node_Id; Val : Boolean := True); -- Flag16
10896
10897 procedure Set_Is_Declaration_Level_Node
10898 (N : Node_Id; Val : Boolean := True); -- Flag5
10899
10900 procedure Set_Is_Delayed_Aspect
10901 (N : Node_Id; Val : Boolean := True); -- Flag14
10902
10903 procedure Set_Is_Disabled
10904 (N : Node_Id; Val : Boolean := True); -- Flag15
10905
10906 procedure Set_Is_Dispatching_Call
10907 (N : Node_Id; Val : Boolean := True); -- Flag6
10908
10909 procedure Set_Is_Dynamic_Coextension
10910 (N : Node_Id; Val : Boolean := True); -- Flag18
10911
10912 procedure Set_Is_Effective_Use_Clause
10913 (N : Node_Id; Val : Boolean := True); -- Flag1
10914
10915 procedure Set_Is_Elaboration_Checks_OK_Node
10916 (N : Node_Id; Val : Boolean := True); -- Flag1
10917
10918 procedure Set_Is_Elaboration_Code
10919 (N : Node_Id; Val : Boolean := True); -- Flag9
10920
10921 procedure Set_Is_Elaboration_Warnings_OK_Node
10922 (N : Node_Id; Val : Boolean := True); -- Flag3
10923
10924 procedure Set_Is_Elsif
10925 (N : Node_Id; Val : Boolean := True); -- Flag13
10926
10927 procedure Set_Is_Entry_Barrier_Function
10928 (N : Node_Id; Val : Boolean := True); -- Flag8
10929
10930 procedure Set_Is_Expanded_Build_In_Place_Call
10931 (N : Node_Id; Val : Boolean := True); -- Flag11
10932
10933 procedure Set_Is_Expanded_Contract
10934 (N : Node_Id; Val : Boolean := True); -- Flag1
10935
10936 procedure Set_Is_Finalization_Wrapper
10937 (N : Node_Id; Val : Boolean := True); -- Flag9
10938
10939 procedure Set_Is_Folded_In_Parser
10940 (N : Node_Id; Val : Boolean := True); -- Flag4
10941
10942 procedure Set_Is_Generic_Contract_Pragma
10943 (N : Node_Id; Val : Boolean := True); -- Flag2
10944
10945 procedure Set_Is_Homogeneous_Aggregate
10946 (N : Node_Id; Val : Boolean := True); -- Flag14
10947
10948 procedure Set_Is_Ignored
10949 (N : Node_Id; Val : Boolean := True); -- Flag9
10950
10951 procedure Set_Is_Ignored_Ghost_Pragma
10952 (N : Node_Id; Val : Boolean := True); -- Flag8
10953
10954 procedure Set_Is_In_Discriminant_Check
10955 (N : Node_Id; Val : Boolean := True); -- Flag11
10956
10957 procedure Set_Is_Inherited_Pragma
10958 (N : Node_Id; Val : Boolean := True); -- Flag4
10959
10960 procedure Set_Is_Initialization_Block
10961 (N : Node_Id; Val : Boolean := True); -- Flag1
10962
10963 procedure Set_Is_Known_Guaranteed_ABE
10964 (N : Node_Id; Val : Boolean := True); -- Flag18
10965
10966 procedure Set_Is_Machine_Number
10967 (N : Node_Id; Val : Boolean := True); -- Flag11
10968
10969 procedure Set_Is_Null_Loop
10970 (N : Node_Id; Val : Boolean := True); -- Flag16
10971
10972 procedure Set_Is_OpenAcc_Environment
10973 (N : Node_Id; Val : Boolean := True); -- Flag13
10974
10975 procedure Set_Is_OpenAcc_Loop
10976 (N : Node_Id; Val : Boolean := True); -- Flag14
10977
10978 procedure Set_Is_Overloaded
10979 (N : Node_Id; Val : Boolean := True); -- Flag5
10980
10981 procedure Set_Is_Power_Of_2_For_Shift
10982 (N : Node_Id; Val : Boolean := True); -- Flag13
10983
10984 procedure Set_Is_Prefixed_Call
10985 (N : Node_Id; Val : Boolean := True); -- Flag17
10986
10987 procedure Set_Is_Protected_Subprogram_Body
10988 (N : Node_Id; Val : Boolean := True); -- Flag7
10989
10990 procedure Set_Is_Qualified_Universal_Literal
10991 (N : Node_Id; Val : Boolean := True); -- Flag4
10992
10993 procedure Set_Is_Read
10994 (N : Node_Id; Val : Boolean := True); -- Flag4
10995
10996 procedure Set_Is_Source_Call
10997 (N : Node_Id; Val : Boolean := True); -- Flag4
10998
10999 procedure Set_Is_SPARK_Mode_On_Node
11000 (N : Node_Id; Val : Boolean := True); -- Flag2
11001
11002 procedure Set_Is_Static_Coextension
11003 (N : Node_Id; Val : Boolean := True); -- Flag14
11004
11005 procedure Set_Is_Static_Expression
11006 (N : Node_Id; Val : Boolean := True); -- Flag6
11007
11008 procedure Set_Is_Subprogram_Descriptor
11009 (N : Node_Id; Val : Boolean := True); -- Flag16
11010
11011 procedure Set_Is_Task_Allocation_Block
11012 (N : Node_Id; Val : Boolean := True); -- Flag6
11013
11014 procedure Set_Is_Task_Body_Procedure
11015 (N : Node_Id; Val : Boolean := True); -- Flag1
11016
11017 procedure Set_Is_Task_Master
11018 (N : Node_Id; Val : Boolean := True); -- Flag5
11019
11020 procedure Set_Is_Write
11021 (N : Node_Id; Val : Boolean := True); -- Flag5
11022
11023 procedure Set_Iteration_Scheme
11024 (N : Node_Id; Val : Node_Id); -- Node2
11025
11026 procedure Set_Iterator_Specification
11027 (N : Node_Id; Val : Node_Id); -- Node2
11028
11029 procedure Set_Itype
11030 (N : Node_Id; Val : Entity_Id); -- Node1
11031
11032 procedure Set_Kill_Range_Check
11033 (N : Node_Id; Val : Boolean := True); -- Flag11
11034
11035 procedure Set_Last_Bit
11036 (N : Node_Id; Val : Node_Id); -- Node4
11037
11038 procedure Set_Last_Name
11039 (N : Node_Id; Val : Boolean := True); -- Flag6
11040
11041 procedure Set_Library_Unit
11042 (N : Node_Id; Val : Node_Id); -- Node4
11043
11044 procedure Set_Label_Construct
11045 (N : Node_Id; Val : Node_Id); -- Node2
11046
11047 procedure Set_Left_Opnd
11048 (N : Node_Id; Val : Node_Id); -- Node2
11049
11050 procedure Set_Limited_View_Installed
11051 (N : Node_Id; Val : Boolean := True); -- Flag18
11052
11053 procedure Set_Limited_Present
11054 (N : Node_Id; Val : Boolean := True); -- Flag17
11055
11056 procedure Set_Literals
11057 (N : Node_Id; Val : List_Id); -- List1
11058
11059 procedure Set_Local_Raise_Not_OK
11060 (N : Node_Id; Val : Boolean := True); -- Flag7
11061
11062 procedure Set_Local_Raise_Statements
11063 (N : Node_Id; Val : Elist_Id); -- Elist1
11064
11065 procedure Set_Loop_Actions
11066 (N : Node_Id; Val : List_Id); -- List2
11067
11068 procedure Set_Loop_Parameter_Specification
11069 (N : Node_Id; Val : Node_Id); -- Node4
11070
11071 procedure Set_Low_Bound
11072 (N : Node_Id; Val : Node_Id); -- Node1
11073
11074 procedure Set_Mod_Clause
11075 (N : Node_Id; Val : Node_Id); -- Node2
11076
11077 procedure Set_More_Ids
11078 (N : Node_Id; Val : Boolean := True); -- Flag5
11079
11080 procedure Set_Must_Be_Byte_Aligned
11081 (N : Node_Id; Val : Boolean := True); -- Flag14
11082
11083 procedure Set_Must_Not_Freeze
11084 (N : Node_Id; Val : Boolean := True); -- Flag8
11085
11086 procedure Set_Must_Not_Override
11087 (N : Node_Id; Val : Boolean := True); -- Flag15
11088
11089 procedure Set_Must_Override
11090 (N : Node_Id; Val : Boolean := True); -- Flag14
11091
11092 procedure Set_Name
11093 (N : Node_Id; Val : Node_Id); -- Node2
11094
11095 procedure Set_Names
11096 (N : Node_Id; Val : List_Id); -- List2
11097
11098 procedure Set_Next_Entity
11099 (N : Node_Id; Val : Node_Id); -- Node2
11100
11101 procedure Set_Next_Exit_Statement
11102 (N : Node_Id; Val : Node_Id); -- Node3
11103
11104 procedure Set_Next_Implicit_With
11105 (N : Node_Id; Val : Node_Id); -- Node3
11106
11107 procedure Set_Next_Named_Actual
11108 (N : Node_Id; Val : Node_Id); -- Node4
11109
11110 procedure Set_Next_Pragma
11111 (N : Node_Id; Val : Node_Id); -- Node1
11112
11113 procedure Set_Next_Rep_Item
11114 (N : Node_Id; Val : Node_Id); -- Node5
11115
11116 procedure Set_Next_Use_Clause
11117 (N : Node_Id; Val : Node_Id); -- Node3
11118
11119 procedure Set_No_Ctrl_Actions
11120 (N : Node_Id; Val : Boolean := True); -- Flag7
11121
11122 procedure Set_No_Elaboration_Check
11123 (N : Node_Id; Val : Boolean := True); -- Flag4
11124
11125 procedure Set_No_Entities_Ref_In_Spec
11126 (N : Node_Id; Val : Boolean := True); -- Flag8
11127
11128 procedure Set_No_Initialization
11129 (N : Node_Id; Val : Boolean := True); -- Flag13
11130
11131 procedure Set_No_Minimize_Eliminate
11132 (N : Node_Id; Val : Boolean := True); -- Flag17
11133
11134 procedure Set_No_Side_Effect_Removal
11135 (N : Node_Id; Val : Boolean := True); -- Flag17
11136
11137 procedure Set_No_Truncation
11138 (N : Node_Id; Val : Boolean := True); -- Flag17
11139
11140 procedure Set_Null_Excluding_Subtype
11141 (N : Node_Id; Val : Boolean := True); -- Flag16
11142
11143 procedure Set_Null_Exclusion_Present
11144 (N : Node_Id; Val : Boolean := True); -- Flag11
11145
11146 procedure Set_Null_Exclusion_In_Return_Present
11147 (N : Node_Id; Val : Boolean := True); -- Flag14
11148
11149 procedure Set_Null_Present
11150 (N : Node_Id; Val : Boolean := True); -- Flag13
11151
11152 procedure Set_Null_Record_Present
11153 (N : Node_Id; Val : Boolean := True); -- Flag17
11154
11155 procedure Set_Null_Statement
11156 (N : Node_Id; Val : Node_Id); -- Node2
11157
11158 procedure Set_Object_Definition
11159 (N : Node_Id; Val : Node_Id); -- Node4
11160
11161 procedure Set_Of_Present
11162 (N : Node_Id; Val : Boolean := True); -- Flag16
11163
11164 procedure Set_Original_Discriminant
11165 (N : Node_Id; Val : Node_Id); -- Node2
11166
11167 procedure Set_Original_Entity
11168 (N : Node_Id; Val : Entity_Id); -- Node2
11169
11170 procedure Set_Others_Discrete_Choices
11171 (N : Node_Id; Val : List_Id); -- List1
11172
11173 procedure Set_Out_Present
11174 (N : Node_Id; Val : Boolean := True); -- Flag17
11175
11176 procedure Set_Parameter_Associations
11177 (N : Node_Id; Val : List_Id); -- List3
11178
11179 procedure Set_Parameter_Specifications
11180 (N : Node_Id; Val : List_Id); -- List3
11181
11182 procedure Set_Parameter_Type
11183 (N : Node_Id; Val : Node_Id); -- Node2
11184
11185 procedure Set_Parent_Spec
11186 (N : Node_Id; Val : Node_Id); -- Node4
11187
11188 procedure Set_Parent_With
11189 (N : Node_Id; Val : Boolean := True); -- Flag1
11190
11191 procedure Set_Position
11192 (N : Node_Id; Val : Node_Id); -- Node2
11193
11194 procedure Set_Pragma_Argument_Associations
11195 (N : Node_Id; Val : List_Id); -- List2
11196
11197 procedure Set_Pragma_Identifier
11198 (N : Node_Id; Val : Node_Id); -- Node4
11199
11200 procedure Set_Pragmas_After
11201 (N : Node_Id; Val : List_Id); -- List5
11202
11203 procedure Set_Pragmas_Before
11204 (N : Node_Id; Val : List_Id); -- List4
11205
11206 procedure Set_Pre_Post_Conditions
11207 (N : Node_Id; Val : Node_Id); -- Node1
11208
11209 procedure Set_Prefix
11210 (N : Node_Id; Val : Node_Id); -- Node3
11211
11212 procedure Set_Premature_Use
11213 (N : Node_Id; Val : Node_Id); -- Node5
11214
11215 procedure Set_Present_Expr
11216 (N : Node_Id; Val : Uint); -- Uint3
11217
11218 procedure Set_Prev_Ids
11219 (N : Node_Id; Val : Boolean := True); -- Flag6
11220
11221 procedure Set_Prev_Use_Clause
11222 (N : Node_Id; Val : Node_Id); -- Node1
11223
11224 procedure Set_Print_In_Hex
11225 (N : Node_Id; Val : Boolean := True); -- Flag13
11226
11227 procedure Set_Private_Declarations
11228 (N : Node_Id; Val : List_Id); -- List3
11229
11230 procedure Set_Private_Present
11231 (N : Node_Id; Val : Boolean := True); -- Flag15
11232
11233 procedure Set_Procedure_To_Call
11234 (N : Node_Id; Val : Node_Id); -- Node2
11235
11236 procedure Set_Proper_Body
11237 (N : Node_Id; Val : Node_Id); -- Node1
11238
11239 procedure Set_Protected_Definition
11240 (N : Node_Id; Val : Node_Id); -- Node3
11241
11242 procedure Set_Protected_Present
11243 (N : Node_Id; Val : Boolean := True); -- Flag6
11244
11245 procedure Set_Raises_Constraint_Error
11246 (N : Node_Id; Val : Boolean := True); -- Flag7
11247
11248 procedure Set_Range_Constraint
11249 (N : Node_Id; Val : Node_Id); -- Node4
11250
11251 procedure Set_Range_Expression
11252 (N : Node_Id; Val : Node_Id); -- Node4
11253
11254 procedure Set_Real_Range_Specification
11255 (N : Node_Id; Val : Node_Id); -- Node4
11256
11257 procedure Set_Realval
11258 (N : Node_Id; Val : Ureal); -- Ureal3
11259
11260 procedure Set_Reason
11261 (N : Node_Id; Val : Uint); -- Uint3
11262
11263 procedure Set_Record_Extension_Part
11264 (N : Node_Id; Val : Node_Id); -- Node3
11265
11266 procedure Set_Redundant_Use
11267 (N : Node_Id; Val : Boolean := True); -- Flag13
11268
11269 procedure Set_Renaming_Exception
11270 (N : Node_Id; Val : Node_Id); -- Node2
11271
11272 procedure Set_Result_Definition
11273 (N : Node_Id; Val : Node_Id); -- Node4
11274
11275 procedure Set_Return_Object_Declarations
11276 (N : Node_Id; Val : List_Id); -- List3
11277
11278 procedure Set_Return_Statement_Entity
11279 (N : Node_Id; Val : Node_Id); -- Node5
11280
11281 procedure Set_Reverse_Present
11282 (N : Node_Id; Val : Boolean := True); -- Flag15
11283
11284 procedure Set_Right_Opnd
11285 (N : Node_Id; Val : Node_Id); -- Node3
11286
11287 procedure Set_Rounded_Result
11288 (N : Node_Id; Val : Boolean := True); -- Flag18
11289
11290 procedure Set_Save_Invocation_Graph_Of_Body
11291 (N : Node_Id; Val : Boolean := True); -- Flag1
11292
11293 procedure Set_SCIL_Controlling_Tag
11294 (N : Node_Id; Val : Node_Id); -- Node5
11295
11296 procedure Set_SCIL_Entity
11297 (N : Node_Id; Val : Node_Id); -- Node4
11298
11299 procedure Set_SCIL_Tag_Value
11300 (N : Node_Id; Val : Node_Id); -- Node5
11301
11302 procedure Set_SCIL_Target_Prim
11303 (N : Node_Id; Val : Node_Id); -- Node2
11304
11305 procedure Set_Scope
11306 (N : Node_Id; Val : Node_Id); -- Node3
11307
11308 procedure Set_Select_Alternatives
11309 (N : Node_Id; Val : List_Id); -- List1
11310
11311 procedure Set_Selector_Name
11312 (N : Node_Id; Val : Node_Id); -- Node2
11313
11314 procedure Set_Selector_Names
11315 (N : Node_Id; Val : List_Id); -- List1
11316
11317 procedure Set_Shift_Count_OK
11318 (N : Node_Id; Val : Boolean := True); -- Flag4
11319
11320 procedure Set_Source_Type
11321 (N : Node_Id; Val : Entity_Id); -- Node1
11322
11323 procedure Set_Specification
11324 (N : Node_Id; Val : Node_Id); -- Node1
11325
11326 procedure Set_Split_PPC
11327 (N : Node_Id; Val : Boolean); -- Flag17
11328
11329 procedure Set_Statements
11330 (N : Node_Id; Val : List_Id); -- List3
11331
11332 procedure Set_Storage_Pool
11333 (N : Node_Id; Val : Node_Id); -- Node1
11334
11335 procedure Set_Subpool_Handle_Name
11336 (N : Node_Id; Val : Node_Id); -- Node4
11337
11338 procedure Set_Strval
11339 (N : Node_Id; Val : String_Id); -- Str3
11340
11341 procedure Set_Subtype_Indication
11342 (N : Node_Id; Val : Node_Id); -- Node5
11343
11344 procedure Set_Subtype_Mark
11345 (N : Node_Id; Val : Node_Id); -- Node4
11346
11347 procedure Set_Subtype_Marks
11348 (N : Node_Id; Val : List_Id); -- List2
11349
11350 procedure Set_Suppress_Assignment_Checks
11351 (N : Node_Id; Val : Boolean := True); -- Flag18
11352
11353 procedure Set_Suppress_Loop_Warnings
11354 (N : Node_Id; Val : Boolean := True); -- Flag17
11355
11356 procedure Set_Synchronized_Present
11357 (N : Node_Id; Val : Boolean := True); -- Flag7
11358
11359 procedure Set_Tagged_Present
11360 (N : Node_Id; Val : Boolean := True); -- Flag15
11361
11362 procedure Set_Target
11363 (N : Node_Id; Val : Entity_Id); -- Node1
11364
11365 procedure Set_Target_Type
11366 (N : Node_Id; Val : Entity_Id); -- Node2
11367
11368 procedure Set_Task_Definition
11369 (N : Node_Id; Val : Node_Id); -- Node3
11370
11371 procedure Set_Task_Present
11372 (N : Node_Id; Val : Boolean := True); -- Flag5
11373
11374 procedure Set_Then_Actions
11375 (N : Node_Id; Val : List_Id); -- List2
11376
11377 procedure Set_Then_Statements
11378 (N : Node_Id; Val : List_Id); -- List2
11379
11380 procedure Set_Triggering_Alternative
11381 (N : Node_Id; Val : Node_Id); -- Node1
11382
11383 procedure Set_Triggering_Statement
11384 (N : Node_Id; Val : Node_Id); -- Node1
11385
11386 procedure Set_TSS_Elist
11387 (N : Node_Id; Val : Elist_Id); -- Elist3
11388
11389 procedure Set_Type_Definition
11390 (N : Node_Id; Val : Node_Id); -- Node3
11391
11392 procedure Set_Uneval_Old_Accept
11393 (N : Node_Id; Val : Boolean := True); -- Flag7
11394
11395 procedure Set_Uneval_Old_Warn
11396 (N : Node_Id; Val : Boolean := True); -- Flag18
11397
11398 procedure Set_Unit
11399 (N : Node_Id; Val : Node_Id); -- Node2
11400
11401 procedure Set_Unknown_Discriminants_Present
11402 (N : Node_Id; Val : Boolean := True); -- Flag13
11403
11404 procedure Set_Unreferenced_In_Spec
11405 (N : Node_Id; Val : Boolean := True); -- Flag7
11406
11407 procedure Set_Variant_Part
11408 (N : Node_Id; Val : Node_Id); -- Node4
11409
11410 procedure Set_Variants
11411 (N : Node_Id; Val : List_Id); -- List1
11412
11413 procedure Set_Visible_Declarations
11414 (N : Node_Id; Val : List_Id); -- List2
11415
11416 procedure Set_Uninitialized_Variable
11417 (N : Node_Id; Val : Node_Id); -- Node3
11418
11419 procedure Set_Used_Operations
11420 (N : Node_Id; Val : Elist_Id); -- Elist2
11421
11422 procedure Set_Was_Attribute_Reference
11423 (N : Node_Id; Val : Boolean := True); -- Flag2
11424
11425 procedure Set_Was_Expression_Function
11426 (N : Node_Id; Val : Boolean := True); -- Flag18
11427
11428 procedure Set_Was_Originally_Stub
11429 (N : Node_Id; Val : Boolean := True); -- Flag13
11430
11431 -------------------------
11432 -- Iterator Procedures --
11433 -------------------------
11434
11435 -- The call to Next_xxx (N) is equivalent to N := Next_xxx (N)
11436
11437 procedure Next_Entity (N : in out Node_Id);
11438 procedure Next_Named_Actual (N : in out Node_Id);
11439 procedure Next_Rep_Item (N : in out Node_Id);
11440 procedure Next_Use_Clause (N : in out Node_Id);
11441
11442 -------------------------------------------
11443 -- Miscellaneous Tree Access Subprograms --
11444 -------------------------------------------
11445
11446 function End_Location (N : Node_Id) return Source_Ptr;
11447 -- N is an N_If_Statement or N_Case_Statement node, and this function
11448 -- returns the location of the IF token in the END IF sequence by
11449 -- translating the value of the End_Span field.
11450
11451 -- WARNING: There is a matching C declaration of this subprogram in fe.h
11452
11453 procedure Set_End_Location (N : Node_Id; S : Source_Ptr);
11454 -- N is an N_If_Statement or N_Case_Statement node. This procedure sets
11455 -- the End_Span field to correspond to the given value S. In other words,
11456 -- End_Span is set to the difference between S and Sloc (N), the starting
11457 -- location.
11458
11459 function Get_Pragma_Arg (Arg : Node_Id) return Node_Id;
11460 -- Given an argument to a pragma Arg, this function returns the expression
11461 -- for the argument. This is Arg itself, or, in the case where Arg is a
11462 -- pragma argument association node, the expression from this node.
11463
11464 --------------------------------
11465 -- Node_Kind Membership Tests --
11466 --------------------------------
11467
11468 -- The following functions allow a convenient notation for testing whether
11469 -- a Node_Kind value matches any one of a list of possible values. In each
11470 -- case True is returned if the given T argument is equal to any of the V
11471 -- arguments. Note that there is a similar set of functions defined in
11472 -- Atree where the first argument is a Node_Id whose Nkind field is tested.
11473
11474 function Nkind_In
11475 (T : Node_Kind;
11476 V1 : Node_Kind;
11477 V2 : Node_Kind) return Boolean;
11478
11479 function Nkind_In
11480 (T : Node_Kind;
11481 V1 : Node_Kind;
11482 V2 : Node_Kind;
11483 V3 : Node_Kind) return Boolean;
11484
11485 function Nkind_In
11486 (T : Node_Kind;
11487 V1 : Node_Kind;
11488 V2 : Node_Kind;
11489 V3 : Node_Kind;
11490 V4 : Node_Kind) return Boolean;
11491
11492 function Nkind_In
11493 (T : Node_Kind;
11494 V1 : Node_Kind;
11495 V2 : Node_Kind;
11496 V3 : Node_Kind;
11497 V4 : Node_Kind;
11498 V5 : Node_Kind) return Boolean;
11499
11500 function Nkind_In
11501 (T : Node_Kind;
11502 V1 : Node_Kind;
11503 V2 : Node_Kind;
11504 V3 : Node_Kind;
11505 V4 : Node_Kind;
11506 V5 : Node_Kind;
11507 V6 : Node_Kind) return Boolean;
11508
11509 function Nkind_In
11510 (T : Node_Kind;
11511 V1 : Node_Kind;
11512 V2 : Node_Kind;
11513 V3 : Node_Kind;
11514 V4 : Node_Kind;
11515 V5 : Node_Kind;
11516 V6 : Node_Kind;
11517 V7 : Node_Kind) return Boolean;
11518
11519 function Nkind_In
11520 (T : Node_Kind;
11521 V1 : Node_Kind;
11522 V2 : Node_Kind;
11523 V3 : Node_Kind;
11524 V4 : Node_Kind;
11525 V5 : Node_Kind;
11526 V6 : Node_Kind;
11527 V7 : Node_Kind;
11528 V8 : Node_Kind) return Boolean;
11529
11530 function Nkind_In
11531 (T : Node_Kind;
11532 V1 : Node_Kind;
11533 V2 : Node_Kind;
11534 V3 : Node_Kind;
11535 V4 : Node_Kind;
11536 V5 : Node_Kind;
11537 V6 : Node_Kind;
11538 V7 : Node_Kind;
11539 V8 : Node_Kind;
11540 V9 : Node_Kind) return Boolean;
11541
11542 function Nkind_In
11543 (T : Node_Kind;
11544 V1 : Node_Kind;
11545 V2 : Node_Kind;
11546 V3 : Node_Kind;
11547 V4 : Node_Kind;
11548 V5 : Node_Kind;
11549 V6 : Node_Kind;
11550 V7 : Node_Kind;
11551 V8 : Node_Kind;
11552 V9 : Node_Kind;
11553 V10 : Node_Kind) return Boolean;
11554
11555 function Nkind_In
11556 (T : Node_Kind;
11557 V1 : Node_Kind;
11558 V2 : Node_Kind;
11559 V3 : Node_Kind;
11560 V4 : Node_Kind;
11561 V5 : Node_Kind;
11562 V6 : Node_Kind;
11563 V7 : Node_Kind;
11564 V8 : Node_Kind;
11565 V9 : Node_Kind;
11566 V10 : Node_Kind;
11567 V11 : Node_Kind) return Boolean;
11568
11569 -- 12..15-parameter versions are not yet needed
11570
11571 function Nkind_In
11572 (T : Node_Kind;
11573 V1 : Node_Kind;
11574 V2 : Node_Kind;
11575 V3 : Node_Kind;
11576 V4 : Node_Kind;
11577 V5 : Node_Kind;
11578 V6 : Node_Kind;
11579 V7 : Node_Kind;
11580 V8 : Node_Kind;
11581 V9 : Node_Kind;
11582 V10 : Node_Kind;
11583 V11 : Node_Kind;
11584 V12 : Node_Kind;
11585 V13 : Node_Kind;
11586 V14 : Node_Kind;
11587 V15 : Node_Kind;
11588 V16 : Node_Kind) return Boolean;
11589
11590 pragma Inline (Nkind_In);
11591 -- Inline all above functions
11592
11593 -----------------------
11594 -- Utility Functions --
11595 -----------------------
11596
11597 procedure Map_Pragma_Name (From, To : Name_Id);
11598 -- Used in the implementation of pragma Rename_Pragma. Maps pragma name
11599 -- From to pragma name To, so From can be used as a synonym for To.
11600
11601 Too_Many_Pragma_Mappings : exception;
11602 -- Raised if Map_Pragma_Name is called too many times. We expect that few
11603 -- programs will use it at all, and those that do will use it approximately
11604 -- once or twice.
11605
11606 function Pragma_Name (N : Node_Id) return Name_Id;
11607 -- Obtain the name of pragma N from the Chars field of its identifier. If
11608 -- the pragma has been renamed using Rename_Pragma, this routine returns
11609 -- the name of the renaming.
11610
11611 function Pragma_Name_Unmapped (N : Node_Id) return Name_Id;
11612 -- Obtain the name of pragma N from the Chars field of its identifier. This
11613 -- form of name extraction does not take into account renamings performed
11614 -- by Rename_Pragma.
11615
11616 -----------------------------
11617 -- Syntactic Parent Tables --
11618 -----------------------------
11619
11620 -- These tables show for each node, and for each of the five fields,
11621 -- whether the corresponding field is syntactic (True) or semantic (False).
11622 -- Unused entries are also set to False.
11623
11624 subtype Field_Num is Natural range 1 .. 5;
11625
11626 Is_Syntactic_Field : constant array (Node_Kind, Field_Num) of Boolean := (
11627
11628 -- Following entries can be built automatically from the sinfo sources
11629 -- using the makeisf utility (currently this program is in spitbol).
11630
11631 N_Identifier =>
11632 (1 => True, -- Chars (Name1)
11633 2 => False, -- Original_Discriminant (Node2-Sem)
11634 3 => False, -- unused
11635 4 => False, -- Entity (Node4-Sem)
11636 5 => False), -- Etype (Node5-Sem)
11637
11638 N_Integer_Literal =>
11639 (1 => False, -- unused
11640 2 => False, -- Original_Entity (Node2-Sem)
11641 3 => True, -- Intval (Uint3)
11642 4 => False, -- unused
11643 5 => False), -- Etype (Node5-Sem)
11644
11645 N_Real_Literal =>
11646 (1 => False, -- unused
11647 2 => False, -- Original_Entity (Node2-Sem)
11648 3 => True, -- Realval (Ureal3)
11649 4 => False, -- Corresponding_Integer_Value (Uint4-Sem)
11650 5 => False), -- Etype (Node5-Sem)
11651
11652 N_Character_Literal =>
11653 (1 => True, -- Chars (Name1)
11654 2 => True, -- Char_Literal_Value (Uint2)
11655 3 => False, -- unused
11656 4 => False, -- Entity (Node4-Sem)
11657 5 => False), -- Etype (Node5-Sem)
11658
11659 N_String_Literal =>
11660 (1 => False, -- unused
11661 2 => False, -- unused
11662 3 => True, -- Strval (Str3)
11663 4 => False, -- unused
11664 5 => False), -- Etype (Node5-Sem)
11665
11666 N_Pragma =>
11667 (1 => False, -- Next_Pragma (Node1-Sem)
11668 2 => True, -- Pragma_Argument_Associations (List2)
11669 3 => False, -- Corresponding_Aspect (Node3-Sem)
11670 4 => True, -- Pragma_Identifier (Node4)
11671 5 => False), -- Next_Rep_Item (Node5-Sem)
11672
11673 N_Pragma_Argument_Association =>
11674 (1 => True, -- Chars (Name1)
11675 2 => False, -- Expression_Copy (Node2-Sem)
11676 3 => True, -- Expression (Node3)
11677 4 => False, -- unused
11678 5 => False), -- unused
11679
11680 N_Defining_Identifier =>
11681 (1 => True, -- Chars (Name1)
11682 2 => False, -- Next_Entity (Node2-Sem)
11683 3 => False, -- Scope (Node3-Sem)
11684 4 => False, -- unused
11685 5 => False), -- Etype (Node5-Sem)
11686
11687 N_Full_Type_Declaration =>
11688 (1 => True, -- Defining_Identifier (Node1)
11689 2 => False, -- Incomplete_View (Node2-Sem)
11690 3 => True, -- Type_Definition (Node3)
11691 4 => True, -- Discriminant_Specifications (List4)
11692 5 => False), -- unused
11693
11694 N_Subtype_Declaration =>
11695 (1 => True, -- Defining_Identifier (Node1)
11696 2 => False, -- unused
11697 3 => False, -- unused
11698 4 => False, -- Generic_Parent_Type (Node4-Sem)
11699 5 => True), -- Subtype_Indication (Node5)
11700
11701 N_Subtype_Indication =>
11702 (1 => False, -- unused
11703 2 => False, -- unused
11704 3 => True, -- Constraint (Node3)
11705 4 => True, -- Subtype_Mark (Node4)
11706 5 => False), -- Etype (Node5-Sem)
11707
11708 N_Object_Declaration =>
11709 (1 => True, -- Defining_Identifier (Node1)
11710 2 => False, -- Handler_List_Entry (Node2-Sem)
11711 3 => True, -- Expression (Node3)
11712 4 => True, -- Object_Definition (Node4)
11713 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
11714
11715 N_Number_Declaration =>
11716 (1 => True, -- Defining_Identifier (Node1)
11717 2 => False, -- unused
11718 3 => True, -- Expression (Node3)
11719 4 => False, -- unused
11720 5 => False), -- unused
11721
11722 N_Derived_Type_Definition =>
11723 (1 => False, -- unused
11724 2 => True, -- Interface_List (List2)
11725 3 => True, -- Record_Extension_Part (Node3)
11726 4 => False, -- unused
11727 5 => True), -- Subtype_Indication (Node5)
11728
11729 N_Range_Constraint =>
11730 (1 => False, -- unused
11731 2 => False, -- unused
11732 3 => False, -- unused
11733 4 => True, -- Range_Expression (Node4)
11734 5 => False), -- unused
11735
11736 N_Range =>
11737 (1 => True, -- Low_Bound (Node1)
11738 2 => True, -- High_Bound (Node2)
11739 3 => False, -- unused
11740 4 => False, -- unused
11741 5 => False), -- Etype (Node5-Sem)
11742
11743 N_Enumeration_Type_Definition =>
11744 (1 => True, -- Literals (List1)
11745 2 => False, -- unused
11746 3 => False, -- unused
11747 4 => True, -- End_Label (Node4)
11748 5 => False), -- unused
11749
11750 N_Defining_Character_Literal =>
11751 (1 => True, -- Chars (Name1)
11752 2 => False, -- Next_Entity (Node2-Sem)
11753 3 => False, -- Scope (Node3-Sem)
11754 4 => False, -- unused
11755 5 => False), -- Etype (Node5-Sem)
11756
11757 N_Signed_Integer_Type_Definition =>
11758 (1 => True, -- Low_Bound (Node1)
11759 2 => True, -- High_Bound (Node2)
11760 3 => False, -- unused
11761 4 => False, -- unused
11762 5 => False), -- unused
11763
11764 N_Modular_Type_Definition =>
11765 (1 => False, -- unused
11766 2 => False, -- unused
11767 3 => True, -- Expression (Node3)
11768 4 => False, -- unused
11769 5 => False), -- unused
11770
11771 N_Floating_Point_Definition =>
11772 (1 => False, -- unused
11773 2 => True, -- Digits_Expression (Node2)
11774 3 => False, -- unused
11775 4 => True, -- Real_Range_Specification (Node4)
11776 5 => False), -- unused
11777
11778 N_Real_Range_Specification =>
11779 (1 => True, -- Low_Bound (Node1)
11780 2 => True, -- High_Bound (Node2)
11781 3 => False, -- unused
11782 4 => False, -- unused
11783 5 => False), -- unused
11784
11785 N_Ordinary_Fixed_Point_Definition =>
11786 (1 => False, -- unused
11787 2 => False, -- unused
11788 3 => True, -- Delta_Expression (Node3)
11789 4 => True, -- Real_Range_Specification (Node4)
11790 5 => False), -- unused
11791
11792 N_Decimal_Fixed_Point_Definition =>
11793 (1 => False, -- unused
11794 2 => True, -- Digits_Expression (Node2)
11795 3 => True, -- Delta_Expression (Node3)
11796 4 => True, -- Real_Range_Specification (Node4)
11797 5 => False), -- unused
11798
11799 N_Digits_Constraint =>
11800 (1 => False, -- unused
11801 2 => True, -- Digits_Expression (Node2)
11802 3 => False, -- unused
11803 4 => True, -- Range_Constraint (Node4)
11804 5 => False), -- unused
11805
11806 N_Unconstrained_Array_Definition =>
11807 (1 => False, -- unused
11808 2 => True, -- Subtype_Marks (List2)
11809 3 => False, -- unused
11810 4 => True, -- Component_Definition (Node4)
11811 5 => False), -- unused
11812
11813 N_Constrained_Array_Definition =>
11814 (1 => False, -- unused
11815 2 => True, -- Discrete_Subtype_Definitions (List2)
11816 3 => False, -- unused
11817 4 => True, -- Component_Definition (Node4)
11818 5 => False), -- unused
11819
11820 N_Component_Definition =>
11821 (1 => False, -- unused
11822 2 => False, -- unused
11823 3 => True, -- Access_Definition (Node3)
11824 4 => False, -- unused
11825 5 => True), -- Subtype_Indication (Node5)
11826
11827 N_Discriminant_Specification =>
11828 (1 => True, -- Defining_Identifier (Node1)
11829 2 => False, -- unused
11830 3 => True, -- Expression (Node3)
11831 4 => False, -- unused
11832 5 => True), -- Discriminant_Type (Node5)
11833
11834 N_Index_Or_Discriminant_Constraint =>
11835 (1 => True, -- Constraints (List1)
11836 2 => False, -- unused
11837 3 => False, -- unused
11838 4 => False, -- unused
11839 5 => False), -- unused
11840
11841 N_Discriminant_Association =>
11842 (1 => True, -- Selector_Names (List1)
11843 2 => False, -- unused
11844 3 => True, -- Expression (Node3)
11845 4 => False, -- unused
11846 5 => False), -- unused
11847
11848 N_Record_Definition =>
11849 (1 => True, -- Component_List (Node1)
11850 2 => True, -- Interface_List (List2)
11851 3 => False, -- unused
11852 4 => True, -- End_Label (Node4)
11853 5 => False), -- unused
11854
11855 N_Component_List =>
11856 (1 => False, -- unused
11857 2 => False, -- unused
11858 3 => True, -- Component_Items (List3)
11859 4 => True, -- Variant_Part (Node4)
11860 5 => False), -- unused
11861
11862 N_Component_Declaration =>
11863 (1 => True, -- Defining_Identifier (Node1)
11864 2 => False, -- unused
11865 3 => True, -- Expression (Node3)
11866 4 => True, -- Component_Definition (Node4)
11867 5 => False), -- unused
11868
11869 N_Variant_Part =>
11870 (1 => True, -- Variants (List1)
11871 2 => True, -- Name (Node2)
11872 3 => False, -- unused
11873 4 => False, -- unused
11874 5 => False), -- unused
11875
11876 N_Variant =>
11877 (1 => True, -- Component_List (Node1)
11878 2 => False, -- Enclosing_Variant (Node2-Sem)
11879 3 => False, -- Present_Expr (Uint3-Sem)
11880 4 => True, -- Discrete_Choices (List4)
11881 5 => False), -- Dcheck_Function (Node5-Sem)
11882
11883 N_Others_Choice =>
11884 (1 => False, -- Others_Discrete_Choices (List1-Sem)
11885 2 => False, -- unused
11886 3 => False, -- unused
11887 4 => False, -- unused
11888 5 => False), -- unused
11889
11890 N_Access_To_Object_Definition =>
11891 (1 => False, -- unused
11892 2 => False, -- unused
11893 3 => False, -- unused
11894 4 => False, -- unused
11895 5 => True), -- Subtype_Indication (Node5)
11896
11897 N_Access_Function_Definition =>
11898 (1 => False, -- unused
11899 2 => False, -- unused
11900 3 => True, -- Parameter_Specifications (List3)
11901 4 => True, -- Result_Definition (Node4)
11902 5 => False), -- unused
11903
11904 N_Access_Procedure_Definition =>
11905 (1 => False, -- unused
11906 2 => False, -- unused
11907 3 => True, -- Parameter_Specifications (List3)
11908 4 => False, -- unused
11909 5 => False), -- unused
11910
11911 N_Access_Definition =>
11912 (1 => False, -- unused
11913 2 => False, -- unused
11914 3 => True, -- Access_To_Subprogram_Definition (Node3)
11915 4 => True, -- Subtype_Mark (Node4)
11916 5 => False), -- unused
11917
11918 N_Incomplete_Type_Declaration =>
11919 (1 => True, -- Defining_Identifier (Node1)
11920 2 => False, -- unused
11921 3 => False, -- unused
11922 4 => True, -- Discriminant_Specifications (List4)
11923 5 => False), -- Premature_Use
11924
11925 N_Explicit_Dereference =>
11926 (1 => False, -- unused
11927 2 => False, -- unused
11928 3 => True, -- Prefix (Node3)
11929 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
11930 5 => False), -- Etype (Node5-Sem)
11931
11932 N_Indexed_Component =>
11933 (1 => True, -- Expressions (List1)
11934 2 => False, -- unused
11935 3 => True, -- Prefix (Node3)
11936 4 => False, -- Generalized_Indexing (Node4-Sem)
11937 5 => False), -- Etype (Node5-Sem)
11938
11939 N_Slice =>
11940 (1 => False, -- unused
11941 2 => False, -- unused
11942 3 => True, -- Prefix (Node3)
11943 4 => True, -- Discrete_Range (Node4)
11944 5 => False), -- Etype (Node5-Sem)
11945
11946 N_Selected_Component =>
11947 (1 => False, -- unused
11948 2 => True, -- Selector_Name (Node2)
11949 3 => True, -- Prefix (Node3)
11950 4 => False, -- unused
11951 5 => False), -- Etype (Node5-Sem)
11952
11953 N_Attribute_Reference =>
11954 (1 => True, -- Expressions (List1)
11955 2 => True, -- Attribute_Name (Name2)
11956 3 => True, -- Prefix (Node3)
11957 4 => False, -- Entity (Node4-Sem)
11958 5 => False), -- Etype (Node5-Sem)
11959
11960 N_Aggregate =>
11961 (1 => True, -- Expressions (List1)
11962 2 => True, -- Component_Associations (List2)
11963 3 => False, -- Aggregate_Bounds (Node3-Sem)
11964 4 => False, -- unused
11965 5 => False), -- Etype (Node5-Sem)
11966
11967 N_Component_Association =>
11968 (1 => True, -- Choices (List1)
11969 2 => False, -- Loop_Actions (List2-Sem)
11970 3 => True, -- Expression (Node3)
11971 4 => False, -- unused
11972 5 => False), -- unused
11973
11974 N_Iterated_Component_Association =>
11975 (1 => True, -- Defining_Identifier (Node1)
11976 2 => True, -- Loop_Actions (List2-Sem)
11977 3 => True, -- Expression (Node3)
11978 4 => True, -- Discrete_Choices (List4)
11979 5 => False), -- unused
11980
11981 N_Delta_Aggregate =>
11982 (1 => False, -- Expressions (List1-Sem)
11983 2 => True, -- Component_Associations (List2)
11984 3 => True, -- Expression (Node3)
11985 4 => False, -- Unused
11986 5 => False), -- Etype (Node5-Sem)
11987
11988 N_Extension_Aggregate =>
11989 (1 => True, -- Expressions (List1)
11990 2 => True, -- Component_Associations (List2)
11991 3 => True, -- Ancestor_Part (Node3)
11992 4 => False, -- unused
11993 5 => False), -- Etype (Node5-Sem)
11994
11995 N_Null =>
11996 (1 => False, -- unused
11997 2 => False, -- unused
11998 3 => False, -- unused
11999 4 => False, -- unused
12000 5 => False), -- Etype (Node5-Sem)
12001
12002 N_And_Then =>
12003 (1 => False, -- Actions (List1-Sem)
12004 2 => True, -- Left_Opnd (Node2)
12005 3 => True, -- Right_Opnd (Node3)
12006 4 => False, -- unused
12007 5 => False), -- Etype (Node5-Sem)
12008
12009 N_Or_Else =>
12010 (1 => False, -- Actions (List1-Sem)
12011 2 => True, -- Left_Opnd (Node2)
12012 3 => True, -- Right_Opnd (Node3)
12013 4 => False, -- unused
12014 5 => False), -- Etype (Node5-Sem)
12015
12016 N_In =>
12017 (1 => False, -- unused
12018 2 => True, -- Left_Opnd (Node2)
12019 3 => True, -- Right_Opnd (Node3)
12020 4 => True, -- Alternatives (List4)
12021 5 => False), -- Etype (Node5-Sem)
12022
12023 N_Not_In =>
12024 (1 => False, -- unused
12025 2 => True, -- Left_Opnd (Node2)
12026 3 => True, -- Right_Opnd (Node3)
12027 4 => True, -- Alternatives (List4)
12028 5 => False), -- Etype (Node5-Sem)
12029
12030 N_Op_And =>
12031 (1 => True, -- Chars (Name1)
12032 2 => True, -- Left_Opnd (Node2)
12033 3 => True, -- Right_Opnd (Node3)
12034 4 => False, -- Entity (Node4-Sem)
12035 5 => False), -- Etype (Node5-Sem)
12036
12037 N_Op_Or =>
12038 (1 => True, -- Chars (Name1)
12039 2 => True, -- Left_Opnd (Node2)
12040 3 => True, -- Right_Opnd (Node3)
12041 4 => False, -- Entity (Node4-Sem)
12042 5 => False), -- Etype (Node5-Sem)
12043
12044 N_Op_Xor =>
12045 (1 => True, -- Chars (Name1)
12046 2 => True, -- Left_Opnd (Node2)
12047 3 => True, -- Right_Opnd (Node3)
12048 4 => False, -- Entity (Node4-Sem)
12049 5 => False), -- Etype (Node5-Sem)
12050
12051 N_Op_Eq =>
12052 (1 => True, -- Chars (Name1)
12053 2 => True, -- Left_Opnd (Node2)
12054 3 => True, -- Right_Opnd (Node3)
12055 4 => False, -- Entity (Node4-Sem)
12056 5 => False), -- Etype (Node5-Sem)
12057
12058 N_Op_Ne =>
12059 (1 => True, -- Chars (Name1)
12060 2 => True, -- Left_Opnd (Node2)
12061 3 => True, -- Right_Opnd (Node3)
12062 4 => False, -- Entity (Node4-Sem)
12063 5 => False), -- Etype (Node5-Sem)
12064
12065 N_Op_Lt =>
12066 (1 => True, -- Chars (Name1)
12067 2 => True, -- Left_Opnd (Node2)
12068 3 => True, -- Right_Opnd (Node3)
12069 4 => False, -- Entity (Node4-Sem)
12070 5 => False), -- Etype (Node5-Sem)
12071
12072 N_Op_Le =>
12073 (1 => True, -- Chars (Name1)
12074 2 => True, -- Left_Opnd (Node2)
12075 3 => True, -- Right_Opnd (Node3)
12076 4 => False, -- Entity (Node4-Sem)
12077 5 => False), -- Etype (Node5-Sem)
12078
12079 N_Op_Gt =>
12080 (1 => True, -- Chars (Name1)
12081 2 => True, -- Left_Opnd (Node2)
12082 3 => True, -- Right_Opnd (Node3)
12083 4 => False, -- Entity (Node4-Sem)
12084 5 => False), -- Etype (Node5-Sem)
12085
12086 N_Op_Ge =>
12087 (1 => True, -- Chars (Name1)
12088 2 => True, -- Left_Opnd (Node2)
12089 3 => True, -- Right_Opnd (Node3)
12090 4 => False, -- Entity (Node4-Sem)
12091 5 => False), -- Etype (Node5-Sem)
12092
12093 N_Op_Add =>
12094 (1 => True, -- Chars (Name1)
12095 2 => True, -- Left_Opnd (Node2)
12096 3 => True, -- Right_Opnd (Node3)
12097 4 => False, -- Entity (Node4-Sem)
12098 5 => False), -- Etype (Node5-Sem)
12099
12100 N_Op_Subtract =>
12101 (1 => True, -- Chars (Name1)
12102 2 => True, -- Left_Opnd (Node2)
12103 3 => True, -- Right_Opnd (Node3)
12104 4 => False, -- Entity (Node4-Sem)
12105 5 => False), -- Etype (Node5-Sem)
12106
12107 N_Op_Concat =>
12108 (1 => True, -- Chars (Name1)
12109 2 => True, -- Left_Opnd (Node2)
12110 3 => True, -- Right_Opnd (Node3)
12111 4 => False, -- Entity (Node4-Sem)
12112 5 => False), -- Etype (Node5-Sem)
12113
12114 N_Op_Multiply =>
12115 (1 => True, -- Chars (Name1)
12116 2 => True, -- Left_Opnd (Node2)
12117 3 => True, -- Right_Opnd (Node3)
12118 4 => False, -- Entity (Node4-Sem)
12119 5 => False), -- Etype (Node5-Sem)
12120
12121 N_Op_Divide =>
12122 (1 => True, -- Chars (Name1)
12123 2 => True, -- Left_Opnd (Node2)
12124 3 => True, -- Right_Opnd (Node3)
12125 4 => False, -- Entity (Node4-Sem)
12126 5 => False), -- Etype (Node5-Sem)
12127
12128 N_Op_Mod =>
12129 (1 => True, -- Chars (Name1)
12130 2 => True, -- Left_Opnd (Node2)
12131 3 => True, -- Right_Opnd (Node3)
12132 4 => False, -- Entity (Node4-Sem)
12133 5 => False), -- Etype (Node5-Sem)
12134
12135 N_Op_Rem =>
12136 (1 => True, -- Chars (Name1)
12137 2 => True, -- Left_Opnd (Node2)
12138 3 => True, -- Right_Opnd (Node3)
12139 4 => False, -- Entity (Node4-Sem)
12140 5 => False), -- Etype (Node5-Sem)
12141
12142 N_Op_Expon =>
12143 (1 => True, -- Chars (Name1)
12144 2 => True, -- Left_Opnd (Node2)
12145 3 => True, -- Right_Opnd (Node3)
12146 4 => False, -- Entity (Node4-Sem)
12147 5 => False), -- Etype (Node5-Sem)
12148
12149 N_Op_Plus =>
12150 (1 => True, -- Chars (Name1)
12151 2 => False, -- unused
12152 3 => True, -- Right_Opnd (Node3)
12153 4 => False, -- Entity (Node4-Sem)
12154 5 => False), -- Etype (Node5-Sem)
12155
12156 N_Op_Minus =>
12157 (1 => True, -- Chars (Name1)
12158 2 => False, -- unused
12159 3 => True, -- Right_Opnd (Node3)
12160 4 => False, -- Entity (Node4-Sem)
12161 5 => False), -- Etype (Node5-Sem)
12162
12163 N_Op_Abs =>
12164 (1 => True, -- Chars (Name1)
12165 2 => False, -- unused
12166 3 => True, -- Right_Opnd (Node3)
12167 4 => False, -- Entity (Node4-Sem)
12168 5 => False), -- Etype (Node5-Sem)
12169
12170 N_Op_Not =>
12171 (1 => True, -- Chars (Name1)
12172 2 => False, -- unused
12173 3 => True, -- Right_Opnd (Node3)
12174 4 => False, -- Entity (Node4-Sem)
12175 5 => False), -- Etype (Node5-Sem)
12176
12177 N_Type_Conversion =>
12178 (1 => False, -- unused
12179 2 => False, -- unused
12180 3 => True, -- Expression (Node3)
12181 4 => True, -- Subtype_Mark (Node4)
12182 5 => False), -- Etype (Node5-Sem)
12183
12184 N_Qualified_Expression =>
12185 (1 => False, -- unused
12186 2 => False, -- unused
12187 3 => True, -- Expression (Node3)
12188 4 => True, -- Subtype_Mark (Node4)
12189 5 => False), -- Etype (Node5-Sem)
12190
12191 N_Quantified_Expression =>
12192 (1 => True, -- Condition (Node1)
12193 2 => True, -- Iterator_Specification (Node2)
12194 3 => False, -- unused
12195 4 => True, -- Loop_Parameter_Specification (Node4)
12196 5 => False), -- Etype (Node5-Sem)
12197
12198 N_Allocator =>
12199 (1 => False, -- Storage_Pool (Node1-Sem)
12200 2 => False, -- Procedure_To_Call (Node2-Sem)
12201 3 => True, -- Expression (Node3)
12202 4 => True, -- Subpool_Handle_Name (Node4)
12203 5 => False), -- Etype (Node5-Sem)
12204
12205 N_Null_Statement =>
12206 (1 => False, -- unused
12207 2 => False, -- unused
12208 3 => False, -- unused
12209 4 => False, -- unused
12210 5 => False), -- unused
12211
12212 N_Label =>
12213 (1 => True, -- Identifier (Node1)
12214 2 => False, -- unused
12215 3 => False, -- unused
12216 4 => False, -- unused
12217 5 => False), -- unused
12218
12219 N_Assignment_Statement =>
12220 (1 => False, -- unused
12221 2 => True, -- Name (Node2)
12222 3 => True, -- Expression (Node3)
12223 4 => False, -- unused
12224 5 => False), -- unused
12225
12226 N_Target_Name =>
12227 (1 => False, -- unused
12228 2 => False, -- unused
12229 3 => False, -- unused
12230 4 => False, -- unused
12231 5 => False), -- Etype (Node5-Sem)
12232
12233 N_If_Statement =>
12234 (1 => True, -- Condition (Node1)
12235 2 => True, -- Then_Statements (List2)
12236 3 => True, -- Elsif_Parts (List3)
12237 4 => True, -- Else_Statements (List4)
12238 5 => True), -- End_Span (Uint5)
12239
12240 N_Elsif_Part =>
12241 (1 => True, -- Condition (Node1)
12242 2 => True, -- Then_Statements (List2)
12243 3 => False, -- Condition_Actions (List3-Sem)
12244 4 => False, -- unused
12245 5 => False), -- unused
12246
12247 N_Case_Expression =>
12248 (1 => False, -- unused
12249 2 => False, -- unused
12250 3 => True, -- Expression (Node3)
12251 4 => True, -- Alternatives (List4)
12252 5 => False), -- unused
12253
12254 N_Case_Expression_Alternative =>
12255 (1 => False, -- Actions (List1-Sem)
12256 2 => False, -- unused
12257 3 => True, -- Expression (Node3)
12258 4 => True, -- Discrete_Choices (List4)
12259 5 => False), -- unused
12260
12261 N_Case_Statement =>
12262 (1 => False, -- unused
12263 2 => False, -- unused
12264 3 => True, -- Expression (Node3)
12265 4 => True, -- Alternatives (List4)
12266 5 => True), -- End_Span (Uint5)
12267
12268 N_Case_Statement_Alternative =>
12269 (1 => False, -- unused
12270 2 => False, -- unused
12271 3 => True, -- Statements (List3)
12272 4 => True, -- Discrete_Choices (List4)
12273 5 => False), -- unused
12274
12275 N_Loop_Statement =>
12276 (1 => True, -- Identifier (Node1)
12277 2 => True, -- Iteration_Scheme (Node2)
12278 3 => True, -- Statements (List3)
12279 4 => True, -- End_Label (Node4)
12280 5 => False), -- unused
12281
12282 N_Iteration_Scheme =>
12283 (1 => True, -- Condition (Node1)
12284 2 => True, -- Iterator_Specification (Node2)
12285 3 => False, -- Condition_Actions (List3-Sem)
12286 4 => True, -- Loop_Parameter_Specification (Node4)
12287 5 => False), -- unused
12288
12289 N_Loop_Parameter_Specification =>
12290 (1 => True, -- Defining_Identifier (Node1)
12291 2 => False, -- unused
12292 3 => False, -- unused
12293 4 => True, -- Discrete_Subtype_Definition (Node4)
12294 5 => False), -- unused
12295
12296 N_Iterator_Specification =>
12297 (1 => True, -- Defining_Identifier (Node1)
12298 2 => True, -- Name (Node2)
12299 3 => False, -- Unused
12300 4 => False, -- Unused
12301 5 => True), -- Subtype_Indication (Node5)
12302
12303 N_Block_Statement =>
12304 (1 => True, -- Identifier (Node1)
12305 2 => True, -- Declarations (List2)
12306 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12307 4 => True, -- Handled_Statement_Sequence (Node4)
12308 5 => False), -- unused
12309
12310 N_Exit_Statement =>
12311 (1 => True, -- Condition (Node1)
12312 2 => True, -- Name (Node2)
12313 3 => False, -- unused
12314 4 => False, -- unused
12315 5 => False), -- unused
12316
12317 N_Goto_Statement =>
12318 (1 => False, -- unused
12319 2 => True, -- Name (Node2)
12320 3 => False, -- unused
12321 4 => False, -- unused
12322 5 => False), -- unused
12323
12324 N_Subprogram_Declaration =>
12325 (1 => True, -- Specification (Node1)
12326 2 => False, -- unused
12327 3 => False, -- Body_To_Inline (Node3-Sem)
12328 4 => False, -- Parent_Spec (Node4-Sem)
12329 5 => False), -- Corresponding_Body (Node5-Sem)
12330
12331 N_Abstract_Subprogram_Declaration =>
12332 (1 => True, -- Specification (Node1)
12333 2 => False, -- unused
12334 3 => False, -- unused
12335 4 => False, -- unused
12336 5 => False), -- unused
12337
12338 N_Function_Specification =>
12339 (1 => True, -- Defining_Unit_Name (Node1)
12340 2 => False, -- unused
12341 3 => True, -- Parameter_Specifications (List3)
12342 4 => True, -- Result_Definition (Node4)
12343 5 => False), -- Generic_Parent (Node5-Sem)
12344
12345 N_Procedure_Specification =>
12346 (1 => True, -- Defining_Unit_Name (Node1)
12347 2 => False, -- Null_Statement (Node2-Sem)
12348 3 => True, -- Parameter_Specifications (List3)
12349 4 => False, -- unused
12350 5 => False), -- Generic_Parent (Node5-Sem)
12351
12352 N_Designator =>
12353 (1 => True, -- Identifier (Node1)
12354 2 => True, -- Name (Node2)
12355 3 => False, -- unused
12356 4 => False, -- unused
12357 5 => False), -- unused
12358
12359 N_Defining_Program_Unit_Name =>
12360 (1 => True, -- Defining_Identifier (Node1)
12361 2 => True, -- Name (Node2)
12362 3 => False, -- unused
12363 4 => False, -- unused
12364 5 => False), -- unused
12365
12366 N_Operator_Symbol =>
12367 (1 => True, -- Chars (Name1)
12368 2 => False, -- unused
12369 3 => True, -- Strval (Str3)
12370 4 => False, -- Entity (Node4-Sem)
12371 5 => False), -- Etype (Node5-Sem)
12372
12373 N_Defining_Operator_Symbol =>
12374 (1 => True, -- Chars (Name1)
12375 2 => False, -- Next_Entity (Node2-Sem)
12376 3 => False, -- Scope (Node3-Sem)
12377 4 => False, -- unused
12378 5 => False), -- Etype (Node5-Sem)
12379
12380 N_Parameter_Specification =>
12381 (1 => True, -- Defining_Identifier (Node1)
12382 2 => True, -- Parameter_Type (Node2)
12383 3 => True, -- Expression (Node3)
12384 4 => False, -- unused
12385 5 => False), -- Default_Expression (Node5-Sem)
12386
12387 N_Subprogram_Body =>
12388 (1 => True, -- Specification (Node1)
12389 2 => True, -- Declarations (List2)
12390 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12391 4 => True, -- Handled_Statement_Sequence (Node4)
12392 5 => False), -- Corresponding_Spec (Node5-Sem)
12393
12394 N_Expression_Function =>
12395 (1 => True, -- Specification (Node1)
12396 2 => False, -- unused
12397 3 => True, -- Expression (Node3)
12398 4 => False, -- unused
12399 5 => False), -- unused
12400
12401 N_Procedure_Call_Statement =>
12402 (1 => False, -- Controlling_Argument (Node1-Sem)
12403 2 => True, -- Name (Node2)
12404 3 => True, -- Parameter_Associations (List3)
12405 4 => False, -- First_Named_Actual (Node4-Sem)
12406 5 => False), -- Etype (Node5-Sem)
12407
12408 N_Function_Call =>
12409 (1 => False, -- Controlling_Argument (Node1-Sem)
12410 2 => True, -- Name (Node2)
12411 3 => True, -- Parameter_Associations (List3)
12412 4 => False, -- First_Named_Actual (Node4-Sem)
12413 5 => False), -- Etype (Node5-Sem)
12414
12415 N_Parameter_Association =>
12416 (1 => False, -- unused
12417 2 => True, -- Selector_Name (Node2)
12418 3 => True, -- Explicit_Actual_Parameter (Node3)
12419 4 => False, -- Next_Named_Actual (Node4-Sem)
12420 5 => False), -- unused
12421
12422 N_Simple_Return_Statement =>
12423 (1 => False, -- Storage_Pool (Node1-Sem)
12424 2 => False, -- Procedure_To_Call (Node2-Sem)
12425 3 => True, -- Expression (Node3)
12426 4 => False, -- unused
12427 5 => False), -- Return_Statement_Entity (Node5-Sem)
12428
12429 N_Extended_Return_Statement =>
12430 (1 => False, -- Storage_Pool (Node1-Sem)
12431 2 => False, -- Procedure_To_Call (Node2-Sem)
12432 3 => True, -- Return_Object_Declarations (List3)
12433 4 => True, -- Handled_Statement_Sequence (Node4)
12434 5 => False), -- Return_Statement_Entity (Node5-Sem)
12435
12436 N_Package_Declaration =>
12437 (1 => True, -- Specification (Node1)
12438 2 => False, -- unused
12439 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12440 4 => False, -- Parent_Spec (Node4-Sem)
12441 5 => False), -- Corresponding_Body (Node5-Sem)
12442
12443 N_Package_Specification =>
12444 (1 => True, -- Defining_Unit_Name (Node1)
12445 2 => True, -- Visible_Declarations (List2)
12446 3 => True, -- Private_Declarations (List3)
12447 4 => True, -- End_Label (Node4)
12448 5 => False), -- Generic_Parent (Node5-Sem)
12449
12450 N_Package_Body =>
12451 (1 => True, -- Defining_Unit_Name (Node1)
12452 2 => True, -- Declarations (List2)
12453 3 => False, -- unused
12454 4 => True, -- Handled_Statement_Sequence (Node4)
12455 5 => False), -- Corresponding_Spec (Node5-Sem)
12456
12457 N_Private_Type_Declaration =>
12458 (1 => True, -- Defining_Identifier (Node1)
12459 2 => False, -- unused
12460 3 => False, -- unused
12461 4 => True, -- Discriminant_Specifications (List4)
12462 5 => False), -- unused
12463
12464 N_Private_Extension_Declaration =>
12465 (1 => True, -- Defining_Identifier (Node1)
12466 2 => True, -- Interface_List (List2)
12467 3 => False, -- unused
12468 4 => True, -- Discriminant_Specifications (List4)
12469 5 => True), -- Subtype_Indication (Node5)
12470
12471 N_Use_Package_Clause =>
12472 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12473 2 => True, -- Name (Node2)
12474 3 => False, -- Next_Use_Clause (Node3-Sem)
12475 4 => False, -- Associated_Node (Node4-Sem)
12476 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12477
12478 N_Use_Type_Clause =>
12479 (1 => False, -- Prev_Use_Clause (Node1-Sem)
12480 2 => False, -- Used_Operations (Elist2-Sem)
12481 3 => False, -- Next_Use_Clause (Node3-Sem)
12482 4 => True, -- Subtype_Mark (Node4)
12483 5 => False), -- Hidden_By_Use_Clause (Elist5-Sem)
12484
12485 N_Object_Renaming_Declaration =>
12486 (1 => True, -- Defining_Identifier (Node1)
12487 2 => True, -- Name (Node2)
12488 3 => True, -- Access_Definition (Node3)
12489 4 => True, -- Subtype_Mark (Node4)
12490 5 => False), -- Corresponding_Generic_Association (Node5-Sem)
12491
12492 N_Exception_Renaming_Declaration =>
12493 (1 => True, -- Defining_Identifier (Node1)
12494 2 => True, -- Name (Node2)
12495 3 => False, -- unused
12496 4 => False, -- unused
12497 5 => False), -- unused
12498
12499 N_Package_Renaming_Declaration =>
12500 (1 => True, -- Defining_Unit_Name (Node1)
12501 2 => True, -- Name (Node2)
12502 3 => False, -- unused
12503 4 => False, -- Parent_Spec (Node4-Sem)
12504 5 => False), -- unused
12505
12506 N_Subprogram_Renaming_Declaration =>
12507 (1 => True, -- Specification (Node1)
12508 2 => True, -- Name (Node2)
12509 3 => False, -- Corresponding_Formal_Spec (Node3-Sem)
12510 4 => False, -- Parent_Spec (Node4-Sem)
12511 5 => False), -- Corresponding_Spec (Node5-Sem)
12512
12513 N_Generic_Package_Renaming_Declaration =>
12514 (1 => True, -- Defining_Unit_Name (Node1)
12515 2 => True, -- Name (Node2)
12516 3 => False, -- unused
12517 4 => False, -- Parent_Spec (Node4-Sem)
12518 5 => False), -- unused
12519
12520 N_Generic_Procedure_Renaming_Declaration =>
12521 (1 => True, -- Defining_Unit_Name (Node1)
12522 2 => True, -- Name (Node2)
12523 3 => False, -- unused
12524 4 => False, -- Parent_Spec (Node4-Sem)
12525 5 => False), -- unused
12526
12527 N_Generic_Function_Renaming_Declaration =>
12528 (1 => True, -- Defining_Unit_Name (Node1)
12529 2 => True, -- Name (Node2)
12530 3 => False, -- unused
12531 4 => False, -- Parent_Spec (Node4-Sem)
12532 5 => False), -- unused
12533
12534 N_Task_Type_Declaration =>
12535 (1 => True, -- Defining_Identifier (Node1)
12536 2 => True, -- Interface_List (List2)
12537 3 => True, -- Task_Definition (Node3)
12538 4 => True, -- Discriminant_Specifications (List4)
12539 5 => False), -- Corresponding_Body (Node5-Sem)
12540
12541 N_Single_Task_Declaration =>
12542 (1 => True, -- Defining_Identifier (Node1)
12543 2 => True, -- Interface_List (List2)
12544 3 => True, -- Task_Definition (Node3)
12545 4 => False, -- unused
12546 5 => False), -- unused
12547
12548 N_Task_Definition =>
12549 (1 => False, -- unused
12550 2 => True, -- Visible_Declarations (List2)
12551 3 => True, -- Private_Declarations (List3)
12552 4 => True, -- End_Label (Node4)
12553 5 => False), -- unused
12554
12555 N_Task_Body =>
12556 (1 => True, -- Defining_Identifier (Node1)
12557 2 => True, -- Declarations (List2)
12558 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12559 4 => True, -- Handled_Statement_Sequence (Node4)
12560 5 => False), -- Corresponding_Spec (Node5-Sem)
12561
12562 N_Protected_Type_Declaration =>
12563 (1 => True, -- Defining_Identifier (Node1)
12564 2 => True, -- Interface_List (List2)
12565 3 => True, -- Protected_Definition (Node3)
12566 4 => True, -- Discriminant_Specifications (List4)
12567 5 => False), -- Corresponding_Body (Node5-Sem)
12568
12569 N_Single_Protected_Declaration =>
12570 (1 => True, -- Defining_Identifier (Node1)
12571 2 => True, -- Interface_List (List2)
12572 3 => True, -- Protected_Definition (Node3)
12573 4 => False, -- unused
12574 5 => False), -- unused
12575
12576 N_Protected_Definition =>
12577 (1 => False, -- unused
12578 2 => True, -- Visible_Declarations (List2)
12579 3 => True, -- Private_Declarations (List3)
12580 4 => True, -- End_Label (Node4)
12581 5 => False), -- unused
12582
12583 N_Protected_Body =>
12584 (1 => True, -- Defining_Identifier (Node1)
12585 2 => True, -- Declarations (List2)
12586 3 => False, -- unused
12587 4 => True, -- End_Label (Node4)
12588 5 => False), -- Corresponding_Spec (Node5-Sem)
12589
12590 N_Entry_Declaration =>
12591 (1 => True, -- Defining_Identifier (Node1)
12592 2 => False, -- unused
12593 3 => True, -- Parameter_Specifications (List3)
12594 4 => True, -- Discrete_Subtype_Definition (Node4)
12595 5 => False), -- Corresponding_Body (Node5-Sem)
12596
12597 N_Accept_Statement =>
12598 (1 => True, -- Entry_Direct_Name (Node1)
12599 2 => True, -- Declarations (List2)
12600 3 => True, -- Parameter_Specifications (List3)
12601 4 => True, -- Handled_Statement_Sequence (Node4)
12602 5 => True), -- Entry_Index (Node5)
12603
12604 N_Entry_Body =>
12605 (1 => True, -- Defining_Identifier (Node1)
12606 2 => True, -- Declarations (List2)
12607 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12608 4 => True, -- Handled_Statement_Sequence (Node4)
12609 5 => True), -- Entry_Body_Formal_Part (Node5)
12610
12611 N_Entry_Body_Formal_Part =>
12612 (1 => True, -- Condition (Node1)
12613 2 => False, -- unused
12614 3 => True, -- Parameter_Specifications (List3)
12615 4 => True, -- Entry_Index_Specification (Node4)
12616 5 => False), -- unused
12617
12618 N_Entry_Index_Specification =>
12619 (1 => True, -- Defining_Identifier (Node1)
12620 2 => False, -- unused
12621 3 => False, -- unused
12622 4 => True, -- Discrete_Subtype_Definition (Node4)
12623 5 => False), -- unused
12624
12625 N_Entry_Call_Statement =>
12626 (1 => False, -- unused
12627 2 => True, -- Name (Node2)
12628 3 => True, -- Parameter_Associations (List3)
12629 4 => False, -- First_Named_Actual (Node4-Sem)
12630 5 => False), -- unused
12631
12632 N_Requeue_Statement =>
12633 (1 => False, -- unused
12634 2 => True, -- Name (Node2)
12635 3 => False, -- unused
12636 4 => False, -- unused
12637 5 => False), -- unused
12638
12639 N_Delay_Until_Statement =>
12640 (1 => False, -- unused
12641 2 => False, -- unused
12642 3 => True, -- Expression (Node3)
12643 4 => False, -- unused
12644 5 => False), -- unused
12645
12646 N_Delay_Relative_Statement =>
12647 (1 => False, -- unused
12648 2 => False, -- unused
12649 3 => True, -- Expression (Node3)
12650 4 => False, -- unused
12651 5 => False), -- unused
12652
12653 N_Selective_Accept =>
12654 (1 => True, -- Select_Alternatives (List1)
12655 2 => False, -- unused
12656 3 => False, -- unused
12657 4 => True, -- Else_Statements (List4)
12658 5 => False), -- unused
12659
12660 N_Accept_Alternative =>
12661 (1 => True, -- Condition (Node1)
12662 2 => True, -- Accept_Statement (Node2)
12663 3 => True, -- Statements (List3)
12664 4 => True, -- Pragmas_Before (List4)
12665 5 => False), -- Accept_Handler_Records (List5-Sem)
12666
12667 N_Delay_Alternative =>
12668 (1 => True, -- Condition (Node1)
12669 2 => True, -- Delay_Statement (Node2)
12670 3 => True, -- Statements (List3)
12671 4 => True, -- Pragmas_Before (List4)
12672 5 => False), -- unused
12673
12674 N_Terminate_Alternative =>
12675 (1 => True, -- Condition (Node1)
12676 2 => False, -- unused
12677 3 => False, -- unused
12678 4 => True, -- Pragmas_Before (List4)
12679 5 => True), -- Pragmas_After (List5)
12680
12681 N_Timed_Entry_Call =>
12682 (1 => True, -- Entry_Call_Alternative (Node1)
12683 2 => False, -- unused
12684 3 => False, -- unused
12685 4 => True, -- Delay_Alternative (Node4)
12686 5 => False), -- unused
12687
12688 N_Entry_Call_Alternative =>
12689 (1 => True, -- Entry_Call_Statement (Node1)
12690 2 => False, -- unused
12691 3 => True, -- Statements (List3)
12692 4 => True, -- Pragmas_Before (List4)
12693 5 => False), -- unused
12694
12695 N_Conditional_Entry_Call =>
12696 (1 => True, -- Entry_Call_Alternative (Node1)
12697 2 => False, -- unused
12698 3 => False, -- unused
12699 4 => True, -- Else_Statements (List4)
12700 5 => False), -- unused
12701
12702 N_Asynchronous_Select =>
12703 (1 => True, -- Triggering_Alternative (Node1)
12704 2 => True, -- Abortable_Part (Node2)
12705 3 => False, -- unused
12706 4 => False, -- unused
12707 5 => False), -- unused
12708
12709 N_Triggering_Alternative =>
12710 (1 => True, -- Triggering_Statement (Node1)
12711 2 => False, -- unused
12712 3 => True, -- Statements (List3)
12713 4 => True, -- Pragmas_Before (List4)
12714 5 => False), -- unused
12715
12716 N_Abortable_Part =>
12717 (1 => False, -- unused
12718 2 => False, -- unused
12719 3 => True, -- Statements (List3)
12720 4 => False, -- unused
12721 5 => False), -- unused
12722
12723 N_Abort_Statement =>
12724 (1 => False, -- unused
12725 2 => True, -- Names (List2)
12726 3 => False, -- unused
12727 4 => False, -- unused
12728 5 => False), -- unused
12729
12730 N_Compilation_Unit =>
12731 (1 => True, -- Context_Items (List1)
12732 2 => True, -- Unit (Node2)
12733 3 => False, -- First_Inlined_Subprogram (Node3-Sem)
12734 4 => False, -- Library_Unit (Node4-Sem)
12735 5 => True), -- Aux_Decls_Node (Node5)
12736
12737 N_Compilation_Unit_Aux =>
12738 (1 => True, -- Actions (List1)
12739 2 => True, -- Declarations (List2)
12740 3 => False, -- Default_Storage_Pool (Node3)
12741 4 => True, -- Config_Pragmas (List4)
12742 5 => True), -- Pragmas_After (List5)
12743
12744 N_With_Clause =>
12745 (1 => False, -- unused
12746 2 => True, -- Name (Node2)
12747 3 => False, -- unused
12748 4 => False, -- Library_Unit (Node4-Sem)
12749 5 => False), -- Corresponding_Spec (Node5-Sem)
12750
12751 N_Subprogram_Body_Stub =>
12752 (1 => True, -- Specification (Node1)
12753 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12754 3 => False, -- unused
12755 4 => False, -- Library_Unit (Node4-Sem)
12756 5 => False), -- Corresponding_Body (Node5-Sem)
12757
12758 N_Package_Body_Stub =>
12759 (1 => True, -- Defining_Identifier (Node1)
12760 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12761 3 => False, -- unused
12762 4 => False, -- Library_Unit (Node4-Sem)
12763 5 => False), -- Corresponding_Body (Node5-Sem)
12764
12765 N_Task_Body_Stub =>
12766 (1 => True, -- Defining_Identifier (Node1)
12767 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12768 3 => False, -- unused
12769 4 => False, -- Library_Unit (Node4-Sem)
12770 5 => False), -- Corresponding_Body (Node5-Sem)
12771
12772 N_Protected_Body_Stub =>
12773 (1 => True, -- Defining_Identifier (Node1)
12774 2 => False, -- Corresponding_Spec_Of_Stub (Node2-Sem)
12775 3 => False, -- unused
12776 4 => False, -- Library_Unit (Node4-Sem)
12777 5 => False), -- Corresponding_Body (Node5-Sem)
12778
12779 N_Subunit =>
12780 (1 => True, -- Proper_Body (Node1)
12781 2 => True, -- Name (Node2)
12782 3 => False, -- Corresponding_Stub (Node3-Sem)
12783 4 => False, -- unused
12784 5 => False), -- unused
12785
12786 N_Exception_Declaration =>
12787 (1 => True, -- Defining_Identifier (Node1)
12788 2 => False, -- unused
12789 3 => False, -- Expression (Node3-Sem)
12790 4 => False, -- unused
12791 5 => False), -- unused
12792
12793 N_Handled_Sequence_Of_Statements =>
12794 (1 => True, -- At_End_Proc (Node1)
12795 2 => False, -- First_Real_Statement (Node2-Sem)
12796 3 => True, -- Statements (List3)
12797 4 => True, -- End_Label (Node4)
12798 5 => True), -- Exception_Handlers (List5)
12799
12800 N_Exception_Handler =>
12801 (1 => False, -- Local_Raise_Statements (Elist1)
12802 2 => True, -- Choice_Parameter (Node2)
12803 3 => True, -- Statements (List3)
12804 4 => True, -- Exception_Choices (List4)
12805 5 => False), -- Exception_Label (Node5)
12806
12807 N_Raise_Statement =>
12808 (1 => False, -- unused
12809 2 => True, -- Name (Node2)
12810 3 => True, -- Expression (Node3)
12811 4 => False, -- unused
12812 5 => False), -- unused
12813
12814 N_Raise_Expression =>
12815 (1 => False, -- unused
12816 2 => True, -- Name (Node2)
12817 3 => True, -- Expression (Node3)
12818 4 => False, -- unused
12819 5 => False), -- Etype (Node5-Sem)
12820
12821 N_Generic_Subprogram_Declaration =>
12822 (1 => True, -- Specification (Node1)
12823 2 => True, -- Generic_Formal_Declarations (List2)
12824 3 => False, -- unused
12825 4 => False, -- Parent_Spec (Node4-Sem)
12826 5 => False), -- Corresponding_Body (Node5-Sem)
12827
12828 N_Generic_Package_Declaration =>
12829 (1 => True, -- Specification (Node1)
12830 2 => True, -- Generic_Formal_Declarations (List2)
12831 3 => False, -- Activation_Chain_Entity (Node3-Sem)
12832 4 => False, -- Parent_Spec (Node4-Sem)
12833 5 => False), -- Corresponding_Body (Node5-Sem)
12834
12835 N_Package_Instantiation =>
12836 (1 => True, -- Defining_Unit_Name (Node1)
12837 2 => True, -- Name (Node2)
12838 3 => True, -- Generic_Associations (List3)
12839 4 => False, -- Parent_Spec (Node4-Sem)
12840 5 => False), -- Instance_Spec (Node5-Sem)
12841
12842 N_Procedure_Instantiation =>
12843 (1 => True, -- Defining_Unit_Name (Node1)
12844 2 => True, -- Name (Node2)
12845 3 => True, -- Generic_Associations (List3)
12846 4 => False, -- Parent_Spec (Node4-Sem)
12847 5 => False), -- Instance_Spec (Node5-Sem)
12848
12849 N_Function_Instantiation =>
12850 (1 => True, -- Defining_Unit_Name (Node1)
12851 2 => True, -- Name (Node2)
12852 3 => True, -- Generic_Associations (List3)
12853 4 => False, -- Parent_Spec (Node4-Sem)
12854 5 => False), -- Instance_Spec (Node5-Sem)
12855
12856 N_Generic_Association =>
12857 (1 => True, -- Explicit_Generic_Actual_Parameter (Node1)
12858 2 => True, -- Selector_Name (Node2)
12859 3 => False, -- unused
12860 4 => False, -- unused
12861 5 => False), -- unused
12862
12863 N_Formal_Object_Declaration =>
12864 (1 => True, -- Defining_Identifier (Node1)
12865 2 => False, -- unused
12866 3 => True, -- Access_Definition (Node3)
12867 4 => True, -- Subtype_Mark (Node4)
12868 5 => True), -- Default_Expression (Node5)
12869
12870 N_Formal_Type_Declaration =>
12871 (1 => True, -- Defining_Identifier (Node1)
12872 2 => False, -- unused
12873 3 => True, -- Formal_Type_Definition (Node3)
12874 4 => True, -- Discriminant_Specifications (List4)
12875 5 => False), -- unused
12876
12877 N_Formal_Private_Type_Definition =>
12878 (1 => False, -- unused
12879 2 => False, -- unused
12880 3 => False, -- unused
12881 4 => False, -- unused
12882 5 => False), -- unused
12883
12884 N_Formal_Incomplete_Type_Definition =>
12885 (1 => False, -- unused
12886 2 => False, -- unused
12887 3 => False, -- unused
12888 4 => False, -- unused
12889 5 => False), -- unused
12890
12891 N_Formal_Derived_Type_Definition =>
12892 (1 => False, -- unused
12893 2 => True, -- Interface_List (List2)
12894 3 => False, -- unused
12895 4 => True, -- Subtype_Mark (Node4)
12896 5 => False), -- unused
12897
12898 N_Formal_Discrete_Type_Definition =>
12899 (1 => False, -- unused
12900 2 => False, -- unused
12901 3 => False, -- unused
12902 4 => False, -- unused
12903 5 => False), -- unused
12904
12905 N_Formal_Signed_Integer_Type_Definition =>
12906 (1 => False, -- unused
12907 2 => False, -- unused
12908 3 => False, -- unused
12909 4 => False, -- unused
12910 5 => False), -- unused
12911
12912 N_Formal_Modular_Type_Definition =>
12913 (1 => False, -- unused
12914 2 => False, -- unused
12915 3 => False, -- unused
12916 4 => False, -- unused
12917 5 => False), -- unused
12918
12919 N_Formal_Floating_Point_Definition =>
12920 (1 => False, -- unused
12921 2 => False, -- unused
12922 3 => False, -- unused
12923 4 => False, -- unused
12924 5 => False), -- unused
12925
12926 N_Formal_Ordinary_Fixed_Point_Definition =>
12927 (1 => False, -- unused
12928 2 => False, -- unused
12929 3 => False, -- unused
12930 4 => False, -- unused
12931 5 => False), -- unused
12932
12933 N_Formal_Decimal_Fixed_Point_Definition =>
12934 (1 => False, -- unused
12935 2 => False, -- unused
12936 3 => False, -- unused
12937 4 => False, -- unused
12938 5 => False), -- unused
12939
12940 N_Formal_Concrete_Subprogram_Declaration =>
12941 (1 => True, -- Specification (Node1)
12942 2 => True, -- Default_Name (Node2)
12943 3 => False, -- unused
12944 4 => False, -- unused
12945 5 => False), -- unused
12946
12947 N_Formal_Abstract_Subprogram_Declaration =>
12948 (1 => True, -- Specification (Node1)
12949 2 => True, -- Default_Name (Node2)
12950 3 => False, -- unused
12951 4 => False, -- unused
12952 5 => False), -- unused
12953
12954 N_Formal_Package_Declaration =>
12955 (1 => True, -- Defining_Identifier (Node1)
12956 2 => True, -- Name (Node2)
12957 3 => True, -- Generic_Associations (List3)
12958 4 => False, -- unused
12959 5 => False), -- Instance_Spec (Node5-Sem)
12960
12961 N_Attribute_Definition_Clause =>
12962 (1 => True, -- Chars (Name1)
12963 2 => True, -- Name (Node2)
12964 3 => True, -- Expression (Node3)
12965 4 => False, -- unused
12966 5 => False), -- Next_Rep_Item (Node5-Sem)
12967
12968 N_Aspect_Specification =>
12969 (1 => True, -- Identifier (Node1)
12970 2 => False, -- Aspect_Rep_Item (Node2-Sem)
12971 3 => True, -- Expression (Node3)
12972 4 => False, -- Entity (Node4-Sem)
12973 5 => False), -- Next_Rep_Item (Node5-Sem)
12974
12975 N_Enumeration_Representation_Clause =>
12976 (1 => True, -- Identifier (Node1)
12977 2 => False, -- unused
12978 3 => True, -- Array_Aggregate (Node3)
12979 4 => False, -- unused
12980 5 => False), -- Next_Rep_Item (Node5-Sem)
12981
12982 N_Record_Representation_Clause =>
12983 (1 => True, -- Identifier (Node1)
12984 2 => True, -- Mod_Clause (Node2)
12985 3 => True, -- Component_Clauses (List3)
12986 4 => False, -- unused
12987 5 => False), -- Next_Rep_Item (Node5-Sem)
12988
12989 N_Component_Clause =>
12990 (1 => True, -- Component_Name (Node1)
12991 2 => True, -- Position (Node2)
12992 3 => True, -- First_Bit (Node3)
12993 4 => True, -- Last_Bit (Node4)
12994 5 => False), -- unused
12995
12996 N_Code_Statement =>
12997 (1 => False, -- unused
12998 2 => False, -- unused
12999 3 => True, -- Expression (Node3)
13000 4 => False, -- unused
13001 5 => False), -- unused
13002
13003 N_Op_Rotate_Left =>
13004 (1 => True, -- Chars (Name1)
13005 2 => True, -- Left_Opnd (Node2)
13006 3 => True, -- Right_Opnd (Node3)
13007 4 => False, -- Entity (Node4-Sem)
13008 5 => False), -- Etype (Node5-Sem)
13009
13010 N_Op_Rotate_Right =>
13011 (1 => True, -- Chars (Name1)
13012 2 => True, -- Left_Opnd (Node2)
13013 3 => True, -- Right_Opnd (Node3)
13014 4 => False, -- Entity (Node4-Sem)
13015 5 => False), -- Etype (Node5-Sem)
13016
13017 N_Op_Shift_Left =>
13018 (1 => True, -- Chars (Name1)
13019 2 => True, -- Left_Opnd (Node2)
13020 3 => True, -- Right_Opnd (Node3)
13021 4 => False, -- Entity (Node4-Sem)
13022 5 => False), -- Etype (Node5-Sem)
13023
13024 N_Op_Shift_Right_Arithmetic =>
13025 (1 => True, -- Chars (Name1)
13026 2 => True, -- Left_Opnd (Node2)
13027 3 => True, -- Right_Opnd (Node3)
13028 4 => False, -- Entity (Node4-Sem)
13029 5 => False), -- Etype (Node5-Sem)
13030
13031 N_Op_Shift_Right =>
13032 (1 => True, -- Chars (Name1)
13033 2 => True, -- Left_Opnd (Node2)
13034 3 => True, -- Right_Opnd (Node3)
13035 4 => False, -- Entity (Node4-Sem)
13036 5 => False), -- Etype (Node5-Sem)
13037
13038 N_Delta_Constraint =>
13039 (1 => False, -- unused
13040 2 => False, -- unused
13041 3 => True, -- Delta_Expression (Node3)
13042 4 => True, -- Range_Constraint (Node4)
13043 5 => False), -- unused
13044
13045 N_At_Clause =>
13046 (1 => True, -- Identifier (Node1)
13047 2 => False, -- unused
13048 3 => True, -- Expression (Node3)
13049 4 => False, -- unused
13050 5 => False), -- unused
13051
13052 N_Mod_Clause =>
13053 (1 => False, -- unused
13054 2 => False, -- unused
13055 3 => True, -- Expression (Node3)
13056 4 => True, -- Pragmas_Before (List4)
13057 5 => False), -- unused
13058
13059 N_If_Expression =>
13060 (1 => True, -- Expressions (List1)
13061 2 => False, -- Then_Actions (List2-Sem)
13062 3 => False, -- Else_Actions (List3-Sem)
13063 4 => False, -- unused
13064 5 => False), -- Etype (Node5-Sem)
13065
13066 N_Compound_Statement =>
13067 (1 => True, -- Actions (List1)
13068 2 => False, -- unused
13069 3 => False, -- unused
13070 4 => False, -- unused
13071 5 => False), -- unused
13072
13073 N_Contract =>
13074 (1 => False, -- Pre_Post_Conditions (Node1-Sem)
13075 2 => False, -- Contract_Test_Cases (Node2-Sem)
13076 3 => False, -- Classifications (Node3-Sem)
13077 4 => False, -- unused
13078 5 => False), -- unused
13079
13080 N_Expanded_Name =>
13081 (1 => True, -- Chars (Name1)
13082 2 => True, -- Selector_Name (Node2)
13083 3 => True, -- Prefix (Node3)
13084 4 => False, -- Entity (Node4-Sem)
13085 5 => False), -- Etype (Node5-Sem)
13086
13087 N_Expression_With_Actions =>
13088 (1 => True, -- Actions (List1)
13089 2 => False, -- unused
13090 3 => True, -- Expression (Node3)
13091 4 => False, -- unused
13092 5 => False), -- unused
13093
13094 N_Free_Statement =>
13095 (1 => False, -- Storage_Pool (Node1-Sem)
13096 2 => False, -- Procedure_To_Call (Node2-Sem)
13097 3 => True, -- Expression (Node3)
13098 4 => False, -- Actual_Designated_Subtype (Node4-Sem)
13099 5 => False), -- unused
13100
13101 N_Freeze_Entity =>
13102 (1 => True, -- Actions (List1)
13103 2 => False, -- Access_Types_To_Process (Elist2-Sem)
13104 3 => False, -- TSS_Elist (Elist3-Sem)
13105 4 => False, -- Entity (Node4-Sem)
13106 5 => False), -- First_Subtype_Link (Node5-Sem)
13107
13108 N_Freeze_Generic_Entity =>
13109 (1 => False, -- unused
13110 2 => False, -- unused
13111 3 => False, -- unused
13112 4 => False, -- Entity (Node4-Sem)
13113 5 => False), -- unused
13114
13115 N_Implicit_Label_Declaration =>
13116 (1 => True, -- Defining_Identifier (Node1)
13117 2 => False, -- Label_Construct (Node2-Sem)
13118 3 => False, -- unused
13119 4 => False, -- unused
13120 5 => False), -- unused
13121
13122 N_Itype_Reference =>
13123 (1 => False, -- Itype (Node1-Sem)
13124 2 => False, -- unused
13125 3 => False, -- unused
13126 4 => False, -- unused
13127 5 => False), -- unused
13128
13129 N_Raise_Constraint_Error =>
13130 (1 => True, -- Condition (Node1)
13131 2 => False, -- unused
13132 3 => True, -- Reason (Uint3)
13133 4 => False, -- unused
13134 5 => False), -- Etype (Node5-Sem)
13135
13136 N_Raise_Program_Error =>
13137 (1 => True, -- Condition (Node1)
13138 2 => False, -- unused
13139 3 => True, -- Reason (Uint3)
13140 4 => False, -- unused
13141 5 => False), -- Etype (Node5-Sem)
13142
13143 N_Raise_Storage_Error =>
13144 (1 => True, -- Condition (Node1)
13145 2 => False, -- unused
13146 3 => True, -- Reason (Uint3)
13147 4 => False, -- unused
13148 5 => False), -- Etype (Node5-Sem)
13149
13150 N_Push_Constraint_Error_Label =>
13151 (1 => False, -- unused
13152 2 => False, -- unused
13153 3 => False, -- unused
13154 4 => False, -- unused
13155 5 => False), -- unused
13156
13157 N_Push_Program_Error_Label =>
13158 (1 => False, -- unused
13159 2 => False, -- unused
13160 3 => False, -- unused
13161 4 => False, -- unused
13162 5 => False), -- Exception_Label
13163
13164 N_Push_Storage_Error_Label =>
13165 (1 => False, -- unused
13166 2 => False, -- unused
13167 3 => False, -- unused
13168 4 => False, -- unused
13169 5 => False), -- Exception_Label
13170
13171 N_Pop_Constraint_Error_Label =>
13172 (1 => False, -- unused
13173 2 => False, -- unused
13174 3 => False, -- unused
13175 4 => False, -- unused
13176 5 => False), -- unused
13177
13178 N_Pop_Program_Error_Label =>
13179 (1 => False, -- unused
13180 2 => False, -- unused
13181 3 => False, -- unused
13182 4 => False, -- unused
13183 5 => False), -- unused
13184
13185 N_Pop_Storage_Error_Label =>
13186 (1 => False, -- unused
13187 2 => False, -- unused
13188 3 => False, -- unused
13189 4 => False, -- unused
13190 5 => False), -- unused
13191
13192 N_Reference =>
13193 (1 => False, -- unused
13194 2 => False, -- unused
13195 3 => True, -- Prefix (Node3)
13196 4 => False, -- unused
13197 5 => False), -- Etype (Node5-Sem)
13198
13199 N_Unchecked_Expression =>
13200 (1 => False, -- unused
13201 2 => False, -- unused
13202 3 => True, -- Expression (Node3)
13203 4 => False, -- unused
13204 5 => False), -- Etype (Node5-Sem)
13205
13206 N_Unchecked_Type_Conversion =>
13207 (1 => False, -- unused
13208 2 => False, -- unused
13209 3 => True, -- Expression (Node3)
13210 4 => True, -- Subtype_Mark (Node4)
13211 5 => False), -- Etype (Node5-Sem)
13212
13213 N_Validate_Unchecked_Conversion =>
13214 (1 => False, -- Source_Type (Node1-Sem)
13215 2 => False, -- Target_Type (Node2-Sem)
13216 3 => False, -- unused
13217 4 => False, -- unused
13218 5 => False), -- unused
13219
13220 -- Entries for SCIL nodes
13221
13222 N_SCIL_Dispatch_Table_Tag_Init =>
13223 (1 => False, -- unused
13224 2 => False, -- unused
13225 3 => False, -- unused
13226 4 => False, -- SCIL_Entity (Node4-Sem)
13227 5 => False), -- unused
13228
13229 N_SCIL_Dispatching_Call =>
13230 (1 => False, -- unused
13231 2 => False, -- SCIL_Target_Prim (Node2-Sem)
13232 3 => False, -- unused
13233 4 => False, -- SCIL_Entity (Node4-Sem)
13234 5 => False), -- SCIL_Controlling_Tag (Node5-Sem)
13235
13236 N_SCIL_Membership_Test =>
13237 (1 => False, -- unused
13238 2 => False, -- unused
13239 3 => False, -- unused
13240 4 => False, -- SCIL_Entity (Node4-Sem)
13241 5 => False), -- SCIL_Tag_Value (Node5-Sem)
13242
13243 N_Call_Marker =>
13244 (1 => False, -- Target (Node1-Sem)
13245 2 => False, -- unused
13246 3 => False, -- unused
13247 4 => False, -- unused
13248 5 => False), -- unused
13249
13250 N_Variable_Reference_Marker =>
13251 (1 => False, -- Target (Node1-Sem)
13252 2 => False, -- unused
13253 3 => False, -- unused
13254 4 => False, -- unused
13255 5 => False), -- unused
13256
13257 -- Entries for Empty, Error, and Unused. Even though these have a Chars
13258 -- field for debugging purposes, they are not really syntactic fields, so
13259 -- we mark all fields as unused.
13260
13261 N_Empty =>
13262 (1 => False, -- unused
13263 2 => False, -- unused
13264 3 => False, -- unused
13265 4 => False, -- unused
13266 5 => False), -- unused
13267
13268 N_Error =>
13269 (1 => False, -- unused
13270 2 => False, -- unused
13271 3 => False, -- unused
13272 4 => False, -- unused
13273 5 => False), -- unused
13274
13275 N_Unused_At_Start =>
13276 (1 => False, -- unused
13277 2 => False, -- unused
13278 3 => False, -- unused
13279 4 => False, -- unused
13280 5 => False), -- unused
13281
13282 N_Unused_At_End =>
13283 (1 => False, -- unused
13284 2 => False, -- unused
13285 3 => False, -- unused
13286 4 => False, -- unused
13287 5 => False)); -- unused
13288
13289 --------------------
13290 -- Inline Pragmas --
13291 --------------------
13292
13293 pragma Inline (Abort_Present);
13294 pragma Inline (Abortable_Part);
13295 pragma Inline (Abstract_Present);
13296 pragma Inline (Accept_Handler_Records);
13297 pragma Inline (Accept_Statement);
13298 pragma Inline (Access_Definition);
13299 pragma Inline (Access_To_Subprogram_Definition);
13300 pragma Inline (Access_Types_To_Process);
13301 pragma Inline (Actions);
13302 pragma Inline (Activation_Chain_Entity);
13303 pragma Inline (Acts_As_Spec);
13304 pragma Inline (Actual_Designated_Subtype);
13305 pragma Inline (Address_Warning_Posted);
13306 pragma Inline (Aggregate_Bounds);
13307 pragma Inline (Aliased_Present);
13308 pragma Inline (Alloc_For_BIP_Return);
13309 pragma Inline (All_Others);
13310 pragma Inline (All_Present);
13311 pragma Inline (Alternatives);
13312 pragma Inline (Ancestor_Part);
13313 pragma Inline (Atomic_Sync_Required);
13314 pragma Inline (Array_Aggregate);
13315 pragma Inline (Aspect_On_Partial_View);
13316 pragma Inline (Aspect_Rep_Item);
13317 pragma Inline (Assignment_OK);
13318 pragma Inline (Associated_Node);
13319 pragma Inline (At_End_Proc);
13320 pragma Inline (Attribute_Name);
13321 pragma Inline (Aux_Decls_Node);
13322 pragma Inline (Backwards_OK);
13323 pragma Inline (Bad_Is_Detected);
13324 pragma Inline (Body_To_Inline);
13325 pragma Inline (Body_Required);
13326 pragma Inline (By_Ref);
13327 pragma Inline (Box_Present);
13328 pragma Inline (Char_Literal_Value);
13329 pragma Inline (Chars);
13330 pragma Inline (Check_Address_Alignment);
13331 pragma Inline (Choice_Parameter);
13332 pragma Inline (Choices);
13333 pragma Inline (Class_Present);
13334 pragma Inline (Classifications);
13335 pragma Inline (Cleanup_Actions);
13336 pragma Inline (Comes_From_Extended_Return_Statement);
13337 pragma Inline (Compile_Time_Known_Aggregate);
13338 pragma Inline (Component_Associations);
13339 pragma Inline (Component_Clauses);
13340 pragma Inline (Component_Definition);
13341 pragma Inline (Component_Items);
13342 pragma Inline (Component_List);
13343 pragma Inline (Component_Name);
13344 pragma Inline (Componentwise_Assignment);
13345 pragma Inline (Condition);
13346 pragma Inline (Condition_Actions);
13347 pragma Inline (Config_Pragmas);
13348 pragma Inline (Constant_Present);
13349 pragma Inline (Constraint);
13350 pragma Inline (Constraints);
13351 pragma Inline (Context_Installed);
13352 pragma Inline (Context_Items);
13353 pragma Inline (Context_Pending);
13354 pragma Inline (Contract_Test_Cases);
13355 pragma Inline (Controlling_Argument);
13356 pragma Inline (Convert_To_Return_False);
13357 pragma Inline (Conversion_OK);
13358 pragma Inline (Corresponding_Aspect);
13359 pragma Inline (Corresponding_Body);
13360 pragma Inline (Corresponding_Formal_Spec);
13361 pragma Inline (Corresponding_Generic_Association);
13362 pragma Inline (Corresponding_Integer_Value);
13363 pragma Inline (Corresponding_Spec);
13364 pragma Inline (Corresponding_Spec_Of_Stub);
13365 pragma Inline (Corresponding_Stub);
13366 pragma Inline (Dcheck_Function);
13367 pragma Inline (Declarations);
13368 pragma Inline (Default_Expression);
13369 pragma Inline (Default_Storage_Pool);
13370 pragma Inline (Default_Name);
13371 pragma Inline (Defining_Identifier);
13372 pragma Inline (Defining_Unit_Name);
13373 pragma Inline (Delay_Alternative);
13374 pragma Inline (Delay_Statement);
13375 pragma Inline (Delta_Expression);
13376 pragma Inline (Digits_Expression);
13377 pragma Inline (Discr_Check_Funcs_Built);
13378 pragma Inline (Discrete_Choices);
13379 pragma Inline (Discrete_Range);
13380 pragma Inline (Discrete_Subtype_Definition);
13381 pragma Inline (Discrete_Subtype_Definitions);
13382 pragma Inline (Discriminant_Specifications);
13383 pragma Inline (Discriminant_Type);
13384 pragma Inline (Do_Accessibility_Check);
13385 pragma Inline (Do_Discriminant_Check);
13386 pragma Inline (Do_Length_Check);
13387 pragma Inline (Do_Division_Check);
13388 pragma Inline (Do_Overflow_Check);
13389 pragma Inline (Do_Range_Check);
13390 pragma Inline (Do_Storage_Check);
13391 pragma Inline (Do_Tag_Check);
13392 pragma Inline (Elaborate_All_Desirable);
13393 pragma Inline (Elaborate_All_Present);
13394 pragma Inline (Elaborate_Desirable);
13395 pragma Inline (Elaborate_Present);
13396 pragma Inline (Else_Actions);
13397 pragma Inline (Else_Statements);
13398 pragma Inline (Elsif_Parts);
13399 pragma Inline (Enclosing_Variant);
13400 pragma Inline (End_Label);
13401 pragma Inline (End_Span);
13402 pragma Inline (Entity);
13403 pragma Inline (Entity_Or_Associated_Node);
13404 pragma Inline (Entry_Body_Formal_Part);
13405 pragma Inline (Entry_Call_Alternative);
13406 pragma Inline (Entry_Call_Statement);
13407 pragma Inline (Entry_Direct_Name);
13408 pragma Inline (Entry_Index);
13409 pragma Inline (Entry_Index_Specification);
13410 pragma Inline (Etype);
13411 pragma Inline (Exception_Choices);
13412 pragma Inline (Exception_Handlers);
13413 pragma Inline (Exception_Junk);
13414 pragma Inline (Exception_Label);
13415 pragma Inline (Expansion_Delayed);
13416 pragma Inline (Explicit_Actual_Parameter);
13417 pragma Inline (Explicit_Generic_Actual_Parameter);
13418 pragma Inline (Expression);
13419 pragma Inline (Expression_Copy);
13420 pragma Inline (Expressions);
13421 pragma Inline (First_Bit);
13422 pragma Inline (First_Inlined_Subprogram);
13423 pragma Inline (First_Name);
13424 pragma Inline (First_Named_Actual);
13425 pragma Inline (First_Real_Statement);
13426 pragma Inline (First_Subtype_Link);
13427 pragma Inline (Float_Truncate);
13428 pragma Inline (Formal_Type_Definition);
13429 pragma Inline (Forwards_OK);
13430 pragma Inline (From_Aspect_Specification);
13431 pragma Inline (From_At_End);
13432 pragma Inline (From_At_Mod);
13433 pragma Inline (From_Conditional_Expression);
13434 pragma Inline (From_Default);
13435 pragma Inline (Generalized_Indexing);
13436 pragma Inline (Generic_Associations);
13437 pragma Inline (Generic_Formal_Declarations);
13438 pragma Inline (Generic_Parent);
13439 pragma Inline (Generic_Parent_Type);
13440 pragma Inline (Handled_Statement_Sequence);
13441 pragma Inline (Handler_List_Entry);
13442 pragma Inline (Has_Created_Identifier);
13443 pragma Inline (Has_Dereference_Action);
13444 pragma Inline (Has_Dynamic_Length_Check);
13445 pragma Inline (Has_Dynamic_Range_Check);
13446 pragma Inline (Has_Init_Expression);
13447 pragma Inline (Has_Local_Raise);
13448 pragma Inline (Has_Self_Reference);
13449 pragma Inline (Has_SP_Choice);
13450 pragma Inline (Has_No_Elaboration_Code);
13451 pragma Inline (Has_Pragma_Suppress_All);
13452 pragma Inline (Has_Private_View);
13453 pragma Inline (Has_Relative_Deadline_Pragma);
13454 pragma Inline (Has_Storage_Size_Pragma);
13455 pragma Inline (Has_Target_Names);
13456 pragma Inline (Has_Wide_Character);
13457 pragma Inline (Has_Wide_Wide_Character);
13458 pragma Inline (Header_Size_Added);
13459 pragma Inline (Hidden_By_Use_Clause);
13460 pragma Inline (High_Bound);
13461 pragma Inline (Identifier);
13462 pragma Inline (Implicit_With);
13463 pragma Inline (Interface_List);
13464 pragma Inline (Interface_Present);
13465 pragma Inline (Includes_Infinities);
13466 pragma Inline (Import_Interface_Present);
13467 pragma Inline (In_Present);
13468 pragma Inline (Incomplete_View);
13469 pragma Inline (Inherited_Discriminant);
13470 pragma Inline (Instance_Spec);
13471 pragma Inline (Intval);
13472 pragma Inline (Iterator_Specification);
13473 pragma Inline (Is_Abort_Block);
13474 pragma Inline (Is_Accessibility_Actual);
13475 pragma Inline (Is_Analyzed_Pragma);
13476 pragma Inline (Is_Asynchronous_Call_Block);
13477 pragma Inline (Is_Boolean_Aspect);
13478 pragma Inline (Is_Checked);
13479 pragma Inline (Is_Checked_Ghost_Pragma);
13480 pragma Inline (Is_Component_Left_Opnd);
13481 pragma Inline (Is_Component_Right_Opnd);
13482 pragma Inline (Is_Controlling_Actual);
13483 pragma Inline (Is_Declaration_Level_Node);
13484 pragma Inline (Is_Delayed_Aspect);
13485 pragma Inline (Is_Disabled);
13486 pragma Inline (Is_Dispatching_Call);
13487 pragma Inline (Is_Dynamic_Coextension);
13488 pragma Inline (Is_Effective_Use_Clause);
13489 pragma Inline (Is_Elaboration_Checks_OK_Node);
13490 pragma Inline (Is_Elaboration_Code);
13491 pragma Inline (Is_Elaboration_Warnings_OK_Node);
13492 pragma Inline (Is_Elsif);
13493 pragma Inline (Is_Entry_Barrier_Function);
13494 pragma Inline (Is_Expanded_Build_In_Place_Call);
13495 pragma Inline (Is_Expanded_Contract);
13496 pragma Inline (Is_Finalization_Wrapper);
13497 pragma Inline (Is_Folded_In_Parser);
13498 pragma Inline (Is_Generic_Contract_Pragma);
13499 pragma Inline (Is_Homogeneous_Aggregate);
13500 pragma Inline (Is_Ignored);
13501 pragma Inline (Is_Ignored_Ghost_Pragma);
13502 pragma Inline (Is_In_Discriminant_Check);
13503 pragma Inline (Is_Inherited_Pragma);
13504 pragma Inline (Is_Initialization_Block);
13505 pragma Inline (Is_Known_Guaranteed_ABE);
13506 pragma Inline (Is_Machine_Number);
13507 pragma Inline (Is_Null_Loop);
13508 pragma Inline (Is_OpenAcc_Environment);
13509 pragma Inline (Is_OpenAcc_Loop);
13510 pragma Inline (Is_Overloaded);
13511 pragma Inline (Is_Power_Of_2_For_Shift);
13512 pragma Inline (Is_Prefixed_Call);
13513 pragma Inline (Is_Protected_Subprogram_Body);
13514 pragma Inline (Is_Qualified_Universal_Literal);
13515 pragma Inline (Is_Read);
13516 pragma Inline (Is_Source_Call);
13517 pragma Inline (Is_SPARK_Mode_On_Node);
13518 pragma Inline (Is_Static_Coextension);
13519 pragma Inline (Is_Static_Expression);
13520 pragma Inline (Is_Subprogram_Descriptor);
13521 pragma Inline (Is_Task_Allocation_Block);
13522 pragma Inline (Is_Task_Body_Procedure);
13523 pragma Inline (Is_Task_Master);
13524 pragma Inline (Is_Write);
13525 pragma Inline (Iteration_Scheme);
13526 pragma Inline (Itype);
13527 pragma Inline (Kill_Range_Check);
13528 pragma Inline (Last_Bit);
13529 pragma Inline (Last_Name);
13530 pragma Inline (Library_Unit);
13531 pragma Inline (Label_Construct);
13532 pragma Inline (Left_Opnd);
13533 pragma Inline (Limited_View_Installed);
13534 pragma Inline (Limited_Present);
13535 pragma Inline (Literals);
13536 pragma Inline (Local_Raise_Not_OK);
13537 pragma Inline (Local_Raise_Statements);
13538 pragma Inline (Loop_Actions);
13539 pragma Inline (Loop_Parameter_Specification);
13540 pragma Inline (Low_Bound);
13541 pragma Inline (Mod_Clause);
13542 pragma Inline (More_Ids);
13543 pragma Inline (Must_Be_Byte_Aligned);
13544 pragma Inline (Must_Not_Freeze);
13545 pragma Inline (Must_Not_Override);
13546 pragma Inline (Must_Override);
13547 pragma Inline (Name);
13548 pragma Inline (Names);
13549 pragma Inline (Next_Entity);
13550 pragma Inline (Next_Exit_Statement);
13551 pragma Inline (Next_Implicit_With);
13552 pragma Inline (Next_Named_Actual);
13553 pragma Inline (Next_Pragma);
13554 pragma Inline (Next_Rep_Item);
13555 pragma Inline (Next_Use_Clause);
13556 pragma Inline (No_Ctrl_Actions);
13557 pragma Inline (No_Elaboration_Check);
13558 pragma Inline (No_Entities_Ref_In_Spec);
13559 pragma Inline (No_Initialization);
13560 pragma Inline (No_Minimize_Eliminate);
13561 pragma Inline (No_Side_Effect_Removal);
13562 pragma Inline (No_Truncation);
13563 pragma Inline (Null_Excluding_Subtype);
13564 pragma Inline (Null_Exclusion_Present);
13565 pragma Inline (Null_Exclusion_In_Return_Present);
13566 pragma Inline (Null_Present);
13567 pragma Inline (Null_Record_Present);
13568 pragma Inline (Null_Statement);
13569 pragma Inline (Object_Definition);
13570 pragma Inline (Of_Present);
13571 pragma Inline (Original_Discriminant);
13572 pragma Inline (Original_Entity);
13573 pragma Inline (Others_Discrete_Choices);
13574 pragma Inline (Out_Present);
13575 pragma Inline (Parameter_Associations);
13576 pragma Inline (Parameter_Specifications);
13577 pragma Inline (Parameter_Type);
13578 pragma Inline (Parent_Spec);
13579 pragma Inline (Parent_With);
13580 pragma Inline (Position);
13581 pragma Inline (Pragma_Argument_Associations);
13582 pragma Inline (Pragma_Identifier);
13583 pragma Inline (Pragmas_After);
13584 pragma Inline (Pragmas_Before);
13585 pragma Inline (Pre_Post_Conditions);
13586 pragma Inline (Prefix);
13587 pragma Inline (Premature_Use);
13588 pragma Inline (Present_Expr);
13589 pragma Inline (Prev_Ids);
13590 pragma Inline (Prev_Use_Clause);
13591 pragma Inline (Print_In_Hex);
13592 pragma Inline (Private_Declarations);
13593 pragma Inline (Private_Present);
13594 pragma Inline (Procedure_To_Call);
13595 pragma Inline (Proper_Body);
13596 pragma Inline (Protected_Definition);
13597 pragma Inline (Protected_Present);
13598 pragma Inline (Raises_Constraint_Error);
13599 pragma Inline (Range_Constraint);
13600 pragma Inline (Range_Expression);
13601 pragma Inline (Real_Range_Specification);
13602 pragma Inline (Realval);
13603 pragma Inline (Reason);
13604 pragma Inline (Record_Extension_Part);
13605 pragma Inline (Redundant_Use);
13606 pragma Inline (Renaming_Exception);
13607 pragma Inline (Result_Definition);
13608 pragma Inline (Return_Object_Declarations);
13609 pragma Inline (Return_Statement_Entity);
13610 pragma Inline (Reverse_Present);
13611 pragma Inline (Right_Opnd);
13612 pragma Inline (Rounded_Result);
13613 pragma Inline (Save_Invocation_Graph_Of_Body);
13614 pragma Inline (SCIL_Controlling_Tag);
13615 pragma Inline (SCIL_Entity);
13616 pragma Inline (SCIL_Tag_Value);
13617 pragma Inline (SCIL_Target_Prim);
13618 pragma Inline (Scope);
13619 pragma Inline (Select_Alternatives);
13620 pragma Inline (Selector_Name);
13621 pragma Inline (Selector_Names);
13622 pragma Inline (Shift_Count_OK);
13623 pragma Inline (Source_Type);
13624 pragma Inline (Specification);
13625 pragma Inline (Split_PPC);
13626 pragma Inline (Statements);
13627 pragma Inline (Storage_Pool);
13628 pragma Inline (Subpool_Handle_Name);
13629 pragma Inline (Strval);
13630 pragma Inline (Subtype_Indication);
13631 pragma Inline (Subtype_Mark);
13632 pragma Inline (Subtype_Marks);
13633 pragma Inline (Suppress_Assignment_Checks);
13634 pragma Inline (Suppress_Loop_Warnings);
13635 pragma Inline (Synchronized_Present);
13636 pragma Inline (Tagged_Present);
13637 pragma Inline (Target);
13638 pragma Inline (Target_Type);
13639 pragma Inline (Task_Definition);
13640 pragma Inline (Task_Present);
13641 pragma Inline (Then_Actions);
13642 pragma Inline (Then_Statements);
13643 pragma Inline (Triggering_Alternative);
13644 pragma Inline (Triggering_Statement);
13645 pragma Inline (TSS_Elist);
13646 pragma Inline (Type_Definition);
13647 pragma Inline (Uneval_Old_Accept);
13648 pragma Inline (Uneval_Old_Warn);
13649 pragma Inline (Unit);
13650 pragma Inline (Uninitialized_Variable);
13651 pragma Inline (Unknown_Discriminants_Present);
13652 pragma Inline (Unreferenced_In_Spec);
13653 pragma Inline (Variant_Part);
13654 pragma Inline (Variants);
13655 pragma Inline (Visible_Declarations);
13656 pragma Inline (Used_Operations);
13657 pragma Inline (Was_Attribute_Reference);
13658 pragma Inline (Was_Expression_Function);
13659 pragma Inline (Was_Originally_Stub);
13660
13661 pragma Inline (Set_Abort_Present);
13662 pragma Inline (Set_Abortable_Part);
13663 pragma Inline (Set_Abstract_Present);
13664 pragma Inline (Set_Accept_Handler_Records);
13665 pragma Inline (Set_Accept_Statement);
13666 pragma Inline (Set_Access_Definition);
13667 pragma Inline (Set_Access_To_Subprogram_Definition);
13668 pragma Inline (Set_Access_Types_To_Process);
13669 pragma Inline (Set_Actions);
13670 pragma Inline (Set_Activation_Chain_Entity);
13671 pragma Inline (Set_Acts_As_Spec);
13672 pragma Inline (Set_Actual_Designated_Subtype);
13673 pragma Inline (Set_Address_Warning_Posted);
13674 pragma Inline (Set_Aggregate_Bounds);
13675 pragma Inline (Set_Aliased_Present);
13676 pragma Inline (Set_Alloc_For_BIP_Return);
13677 pragma Inline (Set_All_Others);
13678 pragma Inline (Set_All_Present);
13679 pragma Inline (Set_Alternatives);
13680 pragma Inline (Set_Ancestor_Part);
13681 pragma Inline (Set_Array_Aggregate);
13682 pragma Inline (Set_Aspect_On_Partial_View);
13683 pragma Inline (Set_Aspect_Rep_Item);
13684 pragma Inline (Set_Assignment_OK);
13685 pragma Inline (Set_Associated_Node);
13686 pragma Inline (Set_At_End_Proc);
13687 pragma Inline (Set_Atomic_Sync_Required);
13688 pragma Inline (Set_Attribute_Name);
13689 pragma Inline (Set_Aux_Decls_Node);
13690 pragma Inline (Set_Backwards_OK);
13691 pragma Inline (Set_Bad_Is_Detected);
13692 pragma Inline (Set_Body_Required);
13693 pragma Inline (Set_Body_To_Inline);
13694 pragma Inline (Set_Box_Present);
13695 pragma Inline (Set_By_Ref);
13696 pragma Inline (Set_Char_Literal_Value);
13697 pragma Inline (Set_Chars);
13698 pragma Inline (Set_Check_Address_Alignment);
13699 pragma Inline (Set_Choice_Parameter);
13700 pragma Inline (Set_Choices);
13701 pragma Inline (Set_Class_Present);
13702 pragma Inline (Set_Classifications);
13703 pragma Inline (Set_Cleanup_Actions);
13704 pragma Inline (Set_Comes_From_Extended_Return_Statement);
13705 pragma Inline (Set_Compile_Time_Known_Aggregate);
13706 pragma Inline (Set_Component_Associations);
13707 pragma Inline (Set_Component_Clauses);
13708 pragma Inline (Set_Component_Definition);
13709 pragma Inline (Set_Component_Items);
13710 pragma Inline (Set_Component_List);
13711 pragma Inline (Set_Component_Name);
13712 pragma Inline (Set_Componentwise_Assignment);
13713 pragma Inline (Set_Condition);
13714 pragma Inline (Set_Condition_Actions);
13715 pragma Inline (Set_Config_Pragmas);
13716 pragma Inline (Set_Constant_Present);
13717 pragma Inline (Set_Constraint);
13718 pragma Inline (Set_Constraints);
13719 pragma Inline (Set_Context_Installed);
13720 pragma Inline (Set_Context_Items);
13721 pragma Inline (Set_Context_Pending);
13722 pragma Inline (Set_Contract_Test_Cases);
13723 pragma Inline (Set_Controlling_Argument);
13724 pragma Inline (Set_Conversion_OK);
13725 pragma Inline (Set_Convert_To_Return_False);
13726 pragma Inline (Set_Corresponding_Aspect);
13727 pragma Inline (Set_Corresponding_Body);
13728 pragma Inline (Set_Corresponding_Formal_Spec);
13729 pragma Inline (Set_Corresponding_Generic_Association);
13730 pragma Inline (Set_Corresponding_Integer_Value);
13731 pragma Inline (Set_Corresponding_Spec);
13732 pragma Inline (Set_Corresponding_Spec_Of_Stub);
13733 pragma Inline (Set_Corresponding_Stub);
13734 pragma Inline (Set_Dcheck_Function);
13735 pragma Inline (Set_Declarations);
13736 pragma Inline (Set_Default_Expression);
13737 pragma Inline (Set_Default_Name);
13738 pragma Inline (Set_Default_Storage_Pool);
13739 pragma Inline (Set_Defining_Identifier);
13740 pragma Inline (Set_Defining_Unit_Name);
13741 pragma Inline (Set_Delay_Alternative);
13742 pragma Inline (Set_Delay_Statement);
13743 pragma Inline (Set_Delta_Expression);
13744 pragma Inline (Set_Digits_Expression);
13745 pragma Inline (Set_Discr_Check_Funcs_Built);
13746 pragma Inline (Set_Discrete_Choices);
13747 pragma Inline (Set_Discrete_Range);
13748 pragma Inline (Set_Discrete_Subtype_Definition);
13749 pragma Inline (Set_Discrete_Subtype_Definitions);
13750 pragma Inline (Set_Discriminant_Specifications);
13751 pragma Inline (Set_Discriminant_Type);
13752 pragma Inline (Set_Do_Accessibility_Check);
13753 pragma Inline (Set_Do_Discriminant_Check);
13754 pragma Inline (Set_Do_Division_Check);
13755 pragma Inline (Set_Do_Length_Check);
13756 pragma Inline (Set_Do_Overflow_Check);
13757 pragma Inline (Set_Do_Range_Check);
13758 pragma Inline (Set_Do_Storage_Check);
13759 pragma Inline (Set_Do_Tag_Check);
13760 pragma Inline (Set_Elaborate_All_Desirable);
13761 pragma Inline (Set_Elaborate_All_Present);
13762 pragma Inline (Set_Elaborate_Desirable);
13763 pragma Inline (Set_Elaborate_Present);
13764 pragma Inline (Set_Else_Actions);
13765 pragma Inline (Set_Else_Statements);
13766 pragma Inline (Set_Elsif_Parts);
13767 pragma Inline (Set_Enclosing_Variant);
13768 pragma Inline (Set_End_Label);
13769 pragma Inline (Set_End_Span);
13770 pragma Inline (Set_Entity);
13771 pragma Inline (Set_Entry_Body_Formal_Part);
13772 pragma Inline (Set_Entry_Call_Alternative);
13773 pragma Inline (Set_Entry_Call_Statement);
13774 pragma Inline (Set_Entry_Direct_Name);
13775 pragma Inline (Set_Entry_Index);
13776 pragma Inline (Set_Entry_Index_Specification);
13777 pragma Inline (Set_Etype);
13778 pragma Inline (Set_Exception_Choices);
13779 pragma Inline (Set_Exception_Handlers);
13780 pragma Inline (Set_Exception_Junk);
13781 pragma Inline (Set_Exception_Label);
13782 pragma Inline (Set_Expansion_Delayed);
13783 pragma Inline (Set_Explicit_Actual_Parameter);
13784 pragma Inline (Set_Explicit_Generic_Actual_Parameter);
13785 pragma Inline (Set_Expression);
13786 pragma Inline (Set_Expression_Copy);
13787 pragma Inline (Set_Expressions);
13788 pragma Inline (Set_First_Bit);
13789 pragma Inline (Set_First_Inlined_Subprogram);
13790 pragma Inline (Set_First_Name);
13791 pragma Inline (Set_First_Named_Actual);
13792 pragma Inline (Set_First_Real_Statement);
13793 pragma Inline (Set_First_Subtype_Link);
13794 pragma Inline (Set_Float_Truncate);
13795 pragma Inline (Set_Formal_Type_Definition);
13796 pragma Inline (Set_Forwards_OK);
13797 pragma Inline (Set_From_Aspect_Specification);
13798 pragma Inline (Set_From_At_End);
13799 pragma Inline (Set_From_At_Mod);
13800 pragma Inline (Set_From_Conditional_Expression);
13801 pragma Inline (Set_From_Default);
13802 pragma Inline (Set_Generalized_Indexing);
13803 pragma Inline (Set_Generic_Associations);
13804 pragma Inline (Set_Generic_Formal_Declarations);
13805 pragma Inline (Set_Generic_Parent);
13806 pragma Inline (Set_Generic_Parent_Type);
13807 pragma Inline (Set_Handled_Statement_Sequence);
13808 pragma Inline (Set_Handler_List_Entry);
13809 pragma Inline (Set_Has_Created_Identifier);
13810 pragma Inline (Set_Has_Dereference_Action);
13811 pragma Inline (Set_Has_Dynamic_Length_Check);
13812 pragma Inline (Set_Has_Dynamic_Range_Check);
13813 pragma Inline (Set_Has_Init_Expression);
13814 pragma Inline (Set_Has_Local_Raise);
13815 pragma Inline (Set_Has_No_Elaboration_Code);
13816 pragma Inline (Set_Has_Pragma_Suppress_All);
13817 pragma Inline (Set_Has_Private_View);
13818 pragma Inline (Set_Has_Relative_Deadline_Pragma);
13819 pragma Inline (Set_Has_Self_Reference);
13820 pragma Inline (Set_Has_SP_Choice);
13821 pragma Inline (Set_Has_Storage_Size_Pragma);
13822 pragma Inline (Set_Has_Target_Names);
13823 pragma Inline (Set_Has_Wide_Character);
13824 pragma Inline (Set_Has_Wide_Wide_Character);
13825 pragma Inline (Set_Header_Size_Added);
13826 pragma Inline (Set_Hidden_By_Use_Clause);
13827 pragma Inline (Set_High_Bound);
13828 pragma Inline (Set_Identifier);
13829 pragma Inline (Set_Implicit_With);
13830 pragma Inline (Set_Import_Interface_Present);
13831 pragma Inline (Set_In_Present);
13832 pragma Inline (Set_Includes_Infinities);
13833 pragma Inline (Set_Incomplete_View);
13834 pragma Inline (Set_Inherited_Discriminant);
13835 pragma Inline (Set_Instance_Spec);
13836 pragma Inline (Set_Interface_List);
13837 pragma Inline (Set_Interface_Present);
13838 pragma Inline (Set_Intval);
13839 pragma Inline (Set_Is_Abort_Block);
13840 pragma Inline (Set_Is_Accessibility_Actual);
13841 pragma Inline (Set_Is_Analyzed_Pragma);
13842 pragma Inline (Set_Is_Asynchronous_Call_Block);
13843 pragma Inline (Set_Is_Boolean_Aspect);
13844 pragma Inline (Set_Is_Checked);
13845 pragma Inline (Set_Is_Checked_Ghost_Pragma);
13846 pragma Inline (Set_Is_Component_Left_Opnd);
13847 pragma Inline (Set_Is_Component_Right_Opnd);
13848 pragma Inline (Set_Is_Controlling_Actual);
13849 pragma Inline (Set_Is_Declaration_Level_Node);
13850 pragma Inline (Set_Is_Delayed_Aspect);
13851 pragma Inline (Set_Is_Disabled);
13852 pragma Inline (Set_Is_Dispatching_Call);
13853 pragma Inline (Set_Is_Dynamic_Coextension);
13854 pragma Inline (Set_Is_Effective_Use_Clause);
13855 pragma Inline (Set_Is_Elaboration_Checks_OK_Node);
13856 pragma Inline (Set_Is_Elaboration_Code);
13857 pragma Inline (Set_Is_Elaboration_Warnings_OK_Node);
13858 pragma Inline (Set_Is_Elsif);
13859 pragma Inline (Set_Is_Entry_Barrier_Function);
13860 pragma Inline (Set_Is_Expanded_Build_In_Place_Call);
13861 pragma Inline (Set_Is_Expanded_Contract);
13862 pragma Inline (Set_Is_Finalization_Wrapper);
13863 pragma Inline (Set_Is_Folded_In_Parser);
13864 pragma Inline (Set_Is_Generic_Contract_Pragma);
13865 pragma Inline (Set_Is_Homogeneous_Aggregate);
13866 pragma Inline (Set_Is_Ignored);
13867 pragma Inline (Set_Is_Ignored_Ghost_Pragma);
13868 pragma Inline (Set_Is_In_Discriminant_Check);
13869 pragma Inline (Set_Is_Inherited_Pragma);
13870 pragma Inline (Set_Is_Initialization_Block);
13871 pragma Inline (Set_Is_Known_Guaranteed_ABE);
13872 pragma Inline (Set_Is_Machine_Number);
13873 pragma Inline (Set_Is_Null_Loop);
13874 pragma Inline (Set_Is_OpenAcc_Environment);
13875 pragma Inline (Set_Is_OpenAcc_Loop);
13876 pragma Inline (Set_Is_Overloaded);
13877 pragma Inline (Set_Is_Power_Of_2_For_Shift);
13878 pragma Inline (Set_Is_Prefixed_Call);
13879 pragma Inline (Set_Is_Protected_Subprogram_Body);
13880 pragma Inline (Set_Is_Qualified_Universal_Literal);
13881 pragma Inline (Set_Is_Read);
13882 pragma Inline (Set_Is_Source_Call);
13883 pragma Inline (Set_Is_SPARK_Mode_On_Node);
13884 pragma Inline (Set_Is_Static_Coextension);
13885 pragma Inline (Set_Is_Static_Expression);
13886 pragma Inline (Set_Is_Subprogram_Descriptor);
13887 pragma Inline (Set_Is_Task_Allocation_Block);
13888 pragma Inline (Set_Is_Task_Body_Procedure);
13889 pragma Inline (Set_Is_Task_Master);
13890 pragma Inline (Set_Is_Write);
13891 pragma Inline (Set_Iteration_Scheme);
13892 pragma Inline (Set_Iterator_Specification);
13893 pragma Inline (Set_Itype);
13894 pragma Inline (Set_Kill_Range_Check);
13895 pragma Inline (Set_Label_Construct);
13896 pragma Inline (Set_Last_Bit);
13897 pragma Inline (Set_Last_Name);
13898 pragma Inline (Set_Left_Opnd);
13899 pragma Inline (Set_Library_Unit);
13900 pragma Inline (Set_Limited_Present);
13901 pragma Inline (Set_Limited_View_Installed);
13902 pragma Inline (Set_Literals);
13903 pragma Inline (Set_Local_Raise_Not_OK);
13904 pragma Inline (Set_Local_Raise_Statements);
13905 pragma Inline (Set_Loop_Actions);
13906 pragma Inline (Set_Loop_Parameter_Specification);
13907 pragma Inline (Set_Low_Bound);
13908 pragma Inline (Set_Mod_Clause);
13909 pragma Inline (Set_More_Ids);
13910 pragma Inline (Set_Must_Be_Byte_Aligned);
13911 pragma Inline (Set_Must_Not_Freeze);
13912 pragma Inline (Set_Must_Not_Override);
13913 pragma Inline (Set_Must_Override);
13914 pragma Inline (Set_Name);
13915 pragma Inline (Set_Names);
13916 pragma Inline (Set_Next_Entity);
13917 pragma Inline (Set_Next_Exit_Statement);
13918 pragma Inline (Set_Next_Implicit_With);
13919 pragma Inline (Set_Next_Named_Actual);
13920 pragma Inline (Set_Next_Pragma);
13921 pragma Inline (Set_Next_Rep_Item);
13922 pragma Inline (Set_Next_Use_Clause);
13923 pragma Inline (Set_No_Ctrl_Actions);
13924 pragma Inline (Set_No_Elaboration_Check);
13925 pragma Inline (Set_No_Entities_Ref_In_Spec);
13926 pragma Inline (Set_No_Initialization);
13927 pragma Inline (Set_No_Minimize_Eliminate);
13928 pragma Inline (Set_No_Side_Effect_Removal);
13929 pragma Inline (Set_No_Truncation);
13930 pragma Inline (Set_Null_Excluding_Subtype);
13931 pragma Inline (Set_Null_Exclusion_Present);
13932 pragma Inline (Set_Null_Exclusion_In_Return_Present);
13933 pragma Inline (Set_Null_Present);
13934 pragma Inline (Set_Null_Record_Present);
13935 pragma Inline (Set_Null_Statement);
13936 pragma Inline (Set_Object_Definition);
13937 pragma Inline (Set_Of_Present);
13938 pragma Inline (Set_Original_Discriminant);
13939 pragma Inline (Set_Original_Entity);
13940 pragma Inline (Set_Others_Discrete_Choices);
13941 pragma Inline (Set_Out_Present);
13942 pragma Inline (Set_Parameter_Associations);
13943 pragma Inline (Set_Parameter_Specifications);
13944 pragma Inline (Set_Parameter_Type);
13945 pragma Inline (Set_Parent_Spec);
13946 pragma Inline (Set_Parent_With);
13947 pragma Inline (Set_Position);
13948 pragma Inline (Set_Pragma_Argument_Associations);
13949 pragma Inline (Set_Pragma_Identifier);
13950 pragma Inline (Set_Pragmas_After);
13951 pragma Inline (Set_Pragmas_Before);
13952 pragma Inline (Set_Pre_Post_Conditions);
13953 pragma Inline (Set_Prefix);
13954 pragma Inline (Set_Premature_Use);
13955 pragma Inline (Set_Present_Expr);
13956 pragma Inline (Set_Prev_Ids);
13957 pragma Inline (Set_Prev_Use_Clause);
13958 pragma Inline (Set_Print_In_Hex);
13959 pragma Inline (Set_Private_Declarations);
13960 pragma Inline (Set_Private_Present);
13961 pragma Inline (Set_Procedure_To_Call);
13962 pragma Inline (Set_Proper_Body);
13963 pragma Inline (Set_Protected_Definition);
13964 pragma Inline (Set_Protected_Present);
13965 pragma Inline (Set_Raises_Constraint_Error);
13966 pragma Inline (Set_Range_Constraint);
13967 pragma Inline (Set_Range_Expression);
13968 pragma Inline (Set_Real_Range_Specification);
13969 pragma Inline (Set_Realval);
13970 pragma Inline (Set_Reason);
13971 pragma Inline (Set_Record_Extension_Part);
13972 pragma Inline (Set_Redundant_Use);
13973 pragma Inline (Set_Renaming_Exception);
13974 pragma Inline (Set_Result_Definition);
13975 pragma Inline (Set_Return_Object_Declarations);
13976 pragma Inline (Set_Reverse_Present);
13977 pragma Inline (Set_Right_Opnd);
13978 pragma Inline (Set_Rounded_Result);
13979 pragma Inline (Set_Save_Invocation_Graph_Of_Body);
13980 pragma Inline (Set_SCIL_Controlling_Tag);
13981 pragma Inline (Set_SCIL_Entity);
13982 pragma Inline (Set_SCIL_Tag_Value);
13983 pragma Inline (Set_SCIL_Target_Prim);
13984 pragma Inline (Set_Scope);
13985 pragma Inline (Set_Select_Alternatives);
13986 pragma Inline (Set_Selector_Name);
13987 pragma Inline (Set_Selector_Names);
13988 pragma Inline (Set_Shift_Count_OK);
13989 pragma Inline (Set_Source_Type);
13990 pragma Inline (Set_Split_PPC);
13991 pragma Inline (Set_Statements);
13992 pragma Inline (Set_Storage_Pool);
13993 pragma Inline (Set_Strval);
13994 pragma Inline (Set_Subpool_Handle_Name);
13995 pragma Inline (Set_Subtype_Indication);
13996 pragma Inline (Set_Subtype_Mark);
13997 pragma Inline (Set_Subtype_Marks);
13998 pragma Inline (Set_Suppress_Assignment_Checks);
13999 pragma Inline (Set_Suppress_Loop_Warnings);
14000 pragma Inline (Set_Synchronized_Present);
14001 pragma Inline (Set_TSS_Elist);
14002 pragma Inline (Set_Tagged_Present);
14003 pragma Inline (Set_Target);
14004 pragma Inline (Set_Target_Type);
14005 pragma Inline (Set_Task_Definition);
14006 pragma Inline (Set_Task_Present);
14007 pragma Inline (Set_Then_Actions);
14008 pragma Inline (Set_Then_Statements);
14009 pragma Inline (Set_Triggering_Alternative);
14010 pragma Inline (Set_Triggering_Statement);
14011 pragma Inline (Set_Type_Definition);
14012 pragma Inline (Set_Uneval_Old_Accept);
14013 pragma Inline (Set_Uneval_Old_Warn);
14014 pragma Inline (Set_Unit);
14015 pragma Inline (Set_Uninitialized_Variable);
14016 pragma Inline (Set_Unknown_Discriminants_Present);
14017 pragma Inline (Set_Unreferenced_In_Spec);
14018 pragma Inline (Set_Used_Operations);
14019 pragma Inline (Set_Variant_Part);
14020 pragma Inline (Set_Variants);
14021 pragma Inline (Set_Visible_Declarations);
14022 pragma Inline (Set_Was_Attribute_Reference);
14023 pragma Inline (Set_Was_Expression_Function);
14024 pragma Inline (Set_Was_Originally_Stub);
14025
14026 end Sinfo;